bilibili-app-recommend

为B站首页添加像App一样的推荐

目前為 2023-06-08 提交的版本,檢視 最新版本

// ==UserScript==
// @name         bilibili-app-recommend
// @namespace    https://magicdawn.fun
// @version      0.12.6
// @author       magicdawn
// @description  为B站首页添加像App一样的推荐
// @license      MIT
// @homepageURL  https://gf.qytechs.cn/zh-CN/scripts/443530-bilibili-app-recommend
// @supportURL   https://github.com/magicdawn/bilibili-app-recommend/issues
// @match        *://www.bilibili.com/
// @match        https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png
// @match        *://www.bilibili.com/index.html
// @match        *://www.bilibili.com/?*
// @match        https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png?*
// @match        *://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
// @connect      app.bilibili.com
// @connect      passport.bilibili.com
// @connect      link.acg.tv
// @connect      www.mcbbs.net
// @grant        GM.xmlHttpRequest
// @grant        GM_deleteValue
// @grant        GM_getValue
// @grant        GM_setClipboard
// @grant        GM_setValue
// @grant        unsafeWindow
// ==/UserScript==

(i=>{const t=document.createElement("style");t.dataset.source="vite-plugin-monkey",t.textContent=i,document.head.append(t)})(" .primary-btn:disabled:active,.primary-btn:disabled:hover{cursor:wait;background-color:inherit}.ant-btn{font-size:13px}.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_1isor_1{position:fixed;left:0;top:0;right:0;bottom:0;background-color:#00000080;z-index:10001;display:flex;align-items:center;justify-content:center}._modal_1isor_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_1isor_23{padding-top:10px;padding-bottom:10px;border-bottom:none;display:flex;align-items:center}._modal-body_1isor_30{padding-top:0;flex-grow:1;overflow-y:scroll}._modal-title_1isor_35{font-size:1.5rem;margin-bottom:0;line-height:1.5;display:flex;align-items:center}._btn-close_1isor_42{margin-left:10px}._btn-close_1isor_42 svg{width:10px;height:10px;margin-right:3px;margin-top:-1px}body.dark ._btn-close_1isor_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_mlccj_1{position:relative}._image-wrapper_mlccj_4{border-radius:6px;overflow:hidden}._preview-card-wrapper_mlccj_8{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_mlccj_8 ._preview-card-inner_mlccj_21{width:100%;height:100%}._watch-later_mlccj_25{z-index:5}._badge_mlccj_28{color:#fa6a9d;border-radius:2px;border:1px #fa6a9d solid;line-height:20px;padding:0 10px;transform:scale(.8);transform-origin:center left}._recommend-reason_mlccj_37{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_mlccj_52{color:default}._btn-dislike_mlccj_55{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_mlccj_55 ._btn-dislike-icon_mlccj_70{pointer-events:none;user-select:none;width:12px;height:12px;color:#fff}._btn-dislike_mlccj_55 ._btn-dislike-tip_mlccj_77{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_mlccj_92{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_mlccj_92{border:1px solid #333}._disliked-wrapper_mlccj_92 ._dislike-content-cover_mlccj_106{border-top-left-radius:6px;border-top-right-radius:6px;padding-top:56.25%;position:relative}._disliked-wrapper_mlccj_92 ._dislike-content-cover_mlccj_106 ._dislike-content-cover-inner_mlccj_112{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}._disliked-wrapper_mlccj_92 ._dislike-content-cover_mlccj_106 ._dislike-content-cover-inner_mlccj_112 ._dislike-icon_mlccj_123{margin-bottom:5px}._disliked-wrapper_mlccj_92 ._dislike-content-cover_mlccj_106 ._dislike-content-cover-inner_mlccj_112 ._dislike-reason_mlccj_126{font-size:20px;text-align:center}._disliked-wrapper_mlccj_92 ._dislike-content-cover_mlccj_106 ._dislike-content-cover-inner_mlccj_112 ._dislike-desc_mlccj_130{font-size:16px;text-align:center}._disliked-wrapper_mlccj_92 ._dislike-content-action_mlccj_134{flex:1;width:100%;border-top:1px solid #eee;display:flex;align-items:center;justify-content:center}body.dark ._disliked-wrapper_mlccj_92 ._dislike-content-action_mlccj_134{border-top:1px solid #333}._disliked-wrapper_mlccj_92 ._dislike-content-action_mlccj_134 button{font-size:16px;color:inherit;display:flex;align-items:center}._skeleton-active_mlccj_151 .bili-video-card__skeleton--cover,._skeleton-active_mlccj_151 .bili-video-card__skeleton--text,._skeleton-active_mlccj_151 .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_mlccj_1;animation-duration:1.4s;animation-timing-function:ease;animation-iteration-count:infinite}@keyframes _ant-skeleton-loading_mlccj_1{0%{background-position:100% 50%}to{background-position:0 50%}}._video-grid_tu03i_9{display:grid;position:relative;width:100%;grid-gap:20px 12px}@media (max-width: 1099.9px){._video-grid_tu03i_9{grid-template-columns:repeat(4,1fr)}._video-grid_tu03i_9._limit-two-lines_tu03i_19>*:nth-of-type(1n + 9){display:none!important}}@media (min-width: 1100px) and (max-width: 1700.9px){._video-grid_tu03i_9{grid-template-columns:repeat(5,1fr)}._video-grid_tu03i_9._limit-two-lines_tu03i_19>*:nth-of-type(1n + 11){display:none!important}}@media (min-width: 1701px) and (max-width: 2199.9px){._video-grid_tu03i_9{grid-template-columns:repeat(6,1fr)}._video-grid_tu03i_9._limit-two-lines_tu03i_19>*:nth-of-type(1n + 13){display:none!important}}@media (min-width: 2200px){._video-grid_tu03i_9{grid-template-columns:repeat(7,1fr)}._video-grid_tu03i_9._limit-two-lines_tu03i_19>*:nth-of-type(1n + 15){display:none!important}}._video-grid_tu03i_9._internal-testing_tu03i_51{grid-gap:20px 20px}@media (max-width: 1399.9px){._video-grid_tu03i_9._internal-testing_tu03i_51{grid-template-columns:repeat(4,1fr)}._video-grid_tu03i_9._internal-testing_tu03i_51._limit-one-line_tu03i_58>*:nth-of-type(1n + 5){display:none!important}._video-grid_tu03i_9._internal-testing_tu03i_51._limit-two-lines_tu03i_19>*:nth-of-type(1n + 9){display:none!important}}@media (min-width: 1400px){._video-grid_tu03i_9._internal-testing_tu03i_51{grid-template-columns:repeat(5,1fr)}._video-grid_tu03i_9._internal-testing_tu03i_51._limit-one-line_tu03i_58>*:nth-of-type(1n + 6){display:none!important}._video-grid_tu03i_9._internal-testing_tu03i_51._limit-two-lines_tu03i_19>*:nth-of-type(1n + 11){display:none!important}}._narrow-mode_tu03i_79{grid-template-columns:repeat(2,1fr)!important}._config-icon_18r5p_1{line-height:1;margin-right:5px;font-size:0}._settings-group_18r5p_6{margin-bottom:10px}._settings-group_18r5p_6 ._settings-group-title_18r5p_9{font-size:2em;display:flex;align-items:center}._settings-group_18r5p_6 ._settings-group-sub-title_18r5p_14{font-size:1.3em;display:flex;align-items:center;margin-top:15px}._settings-group_18r5p_6 ._settings-group-content_18r5p_20{color:default}._settings-group_18r5p_6 ._settings-group-content_18r5p_20 button:first-child{margin-left:0}._row_18r5p_26{display:flex;align-items:center;flex-wrap:wrap}._row_18r5p_26 .primary-btn:first-child{margin-left:0}._check_18r5p_34{margin-bottom:5px;margin-inline-start:0!important;margin-inline-end:5px!important}._setting-tabs_18r5p_39.ant-tabs .ant-tabs-tab{padding-left:5px}._tab-pane_18r5p_42{min-height:40vh;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} ");

(function (f, zp, im, j1) {
  '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 f__namespace = /*#__PURE__*/_interopNamespaceDefault(f);
  const zp__namespace = /*#__PURE__*/_interopNamespaceDefault(zp);

  var _1=Object.defineProperty;var I1=(e,t,n)=>t in e?_1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var R1=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var ht=(e,t,n)=>(I1(e,typeof t!="symbol"?t+"":t,n),n),Tu=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var k=(e,t,n)=>(Tu(e,t,"read from private field"),n?n.call(e):t.get(e)),lt=(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)=>(Tu(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),rl=(e,t,n,r)=>({set _(o){Ge(e,t,o,n);},get _(){return k(e,t,r)}}),Fe=(e,t,n)=>(Tu(e,t,"access private method"),n);var ZB=R1((ao,so)=>{var Hp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function go(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function H1(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 Bp={exports:{}},Oc={};/**
   * @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 B1=f,W1=Symbol.for("react.element"),V1=Symbol.for("react.fragment"),G1=Object.prototype.hasOwnProperty,U1=B1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,K1={key:!0,ref:!0,__self:!0,__source:!0};function Wp(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)G1.call(t,r)&&!K1.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:W1,type:e,key:i,ref:a,props:o,_owner:U1.current}}Oc.Fragment=V1;Oc.jsx=Wp;Oc.jsxs=Wp;Bp.exports=Oc;var ss=Bp.exports;function X1(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 q1(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Y1=function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o);},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null;}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag);},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(q1(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=X1(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}(),xn="-ms-",Wl="-moz-",Et="-webkit-",Vp="comm",am="rule",sm="decl",Z1="@import",Gp="@keyframes",Q1="@layer",J1=Math.abs,Pc=String.fromCharCode,ew=Object.assign;function tw(e,t){return gn(e,0)^45?(((t<<2^gn(e,0))<<2^gn(e,1))<<2^gn(e,2))<<2^gn(e,3):0}function Up(e){return e.trim()}function nw(e,t){return (e=t.exec(e))?e[0]:e}function Ot(e,t,n){return e.replace(t,n)}function kd(e,t){return e.indexOf(t)}function gn(e,t){return e.charCodeAt(t)|0}function ls(e,t,n){return e.slice(t,n)}function kr(e){return e.length}function lm(e){return e.length}function ol(e,t){return t.push(e),e}function rw(e,t){return e.map(t).join("")}var _c=1,Ji=1,Kp=0,Dn=0,on=0,fa="";function Ic(e,t,n,r,o,i,a){return {value:e,root:t,parent:n,type:r,props:o,children:i,line:_c,column:Ji,length:a,return:""}}function Oa(e,t){return ew(Ic("",null,null,"",null,null,0),e,{length:-e.length},t)}function ow(){return on}function iw(){return on=Dn>0?gn(fa,--Dn):0,Ji--,on===10&&(Ji=1,_c--),on}function Qn(){return on=Dn<Kp?gn(fa,Dn++):0,Ji++,on===10&&(Ji=1,_c++),on}function zr(){return gn(fa,Dn)}function $l(){return Dn}function _s(e,t){return ls(fa,e,t)}function cs(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 Xp(e){return _c=Ji=1,Kp=kr(fa=e),Dn=0,[]}function qp(e){return fa="",e}function xl(e){return Up(_s(Dn-1,Ld(e===91?e+2:e===40?e+1:e)))}function aw(e){for(;(on=zr())&&on<33;)Qn();return cs(e)>2||cs(on)>3?"":" "}function sw(e,t){for(;--t&&Qn()&&!(on<48||on>102||on>57&&on<65||on>70&&on<97););return _s(e,$l()+(t<6&&zr()==32&&Qn()==32))}function Ld(e){for(;Qn();)switch(on){case e:return Dn;case 34:case 39:e!==34&&e!==39&&Ld(on);break;case 40:e===41&&Ld(e);break;case 92:Qn();break}return Dn}function lw(e,t){for(;Qn()&&e+on!==47+10;)if(e+on===42+42&&zr()===47)break;return "/*"+_s(t,Dn-1)+"*"+Pc(e===47?e:Qn())}function cw(e){for(;!cs(zr());)Qn();return _s(e,Dn)}function Yp(e){return qp(El("",null,null,null,[""],e=Xp(e),0,[0],e))}function El(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,m=0,h=0,v=0,g=1,p=1,b=1,y=0,w="",x=o,C=i,S=r,$=w;p;)switch(v=y,y=Qn()){case 40:if(v!=108&&gn($,d-1)==58){kd($+=Ot(xl(y),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:$+=xl(y);break;case 9:case 10:case 13:case 32:$+=aw(v);break;case 92:$+=sw($l()-1,7);continue;case 47:switch(zr()){case 42:case 47:ol(uw(lw(Qn(),$l()),t,n),l);break;default:$+="/";}break;case 123*g:s[c++]=kr($)*b;case 125*g:case 59:case 0:switch(y){case 0:case 125:p=0;case 59+u:b==-1&&($=Ot($,/\f/g,"")),h>0&&kr($)-d&&ol(h>32?qh($+";",r,n,d-1):qh(Ot($," ","")+";",r,n,d-2),l);break;case 59:$+=";";default:if(ol(S=Xh($,t,n,c,u,o,s,w,x=[],C=[],d),i),y===123)if(u===0)El($,t,S,S,x,i,d,s,C);else switch(m===99&&gn($,3)===110?100:m){case 100:case 108:case 109:case 115:El(e,S,S,r&&ol(Xh(e,S,S,0,0,o,s,w,o,x=[],d),C),o,C,d,s,r?x:C);break;default:El($,S,S,S,[""],C,0,s,C);}}c=u=h=0,g=b=1,w=$="",d=a;break;case 58:d=1+kr($),h=v;default:if(g<1){if(y==123)--g;else if(y==125&&g++==0&&iw()==125)continue}switch($+=Pc(y),y*g){case 38:b=u>0?1:($+="\f",-1);break;case 44:s[c++]=(kr($)-1)*b,b=1;break;case 64:zr()===45&&($+=xl(Qn())),m=zr(),u=d=kr(w=$+=cw($l())),y++;break;case 45:v===45&&kr($)==2&&(g=0);}}return i}function Xh(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,m=o===0?i:[""],h=lm(m),v=0,g=0,p=0;v<r;++v)for(var b=0,y=ls(e,d+1,d=J1(g=a[v])),w=e;b<h;++b)(w=Up(g>0?m[b]+" "+y:Ot(y,/&\f/g,m[b])))&&(l[p++]=w);return Ic(e,t,n,o===0?am:s,l,c,u)}function uw(e,t,n){return Ic(e,t,n,Vp,Pc(ow()),ls(e,2,-2),0)}function qh(e,t,n,r){return Ic(e,t,n,sm,ls(e,0,r),ls(e,r+1,-1),r)}function ti(e,t){for(var n="",r=lm(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Zp(e,t,n,r){switch(e.type){case Q1:if(e.children.length)break;case Z1:case sm:return e.return=e.return||e.value;case Vp:return "";case Gp:return e.return=e.value+"{"+ti(e.children,r)+"}";case am:e.value=e.props.join(",");}return kr(n=ti(e.children,r))?e.return=e.value+"{"+n+"}":""}function dw(e){var t=lm(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 fw(e){return function(t){t.root||(t=t.return)&&e(t);}}function mw(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var hw=function(t,n,r){for(var o=0,i=0;o=i,i=zr(),o===38&&i===12&&(n[r]=1),!cs(i);)Qn();return _s(t,Dn)},vw=function(t,n){var r=-1,o=44;do switch(cs(o)){case 0:o===38&&zr()===12&&(n[r]=1),t[r]+=hw(Dn-1,n,r);break;case 2:t[r]+=xl(o);break;case 4:if(o===44){t[++r]=zr()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Pc(o);}while(o=Qn());return t},gw=function(t,n){return qp(vw(Xp(t),n))},Yh=new WeakMap,pw=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&&!Yh.get(r))&&!o){Yh.set(t,!0);for(var i=[],a=gw(n,i),s=r.props,l=0,c=0;l<a.length;l++)for(var u=0;u<s.length;u++,c++)t.props[c]=i[l]?a[l].replace(/&\f/g,s[u]):s[u]+" "+a[l];}}},bw=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="");}};function Qp(e,t){switch(tw(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+Wl+e+xn+e+e;case 6828:case 4268:return Et+e+xn+e+e;case 6165:return Et+e+xn+"flex-"+e+e;case 5187:return Et+e+Ot(e,/(\w+).+(:[^]+)/,Et+"box-$1$2"+xn+"flex-$1$2")+e;case 5443:return Et+e+xn+"flex-item-"+Ot(e,/flex-|-self/,"")+e;case 4675:return Et+e+xn+"flex-line-pack"+Ot(e,/align-content|flex-|-self/,"")+e;case 5548:return Et+e+xn+Ot(e,"shrink","negative")+e;case 5292:return Et+e+xn+Ot(e,"basis","preferred-size")+e;case 6060:return Et+"box-"+Ot(e,"-grow","")+Et+e+xn+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"+xn+"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(kr(e)-1-t>6)switch(gn(e,t+1)){case 109:if(gn(e,t+4)!==45)break;case 102:return Ot(e,/(.+:)(.+)-([^]+)/,"$1"+Et+"$2-$3$1"+Wl+(gn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return ~kd(e,"stretch")?Qp(Ot(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(gn(e,t+1)!==115)break;case 6444:switch(gn(e,kr(e)-3-(~kd(e,"!important")&&10))){case 107:return Ot(e,":",":"+Et)+e;case 101:return Ot(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Et+(gn(e,14)===45?"inline-":"")+"box$3$1"+Et+"$2$3$1"+xn+"$2box$3")+e}break;case 5936:switch(gn(e,t+11)){case 114:return Et+e+xn+Ot(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Et+e+xn+Ot(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Et+e+xn+Ot(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Et+e+xn+e+e}return e}var yw=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case sm:t.return=Qp(t.value,t.length);break;case Gp:return ti([Oa(t,{value:Ot(t.value,"@","@"+Et)})],o);case am:if(t.length)return rw(t.props,function(i){switch(nw(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ti([Oa(t,{props:[Ot(i,/:(read-\w+)/,":"+Wl+"$1")]})],o);case"::placeholder":return ti([Oa(t,{props:[Ot(i,/:(plac\w+)/,":"+Et+"input-$1")]}),Oa(t,{props:[Ot(i,/:(plac\w+)/,":"+Wl+"$1")]}),Oa(t,{props:[Ot(i,/:(plac\w+)/,xn+"input-$1")]})],o)}return ""})}},Cw=[yw],Jp=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||Cw,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=[pw,bw];{var u,d=[Zp,fw(function(g){u.insert(g);})],m=dw(c.concat(o,d)),h=function(p){return ti(Yp(p),m)};l=function(p,b,y,w){u=y,h(p?p+"{"+b.styles+"}":b.styles),w&&(v.inserted[b.name]=!0);};}var v={key:n,sheet:new Y1({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:l};return v.sheet.hydrate(s),v};function pe(){return pe=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},pe.apply(this,arguments)}var eb={exports:{}},At={};/** @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 hn=typeof Symbol=="function"&&Symbol.for,cm=hn?Symbol.for("react.element"):60103,um=hn?Symbol.for("react.portal"):60106,Rc=hn?Symbol.for("react.fragment"):60107,Mc=hn?Symbol.for("react.strict_mode"):60108,Tc=hn?Symbol.for("react.profiler"):60114,Nc=hn?Symbol.for("react.provider"):60109,Ac=hn?Symbol.for("react.context"):60110,dm=hn?Symbol.for("react.async_mode"):60111,Dc=hn?Symbol.for("react.concurrent_mode"):60111,kc=hn?Symbol.for("react.forward_ref"):60112,Lc=hn?Symbol.for("react.suspense"):60113,Sw=hn?Symbol.for("react.suspense_list"):60120,Fc=hn?Symbol.for("react.memo"):60115,zc=hn?Symbol.for("react.lazy"):60116,ww=hn?Symbol.for("react.block"):60121,$w=hn?Symbol.for("react.fundamental"):60117,xw=hn?Symbol.for("react.responder"):60118,Ew=hn?Symbol.for("react.scope"):60119;function tr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case cm:switch(e=e.type,e){case dm:case Dc:case Rc:case Tc:case Mc:case Lc:return e;default:switch(e=e&&e.$$typeof,e){case Ac:case kc:case zc:case Fc:case Nc:return e;default:return t}}case um:return t}}}function tb(e){return tr(e)===Dc}At.AsyncMode=dm;At.ConcurrentMode=Dc;At.ContextConsumer=Ac;At.ContextProvider=Nc;At.Element=cm;At.ForwardRef=kc;At.Fragment=Rc;At.Lazy=zc;At.Memo=Fc;At.Portal=um;At.Profiler=Tc;At.StrictMode=Mc;At.Suspense=Lc;At.isAsyncMode=function(e){return tb(e)||tr(e)===dm};At.isConcurrentMode=tb;At.isContextConsumer=function(e){return tr(e)===Ac};At.isContextProvider=function(e){return tr(e)===Nc};At.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===cm};At.isForwardRef=function(e){return tr(e)===kc};At.isFragment=function(e){return tr(e)===Rc};At.isLazy=function(e){return tr(e)===zc};At.isMemo=function(e){return tr(e)===Fc};At.isPortal=function(e){return tr(e)===um};At.isProfiler=function(e){return tr(e)===Tc};At.isStrictMode=function(e){return tr(e)===Mc};At.isSuspense=function(e){return tr(e)===Lc};At.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Rc||e===Dc||e===Tc||e===Mc||e===Lc||e===Sw||typeof e=="object"&&e!==null&&(e.$$typeof===zc||e.$$typeof===Fc||e.$$typeof===Nc||e.$$typeof===Ac||e.$$typeof===kc||e.$$typeof===$w||e.$$typeof===xw||e.$$typeof===Ew||e.$$typeof===ww)};At.typeOf=tr;eb.exports=At;var fm=eb.exports,nb=fm,Ow={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Pw={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},rb={};rb[nb.ForwardRef]=Ow;rb[nb.Memo]=Pw;var _w=!0;function mm(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" ";}),r}var ob=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||_w===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles);},ib=function(t,n,r){ob(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 Iw(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 Rw={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},Mw=/[A-Z]|^ms/g,Tw=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ab=function(t){return t.charCodeAt(1)===45},Zh=function(t){return t!=null&&typeof t!="boolean"},Au=mw(function(e){return ab(e)?e:e.replace(Mw,"-$&").toLowerCase()}),Qh=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Tw,function(r,o,i){return Lr={name:o,styles:i,next:Lr},o})}return Rw[t]!==1&&!ab(t)&&typeof n=="number"&&n!==0?n+"px":n};function us(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 Lr={name:n.name,styles:n.styles,next:Lr},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Lr={name:r.name,styles:r.styles,next:Lr},r=r.next;var o=n.styles+";";return o}return Nw(e,t,n)}case"function":{if(e!==void 0){var i=Lr,a=n(e);return Lr=i,us(e,t,a)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function Nw(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=us(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]+"}":Zh(a)&&(r+=Au(i)+":"+Qh(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++)Zh(a[s])&&(r+=Au(i)+":"+Qh(i,a[s])+";");else {var l=us(e,t,a);switch(i){case"animation":case"animationName":{r+=Au(i)+":"+l+";";break}default:r+=i+"{"+l+"}";}}}return r}var Jh=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Lr,Ga=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="";Lr=void 0;var a=t[0];a==null||a.raw===void 0?(o=!1,i+=us(r,n,a)):i+=a[0];for(var s=1;s<t.length;s++)i+=us(r,n,t[s]),o&&(i+=a[s]);Jh.lastIndex=0;for(var l="",c;(c=Jh.exec(i))!==null;)l+="-"+c[1];var u=Iw(i)+l;return {name:u,styles:i,next:Lr}},Aw=function(t){return t()},Dw=f__namespace["useInsertionEffect"]?f__namespace["useInsertionEffect"]:!1,kw=Dw||Aw,jc={}.hasOwnProperty,sb=f__namespace.createContext(typeof HTMLElement<"u"?Jp({key:"css"}):null);sb.Provider;var Lw=function(t){return f.forwardRef(function(n,r){var o=f.useContext(sb);return t(n,o,r)})},Fw=f__namespace.createContext({}),Fd="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",lb=function(t,n){var r={};for(var o in n)jc.call(n,o)&&(r[o]=n[o]);return r[Fd]=t,r},zw=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return ob(n,r,o),kw(function(){return ib(n,r,o)}),null},jw=Lw(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[Fd],i=[r],a="";typeof e.className=="string"?a=mm(t.registered,i,e.className):e.className!=null&&(a=e.className+" ");var s=Ga(i,void 0,f__namespace.useContext(Fw));a+=t.key+"-"+s.name;var l={};for(var c in e)jc.call(e,c)&&c!=="css"&&c!==Fd&&(l[c]=e[c]);return l.ref=n,l.className=a,f__namespace.createElement(f__namespace.Fragment,null,f__namespace.createElement(zw,{cache:t,serialized:s,isStringTag:typeof o=="string"}),f__namespace.createElement(o,l))}),cb=jw,Gt=ss.Fragment;function j(e,t,n){return jc.call(t,"css")?ss.jsx(cb,lb(e,t),n):ss.jsx(e,t,n)}function ve(e,t,n){return jc.call(t,"css")?ss.jsxs(cb,lb(e,t),n):ss.jsxs(e,t,n)}var zd={exports:{}},Du,ev;function Hw(){if(ev)return Du;ev=1;var e=1e3,t=e*60,n=t*60,r=n*24,o=r*7,i=r*365.25;Du=function(u,d){d=d||{};var m=typeof u;if(m==="string"&&u.length>0)return a(u);if(m==="number"&&isFinite(u))return d.long?l(u):s(u);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(u))};function a(u){if(u=String(u),!(u.length>100)){var d=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(u);if(d){var 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(u){var d=Math.abs(u);return d>=r?Math.round(u/r)+"d":d>=n?Math.round(u/n)+"h":d>=t?Math.round(u/t)+"m":d>=e?Math.round(u/e)+"s":u+"ms"}function l(u){var d=Math.abs(u);return d>=r?c(u,d,r,"day"):d>=n?c(u,d,n,"hour"):d>=t?c(u,d,t,"minute"):d>=e?c(u,d,e,"second"):u+" ms"}function c(u,d,m,h){var v=d>=m*1.5;return Math.round(u/m)+" "+h+(v?"s":"")}return Du}function Bw(e){n.debug=n,n.default=n,n.coerce=l,n.disable=i,n.enable=o,n.enabled=a,n.humanize=Hw(),n.destroy=c,Object.keys(e).forEach(u=>{n[u]=e[u];}),n.names=[],n.skips=[],n.formatters={};function t(u){let d=0;for(let m=0;m<u.length;m++)d=(d<<5)-d+u.charCodeAt(m),d|=0;return n.colors[Math.abs(d)%n.colors.length]}n.selectColor=t;function n(u){let d,m=null,h,v;function g(...p){if(!g.enabled)return;const b=g,y=Number(new Date),w=y-(d||y);b.diff=w,b.prev=d,b.curr=y,d=y,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,$)=>{if(S==="%%")return "%";x++;const P=n.formatters[$];if(typeof P=="function"){const O=p[x];S=P.call(b,O),p.splice(x,1),x--;}return S}),n.formatArgs.call(b,p),(b.log||n.log).apply(b,p);}return g.namespace=u,g.useColors=n.useColors(),g.color=n.selectColor(u),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(u)),v),set:p=>{m=p;}}),typeof n.init=="function"&&n.init(g),g}function r(u,d){const m=n(this.namespace+(typeof d>"u"?":":d)+u);return m.log=this.log,m}function o(u){n.save(u),n.namespaces=u,n.names=[],n.skips=[];let d;const m=(typeof u=="string"?u:"").split(/[\s,]+/),h=m.length;for(d=0;d<h;d++)m[d]&&(u=m[d].replace(/\*/g,".*?"),u[0]==="-"?n.skips.push(new RegExp("^"+u.slice(1)+"$")):n.names.push(new RegExp("^"+u+"$")));}function i(){const u=[...n.names.map(s),...n.skips.map(s).map(d=>"-"+d)].join(",");return n.enable(""),u}function a(u){if(u[u.length-1]==="*")return !0;let d,m;for(d=0,m=n.skips.length;d<m;d++)if(n.skips[d].test(u))return !1;for(d=0,m=n.names.length;d<m;d++)if(n.names[d].test(u))return !0;return !1}function s(u){return u.toString().substring(2,u.toString().length-2).replace(/\.\*\?$/,"*")}function l(u){return u instanceof Error?u.stack||u.message:u}function c(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");}return n.enable(n.load()),n}var Ww=Bw;(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 u=0,d=0;l[0].replace(/%[a-zA-Z%]/g,m=>{m!=="%%"&&(u++,m==="%c"&&(d=u));}),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=Ww(t);const{formatters:s}=e.exports;s.j=function(l){try{return JSON.stringify(l)}catch(c){return "[UnexpectedJSONParseError]: "+c.message}};})(zd,zd.exports);var Vw=zd.exports;const Gw=go(Vw),Ao="bilibili-app-recommend",Uw="bilibili_app_recommend",Is=Gw(Ao);var Kw=typeof global=="object"&&global&&global.Object===Object&&global;const ub=Kw;var Xw=typeof self=="object"&&self&&self.Object===Object&&self,qw=ub||Xw||Function("return this")();const Ur=qw;var Yw=Ur.Symbol;const Wr=Yw;var db=Object.prototype,Zw=db.hasOwnProperty,Qw=db.toString,Pa=Wr?Wr.toStringTag:void 0;function Jw(e){var t=Zw.call(e,Pa),n=e[Pa];try{e[Pa]=void 0;var r=!0;}catch{}var o=Qw.call(e);return r&&(t?e[Pa]=n:delete e[Pa]),o}var e$=Object.prototype,t$=e$.toString;function n$(e){return t$.call(e)}var r$="[object Null]",o$="[object Undefined]",tv=Wr?Wr.toStringTag:void 0;function ma(e){return e==null?e===void 0?o$:r$:tv&&tv in Object(e)?Jw(e):n$(e)}function ea(e){return e!=null&&typeof e=="object"}var i$="[object Symbol]";function Hc(e){return typeof e=="symbol"||ea(e)&&ma(e)==i$}function a$(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 s$=Array.isArray;const Vr=s$;var l$=1/0,nv=Wr?Wr.prototype:void 0,rv=nv?nv.toString:void 0;function fb(e){if(typeof e=="string")return e;if(Vr(e))return a$(e,fb)+"";if(Hc(e))return rv?rv.call(e):"";var t=e+"";return t=="0"&&1/e==-l$?"-0":t}var c$=/\s/;function u$(e){for(var t=e.length;t--&&c$.test(e.charAt(t)););return t}var d$=/^\s+/;function f$(e){return e&&e.slice(0,u$(e)+1).replace(d$,"")}function fo(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ov=0/0,m$=/^[-+]0x[0-9a-f]+$/i,h$=/^0b[01]+$/i,v$=/^0o[0-7]+$/i,g$=parseInt;function jd(e){if(typeof e=="number")return e;if(Hc(e))return ov;if(fo(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=fo(t)?t+"":t;}if(typeof e!="string")return e===0?e:+e;e=f$(e);var n=h$.test(e);return n||v$.test(e)?g$(e.slice(2),n?2:8):m$.test(e)?ov:+e}var iv=1/0,p$=17976931348623157e292;function b$(e){if(!e)return e===0?e:0;if(e=jd(e),e===iv||e===-iv){var t=e<0?-1:1;return t*p$}return e===e?e:0}function y$(e){var t=b$(e),n=t%1;return t===t?n?t-n:t:0}function mb(e){return e}var C$="[object AsyncFunction]",S$="[object Function]",w$="[object GeneratorFunction]",$$="[object Proxy]";function hb(e){if(!fo(e))return !1;var t=ma(e);return t==S$||t==w$||t==C$||t==$$}var x$=Ur["__core-js_shared__"];const ku=x$;var av=function(){var e=/[^.]+$/.exec(ku&&ku.keys&&ku.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function E$(e){return !!av&&av in e}var O$=Function.prototype,P$=O$.toString;function ui(e){if(e!=null){try{return P$.call(e)}catch{}try{return e+""}catch{}}return ""}var _$=/[\\^$.*+?()[\]{}|]/g,I$=/^\[object .+?Constructor\]$/,R$=Function.prototype,M$=Object.prototype,T$=R$.toString,N$=M$.hasOwnProperty,A$=RegExp("^"+T$.call(N$).replace(_$,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function D$(e){if(!fo(e)||E$(e))return !1;var t=hb(e)?A$:I$;return t.test(ui(e))}function k$(e,t){return e==null?void 0:e[t]}function di(e,t){var n=k$(e,t);return D$(n)?n:void 0}var L$=di(Ur,"WeakMap");const Hd=L$;function F$(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)}function z$(){}var j$=800,H$=16,B$=Date.now;function W$(e){var t=0,n=0;return function(){var r=B$(),o=H$-(r-n);if(n=r,o>0){if(++t>=j$)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function V$(e){return function(){return e}}var G$=function(){try{var e=di(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Vl=G$;var U$=Vl?function(e,t){return Vl(e,"toString",{configurable:!0,enumerable:!1,value:V$(t),writable:!0})}:mb;const K$=U$;var X$=W$(K$);const q$=X$;function Y$(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 Z$(e){return e!==e}function Q$(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return -1}function J$(e,t,n){return t===t?Q$(e,t,n):Y$(e,Z$,n)}function ex(e,t){var n=e==null?0:e.length;return !!n&&J$(e,t,0)>-1}var tx=9007199254740991,nx=/^(?:0|[1-9]\d*)$/;function hm(e,t){var n=typeof e;return t=t??tx,!!t&&(n=="number"||n!="symbol"&&nx.test(e))&&e>-1&&e%1==0&&e<t}function rx(e,t,n){t=="__proto__"&&Vl?Vl(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n;}function vm(e,t){return e===t||e!==e&&t!==t}var ox=Object.prototype,ix=ox.hasOwnProperty;function ax(e,t,n){var r=e[t];(!(ix.call(e,t)&&vm(r,n))||n===void 0&&!(t in e))&&rx(e,t,n);}var sv=Math.max;function sx(e,t,n){return t=sv(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=sv(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),F$(e,this,s)}}var lx=9007199254740991;function gm(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=lx}function cx(e){return e!=null&&gm(e.length)&&!hb(e)}var ux=Object.prototype;function dx(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||ux;return e===n}function fx(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var mx="[object Arguments]";function lv(e){return ea(e)&&ma(e)==mx}var vb=Object.prototype,hx=vb.hasOwnProperty,vx=vb.propertyIsEnumerable,gx=lv(function(){return arguments}())?lv:function(e){return ea(e)&&hx.call(e,"callee")&&!vx.call(e,"callee")};const pm=gx;function px(){return !1}var gb=typeof ao=="object"&&ao&&!ao.nodeType&&ao,cv=gb&&typeof so=="object"&&so&&!so.nodeType&&so,bx=cv&&cv.exports===gb,uv=bx?Ur.Buffer:void 0,yx=uv?uv.isBuffer:void 0,Cx=yx||px;const Bd=Cx;var Sx="[object Arguments]",wx="[object Array]",$x="[object Boolean]",xx="[object Date]",Ex="[object Error]",Ox="[object Function]",Px="[object Map]",_x="[object Number]",Ix="[object Object]",Rx="[object RegExp]",Mx="[object Set]",Tx="[object String]",Nx="[object WeakMap]",Ax="[object ArrayBuffer]",Dx="[object DataView]",kx="[object Float32Array]",Lx="[object Float64Array]",Fx="[object Int8Array]",zx="[object Int16Array]",jx="[object Int32Array]",Hx="[object Uint8Array]",Bx="[object Uint8ClampedArray]",Wx="[object Uint16Array]",Vx="[object Uint32Array]",Wt={};Wt[kx]=Wt[Lx]=Wt[Fx]=Wt[zx]=Wt[jx]=Wt[Hx]=Wt[Bx]=Wt[Wx]=Wt[Vx]=!0;Wt[Sx]=Wt[wx]=Wt[Ax]=Wt[$x]=Wt[Dx]=Wt[xx]=Wt[Ex]=Wt[Ox]=Wt[Px]=Wt[_x]=Wt[Ix]=Wt[Rx]=Wt[Mx]=Wt[Tx]=Wt[Nx]=!1;function Gx(e){return ea(e)&&gm(e.length)&&!!Wt[ma(e)]}function Ux(e){return function(t){return e(t)}}var pb=typeof ao=="object"&&ao&&!ao.nodeType&&ao,Ua=pb&&typeof so=="object"&&so&&!so.nodeType&&so,Kx=Ua&&Ua.exports===pb,Lu=Kx&&ub.process,Xx=function(){try{var e=Ua&&Ua.require&&Ua.require("util").types;return e||Lu&&Lu.binding&&Lu.binding("util")}catch{}}();const dv=Xx;var fv=dv&&dv.isTypedArray,qx=fv?Ux(fv):Gx;const bb=qx;var Yx=Object.prototype,Zx=Yx.hasOwnProperty;function Qx(e,t){var n=Vr(e),r=!n&&pm(e),o=!n&&!r&&Bd(e),i=!n&&!r&&!o&&bb(e),a=n||r||o||i,s=a?fx(e.length,String):[],l=s.length;for(var c in e)(t||Zx.call(e,c))&&!(a&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||hm(c,l)))&&s.push(c);return s}function Jx(e,t){return function(n){return e(t(n))}}var eE=Jx(Object.keys,Object);const tE=eE;var nE=Object.prototype,rE=nE.hasOwnProperty;function oE(e){if(!dx(e))return tE(e);var t=[];for(var n in Object(e))rE.call(e,n)&&n!="constructor"&&t.push(n);return t}function yb(e){return cx(e)?Qx(e):oE(e)}var iE=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,aE=/^\w*$/;function bm(e,t){if(Vr(e))return !1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Hc(e)?!0:aE.test(e)||!iE.test(e)||t!=null&&e in Object(t)}var sE=di(Object,"create");const ds=sE;function lE(){this.__data__=ds?ds(null):{},this.size=0;}function cE(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var uE="__lodash_hash_undefined__",dE=Object.prototype,fE=dE.hasOwnProperty;function mE(e){var t=this.__data__;if(ds){var n=t[e];return n===uE?void 0:n}return fE.call(t,e)?t[e]:void 0}var hE=Object.prototype,vE=hE.hasOwnProperty;function gE(e){var t=this.__data__;return ds?t[e]!==void 0:vE.call(t,e)}var pE="__lodash_hash_undefined__";function bE(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ds&&t===void 0?pE:t,this}function li(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]);}}li.prototype.clear=lE;li.prototype.delete=cE;li.prototype.get=mE;li.prototype.has=gE;li.prototype.set=bE;function yE(){this.__data__=[],this.size=0;}function Bc(e,t){for(var n=e.length;n--;)if(vm(e[n][0],t))return n;return -1}var CE=Array.prototype,SE=CE.splice;function wE(e){var t=this.__data__,n=Bc(t,e);if(n<0)return !1;var r=t.length-1;return n==r?t.pop():SE.call(t,n,1),--this.size,!0}function $E(e){var t=this.__data__,n=Bc(t,e);return n<0?void 0:t[n][1]}function xE(e){return Bc(this.__data__,e)>-1}function EE(e,t){var n=this.__data__,r=Bc(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function po(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]);}}po.prototype.clear=yE;po.prototype.delete=wE;po.prototype.get=$E;po.prototype.has=xE;po.prototype.set=EE;var OE=di(Ur,"Map");const fs=OE;function PE(){this.size=0,this.__data__={hash:new li,map:new(fs||po),string:new li};}function _E(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Wc(e,t){var n=e.__data__;return _E(t)?n[typeof t=="string"?"string":"hash"]:n.map}function IE(e){var t=Wc(this,e).delete(e);return this.size-=t?1:0,t}function RE(e){return Wc(this,e).get(e)}function ME(e){return Wc(this,e).has(e)}function TE(e,t){var n=Wc(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function bo(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]);}}bo.prototype.clear=PE;bo.prototype.delete=IE;bo.prototype.get=RE;bo.prototype.has=ME;bo.prototype.set=TE;var NE="Expected a function";function ym(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(NE);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(ym.Cache||bo),n}ym.Cache=bo;var AE=500;function DE(e){var t=ym(e,function(r){return n.size===AE&&n.clear(),r}),n=t.cache;return t}var kE=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,LE=/\\(\\)?/g,FE=DE(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(kE,function(n,r,o,i){t.push(o?i.replace(LE,"$1"):r||n);}),t});const zE=FE;function jE(e){return e==null?"":fb(e)}function Vc(e,t){return Vr(e)?e:bm(e,t)?[e]:zE(jE(e))}var HE=1/0;function Rs(e){if(typeof e=="string"||Hc(e))return e;var t=e+"";return t=="0"&&1/e==-HE?"-0":t}function Cm(e,t){t=Vc(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Rs(t[n++])];return n&&n==r?e:void 0}function BE(e,t,n){var r=e==null?void 0:Cm(e,t);return r===void 0?n:r}function Cb(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var mv=Wr?Wr.isConcatSpreadable:void 0;function WE(e){return Vr(e)||pm(e)||!!(mv&&e&&e[mv])}function Sb(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=WE),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?Sb(s,t-1,n,r,o):Cb(o,s):r||(o[o.length]=s);}return o}function VE(e){var t=e==null?0:e.length;return t?Sb(e,1):[]}function GE(e){return q$(sx(e,void 0,VE),e+"")}var UE="Expected a function";function KE(e,t){var n;if(typeof t!="function")throw new TypeError(UE);return e=y$(e),function(){return --e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}function XE(){this.__data__=new po,this.size=0;}function qE(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function YE(e){return this.__data__.get(e)}function ZE(e){return this.__data__.has(e)}var QE=200;function JE(e,t){var n=this.__data__;if(n instanceof po){var r=n.__data__;if(!fs||r.length<QE-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new bo(r);}return n.set(e,t),this.size=n.size,this}function lo(e){var t=this.__data__=new po(e);this.size=t.size;}lo.prototype.clear=XE;lo.prototype.delete=qE;lo.prototype.get=YE;lo.prototype.has=ZE;lo.prototype.set=JE;function eO(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 tO(){return []}var nO=Object.prototype,rO=nO.propertyIsEnumerable,hv=Object.getOwnPropertySymbols,oO=hv?function(e){return e==null?[]:(e=Object(e),eO(hv(e),function(t){return rO.call(e,t)}))}:tO;const iO=oO;function aO(e,t,n){var r=t(e);return Vr(e)?r:Cb(r,n(e))}function vv(e){return aO(e,yb,iO)}var sO=di(Ur,"DataView");const Wd=sO;var lO=di(Ur,"Promise");const Vd=lO;var cO=di(Ur,"Set");const Bi=cO;var gv="[object Map]",uO="[object Object]",pv="[object Promise]",bv="[object Set]",yv="[object WeakMap]",Cv="[object DataView]",dO=ui(Wd),fO=ui(fs),mO=ui(Vd),hO=ui(Bi),vO=ui(Hd),Wo=ma;(Wd&&Wo(new Wd(new ArrayBuffer(1)))!=Cv||fs&&Wo(new fs)!=gv||Vd&&Wo(Vd.resolve())!=pv||Bi&&Wo(new Bi)!=bv||Hd&&Wo(new Hd)!=yv)&&(Wo=function(e){var t=ma(e),n=t==uO?e.constructor:void 0,r=n?ui(n):"";if(r)switch(r){case dO:return Cv;case fO:return gv;case mO:return pv;case hO:return bv;case vO:return yv}return t});const Sv=Wo;var gO=Ur.Uint8Array;const wv=gO;var pO="__lodash_hash_undefined__";function bO(e){return this.__data__.set(e,pO),this}function yO(e){return this.__data__.has(e)}function ms(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new bo;++t<n;)this.add(e[t]);}ms.prototype.add=ms.prototype.push=bO;ms.prototype.has=yO;function CO(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 wb(e,t){return e.has(t)}var SO=1,wO=2;function $b(e,t,n,r,o,i){var a=n&SO,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return !1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,m=!0,h=n&wO?new ms: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(!CO(t,function(b,y){if(!wb(h,y)&&(v===b||o(v,b,n,r,i)))return h.push(y)})){m=!1;break}}else if(!(v===g||o(v,g,n,r,i))){m=!1;break}}return i.delete(e),i.delete(t),m}function $O(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r];}),n}function Sm(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r;}),n}var xO=1,EO=2,OO="[object Boolean]",PO="[object Date]",_O="[object Error]",IO="[object Map]",RO="[object Number]",MO="[object RegExp]",TO="[object Set]",NO="[object String]",AO="[object Symbol]",DO="[object ArrayBuffer]",kO="[object DataView]",$v=Wr?Wr.prototype:void 0,Fu=$v?$v.valueOf:void 0;function LO(e,t,n,r,o,i,a){switch(n){case kO:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return !1;e=e.buffer,t=t.buffer;case DO:return !(e.byteLength!=t.byteLength||!i(new wv(e),new wv(t)));case OO:case PO:case RO:return vm(+e,+t);case _O:return e.name==t.name&&e.message==t.message;case MO:case NO:return e==t+"";case IO:var s=$O;case TO:var l=r&xO;if(s||(s=Sm),e.size!=t.size&&!l)return !1;var c=a.get(e);if(c)return c==t;r|=EO,a.set(e,t);var u=$b(s(e),s(t),r,o,i,a);return a.delete(e),u;case AO:if(Fu)return Fu.call(e)==Fu.call(t)}return !1}var FO=1,zO=Object.prototype,jO=zO.hasOwnProperty;function HO(e,t,n,r,o,i){var a=n&FO,s=vv(e),l=s.length,c=vv(t),u=c.length;if(l!=u&&!a)return !1;for(var d=l;d--;){var m=s[d];if(!(a?m in t:jO.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],y=t[m];if(r)var w=a?r(y,b,m,t,e,i):r(b,y,m,e,t,i);if(!(w===void 0?b===y||o(b,y,n,r,i):w)){g=!1;break}p||(p=m=="constructor");}if(g&&!p){var x=e.constructor,C=t.constructor;x!=C&&"constructor"in e&&"constructor"in t&&!(typeof x=="function"&&x instanceof x&&typeof C=="function"&&C instanceof C)&&(g=!1);}return i.delete(e),i.delete(t),g}var BO=1,xv="[object Arguments]",Ev="[object Array]",il="[object Object]",WO=Object.prototype,Ov=WO.hasOwnProperty;function VO(e,t,n,r,o,i){var a=Vr(e),s=Vr(t),l=a?Ev:Sv(e),c=s?Ev:Sv(t);l=l==xv?il:l,c=c==xv?il:c;var u=l==il,d=c==il,m=l==c;if(m&&Bd(e)){if(!Bd(t))return !1;a=!0,u=!1;}if(m&&!u)return i||(i=new lo),a||bb(e)?$b(e,t,n,r,o,i):LO(e,t,l,n,r,o,i);if(!(n&BO)){var h=u&&Ov.call(e,"__wrapped__"),v=d&&Ov.call(t,"__wrapped__");if(h||v){var g=h?e.value():e,p=v?t.value():t;return i||(i=new lo),o(g,p,n,r,i)}}return m?(i||(i=new lo),HO(e,t,n,r,o,i)):!1}function Gc(e,t,n,r,o){return e===t?!0:e==null||t==null||!ea(e)&&!ea(t)?e!==e&&t!==t:VO(e,t,n,r,Gc,o)}var GO=1,UO=2;function KO(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],u=s[1];if(a&&s[2]){if(c===void 0&&!(l in e))return !1}else {var d=new lo;if(r)var m=r(c,u,l,e,t,d);if(!(m===void 0?Gc(u,c,GO|UO,r,d):m))return !1}}return !0}function xb(e){return e===e&&!fo(e)}function XO(e){for(var t=yb(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,xb(o)];}return t}function Eb(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function qO(e){var t=XO(e);return t.length==1&&t[0][2]?Eb(t[0][0],t[0][1]):function(n){return n===e||KO(n,e,t)}}function YO(e,t){return e!=null&&t in Object(e)}function ZO(e,t,n){t=Vc(t,e);for(var r=-1,o=t.length,i=!1;++r<o;){var a=Rs(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&&gm(o)&&hm(a,o)&&(Vr(e)||pm(e)))}function Ob(e,t){return e!=null&&ZO(e,t,YO)}var QO=1,JO=2;function eP(e,t){return bm(e)&&xb(t)?Eb(Rs(e),t):function(n){var r=BE(n,e);return r===void 0&&r===t?Ob(n,e):Gc(t,r,QO|JO)}}function tP(e){return function(t){return t==null?void 0:t[e]}}function nP(e){return function(t){return Cm(t,e)}}function rP(e){return bm(e)?tP(Rs(e)):nP(e)}function oP(e){return typeof e=="function"?e:e==null?mb:typeof e=="object"?Vr(e)?eP(e[0],e[1]):qO(e):rP(e)}var iP=function(){return Ur.Date.now()};const zu=iP;var aP="Expected a function",sP=Math.max,lP=Math.min;function Pb(e,t,n){var r,o,i,a,s,l,c=0,u=!1,d=!1,m=!0;if(typeof e!="function")throw new TypeError(aP);t=jd(t)||0,fo(n)&&(u=!!n.leading,d="maxWait"in n,i=d?sP(jd(n.maxWait)||0,t):i,m="trailing"in n?!!n.trailing:m);function h(S){var $=r,P=o;return r=o=void 0,c=S,a=e.apply(P,$),a}function v(S){return c=S,s=setTimeout(b,t),u?h(S):a}function g(S){var $=S-l,P=S-c,O=t-$;return d?lP(O,i-P):O}function p(S){var $=S-l,P=S-c;return l===void 0||$>=t||$<0||d&&P>=i}function b(){var S=zu();if(p(S))return y(S);s=setTimeout(b,g(S));}function y(S){return s=void 0,m&&r?h(S):(r=o=void 0,a)}function w(){s!==void 0&&clearTimeout(s),c=0,r=l=o=s=void 0;}function x(){return s===void 0?a:y(zu())}function C(){var S=zu(),$=p(S);if(r=arguments,o=this,l=S,$){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 C.cancel=w,C.flush=x,C}function cP(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 uP(e,t){return Gc(e,t)}function dP(e,t,n,r){if(!fo(e))return e;t=Vc(t,e);for(var o=-1,i=t.length,a=i-1,s=e;s!=null&&++o<i;){var l=Rs(t[o]),c=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(o!=a){var u=s[l];c=r?r(u,l,s):void 0,c===void 0&&(c=fo(u)?u:hm(t[o+1])?[]:{});}ax(s,l,c),s=s[l];}return e}function fP(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=Cm(e,a);n(s,a)&&dP(i,Vc(a,e),s);}return i}function mP(e){return KE(2,e)}function hP(e,t){return fP(e,t,function(n,r){return Ob(e,r)})}var vP=GE(function(e,t){return e==null?{}:hP(e,t)});const _b=vP;var gP="Expected a function";function pP(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(gP);return fo(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Pb(e,t,{leading:r,maxWait:t,trailing:o})}var bP=1/0,yP=Bi&&1/Sm(new Bi([,-0]))[1]==bP?function(e){return new Bi(e)}:z$;const CP=yP;var SP=200;function wP(e,t,n){var r=-1,o=ex,i=e.length,a=!0,s=[],l=s;if(n)a=!1,o=cP;else if(i>=SP){var c=t?null:CP(e);if(c)return Sm(c);a=!1,o=wb,l=new ms;}else l=t?[]:s;e:for(;++r<i;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,a&&d===d){for(var m=l.length;m--;)if(l[m]===d)continue e;t&&l.push(d),s.push(u);}else o(l,d,n)||(l!==s&&l.push(d),s.push(u));}return s}function Uc(e,t){return e&&e.length?wP(e,oP(t)):[]}const $P=Symbol(),wm=Symbol(),_a="a",Ka="w";let xP=(e,t)=>new Proxy(e,t);const Gd=Object.getPrototypeOf,Ud=new WeakMap,Ib=e=>e&&(Ud.has(e)?Ud.get(e):Gd(e)===Object.prototype||Gd(e)===Array.prototype),Gl=e=>typeof e=="object"&&e!==null,EP=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(Gd(e),t)},$m=e=>e[wm]||e,Rb=(e,t,n,r)=>{if(!Ib(e))return e;let o=r&&r.get(e);if(!o){const l=$m(e);o=(c=>Object.values(Object.getOwnPropertyDescriptors(c)).some(u=>!u.configurable&&!u.writable))(l)?[l,EP(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 u={f:c};let d=!1;const m=(v,g)=>{if(!d){let p=u[_a].get(l);if(p||(p={},u[_a].set(l,p)),v===Ka)p[Ka]=!0;else {let b=p[v];b||(b=new Set,p[v]=b),b.add(g);}}},h={get:(v,g)=>g===wm?l:(m("k",g),Rb(Reflect.get(v,g),u[_a],u.c,u.t)),has:(v,g)=>g===$P?(d=!0,u[_a].delete(l),!0):(m("h",g),Reflect.has(v,g)),getOwnPropertyDescriptor:(v,g)=>(m("o",g),Reflect.getOwnPropertyDescriptor(v,g)),ownKeys:v=>(m(Ka),Reflect.ownKeys(v))};return c&&(h.set=h.deleteProperty=()=>!1),[h,u]})(i,!!a),s[1].p=xP(a||i,s[0]),n&&n.set(i,s)),s[1][_a]=t,s[1].c=n,s[1].t=r,s[1].p},Mb=(e,t,n,r)=>{if(Object.is(e,t))return !1;if(!Gl(e)||!Gl(t))return !0;const o=n.get($m(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[Ka]===!0){if(i=((a,s)=>{const l=Reflect.ownKeys(a),c=Reflect.ownKeys(s);return l.length!==c.length||l.some((u,d)=>u!==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=Mb(e[a],t[a],n,r),i)return i;return i===null&&(i=!0),i}finally{r&&r.set(e,{n:t,g:i});}},OP=e=>Ib(e)&&e[wm]||null,Pv=(e,t=!0)=>{Ud.set(e,t);},PP=(e,t,n)=>{const r=[],o=new WeakSet,i=(a,s)=>{if(o.has(a))return;Gl(a)&&o.add(a);const l=Gl(a)&&t.get($m(a));if(l){var c,u;if((c=l.h)==null||c.forEach(m=>{const h=`:has(${String(m)})`;r.push(s?[...s,h]:[h]);}),l[Ka]===!0){const m=":ownKeys";r.push(s?[...s,m]:[m]);}else {var d;(d=l.o)==null||d.forEach(m=>{const h=`:hasOwn(${String(m)})`;r.push(s?[...s,h]:[h]);});}(u=l.k)==null||u.forEach(m=>{n&&!("value"in(Object.getOwnPropertyDescriptor(a,m)||{}))||i(a[m],s?[...s,m]:[m]);});}else s&&r.push(s);};return i(e),r},ju=e=>typeof e=="object"&&e!==null,Oo=new WeakMap,al=new WeakSet,_P=(e=Object.is,t=(c,u)=>new Proxy(c,u),n=c=>ju(c)&&!al.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,u,d=r)=>{const m=o.get(c);if((m==null?void 0:m[0])===u)return m[1];const h=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c));return Pv(h,!0),o.set(c,[u,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(al.has(g))Pv(g,!1);else if(g instanceof Promise)delete p.value,p.get=()=>d(g);else if(Oo.has(g)){const[b,y]=Oo.get(g);p.value=i(b,y(),d);}Object.defineProperty(h,v,p);}),h},a=new WeakMap,s=[1,1],l=c=>{if(!ju(c))throw new Error("object required");const u=a.get(c);if(u)return u;let d=s[0];const m=new Set,h=(O,E=++s[0])=>{d!==E&&(d=E,m.forEach(N=>N(O,E)));};let v=s[1];const g=(O=++s[1])=>(v!==O&&!m.size&&(v=O,b.forEach(([E])=>{const N=E[1](O);N>d&&(d=N);})),d),p=O=>(E,N)=>{const I=[...E];I[1]=[O,...I[1]],h(I,N);},b=new Map,y=(O,E)=>{if(({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&b.has(O))throw new Error("prop listener already exists");if(m.size){const N=E[3](p(O));b.set(O,[E,N]);}else b.set(O,[E]);},w=O=>{var E;const N=b.get(O);N&&(b.delete(O),(E=N[1])==null||E.call(N));},x=O=>(m.add(O),m.size===1&&b.forEach(([N,I],R)=>{if(({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&I)throw new Error("remove already exists");const _=N[3](p(R));b.set(R,[N,_]);}),()=>{m.delete(O),m.size===0&&b.forEach(([N,I],R)=>{I&&(I(),b.set(R,[N]));});}),C=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c)),$=t(C,{deleteProperty(O,E){const N=Reflect.get(O,E);w(E);const I=Reflect.deleteProperty(O,E);return I&&h(["delete",[E],N]),I},set(O,E,N,I){const R=Reflect.has(O,E),_=Reflect.get(O,E,I);if(R&&(e(_,N)||a.has(N)&&e(_,a.get(N))))return !0;w(E),ju(N)&&(N=OP(N)||N);let M=N;if(N instanceof Promise)N.then(A=>{N.status="fulfilled",N.value=A,h(["resolve",[E],A]);}).catch(A=>{N.status="rejected",N.reason=A,h(["reject",[E],A]);});else {!Oo.has(N)&&n(N)&&(M=l(N));const A=!al.has(M)&&Oo.get(M);A&&y(E,A);}return Reflect.set(O,E,M,I),h(["set",[E],N,_]),!0}});a.set(c,$);const P=[C,g,i,x];return Oo.set($,P),Reflect.ownKeys(c).forEach(O=>{const E=Object.getOwnPropertyDescriptor(c,O);"value"in E&&($[O]=c[O],delete E.value,delete E.writable),Object.defineProperty(C,O,E);}),$})=>[l,Oo,al,e,t,n,r,o,i,a,s],[IP]=_P();function ha(e={}){return IP(e)}function Tb(e,t,n){const r=Oo.get(e);({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&!r&&console.warn("Please use proxy object");let o;const i=[],a=r[3];let s=!1;const c=a(u=>{if(i.push(u),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 _v(e,t){const n=Oo.get(e);({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&!n&&console.warn("Please use proxy object");const[r,o,i]=n;return i(r,o(),t)}var Nb={exports:{}},Ab={};/**
   * @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 ta=f;function RP(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var MP=typeof Object.is=="function"?Object.is:RP,TP=ta.useState,NP=ta.useEffect,AP=ta.useLayoutEffect,DP=ta.useDebugValue;function kP(e,t){var n=t(),r=TP({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return AP(function(){o.value=n,o.getSnapshot=t,Hu(o)&&i({inst:o});},[e,n,t]),NP(function(){return Hu(o)&&i({inst:o}),e(function(){Hu(o)&&i({inst:o});})},[e]),DP(n),n}function Hu(e){var t=e.getSnapshot;e=e.value;try{var n=t();return !MP(e,n)}catch{return !0}}function LP(e,t){return t()}var FP=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?LP:kP;Ab.useSyncExternalStore=ta.useSyncExternalStore!==void 0?ta.useSyncExternalStore:FP;Nb.exports=Ab;var zP=Nb.exports;const jP=go(zP),{use:Iv}=f,{useSyncExternalStore:HP}=jP,BP=(e,t)=>{const n=f.useRef();f.useEffect(()=>{n.current=PP(e,t,!0);}),f.useDebugValue(n.current);},WP=new WeakMap;function fi(e,t){const n=t==null?void 0:t.sync,r=f.useRef(),o=f.useRef();let i=!0;const a=HP(f.useCallback(c=>{const u=Tb(e,c,n);return c(),u},[e,n]),()=>{const c=_v(e,Iv);try{if(!i&&r.current&&o.current&&!Mb(r.current,c,o.current,new WeakMap))return r.current}catch{}return c},()=>_v(e,Iv));i=!1;const s=new WeakMap;f.useEffect(()=>{r.current=a,o.current=s;}),({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&BP(a,s);const l=f.useMemo(()=>new WeakMap,[]);return Rb(a,s,l,WP)}const xm={accessKey:"",useNarrowMode:!1,initialShowMore:!1,pureRecommend:!1,usePcDesktopApi:!1,useParallelRequest:!0,autoPreviewWhenKeyboardSelect:!1,autoPreviewUpdateInterval:400,autoPreviewWhenHover:!1,theme:"",colorPickerThemeSelectedColor:"",filterMinPlayCountEnabled:!1,filterMinPlayCount:1e4,filterMinDurationEnabled:!1,filterMinDuration:60,enableFilterForFollowed:!1,onlyFollowMode:!1,useDynamicApi:!1},pt=ha({...xm}),Db=Object.keys(xm),cr=function(){return fi(pt)},VP=Ao,kb=`${VP}.settings`;function GP(){const e=GM_getValue(kb);e&&typeof e=="object"&&Object.assign(pt,_b(e,Db)),Tb(pt,()=>{UP();});}function UP(){const e=_b(pt,Db);GM_setValue(kb,e);}function co(e){Object.assign(pt,e);}function KP(){return co(xm)}GP();var Lb={exports:{}};(function(e,t){(function(n,r){e.exports=r();})(Hp,function(){var n=1e3,r=6e4,o=36e5,i="millisecond",a="second",s="minute",l="hour",c="day",u="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,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(R){var _=["th","st","nd","rd"],M=R%100;return "["+R+(_[(M-20)%10]||_[M]||_[0])+"]"}},w=function(R,_,M){var A=String(R);return !A||A.length>=_?R:""+Array(_+1-A.length).join(M)+R},x={s:w,z:function(R){var _=-R.utcOffset(),M=Math.abs(_),A=Math.floor(M/60),T=M%60;return (_<=0?"+":"-")+w(A,2,"0")+":"+w(T,2,"0")},m:function R(_,M){if(_.date()<M.date())return -R(M,_);var A=12*(M.year()-_.year())+(M.month()-_.month()),T=_.clone().add(A,d),D=M-T<0,L=_.clone().add(A+(D?-1:1),d);return +(-(A+(M-T)/(D?T-L:L-T))||0)},a:function(R){return R<0?Math.ceil(R)||0:Math.floor(R)},p:function(R){return {M:d,y:h,w:u,d:c,D:v,h:l,m:s,s:a,ms:i,Q:m}[R]||String(R||"").toLowerCase().replace(/s$/,"")},u:function(R){return R===void 0}},C="en",S={};S[C]=y;var $=function(R){return R instanceof N},P=function R(_,M,A){var T;if(!_)return C;if(typeof _=="string"){var D=_.toLowerCase();S[D]&&(T=D),M&&(S[D]=M,T=D);var L=_.split("-");if(!T&&L.length>1)return R(L[0])}else {var z=_.name;S[z]=_,T=z;}return !A&&T&&(C=T),T||!A&&C},O=function(R,_){if($(R))return R.clone();var M=typeof _=="object"?_:{};return M.date=R,M.args=arguments,new N(M)},E=x;E.l=P,E.i=$,E.w=function(R,_){return O(R,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var N=function(){function R(M){this.$L=P(M.locale,null,!0),this.parse(M);}var _=R.prototype;return _.parse=function(M){this.$d=function(A){var T=A.date,D=A.utc;if(T===null)return new Date(NaN);if(E.u(T))return new Date;if(T instanceof Date)return new Date(T);if(typeof T=="string"&&!/Z$/i.test(T)){var L=T.match(p);if(L){var z=L[2]-1||0,V=(L[7]||"0").substring(0,3);return D?new Date(Date.UTC(L[1],z,L[3]||1,L[4]||0,L[5]||0,L[6]||0,V)):new Date(L[1],z,L[3]||1,L[4]||0,L[5]||0,L[6]||0,V)}}return new Date(T)}(M),this.$x=M.x||{},this.init();},_.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds();},_.$utils=function(){return E},_.isValid=function(){return this.$d.toString()!==g},_.isSame=function(M,A){var T=O(M);return this.startOf(A)<=T&&T<=this.endOf(A)},_.isAfter=function(M,A){return O(M)<this.startOf(A)},_.isBefore=function(M,A){return this.endOf(A)<O(M)},_.$g=function(M,A,T){return E.u(M)?this[A]:this.set(T,M)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(M,A){var T=this,D=!!E.u(A)||A,L=E.p(M),z=function(Y,ee){var re=E.w(T.$u?Date.UTC(T.$y,ee,Y):new Date(T.$y,ee,Y),T);return D?re:re.endOf(c)},V=function(Y,ee){return E.w(T.toDate()[Y].apply(T.toDate("s"),(D?[0,0,0,0]:[23,59,59,999]).slice(ee)),T)},F=this.$W,G=this.$M,H=this.$D,K="set"+(this.$u?"UTC":"");switch(L){case h:return D?z(1,0):z(31,11);case d:return D?z(1,G):z(0,G+1);case u:var te=this.$locale().weekStart||0,Z=(F<te?F+7:F)-te;return z(D?H-Z:H+(6-Z),G);case c:case v:return V(K+"Hours",0);case l:return V(K+"Minutes",1);case s:return V(K+"Seconds",2);case a:return V(K+"Milliseconds",3);default:return this.clone()}},_.endOf=function(M){return this.startOf(M,!1)},_.$set=function(M,A){var T,D=E.p(M),L="set"+(this.$u?"UTC":""),z=(T={},T[c]=L+"Date",T[v]=L+"Date",T[d]=L+"Month",T[h]=L+"FullYear",T[l]=L+"Hours",T[s]=L+"Minutes",T[a]=L+"Seconds",T[i]=L+"Milliseconds",T)[D],V=D===c?this.$D+(A-this.$W):A;if(D===d||D===h){var F=this.clone().set(v,1);F.$d[z](V),F.init(),this.$d=F.set(v,Math.min(this.$D,F.daysInMonth())).$d;}else z&&this.$d[z](V);return this.init(),this},_.set=function(M,A){return this.clone().$set(M,A)},_.get=function(M){return this[E.p(M)]()},_.add=function(M,A){var T,D=this;M=Number(M);var L=E.p(A),z=function(G){var H=O(D);return E.w(H.date(H.date()+Math.round(G*M)),D)};if(L===d)return this.set(d,this.$M+M);if(L===h)return this.set(h,this.$y+M);if(L===c)return z(1);if(L===u)return z(7);var V=(T={},T[s]=r,T[l]=o,T[a]=n,T)[L]||1,F=this.$d.getTime()+M*V;return E.w(F,this)},_.subtract=function(M,A){return this.add(-1*M,A)},_.format=function(M){var A=this,T=this.$locale();if(!this.isValid())return T.invalidDate||g;var D=M||"YYYY-MM-DDTHH:mm:ssZ",L=E.z(this),z=this.$H,V=this.$m,F=this.$M,G=T.weekdays,H=T.months,K=function(ee,re,ae,ce){return ee&&(ee[re]||ee(A,D))||ae[re].slice(0,ce)},te=function(ee){return E.s(z%12||12,ee,"0")},Z=T.meridiem||function(ee,re,ae){var ce=ee<12?"AM":"PM";return ae?ce.toLowerCase():ce},Y={YY:String(this.$y).slice(-2),YYYY:E.s(this.$y,4,"0"),M:F+1,MM:E.s(F+1,2,"0"),MMM:K(T.monthsShort,F,H,3),MMMM:K(H,F),D:this.$D,DD:E.s(this.$D,2,"0"),d:String(this.$W),dd:K(T.weekdaysMin,this.$W,G,2),ddd:K(T.weekdaysShort,this.$W,G,3),dddd:G[this.$W],H:String(z),HH:E.s(z,2,"0"),h:te(1),hh:te(2),a:Z(z,V,!0),A:Z(z,V,!1),m:String(V),mm:E.s(V,2,"0"),s:String(this.$s),ss:E.s(this.$s,2,"0"),SSS:E.s(this.$ms,3,"0"),Z:L};return D.replace(b,function(ee,re){return re||Y[ee]||L.replace(":","")})},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(M,A,T){var D,L=E.p(A),z=O(M),V=(z.utcOffset()-this.utcOffset())*r,F=this-z,G=E.m(this,z);return G=(D={},D[h]=G/12,D[d]=G,D[m]=G/3,D[u]=(F-V)/6048e5,D[c]=(F-V)/864e5,D[l]=F/o,D[s]=F/r,D[a]=F/n,D)[L]||F,T?G:E.a(G)},_.daysInMonth=function(){return this.endOf(d).$D},_.$locale=function(){return S[this.$L]},_.locale=function(M,A){if(!M)return this.$L;var T=this.clone(),D=P(M,A,!0);return D&&(T.$L=D),T},_.clone=function(){return E.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()},R}(),I=N.prototype;return O.prototype=I,[["$ms",i],["$s",a],["$m",s],["$H",l],["$W",c],["$M",d],["$y",h],["$D",v]].forEach(function(R){I[R[1]]=function(_){return this.$g(_,R[0],R[1])};}),O.extend=function(R,_){return R.$i||(R(_,N,O),R.$i=!0),O},O.locale=P,O.isDayjs=$,O.unix=function(R){return O(1e3*R)},O.en=S[C],O.Ls=S,O.p={},O});})(Lb);var XP=Lb.exports;const Ms=go(XP);var Fb={exports:{}};(function(e,t){(function(n,r){e.exports=r();})(Hp,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,u=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:u,days:s,hours:a,minutes:i,seconds:o,milliseconds:1,weeks:6048e5},h=function(C){return C instanceof x},v=function(C,S,$){return new x(C,$,S.$l)},g=function(C){return r.p(C)+"s"},p=function(C){return C<0},b=function(C){return p(C)?Math.ceil(C):Math.floor(C)},y=function(C){return Math.abs(C)},w=function(C,S){return C?p(C)?{negative:!0,format:""+y(C)+S}:{negative:!1,format:""+C+S}:{negative:!1,format:""}},x=function(){function C($,P,O){var E=this;if(this.$d={},this.$l=O,$===void 0&&(this.$ms=0,this.parseFromMilliseconds()),P)return v($*m[g(P)],this);if(typeof $=="number")return this.$ms=$,this.parseFromMilliseconds(),this;if(typeof $=="object")return Object.keys($).forEach(function(R){E.$d[g(R)]=$[R];}),this.calMilliseconds(),this;if(typeof $=="string"){var N=$.match(d);if(N){var I=N.slice(2).map(function(R){return R!=null?Number(R):0});return this.$d.years=I[0],this.$d.months=I[1],this.$d.weeks=I[2],this.$d.days=I[3],this.$d.hours=I[4],this.$d.minutes=I[5],this.$d.seconds=I[6],this.calMilliseconds(),this}}return this}var S=C.prototype;return S.calMilliseconds=function(){var $=this;this.$ms=Object.keys(this.$d).reduce(function(P,O){return P+($.$d[O]||0)*m[O]},0);},S.parseFromMilliseconds=function(){var $=this.$ms;this.$d.years=b($/c),$%=c,this.$d.months=b($/u),$%=u,this.$d.days=b($/s),$%=s,this.$d.hours=b($/a),$%=a,this.$d.minutes=b($/i),$%=i,this.$d.seconds=b($/o),$%=o,this.$d.milliseconds=$;},S.toISOString=function(){var $=w(this.$d.years,"Y"),P=w(this.$d.months,"M"),O=+this.$d.days||0;this.$d.weeks&&(O+=7*this.$d.weeks);var E=w(O,"D"),N=w(this.$d.hours,"H"),I=w(this.$d.minutes,"M"),R=this.$d.seconds||0;this.$d.milliseconds&&(R+=this.$d.milliseconds/1e3);var _=w(R,"S"),M=$.negative||P.negative||E.negative||N.negative||I.negative||_.negative,A=N.format||I.format||_.format?"T":"",T=(M?"-":"")+"P"+$.format+P.format+E.format+A+N.format+I.format+_.format;return T==="P"||T==="-P"?"P0D":T},S.toJSON=function(){return this.toISOString()},S.format=function($){var P=$||"YYYY-MM-DDTHH:mm:ss",O={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return P.replace(l,function(E,N){return N||String(O[E])})},S.as=function($){return this.$ms/m[g($)]},S.get=function($){var P=this.$ms,O=g($);return O==="milliseconds"?P%=1e3:P=O==="weeks"?b(P/m[O]):this.$d[O],P===0?0:P},S.add=function($,P,O){var E;return E=P?$*m[g(P)]:h($)?$.$ms:v($,this).$ms,v(this.$ms+E*(O?-1:1),this)},S.subtract=function($,P){return this.add($,P,!0)},S.locale=function($){var P=this.clone();return P.$l=$,P},S.clone=function(){return v(this.$ms,this)},S.humanize=function($){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!$)},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")},C}();return function(C,S,$){n=$,r=$().$utils(),$.duration=function(E,N){var I=$.locale();return v(E,{$l:I},N)},$.isDuration=h;var P=S.prototype.add,O=S.prototype.subtract;S.prototype.add=function(E,N){return h(E)&&(E=E.asMilliseconds()),P.bind(this)(E,N)},S.prototype.subtract=function(E,N){return h(E)&&(E=E.asMilliseconds()),O.bind(this)(E,N)};}});})(Fb);var qP=Fb.exports;const YP=go(qP),na=mP(()=>!!document.querySelectorAll(".bili-feed4").length),zb=()=>document.body.classList.contains("dark"),jb=ha({value:zb()});function Kc(){return fi(jb).value}const Hb=new MutationObserver(function(){jb.value=zb();});Hb.observe(document.body,{attributes:!0,attributeFilter:["class"]});window.addEventListener("unload",()=>{Hb.disconnect();});function Cn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nt(e){"@babel/helpers - typeof";return nt=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},nt(e)}function ZP(e,t){if(nt(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(nt(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return (t==="string"?String:Number)(e)}function Bb(e){var t=ZP(e,"string");return nt(t)==="symbol"?t:String(t)}function Rv(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,Bb(r.key),r);}}function Sn(e,t,n){return t&&Rv(e.prototype,t),n&&Rv(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Kd(e,t){return Kd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Kd(e,t)}function mi(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&&Kd(e,t);}function Ul(e){return Ul=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ul(e)}function QP(){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 Kl(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function JP(e,t){if(t&&(nt(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Kl(e)}function hi(e){var t=QP();return function(){var r=Ul(e),o;if(t){var i=Ul(this).constructor;o=Reflect.construct(r,arguments,i);}else o=r.apply(this,arguments);return JP(this,o)}}var Wb={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;})();})(Wb);var e_=Wb.exports;const U=go(e_);function ur(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return f.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(ur(r)):fm.isFragment(r)&&r.props?n=n.concat(ur(r.props.children,t)):n.push(r));}),n}var Xd={},t_=function(t){};function n_(e,t){}function r_(e,t){}function o_(){Xd={};}function Vb(e,t,n){!t&&!Xd[n]&&(e(!1,n),Xd[n]=!0);}function mn(e,t){Vb(n_,e,t);}function i_(e,t){Vb(r_,e,t);}mn.preMessage=t_;mn.resetWarned=o_;mn.noteOnce=i_;function q(e,t,n){return t=Bb(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mv(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 B(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Mv(Object(n),!0).forEach(function(r){q(e,r,n[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r));});}return e}function Ts(e,t,n){var r=f__namespace.useRef({});return (!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}function Em(e,t){typeof e=="function"?e(t):nt(e)==="object"&&e&&"current"in e&&(e.current=t);}function Fn(){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){Em(i,o);});}}function Ns(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ts(function(){return Fn.apply(void 0,t)},t,function(r,o){return r.length===o.length&&r.every(function(i,a){return i===o[a]})})}function vi(e){var t,n,r=fm.isMemo(e)?e.type.type:e.type;return !(typeof r=="function"&&!((t=r.prototype)!==null&&t!==void 0&&t.render)||typeof e=="function"&&!((n=e.prototype)!==null&&n!==void 0&&n.render))}function Xl(e){return e instanceof HTMLElement||e instanceof SVGElement}function ql(e){return Xl(e)?e:e instanceof f.Component?zp.findDOMNode(e):null}var Gb=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(o,i){return o[0]===n?(r=i,!0):!1}),r}return function(){function t(){this.__entries__=[];}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),o=this.__entries__[r];return o&&o[1]},t.prototype.set=function(n,r){var o=e(this.__entries__,n);~o?this.__entries__[o][1]=r:this.__entries__.push([n,r]);},t.prototype.delete=function(n){var r=this.__entries__,o=e(r,n);~o&&r.splice(o,1);},t.prototype.has=function(n){return !!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0);},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var o=0,i=this.__entries__;o<i.length;o++){var a=i[o];n.call(r,a[1],a[0]);}},t}()}(),qd=typeof window<"u"&&typeof document<"u"&&window.document===document,Yl=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")()}(),a_=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Yl):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),s_=2;function l_(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&s();}function a(){a_(i);}function s(){var l=Date.now();if(n){if(l-o<s_)return;r=!0;}else n=!0,r=!1,setTimeout(a,t);o=l;}return s}var c_=20,u_=["top","right","bottom","left","width","height","size","weight"],d_=typeof MutationObserver<"u",f_=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=l_(this.refresh.bind(this),c_);}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(){!qd||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),d_?(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(){!qd||!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=u_.some(function(i){return !!~r.indexOf(i)});o&&this.refresh();},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Ub=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0});}return e},ra=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Yl},Kb=Xc(0,0,0,0);function Zl(e){return parseFloat(e)||0}function Tv(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+Zl(i)},0)}function m_(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]=Zl(a);}return n}function h_(e){var t=e.getBBox();return Xc(0,0,t.width,t.height)}function v_(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Kb;var r=ra(e).getComputedStyle(e),o=m_(r),i=o.left+o.right,a=o.top+o.bottom,s=Zl(r.width),l=Zl(r.height);if(r.boxSizing==="border-box"&&(Math.round(s+i)!==t&&(s-=Tv(r,"left","right")+i),Math.round(l+a)!==n&&(l-=Tv(r,"top","bottom")+a)),!p_(e)){var c=Math.round(s+i)-t,u=Math.round(l+a)-n;Math.abs(c)!==1&&(s-=c),Math.abs(u)!==1&&(l-=u);}return Xc(o.left,o.top,s,l)}var g_=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof ra(e).SVGGraphicsElement}:function(e){return e instanceof ra(e).SVGElement&&typeof e.getBBox=="function"}}();function p_(e){return e===ra(e).document.documentElement}function b_(e){return qd?g_(e)?h_(e):v_(e):Kb}function y_(e){var t=e.x,n=e.y,r=e.width,o=e.height,i=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,a=Object.create(i.prototype);return Ub(a,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),a}function Xc(e,t,n,r){return {x:e,y:t,width:n,height:r}}var C_=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Xc(0,0,0,0),this.target=t;}return e.prototype.isActive=function(){var t=b_(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}(),S_=function(){function e(t,n){var r=y_(n);Ub(this,{target:t,contentRect:r});}return e}(),w_=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new Gb,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r;}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof ra(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new C_(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 ra(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 S_(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}(),Xb=typeof WeakMap<"u"?new WeakMap:new Gb,qb=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=f_.getInstance(),r=new w_(t,n,this);Xb.set(this,r);}return e}();["observe","unobserve","disconnect"].forEach(function(e){qb.prototype[e]=function(){var t;return (t=Xb.get(this))[e].apply(t,arguments)};});var $_=function(){return typeof Yl.ResizeObserver<"u"?Yl.ResizeObserver:qb}(),_o=new Map;function x_(e){e.forEach(function(t){var n,r=t.target;(n=_o.get(r))===null||n===void 0||n.forEach(function(o){return o(r)});});}var Yb=new $_(x_);function E_(e,t){_o.has(e)||(_o.set(e,new Set),Yb.observe(e)),_o.get(e).add(t);}function O_(e,t){_o.has(e)&&(_o.get(e).delete(t),_o.get(e).size||(Yb.unobserve(e),_o.delete(e)));}var P_=function(e){mi(n,e);var t=hi(n);function n(){return Cn(this,n),t.apply(this,arguments)}return Sn(n,[{key:"render",value:function(){return this.props.children}}]),n}(f__namespace.Component),Yd=f__namespace.createContext(null);function __(e){var t=e.children,n=e.onBatchResize,r=f__namespace.useRef(0),o=f__namespace.useRef([]),i=f__namespace.useContext(Yd),a=f__namespace.useCallback(function(s,l,c){r.current+=1;var u=r.current;o.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){u===r.current&&(n==null||n(o.current),o.current=[]);}),i==null||i(s,l,c);},[n,i]);return f__namespace.createElement(Yd.Provider,{value:a},t)}function I_(e,t){var n=e.children,r=e.disabled,o=f__namespace.useRef(null),i=f__namespace.useRef(null),a=f__namespace.useContext(Yd),s=typeof n=="function",l=s?n(o):n,c=f__namespace.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&f__namespace.isValidElement(l)&&vi(l),d=u?l.ref:null,m=f__namespace.useMemo(function(){return Fn(d,o)},[d,o]),h=function(){return ql(o.current)||ql(i.current)};f__namespace.useImperativeHandle(t,function(){return h()});var v=f__namespace.useRef(e);v.current=e;var g=f__namespace.useCallback(function(p){var b=v.current,y=b.onResize,w=b.data,x=p.getBoundingClientRect(),C=x.width,S=x.height,$=p.offsetWidth,P=p.offsetHeight,O=Math.floor(C),E=Math.floor(S);if(c.current.width!==O||c.current.height!==E||c.current.offsetWidth!==$||c.current.offsetHeight!==P){var N={width:O,height:E,offsetWidth:$,offsetHeight:P};c.current=N;var I=$===Math.round(C)?C:$,R=P===Math.round(S)?S:P,_=B(B({},N),{},{offsetWidth:I,offsetHeight:R});a==null||a(_,p,w),y&&Promise.resolve().then(function(){y(_,p);});}},[]);return f__namespace.useEffect(function(){var p=h();return p&&!r&&E_(p,g),function(){return O_(p,g)}},[o.current,r]),f__namespace.createElement(P_,{ref:i},u?f__namespace.cloneElement(l,{ref:m}):l)}var R_=f__namespace.forwardRef(I_),M_="rc-observer-key";function T_(e,t){var n=e.children,r=typeof n=="function"?[n]:ur(n);return r.map(function(o,i){var a=(o==null?void 0:o.key)||"".concat(M_,"-").concat(i);return f__namespace.createElement(R_,pe({},e,{key:a,ref:i===0?t:void 0}),o)})}var mo=f__namespace.forwardRef(T_);mo.Collection=__;function Mn(e,t){var n=B({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r];}),n}function Zd(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 N_(e){if(Array.isArray(e))return Zd(e)}function Zb(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Om(e,t){if(e){if(typeof e=="string")return Zd(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 Zd(e,t)}}function A_(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ge(e){return N_(e)||Zb(e)||Om(e)||A_()}var Qb=function(t){return +setTimeout(t,16)},Jb=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(Qb=function(t){return window.requestAnimationFrame(t)},Jb=function(t){return window.cancelAnimationFrame(t)});var Nv=0,Pm=new Map;function e0(e){Pm.delete(e);}var Nt=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Nv+=1;var r=Nv;function o(i){if(i===0)e0(r),t();else {var a=Qb(function(){o(i-1);});Pm.set(r,a);}}return o(n),r};Nt.cancel=function(e){var t=Pm.get(e);return e0(t),Jb(t)};function _m(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 D_(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 Ue(e,t){if(e==null)return {};var n=D_(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 qc(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(mn(!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 u=0;u<i.length;u++)if(!o(i[u],a[u],c))return !1;return !0}if(i&&a&&nt(i)==="object"&&nt(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 k_=function(){function e(t){Cn(this,e),q(this,"instanceId",void 0),q(this,"cache",new Map),this.instanceId=t;}return Sn(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}(),Qd="data-token-hash",Wi="data-css-hash",ki="__cssinjs_instance__";function L_(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Wi,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[ki]=o[ki]||e,o[ki]===e&&document.head.insertBefore(o,n);});var r={};Array.from(document.querySelectorAll("style[".concat(Wi,"]"))).forEach(function(o){var i=o.getAttribute(Wi);if(r[i]){if(o[ki]===e){var a;(a=o.parentNode)===null||a===void 0||a.removeChild(o);}}else r[i]=!0;});}return new k_(e)}var F_=f__namespace.createContext({hashPriority:"low",cache:L_(),defaultCache:!0});const Im=F_;function kn(){return !!(typeof window<"u"&&window.document&&window.document.createElement)}function z_(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 Av="data-rc-order",j_="rc-util-key",Jd=new Map;function t0(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):j_}function Yc(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function H_(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function n0(e){return Array.from((Jd.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function r0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!kn())return null;var n=t.csp,r=t.prepend,o=document.createElement("style");o.setAttribute(Av,H_(r)),n!=null&&n.nonce&&(o.nonce=n==null?void 0:n.nonce),o.innerHTML=e;var i=Yc(t),a=i.firstChild;if(r){if(r==="queue"){var s=n0(i).filter(function(l){return ["prepend","prependQueue"].includes(l.getAttribute(Av))});if(s.length)return i.insertBefore(o,s[s.length-1].nextSibling),o}i.insertBefore(o,a);}else i.appendChild(o);return o}function o0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Yc(t);return n0(n).find(function(r){return r.getAttribute(t0(t))===e})}function Ql(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=o0(e,t);if(n){var r=Yc(t);r.removeChild(n);}}function B_(e,t){var n=Jd.get(e);if(!n||!z_(document,n)){var r=r0("",t),o=r.parentNode;Jd.set(e,o),e.removeChild(r);}}function oa(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Yc(n);B_(r,n);var o=o0(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=r0(e,n);return l.setAttribute(t0(n),t),l}function Jl(e){var t="";return Object.keys(e).forEach(function(n){var r=e[n];t+=n,r&&nt(r)==="object"?t+=Jl(r):t+=r;}),t}function W_(e,t){return _m("".concat(t,"_").concat(Jl(e)))}var Xa="layer-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),i0="903px";function V_(e,t){if(kn()){var n;oa(e,Xa);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===i0;return (n=r.parentNode)===null||n===void 0||n.removeChild(r),Ql(Xa),o}return !1}var Bu=void 0;function G_(){return Bu===void 0&&(Bu=V_("@layer ".concat(Xa," { .").concat(Xa," { width: ").concat(i0,"!important; } }"),function(e){e.className=Xa;})),Bu}function a0(e){if(Array.isArray(e))return e}function U_(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(u){c=!0,o=u;}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function s0(){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 X(e,t){return a0(e)||U_(e,t)||Om(e,t)||s0()}function l0(e,t,n,r){var o=f__namespace.useContext(Im),i=o.cache,a=[e].concat(ge(t));return f__namespace.useMemo(function(){i.update(a,function(s){var l=s||[],c=X(l,2),u=c[0],d=u===void 0?0:u,m=c[1],h=m,v=h||n();return [d+1,v]});},[a.join("_")]),f__namespace.useEffect(function(){return function(){i.update(a,function(s){var l=s||[],c=X(l,2),u=c[0],d=u===void 0?0:u,m=c[1],h=d-1;return h===0?(r==null||r(m,!1),null):[d-1,m]});}},a),i.get(a)[1]}var K_={},X_="css",Go=new Map;function q_(e){Go.set(e,(Go.get(e)||0)+1);}function Y_(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Qd,'="').concat(e,'"]'));n.forEach(function(r){if(r[ki]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r);}});}}function Z_(e,t){Go.set(e,(Go.get(e)||0)-1);var n=Array.from(Go.keys()),r=n.filter(function(o){var i=Go.get(o)||0;return i<=0});r.length<n.length&&r.forEach(function(o){Y_(o,t),Go.delete(o);});}var c0=function(t,n,r,o){var i=r.getDerivativeToken(t),a=B(B({},i),n);return o&&(a=o(a)),a};function Q_(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=f.useContext(Im),o=r.cache.instanceId,i=n.salt,a=i===void 0?"":i,s=n.override,l=s===void 0?K_:s,c=n.formatToken,u=f__namespace.useMemo(function(){return Object.assign.apply(Object,[{}].concat(ge(t)))},[t]),d=f__namespace.useMemo(function(){return Jl(u)},[u]),m=f__namespace.useMemo(function(){return Jl(l)},[l]),h=l0("token",[a,e.id,d,m],function(){var v=c0(u,l,e,c),g=W_(v,a);v._tokenKey=g,q_(g);var p="".concat(X_,"-").concat(_m(g));return v._hashId=p,[v,p]},function(v){Z_(v[0]._tokenKey,o);});return h}var J_={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},Dv=kn(),eI="_skip_check_",u0="_multi_value_";function kv(e){var t=ti(Yp(e),Zp);return t.replace(/\{%%%\:[^;];}/g,";")}function tI(e){return nt(e)==="object"&&e&&(eI in e||u0 in e)}function nI(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]||"",u=((s=c.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return c="".concat(u).concat(o).concat(c.slice(u.length)),[c].concat(ge(l.slice(1))).join(" ")});return i.join(",")}var rI=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,u=n.transformers,d=u===void 0?[]:u;n.linters;var m="",h={};function v(w){var x=w.getName(s);if(!h[x]){var C=e(w.style,n,{root:!1,parentSelectors:a}),S=X(C,1),$=S[0];h[x]="@keyframes ".concat(w.getName(s)).concat($);}}function g(w){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return w.forEach(function(C){Array.isArray(C)?g(C,x):C&&x.push(C);}),x}var p=g(Array.isArray(t)?t:[t]);if(p.forEach(function(w){var x=typeof w=="string"&&!o?{}:w;if(typeof x=="string")m+="".concat(x,`
`);else if(x._keyframe)v(x);else {var C=d.reduce(function(S,$){var P;return ($==null||(P=$.visit)===null||P===void 0?void 0:P.call($,S))||S},x);Object.keys(C).forEach(function(S){var $=C[S];if(nt($)==="object"&&$&&(S!=="animationName"||!$._keyframe)&&!tI($)){var P=!1,O=S.trim(),E=!1;(o||i)&&s?O.startsWith("@")?P=!0:O=nI(S,s,c):o&&!s&&(O==="&"||O==="")&&(O="",E=!0);var N=e($,n,{root:E,injectHash:P,parentSelectors:[].concat(ge(a),[O])}),I=X(N,2),R=I[0],_=I[1];h=B(B({},h),_),m+="".concat(O).concat(R);}else {let T=function(D,L){var z=D.replace(/[A-Z]/g,function(F){return "-".concat(F.toLowerCase())}),V=L;!J_[D]&&typeof V=="number"&&V!==0&&(V="".concat(V,"px")),D==="animationName"&&L!==null&&L!==void 0&&L._keyframe&&(v(L),V=L.getName(s)),m+="".concat(z,":").concat(V,";");};var M,A=(M=$==null?void 0:$.value)!==null&&M!==void 0?M:$;nt($)==="object"&&$!==null&&$!==void 0&&$[u0]&&Array.isArray(A)?A.forEach(function(D){T(S,D);}):T(S,A);}});}}),!o)m="{".concat(m,"}");else if(l&&G_()){var b=l.split(","),y=b[b.length-1].trim();m="@layer ".concat(y," {").concat(m,"}"),b.length>1&&(m="@layer ".concat(l,"{%%%:%}").concat(m));}return [m,h]};function oI(e,t){return _m("".concat(e.join("%")).concat(t))}function iI(){return null}function ef(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=e.nonce,s=f__namespace.useContext(Im),l=s.autoClear;s.mock;var c=s.defaultCache,u=s.hashPriority,d=s.container,m=s.ssrInline,h=s.transformers,v=s.linters,g=s.cache,p=n._tokenKey,b=[p].concat(ge(r)),y=Dv,w=l0("style",b,function(){var P=t(),O=rI(P,{hashId:o,hashPriority:u,layer:i,path:r.join("-"),transformers:h,linters:v}),E=X(O,2),N=E[0],I=E[1],R=kv(N),_=oI(b,R);if(y){var M={mark:Wi,prepend:"queue",attachTo:d},A=typeof a=="function"?a():a;A&&(M.csp={nonce:A});var T=oa(R,_,M);T[ki]=g.instanceId,T.setAttribute(Qd,p),Object.keys(I).forEach(function(D){oa(kv(I[D]),"_effect-".concat(D),M);});}return [R,p,_]},function(P,O){var E=X(P,3),N=E[2];(O||l)&&Dv&&Ql(N,{mark:Wi});}),x=X(w,3),C=x[0],S=x[1],$=x[2];return function(P){var O;if(!m||y||!c)O=f__namespace.createElement(iI,null);else {var E;O=f__namespace.createElement("style",pe({},(E={},q(E,Qd,S),q(E,Wi,$),E),{dangerouslySetInnerHTML:{__html:C}}));}return f__namespace.createElement(f__namespace.Fragment,null,O,P)}}var Mt=function(){function e(t,n){Cn(this,e),q(this,"name",void 0),q(this,"style",void 0),q(this,"_keyframe",!0),this.name=t,this.style=n;}return Sn(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 aI(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 Rm=function(){function e(){Cn(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 Sn(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,u){var d=X(c,2),m=d[1];return o.internalGet(u)[1]<m?[u,o.internalGet(u)[1]]:c},[this.keys[0],this.cacheCallTimes]),a=X(i,1),s=a[0];this.delete(s);}this.keys.push(n);}var l=this.cache;n.forEach(function(c,u){if(u===n.length-1)l.set(c,{value:[r,o.cacheCallTimes++]});else {var d=l.get(c);d?d.map||(d.map=new Map):l.set(c,{map:new Map}),l=l.get(c).map;}});}},{key:"deleteByPath",value:function(n,r){var o=n.get(r[0]);if(r.length===1){var 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 !aI(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();q(Rm,"MAX_CACHE_SIZE",20);q(Rm,"MAX_CACHE_OFFSET",5);var Lv=0,sI=function(){function e(t){Cn(this,e),q(this,"derivatives",void 0),q(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Lv,t.length===0&&(t.length>0,void 0),Lv+=1;}return Sn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),Wu=new Rm;function ec(e){var t=Array.isArray(e)?e:[e];return Wu.has(t)||Wu.set(t,new sI(t)),Wu.get(t)}function Si(e){return e.notSplit=!0,e}Si(["borderTop","borderBottom"]),Si(["borderTop"]),Si(["borderBottom"]),Si(["borderLeft","borderRight"]),Si(["borderLeft"]),Si(["borderRight"]);var lI=f.createContext({});const Mm=lI;function d0(e){return a0(e)||Zb(e)||Om(e)||s0()}function xr(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]];}return n}function f0(e,t,n,r){if(!t.length)return n;var o=d0(t),i=o[0],a=o.slice(1),s;return !e&&typeof i=="number"?s=[]:Array.isArray(e)?s=ge(e):s=B({},e),r&&n===void 0&&a.length===1?delete s[i][a[0]]:s[i]=f0(s[i],a,n,r),s}function Sr(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!xr(e,t.slice(0,-1))?e:f0(e,t,n,r)}function cI(e){return nt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Fv(e){return Array.isArray(e)?[]:{}}function Li(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Fv(t[0]),o=new Set;return t.forEach(function(i){function a(s){var l=xr(i,s),c=Array.isArray(l);if(c||cI(l)){if(!o.has(l)){o.add(l);var u=xr(r,s);c?r=Sr(r,s,[]):(!u||nt(u)!=="object")&&(r=Sr(r,s,Fv(l))),Object.keys(l).forEach(function(d){a([].concat(ge(s),[d]));});}}else r=Sr(r,s,l);}a([]);}),r}var Ko="RC_FORM_INTERNAL_HOOKS",kt=function(){mn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.");},ia=f__namespace.createContext({getFieldValue:kt,getFieldsValue:kt,getFieldError:kt,getFieldWarning:kt,getFieldsError:kt,isFieldsTouched:kt,isFieldTouched:kt,isFieldValidating:kt,isFieldsValidating:kt,resetFields:kt,setFields:kt,setFieldValue:kt,setFieldsValue:kt,validateFields:kt,submit:kt,getInternalHooks:function(){return kt(),{dispatch:kt,initEntityValue:kt,registerField:kt,useSubscribe:kt,setInitialValues:kt,destroyForm:kt,setCallbacks:kt,registerWatch:kt,getFields:kt,setValidateMessages:kt,setPreserve:kt,getInitialValue:kt}}}),tf=f__namespace.createContext(null);function nf(e){return e==null?[]:Array.isArray(e)?e:[e]}function uI(e){return e&&!!e._init}function Jn(){Jn=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(I,R,_){I[R]=_.value;},o=typeof Symbol=="function"?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(I,R,_){return Object.defineProperty(I,R,{value:_,enumerable:!0,configurable:!0,writable:!0}),I[R]}try{l({},"");}catch{l=function(_,M,A){return _[M]=A};}function c(I,R,_,M){var A=R&&R.prototype instanceof m?R:m,T=Object.create(A.prototype),D=new O(M||[]);return r(T,"_invoke",{value:C(I,_,D)}),T}function u(I,R,_){try{return {type:"normal",arg:I.call(R,_)}}catch(M){return {type:"throw",arg:M}}}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(E([])));b&&b!==t&&n.call(b,i)&&(g=b);var y=v.prototype=m.prototype=Object.create(g);function w(I){["next","throw","return"].forEach(function(R){l(I,R,function(_){return this._invoke(R,_)});});}function x(I,R){function _(A,T,D,L){var z=u(I[A],I,T);if(z.type!=="throw"){var V=z.arg,F=V.value;return F&&nt(F)=="object"&&n.call(F,"__await")?R.resolve(F.__await).then(function(G){_("next",G,D,L);},function(G){_("throw",G,D,L);}):R.resolve(F).then(function(G){V.value=G,D(V);},function(G){return _("throw",G,D,L)})}L(z.arg);}var M;r(this,"_invoke",{value:function(T,D){function L(){return new R(function(z,V){_(T,D,z,V);})}return M=M?M.then(L,L):L()}});}function C(I,R,_){var M="suspendedStart";return function(A,T){if(M==="executing")throw new Error("Generator is already running");if(M==="completed"){if(A==="throw")throw T;return N()}for(_.method=A,_.arg=T;;){var D=_.delegate;if(D){var L=S(D,_);if(L){if(L===d)continue;return L}}if(_.method==="next")_.sent=_._sent=_.arg;else if(_.method==="throw"){if(M==="suspendedStart")throw M="completed",_.arg;_.dispatchException(_.arg);}else _.method==="return"&&_.abrupt("return",_.arg);M="executing";var z=u(I,R,_);if(z.type==="normal"){if(M=_.done?"completed":"suspendedYield",z.arg===d)continue;return {value:z.arg,done:_.done}}z.type==="throw"&&(M="completed",_.method="throw",_.arg=z.arg);}}}function S(I,R){var _=R.method,M=I.iterator[_];if(M===void 0)return R.delegate=null,_==="throw"&&I.iterator.return&&(R.method="return",R.arg=void 0,S(I,R),R.method==="throw")||_!=="return"&&(R.method="throw",R.arg=new TypeError("The iterator does not provide a '"+_+"' method")),d;var A=u(M,I.iterator,R.arg);if(A.type==="throw")return R.method="throw",R.arg=A.arg,R.delegate=null,d;var T=A.arg;return T?T.done?(R[I.resultName]=T.value,R.next=I.nextLoc,R.method!=="return"&&(R.method="next",R.arg=void 0),R.delegate=null,d):T:(R.method="throw",R.arg=new TypeError("iterator result is not an object"),R.delegate=null,d)}function $(I){var R={tryLoc:I[0]};1 in I&&(R.catchLoc=I[1]),2 in I&&(R.finallyLoc=I[2],R.afterLoc=I[3]),this.tryEntries.push(R);}function P(I){var R=I.completion||{};R.type="normal",delete R.arg,I.completion=R;}function O(I){this.tryEntries=[{tryLoc:"root"}],I.forEach($,this),this.reset(!0);}function E(I){if(I){var R=I[i];if(R)return R.call(I);if(typeof I.next=="function")return I;if(!isNaN(I.length)){var _=-1,M=function A(){for(;++_<I.length;)if(n.call(I,_))return A.value=I[_],A.done=!1,A;return A.value=void 0,A.done=!0,A};return M.next=M}}return {next:N}}function N(){return {value:void 0,done:!0}}return h.prototype=v,r(y,"constructor",{value:v,configurable:!0}),r(v,"constructor",{value:h,configurable:!0}),h.displayName=l(v,s,"GeneratorFunction"),e.isGeneratorFunction=function(I){var R=typeof I=="function"&&I.constructor;return !!R&&(R===h||(R.displayName||R.name)==="GeneratorFunction")},e.mark=function(I){return Object.setPrototypeOf?Object.setPrototypeOf(I,v):(I.__proto__=v,l(I,s,"GeneratorFunction")),I.prototype=Object.create(y),I},e.awrap=function(I){return {__await:I}},w(x.prototype),l(x.prototype,a,function(){return this}),e.AsyncIterator=x,e.async=function(I,R,_,M,A){A===void 0&&(A=Promise);var T=new x(c(I,R,_,M),A);return e.isGeneratorFunction(R)?T:T.next().then(function(D){return D.done?D.value:T.next()})},w(y),l(y,s,"Generator"),l(y,i,function(){return this}),l(y,"toString",function(){return "[object Generator]"}),e.keys=function(I){var R=Object(I),_=[];for(var M in R)_.push(M);return _.reverse(),function A(){for(;_.length;){var T=_.pop();if(T in R)return A.value=T,A.done=!1,A}return A.done=!0,A}},e.values=E,O.prototype={constructor:O,reset:function(R){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(P),!R)for(var _ in this)_.charAt(0)==="t"&&n.call(this,_)&&!isNaN(+_.slice(1))&&(this[_]=void 0);},stop:function(){this.done=!0;var R=this.tryEntries[0].completion;if(R.type==="throw")throw R.arg;return this.rval},dispatchException:function(R){if(this.done)throw R;var _=this;function M(V,F){return D.type="throw",D.arg=R,_.next=V,F&&(_.method="next",_.arg=void 0),!!F}for(var A=this.tryEntries.length-1;A>=0;--A){var T=this.tryEntries[A],D=T.completion;if(T.tryLoc==="root")return M("end");if(T.tryLoc<=this.prev){var L=n.call(T,"catchLoc"),z=n.call(T,"finallyLoc");if(L&&z){if(this.prev<T.catchLoc)return M(T.catchLoc,!0);if(this.prev<T.finallyLoc)return M(T.finallyLoc)}else if(L){if(this.prev<T.catchLoc)return M(T.catchLoc,!0)}else {if(!z)throw new Error("try statement without catch or finally");if(this.prev<T.finallyLoc)return M(T.finallyLoc)}}}},abrupt:function(R,_){for(var M=this.tryEntries.length-1;M>=0;--M){var A=this.tryEntries[M];if(A.tryLoc<=this.prev&&n.call(A,"finallyLoc")&&this.prev<A.finallyLoc){var T=A;break}}T&&(R==="break"||R==="continue")&&T.tryLoc<=_&&_<=T.finallyLoc&&(T=null);var D=T?T.completion:{};return D.type=R,D.arg=_,T?(this.method="next",this.next=T.finallyLoc,d):this.complete(D)},complete:function(R,_){if(R.type==="throw")throw R.arg;return R.type==="break"||R.type==="continue"?this.next=R.arg:R.type==="return"?(this.rval=this.arg=R.arg,this.method="return",this.next="end"):R.type==="normal"&&_&&(this.next=_),d},finish:function(R){for(var _=this.tryEntries.length-1;_>=0;--_){var M=this.tryEntries[_];if(M.finallyLoc===R)return this.complete(M.completion,M.afterLoc),P(M),d}},catch:function(R){for(var _=this.tryEntries.length-1;_>=0;--_){var M=this.tryEntries[_];if(M.tryLoc===R){var A=M.completion;if(A.type==="throw"){var T=A.arg;P(M);}return T}}throw new Error("illegal catch attempt")},delegateYield:function(R,_,M){return this.delegate={iterator:E(R),resultName:_,nextLoc:M},this.method==="next"&&(this.arg=void 0),d}},e}function zv(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 va(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(l){zv(i,r,o,a,s,"next",l);}function s(l){zv(i,r,o,a,s,"throw",l);}a(void 0);})}}function Xo(){return Xo=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},Xo.apply(this,arguments)}function dI(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,hs(e,t);}function rf(e){return rf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},rf(e)}function hs(e,t){return hs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},hs(e,t)}function fI(){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 Ol(e,t,n){return fI()?Ol=Reflect.construct.bind():Ol=function(o,i,a){var s=[null];s.push.apply(s,i);var l=Function.bind.apply(o,s),c=new l;return a&&hs(c,a.prototype),c},Ol.apply(null,arguments)}function mI(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function of(e){var t=typeof Map=="function"?new Map:void 0;return of=function(r){if(r===null||!mI(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,o);}function o(){return Ol(r,arguments,rf(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),hs(o,r)},of(e)}var hI=/%[sdj%]/g,vI=function(){};typeof process<"u"&&process.env;function af(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n);}),t}function Yn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var a=e.replace(hI,function(s){if(s==="%%")return "%";if(o>=i)return s;switch(s){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return "[Circular]"}break;default:return s}});return a}return e}function gI(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function dn(e,t){return !!(e==null||t==="array"&&Array.isArray(e)&&!e.length||gI(t)&&typeof e=="string"&&!e)}function pI(e,t,n){var r=[],o=0,i=e.length;function a(s){r.push.apply(r,s||[]),o++,o===i&&n(r);}e.forEach(function(s){t(s,a);});}function jv(e,t,n){var r=0,o=e.length;function i(a){if(a&&a.length){n(a);return}var s=r;r=r+1,s<o?t(e[s],i):n([]);}i([]);}function bI(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[]);}),t}var Hv=function(e){dI(t,e);function t(n,r){var o;return o=e.call(this,"Async Validation Error")||this,o.errors=n,o.fields=r,o}return t}(of(Error));function yI(e,t,n,r,o){if(t.first){var i=new Promise(function(m,h){var v=function(b){return r(b),b.length?h(new Hv(b,af(b))):m(o)},g=bI(e);jv(g,n,v);});return i.catch(function(m){return m}),i}var a=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],d=new Promise(function(m,h){var v=function(p){if(u.push.apply(u,p),c++,c===l)return r(u),u.length?h(new Hv(u,af(u))):m(o)};s.length||(r(u),m(o)),s.forEach(function(g){var p=e[g];a.indexOf(g)!==-1?jv(p,n,v):pI(p,n,v);});});return d.catch(function(m){return m}),d}function CI(e){return !!(e&&e.message!==void 0)}function SI(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]];}return n}function Bv(e,t){return function(n){var r;return e.fullFields?r=SI(t,e.fullFields):r=t[n.field||e.fullField],CI(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function Wv(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];typeof r=="object"&&typeof e[n]=="object"?e[n]=Xo({},e[n],r):e[n]=r;}}return e}var m0=function(t,n,r,o,i,a){t.required&&(!r.hasOwnProperty(t.field)||dn(n,a||t.type))&&o.push(Yn(i.messages.required,t.fullField));},wI=function(t,n,r,o,i){(/^\s+$/.test(n)||n==="")&&o.push(Yn(i.messages.whitespace,t.fullField));},sl,$I=function(){if(sl)return sl;var e="[a-fA-F\\d:]",t=function(x){return x&&x.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=(`
(?:
(?:`+r+":){7}(?:"+r+`|:)|                                    // 1:2:3:4:5:6:7::  1:2:3:4:5:6:7:8
(?:`+r+":){6}(?:"+n+"|:"+r+`|:)|                             // 1:2:3:4:5:6::    1:2:3:4:5:6::8   1:2:3:4:5:6::8  1:2:3:4:5:6::1.2.3.4
(?:`+r+":){5}(?::"+n+"|(?::"+r+`){1,2}|:)|                   // 1:2:3:4:5::      1:2:3:4:5::7:8   1:2:3:4:5::8    1:2:3:4:5::7:1.2.3.4
(?:`+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+`){1,3}|:)| // 1:2:3:4::        1:2:3:4::6:7:8   1:2:3:4::8      1:2:3:4::6:7:1.2.3.4
(?:`+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+`){1,4}|:)| // 1:2:3::          1:2:3::5:6:7:8   1:2:3::8        1:2:3::5:6:7:1.2.3.4
(?:`+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+`){1,5}|:)| // 1:2::            1:2::4:5:6:7:8   1:2::8          1:2::4:5:6:7:1.2.3.4
(?:`+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+`){1,6}|:)| // 1::              1::3:4:5:6:7:8   1::8            1::3:4:5:6:7:1.2.3.4
(?::(?:(?::`+r+"){0,5}:"+n+"|(?::"+r+`){1,7}|:))             // ::2:3:4:5:6:7:8  ::2:3:4:5:6:7:8  ::8             ::1.2.3.4
)(?:%[0-9a-zA-Z]{1,})?                                             // %eth0            %1
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),a=new RegExp("^"+n+"$"),s=new RegExp("^"+o+"$"),l=function(x){return x&&x.exact?i:new RegExp("(?:"+t(x)+n+t(x)+")|(?:"+t(x)+o+t(x)+")","g")};l.v4=function(w){return w&&w.exact?a:new RegExp(""+t(w)+n+t(w),"g")},l.v6=function(w){return w&&w.exact?s:new RegExp(""+t(w)+o+t(w),"g")};var c="(?:(?:[a-z]+:)?//)",u="(?:\\S+(?::\\S*)?@)?",d=l.v4().source,m=l.v6().source,h="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",g="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",p="(?::\\d{2,5})?",b='(?:[/?#][^\\s"]*)?',y="(?:"+c+"|www\\.)"+u+"(?:localhost|"+d+"|"+m+"|"+h+v+g+")"+p+b;return sl=new RegExp("(?:^"+y+"$)","i"),sl},Vv={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},ja={integer:function(t){return ja.number(t)&&parseInt(t,10)===t},float:function(t){return ja.number(t)&&!ja.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return !0;try{return !!new RegExp(t)}catch{return !1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!ja.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Vv.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match($I())},hex:function(t){return typeof t=="string"&&!!t.match(Vv.hex)}},xI=function(t,n,r,o,i){if(t.required&&n===void 0){m0(t,n,r,o,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;a.indexOf(s)>-1?ja[s](n)||o.push(Yn(i.messages.types[s],t.fullField,t.type)):s&&typeof n!==t.type&&o.push(Yn(i.messages.types[s],t.fullField,t.type));},EI=function(t,n,r,o,i){var a=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=n,d=null,m=typeof n=="number",h=typeof n=="string",v=Array.isArray(n);if(m?d="number":h?d="string":v&&(d="array"),!d)return !1;v&&(u=n.length),h&&(u=n.replace(c,"_").length),a?u!==t.len&&o.push(Yn(i.messages[d].len,t.fullField,t.len)):s&&!l&&u<t.min?o.push(Yn(i.messages[d].min,t.fullField,t.min)):l&&!s&&u>t.max?o.push(Yn(i.messages[d].max,t.fullField,t.max)):s&&l&&(u<t.min||u>t.max)&&o.push(Yn(i.messages[d].range,t.fullField,t.min,t.max));},wi="enum",OI=function(t,n,r,o,i){t[wi]=Array.isArray(t[wi])?t[wi]:[],t[wi].indexOf(n)===-1&&o.push(Yn(i.messages[wi],t.fullField,t[wi].join(", ")));},PI=function(t,n,r,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(Yn(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||o.push(Yn(i.messages.pattern.mismatch,t.fullField,n,t.pattern));}}},bt={required:m0,whitespace:wI,type:xI,range:EI,enum:OI,pattern:PI},_I=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(dn(n,"string")&&!t.required)return r();bt.required(t,n,o,a,i,"string"),dn(n,"string")||(bt.type(t,n,o,a,i),bt.range(t,n,o,a,i),bt.pattern(t,n,o,a,i),t.whitespace===!0&&bt.whitespace(t,n,o,a,i));}r(a);},II=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(dn(n)&&!t.required)return r();bt.required(t,n,o,a,i),n!==void 0&&bt.type(t,n,o,a,i);}r(a);},RI=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),dn(n)&&!t.required)return r();bt.required(t,n,o,a,i),n!==void 0&&(bt.type(t,n,o,a,i),bt.range(t,n,o,a,i));}r(a);},MI=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(dn(n)&&!t.required)return r();bt.required(t,n,o,a,i),n!==void 0&&bt.type(t,n,o,a,i);}r(a);},TI=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(dn(n)&&!t.required)return r();bt.required(t,n,o,a,i),dn(n)||bt.type(t,n,o,a,i);}r(a);},NI=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(dn(n)&&!t.required)return r();bt.required(t,n,o,a,i),n!==void 0&&(bt.type(t,n,o,a,i),bt.range(t,n,o,a,i));}r(a);},AI=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(dn(n)&&!t.required)return r();bt.required(t,n,o,a,i),n!==void 0&&(bt.type(t,n,o,a,i),bt.range(t,n,o,a,i));}r(a);},DI=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();bt.required(t,n,o,a,i,"array"),n!=null&&(bt.type(t,n,o,a,i),bt.range(t,n,o,a,i));}r(a);},kI=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(dn(n)&&!t.required)return r();bt.required(t,n,o,a,i),n!==void 0&&bt.type(t,n,o,a,i);}r(a);},LI="enum",FI=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(dn(n)&&!t.required)return r();bt.required(t,n,o,a,i),n!==void 0&&bt[LI](t,n,o,a,i);}r(a);},zI=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(dn(n,"string")&&!t.required)return r();bt.required(t,n,o,a,i),dn(n,"string")||bt.pattern(t,n,o,a,i);}r(a);},jI=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(dn(n,"date")&&!t.required)return r();if(bt.required(t,n,o,a,i),!dn(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),bt.type(t,l,o,a,i),l&&bt.range(t,l.getTime(),o,a,i);}}r(a);},HI=function(t,n,r,o,i){var a=[],s=Array.isArray(n)?"array":typeof n;bt.required(t,n,o,a,i,s),r(a);},Vu=function(t,n,r,o,i){var a=t.type,s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(dn(n,a)&&!t.required)return r();bt.required(t,n,o,s,i,a),dn(n,a)||bt.type(t,n,o,s,i);}r(s);},BI=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(dn(n)&&!t.required)return r();bt.required(t,n,o,a,i);}r(a);},qa={string:_I,method:II,number:RI,boolean:MI,regexp:TI,integer:NI,float:AI,array:DI,object:kI,enum:FI,pattern:zI,date:jI,url:Vu,hex:Vu,email:Vu,required:HI,any:BI};function sf(){return {default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var lf=sf(),As=function(){function e(n){this.rules=null,this._messages=lf,this.define(n);}var t=e.prototype;return t.define=function(r){var o=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(i){var a=r[i];o.rules[i]=Array.isArray(a)?a:[a];});},t.messages=function(r){return r&&(this._messages=Wv(sf(),r)),this._messages},t.validate=function(r,o,i){var a=this;o===void 0&&(o={}),i===void 0&&(i=function(){});var s=r,l=o,c=i;if(typeof l=="function"&&(c=l,l={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,s),Promise.resolve(s);function u(g){var p=[],b={};function y(x){if(Array.isArray(x)){var C;p=(C=p).concat.apply(C,x);}else p.push(x);}for(var w=0;w<g.length;w++)y(g[w]);p.length?(b=af(p),c(p,b)):c(null,s);}if(l.messages){var d=this.messages();d===lf&&(d=sf()),Wv(d,l.messages),l.messages=d;}else l.messages=this.messages();var m={},h=l.keys||Object.keys(this.rules);h.forEach(function(g){var p=a.rules[g],b=s[g];p.forEach(function(y){var w=y;typeof w.transform=="function"&&(s===r&&(s=Xo({},s)),b=s[g]=w.transform(b)),typeof w=="function"?w={validator:w}:w=Xo({},w),w.validator=a.getValidationMethod(w),w.validator&&(w.field=g,w.fullField=w.fullField||g,w.type=a.getType(w),m[g]=m[g]||[],m[g].push({rule:w,value:b,source:s,field:g}));});});var v={};return yI(m,l,function(g,p){var b=g.rule,y=(b.type==="object"||b.type==="array")&&(typeof b.fields=="object"||typeof b.defaultField=="object");y=y&&(b.required||!b.required&&g.value),b.field=g.field;function w(S,$){return Xo({},$,{fullField:b.fullField+"."+S,fullFields:b.fullFields?[].concat(b.fullFields,[S]):[S]})}function x(S){S===void 0&&(S=[]);var $=Array.isArray(S)?S:[S];!l.suppressWarning&&$.length&&e.warning("async-validator:",$),$.length&&b.message!==void 0&&($=[].concat(b.message));var P=$.map(Bv(b,s));if(l.first&&P.length)return v[b.field]=1,p(P);if(!y)p(P);else {if(b.required&&!g.value)return b.message!==void 0?P=[].concat(b.message).map(Bv(b,s)):l.error&&(P=[l.error(b,Yn(l.messages.required,b.field))]),p(P);var O={};b.defaultField&&Object.keys(g.value).map(function(I){O[I]=b.defaultField;}),O=Xo({},O,g.rule.fields);var E={};Object.keys(O).forEach(function(I){var R=O[I],_=Array.isArray(R)?R:[R];E[I]=_.map(w.bind(null,I));});var N=new e(E);N.messages(l.messages),g.rule.options&&(g.rule.options.messages=l.messages,g.rule.options.error=l.error),N.validate(g.value,g.rule.options||l,function(I){var R=[];P&&P.length&&R.push.apply(R,P),I&&I.length&&R.push.apply(R,I),p(R.length?R:null);});}}var C;if(b.asyncValidator)C=b.asyncValidator(b,g.value,x,g.source,l);else if(b.validator){try{C=b.validator(b,g.value,x,g.source,l);}catch(S){console.error==null||console.error(S),l.suppressValidatorError||setTimeout(function(){throw S},0),x(S.message);}C===!0?x():C===!1?x(typeof b.message=="function"?b.message(b.fullField||b.field):b.message||(b.fullField||b.field)+" fails"):C instanceof Array?x(C):C instanceof Error&&x(C.message);}C&&C.then&&C.then(function(){return x()},function(S){return x(S)});},function(g){u(g);},s)},t.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!qa.hasOwnProperty(r.type))throw new Error(Yn("Unknown rule type %s",r.type));return r.type||"string"},t.getValidationMethod=function(r){if(typeof r.validator=="function")return r.validator;var o=Object.keys(r),i=o.indexOf("message");return i!==-1&&o.splice(i,1),o.length===1&&o[0]==="required"?qa.required:qa[this.getType(r)]||void 0},e}();As.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");qa[t]=n;};As.warning=vI;As.messages=lf;As.validators=qa;var jn="'${name}' is not a valid ${type}",h0={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:jn,method:jn,array:jn,object:jn,number:jn,date:jn,boolean:jn,integer:jn,float:jn,regexp:jn,email:jn,url:jn,hex:jn},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},Gv=As;function WI(e,t){return e.replace(/\$\{\w+\}/g,function(n){var r=n.slice(2,-1);return t[r]})}var Uv="CODE_LOGIC_ERROR";function cf(e,t,n,r,o){return uf.apply(this,arguments)}function uf(){return uf=va(Jn().mark(function e(t,n,r,o,i){var a,s,l,c,u,d,m,h,v;return Jn().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return a=B({},r),delete a.ruleIndex,Gv.warning=function(){},a.validator&&(s=a.validator,a.validator=function(){try{return s.apply(void 0,arguments)}catch(b){return console.error(b),Promise.reject(Uv)}}),l=null,a&&a.type==="array"&&a.defaultField&&(l=a.defaultField,delete a.defaultField),c=new Gv(q({},t,[a])),u=Li(h0,o.validateMessages),c.messages(u),d=[],p.prev=10,p.next=13,Promise.resolve(c.validate(q({},t,n),B({},o)));case 13:p.next=18;break;case 15:p.prev=15,p.t0=p.catch(10),p.t0.errors&&(d=p.t0.errors.map(function(b,y){var w=b.message,x=w===Uv?u.default:w;return f__namespace.isValidElement(x)?f__namespace.cloneElement(x,{key:"error_".concat(y)}):x}));case 18:if(!(!d.length&&l)){p.next=23;break}return p.next=21,Promise.all(n.map(function(b,y){return cf("".concat(t,".").concat(y),b,l,o,i)}));case 21:return m=p.sent,p.abrupt("return",m.reduce(function(b,y){return [].concat(ge(b),ge(y))},[]));case 23:return h=B(B({},r),{},{name:t,enum:(r.enum||[]).join(", ")},i),v=d.map(function(b){return typeof b=="string"?WI(b,h):b}),p.abrupt("return",v);case 26:case"end":return p.stop()}},e,null,[[10,15]])})),uf.apply(this,arguments)}function VI(e,t,n,r,o,i){var a=e.join("."),s=n.map(function(u,d){var m=u.validator,h=B(B({},u),{},{ruleIndex:d});return m&&(h.validator=function(v,g,p){var b=!1,y=function(){for(var C=arguments.length,S=new Array(C),$=0;$<C;$++)S[$]=arguments[$];Promise.resolve().then(function(){mn(!b,"Your validator function has already return a promise. `callback` will be ignored."),b||p.apply(void 0,S);});},w=m(v,g,y);b=w&&typeof w.then=="function"&&typeof w.catch=="function",mn(b,"`callback` is deprecated. Please return a promise instead."),b&&w.then(function(){p();}).catch(function(x){p(x||" ");});}),h}).sort(function(u,d){var m=u.warningOnly,h=u.ruleIndex,v=d.warningOnly,g=d.ruleIndex;return !!m==!!v?h-g:m?1:-1}),l;if(o===!0)l=new Promise(function(){var u=va(Jn().mark(function d(m,h){var v,g,p;return Jn().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:v=0;case 1:if(!(v<s.length)){y.next=12;break}return g=s[v],y.next=5,cf(a,t,g,r,i);case 5:if(p=y.sent,!p.length){y.next=9;break}return h([{errors:p,rule:g}]),y.abrupt("return");case 9:v+=1,y.next=1;break;case 12:m([]);case 13:case"end":return y.stop()}},d)}));return function(d,m){return u.apply(this,arguments)}}());else {var c=s.map(function(u){return cf(a,t,u,r,i).then(function(d){return {errors:d,rule:u}})});l=(o?UI(c):GI(c)).then(function(u){return Promise.reject(u)});}return l.catch(function(u){return u}),l}function GI(e){return df.apply(this,arguments)}function df(){return df=va(Jn().mark(function e(t){return Jn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(o){var i,a=(i=[]).concat.apply(i,ge(o));return a}));case 1:case"end":return r.stop()}},e)})),df.apply(this,arguments)}function UI(e){return ff.apply(this,arguments)}function ff(){return ff=va(Jn().mark(function e(t){var n;return Jn().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return n=0,o.abrupt("return",new Promise(function(i){t.forEach(function(a){a.then(function(s){s.errors.length&&i([s]),n+=1,n===t.length&&i([]);});});}));case 2:case"end":return o.stop()}},e)})),ff.apply(this,arguments)}function nn(e){return nf(e)}function Kv(e,t){var n={};return t.forEach(function(r){var o=xr(e,r);n=Sr(n,r,o);}),n}function Ya(e,t){return e&&e.some(function(n){return v0(n,t)})}function v0(e,t){return !e||!t||e.length!==t.length?!1:e.every(function(n,r){return t[r]===n})}function KI(e,t){if(e===t)return !0;if(!e&&t||e&&!t||!e||!t||nt(e)!=="object"||nt(t)!=="object")return !1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return ge(o).every(function(i){var a=e[i],s=t[i];return typeof a=="function"&&typeof s=="function"?!0:a===s})}function XI(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&nt(t.target)==="object"&&e in t.target?t.target[e]:t}function Xv(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(ge(e.slice(0,n)),[o],ge(e.slice(n,t)),ge(e.slice(t+1,r))):i<0?[].concat(ge(e.slice(0,t)),ge(e.slice(t+1,n+1)),[o],ge(e.slice(n+1,r))):e}var qI=["name"],ir=[];function qv(e,t,n,r,o,i){return typeof e=="function"?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var Tm=function(e){mi(n,e);var t=hi(n);function n(r){var o;if(Cn(this,n),o=t.call(this,r),o.state={resetCount:0},o.cancelRegisterFunc=null,o.mounted=!1,o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.prevValidating=void 0,o.errors=ir,o.warnings=ir,o.cancelRegister=function(){var l=o.props,c=l.preserve,u=l.isListField,d=l.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(u,c,nn(d)),o.cancelRegisterFunc=null;},o.getNamePath=function(){var l=o.props,c=l.name,u=l.fieldContext,d=u.prefixName,m=d===void 0?[]:d;return c!==void 0?[].concat(ge(m),ge(c)):[]},o.getRules=function(){var l=o.props,c=l.rules,u=c===void 0?[]:c,d=l.fieldContext;return u.map(function(m){return typeof m=="function"?m(d):m})},o.refresh=function(){o.mounted&&o.setState(function(l){var c=l.resetCount;return {resetCount:c+1}});},o.triggerMetaEvent=function(l){var c=o.props.onMetaChange;c==null||c(B(B({},o.getMeta()),{},{destroy:l}));},o.onStoreChange=function(l,c,u){var d=o.props,m=d.shouldUpdate,h=d.dependencies,v=h===void 0?[]:h,g=d.onReset,p=u.store,b=o.getNamePath(),y=o.getValue(l),w=o.getValue(p),x=c&&Ya(c,b);switch(u.type==="valueUpdate"&&u.source==="external"&&y!==w&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=ir,o.warnings=ir,o.triggerMetaEvent()),u.type){case"reset":if(!c||x){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=ir,o.warnings=ir,o.triggerMetaEvent(),g==null||g(),o.refresh();return}break;case"remove":{if(m){o.reRender();return}break}case"setField":{if(x){var C=u.data;"touched"in C&&(o.touched=C.touched),"validating"in C&&!("originRCField"in C)&&(o.validatePromise=C.validating?Promise.resolve([]):null),"errors"in C&&(o.errors=C.errors||ir),"warnings"in C&&(o.warnings=C.warnings||ir),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}if(m&&!b.length&&qv(m,l,p,y,w,u)){o.reRender();return}break}case"dependenciesUpdate":{var S=v.map(nn);if(S.some(function($){return Ya(u.relatedFields,$)})){o.reRender();return}break}default:if(x||(!v.length||b.length||m)&&qv(m,l,p,y,w,u)){o.reRender();return}break}m===!0&&o.reRender();},o.validateRules=function(l){var c=o.getNamePath(),u=o.getValue(),d=l||{},m=d.triggerName,h=d.validateOnly,v=h===void 0?!1:h,g=Promise.resolve().then(function(){if(!o.mounted)return [];var p=o.props,b=p.validateFirst,y=b===void 0?!1:b,w=p.messageVariables,x=o.getRules();m&&(x=x.filter(function(S){return S}).filter(function(S){var $=S.validateTrigger;if(!$)return !0;var P=nf($);return P.includes(m)}));var C=VI(c,u,x,l,y,w);return C.catch(function(S){return S}).then(function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ir;if(o.validatePromise===g){var $;o.validatePromise=null;var P=[],O=[];($=S.forEach)===null||$===void 0||$.call(S,function(E){var N=E.rule.warningOnly,I=E.errors,R=I===void 0?ir:I;N?O.push.apply(O,ge(R)):P.push.apply(P,ge(R));}),o.errors=P,o.warnings=O,o.triggerMetaEvent(),o.reRender();}}),C});return v||(o.validatePromise=g,o.dirty=!0,o.errors=ir,o.warnings=ir,o.triggerMetaEvent(),o.reRender()),g},o.isFieldValidating=function(){return !!o.validatePromise},o.isFieldTouched=function(){return o.touched},o.isFieldDirty=function(){if(o.dirty||o.props.initialValue!==void 0)return !0;var l=o.props.fieldContext,c=l.getInternalHooks(Ko),u=c.getInitialValue;return u(o.getNamePath())!==void 0},o.getErrors=function(){return o.errors},o.getWarnings=function(){return o.warnings},o.isListField=function(){return o.props.isListField},o.isList=function(){return o.props.isList},o.isPreserve=function(){return o.props.preserve},o.getMeta=function(){o.prevValidating=o.isFieldValidating();var l={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return l},o.getOnlyChild=function(l){if(typeof l=="function"){var c=o.getMeta();return B(B({},o.getOnlyChild(l(o.getControlled(),c,o.props.fieldContext))),{},{isFunction:!0})}var u=ur(l);return u.length!==1||!f__namespace.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}},o.getValue=function(l){var c=o.props.fieldContext.getFieldsValue,u=o.getNamePath();return xr(l||c(!0),u)},o.getControlled=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=o.props,u=c.trigger,d=c.validateTrigger,m=c.getValueFromEvent,h=c.normalize,v=c.valuePropName,g=c.getValueProps,p=c.fieldContext,b=d!==void 0?d:p.validateTrigger,y=o.getNamePath(),w=p.getInternalHooks,x=p.getFieldsValue,C=w(Ko),S=C.dispatch,$=o.getValue(),P=g||function(I){return q({},v,I)},O=l[u],E=B(B({},l),P($));E[u]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var I,R=arguments.length,_=new Array(R),M=0;M<R;M++)_[M]=arguments[M];m?I=m.apply(void 0,_):I=XI.apply(void 0,[v].concat(_)),h&&(I=h(I,$,x(!0))),S({type:"updateValue",namePath:y,value:I}),O&&O.apply(void 0,_);};var N=nf(b||[]);return N.forEach(function(I){var R=E[I];E[I]=function(){R&&R.apply(void 0,arguments);var _=o.props.rules;_&&_.length&&S({type:"validateField",namePath:y,triggerName:I});};}),E},r.fieldContext){var i=r.fieldContext.getInternalHooks,a=i(Ko),s=a.initEntityValue;s(Kl(o));}return o}return Sn(n,[{key:"componentDidMount",value:function(){var o=this.props,i=o.shouldUpdate,a=o.fieldContext;if(this.mounted=!0,a){var s=a.getInternalHooks,l=s(Ko),c=l.registerField;this.cancelRegisterFunc=c(this);}i===!0&&this.reRender();}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1;}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate();}},{key:"render",value:function(){var o=this.state.resetCount,i=this.props.children,a=this.getOnlyChild(i),s=a.child,l=a.isFunction,c;return l?c=s:f__namespace.isValidElement(s)?c=f__namespace.cloneElement(s,this.getControlled(s.props)):(mn(!s,"`children` of Field is not validate ReactElement."),c=s),f__namespace.createElement(f__namespace.Fragment,{key:o},c)}}]),n}(f__namespace.Component);Tm.contextType=ia;Tm.defaultProps={trigger:"onChange",valuePropName:"value"};function g0(e){var t=e.name,n=Ue(e,qI),r=f__namespace.useContext(ia),o=f__namespace.useContext(tf),i=t!==void 0?nn(t):void 0,a="keep";return n.isListField||(a="_".concat((i||[]).join("_"))),f__namespace.createElement(Tm,pe({key:a,name:i,isListField:!!o},n,{fieldContext:r}))}var YI=function(t){var n=t.name,r=t.initialValue,o=t.children,i=t.rules,a=t.validateTrigger,s=t.isListField,l=f__namespace.useContext(ia),c=f__namespace.useContext(tf),u=f__namespace.useRef({keys:[],id:0}),d=u.current,m=f__namespace.useMemo(function(){var p=nn(l.prefixName)||[];return [].concat(ge(p),ge(nn(n)))},[l.prefixName,n]),h=f__namespace.useMemo(function(){return B(B({},l),{},{prefixName:m})},[l,m]),v=f__namespace.useMemo(function(){return {getKey:function(b){var y=m.length,w=b[y];return [d.keys[w],b.slice(y+1)]}}},[m]);if(typeof o!="function")return mn(!1,"Form.List only accepts function as children."),null;var g=function(b,y,w){var x=w.source;return x==="internal"?!1:b!==y};return f__namespace.createElement(tf.Provider,{value:v},f__namespace.createElement(ia.Provider,{value:h},f__namespace.createElement(g0,{name:[],shouldUpdate:g,rules:i,validateTrigger:a,initialValue:r,isList:!0,isListField:s??!!c},function(p,b){var y=p.value,w=y===void 0?[]:y,x=p.onChange,C=l.getFieldValue,S=function(){var E=C(m||[]);return E||[]},$={add:function(E,N){var I=S();N>=0&&N<=I.length?(d.keys=[].concat(ge(d.keys.slice(0,N)),[d.id],ge(d.keys.slice(N))),x([].concat(ge(I.slice(0,N)),[E],ge(I.slice(N))))):(d.keys=[].concat(ge(d.keys),[d.id]),x([].concat(ge(I),[E]))),d.id+=1;},remove:function(E){var N=S(),I=new Set(Array.isArray(E)?E:[E]);I.size<=0||(d.keys=d.keys.filter(function(R,_){return !I.has(_)}),x(N.filter(function(R,_){return !I.has(_)})));},move:function(E,N){if(E!==N){var I=S();E<0||E>=I.length||N<0||N>=I.length||(d.keys=Xv(d.keys,E,N),x(Xv(I,E,N)));}}},P=w||[];return Array.isArray(P)||(P=[]),o(P.map(function(O,E){var N=d.keys[E];return N===void 0&&(d.keys[E]=d.id,N=d.keys[E],d.id+=1),{name:E,key:N,isListField:!0}}),$,b)})))};function ZI(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,i){e.forEach(function(a,s){a.catch(function(l){return t=!0,l}).then(function(l){n-=1,r[s]=l,!(n>0)&&(t&&i(r),o(r));});});}):Promise.resolve([])}var p0="__@field_split__";function Gu(e){return e.map(function(t){return "".concat(nt(t),":").concat(t)}).join(p0)}var $i=function(){function e(){Cn(this,e),this.kvs=new Map;}return Sn(e,[{key:"set",value:function(n,r){this.kvs.set(Gu(n),r);}},{key:"get",value:function(n){return this.kvs.get(Gu(n))}},{key:"update",value:function(n,r){var o=this.get(n),i=r(o);i?this.set(n,i):this.delete(n);}},{key:"delete",value:function(n){this.kvs.delete(Gu(n));}},{key:"map",value:function(n){return ge(this.kvs.entries()).map(function(r){var o=X(r,2),i=o[0],a=o[1],s=i.split(p0);return n({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=X(c,3),d=u[1],m=u[2];return d==="number"?Number(m):m}),value:a})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,i=r.value;return n[o.join(".")]=i,null}),n}}]),e}(),QI=["name"],JI=Sn(function e(t){var n=this;Cn(this,e),this.formHooked=!1,this.forceRootUpdate=void 0,this.subscribable=!0,this.store={},this.fieldEntities=[],this.initialValues={},this.callbacks={},this.validateMessages=null,this.preserve=null,this.lastValidatePromise=null,this.getForm=function(){return {getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}},this.getInternalHooks=function(r){return r===Ko?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(mn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)},this.useSubscribe=function(r){n.subscribable=r;},this.prevWithoutPreserves=null,this.setInitialValues=function(r,o){if(n.initialValues=r||{},o){var i,a=Li(r,n.store);(i=n.prevWithoutPreserves)===null||i===void 0||i.map(function(s){var l=s.key;a=Sr(a,l,xr(r,l));}),n.prevWithoutPreserves=null,n.updateStore(a);}},this.destroyForm=function(){var r=new $i;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||r.set(o.getNamePath(),!0);}),n.prevWithoutPreserves=r;},this.getInitialValue=function(r){var o=xr(n.initialValues,r);return r.length?Li(o):o},this.setCallbacks=function(r){n.callbacks=r;},this.setValidateMessages=function(r){n.validateMessages=r;},this.setPreserve=function(r){n.preserve=r;},this.watchList=[],this.registerWatch=function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r});}},this.notifyWatch=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue(),i=n.getFieldsValue(!0);n.watchList.forEach(function(a){a(o,i,r);});}},this.timeoutId=null,this.warningUnhooked=function(){},this.updateStore=function(r){n.store=r;},this.getFieldEntities=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(o){return o.getNamePath().length}):n.fieldEntities},this.getFieldsMap=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new $i;return n.getFieldEntities(r).forEach(function(i){var a=i.getNamePath();o.set(a,i);}),o},this.getFieldEntitiesForNamePathList=function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(i){var a=nn(i);return o.get(a)||{INVALIDATE_NAME_PATH:nn(i)}})},this.getFieldsValue=function(r,o){if(n.warningUnhooked(),r===!0&&!o)return n.store;var i=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),a=[];return i.forEach(function(s){var l,c="INVALIDATE_NAME_PATH"in s?s.INVALIDATE_NAME_PATH:s.getNamePath();if(!(!r&&(!((l=s.isListField)===null||l===void 0)&&l.call(s))))if(!o)a.push(c);else {var u="getMeta"in s?s.getMeta():null;o(u)&&a.push(c);}}),Kv(n.store,a.map(nn))},this.getFieldValue=function(r){n.warningUnhooked();var o=nn(r);return xr(n.store,o)},this.getFieldsError=function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(i,a){return i&&!("INVALIDATE_NAME_PATH"in i)?{name:i.getNamePath(),errors:i.getErrors(),warnings:i.getWarnings()}:{name:nn(r[a]),errors:[],warnings:[]}})},this.getFieldError=function(r){n.warningUnhooked();var o=nn(r),i=n.getFieldsError([o])[0];return i.errors},this.getFieldWarning=function(r){n.warningUnhooked();var o=nn(r),i=n.getFieldsError([o])[0];return i.warnings},this.isFieldsTouched=function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=o[0],s=o[1],l,c=!1;o.length===0?l=null:o.length===1?Array.isArray(a)?(l=a.map(nn),c=!1):(l=null,c=a):(l=a.map(nn),c=s);var u=n.getFieldEntities(!0),d=function(p){return p.isFieldTouched()};if(!l)return c?u.every(d):u.some(d);var m=new $i;l.forEach(function(g){m.set(g,[]);}),u.forEach(function(g){var p=g.getNamePath();l.forEach(function(b){b.every(function(y,w){return p[w]===y})&&m.update(b,function(y){return [].concat(ge(y),[g])});});});var h=function(p){return p.some(d)},v=m.map(function(g){var p=g.value;return p});return c?v.every(h):v.some(h)},this.isFieldTouched=function(r){return n.warningUnhooked(),n.isFieldsTouched([r])},this.isFieldsValidating=function(r){n.warningUnhooked();var o=n.getFieldEntities();if(!r)return o.some(function(a){return a.isFieldValidating()});var i=r.map(nn);return o.some(function(a){var s=a.getNamePath();return Ya(i,s)&&a.isFieldValidating()})},this.isFieldValidating=function(r){return n.warningUnhooked(),n.isFieldsValidating([r])},this.resetWithFieldInitialValue=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new $i,i=n.getFieldEntities(!0);i.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var d=o.get(u)||new Set;d.add({entity:l,value:c}),o.set(u,d);}});var a=function(c){c.forEach(function(u){var d=u.props.initialValue;if(d!==void 0){var m=u.getNamePath(),h=n.getInitialValue(m);if(h!==void 0)mn(!1,"Form already set 'initialValues' with path '".concat(m.join("."),"'. Field can not overwrite it."));else {var v=o.get(m);if(v&&v.size>1)mn(!1,"Multiple Field with path '".concat(m.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(v){var g=n.getFieldValue(m);(!r.skipExist||g===void 0)&&n.updateStore(Sr(n.store,m,ge(v)[0].value));}}}});},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(l){var c=o.get(l);if(c){var u;(u=s).push.apply(u,ge(ge(c).map(function(d){return d.entity})));}})):s=i,a(s);},this.resetFields=function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(Li(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var i=r.map(nn);i.forEach(function(a){var s=n.getInitialValue(a);n.updateStore(Sr(n.store,a,s));}),n.resetWithFieldInitialValue({namePathList:i}),n.notifyObservers(o,i,{type:"reset"}),n.notifyWatch(i);},this.setFields=function(r){n.warningUnhooked();var o=n.store,i=[];r.forEach(function(a){var s=a.name,l=Ue(a,QI),c=nn(s);i.push(c),"value"in l&&n.updateStore(Sr(n.store,c,l.value)),n.notifyObservers(o,[c],{type:"setField",data:a});}),n.notifyWatch(i);},this.getFields=function(){var r=n.getFieldEntities(!0),o=r.map(function(i){var a=i.getNamePath(),s=i.getMeta(),l=B(B({},s),{},{name:a,value:n.getFieldValue(a)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return o},this.initEntityValue=function(r){var o=r.props.initialValue;if(o!==void 0){var i=r.getNamePath(),a=xr(n.store,i);a===void 0&&n.updateStore(Sr(n.store,i,o));}},this.isMergedPreserve=function(r){var o=r!==void 0?r:n.preserve;return o??!0},this.registerField=function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var i=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(i,[r.getNamePath()],{type:"valueUpdate",source:"internal"});}return function(a,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(d){return d!==r}),!n.isMergedPreserve(s)&&(!a||l.length>1)){var c=a?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==c&&n.fieldEntities.every(function(d){return !v0(d.getNamePath(),o)})){var u=n.store;n.updateStore(Sr(u,o,c,!0)),n.notifyObservers(u,[o],{type:"remove"}),n.triggerDependenciesUpdate(u,o);}}n.notifyWatch([o]);}},this.dispatch=function(r){switch(r.type){case"updateValue":{var o=r.namePath,i=r.value;n.updateValue(o,i);break}case"validateField":{var a=r.namePath,s=r.triggerName;n.validateFields([a],{triggerName:s});break}}},this.notifyObservers=function(r,o,i){if(n.subscribable){var a=B(B({},i),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(r,o,a);});}else n.forceRootUpdate();},this.triggerDependenciesUpdate=function(r,o){var i=n.getDependencyChildrenFields(o);return i.length&&n.validateFields(i),n.notifyObservers(r,i,{type:"dependenciesUpdate",relatedFields:[o].concat(ge(i))}),i},this.updateValue=function(r,o){var i=nn(r),a=n.store;n.updateStore(Sr(n.store,i,o)),n.notifyObservers(a,[i],{type:"valueUpdate",source:"internal"}),n.notifyWatch([i]);var s=n.triggerDependenciesUpdate(a,i),l=n.callbacks.onValuesChange;if(l){var c=Kv(n.store,[i]);l(c,n.getFieldsValue());}n.triggerOnFieldsChange([i].concat(ge(s)));},this.setFieldsValue=function(r){n.warningUnhooked();var o=n.store;if(r){var i=Li(n.store,r);n.updateStore(i);}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch();},this.setFieldValue=function(r,o){n.setFields([{name:r,value:o}]);},this.getDependencyChildrenFields=function(r){var o=new Set,i=[],a=new $i;n.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var d=nn(u);a.update(d,function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return m.add(l),m});});});var s=function l(c){var u=a.get(c)||new Set;u.forEach(function(d){if(!o.has(d)){o.add(d);var m=d.getNamePath();d.isFieldDirty()&&m.length&&(i.push(m),l(m));}});};return s(r),i},this.triggerOnFieldsChange=function(r,o){var i=n.callbacks.onFieldsChange;if(i){var a=n.getFields();if(o){var s=new $i;o.forEach(function(c){var u=c.name,d=c.errors;s.set(u,d);}),a.forEach(function(c){c.errors=s.get(c.name)||c.errors;});}var l=a.filter(function(c){var u=c.name;return Ya(r,u)});i(l,a);}},this.validateFields=function(r,o){n.warningUnhooked();var i,a;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(i=r,a=o):a=r;var s=!!i,l=s?i.map(nn):[],c=[];n.getFieldEntities(!0).forEach(function(m){var h;if(s||l.push(m.getNamePath()),!((h=a)===null||h===void 0)&&h.recursive&&s){var v=m.getNamePath();v.every(function(b,y){return i[y]===b||i[y]===void 0})&&l.push(v);}if(!(!m.props.rules||!m.props.rules.length)){var g=m.getNamePath();if(!s||Ya(l,g)){var p=m.validateRules(B({validateMessages:B(B({},h0),n.validateMessages)},a));c.push(p.then(function(){return {name:g,errors:[],warnings:[]}}).catch(function(b){var y,w=[],x=[];return (y=b.forEach)===null||y===void 0||y.call(b,function(C){var S=C.rule.warningOnly,$=C.errors;S?x.push.apply(x,ge($)):w.push.apply(w,ge($));}),w.length?Promise.reject({name:g,errors:w,warnings:x}):{name:g,errors:w,warnings:x}}));}}});var u=ZI(c);n.lastValidatePromise=u,u.catch(function(m){return m}).then(function(m){var h=m.map(function(v){var g=v.name;return g});n.notifyObservers(n.store,h,{type:"validateFinish"}),n.triggerOnFieldsChange(h,m);});var d=u.then(function(){return n.lastValidatePromise===u?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(m){var h=m.filter(function(v){return v&&v.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:h,outOfDate:n.lastValidatePromise!==u})});return d.catch(function(m){return m}),n.triggerOnFieldsChange(l),d},this.submit=function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r);}catch(i){console.error(i);}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r);});},this.forceRootUpdate=t;});function b0(e){var t=f__namespace.useRef(),n=f__namespace.useState({}),r=X(n,2),o=r[1];if(!t.current)if(e)t.current=e;else {var i=function(){o({});},a=new JI(i);t.current=a.getForm();}return [t.current]}var mf=f__namespace.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),eR=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,i=t.children,a=f__namespace.useContext(mf),s=f__namespace.useRef({});return f__namespace.createElement(mf.Provider,{value:B(B({},a),{},{validateMessages:B(B({},a.validateMessages),n),triggerFormChange:function(c,u){r&&r(c,{changedFields:u,forms:s.current}),a.triggerFormChange(c,u);},triggerFormFinish:function(c,u){o&&o(c,{values:u,forms:s.current}),a.triggerFormFinish(c,u);},registerForm:function(c,u){c&&(s.current=B(B({},s.current),{},q({},c,u))),a.registerForm(c,u);},unregisterForm:function(c){var u=B({},s.current);delete u[c],s.current=u,a.unregisterForm(c);}})},i)},tR=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],nR=function(t,n){var r=t.name,o=t.initialValues,i=t.fields,a=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,d=t.validateMessages,m=t.validateTrigger,h=m===void 0?"onChange":m,v=t.onValuesChange,g=t.onFieldsChange,p=t.onFinish,b=t.onFinishFailed,y=Ue(t,tR),w=f__namespace.useContext(mf),x=b0(a),C=X(x,1),S=C[0],$=S.getInternalHooks(Ko),P=$.useSubscribe,O=$.setInitialValues,E=$.setCallbacks,N=$.setValidateMessages,I=$.setPreserve,R=$.destroyForm;f__namespace.useImperativeHandle(n,function(){return S}),f__namespace.useEffect(function(){return w.registerForm(r,S),function(){w.unregisterForm(r);}},[w,S,r]),N(B(B({},w.validateMessages),d)),E({onValuesChange:v,onFieldsChange:function(F){if(w.triggerFormChange(r,F),g){for(var G=arguments.length,H=new Array(G>1?G-1:0),K=1;K<G;K++)H[K-1]=arguments[K];g.apply(void 0,[F].concat(H));}},onFinish:function(F){w.triggerFormFinish(r,F),p&&p(F);},onFinishFailed:b}),I(s);var _=f__namespace.useRef(null);O(o,!_.current),_.current||(_.current=!0),f__namespace.useEffect(function(){return R},[]);var M,A=typeof l=="function";if(A){var T=S.getFieldsValue(!0);M=l(T,S);}else M=l;P(!A);var D=f__namespace.useRef();f__namespace.useEffect(function(){KI(D.current||[],i||[])||S.setFields(i||[]),D.current=i;},[i,S]);var L=f__namespace.useMemo(function(){return B(B({},S),{},{validateTrigger:h})},[S,h]),z=f__namespace.createElement(ia.Provider,{value:L},M);return u===!1?z:f__namespace.createElement(u,pe({},y,{onSubmit:function(F){F.preventDefault(),F.stopPropagation(),S.submit();},onReset:function(F){var G;F.preventDefault(),S.resetFields(),(G=y.onReset)===null||G===void 0||G.call(y,F);}}),z)};function Yv(e){try{return JSON.stringify(e)}catch{return Math.random()}}function rR(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=r===void 0?[]:r,i=t[1],a=i===void 0?{}:i,s=uI(a)?{form:a}:a,l=s.form,c=f.useState(),u=X(c,2),d=u[0],m=u[1],h=f.useMemo(function(){return Yv(d)},[d]),v=f.useRef(h);v.current=h;var g=f.useContext(ia),p=l||g,b=p&&p._init,y=nn(o),w=f.useRef(y);return w.current=y,f.useEffect(function(){if(b){var x=p.getFieldsValue,C=p.getInternalHooks,S=C(Ko),$=S.registerWatch,P=$(function(E,N){var I=xr(s.preserve?N:E,w.current),R=Yv(I);v.current!==R&&(v.current=R,m(I));}),O=xr(s.preserve?x(!0):x(),w.current);return m(O),P}},[b]),d}var oR=f__namespace.forwardRef(nR),Ds=oR;Ds.FormProvider=eR;Ds.Field=g0;Ds.List=YI;Ds.useForm=b0;Ds.useWatch=rR;const Gr=f__namespace.createContext({}),tc=e=>{let{children:t,status:n,override:r}=e;const o=f.useContext(Gr),i=f.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 f__namespace.createElement(Gr.Provider,{value:i},t)},iR=f__namespace.createContext(void 0),aR={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 sR={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 lR={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},y0=lR,cR={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"]},sR),timePickerLocale:Object.assign({},y0)},Zv=cR,Hn="${label} is not a valid ${type}",uR={locale:"en",Pagination:aR,DatePicker:Zv,TimePicker:y0,Calendar:Zv,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:Hn,method:Hn,array:Hn,object:Hn,number:Hn,date:Hn,boolean:Hn,integer:Hn,float:Hn,regexp:Hn,email:Hn,url:Hn,hex:Hn},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"}},aa=uR;let Uu=Object.assign({},aa.Modal);function Qv(e){e?Uu=Object.assign(Object.assign({},Uu),e):Uu=Object.assign({},aa.Modal);}const dR=f.createContext(void 0),Nm=dR,fR=(e,t)=>{const n=f__namespace.useContext(Nm),r=f__namespace.useMemo(()=>{var i;const a=t||aa[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=f__namespace.useMemo(()=>{const i=n==null?void 0:n.locale;return n!=null&&n.exist&&!i?aa.locale:i},[n]);return [r,o]},Am=fR,mR="internalMark",hR=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;f__namespace.useEffect(()=>(Qv(t&&t.Modal),()=>{Qv();}),[t]);const o=f__namespace.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return f__namespace.createElement(Nm.Provider,{value:o},n)},vR=hR,gR="5.6.0",vs=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function bn(e,t){pR(e)&&(e="100%");var n=bR(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 ll(e){return Math.min(1,Math.max(0,e))}function pR(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function bR(e){return typeof e=="string"&&e.indexOf("%")!==-1}function C0(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function cl(e){return e<=1?"".concat(Number(e)*100,"%"):e}function qo(e){return e.length===1?"0"+e:String(e)}function yR(e,t,n){return {r:bn(e,255)*255,g:bn(t,255)*255,b:bn(n,255)*255}}function Jv(e,t,n){e=bn(e,255),t=bn(t,255),n=bn(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 Ku(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 CR(e,t,n){var r,o,i;if(e=bn(e,360),t=bn(t,100),n=bn(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=Ku(s,a,e+1/3),o=Ku(s,a,e),i=Ku(s,a,e-1/3);}return {r:r*255,g:o*255,b:i*255}}function hf(e,t,n){e=bn(e,255),t=bn(t,255),n=bn(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 SR(e,t,n){e=bn(e,360)*6,t=bn(t,100),n=bn(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],u=[s,n,n,a,i,i][l],d=[i,i,s,n,n,a][l];return {r:c*255,g:u*255,b:d*255}}function vf(e,t,n,r){var o=[qo(Math.round(e).toString(16)),qo(Math.round(t).toString(16)),qo(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 wR(e,t,n,r,o){var i=[qo(Math.round(e).toString(16)),qo(Math.round(t).toString(16)),qo(Math.round(n).toString(16)),qo($R(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 $R(e){return Math.round(parseFloat(e)*255).toString(16)}function eg(e){return Vn(e)/255}function Vn(e){return parseInt(e,16)}function xR(e){return {r:e>>16,g:(e&65280)>>8,b:e&255}}var gf={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 Di(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=PR(e)),typeof e=="object"&&(Jr(e.r)&&Jr(e.g)&&Jr(e.b)?(t=yR(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Jr(e.h)&&Jr(e.s)&&Jr(e.v)?(r=cl(e.s),o=cl(e.v),t=SR(e.h,r,o),a=!0,s="hsv"):Jr(e.h)&&Jr(e.s)&&Jr(e.l)&&(r=cl(e.s),i=cl(e.l),t=CR(e.h,r,i),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=C0(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 ER="[-\\+]?\\d+%?",OR="[-\\+]?\\d*\\.\\d+%?",Io="(?:".concat(OR,")|(?:").concat(ER,")"),Xu="[\\s|\\(]+(".concat(Io,")[,|\\s]+(").concat(Io,")[,|\\s]+(").concat(Io,")\\s*\\)?"),qu="[\\s|\\(]+(".concat(Io,")[,|\\s]+(").concat(Io,")[,|\\s]+(").concat(Io,")[,|\\s]+(").concat(Io,")\\s*\\)?"),mr={CSS_UNIT:new RegExp(Io),rgb:new RegExp("rgb"+Xu),rgba:new RegExp("rgba"+qu),hsl:new RegExp("hsl"+Xu),hsla:new RegExp("hsla"+qu),hsv:new RegExp("hsv"+Xu),hsva:new RegExp("hsva"+qu),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 PR(e){if(e=e.trim().toLowerCase(),e.length===0)return !1;var t=!1;if(gf[e])e=gf[e],t=!0;else if(e==="transparent")return {r:0,g:0,b:0,a:0,format:"name"};var n=mr.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=mr.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=mr.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=mr.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=mr.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=mr.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=mr.hex8.exec(e),n?{r:Vn(n[1]),g:Vn(n[2]),b:Vn(n[3]),a:eg(n[4]),format:t?"name":"hex8"}:(n=mr.hex6.exec(e),n?{r:Vn(n[1]),g:Vn(n[2]),b:Vn(n[3]),format:t?"name":"hex"}:(n=mr.hex4.exec(e),n?{r:Vn(n[1]+n[1]),g:Vn(n[2]+n[2]),b:Vn(n[3]+n[3]),a:eg(n[4]+n[4]),format:t?"name":"hex8"}:(n=mr.hex3.exec(e),n?{r:Vn(n[1]+n[1]),g:Vn(n[2]+n[2]),b:Vn(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Jr(e){return !!mr.CSS_UNIT.exec(String(e))}var Zt=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=xR(t)),this.originalInput=t;var o=Di(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=C0(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=hf(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=hf(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=Jv(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=Jv(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),vf(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),wR(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(bn(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(bn(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="#"+vf(this.r,this.g,this.b,!1),n=0,r=Object.entries(gf);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=ll(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=ll(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=ll(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=ll(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}(),ul=2,tg=.16,_R=.05,IR=.05,RR=.15,S0=5,w0=4,MR=[{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 ng(e){var t=e.r,n=e.g,r=e.b,o=hf(t,n,r);return {h:o.h*360,s:o.s,v:o.v}}function dl(e){var t=e.r,n=e.g,r=e.b;return "#".concat(vf(t,n,r,!1))}function TR(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 rg(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-ul*t:Math.round(e.h)+ul*t:r=n?Math.round(e.h)+ul*t:Math.round(e.h)-ul*t,r<0?r+=360:r>=360&&(r-=360),r}function og(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-tg*t:t===w0?r=e.s+tg:r=e.s+_R*t,r>1&&(r=1),n&&t===S0&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function ig(e,t,n){var r;return n?r=e.v+IR*t:r=e.v-RR*t,r>1&&(r=1),Number(r.toFixed(2))}function ho(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Di(e),o=S0;o>0;o-=1){var i=ng(r),a=dl(Di({h:rg(i,o,!0),s:og(i,o,!0),v:ig(i,o,!0)}));n.push(a);}n.push(dl(r));for(var s=1;s<=w0;s+=1){var l=ng(r),c=dl(Di({h:rg(l,s),s:og(l,s),v:ig(l,s)}));n.push(c);}return t.theme==="dark"?MR.map(function(u){var d=u.index,m=u.opacity,h=dl(TR(Di(t.backgroundColor||"#141414"),Di(n[d]),m*100));return h}):n}var Yu={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"},Pl={},Zu={};Object.keys(Yu).forEach(function(e){Pl[e]=ho(Yu[e]),Pl[e].primary=Pl[e][5],Zu[e]=ho(Yu[e],{theme:"dark",backgroundColor:"#141414"}),Zu[e].primary=Zu[e][5];});var NR=Pl.blue;const AR=e=>{const{controlHeight:t}=e;return {controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},$0=AR;function DR(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 Dm={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"},ks=Object.assign(Object.assign({},Dm),{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 x0(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,d=n(l),m=n(o),h=n(i),v=n(a),g=n(s),p=r(c,u);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 Zt("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const kR=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}},LR=kR;function FR(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},LR(r))}const eo=(e,t)=>new Zt(e).setAlpha(t).toRgbString(),Ia=(e,t)=>new Zt(e).darken(t).toHexString(),zR=e=>{const t=ho(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]}},jR=(e,t)=>{const n=e||"#fff",r=t||"#000";return {colorBgBase:n,colorTextBase:r,colorText:eo(r,.88),colorTextSecondary:eo(r,.65),colorTextTertiary:eo(r,.45),colorTextQuaternary:eo(r,.25),colorFill:eo(r,.15),colorFillSecondary:eo(r,.06),colorFillTertiary:eo(r,.04),colorFillQuaternary:eo(r,.02),colorBgLayout:Ia(n,4),colorBgContainer:Ia(n,0),colorBgElevated:Ia(n,0),colorBgSpotlight:eo(r,.85),colorBorder:Ia(n,15),colorBorderSecondary:Ia(n,6)}};function HR(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 BR=e=>{const t=HR(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]}},E0=BR;function Ls(e){const t=Object.keys(Dm).map(n=>{const r=ho(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),x0(e,{generateColorPalettes:zR,generateNeutralColorPalettes:jR})),E0(e.fontSize)),DR(e)),$0(e)),FR(e))}function Qu(e){return e>=0&&e<=255}function fl(e,t){const{r:n,g:r,b:o,a:i}=new Zt(e).toRgb();if(i<1)return e;const{r:a,g:s,b:l}=new Zt(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-a*(1-c))/c),d=Math.round((r-s*(1-c))/c),m=Math.round((o-l*(1-c))/c);if(Qu(u)&&Qu(d)&&Qu(m))return new Zt({r:u,g:d,b:m,a:Math.round(c*100)/100}).toRgbString()}return new Zt({r:n,g:r,b:o,a:1}).toRgbString()}var WR=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 O0(e){const{override:t}=e,n=WR(e,["override"]),r=Object.assign({},t);Object.keys(ks).forEach(m=>{delete r[m];});const o=Object.assign(Object.assign({},n),r),i=480,a=576,s=768,l=992,c=1200,u=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:fl(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:fl(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:fl(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:fl(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:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
      0 1px 2px -2px ${new Zt("rgba(0, 0, 0, 0.16)").toRgbString()},
      0 3px 6px 0 ${new Zt("rgba(0, 0, 0, 0.12)").toRgbString()},
      0 5px 12px 4px ${new Zt("rgba(0, 0, 0, 0.09)").toRgbString()}
    `,boxShadowDrawerRight:`
      -6px 0 16px 0 rgba(0, 0, 0, 0.08),
      -3px 0 6px -4px rgba(0, 0, 0, 0.12),
      -9px 0 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowDrawerLeft:`
      6px 0 16px 0 rgba(0, 0, 0, 0.08),
      3px 0 6px -4px rgba(0, 0, 0, 0.12),
      9px 0 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowDrawerUp:`
      0 6px 16px 0 rgba(0, 0, 0, 0.08),
      0 3px 6px -4px rgba(0, 0, 0, 0.12),
      0 9px 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowDrawerDown:`
      0 -6px 16px 0 rgba(0, 0, 0, 0.08),
      0 -3px 6px -4px rgba(0, 0, 0, 0.12),
      0 -9px 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}function qn(e){var t=f__namespace.useRef();t.current=e;var n=f__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}var Ut=kn()?f__namespace.useLayoutEffect:f__namespace.useEffect,Vi=function(t,n){var r=f__namespace.useRef(!0);Ut(function(){if(!r.current)return t()},n),Ut(function(){return r.current=!1,function(){r.current=!0;}},[]);};function ni(e){var t=f__namespace.useRef(!1),n=f__namespace.useState(e),r=X(n,2),o=r[0],i=r[1];f__namespace.useEffect(function(){return t.current=!1,function(){t.current=!0;}},[]);function a(s,l){l&&t.current||i(s);}return [o,a]}function Ju(e){return e!==void 0}function Qt(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,s=ni(function(){return Ju(o)?o:Ju(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),l=X(s,2),c=l[0],u=l[1],d=o!==void 0?o:c,m=a?a(d):d,h=qn(i),v=ni([d]),g=X(v,2),p=g[0],b=g[1];Vi(function(){var w=p[0];c!==w&&h(c,w);},[p]),Vi(function(){Ju(o)||u(o);},[o]);var y=qn(function(w,x){u(w,x),b([d],x);});return [m,y]}const P0="anticon",VR=(e,t)=>t||(e?`ant-${e}`:"ant"),ot=f__namespace.createContext({getPrefixCls:VR,iconPrefixCls:P0}),GR=(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)),u=i-t*(1/Math.sqrt(2)),d=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),m=2*i-u,h=d,v=2*i-l,g=c,p=2*i-a,b=s,y=i*Math.sqrt(2)+n*(Math.sqrt(2)-2),w=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(${w}px 100%, 50% ${w}px, ${2*i-w}px 100%, ${w}px 100%)`,`path('M ${a} ${s} A ${n} ${n} 0 0 0 ${l} ${c} L ${u} ${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:y,height:y,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${t}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:o,zIndex:0,background:"transparent"}}},ri={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}),ga=()=>({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"}}),pf=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),UR=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"}}}),KR=(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"}}}}},Fs=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),gs=e=>({"&:focus-visible":Object.assign({},Fs(e))});function an(e,t,n,r){return o=>{const[i,a,s]=gi(),{getPrefixCls:l,iconPrefixCls:c,csp:u}=f.useContext(ot),d=l(),m={theme:i,token:a,hashId:s,nonce:()=>u==null?void 0:u.nonce};return ef(Object.assign(Object.assign({},m),{path:["Shared",d]}),()=>[{"&":UR(a)}]),[ef(Object.assign(Object.assign({},m),{path:[e,o,c]}),()=>{const{token:h,flush:v}=qR(a),g=Object.assign({},a[e]);if(r!=null&&r.deprecatedTokens){const{deprecatedTokens:C}=r;C.forEach(S=>{let[$,P]=S;var O;(g!=null&&g[$]||g!=null&&g[P])&&((O=g[P])!==null&&O!==void 0||(g[P]=g==null?void 0:g[$]));});}const p=typeof n=="function"?n($t(h,g??{})):n,b=Object.assign(Object.assign({},p),g),y=`.${o}`,w=$t(h,{componentCls:y,prefixCls:o,iconCls:`.${c}`,antCls:`.${d}`},b),x=t(w,{hashId:s,prefixCls:o,rootPrefixCls:d,iconPrefixCls:c,overrideComponentToken:g});return v(e,b),[(r==null?void 0:r.resetStyle)===!1?null:KR(a,o),x]}),s]}}const _0=typeof CSSINJS_STATISTIC<"u";let bf=!0;function $t(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!_0)return Object.assign.apply(Object,[{}].concat(t));bf=!1;const r={};return t.forEach(o=>{Object.keys(o).forEach(a=>{Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:()=>o[a]});});}),bf=!0,r}function XR(){}function qR(e){let t,n=e,r=XR;return _0&&(t=new Set,n=new Proxy(e,{get(o,i){return bf&&t.add(i),o[i]}}),r=(o,i)=>{Array.from(t);}),{token:n,keys:t,flush:r}}function I0(e,t){return vs.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 YR=ec(Ls),nc={token:ks,hashed:!0},R0=f.createContext(nc);function gi(){const{token:e,hashed:t,theme:n,components:r}=f.useContext(R0),o=`${gR}-${t||""}`,i=n||YR,[a,s]=Q_(i,[ks,e],{salt:o,override:Object.assign({override:e},r),formatToken:O0});return [i,a,t?s:""]}const ZR=`-ant-${Date.now()}-${Math.random()}`;function QR(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 Zt(a),c=ho(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 Zt(t.primaryColor),s=ho(a.toRgbString());s.forEach((c,u)=>{n[`primary-${u+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 Zt(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 JR(e,t){const n=QR(e,t);kn()&&oa(n,`${ZR}-dynamic-theme`);}const yf=f__namespace.createContext(!1),e2=e=>{let{children:t,disabled:n}=e;const r=f__namespace.useContext(yf);return f__namespace.createElement(yf.Provider,{value:n??r},t)},Do=yf,t2=e=>{const t=f.useContext(Zc);return f.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},Or=t2,M0=f__namespace.createContext(void 0),n2=e=>{let{children:t,size:n}=e;const r=Or(n);return f__namespace.createElement(M0.Provider,{value:r},t)},Zc=M0;function r2(){const e=f.useContext(Do),t=f.useContext(Zc);return {componentDisabled:e,componentSize:t}}function o2(e,t){const n=e||{},r=n.inherit===!1||!t?nc:t;return Ts(()=>{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 !qc(s,c,!0)}))}var i2=["children"],T0=f__namespace.createContext({});function a2(e){var t=e.children,n=Ue(e,i2);return f__namespace.createElement(T0.Provider,{value:n},t)}var s2=function(e){mi(n,e);var t=hi(n);function n(){return Cn(this,n),t.apply(this,arguments)}return Sn(n,[{key:"render",value:function(){return this.props.children}}]),n}(f__namespace.Component),Vo="none",ml="appear",hl="enter",vl="leave",ag="none",wr="prepare",Fi="start",zi="active",km="end",N0="prepared";function sg(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 l2(e,t){var n={animationend:sg("Animation","AnimationEnd"),transitionend:sg("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var c2=l2(kn(),typeof window<"u"?window:{}),A0={};if(kn()){var u2=document.createElement("div");A0=u2.style;}var gl={};function D0(e){if(gl[e])return gl[e];var t=c2[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 A0)return gl[e]=t[i],gl[e]}return ""}var k0=D0("animationend"),L0=D0("transitionend"),F0=!!(k0&&L0),lg=k0||"animationend",cg=L0||"transitionend";function ug(e,t){if(!e)return null;if(nt(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return "".concat(e,"-").concat(t)}const d2=function(e){var t=f.useRef(),n=f.useRef(e);n.current=e;var r=f__namespace.useCallback(function(a){n.current(a);},[]);function o(a){a&&(a.removeEventListener(cg,r),a.removeEventListener(lg,r));}function i(a){t.current&&t.current!==a&&o(t.current),a&&a!==t.current&&(a.addEventListener(cg,r),a.addEventListener(lg,r),t.current=a);}return f__namespace.useEffect(function(){return function(){o(t.current);}},[]),[i,o]};var z0=kn()?f.useLayoutEffect:f.useEffect;const f2=function(){var e=f__namespace.useRef(null);function t(){Nt.cancel(e.current);}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var i=Nt(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1);});e.current=i;}return f__namespace.useEffect(function(){return function(){t();}},[]),[n,t]};var m2=[wr,Fi,zi,km],h2=[wr,N0],j0=!1,v2=!0;function H0(e){return e===zi||e===km}const g2=function(e,t,n){var r=ni(ag),o=X(r,2),i=o[0],a=o[1],s=f2(),l=X(s,2),c=l[0],u=l[1];function d(){a(wr,!0);}var m=t?h2:m2;return z0(function(){if(i!==ag&&i!==km){var h=m.indexOf(i),v=m[h+1],g=n(i);g===j0?a(v,!0):v&&c(function(p){function b(){p.isCanceled()||a(v,!0);}g===!0?b():Promise.resolve(g).then(b);});}},[e,i]),f__namespace.useEffect(function(){return function(){u();}},[]),[d,i]};function p2(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,u=r.motionDeadline,d=r.motionLeaveImmediately,m=r.onAppearPrepare,h=r.onEnterPrepare,v=r.onLeavePrepare,g=r.onAppearStart,p=r.onEnterStart,b=r.onLeaveStart,y=r.onAppearActive,w=r.onEnterActive,x=r.onLeaveActive,C=r.onAppearEnd,S=r.onEnterEnd,$=r.onLeaveEnd,P=r.onVisibleChanged,O=ni(),E=X(O,2),N=E[0],I=E[1],R=ni(Vo),_=X(R,2),M=_[0],A=_[1],T=ni(null),D=X(T,2),L=D[0],z=D[1],V=f.useRef(!1),F=f.useRef(null);function G(){return n()}var H=f.useRef(!1);function K(){A(Vo,!0),z(null,!0);}function te(fe){var le=G();if(!(fe&&!fe.deadline&&fe.target!==le)){var se=H.current,Ie;M===ml&&se?Ie=C==null?void 0:C(le,fe):M===hl&&se?Ie=S==null?void 0:S(le,fe):M===vl&&se&&(Ie=$==null?void 0:$(le,fe)),M!==Vo&&se&&Ie!==!1&&K();}}var Z=d2(te),Y=X(Z,1),ee=Y[0],re=function(le){var se,Ie,_e;switch(le){case ml:return se={},q(se,wr,m),q(se,Fi,g),q(se,zi,y),se;case hl:return Ie={},q(Ie,wr,h),q(Ie,Fi,p),q(Ie,zi,w),Ie;case vl:return _e={},q(_e,wr,v),q(_e,Fi,b),q(_e,zi,x),_e;default:return {}}},ae=f__namespace.useMemo(function(){return re(M)},[M]),ce=g2(M,!e,function(fe){if(fe===wr){var le=ae[wr];return le?le(G()):j0}if(ye in ae){var se;z(((se=ae[ye])===null||se===void 0?void 0:se.call(ae,G(),null))||null);}return ye===zi&&(ee(G()),u>0&&(clearTimeout(F.current),F.current=setTimeout(function(){te({deadline:!0});},u))),ye===N0&&K(),v2}),oe=X(ce,2),me=oe[0],ye=oe[1],ue=H0(ye);H.current=ue,z0(function(){I(t);var fe=V.current;V.current=!0;var le;!fe&&t&&s&&(le=ml),fe&&t&&i&&(le=hl),(fe&&!t&&c||!fe&&d&&!t&&c)&&(le=vl);var se=re(le);le&&(e||se[wr])?(A(le),me()):A(Vo);},[t]),f.useEffect(function(){(M===ml&&!s||M===hl&&!i||M===vl&&!c)&&A(Vo);},[s,i,c]),f.useEffect(function(){return function(){V.current=!1,clearTimeout(F.current);}},[]);var he=f__namespace.useRef(!1);f.useEffect(function(){N&&(he.current=!0),N!==void 0&&M===Vo&&((he.current||N)&&(P==null||P(N)),he.current=!0);},[N,M]);var ne=L;return ae[wr]&&ye===Fi&&(ne=B({transition:"none"},ne)),[M,ye,ne,N??t]}function b2(e){var t=e;nt(e)==="object"&&(t=e.transitionSupport);function n(o,i){return !!(o.motionName&&t&&i!==!1)}var r=f__namespace.forwardRef(function(o,i){var a=o.visible,s=a===void 0?!0:a,l=o.removeOnLeave,c=l===void 0?!0:l,u=o.forceRender,d=o.children,m=o.motionName,h=o.leavedClassName,v=o.eventProps,g=f__namespace.useContext(T0),p=g.motion,b=n(o,p),y=f.useRef(),w=f.useRef();function x(){try{return y.current instanceof HTMLElement?y.current:ql(w.current)}catch{return null}}var C=p2(b,s,x,o),S=X(C,4),$=S[0],P=S[1],O=S[2],E=S[3],N=f__namespace.useRef(E);E&&(N.current=!0);var I=f__namespace.useCallback(function(z){y.current=z,Em(i,z);},[i]),R,_=B(B({},v),{},{visible:s});if(!d)R=null;else if($===Vo)E?R=d(B({},_),I):!c&&N.current&&h?R=d(B(B({},_),{},{className:h}),I):u||!c&&!h?R=d(B(B({},_),{},{style:{display:"none"}}),I):R=null;else {var M,A;P===wr?A="prepare":H0(P)?A="active":P===Fi&&(A="start");var T=ug(m,"".concat($,"-").concat(A));R=d(B(B({},_),{},{className:U(ug(m,$),(M={},q(M,T,T&&A),q(M,m,typeof m=="string"),M)),style:O}),I);}if(f__namespace.isValidElement(R)&&vi(R)){var D=R,L=D.ref;L||(R=f__namespace.cloneElement(R,{ref:I}));}return f__namespace.createElement(s2,{ref:w},R)});return r.displayName="CSSMotion",r}const ko=b2(F0);var Cf="add",Sf="keep",wf="remove",ed="removed";function y2(e){var t;return e&&nt(e)==="object"&&"key"in e?t=e:t={key:e},B(B({},t),{},{key:String(t.key)})}function $f(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(y2)}function C2(){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=$f(e),a=$f(t);i.forEach(function(c){for(var u=!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 B(B({},h),{},{status:Cf})})),r=d),n.push(B(B({},m),{},{status:Sf})),r+=1,u=!0;break}}u||n.push(B(B({},c),{},{status:wf}));}),r<o&&(n=n.concat(a.slice(r).map(function(c){return B(B({},c),{},{status:Cf})})));var s={};n.forEach(function(c){var u=c.key;s[u]=(s[u]||0)+1;});var l=Object.keys(s).filter(function(c){return s[c]>1});return l.forEach(function(c){n=n.filter(function(u){var d=u.key,m=u.status;return d!==c||m!==wf}),n.forEach(function(u){u.key===c&&(u.status=Sf);});}),n}var S2=["component","children","onVisibleChanged","onAllRemoved"],w2=["status"],$2=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function x2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ko,n=function(r){mi(i,r);var o=hi(i);function i(){var a;Cn(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(Kl(a),"state",{keyEntities:[]}),q(Kl(a),"removeKey",function(u){var d=a.state.keyEntities,m=d.map(function(h){return h.key!==u?h:B(B({},h),{},{status:ed})});return a.setState({keyEntities:m}),m.filter(function(h){var v=h.status;return v!==ed}).length}),a}return Sn(i,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,c=this.props,u=c.component,d=c.children,m=c.onVisibleChanged,h=c.onAllRemoved,v=Ue(c,S2),g=u||f__namespace.Fragment,p={};return $2.forEach(function(b){p[b]=v[b],delete v[b];}),delete v.keys,f__namespace.createElement(g,v,l.map(function(b){var y=b.status,w=Ue(b,w2),x=y===Cf||y===Sf;return f__namespace.createElement(t,pe({},p,{key:w.key,visible:x,eventProps:w,onVisibleChanged:function(S){if(m==null||m(S,{key:w.key}),!S){var $=s.removeKey(w.key);$===0&&h&&h();}}}),d)}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var c=s.keys,u=l.keyEntities,d=$f(c),m=C2(u,d);return {keyEntities:m.filter(function(h){var v=u.find(function(g){var p=g.key;return h.key===p});return !(v&&v.status===ed&&h.status===wf)})}}}]),i}(f__namespace.Component);return q(n,"defaultProps",{component:"div"}),n}x2(F0);function E2(e){const{children:t}=e,[,n]=gi(),{motion:r}=n,o=f__namespace.useRef(!1);return o.current=o.current||r===!1,o.current?f__namespace.createElement(a2,{motion:r},t):t}const O2=(e,t)=>{const[n,r]=gi();return ef({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},ga()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},P2=O2;var _2=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 I2=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select","button"],R2="ant";let B0;function M2(){return B0||R2}function T2(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const N2=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r}=e;t!==void 0&&(B0=t),r&&T2(r)&&JR(M2(),r);},A2=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,form:o,locale:i,componentSize:a,direction:s,space:l,virtual:c,dropdownMatchSelectWidth:u,popupMatchSelectWidth:d,popupOverflow:m,legacyLocale:h,parentContext:v,iconPrefixCls:g,theme:p,componentDisabled:b}=e,y=f__namespace.useCallback((M,A)=>{const{prefixCls:T}=e;if(A)return A;const D=T||v.getPrefixCls("");return M?`${D}-${M}`:D},[v.getPrefixCls,e.prefixCls]),w=g||v.iconPrefixCls||P0,x=w!==v.iconPrefixCls,C=n||v.csp,S=P2(w,C),$=o2(p,v.theme),P={csp:C,autoInsertSpaceInButton:r,locale:i||h,direction:s,space:l,virtual:c,popupMatchSelectWidth:d??u,popupOverflow:m,getPrefixCls:y,iconPrefixCls:w,theme:$},O=Object.assign({},v);Object.keys(P).forEach(M=>{P[M]!==void 0&&(O[M]=P[M]);}),I2.forEach(M=>{const A=e[M];A&&(O[M]=A);});const E=Ts(()=>O,O,(M,A)=>{const T=Object.keys(M),D=Object.keys(A);return T.length!==D.length||T.some(L=>M[L]!==A[L])}),N=f__namespace.useMemo(()=>({prefixCls:w,csp:C}),[w,C]);let I=x?S(t):t;const R=f__namespace.useMemo(()=>{var M,A,T;return Li(((M=aa.Form)===null||M===void 0?void 0:M.defaultValidateMessages)||{},((T=(A=E.locale)===null||A===void 0?void 0:A.Form)===null||T===void 0?void 0:T.defaultValidateMessages)||{},(o==null?void 0:o.validateMessages)||{})},[E,o==null?void 0:o.validateMessages]);Object.keys(R).length>0&&(I=f__namespace.createElement(iR.Provider,{value:R},t)),i&&(I=f__namespace.createElement(vR,{locale:i,_ANT_MARK__:mR},I)),(w||C)&&(I=f__namespace.createElement(Mm.Provider,{value:N},I)),a&&(I=f__namespace.createElement(n2,{size:a},I)),I=f__namespace.createElement(E2,null,I);const _=f__namespace.useMemo(()=>{const M=$||{},{algorithm:A,token:T}=M,D=_2(M,["algorithm","token"]),L=A&&(!Array.isArray(A)||A.length>0)?ec(A):void 0;return Object.assign(Object.assign({},D),{theme:L,token:Object.assign(Object.assign({},ks),T)})},[$]);return p&&(I=f__namespace.createElement(R0.Provider,{value:_},I)),b!==void 0&&(I=f__namespace.createElement(e2,{disabled:b},I)),f__namespace.createElement(ot.Provider,{value:E},I)},pa=e=>{const t=f__namespace.useContext(ot),n=f__namespace.useContext(Nm);return f__namespace.createElement(A2,Object.assign({parentContext:t,legacyLocale:n},e))};pa.ConfigContext=ot;pa.SizeContext=Zc;pa.config=N2;pa.useConfig=r2;Object.defineProperty(pa,"SizeContext",{get:()=>Zc});const Lm=pa;function W0(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function D2(e){return W0(e)!==(e==null?void 0:e.ownerDocument)}function k2(e){return D2(e)?W0(e):null}function L2(e,t){mn(e,"[@ant-design/icons] ".concat(t));}function dg(e){return nt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(nt(e.icon)==="object"||typeof e.icon=="function")}function fg(){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 xf(e,t,n){return n?f.createElement(e.tag,B(B({key:t},fg(e.attrs)),n),(e.children||[]).map(function(r,o){return xf(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):f.createElement(e.tag,B({key:t},fg(e.attrs)),(e.children||[]).map(function(r,o){return xf(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function V0(e){return ho(e)[0]}function G0(e){return e?Array.isArray(e)?e:[e]:[]}var F2=`
.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);
  }
}
`,z2=function(t){var n=f.useContext(Mm),r=n.csp,o=n.prefixCls,i=F2;o&&(i=i.replace(/anticon/g,o)),f.useEffect(function(){var a=t.current,s=k2(a);oa(i,"@ant-design-icons",{prepend:!0,csp:r,attachTo:s});},[]);},j2=["icon","className","onClick","style","primaryColor","secondaryColor"],Za={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function H2(e){var t=e.primaryColor,n=e.secondaryColor;Za.primaryColor=t,Za.secondaryColor=n||V0(t),Za.calculated=!!n;}function B2(){return B({},Za)}var Qc=function(t){var n=t.icon,r=t.className,o=t.onClick,i=t.style,a=t.primaryColor,s=t.secondaryColor,l=Ue(t,j2),c=f__namespace.useRef(),u=Za;if(a&&(u={primaryColor:a,secondaryColor:s||V0(a)}),z2(c),L2(dg(n),"icon should be icon definiton, but got ".concat(n)),!dg(n))return null;var d=n;return d&&typeof d.icon=="function"&&(d=B(B({},d),{},{icon:d.icon(u.primaryColor,u.secondaryColor)})),xf(d.icon,"svg-".concat(d.name),B(B({className:r,onClick:o,style:i,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};Qc.displayName="IconReact";Qc.getTwoToneColors=B2;Qc.setTwoToneColors=H2;const Fm=Qc;function U0(e){var t=G0(e),n=X(t,2),r=n[0],o=n[1];return Fm.setTwoToneColors({primaryColor:r,secondaryColor:o})}function W2(){var e=Fm.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var V2=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];U0(NR.primary);var Jc=f__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,u=Ue(e,V2),d=f__namespace.useContext(Mm),m=d.prefixCls,h=m===void 0?"anticon":m,v=d.rootClassName,g=U(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,y=G0(c),w=X(y,2),x=w[0],C=w[1];return f__namespace.createElement("span",pe({role:"img","aria-label":o.name},u,{ref:t,tabIndex:p,onClick:l,className:g}),f__namespace.createElement(Fm,{icon:o,primaryColor:x,secondaryColor:C,style:b}))});Jc.displayName="AntdIcon";Jc.getTwoToneColor=W2;Jc.setTwoToneColor=U0;const nr=Jc;var G2={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 U2=G2;var K2=function(t,n){return f__namespace.createElement(nr,pe({},t,{ref:n,icon:U2}))};const zm=f__namespace.forwardRef(K2);var X2={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 q2=X2;var Y2=function(t,n){return f__namespace.createElement(nr,pe({},t,{ref:n,icon:q2}))};const jm=f__namespace.forwardRef(Y2);var Z2={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 Q2=Z2;var J2=function(t,n){return f__namespace.createElement(nr,pe({},t,{ref:n,icon:Q2}))};const K0=f__namespace.forwardRef(J2);var eM=`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`,tM=`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`,nM="".concat(eM," ").concat(tM).split(/[\s\n]+/),rM="aria-",oM="data-";function mg(e,t){return e.indexOf(t)===0}function ps(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=B({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||mg(o,rM))||n.data&&mg(o,oM)||n.attr&&nM.includes(o))&&(r[o]=e[o]);}),r}const{isValidElement:ci}=f__namespace;function X0(e){return e&&ci(e)&&e.type===f__namespace.Fragment}function iM(e,t,n){return ci(e)?f__namespace.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t}function Tn(e,t){return iM(e,e,t)}var Q={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>=Q.F1&&n<=Q.F12)return !1;switch(n){case Q.ALT:case Q.CAPS_LOCK:case Q.CONTEXT_MENU:case Q.CTRL:case Q.DOWN:case Q.END:case Q.ESC:case Q.HOME:case Q.INSERT:case Q.LEFT:case Q.MAC_FF_META:case Q.META:case Q.NUMLOCK:case Q.NUM_CENTER:case Q.PAGE_DOWN:case Q.PAGE_UP:case Q.PAUSE:case Q.PRINT_SCREEN:case Q.RIGHT:case Q.SHIFT:case Q.UP:case Q.WIN_KEY:case Q.WIN_KEY_RIGHT:return !1;default:return !0}},isCharacterKey:function(t){if(t>=Q.ZERO&&t<=Q.NINE||t>=Q.NUM_ZERO&&t<=Q.NUM_MULTIPLY||t>=Q.A&&t<=Q.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return !0;switch(t){case Q.SPACE:case Q.QUESTION_MARK:case Q.NUM_PLUS:case Q.NUM_MINUS:case Q.NUM_PERIOD:case Q.NUM_DIVISION:case Q.SEMICOLON:case Q.DASH:case Q.EQUALS:case Q.COMMA:case Q.PERIOD:case Q.SLASH:case Q.APOSTROPHE:case Q.SINGLE_QUOTE:case Q.OPEN_SQUARE_BRACKET:case Q.BACKSLASH:case Q.CLOSE_SQUARE_BRACKET:return !0;default:return !1}}},aM={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 sM=aM;var lM=function(t,n){return f__namespace.createElement(nr,pe({},t,{ref:n,icon:sM}))};const q0=f__namespace.forwardRef(lM);var zs=B({},zp__namespace),cM=zs.version,uM=zs.render,dM=zs.unmountComponentAtNode,eu;try{var fM=Number((cM||"").split(".")[0]);fM>=18&&(eu=zs.createRoot);}catch{}function hg(e){var t=zs.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&nt(t)==="object"&&(t.usingClientEntryPoint=e);}var rc="__rc_react_root__";function mM(e,t){hg(!0);var n=t[rc]||eu(t);hg(!1),n.render(e),t[rc]=n;}function hM(e,t){uM(e,t);}function vM(e,t){if(eu){mM(e,t);return}hM(e,t);}function gM(e){return Ef.apply(this,arguments)}function Ef(){return Ef=va(Jn().mark(function e(t){return Jn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[rc])===null||o===void 0||o.unmount(),delete t[rc];}));case 1:case"end":return r.stop()}},e)})),Ef.apply(this,arguments)}function pM(e){dM(e);}function bM(e){return Of.apply(this,arguments)}function Of(){return Of=va(Jn().mark(function e(t){return Jn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(eu===void 0){r.next=2;break}return r.abrupt("return",gM(t));case 2:pM(t);case 3:case"end":return r.stop()}},e)})),Of.apply(this,arguments)}const Hm=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},yM=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}}}}},CM=an("Wave",e=>[yM(e)]);function SM(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 td(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&SM(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function wM(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return td(t)?t:td(n)?n:td(r)?r:null}function nd(e){return Number.isNaN(e)?0:e}const $M=e=>{const{className:t,target:n}=e,r=f__namespace.useRef(null),[o,i]=f__namespace.useState(null),[a,s]=f__namespace.useState([]),[l,c]=f__namespace.useState(0),[u,d]=f__namespace.useState(0),[m,h]=f__namespace.useState(0),[v,g]=f__namespace.useState(0),[p,b]=f__namespace.useState(!1),y={left:l,top:u,width:m,height:v,borderRadius:a.map(x=>`${x}px`).join(" ")};o&&(y["--wave-color"]=o);function w(){const x=getComputedStyle(n);i(wM(n));const C=x.position==="static",{borderLeftWidth:S,borderTopWidth:$}=x;c(C?n.offsetLeft:nd(-parseFloat(S))),d(C?n.offsetTop:nd(-parseFloat($))),h(n.offsetWidth),g(n.offsetHeight);const{borderTopLeftRadius:P,borderTopRightRadius:O,borderBottomLeftRadius:E,borderBottomRightRadius:N}=x;s([P,O,N,E].map(I=>nd(parseFloat(I))));}return f__namespace.useEffect(()=>{if(n){const x=Nt(()=>{w(),b(!0);});let C;return typeof ResizeObserver<"u"&&(C=new ResizeObserver(w),C.observe(n)),()=>{Nt.cancel(x),C==null||C.disconnect();}}},[]),p?f__namespace.createElement(ko,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(x,C)=>{var S;if(C.deadline||C.propertyName==="opacity"){const $=(S=r.current)===null||S===void 0?void 0:S.parentElement;bM($).then(()=>{$==null||$.remove();});}return !1}},x=>{let{className:C}=x;return f__namespace.createElement("div",{ref:r,className:U(t,C),style:y})}):null};function xM(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),vM(f__namespace.createElement($M,{target:e,className:t}),n);}function EM(e,t){function n(){const r=e.current;xM(r,t);}return n}const OM=e=>{const{children:t,disabled:n}=e,{getPrefixCls:r}=f.useContext(ot),o=f.useRef(null),i=r("wave"),[,a]=CM(i),s=EM(o,U(i,a));if(f.useEffect(()=>{const c=o.current;if(!c||c.nodeType!==1||n)return;const u=d=>{d.target.tagName==="INPUT"||!Hm(d.target)||!c.getAttribute||c.getAttribute("disabled")||c.disabled||c.className.includes("disabled")||c.className.includes("-leave")||s();};return c.addEventListener("click",u,!0),()=>{c.removeEventListener("click",u,!0);}},[n]),!f.isValidElement(t))return t??null;const l=vi(t)?Fn(t.ref,o):o;return Tn(t,{ref:l})},Y0=OM,PM=e=>{const{componentCls:t}=e;return {[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},_M=PM,IM=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"}}}},Z0=an("Space",e=>[IM(e),_M(e)],()=>({}),{resetStyle:!1});var Q0=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 tu=f__namespace.createContext(null),ba=(e,t)=>{const n=f__namespace.useContext(tu),r=f__namespace.useMemo(()=>{if(!n)return "";const{compactDirection:o,isFirstItem:i,isLastItem:a}=n,s=o==="vertical"?"-vertical-":"-";return U({[`${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}},sa=e=>{let{children:t}=e;return f__namespace.createElement(tu.Provider,{value:null},t)},RM=e=>{var{children:t}=e,n=Q0(e,["children"]);return f__namespace.createElement(tu.Provider,{value:n},t)},MM=e=>{const{getPrefixCls:t,direction:n}=f__namespace.useContext(ot),{size:r,direction:o,block:i,prefixCls:a,className:s,rootClassName:l,children:c}=e,u=Q0(e,["size","direction","block","prefixCls","className","rootClassName","children"]),d=Or(w=>{var x;return (x=r??w)!==null&&x!==void 0?x:"middle"}),m=t("space-compact",a),[h,v]=Z0(m),g=U(m,v,{[`${m}-rtl`]:n==="rtl",[`${m}-block`]:i,[`${m}-vertical`]:o==="vertical"},s,l),p=f__namespace.useContext(tu),b=ur(c),y=f__namespace.useMemo(()=>b.map((w,x)=>{const C=w&&w.key||`${m}-item-${x}`;return f__namespace.createElement(RM,{key:C,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))},w)}),[r,b,p]);return b.length===0?null:h(f__namespace.createElement("div",Object.assign({className:g},u),y))},TM=MM,NM=f.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:i}=e,a=U(`${i}-icon`,n);return f.createElement("span",{ref:t,className:a,style:r},o)}),J0=NM,vg=f.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:o,iconClassName:i}=e;const a=U(`${n}-loading-icon`,r);return f.createElement(J0,{prefixCls:n,className:a,style:o,ref:t},f.createElement(q0,{className:i}))}),rd=()=>({width:0,opacity:0,transform:"scale(0)"}),od=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),AM=e=>{let{prefixCls:t,loading:n,existIcon:r,className:o,style:i}=e;const a=!!n;return r?f.createElement(vg,{prefixCls:t,className:o,style:i}):f.createElement(ko,{visible:a,motionName:`${t}-loading-icon-motion`,removeOnLeave:!0,onAppearStart:rd,onAppearActive:od,onEnterStart:rd,onEnterActive:od,onLeaveStart:od,onLeaveActive:rd},(s,l)=>{let{className:c,style:u}=s;return f.createElement(vg,{prefixCls:t,className:o,style:Object.assign(Object.assign({},i),u),ref:l,iconClassName:c})})},DM=AM;var kM=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 ey=f__namespace.createContext(void 0),LM=e=>{const{getPrefixCls:t,direction:n}=f__namespace.useContext(ot),{prefixCls:r,size:o,className:i}=e,a=kM(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=gi();let c="";switch(o){case"large":c="lg";break;case"small":c="sm";break}const u=U(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:n==="rtl"},i,l);return f__namespace.createElement(ey.Provider,{value:o},f__namespace.createElement("div",Object.assign({},a,{className:u})))},FM=LM,gg=/^[\u4e00-\u9fa5]{2}$/,Pf=gg.test.bind(gg);function zM(e){return typeof e=="string"}function id(e){return e==="text"||e==="link"}function jM(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&zM(e.type)&&Pf(e.props.children)?Tn(e,{children:e.props.children.split("").join(n)}):typeof e=="string"?Pf(e)?f.createElement("span",null,e.split("").join(n)):f.createElement("span",null,e):X0(e)?f.createElement("span",null,e):e}function HM(e,t){let n=!1;const r=[];return f.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;}),f.Children.map(r,o=>jM(o,t))}function BM(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 WM(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 nu(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({},BM(e,r,t)),WM(n,r,t))}}function VM(e,t){return {[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function GM(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)),GM(e.componentCls,t))}}const pg=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),KM=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}},pg(`${t}-primary`,o),pg(`${t}-danger`,i)]}},XM=KM,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,"> 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({},gs(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:'""'}}}}}}},vo=(e,t)=>({"&:not(:disabled)":{"&:hover":e,"&:active":t}}),YM=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),ZM=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),_f=e=>({cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),oc=(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"},vo(Object.assign({backgroundColor:"transparent"},i),Object.assign({backgroundColor:"transparent"},a))),{"&:disabled":{cursor:"not-allowed",color:r||void 0,borderColor:o||void 0}})}),Bm=e=>({"&:disabled":Object.assign({},_f(e))}),ty=e=>Object.assign({},Bm(e)),ic=e=>({"&:disabled":{cursor:"not-allowed",color:e.colorTextDisabled}}),ny=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ty(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),vo({color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),oc(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},vo({color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),oc(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),Bm(e))}),QM=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ty(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),vo({color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),oc(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}`},vo({backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),oc(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Bm(e))}),JM=e=>Object.assign(Object.assign({},ny(e)),{borderStyle:"dashed"}),eT=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},vo({color:e.colorLinkHover},{color:e.colorLinkActive})),ic(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},vo({color:e.colorErrorHover},{color:e.colorErrorActive})),ic(e))}),tT=e=>Object.assign(Object.assign(Object.assign({},vo({color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),ic(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},ic(e)),vo({color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),nT=e=>Object.assign(Object.assign({},_f(e)),{[`&${e.componentCls}:hover`]:Object.assign({},_f(e))}),rT=e=>{const{componentCls:t}=e;return {[`${t}-default`]:ny(e),[`${t}-primary`]:QM(e),[`${t}-dashed`]:JM(e),[`${t}-link`]:eT(e),[`${t}-text`]:tT(e),[`${t}-disabled`]:nT(e)}},Wm=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,u=Math.max(0,(r-o*i)/2-a),d=l-a,m=`${n}-icon-only`;return [{[`${n}${t}`]:{fontSize:o,height:r,padding:`${u}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}`]:YM(e)},{[`${n}${n}-round${t}`]:ZM(e)}]},oT=e=>Wm(e),iT=e=>{const t=$t(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.fontSizeLG-2});return Wm(t,`${e.componentCls}-sm`)},aT=e=>{const t=$t(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.fontSizeLG+2});return Wm(t,`${e.componentCls}-lg`)},sT=e=>{const{componentCls:t}=e;return {[t]:{[`&${t}-block`]:{width:"100%"}}}},lT=an("Button",e=>{const{controlTmpOutline:t,paddingContentHorizontal:n}=e,r=$t(e,{colorOutlineDefault:t,buttonPaddingHorizontal:n,buttonIconOnlyFontSize:e.fontSizeLG,buttonFontWeight:400});return [qM(r),iT(r),oT(r),aT(r),sT(r),rT(r),XM(r),nu(e),UM(e)]});var cT=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 ry(e){return e==="danger"?{danger:!0}:{type:e}}function uT(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 dT=(e,t)=>{var n,r;const{loading:o=!1,prefixCls:i,type:a="default",danger:s,shape:l="default",size:c,styles:u,disabled:d,className:m,rootClassName:h,children:v,icon:g,ghost:p=!1,block:b=!1,htmlType:y="button",classNames:w,style:x={}}=e,C=cT(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:S,autoInsertSpaceInButton:$,direction:P,button:O}=f.useContext(ot),E=S("btn",i),[N,I]=lT(E),R=f.useContext(Do),_=d??R,M=f.useContext(ey),A=f.useMemo(()=>uT(o),[o]),[T,D]=f.useState(A.loading),[L,z]=f.useState(!1),F=Fn(t,f.createRef()),G=f.Children.count(v)===1&&!g&&!id(a);f.useEffect(()=>{let se=null;A.delay>0?se=setTimeout(()=>{se=null,D(!0);},A.delay):D(A.loading);function Ie(){se&&(clearTimeout(se),se=null);}return Ie},[A]),f.useEffect(()=>{if(!F||!F.current||$===!1)return;const se=F.current.textContent;G&&Pf(se)?L||z(!0):L&&z(!1);},[F]);const H=se=>{const{onClick:Ie}=e;if(T||_){se.preventDefault();return}Ie==null||Ie(se);},K=$!==!1,{compactSize:te,compactItemClassnames:Z}=ba(E,P),Y={large:"lg",small:"sm",middle:void 0},ee=Or(se=>{var Ie,_e;return (_e=(Ie=te??M)!==null&&Ie!==void 0?Ie:c)!==null&&_e!==void 0?_e:se}),re=ee&&Y[ee]||"",ae=T?"loading":g,ce=Mn(C,["navigate"]),oe=ce.href!==void 0&&_,me=U(E,I,{[`${E}-${l}`]:l!=="default"&&l,[`${E}-${a}`]:a,[`${E}-${re}`]:re,[`${E}-icon-only`]:!v&&v!==0&&!!ae,[`${E}-background-ghost`]:p&&!id(a),[`${E}-loading`]:T,[`${E}-two-chinese-chars`]:L&&K&&!T,[`${E}-block`]:b,[`${E}-dangerous`]:!!s,[`${E}-rtl`]:P==="rtl",[`${E}-disabled`]:oe},Z,m,h,O==null?void 0:O.className),ye=Object.assign(Object.assign({},O==null?void 0:O.style),x),ue=U(w==null?void 0:w.icon,(n=O==null?void 0:O.classNames)===null||n===void 0?void 0:n.icon),he=Object.assign(Object.assign({},(u==null?void 0:u.icon)||{}),((r=O==null?void 0:O.styles)===null||r===void 0?void 0:r.icon)||{}),ne=g&&!T?f.createElement(J0,{prefixCls:E,className:ue,style:he},g):f.createElement(DM,{existIcon:!!g,prefixCls:E,loading:!!T}),fe=v||v===0?HM(v,G&&K):null;if(ce.href!==void 0)return N(f.createElement("a",Object.assign({},ce,{className:me,style:ye,onClick:H,ref:F}),ne,fe));let le=f.createElement("button",Object.assign({},C,{type:y,className:me,style:ye,onClick:H,disabled:_,ref:F}),ne,fe);return id(a)||(le=f.createElement(Y0,{disabled:!!T},le)),N(le)},Vm=f.forwardRef(dT);Vm.Group=FM;Vm.__ANT_BUTTON=!0;const _n=Vm;function bg(e){return !!(e&&e.then)}const fT=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:a,emitEvent:s,quitOnNullishReturnValue:l,actionFn:c}=e,u=f__namespace.useRef(!1),d=f__namespace.useRef(null),[m,h]=ni(!1),v=function(){i==null||i.apply(void 0,arguments);};f__namespace.useEffect(()=>{let b=null;return a&&(b=setTimeout(()=>{var y;(y=d.current)===null||y===void 0||y.focus();})),()=>{b&&clearTimeout(b);}},[]);const g=b=>{bg(b)&&(h(!0),b.then(function(){h(!1,!0),v.apply(void 0,arguments),u.current=!1;},y=>(h(!1,!0),u.current=!1,Promise.reject(y))));},p=b=>{if(u.current)return;if(u.current=!0,!c){v();return}let y;if(s){if(y=c(b),l&&!bg(y)){u.current=!1,v(b);return}}else if(c.length)y=c(i),u.current=!1;else if(y=c(),!y){v();return}g(y);};return f__namespace.createElement(_n,Object.assign({},ry(t),{onClick:p,loading:m,prefixCls:r},o,{ref:d}),n)},mT=fT,ad=()=>({height:0,opacity:0}),yg=e=>{const{scrollHeight:t}=e;return {height:t,opacity:1}},hT=e=>({height:e?e.offsetHeight:0}),sd=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",oy=function(){return {motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:ad,onEnterStart:ad,onAppearActive:yg,onEnterActive:yg,onLeaveStart:hT,onLeaveActive:ad,onAppearEnd:sd,onEnterEnd:sd,onLeaveEnd:sd,motionDeadline:500}},vT=e=>e!==void 0&&(e==="topLeft"||e==="topRight")?"slide-down":"slide-up",ru=(e,t,n)=>n!==void 0?n:`${e}-${t}`;var iy=f__namespace.createContext(null),Cg=[];function gT(e,t){var n=f__namespace.useState(function(){if(!kn())return null;var v=document.createElement("div");return v}),r=X(n,1),o=r[0],i=f__namespace.useRef(!1),a=f__namespace.useContext(iy),s=f__namespace.useState(Cg),l=X(s,2),c=l[0],u=l[1],d=a||(i.current?void 0:function(v){u(function(g){var p=[v].concat(ge(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 Ut(function(){return e?a?a(m):m():h(),h},[e]),Ut(function(){c.length&&(c.forEach(function(v){return v()}),u(Cg));},[c]),[o,d]}var ld;function pT(e){if(typeof document>"u")return 0;if(e||ld===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),ld=o-i;}return ld}function bT(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var yT="rc-util-locker-".concat(Date.now()),Sg=0;function CT(e){var t=!!e,n=f__namespace.useState(function(){return Sg+=1,"".concat(yT,"_").concat(Sg)}),r=X(n,1),o=r[0];Ut(function(){if(t){var i=pT(),a=bT();oa(`
html body {
  overflow-y: hidden;
  `.concat(a?"width: calc(100% - ".concat(i,"px);"):"",`
}`),o);}else Ql(o);return function(){Ql(o);}},[t,o]);}var wg=!1;function ST(e){return typeof e=="boolean"&&(wg=e),wg}var $g=function(t){return t===!1?!1:!kn()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},ay=f__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=f__namespace.useState(n),c=X(l,2),u=c[0],d=c[1],m=u||n;f__namespace.useEffect(function(){(a||n)&&d(n);},[n,a]);var h=f__namespace.useState(function(){return $g(o)}),v=X(h,2),g=v[0],p=v[1];f__namespace.useEffect(function(){var N=$g(o);p(N??null);});var b=gT(m&&!g),y=X(b,2),w=y[0],x=y[1],C=g??w;CT(r&&n&&kn()&&(C===w||C===document.body));var S=null;if(s&&vi(s)&&t){var $=s;S=$.ref;}var P=Ns(S,t);if(!m||!kn()||g===void 0)return null;var O=C===!1||ST(),E=s;return t&&(E=f__namespace.cloneElement(s,{ref:P})),f__namespace.createElement(iy.Provider,{value:x},O?E:zp.createPortal(E,C))});function wT(){var e=B({},f__namespace);return e.useId}var xg=0;function $T(e){var t=f__namespace.useState("ssr-id"),n=X(t,2),r=n[0],o=n[1],i=wT(),a=i==null?void 0:i();return f__namespace.useEffect(function(){if(!i){var s=xg;xg+=1,o("rc_unique_".concat(s));}},[]),e||a||r}const xT=()=>kn()&&window.document.documentElement;let pl;const ET=()=>{if(!xT())return !1;if(pl!==void 0)return pl;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),pl=e.scrollHeight===1,document.body.removeChild(e),pl},OT=e=>({animationDuration:e,animationFillMode:"both"}),PT=e=>({animationDuration:e,animationFillMode:"both"}),Gm=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({},OT(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},PT(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"}}},_T=new Mt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),IT=new Mt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),RT=new Mt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),MT=new Mt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),TT=new Mt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),NT=new Mt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),AT=new Mt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),DT=new Mt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),kT={"move-up":{inKeyframes:AT,outKeyframes:DT},"move-down":{inKeyframes:_T,outKeyframes:IT},"move-left":{inKeyframes:RT,outKeyframes:MT},"move-right":{inKeyframes:TT,outKeyframes:NT}},ac=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=kT[t];return [Gm(r,o,i,e.motionDurationMid),{[`
        ${r}-enter,
        ${r}-appear
      `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Um=new Mt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Km=new Mt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Xm=new Mt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),qm=new Mt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),LT=new Mt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),FT=new Mt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),zT=new Mt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),jT=new Mt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),HT={"slide-up":{inKeyframes:Um,outKeyframes:Km},"slide-down":{inKeyframes:Xm,outKeyframes:qm},"slide-left":{inKeyframes:LT,outKeyframes:FT},"slide-right":{inKeyframes:zT,outKeyframes:jT}},To=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=HT[t];return [Gm(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}}]},BT=new Mt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),WT=new Mt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Eg=new Mt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Og=new Mt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),VT=new Mt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),GT=new Mt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),UT=new Mt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),KT=new Mt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),XT=new Mt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),qT=new Mt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),YT=new Mt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),ZT=new Mt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),QT={zoom:{inKeyframes:BT,outKeyframes:WT},"zoom-big":{inKeyframes:Eg,outKeyframes:Og},"zoom-big-fast":{inKeyframes:Eg,outKeyframes:Og},"zoom-left":{inKeyframes:UT,outKeyframes:KT},"zoom-right":{inKeyframes:XT,outKeyframes:qT},"zoom-up":{inKeyframes:VT,outKeyframes:GT},"zoom-down":{inKeyframes:YT,outKeyframes:ZT}},ou=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=QT[t];return [Gm(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}}]},JT=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`}}}),sy=JT;function Ym(e,t,n,r){return function(i){const{prefixCls:a,style:s}=i,l=f__namespace.useRef(null),[c,u]=f__namespace.useState(0),[d,m]=f__namespace.useState(0),[h,v]=Qt(!1,{value:i.open}),{getPrefixCls:g}=f__namespace.useContext(ot),p=g(t||"select",a);f__namespace.useEffect(()=>{if(v(!0),typeof ResizeObserver<"u"){const y=new ResizeObserver(x=>{const C=x[0].target;u(C.offsetHeight+8),m(C.offsetWidth);}),w=setInterval(()=>{var x;const C=n?`.${n(p)}`:`.${p}-dropdown`,S=(x=l.current)===null||x===void 0?void 0:x.querySelector(C);S&&(clearInterval(w),y.observe(S));},10);return ()=>{clearInterval(w),y.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)),f__namespace.createElement(Lm,{theme:{token:{motion:!1}}},f__namespace.createElement("div",{ref:l,style:{paddingBottom:c,position:"relative",minWidth:d}},f__namespace.createElement(e,Object.assign({},b))))}}const iu=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 ly=f__namespace.createContext(null);function eN(){return f__namespace.useContext(ly)}function tN(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=f__namespace.useState(!1),n=X(t,2),r=n[0],o=n[1],i=f__namespace.useRef(null),a=function(){window.clearTimeout(i.current);};f__namespace.useEffect(function(){return a},[]);var s=function(c,u){a(),i.current=window.setTimeout(function(){o(c),u&&u();},e);};return [r,s,a]}function cy(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=f__namespace.useRef(null),n=f__namespace.useRef(null);f__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 nN(e,t,n,r){var o=f__namespace.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},f__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 rN=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],xi=void 0;function oN(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,u=e.className,d=e.style,m=e.children,h=e.display,v=e.order,g=e.component,p=g===void 0?"div":g,b=Ue(e,rN),y=a&&!h;function w(P){l(c,P);}f__namespace.useEffect(function(){return function(){w(null);}},[]);var x=i&&o!==xi?i(o):m,C;r||(C={opacity:y?0:1,height:y?0:xi,overflowY:y?"hidden":xi,order:a?v:xi,pointerEvents:y?"none":xi,position:y?"absolute":xi});var S={};y&&(S["aria-hidden"]=!0);var $=f__namespace.createElement(p,pe({className:U(!r&&n,u),style:B(B({},C),d)},S,b,{ref:t}),x);return a&&($=f__namespace.createElement(mo,{onResize:function(O){var E=O.offsetWidth;w(E);},disabled:s},$)),$}var Qa=f__namespace.forwardRef(oN);Qa.displayName="Item";function iN(e){if(typeof MessageChannel>"u")Nt(e);else {var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0);}}function aN(){var e=f__namespace.useRef(null),t=function(r){e.current||(e.current=[],iN(function(){zp.unstable_batchedUpdates(function(){e.current.forEach(function(o){o();}),e.current=null;});})),e.current.push(r);};return t}function Ra(e,t){var n=f__namespace.useState(t),r=X(n,2),o=r[0],i=r[1],a=qn(function(s){e(function(){i(s);});});return [o,a]}var sN=["component"],lN=["className"],cN=["className"],uN=function(t,n){var r=f__namespace.useContext(sc);if(!r){var o=t.component,i=o===void 0?"div":o,a=Ue(t,sN);return f__namespace.createElement(i,pe({},a,{ref:n}))}var s=r.className,l=Ue(r,lN),c=t.className,u=Ue(t,cN);return f__namespace.createElement(sc.Provider,{value:null},f__namespace.createElement(Qa,pe({ref:n,className:U(s,c)},l,u)))},uy=f__namespace.forwardRef(uN);uy.displayName="RawItem";var dN=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],sc=f__namespace.createContext(null),dy="responsive",fy="invalidate";function fN(e){return "+ ".concat(e.length," ...")}function mN(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,u=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,y=e.component,w=y===void 0?"div":y,x=e.itemComponent,C=e.onVisibleChange,S=Ue(e,dN),$=d==="full",P=aN(),O=Ra(P,null),E=X(O,2),N=E[0],I=E[1],R=N||0,_=Ra(P,new Map),M=X(_,2),A=M[0],T=M[1],D=Ra(P,0),L=X(D,2),z=L[0],V=L[1],F=Ra(P,0),G=X(F,2),H=G[0],K=G[1],te=Ra(P,0),Z=X(te,2),Y=Z[0],ee=Z[1],re=f.useState(null),ae=X(re,2),ce=ae[0],oe=ae[1],me=f.useState(null),ye=X(me,2),ue=ye[0],he=ye[1],ne=f__namespace.useMemo(function(){return ue===null&&$?Number.MAX_SAFE_INTEGER:ue||0},[ue,N]),fe=f.useState(!1),le=X(fe,2),se=le[0],Ie=le[1],_e="".concat(r,"-item"),Le=Math.max(z,H),Re=v===dy,Ke=i.length&&Re,dt=v===fy,Je=Ke||typeof v=="number"&&i.length>v,Ye=f.useMemo(function(){var Ae=i;return Ke?N===null&&$?Ae=i:Ae=i.slice(0,Math.min(i.length,R/u)):typeof v=="number"&&(Ae=i.slice(0,v)),Ae},[i,u,N,v,Ke]),ke=f.useMemo(function(){return Ke?i.slice(ne+1):i.slice(Ye.length)},[i,Ye,Ke,ne]),ze=f.useCallback(function(Ae,de){var ie;return typeof l=="function"?l(Ae):(ie=l&&(Ae==null?void 0:Ae[l]))!==null&&ie!==void 0?ie:de},[l]),ct=f.useCallback(a||function(Ae){return Ae},[a]);function it(Ae,de,ie){ue===Ae&&(de===void 0||de===ce)||(he(Ae),ie||(Ie(Ae<i.length-1),C==null||C(Ae)),de!==void 0&&oe(de));}function be(Ae,de){I(de.clientWidth);}function $e(Ae,de){T(function(ie){var Ce=new Map(ie);return de===null?Ce.delete(Ae):Ce.set(Ae,de),Ce});}function Xe(Ae,de){K(de),V(H);}function We(Ae,de){ee(de);}function ut(Ae){return A.get(ze(Ye[Ae],Ae))}Ut(function(){if(R&&typeof Le=="number"&&Ye){var Ae=Y,de=Ye.length,ie=de-1;if(!de){it(0,null);return}for(var Ce=0;Ce<de;Ce+=1){var xe=ut(Ce);if($&&(xe=xe||0),xe===void 0){it(Ce-1,void 0,!0);break}if(Ae+=xe,ie===0&&Ae<=R||Ce===ie-1&&Ae+ut(ie)<=R){it(ie,null);break}else if(Ae+Le>R){it(Ce-1,Ae-xe-Y+H);break}}b&&ut(0)+Y>R&&oe(null);}},[R,A,H,Y,ze,Ye]);var Ee=se&&!!ke.length,Oe={};ce!==null&&Ke&&(Oe={position:"absolute",left:ce,top:0});var je={prefixCls:_e,responsive:Ke,component:x,invalidate:dt},Me=s?function(Ae,de){var ie=ze(Ae,de);return f__namespace.createElement(sc.Provider,{key:ie,value:B(B({},je),{},{order:de,item:Ae,itemKey:ie,registerSize:$e,display:de<=ne})},s(Ae,de))}:function(Ae,de){var ie=ze(Ae,de);return f__namespace.createElement(Qa,pe({},je,{order:de,key:ie,item:Ae,renderItem:ct,itemKey:ie,registerSize:$e,display:de<=ne}))},Ze,wt={order:Ee?ne:Number.MAX_SAFE_INTEGER,className:"".concat(_e,"-rest"),registerSize:Xe,display:Ee};if(p)p&&(Ze=f__namespace.createElement(sc.Provider,{value:B(B({},je),wt)},p(ke)));else {var Lt=g||fN;Ze=f__namespace.createElement(Qa,pe({},je,wt),typeof Lt=="function"?Lt(ke):Lt);}var Dt=f__namespace.createElement(w,pe({className:U(!dt&&r,h),style:m,ref:t},S),Ye.map(Me),Je?Ze:null,b&&f__namespace.createElement(Qa,pe({},je,{responsive:Re,responsiveDisabled:!Ke,order:ne,className:"".concat(_e,"-suffix"),registerSize:We,display:!0,style:Oe}),b));return Re&&(Dt=f__namespace.createElement(mo,{onResize:be,disabled:!Ke},Dt)),Dt}var jr=f__namespace.forwardRef(mN);jr.displayName="Overflow";jr.Item=uy;jr.RESPONSIVE=dy;jr.INVALIDATE=fy;var lc=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,f__namespace.createElement("span",{className:n,onMouseDown:function(u){u.preventDefault(),i&&i(u);},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:a,"aria-hidden":!0},l!==void 0?l:f__namespace.createElement("span",{className:U(n.split(/\s+/).map(function(c){return "".concat(c,"-icon")}))},s))},hN=function(t,n){var r,o,i=t.prefixCls,a=t.id,s=t.inputElement,l=t.disabled,c=t.tabIndex,u=t.autoFocus,d=t.autoComplete,m=t.editable,h=t.activeDescendantId,v=t.value,g=t.maxLength,p=t.onKeyDown,b=t.onMouseDown,y=t.onChange,w=t.onPaste,x=t.onCompositionStart,C=t.onCompositionEnd,S=t.open,$=t.attrs,P=s||f__namespace.createElement("input",null),O=P,E=O.ref,N=O.props,I=N.onKeyDown,R=N.onChange,_=N.onMouseDown,M=N.onCompositionStart,A=N.onCompositionEnd,T=N.style;return "maxLength"in P.props,P=f__namespace.cloneElement(P,B(B(B({type:"search"},N),{},{id:a,ref:Fn(n,E),disabled:l,tabIndex:c,autoComplete:d||"off",autoFocus:u,className:U("".concat(i,"-selection-search-input"),(r=P)===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},$),{},{value:m?v:"",maxLength:g,readOnly:!m,unselectable:m?null:"on",style:B(B({},T),{},{opacity:m?null:0}),onKeyDown:function(L){p(L),I&&I(L);},onMouseDown:function(L){b(L),_&&_(L);},onChange:function(L){y(L),R&&R(L);},onCompositionStart:function(L){x(L),M&&M(L);},onCompositionEnd:function(L){C(L),A&&A(L);},onPaste:w})),P},Zm=f__namespace.forwardRef(hN);Zm.displayName="Input";function my(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var vN=typeof window<"u"&&window.document&&window.document.documentElement,gN=vN;function pN(e){return e!=null}function Pg(e){return ["string","number"].includes(nt(e))}function hy(e){var t=void 0;return e&&(Pg(e.title)?t=e.title.toString():Pg(e.label)&&(t=e.label.toString())),t}function bN(e,t){gN?f__namespace.useLayoutEffect(e,t):f__namespace.useEffect(e,t);}function yN(e){var t;return (t=e.key)!==null&&t!==void 0?t:e.value}var _g=function(t){t.preventDefault(),t.stopPropagation();},CN=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,u=t.disabled,d=t.mode,m=t.showSearch,h=t.autoFocus,v=t.autoComplete,g=t.activeDescendantId,p=t.tabIndex,b=t.removeIcon,y=t.maxTagCount,w=t.maxTagTextLength,x=t.maxTagPlaceholder,C=x===void 0?function(oe){return "+ ".concat(oe.length," ...")}:x,S=t.tagRender,$=t.onToggleOpen,P=t.onRemove,O=t.onInputChange,E=t.onInputPaste,N=t.onInputKeyDown,I=t.onInputMouseDown,R=t.onInputCompositionStart,_=t.onInputCompositionEnd,M=f__namespace.useRef(null),A=f.useState(0),T=X(A,2),D=T[0],L=T[1],z=f.useState(!1),V=X(z,2),F=V[0],G=V[1],H="".concat(r,"-selection"),K=i||d==="multiple"&&s===!1||d==="tags"?a:"",te=d==="tags"||d==="multiple"&&s===!1||m&&(i||F);bN(function(){L(M.current.scrollWidth);},[K]);function Z(oe,me,ye,ue,he){return f__namespace.createElement("span",{className:U("".concat(H,"-item"),q({},"".concat(H,"-item-disabled"),ye)),title:hy(oe)},f__namespace.createElement("span",{className:"".concat(H,"-item-content")},me),ue&&f__namespace.createElement(lc,{className:"".concat(H,"-item-remove"),onMouseDown:_g,onClick:he,customizeIcon:b},"×"))}function Y(oe,me,ye,ue,he){var ne=function(le){_g(le),$(!i);};return f__namespace.createElement("span",{onMouseDown:ne},S({label:me,value:oe,disabled:ye,closable:ue,onClose:he}))}function ee(oe){var me=oe.disabled,ye=oe.label,ue=oe.value,he=!u&&!me,ne=ye;if(typeof w=="number"&&(typeof ye=="string"||typeof ye=="number")){var fe=String(ne);fe.length>w&&(ne="".concat(fe.slice(0,w),"..."));}var le=function(Ie){Ie&&Ie.stopPropagation(),P(oe);};return typeof S=="function"?Y(ue,ne,me,he,le):Z(oe,ne,me,he,le)}function re(oe){var me=typeof C=="function"?C(oe):C;return Z({title:me},me,!1)}var ae=f__namespace.createElement("div",{className:"".concat(H,"-search"),style:{width:D},onFocus:function(){G(!0);},onBlur:function(){G(!1);}},f__namespace.createElement(Zm,{ref:l,open:i,prefixCls:r,id:n,inputElement:null,disabled:u,autoFocus:h,autoComplete:v,editable:te,activeDescendantId:g,value:K,onKeyDown:N,onMouseDown:I,onChange:O,onPaste:E,onCompositionStart:R,onCompositionEnd:_,tabIndex:p,attrs:ps(t,!0)}),f__namespace.createElement("span",{ref:M,className:"".concat(H,"-search-mirror"),"aria-hidden":!0},K," ")),ce=f__namespace.createElement(jr,{prefixCls:"".concat(H,"-overflow"),data:o,renderItem:ee,renderRest:re,suffix:ae,itemKey:yN,maxCount:y});return f__namespace.createElement(f__namespace.Fragment,null,ce,!o.length&&!K&&f__namespace.createElement("span",{className:"".concat(H,"-placeholder")},c))},SN=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,u=t.mode,d=t.open,m=t.values,h=t.placeholder,v=t.tabIndex,g=t.showSearch,p=t.searchValue,b=t.activeValue,y=t.maxLength,w=t.onInputKeyDown,x=t.onInputMouseDown,C=t.onInputChange,S=t.onInputPaste,$=t.onInputCompositionStart,P=t.onInputCompositionEnd,O=t.title,E=f__namespace.useState(!1),N=X(E,2),I=N[0],R=N[1],_=u==="combobox",M=_||g,A=m[0],T=p||"";_&&b&&!I&&(T=b),f__namespace.useEffect(function(){_&&R(!1);},[_,b]);var D=u!=="combobox"&&!d&&!g?!1:!!T,L=O===void 0?hy(A):O,z=function(){if(A)return null;var F=D?{visibility:"hidden"}:void 0;return f__namespace.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:F},h)};return f__namespace.createElement(f__namespace.Fragment,null,f__namespace.createElement("span",{className:"".concat(r,"-selection-search")},f__namespace.createElement(Zm,{ref:i,prefixCls:r,id:o,open:d,inputElement:n,disabled:a,autoFocus:s,autoComplete:l,editable:M,activeDescendantId:c,value:T,onKeyDown:w,onMouseDown:x,onChange:function(F){R(!0),C(F);},onPaste:S,onCompositionStart:$,onCompositionEnd:P,tabIndex:v,attrs:ps(t,!0),maxLength:_?y:void 0})),!_&&A?f__namespace.createElement("span",{className:"".concat(r,"-selection-item"),title:L,style:D?{visibility:"hidden"}:void 0},A.label):null,z())};function wN(e){return ![Q.ESC,Q.SHIFT,Q.BACKSPACE,Q.TAB,Q.WIN_KEY,Q.ALT,Q.META,Q.WIN_KEY_RIGHT,Q.CTRL,Q.SEMICOLON,Q.EQUALS,Q.CAPS_LOCK,Q.CONTEXT_MENU,Q.F1,Q.F2,Q.F3,Q.F4,Q.F5,Q.F6,Q.F7,Q.F8,Q.F9,Q.F10,Q.F11,Q.F12].includes(e)}var $N=function(t,n){var r=f.useRef(null),o=f.useRef(!1),i=t.prefixCls,a=t.open,s=t.mode,l=t.showSearch,c=t.tokenWithEnter,u=t.autoClearSearchValue,d=t.onSearch,m=t.onSearchSubmit,h=t.onToggleOpen,v=t.onInputKeyDown,g=t.domRef;f__namespace.useImperativeHandle(n,function(){return {focus:function(){r.current.focus();},blur:function(){r.current.blur();}}});var p=cy(0),b=X(p,2),y=b[0],w=b[1],x=function(T){var D=T.which;(D===Q.UP||D===Q.DOWN)&&T.preventDefault(),v&&v(T),D===Q.ENTER&&s==="tags"&&!o.current&&!a&&(m==null||m(T.target.value)),wN(D)&&h(!0);},C=function(){w(!0);},S=f.useRef(null),$=function(T){d(T,!0,o.current)!==!1&&h(!0);},P=function(){o.current=!0;},O=function(T){o.current=!1,s!=="combobox"&&$(T.target.value);},E=function(T){var D=T.target.value;if(c&&S.current&&/[\r\n]/.test(S.current)){var L=S.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");D=D.replace(L,S.current);}S.current=null,$(D);},N=function(T){var D=T.clipboardData,L=D.getData("text");S.current=L;},I=function(T){var D=T.target;if(D!==r.current){var L=document.body.style.msTouchAction!==void 0;L?setTimeout(function(){r.current.focus();}):r.current.focus();}},R=function(T){var D=y();T.target!==r.current&&!D&&s!=="combobox"&&T.preventDefault(),(s!=="combobox"&&(!l||!D)||!a)&&(a&&u!==!1&&d("",!0,!1),h());},_={inputRef:r,onInputKeyDown:x,onInputMouseDown:C,onInputChange:E,onInputPaste:N,onInputCompositionStart:P,onInputCompositionEnd:O},M=s==="multiple"||s==="tags"?f__namespace.createElement(CN,pe({},t,_)):f__namespace.createElement(SN,pe({},t,_));return f__namespace.createElement("div",{ref:g,className:"".concat(i,"-selector"),onClick:I,onMouseDown:R},M)},vy=f__namespace.forwardRef($N);vy.displayName="Selector";var Ig=f__namespace.createContext(null);function Rg(e){return e?Array.isArray(e)?e:[e]:[]}function xN(e,t,n,r){return f__namespace.useMemo(function(){var o=Rg(n??t),i=Rg(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])}function EN(){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 ON(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(EN((s=e[l])===null||s===void 0?void 0:s.points,o,r))return "".concat(t,"-placement-").concat(l)}return ""}function Mg(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function js(e){return e.ownerDocument.defaultView}function If(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=js(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 bs(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Ma(e){return bs(parseFloat(e),0)}function Tg(e,t){var n=B({},e);return (t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement)){var o=js(r).getComputedStyle(r),i=o.overflow,a=o.overflowClipMargin,s=o.borderTopWidth,l=o.borderBottomWidth,c=o.borderLeftWidth,u=o.borderRightWidth,d=r.getBoundingClientRect(),m=r.offsetHeight,h=r.clientHeight,v=r.offsetWidth,g=r.clientWidth,p=Ma(s),b=Ma(l),y=Ma(c),w=Ma(u),x=bs(Math.round(d.width/v*1e3)/1e3),C=bs(Math.round(d.height/m*1e3)/1e3),S=(v-g-y-w)*x,$=(m-h-p-b)*C,P=p*C,O=b*C,E=y*x,N=w*x,I=0,R=0;if(i==="clip"){var _=Ma(a);I=_*x,R=_*C;}var M=d.x+E-I,A=d.y+P-R,T=M+d.width+2*I-E-N-S,D=A+d.height+2*R-P-O-$;n.left=Math.max(n.left,M),n.top=Math.max(n.top,A),n.right=Math.min(n.right,T),n.bottom=Math.min(n.bottom,D);}}),n}function Ng(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 Ag(e,t){var n=t||[],r=X(n,2),o=r[0],i=r[1];return [Ng(e.width,o),Ng(e.height,i)]}function Dg(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return [e[0],e[1]]}function Ei(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 Co(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 PN(e,t,n,r,o,i,a){var s=f__namespace.useState({ready:!1,offsetX:0,offsetY:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),l=X(s,2),c=l[0],u=l[1],d=f__namespace.useRef(0),m=f__namespace.useMemo(function(){return t?If(t):[]},[t]),h=f__namespace.useRef({}),v=function(){h.current={};};e||v();var g=qn(function(){if(t&&n&&e){let et=function(gt,_t){var Yt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:oe,fr=E.x+gt,$n=E.y+_t,_r=fr+F,or=$n+V,Ho=Math.max(fr,Yt.left),el=Math.max($n,Yt.top),xa=Math.min(_r,Yt.right),tl=Math.min(or,Yt.bottom);return Math.max(0,(xa-Ho)*(tl-el))},St=function(){Ce=E.y+We,xe=Ce+V,qe=E.x+Xe,ft=qe+F;};var y=t,w=y.style.left,x=y.style.top,C=y.ownerDocument,S=js(y),$=B(B({},o[r]),i);y.style.left="0",y.style.top="0";var P;if(Array.isArray(n))P={x:n[0],y:n[1],width:0,height:0};else {var O=n.getBoundingClientRect();P={x:O.x,y:O.y,width:O.width,height:O.height};}var E=y.getBoundingClientRect(),N=S.getComputedStyle(y),I=N.width,R=N.height,_=C.documentElement,M=_.clientWidth,A=_.clientHeight,T=_.scrollWidth,D=_.scrollHeight,L=_.scrollTop,z=_.scrollLeft,V=E.height,F=E.width,G=P.height,H=P.width,K={left:0,top:0,right:M,bottom:A},te={left:-z,top:-L,right:T-z,bottom:D-L},Z=$.htmlRegion,Y="visible",ee="visibleFirst";Z!=="scroll"&&Z!==ee&&(Z=Y);var re=Z===ee,ae=Tg(te,m),ce=Tg(K,m),oe=Z===Y?ce:ae,me=re?ce:oe;y.style.left=w,y.style.top=x;var ye=bs(Math.round(F/parseFloat(I)*1e3)/1e3),ue=bs(Math.round(V/parseFloat(R)*1e3)/1e3);if(ye===0||ue===0||Xl(n)&&!Hm(n))return;var he=$.offset,ne=$.targetOffset,fe=Ag(E,he),le=X(fe,2),se=le[0],Ie=le[1],_e=Ag(P,ne),Le=X(_e,2),Re=Le[0],Ke=Le[1];P.x-=Re,P.y-=Ke;var dt=$.points||[],Je=X(dt,2),Ye=Je[0],ke=Je[1],ze=Dg(ke),ct=Dg(Ye),it=Ei(P,ze),be=Ei(E,ct),$e=B({},$),Xe=it.x-be.x+se,We=it.y-be.y+Ie,ut=et(Xe,We),Ee=et(Xe,We,ce),Oe=Ei(P,["t","l"]),je=Ei(E,["t","l"]),Me=Ei(P,["b","r"]),Ze=Ei(E,["b","r"]),wt=$.overflow||{},Lt=wt.adjustX,Dt=wt.adjustY,Ae=wt.shiftX,de=wt.shiftY,ie=function(_t){return typeof _t=="boolean"?_t:_t>=0},Ce,xe,qe,ft;St();var yt=ie(Dt),Xt=ct[0]===ze[0];if(yt&&ct[0]==="t"&&(xe>me.bottom||h.current.bt)){var Ht=We;Xt?Ht-=V-G:Ht=Oe.y-Ze.y-Ie;var De=et(Xe,Ht),Ve=et(Xe,Ht,ce);De>ut||De===ut&&(!re||Ve>=Ee)?(h.current.bt=!0,We=Ht,$e.points=[Co(ct,0),Co(ze,0)]):h.current.bt=!1;}if(yt&&ct[0]==="b"&&(Ce<me.top||h.current.tb)){var Te=We;Xt?Te+=V-G:Te=Me.y-je.y-Ie;var Ct=et(Xe,Te),vt=et(Xe,Te,ce);Ct>ut||Ct===ut&&(!re||vt>=Ee)?(h.current.tb=!0,We=Te,$e.points=[Co(ct,0),Co(ze,0)]):h.current.tb=!1;}var Jt=ie(Lt),Ne=ct[1]===ze[1];if(Jt&&ct[1]==="l"&&(ft>me.right||h.current.rl)){var Be=Xe;Ne?Be-=F-H:Be=Oe.x-Ze.x-se;var st=et(Be,We),xt=et(Be,We,ce);st>ut||st===ut&&(!re||xt>=Ee)?(h.current.rl=!0,Xe=Be,$e.points=[Co(ct,1),Co(ze,1)]):h.current.rl=!1;}if(Jt&&ct[1]==="r"&&(qe<me.left||h.current.lr)){var qt=Xe;Ne?qt+=F-H:qt=Me.x-je.x-se;var zt=et(qt,We),wn=et(qt,We,ce);zt>ut||zt===ut&&(!re||wn>=Ee)?(h.current.lr=!0,Xe=qt,$e.points=[Co(ct,1),Co(ze,1)]):h.current.lr=!1;}St();var Nn=Ae===!0?0:Ae;typeof Nn=="number"&&(qe<oe.left&&(Xe-=qe-oe.left,P.x+H<oe.left+Nn&&(Xe+=P.x-oe.left+H-Nn)),ft>oe.right&&(Xe-=ft-oe.right,P.x>oe.right-Nn&&(Xe+=P.x-oe.right+Nn)));var dr=de===!0?0:de;typeof dr=="number"&&(Ce<oe.top&&(We-=Ce-oe.top,P.y+G<oe.top+dr&&(We+=P.y-oe.top+G-dr)),xe>oe.bottom&&(We-=xe-oe.bottom,P.y>oe.bottom-dr&&(We+=P.y-oe.bottom+dr)));var Kr=E.x+Xe,Pr=Kr+F,rr=E.y+We,In=rr+V,Xr=P.x,Lo=Xr+H,qr=P.y,Yr=qr+G,Zr=Math.max(Kr,Xr),Fo=Math.min(Pr,Lo),zo=(Zr+Fo)/2,jo=zo-Kr,Qr=Math.max(rr,qr),Pt=Math.min(In,Yr),we=(Qr+Pt)/2,Se=we-rr;a==null||a(t,$e),u({ready:!0,offsetX:Xe/ye,offsetY:We/ue,arrowX:jo/ye,arrowY:Se/ue,scaleX:ye,scaleY:ue,align:$e});}}),p=function(){d.current+=1;var w=d.current;Promise.resolve().then(function(){d.current===w&&g();});},b=function(){u(function(w){return B(B({},w),{},{ready:!1})});};return Ut(b,[r]),Ut(function(){e||b();},[e]),[c.ready,c.offsetX,c.offsetY,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,p]}function _N(e,t,n,r){Ut(function(){if(e&&t&&n){let u=function(){r();};var o=t,i=n,a=If(o),s=If(i),l=js(i),c=new Set([l].concat(ge(a),ge(s)));return c.forEach(function(d){d.addEventListener("scroll",u,{passive:!0});}),l.addEventListener("resize",u,{passive:!0}),r(),function(){c.forEach(function(d){d.removeEventListener("scroll",u),l.removeEventListener("resize",u);});}}},[e,t,n]);}function IN(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,u=o.y,d=u===void 0?0:u,m=f__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],y=g[0],w=g[1];p===y||!["t","b"].includes(p)?h.top=d:p==="t"?h.top=0:h.bottom=0,b===w||!["l","r"].includes(b)?h.left=c:b==="l"?h.left=0:h.right=0;}return f__namespace.createElement("div",{ref:m,className:U("".concat(t,"-arrow"),a),style:h},s)}function RN(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?f__namespace.createElement(ko,pe({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var s=a.className;return f__namespace.createElement("div",{style:{zIndex:r},className:U("".concat(t,"-mask"),s)})}):null}var MN=f__namespace.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),TN=f__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,u=e.onClick,d=e.mask,m=e.arrow,h=e.arrowPos,v=e.align,g=e.motion,p=e.maskMotion,b=e.forceRender,y=e.getPopupContainer,w=e.autoDestroy,x=e.portal,C=e.zIndex,S=e.onMouseEnter,$=e.onMouseLeave,P=e.ready,O=e.offsetX,E=e.offsetY,N=e.onAlign,I=e.onPrepare,R=e.stretch,_=e.targetWidth,M=e.targetHeight,A=typeof n=="function"?n():n,T=l||c,D=(y==null?void 0:y.length)>0,L=f__namespace.useState(!y||!D),z=X(L,2),V=z[0],F=z[1];if(Ut(function(){!V&&D&&a&&F(!0);},[V,D,a]),!V)return null;var G=P||!l?{left:O,top:E}:{left:"-1000vw",top:"-1000vh"},H={};return R&&(R.includes("height")&&M?H.height=M:R.includes("minHeight")&&M&&(H.minHeight=M),R.includes("width")&&_?H.width=_:R.includes("minWidth")&&_&&(H.minWidth=_)),l||(H.pointerEvents="none"),f__namespace.createElement(x,{open:b||T,getContainer:y&&function(){return y(a)},autoDestroy:w},f__namespace.createElement(RN,{prefixCls:o,open:l,zIndex:C,mask:d,motion:p}),f__namespace.createElement(mo,{onResize:N,disabled:!l},function(K){return f__namespace.createElement(ko,pe({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:b,leavedClassName:"".concat(o,"-hidden")},g,{onAppearPrepare:I,onEnterPrepare:I,visible:l,onVisibleChanged:function(Z){var Y;g==null||(Y=g.onVisibleChanged)===null||Y===void 0||Y.call(g,Z),s(Z);}}),function(te,Z){var Y=te.className,ee=te.style,re=U(o,Y,r);return f__namespace.createElement("div",{ref:Fn(K,t,Z),className:re,style:B(B(B(B({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},G),H),ee),{},{boxSizing:"border-box",zIndex:C},i),onMouseEnter:S,onMouseLeave:$,onClick:u},m&&f__namespace.createElement(IN,{prefixCls:o,arrow:m,arrowPos:h,align:v}),f__namespace.createElement(MN,{cache:!l},A))})}))}),NN=f__namespace.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=vi(n),i=f__namespace.useCallback(function(s){Em(t,r?r(s):s);},[r]),a=Ns(i,n.ref);return o?f__namespace.cloneElement(n,{ref:a}):n}),AN=["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 DN(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ay,t=f__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,u=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,y=n.focusDelay,w=n.blurDelay,x=n.mask,C=n.maskClosable,S=C===void 0?!0:C,$=n.getPopupContainer,P=n.forceRender,O=n.autoDestroy,E=n.destroyPopupOnHide,N=n.popup,I=n.popupClassName,R=n.popupStyle,_=n.popupPlacement,M=n.builtinPlacements,A=M===void 0?{}:M,T=n.popupAlign,D=n.zIndex,L=n.stretch,z=n.getPopupClassNameFromAlign,V=n.alignPoint,F=n.onPopupClick,G=n.onPopupAlign,H=n.arrow,K=n.popupMotion,te=n.maskMotion,Z=n.popupTransitionName,Y=n.popupAnimation,ee=n.maskTransitionName,re=n.maskAnimation,ae=n.className,ce=n.getTriggerDOMNode,oe=Ue(n,AN),me=O||E||!1,ye=f__namespace.useState(!1),ue=X(ye,2),he=ue[0],ne=ue[1];Ut(function(){ne(iu());},[]);var fe=f__namespace.useRef({}),le=f__namespace.useContext(Ig),se=f__namespace.useMemo(function(){return {registerSubPopup:function(tt,Tt){fe.current[tt]=Tt,le==null||le.registerSubPopup(tt,Tt);}}},[le]),Ie=$T(),_e=f__namespace.useState(null),Le=X(_e,2),Re=Le[0],Ke=Le[1],dt=qn(function(He){Xl(He)&&Re!==He&&Ke(He),le==null||le.registerSubPopup(Ie,He);}),Je=f__namespace.useState(null),Ye=X(Je,2),ke=Ye[0],ze=Ye[1],ct=qn(function(He){Xl(He)&&ke!==He&&ze(He);}),it=f__namespace.Children.only(a),be=(it==null?void 0:it.props)||{},$e={},Xe=qn(function(He){var tt,Tt,Ft=ke;return (Ft==null?void 0:Ft.contains(He))||(Ft==null||(tt=Ft.getRootNode())===null||tt===void 0?void 0:tt.host)===He||He===Ft||(Re==null?void 0:Re.contains(He))||(Re==null||(Tt=Re.getRootNode())===null||Tt===void 0?void 0:Tt.host)===He||He===Re||Object.values(fe.current).some(function(It){return (It==null?void 0:It.contains(He))||He===It})}),We=Mg(i,K,Y,Z),ut=Mg(i,te,re,ee),Ee=f__namespace.useState(m||!1),Oe=X(Ee,2),je=Oe[0],Me=Oe[1],Ze=d??je,wt=qn(function(He){d===void 0&&Me(He);});Ut(function(){Me(d||!1);},[d]);var Lt=f__namespace.useRef(Ze);Lt.current=Ze;var Dt=qn(function(He){Ze!==He&&(wt(He),h==null||h(He));}),Ae=f__namespace.useRef(),de=function(){clearTimeout(Ae.current);},ie=function(tt){var Tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;de(),Tt===0?Dt(tt):Ae.current=setTimeout(function(){Dt(tt);},Tt*1e3);};f__namespace.useEffect(function(){return de},[]);var Ce=f__namespace.useState(!1),xe=X(Ce,2),qe=xe[0],ft=xe[1],yt=f__namespace.useRef(!0);Ut(function(){(!yt.current||Ze)&&ft(!0),yt.current=!0;},[Ze]);var Xt=f__namespace.useState(null),Ht=X(Xt,2),De=Ht[0],Ve=Ht[1],Te=f__namespace.useState([0,0]),Ct=X(Te,2),vt=Ct[0],Jt=Ct[1],Ne=function(tt){Jt([tt.clientX,tt.clientY]);},Be=PN(Ze,Re,V?vt:ke,_,A,T,G),st=X(Be,9),xt=st[0],qt=st[1],zt=st[2],wn=st[3],Nn=st[4],dr=st[5],Kr=st[6],Pr=st[7],rr=st[8],In=qn(function(){qe||rr();});_N(Ze,ke,Re,In),Ut(function(){In();},[vt,_]),Ut(function(){Ze&&!(A!=null&&A[_])&&In();},[JSON.stringify(T)]);var Xr=f__namespace.useMemo(function(){var He=ON(A,i,Pr,V);return U(He,z==null?void 0:z(Pr))},[Pr,z,A,i,V]);f__namespace.useImperativeHandle(r,function(){return {forceAlign:In}});var Lo=function(tt){ft(!1),rr(),v==null||v(tt);},qr=function(){return new Promise(function(tt){Ve(function(){return tt});})};Ut(function(){De&&(rr(),De(),Ve(null));},[De]);var Yr=f__namespace.useState(0),Zr=X(Yr,2),Fo=Zr[0],zo=Zr[1],jo=f__namespace.useState(0),Qr=X(jo,2),Pt=Qr[0],we=Qr[1],Se=function(tt,Tt){if(In(),L){var Ft=Tt.getBoundingClientRect();zo(Ft.width),we(Ft.height);}},et=xN(he,l,c,u),St=X(et,2),gt=St[0],_t=St[1],Yt=function(tt,Tt,Ft,It){$e[tt]=function(Ea){var yi;It==null||It(Ea),ie(Tt,Ft);for(var Bo=arguments.length,Ci=new Array(Bo>1?Bo-1:0),nl=1;nl<Bo;nl++)Ci[nl-1]=arguments[nl];(yi=be[tt])===null||yi===void 0||yi.call.apply(yi,[be,Ea].concat(Ci));};},fr=gt.has("click"),$n=_t.has("click")||_t.has("contextMenu");(fr||$n)&&($e.onClick=function(He){var tt;Lt.current&&$n?ie(!1):!Lt.current&&fr&&(Ne(He),ie(!0));for(var Tt=arguments.length,Ft=new Array(Tt>1?Tt-1:0),It=1;It<Tt;It++)Ft[It-1]=arguments[It];(tt=be.onClick)===null||tt===void 0||tt.call.apply(tt,[be,He].concat(Ft));}),f__namespace.useEffect(function(){if($n&&Re&&(!x||S)){var He=!1,tt=function(Bo){var Ci=Bo.target;He=Xe(Ci);},Tt=function(Bo){var Ci=Bo.target;Lt.current&&!He&&!Xe(Ci)&&ie(!1);},Ft=js(Re),It=ke==null?void 0:ke.getRootNode();Ft.addEventListener("mousedown",tt),Ft.addEventListener("click",Tt);var Ea=It&&It!==ke.ownerDocument;return Ea&&(It.addEventListener("mousedown",tt),It.addEventListener("click",Tt)),function(){Ft.removeEventListener("mousedown",tt),Ft.removeEventListener("click",Tt),Ea&&(It.removeEventListener("mousedown",tt),It.removeEventListener("click",Tt));}}},[$n,ke,Re,x,S]);var _r=gt.has("hover"),or=_t.has("hover"),Ho,el;_r&&(Yt("onMouseEnter",!0,g,function(He){Ne(He);}),Ho=function(){ie(!0,g);},V&&($e.onMouseMove=function(He){var tt;(tt=be.onMouseMove)===null||tt===void 0||tt.call(be,He);})),or&&(Yt("onMouseLeave",!1,b),el=function(){ie(!1,b);}),gt.has("focus")&&Yt("onFocus",!0,y),_t.has("focus")&&Yt("onBlur",!1,w),gt.has("contextMenu")&&($e.onContextMenu=function(He){var tt;Ne(He),ie(!0),He.preventDefault();for(var Tt=arguments.length,Ft=new Array(Tt>1?Tt-1:0),It=1;It<Tt;It++)Ft[It-1]=arguments[It];(tt=be.onContextMenu)===null||tt===void 0||tt.call.apply(tt,[be,He].concat(Ft));}),ae&&($e.className=U(be.className,ae));var xa=B(B({},be),$e),tl={},x1=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];x1.forEach(function(He){oe[He]&&(tl[He]=function(){for(var tt,Tt=arguments.length,Ft=new Array(Tt),It=0;It<Tt;It++)Ft[It]=arguments[It];(tt=xa[He])===null||tt===void 0||tt.call.apply(tt,[xa].concat(Ft)),oe[He].apply(oe,Ft);});});var E1=f__namespace.cloneElement(it,B(B({},xa),tl)),O1={x:wn,y:Nn},P1=H?B({},H!==!0?H:{}):null;return f__namespace.createElement(f__namespace.Fragment,null,f__namespace.createElement(mo,{disabled:!Ze,ref:ct,onResize:Se},f__namespace.createElement(NN,{getTriggerDOMNode:ce},E1)),f__namespace.createElement(Ig.Provider,{value:se},f__namespace.createElement(TN,{portal:e,ref:dt,prefixCls:i,popup:N,className:U(I,Xr),style:R,target:ke,onMouseEnter:Ho,onMouseLeave:el,zIndex:D,open:Ze,keepDom:qe,onClick:F,mask:x,motion:We,maskMotion:ut,onVisibleChanged:Lo,onPrepare:qr,forceRender:P,autoDestroy:me,getPopupContainer:$,align:Pr,arrow:P1,arrowPos:O1,ready:xt,offsetX:qt,offsetY:zt,onAlign:In,stretch:L,targetWidth:Fo/dr,targetHeight:Pt/Kr})))});return t}const au=DN(ay);var kN=["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],LN=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"}}},FN=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,u=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,y=t.dropdownAlign,w=t.getPopupContainer,x=t.empty,C=t.getTriggerDOMNode,S=t.onPopupVisibleChange,$=t.onPopupMouseEnter,P=Ue(t,kN),O="".concat(r,"-dropdown"),E=a;b&&(E=b(a));var N=f__namespace.useMemo(function(){return g||LN(p)},[g,p]),I=l?"".concat(O,"-").concat(l):c,R=f__namespace.useRef(null);f__namespace.useImperativeHandle(n,function(){return {getPopupElement:function(){return R.current}}});var _=B({minWidth:s},u);return typeof p=="number"?_.width=p:p&&(_.width=s),f__namespace.createElement(au,pe({},P,{showAction:S?["click"]:[],hideAction:S?["click"]:[],popupPlacement:v||(h==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:N,prefixCls:O,popupTransitionName:I,popup:f__namespace.createElement("div",{ref:R,onMouseEnter:$},E),popupAlign:y,popupVisible:o,getPopupContainer:w,popupClassName:U(d,q({},"".concat(O,"-empty"),x)),popupStyle:_,getTriggerDOMNode:C,onPopupVisibleChange:S}),i)},gy=f__namespace.forwardRef(FN);gy.displayName="SelectTrigger";function kg(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 py(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 zN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=py(n,!1),a=i.label,s=i.value,l=i.options,c=i.groupLabel;function u(d,m){d.forEach(function(h){if(m||!(l in h)){var v=h[s];o.push({key:kg(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:kg(h,o.length),group:!0,data:h,label:g}),u(h[l],!0);}});}return u(e,!1),o}function Rf(e){var t=B({},e);return "props"in t||Object.defineProperty(t,"props",{get:function(){return mn(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function jN(e,t){if(!t||!t.length)return null;var n=!1;function r(i,a){var s=d0(a),l=s[0],c=s.slice(1);if(!l)return [i];var u=i.split(l);return n=n||u.length>1,u.reduce(function(d,m){return [].concat(ge(d),ge(r(m,c)))},[]).filter(function(d){return d})}var o=r(e,t);return n?o:null}var HN=["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"],BN=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Mf(e){return e==="tags"||e==="multiple"}var WN=f__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,u=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,y=e.disabled,w=e.loading,x=e.getInputElement,C=e.getRawInputElement,S=e.open,$=e.defaultOpen,P=e.onDropdownVisibleChange,O=e.activeValue,E=e.onActiveValueChange,N=e.activeDescendantId,I=e.searchValue,R=e.autoClearSearchValue,_=e.onSearch,M=e.onSearchSplit,A=e.tokenSeparators,T=e.allowClear,D=e.showArrow,L=e.inputIcon,z=e.clearIcon,V=e.OptionList,F=e.animation,G=e.transitionName,H=e.dropdownStyle,K=e.dropdownClassName,te=e.dropdownMatchSelectWidth,Z=e.dropdownRender,Y=e.dropdownAlign,ee=e.placement,re=e.builtinPlacements,ae=e.getPopupContainer,ce=e.showAction,oe=ce===void 0?[]:ce,me=e.onFocus,ye=e.onBlur,ue=e.onKeyUp,he=e.onKeyDown,ne=e.onMouseDown,fe=Ue(e,HN),le=Mf(b),se=(s!==void 0?s:le)||b==="combobox",Ie=B({},fe);BN.forEach(function(we){delete Ie[we];}),u==null||u.forEach(function(we){delete Ie[we];});var _e=f__namespace.useState(!1),Le=X(_e,2),Re=Le[0],Ke=Le[1];f__namespace.useEffect(function(){Ke(iu());},[]);var dt=f__namespace.useRef(null),Je=f__namespace.useRef(null),Ye=f__namespace.useRef(null),ke=f__namespace.useRef(null),ze=f__namespace.useRef(null),ct=tN(),it=X(ct,3),be=it[0],$e=it[1],Xe=it[2];f__namespace.useImperativeHandle(t,function(){var we,Se;return {focus:(we=ke.current)===null||we===void 0?void 0:we.focus,blur:(Se=ke.current)===null||Se===void 0?void 0:Se.blur,scrollTo:function(St){var gt;return (gt=ze.current)===null||gt===void 0?void 0:gt.scrollTo(St)}}});var We=f__namespace.useMemo(function(){var we;if(b!=="combobox")return I;var Se=(we=d[0])===null||we===void 0?void 0:we.value;return typeof Se=="string"||typeof Se=="number"?String(Se):""},[I,b,d]),ut=b==="combobox"&&typeof x=="function"&&x()||null,Ee=typeof C=="function"&&C(),Oe=Ns(Je,Ee==null||(n=Ee.props)===null||n===void 0?void 0:n.ref),je=f__namespace.useState(!1),Me=X(je,2),Ze=Me[0],wt=Me[1];Ut(function(){wt(!0);},[]);var Lt=Qt(!1,{defaultValue:$,value:S}),Dt=X(Lt,2),Ae=Dt[0],de=Dt[1],ie=Ze?Ae:!1,Ce=!g&&h;(y||Ce&&ie&&b==="combobox")&&(ie=!1);var xe=Ce?!1:ie,qe=f__namespace.useCallback(function(we){var Se=we!==void 0?we:!ie;y||(de(Se),ie!==Se&&(P==null||P(Se)));},[y,ie,de,P]),ft=f__namespace.useMemo(function(){return (A||[]).some(function(we){return [`
`,`\r
`].includes(we)})},[A]),yt=function(Se,et,St){var gt=!0,_t=Se;E==null||E(null);var Yt=St?null:jN(Se,A);return b!=="combobox"&&Yt&&(_t="",M==null||M(Yt),qe(!1),gt=!1),_&&We!==_t&&_(_t,{source:et?"typing":"effect"}),gt},Xt=function(Se){!Se||!Se.trim()||_(Se,{source:"submit"});};f__namespace.useEffect(function(){!ie&&!le&&b!=="combobox"&&yt("",!1,!1);},[ie]),f__namespace.useEffect(function(){Ae&&y&&de(!1),y&&$e(!1);},[y]);var Ht=cy(),De=X(Ht,2),Ve=De[0],Te=De[1],Ct=function(Se){var et=Ve(),St=Se.which;if(St===Q.ENTER&&(b!=="combobox"&&Se.preventDefault(),ie||qe(!0)),Te(!!We),St===Q.BACKSPACE&&!et&&le&&!We&&d.length){for(var gt=ge(d),_t=null,Yt=gt.length-1;Yt>=0;Yt-=1){var fr=gt[Yt];if(!fr.disabled){gt.splice(Yt,1),_t=fr;break}}_t&&m(gt,{type:"remove",values:[_t]});}for(var $n=arguments.length,_r=new Array($n>1?$n-1:0),or=1;or<$n;or++)_r[or-1]=arguments[or];if(ie&&ze.current){var Ho;(Ho=ze.current).onKeyDown.apply(Ho,[Se].concat(_r));}he==null||he.apply(void 0,[Se].concat(_r));},vt=function(Se){for(var et=arguments.length,St=new Array(et>1?et-1:0),gt=1;gt<et;gt++)St[gt-1]=arguments[gt];if(ie&&ze.current){var _t;(_t=ze.current).onKeyUp.apply(_t,[Se].concat(St));}ue==null||ue.apply(void 0,[Se].concat(St));},Jt=function(Se){var et=d.filter(function(St){return St!==Se});m(et,{type:"remove",values:[Se]});},Ne=f__namespace.useRef(!1),Be=function(){$e(!0),y||(me&&!Ne.current&&me.apply(void 0,arguments),oe.includes("focus")&&qe(!0)),Ne.current=!0;},st=function(){$e(!1,function(){Ne.current=!1,qe(!1);}),!y&&(We&&(b==="tags"?_(We,{source:"submit"}):b==="multiple"&&_("",{source:"blur"})),ye&&ye.apply(void 0,arguments));},xt=[];f__namespace.useEffect(function(){return function(){xt.forEach(function(we){return clearTimeout(we)}),xt.splice(0,xt.length);}},[]);var qt=function(Se){var et,St=Se.target,gt=(et=Ye.current)===null||et===void 0?void 0:et.getPopupElement();if(gt&&gt.contains(St)){var _t=setTimeout(function(){var _r=xt.indexOf(_t);if(_r!==-1&&xt.splice(_r,1),Xe(),!Re&&!gt.contains(document.activeElement)){var or;(or=ke.current)===null||or===void 0||or.focus();}});xt.push(_t);}for(var Yt=arguments.length,fr=new Array(Yt>1?Yt-1:0),$n=1;$n<Yt;$n++)fr[$n-1]=arguments[$n];ne==null||ne.apply(void 0,[Se].concat(fr));},zt=f__namespace.useState(null),wn=X(zt,2),Nn=wn[0],dr=wn[1],Kr=f__namespace.useState({}),Pr=X(Kr,2),rr=Pr[1];function In(){rr({});}Ut(function(){if(xe){var we,Se=Math.ceil((we=dt.current)===null||we===void 0?void 0:we.offsetWidth);Nn!==Se&&!Number.isNaN(Se)&&dr(Se);}},[xe]);var Xr;Ee&&(Xr=function(Se){qe(Se);}),nN(function(){var we;return [dt.current,(we=Ye.current)===null||we===void 0?void 0:we.getPopupElement()]},xe,qe,!!Ee);var Lo=f__namespace.useMemo(function(){return B(B({},e),{},{notFoundContent:g,open:ie,triggerOpen:xe,id:o,showSearch:se,multiple:le,toggleOpen:qe})},[e,g,xe,ie,o,se,le,qe]),qr=D!==void 0?D:w||!le&&b!=="combobox",Yr;qr&&(Yr=f__namespace.createElement(lc,{className:U("".concat(i,"-arrow"),q({},"".concat(i,"-arrow-loading"),w)),customizeIcon:L,customizeIconProps:{loading:w,searchValue:We,open:ie,focused:be,showSearch:se}}));var Zr,Fo=function(){var Se;p==null||p(),(Se=ke.current)===null||Se===void 0||Se.focus(),m([],{type:"clear",values:d}),yt("",!1,!1);};!y&&T&&(d.length||We)&&!(b==="combobox"&&We==="")&&(Zr=f__namespace.createElement(lc,{className:"".concat(i,"-clear"),onMouseDown:Fo,customizeIcon:z},"×"));var zo=f__namespace.createElement(V,{ref:ze}),jo=U(i,a,(r={},q(r,"".concat(i,"-focused"),be),q(r,"".concat(i,"-multiple"),le),q(r,"".concat(i,"-single"),!le),q(r,"".concat(i,"-allow-clear"),T),q(r,"".concat(i,"-show-arrow"),qr),q(r,"".concat(i,"-disabled"),y),q(r,"".concat(i,"-loading"),w),q(r,"".concat(i,"-open"),ie),q(r,"".concat(i,"-customize-input"),ut),q(r,"".concat(i,"-show-search"),se),r)),Qr=f__namespace.createElement(gy,{ref:Ye,disabled:y,prefixCls:i,visible:xe,popupElement:zo,containerWidth:Nn,animation:F,transitionName:G,dropdownStyle:H,dropdownClassName:K,direction:c,dropdownMatchSelectWidth:te,dropdownRender:Z,dropdownAlign:Y,placement:ee,builtinPlacements:re,getPopupContainer:ae,empty:h,getTriggerDOMNode:function(){return Je.current},onPopupVisibleChange:Xr,onPopupMouseEnter:In},Ee?f__namespace.cloneElement(Ee,{ref:Oe}):f__namespace.createElement(vy,pe({},e,{domRef:Je,prefixCls:i,inputElement:ut,ref:ke,id:o,showSearch:se,autoClearSearchValue:R,mode:b,activeDescendantId:N,tagRender:l,values:d,open:ie,onToggleOpen:qe,activeValue:O,searchValue:We,onSearch:yt,onSearchSubmit:Xt,onRemove:Jt,tokenWithEnter:ft}))),Pt;return Ee?Pt=Qr:Pt=f__namespace.createElement("div",pe({className:jo},Ie,{ref:dt,onMouseDown:qt,onKeyDown:Ct,onKeyUp:vt,onFocus:Be,onBlur:st}),be&&!ie&&f__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,et=we.value;return ["number","string"].includes(nt(Se))?Se:et}).join(", "))),Qr,Yr,Zr),f__namespace.createElement(ly.Provider,{value:Lo},Pt)});const VN=function(e,t){var n=f__namespace.useRef({values:new Map,options:new Map}),r=f__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 B(B({},d),{},{label:(m=a.get(d.value))===null||m===void 0?void 0:m.label})}return d}),c=new Map,u=new Map;return l.forEach(function(d){c.set(d.value,d),u.set(d.value,t.get(d.value)||s.get(d.value));}),n.current.values=c,n.current.options=u,l},[e,t]),o=f__namespace.useCallback(function(i){return t.get(i)||n.current.options.get(i)},[t]);return [r,o]};function cd(e,t){return my(e).join("").toUpperCase().includes(t)}const GN=function(e,t,n,r,o){return f__namespace.useMemo(function(){if(!n||r===!1)return e;var i=t.options,a=t.label,s=t.value,l=[],c=typeof r=="function",u=n.toUpperCase(),d=c?r:function(h,v){return o?cd(v[o],u):v[i]?cd(v[a!=="children"?a:"label"],u):cd(v[s],u)},m=c?function(h){return Rf(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(B(B({},h),{},q({},i,g)));}return}d(n,m(h))&&l.push(h);}),l},[e,r,o,n,t])};var Lg=0,UN=kn();function KN(){var e;return UN?(e=Lg,Lg+=1):e="TEST_OR_SSR",e}function XN(e){var t=f__namespace.useState(),n=X(t,2),r=n[0],o=n[1];return f__namespace.useEffect(function(){o("rc_select_".concat(KN()));},[]),e||r}var qN=["children","value"],YN=["children"];function ZN(e){var t=e,n=t.key,r=t.props,o=r.children,i=r.value,a=Ue(r,qN);return B({key:n,value:i!==void 0?i:n,children:o},a)}function by(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return ur(e).map(function(n,r){if(!f__namespace.isValidElement(n)||!n.type)return null;var o=n,i=o.type.isSelectOptGroup,a=o.key,s=o.props,l=s.children,c=Ue(s,YN);return t||!i?ZN(n):B(B({key:"__RC_SELECT_GRP__".concat(a===null?r:a,"__"),label:a},c),{},{options:by(l)})}).filter(function(n){return n})}function QN(e,t,n,r,o){return f__namespace.useMemo(function(){var i=e,a=!e;a&&(i=by(t));var s=new Map,l=new Map,c=function(m,h,v){v&&typeof v=="string"&&m.set(h[v],h);};function u(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)):u(v[n.options],!0);}}return u(i),{options:i,valueOptions:s,labelOptions:l}},[e,t,n,r,o])}function Fg(e){var t=f__namespace.useRef();t.current=e;var n=f__namespace.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var Qm=function(){return null};Qm.isSelectOptGroup=!0;var Jm=function(){return null};Jm.isSelectOption=!0;var yy=f__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=B(B({},c),{},{transform:"translateY(".concat(r,"px)"),position:"absolute",left:0,right:0,top:0})),f__namespace.createElement("div",{style:l},f__namespace.createElement(mo,{onResize:function(d){var m=d.offsetHeight;m&&a&&a();}},f__namespace.createElement("div",pe({style:c,className:U(q({},"".concat(i,"-holder-inner"),i)),ref:t},s),o)))});yy.displayName="Filler";var JN=20;function zg(e){return "touches"in e?e.touches[0].pageY:e.pageY}var eA=function(e){mi(n,e);var t=hi(n);function n(){var r;Cn(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=f__namespace.createRef(),r.thumbRef=f__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)),Nt.cancel(r.moveRaf);},r.onMouseDown=function(s){var l=r.props.onStartMove;r.setState({dragging:!0,pageY:zg(s),startTop:r.getTop()}),l(),r.patchEvents(),s.stopPropagation(),s.preventDefault();},r.onMouseMove=function(s){var l=r.state,c=l.dragging,u=l.pageY,d=l.startTop,m=r.props.onScroll;if(Nt.cancel(r.moveRaf),c){var h=zg(s)-u,v=d+h,g=r.getEnableScrollRange(),p=r.getEnableHeightRange(),b=p?v/p:0,y=Math.ceil(b*g);r.moveRaf=Nt(function(){m(y);});}},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,u=l/c*10;return u=Math.max(u,JN),u=Math.min(u,l/2),Math.floor(u)},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 u=s/l;return u*c},r.showScroll=function(){var s=r.props,l=s.height,c=s.scrollHeight;return c>l},r}return Sn(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,u=this.getSpinHeight(),d=this.getTop(),m=this.showScroll(),h=m&&a,v=c==="rtl"?{left:0}:{right:0};return f__namespace.createElement("div",{ref:this.scrollbarRef,className:U("".concat(l,"-scrollbar"),q({},"".concat(l,"-scrollbar-show"),m)),style:B(B({width:8,top:0,bottom:0},v),{},{position:"absolute",display:h?null:"none"}),onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},f__namespace.createElement("div",{ref:this.thumbRef,className:U("".concat(l,"-scrollbar-thumb"),q({},"".concat(l,"-scrollbar-thumb-moving"),i)),style:{width:"100%",height:u,top:d,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}]),n}(f__namespace.Component);function tA(e){var t=e.children,n=e.setRef,r=f__namespace.useCallback(function(o){n(o);},[]);return f__namespace.cloneElement(t,{ref:r})}function nA(e,t,n,r,o,i){var a=i.getKey;return e.slice(t,n+1).map(function(s,l){var c=t+l,u=o(s,c,{}),d=a(s);return f__namespace.createElement(tA,{key:d,setRef:function(h){return r(s,h)}},u)})}var rA=function(){function e(){Cn(this,e),this.maps=void 0,this.maps=Object.create(null);}return Sn(e,[{key:"set",value:function(n,r){this.maps[n]=r;}},{key:"get",value:function(n){return this.maps[n]}}]),e}();function oA(e,t,n){var r=f__namespace.useState(0),o=X(r,2),i=o[0],a=o[1],s=f.useRef(new Map),l=f.useRef(new rA),c=f.useRef();function u(){Nt.cancel(c.current);}function d(){u(),c.current=Nt(function(){s.current.forEach(function(h,v){if(h&&h.offsetParent){var g=ql(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 f.useEffect(function(){return u},[]),[m,d,l.current,i]}function iA(e,t,n,r,o,i,a,s){var l=f__namespace.useRef();return function(c){if(c==null){s();return}if(Nt.cancel(l.current),typeof c=="number")a(c);else if(c&&nt(c)==="object"){var u,d=c.align;"index"in c?u=c.index:u=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 y=e.current.clientHeight,w=!1,x=b;if(y){for(var C=b||d,S=0,$=0,P=0,O=Math.min(t.length,u),E=0;E<=O;E+=1){var N=o(t[E]);$=S;var I=n.get(N);P=$+(I===void 0?r:I),S=P,E===u&&I===void 0&&(w=!0);}var R=null;switch(C){case"top":R=$-h;break;case"bottom":R=P-y+h;break;default:{var _=e.current.scrollTop,M=_+y;$<_?x="top":P>M&&(x="bottom");}}R!==null&&R!==e.current.scrollTop&&a(R);}l.current=Nt(function(){w&&i(),g(p-1,x);},2);}};v(3);}}}function aA(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,u=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,u=u||m!==l(a[d+1]);break}}return c===null?null:{index:c,multiple:u}}function sA(e,t,n){var r=f__namespace.useState(e),o=X(r,2),i=o[0],a=o[1],s=f__namespace.useState(null),l=X(s,2),c=l[0],u=l[1];return f__namespace.useEffect(function(){var d=aA(i||[],e||[],t);(d==null?void 0:d.index)!==void 0&&(n==null||n(d.index),u(e[d.index])),a(e);},[e]),[c]}var lA=(typeof navigator>"u"?"undefined":nt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const Cy=function(e,t){var n=f.useRef(!1),r=f.useRef(null);function o(){clearTimeout(r.current),n.current=!0,r.current=setTimeout(function(){n.current=!1;},50);}var i=f.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 cA(e,t,n,r){var o=f.useRef(0),i=f.useRef(null),a=f.useRef(null),s=f.useRef(!1),l=Cy(t,n);function c(d){if(e){Nt.cancel(i.current);var m=d.deltaY;o.current+=m,a.current=m,!l(m)&&(lA||d.preventDefault(),i.current=Nt(function(){var h=s.current?10:1;r(o.current*h),o.current=0;}));}}function u(d){e&&(s.current=d.detail===a.current);}return [c,u]}var uA=14/15;function dA(e,t,n){var r=f.useRef(!1),o=f.useRef(0),i=f.useRef(null),a=f.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*=uA,(!n(v,!0)||Math.abs(v)<=.1)&&clearInterval(a.current);},16);}},c=function(){r.current=!1,s();},u=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));},Ut(function(){return e&&t.current.addEventListener("touchstart",u),function(){var d;(d=t.current)===null||d===void 0||d.removeEventListener("touchstart",u),s(),clearInterval(a.current);}},[e]);}var fA=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","component","onScroll","onVisibleChange","innerProps"],mA=[],hA={overflowY:"auto",overflowAnchor:"none"};function vA(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,u=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,y=e.onVisibleChange,w=e.innerProps,x=Ue(e,fA),C=!!(h!==!1&&i&&a),S=C&&u&&a*u.length>i,$=f.useState(0),P=X($,2),O=P[0],E=P[1],N=f.useState(!1),I=X(N,2),R=I[0],_=I[1],M=U(r,q({},"".concat(r,"-rtl"),v==="rtl"),o),A=u||mA,T=f.useRef(),D=f.useRef(),L=f.useRef(),z=f__namespace.useCallback(function(be){return typeof m=="function"?m(be):be==null?void 0:be[m]},[m]),V={getKey:z};function F(be){E(function($e){var Xe;typeof be=="function"?Xe=be($e):Xe=be;var We=se(Xe);return T.current.scrollTop=We,We});}var G=f.useRef({start:0,end:A.length}),H=f.useRef(),K=sA(A,z),te=X(K,1),Z=te[0];H.current=Z;var Y=oA(z,null,null),ee=X(Y,4),re=ee[0],ae=ee[1],ce=ee[2],oe=ee[3],me=f__namespace.useMemo(function(){if(!C)return {scrollHeight:void 0,start:0,end:A.length-1,offset:void 0};if(!S){var be;return {scrollHeight:((be=D.current)===null||be===void 0?void 0:be.offsetHeight)||0,start:0,end:A.length-1,offset:void 0}}for(var $e=0,Xe,We,ut,Ee=A.length,Oe=0;Oe<Ee;Oe+=1){var je=A[Oe],Me=z(je),Ze=ce.get(Me),wt=$e+(Ze===void 0?a:Ze);wt>=O&&Xe===void 0&&(Xe=Oe,We=$e),wt>O+i&&ut===void 0&&(ut=Oe),$e=wt;}return Xe===void 0&&(Xe=0,We=0,ut=Math.ceil(i/a)),ut===void 0&&(ut=A.length-1),ut=Math.min(ut+1,A.length),{scrollHeight:$e,start:Xe,end:ut,offset:We}},[S,C,O,A,oe,i]),ye=me.scrollHeight,ue=me.start,he=me.end,ne=me.offset;G.current.start=ue,G.current.end=he;var fe=ye-i,le=f.useRef(fe);le.current=fe;function se(be){var $e=be;return Number.isNaN(le.current)||($e=Math.min($e,le.current)),$e=Math.max($e,0),$e}var Ie=O<=0,_e=O>=fe,Le=Cy(Ie,_e);function Re(be){var $e=be;F($e);}function Ke(be){var $e=be.currentTarget.scrollTop;$e!==O&&F($e),b==null||b(be);}var dt=cA(C,Ie,_e,function(be){F(function($e){var Xe=$e+be;return Xe});}),Je=X(dt,2),Ye=Je[0],ke=Je[1];dA(C,T,function(be,$e){return Le(be,$e)?!1:(Ye({preventDefault:function(){},deltaY:be}),!0)}),Ut(function(){function be($e){C&&$e.preventDefault();}return T.current.addEventListener("wheel",Ye),T.current.addEventListener("DOMMouseScroll",ke),T.current.addEventListener("MozMousePixelScroll",be),function(){T.current&&(T.current.removeEventListener("wheel",Ye),T.current.removeEventListener("DOMMouseScroll",ke),T.current.removeEventListener("MozMousePixelScroll",be));}},[C]);var ze=iA(T,A,ce,a,z,ae,F,function(){var be;(be=L.current)===null||be===void 0||be.delayHidden();});f__namespace.useImperativeHandle(t,function(){return {scrollTo:ze}}),Ut(function(){if(y){var be=A.slice(ue,he+1);y(be,A);}},[ue,he,A]);var ct=nA(A,ue,he,re,d,V),it=null;return i&&(it=B(q({},l?"height":"maxHeight",i),hA),C&&(it.overflowY="hidden",R&&(it.pointerEvents="none"))),f__namespace.createElement("div",pe({style:B(B({},c),{},{position:"relative"}),className:M},x),f__namespace.createElement(p,{className:"".concat(r,"-holder"),style:it,ref:T,onScroll:Ke},f__namespace.createElement(yy,{prefixCls:r,height:ye,offset:ne,onInnerResize:ae,ref:D,innerProps:w},ct)),C&&f__namespace.createElement(eA,{ref:L,prefixCls:r,scrollTop:O,height:i,scrollHeight:ye,count:A.length,direction:v,onScroll:Re,onStartMove:function(){_(!0);},onStopMove:function(){_(!1);}}))}var Sy=f__namespace.forwardRef(vA);Sy.displayName="List";var wy=f__namespace.createContext(null);function gA(){return /(mac\sos|macintosh)/i.test(navigator.appVersion)}var pA=["disabled","title","children","style","className"];function jg(e){return typeof e=="string"||typeof e=="number"}var bA=function(t,n){var r=eN(),o=r.prefixCls,i=r.id,a=r.open,s=r.multiple,l=r.mode,c=r.searchValue,u=r.toggleOpen,d=r.notFoundContent,m=r.onPopupScroll,h=f__namespace.useContext(wy),v=h.flattenOptions,g=h.onActiveValue,p=h.defaultActiveFirstOption,b=h.onSelect,y=h.menuItemSelectedIcon,w=h.rawValues,x=h.fieldNames,C=h.virtual,S=h.direction,$=h.listHeight,P=h.listItemHeight,O="".concat(o,"-item"),E=Ts(function(){return v},[a,v],function(Z,Y){return Y[0]&&Z[1]!==Y[1]}),N=f__namespace.useRef(null),I=function(Y){Y.preventDefault();},R=function(Y){N.current&&N.current.scrollTo(typeof Y=="number"?{index:Y}:Y);},_=function(Y){for(var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,re=E.length,ae=0;ae<re;ae+=1){var ce=(Y+ae*ee+re)%re,oe=E[ce],me=oe.group,ye=oe.data;if(!me&&!ye.disabled)return ce}return -1},M=f__namespace.useState(function(){return _(0)}),A=X(M,2),T=A[0],D=A[1],L=function(Y){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;D(Y);var re={source:ee?"keyboard":"mouse"},ae=E[Y];if(!ae){g(null,-1,re);return}g(ae.value,Y,re);};f.useEffect(function(){L(p!==!1?_(0):-1);},[E.length,c]);var z=f__namespace.useCallback(function(Z){return w.has(Z)&&l!=="combobox"},[l,ge(w).toString(),w.size]);f.useEffect(function(){var Z=setTimeout(function(){if(!s&&a&&w.size===1){var ee=Array.from(w)[0],re=E.findIndex(function(ae){var ce=ae.data;return ce.value===ee});re!==-1&&(L(re),R(re));}});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 V=function(Y){Y!==void 0&&b(Y,{selected:!w.has(Y)}),s||u(!1);};if(f__namespace.useImperativeHandle(n,function(){return {onKeyDown:function(Y){var ee=Y.which,re=Y.ctrlKey;switch(ee){case Q.N:case Q.P:case Q.UP:case Q.DOWN:{var ae=0;if(ee===Q.UP?ae=-1:ee===Q.DOWN?ae=1:gA()&&re&&(ee===Q.N?ae=1:ee===Q.P&&(ae=-1)),ae!==0){var ce=_(T+ae,ae);R(ce),L(ce,!0);}break}case Q.ENTER:{var oe=E[T];oe&&!oe.data.disabled?V(oe.value):V(void 0),a&&Y.preventDefault();break}case Q.ESC:u(!1),a&&Y.stopPropagation();}},onKeyUp:function(){},scrollTo:function(Y){R(Y);}}}),E.length===0)return f__namespace.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(O,"-empty"),onMouseDown:I},d);var F=Object.keys(x).map(function(Z){return x[Z]}),G=function(Y){return Y.label};function H(Z,Y){var ee=Z.group;return {role:ee?"presentation":"option",id:"".concat(i,"_list_").concat(Y)}}var K=function(Y){var ee=E[Y];if(!ee)return null;var re=ee.data||{},ae=re.value,ce=ee.group,oe=ps(re,!0),me=G(ee);return ee?f__namespace.createElement("div",pe({"aria-label":typeof me=="string"&&!ce?me:null},oe,{key:Y},H(ee,Y),{"aria-selected":z(ae)}),ae):null},te={role:"listbox",id:"".concat(i,"_list")};return f__namespace.createElement(f__namespace.Fragment,null,C&&f__namespace.createElement("div",pe({},te,{style:{height:0,width:0,overflow:"hidden"}}),K(T-1),K(T),K(T+1)),f__namespace.createElement(Sy,{itemKey:"key",ref:N,data:E,height:$,itemHeight:P,fullHeight:!1,onMouseDown:I,onScroll:m,virtual:C,direction:S,innerProps:C?null:te},function(Z,Y){var ee,re=Z.group,ae=Z.groupOption,ce=Z.data,oe=Z.label,me=Z.value,ye=ce.key;if(re){var ue,he=(ue=ce.title)!==null&&ue!==void 0?ue:jg(oe)?oe.toString():void 0;return f__namespace.createElement("div",{className:U(O,"".concat(O,"-group")),title:he},oe!==void 0?oe:ye)}var ne=ce.disabled,fe=ce.title;ce.children;var le=ce.style,se=ce.className,Ie=Ue(ce,pA),_e=Mn(Ie,F),Le=z(me),Re="".concat(O,"-option"),Ke=U(O,Re,se,(ee={},q(ee,"".concat(Re,"-grouped"),ae),q(ee,"".concat(Re,"-active"),T===Y&&!ne),q(ee,"".concat(Re,"-disabled"),ne),q(ee,"".concat(Re,"-selected"),Le),ee)),dt=G(Z),Je=!y||typeof y=="function"||Le,Ye=typeof dt=="number"?dt:dt||me,ke=jg(Ye)?Ye.toString():void 0;return fe!==void 0&&(ke=fe),f__namespace.createElement("div",pe({},ps(_e),C?{}:H(Z,Y),{"aria-selected":Le,className:Ke,title:ke,onMouseMove:function(){T===Y||ne||L(Y);},onClick:function(){ne||V(me);},style:le}),f__namespace.createElement("div",{className:"".concat(Re,"-content")},Ye),f__namespace.isValidElement(y)||Le,Je&&f__namespace.createElement(lc,{className:"".concat(O,"-option-state"),customizeIcon:y,customizeIconProps:{isSelected:Le}},Le?"✓":null))}))},$y=f__namespace.forwardRef(bA);$y.displayName="OptionList";var yA=["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"],CA=["inputValue"];function SA(e){return !e||nt(e)!=="object"}var wA=f__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,u=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,y=e.filterSort,w=e.optionFilterProp,x=e.optionLabelProp,C=e.options,S=e.children,$=e.defaultActiveFirstOption,P=e.menuItemSelectedIcon,O=e.virtual,E=e.direction,N=e.listHeight,I=N===void 0?200:N,R=e.listItemHeight,_=R===void 0?20:R,M=e.value,A=e.defaultValue,T=e.labelInValue,D=e.onChange,L=Ue(e,yA),z=XN(n),V=Mf(r),F=!!(!C&&S),G=f__namespace.useMemo(function(){return b===void 0&&r==="combobox"?!1:b},[b,r]),H=f__namespace.useMemo(function(){return py(s,F)},[JSON.stringify(s),F]),K=Qt("",{value:c!==void 0?c:l,postState:function(ie){return ie||""}}),te=X(K,2),Z=te[0],Y=te[1],ee=QN(C,S,H,w,x),re=ee.valueOptions,ae=ee.labelOptions,ce=ee.options,oe=f__namespace.useCallback(function(de){var ie=my(de);return ie.map(function(Ce){var xe,qe,ft,yt,Xt;if(SA(Ce))xe=Ce;else {var Ht;ft=Ce.key,qe=Ce.label,xe=(Ht=Ce.value)!==null&&Ht!==void 0?Ht:ft;}var De=re.get(xe);if(De){var Ve;qe===void 0&&(qe=De==null?void 0:De[x||H.label]),ft===void 0&&(ft=(Ve=De==null?void 0:De.key)!==null&&Ve!==void 0?Ve:xe),yt=De==null?void 0:De.disabled,Xt=De==null?void 0:De.title;}return {label:qe,value:xe,key:ft,disabled:yt,title:Xt}})},[H,x,re]),me=Qt(A,{value:M}),ye=X(me,2),ue=ye[0],he=ye[1],ne=f__namespace.useMemo(function(){var de,ie=oe(ue);return r==="combobox"&&!((de=ie[0])!==null&&de!==void 0&&de.value)?[]:ie},[ue,oe,r]),fe=VN(ne,re),le=X(fe,2),se=le[0],Ie=le[1],_e=f__namespace.useMemo(function(){if(!r&&se.length===1){var de=se[0];if(de.value===null&&(de.label===null||de.label===void 0))return []}return se.map(function(ie){var Ce;return B(B({},ie),{},{label:(Ce=ie.label)!==null&&Ce!==void 0?Ce:ie.value})})},[r,se]),Le=f__namespace.useMemo(function(){return new Set(se.map(function(de){return de.value}))},[se]);f__namespace.useEffect(function(){if(r==="combobox"){var de,ie=(de=se[0])===null||de===void 0?void 0:de.value;Y(pN(ie)?String(ie):"");}},[se]);var Re=Fg(function(de,ie){var Ce,xe=ie??de;return Ce={},q(Ce,H.value,de),q(Ce,H.label,xe),Ce}),Ke=f__namespace.useMemo(function(){if(r!=="tags")return ce;var de=ge(ce),ie=function(xe){return re.has(xe)};return ge(se).sort(function(Ce,xe){return Ce.value<xe.value?-1:1}).forEach(function(Ce){var xe=Ce.value;ie(xe)||de.push(Re(xe,Ce.label));}),de},[Re,ce,re,se,r]),dt=GN(Ke,H,Z,G,w),Je=f__namespace.useMemo(function(){return r!=="tags"||!Z||dt.some(function(de){return de[w||"value"]===Z})?dt:[Re(Z)].concat(ge(dt))},[Re,w,r,dt,Z]),Ye=f__namespace.useMemo(function(){return y?ge(Je).sort(function(de,ie){return y(de,ie)}):Je},[Je,y]),ke=f__namespace.useMemo(function(){return zN(Ye,{fieldNames:H,childrenAsData:F})},[Ye,H,F]),ze=function(ie){var Ce=oe(ie);if(he(Ce),D&&(Ce.length!==se.length||Ce.some(function(ft,yt){var Xt;return ((Xt=se[yt])===null||Xt===void 0?void 0:Xt.value)!==(ft==null?void 0:ft.value)}))){var xe=T?Ce:Ce.map(function(ft){return ft.value}),qe=Ce.map(function(ft){return Rf(Ie(ft.value))});D(V?xe:xe[0],V?qe:qe[0]);}},ct=f__namespace.useState(null),it=X(ct,2),be=it[0],$e=it[1],Xe=f__namespace.useState(0),We=X(Xe,2),ut=We[0],Ee=We[1],Oe=$!==void 0?$:r!=="combobox",je=f__namespace.useCallback(function(de,ie){var Ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},xe=Ce.source,qe=xe===void 0?"keyboard":xe;Ee(ie),a&&r==="combobox"&&de!==null&&qe==="keyboard"&&$e(String(de));},[a,r]),Me=function(ie,Ce,xe){var qe=function(){var Jt,Ne=Ie(ie);return [T?{label:Ne==null?void 0:Ne[H.label],value:ie,key:(Jt=Ne==null?void 0:Ne.key)!==null&&Jt!==void 0?Jt:ie}:ie,Rf(Ne)]};if(Ce&&h){var ft=qe(),yt=X(ft,2),Xt=yt[0],Ht=yt[1];h(Xt,Ht);}else if(!Ce&&v&&xe!=="clear"){var De=qe(),Ve=X(De,2),Te=Ve[0],Ct=Ve[1];v(Te,Ct);}},Ze=Fg(function(de,ie){var Ce,xe=V?ie.selected:!0;xe?Ce=V?[].concat(ge(se),[de]):[de]:Ce=se.filter(function(qe){return qe.value!==de}),ze(Ce),Me(de,xe),r==="combobox"?$e(""):(!Mf||m)&&(Y(""),$e(""));}),wt=function(ie,Ce){ze(ie);var xe=Ce.type,qe=Ce.values;(xe==="remove"||xe==="clear")&&qe.forEach(function(ft){Me(ft.value,!1,xe);});},Lt=function(ie,Ce){if(Y(ie),$e(null),Ce.source==="submit"){var xe=(ie||"").trim();if(xe){var qe=Array.from(new Set([].concat(ge(Le),[xe])));ze(qe),Me(xe,!0),Y("");}return}Ce.source!=="blur"&&(r==="combobox"&&ze(ie),u==null||u(ie));},Dt=function(ie){var Ce=ie;r!=="tags"&&(Ce=ie.map(function(qe){var ft=ae.get(qe);return ft==null?void 0:ft.value}).filter(function(qe){return qe!==void 0}));var xe=Array.from(new Set([].concat(ge(Le),ge(Ce))));ze(xe),xe.forEach(function(qe){Me(qe,!0);});},Ae=f__namespace.useMemo(function(){var de=O!==!1&&p!==!1;return B(B({},ee),{},{flattenOptions:ke,onActiveValue:je,defaultActiveFirstOption:Oe,onSelect:Ze,menuItemSelectedIcon:P,rawValues:Le,fieldNames:H,virtual:de,direction:E,listHeight:I,listItemHeight:_,childrenAsData:F})},[ee,ke,je,Oe,Ze,P,Le,H,O,p,I,_,F]);return f__namespace.createElement(wy.Provider,{value:Ae},f__namespace.createElement(WN,pe({},L,{id:z,prefixCls:i,ref:t,omitDomProps:CA,mode:r,displayValues:_e,onDisplayValuesChange:wt,direction:E,searchValue:Z,onSearch:Lt,autoClearSearchValue:m,onSearchSplit:Dt,dropdownMatchSelectWidth:p,OptionList:$y,emptyOptions:!ke.length,activeValue:be,activeDescendantId:"".concat(z,"_list_").concat(ut)})))}),eh=wA;eh.Option=Jm;eh.OptGroup=Qm;function uo(e,t,n){return U({[`${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 su=(e,t)=>t||e,$A=()=>{const[,e]=gi(),n=new Zt(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return f__namespace.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},f__namespace.createElement("g",{fill:"none",fillRule:"evenodd"},f__namespace.createElement("g",{transform:"translate(24 31.67)"},f__namespace.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),f__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"}),f__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)"}),f__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"}),f__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"})),f__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"}),f__namespace.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},f__namespace.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),f__namespace.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},xA=$A,EA=()=>{const[,e]=gi(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:i,shadowColor:a,contentColor:s}=f.useMemo(()=>({borderColor:new Zt(t).onBackground(o).toHexShortString(),shadowColor:new Zt(n).onBackground(o).toHexShortString(),contentColor:new Zt(r).onBackground(o).toHexShortString()}),[t,n,r,o]);return f__namespace.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},f__namespace.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},f__namespace.createElement("ellipse",{fill:a,cx:"32",cy:"33",rx:"32",ry:"7"}),f__namespace.createElement("g",{fillRule:"nonzero",stroke:i},f__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"}),f__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}))))},OA=EA,PA=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}}}}},_A=an("Empty",e=>{const{componentCls:t,controlHeightLG:n}=e,r=$t(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n*2.5,emptyImgHeightMD:n,emptyImgHeightSM:n*.875});return [PA(r)]});var IA=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 xy=f__namespace.createElement(xA,null),Ey=f__namespace.createElement(OA,null),th=e=>{var{className:t,rootClassName:n,prefixCls:r,image:o=xy,description:i,children:a,imageStyle:s}=e,l=IA(e,["className","rootClassName","prefixCls","image","description","children","imageStyle"]);const{getPrefixCls:c,direction:u}=f__namespace.useContext(ot),d=c("empty",r),[m,h]=_A(d),[v]=Am("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=f__namespace.createElement("img",{alt:p,src:o}):b=o,m(f__namespace.createElement("div",Object.assign({className:U(h,d,{[`${d}-normal`]:o===Ey,[`${d}-rtl`]:u==="rtl"},t,n)},l),f__namespace.createElement("div",{className:`${d}-image`,style:s},b),g&&f__namespace.createElement("div",{className:`${d}-description`},g),a&&f__namespace.createElement("div",{className:`${d}-footer`},a)))};th.PRESENTED_IMAGE_DEFAULT=xy;th.PRESENTED_IMAGE_SIMPLE=Ey;const Ta=th,RA=e=>{const{componentName:t}=e,{getPrefixCls:n}=f.useContext(ot),r=n("empty");switch(t){case"Table":case"List":return f.createElement(Ta,{image:Ta.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return f.createElement(Ta,{image:Ta.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return f.createElement(Ta,null)}},MA=RA,TA=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"}},NA=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:Um},[`
            &${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:Xm},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-bottomLeft`]:{animationName:Km},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topLeft`]:{animationName:qm},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},TA(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign(Object.assign({flex:"auto"},ri),{"> *":Object.assign({},ri)}),"&-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"}})},To(e,"slide-up"),To(e,"slide-down"),ac(e,"move-up"),ac(e,"move-down")]},AA=NA,Oi=2,Oy=e=>{let{controlHeightSM:t,controlHeight:n,lineWidth:r}=e;const o=(n-t)/2-r,i=Math.ceil(o/2);return [o,i]};function ud(e,t){const{componentCls:n,iconCls:r}=e,o=`${n}-selection-overflow`,i=e.controlHeightSM,[a]=Oy(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-Oi}px ${Oi*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:`${Oi}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:Oi,marginBottom:Oi,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:Oi*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({},ga()),{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 DA=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]=Oy(e);return [ud(e),ud(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.controlPaddingHorizontalSM-e.lineWidth},[`${t}-selection-search`]:{marginInlineStart:o}}},ud(r,"lg")]},kA=DA;function dd(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 LA(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return [dd(e),dd($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}}}},dd($t(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const FA=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"}}}},fd=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}})}}},zA=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"}}}},jA=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({},FA(e)),zA(e)),[`${t}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal"},ri),{"> *":Object.assign({lineHeight:"inherit"},ri)}),[`${t}-selection-placeholder`]:Object.assign(Object.assign({},ri),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${t}-arrow`]:Object.assign(Object.assign({},ga()),{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}}}},HA=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%"}}},jA(e),LA(e),kA(e),AA(e),{[`${t}-rtl`]:{direction:"rtl"}},fd(t,$t(e,{borderHoverColor:e.colorPrimaryHover,outlineColor:e.controlOutline})),fd(`${t}-status-error`,$t(e,{borderHoverColor:e.colorErrorHover,outlineColor:e.colorErrorOutline}),!0),fd(`${t}-status-warning`,$t(e,{borderHoverColor:e.colorWarningHover,outlineColor:e.colorWarningOutline}),!0),nu(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},BA=an("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=$t(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1});return [HA(r)]},e=>({zIndexPopup:e.zIndexPopupBase+50})),WA=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 VA(e,t){return e||WA(t)}function GA(e){return e??!0}var UA={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 KA=UA;var XA=function(t,n){return f__namespace.createElement(nr,pe({},t,{ref:n,icon:KA}))};const qA=f__namespace.forwardRef(XA);var YA={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 ZA=YA;var QA=function(t,n){return f__namespace.createElement(nr,pe({},t,{ref:n,icon:ZA}))};const Py=f__namespace.forwardRef(QA);var JA={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 eD=JA;var tD=function(t,n){return f__namespace.createElement(nr,pe({},t,{ref:n,icon:eD}))};const _y=f__namespace.forwardRef(tD);function nD(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:i,multiple:a,hasFeedback:s,prefixCls:l,showArrow:c,feedbackIcon:u}=e;const d=n??f__namespace.createElement(zm,null),m=p=>f__namespace.createElement(f__namespace.Fragment,null,c!==!1&&p,s&&u);let h=null;if(t!==void 0)h=m(t);else if(i)h=m(f__namespace.createElement(q0,{spin:!0}));else {const p=`${l}-suffix`;h=b=>{let{open:y,showSearch:w}=b;return m(y&&w?f__namespace.createElement(_y,{className:p}):f__namespace.createElement(Py,{className:p}))};}let v=null;r!==void 0?v=r:a?v=f__namespace.createElement(qA,null):v=null;let g=null;return o!==void 0?g=o:g=f__namespace.createElement(jm,null),{clearIcon:d,suffixIcon:h,itemIcon:v,removeIcon:g}}var rD=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="SECRET_COMBOBOX_MODE_DO_NOT_USE",oD=(e,t)=>{var n,{prefixCls:r,bordered:o=!0,className:i,rootClassName:a,getPopupContainer:s,popupClassName:l,dropdownClassName:c,listHeight:u=256,placement:d,listItemHeight:m=24,size:h,disabled:v,notFoundContent:g,status:p,showArrow:b,builtinPlacements:y,dropdownMatchSelectWidth:w,popupMatchSelectWidth:x,direction:C}=e,S=rD(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","showArrow","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction"]);const{getPopupContainer:$,getPrefixCls:P,renderEmpty:O,direction:E,virtual:N,popupMatchSelectWidth:I,popupOverflow:R,select:_}=f__namespace.useContext(ot),M=P("select",r),A=P(),T=C??E,{compactSize:D,compactItemClassnames:L}=ba(M,T),[z,V]=BA(M),F=f__namespace.useMemo(()=>{const{mode:Le}=S;if(Le!=="combobox")return Le===Iy?"combobox":Le},[S.mode]),G=F==="multiple"||F==="tags",H=GA(b),K=(n=x??w)!==null&&n!==void 0?n:I,{status:te,hasFeedback:Z,isFormItemInput:Y,feedbackIcon:ee}=f__namespace.useContext(Gr),re=su(te,p);let ae;g!==void 0?ae=g:F==="combobox"?ae=null:ae=(O==null?void 0:O("Select"))||f__namespace.createElement(MA,{componentName:"Select"});const{suffixIcon:ce,itemIcon:oe,removeIcon:me,clearIcon:ye}=nD(Object.assign(Object.assign({},S),{multiple:G,hasFeedback:Z,feedbackIcon:ee,showArrow:H,prefixCls:M})),ue=Mn(S,["suffixIcon","itemIcon"]),he=U(l||c,{[`${M}-dropdown-${T}`]:T==="rtl"},a,V),ne=Or(Le=>{var Re;return (Re=D??h)!==null&&Re!==void 0?Re:Le}),fe=f__namespace.useContext(Do),le=v??fe,se=U({[`${M}-lg`]:ne==="large",[`${M}-sm`]:ne==="small",[`${M}-rtl`]:T==="rtl",[`${M}-borderless`]:!o,[`${M}-in-form-item`]:Y},uo(M,re,Z),L,i,a,V),Ie=f__namespace.useMemo(()=>d!==void 0?d:T==="rtl"?"bottomRight":"bottomLeft",[d,T]),_e=VA(y,R);return z(f__namespace.createElement(eh,Object.assign({ref:t,virtual:N,showSearch:_==null?void 0:_.showSearch},ue,{dropdownMatchSelectWidth:K,builtinPlacements:_e,transitionName:ru(A,vT(d),S.transitionName),listHeight:u,listItemHeight:m,mode:F,prefixCls:M,placement:Ie,direction:T,inputIcon:ce,menuItemSelectedIcon:oe,removeIcon:me,clearIcon:ye,notFoundContent:ae,className:se,getPopupContainer:s||$,dropdownClassName:he,showArrow:Z||H,disabled:le})))},ya=f__namespace.forwardRef(oD),iD=Ym(ya);ya.SECRET_COMBOBOX_MODE_DO_NOT_USE=Iy;ya.Option=Jm;ya.OptGroup=Qm;ya._InternalPanelDoNotUseOrYouWillBeFired=iD;const aD=ya,la=e=>e?typeof e=="function"?e():e:null;var Pi={shiftX:64,adjustY:1},_i={adjustX:1,shiftY:!0},ar=[0,0],sD={left:{points:["cr","cl"],overflow:_i,offset:[-4,0],targetOffset:ar},right:{points:["cl","cr"],overflow:_i,offset:[4,0],targetOffset:ar},top:{points:["bc","tc"],overflow:Pi,offset:[0,-4],targetOffset:ar},bottom:{points:["tc","bc"],overflow:Pi,offset:[0,4],targetOffset:ar},topLeft:{points:["bl","tl"],overflow:Pi,offset:[0,-4],targetOffset:ar},leftTop:{points:["tr","tl"],overflow:_i,offset:[-4,0],targetOffset:ar},topRight:{points:["br","tr"],overflow:Pi,offset:[0,-4],targetOffset:ar},rightTop:{points:["tl","tr"],overflow:_i,offset:[4,0],targetOffset:ar},bottomRight:{points:["tr","br"],overflow:Pi,offset:[0,4],targetOffset:ar},rightBottom:{points:["bl","br"],overflow:_i,offset:[4,0],targetOffset:ar},bottomLeft:{points:["tl","bl"],overflow:Pi,offset:[0,4],targetOffset:ar},leftBottom:{points:["br","bl"],overflow:_i,offset:[-4,0],targetOffset:ar}};function nh(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.className,a=e.style;return f__namespace.createElement("div",{className:U("".concat(n,"-content"),i),style:a},f__namespace.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var lD=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],cD=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,u=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,y=t.motion,w=t.placement,x=w===void 0?"right":w,C=t.align,S=C===void 0?{}:C,$=t.destroyTooltipOnHide,P=$===void 0?!1:$,O=t.defaultVisible,E=t.getTooltipContainer,N=t.overlayInnerStyle;t.arrowContent;var I=t.overlay,R=t.id,_=t.showArrow,M=_===void 0?!0:_,A=Ue(t,lD),T=f.useRef(null);f.useImperativeHandle(n,function(){return T.current});var D=B({},A);"visible"in t&&(D.popupVisible=t.visible);var L=function(){return f__namespace.createElement(nh,{key:"content",prefixCls:m,id:R,overlayInnerStyle:N},I)};return f__namespace.createElement(au,pe({popupClassName:r,prefixCls:m,popup:L,action:i,builtinPlacements:sD,popupPlacement:x,ref:T,popupAlign:S,getPopupContainer:E,onPopupVisibleChange:v,afterPopupVisibleChange:g,popupTransitionName:p,popupAnimation:b,popupMotion:y,defaultPopupVisible:O,autoDestroy:P,mouseLeaveDelay:c,popupStyle:u,mouseEnterDelay:s,arrow:M},D),h)};const uD=f.forwardRef(cD),Ry=8;function rh(e){const t=Ry,{contentRadius:n,limitVerticalRadius:r}=e,o=n>12?n+2:12;return {dropdownArrowOffset:o,dropdownArrowOffsetVertical:r?t:o}}function bl(e,t){return e?t:{}}function oh(e,t){const{componentCls:n,sizePopupArrow:r,borderRadiusXS:o,borderRadiusOuter:i,boxShadowPopoverArrow:a}=e,{colorBg:s,contentRadius:l=e.borderRadiusLG,limitVerticalRadius:c,arrowDistance:u=0,arrowPlacement:d={left:!0,right:!0,top:!0,bottom:!0}}=t,{dropdownArrowOffsetVertical:m,dropdownArrowOffset:h}=rh({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"},GR(r,o,i,s,a)),{"&:before":{background:s}})]},bl(!!d.top,{[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:u,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:h}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:h}}})),bl(!!d.bottom,{[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:u,transform:"translateY(-100%)"},[`&-placement-bottom ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:h}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:h}}})),bl(!!d.left,{[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:u},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${n}-arrow`]:{top:m},[`&-placement-leftBottom ${n}-arrow`]:{bottom:m}})),bl(!!d.right,{[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:u},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${n}-arrow`]:{top:m},[`&-placement-rightBottom ${n}-arrow`]:{bottom:m}}))}}function dD(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 Hg={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"]}},fD={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"]}},mD=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function My(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,s=t/2,l={};return Object.keys(Hg).forEach(c=>{const u=r&&fD[c]||Hg[c],d=Object.assign(Object.assign({},u),{offset:[0,0]});switch(l[c]=d,mD.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=rh({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=dD(c,m,t,n),a&&(d.htmlRegion="visibleFirst");}),l}const hD=e=>{const t=e!=null&&e.algorithm?ec(e.algorithm):ec(Ls),n=Object.assign(Object.assign({},ks),e==null?void 0:e.token);return c0(n,{override:e==null?void 0:e.token},t,O0)},vD=hD;function gD(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 pD=(e,t)=>{const n=t??Ls(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),gD(t??e)),E0(r)),{controlHeight:o}),$0(Object.assign(Object.assign({},n),{controlHeight:o})))},bD=pD,So=(e,t)=>new Zt(e).setAlpha(t).toRgbString(),Ii=(e,t)=>new Zt(e).lighten(t).toHexString(),yD=e=>{const t=ho(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]}},CD=(e,t)=>{const n=e||"#000",r=t||"#fff";return {colorBgBase:n,colorTextBase:r,colorText:So(r,.85),colorTextSecondary:So(r,.65),colorTextTertiary:So(r,.45),colorTextQuaternary:So(r,.25),colorFill:So(r,.18),colorFillSecondary:So(r,.12),colorFillTertiary:So(r,.08),colorFillQuaternary:So(r,.04),colorBgElevated:Ii(n,12),colorBgContainer:Ii(n,8),colorBgLayout:Ii(n,0),colorBgSpotlight:Ii(n,26),colorBorder:Ii(n,26),colorBorderSecondary:Ii(n,19)}},SD=(e,t)=>{const n=Object.keys(Dm).map(o=>{const i=ho(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??Ls(e);return Object.assign(Object.assign(Object.assign({},r),n),x0(e,{generateColorPalettes:yD,generateNeutralColorPalettes:CD}))},wD=SD;function $D(){const[e,t,n]=gi();return {theme:e,token:t,hashId:n}}const ca={defaultConfig:nc,defaultSeed:nc.token,useToken:$D,defaultAlgorithm:Ls,darkAlgorithm:wD,compactAlgorithm:bD,getDesignToken:vD},xD=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:s,boxShadowSecondary:l,paddingSM:c,paddingXS:u,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 ${u}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,Ry)}},[`${t}-content`]:{position:"relative"}}),I0(e,(m,h)=>{let{darkColor:v}=h;return {[`&${t}-${m}`]:{[`${t}-inner`]:{backgroundColor:v},[`${t}-arrow`]:{"--antd-arrow-background-color":v}}}})),{"&-rtl":{direction:"rtl"}})},oh($t(e,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:i,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},Ty=(e,t)=>an("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 [xD(l),ou(r,"zoom-big-fast")]},r=>{let{zIndexPopupBase:o,colorBgSpotlight:i}=r;return {zIndexPopup:o+70,colorBgDefault:i}},{resetStyle:!1})(e),ED=vs.map(e=>`${e}-inverse`),OD=["success","processing","error","default","warning"];function Ny(e){return (arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(ge(ED),ge(vs)).includes(e):vs.includes(e)}function PD(e){return OD.includes(e)}function Ay(e,t){const n=Ny(t),r=U({[`${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 _D(e){const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:s}=f__namespace.useContext(ot),l=s("tooltip",t),[c,u]=Ty(l,!0),d=Ay(l,i),m=Object.assign(Object.assign({},a),d.overlayStyle),h=d.arrowStyle;return c(f__namespace.createElement("div",{className:U(u,l,`${l}-pure`,`${l}-placement-${r}`,n,d.className),style:h},f__namespace.createElement("div",{className:`${l}-arrow`}),f__namespace.createElement(nh,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:m}),o)))}var ID=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:RD}=ca,MD=(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 TD(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}=MD(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=Tn(e,{style:a,className:null});return f__namespace.createElement("span",{style:i,className:U(e.props.className,`${t}-disabled-compatible-wrapper`)},s)}return e}const Dy=f__namespace.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:i,getTooltipContainer:a,overlayClassName:s,color:l,overlayInnerStyle:c,children:u,afterOpenChange:d,afterVisibleChange:m,destroyTooltipOnHide:h,arrow:v=!0,title:g,overlay:p,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:w=!0}=e,x=!!v,{token:C}=RD(),{getPopupContainer:S,getPrefixCls:$,direction:P}=f__namespace.useContext(ot),O=f__namespace.useRef(null),E=()=>{var ne;(ne=O.current)===null||ne===void 0||ne.forceAlign();};f__namespace.useImperativeHandle(t,()=>({forceAlign:E,forcePopupAlign:()=>{E();}}));const[N,I]=Qt(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),R=!g&&!p&&g!==0,_=ne=>{var fe,le;I(R?!1:ne),R||((fe=e.onOpenChange)===null||fe===void 0||fe.call(e,ne),(le=e.onVisibleChange)===null||le===void 0||le.call(e,ne));},M=f__namespace.useMemo(()=>{var ne,fe;let le=y;return typeof v=="object"&&(le=(fe=(ne=v.pointAtCenter)!==null&&ne!==void 0?ne:v.arrowPointAtCenter)!==null&&fe!==void 0?fe:y),b||My({arrowPointAtCenter:le,autoAdjustOverflow:w,arrowWidth:x?C.sizePopupArrow:0,borderRadius:C.borderRadius,offset:C.marginXXS,visibleFirst:!0})},[y,v,b,C]),A=f__namespace.useMemo(()=>g===0?g:p||g||"",[p,g]),T=f__namespace.createElement(sa,null,typeof A=="function"?A():A),{getPopupContainer:D,placement:L="top",mouseEnterDelay:z=.1,mouseLeaveDelay:V=.1,overlayStyle:F,rootClassName:G}=e,H=ID(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),K=$("tooltip",o),te=$(),Z=e["data-popover-inject"];let Y=N;!("open"in e)&&!("visible"in e)&&R&&(Y=!1);const ee=TD(ci(u)&&!X0(u)?u:f__namespace.createElement("span",null,u),K),re=ee.props,ae=!re.className||typeof re.className=="string"?U(re.className,{[i||`${K}-open`]:!0}):re.className,[ce,oe]=Ty(K,!Z),me=Ay(K,l),ye=Object.assign(Object.assign({},c),me.overlayStyle),ue=me.arrowStyle,he=U(s,{[`${K}-rtl`]:P==="rtl"},me.className,G,oe);return ce(f__namespace.createElement(uD,Object.assign({},H,{showArrow:x,placement:L,mouseEnterDelay:z,mouseLeaveDelay:V,prefixCls:K,overlayClassName:he,overlayStyle:Object.assign(Object.assign({},ue),F),getTooltipContainer:D||a||S,ref:O,builtinPlacements:M,overlay:T,visible:Y,onVisibleChange:_,afterVisibleChange:d??m,overlayInnerStyle:ye,arrowContent:f__namespace.createElement("span",{className:`${K}-arrow-content`}),motion:{motionName:ru(te,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!h}),Y?Tn(ee,{className:ae}):ee))});Dy._InternalPanelDoNotUseOrYouWillBeFired=_D;const Hs=Dy,ND=e=>{const{componentCls:t,popoverColor:n,minWidth:r,fontWeightStrong:o,popoverPadding:i,boxShadowSecondary:a,colorTextHeading:s,borderRadiusLG:l,zIndexPopup:c,marginXS:u,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:u,color:s,fontWeight:o},[`${t}-inner-content`]:{color:n}})},oh(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},AD=e=>{const{componentCls:t}=e;return {[t]:vs.map(n=>{const r=e[`${n}6`];return {[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},DD=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorSplit:o,paddingSM:i,controlHeight:a,fontSize:s,lineHeight:l,padding:c}=e,u=a-Math.round(s*l),d=u/2,m=u/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`}}}},ky=an("Popover",e=>{const{colorBgElevated:t,colorText:n,wireframe:r}=e,o=$t(e,{popoverPadding:12,popoverBg:t,popoverColor:n});return [ND(o),AD(o),r&&DD(o),ou(o,"zoom-big")]},e=>({width:177,minWidth:177,zIndexPopup:e.zIndexPopupBase+30}),{deprecatedTokens:[["width","minWidth"]]});var kD=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 LD=(e,t,n)=>{if(!(!t&&!n))return f__namespace.createElement(f__namespace.Fragment,null,t&&f__namespace.createElement("div",{className:`${e}-title`},la(t)),f__namespace.createElement("div",{className:`${e}-inner-content`},la(n)))};function FD(e){const{hashId:t,prefixCls:n,className:r,style:o,placement:i="top",title:a,content:s,children:l}=e;return f__namespace.createElement("div",{className:U(t,n,`${n}-pure`,`${n}-placement-${i}`,r),style:o},f__namespace.createElement("div",{className:`${n}-arrow`}),f__namespace.createElement(nh,Object.assign({},e,{className:t,prefixCls:n}),l||LD(n,a,s)))}function Ly(e){const{prefixCls:t}=e,n=kD(e,["prefixCls"]),{getPrefixCls:r}=f__namespace.useContext(ot),o=r("popover",t),[i,a]=ky(o);return i(f__namespace.createElement(FD,Object.assign({},n,{prefixCls:o,hashId:a})))}var zD=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 jD=e=>{let{title:t,content:n,prefixCls:r}=e;return f__namespace.createElement(f__namespace.Fragment,null,t&&f__namespace.createElement("div",{className:`${r}-title`},la(t)),f__namespace.createElement("div",{className:`${r}-inner-content`},la(n)))},Fy=f__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:u={}}=e,d=zD(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:m}=f__namespace.useContext(ot),h=m("popover",n),[v,g]=ky(h),p=m(),b=U(i,g);return v(f__namespace.createElement(Hs,Object.assign({placement:a,trigger:s,mouseEnterDelay:l,mouseLeaveDelay:c,overlayStyle:u},d,{prefixCls:h,overlayClassName:b,ref:t,overlay:r||o?f__namespace.createElement(jD,{prefixCls:h,title:r,content:o}):null,transitionName:ru(p,"zoom-big",d.transitionName),"data-popover-inject":!0})))});Fy._InternalPanelDoNotUseOrYouWillBeFired=Ly;const zy=Fy;var HD={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 BD=HD;var WD=function(t,n){return f__namespace.createElement(nr,pe({},t,{ref:n,icon:BD}))};const jy=f__namespace.forwardRef(WD);var VD=Q.ESC,GD=Q.TAB;function UD(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,i=e.overlayRef,a=f__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 VD:s();break;case GD:{var m=!1;a.current||(m=l()),m?d.preventDefault():s();break}}};f__namespace.useEffect(function(){return t?(window.addEventListener("keydown",c),o&&Nt(l,3),function(){window.removeEventListener("keydown",c),a.current=!1;}):function(){a.current=!1;}},[t]);}var KD=f.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,i=f.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),a=Fn(t,i==null?void 0:i.ref);return f.createElement(f.Fragment,null,r&&f.createElement("div",{className:"".concat(o,"-arrow")}),f.cloneElement(i,{ref:vi(i)?a:void 0}))}),Ri={adjustX:1,adjustY:1},Mi=[0,0],XD={topLeft:{points:["bl","tl"],overflow:Ri,offset:[0,-4],targetOffset:Mi},top:{points:["bc","tc"],overflow:Ri,offset:[0,-4],targetOffset:Mi},topRight:{points:["br","tr"],overflow:Ri,offset:[0,-4],targetOffset:Mi},bottomLeft:{points:["tl","bl"],overflow:Ri,offset:[0,4],targetOffset:Mi},bottom:{points:["tc","bc"],overflow:Ri,offset:[0,4],targetOffset:Mi},bottomRight:{points:["tr","br"],overflow:Ri,offset:[0,4],targetOffset:Mi}},qD=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function YD(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,u=e.placement,d=u===void 0?"bottomLeft":u,m=e.placements,h=m===void 0?XD:m,v=e.getPopupContainer,g=e.showAction,p=e.hideAction,b=e.overlayClassName,y=e.overlayStyle,w=e.visible,x=e.trigger,C=x===void 0?["hover"]:x,S=e.autoFocus,$=e.overlay,P=e.children,O=e.onVisibleChange,E=Ue(e,qD),N=f.useState(),I=X(N,2),R=I[0],_=I[1],M="visible"in e?w:R,A=f.useRef(null),T=f.useRef(null),D=f.useRef(null);f.useImperativeHandle(t,function(){return A.current});var L=function(Y){_(Y),O==null||O(Y);};UD({visible:M,triggerRef:D,onVisibleChange:L,autoFocus:S,overlayRef:T});var z=function(Y){var ee=e.onOverlayClick;_(!1),ee&&ee(Y);},V=function(){return f.createElement(KD,{ref:T,overlay:$,prefixCls:a,arrow:o})},F=function(){return typeof $=="function"?V:V()},G=function(){var Y=e.minOverlayWidthMatchTrigger,ee=e.alignPoint;return "minOverlayWidthMatchTrigger"in e?Y:!ee},H=function(){var Y=e.openClassName;return Y!==void 0?Y:"".concat(a,"-open")},K=f.cloneElement(P,{className:U((n=P.props)===null||n===void 0?void 0:n.className,M&&H()),ref:vi(P)?Fn(D,P.ref):void 0}),te=p;return !te&&C.indexOf("contextMenu")!==-1&&(te=["click"]),f.createElement(au,pe({builtinPlacements:h},E,{prefixCls:a,ref:A,popupClassName:U(b,q({},"".concat(a,"-show-arrow"),o)),popupStyle:y,action:C,showAction:g,hideAction:te,popupPlacement:d,popupAlign:c,popupTransitionName:s,popupAnimation:l,popupVisible:M,stretch:G()?"minWidth":"",popup:F(),onPopupVisibleChange:L,onPopupClick:z,getPopupContainer:v}),K)}const Hy=f.forwardRef(YD);var By=f__namespace.createContext(null);function ih(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function Wy(e){var t=f__namespace.useContext(By);return ih(t,e)}var ZD=["children","locked"],Er=f__namespace.createContext(null);function QD(e,t){var n=B({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o);}),n}function ys(e){var t=e.children,n=e.locked,r=Ue(e,ZD),o=f__namespace.useContext(Er),i=Ts(function(){return QD(o,r)},[o,r],function(a,s){return !n&&(a[0]!==s[0]||!qc(a[1],s[1],!0))});return f__namespace.createElement(Er.Provider,{value:i},t)}var JD=[],Vy=f__namespace.createContext(null);function lu(){return f__namespace.useContext(Vy)}var Gy=f__namespace.createContext(JD);function Ca(e){var t=f__namespace.useContext(Gy);return f__namespace.useMemo(function(){return e!==void 0?[].concat(ge(t),[e]):t},[t,e])}var Uy=f__namespace.createContext(null),ah=f__namespace.createContext({});function Bg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Hm(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 ek(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=ge(e.querySelectorAll("*")).filter(function(r){return Bg(r,t)});return Bg(e,t)&&n.unshift(e),n}var Tf=Q.LEFT,Nf=Q.RIGHT,Af=Q.UP,_l=Q.DOWN,Il=Q.ENTER,Ky=Q.ESC,Na=Q.HOME,Aa=Q.END,Wg=[Af,_l,Tf,Nf];function tk(e,t,n,r){var o,i,a,s,l="prev",c="next",u="children",d="parent";if(e==="inline"&&r===Il)return {inlineTrigger:!0};var m=(o={},q(o,Af,l),q(o,_l,c),o),h=(i={},q(i,Tf,n?c:l),q(i,Nf,n?l:c),q(i,_l,u),q(i,Il,u),i),v=(a={},q(a,Af,l),q(a,_l,c),q(a,Il,u),q(a,Ky,d),q(a,Tf,n?u:d),q(a,Nf,n?d:u),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 u:return {offset:1,sibling:!1};default:return null}}function nk(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement;}return null}function rk(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement;}return null}function Xy(e,t){var n=ek(e,!0);return n.filter(function(r){return t.has(r)})}function Vg(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=Xy(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 ok(e,t,n,r,o,i,a,s,l,c){var u=f__namespace.useRef(),d=f__namespace.useRef();d.current=t;var m=function(){Nt.cancel(u.current);};return f__namespace.useEffect(function(){return function(){m();}},[]),function(h){var v=h.which;if([].concat(Wg,[Il,Ky,Na,Aa]).includes(v)){var g,p,b,y=function(){g=new Set,p=new Map,b=new Map;var M=i();return M.forEach(function(A){var T=document.querySelector("[data-menu-id='".concat(ih(r,A),"']"));T&&(g.add(T),b.set(T,A),p.set(A,T));}),g};y();var w=p.get(t),x=rk(w,g),C=b.get(x),S=tk(e,a(C,!0).length===1,n,v);if(!S&&v!==Na&&v!==Aa)return;(Wg.includes(v)||[Na,Aa].includes(v))&&h.preventDefault();var $=function(M){if(M){var A=M,T=M.querySelector("a");T!=null&&T.getAttribute("href")&&(A=T);var D=b.get(M);s(D),m(),u.current=Nt(function(){d.current===D&&A.focus();});}};if([Na,Aa].includes(v)||S.sibling||!x){var P;!x||e==="inline"?P=o.current:P=nk(x);var O,E=Xy(P,g);v===Na?O=E[0]:v===Aa?O=E[E.length-1]:O=Vg(P,g,x,S.offset),$(O);}else if(S.inlineTrigger)l(C);else if(S.offset>0)l(C,!0),m(),u.current=Nt(function(){y();var _=x.getAttribute("aria-controls"),M=document.getElementById(_),A=Vg(M,g);$(A);},5);else if(S.offset<0){var N=a(C,!0),I=N[N.length-2],R=p.get(I);l(I,!1),$(R);}}c==null||c(h);}}function ik(e){Promise.resolve().then(e);}var sh="__RC_UTIL_PATH_SPLIT__",Gg=function(t){return t.join(sh)},ak=function(t){return t.split(sh)},Df="rc-menu-more";function sk(){var e=f__namespace.useState({}),t=X(e,2),n=t[1],r=f.useRef(new Map),o=f.useRef(new Map),i=f__namespace.useState([]),a=X(i,2),s=a[0],l=a[1],c=f.useRef(0),u=f.useRef(!1),d=function(){u.current||n({});},m=f.useCallback(function(w,x){var C=Gg(x);o.current.set(C,w),r.current.set(w,C),c.current+=1;var S=c.current;ik(function(){S===c.current&&d();});},[]),h=f.useCallback(function(w,x){var C=Gg(x);o.current.delete(C),r.current.delete(w);},[]),v=f.useCallback(function(w){l(w);},[]),g=f.useCallback(function(w,x){var C=r.current.get(w)||"",S=ak(C);return x&&s.includes(S[0])&&S.unshift(Df),S},[s]),p=f.useCallback(function(w,x){return w.some(function(C){var S=g(C,!0);return S.includes(x)})},[g]),b=function(){var x=ge(r.current.keys());return s.length&&x.push(Df),x},y=f.useCallback(function(w){var x="".concat(r.current.get(w)).concat(sh),C=new Set;return ge(o.current.keys()).forEach(function(S){S.startsWith(x)&&C.add(o.current.get(S));}),C},[]);return f__namespace.useEffect(function(){return function(){u.current=!0;}},[]),{registerPath:m,unregisterPath:h,refreshOverflowKeys:v,isSubPathKey:p,getKeyPath:g,getKeys:b,getSubPathKeys:y}}function Ha(e){var t=f__namespace.useRef(e);t.current=e;var n=f__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 lk=Math.random().toFixed(5).toString().slice(2),Ug=0;function ck(e){var t=Qt(e,{value:e}),n=X(t,2),r=n[0],o=n[1];return f__namespace.useEffect(function(){Ug+=1;var i="".concat(lk,"-").concat(Ug);o("rc-menu-uuid-".concat(i));},[]),r}function qy(e,t,n,r){var o=f__namespace.useContext(Er),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 Yy(e){var t=f__namespace.useContext(Er),n=t.mode,r=t.rtl,o=t.inlineIndent;if(n!=="inline")return null;var i=e;return r?{paddingRight:i*o}:{paddingLeft:i*o}}function Zy(e){var t=e.icon,n=e.props,r=e.children,o;return typeof t=="function"?o=f__namespace.createElement(t,B({},n)):o=t,o||r||null}var uk=["item"];function cc(e){var t=e.item,n=Ue(e,uk);return Object.defineProperty(n,"item",{get:function(){return mn(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var dk=["title","attribute","elementRef"],fk=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],mk=["active"],hk=function(e){mi(n,e);var t=hi(n);function n(){return Cn(this,n),t.apply(this,arguments)}return Sn(n,[{key:"render",value:function(){var o=this.props,i=o.title,a=o.attribute,s=o.elementRef,l=Ue(o,dk),c=Mn(l,["eventKey","popupClassName","popupOffset","onTitleClick"]);return mn(!a,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),f__namespace.createElement(jr.Item,pe({},a,{title:typeof i=="string"?i:void 0},c,{ref:s}))}}]),n}(f__namespace.Component),vk=f__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,u=e.onMouseEnter,d=e.onMouseLeave,m=e.onClick,h=e.onKeyDown,v=e.onFocus,g=Ue(e,fk),p=Wy(i),b=f__namespace.useContext(Er),y=b.prefixCls,w=b.onItemClick,x=b.disabled,C=b.overflowDisabled,S=b.itemIcon,$=b.selectedKeys,P=b.onActive,O=f__namespace.useContext(ah),E=O._internalRenderMenuItem,N="".concat(y,"-item"),I=f__namespace.useRef(),R=f__namespace.useRef(),_=x||a,M=Ns(t,R),A=Ca(i),T=function(re){return {key:i,keyPath:ge(A).reverse(),item:I.current,domEvent:re}},D=s||S,L=qy(i,_,u,d),z=L.active,V=Ue(L,mk),F=$.includes(i),G=Yy(A.length),H=function(re){if(!_){var ae=T(re);m==null||m(cc(ae)),w(ae);}},K=function(re){if(h==null||h(re),re.which===Q.ENTER){var ae=T(re);m==null||m(cc(ae)),w(ae);}},te=function(re){P(i),v==null||v(re);},Z={};e.role==="option"&&(Z["aria-selected"]=F);var Y=f__namespace.createElement(hk,pe({ref:I,elementRef:M,role:c===null?"none":c||"menuitem",tabIndex:a?null:-1,"data-menu-id":C&&p?null:p},g,V,Z,{component:"li","aria-disabled":a,style:B(B({},G),r),className:U(N,(n={},q(n,"".concat(N,"-active"),z),q(n,"".concat(N,"-selected"),F),q(n,"".concat(N,"-disabled"),_),n),o),onClick:H,onKeyDown:K,onFocus:te}),l,f__namespace.createElement(Zy,{props:B(B({},e),{},{isSelected:F}),icon:D}));return E&&(Y=E(Y,e,{selected:F})),Y});function gk(e,t){var n=e.eventKey,r=lu(),o=Ca(n);return f__namespace.useEffect(function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o);}},[o]),r?null:f__namespace.createElement(vk,pe({},e,{ref:t}))}const Bs=f__namespace.forwardRef(gk);var pk=["className","children"],bk=function(t,n){var r=t.className,o=t.children,i=Ue(t,pk),a=f__namespace.useContext(Er),s=a.prefixCls,l=a.mode,c=a.rtl;return f__namespace.createElement("ul",pe({className:U(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)},lh=f__namespace.forwardRef(bk);lh.displayName="SubMenuList";var yk=["label","children","key","type"];function ch(e,t){return ur(e).map(function(n,r){if(f__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(ge(t),[r]).join("-")));var c={key:s,eventKey:s};return f__namespace.cloneElement(n,c)}return n})}function kf(e){return (e||[]).map(function(t,n){if(t&&nt(t)==="object"){var r=t,o=r.label,i=r.children,a=r.key,s=r.type,l=Ue(r,yk),c=a??"tmp-".concat(n);return i||s==="group"?s==="group"?f__namespace.createElement(uu,pe({key:c},l,{title:o}),kf(i)):f__namespace.createElement(cu,pe({key:c},l,{title:o}),kf(i)):s==="divider"?f__namespace.createElement(uh,pe({key:c},l)):f__namespace.createElement(Bs,pe({key:c},l),o)}return null}).filter(function(t){return t})}function Ck(e,t,n){var r=e;return t&&(r=kf(t)),ch(r,n)}var On={adjustX:1,adjustY:1},Sk={topLeft:{points:["bl","tl"],overflow:On},topRight:{points:["br","tr"],overflow:On},bottomLeft:{points:["tl","bl"],overflow:On},bottomRight:{points:["tr","br"],overflow:On},leftTop:{points:["tr","tl"],overflow:On},leftBottom:{points:["br","bl"],overflow:On},rightTop:{points:["tl","tr"],overflow:On},rightBottom:{points:["bl","br"],overflow:On}},wk={topLeft:{points:["bl","tl"],overflow:On},topRight:{points:["br","tr"],overflow:On},bottomLeft:{points:["tl","bl"],overflow:On},bottomRight:{points:["tr","br"],overflow:On},rightTop:{points:["tr","tl"],overflow:On},rightBottom:{points:["br","bl"],overflow:On},leftTop:{points:["tl","tr"],overflow:On},leftBottom:{points:["bl","br"],overflow:On}};function Qy(e,t,n){if(t)return t;if(n)return n[e]||n.other}var $k={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function xk(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,u=f__namespace.useContext(Er),d=u.getPopupContainer,m=u.rtl,h=u.subMenuOpenDelay,v=u.subMenuCloseDelay,g=u.builtinPlacements,p=u.triggerSubMenuAction,b=u.forceSubMenuRender,y=u.rootClassName,w=u.motion,x=u.defaultMotions,C=f__namespace.useState(!1),S=X(C,2),$=S[0],P=S[1],O=B(m?B({},wk):B({},Sk),g),E=$k[l],N=Qy(l,w,x),I=f__namespace.useRef(N);l!=="inline"&&(I.current=N);var R=B(B({},I.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),_=f__namespace.useRef();return f__namespace.useEffect(function(){return _.current=Nt(function(){P(n);}),function(){Nt.cancel(_.current);}},[n]),f__namespace.createElement(au,{prefixCls:t,popupClassName:U("".concat(t,"-popup"),q({},"".concat(t,"-rtl"),m),i,y),stretch:l==="horizontal"?"minWidth":null,getPopupContainer:d,builtinPlacements:O,popupPlacement:E,popupVisible:$,popup:o,popupAlign:a&&{offset:a},action:s?[]:[p],mouseEnterDelay:h,mouseLeaveDelay:v,onPopupVisibleChange:c,forceRender:b,popupMotion:R},r)}function Ek(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,i="inline",a=f__namespace.useContext(Er),s=a.prefixCls,l=a.forceSubMenuRender,c=a.motion,u=a.defaultMotions,d=a.mode,m=f__namespace.useRef(!1);m.current=d===i;var h=f__namespace.useState(!m.current),v=X(h,2),g=v[0],p=v[1],b=m.current?n:!1;f__namespace.useEffect(function(){m.current&&p(!1);},[d]);var y=B({},Qy(i,c,u));r.length>1&&(y.motionAppear=!1);var w=y.onVisibleChanged;return y.onVisibleChanged=function(x){return !m.current&&!x&&p(!0),w==null?void 0:w(x)},g?null:f__namespace.createElement(ys,{mode:i,locked:!m.current},f__namespace.createElement(ko,pe({visible:b},y,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(x){var C=x.className,S=x.style;return f__namespace.createElement(lh,{id:t,className:C,style:S},o)}))}var Ok=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Pk=["active"],_k=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,u=t.itemIcon,d=t.expandIcon,m=t.popupClassName,h=t.popupOffset,v=t.onClick,g=t.onMouseEnter,p=t.onMouseLeave,b=t.onTitleClick,y=t.onTitleMouseEnter,w=t.onTitleMouseLeave,x=Ue(t,Ok),C=Wy(a),S=f__namespace.useContext(Er),$=S.prefixCls,P=S.mode,O=S.openKeys,E=S.disabled,N=S.overflowDisabled,I=S.activeKey,R=S.selectedKeys,_=S.itemIcon,M=S.expandIcon,A=S.onItemClick,T=S.onOpenChange,D=S.onActive,L=f__namespace.useContext(ah),z=L._internalRenderSubMenuItem,V=f__namespace.useContext(Uy),F=V.isSubPathKey,G=Ca(),H="".concat($,"-submenu"),K=E||s,te=f__namespace.useRef(),Z=f__namespace.useRef(),Y=u||_,ee=d||M,re=O.includes(a),ae=!N&&re,ce=F(R,a),oe=qy(a,K,y,w),me=oe.active,ye=Ue(oe,Pk),ue=f__namespace.useState(!1),he=X(ue,2),ne=he[0],fe=he[1],le=function($e){K||fe($e);},se=function($e){le(!0),g==null||g({key:a,domEvent:$e});},Ie=function($e){le(!1),p==null||p({key:a,domEvent:$e});},_e=f__namespace.useMemo(function(){return me||(P!=="inline"?ne||F([I],a):!1)},[P,me,I,ne,a,F]),Le=Yy(G.length),Re=function($e){K||(b==null||b({key:a,domEvent:$e}),P==="inline"&&T(a,!re));},Ke=Ha(function(be){v==null||v(cc(be)),A(be);}),dt=function($e){P!=="inline"&&T(a,$e);},Je=function(){D(a);},Ye=C&&"".concat(C,"-popup"),ke=f__namespace.createElement("div",pe({role:"menuitem",style:Le,className:"".concat(H,"-title"),tabIndex:K?null:-1,ref:te,title:typeof i=="string"?i:null,"data-menu-id":N&&C?null:C,"aria-expanded":ae,"aria-haspopup":!0,"aria-controls":Ye,"aria-disabled":K,onClick:Re,onFocus:Je},ye),i,f__namespace.createElement(Zy,{icon:P!=="horizontal"?ee:null,props:B(B({},t),{},{isOpen:ae,isSubMenu:!0})},f__namespace.createElement("i",{className:"".concat(H,"-arrow")}))),ze=f__namespace.useRef(P);if(P!=="inline"&&G.length>1?ze.current="vertical":ze.current=P,!N){var ct=ze.current;ke=f__namespace.createElement(xk,{mode:ct,prefixCls:H,visible:!l&&ae&&P!=="inline",popupClassName:m,popupOffset:h,popup:f__namespace.createElement(ys,{mode:ct==="horizontal"?"vertical":ct},f__namespace.createElement(lh,{id:Ye,ref:Z},c)),disabled:K,onVisibleChange:dt},ke);}var it=f__namespace.createElement(jr.Item,pe({role:"none"},x,{component:"li",style:r,className:U(H,"".concat(H,"-").concat(P),o,(n={},q(n,"".concat(H,"-open"),ae),q(n,"".concat(H,"-active"),_e),q(n,"".concat(H,"-selected"),ce),q(n,"".concat(H,"-disabled"),K),n)),onMouseEnter:se,onMouseLeave:Ie}),ke,!N&&f__namespace.createElement(Ek,{id:Ye,open:ae,keyPath:G},c));return z&&(it=z(it,t,{selected:ce,active:_e,open:ae,disabled:K})),f__namespace.createElement(ys,{onItemClick:Ke,mode:P==="horizontal"?"vertical":P,itemIcon:Y,expandIcon:ee},it)};function cu(e){var t=e.eventKey,n=e.children,r=Ca(t),o=ch(n,r),i=lu();f__namespace.useEffect(function(){if(i)return i.registerPath(t,r),function(){i.unregisterPath(t,r);}},[r]);var a;return i?a=o:a=f__namespace.createElement(_k,e,o),f__namespace.createElement(Gy.Provider,{value:r},a)}var Ik=["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"],Ti=[],Rk=f__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,u=o.tabIndex,d=u===void 0?0:u,m=o.items,h=o.children,v=o.direction,g=o.id,p=o.mode,b=p===void 0?"vertical":p,y=o.inlineCollapsed,w=o.disabled,x=o.disabledOverflow,C=o.subMenuOpenDelay,S=C===void 0?.1:C,$=o.subMenuCloseDelay,P=$===void 0?.1:$,O=o.forceSubMenuRender,E=o.defaultOpenKeys,N=o.openKeys,I=o.activeKey,R=o.defaultActiveFirst,_=o.selectable,M=_===void 0?!0:_,A=o.multiple,T=A===void 0?!1:A,D=o.defaultSelectedKeys,L=o.selectedKeys,z=o.onSelect,V=o.onDeselect,F=o.inlineIndent,G=F===void 0?24:F,H=o.motion,K=o.defaultMotions,te=o.triggerSubMenuAction,Z=te===void 0?"hover":te,Y=o.builtinPlacements,ee=o.itemIcon,re=o.expandIcon,ae=o.overflowedIndicator,ce=ae===void 0?"...":ae,oe=o.overflowedIndicatorPopupClassName,me=o.getPopupContainer,ye=o.onClick,ue=o.onOpenChange,he=o.onKeyDown;o.openAnimation,o.openTransitionName;var ne=o._internalRenderMenuItem,fe=o._internalRenderSubMenuItem,le=Ue(o,Ik),se=f__namespace.useMemo(function(){return Ck(h,m,Ti)},[h,m]),Ie=f__namespace.useState(!1),_e=X(Ie,2),Le=_e[0],Re=_e[1],Ke=f__namespace.useRef(),dt=ck(g),Je=v==="rtl",Ye=Qt(E,{value:N,postState:function(we){return we||Ti}}),ke=X(Ye,2),ze=ke[0],ct=ke[1],it=function(we){var Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function et(){ct(we),ue==null||ue(we);}Se?zp.flushSync(et):et();},be=f__namespace.useState(ze),$e=X(be,2),Xe=$e[0],We=$e[1],ut=f__namespace.useRef(!1),Ee=f__namespace.useMemo(function(){return (b==="inline"||b==="vertical")&&y?["vertical",y]:[b,!1]},[b,y]),Oe=X(Ee,2),je=Oe[0],Me=Oe[1],Ze=je==="inline",wt=f__namespace.useState(je),Lt=X(wt,2),Dt=Lt[0],Ae=Lt[1],de=f__namespace.useState(Me),ie=X(de,2),Ce=ie[0],xe=ie[1];f__namespace.useEffect(function(){Ae(je),xe(Me),ut.current&&(Ze?ct(Xe):it(Ti));},[je,Me]);var qe=f__namespace.useState(0),ft=X(qe,2),yt=ft[0],Xt=ft[1],Ht=yt>=se.length-1||Dt!=="horizontal"||x;f__namespace.useEffect(function(){Ze&&We(ze);},[ze]),f__namespace.useEffect(function(){return ut.current=!0,function(){ut.current=!1;}},[]);var De=sk(),Ve=De.registerPath,Te=De.unregisterPath,Ct=De.refreshOverflowKeys,vt=De.isSubPathKey,Jt=De.getKeyPath,Ne=De.getKeys,Be=De.getSubPathKeys,st=f__namespace.useMemo(function(){return {registerPath:Ve,unregisterPath:Te}},[Ve,Te]),xt=f__namespace.useMemo(function(){return {isSubPathKey:vt}},[vt]);f__namespace.useEffect(function(){Ct(Ht?Ti:se.slice(yt+1).map(function(Pt){return Pt.key}));},[yt,Ht]);var qt=Qt(I||R&&((n=se[0])===null||n===void 0?void 0:n.key),{value:I}),zt=X(qt,2),wn=zt[0],Nn=zt[1],dr=Ha(function(Pt){Nn(Pt);}),Kr=Ha(function(){Nn(void 0);});f.useImperativeHandle(t,function(){return {list:Ke.current,focus:function(we){var Se,et=wn??((Se=se.find(function(Yt){return !Yt.props.disabled}))===null||Se===void 0?void 0:Se.key);if(et){var St,gt,_t;(St=Ke.current)===null||St===void 0||(gt=St.querySelector("li[data-menu-id='".concat(ih(dt,et),"']")))===null||gt===void 0||(_t=gt.focus)===null||_t===void 0||_t.call(gt,we);}}}});var Pr=Qt(D||[],{value:L,postState:function(we){return Array.isArray(we)?we:we==null?Ti:[we]}}),rr=X(Pr,2),In=rr[0],Xr=rr[1],Lo=function(we){if(M){var Se=we.key,et=In.includes(Se),St;T?et?St=In.filter(function(_t){return _t!==Se}):St=[].concat(ge(In),[Se]):St=[Se],Xr(St);var gt=B(B({},we),{},{selectedKeys:St});et?V==null||V(gt):z==null||z(gt);}!T&&ze.length&&Dt!=="inline"&&it(Ti);},qr=Ha(function(Pt){ye==null||ye(cc(Pt)),Lo(Pt);}),Yr=Ha(function(Pt,we){var Se=ze.filter(function(St){return St!==Pt});if(we)Se.push(Pt);else if(Dt!=="inline"){var et=Be(Pt);Se=Se.filter(function(St){return !et.has(St)});}qc(ze,Se,!0)||it(Se,!0);}),Zr=function(we,Se){var et=Se??!ze.includes(we);Yr(we,et);},Fo=ok(Dt,wn,Je,dt,Ke,Ne,Jt,Nn,Zr,he);f__namespace.useEffect(function(){Re(!0);},[]);var zo=f__namespace.useMemo(function(){return {_internalRenderMenuItem:ne,_internalRenderSubMenuItem:fe}},[ne,fe]),jo=Dt!=="horizontal"||x?se:se.map(function(Pt,we){return f__namespace.createElement(ys,{key:Pt.key,overflowDisabled:we>yt},Pt)}),Qr=f__namespace.createElement(jr,pe({id:g,ref:Ke,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:Bs,className:U(a,"".concat(a,"-root"),"".concat(a,"-").concat(Dt),c,(r={},q(r,"".concat(a,"-inline-collapsed"),Ce),q(r,"".concat(a,"-rtl"),Je),r),s),dir:v,style:l,role:"menu",tabIndex:d,data:jo,renderRawItem:function(we){return we},renderRawRest:function(we){var Se=we.length,et=Se?se.slice(-Se):null;return f__namespace.createElement(cu,{eventKey:Df,title:ce,disabled:Ht,internalPopupClose:Se===0,popupClassName:oe},et)},maxCount:Dt!=="horizontal"||x?jr.INVALIDATE:jr.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(we){Xt(we);},onKeyDown:Fo},le));return f__namespace.createElement(ah.Provider,{value:zo},f__namespace.createElement(By.Provider,{value:dt},f__namespace.createElement(ys,{prefixCls:a,rootClassName:s,mode:Dt,openKeys:ze,rtl:Je,disabled:w,motion:Le?H:null,defaultMotions:Le?K:null,activeKey:wn,onActive:dr,onInactive:Kr,selectedKeys:In,inlineIndent:G,subMenuOpenDelay:S,subMenuCloseDelay:P,forceSubMenuRender:O,builtinPlacements:Y,triggerSubMenuAction:Z,getPopupContainer:me,itemIcon:ee,expandIcon:re,onItemClick:qr,onOpenChange:Yr},f__namespace.createElement(Uy.Provider,{value:xt},Qr),f__namespace.createElement("div",{style:{display:"none"},"aria-hidden":!0},f__namespace.createElement(Vy.Provider,{value:st},se)))))}),Mk=["className","title","eventKey","children"],Tk=["children"],Nk=function(t){var n=t.className,r=t.title;t.eventKey;var o=t.children,i=Ue(t,Mk),a=f__namespace.useContext(Er),s=a.prefixCls,l="".concat(s,"-item-group");return f__namespace.createElement("li",pe({role:"presentation"},i,{onClick:function(u){return u.stopPropagation()},className:U(l,n)}),f__namespace.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof r=="string"?r:void 0},r),f__namespace.createElement("ul",{role:"group",className:"".concat(l,"-list")},o))};function uu(e){var t=e.children,n=Ue(e,Tk),r=Ca(n.eventKey),o=ch(t,r),i=lu();return i?o:f__namespace.createElement(Nk,Mn(n,["warnKey"]),o)}function uh(e){var t=e.className,n=e.style,r=f__namespace.useContext(Er),o=r.prefixCls,i=lu();return i?null:f__namespace.createElement("li",{className:U("".concat(o,"-item-divider"),t),style:n})}var Sa=Rk;Sa.Item=Bs;Sa.SubMenu=cu;Sa.ItemGroup=uu;Sa.Divider=uh;var Ak={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 Dk=Ak;var kk=function(t,n){return f__namespace.createElement(nr,pe({},t,{ref:n,icon:Dk}))};const dh=f__namespace.forwardRef(kk),Lk=f.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),uc=Lk;var Fk=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 dc=f__namespace.createContext(null),zk=e=>{const{children:t}=e,n=Fk(e,["children"]),r=f__namespace.useContext(dc),o=f__namespace.useMemo(()=>Object.assign(Object.assign({},r),n),[r,n.prefixCls,n.mode,n.selectable]);return f__namespace.createElement(dc.Provider,{value:o},t)};var jk=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 Hk=e=>{const{prefixCls:t,className:n,dashed:r}=e,o=jk(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=f__namespace.useContext(ot),a=i("menu",t),s=U({[`${a}-item-divider-dashed`]:!!r},n);return f__namespace.createElement(uh,Object.assign({className:s},o))},Jy=Hk;const eC=f__namespace.createContext({}),Bk=e=>{var t;const{className:n,children:r,icon:o,title:i,danger:a}=e,{prefixCls:s,firstLevel:l,direction:c,disableMenuItemTitleTooltip:u,inlineCollapsed:d}=f__namespace.useContext(uc),m=y=>{const w=f__namespace.createElement("span",{className:`${s}-title-content`},r);return (!o||ci(r)&&r.type==="span")&&r&&y&&l&&typeof r=="string"?f__namespace.createElement("div",{className:`${s}-inline-collapsed-noicon`},r.charAt(0)):w},{siderCollapsed:h}=f__namespace.useContext(eC);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=ur(r).length;let b=f__namespace.createElement(Bs,Object.assign({},Mn(e,["title","icon","danger"]),{className:U({[`${s}-item-danger`]:a,[`${s}-item-only-child`]:(o?p+1:p)===1},n),title:typeof i=="string"?i:void 0}),Tn(o,{className:U(ci(o)?(t=o.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),m(d));return u||(b=f__namespace.createElement(Hs,Object.assign({},g,{placement:c==="rtl"?"left":"right",overlayClassName:`${s}-inline-collapsed-tooltip`}),b)),b},tC=Bk,Wk=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:i}=e,a=f__namespace.useContext(uc),{prefixCls:s,inlineCollapsed:l,theme:c}=a,u=Ca();let d;if(!r)d=l&&!u.length&&o&&typeof o=="string"?f__namespace.createElement("div",{className:`${s}-inline-collapsed-noicon`},o.charAt(0)):f__namespace.createElement("span",{className:`${s}-title-content`},o);else {const h=ci(o)&&o.type==="span";d=f__namespace.createElement(f__namespace.Fragment,null,Tn(r,{className:U(ci(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),h?o:f__namespace.createElement("span",{className:`${s}-title-content`},o));}const m=f__namespace.useMemo(()=>Object.assign(Object.assign({},a),{firstLevel:!1}),[a]);return f__namespace.createElement(uc.Provider,{value:m},f__namespace.createElement(cu,Object.assign({},Mn(e,["icon"]),{title:d,popupClassName:U(s,n,`${s}-${i||c}`)})))},nC=Wk;var Vk=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 Lf(e){return (e||[]).map((t,n)=>{if(t&&typeof t=="object"){const r=t,{label:o,children:i,key:a,type:s}=r,l=Vk(r,["label","children","key","type"]),c=a??`tmp-${n}`;return i||s==="group"?s==="group"?f__namespace.createElement(uu,Object.assign({key:c},l,{title:o}),Lf(i)):f__namespace.createElement(nC,Object.assign({key:c},l,{title:o}),Lf(i)):s==="divider"?f__namespace.createElement(Jy,Object.assign({key:c},l)):f__namespace.createElement(tC,Object.assign({key:c},l),o)}return null}).filter(t=>t)}function Gk(e){return f__namespace.useMemo(()=>e&&Lf(e),[e])}const Uk=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"}}}},Kk=Uk,Xk=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})`}}}}},qk=Xk,Kg=e=>Object.assign({},Fs(e)),Yk=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:i,itemBg:a,subMenuItemBg:s,itemSelectedBg:l,activeBarHeight:c,activeBarWidth:u,activeBarBorderWidth:d,motionDurationSlow:m,motionEaseInOut:h,motionEaseOut:v,menuItemPaddingInline:g,motionDurationMid:p,itemHoverColor:b,lineType:y,colorSplit:w,itemDisabledColor:x,dangerItemColor:C,dangerItemHoverColor:S,dangerItemSelectedColor:$,dangerItemActiveBg:P,dangerItemSelectedBg:O,itemHoverBg:E,menuSubMenuBg:N,horizontalItemSelectedColor:I,horizontalItemSelectedBg:R,horizontalItemBorderRadius:_,horizontalItemHoverBg:M}=e;return {[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:a,[`&${n}-root:focus-visible`]:Object.assign({},Kg(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:E},"&:active":{backgroundColor:l}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:E},"&:active":{backgroundColor:l}}},[`${n}-item-danger`]:{color:C,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:S}},[`&${n}-item:active`]:{background:P}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:$},["a, a:hover"]:{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:l,[`&${n}-item-danger`]:{backgroundColor:O}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},Kg(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:M,"&::after":{borderBottomWidth:c,borderBottomColor:I}},["&-selected"]:{color:I,backgroundColor:R,"&::after":{borderBottomWidth:c,borderBottomColor:I}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${d}px ${y} ${w}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item, ${n}-submenu-title`]:d&&u?{width:`calc(100% + ${d}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${u}px solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${p} ${v}`,`opacity ${p} ${v}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:$}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${p} ${h}`,`opacity ${p} ${h}`].join(",")}}}}}},Xg=Yk,qg=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}}},Zk=e=>{const{componentCls:t,iconCls:n,menuItemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionDurationMid:s,motionEaseOut:l,paddingXL:c,itemMarginInline:u,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"}},qg(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},qg(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 - ${u}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({},ri),{paddingInline:h})}}]},Qk=Zk,Yg=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({},ga()),[`&${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"}}}},Zg=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})`}}}}},Jk=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,lineHeight:s,paddingXS:l,padding:c,colorSplit:u,lineWidth:d,zIndexPopup:m,borderRadiusLG:h,subMenuItemBorderRadius:v,menuArrowSize:g,menuArrowOffset:p,lineType:b,menuPanelMaskInset:y}=e;return [{"":{[`${n}`]:Object.assign(Object.assign({},pf()),{["&-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)),pf()),{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:u,borderStyle:b,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Yg(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:`${y}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:y},[`
          &-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},Yg(e)),Zg(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:v},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}})}}),Zg(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"}}}]},eL=(e,t)=>an("Menu",(r,o)=>{let{overrideComponentToken:i}=o;if(t===!1)return [];const{colorBgElevated:a,colorPrimary:s,colorError:l,colorErrorHover:c,colorTextLightSolid:u,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 Zt(u).setAlpha(.65).toRgbString(),p=$t(v,{itemColor:g,itemHoverColor:u,groupTitleColor:g,itemSelectedColor:u,itemBg:"#001529",subMenuItemBg:"#000c17",itemActiveBg:"transparent",itemSelectedBg:s,activeBarWidth:0,activeBarHeight:0,activeBarBorderWidth:0,itemDisabledColor:new Zt(u).setAlpha(.25).toRgbString(),dangerItemColor:l,dangerItemHoverColor:c,dangerItemSelectedColor:u,dangerItemActiveBg:l,dangerItemSelectedBg:l,menuSubMenuBg:"#001529",horizontalItemSelectedColor:u,horizontalItemSelectedBg:s},Object.assign({},i));return [Jk(v),Kk(v),Qk(v),Xg(v,"light"),Xg(p,"dark"),qk(v),sy(v),To(v,"slide-up"),To(v,"slide-down"),ou(v,"zoom-big")]},r=>{const{colorPrimary:o,colorError:i,colorTextDisabled:a,colorErrorBg:s,colorText:l,colorTextDescription:c,colorBgContainer:u,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:u,itemBg:u,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 tL=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 nL=f.forwardRef((e,t)=>{var n,r;const o=f__namespace.useContext(dc),i=o||{},{getPrefixCls:a,getPopupContainer:s,direction:l}=f__namespace.useContext(ot),c=a(),{prefixCls:u,className:d,theme:m="light",expandIcon:h,_internalDisableMenuItemTitleTooltip:v,inlineCollapsed:g,siderCollapsed:p,items:b,children:y,rootClassName:w,mode:x,selectable:C,onClick:S,overflowedIndicatorPopupClassName:$}=e,P=tL(e,["prefixCls","className","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),O=Mn(P,["collapsedWidth"]),E=Gk(b)||y;(n=i.validator)===null||n===void 0||n.call(i,{mode:x});const N=qn(function(){var F;S==null||S.apply(void 0,arguments),(F=i.onClick)===null||F===void 0||F.call(i);}),I=i.mode||x,R=C??i.selectable,_=f__namespace.useMemo(()=>p!==void 0?p:g,[g,p]),M={horizontal:{motionName:`${c}-slide-up`},inline:oy(c),other:{motionName:`${c}-zoom-big`}},A=a("menu",u||i.prefixCls),[T,D]=eL(A,!o),L=U(`${A}-${m}`,d);let z;if(typeof h=="function")z=h;else {const F=h||i.expandIcon;z=Tn(F,{className:U(`${A}-submenu-expand-icon`,(r=F==null?void 0:F.props)===null||r===void 0?void 0:r.className)});}const V=f__namespace.useMemo(()=>({prefixCls:A,inlineCollapsed:_||!1,direction:l,firstLevel:!0,theme:m,mode:I,disableMenuItemTitleTooltip:v}),[A,_,l,v,m]);return T(f__namespace.createElement(dc.Provider,{value:null},f__namespace.createElement(uc.Provider,{value:V},f__namespace.createElement(Sa,Object.assign({getPopupContainer:s,overflowedIndicator:f__namespace.createElement(dh,null),overflowedIndicatorPopupClassName:U(A,`${A}-${m}`,$),mode:I,selectable:R,onClick:N},O,{inlineCollapsed:_,className:L,prefixCls:A,direction:l,defaultMotions:M,expandIcon:z,ref:t,rootClassName:U(w,D)}),E))))}),rL=nL,Ws=f.forwardRef((e,t)=>{const n=f.useRef(null),r=f__namespace.useContext(eC);return f.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{var i;(i=n.current)===null||i===void 0||i.focus(o);}})),f__namespace.createElement(rL,Object.assign({ref:n},e,r))});Ws.Item=tC;Ws.SubMenu=nC;Ws.Divider=Jy;Ws.ItemGroup=uu;const oL=Ws,iL=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}}}}}},aL=iL,sL=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:i,antCls:a,iconCls:s,motionDurationMid:l,dropdownPaddingVertical:c,fontSize:u,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:Um},[`&${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:Xm},[`&${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:Km},[`&${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:qm}})},oh(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},gs(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:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${l}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${c}px ${v}px`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${l}`,borderRadius:e.borderRadiusSM,["&:hover, &-active"]:{backgroundColor:e.controlItemBgHover}},gs(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}})}},[To(e,"slide-up"),To(e,"slide-down"),ac(e,"move-up"),ac(e,"move-down"),ou(e,"zoom-big")]]},rC=an("Dropdown",(e,t)=>{let{rootPrefixCls:n}=t;const{marginXXS:r,sizePopupArrow:o,controlHeight:i,fontSize:a,lineHeight:s,paddingXXS:l,componentCls:c,borderRadiusLG:u}=e,d=(i-a*s)/2,{dropdownArrowOffset:m}=rh({contentRadius:u}),h=$t(e,{menuCls:`${c}-menu`,rootPrefixCls:n,dropdownArrowDistance:o/2+r,dropdownArrowOffset:m,dropdownPaddingVertical:d,dropdownEdgeChildPadding:l});return [sL(h),aL(h)]},e=>({zIndexPopup:e.zIndexPopupBase+50})),fh=e=>{const{menu:t,arrow:n,prefixCls:r,children:o,trigger:i,disabled:a,dropdownRender:s,getPopupContainer:l,overlayClassName:c,rootClassName:u,open:d,onOpenChange:m,visible:h,onVisibleChange:v,mouseEnterDelay:g=.15,mouseLeaveDelay:p=.1,autoAdjustOverflow:b=!0,placement:y="",overlay:w,transitionName:x}=e,{getPopupContainer:C,getPrefixCls:S,direction:$}=f__namespace.useContext(ot),P=f__namespace.useMemo(()=>{const K=S();return x!==void 0?x:y.includes("top")?`${K}-slide-down`:`${K}-slide-up`},[S,y,x]),O=f__namespace.useMemo(()=>y?y.includes("Center")?y.slice(0,y.indexOf("Center")):y:$==="rtl"?"bottomRight":"bottomLeft",[y,$]),E=S("dropdown",r),[N,I]=rC(E),{token:R}=ca.useToken(),_=f__namespace.Children.only(o),M=Tn(_,{className:U(`${E}-trigger`,{[`${E}-rtl`]:$==="rtl"},_.props.className),disabled:a}),A=a?[]:i;let T;A&&A.includes("contextMenu")&&(T=!0);const[D,L]=Qt(!1,{value:d??h}),z=qn(K=>{m==null||m(K),v==null||v(K),L(K);}),V=U(c,u,I,{[`${E}-rtl`]:$==="rtl"}),F=My({arrowPointAtCenter:typeof n=="object"&&n.pointAtCenter,autoAdjustOverflow:b,offset:R.marginXXS,arrowWidth:n?R.sizePopupArrow:0,borderRadius:R.borderRadius}),G=f__namespace.useCallback(()=>{L(!1);},[]),H=()=>{let K;return t!=null&&t.items?K=f__namespace.createElement(oL,Object.assign({},t)):typeof w=="function"?K=w():K=w,s&&(K=s(K)),K=f__namespace.Children.only(typeof K=="string"?f__namespace.createElement("span",null,K):K),f__namespace.createElement(zk,{prefixCls:`${E}-menu`,expandIcon:f__namespace.createElement("span",{className:`${E}-menu-submenu-arrow`},f__namespace.createElement(jy,{className:`${E}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:G,validator:te=>{}},f__namespace.createElement(sa,null,K))};return N(f__namespace.createElement(Hy,Object.assign({alignPoint:T},Mn(e,["rootClassName"]),{mouseEnterDelay:g,mouseLeaveDelay:p,visible:D,builtinPlacements:F,arrow:!!n,overlayClassName:V,prefixCls:E,getPopupContainer:l||C,transitionName:P,trigger:A,overlay:H,placement:O,onVisibleChange:z}),M))};function lL(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const cL=Ym(fh,"dropdown",e=>e,lL),uL=e=>f__namespace.createElement(cL,Object.assign({},e),f__namespace.createElement("span",null));fh._InternalPanelDoNotUseOrYouWillBeFired=uL;const oC=fh,iC=f__namespace.createContext(null),dL=iC.Provider,aC=f__namespace.createContext(null),fL=aC.Provider;var mL=["prefixCls","className","style","checked","disabled","defaultChecked","type","onChange"],sC=f.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,u=c===void 0?!1:c,d=e.type,m=d===void 0?"checkbox":d,h=e.onChange,v=Ue(e,mL),g=f.useRef(null),p=Qt(u,{value:s}),b=X(p,2),y=b[0],w=b[1];f.useImperativeHandle(t,function(){return {focus:function(){var $;($=g.current)===null||$===void 0||$.focus();},blur:function(){var $;($=g.current)===null||$===void 0||$.blur();},input:g.current}});var x=U(o,i,(n={},q(n,"".concat(o,"-checked"),y),q(n,"".concat(o,"-disabled"),l),n)),C=function($){l||("checked"in e||w($.target.checked),h==null||h({target:B(B({},e),{},{checked:$.target.checked}),stopPropagation:function(){$.stopPropagation();},preventDefault:function(){$.preventDefault();},nativeEvent:$.nativeEvent}));};return f__namespace.createElement("span",{className:x,style:a},f__namespace.createElement("input",pe({},v,{className:"".concat(o,"-input"),ref:g,onChange:C,disabled:l,checked:!!y,type:m})),f__namespace.createElement("span",{className:"".concat(o,"-inner")}))});const hL=new Mt("antRadioEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),vL=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"}})}},gL=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:i,motionDurationMid:a,motionEaseInOut:s,motionEaseInOutCirc:l,colorBgContainer:c,colorBorder:u,lineWidth:d,dotSize:m,colorBgContainerDisabled:h,colorTextDisabled:v,paddingXS:g,dotColorDisabled:p,lineType:b,radioDotDisabledSize:y,wireframe:w,colorWhite:x}=e,C=`${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:hL,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 ${C}`]:{borderColor:r},[`${t}-input:focus-visible + ${C}`]:Object.assign({},Fs(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:w?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:u,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`]:{[C]:{borderColor:r,backgroundColor:w?c:r,"&::after":{transform:`scale(${m/o})`,opacity:1,transition:`all ${i} ${l}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[C]:{backgroundColor:h,borderColor:u,cursor:"not-allowed","&::after":{backgroundColor:p}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:v,cursor:"not-allowed"},[`&${t}-checked`]:{[C]:{"&::after":{transform:`scale(${y/o})`}}}},[`span${t} + *`]:{paddingInlineStart:g,paddingInlineEnd:g}})}},pL=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:i,colorBorder:a,motionDurationSlow:s,motionDurationMid:l,buttonPaddingInline:c,fontSize:u,buttonBg:d,fontSizeLG:m,controlHeightLG:h,controlHeightSM:v,paddingXS:g,borderRadius:p,borderRadiusSM:b,borderRadiusLG:y,buttonCheckedBg:w,buttonSolidCheckedColor:x,colorTextDisabled:C,colorBgContainerDisabled:S,buttonCheckedBgDisabled:$,buttonCheckedColorDisabled:P,colorPrimary:O,colorPrimaryHover:E,colorPrimaryActive:N}=e;return {[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:u,lineHeight:`${n-o*2}px`,background:d,border:`${o}px ${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:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},[`${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:O},"&:has(:focus-visible)":Object.assign({},Fs(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:O,background:w,borderColor:O,"&::before":{backgroundColor:O},"&:first-child":{borderColor:O},"&:hover":{color:E,borderColor:E,"&::before":{backgroundColor:E}},"&:active":{color:N,borderColor:N,"&::before":{backgroundColor:N}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:x,background:O,borderColor:O,"&:hover":{color:x,background:E,borderColor:E},"&:active":{color:x,background:N,borderColor:N}},"&-disabled":{color:C,backgroundColor:S,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:C,backgroundColor:S,borderColor:a}},[`&-disabled${r}-button-wrapper-checked`]:{color:P,backgroundColor:$,borderColor:a,boxShadow:"none"}}}},Qg=e=>e-4*2,lC=an("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n,radioSize:r}=e,o=`0 0 0 ${n}px ${t}`,i=o,a=Qg(r),s=$t(e,{radioDotDisabledSize:a,radioFocusShadow:o,radioButtonFocusShadow:i});return [vL(s),gL(s),pL(s)]},e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:i,colorText:a,colorBgContainer:s,colorTextDisabled:l,controlItemBgActiveDisabled:c,colorTextLightSolid:u}=e,d=4,m=i,h=t?Qg(m):m-(d+o)*2;return {radioSize:m,dotSize:h,dotColorDisabled:l,buttonSolidCheckedColor:u,buttonBg:s,buttonCheckedBg:s,buttonColor:a,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:l,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r}});var bL=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 yL=(e,t)=>{var n,r;const o=f__namespace.useContext(iC),i=f__namespace.useContext(aC),{getPrefixCls:a,direction:s}=f__namespace.useContext(ot),l=f__namespace.useRef(null),c=Fn(t,l),{isFormItemInput:u}=f__namespace.useContext(Gr),d=O=>{var E,N;(E=e.onChange)===null||E===void 0||E.call(e,O),(N=o==null?void 0:o.onChange)===null||N===void 0||N.call(o,O);},{prefixCls:m,className:h,rootClassName:v,children:g,style:p}=e,b=bL(e,["prefixCls","className","rootClassName","children","style"]),y=a("radio",m),w=((o==null?void 0:o.optionType)||i)==="button"?`${y}-button`:y,[x,C]=lC(y),S=Object.assign({},b),$=f__namespace.useContext(Do);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:$;const P=U(`${w}-wrapper`,{[`${w}-wrapper-checked`]:S.checked,[`${w}-wrapper-disabled`]:S.disabled,[`${w}-wrapper-rtl`]:s==="rtl",[`${w}-wrapper-in-form-item`]:u},h,v,C);return x(f__namespace.createElement("label",{className:P,style:p,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},f__namespace.createElement(sC,Object.assign({},S,{type:"radio",prefixCls:w,ref:c})),g!==void 0?f__namespace.createElement("span",null,g):null))},CL=f__namespace.forwardRef(yL),fc=CL,SL=f__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=f__namespace.useContext(ot),[o,i]=Qt(e.defaultValue,{value:e.value}),a=I=>{const R=o,_=I.target.value;"value"in e||i(_);const{onChange:M}=e;M&&_!==R&&M(I);},{prefixCls:s,className:l,rootClassName:c,options:u,buttonStyle:d="outline",disabled:m,children:h,size:v,style:g,id:p,onMouseEnter:b,onMouseLeave:y,onFocus:w,onBlur:x}=e,C=n("radio",s),S=`${C}-group`,[$,P]=lC(C);let O=h;u&&u.length>0&&(O=u.map(I=>typeof I=="string"||typeof I=="number"?f__namespace.createElement(fc,{key:I.toString(),prefixCls:C,disabled:m,value:I,checked:o===I},I):f__namespace.createElement(fc,{key:`radio-group-value-options-${I.value}`,prefixCls:C,disabled:I.disabled||m,value:I.value,checked:o===I.value,style:I.style},I.label)));const E=Or(v),N=U(S,`${S}-${d}`,{[`${S}-${E}`]:E,[`${S}-rtl`]:r==="rtl"},l,c,P);return $(f__namespace.createElement("div",Object.assign({},ps(e,{aria:!0,data:!0}),{className:N,style:g,onMouseEnter:b,onMouseLeave:y,onFocus:w,onBlur:x,id:p,ref:t}),f__namespace.createElement(dL,{value:{onChange:a,value:o,disabled:e.disabled,name:e.name,optionType:e.optionType}},O)))}),wL=f__namespace.memo(SL);var $L=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 xL=(e,t)=>{const{getPrefixCls:n}=f__namespace.useContext(ot),{prefixCls:r}=e,o=$L(e,["prefixCls"]),i=n("radio",r);return f__namespace.createElement(fL,{value:"button"},f__namespace.createElement(fc,Object.assign({prefixCls:i},o,{type:"radio",ref:t})))},EL=f__namespace.forwardRef(xL),du=fc;du.Button=EL;du.Group=wL;du.__ANT_RADIO=!0;const Yo=du,cC=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Vs=e=>({borderColor:e.inputBorderHoverColor,borderInlineEndWidth:e.lineWidth}),mc=e=>({borderColor:e.inputBorderHoverColor,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),mh=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},Vs($t(e,{inputBorderHoverColor:e.colorBorder})))}),uC=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}},dC=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),fu=(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({},mc($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({},mc($t(e,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:a}))),[`${n}-prefix, ${n}-suffix`]:{color:o}}}},mu=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}`},cC(e.colorTextPlaceholder)),{"&:hover":Object.assign({},Vs(e)),"&:focus, &-focused":Object.assign({},mc(e)),"&-disabled, &[disabled]":Object.assign({},mh(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({},uC(e)),"&-sm":Object.assign({},dC(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),fC=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({},uC(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},dC(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"},pf()),{[`${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`]:{display:"inline-flex"},[`& > ${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}}}})}},OL=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)),mu(e)),fu(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"}})}},PL=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`}}}},_L=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({},mu(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},Vs(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":{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}}}),PL(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),fu(e,`${t}-affix-wrapper`))}},IL=e=>{const{componentCls:t,colorError:n,colorWarning:r,borderRadiusLG:o,borderRadiusSM:i}=e;return {[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Kt(e)),fC(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({},mh(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}}}})}},RL=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 mC(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 ML=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"}}}}}},hh=an("Input",e=>{const t=mC(e);return [OL(t),ML(t),_L(t),IL(t),RL(t),nu(t)]});var TL={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 NL=TL;var AL=function(t,n){return f__namespace.createElement(nr,pe({},t,{ref:n,icon:NL}))};const DL=f__namespace.forwardRef(AL),hu=f.createContext(null);var hC=f__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 f__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:U(n,a&&"".concat(n,"-active"),r),ref:t},l)}),kL=["key","forceRender","style","className"];function LL(e){var t=e.id,n=e.activeKey,r=e.animated,o=e.tabPosition,i=e.destroyInactiveTabPane,a=f__namespace.useContext(hu),s=a.prefixCls,l=a.tabs,c=r.tabPane,u="".concat(s,"-tabpane");return f__namespace.createElement("div",{className:U("".concat(s,"-content-holder"))},f__namespace.createElement("div",{className:U("".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=Ue(d,kL),b=m===n;return f__namespace.createElement(ko,pe({key:m,visible:b,forceRender:h,removeOnLeave:!!i,leavedClassName:"".concat(u,"-hidden")},r.tabPaneMotion),function(y,w){var x=y.style,C=y.className;return f__namespace.createElement(hC,pe({},p,{prefixCls:u,id:t,tabKey:m,animated:c,active:b,style:B(B({},v),x),className:U(g,C),ref:w}))})})))}var Jg={width:0,height:0,left:0,top:0};function FL(e,t,n){return f.useMemo(function(){for(var r,o=new Map,i=t.get((r=e[0])===null||r===void 0?void 0:r.key)||Jg,a=i.left+i.width,s=0;s<e.length;s+=1){var l=e[s].key,c=t.get(l);if(!c){var u;c=t.get((u=e[s-1])===null||u===void 0?void 0:u.key)||Jg;}var d=o.get(l)||B({},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 ep(e,t){var n=f__namespace.useRef(e),r=f__namespace.useState({}),o=X(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 zL=.1,tp=.01,Rl=20,np=Math.pow(.995,Rl);function jL(e,t){var n=f.useState(),r=X(n,2),o=r[0],i=r[1],a=f.useState(0),s=X(a,2),l=s[0],c=s[1],u=f.useState(0),d=X(u,2),m=d[0],h=d[1],v=f.useState(),g=X(v,2),p=g[0],b=g[1],y=f.useRef();function w(O){var E=O.touches[0],N=E.screenX,I=E.screenY;i({x:N,y:I}),window.clearInterval(y.current);}function x(O){if(o){O.preventDefault();var E=O.touches[0],N=E.screenX,I=E.screenY;i({x:N,y:I});var R=N-o.x,_=I-o.y;t(R,_);var M=Date.now();c(M),h(M-l),b({x:R,y:_});}}function C(){if(o&&(i(null),b(null),p)){var O=p.x/m,E=p.y/m,N=Math.abs(O),I=Math.abs(E);if(Math.max(N,I)<zL)return;var R=O,_=E;y.current=window.setInterval(function(){if(Math.abs(R)<tp&&Math.abs(_)<tp){window.clearInterval(y.current);return}R*=np,_*=np,t(R*Rl,_*Rl);},Rl);}}var S=f.useRef();function $(O){var E=O.deltaX,N=O.deltaY,I=0,R=Math.abs(E),_=Math.abs(N);R===_?I=S.current==="x"?E:N:R>_?(I=E,S.current="x"):(I=N,S.current="y"),t(-I,-I)&&O.preventDefault();}var P=f.useRef(null);P.current={onTouchStart:w,onTouchMove:x,onTouchEnd:C,onWheel:$},f__namespace.useEffect(function(){function O(R){P.current.onTouchStart(R);}function E(R){P.current.onTouchMove(R);}function N(R){P.current.onTouchEnd(R);}function I(R){P.current.onWheel(R);}return document.addEventListener("touchmove",E,{passive:!1}),document.addEventListener("touchend",N,{passive:!1}),e.current.addEventListener("touchstart",O,{passive:!1}),e.current.addEventListener("wheel",I),function(){document.removeEventListener("touchmove",E),document.removeEventListener("touchend",N);}},[]);}function vC(e){var t=f.useState(0),n=X(t,2),r=n[0],o=n[1],i=f.useRef(0),a=f.useRef();return a.current=e,Vi(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 HL(e){var t=f.useRef([]),n=f.useState({}),r=X(n,2),o=r[1],i=f.useRef(typeof e=="function"?e():e),a=vC(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 rp={width:0,height:0,left:0,top:0,right:0};function BL(e,t,n,r,o,i,a){var s=a.tabs,l=a.tabPosition,c=a.rtl,u,d,m;return ["top","bottom"].includes(l)?(u="width",d=c?"right":"left",m=Math.abs(n)):(u="height",d="top",m=-n),f.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)||rp;if(p[d]+p[u]>m+t){v=g-1;break}}for(var b=0,y=h-1;y>=0;y-=1){var w=e.get(s[y].key)||rp;if(w[d]<m){b=y+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 op(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n;})):t=e,JSON.stringify(t)}var WL="TABS_DQ";function gC(e){return String(e).replace(/"/g,WL)}function VL(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,i=e.style;return !r||r.showAdd===!1?null:f__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 pC=f__namespace.forwardRef(VL);var ip=f__namespace.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var i,a={};return nt(o)==="object"&&!f__namespace.isValidElement(o)?a=o:a.right=o,n==="right"&&(i=a.right),n==="left"&&(i=a.left),i?f__namespace.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},i):null});function GL(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,u=e.style,d=e.className,m=e.editable,h=e.tabBarGutter,v=e.rtl,g=e.removeAriaLabel,p=e.onTabClick,b=e.getPopupContainer,y=e.popupClassName,w=f.useState(!1),x=X(w,2),C=x[0],S=x[1],$=f.useState(null),P=X($,2),O=P[0],E=P[1],N="".concat(r,"-more-popup"),I="".concat(n,"-dropdown"),R=O!==null?"".concat(N,"-").concat(O):null,_=i==null?void 0:i.dropdownAriaLabel;function M(F,G){F.preventDefault(),F.stopPropagation(),m.onEdit("remove",{key:G,event:F});}var A=f__namespace.createElement(Sa,{onClick:function(G){var H=G.key,K=G.domEvent;p(H,K),S(!1);},prefixCls:"".concat(I,"-menu"),id:N,tabIndex:-1,role:"listbox","aria-activedescendant":R,selectedKeys:[O],"aria-label":_!==void 0?_:"expanded dropdown"},o.map(function(F){var G=m&&F.closable!==!1&&!F.disabled;return f__namespace.createElement(Bs,{key:F.key,id:"".concat(N,"-").concat(F.key),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(F.key),disabled:F.disabled},f__namespace.createElement("span",null,F.label),G&&f__namespace.createElement("button",{type:"button","aria-label":g||"remove",tabIndex:0,className:"".concat(I,"-menu-item-remove"),onClick:function(K){K.stopPropagation(),M(K,F.key);}},F.closeIcon||m.removeIcon||"×"))}));function T(F){for(var G=o.filter(function(Y){return !Y.disabled}),H=G.findIndex(function(Y){return Y.key===O})||0,K=G.length,te=0;te<K;te+=1){H=(H+F+K)%K;var Z=G[H];if(!Z.disabled){E(Z.key);return}}}function D(F){var G=F.which;if(!C){[Q.DOWN,Q.SPACE,Q.ENTER].includes(G)&&(S(!0),F.preventDefault());return}switch(G){case Q.UP:T(-1),F.preventDefault();break;case Q.DOWN:T(1),F.preventDefault();break;case Q.ESC:S(!1);break;case Q.SPACE:case Q.ENTER:O!==null&&p(O,F);break}}f.useEffect(function(){var F=document.getElementById(R);F&&F.scrollIntoView&&F.scrollIntoView(!1);},[O]),f.useEffect(function(){C||E(null);},[C]);var L=q({},v?"marginRight":"marginLeft",h);o.length||(L.visibility="hidden",L.order=1);var z=U(q({},"".concat(I,"-rtl"),v)),V=a?null:f__namespace.createElement(Hy,{prefixCls:I,overlay:A,trigger:["hover"],visible:o.length?C:!1,transitionName:c,onVisibleChange:S,overlayClassName:U(z,y),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:b},f__namespace.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:L,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":N,id:"".concat(r,"-more"),"aria-expanded":C,onKeyDown:D},l));return f__namespace.createElement("div",{className:U("".concat(n,"-nav-operations"),d),style:u,ref:t},V,f__namespace.createElement(pC,{prefixCls:n,locale:i,editable:m}))}const UL=f__namespace.memo(f__namespace.forwardRef(GL),function(e,t){return t.tabMoving});function KL(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,u=e.closable,d=e.renderWrapper,m=e.removeAriaLabel,h=e.editable,v=e.onClick,g=e.onFocus,p=e.style,b="".concat(n,"-tab"),y=h&&u!==!1&&!l;function w(S){l||v(S);}function x(S){S.preventDefault(),S.stopPropagation(),h.onEdit("remove",{key:a,event:S});}var C=f__namespace.createElement("div",{key:a,"data-node-key":gC(a),className:U(b,(t={},q(t,"".concat(b,"-with-remove"),y),q(t,"".concat(b,"-active"),o),q(t,"".concat(b,"-disabled"),l),t)),style:p,onClick:w},f__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($){$.stopPropagation(),w($);},onKeyDown:function($){[Q.SPACE,Q.ENTER].includes($.which)&&($.preventDefault(),w($));},onFocus:g},s),y&&f__namespace.createElement("button",{type:"button","aria-label":m||"remove",tabIndex:0,className:"".concat(b,"-remove"),onClick:function($){$.stopPropagation(),x($);}},c||h.removeIcon||"×"));return d?d(C):C}var Ni=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]},yl=function(t,n){return t[n?0:1]};function XL(e,t){var n,r=f__namespace.useContext(hu),o=r.prefixCls,i=r.tabs,a=e.className,s=e.style,l=e.id,c=e.animated,u=e.activeKey,d=e.rtl,m=e.extra,h=e.editable,v=e.locale,g=e.tabPosition,p=e.tabBarGutter,b=e.children,y=e.onTabClick,w=e.onTabScroll,x=f.useRef(),C=f.useRef(),S=f.useRef(),$=f.useRef(),P=f.useRef(),O=f.useRef(),E=f.useRef(),N=g==="top"||g==="bottom",I=ep(0,function(Ne,Be){N&&w&&w({direction:Ne>Be?"left":"right"});}),R=X(I,2),_=R[0],M=R[1],A=ep(0,function(Ne,Be){!N&&w&&w({direction:Ne>Be?"top":"bottom"});}),T=X(A,2),D=T[0],L=T[1],z=f.useState([0,0]),V=X(z,2),F=V[0],G=V[1],H=f.useState([0,0]),K=X(H,2),te=K[0],Z=K[1],Y=f.useState([0,0]),ee=X(Y,2),re=ee[0],ae=ee[1],ce=f.useState([0,0]),oe=X(ce,2),me=oe[0],ye=oe[1],ue=HL(new Map),he=X(ue,2),ne=he[0],fe=he[1],le=FL(i,ne,te[0]),se=yl(F,N),Ie=yl(te,N),_e=yl(re,N),Le=yl(me,N),Re=se<Ie+_e,Ke=Re?se-Le:se-_e,dt="".concat(o,"-nav-operations-hidden"),Je=0,Ye=0;N&&d?(Je=0,Ye=Math.max(0,Ie-Ke)):(Je=Math.min(0,Ke-Ie),Ye=0);function ke(Ne){return Ne<Je?Je:Ne>Ye?Ye:Ne}var ze=f.useRef(),ct=f.useState(),it=X(ct,2),be=it[0],$e=it[1];function Xe(){$e(Date.now());}function We(){window.clearTimeout(ze.current);}jL($,function(Ne,Be){function st(xt,qt){xt(function(zt){var wn=ke(zt+qt);return wn});}return Re?(N?st(M,Ne):st(L,Be),We(),Xe(),!0):!1}),f.useEffect(function(){return We(),be&&(ze.current=window.setTimeout(function(){$e(0);},100)),We},[be]);var ut=BL(le,Ke,N?_:D,Ie,_e,Le,B(B({},e),{},{tabs:i})),Ee=X(ut,2),Oe=Ee[0],je=Ee[1],Me=qn(function(){var Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:u,Be=le.get(Ne)||{width:0,height:0,left:0,right:0,top:0};if(N){var st=_;d?Be.right<_?st=Be.right:Be.right+Be.width>_+Ke&&(st=Be.right+Be.width-Ke):Be.left<-_?st=-Be.left:Be.left+Be.width>-_+Ke&&(st=-(Be.left+Be.width-Ke)),L(0),M(ke(st));}else {var xt=D;Be.top<-D?xt=-Be.top:Be.top+Be.height>-D+Ke&&(xt=-(Be.top+Be.height-Ke)),M(0),L(ke(xt));}}),Ze={};g==="top"||g==="bottom"?Ze[d?"marginRight":"marginLeft"]=p:Ze.marginTop=p;var wt=i.map(function(Ne,Be){var st=Ne.key;return f__namespace.createElement(KL,{id:l,prefixCls:o,key:st,tab:Ne,style:Be===0?void 0:Ze,closable:Ne.closable,editable:h,active:st===u,renderWrapper:b,removeAriaLabel:v==null?void 0:v.removeAriaLabel,onClick:function(qt){y(st,qt);},onFocus:function(){Me(st),Xe(),$.current&&(d||($.current.scrollLeft=0),$.current.scrollTop=0);}})}),Lt=function(){return fe(function(){var Be=new Map;return i.forEach(function(st){var xt,qt=st.key,zt=(xt=P.current)===null||xt===void 0?void 0:xt.querySelector('[data-node-key="'.concat(gC(qt),'"]'));zt&&Be.set(qt,{width:zt.offsetWidth,height:zt.offsetHeight,left:zt.offsetLeft,top:zt.offsetTop});}),Be})};f.useEffect(function(){Lt();},[i.map(function(Ne){return Ne.key}).join("_")]);var Dt=vC(function(){var Ne=Ni(x),Be=Ni(C),st=Ni(S);G([Ne[0]-Be[0]-st[0],Ne[1]-Be[1]-st[1]]);var xt=Ni(E);ae(xt);var qt=Ni(O);ye(qt);var zt=Ni(P);Z([zt[0]-xt[0],zt[1]-xt[1]]),Lt();}),Ae=i.slice(0,Oe),de=i.slice(je+1),ie=[].concat(ge(Ae),ge(de)),Ce=f.useState(),xe=X(Ce,2),qe=xe[0],ft=xe[1],yt=le.get(u),Xt=f.useRef();function Ht(){Nt.cancel(Xt.current);}f.useEffect(function(){var Ne={};return yt&&(N?(d?Ne.right=yt.right:Ne.left=yt.left,Ne.width=yt.width):(Ne.top=yt.top,Ne.height=yt.height)),Ht(),Xt.current=Nt(function(){ft(Ne);}),Ht},[yt,N,d]),f.useEffect(function(){Me();},[u,Je,Ye,op(yt),op(le),N]),f.useEffect(function(){Dt();},[d]);var De=!!ie.length,Ve="".concat(o,"-nav-wrap"),Te,Ct,vt,Jt;return N?d?(Ct=_>0,Te=_!==Ye):(Te=_<0,Ct=_!==Je):(vt=D<0,Jt=D!==Je),f__namespace.createElement(mo,{onResize:Dt},f__namespace.createElement("div",{ref:Ns(t,x),role:"tablist",className:U("".concat(o,"-nav"),a),style:s,onKeyDown:function(){Xe();}},f__namespace.createElement(ip,{ref:C,position:"left",extra:m,prefixCls:o}),f__namespace.createElement("div",{className:U(Ve,(n={},q(n,"".concat(Ve,"-ping-left"),Te),q(n,"".concat(Ve,"-ping-right"),Ct),q(n,"".concat(Ve,"-ping-top"),vt),q(n,"".concat(Ve,"-ping-bottom"),Jt),n)),ref:$},f__namespace.createElement(mo,{onResize:Dt},f__namespace.createElement("div",{ref:P,className:"".concat(o,"-nav-list"),style:{transform:"translate(".concat(_,"px, ").concat(D,"px)"),transition:be?"none":void 0}},wt,f__namespace.createElement(pC,{ref:E,prefixCls:o,locale:v,editable:h,style:B(B({},wt.length===0?void 0:Ze),{},{visibility:De?"hidden":null})}),f__namespace.createElement("div",{className:U("".concat(o,"-ink-bar"),q({},"".concat(o,"-ink-bar-animated"),c.inkBar)),style:qe})))),f__namespace.createElement(UL,pe({},e,{removeAriaLabel:v==null?void 0:v.removeAriaLabel,ref:O,prefixCls:o,tabs:ie,className:!De&&dt,tabMoving:!!be})),f__namespace.createElement(ip,{ref:S,position:"right",extra:m,prefixCls:o})))}const ap=f__namespace.forwardRef(XL);var qL=["renderTabBar"],YL=["label","key"];function ZL(e){var t=e.renderTabBar,n=Ue(e,qL),r=f__namespace.useContext(hu),o=r.tabs;if(t){var i=B(B({},n),{},{panes:o.map(function(a){var s=a.label,l=a.key,c=Ue(a,YL);return f__namespace.createElement(hC,pe({tab:s,key:l,tabKey:l},c))})});return t(i,ap)}return f__namespace.createElement(ap,n)}function QL(){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=B({inkBar:!0},nt(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var JL=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName"],sp=0;function eF(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,u=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,y=e.locale,w=e.moreIcon,x=e.moreTransitionName,C=e.destroyInactiveTabPane,S=e.renderTabBar,$=e.onChange,P=e.onTabClick,O=e.onTabScroll,E=e.getPopupContainer,N=e.popupClassName,I=Ue(e,JL),R=f__namespace.useMemo(function(){return (s||[]).filter(function(ue){return ue&&nt(ue)==="object"&&"key"in ue})},[s]),_=l==="rtl",M=QL(m),A=f.useState(!1),T=X(A,2),D=T[0],L=T[1];f.useEffect(function(){L(iu());},[]);var z=Qt(function(){var ue;return (ue=R[0])===null||ue===void 0?void 0:ue.key},{value:c,defaultValue:u}),V=X(z,2),F=V[0],G=V[1],H=f.useState(function(){return R.findIndex(function(ue){return ue.key===F})}),K=X(H,2),te=K[0],Z=K[1];f.useEffect(function(){var ue=R.findIndex(function(ne){return ne.key===F});if(ue===-1){var he;ue=Math.max(0,Math.min(te,R.length-1)),G((he=R[ue])===null||he===void 0?void 0:he.key);}Z(ue);},[R.map(function(ue){return ue.key}).join("_"),F,te]);var Y=Qt(null,{value:r}),ee=X(Y,2),re=ee[0],ae=ee[1];f.useEffect(function(){r||(ae("rc-tabs-".concat(sp)),sp+=1);},[]);function ce(ue,he){P==null||P(ue,he);var ne=ue!==F;G(ue),ne&&($==null||$(ue));}var oe={id:re,activeKey:F,animated:M,tabPosition:v,rtl:_,mobile:D},me,ye=B(B({},oe),{},{editable:d,locale:y,moreIcon:w,moreTransitionName:x,tabBarGutter:g,onTabClick:ce,onTabScroll:O,extra:b,style:p,panes:null,getPopupContainer:E,popupClassName:N});return f__namespace.createElement(hu.Provider,{value:{tabs:R,prefixCls:i}},f__namespace.createElement("div",pe({ref:t,id:r,className:U(i,"".concat(i,"-").concat(v),(n={},q(n,"".concat(i,"-mobile"),D),q(n,"".concat(i,"-editable"),d),q(n,"".concat(i,"-rtl"),_),n),a)},I),me,f__namespace.createElement(ZL,pe({},ye,{renderTabBar:S})),f__namespace.createElement(LL,pe({destroyInactiveTabPane:C},oe,{animated:M}))))}var tF=f__namespace.forwardRef(eF);const nF=()=>null,rF=nF,oF={motionAppear:!1,motionEnter:!0,motionLeave:!0};function iF(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({},oF),{motionName:ru(e,"switch")})),n}var aF=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 sF(e){return e.filter(t=>t)}function lF(e,t){if(e)return e;const n=ur(t).map(r=>{if(f__namespace.isValidElement(r)){const{key:o,props:i}=r,a=i||{},{tab:s}=a,l=aF(a,["tab"]);return Object.assign(Object.assign({key:String(o)},l),{label:s})}return null});return sF(n)}const cF=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}`}}}}},[To(e,"slide-up"),To(e,"slide-down")]]},uF=cF,dF=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}}}}}}},fF=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({},ri),{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"}}})}})}},mF=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}}}}}},hF=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}}}}}},vF=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}},gs(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}}}},gF=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"}}}}},pF=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}},gs(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),vF(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"}}}}}},bF=an("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 [hF(t),gF(t),mF(t),fF(t),dF(t),pF(t),uF(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 yF=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 bC(e){var{type:t,className:n,rootClassName:r,size:o,onEdit:i,hideAdd:a,centered:s,addIcon:l,popupClassName:c,children:u,items:d,animated:m}=e,h=yF(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated"]);const{prefixCls:v,moreIcon:g=f__namespace.createElement(dh,null)}=h,{direction:p,getPrefixCls:b,getPopupContainer:y}=f__namespace.useContext(ot),w=b("tabs",v),[x,C]=bF(w);let S;t==="editable-card"&&(S={onEdit:(N,I)=>{let{key:R,event:_}=I;i==null||i(N==="add"?_:R,N);},removeIcon:f__namespace.createElement(jm,null),addIcon:l||f__namespace.createElement(DL,null),showAdd:a!==!0});const $=b(),P=lF(d,u),O=iF(w,m),E=Or(o);return x(f__namespace.createElement(tF,Object.assign({direction:p,getPopupContainer:y,moreTransitionName:`${$}-slide-up`},h,{items:P,className:U({[`${w}-${E}`]:E,[`${w}-card`]:["card","editable-card"].includes(t),[`${w}-editable-card`]:t==="editable-card",[`${w}-centered`]:s},n,r,C),popupClassName:U(c,C),editable:S,moreIcon:g,prefixCls:w,animated:O})))}bC.TabPane=rF;const CF=new Mt("antCheckboxEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),SF=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({},Fs(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:CF,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 wF(e,t){const n=$t(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return [SF(n)]}const yC=an("Checkbox",(e,t)=>{let{prefixCls:n}=t;return [wF(n,e)]});var $F=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const CC=f__namespace.createContext(null),xF=(e,t)=>{var{defaultValue:n,children:r,options:o=[],prefixCls:i,className:a,rootClassName:s,style:l,onChange:c}=e,u=$F(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]);const{getPrefixCls:d,direction:m}=f__namespace.useContext(ot),[h,v]=f__namespace.useState(u.value||n||[]),[g,p]=f__namespace.useState([]);f__namespace.useEffect(()=>{"value"in u&&v(u.value||[]);},[u.value]);const b=()=>o.map(I=>typeof I=="string"||typeof I=="number"?{label:I,value:I}:I),y=I=>{p(R=>R.filter(_=>_!==I));},w=I=>{p(R=>[].concat(ge(R),[I]));},x=I=>{const R=h.indexOf(I.value),_=ge(h);R===-1?_.push(I.value):_.splice(R,1),"value"in u||v(_);const M=b();c==null||c(_.filter(A=>g.includes(A)).sort((A,T)=>{const D=M.findIndex(z=>z.value===A),L=M.findIndex(z=>z.value===T);return D-L}));},C=d("checkbox",i),S=`${C}-group`,[$,P]=yC(C),O=Mn(u,["value","disabled"]);o&&o.length>0&&(r=b().map(I=>f__namespace.createElement(SC,{prefixCls:C,key:I.value.toString(),disabled:"disabled"in I?I.disabled:u.disabled,value:I.value,checked:h.includes(I.value),onChange:I.onChange,className:`${S}-item`,style:I.style},I.label)));const E={toggleOption:x,value:h,disabled:u.disabled,name:u.name,registerValue:w,cancelValue:y},N=U(S,{[`${S}-rtl`]:m==="rtl"},a,s,P);return $(f__namespace.createElement("div",Object.assign({className:N,style:l},O,{ref:t}),f__namespace.createElement(CC.Provider,{value:E},r)))},EF=f__namespace.forwardRef(xF),OF=f__namespace.memo(EF);var PF=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 _F=(e,t)=>{var n,{prefixCls:r,className:o,rootClassName:i,children:a,indeterminate:s=!1,style:l,onMouseEnter:c,onMouseLeave:u,skipGroup:d=!1,disabled:m}=e,h=PF(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]);const{getPrefixCls:v,direction:g}=f__namespace.useContext(ot),p=f__namespace.useContext(CC),{isFormItemInput:b}=f__namespace.useContext(Gr),y=f__namespace.useContext(Do),w=(n=(p==null?void 0:p.disabled)||m)!==null&&n!==void 0?n:y,x=f__namespace.useRef(h.value);f__namespace.useEffect(()=>{p==null||p.registerValue(h.value);},[]),f__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 C=v("checkbox",r),[S,$]=yC(C),P=Object.assign({},h);p&&!d&&(P.onChange=function(){h.onChange&&h.onChange.apply(h,arguments),p.toggleOption&&p.toggleOption({label:a,value:h.value});},P.name=p.name,P.checked=p.value.includes(h.value));const O=U({[`${C}-wrapper`]:!0,[`${C}-rtl`]:g==="rtl",[`${C}-wrapper-checked`]:P.checked,[`${C}-wrapper-disabled`]:w,[`${C}-wrapper-in-form-item`]:b},o,i,$),E=U({[`${C}-indeterminate`]:s},$),N=s?"mixed":void 0;return S(f__namespace.createElement("label",{className:O,style:l,onMouseEnter:c,onMouseLeave:u},f__namespace.createElement(sC,Object.assign({"aria-checked":N},P,{prefixCls:C,className:E,disabled:w,ref:t})),a!==void 0&&f__namespace.createElement("span",null,a)))},IF=f__namespace.forwardRef(_F),SC=IF,vh=SC;vh.Group=OF;vh.__ANT_CHECKBOX=!0;const RF=vh,MF=()=>{const[e,t]=f__namespace.useState(!1);return f__namespace.useEffect(()=>{t(ET());},[]),e};var wC=f.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,u=f.useState(l||o),d=X(u,2),m=d[0],h=d[1];return f.useEffect(function(){(o||l)&&h(!0);},[o,l]),m?f.createElement("div",{ref:t,className:U("".concat(r,"-content"),(n={},q(n,"".concat(r,"-content-active"),l),q(n,"".concat(r,"-content-inactive"),!l),n),i),style:a,role:c},f.createElement("div",{className:"".concat(r,"-content-box")},s)):null});wC.displayName="PanelContent";var TF=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],$C=f.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,u=e.className,d=e.prefixCls,m=e.collapsible,h=e.accordion,v=e.panelKey,g=e.extra,p=e.header,b=e.expandIcon,y=e.openMotion,w=e.destroyInactivePanel,x=e.children,C=Ue(e,TF),S=m==="disabled",$=m==="header",P=m==="icon",O=g!=null&&typeof g!="boolean",E=function(){l==null||l(v);},N=function(T){(T.key==="Enter"||T.keyCode===Q.ENTER||T.which===Q.ENTER)&&E();},I=typeof b=="function"?b(e):f.createElement("i",{className:"arrow"});I&&(I=f.createElement("div",{className:"".concat(d,"-expand-icon"),onClick:["header","icon"].includes(m)?E:void 0},I));var R=U((n={},q(n,"".concat(d,"-item"),!0),q(n,"".concat(d,"-item-active"),s),q(n,"".concat(d,"-item-disabled"),S),n),u),_=U((r={},q(r,"".concat(d,"-header"),!0),q(r,"headerClass",a),q(r,"".concat(d,"-header-collapsible-only"),$),q(r,"".concat(d,"-icon-collapsible-only"),P),r)),M={className:_,"aria-expanded":s,"aria-disabled":S,onKeyDown:N};return !$&&!P&&(M.onClick=E,M.role=h?"tab":"button",M.tabIndex=S?-1:0),f.createElement("div",pe({},C,{ref:t,className:R}),f.createElement("div",M,i&&I,f.createElement("span",{className:"".concat(d,"-header-text"),onClick:m==="header"?E:void 0},p),O&&f.createElement("div",{className:"".concat(d,"-extra")},g)),f.createElement(ko,pe({visible:s,leavedClassName:"".concat(d,"-content-hidden")},y,{forceRender:c,removeOnLeave:w}),function(A,T){var D=A.className,L=A.style;return f.createElement(wC,{ref:T,prefixCls:d,className:D,style:L,isActive:s,forceRender:c,role:h?"tabpanel":void 0},x)}))}),NF=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],AF=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,u=n.expandIcon;return t.map(function(d,m){var h=d.children,v=d.label,g=d.key,p=d.collapsible,b=d.onItemClick,y=d.destroyInactivePanel,w=Ue(d,NF),x=String(g??m),C=p??i,S=y??a,$=function(E){C!=="disabled"&&(s(E),b==null||b(E));},P=!1;return o?P=l[0]===x:P=l.indexOf(x)>-1,f.createElement($C,pe({},w,{prefixCls:r,key:x,panelKey:x,isActive:P,accordion:o,openMotion:c,expandIcon:u,header:v,collapsible:C,onItemClick:$,destroyInactivePanel:S}),h)})},DF=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,u=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,y=h.onItemClick,w=!1;i?w=c[0]===m:w=c.indexOf(m)>-1;var x=b??a,C=function(P){x!=="disabled"&&(l(P),y==null||y(P));},S={key:m,panelKey:m,header:v,headerClass:g,isActive:w,prefixCls:o,destroyInactivePanel:p??s,openMotion:u,accordion:i,children:t.props.children,onItemClick:C,expandIcon:d,collapsible:x};return typeof t.type=="string"?t:(Object.keys(S).forEach(function($){typeof S[$]>"u"&&delete S[$];}),f.cloneElement(t,S))};function kF(e,t,n){return Array.isArray(e)?AF(e,n):ur(t).map(function(r,o){return DF(r,o,n)})}function LF(e){var t=e;if(!Array.isArray(t)){var n=nt(t);t=n==="number"||n==="string"?[t]:[];}return t.map(function(r){return String(r)})}var FF=f.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,u=e.collapsible,d=e.openMotion,m=e.expandIcon,h=e.activeKey,v=e.defaultActiveKey,g=e.onChange,p=e.items,b=U(r,l),y=Qt([],{value:h,onChange:function(O){return g==null?void 0:g(O)},defaultValue:v,postState:LF}),w=X(y,2),x=w[0],C=w[1],S=function(O){return C(function(){if(s)return x[0]===O?[]:[O];var E=x.indexOf(O),N=E>-1;return N?x.filter(function(I){return I!==O}):[].concat(ge(x),[O])})};mn(!c,"`children` will be removed in next major version. Please use `items` instead.");var $=kF(p,c,{prefixCls:r,accordion:s,openMotion:d,expandIcon:m,collapsible:u,destroyInactivePanel:i,onItemClick:S,activeKey:x});return f.createElement("div",{ref:t,className:b,style:a,role:s?"tablist":void 0},$)});const gh=Object.assign(FF,{Panel:$C});gh.Panel;const zF=f__namespace.forwardRef((e,t)=>{const{getPrefixCls:n}=f__namespace.useContext(ot),{prefixCls:r,className:o="",showArrow:i=!0}=e,a=n("collapse",r),s=U({[`${a}-no-arrow`]:!i},o);return f__namespace.createElement(gh.Panel,Object.assign({ref:t},e,{prefixCls:a,className:s}))}),jF=zF,HF=e=>{const{componentCls:t,collapseContentBg:n,padding:r,collapseContentPaddingHorizontal:o,collapseHeaderBg:i,collapseHeaderPadding:a,collapseHeaderPaddingSM:s,collapseHeaderPaddingLG:l,collapsePanelBorderRadius:c,lineWidth:u,lineType:d,colorBorder:m,colorText:h,colorTextHeading:v,colorTextDisabled:g,fontSize:p,fontSizeLG:b,lineHeight:y,marginSM:w,paddingSM:x,paddingLG:C,paddingXS:S,motionDurationSlow:$,fontSizeIcon:P}=e,O=`${u}px ${d} ${m}`;return {[t]:Object.assign(Object.assign({},Kt(e)),{backgroundColor:i,border:O,borderBottom:0,borderRadius:`${c}px`,["&-rtl"]:{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:O,["&: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:y,cursor:"pointer",transition:`all ${$}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:p*y,display:"flex",alignItems:"center",paddingInlineEnd:w,marginInlineStart:r-x},[`${t}-arrow`]:Object.assign(Object.assign({},ga()),{fontSize:P,svg:{transition:`transform ${$}`}}),[`${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:O,[`& > ${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*y,marginInlineStart:C-r}},[`> ${t}-content > ${t}-content-box`]:{padding:C}}},[`${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:w}}}}})}},BF=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow svg`;return {[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},WF=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}}}},VF=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}}}}}},GF=an("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 [HF(t),WF(t),VF(t),BF(t),sy(t)]}),UF=f__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=f__namespace.useContext(ot),{prefixCls:o,className:i,rootClassName:a,bordered:s=!0,ghost:l,size:c,expandIconPosition:u="start",children:d,expandIcon:m}=e,h=Or($=>{var P;return (P=c??$)!==null&&P!==void 0?P:"middle"}),v=n("collapse",o),g=n(),[p,b]=GF(v),y=f__namespace.useMemo(()=>u==="left"?"start":u==="right"?"end":u,[u]),w=function(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const P=m?m($):f__namespace.createElement(jy,{rotate:$.isActive?90:void 0});return Tn(P,()=>({className:U(P.props.className,`${v}-arrow`)}))},x=U(`${v}-icon-position-${y}`,{[`${v}-borderless`]:!s,[`${v}-rtl`]:r==="rtl",[`${v}-ghost`]:!!l,[`${v}-${h}`]:h!=="middle"},i,a,b),C=Object.assign(Object.assign({},oy(g)),{motionAppear:!1,leavedClassName:`${v}-content-hidden`}),S=f__namespace.useMemo(()=>ur(d).map(($,P)=>{var O,E;if(!((O=$.props)===null||O===void 0)&&O.disabled){const N=(E=$.key)!==null&&E!==void 0?E:String(P),{disabled:I,collapsible:R}=$.props,_=Object.assign(Object.assign({},Mn($.props,["disabled"])),{key:N,collapsible:R??(I?"disabled":void 0)});return Tn($,_)}return $}),[d]);return p(f__namespace.createElement(gh,Object.assign({ref:t,openMotion:C},Mn(e,["rootClassName"]),{expandIcon:w,prefixCls:v,className:x}),S))}),KF=Object.assign(UF,{Panel:jF});var XF=["v"],hc=function(e){mi(n,e);var t=hi(n);function n(r){return Cn(this,n),t.call(this,ZF(r))}return Sn(n,[{key:"toHsbString",value:function(){var o=this.toHsb(),i=oi(o.s*100),a=oi(o.b*100),s=oi(o.h),l=o.a,c="hsb(".concat(s,", ").concat(i,"%, ").concat(a,"%)"),u="hsba(".concat(s,", ").concat(i,"%, ").concat(a,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?c:u}},{key:"toHsb",value:function(){var o=this.toHsv();nt(this.originalInput)==="object"&&this.originalInput&&"h"in this.originalInput&&(o=this.originalInput);var i=o;i.v;var a=Ue(i,XF);return B(B({},a),{},{b:o.v})}}]),n}(Zt),qF=["b"],YF="rc-color-picker",oi=function(t){return Math.round(Number(t||0))},ZF=function(t){if(t&&nt(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,o=Ue(n,qF);return B(B({},o),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},Ro=function(t){return t instanceof hc?t:new hc(t)},QF=Ro("#1677ff"),xC=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,u=r.current.getBoundingClientRect(),d=u.width,m=u.height,h=d/2,v=m/2,g=(n.x+h)/l,p=1-(n.y+v)/c,b=i.toHsb(),y=g,w=(n.x+h)/l*360;if(a)switch(a){case"hue":return Ro(B(B({},b),{},{h:w<=0?0:w}));case"alpha":return Ro(B(B({},b),{},{a:y<=0?0:y}))}return Ro({h:b.h,s:g<=0?0:g,b:p>=1?1:p,a:b.a})},EC=function(t,n,r,o){var i=t.current.getBoundingClientRect(),a=i.width,s=i.height,l=n.current.getBoundingClientRect(),c=l.width,u=l.height,d=c/2,m=u/2,h=r.toHsb();if(!(c===0&&u===0||c!==u)){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}}},ph=function(t){var n=t.color,r=t.prefixCls,o=t.className,i=t.style,a=t.onClick,s="".concat(r,"-color-block");return f.createElement("div",{className:U(s,o),style:i,onClick:a},f.createElement("div",{className:"".concat(s,"-inner"),style:{background:n}}))};function JF(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 OC(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,u=f.useState(t||{x:0,y:0}),d=X(u,2),m=d[0],h=d[1],v=f.useRef(null),g=f.useRef(null),p=f.useRef({flag:!1});f.useEffect(function(){if(p.current.flag===!1){var C=s==null?void 0:s(r);C&&h(C);}},[l,r]),f.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 $=JF(S),P=$.pageX,O=$.pageY,E=r.current.getBoundingClientRect(),N=E.x,I=E.y,R=E.width,_=E.height,M=n.current.getBoundingClientRect(),A=M.width,T=M.height,D=A/2,L=T/2,z=Math.max(0,Math.min(P-N,R))-D,V=Math.max(0,Math.min(O-I,_))-L,F={x:z,y:o==="x"?m.y:V};if(A===0&&T===0||A!==T)return !1;h(F),i==null||i(F);},y=function(S){S.preventDefault(),b(S);},w=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",y),document.addEventListener("mouseup",w),document.addEventListener("touchmove",y),document.addEventListener("touchend",w),v.current=y,g.current=w);};return [m,x]}var PC=function(t){var n=t.size,r=n===void 0?"default":n,o=t.color,i=t.prefixCls;return f.createElement("div",{className:U("".concat(i,"-handler"),q({},"".concat(i,"-handler-sm"),r==="small")),style:{backgroundColor:o}})},_C=function(t){var n=t.children,r=t.style,o=t.prefixCls;return f.createElement("div",{className:"".concat(o,"-palette"),style:B({position:"relative"},r)},n)},IC=f.forwardRef(function(e,t){var n=e.children,r=e.offset;return f.createElement("div",{ref:t,style:{position:"absolute",left:r.x,top:r.y,zIndex:1}},n)}),ez=function(t){var n=t.color,r=t.onChange,o=t.prefixCls,i=t.onChangeComplete,a=t.disabled,s=f.useRef(),l=f.useRef(),c=OC({color:n,containerRef:s,targetRef:l,calculate:function(v){return EC(v,l,n)},onDragChange:function(v){return r(xC({offset:v,targetRef:l,containerRef:s,color:n}))},onDragChangeComplete:i,disabledDrag:a}),u=X(c,2),d=u[0],m=u[1];return f.createElement("div",{ref:s,className:"".concat(o,"-select"),onMouseDown:m,onTouchStart:m},f.createElement(_C,{prefixCls:o},f.createElement(IC,{offset:d,ref:l},f.createElement(PC,{color:n.toRgbString(),prefixCls:o})),f.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))"}})))},tz=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=f.useMemo(function(){return n.map(function(c,u){var d=Ro(c);return a==="alpha"&&u===n.length-1&&d.setAlpha(1),d.toRgbString()}).join(",")},[n,a]);return f.createElement("div",{className:"".concat(s,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(i,", ").concat(l,")")}},r)},lp=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,u=t.disabled,d=t.prefixCls,m=f.useRef(),h=f.useRef(),v=OC({color:a,targetRef:h,containerRef:m,calculate:function(w){return EC(w,h,a,i)},onDragChange:function(w){l(xC({offset:w,targetRef:h,containerRef:m,color:a,type:i}));},onDragChangeComplete:function(){c==null||c(i);},direction:"x",disabledDrag:u}),g=X(v,2),p=g[0],b=g[1];return f.createElement("div",{ref:m,className:U("".concat(d,"-slider"),"".concat(d,"-slider-").concat(i)),onMouseDown:b,onTouchStart:b},f.createElement(_C,{prefixCls:d},f.createElement(IC,{offset:p,ref:h},f.createElement(PC,{size:"small",color:s,prefixCls:d})),f.createElement(tz,{colors:n,direction:r,type:i,prefixCls:d})))};function cp(e){return e!==void 0}var nz=function(t,n){var r=n.defaultValue,o=n.value,i=f.useState(function(){var c;return cp(o)?c=o:cp(r)?c=r:c=t,Ro(c)}),a=X(i,2),s=a[0],l=a[1];return f.useEffect(function(){o&&l(Ro(o));},[o]),[s,l]},rz=["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 oz=f.forwardRef(function(e,t){var n=e.value,r=e.defaultValue,o=e.prefixCls,i=o===void 0?YF:o,a=e.onChange,s=e.onChangeComplete,l=e.className,c=e.style,u=e.panelRender,d=e.disabledAlpha,m=d===void 0?!1:d,h=e.disabled,v=h===void 0?!1:h,g=nz(QF,{value:n,defaultValue:r}),p=X(g,2),b=p[0],y=p[1],w=f.useMemo(function(){var P=Ro(b.toRgbString());return P.setAlpha(1),P.toRgbString()},[b]),x=U("".concat(i,"-panel"),l,q({},"".concat(i,"-panel-disabled"),v)),C={prefixCls:i,onChangeComplete:s,disabled:v},S=function(O,E){n||y(O),a==null||a(O,E);},$=f.createElement(f.Fragment,null,f.createElement(ez,pe({color:b,onChange:S},C)),f.createElement("div",{className:"".concat(i,"-slider-container")},f.createElement("div",{className:U("".concat(i,"-slider-group"),q({},"".concat(i,"-slider-group-disabled-alpha"),m))},f.createElement(lp,pe({gradientColors:rz,color:b,value:"hsl(".concat(b.toHsb().h,",100%, 50%)"),onChange:function(O){return S(O,"hue")}},C)),!m&&f.createElement(lp,pe({type:"alpha",gradientColors:["rgba(255, 0, 4, 0) 0%",w],color:b,value:b.toRgbString(),onChange:function(O){return S(O,"alpha")}},C))),f.createElement(ph,{color:b.toRgbString(),prefixCls:i})));return f.createElement("div",{className:x,style:c,ref:t},typeof u=="function"?u($):$)}),iz=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}}})}},az=an("Divider",e=>{const t=$t(e,{dividerVerticalGutterMargin:e.marginXS,dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG});return [iz(t)]},{sizePaddingEdgeHorizontal:0});var sz=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 lz=e=>{const{getPrefixCls:t,direction:n}=f__namespace.useContext(ot),{prefixCls:r,type:o="horizontal",orientation:i="center",orientationMargin:a,className:s,rootClassName:l,children:c,dashed:u,plain:d}=e,m=sz(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain"]),h=t("divider",r),[v,g]=az(h),p=i.length>0?`-${i}`:i,b=!!c,y=i==="left"&&a!=null,w=i==="right"&&a!=null,x=U(h,g,`${h}-${o}`,{[`${h}-with-text`]:b,[`${h}-with-text${p}`]:b,[`${h}-dashed`]:!!u,[`${h}-plain`]:!!d,[`${h}-rtl`]:n==="rtl",[`${h}-no-default-orientation-margin-left`]:y,[`${h}-no-default-orientation-margin-right`]:w},s,l),C=f__namespace.useMemo(()=>typeof a=="number"?a:/^\d+$/.test(a)?Number(a):a,[a]),S=Object.assign(Object.assign({},y&&{marginLeft:C}),w&&{marginRight:C});return v(f__namespace.createElement("div",Object.assign({className:x},m,{role:"separator"}),c&&o!=="vertical"&&f__namespace.createElement("span",{className:`${h}-inner-text`,style:S},c)))},cz=lz;let up=function(){function e(t){Cn(this,e),this.metaColor=new hc(t);}return Sn(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return fz(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 uz="ant-color-picker",Ln=e=>e instanceof up?e:new up(e),dz=e=>oi(e.toHsb().a*100),Ml=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/gi,"").slice(0,t?8:6))||"",fz=(e,t)=>e?Ml(e,t):"",mz=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=()=>{if(n){const i=n.toHsb();i.a=0;const a=Ln(i);r==null||r(a);}};return f.createElement("div",{className:`${t}-clear`,onClick:o})},RC=mz;var oo;(function(e){e.hex="hex",e.rgb="rgb",e.hsb="hsb";})(oo||(oo={}));var hz={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 vz=hz;var gz=function(t,n){return f__namespace.createElement(nr,pe({},t,{ref:n,icon:vz}))};const pz=f__namespace.forwardRef(gz);function Ff(){return typeof BigInt=="function"}function ii(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 bh(e){var t=String(e);return !Number.isNaN(Number(t))&&t.includes("e")}function Cs(e){var t=String(e);if(bh(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(".")&&yh(t)?t.length-t.indexOf(".")-1:0}function vu(e){var t=String(e);if(bh(e)){if(e>Number.MAX_SAFE_INTEGER)return String(Ff()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(Ff()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(Cs(t));}return ii(t).fullStr}function yh(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 MC(e){return !e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}var bz=function(){function e(t){if(Cn(this,e),q(this,"origin",""),q(this,"number",void 0),q(this,"empty",void 0),MC(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t);}return Sn(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(Cs(this.number),Cs(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()?"":vu(this.number):this.origin}}]),e}(),yz=function(){function e(t){if(Cn(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),MC(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(bh(n)&&(n=Number(n)),n=typeof n=="string"?n:vu(n),yh(n)){var r=ii(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 Sn(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=ii(s),c=l.negativeStr,u=l.trimStr,d="".concat(c).concat(u.padStart(o+1,"0"));return new e("".concat(d.slice(0,-o),".").concat(d.slice(-o)))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toString()===(n==null?void 0:n.toString())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":ii("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}();function hr(e){return Ff()?new yz(e):new bz(e)}function Tl(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return "";var o=ii(e),i=o.negativeStr,a=o.integerStr,s=o.decimalStr,l="".concat(t).concat(s),c="".concat(i).concat(a);if(n>=0){var u=Number(s[n]);if(u>=5&&!r){var d=hr(e).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-u));return Tl(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 Cz=function(){var t=f.useState(!1),n=X(t,2),r=n[0],o=n[1];return Ut(function(){o(iu());},[]),r},Sz=200,wz=600;function $z(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,o=e.upDisabled,i=e.downDisabled,a=e.onStep,s=f__namespace.useRef(),l=f__namespace.useRef();l.current=a;var c=function(b,y){b.preventDefault(),l.current(y);function w(){l.current(y),s.current=setTimeout(w,Sz);}s.current=setTimeout(w,wz);},u=function(){clearTimeout(s.current);};f__namespace.useEffect(function(){return u},[]);var d=Cz();if(d)return null;var m="".concat(t,"-handler"),h=U(m,"".concat(m,"-up"),q({},"".concat(m,"-up-disabled"),o)),v=U(m,"".concat(m,"-down"),q({},"".concat(m,"-down-disabled"),i)),g={unselectable:"on",role:"button",onMouseUp:u,onMouseLeave:u};return f__namespace.createElement("div",{className:"".concat(m,"-wrap")},f__namespace.createElement("span",pe({},g,{onMouseDown:function(b){c(b,!0);},"aria-label":"Increase Value","aria-disabled":o,className:h}),n||f__namespace.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),f__namespace.createElement("span",pe({},g,{onMouseDown:function(b){c(b,!1);},"aria-label":"Decrease Value","aria-disabled":i,className:v}),r||f__namespace.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function dp(e){var t=typeof e=="number"?vu(e):ii(e).fullStr,n=t.includes(".");return n?ii(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}function xz(e,t){var n=f.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,u=i.length;if(i.endsWith(l))u=i.length-n.current.afterTxt.length;else if(i.startsWith(s))u=s.length;else {var d=s[c-1],m=i.indexOf(d,c-1);m!==-1&&(u=m+1);}e.setSelectionRange(u,u);}catch(h){mn(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(h.message));}}return [r,o]}const Ez=function(){var e=f.useRef(0),t=function(){Nt.cancel(e.current);};return f.useEffect(function(){return t},[]),function(n){t(),e.current=Nt(function(){n();});}};var Oz=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],fp=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},mp=function(t){var n=hr(t);return n.isInvalidate()?null:n},TC=f__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,u=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,y=e.controls,w=y===void 0?!0:y,x=e.stringMode,C=e.parser,S=e.formatter,$=e.precision,P=e.decimalSeparator,O=e.onChange,E=e.onInput,N=e.onPressEnter,I=e.onStep,R=Ue(e,Oz),_="".concat(o,"-input"),M=f__namespace.useRef(null),A=f__namespace.useState(!1),T=X(A,2),D=T[0],L=T[1],z=f__namespace.useRef(!1),V=f__namespace.useRef(!1),F=f__namespace.useRef(!1),G=f__namespace.useState(function(){return hr(m??d)}),H=X(G,2),K=H[0],te=H[1];function Z(Ee){m===void 0&&te(Ee);}var Y=f__namespace.useCallback(function(Ee,Oe){if(!Oe)return $>=0?$:Math.max(Cs(Ee),Cs(u))},[$,u]),ee=f__namespace.useCallback(function(Ee){var Oe=String(Ee);if(C)return C(Oe);var je=Oe;return P&&(je=je.replace(P,".")),je.replace(/[^\w.-]+/g,"")},[C,P]),re=f__namespace.useRef(""),ae=f__namespace.useCallback(function(Ee,Oe){if(S)return S(Ee,{userTyping:Oe,input:String(re.current)});var je=typeof Ee=="number"?vu(Ee):Ee;if(!Oe){var Me=Y(je,Oe);if(yh(je)&&(P||Me>=0)){var Ze=P||".";je=Tl(je,Ze,Me);}}return je},[S,Y,P]),ce=f__namespace.useState(function(){var Ee=d??m;return K.isInvalidate()&&["string","number"].includes(nt(Ee))?Number.isNaN(Ee)?"":Ee:ae(K.toString(),!1)}),oe=X(ce,2),me=oe[0],ye=oe[1];re.current=me;function ue(Ee,Oe){ye(ae(Ee.isInvalidate()?Ee.toString(!1):Ee.toString(!Oe),Oe));}var he=f__namespace.useMemo(function(){return mp(l)},[l,$]),ne=f__namespace.useMemo(function(){return mp(s)},[s,$]),fe=f__namespace.useMemo(function(){return !he||!K||K.isInvalidate()?!1:he.lessEquals(K)},[he,K]),le=f__namespace.useMemo(function(){return !ne||!K||K.isInvalidate()?!1:K.lessEquals(ne)},[ne,K]),se=xz(M.current,D),Ie=X(se,2),_e=Ie[0],Le=Ie[1],Re=function(Oe){return he&&!Oe.lessEquals(he)?he:ne&&!ne.lessEquals(Oe)?ne:null},Ke=function(Oe){return !Re(Oe)},dt=function(Oe,je){var Me=Oe,Ze=Ke(Me)||Me.isEmpty();if(!Me.isEmpty()&&!je&&(Me=Re(Me)||Me,Ze=!0),!v&&!h&&Ze){var wt=Me.toString(),Lt=Y(wt,je);return Lt>=0&&(Me=hr(Tl(wt,".",Lt)),Ke(Me)||(Me=hr(Tl(wt,".",Lt,!0)))),Me.equals(K)||(Z(Me),O==null||O(Me.isEmpty()?null:fp(x,Me)),m===void 0&&ue(Me,je)),Me}return K},Je=Ez(),Ye=function Ee(Oe){if(_e(),ye(Oe),!V.current){var je=ee(Oe),Me=hr(je);Me.isNaN()||dt(Me,!0);}E==null||E(Oe),Je(function(){var Ze=Oe;C||(Ze=Oe.replace(/。/g,".")),Ze!==Oe&&Ee(Ze);});},ke=function(){V.current=!0;},ze=function(){V.current=!1,Ye(M.current.value);},ct=function(Oe){Ye(Oe.target.value);},it=function(Oe){var je;if(!(Oe&&fe||!Oe&&le)){z.current=!1;var Me=hr(F.current?dp(u):u);Oe||(Me=Me.negate());var Ze=(K||hr(0)).add(Me.toString()),wt=dt(Ze,!1);I==null||I(fp(x,wt),{offset:F.current?dp(u):u,type:Oe?"up":"down"}),(je=M.current)===null||je===void 0||je.focus();}},be=function(Oe){var je=hr(ee(me)),Me=je;je.isNaN()?Me=K:Me=dt(je,Oe),m!==void 0?ue(K,!1):Me.isNaN()||ue(Me,!1);},$e=function(){z.current=!0;},Xe=function(Oe){var je=Oe.which,Me=Oe.shiftKey;z.current=!0,Me?F.current=!0:F.current=!1,je===Q.ENTER&&(V.current||(z.current=!1),be(!1),N==null||N(Oe)),b!==!1&&!V.current&&[Q.UP,Q.DOWN].includes(je)&&(it(Q.UP===je),Oe.preventDefault());},We=function(){z.current=!1,F.current=!1;},ut=function(){be(!1),L(!1),z.current=!1;};return Vi(function(){K.isInvalidate()||ue(K,!1);},[$]),Vi(function(){var Ee=hr(m);te(Ee);var Oe=hr(ee(me));(!Ee.equals(Oe)||!z.current||S)&&ue(Ee,z.current);},[m]),Vi(function(){S&&Le();},[me]),f__namespace.createElement("div",{className:U(o,i,(n={},q(n,"".concat(o,"-focused"),D),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()&&!Ke(K)),n)),style:a,onFocus:function(){L(!0);},onBlur:ut,onKeyDown:Xe,onKeyUp:We,onCompositionStart:ke,onCompositionEnd:ze,onBeforeInput:$e},w&&f__namespace.createElement($z,{prefixCls:o,upNode:g,downNode:p,upDisabled:fe,downDisabled:le,onStep:it}),f__namespace.createElement("div",{className:"".concat(_,"-wrap")},f__namespace.createElement("input",pe({autoComplete:"off",role:"spinbutton","aria-valuemin":s,"aria-valuemax":l,"aria-valuenow":K.isInvalidate()?null:K.toString(),step:u},R,{ref:Fn(M,t),className:_,value:me,onChange:ct,disabled:h,readOnly:v}))))});TC.displayName="InputNumber";const Pz=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorBorder:o,borderRadius:i,fontSizeLG:a,controlHeightLG:s,controlHeightSM:l,colorError:c,inputPaddingHorizontalSM:u,colorTextDescription:d,motionDurationMid:m,colorPrimary:h,controlHeight:v,inputPaddingHorizontal:g,colorBgContainer:p,colorTextDisabled:b,borderRadiusSM:y,borderRadiusLG:w,controlWidth:x,handleVisible:C}=e;return [{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Kt(e)),mu(e)),fu(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:w,[`input${t}-input`]:{height:s-2*n}},"&-sm":{padding:0,borderRadius:y,[`input${t}-input`]:{height:l-2*n,padding:`0 ${u}px`}},"&:hover":Object.assign({},Vs(e)),"&-focused":Object.assign({},mc(e)),"&-disabled":Object.assign(Object.assign({},mh(e)),{[`${t}-input`]:{cursor:"not-allowed"}}),"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},Kt(e)),fC(e)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:w}},"&-sm":{[`${t}-group-addon`]:{borderRadius:y}}}}),[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"}),cC(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:C===!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({},ga()),{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}}}]},_z=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({},mu(e)),fu(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({},Vs(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":{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}}})}},Iz=an("InputNumber",e=>{const t=mC(e);return [Pz(t),_z(t),nu(t)]},e=>({controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:"auto"}));var Rz=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 NC=f__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=f__namespace.useContext(ot),[o,i]=f__namespace.useState(!1),a=f__namespace.useRef(null);f__namespace.useImperativeHandle(t,()=>a.current);const{className:s,rootClassName:l,size:c,disabled:u,prefixCls:d,addonBefore:m,addonAfter:h,prefix:v,bordered:g=!0,readOnly:p,status:b,controls:y}=e,w=Rz(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),x=n("input-number",d),[C,S]=Iz(x),{compactSize:$,compactItemClassnames:P}=ba(x,r);let O=f__namespace.createElement(pz,{className:`${x}-handler-up-inner`}),E=f__namespace.createElement(Py,{className:`${x}-handler-down-inner`});const N=typeof y=="boolean"?y:void 0;typeof y=="object"&&(O=typeof y.upIcon>"u"?O:f__namespace.createElement("span",{className:`${x}-handler-up-inner`},y.upIcon),E=typeof y.downIcon>"u"?E:f__namespace.createElement("span",{className:`${x}-handler-down-inner`},y.downIcon));const{hasFeedback:I,status:R,isFormItemInput:_,feedbackIcon:M}=f__namespace.useContext(Gr),A=su(R,b),T=Or(H=>{var K;return (K=$??c)!==null&&K!==void 0?K:H}),D=v!=null||I,L=!!(m||h),z=f__namespace.useContext(Do),V=u??z,F=U({[`${x}-lg`]:T==="large",[`${x}-sm`]:T==="small",[`${x}-rtl`]:r==="rtl",[`${x}-borderless`]:!g,[`${x}-in-form-item`]:_},uo(x,A),P,S,s,!D&&!L&&l);let G=f__namespace.createElement(TC,Object.assign({ref:a,disabled:V,className:F,upHandler:O,downHandler:E,prefixCls:x,readOnly:p,controls:N},w));if(D){const H=U(`${x}-affix-wrapper`,uo(`${x}-affix-wrapper`,A,I),{[`${x}-affix-wrapper-focused`]:o,[`${x}-affix-wrapper-disabled`]:e.disabled,[`${x}-affix-wrapper-sm`]:T==="small",[`${x}-affix-wrapper-lg`]:T==="large",[`${x}-affix-wrapper-rtl`]:r==="rtl",[`${x}-affix-wrapper-readonly`]:p,[`${x}-affix-wrapper-borderless`]:!g},!L&&s,!L&&l,S);G=f__namespace.createElement("div",{className:H,style:e.style,onMouseUp:()=>a.current.focus()},v&&f__namespace.createElement("span",{className:`${x}-prefix`},v),Tn(G,{style:null,value:e.value,onFocus:K=>{var te;i(!0),(te=e.onFocus)===null||te===void 0||te.call(e,K);},onBlur:K=>{var te;i(!1),(te=e.onBlur)===null||te===void 0||te.call(e,K);}}),I&&f__namespace.createElement("span",{className:`${x}-suffix`},M));}if(L){const H=`${x}-group`,K=`${H}-addon`,te=m?f__namespace.createElement("div",{className:K},m):null,Z=h?f__namespace.createElement("div",{className:K},h):null,Y=U(`${x}-wrapper`,H,S,{[`${H}-rtl`]:r==="rtl"}),ee=U(`${x}-group-wrapper`,{[`${x}-group-wrapper-sm`]:T==="small",[`${x}-group-wrapper-lg`]:T==="large",[`${x}-group-wrapper-rtl`]:r==="rtl"},uo(`${x}-group-wrapper`,A,I),S,s,l);G=f__namespace.createElement("div",{className:ee,style:e.style},f__namespace.createElement("div",{className:Y},te&&f__namespace.createElement(sa,null,f__namespace.createElement(tc,{status:!0,override:!0},te)),Tn(G,{style:null,disabled:V}),Z&&f__namespace.createElement(sa,null,f__namespace.createElement(tc,{status:!0,override:!0},Z))));}return C(G)}),AC=NC,Mz=e=>f__namespace.createElement(Lm,{theme:{components:{InputNumber:{handleVisible:!0}}}},f__namespace.createElement(NC,Object.assign({},e)));AC._InternalPanelDoNotUseOrYouWillBeFired=Mz;const zf=AC,Tz=e=>{let{prefixCls:t,min:n=0,max:r=100,value:o,onChange:i,className:a,formatter:s}=e;const l=`${t}-steppers`,[c,u]=f.useState(o);return f.useEffect(()=>{Number.isNaN(o)||u(o);},[o]),f.createElement(zf,{className:U(l,a),min:n,max:r,value:c,formatter:s,size:"small",onChange:d=>{o||u(d||0),i==null||i(d);}})},ai=Tz,Nz=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-alpha-input`,[i,a]=f.useState(Ln(n||"#000"));f.useEffect(()=>{n&&a(n);},[n]);const s=l=>{const c=i.toHsb();c.a=(l||0)/100;const u=Ln(c);n||a(u),r==null||r(u);};return f.createElement(ai,{value:dz(i),prefixCls:t,formatter:l=>`${l}%`,className:o,onChange:s})},Az=Nz,Dz=e=>{const{getPrefixCls:t,direction:n}=f.useContext(ot),{prefixCls:r,className:o=""}=e,i=t("input-group",r),a=t("input"),[s,l]=hh(a),c=U(i,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:n==="rtl"},l,o),u=f.useContext(Gr),d=f.useMemo(()=>Object.assign(Object.assign({},u),{isFormItemInput:!1}),[u]);return s(f__namespace.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},f__namespace.createElement(Gr.Provider,{value:d},e.children)))},kz=Dz;function Ai(e){return !!(e.addonBefore||e.addonAfter)}function md(e){return !!(e.prefix||e.suffix||e.allowClear)}function Ja(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 Lz(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 jf(e){return typeof e>"u"||e===null?"":String(e)}var DC=function(t){var n,r,o=t.inputElement,i=t.prefixCls,a=t.prefix,s=t.suffix,l=t.addonBefore,c=t.addonAfter,u=t.className,d=t.style,m=t.disabled,h=t.readOnly,v=t.focused,g=t.triggerFocus,p=t.allowClear,b=t.value,y=t.handleReset,w=t.hidden,x=t.classes,C=t.classNames,S=t.dataAttrs,$=t.styles,P=f.useRef(null),O=function(V){var F;(F=P.current)!==null&&F!==void 0&&F.contains(V.target)&&(g==null||g());},E=function(){var V;if(!p)return null;var F=!m&&!h&&b,G="".concat(i,"-clear-icon"),H=nt(p)==="object"&&p!==null&&p!==void 0&&p.clearIcon?p.clearIcon:"✖";return f.createElement("span",{onClick:y,onMouseDown:function(te){return te.preventDefault()},className:U(G,(V={},q(V,"".concat(G,"-hidden"),!F),q(V,"".concat(G,"-has-suffix"),!!s),V)),role:"button",tabIndex:-1},H)},N=f.cloneElement(o,{value:b,hidden:w,className:U((n=o.props)===null||n===void 0?void 0:n.className,!md(t)&&!Ai(t)&&u)||null,style:B(B({},(r=o.props)===null||r===void 0?void 0:r.style),!md(t)&&!Ai(t)?d:{})});if(md(t)){var I,R="".concat(i,"-affix-wrapper"),_=U(R,(I={},q(I,"".concat(R,"-disabled"),m),q(I,"".concat(R,"-focused"),v),q(I,"".concat(R,"-readonly"),h),q(I,"".concat(R,"-input-with-clear-btn"),s&&p&&b),I),!Ai(t)&&u,x==null?void 0:x.affixWrapper),M=(s||p)&&f.createElement("span",{className:U("".concat(i,"-suffix"),C==null?void 0:C.suffix),style:$==null?void 0:$.suffix},E(),s);N=f.createElement("span",pe({className:_,style:Ai(t)?void 0:d,hidden:!Ai(t)&&w,onClick:O},S==null?void 0:S.affixWrapper,{ref:P}),a&&f.createElement("span",{className:U("".concat(i,"-prefix"),C==null?void 0:C.prefix),style:$==null?void 0:$.prefix},a),f.cloneElement(o,{value:b,hidden:null}),M);}if(Ai(t)){var A="".concat(i,"-group"),T="".concat(A,"-addon"),D=U("".concat(i,"-wrapper"),A,x==null?void 0:x.wrapper),L=U("".concat(i,"-group-wrapper"),u,x==null?void 0:x.group);return f.createElement("span",{className:L,style:d,hidden:w},f.createElement("span",{className:D},l&&f.createElement("span",{className:T},l),f.cloneElement(N,{hidden:null}),c&&f.createElement("span",{className:T},c)))}return N},Fz=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],zz=f.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,u=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,y=e.classes,w=e.classNames,x=e.styles,C=Ue(e,Fz),S=Qt(e.defaultValue,{value:e.value}),$=X(S,2),P=$[0],O=$[1],E=f.useState(!1),N=X(E,2),I=N[0],R=N[1],_=f.useRef(null),M=function(H){_.current&&Lz(_.current,H);};f.useImperativeHandle(t,function(){return {focus:M,blur:function(){var H;(H=_.current)===null||H===void 0||H.blur();},setSelectionRange:function(H,K,te){var Z;(Z=_.current)===null||Z===void 0||Z.setSelectionRange(H,K,te);},select:function(){var H;(H=_.current)===null||H===void 0||H.select();},input:_.current}}),f.useEffect(function(){R(function(G){return G&&u?!1:G});},[u]);var A=function(H){e.value===void 0&&O(H.target.value),_.current&&Ja(_.current,H,r);},T=function(H){a&&H.key==="Enter"&&a(H),s==null||s(H);},D=function(H){R(!0),o==null||o(H);},L=function(H){R(!1),i==null||i(H);},z=function(H){O(""),M(),_.current&&Ja(_.current,H,r);},V=function(){var H=Mn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return f.createElement("input",pe({autoComplete:n},H,{onChange:A,onFocus:D,onBlur:L,onKeyDown:T,className:U(c,q({},"".concat(c,"-disabled"),u),w==null?void 0:w.input),style:x==null?void 0:x.input,ref:_,size:d,type:b}))},F=function(){var H=Number(h)>0;if(v||g){var K=jf(P),te=ge(K).length,Z=nt(g)==="object"?g.formatter({value:K,count:te,maxLength:h}):"".concat(te).concat(H?" / ".concat(h):"");return f.createElement(f.Fragment,null,!!g&&f.createElement("span",{className:U("".concat(c,"-show-count-suffix"),q({},"".concat(c,"-show-count-has-suffix"),!!v),w==null?void 0:w.count),style:B({},x==null?void 0:x.count)},Z),v)}return null};return f.createElement(DC,pe({},C,{prefixCls:c,className:m,inputElement:V(),handleReset:z,value:jf(P),focused:I,triggerFocus:M,suffix:F(),disabled:u,classes:y,classNames:w,styles:x}))});function kC(e,t){const n=f.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 f.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o);})),[]),r}function jz(e){return !!(e.prefix||e.suffix||e.allowClear)}var Hz=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 Bz(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 Wz=f.forwardRef((e,t)=>{const{prefixCls:n,bordered:r=!0,status:o,size:i,disabled:a,onBlur:s,onFocus:l,suffix:c,allowClear:u,addonAfter:d,addonBefore:m,className:h,rootClassName:v,onChange:g,classNames:p}=e,b=Hz(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","rootClassName","onChange","classNames"]),{getPrefixCls:y,direction:w,input:x}=f.useContext(ot),C=y("input",n),S=f.useRef(null),[$,P]=hh(C),{compactSize:O,compactItemClassnames:E}=ba(C,w),N=Or(te=>{var Z;return (Z=O??i)!==null&&Z!==void 0?Z:te}),I=f.useContext(Do),R=a??I,{status:_,hasFeedback:M,feedbackIcon:A}=f.useContext(Gr),T=su(_,o),D=jz(e)||!!M,L=f.useRef(D);f.useEffect(()=>{D&&L.current,L.current=D;},[D]);const z=kC(S,!0),V=te=>{z(),s==null||s(te);},F=te=>{z(),l==null||l(te);},G=te=>{z(),g==null||g(te);},H=(M||c)&&f.createElement(f.Fragment,null,c,M&&A);let K;return typeof u=="object"&&(u!=null&&u.clearIcon)?K=u:u&&(K={clearIcon:f.createElement(zm,null)}),$(f.createElement(zz,Object.assign({ref:Fn(t,S),prefixCls:C,autoComplete:x==null?void 0:x.autoComplete},b,{disabled:R,onBlur:V,onFocus:F,suffix:H,allowClear:K,className:U(h,v,E),onChange:G,addonAfter:d&&f.createElement(sa,null,f.createElement(tc,{override:!0,status:!0},d)),addonBefore:m&&f.createElement(sa,null,f.createElement(tc,{override:!0,status:!0},m)),classNames:Object.assign(Object.assign({},p),{input:U({[`${C}-sm`]:N==="small",[`${C}-lg`]:N==="large",[`${C}-rtl`]:w==="rtl",[`${C}-borderless`]:!r},!D&&uo(C,T),p==null?void 0:p.input,P)}),classes:{affixWrapper:U({[`${C}-affix-wrapper-sm`]:N==="small",[`${C}-affix-wrapper-lg`]:N==="large",[`${C}-affix-wrapper-rtl`]:w==="rtl",[`${C}-affix-wrapper-borderless`]:!r},uo(`${C}-affix-wrapper`,T,M),P),wrapper:U({[`${C}-group-rtl`]:w==="rtl"},P),group:U({[`${C}-group-wrapper-sm`]:N==="small",[`${C}-group-wrapper-lg`]:N==="large",[`${C}-group-wrapper-rtl`]:w==="rtl",[`${C}-group-wrapper-disabled`]:R},uo(`${C}-group-wrapper`,T,M),P)}})))}),Ch=Wz;var Vz={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 Gz=Vz;var Uz=function(t,n){return f__namespace.createElement(nr,pe({},t,{ref:n,icon:Gz}))};const Kz=f__namespace.forwardRef(Uz);var Xz={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 qz=Xz;var Yz=function(t,n){return f__namespace.createElement(nr,pe({},t,{ref:n,icon:qz}))};const Zz=f__namespace.forwardRef(Yz);var Qz=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 Jz=e=>e?f__namespace.createElement(Zz,null):f__namespace.createElement(Kz,null),e3={click:"onClick",hover:"onMouseOver"},t3=f__namespace.forwardRef((e,t)=>{const{visibilityToggle:n=!0}=e,r=typeof n=="object"&&n.visible!==void 0,[o,i]=f.useState(()=>r?n.visible:!1),a=f.useRef(null);f__namespace.useEffect(()=>{r&&i(n.visible);},[r,n]);const s=kC(a),l=()=>{const{disabled:C}=e;C||(o&&s(),i(S=>{var $;const P=!S;return typeof n=="object"&&(($=n.onVisibleChange)===null||$===void 0||$.call(n,P)),P}));},c=C=>{const{action:S="click",iconRender:$=Jz}=e,P=e3[S]||"",O=$(o),E={[P]:l,className:`${C}-icon`,key:"passwordIcon",onMouseDown:N=>{N.preventDefault();},onMouseUp:N=>{N.preventDefault();}};return f__namespace.cloneElement(f__namespace.isValidElement(O)?O:f__namespace.createElement("span",null,O),E)},{className:u,prefixCls:d,inputPrefixCls:m,size:h}=e,v=Qz(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:g}=f__namespace.useContext(ot),p=g("input",m),b=g("input-password",d),y=n&&c(b),w=U(b,u,{[`${b}-${h}`]:!!h}),x=Object.assign(Object.assign({},Mn(v,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:w,prefixCls:p,suffix:y});return h&&(x.size=h),f__namespace.createElement(Ch,Object.assign({ref:Fn(t,a)},x))}),n3=t3;var r3=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 o3=f__namespace.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:i,suffix:a,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:d,onChange:m,onCompositionStart:h,onCompositionEnd:v}=e,g=r3(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:p,direction:b}=f__namespace.useContext(ot),y=f__namespace.useRef(!1),w=p("input-search",n),x=p("input",r),{compactSize:C}=ba(w,b),S=Or(z=>{var V;return (V=C??i)!==null&&V!==void 0?V:z}),$=f__namespace.useRef(null),P=z=>{z&&z.target&&z.type==="click"&&d&&d(z.target.value,z),m&&m(z);},O=z=>{var V;document.activeElement===((V=$.current)===null||V===void 0?void 0:V.input)&&z.preventDefault();},E=z=>{var V,F;d&&d((F=(V=$.current)===null||V===void 0?void 0:V.input)===null||F===void 0?void 0:F.value,z);},N=z=>{y.current||c||E(z);},I=typeof s=="boolean"?f__namespace.createElement(_y,null):null,R=`${w}-button`;let _;const M=s||{},A=M.type&&M.type.__ANT_BUTTON===!0;A||M.type==="button"?_=Tn(M,Object.assign({onMouseDown:O,onClick:z=>{var V,F;(F=(V=M==null?void 0:M.props)===null||V===void 0?void 0:V.onClick)===null||F===void 0||F.call(V,z),E(z);},key:"enterButton"},A?{className:R,size:S}:{})):_=f__namespace.createElement(_n,{className:R,type:s?"primary":void 0,size:S,disabled:u,key:"enterButton",onMouseDown:O,onClick:E,loading:c,icon:I},s),l&&(_=[_,Tn(l,{key:"addonAfter"})]);const T=U(w,{[`${w}-rtl`]:b==="rtl",[`${w}-${S}`]:!!S,[`${w}-with-button`]:!!s},o),D=z=>{y.current=!0,h==null||h(z);},L=z=>{y.current=!1,v==null||v(z);};return f__namespace.createElement(Ch,Object.assign({ref:Fn($,t),onPressEnter:N},g,{size:S,onCompositionStart:D,onCompositionEnd:L,prefixCls:x,addonAfter:_,suffix:a,onChange:P,className:T,disabled:u}))}),i3=o3;var a3=`
  min-height:0 !important;
  max-height:none !important;
  height:0 !important;
  visibility:hidden !important;
  overflow:hidden !important;
  position:absolute !important;
  z-index:-1000 !important;
  top:0 !important;
  right:0 !important;
  pointer-events: none !important;
`,s3=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],hd={},sr;function l3(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&&hd[n])return hd[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=s3.map(function(c){return "".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(hd[n]=l),l}function c3(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;sr||(sr=document.createElement("textarea"),sr.setAttribute("tab-index","-1"),sr.setAttribute("aria-hidden","true"),document.body.appendChild(sr)),e.getAttribute("wrap")?sr.setAttribute("wrap",e.getAttribute("wrap")):sr.removeAttribute("wrap");var o=l3(e,t),i=o.paddingSize,a=o.borderSize,s=o.boxSizing,l=o.sizingStyle;sr.setAttribute("style","".concat(l,";").concat(a3)),sr.value=e.value||e.placeholder||"";var c=void 0,u=void 0,d,m=sr.scrollHeight;if(s==="border-box"?m+=a:s==="content-box"&&(m-=i),n!==null||r!==null){sr.value=" ";var h=sr.scrollHeight-i;n!==null&&(c=h*n,s==="border-box"&&(c=c+i+a),m=Math.max(c,m)),r!==null&&(u=h*r,s==="border-box"&&(u=u+i+a),d=m>u?"":"hidden",m=Math.min(u,m));}var v={height:m,overflowY:d,resize:"none"};return c&&(v.minHeight=c),u&&(v.maxHeight=u),v}var u3=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],vd=0,gd=1,pd=2,d3=f__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,u=n.disabled,d=n.onChange;n.onInternalAutoSize;var m=Ue(n,u3),h=Qt(o,{value:i,postState:function(H){return H??""}}),v=X(h,2),g=v[0],p=v[1],b=function(H){p(H.target.value),d==null||d(H);},y=f__namespace.useRef();f__namespace.useImperativeHandle(t,function(){return {textArea:y.current}});var w=f__namespace.useMemo(function(){return a&&nt(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),x=X(w,2),C=x[0],S=x[1],$=!!a,P=function(){try{if(document.activeElement===y.current){var H=y.current,K=H.selectionStart,te=H.selectionEnd,Z=H.scrollTop;y.current.setSelectionRange(K,te),y.current.scrollTop=Z;}}catch{}},O=f__namespace.useState(pd),E=X(O,2),N=E[0],I=E[1],R=f__namespace.useState(),_=X(R,2),M=_[0],A=_[1],T=function(){I(vd);};Ut(function(){$&&T();},[i,C,S,$]),Ut(function(){if(N===vd)I(gd);else if(N===gd){var G=c3(y.current,!1,C,S);I(pd),A(G);}else P();},[N]);var D=f__namespace.useRef(),L=function(){Nt.cancel(D.current);},z=function(H){N===pd&&(s==null||s(H),a&&(L(),D.current=Nt(function(){T();})));};f__namespace.useEffect(function(){return L},[]);var V=$?M:null,F=B(B({},c),V);return (N===vd||N===gd)&&(F.overflowY="hidden",F.overflowX="hidden"),f__namespace.createElement(mo,{onResize:z,disabled:!(a||s)},f__namespace.createElement("textarea",pe({},m,{ref:y,style:F,className:U(r,l,q({},"".concat(r,"-disabled"),u)),disabled:u,value:g,onChange:b})))}),f3=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles"];function LC(e,t){return ge(e||"").slice(0,t).join("")}function hp(e,t,n,r){var o=n;return e?o=LC(n,r):ge(t||"").length<n.length&&ge(n||"").length>r&&(o=t),o}var m3=f.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,u=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,y=e.style,w=e.disabled,x=e.hidden,C=e.classNames,S=e.styles,$=Ue(e,f3),P=Qt(r,{value:o,defaultValue:r}),O=X(P,2),E=O[0],N=O[1],I=f.useRef(null),R=f.useState(!1),_=X(R,2),M=_[0],A=_[1],T=f.useState(!1),D=X(T,2),L=D[0],z=D[1],V=f.useRef(),F=f.useRef(0),G=function(){I.current.textArea.focus();};f.useImperativeHandle(t,function(){return {resizableTextArea:I.current,focus:G,blur:function(){I.current.textArea.blur();}}}),f.useEffect(function(){A(function(he){return !w&&he});},[w]);var H=Number(c)>0,K=function(ne){z(!0),V.current=E,F.current=ne.currentTarget.selectionStart,u==null||u(ne);},te=function(ne){z(!1);var fe=ne.currentTarget.value;if(H){var le,se=F.current>=c+1||F.current===((le=V.current)===null||le===void 0?void 0:le.length);fe=hp(se,V.current,fe,c);}fe!==E&&(N(fe),Ja(ne.currentTarget,ne,s,fe)),d==null||d(ne);},Z=function(ne){var fe=ne.target.value;if(!L&&H){var le=ne.target.selectionStart>=c+1||ne.target.selectionStart===fe.length||!ne.target.selectionStart;fe=hp(le,E,fe,c);}N(fe),Ja(ne.currentTarget,ne,s,fe);},Y=function(ne){var fe=$.onPressEnter,le=$.onKeyDown;ne.key==="Enter"&&fe&&fe(ne),le==null||le(ne);},ee=function(ne){A(!0),i==null||i(ne);},re=function(ne){A(!1),a==null||a(ne);},ae=function(ne){N(""),G(),Ja(I.current.textArea,ne,s);},ce=jf(E);!L&&H&&o==null&&(ce=LC(ce,c));var oe=m,me;if(p){var ye=ge(ce).length;nt(p)==="object"?me=p.formatter({value:ce,count:ye,maxLength:c}):me="".concat(ye).concat(H?" / ".concat(c):""),oe=f.createElement(f.Fragment,null,oe,f.createElement("span",{className:U("".concat(v,"-data-count"),C==null?void 0:C.count),style:S==null?void 0:S.count},me));}var ue=f.createElement(DC,{value:ce,allowClear:l,handleReset:ae,suffix:oe,prefixCls:v,classes:{affixWrapper:U(g==null?void 0:g.affixWrapper,(n={},q(n,"".concat(v,"-show-count"),p),q(n,"".concat(v,"-textarea-allow-clear"),l),n))},disabled:w,focused:M,className:b,style:y,dataAttrs:{affixWrapper:{"data-count":typeof me=="string"?me:void 0}},hidden:x,inputElement:f.createElement(d3,pe({},$,{onKeyDown:Y,onChange:Z,onFocus:ee,onBlur:re,onCompositionStart:K,onCompositionEnd:te,className:C==null?void 0:C.textarea,style:B(B({},S==null?void 0:S.textarea),{},{resize:y==null?void 0:y.resize}),disabled:w,prefixCls:v,ref:I}))});return ue}),h3=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const v3=f.forwardRef((e,t)=>{var{prefixCls:n,bordered:r=!0,size:o,disabled:i,status:a,allowClear:s,showCount:l,classNames:c}=e,u=h3(e,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames"]);const{getPrefixCls:d,direction:m}=f__namespace.useContext(ot),h=Or(o),v=f__namespace.useContext(Do),g=i??v,{status:p,hasFeedback:b,feedbackIcon:y}=f__namespace.useContext(Gr),w=su(p,a),x=f__namespace.useRef(null);f__namespace.useImperativeHandle(t,()=>{var O;return {resizableTextArea:(O=x.current)===null||O===void 0?void 0:O.resizableTextArea,focus:E=>{var N,I;Bz((I=(N=x.current)===null||N===void 0?void 0:N.resizableTextArea)===null||I===void 0?void 0:I.textArea,E);},blur:()=>{var E;return (E=x.current)===null||E===void 0?void 0:E.blur()}}});const C=d("input",n);let S;typeof s=="object"&&(s!=null&&s.clearIcon)?S=s:s&&(S={clearIcon:f__namespace.createElement(zm,null)});const[$,P]=hh(C);return $(f__namespace.createElement(m3,Object.assign({},u,{disabled:g,allowClear:S,classes:{affixWrapper:U(`${C}-textarea-affix-wrapper`,{[`${C}-affix-wrapper-rtl`]:m==="rtl",[`${C}-affix-wrapper-borderless`]:!r,[`${C}-affix-wrapper-sm`]:h==="small",[`${C}-affix-wrapper-lg`]:h==="large",[`${C}-textarea-show-count`]:l},uo(`${C}-affix-wrapper`,w),P)},classNames:Object.assign(Object.assign({},c),{textarea:U({[`${C}-borderless`]:!r,[`${C}-sm`]:h==="small",[`${C}-lg`]:h==="large"},uo(C,w),P,c==null?void 0:c.textarea)}),prefixCls:C,suffix:b&&f__namespace.createElement("span",{className:`${C}-textarea-suffix`},y),showCount:l,ref:x})))}),g3=v3,Gs=Ch;Gs.Group=kz;Gs.Search=i3;Gs.TextArea=g3;Gs.Password=n3;const p3=Gs,b3=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,vp=e=>b3.test(`#${e}`),y3=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-hex-input`,[i,a]=f.useState(n==null?void 0:n.toHex());f.useEffect(()=>{const l=n==null?void 0:n.toHex();vp(l)&&n&&a(Ml(l));},[n]);const s=l=>{const c=l.target.value;a(Ml(c)),vp(Ml(c,!0))&&(r==null||r(Ln(c)));};return f.createElement(p3,{className:o,value:i==null?void 0:i.toUpperCase(),prefix:"#",onChange:s,size:"small"})},C3=y3,S3=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-hsb-input`,[i,a]=f.useState(Ln(n||"#000"));f.useEffect(()=>{n&&a(n);},[n]);const s=(l,c)=>{const u=i.toHsb();u[c]=c==="h"?l:(l||0)/100;const d=Ln(u);n||a(d),r==null||r(d);};return f.createElement("div",{className:o},f.createElement(ai,{max:360,min:0,value:Number(i.toHsb().h),prefixCls:t,className:o,formatter:l=>oi(l||0).toString(),onChange:l=>s(Number(l),"h")}),f.createElement(ai,{max:100,min:0,value:Number(i.toHsb().s)*100,prefixCls:t,className:o,formatter:l=>`${oi(l||0)}%`,onChange:l=>s(Number(l),"s")}),f.createElement(ai,{max:100,min:0,value:Number(i.toHsb().b)*100,prefixCls:t,className:o,formatter:l=>`${oi(l||0)}%`,onChange:l=>s(Number(l),"b")}))},w3=S3,$3=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-rgb-input`,[i,a]=f.useState(Ln(n||"#000"));f.useEffect(()=>{n&&a(n);},[n]);const s=(l,c)=>{const u=i.toRgb();u[c]=l||0;const d=Ln(u);n||a(d),r==null||r(d);};return f.createElement("div",{className:o},f.createElement(ai,{max:255,min:0,value:Number(i.toRgb().r),prefixCls:t,className:o,onChange:l=>s(Number(l),"r")}),f.createElement(ai,{max:255,min:0,value:Number(i.toRgb().g),prefixCls:t,className:o,onChange:l=>s(Number(l),"g")}),f.createElement(ai,{max:255,min:0,value:Number(i.toRgb().b),prefixCls:t,className:o,onChange:l=>s(Number(l),"b")}))},x3=$3,E3=[oo.hex,oo.hsb,oo.rgb].map(e=>({value:e,label:e.toLocaleUpperCase()})),O3=e=>{const{prefixCls:t,format:n,value:r,onFormatChange:o,onChange:i}=e,[a,s]=Qt(oo.hex,{value:n,onChange:o}),l=`${t}-input`,c=d=>{s(d);},u=f.useMemo(()=>{const d={value:r,prefixCls:t,onChange:i};switch(a){case oo.hsb:return f.createElement(w3,Object.assign({},d));case oo.rgb:return f.createElement(x3,Object.assign({},d));case oo.hex:default:return f.createElement(C3,Object.assign({},d))}},[a,t,r,i]);return f.createElement("div",{className:`${l}-container`},f.createElement(aD,{value:a,bordered:!1,getPopupContainer:d=>d,popupMatchSelectWidth:68,placement:"bottomRight",onChange:c,className:`${t}-format-select`,size:"small",options:E3}),f.createElement("div",{className:l},u),f.createElement(Az,{prefixCls:t,value:r,onChange:i}))},P3=O3,bd=e=>e.map(t=>(t.colors=t.colors.map(Ln),t)),_3=(e,t)=>{const{r:n,g:r,b:o,a:i}=e.toRgb(),a=new hc(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:n*.299+r*.587+o*.114>192},I3=e=>{let{prefixCls:t,presets:n,value:r,onChange:o}=e;const[i]=Am("ColorPicker"),{token:{colorBgElevated:a}}=ca.useToken(),[s]=Qt(bd(n),{value:bd(n),postState:bd}),l=`${t}-presets`,c=f.useMemo(()=>s.map(m=>`panel-${m.label}`),[s]),u=m=>{o==null||o(m);},d=f.useMemo(()=>s.map(m=>{var h;return {key:`panel-${m.label}`,label:f.createElement("div",{className:`${l}-label`},m==null?void 0:m.label),children:f.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=>f.createElement(ph,{key:`preset-${v.toHexString()}`,color:Ln(v).toRgbString(),prefixCls:t,className:U(`${l}-color`,{[`${l}-color-checked`]:v.toHexString()===(r==null?void 0:r.toHexString()),[`${l}-color-bright`]:_3(v,a)}),onClick:()=>u(v)})):f.createElement("span",{className:`${l}-empty`},i.presetEmpty))}}),[]);return f.createElement("div",{className:l},f.createElement(KF,{defaultActiveKey:c,ghost:!0,items:d}))},R3=I3;var M3=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 T3=e=>{const{prefixCls:t,allowClear:n,presets:r,onChange:o,onClear:i,onChangeComplete:a,color:s}=e,l=M3(e,["prefixCls","allowClear","presets","onChange","onClear","onChangeComplete","color"]),c=`${t}-inner-panel`,u=d=>f.createElement("div",{className:c},n&&f.createElement(RC,Object.assign({prefixCls:t,value:s,onChange:m=>{o==null||o(m),i==null||i();}},l)),d,f.createElement(P3,Object.assign({value:s,onChange:o,prefixCls:t},l)),Array.isArray(r)&&f.createElement(f.Fragment,null,f.createElement(cz,{className:`${c}-divider`}),f.createElement(R3,{value:s,presets:r,prefixCls:t,onChange:o})));return f.createElement(oz,{prefixCls:t,value:s==null?void 0:s.toHsb(),onChange:(d,m)=>o==null?void 0:o(d,m,!0),panelRender:u,onChangeComplete:a})},N3=T3;var A3=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 D3=f.forwardRef((e,t)=>{const{color:n,prefixCls:r,open:o,colorCleared:i,disabled:a,className:s}=e,l=A3(e,["color","prefixCls","open","colorCleared","disabled","className"]),c=`${r}-trigger`,u=f.useMemo(()=>i?f.createElement(RC,{prefixCls:r}):f.createElement(ph,{prefixCls:r,color:n.toRgbString()}),[n,i,r]);return f.createElement("div",Object.assign({ref:t,className:U(c,s,{[`${c}-active`]:o,[`${c}-disabled`]:a})},l),u)}),k3=D3;function gp(e){return e!==void 0}const L3=(e,t)=>{const{defaultValue:n,value:r}=t,[o,i]=f.useState(()=>{let a;return gp(r)?a=r:gp(n)?a=n:a=e,Ln(a||"")});return f.useEffect(()=>{r&&i(Ln(r));},[r]),[o,i]},F3=L3,FC=(e,t)=>({backgroundImage:`conic-gradient(${t} 0 25%, transparent 0 50%, ${t} 0 75%, transparent 0)`,backgroundSize:`${e} ${e}`}),z3=(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},FC("50%",e.colorFillSecondary)),{[`${n}-color-block-inner`]:{width:"100%",height:"100%",border:`${i}px solid ${a}`,borderRadius:"inherit"}})}},zC=z3,j3=e=>{const{componentCls:t,antCls:n,fontSizeSM:r,lineHeightSM:o,colorPickerAlphaInputWidth:i,marginXXS:a,paddingXXS:s,controlHeightSM:l,marginXS:c,fontSizeIcon:u,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:u+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}}}}}},H3=j3,B3=e=>{const{componentCls:t,controlHeightLG:n,borderRadiusSM:r,colorPickerInsetShadow:o,marginSM:i,colorBgElevated:a,colorFillSecondary:s,lineWidthBold:l,colorPickerHandlerSize:c,colorPickerHandlerSizeSM:u,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:u,height:u}},[`${t}-slider`]:{borderRadius:d/2,[`${t}-palette`]:{height:d},[`${t}-gradient`]:{borderRadius:d/2,boxShadow:o},"&-alpha":FC(`${d}px`,e.colorFillSecondary),marginBottom:i},[`${t}-slider-container`]:{display:"flex",gap:i,[`${t}-slider-group`]:{flex:1}}},zC(e,m))},W3=B3,V3=e=>{const{componentCls:t,antCls:n,colorTextQuaternary:r,paddingXXS:o,colorPickerPresetColorSize:i,fontSizeSM:a,colorText:s,lineHeightSM:l,lineWidth:c,borderRadius:u,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:u,border:`${c}px solid transparent`,transition:`border-color ${e.motionDurationMid} ${e.motionEaseInBack}`},"&:hover::before":{borderColor:d},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"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}}}},G3=V3,U3=e=>({boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),K3=e=>{const{componentCls:t}=e;return {"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},pp=(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}}}},X3=e=>{const{componentCls:t,colorPickerWidth:n,colorPrimary:r,motionDurationMid:o,colorBgElevated:i,colorTextDisabled:a,colorBgContainerDisabled:s,borderRadius:l,marginXS:c,marginSM:u,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:`${u}px 0 ${c}px`}}},W3(e)),H3(e)),G3(e)),pp(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({},U3(e)),{borderColor:r}),"&:hover":{borderColor:r},"&-disabled":{color:a,background:s,cursor:"not-allowed","&:hover":{borderColor:h}}},pp(e,m)),zC(e,m))},K3(e))}]},q3=an("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 [X3(o)]}),Sh=e=>{const{value:t,defaultValue:n,format:r,allowClear:o=!1,presets:i,children:a,trigger:s="click",open:l,disabled:c,placement:u="bottomLeft",arrow:d=!0,style:m,className:h,rootClassName:v,styles:g,onFormatChange:p,onChange:b,onClear:y,onOpenChange:w,getPopupContainer:x,autoAdjustOverflow:C=!0}=e,{getPrefixCls:S,direction:$}=f.useContext(ot),{token:P}=ca.useToken(),[O,E]=F3(P.colorPrimary,{value:t,defaultValue:n}),[N,I]=Qt(!1,{value:l,postState:Y=>!c&&Y,onChange:w}),[R,_]=f.useState(!1),M=S("color-picker",uz),[A,T]=q3(M),D={[`${M}-rtl`]:$},L=U(v,D),z=U(L,h,T),V=U(M,D),F=f.useRef(!0),G=(Y,ee,re)=>{let ae=Ln(Y);if(R){_(!1);const ce=ae.toHsb();O.toHsb().a===0&&ee!=="alpha"&&(ce.a=1,ae=Ln(ce));}t||E(ae),re&&(F.current=!1),b==null||b(ae,ae.toHexString());},H=()=>{_(!0),y==null||y();},K=()=>{F.current=!0;},te={open:N,trigger:s,placement:u,arrow:d,rootClassName:v,getPopupContainer:x,autoAdjustOverflow:C},Z={prefixCls:M,color:O,allowClear:o,colorCleared:R,disabled:c,presets:i,format:r,onFormatChange:p};return A(f.createElement(zy,Object.assign({style:g==null?void 0:g.popup,onOpenChange:Y=>{F.current&&I(Y);},content:f.createElement(N3,Object.assign({},Z,{onChange:G,onChangeComplete:K,onClear:H})),overlayClassName:V},te),a||f.createElement(k3,{open:N,className:z,style:m,color:O,prefixCls:M,disabled:c,colorCleared:R})))},Y3=Ym(Sh,"color-picker",e=>e,e=>Object.assign(Object.assign({},e),{placement:"bottom",autoAdjustOverflow:!1}));Sh._InternalPanelDoNotUseOrYouWillBeFired=Y3;const Z3=Sh,jC=f.createContext({latestIndex:0,horizontalSize:0,verticalSize:0,supportFlexGap:!1}),Q3=jC.Provider;function J3(e){let{className:t,direction:n,index:r,marginDirection:o,children:i,split:a,wrap:s,style:l}=e;const{horizontalSize:c,verticalSize:u,latestIndex:d,supportFlexGap:m}=f__namespace.useContext(jC);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:u})),i==null?null:f__namespace.createElement(f__namespace.Fragment,null,f__namespace.createElement("div",{className:t,style:Object.assign(Object.assign({},h),l)},i),r<d&&a&&f__namespace.createElement("span",{className:`${t}-split`,style:h},a))}var e5=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 t5={small:8,middle:16,large:24};function n5(e){return typeof e=="string"?t5[e]:e||0}const r5=f__namespace.forwardRef((e,t)=>{var n,r;const{getPrefixCls:o,space:i,direction:a}=f__namespace.useContext(ot),{size:s=(i==null?void 0:i.size)||"small",align:l,className:c,rootClassName:u,children:d,direction:m="horizontal",prefixCls:h,split:v,style:g,wrap:p=!1,classNames:b,styles:y}=e,w=e5(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),x=MF(),[C,S]=f__namespace.useMemo(()=>(Array.isArray(s)?s:[s,s]).map(L=>n5(L)),[s]),$=ur(d,{keepEmpty:!0}),P=l===void 0&&m==="horizontal"?"center":l,O=o("space",h),[E,N]=Z0(O),I=U(O,N,`${O}-${m}`,{[`${O}-rtl`]:a==="rtl",[`${O}-align-${P}`]:P},c??(i==null?void 0:i.className),u),R=U(`${O}-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 M=0;const A=$.map((L,z)=>{var V,F;L!=null&&(M=z);const G=L&&L.key||`${R}-${z}`;return f__namespace.createElement(J3,{className:R,key:G,direction:m,index:z,marginDirection:_,split:v,wrap:p,style:(V=y==null?void 0:y.item)!==null&&V!==void 0?V:(F=i==null?void 0:i.styles)===null||F===void 0?void 0:F.item},L)}),T=f__namespace.useMemo(()=>({horizontalSize:C,verticalSize:S,latestIndex:M,supportFlexGap:x}),[C,S,M,x]);if($.length===0)return null;const D={};return p&&(D.flexWrap="wrap",x||(D.marginBottom=-S)),x&&(D.columnGap=C,D.rowGap=S),E(f__namespace.createElement("div",Object.assign({ref:t,className:I,style:Object.assign(Object.assign(Object.assign({},D),i==null?void 0:i.style),g)},w),f__namespace.createElement(Q3,{value:T},A)))}),HC=r5;HC.Compact=TM;const gu=HC;var o5=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 BC=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=f__namespace.useContext(ot),{prefixCls:o,type:i="default",danger:a,disabled:s,loading:l,onClick:c,htmlType:u,children:d,className:m,menu:h,arrow:v,autoFocus:g,overlay:p,trigger:b,align:y,open:w,onOpenChange:x,placement:C,getPopupContainer:S,href:$,icon:P=f__namespace.createElement(dh,null),title:O,buttonsRender:E=re=>re,mouseEnterDelay:N,mouseLeaveDelay:I,overlayClassName:R,overlayStyle:_,destroyPopupOnHide:M,dropdownRender:A}=e,T=o5(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"]),D=n("dropdown",o),L=`${D}-button`,[z,V]=rC(D),F={menu:h,arrow:v,autoFocus:g,align:y,disabled:s,trigger:s?[]:b,onOpenChange:x,getPopupContainer:S||t,mouseEnterDelay:N,mouseLeaveDelay:I,overlayClassName:R,overlayStyle:_,destroyPopupOnHide:M,dropdownRender:A},{compactSize:G,compactItemClassnames:H}=ba(D,r),K=U(L,H,m,V);"overlay"in e&&(F.overlay=p),"open"in e&&(F.open=w),"placement"in e?F.placement=C:F.placement=r==="rtl"?"bottomLeft":"bottomRight";const te=f__namespace.createElement(_n,{type:i,danger:a,disabled:s,loading:l,onClick:c,htmlType:u,href:$,title:O},d),Z=f__namespace.createElement(_n,{type:i,danger:a,icon:P}),[Y,ee]=E([te,Z]);return z(f__namespace.createElement(gu.Compact,Object.assign({className:K,size:G,block:!0},T),Y,f__namespace.createElement(oC,Object.assign({},F),ee)))};BC.__ANT_BUTTON=!0;const i5=BC,WC=oC;WC.Button=i5;const a5=WC,s5=e=>{const{componentCls:t,iconCls:n,zIndexPopup:r,colorText:o,colorWarning:i,marginXXS:a,marginXS:s,fontSize:l,fontWeightStrong:c,colorTextHeading:u}=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:u,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:a}},[`${t}-buttons`]:{textAlign:"end",button:{marginInlineStart:s}}}}},VC=an("Popconfirm",e=>s5(e),e=>{const{zIndexPopupBase:t}=e;return {zIndexPopup:t+60}});var l5=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 GC=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:o,description:i,cancelText:a,okText:s,okType:l="primary",icon:c=f__namespace.createElement(K0,null),showCancel:u=!0,close:d,onConfirm:m,onCancel:h,onPopupClick:v}=e,{getPrefixCls:g}=f__namespace.useContext(ot),[p]=Am("Popconfirm",aa.Popconfirm),b=la(o),y=la(i);return f__namespace.createElement("div",{className:`${t}-inner-content`,onClick:v},f__namespace.createElement("div",{className:`${t}-message`},c&&f__namespace.createElement("span",{className:`${t}-message-icon`},c),f__namespace.createElement("div",{className:`${t}-message-text`},b&&f__namespace.createElement("div",{className:U(`${t}-title`)},b),y&&f__namespace.createElement("div",{className:`${t}-description`},y))),f__namespace.createElement("div",{className:`${t}-buttons`},u&&f__namespace.createElement(_n,Object.assign({onClick:h,size:"small"},r),a??(p==null?void 0:p.cancelText)),f__namespace.createElement(mT,{buttonProps:Object.assign(Object.assign({size:"small"},ry(l)),n),actionFn:m,close:d,prefixCls:g("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s??(p==null?void 0:p.okText))))};function c5(e){const{prefixCls:t,placement:n,className:r,style:o}=e,i=l5(e,["prefixCls","placement","className","style"]),{getPrefixCls:a}=f__namespace.useContext(ot),s=a("popconfirm",t),[l]=VC(s);return l(f__namespace.createElement(Ly,{placement:n,className:U(s,r),style:o,content:f__namespace.createElement(GC,Object.assign({prefixCls:s},i))}))}var u5=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 UC=f__namespace.forwardRef((e,t)=>{const{prefixCls:n,placement:r="top",trigger:o="click",okType:i="primary",icon:a=f__namespace.createElement(K0,null),children:s,overlayClassName:l,onOpenChange:c,onVisibleChange:u}=e,d=u5(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:m}=f__namespace.useContext(ot),[h,v]=Qt(!1,{value:e.open,defaultValue:e.defaultOpen}),g=(P,O)=>{v(P,!0),u==null||u(P),c==null||c(P,O);},p=P=>{g(!1,P);},b=P=>{var O;return (O=e.onConfirm)===null||O===void 0?void 0:O.call(globalThis,P)},y=P=>{var O;g(!1,P),(O=e.onCancel)===null||O===void 0||O.call(globalThis,P);},w=P=>{P.keyCode===Q.ESC&&h&&g(!1,P);},x=P=>{const{disabled:O=!1}=e;O||g(P);},C=m("popconfirm",n),S=U(C,l),[$]=VC(C);return $(f__namespace.createElement(zy,Object.assign({},Mn(d,["title"]),{trigger:o,placement:r,onOpenChange:x,open:h,ref:t,overlayClassName:S,content:f__namespace.createElement(GC,Object.assign({okType:i,icon:a},e,{prefixCls:C,close:p,onConfirm:b,onCancel:y})),"data-popover-inject":!0}),Tn(s,{onKeyDown:P=>{var O,E;f__namespace.isValidElement(s)&&((E=s==null?void 0:(O=s.props).onKeyDown)===null||E===void 0||E.call(O,P)),w(P);}})))});UC._InternalPanelDoNotUseOrYouWillBeFired=c5;const d5=UC;var pi=f__namespace.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0});function Hf(e,t,n){return (e-t)/(n-t)}function wh(e,t,n,r){var o=Hf(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 ji(e,t){return Array.isArray(e)?e[t]:e}var f5=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"],m5=f__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,u=e.dragging,d=e.onOffsetChange,m=Ue(e,f5),h=f__namespace.useContext(pi),v=h.min,g=h.max,p=h.direction,b=h.disabled,y=h.keyboard,w=h.range,x=h.tabIndex,C=h.ariaLabelForHandle,S=h.ariaLabelledByForHandle,$=h.ariaValueTextFormatterForHandle,P="".concat(o,"-handle"),O=function(_){b||s(_,a);},E=function(_){if(!b&&y){var M=null;switch(_.which||_.keyCode){case Q.LEFT:M=p==="ltr"||p==="btt"?-1:1;break;case Q.RIGHT:M=p==="ltr"||p==="btt"?1:-1;break;case Q.UP:M=p!=="ttb"?1:-1;break;case Q.DOWN:M=p!=="ttb"?-1:1;break;case Q.HOME:M="min";break;case Q.END:M="max";break;case Q.PAGE_UP:M=2;break;case Q.PAGE_DOWN:M=-2;break}M!==null&&(_.preventDefault(),d(M,a));}},N=wh(p,i,v,g),I=f__namespace.createElement("div",pe({ref:t,className:U(P,(n={},q(n,"".concat(P,"-").concat(a+1),w),q(n,"".concat(P,"-dragging"),u),n)),style:B(B({},N),l),onMouseDown:O,onTouchStart:O,onKeyDown:E,tabIndex:b?null:ji(x,a),role:"slider","aria-valuemin":v,"aria-valuemax":g,"aria-valuenow":i,"aria-disabled":b,"aria-label":ji(C,a),"aria-labelledby":ji(S,a),"aria-valuetext":(r=ji($,a))===null||r===void 0?void 0:r(i)},m));return c&&(I=c(I,{index:a,prefixCls:o,value:i,dragging:u})),I}),h5=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],v5=f__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=Ue(e,h5),u=f__namespace.useRef({});return f__namespace.useImperativeHandle(t,function(){return {focus:function(m){var h;(h=u.current[m])===null||h===void 0||h.focus();}}}),f__namespace.createElement(f__namespace.Fragment,null,a.map(function(d,m){return f__namespace.createElement(m5,pe({ref:function(v){v?u.current[m]=v:delete u.current[m];},dragging:l===m,prefixCls:n,style:ji(r,m),key:m,value:d,valueIndex:m,onStartMove:o,onOffsetChange:i,render:s},c))}))});function bp(e){var t="touches"in e?e.touches[0]:e;return {pageX:t.pageX,pageY:t.pageY}}function g5(e,t,n,r,o,i,a,s,l){var c=f__namespace.useState(null),u=X(c,2),d=u[0],m=u[1],h=f__namespace.useState(-1),v=X(h,2),g=v[0],p=v[1],b=f__namespace.useState(n),y=X(b,2),w=y[0],x=y[1],C=f__namespace.useState(n),S=X(C,2),$=S[0],P=S[1],O=f__namespace.useRef(null),E=f__namespace.useRef(null);f__namespace.useEffect(function(){g===-1&&x(n);},[n,g]),f__namespace.useEffect(function(){return function(){document.removeEventListener("mousemove",O.current),document.removeEventListener("mouseup",E.current),document.removeEventListener("touchmove",O.current),document.removeEventListener("touchend",E.current);}},[]);var N=function(T,D){w.some(function(L,z){return L!==T[z]})&&(D!==void 0&&m(D),x(T),a(T));},I=function(T,D){if(T===-1){var L=$[0],z=$[$.length-1],V=r-L,F=o-z,G=D*(o-r);G=Math.max(G,V),G=Math.min(G,F);var H=i(L+G);G=H-L;var K=$.map(function(ee){return ee+G});N(K);}else {var te=(o-r)*D,Z=ge(w);Z[T]=$[T];var Y=l(Z,te,T,"dist");N(Y.values,Y.value);}},R=f__namespace.useRef(I);R.current=I;var _=function(T,D){T.stopPropagation();var L=n[D];p(D),m(L),P(n);var z=bp(T),V=z.pageX,F=z.pageY,G=function(te){te.preventDefault();var Z=bp(te),Y=Z.pageX,ee=Z.pageY,re=Y-V,ae=ee-F,ce=e.current.getBoundingClientRect(),oe=ce.width,me=ce.height,ye;switch(t){case"btt":ye=-ae/me;break;case"ttb":ye=ae/me;break;case"rtl":ye=-re/oe;break;default:ye=re/oe;}R.current(D,ye);},H=function K(te){te.preventDefault(),document.removeEventListener("mouseup",K),document.removeEventListener("mousemove",G),document.removeEventListener("touchend",K),document.removeEventListener("touchmove",G),O.current=null,E.current=null,p(-1),s();};document.addEventListener("mouseup",H),document.addEventListener("mousemove",G),document.addEventListener("touchend",H),document.addEventListener("touchmove",G),O.current=G,E.current=H;},M=f__namespace.useMemo(function(){var A=ge(n).sort(function(D,L){return D-L}),T=ge(w).sort(function(D,L){return D-L});return A.every(function(D,L){return D===T[L]})?w:n},[n,w]);return [g,d,M,_]}function p5(e){var t=e.prefixCls,n=e.style,r=e.start,o=e.end,i=e.index,a=e.onStartMove,s=f__namespace.useContext(pi),l=s.direction,c=s.min,u=s.max,d=s.disabled,m=s.range,h="".concat(t,"-track"),v=Hf(r,c,u),g=Hf(o,c,u),p=function(w){!d&&a&&a(w,-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 f__namespace.createElement("div",{className:U(h,m&&"".concat(h,"-").concat(i+1)),style:B(B({},b),n),onMouseDown:p,onTouchStart:p})}function b5(e){var t=e.prefixCls,n=e.style,r=e.values,o=e.startPoint,i=e.onStartMove,a=f__namespace.useContext(pi),s=a.included,l=a.range,c=a.min,u=f__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?u.map(function(d,m){var h=d.start,v=d.end;return f__namespace.createElement(p5,{index:m,prefixCls:t,style:ji(n,m),start:h,end:v,key:m,onStartMove:i})}):null}function y5(e){var t=e.prefixCls,n=e.style,r=e.children,o=e.value,i=e.onClick,a=f__namespace.useContext(pi),s=a.min,l=a.max,c=a.direction,u=a.includedStart,d=a.includedEnd,m=a.included,h="".concat(t,"-text"),v=wh(c,o,s,l);return f__namespace.createElement("span",{className:U(h,q({},"".concat(h,"-active"),m&&u<=o&&o<=d)),style:B(B({},v),n),onMouseDown:function(p){p.stopPropagation();},onClick:function(){i(o);}},r)}function C5(e){var t=e.prefixCls,n=e.marks,r=e.onClick,o="".concat(t,"-mark");return n.length?f__namespace.createElement("div",{className:o},n.map(function(i){var a=i.value,s=i.style,l=i.label;return f__namespace.createElement(y5,{key:a,prefixCls:o,style:s,value:a,onClick:r},l)})):null}function S5(e){var t=e.prefixCls,n=e.value,r=e.style,o=e.activeStyle,i=f__namespace.useContext(pi),a=i.min,s=i.max,l=i.direction,c=i.included,u=i.includedStart,d=i.includedEnd,m="".concat(t,"-dot"),h=c&&u<=n&&n<=d,v=B(B({},wh(l,n,a,s)),typeof r=="function"?r(n):r);return h&&(v=B(B({},v),typeof o=="function"?o(n):o)),f__namespace.createElement("span",{className:U(m,q({},"".concat(m,"-active"),h)),style:v})}function w5(e){var t=e.prefixCls,n=e.marks,r=e.dots,o=e.style,i=e.activeStyle,a=f__namespace.useContext(pi),s=a.min,l=a.max,c=a.step,u=f__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 f__namespace.createElement("div",{className:"".concat(t,"-step")},u.map(function(d){return f__namespace.createElement(S5,{prefixCls:t,key:d,value:d,style:o,activeStyle:i})}))}function $5(e,t,n,r,o,i){var a=f__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=f__namespace.useCallback(function(h){if(n!==null){var v=e+Math.round((a(h)-e)/n)*n,g=function(w){return (String(w).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=f__namespace.useCallback(function(h){var v=a(h),g=r.map(function(y){return y.value});n!==null&&g.push(s(h)),g.push(e,t);var p=g[0],b=t-e;return g.forEach(function(y){var w=Math.abs(v-y);w<=b&&(p=y,b=w);}),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 y,w=v[p],x=w+g,C=[];r.forEach(function(E){C.push(E.value);}),C.push(e,t),C.push(s(w));var S=g>0?1:-1;b==="unit"?C.push(s(w+S*n)):C.push(s(x)),C=C.filter(function(E){return E!==null}).filter(function(E){return g<0?E<=w:E>=w}),b==="unit"&&(C=C.filter(function(E){return E!==w}));var $=b==="unit"?w:x;y=C[0];var P=Math.abs(y-$);if(C.forEach(function(E){var N=Math.abs(E-$);N<P&&(y=E,P=N);}),y===void 0)return g<0?e:t;if(b==="dist")return y;if(Math.abs(g)>1){var O=ge(v);return O[p]=y,h(O,g-S,p,b)}return y}else {if(g==="min")return e;if(g==="max")return t}},u=function(v,g,p){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",y=v[p],w=c(v,g,p,b);return {value:w,changed:w!==y}},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",y=v.map(l),w=y[p],x=c(y,g,p,b);if(y[p]=x,o===!1){var C=i||0;p>0&&y[p-1]!==w&&(y[p]=Math.max(y[p],y[p-1]+C)),p<y.length-1&&y[p+1]!==w&&(y[p]=Math.min(y[p],y[p+1]-C));}else if(typeof i=="number"||i===null){for(var S=p+1;S<y.length;S+=1)for(var $=!0;d(y[S]-y[S-1])&&$;){var P=u(y,1,S);y[S]=P.value,$=P.changed;}for(var O=p;O>0;O-=1)for(var E=!0;d(y[O]-y[O-1])&&E;){var N=u(y,-1,O-1);y[O-1]=N.value,E=N.changed;}for(var I=y.length-1;I>0;I-=1)for(var R=!0;d(y[I]-y[I-1])&&R;){var _=u(y,-1,I-1);y[I-1]=_.value,R=_.changed;}for(var M=0;M<y.length-1;M+=1)for(var A=!0;d(y[M+1]-y[M])&&A;){var T=u(y,1,M+1);y[M+1]=T.value,A=T.changed;}}return {value:y[p],values:y}};return [l,m]}var x5=f__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,u=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,y=e.step,w=y===void 0?1:y,x=e.value,C=e.defaultValue,S=e.range,$=e.count,P=e.onChange,O=e.onBeforeChange,E=e.onAfterChange,N=e.allowCross,I=N===void 0?!0:N,R=e.pushable,_=R===void 0?!1:R,M=e.draggableTrack,A=e.reverse,T=e.vertical,D=e.included,L=D===void 0?!0:D,z=e.startPoint,V=e.trackStyle,F=e.handleStyle,G=e.railStyle,H=e.dotStyle,K=e.activeDotStyle,te=e.marks,Z=e.dots,Y=e.handleRender,ee=e.tabIndex,re=ee===void 0?0:ee,ae=e.ariaLabelForHandle,ce=e.ariaLabelledByForHandle,oe=e.ariaValueTextFormatterForHandle,me=f__namespace.useRef(),ye=f__namespace.useRef(),ue=f__namespace.useMemo(function(){return T?A?"ttb":"btt":A?"rtl":"ltr"},[A,T]),he=f__namespace.useMemo(function(){return isFinite(g)?g:0},[g]),ne=f__namespace.useMemo(function(){return isFinite(b)?b:100},[b]),fe=f__namespace.useMemo(function(){return w!==null&&w<=0?1:w},[w]),le=f__namespace.useMemo(function(){return _===!0?fe:_>=0?_:!1},[_,fe]),se=f__namespace.useMemo(function(){var De=Object.keys(te||{});return De.map(function(Ve){var Te=te[Ve],Ct={value:Number(Ve)};return Te&&nt(Te)==="object"&&!f__namespace.isValidElement(Te)&&("label"in Te||"style"in Te)?(Ct.style=Te.style,Ct.label=Te.label):Ct.label=Te,Ct}).filter(function(Ve){var Te=Ve.label;return Te||typeof Te=="number"}).sort(function(Ve,Te){return Ve.value-Te.value})},[te]),Ie=$5(he,ne,fe,se,I,le),_e=X(Ie,2),Le=_e[0],Re=_e[1],Ke=Qt(C,{value:x}),dt=X(Ke,2),Je=dt[0],Ye=dt[1],ke=f__namespace.useMemo(function(){var De=Je==null?[]:Array.isArray(Je)?Je:[Je],Ve=X(De,1),Te=Ve[0],Ct=Te===void 0?he:Te,vt=Je===null?[]:[Ct];if(S){if(vt=ge(De),$||Je===void 0){var Jt=$>=0?$+1:2;for(vt=vt.slice(0,Jt);vt.length<Jt;){var Ne;vt.push((Ne=vt[vt.length-1])!==null&&Ne!==void 0?Ne:he);}}vt.sort(function(Be,st){return Be-st});}return vt.forEach(function(Be,st){vt[st]=Le(Be);}),vt},[Je,S,he,$,Le]),ze=f__namespace.useRef(ke);ze.current=ke;var ct=function(Ve){return S?Ve:Ve[0]},it=function(Ve){var Te=ge(Ve).sort(function(Ct,vt){return Ct-vt});P&&!qc(Te,ze.current,!0)&&P(ct(Te)),Ye(Te);},be=function(Ve){if(!l){var Te=0,Ct=ne-he;ke.forEach(function(Jt,Ne){var Be=Math.abs(Ve-Jt);Be<=Ct&&(Ct=Be,Te=Ne);});var vt=ge(ke);vt[Te]=Ve,S&&!ke.length&&$===void 0&&vt.push(Ve),O==null||O(ct(vt)),it(vt),E==null||E(ct(vt));}},$e=function(Ve){Ve.preventDefault();var Te=ye.current.getBoundingClientRect(),Ct=Te.width,vt=Te.height,Jt=Te.left,Ne=Te.top,Be=Te.bottom,st=Te.right,xt=Ve.clientX,qt=Ve.clientY,zt;switch(ue){case"btt":zt=(Be-qt)/vt;break;case"ttb":zt=(qt-Ne)/vt;break;case"rtl":zt=(st-xt)/Ct;break;default:zt=(xt-Jt)/Ct;}var wn=he+zt*(ne-he);be(Le(wn));},Xe=f__namespace.useState(null),We=X(Xe,2),ut=We[0],Ee=We[1],Oe=function(Ve,Te){if(!l){var Ct=Re(ke,Ve,Te);O==null||O(ct(ke)),it(Ct.values),E==null||E(ct(Ct.values)),Ee(Ct.value);}};f__namespace.useEffect(function(){if(ut!==null){var De=ke.indexOf(ut);De>=0&&me.current.focus(De);}Ee(null);},[ut]);var je=f__namespace.useMemo(function(){return M&&fe===null?!1:M},[M,fe]),Me=function(){E==null||E(ct(ze.current));},Ze=g5(ye,ue,ke,he,ne,Le,it,Me,Re),wt=X(Ze,4),Lt=wt[0],Dt=wt[1],Ae=wt[2],de=wt[3],ie=function(Ve,Te){de(Ve,Te),O==null||O(ct(ze.current));},Ce=Lt!==-1;f__namespace.useEffect(function(){if(!Ce){var De=ke.lastIndexOf(Dt);me.current.focus(De);}},[Ce]);var xe=f__namespace.useMemo(function(){return ge(Ae).sort(function(De,Ve){return De-Ve})},[Ae]),qe=f__namespace.useMemo(function(){return S?[xe[0],xe[xe.length-1]]:[he,xe[0]]},[xe,S,he]),ft=X(qe,2),yt=ft[0],Xt=ft[1];f__namespace.useImperativeHandle(t,function(){return {focus:function(){me.current.focus(0);},blur:function(){var Ve=document,Te=Ve.activeElement;ye.current.contains(Te)&&(Te==null||Te.blur());}}}),f__namespace.useEffect(function(){d&&me.current.focus(0);},[]);var Ht=f__namespace.useMemo(function(){return {min:he,max:ne,direction:ue,disabled:l,keyboard:u,step:fe,included:L,includedStart:yt,includedEnd:Xt,range:S,tabIndex:re,ariaLabelForHandle:ae,ariaLabelledByForHandle:ce,ariaValueTextFormatterForHandle:oe}},[he,ne,ue,l,u,fe,L,yt,Xt,S,re,ae,ce,oe]);return f__namespace.createElement(pi.Provider,{value:Ht},f__namespace.createElement("div",{ref:ye,className:U(o,i,(n={},q(n,"".concat(o,"-disabled"),l),q(n,"".concat(o,"-vertical"),T),q(n,"".concat(o,"-horizontal"),!T),q(n,"".concat(o,"-with-marks"),se.length),n)),style:a,onMouseDown:$e},f__namespace.createElement("div",{className:"".concat(o,"-rail"),style:G}),f__namespace.createElement(b5,{prefixCls:o,style:V,values:xe,startPoint:z,onStartMove:je?ie:null}),f__namespace.createElement(w5,{prefixCls:o,marks:se,dots:Z,style:H,activeStyle:K}),f__namespace.createElement(v5,{ref:me,prefixCls:o,style:F,values:Ae,draggingIndex:Lt,onStartMove:ie,onOffsetChange:Oe,onFocus:m,onBlur:h,handleRender:Y}),f__namespace.createElement(C5,{prefixCls:o,marks:se,onClick:be})))});const E5=f__namespace.forwardRef((e,t)=>{const{open:n}=e,r=f.useRef(null),o=f.useRef(null);function i(){Nt.cancel(o.current),o.current=null;}function a(){o.current=Nt(()=>{var s;(s=r.current)===null||s===void 0||s.forceAlign(),o.current=null;});}return f__namespace.useEffect(()=>(n?a():i(),i),[n,e.title]),f__namespace.createElement(Hs,Object.assign({ref:Fn(r,t)},e))}),O5=E5,P5=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 Zt(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString()}`,insetInlineStart:0,insetBlockStart:0},[`
          ${t}-mark-text,
          ${t}-dot
        `]:{cursor:"not-allowed !important"}}})}},KC=(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",u=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,[u]:o,[s]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[u]:r,[s]:"100%",[l]:r},[`${n}-dot`]:{position:"absolute",[c]:(r-i)/2}}},_5=e=>{const{componentCls:t,marginPartWithMark:n}=e;return {[`${t}-horizontal`]:Object.assign(Object.assign({},KC(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},I5=e=>{const{componentCls:t}=e;return {[`${t}-vertical`]:Object.assign(Object.assign({},KC(e,!1)),{height:"100%"})}},R5=an("Slider",e=>{const t=$t(e,{marginPart:(e.controlHeight-e.controlSize)/2,marginFull:e.controlSize/2,marginPartWithMark:e.controlHeightLG-e.controlSize});return [P5(t),_5(t),I5(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 M5=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 T5=e=>typeof e=="number"?e.toString():"",N5=f.forwardRef((e,t)=>{const{prefixCls:n,range:r,className:o,rootClassName:i,tooltipPrefixCls:a,tipFormatter:s,tooltipVisible:l,getTooltipPopupContainer:c,tooltipPlacement:u}=e,d=M5(e,["prefixCls","range","className","rootClassName","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement"]),{getPrefixCls:m,direction:h,getPopupContainer:v}=f.useContext(ot),[g,p]=f.useState({}),b=(E,N)=>{p(I=>Object.assign(Object.assign({},I),{[E]:N}));},y=(E,N)=>E||(N?h==="rtl"?"left":"right":"top"),w=m("slider",n),[x,C]=R5(w),S=U(o,i,{[`${w}-rtl`]:h==="rtl"},C);h==="rtl"&&!d.vertical&&(d.reverse=!d.reverse);const[$,P]=f.useMemo(()=>r?typeof r=="object"?[!0,r.draggableTrack]:[!0,!1]:[!1],[r]),O=(E,N)=>{var I;const{index:R,dragging:_}=N,{tooltip:M={},vertical:A}=e,T=Object.assign({},M),{open:D,placement:L,getPopupContainer:z,prefixCls:V,formatter:F}=T;let G;F||F===null?G=F:s||s===null?G=s:G=T5;const H=G?g[R]||_:!1,K=(I=D??l)!==null&&I!==void 0?I:D===void 0&&H,te=Object.assign(Object.assign({},E.props),{onMouseEnter:()=>b(R,!0),onMouseLeave:()=>b(R,!1)}),Z=m("tooltip",V??a);return f.createElement(O5,{prefixCls:Z,title:G?G(N.value):"",open:K,placement:y(L??u,A),key:R,overlayClassName:`${w}-tooltip`,getPopupContainer:z||c||v},f.cloneElement(E,te))};return x(f.createElement(x5,Object.assign({},d,{step:d.step,range:$,draggableTrack:P,className:S,ref:t,prefixCls:w,handleRender:O})))}),A5=N5;function D5(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const Cl=(e,t,n)=>{const r=D5(n);return {[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},k5=e=>I0(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"}}}}),L5=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}}},XC=an("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 [L5(i),k5(i),Cl(i,"success","Success"),Cl(i,"processing","Info"),Cl(i,"error","Error"),Cl(i,"warning","Warning")]},e=>({defaultBg:e.colorFillQuaternary,defaultColor:e.colorText}));var F5=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 z5=e=>{const{prefixCls:t,className:n,checked:r,onChange:o,onClick:i}=e,a=F5(e,["prefixCls","className","checked","onChange","onClick"]),{getPrefixCls:s}=f__namespace.useContext(ot),l=h=>{o==null||o(!r),i==null||i(h);},c=s("tag",t),[u,d]=XC(c),m=U(c,{[`${c}-checkable`]:!0,[`${c}-checkable-checked`]:r},n,d);return u(f__namespace.createElement("span",Object.assign({},a,{className:m,onClick:l})))},j5=z5;var H5=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 B5=(e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,children:a,icon:s,color:l,onClose:c,closeIcon:u,closable:d=!1,bordered:m=!0}=e,h=H5(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:v,direction:g}=f__namespace.useContext(ot),[p,b]=f__namespace.useState(!0);f__namespace.useEffect(()=>{"visible"in h&&b(h.visible);},[h.visible]);const y=Ny(l)||PD(l),w=Object.assign({backgroundColor:l&&!y?l:void 0},i),x=v("tag",n),[C,S]=XC(x),$=U(x,{[`${x}-${l}`]:y,[`${x}-has-color`]:l&&!y,[`${x}-hidden`]:!p,[`${x}-rtl`]:g==="rtl",[`${x}-borderless`]:!m},r,o,S),P=_=>{_.stopPropagation(),c==null||c(_),!_.defaultPrevented&&b(!1);},O=f__namespace.useMemo(()=>d?u?f__namespace.createElement("span",{className:`${x}-close-icon`,onClick:P},u):f__namespace.createElement(jm,{className:`${x}-close-icon`,onClick:P}):null,[d,u,x,P]),E=typeof h.onClick=="function"||a&&a.type==="a",N=s||null,I=N?f__namespace.createElement(f__namespace.Fragment,null,N,f__namespace.createElement("span",null,a)):a,R=f__namespace.createElement("span",Object.assign({},h,{ref:t,className:$,style:w}),I,O);return C(E?f__namespace.createElement(Y0,null,R):R)},qC=f__namespace.forwardRef(B5);qC.CheckableTag=j5;const Da=qC;var pu={},YC={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;})(YC);var $h=YC.exports,bu={};Object.defineProperty(bu,"__esModule",{value:!0});bu.default=void 0;var W5={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:"页码"};bu.default=W5;var yu={},Us={},Cu={};Object.defineProperty(Cu,"__esModule",{value:!0});Cu.default=void 0;var V5={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:"下一世纪"},G5=V5;Cu.default=G5;var Ks={};Object.defineProperty(Ks,"__esModule",{value:!0});Ks.default=void 0;const U5={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};var K5=U5;Ks.default=K5;var ZC=$h.default;Object.defineProperty(Us,"__esModule",{value:!0});Us.default=void 0;var X5=ZC(Cu),q5=ZC(Ks);const QC={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},X5.default),timePickerLocale:Object.assign({},q5.default)};QC.lang.ok="确定";var Y5=QC;Us.default=Y5;var Z5=$h.default;Object.defineProperty(yu,"__esModule",{value:!0});yu.default=void 0;var Q5=Z5(Us),J5=Q5.default;yu.default=J5;var Su=$h.default;Object.defineProperty(pu,"__esModule",{value:!0});pu.default=void 0;var e4=Su(bu),t4=Su(yu),n4=Su(Us),r4=Su(Ks);const Bn="${label}不是一个有效的${type}",o4={locale:"zh-cn",Pagination:e4.default,DatePicker:n4.default,TimePicker:r4.default,Calendar:t4.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:Bn,method:Bn,array:Bn,object:Bn,number:Bn,date:Bn,boolean:Bn,integer:Bn,float:Bn,regexp:Bn,email:Bn,url:Bn,hex:Bn},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 i4=o4;pu.default=i4;var a4=pu;const s4=go(a4);var xh={},zn={};Object.defineProperty(zn,"__esModule",{value:!0});zn.DEFAULT_ICON_CONFIGS=void 0;zn.IconConverter=tS;zn.IconProvider=void 0;zn.IconWrapper=v4;var Nl=l4(f);function JC(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return (JC=function(r){return r?n:t})(e)}function l4(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return {default:e};var n=JC(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i];}return r.default=e,n&&n.set(e,r),r}var c4=["size","strokeWidth","strokeLinecap","strokeLinejoin","theme","fill","className","spin"];function yp(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 Cp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yp(Object(n),!0).forEach(function(r){u4(e,r,n[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yp(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r));});}return e}function u4(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d4(e,t){if(e==null)return {};var n=f4(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 f4(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 eS={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"};zn.DEFAULT_ICON_CONFIGS=eS;function m4(){return "icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)}function tS(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 nS=(0, Nl.createContext)(eS),h4=nS.Provider;zn.IconProvider=h4;function v4(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,u=r.className,d=r.spin,m=d4(r,c4),h=(0, Nl.useContext)(nS),v=(0, Nl.useMemo)(m4,[]),g=tS(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"),u&&p.push(u),Nl.default.createElement("span",Cp(Cp({},m),{},{className:p.join(" ")}),n(g))}}Object.defineProperty(xh,"__esModule",{value:!0});var rS=xh.default=void 0,yd=p4(f),g4=zn;function p4(e){return e&&e.__esModule?e:{default:e}}var b4=(0, g4.IconWrapper)("close",!1,function(e){return yd.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},yd.default.createElement("path",{d:"M8 8L40 40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),yd.default.createElement("path",{d:"M8 40L40 8",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});rS=xh.default=b4;var Eh={};Object.defineProperty(Eh,"__esModule",{value:!0});var oS=Eh.default=void 0,Cd=C4(f),y4=zn;function C4(e){return e&&e.__esModule?e:{default:e}}var S4=(0, y4.IconWrapper)("config",!1,function(e){return Cd.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Cd.default.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}),Cd.default.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}))});oS=Eh.default=S4;var Oh={};Object.defineProperty(Oh,"__esModule",{value:!0});var iS=Oh.default=void 0,ka=$4(f),w4=zn;function $4(e){return e&&e.__esModule?e:{default:e}}var x4=(0, w4.IconWrapper)("distraught-face",!1,function(e){return ka.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},ka.default.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}),ka.default.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}),ka.default.createElement("path",{d:"M32 17L29 20L32 23",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),ka.default.createElement("path",{d:"M16 17L19 20L16 23",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});iS=Oh.default=x4;var Ph={};Object.defineProperty(Ph,"__esModule",{value:!0});var aS=Ph.default=void 0,La=O4(f),E4=zn;function O4(e){return e&&e.__esModule?e:{default:e}}var P4=(0, E4.IconWrapper)("info",!0,function(e){return La.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},La.default.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}),La.default.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]}),La.default.createElement("path",{d:"M24.5 34V20H23.5H22.5",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),La.default.createElement("path",{d:"M21 34H28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});aS=Ph.default=P4;var _h={};Object.defineProperty(_h,"__esModule",{value:!0});var sS=_h.default=void 0,Sd=I4(f),_4=zn;function I4(e){return e&&e.__esModule?e:{default:e}}var R4=(0, _4.IconWrapper)("loading",!0,function(e){return Sd.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Sd.default.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}),Sd.default.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}))});sS=_h.default=R4;var Ih={};Object.defineProperty(Ih,"__esModule",{value:!0});var lS=Ih.default=void 0,Ir=T4(f),M4=zn;function T4(e){return e&&e.__esModule?e:{default:e}}var N4=(0, M4.IconWrapper)("loading-three",!1,function(e){return Ir.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Ir.default.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}),Ir.default.createElement("path",{d:"M24 12V15",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Ir.default.createElement("path",{d:"M32.4852 15.5147L30.3639 17.636",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Ir.default.createElement("path",{d:"M36 24H33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Ir.default.createElement("path",{d:"M32.4852 32.4853L30.3639 30.364",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Ir.default.createElement("path",{d:"M24 36V33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Ir.default.createElement("path",{d:"M15.5148 32.4853L17.6361 30.364",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Ir.default.createElement("path",{d:"M12 24H15",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Ir.default.createElement("path",{d:"M15.5148 15.5147L17.6361 17.636",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});lS=Ih.default=N4;var Rh={};Object.defineProperty(Rh,"__esModule",{value:!0});var cS=Rh.default=void 0,wd=D4(f),A4=zn;function D4(e){return e&&e.__esModule?e:{default:e}}var k4=(0, A4.IconWrapper)("return",!0,function(e){return wd.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},wd.default.createElement("path",{d:"M12.9998 8L6 14L12.9998 21",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),wd.default.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}))});cS=Rh.default=k4;const L4={Close:rS,Config:oS,DistraughtFace:iS,Return:cS,Loading:sS,LoadingThree:lS,Info:aS};function No({name:e,theme:t,size:n,fill:r,...o}){t||(t="outline"),n||(n=24);const i=Kc();r||(r=i?"#fff":"#333");const a=L4[e];return j(a,{theme:t,size:n,fill:r,...o,style:{fontSize:0,...o.style}})}function vr({configKey:e,label:t,className:n,extraAction:r,tooltip:o}){const a=!!cr()[e],s=f.useCallback(c=>{const u=c.target.checked;co({[e]:u}),r==null||r(u);},[]);let l=t||e;return o&&(l=j(Hs,{title:o,overlayStyle:{width:"max-content",maxWidth:"50vw"},children:l})),j(RF,{className:n,checked:a,onChange:s,children:l})}var F4={name:"1qkltea",styles:"margin-left:5px"};const z4=function(){const e=F4;return ve(Gt,{children:[j(vr,{configKey:"initialShowMore",label:"自动查看更多",css:e}),j(vr,{configKey:"useNarrowMode",label:"启用居中模式",css:e})]})};function vc({tooltip:e,iconProps:t}){return j(Gt,{children:e&&j(X4,{title:e,children:j(No,{...t,name:"Info",style:{cursor:"pointer",marginLeft:"4px",...t==null?void 0:t.style}})})})}function Zn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ga(t)}const j4=[{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)"}],ua={id:"default-bili-pink",name:"B站粉",isDark:!1,isCustom:!1,colorPrimary:"#ff6699"},Mh={id:"color-picker",name:"自定义",isDark:!1,isCustom:!0,colorPrimary:"#ff6699"};function H4(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 uS="UP长期洗涤",B4=H4(uS,`
  #0545b2 理想之蓝
  #f4cd00 柠檬黄
  #ef2729 石榴红
  #f89c00 鹿箭
  #233728 黛绿
  #f2b9b7 和熙粉
  #f3cc91 芝士黄
  #6b4c68 葡萄紫
  #ff7227 落日橙
  #004d62 碧海天
  #23909b 洗碧空
  #aeb400 芥丝绿
  #425a17 箬叶青

  #002FA7 克莱因蓝
  #003153 普鲁士蓝
  #01847F 马尔斯绿
  #FBD26A 申布伦黄
  #470024 勃艮第红
  #492D22 凡戴克棕
  `),dS=[{name:"App",themes:[ua,{id:"app-靓紫",name:"靓紫",colorPrimary:"#8500FF"},Mh]},{name:"LX Themes",themes:j4,tooltip:ve(Gt,{children:["提取自"," ",j("a",{target:"_blank",href:"https://github.com/lyswhut/lx-music-desktop/",children:"lx-music-desktop"}),j("br",{}),"Apache License 2.0"]})},{name:uS,themes:B4,tooltip:ve(Gt,{children:["提取自"," ",j("a",{target:"_blank",href:"https://www.bilibili.com/video/BV1g3411u7Lg/",children:"BV1g3411u7Lg"})," ","&"," ",j("a",{target:"_blank",href:"https://www.bilibili.com/video/BV1xu411q7sU/",children:"BV1xu411q7sU"})]})}],fS=dS.map(e=>e.themes).flat();function W4(){const e=fS.find(t=>t.id===(pt.theme||ua.id))||ua;return e.id===Mh.id&&pt.colorPickerThemeSelectedColor&&(e.colorPrimary=pt.colorPickerThemeSelectedColor),e}function wa(){let{theme:e,colorPickerThemeSelectedColor:t}=cr();return e||(e=ua.id),f.useMemo(()=>{const n=fS.find(r=>r.id===e)||ua;return n.id===Mh.id&&t&&(n.colorPrimary=t),n},[e,t])}var V4={name:"1ba68ro",styles:"min-width:60px;text-align:center;cursor:pointer"},G4={name:"lj8i4f",styles:"width:50px;height:50px;padding:3px;border:2px solid transparent;border-radius:5px;margin:0 auto"},U4={name:"1kk26el",styles:"font-size:1.5em;display:flex;align-items:center;margin-top:10px"};function K4(){const e=wa().id,{colorPickerThemeSelectedColor:t}=cr(),[n,r]=f.useState(t||ua.colorPrimary),o=f.useMemo(()=>typeof n=="string"?n:n.toHexString(),[n]);return j("div",{children:dS.map(({name:i,themes:a,tooltip:s})=>ve(f.Fragment,{children:[ve("div",{css:U4,children:[i,j(vc,{tooltip:s,iconProps:{size:22}})]}),j("div",{style:{display:"flex",flexWrap:"wrap",gap:"2px 8px"},children:a.map(l=>{const c=e===l.id,u=l.isCustom,d=j("div",{className:"preview",css:Zn("width:100%;height:100%;background-color:",u?o:l.colorPrimary,";border-radius:5px;","")});let m=j("div",{className:"preview-wrapper",css:[G4,c&&Zn("border-color:",l.colorPrimary,";",""),"",""],children:d});return l.isCustom&&(m=j(Z3,{value:n,onChange:h=>r(h),onOpenChange:h=>{h||co({colorPickerThemeSelectedColor:o});},children:m})),ve("div",{css:V4,onClick:h=>{co({theme:l.id});},children:[m,l.name]},l.id)})})]},i))})}function mS({children:e}){const t=Kc(),{colorPrimary:n}=wa();return j(Lm,{locale:s4,theme:{algorithm:t?ca.darkAlgorithm:ca.defaultAlgorithm,token:{colorPrimary:n,zIndexPopupBase:11e3}},children:e})}function X4(e){return j(Hs,{...e,overlayStyle:{width:"max-content",maxWidth:"50vw",...e.overlayInnerStyle},children:e.children})}const Sp=()=>{const e=new Error("Delay aborted");return e.name="AbortError",e},q4=new WeakMap;function Y4({clearTimeout:e,setTimeout:t}={}){return (n,{value:r,signal:o}={})=>{if(o!=null&&o.aborted)return Promise.reject(Sp());let i,a,s;const l=e??clearTimeout,c=()=>{l(i),s(Sp());},u=()=>{o&&o.removeEventListener("abort",c);},d=new Promise((m,h)=>{a=()=>{u(),m(r);},s=h,i=(t??setTimeout)(a,n);});return o&&o.addEventListener("abort",c,{once:!0}),q4.set(d,()=>{l(i),i=null,a();}),d}}const Xs=Y4(),Z4=Is.extend("utility:dom"),Q4=10*1e3,J4=200;async function hS(e,t,n=()=>!0){let r=[];const o=()=>{r=Array.from(document.querySelectorAll(e)).filter(n);};o();const a=performance.now()+Q4;for(;!r.length&&performance.now()<a;)await Xs(J4),o();if(!r.length){console.warn(`[${Ao}]: tryAction timeout, selector = %s`,e);return}Z4("tryAction: selector=%s count=%s",e,r.length);for(const s of r)await Promise.resolve(t(s));}async function es(e,t,n){return typeof n=="number"&&await Xs(n),hS(e,r=>r.remove(),t)}function wu(){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 $u,wp=zp;$u=wp.createRoot,wp.hydrateRoot;function $p(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function xp(e,t,n){var r=[],o=mm(e,r,n);return r.length<2?n:o+t(r)}var ej=function(t){var n=Jp(t);n.sheet.speedy=function(s){this.isSpeedy=s;},n.compat=!0;var r=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=Ga(c,n.registered,void 0);return ib(n,d,!1),n.key+"-"+d.name},o=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=Ga(c,n.registered),m="animation-"+d.name;return $p(n,{name:d.name,styles:"@keyframes "+m+"{"+d.styles+"}"}),m},i=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=Ga(c,n.registered);$p(n,d);},a=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return xp(n.registered,r,tj(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:mm.bind(null,n.registered),merge:xp.bind(null,n.registered,r)}},tj=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},nj=ej({key:"css"}),Ep=nj.css,vS=function(e){return function(t,n){var r=f.useRef(!1);e(function(){return function(){r.current=!1;}},[]),e(function(){if(!r.current)r.current=!0;else return t()},n);}},$r=function(){return $r=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},$r.apply(this,arguments)};function gS(e,t){var n={};for(var r in 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 rj(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(u){try{c(r.next(u));}catch(d){a(d);}}function l(u){try{c(r.throw(u));}catch(d){a(d);}}function c(u){u.done?i(u.value):o(u.value).then(s,l);}c((r=r.apply(e,t||[])).next());})}function oj(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(u){return l([c,u])}}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(u){c=[6,u],o=0;}finally{r=i=0;}if(c[0]&5)throw c[1];return {value:c[0]?c[1]:void 0,done:!0}}}function Bf(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 en(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 Pn(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 $a=function(e){return typeof e=="function"},ij=function(e){return typeof e=="string"},pS=function(e){return typeof e=="number"};function Rt(e){var t=f.useRef(e);t.current=f.useMemo(function(){return e},[e]);var n=f.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 gc=vS(f.useEffect);var bS=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,u=f.useRef(!1);return u.current=!1,gc(function(){!n&&o&&(u.current=!0,e.run.apply(e,Pn([],en(a),!1)));},[o]),gc(function(){u.current||n||(u.current=!0,c?c():e.refresh());},Pn([],en(l),!1)),{onBefore:function(){if(!o)return {stopNow:!0}}}};bS.onInit=function(e){var t=e.ready,n=t===void 0?!0:t,r=e.manual;return {loading:!r&&n}};const sj=bS;function Wf(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 yS(e,t){var n=f.useRef({deps:t,obj:void 0,initialized:!1}).current;return (n.initialized===!1||!Wf(n.deps,t))&&(n.deps=t,n.obj=e(),n.initialized=!0),n.obj}function Ss(e){var t=f.useRef(e);return t.current=e,t}var lj=function(e){var t=Ss(e);f.useEffect(function(){return function(){t.current();}},[]);};const qs=lj;var Al=new Map,cj=function(e,t,n){var r=Al.get(e);r!=null&&r.timer&&clearTimeout(r.timer);var o=void 0;t>-1&&(o=setTimeout(function(){Al.delete(e);},t)),Al.set(e,$r($r({},n),{timer:o}));},uj=function(e){return Al.get(e)},Dl=new Map,dj=function(e){return Dl.get(e)},fj=function(e,t){Dl.set(e,t),t.then(function(n){return Dl.delete(e),n}).catch(function(){Dl.delete(e);});},Uo={},mj=function(e,t){Uo[e]&&Uo[e].forEach(function(n){return n(t)});},$d=function(e,t){return Uo[e]||(Uo[e]=[]),Uo[e].push(t),function(){var r=Uo[e].indexOf(t);Uo[e].splice(r,1);}},hj=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=f.useRef(),u=f.useRef(),d=function(h,v){s?s(v):cj(h,o,v),mj(h,v.data);},m=function(h,v){return v===void 0&&(v=[]),l?l(v):uj(h)};return yS(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=$d(n,function(v){e.setState({data:v});});}},[]),qs(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=dj(n);return g&&g!==u.current?{servicePromise:g}:(g=h.apply(void 0,Pn([],en(v),!1)),u.current=g,fj(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=$d(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=$d(n,function(g){e.setState({data:g});}));}}:{}};const vj=hj;var gj=function(e,t){var n=t.debounceWait,r=t.debounceLeading,o=t.debounceTrailing,i=t.debounceMaxWait,a=f.useRef(),s=f.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 f.useEffect(function(){if(n){var l=e.runAsync.bind(e);return a.current=Pb(function(c){c();},n,s),e.runAsync=function(){for(var c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];return new Promise(function(d,m){var h;(h=a.current)===null||h===void 0||h.call(a,function(){l.apply(void 0,Pn([],en(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 pj=gj;var bj=function(e,t){var n=t.loadingDelay,r=t.ready,o=f.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 yj=bj;var Cj=!!(typeof window<"u"&&window.document&&window.document.createElement);const Ys=Cj;function Th(){return Ys?document.visibilityState!=="hidden":!0}var ts=[];function Sj(e){return ts.push(e),function(){var n=ts.indexOf(e);ts.splice(n,1);}}if(Ys){var wj=function(){if(Th())for(var e=0;e<ts.length;e++){var t=ts[e];t();}};window.addEventListener("visibilitychange",wj,!1);}var $j=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=f.useRef(),l=f.useRef(),c=f.useRef(0),u=function(){var d;s.current&&clearTimeout(s.current),(d=l.current)===null||d===void 0||d.call(l);};return gc(function(){n||u();},[n]),n?{onBefore:function(){u();},onError:function(){c.current+=1;},onSuccess:function(){c.current=0;},onFinally:function(){a===-1||a!==-1&&c.current<=a?s.current=setTimeout(function(){!o&&!Th()?l.current=Sj(function(){e.refresh();}):e.refresh();},n):c.current=0;},onCancel:function(){u();}}:{}};const xj=$j;function Ej(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,Pn([],en(r),!1)),setTimeout(function(){n=!1;},t));}}function Oj(){return Ys&&typeof navigator.onLine<"u"?navigator.onLine:!0}var ns=[];function Pj(e){return ns.push(e),function(){var n=ns.indexOf(e);n>-1&&ns.splice(n,1);}}if(Ys){var Op=function(){if(!(!Th()||!Oj()))for(var e=0;e<ns.length;e++){var t=ns[e];t();}};window.addEventListener("visibilitychange",Op,!1),window.addEventListener("focus",Op,!1);}var _j=function(e,t){var n=t.refreshOnWindowFocus,r=t.focusTimespan,o=r===void 0?5e3:r,i=f.useRef(),a=function(){var s;(s=i.current)===null||s===void 0||s.call(i);};return f.useEffect(function(){if(n){var s=Ej(e.refresh.bind(e),o);i.current=Pj(function(){s();});}return function(){a();}},[n,o]),qs(function(){a();}),{}};const Ij=_j;var Rj=function(e,t){var n=t.retryInterval,r=t.retryCount,o=f.useRef(),i=f.useRef(0),a=f.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 Mj=Rj;var Tj=function(e,t){var n=t.throttleWait,r=t.throttleLeading,o=t.throttleTrailing,i=f.useRef(),a={};return r!==void 0&&(a.leading=r),o!==void 0&&(a.trailing=o),f.useEffect(function(){if(n){var s=e.runAsync.bind(e);return i.current=pP(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(u,d){var m;(m=i.current)===null||m===void 0||m.call(i,function(){s.apply(void 0,Pn([],en(l),!1)).then(u).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 Nj=Tj;var Aj=function(e){f.useEffect(function(){e==null||e();},[]);};const Eu=Aj;var Dj=function(){var e=en(f.useState({}),2),t=e[1];return f.useCallback(function(){return t({})},[])};const kj=Dj;var Lj=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=$r($r($r({},this.state),{loading:!n.manual}),o);}return e.prototype.setState=function(t){t===void 0&&(t={}),this.state=$r($r({},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,Pn([i],en(n),!1))}).filter(Boolean);return Object.assign.apply(Object,Pn([{}],en(o),!1))},e.prototype.runAsync=function(){for(var t,n,r,o,i,a,s,l,c,u,d=[],m=0;m<arguments.length;m++)d[m]=arguments[m];return rj(this,void 0,void 0,function(){var h,v,g,p,b,y,w,x,C,S,$;return oj(this,function(P){switch(P.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,y=b===void 0?!1:b,w=gS(v,["stopNow","returnNow"]),p)return [2,new Promise(function(){})];if(this.setState($r({loading:!0,params:d},w)),y)return [2,Promise.resolve(w.data)];(n=(t=this.options).onBefore)===null||n===void 0||n.call(t,d),P.label=1;case 1:return P.trys.push([1,3,,4]),x=this.runPluginHandler("onRequest",this.serviceRef.current,d).servicePromise,x||(x=($=this.serviceRef).current.apply($,Pn([],en(d),!1))),[4,x];case 2:return C=P.sent(),h!==this.count?[2,new Promise(function(){})]:(this.setState({data:C,error:void 0,loading:!1}),(o=(r=this.options).onSuccess)===null||o===void 0||o.call(r,C,d),this.runPluginHandler("onSuccess",C,d),(a=(i=this.options).onFinally)===null||a===void 0||a.call(i,d,C,void 0),h===this.count&&this.runPluginHandler("onFinally",d,C,void 0),[2,C]);case 3:if(S=P.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),(u=(c=this.options).onFinally)===null||u===void 0||u.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,Pn([],en(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,Pn([],en(this.state.params||[]),!1));},e.prototype.refreshAsync=function(){return this.runAsync.apply(this,Pn([],en(this.state.params||[]),!1))},e.prototype.mutate=function(t){var n=$a(t)?t(this.state.data):t;this.runPluginHandler("onMutate",n),this.setState({data:n});},e}();const Fj=Lj;function zj(e,t,n){t===void 0&&(t={}),n===void 0&&(n=[]);var r=t.manual,o=r===void 0?!1:r,i=gS(t,["manual"]);var a=$r({manual:o},i),s=Ss(e),l=kj(),c=yS(function(){var u=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 Fj(s,a,l,Object.assign.apply(Object,Pn([{}],en(u),!1)))},[]);return c.options=a,c.pluginImpls=n.map(function(u){return u(c,a)}),Eu(function(){if(!o){var u=c.state.params||t.defaultParams||[];c.run.apply(c,Pn([],en(u),!1));}}),qs(function(){c.cancel();}),{loading:c.state.loading,data:c.state.data,error:c.state.error,params:c.state.params||[],cancel:Rt(c.cancel.bind(c)),refresh:Rt(c.refresh.bind(c)),refreshAsync:Rt(c.refreshAsync.bind(c)),run:Rt(c.run.bind(c)),runAsync:Rt(c.runAsync.bind(c)),mutate:Rt(c.mutate.bind(c))}}function jj(e,t,n){return zj(e,t,Pn(Pn([],en(n||[]),!1),[pj,yj,xj,Ij,Nj,sj,vj,Mj],!1))}function CS(e,t){e===void 0&&(e=!1);var n=en(f.useState(e),2),r=n[0],o=n[1],i=f.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)},u=function(){return o(a)};return {toggle:s,set:l,setLeft:c,setRight:u}},[]);return [r,i]}function Hj(e){e===void 0&&(e=!1);var t=en(CS(!!e),2),n=t[0],r=t[1],o=r.toggle,i=r.set,a=f.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 Ou(e,t){if(Ys){if(!e)return t;var n;return $a(e)?n=e():"current"in e?n=e.current:n=e,n}}var Bj=function(e){var t=function(n,r,o){var i=f.useRef(!1),a=f.useRef([]),s=f.useRef([]),l=f.useRef();e(function(){var c,u=Array.isArray(o)?o:[o],d=u.map(function(m){return Ou(m)});if(!i.current){i.current=!0,a.current=d,s.current=r,l.current=n();return}(d.length!==a.current.length||!Wf(d,a.current)||!Wf(r,s.current))&&((c=l.current)===null||c===void 0||c.call(l),a.current=d,s.current=r,l.current=n());}),qs(function(){var c;(c=l.current)===null||c===void 0||c.call(l),i.current=!1;});};return t};const Wj=Bj;var Vj=Wj(f.useEffect);const SS=Vj;function si(e,t,n){n===void 0&&(n={});var r=Ss(t);SS(function(){var o=Ou(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 wS(e){var t=en(f.useState(e),2),n=t[0],r=t[1],o=f.useRef(n);o.current=n;var i=f.useCallback(function(){return o.current},[]);return [n,r,i]}const xd=function(e,t){var n=t||{},r=n.onEnter,o=n.onLeave,i=n.onChange,a=en(Hj(!1),2),s=a[0],l=a[1],c=l.setTrue,u=l.setFalse;return si("mouseenter",function(){r==null||r(),c(),i==null||i(!0);},{target:e}),si("mouseleave",function(){o==null||o(),u(),i==null||i(!1);},{target:e}),s};var Gj=function(e,t){return t===void 0&&(t=[]),uP(e,t)},Uj=function(e,t,n){var r=f.useRef(),o=f.useRef(0);Gj(t,r.current)||(r.current=t,o.current+=1),SS(e,[o.current],n);};const Kj=Uj;var Xj=/(mac|iphone|ipod|ipad)/i.test(typeof navigator<"u"?navigator==null?void 0:navigator.platform:"");const qj=Xj;var $S={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:qj?[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},Vf={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"?$S.meta.includes(e.keyCode):e.metaKey}};function Yj(e){var t=Object.keys(Vf).reduce(function(n,r){return Vf[r](e)?n+1:n},0);return [16,17,18,91,92].includes(e.keyCode)?t:t+1}function Pp(e,t,n){var r,o;if(!e.key)return !1;if(pS(t))return e.keyCode===t;var i=t.split("."),a=0;try{for(var s=Bf(i),l=s.next();!l.done;l=s.next()){var c=l.value,u=Vf[c],d=$S[c.toLowerCase()];(u&&u(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&&Yj(e)===i.length:a===i.length}function Zj(e,t){return $a(e)?e:ij(e)||pS(e)?function(n){return Pp(n,e,t)}:Array.isArray(e)?function(n){return e.some(function(r){return Pp(n,r,t)})}:function(){return !!e}}var Qj=["keydown"];function cn(e,t,n){var r=n||{},o=r.events,i=o===void 0?Qj:o,a=r.target,s=r.exactMatch,l=s===void 0?!1:s,c=r.useCapture,u=c===void 0?!1:c,d=Ss(t),m=Ss(e);Kj(function(){var h,v,g,p=Ou(a,window);if(p){var b=function(C){var S,$=Zj(m.current,l);if($(C))return (S=d.current)===null||S===void 0?void 0:S.call(d,C)};try{for(var y=Bf(i),w=y.next();!w.done;w=y.next()){var x=w.value;(g=p==null?void 0:p.addEventListener)===null||g===void 0||g.call(p,x,b,u);}}catch(C){h={error:C};}finally{try{w&&!w.done&&(v=y.return)&&v.call(y);}finally{if(h)throw h.error}}return function(){var C,S,$;try{for(var P=Bf(i),O=P.next();!O.done;O=P.next()){var E=O.value;($=p==null?void 0:p.removeEventListener)===null||$===void 0||$.call(p,E,b,u);}}catch(N){C={error:N};}finally{try{O&&!O.done&&(S=P.return)&&S.call(P);}finally{if(C)throw C.error}}}}},[i],a);}function xS(e){var t=f.useRef(0),n=en(f.useState(e),2),r=n[0],o=n[1],i=f.useCallback(function(a){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){o(a);});},[]);return qs(function(){cancelAnimationFrame(t.current);}),[r,i]}var Jj={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 e6=function(e){var t=en(xS(Jj),2),n=t[0],r=t[1];return si("mousemove",function(o){var i=o.screenX,a=o.screenY,s=o.clientX,l=o.clientY,c=o.pageX,u=o.pageY,d={screenX:i,screenY:a,clientX:s,clientY:l,pageX:c,pageY:u,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},m=Ou(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=u-d.elementPosY,d.elementW=p,d.elementH=b;}r(d);},{target:function(){return document}}),n};var t6=function(){var e=f.useRef(!1);return f.useEffect(function(){return e.current=!1,function(){e.current=!0;}},[]),e};const n6=t6,r6=vS(f.useLayoutEffect),o6="_modal-mask_1isor_1",i6="_modal_1isor_1",a6="_modal-header_1isor_23",s6="_modal-body_1isor_30",l6="_modal-title_1isor_35",c6="_btn-close_1isor_42",Hr={modalMask:o6,modal:i6,modalHeader:a6,modalBody:s6,modalTitle:l6,btnClose:c6};let Ba=0;const u6=()=>{Ba++,document.body.style.overflow="hidden";},d6=()=>{Ba--,Ba<0&&(Ba=0),Ba===0&&(document.body.style.overflow="");};function Nh({show:e,onHide:t,children:n,styleModalMask:r,clsModalMask:o,styleModal:i,clsModal:a,width:s,hideWhenMaskOnClick:l=!1,hideWhenEsc:c=!1}){f.useLayoutEffect(()=>{e?u6():d6();},[e]);const u=f.useRef(null),d=Kc(),{bg:m,c:h}=f.useMemo(()=>{const y=window.getComputedStyle(document.body)["background-color"],w=window.getComputedStyle(document.body).color;return {bg:y,c:w}},[d]),v=f.useMemo(()=>d?{"--bg":m,"--c":h,backgroundColor:m,color:h}:{},[m,h,d]),g=f.useId(),p=f.useMemo(()=>{const y=document.createElement("div");return y.setAttribute("data-id","base-modal-"+g),document.body.appendChild(y),y},[]),b=Rt(y=>{var x;const w=y.target;(x=u.current)!=null&&x.contains(w)||w.closest('.ant-tooltip-inner[role="tooltip"]')||w.closest('.ant-popover-inner[role="tooltip"]')||l&&t();});return cn("esc",y=>{e&&c&&(y.preventDefault(),y.stopImmediatePropagation(),setTimeout(t));}),e?zp.createPortal(j("div",{className:U(Hr.modalMask,o),style:r,onClick:b,children:j("div",{className:U(Hr.modal,a),style:{...v,width:s,...i},ref:u,children:n})}),p):null}const Ah=e=>j(No,{...e,name:"Close",size:18,style:{cursor:"pointer",marginLeft:10,...e.style}}),f6="_toast-container_185m9_1",m6="_single-line_185m9_17";function yn(e,t=2e3){const n=document.createElement("div");n.className=f6,n.innerText=e;const{colorPrimary:r}=W4();n.style.backgroundColor=r,!e.includes(`
`)&&!e.includes("<br")&&n.classList.add(m6),document.body.appendChild(n),setTimeout(()=>n.remove(),t);}const h6="请求失败, 请重试 !!!",v6="操作失败, 请重试 !!!";function ES(){return yn(h6)}function OS(){return yn(v6)}function g6(e){const t=ha({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 PS="27eb53fc9058f8c3";async function p6(){var c,u;const t=(await im.get("https://passport.bilibili.com/login/app/third",{params:{appkey:PS,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(!((u=t==null?void 0:t.data)!=null&&u.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 b6(){const e=await p6();if(!e.access_key)return yn(e.errmsg||"");const t=e.access_key;return pt.accessKey=t,yn("获取成功"),t}function y6(){pt.accessKey="",yn("已删除 access_key");}const C6="https://api.bilibili.com",_S="https://app.bilibili.com",Zs=im.create({baseURL:C6,withCredentials:!0});Zs.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 Pu=im.create({adapter:j1});Pu.interceptors.request.use(function(e){return e.params={appkey:PS,access_key:pt.accessKey||"",...e.params},e},function(e){return Promise.reject(e)});Pu.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 IS(){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 S6(){const e=IS().bili_jct;if(!e)throw yn("找不到 csrf token, 请检查是否登录(不可用)"),new Error("找不到 csrf token, 请检查是否登录(不可用)");return e}function RS(){return !!IS().DedeUserID}function MS(){return f.useMemo(()=>RS(),[document.cookie])}const Fa=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,TS=new Set,Gf=typeof process=="object"&&process?process:{},NS=(e,t,n,r)=>{typeof Gf.emitWarning=="function"?Gf.emitWarning(e,t,n,r):console.error(`[${n}] ${t}: ${e}`);};let pc=globalThis.AbortController,_p=globalThis.AbortSignal;var Fp;if(typeof pc>"u"){_p=class{constructor(){ht(this,"onabort");ht(this,"_onabort",[]);ht(this,"reason");ht(this,"aborted",!1);}addEventListener(r,o){this._onabort.push(o);}},pc=class{constructor(){ht(this,"signal",new _p);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=((Fp=Gf.env)==null?void 0:Fp.LRU_CACHE_IGNORE_AC_WARNING)!=="1";const t=()=>{e&&(e=!1,NS("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 w6=e=>!TS.has(e),wo=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),AS=e=>wo(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?kl:null:null;class kl extends Array{constructor(t){super(t),this.fill(0);}}var Xi;const Hi=class{constructor(t,n){ht(this,"heap");ht(this,"length");if(!k(Hi,Xi))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new n(t),this.length=0;}static create(t){const n=AS(t);if(!n)return [];Ge(Hi,Xi,!0);const r=new Hi(t,n);return Ge(Hi,Xi,!1),r}push(t){this.heap[this.length++]=t;}pop(){return this.heap[--this.length]}};let Ll=Hi;Xi=new WeakMap,lt(Ll,Xi,!1);var gr,Gn,Tr,pr,qi,sn,br,ln,Bt,rt,Rn,Un,En,fn,yr,vn,to,no,Cr,Nr,Po,An,$s,Kf,Qo,ro,xs,Kn,$c,DS,Jo,Yi,Es,Ar,$o,Dr,xo,Os,Xf,Zi,Fl,Qi,zl,jt,Vt,Ps,qf,ei,Wa;const Uh=class{constructor(t){lt(this,$s);lt(this,$c);lt(this,Ar);lt(this,Dr);lt(this,Os);lt(this,Zi);lt(this,Qi);lt(this,jt);lt(this,Ps);lt(this,ei);lt(this,gr,void 0);lt(this,Gn,void 0);lt(this,Tr,void 0);lt(this,pr,void 0);lt(this,qi,void 0);ht(this,"ttl");ht(this,"ttlResolution");ht(this,"ttlAutopurge");ht(this,"updateAgeOnGet");ht(this,"updateAgeOnHas");ht(this,"allowStale");ht(this,"noDisposeOnSet");ht(this,"noUpdateTTL");ht(this,"maxEntrySize");ht(this,"sizeCalculation");ht(this,"noDeleteOnFetchRejection");ht(this,"noDeleteOnStaleGet");ht(this,"allowStaleOnFetchAbort");ht(this,"allowStaleOnFetchRejection");ht(this,"ignoreFetchAbort");lt(this,sn,void 0);lt(this,br,void 0);lt(this,ln,void 0);lt(this,Bt,void 0);lt(this,rt,void 0);lt(this,Rn,void 0);lt(this,Un,void 0);lt(this,En,void 0);lt(this,fn,void 0);lt(this,yr,void 0);lt(this,vn,void 0);lt(this,to,void 0);lt(this,no,void 0);lt(this,Cr,void 0);lt(this,Nr,void 0);lt(this,Po,void 0);lt(this,An,void 0);lt(this,Qo,()=>{});lt(this,ro,()=>{});lt(this,xs,()=>{});lt(this,Kn,()=>!1);lt(this,Jo,t=>{});lt(this,Yi,(t,n,r)=>{});lt(this,Es,(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:u,noDisposeOnSet:d,noUpdateTTL:m,maxSize:h=0,maxEntrySize:v=0,sizeCalculation:g,fetchMethod:p,noDeleteOnFetchRejection:b,noDeleteOnStaleGet:y,allowStaleOnFetchRejection:w,allowStaleOnFetchAbort:x,ignoreFetchAbort:C}=t;if(n!==0&&!wo(n))throw new TypeError("max option must be a nonnegative integer");const S=n?AS(n):Array;if(!S)throw new Error("invalid max value: "+n);if(Ge(this,gr,n),Ge(this,Gn,h),this.maxEntrySize=v||k(this,Gn),this.sizeCalculation=g,this.sizeCalculation){if(!k(this,Gn)&&!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,qi,p),Ge(this,Po,!!p),Ge(this,ln,new Map),Ge(this,Bt,new Array(n).fill(void 0)),Ge(this,rt,new Array(n).fill(void 0)),Ge(this,Rn,new S(n)),Ge(this,Un,new S(n)),Ge(this,En,0),Ge(this,fn,0),Ge(this,yr,Ll.create(n)),Ge(this,sn,0),Ge(this,br,0),typeof c=="function"&&Ge(this,Tr,c),typeof u=="function"?(Ge(this,pr,u),Ge(this,vn,[])):(Ge(this,pr,void 0),Ge(this,vn,void 0)),Ge(this,Nr,!!k(this,Tr)),Ge(this,An,!!k(this,pr)),this.noDisposeOnSet=!!d,this.noUpdateTTL=!!m,this.noDeleteOnFetchRejection=!!b,this.allowStaleOnFetchRejection=!!w,this.allowStaleOnFetchAbort=!!x,this.ignoreFetchAbort=!!C,this.maxEntrySize!==0){if(k(this,Gn)!==0&&!wo(k(this,Gn)))throw new TypeError("maxSize must be a positive integer if specified");if(!wo(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");Fe(this,$c,DS).call(this);}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!y,this.updateAgeOnGet=!!a,this.updateAgeOnHas=!!s,this.ttlResolution=wo(o)||o===0?o:1,this.ttlAutopurge=!!i,this.ttl=r||0,this.ttl){if(!wo(this.ttl))throw new TypeError("ttl must be a positive integer if specified");Fe(this,$s,Kf).call(this);}if(k(this,gr)===0&&this.ttl===0&&k(this,Gn)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!k(this,gr)&&!k(this,Gn)){const $="LRU_CACHE_UNBOUNDED";w6($)&&(TS.add($),NS("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",$,Uh));}}static unsafeExposeInternals(t){return {starts:k(t,no),ttls:k(t,Cr),sizes:k(t,to),keyMap:k(t,ln),keyList:k(t,Bt),valList:k(t,rt),next:k(t,Rn),prev:k(t,Un),get head(){return k(t,En)},get tail(){return k(t,fn)},free:k(t,yr),isBackgroundFetch:n=>{var r;return Fe(r=t,jt,Vt).call(r,n)},backgroundFetch:(n,r,o,i)=>{var a;return Fe(a=t,Qi,zl).call(a,n,r,o,i)},moveToTail:n=>{var r;return Fe(r=t,ei,Wa).call(r,n)},indexes:n=>{var r;return Fe(r=t,Ar,$o).call(r,n)},rindexes:n=>{var r;return Fe(r=t,Dr,xo).call(r,n)},isStale:n=>{var r;return k(r=t,Kn).call(r,n)}}}get max(){return k(this,gr)}get maxSize(){return k(this,Gn)}get calculatedSize(){return k(this,br)}get size(){return k(this,sn)}get fetchMethod(){return k(this,qi)}get dispose(){return k(this,Tr)}get disposeAfter(){return k(this,pr)}getRemainingTTL(t){return k(this,ln).has(t)?1/0:0}*entries(){for(const t of Fe(this,Ar,$o).call(this))k(this,rt)[t]!==void 0&&k(this,Bt)[t]!==void 0&&!Fe(this,jt,Vt).call(this,k(this,rt)[t])&&(yield [k(this,Bt)[t],k(this,rt)[t]]);}*rentries(){for(const t of Fe(this,Dr,xo).call(this))k(this,rt)[t]!==void 0&&k(this,Bt)[t]!==void 0&&!Fe(this,jt,Vt).call(this,k(this,rt)[t])&&(yield [k(this,Bt)[t],k(this,rt)[t]]);}*keys(){for(const t of Fe(this,Ar,$o).call(this)){const n=k(this,Bt)[t];n!==void 0&&!Fe(this,jt,Vt).call(this,k(this,rt)[t])&&(yield n);}}*rkeys(){for(const t of Fe(this,Dr,xo).call(this)){const n=k(this,Bt)[t];n!==void 0&&!Fe(this,jt,Vt).call(this,k(this,rt)[t])&&(yield n);}}*values(){for(const t of Fe(this,Ar,$o).call(this))k(this,rt)[t]!==void 0&&!Fe(this,jt,Vt).call(this,k(this,rt)[t])&&(yield k(this,rt)[t]);}*rvalues(){for(const t of Fe(this,Dr,xo).call(this))k(this,rt)[t]!==void 0&&!Fe(this,jt,Vt).call(this,k(this,rt)[t])&&(yield k(this,rt)[t]);}[Symbol.iterator](){return this.entries()}find(t,n={}){for(const r of Fe(this,Ar,$o).call(this)){const o=k(this,rt)[r],i=Fe(this,jt,Vt).call(this,o)?o.__staleWhileFetching:o;if(i!==void 0&&t(i,k(this,Bt)[r],this))return this.get(k(this,Bt)[r],n)}}forEach(t,n=this){for(const r of Fe(this,Ar,$o).call(this)){const o=k(this,rt)[r],i=Fe(this,jt,Vt).call(this,o)?o.__staleWhileFetching:o;i!==void 0&&t.call(n,i,k(this,Bt)[r],this);}}rforEach(t,n=this){for(const r of Fe(this,Dr,xo).call(this)){const o=k(this,rt)[r],i=Fe(this,jt,Vt).call(this,o)?o.__staleWhileFetching:o;i!==void 0&&t.call(n,i,k(this,Bt)[r],this);}}purgeStale(){let t=!1;for(const n of Fe(this,Dr,xo).call(this,{allowStale:!0}))k(this,Kn).call(this,n)&&(this.delete(k(this,Bt)[n]),t=!0);return t}dump(){const t=[];for(const n of Fe(this,Ar,$o).call(this,{allowStale:!0})){const r=k(this,Bt)[n],o=k(this,rt)[n],i=Fe(this,jt,Vt).call(this,o)?o.__staleWhileFetching:o;if(i===void 0||r===void 0)continue;const a={value:i};if(k(this,Cr)&&k(this,no)){a.ttl=k(this,Cr)[n];const s=Fa.now()-k(this,no)[n];a.start=Math.floor(Date.now()-s);}k(this,to)&&(a.size=k(this,to)[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=Fa.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 u=k(this,Es).call(this,t,n,r.size||0,s);if(this.maxEntrySize&&u>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),this.delete(t),this;let d=k(this,sn)===0?void 0:k(this,ln).get(t);if(d===void 0)d=k(this,sn)===0?k(this,fn):k(this,yr).length!==0?k(this,yr).pop():k(this,sn)===k(this,gr)?Fe(this,Zi,Fl).call(this,!1):k(this,sn),k(this,Bt)[d]=t,k(this,rt)[d]=n,k(this,ln).set(t,d),k(this,Rn)[k(this,fn)]=d,k(this,Un)[d]=k(this,fn),Ge(this,fn,d),rl(this,sn)._++,k(this,Yi).call(this,d,u,l),l&&(l.set="add"),c=!1;else {Fe(this,ei,Wa).call(this,d);const g=k(this,rt)[d];if(n!==g){if(k(this,Po)&&Fe(this,jt,Vt).call(this,g)?g.__abortController.abort(new Error("replaced")):a||(k(this,Nr)&&((m=k(this,Tr))==null||m.call(this,g,t,"set")),k(this,An)&&((h=k(this,vn))==null||h.push([g,t,"set"]))),k(this,Jo).call(this,d),k(this,Yi).call(this,d,u,l),k(this,rt)[d]=n,l){l.set="replace";const p=g&&Fe(this,jt,Vt).call(this,g)?g.__staleWhileFetching:g;p!==void 0&&(l.oldValue=p);}}else l&&(l.set="update");}if(o!==0&&!k(this,Cr)&&Fe(this,$s,Kf).call(this),k(this,Cr)&&(c||k(this,xs).call(this,d,o,i),l&&k(this,ro).call(this,l,d)),!a&&k(this,An)&&k(this,vn)){const g=k(this,vn);let p;for(;p=g==null?void 0:g.shift();)(v=k(this,pr))==null||v.call(this,...p);}return this}pop(){var t;try{for(;k(this,sn);){const n=k(this,rt)[k(this,En)];if(Fe(this,Zi,Fl).call(this,!0),Fe(this,jt,Vt).call(this,n)){if(n.__staleWhileFetching)return n.__staleWhileFetching}else if(n!==void 0)return n}}finally{if(k(this,An)&&k(this,vn)){const n=k(this,vn);let r;for(;r=n==null?void 0:n.shift();)(t=k(this,pr))==null||t.call(this,...r);}}}has(t,n={}){const{updateAgeOnHas:r=this.updateAgeOnHas,status:o}=n,i=k(this,ln).get(t);if(i!==void 0){const a=k(this,rt)[i];if(Fe(this,jt,Vt).call(this,a)&&a.__staleWhileFetching===void 0)return !1;if(k(this,Kn).call(this,i))o&&(o.has="stale",k(this,ro).call(this,o,i));else return r&&k(this,Qo).call(this,i),o&&(o.has="hit",k(this,ro).call(this,o,i)),!0}else o&&(o.has="miss");return !1}peek(t,n={}){const{allowStale:r=this.allowStale}=n,o=k(this,ln).get(t);if(o!==void 0&&(r||!k(this,Kn).call(this,o))){const i=k(this,rt)[o];return Fe(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:u=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:y}=n;if(!k(this,Po))return b&&(b.fetch="get"),this.get(t,{allowStale:r,updateAgeOnGet:o,noDeleteOnStaleGet:i,status:b});const w={allowStale:r,updateAgeOnGet:o,noDeleteOnStaleGet:i,ttl:a,noDisposeOnSet:s,size:l,sizeCalculation:c,noUpdateTTL:u,noDeleteOnFetchRejection:d,allowStaleOnFetchRejection:m,allowStaleOnFetchAbort:v,ignoreFetchAbort:h,status:b,signal:y};let x=k(this,ln).get(t);if(x===void 0){b&&(b.fetch="miss");const C=Fe(this,Qi,zl).call(this,t,x,w,g);return C.__returned=C}else {const C=k(this,rt)[x];if(Fe(this,jt,Vt).call(this,C)){const E=r&&C.__staleWhileFetching!==void 0;return b&&(b.fetch="inflight",E&&(b.returnedStale=!0)),E?C.__staleWhileFetching:C.__returned=C}const S=k(this,Kn).call(this,x);if(!p&&!S)return b&&(b.fetch="hit"),Fe(this,ei,Wa).call(this,x),o&&k(this,Qo).call(this,x),b&&k(this,ro).call(this,b,x),C;const $=Fe(this,Qi,zl).call(this,t,x,w,g),O=$.__staleWhileFetching!==void 0&&r;return b&&(b.fetch=S?"stale":"refresh",O&&S&&(b.returnedStale=!0)),O?$.__staleWhileFetching:$.__returned=$}}get(t,n={}){const{allowStale:r=this.allowStale,updateAgeOnGet:o=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,status:a}=n,s=k(this,ln).get(t);if(s!==void 0){const l=k(this,rt)[s],c=Fe(this,jt,Vt).call(this,l);return a&&k(this,ro).call(this,a,s),k(this,Kn).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:(Fe(this,ei,Wa).call(this,s),o&&k(this,Qo).call(this,s),l))}else a&&(a.get="miss");}delete(t){var r,o,i,a;let n=!1;if(k(this,sn)!==0){const s=k(this,ln).get(t);if(s!==void 0)if(n=!0,k(this,sn)===1)this.clear();else {k(this,Jo).call(this,s);const l=k(this,rt)[s];Fe(this,jt,Vt).call(this,l)?l.__abortController.abort(new Error("deleted")):(k(this,Nr)||k(this,An))&&(k(this,Nr)&&((r=k(this,Tr))==null||r.call(this,l,t,"delete")),k(this,An)&&((o=k(this,vn))==null||o.push([l,t,"delete"]))),k(this,ln).delete(t),k(this,Bt)[s]=void 0,k(this,rt)[s]=void 0,s===k(this,fn)?Ge(this,fn,k(this,Un)[s]):s===k(this,En)?Ge(this,En,k(this,Rn)[s]):(k(this,Rn)[k(this,Un)[s]]=k(this,Rn)[s],k(this,Un)[k(this,Rn)[s]]=k(this,Un)[s]),rl(this,sn)._--,k(this,yr).push(s);}}if(k(this,An)&&((i=k(this,vn))!=null&&i.length)){const s=k(this,vn);let l;for(;l=s==null?void 0:s.shift();)(a=k(this,pr))==null||a.call(this,...l);}return n}clear(){var t,n,r;for(const o of Fe(this,Dr,xo).call(this,{allowStale:!0})){const i=k(this,rt)[o];if(Fe(this,jt,Vt).call(this,i))i.__abortController.abort(new Error("deleted"));else {const a=k(this,Bt)[o];k(this,Nr)&&((t=k(this,Tr))==null||t.call(this,i,a,"delete")),k(this,An)&&((n=k(this,vn))==null||n.push([i,a,"delete"]));}}if(k(this,ln).clear(),k(this,rt).fill(void 0),k(this,Bt).fill(void 0),k(this,Cr)&&k(this,no)&&(k(this,Cr).fill(0),k(this,no).fill(0)),k(this,to)&&k(this,to).fill(0),Ge(this,En,0),Ge(this,fn,0),k(this,yr).length=0,Ge(this,br,0),Ge(this,sn,0),k(this,An)&&k(this,vn)){const o=k(this,vn);let i;for(;i=o==null?void 0:o.shift();)(r=k(this,pr))==null||r.call(this,...i);}}};let Uf=Uh;gr=new WeakMap,Gn=new WeakMap,Tr=new WeakMap,pr=new WeakMap,qi=new WeakMap,sn=new WeakMap,br=new WeakMap,ln=new WeakMap,Bt=new WeakMap,rt=new WeakMap,Rn=new WeakMap,Un=new WeakMap,En=new WeakMap,fn=new WeakMap,yr=new WeakMap,vn=new WeakMap,to=new WeakMap,no=new WeakMap,Cr=new WeakMap,Nr=new WeakMap,Po=new WeakMap,An=new WeakMap,$s=new WeakSet,Kf=function(){const t=new kl(k(this,gr)),n=new kl(k(this,gr));Ge(this,Cr,t),Ge(this,no,n),Ge(this,xs,(i,a,s=Fa.now())=>{if(n[i]=a!==0?s:0,t[i]=a,a!==0&&this.ttlAutopurge){const l=setTimeout(()=>{k(this,Kn).call(this,i)&&this.delete(k(this,Bt)[i]);},a+1);l.unref&&l.unref();}}),Ge(this,Qo,i=>{n[i]=t[i]!==0?Fa.now():0;}),Ge(this,ro,(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=Fa.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=k(this,ln).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,Kn,i=>t[i]!==0&&n[i]!==0&&(r||o())-n[i]>t[i]);},Qo=new WeakMap,ro=new WeakMap,xs=new WeakMap,Kn=new WeakMap,$c=new WeakSet,DS=function(){const t=new kl(k(this,gr));Ge(this,br,0),Ge(this,to,t),Ge(this,Jo,n=>{Ge(this,br,k(this,br)-t[n]),t[n]=0;}),Ge(this,Es,(n,r,o,i)=>{if(Fe(this,jt,Vt).call(this,r))return 0;if(!wo(o))if(i){if(typeof i!="function")throw new TypeError("sizeCalculation must be a function");if(o=i(r,n),!wo(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,Yi,(n,r,o)=>{if(t[n]=r,k(this,Gn)){const i=k(this,Gn)-t[n];for(;k(this,br)>i;)Fe(this,Zi,Fl).call(this,!0);}Ge(this,br,k(this,br)+t[n]),o&&(o.entrySize=r,o.totalCalculatedSize=k(this,br));});},Jo=new WeakMap,Yi=new WeakMap,Es=new WeakMap,Ar=new WeakSet,$o=function*({allowStale:t=this.allowStale}={}){if(k(this,sn))for(let n=k(this,fn);!(!Fe(this,Os,Xf).call(this,n)||((t||!k(this,Kn).call(this,n))&&(yield n),n===k(this,En)));)n=k(this,Un)[n];},Dr=new WeakSet,xo=function*({allowStale:t=this.allowStale}={}){if(k(this,sn))for(let n=k(this,En);!(!Fe(this,Os,Xf).call(this,n)||((t||!k(this,Kn).call(this,n))&&(yield n),n===k(this,fn)));)n=k(this,Rn)[n];},Os=new WeakSet,Xf=function(t){return t!==void 0&&k(this,ln).get(k(this,Bt)[t])===t},Zi=new WeakSet,Fl=function(t){var i,a;const n=k(this,En),r=k(this,Bt)[n],o=k(this,rt)[n];return k(this,Po)&&Fe(this,jt,Vt).call(this,o)?o.__abortController.abort(new Error("evicted")):(k(this,Nr)||k(this,An))&&(k(this,Nr)&&((i=k(this,Tr))==null||i.call(this,o,r,"evict")),k(this,An)&&((a=k(this,vn))==null||a.push([o,r,"evict"]))),k(this,Jo).call(this,n),t&&(k(this,Bt)[n]=void 0,k(this,rt)[n]=void 0,k(this,yr).push(n)),k(this,sn)===1?(Ge(this,En,Ge(this,fn,0)),k(this,yr).length=0):Ge(this,En,k(this,Rn)[n]),k(this,ln).delete(r),rl(this,sn)._--,n},Qi=new WeakSet,zl=function(t,n,r,o){const i=n===void 0?void 0:k(this,rt)[n];if(Fe(this,jt,Vt).call(this,i))return i;const a=new pc,{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,y=r.ignoreFetchAbort&&g!==void 0;if(r.status&&(b&&!p?(r.status.fetchAborted=!0,r.status.fetchError=a.signal.reason,y&&(r.status.fetchAbortIgnored=!0)):r.status.fetchResolved=!0),b&&!y&&!p)return d(a.signal.reason);const w=h;return k(this,rt)[n]===h&&(g===void 0?w.__staleWhileFetching?k(this,rt)[n]=w.__staleWhileFetching:this.delete(t):(r.status&&(r.status.fetchUpdated=!0),this.set(t,g,l.options))),g},u=g=>(r.status&&(r.status.fetchRejected=!0,r.status.fetchError=g),d(g)),d=g=>{const{aborted:p}=a.signal,b=p&&r.allowStaleOnFetchAbort,y=b||r.allowStaleOnFetchRejection,w=y||r.noDeleteOnFetchRejection,x=h;if(k(this,rt)[n]===h&&(!w||x.__staleWhileFetching===void 0?this.delete(t):b||(k(this,rt)[n]=x.__staleWhileFetching)),y)return r.status&&x.__staleWhileFetching!==void 0&&(r.status.returnedStale=!0),x.__staleWhileFetching;if(x.__returned===x)throw g},m=(g,p)=>{var y;const b=(y=k(this,qi))==null?void 0:y.call(this,t,i,l);b&&b instanceof Promise&&b.then(w=>g(w),p),a.signal.addEventListener("abort",()=>{(!r.ignoreFetchAbort||r.allowStaleOnFetchAbort)&&(g(),r.allowStaleOnFetchAbort&&(g=w=>c(w,!0)));});};r.status&&(r.status.fetchDispatched=!0);const h=new Promise(m).then(c,u),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=k(this,ln).get(t)):k(this,rt)[n]=v,v},jt=new WeakSet,Vt=function(t){if(!k(this,Po))return !1;const n=t;return !!n&&n instanceof Promise&&n.hasOwnProperty("__staleWhileFetching")&&n.__abortController instanceof pc},Ps=new WeakSet,qf=function(t,n){k(this,Un)[n]=t,k(this,Rn)[t]=n;},ei=new WeakSet,Wa=function(t){t!==k(this,fn)&&(t===k(this,En)?Ge(this,En,k(this,Rn)[t]):Fe(this,Ps,qf).call(this,k(this,Un)[t],k(this,Rn)[t]),Fe(this,Ps,qf).call(this,k(this,fn),t),Ge(this,fn,t));};async function $6(e){return (await Zs.get("/pvideo",{params:{aid:e}})).data.data}async function x6(e){return []}const Ed=new Uf({max:200});async function E6(e){if(Ed.has(e))return Ed.get(e);const[t,n]=await Promise.all([$6(e),x6()]);return Ed.set(e,{pvideoData:t,dmData:n}),{pvideoData:t,dmData:n}}function kS(e){return async function(n){const r=new FormData;r.append("aid",n),r.append("csrf",S6());const i=(await Zs.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||yn((i==null?void 0:i.message)||"出错了"),a}}const O6=kS("add"),P6=kS("del"),LS=e=>{const t={dislike:"/x/feed/dislike",cancel:"/x/feed/dislike/cancel"}[e];return async function(n,r){const i=(await Pu.get(_S+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"}},_6=LS("dislike"),I6=LS("cancel"),R6="_modal_1rloz_1",M6="_title-desc_1rloz_4",T6="_reason-list_1rloz_8",N6="_reason_1rloz_8",A6="_active_1rloz_29",D6="_reason-no_1rloz_33",k6="_tips-container_1rloz_47",L6="_tips_1rloz_47",lr={modal:R6,titleDesc:M6,reasonList:T6,reason:N6,active:A6,reasonNo:D6,tipsContainer:k6,tips:L6},_u=g6();function F6(){return fi(_u)}function z6(e){const t=F6();if(e)return t.get(e)}function j6({show:e,onHide:t,item:n}){const[r,o]=f.useState(!1),i=Rt(async v=>{if(!n)return;let g=!1,p;try{o(!0),g=await _6(n,v.id);}catch(b){p=b;}finally{o(!1);}if(p)return console.error(p.stack||p),ES();g?yn("已标记不想看"):OS(),g&&(_u.set(n.param,{...v}),t());}),a=f.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"];cn(l,v=>{if(!s()||!l.includes(v.key))return;const g=Number(v.key)-1;u(g);const p=document.querySelectorAll(`.${lr.reason}`)[g]||null;p==null||p.click();});const[c,u]=f.useState(a.length-1);r6(()=>{u(a.length-1);},[a]);const d=v=>()=>{if(!s())return;const g=c+v;g<0||g>a.length-1||u(g);};cn("leftarrow",d(-1)),cn("rightarrow",d(1)),cn("uparrow",d(-2)),cn("downarrow",d(2)),cn("enter",v=>{var g;s()&&(c<0||c>a.length-1||(v.preventDefault(),v.stopImmediatePropagation(),(g=document.querySelector(`.${lr.reason}.${lr.active}`))==null||g.click()));});const m=f.useMemo(()=>{var v;return ((v=a[c])==null?void 0:v.name)||""},[a,c]),{colorPrimary:h}=wa();return ve(Nh,{show:e,onHide:t,clsModal:lr.modal,hideWhenMaskOnClick:!0,hideWhenEsc:!0,children:[ve("div",{className:Hr.modalHeader,children:[ve("div",{className:Hr.modalTitle,children:["我不想看",j("span",{className:lr.titleDesc,children:"(选择后将减少相似内容推荐)"})]}),j("div",{className:"space",style:{flex:1}}),j(Ah,{onClick:t})]}),ve("div",{className:Hr.modalBody,children:[j("div",{className:lr.reasonList,children:a.map((v,g)=>ve("button",{className:U(lr.reason,{[lr.active]:g===c}),style:{...g===c&&{borderColor:h}},"data-id":v.id,onClick:()=>{u(g),i(v);},disabled:r,children:[j("span",{className:lr.reasonNo,style:{backgroundColor:h},children:g+1}),v.name]},v.id))}),ve("div",{className:lr.tipsContainer,children:[ve("div",{className:lr.tips,children:[j(No,{name:"Info",size:15,style:{marginRight:5}}),"使用删除键打开弹框, 数字键选择, Esc 关闭"]}),m&&ve("div",{className:lr.tips,children:[j(No,{name:"Info",size:15,style:{marginRight:5}}),"已选择「",m,"」, 回车键提交"]})]})]})]})}const jl={show:!1,onHide:zS,item:null},FS=ha({value:jl.show}),H6=function(){return fi(FS).value};function zS(){setTimeout(()=>{jS({show:!1,item:null});});}function jS(e){Object.assign(jl,e),FS.value=jl.show,B6().render(j(j6,{...jl,onHide:zS}));}let Od;function B6(){if(!Od){const e=document.createElement("div");e.classList.add("show-dislike-container"),document.body.appendChild(e),Od=$u(e);}return Od}function W6(e){e!=null&&e.param&&_u.has(e.param)||jS({show:!0,item:e});}function Iu(){const{onlyFollowMode:e,useDynamicApi:t}=cr();return MS()?e?"onlyFollow":t?"dynamic":"normal":"normal"}function HS(){const{onlyFollowMode:e,useDynamicApi:t}=pt;return RS()?e?"onlyFollow":t?"dynamic":"normal":"normal"}function V6(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 BS(e){return e||(e=0),Ms.duration(e||0,"seconds").format(e>=3600?"HH:mm:ss":"mm:ss")}function Pd(e){if(!e)return "";if(e<=9999)return e.toString();let t=(e/1e4).toFixed(1);return t=t.replace(/\.0$/,""),`${t}万`}function bc(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 G6=Ms().format("YYYY");function WS(e){if(!e)return "";const t=Ms.unix(e);return t.format("YYYY")===G6?t.format("M-D"):t.format("YY-M-D")}const U6="_bili-video-card_mlccj_1",K6="_image-wrapper_mlccj_4",X6="_preview-card-wrapper_mlccj_8",q6="_preview-card-inner_mlccj_21",Y6="_watch-later_mlccj_25",Z6="_badge_mlccj_28",Q6="_recommend-reason_mlccj_37",J6="_bangumi-desc_mlccj_52",eH="_btn-dislike_mlccj_55",tH="_btn-dislike-icon_mlccj_70",nH="_btn-dislike-tip_mlccj_77",rH="_disliked-wrapper_mlccj_92",oH="_dislike-content-cover_mlccj_106",iH="_dislike-content-cover-inner_mlccj_112",aH="_dislike-icon_mlccj_123",sH="_dislike-reason_mlccj_126",lH="_dislike-desc_mlccj_130",cH="_dislike-content-action_mlccj_134",uH="_skeleton-active_mlccj_151",dH="_ant-skeleton-loading_mlccj_1",un={biliVideoCard:U6,imageWrapper:K6,previewCardWrapper:X6,previewCardInner:q6,watchLater:Y6,badge:Z6,recommendReason:Q6,bangumiDesc:J6,btnDislike:eH,btnDislikeIcon:tH,btnDislikeTip:nH,dislikedWrapper:rH,dislikeContentCover:oH,dislikeContentCoverInner:iH,dislikeIcon:aH,dislikeReason:sH,dislikeDesc:lH,dislikeContentAction:cH,skeletonActive:uH,antSkeletonLoading:dH};function fH(...e){for(const t of e)if(!isNaN(t))return t;return 0}function mH({className:e,videoDuration:t,pvideo:n,mouseEnterRelativeX:r,previewAnimationProgress:o}){const i=f.useRef(null),a=e6(i),[s,l]=f.useState(()=>({width:0,height:0}));Eu(()=>{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=fH(a.elementX,r||0);s.width&&d&&!isNaN(d)&&(c=d/s.width,c<0&&(c=0),c>1&&(c=1));}const u={videoDuration:t,pvideo:n,elWidth:s.width,elHeight:s.height,progress:c};return j("div",{ref:i,className:U(un.previewCardWrapper,e),children:!!(n&&s.width&&s.height&&c)&&j(hH,{...u})})}function hH({videoDuration:e,pvideo:t,elWidth:n,elHeight:r,progress:o}){var C;const i=Math.floor((e||0)*o);let a=f.useMemo(()=>{const S=(t==null?void 0:t.index)||[];let $=gH(S,i);return $!==-1?$:i>S[S.length-1]?($=Math.floor(S.length*o)-1,$<0&&($=0),$):0},[t,i]);const{img_x_len:s,img_y_len:l,img_x_size:c,img_y_size:u}=t,d=l*s;a=a+1;const m=Math.floor(a/d),h=a-m*d,v=((C=t.image)==null?void 0:C[m])||"",g=Math.floor(h/s)+1,p=h-(g-1)*s,b=n*s,y=r*l,w=(g-1)*r,x=(p-1)*n;return j("div",{className:un.previewCardInner,style:{backgroundColor:"black",backgroundImage:`url(${v})`,backgroundPosition:`-${x}px -${w}px`,backgroundSize:`${b}px ${y}px`},children:j(vH,{progress:o})})}function vH({progress:e}){const{colorPrimary:t}=wa();return j("div",{className:"track",style:{position:"absolute",bottom:0,left:0,backgroundColor:"#eee",width:"100%",height:2},children:j("div",{className:"bar",style:{backgroundColor:t,height:"100%",width:`${e*100}%`}})})}function gH(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 Va={play:"#widget-video-play-count",danmaku:"#widget-video-danmaku",like:"#widget-agree",bangumiFollow:"#widget-followed"},ws={1:"play",2:"like",3:"danmaku",4:"bangumiFollow",20:"like"},pH={bangumiFollow:1.3},bH=e=>{const t=ws[e]||ws[1];return Va[t]},yH=e=>{const t=ws[e];if(t)return pH[t]};function Ip(e){return {iconSvgName:bH(e),iconSvgScale:yH(e)}}const as=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 Eo=as;ht(Eo,"TABEL","fZodR9XQDSUm21yCkr6zBqiveYah8bt4xsWpHnJE7jL5VG3guMTKNPAwcF"),ht(Eo,"TR",{}),ht(Eo,"S",[11,10,3,8,4,6]),ht(Eo,"XOR",177451812),ht(Eo,"ADD",8728348608),(()=>{const t=as.TABEL.length;for(let n=0;n<t;n++)as.TR[as.TABEL[n]]=n;})();function VS(e){const t=e.api==="pc",n=e.api==="app";return e.api,t?CH(e):n?SH(e):wH(e)}function CH(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,pubdate:WS(e.pubdate),duration:e.duration,durationStr:BS(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 SH(e){var i,a,s;const t=l=>{const{cover_left_icon_1:c,cover_left_text_1:u,cover_left_icon_2:d,cover_left_text_2:m}=e;if(c&&ws[c]===l)return bc(u);if(d&&ws[d]===l)return bc(m)},n=e.param,r=Eo.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(`[${Ao}]: 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,pubdate:void 0,duration:((i=e.player_args)==null?void 0:i.duration)||0,durationStr:BS((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 wH(e){const t=e.modules.module_dynamic.major.archive,n=e.modules.module_author,r=Ms().subtract(2,"days").unix(),o=(()=>{const i=n.pub_ts;return i>r?n.pub_time:WS(i)})();return {avid:t.aid,bvid:t.bvid,goto:"av",href:`/video/${t.bvid}/`,title:t.title,coverRaw:t.cover,pubts:n.pub_ts,pubdate:o,duration:V6(t.duration_text)||0,durationStr:t.duration_text,recommendReason:t.badge.text,play:bc(t.stat.play),danmaku:bc(t.stat.danmaku),like:void 0,coin:void 0,favorite:void 0,authorName:n.name,authorFace:n.face,authorMid:n.mid.toString()}}const $H=e=>(e||"").replace(/^http:\/\//,"https://");function Rp(e){GM_setClipboard(e),yn(`已复制: ${e}`);}const yc=f.memo(f.forwardRef(function({style:t,className:n,item:r,loading:o,active:i,...a},s){o=o??!r;const l=ve("div",{className:U("bili-video-card__skeleton",{hide:!o,[un.skeletonActive]:o}),children:[j("div",{className:"bili-video-card__skeleton--cover"}),j("div",{className:"bili-video-card__skeleton--info",children:ve("div",{className:"bili-video-card__skeleton--right",children:[j("p",{className:"bili-video-card__skeleton--text"}),j("p",{className:"bili-video-card__skeleton--text short"}),j("p",{className:"bili-video-card__skeleton--light"})]})})]}),c=z6((r==null?void 0:r.api)==="app"&&r.param),u=f.useRef(null),d=f.useRef(null);return f.useImperativeHandle(s,()=>({async onCancelDislike(){var m;await((m=u.current)==null?void 0:m.onCancelDislike());},async onToggleWatchLater(){var m;await((m=d.current)==null?void 0:m.onToggleWatchLater());},onTriggerDislike(){var m;(m=d.current)==null||m.onTriggerDislike();},onStartPreviewAnimation(){var m;(m=d.current)==null||m.onStartPreviewAnimation();},onHotkeyPreviewAnimation(){var m;(m=d.current)==null||m.onHotkeyPreviewAnimation();}}),[u,d]),ve("div",{style:t,className:U("bili-video-card",un.biliVideoCard,n),...a,children:[l,!o&&r&&(c?j(xH,{ref:u,item:r,dislikedReason:c}):j(EH,{ref:d,item:r,active:i}))]})})),xH=f.memo(f.forwardRef(function({dislikedReason:t,item:n},r){const o=Rt(async()=>{if(!(t!=null&&t.id))return;let i=!1,a;try{i=await I6(n,t.id);}catch(s){a=s;}if(a)return console.error(a.stack||a),ES();i?yn("已撤销"):OS(),i&&_u.delete(n.param);});return f.useImperativeHandle(r,()=>({onCancelDislike:o}),[]),ve("div",{className:U(un.dislikedWrapper),children:[j("div",{className:un.dislikeContentCover,children:ve("div",{className:un.dislikeContentCoverInner,children:[j(No,{name:"DistraughtFace",size:32,className:un.dislikeIcon}),j("div",{className:un.dislikeReason,children:t==null?void 0:t.name}),j("div",{className:un.dislikeDesc,children:(t==null?void 0:t.toast)||"将减少此类内容推荐"})]})}),j("div",{className:un.dislikeContentAction,children:ve("button",{onClick:o,children:[j(No,{name:"Return",size:"16",style:{marginRight:4,marginTop:-2}}),"撤销"]})})]})})),EH=f.memo(f.forwardRef(function({item:t,active:n=!1},r){const o=t.api==="pc",i=t.api==="app",a=t.api==="dynamic",{avid:s,bvid:l,goto:c,href:u,title:d,coverRaw:m,pubdate:h,duration:v,durationStr:g,recommendReason:p,play:b,like:y,coin:w,danmaku:x,favorite:C,authorName:S,authorFace:$,authorMid:P,appBadge:O,appBadgeDesc:E}=f.useMemo(()=>VS(t),[t]),N=a||t.goto==="av";["av","bangumi","picture"].includes(c)||console.warn(`[${Ao}]: none (av,bangumi,picture) goto type %s`,c,t);const I=f.useMemo(()=>$H(m),[m]),[R,_]=f.useState(null),M=f.useRef(!1),A=Rt(async()=>{if(!R&&!M.current)try{M.current=!0,_(await E6(s));}finally{M.current=!1;}}),T=f.useRef(null),[D,L]=f.useState(void 0);si("mouseenter",_e=>{var dt;const Le=(dt=T.current)==null?void 0:dt.getBoundingClientRect();if(!Le)return;const{x:Re}=Le,Ke=_e.pageX-window.pageXOffset-Re;L(Ke);},{target:T});const z=xd(T),{autoPreviewWhenHover:V}=cr(),{onStartPreviewAnimation:F,onHotkeyPreviewAnimation:G,previewAnimationProgress:H}=OH({bvid:l,title:d,autoPreviewWhenHover:V,active:n,tryFetchVideoData:A,videoPreviewWrapperRef:T});gc(()=>{n&&(unsafeWindow[`${Uw}_activeItem`]=t,pt.autoPreviewWhenKeyboardSelect&&F());},[n]);const K=f.useRef(null),te=xd(K),[Z,Y]=f.useState(!1),{accessKey:ee}=cr(),re=!!ee;f.useEffect(()=>{z&&A();},[z]),f.useImperativeHandle(r,()=>({onToggleWatchLater:oe,onTriggerDislike:ue,onStartPreviewAnimation:F,onHotkeyPreviewAnimation:G}),[]);const[ae,ce]=f.useState(!1),oe=Rt(async _e=>{if(_e==null||_e.preventDefault(),ae)return;ce(!0);const Le=Z?P6:O6;let Re=!1;try{Re=await Le(s);}finally{ce(!1);}Re&&Y(Ke=>!Ke);}),me=f.useRef(null),ye=xd(me),ue=Rt(_e=>{_e==null||_e.stopPropagation(),_e==null||_e.preventDefault(),i&&W6(t);}),he=f.useMemo(()=>Pd(b),[b]),ne=f.useMemo(()=>Pd(y),[y]),fe=f.useMemo(()=>Pd(C),[C]),le=o?ne:fe,se=({text:_e,iconSvgName:Le,iconSvgScale:Re})=>ve("span",{className:"bili-video-card__stats--item",children:[j("svg",{className:"bili-video-card__stats--icon",style:{transform:Re?`scale(${Re})`:void 0},children:j("use",{href:Le})}),j("span",{className:"bili-video-card__stats--text",children:_e})]}),Ie=[{key:"open-link",label:"打开",onClick(){window.open(u,"_blank");}},{type:"divider"},{key:"copy-link",label:"复制视频链接",onClick(){let _e=u;u.startsWith("/")&&(_e=new URL(u,location.href).href),Rp(_e);}},{key:"copy-bvid",label:"复制 BVID",onClick(){Rp(l);}},...navigator.userAgent.toLowerCase().includes("mac")?[{type:"divider"},{key:"open-in-iina",label:"在 IINA 中打开",onClick(){const _e=new URL(u,location.href).href,Le=`iina://open?url=${encodeURIComponent(_e)}`;window.open(Le,"_self");}}]:[]];return ve("div",{className:"bili-video-card__wrap __scale-wrap",children:[j(a5,{menu:{items:Ie},trigger:["contextMenu"],children:j("a",{href:u,target:"_blank",children:ve("div",{className:"bili-video-card__image __scale-player-wrap",ref:T,children:[ve("div",{className:U("bili-video-card__image--wrap",un.imageWrapper),children:[ve("picture",{className:"v-img bili-video-card__cover",children:[j("source",{srcSet:`${I}@672w_378h_1c_!web-home-common-cover.avif`,type:"image/avif"}),j("source",{srcSet:`${I}@672w_378h_1c_!web-home-common-cover.webp`,type:"image/webp"}),j("img",{src:`${I}@672w_378h_1c_!web-home-common-cover`,alt:d,loading:"eager"})]}),(z||typeof H=="number")&&j(mH,{videoDuration:v,pvideo:R==null?void 0:R.pvideoData,mouseEnterRelativeX:D,previewAnimationProgress:H}),ve("div",{className:`bili-watch-later ${un.watchLater}`,style:{display:z||n?"flex":"none"},ref:K,onClick:oe,children:[j("svg",{className:"bili-watch-later__icon",children:j("use",{href:Z?"#widget-watch-save":"#widget-watch-later"})}),j("span",{className:"bili-watch-later__tip",style:{display:te?"block":"none"},children:Z?"移除":"稍后再看"})]}),i&&re&&ve("div",{ref:me,className:un.btnDislike,onClick:ue,style:{display:z?"flex":"none"},children:[j("svg",{className:un.btnDislikeIcon,children:j("use",{href:"#widget-close"})}),j("span",{className:un.btnDislikeTip,style:{display:ye?"block":"none"},children:"我不想看"})]})]}),j("div",{className:"bili-video-card__mask",children:ve("div",{className:"bili-video-card__stats",children:[j("div",{className:"bili-video-card__stats--left",children:o?ve(Gt,{children:[se({text:he,iconSvgName:Va.play}),se({text:c==="av"?ne:le,iconSvgName:Va.like})]}):i?ve(Gt,{children:[t.cover_left_text_1&&se({...Ip(t.cover_left_icon_1),text:c==="picture"?t.cover_left_text_1+(t.cover_left_1_content_description||""):t.cover_left_text_1}),t.cover_left_text_2&&se({...Ip(t.cover_left_icon_2),text:c==="picture"?t.cover_left_text_2+(t.cover_left_2_content_description||""):t.cover_left_text_2})]}):ve(Gt,{children:[se({text:he,iconSvgName:Va.play}),se({text:(x||0).toString(),iconSvgName:Va.danmaku})]})}),j("span",{className:"bili-video-card__stats__duration",children:N&&g})]})})]})})}),j("div",{className:"bili-video-card__info __scale-disable",children:ve("div",{className:"bili-video-card__info--right",children:[j("a",{href:u,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:j("h3",{className:"bili-video-card__info--tit",title:d,children:d})}),j("p",{className:"bili-video-card__info--bottom",children:N?ve("a",{className:"bili-video-card__info--owner",href:`//space.bilibili.com/${P}`,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:[p?j("span",{className:un.recommendReason,children:p}):j("svg",{className:"bili-video-card__info--owner__up",children:j("use",{href:"#widget-up"})}),j("span",{className:"bili-video-card__info--author",children:S}),h&&ve("span",{className:"bili-video-card__info--date",children:["· ",h]})]}):O||E?ve("a",{className:"bili-video-card__info--owner",href:u,target:"_blank",children:[j("span",{className:un.badge,children:O||""}),j("span",{className:un.bangumiDesc,children:E||""})]}):null})]})})]})}));function OH({bvid:e,title:t,autoPreviewWhenHover:n,active:r,tryFetchVideoData:o,videoPreviewWrapperRef:i}){const[s,l]=xS(void 0),[c,u]=f.useState(!1),d=f.useRef(!1),m=f.useRef(!1);si("mouseenter",P=>{d.current=!0,n&&!v.current&&$(!0);},{target:i}),si("mouseleave",P=>{d.current=!1;},{target:i}),si("mousemove",P=>{u(!0),n||p();},{target:i});const h=n6(),v=f.useRef(void 0),g=Rt(()=>{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=Rt((P=!1)=>{v.current&&cancelAnimationFrame(v.current),v.current=void 0,l(void 0),y(!1);}),[b,y,w]=wS(!1),x=f.useRef(),C=Rt(()=>{var P;if(!v.current){$();return}y(O=>!O),b&&((P=x.current)==null||P.call(x,s||0));}),S=Rt(()=>s||0),$=Rt((P=!1)=>{m.current=P,u(!1),y(!1),o(),p(!0),l(_=>typeof _>"u"?0:_);const O=8e3,E=()=>typeof pt.autoPreviewUpdateInterval=="number"?pt.autoPreviewUpdateInterval:400;let N=performance.now(),I=0;x.current=()=>{N=performance.now()-S()*O;};function R(_){if(g()){p();return}const M=()=>{const A=performance.now()-N,T=Math.min(A%O/O,1);l(T);};w()||(E()?(!I||performance.now()-I>=E())&&(I=performance.now(),M()):M()),v.current=requestAnimationFrame(R);}v.current=requestAnimationFrame(R);});return {onHotkeyPreviewAnimation:C,onStartPreviewAnimation:$,previewAnimationProgress:s}}const Mp=()=>document.querySelector(".bili-header__bar");function PH(){return !!(Mp()&&window.getComputedStyle(Mp()).display==="none")}function Yf(){if(!PH())return 64;if(!document.body.classList.contains("fixed-navbar"))return 0;const t=document.documentElement.style.getPropertyValue("--navbar-height");if(!t)return 50;const n=Number(t.replace("px",""));return isNaN(n)?50:n}const Cc=ha({value:Yf()});function _H(){return fi(Cc).value}function GS(){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);const Dh="_video-grid_tu03i_9",IH="_limit-two-lines_tu03i_19",US="_internal-testing_tu03i_51",RH="_narrow-mode_tu03i_79";function MH({enabled:e,refresh:t,minIndex:n=0,maxIndex:r,containerRef:o,getScrollerRect:i,changeScrollY:a,videoCardRefs:s}){const[l,c]=f.useState(void 0),u=Rt(()=>!(!e||wu())),d=Rt(()=>{var $;if(typeof l!="number"||!o.current)return !1;const C=i(),S=($=o.current.querySelector(`.${Ki.card}.${Ki.cardActive}`))==null?void 0:$.getBoundingClientRect();return !(!C||!S||S.top-C.top<-(C.height+S.height)||S.top-C.top>C.height*2+S.height)}),m=C=>S=>{if(!u())return;S==null||S.preventDefault();let $=typeof C=="number"?C:C();const P=d()?l+$:g();if(P<n){w(n);return}if(P>r){w(r);return}c(P),w(P);};cn("leftarrow",m(-1),{exactMatch:!0}),cn("rightarrow",m(1),{exactMatch:!0});const h=()=>kh(o.current);cn("uparrow",m(()=>-h()),{exactMatch:!0}),cn("downarrow",m(h),{exactMatch:!0});const v=()=>{u()&&c(void 0);};cn("esc",v),cn("enter",()=>{!u()||typeof l!="number"||x(l);}),cn("backspace",()=>{var C;!u()||typeof l!="number"||(C=s[l])==null||C.onTriggerDislike();}),cn(["s","w"],()=>{var C;!u()||typeof l!="number"||(C=s[l])==null||C.onToggleWatchLater();},{exactMatch:!0}),cn(["period","p"],()=>{var C;!u()||typeof l!="number"||(C=s[l])==null||C.onHotkeyPreviewAnimation();},{exactMatch:!0});function g(){const C=i();if(!C)return 0;const S=b();for(let $=0;$<S.length;$++)if(S[$].getBoundingClientRect().top>=C.top)return $;return 0}const p=`.${Ki.card}`;function b(){var C;return [...((C=o.current)==null?void 0:C.querySelectorAll(p))||[]]}function y(C){return b()[C]}function w(C){var O;const S=y(C);(O=S==null?void 0:S.scrollIntoViewIfNeeded)==null||O.call(S,!1);const $=i(),P=S.getBoundingClientRect();if(!(!$||!P)){if(P.top<=$.top){const E=-($.top-P.top+10);a==null||a({offset:E});return}if($.bottom-P.bottom<10){const E=10-($.bottom-P.bottom);a==null||a({offset:E});return}}}function x(C){const S=y(C);if(!S)return;const $=S.querySelector(".bili-video-card__wrap > a");$==null||$.click();}return {activeIndex:l,clearActiveIndex:v}}const Tp=new Map;function kh(e,t=!0){if(t&&pt.useNarrowMode)return 2;let n=Tp.get(window.innerWidth);if(n)return n;if(e||(e=document.querySelector(`.${Dh}`)),!e)return 0;const r=window.getComputedStyle(e);return r.display!=="grid"?0:(n=r.gridTemplateColumns.split(" ").length,Tp.set(window.innerWidth,n),n)}function KS(){return pt.filterMinDurationEnabled||pt.filterMinPlayCountEnabled||pt.onlyFollowMode}function XS(e){return KS()?e.filter(t=>{const{play:n,duration:r,recommendReason:o}=VS(t),i=o==="已关注"||(o==null?void 0:o.includes("关注"));return HS()==="onlyFollow"?i:!pt.enableFilterForFollowed&&i?!0:!(typeof n=="number"&&pt.filterMinPlayCountEnabled&&pt.filterMinPlayCount&&n<pt.filterMinPlayCount||r&&pt.filterMinDurationEnabled&&pt.filterMinDuration&&r<pt.filterMinDuration)}):e}var Ru={exports:{}},Lh={exports:{}},qS={exports:{}},rn=qS.exports={},Rr,Mr;function Zf(){throw new Error("setTimeout has not been defined")}function Qf(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Rr=setTimeout:Rr=Zf;}catch{Rr=Zf;}try{typeof clearTimeout=="function"?Mr=clearTimeout:Mr=Qf;}catch{Mr=Qf;}})();function YS(e){if(Rr===setTimeout)return setTimeout(e,0);if((Rr===Zf||!Rr)&&setTimeout)return Rr=setTimeout,setTimeout(e,0);try{return Rr(e,0)}catch{try{return Rr.call(null,e,0)}catch{return Rr.call(this,e,0)}}}function TH(e){if(Mr===clearTimeout)return clearTimeout(e);if((Mr===Qf||!Mr)&&clearTimeout)return Mr=clearTimeout,clearTimeout(e);try{return Mr(e)}catch{try{return Mr.call(null,e)}catch{return Mr.call(this,e)}}}var io=[],Gi=!1,Zo,Hl=-1;function NH(){!Gi||!Zo||(Gi=!1,Zo.length?io=Zo.concat(io):Hl=-1,io.length&&ZS());}function ZS(){if(!Gi){var e=YS(NH);Gi=!0;for(var t=io.length;t;){for(Zo=io,io=[];++Hl<t;)Zo&&Zo[Hl].run();Hl=-1,t=io.length;}Zo=null,Gi=!1,TH(e);}}rn.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];io.push(new QS(e,t)),io.length===1&&!Gi&&YS(ZS);};function QS(e,t){this.fun=e,this.array=t;}QS.prototype.run=function(){this.fun.apply(null,this.array);};rn.title="browser";rn.browser=!0;rn.env={};rn.argv=[];rn.version="";rn.versions={};function yo(){}rn.on=yo;rn.addListener=yo;rn.once=yo;rn.off=yo;rn.removeListener=yo;rn.removeAllListeners=yo;rn.emit=yo;rn.prependListener=yo;rn.prependOnceListener=yo;rn.listeners=function(e){return []};rn.binding=function(e){throw new Error("process.binding is not supported")};rn.cwd=function(){return "/"};rn.chdir=function(e){throw new Error("process.chdir is not supported")};rn.umask=function(){return 0};var AH=qS.exports;const _d=go(AH);var Jf;typeof Object.create=="function"?Jf=function(t,n){t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}});}:Jf=function(t,n){t.super_=n;var r=function(){};r.prototype=n.prototype,t.prototype=new r,t.prototype.constructor=t;};const JS=Jf;var DH=/%[sdj%]/g;function da(e){if(!Js(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(Br(arguments[n]));return t.join(" ")}for(var n=1,r=arguments,o=r.length,i=String(e).replace(DH,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])Qs(a)||!bi(a)?i+=" "+a:i+=" "+Br(a);return i}function Fh(e,t){if(Fr(global.process))return function(){return Fh(e,t).apply(this,arguments)};if(_d.noDeprecation===!0)return e;var n=!1;function r(){if(!n){if(_d.throwDeprecation)throw new Error(t);_d.traceDeprecation?console.trace(t):console.error(t),n=!0;}return e.apply(this,arguments)}return r}var Sl={},Id;function e1(e){if(Fr(Id)&&(Id={}.NODE_DEBUG||""),e=e.toUpperCase(),!Sl[e])if(new RegExp("\\b"+e+"\\b","i").test(Id)){var t=0;Sl[e]=function(){var n=da.apply(null,arguments);console.error("%s %d: %s",e,t,n);};}else Sl[e]=function(){};return Sl[e]}function Br(e,t){var n={seen:[],stylize:LH};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),Mu(t)?n.showHidden=t:t&&Bh(n,t),Fr(n.showHidden)&&(n.showHidden=!1),Fr(n.depth)&&(n.depth=2),Fr(n.colors)&&(n.colors=!1),Fr(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=kH),Sc(n,e,n.depth)}Br.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]};Br.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function kH(e,t){var n=Br.styles[t];return n?"\x1B["+Br.colors[n][0]+"m"+e+"\x1B["+Br.colors[n][1]+"m":e}function LH(e,t){return e}function FH(e){var t={};return e.forEach(function(n,r){t[n]=!0;}),t}function Sc(e,t,n){if(e.customInspect&&t&&is(t.inspect)&&t.inspect!==Br&&!(t.constructor&&t.constructor.prototype===t)){var r=t.inspect(n,e);return Js(r)||(r=Sc(e,r,n)),r}var o=zH(e,t);if(o)return o;var i=Object.keys(t),a=FH(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(t)),os(t)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return Rd(t);if(i.length===0){if(is(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(rs(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(wc(t))return e.stylize(Date.prototype.toString.call(t),"date");if(os(t))return Rd(t)}var l="",c=!1,u=["{","}"];if(zh(t)&&(c=!0,u=["[","]"]),is(t)){var d=t.name?": "+t.name:"";l=" [Function"+d+"]";}if(rs(t)&&(l=" "+RegExp.prototype.toString.call(t)),wc(t)&&(l=" "+Date.prototype.toUTCString.call(t)),os(t)&&(l=" "+Rd(t)),i.length===0&&(!c||t.length==0))return u[0]+l+u[1];if(n<0)return rs(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var m;return c?m=jH(e,t,n,a,i):m=i.map(function(h){return em(e,t,n,a,h,c)}),e.seen.pop(),HH(m,l,u)}function zH(e,t){if(Fr(t))return e.stylize("undefined","undefined");if(Js(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(jh(t))return e.stylize(""+t,"number");if(Mu(t))return e.stylize(""+t,"boolean");if(Qs(t))return e.stylize("null","null")}function Rd(e){return "["+Error.prototype.toString.call(e)+"]"}function jH(e,t,n,r,o){for(var i=[],a=0,s=t.length;a<s;++a)a1(t,String(a))?i.push(em(e,t,n,r,String(a),!0)):i.push("");return o.forEach(function(l){l.match(/^\d+$/)||i.push(em(e,t,n,r,l,!0));}),i}function em(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")),a1(r,o)||(a="["+o+"]"),s||(e.seen.indexOf(l.value)<0?(Qs(n)?s=Sc(e,l.value,null):s=Sc(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")),Fr(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 HH(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 zh(e){return Array.isArray(e)}function Mu(e){return typeof e=="boolean"}function Qs(e){return e===null}function t1(e){return e==null}function jh(e){return typeof e=="number"}function Js(e){return typeof e=="string"}function n1(e){return typeof e=="symbol"}function Fr(e){return e===void 0}function rs(e){return bi(e)&&Hh(e)==="[object RegExp]"}function bi(e){return typeof e=="object"&&e!==null}function wc(e){return bi(e)&&Hh(e)==="[object Date]"}function os(e){return bi(e)&&(Hh(e)==="[object Error]"||e instanceof Error)}function is(e){return typeof e=="function"}function r1(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}function o1(e){return Buffer.isBuffer(e)}function Hh(e){return Object.prototype.toString.call(e)}function Md(e){return e<10?"0"+e.toString(10):e.toString(10)}var BH=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function WH(){var e=new Date,t=[Md(e.getHours()),Md(e.getMinutes()),Md(e.getSeconds())].join(":");return [e.getDate(),BH[e.getMonth()],t].join(" ")}function i1(){console.log("%s - %s",WH(),da.apply(null,arguments));}function Bh(e,t){if(!t||!bi(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}function a1(e,t){return Object.prototype.hasOwnProperty.call(e,t)}const VH={inherits:JS,_extend:Bh,log:i1,isBuffer:o1,isPrimitive:r1,isFunction:is,isError:os,isDate:wc,isObject:bi,isRegExp:rs,isUndefined:Fr,isSymbol:n1,isString:Js,isNumber:jh,isNullOrUndefined:t1,isNull:Qs,isBoolean:Mu,isArray:zh,inspect:Br,deprecate:Fh,format:da,debuglog:e1},GH=Object.freeze(Object.defineProperty({__proto__:null,_extend:Bh,debuglog:e1,default:VH,deprecate:Fh,format:da,inherits:JS,inspect:Br,isArray:zh,isBoolean:Mu,isBuffer:o1,isDate:wc,isError:os,isFunction:is,isNull:Qs,isNullOrUndefined:t1,isNumber:jh,isObject:bi,isPrimitive:r1,isRegExp:rs,isString:Js,isSymbol:n1,isUndefined:Fr,log:i1},Symbol.toStringTag,{value:"Module"})),UH=H1(GH);var KH=UH.format;function XH(){(typeof AbortController>"u"||typeof AbortSignal>"u")&&console.error("[promise.timeout] need global AbortController & AbortSingal");}function qH(e,t){return function(){var n=this,r=[].slice.call(arguments);XH();var o=new AbortController;return r.push(o.signal),new Promise(function(i,a){var s=setTimeout(function(){var l=new s1(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 s1=class l1 extends Error{constructor(t){super(),this.timeout=t,this.message=KH("timeout of %sms exceed",t),Error.captureStackTrace(this,l1);}};Lh.exports=qH;Lh.exports.TimeoutError=s1;var YH=Lh.exports;const c1=YH,ZH=c1.TimeoutError;Ru.exports=function(t,n){const r=t;n=n||{};const o=n.times||5,i=n.timeout;i&&(t=c1(t,i));const a=n.onerror;return async function(){const s=this,l=[].slice.call(arguments),c=new Array(o);for(let u=0;u<o;u++){let d,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 QH)throw m.originalError;c[u]=m,a&&a(m,u);}throw new u1({times:o,timeout:i,fn:r,errors:c})}};class u1 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 QH 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 JH=Ru.exports.RetryError=u1;Ru.exports.TimeoutError=ZH;var eB=Ru.exports;const tB=go(eB);class Wh extends Error{constructor(n){super();ht(this,"json");Error.captureStackTrace(this,Wh),this.json=n,this.message=n.message||JSON.stringify(n);}}const nB=10;async function rB(){var r;const t=(await Pu.get(_S+"/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 Wh(t);return yn(`${Ao}: 未知错误, 请联系开发者

  code=${t.code} message=${t.message||""}`,5e3),[]}return ((r=t==null?void 0:t.data)==null?void 0:r.items)||[]}const oB=tB(rB,{times:5,timeout:2e3,onerror(e,t){console.info("[%s] tryGetRecommend onerror: index=%s",Ao,t,e);}});async function Np(){try{return await oB()}catch(e){if(e instanceof JH){console.error(e.errors);const t=[da("请求出错, 已重试%s次:",e.times),...e.errors.map((n,r)=>da("  %s) %s",r+1,n.message)),"","请重新获取 access_key 后重试~"].join(`
`);yn(t,5e3);}throw e}}async function d1(e){let t=[];const n=async()=>{t=(await Promise.all(new Array(e).fill(0).map(()=>Np()))).flat();},r=async()=>{for(let o=1;o<=e;o++)t=t.concat(await Np());};return await(pt.useParallelRequest?n:r)(),t=Uc(t,o=>o.param),t.map(o=>({...o,api:"app",uniqId:o.param+"-"+crypto.randomUUID()}))}const Kh=class{constructor(){ht(this,"page",0);}async getRecommend(t=void 0){var a,s;const n=++this.page,o=(await Zs.get("/x/web-interface/index/top/rcmd",{signal:t,params:{fresh_type:3,version:1,ps:Kh.PAGE_SIZE,fresh_idx:n,fresh_idx_1h:n,homepage_ver:1}})).data;return (a=o.data)!=null&&a.item||yn(o.message||"API 请求没有返回结果"),((s=o.data)==null?void 0:s.item)||[]}async getRecommendTimes(t,n=void 0){let r=[];const o=async()=>{r=(await Promise.all(new Array(t).fill(0).map(()=>this.getRecommend(n)))).flat();},i=async()=>{for(let a=1;a<=t;a++)r=r.concat(await this.getRecommend(n));};return await(pt.useParallelRequest?o:i)(),r=Uc(r,a=>a.id),r.forEach(a=>{var s,l;((s=a.rcmd_reason)==null?void 0:s.reason_type)===1&&((l=a.rcmd_reason).content||(l.content="已关注"));}),r.map(a=>({...a,uniqId:a.id+"-"+crypto.randomUUID(),api:"pc"}))}};let Ui=Kh;ht(Ui,"PAGE_SIZE",14);const wl=Is.extend("service"),Bl=e=>e.api==="pc"?e.id:e.api==="app"?e.param:e.modules.module_dynamic.major.archive.aid;function iB(e,t){const n=e.map(Bl);return t=Uc(t,Bl),e.concat(t.filter(r=>!n.includes(Bl(r))))}const tm=e=>e==="onlyFollow"||e==="normal"&&pt.usePcDesktopApi;async function f1(e,t,n,r,o,i=5){let a=[],s=async l=>{let c=[];if(t==="dynamic"){c=await r.next(o)||[],a=a.concat(c);return}let u;if(t==="onlyFollow")u=8,wl("getMinCount: addMore(restCount = %s) times=%s",l,u);else {const d=tm(t)?Ui.PAGE_SIZE:nB,m=KS()?i:1.2;u=Math.ceil(l*m/d),wl("getMinCount: addMore(restCount = %s) multipler=%s pagesize=%s times=%s",l,m,d,u);}c=tm(t)?await n.getRecommendTimes(u,o):await d1(u),c=XS(c),a=a.concat(c),a=Uc(a,Bl);};for(await s(e);;){if(o!=null&&o.aborted){wl("getMinCount: break for abortSignal");break}if(HS()==="dynamic"&&!r.hasMore){wl("getMinCount: break for dynamicFeedService.hasMore");break}if(a.length>=e)break;await s(e-a.length);}return a}async function aB(e,t,n,r){return f1(kh(void 0,!1)*2,e,t,n,r,5)}async function sB(e,t,n,r){return f1(kh()*3+1,e,t,n,r,5)}async function lB(e,t,n){let r=tm(t)?await n.getRecommendTimes(e):await d1(e);return r=XS(r),r}var m1={exports:{}},cB="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",uB=cB,dB=uB;function h1(){}function v1(){}v1.resetWarningCache=h1;var fB=function(){function e(r,o,i,a,s,l){if(l!==dB){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:v1,resetWarningCache:h1};return n.PropTypes=n,n};m1.exports=fB();var mB=m1.exports;const Wn=go(mB);class nm extends f.Component{constructor(t){super(t),this.scrollListener=this.scrollListener.bind(this),this.eventListenerOptions=this.eventListenerOptions.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this);}componentDidMount(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener();}componentDidUpdate(){if(this.props.isReverse&&this.loadMore){const t=this.getParentElement(this.scrollComponent);t.scrollTop=t.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1;}this.attachScrollListener();}componentWillUnmount(){this.detachScrollListener(),this.detachMousewheelListener();}isPassiveSupported(){let t=!1;const n={get passive(){t=!0;}};try{document.addEventListener("test",null,n),document.removeEventListener("test",null,n);}catch{}return t}eventListenerOptions(){let t=this.props.useCapture;return this.isPassiveSupported()?t={useCapture:this.props.useCapture,passive:!0}:t={passive:!1},t}setDefaultLoader(t){this.defaultLoader=t;}detachMousewheelListener(){let t=window;this.props.useWindow===!1&&(t=this.scrollComponent.parentNode),t.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture);}detachScrollListener(){let t=window;this.props.useWindow===!1&&(t=this.getParentElement(this.scrollComponent)),t.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture);}getParentElement(t){const n=this.props.getScrollParent&&this.props.getScrollParent();return n??(t&&t.parentNode)}filterProps(t){return t}attachScrollListener(){const t=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!t)return;let n=window;this.props.useWindow===!1&&(n=t),n.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),n.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),n.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener();}mousewheelListener(t){t.deltaY===1&&!this.isPassiveSupported()&&t.preventDefault();}scrollListener(){const t=this.scrollComponent,n=window,r=this.getParentElement(t);let o;if(this.props.useWindow){const i=document.documentElement||document.body.parentNode||document.body,a=n.pageYOffset!==void 0?n.pageYOffset:i.scrollTop;this.props.isReverse?o=a:o=this.calculateOffset(t,a);}else this.props.isReverse?o=r.scrollTop:o=t.scrollHeight-r.scrollTop-r.clientHeight;o<Number(this.props.threshold)&&t&&t.offsetParent!==null&&(this.detachScrollListener(),this.beforeScrollHeight=r.scrollHeight,this.beforeScrollTop=r.scrollTop,typeof this.props.loadMore=="function"&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0));}calculateOffset(t,n){return t?this.calculateTopPosition(t)+(t.offsetHeight-n-window.innerHeight):0}calculateTopPosition(t){return t?t.offsetTop+this.calculateTopPosition(t.offsetParent):0}render(){const t=this.filterProps(this.props),{children:n,element:r,hasMore:o,initialLoad:i,isReverse:a,loader:s,loadMore:l,pageStart:c,ref:u,threshold:d,useCapture:m,useWindow:h,getScrollParent:v,...g}=t;g.ref=b=>{this.scrollComponent=b,u&&u(b);};const p=[n];return o&&(s?a?p.unshift(s):p.push(s):this.defaultLoader&&(a?p.unshift(this.defaultLoader):p.push(this.defaultLoader))),f.createElement(r,g,p)}}ht(nm,"propTypes",{children:Wn.node.isRequired,element:Wn.node,hasMore:Wn.bool,initialLoad:Wn.bool,isReverse:Wn.bool,loader:Wn.node,loadMore:Wn.func.isRequired,pageStart:Wn.number,ref:Wn.func,getScrollParent:Wn.func,threshold:Wn.number,useCapture:Wn.bool,useWindow:Wn.bool}),ht(nm,"defaultProps",{element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null});class rm{constructor(){ht(this,"offset");ht(this,"page",0);ht(this,"hasMore",!0);}async next(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 Zs.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:crypto.randomUUID()}))}}ht(rm,"PAGE_SIZE",15);function g1({debug:e,tab:t,foruse:n,recreateService:r=!0,onScrollToTop:o,setUpperRefreshing:i,clearActiveIndex:a,triggerScroll:s}){const[l,c]=f.useState([]),[u,d]=f.useState(0),[m,h]=f.useState(()=>new Ui),[v,g]=f.useState(()=>new rm),[p,b]=f.useState(!1),[y,w,x]=wS(()=>Date.now()),[C,S]=f.useState(t),[$,P]=f.useState(()=>new AbortController),[O,E]=f.useState(void 0),N=Rt(async()=>{const I=performance.now();if(p)if(t===C){e("refresh(): [refreshing] prevent same tab(%s) refresh()",t);return}else e("refresh(): [refreshing] switchTab %s -> %s, abort existing",C,t),$.abort();else e("refresh(): tab = %s",t);await(o==null?void 0:o());const R=F=>{b(F),i==null||i(F);};R(!0),w(Date.now()),S(t),a==null||a(),c([]),E(void 0);const _=r?new Ui:m,M=r?new rm:v;r&&(h(_),g(M));const A=new AbortController,T=A.signal;P(A),await Xs(50);const D=n==="RecGrid"?sB:aB;let L=[],z;try{L=await D(t,_,M,A.signal);}catch(F){z=F;}if(T.aborted){e("refresh(): skip setItems/err for aborted, legacy tab = %s",t);return}if(R(!1),z){console.error(z),E(z);return}c(L),d(1),a==null||a();const V=performance.now()-I;e("refresh cost %s ms",V.toFixed(0)),s==null||s();});return {items:l,setItems:c,error:O,refreshedAt:y,setRefreshedAt:w,getRefreshedAt:x,refreshing:p,setRefreshing:b,refreshFor:C,setRefreshFor:S,refreshAbortController:$,setRefreshAbortController:P,loadCompleteCount:u,setLoadCompleteCount:d,pcRecService:m,setPcRecService:h,dynamicFeedService:v,setDynamicFeedService:g,refresh:N}}const Td=Is.extend("components:RecGrid"),Ki={card:Ep`
    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:Ep`
    border-color: #fb7299;
    border-radius: 6px;
    overflow: hidden;
  `};var hB={name:"1uugokx",styles:"text-align:center;line-height:60px;font-size:120%"};const p1=f.forwardRef(({infiteScrollUseWindow:e,shortcutEnabled:t,onScrollToTop:n,className:r,scrollerRef:o,setRefreshing:i},a)=>{const{useNarrowMode:s}=cr(),[l,c]=f.useState(!0),u=Iu(),{refresh:d,items:m,setItems:h,refreshing:v,refreshedAt:g,getRefreshedAt:p,loadCompleteCount:b,setLoadCompleteCount:y,pcRecService:w,dynamicFeedService:x}=g1({tab:u,debug:Td,foruse:"RecGrid",onScrollToTop:n,setUpperRefreshing:i,clearActiveIndex(){R();},triggerScroll(){$();}});Eu(d),f.useImperativeHandle(a,()=>({refresh:d}),[]);const C=f.useRef({}),S=Rt(async()=>{if(!l||v)return;const A=g;if(C.current[A])return;C.current={[A]:!0};let T=m;try{if(u==="dynamic")T=T.concat(await x.next()||[]),c(x.hasMore);else for(;!(T.length>m.length);){const D=await lB(2,u,w);T=iB(T,D);}}catch(D){throw C.current[A]=!1,D}if(A!==p()){Td("fetchMore: skip update for mismatch refreshedAt, %s != %s",A,p());return}Td("fetchMore: seq(%s) len %s -> %s",b+1,m.length,T.length),h(T),y(D=>D+1),$(),C.current[A]=!1;}),$=Rt(()=>{setTimeout(()=>{const A=e?window:o==null?void 0:o.current;A==null||A.dispatchEvent(new CustomEvent("scroll",{detail:{deltaY:0}}));});}),P=f.useRef(null),O=Rt(()=>{var A;if(e){const T=GS()+50;return new DOMRect(0,T,window.innerWidth,window.innerHeight-T)}else return (A=o==null?void 0:o.current)==null?void 0:A.getBoundingClientRect()}),E=H6(),N=f.useMemo(()=>new Array(m.length).fill(void 0),[m.length]),{activeIndex:I,clearActiveIndex:R}=MH({enabled:t&&!E,refresh:d,maxIndex:m.length-1,containerRef:P,getScrollerRect:O,videoCardRefs:N,changeScrollY:e?function({offset:A,absolute:T}){const D=document.documentElement;if(typeof A=="number"){D.scrollTop+=A;return}if(typeof T=="number"){D.scrollTop=T;return}}:void 0}),_=na(),{colorPrimary:M}=wa();return j(nm,{pageStart:0,hasMore:l,loadMore:S,initialLoad:!1,useWindow:e,threshold:window.innerHeight*1,style:{minHeight:"100%"},loader:j("div",{css:hB,children:!v&&j(Gt,{children:"加载中..."})},-1),children:j("div",{ref:P,className:U(Dh,{[US]:_},{[RH]:s},r),children:v?new Array(24).fill(void 0).map((A,T)=>j(yc,{loading:!0,className:Ki.card},T)):m.map((A,T)=>{const D=T===I;return j(yc,{ref:L=>N[T]=L,className:U(Ki.card,{[Ki.cardActive]:D}),css:[D&&Zn("border-color:",M,";",""),"",""],item:A,active:D},A.uniqId)})})})}),Ap=j(_n,{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 b1({style:e,className:t}){const{runAsync:n,loading:r}=jj(b6,{manual:!0}),{accessKey:o}=cr();return j(gu,{size:"small",style:e,className:t,children:o?ve(Gt,{children:[j(_n,{onClick:n,disabled:r,children:j("span",{children:"重新获取 access_key"})}),j(_n,{onClick:y6,children:j("span",{children:"删除 access_key"})}),Ap]}):ve(Gt,{children:[j(_n,{onClick:n,disabled:r,size:"middle",children:j("span",{children:"获取 access_key"})}),Ap]})})}const vB="_config-icon_18r5p_1",gB="_settings-group_18r5p_6",pB="_settings-group-title_18r5p_9",bB="_settings-group-sub-title_18r5p_14",yB="_settings-group-content_18r5p_20",CB="_row_18r5p_26",SB="_check_18r5p_34",wB="_setting-tabs_18r5p_39",$B="_tab-pane_18r5p_42",at={configIcon:vB,settingsGroup:gB,settingsGroupTitle:pB,settingsGroupSubTitle:bB,settingsGroupContent:yB,row:CB,check:SB,settingTabs:wB,tabPane:$B};async function y1(){yn("即将刷新网页"),await Xs(500),location.reload();}function xB(){return KP(),y1()}function Nd(e,t,n){return cn(e,r=>{if(wu())return;pt[t]=!pt[t];const o=!pt[t];yn(`已${o?"禁用":"启用"}「${n}」`);},{exactMatch:!0})}function EB({show:e,onHide:t}){const{usePcDesktopApi:n,autoPreviewUpdateInterval:r,filterMinPlayCount:o,filterMinPlayCountEnabled:i,filterMinDuration:a,filterMinDurationEnabled:s}=cr();return Nd(["shift.p"],"autoPreviewWhenKeyboardSelect","键盘选中后自动开始预览"),Nd(["shift.m"],"autoPreviewWhenHover","鼠标悬浮后自动开始预览"),Nd(["shift.c"],"useNarrowMode","居中模式"),ve(Nh,{show:e,onHide:t,hideWhenMaskOnClick:!0,hideWhenEsc:!0,styleModal:{width:900,maxHeight:"unset"},children:[ve("div",{className:Hr.modalHeader,children:[ve("div",{className:Hr.modalTitle,children:[j(No,{name:"Config",className:at.configIcon}),"设置项"]}),j("div",{className:"space",style:{flex:1}}),j(Ah,{onClick:t})]}),j("main",{className:Hr.modalBody,children:j(bC,{tabPosition:"left",size:"middle",defaultActiveKey:"normal",className:at.settingTabs,items:[{label:"常规设置",key:"normal",children:ve("div",{className:at.tabPane,children:[ve("div",{className:at.settingsGroup,children:[ve("div",{className:at.settingsGroupTitle,children:["API 切换",j(vc,{tooltip:j(Gt,{children:"只对推荐 Tab 生效, 详细信息查看 GitHub 主页说明"})})]}),ve("div",{className:U(at.settingsGroupContent),children:[ve(Yo.Group,{buttonStyle:"solid",value:n?"desktop":"app",onChange:l=>{const c=l.target.value;pt.usePcDesktopApi=c==="desktop";},children:[j(Yo.Button,{value:"desktop",children:"使用桌面端 API"}),j(Yo.Button,{value:"app",children:"使用 App 端 API"})]}),!n&&j("div",{className:at.row,style:{marginTop:5},children:j(b1,{})})]})]}),ve("div",{className:at.settingsGroup,children:[j("div",{className:at.settingsGroupTitle,children:"开关"}),ve("div",{className:U(at.settingsGroupContent,at.row),children:[j(vr,{configKey:"pureRecommend",label:"开启纯推荐模式",tooltip:ve(Gt,{children:["首页只保留推荐",j("br",{}),"P.S 需要刷新网页~"]}),className:at.check,extraAction:y1}),j(vr,{configKey:"initialShowMore",label:"自动查看更多",tooltip:"打开首页时默认打开推荐弹框",className:at.check,extraAction:l=>{l&&yn("已开启自动查看更多: 下次打开首页时将直接展示推荐弹框");}}),j(vr,{configKey:"useNarrowMode",label:"启用居中模式",tooltip:ve(Gt,{children:["居中两列",j("br",{}),"切换设置快捷键: ",j(Da,{color:"green",children:"shift+c"})]}),className:at.check}),j(vr,{configKey:"useParallelRequest",label:"批量请求时使用并行",tooltip:ve(Gt,{children:["并行快但可能有重复",j("br",{}),"推荐视频大量重复时关闭这个试试~"]}),className:at.check})]})]}),ve("div",{className:at.settingsGroup,children:[j("div",{className:at.settingsGroupTitle,children:"预览"}),ve("div",{className:U(at.settingsGroupContent,at.row),children:[j(vr,{configKey:"autoPreviewWhenKeyboardSelect",label:"键盘选中后自动开始预览",className:at.check,tooltip:ve(Gt,{children:["手动预览快捷键: ",j(Da,{color:"green",children:"."})," or ",j(Da,{color:"green",children:"p"}),j("br",{}),"切换设置快捷键: ",j(Da,{color:"green",children:"shift+p"})]})}),j(vr,{configKey:"autoPreviewWhenHover",label:"鼠标悬浮后自动开始预览",className:at.check,tooltip:ve(Gt,{children:["鼠标悬浮后自动开始预览, 预览不再跟随鼠标位置 ",j("br",{}),"切换设置快捷键: ",j(Da,{color:"green",children:"shift+m"})]})}),ve("div",{style:{width:"100%",display:"flex",alignItems:"center"},children:["预览更新间隔",j(A5,{style:{flex:1,margin:"0 15px"},min:0,max:1e3,keyboard:!0,onChange:l=>pt.autoPreviewUpdateInterval=l,value:r}),ve("span",{style:{width:"65px"},children:["(",r,"ms)"]})]})]})]}),ve("div",{className:at.settingsGroup,children:[j("div",{className:at.settingsGroupTitle,children:"帮助"}),j("div",{className:U(at.settingsGroupContent),children:j("div",{className:at.row,children:ve(gu,{size:"small",children:[j(_n,{href:"https://github.com/magicdawn/bilibili-app-recommend",target:"_blank",children:"GitHub 主页"}),j(_n,{href:"https://gf.qytechs.cn/zh-CN/scripts/443530-bilibili-app-recommend",target:"_blank",children:"GreasyFork 主页"}),j(_n,{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:"查看可用的快捷键"})]})})})]})]})},{label:"视频过滤",key:"filter",children:j("div",{className:at.tabPane,children:ve("div",{className:at.settingsGroup,children:[ve("div",{className:at.settingsGroupTitle,children:["视频过滤",j(vc,{tooltip:ve(Gt,{children:["启用视频过滤会大幅降低加载速度, 谨慎开启! ",j("br",{}),"只对推荐 Tab 生效"]})})]}),ve("div",{className:U(at.settingsGroupContent),children:[j("div",{className:at.settingsGroupSubTitle,children:"过滤范围"}),j(vr,{configKey:"enableFilterForFollowed",label:"对推荐理由为「已关注」的视频启用过滤",tooltip:j(Gt,{children:"默认不过滤「已关注」"})}),j("div",{className:at.settingsGroupSubTitle,children:"过滤器"}),ve("div",{className:at.row,children:[j(vr,{configKey:"filterMinPlayCountEnabled",label:"按播放量过滤",tooltip:j(Gt,{children:"不显示播放量很少的视频"})}),j(zf,{size:"small",min:1,step:1e3,value:o,onChange:l=>l&&co({filterMinPlayCount:l}),disabled:!i})]}),ve("div",{className:at.row,style:{marginTop:8},children:[j(vr,{configKey:"filterMinDurationEnabled",label:"按视频时长过滤",tooltip:j(Gt,{children:"不显示短视频"})}),j(zf,{style:{width:150},size:"small",min:1,step:10,addonAfter:"单位:秒",value:a,onChange:l=>l&&co({filterMinDuration:l}),disabled:!s})]})]})]})})},{label:"外观设置",key:"UI",children:j("div",{className:at.tabPane,children:ve("div",{className:at.settingsGroup,children:[j("div",{className:at.settingsGroupTitle,style:{marginBottom:15},children:"主题选择"}),j("div",{className:U(at.settingsGroupContent),children:j(K4,{})})]})})},{label:"高级设置",key:"advance",children:j("div",{className:at.tabPane,children:ve("div",{className:at.settingsGroup,children:[j("div",{className:at.settingsGroupTitle,children:"高级"}),j("div",{className:U(at.settingsGroupContent),children:j("div",{className:at.row,children:j(d5,{title:"确定",description:"确定恢复默认设置? 该操作不可逆!",onConfirm:xB,children:j(_n,{danger:!0,type:"primary",children:"恢复默认设置"})})})})]})})}]})})]})}var Vh={};Object.defineProperty(Vh,"__esModule",{value:!0});var C1=Vh.useSticky=void 0;const Ad=f;function OB(){const e=(0, Ad.useRef)(null),[t,n]=(0, Ad.useState)(!1);return (0, Ad.useEffect)(()=>{function r(){if(!e.current)return;const o=e.current.getBoundingClientRect().top,i=parseInt(getComputedStyle(e.current).top),a=o<=i;a&&!t?n(!0):!a&&t&&n(!1);}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]}C1=Vh.useSticky=OB;const PB="_expand-btn_wdzp9_1",_B="_expanded_wdzp9_12",Dp={expandBtn:PB,expanded:_B},IB=f.forwardRef(function({children:t},n){const[r,o]=CS(!1);f.useImperativeHandle(n,()=>o,[o]);const i=j("button",{className:U("primary-btn",Dp.expandBtn),onClick:o.toggle,children:j("svg",{className:U({[Dp.expanded]:r}),children:j("use",{href:"#widget-arrow"})})});return ve(Gt,{children:[i,r&&t]})}),RB="_modal-mask_7bwzz_1",MB="_narrow-mode_7bwzz_1",TB="_modal_7bwzz_1",NB="_modal-header_7bwzz_18",AB="_modal-body_7bwzz_19",DB="_btn-refresh_7bwzz_22",za={modalMask:RB,narrowMode:MB,modal:TB,modalHeader:NB,modalBody:AB,btnRefresh:DB};var kB={name:"1q4vxyr",styles:"margin-left:8px"};const LB=f.memo(function({show:t,onHide:n}){const r=f.useRef(null),o=f.useRef(null),{useNarrowMode:i}=cr(),a=f.useMemo(()=>({[za.narrowMode]:i}),[i]),s=Rt(()=>{var v;return (v=o.current)==null?void 0:v.refresh()}),l=Rt(()=>{r.current&&(r.current.scrollTop=0);}),c=Kc(),{colorPrimary:u}=wa(),d=f.useMemo(()=>c?{border:`1px solid ${u}`}:void 0,[c,u]),[m,h]=f.useState(!1);return ve(Nh,{show:t,onHide:n,clsModalMask:U(a),clsModal:U(za.modal,a),styleModal:{...d},children:[ve("div",{className:U(Hr.modalHeader,za.modalHeader),children:[j(w1,{refreshing:m,onRefresh:s}),j("div",{className:"space",style:{flex:1}}),j(IB,{children:j(z4,{})}),j($1,{css:kB,refreshing:m,onRefresh:s,className:za.btnRefresh,refreshHotkeyEnabled:t}),j(Ah,{onClick:n})]}),j("div",{className:U(Hr.modalBody,za.modalBody),ref:r,children:j(p1,{ref:o,shortcutEnabled:t,onScrollToTop:l,infiteScrollUseWindow:!1,scrollerRef:r,setRefreshing:h})})]})}),FB=Is.extend("RecHeader"),Gh=Zn`
  display: flex;
  align-items: center;
  justify-content: center;
`,kp={btn:Zn`
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    ${Gh}
  `,icon:Zn`
    svg {
      width: 14px;
      height: 14px;
    }
  `},Mo=ha({modalFeedVisible:pt.initialShowMore,modalConfigVisible:!1}),zB=function(){return fi(Mo)},jB=()=>{Mo.modalFeedVisible=!0;},HB=()=>{Mo.modalFeedVisible=!1;},BB=()=>{Mo.modalConfigVisible=!0;},WB=()=>{Mo.modalConfigVisible=!1;},S1=f.forwardRef(function({onRefresh:t,refreshing:n},r){const{accessKey:o,pureRecommend:i,usePcDesktopApi:a}=cr(),{modalFeedVisible:s,modalConfigVisible:l}=fi(Mo);cn(["shift.comma"],h=>{wu()||(Mo.modalConfigVisible=!Mo.modalConfigVisible);},{exactMatch:!0});const[c,u]=C1(),d=Rt(()=>{var p;if(!i)return;const h=(p=c.current)==null?void 0:p.parentElement;if(!h)return;const v=h.getBoundingClientRect(),g=GS();if(v.top<g){const b=g-v.top+1;FB("changing scroll on refresh: rect.top = %s, headerHeight = %s, scrollTop -= %s",v.top,g,b),document.documentElement.scrollTop-=b;}});f.useImperativeHandle(r,()=>({scroll:d}));const m=_H();return ve(Gt,{children:[ve("div",{ref:c,className:"area-header",css:[Zn`
            margin-bottom: 0;
            height: 50px;
          `,i&&Zn`
              position: sticky;
              top: ${m-1}px; // 有缝隙, 故 -1 px
              z-index: 1000;
            `,i&&u&&Zn`
              background-color: var(--bg1_float);
              box-shadow: 0 2px 4px rgb(0 0 0 / 8%);
            `,"",""],children:[ve("div",{className:"left",children:[j("svg",{className:"icon",children:j("use",{href:"#channel-cinephile"})}),j(w1,{refreshing:n,onRefresh:t})]}),j("div",{className:"right",children:ve(gu,{size:"small",children:[!a&&!o&&j(b1,{style:{marginLeft:5}}),j(_n,{onClick:BB,css:kp.btn,children:j(No,{name:"Config",css:kp.icon})}),j($1,{refreshing:n,onRefresh:t,refreshHotkeyEnabled:!(l||s)}),!i&&ve(_n,{css:Gh,onClick:jB,children:[j("span",{children:"查看更多"}),j("svg",{css:Zn`
                    width: 12px;
                    height: 12px;
                    margin-left: 2px;
                  `,children:j("use",{href:"#widget-arrow"})})]})]})})]}),j(LB,{show:s,onHide:HB}),j(EB,{show:l,onHide:WB})]})});function Lp(){return yn("你需要登录(不可用)B站后使用该功能!")}const Dd=Zn`
  height: 26px;
  line-height: 26px;
`;function w1({onRefresh:e,refreshing:t}){const n=MS(),r=Iu();return ve(Gt,{children:[ve(Yo.Group,{optionType:"button",buttonStyle:"solid",size:"middle",value:r,style:{overflow:"hidden"},onChange:o=>{switch(o.target.value){case"onlyFollow":if(!n)return Lp();co({onlyFollowMode:!0,useDynamicApi:!1});break;case"dynamic":if(!n)return Lp();co({onlyFollowMode:!1,useDynamicApi:!0});break;case"normal":default:co({onlyFollowMode:!1,useDynamicApi:!1});break}setTimeout(()=>{e();});},children:[j(Yo.Button,{css:Dd,value:"normal",children:"推荐"}),j(Yo.Button,{css:Dd,value:"onlyFollow",children:"已关注"}),j(Yo.Button,{css:Dd,value:"dynamic",children:"动态"})]}),j(vc,{iconProps:{size:18,style:{marginLeft:10}},tooltip:ve(Gt,{children:["已关注: 推荐中只保留「已关注」,会很慢",j("br",{}),"动态: 视频投稿动态"]})})]})}const $1=f.forwardRef(function({onRefresh:e,className:t="",style:n,refreshHotkeyEnabled:r,refreshing:o},i){r??(r=!0);const[a,s]=f.useState(0),l=f.useRef(null),c=Rt(()=>{l.current&&(l.current.disabled||l.current.click());});f.useImperativeHandle(i,()=>({click:c}),[]),cn("r",()=>{wu()||r&&c();},{exactMatch:!0});const d=Iu()==="dynamic"?"刷新":"换一换",m=Rt(h=>(s(v=>v+360),e==null?void 0:e(h)));return ve(_n,{disabled:o,className:t,style:n,css:Zn`
        ${Gh}
        &.ant-btn:not(:disabled):focus-visible {
          outline: none;
        }
      `,ref:l,onClick:m,children:[j("svg",{style:{transform:`rotate(${a}deg)`,width:"11px",height:"11px",marginRight:5,transition:a===360?"transform .5s ease":"unset"},onTransitionEnd:()=>{s(0);},children:j("use",{href:"#widget-roll"})}),j("span",{children:d})]})}),VB={grid:Zn`
    /* card=299 col-gap=20  */
    width: ${299*2+20}px;
    margin: 0 auto;
  `};function GB(){const{useNarrowMode:e}=cr(),{modalFeedVisible:t,modalConfigVisible:n}=zB(),r=f.useRef(null),o=f.useRef(null),i=Rt(()=>{var c;return (c=o.current)==null?void 0:c.refresh()}),a=Rt(()=>{var c;return (c=r.current)==null?void 0:c.scroll()}),[s,l]=f.useState(!1);return ve("section",{"data-area":"推荐",children:[j(S1,{ref:r,refreshing:s,onRefresh:i}),j(p1,{ref:o,css:[e&&VB.grid,"",""],shortcutEnabled:!(t||n),infiteScrollUseWindow:!0,onScrollToTop:a,setRefreshing:l})]})}const UB=Is.extend("components:SectionRecommend");function KB(){const e=f.useMemo(()=>new Array(20).fill(0).map(()=>crypto.randomUUID()),[]),t=na(),n=Iu(),{refreshing:r,items:o,refresh:i,error:a}=g1({tab:n,debug:UB,foruse:"SectionRecommend",recreateService:!1});return Eu(i),ve("section",{"data-area":"推荐",children:[j(S1,{refreshing:r,onRefresh:i}),j("div",{className:U(Dh,IH,{[US]:t}),style:{marginBottom:t?30:0},children:r||a?e.map(s=>j(yc,{},s)):o.map(s=>j(yc,{item:s},s.uniqId))})]})}Ms.extend(YP);(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 XB()})();async function XB(){return es(".adblock-tips"),hS("html.gray",e=>e.classList.remove("gray")),pt.pureRecommend?YB():qB()}async function qB(){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(na()&&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 Xs(200);}if(!n){console.error(`[${Ao}]: init fail`);return}const r=document.createElement("section");n(r),$u(r).render(j(mS,{children:j(KB,{})})),na()&&es(".bili-feed4 .header-channel");}async function YB(){var o,i;na()?((o=document.querySelector(".bili-feed4 .bili-feed4-layout"))==null||o.remove(),es(".bili-feed4 .header-channel")):((i=document.querySelector(".bili-layout"))==null||i.remove(),es(".bili-footer"),es(".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(na()?"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),$u(n).render(j(mS,{children:j(GB,{})}));}});ZB();

})(React, ReactDOM, axios, axiosGmxhrAdapter);

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址