bilibili-app-recommend

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

目前为 2023-06-09 提交的版本。查看 最新版本

// ==UserScript==
// @name         bilibili-app-recommend
// @namespace    https://magicdawn.fun
// @version      0.13.0
// @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, jp, im, B1) {
  '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 jp__namespace = /*#__PURE__*/_interopNamespaceDefault(jp);

  var R1=Object.defineProperty;var M1=(e,t,n)=>t in e?R1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var T1=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var ht=(e,t,n)=>(M1(e,typeof t!="symbol"?t+"":t,n),n),Nu=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var L=(e,t,n)=>(Nu(e,t,"read from private field"),n?n.call(e):t.get(e)),ct=(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)=>(Nu(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 L(e,t,r)}}),ke=(e,t,n)=>(Nu(e,t,"access private method"),n);var f8=T1((ao,so)=>{var Bp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function W1(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 Wp={exports:{}},Pc={};/**
   * @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 V1=f,G1=Symbol.for("react.element"),U1=Symbol.for("react.fragment"),K1=Object.prototype.hasOwnProperty,X1=V1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,q1={key:!0,ref:!0,__self:!0,__source:!0};function Vp(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)K1.call(t,r)&&!q1.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:G1,type:e,key:i,ref:a,props:o,_owner:X1.current}}Pc.Fragment=U1;Pc.jsx=Vp;Pc.jsxs=Vp;Wp.exports=Pc;var cs=Wp.exports;function Y1(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 Z1(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 Q1=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(Z1(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=Y1(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-",Ot="-webkit-",Gp="comm",am="rule",sm="decl",J1="@import",Up="@keyframes",ew="@layer",tw=Math.abs,Ic=String.fromCharCode,nw=Object.assign;function rw(e,t){return pn(e,0)^45?(((t<<2^pn(e,0))<<2^pn(e,1))<<2^pn(e,2))<<2^pn(e,3):0}function Kp(e){return e.trim()}function ow(e,t){return (e=t.exec(e))?e[0]:e}function Pt(e,t,n){return e.replace(t,n)}function kd(e,t){return e.indexOf(t)}function pn(e,t){return e.charCodeAt(t)|0}function us(e,t,n){return e.slice(t,n)}function Lr(e){return e.length}function lm(e){return e.length}function ol(e,t){return t.push(e),e}function iw(e,t){return e.map(t).join("")}var _c=1,Qi=1,Xp=0,Dn=0,an=0,da="";function Rc(e,t,n,r,o,i,a){return {value:e,root:t,parent:n,type:r,props:o,children:i,line:_c,column:Qi,length:a,return:""}}function Pa(e,t){return nw(Rc("",null,null,"",null,null,0),e,{length:-e.length},t)}function aw(){return an}function sw(){return an=Dn>0?pn(da,--Dn):0,Qi--,an===10&&(Qi=1,_c--),an}function Zn(){return an=Dn<Xp?pn(da,Dn++):0,Qi++,an===10&&(Qi=1,_c++),an}function jr(){return pn(da,Dn)}function $l(){return Dn}function Rs(e,t){return us(da,e,t)}function ds(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 qp(e){return _c=Qi=1,Xp=Lr(da=e),Dn=0,[]}function Yp(e){return da="",e}function xl(e){return Kp(Rs(Dn-1,Ld(e===91?e+2:e===40?e+1:e)))}function lw(e){for(;(an=jr())&&an<33;)Zn();return ds(e)>2||ds(an)>3?"":" "}function cw(e,t){for(;--t&&Zn()&&!(an<48||an>102||an>57&&an<65||an>70&&an<97););return Rs(e,$l()+(t<6&&jr()==32&&Zn()==32))}function Ld(e){for(;Zn();)switch(an){case e:return Dn;case 34:case 39:e!==34&&e!==39&&Ld(an);break;case 40:e===41&&Ld(e);break;case 92:Zn();break}return Dn}function uw(e,t){for(;Zn()&&e+an!==47+10;)if(e+an===42+42&&jr()===47)break;return "/*"+Rs(t,Dn-1)+"*"+Ic(e===47?e:Zn())}function dw(e){for(;!ds(jr());)Zn();return Rs(e,Dn)}function Zp(e){return Yp(El("",null,null,null,[""],e=qp(e),0,[0],e))}function El(e,t,n,r,o,i,a,s,l){for(var c=0,d=0,u=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=Zn()){case 40:if(v!=108&&pn($,u-1)==58){kd($+=Pt(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:$+=lw(v);break;case 92:$+=cw($l()-1,7);continue;case 47:switch(jr()){case 42:case 47:ol(fw(uw(Zn(),$l()),t,n),l);break;default:$+="/";}break;case 123*g:s[c++]=Lr($)*b;case 125*g:case 59:case 0:switch(y){case 0:case 125:p=0;case 59+d:b==-1&&($=Pt($,/\f/g,"")),h>0&&Lr($)-u&&ol(h>32?Zh($+";",r,n,u-1):Zh(Pt($," ","")+";",r,n,u-2),l);break;case 59:$+=";";default:if(ol(S=Yh($,t,n,c,d,o,s,w,x=[],C=[],u),i),y===123)if(d===0)El($,t,S,S,x,i,u,s,C);else switch(m===99&&pn($,3)===110?100:m){case 100:case 108:case 109:case 115:El(e,S,S,r&&ol(Yh(e,S,S,0,0,o,s,w,o,x=[],u),C),o,C,u,s,r?x:C);break;default:El($,S,S,S,[""],C,0,s,C);}}c=d=h=0,g=b=1,w=$="",u=a;break;case 58:u=1+Lr($),h=v;default:if(g<1){if(y==123)--g;else if(y==125&&g++==0&&sw()==125)continue}switch($+=Ic(y),y*g){case 38:b=d>0?1:($+="\f",-1);break;case 44:s[c++]=(Lr($)-1)*b,b=1;break;case 64:jr()===45&&($+=xl(Zn())),m=jr(),d=u=Lr(w=$+=dw($l())),y++;break;case 45:v===45&&Lr($)==2&&(g=0);}}return i}function Yh(e,t,n,r,o,i,a,s,l,c,d){for(var u=o-1,m=o===0?i:[""],h=lm(m),v=0,g=0,p=0;v<r;++v)for(var b=0,y=us(e,u+1,u=tw(g=a[v])),w=e;b<h;++b)(w=Kp(g>0?m[b]+" "+y:Pt(y,/&\f/g,m[b])))&&(l[p++]=w);return Rc(e,t,n,o===0?am:s,l,c,d)}function fw(e,t,n){return Rc(e,t,n,Gp,Ic(aw()),us(e,2,-2),0)}function Zh(e,t,n,r){return Rc(e,t,n,sm,us(e,0,r),us(e,r+1,-1),r)}function Jo(e,t){for(var n="",r=lm(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Qp(e,t,n,r){switch(e.type){case ew:if(e.children.length)break;case J1:case sm:return e.return=e.return||e.value;case Gp:return "";case Up:return e.return=e.value+"{"+Jo(e.children,r)+"}";case am:e.value=e.props.join(",");}return Lr(n=Jo(e.children,r))?e.return=e.value+"{"+n+"}":""}function mw(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 hw(e){return function(t){t.root||(t=t.return)&&e(t);}}function vw(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var gw=function(t,n,r){for(var o=0,i=0;o=i,i=jr(),o===38&&i===12&&(n[r]=1),!ds(i);)Zn();return Rs(t,Dn)},pw=function(t,n){var r=-1,o=44;do switch(ds(o)){case 0:o===38&&jr()===12&&(n[r]=1),t[r]+=gw(Dn-1,n,r);break;case 2:t[r]+=xl(o);break;case 4:if(o===44){t[++r]=jr()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Ic(o);}while(o=Zn());return t},bw=function(t,n){return Yp(pw(qp(t),n))},Qh=new WeakMap,yw=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&&!Qh.get(r))&&!o){Qh.set(t,!0);for(var i=[],a=bw(n,i),s=r.props,l=0,c=0;l<a.length;l++)for(var d=0;d<s.length;d++,c++)t.props[c]=i[l]?a[l].replace(/&\f/g,s[d]):s[d]+" "+a[l];}}},Cw=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="");}};function Jp(e,t){switch(rw(e,t)){case 5103:return Ot+"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 Ot+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ot+e+Wl+e+xn+e+e;case 6828:case 4268:return Ot+e+xn+e+e;case 6165:return Ot+e+xn+"flex-"+e+e;case 5187:return Ot+e+Pt(e,/(\w+).+(:[^]+)/,Ot+"box-$1$2"+xn+"flex-$1$2")+e;case 5443:return Ot+e+xn+"flex-item-"+Pt(e,/flex-|-self/,"")+e;case 4675:return Ot+e+xn+"flex-line-pack"+Pt(e,/align-content|flex-|-self/,"")+e;case 5548:return Ot+e+xn+Pt(e,"shrink","negative")+e;case 5292:return Ot+e+xn+Pt(e,"basis","preferred-size")+e;case 6060:return Ot+"box-"+Pt(e,"-grow","")+Ot+e+xn+Pt(e,"grow","positive")+e;case 4554:return Ot+Pt(e,/([^-])(transform)/g,"$1"+Ot+"$2")+e;case 6187:return Pt(Pt(Pt(e,/(zoom-|grab)/,Ot+"$1"),/(image-set)/,Ot+"$1"),e,"")+e;case 5495:case 3959:return Pt(e,/(image-set\([^]*)/,Ot+"$1$`$1");case 4968:return Pt(Pt(e,/(.+:)(flex-)?(.*)/,Ot+"box-pack:$3"+xn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ot+e+e;case 4095:case 3583:case 4068:case 2532:return Pt(e,/(.+)-inline(.+)/,Ot+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Lr(e)-1-t>6)switch(pn(e,t+1)){case 109:if(pn(e,t+4)!==45)break;case 102:return Pt(e,/(.+:)(.+)-([^]+)/,"$1"+Ot+"$2-$3$1"+Wl+(pn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return ~kd(e,"stretch")?Jp(Pt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(pn(e,t+1)!==115)break;case 6444:switch(pn(e,Lr(e)-3-(~kd(e,"!important")&&10))){case 107:return Pt(e,":",":"+Ot)+e;case 101:return Pt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ot+(pn(e,14)===45?"inline-":"")+"box$3$1"+Ot+"$2$3$1"+xn+"$2box$3")+e}break;case 5936:switch(pn(e,t+11)){case 114:return Ot+e+xn+Pt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ot+e+xn+Pt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ot+e+xn+Pt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ot+e+xn+e+e}return e}var Sw=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case sm:t.return=Jp(t.value,t.length);break;case Up:return Jo([Pa(t,{value:Pt(t.value,"@","@"+Ot)})],o);case am:if(t.length)return iw(t.props,function(i){switch(ow(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Jo([Pa(t,{props:[Pt(i,/:(read-\w+)/,":"+Wl+"$1")]})],o);case"::placeholder":return Jo([Pa(t,{props:[Pt(i,/:(plac\w+)/,":"+Ot+"input-$1")]}),Pa(t,{props:[Pt(i,/:(plac\w+)/,":"+Wl+"$1")]}),Pa(t,{props:[Pt(i,/:(plac\w+)/,xn+"input-$1")]})],o)}return ""})}},ww=[Sw],eb=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||ww,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=[yw,Cw];{var d,u=[Qp,hw(function(g){d.insert(g);})],m=mw(c.concat(o,u)),h=function(p){return Jo(Zp(p),m)};l=function(p,b,y,w){d=y,h(p?p+"{"+b.styles+"}":b.styles),w&&(v.inserted[b.name]=!0);};}var v={key:n,sheet:new Q1({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 tb={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 vn=typeof Symbol=="function"&&Symbol.for,cm=vn?Symbol.for("react.element"):60103,um=vn?Symbol.for("react.portal"):60106,Mc=vn?Symbol.for("react.fragment"):60107,Tc=vn?Symbol.for("react.strict_mode"):60108,Nc=vn?Symbol.for("react.profiler"):60114,Ac=vn?Symbol.for("react.provider"):60109,Dc=vn?Symbol.for("react.context"):60110,dm=vn?Symbol.for("react.async_mode"):60111,kc=vn?Symbol.for("react.concurrent_mode"):60111,Lc=vn?Symbol.for("react.forward_ref"):60112,Fc=vn?Symbol.for("react.suspense"):60113,$w=vn?Symbol.for("react.suspense_list"):60120,zc=vn?Symbol.for("react.memo"):60115,jc=vn?Symbol.for("react.lazy"):60116,xw=vn?Symbol.for("react.block"):60121,Ew=vn?Symbol.for("react.fundamental"):60117,Ow=vn?Symbol.for("react.responder"):60118,Pw=vn?Symbol.for("react.scope"):60119;function er(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case cm:switch(e=e.type,e){case dm:case kc:case Mc:case Nc:case Tc:case Fc:return e;default:switch(e=e&&e.$$typeof,e){case Dc:case Lc:case jc:case zc:case Ac:return e;default:return t}}case um:return t}}}function nb(e){return er(e)===kc}At.AsyncMode=dm;At.ConcurrentMode=kc;At.ContextConsumer=Dc;At.ContextProvider=Ac;At.Element=cm;At.ForwardRef=Lc;At.Fragment=Mc;At.Lazy=jc;At.Memo=zc;At.Portal=um;At.Profiler=Nc;At.StrictMode=Tc;At.Suspense=Fc;At.isAsyncMode=function(e){return nb(e)||er(e)===dm};At.isConcurrentMode=nb;At.isContextConsumer=function(e){return er(e)===Dc};At.isContextProvider=function(e){return er(e)===Ac};At.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===cm};At.isForwardRef=function(e){return er(e)===Lc};At.isFragment=function(e){return er(e)===Mc};At.isLazy=function(e){return er(e)===jc};At.isMemo=function(e){return er(e)===zc};At.isPortal=function(e){return er(e)===um};At.isProfiler=function(e){return er(e)===Nc};At.isStrictMode=function(e){return er(e)===Tc};At.isSuspense=function(e){return er(e)===Fc};At.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Mc||e===kc||e===Nc||e===Tc||e===Fc||e===$w||typeof e=="object"&&e!==null&&(e.$$typeof===jc||e.$$typeof===zc||e.$$typeof===Ac||e.$$typeof===Dc||e.$$typeof===Lc||e.$$typeof===Ew||e.$$typeof===Ow||e.$$typeof===Pw||e.$$typeof===xw)};At.typeOf=er;tb.exports=At;var fm=tb.exports,rb=fm,Iw={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},_w={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ob={};ob[rb.ForwardRef]=Iw;ob[rb.Memo]=_w;var Rw=!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 ib=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||Rw===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles);},ab=function(t,n,r){ib(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 Mw(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 Tw={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},Nw=/[A-Z]|^ms/g,Aw=/_EMO_([^_]+?)_([^]*?)_EMO_/g,sb=function(t){return t.charCodeAt(1)===45},Jh=function(t){return t!=null&&typeof t!="boolean"},Du=vw(function(e){return sb(e)?e:e.replace(Nw,"-$&").toLowerCase()}),ev=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Aw,function(r,o,i){return Fr={name:o,styles:i,next:Fr},o})}return Tw[t]!==1&&!sb(t)&&typeof n=="number"&&n!==0?n+"px":n};function fs(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 Fr={name:n.name,styles:n.styles,next:Fr},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Fr={name:r.name,styles:r.styles,next:Fr},r=r.next;var o=n.styles+";";return o}return Dw(e,t,n)}case"function":{if(e!==void 0){var i=Fr,a=n(e);return Fr=i,fs(e,t,a)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function Dw(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=fs(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]+"}":Jh(a)&&(r+=Du(i)+":"+ev(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++)Jh(a[s])&&(r+=Du(i)+":"+ev(i,a[s])+";");else {var l=fs(e,t,a);switch(i){case"animation":case"animationName":{r+=Du(i)+":"+l+";";break}default:r+=i+"{"+l+"}";}}}return r}var tv=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Fr,Ua=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="";Fr=void 0;var a=t[0];a==null||a.raw===void 0?(o=!1,i+=fs(r,n,a)):i+=a[0];for(var s=1;s<t.length;s++)i+=fs(r,n,t[s]),o&&(i+=a[s]);tv.lastIndex=0;for(var l="",c;(c=tv.exec(i))!==null;)l+="-"+c[1];var d=Mw(i)+l;return {name:d,styles:i,next:Fr}},kw=function(t){return t()},Lw=f__namespace["useInsertionEffect"]?f__namespace["useInsertionEffect"]:!1,Fw=Lw||kw,Hc={}.hasOwnProperty,lb=f__namespace.createContext(typeof HTMLElement<"u"?eb({key:"css"}):null);lb.Provider;var zw=function(t){return f.forwardRef(function(n,r){var o=f.useContext(lb);return t(n,o,r)})},jw=f__namespace.createContext({}),Fd="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",cb=function(t,n){var r={};for(var o in n)Hc.call(n,o)&&(r[o]=n[o]);return r[Fd]=t,r},Hw=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return ib(n,r,o),Fw(function(){return ab(n,r,o)}),null},Bw=zw(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=Ua(i,void 0,f__namespace.useContext(jw));a+=t.key+"-"+s.name;var l={};for(var c in e)Hc.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(Hw,{cache:t,serialized:s,isStringTag:typeof o=="string"}),f__namespace.createElement(o,l))}),ub=Bw,Ht=cs.Fragment;function j(e,t,n){return Hc.call(t,"css")?cs.jsx(ub,cb(e,t),n):cs.jsx(e,t,n)}function ve(e,t,n){return Hc.call(t,"css")?cs.jsxs(ub,cb(e,t),n):cs.jsxs(e,t,n)}var zd={exports:{}},ku,nv;function Ww(){if(nv)return ku;nv=1;var e=1e3,t=e*60,n=t*60,r=n*24,o=r*7,i=r*365.25;ku=function(d,u){u=u||{};var m=typeof d;if(m==="string"&&d.length>0)return a(d);if(m==="number"&&isFinite(d))return u.long?l(d):s(d);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(d))};function a(d){if(d=String(d),!(d.length>100)){var u=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(d);if(u){var m=parseFloat(u[1]),h=(u[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(d){var u=Math.abs(d);return u>=r?Math.round(d/r)+"d":u>=n?Math.round(d/n)+"h":u>=t?Math.round(d/t)+"m":u>=e?Math.round(d/e)+"s":d+"ms"}function l(d){var u=Math.abs(d);return u>=r?c(d,u,r,"day"):u>=n?c(d,u,n,"hour"):u>=t?c(d,u,t,"minute"):u>=e?c(d,u,e,"second"):d+" ms"}function c(d,u,m,h){var v=u>=m*1.5;return Math.round(d/m)+" "+h+(v?"s":"")}return ku}function Vw(e){n.debug=n,n.default=n,n.coerce=l,n.disable=i,n.enable=o,n.enabled=a,n.humanize=Ww(),n.destroy=c,Object.keys(e).forEach(d=>{n[d]=e[d];}),n.names=[],n.skips=[],n.formatters={};function t(d){let u=0;for(let m=0;m<d.length;m++)u=(u<<5)-u+d.charCodeAt(m),u|=0;return n.colors[Math.abs(u)%n.colors.length]}n.selectColor=t;function n(d){let u,m=null,h,v;function g(...p){if(!g.enabled)return;const b=g,y=Number(new Date),w=y-(u||y);b.diff=w,b.prev=u,b.curr=y,u=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=d,g.useColors=n.useColors(),g.color=n.selectColor(d),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(d)),v),set:p=>{m=p;}}),typeof n.init=="function"&&n.init(g),g}function r(d,u){const m=n(this.namespace+(typeof u>"u"?":":u)+d);return m.log=this.log,m}function o(d){n.save(d),n.namespaces=d,n.names=[],n.skips=[];let u;const m=(typeof d=="string"?d:"").split(/[\s,]+/),h=m.length;for(u=0;u<h;u++)m[u]&&(d=m[u].replace(/\*/g,".*?"),d[0]==="-"?n.skips.push(new RegExp("^"+d.slice(1)+"$")):n.names.push(new RegExp("^"+d+"$")));}function i(){const d=[...n.names.map(s),...n.skips.map(s).map(u=>"-"+u)].join(",");return n.enable(""),d}function a(d){if(d[d.length-1]==="*")return !0;let u,m;for(u=0,m=n.skips.length;u<m;u++)if(n.skips[u].test(d))return !1;for(u=0,m=n.names.length;u<m;u++)if(n.names[u].test(d))return !0;return !1}function s(d){return d.toString().substring(2,d.toString().length-2).replace(/\.\*\?$/,"*")}function l(d){return d instanceof Error?d.stack||d.message:d}function c(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");}return n.enable(n.load()),n}var Gw=Vw;(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 d=0,u=0;l[0].replace(/%[a-zA-Z%]/g,m=>{m!=="%%"&&(d++,m==="%c"&&(u=d));}),l.splice(u,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=Gw(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 Uw=zd.exports;const Kw=vo(Uw),No="bilibili-app-recommend",Xw="bilibili_app_recommend",Ms=Kw(No);var qw=typeof global=="object"&&global&&global.Object===Object&&global;const db=qw;var Yw=typeof self=="object"&&self&&self.Object===Object&&self,Zw=db||Yw||Function("return this")();const Ur=Zw;var Qw=Ur.Symbol;const Vr=Qw;var fb=Object.prototype,Jw=fb.hasOwnProperty,e$=fb.toString,Ia=Vr?Vr.toStringTag:void 0;function t$(e){var t=Jw.call(e,Ia),n=e[Ia];try{e[Ia]=void 0;var r=!0;}catch{}var o=e$.call(e);return r&&(t?e[Ia]=n:delete e[Ia]),o}var n$=Object.prototype,r$=n$.toString;function o$(e){return r$.call(e)}var i$="[object Null]",a$="[object Undefined]",rv=Vr?Vr.toStringTag:void 0;function fa(e){return e==null?e===void 0?a$:i$:rv&&rv in Object(e)?t$(e):o$(e)}function Ji(e){return e!=null&&typeof e=="object"}var s$="[object Symbol]";function Bc(e){return typeof e=="symbol"||Ji(e)&&fa(e)==s$}function mb(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 l$=Array.isArray;const Er=l$;var c$=1/0,ov=Vr?Vr.prototype:void 0,iv=ov?ov.toString:void 0;function hb(e){if(typeof e=="string")return e;if(Er(e))return mb(e,hb)+"";if(Bc(e))return iv?iv.call(e):"";var t=e+"";return t=="0"&&1/e==-c$?"-0":t}var u$=/\s/;function d$(e){for(var t=e.length;t--&&u$.test(e.charAt(t)););return t}var f$=/^\s+/;function m$(e){return e&&e.slice(0,d$(e)+1).replace(f$,"")}function uo(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var av=0/0,h$=/^[-+]0x[0-9a-f]+$/i,v$=/^0b[01]+$/i,g$=/^0o[0-7]+$/i,p$=parseInt;function jd(e){if(typeof e=="number")return e;if(Bc(e))return av;if(uo(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=uo(t)?t+"":t;}if(typeof e!="string")return e===0?e:+e;e=m$(e);var n=v$.test(e);return n||g$.test(e)?p$(e.slice(2),n?2:8):h$.test(e)?av:+e}var sv=1/0,b$=17976931348623157e292;function y$(e){if(!e)return e===0?e:0;if(e=jd(e),e===sv||e===-sv){var t=e<0?-1:1;return t*b$}return e===e?e:0}function C$(e){var t=y$(e),n=t%1;return t===t?n?t-n:t:0}function vb(e){return e}var S$="[object AsyncFunction]",w$="[object Function]",$$="[object GeneratorFunction]",x$="[object Proxy]";function gb(e){if(!uo(e))return !1;var t=fa(e);return t==w$||t==$$||t==S$||t==x$}var E$=Ur["__core-js_shared__"];const Lu=E$;var lv=function(){var e=/[^.]+$/.exec(Lu&&Lu.keys&&Lu.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function O$(e){return !!lv&&lv in e}var P$=Function.prototype,I$=P$.toString;function ci(e){if(e!=null){try{return I$.call(e)}catch{}try{return e+""}catch{}}return ""}var _$=/[\\^$.*+?()[\]{}|]/g,R$=/^\[object .+?Constructor\]$/,M$=Function.prototype,T$=Object.prototype,N$=M$.toString,A$=T$.hasOwnProperty,D$=RegExp("^"+N$.call(A$).replace(_$,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function k$(e){if(!uo(e)||O$(e))return !1;var t=gb(e)?D$:R$;return t.test(ci(e))}function L$(e,t){return e==null?void 0:e[t]}function ui(e,t){var n=L$(e,t);return k$(n)?n:void 0}var F$=ui(Ur,"WeakMap");const Hd=F$;function z$(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 j$(){}function H$(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var B$=800,W$=16,V$=Date.now;function G$(e){var t=0,n=0;return function(){var r=V$(),o=W$-(r-n);if(n=r,o>0){if(++t>=B$)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function U$(e){return function(){return e}}var K$=function(){try{var e=ui(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Vl=K$;var X$=Vl?function(e,t){return Vl(e,"toString",{configurable:!0,enumerable:!1,value:U$(t),writable:!0})}:vb;const q$=X$;var Y$=G$(q$);const Z$=Y$;function Q$(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 J$(e){return e!==e}function ex(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return -1}function tx(e,t,n){return t===t?ex(e,t,n):Q$(e,J$,n)}function nx(e,t){var n=e==null?0:e.length;return !!n&&tx(e,t,0)>-1}var rx=9007199254740991,ox=/^(?:0|[1-9]\d*)$/;function hm(e,t){var n=typeof e;return t=t??rx,!!t&&(n=="number"||n!="symbol"&&ox.test(e))&&e>-1&&e%1==0&&e<t}function ix(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 ax=Object.prototype,sx=ax.hasOwnProperty;function lx(e,t,n){var r=e[t];(!(sx.call(e,t)&&vm(r,n))||n===void 0&&!(t in e))&&ix(e,t,n);}var cv=Math.max;function cx(e,t,n){return t=cv(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=cv(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),z$(e,this,s)}}var ux=9007199254740991;function gm(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ux}function dx(e){return e!=null&&gm(e.length)&&!gb(e)}var fx=Object.prototype;function mx(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||fx;return e===n}function hx(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var vx="[object Arguments]";function uv(e){return Ji(e)&&fa(e)==vx}var pb=Object.prototype,gx=pb.hasOwnProperty,px=pb.propertyIsEnumerable,bx=uv(function(){return arguments}())?uv:function(e){return Ji(e)&&gx.call(e,"callee")&&!px.call(e,"callee")};const pm=bx;function yx(){return !1}var bb=typeof ao=="object"&&ao&&!ao.nodeType&&ao,dv=bb&&typeof so=="object"&&so&&!so.nodeType&&so,Cx=dv&&dv.exports===bb,fv=Cx?Ur.Buffer:void 0,Sx=fv?fv.isBuffer:void 0,wx=Sx||yx;const Bd=wx;var $x="[object Arguments]",xx="[object Array]",Ex="[object Boolean]",Ox="[object Date]",Px="[object Error]",Ix="[object Function]",_x="[object Map]",Rx="[object Number]",Mx="[object Object]",Tx="[object RegExp]",Nx="[object Set]",Ax="[object String]",Dx="[object WeakMap]",kx="[object ArrayBuffer]",Lx="[object DataView]",Fx="[object Float32Array]",zx="[object Float64Array]",jx="[object Int8Array]",Hx="[object Int16Array]",Bx="[object Int32Array]",Wx="[object Uint8Array]",Vx="[object Uint8ClampedArray]",Gx="[object Uint16Array]",Ux="[object Uint32Array]",Vt={};Vt[Fx]=Vt[zx]=Vt[jx]=Vt[Hx]=Vt[Bx]=Vt[Wx]=Vt[Vx]=Vt[Gx]=Vt[Ux]=!0;Vt[$x]=Vt[xx]=Vt[kx]=Vt[Ex]=Vt[Lx]=Vt[Ox]=Vt[Px]=Vt[Ix]=Vt[_x]=Vt[Rx]=Vt[Mx]=Vt[Tx]=Vt[Nx]=Vt[Ax]=Vt[Dx]=!1;function Kx(e){return Ji(e)&&gm(e.length)&&!!Vt[fa(e)]}function Xx(e){return function(t){return e(t)}}var yb=typeof ao=="object"&&ao&&!ao.nodeType&&ao,Ka=yb&&typeof so=="object"&&so&&!so.nodeType&&so,qx=Ka&&Ka.exports===yb,Fu=qx&&db.process,Yx=function(){try{var e=Ka&&Ka.require&&Ka.require("util").types;return e||Fu&&Fu.binding&&Fu.binding("util")}catch{}}();const mv=Yx;var hv=mv&&mv.isTypedArray,Zx=hv?Xx(hv):Kx;const Cb=Zx;var Qx=Object.prototype,Jx=Qx.hasOwnProperty;function eE(e,t){var n=Er(e),r=!n&&pm(e),o=!n&&!r&&Bd(e),i=!n&&!r&&!o&&Cb(e),a=n||r||o||i,s=a?hx(e.length,String):[],l=s.length;for(var c in e)(t||Jx.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 tE(e,t){return function(n){return e(t(n))}}var nE=tE(Object.keys,Object);const rE=nE;var oE=Object.prototype,iE=oE.hasOwnProperty;function aE(e){if(!mx(e))return rE(e);var t=[];for(var n in Object(e))iE.call(e,n)&&n!="constructor"&&t.push(n);return t}function bm(e){return dx(e)?eE(e):aE(e)}var sE=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,lE=/^\w*$/;function ym(e,t){if(Er(e))return !1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Bc(e)?!0:lE.test(e)||!sE.test(e)||t!=null&&e in Object(t)}var cE=ui(Object,"create");const ms=cE;function uE(){this.__data__=ms?ms(null):{},this.size=0;}function dE(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var fE="__lodash_hash_undefined__",mE=Object.prototype,hE=mE.hasOwnProperty;function vE(e){var t=this.__data__;if(ms){var n=t[e];return n===fE?void 0:n}return hE.call(t,e)?t[e]:void 0}var gE=Object.prototype,pE=gE.hasOwnProperty;function bE(e){var t=this.__data__;return ms?t[e]!==void 0:pE.call(t,e)}var yE="__lodash_hash_undefined__";function CE(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ms&&t===void 0?yE:t,this}function ai(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]);}}ai.prototype.clear=uE;ai.prototype.delete=dE;ai.prototype.get=vE;ai.prototype.has=bE;ai.prototype.set=CE;function SE(){this.__data__=[],this.size=0;}function Wc(e,t){for(var n=e.length;n--;)if(vm(e[n][0],t))return n;return -1}var wE=Array.prototype,$E=wE.splice;function xE(e){var t=this.__data__,n=Wc(t,e);if(n<0)return !1;var r=t.length-1;return n==r?t.pop():$E.call(t,n,1),--this.size,!0}function EE(e){var t=this.__data__,n=Wc(t,e);return n<0?void 0:t[n][1]}function OE(e){return Wc(this.__data__,e)>-1}function PE(e,t){var n=this.__data__,r=Wc(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function go(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]);}}go.prototype.clear=SE;go.prototype.delete=xE;go.prototype.get=EE;go.prototype.has=OE;go.prototype.set=PE;var IE=ui(Ur,"Map");const hs=IE;function _E(){this.size=0,this.__data__={hash:new ai,map:new(hs||go),string:new ai};}function RE(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Vc(e,t){var n=e.__data__;return RE(t)?n[typeof t=="string"?"string":"hash"]:n.map}function ME(e){var t=Vc(this,e).delete(e);return this.size-=t?1:0,t}function TE(e){return Vc(this,e).get(e)}function NE(e){return Vc(this,e).has(e)}function AE(e,t){var n=Vc(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,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=_E;po.prototype.delete=ME;po.prototype.get=TE;po.prototype.has=NE;po.prototype.set=AE;var DE="Expected a function";function Cm(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(DE);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(Cm.Cache||po),n}Cm.Cache=po;var kE=500;function LE(e){var t=Cm(e,function(r){return n.size===kE&&n.clear(),r}),n=t.cache;return t}var FE=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,zE=/\\(\\)?/g,jE=LE(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(FE,function(n,r,o,i){t.push(o?i.replace(zE,"$1"):r||n);}),t});const HE=jE;function BE(e){return e==null?"":hb(e)}function Gc(e,t){return Er(e)?e:ym(e,t)?[e]:HE(BE(e))}var WE=1/0;function Ts(e){if(typeof e=="string"||Bc(e))return e;var t=e+"";return t=="0"&&1/e==-WE?"-0":t}function Sm(e,t){t=Gc(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Ts(t[n++])];return n&&n==r?e:void 0}function VE(e,t,n){var r=e==null?void 0:Sm(e,t);return r===void 0?n:r}function Sb(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var vv=Vr?Vr.isConcatSpreadable:void 0;function GE(e){return Er(e)||pm(e)||!!(vv&&e&&e[vv])}function wb(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=GE),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?wb(s,t-1,n,r,o):Sb(o,s):r||(o[o.length]=s);}return o}function UE(e){var t=e==null?0:e.length;return t?wb(e,1):[]}function KE(e){return Z$(cx(e,void 0,UE),e+"")}var XE="Expected a function";function qE(e,t){var n;if(typeof t!="function")throw new TypeError(XE);return e=C$(e),function(){return --e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}function YE(){this.__data__=new go,this.size=0;}function ZE(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function QE(e){return this.__data__.get(e)}function JE(e){return this.__data__.has(e)}var eO=200;function tO(e,t){var n=this.__data__;if(n instanceof go){var r=n.__data__;if(!hs||r.length<eO-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new po(r);}return n.set(e,t),this.size=n.size,this}function lo(e){var t=this.__data__=new go(e);this.size=t.size;}lo.prototype.clear=YE;lo.prototype.delete=ZE;lo.prototype.get=QE;lo.prototype.has=JE;lo.prototype.set=tO;function nO(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 rO(){return []}var oO=Object.prototype,iO=oO.propertyIsEnumerable,gv=Object.getOwnPropertySymbols,aO=gv?function(e){return e==null?[]:(e=Object(e),nO(gv(e),function(t){return iO.call(e,t)}))}:rO;const sO=aO;function lO(e,t,n){var r=t(e);return Er(e)?r:Sb(r,n(e))}function pv(e){return lO(e,bm,sO)}var cO=ui(Ur,"DataView");const Wd=cO;var uO=ui(Ur,"Promise");const Vd=uO;var dO=ui(Ur,"Set");const Hi=dO;var bv="[object Map]",fO="[object Object]",yv="[object Promise]",Cv="[object Set]",Sv="[object WeakMap]",wv="[object DataView]",mO=ci(Wd),hO=ci(hs),vO=ci(Vd),gO=ci(Hi),pO=ci(Hd),Bo=fa;(Wd&&Bo(new Wd(new ArrayBuffer(1)))!=wv||hs&&Bo(new hs)!=bv||Vd&&Bo(Vd.resolve())!=yv||Hi&&Bo(new Hi)!=Cv||Hd&&Bo(new Hd)!=Sv)&&(Bo=function(e){var t=fa(e),n=t==fO?e.constructor:void 0,r=n?ci(n):"";if(r)switch(r){case mO:return wv;case hO:return bv;case vO:return yv;case gO:return Cv;case pO:return Sv}return t});const $v=Bo;var bO=Ur.Uint8Array;const xv=bO;var yO="__lodash_hash_undefined__";function CO(e){return this.__data__.set(e,yO),this}function SO(e){return this.__data__.has(e)}function vs(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new po;++t<n;)this.add(e[t]);}vs.prototype.add=vs.prototype.push=CO;vs.prototype.has=SO;function wO(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 $b(e,t){return e.has(t)}var $O=1,xO=2;function xb(e,t,n,r,o,i){var a=n&$O,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return !1;var c=i.get(e),d=i.get(t);if(c&&d)return c==t&&d==e;var u=-1,m=!0,h=n&xO?new vs:void 0;for(i.set(e,t),i.set(t,e);++u<s;){var v=e[u],g=t[u];if(r)var p=a?r(g,v,u,t,e,i):r(v,g,u,e,t,i);if(p!==void 0){if(p)continue;m=!1;break}if(h){if(!wO(t,function(b,y){if(!$b(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 EO(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r];}),n}function wm(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r;}),n}var OO=1,PO=2,IO="[object Boolean]",_O="[object Date]",RO="[object Error]",MO="[object Map]",TO="[object Number]",NO="[object RegExp]",AO="[object Set]",DO="[object String]",kO="[object Symbol]",LO="[object ArrayBuffer]",FO="[object DataView]",Ev=Vr?Vr.prototype:void 0,zu=Ev?Ev.valueOf:void 0;function zO(e,t,n,r,o,i,a){switch(n){case FO:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return !1;e=e.buffer,t=t.buffer;case LO:return !(e.byteLength!=t.byteLength||!i(new xv(e),new xv(t)));case IO:case _O:case TO:return vm(+e,+t);case RO:return e.name==t.name&&e.message==t.message;case NO:case DO:return e==t+"";case MO:var s=EO;case AO:var l=r&OO;if(s||(s=wm),e.size!=t.size&&!l)return !1;var c=a.get(e);if(c)return c==t;r|=PO,a.set(e,t);var d=xb(s(e),s(t),r,o,i,a);return a.delete(e),d;case kO:if(zu)return zu.call(e)==zu.call(t)}return !1}var jO=1,HO=Object.prototype,BO=HO.hasOwnProperty;function WO(e,t,n,r,o,i){var a=n&jO,s=pv(e),l=s.length,c=pv(t),d=c.length;if(l!=d&&!a)return !1;for(var u=l;u--;){var m=s[u];if(!(a?m in t:BO.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;++u<l;){m=s[u];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 VO=1,Ov="[object Arguments]",Pv="[object Array]",il="[object Object]",GO=Object.prototype,Iv=GO.hasOwnProperty;function UO(e,t,n,r,o,i){var a=Er(e),s=Er(t),l=a?Pv:$v(e),c=s?Pv:$v(t);l=l==Ov?il:l,c=c==Ov?il:c;var d=l==il,u=c==il,m=l==c;if(m&&Bd(e)){if(!Bd(t))return !1;a=!0,d=!1;}if(m&&!d)return i||(i=new lo),a||Cb(e)?xb(e,t,n,r,o,i):zO(e,t,l,n,r,o,i);if(!(n&VO)){var h=d&&Iv.call(e,"__wrapped__"),v=u&&Iv.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),WO(e,t,n,r,o,i)):!1}function Uc(e,t,n,r,o){return e===t?!0:e==null||t==null||!Ji(e)&&!Ji(t)?e!==e&&t!==t:UO(e,t,n,r,Uc,o)}var KO=1,XO=2;function qO(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],d=s[1];if(a&&s[2]){if(c===void 0&&!(l in e))return !1}else {var u=new lo;if(r)var m=r(c,d,l,e,t,u);if(!(m===void 0?Uc(d,c,KO|XO,r,u):m))return !1}}return !0}function Eb(e){return e===e&&!uo(e)}function YO(e){for(var t=bm(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Eb(o)];}return t}function Ob(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function ZO(e){var t=YO(e);return t.length==1&&t[0][2]?Ob(t[0][0],t[0][1]):function(n){return n===e||qO(n,e,t)}}function QO(e,t){return e!=null&&t in Object(e)}function JO(e,t,n){t=Gc(t,e);for(var r=-1,o=t.length,i=!1;++r<o;){var a=Ts(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)&&(Er(e)||pm(e)))}function Pb(e,t){return e!=null&&JO(e,t,QO)}var eP=1,tP=2;function nP(e,t){return ym(e)&&Eb(t)?Ob(Ts(e),t):function(n){var r=VE(n,e);return r===void 0&&r===t?Pb(n,e):Uc(t,r,eP|tP)}}function rP(e){return function(t){return t==null?void 0:t[e]}}function oP(e){return function(t){return Sm(t,e)}}function iP(e){return ym(e)?rP(Ts(e)):oP(e)}function aP(e){return typeof e=="function"?e:e==null?vb:typeof e=="object"?Er(e)?nP(e[0],e[1]):ZO(e):iP(e)}var sP=function(){return Ur.Date.now()};const ju=sP;var lP="Expected a function",cP=Math.max,uP=Math.min;function Ib(e,t,n){var r,o,i,a,s,l,c=0,d=!1,u=!1,m=!0;if(typeof e!="function")throw new TypeError(lP);t=jd(t)||0,uo(n)&&(d=!!n.leading,u="maxWait"in n,i=u?cP(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),d?h(S):a}function g(S){var $=S-l,P=S-c,O=t-$;return u?uP(O,i-P):O}function p(S){var $=S-l,P=S-c;return l===void 0||$>=t||$<0||u&&P>=i}function b(){var S=ju();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(ju())}function C(){var S=ju(),$=p(S);if(r=arguments,o=this,l=S,$){if(s===void 0)return v(l);if(u)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 dP(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 fP(e,t){return mb(t,function(n){return e[n]})}function mP(e){return e==null?[]:fP(e,bm(e))}function hP(e,t){return Uc(e,t)}function vP(e,t,n,r){if(!uo(e))return e;t=Gc(t,e);for(var o=-1,i=t.length,a=i-1,s=e;s!=null&&++o<i;){var l=Ts(t[o]),c=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(o!=a){var d=s[l];c=r?r(d,l,s):void 0,c===void 0&&(c=uo(d)?d:hm(t[o+1])?[]:{});}lx(s,l,c),s=s[l];}return e}function gP(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=Sm(e,a);n(s,a)&&vP(i,Gc(a,e),s);}return i}function pP(e){return qE(2,e)}function bP(e,t){return gP(e,t,function(n,r){return Pb(e,r)})}var yP=KE(function(e,t){return e==null?{}:bP(e,t)});const _b=yP;var CP=Math.floor,SP=Math.random;function wP(e,t){return e+CP(SP()*(t-e+1))}function Rb(e,t){var n=-1,r=e.length,o=r-1;for(t=t===void 0?r:t;++n<t;){var i=wP(n,o),a=e[i];e[i]=e[n],e[n]=a;}return e.length=t,e}function $P(e){return Rb(H$(e))}function xP(e){return Rb(mP(e))}function EP(e){var t=Er(e)?$P:xP;return t(e)}var OP="Expected a function";function PP(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(OP);return uo(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Ib(e,t,{leading:r,maxWait:t,trailing:o})}var IP=1/0,_P=Hi&&1/wm(new Hi([,-0]))[1]==IP?function(e){return new Hi(e)}:j$;const RP=_P;var MP=200;function TP(e,t,n){var r=-1,o=nx,i=e.length,a=!0,s=[],l=s;if(n)a=!1,o=dP;else if(i>=MP){var c=t?null:RP(e);if(c)return wm(c);a=!1,o=$b,l=new vs;}else l=t?[]:s;e:for(;++r<i;){var d=e[r],u=t?t(d):d;if(d=n||d!==0?d:0,a&&u===u){for(var m=l.length;m--;)if(l[m]===u)continue e;t&&l.push(u),s.push(d);}else o(l,u,n)||(l!==s&&l.push(u),s.push(d));}return s}function Kc(e,t){return e&&e.length?TP(e,aP(t)):[]}const NP=Symbol(),$m=Symbol(),_a="a",Xa="w";let AP=(e,t)=>new Proxy(e,t);const Gd=Object.getPrototypeOf,Ud=new WeakMap,Mb=e=>e&&(Ud.has(e)?Ud.get(e):Gd(e)===Object.prototype||Gd(e)===Array.prototype),Gl=e=>typeof e=="object"&&e!==null,DP=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)},xm=e=>e[$m]||e,Tb=(e,t,n,r)=>{if(!Mb(e))return e;let o=r&&r.get(e);if(!o){const l=xm(e);o=(c=>Object.values(Object.getOwnPropertyDescriptors(c)).some(d=>!d.configurable&&!d.writable))(l)?[l,DP(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 d={f:c};let u=!1;const m=(v,g)=>{if(!u){let p=d[_a].get(l);if(p||(p={},d[_a].set(l,p)),v===Xa)p[Xa]=!0;else {let b=p[v];b||(b=new Set,p[v]=b),b.add(g);}}},h={get:(v,g)=>g===$m?l:(m("k",g),Tb(Reflect.get(v,g),d[_a],d.c,d.t)),has:(v,g)=>g===NP?(u=!0,d[_a].delete(l),!0):(m("h",g),Reflect.has(v,g)),getOwnPropertyDescriptor:(v,g)=>(m("o",g),Reflect.getOwnPropertyDescriptor(v,g)),ownKeys:v=>(m(Xa),Reflect.ownKeys(v))};return c&&(h.set=h.deleteProperty=()=>!1),[h,d]})(i,!!a),s[1].p=AP(a||i,s[0]),n&&n.set(i,s)),s[1][_a]=t,s[1].c=n,s[1].t=r,s[1].p},Nb=(e,t,n,r)=>{if(Object.is(e,t))return !1;if(!Gl(e)||!Gl(t))return !0;const o=n.get(xm(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[Xa]===!0){if(i=((a,s)=>{const l=Reflect.ownKeys(a),c=Reflect.ownKeys(s);return l.length!==c.length||l.some((d,u)=>d!==c[u])})(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=Nb(e[a],t[a],n,r),i)return i;return i===null&&(i=!0),i}finally{r&&r.set(e,{n:t,g:i});}},kP=e=>Mb(e)&&e[$m]||null,_v=(e,t=!0)=>{Ud.set(e,t);},LP=(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(xm(a));if(l){var c,d;if((c=l.h)==null||c.forEach(m=>{const h=`:has(${String(m)})`;r.push(s?[...s,h]:[h]);}),l[Xa]===!0){const m=":ownKeys";r.push(s?[...s,m]:[m]);}else {var u;(u=l.o)==null||u.forEach(m=>{const h=`:hasOwn(${String(m)})`;r.push(s?[...s,h]:[h]);});}(d=l.k)==null||d.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},Hu=e=>typeof e=="object"&&e!==null,Eo=new WeakMap,al=new WeakSet,FP=(e=Object.is,t=(c,d)=>new Proxy(c,d),n=c=>Hu(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,d,u=r)=>{const m=o.get(c);if((m==null?void 0:m[0])===d)return m[1];const h=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c));return _v(h,!0),o.set(c,[d,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))_v(g,!1);else if(g instanceof Promise)delete p.value,p.get=()=>u(g);else if(Eo.has(g)){const[b,y]=Eo.get(g);p.value=i(b,y(),u);}Object.defineProperty(h,v,p);}),h},a=new WeakMap,s=[1,1],l=c=>{if(!Hu(c))throw new Error("object required");const d=a.get(c);if(d)return d;let u=s[0];const m=new Set,h=(O,E=++s[0])=>{u!==E&&(u=E,m.forEach(T=>T(O,E)));};let v=s[1];const g=(O=++s[1])=>(v!==O&&!m.size&&(v=O,b.forEach(([E])=>{const T=E[1](O);T>u&&(u=T);})),u),p=O=>(E,T)=>{const _=[...E];_[1]=[O,..._[1]],h(_,T);},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 T=E[3](p(O));b.set(O,[E,T]);}else b.set(O,[E]);},w=O=>{var E;const T=b.get(O);T&&(b.delete(O),(E=T[1])==null||E.call(T));},x=O=>(m.add(O),m.size===1&&b.forEach(([T,_],R)=>{if(({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&_)throw new Error("remove already exists");const I=T[3](p(R));b.set(R,[T,I]);}),()=>{m.delete(O),m.size===0&&b.forEach(([T,_],R)=>{_&&(_(),b.set(R,[T]));});}),C=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c)),$=t(C,{deleteProperty(O,E){const T=Reflect.get(O,E);w(E);const _=Reflect.deleteProperty(O,E);return _&&h(["delete",[E],T]),_},set(O,E,T,_){const R=Reflect.has(O,E),I=Reflect.get(O,E,_);if(R&&(e(I,T)||a.has(T)&&e(I,a.get(T))))return !0;w(E),Hu(T)&&(T=kP(T)||T);let M=T;if(T instanceof Promise)T.then(A=>{T.status="fulfilled",T.value=A,h(["resolve",[E],A]);}).catch(A=>{T.status="rejected",T.reason=A,h(["reject",[E],A]);});else {!Eo.has(T)&&n(T)&&(M=l(T));const A=!al.has(M)&&Eo.get(M);A&&y(E,A);}return Reflect.set(O,E,M,_),h(["set",[E],T,I]),!0}});a.set(c,$);const P=[C,g,i,x];return Eo.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,Eo,al,e,t,n,r,o,i,a,s],[zP]=FP();function ma(e={}){return zP(e)}function Ab(e,t,n){const r=Eo.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(d=>{if(i.push(d),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 Rv(e,t){const n=Eo.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 Db={exports:{}},kb={};/**
   * @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 ea=f;function jP(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var HP=typeof Object.is=="function"?Object.is:jP,BP=ea.useState,WP=ea.useEffect,VP=ea.useLayoutEffect,GP=ea.useDebugValue;function UP(e,t){var n=t(),r=BP({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return VP(function(){o.value=n,o.getSnapshot=t,Bu(o)&&i({inst:o});},[e,n,t]),WP(function(){return Bu(o)&&i({inst:o}),e(function(){Bu(o)&&i({inst:o});})},[e]),GP(n),n}function Bu(e){var t=e.getSnapshot;e=e.value;try{var n=t();return !HP(e,n)}catch{return !0}}function KP(e,t){return t()}var XP=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?KP:UP;kb.useSyncExternalStore=ea.useSyncExternalStore!==void 0?ea.useSyncExternalStore:XP;Db.exports=kb;var qP=Db.exports;const YP=vo(qP),{use:Mv}=f,{useSyncExternalStore:ZP}=YP,QP=(e,t)=>{const n=f.useRef();f.useEffect(()=>{n.current=LP(e,t,!0);}),f.useDebugValue(n.current);},JP=new WeakMap;function di(e,t){const n=t==null?void 0:t.sync,r=f.useRef(),o=f.useRef();let i=!0;const a=ZP(f.useCallback(c=>{const d=Ab(e,c,n);return c(),d},[e,n]),()=>{const c=Rv(e,Mv);try{if(!i&&r.current&&o.current&&!Nb(r.current,c,o.current,new WeakMap))return r.current}catch{}return c},()=>Rv(e,Mv));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"&&QP(a,s);const l=f.useMemo(()=>new WeakMap,[]);return Tb(a,s,l,JP)}const Em={accessKey:"",useNarrowMode:!1,initialShowMore:!1,pureRecommend:!1,usePcDesktopApi:!1,useParallelRequest:!0,autoPreviewWhenKeyboardSelect:!1,autoPreviewUpdateInterval:400,autoPreviewWhenHover:!1,theme:"",colorPickerThemeSelectedColor:"",videoSourceTab:"normal",shuffleForWatchLater:!0,filterMinPlayCountEnabled:!1,filterMinPlayCount:1e4,filterMinDurationEnabled:!1,filterMinDuration:60,enableFilterForFollowed:!1},vt=ma({...Em}),Lb=Object.keys(Em),ur=function(){return di(vt)},eI=No,Fb=`${eI}.settings`;function tI(){const e=GM_getValue(Fb);e&&typeof e=="object"&&Object.assign(vt,_b(e,Lb)),Ab(vt,()=>{nI();});}function nI(){const e=_b(vt,Lb);GM_setValue(Fb,e);}function si(e){Object.assign(vt,e);}function rI(){return si(Em)}tI();var zb={exports:{}};(function(e,t){(function(n,r){e.exports=r();})(Bp,function(){var n=1e3,r=6e4,o=36e5,i="millisecond",a="second",s="minute",l="hour",c="day",d="week",u="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 I=["th","st","nd","rd"],M=R%100;return "["+R+(I[(M-20)%10]||I[M]||I[0])+"]"}},w=function(R,I,M){var A=String(R);return !A||A.length>=I?R:""+Array(I+1-A.length).join(M)+R},x={s:w,z:function(R){var I=-R.utcOffset(),M=Math.abs(I),A=Math.floor(M/60),N=M%60;return (I<=0?"+":"-")+w(A,2,"0")+":"+w(N,2,"0")},m:function R(I,M){if(I.date()<M.date())return -R(M,I);var A=12*(M.year()-I.year())+(M.month()-I.month()),N=I.clone().add(A,u),D=M-N<0,F=I.clone().add(A+(D?-1:1),u);return +(-(A+(M-N)/(D?N-F:F-N))||0)},a:function(R){return R<0?Math.ceil(R)||0:Math.floor(R)},p:function(R){return {M:u,y:h,w:d,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 T},P=function R(I,M,A){var N;if(!I)return C;if(typeof I=="string"){var D=I.toLowerCase();S[D]&&(N=D),M&&(S[D]=M,N=D);var F=I.split("-");if(!N&&F.length>1)return R(F[0])}else {var z=I.name;S[z]=I,N=z;}return !A&&N&&(C=N),N||!A&&C},O=function(R,I){if($(R))return R.clone();var M=typeof I=="object"?I:{};return M.date=R,M.args=arguments,new T(M)},E=x;E.l=P,E.i=$,E.w=function(R,I){return O(R,{locale:I.$L,utc:I.$u,x:I.$x,$offset:I.$offset})};var T=function(){function R(M){this.$L=P(M.locale,null,!0),this.parse(M);}var I=R.prototype;return I.parse=function(M){this.$d=function(A){var N=A.date,D=A.utc;if(N===null)return new Date(NaN);if(E.u(N))return new Date;if(N instanceof Date)return new Date(N);if(typeof N=="string"&&!/Z$/i.test(N)){var F=N.match(p);if(F){var z=F[2]-1||0,H=(F[7]||"0").substring(0,3);return D?new Date(Date.UTC(F[1],z,F[3]||1,F[4]||0,F[5]||0,F[6]||0,H)):new Date(F[1],z,F[3]||1,F[4]||0,F[5]||0,F[6]||0,H)}}return new Date(N)}(M),this.$x=M.x||{},this.init();},I.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();},I.$utils=function(){return E},I.isValid=function(){return this.$d.toString()!==g},I.isSame=function(M,A){var N=O(M);return this.startOf(A)<=N&&N<=this.endOf(A)},I.isAfter=function(M,A){return O(M)<this.startOf(A)},I.isBefore=function(M,A){return this.endOf(A)<O(M)},I.$g=function(M,A,N){return E.u(M)?this[A]:this.set(N,M)},I.unix=function(){return Math.floor(this.valueOf()/1e3)},I.valueOf=function(){return this.$d.getTime()},I.startOf=function(M,A){var N=this,D=!!E.u(A)||A,F=E.p(M),z=function(Y,ee){var re=E.w(N.$u?Date.UTC(N.$y,ee,Y):new Date(N.$y,ee,Y),N);return D?re:re.endOf(c)},H=function(Y,ee){return E.w(N.toDate()[Y].apply(N.toDate("s"),(D?[0,0,0,0]:[23,59,59,999]).slice(ee)),N)},k=this.$W,W=this.$M,B=this.$D,K="set"+(this.$u?"UTC":"");switch(F){case h:return D?z(1,0):z(31,11);case u:return D?z(1,W):z(0,W+1);case d:var te=this.$locale().weekStart||0,Z=(k<te?k+7:k)-te;return z(D?B-Z:B+(6-Z),W);case c:case v:return H(K+"Hours",0);case l:return H(K+"Minutes",1);case s:return H(K+"Seconds",2);case a:return H(K+"Milliseconds",3);default:return this.clone()}},I.endOf=function(M){return this.startOf(M,!1)},I.$set=function(M,A){var N,D=E.p(M),F="set"+(this.$u?"UTC":""),z=(N={},N[c]=F+"Date",N[v]=F+"Date",N[u]=F+"Month",N[h]=F+"FullYear",N[l]=F+"Hours",N[s]=F+"Minutes",N[a]=F+"Seconds",N[i]=F+"Milliseconds",N)[D],H=D===c?this.$D+(A-this.$W):A;if(D===u||D===h){var k=this.clone().set(v,1);k.$d[z](H),k.init(),this.$d=k.set(v,Math.min(this.$D,k.daysInMonth())).$d;}else z&&this.$d[z](H);return this.init(),this},I.set=function(M,A){return this.clone().$set(M,A)},I.get=function(M){return this[E.p(M)]()},I.add=function(M,A){var N,D=this;M=Number(M);var F=E.p(A),z=function(W){var B=O(D);return E.w(B.date(B.date()+Math.round(W*M)),D)};if(F===u)return this.set(u,this.$M+M);if(F===h)return this.set(h,this.$y+M);if(F===c)return z(1);if(F===d)return z(7);var H=(N={},N[s]=r,N[l]=o,N[a]=n,N)[F]||1,k=this.$d.getTime()+M*H;return E.w(k,this)},I.subtract=function(M,A){return this.add(-1*M,A)},I.format=function(M){var A=this,N=this.$locale();if(!this.isValid())return N.invalidDate||g;var D=M||"YYYY-MM-DDTHH:mm:ssZ",F=E.z(this),z=this.$H,H=this.$m,k=this.$M,W=N.weekdays,B=N.months,K=function(ee,re,ae,ue){return ee&&(ee[re]||ee(A,D))||ae[re].slice(0,ue)},te=function(ee){return E.s(z%12||12,ee,"0")},Z=N.meridiem||function(ee,re,ae){var ue=ee<12?"AM":"PM";return ae?ue.toLowerCase():ue},Y={YY:String(this.$y).slice(-2),YYYY:E.s(this.$y,4,"0"),M:k+1,MM:E.s(k+1,2,"0"),MMM:K(N.monthsShort,k,B,3),MMMM:K(B,k),D:this.$D,DD:E.s(this.$D,2,"0"),d:String(this.$W),dd:K(N.weekdaysMin,this.$W,W,2),ddd:K(N.weekdaysShort,this.$W,W,3),dddd:W[this.$W],H:String(z),HH:E.s(z,2,"0"),h:te(1),hh:te(2),a:Z(z,H,!0),A:Z(z,H,!1),m:String(H),mm:E.s(H,2,"0"),s:String(this.$s),ss:E.s(this.$s,2,"0"),SSS:E.s(this.$ms,3,"0"),Z:F};return D.replace(b,function(ee,re){return re||Y[ee]||F.replace(":","")})},I.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},I.diff=function(M,A,N){var D,F=E.p(A),z=O(M),H=(z.utcOffset()-this.utcOffset())*r,k=this-z,W=E.m(this,z);return W=(D={},D[h]=W/12,D[u]=W,D[m]=W/3,D[d]=(k-H)/6048e5,D[c]=(k-H)/864e5,D[l]=k/o,D[s]=k/r,D[a]=k/n,D)[F]||k,N?W:E.a(W)},I.daysInMonth=function(){return this.endOf(u).$D},I.$locale=function(){return S[this.$L]},I.locale=function(M,A){if(!M)return this.$L;var N=this.clone(),D=P(M,A,!0);return D&&(N.$L=D),N},I.clone=function(){return E.w(this.$d,this)},I.toDate=function(){return new Date(this.valueOf())},I.toJSON=function(){return this.isValid()?this.toISOString():null},I.toISOString=function(){return this.$d.toISOString()},I.toString=function(){return this.$d.toUTCString()},R}(),_=T.prototype;return O.prototype=_,[["$ms",i],["$s",a],["$m",s],["$H",l],["$W",c],["$M",u],["$y",h],["$D",v]].forEach(function(R){_[R[1]]=function(I){return this.$g(I,R[0],R[1])};}),O.extend=function(R,I){return R.$i||(R(I,T,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});})(zb);var oI=zb.exports;const ha=vo(oI);var jb={exports:{}};(function(e,t){(function(n,r){e.exports=r();})(Bp,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,d=2592e6,u=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,m={years:c,months:d,days: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 T=$.match(u);if(T){var _=T.slice(2).map(function(R){return R!=null?Number(R):0});return this.$d.years=_[0],this.$d.months=_[1],this.$d.weeks=_[2],this.$d.days=_[3],this.$d.hours=_[4],this.$d.minutes=_[5],this.$d.seconds=_[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($/d),$%=d,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"),T=w(this.$d.hours,"H"),_=w(this.$d.minutes,"M"),R=this.$d.seconds||0;this.$d.milliseconds&&(R+=this.$d.milliseconds/1e3);var I=w(R,"S"),M=$.negative||P.negative||E.negative||T.negative||_.negative||I.negative,A=T.format||_.format||I.format?"T":"",N=(M?"-":"")+"P"+$.format+P.format+E.format+A+T.format+_.format+I.format;return N==="P"||N==="-P"?"P0D":N},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,T){return T||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,T){var _=$.locale();return v(E,{$l:_},T)},$.isDuration=h;var P=S.prototype.add,O=S.prototype.subtract;S.prototype.add=function(E,T){return h(E)&&(E=E.asMilliseconds()),P.bind(this)(E,T)},S.prototype.subtract=function(E,T){return h(E)&&(E=E.asMilliseconds()),O.bind(this)(E,T)};}});})(jb);var iI=jb.exports;const aI=vo(iI),ta=pP(()=>!!document.querySelectorAll(".bili-feed4").length),Hb=()=>document.body.classList.contains("dark"),Bb=ma({value:Hb()});function Xc(){return di(Bb).value}const Wb=new MutationObserver(function(){Bb.value=Hb();});Wb.observe(document.body,{attributes:!0,attributeFilter:["class"]});window.addEventListener("unload",()=>{Wb.disconnect();});function Cn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ot(e){"@babel/helpers - typeof";return ot=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},ot(e)}function sI(e,t){if(ot(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ot(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return (t==="string"?String:Number)(e)}function Vb(e){var t=sI(e,"string");return ot(t)==="symbol"?t:String(t)}function Tv(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,Vb(r.key),r);}}function Sn(e,t,n){return t&&Tv(e.prototype,t),n&&Tv(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 fi(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 lI(){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 cI(e,t){if(t&&(ot(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 mi(e){var t=lI();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 cI(this,o)}}var Gb={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;})();})(Gb);var uI=Gb.exports;const U=vo(uI);function dr(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(dr(r)):fm.isFragment(r)&&r.props?n=n.concat(dr(r.props.children,t)):n.push(r));}),n}var Xd={},dI=function(t){};function fI(e,t){}function mI(e,t){}function hI(){Xd={};}function Ub(e,t,n){!t&&!Xd[n]&&(e(!1,n),Xd[n]=!0);}function mn(e,t){Ub(fI,e,t);}function vI(e,t){Ub(mI,e,t);}mn.preMessage=dI;mn.resetWarned=hI;mn.noteOnce=vI;function q(e,t,n){return t=Vb(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nv(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 V(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Nv(Object(n),!0).forEach(function(r){q(e,r,n[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r));});}return e}function Ns(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 Om(e,t){typeof e=="function"?e(t):ot(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){Om(i,o);});}}function As(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ns(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 hi(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?jp.findDOMNode(e):null}var Kb=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")()}(),gI=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Yl):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),pI=2;function bI(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&s();}function a(){gI(i);}function s(){var l=Date.now();if(n){if(l-o<pI)return;r=!0;}else n=!0,r=!1,setTimeout(a,t);o=l;}return s}var yI=20,CI=["top","right","bottom","left","width","height","size","weight"],SI=typeof MutationObserver<"u",wI=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=bI(this.refresh.bind(this),yI);}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),SI?(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=CI.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}(),Xb=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},na=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Yl},qb=qc(0,0,0,0);function Zl(e){return parseFloat(e)||0}function Av(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 $I(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 xI(e){var t=e.getBBox();return qc(0,0,t.width,t.height)}function EI(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return qb;var r=na(e).getComputedStyle(e),o=$I(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-=Av(r,"left","right")+i),Math.round(l+a)!==n&&(l-=Av(r,"top","bottom")+a)),!PI(e)){var c=Math.round(s+i)-t,d=Math.round(l+a)-n;Math.abs(c)!==1&&(s-=c),Math.abs(d)!==1&&(l-=d);}return qc(o.left,o.top,s,l)}var OI=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof na(e).SVGGraphicsElement}:function(e){return e instanceof na(e).SVGElement&&typeof e.getBBox=="function"}}();function PI(e){return e===na(e).document.documentElement}function II(e){return qd?OI(e)?xI(e):EI(e):qb}function _I(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 Xb(a,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),a}function qc(e,t,n,r){return {x:e,y:t,width:n,height:r}}var RI=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=qc(0,0,0,0),this.target=t;}return e.prototype.isActive=function(){var t=II(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}(),MI=function(){function e(t,n){var r=_I(n);Xb(this,{target:t,contentRect:r});}return e}(),TI=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new Kb,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 na(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new RI(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 na(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 MI(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive();}},e.prototype.clearActive=function(){this.activeObservations_.splice(0);},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Yb=typeof WeakMap<"u"?new WeakMap:new Kb,Zb=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=wI.getInstance(),r=new TI(t,n,this);Yb.set(this,r);}return e}();["observe","unobserve","disconnect"].forEach(function(e){Zb.prototype[e]=function(){var t;return (t=Yb.get(this))[e].apply(t,arguments)};});var NI=function(){return typeof Yl.ResizeObserver<"u"?Yl.ResizeObserver:Zb}(),Po=new Map;function AI(e){e.forEach(function(t){var n,r=t.target;(n=Po.get(r))===null||n===void 0||n.forEach(function(o){return o(r)});});}var Qb=new NI(AI);function DI(e,t){Po.has(e)||(Po.set(e,new Set),Qb.observe(e)),Po.get(e).add(t);}function kI(e,t){Po.has(e)&&(Po.get(e).delete(t),Po.get(e).size||(Qb.unobserve(e),Po.delete(e)));}var LI=function(e){fi(n,e);var t=mi(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 FI(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 d=r.current;o.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){d===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 zI(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}),d=!s&&f__namespace.isValidElement(l)&&hi(l),u=d?l.ref:null,m=f__namespace.useMemo(function(){return Fn(u,o)},[u,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 T={width:O,height:E,offsetWidth:$,offsetHeight:P};c.current=T;var _=$===Math.round(C)?C:$,R=P===Math.round(S)?S:P,I=V(V({},T),{},{offsetWidth:_,offsetHeight:R});a==null||a(I,p,w),y&&Promise.resolve().then(function(){y(I,p);});}},[]);return f__namespace.useEffect(function(){var p=h();return p&&!r&&DI(p,g),function(){return kI(p,g)}},[o.current,r]),f__namespace.createElement(LI,{ref:i},d?f__namespace.cloneElement(l,{ref:m}):l)}var jI=f__namespace.forwardRef(zI),HI="rc-observer-key";function BI(e,t){var n=e.children,r=typeof n=="function"?[n]:dr(n);return r.map(function(o,i){var a=(o==null?void 0:o.key)||"".concat(HI,"-").concat(i);return f__namespace.createElement(jI,pe({},e,{key:a,ref:i===0?t:void 0}),o)})}var fo=f__namespace.forwardRef(BI);fo.Collection=FI;function Mn(e,t){var n=V({},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 WI(e){if(Array.isArray(e))return Zd(e)}function Jb(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Pm(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 VI(){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 WI(e)||Jb(e)||Pm(e)||VI()}var e0=function(t){return +setTimeout(t,16)},t0=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(e0=function(t){return window.requestAnimationFrame(t)},t0=function(t){return window.cancelAnimationFrame(t)});var Dv=0,Im=new Map;function n0(e){Im.delete(e);}var Nt=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Dv+=1;var r=Dv;function o(i){if(i===0)n0(r),t();else {var a=e0(function(){o(i-1);});Im.set(r,a);}}return o(n),r};Nt.cancel=function(e){var t=Im.get(e);return n0(t),t0(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 GI(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=GI(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 Yc(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 d=0;d<i.length;d++)if(!o(i[d],a[d],c))return !1;return !0}if(i&&a&&ot(i)==="object"&&ot(a)==="object"){var u=Object.keys(i);return u.length!==Object.keys(a).length?!1:u.every(function(m){return o(i[m],a[m],c)})}return !1}return o(e,t)}var UI=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",Bi="data-css-hash",Di="__cssinjs_instance__";function KI(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Bi,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[Di]=o[Di]||e,o[Di]===e&&document.head.insertBefore(o,n);});var r={};Array.from(document.querySelectorAll("style[".concat(Bi,"]"))).forEach(function(o){var i=o.getAttribute(Bi);if(r[i]){if(o[Di]===e){var a;(a=o.parentNode)===null||a===void 0||a.removeChild(o);}}else r[i]=!0;});}return new UI(e)}var XI=f__namespace.createContext({hashPriority:"low",cache:KI(),defaultCache:!0});const Rm=XI;function kn(){return !!(typeof window<"u"&&window.document&&window.document.createElement)}function qI(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 kv="data-rc-order",YI="rc-util-key",Jd=new Map;function r0(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):YI}function Zc(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function ZI(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function o0(e){return Array.from((Jd.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function i0(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(kv,ZI(r)),n!=null&&n.nonce&&(o.nonce=n==null?void 0:n.nonce),o.innerHTML=e;var i=Zc(t),a=i.firstChild;if(r){if(r==="queue"){var s=o0(i).filter(function(l){return ["prepend","prependQueue"].includes(l.getAttribute(kv))});if(s.length)return i.insertBefore(o,s[s.length-1].nextSibling),o}i.insertBefore(o,a);}else i.appendChild(o);return o}function a0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Zc(t);return o0(n).find(function(r){return r.getAttribute(r0(t))===e})}function Ql(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=a0(e,t);if(n){var r=Zc(t);r.removeChild(n);}}function QI(e,t){var n=Jd.get(e);if(!n||!qI(document,n)){var r=i0("",t),o=r.parentNode;Jd.set(e,o),e.removeChild(r);}}function ra(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Zc(n);QI(r,n);var o=a0(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=i0(e,n);return l.setAttribute(r0(n),t),l}function Jl(e){var t="";return Object.keys(e).forEach(function(n){var r=e[n];t+=n,r&&ot(r)==="object"?t+=Jl(r):t+=r;}),t}function JI(e,t){return _m("".concat(t,"_").concat(Jl(e)))}var qa="layer-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),s0="903px";function e_(e,t){if(kn()){var n;ra(e,qa);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===s0;return (n=r.parentNode)===null||n===void 0||n.removeChild(r),Ql(qa),o}return !1}var Wu=void 0;function t_(){return Wu===void 0&&(Wu=e_("@layer ".concat(qa," { .").concat(qa," { width: ").concat(s0,"!important; } }"),function(e){e.className=qa;})),Wu}function l0(e){if(Array.isArray(e))return e}function n_(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(d){c=!0,o=d;}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function c0(){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 l0(e)||n_(e,t)||Pm(e,t)||c0()}function u0(e,t,n,r){var o=f__namespace.useContext(Rm),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),d=c[0],u=d===void 0?0:d,m=c[1],h=m,v=h||n();return [u+1,v]});},[a.join("_")]),f__namespace.useEffect(function(){return function(){i.update(a,function(s){var l=s||[],c=X(l,2),d=c[0],u=d===void 0?0:d,m=c[1],h=u-1;return h===0?(r==null||r(m,!1),null):[u-1,m]});}},a),i.get(a)[1]}var r_={},o_="css",Vo=new Map;function i_(e){Vo.set(e,(Vo.get(e)||0)+1);}function a_(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Qd,'="').concat(e,'"]'));n.forEach(function(r){if(r[Di]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r);}});}}function s_(e,t){Vo.set(e,(Vo.get(e)||0)-1);var n=Array.from(Vo.keys()),r=n.filter(function(o){var i=Vo.get(o)||0;return i<=0});r.length<n.length&&r.forEach(function(o){a_(o,t),Vo.delete(o);});}var d0=function(t,n,r,o){var i=r.getDerivativeToken(t),a=V(V({},i),n);return o&&(a=o(a)),a};function l_(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=f.useContext(Rm),o=r.cache.instanceId,i=n.salt,a=i===void 0?"":i,s=n.override,l=s===void 0?r_:s,c=n.formatToken,d=f__namespace.useMemo(function(){return Object.assign.apply(Object,[{}].concat(ge(t)))},[t]),u=f__namespace.useMemo(function(){return Jl(d)},[d]),m=f__namespace.useMemo(function(){return Jl(l)},[l]),h=u0("token",[a,e.id,u,m],function(){var v=d0(d,l,e,c),g=JI(v,a);v._tokenKey=g,i_(g);var p="".concat(o_,"-").concat(_m(g));return v._hashId=p,[v,p]},function(v){s_(v[0]._tokenKey,o);});return h}var c_={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},Lv=kn(),u_="_skip_check_",f0="_multi_value_";function Fv(e){var t=Jo(Zp(e),Qp);return t.replace(/\{%%%\:[^;];}/g,";")}function d_(e){return ot(e)==="object"&&e&&(u_ in e||f0 in e)}function f_(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]||"",d=((s=c.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return c="".concat(d).concat(o).concat(c.slice(d.length)),[c].concat(ge(l.slice(1))).join(" ")});return i.join(",")}var m_=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,d=n.transformers,u=d===void 0?[]:d;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=u.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(ot($)==="object"&&$&&(S!=="animationName"||!$._keyframe)&&!d_($)){var P=!1,O=S.trim(),E=!1;(o||i)&&s?O.startsWith("@")?P=!0:O=f_(S,s,c):o&&!s&&(O==="&"||O==="")&&(O="",E=!0);var T=e($,n,{root:E,injectHash:P,parentSelectors:[].concat(ge(a),[O])}),_=X(T,2),R=_[0],I=_[1];h=V(V({},h),I),m+="".concat(O).concat(R);}else {let N=function(D,F){var z=D.replace(/[A-Z]/g,function(k){return "-".concat(k.toLowerCase())}),H=F;!c_[D]&&typeof H=="number"&&H!==0&&(H="".concat(H,"px")),D==="animationName"&&F!==null&&F!==void 0&&F._keyframe&&(v(F),H=F.getName(s)),m+="".concat(z,":").concat(H,";");};var M,A=(M=$==null?void 0:$.value)!==null&&M!==void 0?M:$;ot($)==="object"&&$!==null&&$!==void 0&&$[f0]&&Array.isArray(A)?A.forEach(function(D){N(S,D);}):N(S,A);}});}}),!o)m="{".concat(m,"}");else if(l&&t_()){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 h_(e,t){return _m("".concat(e.join("%")).concat(t))}function v_(){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(Rm),l=s.autoClear;s.mock;var c=s.defaultCache,d=s.hashPriority,u=s.container,m=s.ssrInline,h=s.transformers,v=s.linters,g=s.cache,p=n._tokenKey,b=[p].concat(ge(r)),y=Lv,w=u0("style",b,function(){var P=t(),O=m_(P,{hashId:o,hashPriority:d,layer:i,path:r.join("-"),transformers:h,linters:v}),E=X(O,2),T=E[0],_=E[1],R=Fv(T),I=h_(b,R);if(y){var M={mark:Bi,prepend:"queue",attachTo:u},A=typeof a=="function"?a():a;A&&(M.csp={nonce:A});var N=ra(R,I,M);N[Di]=g.instanceId,N.setAttribute(Qd,p),Object.keys(_).forEach(function(D){ra(Fv(_[D]),"_effect-".concat(D),M);});}return [R,p,I]},function(P,O){var E=X(P,3),T=E[2];(O||l)&&Lv&&Ql(T,{mark:Bi});}),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(v_,null);else {var E;O=f__namespace.createElement("style",pe({},(E={},q(E,Qd,S),q(E,Bi,$),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 g_(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 Mm=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,d){var u=X(c,2),m=u[1];return o.internalGet(d)[1]<m?[d,o.internalGet(d)[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,d){if(d===n.length-1)l.set(c,{value:[r,o.cacheCallTimes++]});else {var u=l.get(c);u?u.map||(u.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 !g_(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();q(Mm,"MAX_CACHE_SIZE",20);q(Mm,"MAX_CACHE_OFFSET",5);var zv=0,p_=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=zv,t.length===0&&(t.length>0,void 0),zv+=1;}return Sn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),Vu=new Mm;function ec(e){var t=Array.isArray(e)?e:[e];return Vu.has(t)||Vu.set(t,new p_(t)),Vu.get(t)}function Ci(e){return e.notSplit=!0,e}Ci(["borderTop","borderBottom"]),Ci(["borderTop"]),Ci(["borderBottom"]),Ci(["borderLeft","borderRight"]),Ci(["borderLeft"]),Ci(["borderRight"]);var b_=f.createContext({});const Tm=b_;function m0(e){return l0(e)||Jb(e)||Pm(e)||c0()}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 h0(e,t,n,r){if(!t.length)return n;var o=m0(t),i=o[0],a=o.slice(1),s;return !e&&typeof i=="number"?s=[]:Array.isArray(e)?s=ge(e):s=V({},e),r&&n===void 0&&a.length===1?delete s[i][a[0]]:s[i]=h0(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:h0(e,t,n,r)}function y_(e){return ot(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function jv(e){return Array.isArray(e)?[]:{}}function ki(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=jv(t[0]),o=new Set;return t.forEach(function(i){function a(s){var l=xr(i,s),c=Array.isArray(l);if(c||y_(l)){if(!o.has(l)){o.add(l);var d=xr(r,s);c?r=Sr(r,s,[]):(!d||ot(d)!=="object")&&(r=Sr(r,s,jv(l))),Object.keys(l).forEach(function(u){a([].concat(ge(s),[u]));});}}else r=Sr(r,s,l);}a([]);}),r}var Uo="RC_FORM_INTERNAL_HOOKS",kt=function(){mn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.");},oa=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 C_(e){return e&&!!e._init}function Qn(){Qn=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(_,R,I){_[R]=I.value;},o=typeof Symbol=="function"?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(_,R,I){return Object.defineProperty(_,R,{value:I,enumerable:!0,configurable:!0,writable:!0}),_[R]}try{l({},"");}catch{l=function(I,M,A){return I[M]=A};}function c(_,R,I,M){var A=R&&R.prototype instanceof m?R:m,N=Object.create(A.prototype),D=new O(M||[]);return r(N,"_invoke",{value:C(_,I,D)}),N}function d(_,R,I){try{return {type:"normal",arg:_.call(R,I)}}catch(M){return {type:"throw",arg:M}}}e.wrap=c;var u={};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(_){["next","throw","return"].forEach(function(R){l(_,R,function(I){return this._invoke(R,I)});});}function x(_,R){function I(A,N,D,F){var z=d(_[A],_,N);if(z.type!=="throw"){var H=z.arg,k=H.value;return k&&ot(k)=="object"&&n.call(k,"__await")?R.resolve(k.__await).then(function(W){I("next",W,D,F);},function(W){I("throw",W,D,F);}):R.resolve(k).then(function(W){H.value=W,D(H);},function(W){return I("throw",W,D,F)})}F(z.arg);}var M;r(this,"_invoke",{value:function(N,D){function F(){return new R(function(z,H){I(N,D,z,H);})}return M=M?M.then(F,F):F()}});}function C(_,R,I){var M="suspendedStart";return function(A,N){if(M==="executing")throw new Error("Generator is already running");if(M==="completed"){if(A==="throw")throw N;return T()}for(I.method=A,I.arg=N;;){var D=I.delegate;if(D){var F=S(D,I);if(F){if(F===u)continue;return F}}if(I.method==="next")I.sent=I._sent=I.arg;else if(I.method==="throw"){if(M==="suspendedStart")throw M="completed",I.arg;I.dispatchException(I.arg);}else I.method==="return"&&I.abrupt("return",I.arg);M="executing";var z=d(_,R,I);if(z.type==="normal"){if(M=I.done?"completed":"suspendedYield",z.arg===u)continue;return {value:z.arg,done:I.done}}z.type==="throw"&&(M="completed",I.method="throw",I.arg=z.arg);}}}function S(_,R){var I=R.method,M=_.iterator[I];if(M===void 0)return R.delegate=null,I==="throw"&&_.iterator.return&&(R.method="return",R.arg=void 0,S(_,R),R.method==="throw")||I!=="return"&&(R.method="throw",R.arg=new TypeError("The iterator does not provide a '"+I+"' method")),u;var A=d(M,_.iterator,R.arg);if(A.type==="throw")return R.method="throw",R.arg=A.arg,R.delegate=null,u;var N=A.arg;return N?N.done?(R[_.resultName]=N.value,R.next=_.nextLoc,R.method!=="return"&&(R.method="next",R.arg=void 0),R.delegate=null,u):N:(R.method="throw",R.arg=new TypeError("iterator result is not an object"),R.delegate=null,u)}function $(_){var R={tryLoc:_[0]};1 in _&&(R.catchLoc=_[1]),2 in _&&(R.finallyLoc=_[2],R.afterLoc=_[3]),this.tryEntries.push(R);}function P(_){var R=_.completion||{};R.type="normal",delete R.arg,_.completion=R;}function O(_){this.tryEntries=[{tryLoc:"root"}],_.forEach($,this),this.reset(!0);}function E(_){if(_){var R=_[i];if(R)return R.call(_);if(typeof _.next=="function")return _;if(!isNaN(_.length)){var I=-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:T}}function T(){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(_){var R=typeof _=="function"&&_.constructor;return !!R&&(R===h||(R.displayName||R.name)==="GeneratorFunction")},e.mark=function(_){return Object.setPrototypeOf?Object.setPrototypeOf(_,v):(_.__proto__=v,l(_,s,"GeneratorFunction")),_.prototype=Object.create(y),_},e.awrap=function(_){return {__await:_}},w(x.prototype),l(x.prototype,a,function(){return this}),e.AsyncIterator=x,e.async=function(_,R,I,M,A){A===void 0&&(A=Promise);var N=new x(c(_,R,I,M),A);return e.isGeneratorFunction(R)?N:N.next().then(function(D){return D.done?D.value:N.next()})},w(y),l(y,s,"Generator"),l(y,i,function(){return this}),l(y,"toString",function(){return "[object Generator]"}),e.keys=function(_){var R=Object(_),I=[];for(var M in R)I.push(M);return I.reverse(),function A(){for(;I.length;){var N=I.pop();if(N in R)return A.value=N,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 I in this)I.charAt(0)==="t"&&n.call(this,I)&&!isNaN(+I.slice(1))&&(this[I]=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 I=this;function M(H,k){return D.type="throw",D.arg=R,I.next=H,k&&(I.method="next",I.arg=void 0),!!k}for(var A=this.tryEntries.length-1;A>=0;--A){var N=this.tryEntries[A],D=N.completion;if(N.tryLoc==="root")return M("end");if(N.tryLoc<=this.prev){var F=n.call(N,"catchLoc"),z=n.call(N,"finallyLoc");if(F&&z){if(this.prev<N.catchLoc)return M(N.catchLoc,!0);if(this.prev<N.finallyLoc)return M(N.finallyLoc)}else if(F){if(this.prev<N.catchLoc)return M(N.catchLoc,!0)}else {if(!z)throw new Error("try statement without catch or finally");if(this.prev<N.finallyLoc)return M(N.finallyLoc)}}}},abrupt:function(R,I){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 N=A;break}}N&&(R==="break"||R==="continue")&&N.tryLoc<=I&&I<=N.finallyLoc&&(N=null);var D=N?N.completion:{};return D.type=R,D.arg=I,N?(this.method="next",this.next=N.finallyLoc,u):this.complete(D)},complete:function(R,I){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"&&I&&(this.next=I),u},finish:function(R){for(var I=this.tryEntries.length-1;I>=0;--I){var M=this.tryEntries[I];if(M.finallyLoc===R)return this.complete(M.completion,M.afterLoc),P(M),u}},catch:function(R){for(var I=this.tryEntries.length-1;I>=0;--I){var M=this.tryEntries[I];if(M.tryLoc===R){var A=M.completion;if(A.type==="throw"){var N=A.arg;P(M);}return N}}throw new Error("illegal catch attempt")},delegateYield:function(R,I,M){return this.delegate={iterator:E(R),resultName:I,nextLoc:M},this.method==="next"&&(this.arg=void 0),u}},e}function Hv(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){Hv(i,r,o,a,s,"next",l);}function s(l){Hv(i,r,o,a,s,"throw",l);}a(void 0);})}}function Ko(){return Ko=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},Ko.apply(this,arguments)}function S_(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,gs(e,t);}function rf(e){return rf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},rf(e)}function gs(e,t){return gs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},gs(e,t)}function w_(){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 w_()?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&&gs(c,a.prototype),c},Ol.apply(null,arguments)}function $_(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||!$_(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}}),gs(o,r)},of(e)}var x_=/%[sdj%]/g,E_=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(x_,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 O_(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||O_(t)&&typeof e=="string"&&!e)}function P_(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 Bv(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 I_(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[]);}),t}var Wv=function(e){S_(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 __(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 Wv(b,af(b))):m(o)},g=I_(e);Bv(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,d=[],u=new Promise(function(m,h){var v=function(p){if(d.push.apply(d,p),c++,c===l)return r(d),d.length?h(new Wv(d,af(d))):m(o)};s.length||(r(d),m(o)),s.forEach(function(g){var p=e[g];a.indexOf(g)!==-1?Bv(p,n,v):P_(p,n,v);});});return u.catch(function(m){return m}),u}function R_(e){return !!(e&&e.message!==void 0)}function M_(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]];}return n}function Vv(e,t){return function(n){var r;return e.fullFields?r=M_(t,e.fullFields):r=t[n.field||e.fullField],R_(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 Gv(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]=Ko({},e[n],r):e[n]=r;}}return e}var v0=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));},T_=function(t,n,r,o,i){(/^\s+$/.test(n)||n==="")&&o.push(Yn(i.messages.whitespace,t.fullField));},sl,N_=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]+:)?//)",d="(?:\\S+(?::\\S*)?@)?",u=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\\.)"+d+"(?:localhost|"+u+"|"+m+"|"+h+v+g+")"+p+b;return sl=new RegExp("(?:^"+y+"$)","i"),sl},Uv={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},Ha={integer:function(t){return Ha.number(t)&&parseInt(t,10)===t},float:function(t){return Ha.number(t)&&!Ha.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"&&!Ha.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Uv.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(N_())},hex:function(t){return typeof t=="string"&&!!t.match(Uv.hex)}},A_=function(t,n,r,o,i){if(t.required&&n===void 0){v0(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?Ha[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));},D_=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,d=n,u=null,m=typeof n=="number",h=typeof n=="string",v=Array.isArray(n);if(m?u="number":h?u="string":v&&(u="array"),!u)return !1;v&&(d=n.length),h&&(d=n.replace(c,"_").length),a?d!==t.len&&o.push(Yn(i.messages[u].len,t.fullField,t.len)):s&&!l&&d<t.min?o.push(Yn(i.messages[u].min,t.fullField,t.min)):l&&!s&&d>t.max?o.push(Yn(i.messages[u].max,t.fullField,t.max)):s&&l&&(d<t.min||d>t.max)&&o.push(Yn(i.messages[u].range,t.fullField,t.min,t.max));},Si="enum",k_=function(t,n,r,o,i){t[Si]=Array.isArray(t[Si])?t[Si]:[],t[Si].indexOf(n)===-1&&o.push(Yn(i.messages[Si],t.fullField,t[Si].join(", ")));},L_=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:v0,whitespace:T_,type:A_,range:D_,enum:k_,pattern:L_},F_=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);},z_=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);},j_=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);},H_=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);},B_=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);},W_=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);},V_=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);},G_=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);},U_=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);},K_="enum",X_=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[K_](t,n,o,a,i);}r(a);},q_=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);},Y_=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);},Z_=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);},Gu=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);},Q_=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);},Ya={string:F_,method:z_,number:j_,boolean:H_,regexp:B_,integer:W_,float:V_,array:G_,object:U_,enum:X_,pattern:q_,date:Y_,url:Gu,hex:Gu,email:Gu,required:Z_,any:Q_};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(),Ds=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=Gv(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 d(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 u=this.messages();u===lf&&(u=sf()),Gv(u,l.messages),l.messages=u;}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=Ko({},s)),b=s[g]=w.transform(b)),typeof w=="function"?w={validator:w}:w=Ko({},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 __(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 Ko({},$,{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(Vv(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(Vv(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(_){O[_]=b.defaultField;}),O=Ko({},O,g.rule.fields);var E={};Object.keys(O).forEach(function(_){var R=O[_],I=Array.isArray(R)?R:[R];E[_]=I.map(w.bind(null,_));});var T=new e(E);T.messages(l.messages),g.rule.options&&(g.rule.options.messages=l.messages,g.rule.options.error=l.error),T.validate(g.value,g.rule.options||l,function(_){var R=[];P&&P.length&&R.push.apply(R,P),_&&_.length&&R.push.apply(R,_),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){d(g);},s)},t.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!Ya.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"?Ya.required:Ya[this.getType(r)]||void 0},e}();Ds.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Ya[t]=n;};Ds.warning=E_;Ds.messages=lf;Ds.validators=Ya;var jn="'${name}' is not a valid ${type}",g0={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}"}},Kv=Ds;function J_(e,t){return e.replace(/\$\{\w+\}/g,function(n){var r=n.slice(2,-1);return t[r]})}var Xv="CODE_LOGIC_ERROR";function cf(e,t,n,r,o){return uf.apply(this,arguments)}function uf(){return uf=va(Qn().mark(function e(t,n,r,o,i){var a,s,l,c,d,u,m,h,v;return Qn().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return a=V({},r),delete a.ruleIndex,Kv.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(Xv)}}),l=null,a&&a.type==="array"&&a.defaultField&&(l=a.defaultField,delete a.defaultField),c=new Kv(q({},t,[a])),d=ki(g0,o.validateMessages),c.messages(d),u=[],p.prev=10,p.next=13,Promise.resolve(c.validate(q({},t,n),V({},o)));case 13:p.next=18;break;case 15:p.prev=15,p.t0=p.catch(10),p.t0.errors&&(u=p.t0.errors.map(function(b,y){var w=b.message,x=w===Xv?d.default:w;return f__namespace.isValidElement(x)?f__namespace.cloneElement(x,{key:"error_".concat(y)}):x}));case 18:if(!(!u.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=V(V({},r),{},{name:t,enum:(r.enum||[]).join(", ")},i),v=u.map(function(b){return typeof b=="string"?J_(b,h):b}),p.abrupt("return",v);case 26:case"end":return p.stop()}},e,null,[[10,15]])})),uf.apply(this,arguments)}function eR(e,t,n,r,o,i){var a=e.join("."),s=n.map(function(d,u){var m=d.validator,h=V(V({},d),{},{ruleIndex:u});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(d,u){var m=d.warningOnly,h=d.ruleIndex,v=u.warningOnly,g=u.ruleIndex;return !!m==!!v?h-g:m?1:-1}),l;if(o===!0)l=new Promise(function(){var d=va(Qn().mark(function u(m,h){var v,g,p;return Qn().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()}},u)}));return function(u,m){return d.apply(this,arguments)}}());else {var c=s.map(function(d){return cf(a,t,d,r,i).then(function(u){return {errors:u,rule:d}})});l=(o?nR(c):tR(c)).then(function(d){return Promise.reject(d)});}return l.catch(function(d){return d}),l}function tR(e){return df.apply(this,arguments)}function df(){return df=va(Qn().mark(function e(t){return Qn().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 nR(e){return ff.apply(this,arguments)}function ff(){return ff=va(Qn().mark(function e(t){var n;return Qn().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 qv(e,t){var n={};return t.forEach(function(r){var o=xr(e,r);n=Sr(n,r,o);}),n}function Za(e,t){return e&&e.some(function(n){return p0(n,t)})}function p0(e,t){return !e||!t||e.length!==t.length?!1:e.every(function(n,r){return t[r]===n})}function rR(e,t){if(e===t)return !0;if(!e&&t||e&&!t||!e||!t||ot(e)!=="object"||ot(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 oR(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&ot(t.target)==="object"&&e in t.target?t.target[e]:t}function Yv(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 iR=["name"],or=[];function Zv(e,t,n,r,o,i){return typeof e=="function"?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var Nm=function(e){fi(n,e);var t=mi(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=or,o.warnings=or,o.cancelRegister=function(){var l=o.props,c=l.preserve,d=l.isListField,u=l.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(d,c,nn(u)),o.cancelRegisterFunc=null;},o.getNamePath=function(){var l=o.props,c=l.name,d=l.fieldContext,u=d.prefixName,m=u===void 0?[]:u;return c!==void 0?[].concat(ge(m),ge(c)):[]},o.getRules=function(){var l=o.props,c=l.rules,d=c===void 0?[]:c,u=l.fieldContext;return d.map(function(m){return typeof m=="function"?m(u):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(V(V({},o.getMeta()),{},{destroy:l}));},o.onStoreChange=function(l,c,d){var u=o.props,m=u.shouldUpdate,h=u.dependencies,v=h===void 0?[]:h,g=u.onReset,p=d.store,b=o.getNamePath(),y=o.getValue(l),w=o.getValue(p),x=c&&Za(c,b);switch(d.type==="valueUpdate"&&d.source==="external"&&y!==w&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=or,o.warnings=or,o.triggerMetaEvent()),d.type){case"reset":if(!c||x){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=or,o.warnings=or,o.triggerMetaEvent(),g==null||g(),o.refresh();return}break;case"remove":{if(m){o.reRender();return}break}case"setField":{if(x){var C=d.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||or),"warnings"in C&&(o.warnings=C.warnings||or),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}if(m&&!b.length&&Zv(m,l,p,y,w,d)){o.reRender();return}break}case"dependenciesUpdate":{var S=v.map(nn);if(S.some(function($){return Za(d.relatedFields,$)})){o.reRender();return}break}default:if(x||(!v.length||b.length||m)&&Zv(m,l,p,y,w,d)){o.reRender();return}break}m===!0&&o.reRender();},o.validateRules=function(l){var c=o.getNamePath(),d=o.getValue(),u=l||{},m=u.triggerName,h=u.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=eR(c,d,x,l,y,w);return C.catch(function(S){return S}).then(function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:or;if(o.validatePromise===g){var $;o.validatePromise=null;var P=[],O=[];($=S.forEach)===null||$===void 0||$.call(S,function(E){var T=E.rule.warningOnly,_=E.errors,R=_===void 0?or:_;T?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=or,o.warnings=or,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(Uo),d=c.getInitialValue;return d(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 V(V({},o.getOnlyChild(l(o.getControlled(),c,o.props.fieldContext))),{},{isFunction:!0})}var d=dr(l);return d.length!==1||!f__namespace.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}},o.getValue=function(l){var c=o.props.fieldContext.getFieldsValue,d=o.getNamePath();return xr(l||c(!0),d)},o.getControlled=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=o.props,d=c.trigger,u=c.validateTrigger,m=c.getValueFromEvent,h=c.normalize,v=c.valuePropName,g=c.getValueProps,p=c.fieldContext,b=u!==void 0?u:p.validateTrigger,y=o.getNamePath(),w=p.getInternalHooks,x=p.getFieldsValue,C=w(Uo),S=C.dispatch,$=o.getValue(),P=g||function(_){return q({},v,_)},O=l[d],E=V(V({},l),P($));E[d]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var _,R=arguments.length,I=new Array(R),M=0;M<R;M++)I[M]=arguments[M];m?_=m.apply(void 0,I):_=oR.apply(void 0,[v].concat(I)),h&&(_=h(_,$,x(!0))),S({type:"updateValue",namePath:y,value:_}),O&&O.apply(void 0,I);};var T=nf(b||[]);return T.forEach(function(_){var R=E[_];E[_]=function(){R&&R.apply(void 0,arguments);var I=o.props.rules;I&&I.length&&S({type:"validateField",namePath:y,triggerName:_});};}),E},r.fieldContext){var i=r.fieldContext.getInternalHooks,a=i(Uo),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(Uo),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);Nm.contextType=oa;Nm.defaultProps={trigger:"onChange",valuePropName:"value"};function b0(e){var t=e.name,n=Ue(e,iR),r=f__namespace.useContext(oa),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(Nm,pe({key:a,name:i,isListField:!!o},n,{fieldContext:r}))}var aR=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(oa),c=f__namespace.useContext(tf),d=f__namespace.useRef({keys:[],id:0}),u=d.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 V(V({},l),{},{prefixName:m})},[l,m]),v=f__namespace.useMemo(function(){return {getKey:function(b){var y=m.length,w=b[y];return [u.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(oa.Provider,{value:h},f__namespace.createElement(b0,{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,T){var _=S();T>=0&&T<=_.length?(u.keys=[].concat(ge(u.keys.slice(0,T)),[u.id],ge(u.keys.slice(T))),x([].concat(ge(_.slice(0,T)),[E],ge(_.slice(T))))):(u.keys=[].concat(ge(u.keys),[u.id]),x([].concat(ge(_),[E]))),u.id+=1;},remove:function(E){var T=S(),_=new Set(Array.isArray(E)?E:[E]);_.size<=0||(u.keys=u.keys.filter(function(R,I){return !_.has(I)}),x(T.filter(function(R,I){return !_.has(I)})));},move:function(E,T){if(E!==T){var _=S();E<0||E>=_.length||T<0||T>=_.length||(u.keys=Yv(u.keys,E,T),x(Yv(_,E,T)));}}},P=w||[];return Array.isArray(P)||(P=[]),o(P.map(function(O,E){var T=u.keys[E];return T===void 0&&(u.keys[E]=u.id,T=u.keys[E],u.id+=1),{name:E,key:T,isListField:!0}}),$,b)})))};function sR(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 y0="__@field_split__";function Uu(e){return e.map(function(t){return "".concat(ot(t),":").concat(t)}).join(y0)}var wi=function(){function e(){Cn(this,e),this.kvs=new Map;}return Sn(e,[{key:"set",value:function(n,r){this.kvs.set(Uu(n),r);}},{key:"get",value:function(n){return this.kvs.get(Uu(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(Uu(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(y0);return n({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),d=X(c,3),u=d[1],m=d[2];return u==="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}(),lR=["name"],cR=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===Uo?(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=ki(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 wi;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?ki(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 wi;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 d="getMeta"in s?s.getMeta():null;o(d)&&a.push(c);}}),qv(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 d=n.getFieldEntities(!0),u=function(p){return p.isFieldTouched()};if(!l)return c?d.every(u):d.some(u);var m=new wi;l.forEach(function(g){m.set(g,[]);}),d.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(u)},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 Za(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 wi,i=n.getFieldEntities(!0);i.forEach(function(l){var c=l.props.initialValue,d=l.getNamePath();if(c!==void 0){var u=o.get(d)||new Set;u.add({entity:l,value:c}),o.set(d,u);}});var a=function(c){c.forEach(function(d){var u=d.props.initialValue;if(u!==void 0){var m=d.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 d;(d=s).push.apply(d,ge(ge(c).map(function(u){return u.entity})));}})):s=i,a(s);},this.resetFields=function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(ki(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,lR),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=V(V({},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(u){return u!==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(u){return !p0(u.getNamePath(),o)})){var d=n.store;n.updateStore(Sr(d,o,c,!0)),n.notifyObservers(d,[o],{type:"remove"}),n.triggerDependenciesUpdate(d,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=V(V({},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=qv(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=ki(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 wi;n.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(d){var u=nn(d);a.update(u,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 d=a.get(c)||new Set;d.forEach(function(u){if(!o.has(u)){o.add(u);var m=u.getNamePath();u.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 wi;o.forEach(function(c){var d=c.name,u=c.errors;s.set(d,u);}),a.forEach(function(c){c.errors=s.get(c.name)||c.errors;});}var l=a.filter(function(c){var d=c.name;return Za(r,d)});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||Za(l,g)){var p=m.validateRules(V({validateMessages:V(V({},g0),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 d=sR(c);n.lastValidatePromise=d,d.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 u=d.then(function(){return n.lastValidatePromise===d?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!==d})});return u.catch(function(m){return m}),n.triggerOnFieldsChange(l),u},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 C0(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 cR(i);t.current=a.getForm();}return [t.current]}var mf=f__namespace.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),uR=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:V(V({},a),{},{validateMessages:V(V({},a.validateMessages),n),triggerFormChange:function(c,d){r&&r(c,{changedFields:d,forms:s.current}),a.triggerFormChange(c,d);},triggerFormFinish:function(c,d){o&&o(c,{values:d,forms:s.current}),a.triggerFormFinish(c,d);},registerForm:function(c,d){c&&(s.current=V(V({},s.current),{},q({},c,d))),a.registerForm(c,d);},unregisterForm:function(c){var d=V({},s.current);delete d[c],s.current=d,a.unregisterForm(c);}})},i)},dR=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],fR=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,d=c===void 0?"form":c,u=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,dR),w=f__namespace.useContext(mf),x=C0(a),C=X(x,1),S=C[0],$=S.getInternalHooks(Uo),P=$.useSubscribe,O=$.setInitialValues,E=$.setCallbacks,T=$.setValidateMessages,_=$.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]),T(V(V({},w.validateMessages),u)),E({onValuesChange:v,onFieldsChange:function(k){if(w.triggerFormChange(r,k),g){for(var W=arguments.length,B=new Array(W>1?W-1:0),K=1;K<W;K++)B[K-1]=arguments[K];g.apply(void 0,[k].concat(B));}},onFinish:function(k){w.triggerFormFinish(r,k),p&&p(k);},onFinishFailed:b}),_(s);var I=f__namespace.useRef(null);O(o,!I.current),I.current||(I.current=!0),f__namespace.useEffect(function(){return R},[]);var M,A=typeof l=="function";if(A){var N=S.getFieldsValue(!0);M=l(N,S);}else M=l;P(!A);var D=f__namespace.useRef();f__namespace.useEffect(function(){rR(D.current||[],i||[])||S.setFields(i||[]),D.current=i;},[i,S]);var F=f__namespace.useMemo(function(){return V(V({},S),{},{validateTrigger:h})},[S,h]),z=f__namespace.createElement(oa.Provider,{value:F},M);return d===!1?z:f__namespace.createElement(d,pe({},y,{onSubmit:function(k){k.preventDefault(),k.stopPropagation(),S.submit();},onReset:function(k){var W;k.preventDefault(),S.resetFields(),(W=y.onReset)===null||W===void 0||W.call(y,k);}}),z)};function Qv(e){try{return JSON.stringify(e)}catch{return Math.random()}}function mR(){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=C_(a)?{form:a}:a,l=s.form,c=f.useState(),d=X(c,2),u=d[0],m=d[1],h=f.useMemo(function(){return Qv(u)},[u]),v=f.useRef(h);v.current=h;var g=f.useContext(oa),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(Uo),$=S.registerWatch,P=$(function(E,T){var _=xr(s.preserve?T:E,w.current),R=Qv(_);v.current!==R&&(v.current=R,m(_));}),O=xr(s.preserve?x(!0):x(),w.current);return m(O),P}},[b]),u}var hR=f__namespace.forwardRef(fR),ks=hR;ks.FormProvider=uR;ks.Field=b0;ks.List=aR;ks.useForm=C0;ks.useWatch=mR;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)},vR=f__namespace.createContext(void 0),gR={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 pR={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 bR={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},S0=bR,yR={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"]},pR),timePickerLocale:Object.assign({},S0)},Jv=yR,Hn="${label} is not a valid ${type}",CR={locale:"en",Pagination:gR,DatePicker:Jv,TimePicker:S0,Calendar:Jv,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"}},ia=CR;let Ku=Object.assign({},ia.Modal);function eg(e){e?Ku=Object.assign(Object.assign({},Ku),e):Ku=Object.assign({},ia.Modal);}const SR=f.createContext(void 0),Am=SR,wR=(e,t)=>{const n=f__namespace.useContext(Am),r=f__namespace.useMemo(()=>{var i;const a=t||ia[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?ia.locale:i},[n]);return [r,o]},Dm=wR,$R="internalMark",xR=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;f__namespace.useEffect(()=>(eg(t&&t.Modal),()=>{eg();}),[t]);const o=f__namespace.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return f__namespace.createElement(Am.Provider,{value:o},n)},ER=xR,OR="5.6.1",ps=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function yn(e,t){PR(e)&&(e="100%");var n=IR(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 IR(e){return typeof e=="string"&&e.indexOf("%")!==-1}function w0(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 Xo(e){return e.length===1?"0"+e:String(e)}function _R(e,t,n){return {r:yn(e,255)*255,g:yn(t,255)*255,b:yn(n,255)*255}}function tg(e,t,n){e=yn(e,255),t=yn(t,255),n=yn(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 Xu(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 RR(e,t,n){var r,o,i;if(e=yn(e,360),t=yn(t,100),n=yn(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=Xu(s,a,e+1/3),o=Xu(s,a,e),i=Xu(s,a,e-1/3);}return {r:r*255,g:o*255,b:i*255}}function hf(e,t,n){e=yn(e,255),t=yn(t,255),n=yn(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 MR(e,t,n){e=yn(e,360)*6,t=yn(t,100),n=yn(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],d=[s,n,n,a,i,i][l],u=[i,i,s,n,n,a][l];return {r:c*255,g:d*255,b:u*255}}function vf(e,t,n,r){var o=[Xo(Math.round(e).toString(16)),Xo(Math.round(t).toString(16)),Xo(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 TR(e,t,n,r,o){var i=[Xo(Math.round(e).toString(16)),Xo(Math.round(t).toString(16)),Xo(Math.round(n).toString(16)),Xo(NR(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 NR(e){return Math.round(parseFloat(e)*255).toString(16)}function ng(e){return Vn(e)/255}function Vn(e){return parseInt(e,16)}function AR(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 Ai(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=LR(e)),typeof e=="object"&&(Jr(e.r)&&Jr(e.g)&&Jr(e.b)?(t=_R(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=MR(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=RR(e.h,r,i),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=w0(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 DR="[-\\+]?\\d+%?",kR="[-\\+]?\\d*\\.\\d+%?",Io="(?:".concat(kR,")|(?:").concat(DR,")"),qu="[\\s|\\(]+(".concat(Io,")[,|\\s]+(").concat(Io,")[,|\\s]+(").concat(Io,")\\s*\\)?"),Yu="[\\s|\\(]+(".concat(Io,")[,|\\s]+(").concat(Io,")[,|\\s]+(").concat(Io,")[,|\\s]+(").concat(Io,")\\s*\\)?"),hr={CSS_UNIT:new RegExp(Io),rgb:new RegExp("rgb"+qu),rgba:new RegExp("rgba"+Yu),hsl:new RegExp("hsl"+qu),hsla:new RegExp("hsla"+Yu),hsv:new RegExp("hsv"+qu),hsva:new RegExp("hsva"+Yu),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 LR(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=hr.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=hr.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=hr.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=hr.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=hr.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=hr.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=hr.hex8.exec(e),n?{r:Vn(n[1]),g:Vn(n[2]),b:Vn(n[3]),a:ng(n[4]),format:t?"name":"hex8"}:(n=hr.hex6.exec(e),n?{r:Vn(n[1]),g:Vn(n[2]),b:Vn(n[3]),format:t?"name":"hex"}:(n=hr.hex4.exec(e),n?{r:Vn(n[1]+n[1]),g:Vn(n[2]+n[2]),b:Vn(n[3]+n[3]),a:ng(n[4]+n[4]),format:t?"name":"hex8"}:(n=hr.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 !!hr.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=AR(t)),this.originalInput=t;var o=Ai(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=w0(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=tg(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=tg(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),TR(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(yn(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(yn(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,rg=.16,FR=.05,zR=.05,jR=.15,$0=5,x0=4,HR=[{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 og(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 BR(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 ig(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 ag(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-rg*t:t===x0?r=e.s+rg:r=e.s+FR*t,r>1&&(r=1),n&&t===$0&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function sg(e,t,n){var r;return n?r=e.v+zR*t:r=e.v-jR*t,r>1&&(r=1),Number(r.toFixed(2))}function mo(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Ai(e),o=$0;o>0;o-=1){var i=og(r),a=dl(Ai({h:ig(i,o,!0),s:ag(i,o,!0),v:sg(i,o,!0)}));n.push(a);}n.push(dl(r));for(var s=1;s<=x0;s+=1){var l=og(r),c=dl(Ai({h:ig(l,s),s:ag(l,s),v:sg(l,s)}));n.push(c);}return t.theme==="dark"?HR.map(function(d){var u=d.index,m=d.opacity,h=dl(BR(Ai(t.backgroundColor||"#141414"),Ai(n[u]),m*100));return h}):n}var Zu={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={},Qu={};Object.keys(Zu).forEach(function(e){Pl[e]=mo(Zu[e]),Pl[e].primary=Pl[e][5],Qu[e]=mo(Zu[e],{theme:"dark",backgroundColor:"#141414"}),Qu[e].primary=Qu[e][5];});var WR=Pl.blue;const VR=e=>{const{controlHeight:t}=e;return {controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},E0=VR;function GR(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 km={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"},Ls=Object.assign(Object.assign({},km),{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 O0(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:d}=e,u=n(l),m=n(o),h=n(i),v=n(a),g=n(s),p=r(c,d);return Object.assign(Object.assign({},p),{colorPrimaryBg:u[1],colorPrimaryBgHover:u[2],colorPrimaryBorder:u[3],colorPrimaryBorderHover:u[4],colorPrimaryHover:u[5],colorPrimary:u[6],colorPrimaryActive:u[7],colorPrimaryTextHover:u[8],colorPrimaryText:u[9],colorPrimaryTextActive:u[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 UR=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}},KR=UR;function XR(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},KR(r))}const eo=(e,t)=>new Zt(e).setAlpha(t).toRgbString(),Ra=(e,t)=>new Zt(e).darken(t).toHexString(),qR=e=>{const t=mo(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]}},YR=(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:Ra(n,4),colorBgContainer:Ra(n,0),colorBgElevated:Ra(n,0),colorBgSpotlight:eo(r,.85),colorBorder:Ra(n,15),colorBorderSecondary:Ra(n,6)}};function ZR(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 QR=e=>{const t=ZR(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]}},P0=QR;function Fs(e){const t=Object.keys(km).map(n=>{const r=mo(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),O0(e,{generateColorPalettes:qR,generateNeutralColorPalettes:YR})),P0(e.fontSize)),GR(e)),E0(e)),XR(e))}function Ju(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 d=Math.round((n-a*(1-c))/c),u=Math.round((r-s*(1-c))/c),m=Math.round((o-l*(1-c))/c);if(Ju(d)&&Ju(u)&&Ju(m))return new Zt({r:d,g:u,b:m,a:Math.round(c*100)/100}).toRgbString()}return new Zt({r:n,g:r,b:o,a:1}).toRgbString()}var JR=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 I0(e){const{override:t}=e,n=JR(e,["override"]),r=Object.assign({},t);Object.keys(Ls).forEach(m=>{delete r[m];});const o=Object.assign(Object.assign({},n),r),i=480,a=576,s=768,l=992,c=1200,d=1600;if(o.motion===!1){const m="0s";o.motionDurationFast=m,o.motionDurationMid=m,o.motionDurationSlow=m;}return Object.assign(Object.assign(Object.assign({},o),{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:d-1,screenXXL:d,screenXXLMin:d,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,Wi=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 ei(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 ed(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=ei(function(){return ed(o)?o:ed(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),l=X(s,2),c=l[0],d=l[1],u=o!==void 0?o:c,m=a?a(u):u,h=qn(i),v=ei([u]),g=X(v,2),p=g[0],b=g[1];Wi(function(){var w=p[0];c!==w&&h(c,w);},[p]),Wi(function(){ed(o)||d(o);},[o]);var y=qn(function(w,x){d(w,x),b([u],x);});return [m,y]}const _0="anticon",e2=(e,t)=>t||(e?`ant-${e}`:"ant"),at=f__namespace.createContext({getPrefixCls:e2,iconPrefixCls:_0}),t2=(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)),d=i-t*(1/Math.sqrt(2)),u=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),m=2*i-d,h=u,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 ${d} ${u} 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"}}},ti={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:'""'}}),n2=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"}}}),r2=(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"}}}}},zs=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),bs=e=>({"&:focus-visible":Object.assign({},zs(e))});function sn(e,t,n,r){return o=>{const[i,a,s]=vi(),{getPrefixCls:l,iconPrefixCls:c,csp:d}=f.useContext(at),u=l(),m={theme:i,token:a,hashId:s,nonce:()=>d==null?void 0:d.nonce};return ef(Object.assign(Object.assign({},m),{path:["Shared",u]}),()=>[{"&":n2(a)}]),[ef(Object.assign(Object.assign({},m),{path:[e,o,c]}),()=>{const{token:h,flush:v}=i2(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(xt(h,g??{})):n,b=Object.assign(Object.assign({},p),g),y=`.${o}`,w=xt(h,{componentCls:y,prefixCls:o,iconCls:`.${c}`,antCls:`.${u}`},b),x=t(w,{hashId:s,prefixCls:o,rootPrefixCls:u,iconPrefixCls:c,overrideComponentToken:g});return v(e,b),[(r==null?void 0:r.resetStyle)===!1?null:r2(a,o),x]}),s]}}const R0=typeof CSSINJS_STATISTIC<"u";let bf=!0;function xt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!R0)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 o2(){}function i2(e){let t,n=e,r=o2;return R0&&(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 M0(e,t){return ps.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 a2=ec(Fs),nc={token:Ls,hashed:!0},T0=f.createContext(nc);function vi(){const{token:e,hashed:t,theme:n,components:r}=f.useContext(T0),o=`${OR}-${t||""}`,i=n||a2,[a,s]=l_(i,[Ls,e],{salt:o,override:Object.assign({override:e},r),formatToken:I0});return [i,a,t?s:""]}const s2=`-ant-${Date.now()}-${Math.random()}`;function l2(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=mo(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=mo(a.toRgbString());s.forEach((c,d)=>{n[`primary-${d+1}`]=c;}),n["primary-color-deprecated-l-35"]=r(a,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(a,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(a,c=>c.setAlpha(c.getAlpha()*.12));const 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 c2(e,t){const n=l2(e,t);kn()&&ra(n,`${s2}-dynamic-theme`);}const yf=f__namespace.createContext(!1),u2=e=>{let{children:t,disabled:n}=e;const r=f__namespace.useContext(yf);return f__namespace.createElement(yf.Provider,{value:n??r},t)},Ao=yf,d2=e=>{const t=f.useContext(Qc);return f.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},Pr=d2,N0=f__namespace.createContext(void 0),f2=e=>{let{children:t,size:n}=e;const r=Pr(n);return f__namespace.createElement(N0.Provider,{value:r},t)},Qc=N0;function m2(){const e=f.useContext(Ao),t=f.useContext(Qc);return {componentDisabled:e,componentSize:t}}function h2(e,t){const n=e||{},r=n.inherit===!1||!t?nc:t;return Ns(()=>{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 !Yc(s,c,!0)}))}var v2=["children"],A0=f__namespace.createContext({});function g2(e){var t=e.children,n=Ue(e,v2);return f__namespace.createElement(A0.Provider,{value:n},t)}var p2=function(e){fi(n,e);var t=mi(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),Wo="none",ml="appear",hl="enter",vl="leave",lg="none",wr="prepare",Li="start",Fi="active",Lm="end",D0="prepared";function cg(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 b2(e,t){var n={animationend:cg("Animation","AnimationEnd"),transitionend:cg("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var y2=b2(kn(),typeof window<"u"?window:{}),k0={};if(kn()){var C2=document.createElement("div");k0=C2.style;}var gl={};function L0(e){if(gl[e])return gl[e];var t=y2[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 k0)return gl[e]=t[i],gl[e]}return ""}var F0=L0("animationend"),z0=L0("transitionend"),j0=!!(F0&&z0),ug=F0||"animationend",dg=z0||"transitionend";function fg(e,t){if(!e)return null;if(ot(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return "".concat(e,"-").concat(t)}const S2=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(dg,r),a.removeEventListener(ug,r));}function i(a){t.current&&t.current!==a&&o(t.current),a&&a!==t.current&&(a.addEventListener(dg,r),a.addEventListener(ug,r),t.current=a);}return f__namespace.useEffect(function(){return function(){o(t.current);}},[]),[i,o]};var H0=kn()?f.useLayoutEffect:f.useEffect;const w2=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 $2=[wr,Li,Fi,Lm],x2=[wr,D0],B0=!1,E2=!0;function W0(e){return e===Fi||e===Lm}const O2=function(e,t,n){var r=ei(lg),o=X(r,2),i=o[0],a=o[1],s=w2(),l=X(s,2),c=l[0],d=l[1];function u(){a(wr,!0);}var m=t?x2:$2;return H0(function(){if(i!==lg&&i!==Lm){var h=m.indexOf(i),v=m[h+1],g=n(i);g===B0?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(){d();}},[]),[u,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,d=r.motionDeadline,u=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=ei(),E=X(O,2),T=E[0],_=E[1],R=ei(Wo),I=X(R,2),M=I[0],A=I[1],N=ei(null),D=X(N,2),F=D[0],z=D[1],H=f.useRef(!1),k=f.useRef(null);function W(){return n()}var B=f.useRef(!1);function K(){A(Wo,!0),z(null,!0);}function te(fe){var se=W();if(!(fe&&!fe.deadline&&fe.target!==se)){var le=B.current,_e;M===ml&&le?_e=C==null?void 0:C(se,fe):M===hl&&le?_e=S==null?void 0:S(se,fe):M===vl&&le&&(_e=$==null?void 0:$(se,fe)),M!==Wo&&le&&_e!==!1&&K();}}var Z=S2(te),Y=X(Z,1),ee=Y[0],re=function(se){var le,_e,Ve;switch(se){case ml:return le={},q(le,wr,m),q(le,Li,g),q(le,Fi,y),le;case hl:return _e={},q(_e,wr,h),q(_e,Li,p),q(_e,Fi,w),_e;case vl:return Ve={},q(Ve,wr,v),q(Ve,Li,b),q(Ve,Fi,x),Ve;default:return {}}},ae=f__namespace.useMemo(function(){return re(M)},[M]),ue=O2(M,!e,function(fe){if(fe===wr){var se=ae[wr];return se?se(W()):B0}if(ye in ae){var le;z(((le=ae[ye])===null||le===void 0?void 0:le.call(ae,W(),null))||null);}return ye===Fi&&(ee(W()),d>0&&(clearTimeout(k.current),k.current=setTimeout(function(){te({deadline:!0});},d))),ye===D0&&K(),E2}),ie=X(ue,2),me=ie[0],ye=ie[1],ce=W0(ye);B.current=ce,H0(function(){_(t);var fe=H.current;H.current=!0;var se;!fe&&t&&s&&(se=ml),fe&&t&&i&&(se=hl),(fe&&!t&&c||!fe&&u&&!t&&c)&&(se=vl);var le=re(se);se&&(e||le[wr])?(A(se),me()):A(Wo);},[t]),f.useEffect(function(){(M===ml&&!s||M===hl&&!i||M===vl&&!c)&&A(Wo);},[s,i,c]),f.useEffect(function(){return function(){H.current=!1,clearTimeout(k.current);}},[]);var he=f__namespace.useRef(!1);f.useEffect(function(){T&&(he.current=!0),T!==void 0&&M===Wo&&((he.current||T)&&(P==null||P(T)),he.current=!0);},[T,M]);var ne=F;return ae[wr]&&ye===Li&&(ne=V({transition:"none"},ne)),[M,ye,ne,T??t]}function I2(e){var t=e;ot(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,d=o.forceRender,u=o.children,m=o.motionName,h=o.leavedClassName,v=o.eventProps,g=f__namespace.useContext(A0),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],T=f__namespace.useRef(E);E&&(T.current=!0);var _=f__namespace.useCallback(function(z){y.current=z,Om(i,z);},[i]),R,I=V(V({},v),{},{visible:s});if(!u)R=null;else if($===Wo)E?R=u(V({},I),_):!c&&T.current&&h?R=u(V(V({},I),{},{className:h}),_):d||!c&&!h?R=u(V(V({},I),{},{style:{display:"none"}}),_):R=null;else {var M,A;P===wr?A="prepare":W0(P)?A="active":P===Li&&(A="start");var N=fg(m,"".concat($,"-").concat(A));R=u(V(V({},I),{},{className:U(fg(m,$),(M={},q(M,N,N&&A),q(M,m,typeof m=="string"),M)),style:O}),_);}if(f__namespace.isValidElement(R)&&hi(R)){var D=R,F=D.ref;F||(R=f__namespace.cloneElement(R,{ref:_}));}return f__namespace.createElement(p2,{ref:w},R)});return r.displayName="CSSMotion",r}const Do=I2(j0);var Cf="add",Sf="keep",wf="remove",td="removed";function _2(e){var t;return e&&ot(e)==="object"&&"key"in e?t=e:t={key:e},V(V({},t),{},{key:String(t.key)})}function $f(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(_2)}function R2(){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 d=!1,u=r;u<o;u+=1){var m=a[u];if(m.key===c.key){r<u&&(n=n.concat(a.slice(r,u).map(function(h){return V(V({},h),{},{status:Cf})})),r=u),n.push(V(V({},m),{},{status:Sf})),r+=1,d=!0;break}}d||n.push(V(V({},c),{},{status:wf}));}),r<o&&(n=n.concat(a.slice(r).map(function(c){return V(V({},c),{},{status:Cf})})));var s={};n.forEach(function(c){var d=c.key;s[d]=(s[d]||0)+1;});var l=Object.keys(s).filter(function(c){return s[c]>1});return l.forEach(function(c){n=n.filter(function(d){var u=d.key,m=d.status;return u!==c||m!==wf}),n.forEach(function(d){d.key===c&&(d.status=Sf);});}),n}var M2=["component","children","onVisibleChanged","onAllRemoved"],T2=["status"],N2=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function A2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Do,n=function(r){fi(i,r);var o=mi(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(d){var u=a.state.keyEntities,m=u.map(function(h){return h.key!==d?h:V(V({},h),{},{status:td})});return a.setState({keyEntities:m}),m.filter(function(h){var v=h.status;return v!==td}).length}),a}return Sn(i,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,c=this.props,d=c.component,u=c.children,m=c.onVisibleChanged,h=c.onAllRemoved,v=Ue(c,M2),g=d||f__namespace.Fragment,p={};return N2.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,T2),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();}}}),u)}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var c=s.keys,d=l.keyEntities,u=$f(c),m=R2(d,u);return {keyEntities:m.filter(function(h){var v=d.find(function(g){var p=g.key;return h.key===p});return !(v&&v.status===td&&h.status===wf)})}}}]),i}(f__namespace.Component);return q(n,"defaultProps",{component:"div"}),n}A2(j0);function D2(e){const{children:t}=e,[,n]=vi(),{motion:r}=n,o=f__namespace.useRef(!1);return o.current=o.current||r===!1,o.current?f__namespace.createElement(g2,{motion:r},t):t}const k2=(e,t)=>{const[n,r]=vi();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"}})}])},L2=k2;var F2=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 z2=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select","button"],j2="ant";let V0;function H2(){return V0||j2}function B2(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const W2=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r}=e;t!==void 0&&(V0=t),r&&B2(r)&&c2(H2(),r);},V2=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,form:o,locale:i,componentSize:a,direction:s,space:l,virtual:c,dropdownMatchSelectWidth:d,popupMatchSelectWidth:u,popupOverflow:m,legacyLocale:h,parentContext:v,iconPrefixCls:g,theme:p,componentDisabled:b}=e,y=f__namespace.useCallback((M,A)=>{const{prefixCls:N}=e;if(A)return A;const D=N||v.getPrefixCls("");return M?`${D}-${M}`:D},[v.getPrefixCls,e.prefixCls]),w=g||v.iconPrefixCls||_0,x=w!==v.iconPrefixCls,C=n||v.csp,S=L2(w,C),$=h2(p,v.theme),P={csp:C,autoInsertSpaceInButton:r,locale:i||h,direction:s,space:l,virtual:c,popupMatchSelectWidth:u??d,popupOverflow:m,getPrefixCls:y,iconPrefixCls:w,theme:$},O=Object.assign({},v);Object.keys(P).forEach(M=>{P[M]!==void 0&&(O[M]=P[M]);}),z2.forEach(M=>{const A=e[M];A&&(O[M]=A);});const E=Ns(()=>O,O,(M,A)=>{const N=Object.keys(M),D=Object.keys(A);return N.length!==D.length||N.some(F=>M[F]!==A[F])}),T=f__namespace.useMemo(()=>({prefixCls:w,csp:C}),[w,C]);let _=x?S(t):t;const R=f__namespace.useMemo(()=>{var M,A,N;return ki(((M=ia.Form)===null||M===void 0?void 0:M.defaultValidateMessages)||{},((N=(A=E.locale)===null||A===void 0?void 0:A.Form)===null||N===void 0?void 0:N.defaultValidateMessages)||{},(o==null?void 0:o.validateMessages)||{})},[E,o==null?void 0:o.validateMessages]);Object.keys(R).length>0&&(_=f__namespace.createElement(vR.Provider,{value:R},t)),i&&(_=f__namespace.createElement(ER,{locale:i,_ANT_MARK__:$R},_)),(w||C)&&(_=f__namespace.createElement(Tm.Provider,{value:T},_)),a&&(_=f__namespace.createElement(f2,{size:a},_)),_=f__namespace.createElement(D2,null,_);const I=f__namespace.useMemo(()=>{const M=$||{},{algorithm:A,token:N}=M,D=F2(M,["algorithm","token"]),F=A&&(!Array.isArray(A)||A.length>0)?ec(A):void 0;return Object.assign(Object.assign({},D),{theme:F,token:Object.assign(Object.assign({},Ls),N)})},[$]);return p&&(_=f__namespace.createElement(T0.Provider,{value:I},_)),b!==void 0&&(_=f__namespace.createElement(u2,{disabled:b},_)),f__namespace.createElement(at.Provider,{value:E},_)},pa=e=>{const t=f__namespace.useContext(at),n=f__namespace.useContext(Am);return f__namespace.createElement(V2,Object.assign({parentContext:t,legacyLocale:n},e))};pa.ConfigContext=at;pa.SizeContext=Qc;pa.config=W2;pa.useConfig=m2;Object.defineProperty(pa,"SizeContext",{get:()=>Qc});const Fm=pa;function G0(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function G2(e){return G0(e)!==(e==null?void 0:e.ownerDocument)}function U2(e){return G2(e)?G0(e):null}function K2(e,t){mn(e,"[@ant-design/icons] ".concat(t));}function mg(e){return ot(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(ot(e.icon)==="object"||typeof e.icon=="function")}function hg(){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,V(V({key:t},hg(e.attrs)),n),(e.children||[]).map(function(r,o){return xf(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):f.createElement(e.tag,V({key:t},hg(e.attrs)),(e.children||[]).map(function(r,o){return xf(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function U0(e){return mo(e)[0]}function K0(e){return e?Array.isArray(e)?e:[e]:[]}var X2=`
.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);
  }
}
`,q2=function(t){var n=f.useContext(Tm),r=n.csp,o=n.prefixCls,i=X2;o&&(i=i.replace(/anticon/g,o)),f.useEffect(function(){var a=t.current,s=U2(a);ra(i,"@ant-design-icons",{prepend:!0,csp:r,attachTo:s});},[]);},Y2=["icon","className","onClick","style","primaryColor","secondaryColor"],Qa={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Z2(e){var t=e.primaryColor,n=e.secondaryColor;Qa.primaryColor=t,Qa.secondaryColor=n||U0(t),Qa.calculated=!!n;}function Q2(){return V({},Qa)}var Jc=function(t){var n=t.icon,r=t.className,o=t.onClick,i=t.style,a=t.primaryColor,s=t.secondaryColor,l=Ue(t,Y2),c=f__namespace.useRef(),d=Qa;if(a&&(d={primaryColor:a,secondaryColor:s||U0(a)}),q2(c),K2(mg(n),"icon should be icon definiton, but got ".concat(n)),!mg(n))return null;var u=n;return u&&typeof u.icon=="function"&&(u=V(V({},u),{},{icon:u.icon(d.primaryColor,d.secondaryColor)})),xf(u.icon,"svg-".concat(u.name),V(V({className:r,onClick:o,style:i,"data-icon":u.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};Jc.displayName="IconReact";Jc.getTwoToneColors=Q2;Jc.setTwoToneColors=Z2;const zm=Jc;function X0(e){var t=K0(e),n=X(t,2),r=n[0],o=n[1];return zm.setTwoToneColors({primaryColor:r,secondaryColor:o})}function J2(){var e=zm.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var eM=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];X0(WR.primary);var eu=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,d=Ue(e,eM),u=f__namespace.useContext(Tm),m=u.prefixCls,h=m===void 0?"anticon":m,v=u.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=K0(c),w=X(y,2),x=w[0],C=w[1];return f__namespace.createElement("span",pe({role:"img","aria-label":o.name},d,{ref:t,tabIndex:p,onClick:l,className:g}),f__namespace.createElement(zm,{icon:o,primaryColor:x,secondaryColor:C,style:b}))});eu.displayName="AntdIcon";eu.getTwoToneColor=J2;eu.setTwoToneColor=X0;const tr=eu;var tM={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 nM=tM;var rM=function(t,n){return f__namespace.createElement(tr,pe({},t,{ref:n,icon:nM}))};const jm=f__namespace.forwardRef(rM);var oM={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 iM=oM;var aM=function(t,n){return f__namespace.createElement(tr,pe({},t,{ref:n,icon:iM}))};const Hm=f__namespace.forwardRef(aM);var sM={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 lM=sM;var cM=function(t,n){return f__namespace.createElement(tr,pe({},t,{ref:n,icon:lM}))};const q0=f__namespace.forwardRef(cM);var uM=`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`,dM=`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`,fM="".concat(uM," ").concat(dM).split(/[\s\n]+/),mM="aria-",hM="data-";function vg(e,t){return e.indexOf(t)===0}function ys(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=V({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||vg(o,mM))||n.data&&vg(o,hM)||n.attr&&fM.includes(o))&&(r[o]=e[o]);}),r}const{isValidElement:li}=f__namespace;function Y0(e){return e&&li(e)&&e.type===f__namespace.Fragment}function vM(e,t,n){return li(e)?f__namespace.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t}function Tn(e,t){return vM(e,e,t)}var J={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>=J.F1&&n<=J.F12)return !1;switch(n){case J.ALT:case J.CAPS_LOCK:case J.CONTEXT_MENU:case J.CTRL:case J.DOWN:case J.END:case J.ESC:case J.HOME:case J.INSERT:case J.LEFT:case J.MAC_FF_META:case J.META:case J.NUMLOCK:case J.NUM_CENTER:case J.PAGE_DOWN:case J.PAGE_UP:case J.PAUSE:case J.PRINT_SCREEN:case J.RIGHT:case J.SHIFT:case J.UP:case J.WIN_KEY:case J.WIN_KEY_RIGHT:return !1;default:return !0}},isCharacterKey:function(t){if(t>=J.ZERO&&t<=J.NINE||t>=J.NUM_ZERO&&t<=J.NUM_MULTIPLY||t>=J.A&&t<=J.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return !0;switch(t){case J.SPACE:case J.QUESTION_MARK:case J.NUM_PLUS:case J.NUM_MINUS:case J.NUM_PERIOD:case J.NUM_DIVISION:case J.SEMICOLON:case J.DASH:case J.EQUALS:case J.COMMA:case J.PERIOD:case J.SLASH:case J.APOSTROPHE:case J.SINGLE_QUOTE:case J.OPEN_SQUARE_BRACKET:case J.BACKSLASH:case J.CLOSE_SQUARE_BRACKET:return !0;default:return !1}}},gM={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 pM=gM;var bM=function(t,n){return f__namespace.createElement(tr,pe({},t,{ref:n,icon:pM}))};const Z0=f__namespace.forwardRef(bM);var js=V({},jp__namespace),yM=js.version,CM=js.render,SM=js.unmountComponentAtNode,tu;try{var wM=Number((yM||"").split(".")[0]);wM>=18&&(tu=js.createRoot);}catch{}function gg(e){var t=js.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&ot(t)==="object"&&(t.usingClientEntryPoint=e);}var rc="__rc_react_root__";function $M(e,t){gg(!0);var n=t[rc]||tu(t);gg(!1),n.render(e),t[rc]=n;}function xM(e,t){CM(e,t);}function EM(e,t){if(tu){$M(e,t);return}xM(e,t);}function OM(e){return Ef.apply(this,arguments)}function Ef(){return Ef=va(Qn().mark(function e(t){return Qn().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){SM(e);}function IM(e){return Of.apply(this,arguments)}function Of(){return Of=va(Qn().mark(function e(t){return Qn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(tu===void 0){r.next=2;break}return r.abrupt("return",OM(t));case 2:PM(t);case 3:case"end":return r.stop()}},e)})),Of.apply(this,arguments)}const Bm=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},_M=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}}}}},RM=sn("Wave",e=>[_M(e)]);function MM(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 nd(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&MM(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function TM(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return nd(t)?t:nd(n)?n:nd(r)?r:null}function rd(e){return Number.isNaN(e)?0:e}const NM=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),[d,u]=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:d,width:m,height:v,borderRadius:a.map(x=>`${x}px`).join(" ")};o&&(y["--wave-color"]=o);function w(){const x=getComputedStyle(n);i(TM(n));const C=x.position==="static",{borderLeftWidth:S,borderTopWidth:$}=x;c(C?n.offsetLeft:rd(-parseFloat(S))),u(C?n.offsetTop:rd(-parseFloat($))),h(n.offsetWidth),g(n.offsetHeight);const{borderTopLeftRadius:P,borderTopRightRadius:O,borderBottomLeftRadius:E,borderBottomRightRadius:T}=x;s([P,O,T,E].map(_=>rd(parseFloat(_))));}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(Do,{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;IM($).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 AM(e,t){const n=document.createElement("div");n.style.position="absolute",n.style.left="0px",n.style.top="0px",e==null||e.insertBefore(n,e==null?void 0:e.firstChild),EM(f__namespace.createElement(NM,{target:e,className:t}),n);}function DM(e,t){function n(){const r=e.current;AM(r,t);}return n}const kM=e=>{const{children:t,disabled:n}=e,{getPrefixCls:r}=f.useContext(at),o=f.useRef(null),i=r("wave"),[,a]=RM(i),s=DM(o,U(i,a));if(f.useEffect(()=>{const c=o.current;if(!c||c.nodeType!==1||n)return;const d=u=>{u.target.tagName==="INPUT"||!Bm(u.target)||!c.getAttribute||c.getAttribute("disabled")||c.disabled||c.className.includes("disabled")||c.className.includes("-leave")||s();};return c.addEventListener("click",d,!0),()=>{c.removeEventListener("click",d,!0);}},[n]),!f.isValidElement(t))return t??null;const l=hi(t)?Fn(t.ref,o):o;return Tn(t,{ref:l})},Q0=kM,LM=e=>{const{componentCls:t}=e;return {[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},FM=LM,zM=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"}}}},J0=sn("Space",e=>[zM(e),FM(e)],()=>({}),{resetStyle:!1});var ey=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 nu=f__namespace.createContext(null),ba=(e,t)=>{const n=f__namespace.useContext(nu),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}},aa=e=>{let{children:t}=e;return f__namespace.createElement(nu.Provider,{value:null},t)},jM=e=>{var{children:t}=e,n=ey(e,["children"]);return f__namespace.createElement(nu.Provider,{value:n},t)},HM=e=>{const{getPrefixCls:t,direction:n}=f__namespace.useContext(at),{size:r,direction:o,block:i,prefixCls:a,className:s,rootClassName:l,children:c}=e,d=ey(e,["size","direction","block","prefixCls","className","rootClassName","children"]),u=Pr(w=>{var x;return (x=r??w)!==null&&x!==void 0?x:"middle"}),m=t("space-compact",a),[h,v]=J0(m),g=U(m,v,{[`${m}-rtl`]:n==="rtl",[`${m}-block`]:i,[`${m}-vertical`]:o==="vertical"},s,l),p=f__namespace.useContext(nu),b=dr(c),y=f__namespace.useMemo(()=>b.map((w,x)=>{const C=w&&w.key||`${m}-item-${x}`;return f__namespace.createElement(jM,{key:C,compactSize:u,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},d),y))},BM=HM,WM=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)}),ty=WM,pg=f.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:o,iconClassName:i}=e;const a=U(`${n}-loading-icon`,r);return f.createElement(ty,{prefixCls:n,className:a,style:o,ref:t},f.createElement(Z0,{className:i}))}),od=()=>({width:0,opacity:0,transform:"scale(0)"}),id=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),VM=e=>{let{prefixCls:t,loading:n,existIcon:r,className:o,style:i}=e;const a=!!n;return r?f.createElement(pg,{prefixCls:t,className:o,style:i}):f.createElement(Do,{visible:a,motionName:`${t}-loading-icon-motion`,removeOnLeave:!0,onAppearStart:od,onAppearActive:id,onEnterStart:od,onEnterActive:id,onLeaveStart:id,onLeaveActive:od},(s,l)=>{let{className:c,style:d}=s;return f.createElement(pg,{prefixCls:t,className:o,style:Object.assign(Object.assign({},i),d),ref:l,iconClassName:c})})},GM=VM;var UM=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const ny=f__namespace.createContext(void 0),KM=e=>{const{getPrefixCls:t,direction:n}=f__namespace.useContext(at),{prefixCls:r,size:o,className:i}=e,a=UM(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=vi();let c="";switch(o){case"large":c="lg";break;case"small":c="sm";break}const d=U(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:n==="rtl"},i,l);return f__namespace.createElement(ny.Provider,{value:o},f__namespace.createElement("div",Object.assign({},a,{className:d})))},XM=KM,bg=/^[\u4e00-\u9fa5]{2}$/,Pf=bg.test.bind(bg);function qM(e){return typeof e=="string"}function ad(e){return e==="text"||e==="link"}function YM(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&qM(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):Y0(e)?f.createElement("span",null,e):e}function ZM(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=>YM(o,t))}function QM(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 JM(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 ru(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({},QM(e,r,t)),JM(n,r,t))}}function eT(e,t){return {[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function tT(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 nT(e){const t=`${e.componentCls}-compact-vertical`;return {[t]:Object.assign(Object.assign({},eT(e,t)),tT(e.componentCls,t))}}const yg=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),rT=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}},yg(`${t}-primary`,o),yg(`${t}-danger`,i)]}},oT=rT,iT=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({},bs(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:'""'}}}}}}},ho=(e,t)=>({"&:not(:disabled)":{"&:hover":e,"&:active":t}}),aT=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),sT=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),If=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"},ho(Object.assign({backgroundColor:"transparent"},i),Object.assign({backgroundColor:"transparent"},a))),{"&:disabled":{cursor:"not-allowed",color:r||void 0,borderColor:o||void 0}})}),Wm=e=>({"&:disabled":Object.assign({},If(e))}),ry=e=>Object.assign({},Wm(e)),ic=e=>({"&:disabled":{cursor:"not-allowed",color:e.colorTextDisabled}}),oy=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ry(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),ho({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},ho({color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),oc(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),Wm(e))}),lT=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ry(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),ho({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}`},ho({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})),Wm(e))}),cT=e=>Object.assign(Object.assign({},oy(e)),{borderStyle:"dashed"}),uT=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},ho({color:e.colorLinkHover},{color:e.colorLinkActive})),ic(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},ho({color:e.colorErrorHover},{color:e.colorErrorActive})),ic(e))}),dT=e=>Object.assign(Object.assign(Object.assign({},ho({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)),ho({color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),fT=e=>Object.assign(Object.assign({},If(e)),{[`&${e.componentCls}:hover`]:Object.assign({},If(e))}),mT=e=>{const{componentCls:t}=e;return {[`${t}-default`]:oy(e),[`${t}-primary`]:lT(e),[`${t}-dashed`]:cT(e),[`${t}-link`]:uT(e),[`${t}-text`]:dT(e),[`${t}-disabled`]:fT(e)}},Vm=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,d=Math.max(0,(r-o*i)/2-a),u=l-a,m=`${n}-icon-only`;return [{[`${n}${t}`]:{fontSize:o,height:r,padding:`${d}px ${u}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}`]:aT(e)},{[`${n}${n}-round${t}`]:sT(e)}]},hT=e=>Vm(e),vT=e=>{const t=xt(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.fontSizeLG-2});return Vm(t,`${e.componentCls}-sm`)},gT=e=>{const t=xt(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.fontSizeLG+2});return Vm(t,`${e.componentCls}-lg`)},pT=e=>{const{componentCls:t}=e;return {[t]:{[`&${t}-block`]:{width:"100%"}}}},bT=sn("Button",e=>{const{controlTmpOutline:t,paddingContentHorizontal:n}=e,r=xt(e,{colorOutlineDefault:t,buttonPaddingHorizontal:n,buttonIconOnlyFontSize:e.fontSizeLG,buttonFontWeight:400});return [iT(r),vT(r),hT(r),gT(r),pT(r),mT(r),oT(r),ru(e),nT(e)]});var yT=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function iy(e){return e==="danger"?{danger:!0}:{type:e}}function CT(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 ST=(e,t)=>{var n,r;const{loading:o=!1,prefixCls:i,type:a="default",danger:s,shape:l="default",size:c,styles:d,disabled:u,className:m,rootClassName:h,children:v,icon:g,ghost:p=!1,block:b=!1,htmlType:y="button",classNames:w,style:x={}}=e,C=yT(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(at),E=S("btn",i),[T,_]=bT(E),R=f.useContext(Ao),I=u??R,M=f.useContext(ny),A=f.useMemo(()=>CT(o),[o]),[N,D]=f.useState(A.loading),[F,z]=f.useState(!1),k=Fn(t,f.createRef()),W=f.Children.count(v)===1&&!g&&!ad(a);f.useEffect(()=>{let le=null;A.delay>0?le=setTimeout(()=>{le=null,D(!0);},A.delay):D(A.loading);function _e(){le&&(clearTimeout(le),le=null);}return _e},[A]),f.useEffect(()=>{if(!k||!k.current||$===!1)return;const le=k.current.textContent;W&&Pf(le)?F||z(!0):F&&z(!1);},[k]);const B=le=>{const{onClick:_e}=e;if(N||I){le.preventDefault();return}_e==null||_e(le);},K=$!==!1,{compactSize:te,compactItemClassnames:Z}=ba(E,P),Y={large:"lg",small:"sm",middle:void 0},ee=Pr(le=>{var _e,Ve;return (Ve=(_e=te??M)!==null&&_e!==void 0?_e:c)!==null&&Ve!==void 0?Ve:le}),re=ee&&Y[ee]||"",ae=N?"loading":g,ue=Mn(C,["navigate"]),ie=ue.href!==void 0&&I,me=U(E,_,{[`${E}-${l}`]:l!=="default"&&l,[`${E}-${a}`]:a,[`${E}-${re}`]:re,[`${E}-icon-only`]:!v&&v!==0&&!!ae,[`${E}-background-ghost`]:p&&!ad(a),[`${E}-loading`]:N,[`${E}-two-chinese-chars`]:F&&K&&!N,[`${E}-block`]:b,[`${E}-dangerous`]:!!s,[`${E}-rtl`]:P==="rtl",[`${E}-disabled`]:ie},Z,m,h,O==null?void 0:O.className),ye=Object.assign(Object.assign({},O==null?void 0:O.style),x),ce=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({},(d==null?void 0:d.icon)||{}),((r=O==null?void 0:O.styles)===null||r===void 0?void 0:r.icon)||{}),ne=g&&!N?f.createElement(ty,{prefixCls:E,className:ce,style:he},g):f.createElement(GM,{existIcon:!!g,prefixCls:E,loading:!!N}),fe=v||v===0?ZM(v,W&&K):null;if(ue.href!==void 0)return T(f.createElement("a",Object.assign({},ue,{className:me,style:ye,onClick:B,ref:k}),ne,fe));let se=f.createElement("button",Object.assign({},C,{type:y,className:me,style:ye,onClick:B,disabled:I,ref:k}),ne,fe);return ad(a)||(se=f.createElement(Q0,{disabled:!!N},se)),T(se)},Gm=f.forwardRef(ST);Gm.Group=XM;Gm.__ANT_BUTTON=!0;const In=Gm;function Cg(e){return !!(e&&e.then)}const wT=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:a,emitEvent:s,quitOnNullishReturnValue:l,actionFn:c}=e,d=f__namespace.useRef(!1),u=f__namespace.useRef(null),[m,h]=ei(!1),v=function(){i==null||i.apply(void 0,arguments);};f__namespace.useEffect(()=>{let b=null;return a&&(b=setTimeout(()=>{var y;(y=u.current)===null||y===void 0||y.focus();})),()=>{b&&clearTimeout(b);}},[]);const g=b=>{Cg(b)&&(h(!0),b.then(function(){h(!1,!0),v.apply(void 0,arguments),d.current=!1;},y=>(h(!1,!0),d.current=!1,Promise.reject(y))));},p=b=>{if(d.current)return;if(d.current=!0,!c){v();return}let y;if(s){if(y=c(b),l&&!Cg(y)){d.current=!1,v(b);return}}else if(c.length)y=c(i),d.current=!1;else if(y=c(),!y){v();return}g(y);};return f__namespace.createElement(In,Object.assign({},iy(t),{onClick:p,loading:m,prefixCls:r},o,{ref:u}),n)},$T=wT,sd=()=>({height:0,opacity:0}),Sg=e=>{const{scrollHeight:t}=e;return {height:t,opacity:1}},xT=e=>({height:e?e.offsetHeight:0}),ld=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",ay=function(){return {motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:sd,onEnterStart:sd,onAppearActive:Sg,onEnterActive:Sg,onLeaveStart:xT,onLeaveActive:sd,onAppearEnd:ld,onEnterEnd:ld,onLeaveEnd:ld,motionDeadline:500}},ET=e=>e!==void 0&&(e==="topLeft"||e==="topRight")?"slide-down":"slide-up",ou=(e,t,n)=>n!==void 0?n:`${e}-${t}`;var sy=f__namespace.createContext(null),wg=[];function OT(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(sy),s=f__namespace.useState(wg),l=X(s,2),c=l[0],d=l[1],u=a||(i.current?void 0:function(v){d(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()}),d(wg));},[c]),[o,u]}var cd;function PT(e){if(typeof document>"u")return 0;if(e||cd===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),cd=o-i;}return cd}function IT(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var _T="rc-util-locker-".concat(Date.now()),$g=0;function RT(e){var t=!!e,n=f__namespace.useState(function(){return $g+=1,"".concat(_T,"_").concat($g)}),r=X(n,1),o=r[0];Ut(function(){if(t){var i=PT(),a=IT();ra(`
html body {
  overflow-y: hidden;
  `.concat(a?"width: calc(100% - ".concat(i,"px);"):"",`
}`),o);}else Ql(o);return function(){Ql(o);}},[t,o]);}var xg=!1;function MT(e){return typeof e=="boolean"&&(xg=e),xg}var Eg=function(t){return t===!1?!1:!kn()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},ly=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),d=c[0],u=c[1],m=d||n;f__namespace.useEffect(function(){(a||n)&&u(n);},[n,a]);var h=f__namespace.useState(function(){return Eg(o)}),v=X(h,2),g=v[0],p=v[1];f__namespace.useEffect(function(){var T=Eg(o);p(T??null);});var b=OT(m&&!g),y=X(b,2),w=y[0],x=y[1],C=g??w;RT(r&&n&&kn()&&(C===w||C===document.body));var S=null;if(s&&hi(s)&&t){var $=s;S=$.ref;}var P=As(S,t);if(!m||!kn()||g===void 0)return null;var O=C===!1||MT(),E=s;return t&&(E=f__namespace.cloneElement(s,{ref:P})),f__namespace.createElement(sy.Provider,{value:x},O?E:jp.createPortal(E,C))});function TT(){var e=V({},f__namespace);return e.useId}var Og=0;function NT(e){var t=f__namespace.useState("ssr-id"),n=X(t,2),r=n[0],o=n[1],i=TT(),a=i==null?void 0:i();return f__namespace.useEffect(function(){if(!i){var s=Og;Og+=1,o("rc_unique_".concat(s));}},[]),e||a||r}const AT=()=>kn()&&window.document.documentElement;let pl;const DT=()=>{if(!AT())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},kT=e=>({animationDuration:e,animationFillMode:"both"}),LT=e=>({animationDuration:e,animationFillMode:"both"}),Um=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({},kT(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},LT(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"}}},FT=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}}),zT=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}}),jT=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}}),HT=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}}),BT=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}}),WT=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}}),VT=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}}),GT=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}}),UT={"move-up":{inKeyframes:VT,outKeyframes:GT},"move-down":{inKeyframes:FT,outKeyframes:zT},"move-left":{inKeyframes:jT,outKeyframes:HT},"move-right":{inKeyframes:BT,outKeyframes:WT}},ac=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=UT[t];return [Um(r,o,i,e.motionDurationMid),{[`
        ${r}-enter,
        ${r}-appear
      `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Km=new Mt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Xm=new Mt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),qm=new Mt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Ym=new Mt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),KT=new Mt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),XT=new Mt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),qT=new Mt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),YT=new Mt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),ZT={"slide-up":{inKeyframes:Km,outKeyframes:Xm},"slide-down":{inKeyframes:qm,outKeyframes:Ym},"slide-left":{inKeyframes:KT,outKeyframes:XT},"slide-right":{inKeyframes:qT,outKeyframes:YT}},Mo=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=ZT[t];return [Um(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}}]},QT=new Mt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),JT=new Mt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Pg=new Mt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Ig=new Mt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),eN=new Mt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),tN=new Mt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),nN=new Mt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),rN=new Mt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),oN=new Mt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),iN=new Mt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),aN=new Mt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),sN=new Mt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),lN={zoom:{inKeyframes:QT,outKeyframes:JT},"zoom-big":{inKeyframes:Pg,outKeyframes:Ig},"zoom-big-fast":{inKeyframes:Pg,outKeyframes:Ig},"zoom-left":{inKeyframes:nN,outKeyframes:rN},"zoom-right":{inKeyframes:oN,outKeyframes:iN},"zoom-up":{inKeyframes:eN,outKeyframes:tN},"zoom-down":{inKeyframes:aN,outKeyframes:sN}},iu=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=lN[t];return [Um(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}}]},cN=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`}}}),cy=cN;function Zm(e,t,n,r){return function(i){const{prefixCls:a,style:s}=i,l=f__namespace.useRef(null),[c,d]=f__namespace.useState(0),[u,m]=f__namespace.useState(0),[h,v]=Qt(!1,{value:i.open}),{getPrefixCls:g}=f__namespace.useContext(at),p=g(t||"select",a);f__namespace.useEffect(()=>{if(v(!0),typeof ResizeObserver<"u"){const y=new ResizeObserver(x=>{const C=x[0].target;d(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(Fm,{theme:{token:{motion:!1}}},f__namespace.createElement("div",{ref:l,style:{paddingBottom:c,position:"relative",minWidth:u}},f__namespace.createElement(e,Object.assign({},b))))}}const au=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 uy=f__namespace.createContext(null);function uN(){return f__namespace.useContext(uy)}function dN(){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,d){a(),i.current=window.setTimeout(function(){o(c),d&&d();},e);};return [r,s,a]}function dy(){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 fN(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 mN=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],$i=void 0;function hN(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,d=e.className,u=e.style,m=e.children,h=e.display,v=e.order,g=e.component,p=g===void 0?"div":g,b=Ue(e,mN),y=a&&!h;function w(P){l(c,P);}f__namespace.useEffect(function(){return function(){w(null);}},[]);var x=i&&o!==$i?i(o):m,C;r||(C={opacity:y?0:1,height:y?0:$i,overflowY:y?"hidden":$i,order:a?v:$i,pointerEvents:y?"none":$i,position:y?"absolute":$i});var S={};y&&(S["aria-hidden"]=!0);var $=f__namespace.createElement(p,pe({className:U(!r&&n,d),style:V(V({},C),u)},S,b,{ref:t}),x);return a&&($=f__namespace.createElement(fo,{onResize:function(O){var E=O.offsetWidth;w(E);},disabled:s},$)),$}var Ja=f__namespace.forwardRef(hN);Ja.displayName="Item";function vN(e){if(typeof MessageChannel>"u")Nt(e);else {var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0);}}function gN(){var e=f__namespace.useRef(null),t=function(r){e.current||(e.current=[],vN(function(){jp.unstable_batchedUpdates(function(){e.current.forEach(function(o){o();}),e.current=null;});})),e.current.push(r);};return t}function Ma(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 pN=["component"],bN=["className"],yN=["className"],CN=function(t,n){var r=f__namespace.useContext(sc);if(!r){var o=t.component,i=o===void 0?"div":o,a=Ue(t,pN);return f__namespace.createElement(i,pe({},a,{ref:n}))}var s=r.className,l=Ue(r,bN),c=t.className,d=Ue(t,yN);return f__namespace.createElement(sc.Provider,{value:null},f__namespace.createElement(Ja,pe({ref:n,className:U(s,c)},l,d)))},fy=f__namespace.forwardRef(CN);fy.displayName="RawItem";var SN=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],sc=f__namespace.createContext(null),my="responsive",hy="invalidate";function wN(e){return "+ ".concat(e.length," ...")}function $N(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,d=c===void 0?10:c,u=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,SN),$=u==="full",P=gN(),O=Ma(P,null),E=X(O,2),T=E[0],_=E[1],R=T||0,I=Ma(P,new Map),M=X(I,2),A=M[0],N=M[1],D=Ma(P,0),F=X(D,2),z=F[0],H=F[1],k=Ma(P,0),W=X(k,2),B=W[0],K=W[1],te=Ma(P,0),Z=X(te,2),Y=Z[0],ee=Z[1],re=f.useState(null),ae=X(re,2),ue=ae[0],ie=ae[1],me=f.useState(null),ye=X(me,2),ce=ye[0],he=ye[1],ne=f__namespace.useMemo(function(){return ce===null&&$?Number.MAX_SAFE_INTEGER:ce||0},[ce,T]),fe=f.useState(!1),se=X(fe,2),le=se[0],_e=se[1],Ve="".concat(r,"-item"),Ze=Math.max(z,B),$e=v===my,Le=i.length&&$e,tt=v===hy,Ke=Le||typeof v=="number"&&i.length>v,Xe=f.useMemo(function(){var Ne=i;return Le?T===null&&$?Ne=i:Ne=i.slice(0,Math.min(i.length,R/d)):typeof v=="number"&&(Ne=i.slice(0,v)),Ne},[i,d,T,v,Le]),De=f.useMemo(function(){return Le?i.slice(ne+1):i.slice(Xe.length)},[i,Xe,Le,ne]),Fe=f.useCallback(function(Ne,de){var oe;return typeof l=="function"?l(Ne):(oe=l&&(Ne==null?void 0:Ne[l]))!==null&&oe!==void 0?oe:de},[l]),ut=f.useCallback(a||function(Ne){return Ne},[a]);function st(Ne,de,oe){ce===Ne&&(de===void 0||de===ue)||(he(Ne),oe||(_e(Ne<i.length-1),C==null||C(Ne)),de!==void 0&&ie(de));}function be(Ne,de){_(de.clientWidth);}function xe(Ne,de){N(function(oe){var Ce=new Map(oe);return de===null?Ce.delete(Ne):Ce.set(Ne,de),Ce});}function qe(Ne,de){K(de),H(B);}function Be(Ne,de){ee(de);}function dt(Ne){return A.get(Fe(Xe[Ne],Ne))}Ut(function(){if(R&&typeof Ze=="number"&&Xe){var Ne=Y,de=Xe.length,oe=de-1;if(!de){st(0,null);return}for(var Ce=0;Ce<de;Ce+=1){var Ee=dt(Ce);if($&&(Ee=Ee||0),Ee===void 0){st(Ce-1,void 0,!0);break}if(Ne+=Ee,oe===0&&Ne<=R||Ce===oe-1&&Ne+dt(oe)<=R){st(oe,null);break}else if(Ne+Ze>R){st(Ce-1,Ne-Ee-Y+B);break}}b&&dt(0)+Y>R&&ie(null);}},[R,A,B,Y,Fe,Xe]);var Oe=le&&!!De.length,Pe={};ue!==null&&Le&&(Pe={position:"absolute",left:ue,top:0});var ze={prefixCls:Ve,responsive:Le,component:x,invalidate:tt},Re=s?function(Ne,de){var oe=Fe(Ne,de);return f__namespace.createElement(sc.Provider,{key:oe,value:V(V({},ze),{},{order:de,item:Ne,itemKey:oe,registerSize:xe,display:de<=ne})},s(Ne,de))}:function(Ne,de){var oe=Fe(Ne,de);return f__namespace.createElement(Ja,pe({},ze,{order:de,key:oe,item:Ne,renderItem:ut,itemKey:oe,registerSize:xe,display:de<=ne}))},Qe,wt={order:Oe?ne:Number.MAX_SAFE_INTEGER,className:"".concat(Ve,"-rest"),registerSize:qe,display:Oe};if(p)p&&(Qe=f__namespace.createElement(sc.Provider,{value:V(V({},ze),wt)},p(De)));else {var Lt=g||wN;Qe=f__namespace.createElement(Ja,pe({},ze,wt),typeof Lt=="function"?Lt(De):Lt);}var Dt=f__namespace.createElement(w,pe({className:U(!tt&&r,h),style:m,ref:t},S),Xe.map(Re),Ke?Qe:null,b&&f__namespace.createElement(Ja,pe({},ze,{responsive:$e,responsiveDisabled:!Le,order:ne,className:"".concat(Ve,"-suffix"),registerSize:Be,display:!0,style:Pe}),b));return $e&&(Dt=f__namespace.createElement(fo,{onResize:be,disabled:!Le},Dt)),Dt}var Hr=f__namespace.forwardRef($N);Hr.displayName="Overflow";Hr.Item=fy;Hr.RESPONSIVE=my;Hr.INVALIDATE=hy;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(d){d.preventDefault(),i&&i(d);},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))},xN=function(t,n){var r,o,i=t.prefixCls,a=t.id,s=t.inputElement,l=t.disabled,c=t.tabIndex,d=t.autoFocus,u=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,T=O.props,_=T.onKeyDown,R=T.onChange,I=T.onMouseDown,M=T.onCompositionStart,A=T.onCompositionEnd,N=T.style;return "maxLength"in P.props,P=f__namespace.cloneElement(P,V(V(V({type:"search"},T),{},{id:a,ref:Fn(n,E),disabled:l,tabIndex:c,autoComplete:u||"off",autoFocus:d,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:V(V({},N),{},{opacity:m?null:0}),onKeyDown:function(F){p(F),_&&_(F);},onMouseDown:function(F){b(F),I&&I(F);},onChange:function(F){y(F),R&&R(F);},onCompositionStart:function(F){x(F),M&&M(F);},onCompositionEnd:function(F){C(F),A&&A(F);},onPaste:w})),P},Qm=f__namespace.forwardRef(xN);Qm.displayName="Input";function vy(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var EN=typeof window<"u"&&window.document&&window.document.documentElement,ON=EN;function PN(e){return e!=null}function _g(e){return ["string","number"].includes(ot(e))}function gy(e){var t=void 0;return e&&(_g(e.title)?t=e.title.toString():_g(e.label)&&(t=e.label.toString())),t}function IN(e,t){ON?f__namespace.useLayoutEffect(e,t):f__namespace.useEffect(e,t);}function _N(e){var t;return (t=e.key)!==null&&t!==void 0?t:e.value}var Rg=function(t){t.preventDefault(),t.stopPropagation();},RN=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,d=t.disabled,u=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(ie){return "+ ".concat(ie.length," ...")}:x,S=t.tagRender,$=t.onToggleOpen,P=t.onRemove,O=t.onInputChange,E=t.onInputPaste,T=t.onInputKeyDown,_=t.onInputMouseDown,R=t.onInputCompositionStart,I=t.onInputCompositionEnd,M=f__namespace.useRef(null),A=f.useState(0),N=X(A,2),D=N[0],F=N[1],z=f.useState(!1),H=X(z,2),k=H[0],W=H[1],B="".concat(r,"-selection"),K=i||u==="multiple"&&s===!1||u==="tags"?a:"",te=u==="tags"||u==="multiple"&&s===!1||m&&(i||k);IN(function(){F(M.current.scrollWidth);},[K]);function Z(ie,me,ye,ce,he){return f__namespace.createElement("span",{className:U("".concat(B,"-item"),q({},"".concat(B,"-item-disabled"),ye)),title:gy(ie)},f__namespace.createElement("span",{className:"".concat(B,"-item-content")},me),ce&&f__namespace.createElement(lc,{className:"".concat(B,"-item-remove"),onMouseDown:Rg,onClick:he,customizeIcon:b},"×"))}function Y(ie,me,ye,ce,he){var ne=function(se){Rg(se),$(!i);};return f__namespace.createElement("span",{onMouseDown:ne},S({label:me,value:ie,disabled:ye,closable:ce,onClose:he}))}function ee(ie){var me=ie.disabled,ye=ie.label,ce=ie.value,he=!d&&!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 se=function(_e){_e&&_e.stopPropagation(),P(ie);};return typeof S=="function"?Y(ce,ne,me,he,se):Z(ie,ne,me,he,se)}function re(ie){var me=typeof C=="function"?C(ie):C;return Z({title:me},me,!1)}var ae=f__namespace.createElement("div",{className:"".concat(B,"-search"),style:{width:D},onFocus:function(){W(!0);},onBlur:function(){W(!1);}},f__namespace.createElement(Qm,{ref:l,open:i,prefixCls:r,id:n,inputElement:null,disabled:d,autoFocus:h,autoComplete:v,editable:te,activeDescendantId:g,value:K,onKeyDown:T,onMouseDown:_,onChange:O,onPaste:E,onCompositionStart:R,onCompositionEnd:I,tabIndex:p,attrs:ys(t,!0)}),f__namespace.createElement("span",{ref:M,className:"".concat(B,"-search-mirror"),"aria-hidden":!0},K," ")),ue=f__namespace.createElement(Hr,{prefixCls:"".concat(B,"-overflow"),data:o,renderItem:ee,renderRest:re,suffix:ae,itemKey:_N,maxCount:y});return f__namespace.createElement(f__namespace.Fragment,null,ue,!o.length&&!K&&f__namespace.createElement("span",{className:"".concat(B,"-placeholder")},c))},MN=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,d=t.mode,u=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),T=X(E,2),_=T[0],R=T[1],I=d==="combobox",M=I||g,A=m[0],N=p||"";I&&b&&!_&&(N=b),f__namespace.useEffect(function(){I&&R(!1);},[I,b]);var D=d!=="combobox"&&!u&&!g?!1:!!N,F=O===void 0?gy(A):O,z=function(){if(A)return null;var k=D?{visibility:"hidden"}:void 0;return f__namespace.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:k},h)};return f__namespace.createElement(f__namespace.Fragment,null,f__namespace.createElement("span",{className:"".concat(r,"-selection-search")},f__namespace.createElement(Qm,{ref:i,prefixCls:r,id:o,open:u,inputElement:n,disabled:a,autoFocus:s,autoComplete:l,editable:M,activeDescendantId:c,value:N,onKeyDown:w,onMouseDown:x,onChange:function(k){R(!0),C(k);},onPaste:S,onCompositionStart:$,onCompositionEnd:P,tabIndex:v,attrs:ys(t,!0),maxLength:I?y:void 0})),!I&&A?f__namespace.createElement("span",{className:"".concat(r,"-selection-item"),title:F,style:D?{visibility:"hidden"}:void 0},A.label):null,z())};function TN(e){return ![J.ESC,J.SHIFT,J.BACKSPACE,J.TAB,J.WIN_KEY,J.ALT,J.META,J.WIN_KEY_RIGHT,J.CTRL,J.SEMICOLON,J.EQUALS,J.CAPS_LOCK,J.CONTEXT_MENU,J.F1,J.F2,J.F3,J.F4,J.F5,J.F6,J.F7,J.F8,J.F9,J.F10,J.F11,J.F12].includes(e)}var NN=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,d=t.autoClearSearchValue,u=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=dy(0),b=X(p,2),y=b[0],w=b[1],x=function(N){var D=N.which;(D===J.UP||D===J.DOWN)&&N.preventDefault(),v&&v(N),D===J.ENTER&&s==="tags"&&!o.current&&!a&&(m==null||m(N.target.value)),TN(D)&&h(!0);},C=function(){w(!0);},S=f.useRef(null),$=function(N){u(N,!0,o.current)!==!1&&h(!0);},P=function(){o.current=!0;},O=function(N){o.current=!1,s!=="combobox"&&$(N.target.value);},E=function(N){var D=N.target.value;if(c&&S.current&&/[\r\n]/.test(S.current)){var F=S.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");D=D.replace(F,S.current);}S.current=null,$(D);},T=function(N){var D=N.clipboardData,F=D.getData("text");S.current=F;},_=function(N){var D=N.target;if(D!==r.current){var F=document.body.style.msTouchAction!==void 0;F?setTimeout(function(){r.current.focus();}):r.current.focus();}},R=function(N){var D=y();N.target!==r.current&&!D&&s!=="combobox"&&N.preventDefault(),(s!=="combobox"&&(!l||!D)||!a)&&(a&&d!==!1&&u("",!0,!1),h());},I={inputRef:r,onInputKeyDown:x,onInputMouseDown:C,onInputChange:E,onInputPaste:T,onInputCompositionStart:P,onInputCompositionEnd:O},M=s==="multiple"||s==="tags"?f__namespace.createElement(RN,pe({},t,I)):f__namespace.createElement(MN,pe({},t,I));return f__namespace.createElement("div",{ref:g,className:"".concat(i,"-selector"),onClick:_,onMouseDown:R},M)},py=f__namespace.forwardRef(NN);py.displayName="Selector";var Mg=f__namespace.createContext(null);function Tg(e){return e?Array.isArray(e)?e:[e]:[]}function AN(e,t,n,r){return f__namespace.useMemo(function(){var o=Tg(n??t),i=Tg(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 DN(){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 kN(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(DN((s=e[l])===null||s===void 0?void 0:s.points,o,r))return "".concat(t,"-placement-").concat(l)}return ""}function Ng(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Hs(e){return e.ownerDocument.defaultView}function _f(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=Hs(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 Cs(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Ta(e){return Cs(parseFloat(e),0)}function Ag(e,t){var n=V({},e);return (t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement)){var o=Hs(r).getComputedStyle(r),i=o.overflow,a=o.overflowClipMargin,s=o.borderTopWidth,l=o.borderBottomWidth,c=o.borderLeftWidth,d=o.borderRightWidth,u=r.getBoundingClientRect(),m=r.offsetHeight,h=r.clientHeight,v=r.offsetWidth,g=r.clientWidth,p=Ta(s),b=Ta(l),y=Ta(c),w=Ta(d),x=Cs(Math.round(u.width/v*1e3)/1e3),C=Cs(Math.round(u.height/m*1e3)/1e3),S=(v-g-y-w)*x,$=(m-h-p-b)*C,P=p*C,O=b*C,E=y*x,T=w*x,_=0,R=0;if(i==="clip"){var I=Ta(a);_=I*x,R=I*C;}var M=u.x+E-_,A=u.y+P-R,N=M+u.width+2*_-E-T-S,D=A+u.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,N),n.bottom=Math.min(n.bottom,D);}}),n}function Dg(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 kg(e,t){var n=t||[],r=X(n,2),o=r[0],i=r[1];return [Dg(e.width,o),Dg(e.height,i)]}function Lg(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return [e[0],e[1]]}function xi(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 yo(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 LN(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],d=l[1],u=f__namespace.useRef(0),m=f__namespace.useMemo(function(){return t?_f(t):[]},[t]),h=f__namespace.useRef({}),v=function(){h.current={};};e||v();var g=qn(function(){if(t&&n&&e){let nt=function(pt,_t){var Yt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ie,mr=E.x+pt,$n=E.y+_t,_r=mr+k,rr=$n+H,jo=Math.max(mr,Yt.left),el=Math.max($n,Yt.top),Ea=Math.min(_r,Yt.right),tl=Math.min(rr,Yt.bottom);return Math.max(0,(Ea-jo)*(tl-el))},St=function(){Ce=E.y+Be,Ee=Ce+H,Ye=E.x+qe,ft=Ye+k;};var y=t,w=y.style.left,x=y.style.top,C=y.ownerDocument,S=Hs(y),$=V(V({},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(),T=S.getComputedStyle(y),_=T.width,R=T.height,I=C.documentElement,M=I.clientWidth,A=I.clientHeight,N=I.scrollWidth,D=I.scrollHeight,F=I.scrollTop,z=I.scrollLeft,H=E.height,k=E.width,W=P.height,B=P.width,K={left:0,top:0,right:M,bottom:A},te={left:-z,top:-F,right:N-z,bottom:D-F},Z=$.htmlRegion,Y="visible",ee="visibleFirst";Z!=="scroll"&&Z!==ee&&(Z=Y);var re=Z===ee,ae=Ag(te,m),ue=Ag(K,m),ie=Z===Y?ue:ae,me=re?ue:ie;y.style.left=w,y.style.top=x;var ye=Cs(Math.round(k/parseFloat(_)*1e3)/1e3),ce=Cs(Math.round(H/parseFloat(R)*1e3)/1e3);if(ye===0||ce===0||Xl(n)&&!Bm(n))return;var he=$.offset,ne=$.targetOffset,fe=kg(E,he),se=X(fe,2),le=se[0],_e=se[1],Ve=kg(P,ne),Ze=X(Ve,2),$e=Ze[0],Le=Ze[1];P.x-=$e,P.y-=Le;var tt=$.points||[],Ke=X(tt,2),Xe=Ke[0],De=Ke[1],Fe=Lg(De),ut=Lg(Xe),st=xi(P,Fe),be=xi(E,ut),xe=V({},$),qe=st.x-be.x+le,Be=st.y-be.y+_e,dt=nt(qe,Be),Oe=nt(qe,Be,ue),Pe=xi(P,["t","l"]),ze=xi(E,["t","l"]),Re=xi(P,["b","r"]),Qe=xi(E,["b","r"]),wt=$.overflow||{},Lt=wt.adjustX,Dt=wt.adjustY,Ne=wt.shiftX,de=wt.shiftY,oe=function(_t){return typeof _t=="boolean"?_t:_t>=0},Ce,Ee,Ye,ft;St();var yt=oe(Dt),Xt=ut[0]===Fe[0];if(yt&&ut[0]==="t"&&(Ee>me.bottom||h.current.bt)){var Bt=Be;Xt?Bt-=H-W:Bt=Pe.y-Qe.y-_e;var Ae=nt(qe,Bt),We=nt(qe,Bt,ue);Ae>dt||Ae===dt&&(!re||We>=Oe)?(h.current.bt=!0,Be=Bt,xe.points=[yo(ut,0),yo(Fe,0)]):h.current.bt=!1;}if(yt&&ut[0]==="b"&&(Ce<me.top||h.current.tb)){var Me=Be;Xt?Me+=H-W:Me=Re.y-ze.y-_e;var Ct=nt(qe,Me),gt=nt(qe,Me,ue);Ct>dt||Ct===dt&&(!re||gt>=Oe)?(h.current.tb=!0,Be=Me,xe.points=[yo(ut,0),yo(Fe,0)]):h.current.tb=!1;}var Jt=oe(Lt),Te=ut[1]===Fe[1];if(Jt&&ut[1]==="l"&&(ft>me.right||h.current.rl)){var He=qe;Te?He-=k-B:He=Pe.x-Qe.x-le;var lt=nt(He,Be),Et=nt(He,Be,ue);lt>dt||lt===dt&&(!re||Et>=Oe)?(h.current.rl=!0,qe=He,xe.points=[yo(ut,1),yo(Fe,1)]):h.current.rl=!1;}if(Jt&&ut[1]==="r"&&(Ye<me.left||h.current.lr)){var qt=qe;Te?qt+=k-B:qt=Re.x-ze.x-le;var zt=nt(qt,Be),wn=nt(qt,Be,ue);zt>dt||zt===dt&&(!re||wn>=Oe)?(h.current.lr=!0,qe=qt,xe.points=[yo(ut,1),yo(Fe,1)]):h.current.lr=!1;}St();var Nn=Ne===!0?0:Ne;typeof Nn=="number"&&(Ye<ie.left&&(qe-=Ye-ie.left,P.x+B<ie.left+Nn&&(qe+=P.x-ie.left+B-Nn)),ft>ie.right&&(qe-=ft-ie.right,P.x>ie.right-Nn&&(qe+=P.x-ie.right+Nn)));var fr=de===!0?0:de;typeof fr=="number"&&(Ce<ie.top&&(Be-=Ce-ie.top,P.y+W<ie.top+fr&&(Be+=P.y-ie.top+W-fr)),Ee>ie.bottom&&(Be-=Ee-ie.bottom,P.y>ie.bottom-fr&&(Be+=P.y-ie.bottom+fr)));var Kr=E.x+qe,Ir=Kr+k,nr=E.y+Be,_n=nr+H,Xr=P.x,ko=Xr+B,qr=P.y,Yr=qr+W,Zr=Math.max(Kr,Xr),Lo=Math.min(Ir,ko),Fo=(Zr+Lo)/2,zo=Fo-Kr,Qr=Math.max(nr,qr),It=Math.min(_n,Yr),we=(Qr+It)/2,Se=we-nr;a==null||a(t,xe),d({ready:!0,offsetX:qe/ye,offsetY:Be/ce,arrowX:zo/ye,arrowY:Se/ce,scaleX:ye,scaleY:ce,align:xe});}}),p=function(){u.current+=1;var w=u.current;Promise.resolve().then(function(){u.current===w&&g();});},b=function(){d(function(w){return V(V({},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 FN(e,t,n,r){Ut(function(){if(e&&t&&n){let d=function(){r();};var o=t,i=n,a=_f(o),s=_f(i),l=Hs(i),c=new Set([l].concat(ge(a),ge(s)));return c.forEach(function(u){u.addEventListener("scroll",d,{passive:!0});}),l.addEventListener("resize",d,{passive:!0}),r(),function(){c.forEach(function(u){u.removeEventListener("scroll",d),l.removeEventListener("resize",d);});}}},[e,t,n]);}function zN(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,d=o.y,u=d===void 0?0:d,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=u: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 jN(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?f__namespace.createElement(Do,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 HN=f__namespace.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),BN=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,d=e.onClick,u=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,T=e.onAlign,_=e.onPrepare,R=e.stretch,I=e.targetWidth,M=e.targetHeight,A=typeof n=="function"?n():n,N=l||c,D=(y==null?void 0:y.length)>0,F=f__namespace.useState(!y||!D),z=X(F,2),H=z[0],k=z[1];if(Ut(function(){!H&&D&&a&&k(!0);},[H,D,a]),!H)return null;var W=P||!l?{left:O,top:E}:{left:"-1000vw",top:"-1000vh"},B={};return R&&(R.includes("height")&&M?B.height=M:R.includes("minHeight")&&M&&(B.minHeight=M),R.includes("width")&&I?B.width=I:R.includes("minWidth")&&I&&(B.minWidth=I)),l||(B.pointerEvents="none"),f__namespace.createElement(x,{open:b||N,getContainer:y&&function(){return y(a)},autoDestroy:w},f__namespace.createElement(jN,{prefixCls:o,open:l,zIndex:C,mask:u,motion:p}),f__namespace.createElement(fo,{onResize:T,disabled:!l},function(K){return f__namespace.createElement(Do,pe({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:b,leavedClassName:"".concat(o,"-hidden")},g,{onAppearPrepare:_,onEnterPrepare:_,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:V(V(V(V({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},W),B),ee),{},{boxSizing:"border-box",zIndex:C},i),onMouseEnter:S,onMouseLeave:$,onClick:d},m&&f__namespace.createElement(zN,{prefixCls:o,arrow:m,arrowPos:h,align:v}),f__namespace.createElement(HN,{cache:!l},A))})}))}),WN=f__namespace.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=hi(n),i=f__namespace.useCallback(function(s){Om(t,r?r(s):s);},[r]),a=As(i,n.ref);return o?f__namespace.cloneElement(n,{ref:a}):n}),VN=["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 GN(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ly,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,d=n.hideAction,u=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,T=n.popup,_=n.popupClassName,R=n.popupStyle,I=n.popupPlacement,M=n.builtinPlacements,A=M===void 0?{}:M,N=n.popupAlign,D=n.zIndex,F=n.stretch,z=n.getPopupClassNameFromAlign,H=n.alignPoint,k=n.onPopupClick,W=n.onPopupAlign,B=n.arrow,K=n.popupMotion,te=n.maskMotion,Z=n.popupTransitionName,Y=n.popupAnimation,ee=n.maskTransitionName,re=n.maskAnimation,ae=n.className,ue=n.getTriggerDOMNode,ie=Ue(n,VN),me=O||E||!1,ye=f__namespace.useState(!1),ce=X(ye,2),he=ce[0],ne=ce[1];Ut(function(){ne(au());},[]);var fe=f__namespace.useRef({}),se=f__namespace.useContext(Mg),le=f__namespace.useMemo(function(){return {registerSubPopup:function(rt,Tt){fe.current[rt]=Tt,se==null||se.registerSubPopup(rt,Tt);}}},[se]),_e=NT(),Ve=f__namespace.useState(null),Ze=X(Ve,2),$e=Ze[0],Le=Ze[1],tt=qn(function(je){Xl(je)&&$e!==je&&Le(je),se==null||se.registerSubPopup(_e,je);}),Ke=f__namespace.useState(null),Xe=X(Ke,2),De=Xe[0],Fe=Xe[1],ut=qn(function(je){Xl(je)&&De!==je&&Fe(je);}),st=f__namespace.Children.only(a),be=(st==null?void 0:st.props)||{},xe={},qe=qn(function(je){var rt,Tt,Ft=De;return (Ft==null?void 0:Ft.contains(je))||(Ft==null||(rt=Ft.getRootNode())===null||rt===void 0?void 0:rt.host)===je||je===Ft||($e==null?void 0:$e.contains(je))||($e==null||(Tt=$e.getRootNode())===null||Tt===void 0?void 0:Tt.host)===je||je===$e||Object.values(fe.current).some(function(Rt){return (Rt==null?void 0:Rt.contains(je))||je===Rt})}),Be=Ng(i,K,Y,Z),dt=Ng(i,te,re,ee),Oe=f__namespace.useState(m||!1),Pe=X(Oe,2),ze=Pe[0],Re=Pe[1],Qe=u??ze,wt=qn(function(je){u===void 0&&Re(je);});Ut(function(){Re(u||!1);},[u]);var Lt=f__namespace.useRef(Qe);Lt.current=Qe;var Dt=qn(function(je){Qe!==je&&(wt(je),h==null||h(je));}),Ne=f__namespace.useRef(),de=function(){clearTimeout(Ne.current);},oe=function(rt){var Tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;de(),Tt===0?Dt(rt):Ne.current=setTimeout(function(){Dt(rt);},Tt*1e3);};f__namespace.useEffect(function(){return de},[]);var Ce=f__namespace.useState(!1),Ee=X(Ce,2),Ye=Ee[0],ft=Ee[1],yt=f__namespace.useRef(!0);Ut(function(){(!yt.current||Qe)&&ft(!0),yt.current=!0;},[Qe]);var Xt=f__namespace.useState(null),Bt=X(Xt,2),Ae=Bt[0],We=Bt[1],Me=f__namespace.useState([0,0]),Ct=X(Me,2),gt=Ct[0],Jt=Ct[1],Te=function(rt){Jt([rt.clientX,rt.clientY]);},He=LN(Qe,$e,H?gt:De,I,A,N,W),lt=X(He,9),Et=lt[0],qt=lt[1],zt=lt[2],wn=lt[3],Nn=lt[4],fr=lt[5],Kr=lt[6],Ir=lt[7],nr=lt[8],_n=qn(function(){Ye||nr();});FN(Qe,De,$e,_n),Ut(function(){_n();},[gt,I]),Ut(function(){Qe&&!(A!=null&&A[I])&&_n();},[JSON.stringify(N)]);var Xr=f__namespace.useMemo(function(){var je=kN(A,i,Ir,H);return U(je,z==null?void 0:z(Ir))},[Ir,z,A,i,H]);f__namespace.useImperativeHandle(r,function(){return {forceAlign:_n}});var ko=function(rt){ft(!1),nr(),v==null||v(rt);},qr=function(){return new Promise(function(rt){We(function(){return rt});})};Ut(function(){Ae&&(nr(),Ae(),We(null));},[Ae]);var Yr=f__namespace.useState(0),Zr=X(Yr,2),Lo=Zr[0],Fo=Zr[1],zo=f__namespace.useState(0),Qr=X(zo,2),It=Qr[0],we=Qr[1],Se=function(rt,Tt){if(_n(),F){var Ft=Tt.getBoundingClientRect();Fo(Ft.width),we(Ft.height);}},nt=AN(he,l,c,d),St=X(nt,2),pt=St[0],_t=St[1],Yt=function(rt,Tt,Ft,Rt){xe[rt]=function(Oa){var bi;Rt==null||Rt(Oa),oe(Tt,Ft);for(var Ho=arguments.length,yi=new Array(Ho>1?Ho-1:0),nl=1;nl<Ho;nl++)yi[nl-1]=arguments[nl];(bi=be[rt])===null||bi===void 0||bi.call.apply(bi,[be,Oa].concat(yi));};},mr=pt.has("click"),$n=_t.has("click")||_t.has("contextMenu");(mr||$n)&&(xe.onClick=function(je){var rt;Lt.current&&$n?oe(!1):!Lt.current&&mr&&(Te(je),oe(!0));for(var Tt=arguments.length,Ft=new Array(Tt>1?Tt-1:0),Rt=1;Rt<Tt;Rt++)Ft[Rt-1]=arguments[Rt];(rt=be.onClick)===null||rt===void 0||rt.call.apply(rt,[be,je].concat(Ft));}),f__namespace.useEffect(function(){if($n&&$e&&(!x||S)){var je=!1,rt=function(Ho){var yi=Ho.target;je=qe(yi);},Tt=function(Ho){var yi=Ho.target;Lt.current&&!je&&!qe(yi)&&oe(!1);},Ft=Hs($e),Rt=De==null?void 0:De.getRootNode();Ft.addEventListener("mousedown",rt),Ft.addEventListener("click",Tt);var Oa=Rt&&Rt!==De.ownerDocument;return Oa&&(Rt.addEventListener("mousedown",rt),Rt.addEventListener("click",Tt)),function(){Ft.removeEventListener("mousedown",rt),Ft.removeEventListener("click",Tt),Oa&&(Rt.removeEventListener("mousedown",rt),Rt.removeEventListener("click",Tt));}}},[$n,De,$e,x,S]);var _r=pt.has("hover"),rr=_t.has("hover"),jo,el;_r&&(Yt("onMouseEnter",!0,g,function(je){Te(je);}),jo=function(){oe(!0,g);},H&&(xe.onMouseMove=function(je){var rt;(rt=be.onMouseMove)===null||rt===void 0||rt.call(be,je);})),rr&&(Yt("onMouseLeave",!1,b),el=function(){oe(!1,b);}),pt.has("focus")&&Yt("onFocus",!0,y),_t.has("focus")&&Yt("onBlur",!1,w),pt.has("contextMenu")&&(xe.onContextMenu=function(je){var rt;Te(je),oe(!0),je.preventDefault();for(var Tt=arguments.length,Ft=new Array(Tt>1?Tt-1:0),Rt=1;Rt<Tt;Rt++)Ft[Rt-1]=arguments[Rt];(rt=be.onContextMenu)===null||rt===void 0||rt.call.apply(rt,[be,je].concat(Ft));}),ae&&(xe.className=U(be.className,ae));var Ea=V(V({},be),xe),tl={},O1=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];O1.forEach(function(je){ie[je]&&(tl[je]=function(){for(var rt,Tt=arguments.length,Ft=new Array(Tt),Rt=0;Rt<Tt;Rt++)Ft[Rt]=arguments[Rt];(rt=Ea[je])===null||rt===void 0||rt.call.apply(rt,[Ea].concat(Ft)),ie[je].apply(ie,Ft);});});var P1=f__namespace.cloneElement(st,V(V({},Ea),tl)),I1={x:wn,y:Nn},_1=B?V({},B!==!0?B:{}):null;return f__namespace.createElement(f__namespace.Fragment,null,f__namespace.createElement(fo,{disabled:!Qe,ref:ut,onResize:Se},f__namespace.createElement(WN,{getTriggerDOMNode:ue},P1)),f__namespace.createElement(Mg.Provider,{value:le},f__namespace.createElement(BN,{portal:e,ref:tt,prefixCls:i,popup:T,className:U(_,Xr),style:R,target:De,onMouseEnter:jo,onMouseLeave:el,zIndex:D,open:Qe,keepDom:Ye,onClick:k,mask:x,motion:Be,maskMotion:dt,onVisibleChanged:ko,onPrepare:qr,forceRender:P,autoDestroy:me,getPopupContainer:$,align:Ir,arrow:_1,arrowPos:I1,ready:Et,offsetX:qt,offsetY:zt,onAlign:_n,stretch:F,targetWidth:Lo/fr,targetHeight:It/Kr})))});return t}const su=GN(ly);var UN=["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],KN=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"}}},XN=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,d=t.dropdownStyle,u=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,UN),O="".concat(r,"-dropdown"),E=a;b&&(E=b(a));var T=f__namespace.useMemo(function(){return g||KN(p)},[g,p]),_=l?"".concat(O,"-").concat(l):c,R=f__namespace.useRef(null);f__namespace.useImperativeHandle(n,function(){return {getPopupElement:function(){return R.current}}});var I=V({minWidth:s},d);return typeof p=="number"?I.width=p:p&&(I.width=s),f__namespace.createElement(su,pe({},P,{showAction:S?["click"]:[],hideAction:S?["click"]:[],popupPlacement:v||(h==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:T,prefixCls:O,popupTransitionName:_,popup:f__namespace.createElement("div",{ref:R,onMouseEnter:$},E),popupAlign:y,popupVisible:o,getPopupContainer:w,popupClassName:U(u,q({},"".concat(O,"-empty"),x)),popupStyle:I,getTriggerDOMNode:C,onPopupVisibleChange:S}),i)},by=f__namespace.forwardRef(XN);by.displayName="SelectTrigger";function Fg(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 yy(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 qN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=yy(n,!1),a=i.label,s=i.value,l=i.options,c=i.groupLabel;function d(u,m){u.forEach(function(h){if(m||!(l in h)){var v=h[s];o.push({key:Fg(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:Fg(h,o.length),group:!0,data:h,label:g}),d(h[l],!0);}});}return d(e,!1),o}function Rf(e){var t=V({},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 YN(e,t){if(!t||!t.length)return null;var n=!1;function r(i,a){var s=m0(a),l=s[0],c=s.slice(1);if(!l)return [i];var d=i.split(l);return n=n||d.length>1,d.reduce(function(u,m){return [].concat(ge(u),ge(r(m,c)))},[]).filter(function(u){return u})}var o=r(e,t);return n?o:null}var ZN=["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"],QN=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Mf(e){return e==="tags"||e==="multiple"}var JN=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,d=e.omitDomProps,u=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,T=e.activeDescendantId,_=e.searchValue,R=e.autoClearSearchValue,I=e.onSearch,M=e.onSearchSplit,A=e.tokenSeparators,N=e.allowClear,D=e.showArrow,F=e.inputIcon,z=e.clearIcon,H=e.OptionList,k=e.animation,W=e.transitionName,B=e.dropdownStyle,K=e.dropdownClassName,te=e.dropdownMatchSelectWidth,Z=e.dropdownRender,Y=e.dropdownAlign,ee=e.placement,re=e.builtinPlacements,ae=e.getPopupContainer,ue=e.showAction,ie=ue===void 0?[]:ue,me=e.onFocus,ye=e.onBlur,ce=e.onKeyUp,he=e.onKeyDown,ne=e.onMouseDown,fe=Ue(e,ZN),se=Mf(b),le=(s!==void 0?s:se)||b==="combobox",_e=V({},fe);QN.forEach(function(we){delete _e[we];}),d==null||d.forEach(function(we){delete _e[we];});var Ve=f__namespace.useState(!1),Ze=X(Ve,2),$e=Ze[0],Le=Ze[1];f__namespace.useEffect(function(){Le(au());},[]);var tt=f__namespace.useRef(null),Ke=f__namespace.useRef(null),Xe=f__namespace.useRef(null),De=f__namespace.useRef(null),Fe=f__namespace.useRef(null),ut=dN(),st=X(ut,3),be=st[0],xe=st[1],qe=st[2];f__namespace.useImperativeHandle(t,function(){var we,Se;return {focus:(we=De.current)===null||we===void 0?void 0:we.focus,blur:(Se=De.current)===null||Se===void 0?void 0:Se.blur,scrollTo:function(St){var pt;return (pt=Fe.current)===null||pt===void 0?void 0:pt.scrollTo(St)}}});var Be=f__namespace.useMemo(function(){var we;if(b!=="combobox")return _;var Se=(we=u[0])===null||we===void 0?void 0:we.value;return typeof Se=="string"||typeof Se=="number"?String(Se):""},[_,b,u]),dt=b==="combobox"&&typeof x=="function"&&x()||null,Oe=typeof C=="function"&&C(),Pe=As(Ke,Oe==null||(n=Oe.props)===null||n===void 0?void 0:n.ref),ze=f__namespace.useState(!1),Re=X(ze,2),Qe=Re[0],wt=Re[1];Ut(function(){wt(!0);},[]);var Lt=Qt(!1,{defaultValue:$,value:S}),Dt=X(Lt,2),Ne=Dt[0],de=Dt[1],oe=Qe?Ne:!1,Ce=!g&&h;(y||Ce&&oe&&b==="combobox")&&(oe=!1);var Ee=Ce?!1:oe,Ye=f__namespace.useCallback(function(we){var Se=we!==void 0?we:!oe;y||(de(Se),oe!==Se&&(P==null||P(Se)));},[y,oe,de,P]),ft=f__namespace.useMemo(function(){return (A||[]).some(function(we){return [`
`,`\r
`].includes(we)})},[A]),yt=function(Se,nt,St){var pt=!0,_t=Se;E==null||E(null);var Yt=St?null:YN(Se,A);return b!=="combobox"&&Yt&&(_t="",M==null||M(Yt),Ye(!1),pt=!1),I&&Be!==_t&&I(_t,{source:nt?"typing":"effect"}),pt},Xt=function(Se){!Se||!Se.trim()||I(Se,{source:"submit"});};f__namespace.useEffect(function(){!oe&&!se&&b!=="combobox"&&yt("",!1,!1);},[oe]),f__namespace.useEffect(function(){Ne&&y&&de(!1),y&&xe(!1);},[y]);var Bt=dy(),Ae=X(Bt,2),We=Ae[0],Me=Ae[1],Ct=function(Se){var nt=We(),St=Se.which;if(St===J.ENTER&&(b!=="combobox"&&Se.preventDefault(),oe||Ye(!0)),Me(!!Be),St===J.BACKSPACE&&!nt&&se&&!Be&&u.length){for(var pt=ge(u),_t=null,Yt=pt.length-1;Yt>=0;Yt-=1){var mr=pt[Yt];if(!mr.disabled){pt.splice(Yt,1),_t=mr;break}}_t&&m(pt,{type:"remove",values:[_t]});}for(var $n=arguments.length,_r=new Array($n>1?$n-1:0),rr=1;rr<$n;rr++)_r[rr-1]=arguments[rr];if(oe&&Fe.current){var jo;(jo=Fe.current).onKeyDown.apply(jo,[Se].concat(_r));}he==null||he.apply(void 0,[Se].concat(_r));},gt=function(Se){for(var nt=arguments.length,St=new Array(nt>1?nt-1:0),pt=1;pt<nt;pt++)St[pt-1]=arguments[pt];if(oe&&Fe.current){var _t;(_t=Fe.current).onKeyUp.apply(_t,[Se].concat(St));}ce==null||ce.apply(void 0,[Se].concat(St));},Jt=function(Se){var nt=u.filter(function(St){return St!==Se});m(nt,{type:"remove",values:[Se]});},Te=f__namespace.useRef(!1),He=function(){xe(!0),y||(me&&!Te.current&&me.apply(void 0,arguments),ie.includes("focus")&&Ye(!0)),Te.current=!0;},lt=function(){xe(!1,function(){Te.current=!1,Ye(!1);}),!y&&(Be&&(b==="tags"?I(Be,{source:"submit"}):b==="multiple"&&I("",{source:"blur"})),ye&&ye.apply(void 0,arguments));},Et=[];f__namespace.useEffect(function(){return function(){Et.forEach(function(we){return clearTimeout(we)}),Et.splice(0,Et.length);}},[]);var qt=function(Se){var nt,St=Se.target,pt=(nt=Xe.current)===null||nt===void 0?void 0:nt.getPopupElement();if(pt&&pt.contains(St)){var _t=setTimeout(function(){var _r=Et.indexOf(_t);if(_r!==-1&&Et.splice(_r,1),qe(),!$e&&!pt.contains(document.activeElement)){var rr;(rr=De.current)===null||rr===void 0||rr.focus();}});Et.push(_t);}for(var Yt=arguments.length,mr=new Array(Yt>1?Yt-1:0),$n=1;$n<Yt;$n++)mr[$n-1]=arguments[$n];ne==null||ne.apply(void 0,[Se].concat(mr));},zt=f__namespace.useState(null),wn=X(zt,2),Nn=wn[0],fr=wn[1],Kr=f__namespace.useState({}),Ir=X(Kr,2),nr=Ir[1];function _n(){nr({});}Ut(function(){if(Ee){var we,Se=Math.ceil((we=tt.current)===null||we===void 0?void 0:we.offsetWidth);Nn!==Se&&!Number.isNaN(Se)&&fr(Se);}},[Ee]);var Xr;Oe&&(Xr=function(Se){Ye(Se);}),fN(function(){var we;return [tt.current,(we=Xe.current)===null||we===void 0?void 0:we.getPopupElement()]},Ee,Ye,!!Oe);var ko=f__namespace.useMemo(function(){return V(V({},e),{},{notFoundContent:g,open:oe,triggerOpen:Ee,id:o,showSearch:le,multiple:se,toggleOpen:Ye})},[e,g,Ee,oe,o,le,se,Ye]),qr=D!==void 0?D:w||!se&&b!=="combobox",Yr;qr&&(Yr=f__namespace.createElement(lc,{className:U("".concat(i,"-arrow"),q({},"".concat(i,"-arrow-loading"),w)),customizeIcon:F,customizeIconProps:{loading:w,searchValue:Be,open:oe,focused:be,showSearch:le}}));var Zr,Lo=function(){var Se;p==null||p(),(Se=De.current)===null||Se===void 0||Se.focus(),m([],{type:"clear",values:u}),yt("",!1,!1);};!y&&N&&(u.length||Be)&&!(b==="combobox"&&Be==="")&&(Zr=f__namespace.createElement(lc,{className:"".concat(i,"-clear"),onMouseDown:Lo,customizeIcon:z},"×"));var Fo=f__namespace.createElement(H,{ref:Fe}),zo=U(i,a,(r={},q(r,"".concat(i,"-focused"),be),q(r,"".concat(i,"-multiple"),se),q(r,"".concat(i,"-single"),!se),q(r,"".concat(i,"-allow-clear"),N),q(r,"".concat(i,"-show-arrow"),qr),q(r,"".concat(i,"-disabled"),y),q(r,"".concat(i,"-loading"),w),q(r,"".concat(i,"-open"),oe),q(r,"".concat(i,"-customize-input"),dt),q(r,"".concat(i,"-show-search"),le),r)),Qr=f__namespace.createElement(by,{ref:Xe,disabled:y,prefixCls:i,visible:Ee,popupElement:Fo,containerWidth:Nn,animation:k,transitionName:W,dropdownStyle:B,dropdownClassName:K,direction:c,dropdownMatchSelectWidth:te,dropdownRender:Z,dropdownAlign:Y,placement:ee,builtinPlacements:re,getPopupContainer:ae,empty:h,getTriggerDOMNode:function(){return Ke.current},onPopupVisibleChange:Xr,onPopupMouseEnter:_n},Oe?f__namespace.cloneElement(Oe,{ref:Pe}):f__namespace.createElement(py,pe({},e,{domRef:Ke,prefixCls:i,inputElement:dt,ref:De,id:o,showSearch:le,autoClearSearchValue:R,mode:b,activeDescendantId:T,tagRender:l,values:u,open:oe,onToggleOpen:Ye,activeValue:O,searchValue:Be,onSearch:yt,onSearchSubmit:Xt,onRemove:Jt,tokenWithEnter:ft}))),It;return Oe?It=Qr:It=f__namespace.createElement("div",pe({className:zo},_e,{ref:tt,onMouseDown:qt,onKeyDown:Ct,onKeyUp:gt,onFocus:He,onBlur:lt}),be&&!oe&&f__namespace.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(u.map(function(we){var Se=we.label,nt=we.value;return ["number","string"].includes(ot(Se))?Se:nt}).join(", "))),Qr,Yr,Zr),f__namespace.createElement(uy.Provider,{value:ko},It)});const eA=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(u){if(u.label===void 0){var m;return V(V({},u),{},{label:(m=a.get(u.value))===null||m===void 0?void 0:m.label})}return u}),c=new Map,d=new Map;return l.forEach(function(u){c.set(u.value,u),d.set(u.value,t.get(u.value)||s.get(u.value));}),n.current.values=c,n.current.options=d,l},[e,t]),o=f__namespace.useCallback(function(i){return t.get(i)||n.current.options.get(i)},[t]);return [r,o]};function ud(e,t){return vy(e).join("").toUpperCase().includes(t)}const tA=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",d=n.toUpperCase(),u=c?r:function(h,v){return o?ud(v[o],d):v[i]?ud(v[a!=="children"?a:"label"],d):ud(v[s],d)},m=c?function(h){return Rf(h)}:function(h){return h};return e.forEach(function(h){if(h[i]){var v=u(n,m(h));if(v)l.push(h);else {var g=h[i].filter(function(p){return u(n,m(p))});g.length&&l.push(V(V({},h),{},q({},i,g)));}return}u(n,m(h))&&l.push(h);}),l},[e,r,o,n,t])};var zg=0,nA=kn();function rA(){var e;return nA?(e=zg,zg+=1):e="TEST_OR_SSR",e}function oA(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(rA()));},[]),e||r}var iA=["children","value"],aA=["children"];function sA(e){var t=e,n=t.key,r=t.props,o=r.children,i=r.value,a=Ue(r,iA);return V({key:n,value:i!==void 0?i:n,children:o},a)}function Cy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return dr(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,aA);return t||!i?sA(n):V(V({key:"__RC_SELECT_GRP__".concat(a===null?r:a,"__"),label:a},c),{},{options:Cy(l)})}).filter(function(n){return n})}function lA(e,t,n,r,o){return f__namespace.useMemo(function(){var i=e,a=!e;a&&(i=Cy(t));var s=new Map,l=new Map,c=function(m,h,v){v&&typeof v=="string"&&m.set(h[v],h);};function d(u){for(var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,h=0;h<u.length;h+=1){var v=u[h];!v[n.options]||m?(s.set(v[n.value],v),c(l,v,n.label),c(l,v,r),c(l,v,o)):d(v[n.options],!0);}}return d(i),{options:i,valueOptions:s,labelOptions:l}},[e,t,n,r,o])}function jg(e){var t=f__namespace.useRef();t.current=e;var n=f__namespace.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var Jm=function(){return null};Jm.isSelectOptGroup=!0;var eh=function(){return null};eh.isSelectOption=!0;var Sy=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=V(V({},c),{},{transform:"translateY(".concat(r,"px)"),position:"absolute",left:0,right:0,top:0})),f__namespace.createElement("div",{style:l},f__namespace.createElement(fo,{onResize:function(u){var m=u.offsetHeight;m&&a&&a();}},f__namespace.createElement("div",pe({style:c,className:U(q({},"".concat(i,"-holder-inner"),i)),ref:t},s),o)))});Sy.displayName="Filler";var cA=20;function Hg(e){return "touches"in e?e.touches[0].pageY:e.pageY}var uA=function(e){fi(n,e);var t=mi(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:Hg(s),startTop:r.getTop()}),l(),r.patchEvents(),s.stopPropagation(),s.preventDefault();},r.onMouseMove=function(s){var l=r.state,c=l.dragging,d=l.pageY,u=l.startTop,m=r.props.onScroll;if(Nt.cancel(r.moveRaf),c){var h=Hg(s)-d,v=u+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,d=l/c*10;return d=Math.max(d,cA),d=Math.min(d,l/2),Math.floor(d)},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 d=s/l;return d*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,d=this.getSpinHeight(),u=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:V(V({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:d,top:u,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 dA(e){var t=e.children,n=e.setRef,r=f__namespace.useCallback(function(o){n(o);},[]);return f__namespace.cloneElement(t,{ref:r})}function fA(e,t,n,r,o,i){var a=i.getKey;return e.slice(t,n+1).map(function(s,l){var c=t+l,d=o(s,c,{}),u=a(s);return f__namespace.createElement(dA,{key:u,setRef:function(h){return r(s,h)}},d)})}var mA=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 hA(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 mA),c=f.useRef();function d(){Nt.cancel(c.current);}function u(){d(),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),u()):s.current.delete(g),!p!=!v&&(v?t==null||t(h):n==null||n(h));}return f.useEffect(function(){return d},[]),[m,u,l.current,i]}function vA(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&&ot(c)==="object"){var d,u=c.align;"index"in c?d=c.index:d=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||u,S=0,$=0,P=0,O=Math.min(t.length,d),E=0;E<=O;E+=1){var T=o(t[E]);$=S;var _=n.get(T);P=$+(_===void 0?r:_),S=P,E===d&&_===void 0&&(w=!0);}var R=null;switch(C){case"top":R=$-h;break;case"bottom":R=P-y+h;break;default:{var I=e.current.scrollTop,M=I+y;$<I?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 gA(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,d=Math.abs(r-o)!==1,u=0;u<a.length;u+=1){var m=l(i[u]),h=l(a[u]);if(m!==h){c=u,d=d||m!==l(a[u+1]);break}}return c===null?null:{index:c,multiple:d}}function pA(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],d=l[1];return f__namespace.useEffect(function(){var u=gA(i||[],e||[],t);(u==null?void 0:u.index)!==void 0&&(n==null||n(u.index),d(e[u.index])),a(e);},[e]),[c]}var bA=(typeof navigator>"u"?"undefined":ot(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const wy=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 yA(e,t,n,r){var o=f.useRef(0),i=f.useRef(null),a=f.useRef(null),s=f.useRef(!1),l=wy(t,n);function c(u){if(e){Nt.cancel(i.current);var m=u.deltaY;o.current+=m,a.current=m,!l(m)&&(bA||u.preventDefault(),i.current=Nt(function(){var h=s.current?10:1;r(o.current*h),o.current=0;}));}}function d(u){e&&(s.current=u.detail===a.current);}return [c,d]}var CA=14/15;function SA(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*=CA,(!n(v,!0)||Math.abs(v)<=.1)&&clearInterval(a.current);},16);}},c=function(){r.current=!1,s();},d=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",d),function(){var u;(u=t.current)===null||u===void 0||u.removeEventListener("touchstart",d),s(),clearInterval(a.current);}},[e]);}var wA=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","component","onScroll","onVisibleChange","innerProps"],$A=[],xA={overflowY:"auto",overflowAnchor:"none"};function EA(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,d=e.data,u=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,wA),C=!!(h!==!1&&i&&a),S=C&&d&&a*d.length>i,$=f.useState(0),P=X($,2),O=P[0],E=P[1],T=f.useState(!1),_=X(T,2),R=_[0],I=_[1],M=U(r,q({},"".concat(r,"-rtl"),v==="rtl"),o),A=d||$A,N=f.useRef(),D=f.useRef(),F=f.useRef(),z=f__namespace.useCallback(function(be){return typeof m=="function"?m(be):be==null?void 0:be[m]},[m]),H={getKey:z};function k(be){E(function(xe){var qe;typeof be=="function"?qe=be(xe):qe=be;var Be=le(qe);return N.current.scrollTop=Be,Be});}var W=f.useRef({start:0,end:A.length}),B=f.useRef(),K=pA(A,z),te=X(K,1),Z=te[0];B.current=Z;var Y=hA(z,null,null),ee=X(Y,4),re=ee[0],ae=ee[1],ue=ee[2],ie=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 xe=0,qe,Be,dt,Oe=A.length,Pe=0;Pe<Oe;Pe+=1){var ze=A[Pe],Re=z(ze),Qe=ue.get(Re),wt=xe+(Qe===void 0?a:Qe);wt>=O&&qe===void 0&&(qe=Pe,Be=xe),wt>O+i&&dt===void 0&&(dt=Pe),xe=wt;}return qe===void 0&&(qe=0,Be=0,dt=Math.ceil(i/a)),dt===void 0&&(dt=A.length-1),dt=Math.min(dt+1,A.length),{scrollHeight:xe,start:qe,end:dt,offset:Be}},[S,C,O,A,ie,i]),ye=me.scrollHeight,ce=me.start,he=me.end,ne=me.offset;W.current.start=ce,W.current.end=he;var fe=ye-i,se=f.useRef(fe);se.current=fe;function le(be){var xe=be;return Number.isNaN(se.current)||(xe=Math.min(xe,se.current)),xe=Math.max(xe,0),xe}var _e=O<=0,Ve=O>=fe,Ze=wy(_e,Ve);function $e(be){var xe=be;k(xe);}function Le(be){var xe=be.currentTarget.scrollTop;xe!==O&&k(xe),b==null||b(be);}var tt=yA(C,_e,Ve,function(be){k(function(xe){var qe=xe+be;return qe});}),Ke=X(tt,2),Xe=Ke[0],De=Ke[1];SA(C,N,function(be,xe){return Ze(be,xe)?!1:(Xe({preventDefault:function(){},deltaY:be}),!0)}),Ut(function(){function be(xe){C&&xe.preventDefault();}return N.current.addEventListener("wheel",Xe),N.current.addEventListener("DOMMouseScroll",De),N.current.addEventListener("MozMousePixelScroll",be),function(){N.current&&(N.current.removeEventListener("wheel",Xe),N.current.removeEventListener("DOMMouseScroll",De),N.current.removeEventListener("MozMousePixelScroll",be));}},[C]);var Fe=vA(N,A,ue,a,z,ae,k,function(){var be;(be=F.current)===null||be===void 0||be.delayHidden();});f__namespace.useImperativeHandle(t,function(){return {scrollTo:Fe}}),Ut(function(){if(y){var be=A.slice(ce,he+1);y(be,A);}},[ce,he,A]);var ut=fA(A,ce,he,re,u,H),st=null;return i&&(st=V(q({},l?"height":"maxHeight",i),xA),C&&(st.overflowY="hidden",R&&(st.pointerEvents="none"))),f__namespace.createElement("div",pe({style:V(V({},c),{},{position:"relative"}),className:M},x),f__namespace.createElement(p,{className:"".concat(r,"-holder"),style:st,ref:N,onScroll:Le},f__namespace.createElement(Sy,{prefixCls:r,height:ye,offset:ne,onInnerResize:ae,ref:D,innerProps:w},ut)),C&&f__namespace.createElement(uA,{ref:F,prefixCls:r,scrollTop:O,height:i,scrollHeight:ye,count:A.length,direction:v,onScroll:$e,onStartMove:function(){I(!0);},onStopMove:function(){I(!1);}}))}var $y=f__namespace.forwardRef(EA);$y.displayName="List";var xy=f__namespace.createContext(null);function OA(){return /(mac\sos|macintosh)/i.test(navigator.appVersion)}var PA=["disabled","title","children","style","className"];function Bg(e){return typeof e=="string"||typeof e=="number"}var IA=function(t,n){var r=uN(),o=r.prefixCls,i=r.id,a=r.open,s=r.multiple,l=r.mode,c=r.searchValue,d=r.toggleOpen,u=r.notFoundContent,m=r.onPopupScroll,h=f__namespace.useContext(xy),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=Ns(function(){return v},[a,v],function(Z,Y){return Y[0]&&Z[1]!==Y[1]}),T=f__namespace.useRef(null),_=function(Y){Y.preventDefault();},R=function(Y){T.current&&T.current.scrollTo(typeof Y=="number"?{index:Y}:Y);},I=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 ue=(Y+ae*ee+re)%re,ie=E[ue],me=ie.group,ye=ie.data;if(!me&&!ye.disabled)return ue}return -1},M=f__namespace.useState(function(){return I(0)}),A=X(M,2),N=A[0],D=A[1],F=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(){F(p!==!1?I(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 ue=ae.data;return ue.value===ee});re!==-1&&(F(re),R(re));}});if(a){var Y;(Y=T.current)===null||Y===void 0||Y.scrollTo(void 0);}return function(){return clearTimeout(Z)}},[a,c,v.length]);var H=function(Y){Y!==void 0&&b(Y,{selected:!w.has(Y)}),s||d(!1);};if(f__namespace.useImperativeHandle(n,function(){return {onKeyDown:function(Y){var ee=Y.which,re=Y.ctrlKey;switch(ee){case J.N:case J.P:case J.UP:case J.DOWN:{var ae=0;if(ee===J.UP?ae=-1:ee===J.DOWN?ae=1:OA()&&re&&(ee===J.N?ae=1:ee===J.P&&(ae=-1)),ae!==0){var ue=I(N+ae,ae);R(ue),F(ue,!0);}break}case J.ENTER:{var ie=E[N];ie&&!ie.data.disabled?H(ie.value):H(void 0),a&&Y.preventDefault();break}case J.ESC:d(!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:_},u);var k=Object.keys(x).map(function(Z){return x[Z]}),W=function(Y){return Y.label};function B(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,ue=ee.group,ie=ys(re,!0),me=W(ee);return ee?f__namespace.createElement("div",pe({"aria-label":typeof me=="string"&&!ue?me:null},ie,{key:Y},B(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(N-1),K(N),K(N+1)),f__namespace.createElement($y,{itemKey:"key",ref:T,data:E,height:$,itemHeight:P,fullHeight:!1,onMouseDown:_,onScroll:m,virtual:C,direction:S,innerProps:C?null:te},function(Z,Y){var ee,re=Z.group,ae=Z.groupOption,ue=Z.data,ie=Z.label,me=Z.value,ye=ue.key;if(re){var ce,he=(ce=ue.title)!==null&&ce!==void 0?ce:Bg(ie)?ie.toString():void 0;return f__namespace.createElement("div",{className:U(O,"".concat(O,"-group")),title:he},ie!==void 0?ie:ye)}var ne=ue.disabled,fe=ue.title;ue.children;var se=ue.style,le=ue.className,_e=Ue(ue,PA),Ve=Mn(_e,k),Ze=z(me),$e="".concat(O,"-option"),Le=U(O,$e,le,(ee={},q(ee,"".concat($e,"-grouped"),ae),q(ee,"".concat($e,"-active"),N===Y&&!ne),q(ee,"".concat($e,"-disabled"),ne),q(ee,"".concat($e,"-selected"),Ze),ee)),tt=W(Z),Ke=!y||typeof y=="function"||Ze,Xe=typeof tt=="number"?tt:tt||me,De=Bg(Xe)?Xe.toString():void 0;return fe!==void 0&&(De=fe),f__namespace.createElement("div",pe({},ys(Ve),C?{}:B(Z,Y),{"aria-selected":Ze,className:Le,title:De,onMouseMove:function(){N===Y||ne||F(Y);},onClick:function(){ne||H(me);},style:se}),f__namespace.createElement("div",{className:"".concat($e,"-content")},Xe),f__namespace.isValidElement(y)||Ze,Ke&&f__namespace.createElement(lc,{className:"".concat(O,"-option-state"),customizeIcon:y,customizeIconProps:{isSelected:Ze}},Ze?"✓":null))}))},Ey=f__namespace.forwardRef(IA);Ey.displayName="OptionList";var _A=["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"],RA=["inputValue"];function MA(e){return !e||ot(e)!=="object"}var TA=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,d=e.onSearch,u=e.autoClearSearchValue,m=u===void 0?!0:u,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,T=e.listHeight,_=T===void 0?200:T,R=e.listItemHeight,I=R===void 0?20:R,M=e.value,A=e.defaultValue,N=e.labelInValue,D=e.onChange,F=Ue(e,_A),z=oA(n),H=Mf(r),k=!!(!C&&S),W=f__namespace.useMemo(function(){return b===void 0&&r==="combobox"?!1:b},[b,r]),B=f__namespace.useMemo(function(){return yy(s,k)},[JSON.stringify(s),k]),K=Qt("",{value:c!==void 0?c:l,postState:function(oe){return oe||""}}),te=X(K,2),Z=te[0],Y=te[1],ee=lA(C,S,B,w,x),re=ee.valueOptions,ae=ee.labelOptions,ue=ee.options,ie=f__namespace.useCallback(function(de){var oe=vy(de);return oe.map(function(Ce){var Ee,Ye,ft,yt,Xt;if(MA(Ce))Ee=Ce;else {var Bt;ft=Ce.key,Ye=Ce.label,Ee=(Bt=Ce.value)!==null&&Bt!==void 0?Bt:ft;}var Ae=re.get(Ee);if(Ae){var We;Ye===void 0&&(Ye=Ae==null?void 0:Ae[x||B.label]),ft===void 0&&(ft=(We=Ae==null?void 0:Ae.key)!==null&&We!==void 0?We:Ee),yt=Ae==null?void 0:Ae.disabled,Xt=Ae==null?void 0:Ae.title;}return {label:Ye,value:Ee,key:ft,disabled:yt,title:Xt}})},[B,x,re]),me=Qt(A,{value:M}),ye=X(me,2),ce=ye[0],he=ye[1],ne=f__namespace.useMemo(function(){var de,oe=ie(ce);return r==="combobox"&&!((de=oe[0])!==null&&de!==void 0&&de.value)?[]:oe},[ce,ie,r]),fe=eA(ne,re),se=X(fe,2),le=se[0],_e=se[1],Ve=f__namespace.useMemo(function(){if(!r&&le.length===1){var de=le[0];if(de.value===null&&(de.label===null||de.label===void 0))return []}return le.map(function(oe){var Ce;return V(V({},oe),{},{label:(Ce=oe.label)!==null&&Ce!==void 0?Ce:oe.value})})},[r,le]),Ze=f__namespace.useMemo(function(){return new Set(le.map(function(de){return de.value}))},[le]);f__namespace.useEffect(function(){if(r==="combobox"){var de,oe=(de=le[0])===null||de===void 0?void 0:de.value;Y(PN(oe)?String(oe):"");}},[le]);var $e=jg(function(de,oe){var Ce,Ee=oe??de;return Ce={},q(Ce,B.value,de),q(Ce,B.label,Ee),Ce}),Le=f__namespace.useMemo(function(){if(r!=="tags")return ue;var de=ge(ue),oe=function(Ee){return re.has(Ee)};return ge(le).sort(function(Ce,Ee){return Ce.value<Ee.value?-1:1}).forEach(function(Ce){var Ee=Ce.value;oe(Ee)||de.push($e(Ee,Ce.label));}),de},[$e,ue,re,le,r]),tt=tA(Le,B,Z,W,w),Ke=f__namespace.useMemo(function(){return r!=="tags"||!Z||tt.some(function(de){return de[w||"value"]===Z})?tt:[$e(Z)].concat(ge(tt))},[$e,w,r,tt,Z]),Xe=f__namespace.useMemo(function(){return y?ge(Ke).sort(function(de,oe){return y(de,oe)}):Ke},[Ke,y]),De=f__namespace.useMemo(function(){return qN(Xe,{fieldNames:B,childrenAsData:k})},[Xe,B,k]),Fe=function(oe){var Ce=ie(oe);if(he(Ce),D&&(Ce.length!==le.length||Ce.some(function(ft,yt){var Xt;return ((Xt=le[yt])===null||Xt===void 0?void 0:Xt.value)!==(ft==null?void 0:ft.value)}))){var Ee=N?Ce:Ce.map(function(ft){return ft.value}),Ye=Ce.map(function(ft){return Rf(_e(ft.value))});D(H?Ee:Ee[0],H?Ye:Ye[0]);}},ut=f__namespace.useState(null),st=X(ut,2),be=st[0],xe=st[1],qe=f__namespace.useState(0),Be=X(qe,2),dt=Be[0],Oe=Be[1],Pe=$!==void 0?$:r!=="combobox",ze=f__namespace.useCallback(function(de,oe){var Ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ee=Ce.source,Ye=Ee===void 0?"keyboard":Ee;Oe(oe),a&&r==="combobox"&&de!==null&&Ye==="keyboard"&&xe(String(de));},[a,r]),Re=function(oe,Ce,Ee){var Ye=function(){var Jt,Te=_e(oe);return [N?{label:Te==null?void 0:Te[B.label],value:oe,key:(Jt=Te==null?void 0:Te.key)!==null&&Jt!==void 0?Jt:oe}:oe,Rf(Te)]};if(Ce&&h){var ft=Ye(),yt=X(ft,2),Xt=yt[0],Bt=yt[1];h(Xt,Bt);}else if(!Ce&&v&&Ee!=="clear"){var Ae=Ye(),We=X(Ae,2),Me=We[0],Ct=We[1];v(Me,Ct);}},Qe=jg(function(de,oe){var Ce,Ee=H?oe.selected:!0;Ee?Ce=H?[].concat(ge(le),[de]):[de]:Ce=le.filter(function(Ye){return Ye.value!==de}),Fe(Ce),Re(de,Ee),r==="combobox"?xe(""):(!Mf||m)&&(Y(""),xe(""));}),wt=function(oe,Ce){Fe(oe);var Ee=Ce.type,Ye=Ce.values;(Ee==="remove"||Ee==="clear")&&Ye.forEach(function(ft){Re(ft.value,!1,Ee);});},Lt=function(oe,Ce){if(Y(oe),xe(null),Ce.source==="submit"){var Ee=(oe||"").trim();if(Ee){var Ye=Array.from(new Set([].concat(ge(Ze),[Ee])));Fe(Ye),Re(Ee,!0),Y("");}return}Ce.source!=="blur"&&(r==="combobox"&&Fe(oe),d==null||d(oe));},Dt=function(oe){var Ce=oe;r!=="tags"&&(Ce=oe.map(function(Ye){var ft=ae.get(Ye);return ft==null?void 0:ft.value}).filter(function(Ye){return Ye!==void 0}));var Ee=Array.from(new Set([].concat(ge(Ze),ge(Ce))));Fe(Ee),Ee.forEach(function(Ye){Re(Ye,!0);});},Ne=f__namespace.useMemo(function(){var de=O!==!1&&p!==!1;return V(V({},ee),{},{flattenOptions:De,onActiveValue:ze,defaultActiveFirstOption:Pe,onSelect:Qe,menuItemSelectedIcon:P,rawValues:Ze,fieldNames:B,virtual:de,direction:E,listHeight:_,listItemHeight:I,childrenAsData:k})},[ee,De,ze,Pe,Qe,P,Ze,B,O,p,_,I,k]);return f__namespace.createElement(xy.Provider,{value:Ne},f__namespace.createElement(JN,pe({},F,{id:z,prefixCls:i,ref:t,omitDomProps:RA,mode:r,displayValues:Ve,onDisplayValuesChange:wt,direction:E,searchValue:Z,onSearch:Lt,autoClearSearchValue:m,onSearchSplit:Dt,dropdownMatchSelectWidth:p,OptionList:Ey,emptyOptions:!De.length,activeValue:be,activeDescendantId:"".concat(z,"_list_").concat(dt)})))}),th=TA;th.Option=eh;th.OptGroup=Jm;function co(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 lu=(e,t)=>t||e,NA=()=>{const[,e]=vi(),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"}))))},AA=NA,DA=()=>{const[,e]=vi(),{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}))))},kA=DA,LA=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}}}}},FA=sn("Empty",e=>{const{componentCls:t,controlHeightLG:n}=e,r=xt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n*2.5,emptyImgHeightMD:n,emptyImgHeightSM:n*.875});return [LA(r)]});var zA=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 Oy=f__namespace.createElement(AA,null),Py=f__namespace.createElement(kA,null),nh=e=>{var{className:t,rootClassName:n,prefixCls:r,image:o=Oy,description:i,children:a,imageStyle:s}=e,l=zA(e,["className","rootClassName","prefixCls","image","description","children","imageStyle"]);const{getPrefixCls:c,direction:d}=f__namespace.useContext(at),u=c("empty",r),[m,h]=FA(u),[v]=Dm("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,u,{[`${u}-normal`]:o===Py,[`${u}-rtl`]:d==="rtl"},t,n)},l),f__namespace.createElement("div",{className:`${u}-image`,style:s},b),g&&f__namespace.createElement("div",{className:`${u}-description`},g),a&&f__namespace.createElement("div",{className:`${u}-footer`},a)))};nh.PRESENTED_IMAGE_DEFAULT=Oy;nh.PRESENTED_IMAGE_SIMPLE=Py;const Na=nh,jA=e=>{const{componentName:t}=e,{getPrefixCls:n}=f.useContext(at),r=n("empty");switch(t){case"Table":case"List":return f.createElement(Na,{image:Na.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return f.createElement(Na,{image:Na.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return f.createElement(Na,null)}},HA=jA,BA=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"}},WA=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:Km},[`
            &${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:qm},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-bottomLeft`]:{animationName:Xm},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topLeft`]:{animationName:Ym},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},BA(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"},ti),{"> *":Object.assign({},ti)}),"&-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"}})},Mo(e,"slide-up"),Mo(e,"slide-down"),ac(e,"move-up"),ac(e,"move-down")]},VA=WA,Ei=2,Iy=e=>{let{controlHeightSM:t,controlHeight:n,lineWidth:r}=e;const o=(n-t)/2-r,i=Math.ceil(o/2);return [o,i]};function dd(e,t){const{componentCls:n,iconCls:r}=e,o=`${n}-selection-overflow`,i=e.controlHeightSM,[a]=Iy(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-Ei}px ${Ei*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:`${Ei}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:Ei,marginBottom:Ei,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:Ei*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 GA=e=>{const{componentCls:t}=e,n=xt(e,{controlHeight:e.controlHeightSM,controlHeightSM:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=xt(e,{fontSize:e.fontSizeLG,controlHeight:e.controlHeightLG,controlHeightSM:e.controlHeight,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),[,o]=Iy(e);return [dd(e),dd(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.controlPaddingHorizontalSM-e.lineWidth},[`${t}-selection-search`]:{marginInlineStart:o}}},dd(r,"lg")]},UA=GA;function fd(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 KA(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return [fd(e),fd(xt(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}}}},fd(xt(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const XA=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"}}}},md=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}})}}},qA=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"}}}},YA=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({},XA(e)),qA(e)),[`${t}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal"},ti),{"> *":Object.assign({lineHeight:"inherit"},ti)}),[`${t}-selection-placeholder`]:Object.assign(Object.assign({},ti),{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}}}},ZA=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%"}}},YA(e),KA(e),UA(e),VA(e),{[`${t}-rtl`]:{direction:"rtl"}},md(t,xt(e,{borderHoverColor:e.colorPrimaryHover,outlineColor:e.controlOutline})),md(`${t}-status-error`,xt(e,{borderHoverColor:e.colorErrorHover,outlineColor:e.colorErrorOutline}),!0),md(`${t}-status-warning`,xt(e,{borderHoverColor:e.colorWarningHover,outlineColor:e.colorWarningOutline}),!0),ru(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},QA=sn("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=xt(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1});return [ZA(r)]},e=>({zIndexPopup:e.zIndexPopupBase+50})),JA=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 eD(e,t){return e||JA(t)}function tD(e){return e??!0}var nD={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 rD=nD;var oD=function(t,n){return f__namespace.createElement(tr,pe({},t,{ref:n,icon:rD}))};const iD=f__namespace.forwardRef(oD);var aD={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 sD=aD;var lD=function(t,n){return f__namespace.createElement(tr,pe({},t,{ref:n,icon:sD}))};const _y=f__namespace.forwardRef(lD);var cD={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 uD=cD;var dD=function(t,n){return f__namespace.createElement(tr,pe({},t,{ref:n,icon:uD}))};const Ry=f__namespace.forwardRef(dD);function fD(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:i,multiple:a,hasFeedback:s,prefixCls:l,showArrow:c,feedbackIcon:d}=e;const u=n??f__namespace.createElement(jm,null),m=p=>f__namespace.createElement(f__namespace.Fragment,null,c!==!1&&p,s&&d);let h=null;if(t!==void 0)h=m(t);else if(i)h=m(f__namespace.createElement(Z0,{spin:!0}));else {const p=`${l}-suffix`;h=b=>{let{open:y,showSearch:w}=b;return m(y&&w?f__namespace.createElement(Ry,{className:p}):f__namespace.createElement(_y,{className:p}))};}let v=null;r!==void 0?v=r:a?v=f__namespace.createElement(iD,null):v=null;let g=null;return o!==void 0?g=o:g=f__namespace.createElement(Hm,null),{clearIcon:u,suffixIcon:h,itemIcon:v,removeIcon:g}}var mD=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 My="SECRET_COMBOBOX_MODE_DO_NOT_USE",hD=(e,t)=>{var n,{prefixCls:r,bordered:o=!0,className:i,rootClassName:a,getPopupContainer:s,popupClassName:l,dropdownClassName:c,listHeight:d=256,placement:u,listItemHeight:m=24,size:h,disabled:v,notFoundContent:g,status:p,showArrow:b,builtinPlacements:y,dropdownMatchSelectWidth:w,popupMatchSelectWidth:x,direction:C}=e,S=mD(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:T,popupMatchSelectWidth:_,popupOverflow:R,select:I}=f__namespace.useContext(at),M=P("select",r),A=P(),N=C??E,{compactSize:D,compactItemClassnames:F}=ba(M,N),[z,H]=QA(M),k=f__namespace.useMemo(()=>{const{mode:Ze}=S;if(Ze!=="combobox")return Ze===My?"combobox":Ze},[S.mode]),W=k==="multiple"||k==="tags",B=tD(b),K=(n=x??w)!==null&&n!==void 0?n:_,{status:te,hasFeedback:Z,isFormItemInput:Y,feedbackIcon:ee}=f__namespace.useContext(Gr),re=lu(te,p);let ae;g!==void 0?ae=g:k==="combobox"?ae=null:ae=(O==null?void 0:O("Select"))||f__namespace.createElement(HA,{componentName:"Select"});const{suffixIcon:ue,itemIcon:ie,removeIcon:me,clearIcon:ye}=fD(Object.assign(Object.assign({},S),{multiple:W,hasFeedback:Z,feedbackIcon:ee,showArrow:B,prefixCls:M})),ce=Mn(S,["suffixIcon","itemIcon"]),he=U(l||c,{[`${M}-dropdown-${N}`]:N==="rtl"},a,H),ne=Pr(Ze=>{var $e;return ($e=D??h)!==null&&$e!==void 0?$e:Ze}),fe=f__namespace.useContext(Ao),se=v??fe,le=U({[`${M}-lg`]:ne==="large",[`${M}-sm`]:ne==="small",[`${M}-rtl`]:N==="rtl",[`${M}-borderless`]:!o,[`${M}-in-form-item`]:Y},co(M,re,Z),F,i,a,H),_e=f__namespace.useMemo(()=>u!==void 0?u:N==="rtl"?"bottomRight":"bottomLeft",[u,N]),Ve=eD(y,R);return z(f__namespace.createElement(th,Object.assign({ref:t,virtual:T,showSearch:I==null?void 0:I.showSearch},ce,{dropdownMatchSelectWidth:K,builtinPlacements:Ve,transitionName:ou(A,ET(u),S.transitionName),listHeight:d,listItemHeight:m,mode:k,prefixCls:M,placement:_e,direction:N,inputIcon:ue,menuItemSelectedIcon:ie,removeIcon:me,clearIcon:ye,notFoundContent:ae,className:le,getPopupContainer:s||$,dropdownClassName:he,showArrow:Z||B,disabled:se})))},ya=f__namespace.forwardRef(hD),vD=Zm(ya);ya.SECRET_COMBOBOX_MODE_DO_NOT_USE=My;ya.Option=eh;ya.OptGroup=Jm;ya._InternalPanelDoNotUseOrYouWillBeFired=vD;const gD=ya,sa=e=>e?typeof e=="function"?e():e:null;var Oi={shiftX:64,adjustY:1},Pi={adjustX:1,shiftY:!0},ir=[0,0],pD={left:{points:["cr","cl"],overflow:Pi,offset:[-4,0],targetOffset:ir},right:{points:["cl","cr"],overflow:Pi,offset:[4,0],targetOffset:ir},top:{points:["bc","tc"],overflow:Oi,offset:[0,-4],targetOffset:ir},bottom:{points:["tc","bc"],overflow:Oi,offset:[0,4],targetOffset:ir},topLeft:{points:["bl","tl"],overflow:Oi,offset:[0,-4],targetOffset:ir},leftTop:{points:["tr","tl"],overflow:Pi,offset:[-4,0],targetOffset:ir},topRight:{points:["br","tr"],overflow:Oi,offset:[0,-4],targetOffset:ir},rightTop:{points:["tl","tr"],overflow:Pi,offset:[4,0],targetOffset:ir},bottomRight:{points:["tr","br"],overflow:Oi,offset:[0,4],targetOffset:ir},rightBottom:{points:["bl","br"],overflow:Pi,offset:[4,0],targetOffset:ir},bottomLeft:{points:["tl","bl"],overflow:Oi,offset:[0,4],targetOffset:ir},leftBottom:{points:["br","bl"],overflow:Pi,offset:[-4,0],targetOffset:ir}};function rh(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 bD=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],yD=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,d=t.overlayStyle,u=t.prefixCls,m=u===void 0?"rc-tooltip":u,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,T=t.overlayInnerStyle;t.arrowContent;var _=t.overlay,R=t.id,I=t.showArrow,M=I===void 0?!0:I,A=Ue(t,bD),N=f.useRef(null);f.useImperativeHandle(n,function(){return N.current});var D=V({},A);"visible"in t&&(D.popupVisible=t.visible);var F=function(){return f__namespace.createElement(rh,{key:"content",prefixCls:m,id:R,overlayInnerStyle:T},_)};return f__namespace.createElement(su,pe({popupClassName:r,prefixCls:m,popup:F,action:i,builtinPlacements:pD,popupPlacement:x,ref:N,popupAlign:S,getPopupContainer:E,onPopupVisibleChange:v,afterPopupVisibleChange:g,popupTransitionName:p,popupAnimation:b,popupMotion:y,defaultPopupVisible:O,autoDestroy:P,mouseLeaveDelay:c,popupStyle:d,mouseEnterDelay:s,arrow:M},D),h)};const CD=f.forwardRef(yD),Ty=8;function oh(e){const t=Ty,{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 ih(e,t){const{componentCls:n,sizePopupArrow:r,borderRadiusXS:o,borderRadiusOuter:i,boxShadowPopoverArrow:a}=e,{colorBg:s,contentRadius:l=e.borderRadiusLG,limitVerticalRadius:c,arrowDistance:d=0,arrowPlacement:u={left:!0,right:!0,top:!0,bottom:!0}}=t,{dropdownArrowOffsetVertical:m,dropdownArrowOffset:h}=oh({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"},t2(r,o,i,s,a)),{"&:before":{background:s}})]},bl(!!u.top,{[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:d,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:h}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:h}}})),bl(!!u.bottom,{[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:d,transform:"translateY(-100%)"},[`&-placement-bottom ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:h}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:h}}})),bl(!!u.left,{[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:d},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${n}-arrow`]:{top:m},[`&-placement-leftBottom ${n}-arrow`]:{bottom:m}})),bl(!!u.right,{[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:d},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${n}-arrow`]:{top:m},[`&-placement-rightBottom ${n}-arrow`]:{bottom:m}}))}}function SD(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 Wg={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"]}},wD={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"]}},$D=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Ny(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,s=t/2,l={};return Object.keys(Wg).forEach(c=>{const d=r&&wD[c]||Wg[c],u=Object.assign(Object.assign({},d),{offset:[0,0]});switch(l[c]=u,$D.has(c)&&(u.autoArrow=!1),c){case"top":case"topLeft":case"topRight":u.offset[1]=-s-o;break;case"bottom":case"bottomLeft":case"bottomRight":u.offset[1]=s+o;break;case"left":case"leftTop":case"leftBottom":u.offset[0]=-s-o;break;case"right":case"rightTop":case"rightBottom":u.offset[0]=s+o;break}const m=oh({contentRadius:i,limitVerticalRadius:!0});if(r)switch(c){case"topLeft":case"bottomLeft":u.offset[0]=-m.dropdownArrowOffset-s;break;case"topRight":case"bottomRight":u.offset[0]=m.dropdownArrowOffset+s;break;case"leftTop":case"rightTop":u.offset[1]=-m.dropdownArrowOffset-s;break;case"leftBottom":case"rightBottom":u.offset[1]=m.dropdownArrowOffset+s;break}u.overflow=SD(c,m,t,n),a&&(u.htmlRegion="visibleFirst");}),l}const xD=e=>{const t=e!=null&&e.algorithm?ec(e.algorithm):ec(Fs),n=Object.assign(Object.assign({},Ls),e==null?void 0:e.token);return d0(n,{override:e==null?void 0:e.token},t,I0)},ED=xD;function OD(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??Fs(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),OD(t??e)),P0(r)),{controlHeight:o}),E0(Object.assign(Object.assign({},n),{controlHeight:o})))},ID=PD,Co=(e,t)=>new Zt(e).setAlpha(t).toRgbString(),Ii=(e,t)=>new Zt(e).lighten(t).toHexString(),_D=e=>{const t=mo(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]}},RD=(e,t)=>{const n=e||"#000",r=t||"#fff";return {colorBgBase:n,colorTextBase:r,colorText:Co(r,.85),colorTextSecondary:Co(r,.65),colorTextTertiary:Co(r,.45),colorTextQuaternary:Co(r,.25),colorFill:Co(r,.18),colorFillSecondary:Co(r,.12),colorFillTertiary:Co(r,.08),colorFillQuaternary:Co(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)}},MD=(e,t)=>{const n=Object.keys(km).map(o=>{const i=mo(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??Fs(e);return Object.assign(Object.assign(Object.assign({},r),n),O0(e,{generateColorPalettes:_D,generateNeutralColorPalettes:RD}))},TD=MD;function ND(){const[e,t,n]=vi();return {theme:e,token:t,hashId:n}}const la={defaultConfig:nc,defaultSeed:nc.token,useToken:ND,defaultAlgorithm:Fs,darkAlgorithm:TD,compactAlgorithm:ID,getDesignToken:ED},AD=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:s,boxShadowSecondary:l,paddingSM:c,paddingXS:d,tooltipRadiusOuter:u}=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 ${d}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,Ty)}},[`${t}-content`]:{position:"relative"}}),M0(e,(m,h)=>{let{darkColor:v}=h;return {[`&${t}-${m}`]:{[`${t}-inner`]:{backgroundColor:v},[`${t}-arrow`]:{"--antd-arrow-background-color":v}}}})),{"&-rtl":{direction:"rtl"}})},ih(xt(e,{borderRadiusOuter:u}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:i,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},Ay=(e,t)=>sn("Tooltip",r=>{if(t===!1)return [];const{borderRadius:o,colorTextLightSolid:i,colorBgDefault:a,borderRadiusOuter:s}=r,l=xt(r,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:a,tooltipRadiusOuter:s>4?4:s});return [AD(l),iu(r,"zoom-big-fast")]},r=>{let{zIndexPopupBase:o,colorBgSpotlight:i}=r;return {zIndexPopup:o+70,colorBgDefault:i}},{resetStyle:!1})(e),DD=ps.map(e=>`${e}-inverse`),kD=["success","processing","error","default","warning"];function Dy(e){return (arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(ge(DD),ge(ps)).includes(e):ps.includes(e)}function LD(e){return kD.includes(e)}function ky(e,t){const n=Dy(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 FD(e){const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:s}=f__namespace.useContext(at),l=s("tooltip",t),[c,d]=Ay(l,!0),u=ky(l,i),m=Object.assign(Object.assign({},a),u.overlayStyle),h=u.arrowStyle;return c(f__namespace.createElement("div",{className:U(d,l,`${l}-pure`,`${l}-placement-${r}`,n,u.className),style:h},f__namespace.createElement("div",{className:`${l}-arrow`}),f__namespace.createElement(rh,Object.assign({},e,{className:d,prefixCls:l,overlayInnerStyle:m}),o)))}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{useToken:jD}=la,HD=(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 BD(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}=HD(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 Ly=f__namespace.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:i,getTooltipContainer:a,overlayClassName:s,color:l,overlayInnerStyle:c,children:d,afterOpenChange:u,afterVisibleChange:m,destroyTooltipOnHide:h,arrow:v=!0,title:g,overlay:p,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:w=!0}=e,x=!!v,{token:C}=jD(),{getPopupContainer:S,getPrefixCls:$,direction:P}=f__namespace.useContext(at),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[T,_]=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,I=ne=>{var fe,se;_(R?!1:ne),R||((fe=e.onOpenChange)===null||fe===void 0||fe.call(e,ne),(se=e.onVisibleChange)===null||se===void 0||se.call(e,ne));},M=f__namespace.useMemo(()=>{var ne,fe;let se=y;return typeof v=="object"&&(se=(fe=(ne=v.pointAtCenter)!==null&&ne!==void 0?ne:v.arrowPointAtCenter)!==null&&fe!==void 0?fe:y),b||Ny({arrowPointAtCenter:se,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]),N=f__namespace.createElement(aa,null,typeof A=="function"?A():A),{getPopupContainer:D,placement:F="top",mouseEnterDelay:z=.1,mouseLeaveDelay:H=.1,overlayStyle:k,rootClassName:W}=e,B=zD(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),K=$("tooltip",o),te=$(),Z=e["data-popover-inject"];let Y=T;!("open"in e)&&!("visible"in e)&&R&&(Y=!1);const ee=BD(li(d)&&!Y0(d)?d:f__namespace.createElement("span",null,d),K),re=ee.props,ae=!re.className||typeof re.className=="string"?U(re.className,{[i||`${K}-open`]:!0}):re.className,[ue,ie]=Ay(K,!Z),me=ky(K,l),ye=Object.assign(Object.assign({},c),me.overlayStyle),ce=me.arrowStyle,he=U(s,{[`${K}-rtl`]:P==="rtl"},me.className,W,ie);return ue(f__namespace.createElement(CD,Object.assign({},B,{showArrow:x,placement:F,mouseEnterDelay:z,mouseLeaveDelay:H,prefixCls:K,overlayClassName:he,overlayStyle:Object.assign(Object.assign({},ce),k),getTooltipContainer:D||a||S,ref:O,builtinPlacements:M,overlay:N,visible:Y,onVisibleChange:I,afterVisibleChange:u??m,overlayInnerStyle:ye,arrowContent:f__namespace.createElement("span",{className:`${K}-arrow-content`}),motion:{motionName:ou(te,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!h}),Y?Tn(ee,{className:ae}):ee))});Ly._InternalPanelDoNotUseOrYouWillBeFired=FD;const Bs=Ly,WD=e=>{const{componentCls:t,popoverColor:n,minWidth:r,fontWeightStrong:o,popoverPadding:i,boxShadowSecondary:a,colorTextHeading:s,borderRadiusLG:l,zIndexPopup:c,marginXS:d,colorBgElevated:u,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":u,"&-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:d,color:s,fontWeight:o},[`${t}-inner-content`]:{color:n}})},ih(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},VD=e=>{const{componentCls:t}=e;return {[t]:ps.map(n=>{const r=e[`${n}6`];return {[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},GD=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorSplit:o,paddingSM:i,controlHeight:a,fontSize:s,lineHeight:l,padding:c}=e,d=a-Math.round(s*l),u=d/2,m=d/2-n,h=c;return {[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${u}px ${h}px ${m}px`,borderBottom:`${n}px ${r} ${o}`},[`${t}-inner-content`]:{padding:`${i}px ${h}px`}}}},Fy=sn("Popover",e=>{const{colorBgElevated:t,colorText:n,wireframe:r}=e,o=xt(e,{popoverPadding:12,popoverBg:t,popoverColor:n});return [WD(o),VD(o),r&&GD(o),iu(o,"zoom-big")]},e=>({width:177,minWidth:177,zIndexPopup:e.zIndexPopupBase+30}),{deprecatedTokens:[["width","minWidth"]]});var UD=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 KD=(e,t,n)=>{if(!(!t&&!n))return f__namespace.createElement(f__namespace.Fragment,null,t&&f__namespace.createElement("div",{className:`${e}-title`},sa(t)),f__namespace.createElement("div",{className:`${e}-inner-content`},sa(n)))};function XD(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(rh,Object.assign({},e,{className:t,prefixCls:n}),l||KD(n,a,s)))}function zy(e){const{prefixCls:t}=e,n=UD(e,["prefixCls"]),{getPrefixCls:r}=f__namespace.useContext(at),o=r("popover",t),[i,a]=Fy(o);return i(f__namespace.createElement(XD,Object.assign({},n,{prefixCls:o,hashId:a})))}var qD=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 YD=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`},sa(t)),f__namespace.createElement("div",{className:`${r}-inner-content`},sa(n)))},jy=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:d={}}=e,u=qD(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:m}=f__namespace.useContext(at),h=m("popover",n),[v,g]=Fy(h),p=m(),b=U(i,g);return v(f__namespace.createElement(Bs,Object.assign({placement:a,trigger:s,mouseEnterDelay:l,mouseLeaveDelay:c,overlayStyle:d},u,{prefixCls:h,overlayClassName:b,ref:t,overlay:r||o?f__namespace.createElement(YD,{prefixCls:h,title:r,content:o}):null,transitionName:ou(p,"zoom-big",u.transitionName),"data-popover-inject":!0})))});jy._InternalPanelDoNotUseOrYouWillBeFired=zy;const Hy=jy;var ZD={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 QD=ZD;var JD=function(t,n){return f__namespace.createElement(tr,pe({},t,{ref:n,icon:QD}))};const By=f__namespace.forwardRef(JD);var ek=J.ESC,tk=J.TAB;function nk(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 u,m;(u=n.current)===null||u===void 0||(m=u.focus)===null||m===void 0||m.call(u),r==null||r(!1);}},l=function(){var u;return (u=i.current)!==null&&u!==void 0&&u.focus?(i.current.focus(),a.current=!0,!0):!1},c=function(u){switch(u.keyCode){case ek:s();break;case tk:{var m=!1;a.current||(m=l()),m?u.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 rk=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:hi(i)?a:void 0}))}),_i={adjustX:1,adjustY:1},Ri=[0,0],ok={topLeft:{points:["bl","tl"],overflow:_i,offset:[0,-4],targetOffset:Ri},top:{points:["bc","tc"],overflow:_i,offset:[0,-4],targetOffset:Ri},topRight:{points:["br","tr"],overflow:_i,offset:[0,-4],targetOffset:Ri},bottomLeft:{points:["tl","bl"],overflow:_i,offset:[0,4],targetOffset:Ri},bottom:{points:["tc","bc"],overflow:_i,offset:[0,4],targetOffset:Ri},bottomRight:{points:["tr","br"],overflow:_i,offset:[0,4],targetOffset:Ri}},ik=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function ak(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,d=e.placement,u=d===void 0?"bottomLeft":d,m=e.placements,h=m===void 0?ok: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,ik),T=f.useState(),_=X(T,2),R=_[0],I=_[1],M="visible"in e?w:R,A=f.useRef(null),N=f.useRef(null),D=f.useRef(null);f.useImperativeHandle(t,function(){return A.current});var F=function(Y){I(Y),O==null||O(Y);};nk({visible:M,triggerRef:D,onVisibleChange:F,autoFocus:S,overlayRef:N});var z=function(Y){var ee=e.onOverlayClick;I(!1),ee&&ee(Y);},H=function(){return f.createElement(rk,{ref:N,overlay:$,prefixCls:a,arrow:o})},k=function(){return typeof $=="function"?H:H()},W=function(){var Y=e.minOverlayWidthMatchTrigger,ee=e.alignPoint;return "minOverlayWidthMatchTrigger"in e?Y:!ee},B=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&&B()),ref:hi(P)?Fn(D,P.ref):void 0}),te=p;return !te&&C.indexOf("contextMenu")!==-1&&(te=["click"]),f.createElement(su,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:u,popupAlign:c,popupTransitionName:s,popupAnimation:l,popupVisible:M,stretch:W()?"minWidth":"",popup:k(),onPopupVisibleChange:F,onPopupClick:z,getPopupContainer:v}),K)}const Wy=f.forwardRef(ak);var Vy=f__namespace.createContext(null);function ah(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function Gy(e){var t=f__namespace.useContext(Vy);return ah(t,e)}var sk=["children","locked"],Or=f__namespace.createContext(null);function lk(e,t){var n=V({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o);}),n}function Ss(e){var t=e.children,n=e.locked,r=Ue(e,sk),o=f__namespace.useContext(Or),i=Ns(function(){return lk(o,r)},[o,r],function(a,s){return !n&&(a[0]!==s[0]||!Yc(a[1],s[1],!0))});return f__namespace.createElement(Or.Provider,{value:i},t)}var ck=[],Uy=f__namespace.createContext(null);function cu(){return f__namespace.useContext(Uy)}var Ky=f__namespace.createContext(ck);function Ca(e){var t=f__namespace.useContext(Ky);return f__namespace.useMemo(function(){return e!==void 0?[].concat(ge(t),[e]):t},[t,e])}var Xy=f__namespace.createContext(null),sh=f__namespace.createContext({});function Vg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Bm(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 uk(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=ge(e.querySelectorAll("*")).filter(function(r){return Vg(r,t)});return Vg(e,t)&&n.unshift(e),n}var Tf=J.LEFT,Nf=J.RIGHT,Af=J.UP,Il=J.DOWN,_l=J.ENTER,qy=J.ESC,Aa=J.HOME,Da=J.END,Gg=[Af,Il,Tf,Nf];function dk(e,t,n,r){var o,i,a,s,l="prev",c="next",d="children",u="parent";if(e==="inline"&&r===_l)return {inlineTrigger:!0};var m=(o={},q(o,Af,l),q(o,Il,c),o),h=(i={},q(i,Tf,n?c:l),q(i,Nf,n?l:c),q(i,Il,d),q(i,_l,d),i),v=(a={},q(a,Af,l),q(a,Il,c),q(a,_l,d),q(a,qy,u),q(a,Tf,n?d:u),q(a,Nf,n?u:d),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 u:return {offset:-1,sibling:!1};case d:return {offset:1,sibling:!1};default:return null}}function fk(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement;}return null}function mk(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement;}return null}function Yy(e,t){var n=uk(e,!0);return n.filter(function(r){return t.has(r)})}function Ug(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=Yy(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 hk(e,t,n,r,o,i,a,s,l,c){var d=f__namespace.useRef(),u=f__namespace.useRef();u.current=t;var m=function(){Nt.cancel(d.current);};return f__namespace.useEffect(function(){return function(){m();}},[]),function(h){var v=h.which;if([].concat(Gg,[_l,qy,Aa,Da]).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 N=document.querySelector("[data-menu-id='".concat(ah(r,A),"']"));N&&(g.add(N),b.set(N,A),p.set(A,N));}),g};y();var w=p.get(t),x=mk(w,g),C=b.get(x),S=dk(e,a(C,!0).length===1,n,v);if(!S&&v!==Aa&&v!==Da)return;(Gg.includes(v)||[Aa,Da].includes(v))&&h.preventDefault();var $=function(M){if(M){var A=M,N=M.querySelector("a");N!=null&&N.getAttribute("href")&&(A=N);var D=b.get(M);s(D),m(),d.current=Nt(function(){u.current===D&&A.focus();});}};if([Aa,Da].includes(v)||S.sibling||!x){var P;!x||e==="inline"?P=o.current:P=fk(x);var O,E=Yy(P,g);v===Aa?O=E[0]:v===Da?O=E[E.length-1]:O=Ug(P,g,x,S.offset),$(O);}else if(S.inlineTrigger)l(C);else if(S.offset>0)l(C,!0),m(),d.current=Nt(function(){y();var I=x.getAttribute("aria-controls"),M=document.getElementById(I),A=Ug(M,g);$(A);},5);else if(S.offset<0){var T=a(C,!0),_=T[T.length-2],R=p.get(_);l(_,!1),$(R);}}c==null||c(h);}}function vk(e){Promise.resolve().then(e);}var lh="__RC_UTIL_PATH_SPLIT__",Kg=function(t){return t.join(lh)},gk=function(t){return t.split(lh)},Df="rc-menu-more";function pk(){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),d=f.useRef(!1),u=function(){d.current||n({});},m=f.useCallback(function(w,x){var C=Kg(x);o.current.set(C,w),r.current.set(w,C),c.current+=1;var S=c.current;vk(function(){S===c.current&&u();});},[]),h=f.useCallback(function(w,x){var C=Kg(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=gk(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(lh),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(){d.current=!0;}},[]),{registerPath:m,unregisterPath:h,refreshOverflowKeys:v,isSubPathKey:p,getKeyPath:g,getKeys:b,getSubPathKeys:y}}function Ba(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 bk=Math.random().toFixed(5).toString().slice(2),Xg=0;function yk(e){var t=Qt(e,{value:e}),n=X(t,2),r=n[0],o=n[1];return f__namespace.useEffect(function(){Xg+=1;var i="".concat(bk,"-").concat(Xg);o("rc-menu-uuid-".concat(i));},[]),r}function Zy(e,t,n,r){var o=f__namespace.useContext(Or),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 Qy(e){var t=f__namespace.useContext(Or),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 Jy(e){var t=e.icon,n=e.props,r=e.children,o;return typeof t=="function"?o=f__namespace.createElement(t,V({},n)):o=t,o||r||null}var Ck=["item"];function cc(e){var t=e.item,n=Ue(e,Ck);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 Sk=["title","attribute","elementRef"],wk=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],$k=["active"],xk=function(e){fi(n,e);var t=mi(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,Sk),c=Mn(l,["eventKey","popupClassName","popupOffset","onTitleClick"]);return mn(!a,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),f__namespace.createElement(Hr.Item,pe({},a,{title:typeof i=="string"?i:void 0},c,{ref:s}))}}]),n}(f__namespace.Component),Ek=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,d=e.onMouseEnter,u=e.onMouseLeave,m=e.onClick,h=e.onKeyDown,v=e.onFocus,g=Ue(e,wk),p=Gy(i),b=f__namespace.useContext(Or),y=b.prefixCls,w=b.onItemClick,x=b.disabled,C=b.overflowDisabled,S=b.itemIcon,$=b.selectedKeys,P=b.onActive,O=f__namespace.useContext(sh),E=O._internalRenderMenuItem,T="".concat(y,"-item"),_=f__namespace.useRef(),R=f__namespace.useRef(),I=x||a,M=As(t,R),A=Ca(i),N=function(re){return {key:i,keyPath:ge(A).reverse(),item:_.current,domEvent:re}},D=s||S,F=Zy(i,I,d,u),z=F.active,H=Ue(F,$k),k=$.includes(i),W=Qy(A.length),B=function(re){if(!I){var ae=N(re);m==null||m(cc(ae)),w(ae);}},K=function(re){if(h==null||h(re),re.which===J.ENTER){var ae=N(re);m==null||m(cc(ae)),w(ae);}},te=function(re){P(i),v==null||v(re);},Z={};e.role==="option"&&(Z["aria-selected"]=k);var Y=f__namespace.createElement(xk,pe({ref:_,elementRef:M,role:c===null?"none":c||"menuitem",tabIndex:a?null:-1,"data-menu-id":C&&p?null:p},g,H,Z,{component:"li","aria-disabled":a,style:V(V({},W),r),className:U(T,(n={},q(n,"".concat(T,"-active"),z),q(n,"".concat(T,"-selected"),k),q(n,"".concat(T,"-disabled"),I),n),o),onClick:B,onKeyDown:K,onFocus:te}),l,f__namespace.createElement(Jy,{props:V(V({},e),{},{isSelected:k}),icon:D}));return E&&(Y=E(Y,e,{selected:k})),Y});function Ok(e,t){var n=e.eventKey,r=cu(),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(Ek,pe({},e,{ref:t}))}const Ws=f__namespace.forwardRef(Ok);var Pk=["className","children"],Ik=function(t,n){var r=t.className,o=t.children,i=Ue(t,Pk),a=f__namespace.useContext(Or),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)},ch=f__namespace.forwardRef(Ik);ch.displayName="SubMenuList";var _k=["label","children","key","type"];function uh(e,t){return dr(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&&ot(t)==="object"){var r=t,o=r.label,i=r.children,a=r.key,s=r.type,l=Ue(r,_k),c=a??"tmp-".concat(n);return i||s==="group"?s==="group"?f__namespace.createElement(du,pe({key:c},l,{title:o}),kf(i)):f__namespace.createElement(uu,pe({key:c},l,{title:o}),kf(i)):s==="divider"?f__namespace.createElement(dh,pe({key:c},l)):f__namespace.createElement(Ws,pe({key:c},l),o)}return null}).filter(function(t){return t})}function Rk(e,t,n){var r=e;return t&&(r=kf(t)),uh(r,n)}var On={adjustX:1,adjustY:1},Mk={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}},Tk={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 eC(e,t,n){if(t)return t;if(n)return n[e]||n.other}var Nk={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Ak(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,d=f__namespace.useContext(Or),u=d.getPopupContainer,m=d.rtl,h=d.subMenuOpenDelay,v=d.subMenuCloseDelay,g=d.builtinPlacements,p=d.triggerSubMenuAction,b=d.forceSubMenuRender,y=d.rootClassName,w=d.motion,x=d.defaultMotions,C=f__namespace.useState(!1),S=X(C,2),$=S[0],P=S[1],O=V(m?V({},Tk):V({},Mk),g),E=Nk[l],T=eC(l,w,x),_=f__namespace.useRef(T);l!=="inline"&&(_.current=T);var R=V(V({},_.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),I=f__namespace.useRef();return f__namespace.useEffect(function(){return I.current=Nt(function(){P(n);}),function(){Nt.cancel(I.current);}},[n]),f__namespace.createElement(su,{prefixCls:t,popupClassName:U("".concat(t,"-popup"),q({},"".concat(t,"-rtl"),m),i,y),stretch:l==="horizontal"?"minWidth":null,getPopupContainer:u,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 Dk(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,i="inline",a=f__namespace.useContext(Or),s=a.prefixCls,l=a.forceSubMenuRender,c=a.motion,d=a.defaultMotions,u=a.mode,m=f__namespace.useRef(!1);m.current=u===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);},[u]);var y=V({},eC(i,c,d));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(Ss,{mode:i,locked:!m.current},f__namespace.createElement(Do,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(ch,{id:t,className:C,style:S},o)}))}var kk=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Lk=["active"],Fk=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,d=t.itemIcon,u=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,kk),C=Gy(a),S=f__namespace.useContext(Or),$=S.prefixCls,P=S.mode,O=S.openKeys,E=S.disabled,T=S.overflowDisabled,_=S.activeKey,R=S.selectedKeys,I=S.itemIcon,M=S.expandIcon,A=S.onItemClick,N=S.onOpenChange,D=S.onActive,F=f__namespace.useContext(sh),z=F._internalRenderSubMenuItem,H=f__namespace.useContext(Xy),k=H.isSubPathKey,W=Ca(),B="".concat($,"-submenu"),K=E||s,te=f__namespace.useRef(),Z=f__namespace.useRef(),Y=d||I,ee=u||M,re=O.includes(a),ae=!T&&re,ue=k(R,a),ie=Zy(a,K,y,w),me=ie.active,ye=Ue(ie,Lk),ce=f__namespace.useState(!1),he=X(ce,2),ne=he[0],fe=he[1],se=function(xe){K||fe(xe);},le=function(xe){se(!0),g==null||g({key:a,domEvent:xe});},_e=function(xe){se(!1),p==null||p({key:a,domEvent:xe});},Ve=f__namespace.useMemo(function(){return me||(P!=="inline"?ne||k([_],a):!1)},[P,me,_,ne,a,k]),Ze=Qy(W.length),$e=function(xe){K||(b==null||b({key:a,domEvent:xe}),P==="inline"&&N(a,!re));},Le=Ba(function(be){v==null||v(cc(be)),A(be);}),tt=function(xe){P!=="inline"&&N(a,xe);},Ke=function(){D(a);},Xe=C&&"".concat(C,"-popup"),De=f__namespace.createElement("div",pe({role:"menuitem",style:Ze,className:"".concat(B,"-title"),tabIndex:K?null:-1,ref:te,title:typeof i=="string"?i:null,"data-menu-id":T&&C?null:C,"aria-expanded":ae,"aria-haspopup":!0,"aria-controls":Xe,"aria-disabled":K,onClick:$e,onFocus:Ke},ye),i,f__namespace.createElement(Jy,{icon:P!=="horizontal"?ee:null,props:V(V({},t),{},{isOpen:ae,isSubMenu:!0})},f__namespace.createElement("i",{className:"".concat(B,"-arrow")}))),Fe=f__namespace.useRef(P);if(P!=="inline"&&W.length>1?Fe.current="vertical":Fe.current=P,!T){var ut=Fe.current;De=f__namespace.createElement(Ak,{mode:ut,prefixCls:B,visible:!l&&ae&&P!=="inline",popupClassName:m,popupOffset:h,popup:f__namespace.createElement(Ss,{mode:ut==="horizontal"?"vertical":ut},f__namespace.createElement(ch,{id:Xe,ref:Z},c)),disabled:K,onVisibleChange:tt},De);}var st=f__namespace.createElement(Hr.Item,pe({role:"none"},x,{component:"li",style:r,className:U(B,"".concat(B,"-").concat(P),o,(n={},q(n,"".concat(B,"-open"),ae),q(n,"".concat(B,"-active"),Ve),q(n,"".concat(B,"-selected"),ue),q(n,"".concat(B,"-disabled"),K),n)),onMouseEnter:le,onMouseLeave:_e}),De,!T&&f__namespace.createElement(Dk,{id:Xe,open:ae,keyPath:W},c));return z&&(st=z(st,t,{selected:ue,active:Ve,open:ae,disabled:K})),f__namespace.createElement(Ss,{onItemClick:Le,mode:P==="horizontal"?"vertical":P,itemIcon:Y,expandIcon:ee},st)};function uu(e){var t=e.eventKey,n=e.children,r=Ca(t),o=uh(n,r),i=cu();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(Fk,e,o),f__namespace.createElement(Ky.Provider,{value:r},a)}var zk=["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"],Mi=[],jk=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,d=o.tabIndex,u=d===void 0?0:d,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,T=o.openKeys,_=o.activeKey,R=o.defaultActiveFirst,I=o.selectable,M=I===void 0?!0:I,A=o.multiple,N=A===void 0?!1:A,D=o.defaultSelectedKeys,F=o.selectedKeys,z=o.onSelect,H=o.onDeselect,k=o.inlineIndent,W=k===void 0?24:k,B=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,ue=ae===void 0?"...":ae,ie=o.overflowedIndicatorPopupClassName,me=o.getPopupContainer,ye=o.onClick,ce=o.onOpenChange,he=o.onKeyDown;o.openAnimation,o.openTransitionName;var ne=o._internalRenderMenuItem,fe=o._internalRenderSubMenuItem,se=Ue(o,zk),le=f__namespace.useMemo(function(){return Rk(h,m,Mi)},[h,m]),_e=f__namespace.useState(!1),Ve=X(_e,2),Ze=Ve[0],$e=Ve[1],Le=f__namespace.useRef(),tt=yk(g),Ke=v==="rtl",Xe=Qt(E,{value:T,postState:function(we){return we||Mi}}),De=X(Xe,2),Fe=De[0],ut=De[1],st=function(we){var Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function nt(){ut(we),ce==null||ce(we);}Se?jp.flushSync(nt):nt();},be=f__namespace.useState(Fe),xe=X(be,2),qe=xe[0],Be=xe[1],dt=f__namespace.useRef(!1),Oe=f__namespace.useMemo(function(){return (b==="inline"||b==="vertical")&&y?["vertical",y]:[b,!1]},[b,y]),Pe=X(Oe,2),ze=Pe[0],Re=Pe[1],Qe=ze==="inline",wt=f__namespace.useState(ze),Lt=X(wt,2),Dt=Lt[0],Ne=Lt[1],de=f__namespace.useState(Re),oe=X(de,2),Ce=oe[0],Ee=oe[1];f__namespace.useEffect(function(){Ne(ze),Ee(Re),dt.current&&(Qe?ut(qe):st(Mi));},[ze,Re]);var Ye=f__namespace.useState(0),ft=X(Ye,2),yt=ft[0],Xt=ft[1],Bt=yt>=le.length-1||Dt!=="horizontal"||x;f__namespace.useEffect(function(){Qe&&Be(Fe);},[Fe]),f__namespace.useEffect(function(){return dt.current=!0,function(){dt.current=!1;}},[]);var Ae=pk(),We=Ae.registerPath,Me=Ae.unregisterPath,Ct=Ae.refreshOverflowKeys,gt=Ae.isSubPathKey,Jt=Ae.getKeyPath,Te=Ae.getKeys,He=Ae.getSubPathKeys,lt=f__namespace.useMemo(function(){return {registerPath:We,unregisterPath:Me}},[We,Me]),Et=f__namespace.useMemo(function(){return {isSubPathKey:gt}},[gt]);f__namespace.useEffect(function(){Ct(Bt?Mi:le.slice(yt+1).map(function(It){return It.key}));},[yt,Bt]);var qt=Qt(_||R&&((n=le[0])===null||n===void 0?void 0:n.key),{value:_}),zt=X(qt,2),wn=zt[0],Nn=zt[1],fr=Ba(function(It){Nn(It);}),Kr=Ba(function(){Nn(void 0);});f.useImperativeHandle(t,function(){return {list:Le.current,focus:function(we){var Se,nt=wn??((Se=le.find(function(Yt){return !Yt.props.disabled}))===null||Se===void 0?void 0:Se.key);if(nt){var St,pt,_t;(St=Le.current)===null||St===void 0||(pt=St.querySelector("li[data-menu-id='".concat(ah(tt,nt),"']")))===null||pt===void 0||(_t=pt.focus)===null||_t===void 0||_t.call(pt,we);}}}});var Ir=Qt(D||[],{value:F,postState:function(we){return Array.isArray(we)?we:we==null?Mi:[we]}}),nr=X(Ir,2),_n=nr[0],Xr=nr[1],ko=function(we){if(M){var Se=we.key,nt=_n.includes(Se),St;N?nt?St=_n.filter(function(_t){return _t!==Se}):St=[].concat(ge(_n),[Se]):St=[Se],Xr(St);var pt=V(V({},we),{},{selectedKeys:St});nt?H==null||H(pt):z==null||z(pt);}!N&&Fe.length&&Dt!=="inline"&&st(Mi);},qr=Ba(function(It){ye==null||ye(cc(It)),ko(It);}),Yr=Ba(function(It,we){var Se=Fe.filter(function(St){return St!==It});if(we)Se.push(It);else if(Dt!=="inline"){var nt=He(It);Se=Se.filter(function(St){return !nt.has(St)});}Yc(Fe,Se,!0)||st(Se,!0);}),Zr=function(we,Se){var nt=Se??!Fe.includes(we);Yr(we,nt);},Lo=hk(Dt,wn,Ke,tt,Le,Te,Jt,Nn,Zr,he);f__namespace.useEffect(function(){$e(!0);},[]);var Fo=f__namespace.useMemo(function(){return {_internalRenderMenuItem:ne,_internalRenderSubMenuItem:fe}},[ne,fe]),zo=Dt!=="horizontal"||x?le:le.map(function(It,we){return f__namespace.createElement(Ss,{key:It.key,overflowDisabled:we>yt},It)}),Qr=f__namespace.createElement(Hr,pe({id:g,ref:Le,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:Ws,className:U(a,"".concat(a,"-root"),"".concat(a,"-").concat(Dt),c,(r={},q(r,"".concat(a,"-inline-collapsed"),Ce),q(r,"".concat(a,"-rtl"),Ke),r),s),dir:v,style:l,role:"menu",tabIndex:u,data:zo,renderRawItem:function(we){return we},renderRawRest:function(we){var Se=we.length,nt=Se?le.slice(-Se):null;return f__namespace.createElement(uu,{eventKey:Df,title:ue,disabled:Bt,internalPopupClose:Se===0,popupClassName:ie},nt)},maxCount:Dt!=="horizontal"||x?Hr.INVALIDATE:Hr.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(we){Xt(we);},onKeyDown:Lo},se));return f__namespace.createElement(sh.Provider,{value:Fo},f__namespace.createElement(Vy.Provider,{value:tt},f__namespace.createElement(Ss,{prefixCls:a,rootClassName:s,mode:Dt,openKeys:Fe,rtl:Ke,disabled:w,motion:Ze?B:null,defaultMotions:Ze?K:null,activeKey:wn,onActive:fr,onInactive:Kr,selectedKeys:_n,inlineIndent:W,subMenuOpenDelay:S,subMenuCloseDelay:P,forceSubMenuRender:O,builtinPlacements:Y,triggerSubMenuAction:Z,getPopupContainer:me,itemIcon:ee,expandIcon:re,onItemClick:qr,onOpenChange:Yr},f__namespace.createElement(Xy.Provider,{value:Et},Qr),f__namespace.createElement("div",{style:{display:"none"},"aria-hidden":!0},f__namespace.createElement(Uy.Provider,{value:lt},le)))))}),Hk=["className","title","eventKey","children"],Bk=["children"],Wk=function(t){var n=t.className,r=t.title;t.eventKey;var o=t.children,i=Ue(t,Hk),a=f__namespace.useContext(Or),s=a.prefixCls,l="".concat(s,"-item-group");return f__namespace.createElement("li",pe({role:"presentation"},i,{onClick:function(d){return d.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 du(e){var t=e.children,n=Ue(e,Bk),r=Ca(n.eventKey),o=uh(t,r),i=cu();return i?o:f__namespace.createElement(Wk,Mn(n,["warnKey"]),o)}function dh(e){var t=e.className,n=e.style,r=f__namespace.useContext(Or),o=r.prefixCls,i=cu();return i?null:f__namespace.createElement("li",{className:U("".concat(o,"-item-divider"),t),style:n})}var Sa=jk;Sa.Item=Ws;Sa.SubMenu=uu;Sa.ItemGroup=du;Sa.Divider=dh;var Vk={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 Gk=Vk;var Uk=function(t,n){return f__namespace.createElement(tr,pe({},t,{ref:n,icon:Gk}))};const fh=f__namespace.forwardRef(Uk),Kk=f.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),uc=Kk;var Xk=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),qk=e=>{const{children:t}=e,n=Xk(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 Yk=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 Zk=e=>{const{prefixCls:t,className:n,dashed:r}=e,o=Yk(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=f__namespace.useContext(at),a=i("menu",t),s=U({[`${a}-item-divider-dashed`]:!!r},n);return f__namespace.createElement(dh,Object.assign({className:s},o))},tC=Zk;const nC=f__namespace.createContext({}),Qk=e=>{var t;const{className:n,children:r,icon:o,title:i,danger:a}=e,{prefixCls:s,firstLevel:l,direction:c,disableMenuItemTitleTooltip:d,inlineCollapsed:u}=f__namespace.useContext(uc),m=y=>{const w=f__namespace.createElement("span",{className:`${s}-title-content`},r);return (!o||li(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(nC);let v=i;typeof i>"u"?v=l?r:"":i===!1&&(v="");const g={title:v};!h&&!u&&(g.title=null,g.open=!1);const p=dr(r).length;let b=f__namespace.createElement(Ws,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(li(o)?(t=o.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),m(u));return d||(b=f__namespace.createElement(Bs,Object.assign({},g,{placement:c==="rtl"?"left":"right",overlayClassName:`${s}-inline-collapsed-tooltip`}),b)),b},rC=Qk,Jk=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,d=Ca();let u;if(!r)u=l&&!d.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=li(o)&&o.type==="span";u=f__namespace.createElement(f__namespace.Fragment,null,Tn(r,{className:U(li(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(uu,Object.assign({},Mn(e,["icon"]),{title:u,popupClassName:U(s,n,`${s}-${i||c}`)})))},oC=Jk;var eL=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=eL(r,["label","children","key","type"]),c=a??`tmp-${n}`;return i||s==="group"?s==="group"?f__namespace.createElement(du,Object.assign({key:c},l,{title:o}),Lf(i)):f__namespace.createElement(oC,Object.assign({key:c},l,{title:o}),Lf(i)):s==="divider"?f__namespace.createElement(tC,Object.assign({key:c},l)):f__namespace.createElement(rC,Object.assign({key:c},l),o)}return null}).filter(t=>t)}function tL(e){return f__namespace.useMemo(()=>e&&Lf(e),[e])}const nL=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"}}}},rL=nL,oL=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})`}}}}},iL=oL,qg=e=>Object.assign({},zs(e)),aL=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:i,itemBg:a,subMenuItemBg:s,itemSelectedBg:l,activeBarHeight:c,activeBarWidth:d,activeBarBorderWidth:u,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:T,horizontalItemSelectedColor:_,horizontalItemSelectedBg:R,horizontalItemBorderRadius:I,horizontalItemHoverBg:M}=e;return {[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:a,[`&${n}-root:focus-visible`]:Object.assign({},qg(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({},qg(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:T},[`&${n}-popup > ${n}`]:{backgroundColor:a},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:u,marginTop:-u,marginBottom:0,borderRadius:I,"&::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:_}},["&-selected"]:{color:_,backgroundColor:R,"&::after":{borderBottomWidth:c,borderBottomColor:_}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${u}px ${y} ${w}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item, ${n}-submenu-title`]:u&&d?{width:`calc(100% + ${u}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${d}px solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${p} ${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(",")}}}}}},Yg=aL,Zg=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}}},sL=e=>{const{componentCls:t,iconCls:n,menuItemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionDurationMid:s,motionEaseOut:l,paddingXL:c,itemMarginInline:d,fontSizeLG:u,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"}},Zg(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},Zg(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:u,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% - ${u/2}px - ${d}px)`,textOverflow:"clip",[`
            ${t}-submenu-arrow,
            ${t}-submenu-expand-icon
          `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:u,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({},ti),{paddingInline:h})}}]},lL=sL,Qg=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"}}}},Jg=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})`}}}}},cL=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,lineHeight:s,paddingXS:l,padding:c,colorSplit:d,lineWidth:u,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:d,borderStyle:b,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Qg(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},Qg(e)),Jg(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:v},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}})}}),Jg(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"}}}]},uL=(e,t)=>sn("Menu",(r,o)=>{let{overrideComponentToken:i}=o;if(t===!1)return [];const{colorBgElevated:a,colorPrimary:s,colorError:l,colorErrorHover:c,colorTextLightSolid:d,controlHeightLG:u,fontSize:m}=r,h=m/7*5,v=xt(r,{menuItemHeight:u,menuItemPaddingInline:r.margin,menuArrowSize:h,menuHorizontalHeight:u*1.15,menuArrowOffset:`${h*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:a}),g=new Zt(d).setAlpha(.65).toRgbString(),p=xt(v,{itemColor:g,itemHoverColor:d,groupTitleColor:g,itemSelectedColor:d,itemBg:"#001529",subMenuItemBg:"#000c17",itemActiveBg:"transparent",itemSelectedBg:s,activeBarWidth:0,activeBarHeight:0,activeBarBorderWidth:0,itemDisabledColor:new Zt(d).setAlpha(.25).toRgbString(),dangerItemColor:l,dangerItemHoverColor:c,dangerItemSelectedColor:d,dangerItemActiveBg:l,dangerItemSelectedBg:l,menuSubMenuBg:"#001529",horizontalItemSelectedColor:d,horizontalItemSelectedBg:s},Object.assign({},i));return [cL(v),rL(v),lL(v),Yg(v,"light"),Yg(p,"dark"),iL(v),cy(v),Mo(v,"slide-up"),Mo(v,"slide-down"),iu(v,"zoom-big")]},r=>{const{colorPrimary:o,colorError:i,colorTextDisabled:a,colorErrorBg:s,colorText:l,colorTextDescription:c,colorBgContainer:d,colorFillAlter:u,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:d,itemBg:d,colorItemBgHover:p,itemHoverBg:p,colorItemBgActive:m,itemActiveBg:m,colorSubItemBg:u,subMenuItemBg:u,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 dL=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 fL=f.forwardRef((e,t)=>{var n,r;const o=f__namespace.useContext(dc),i=o||{},{getPrefixCls:a,getPopupContainer:s,direction:l}=f__namespace.useContext(at),c=a(),{prefixCls:d,className:u,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=dL(e,["prefixCls","className","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),O=Mn(P,["collapsedWidth"]),E=tL(b)||y;(n=i.validator)===null||n===void 0||n.call(i,{mode:x});const T=qn(function(){var k;S==null||S.apply(void 0,arguments),(k=i.onClick)===null||k===void 0||k.call(i);}),_=i.mode||x,R=C??i.selectable,I=f__namespace.useMemo(()=>p!==void 0?p:g,[g,p]),M={horizontal:{motionName:`${c}-slide-up`},inline:ay(c),other:{motionName:`${c}-zoom-big`}},A=a("menu",d||i.prefixCls),[N,D]=uL(A,!o),F=U(`${A}-${m}`,u);let z;if(typeof h=="function")z=h;else {const k=h||i.expandIcon;z=Tn(k,{className:U(`${A}-submenu-expand-icon`,(r=k==null?void 0:k.props)===null||r===void 0?void 0:r.className)});}const H=f__namespace.useMemo(()=>({prefixCls:A,inlineCollapsed:I||!1,direction:l,firstLevel:!0,theme:m,mode:_,disableMenuItemTitleTooltip:v}),[A,I,l,v,m]);return N(f__namespace.createElement(dc.Provider,{value:null},f__namespace.createElement(uc.Provider,{value:H},f__namespace.createElement(Sa,Object.assign({getPopupContainer:s,overflowedIndicator:f__namespace.createElement(fh,null),overflowedIndicatorPopupClassName:U(A,`${A}-${m}`,$),mode:_,selectable:R,onClick:T},O,{inlineCollapsed:I,className:F,prefixCls:A,direction:l,defaultMotions:M,expandIcon:z,ref:t,rootClassName:U(w,D)}),E))))}),mL=fL,Vs=f.forwardRef((e,t)=>{const n=f.useRef(null),r=f__namespace.useContext(nC);return f.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{var i;(i=n.current)===null||i===void 0||i.focus(o);}})),f__namespace.createElement(mL,Object.assign({ref:n},e,r))});Vs.Item=rC;Vs.SubMenu=oC;Vs.Divider=tC;Vs.ItemGroup=du;const hL=Vs,vL=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}}}}}},gL=vL,pL=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:i,antCls:a,iconCls:s,motionDurationMid:l,dropdownPaddingVertical:c,fontSize:d,dropdownEdgeChildPadding:u,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:Km},[`&${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:qm},[`&${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:Xm},[`&${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:Ym}})},ih(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:u,listStyleType:"none",backgroundColor:g,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},bs(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:d,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:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${l}`,borderRadius:e.borderRadiusSM,["&:hover, &-active"]:{backgroundColor:e.controlItemBgHover}},bs(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}})}},[Mo(e,"slide-up"),Mo(e,"slide-down"),ac(e,"move-up"),ac(e,"move-down"),iu(e,"zoom-big")]]},iC=sn("Dropdown",(e,t)=>{let{rootPrefixCls:n}=t;const{marginXXS:r,sizePopupArrow:o,controlHeight:i,fontSize:a,lineHeight:s,paddingXXS:l,componentCls:c,borderRadiusLG:d}=e,u=(i-a*s)/2,{dropdownArrowOffset:m}=oh({contentRadius:d}),h=xt(e,{menuCls:`${c}-menu`,rootPrefixCls:n,dropdownArrowDistance:o/2+r,dropdownArrowOffset:m,dropdownPaddingVertical:u,dropdownEdgeChildPadding:l});return [pL(h),gL(h)]},e=>({zIndexPopup:e.zIndexPopupBase+50})),mh=e=>{const{menu:t,arrow:n,prefixCls:r,children:o,trigger:i,disabled:a,dropdownRender:s,getPopupContainer:l,overlayClassName:c,rootClassName:d,open:u,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(at),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),[T,_]=iC(E),{token:R}=la.useToken(),I=f__namespace.Children.only(o),M=Tn(I,{className:U(`${E}-trigger`,{[`${E}-rtl`]:$==="rtl"},I.props.className),disabled:a}),A=a?[]:i;let N;A&&A.includes("contextMenu")&&(N=!0);const[D,F]=Qt(!1,{value:u??h}),z=qn(K=>{m==null||m(K),v==null||v(K),F(K);}),H=U(c,d,_,{[`${E}-rtl`]:$==="rtl"}),k=Ny({arrowPointAtCenter:typeof n=="object"&&n.pointAtCenter,autoAdjustOverflow:b,offset:R.marginXXS,arrowWidth:n?R.sizePopupArrow:0,borderRadius:R.borderRadius}),W=f__namespace.useCallback(()=>{F(!1);},[]),B=()=>{let K;return t!=null&&t.items?K=f__namespace.createElement(hL,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(qk,{prefixCls:`${E}-menu`,expandIcon:f__namespace.createElement("span",{className:`${E}-menu-submenu-arrow`},f__namespace.createElement(By,{className:`${E}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:W,validator:te=>{}},f__namespace.createElement(aa,null,K))};return T(f__namespace.createElement(Wy,Object.assign({alignPoint:N},Mn(e,["rootClassName"]),{mouseEnterDelay:g,mouseLeaveDelay:p,visible:D,builtinPlacements:k,arrow:!!n,overlayClassName:H,prefixCls:E,getPopupContainer:l||C,transitionName:P,trigger:A,overlay:B,placement:O,onVisibleChange:z}),M))};function bL(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const yL=Zm(mh,"dropdown",e=>e,bL),CL=e=>f__namespace.createElement(yL,Object.assign({},e),f__namespace.createElement("span",null));mh._InternalPanelDoNotUseOrYouWillBeFired=CL;const aC=mh,sC=f__namespace.createContext(null),SL=sC.Provider,lC=f__namespace.createContext(null),wL=lC.Provider;var $L=["prefixCls","className","style","checked","disabled","defaultChecked","type","onChange"],cC=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,d=c===void 0?!1:c,u=e.type,m=u===void 0?"checkbox":u,h=e.onChange,v=Ue(e,$L),g=f.useRef(null),p=Qt(d,{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:V(V({},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 xL=new Mt("antRadioEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),EL=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"}})}},OL=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:i,motionDurationMid:a,motionEaseInOut:s,motionEaseInOutCirc:l,colorBgContainer:c,colorBorder:d,lineWidth:u,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:`${u}px ${b} ${r}`,borderRadius:"50%",visibility:"hidden",animationName:xL,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({},zs(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:d,borderStyle:"solid",borderWidth:u,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:d,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:d,buttonBg:u,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:T}=e;return {[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:d,lineHeight:`${n-o*2}px`,background:u,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({},zs(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:T,borderColor:T,"&::before":{backgroundColor:T}}},[`${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:T,borderColor:T}},"&-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"}}}},ep=e=>e-4*2,uC=sn("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n,radioSize:r}=e,o=`0 0 0 ${n}px ${t}`,i=o,a=ep(r),s=xt(e,{radioDotDisabledSize:a,radioFocusShadow:o,radioButtonFocusShadow:i});return [EL(s),OL(s),PL(s)]},e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:i,colorText:a,colorBgContainer:s,colorTextDisabled:l,controlItemBgActiveDisabled:c,colorTextLightSolid:d}=e,u=4,m=i,h=t?ep(m):m-(u+o)*2;return {radioSize:m,dotSize:h,dotColorDisabled:l,buttonSolidCheckedColor:d,buttonBg:s,buttonCheckedBg:s,buttonColor:a,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:l,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r}});var IL=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const _L=(e,t)=>{var n,r;const o=f__namespace.useContext(sC),i=f__namespace.useContext(lC),{getPrefixCls:a,direction:s}=f__namespace.useContext(at),l=f__namespace.useRef(null),c=Fn(t,l),{isFormItemInput:d}=f__namespace.useContext(Gr),u=O=>{var E,T;(E=e.onChange)===null||E===void 0||E.call(e,O),(T=o==null?void 0:o.onChange)===null||T===void 0||T.call(o,O);},{prefixCls:m,className:h,rootClassName:v,children:g,style:p}=e,b=IL(e,["prefixCls","className","rootClassName","children","style"]),y=a("radio",m),w=((o==null?void 0:o.optionType)||i)==="button"?`${y}-button`:y,[x,C]=uC(y),S=Object.assign({},b),$=f__namespace.useContext(Ao);o&&(S.name=o.name,S.onChange=u,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`]:d},h,v,C);return x(f__namespace.createElement("label",{className:P,style:p,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},f__namespace.createElement(cC,Object.assign({},S,{type:"radio",prefixCls:w,ref:c})),g!==void 0?f__namespace.createElement("span",null,g):null))},RL=f__namespace.forwardRef(_L),fc=RL,ML=f__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=f__namespace.useContext(at),[o,i]=Qt(e.defaultValue,{value:e.value}),a=_=>{const R=o,I=_.target.value;"value"in e||i(I);const{onChange:M}=e;M&&I!==R&&M(_);},{prefixCls:s,className:l,rootClassName:c,options:d,buttonStyle:u="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]=uC(C);let O=h;d&&d.length>0&&(O=d.map(_=>typeof _=="string"||typeof _=="number"?f__namespace.createElement(fc,{key:_.toString(),prefixCls:C,disabled:m,value:_,checked:o===_},_):f__namespace.createElement(fc,{key:`radio-group-value-options-${_.value}`,prefixCls:C,disabled:_.disabled||m,value:_.value,checked:o===_.value,style:_.style},_.label)));const E=Pr(v),T=U(S,`${S}-${u}`,{[`${S}-${E}`]:E,[`${S}-rtl`]:r==="rtl"},l,c,P);return $(f__namespace.createElement("div",Object.assign({},ys(e,{aria:!0,data:!0}),{className:T,style:g,onMouseEnter:b,onMouseLeave:y,onFocus:w,onBlur:x,id:p,ref:t}),f__namespace.createElement(SL,{value:{onChange:a,value:o,disabled:e.disabled,name:e.name,optionType:e.optionType}},O)))}),TL=f__namespace.memo(ML);var NL=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 AL=(e,t)=>{const{getPrefixCls:n}=f__namespace.useContext(at),{prefixCls:r}=e,o=NL(e,["prefixCls"]),i=n("radio",r);return f__namespace.createElement(wL,{value:"button"},f__namespace.createElement(fc,Object.assign({prefixCls:i},o,{type:"radio",ref:t})))},DL=f__namespace.forwardRef(AL),fu=fc;fu.Button=DL;fu.Group=TL;fu.__ANT_RADIO=!0;const es=fu,dC=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Gs=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}),hh=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},Gs(xt(e,{inputBorderHoverColor:e.colorBorder})))}),fC=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}},mC=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),mu=(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(xt(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(xt(e,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:a}))),[`${n}-prefix, ${n}-suffix`]:{color:o}}}},hu=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}`},dC(e.colorTextPlaceholder)),{"&:hover":Object.assign({},Gs(e)),"&:focus, &-focused":Object.assign({},mc(e)),"&-disabled, &[disabled]":Object.assign({},hh(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({},fC(e)),"&-sm":Object.assign({},mC(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),hC=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({},fC(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},mC(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}}}})}},kL=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)),hu(e)),mu(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"}})}},LL=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`}}}},FL=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({},hu(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},Gs(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}}}),LL(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),mu(e,`${t}-affix-wrapper`))}},zL=e=>{const{componentCls:t,colorError:n,colorWarning:r,borderRadiusLG:o,borderRadiusSM:i}=e;return {[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Kt(e)),hC(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({},hh(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}}}})}},jL=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 vC(e){return xt(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 HL=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"}}}}}},vh=sn("Input",e=>{const t=vC(e);return [kL(t),HL(t),FL(t),zL(t),jL(t),ru(t)]});var BL={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 WL=BL;var VL=function(t,n){return f__namespace.createElement(tr,pe({},t,{ref:n,icon:WL}))};const GL=f__namespace.forwardRef(VL),vu=f.createContext(null);var gC=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)}),UL=["key","forceRender","style","className"];function KL(e){var t=e.id,n=e.activeKey,r=e.animated,o=e.tabPosition,i=e.destroyInactiveTabPane,a=f__namespace.useContext(vu),s=a.prefixCls,l=a.tabs,c=r.tabPane,d="".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(u){var m=u.key,h=u.forceRender,v=u.style,g=u.className,p=Ue(u,UL),b=m===n;return f__namespace.createElement(Do,pe({key:m,visible:b,forceRender:h,removeOnLeave:!!i,leavedClassName:"".concat(d,"-hidden")},r.tabPaneMotion),function(y,w){var x=y.style,C=y.className;return f__namespace.createElement(gC,pe({},p,{prefixCls:d,id:t,tabKey:m,animated:c,active:b,style:V(V({},v),x),className:U(g,C),ref:w}))})})))}var tp={width:0,height:0,left:0,top:0};function XL(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)||tp,a=i.left+i.width,s=0;s<e.length;s+=1){var l=e[s].key,c=t.get(l);if(!c){var d;c=t.get((d=e[s-1])===null||d===void 0?void 0:d.key)||tp;}var u=o.get(l)||V({},c);u.right=a-u.left-u.width,o.set(l,u);}return o},[e.map(function(r){return r.key}).join("_"),t,n])}function np(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 qL=.1,rp=.01,Rl=20,op=Math.pow(.995,Rl);function YL(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],d=f.useState(0),u=X(d,2),m=u[0],h=u[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],T=E.screenX,_=E.screenY;i({x:T,y:_}),window.clearInterval(y.current);}function x(O){if(o){O.preventDefault();var E=O.touches[0],T=E.screenX,_=E.screenY;i({x:T,y:_});var R=T-o.x,I=_-o.y;t(R,I);var M=Date.now();c(M),h(M-l),b({x:R,y:I});}}function C(){if(o&&(i(null),b(null),p)){var O=p.x/m,E=p.y/m,T=Math.abs(O),_=Math.abs(E);if(Math.max(T,_)<qL)return;var R=O,I=E;y.current=window.setInterval(function(){if(Math.abs(R)<rp&&Math.abs(I)<rp){window.clearInterval(y.current);return}R*=op,I*=op,t(R*Rl,I*Rl);},Rl);}}var S=f.useRef();function $(O){var E=O.deltaX,T=O.deltaY,_=0,R=Math.abs(E),I=Math.abs(T);R===I?_=S.current==="x"?E:T:R>I?(_=E,S.current="x"):(_=T,S.current="y"),t(-_,-_)&&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 T(R){P.current.onTouchEnd(R);}function _(R){P.current.onWheel(R);}return document.addEventListener("touchmove",E,{passive:!1}),document.addEventListener("touchend",T,{passive:!1}),e.current.addEventListener("touchstart",O,{passive:!1}),e.current.addEventListener("wheel",_),function(){document.removeEventListener("touchmove",E),document.removeEventListener("touchend",T);}},[]);}function pC(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,Wi(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 ZL(e){var t=f.useRef([]),n=f.useState({}),r=X(n,2),o=r[1],i=f.useRef(typeof e=="function"?e():e),a=pC(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 ip={width:0,height:0,left:0,top:0,right:0};function QL(e,t,n,r,o,i,a){var s=a.tabs,l=a.tabPosition,c=a.rtl,d,u,m;return ["top","bottom"].includes(l)?(d="width",u=c?"right":"left",m=Math.abs(n)):(d="height",u="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)||ip;if(p[u]+p[d]>m+t){v=g-1;break}}for(var b=0,y=h-1;y>=0;y-=1){var w=e.get(s[y].key)||ip;if(w[u]<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 ap(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n;})):t=e,JSON.stringify(t)}var JL="TABS_DQ";function bC(e){return String(e).replace(/"/g,JL)}function eF(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 yC=f__namespace.forwardRef(eF);var sp=f__namespace.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var i,a={};return ot(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 tF(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,d=e.style,u=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],T="".concat(r,"-more-popup"),_="".concat(n,"-dropdown"),R=O!==null?"".concat(T,"-").concat(O):null,I=i==null?void 0:i.dropdownAriaLabel;function M(k,W){k.preventDefault(),k.stopPropagation(),m.onEdit("remove",{key:W,event:k});}var A=f__namespace.createElement(Sa,{onClick:function(W){var B=W.key,K=W.domEvent;p(B,K),S(!1);},prefixCls:"".concat(_,"-menu"),id:T,tabIndex:-1,role:"listbox","aria-activedescendant":R,selectedKeys:[O],"aria-label":I!==void 0?I:"expanded dropdown"},o.map(function(k){var W=m&&k.closable!==!1&&!k.disabled;return f__namespace.createElement(Ws,{key:k.key,id:"".concat(T,"-").concat(k.key),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(k.key),disabled:k.disabled},f__namespace.createElement("span",null,k.label),W&&f__namespace.createElement("button",{type:"button","aria-label":g||"remove",tabIndex:0,className:"".concat(_,"-menu-item-remove"),onClick:function(K){K.stopPropagation(),M(K,k.key);}},k.closeIcon||m.removeIcon||"×"))}));function N(k){for(var W=o.filter(function(Y){return !Y.disabled}),B=W.findIndex(function(Y){return Y.key===O})||0,K=W.length,te=0;te<K;te+=1){B=(B+k+K)%K;var Z=W[B];if(!Z.disabled){E(Z.key);return}}}function D(k){var W=k.which;if(!C){[J.DOWN,J.SPACE,J.ENTER].includes(W)&&(S(!0),k.preventDefault());return}switch(W){case J.UP:N(-1),k.preventDefault();break;case J.DOWN:N(1),k.preventDefault();break;case J.ESC:S(!1);break;case J.SPACE:case J.ENTER:O!==null&&p(O,k);break}}f.useEffect(function(){var k=document.getElementById(R);k&&k.scrollIntoView&&k.scrollIntoView(!1);},[O]),f.useEffect(function(){C||E(null);},[C]);var F=q({},v?"marginRight":"marginLeft",h);o.length||(F.visibility="hidden",F.order=1);var z=U(q({},"".concat(_,"-rtl"),v)),H=a?null:f__namespace.createElement(Wy,{prefixCls:_,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:F,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":T,id:"".concat(r,"-more"),"aria-expanded":C,onKeyDown:D},l));return f__namespace.createElement("div",{className:U("".concat(n,"-nav-operations"),u),style:d,ref:t},H,f__namespace.createElement(yC,{prefixCls:n,locale:i,editable:m}))}const nF=f__namespace.memo(f__namespace.forwardRef(tF),function(e,t){return t.tabMoving});function rF(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,d=e.closable,u=e.renderWrapper,m=e.removeAriaLabel,h=e.editable,v=e.onClick,g=e.onFocus,p=e.style,b="".concat(n,"-tab"),y=h&&d!==!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":bC(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($){[J.SPACE,J.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 u?u(C):C}var Ti=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 oF(e,t){var n,r=f__namespace.useContext(vu),o=r.prefixCls,i=r.tabs,a=e.className,s=e.style,l=e.id,c=e.animated,d=e.activeKey,u=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(),T=g==="top"||g==="bottom",_=np(0,function(Te,He){T&&w&&w({direction:Te>He?"left":"right"});}),R=X(_,2),I=R[0],M=R[1],A=np(0,function(Te,He){!T&&w&&w({direction:Te>He?"top":"bottom"});}),N=X(A,2),D=N[0],F=N[1],z=f.useState([0,0]),H=X(z,2),k=H[0],W=H[1],B=f.useState([0,0]),K=X(B,2),te=K[0],Z=K[1],Y=f.useState([0,0]),ee=X(Y,2),re=ee[0],ae=ee[1],ue=f.useState([0,0]),ie=X(ue,2),me=ie[0],ye=ie[1],ce=ZL(new Map),he=X(ce,2),ne=he[0],fe=he[1],se=XL(i,ne,te[0]),le=yl(k,T),_e=yl(te,T),Ve=yl(re,T),Ze=yl(me,T),$e=le<_e+Ve,Le=$e?le-Ze:le-Ve,tt="".concat(o,"-nav-operations-hidden"),Ke=0,Xe=0;T&&u?(Ke=0,Xe=Math.max(0,_e-Le)):(Ke=Math.min(0,Le-_e),Xe=0);function De(Te){return Te<Ke?Ke:Te>Xe?Xe:Te}var Fe=f.useRef(),ut=f.useState(),st=X(ut,2),be=st[0],xe=st[1];function qe(){xe(Date.now());}function Be(){window.clearTimeout(Fe.current);}YL($,function(Te,He){function lt(Et,qt){Et(function(zt){var wn=De(zt+qt);return wn});}return $e?(T?lt(M,Te):lt(F,He),Be(),qe(),!0):!1}),f.useEffect(function(){return Be(),be&&(Fe.current=window.setTimeout(function(){xe(0);},100)),Be},[be]);var dt=QL(se,Le,T?I:D,_e,Ve,Ze,V(V({},e),{},{tabs:i})),Oe=X(dt,2),Pe=Oe[0],ze=Oe[1],Re=qn(function(){var Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:d,He=se.get(Te)||{width:0,height:0,left:0,right:0,top:0};if(T){var lt=I;u?He.right<I?lt=He.right:He.right+He.width>I+Le&&(lt=He.right+He.width-Le):He.left<-I?lt=-He.left:He.left+He.width>-I+Le&&(lt=-(He.left+He.width-Le)),F(0),M(De(lt));}else {var Et=D;He.top<-D?Et=-He.top:He.top+He.height>-D+Le&&(Et=-(He.top+He.height-Le)),M(0),F(De(Et));}}),Qe={};g==="top"||g==="bottom"?Qe[u?"marginRight":"marginLeft"]=p:Qe.marginTop=p;var wt=i.map(function(Te,He){var lt=Te.key;return f__namespace.createElement(rF,{id:l,prefixCls:o,key:lt,tab:Te,style:He===0?void 0:Qe,closable:Te.closable,editable:h,active:lt===d,renderWrapper:b,removeAriaLabel:v==null?void 0:v.removeAriaLabel,onClick:function(qt){y(lt,qt);},onFocus:function(){Re(lt),qe(),$.current&&(u||($.current.scrollLeft=0),$.current.scrollTop=0);}})}),Lt=function(){return fe(function(){var He=new Map;return i.forEach(function(lt){var Et,qt=lt.key,zt=(Et=P.current)===null||Et===void 0?void 0:Et.querySelector('[data-node-key="'.concat(bC(qt),'"]'));zt&&He.set(qt,{width:zt.offsetWidth,height:zt.offsetHeight,left:zt.offsetLeft,top:zt.offsetTop});}),He})};f.useEffect(function(){Lt();},[i.map(function(Te){return Te.key}).join("_")]);var Dt=pC(function(){var Te=Ti(x),He=Ti(C),lt=Ti(S);W([Te[0]-He[0]-lt[0],Te[1]-He[1]-lt[1]]);var Et=Ti(E);ae(Et);var qt=Ti(O);ye(qt);var zt=Ti(P);Z([zt[0]-Et[0],zt[1]-Et[1]]),Lt();}),Ne=i.slice(0,Pe),de=i.slice(ze+1),oe=[].concat(ge(Ne),ge(de)),Ce=f.useState(),Ee=X(Ce,2),Ye=Ee[0],ft=Ee[1],yt=se.get(d),Xt=f.useRef();function Bt(){Nt.cancel(Xt.current);}f.useEffect(function(){var Te={};return yt&&(T?(u?Te.right=yt.right:Te.left=yt.left,Te.width=yt.width):(Te.top=yt.top,Te.height=yt.height)),Bt(),Xt.current=Nt(function(){ft(Te);}),Bt},[yt,T,u]),f.useEffect(function(){Re();},[d,Ke,Xe,ap(yt),ap(se),T]),f.useEffect(function(){Dt();},[u]);var Ae=!!oe.length,We="".concat(o,"-nav-wrap"),Me,Ct,gt,Jt;return T?u?(Ct=I>0,Me=I!==Xe):(Me=I<0,Ct=I!==Ke):(gt=D<0,Jt=D!==Ke),f__namespace.createElement(fo,{onResize:Dt},f__namespace.createElement("div",{ref:As(t,x),role:"tablist",className:U("".concat(o,"-nav"),a),style:s,onKeyDown:function(){qe();}},f__namespace.createElement(sp,{ref:C,position:"left",extra:m,prefixCls:o}),f__namespace.createElement("div",{className:U(We,(n={},q(n,"".concat(We,"-ping-left"),Me),q(n,"".concat(We,"-ping-right"),Ct),q(n,"".concat(We,"-ping-top"),gt),q(n,"".concat(We,"-ping-bottom"),Jt),n)),ref:$},f__namespace.createElement(fo,{onResize:Dt},f__namespace.createElement("div",{ref:P,className:"".concat(o,"-nav-list"),style:{transform:"translate(".concat(I,"px, ").concat(D,"px)"),transition:be?"none":void 0}},wt,f__namespace.createElement(yC,{ref:E,prefixCls:o,locale:v,editable:h,style:V(V({},wt.length===0?void 0:Qe),{},{visibility:Ae?"hidden":null})}),f__namespace.createElement("div",{className:U("".concat(o,"-ink-bar"),q({},"".concat(o,"-ink-bar-animated"),c.inkBar)),style:Ye})))),f__namespace.createElement(nF,pe({},e,{removeAriaLabel:v==null?void 0:v.removeAriaLabel,ref:O,prefixCls:o,tabs:oe,className:!Ae&&tt,tabMoving:!!be})),f__namespace.createElement(sp,{ref:S,position:"right",extra:m,prefixCls:o})))}const lp=f__namespace.forwardRef(oF);var iF=["renderTabBar"],aF=["label","key"];function sF(e){var t=e.renderTabBar,n=Ue(e,iF),r=f__namespace.useContext(vu),o=r.tabs;if(t){var i=V(V({},n),{},{panes:o.map(function(a){var s=a.label,l=a.key,c=Ue(a,aF);return f__namespace.createElement(gC,pe({tab:s,key:l,tabKey:l},c))})});return t(i,lp)}return f__namespace.createElement(lp,n)}function lF(){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=V({inkBar:!0},ot(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var cF=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName"],cp=0;function uF(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,d=e.defaultActiveKey,u=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,T=e.popupClassName,_=Ue(e,cF),R=f__namespace.useMemo(function(){return (s||[]).filter(function(ce){return ce&&ot(ce)==="object"&&"key"in ce})},[s]),I=l==="rtl",M=lF(m),A=f.useState(!1),N=X(A,2),D=N[0],F=N[1];f.useEffect(function(){F(au());},[]);var z=Qt(function(){var ce;return (ce=R[0])===null||ce===void 0?void 0:ce.key},{value:c,defaultValue:d}),H=X(z,2),k=H[0],W=H[1],B=f.useState(function(){return R.findIndex(function(ce){return ce.key===k})}),K=X(B,2),te=K[0],Z=K[1];f.useEffect(function(){var ce=R.findIndex(function(ne){return ne.key===k});if(ce===-1){var he;ce=Math.max(0,Math.min(te,R.length-1)),W((he=R[ce])===null||he===void 0?void 0:he.key);}Z(ce);},[R.map(function(ce){return ce.key}).join("_"),k,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(cp)),cp+=1);},[]);function ue(ce,he){P==null||P(ce,he);var ne=ce!==k;W(ce),ne&&($==null||$(ce));}var ie={id:re,activeKey:k,animated:M,tabPosition:v,rtl:I,mobile:D},me,ye=V(V({},ie),{},{editable:u,locale:y,moreIcon:w,moreTransitionName:x,tabBarGutter:g,onTabClick:ue,onTabScroll:O,extra:b,style:p,panes:null,getPopupContainer:E,popupClassName:T});return f__namespace.createElement(vu.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"),u),q(n,"".concat(i,"-rtl"),I),n),a)},_),me,f__namespace.createElement(sF,pe({},ye,{renderTabBar:S})),f__namespace.createElement(KL,pe({destroyInactiveTabPane:C},ie,{animated:M}))))}var dF=f__namespace.forwardRef(uF);const fF=()=>null,mF=fF,hF={motionAppear:!1,motionEnter:!0,motionLeave:!0};function vF(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({},hF),{motionName:ou(e,"switch")})),n}var gF=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 pF(e){return e.filter(t=>t)}function bF(e,t){if(e)return e;const n=dr(t).map(r=>{if(f__namespace.isValidElement(r)){const{key:o,props:i}=r,a=i||{},{tab:s}=a,l=gF(a,["tab"]);return Object.assign(Object.assign({key:String(o)},l),{label:s})}return null});return pF(n)}const yF=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}`}}}}},[Mo(e,"slide-up"),Mo(e,"slide-down")]]},CF=yF,SF=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}}}}}}},wF=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({},ti),{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"}}})}})}},$F=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}}}}}},xF=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}}}}}},EF=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}},bs(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}}}},OF=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}},bs(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),EF(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"}}}}}},IF=sn("Tabs",e=>{const t=xt(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 [xF(t),OF(t),$F(t),wF(t),SF(t),PF(t),CF(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 _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};function CC(e){var{type:t,className:n,rootClassName:r,size:o,onEdit:i,hideAdd:a,centered:s,addIcon:l,popupClassName:c,children:d,items:u,animated:m}=e,h=_F(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated"]);const{prefixCls:v,moreIcon:g=f__namespace.createElement(fh,null)}=h,{direction:p,getPrefixCls:b,getPopupContainer:y}=f__namespace.useContext(at),w=b("tabs",v),[x,C]=IF(w);let S;t==="editable-card"&&(S={onEdit:(T,_)=>{let{key:R,event:I}=_;i==null||i(T==="add"?I:R,T);},removeIcon:f__namespace.createElement(Hm,null),addIcon:l||f__namespace.createElement(GL,null),showAdd:a!==!0});const $=b(),P=bF(u,d),O=vF(w,m),E=Pr(o);return x(f__namespace.createElement(dF,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})))}CC.TabPane=mF;const RF=new Mt("antCheckboxEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),MF=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({},zs(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:RF,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 TF(e,t){const n=xt(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return [MF(n)]}const SC=sn("Checkbox",(e,t)=>{let{prefixCls:n}=t;return [TF(n,e)]});var NF=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const wC=f__namespace.createContext(null),AF=(e,t)=>{var{defaultValue:n,children:r,options:o=[],prefixCls:i,className:a,rootClassName:s,style:l,onChange:c}=e,d=NF(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]);const{getPrefixCls:u,direction:m}=f__namespace.useContext(at),[h,v]=f__namespace.useState(d.value||n||[]),[g,p]=f__namespace.useState([]);f__namespace.useEffect(()=>{"value"in d&&v(d.value||[]);},[d.value]);const b=()=>o.map(_=>typeof _=="string"||typeof _=="number"?{label:_,value:_}:_),y=_=>{p(R=>R.filter(I=>I!==_));},w=_=>{p(R=>[].concat(ge(R),[_]));},x=_=>{const R=h.indexOf(_.value),I=ge(h);R===-1?I.push(_.value):I.splice(R,1),"value"in d||v(I);const M=b();c==null||c(I.filter(A=>g.includes(A)).sort((A,N)=>{const D=M.findIndex(z=>z.value===A),F=M.findIndex(z=>z.value===N);return D-F}));},C=u("checkbox",i),S=`${C}-group`,[$,P]=SC(C),O=Mn(d,["value","disabled"]);o&&o.length>0&&(r=b().map(_=>f__namespace.createElement($C,{prefixCls:C,key:_.value.toString(),disabled:"disabled"in _?_.disabled:d.disabled,value:_.value,checked:h.includes(_.value),onChange:_.onChange,className:`${S}-item`,style:_.style},_.label)));const E={toggleOption:x,value:h,disabled:d.disabled,name:d.name,registerValue:w,cancelValue:y},T=U(S,{[`${S}-rtl`]:m==="rtl"},a,s,P);return $(f__namespace.createElement("div",Object.assign({className:T,style:l},O,{ref:t}),f__namespace.createElement(wC.Provider,{value:E},r)))},DF=f__namespace.forwardRef(AF),kF=f__namespace.memo(DF);var LF=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 FF=(e,t)=>{var n,{prefixCls:r,className:o,rootClassName:i,children:a,indeterminate:s=!1,style:l,onMouseEnter:c,onMouseLeave:d,skipGroup:u=!1,disabled:m}=e,h=LF(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]);const{getPrefixCls:v,direction:g}=f__namespace.useContext(at),p=f__namespace.useContext(wC),{isFormItemInput:b}=f__namespace.useContext(Gr),y=f__namespace.useContext(Ao),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(!u)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,$]=SC(C),P=Object.assign({},h);p&&!u&&(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},$),T=s?"mixed":void 0;return S(f__namespace.createElement("label",{className:O,style:l,onMouseEnter:c,onMouseLeave:d},f__namespace.createElement(cC,Object.assign({"aria-checked":T},P,{prefixCls:C,className:E,disabled:w,ref:t})),a!==void 0&&f__namespace.createElement("span",null,a)))},zF=f__namespace.forwardRef(FF),$C=zF,gh=$C;gh.Group=kF;gh.__ANT_CHECKBOX=!0;const jF=gh,HF=()=>{const[e,t]=f__namespace.useState(!1);return f__namespace.useEffect(()=>{t(DT());},[]),e};var xC=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,d=f.useState(l||o),u=X(d,2),m=u[0],h=u[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});xC.displayName="PanelContent";var BF=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],EC=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,d=e.className,u=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,BF),S=m==="disabled",$=m==="header",P=m==="icon",O=g!=null&&typeof g!="boolean",E=function(){l==null||l(v);},T=function(N){(N.key==="Enter"||N.keyCode===J.ENTER||N.which===J.ENTER)&&E();},_=typeof b=="function"?b(e):f.createElement("i",{className:"arrow"});_&&(_=f.createElement("div",{className:"".concat(u,"-expand-icon"),onClick:["header","icon"].includes(m)?E:void 0},_));var R=U((n={},q(n,"".concat(u,"-item"),!0),q(n,"".concat(u,"-item-active"),s),q(n,"".concat(u,"-item-disabled"),S),n),d),I=U((r={},q(r,"".concat(u,"-header"),!0),q(r,"headerClass",a),q(r,"".concat(u,"-header-collapsible-only"),$),q(r,"".concat(u,"-icon-collapsible-only"),P),r)),M={className:I,"aria-expanded":s,"aria-disabled":S,onKeyDown:T};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&&_,f.createElement("span",{className:"".concat(u,"-header-text"),onClick:m==="header"?E:void 0},p),O&&f.createElement("div",{className:"".concat(u,"-extra")},g)),f.createElement(Do,pe({visible:s,leavedClassName:"".concat(u,"-content-hidden")},y,{forceRender:c,removeOnLeave:w}),function(A,N){var D=A.className,F=A.style;return f.createElement(xC,{ref:N,prefixCls:u,className:D,style:F,isActive:s,forceRender:c,role:h?"tabpanel":void 0},x)}))}),WF=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],VF=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,d=n.expandIcon;return t.map(function(u,m){var h=u.children,v=u.label,g=u.key,p=u.collapsible,b=u.onItemClick,y=u.destroyInactivePanel,w=Ue(u,WF),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(EC,pe({},w,{prefixCls:r,key:x,panelKey:x,isActive:P,accordion:o,openMotion:c,expandIcon:d,header:v,collapsible:C,onItemClick:$,destroyInactivePanel:S}),h)})},GF=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,d=r.openMotion,u=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:d,accordion:i,children:t.props.children,onItemClick:C,expandIcon:u,collapsible:x};return typeof t.type=="string"?t:(Object.keys(S).forEach(function($){typeof S[$]>"u"&&delete S[$];}),f.cloneElement(t,S))};function UF(e,t,n){return Array.isArray(e)?VF(e,n):dr(t).map(function(r,o){return GF(r,o,n)})}function KF(e){var t=e;if(!Array.isArray(t)){var n=ot(t);t=n==="number"||n==="string"?[t]:[];}return t.map(function(r){return String(r)})}var XF=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,d=e.collapsible,u=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:KF}),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),T=E>-1;return T?x.filter(function(_){return _!==O}):[].concat(ge(x),[O])})};mn(!c,"`children` will be removed in next major version. Please use `items` instead.");var $=UF(p,c,{prefixCls:r,accordion:s,openMotion:u,expandIcon:m,collapsible:d,destroyInactivePanel:i,onItemClick:S,activeKey:x});return f.createElement("div",{ref:t,className:b,style:a,role:s?"tablist":void 0},$)});const ph=Object.assign(XF,{Panel:EC});ph.Panel;const qF=f__namespace.forwardRef((e,t)=>{const{getPrefixCls:n}=f__namespace.useContext(at),{prefixCls:r,className:o="",showArrow:i=!0}=e,a=n("collapse",r),s=U({[`${a}-no-arrow`]:!i},o);return f__namespace.createElement(ph.Panel,Object.assign({ref:t},e,{prefixCls:a,className:s}))}),YF=qF,ZF=e=>{const{componentCls:t,collapseContentBg:n,padding:r,collapseContentPaddingHorizontal:o,collapseHeaderBg:i,collapseHeaderPadding:a,collapseHeaderPaddingSM:s,collapseHeaderPaddingLG:l,collapsePanelBorderRadius:c,lineWidth:d,lineType:u,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=`${d}px ${u} ${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}}}}})}},QF=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow svg`;return {[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},JF=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}}}},e3=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}}}}}},t3=sn("Collapse",e=>{const t=xt(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 [ZF(t),JF(t),e3(t),QF(t),cy(t)]}),n3=f__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=f__namespace.useContext(at),{prefixCls:o,className:i,rootClassName:a,bordered:s=!0,ghost:l,size:c,expandIconPosition:d="start",children:u,expandIcon:m}=e,h=Pr($=>{var P;return (P=c??$)!==null&&P!==void 0?P:"middle"}),v=n("collapse",o),g=n(),[p,b]=t3(v),y=f__namespace.useMemo(()=>d==="left"?"start":d==="right"?"end":d,[d]),w=function(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const P=m?m($):f__namespace.createElement(By,{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({},ay(g)),{motionAppear:!1,leavedClassName:`${v}-content-hidden`}),S=f__namespace.useMemo(()=>u?dr(u).map(($,P)=>{var O,E;if(!((O=$.props)===null||O===void 0)&&O.disabled){const T=(E=$.key)!==null&&E!==void 0?E:String(P),{disabled:_,collapsible:R}=$.props,I=Object.assign(Object.assign({},Mn($.props,["disabled"])),{key:T,collapsible:R??(_?"disabled":void 0)});return Tn($,I)}return $}):null,[u]);return p(f__namespace.createElement(ph,Object.assign({ref:t,openMotion:C},Mn(e,["rootClassName"]),{expandIcon:w,prefixCls:v,className:x}),S))}),r3=Object.assign(n3,{Panel:YF});var o3=["v"],hc=function(e){fi(n,e);var t=mi(n);function n(r){return Cn(this,n),t.call(this,s3(r))}return Sn(n,[{key:"toHsbString",value:function(){var o=this.toHsb(),i=ni(o.s*100),a=ni(o.b*100),s=ni(o.h),l=o.a,c="hsb(".concat(s,", ").concat(i,"%, ").concat(a,"%)"),d="hsba(".concat(s,", ").concat(i,"%, ").concat(a,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?c:d}},{key:"toHsb",value:function(){var o=this.toHsv();ot(this.originalInput)==="object"&&this.originalInput&&"h"in this.originalInput&&(o=this.originalInput);var i=o;i.v;var a=Ue(i,o3);return V(V({},a),{},{b:o.v})}}]),n}(Zt),i3=["b"],a3="rc-color-picker",ni=function(t){return Math.round(Number(t||0))},s3=function(t){if(t&&ot(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,o=Ue(n,i3);return V(V({},o),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},_o=function(t){return t instanceof hc?t:new hc(t)},l3=_o("#1677ff"),OC=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,d=r.current.getBoundingClientRect(),u=d.width,m=d.height,h=u/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 _o(V(V({},b),{},{h:w<=0?0:w}));case"alpha":return _o(V(V({},b),{},{a:y<=0?0:y}))}return _o({h:b.h,s:g<=0?0:g,b:p>=1?1:p,a:b.a})},PC=function(t,n,r,o){var i=t.current.getBoundingClientRect(),a=i.width,s=i.height,l=n.current.getBoundingClientRect(),c=l.width,d=l.height,u=c/2,m=d/2,h=r.toHsb();if(!(c===0&&d===0||c!==d)){if(o)switch(o){case"hue":return {x:h.h/360*a-u,y:-m/3};case"alpha":return {x:h.a/1*a-u,y:-m/3}}return {x:h.s*a-u,y:(1-h.b)*s-m}}},bh=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 c3(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 IC(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,d=f.useState(t||{x:0,y:0}),u=X(d,2),m=u[0],h=u[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 $=c3(S),P=$.pageX,O=$.pageY,E=r.current.getBoundingClientRect(),T=E.x,_=E.y,R=E.width,I=E.height,M=n.current.getBoundingClientRect(),A=M.width,N=M.height,D=A/2,F=N/2,z=Math.max(0,Math.min(P-T,R))-D,H=Math.max(0,Math.min(O-_,I))-F,k={x:z,y:o==="x"?m.y:H};if(A===0&&N===0||A!==N)return !1;h(k),i==null||i(k);},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 _C=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}})},RC=function(t){var n=t.children,r=t.style,o=t.prefixCls;return f.createElement("div",{className:"".concat(o,"-palette"),style:V({position:"relative"},r)},n)},MC=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)}),u3=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=IC({color:n,containerRef:s,targetRef:l,calculate:function(v){return PC(v,l,n)},onDragChange:function(v){return r(OC({offset:v,targetRef:l,containerRef:s,color:n}))},onDragChangeComplete:i,disabledDrag:a}),d=X(c,2),u=d[0],m=d[1];return f.createElement("div",{ref:s,className:"".concat(o,"-select"),onMouseDown:m,onTouchStart:m},f.createElement(RC,{prefixCls:o},f.createElement(MC,{offset:u,ref:l},f.createElement(_C,{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))"}})))},d3=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,d){var u=_o(c);return a==="alpha"&&d===n.length-1&&u.setAlpha(1),u.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)},up=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,d=t.disabled,u=t.prefixCls,m=f.useRef(),h=f.useRef(),v=IC({color:a,targetRef:h,containerRef:m,calculate:function(w){return PC(w,h,a,i)},onDragChange:function(w){l(OC({offset:w,targetRef:h,containerRef:m,color:a,type:i}));},onDragChangeComplete:function(){c==null||c(i);},direction:"x",disabledDrag:d}),g=X(v,2),p=g[0],b=g[1];return f.createElement("div",{ref:m,className:U("".concat(u,"-slider"),"".concat(u,"-slider-").concat(i)),onMouseDown:b,onTouchStart:b},f.createElement(RC,{prefixCls:u},f.createElement(MC,{offset:p,ref:h},f.createElement(_C,{size:"small",color:s,prefixCls:u})),f.createElement(d3,{colors:n,direction:r,type:i,prefixCls:u})))};function dp(e){return e!==void 0}var f3=function(t,n){var r=n.defaultValue,o=n.value,i=f.useState(function(){var c;return dp(o)?c=o:dp(r)?c=r:c=t,_o(c)}),a=X(i,2),s=a[0],l=a[1];return f.useEffect(function(){o&&l(_o(o));},[o]),[s,l]},m3=["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 h3=f.forwardRef(function(e,t){var n=e.value,r=e.defaultValue,o=e.prefixCls,i=o===void 0?a3:o,a=e.onChange,s=e.onChangeComplete,l=e.className,c=e.style,d=e.panelRender,u=e.disabledAlpha,m=u===void 0?!1:u,h=e.disabled,v=h===void 0?!1:h,g=f3(l3,{value:n,defaultValue:r}),p=X(g,2),b=p[0],y=p[1],w=f.useMemo(function(){var P=_o(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(u3,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(up,pe({gradientColors:m3,color:b,value:"hsl(".concat(b.toHsb().h,",100%, 50%)"),onChange:function(O){return S(O,"hue")}},C)),!m&&f.createElement(up,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(bh,{color:b.toRgbString(),prefixCls:i})));return f.createElement("div",{className:x,style:c,ref:t},typeof d=="function"?d($):$)}),v3=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}}})}},g3=sn("Divider",e=>{const t=xt(e,{dividerVerticalGutterMargin:e.marginXS,dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG});return [v3(t)]},{sizePaddingEdgeHorizontal:0});var p3=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const b3=e=>{const{getPrefixCls:t,direction:n}=f__namespace.useContext(at),{prefixCls:r,type:o="horizontal",orientation:i="center",orientationMargin:a,className:s,rootClassName:l,children:c,dashed:d,plain:u}=e,m=p3(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain"]),h=t("divider",r),[v,g]=g3(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`]:!!d,[`${h}-plain`]:!!u,[`${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)))},y3=b3;let fp=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 w3(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 C3="ant-color-picker",Ln=e=>e instanceof fp?e:new fp(e),S3=e=>ni(e.toHsb().a*100),Ml=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/gi,"").slice(0,t?8:6))||"",w3=(e,t)=>e?Ml(e,t):"",$3=e=>{let{prefixCls:t,value:n,colorCleared:r,onChange:o}=e;const i=()=>{if(n&&!r){const a=n.toHsb();a.a=0;const s=Ln(a);o==null||o(s);}};return f.createElement("div",{className:`${t}-clear`,onClick:i})},TC=$3;var oo;(function(e){e.hex="hex",e.rgb="rgb",e.hsb="hsb";})(oo||(oo={}));var x3={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 E3=x3;var O3=function(t,n){return f__namespace.createElement(tr,pe({},t,{ref:n,icon:E3}))};const P3=f__namespace.forwardRef(O3);function Ff(){return typeof BigInt=="function"}function ri(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 yh(e){var t=String(e);return !Number.isNaN(Number(t))&&t.includes("e")}function ws(e){var t=String(e);if(yh(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(".")&&Ch(t)?t.length-t.indexOf(".")-1:0}function gu(e){var t=String(e);if(yh(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(ws(t));}return ri(t).fullStr}function Ch(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 NC(e){return !e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}var I3=function(){function e(t){if(Cn(this,e),q(this,"origin",""),q(this,"number",void 0),q(this,"empty",void 0),NC(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(ws(this.number),ws(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()?"":gu(this.number):this.origin}}]),e}(),_3=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),NC(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(yh(n)&&(n=Number(n)),n=typeof n=="string"?n:gu(n),Ch(n)){var r=ri(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=ri(s),c=l.negativeStr,d=l.trimStr,u="".concat(c).concat(d.padStart(o+1,"0"));return new e("".concat(u.slice(0,-o),".").concat(u.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()?"":ri("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}();function vr(e){return Ff()?new _3(e):new I3(e)}function Tl(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return "";var o=ri(e),i=o.negativeStr,a=o.integerStr,s=o.decimalStr,l="".concat(t).concat(s),c="".concat(i).concat(a);if(n>=0){var d=Number(s[n]);if(d>=5&&!r){var u=vr(e).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-d));return Tl(u.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 R3=function(){var t=f.useState(!1),n=X(t,2),r=n[0],o=n[1];return Ut(function(){o(au());},[]),r},M3=200,T3=600;function N3(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,M3);}s.current=setTimeout(w,T3);},d=function(){clearTimeout(s.current);};f__namespace.useEffect(function(){return d},[]);var u=R3();if(u)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:d,onMouseLeave:d};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 mp(e){var t=typeof e=="number"?gu(e):ri(e).fullStr,n=t.includes(".");return n?ri(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}function A3(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,d=i.length;if(i.endsWith(l))d=i.length-n.current.afterTxt.length;else if(i.startsWith(s))d=s.length;else {var u=s[c-1],m=i.indexOf(u,c-1);m!==-1&&(d=m+1);}e.setSelectionRange(d,d);}catch(h){mn(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(h.message));}}return [r,o]}const D3=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 k3=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],hp=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},vp=function(t){var n=vr(t);return n.isInvalidate()?null:n},AC=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,d=c===void 0?1:c,u=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,T=e.onPressEnter,_=e.onStep,R=Ue(e,k3),I="".concat(o,"-input"),M=f__namespace.useRef(null),A=f__namespace.useState(!1),N=X(A,2),D=N[0],F=N[1],z=f__namespace.useRef(!1),H=f__namespace.useRef(!1),k=f__namespace.useRef(!1),W=f__namespace.useState(function(){return vr(m??u)}),B=X(W,2),K=B[0],te=B[1];function Z(Oe){m===void 0&&te(Oe);}var Y=f__namespace.useCallback(function(Oe,Pe){if(!Pe)return $>=0?$:Math.max(ws(Oe),ws(d))},[$,d]),ee=f__namespace.useCallback(function(Oe){var Pe=String(Oe);if(C)return C(Pe);var ze=Pe;return P&&(ze=ze.replace(P,".")),ze.replace(/[^\w.-]+/g,"")},[C,P]),re=f__namespace.useRef(""),ae=f__namespace.useCallback(function(Oe,Pe){if(S)return S(Oe,{userTyping:Pe,input:String(re.current)});var ze=typeof Oe=="number"?gu(Oe):Oe;if(!Pe){var Re=Y(ze,Pe);if(Ch(ze)&&(P||Re>=0)){var Qe=P||".";ze=Tl(ze,Qe,Re);}}return ze},[S,Y,P]),ue=f__namespace.useState(function(){var Oe=u??m;return K.isInvalidate()&&["string","number"].includes(ot(Oe))?Number.isNaN(Oe)?"":Oe:ae(K.toString(),!1)}),ie=X(ue,2),me=ie[0],ye=ie[1];re.current=me;function ce(Oe,Pe){ye(ae(Oe.isInvalidate()?Oe.toString(!1):Oe.toString(!Pe),Pe));}var he=f__namespace.useMemo(function(){return vp(l)},[l,$]),ne=f__namespace.useMemo(function(){return vp(s)},[s,$]),fe=f__namespace.useMemo(function(){return !he||!K||K.isInvalidate()?!1:he.lessEquals(K)},[he,K]),se=f__namespace.useMemo(function(){return !ne||!K||K.isInvalidate()?!1:K.lessEquals(ne)},[ne,K]),le=A3(M.current,D),_e=X(le,2),Ve=_e[0],Ze=_e[1],$e=function(Pe){return he&&!Pe.lessEquals(he)?he:ne&&!ne.lessEquals(Pe)?ne:null},Le=function(Pe){return !$e(Pe)},tt=function(Pe,ze){var Re=Pe,Qe=Le(Re)||Re.isEmpty();if(!Re.isEmpty()&&!ze&&(Re=$e(Re)||Re,Qe=!0),!v&&!h&&Qe){var wt=Re.toString(),Lt=Y(wt,ze);return Lt>=0&&(Re=vr(Tl(wt,".",Lt)),Le(Re)||(Re=vr(Tl(wt,".",Lt,!0)))),Re.equals(K)||(Z(Re),O==null||O(Re.isEmpty()?null:hp(x,Re)),m===void 0&&ce(Re,ze)),Re}return K},Ke=D3(),Xe=function Oe(Pe){if(Ve(),ye(Pe),!H.current){var ze=ee(Pe),Re=vr(ze);Re.isNaN()||tt(Re,!0);}E==null||E(Pe),Ke(function(){var Qe=Pe;C||(Qe=Pe.replace(/。/g,".")),Qe!==Pe&&Oe(Qe);});},De=function(){H.current=!0;},Fe=function(){H.current=!1,Xe(M.current.value);},ut=function(Pe){Xe(Pe.target.value);},st=function(Pe){var ze;if(!(Pe&&fe||!Pe&&se)){z.current=!1;var Re=vr(k.current?mp(d):d);Pe||(Re=Re.negate());var Qe=(K||vr(0)).add(Re.toString()),wt=tt(Qe,!1);_==null||_(hp(x,wt),{offset:k.current?mp(d):d,type:Pe?"up":"down"}),(ze=M.current)===null||ze===void 0||ze.focus();}},be=function(Pe){var ze=vr(ee(me)),Re=ze;ze.isNaN()?Re=K:Re=tt(ze,Pe),m!==void 0?ce(K,!1):Re.isNaN()||ce(Re,!1);},xe=function(){z.current=!0;},qe=function(Pe){var ze=Pe.which,Re=Pe.shiftKey;z.current=!0,Re?k.current=!0:k.current=!1,ze===J.ENTER&&(H.current||(z.current=!1),be(!1),T==null||T(Pe)),b!==!1&&!H.current&&[J.UP,J.DOWN].includes(ze)&&(st(J.UP===ze),Pe.preventDefault());},Be=function(){z.current=!1,k.current=!1;},dt=function(){be(!1),F(!1),z.current=!1;};return Wi(function(){K.isInvalidate()||ce(K,!1);},[$]),Wi(function(){var Oe=vr(m);te(Oe);var Pe=vr(ee(me));(!Oe.equals(Pe)||!z.current||S)&&ce(Oe,z.current);},[m]),Wi(function(){S&&Ze();},[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()&&!Le(K)),n)),style:a,onFocus:function(){F(!0);},onBlur:dt,onKeyDown:qe,onKeyUp:Be,onCompositionStart:De,onCompositionEnd:Fe,onBeforeInput:xe},w&&f__namespace.createElement(N3,{prefixCls:o,upNode:g,downNode:p,upDisabled:fe,downDisabled:se,onStep:st}),f__namespace.createElement("div",{className:"".concat(I,"-wrap")},f__namespace.createElement("input",pe({autoComplete:"off",role:"spinbutton","aria-valuemin":s,"aria-valuemax":l,"aria-valuenow":K.isInvalidate()?null:K.toString(),step:d},R,{ref:Fn(M,t),className:I,value:me,onChange:ut,disabled:h,readOnly:v}))))});AC.displayName="InputNumber";const L3=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorBorder:o,borderRadius:i,fontSizeLG:a,controlHeightLG:s,controlHeightSM:l,colorError:c,inputPaddingHorizontalSM:d,colorTextDescription:u,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)),hu(e)),mu(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 ${d}px`}},"&:hover":Object.assign({},Gs(e)),"&-focused":Object.assign({},mc(e)),"&-disabled":Object.assign(Object.assign({},hh(e)),{[`${t}-input`]:{cursor:"not-allowed"}}),"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},Kt(e)),hC(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"}),dC(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:u,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:u,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}}}]},F3=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({},hu(e)),mu(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({},Gs(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}}})}},z3=sn("InputNumber",e=>{const t=vC(e);return [L3(t),F3(t),ru(t)]},e=>({controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:"auto"}));var j3=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.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=f__namespace.useContext(at),[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:d,prefixCls:u,addonBefore:m,addonAfter:h,prefix:v,bordered:g=!0,readOnly:p,status:b,controls:y}=e,w=j3(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),x=n("input-number",u),[C,S]=z3(x),{compactSize:$,compactItemClassnames:P}=ba(x,r);let O=f__namespace.createElement(P3,{className:`${x}-handler-up-inner`}),E=f__namespace.createElement(_y,{className:`${x}-handler-down-inner`});const T=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:_,status:R,isFormItemInput:I,feedbackIcon:M}=f__namespace.useContext(Gr),A=lu(R,b),N=Pr(B=>{var K;return (K=$??c)!==null&&K!==void 0?K:B}),D=v!=null||_,F=!!(m||h),z=f__namespace.useContext(Ao),H=d??z,k=U({[`${x}-lg`]:N==="large",[`${x}-sm`]:N==="small",[`${x}-rtl`]:r==="rtl",[`${x}-borderless`]:!g,[`${x}-in-form-item`]:I},co(x,A),P,S,s,!D&&!F&&l);let W=f__namespace.createElement(AC,Object.assign({ref:a,disabled:H,className:k,upHandler:O,downHandler:E,prefixCls:x,readOnly:p,controls:T},w));if(D){const B=U(`${x}-affix-wrapper`,co(`${x}-affix-wrapper`,A,_),{[`${x}-affix-wrapper-focused`]:o,[`${x}-affix-wrapper-disabled`]:e.disabled,[`${x}-affix-wrapper-sm`]:N==="small",[`${x}-affix-wrapper-lg`]:N==="large",[`${x}-affix-wrapper-rtl`]:r==="rtl",[`${x}-affix-wrapper-readonly`]:p,[`${x}-affix-wrapper-borderless`]:!g},!F&&s,!F&&l,S);W=f__namespace.createElement("div",{className:B,style:e.style,onMouseUp:()=>a.current.focus()},v&&f__namespace.createElement("span",{className:`${x}-prefix`},v),Tn(W,{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);}}),_&&f__namespace.createElement("span",{className:`${x}-suffix`},M));}if(F){const B=`${x}-group`,K=`${B}-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`,B,S,{[`${B}-rtl`]:r==="rtl"}),ee=U(`${x}-group-wrapper`,{[`${x}-group-wrapper-sm`]:N==="small",[`${x}-group-wrapper-lg`]:N==="large",[`${x}-group-wrapper-rtl`]:r==="rtl"},co(`${x}-group-wrapper`,A,_),S,s,l);W=f__namespace.createElement("div",{className:ee,style:e.style},f__namespace.createElement("div",{className:Y},te&&f__namespace.createElement(aa,null,f__namespace.createElement(tc,{status:!0,override:!0},te)),Tn(W,{style:null,disabled:H}),Z&&f__namespace.createElement(aa,null,f__namespace.createElement(tc,{status:!0,override:!0},Z))));}return C(W)}),kC=DC,H3=e=>f__namespace.createElement(Fm,{theme:{components:{InputNumber:{handleVisible:!0}}}},f__namespace.createElement(DC,Object.assign({},e)));kC._InternalPanelDoNotUseOrYouWillBeFired=H3;const zf=kC,B3=e=>{let{prefixCls:t,min:n=0,max:r=100,value:o,onChange:i,className:a,formatter:s}=e;const l=`${t}-steppers`,[c,d]=f.useState(o);return f.useEffect(()=>{Number.isNaN(o)||d(o);},[o]),f.createElement(zf,{className:U(l,a),min:n,max:r,value:c,formatter:s,size:"small",onChange:u=>{o||d(u||0),i==null||i(u);}})},oi=B3,W3=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 d=Ln(c);n||a(d),r==null||r(d);};return f.createElement(oi,{value:S3(i),prefixCls:t,formatter:l=>`${l}%`,className:o,onChange:s})},V3=W3,G3=e=>{const{getPrefixCls:t,direction:n}=f.useContext(at),{prefixCls:r,className:o=""}=e,i=t("input-group",r),a=t("input"),[s,l]=vh(a),c=U(i,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:n==="rtl"},l,o),d=f.useContext(Gr),u=f.useMemo(()=>Object.assign(Object.assign({},d),{isFormItemInput:!1}),[d]);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:u},e.children)))},U3=G3;function Ni(e){return !!(e.addonBefore||e.addonAfter)}function hd(e){return !!(e.prefix||e.suffix||e.allowClear)}function ts(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 K3(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 LC=function(t){var n,r,o=t.inputElement,i=t.prefixCls,a=t.prefix,s=t.suffix,l=t.addonBefore,c=t.addonAfter,d=t.className,u=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(H){var k;(k=P.current)!==null&&k!==void 0&&k.contains(H.target)&&(g==null||g());},E=function(){var H;if(!p)return null;var k=!m&&!h&&b,W="".concat(i,"-clear-icon"),B=ot(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(W,(H={},q(H,"".concat(W,"-hidden"),!k),q(H,"".concat(W,"-has-suffix"),!!s),H)),role:"button",tabIndex:-1},B)},T=f.cloneElement(o,{value:b,hidden:w,className:U((n=o.props)===null||n===void 0?void 0:n.className,!hd(t)&&!Ni(t)&&d)||null,style:V(V({},(r=o.props)===null||r===void 0?void 0:r.style),!hd(t)&&!Ni(t)?u:{})});if(hd(t)){var _,R="".concat(i,"-affix-wrapper"),I=U(R,(_={},q(_,"".concat(R,"-disabled"),m),q(_,"".concat(R,"-focused"),v),q(_,"".concat(R,"-readonly"),h),q(_,"".concat(R,"-input-with-clear-btn"),s&&p&&b),_),!Ni(t)&&d,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);T=f.createElement("span",pe({className:I,style:Ni(t)?void 0:u,hidden:!Ni(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(Ni(t)){var A="".concat(i,"-group"),N="".concat(A,"-addon"),D=U("".concat(i,"-wrapper"),A,x==null?void 0:x.wrapper),F=U("".concat(i,"-group-wrapper"),d,x==null?void 0:x.group);return f.createElement("span",{className:F,style:u,hidden:w},f.createElement("span",{className:D},l&&f.createElement("span",{className:N},l),f.cloneElement(T,{hidden:null}),c&&f.createElement("span",{className:N},c)))}return T},X3=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],q3=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,d=e.disabled,u=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,X3),S=Qt(e.defaultValue,{value:e.value}),$=X(S,2),P=$[0],O=$[1],E=f.useState(!1),T=X(E,2),_=T[0],R=T[1],I=f.useRef(null),M=function(B){I.current&&K3(I.current,B);};f.useImperativeHandle(t,function(){return {focus:M,blur:function(){var B;(B=I.current)===null||B===void 0||B.blur();},setSelectionRange:function(B,K,te){var Z;(Z=I.current)===null||Z===void 0||Z.setSelectionRange(B,K,te);},select:function(){var B;(B=I.current)===null||B===void 0||B.select();},input:I.current}}),f.useEffect(function(){R(function(W){return W&&d?!1:W});},[d]);var A=function(B){e.value===void 0&&O(B.target.value),I.current&&ts(I.current,B,r);},N=function(B){a&&B.key==="Enter"&&a(B),s==null||s(B);},D=function(B){R(!0),o==null||o(B);},F=function(B){R(!1),i==null||i(B);},z=function(B){O(""),M(),I.current&&ts(I.current,B,r);},H=function(){var B=Mn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return f.createElement("input",pe({autoComplete:n},B,{onChange:A,onFocus:D,onBlur:F,onKeyDown:N,className:U(c,q({},"".concat(c,"-disabled"),d),w==null?void 0:w.input),style:x==null?void 0:x.input,ref:I,size:u,type:b}))},k=function(){var B=Number(h)>0;if(v||g){var K=jf(P),te=ge(K).length,Z=ot(g)==="object"?g.formatter({value:K,count:te,maxLength:h}):"".concat(te).concat(B?" / ".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:V({},x==null?void 0:x.count)},Z),v)}return null};return f.createElement(LC,pe({},C,{prefixCls:c,className:m,inputElement:H(),handleReset:z,value:jf(P),focused:_,triggerFocus:M,suffix:k(),disabled:d,classes:y,classNames:w,styles:x}))});function FC(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 Y3(e){return !!(e.prefix||e.suffix||e.allowClear)}var Z3=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 Q3(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 J3=f.forwardRef((e,t)=>{const{prefixCls:n,bordered:r=!0,status:o,size:i,disabled:a,onBlur:s,onFocus:l,suffix:c,allowClear:d,addonAfter:u,addonBefore:m,className:h,rootClassName:v,onChange:g,classNames:p}=e,b=Z3(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","rootClassName","onChange","classNames"]),{getPrefixCls:y,direction:w,input:x}=f.useContext(at),C=y("input",n),S=f.useRef(null),[$,P]=vh(C),{compactSize:O,compactItemClassnames:E}=ba(C,w),T=Pr(te=>{var Z;return (Z=O??i)!==null&&Z!==void 0?Z:te}),_=f.useContext(Ao),R=a??_,{status:I,hasFeedback:M,feedbackIcon:A}=f.useContext(Gr),N=lu(I,o),D=Y3(e)||!!M,F=f.useRef(D);f.useEffect(()=>{D&&F.current,F.current=D;},[D]);const z=FC(S,!0),H=te=>{z(),s==null||s(te);},k=te=>{z(),l==null||l(te);},W=te=>{z(),g==null||g(te);},B=(M||c)&&f.createElement(f.Fragment,null,c,M&&A);let K;return typeof d=="object"&&(d!=null&&d.clearIcon)?K=d:d&&(K={clearIcon:f.createElement(jm,null)}),$(f.createElement(q3,Object.assign({ref:Fn(t,S),prefixCls:C,autoComplete:x==null?void 0:x.autoComplete},b,{disabled:R,onBlur:H,onFocus:k,suffix:B,allowClear:K,className:U(h,v,E),onChange:W,addonAfter:u&&f.createElement(aa,null,f.createElement(tc,{override:!0,status:!0},u)),addonBefore:m&&f.createElement(aa,null,f.createElement(tc,{override:!0,status:!0},m)),classNames:Object.assign(Object.assign({},p),{input:U({[`${C}-sm`]:T==="small",[`${C}-lg`]:T==="large",[`${C}-rtl`]:w==="rtl",[`${C}-borderless`]:!r},!D&&co(C,N),p==null?void 0:p.input,P)}),classes:{affixWrapper:U({[`${C}-affix-wrapper-sm`]:T==="small",[`${C}-affix-wrapper-lg`]:T==="large",[`${C}-affix-wrapper-rtl`]:w==="rtl",[`${C}-affix-wrapper-borderless`]:!r},co(`${C}-affix-wrapper`,N,M),P),wrapper:U({[`${C}-group-rtl`]:w==="rtl"},P),group:U({[`${C}-group-wrapper-sm`]:T==="small",[`${C}-group-wrapper-lg`]:T==="large",[`${C}-group-wrapper-rtl`]:w==="rtl",[`${C}-group-wrapper-disabled`]:R},co(`${C}-group-wrapper`,N,M),P)}})))}),Sh=J3;var ez={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 tz=ez;var nz=function(t,n){return f__namespace.createElement(tr,pe({},t,{ref:n,icon:tz}))};const rz=f__namespace.forwardRef(nz);var oz={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 iz=oz;var az=function(t,n){return f__namespace.createElement(tr,pe({},t,{ref:n,icon:iz}))};const sz=f__namespace.forwardRef(az);var lz=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 cz=e=>e?f__namespace.createElement(sz,null):f__namespace.createElement(rz,null),uz={click:"onClick",hover:"onMouseOver"},dz=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=FC(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:$=cz}=e,P=uz[S]||"",O=$(o),E={[P]:l,className:`${C}-icon`,key:"passwordIcon",onMouseDown:T=>{T.preventDefault();},onMouseUp:T=>{T.preventDefault();}};return f__namespace.cloneElement(f__namespace.isValidElement(O)?O:f__namespace.createElement("span",null,O),E)},{className:d,prefixCls:u,inputPrefixCls:m,size:h}=e,v=lz(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:g}=f__namespace.useContext(at),p=g("input",m),b=g("input-password",u),y=n&&c(b),w=U(b,d,{[`${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(Sh,Object.assign({ref:Fn(t,a)},x))}),fz=dz;var mz=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 hz=f__namespace.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:i,suffix:a,enterButton:s=!1,addonAfter:l,loading:c,disabled:d,onSearch:u,onChange:m,onCompositionStart:h,onCompositionEnd:v}=e,g=mz(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:p,direction:b}=f__namespace.useContext(at),y=f__namespace.useRef(!1),w=p("input-search",n),x=p("input",r),{compactSize:C}=ba(w,b),S=Pr(z=>{var H;return (H=C??i)!==null&&H!==void 0?H:z}),$=f__namespace.useRef(null),P=z=>{z&&z.target&&z.type==="click"&&u&&u(z.target.value,z),m&&m(z);},O=z=>{var H;document.activeElement===((H=$.current)===null||H===void 0?void 0:H.input)&&z.preventDefault();},E=z=>{var H,k;u&&u((k=(H=$.current)===null||H===void 0?void 0:H.input)===null||k===void 0?void 0:k.value,z);},T=z=>{y.current||c||E(z);},_=typeof s=="boolean"?f__namespace.createElement(Ry,null):null,R=`${w}-button`;let I;const M=s||{},A=M.type&&M.type.__ANT_BUTTON===!0;A||M.type==="button"?I=Tn(M,Object.assign({onMouseDown:O,onClick:z=>{var H,k;(k=(H=M==null?void 0:M.props)===null||H===void 0?void 0:H.onClick)===null||k===void 0||k.call(H,z),E(z);},key:"enterButton"},A?{className:R,size:S}:{})):I=f__namespace.createElement(In,{className:R,type:s?"primary":void 0,size:S,disabled:d,key:"enterButton",onMouseDown:O,onClick:E,loading:c,icon:_},s),l&&(I=[I,Tn(l,{key:"addonAfter"})]);const N=U(w,{[`${w}-rtl`]:b==="rtl",[`${w}-${S}`]:!!S,[`${w}-with-button`]:!!s},o),D=z=>{y.current=!0,h==null||h(z);},F=z=>{y.current=!1,v==null||v(z);};return f__namespace.createElement(Sh,Object.assign({ref:Fn($,t),onPressEnter:T},g,{size:S,onCompositionStart:D,onCompositionEnd:F,prefixCls:x,addonAfter:I,suffix:a,onChange:P,className:N,disabled:d}))}),vz=hz;var gz=`
  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;
`,pz=["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"],vd={},ar;function bz(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&&vd[n])return vd[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=pz.map(function(c){return "".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(vd[n]=l),l}function yz(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;ar||(ar=document.createElement("textarea"),ar.setAttribute("tab-index","-1"),ar.setAttribute("aria-hidden","true"),document.body.appendChild(ar)),e.getAttribute("wrap")?ar.setAttribute("wrap",e.getAttribute("wrap")):ar.removeAttribute("wrap");var o=bz(e,t),i=o.paddingSize,a=o.borderSize,s=o.boxSizing,l=o.sizingStyle;ar.setAttribute("style","".concat(l,";").concat(gz)),ar.value=e.value||e.placeholder||"";var c=void 0,d=void 0,u,m=ar.scrollHeight;if(s==="border-box"?m+=a:s==="content-box"&&(m-=i),n!==null||r!==null){ar.value=" ";var h=ar.scrollHeight-i;n!==null&&(c=h*n,s==="border-box"&&(c=c+i+a),m=Math.max(c,m)),r!==null&&(d=h*r,s==="border-box"&&(d=d+i+a),u=m>d?"":"hidden",m=Math.min(d,m));}var v={height:m,overflowY:u,resize:"none"};return c&&(v.minHeight=c),d&&(v.maxHeight=d),v}var Cz=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],gd=0,pd=1,bd=2,Sz=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,d=n.disabled,u=n.onChange;n.onInternalAutoSize;var m=Ue(n,Cz),h=Qt(o,{value:i,postState:function(B){return B??""}}),v=X(h,2),g=v[0],p=v[1],b=function(B){p(B.target.value),u==null||u(B);},y=f__namespace.useRef();f__namespace.useImperativeHandle(t,function(){return {textArea:y.current}});var w=f__namespace.useMemo(function(){return a&&ot(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 B=y.current,K=B.selectionStart,te=B.selectionEnd,Z=B.scrollTop;y.current.setSelectionRange(K,te),y.current.scrollTop=Z;}}catch{}},O=f__namespace.useState(bd),E=X(O,2),T=E[0],_=E[1],R=f__namespace.useState(),I=X(R,2),M=I[0],A=I[1],N=function(){_(gd);};Ut(function(){$&&N();},[i,C,S,$]),Ut(function(){if(T===gd)_(pd);else if(T===pd){var W=yz(y.current,!1,C,S);_(bd),A(W);}else P();},[T]);var D=f__namespace.useRef(),F=function(){Nt.cancel(D.current);},z=function(B){T===bd&&(s==null||s(B),a&&(F(),D.current=Nt(function(){N();})));};f__namespace.useEffect(function(){return F},[]);var H=$?M:null,k=V(V({},c),H);return (T===gd||T===pd)&&(k.overflowY="hidden",k.overflowX="hidden"),f__namespace.createElement(fo,{onResize:z,disabled:!(a||s)},f__namespace.createElement("textarea",pe({},m,{ref:y,style:k,className:U(r,l,q({},"".concat(r,"-disabled"),d)),disabled:d,value:g,onChange:b})))}),wz=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles"];function zC(e,t){return ge(e||"").slice(0,t).join("")}function gp(e,t,n,r){var o=n;return e?o=zC(n,r):ge(t||"").length<n.length&&ge(n||"").length>r&&(o=t),o}var $z=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,d=e.onCompositionStart,u=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,wz),P=Qt(r,{value:o,defaultValue:r}),O=X(P,2),E=O[0],T=O[1],_=f.useRef(null),R=f.useState(!1),I=X(R,2),M=I[0],A=I[1],N=f.useState(!1),D=X(N,2),F=D[0],z=D[1],H=f.useRef(),k=f.useRef(0),W=function(){_.current.textArea.focus();};f.useImperativeHandle(t,function(){return {resizableTextArea:_.current,focus:W,blur:function(){_.current.textArea.blur();}}}),f.useEffect(function(){A(function(he){return !w&&he});},[w]);var B=Number(c)>0,K=function(ne){z(!0),H.current=E,k.current=ne.currentTarget.selectionStart,d==null||d(ne);},te=function(ne){z(!1);var fe=ne.currentTarget.value;if(B){var se,le=k.current>=c+1||k.current===((se=H.current)===null||se===void 0?void 0:se.length);fe=gp(le,H.current,fe,c);}fe!==E&&(T(fe),ts(ne.currentTarget,ne,s,fe)),u==null||u(ne);},Z=function(ne){var fe=ne.target.value;if(!F&&B){var se=ne.target.selectionStart>=c+1||ne.target.selectionStart===fe.length||!ne.target.selectionStart;fe=gp(se,E,fe,c);}T(fe),ts(ne.currentTarget,ne,s,fe);},Y=function(ne){var fe=$.onPressEnter,se=$.onKeyDown;ne.key==="Enter"&&fe&&fe(ne),se==null||se(ne);},ee=function(ne){A(!0),i==null||i(ne);},re=function(ne){A(!1),a==null||a(ne);},ae=function(ne){T(""),W(),ts(_.current.textArea,ne,s);},ue=jf(E);!F&&B&&o==null&&(ue=zC(ue,c));var ie=m,me;if(p){var ye=ge(ue).length;ot(p)==="object"?me=p.formatter({value:ue,count:ye,maxLength:c}):me="".concat(ye).concat(B?" / ".concat(c):""),ie=f.createElement(f.Fragment,null,ie,f.createElement("span",{className:U("".concat(v,"-data-count"),C==null?void 0:C.count),style:S==null?void 0:S.count},me));}var ce=f.createElement(LC,{value:ue,allowClear:l,handleReset:ae,suffix:ie,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(Sz,pe({},$,{onKeyDown:Y,onChange:Z,onFocus:ee,onBlur:re,onCompositionStart:K,onCompositionEnd:te,className:C==null?void 0:C.textarea,style:V(V({},S==null?void 0:S.textarea),{},{resize:y==null?void 0:y.resize}),disabled:w,prefixCls:v,ref:_}))});return ce}),xz=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 Ez=f.forwardRef((e,t)=>{var{prefixCls:n,bordered:r=!0,size:o,disabled:i,status:a,allowClear:s,showCount:l,classNames:c}=e,d=xz(e,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames"]);const{getPrefixCls:u,direction:m}=f__namespace.useContext(at),h=Pr(o),v=f__namespace.useContext(Ao),g=i??v,{status:p,hasFeedback:b,feedbackIcon:y}=f__namespace.useContext(Gr),w=lu(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 T,_;Q3((_=(T=x.current)===null||T===void 0?void 0:T.resizableTextArea)===null||_===void 0?void 0:_.textArea,E);},blur:()=>{var E;return (E=x.current)===null||E===void 0?void 0:E.blur()}}});const C=u("input",n);let S;typeof s=="object"&&(s!=null&&s.clearIcon)?S=s:s&&(S={clearIcon:f__namespace.createElement(jm,null)});const[$,P]=vh(C);return $(f__namespace.createElement($z,Object.assign({},d,{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},co(`${C}-affix-wrapper`,w),P)},classNames:Object.assign(Object.assign({},c),{textarea:U({[`${C}-borderless`]:!r,[`${C}-sm`]:h==="small",[`${C}-lg`]:h==="large"},co(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})))}),Oz=Ez,Us=Sh;Us.Group=U3;Us.Search=vz;Us.TextArea=Oz;Us.Password=fz;const Pz=Us,Iz=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,pp=e=>Iz.test(`#${e}`),_z=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();pp(l)&&n&&a(Ml(l));},[n]);const s=l=>{const c=l.target.value;a(Ml(c)),pp(Ml(c,!0))&&(r==null||r(Ln(c)));};return f.createElement(Pz,{className:o,value:i==null?void 0:i.toUpperCase(),prefix:"#",onChange:s,size:"small"})},Rz=_z,Mz=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 d=i.toHsb();d[c]=c==="h"?l:(l||0)/100;const u=Ln(d);n||a(u),r==null||r(u);};return f.createElement("div",{className:o},f.createElement(oi,{max:360,min:0,value:Number(i.toHsb().h),prefixCls:t,className:o,formatter:l=>ni(l||0).toString(),onChange:l=>s(Number(l),"h")}),f.createElement(oi,{max:100,min:0,value:Number(i.toHsb().s)*100,prefixCls:t,className:o,formatter:l=>`${ni(l||0)}%`,onChange:l=>s(Number(l),"s")}),f.createElement(oi,{max:100,min:0,value:Number(i.toHsb().b)*100,prefixCls:t,className:o,formatter:l=>`${ni(l||0)}%`,onChange:l=>s(Number(l),"b")}))},Tz=Mz,Nz=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 d=i.toRgb();d[c]=l||0;const u=Ln(d);n||a(u),r==null||r(u);};return f.createElement("div",{className:o},f.createElement(oi,{max:255,min:0,value:Number(i.toRgb().r),prefixCls:t,className:o,onChange:l=>s(Number(l),"r")}),f.createElement(oi,{max:255,min:0,value:Number(i.toRgb().g),prefixCls:t,className:o,onChange:l=>s(Number(l),"g")}),f.createElement(oi,{max:255,min:0,value:Number(i.toRgb().b),prefixCls:t,className:o,onChange:l=>s(Number(l),"b")}))},Az=Nz,Dz=[oo.hex,oo.hsb,oo.rgb].map(e=>({value:e,label:e.toLocaleUpperCase()})),kz=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=u=>{s(u);},d=f.useMemo(()=>{const u={value:r,prefixCls:t,onChange:i};switch(a){case oo.hsb:return f.createElement(Tz,Object.assign({},u));case oo.rgb:return f.createElement(Az,Object.assign({},u));case oo.hex:default:return f.createElement(Rz,Object.assign({},u))}},[a,t,r,i]);return f.createElement("div",{className:`${l}-container`},f.createElement(gD,{value:a,bordered:!1,getPopupContainer:u=>u,popupMatchSelectWidth:68,placement:"bottomRight",onChange:c,className:`${t}-format-select`,size:"small",options:Dz}),f.createElement("div",{className:l},d),f.createElement(V3,{prefixCls:t,value:r,onChange:i}))},Lz=kz,yd=e=>e.map(t=>(t.colors=t.colors.map(Ln),t)),Fz=(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},zz=e=>{let{prefixCls:t,presets:n,value:r,onChange:o}=e;const[i]=Dm("ColorPicker"),{token:{colorBgElevated:a}}=la.useToken(),[s]=Qt(yd(n),{value:yd(n),postState:yd}),l=`${t}-presets`,c=f.useMemo(()=>s.map(m=>`panel-${m.label}`),[s]),d=m=>{o==null||o(m);},u=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(bh,{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`]:Fz(v,a)}),onClick:()=>d(v)})):f.createElement("span",{className:`${l}-empty`},i.presetEmpty))}});return f.createElement("div",{className:l},f.createElement(r3,{defaultActiveKey:c,ghost:!0,items:u}))},jz=zz;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};const Bz=e=>{const{prefixCls:t,allowClear:n,presets:r,onChange:o,onClear:i,onChangeComplete:a,color:s,colorCleared:l}=e,c=Hz(e,["prefixCls","allowClear","presets","onChange","onClear","onChangeComplete","color","colorCleared"]),d=`${t}-inner-panel`,u=m=>f.createElement("div",{className:d},n&&f.createElement(TC,Object.assign({prefixCls:t,value:s,colorCleared:l,onChange:h=>{o==null||o(h),i==null||i();}},c)),m,f.createElement(Lz,Object.assign({value:s,onChange:o,prefixCls:t},c)),Array.isArray(r)&&f.createElement(f.Fragment,null,f.createElement(y3,{className:`${d}-divider`}),f.createElement(jz,{value:s,presets:r,prefixCls:t,onChange:o})));return f.createElement(h3,{prefixCls:t,value:s==null?void 0:s.toHsb(),onChange:(m,h)=>o==null?void 0:o(m,h,!0),panelRender:u,onChangeComplete:a})},Wz=Bz;var Vz=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 Gz=f.forwardRef((e,t)=>{const{color:n,prefixCls:r,open:o,colorCleared:i,disabled:a,className:s}=e,l=Vz(e,["color","prefixCls","open","colorCleared","disabled","className"]),c=`${r}-trigger`,d=f.useMemo(()=>i?f.createElement(TC,{prefixCls:r}):f.createElement(bh,{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),d)}),Uz=Gz;function bp(e){return e!==void 0}const Kz=(e,t)=>{const{defaultValue:n,value:r}=t,[o,i]=f.useState(()=>{let a;return bp(r)?a=r:bp(n)?a=n:a=e,Ln(a||"")});return f.useEffect(()=>{r&&i(Ln(r));},[r]),[o,i]},Xz=Kz,jC=(e,t)=>({backgroundImage:`conic-gradient(${t} 0 25%, transparent 0 50%, ${t} 0 75%, transparent 0)`,backgroundSize:`${e} ${e}`}),qz=(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},jC("50%",e.colorFillSecondary)),{[`${n}-color-block-inner`]:{width:"100%",height:"100%",border:`${i}px solid ${a}`,borderRadius:"inherit"}})}},HC=qz,Yz=e=>{const{componentCls:t,antCls:n,fontSizeSM:r,lineHeightSM:o,colorPickerAlphaInputWidth:i,marginXXS:a,paddingXXS:s,controlHeightSM:l,marginXS:c,fontSizeIcon:d,paddingXS:u,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:d+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 ${u}px`,[`${n}-input`]:{fontSize:r,lineHeight:`${l-2*v}px`},[`${n}-input-prefix`]:{color:m}}}}}},Zz=Yz,Qz=e=>{const{componentCls:t,controlHeightLG:n,borderRadiusSM:r,colorPickerInsetShadow:o,marginSM:i,colorBgElevated:a,colorFillSecondary:s,lineWidthBold:l,colorPickerHandlerSize:c,colorPickerHandlerSizeSM:d,colorPickerSliderHeight:u,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:d,height:d}},[`${t}-slider`]:{borderRadius:u/2,[`${t}-palette`]:{height:u},[`${t}-gradient`]:{borderRadius:u/2,boxShadow:o},"&-alpha":jC(`${u}px`,e.colorFillSecondary),marginBottom:i},[`${t}-slider-container`]:{display:"flex",gap:i,[`${t}-slider-group`]:{flex:1}}},HC(e,m))},Jz=Qz,e5=e=>{const{componentCls:t,antCls:n,colorTextQuaternary:r,paddingXXS:o,colorPickerPresetColorSize:i,fontSizeSM:a,colorText:s,lineHeightSM:l,lineWidth:c,borderRadius:d,colorFill:u,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:d,border:`${c}px solid transparent`,transition:`border-color ${e.motionDurationMid} ${e.motionEaseInBack}`},"&:hover::before":{borderColor:u},"&::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}}}},t5=e5,n5=e=>({boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),r5=e=>{const{componentCls:t}=e;return {"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},yp=(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}}}},o5=e=>{const{componentCls:t,colorPickerWidth:n,colorPrimary:r,motionDurationMid:o,colorBgElevated:i,colorTextDisabled:a,colorBgContainerDisabled:s,borderRadius:l,marginXS:c,marginSM:d,controlHeight:u,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:`${d}px 0 ${c}px`}}},Jz(e)),Zz(e)),t5(e)),yp(e,v)),"&-trigger":Object.assign(Object.assign({width:u,height:u,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({},n5(e)),{borderColor:r}),"&:hover":{borderColor:r},"&-disabled":{color:a,background:s,cursor:"not-allowed","&:hover":{borderColor:h}}},yp(e,m)),HC(e,m))},r5(e))}]},i5=sn("ColorPicker",e=>{const{colorTextQuaternary:t,marginSM:n}=e,r=8,o=xt(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 [o5(o)]}),wh=e=>{const{value:t,defaultValue:n,format:r,allowClear:o=!1,presets:i,children:a,trigger:s="click",open:l,disabled:c,placement:d="bottomLeft",arrow:u=!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(at),{token:P}=la.useToken(),[O,E]=Xz(P.colorPrimary,{value:t,defaultValue:n}),[T,_]=Qt(!1,{value:l,postState:Y=>!c&&Y,onChange:w}),[R,I]=f.useState(!1),M=S("color-picker",C3),[A,N]=i5(M),D={[`${M}-rtl`]:$},F=U(v,D),z=U(F,h,N),H=U(M,D),k=f.useRef(!0),W=(Y,ee,re)=>{let ae=Ln(Y);if(R){I(!1);const ue=ae.toHsb();O.toHsb().a===0&&ee!=="alpha"&&(ue.a=1,ae=Ln(ue));}t||E(ae),re&&(k.current=!1),b==null||b(ae,ae.toHexString());},B=()=>{I(!0),y==null||y();},K=()=>{k.current=!0;},te={open:T,trigger:s,placement:d,arrow:u,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(Hy,Object.assign({style:g==null?void 0:g.popup,onOpenChange:Y=>{k.current&&_(Y);},content:f.createElement(Wz,Object.assign({},Z,{onChange:W,onChangeComplete:K,onClear:B})),overlayClassName:H},te),a||f.createElement(Uz,{open:T,className:z,style:m,color:O,prefixCls:M,disabled:c,colorCleared:R})))},a5=Zm(wh,"color-picker",e=>e,e=>Object.assign(Object.assign({},e),{placement:"bottom",autoAdjustOverflow:!1}));wh._InternalPanelDoNotUseOrYouWillBeFired=a5;const s5=wh,BC=f.createContext({latestIndex:0,horizontalSize:0,verticalSize:0,supportFlexGap:!1}),l5=BC.Provider;function c5(e){let{className:t,direction:n,index:r,marginDirection:o,children:i,split:a,wrap:s,style:l}=e;const{horizontalSize:c,verticalSize:d,latestIndex:u,supportFlexGap:m}=f__namespace.useContext(BC);let h={};return m||(n==="vertical"?r<u&&(h={marginBottom:c/(a?2:1)}):h=Object.assign(Object.assign({},r<u&&{[o]:c/(a?2:1)}),s&&{paddingBottom:d})),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<u&&a&&f__namespace.createElement("span",{className:`${t}-split`,style:h},a))}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 d5={small:8,middle:16,large:24};function f5(e){return typeof e=="string"?d5[e]:e||0}const m5=f__namespace.forwardRef((e,t)=>{var n,r;const{getPrefixCls:o,space:i,direction:a}=f__namespace.useContext(at),{size:s=(i==null?void 0:i.size)||"small",align:l,className:c,rootClassName:d,children:u,direction:m="horizontal",prefixCls:h,split:v,style:g,wrap:p=!1,classNames:b,styles:y}=e,w=u5(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),x=HF(),[C,S]=f__namespace.useMemo(()=>(Array.isArray(s)?s:[s,s]).map(F=>f5(F)),[s]),$=dr(u,{keepEmpty:!0}),P=l===void 0&&m==="horizontal"?"center":l,O=o("space",h),[E,T]=J0(O),_=U(O,T,`${O}-${m}`,{[`${O}-rtl`]:a==="rtl",[`${O}-align-${P}`]:P},c??(i==null?void 0:i.className),d),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),I=a==="rtl"?"marginLeft":"marginRight";let M=0;const A=$.map((F,z)=>{var H,k;F!=null&&(M=z);const W=F&&F.key||`${R}-${z}`;return f__namespace.createElement(c5,{className:R,key:W,direction:m,index:z,marginDirection:I,split:v,wrap:p,style:(H=y==null?void 0:y.item)!==null&&H!==void 0?H:(k=i==null?void 0:i.styles)===null||k===void 0?void 0:k.item},F)}),N=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:_,style:Object.assign(Object.assign(Object.assign({},D),i==null?void 0:i.style),g)},w),f__namespace.createElement(l5,{value:N},A)))}),WC=m5;WC.Compact=BM;const pu=WC;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 VC=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=f__namespace.useContext(at),{prefixCls:o,type:i="default",danger:a,disabled:s,loading:l,onClick:c,htmlType:d,children:u,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(fh,null),title:O,buttonsRender:E=re=>re,mouseEnterDelay:T,mouseLeaveDelay:_,overlayClassName:R,overlayStyle:I,destroyPopupOnHide:M,dropdownRender:A}=e,N=h5(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),F=`${D}-button`,[z,H]=iC(D),k={menu:h,arrow:v,autoFocus:g,align:y,disabled:s,trigger:s?[]:b,onOpenChange:x,getPopupContainer:S||t,mouseEnterDelay:T,mouseLeaveDelay:_,overlayClassName:R,overlayStyle:I,destroyPopupOnHide:M,dropdownRender:A},{compactSize:W,compactItemClassnames:B}=ba(D,r),K=U(F,B,m,H);"overlay"in e&&(k.overlay=p),"open"in e&&(k.open=w),"placement"in e?k.placement=C:k.placement=r==="rtl"?"bottomLeft":"bottomRight";const te=f__namespace.createElement(In,{type:i,danger:a,disabled:s,loading:l,onClick:c,htmlType:d,href:$,title:O},u),Z=f__namespace.createElement(In,{type:i,danger:a,icon:P}),[Y,ee]=E([te,Z]);return z(f__namespace.createElement(pu.Compact,Object.assign({className:K,size:W,block:!0},N),Y,f__namespace.createElement(aC,Object.assign({},k),ee)))};VC.__ANT_BUTTON=!0;const v5=VC,GC=aC;GC.Button=v5;const g5=GC,p5=e=>{const{componentCls:t,iconCls:n,zIndexPopup:r,colorText:o,colorWarning:i,marginXXS:a,marginXS:s,fontSize:l,fontWeightStrong:c,colorTextHeading:d}=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:d,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:a}},[`${t}-buttons`]:{textAlign:"end",button:{marginInlineStart:s}}}}},UC=sn("Popconfirm",e=>p5(e),e=>{const{zIndexPopupBase:t}=e;return {zIndexPopup:t+60}});var b5=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const KC=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:o,description:i,cancelText:a,okText:s,okType:l="primary",icon:c=f__namespace.createElement(q0,null),showCancel:d=!0,close:u,onConfirm:m,onCancel:h,onPopupClick:v}=e,{getPrefixCls:g}=f__namespace.useContext(at),[p]=Dm("Popconfirm",ia.Popconfirm),b=sa(o),y=sa(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`},d&&f__namespace.createElement(In,Object.assign({onClick:h,size:"small"},r),a??(p==null?void 0:p.cancelText)),f__namespace.createElement($T,{buttonProps:Object.assign(Object.assign({size:"small"},iy(l)),n),actionFn:m,close:u,prefixCls:g("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s??(p==null?void 0:p.okText))))};function y5(e){const{prefixCls:t,placement:n,className:r,style:o}=e,i=b5(e,["prefixCls","placement","className","style"]),{getPrefixCls:a}=f__namespace.useContext(at),s=a("popconfirm",t),[l]=UC(s);return l(f__namespace.createElement(zy,{placement:n,className:U(s,r),style:o,content:f__namespace.createElement(KC,Object.assign({prefixCls:s},i))}))}var C5=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 XC=f__namespace.forwardRef((e,t)=>{const{prefixCls:n,placement:r="top",trigger:o="click",okType:i="primary",icon:a=f__namespace.createElement(q0,null),children:s,overlayClassName:l,onOpenChange:c,onVisibleChange:d}=e,u=C5(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:m}=f__namespace.useContext(at),[h,v]=Qt(!1,{value:e.open,defaultValue:e.defaultOpen}),g=(P,O)=>{v(P,!0),d==null||d(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===J.ESC&&h&&g(!1,P);},x=P=>{const{disabled:O=!1}=e;O||g(P);},C=m("popconfirm",n),S=U(C,l),[$]=UC(C);return $(f__namespace.createElement(Hy,Object.assign({},Mn(u,["title"]),{trigger:o,placement:r,onOpenChange:x,open:h,ref:t,overlayClassName:S,content:f__namespace.createElement(KC,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);}})))});XC._InternalPanelDoNotUseOrYouWillBeFired=y5;const S5=XC;var gi=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 $h(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 zi(e,t){return Array.isArray(e)?e[t]:e}var w5=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"],$5=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,d=e.dragging,u=e.onOffsetChange,m=Ue(e,w5),h=f__namespace.useContext(gi),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(I){b||s(I,a);},E=function(I){if(!b&&y){var M=null;switch(I.which||I.keyCode){case J.LEFT:M=p==="ltr"||p==="btt"?-1:1;break;case J.RIGHT:M=p==="ltr"||p==="btt"?1:-1;break;case J.UP:M=p!=="ttb"?1:-1;break;case J.DOWN:M=p!=="ttb"?-1:1;break;case J.HOME:M="min";break;case J.END:M="max";break;case J.PAGE_UP:M=2;break;case J.PAGE_DOWN:M=-2;break}M!==null&&(I.preventDefault(),u(M,a));}},T=$h(p,i,v,g),_=f__namespace.createElement("div",pe({ref:t,className:U(P,(n={},q(n,"".concat(P,"-").concat(a+1),w),q(n,"".concat(P,"-dragging"),d),n)),style:V(V({},T),l),onMouseDown:O,onTouchStart:O,onKeyDown:E,tabIndex:b?null:zi(x,a),role:"slider","aria-valuemin":v,"aria-valuemax":g,"aria-valuenow":i,"aria-disabled":b,"aria-label":zi(C,a),"aria-labelledby":zi(S,a),"aria-valuetext":(r=zi($,a))===null||r===void 0?void 0:r(i)},m));return c&&(_=c(_,{index:a,prefixCls:o,value:i,dragging:d})),_}),x5=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],E5=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,x5),d=f__namespace.useRef({});return f__namespace.useImperativeHandle(t,function(){return {focus:function(m){var h;(h=d.current[m])===null||h===void 0||h.focus();}}}),f__namespace.createElement(f__namespace.Fragment,null,a.map(function(u,m){return f__namespace.createElement($5,pe({ref:function(v){v?d.current[m]=v:delete d.current[m];},dragging:l===m,prefixCls:n,style:zi(r,m),key:m,value:u,valueIndex:m,onStartMove:o,onOffsetChange:i,render:s},c))}))});function Cp(e){var t="touches"in e?e.touches[0]:e;return {pageX:t.pageX,pageY:t.pageY}}function O5(e,t,n,r,o,i,a,s,l){var c=f__namespace.useState(null),d=X(c,2),u=d[0],m=d[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 T=function(N,D){w.some(function(F,z){return F!==N[z]})&&(D!==void 0&&m(D),x(N),a(N));},_=function(N,D){if(N===-1){var F=$[0],z=$[$.length-1],H=r-F,k=o-z,W=D*(o-r);W=Math.max(W,H),W=Math.min(W,k);var B=i(F+W);W=B-F;var K=$.map(function(ee){return ee+W});T(K);}else {var te=(o-r)*D,Z=ge(w);Z[N]=$[N];var Y=l(Z,te,N,"dist");T(Y.values,Y.value);}},R=f__namespace.useRef(_);R.current=_;var I=function(N,D){N.stopPropagation();var F=n[D];p(D),m(F),P(n);var z=Cp(N),H=z.pageX,k=z.pageY,W=function(te){te.preventDefault();var Z=Cp(te),Y=Z.pageX,ee=Z.pageY,re=Y-H,ae=ee-k,ue=e.current.getBoundingClientRect(),ie=ue.width,me=ue.height,ye;switch(t){case"btt":ye=-ae/me;break;case"ttb":ye=ae/me;break;case"rtl":ye=-re/ie;break;default:ye=re/ie;}R.current(D,ye);},B=function K(te){te.preventDefault(),document.removeEventListener("mouseup",K),document.removeEventListener("mousemove",W),document.removeEventListener("touchend",K),document.removeEventListener("touchmove",W),O.current=null,E.current=null,p(-1),s();};document.addEventListener("mouseup",B),document.addEventListener("mousemove",W),document.addEventListener("touchend",B),document.addEventListener("touchmove",W),O.current=W,E.current=B;},M=f__namespace.useMemo(function(){var A=ge(n).sort(function(D,F){return D-F}),N=ge(w).sort(function(D,F){return D-F});return A.every(function(D,F){return D===N[F]})?w:n},[n,w]);return [g,u,M,I]}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(gi),l=s.direction,c=s.min,d=s.max,u=s.disabled,m=s.range,h="".concat(t,"-track"),v=Hf(r,c,d),g=Hf(o,c,d),p=function(w){!u&&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:V(V({},b),n),onMouseDown:p,onTouchStart:p})}function I5(e){var t=e.prefixCls,n=e.style,r=e.values,o=e.startPoint,i=e.onStartMove,a=f__namespace.useContext(gi),s=a.included,l=a.range,c=a.min,d=f__namespace.useMemo(function(){if(!l){if(r.length===0)return [];var u=o??c,m=r[0];return [{start:Math.min(u,m),end:Math.max(u,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?d.map(function(u,m){var h=u.start,v=u.end;return f__namespace.createElement(P5,{index:m,prefixCls:t,style:zi(n,m),start:h,end:v,key:m,onStartMove:i})}):null}function _5(e){var t=e.prefixCls,n=e.style,r=e.children,o=e.value,i=e.onClick,a=f__namespace.useContext(gi),s=a.min,l=a.max,c=a.direction,d=a.includedStart,u=a.includedEnd,m=a.included,h="".concat(t,"-text"),v=$h(c,o,s,l);return f__namespace.createElement("span",{className:U(h,q({},"".concat(h,"-active"),m&&d<=o&&o<=u)),style:V(V({},v),n),onMouseDown:function(p){p.stopPropagation();},onClick:function(){i(o);}},r)}function R5(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(_5,{key:a,prefixCls:o,style:s,value:a,onClick:r},l)})):null}function M5(e){var t=e.prefixCls,n=e.value,r=e.style,o=e.activeStyle,i=f__namespace.useContext(gi),a=i.min,s=i.max,l=i.direction,c=i.included,d=i.includedStart,u=i.includedEnd,m="".concat(t,"-dot"),h=c&&d<=n&&n<=u,v=V(V({},$h(l,n,a,s)),typeof r=="function"?r(n):r);return h&&(v=V(V({},v),typeof o=="function"?o(n):o)),f__namespace.createElement("span",{className:U(m,q({},"".concat(m,"-active"),h)),style:v})}function T5(e){var t=e.prefixCls,n=e.marks,r=e.dots,o=e.style,i=e.activeStyle,a=f__namespace.useContext(gi),s=a.min,l=a.max,c=a.step,d=f__namespace.useMemo(function(){var u=new Set;if(n.forEach(function(h){u.add(h.value);}),r&&c!==null)for(var m=s;m<=l;)u.add(m),m+=c;return Array.from(u)},[s,l,c,r,n]);return f__namespace.createElement("div",{className:"".concat(t,"-step")},d.map(function(u){return f__namespace.createElement(M5,{prefixCls:t,key:u,value:u,style:o,activeStyle:i})}))}function N5(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 T=Math.abs(E-$);T<P&&(y=E,P=T);}),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}},d=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}},u=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;u(y[S]-y[S-1])&&$;){var P=d(y,1,S);y[S]=P.value,$=P.changed;}for(var O=p;O>0;O-=1)for(var E=!0;u(y[O]-y[O-1])&&E;){var T=d(y,-1,O-1);y[O-1]=T.value,E=T.changed;}for(var _=y.length-1;_>0;_-=1)for(var R=!0;u(y[_]-y[_-1])&&R;){var I=d(y,-1,_-1);y[_-1]=I.value,R=I.changed;}for(var M=0;M<y.length-1;M+=1)for(var A=!0;u(y[M+1]-y[M])&&A;){var N=d(y,1,M+1);y[M+1]=N.value,A=N.changed;}}return {value:y[p],values:y}};return [l,m]}var A5=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,d=c===void 0?!0:c,u=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,T=e.allowCross,_=T===void 0?!0:T,R=e.pushable,I=R===void 0?!1:R,M=e.draggableTrack,A=e.reverse,N=e.vertical,D=e.included,F=D===void 0?!0:D,z=e.startPoint,H=e.trackStyle,k=e.handleStyle,W=e.railStyle,B=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,ue=e.ariaLabelledByForHandle,ie=e.ariaValueTextFormatterForHandle,me=f__namespace.useRef(),ye=f__namespace.useRef(),ce=f__namespace.useMemo(function(){return N?A?"ttb":"btt":A?"rtl":"ltr"},[A,N]),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]),se=f__namespace.useMemo(function(){return I===!0?fe:I>=0?I:!1},[I,fe]),le=f__namespace.useMemo(function(){var Ae=Object.keys(te||{});return Ae.map(function(We){var Me=te[We],Ct={value:Number(We)};return Me&&ot(Me)==="object"&&!f__namespace.isValidElement(Me)&&("label"in Me||"style"in Me)?(Ct.style=Me.style,Ct.label=Me.label):Ct.label=Me,Ct}).filter(function(We){var Me=We.label;return Me||typeof Me=="number"}).sort(function(We,Me){return We.value-Me.value})},[te]),_e=N5(he,ne,fe,le,_,se),Ve=X(_e,2),Ze=Ve[0],$e=Ve[1],Le=Qt(C,{value:x}),tt=X(Le,2),Ke=tt[0],Xe=tt[1],De=f__namespace.useMemo(function(){var Ae=Ke==null?[]:Array.isArray(Ke)?Ke:[Ke],We=X(Ae,1),Me=We[0],Ct=Me===void 0?he:Me,gt=Ke===null?[]:[Ct];if(S){if(gt=ge(Ae),$||Ke===void 0){var Jt=$>=0?$+1:2;for(gt=gt.slice(0,Jt);gt.length<Jt;){var Te;gt.push((Te=gt[gt.length-1])!==null&&Te!==void 0?Te:he);}}gt.sort(function(He,lt){return He-lt});}return gt.forEach(function(He,lt){gt[lt]=Ze(He);}),gt},[Ke,S,he,$,Ze]),Fe=f__namespace.useRef(De);Fe.current=De;var ut=function(We){return S?We:We[0]},st=function(We){var Me=ge(We).sort(function(Ct,gt){return Ct-gt});P&&!Yc(Me,Fe.current,!0)&&P(ut(Me)),Xe(Me);},be=function(We){if(!l){var Me=0,Ct=ne-he;De.forEach(function(Jt,Te){var He=Math.abs(We-Jt);He<=Ct&&(Ct=He,Me=Te);});var gt=ge(De);gt[Me]=We,S&&!De.length&&$===void 0&&gt.push(We),O==null||O(ut(gt)),st(gt),E==null||E(ut(gt));}},xe=function(We){We.preventDefault();var Me=ye.current.getBoundingClientRect(),Ct=Me.width,gt=Me.height,Jt=Me.left,Te=Me.top,He=Me.bottom,lt=Me.right,Et=We.clientX,qt=We.clientY,zt;switch(ce){case"btt":zt=(He-qt)/gt;break;case"ttb":zt=(qt-Te)/gt;break;case"rtl":zt=(lt-Et)/Ct;break;default:zt=(Et-Jt)/Ct;}var wn=he+zt*(ne-he);be(Ze(wn));},qe=f__namespace.useState(null),Be=X(qe,2),dt=Be[0],Oe=Be[1],Pe=function(We,Me){if(!l){var Ct=$e(De,We,Me);O==null||O(ut(De)),st(Ct.values),E==null||E(ut(Ct.values)),Oe(Ct.value);}};f__namespace.useEffect(function(){if(dt!==null){var Ae=De.indexOf(dt);Ae>=0&&me.current.focus(Ae);}Oe(null);},[dt]);var ze=f__namespace.useMemo(function(){return M&&fe===null?!1:M},[M,fe]),Re=function(){E==null||E(ut(Fe.current));},Qe=O5(ye,ce,De,he,ne,Ze,st,Re,$e),wt=X(Qe,4),Lt=wt[0],Dt=wt[1],Ne=wt[2],de=wt[3],oe=function(We,Me){de(We,Me),O==null||O(ut(Fe.current));},Ce=Lt!==-1;f__namespace.useEffect(function(){if(!Ce){var Ae=De.lastIndexOf(Dt);me.current.focus(Ae);}},[Ce]);var Ee=f__namespace.useMemo(function(){return ge(Ne).sort(function(Ae,We){return Ae-We})},[Ne]),Ye=f__namespace.useMemo(function(){return S?[Ee[0],Ee[Ee.length-1]]:[he,Ee[0]]},[Ee,S,he]),ft=X(Ye,2),yt=ft[0],Xt=ft[1];f__namespace.useImperativeHandle(t,function(){return {focus:function(){me.current.focus(0);},blur:function(){var We=document,Me=We.activeElement;ye.current.contains(Me)&&(Me==null||Me.blur());}}}),f__namespace.useEffect(function(){u&&me.current.focus(0);},[]);var Bt=f__namespace.useMemo(function(){return {min:he,max:ne,direction:ce,disabled:l,keyboard:d,step:fe,included:F,includedStart:yt,includedEnd:Xt,range:S,tabIndex:re,ariaLabelForHandle:ae,ariaLabelledByForHandle:ue,ariaValueTextFormatterForHandle:ie}},[he,ne,ce,l,d,fe,F,yt,Xt,S,re,ae,ue,ie]);return f__namespace.createElement(gi.Provider,{value:Bt},f__namespace.createElement("div",{ref:ye,className:U(o,i,(n={},q(n,"".concat(o,"-disabled"),l),q(n,"".concat(o,"-vertical"),N),q(n,"".concat(o,"-horizontal"),!N),q(n,"".concat(o,"-with-marks"),le.length),n)),style:a,onMouseDown:xe},f__namespace.createElement("div",{className:"".concat(o,"-rail"),style:W}),f__namespace.createElement(I5,{prefixCls:o,style:H,values:Ee,startPoint:z,onStartMove:ze?oe:null}),f__namespace.createElement(T5,{prefixCls:o,marks:le,dots:Z,style:B,activeStyle:K}),f__namespace.createElement(E5,{ref:me,prefixCls:o,style:k,values:Ne,draggingIndex:Lt,onStartMove:oe,onOffsetChange:Pe,onFocus:m,onBlur:h,handleRender:Y}),f__namespace.createElement(R5,{prefixCls:o,marks:le,onClick:be})))});const D5=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(Bs,Object.assign({ref:Fn(r,t)},e))}),k5=D5,L5=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"}}})}},qC=(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",d=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,[d]:o,[s]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[d]:r,[s]:"100%",[l]:r},[`${n}-dot`]:{position:"absolute",[c]:(r-i)/2}}},F5=e=>{const{componentCls:t,marginPartWithMark:n}=e;return {[`${t}-horizontal`]:Object.assign(Object.assign({},qC(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},z5=e=>{const{componentCls:t}=e;return {[`${t}-vertical`]:Object.assign(Object.assign({},qC(e,!1)),{height:"100%"})}},j5=sn("Slider",e=>{const t=xt(e,{marginPart:(e.controlHeight-e.controlSize)/2,marginFull:e.controlSize/2,marginPartWithMark:e.controlHeightLG-e.controlSize});return [L5(t),F5(t),z5(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 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=>typeof e=="number"?e.toString():"",W5=f.forwardRef((e,t)=>{const{prefixCls:n,range:r,className:o,rootClassName:i,tooltipPrefixCls:a,tipFormatter:s,tooltipVisible:l,getTooltipPopupContainer:c,tooltipPlacement:d}=e,u=H5(e,["prefixCls","range","className","rootClassName","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement"]),{getPrefixCls:m,direction:h,getPopupContainer:v}=f.useContext(at),[g,p]=f.useState({}),b=(E,T)=>{p(_=>Object.assign(Object.assign({},_),{[E]:T}));},y=(E,T)=>E||(T?h==="rtl"?"left":"right":"top"),w=m("slider",n),[x,C]=j5(w),S=U(o,i,{[`${w}-rtl`]:h==="rtl"},C);h==="rtl"&&!u.vertical&&(u.reverse=!u.reverse);const[$,P]=f.useMemo(()=>r?typeof r=="object"?[!0,r.draggableTrack]:[!0,!1]:[!1],[r]),O=(E,T)=>{var _;const{index:R,dragging:I}=T,{tooltip:M={},vertical:A}=e,N=Object.assign({},M),{open:D,placement:F,getPopupContainer:z,prefixCls:H,formatter:k}=N;let W;k||k===null?W=k:s||s===null?W=s:W=B5;const B=W?g[R]||I:!1,K=(_=D??l)!==null&&_!==void 0?_:D===void 0&&B,te=Object.assign(Object.assign({},E.props),{onMouseEnter:()=>b(R,!0),onMouseLeave:()=>b(R,!1)}),Z=m("tooltip",H??a);return f.createElement(k5,{prefixCls:Z,title:W?W(T.value):"",open:K,placement:y(F??d,A),key:R,overlayClassName:`${w}-tooltip`,getPopupContainer:z||c||v},f.cloneElement(E,te))};return x(f.createElement(A5,Object.assign({},u,{step:u.step,range:$,draggableTrack:P,className:S,ref:t,prefixCls:w,handleRender:O})))}),V5=W5;function G5(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const Cl=(e,t,n)=>{const r=G5(n);return {[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},U5=e=>M0(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"}}}}),K5=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}}},YC=sn("Tag",e=>{const{lineWidth:t,fontSizeIcon:n}=e,r=e.fontSizeSM,o=`${e.lineHeightSM*r}px`,i=xt(e,{tagFontSize:r,tagLineHeight:o,tagIconSize:n-2*t,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary});return [K5(i),U5(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 X5=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const q5=e=>{const{prefixCls:t,className:n,checked:r,onChange:o,onClick:i}=e,a=X5(e,["prefixCls","className","checked","onChange","onClick"]),{getPrefixCls:s}=f__namespace.useContext(at),l=h=>{o==null||o(!r),i==null||i(h);},c=s("tag",t),[d,u]=YC(c),m=U(c,{[`${c}-checkable`]:!0,[`${c}-checkable-checked`]:r},n,u);return d(f__namespace.createElement("span",Object.assign({},a,{className:m,onClick:l})))},Y5=q5;var Z5=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 Q5=(e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,children:a,icon:s,color:l,onClose:c,closeIcon:d,closable:u=!1,bordered:m=!0}=e,h=Z5(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:v,direction:g}=f__namespace.useContext(at),[p,b]=f__namespace.useState(!0);f__namespace.useEffect(()=>{"visible"in h&&b(h.visible);},[h.visible]);const y=Dy(l)||LD(l),w=Object.assign({backgroundColor:l&&!y?l:void 0},i),x=v("tag",n),[C,S]=YC(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=I=>{I.stopPropagation(),c==null||c(I),!I.defaultPrevented&&b(!1);},O=f__namespace.useMemo(()=>u?d?f__namespace.createElement("span",{className:`${x}-close-icon`,onClick:P},d):f__namespace.createElement(Hm,{className:`${x}-close-icon`,onClick:P}):null,[u,d,x,P]),E=typeof h.onClick=="function"||a&&a.type==="a",T=s||null,_=T?f__namespace.createElement(f__namespace.Fragment,null,T,f__namespace.createElement("span",null,a)):a,R=f__namespace.createElement("span",Object.assign({},h,{ref:t,className:$,style:w}),_,O);return C(E?f__namespace.createElement(Q0,null,R):R)},ZC=f__namespace.forwardRef(Q5);ZC.CheckableTag=Y5;const ka=ZC;var bu={},QC={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;})(QC);var xh=QC.exports,yu={};Object.defineProperty(yu,"__esModule",{value:!0});yu.default=void 0;var J5={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:"页码"};yu.default=J5;var Cu={},Ks={},Su={};Object.defineProperty(Su,"__esModule",{value:!0});Su.default=void 0;var e4={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:"下一世纪"},t4=e4;Su.default=t4;var Xs={};Object.defineProperty(Xs,"__esModule",{value:!0});Xs.default=void 0;const n4={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};var r4=n4;Xs.default=r4;var JC=xh.default;Object.defineProperty(Ks,"__esModule",{value:!0});Ks.default=void 0;var o4=JC(Su),i4=JC(Xs);const eS={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},o4.default),timePickerLocale:Object.assign({},i4.default)};eS.lang.ok="确定";var a4=eS;Ks.default=a4;var s4=xh.default;Object.defineProperty(Cu,"__esModule",{value:!0});Cu.default=void 0;var l4=s4(Ks),c4=l4.default;Cu.default=c4;var wu=xh.default;Object.defineProperty(bu,"__esModule",{value:!0});bu.default=void 0;var u4=wu(yu),d4=wu(Cu),f4=wu(Ks),m4=wu(Xs);const Bn="${label}不是一个有效的${type}",h4={locale:"zh-cn",Pagination:u4.default,DatePicker:f4.default,TimePicker:m4.default,Calendar:d4.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 v4=h4;bu.default=v4;var g4=bu;const p4=vo(g4);var Eh={},zn={};Object.defineProperty(zn,"__esModule",{value:!0});zn.DEFAULT_ICON_CONFIGS=void 0;zn.IconConverter=rS;zn.IconProvider=void 0;zn.IconWrapper=E4;var Nl=b4(f);function tS(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return (tS=function(r){return r?n:t})(e)}function b4(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return {default:e};var n=tS(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 y4=["size","strokeWidth","strokeLinecap","strokeLinejoin","theme","fill","className","spin"];function Sp(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 wp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Sp(Object(n),!0).forEach(function(r){C4(e,r,n[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sp(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r));});}return e}function C4(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S4(e,t){if(e==null)return {};var n=w4(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 w4(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 nS={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=nS;function $4(){return "icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)}function rS(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 oS=(0, Nl.createContext)(nS),x4=oS.Provider;zn.IconProvider=x4;function E4(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,d=r.className,u=r.spin,m=S4(r,y4),h=(0, Nl.useContext)(oS),v=(0, Nl.useMemo)($4,[]),g=rS(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"),u&&p.push(h.prefix+"-icon-spin"),d&&p.push(d),Nl.default.createElement("span",wp(wp({},m),{},{className:p.join(" ")}),n(g))}}Object.defineProperty(Eh,"__esModule",{value:!0});var iS=Eh.default=void 0,Cd=P4(f),O4=zn;function P4(e){return e&&e.__esModule?e:{default:e}}var I4=(0, O4.IconWrapper)("close",!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:"M8 8L40 40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Cd.default.createElement("path",{d:"M8 40L40 8",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});iS=Eh.default=I4;var Oh={};Object.defineProperty(Oh,"__esModule",{value:!0});var aS=Oh.default=void 0,Sd=R4(f),_4=zn;function R4(e){return e&&e.__esModule?e:{default:e}}var M4=(0, _4.IconWrapper)("config",!1,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:"M24 4L18 10H10V18L4 24L10 30V38H18L24 44L30 38H38V30L44 24L38 18V10H30L24 4Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Sd.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}))});aS=Oh.default=M4;var Ph={};Object.defineProperty(Ph,"__esModule",{value:!0});var sS=Ph.default=void 0,La=N4(f),T4=zn;function N4(e){return e&&e.__esModule?e:{default:e}}var A4=(0, T4.IconWrapper)("distraught-face",!1,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 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}),La.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}),La.default.createElement("path",{d:"M32 17L29 20L32 23",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),La.default.createElement("path",{d:"M16 17L19 20L16 23",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});sS=Ph.default=A4;var Ih={};Object.defineProperty(Ih,"__esModule",{value:!0});var lS=Ih.default=void 0,Fa=k4(f),D4=zn;function k4(e){return e&&e.__esModule?e:{default:e}}var L4=(0, D4.IconWrapper)("info",!0,function(e){return Fa.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Fa.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}),Fa.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]}),Fa.default.createElement("path",{d:"M24.5 34V20H23.5H22.5",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Fa.default.createElement("path",{d:"M21 34H28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});lS=Ih.default=L4;var _h={};Object.defineProperty(_h,"__esModule",{value:!0});var cS=_h.default=void 0,wd=z4(f),F4=zn;function z4(e){return e&&e.__esModule?e:{default:e}}var j4=(0, F4.IconWrapper)("loading",!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:"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}),wd.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}))});cS=_h.default=j4;var Rh={};Object.defineProperty(Rh,"__esModule",{value:!0});var uS=Rh.default=void 0,Rr=B4(f),H4=zn;function B4(e){return e&&e.__esModule?e:{default:e}}var W4=(0, H4.IconWrapper)("loading-three",!1,function(e){return Rr.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Rr.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}),Rr.default.createElement("path",{d:"M24 12V15",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Rr.default.createElement("path",{d:"M32.4852 15.5147L30.3639 17.636",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Rr.default.createElement("path",{d:"M36 24H33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Rr.default.createElement("path",{d:"M32.4852 32.4853L30.3639 30.364",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Rr.default.createElement("path",{d:"M24 36V33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Rr.default.createElement("path",{d:"M15.5148 32.4853L17.6361 30.364",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Rr.default.createElement("path",{d:"M12 24H15",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Rr.default.createElement("path",{d:"M15.5148 15.5147L17.6361 17.636",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});uS=Rh.default=W4;var Mh={};Object.defineProperty(Mh,"__esModule",{value:!0});var dS=Mh.default=void 0,$d=G4(f),V4=zn;function G4(e){return e&&e.__esModule?e:{default:e}}var U4=(0, V4.IconWrapper)("return",!0,function(e){return $d.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},$d.default.createElement("path",{d:"M12.9998 8L6 14L12.9998 21",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),$d.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}))});dS=Mh.default=U4;const K4={Close:iS,Config:aS,DistraughtFace:sS,Return:dS,Loading:cS,LoadingThree:uS,Info:lS};function To({name:e,theme:t,size:n,fill:r,...o}){t||(t="outline"),n||(n=24);const i=Xc();r||(r=i?"#fff":"#333");const a=K4[e];return j(a,{theme:t,size:n,fill:r,...o,style:{fontSize:0,...o.style}})}function lr({configKey:e,label:t,className:n,extraAction:r,tooltip:o}){const a=!!ur()[e],s=f.useCallback(c=>{const d=c.target.checked;si({[e]:d}),r==null||r(d);},[]);let l=t||e;return o&&(l=j(Bs,{title:o,overlayStyle:{width:"max-content",maxWidth:"50vw"},children:l})),j(jF,{className:n,checked:a,onChange:s,children:l})}var X4={name:"1qkltea",styles:"margin-left:5px"};const q4=function(){const e=X4;return ve(Ht,{children:[j(lr,{configKey:"initialShowMore",label:"自动查看更多",css:e}),j(lr,{configKey:"useNarrowMode",label:"启用居中模式",css:e})]})};function vc({tooltip:e,iconProps:t}){return j(Ht,{children:e&&j(oj,{title:e,children:j(To,{...t,name:"Info",style:{cursor:"pointer",marginLeft:"4px",...t==null?void 0:t.style}})})})}function cr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ua(t)}const Y4=[{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)"}],ca={id:"default-bili-pink",name:"B站粉",isDark:!1,isCustom:!1,colorPrimary:"#ff6699"},Th={id:"color-picker",name:"自定义",isDark:!1,isCustom:!0,colorPrimary:"#ff6699"};function Z4(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 fS="UP长期洗涤",Q4=Z4(fS,`
  #0545b2 理想之蓝
  #f4cd00 柠檬黄
  #ef2729 石榴红
  #f89c00 鹿箭
  #233728 黛绿
  #f2b9b7 和熙粉
  #f3cc91 芝士黄
  #6b4c68 葡萄紫
  #ff7227 落日橙
  #004d62 碧海天
  #23909b 洗碧空
  #aeb400 芥丝绿
  #425a17 箬叶青

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

  code=${t.code} message=${t.message||""}`,5e3),[]}return ((r=t==null?void 0:t.data)==null?void 0:r.items)||[]}const bB=vB(pB,{times:5,timeout:2e3,onerror(e,t){console.info("[%s] tryGetRecommend onerror: index=%s",No,t,e);}});async function Dp(){try{return await bB()}catch(e){if(e instanceof mB){console.error(e.errors);const t=[ua("请求出错, 已重试%s次:",e.times),...e.errors.map((n,r)=>ua("  %s) %s",r+1,n.message)),"","请重新获取 access_key 后重试~"].join(`
`);hn(t,5e3);}throw e}}async function h1(e){let t=[];const n=async()=>{t=(await Promise.all(new Array(e).fill(0).map(()=>Dp()))).flat();},r=async()=>{for(let o=1;o<=e;o++)t=t.concat(await Dp());};return await(vt.useParallelRequest?n:r)(),t=Kc(t,o=>o.param),t.map(o=>({...o,api:"app",uniqId:o.param+"-"+crypto.randomUUID()}))}const qh=class{constructor(){ht(this,"page",0);}async getRecommend(t=void 0){var a,s;const n=++this.page,o=(await xa.get("/x/web-interface/index/top/rcmd",{signal:t,params:{fresh_type:3,version:1,ps:qh.PAGE_SIZE,fresh_idx:n,fresh_idx_1h:n,homepage_ver:1}})).data;return (a=o.data)!=null&&a.item||hn(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(vt.useParallelRequest?o:i)(),r=Kc(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 Gi=qh;ht(Gi,"PAGE_SIZE",14);const wl=Ms.extend("service"),Bl=e=>e.api==="pc"?e.id:e.api==="app"?e.param:e.api==="dynamic"?e.modules.module_dynamic.major.archive.aid:e.bvid;function yB(e,t){const n=e.map(Bl);return t=Kc(t,Bl),e.concat(t.filter(r=>!n.includes(Bl(r))))}const tm=e=>e==="onlyFollow"||e==="normal"&&vt.usePcDesktopApi;async function v1(e,t,n=5){const{pcRecService:r,dynamicFeedService:o,tab:i,abortSignal:a}=t;if(i==="watchlater")return GH.getAll();let s=[],l=async c=>{let d=[];if(i==="dynamic"){d=await o.loadMore(a)||[],s=s.concat(d);return}let u;if(i==="onlyFollow")u=8,wl("getMinCount: addMore(restCount = %s) times=%s",c,u);else {const m=tm(i)?Gi.PAGE_SIZE:gB,h=YS()?n:1.2;u=Math.ceil(c*h/m),wl("getMinCount: addMore(restCount = %s) multipler=%s pagesize=%s times=%s",c,h,m,u);}d=tm(i)?await r.getRecommendTimes(u,a):await h1(u),d=ZS(d),s=s.concat(d),s=Kc(s,Bl);};for(await l(e);;){if(a!=null&&a.aborted){wl("getMinCount: break for abortSignal");break}if(GS()==="dynamic"&&!o.hasMore){wl("getMinCount: break for dynamicFeedService.hasMore");break}if(s.length>=e)break;await l(e-s.length);}return s}async function CB(e){return v1(Fh(void 0,!1)*2,e,5)}async function SB(e){return v1(Fh()*3+1,e,5)}async function wB(e,t,n){let r=tm(t)?await n.getRecommendTimes(e):await h1(e);return r=ZS(r),r}var g1={exports:{}},$B="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",xB=$B,EB=xB;function p1(){}function b1(){}b1.resetWarningCache=p1;var OB=function(){function e(r,o,i,a,s,l){if(l!==EB){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:b1,resetWarningCache:p1};return n.PropTypes=n,n};g1.exports=OB();var PB=g1.exports;const Wn=vo(PB);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:d,threshold:u,useCapture:m,useWindow:h,getScrollParent:v,...g}=t;g.ref=b=>{this.scrollComponent=b,d&&d(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 loadMore(t=void 0){if(!this.hasMore)return;this.page++;const n={timezone_offset:"-480",type:"video",features:"itemOpusStyle",page:this.page};this.offset&&(n.offset=this.offset);const o=(await xa.get("/x/polymer/web-dynamic/v1/feed/all",{signal:t,params:n})).data;return this.hasMore=o.data.has_more,this.offset=o.data.offset,o.data.items.map(s=>({...s,api:"dynamic",uniqId:s.id_str||crypto.randomUUID()}))}}ht(rm,"PAGE_SIZE",15);function y1({debug:e,tab:t,recreateService:n,fetcher:r,preAction:o,postAction:i,onScrollToTop:a,setUpperRefreshing:s}){const[l,c]=f.useState(!0),[d,u]=f.useState([]),[m,h]=f.useState(()=>new Gi),[v,g]=f.useState(()=>new rm),[p,b]=f.useState(!1),[y,w,x]=xS(()=>Date.now()),[C,S]=f.useState(t),[$,P]=f.useState(()=>new AbortController),[O,E]=f.useState(void 0),T=$t(async()=>{const _=performance.now();if(p)if(t===C){e("refresh(): [start] [refreshing] prevent same tab(%s) refresh()",t);return}else e("refresh(): [start] [refreshing] switchTab %s -> %s, abort existing",C,t),$.abort();else e("refresh(): [start] tab = %s",t);await(a==null?void 0:a());const R=k=>{b(k),s==null||s(k);};R(!0),w(Date.now()),S(t),u([]),E(void 0),c(!0),await(o==null?void 0:o());const I=n?new Gi:m,M=n?new rm:v;n&&(h(I),g(M));const A=new AbortController,N=A.signal;P(A);const D={tab:t,pcRecService:I,dynamicFeedService:M,abortSignal:N};let F=[],z;try{F=await r(D);}catch(k){z=k;}if(N.aborted){e("refresh(): [legacy] skip setItems/err for aborted, legacy tab = %s",t);return}if(R(!1),z){console.error(z),E(z);return}u(F),t==="watchlater"&&c(!1),await(i==null?void 0:i());const H=performance.now()-_;e("refresh(): [success] cost %s ms",H.toFixed(0));});return {items:d,setItems:u,error:O,refreshedAt:y,setRefreshedAt:w,getRefreshedAt:x,refreshing:p,setRefreshing:b,refreshFor:C,setRefreshFor:S,refreshAbortController:$,setRefreshAbortController:P,hasMore:l,setHasMore:c,pcRecService:m,setPcRecService:h,dynamicFeedService:v,setDynamicFeedService:g,refresh:T}}const Nd=Ms.extend("components:RecGrid"),Ui={card:Pp`
    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:Pp`
    border-color: #fb7299;
    border-radius: 6px;
    overflow: hidden;
  `};var IB={name:"1uugokx",styles:"text-align:center;line-height:60px;font-size:120%"},_B={name:"1uugokx",styles:"text-align:center;line-height:60px;font-size:120%"};const C1=f.forwardRef(({infiteScrollUseWindow:e,shortcutEnabled:t,onScrollToTop:n,className:r,scrollerRef:o,setRefreshing:i},a)=>{const{useNarrowMode:s}=ur(),l=Ru(),[c,d]=f.useState(0),u=$t(async()=>{A();}),m=$t(async()=>{A(),d(1),E();}),{refresh:h,items:v,setItems:g,error:p,refreshing:b,refreshedAt:y,getRefreshedAt:w,hasMore:x,setHasMore:C,pcRecService:S,dynamicFeedService:$}=y1({tab:l,debug:Nd,fetcher:SB,recreateService:!0,preAction:u,postAction:m,onScrollToTop:n,setUpperRefreshing:i});Ou(h),f.useImperativeHandle(a,()=>({refresh:h}),[]);const P=f.useRef({}),O=$t(async()=>{if(!x||b)return;const z=y;if(P.current[z])return;P.current={[z]:!0};let H=v;try{if(l==="dynamic")H=H.concat(await $.loadMore()||[]),C($.hasMore);else for(;!(H.length>v.length);){const k=await wB(2,l,S);H=yB(H,k);}}catch(k){throw P.current[z]=!1,k}if(z!==w()){Nd("fetchMore: skip update for mismatch refreshedAt, %s != %s",z,w());return}Nd("fetchMore: seq(%s) len %s -> %s",c+1,v.length,H.length),g(H),d(k=>k+1),E(),P.current[z]=!1;}),E=$t(()=>{setTimeout(()=>{const z=e?window:o==null?void 0:o.current;z==null||z.dispatchEvent(new CustomEvent("scroll",{detail:{deltaY:0}}));});}),T=f.useRef(null),_=$t(()=>{var z;if(e){const H=XS()+50;return new DOMRect(0,H,window.innerWidth,window.innerHeight-H)}else return (z=o==null?void 0:o.current)==null?void 0:z.getBoundingClientRect()}),R=Z6(),I=f.useMemo(()=>new Array(v.length).fill(void 0),[v.length]),{activeIndex:M,clearActiveIndex:A}=VH({enabled:t&&!R,refresh:h,maxIndex:v.length-1,containerRef:T,getScrollerRect:_,videoCardRefs:I,changeScrollY:e?function({offset:z,absolute:H}){const k=document.documentElement;if(typeof z=="number"){k.scrollTop+=z;return}if(typeof H=="number"){k.scrollTop=H;return}}:void 0}),N=ta(),{colorPrimary:D}=wa(),F=$t((z,H)=>{g(k=>{const W=k.findIndex(K=>K.uniqId===z.uniqId);if(W===-1)return k;let B=k.slice();return B.splice(W,1),hn(`已移除: ${H.title}`,5e3),B});});return ve(nm,{pageStart:0,hasMore:x,loadMore:O,initialLoad:!1,useWindow:e,threshold:window.innerHeight*1,style:{minHeight:"100%"},loader:j("div",{css:_B,children:!b&&j(Ht,{children:"加载中..."})},-1),children:[j("div",{ref:T,className:U(Lh,{[qS]:N},{[WH]:s},r),children:b||p?new Array(24).fill(void 0).map((z,H)=>j(Cc,{loading:!0,className:Ui.card},H)):v.map((z,H)=>{const k=H===M;return j(Cc,{ref:W=>I[H]=W,className:U(Ui.card,{[Ui.cardActive]:k}),css:[k&&cr("border-color:",D,";",""),"",""],item:z,active:k,onRemoveCurrent:F},z.uniqId)})}),j("div",{css:IB,children:!b&&!x&&j(Ht,{children:"没有更多了~"})})]})}),kp=j(In,{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 S1({style:e,className:t}){const{runAsync:n,loading:r}=Yj(I6,{manual:!0}),{accessKey:o}=ur();return j(pu,{size:"small",style:e,className:t,children:o?ve(Ht,{children:[j(In,{onClick:n,disabled:r,children:j("span",{children:"重新获取 access_key"})}),j(In,{onClick:_6,children:j("span",{children:"删除 access_key"})}),kp]}):ve(Ht,{children:[j(In,{onClick:n,disabled:r,size:"middle",children:j("span",{children:"获取 access_key"})}),kp]})})}const RB="_config-icon_18r5p_1",MB="_settings-group_18r5p_6",TB="_settings-group-title_18r5p_9",NB="_settings-group-sub-title_18r5p_14",AB="_settings-group-content_18r5p_20",DB="_row_18r5p_26",kB="_check_18r5p_34",LB="_setting-tabs_18r5p_39",FB="_tab-pane_18r5p_42",et={configIcon:RB,settingsGroup:MB,settingsGroupTitle:TB,settingsGroupSubTitle:NB,settingsGroupContent:AB,row:DB,check:kB,settingTabs:LB,tabPane:FB};async function w1(){hn("即将刷新网页"),await qs(500),location.reload();}function zB(){return rI(),w1()}function Ad(e,t,n){return rn(e,r=>{if($u())return;vt[t]=!vt[t];const o=!vt[t];hn(`已${o?"禁用":"启用"}「${n}」`);},{exactMatch:!0})}function jB({show:e,onHide:t}){const{usePcDesktopApi:n,autoPreviewUpdateInterval:r,filterMinPlayCount:o,filterMinPlayCountEnabled:i,filterMinDuration:a,filterMinDurationEnabled:s}=ur();return Ad(["shift.p"],"autoPreviewWhenKeyboardSelect","键盘选中后自动开始预览"),Ad(["shift.m"],"autoPreviewWhenHover","鼠标悬浮后自动开始预览"),Ad(["shift.c"],"useNarrowMode","居中模式"),ve(Ah,{show:e,onHide:t,hideWhenMaskOnClick:!0,hideWhenEsc:!0,styleModal:{width:900,maxHeight:"unset"},children:[ve("div",{className:Br.modalHeader,children:[ve("div",{className:Br.modalTitle,children:[j(To,{name:"Config",className:et.configIcon}),"设置项"]}),j("div",{className:"space",style:{flex:1}}),j(Dh,{onClick:t})]}),j("main",{className:Br.modalBody,children:j(CC,{tabPosition:"left",size:"middle",defaultActiveKey:"normal",className:et.settingTabs,items:[{label:"常规设置",key:"normal",children:ve("div",{className:et.tabPane,children:[ve("div",{className:et.settingsGroup,children:[ve("div",{className:et.settingsGroupTitle,children:["API 切换",j(vc,{tooltip:j(Ht,{children:"只对推荐 Tab 生效, 详细信息查看 GitHub 主页说明"})})]}),ve("div",{className:U(et.settingsGroupContent),children:[ve(es.Group,{buttonStyle:"solid",value:n?"desktop":"app",onChange:l=>{const c=l.target.value;vt.usePcDesktopApi=c==="desktop";},children:[j(es.Button,{value:"desktop",children:"使用桌面端 API"}),j(es.Button,{value:"app",children:"使用 App 端 API"})]}),!n&&j("div",{className:et.row,style:{marginTop:5},children:j(S1,{})})]})]}),ve("div",{className:et.settingsGroup,children:[j("div",{className:et.settingsGroupTitle,children:"开关"}),ve("div",{className:U(et.settingsGroupContent,et.row),children:[j(lr,{configKey:"pureRecommend",label:"开启纯推荐模式",tooltip:ve(Ht,{children:["首页只保留推荐",j("br",{}),"P.S 需要刷新网页~"]}),className:et.check,extraAction:w1}),j(lr,{configKey:"initialShowMore",label:"自动查看更多",tooltip:"打开首页时默认打开推荐弹框",className:et.check,extraAction:l=>{l&&hn("已开启自动查看更多: 下次打开首页时将直接展示推荐弹框");}}),j(lr,{configKey:"useNarrowMode",label:"启用居中模式",tooltip:ve(Ht,{children:["居中两列",j("br",{}),"切换设置快捷键: ",j(ka,{color:"green",children:"shift+c"})]}),className:et.check}),j(lr,{configKey:"useParallelRequest",label:"批量请求时使用并行",tooltip:ve(Ht,{children:["并行快但可能有重复",j("br",{}),"推荐视频大量重复时关闭这个试试~"]}),className:et.check})]})]}),ve("div",{className:et.settingsGroup,children:[j("div",{className:et.settingsGroupTitle,children:"预览"}),ve("div",{className:U(et.settingsGroupContent,et.row),children:[j(lr,{configKey:"autoPreviewWhenKeyboardSelect",label:"键盘选中后自动开始预览",className:et.check,tooltip:ve(Ht,{children:["手动预览快捷键: ",j(ka,{color:"green",children:"."})," or ",j(ka,{color:"green",children:"p"}),j("br",{}),"切换设置快捷键: ",j(ka,{color:"green",children:"shift+p"})]})}),j(lr,{configKey:"autoPreviewWhenHover",label:"鼠标悬浮后自动开始预览",className:et.check,tooltip:ve(Ht,{children:["鼠标悬浮后自动开始预览, 预览不再跟随鼠标位置 ",j("br",{}),"切换设置快捷键: ",j(ka,{color:"green",children:"shift+m"})]})}),ve("div",{style:{width:"100%",display:"flex",alignItems:"center"},children:["预览更新间隔",j(V5,{style:{flex:1,margin:"0 15px"},min:0,max:1e3,keyboard:!0,onChange:l=>vt.autoPreviewUpdateInterval=l,value:r}),ve("span",{style:{width:"65px"},children:["(",r,"ms)"]})]})]})]}),ve("div",{className:et.settingsGroup,children:[j("div",{className:et.settingsGroupTitle,children:"帮助"}),j("div",{className:U(et.settingsGroupContent),children:j("div",{className:et.row,children:ve(pu,{size:"small",children:[j(In,{href:"https://github.com/magicdawn/bilibili-app-recommend",target:"_blank",children:"GitHub 主页"}),j(In,{href:"https://gf.qytechs.cn/zh-CN/scripts/443530-bilibili-app-recommend",target:"_blank",children:"GreasyFork 主页"}),j(In,{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:et.tabPane,children:ve("div",{className:et.settingsGroup,children:[ve("div",{className:et.settingsGroupTitle,children:["视频过滤",j(vc,{tooltip:ve(Ht,{children:["启用视频过滤会大幅降低加载速度, 谨慎开启! ",j("br",{}),"只对推荐 Tab 生效"]})})]}),ve("div",{className:U(et.settingsGroupContent),children:[j("div",{className:et.settingsGroupSubTitle,children:"过滤范围"}),j(lr,{configKey:"enableFilterForFollowed",label:"对推荐理由为「已关注」的视频启用过滤",tooltip:j(Ht,{children:"默认不过滤「已关注」"})}),j("div",{className:et.settingsGroupSubTitle,children:"过滤器"}),ve("div",{className:et.row,children:[j(lr,{configKey:"filterMinPlayCountEnabled",label:"按播放量过滤",tooltip:j(Ht,{children:"不显示播放量很少的视频"})}),j(zf,{size:"small",min:1,step:1e3,value:o,onChange:l=>l&&si({filterMinPlayCount:l}),disabled:!i})]}),ve("div",{className:et.row,style:{marginTop:8},children:[j(lr,{configKey:"filterMinDurationEnabled",label:"按视频时长过滤",tooltip:j(Ht,{children:"不显示短视频"})}),j(zf,{style:{width:150},size:"small",min:1,step:10,addonAfter:"单位:秒",value:a,onChange:l=>l&&si({filterMinDuration:l}),disabled:!s})]})]})]})})},{label:"外观设置",key:"UI",children:j("div",{className:et.tabPane,children:ve("div",{className:et.settingsGroup,children:[j("div",{className:et.settingsGroupTitle,style:{marginBottom:15},children:"主题选择"}),j("div",{className:U(et.settingsGroupContent),children:j(rj,{})})]})})},{label:"高级设置",key:"advance",children:j("div",{className:et.tabPane,children:ve("div",{className:et.settingsGroup,children:[j("div",{className:et.settingsGroupTitle,children:"高级"}),j("div",{className:U(et.settingsGroupContent),children:j("div",{className:et.row,children:j(S5,{title:"确定",description:"确定恢复默认设置? 该操作不可逆!",onConfirm:zB,children:j(In,{danger:!0,type:"primary",children:"恢复默认设置"})})})}),j("div",{className:et.settingsGroupTitle,style:{marginTop:15},children:"稍后再看"}),j("div",{className:U(et.settingsGroupContent),children:j("div",{className:et.row,children:j(lr,{configKey:"shuffleForWatchLater",label:"对「稍后再看」Tab 使用随机顺序",tooltip:j(Ht,{children:"不包括今天添加的「稍后再看」"})})})})]})})}]})})]})}var Uh={};Object.defineProperty(Uh,"__esModule",{value:!0});var $1=Uh.useSticky=void 0;const Dd=f;function HB(){const e=(0, Dd.useRef)(null),[t,n]=(0, Dd.useState)(!1);return (0, Dd.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]}$1=Uh.useSticky=HB;const BB="_expand-btn_wdzp9_1",WB="_expanded_wdzp9_12",Lp={expandBtn:BB,expanded:WB},VB=f.forwardRef(function({children:t},n){const[r,o]=wS(!1);f.useImperativeHandle(n,()=>o,[o]);const i=j("button",{className:U("primary-btn",Lp.expandBtn),onClick:o.toggle,children:j("svg",{className:U({[Lp.expanded]:r}),children:j("use",{href:"#widget-arrow"})})});return ve(Ht,{children:[i,r&&t]})}),GB="_modal-mask_7bwzz_1",UB="_narrow-mode_7bwzz_1",KB="_modal_7bwzz_1",XB="_modal-header_7bwzz_18",qB="_modal-body_7bwzz_19",YB="_btn-refresh_7bwzz_22",ja={modalMask:GB,narrowMode:UB,modal:KB,modalHeader:XB,modalBody:qB,btnRefresh:YB};var ZB={name:"1q4vxyr",styles:"margin-left:8px"};const QB=f.memo(function({show:t,onHide:n}){const r=f.useRef(null),o=f.useRef(null),{useNarrowMode:i}=ur(),a=f.useMemo(()=>({[ja.narrowMode]:i}),[i]),s=$t(()=>{var v;return (v=o.current)==null?void 0:v.refresh()}),l=$t(()=>{r.current&&(r.current.scrollTop=0);}),c=Xc(),{colorPrimary:d}=wa(),u=f.useMemo(()=>c?{border:`1px solid ${d}`}:void 0,[c,d]),[m,h]=f.useState(!1);return ve(Ah,{show:t,onHide:n,clsModalMask:U(a),clsModal:U(ja.modal,a),styleModal:{...u},children:[ve("div",{className:U(Br.modalHeader,ja.modalHeader),children:[j(US,{onRefresh:s}),j("div",{className:"space",style:{flex:1}}),j(VB,{children:j(q4,{})}),j(E1,{css:ZB,refreshing:m,onRefresh:s,className:ja.btnRefresh,refreshHotkeyEnabled:t}),j(Dh,{onClick:n})]}),j("div",{className:U(Br.modalBody,ja.modalBody),ref:r,children:j(C1,{ref:o,shortcutEnabled:t,onScrollToTop:l,infiteScrollUseWindow:!1,scrollerRef:r,setRefreshing:h})})]})}),JB=Ms.extend("RecHeader"),Kh=cr`
  display: flex;
  align-items: center;
  justify-content: center;
`,Fp={btn:cr`
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    ${Kh}
  `,icon:cr`
    svg {
      width: 14px;
      height: 14px;
    }
  `},Ro=ma({modalFeedVisible:vt.initialShowMore,modalConfigVisible:!1}),e8=function(){return di(Ro)},t8=()=>{Ro.modalFeedVisible=!0;},n8=()=>{Ro.modalFeedVisible=!1;},r8=()=>{Ro.modalConfigVisible=!0;},o8=()=>{Ro.modalConfigVisible=!1;},x1=f.forwardRef(function({onRefresh:t,refreshing:n},r){const{accessKey:o,pureRecommend:i,usePcDesktopApi:a}=ur(),{modalFeedVisible:s,modalConfigVisible:l}=di(Ro);rn(["shift.comma"],h=>{$u()||(Ro.modalConfigVisible=!Ro.modalConfigVisible);},{exactMatch:!0});const[c,d]=$1(),u=$t(()=>{var p;if(!i)return;const h=(p=c.current)==null?void 0:p.parentElement;if(!h)return;const v=h.getBoundingClientRect(),g=XS();if(v.top<g){const b=g-v.top+1;JB("changing scroll on refresh: rect.top = %s, headerHeight = %s, scrollTop -= %s",v.top,g,b),document.documentElement.scrollTop-=b;}});f.useImperativeHandle(r,()=>({scroll:u}));const m=HH();return ve(Ht,{children:[ve("div",{ref:c,className:"area-header",css:[cr`
            margin-bottom: 0;
            height: 50px;
          `,i&&cr`
              position: sticky;
              top: ${m-1}px; // 有缝隙, 故 -1 px
              z-index: 1000;
            `,i&&d&&cr`
              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(US,{onRefresh:t})]}),j("div",{className:"right",children:ve(pu,{size:"small",children:[!a&&!o&&j(S1,{style:{marginLeft:5}}),j(In,{onClick:r8,css:Fp.btn,children:j(To,{name:"Config",css:Fp.icon})}),j(E1,{refreshing:n,onRefresh:t,refreshHotkeyEnabled:!(l||s)}),!i&&ve(In,{css:Kh,onClick:t8,children:[j("span",{children:"查看更多"}),j("svg",{css:cr`
                    width: 12px;
                    height: 12px;
                    margin-left: 2px;
                  `,children:j("use",{href:"#widget-arrow"})})]})]})})]}),j(QB,{show:s,onHide:n8}),j(jB,{show:l,onHide:o8})]})}),E1=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=$t(()=>{l.current&&(l.current.disabled||l.current.click());});f.useImperativeHandle(i,()=>({click:c}),[]),rn("r",()=>{$u()||r&&c();},{exactMatch:!0});const d=Ru(),u=["dynamic","watchlater"].includes(d)?"刷新":"换一换",m=$t(h=>(s(v=>v+360),e==null?void 0:e(h)));return ve(In,{disabled:o,className:t,style:n,css:cr`
        ${Kh}
        &.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:u})]})}),i8={grid:cr`
    /* card=299 col-gap=20  */
    width: ${299*2+20}px;
    margin: 0 auto;
  `};function a8(){const{useNarrowMode:e}=ur(),{modalFeedVisible:t,modalConfigVisible:n}=e8(),r=f.useRef(null),o=f.useRef(null),i=$t(()=>{var c;return (c=o.current)==null?void 0:c.refresh()}),a=$t(()=>{var c;return (c=r.current)==null?void 0:c.scroll()}),[s,l]=f.useState(!1);return ve("section",{"data-area":"推荐",children:[j(x1,{ref:r,refreshing:s,onRefresh:i}),j(C1,{ref:o,css:[e&&i8.grid,"",""],shortcutEnabled:!(t||n),infiteScrollUseWindow:!0,onScrollToTop:a,setRefreshing:l})]})}const s8=Ms.extend("components:SectionRecommend");function l8(){const e=f.useMemo(()=>new Array(20).fill(0).map(()=>crypto.randomUUID()),[]),t=ta(),n=Ru(),{refreshing:r,items:o,refresh:i,error:a}=y1({tab:n,debug:s8,fetcher:CB,recreateService:!1});return Ou(i),ve("section",{"data-area":"推荐",children:[j(x1,{refreshing:r,onRefresh:i}),j("div",{className:U(Lh,BH,{[qS]:t}),style:{marginBottom:t?30:0},children:r||a?e.map(s=>j(Cc,{},s)):o.map(s=>j(Cc,{item:s},s.uniqId))})]})}ha.extend(aI);(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 c8()})();async function c8(){return ns(".adblock-tips"),gS("html.gray",e=>e.classList.remove("gray")),vt.pureRecommend?d8():u8()}async function u8(){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(ta()&&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 qs(200);}if(!n){console.error(`[${No}]: init fail`);return}const r=document.createElement("section");n(r),xu(r).render(j(vS,{children:j(l8,{})})),ta()&&ns(".bili-feed4 .header-channel");}async function d8(){var o,i;ta()?((o=document.querySelector(".bili-feed4 .bili-feed4-layout"))==null||o.remove(),ns(".bili-feed4 .header-channel")):((i=document.querySelector(".bili-layout"))==null||i.remove(),ns(".bili-footer"),ns(".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(ta()?"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),xu(n).render(j(vS,{children:j(a8,{})}));}});f8();

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

QingJ © 2025

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