Greasy Fork

Greasy Fork is available in English.

bilibili-app-recommend

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

目前为 2023-10-22 提交的版本。查看 最新版本

// ==UserScript==
// @name         bilibili-app-recommend
// @namespace    https://magicdawn.fun
// @version      0.17.11
// @author       magicdawn
// @description  为 B 站首页添加像 App 一样的推荐
// @license      MIT
// @icon         https://www.bilibili.com/favicon.ico
// @homepageURL  http://greasyfork.icu/zh-CN/scripts/443530-bilibili-app-recommend
// @supportURL   https://github.com/magicdawn/bilibili-app-recommend/issues
// @match        https://www.bilibili.com/
// @match        https://www.bilibili.com/?*
// @match        https://www.bilibili.com/index.html
// @match        https://www.bilibili.com/index.html?*
// @require      https://registry.npmmirror.com/axios/0.27.2/files/dist/axios.min.js
// @require      https://registry.npmmirror.com/axios-userscript-adapter/0.2.0/files/dist/axiosGmxhrAdapter.min.js
// @require      https://registry.npmmirror.com/react/18.2.0/files/umd/react.production.min.js
// @require      https://registry.npmmirror.com/react-dom/18.2.0/files/umd/react-dom.production.min.js
// @require      https://registry.npmmirror.com/ua-parser-js/1.0.36/files/dist/ua-parser.min.js
// @connect      app.bilibili.com
// @connect      passport.bilibili.com
// @connect      www.mcbbs.net
// @grant        GM.getValue
// @grant        GM.setClipboard
// @grant        GM.setValue
// @grant        GM.xmlHttpRequest
// @grant        GM_addStyle
// @grant        unsafeWindow
// ==/UserScript==

(t=>{if(typeof GM_addStyle=="function"){GM_addStyle(t);return}const e=document.createElement("style");e.textContent=t,document.head.append(e)})(" ._modal-mask_1j5wc_1{position:fixed;left:0;top:0;right:0;bottom:0;background-color:#00000080;z-index:10002;display:flex;align-items:center;justify-content:center}._modal_1j5wc_1{width:500px;max-height:calc(90vh - 50px);background-color:#fff;border-radius:10px;padding:0 15px 15px;display:flex;flex-direction:column;overflow:hidden}._modal-header_1j5wc_23{padding-top:10px;padding-bottom:10px;border-bottom:none;display:flex;align-items:center}._modal-body_1j5wc_30{padding-top:0;flex-grow:1;overflow-y:scroll}._modal-title_1j5wc_35{font-size:1.5rem;margin-bottom:0;line-height:1.5;display:flex;align-items:center}._btn-close_1j5wc_42{margin-left:10px}._btn-close_1j5wc_42 svg{width:10px;height:10px;margin-right:3px;margin-top:-1px}body.dark ._btn-close_1j5wc_42{color:#eee!important;background-color:#333!important;border-color:transparent!important;height:auto;padding:8px 12px;line-height:16px;font-size:13px}._config-icon_1xtyf_1{line-height:1;margin-right:5px;font-size:0}._settings-group_1xtyf_6{margin-bottom:10px}._settings-group_1xtyf_6 ._settings-group-title_1xtyf_9{font-size:2em;display:flex;align-items:center}._settings-group_1xtyf_6 ._settings-group-sub-title_1xtyf_14{font-size:1.3em;display:flex;align-items:center;margin-top:15px}._settings-group_1xtyf_6 ._settings-group-content_1xtyf_20{color:default}._settings-group_1xtyf_6 ._settings-group-content_1xtyf_20 button:first-child{margin-left:0}._row_1xtyf_26{display:flex;align-items:center;flex-wrap:wrap}._row_1xtyf_26 .primary-btn:first-child{margin-left:0}._check_1xtyf_34{margin-bottom:5px;margin-inline-start:0!important;margin-inline-end:5px!important}._setting-tabs_1xtyf_39.ant-tabs .ant-tabs-tab{padding-left:5px}._tab-pane_1xtyf_42{min-height:min(360px,calc(90vh - 121px));max-height:calc(90vh - 121px);overflow-y:scroll}.i-icon{display:inline-block;color:inherit;font-style:normal;line-height:0;text-align:center;text-transform:none;vertical-align:-.125em;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.i-icon-spin svg{animation:i-icon-spin 1s infinite linear}.i-icon-rtl{transform:scaleX(-1)}@keyframes i-icon-spin{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes i-icon-spin{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.primary-btn:disabled:active,.primary-btn:disabled:hover{cursor:wait;background-color:inherit}.ant-btn{font-size:13px;line-height:24px}.ant-btn:disabled{cursor:wait}.ant-radio-button-wrapper-disabled{cursor:wait}body .ant-tooltip a{color:#1677ff;transition:color .3s}body .ant-tooltip a:visited{color:#1677ff}body .ant-tooltip a:hover{color:#69b1ff}body .ant-tooltip a:active{color:#0958d9}body button:where(.ant-switch):focus,body button:where(.ant-switch):active{background-color:#00000040;outline:unset}._modal_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_mnvtu_1{position:relative}._preview-card-wrapper_mnvtu_4{position:absolute;top:0;left:0;right:0;bottom:0;z-index:4;overflow:hidden;border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0}._preview-card-wrapper_mnvtu_4 ._preview-card-inner_mnvtu_17{width:100%;height:100%}._watch-later_mnvtu_21{z-index:5}._badge_mnvtu_24{color:#fa6a9d;border-radius:2px;border:1px #fa6a9d solid;line-height:20px;padding:0 10px;transform:scale(.8);transform-origin:center left}._recommend-reason_mnvtu_33{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:inline-block;color:var(--Or5);background-color:var(--Or1);border-radius:4px;margin-right:4px;font-size:var(--follow-icon-font-size);line-height:var(--follow-icon-line-height);height:var(--follow-icon-line-height);padding:0 4px;cursor:default}._bangumi-desc_mnvtu_48{color:default}._btn-dislike_mnvtu_51{display:flex;align-items:center;justify-content:center;position:absolute;top:8px;left:8px;width:28px;height:28px;border-radius:6px;cursor:pointer;background-color:#212121cc;z-index:9;transform:translateZ(0)}._btn-dislike_mnvtu_51 ._btn-dislike-icon_mnvtu_66{pointer-events:none;-webkit-user-select:none;user-select:none;width:12px;height:12px;color:#fff}._btn-dislike_mnvtu_51 ._btn-dislike-tip_mnvtu_73{pointer-events:none;-webkit-user-select:none;user-select:none;position:absolute;bottom:-6px;left:-5px;transform:translateY(100%);font-size:12px;color:#fff;border-radius:4px;line-height:18px;padding:4px 8px;background-color:#000c;white-space:nowrap}._disliked-wrapper_mnvtu_88{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;border-radius:var(--video-card-border-radius);border:1px solid #eee}body.dark ._disliked-wrapper_mnvtu_88{border:1px solid #333}._disliked-wrapper_mnvtu_88 ._dislike-content-cover_mnvtu_102{border-top-left-radius:6px;border-top-right-radius:6px;padding-top:56.25%;position:relative}._disliked-wrapper_mnvtu_88 ._dislike-content-cover_mnvtu_102 ._dislike-content-cover-inner_mnvtu_108{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}._disliked-wrapper_mnvtu_88 ._dislike-content-cover_mnvtu_102 ._dislike-content-cover-inner_mnvtu_108 ._dislike-icon_mnvtu_119{margin-bottom:5px}._disliked-wrapper_mnvtu_88 ._dislike-content-cover_mnvtu_102 ._dislike-content-cover-inner_mnvtu_108 ._dislike-reason_mnvtu_122{font-size:20px;text-align:center}._disliked-wrapper_mnvtu_88 ._dislike-content-cover_mnvtu_102 ._dislike-content-cover-inner_mnvtu_108 ._dislike-desc_mnvtu_126{font-size:16px;text-align:center}._disliked-wrapper_mnvtu_88 ._dislike-content-action_mnvtu_130{flex:1;width:100%;border-top:1px solid #eee;display:flex;align-items:center;justify-content:center}body.dark ._disliked-wrapper_mnvtu_88 ._dislike-content-action_mnvtu_130{border-top:1px solid #333}._disliked-wrapper_mnvtu_88 ._dislike-content-action_mnvtu_130 button{font-size:16px;color:inherit;display:flex;align-items:center}._skeleton-active_mnvtu_147 .bili-video-card__skeleton--cover,._skeleton-active_mnvtu_147 .bili-video-card__skeleton--text,._skeleton-active_mnvtu_147 .bili-video-card__skeleton--light{background:linear-gradient(135deg,rgba(0,0,0,.06) 25%,rgba(0,0,0,.15) 37%,rgba(0,0,0,.06) 63%);background-size:400% 100%;animation-name:_ant-skeleton-loading_mnvtu_1;animation-duration:2.165s;animation-timing-function:ease;animation-iteration-count:infinite}@keyframes _ant-skeleton-loading_mnvtu_1{0%{background-position:100% 50%}61.8%,to{background-position:0 50%}}._video-grid_t2sr7_9{--video-card-border-radius: 6px;display:grid;position:relative;width:100%;grid-gap:20px 12px}@media (max-width: 1099.9px){._video-grid-new-homepage_t2sr7_17{grid-template-columns:repeat(4,1fr)}._video-grid-new-homepage_t2sr7_17._limit-two-lines_t2sr7_20>*:nth-of-type(n+9){display:none!important}}@media (min-width: 1100px) and (max-width: 1700.9px){._video-grid-new-homepage_t2sr7_17{grid-template-columns:repeat(5,1fr)}._video-grid-new-homepage_t2sr7_17._limit-two-lines_t2sr7_20>*:nth-of-type(n+11){display:none!important}}@media (min-width: 1701px) and (max-width: 2199.9px){._video-grid-new-homepage_t2sr7_17{grid-template-columns:repeat(6,1fr)}._video-grid-new-homepage_t2sr7_17._limit-two-lines_t2sr7_20>*:nth-of-type(n+13){display:none!important}}@media (min-width: 2200px){._video-grid-new-homepage_t2sr7_17{grid-template-columns:repeat(7,1fr)}._video-grid-new-homepage_t2sr7_17._limit-two-lines_t2sr7_20>*:nth-of-type(n+15){display:none!important}}._video-grid-internal-testing_t2sr7_52{grid-gap:20px 20px}@media (max-width: 1399px){._video-grid-internal-testing_t2sr7_52{grid-template-columns:repeat(4,1fr)}._video-grid-internal-testing_t2sr7_52._limit-one-line_t2sr7_59>*:nth-of-type(n+5){display:none!important}._video-grid-internal-testing_t2sr7_52._limit-two-lines_t2sr7_20>*:nth-of-type(n+9){display:none!important}}@media (min-width: 1400px){._video-grid-internal-testing_t2sr7_52{grid-template-columns:repeat(5,1fr)}._video-grid-internal-testing_t2sr7_52._limit-one-line_t2sr7_59>*:nth-of-type(n+6){display:none!important}._video-grid-internal-testing_t2sr7_52._limit-two-lines_t2sr7_20>*:nth-of-type(n+11){display:none!important}}._video-grid-container_t2sr7_80{container-name:video-grid-container;container-type:inline-size}._video-grid-youtube-like_t2sr7_84{--video-card-border-radius: 12px;grid-gap:40px 16px;grid-template-columns:repeat(5,1fr)}@container video-grid-container (width >= 616px){._video-grid-youtube-like_t2sr7_84{grid-template-columns:repeat(2,1fr)}}@container video-grid-container (width >= 932px){._video-grid-youtube-like_t2sr7_84{grid-template-columns:repeat(3,1fr)}}@container video-grid-container (width >= 1248px){._video-grid-youtube-like_t2sr7_84{grid-template-columns:repeat(4,1fr)}}@container video-grid-container (width >= 1564px){._video-grid-youtube-like_t2sr7_84{grid-template-columns:repeat(5,1fr)}}._narrow-mode_t2sr7_112{grid-template-columns:repeat(2,1fr)!important}._expand-btn_wdzp9_1{padding:0;width:31px;height:31px;border-radius:50%}._expand-btn_wdzp9_1 svg{width:13px;height:13px;transform:rotate(180deg)}._expand-btn_wdzp9_1 svg._expanded_wdzp9_12{transform:rotate(0)}body.dark ._expand-btn_wdzp9_1{color:#eee!important;border-color:transparent!important;background-color:#333!important}body.dark ._expand-btn_wdzp9_1:hover{background-color:#555!important}._modal-mask_7bwzz_1._narrow-mode_7bwzz_1{background-color:#000000e6}._modal_7bwzz_1{width:calc(100vw - 30px);height:calc(100vh - 30px);max-height:unset;padding-right:0}._modal_7bwzz_1._narrow-mode_7bwzz_1{width:606px;height:calc(100vh - 10px);border:none}body.dark ._modal_7bwzz_1._narrow-mode_7bwzz_1{border:none}._modal-header_7bwzz_18,._modal-body_7bwzz_19{padding-right:15px}body.dark ._btn-refresh_7bwzz_22{color:#eee!important;background-color:#333!important;border-color:transparent!important;height:auto;padding:8px 12px;line-height:16px;font-size:13px} ");

(async function (f, Q0, Mx, Tc, Nx, kx) {
  '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 Q0__namespace = /*#__PURE__*/_interopNamespaceDefault(Q0);

  var xx=Object.defineProperty;var Ex=(e,t,n)=>t in e?xx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Pt=(e,t,n)=>(Ex(e,typeof t!="symbol"?t+"":t,n),n),id=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var tt=(e,t,n)=>(id(e,t,"read from private field"),n?n.call(e):t.get(e)),Dn=(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);},_n=(e,t,n,r)=>(id(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var sd=(e,t,n,r)=>({set _(o){_n(e,t,o,n);},get _(){return tt(e,t,r)}}),Zt=(e,t,n)=>(id(e,t,"access private method"),n);var Ra=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ax(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype;}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}});}),n}var ey={exports:{}},Mc={};/**
   * @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 Lx=f,jx=Symbol.for("react.element"),zx=Symbol.for("react.fragment"),Dx=Object.prototype.hasOwnProperty,Fx=Lx.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Bx={key:!0,ref:!0,__self:!0,__source:!0};function ty(e,t,n){var r,o={},a=null,i=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)Dx.call(t,r)&&!Bx.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:jx,type:e,key:a,ref:i,props:o,_owner:Fx.current}}Mc.Fragment=zx;Mc.jsx=ty;Mc.jsxs=ty;ey.exports=Mc;var Ji=ey.exports;function Hx(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 Wx(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 Vx=function(){function e(n){var r=this;this._insertTag=function(o){var a;r.tags.length===0?r.insertionPoint?a=r.insertionPoint.nextSibling:r.prepend?a=r.container.firstChild:a=r.before:a=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,a),r.tags.push(o);},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null;}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag);},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Wx(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var a=Hx(o);try{a.insertRule(r,a.cssRules.length);}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++;},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0;},e}(),Rn="-ms-",Ul="-moz-",Rt="-webkit-",ny="comm",Vm="rule",Km="decl",Kx="@import",ry="@keyframes",Gx="@layer",Ux=Math.abs,Nc=String.fromCharCode,Xx=Object.assign;function qx(e,t){return Cn(e,0)^45?(((t<<2^Cn(e,0))<<2^Cn(e,1))<<2^Cn(e,2))<<2^Cn(e,3):0}function oy(e){return e.trim()}function Yx(e,t){return (e=t.exec(e))?e[0]:e}function Tt(e,t,n){return e.replace(t,n)}function df(e,t){return e.indexOf(t)}function Cn(e,t){return e.charCodeAt(t)|0}function es(e,t,n){return e.slice(t,n)}function Hr(e){return e.length}function Gm(e){return e.length}function al(e,t){return t.push(e),e}function Zx(e,t){return e.map(t).join("")}var kc=1,Va=1,ay=0,Un=0,sn=0,ai="";function Ac(e,t,n,r,o,a,i){return {value:e,root:t,parent:n,type:r,props:o,children:a,line:kc,column:Va,length:i,return:""}}function xi(e,t){return Xx(Ac("",null,null,"",null,null,0),e,{length:-e.length},t)}function Qx(){return sn}function Jx(){return sn=Un>0?Cn(ai,--Un):0,Va--,sn===10&&(Va=1,kc--),sn}function ar(){return sn=Un<ay?Cn(ai,Un++):0,Va++,sn===10&&(Va=1,kc++),sn}function Kr(){return Cn(ai,Un)}function Il(){return Un}function xs(e,t){return es(ai,e,t)}function ts(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 iy(e){return kc=Va=1,ay=Hr(ai=e),Un=0,[]}function sy(e){return ai="",e}function Pl(e){return oy(xs(Un-1,ff(e===91?e+2:e===40?e+1:e)))}function eE(e){for(;(sn=Kr())&&sn<33;)ar();return ts(e)>2||ts(sn)>3?"":" "}function tE(e,t){for(;--t&&ar()&&!(sn<48||sn>102||sn>57&&sn<65||sn>70&&sn<97););return xs(e,Il()+(t<6&&Kr()==32&&ar()==32))}function ff(e){for(;ar();)switch(sn){case e:return Un;case 34:case 39:e!==34&&e!==39&&ff(sn);break;case 40:e===41&&ff(e);break;case 92:ar();break}return Un}function nE(e,t){for(;ar()&&e+sn!==47+10;)if(e+sn===42+42&&Kr()===47)break;return "/*"+xs(t,Un-1)+"*"+Nc(e===47?e:ar())}function rE(e){for(;!ts(Kr());)ar();return xs(e,Un)}function ly(e){return sy(_l("",null,null,null,[""],e=iy(e),0,[0],e))}function _l(e,t,n,r,o,a,i,s,c){for(var l=0,u=0,d=i,m=0,g=0,v=0,h=1,p=1,b=1,y=0,S="",x=o,E=a,$=r,C=S;p;)switch(v=y,y=ar()){case 40:if(v!=108&&Cn(C,d-1)==58){df(C+=Tt(Pl(y),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:C+=Pl(y);break;case 9:case 10:case 13:case 32:C+=eE(v);break;case 92:C+=tE(Il()-1,7);continue;case 47:switch(Kr()){case 42:case 47:al(oE(nE(ar(),Il()),t,n),c);break;default:C+="/";}break;case 123*h:s[l++]=Hr(C)*b;case 125*h:case 59:case 0:switch(y){case 0:case 125:p=0;case 59+u:b==-1&&(C=Tt(C,/\f/g,"")),g>0&&Hr(C)-d&&al(g>32?ih(C+";",r,n,d-1):ih(Tt(C," ","")+";",r,n,d-2),c);break;case 59:C+=";";default:if(al($=ah(C,t,n,l,u,o,s,S,x=[],E=[],d),a),y===123)if(u===0)_l(C,t,$,$,x,a,d,s,E);else switch(m===99&&Cn(C,3)===110?100:m){case 100:case 108:case 109:case 115:_l(e,$,$,r&&al(ah(e,$,$,0,0,o,s,S,o,x=[],d),E),o,E,d,s,r?x:E);break;default:_l(C,$,$,$,[""],E,0,s,E);}}l=u=g=0,h=b=1,S=C="",d=i;break;case 58:d=1+Hr(C),g=v;default:if(h<1){if(y==123)--h;else if(y==125&&h++==0&&Jx()==125)continue}switch(C+=Nc(y),y*h){case 38:b=u>0?1:(C+="\f",-1);break;case 44:s[l++]=(Hr(C)-1)*b,b=1;break;case 64:Kr()===45&&(C+=Pl(ar())),m=Kr(),u=d=Hr(S=C+=rE(Il())),y++;break;case 45:v===45&&Hr(C)==2&&(h=0);}}return a}function ah(e,t,n,r,o,a,i,s,c,l,u){for(var d=o-1,m=o===0?a:[""],g=Gm(m),v=0,h=0,p=0;v<r;++v)for(var b=0,y=es(e,d+1,d=Ux(h=i[v])),S=e;b<g;++b)(S=oy(h>0?m[b]+" "+y:Tt(y,/&\f/g,m[b])))&&(c[p++]=S);return Ac(e,t,n,o===0?Vm:s,c,l,u)}function oE(e,t,n){return Ac(e,t,n,ny,Nc(Qx()),es(e,2,-2),0)}function ih(e,t,n,r){return Ac(e,t,n,Km,es(e,0,r),es(e,r+1,-1),r)}function Go(e,t){for(var n="",r=Gm(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function cy(e,t,n,r){switch(e.type){case Gx:if(e.children.length)break;case Kx:case Km:return e.return=e.return||e.value;case ny:return "";case ry:return e.return=e.value+"{"+Go(e.children,r)+"}";case Vm:e.value=e.props.join(",");}return Hr(n=Go(e.children,r))?e.return=e.value+"{"+n+"}":""}function aE(e){var t=Gm(e);return function(n,r,o,a){for(var i="",s=0;s<t;s++)i+=e[s](n,r,o,a)||"";return i}}function iE(e){return function(t){t.root||(t=t.return)&&e(t);}}function sE(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var lE=function(t,n,r){for(var o=0,a=0;o=a,a=Kr(),o===38&&a===12&&(n[r]=1),!ts(a);)ar();return xs(t,Un)},cE=function(t,n){var r=-1,o=44;do switch(ts(o)){case 0:o===38&&Kr()===12&&(n[r]=1),t[r]+=lE(Un-1,n,r);break;case 2:t[r]+=Pl(o);break;case 4:if(o===44){t[++r]=Kr()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Nc(o);}while(o=ar());return t},uE=function(t,n){return sy(cE(iy(t),n))},sh=new WeakMap,dE=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!sh.get(r))&&!o){sh.set(t,!0);for(var a=[],i=uE(n,a),s=r.props,c=0,l=0;c<i.length;c++)for(var u=0;u<s.length;u++,l++)t.props[l]=a[c]?i[c].replace(/&\f/g,s[u]):s[u]+" "+i[c];}}},fE=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="");}};function uy(e,t){switch(qx(e,t)){case 5103:return Rt+"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 Rt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Rt+e+Ul+e+Rn+e+e;case 6828:case 4268:return Rt+e+Rn+e+e;case 6165:return Rt+e+Rn+"flex-"+e+e;case 5187:return Rt+e+Tt(e,/(\w+).+(:[^]+)/,Rt+"box-$1$2"+Rn+"flex-$1$2")+e;case 5443:return Rt+e+Rn+"flex-item-"+Tt(e,/flex-|-self/,"")+e;case 4675:return Rt+e+Rn+"flex-line-pack"+Tt(e,/align-content|flex-|-self/,"")+e;case 5548:return Rt+e+Rn+Tt(e,"shrink","negative")+e;case 5292:return Rt+e+Rn+Tt(e,"basis","preferred-size")+e;case 6060:return Rt+"box-"+Tt(e,"-grow","")+Rt+e+Rn+Tt(e,"grow","positive")+e;case 4554:return Rt+Tt(e,/([^-])(transform)/g,"$1"+Rt+"$2")+e;case 6187:return Tt(Tt(Tt(e,/(zoom-|grab)/,Rt+"$1"),/(image-set)/,Rt+"$1"),e,"")+e;case 5495:case 3959:return Tt(e,/(image-set\([^]*)/,Rt+"$1$`$1");case 4968:return Tt(Tt(e,/(.+:)(flex-)?(.*)/,Rt+"box-pack:$3"+Rn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Rt+e+e;case 4095:case 3583:case 4068:case 2532:return Tt(e,/(.+)-inline(.+)/,Rt+"$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(Hr(e)-1-t>6)switch(Cn(e,t+1)){case 109:if(Cn(e,t+4)!==45)break;case 102:return Tt(e,/(.+:)(.+)-([^]+)/,"$1"+Rt+"$2-$3$1"+Ul+(Cn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return ~df(e,"stretch")?uy(Tt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Cn(e,t+1)!==115)break;case 6444:switch(Cn(e,Hr(e)-3-(~df(e,"!important")&&10))){case 107:return Tt(e,":",":"+Rt)+e;case 101:return Tt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Rt+(Cn(e,14)===45?"inline-":"")+"box$3$1"+Rt+"$2$3$1"+Rn+"$2box$3")+e}break;case 5936:switch(Cn(e,t+11)){case 114:return Rt+e+Rn+Tt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Rt+e+Rn+Tt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Rt+e+Rn+Tt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Rt+e+Rn+e+e}return e}var mE=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Km:t.return=uy(t.value,t.length);break;case ry:return Go([xi(t,{value:Tt(t.value,"@","@"+Rt)})],o);case Vm:if(t.length)return Zx(t.props,function(a){switch(Yx(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Go([xi(t,{props:[Tt(a,/:(read-\w+)/,":"+Ul+"$1")]})],o);case"::placeholder":return Go([xi(t,{props:[Tt(a,/:(plac\w+)/,":"+Rt+"input-$1")]}),xi(t,{props:[Tt(a,/:(plac\w+)/,":"+Ul+"$1")]}),xi(t,{props:[Tt(a,/:(plac\w+)/,Rn+"input-$1")]})],o)}return ""})}},gE=[mE],dy=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(h){var p=h.getAttribute("data-emotion");p.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""));});}var o=t.stylisPlugins||gE,a={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(h){for(var p=h.getAttribute("data-emotion").split(" "),b=1;b<p.length;b++)a[p[b]]=!0;s.push(h);});var c,l=[dE,fE];{var u,d=[cy,iE(function(h){u.insert(h);})],m=aE(l.concat(o,d)),g=function(p){return Go(ly(p),m)};c=function(p,b,y,S){u=y,g(p?p+"{"+b.styles+"}":b.styles),S&&(v.inserted[b.name]=!0);};}var v={key:n,sheet:new Vx({key:n,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:c};return v.sheet.hydrate(s),v},fy={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,Um=vn?Symbol.for("react.element"):60103,Xm=vn?Symbol.for("react.portal"):60106,Lc=vn?Symbol.for("react.fragment"):60107,jc=vn?Symbol.for("react.strict_mode"):60108,zc=vn?Symbol.for("react.profiler"):60114,Dc=vn?Symbol.for("react.provider"):60109,Fc=vn?Symbol.for("react.context"):60110,qm=vn?Symbol.for("react.async_mode"):60111,Bc=vn?Symbol.for("react.concurrent_mode"):60111,Hc=vn?Symbol.for("react.forward_ref"):60112,Wc=vn?Symbol.for("react.suspense"):60113,vE=vn?Symbol.for("react.suspense_list"):60120,Vc=vn?Symbol.for("react.memo"):60115,Kc=vn?Symbol.for("react.lazy"):60116,hE=vn?Symbol.for("react.block"):60121,pE=vn?Symbol.for("react.fundamental"):60117,bE=vn?Symbol.for("react.responder"):60118,yE=vn?Symbol.for("react.scope"):60119;function sr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Um:switch(e=e.type,e){case qm:case Bc:case Lc:case zc:case jc:case Wc:return e;default:switch(e=e&&e.$$typeof,e){case Fc:case Hc:case Kc:case Vc:case Dc:return e;default:return t}}case Xm:return t}}}function my(e){return sr(e)===Bc}At.AsyncMode=qm;At.ConcurrentMode=Bc;At.ContextConsumer=Fc;At.ContextProvider=Dc;At.Element=Um;At.ForwardRef=Hc;At.Fragment=Lc;At.Lazy=Kc;At.Memo=Vc;At.Portal=Xm;At.Profiler=zc;At.StrictMode=jc;At.Suspense=Wc;At.isAsyncMode=function(e){return my(e)||sr(e)===qm};At.isConcurrentMode=my;At.isContextConsumer=function(e){return sr(e)===Fc};At.isContextProvider=function(e){return sr(e)===Dc};At.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Um};At.isForwardRef=function(e){return sr(e)===Hc};At.isFragment=function(e){return sr(e)===Lc};At.isLazy=function(e){return sr(e)===Kc};At.isMemo=function(e){return sr(e)===Vc};At.isPortal=function(e){return sr(e)===Xm};At.isProfiler=function(e){return sr(e)===zc};At.isStrictMode=function(e){return sr(e)===jc};At.isSuspense=function(e){return sr(e)===Wc};At.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Lc||e===Bc||e===zc||e===jc||e===Wc||e===vE||typeof e=="object"&&e!==null&&(e.$$typeof===Kc||e.$$typeof===Vc||e.$$typeof===Dc||e.$$typeof===Fc||e.$$typeof===Hc||e.$$typeof===pE||e.$$typeof===bE||e.$$typeof===yE||e.$$typeof===hE)};At.typeOf=sr;fy.exports=At;var CE=fy.exports,gy=CE,SE={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},$E={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},vy={};vy[gy.ForwardRef]=SE;vy[gy.Memo]=$E;var wE=!0;function Ym(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" ";}),r}var hy=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||wE===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles);},Zm=function(t,n,r){hy(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var a=n;do t.insert(n===a?"."+o:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function xE(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 EE={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},OE=/[A-Z]|^ms/g,IE=/_EMO_([^_]+?)_([^]*?)_EMO_/g,py=function(t){return t.charCodeAt(1)===45},lh=function(t){return t!=null&&typeof t!="boolean"},ld=sE(function(e){return py(e)?e:e.replace(OE,"-$&").toLowerCase()}),ch=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(IE,function(r,o,a){return Wr={name:o,styles:a,next:Wr},o})}return EE[t]!==1&&!py(t)&&typeof n=="number"&&n!==0?n+"px":n};function ns(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 Wr={name:n.name,styles:n.styles,next:Wr},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Wr={name:r.name,styles:r.styles,next:Wr},r=r.next;var o=n.styles+";";return o}return PE(e,t,n)}case"function":{if(e!==void 0){var a=Wr,i=n(e);return Wr=a,ns(e,t,i)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function PE(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=ns(e,t,n[o])+";";else for(var a in n){var i=n[a];if(typeof i!="object")t!=null&&t[i]!==void 0?r+=a+"{"+t[i]+"}":lh(i)&&(r+=ld(a)+":"+ch(a,i)+";");else if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var s=0;s<i.length;s++)lh(i[s])&&(r+=ld(a)+":"+ch(a,i[s])+";");else {var c=ns(e,t,i);switch(a){case"animation":case"animationName":{r+=ld(a)+":"+c+";";break}default:r+=a+"{"+c+"}";}}}return r}var uh=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Wr,za=function(t,n,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var o=!0,a="";Wr=void 0;var i=t[0];i==null||i.raw===void 0?(o=!1,a+=ns(r,n,i)):a+=i[0];for(var s=1;s<t.length;s++)a+=ns(r,n,t[s]),o&&(a+=i[s]);uh.lastIndex=0;for(var c="",l;(l=uh.exec(a))!==null;)c+="-"+l[1];var u=xE(a)+c;return {name:u,styles:a,next:Wr}},_E=function(t){return t()},by=f__namespace["useInsertionEffect"]?f__namespace["useInsertionEffect"]:!1,RE=by||_E,dh=by||f__namespace.useLayoutEffect,Gc={}.hasOwnProperty,yy=f__namespace.createContext(typeof HTMLElement<"u"?dy({key:"css"}):null);yy.Provider;var Cy=function(t){return f.forwardRef(function(n,r){var o=f.useContext(yy);return t(n,o,r)})},Sy=f__namespace.createContext({}),mf="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",$y=function(t,n){var r={};for(var o in n)Gc.call(n,o)&&(r[o]=n[o]);return r[mf]=t,r},TE=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return hy(n,r,o),RE(function(){return Zm(n,r,o)}),null},ME=Cy(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[mf],a=[r],i="";typeof e.className=="string"?i=Ym(t.registered,a,e.className):e.className!=null&&(i=e.className+" ");var s=za(a,void 0,f__namespace.useContext(Sy));i+=t.key+"-"+s.name;var c={};for(var l in e)Gc.call(e,l)&&l!=="css"&&l!==mf&&(c[l]=e[l]);return c.ref=n,c.className=i,f__namespace.createElement(f__namespace.Fragment,null,f__namespace.createElement(TE,{cache:t,serialized:s,isStringTag:typeof o=="string"}),f__namespace.createElement(o,c))}),wy=ME,It=Ji.Fragment;function z(e,t,n){return Gc.call(t,"css")?Ji.jsx(wy,$y(e,t),n):Ji.jsx(e,t,n)}function Ce(e,t,n){return Gc.call(t,"css")?Ji.jsxs(wy,$y(e,t),n):Ji.jsxs(e,t,n)}function NE(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 Qm=NE;function kE(){this.__data__=[],this.size=0;}var AE=kE;function LE(e,t){return e===t||e!==e&&t!==t}var Jm=LE,jE=Jm;function zE(e,t){for(var n=e.length;n--;)if(jE(e[n][0],t))return n;return -1}var Uc=zE,DE=Uc,FE=Array.prototype,BE=FE.splice;function HE(e){var t=this.__data__,n=DE(t,e);if(n<0)return !1;var r=t.length-1;return n==r?t.pop():BE.call(t,n,1),--this.size,!0}var WE=HE,VE=Uc;function KE(e){var t=this.__data__,n=VE(t,e);return n<0?void 0:t[n][1]}var GE=KE,UE=Uc;function XE(e){return UE(this.__data__,e)>-1}var qE=XE,YE=Uc;function ZE(e,t){var n=this.__data__,r=YE(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var QE=ZE,JE=AE,e2=WE,t2=GE,n2=qE,r2=QE;function ii(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]);}}ii.prototype.clear=JE;ii.prototype.delete=e2;ii.prototype.get=t2;ii.prototype.has=n2;ii.prototype.set=r2;var Xc=ii,o2=Xc;function a2(){this.__data__=new o2,this.size=0;}var i2=a2;function s2(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var l2=s2;function c2(e){return this.__data__.get(e)}var u2=c2;function d2(e){return this.__data__.has(e)}var f2=d2,m2=typeof Ra=="object"&&Ra&&Ra.Object===Object&&Ra,xy=m2,g2=xy,v2=typeof self=="object"&&self&&self.Object===Object&&self,h2=g2||v2||Function("return this")(),Lr=h2,p2=Lr,b2=p2.Symbol,si=b2,fh=si,Ey=Object.prototype,y2=Ey.hasOwnProperty,C2=Ey.toString,Ei=fh?fh.toStringTag:void 0;function S2(e){var t=y2.call(e,Ei),n=e[Ei];try{e[Ei]=void 0;var r=!0;}catch{}var o=C2.call(e);return r&&(t?e[Ei]=n:delete e[Ei]),o}var $2=S2,w2=Object.prototype,x2=w2.toString;function E2(e){return x2.call(e)}var O2=E2,mh=si,I2=$2,P2=O2,_2="[object Null]",R2="[object Undefined]",gh=mh?mh.toStringTag:void 0;function T2(e){return e==null?e===void 0?R2:_2:gh&&gh in Object(e)?I2(e):P2(e)}var li=T2;function M2(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Yr=M2,N2=li,k2=Yr,A2="[object AsyncFunction]",L2="[object Function]",j2="[object GeneratorFunction]",z2="[object Proxy]";function D2(e){if(!k2(e))return !1;var t=N2(e);return t==L2||t==j2||t==A2||t==z2}var Oy=D2,F2=Lr,B2=F2["__core-js_shared__"],H2=B2,cd=H2,vh=function(){var e=/[^.]+$/.exec(cd&&cd.keys&&cd.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function W2(e){return !!vh&&vh in e}var V2=W2,K2=Function.prototype,G2=K2.toString;function U2(e){if(e!=null){try{return G2.call(e)}catch{}try{return e+""}catch{}}return ""}var Iy=U2,X2=Oy,q2=V2,Y2=Yr,Z2=Iy,Q2=/[\\^$.*+?()[\]{}|]/g,J2=/^\[object .+?Constructor\]$/,eO=Function.prototype,tO=Object.prototype,nO=eO.toString,rO=tO.hasOwnProperty,oO=RegExp("^"+nO.call(rO).replace(Q2,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function aO(e){if(!Y2(e)||q2(e))return !1;var t=X2(e)?oO:J2;return t.test(Z2(e))}var iO=aO;function sO(e,t){return e==null?void 0:e[t]}var lO=sO,cO=iO,uO=lO;function dO(e,t){var n=uO(e,t);return cO(n)?n:void 0}var ra=dO,fO=ra,mO=Lr,gO=fO(mO,"Map"),eg=gO,vO=ra,hO=vO(Object,"create"),qc=hO,hh=qc;function pO(){this.__data__=hh?hh(null):{},this.size=0;}var bO=pO;function yO(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var CO=yO,SO=qc,$O="__lodash_hash_undefined__",wO=Object.prototype,xO=wO.hasOwnProperty;function EO(e){var t=this.__data__;if(SO){var n=t[e];return n===$O?void 0:n}return xO.call(t,e)?t[e]:void 0}var OO=EO,IO=qc,PO=Object.prototype,_O=PO.hasOwnProperty;function RO(e){var t=this.__data__;return IO?t[e]!==void 0:_O.call(t,e)}var TO=RO,MO=qc,NO="__lodash_hash_undefined__";function kO(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=MO&&t===void 0?NO:t,this}var AO=kO,LO=bO,jO=CO,zO=OO,DO=TO,FO=AO;function ci(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]);}}ci.prototype.clear=LO;ci.prototype.delete=jO;ci.prototype.get=zO;ci.prototype.has=DO;ci.prototype.set=FO;var BO=ci,ph=BO,HO=Xc,WO=eg;function VO(){this.size=0,this.__data__={hash:new ph,map:new(WO||HO),string:new ph};}var KO=VO;function GO(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var UO=GO,XO=UO;function qO(e,t){var n=e.__data__;return XO(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Yc=qO,YO=Yc;function ZO(e){var t=YO(this,e).delete(e);return this.size-=t?1:0,t}var QO=ZO,JO=Yc;function eI(e){return JO(this,e).get(e)}var tI=eI,nI=Yc;function rI(e){return nI(this,e).has(e)}var oI=rI,aI=Yc;function iI(e,t){var n=aI(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var sI=iI,lI=KO,cI=QO,uI=tI,dI=oI,fI=sI;function ui(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]);}}ui.prototype.clear=lI;ui.prototype.delete=cI;ui.prototype.get=uI;ui.prototype.has=dI;ui.prototype.set=fI;var tg=ui,mI=Xc,gI=eg,vI=tg,hI=200;function pI(e,t){var n=this.__data__;if(n instanceof mI){var r=n.__data__;if(!gI||r.length<hI-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new vI(r);}return n.set(e,t),this.size=n.size,this}var bI=pI,yI=Xc,CI=i2,SI=l2,$I=u2,wI=f2,xI=bI;function di(e){var t=this.__data__=new yI(e);this.size=t.size;}di.prototype.clear=CI;di.prototype.delete=SI;di.prototype.get=$I;di.prototype.has=wI;di.prototype.set=xI;var ng=di;function EI(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var OI=EI,II=ra,PI=function(){try{var e=II(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Py=PI,bh=Py;function _I(e,t,n){t=="__proto__"&&bh?bh(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n;}var _y=_I,RI=_y,TI=Jm,MI=Object.prototype,NI=MI.hasOwnProperty;function kI(e,t,n){var r=e[t];(!(NI.call(e,t)&&TI(r,n))||n===void 0&&!(t in e))&&RI(e,t,n);}var rg=kI,AI=rg,LI=_y;function jI(e,t,n,r){var o=!n;n||(n={});for(var a=-1,i=t.length;++a<i;){var s=t[a],c=r?r(n[s],e[s],s,n,e):void 0;c===void 0&&(c=e[s]),o?LI(n,s,c):AI(n,s,c);}return n}var Es=jI;function zI(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var DI=zI;function FI(e){return e!=null&&typeof e=="object"}var Ro=FI,BI=li,HI=Ro,WI="[object Arguments]";function VI(e){return HI(e)&&BI(e)==WI}var KI=VI,yh=KI,GI=Ro,Ry=Object.prototype,UI=Ry.hasOwnProperty,XI=Ry.propertyIsEnumerable,qI=yh(function(){return arguments}())?yh:function(e){return GI(e)&&UI.call(e,"callee")&&!XI.call(e,"callee")},og=qI,YI=Array.isArray,jr=YI,Xl={exports:{}};function ZI(){return !1}var QI=ZI;Xl.exports;(function(e,t){var n=Lr,r=QI,o=t&&!t.nodeType&&t,a=o&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===o,s=i?n.Buffer:void 0,c=s?s.isBuffer:void 0,l=c||r;e.exports=l;})(Xl,Xl.exports);var ag=Xl.exports,JI=9007199254740991,eP=/^(?:0|[1-9]\d*)$/;function tP(e,t){var n=typeof e;return t=t??JI,!!t&&(n=="number"||n!="symbol"&&eP.test(e))&&e>-1&&e%1==0&&e<t}var ig=tP,nP=9007199254740991;function rP(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=nP}var sg=rP,oP=li,aP=sg,iP=Ro,sP="[object Arguments]",lP="[object Array]",cP="[object Boolean]",uP="[object Date]",dP="[object Error]",fP="[object Function]",mP="[object Map]",gP="[object Number]",vP="[object Object]",hP="[object RegExp]",pP="[object Set]",bP="[object String]",yP="[object WeakMap]",CP="[object ArrayBuffer]",SP="[object DataView]",$P="[object Float32Array]",wP="[object Float64Array]",xP="[object Int8Array]",EP="[object Int16Array]",OP="[object Int32Array]",IP="[object Uint8Array]",PP="[object Uint8ClampedArray]",_P="[object Uint16Array]",RP="[object Uint32Array]",Kt={};Kt[$P]=Kt[wP]=Kt[xP]=Kt[EP]=Kt[OP]=Kt[IP]=Kt[PP]=Kt[_P]=Kt[RP]=!0;Kt[sP]=Kt[lP]=Kt[CP]=Kt[cP]=Kt[SP]=Kt[uP]=Kt[dP]=Kt[fP]=Kt[mP]=Kt[gP]=Kt[vP]=Kt[hP]=Kt[pP]=Kt[bP]=Kt[yP]=!1;function TP(e){return iP(e)&&aP(e.length)&&!!Kt[oP(e)]}var MP=TP;function NP(e){return function(t){return e(t)}}var lg=NP,ql={exports:{}};ql.exports;(function(e,t){var n=xy,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===r,i=a&&n.process,s=function(){try{var c=o&&o.require&&o.require("util").types;return c||i&&i.binding&&i.binding("util")}catch{}}();e.exports=s;})(ql,ql.exports);var cg=ql.exports,kP=MP,AP=lg,Ch=cg,Sh=Ch&&Ch.isTypedArray,LP=Sh?AP(Sh):kP,Ty=LP,jP=DI,zP=og,DP=jr,FP=ag,BP=ig,HP=Ty,WP=Object.prototype,VP=WP.hasOwnProperty;function KP(e,t){var n=DP(e),r=!n&&zP(e),o=!n&&!r&&FP(e),a=!n&&!r&&!o&&HP(e),i=n||r||o||a,s=i?jP(e.length,String):[],c=s.length;for(var l in e)(t||VP.call(e,l))&&!(i&&(l=="length"||o&&(l=="offset"||l=="parent")||a&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||BP(l,c)))&&s.push(l);return s}var My=KP,GP=Object.prototype;function UP(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||GP;return e===n}var ug=UP;function XP(e,t){return function(n){return e(t(n))}}var Ny=XP,qP=Ny,YP=qP(Object.keys,Object),ZP=YP,QP=ug,JP=ZP,e_=Object.prototype,t_=e_.hasOwnProperty;function n_(e){if(!QP(e))return JP(e);var t=[];for(var n in Object(e))t_.call(e,n)&&n!="constructor"&&t.push(n);return t}var r_=n_,o_=Oy,a_=sg;function i_(e){return e!=null&&a_(e.length)&&!o_(e)}var ky=i_,s_=My,l_=r_,c_=ky;function u_(e){return c_(e)?s_(e):l_(e)}var Os=u_,d_=Es,f_=Os;function m_(e,t){return e&&d_(t,f_(t),e)}var g_=m_;function v_(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var h_=v_,p_=Yr,b_=ug,y_=h_,C_=Object.prototype,S_=C_.hasOwnProperty;function $_(e){if(!p_(e))return y_(e);var t=b_(e),n=[];for(var r in e)r=="constructor"&&(t||!S_.call(e,r))||n.push(r);return n}var w_=$_,x_=My,E_=w_,O_=ky;function I_(e){return O_(e)?x_(e,!0):E_(e)}var dg=I_,P_=Es,__=dg;function R_(e,t){return e&&P_(t,__(t),e)}var T_=R_,Yl={exports:{}};Yl.exports;(function(e,t){var n=Lr,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===r,i=a?n.Buffer:void 0,s=i?i.allocUnsafe:void 0;function c(l,u){if(u)return l.slice();var d=l.length,m=s?s(d):new l.constructor(d);return l.copy(m),m}e.exports=c;})(Yl,Yl.exports);var M_=Yl.exports;function N_(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var Ay=N_;function k_(e,t){for(var n=-1,r=e==null?0:e.length,o=0,a=[];++n<r;){var i=e[n];t(i,n,e)&&(a[o++]=i);}return a}var A_=k_;function L_(){return []}var Ly=L_,j_=A_,z_=Ly,D_=Object.prototype,F_=D_.propertyIsEnumerable,$h=Object.getOwnPropertySymbols,B_=$h?function(e){return e==null?[]:(e=Object(e),j_($h(e),function(t){return F_.call(e,t)}))}:z_,fg=B_,H_=Es,W_=fg;function V_(e,t){return H_(e,W_(e),t)}var K_=V_;function G_(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var mg=G_,U_=Ny,X_=U_(Object.getPrototypeOf,Object),gg=X_,q_=mg,Y_=gg,Z_=fg,Q_=Ly,J_=Object.getOwnPropertySymbols,eR=J_?function(e){for(var t=[];e;)q_(t,Z_(e)),e=Y_(e);return t}:Q_,jy=eR,tR=Es,nR=jy;function rR(e,t){return tR(e,nR(e),t)}var oR=rR,aR=mg,iR=jr;function sR(e,t,n){var r=t(e);return iR(e)?r:aR(r,n(e))}var zy=sR,lR=zy,cR=fg,uR=Os;function dR(e){return lR(e,uR,cR)}var Dy=dR,fR=zy,mR=jy,gR=dg;function vR(e){return fR(e,gR,mR)}var Fy=vR,hR=ra,pR=Lr,bR=hR(pR,"DataView"),yR=bR,CR=ra,SR=Lr,$R=CR(SR,"Promise"),wR=$R,xR=ra,ER=Lr,OR=xR(ER,"Set"),By=OR,IR=ra,PR=Lr,_R=IR(PR,"WeakMap"),RR=_R,gf=yR,vf=eg,hf=wR,pf=By,bf=RR,Hy=li,fi=Iy,wh="[object Map]",TR="[object Object]",xh="[object Promise]",Eh="[object Set]",Oh="[object WeakMap]",Ih="[object DataView]",MR=fi(gf),NR=fi(vf),kR=fi(hf),AR=fi(pf),LR=fi(bf),Lo=Hy;(gf&&Lo(new gf(new ArrayBuffer(1)))!=Ih||vf&&Lo(new vf)!=wh||hf&&Lo(hf.resolve())!=xh||pf&&Lo(new pf)!=Eh||bf&&Lo(new bf)!=Oh)&&(Lo=function(e){var t=Hy(e),n=t==TR?e.constructor:void 0,r=n?fi(n):"";if(r)switch(r){case MR:return Ih;case NR:return wh;case kR:return xh;case AR:return Eh;case LR:return Oh}return t});var Zc=Lo,jR=Object.prototype,zR=jR.hasOwnProperty;function DR(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&zR.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var FR=DR,BR=Lr,HR=BR.Uint8Array,Wy=HR,Ph=Wy;function WR(e){var t=new e.constructor(e.byteLength);return new Ph(t).set(new Ph(e)),t}var vg=WR,VR=vg;function KR(e,t){var n=t?VR(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var GR=KR,UR=/\w*$/;function XR(e){var t=new e.constructor(e.source,UR.exec(e));return t.lastIndex=e.lastIndex,t}var qR=XR,_h=si,Rh=_h?_h.prototype:void 0,Th=Rh?Rh.valueOf:void 0;function YR(e){return Th?Object(Th.call(e)):{}}var ZR=YR,QR=vg;function JR(e,t){var n=t?QR(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var eT=JR,tT=vg,nT=GR,rT=qR,oT=ZR,aT=eT,iT="[object Boolean]",sT="[object Date]",lT="[object Map]",cT="[object Number]",uT="[object RegExp]",dT="[object Set]",fT="[object String]",mT="[object Symbol]",gT="[object ArrayBuffer]",vT="[object DataView]",hT="[object Float32Array]",pT="[object Float64Array]",bT="[object Int8Array]",yT="[object Int16Array]",CT="[object Int32Array]",ST="[object Uint8Array]",$T="[object Uint8ClampedArray]",wT="[object Uint16Array]",xT="[object Uint32Array]";function ET(e,t,n){var r=e.constructor;switch(t){case gT:return tT(e);case iT:case sT:return new r(+e);case vT:return nT(e,n);case hT:case pT:case bT:case yT:case CT:case ST:case $T:case wT:case xT:return aT(e,n);case lT:return new r;case cT:case fT:return new r(e);case uT:return rT(e);case dT:return new r;case mT:return oT(e)}}var OT=ET,IT=Yr,Mh=Object.create,PT=function(){function e(){}return function(t){if(!IT(t))return {};if(Mh)return Mh(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),_T=PT,RT=_T,TT=gg,MT=ug;function NT(e){return typeof e.constructor=="function"&&!MT(e)?RT(TT(e)):{}}var kT=NT,AT=Zc,LT=Ro,jT="[object Map]";function zT(e){return LT(e)&&AT(e)==jT}var DT=zT,FT=DT,BT=lg,Nh=cg,kh=Nh&&Nh.isMap,HT=kh?BT(kh):FT,WT=HT,VT=Zc,KT=Ro,GT="[object Set]";function UT(e){return KT(e)&&VT(e)==GT}var XT=UT,qT=XT,YT=lg,Ah=cg,Lh=Ah&&Ah.isSet,ZT=Lh?YT(Lh):qT,QT=ZT,JT=ng,eM=OI,tM=rg,nM=g_,rM=T_,oM=M_,aM=Ay,iM=K_,sM=oR,lM=Dy,cM=Fy,uM=Zc,dM=FR,fM=OT,mM=kT,gM=jr,vM=ag,hM=WT,pM=Yr,bM=QT,yM=Os,CM=dg,SM=1,$M=2,wM=4,Vy="[object Arguments]",xM="[object Array]",EM="[object Boolean]",OM="[object Date]",IM="[object Error]",Ky="[object Function]",PM="[object GeneratorFunction]",_M="[object Map]",RM="[object Number]",Gy="[object Object]",TM="[object RegExp]",MM="[object Set]",NM="[object String]",kM="[object Symbol]",AM="[object WeakMap]",LM="[object ArrayBuffer]",jM="[object DataView]",zM="[object Float32Array]",DM="[object Float64Array]",FM="[object Int8Array]",BM="[object Int16Array]",HM="[object Int32Array]",WM="[object Uint8Array]",VM="[object Uint8ClampedArray]",KM="[object Uint16Array]",UM="[object Uint32Array]",Bt={};Bt[Vy]=Bt[xM]=Bt[LM]=Bt[jM]=Bt[EM]=Bt[OM]=Bt[zM]=Bt[DM]=Bt[FM]=Bt[BM]=Bt[HM]=Bt[_M]=Bt[RM]=Bt[Gy]=Bt[TM]=Bt[MM]=Bt[NM]=Bt[kM]=Bt[WM]=Bt[VM]=Bt[KM]=Bt[UM]=!0;Bt[IM]=Bt[Ky]=Bt[AM]=!1;function Rl(e,t,n,r,o,a){var i,s=t&SM,c=t&$M,l=t&wM;if(n&&(i=o?n(e,r,o,a):n(e)),i!==void 0)return i;if(!pM(e))return e;var u=gM(e);if(u){if(i=dM(e),!s)return aM(e,i)}else {var d=uM(e),m=d==Ky||d==PM;if(vM(e))return oM(e,s);if(d==Gy||d==Vy||m&&!o){if(i=c||m?{}:mM(e),!s)return c?sM(e,rM(i,e)):iM(e,nM(i,e))}else {if(!Bt[d])return o?e:{};i=fM(e,d,s);}}a||(a=new JT);var g=a.get(e);if(g)return g;a.set(e,i),bM(e)?e.forEach(function(p){i.add(Rl(p,t,n,p,e,a));}):hM(e)&&e.forEach(function(p,b){i.set(b,Rl(p,t,n,b,e,a));});var v=l?c?cM:lM:c?CM:yM,h=u?void 0:v(e);return eM(h||e,function(p,b){h&&(b=p,p=e[b]),tM(i,b,Rl(p,t,n,b,e,a));}),i}var Uy=Rl,XM=li,qM=Ro,YM="[object Symbol]";function ZM(e){return typeof e=="symbol"||qM(e)&&XM(e)==YM}var Qc=ZM,QM=jr,JM=Qc,eN=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,tN=/^\w*$/;function nN(e,t){if(QM(e))return !1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||JM(e)?!0:tN.test(e)||!eN.test(e)||t!=null&&e in Object(t)}var hg=nN,Xy=tg,rN="Expected a function";function pg(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(rN);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(pg.Cache||Xy),n}pg.Cache=Xy;var oN=pg,aN=oN,iN=500;function sN(e){var t=aN(e,function(r){return n.size===iN&&n.clear(),r}),n=t.cache;return t}var lN=sN,cN=lN,uN=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,dN=/\\(\\)?/g,fN=cN(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(uN,function(n,r,o,a){t.push(o?a.replace(dN,"$1"):r||n);}),t}),mN=fN,jh=si,gN=Qm,vN=jr,hN=Qc,pN=1/0,zh=jh?jh.prototype:void 0,Dh=zh?zh.toString:void 0;function qy(e){if(typeof e=="string")return e;if(vN(e))return gN(e,qy)+"";if(hN(e))return Dh?Dh.call(e):"";var t=e+"";return t=="0"&&1/e==-pN?"-0":t}var bN=qy,yN=bN;function CN(e){return e==null?"":yN(e)}var SN=CN,$N=jr,wN=hg,xN=mN,EN=SN;function ON(e,t){return $N(e)?e:wN(e,t)?[e]:xN(EN(e))}var mi=ON;function IN(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var PN=IN,_N=Qc,RN=1/0;function TN(e){if(typeof e=="string"||_N(e))return e;var t=e+"";return t=="0"&&1/e==-RN?"-0":t}var gi=TN,MN=mi,NN=gi;function kN(e,t){t=MN(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[NN(t[n++])];return n&&n==r?e:void 0}var Jc=kN;function AN(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(o);++r<o;)a[r]=e[r+t];return a}var LN=AN,jN=Jc,zN=LN;function DN(e,t){return t.length<2?e:jN(e,zN(t,0,-1))}var FN=DN,BN=mi,HN=PN,WN=FN,VN=gi;function KN(e,t){return t=BN(t,e),e=WN(e,t),e==null||delete e[VN(HN(t))]}var GN=KN,UN=li,XN=gg,qN=Ro,YN="[object Object]",ZN=Function.prototype,QN=Object.prototype,Yy=ZN.toString,JN=QN.hasOwnProperty,ek=Yy.call(Object);function tk(e){if(!qN(e)||UN(e)!=YN)return !1;var t=XN(e);if(t===null)return !0;var n=JN.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Yy.call(n)==ek}var nk=tk,rk=nk;function ok(e){return rk(e)?void 0:e}var ak=ok,Fh=si,ik=og,sk=jr,Bh=Fh?Fh.isConcatSpreadable:void 0;function lk(e){return sk(e)||ik(e)||!!(Bh&&e&&e[Bh])}var ck=lk,uk=mg,dk=ck;function Zy(e,t,n,r,o){var a=-1,i=e.length;for(n||(n=dk),o||(o=[]);++a<i;){var s=e[a];t>0&&n(s)?t>1?Zy(s,t-1,n,r,o):uk(o,s):r||(o[o.length]=s);}return o}var fk=Zy,mk=fk;function gk(e){var t=e==null?0:e.length;return t?mk(e,1):[]}var vk=gk;function hk(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var pk=hk,bk=pk,Hh=Math.max;function yk(e,t,n){return t=Hh(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,a=Hh(r.length-t,0),i=Array(a);++o<a;)i[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(i),bk(e,this,s)}}var Ck=yk;function Sk(e){return function(){return e}}var $k=Sk;function wk(e){return e}var Qy=wk,xk=$k,Wh=Py,Ek=Qy,Ok=Wh?function(e,t){return Wh(e,"toString",{configurable:!0,enumerable:!1,value:xk(t),writable:!0})}:Ek,Ik=Ok,Pk=800,_k=16,Rk=Date.now;function Tk(e){var t=0,n=0;return function(){var r=Rk(),o=_k-(r-n);if(n=r,o>0){if(++t>=Pk)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Mk=Tk,Nk=Ik,kk=Mk,Ak=kk(Nk),Lk=Ak,jk=vk,zk=Ck,Dk=Lk;function Fk(e){return Dk(zk(e,void 0,jk),e+"")}var Jy=Fk,Bk=Qm,Hk=Uy,Wk=GN,Vk=mi,Kk=Es,Gk=ak,Uk=Jy,Xk=Fy,qk=1,Yk=2,Zk=4,Qk=Uk(function(e,t){var n={};if(e==null)return n;var r=!1;t=Bk(t,function(a){return a=Vk(a,e),r||(r=a.length>1),a}),Kk(e,Xk(e),n),r&&(n=Hk(n,qk|Yk|Zk,Gk));for(var o=t.length;o--;)Wk(n,t[o]);return n}),Jk=Qk;const e3=fn(Jk);var t3=Lr,n3=function(){return t3.Date.now()},r3=n3,o3=/\s/;function a3(e){for(var t=e.length;t--&&o3.test(e.charAt(t)););return t}var i3=a3,s3=i3,l3=/^\s+/;function c3(e){return e&&e.slice(0,s3(e)+1).replace(l3,"")}var u3=c3,d3=u3,Vh=Yr,f3=Qc,Kh=0/0,m3=/^[-+]0x[0-9a-f]+$/i,g3=/^0b[01]+$/i,v3=/^0o[0-7]+$/i,h3=parseInt;function p3(e){if(typeof e=="number")return e;if(f3(e))return Kh;if(Vh(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Vh(t)?t+"":t;}if(typeof e!="string")return e===0?e:+e;e=d3(e);var n=g3.test(e);return n||v3.test(e)?h3(e.slice(2),n?2:8):m3.test(e)?Kh:+e}var e1=p3,b3=Yr,ud=r3,Gh=e1,y3="Expected a function",C3=Math.max,S3=Math.min;function $3(e,t,n){var r,o,a,i,s,c,l=0,u=!1,d=!1,m=!0;if(typeof e!="function")throw new TypeError(y3);t=Gh(t)||0,b3(n)&&(u=!!n.leading,d="maxWait"in n,a=d?C3(Gh(n.maxWait)||0,t):a,m="trailing"in n?!!n.trailing:m);function g($){var C=r,w=o;return r=o=void 0,l=$,i=e.apply(w,C),i}function v($){return l=$,s=setTimeout(b,t),u?g($):i}function h($){var C=$-c,w=$-l,O=t-C;return d?S3(O,a-w):O}function p($){var C=$-c,w=$-l;return c===void 0||C>=t||C<0||d&&w>=a}function b(){var $=ud();if(p($))return y($);s=setTimeout(b,h($));}function y($){return s=void 0,m&&r?g($):(r=o=void 0,i)}function S(){s!==void 0&&clearTimeout(s),l=0,r=c=o=s=void 0;}function x(){return s===void 0?i:y(ud())}function E(){var $=ud(),C=p($);if(r=arguments,o=this,c=$,C){if(s===void 0)return v(c);if(d)return clearTimeout(s),s=setTimeout(b,t),g(c)}return s===void 0&&(s=setTimeout(b,t)),i}return E.cancel=S,E.flush=x,E}var t1=$3;const w3=fn(t1);var x3=t1,E3=Yr,O3="Expected a function";function I3(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(O3);return E3(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),x3(e,t,{leading:r,maxWait:t,trailing:o})}var P3=I3;const n1=fn(P3);var _3=rg,R3=mi,T3=ig,Uh=Yr,M3=gi;function N3(e,t,n,r){if(!Uh(e))return e;t=R3(t,e);for(var o=-1,a=t.length,i=a-1,s=e;s!=null&&++o<a;){var c=M3(t[o]),l=n;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(o!=i){var u=s[c];l=r?r(u,c,s):void 0,l===void 0&&(l=Uh(u)?u:T3(t[o+1])?[]:{});}_3(s,c,l),s=s[c];}return e}var k3=N3,A3=Jc,L3=k3,j3=mi;function z3(e,t,n){for(var r=-1,o=t.length,a={};++r<o;){var i=t[r],s=A3(e,i);n(s,i)&&L3(a,j3(i,e),s);}return a}var D3=z3;function F3(e,t){return e!=null&&t in Object(e)}var B3=F3,H3=mi,W3=og,V3=jr,K3=ig,G3=sg,U3=gi;function X3(e,t,n){t=H3(t,e);for(var r=-1,o=t.length,a=!1;++r<o;){var i=U3(t[r]);if(!(a=e!=null&&n(e,i)))break;e=e[i];}return a||++r!=o?a:(o=e==null?0:e.length,!!o&&G3(o)&&K3(i,o)&&(V3(e)||W3(e)))}var q3=X3,Y3=B3,Z3=q3;function Q3(e,t){return e!=null&&Z3(e,t,Y3)}var r1=Q3,J3=D3,e4=r1;function t4(e,t){return J3(e,t,function(n,r){return e4(e,r)})}var n4=t4,r4=n4,o4=Jy,a4=o4(function(e,t){return e==null?{}:r4(e,t)}),i4=a4;const bg=fn(i4);var yf={exports:{}},dd,Xh;function s4(){if(Xh)return dd;Xh=1;var e=1e3,t=e*60,n=t*60,r=n*24,o=r*7,a=r*365.25;dd=function(u,d){d=d||{};var m=typeof u;if(m==="string"&&u.length>0)return i(u);if(m==="number"&&isFinite(u))return d.long?c(u):s(u);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(u))};function i(u){if(u=String(u),!(u.length>100)){var d=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(u);if(d){var m=parseFloat(d[1]),g=(d[2]||"ms").toLowerCase();switch(g){case"years":case"year":case"yrs":case"yr":case"y":return m*a;case"weeks":case"week":case"w":return m*o;case"days":case"day":case"d":return m*r;case"hours":case"hour":case"hrs":case"hr":case"h":return m*n;case"minutes":case"minute":case"mins":case"min":case"m":return m*t;case"seconds":case"second":case"secs":case"sec":case"s":return m*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return m;default:return}}}}function s(u){var d=Math.abs(u);return d>=r?Math.round(u/r)+"d":d>=n?Math.round(u/n)+"h":d>=t?Math.round(u/t)+"m":d>=e?Math.round(u/e)+"s":u+"ms"}function c(u){var d=Math.abs(u);return d>=r?l(u,d,r,"day"):d>=n?l(u,d,n,"hour"):d>=t?l(u,d,t,"minute"):d>=e?l(u,d,e,"second"):u+" ms"}function l(u,d,m,g){var v=d>=m*1.5;return Math.round(u/m)+" "+g+(v?"s":"")}return dd}function l4(e){n.debug=n,n.default=n,n.coerce=c,n.disable=a,n.enable=o,n.enabled=i,n.humanize=s4(),n.destroy=l,Object.keys(e).forEach(u=>{n[u]=e[u];}),n.names=[],n.skips=[],n.formatters={};function t(u){let d=0;for(let m=0;m<u.length;m++)d=(d<<5)-d+u.charCodeAt(m),d|=0;return n.colors[Math.abs(d)%n.colors.length]}n.selectColor=t;function n(u){let d,m=null,g,v;function h(...p){if(!h.enabled)return;const b=h,y=Number(new Date),S=y-(d||y);b.diff=S,b.prev=d,b.curr=y,d=y,p[0]=n.coerce(p[0]),typeof p[0]!="string"&&p.unshift("%O");let x=0;p[0]=p[0].replace(/%([a-zA-Z%])/g,($,C)=>{if($==="%%")return "%";x++;const w=n.formatters[C];if(typeof w=="function"){const O=p[x];$=w.call(b,O),p.splice(x,1),x--;}return $}),n.formatArgs.call(b,p),(b.log||n.log).apply(b,p);}return h.namespace=u,h.useColors=n.useColors(),h.color=n.selectColor(u),h.extend=r,h.destroy=n.destroy,Object.defineProperty(h,"enabled",{enumerable:!0,configurable:!1,get:()=>m!==null?m:(g!==n.namespaces&&(g=n.namespaces,v=n.enabled(u)),v),set:p=>{m=p;}}),typeof n.init=="function"&&n.init(h),h}function r(u,d){const m=n(this.namespace+(typeof d>"u"?":":d)+u);return m.log=this.log,m}function o(u){n.save(u),n.namespaces=u,n.names=[],n.skips=[];let d;const m=(typeof u=="string"?u:"").split(/[\s,]+/),g=m.length;for(d=0;d<g;d++)m[d]&&(u=m[d].replace(/\*/g,".*?"),u[0]==="-"?n.skips.push(new RegExp("^"+u.slice(1)+"$")):n.names.push(new RegExp("^"+u+"$")));}function a(){const u=[...n.names.map(s),...n.skips.map(s).map(d=>"-"+d)].join(",");return n.enable(""),u}function i(u){if(u[u.length-1]==="*")return !0;let d,m;for(d=0,m=n.skips.length;d<m;d++)if(n.skips[d].test(u))return !1;for(d=0,m=n.names.length;d<m;d++)if(n.names[d].test(u))return !0;return !1}function s(u){return u.toString().substring(2,u.toString().length-2).replace(/\.\*\?$/,"*")}function c(u){return u instanceof Error?u.stack||u.message:u}function l(){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 c4=l4;(function(e,t){t.formatArgs=r,t.save=o,t.load=a,t.useColors=n,t.storage=i(),t.destroy=(()=>{let c=!1;return ()=>{c||(c=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."));}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function 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(c){if(c[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+c[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const l="color: "+this.color;c.splice(1,0,l,"color: inherit");let u=0,d=0;c[0].replace(/%[a-zA-Z%]/g,m=>{m!=="%%"&&(u++,m==="%c"&&(d=u));}),c.splice(d,0,l);}t.log=console.debug||console.log||(()=>{});function o(c){try{c?t.storage.setItem("debug",c):t.storage.removeItem("debug");}catch{}}function a(){let c;try{c=t.storage.getItem("debug");}catch{}return !c&&typeof process<"u"&&"env"in process&&(c={}.DEBUG),c}function i(){try{return localStorage}catch{}}e.exports=c4(t);const{formatters:s}=e.exports;s.j=function(c){try{return JSON.stringify(c)}catch(l){return "[UnexpectedJSONParseError]: "+l.message}};})(yf,yf.exports);var u4=yf.exports;const d4=fn(u4),$n="bilibili-app-recommend",f4="bilibili_app_recommend",vi=d4($n),o1="https://api.bilibili.com",a1="https://app.bilibili.com";var i1={exports:{}};/*!
  	Copyright (c) 2018 Jed Watson.
  	Licensed under the MIT License (MIT), see
  	http://jedwatson.github.io/classnames
  */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],o=0;o<arguments.length;o++){var a=arguments[o];if(a){var i=typeof a;if(i==="string"||i==="number")r.push(a);else if(Array.isArray(a)){if(a.length){var s=n.apply(null,a);s&&r.push(s);}}else if(i==="object"){if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]")){r.push(a.toString());continue}for(var c in a)t.call(a,c)&&a[c]&&r.push(c);}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n;})();})(i1);var m4=i1.exports;const V=fn(m4);function rt(e){"@babel/helpers - typeof";return rt=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},rt(e)}function g4(e,t){if(rt(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(rt(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return (t==="string"?String:Number)(e)}function s1(e){var t=g4(e,"string");return rt(t)==="symbol"?t:String(t)}function D(e,t,n){return t=s1(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qh(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 q(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qh(Object(n),!0).forEach(function(r){D(e,r,n[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r));});}return e}function Cf(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 v4(e){if(Array.isArray(e))return Cf(e)}function l1(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function yg(e,t){if(e){if(typeof e=="string")return Cf(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 Cf(e,t)}}function h4(){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 Re(e){return v4(e)||l1(e)||yg(e)||h4()}function c1(e){if(Array.isArray(e))return e}function p4(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,i,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1;}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(u){l=!0,o=u;}finally{try{if(!c&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw o}}return s}}function u1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function J(e,t){return c1(e)||p4(e,t)||yg(e,t)||u1()}function Mn(e){var t=f__namespace.useRef();t.current=e;var n=f__namespace.useCallback(function(){for(var r,o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return (r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(a))},[]);return n}function Hn(){return !!(typeof window<"u"&&window.document&&window.document.createElement)}var Yh=Hn()?f__namespace.useLayoutEffect:f__namespace.useEffect,Ht=function(t,n){var r=f__namespace.useRef(!0);Yh(function(){return t(r.current)},n),Yh(function(){return r.current=!1,function(){r.current=!0;}},[]);},Da=function(t,n){Ht(function(r){if(!r)return t()},n);};function Uo(e){var t=f__namespace.useRef(!1),n=f__namespace.useState(e),r=J(n,2),o=r[0],a=r[1];f__namespace.useEffect(function(){return t.current=!1,function(){t.current=!0;}},[]);function i(s,c){c&&t.current||a(s);}return [o,i]}function fd(e){return e!==void 0}function Wt(e,t){var n=t||{},r=n.defaultValue,o=n.value,a=n.onChange,i=n.postState,s=Uo(function(){return fd(o)?o:fd(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),c=J(s,2),l=c[0],u=c[1],d=o!==void 0?o:l,m=i?i(d):d,g=Mn(a),v=Uo([d]),h=J(v,2),p=h[0],b=h[1];Da(function(){var S=p[0];l!==S&&g(l,S);},[p]),Da(function(){fd(o)||u(o);},[o]);var y=Mn(function(S,x){u(S,x),b([d],x);});return [m,y]}var Sf={},b4=function(t){};function y4(e,t){}function C4(e,t){}function S4(){Sf={};}function d1(e,t,n){!t&&!Sf[n]&&(e(!1,n),Sf[n]=!0);}function gn(e,t){d1(y4,e,t);}function $4(e,t){d1(C4,e,t);}gn.preMessage=b4;gn.resetWarned=S4;gn.noteOnce=$4;function Is(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(a,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=r.has(a);if(gn(!c,"Warning: There may be circular references"),c)return !1;if(a===i)return !0;if(n&&s>1)return !1;r.add(a);var l=s+1;if(Array.isArray(a)){if(!Array.isArray(i)||a.length!==i.length)return !1;for(var u=0;u<a.length;u++)if(!o(a[u],i[u],l))return !1;return !0}if(a&&i&&rt(a)==="object"&&rt(i)==="object"){var d=Object.keys(a);return d.length!==Object.keys(i).length?!1:d.every(function(m){return o(a[m],i[m],l)})}return !1}return o(e,t)}var oa=f__namespace.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}});function Oe(){return Oe=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},Oe.apply(this,arguments)}function w4(e,t){if(e==null)return {};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Ze(e,t){if(e==null)return {};var n=w4(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);}return n}var ce={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>=ce.F1&&n<=ce.F12)return !1;switch(n){case ce.ALT:case ce.CAPS_LOCK:case ce.CONTEXT_MENU:case ce.CTRL:case ce.DOWN:case ce.END:case ce.ESC:case ce.HOME:case ce.INSERT:case ce.LEFT:case ce.MAC_FF_META:case ce.META:case ce.NUMLOCK:case ce.NUM_CENTER:case ce.PAGE_DOWN:case ce.PAGE_UP:case ce.PAUSE:case ce.PRINT_SCREEN:case ce.RIGHT:case ce.SHIFT:case ce.UP:case ce.WIN_KEY:case ce.WIN_KEY_RIGHT:return !1;default:return !0}},isCharacterKey:function(t){if(t>=ce.ZERO&&t<=ce.NINE||t>=ce.NUM_ZERO&&t<=ce.NUM_MULTIPLY||t>=ce.A&&t<=ce.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return !0;switch(t){case ce.SPACE:case ce.QUESTION_MARK:case ce.NUM_PLUS:case ce.NUM_MINUS:case ce.NUM_PERIOD:case ce.NUM_DIVISION:case ce.SEMICOLON:case ce.DASH:case ce.EQUALS:case ce.COMMA:case ce.PERIOD:case ce.SLASH:case ce.APOSTROPHE:case ce.SINGLE_QUOTE:case ce.OPEN_SQUARE_BRACKET:case ce.BACKSLASH:case ce.CLOSE_SQUARE_BRACKET:return !0;default:return !1}}};function $f(e,t,n){return (e-t)/(n-t)}function Cg(e,t,n,r){var o=$f(t,n,r),a={};switch(e){case"rtl":a.right="".concat(o*100,"%"),a.transform="translateX(50%)";break;case"btt":a.bottom="".concat(o*100,"%"),a.transform="translateY(50%)";break;case"ttb":a.top="".concat(o*100,"%"),a.transform="translateY(-50%)";break;default:a.left="".concat(o*100,"%"),a.transform="translateX(-50%)";break}return a}function Ta(e,t){return Array.isArray(e)?e[t]:e}var x4=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"],E4=f__namespace.forwardRef(function(e,t){var n,r,o=e.prefixCls,a=e.value,i=e.valueIndex,s=e.onStartMove,c=e.style,l=e.render,u=e.dragging,d=e.onOffsetChange,m=Ze(e,x4),g=f__namespace.useContext(oa),v=g.min,h=g.max,p=g.direction,b=g.disabled,y=g.keyboard,S=g.range,x=g.tabIndex,E=g.ariaLabelForHandle,$=g.ariaLabelledByForHandle,C=g.ariaValueTextFormatterForHandle,w=g.styles,O=g.classNames,_="".concat(o,"-handle"),T=function(N){b||s(N,i);},I=function(N){if(!b&&y){var M=null;switch(N.which||N.keyCode){case ce.LEFT:M=p==="ltr"||p==="btt"?-1:1;break;case ce.RIGHT:M=p==="ltr"||p==="btt"?1:-1;break;case ce.UP:M=p!=="ttb"?1:-1;break;case ce.DOWN:M=p!=="ttb"?-1:1;break;case ce.HOME:M="min";break;case ce.END:M="max";break;case ce.PAGE_UP:M=2;break;case ce.PAGE_DOWN:M=-2;break}M!==null&&(N.preventDefault(),d(M,i));}},P=Cg(p,a,v,h),R=f__namespace.createElement("div",Oe({ref:t,className:V(_,(n={},D(n,"".concat(_,"-").concat(i+1),S),D(n,"".concat(_,"-dragging"),u),n),O.handle),style:q(q(q({},P),c),w.handle),onMouseDown:T,onTouchStart:T,onKeyDown:I,tabIndex:b?null:Ta(x,i),role:"slider","aria-valuemin":v,"aria-valuemax":h,"aria-valuenow":a,"aria-disabled":b,"aria-label":Ta(E,i),"aria-labelledby":Ta($,i),"aria-valuetext":(r=Ta(C,i))===null||r===void 0?void 0:r(a),"aria-orientation":p==="ltr"||p==="rtl"?"horizontal":"vertical"},m));return l&&(R=l(R,{index:i,prefixCls:o,value:a,dragging:u})),R}),O4=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],I4=f__namespace.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.onStartMove,a=e.onOffsetChange,i=e.values,s=e.handleRender,c=e.draggingIndex,l=Ze(e,O4),u=f__namespace.useRef({});return f__namespace.useImperativeHandle(t,function(){return {focus:function(m){var g;(g=u.current[m])===null||g===void 0||g.focus();}}}),f__namespace.createElement(f__namespace.Fragment,null,i.map(function(d,m){return f__namespace.createElement(E4,Oe({ref:function(v){v?u.current[m]=v:delete u.current[m];},dragging:c===m,prefixCls:n,style:Ta(r,m),key:m,value:d,valueIndex:m,onStartMove:o,onOffsetChange:a,render:s},l))}))});function Zh(e){var t="touches"in e?e.touches[0]:e;return {pageX:t.pageX,pageY:t.pageY}}function P4(e,t,n,r,o,a,i,s,c){var l=f__namespace.useState(null),u=J(l,2),d=u[0],m=u[1],g=f__namespace.useState(-1),v=J(g,2),h=v[0],p=v[1],b=f__namespace.useState(n),y=J(b,2),S=y[0],x=y[1],E=f__namespace.useState(n),$=J(E,2),C=$[0],w=$[1],O=f__namespace.useRef(null),_=f__namespace.useRef(null);f__namespace.useEffect(function(){h===-1&&x(n);},[n,h]),f__namespace.useEffect(function(){return function(){document.removeEventListener("mousemove",O.current),document.removeEventListener("mouseup",_.current),document.removeEventListener("touchmove",O.current),document.removeEventListener("touchend",_.current);}},[]);var T=function(M,L){S.some(function(j,F){return j!==M[F]})&&(L!==void 0&&m(L),x(M),i(M));},I=function(M,L){if(M===-1){var j=C[0],F=C[C.length-1],K=r-j,B=o-F,W=L*(o-r);W=Math.max(W,K),W=Math.min(W,B);var H=a(j+W);W=H-j;var Y=C.map(function(ee){return ee+W});T(Y);}else {var U=(o-r)*L,X=Re(S);X[M]=C[M];var G=c(X,U,M,"dist");T(G.values,G.value);}},P=f__namespace.useRef(I);P.current=I;var R=function(M,L){M.stopPropagation();var j=n[L];p(L),m(j),w(n);var F=Zh(M),K=F.pageX,B=F.pageY,W=function(U){U.preventDefault();var X=Zh(U),G=X.pageX,ee=X.pageY,te=G-K,ie=ee-B,le=e.current.getBoundingClientRect(),Q=le.width,oe=le.height,ue;switch(t){case"btt":ue=-ie/oe;break;case"ttb":ue=ie/oe;break;case"rtl":ue=-te/Q;break;default:ue=te/Q;}P.current(L,ue);},H=function Y(U){U.preventDefault(),document.removeEventListener("mouseup",Y),document.removeEventListener("mousemove",W),document.removeEventListener("touchend",Y),document.removeEventListener("touchmove",W),O.current=null,_.current=null,p(-1),s();};document.addEventListener("mouseup",H),document.addEventListener("mousemove",W),document.addEventListener("touchend",H),document.addEventListener("touchmove",W),O.current=W,_.current=H;},k=f__namespace.useMemo(function(){var N=Re(n).sort(function(L,j){return L-j}),M=Re(S).sort(function(L,j){return L-j});return N.every(function(L,j){return L===M[j]})?S:n},[n,S]);return [h,d,k,R]}function _4(e,t,n,r,o,a){var i=f__namespace.useCallback(function(g){var v=isFinite(g)?g:e;return v=Math.min(t,g),v=Math.max(e,v),v},[e,t]),s=f__namespace.useCallback(function(g){if(n!==null){var v=e+Math.round((i(g)-e)/n)*n,h=function(S){return (String(S).split(".")[1]||"").length},p=Math.max(h(n),h(t),h(e)),b=Number(v.toFixed(p));return e<=b&&b<=t?b:null}return null},[n,e,t,i]),c=f__namespace.useCallback(function(g){var v=i(g),h=r.map(function(y){return y.value});n!==null&&h.push(s(g)),h.push(e,t);var p=h[0],b=t-e;return h.forEach(function(y){var S=Math.abs(v-y);S<=b&&(p=y,b=S);}),p},[e,t,r,n,i,s]),l=function g(v,h,p){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof h=="number"){var y,S=v[p],x=S+h,E=[];r.forEach(function(_){E.push(_.value);}),E.push(e,t),E.push(s(S));var $=h>0?1:-1;b==="unit"?E.push(s(S+$*n)):E.push(s(x)),E=E.filter(function(_){return _!==null}).filter(function(_){return h<0?_<=S:_>=S}),b==="unit"&&(E=E.filter(function(_){return _!==S}));var C=b==="unit"?S:x;y=E[0];var w=Math.abs(y-C);if(E.forEach(function(_){var T=Math.abs(_-C);T<w&&(y=_,w=T);}),y===void 0)return h<0?e:t;if(b==="dist")return y;if(Math.abs(h)>1){var O=Re(v);return O[p]=y,g(O,h-$,p,b)}return y}else {if(h==="min")return e;if(h==="max")return t}},u=function(v,h,p){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",y=v[p],S=l(v,h,p,b);return {value:S,changed:S!==y}},d=function(v){return a===null&&v===0||typeof a=="number"&&v<a},m=function(v,h,p){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",y=v.map(c),S=y[p],x=l(y,h,p,b);if(y[p]=x,o===!1){var E=a||0;p>0&&y[p-1]!==S&&(y[p]=Math.max(y[p],y[p-1]+E)),p<y.length-1&&y[p+1]!==S&&(y[p]=Math.min(y[p],y[p+1]-E));}else if(typeof a=="number"||a===null){for(var $=p+1;$<y.length;$+=1)for(var C=!0;d(y[$]-y[$-1])&&C;){var w=u(y,1,$);y[$]=w.value,C=w.changed;}for(var O=p;O>0;O-=1)for(var _=!0;d(y[O]-y[O-1])&&_;){var T=u(y,-1,O-1);y[O-1]=T.value,_=T.changed;}for(var I=y.length-1;I>0;I-=1)for(var P=!0;d(y[I]-y[I-1])&&P;){var R=u(y,-1,I-1);y[I-1]=R.value,P=R.changed;}for(var k=0;k<y.length-1;k+=1)for(var N=!0;d(y[k+1]-y[k])&&N;){var M=u(y,1,k+1);y[k+1]=M.value,N=M.changed;}}return {value:y[p],values:y}};return [c,m]}function R4(e){var t=e.prefixCls,n=e.style,r=e.children,o=e.value,a=e.onClick,i=f__namespace.useContext(oa),s=i.min,c=i.max,l=i.direction,u=i.includedStart,d=i.includedEnd,m=i.included,g="".concat(t,"-text"),v=Cg(l,o,s,c);return f__namespace.createElement("span",{className:V(g,D({},"".concat(g,"-active"),m&&u<=o&&o<=d)),style:q(q({},v),n),onMouseDown:function(p){p.stopPropagation();},onClick:function(){a(o);}},r)}function T4(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(a){var i=a.value,s=a.style,c=a.label;return f__namespace.createElement(R4,{key:i,prefixCls:o,style:s,value:i,onClick:r},c)})):null}function M4(e){var t=e.prefixCls,n=e.value,r=e.style,o=e.activeStyle,a=f__namespace.useContext(oa),i=a.min,s=a.max,c=a.direction,l=a.included,u=a.includedStart,d=a.includedEnd,m="".concat(t,"-dot"),g=l&&u<=n&&n<=d,v=q(q({},Cg(c,n,i,s)),typeof r=="function"?r(n):r);return g&&(v=q(q({},v),typeof o=="function"?o(n):o)),f__namespace.createElement("span",{className:V(m,D({},"".concat(m,"-active"),g)),style:v})}function N4(e){var t=e.prefixCls,n=e.marks,r=e.dots,o=e.style,a=e.activeStyle,i=f__namespace.useContext(oa),s=i.min,c=i.max,l=i.step,u=f__namespace.useMemo(function(){var d=new Set;if(n.forEach(function(g){d.add(g.value);}),r&&l!==null)for(var m=s;m<=c;)d.add(m),m+=l;return Array.from(d)},[s,c,l,r,n]);return f__namespace.createElement("div",{className:"".concat(t,"-step")},u.map(function(d){return f__namespace.createElement(M4,{prefixCls:t,key:d,value:d,style:o,activeStyle:a})}))}function Qh(e){var t,n=e.prefixCls,r=e.style,o=e.start,a=e.end,i=e.index,s=e.onStartMove,c=e.replaceCls,l=f__namespace.useContext(oa),u=l.direction,d=l.min,m=l.max,g=l.disabled,v=l.range,h=l.classNames,p="".concat(n,"-track"),b=$f(o,d,m),y=$f(a,d,m),S=function(C){!g&&s&&s(C,-1);},x={};switch(u){case"rtl":x.right="".concat(b*100,"%"),x.width="".concat(y*100-b*100,"%");break;case"btt":x.bottom="".concat(b*100,"%"),x.height="".concat(y*100-b*100,"%");break;case"ttb":x.top="".concat(b*100,"%"),x.height="".concat(y*100-b*100,"%");break;default:x.left="".concat(b*100,"%"),x.width="".concat(y*100-b*100,"%");}var E=c||V(p,(t={},D(t,"".concat(p,"-").concat(i+1),i!==null&&v),D(t,"".concat(n,"-track-draggable"),s),t),h.track);return f__namespace.createElement("div",{className:E,style:q(q({},x),r),onMouseDown:S,onTouchStart:S})}function k4(e){var t=e.prefixCls,n=e.style,r=e.values,o=e.startPoint,a=e.onStartMove,i=f__namespace.useContext(oa),s=i.included,c=i.range,l=i.min,u=i.styles,d=i.classNames,m=f__namespace.useMemo(function(){if(!c){if(r.length===0)return [];var v=o??l,h=r[0];return [{start:Math.min(v,h),end:Math.max(v,h)}]}for(var p=[],b=0;b<r.length-1;b+=1)p.push({start:r[b],end:r[b+1]});return p},[r,c,o,l]),g=null;return (d.tracks||u.tracks)&&(g=f__namespace.createElement(Qh,{index:null,prefixCls:t,start:m[0].start,end:m[m.length-1].end,replaceCls:V(d.tracks,"".concat(t,"-tracks")),style:u.tracks})),s?f__namespace.createElement(f__namespace.Fragment,null,g,m.map(function(v,h){var p=v.start,b=v.end;return f__namespace.createElement(Qh,{index:h,prefixCls:t,style:q(q({},Ta(n,h)),u.track),start:p,end:b,key:h,onStartMove:a})})):null}var A4=f__namespace.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-slider":r,a=e.className,i=e.style,s=e.classNames,c=e.styles,l=e.disabled,u=l===void 0?!1:l,d=e.keyboard,m=d===void 0?!0:d,g=e.autoFocus,v=e.onFocus,h=e.onBlur,p=e.min,b=p===void 0?0:p,y=e.max,S=y===void 0?100:y,x=e.step,E=x===void 0?1:x,$=e.value,C=e.defaultValue,w=e.range,O=e.count,_=e.onChange,T=e.onBeforeChange,I=e.onAfterChange,P=e.allowCross,R=P===void 0?!0:P,k=e.pushable,N=k===void 0?!1:k,M=e.draggableTrack,L=e.reverse,j=e.vertical,F=e.included,K=F===void 0?!0:F,B=e.startPoint,W=e.trackStyle,H=e.handleStyle,Y=e.railStyle,U=e.dotStyle,X=e.activeDotStyle,G=e.marks,ee=e.dots,te=e.handleRender,ie=e.tabIndex,le=ie===void 0?0:ie,Q=e.ariaLabelForHandle,oe=e.ariaLabelledByForHandle,ue=e.ariaValueTextFormatterForHandle,Z=f__namespace.useRef(),ae=f__namespace.useRef(),ne=f__namespace.useMemo(function(){return j?L?"ttb":"btt":L?"rtl":"ltr"},[L,j]),se=f__namespace.useMemo(function(){return isFinite(b)?b:0},[b]),ve=f__namespace.useMemo(function(){return isFinite(S)?S:100},[S]),ge=f__namespace.useMemo(function(){return E!==null&&E<=0?1:E},[E]),ke=f__namespace.useMemo(function(){return typeof N=="boolean"?N?ge:!1:N>=0?N:!1},[N,ge]),Ae=f__namespace.useMemo(function(){var ht=Object.keys(G||{});return ht.map(function(Ne){var Ie=G[Ne],Se={value:Number(Ne)};return Ie&&rt(Ie)==="object"&&!f__namespace.isValidElement(Ie)&&("label"in Ie||"style"in Ie)?(Se.style=Ie.style,Se.label=Ie.label):Se.label=Ie,Se}).filter(function(Ne){var Ie=Ne.label;return Ie||typeof Ie=="number"}).sort(function(Ne,Ie){return Ne.value-Ie.value})},[G]),Me=_4(se,ve,ge,Ae,R,ke),Ee=J(Me,2),he=Ee[0],Pe=Ee[1],Qe=Wt(C,{value:$}),Be=J(Qe,2),Ke=Be[0],ze=Be[1],mt=f__namespace.useMemo(function(){var ht=Ke==null?[]:Array.isArray(Ke)?Ke:[Ke],Ne=J(ht,1),Ie=Ne[0],Se=Ie===void 0?se:Ie,be=Ke===null?[]:[Se];if(w){if(be=Re(ht),O||Ke===void 0){var Ge=O>=0?O+1:2;for(be=be.slice(0,Ge);be.length<Ge;){var Ue;be.push((Ue=be[be.length-1])!==null&&Ue!==void 0?Ue:se);}}be.sort(function(Ct,On){return Ct-On});}return be.forEach(function(Ct,On){be[On]=he(Ct);}),be},[Ke,w,se,O,he]),et=f__namespace.useRef(mt);et.current=mt;var ot=function(Ne){return w?Ne:Ne[0]},Ve=function(Ne){var Ie=Re(Ne).sort(function(Se,be){return Se-be});_&&!Is(Ie,et.current,!0)&&_(ot(Ie)),ze(Ie);},ct=function(Ne){if(!u){var Ie=0,Se=ve-se;mt.forEach(function(Ge,Ue){var Ct=Math.abs(Ne-Ge);Ct<=Se&&(Se=Ct,Ie=Ue);});var be=Re(mt);be[Ie]=Ne,w&&!mt.length&&O===void 0&&be.push(Ne),T==null||T(ot(be)),Ve(be),I==null||I(ot(be));}},bt=function(Ne){Ne.preventDefault();var Ie=ae.current.getBoundingClientRect(),Se=Ie.width,be=Ie.height,Ge=Ie.left,Ue=Ie.top,Ct=Ie.bottom,On=Ie.right,bn=Ne.clientX,yn=Ne.clientY,mn;switch(ne){case"btt":mn=(Ct-yn)/be;break;case"ttb":mn=(yn-Ue)/be;break;case"rtl":mn=(On-bn)/Se;break;default:mn=(bn-Ge)/Se;}var In=se+mn*(ve-se);ct(he(In));},at=f__namespace.useState(null),it=J(at,2),_e=it[0],de=it[1],$e=function(Ne,Ie){if(!u){var Se=Pe(mt,Ne,Ie);T==null||T(ot(mt)),Ve(Se.values),I==null||I(ot(Se.values)),de(Se.value);}};f__namespace.useEffect(function(){if(_e!==null){var ht=mt.indexOf(_e);ht>=0&&Z.current.focus(ht);}de(null);},[_e]);var pe=f__namespace.useMemo(function(){return M&&ge===null?!1:M},[M,ge]),we=function(){I==null||I(ot(et.current));},He=P4(ae,ne,mt,se,ve,he,Ve,we,Pe),De=J(He,4),ye=De[0],fe=De[1],me=De[2],xe=De[3],Le=function(Ne,Ie){xe(Ne,Ie),T==null||T(ot(et.current));},qe=ye!==-1;f__namespace.useEffect(function(){if(!qe){var ht=mt.lastIndexOf(fe);Z.current.focus(ht);}},[qe]);var st=f__namespace.useMemo(function(){return Re(me).sort(function(ht,Ne){return ht-Ne})},[me]),vt=f__namespace.useMemo(function(){return w?[st[0],st[st.length-1]]:[se,st[0]]},[st,w,se]),kt=J(vt,2),zt=kt[0],ut=kt[1];f__namespace.useImperativeHandle(t,function(){return {focus:function(){Z.current.focus(0);},blur:function(){var Ne=document,Ie=Ne.activeElement;ae.current.contains(Ie)&&(Ie==null||Ie.blur());}}}),f__namespace.useEffect(function(){g&&Z.current.focus(0);},[]);var Ft=f__namespace.useMemo(function(){return {min:se,max:ve,direction:ne,disabled:u,keyboard:m,step:ge,included:K,includedStart:zt,includedEnd:ut,range:w,tabIndex:le,ariaLabelForHandle:Q,ariaLabelledByForHandle:oe,ariaValueTextFormatterForHandle:ue,styles:c||{},classNames:s||{}}},[se,ve,ne,u,m,ge,K,zt,ut,w,le,Q,oe,ue,c,s]);return f__namespace.createElement(oa.Provider,{value:Ft},f__namespace.createElement("div",{ref:ae,className:V(o,a,(n={},D(n,"".concat(o,"-disabled"),u),D(n,"".concat(o,"-vertical"),j),D(n,"".concat(o,"-horizontal"),!j),D(n,"".concat(o,"-with-marks"),Ae.length),n)),style:i,onMouseDown:bt},f__namespace.createElement("div",{className:V("".concat(o,"-rail"),s==null?void 0:s.rail),style:q(q({},Y),c==null?void 0:c.rail)}),f__namespace.createElement(k4,{prefixCls:o,style:W,values:st,startPoint:B,onStartMove:pe?Le:null}),f__namespace.createElement(N4,{prefixCls:o,marks:Ae,dots:ee,style:U,activeStyle:X}),f__namespace.createElement(I4,{ref:Z,prefixCls:o,style:H,values:me,draggingIndex:ye,onStartMove:Le,onOffsetChange:$e,onFocus:v,onBlur:h,handleRender:te}),f__namespace.createElement(T4,{prefixCls:o,marks:Ae,onClick:ct})))});function L4(){}const j4=f__namespace.createContext({}),f1=()=>{const e=()=>{};return e.deprecated=L4,e};function Sg(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 Ps(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 hn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jh(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,s1(r.key),r);}}function pn(e,t,n){return t&&Jh(e.prototype,t),n&&Jh(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var ep="%",z4=function(){function e(t){hn(this,e),D(this,"instanceId",void 0),D(this,"cache",new Map),this.instanceId=t;}return pn(e,[{key:"get",value:function(n){return this.cache.get(n.join(ep))||null}},{key:"update",value:function(n,r){var o=n.join(ep),a=this.cache.get(o),i=r(a);i===null?this.cache.delete(o):this.cache.set(o,i);}}]),e}(),wf="data-token-hash",Xo="data-css-hash",Ma="__cssinjs_instance__";function D4(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Xo,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[Ma]=o[Ma]||e,o[Ma]===e&&document.head.insertBefore(o,n);});var r={};Array.from(document.querySelectorAll("style[".concat(Xo,"]"))).forEach(function(o){var a=o.getAttribute(Xo);if(r[a]){if(o[Ma]===e){var i;(i=o.parentNode)===null||i===void 0||i.removeChild(o);}}else r[a]=!0;});}return new z4(e)}var F4=f__namespace.createContext({hashPriority:"low",cache:D4(),defaultCache:!0});const $g=F4;function B4(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 tp="data-rc-order",np="data-rc-priority",H4="rc-util-key",xf=new Map;function m1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):H4}function eu(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function W4(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function g1(e){return Array.from((xf.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function v1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Hn())return null;var n=t.csp,r=t.prepend,o=t.priority,a=o===void 0?0:o,i=W4(r),s=i==="prependQueue",c=document.createElement("style");c.setAttribute(tp,i),s&&a&&c.setAttribute(np,"".concat(a)),n!=null&&n.nonce&&(c.nonce=n==null?void 0:n.nonce),c.innerHTML=e;var l=eu(t),u=l.firstChild;if(r){if(s){var d=g1(l).filter(function(m){if(!["prepend","prependQueue"].includes(m.getAttribute(tp)))return !1;var g=Number(m.getAttribute(np)||0);return a>=g});if(d.length)return l.insertBefore(c,d[d.length-1].nextSibling),c}l.insertBefore(c,u);}else l.appendChild(c);return c}function h1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=eu(t);return g1(n).find(function(r){return r.getAttribute(m1(t))===e})}function Zl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=h1(e,t);if(n){var r=eu(t);r.removeChild(n);}}function V4(e,t){var n=xf.get(e);if(!n||!B4(document,n)){var r=v1("",t),o=r.parentNode;xf.set(e,o),e.removeChild(r);}}function Ka(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=eu(n);V4(r,n);var o=h1(t,n);if(o){var a,i;if((a=n.csp)!==null&&a!==void 0&&a.nonce&&o.nonce!==((i=n.csp)===null||i===void 0?void 0:i.nonce)){var s;o.nonce=(s=n.csp)===null||s===void 0?void 0:s.nonce;}return o.innerHTML!==e&&(o.innerHTML=e),o}var c=v1(e,n);return c.setAttribute(m1(n),t),c}function K4(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 wg=function(){function e(){hn(this,e),D(this,"cache",void 0),D(this,"keys",void 0),D(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0;}return pn(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,o,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i={map:this.cache};return n.forEach(function(s){if(!i)i=void 0;else {var c,l;i=(c=i)===null||c===void 0||(l=c.map)===null||l===void 0?void 0:l.get(s);}}),(r=i)!==null&&r!==void 0&&r.value&&a&&(i.value[1]=this.cacheCallTimes++),(o=i)===null||o===void 0?void 0:o.value}},{key:"get",value:function(n){var r;return (r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return !!this.internalGet(n)}},{key:"set",value:function(n,r){var o=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var a=this.keys.reduce(function(l,u){var d=J(l,2),m=d[1];return o.internalGet(u)[1]<m?[u,o.internalGet(u)[1]]:l},[this.keys[0],this.cacheCallTimes]),i=J(a,1),s=i[0];this.delete(s);}this.keys.push(n);}var c=this.cache;n.forEach(function(l,u){if(u===n.length-1)c.set(l,{value:[r,o.cacheCallTimes++]});else {var d=c.get(l);d?d.map||(d.map=new Map):c.set(l,{map:new Map}),c=c.get(l).map;}});}},{key:"deleteByPath",value:function(n,r){var o=n.get(r[0]);if(r.length===1){var a;return o.map?n.set(r[0],{map:o.map}):n.delete(r[0]),(a=o.value)===null||a===void 0?void 0:a[0]}var i=this.deleteByPath(o.map,r.slice(1));return (!o.map||o.map.size===0)&&!o.value&&n.delete(r[0]),i}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return !K4(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();D(wg,"MAX_CACHE_SIZE",20);D(wg,"MAX_CACHE_OFFSET",5);var rp=0,p1=function(){function e(t){hn(this,e),D(this,"derivatives",void 0),D(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=rp,t.length===0&&(t.length>0,void 0),rp+=1;}return pn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),md=new wg;function rs(e){var t=Array.isArray(e)?e:[e];return md.has(t)||md.set(t,new p1(t)),md.get(t)}var G4=new WeakMap,gd={};function U4(e,t){for(var n=G4,r=0;r<t.length;r+=1){var o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o);}return n.has(gd)||n.set(gd,e()),n.get(gd)}var op=new WeakMap;function Ql(e){var t=op.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof p1?t+=r.id:r&&rt(r)==="object"?t+=Ql(r):t+=r;}),op.set(e,t)),t}function X4(e,t){return Sg("".concat(t,"_").concat(Ql(e)))}var Bi="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),b1="_bAmBoO_";function q4(e,t,n){if(Hn()){var r,o;Ka(e,Bi);var a=document.createElement("div");a.style.position="fixed",a.style.left="0",a.style.top="0",t==null||t(a),document.body.appendChild(a);var i=n?n(a):(r=getComputedStyle(a).content)===null||r===void 0?void 0:r.includes(b1);return (o=a.parentNode)===null||o===void 0||o.removeChild(a),Zl(Bi),i}return !1}var vd=void 0;function Y4(){return vd===void 0&&(vd=q4("@layer ".concat(Bi," { .").concat(Bi,' { content: "').concat(b1,'"!important; } }'),function(e){e.className=Bi;})),vd}var Z4=q({},f__namespace),ap=Z4.useInsertionEffect,Q4=function(t,n,r){f__namespace.useMemo(t,r),Ht(function(){return n(!0)},r);},J4=ap?function(e,t,n){return ap(function(){return e(),t()},n)}:Q4;const eA=J4;var tA=q({},f__namespace),nA=tA.useInsertionEffect,rA=function(t){var n=[],r=!1;function o(a){r||n.push(a);}return f__namespace.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(a){return a()});}},t),o},oA=function(){return function(t){t();}},aA=typeof nA<"u"?rA:oA;const iA=aA;function y1(e,t,n,r,o){var a=f__namespace.useContext($g),i=a.cache,s=[e].concat(Re(t)),c=s.join("_"),l=iA([c]),u=function(v){i.update(s,function(h){var p=h||[],b=J(p,2),y=b[0],S=y===void 0?0:y,x=b[1],E=x,$=E||n(),C=[S,$];return v?v(C):C});};f__namespace.useMemo(function(){u();},[c]);var d=i.get(s),m=d[1];return eA(function(){o==null||o(m);},function(g){return u(function(v){var h=J(v,2),p=h[0],b=h[1];return g&&p===0&&(o==null||o(m)),[p+1,b]}),function(){i.update(s,function(v){var h=v||[],p=J(h,2),b=p[0],y=b===void 0?0:b,S=p[1],x=y-1;return x===0?(l(function(){return r==null?void 0:r(S,!1)}),null):[y-1,S]});}},[c]),m}var sA={},lA="css",Do=new Map;function cA(e){Do.set(e,(Do.get(e)||0)+1);}function uA(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(wf,'="').concat(e,'"]'));n.forEach(function(r){if(r[Ma]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r);}});}}var dA=0;function fA(e,t){Do.set(e,(Do.get(e)||0)-1);var n=Array.from(Do.keys()),r=n.filter(function(o){var a=Do.get(o)||0;return a<=0});n.length-r.length>dA&&r.forEach(function(o){uA(o,t),Do.delete(o);});}var C1=function(t,n,r,o){var a=r.getDerivativeToken(t),i=q(q({},a),n);return o&&(i=o(i)),i};function mA(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=f.useContext($g),o=r.cache.instanceId,a=n.salt,i=a===void 0?"":a,s=n.override,c=s===void 0?sA:s,l=n.formatToken,u=n.getComputedToken,d=U4(function(){return Object.assign.apply(Object,[{}].concat(Re(t)))},t),m=Ql(d),g=Ql(c),v=y1("token",[i,e.id,m,g],function(){var h=u?u(d,c,e):C1(d,c,e,l),p=X4(h,i);h._tokenKey=p,cA(p);var b="".concat(lA,"-").concat(Sg(p));return h._hashId=b,[h,b]},function(h){fA(h[0]._tokenKey,o);});return v}var gA={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},ip="data-ant-cssinjs-cache-path",S1="_FILE_STYLE__",qo,$1=!0;function vA(){if(!qo&&(qo={},Hn())){var e=document.createElement("div");e.className=ip,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(o){var a=o.split(":"),i=J(a,2),s=i[0],c=i[1];qo[s]=c;});var n=document.querySelector("style[".concat(ip,"]"));if(n){var r;$1=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n);}document.body.removeChild(e);}}function hA(e){return vA(),!!qo[e]}function pA(e){var t=qo[e],n=null;if(t&&Hn())if($1)n=S1;else {var r=document.querySelector("style[".concat(Xo,'="').concat(qo[e],'"]'));r?n=r.innerHTML:delete qo[e];}return [n,t]}var sp=Hn(),bA="_skip_check_",w1="_multi_value_";function lp(e){var t=Go(ly(e),cy);return t.replace(/\{%%%\:[^;];}/g,";")}function yA(e){return rt(e)==="object"&&e&&(bA in e||w1 in e)}function CA(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,a=e.split(",").map(function(i){var s,c=i.trim().split(/\s+/),l=c[0]||"",u=((s=l.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return l="".concat(u).concat(o).concat(l.slice(u.length)),[l].concat(Re(c.slice(1))).join(" ")});return a.join(",")}var SA=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,a=r.injectHash,i=r.parentSelectors,s=n.hashId,c=n.layer;n.path;var l=n.hashPriority,u=n.transformers,d=u===void 0?[]:u;n.linters;var m="",g={};function v(S){var x=S.getName(s);if(!g[x]){var E=e(S.style,n,{root:!1,parentSelectors:i}),$=J(E,1),C=$[0];g[x]="@keyframes ".concat(S.getName(s)).concat(C);}}function h(S){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return S.forEach(function(E){Array.isArray(E)?h(E,x):E&&x.push(E);}),x}var p=h(Array.isArray(t)?t:[t]);if(p.forEach(function(S){var x=typeof S=="string"&&!o?{}:S;if(typeof x=="string")m+="".concat(x,`
`);else if(x._keyframe)v(x);else {var E=d.reduce(function($,C){var w;return (C==null||(w=C.visit)===null||w===void 0?void 0:w.call(C,$))||$},x);Object.keys(E).forEach(function($){var C=E[$];if(rt(C)==="object"&&C&&($!=="animationName"||!C._keyframe)&&!yA(C)){var w=!1,O=$.trim(),_=!1;(o||a)&&s?O.startsWith("@")?w=!0:O=CA($,s,l):o&&!s&&(O==="&"||O==="")&&(O="",_=!0);var T=e(C,n,{root:_,injectHash:w,parentSelectors:[].concat(Re(i),[O])}),I=J(T,2),P=I[0],R=I[1];g=q(q({},g),R),m+="".concat(O).concat(P);}else {let M=function(L,j){var F=L.replace(/[A-Z]/g,function(B){return "-".concat(B.toLowerCase())}),K=j;!gA[L]&&typeof K=="number"&&K!==0&&(K="".concat(K,"px")),L==="animationName"&&j!==null&&j!==void 0&&j._keyframe&&(v(j),K=j.getName(s)),m+="".concat(F,":").concat(K,";");};var k,N=(k=C==null?void 0:C.value)!==null&&k!==void 0?k:C;rt(C)==="object"&&C!==null&&C!==void 0&&C[w1]&&Array.isArray(N)?N.forEach(function(L){M($,L);}):M($,N);}});}}),!o)m="{".concat(m,"}");else if(c&&Y4()){var b=c.split(","),y=b[b.length-1].trim();m="@layer ".concat(y," {").concat(m,"}"),b.length>1&&(m="@layer ".concat(c,"{%%%:%}").concat(m));}return [m,g]};function $A(e,t){return Sg("".concat(e.join("%")).concat(t))}function wA(){return null}function Ef(e,t){var n=e.token,r=e.path,o=e.hashId,a=e.layer,i=e.nonce,s=e.clientOnly,c=e.order,l=c===void 0?0:c,u=f__namespace.useContext($g),d=u.autoClear;u.mock;var m=u.defaultCache,g=u.hashPriority,v=u.container,h=u.ssrInline,p=u.transformers,b=u.linters,y=u.cache,S=n._tokenKey,x=[S].concat(Re(r)),E=sp,$=y1("style",x,function(){var T=x.join("|");if(hA(T)){var I=pA(T),P=J(I,2),R=P[0],k=P[1];if(R)return [R,S,k,{},s,l]}var N=t(),M=SA(N,{hashId:o,hashPriority:g,layer:a,path:r.join("-"),transformers:p,linters:b}),L=J(M,2),j=L[0],F=L[1],K=lp(j),B=$A(x,K);return [K,S,B,F,s,l]},function(T,I){var P=J(T,3),R=P[2];(I||d)&&sp&&Zl(R,{mark:Xo});},function(T){var I=J(T,4),P=I[0];I[1];var R=I[2],k=I[3];if(E&&P!==S1){var N={mark:Xo,prepend:"queue",attachTo:v,priority:l},M=typeof i=="function"?i():i;M&&(N.csp={nonce:M});var L=Ka(P,R,N);L[Ma]=y.instanceId,L.setAttribute(wf,S),Object.keys(k).forEach(function(j){Ka(lp(k[j]),"_effect-".concat(j),N);});}}),C=J($,3),w=C[0],O=C[1],_=C[2];return function(T){var I;if(!h||E||!m)I=f__namespace.createElement(wA,null);else {var P;I=f__namespace.createElement("style",Oe({},(P={},D(P,wf,O),D(P,Xo,_),P),{dangerouslySetInnerHTML:{__html:w}}));}return f__namespace.createElement(f__namespace.Fragment,null,I,T)}}var Et=function(){function e(t,n){hn(this,e),D(this,"name",void 0),D(this,"style",void 0),D(this,"_keyframe",!0),this.name=t,this.style=n;}return pn(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 ma(e){return e.notSplit=!0,e}ma(["borderTop","borderBottom"]),ma(["borderTop"]),ma(["borderBottom"]),ma(["borderLeft","borderRight"]),ma(["borderLeft"]),ma(["borderRight"]);var xA=f.createContext({});const xg=xA;function x1(e){return c1(e)||l1(e)||yg(e)||u1()}function Mr(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]];}return n}function E1(e,t,n,r){if(!t.length)return n;var o=x1(t),a=o[0],i=o.slice(1),s;return !e&&typeof a=="number"?s=[]:Array.isArray(e)?s=Re(e):s=q({},e),r&&n===void 0&&i.length===1?delete s[a][i[0]]:s[a]=E1(s[a],i,n,r),s}function Pr(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Mr(e,t.slice(0,-1))?e:E1(e,t,n,r)}function EA(e){return rt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function cp(e){return Array.isArray(e)?[]:{}}var OA=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Na(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=cp(t[0]);return t.forEach(function(o){function a(i,s){var c=new Set(s),l=Mr(o,i),u=Array.isArray(l);if(u||EA(l)){if(!c.has(l)){c.add(l);var d=Mr(r,i);u?r=Pr(r,i,[]):(!d||rt(d)!=="object")&&(r=Pr(r,i,cp(l))),OA(l).forEach(function(m){a([].concat(Re(i),[m]),c);});}}else r=Pr(r,i,l);}a([]);}),r}const IA=f.createContext(void 0),O1={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 PA={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 _A={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},I1=_A,RA={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"]},PA),timePickerLocale:Object.assign({},I1)},up=RA,Jn="${label} is not a valid ${type}",TA={locale:"en",Pagination:O1,DatePicker:up,TimePicker:I1,Calendar:up,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: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:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh"},ColorPicker:{presetEmpty:"Empty"}},so=TA;Object.assign({},so.Modal);let Tl=[];const dp=()=>Tl.reduce((e,t)=>Object.assign(Object.assign({},e),t),so.Modal);function MA(e){if(e){const t=Object.assign({},e);return Tl.push(t),dp(),()=>{Tl=Tl.filter(n=>n!==t),dp();}}Object.assign({},so.Modal);}const NA=f.createContext(void 0),Eg=NA,kA=(e,t)=>{const n=f__namespace.useContext(Eg),r=f__namespace.useMemo(()=>{var a;const i=t||so[e],s=(a=n==null?void 0:n[e])!==null&&a!==void 0?a:{};return Object.assign(Object.assign({},typeof i=="function"?i():i),s||{})},[e,t,n]),o=f__namespace.useMemo(()=>{const a=n==null?void 0:n.locale;return n!=null&&n.exist&&!a?so.locale:a},[n]);return [r,o]},hi=kA,AA="internalMark",LA=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;f__namespace.useEffect(()=>MA(t&&t.Modal),[t]);const o=f__namespace.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return f__namespace.createElement(Eg.Provider,{value:o},n)},jA=LA;function wn(e,t){zA(e)&&(e="100%");var n=DA(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 il(e){return Math.min(1,Math.max(0,e))}function zA(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function DA(e){return typeof e=="string"&&e.indexOf("%")!==-1}function P1(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function sl(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Ho(e){return e.length===1?"0"+e:String(e)}function FA(e,t,n){return {r:wn(e,255)*255,g:wn(t,255)*255,b:wn(n,255)*255}}function fp(e,t,n){e=wn(e,255),t=wn(t,255),n=wn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a=0,i=0,s=(r+o)/2;if(r===o)i=0,a=0;else {var c=r-o;switch(i=s>.5?c/(2-r-o):c/(r+o),r){case e:a=(t-n)/c+(t<n?6:0);break;case t:a=(n-e)/c+2;break;case n:a=(e-t)/c+4;break}a/=6;}return {h:a,s:i,l:s}}function hd(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 BA(e,t,n){var r,o,a;if(e=wn(e,360),t=wn(t,100),n=wn(n,100),t===0)o=n,a=n,r=n;else {var i=n<.5?n*(1+t):n+t-n*t,s=2*n-i;r=hd(s,i,e+1/3),o=hd(s,i,e),a=hd(s,i,e-1/3);}return {r:r*255,g:o*255,b:a*255}}function Of(e,t,n){e=wn(e,255),t=wn(t,255),n=wn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a=0,i=r,s=r-o,c=r===0?0:s/r;if(r===o)a=0;else {switch(r){case e:a=(t-n)/s+(t<n?6:0);break;case t:a=(n-e)/s+2;break;case n:a=(e-t)/s+4;break}a/=6;}return {h:a,s:c,v:i}}function HA(e,t,n){e=wn(e,360)*6,t=wn(t,100),n=wn(n,100);var r=Math.floor(e),o=e-r,a=n*(1-t),i=n*(1-o*t),s=n*(1-(1-o)*t),c=r%6,l=[n,i,a,a,s,n][c],u=[s,n,n,i,a,a][c],d=[a,a,s,n,n,i][c];return {r:l*255,g:u*255,b:d*255}}function If(e,t,n,r){var o=[Ho(Math.round(e).toString(16)),Ho(Math.round(t).toString(16)),Ho(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 WA(e,t,n,r,o){var a=[Ho(Math.round(e).toString(16)),Ho(Math.round(t).toString(16)),Ho(Math.round(n).toString(16)),Ho(VA(r))];return o&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function VA(e){return Math.round(parseFloat(e)*255).toString(16)}function mp(e){return nr(e)/255}function nr(e){return parseInt(e,16)}function KA(e){return {r:e>>16,g:(e&65280)>>8,b:e&255}}var Pf={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 Pa(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,a=null,i=!1,s=!1;return typeof e=="string"&&(e=XA(e)),typeof e=="object"&&(eo(e.r)&&eo(e.g)&&eo(e.b)?(t=FA(e.r,e.g,e.b),i=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):eo(e.h)&&eo(e.s)&&eo(e.v)?(r=sl(e.s),o=sl(e.v),t=HA(e.h,r,o),i=!0,s="hsv"):eo(e.h)&&eo(e.s)&&eo(e.l)&&(r=sl(e.s),a=sl(e.l),t=BA(e.h,r,a),i=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=P1(n),{ok:i,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var GA="[-\\+]?\\d+%?",UA="[-\\+]?\\d*\\.\\d+%?",wo="(?:".concat(UA,")|(?:").concat(GA,")"),pd="[\\s|\\(]+(".concat(wo,")[,|\\s]+(").concat(wo,")[,|\\s]+(").concat(wo,")\\s*\\)?"),bd="[\\s|\\(]+(".concat(wo,")[,|\\s]+(").concat(wo,")[,|\\s]+(").concat(wo,")[,|\\s]+(").concat(wo,")\\s*\\)?"),Er={CSS_UNIT:new RegExp(wo),rgb:new RegExp("rgb"+pd),rgba:new RegExp("rgba"+bd),hsl:new RegExp("hsl"+pd),hsla:new RegExp("hsla"+bd),hsv:new RegExp("hsv"+pd),hsva:new RegExp("hsva"+bd),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 XA(e){if(e=e.trim().toLowerCase(),e.length===0)return !1;var t=!1;if(Pf[e])e=Pf[e],t=!0;else if(e==="transparent")return {r:0,g:0,b:0,a:0,format:"name"};var n=Er.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Er.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Er.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Er.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Er.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Er.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Er.hex8.exec(e),n?{r:nr(n[1]),g:nr(n[2]),b:nr(n[3]),a:mp(n[4]),format:t?"name":"hex8"}:(n=Er.hex6.exec(e),n?{r:nr(n[1]),g:nr(n[2]),b:nr(n[3]),format:t?"name":"hex"}:(n=Er.hex4.exec(e),n?{r:nr(n[1]+n[1]),g:nr(n[2]+n[2]),b:nr(n[3]+n[3]),a:mp(n[4]+n[4]),format:t?"name":"hex8"}:(n=Er.hex3.exec(e),n?{r:nr(n[1]+n[1]),g:nr(n[2]+n[2]),b:nr(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function eo(e){return !!Er.CSS_UNIT.exec(String(e))}var qt=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=KA(t)),this.originalInput=t;var o=Pa(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok;}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return !this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return (t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,o,a=t.r/255,i=t.g/255,s=t.b/255;return a<=.03928?n=a/12.92:n=Math.pow((a+.055)/1.055,2.4),i<=.03928?r=i/12.92:r=Math.pow((i+.055)/1.055,2.4),s<=.03928?o=s/12.92:o=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=P1(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=Of(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=Of(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=fp(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=fp(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),If(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),WA(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(wn(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(wn(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="#"+If(this.r,this.g,this.b,!1),n=0,r=Object.entries(Pf);n<r.length;n++){var o=r[n],a=o[0],i=o[1];if(t===i)return a}return !1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var r=!1,o=this.a<1&&this.a>=0,a=!n&&o&&(t.startsWith("hex")||t==="name");return a?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return (Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=il(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=il(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=il(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=il(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),a=n/100,i={r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a};return new e(i)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,a=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(new e(r));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,a=n.v,i=[],s=1/t;t--;)i.push(new e({h:r,s:o,v:a})),a=(a+s)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return [this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],a=360/t,i=1;i<t;i++)o.push(new e({h:(r+i*a)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),ll=2,gp=.16,qA=.05,YA=.05,ZA=.15,_1=5,R1=4,QA=[{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 vp(e){var t=e.r,n=e.g,r=e.b,o=Of(t,n,r);return {h:o.h*360,s:o.s,v:o.v}}function cl(e){var t=e.r,n=e.g,r=e.b;return "#".concat(If(t,n,r,!1))}function JA(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 hp(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-ll*t:Math.round(e.h)+ll*t:r=n?Math.round(e.h)+ll*t:Math.round(e.h)-ll*t,r<0?r+=360:r>=360&&(r-=360),r}function pp(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-gp*t:t===R1?r=e.s+gp:r=e.s+qA*t,r>1&&(r=1),n&&t===_1&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function bp(e,t,n){var r;return n?r=e.v+YA*t:r=e.v-ZA*t,r>1&&(r=1),Number(r.toFixed(2))}function lo(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Pa(e),o=_1;o>0;o-=1){var a=vp(r),i=cl(Pa({h:hp(a,o,!0),s:pp(a,o,!0),v:bp(a,o,!0)}));n.push(i);}n.push(cl(r));for(var s=1;s<=R1;s+=1){var c=vp(r),l=cl(Pa({h:hp(c,s),s:pp(c,s),v:bp(c,s)}));n.push(l);}return t.theme==="dark"?QA.map(function(u){var d=u.index,m=u.opacity,g=cl(JA(Pa(t.backgroundColor||"#141414"),Pa(n[d]),m*100));return g}):n}var yd={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"},Ml={},Cd={};Object.keys(yd).forEach(function(e){Ml[e]=lo(yd[e]),Ml[e].primary=Ml[e][5],Cd[e]=lo(yd[e],{theme:"dark",backgroundColor:"#141414"}),Cd[e].primary=Cd[e][5];});var eL=Ml.blue;const tL=e=>{const{controlHeight:t}=e;return {controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},T1=tL;function nL(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 Og={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"},rL=Object.assign(Object.assign({},Og),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),Ga=rL;function M1(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:a,colorError:i,colorInfo:s,colorPrimary:c,colorBgBase:l,colorTextBase:u}=e,d=n(c),m=n(o),g=n(a),v=n(i),h=n(s),p=r(l,u),b=e.colorLink||e.colorInfo,y=n(b);return Object.assign(Object.assign({},p),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg: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:g[1],colorWarningBgHover:g[2],colorWarningBorder:g[3],colorWarningBorderHover:g[4],colorWarningHover:g[4],colorWarning:g[6],colorWarningActive:g[7],colorWarningTextHover:g[8],colorWarningText:g[9],colorWarningTextActive:g[10],colorInfoBg:h[1],colorInfoBgHover:h[2],colorInfoBorder:h[3],colorInfoBorderHover:h[4],colorInfoHover:h[4],colorInfo:h[6],colorInfoActive:h[7],colorInfoTextHover:h[8],colorInfoText:h[9],colorInfoTextActive:h[10],colorLinkHover:y[4],colorLink:y[6],colorLinkActive:y[7],colorBgMask:new qt("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const oL=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}},aL=oL;function iL(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},aL(r))}const to=(e,t)=>new qt(e).setAlpha(t).toRgbString(),Oi=(e,t)=>new qt(e).darken(t).toHexString(),sL=e=>{const t=lo(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]}},lL=(e,t)=>{const n=e||"#fff",r=t||"#000";return {colorBgBase:n,colorTextBase:r,colorText:to(r,.88),colorTextSecondary:to(r,.65),colorTextTertiary:to(r,.45),colorTextQuaternary:to(r,.25),colorFill:to(r,.15),colorFillSecondary:to(r,.06),colorFillTertiary:to(r,.04),colorFillQuaternary:to(r,.02),colorBgLayout:Oi(n,4),colorBgContainer:Oi(n,0),colorBgElevated:Oi(n,0),colorBgSpotlight:to(r,.85),colorBgBlur:"transparent",colorBorder:Oi(n,15),colorBorderSecondary:Oi(n,6)}};function cL(e){const t=new Array(10).fill(null).map((n,r)=>{const o=r-1,a=e*Math.pow(2.71828,o/5),i=r>1?Math.floor(a):Math.ceil(a);return Math.floor(i/2)*2});return t[1]=e,t.map(n=>{const r=n+8;return {size:n,lineHeight:r/n}})}const uL=e=>{const t=cL(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]}},N1=uL;function _s(e){const t=Object.keys(Og).map(n=>{const r=lo(e[n]);return new Array(10).fill(1).reduce((o,a,i)=>(o[`${n}-${i+1}`]=r[i],o[`${n}${i+1}`]=r[i],o),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),M1(e,{generateColorPalettes:sL,generateNeutralColorPalettes:lL})),N1(e.fontSize)),nL(e)),T1(e)),iL(e))}const k1=rs(_s),Jl={token:Ga,override:{override:Ga},hashed:!0},A1=f.createContext(Jl),L1="anticon",dL=(e,t)=>t||(e?`ant-${e}`:"ant"),Xe=f__namespace.createContext({getPrefixCls:dL,iconPrefixCls:L1}),fL=`-ant-${Date.now()}-${Math.random()}`;function mL(e,t){const n={},r=(i,s)=>{let c=i.clone();return c=(s==null?void 0:s(c))||c,c.toRgbString()},o=(i,s)=>{const c=new qt(i),l=lo(c.toRgbString());n[`${s}-color`]=r(c),n[`${s}-color-disabled`]=l[1],n[`${s}-color-hover`]=l[4],n[`${s}-color-active`]=l[6],n[`${s}-color-outline`]=c.clone().setAlpha(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=l[0],n[`${s}-color-deprecated-border`]=l[2];};if(t.primaryColor){o(t.primaryColor,"primary");const i=new qt(t.primaryColor),s=lo(i.toRgbString());s.forEach((l,u)=>{n[`primary-${u+1}`]=l;}),n["primary-color-deprecated-l-35"]=r(i,l=>l.lighten(35)),n["primary-color-deprecated-l-20"]=r(i,l=>l.lighten(20)),n["primary-color-deprecated-t-20"]=r(i,l=>l.tint(20)),n["primary-color-deprecated-t-50"]=r(i,l=>l.tint(50)),n["primary-color-deprecated-f-12"]=r(i,l=>l.setAlpha(l.getAlpha()*.12));const c=new qt(s[0]);n["primary-color-active-deprecated-f-30"]=r(c,l=>l.setAlpha(l.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(c,l=>l.darken(2));}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`
  :root {
    ${Object.keys(n).map(i=>`--${e}-${i}: ${n[i]};`).join(`
`)}
  }
  `.trim()}function gL(e,t){const n=mL(e,t);Hn()&&Ka(n,`${fL}-dynamic-theme`);}const _f=f__namespace.createContext(!1),vL=e=>{let{children:t,disabled:n}=e;const r=f__namespace.useContext(_f);return f__namespace.createElement(_f.Provider,{value:n??r},t)},Zr=_f,Rf=f__namespace.createContext(void 0),hL=e=>{let{children:t,size:n}=e;const r=f__namespace.useContext(Rf);return f__namespace.createElement(Rf.Provider,{value:n||r},t)},tu=Rf;function pL(){const e=f.useContext(Zr),t=f.useContext(tu);return {componentDisabled:e,componentSize:t}}const os=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],bL="5.10.2";function Sd(e){return e>=0&&e<=255}function ul(e,t){const{r:n,g:r,b:o,a}=new qt(e).toRgb();if(a<1)return e;const{r:i,g:s,b:c}=new qt(t).toRgb();for(let l=.01;l<=1;l+=.01){const u=Math.round((n-i*(1-l))/l),d=Math.round((r-s*(1-l))/l),m=Math.round((o-c*(1-l))/l);if(Sd(u)&&Sd(d)&&Sd(m))return new qt({r:u,g:d,b:m,a:Math.round(l*100)/100}).toRgbString()}return new qt({r:n,g:r,b:o,a:1}).toRgbString()}var yL=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 Ig(e){const{override:t}=e,n=yL(e,["override"]),r=Object.assign({},t);Object.keys(Ga).forEach(m=>{delete r[m];});const o=Object.assign(Object.assign({},n),r),a=480,i=576,s=768,c=992,l=1200,u=1600;if(o.motion===!1){const m="0s";o.motionDurationFast=m,o.motionDurationMid=m,o.motionDurationSlow=m;}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:ul(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:ul(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:ul(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:ul(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
      0 6px 16px 0 rgba(0, 0, 0, 0.08),
      0 3px 6px -4px rgba(0, 0, 0, 0.12),
      0 9px 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowSecondary:`
      0 6px 16px 0 rgba(0, 0, 0, 0.08),
      0 3px 6px -4px rgba(0, 0, 0, 0.12),
      0 9px 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowTertiary:`
      0 1px 2px 0 rgba(0, 0, 0, 0.03),
      0 1px 6px -1px rgba(0, 0, 0, 0.02),
      0 2px 4px 0 rgba(0, 0, 0, 0.02)
    `,screenXS:a,screenXSMin:a,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:c-1,screenLG:c,screenLGMin:c,screenLGMax:l-1,screenXL:l,screenXLMin:l,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
      0 1px 2px -2px ${new qt("rgba(0, 0, 0, 0.16)").toRgbString()},
      0 3px 6px 0 ${new qt("rgba(0, 0, 0, 0.12)").toRgbString()},
      0 5px 12px 4px ${new qt("rgba(0, 0, 0, 0.09)").toRgbString()}
    `,boxShadowDrawerRight:`
      -6px 0 16px 0 rgba(0, 0, 0, 0.08),
      -3px 0 6px -4px rgba(0, 0, 0, 0.12),
      -9px 0 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowDrawerLeft:`
      6px 0 16px 0 rgba(0, 0, 0, 0.08),
      3px 0 6px -4px rgba(0, 0, 0, 0.12),
      9px 0 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowDrawerUp:`
      0 6px 16px 0 rgba(0, 0, 0, 0.08),
      0 3px 6px -4px rgba(0, 0, 0, 0.12),
      0 9px 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowDrawerDown:`
      0 -6px 16px 0 rgba(0, 0, 0, 0.08),
      0 -3px 6px -4px rgba(0, 0, 0, 0.12),
      0 -9px 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var yp=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 j1=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,a=yp(t,["override"]);let i=Object.assign(Object.assign({},r),{override:o});return i=Ig(i),a&&Object.entries(a).forEach(s=>{let[c,l]=s;const{theme:u}=l,d=yp(l,["theme"]);let m=d;u&&(m=j1(Object.assign(Object.assign({},i),d),{override:d},u)),i[c]=m;}),i};function lr(){const{token:e,hashed:t,theme:n,override:r}=f.useContext(A1),o=`${bL}-${t||""}`,a=n||k1,[i,s]=mA(a,[Ga,e],{salt:o,override:r,getComputedToken:j1,formatToken:Ig});return [a,i,t?s:""]}var z1={exports:{}},Lt={};/**
   * @license React
   * react-is.production.min.js
   *
   * Copyright (c) Facebook, Inc. and its affiliates.
   *
   * This source code is licensed under the MIT license found in the
   * LICENSE file in the root directory of this source tree.
   */var Pg=Symbol.for("react.element"),_g=Symbol.for("react.portal"),nu=Symbol.for("react.fragment"),ru=Symbol.for("react.strict_mode"),ou=Symbol.for("react.profiler"),au=Symbol.for("react.provider"),iu=Symbol.for("react.context"),CL=Symbol.for("react.server_context"),su=Symbol.for("react.forward_ref"),lu=Symbol.for("react.suspense"),cu=Symbol.for("react.suspense_list"),uu=Symbol.for("react.memo"),du=Symbol.for("react.lazy"),SL=Symbol.for("react.offscreen"),D1;D1=Symbol.for("react.module.reference");function Sr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Pg:switch(e=e.type,e){case nu:case ou:case ru:case lu:case cu:return e;default:switch(e=e&&e.$$typeof,e){case CL:case iu:case su:case du:case uu:case au:return e;default:return t}}case _g:return t}}}Lt.ContextConsumer=iu;Lt.ContextProvider=au;Lt.Element=Pg;Lt.ForwardRef=su;Lt.Fragment=nu;Lt.Lazy=du;Lt.Memo=uu;Lt.Portal=_g;Lt.Profiler=ou;Lt.StrictMode=ru;Lt.Suspense=lu;Lt.SuspenseList=cu;Lt.isAsyncMode=function(){return !1};Lt.isConcurrentMode=function(){return !1};Lt.isContextConsumer=function(e){return Sr(e)===iu};Lt.isContextProvider=function(e){return Sr(e)===au};Lt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Pg};Lt.isForwardRef=function(e){return Sr(e)===su};Lt.isFragment=function(e){return Sr(e)===nu};Lt.isLazy=function(e){return Sr(e)===du};Lt.isMemo=function(e){return Sr(e)===uu};Lt.isPortal=function(e){return Sr(e)===_g};Lt.isProfiler=function(e){return Sr(e)===ou};Lt.isStrictMode=function(e){return Sr(e)===ru};Lt.isSuspense=function(e){return Sr(e)===lu};Lt.isSuspenseList=function(e){return Sr(e)===cu};Lt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===nu||e===ou||e===ru||e===lu||e===cu||e===SL||typeof e=="object"&&e!==null&&(e.$$typeof===du||e.$$typeof===uu||e.$$typeof===au||e.$$typeof===iu||e.$$typeof===su||e.$$typeof===D1||e.getModuleId!==void 0)};Lt.typeOf=Sr;z1.exports=Lt;var Rg=z1.exports;function Tg(e,t){typeof e=="function"?e(t):rt(e)==="object"&&e&&"current"in e&&(e.current=t);}function Kn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(function(o){return o});return r.length<=1?r[0]:function(o){t.forEach(function(a){Tg(a,o);});}}function aa(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ps(function(){return Kn.apply(void 0,t)},t,function(r,o){return r.length!==o.length||r.every(function(a,i){return a!==o[i]})})}function To(e){var t,n,r=Rg.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 $L(e){return !f.isValidElement(e)||Rg.isFragment(e)?!1:To(e)}const wL=(e,t,n,r,o)=>{const a=e/2,i=0,s=a,c=n*1/Math.sqrt(2),l=a-n*(1-1/Math.sqrt(2)),u=a-t*(1/Math.sqrt(2)),d=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),m=2*a-u,g=d,v=2*a-c,h=l,p=2*a-i,b=s,y=a*Math.sqrt(2)+n*(Math.sqrt(2)-2),S=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(${S}px 100%, 50% ${S}px, ${2*a-S}px 100%, ${S}px 100%)`,`path('M ${i} ${s} A ${n} ${n} 0 0 0 ${c} ${l} L ${u} ${d} A ${t} ${t} 0 0 1 ${m} ${g} L ${v} ${h} A ${n} ${n} 0 0 0 ${p} ${b} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:y,height:y,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${t}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:o,zIndex:0,background:"transparent"}}},Qo={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Nt=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return {boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},ia=()=>({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"}}),Tf=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),xL=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active,\n  &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),EL=(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"}}}}},Jo=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),ea=e=>({"&:focus-visible":Object.assign({},Jo(e))}),F1=typeof CSSINJS_STATISTIC<"u";let Mf=!0;function gt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!F1)return Object.assign.apply(Object,[{}].concat(t));Mf=!1;const r={};return t.forEach(o=>{Object.keys(o).forEach(i=>{Object.defineProperty(r,i,{configurable:!0,enumerable:!0,get:()=>o[i]});});}),Mf=!0,r}const Cp={};function OL(){}function IL(e){let t,n=e,r=OL;return F1&&(t=new Set,n=new Proxy(e,{get(o,a){return Mf&&t.add(a),o[a]}}),r=(o,a)=>{var i;Cp[o]={global:Array.from(t),component:Object.assign(Object.assign({},(i=Cp[o])===null||i===void 0?void 0:i.component),a)};}),{token:n,keys:t,flush:r}}const PL=(e,t)=>{const[n,r]=lr();return Ef({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},ia()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},B1=PL;function Dt(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=Array.isArray(e)?e:[e,e],[a]=o,i=o.join("-");return s=>{const[c,l,u]=lr(),{getPrefixCls:d,iconPrefixCls:m,csp:g}=f.useContext(Xe),v=d(),h={theme:c,token:l,hashId:u,nonce:()=>g==null?void 0:g.nonce,clientOnly:r.clientOnly,order:r.order||-999};return Ef(Object.assign(Object.assign({},h),{clientOnly:!1,path:["Shared",v]}),()=>[{"&":xL(l)}]),B1(m,g),[Ef(Object.assign(Object.assign({},h),{path:[i,s,m]}),()=>{const{token:p,flush:b}=IL(l),y=Object.assign({},l[a]);if(r.deprecatedTokens){const{deprecatedTokens:w}=r;w.forEach(O=>{let[_,T]=O;var I;(y!=null&&y[_]||y!=null&&y[T])&&((I=y[T])!==null&&I!==void 0||(y[T]=y==null?void 0:y[_]));});}const S=typeof n=="function"?n(gt(p,y??{})):n,x=Object.assign(Object.assign({},S),y),E=`.${s}`,$=gt(p,{componentCls:E,prefixCls:s,iconCls:`.${m}`,antCls:`.${v}`},x),C=t($,{hashId:u,prefixCls:s,rootPrefixCls:v,iconPrefixCls:m,overrideComponentToken:y});return b(a,x),[r.resetStyle===!1?null:EL(l,s),C]}),u]}}const Mg=(e,t,n,r)=>{const o=Dt(e,t,n,Object.assign({resetStyle:!1,order:-998},r));return i=>{let{prefixCls:s}=i;return o(s),null}};function fu(e,t){return os.reduce((n,r)=>{const o=e[`${r}1`],a=e[`${r}3`],i=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:a,darkColor:i,textColor:s}))},{})}function _L(e,t){const n=e||{},r=n.inherit===!1||!t?Jl:t;return Ps(()=>{if(!e)return t;const o=Object.assign({},r.components);return Object.keys(e.components||{}).forEach(a=>{o[a]=Object.assign(Object.assign({},o[a]),e.components[a]);}),Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:o})},[n,r],(o,a)=>o.some((i,s)=>{const c=a[s];return !Is(i,c,!0)}))}function ec(e){return e instanceof HTMLElement||e instanceof SVGElement}function Hi(e){return ec(e)?e:e instanceof f.Component?Q0.findDOMNode(e):null}var RL=["children"],H1=f__namespace.createContext({});function TL(e){var t=e.children,n=Ze(e,RL);return f__namespace.createElement(H1.Provider,{value:n},t)}function Nf(e,t){return Nf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Nf(e,t)}function Mo(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&&Nf(e,t);}function tc(e){return tc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},tc(e)}function ML(){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 Ot(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function NL(e,t){if(t&&(rt(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ot(e)}function No(e){var t=ML();return function(){var r=tc(e),o;if(t){var a=tc(this).constructor;o=Reflect.construct(r,arguments,a);}else o=r.apply(this,arguments);return NL(this,o)}}var kL=function(e){Mo(n,e);var t=No(n);function n(){return hn(this,n),t.apply(this,arguments)}return pn(n,[{key:"render",value:function(){return this.props.children}}]),n}(f__namespace.Component),jo="none",dl="appear",fl="enter",ml="leave",Sp="none",_r="prepare",ka="start",Aa="active",Ng="end",W1="prepared";function $p(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 AL(e,t){var n={animationend:$p("Animation","AnimationEnd"),transitionend:$p("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var LL=AL(Hn(),typeof window<"u"?window:{}),V1={};if(Hn()){var jL=document.createElement("div");V1=jL.style;}var gl={};function K1(e){if(gl[e])return gl[e];var t=LL[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var a=n[o];if(Object.prototype.hasOwnProperty.call(t,a)&&a in V1)return gl[e]=t[a],gl[e]}return ""}var G1=K1("animationend"),U1=K1("transitionend"),X1=!!(G1&&U1),wp=G1||"animationend",xp=U1||"transitionend";function Ep(e,t){if(!e)return null;if(rt(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return "".concat(e,"-").concat(t)}const zL=function(e){var t=f.useRef(),n=f.useRef(e);n.current=e;var r=f__namespace.useCallback(function(i){n.current(i);},[]);function o(i){i&&(i.removeEventListener(xp,r),i.removeEventListener(wp,r));}function a(i){t.current&&t.current!==i&&o(t.current),i&&i!==t.current&&(i.addEventListener(xp,r),i.addEventListener(wp,r),t.current=i);}return f__namespace.useEffect(function(){return function(){o(t.current);}},[]),[a,o]};var q1=Hn()?f.useLayoutEffect:f.useEffect,Y1=function(t){return +setTimeout(t,16)},Z1=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(Y1=function(t){return window.requestAnimationFrame(t)},Z1=function(t){return window.cancelAnimationFrame(t)});var Op=0,kg=new Map;function Q1(e){kg.delete(e);}var wt=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Op+=1;var r=Op;function o(a){if(a===0)Q1(r),t();else {var i=Y1(function(){o(a-1);});kg.set(r,i);}}return o(n),r};wt.cancel=function(e){var t=kg.get(e);return Q1(t),Z1(t)};const DL=function(){var e=f__namespace.useRef(null);function t(){wt.cancel(e.current);}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var a=wt(function(){o<=1?r({isCanceled:function(){return a!==e.current}}):n(r,o-1);});e.current=a;}return f__namespace.useEffect(function(){return function(){t();}},[]),[n,t]};var FL=[_r,ka,Aa,Ng],BL=[_r,W1],J1=!1,HL=!0;function eC(e){return e===Aa||e===Ng}const WL=function(e,t,n){var r=Uo(Sp),o=J(r,2),a=o[0],i=o[1],s=DL(),c=J(s,2),l=c[0],u=c[1];function d(){i(_r,!0);}var m=t?BL:FL;return q1(function(){if(a!==Sp&&a!==Ng){var g=m.indexOf(a),v=m[g+1],h=n(a);h===J1?i(v,!0):v&&l(function(p){function b(){p.isCanceled()||i(v,!0);}h===!0?b():Promise.resolve(h).then(b);});}},[e,a]),f__namespace.useEffect(function(){return function(){u();}},[]),[d,a]};function VL(e,t,n,r){var o=r.motionEnter,a=o===void 0?!0:o,i=r.motionAppear,s=i===void 0?!0:i,c=r.motionLeave,l=c===void 0?!0:c,u=r.motionDeadline,d=r.motionLeaveImmediately,m=r.onAppearPrepare,g=r.onEnterPrepare,v=r.onLeavePrepare,h=r.onAppearStart,p=r.onEnterStart,b=r.onLeaveStart,y=r.onAppearActive,S=r.onEnterActive,x=r.onLeaveActive,E=r.onAppearEnd,$=r.onEnterEnd,C=r.onLeaveEnd,w=r.onVisibleChanged,O=Uo(),_=J(O,2),T=_[0],I=_[1],P=Uo(jo),R=J(P,2),k=R[0],N=R[1],M=Uo(null),L=J(M,2),j=L[0],F=L[1],K=f.useRef(!1),B=f.useRef(null);function W(){return n()}var H=f.useRef(!1);function Y(){N(jo,!0),F(null,!0);}function U(se){var ve=W();if(!(se&&!se.deadline&&se.target!==ve)){var ge=H.current,ke;k===dl&&ge?ke=E==null?void 0:E(ve,se):k===fl&&ge?ke=$==null?void 0:$(ve,se):k===ml&&ge&&(ke=C==null?void 0:C(ve,se)),k!==jo&&ge&&ke!==!1&&Y();}}var X=zL(U),G=J(X,1),ee=G[0],te=function(ve){var ge,ke,Ae;switch(ve){case dl:return ge={},D(ge,_r,m),D(ge,ka,h),D(ge,Aa,y),ge;case fl:return ke={},D(ke,_r,g),D(ke,ka,p),D(ke,Aa,S),ke;case ml:return Ae={},D(Ae,_r,v),D(Ae,ka,b),D(Ae,Aa,x),Ae;default:return {}}},ie=f__namespace.useMemo(function(){return te(k)},[k]),le=WL(k,!e,function(se){if(se===_r){var ve=ie[_r];return ve?ve(W()):J1}if(ue in ie){var ge;F(((ge=ie[ue])===null||ge===void 0?void 0:ge.call(ie,W(),null))||null);}return ue===Aa&&(ee(W()),u>0&&(clearTimeout(B.current),B.current=setTimeout(function(){U({deadline:!0});},u))),ue===W1&&Y(),HL}),Q=J(le,2),oe=Q[0],ue=Q[1],Z=eC(ue);H.current=Z,q1(function(){I(t);var se=K.current;K.current=!0;var ve;!se&&t&&s&&(ve=dl),se&&t&&a&&(ve=fl),(se&&!t&&l||!se&&d&&!t&&l)&&(ve=ml);var ge=te(ve);ve&&(e||ge[_r])?(N(ve),oe()):N(jo);},[t]),f.useEffect(function(){(k===dl&&!s||k===fl&&!a||k===ml&&!l)&&N(jo);},[s,a,l]),f.useEffect(function(){return function(){K.current=!1,clearTimeout(B.current);}},[]);var ae=f__namespace.useRef(!1);f.useEffect(function(){T&&(ae.current=!0),T!==void 0&&k===jo&&((ae.current||T)&&(w==null||w(T)),ae.current=!0);},[T,k]);var ne=j;return ie[_r]&&ue===ka&&(ne=q({transition:"none"},ne)),[k,ue,ne,T??t]}function KL(e){var t=e;rt(e)==="object"&&(t=e.transitionSupport);function n(o,a){return !!(o.motionName&&t&&a!==!1)}var r=f__namespace.forwardRef(function(o,a){var i=o.visible,s=i===void 0?!0:i,c=o.removeOnLeave,l=c===void 0?!0:c,u=o.forceRender,d=o.children,m=o.motionName,g=o.leavedClassName,v=o.eventProps,h=f__namespace.useContext(H1),p=h.motion,b=n(o,p),y=f.useRef(),S=f.useRef();function x(){try{return y.current instanceof HTMLElement?y.current:Hi(S.current)}catch{return null}}var E=VL(b,s,x,o),$=J(E,4),C=$[0],w=$[1],O=$[2],_=$[3],T=f__namespace.useRef(_);_&&(T.current=!0);var I=f__namespace.useCallback(function(F){y.current=F,Tg(a,F);},[a]),P,R=q(q({},v),{},{visible:s});if(!d)P=null;else if(C===jo)_?P=d(q({},R),I):!l&&T.current&&g?P=d(q(q({},R),{},{className:g}),I):u||!l&&!g?P=d(q(q({},R),{},{style:{display:"none"}}),I):P=null;else {var k,N;w===_r?N="prepare":eC(w)?N="active":w===ka&&(N="start");var M=Ep(m,"".concat(C,"-").concat(N));P=d(q(q({},R),{},{className:V(Ep(m,C),(k={},D(k,M,M&&N),D(k,m,typeof m=="string"),k)),style:O}),I);}if(f__namespace.isValidElement(P)&&To(P)){var L=P,j=L.ref;j||(P=f__namespace.cloneElement(P,{ref:I}));}return f__namespace.createElement(kL,{ref:S},P)});return r.displayName="CSSMotion",r}const go=KL(X1);var kf="add",Af="keep",Lf="remove",$d="removed";function GL(e){var t;return e&&rt(e)==="object"&&"key"in e?t=e:t={key:e},q(q({},t),{},{key:String(t.key)})}function jf(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(GL)}function UL(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,o=t.length,a=jf(e),i=jf(t);a.forEach(function(l){for(var u=!1,d=r;d<o;d+=1){var m=i[d];if(m.key===l.key){r<d&&(n=n.concat(i.slice(r,d).map(function(g){return q(q({},g),{},{status:kf})})),r=d),n.push(q(q({},m),{},{status:Af})),r+=1,u=!0;break}}u||n.push(q(q({},l),{},{status:Lf}));}),r<o&&(n=n.concat(i.slice(r).map(function(l){return q(q({},l),{},{status:kf})})));var s={};n.forEach(function(l){var u=l.key;s[u]=(s[u]||0)+1;});var c=Object.keys(s).filter(function(l){return s[l]>1});return c.forEach(function(l){n=n.filter(function(u){var d=u.key,m=u.status;return d!==l||m!==Lf}),n.forEach(function(u){u.key===l&&(u.status=Af);});}),n}var XL=["component","children","onVisibleChanged","onAllRemoved"],qL=["status"],YL=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function ZL(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:go,n=function(r){Mo(a,r);var o=No(a);function a(){var i;hn(this,a);for(var s=arguments.length,c=new Array(s),l=0;l<s;l++)c[l]=arguments[l];return i=o.call.apply(o,[this].concat(c)),D(Ot(i),"state",{keyEntities:[]}),D(Ot(i),"removeKey",function(u){var d=i.state.keyEntities,m=d.map(function(g){return g.key!==u?g:q(q({},g),{},{status:$d})});return i.setState({keyEntities:m}),m.filter(function(g){var v=g.status;return v!==$d}).length}),i}return pn(a,[{key:"render",value:function(){var s=this,c=this.state.keyEntities,l=this.props,u=l.component,d=l.children,m=l.onVisibleChanged,g=l.onAllRemoved,v=Ze(l,XL),h=u||f__namespace.Fragment,p={};return YL.forEach(function(b){p[b]=v[b],delete v[b];}),delete v.keys,f__namespace.createElement(h,v,c.map(function(b,y){var S=b.status,x=Ze(b,qL),E=S===kf||S===Af;return f__namespace.createElement(t,Oe({},p,{key:x.key,visible:E,eventProps:x,onVisibleChanged:function(C){if(m==null||m(C,{key:x.key}),!C){var w=s.removeKey(x.key);w===0&&g&&g();}}}),function($,C){return d(q(q({},$),{},{index:y}),C)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,c){var l=s.keys,u=c.keyEntities,d=jf(l),m=UL(u,d);return {keyEntities:m.filter(function(g){var v=u.find(function(h){var p=h.key;return g.key===p});return !(v&&v.status===$d&&g.status===Lf)})}}}]),a}(f__namespace.Component);return D(n,"defaultProps",{component:"div"}),n}ZL(X1);function QL(e){const{children:t}=e,[,n]=lr(),{motion:r}=n,o=f__namespace.useRef(!1);return o.current=o.current||r===!1,o.current?f__namespace.createElement(TL,{motion:r},t):t}const JL=()=>null;var e5=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const t5=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select","button"],n5="ant";let tC;function r5(){return tC||n5}function o5(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const a5=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r}=e;t!==void 0&&(tC=t),r&&o5(r)&&gL(r5(),r);},i5=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:a,form:i,locale:s,componentSize:c,direction:l,space:u,virtual:d,dropdownMatchSelectWidth:m,popupMatchSelectWidth:g,popupOverflow:v,legacyLocale:h,parentContext:p,iconPrefixCls:b,theme:y,componentDisabled:S,segmented:x,statistic:E,spin:$,calendar:C,carousel:w,cascader:O,collapse:_,typography:T,checkbox:I,descriptions:P,divider:R,drawer:k,skeleton:N,steps:M,image:L,layout:j,list:F,mentions:K,modal:B,progress:W,result:H,slider:Y,breadcrumb:U,menu:X,pagination:G,input:ee,empty:te,badge:ie,radio:le,rate:Q,switch:oe,transfer:ue,avatar:Z,message:ae,tag:ne,table:se,card:ve,tabs:ge,timeline:ke,timePicker:Ae,upload:Me,notification:Ee,tree:he,colorPicker:Pe,datePicker:Qe,flex:Be,wave:Ke,warning:ze}=e,mt=f__namespace.useCallback((pe,we)=>{const{prefixCls:He}=e;if(we)return we;const De=He||p.getPrefixCls("");return pe?`${De}-${pe}`:De},[p.getPrefixCls,e.prefixCls]),et=b||p.iconPrefixCls||L1,ot=n||p.csp;B1(et,ot);const Ve=_L(y,p.theme),ct={csp:ot,autoInsertSpaceInButton:r,alert:o,anchor:a,locale:s||h,direction:l,space:u,virtual:d,popupMatchSelectWidth:g??m,popupOverflow:v,getPrefixCls:mt,iconPrefixCls:et,theme:Ve,segmented:x,statistic:E,spin:$,calendar:C,carousel:w,cascader:O,collapse:_,typography:T,checkbox:I,descriptions:P,divider:R,drawer:k,skeleton:N,steps:M,image:L,input:ee,layout:j,list:F,mentions:K,modal:B,progress:W,result:H,slider:Y,breadcrumb:U,menu:X,pagination:G,empty:te,badge:ie,radio:le,rate:Q,switch:oe,transfer:ue,avatar:Z,message:ae,tag:ne,table:se,card:ve,tabs:ge,timeline:ke,timePicker:Ae,upload:Me,notification:Ee,tree:he,colorPicker:Pe,datePicker:Qe,flex:Be,wave:Ke,warning:ze},bt=Object.assign({},p);Object.keys(ct).forEach(pe=>{ct[pe]!==void 0&&(bt[pe]=ct[pe]);}),t5.forEach(pe=>{const we=e[pe];we&&(bt[pe]=we);});const at=Ps(()=>bt,bt,(pe,we)=>{const He=Object.keys(pe),De=Object.keys(we);return He.length!==De.length||He.some(ye=>pe[ye]!==we[ye])}),it=f__namespace.useMemo(()=>({prefixCls:et,csp:ot}),[et,ot]);let _e=f__namespace.createElement(f__namespace.Fragment,null,f__namespace.createElement(JL,{dropdownMatchSelectWidth:m}),t);const de=f__namespace.useMemo(()=>{var pe,we,He,De;return Na(((pe=so.Form)===null||pe===void 0?void 0:pe.defaultValidateMessages)||{},((He=(we=at.locale)===null||we===void 0?void 0:we.Form)===null||He===void 0?void 0:He.defaultValidateMessages)||{},((De=at.form)===null||De===void 0?void 0:De.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[at,i==null?void 0:i.validateMessages]);Object.keys(de).length>0&&(_e=f__namespace.createElement(IA.Provider,{value:de},_e)),s&&(_e=f__namespace.createElement(jA,{locale:s,_ANT_MARK__:AA},_e)),(et||ot)&&(_e=f__namespace.createElement(xg.Provider,{value:it},_e)),c&&(_e=f__namespace.createElement(hL,{size:c},_e)),_e=f__namespace.createElement(QL,null,_e);const $e=f__namespace.useMemo(()=>{const pe=Ve||{},{algorithm:we,token:He,components:De}=pe,ye=e5(pe,["algorithm","token","components"]),fe=we&&(!Array.isArray(we)||we.length>0)?rs(we):k1,me={};Object.entries(De||{}).forEach(Le=>{let[qe,st]=Le;const vt=Object.assign({},st);"algorithm"in vt&&(vt.algorithm===!0?vt.theme=fe:(Array.isArray(vt.algorithm)||typeof vt.algorithm=="function")&&(vt.theme=rs(vt.algorithm)),delete vt.algorithm),me[qe]=vt;});const xe=Object.assign(Object.assign({},Ga),He);return Object.assign(Object.assign({},ye),{theme:fe,token:xe,components:me,override:Object.assign({override:xe},me)})},[Ve]);return y&&(_e=f__namespace.createElement(A1.Provider,{value:$e},_e)),at.warning&&(_e=f__namespace.createElement(j4.Provider,{value:at.warning},_e)),S!==void 0&&(_e=f__namespace.createElement(vL,{disabled:S},_e)),f__namespace.createElement(Xe.Provider,{value:at},_e)},pi=e=>{const t=f__namespace.useContext(Xe),n=f__namespace.useContext(Eg);return f__namespace.createElement(i5,Object.assign({parentContext:t,legacyLocale:n},e))};pi.ConfigContext=Xe;pi.SizeContext=tu;pi.config=a5;pi.useConfig=pL;Object.defineProperty(pi,"SizeContext",{get:()=>tu});const Ag=pi;function Lg(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,a=e.className,i=e.style;return f__namespace.createElement("div",{className:V("".concat(n,"-content"),a),style:i},f__namespace.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}function as(e){"@babel/helpers - typeof";return as=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},as(e)}function s5(e,t){if(as(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(as(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return (t==="string"?String:Number)(e)}function l5(e){var t=s5(e,"string");return as(t)==="symbol"?t:String(t)}function c5(e,t,n){return t=l5(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ip(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 Bn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ip(Object(n),!0).forEach(function(r){c5(e,r,n[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ip(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r));});}return e}function u5(e){if(Array.isArray(e))return e}function d5(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,i,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1;}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(u){l=!0,o=u;}finally{try{if(!c&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw o}}return s}}function zf(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 nC(e,t){if(e){if(typeof e=="string")return zf(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 zf(e,t)}}function f5(){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 cn(e,t){return u5(e)||d5(e,t)||nC(e,t)||f5()}function m5(e,t){if(e==null)return {};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function g5(e,t){if(e==null)return {};var n=m5(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);}return n}var rC=f__namespace.createContext(null),Pp=[];function v5(e,t){var n=f__namespace.useState(function(){if(!Hn())return null;var v=document.createElement("div");return v}),r=J(n,1),o=r[0],a=f__namespace.useRef(!1),i=f__namespace.useContext(rC),s=f__namespace.useState(Pp),c=J(s,2),l=c[0],u=c[1],d=i||(a.current?void 0:function(v){u(function(h){var p=[v].concat(Re(h));return p});});function m(){o.parentElement||document.body.appendChild(o),a.current=!0;}function g(){var v;(v=o.parentElement)===null||v===void 0||v.removeChild(o),a.current=!1;}return Ht(function(){return e?i?i(m):m():g(),g},[e]),Ht(function(){l.length&&(l.forEach(function(v){return v()}),u(Pp));},[l]),[o,d]}var wd;function h5(e){if(typeof document>"u")return 0;if(e||wd===void 0){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),r=n.style;r.position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var o=t.offsetWidth;n.style.overflow="scroll";var a=t.offsetWidth;o===a&&(a=n.clientWidth),document.body.removeChild(n),wd=o-a;}return wd}function p5(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var b5="rc-util-locker-".concat(Date.now()),_p=0;function y5(e){var t=!!e,n=f__namespace.useState(function(){return _p+=1,"".concat(b5,"_").concat(_p)}),r=J(n,1),o=r[0];Ht(function(){if(t){var a=h5(),i=p5();Ka(`
html body {
  overflow-y: hidden;
  `.concat(i?"width: calc(100% - ".concat(a,"px);"):"",`
}`),o);}else Zl(o);return function(){Zl(o);}},[t,o]);}var Rp=!1;function C5(e){return typeof e=="boolean"&&(Rp=e),Rp}var Tp=function(t){return t===!1?!1:!Hn()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},oC=f__namespace.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer;e.debug;var a=e.autoDestroy,i=a===void 0?!0:a,s=e.children,c=f__namespace.useState(n),l=J(c,2),u=l[0],d=l[1],m=u||n;f__namespace.useEffect(function(){(i||n)&&d(n);},[n,i]);var g=f__namespace.useState(function(){return Tp(o)}),v=J(g,2),h=v[0],p=v[1];f__namespace.useEffect(function(){var T=Tp(o);p(T??null);});var b=v5(m&&!h),y=J(b,2),S=y[0],x=y[1],E=h??S;y5(r&&n&&Hn()&&(E===S||E===document.body));var $=null;if(s&&To(s)&&t){var C=s;$=C.ref;}var w=aa($,t);if(!m||!Hn()||h===void 0)return null;var O=E===!1||C5(),_=s;return t&&(_=f__namespace.cloneElement(s,{ref:w})),f__namespace.createElement(rC.Provider,{value:x},O?_:Q0.createPortal(_,E))});function ir(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(ir(r)):Rg.isFragment(r)&&r.props?n=n.concat(ir(r.props.children,t)):n.push(r));}),n}var Df=f__namespace.createContext(null);function S5(e){var t=e.children,n=e.onBatchResize,r=f__namespace.useRef(0),o=f__namespace.useRef([]),a=f__namespace.useContext(Df),i=f__namespace.useCallback(function(s,c,l){r.current+=1;var u=r.current;o.current.push({size:s,element:c,data:l}),Promise.resolve().then(function(){u===r.current&&(n==null||n(o.current),o.current=[]);}),a==null||a(s,c,l);},[n,a]);return f__namespace.createElement(Df.Provider,{value:i},t)}var xo=new Map;function $5(e){e.forEach(function(t){var n,r=t.target;(n=xo.get(r))===null||n===void 0||n.forEach(function(o){return o(r)});});}var aC=new Mx($5);function w5(e,t){xo.has(e)||(xo.set(e,new Set),aC.observe(e)),xo.get(e).add(t);}function x5(e,t){xo.has(e)&&(xo.get(e).delete(t),xo.get(e).size||(aC.unobserve(e),xo.delete(e)));}var E5=function(e){Mo(n,e);var t=No(n);function n(){return hn(this,n),t.apply(this,arguments)}return pn(n,[{key:"render",value:function(){return this.props.children}}]),n}(f__namespace.Component);function O5(e,t){var n=e.children,r=e.disabled,o=f__namespace.useRef(null),a=f__namespace.useRef(null),i=f__namespace.useContext(Df),s=typeof n=="function",c=s?n(o):n,l=f__namespace.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&f__namespace.isValidElement(c)&&To(c),d=u?c.ref:null,m=aa(d,o),g=function(){var b;return Hi(o.current)||(o.current&&rt(o.current)==="object"?Hi((b=o.current)===null||b===void 0?void 0:b.nativeElement):null)||Hi(a.current)};f__namespace.useImperativeHandle(t,function(){return g()});var v=f__namespace.useRef(e);v.current=e;var h=f__namespace.useCallback(function(p){var b=v.current,y=b.onResize,S=b.data,x=p.getBoundingClientRect(),E=x.width,$=x.height,C=p.offsetWidth,w=p.offsetHeight,O=Math.floor(E),_=Math.floor($);if(l.current.width!==O||l.current.height!==_||l.current.offsetWidth!==C||l.current.offsetHeight!==w){var T={width:O,height:_,offsetWidth:C,offsetHeight:w};l.current=T;var I=C===Math.round(E)?E:C,P=w===Math.round($)?$:w,R=q(q({},T),{},{offsetWidth:I,offsetHeight:P});i==null||i(R,p,S),y&&Promise.resolve().then(function(){y(R,p);});}},[]);return f__namespace.useEffect(function(){var p=g();return p&&!r&&w5(p,h),function(){return x5(p,h)}},[o.current,r]),f__namespace.createElement(E5,{ref:a},u?f__namespace.cloneElement(c,{ref:m}):c)}var I5=f__namespace.forwardRef(O5),P5="rc-observer-key";function _5(e,t){var n=e.children,r=typeof n=="function"?[n]:ir(n);return r.map(function(o,a){var i=(o==null?void 0:o.key)||"".concat(P5,"-").concat(a);return f__namespace.createElement(I5,Oe({},e,{key:i,ref:a===0?t:void 0}),o)})}var pr=f__namespace.forwardRef(_5);pr.Collection=S5;function iC(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function R5(e){return iC(e)instanceof ShadowRoot}function nc(e){return R5(e)?iC(e):null}function T5(){var e=q({},f__namespace);return e.useId}var Mp=0,Np=T5();const M5=Np?function(t){var n=Np();return t||n}:function(t){var n=f__namespace.useState("ssr-id"),r=J(n,2),o=r[0],a=r[1];return f__namespace.useEffect(function(){var i=Mp;Mp+=1,a("rc_unique_".concat(i));},[]),t||o},mu=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 kp=f__namespace.createContext(null);function Ap(e){return e?Array.isArray(e)?e:[e]:[]}function N5(e,t,n,r){return f__namespace.useMemo(function(){var o=Ap(n??t),a=Ap(r??t),i=new Set(o),s=new Set(a);return e&&(i.has("hover")&&(i.delete("hover"),i.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[i,s]},[e,t,n,r])}const jg=function(e){if(!e)return !1;if(e instanceof Element){if(e.offsetParent)return !0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return !0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),a=o.width,i=o.height;if(a||i)return !0}}return !1};function k5(){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 A5(e,t,n,r){for(var o=n.points,a=Object.keys(e),i=0;i<a.length;i+=1){var s,c=a[i];if(k5((s=e[c])===null||s===void 0?void 0:s.points,o,r))return "".concat(t,"-placement-").concat(c)}return ""}function Lp(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Rs(e){return e.ownerDocument.defaultView}function Ff(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=Rs(n).getComputedStyle(n),a=o.overflowX,i=o.overflowY,s=o.overflow;[a,i,s].some(function(c){return r.includes(c)})&&t.push(n),n=n.parentElement;}return t}function is(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Ii(e){return is(parseFloat(e),0)}function jp(e,t){var n=Bn({},e);return (t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=Rs(r).getComputedStyle(r),a=o.overflow,i=o.overflowClipMargin,s=o.borderTopWidth,c=o.borderBottomWidth,l=o.borderLeftWidth,u=o.borderRightWidth,d=r.getBoundingClientRect(),m=r.offsetHeight,g=r.clientHeight,v=r.offsetWidth,h=r.clientWidth,p=Ii(s),b=Ii(c),y=Ii(l),S=Ii(u),x=is(Math.round(d.width/v*1e3)/1e3),E=is(Math.round(d.height/m*1e3)/1e3),$=(v-h-y-S)*x,C=(m-g-p-b)*E,w=p*E,O=b*E,_=y*x,T=S*x,I=0,P=0;if(a==="clip"){var R=Ii(i);I=R*x,P=R*E;}var k=d.x+_-I,N=d.y+w-P,M=k+d.width+2*I-_-T-$,L=N+d.height+2*P-w-O-C;n.left=Math.max(n.left,k),n.top=Math.max(n.top,N),n.right=Math.min(n.right,M),n.bottom=Math.min(n.bottom,L);}}),n}function zp(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 Dp(e,t){var n=t||[],r=cn(n,2),o=r[0],a=r[1];return [zp(e.width,o),zp(e.height,a)]}function Fp(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return [e[0],e[1]]}function ga(e,t){var n=t[0],r=t[1],o,a;return n==="t"?a=e.y:n==="b"?a=e.y+e.height:a=e.y+e.height/2,r==="l"?o=e.x:r==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:a}}function po(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 L5(e,t,n,r,o,a,i){var s=f__namespace.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),c=cn(s,2),l=c[0],u=c[1],d=f__namespace.useRef(0),m=f__namespace.useMemo(function(){return t?Ff(t):[]},[t]),g=f__namespace.useRef({}),v=function(){g.current={};};e||v();var h=Mn(function(){if(t&&n&&e){let dr=function(tl,Ao){var ho=arguments.length>2&&arguments[2]!==void 0?arguments[2]:se,wi=j.x+tl,fa=j.y+Ao,nl=wi+G,td=fa+X,nd=Math.max(wi,ho.left),rd=Math.max(fa,ho.top),od=Math.min(nl,ho.right),We=Math.min(td,ho.bottom);return Math.max(0,(od-nd)*(We-rd))},Jr=function(){ut=j.y+we,Ft=ut+X,ht=j.x+pe,Ne=ht+G;};var y,S,x=t,E=x.ownerDocument,$=Rs(x),C=$.getComputedStyle(x),w=C.width,O=C.height,_=C.position,T=x.style.left,I=x.style.top,P=x.style.right,R=x.style.bottom,k=Bn(Bn({},o[r]),a),N=E.createElement("div");(y=x.parentElement)===null||y===void 0||y.appendChild(N),N.style.left="".concat(x.offsetLeft,"px"),N.style.top="".concat(x.offsetTop,"px"),N.style.position=_,N.style.height="".concat(x.offsetHeight,"px"),N.style.width="".concat(x.offsetWidth,"px"),x.style.left="0",x.style.top="0",x.style.right="auto",x.style.bottom="auto";var M;if(Array.isArray(n))M={x:n[0],y:n[1],width:0,height:0};else {var L=n.getBoundingClientRect();M={x:L.x,y:L.y,width:L.width,height:L.height};}var j=x.getBoundingClientRect(),F=E.documentElement,K=F.clientWidth,B=F.clientHeight,W=F.scrollWidth,H=F.scrollHeight,Y=F.scrollTop,U=F.scrollLeft,X=j.height,G=j.width,ee=M.height,te=M.width,ie={left:0,top:0,right:K,bottom:B},le={left:-U,top:-Y,right:W-U,bottom:H-Y},Q=k.htmlRegion,oe="visible",ue="visibleFirst";Q!=="scroll"&&Q!==ue&&(Q=oe);var Z=Q===ue,ae=jp(le,m),ne=jp(ie,m),se=Q===oe?ne:ae,ve=Z?ne:se;x.style.left="auto",x.style.top="auto",x.style.right="0",x.style.bottom="0";var ge=x.getBoundingClientRect();x.style.left=T,x.style.top=I,x.style.right=P,x.style.bottom=R,(S=x.parentElement)===null||S===void 0||S.removeChild(N);var ke=is(Math.round(G/parseFloat(w)*1e3)/1e3),Ae=is(Math.round(X/parseFloat(O)*1e3)/1e3);if(ke===0||Ae===0||ec(n)&&!jg(n))return;var Me=k.offset,Ee=k.targetOffset,he=Dp(j,Me),Pe=cn(he,2),Qe=Pe[0],Be=Pe[1],Ke=Dp(M,Ee),ze=cn(Ke,2),mt=ze[0],et=ze[1];M.x-=mt,M.y-=et;var ot=k.points||[],Ve=cn(ot,2),ct=Ve[0],bt=Ve[1],at=Fp(bt),it=Fp(ct),_e=ga(M,at),de=ga(j,it),$e=Bn({},k),pe=_e.x-de.x+Qe,we=_e.y-de.y+Be,He=dr(pe,we),De=dr(pe,we,ne),ye=ga(M,["t","l"]),fe=ga(j,["t","l"]),me=ga(M,["b","r"]),xe=ga(j,["b","r"]),Le=k.overflow||{},qe=Le.adjustX,st=Le.adjustY,vt=Le.shiftX,kt=Le.shiftY,zt=function(Ao){return typeof Ao=="boolean"?Ao:Ao>=0},ut,Ft,ht,Ne;Jr();var Ie=zt(st),Se=it[0]===at[0];if(Ie&&it[0]==="t"&&(Ft>ve.bottom||g.current.bt)){var be=we;Se?be-=X-ee:be=ye.y-xe.y-Be;var Ge=dr(pe,be),Ue=dr(pe,be,ne);Ge>He||Ge===He&&(!Z||Ue>=De)?(g.current.bt=!0,we=be,Be=-Be,$e.points=[po(it,0),po(at,0)]):g.current.bt=!1;}if(Ie&&it[0]==="b"&&(ut<ve.top||g.current.tb)){var Ct=we;Se?Ct+=X-ee:Ct=me.y-fe.y-Be;var On=dr(pe,Ct),bn=dr(pe,Ct,ne);On>He||On===He&&(!Z||bn>=De)?(g.current.tb=!0,we=Ct,Be=-Be,$e.points=[po(it,0),po(at,0)]):g.current.tb=!1;}var yn=zt(qe),mn=it[1]===at[1];if(yn&&it[1]==="l"&&(Ne>ve.right||g.current.rl)){var In=pe;mn?In-=G-te:In=ye.x-xe.x-Qe;var qn=dr(In,we),ko=dr(In,we,ne);qn>He||qn===He&&(!Z||ko>=De)?(g.current.rl=!0,pe=In,Qe=-Qe,$e.points=[po(it,1),po(at,1)]):g.current.rl=!1;}if(yn&&it[1]==="r"&&(ht<ve.left||g.current.lr)){var Yn=pe;mn?Yn+=G-te:Yn=me.x-fe.x-Qe;var jn=dr(Yn,we),Qr=dr(Yn,we,ne);jn>He||jn===He&&(!Z||Qr>=De)?(g.current.lr=!0,pe=Yn,Qe=-Qe,$e.points=[po(it,1),po(at,1)]):g.current.lr=!1;}Jr();var cr=vt===!0?0:vt;typeof cr=="number"&&(ht<ne.left&&(pe-=ht-ne.left-Qe,M.x+te<ne.left+cr&&(pe+=M.x-ne.left+te-cr)),Ne>ne.right&&(pe-=Ne-ne.right-Qe,M.x>ne.right-cr&&(pe+=M.x-ne.right+cr)));var ur=kt===!0?0:kt;typeof ur=="number"&&(ut<ne.top&&(we-=ut-ne.top-Be,M.y+ee<ne.top+ur&&(we+=M.y-ne.top+ee-ur)),Ft>ne.bottom&&(we-=Ft-ne.bottom-Be,M.y>ne.bottom-ur&&(we+=M.y-ne.bottom+ur)));var Zn=j.x+pe,wr=Zn+G,zr=j.y+we,xr=zr+X,zn=M.x,ft=zn+te,je=M.y,Je=je+ee,dt=Math.max(Zn,zn),yt=Math.min(wr,ft),_t=(dt+yt)/2,Yt=_t-Zn,Pn=Math.max(zr,je),Gn=Math.min(xr,Je),Dr=(Pn+Gn)/2,Qn=Dr-zr;i==null||i(t,$e);var da=ge.right-j.x-(pe+j.width),ed=ge.bottom-j.y-(we+j.height);u({ready:!0,offsetX:pe/ke,offsetY:we/Ae,offsetR:da/ke,offsetB:ed/Ae,arrowX:Yt/ke,arrowY:Qn/Ae,scaleX:ke,scaleY:Ae,align:$e});}}),p=function(){d.current+=1;var S=d.current;Promise.resolve().then(function(){d.current===S&&h();});},b=function(){u(function(S){return Bn(Bn({},S),{},{ready:!1})});};return Ht(b,[r]),Ht(function(){e||b();},[e]),[l.ready,l.offsetX,l.offsetY,l.offsetR,l.offsetB,l.arrowX,l.arrowY,l.scaleX,l.scaleY,l.align,p]}function j5(e){if(Array.isArray(e))return zf(e)}function z5(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function D5(){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 Bp(e){return j5(e)||z5(e)||nC(e)||D5()}function F5(e,t,n,r,o){Ht(function(){if(e&&t&&n){let d=function(){r(),o();};var a=t,i=n,s=Ff(a),c=Ff(i),l=Rs(i),u=new Set([l].concat(Bp(s),Bp(c)));return u.forEach(function(m){m.addEventListener("scroll",d,{passive:!0});}),l.addEventListener("resize",d,{passive:!0}),r(),function(){u.forEach(function(m){m.removeEventListener("scroll",d),l.removeEventListener("resize",d);});}}},[e,t,n]);}function B5(e,t,n,r,o,a,i,s){var c=f__namespace.useRef(e),l=f__namespace.useRef(!1);c.current!==e&&(l.current=!0,c.current=e),f__namespace.useEffect(function(){var u=wt(function(){l.current=!1;});return function(){wt.cancel(u);}},[e]),f__namespace.useEffect(function(){if(t&&r&&(!o||a)){var u=function(){var $=!1,C=function(_){var T=_.target;$=i(T);},w=function(_){var T=_.target;!l.current&&c.current&&!$&&!i(T)&&s(!1);};return [C,w]},d=u(),m=cn(d,2),g=m[0],v=m[1],h=u(),p=cn(h,2),b=p[0],y=p[1],S=Rs(r);S.addEventListener("mousedown",g,!0),S.addEventListener("click",v,!0),S.addEventListener("contextmenu",v,!0);var x=nc(n);return x&&(x.addEventListener("mousedown",b,!0),x.addEventListener("click",y,!0),x.addEventListener("contextmenu",y,!0)),function(){S.removeEventListener("mousedown",g,!0),S.removeEventListener("click",v,!0),S.removeEventListener("contextmenu",v,!0),x&&(x.removeEventListener("mousedown",b,!0),x.removeEventListener("click",y,!0),x.removeEventListener("contextmenu",y,!0));}}},[t,n,r,o,a]);}function rc(){return rc=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},rc.apply(this,arguments)}function H5(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,a=r||{},i=a.className,s=a.content,c=o.x,l=c===void 0?0:c,u=o.y,d=u===void 0?0:u,m=f__namespace.useRef();if(!n||!n.points)return null;var g={position:"absolute"};if(n.autoArrow!==!1){var v=n.points[0],h=n.points[1],p=v[0],b=v[1],y=h[0],S=h[1];p===y||!["t","b"].includes(p)?g.top=d:p==="t"?g.top=0:g.bottom=0,b===S||!["l","r"].includes(b)?g.left=l:b==="l"?g.left=0:g.right=0;}return f__namespace.createElement("div",{ref:m,className:V("".concat(t,"-arrow"),i),style:g},s)}function W5(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,a=e.motion;return o?f__namespace.createElement(go,rc({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(i){var s=i.className;return f__namespace.createElement("div",{style:{zIndex:r},className:V("".concat(t,"-mask"),s)})}):null}var V5=f__namespace.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),K5=f__namespace.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,a=e.style,i=e.target,s=e.onVisibleChanged,c=e.open,l=e.keepDom,u=e.fresh,d=e.onClick,m=e.mask,g=e.arrow,v=e.arrowPos,h=e.align,p=e.motion,b=e.maskMotion,y=e.forceRender,S=e.getPopupContainer,x=e.autoDestroy,E=e.portal,$=e.zIndex,C=e.onMouseEnter,w=e.onMouseLeave,O=e.onPointerEnter,_=e.ready,T=e.offsetX,I=e.offsetY,P=e.offsetR,R=e.offsetB,k=e.onAlign,N=e.onPrepare,M=e.stretch,L=e.targetWidth,j=e.targetHeight,F=typeof n=="function"?n():n,K=c||l,B=(S==null?void 0:S.length)>0,W=f__namespace.useState(!S||!B),H=cn(W,2),Y=H[0],U=H[1];if(Ht(function(){!Y&&B&&i&&U(!0);},[Y,B,i]),!Y)return null;var X="auto",G={left:"-1000vw",top:"-1000vh",right:X,bottom:X};if(_||!c){var ee,te=h.points,ie=h.dynamicInset||((ee=h._experimental)===null||ee===void 0?void 0:ee.dynamicInset),le=ie&&te[0][1]==="r",Q=ie&&te[0][0]==="b";le?(G.right=P,G.left=X):(G.left=T,G.right=X),Q?(G.bottom=R,G.top=X):(G.top=I,G.bottom=X);}var oe={};return M&&(M.includes("height")&&j?oe.height=j:M.includes("minHeight")&&j&&(oe.minHeight=j),M.includes("width")&&L?oe.width=L:M.includes("minWidth")&&L&&(oe.minWidth=L)),c||(oe.pointerEvents="none"),f__namespace.createElement(E,{open:y||K,getContainer:S&&function(){return S(i)},autoDestroy:x},f__namespace.createElement(W5,{prefixCls:o,open:c,zIndex:$,mask:m,motion:b}),f__namespace.createElement(pr,{onResize:k,disabled:!c},function(ue){return f__namespace.createElement(go,rc({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(o,"-hidden")},p,{onAppearPrepare:N,onEnterPrepare:N,visible:c,onVisibleChanged:function(ae){var ne;p==null||(ne=p.onVisibleChanged)===null||ne===void 0||ne.call(p,ae),s(ae);}}),function(Z,ae){var ne=Z.className,se=Z.style,ve=V(o,ne,r);return f__namespace.createElement("div",{ref:Kn(ue,t,ae),className:ve,style:Bn(Bn(Bn(Bn({"--arrow-x":"".concat(v.x||0,"px"),"--arrow-y":"".concat(v.y||0,"px")},G),oe),se),{},{boxSizing:"border-box",zIndex:$},a),onMouseEnter:C,onMouseLeave:w,onPointerEnter:O,onClick:d},g&&f__namespace.createElement(H5,{prefixCls:o,arrow:g,arrowPos:v,align:h}),f__namespace.createElement(V5,{cache:!c&&!u},F))})}))}),G5=f__namespace.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=To(n),a=f__namespace.useCallback(function(s){Tg(t,r?r(s):s);},[r]),i=aa(a,n.ref);return o?f__namespace.cloneElement(n,{ref:i}):n}),U5=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function X5(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:oC,t=f__namespace.forwardRef(function(n,r){var o=n.prefixCls,a=o===void 0?"rc-trigger-popup":o,i=n.children,s=n.action,c=s===void 0?"hover":s,l=n.showAction,u=n.hideAction,d=n.popupVisible,m=n.defaultPopupVisible,g=n.onPopupVisibleChange,v=n.afterPopupVisibleChange,h=n.mouseEnterDelay,p=n.mouseLeaveDelay,b=p===void 0?.1:p,y=n.focusDelay,S=n.blurDelay,x=n.mask,E=n.maskClosable,$=E===void 0?!0:E,C=n.getPopupContainer,w=n.forceRender,O=n.autoDestroy,_=n.destroyPopupOnHide,T=n.popup,I=n.popupClassName,P=n.popupStyle,R=n.popupPlacement,k=n.builtinPlacements,N=k===void 0?{}:k,M=n.popupAlign,L=n.zIndex,j=n.stretch,F=n.getPopupClassNameFromAlign,K=n.fresh,B=n.alignPoint,W=n.onPopupClick,H=n.onPopupAlign,Y=n.arrow,U=n.popupMotion,X=n.maskMotion,G=n.popupTransitionName,ee=n.popupAnimation,te=n.maskTransitionName,ie=n.maskAnimation,le=n.className,Q=n.getTriggerDOMNode,oe=g5(n,U5),ue=O||_||!1,Z=f__namespace.useState(!1),ae=cn(Z,2),ne=ae[0],se=ae[1];Ht(function(){se(mu());},[]);var ve=f__namespace.useRef({}),ge=f__namespace.useContext(kp),ke=f__namespace.useMemo(function(){return {registerSubPopup:function(pt,Jt){ve.current[pt]=Jt,ge==null||ge.registerSubPopup(pt,Jt);}}},[ge]),Ae=M5(),Me=f__namespace.useState(null),Ee=cn(Me,2),he=Ee[0],Pe=Ee[1],Qe=Mn(function(We){ec(We)&&he!==We&&Pe(We),ge==null||ge.registerSubPopup(Ae,We);}),Be=f__namespace.useState(null),Ke=cn(Be,2),ze=Ke[0],mt=Ke[1],et=Mn(function(We){ec(We)&&ze!==We&&mt(We);}),ot=f__namespace.Children.only(i),Ve=(ot==null?void 0:ot.props)||{},ct={},bt=Mn(function(We){var pt,Jt,ln=ze;return (ln==null?void 0:ln.contains(We))||((pt=nc(ln))===null||pt===void 0?void 0:pt.host)===We||We===ln||(he==null?void 0:he.contains(We))||((Jt=nc(he))===null||Jt===void 0?void 0:Jt.host)===We||We===he||Object.values(ve.current).some(function(en){return (en==null?void 0:en.contains(We))||We===en})}),at=Lp(a,U,ee,G),it=Lp(a,X,ie,te),_e=f__namespace.useState(m||!1),de=cn(_e,2),$e=de[0],pe=de[1],we=d??$e,He=Mn(function(We){d===void 0&&pe(We);});Ht(function(){pe(d||!1);},[d]);var De=f__namespace.useRef(we);De.current=we;var ye=Mn(function(We){Q0.flushSync(function(){we!==We&&(He(We),g==null||g(We));});}),fe=f__namespace.useRef(),me=function(){clearTimeout(fe.current);},xe=function(pt){var Jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;me(),Jt===0?ye(pt):fe.current=setTimeout(function(){ye(pt);},Jt*1e3);};f__namespace.useEffect(function(){return me},[]);var Le=f__namespace.useState(!1),qe=cn(Le,2),st=qe[0],vt=qe[1];Ht(function(We){(!We||we)&&vt(!0);},[we]);var kt=f__namespace.useState(null),zt=cn(kt,2),ut=zt[0],Ft=zt[1],ht=f__namespace.useState([0,0]),Ne=cn(ht,2),Ie=Ne[0],Se=Ne[1],be=function(pt){Se([pt.clientX,pt.clientY]);},Ge=L5(we,he,B?Ie:ze,R,N,M,H),Ue=cn(Ge,11),Ct=Ue[0],On=Ue[1],bn=Ue[2],yn=Ue[3],mn=Ue[4],In=Ue[5],qn=Ue[6],ko=Ue[7],Yn=Ue[8],jn=Ue[9],Qr=Ue[10],cr=N5(ne,c,l,u),ur=cn(cr,2),Zn=ur[0],wr=ur[1],zr=Zn.has("click"),xr=wr.has("click")||wr.has("contextMenu"),zn=Mn(function(){st||Qr();}),ft=function(){De.current&&B&&xr&&xe(!1);};F5(we,ze,he,zn,ft),Ht(function(){zn();},[Ie,R]),Ht(function(){we&&!(N!=null&&N[R])&&zn();},[JSON.stringify(M)]);var je=f__namespace.useMemo(function(){var We=A5(N,a,jn,B);return V(We,F==null?void 0:F(jn))},[jn,F,N,a,B]);f__namespace.useImperativeHandle(r,function(){return {forceAlign:zn}});var Je=f__namespace.useState(0),dt=cn(Je,2),yt=dt[0],_t=dt[1],Yt=f__namespace.useState(0),Pn=cn(Yt,2),Gn=Pn[0],Dr=Pn[1],Qn=function(){if(j&&ze){var pt=ze.getBoundingClientRect();_t(pt.width),Dr(pt.height);}},da=function(){Qn(),zn();},ed=function(pt){vt(!1),Qr(),v==null||v(pt);},dr=function(){return new Promise(function(pt){Qn(),Ft(function(){return pt});})};Ht(function(){ut&&(Qr(),ut(),Ft(null));},[ut]);function Jr(We,pt,Jt,ln){ct[We]=function(en){var rl;ln==null||ln(en),xe(pt,Jt);for(var ad=arguments.length,oh=new Array(ad>1?ad-1:0),ol=1;ol<ad;ol++)oh[ol-1]=arguments[ol];(rl=Ve[We])===null||rl===void 0||rl.call.apply(rl,[Ve,en].concat(oh));};}(zr||xr)&&(ct.onClick=function(We){var pt;De.current&&xr?xe(!1):!De.current&&zr&&(be(We),xe(!0));for(var Jt=arguments.length,ln=new Array(Jt>1?Jt-1:0),en=1;en<Jt;en++)ln[en-1]=arguments[en];(pt=Ve.onClick)===null||pt===void 0||pt.call.apply(pt,[Ve,We].concat(ln));}),B5(we,xr,ze,he,x,$,bt,xe);var tl=Zn.has("hover"),Ao=wr.has("hover"),ho,wi;tl&&(Jr("onMouseEnter",!0,h,function(We){be(We);}),Jr("onPointerEnter",!0,h,function(We){be(We);}),ho=function(){(we||st)&&xe(!0,h);},B&&(ct.onMouseMove=function(We){var pt;(pt=Ve.onMouseMove)===null||pt===void 0||pt.call(Ve,We);})),Ao&&(Jr("onMouseLeave",!1,b),Jr("onPointerLeave",!1,b),wi=function(){xe(!1,b);}),Zn.has("focus")&&Jr("onFocus",!0,y),wr.has("focus")&&Jr("onBlur",!1,S),Zn.has("contextMenu")&&(ct.onContextMenu=function(We){var pt;De.current&&wr.has("contextMenu")?xe(!1):(be(We),xe(!0)),We.preventDefault();for(var Jt=arguments.length,ln=new Array(Jt>1?Jt-1:0),en=1;en<Jt;en++)ln[en-1]=arguments[en];(pt=Ve.onContextMenu)===null||pt===void 0||pt.call.apply(pt,[Ve,We].concat(ln));}),le&&(ct.className=V(Ve.className,le));var fa=Bn(Bn({},Ve),ct),nl={},td=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];td.forEach(function(We){oe[We]&&(nl[We]=function(){for(var pt,Jt=arguments.length,ln=new Array(Jt),en=0;en<Jt;en++)ln[en]=arguments[en];(pt=fa[We])===null||pt===void 0||pt.call.apply(pt,[fa].concat(ln)),oe[We].apply(oe,ln);});});var nd=f__namespace.cloneElement(ot,Bn(Bn({},fa),nl)),rd={x:In,y:qn},od=Y?Bn({},Y!==!0?Y:{}):null;return f__namespace.createElement(f__namespace.Fragment,null,f__namespace.createElement(pr,{disabled:!we,ref:et,onResize:da},f__namespace.createElement(G5,{getTriggerDOMNode:Q},nd)),f__namespace.createElement(kp.Provider,{value:ke},f__namespace.createElement(K5,{portal:e,ref:Qe,prefixCls:a,popup:T,className:V(I,je),style:P,target:ze,onMouseEnter:ho,onMouseLeave:wi,onPointerEnter:ho,zIndex:L,open:we,keepDom:st,fresh:K,onClick:W,mask:x,motion:at,maskMotion:it,onVisibleChanged:ed,onPrepare:dr,forceRender:w,autoDestroy:ue,getPopupContainer:C,align:jn,arrow:od,arrowPos:rd,ready:Ct,offsetX:On,offsetY:bn,offsetR:yn,offsetB:mn,onAlign:zn,stretch:j,targetWidth:yt/ko,targetHeight:Gn/Yn})))});return t}const gu=X5(oC);var va={shiftX:64,adjustY:1},ha={adjustX:1,shiftY:!0},fr=[0,0],q5={left:{points:["cr","cl"],overflow:ha,offset:[-4,0],targetOffset:fr},right:{points:["cl","cr"],overflow:ha,offset:[4,0],targetOffset:fr},top:{points:["bc","tc"],overflow:va,offset:[0,-4],targetOffset:fr},bottom:{points:["tc","bc"],overflow:va,offset:[0,4],targetOffset:fr},topLeft:{points:["bl","tl"],overflow:va,offset:[0,-4],targetOffset:fr},leftTop:{points:["tr","tl"],overflow:ha,offset:[-4,0],targetOffset:fr},topRight:{points:["br","tr"],overflow:va,offset:[0,-4],targetOffset:fr},rightTop:{points:["tl","tr"],overflow:ha,offset:[4,0],targetOffset:fr},bottomRight:{points:["tr","br"],overflow:va,offset:[0,4],targetOffset:fr},rightBottom:{points:["bl","br"],overflow:ha,offset:[4,0],targetOffset:fr},bottomLeft:{points:["tl","bl"],overflow:va,offset:[0,4],targetOffset:fr},leftBottom:{points:["br","bl"],overflow:ha,offset:[-4,0],targetOffset:fr}},Y5=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],Z5=function(t,n){var r=t.overlayClassName,o=t.trigger,a=o===void 0?["hover"]:o,i=t.mouseEnterDelay,s=i===void 0?0:i,c=t.mouseLeaveDelay,l=c===void 0?.1:c,u=t.overlayStyle,d=t.prefixCls,m=d===void 0?"rc-tooltip":d,g=t.children,v=t.onVisibleChange,h=t.afterVisibleChange,p=t.transitionName,b=t.animation,y=t.motion,S=t.placement,x=S===void 0?"right":S,E=t.align,$=E===void 0?{}:E,C=t.destroyTooltipOnHide,w=C===void 0?!1:C,O=t.defaultVisible,_=t.getTooltipContainer,T=t.overlayInnerStyle;t.arrowContent;var I=t.overlay,P=t.id,R=t.showArrow,k=R===void 0?!0:R,N=Ze(t,Y5),M=f.useRef(null);f.useImperativeHandle(n,function(){return M.current});var L=q({},N);"visible"in t&&(L.popupVisible=t.visible);var j=function(){return f__namespace.createElement(Lg,{key:"content",prefixCls:m,id:P,overlayInnerStyle:T},I)};return f__namespace.createElement(gu,Oe({popupClassName:r,prefixCls:m,popup:j,action:a,builtinPlacements:q5,popupPlacement:x,ref:M,popupAlign:$,getPopupContainer:_,onPopupVisibleChange:v,afterPopupVisibleChange:h,popupTransitionName:p,popupAnimation:b,popupMotion:y,defaultPopupVisible:O,autoDestroy:w,mouseLeaveDelay:l,popupStyle:u,mouseEnterDelay:s,arrow:k},L),g)};const Q5=f.forwardRef(Z5),xd=()=>({height:0,opacity:0}),Hp=e=>{const{scrollHeight:t}=e;return {height:t,opacity:1}},J5=e=>({height:e?e.offsetHeight:0}),Ed=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",sC=function(){return {motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:xd,onEnterStart:xd,onAppearActive:Hp,onEnterActive:Hp,onLeaveStart:J5,onLeaveActive:xd,onAppearEnd:Ed,onEnterEnd:Ed,onLeaveEnd:Ed,motionDeadline:500}},vu=(e,t,n)=>n!==void 0?n:`${e}-${t}`,lC=8;function zg(e){const t=lC,{contentRadius:n,limitVerticalRadius:r}=e,o=n>12?n+2:12;return {dropdownArrowOffset:o,dropdownArrowOffsetVertical:r?t:o}}function vl(e,t){return e?t:{}}function Dg(e,t){const{componentCls:n,sizePopupArrow:r,borderRadiusXS:o,borderRadiusOuter:a,boxShadowPopoverArrow:i}=e,{colorBg:s,contentRadius:c=e.borderRadiusLG,limitVerticalRadius:l,arrowDistance:u=0,arrowPlacement:d={left:!0,right:!0,top:!0,bottom:!0}}=t,{dropdownArrowOffsetVertical:m,dropdownArrowOffset:g}=zg({contentRadius:c,limitVerticalRadius:l});return {[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},wL(r,o,a,s,i)),{"&:before":{background:s}})]},vl(!!d.top,{[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:u,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:g}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:g}}})),vl(!!d.bottom,{[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:u,transform:"translateY(-100%)"},[`&-placement-bottom ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:g}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:g}}})),vl(!!d.left,{[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:u},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${n}-arrow`]:{top:m},[`&-placement-leftBottom ${n}-arrow`]:{bottom:m}})),vl(!!d.right,{[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:u},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${n}-arrow`]:{top:m},[`&-placement-rightBottom ${n}-arrow`]:{bottom:m}}))}}function ej(e,t,n,r){if(r===!1)return {adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},a={};switch(e){case"top":case"bottom":a.shiftX=t.dropdownArrowOffset*2+n,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=t.dropdownArrowOffsetVertical*2+n,a.shiftX=!0,a.adjustX=!0;break}const i=Object.assign(Object.assign({},a),o);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}const Wp={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"]}},tj={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"]}},nj=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function cC(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:a,visibleFirst:i}=e,s=t/2,c={};return Object.keys(Wp).forEach(l=>{const u=r&&tj[l]||Wp[l],d=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(c[l]=d,nj.has(l)&&(d.autoArrow=!1),l){case"top":case"topLeft":case"topRight":d.offset[1]=-s-o;break;case"bottom":case"bottomLeft":case"bottomRight":d.offset[1]=s+o;break;case"left":case"leftTop":case"leftBottom":d.offset[0]=-s-o;break;case"right":case"rightTop":case"rightBottom":d.offset[0]=s+o;break}const m=zg({contentRadius:a,limitVerticalRadius:!0});if(r)switch(l){case"topLeft":case"bottomLeft":d.offset[0]=-m.dropdownArrowOffset-s;break;case"topRight":case"bottomRight":d.offset[0]=m.dropdownArrowOffset+s;break;case"leftTop":case"rightTop":d.offset[1]=-m.dropdownArrowOffset-s;break;case"leftBottom":case"rightBottom":d.offset[1]=m.dropdownArrowOffset+s;break}d.overflow=ej(l,m,t,n),i&&(d.htmlRegion="visibleFirst");}),c}const{isValidElement:co}=f__namespace;function uC(e){return e&&co(e)&&e.type===f__namespace.Fragment}function rj(e,t,n){return co(e)?f__namespace.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t}function Wn(e,t){return rj(e,e,t)}const oj=e=>{const t=f.useContext(tu);return f.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},Xn=oj,aj=e=>{const{componentCls:t}=e;return {[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},ij=aj,sj=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"}}}},lj=e=>{const{componentCls:t}=e;return {[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},dC=Dt("Space",e=>{const t=gt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return [sj(t),lj(t),ij(t)]},()=>({}),{resetStyle:!1});var fC=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 hu=f__namespace.createContext(null),bi=(e,t)=>{const n=f__namespace.useContext(hu),r=f__namespace.useMemo(()=>{if(!n)return "";const{compactDirection:o,isFirstItem:a,isLastItem:i}=n,s=o==="vertical"?"-vertical-":"-";return V(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:a,[`${e}-compact${s}last-item`]:i,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,n]);return {compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},Ua=e=>{let{children:t}=e;return f__namespace.createElement(hu.Provider,{value:null},t)},cj=e=>{var{children:t}=e,n=fC(e,["children"]);return f__namespace.createElement(hu.Provider,{value:n},t)},uj=e=>{const{getPrefixCls:t,direction:n}=f__namespace.useContext(Xe),{size:r,direction:o,block:a,prefixCls:i,className:s,rootClassName:c,children:l}=e,u=fC(e,["size","direction","block","prefixCls","className","rootClassName","children"]),d=Xn(S=>r??S),m=t("space-compact",i),[g,v]=dC(m),h=V(m,v,{[`${m}-rtl`]:n==="rtl",[`${m}-block`]:a,[`${m}-vertical`]:o==="vertical"},s,c),p=f__namespace.useContext(hu),b=ir(l),y=f__namespace.useMemo(()=>b.map((S,x)=>{const E=S&&S.key||`${m}-item-${x}`;return f__namespace.createElement(cj,{key:E,compactSize:d,compactDirection:o,isFirstItem:x===0&&(!p||(p==null?void 0:p.isFirstItem)),isLastItem:x===b.length-1&&(!p||(p==null?void 0:p.isLastItem))},S)}),[r,b,p]);return b.length===0?null:g(f__namespace.createElement("div",Object.assign({className:h},u),y))},dj=uj,fj=e=>({animationDuration:e,animationFillMode:"both"}),mj=e=>({animationDuration:e,animationFillMode:"both"}),Fg=function(e,t,n,r){const a=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return {[`
      ${a}${e}-enter,
      ${a}${e}-appear
    `]:Object.assign(Object.assign({},fj(r)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},mj(r)),{animationPlayState:"paused"}),[`
      ${a}${e}-enter${e}-enter-active,
      ${a}${e}-appear${e}-appear-active
    `]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},gj=new Et("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),vj=new Et("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),hj=new Et("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),pj=new Et("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),bj=new Et("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),yj=new Et("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Cj=new Et("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Sj=new Et("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),$j={"move-up":{inKeyframes:Cj,outKeyframes:Sj},"move-down":{inKeyframes:gj,outKeyframes:vj},"move-left":{inKeyframes:hj,outKeyframes:pj},"move-right":{inKeyframes:bj,outKeyframes:yj}},oc=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=$j[t];return [Fg(r,o,a,e.motionDurationMid),{[`
        ${r}-enter,
        ${r}-appear
      `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Bg=new Et("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Hg=new Et("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Wg=new Et("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Vg=new Et("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),wj=new Et("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),xj=new Et("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Ej=new Et("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Oj=new Et("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Ij={"slide-up":{inKeyframes:Bg,outKeyframes:Hg},"slide-down":{inKeyframes:Wg,outKeyframes:Vg},"slide-left":{inKeyframes:wj,outKeyframes:xj},"slide-right":{inKeyframes:Ej,outKeyframes:Oj}},_o=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=Ij[t];return [Fg(r,o,a,e.motionDurationMid),{[`
      ${r}-enter,
      ${r}-appear
    `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},Pj=new Et("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),_j=new Et("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Vp=new Et("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Kp=new Et("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Rj=new Et("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Tj=new Et("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Mj=new Et("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),Nj=new Et("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),kj=new Et("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Aj=new Et("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),Lj=new Et("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),jj=new Et("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),zj={zoom:{inKeyframes:Pj,outKeyframes:_j},"zoom-big":{inKeyframes:Vp,outKeyframes:Kp},"zoom-big-fast":{inKeyframes:Vp,outKeyframes:Kp},"zoom-left":{inKeyframes:Mj,outKeyframes:Nj},"zoom-right":{inKeyframes:kj,outKeyframes:Aj},"zoom-up":{inKeyframes:Rj,outKeyframes:Tj},"zoom-down":{inKeyframes:Lj,outKeyframes:jj}},pu=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=zj[t];return [Fg(r,o,a,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
        ${r}-enter,
        ${r}-appear
      `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Dj=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`}}}),mC=Dj,Fj=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:a,zIndexPopup:i,controlHeight:s,boxShadowSecondary:c,paddingSM:l,paddingXS:u,tooltipRadiusOuter:d}=e;return [{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Nt(e)),{position:"absolute",zIndex:i,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:s,minHeight:s,padding:`${l/2}px ${u}px`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:a,boxShadow:c,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(a,lC)}},[`${t}-content`]:{position:"relative"}}),fu(e,(m,g)=>{let{darkColor:v}=g;return {[`&${t}-${m}`]:{[`${t}-inner`]:{backgroundColor:v},[`${t}-arrow`]:{"--antd-arrow-background-color":v}}}})),{"&-rtl":{direction:"rtl"}})},Dg(gt(e,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:a,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},gC=(e,t)=>Dt("Tooltip",r=>{if(t===!1)return [];const{borderRadius:o,colorTextLightSolid:a,colorBgDefault:i,borderRadiusOuter:s}=r,c=gt(r,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:o,tooltipBg:i,tooltipRadiusOuter:s>4?4:s});return [Fj(c),pu(r,"zoom-big-fast")]},r=>{let{zIndexPopupBase:o,colorBgSpotlight:a}=r;return {zIndexPopup:o+70,colorBgDefault:a}},{resetStyle:!1})(e),Bj=os.map(e=>`${e}-inverse`),Hj=["success","processing","error","default","warning"];function bu(e){return (arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Re(Bj),Re(os)).includes(e):os.includes(e)}function Wj(e){return Hj.includes(e)}function vC(e,t){const n=bu(t),r=V({[`${e}-${t}`]:t&&n}),o={},a={};return t&&!n&&(o.background=t,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:a}}const Vj=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:a,overlayInnerStyle:i}=e,{getPrefixCls:s}=f__namespace.useContext(Xe),c=s("tooltip",t),[l,u]=gC(c,!0),d=vC(c,a),m=d.arrowStyle,g=Object.assign(Object.assign({},i),d.overlayStyle),v=V(u,c,`${c}-pure`,`${c}-placement-${r}`,n,d.className);return l(f__namespace.createElement("div",{className:v,style:m},f__namespace.createElement("div",{className:`${c}-arrow`}),f__namespace.createElement(Lg,Object.assign({},e,{className:u,prefixCls:c,overlayInnerStyle:g}),o)))},Kj=Vj;var Gj=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const hC=f__namespace.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:a,getTooltipContainer:i,overlayClassName:s,color:c,overlayInnerStyle:l,children:u,afterOpenChange:d,afterVisibleChange:m,destroyTooltipOnHide:g,arrow:v=!0,title:h,overlay:p,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:S=!0}=e,x=!!v,[,E]=lr(),{getPopupContainer:$,getPrefixCls:C,direction:w}=f__namespace.useContext(Xe),O=f1(),_=f__namespace.useRef(null),T=()=>{var se;(se=_.current)===null||se===void 0||se.forceAlign();};f__namespace.useImperativeHandle(t,()=>({forceAlign:T,forcePopupAlign:()=>{O.deprecated(!1,"forcePopupAlign","forceAlign"),T();}}));const[I,P]=Wt(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),R=!h&&!p&&h!==0,k=se=>{var ve,ge;P(R?!1:se),R||((ve=e.onOpenChange)===null||ve===void 0||ve.call(e,se),(ge=e.onVisibleChange)===null||ge===void 0||ge.call(e,se));},N=f__namespace.useMemo(()=>{var se,ve;let ge=y;return typeof v=="object"&&(ge=(ve=(se=v.pointAtCenter)!==null&&se!==void 0?se:v.arrowPointAtCenter)!==null&&ve!==void 0?ve:y),b||cC({arrowPointAtCenter:ge,autoAdjustOverflow:S,arrowWidth:x?E.sizePopupArrow:0,borderRadius:E.borderRadius,offset:E.marginXXS,visibleFirst:!0})},[y,v,b,E]),M=f__namespace.useMemo(()=>h===0?h:p||h||"",[p,h]),L=f__namespace.createElement(Ua,null,typeof M=="function"?M():M),{getPopupContainer:j,placement:F="top",mouseEnterDelay:K=.1,mouseLeaveDelay:B=.1,overlayStyle:W,rootClassName:H}=e,Y=Gj(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),U=C("tooltip",o),X=C(),G=e["data-popover-inject"];let ee=I;!("open"in e)&&!("visible"in e)&&R&&(ee=!1);const te=co(u)&&!uC(u)?u:f__namespace.createElement("span",null,u),ie=te.props,le=!ie.className||typeof ie.className=="string"?V(ie.className,a||`${U}-open`):ie.className,[Q,oe]=gC(U,!G),ue=vC(U,c),Z=ue.arrowStyle,ae=Object.assign(Object.assign({},l),ue.overlayStyle),ne=V(s,{[`${U}-rtl`]:w==="rtl"},ue.className,H,oe);return Q(f__namespace.createElement(Q5,Object.assign({},Y,{showArrow:x,placement:F,mouseEnterDelay:K,mouseLeaveDelay:B,prefixCls:U,overlayClassName:ne,overlayStyle:Object.assign(Object.assign({},Z),W),getTooltipContainer:j||i||$,ref:_,builtinPlacements:N,overlay:L,visible:ee,onVisibleChange:k,afterVisibleChange:d??m,overlayInnerStyle:ae,arrowContent:f__namespace.createElement("span",{className:`${U}-arrow-content`}),motion:{motionName:vu(X,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!g}),ee?Wn(te,{className:le}):te))});hC._InternalPanelDoNotUseOrYouWillBeFired=Kj;const Ts=hC,Uj=f__namespace.forwardRef((e,t)=>{const{open:n}=e,r=f.useRef(null),o=f.useRef(null);function a(){wt.cancel(o.current),o.current=null;}function i(){o.current=wt(()=>{var s;(s=r.current)===null||s===void 0||s.forceAlign(),o.current=null;});}return f__namespace.useEffect(()=>(n?i():a(),a),[n,e.title]),f__namespace.createElement(Ts,Object.assign({ref:Kn(r,t)},e))}),Xj=Uj,qj=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:o,marginFull:a,marginPart:i,colorFillContentHover:s}=e;return {[t]:Object.assign(Object.assign({},Nt(e)),{position:"relative",height:r,margin:`${i}px ${a}px`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${a}px ${i}px`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${e.motionDurationMid}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:s},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:e.handleSize,height:e.handleSize,outline:"none",[`${t}-dragging`]:{zIndex:1},"&::before":{content:'""',position:"absolute",insetInlineStart:-e.handleLineWidth,insetBlockStart:-e.handleLineWidth,width:e.handleSize+e.handleLineWidth*2,height:e.handleSize+e.handleLineWidth*2,backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:e.handleSize,height:e.handleSize,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.handleColor}`,borderRadius:"50%",cursor:"pointer",transition:`
            inset-inline-start ${e.motionDurationMid},
            inset-block-start ${e.motionDurationMid},
            width ${e.motionDurationMid},
            height ${e.motionDurationMid},
            box-shadow ${e.motionDurationMid}
          `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),insetBlockStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),width:e.handleSizeHover+e.handleLineWidthHover*2,height:e.handleSizeHover+e.handleLineWidthHover*2},"&::after":{boxShadow:`0 0 0 ${e.handleLineWidthHover}px ${e.handleActiveColor}`,width:e.handleSizeHover,height:e.handleSizeHover,insetInlineStart:(e.handleSize-e.handleSizeHover)/2,insetBlockStart:(e.handleSize-e.handleSizeHover)/2}}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:o,height:o,backgroundColor:e.colorBgElevated,border:`${e.handleLineWidth}px solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[`
          ${t}-dot
        `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:e.handleSize,height:e.handleSize,boxShadow:`0 0 0 ${e.handleLineWidth}px ${new qt(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString()}`,insetInlineStart:0,insetBlockStart:0},[`
          ${t}-mark-text,
          ${t}-dot
        `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},pC=(e,t)=>{const{componentCls:n,railSize:r,handleSize:o,dotSize:a}=e,i=t?"paddingBlock":"paddingInline",s=t?"width":"height",c=t?"height":"width",l=t?"insetBlockStart":"insetInlineStart",u=t?"top":"insetInlineStart",d=(r*3-o)/2,m=(o-r)/2,g=t?{borderWidth:`${m}px 0`,transform:`translateY(-${m}px)`}:{borderWidth:`0 ${m}px`,transform:`translateX(-${m}px)`};return {[i]:r,[c]:r*3,[`${n}-rail`]:{[s]:"100%",[c]:r},[`${n}-track,${n}-tracks`]:{[c]:r},[`${n}-track-draggable`]:Object.assign({},g),[`${n}-handle`]:{[l]:d},[`${n}-mark`]:{insetInlineStart:0,top:0,[u]:r*3+(t?0:e.marginFull),[s]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[u]:r,[s]:"100%",[c]:r},[`${n}-dot`]:{position:"absolute",[l]:(r-a)/2}}},Yj=e=>{const{componentCls:t,marginPartWithMark:n}=e;return {[`${t}-horizontal`]:Object.assign(Object.assign({},pC(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},Zj=e=>{const{componentCls:t}=e;return {[`${t}-vertical`]:Object.assign(Object.assign({},pC(e,!1)),{height:"100%"})}},Qj=Dt("Slider",e=>{const t=gt(e,{marginPart:(e.controlHeight-e.controlSize)/2,marginFull:e.controlSize/2,marginPartWithMark:e.controlHeightLG-e.controlSize});return [qj(t),Yj(t),Zj(t)]},e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,o=e.lineWidth+1,a=e.lineWidth+1*3;return {controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:o,handleLineWidthHover:a,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:e.colorPrimary,dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}});var Jj=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=e=>typeof e=="number"?e.toString():"",tz=f.forwardRef((e,t)=>{const{prefixCls:n,range:r,className:o,rootClassName:a,style:i,disabled:s,tooltipPrefixCls:c,tipFormatter:l,tooltipVisible:u,getTooltipPopupContainer:d,tooltipPlacement:m}=e,g=Jj(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement"]),{direction:v,slider:h,getPrefixCls:p,getPopupContainer:b}=f.useContext(Xe),y=f.useContext(Zr),S=s??y,[x,E]=f.useState({}),$=(N,M)=>{E(L=>Object.assign(Object.assign({},L),{[N]:M}));},C=(N,M)=>N||(M?v==="rtl"?"left":"right":"top"),w=p("slider",n),[O,_]=Qj(w),T=V(o,h==null?void 0:h.className,a,{[`${w}-rtl`]:v==="rtl"},_);v==="rtl"&&!g.vertical&&(g.reverse=!g.reverse);const[I,P]=f.useMemo(()=>r?typeof r=="object"?[!0,r.draggableTrack]:[!0,!1]:[!1],[r]),R=(N,M)=>{var L;const{index:j,dragging:F}=M,{tooltip:K={},vertical:B}=e,W=Object.assign({},K),{open:H,placement:Y,getPopupContainer:U,prefixCls:X,formatter:G}=W;let ee;G||G===null?ee=G:l||l===null?ee=l:ee=ez;const te=ee?x[j]||F:!1,ie=(L=H??u)!==null&&L!==void 0?L:H===void 0&&te,le=Object.assign(Object.assign({},N.props),{onMouseEnter:()=>$(j,!0),onMouseLeave:()=>$(j,!1)}),Q=p("tooltip",X??c);return f.createElement(Xj,Object.assign({},W,{prefixCls:Q,title:ee?ee(M.value):"",open:ie,placement:C(Y??m,B),key:j,overlayClassName:`${w}-tooltip`,getPopupContainer:U||d||b}),f.cloneElement(N,le))},k=Object.assign(Object.assign({},h==null?void 0:h.style),i);return O(f.createElement(A4,Object.assign({},g,{step:g.step,range:I,draggableTrack:P,className:T,style:k,disabled:S,ref:t,prefixCls:w,handleRender:R})))}),nz=tz;var rz=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],bC=f.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-checkbox":r,a=e.className,i=e.style,s=e.checked,c=e.disabled,l=e.defaultChecked,u=l===void 0?!1:l,d=e.type,m=d===void 0?"checkbox":d,g=e.title,v=e.onChange,h=Ze(e,rz),p=f.useRef(null),b=Wt(u,{value:s}),y=J(b,2),S=y[0],x=y[1];f.useImperativeHandle(t,function(){return {focus:function(){var w;(w=p.current)===null||w===void 0||w.focus();},blur:function(){var w;(w=p.current)===null||w===void 0||w.blur();},input:p.current}});var E=V(o,a,(n={},D(n,"".concat(o,"-checked"),S),D(n,"".concat(o,"-disabled"),c),n)),$=function(w){c||("checked"in e||x(w.target.checked),v==null||v({target:q(q({},e),{},{type:m,checked:w.target.checked}),stopPropagation:function(){w.stopPropagation();},preventDefault:function(){w.preventDefault();},nativeEvent:w.nativeEvent}));};return f__namespace.createElement("span",{className:E,title:g,style:i},f__namespace.createElement("input",Oe({},h,{className:"".concat(o,"-input"),ref:p,onChange:$,disabled:c,checked:!!S,type:m})),f__namespace.createElement("span",{className:"".concat(o,"-inner")}))});const oz=e=>{const{componentCls:t,colorPrimary:n}=e;return {[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow 0.3s ${e.motionEaseInOut}`,`opacity 0.35s ${e.motionEaseInOut}`].join(",")}}}}},az=Dt("Wave",e=>[oz(e)]);function Vn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Vn=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(I,P,R){I[P]=R.value;},o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(I,P,R){return Object.defineProperty(I,P,{value:R,enumerable:!0,configurable:!0,writable:!0}),I[P]}try{c({},"");}catch{c=function(R,k,N){return R[k]=N};}function l(I,P,R,k){var N=P&&P.prototype instanceof m?P:m,M=Object.create(N.prototype),L=new O(k||[]);return r(M,"_invoke",{value:E(I,R,L)}),M}function u(I,P,R){try{return {type:"normal",arg:I.call(P,R)}}catch(k){return {type:"throw",arg:k}}}e.wrap=l;var d={};function m(){}function g(){}function v(){}var h={};c(h,a,function(){return this});var p=Object.getPrototypeOf,b=p&&p(p(_([])));b&&b!==t&&n.call(b,a)&&(h=b);var y=v.prototype=m.prototype=Object.create(h);function S(I){["next","throw","return"].forEach(function(P){c(I,P,function(R){return this._invoke(P,R)});});}function x(I,P){function R(N,M,L,j){var F=u(I[N],I,M);if(F.type!=="throw"){var K=F.arg,B=K.value;return B&&rt(B)=="object"&&n.call(B,"__await")?P.resolve(B.__await).then(function(W){R("next",W,L,j);},function(W){R("throw",W,L,j);}):P.resolve(B).then(function(W){K.value=W,L(K);},function(W){return R("throw",W,L,j)})}j(F.arg);}var k;r(this,"_invoke",{value:function(M,L){function j(){return new P(function(F,K){R(M,L,F,K);})}return k=k?k.then(j,j):j()}});}function E(I,P,R){var k="suspendedStart";return function(N,M){if(k==="executing")throw new Error("Generator is already running");if(k==="completed"){if(N==="throw")throw M;return T()}for(R.method=N,R.arg=M;;){var L=R.delegate;if(L){var j=$(L,R);if(j){if(j===d)continue;return j}}if(R.method==="next")R.sent=R._sent=R.arg;else if(R.method==="throw"){if(k==="suspendedStart")throw k="completed",R.arg;R.dispatchException(R.arg);}else R.method==="return"&&R.abrupt("return",R.arg);k="executing";var F=u(I,P,R);if(F.type==="normal"){if(k=R.done?"completed":"suspendedYield",F.arg===d)continue;return {value:F.arg,done:R.done}}F.type==="throw"&&(k="completed",R.method="throw",R.arg=F.arg);}}}function $(I,P){var R=P.method,k=I.iterator[R];if(k===void 0)return P.delegate=null,R==="throw"&&I.iterator.return&&(P.method="return",P.arg=void 0,$(I,P),P.method==="throw")||R!=="return"&&(P.method="throw",P.arg=new TypeError("The iterator does not provide a '"+R+"' method")),d;var N=u(k,I.iterator,P.arg);if(N.type==="throw")return P.method="throw",P.arg=N.arg,P.delegate=null,d;var M=N.arg;return M?M.done?(P[I.resultName]=M.value,P.next=I.nextLoc,P.method!=="return"&&(P.method="next",P.arg=void 0),P.delegate=null,d):M:(P.method="throw",P.arg=new TypeError("iterator result is not an object"),P.delegate=null,d)}function C(I){var P={tryLoc:I[0]};1 in I&&(P.catchLoc=I[1]),2 in I&&(P.finallyLoc=I[2],P.afterLoc=I[3]),this.tryEntries.push(P);}function w(I){var P=I.completion||{};P.type="normal",delete P.arg,I.completion=P;}function O(I){this.tryEntries=[{tryLoc:"root"}],I.forEach(C,this),this.reset(!0);}function _(I){if(I){var P=I[a];if(P)return P.call(I);if(typeof I.next=="function")return I;if(!isNaN(I.length)){var R=-1,k=function N(){for(;++R<I.length;)if(n.call(I,R))return N.value=I[R],N.done=!1,N;return N.value=void 0,N.done=!0,N};return k.next=k}}return {next:T}}function T(){return {value:void 0,done:!0}}return g.prototype=v,r(y,"constructor",{value:v,configurable:!0}),r(v,"constructor",{value:g,configurable:!0}),g.displayName=c(v,s,"GeneratorFunction"),e.isGeneratorFunction=function(I){var P=typeof I=="function"&&I.constructor;return !!P&&(P===g||(P.displayName||P.name)==="GeneratorFunction")},e.mark=function(I){return Object.setPrototypeOf?Object.setPrototypeOf(I,v):(I.__proto__=v,c(I,s,"GeneratorFunction")),I.prototype=Object.create(y),I},e.awrap=function(I){return {__await:I}},S(x.prototype),c(x.prototype,i,function(){return this}),e.AsyncIterator=x,e.async=function(I,P,R,k,N){N===void 0&&(N=Promise);var M=new x(l(I,P,R,k),N);return e.isGeneratorFunction(P)?M:M.next().then(function(L){return L.done?L.value:M.next()})},S(y),c(y,s,"Generator"),c(y,a,function(){return this}),c(y,"toString",function(){return "[object Generator]"}),e.keys=function(I){var P=Object(I),R=[];for(var k in P)R.push(k);return R.reverse(),function N(){for(;R.length;){var M=R.pop();if(M in P)return N.value=M,N.done=!1,N}return N.done=!0,N}},e.values=_,O.prototype={constructor:O,reset:function(P){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!P)for(var R in this)R.charAt(0)==="t"&&n.call(this,R)&&!isNaN(+R.slice(1))&&(this[R]=void 0);},stop:function(){this.done=!0;var P=this.tryEntries[0].completion;if(P.type==="throw")throw P.arg;return this.rval},dispatchException:function(P){if(this.done)throw P;var R=this;function k(K,B){return L.type="throw",L.arg=P,R.next=K,B&&(R.method="next",R.arg=void 0),!!B}for(var N=this.tryEntries.length-1;N>=0;--N){var M=this.tryEntries[N],L=M.completion;if(M.tryLoc==="root")return k("end");if(M.tryLoc<=this.prev){var j=n.call(M,"catchLoc"),F=n.call(M,"finallyLoc");if(j&&F){if(this.prev<M.catchLoc)return k(M.catchLoc,!0);if(this.prev<M.finallyLoc)return k(M.finallyLoc)}else if(j){if(this.prev<M.catchLoc)return k(M.catchLoc,!0)}else {if(!F)throw new Error("try statement without catch or finally");if(this.prev<M.finallyLoc)return k(M.finallyLoc)}}}},abrupt:function(P,R){for(var k=this.tryEntries.length-1;k>=0;--k){var N=this.tryEntries[k];if(N.tryLoc<=this.prev&&n.call(N,"finallyLoc")&&this.prev<N.finallyLoc){var M=N;break}}M&&(P==="break"||P==="continue")&&M.tryLoc<=R&&R<=M.finallyLoc&&(M=null);var L=M?M.completion:{};return L.type=P,L.arg=R,M?(this.method="next",this.next=M.finallyLoc,d):this.complete(L)},complete:function(P,R){if(P.type==="throw")throw P.arg;return P.type==="break"||P.type==="continue"?this.next=P.arg:P.type==="return"?(this.rval=this.arg=P.arg,this.method="return",this.next="end"):P.type==="normal"&&R&&(this.next=R),d},finish:function(P){for(var R=this.tryEntries.length-1;R>=0;--R){var k=this.tryEntries[R];if(k.finallyLoc===P)return this.complete(k.completion,k.afterLoc),w(k),d}},catch:function(P){for(var R=this.tryEntries.length-1;R>=0;--R){var k=this.tryEntries[R];if(k.tryLoc===P){var N=k.completion;if(N.type==="throw"){var M=N.arg;w(k);}return M}}throw new Error("illegal catch attempt")},delegateYield:function(P,R,k){return this.delegate={iterator:_(P),resultName:R,nextLoc:k},this.method==="next"&&(this.arg=void 0),d}},e}function Gp(e,t,n,r,o,a,i){try{var s=e[a](i),c=s.value;}catch(l){n(l);return}s.done?t(c):Promise.resolve(c).then(r,o);}function sa(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(c){Gp(a,r,o,i,s,"next",c);}function s(c){Gp(a,r,o,i,s,"throw",c);}i(void 0);})}}var Ms=q({},Q0__namespace),iz=Ms.version,sz=Ms.render,lz=Ms.unmountComponentAtNode,yu;try{var cz=Number((iz||"").split(".")[0]);cz>=18&&(yu=Ms.createRoot);}catch{}function Up(e){var t=Ms.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&rt(t)==="object"&&(t.usingClientEntryPoint=e);}var ac="__rc_react_root__";function uz(e,t){Up(!0);var n=t[ac]||yu(t);Up(!1),n.render(e),t[ac]=n;}function dz(e,t){sz(e,t);}function fz(e,t){if(yu){uz(e,t);return}dz(e,t);}function mz(e){return Bf.apply(this,arguments)}function Bf(){return Bf=sa(Vn().mark(function e(t){return Vn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[ac])===null||o===void 0||o.unmount(),delete t[ac];}));case 1:case"end":return r.stop()}},e)})),Bf.apply(this,arguments)}function gz(e){lz(e);}function vz(e){return Hf.apply(this,arguments)}function Hf(){return Hf=sa(Vn().mark(function e(t){return Vn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(yu===void 0){r.next=2;break}return r.abrupt("return",mz(t));case 2:gz(t);case 3:case"end":return r.stop()}},e)})),Hf.apply(this,arguments)}function hz(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 Od(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&hz(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function pz(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return Od(t)?t:Od(n)?n:Od(r)?r:null}const Cu="ant-wave-target";function Id(e){return Number.isNaN(e)?0:e}const bz=e=>{const{className:t,target:n,component:r}=e,o=f__namespace.useRef(null),[a,i]=f__namespace.useState(null),[s,c]=f__namespace.useState([]),[l,u]=f__namespace.useState(0),[d,m]=f__namespace.useState(0),[g,v]=f__namespace.useState(0),[h,p]=f__namespace.useState(0),[b,y]=f__namespace.useState(!1),S={left:l,top:d,width:g,height:h,borderRadius:s.map($=>`${$}px`).join(" ")};a&&(S["--wave-color"]=a);function x(){const $=getComputedStyle(n);i(pz(n));const C=$.position==="static",{borderLeftWidth:w,borderTopWidth:O}=$;u(C?n.offsetLeft:Id(-parseFloat(w))),m(C?n.offsetTop:Id(-parseFloat(O))),v(n.offsetWidth),p(n.offsetHeight);const{borderTopLeftRadius:_,borderTopRightRadius:T,borderBottomLeftRadius:I,borderBottomRightRadius:P}=$;c([_,T,P,I].map(R=>Id(parseFloat(R))));}if(f__namespace.useEffect(()=>{if(n){const $=wt(()=>{x(),y(!0);});let C;return typeof ResizeObserver<"u"&&(C=new ResizeObserver(x),C.observe(n)),()=>{wt.cancel($),C==null||C.disconnect();}}},[]),!b)return null;const E=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(Cu));return f__namespace.createElement(go,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:($,C)=>{var w;if(C.deadline||C.propertyName==="opacity"){const O=(w=o.current)===null||w===void 0?void 0:w.parentElement;vz(O).then(()=>{O==null||O.remove();});}return !1}},$=>{let{className:C}=$;return f__namespace.createElement("div",{ref:o,className:V(t,{"wave-quick":E},C),style:S})})},yz=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e==null||e.insertBefore(o,e==null?void 0:e.firstChild),fz(f__namespace.createElement(bz,Object.assign({},t,{target:e})),o);},Cz=yz;function Sz(e,t,n){const{wave:r}=f__namespace.useContext(Xe),[,o,a]=lr(),i=Mn(l=>{const u=e.current;if(r!=null&&r.disabled||!u)return;const d=u.querySelector(`.${Cu}`)||u,{showEffect:m}=r||{};(m||Cz)(d,{className:t,token:o,component:n,event:l,hashId:a});}),s=f__namespace.useRef();return l=>{wt.cancel(s.current),s.current=wt(()=>{i(l);});}}const $z=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=f.useContext(Xe),a=f.useRef(null),i=o("wave"),[,s]=az(i),c=Sz(a,V(i,s),r);if(f.useEffect(()=>{const u=a.current;if(!u||u.nodeType!==1||n)return;const d=m=>{!jg(m.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||c(m);};return u.addEventListener("click",d,!0),()=>{u.removeEventListener("click",d,!0);}},[n]),!f.isValidElement(t))return t??null;const l=To(t)?Kn(t.ref,a):a;return Wn(t,{ref:l})},Ns=$z;var Wo="RC_FORM_INTERNAL_HOOKS",jt=function(){gn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.");},Xa=f__namespace.createContext({getFieldValue:jt,getFieldsValue:jt,getFieldError:jt,getFieldWarning:jt,getFieldsError:jt,isFieldsTouched:jt,isFieldTouched:jt,isFieldValidating:jt,isFieldsValidating:jt,resetFields:jt,setFields:jt,setFieldValue:jt,setFieldsValue:jt,validateFields:jt,submit:jt,getInternalHooks:function(){return jt(),{dispatch:jt,initEntityValue:jt,registerField:jt,useSubscribe:jt,setInitialValues:jt,destroyForm:jt,setCallbacks:jt,registerWatch:jt,getFields:jt,setValidateMessages:jt,setPreserve:jt,getInitialValue:jt}}}),ic=f__namespace.createContext(null);function Wf(e){return e==null?[]:Array.isArray(e)?e:[e]}function wz(e){return e&&!!e._init}function Vo(){return Vo=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},Vo.apply(this,arguments)}function xz(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ss(e,t);}function Vf(e){return Vf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Vf(e)}function ss(e,t){return ss=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},ss(e,t)}function Ez(){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 Nl(e,t,n){return Ez()?Nl=Reflect.construct.bind():Nl=function(o,a,i){var s=[null];s.push.apply(s,a);var c=Function.bind.apply(o,s),l=new c;return i&&ss(l,i.prototype),l},Nl.apply(null,arguments)}function Oz(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Kf(e){var t=typeof Map=="function"?new Map:void 0;return Kf=function(r){if(r===null||!Oz(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 Nl(r,arguments,Vf(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),ss(o,r)},Kf(e)}var Iz=/%[sdj%]/g,Pz=function(){};typeof process<"u"&&process.env;function Gf(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 or(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,a=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var i=e.replace(Iz,function(s){if(s==="%%")return "%";if(o>=a)return s;switch(s){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return "[Circular]"}break;default:return s}});return i}return e}function _z(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function un(e,t){return !!(e==null||t==="array"&&Array.isArray(e)&&!e.length||_z(t)&&typeof e=="string"&&!e)}function Rz(e,t,n){var r=[],o=0,a=e.length;function i(s){r.push.apply(r,s||[]),o++,o===a&&n(r);}e.forEach(function(s){t(s,i);});}function Xp(e,t,n){var r=0,o=e.length;function a(i){if(i&&i.length){n(i);return}var s=r;r=r+1,s<o?t(e[s],a):n([]);}a([]);}function Tz(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[]);}),t}var qp=function(e){xz(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}(Kf(Error));function Mz(e,t,n,r,o){if(t.first){var a=new Promise(function(m,g){var v=function(b){return r(b),b.length?g(new qp(b,Gf(b))):m(o)},h=Tz(e);Xp(h,n,v);});return a.catch(function(m){return m}),a}var i=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),c=s.length,l=0,u=[],d=new Promise(function(m,g){var v=function(p){if(u.push.apply(u,p),l++,l===c)return r(u),u.length?g(new qp(u,Gf(u))):m(o)};s.length||(r(u),m(o)),s.forEach(function(h){var p=e[h];i.indexOf(h)!==-1?Xp(p,n,v):Rz(p,n,v);});});return d.catch(function(m){return m}),d}function Nz(e){return !!(e&&e.message!==void 0)}function kz(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]];}return n}function Yp(e,t){return function(n){var r;return e.fullFields?r=kz(t,e.fullFields):r=t[n.field||e.fullField],Nz(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 Zp(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]=Vo({},e[n],r):e[n]=r;}}return e}var yC=function(t,n,r,o,a,i){t.required&&(!r.hasOwnProperty(t.field)||un(n,i||t.type))&&o.push(or(a.messages.required,t.fullField));},Az=function(t,n,r,o,a){(/^\s+$/.test(n)||n==="")&&o.push(or(a.messages.whitespace,t.fullField));},hl,Lz=function(){if(hl)return hl;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(),a=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),i=new RegExp("^"+n+"$"),s=new RegExp("^"+o+"$"),c=function(x){return x&&x.exact?a:new RegExp("(?:"+t(x)+n+t(x)+")|(?:"+t(x)+o+t(x)+")","g")};c.v4=function(S){return S&&S.exact?i:new RegExp(""+t(S)+n+t(S),"g")},c.v6=function(S){return S&&S.exact?s:new RegExp(""+t(S)+o+t(S),"g")};var l="(?:(?:[a-z]+:)?//)",u="(?:\\S+(?::\\S*)?@)?",d=c.v4().source,m=c.v6().source,g="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",h="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",p="(?::\\d{2,5})?",b='(?:[/?#][^\\s"]*)?',y="(?:"+l+"|www\\.)"+u+"(?:localhost|"+d+"|"+m+"|"+g+v+h+")"+p+b;return hl=new RegExp("(?:^"+y+"$)","i"),hl},Qp={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},ji={integer:function(t){return ji.number(t)&&parseInt(t,10)===t},float:function(t){return ji.number(t)&&!ji.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"&&!ji.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Qp.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Lz())},hex:function(t){return typeof t=="string"&&!!t.match(Qp.hex)}},jz=function(t,n,r,o,a){if(t.required&&n===void 0){yC(t,n,r,o,a);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;i.indexOf(s)>-1?ji[s](n)||o.push(or(a.messages.types[s],t.fullField,t.type)):s&&typeof n!==t.type&&o.push(or(a.messages.types[s],t.fullField,t.type));},zz=function(t,n,r,o,a){var i=typeof t.len=="number",s=typeof t.min=="number",c=typeof t.max=="number",l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=n,d=null,m=typeof n=="number",g=typeof n=="string",v=Array.isArray(n);if(m?d="number":g?d="string":v&&(d="array"),!d)return !1;v&&(u=n.length),g&&(u=n.replace(l,"_").length),i?u!==t.len&&o.push(or(a.messages[d].len,t.fullField,t.len)):s&&!c&&u<t.min?o.push(or(a.messages[d].min,t.fullField,t.min)):c&&!s&&u>t.max?o.push(or(a.messages[d].max,t.fullField,t.max)):s&&c&&(u<t.min||u>t.max)&&o.push(or(a.messages[d].range,t.fullField,t.min,t.max));},pa="enum",Dz=function(t,n,r,o,a){t[pa]=Array.isArray(t[pa])?t[pa]:[],t[pa].indexOf(n)===-1&&o.push(or(a.messages[pa],t.fullField,t[pa].join(", ")));},Fz=function(t,n,r,o,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(or(a.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(n)||o.push(or(a.messages.pattern.mismatch,t.fullField,n,t.pattern));}}},$t={required:yC,whitespace:Az,type:jz,range:zz,enum:Dz,pattern:Fz},Bz=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(un(n,"string")&&!t.required)return r();$t.required(t,n,o,i,a,"string"),un(n,"string")||($t.type(t,n,o,i,a),$t.range(t,n,o,i,a),$t.pattern(t,n,o,i,a),t.whitespace===!0&&$t.whitespace(t,n,o,i,a));}r(i);},Hz=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(un(n)&&!t.required)return r();$t.required(t,n,o,i,a),n!==void 0&&$t.type(t,n,o,i,a);}r(i);},Wz=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),un(n)&&!t.required)return r();$t.required(t,n,o,i,a),n!==void 0&&($t.type(t,n,o,i,a),$t.range(t,n,o,i,a));}r(i);},Vz=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(un(n)&&!t.required)return r();$t.required(t,n,o,i,a),n!==void 0&&$t.type(t,n,o,i,a);}r(i);},Kz=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(un(n)&&!t.required)return r();$t.required(t,n,o,i,a),un(n)||$t.type(t,n,o,i,a);}r(i);},Gz=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(un(n)&&!t.required)return r();$t.required(t,n,o,i,a),n!==void 0&&($t.type(t,n,o,i,a),$t.range(t,n,o,i,a));}r(i);},Uz=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(un(n)&&!t.required)return r();$t.required(t,n,o,i,a),n!==void 0&&($t.type(t,n,o,i,a),$t.range(t,n,o,i,a));}r(i);},Xz=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();$t.required(t,n,o,i,a,"array"),n!=null&&($t.type(t,n,o,i,a),$t.range(t,n,o,i,a));}r(i);},qz=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(un(n)&&!t.required)return r();$t.required(t,n,o,i,a),n!==void 0&&$t.type(t,n,o,i,a);}r(i);},Yz="enum",Zz=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(un(n)&&!t.required)return r();$t.required(t,n,o,i,a),n!==void 0&&$t[Yz](t,n,o,i,a);}r(i);},Qz=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(un(n,"string")&&!t.required)return r();$t.required(t,n,o,i,a),un(n,"string")||$t.pattern(t,n,o,i,a);}r(i);},Jz=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(un(n,"date")&&!t.required)return r();if($t.required(t,n,o,i,a),!un(n,"date")){var c;n instanceof Date?c=n:c=new Date(n),$t.type(t,c,o,i,a),c&&$t.range(t,c.getTime(),o,i,a);}}r(i);},e6=function(t,n,r,o,a){var i=[],s=Array.isArray(n)?"array":typeof n;$t.required(t,n,o,i,a,s),r(i);},Pd=function(t,n,r,o,a){var i=t.type,s=[],c=t.required||!t.required&&o.hasOwnProperty(t.field);if(c){if(un(n,i)&&!t.required)return r();$t.required(t,n,o,s,a,i),un(n,i)||$t.type(t,n,o,s,a);}r(s);},t6=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(un(n)&&!t.required)return r();$t.required(t,n,o,i,a);}r(i);},Wi={string:Bz,method:Hz,number:Wz,boolean:Vz,regexp:Kz,integer:Gz,float:Uz,array:Xz,object:qz,enum:Zz,pattern:Qz,date:Jz,url:Pd,hex:Pd,email:Pd,required:e6,any:t6};function Uf(){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 Xf=Uf(),ks=function(){function e(n){this.rules=null,this._messages=Xf,this.define(n);}var t=e.prototype;return t.define=function(r){var o=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(a){var i=r[a];o.rules[a]=Array.isArray(i)?i:[i];});},t.messages=function(r){return r&&(this._messages=Zp(Uf(),r)),this._messages},t.validate=function(r,o,a){var i=this;o===void 0&&(o={}),a===void 0&&(a=function(){});var s=r,c=o,l=a;if(typeof c=="function"&&(l=c,c={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,s),Promise.resolve(s);function u(h){var p=[],b={};function y(x){if(Array.isArray(x)){var E;p=(E=p).concat.apply(E,x);}else p.push(x);}for(var S=0;S<h.length;S++)y(h[S]);p.length?(b=Gf(p),l(p,b)):l(null,s);}if(c.messages){var d=this.messages();d===Xf&&(d=Uf()),Zp(d,c.messages),c.messages=d;}else c.messages=this.messages();var m={},g=c.keys||Object.keys(this.rules);g.forEach(function(h){var p=i.rules[h],b=s[h];p.forEach(function(y){var S=y;typeof S.transform=="function"&&(s===r&&(s=Vo({},s)),b=s[h]=S.transform(b)),typeof S=="function"?S={validator:S}:S=Vo({},S),S.validator=i.getValidationMethod(S),S.validator&&(S.field=h,S.fullField=S.fullField||h,S.type=i.getType(S),m[h]=m[h]||[],m[h].push({rule:S,value:b,source:s,field:h}));});});var v={};return Mz(m,c,function(h,p){var b=h.rule,y=(b.type==="object"||b.type==="array")&&(typeof b.fields=="object"||typeof b.defaultField=="object");y=y&&(b.required||!b.required&&h.value),b.field=h.field;function S($,C){return Vo({},C,{fullField:b.fullField+"."+$,fullFields:b.fullFields?[].concat(b.fullFields,[$]):[$]})}function x($){$===void 0&&($=[]);var C=Array.isArray($)?$:[$];!c.suppressWarning&&C.length&&e.warning("async-validator:",C),C.length&&b.message!==void 0&&(C=[].concat(b.message));var w=C.map(Yp(b,s));if(c.first&&w.length)return v[b.field]=1,p(w);if(!y)p(w);else {if(b.required&&!h.value)return b.message!==void 0?w=[].concat(b.message).map(Yp(b,s)):c.error&&(w=[c.error(b,or(c.messages.required,b.field))]),p(w);var O={};b.defaultField&&Object.keys(h.value).map(function(I){O[I]=b.defaultField;}),O=Vo({},O,h.rule.fields);var _={};Object.keys(O).forEach(function(I){var P=O[I],R=Array.isArray(P)?P:[P];_[I]=R.map(S.bind(null,I));});var T=new e(_);T.messages(c.messages),h.rule.options&&(h.rule.options.messages=c.messages,h.rule.options.error=c.error),T.validate(h.value,h.rule.options||c,function(I){var P=[];w&&w.length&&P.push.apply(P,w),I&&I.length&&P.push.apply(P,I),p(P.length?P:null);});}}var E;if(b.asyncValidator)E=b.asyncValidator(b,h.value,x,h.source,c);else if(b.validator){try{E=b.validator(b,h.value,x,h.source,c);}catch($){console.error==null||console.error($),c.suppressValidatorError||setTimeout(function(){throw $},0),x($.message);}E===!0?x():E===!1?x(typeof b.message=="function"?b.message(b.fullField||b.field):b.message||(b.fullField||b.field)+" fails"):E instanceof Array?x(E):E instanceof Error&&x(E.message);}E&&E.then&&E.then(function(){return x()},function($){return x($)});},function(h){u(h);},s)},t.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!Wi.hasOwnProperty(r.type))throw new Error(or("Unknown rule type %s",r.type));return r.type||"string"},t.getValidationMethod=function(r){if(typeof r.validator=="function")return r.validator;var o=Object.keys(r),a=o.indexOf("message");return a!==-1&&o.splice(a,1),o.length===1&&o[0]==="required"?Wi.required:Wi[this.getType(r)]||void 0},e}();ks.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Wi[t]=n;};ks.warning=Pz;ks.messages=Xf;ks.validators=Wi;var er="'${name}' is not a valid ${type}",CC={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:er,method:er,array:er,object:er,number:er,date:er,boolean:er,integer:er,float:er,regexp:er,email:er,url:er,hex:er},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}"}},Jp=ks;function n6(e,t){return e.replace(/\$\{\w+\}/g,function(n){var r=n.slice(2,-1);return t[r]})}var eb="CODE_LOGIC_ERROR";function qf(e,t,n,r,o){return Yf.apply(this,arguments)}function Yf(){return Yf=sa(Vn().mark(function e(t,n,r,o,a){var i,s,c,l,u,d,m,g,v;return Vn().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return i=q({},r),delete i.ruleIndex,Jp.warning=function(){},i.validator&&(s=i.validator,i.validator=function(){try{return s.apply(void 0,arguments)}catch(b){return console.error(b),Promise.reject(eb)}}),c=null,i&&i.type==="array"&&i.defaultField&&(c=i.defaultField,delete i.defaultField),l=new Jp(D({},t,[i])),u=Na(CC,o.validateMessages),l.messages(u),d=[],p.prev=10,p.next=13,Promise.resolve(l.validate(D({},t,n),q({},o)));case 13:p.next=18;break;case 15:p.prev=15,p.t0=p.catch(10),p.t0.errors&&(d=p.t0.errors.map(function(b,y){var S=b.message,x=S===eb?u.default:S;return f__namespace.isValidElement(x)?f__namespace.cloneElement(x,{key:"error_".concat(y)}):x}));case 18:if(!(!d.length&&c)){p.next=23;break}return p.next=21,Promise.all(n.map(function(b,y){return qf("".concat(t,".").concat(y),b,c,o,a)}));case 21:return m=p.sent,p.abrupt("return",m.reduce(function(b,y){return [].concat(Re(b),Re(y))},[]));case 23:return g=q(q({},r),{},{name:t,enum:(r.enum||[]).join(", ")},a),v=d.map(function(b){return typeof b=="string"?n6(b,g):b}),p.abrupt("return",v);case 26:case"end":return p.stop()}},e,null,[[10,15]])})),Yf.apply(this,arguments)}function r6(e,t,n,r,o,a){var i=e.join("."),s=n.map(function(u,d){var m=u.validator,g=q(q({},u),{},{ruleIndex:d});return m&&(g.validator=function(v,h,p){var b=!1,y=function(){for(var E=arguments.length,$=new Array(E),C=0;C<E;C++)$[C]=arguments[C];Promise.resolve().then(function(){gn(!b,"Your validator function has already return a promise. `callback` will be ignored."),b||p.apply(void 0,$);});},S=m(v,h,y);b=S&&typeof S.then=="function"&&typeof S.catch=="function",gn(b,"`callback` is deprecated. Please return a promise instead."),b&&S.then(function(){p();}).catch(function(x){p(x||" ");});}),g}).sort(function(u,d){var m=u.warningOnly,g=u.ruleIndex,v=d.warningOnly,h=d.ruleIndex;return !!m==!!v?g-h:m?1:-1}),c;if(o===!0)c=new Promise(function(){var u=sa(Vn().mark(function d(m,g){var v,h,p;return Vn().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:v=0;case 1:if(!(v<s.length)){y.next=12;break}return h=s[v],y.next=5,qf(i,t,h,r,a);case 5:if(p=y.sent,!p.length){y.next=9;break}return g([{errors:p,rule:h}]),y.abrupt("return");case 9:v+=1,y.next=1;break;case 12:m([]);case 13:case"end":return y.stop()}},d)}));return function(d,m){return u.apply(this,arguments)}}());else {var l=s.map(function(u){return qf(i,t,u,r,a).then(function(d){return {errors:d,rule:u}})});c=(o?a6(l):o6(l)).then(function(u){return Promise.reject(u)});}return c.catch(function(u){return u}),c}function o6(e){return Zf.apply(this,arguments)}function Zf(){return Zf=sa(Vn().mark(function e(t){return Vn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(o){var a,i=(a=[]).concat.apply(a,Re(o));return i}));case 1:case"end":return r.stop()}},e)})),Zf.apply(this,arguments)}function a6(e){return Qf.apply(this,arguments)}function Qf(){return Qf=sa(Vn().mark(function e(t){var n;return Vn().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return n=0,o.abrupt("return",new Promise(function(a){t.forEach(function(i){i.then(function(s){s.errors.length&&a([s]),n+=1,n===t.length&&a([]);});});}));case 2:case"end":return o.stop()}},e)})),Qf.apply(this,arguments)}function rn(e){return Wf(e)}function tb(e,t){var n={};return t.forEach(function(r){var o=Mr(e,r);n=Pr(n,r,o);}),n}function Fa(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return SC(t,r,n)})}function SC(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return !e||!t||!n&&e.length!==t.length?!1:t.every(function(r,o){return e[o]===r})}function i6(e,t){if(e===t)return !0;if(!e&&t||e&&!t||!e||!t||rt(e)!=="object"||rt(t)!=="object")return !1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return Re(o).every(function(a){var i=e[a],s=t[a];return typeof i=="function"&&typeof s=="function"?!0:i===s})}function s6(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&rt(t.target)==="object"&&e in t.target?t.target[e]:t}function nb(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],a=t-n;return a>0?[].concat(Re(e.slice(0,n)),[o],Re(e.slice(n,t)),Re(e.slice(t+1,r))):a<0?[].concat(Re(e.slice(0,t)),Re(e.slice(t+1,n+1)),[o],Re(e.slice(n+1,r))):e}var l6=["name"],mr=[];function rb(e,t,n,r,o,a){return typeof e=="function"?e(t,n,"source"in a?{source:a.source}:{}):r!==o}var Kg=function(e){Mo(n,e);var t=No(n);function n(r){var o;if(hn(this,n),o=t.call(this,r),D(Ot(o),"state",{resetCount:0}),D(Ot(o),"cancelRegisterFunc",null),D(Ot(o),"mounted",!1),D(Ot(o),"touched",!1),D(Ot(o),"dirty",!1),D(Ot(o),"validatePromise",void 0),D(Ot(o),"prevValidating",void 0),D(Ot(o),"errors",mr),D(Ot(o),"warnings",mr),D(Ot(o),"cancelRegister",function(){var c=o.props,l=c.preserve,u=c.isListField,d=c.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(u,l,rn(d)),o.cancelRegisterFunc=null;}),D(Ot(o),"getNamePath",function(){var c=o.props,l=c.name,u=c.fieldContext,d=u.prefixName,m=d===void 0?[]:d;return l!==void 0?[].concat(Re(m),Re(l)):[]}),D(Ot(o),"getRules",function(){var c=o.props,l=c.rules,u=l===void 0?[]:l,d=c.fieldContext;return u.map(function(m){return typeof m=="function"?m(d):m})}),D(Ot(o),"refresh",function(){o.mounted&&o.setState(function(c){var l=c.resetCount;return {resetCount:l+1}});}),D(Ot(o),"metaCache",null),D(Ot(o),"triggerMetaEvent",function(c){var l=o.props.onMetaChange;if(l){var u=q(q({},o.getMeta()),{},{destroy:c});Is(o.metaCache,u)||l(u),o.metaCache=u;}else o.metaCache=null;}),D(Ot(o),"onStoreChange",function(c,l,u){var d=o.props,m=d.shouldUpdate,g=d.dependencies,v=g===void 0?[]:g,h=d.onReset,p=u.store,b=o.getNamePath(),y=o.getValue(c),S=o.getValue(p),x=l&&Fa(l,b);switch(u.type==="valueUpdate"&&u.source==="external"&&y!==S&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=mr,o.warnings=mr,o.triggerMetaEvent()),u.type){case"reset":if(!l||x){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=mr,o.warnings=mr,o.triggerMetaEvent(),h==null||h(),o.refresh();return}break;case"remove":{if(m){o.reRender();return}break}case"setField":{var E=u.data;if(x){"touched"in E&&(o.touched=E.touched),"validating"in E&&!("originRCField"in E)&&(o.validatePromise=E.validating?Promise.resolve([]):null),"errors"in E&&(o.errors=E.errors||mr),"warnings"in E&&(o.warnings=E.warnings||mr),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in E&&Fa(l,b,!0)){o.reRender();return}if(m&&!b.length&&rb(m,c,p,y,S,u)){o.reRender();return}break}case"dependenciesUpdate":{var $=v.map(rn);if($.some(function(C){return Fa(u.relatedFields,C)})){o.reRender();return}break}default:if(x||(!v.length||b.length||m)&&rb(m,c,p,y,S,u)){o.reRender();return}break}m===!0&&o.reRender();}),D(Ot(o),"validateRules",function(c){var l=o.getNamePath(),u=o.getValue(),d=c||{},m=d.triggerName,g=d.validateOnly,v=g===void 0?!1:g,h=Promise.resolve().then(sa(Vn().mark(function p(){var b,y,S,x,E,$,C;return Vn().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(o.mounted){O.next=2;break}return O.abrupt("return",[]);case 2:if(b=o.props,y=b.validateFirst,S=y===void 0?!1:y,x=b.messageVariables,E=b.validateDebounce,$=o.getRules(),m&&($=$.filter(function(_){return _}).filter(function(_){var T=_.validateTrigger;if(!T)return !0;var I=Wf(T);return I.includes(m)})),!(E&&m)){O.next=10;break}return O.next=8,new Promise(function(_){setTimeout(_,E);});case 8:if(o.validatePromise===h){O.next=10;break}return O.abrupt("return",[]);case 10:return C=r6(l,u,$,c,S,x),C.catch(function(_){return _}).then(function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:mr;if(o.validatePromise===h){var T;o.validatePromise=null;var I=[],P=[];(T=_.forEach)===null||T===void 0||T.call(_,function(R){var k=R.rule.warningOnly,N=R.errors,M=N===void 0?mr:N;k?P.push.apply(P,Re(M)):I.push.apply(I,Re(M));}),o.errors=I,o.warnings=P,o.triggerMetaEvent(),o.reRender();}}),O.abrupt("return",C);case 13:case"end":return O.stop()}},p)})));return v||(o.validatePromise=h,o.dirty=!0,o.errors=mr,o.warnings=mr,o.triggerMetaEvent(),o.reRender()),h}),D(Ot(o),"isFieldValidating",function(){return !!o.validatePromise}),D(Ot(o),"isFieldTouched",function(){return o.touched}),D(Ot(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return !0;var c=o.props.fieldContext,l=c.getInternalHooks(Wo),u=l.getInitialValue;return u(o.getNamePath())!==void 0}),D(Ot(o),"getErrors",function(){return o.errors}),D(Ot(o),"getWarnings",function(){return o.warnings}),D(Ot(o),"isListField",function(){return o.props.isListField}),D(Ot(o),"isList",function(){return o.props.isList}),D(Ot(o),"isPreserve",function(){return o.props.preserve}),D(Ot(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var c={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return c}),D(Ot(o),"getOnlyChild",function(c){if(typeof c=="function"){var l=o.getMeta();return q(q({},o.getOnlyChild(c(o.getControlled(),l,o.props.fieldContext))),{},{isFunction:!0})}var u=ir(c);return u.length!==1||!f__namespace.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),D(Ot(o),"getValue",function(c){var l=o.props.fieldContext.getFieldsValue,u=o.getNamePath();return Mr(c||l(!0),u)}),D(Ot(o),"getControlled",function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=o.props,u=l.trigger,d=l.validateTrigger,m=l.getValueFromEvent,g=l.normalize,v=l.valuePropName,h=l.getValueProps,p=l.fieldContext,b=d!==void 0?d:p.validateTrigger,y=o.getNamePath(),S=p.getInternalHooks,x=p.getFieldsValue,E=S(Wo),$=E.dispatch,C=o.getValue(),w=h||function(I){return D({},v,I)},O=c[u],_=q(q({},c),w(C));_[u]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var I,P=arguments.length,R=new Array(P),k=0;k<P;k++)R[k]=arguments[k];m?I=m.apply(void 0,R):I=s6.apply(void 0,[v].concat(R)),g&&(I=g(I,C,x(!0))),$({type:"updateValue",namePath:y,value:I}),O&&O.apply(void 0,R);};var T=Wf(b||[]);return T.forEach(function(I){var P=_[I];_[I]=function(){P&&P.apply(void 0,arguments);var R=o.props.rules;R&&R.length&&$({type:"validateField",namePath:y,triggerName:I});};}),_}),r.fieldContext){var a=r.fieldContext.getInternalHooks,i=a(Wo),s=i.initEntityValue;s(Ot(o));}return o}return pn(n,[{key:"componentDidMount",value:function(){var o=this.props,a=o.shouldUpdate,i=o.fieldContext;if(this.mounted=!0,i){var s=i.getInternalHooks,c=s(Wo),l=c.registerField;this.cancelRegisterFunc=l(this);}a===!0&&this.reRender();}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1;}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate();}},{key:"render",value:function(){var o=this.state.resetCount,a=this.props.children,i=this.getOnlyChild(a),s=i.child,c=i.isFunction,l;return c?l=s:f__namespace.isValidElement(s)?l=f__namespace.cloneElement(s,this.getControlled(s.props)):(gn(!s,"`children` of Field is not validate ReactElement."),l=s),f__namespace.createElement(f__namespace.Fragment,{key:o},l)}}]),n}(f__namespace.Component);D(Kg,"contextType",Xa);D(Kg,"defaultProps",{trigger:"onChange",valuePropName:"value"});function $C(e){var t=e.name,n=Ze(e,l6),r=f__namespace.useContext(Xa),o=f__namespace.useContext(ic),a=t!==void 0?rn(t):void 0,i="keep";return n.isListField||(i="_".concat((a||[]).join("_"))),f__namespace.createElement(Kg,Oe({key:i,name:a,isListField:!!o},n,{fieldContext:r}))}function c6(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,a=e.validateTrigger,i=e.isListField,s=f__namespace.useContext(Xa),c=f__namespace.useContext(ic),l=f__namespace.useRef({keys:[],id:0}),u=l.current,d=f__namespace.useMemo(function(){var h=rn(s.prefixName)||[];return [].concat(Re(h),Re(rn(t)))},[s.prefixName,t]),m=f__namespace.useMemo(function(){return q(q({},s),{},{prefixName:d})},[s,d]),g=f__namespace.useMemo(function(){return {getKey:function(p){var b=d.length,y=p[b];return [u.keys[y],p.slice(b+1)]}}},[d]);if(typeof r!="function")return gn(!1,"Form.List only accepts function as children."),null;var v=function(p,b,y){var S=y.source;return S==="internal"?!1:p!==b};return f__namespace.createElement(ic.Provider,{value:g},f__namespace.createElement(Xa.Provider,{value:m},f__namespace.createElement($C,{name:[],shouldUpdate:v,rules:o,validateTrigger:a,initialValue:n,isList:!0,isListField:i??!!c},function(h,p){var b=h.value,y=b===void 0?[]:b,S=h.onChange,x=s.getFieldValue,E=function(){var O=x(d||[]);return O||[]},$={add:function(O,_){var T=E();_>=0&&_<=T.length?(u.keys=[].concat(Re(u.keys.slice(0,_)),[u.id],Re(u.keys.slice(_))),S([].concat(Re(T.slice(0,_)),[O],Re(T.slice(_))))):(u.keys=[].concat(Re(u.keys),[u.id]),S([].concat(Re(T),[O]))),u.id+=1;},remove:function(O){var _=E(),T=new Set(Array.isArray(O)?O:[O]);T.size<=0||(u.keys=u.keys.filter(function(I,P){return !T.has(P)}),S(_.filter(function(I,P){return !T.has(P)})));},move:function(O,_){if(O!==_){var T=E();O<0||O>=T.length||_<0||_>=T.length||(u.keys=nb(u.keys,O,_),S(nb(T,O,_)));}}},C=y||[];return Array.isArray(C)||(C=[]),r(C.map(function(w,O){var _=u.keys[O];return _===void 0&&(u.keys[O]=u.id,_=u.keys[O],u.id+=1),{name:O,key:_,isListField:!0}}),$,p)})))}function u6(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,a){e.forEach(function(i,s){i.catch(function(c){return t=!0,c}).then(function(c){n-=1,r[s]=c,!(n>0)&&(t&&a(r),o(r));});});}):Promise.resolve([])}var wC="__@field_split__";function _d(e){return e.map(function(t){return "".concat(rt(t),":").concat(t)}).join(wC)}var ba=function(){function e(){hn(this,e),D(this,"kvs",new Map);}return pn(e,[{key:"set",value:function(n,r){this.kvs.set(_d(n),r);}},{key:"get",value:function(n){return this.kvs.get(_d(n))}},{key:"update",value:function(n,r){var o=this.get(n),a=r(o);a?this.set(n,a):this.delete(n);}},{key:"delete",value:function(n){this.kvs.delete(_d(n));}},{key:"map",value:function(n){return Re(this.kvs.entries()).map(function(r){var o=J(r,2),a=o[0],i=o[1],s=a.split(wC);return n({key:s.map(function(c){var l=c.match(/^([^:]*):(.*)$/),u=J(l,3),d=u[1],m=u[2];return d==="number"?Number(m):m}),value:i})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,a=r.value;return n[o.join(".")]=a,null}),n}}]),e}(),d6=["name"],f6=pn(function e(t){var n=this;hn(this,e),D(this,"formHooked",!1),D(this,"forceRootUpdate",void 0),D(this,"subscribable",!0),D(this,"store",{}),D(this,"fieldEntities",[]),D(this,"initialValues",{}),D(this,"callbacks",{}),D(this,"validateMessages",null),D(this,"preserve",null),D(this,"lastValidatePromise",null),D(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}}),D(this,"getInternalHooks",function(r){return r===Wo?(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}):(gn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),D(this,"useSubscribe",function(r){n.subscribable=r;}),D(this,"prevWithoutPreserves",null),D(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var a,i=Na(r,n.store);(a=n.prevWithoutPreserves)===null||a===void 0||a.map(function(s){var c=s.key;i=Pr(i,c,Mr(r,c));}),n.prevWithoutPreserves=null,n.updateStore(i);}}),D(this,"destroyForm",function(){var r=new ba;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||r.set(o.getNamePath(),!0);}),n.prevWithoutPreserves=r;}),D(this,"getInitialValue",function(r){var o=Mr(n.initialValues,r);return r.length?Na(o):o}),D(this,"setCallbacks",function(r){n.callbacks=r;}),D(this,"setValidateMessages",function(r){n.validateMessages=r;}),D(this,"setPreserve",function(r){n.preserve=r;}),D(this,"watchList",[]),D(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r});}}),D(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue(),a=n.getFieldsValue(!0);n.watchList.forEach(function(i){i(o,a,r);});}}),D(this,"timeoutId",null),D(this,"warningUnhooked",function(){}),D(this,"updateStore",function(r){n.store=r;}),D(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}),D(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new ba;return n.getFieldEntities(r).forEach(function(a){var i=a.getNamePath();o.set(i,a);}),o}),D(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(a){var i=rn(a);return o.get(i)||{INVALIDATE_NAME_PATH:rn(a)}})}),D(this,"getFieldsValue",function(r,o){n.warningUnhooked();var a,i,s;if(r===!0||Array.isArray(r)?(a=r,i=o):r&&rt(r)==="object"&&(s=r.strict,i=r.filter),a===!0&&!i)return n.store;var c=n.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null),l=[];return c.forEach(function(u){var d,m,g="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var v,h;if((v=(h=u).isList)!==null&&v!==void 0&&v.call(h))return}else if(!a&&(d=(m=u).isListField)!==null&&d!==void 0&&d.call(m))return;if(!i)l.push(g);else {var p="getMeta"in u?u.getMeta():null;i(p)&&l.push(g);}}),tb(n.store,l.map(rn))}),D(this,"getFieldValue",function(r){n.warningUnhooked();var o=rn(r);return Mr(n.store,o)}),D(this,"getFieldsError",function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(a,i){return a&&!("INVALIDATE_NAME_PATH"in a)?{name:a.getNamePath(),errors:a.getErrors(),warnings:a.getWarnings()}:{name:rn(r[i]),errors:[],warnings:[]}})}),D(this,"getFieldError",function(r){n.warningUnhooked();var o=rn(r),a=n.getFieldsError([o])[0];return a.errors}),D(this,"getFieldWarning",function(r){n.warningUnhooked();var o=rn(r),a=n.getFieldsError([o])[0];return a.warnings}),D(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];var i=o[0],s=o[1],c,l=!1;o.length===0?c=null:o.length===1?Array.isArray(i)?(c=i.map(rn),l=!1):(c=null,l=i):(c=i.map(rn),l=s);var u=n.getFieldEntities(!0),d=function(p){return p.isFieldTouched()};if(!c)return l?u.every(d):u.some(d);var m=new ba;c.forEach(function(h){m.set(h,[]);}),u.forEach(function(h){var p=h.getNamePath();c.forEach(function(b){b.every(function(y,S){return p[S]===y})&&m.update(b,function(y){return [].concat(Re(y),[h])});});});var g=function(p){return p.some(d)},v=m.map(function(h){var p=h.value;return p});return l?v.every(g):v.some(g)}),D(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),D(this,"isFieldsValidating",function(r){n.warningUnhooked();var o=n.getFieldEntities();if(!r)return o.some(function(i){return i.isFieldValidating()});var a=r.map(rn);return o.some(function(i){var s=i.getNamePath();return Fa(a,s)&&i.isFieldValidating()})}),D(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),D(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new ba,a=n.getFieldEntities(!0);a.forEach(function(c){var l=c.props.initialValue,u=c.getNamePath();if(l!==void 0){var d=o.get(u)||new Set;d.add({entity:c,value:l}),o.set(u,d);}});var i=function(l){l.forEach(function(u){var d=u.props.initialValue;if(d!==void 0){var m=u.getNamePath(),g=n.getInitialValue(m);if(g!==void 0)gn(!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)gn(!1,"Multiple Field with path '".concat(m.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(v){var h=n.getFieldValue(m),p=u.isListField();!p&&(!r.skipExist||h===void 0)&&n.updateStore(Pr(n.store,m,Re(v)[0].value));}}}});},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(c){var l=o.get(c);if(l){var u;(u=s).push.apply(u,Re(Re(l).map(function(d){return d.entity})));}})):s=a,i(s);}),D(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(Na(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var a=r.map(rn);a.forEach(function(i){var s=n.getInitialValue(i);n.updateStore(Pr(n.store,i,s));}),n.resetWithFieldInitialValue({namePathList:a}),n.notifyObservers(o,a,{type:"reset"}),n.notifyWatch(a);}),D(this,"setFields",function(r){n.warningUnhooked();var o=n.store,a=[];r.forEach(function(i){var s=i.name,c=Ze(i,d6),l=rn(s);a.push(l),"value"in c&&n.updateStore(Pr(n.store,l,c.value)),n.notifyObservers(o,[l],{type:"setField",data:i});}),n.notifyWatch(a);}),D(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(a){var i=a.getNamePath(),s=a.getMeta(),c=q(q({},s),{},{name:i,value:n.getFieldValue(i)});return Object.defineProperty(c,"originRCField",{value:!0}),c});return o}),D(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var a=r.getNamePath(),i=Mr(n.store,a);i===void 0&&n.updateStore(Pr(n.store,a,o));}}),D(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o??!0}),D(this,"registerField",function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var a=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(a,[r.getNamePath()],{type:"valueUpdate",source:"internal"});}return function(i,s){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(d){return d!==r}),!n.isMergedPreserve(s)&&(!i||c.length>1)){var l=i?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==l&&n.fieldEntities.every(function(d){return !SC(d.getNamePath(),o)})){var u=n.store;n.updateStore(Pr(u,o,l,!0)),n.notifyObservers(u,[o],{type:"remove"}),n.triggerDependenciesUpdate(u,o);}}n.notifyWatch([o]);}}),D(this,"dispatch",function(r){switch(r.type){case"updateValue":{var o=r.namePath,a=r.value;n.updateValue(o,a);break}case"validateField":{var i=r.namePath,s=r.triggerName;n.validateFields([i],{triggerName:s});break}}}),D(this,"notifyObservers",function(r,o,a){if(n.subscribable){var i=q(q({},a),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var c=s.onStoreChange;c(r,o,i);});}else n.forceRootUpdate();}),D(this,"triggerDependenciesUpdate",function(r,o){var a=n.getDependencyChildrenFields(o);return a.length&&n.validateFields(a),n.notifyObservers(r,a,{type:"dependenciesUpdate",relatedFields:[o].concat(Re(a))}),a}),D(this,"updateValue",function(r,o){var a=rn(r),i=n.store;n.updateStore(Pr(n.store,a,o)),n.notifyObservers(i,[a],{type:"valueUpdate",source:"internal"}),n.notifyWatch([a]);var s=n.triggerDependenciesUpdate(i,a),c=n.callbacks.onValuesChange;if(c){var l=tb(n.store,[a]);c(l,n.getFieldsValue());}n.triggerOnFieldsChange([a].concat(Re(s)));}),D(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var a=Na(n.store,r);n.updateStore(a);}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch();}),D(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o}]);}),D(this,"getDependencyChildrenFields",function(r){var o=new Set,a=[],i=new ba;n.getFieldEntities().forEach(function(c){var l=c.props.dependencies;(l||[]).forEach(function(u){var d=rn(u);i.update(d,function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return m.add(c),m});});});var s=function c(l){var u=i.get(l)||new Set;u.forEach(function(d){if(!o.has(d)){o.add(d);var m=d.getNamePath();d.isFieldDirty()&&m.length&&(a.push(m),c(m));}});};return s(r),a}),D(this,"triggerOnFieldsChange",function(r,o){var a=n.callbacks.onFieldsChange;if(a){var i=n.getFields();if(o){var s=new ba;o.forEach(function(l){var u=l.name,d=l.errors;s.set(u,d);}),i.forEach(function(l){l.errors=s.get(l.name)||l.errors;});}var c=i.filter(function(l){var u=l.name;return Fa(r,u)});c.length&&a(c,i);}}),D(this,"validateFields",function(r,o){var a;n.warningUnhooked();var i,s;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(i=r,s=o):s=r;var c=!!i,l=c?i.map(rn):[],u=[],d=String(Date.now()),m=new Set,g=(a=s)===null||a===void 0?void 0:a.recursive;n.getFieldEntities(!0).forEach(function(b){if(c||l.push(b.getNamePath()),!(!b.props.rules||!b.props.rules.length)){var y=b.getNamePath();if(m.add(y.join(d)),!c||Fa(l,y,g)){var S=b.validateRules(q({validateMessages:q(q({},CC),n.validateMessages)},s));u.push(S.then(function(){return {name:y,errors:[],warnings:[]}}).catch(function(x){var E,$=[],C=[];return (E=x.forEach)===null||E===void 0||E.call(x,function(w){var O=w.rule.warningOnly,_=w.errors;O?C.push.apply(C,Re(_)):$.push.apply($,Re(_));}),$.length?Promise.reject({name:y,errors:$,warnings:C}):{name:y,errors:$,warnings:C}}));}}});var v=u6(u);n.lastValidatePromise=v,v.catch(function(b){return b}).then(function(b){var y=b.map(function(S){var x=S.name;return x});n.notifyObservers(n.store,y,{type:"validateFinish"}),n.triggerOnFieldsChange(y,b);});var h=v.then(function(){return n.lastValidatePromise===v?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(b){var y=b.filter(function(S){return S&&S.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:y,outOfDate:n.lastValidatePromise!==v})});h.catch(function(b){return b});var p=l.filter(function(b){return m.has(b.join(d))});return n.triggerOnFieldsChange(p),h}),D(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r);}catch(a){console.error(a);}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r);});}),this.forceRootUpdate=t;});function xC(e){var t=f__namespace.useRef(),n=f__namespace.useState({}),r=J(n,2),o=r[1];if(!t.current)if(e)t.current=e;else {var a=function(){o({});},i=new f6(a);t.current=i.getForm();}return [t.current]}var Jf=f__namespace.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),m6=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,a=t.children,i=f__namespace.useContext(Jf),s=f__namespace.useRef({});return f__namespace.createElement(Jf.Provider,{value:q(q({},i),{},{validateMessages:q(q({},i.validateMessages),n),triggerFormChange:function(l,u){r&&r(l,{changedFields:u,forms:s.current}),i.triggerFormChange(l,u);},triggerFormFinish:function(l,u){o&&o(l,{values:u,forms:s.current}),i.triggerFormFinish(l,u);},registerForm:function(l,u){l&&(s.current=q(q({},s.current),{},D({},l,u))),i.registerForm(l,u);},unregisterForm:function(l){var u=q({},s.current);delete u[l],s.current=u,i.unregisterForm(l);}})},a)},g6=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],v6=function(t,n){var r=t.name,o=t.initialValues,a=t.fields,i=t.form,s=t.preserve,c=t.children,l=t.component,u=l===void 0?"form":l,d=t.validateMessages,m=t.validateTrigger,g=m===void 0?"onChange":m,v=t.onValuesChange,h=t.onFieldsChange,p=t.onFinish,b=t.onFinishFailed,y=Ze(t,g6),S=f__namespace.useContext(Jf),x=xC(i),E=J(x,1),$=E[0],C=$.getInternalHooks(Wo),w=C.useSubscribe,O=C.setInitialValues,_=C.setCallbacks,T=C.setValidateMessages,I=C.setPreserve,P=C.destroyForm;f__namespace.useImperativeHandle(n,function(){return $}),f__namespace.useEffect(function(){return S.registerForm(r,$),function(){S.unregisterForm(r);}},[S,$,r]),T(q(q({},S.validateMessages),d)),_({onValuesChange:v,onFieldsChange:function(B){if(S.triggerFormChange(r,B),h){for(var W=arguments.length,H=new Array(W>1?W-1:0),Y=1;Y<W;Y++)H[Y-1]=arguments[Y];h.apply(void 0,[B].concat(H));}},onFinish:function(B){S.triggerFormFinish(r,B),p&&p(B);},onFinishFailed:b}),I(s);var R=f__namespace.useRef(null);O(o,!R.current),R.current||(R.current=!0),f__namespace.useEffect(function(){return P},[]);var k,N=typeof c=="function";if(N){var M=$.getFieldsValue(!0);k=c(M,$);}else k=c;w(!N);var L=f__namespace.useRef();f__namespace.useEffect(function(){i6(L.current||[],a||[])||$.setFields(a||[]),L.current=a;},[a,$]);var j=f__namespace.useMemo(function(){return q(q({},$),{},{validateTrigger:g})},[$,g]),F=f__namespace.createElement(ic.Provider,{value:null},f__namespace.createElement(Xa.Provider,{value:j},k));return u===!1?F:f__namespace.createElement(u,Oe({},y,{onSubmit:function(B){B.preventDefault(),B.stopPropagation(),$.submit();},onReset:function(B){var W;B.preventDefault(),$.resetFields(),(W=y.onReset)===null||W===void 0||W.call(y,B);}}),F)};function ob(e){try{return JSON.stringify(e)}catch{return Math.random()}}function h6(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=r===void 0?[]:r,a=t[1],i=a===void 0?{}:a,s=wz(i)?{form:i}:i,c=s.form,l=f.useState(),u=J(l,2),d=u[0],m=u[1],g=f.useMemo(function(){return ob(d)},[d]),v=f.useRef(g);v.current=g;var h=f.useContext(Xa),p=c||h,b=p&&p._init,y=rn(o),S=f.useRef(y);return S.current=y,f.useEffect(function(){if(b){var x=p.getFieldsValue,E=p.getInternalHooks,$=E(Wo),C=$.registerWatch,w=C(function(_,T){var I=Mr(s.preserve?T:_,S.current),P=ob(I);v.current!==P&&(v.current=P,m(I));}),O=Mr(s.preserve?x(!0):x(),S.current);return d!==O&&m(O),w}},[b]),d}var p6=f__namespace.forwardRef(v6),As=p6;As.FormProvider=m6;As.Field=$C;As.List=c6;As.useForm=xC;As.useWatch=h6;function An(e,t){var n=q({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r];}),n}const br=f__namespace.createContext({}),ls=e=>{let{children:t,status:n,override:r}=e;const o=f.useContext(br),a=f.useMemo(()=>{const i=Object.assign({},o);return r&&delete i.isFormItemInput,n&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[n,r,o]);return f__namespace.createElement(br.Provider,{value:a},t)},b6=f.createContext(null),EC=b6,y6=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return [{[`${t}-group`]:Object.assign(Object.assign({},Nt(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},Nt(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({},Nt(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},Jo(e))},[`${t}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.checkboxSize/14*5,height:e.checkboxSize/14*8,border:`${e.lineWidthBold}px solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`
        ${n}:not(${n}-disabled),
        ${t}:not(${t}-disabled)
      `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`
        ${n}-checked:not(${n}-disabled),
        ${t}-checked:not(${t}-disabled)
      `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:e.fontSizeLG/2,height:e.fontSizeLG/2,backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function C6(e,t){const n=gt(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return [y6(n)]}const OC=Dt("Checkbox",(e,t)=>{let{prefixCls:n}=t;return [C6(n,e)]});var S6=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 $6=(e,t)=>{var n;const{prefixCls:r,className:o,rootClassName:a,children:i,indeterminate:s=!1,style:c,onMouseEnter:l,onMouseLeave:u,skipGroup:d=!1,disabled:m}=e,g=S6(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:v,direction:h,checkbox:p}=f__namespace.useContext(Xe),b=f__namespace.useContext(EC),{isFormItemInput:y}=f__namespace.useContext(br),S=f__namespace.useContext(Zr),x=(n=(b==null?void 0:b.disabled)||m)!==null&&n!==void 0?n:S,E=f__namespace.useRef(g.value);f__namespace.useEffect(()=>{b==null||b.registerValue(g.value);},[]),f__namespace.useEffect(()=>{if(!d)return g.value!==E.current&&(b==null||b.cancelValue(E.current),b==null||b.registerValue(g.value),E.current=g.value),()=>b==null?void 0:b.cancelValue(g.value)},[g.value]);const $=v("checkbox",r),[C,w]=OC($),O=Object.assign({},g);b&&!d&&(O.onChange=function(){g.onChange&&g.onChange.apply(g,arguments),b.toggleOption&&b.toggleOption({label:i,value:g.value});},O.name=b.name,O.checked=b.value.includes(g.value));const _=V(`${$}-wrapper`,{[`${$}-rtl`]:h==="rtl",[`${$}-wrapper-checked`]:O.checked,[`${$}-wrapper-disabled`]:x,[`${$}-wrapper-in-form-item`]:y},p==null?void 0:p.className,o,a,w),T=V({[`${$}-indeterminate`]:s},Cu,w),I=s?"mixed":void 0;return C(f__namespace.createElement(Ns,{component:"Checkbox",disabled:x},f__namespace.createElement("label",{className:_,style:Object.assign(Object.assign({},p==null?void 0:p.style),c),onMouseEnter:l,onMouseLeave:u},f__namespace.createElement(bC,Object.assign({"aria-checked":I},O,{prefixCls:$,className:T,disabled:x,ref:t})),i!==void 0&&f__namespace.createElement("span",null,i))))},w6=f__namespace.forwardRef($6),IC=w6;var x6=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 E6=(e,t)=>{const{defaultValue:n,children:r,options:o=[],prefixCls:a,className:i,rootClassName:s,style:c,onChange:l}=e,u=x6(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:d,direction:m}=f__namespace.useContext(Xe),[g,v]=f__namespace.useState(u.value||n||[]),[h,p]=f__namespace.useState([]);f__namespace.useEffect(()=>{"value"in u&&v(u.value||[]);},[u.value]);const b=f__namespace.useMemo(()=>o.map(P=>typeof P=="string"||typeof P=="number"?{label:P,value:P}:P),[o]),y=P=>{p(R=>R.filter(k=>k!==P));},S=P=>{p(R=>[].concat(Re(R),[P]));},x=P=>{const R=g.indexOf(P.value),k=Re(g);R===-1?k.push(P.value):k.splice(R,1),"value"in u||v(k),l==null||l(k.filter(N=>h.includes(N)).sort((N,M)=>{const L=b.findIndex(F=>F.value===N),j=b.findIndex(F=>F.value===M);return L-j}));},E=d("checkbox",a),$=`${E}-group`,[C,w]=OC(E),O=An(u,["value","disabled"]),_=o.length?b.map(P=>f__namespace.createElement(IC,{prefixCls:E,key:P.value.toString(),disabled:"disabled"in P?P.disabled:u.disabled,value:P.value,checked:g.includes(P.value),onChange:P.onChange,className:`${$}-item`,style:P.style,title:P.title,id:P.id},P.label)):r,T={toggleOption:x,value:g,disabled:u.disabled,name:u.name,registerValue:S,cancelValue:y},I=V($,{[`${$}-rtl`]:m==="rtl"},i,s,w);return C(f__namespace.createElement("div",Object.assign({className:I,style:c},O,{ref:t}),f__namespace.createElement(EC.Provider,{value:T},_)))},O6=f__namespace.forwardRef(E6),I6=f__namespace.memo(O6),Gg=IC;Gg.Group=I6;Gg.__ANT_CHECKBOX=!0;const Su=Gg;var P6={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 _6=P6;function R6(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function T6(e,t){gn(e,"[@ant-design/icons] ".concat(t));}function ab(e){return rt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(rt(e.icon)==="object"||typeof e.icon=="function")}function ib(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[R6(n)]=r;}return t},{})}function em(e,t,n){return n?f.createElement(e.tag,q(q({key:t},ib(e.attrs)),n),(e.children||[]).map(function(r,o){return em(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):f.createElement(e.tag,q({key:t},ib(e.attrs)),(e.children||[]).map(function(r,o){return em(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function PC(e){return lo(e)[0]}function _C(e){return e?Array.isArray(e)?e:[e]:[]}var M6=`
.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);
  }
}
`,N6=function(t){var n=f.useContext(xg),r=n.csp,o=n.prefixCls,a=M6;o&&(a=a.replace(/anticon/g,o)),f.useEffect(function(){var i=t.current,s=nc(i);Ka(a,"@ant-design-icons",{prepend:!0,csp:r,attachTo:s});},[]);},k6=["icon","className","onClick","style","primaryColor","secondaryColor"],Vi={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function A6(e){var t=e.primaryColor,n=e.secondaryColor;Vi.primaryColor=t,Vi.secondaryColor=n||PC(t),Vi.calculated=!!n;}function L6(){return q({},Vi)}var $u=function(t){var n=t.icon,r=t.className,o=t.onClick,a=t.style,i=t.primaryColor,s=t.secondaryColor,c=Ze(t,k6),l=f__namespace.useRef(),u=Vi;if(i&&(u={primaryColor:i,secondaryColor:s||PC(i)}),N6(l),T6(ab(n),"icon should be icon definiton, but got ".concat(n)),!ab(n))return null;var d=n;return d&&typeof d.icon=="function"&&(d=q(q({},d),{},{icon:d.icon(u.primaryColor,u.secondaryColor)})),em(d.icon,"svg-".concat(d.name),q(q({className:r,onClick:o,style:a,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:l}))};$u.displayName="IconReact";$u.getTwoToneColors=L6;$u.setTwoToneColors=A6;const Ug=$u;function RC(e){var t=_C(e),n=J(t,2),r=n[0],o=n[1];return Ug.setTwoToneColors({primaryColor:r,secondaryColor:o})}function j6(){var e=Ug.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var z6=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];RC(eL.primary);var wu=f__namespace.forwardRef(function(e,t){var n,r=e.className,o=e.icon,a=e.spin,i=e.rotate,s=e.tabIndex,c=e.onClick,l=e.twoToneColor,u=Ze(e,z6),d=f__namespace.useContext(xg),m=d.prefixCls,g=m===void 0?"anticon":m,v=d.rootClassName,h=V(v,g,(n={},D(n,"".concat(g,"-").concat(o.name),!!o.name),D(n,"".concat(g,"-spin"),!!a||o.name==="loading"),n),r),p=s;p===void 0&&c&&(p=-1);var b=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,y=_C(l),S=J(y,2),x=S[0],E=S[1];return f__namespace.createElement("span",Oe({role:"img","aria-label":o.name},u,{ref:t,tabIndex:p,onClick:c,className:h}),f__namespace.createElement(Ug,{icon:o,primaryColor:x,secondaryColor:E,style:b}))});wu.displayName="AntdIcon";wu.getTwoToneColor=j6;wu.setTwoToneColor=RC;const En=wu;var D6=function(t,n){return f__namespace.createElement(En,Oe({},t,{ref:n,icon:_6}))};const TC=f__namespace.forwardRef(D6),qa=e=>e?typeof e=="function"?e():e:null,F6=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,popoverPadding:a,boxShadowSecondary:i,colorTextHeading:s,borderRadiusLG:c,zIndexPopup:l,marginXS:u,colorBgElevated:d,popoverBg:m}=e;return [{[t]:Object.assign(Object.assign({},Nt(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:l,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":d,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:m,backgroundClip:"padding-box",borderRadius:c,boxShadow:i,padding:a},[`${t}-title`]:{minWidth:r,marginBottom:u,color:s,fontWeight:o},[`${t}-inner-content`]:{color:n}})},Dg(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},B6=e=>{const{componentCls:t}=e;return {[t]:os.map(n=>{const r=e[`${n}6`];return {[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},H6=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorSplit:o,paddingSM:a,controlHeight:i,fontSize:s,lineHeight:c,padding:l}=e,u=i-Math.round(s*c),d=u/2,m=u/2-n,g=l;return {[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${d}px ${g}px ${m}px`,borderBottom:`${n}px ${r} ${o}`},[`${t}-inner-content`]:{padding:`${a}px ${g}px`}}}},MC=Dt("Popover",e=>{const{colorBgElevated:t,colorText:n,wireframe:r}=e,o=gt(e,{popoverPadding:12,popoverBg:t,popoverColor:n});return [F6(o),B6(o),r&&H6(o),pu(o,"zoom-big")]},e=>({width:177,minWidth:177,titleMinWidth:177,zIndexPopup:e.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var W6=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 V6=(e,t,n)=>{if(!(!t&&!n))return f__namespace.createElement(f__namespace.Fragment,null,t&&f__namespace.createElement("div",{className:`${e}-title`},qa(t)),f__namespace.createElement("div",{className:`${e}-inner-content`},qa(n)))},K6=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:a="top",title:i,content:s,children:c}=e;return f__namespace.createElement("div",{className:V(t,n,`${n}-pure`,`${n}-placement-${a}`,r),style:o},f__namespace.createElement("div",{className:`${n}-arrow`}),f__namespace.createElement(Lg,Object.assign({},e,{className:t,prefixCls:n}),c||V6(n,i,s)))},G6=e=>{const{prefixCls:t}=e,n=W6(e,["prefixCls"]),{getPrefixCls:r}=f__namespace.useContext(Xe),o=r("popover",t),[a,i]=MC(o);return a(f__namespace.createElement(K6,Object.assign({},n,{prefixCls:o,hashId:i})))},NC=G6;var U6=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 X6=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`},qa(t)),f__namespace.createElement("div",{className:`${r}-inner-content`},qa(n)))},kC=f__namespace.forwardRef((e,t)=>{const{prefixCls:n,title:r,content:o,overlayClassName:a,placement:i="top",trigger:s="hover",mouseEnterDelay:c=.1,mouseLeaveDelay:l=.1,overlayStyle:u={}}=e,d=U6(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:m}=f__namespace.useContext(Xe),g=m("popover",n),[v,h]=MC(g),p=m(),b=V(a,h);return v(f__namespace.createElement(Ts,Object.assign({placement:i,trigger:s,mouseEnterDelay:c,mouseLeaveDelay:l,overlayStyle:u},d,{prefixCls:g,overlayClassName:b,ref:t,overlay:r||o?f__namespace.createElement(X6,{prefixCls:g,title:r,content:o}):null,transitionName:vu(p,"zoom-big",d.transitionName),"data-popover-inject":!0})))});kC._InternalPanelDoNotUseOrYouWillBeFired=NC;const xu=kC;var q6=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const AC=f__namespace.createContext(void 0),Y6=e=>{const{getPrefixCls:t,direction:n}=f__namespace.useContext(Xe),{prefixCls:r,size:o,className:a}=e,i=q6(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,c]=lr();let l="";switch(o){case"large":l="lg";break;case"small":l="sm";break}const u=V(s,{[`${s}-${l}`]:l,[`${s}-rtl`]:n==="rtl"},a,c);return f__namespace.createElement(AC.Provider,{value:o},f__namespace.createElement("div",Object.assign({},i,{className:u})))},Z6=Y6,sb=/^[\u4e00-\u9fa5]{2}$/,tm=sb.test.bind(sb);function LC(e){return e==="danger"?{danger:!0}:{type:e}}function lb(e){return typeof e=="string"}function Rd(e){return e==="text"||e==="link"}function Q6(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&lb(e.type)&&tm(e.props.children)?Wn(e,{children:e.props.children.split("").join(n)}):lb(e)?tm(e)?f.createElement("span",null,e.split("").join(n)):f.createElement("span",null,e):uC(e)?f.createElement("span",null,e):e}function J6(e,t){let n=!1;const r=[];return f.Children.forEach(e,o=>{const a=typeof o,i=a==="string"||a==="number";if(n&&i){const s=r.length-1,c=r[s];r[s]=`${c}${o}`;}else r.push(o);n=i;}),f.Children.map(r,o=>Q6(o,t))}const eD=f.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:a}=e,i=V(`${a}-icon`,n);return f.createElement("span",{ref:t,className:i,style:r},o)}),jC=eD;var tD={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 nD=tD;var rD=function(t,n){return f__namespace.createElement(En,Oe({},t,{ref:n,icon:nD}))};const Xg=f__namespace.forwardRef(rD),cb=f.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:o,iconClassName:a}=e;const i=V(`${n}-loading-icon`,r);return f.createElement(jC,{prefixCls:n,className:i,style:o,ref:t},f.createElement(Xg,{className:a}))}),Td=()=>({width:0,opacity:0,transform:"scale(0)"}),Md=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),oD=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:a}=e,i=!!n;return r?f.createElement(cb,{prefixCls:t,className:o,style:a}):f.createElement(go,{visible:i,motionName:`${t}-loading-icon-motion`,motionLeave:i,removeOnLeave:!0,onAppearStart:Td,onAppearActive:Md,onEnterStart:Td,onEnterActive:Md,onLeaveStart:Md,onLeaveActive:Td},(s,c)=>{let{className:l,style:u}=s;return f.createElement(cb,{prefixCls:t,className:o,style:Object.assign(Object.assign({},a),u),ref:c,iconClassName:l})})},aD=oD,ub=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),iD=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:a}=e;return {[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-r,[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n          &:focus,\n          &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},ub(`${t}-primary`,o),ub(`${t}-danger`,a)]}},sD=iD,lD=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return {[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:0},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},[`&:not(${t}-icon-only) > ${t}-icon`]:{[`&${t}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},ea(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&-icon-only${t}-compact-item`]:{flex:"none"},[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:e.lineWidth,height:`calc(100% + ${e.lineWidth*2}px)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:`calc(100% + ${e.lineWidth*2}px)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},uo=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),cD=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),uD=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),dD=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),cs=(e,t,n,r,o,a,i,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,backgroundColor:t,borderColor:r||void 0,boxShadow:"none"},uo(e,Object.assign({backgroundColor:t},i),Object.assign({backgroundColor:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:a||void 0}})}),qg=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},dD(e))}),zC=e=>Object.assign({},qg(e)),sc=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),DC=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},zC(e)),{backgroundColor:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),uo(e.componentCls,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),cs(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},uo(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),cs(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),qg(e))}),fD=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},zC(e)),{color:e.primaryColor,backgroundColor:e.colorPrimary,boxShadow:e.primaryShadow}),uo(e.componentCls,{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),cs(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({backgroundColor:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},uo(e.componentCls,{backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),cs(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),qg(e))}),mD=e=>Object.assign(Object.assign({},DC(e)),{borderStyle:"dashed"}),gD=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},uo(e.componentCls,{color:e.colorLinkHover,backgroundColor:e.linkHoverBg},{color:e.colorLinkActive})),sc(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},uo(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),sc(e))}),vD=e=>Object.assign(Object.assign(Object.assign({},uo(e.componentCls,{color:e.colorText,backgroundColor:e.textHoverBg},{color:e.colorText,backgroundColor:e.colorBgTextActive})),sc(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},sc(e)),uo(e.componentCls,{color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),hD=e=>{const{componentCls:t}=e;return {[`${t}-default`]:DC(e),[`${t}-primary`]:fD(e),[`${t}-dashed`]:mD(e),[`${t}-link`]:gD(e),[`${t}-text`]:vD(e),[`${t}-ghost`]:cs(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},Yg=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,lineHeight:a,lineWidth:i,borderRadius:s,buttonPaddingHorizontal:c,iconCls:l}=e,u=Math.max(0,(r-o*a)/2-i),d=`${n}-icon-only`;return [{[`${n}${t}`]:{fontSize:o,height:r,padding:`${u}px ${c}px`,borderRadius:s,[`&${d}`]:{width:r,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},[l]:{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}`]:cD(e)},{[`${n}${n}-round${t}`]:uD(e)}]},pD=e=>Yg(gt(e,{fontSize:e.contentFontSize})),bD=e=>{const t=gt(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Yg(t,`${e.componentCls}-sm`)},yD=e=>{const t=gt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Yg(t,`${e.componentCls}-lg`)},CD=e=>{const{componentCls:t}=e;return {[t]:{[`&${t}-block`]:{width:"100%"}}}},FC=e=>{const{paddingInline:t,onlyIconSize:n}=e;return gt(e,{buttonPaddingHorizontal:t,buttonIconOnlyFontSize:n})},BC=e=>({fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,contentFontSize:e.fontSize,contentFontSizeSM:e.fontSize,contentFontSizeLG:e.fontSizeLG}),SD=Dt("Button",e=>{const t=FC(e);return [lD(t),bD(t),pD(t),yD(t),CD(t),hD(t),sD(t)]},BC);function $D(e,t,n){const{focusElCls:r,focus:o,borderElCls:a}=n,i=a?"> *":"",s=["hover",o?"focus":null,"active"].filter(Boolean).map(c=>`&:${c} ${i}`).join(",");return {[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${i}`]:{zIndex:0}})}}function wD(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 Eu(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({},$D(e,r,t)),wD(n,r,t))}}function xD(e,t){return {[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function ED(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 OD(e){const t=`${e.componentCls}-compact-vertical`;return {[t]:Object.assign(Object.assign({},xD(e,t)),ED(e.componentCls,t))}}const ID=Mg(["Button","compact"],e=>{const t=FC(e);return [Eu(t),OD(t)]},BC);var PD=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 _D(e){if(typeof e=="object"&&e){let t=e==null?void 0:e.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return {loading:!!e,delay:0}}const RD=(e,t)=>{var n,r;const{loading:o=!1,prefixCls:a,type:i="default",danger:s,shape:c="default",size:l,styles:u,disabled:d,className:m,rootClassName:g,children:v,icon:h,ghost:p=!1,block:b=!1,htmlType:y="button",classNames:S,style:x={}}=e,E=PD(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:$,autoInsertSpaceInButton:C,direction:w,button:O}=f.useContext(Xe),_=$("btn",a),[T,I]=SD(_),P=f.useContext(Zr),R=d??P,k=f.useContext(AC),N=f.useMemo(()=>_D(o),[o]),[M,L]=f.useState(N.loading),[j,F]=f.useState(!1),B=Kn(t,f.createRef()),W=f.Children.count(v)===1&&!h&&!Rd(i);f.useEffect(()=>{let ve=null;N.delay>0?ve=setTimeout(()=>{ve=null,L(!0);},N.delay):L(N.loading);function ge(){ve&&(clearTimeout(ve),ve=null);}return ge},[N]),f.useEffect(()=>{if(!B||!B.current||C===!1)return;const ve=B.current.textContent;W&&tm(ve)?j||F(!0):j&&F(!1);},[B]);const H=ve=>{const{onClick:ge}=e;if(M||R){ve.preventDefault();return}ge==null||ge(ve);},Y=C!==!1,{compactSize:U,compactItemClassnames:X}=bi(_,w),G={large:"lg",small:"sm",middle:void 0},ee=Xn(ve=>{var ge,ke;return (ke=(ge=l??U)!==null&&ge!==void 0?ge:k)!==null&&ke!==void 0?ke:ve}),te=ee&&G[ee]||"",ie=M?"loading":h,le=An(E,["navigate"]),Q=V(_,I,{[`${_}-${c}`]:c!=="default"&&c,[`${_}-${i}`]:i,[`${_}-${te}`]:te,[`${_}-icon-only`]:!v&&v!==0&&!!ie,[`${_}-background-ghost`]:p&&!Rd(i),[`${_}-loading`]:M,[`${_}-two-chinese-chars`]:j&&Y&&!M,[`${_}-block`]:b,[`${_}-dangerous`]:!!s,[`${_}-rtl`]:w==="rtl"},X,m,g,O==null?void 0:O.className),oe=Object.assign(Object.assign({},O==null?void 0:O.style),x),ue=V(S==null?void 0:S.icon,(n=O==null?void 0:O.classNames)===null||n===void 0?void 0:n.icon),Z=Object.assign(Object.assign({},(u==null?void 0:u.icon)||{}),((r=O==null?void 0:O.styles)===null||r===void 0?void 0:r.icon)||{}),ae=h&&!M?f.createElement(jC,{prefixCls:_,className:ue,style:Z},h):f.createElement(aD,{existIcon:!!h,prefixCls:_,loading:!!M}),ne=v||v===0?J6(v,W&&Y):null;if(le.href!==void 0)return T(f.createElement("a",Object.assign({},le,{className:V(Q,{[`${_}-disabled`]:R}),style:oe,onClick:H,ref:B}),ae,ne));let se=f.createElement("button",Object.assign({},E,{type:y,className:Q,style:oe,onClick:H,disabled:R,ref:B}),ae,ne,X&&f.createElement(ID,{key:"compact",prefixCls:_}));return Rd(i)||(se=f.createElement(Ns,{component:"Button",disabled:!!M},se)),T(se)},Zg=f.forwardRef(RD);Zg.Group=Z6;Zg.__ANT_BUTTON=!0;const Xt=Zg;function db(e){return !!(e&&e.then)}const TD=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:a,autoFocus:i,emitEvent:s,isSilent:c,quitOnNullishReturnValue:l,actionFn:u}=e,d=f__namespace.useRef(!1),m=f__namespace.useRef(null),[g,v]=Uo(!1),h=function(){a==null||a.apply(void 0,arguments);};f__namespace.useEffect(()=>{let y=null;return i&&(y=setTimeout(()=>{var S;(S=m.current)===null||S===void 0||S.focus();})),()=>{y&&clearTimeout(y);}},[]);const p=y=>{db(y)&&(v(!0),y.then(function(){v(!1,!0),h.apply(void 0,arguments),d.current=!1;},S=>{if(v(!1,!0),d.current=!1,!(c!=null&&c()))return Promise.reject(S)}));},b=y=>{if(d.current)return;if(d.current=!0,!u){h();return}let S;if(s){if(S=u(y),l&&!db(S)){d.current=!1,h(y);return}}else if(u.length)S=u(a),d.current=!1;else if(S=u(),!S){h();return}p(S);};return f__namespace.createElement(Xt,Object.assign({},LC(t),{onClick:b,loading:g,prefixCls:r},o,{ref:m}),n)},MD=TD,ND=e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:o,colorText:a,colorWarning:i,marginXXS:s,marginXS:c,fontSize:l,fontWeightStrong:u,colorTextHeading:d}=e;return {[t]:{zIndex:o,[`&${r}-popover`]:{fontSize:l},[`${t}-message`]:{marginBottom:c,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:i,fontSize:l,lineHeight:1,marginInlineEnd:c},[`${t}-title`]:{fontWeight:u,color:d,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:s,color:a}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:c}}}}},HC=Dt("Popconfirm",e=>ND(e),e=>{const{zIndexPopupBase:t}=e;return {zIndexPopup:t+60}},{resetStyle:!1});var kD=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const WC=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:o,description:a,cancelText:i,okText:s,okType:c="primary",icon:l=f__namespace.createElement(TC,null),showCancel:u=!0,close:d,onConfirm:m,onCancel:g,onPopupClick:v}=e,{getPrefixCls:h}=f__namespace.useContext(Xe),[p]=hi("Popconfirm",so.Popconfirm),b=qa(o),y=qa(a);return f__namespace.createElement("div",{className:`${t}-inner-content`,onClick:v},f__namespace.createElement("div",{className:`${t}-message`},l&&f__namespace.createElement("span",{className:`${t}-message-icon`},l),f__namespace.createElement("div",{className:`${t}-message-text`},b&&f__namespace.createElement("div",{className:V(`${t}-title`)},b),y&&f__namespace.createElement("div",{className:`${t}-description`},y))),f__namespace.createElement("div",{className:`${t}-buttons`},u&&f__namespace.createElement(Xt,Object.assign({onClick:g,size:"small"},r),i??(p==null?void 0:p.cancelText)),f__namespace.createElement(MD,{buttonProps:Object.assign(Object.assign({size:"small"},LC(c)),n),actionFn:m,close:d,prefixCls:h("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s??(p==null?void 0:p.okText))))},AD=e=>{const{prefixCls:t,placement:n,className:r,style:o}=e,a=kD(e,["prefixCls","placement","className","style"]),{getPrefixCls:i}=f__namespace.useContext(Xe),s=i("popconfirm",t),[c]=HC(s);return c(f__namespace.createElement(NC,{placement:n,className:V(s,r),style:o,content:f__namespace.createElement(WC,Object.assign({prefixCls:s},a))}))},LD=AD;var jD=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=f__namespace.forwardRef((e,t)=>{const{prefixCls:n,placement:r="top",trigger:o="click",okType:a="primary",icon:i=f__namespace.createElement(TC,null),children:s,overlayClassName:c,onOpenChange:l,onVisibleChange:u}=e,d=jD(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:m}=f__namespace.useContext(Xe),[g,v]=Wt(!1,{value:e.open,defaultValue:e.defaultOpen}),h=(w,O)=>{v(w,!0),u==null||u(w),l==null||l(w,O);},p=w=>{h(!1,w);},b=w=>{var O;return (O=e.onConfirm)===null||O===void 0?void 0:O.call(globalThis,w)},y=w=>{var O;h(!1,w),(O=e.onCancel)===null||O===void 0||O.call(globalThis,w);},S=w=>{w.keyCode===ce.ESC&&g&&h(!1,w);},x=w=>{const{disabled:O=!1}=e;O||h(w);},E=m("popconfirm",n),$=V(E,c),[C]=HC(E);return C(f__namespace.createElement(xu,Object.assign({},An(d,["title"]),{trigger:o,placement:r,onOpenChange:x,open:g,ref:t,overlayClassName:$,content:f__namespace.createElement(WC,Object.assign({okType:a,icon:i},e,{prefixCls:E,close:p,onConfirm:b,onCancel:y})),"data-popover-inject":!0}),Wn(s,{onKeyDown:w=>{var O,_;f__namespace.isValidElement(s)&&((_=s==null?void 0:(O=s.props).onKeyDown)===null||_===void 0||_.call(O,w)),S(w);}})))});VC._InternalPanelDoNotUseOrYouWillBeFired=LD;const fb=VC;function mb(e){return ["small","middle","large"].includes(e)}function gb(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const KC=f.createContext({latestIndex:0}),zD=KC.Provider,DD=e=>{let{className:t,index:n,children:r,split:o,style:a}=e;const{latestIndex:i}=f__namespace.useContext(KC);return r==null?null:f__namespace.createElement(f__namespace.Fragment,null,f__namespace.createElement("div",{className:t,style:a},r),n<i&&o&&f__namespace.createElement("span",{className:`${t}-split`},o))},FD=DD;var BD=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 HD=f__namespace.forwardRef((e,t)=>{var n,r;const{getPrefixCls:o,space:a,direction:i}=f__namespace.useContext(Xe),{size:s=(a==null?void 0:a.size)||"small",align:c,className:l,rootClassName:u,children:d,direction:m="horizontal",prefixCls:g,split:v,style:h,wrap:p=!1,classNames:b,styles:y}=e,S=BD(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[x,E]=Array.isArray(s)?s:[s,s],$=mb(E),C=mb(x),w=gb(E),O=gb(x),_=ir(d,{keepEmpty:!0}),T=c===void 0&&m==="horizontal"?"center":c,I=o("space",g),[P,R]=dC(I),k=V(I,a==null?void 0:a.className,R,`${I}-${m}`,{[`${I}-rtl`]:i==="rtl",[`${I}-align-${T}`]:T,[`${I}-gap-row-${E}`]:$,[`${I}-gap-col-${x}`]:C},l,u),N=V(`${I}-item`,(n=b==null?void 0:b.item)!==null&&n!==void 0?n:(r=a==null?void 0:a.classNames)===null||r===void 0?void 0:r.item);let M=0;const L=_.map((K,B)=>{var W,H;K!=null&&(M=B);const Y=K&&K.key||`${N}-${B}`;return f__namespace.createElement(FD,{className:N,key:Y,index:B,split:v,style:(W=y==null?void 0:y.item)!==null&&W!==void 0?W:(H=a==null?void 0:a.styles)===null||H===void 0?void 0:H.item},K)}),j=f__namespace.useMemo(()=>({latestIndex:M}),[M]);if(_.length===0)return null;const F={};return p&&(F.flexWrap="wrap"),!C&&O&&(F.columnGap=x),!$&&w&&(F.rowGap=E),P(f__namespace.createElement("div",Object.assign({ref:t,className:k,style:Object.assign(Object.assign(Object.assign({},F),a==null?void 0:a.style),h)},S),f__namespace.createElement(zD,{value:j},L)))}),GC=HD;GC.Compact=dj;const Ls=GC;var WD={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};const VD=WD;var KD=function(t,n){return f__namespace.createElement(En,Oe({},t,{ref:n,icon:VD}))};const Ou=f__namespace.forwardRef(KD);function GD(e,t,n){return typeof e=="boolean"?e:t===void 0?!!n:t!==!1&&t!==null}function UD(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:f.createElement(Ou,null),o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(!GD(e,t,o))return [!1,null];const i=typeof t=="boolean"||t===void 0||t===null?r:t;return [!0,n?n(i):i]}const XD=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o}=e,a=r-n,i=t-n;return {[o]:Object.assign(Object.assign({},Nt(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:i,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:a}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},Qg=e=>{const{lineWidth:t,fontSizeIcon:n}=e,r=e.fontSizeSM,o=`${e.lineHeightSM*r}px`;return gt(e,{tagFontSize:r,tagLineHeight:o,tagIconSize:n-2*t,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary})},Jg=e=>({defaultBg:e.colorFillQuaternary,defaultColor:e.colorText}),UC=Dt("Tag",e=>{const t=Qg(e);return XD(t)},Jg);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=f__namespace.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:o,checked:a,onChange:i,onClick:s}=e,c=qD(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:l,tag:u}=f__namespace.useContext(Xe),d=p=>{i==null||i(!a),s==null||s(p);},m=l("tag",n),[g,v]=UC(m),h=V(m,`${m}-checkable`,{[`${m}-checkable-checked`]:a},u==null?void 0:u.className,o,v);return g(f__namespace.createElement("span",Object.assign({},c,{ref:t,style:Object.assign(Object.assign({},r),u==null?void 0:u.style),className:h,onClick:d})))}),ZD=YD,QD=e=>fu(e,(t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:a,darkColor:i}=n;return {[`${e.componentCls}-${t}`]:{color:r,background:a,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:i,borderColor:i},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),JD=Mg(["Tag","preset"],e=>{const t=Qg(e);return QD(t)},Jg);function eF(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const pl=(e,t,n)=>{const r=eF(n);return {[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},tF=Mg(["Tag","status"],e=>{const t=Qg(e);return [pl(t,"success","Success"),pl(t,"processing","Info"),pl(t,"error","Error"),pl(t,"warning","Warning")]},Jg);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 rF=(e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:a,children:i,icon:s,color:c,onClose:l,closeIcon:u,closable:d,bordered:m=!0}=e,g=nF(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:v,direction:h,tag:p}=f__namespace.useContext(Xe),[b,y]=f__namespace.useState(!0);f__namespace.useEffect(()=>{"visible"in g&&y(g.visible);},[g.visible]);const S=bu(c),x=Wj(c),E=S||x,$=Object.assign(Object.assign({backgroundColor:c&&!E?c:void 0},p==null?void 0:p.style),a),C=v("tag",n),[w,O]=UC(C),_=V(C,p==null?void 0:p.className,{[`${C}-${c}`]:E,[`${C}-has-color`]:c&&!E,[`${C}-hidden`]:!b,[`${C}-rtl`]:h==="rtl",[`${C}-borderless`]:!m},r,o,O),T=M=>{M.stopPropagation(),l==null||l(M),!M.defaultPrevented&&y(!1);},[,I]=UD(d,u,M=>M===null?f__namespace.createElement(Ou,{className:`${C}-close-icon`,onClick:T}):f__namespace.createElement("span",{className:`${C}-close-icon`,onClick:T},M),null,!1),P=typeof g.onClick=="function"||i&&i.type==="a",R=s||null,k=R?f__namespace.createElement(f__namespace.Fragment,null,R,i&&f__namespace.createElement("span",null,i)):i,N=f__namespace.createElement("span",Object.assign({},g,{ref:t,className:_,style:$}),k,I,S&&f__namespace.createElement(JD,{key:"preset",prefixCls:C}),x&&f__namespace.createElement(tF,{key:"status",prefixCls:C}));return w(P?f__namespace.createElement(Ns,{component:"Tag"},N):N)},XC=f__namespace.forwardRef(rF);XC.CheckableTag=ZD;const Co=XC;var oF={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 aF=oF;var iF=function(t,n){return f__namespace.createElement(En,Oe({},t,{ref:n,icon:aF}))};const ev=f__namespace.forwardRef(iF);var sF={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 lF=sF;var cF=function(t,n){return f__namespace.createElement(En,Oe({},t,{ref:n,icon:lF}))};const uF=f__namespace.forwardRef(cF);function nm(){return typeof BigInt=="function"}function Yo(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",o=r.split("."),a=o[0]||"0",i=o[1]||"0";a==="0"&&i==="0"&&(n=!1);var s=n?"-":"";return {negative:n,negativeStr:s,trimStr:r,integerStr:a,decimalStr:i,fullStr:"".concat(s).concat(r)}}function tv(e){var t=String(e);return !Number.isNaN(Number(t))&&t.includes("e")}function us(e){var t=String(e);if(tv(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(".")&&nv(t)?t.length-t.indexOf(".")-1:0}function Iu(e){var t=String(e);if(tv(e)){if(e>Number.MAX_SAFE_INTEGER)return String(nm()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(nm()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(us(t));}return Yo(t).fullStr}function nv(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 qC(e){return !e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}var dF=function(){function e(t){if(hn(this,e),D(this,"origin",""),D(this,"number",void 0),D(this,"empty",void 0),qC(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t);}return pn(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var o=this.number+r;if(o>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var a=Math.max(us(this.number),us(r));return new e(o.toFixed(a))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toNumber()===(n==null?void 0:n.toNumber())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Iu(this.number):this.origin}}]),e}(),fF=function(){function e(t){if(hn(this,e),D(this,"origin",""),D(this,"negative",void 0),D(this,"integer",void 0),D(this,"decimal",void 0),D(this,"decimalLen",void 0),D(this,"empty",void 0),D(this,"nan",void 0),qC(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(tv(n)&&(n=Number(n)),n=typeof n=="string"?n:Iu(n),nv(n)){var r=Yo(n);this.negative=r.negative;var o=r.trimStr.split(".");this.integer=BigInt(o[0]);var a=o[1]||"0";this.decimal=BigInt(a),this.decimalLen=a.length;}else this.nan=!0;}return pn(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(n){var r="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(n,"0"));return BigInt(r)}},{key:"negate",value:function(){var n=new e(this.toString());return n.negative=!n.negative,n}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=new e(n);if(r.isInvalidate())return this;var o=Math.max(this.getDecimalStr().length,r.getDecimalStr().length),a=this.alignDecimal(o),i=r.alignDecimal(o),s=(a+i).toString(),c=Yo(s),l=c.negativeStr,u=c.trimStr,d="".concat(l).concat(u.padStart(o+1,"0"));return new e("".concat(d.slice(0,-o),".").concat(d.slice(-o)))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toString()===(n==null?void 0:n.toString())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Yo("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}();function Ir(e){return nm()?new fF(e):new dF(e)}function kl(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return "";var o=Yo(e),a=o.negativeStr,i=o.integerStr,s=o.decimalStr,c="".concat(t).concat(s),l="".concat(a).concat(i);if(n>=0){var u=Number(s[n]);if(u>=5&&!r){var d=Ir(e).add("".concat(a,"0.").concat("0".repeat(n)).concat(10-u));return kl(d.toString(),t,n,r)}return n===0?l:"".concat(l).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return c===".0"?l:"".concat(l).concat(c)}function ya(e){return !!(e.addonBefore||e.addonAfter)}function Nd(e){return !!(e.prefix||e.suffix||e.allowClear)}function Ki(e,t,n,r){if(n){var o=t;if(t.type==="click"){var a=e.cloneNode(!0);o=Object.create(t,{target:{value:a},currentTarget:{value:a}}),a.value="",n(o);return}if(r!==void 0){o=Object.create(t,{target:{value:e},currentTarget:{value:e}}),e.value=r,n(o);return}n(o);}}function YC(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 rm(e){return typeof e>"u"||e===null?"":String(e)}var rv=function(t){var n,r,o=t.inputElement,a=t.prefixCls,i=t.prefix,s=t.suffix,c=t.addonBefore,l=t.addonAfter,u=t.className,d=t.style,m=t.disabled,g=t.readOnly,v=t.focused,h=t.triggerFocus,p=t.allowClear,b=t.value,y=t.handleReset,S=t.hidden,x=t.classes,E=t.classNames,$=t.dataAttrs,C=t.styles,w=t.components,O=(w==null?void 0:w.affixWrapper)||"span",_=(w==null?void 0:w.groupWrapper)||"span",T=(w==null?void 0:w.wrapper)||"span",I=(w==null?void 0:w.groupAddon)||"span",P=f.useRef(null),R=function(U){var X;(X=P.current)!==null&&X!==void 0&&X.contains(U.target)&&(h==null||h());},k=function(){var U;if(!p)return null;var X=!m&&!g&&b,G="".concat(a,"-clear-icon"),ee=rt(p)==="object"&&p!==null&&p!==void 0&&p.clearIcon?p.clearIcon:"✖";return f.createElement("span",{onClick:y,onMouseDown:function(ie){return ie.preventDefault()},className:V(G,(U={},D(U,"".concat(G,"-hidden"),!X),D(U,"".concat(G,"-has-suffix"),!!s),U)),role:"button",tabIndex:-1},ee)},N=f.cloneElement(o,{value:b,hidden:S,className:V((n=o.props)===null||n===void 0?void 0:n.className,!Nd(t)&&!ya(t)&&u)||null,style:q(q({},(r=o.props)===null||r===void 0?void 0:r.style),!Nd(t)&&!ya(t)?d:{})});if(Nd(t)){var M,L="".concat(a,"-affix-wrapper"),j=V(L,(M={},D(M,"".concat(L,"-disabled"),m),D(M,"".concat(L,"-focused"),v),D(M,"".concat(L,"-readonly"),g),D(M,"".concat(L,"-input-with-clear-btn"),s&&p&&b),M),!ya(t)&&u,x==null?void 0:x.affixWrapper,E==null?void 0:E.affixWrapper),F=(s||p)&&f.createElement("span",{className:V("".concat(a,"-suffix"),E==null?void 0:E.suffix),style:C==null?void 0:C.suffix},k(),s);N=f.createElement(O,Oe({className:j,style:q(q({},ya(t)?void 0:d),C==null?void 0:C.affixWrapper),hidden:!ya(t)&&S,onClick:R},$==null?void 0:$.affixWrapper,{ref:P}),i&&f.createElement("span",{className:V("".concat(a,"-prefix"),E==null?void 0:E.prefix),style:C==null?void 0:C.prefix},i),f.cloneElement(o,{value:b,hidden:null}),F);}if(ya(t)){var K="".concat(a,"-group"),B="".concat(K,"-addon"),W=V("".concat(a,"-wrapper"),K,x==null?void 0:x.wrapper),H=V("".concat(a,"-group-wrapper"),u,x==null?void 0:x.group);return f.createElement(_,{className:H,style:d,hidden:S},f.createElement(T,{className:W},c&&f.createElement(I,{className:B},c),f.cloneElement(N,{hidden:null}),l&&f.createElement(I,{className:B},l)))}return N},mF=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],gF=f.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,a=e.onBlur,i=e.onPressEnter,s=e.onKeyDown,c=e.prefixCls,l=c===void 0?"rc-input":c,u=e.disabled,d=e.htmlSize,m=e.className,g=e.maxLength,v=e.suffix,h=e.showCount,p=e.type,b=p===void 0?"text":p,y=e.classes,S=e.classNames,x=e.styles,E=Ze(e,mF),$=Wt(e.defaultValue,{value:e.value}),C=J($,2),w=C[0],O=C[1],_=f.useState(!1),T=J(_,2),I=T[0],P=T[1],R=f.useRef(null),k=function(H){R.current&&YC(R.current,H);};f.useImperativeHandle(t,function(){return {focus:k,blur:function(){var H;(H=R.current)===null||H===void 0||H.blur();},setSelectionRange:function(H,Y,U){var X;(X=R.current)===null||X===void 0||X.setSelectionRange(H,Y,U);},select:function(){var H;(H=R.current)===null||H===void 0||H.select();},input:R.current}}),f.useEffect(function(){P(function(W){return W&&u?!1:W});},[u]);var N=function(H){e.value===void 0&&O(H.target.value),R.current&&Ki(R.current,H,r);},M=function(H){i&&H.key==="Enter"&&i(H),s==null||s(H);},L=function(H){P(!0),o==null||o(H);},j=function(H){P(!1),a==null||a(H);},F=function(H){O(""),k(),R.current&&Ki(R.current,H,r);},K=function(){var H=An(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return f.createElement("input",Oe({autoComplete:n},H,{onChange:N,onFocus:L,onBlur:j,onKeyDown:M,className:V(l,D({},"".concat(l,"-disabled"),u),S==null?void 0:S.input),style:x==null?void 0:x.input,ref:R,size:d,type:b}))},B=function(){var H=Number(g)>0;if(v||h){var Y=rm(w),U=Re(Y).length,X=rt(h)==="object"?h.formatter({value:Y,count:U,maxLength:g}):"".concat(U).concat(H?" / ".concat(g):"");return f.createElement(f.Fragment,null,!!h&&f.createElement("span",{className:V("".concat(l,"-show-count-suffix"),D({},"".concat(l,"-show-count-has-suffix"),!!v),S==null?void 0:S.count),style:q({},x==null?void 0:x.count)},X),v)}return null};return f.createElement(rv,Oe({},E,{prefixCls:l,className:m,inputElement:K(),handleReset:F,value:rm(w),focused:I,triggerFocus:k,suffix:B(),disabled:u,classes:y,classNames:S,styles:x}))});function vF(e,t){var n=f.useRef(null);function r(){try{var a=e.selectionStart,i=e.selectionEnd,s=e.value,c=s.substring(0,a),l=s.substring(i);n.current={start:a,end:i,value:s,beforeTxt:c,afterTxt:l};}catch{}}function o(){if(e&&n.current&&t)try{var a=e.value,i=n.current,s=i.beforeTxt,c=i.afterTxt,l=i.start,u=a.length;if(a.endsWith(c))u=a.length-n.current.afterTxt.length;else if(a.startsWith(s))u=s.length;else {var d=s[l-1],m=a.indexOf(d,l-1);m!==-1&&(u=m+1);}e.setSelectionRange(u,u);}catch(g){gn(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(g.message));}}return [r,o]}var hF=function(){var t=f.useState(!1),n=J(t,2),r=n[0],o=n[1];return Ht(function(){o(mu());},[]),r},pF=200,bF=600;function yF(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,o=e.upDisabled,a=e.downDisabled,i=e.onStep,s=f__namespace.useRef(),c=f__namespace.useRef([]),l=f__namespace.useRef();l.current=i;var u=function(){clearTimeout(s.current);},d=function(S,x){S.preventDefault(),u(),l.current(x);function E(){l.current(x),s.current=setTimeout(E,pF);}s.current=setTimeout(E,bF);};f__namespace.useEffect(function(){return function(){u(),c.current.forEach(function(y){return wt.cancel(y)});}},[]);var m=hF();if(m)return null;var g="".concat(t,"-handler"),v=V(g,"".concat(g,"-up"),D({},"".concat(g,"-up-disabled"),o)),h=V(g,"".concat(g,"-down"),D({},"".concat(g,"-down-disabled"),a)),p=function(){return c.current.push(wt(u))},b={unselectable:"on",role:"button",onMouseUp:p,onMouseLeave:p};return f__namespace.createElement("div",{className:"".concat(g,"-wrap")},f__namespace.createElement("span",Oe({},b,{onMouseDown:function(S){d(S,!0);},"aria-label":"Increase Value","aria-disabled":o,className:v}),n||f__namespace.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),f__namespace.createElement("span",Oe({},b,{onMouseDown:function(S){d(S,!1);},"aria-label":"Decrease Value","aria-disabled":a,className:h}),r||f__namespace.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function vb(e){var t=typeof e=="number"?Iu(e):Yo(e).fullStr,n=t.includes(".");return n?Yo(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const CF=function(){var e=f.useRef(0),t=function(){wt.cancel(e.current);};return f.useEffect(function(){return t},[]),function(n){t(),e.current=wt(function(){n();});}};var SF=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],$F=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],hb=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},pb=function(t){var n=Ir(t);return n.isInvalidate()?null:n},wF=f__namespace.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-input-number":r,a=e.className,i=e.style,s=e.min,c=e.max,l=e.step,u=l===void 0?1:l,d=e.defaultValue,m=e.value,g=e.disabled,v=e.readOnly,h=e.upHandler,p=e.downHandler,b=e.keyboard,y=e.controls,S=y===void 0?!0:y,x=e.classNames,E=e.stringMode,$=e.parser,C=e.formatter,w=e.precision,O=e.decimalSeparator,_=e.onChange,T=e.onInput,I=e.onPressEnter,P=e.onStep,R=Ze(e,SF),k="".concat(o,"-input"),N=f__namespace.useRef(null),M=f__namespace.useState(!1),L=J(M,2),j=L[0],F=L[1],K=f__namespace.useRef(!1),B=f__namespace.useRef(!1),W=f__namespace.useRef(!1),H=f__namespace.useState(function(){return Ir(m??d)}),Y=J(H,2),U=Y[0],X=Y[1];function G(_e){m===void 0&&X(_e);}var ee=f__namespace.useCallback(function(_e,de){if(!de)return w>=0?w:Math.max(us(_e),us(u))},[w,u]),te=f__namespace.useCallback(function(_e){var de=String(_e);if($)return $(de);var $e=de;return O&&($e=$e.replace(O,".")),$e.replace(/[^\w.-]+/g,"")},[$,O]),ie=f__namespace.useRef(""),le=f__namespace.useCallback(function(_e,de){if(C)return C(_e,{userTyping:de,input:String(ie.current)});var $e=typeof _e=="number"?Iu(_e):_e;if(!de){var pe=ee($e,de);if(nv($e)&&(O||pe>=0)){var we=O||".";$e=kl($e,we,pe);}}return $e},[C,ee,O]),Q=f__namespace.useState(function(){var _e=d??m;return U.isInvalidate()&&["string","number"].includes(rt(_e))?Number.isNaN(_e)?"":_e:le(U.toString(),!1)}),oe=J(Q,2),ue=oe[0],Z=oe[1];ie.current=ue;function ae(_e,de){Z(le(_e.isInvalidate()?_e.toString(!1):_e.toString(!de),de));}var ne=f__namespace.useMemo(function(){return pb(c)},[c,w]),se=f__namespace.useMemo(function(){return pb(s)},[s,w]),ve=f__namespace.useMemo(function(){return !ne||!U||U.isInvalidate()?!1:ne.lessEquals(U)},[ne,U]),ge=f__namespace.useMemo(function(){return !se||!U||U.isInvalidate()?!1:U.lessEquals(se)},[se,U]),ke=vF(N.current,j),Ae=J(ke,2),Me=Ae[0],Ee=Ae[1],he=function(de){return ne&&!de.lessEquals(ne)?ne:se&&!se.lessEquals(de)?se:null},Pe=function(de){return !he(de)},Qe=function(de,$e){var pe=de,we=Pe(pe)||pe.isEmpty();if(!pe.isEmpty()&&!$e&&(pe=he(pe)||pe,we=!0),!v&&!g&&we){var He=pe.toString(),De=ee(He,$e);return De>=0&&(pe=Ir(kl(He,".",De)),Pe(pe)||(pe=Ir(kl(He,".",De,!0)))),pe.equals(U)||(G(pe),_==null||_(pe.isEmpty()?null:hb(E,pe)),m===void 0&&ae(pe,$e)),pe}return U},Be=CF(),Ke=function _e(de){if(Me(),ie.current=de,Z(de),!B.current){var $e=te(de),pe=Ir($e);pe.isNaN()||Qe(pe,!0);}T==null||T(de),Be(function(){var we=de;$||(we=de.replace(/。/g,".")),we!==de&&_e(we);});},ze=function(){B.current=!0;},mt=function(){B.current=!1,Ke(N.current.value);},et=function(de){Ke(de.target.value);},ot=function(de){var $e;if(!(de&&ve||!de&&ge)){K.current=!1;var pe=Ir(W.current?vb(u):u);de||(pe=pe.negate());var we=(U||Ir(0)).add(pe.toString()),He=Qe(we,!1);P==null||P(hb(E,He),{offset:W.current?vb(u):u,type:de?"up":"down"}),($e=N.current)===null||$e===void 0||$e.focus();}},Ve=function(de){var $e=Ir(te(ue)),pe=$e;$e.isNaN()?pe=Qe(U,de):pe=Qe($e,de),m!==void 0?ae(U,!1):pe.isNaN()||ae(pe,!1);},ct=function(){K.current=!0;},bt=function(de){var $e=de.key,pe=de.shiftKey;K.current=!0,W.current=pe,$e==="Enter"&&(B.current||(K.current=!1),Ve(!1),I==null||I(de)),b!==!1&&!B.current&&["Up","ArrowUp","Down","ArrowDown"].includes($e)&&(ot($e==="Up"||$e==="ArrowUp"),de.preventDefault());},at=function(){K.current=!1,W.current=!1;},it=function(){Ve(!1),F(!1),K.current=!1;};return Da(function(){U.isInvalidate()||ae(U,!1);},[w]),Da(function(){var _e=Ir(m);X(_e);var de=Ir(te(ue));(!_e.equals(de)||!K.current||C)&&ae(_e,K.current);},[m]),Da(function(){C&&Ee();},[ue]),f__namespace.createElement("div",{className:V(o,x==null?void 0:x.input,a,(n={},D(n,"".concat(o,"-focused"),j),D(n,"".concat(o,"-disabled"),g),D(n,"".concat(o,"-readonly"),v),D(n,"".concat(o,"-not-a-number"),U.isNaN()),D(n,"".concat(o,"-out-of-range"),!U.isInvalidate()&&!Pe(U)),n)),style:i,onFocus:function(){F(!0);},onBlur:it,onKeyDown:bt,onKeyUp:at,onCompositionStart:ze,onCompositionEnd:mt,onBeforeInput:ct},S&&f__namespace.createElement(yF,{prefixCls:o,upNode:h,downNode:p,upDisabled:ve,downDisabled:ge,onStep:ot}),f__namespace.createElement("div",{className:"".concat(k,"-wrap")},f__namespace.createElement("input",Oe({autoComplete:"off",role:"spinbutton","aria-valuemin":s,"aria-valuemax":c,"aria-valuenow":U.isInvalidate()?null:U.toString(),step:u},R,{ref:Kn(N,t),className:k,value:ue,onChange:et,disabled:g,readOnly:v}))))}),ZC=f__namespace.forwardRef(function(e,t){var n=e.disabled,r=e.style,o=e.prefixCls,a=e.value,i=e.prefix,s=e.suffix,c=e.addonBefore,l=e.addonAfter,u=e.classes,d=e.className,m=e.classNames,g=Ze(e,$F),v=f__namespace.useRef(null),h=function(b){v.current&&YC(v.current,b);};return f__namespace.createElement(rv,{inputElement:f__namespace.createElement(wF,Oe({prefixCls:o,disabled:n,classNames:m,ref:Kn(v,t)},g)),className:d,triggerFocus:h,prefixCls:o,value:a,disabled:n,style:r,prefix:i,suffix:s,addonAfter:l,addonBefore:c,classes:u,classNames:m,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});ZC.displayName="InputNumber";function kr(e,t,n){return V({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const js=(e,t)=>t||e,QC=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),JC=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),om=e=>({borderColor:e.activeBorderColor,boxShadow:e.activeShadow,outline:0,backgroundColor:e.activeBg}),ov=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},JC(gt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),eS=e=>{const{paddingBlockLG:t,fontSizeLG:n,lineHeightLG:r,borderRadiusLG:o,paddingInlineLG:a}=e;return {padding:`${t}px ${a}px`,fontSize:n,lineHeight:r,borderRadius:o}},av=e=>({padding:`${e.paddingBlockSM}px ${e.paddingInlineSM}px`,borderRadius:e.borderRadiusSM}),Pu=(e,t)=>{const{componentCls:n,colorError:r,colorWarning:o,errorActiveShadow:a,warningActiveShadow:i,colorErrorBorderHover:s,colorWarningBorderHover:c}=e;return {[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:r,"&:hover":{borderColor:s},"&:focus, &:focus-within":Object.assign({},om(gt(e,{activeBorderColor:r,activeShadow:a}))),[`${n}-prefix, ${n}-suffix`]:{color:r}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:o,"&:hover":{borderColor:c},"&:focus, &:focus-within":Object.assign({},om(gt(e,{activeBorderColor:o,activeShadow:i}))),[`${n}-prefix, ${n}-suffix`]:{color:o}}}},zs=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.paddingBlock}px ${e.paddingInline}px`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},QC(e.colorTextPlaceholder)),{"&:hover":Object.assign({},JC(e)),"&:focus, &:focus-within":Object.assign({},om(e)),"&-disabled, &[disabled]":Object.assign({},ov(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({},eS(e)),"&-sm":Object.assign({},av(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),tS=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({},eS(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},av(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${e.paddingInline}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.addonBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`-${e.paddingBlock+1}px -${e.paddingInline}px`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${e.lineWidth}px ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px -${e.paddingInline}px`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${t}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},Tf()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`
        & > ${t}-affix-wrapper,
        & > ${t}-number-affix-wrapper,
        & > ${n}-picker-range
      `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-e.lineWidth,borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,
      & > ${n}-select-auto-complete ${t},
      & > ${n}-cascader-picker ${t},
      & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,
      & > ${n}-select:first-child > ${n}-select-selector,
      & > ${n}-select-auto-complete:first-child ${t},
      & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
      & > ${n}-select:last-child > ${n}-select-selector,
      & > ${n}-cascader-picker:last-child ${t},
      & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:-e.lineWidth,[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},xF=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r}=e,o=16,a=(n-r*2-o)/2;return {[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Nt(e)),zs(e)),Pu(e,t)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},EF=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`}}}},OF=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:a,colorIconHover:i,iconCls:s}=e;return {[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},zs(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),EF(e)),{[`${s}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:i}}}),Pu(e,`${t}-affix-wrapper`))}},IF=e=>{const{componentCls:t,colorError:n,colorWarning:r,borderRadiusLG:o,borderRadiusSM:a}=e;return {[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Nt(e)),tS(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:o,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:a}},"&-status-error":{[`${t}-group-addon`]:{color:n,borderColor:n}},"&-status-warning":{[`${t}-group-addon`]:{color:r,borderColor:r}},"&-disabled":{[`${t}-group-addon`]:Object.assign({},ov(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}}}})}},PF=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return {[r]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.lineHeightLG-2e-4},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:-e.lineWidth,borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
        > ${t},
        ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},_F=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return {[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:-e.fontSize*e.lineHeight,insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${r}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function iv(e){return gt(e,{inputAffixPadding:e.paddingXXS})}const sv=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:a,controlHeightLG:i,fontSizeLG:s,lineHeightLG:c,paddingSM:l,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:m,colorPrimaryHover:g,colorPrimary:v,controlOutlineWidth:h,controlOutline:p,colorErrorOutline:b,colorWarningOutline:y}=e;return {paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((a-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((i-s*c)/2*10)/10-o,paddingInline:l-o,paddingInlineSM:u-o,paddingInlineLG:d-o,addonBg:m,activeBorderColor:v,hoverBorderColor:g,activeShadow:`0 0 0 ${h}px ${p}`,errorActiveShadow:`0 0 0 ${h}px ${b}`,warningActiveShadow:`0 0 0 ${h}px ${y}`,hoverBg:"",activeBg:""}},lv=Dt("Input",e=>{const t=gt(e,iv(e));return [xF(t),_F(t),OF(t),IF(t),PF(t),Eu(t)]},sv),bb=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:o}=e;const a=t==="lg"?o:r;return {[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:a,borderEndEndRadius:a},[`${n}-handler-up`]:{borderStartEndRadius:a},[`${n}-handler-down`]:{borderEndEndRadius:a}}}},RF=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorBorder:o,borderRadius:a,fontSizeLG:i,controlHeightLG:s,controlHeightSM:c,colorError:l,paddingInlineSM:u,colorTextDescription:d,motionDurationMid:m,handleHoverColor:g,paddingInline:v,paddingBlock:h,handleBg:p,handleActiveBg:b,colorTextDisabled:y,borderRadiusSM:S,borderRadiusLG:x,controlWidth:E,handleVisible:$,handleBorderColor:C}=e;return [{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Nt(e)),zs(e)),Pu(e,t)),{display:"inline-block",width:E,margin:0,padding:0,border:`${n}px ${r} ${o}`,borderRadius:a,"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:i,borderRadius:x,[`input${t}-input`]:{height:s-2*n}},"&-sm":{padding:0,borderRadius:S,[`input${t}-input`]:{height:c-2*n,padding:`0 ${u}px`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:l}}},"&-group":Object.assign(Object.assign(Object.assign({},Nt(e)),tS(e)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:x,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:S}},[`${t}-wrapper-disabled > ${t}-group-addon`]:Object.assign({},ov(e))}}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},Nt(e)),{width:"100%",padding:`${h}px ${v}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:a,outline:0,transition:`all ${m} linear`,appearance:"textfield",fontSize:"inherit"}),QC(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:Object.assign(Object.assign(Object.assign({[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",background:p,borderStartStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a,borderEndStartRadius:0,opacity:$===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${m} linear ${m}`,[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
              ${t}-handler-up-inner,
              ${t}-handler-down-inner
            `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:d,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${n}px ${r} ${C}`,transition:`all ${m} linear`,"&:active":{background:b},"&:hover":{height:"60%",[`
              ${t}-handler-up-inner,
              ${t}-handler-down-inner
            `]:{color:g}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},ia()),{color:d,transition:`all ${m} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:a},[`${t}-handler-down`]:{borderBlockStart:`${n}px ${r} ${C}`,borderEndEndRadius:a}},bb(e,"lg")),bb(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`
          ${t}-handler-up-disabled,
          ${t}-handler-down-disabled
        `]:{cursor:"not-allowed"},[`
          ${t}-handler-up-disabled:hover &-handler-up-inner,
          ${t}-handler-down-disabled:hover &-handler-down-inner
        `]:{color:y}})},{[`${t}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${t}-handler-down`]:{borderBlockStartWidth:0}}}]},TF=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:o,controlWidth:a,borderRadiusLG:i,borderRadiusSM:s}=e;return {[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},zs(e)),Pu(e,`${t}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:a,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:i},"&-sm":{borderRadius:s},[`&:not(${t}-affix-wrapper-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},[`input${t}-input`]:{padding:`${n}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:r,marginInlineStart:o}}})}},MF=Dt("InputNumber",e=>{const t=gt(e,iv(e));return [RF(t),TF(t),Eu(t)]},e=>Object.assign(Object.assign({},sv(e)),{controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:"auto",handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder}));var 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 nS=f__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=f__namespace.useContext(Xe),o=f__namespace.useRef(null);f__namespace.useImperativeHandle(t,()=>o.current);const{className:a,rootClassName:i,size:s,disabled:c,prefixCls:l,addonBefore:u,addonAfter:d,prefix:m,bordered:g=!0,readOnly:v,status:h,controls:p}=e,b=NF(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),y=n("input-number",l),[S,x]=MF(y),{compactSize:E,compactItemClassnames:$}=bi(y,r);let C=f__namespace.createElement(uF,{className:`${y}-handler-up-inner`}),w=f__namespace.createElement(ev,{className:`${y}-handler-down-inner`});const O=typeof p=="boolean"?p:void 0;typeof p=="object"&&(C=typeof p.upIcon>"u"?C:f__namespace.createElement("span",{className:`${y}-handler-up-inner`},p.upIcon),w=typeof p.downIcon>"u"?w:f__namespace.createElement("span",{className:`${y}-handler-down-inner`},p.downIcon));const{hasFeedback:_,status:T,isFormItemInput:I,feedbackIcon:P}=f__namespace.useContext(br),R=js(T,h),k=Xn(K=>{var B;return (B=s??E)!==null&&B!==void 0?B:K}),N=f__namespace.useContext(Zr),M=c??N,L=V({[`${y}-lg`]:k==="large",[`${y}-sm`]:k==="small",[`${y}-rtl`]:r==="rtl",[`${y}-borderless`]:!g,[`${y}-in-form-item`]:I},kr(y,R),x),j=`${y}-group`,F=f__namespace.createElement(ZC,Object.assign({ref:o,disabled:M,className:V(a,i,$),upHandler:C,downHandler:w,prefixCls:y,readOnly:v,controls:O,prefix:m,suffix:_&&P,addonAfter:d&&f__namespace.createElement(Ua,null,f__namespace.createElement(ls,{override:!0,status:!0},d)),addonBefore:u&&f__namespace.createElement(Ua,null,f__namespace.createElement(ls,{override:!0,status:!0},u)),classNames:{input:L},classes:{affixWrapper:V(kr(`${y}-affix-wrapper`,R,_),{[`${y}-affix-wrapper-sm`]:k==="small",[`${y}-affix-wrapper-lg`]:k==="large",[`${y}-affix-wrapper-rtl`]:r==="rtl",[`${y}-affix-wrapper-borderless`]:!g},x),wrapper:V({[`${j}-rtl`]:r==="rtl",[`${y}-wrapper-disabled`]:M},x),group:V({[`${y}-group-wrapper-sm`]:k==="small",[`${y}-group-wrapper-lg`]:k==="large",[`${y}-group-wrapper-rtl`]:r==="rtl"},kr(`${y}-group-wrapper`,R,_),x)}},b));return S(F)}),rS=nS,kF=e=>f__namespace.createElement(Ag,{theme:{components:{InputNumber:{handleVisible:!0}}}},f__namespace.createElement(nS,Object.assign({},e)));rS._InternalPanelDoNotUseOrYouWillBeFired=kF;const am=rS;var AF={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 LF=AF;var jF=function(t,n){return f__namespace.createElement(En,Oe({},t,{ref:n,icon:LF}))};const cv=f__namespace.forwardRef(jF);var zF={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 DF=zF;var FF=function(t,n){return f__namespace.createElement(En,Oe({},t,{ref:n,icon:DF}))};const BF=f__namespace.forwardRef(FF),_u=f.createContext(null);var oS=f__namespace.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,a=e.id,i=e.active,s=e.tabKey,c=e.children;return f__namespace.createElement("div",{id:a&&"".concat(a,"-panel-").concat(s),role:"tabpanel",tabIndex:i?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(s),"aria-hidden":!i,style:o,className:V(n,i&&"".concat(n,"-active"),r),ref:t},c)}),HF=["key","forceRender","style","className"];function WF(e){var t=e.id,n=e.activeKey,r=e.animated,o=e.tabPosition,a=e.destroyInactiveTabPane,i=f__namespace.useContext(_u),s=i.prefixCls,c=i.tabs,l=r.tabPane,u="".concat(s,"-tabpane");return f__namespace.createElement("div",{className:V("".concat(s,"-content-holder"))},f__namespace.createElement("div",{className:V("".concat(s,"-content"),"".concat(s,"-content-").concat(o),D({},"".concat(s,"-content-animated"),l))},c.map(function(d){var m=d.key,g=d.forceRender,v=d.style,h=d.className,p=Ze(d,HF),b=m===n;return f__namespace.createElement(go,Oe({key:m,visible:b,forceRender:g,removeOnLeave:!!a,leavedClassName:"".concat(u,"-hidden")},r.tabPaneMotion),function(y,S){var x=y.style,E=y.className;return f__namespace.createElement(oS,Oe({},p,{prefixCls:u,id:t,tabKey:m,animated:l,active:b,style:q(q({},v),x),className:V(h,E),ref:S}))})})))}var yb={width:0,height:0,left:0,top:0};function VF(e,t,n){return f.useMemo(function(){for(var r,o=new Map,a=t.get((r=e[0])===null||r===void 0?void 0:r.key)||yb,i=a.left+a.width,s=0;s<e.length;s+=1){var c=e[s].key,l=t.get(c);if(!l){var u;l=t.get((u=e[s-1])===null||u===void 0?void 0:u.key)||yb;}var d=o.get(c)||q({},l);d.right=i-d.left-d.width,o.set(c,d);}return o},[e.map(function(r){return r.key}).join("_"),t,n])}function Cb(e,t){var n=f__namespace.useRef(e),r=f__namespace.useState({}),o=J(r,2),a=o[1];function i(s){var c=typeof s=="function"?s(n.current):s;c!==n.current&&t(c,n.current),n.current=c,a({});}return [n.current,i]}var KF=.1,Sb=.01,Al=20,$b=Math.pow(.995,Al);function GF(e,t){var n=f.useState(),r=J(n,2),o=r[0],a=r[1],i=f.useState(0),s=J(i,2),c=s[0],l=s[1],u=f.useState(0),d=J(u,2),m=d[0],g=d[1],v=f.useState(),h=J(v,2),p=h[0],b=h[1],y=f.useRef();function S(O){var _=O.touches[0],T=_.screenX,I=_.screenY;a({x:T,y:I}),window.clearInterval(y.current);}function x(O){if(o){O.preventDefault();var _=O.touches[0],T=_.screenX,I=_.screenY;a({x:T,y:I});var P=T-o.x,R=I-o.y;t(P,R);var k=Date.now();l(k),g(k-c),b({x:P,y:R});}}function E(){if(o&&(a(null),b(null),p)){var O=p.x/m,_=p.y/m,T=Math.abs(O),I=Math.abs(_);if(Math.max(T,I)<KF)return;var P=O,R=_;y.current=window.setInterval(function(){if(Math.abs(P)<Sb&&Math.abs(R)<Sb){window.clearInterval(y.current);return}P*=$b,R*=$b,t(P*Al,R*Al);},Al);}}var $=f.useRef();function C(O){var _=O.deltaX,T=O.deltaY,I=0,P=Math.abs(_),R=Math.abs(T);P===R?I=$.current==="x"?_:T:P>R?(I=_,$.current="x"):(I=T,$.current="y"),t(-I,-I)&&O.preventDefault();}var w=f.useRef(null);w.current={onTouchStart:S,onTouchMove:x,onTouchEnd:E,onWheel:C},f__namespace.useEffect(function(){function O(P){w.current.onTouchStart(P);}function _(P){w.current.onTouchMove(P);}function T(P){w.current.onTouchEnd(P);}function I(P){w.current.onWheel(P);}return document.addEventListener("touchmove",_,{passive:!1}),document.addEventListener("touchend",T,{passive:!1}),e.current.addEventListener("touchstart",O,{passive:!1}),e.current.addEventListener("wheel",I),function(){document.removeEventListener("touchmove",_),document.removeEventListener("touchend",T);}},[]);}function aS(e){var t=f.useState(0),n=J(t,2),r=n[0],o=n[1],a=f.useRef(0),i=f.useRef();return i.current=e,Da(function(){var s;(s=i.current)===null||s===void 0||s.call(i);},[r]),function(){a.current===r&&(a.current+=1,o(a.current));}}function UF(e){var t=f.useRef([]),n=f.useState({}),r=J(n,2),o=r[1],a=f.useRef(typeof e=="function"?e():e),i=aS(function(){var c=a.current;t.current.forEach(function(l){c=l(c);}),t.current=[],a.current=c,o({});});function s(c){t.current.push(c),i();}return [a.current,s]}var wb={width:0,height:0,left:0,top:0,right:0};function XF(e,t,n,r,o,a,i){var s=i.tabs,c=i.tabPosition,l=i.rtl,u,d,m;return ["top","bottom"].includes(c)?(u="width",d=l?"right":"left",m=Math.abs(n)):(u="height",d="top",m=-n),f.useMemo(function(){if(!s.length)return [0,0];for(var g=s.length,v=g,h=0;h<g;h+=1){var p=e.get(s[h].key)||wb;if(p[d]+p[u]>m+t){v=h-1;break}}for(var b=0,y=g-1;y>=0;y-=1){var S=e.get(s[y].key)||wb;if(S[d]<m){b=y+1;break}}return b>=v?[0,0]:[b,v]},[e,t,r,o,a,m,c,s.map(function(g){return g.key}).join("_"),l])}function xb(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n;})):t=e,JSON.stringify(t)}var qF="TABS_DQ";function iS(e){return String(e).replace(/"/g,qF)}function sS(e,t,n,r){return !(!n||r||e===!1||e===void 0&&(t===!1||t===null))}function YF(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,a=e.style;return !r||r.showAdd===!1?null:f__namespace.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(o==null?void 0:o.addAriaLabel)||"Add tab",onClick:function(s){r.onEdit("add",{event:s});}},r.addIcon||"+")}const lS=f__namespace.forwardRef(YF);var Eb=f__namespace.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var a,i={};return rt(o)==="object"&&!f__namespace.isValidElement(o)?i=o:i.right=o,n==="right"&&(a=i.right),n==="left"&&(a=i.left),a?f__namespace.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},a):null}),ZF=ce.ESC,QF=ce.TAB;function JF(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,a=e.overlayRef,i=f__namespace.useRef(!1),s=function(){if(t){var d,m;(d=n.current)===null||d===void 0||(m=d.focus)===null||m===void 0||m.call(d),r==null||r(!1);}},c=function(){var d;return (d=a.current)!==null&&d!==void 0&&d.focus?(a.current.focus(),i.current=!0,!0):!1},l=function(d){switch(d.keyCode){case ZF:s();break;case QF:{var m=!1;i.current||(m=c()),m?d.preventDefault():s();break}}};f__namespace.useEffect(function(){return t?(window.addEventListener("keydown",l),o&&wt(c,3),function(){window.removeEventListener("keydown",l),i.current=!1;}):function(){i.current=!1;}},[t]);}var e8=f.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,a=f.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),i=Kn(t,a==null?void 0:a.ref);return f.createElement(f.Fragment,null,r&&f.createElement("div",{className:"".concat(o,"-arrow")}),f.cloneElement(a,{ref:To(a)?i:void 0}))}),Ca={adjustX:1,adjustY:1},Sa=[0,0],t8={topLeft:{points:["bl","tl"],overflow:Ca,offset:[0,-4],targetOffset:Sa},top:{points:["bc","tc"],overflow:Ca,offset:[0,-4],targetOffset:Sa},topRight:{points:["br","tr"],overflow:Ca,offset:[0,-4],targetOffset:Sa},bottomLeft:{points:["tl","bl"],overflow:Ca,offset:[0,4],targetOffset:Sa},bottom:{points:["tc","bc"],overflow:Ca,offset:[0,4],targetOffset:Sa},bottomRight:{points:["tr","br"],overflow:Ca,offset:[0,4],targetOffset:Sa}},n8=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function r8(e,t){var n,r=e.arrow,o=r===void 0?!1:r,a=e.prefixCls,i=a===void 0?"rc-dropdown":a,s=e.transitionName,c=e.animation,l=e.align,u=e.placement,d=u===void 0?"bottomLeft":u,m=e.placements,g=m===void 0?t8:m,v=e.getPopupContainer,h=e.showAction,p=e.hideAction,b=e.overlayClassName,y=e.overlayStyle,S=e.visible,x=e.trigger,E=x===void 0?["hover"]:x,$=e.autoFocus,C=e.overlay,w=e.children,O=e.onVisibleChange,_=Ze(e,n8),T=f.useState(),I=J(T,2),P=I[0],R=I[1],k="visible"in e?S:P,N=f.useRef(null),M=f.useRef(null),L=f.useRef(null);f.useImperativeHandle(t,function(){return N.current});var j=function(G){R(G),O==null||O(G);};JF({visible:k,triggerRef:L,onVisibleChange:j,autoFocus:$,overlayRef:M});var F=function(G){var ee=e.onOverlayClick;R(!1),ee&&ee(G);},K=function(){return f.createElement(e8,{ref:M,overlay:C,prefixCls:i,arrow:o})},B=function(){return typeof C=="function"?K:K()},W=function(){var G=e.minOverlayWidthMatchTrigger,ee=e.alignPoint;return "minOverlayWidthMatchTrigger"in e?G:!ee},H=function(){var G=e.openClassName;return G!==void 0?G:"".concat(i,"-open")},Y=f.cloneElement(w,{className:V((n=w.props)===null||n===void 0?void 0:n.className,k&&H()),ref:To(w)?Kn(L,w.ref):void 0}),U=p;return !U&&E.indexOf("contextMenu")!==-1&&(U=["click"]),f.createElement(gu,Oe({builtinPlacements:g},_,{prefixCls:i,ref:N,popupClassName:V(b,D({},"".concat(i,"-show-arrow"),o)),popupStyle:y,action:E,showAction:h,hideAction:U,popupPlacement:d,popupAlign:l,popupTransitionName:s,popupAnimation:c,popupVisible:k,stretch:W()?"minWidth":"",popup:B(),onPopupVisibleChange:j,onPopupClick:F,getPopupContainer:v}),Y)}const cS=f.forwardRef(r8);var o8=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],$a=void 0;function a8(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,a=e.renderItem,i=e.responsive,s=e.responsiveDisabled,c=e.registerSize,l=e.itemKey,u=e.className,d=e.style,m=e.children,g=e.display,v=e.order,h=e.component,p=h===void 0?"div":h,b=Ze(e,o8),y=i&&!g;function S(w){c(l,w);}f__namespace.useEffect(function(){return function(){S(null);}},[]);var x=a&&o!==$a?a(o):m,E;r||(E={opacity:y?0:1,height:y?0:$a,overflowY:y?"hidden":$a,order:i?v:$a,pointerEvents:y?"none":$a,position:y?"absolute":$a});var $={};y&&($["aria-hidden"]=!0);var C=f__namespace.createElement(p,Oe({className:V(!r&&n,u),style:q(q({},E),d)},$,b,{ref:t}),x);return i&&(C=f__namespace.createElement(pr,{onResize:function(O){var _=O.offsetWidth;S(_);},disabled:s},C)),C}var Gi=f__namespace.forwardRef(a8);Gi.displayName="Item";function i8(e){if(typeof MessageChannel>"u")wt(e);else {var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0);}}function s8(){var e=f__namespace.useRef(null),t=function(r){e.current||(e.current=[],i8(function(){Q0.unstable_batchedUpdates(function(){e.current.forEach(function(o){o();}),e.current=null;});})),e.current.push(r);};return t}function Pi(e,t){var n=f__namespace.useState(t),r=J(n,2),o=r[0],a=r[1],i=Mn(function(s){e(function(){a(s);});});return [o,i]}var lc=f.createContext(null),l8=["component"],c8=["className"],u8=["className"],d8=function(t,n){var r=f__namespace.useContext(lc);if(!r){var o=t.component,a=o===void 0?"div":o,i=Ze(t,l8);return f__namespace.createElement(a,Oe({},i,{ref:n}))}var s=r.className,c=Ze(r,c8),l=t.className,u=Ze(t,u8);return f__namespace.createElement(lc.Provider,{value:null},f__namespace.createElement(Gi,Oe({ref:n,className:V(s,l)},c,u)))},uS=f__namespace.forwardRef(d8);uS.displayName="RawItem";var f8=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],dS="responsive",fS="invalidate";function m8(e){return "+ ".concat(e.length," ...")}function g8(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,a=o===void 0?[]:o,i=e.renderItem,s=e.renderRawItem,c=e.itemKey,l=e.itemWidth,u=l===void 0?10:l,d=e.ssr,m=e.style,g=e.className,v=e.maxCount,h=e.renderRest,p=e.renderRawRest,b=e.suffix,y=e.component,S=y===void 0?"div":y,x=e.itemComponent,E=e.onVisibleChange,$=Ze(e,f8),C=d==="full",w=s8(),O=Pi(w,null),_=J(O,2),T=_[0],I=_[1],P=T||0,R=Pi(w,new Map),k=J(R,2),N=k[0],M=k[1],L=Pi(w,0),j=J(L,2),F=j[0],K=j[1],B=Pi(w,0),W=J(B,2),H=W[0],Y=W[1],U=Pi(w,0),X=J(U,2),G=X[0],ee=X[1],te=f.useState(null),ie=J(te,2),le=ie[0],Q=ie[1],oe=f.useState(null),ue=J(oe,2),Z=ue[0],ae=ue[1],ne=f__namespace.useMemo(function(){return Z===null&&C?Number.MAX_SAFE_INTEGER:Z||0},[Z,T]),se=f.useState(!1),ve=J(se,2),ge=ve[0],ke=ve[1],Ae="".concat(r,"-item"),Me=Math.max(F,H),Ee=v===dS,he=a.length&&Ee,Pe=v===fS,Qe=he||typeof v=="number"&&a.length>v,Be=f.useMemo(function(){var ye=a;return he?T===null&&C?ye=a:ye=a.slice(0,Math.min(a.length,P/u)):typeof v=="number"&&(ye=a.slice(0,v)),ye},[a,u,T,v,he]),Ke=f.useMemo(function(){return he?a.slice(ne+1):a.slice(Be.length)},[a,Be,he,ne]),ze=f.useCallback(function(ye,fe){var me;return typeof c=="function"?c(ye):(me=c&&(ye==null?void 0:ye[c]))!==null&&me!==void 0?me:fe},[c]),mt=f.useCallback(i||function(ye){return ye},[i]);function et(ye,fe,me){Z===ye&&(fe===void 0||fe===le)||(ae(ye),me||(ke(ye<a.length-1),E==null||E(ye)),fe!==void 0&&Q(fe));}function ot(ye,fe){I(fe.clientWidth);}function Ve(ye,fe){M(function(me){var xe=new Map(me);return fe===null?xe.delete(ye):xe.set(ye,fe),xe});}function ct(ye,fe){Y(fe),K(H);}function bt(ye,fe){ee(fe);}function at(ye){return N.get(ze(Be[ye],ye))}Ht(function(){if(P&&typeof Me=="number"&&Be){var ye=G,fe=Be.length,me=fe-1;if(!fe){et(0,null);return}for(var xe=0;xe<fe;xe+=1){var Le=at(xe);if(C&&(Le=Le||0),Le===void 0){et(xe-1,void 0,!0);break}if(ye+=Le,me===0&&ye<=P||xe===me-1&&ye+at(me)<=P){et(me,null);break}else if(ye+Me>P){et(xe-1,ye-Le-G+H);break}}b&&at(0)+G>P&&Q(null);}},[P,N,H,G,ze,Be]);var it=ge&&!!Ke.length,_e={};le!==null&&he&&(_e={position:"absolute",left:le,top:0});var de={prefixCls:Ae,responsive:he,component:x,invalidate:Pe},$e=s?function(ye,fe){var me=ze(ye,fe);return f__namespace.createElement(lc.Provider,{key:me,value:q(q({},de),{},{order:fe,item:ye,itemKey:me,registerSize:Ve,display:fe<=ne})},s(ye,fe))}:function(ye,fe){var me=ze(ye,fe);return f__namespace.createElement(Gi,Oe({},de,{order:fe,key:me,item:ye,renderItem:mt,itemKey:me,registerSize:Ve,display:fe<=ne}))},pe,we={order:it?ne:Number.MAX_SAFE_INTEGER,className:"".concat(Ae,"-rest"),registerSize:ct,display:it};if(p)p&&(pe=f__namespace.createElement(lc.Provider,{value:q(q({},de),we)},p(Ke)));else {var He=h||m8;pe=f__namespace.createElement(Gi,Oe({},de,we),typeof He=="function"?He(Ke):He);}var De=f__namespace.createElement(S,Oe({className:V(!Pe&&r,g),style:m,ref:t},$),Be.map($e),Qe?pe:null,b&&f__namespace.createElement(Gi,Oe({},de,{responsive:Ee,responsiveDisabled:!he,order:ne,className:"".concat(Ae,"-suffix"),registerSize:bt,display:!0,style:_e}),b));return Ee&&(De=f__namespace.createElement(pr,{onResize:ot,disabled:!he},De)),De}var Gr=f__namespace.forwardRef(g8);Gr.displayName="Overflow";Gr.Item=uS;Gr.RESPONSIVE=dS;Gr.INVALIDATE=fS;var mS=f__namespace.createContext(null);function uv(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function gS(e){var t=f__namespace.useContext(mS);return uv(t,e)}var v8=["children","locked"],Ar=f__namespace.createContext(null);function h8(e,t){var n=q({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o);}),n}function ds(e){var t=e.children,n=e.locked,r=Ze(e,v8),o=f__namespace.useContext(Ar),a=Ps(function(){return h8(o,r)},[o,r],function(i,s){return !n&&(i[0]!==s[0]||!Is(i[1],s[1],!0))});return f__namespace.createElement(Ar.Provider,{value:a},t)}var p8=[],vS=f__namespace.createContext(null);function Ru(){return f__namespace.useContext(vS)}var hS=f__namespace.createContext(p8);function yi(e){var t=f__namespace.useContext(hS);return f__namespace.useMemo(function(){return e!==void 0?[].concat(Re(t),[e]):t},[t,e])}var pS=f__namespace.createContext(null),dv=f__namespace.createContext({});function Ob(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(jg(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),a=Number(o),i=null;return o&&!Number.isNaN(a)?i=a:r&&i===null&&(i=0),r&&e.disabled&&(i=null),i!==null&&(i>=0||t&&i<0)}return !1}function b8(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Re(e.querySelectorAll("*")).filter(function(r){return Ob(r,t)});return Ob(e,t)&&n.unshift(e),n}var im=ce.LEFT,sm=ce.RIGHT,lm=ce.UP,Ll=ce.DOWN,jl=ce.ENTER,bS=ce.ESC,_i=ce.HOME,Ri=ce.END,Ib=[lm,Ll,im,sm];function y8(e,t,n,r){var o,a,i,s,c="prev",l="next",u="children",d="parent";if(e==="inline"&&r===jl)return {inlineTrigger:!0};var m=(o={},D(o,lm,c),D(o,Ll,l),o),g=(a={},D(a,im,n?l:c),D(a,sm,n?c:l),D(a,Ll,u),D(a,jl,u),a),v=(i={},D(i,lm,c),D(i,Ll,l),D(i,jl,u),D(i,bS,d),D(i,im,n?u:d),D(i,sm,n?d:u),i),h={inline:m,horizontal:g,vertical:v,inlineSub:m,horizontalSub:v,verticalSub:v},p=(s=h["".concat(e).concat(t?"":"Sub")])===null||s===void 0?void 0:s[r];switch(p){case c:return {offset:-1,sibling:!0};case l:return {offset:1,sibling:!0};case d:return {offset:-1,sibling:!1};case u:return {offset:1,sibling:!1};default:return null}}function C8(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement;}return null}function S8(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement;}return null}function yS(e,t){var n=b8(e,!0);return n.filter(function(r){return t.has(r)})}function Pb(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=yS(e,t),a=o.length,i=o.findIndex(function(s){return n===s});return r<0?i===-1?i=a-1:i-=1:r>0&&(i+=1),i=(i+a)%a,o[i]}function $8(e,t,n,r,o,a,i,s,c,l){var u=f__namespace.useRef(),d=f__namespace.useRef();d.current=t;var m=function(){wt.cancel(u.current);};return f__namespace.useEffect(function(){return function(){m();}},[]),function(g){var v=g.which;if([].concat(Ib,[jl,bS,_i,Ri]).includes(v)){var h,p,b,y=function(){h=new Set,p=new Map,b=new Map;var k=a();return k.forEach(function(N){var M=document.querySelector("[data-menu-id='".concat(uv(r,N),"']"));M&&(h.add(M),b.set(M,N),p.set(N,M));}),h};y();var S=p.get(t),x=S8(S,h),E=b.get(x),$=y8(e,i(E,!0).length===1,n,v);if(!$&&v!==_i&&v!==Ri)return;(Ib.includes(v)||[_i,Ri].includes(v))&&g.preventDefault();var C=function(k){if(k){var N=k,M=k.querySelector("a");M!=null&&M.getAttribute("href")&&(N=M);var L=b.get(k);s(L),m(),u.current=wt(function(){d.current===L&&N.focus();});}};if([_i,Ri].includes(v)||$.sibling||!x){var w;!x||e==="inline"?w=o.current:w=C8(x);var O,_=yS(w,h);v===_i?O=_[0]:v===Ri?O=_[_.length-1]:O=Pb(w,h,x,$.offset),C(O);}else if($.inlineTrigger)c(E);else if($.offset>0)c(E,!0),m(),u.current=wt(function(){y();var R=x.getAttribute("aria-controls"),k=document.getElementById(R),N=Pb(k,h);C(N);},5);else if($.offset<0){var T=i(E,!0),I=T[T.length-2],P=p.get(I);c(I,!1),C(P);}}l==null||l(g);}}function w8(e){Promise.resolve().then(e);}var fv="__RC_UTIL_PATH_SPLIT__",_b=function(t){return t.join(fv)},x8=function(t){return t.split(fv)},cm="rc-menu-more";function E8(){var e=f__namespace.useState({}),t=J(e,2),n=t[1],r=f.useRef(new Map),o=f.useRef(new Map),a=f__namespace.useState([]),i=J(a,2),s=i[0],c=i[1],l=f.useRef(0),u=f.useRef(!1),d=function(){u.current||n({});},m=f.useCallback(function(S,x){var E=_b(x);o.current.set(E,S),r.current.set(S,E),l.current+=1;var $=l.current;w8(function(){$===l.current&&d();});},[]),g=f.useCallback(function(S,x){var E=_b(x);o.current.delete(E),r.current.delete(S);},[]),v=f.useCallback(function(S){c(S);},[]),h=f.useCallback(function(S,x){var E=r.current.get(S)||"",$=x8(E);return x&&s.includes($[0])&&$.unshift(cm),$},[s]),p=f.useCallback(function(S,x){return S.some(function(E){var $=h(E,!0);return $.includes(x)})},[h]),b=function(){var x=Re(r.current.keys());return s.length&&x.push(cm),x},y=f.useCallback(function(S){var x="".concat(r.current.get(S)).concat(fv),E=new Set;return Re(o.current.keys()).forEach(function($){$.startsWith(x)&&E.add(o.current.get($));}),E},[]);return f__namespace.useEffect(function(){return function(){u.current=!0;}},[]),{registerPath:m,unregisterPath:g,refreshOverflowKeys:v,isSubPathKey:p,getKeyPath:h,getKeys:b,getSubPathKeys:y}}function zi(e){var t=f__namespace.useRef(e);t.current=e;var n=f__namespace.useCallback(function(){for(var r,o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return (r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(a))},[]);return e?n:void 0}var O8=Math.random().toFixed(5).toString().slice(2),Rb=0;function I8(e){var t=Wt(e,{value:e}),n=J(t,2),r=n[0],o=n[1];return f__namespace.useEffect(function(){Rb+=1;var a="".concat(O8,"-").concat(Rb);o("rc-menu-uuid-".concat(a));},[]),r}function CS(e,t,n,r){var o=f__namespace.useContext(Ar),a=o.activeKey,i=o.onActive,s=o.onInactive,c={active:a===e};return t||(c.onMouseEnter=function(l){n==null||n({key:e,domEvent:l}),i(e);},c.onMouseLeave=function(l){r==null||r({key:e,domEvent:l}),s(e);}),c}function SS(e){var t=f__namespace.useContext(Ar),n=t.mode,r=t.rtl,o=t.inlineIndent;if(n!=="inline")return null;var a=e;return r?{paddingRight:a*o}:{paddingLeft:a*o}}function $S(e){var t=e.icon,n=e.props,r=e.children,o;return t===null||t===!1?null:(typeof t=="function"?o=f__namespace.createElement(t,q({},n)):typeof t!="boolean"&&(o=t),o||r||null)}var P8=["item"];function cc(e){var t=e.item,n=Ze(e,P8);return Object.defineProperty(n,"item",{get:function(){return gn(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var _8=["title","attribute","elementRef"],R8=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],T8=["active"],M8=function(e){Mo(n,e);var t=No(n);function n(){return hn(this,n),t.apply(this,arguments)}return pn(n,[{key:"render",value:function(){var o=this.props,a=o.title,i=o.attribute,s=o.elementRef,c=Ze(o,_8),l=An(c,["eventKey","popupClassName","popupOffset","onTitleClick"]);return gn(!i,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),f__namespace.createElement(Gr.Item,Oe({},i,{title:typeof a=="string"?a:void 0},l,{ref:s}))}}]),n}(f__namespace.Component),N8=f__namespace.forwardRef(function(e,t){var n,r=e.style,o=e.className,a=e.eventKey;e.warnKey;var i=e.disabled,s=e.itemIcon,c=e.children,l=e.role,u=e.onMouseEnter,d=e.onMouseLeave,m=e.onClick,g=e.onKeyDown,v=e.onFocus,h=Ze(e,R8),p=gS(a),b=f__namespace.useContext(Ar),y=b.prefixCls,S=b.onItemClick,x=b.disabled,E=b.overflowDisabled,$=b.itemIcon,C=b.selectedKeys,w=b.onActive,O=f__namespace.useContext(dv),_=O._internalRenderMenuItem,T="".concat(y,"-item"),I=f__namespace.useRef(),P=f__namespace.useRef(),R=x||i,k=aa(t,P),N=yi(a),M=function(te){return {key:a,keyPath:Re(N).reverse(),item:I.current,domEvent:te}},L=s||$,j=CS(a,R,u,d),F=j.active,K=Ze(j,T8),B=C.includes(a),W=SS(N.length),H=function(te){if(!R){var ie=M(te);m==null||m(cc(ie)),S(ie);}},Y=function(te){if(g==null||g(te),te.which===ce.ENTER){var ie=M(te);m==null||m(cc(ie)),S(ie);}},U=function(te){w(a),v==null||v(te);},X={};e.role==="option"&&(X["aria-selected"]=B);var G=f__namespace.createElement(M8,Oe({ref:I,elementRef:k,role:l===null?"none":l||"menuitem",tabIndex:i?null:-1,"data-menu-id":E&&p?null:p},h,K,X,{component:"li","aria-disabled":i,style:q(q({},W),r),className:V(T,(n={},D(n,"".concat(T,"-active"),F),D(n,"".concat(T,"-selected"),B),D(n,"".concat(T,"-disabled"),R),n),o),onClick:H,onKeyDown:Y,onFocus:U}),c,f__namespace.createElement($S,{props:q(q({},e),{},{isSelected:B}),icon:L}));return _&&(G=_(G,e,{selected:B})),G});function k8(e,t){var n=e.eventKey,r=Ru(),o=yi(n);return f__namespace.useEffect(function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o);}},[o]),r?null:f__namespace.createElement(N8,Oe({},e,{ref:t}))}const Ds=f__namespace.forwardRef(k8);var A8=["className","children"],L8=function(t,n){var r=t.className,o=t.children,a=Ze(t,A8),i=f__namespace.useContext(Ar),s=i.prefixCls,c=i.mode,l=i.rtl;return f__namespace.createElement("ul",Oe({className:V(s,l&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat(c==="inline"?"inline":"vertical"),r),role:"menu"},a,{"data-menu-list":!0,ref:n}),o)},mv=f__namespace.forwardRef(L8);mv.displayName="SubMenuList";function gv(e,t){return ir(e).map(function(n,r){if(f__namespace.isValidElement(n)){var o,a,i=n.key,s=(o=(a=n.props)===null||a===void 0?void 0:a.eventKey)!==null&&o!==void 0?o:i,c=s==null;c&&(s="tmp_key-".concat([].concat(Re(t),[r]).join("-")));var l={key:s,eventKey:s};return f__namespace.cloneElement(n,l)}return n})}var Tn={adjustX:1,adjustY:1},j8={topLeft:{points:["bl","tl"],overflow:Tn},topRight:{points:["br","tr"],overflow:Tn},bottomLeft:{points:["tl","bl"],overflow:Tn},bottomRight:{points:["tr","br"],overflow:Tn},leftTop:{points:["tr","tl"],overflow:Tn},leftBottom:{points:["br","bl"],overflow:Tn},rightTop:{points:["tl","tr"],overflow:Tn},rightBottom:{points:["bl","br"],overflow:Tn}},z8={topLeft:{points:["bl","tl"],overflow:Tn},topRight:{points:["br","tr"],overflow:Tn},bottomLeft:{points:["tl","bl"],overflow:Tn},bottomRight:{points:["tr","br"],overflow:Tn},rightTop:{points:["tr","tl"],overflow:Tn},rightBottom:{points:["br","bl"],overflow:Tn},leftTop:{points:["tl","tr"],overflow:Tn},leftBottom:{points:["bl","br"],overflow:Tn}};function wS(e,t,n){if(t)return t;if(n)return n[e]||n.other}var D8={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function F8(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,a=e.popupStyle,i=e.popupClassName,s=e.popupOffset,c=e.disabled,l=e.mode,u=e.onVisibleChange,d=f__namespace.useContext(Ar),m=d.getPopupContainer,g=d.rtl,v=d.subMenuOpenDelay,h=d.subMenuCloseDelay,p=d.builtinPlacements,b=d.triggerSubMenuAction,y=d.forceSubMenuRender,S=d.rootClassName,x=d.motion,E=d.defaultMotions,$=f__namespace.useState(!1),C=J($,2),w=C[0],O=C[1],_=q(g?q({},z8):q({},j8),p),T=D8[l],I=wS(l,x,E),P=f__namespace.useRef(I);l!=="inline"&&(P.current=I);var R=q(q({},P.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),k=f__namespace.useRef();return f__namespace.useEffect(function(){return k.current=wt(function(){O(n);}),function(){wt.cancel(k.current);}},[n]),f__namespace.createElement(gu,{prefixCls:t,popupClassName:V("".concat(t,"-popup"),D({},"".concat(t,"-rtl"),g),i,S),stretch:l==="horizontal"?"minWidth":null,getPopupContainer:m,builtinPlacements:_,popupPlacement:T,popupVisible:w,popup:o,popupStyle:a,popupAlign:s&&{offset:s},action:c?[]:[b],mouseEnterDelay:v,mouseLeaveDelay:h,onPopupVisibleChange:u,forceRender:y,popupMotion:R,fresh:!0},r)}function B8(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,a="inline",i=f__namespace.useContext(Ar),s=i.prefixCls,c=i.forceSubMenuRender,l=i.motion,u=i.defaultMotions,d=i.mode,m=f__namespace.useRef(!1);m.current=d===a;var g=f__namespace.useState(!m.current),v=J(g,2),h=v[0],p=v[1],b=m.current?n:!1;f__namespace.useEffect(function(){m.current&&p(!1);},[d]);var y=q({},wS(a,l,u));r.length>1&&(y.motionAppear=!1);var S=y.onVisibleChanged;return y.onVisibleChanged=function(x){return !m.current&&!x&&p(!0),S==null?void 0:S(x)},h?null:f__namespace.createElement(ds,{mode:a,locked:!m.current},f__namespace.createElement(go,Oe({visible:b},y,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(x){var E=x.className,$=x.style;return f__namespace.createElement(mv,{id:t,className:E,style:$},o)}))}var H8=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],W8=["active"],V8=function(t){var n,r=t.style,o=t.className,a=t.title,i=t.eventKey;t.warnKey;var s=t.disabled,c=t.internalPopupClose,l=t.children,u=t.itemIcon,d=t.expandIcon,m=t.popupClassName,g=t.popupOffset,v=t.popupStyle,h=t.onClick,p=t.onMouseEnter,b=t.onMouseLeave,y=t.onTitleClick,S=t.onTitleMouseEnter,x=t.onTitleMouseLeave,E=Ze(t,H8),$=gS(i),C=f__namespace.useContext(Ar),w=C.prefixCls,O=C.mode,_=C.openKeys,T=C.disabled,I=C.overflowDisabled,P=C.activeKey,R=C.selectedKeys,k=C.itemIcon,N=C.expandIcon,M=C.onItemClick,L=C.onOpenChange,j=C.onActive,F=f__namespace.useContext(dv),K=F._internalRenderSubMenuItem,B=f__namespace.useContext(pS),W=B.isSubPathKey,H=yi(),Y="".concat(w,"-submenu"),U=T||s,X=f__namespace.useRef(),G=f__namespace.useRef(),ee=u??k,te=d??N,ie=_.includes(i),le=!I&&ie,Q=W(R,i),oe=CS(i,U,S,x),ue=oe.active,Z=Ze(oe,W8),ae=f__namespace.useState(!1),ne=J(ae,2),se=ne[0],ve=ne[1],ge=function(ct){U||ve(ct);},ke=function(ct){ge(!0),p==null||p({key:i,domEvent:ct});},Ae=function(ct){ge(!1),b==null||b({key:i,domEvent:ct});},Me=f__namespace.useMemo(function(){return ue||(O!=="inline"?se||W([P],i):!1)},[O,ue,P,se,i,W]),Ee=SS(H.length),he=function(ct){U||(y==null||y({key:i,domEvent:ct}),O==="inline"&&L(i,!ie));},Pe=zi(function(Ve){h==null||h(cc(Ve)),M(Ve);}),Qe=function(ct){O!=="inline"&&L(i,ct);},Be=function(){j(i);},Ke=$&&"".concat($,"-popup"),ze=f__namespace.createElement("div",Oe({role:"menuitem",style:Ee,className:"".concat(Y,"-title"),tabIndex:U?null:-1,ref:X,title:typeof a=="string"?a:null,"data-menu-id":I&&$?null:$,"aria-expanded":le,"aria-haspopup":!0,"aria-controls":Ke,"aria-disabled":U,onClick:he,onFocus:Be},Z),a,f__namespace.createElement($S,{icon:O!=="horizontal"?te:void 0,props:q(q({},t),{},{isOpen:le,isSubMenu:!0})},f__namespace.createElement("i",{className:"".concat(Y,"-arrow")}))),mt=f__namespace.useRef(O);if(O!=="inline"&&H.length>1?mt.current="vertical":mt.current=O,!I){var et=mt.current;ze=f__namespace.createElement(F8,{mode:et,prefixCls:Y,visible:!c&&le&&O!=="inline",popupClassName:m,popupOffset:g,popupStyle:v,popup:f__namespace.createElement(ds,{mode:et==="horizontal"?"vertical":et},f__namespace.createElement(mv,{id:Ke,ref:G},l)),disabled:U,onVisibleChange:Qe},ze);}var ot=f__namespace.createElement(Gr.Item,Oe({role:"none"},E,{component:"li",style:r,className:V(Y,"".concat(Y,"-").concat(O),o,(n={},D(n,"".concat(Y,"-open"),le),D(n,"".concat(Y,"-active"),Me),D(n,"".concat(Y,"-selected"),Q),D(n,"".concat(Y,"-disabled"),U),n)),onMouseEnter:ke,onMouseLeave:Ae}),ze,!I&&f__namespace.createElement(B8,{id:Ke,open:le,keyPath:H},l));return K&&(ot=K(ot,t,{selected:Q,active:Me,open:le,disabled:U})),f__namespace.createElement(ds,{onItemClick:Pe,mode:O==="horizontal"?"vertical":O,itemIcon:ee,expandIcon:te},ot)};function Tu(e){var t=e.eventKey,n=e.children,r=yi(t),o=gv(n,r),a=Ru();f__namespace.useEffect(function(){if(a)return a.registerPath(t,r),function(){a.unregisterPath(t,r);}},[r]);var i;return a?i=o:i=f__namespace.createElement(V8,e,o),f__namespace.createElement(hS.Provider,{value:r},i)}var K8=["className","title","eventKey","children"],G8=["children"],U8=function(t){var n=t.className,r=t.title;t.eventKey;var o=t.children,a=Ze(t,K8),i=f__namespace.useContext(Ar),s=i.prefixCls,c="".concat(s,"-item-group");return f__namespace.createElement("li",Oe({role:"presentation"},a,{onClick:function(u){return u.stopPropagation()},className:V(c,n)}),f__namespace.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:typeof r=="string"?r:void 0},r),f__namespace.createElement("ul",{role:"group",className:"".concat(c,"-list")},o))};function Mu(e){var t=e.children,n=Ze(e,G8),r=yi(n.eventKey),o=gv(t,r),a=Ru();return a?o:f__namespace.createElement(U8,An(n,["warnKey"]),o)}function vv(e){var t=e.className,n=e.style,r=f__namespace.useContext(Ar),o=r.prefixCls,a=Ru();return a?null:f__namespace.createElement("li",{role:"separator",className:V("".concat(o,"-item-divider"),t),style:n})}var X8=["label","children","key","type"];function um(e){return (e||[]).map(function(t,n){if(t&&rt(t)==="object"){var r=t,o=r.label,a=r.children,i=r.key,s=r.type,c=Ze(r,X8),l=i??"tmp-".concat(n);return a||s==="group"?s==="group"?f__namespace.createElement(Mu,Oe({key:l},c,{title:o}),um(a)):f__namespace.createElement(Tu,Oe({key:l},c,{title:o}),um(a)):s==="divider"?f__namespace.createElement(vv,Oe({key:l},c)):f__namespace.createElement(Ds,Oe({key:l},c),o)}return null}).filter(function(t){return t})}function q8(e,t,n){var r=e;return t&&(r=um(t)),gv(r,n)}var Y8=["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"],wa=[],Z8=f__namespace.forwardRef(function(e,t){var n,r,o=e,a=o.prefixCls,i=a===void 0?"rc-menu":a,s=o.rootClassName,c=o.style,l=o.className,u=o.tabIndex,d=u===void 0?0:u,m=o.items,g=o.children,v=o.direction,h=o.id,p=o.mode,b=p===void 0?"vertical":p,y=o.inlineCollapsed,S=o.disabled,x=o.disabledOverflow,E=o.subMenuOpenDelay,$=E===void 0?.1:E,C=o.subMenuCloseDelay,w=C===void 0?.1:C,O=o.forceSubMenuRender,_=o.defaultOpenKeys,T=o.openKeys,I=o.activeKey,P=o.defaultActiveFirst,R=o.selectable,k=R===void 0?!0:R,N=o.multiple,M=N===void 0?!1:N,L=o.defaultSelectedKeys,j=o.selectedKeys,F=o.onSelect,K=o.onDeselect,B=o.inlineIndent,W=B===void 0?24:B,H=o.motion,Y=o.defaultMotions,U=o.triggerSubMenuAction,X=U===void 0?"hover":U,G=o.builtinPlacements,ee=o.itemIcon,te=o.expandIcon,ie=o.overflowedIndicator,le=ie===void 0?"...":ie,Q=o.overflowedIndicatorPopupClassName,oe=o.getPopupContainer,ue=o.onClick,Z=o.onOpenChange,ae=o.onKeyDown;o.openAnimation,o.openTransitionName;var ne=o._internalRenderMenuItem,se=o._internalRenderSubMenuItem,ve=Ze(o,Y8),ge=f__namespace.useMemo(function(){return q8(g,m,wa)},[g,m]),ke=f__namespace.useState(!1),Ae=J(ke,2),Me=Ae[0],Ee=Ae[1],he=f__namespace.useRef(),Pe=I8(h),Qe=v==="rtl",Be=Wt(_,{value:T,postState:function(Je){return Je||wa}}),Ke=J(Be,2),ze=Ke[0],mt=Ke[1],et=function(Je){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function yt(){mt(Je),Z==null||Z(Je);}dt?Q0.flushSync(yt):yt();},ot=f__namespace.useState(ze),Ve=J(ot,2),ct=Ve[0],bt=Ve[1],at=f__namespace.useRef(!1),it=f__namespace.useMemo(function(){return (b==="inline"||b==="vertical")&&y?["vertical",y]:[b,!1]},[b,y]),_e=J(it,2),de=_e[0],$e=_e[1],pe=de==="inline",we=f__namespace.useState(de),He=J(we,2),De=He[0],ye=He[1],fe=f__namespace.useState($e),me=J(fe,2),xe=me[0],Le=me[1];f__namespace.useEffect(function(){ye(de),Le($e),at.current&&(pe?mt(ct):et(wa));},[de,$e]);var qe=f__namespace.useState(0),st=J(qe,2),vt=st[0],kt=st[1],zt=vt>=ge.length-1||De!=="horizontal"||x;f__namespace.useEffect(function(){pe&&bt(ze);},[ze]),f__namespace.useEffect(function(){return at.current=!0,function(){at.current=!1;}},[]);var ut=E8(),Ft=ut.registerPath,ht=ut.unregisterPath,Ne=ut.refreshOverflowKeys,Ie=ut.isSubPathKey,Se=ut.getKeyPath,be=ut.getKeys,Ge=ut.getSubPathKeys,Ue=f__namespace.useMemo(function(){return {registerPath:Ft,unregisterPath:ht}},[Ft,ht]),Ct=f__namespace.useMemo(function(){return {isSubPathKey:Ie}},[Ie]);f__namespace.useEffect(function(){Ne(zt?wa:ge.slice(vt+1).map(function(je){return je.key}));},[vt,zt]);var On=Wt(I||P&&((n=ge[0])===null||n===void 0?void 0:n.key),{value:I}),bn=J(On,2),yn=bn[0],mn=bn[1],In=zi(function(je){mn(je);}),qn=zi(function(){mn(void 0);});f.useImperativeHandle(t,function(){return {list:he.current,focus:function(Je){var dt,yt=yn??((dt=ge.find(function(Gn){return !Gn.props.disabled}))===null||dt===void 0?void 0:dt.key);if(yt){var _t,Yt,Pn;(_t=he.current)===null||_t===void 0||(Yt=_t.querySelector("li[data-menu-id='".concat(uv(Pe,yt),"']")))===null||Yt===void 0||(Pn=Yt.focus)===null||Pn===void 0||Pn.call(Yt,Je);}}}});var ko=Wt(L||[],{value:j,postState:function(Je){return Array.isArray(Je)?Je:Je==null?wa:[Je]}}),Yn=J(ko,2),jn=Yn[0],Qr=Yn[1],cr=function(Je){if(k){var dt=Je.key,yt=jn.includes(dt),_t;M?yt?_t=jn.filter(function(Pn){return Pn!==dt}):_t=[].concat(Re(jn),[dt]):_t=[dt],Qr(_t);var Yt=q(q({},Je),{},{selectedKeys:_t});yt?K==null||K(Yt):F==null||F(Yt);}!M&&ze.length&&De!=="inline"&&et(wa);},ur=zi(function(je){ue==null||ue(cc(je)),cr(je);}),Zn=zi(function(je,Je){var dt=ze.filter(function(_t){return _t!==je});if(Je)dt.push(je);else if(De!=="inline"){var yt=Ge(je);dt=dt.filter(function(_t){return !yt.has(_t)});}Is(ze,dt,!0)||et(dt,!0);}),wr=function(Je,dt){var yt=dt??!ze.includes(Je);Zn(Je,yt);},zr=$8(De,yn,Qe,Pe,he,be,Se,mn,wr,ae);f__namespace.useEffect(function(){Ee(!0);},[]);var xr=f__namespace.useMemo(function(){return {_internalRenderMenuItem:ne,_internalRenderSubMenuItem:se}},[ne,se]),zn=De!=="horizontal"||x?ge:ge.map(function(je,Je){return f__namespace.createElement(ds,{key:je.key,overflowDisabled:Je>vt},je)}),ft=f__namespace.createElement(Gr,Oe({id:h,ref:he,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:Ds,className:V(i,"".concat(i,"-root"),"".concat(i,"-").concat(De),l,(r={},D(r,"".concat(i,"-inline-collapsed"),xe),D(r,"".concat(i,"-rtl"),Qe),r),s),dir:v,style:c,role:"menu",tabIndex:d,data:zn,renderRawItem:function(Je){return Je},renderRawRest:function(Je){var dt=Je.length,yt=dt?ge.slice(-dt):null;return f__namespace.createElement(Tu,{eventKey:cm,title:le,disabled:zt,internalPopupClose:dt===0,popupClassName:Q},yt)},maxCount:De!=="horizontal"||x?Gr.INVALIDATE:Gr.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Je){kt(Je);},onKeyDown:zr},ve));return f__namespace.createElement(dv.Provider,{value:xr},f__namespace.createElement(mS.Provider,{value:Pe},f__namespace.createElement(ds,{prefixCls:i,rootClassName:s,mode:De,openKeys:ze,rtl:Qe,disabled:S,motion:Me?H:null,defaultMotions:Me?Y:null,activeKey:yn,onActive:In,onInactive:qn,selectedKeys:jn,inlineIndent:W,subMenuOpenDelay:$,subMenuCloseDelay:w,forceSubMenuRender:O,builtinPlacements:G,triggerSubMenuAction:X,getPopupContainer:oe,itemIcon:ee,expandIcon:te,onItemClick:ur,onOpenChange:Zn},f__namespace.createElement(pS.Provider,{value:Ct},ft),f__namespace.createElement("div",{style:{display:"none"},"aria-hidden":!0},f__namespace.createElement(vS.Provider,{value:Ue},ge)))))}),Ci=Z8;Ci.Item=Ds;Ci.SubMenu=Tu;Ci.ItemGroup=Mu;Ci.Divider=vv;function Q8(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,a=e.locale,i=e.mobile,s=e.moreIcon,c=s===void 0?"More":s,l=e.moreTransitionName,u=e.style,d=e.className,m=e.editable,g=e.tabBarGutter,v=e.rtl,h=e.removeAriaLabel,p=e.onTabClick,b=e.getPopupContainer,y=e.popupClassName,S=f.useState(!1),x=J(S,2),E=x[0],$=x[1],C=f.useState(null),w=J(C,2),O=w[0],_=w[1],T="".concat(r,"-more-popup"),I="".concat(n,"-dropdown"),P=O!==null?"".concat(T,"-").concat(O):null,R=a==null?void 0:a.dropdownAriaLabel;function k(B,W){B.preventDefault(),B.stopPropagation(),m.onEdit("remove",{key:W,event:B});}var N=f__namespace.createElement(Ci,{onClick:function(W){var H=W.key,Y=W.domEvent;p(H,Y),$(!1);},prefixCls:"".concat(I,"-menu"),id:T,tabIndex:-1,role:"listbox","aria-activedescendant":P,selectedKeys:[O],"aria-label":R!==void 0?R:"expanded dropdown"},o.map(function(B){var W=B.closable,H=B.disabled,Y=B.closeIcon,U=B.key,X=B.label,G=sS(W,Y,m,H);return f__namespace.createElement(Ds,{key:U,id:"".concat(T,"-").concat(U),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(U),disabled:H},f__namespace.createElement("span",null,X),G&&f__namespace.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:"".concat(I,"-menu-item-remove"),onClick:function(te){te.stopPropagation(),k(te,U);}},Y||m.removeIcon||"×"))}));function M(B){for(var W=o.filter(function(G){return !G.disabled}),H=W.findIndex(function(G){return G.key===O})||0,Y=W.length,U=0;U<Y;U+=1){H=(H+B+Y)%Y;var X=W[H];if(!X.disabled){_(X.key);return}}}function L(B){var W=B.which;if(!E){[ce.DOWN,ce.SPACE,ce.ENTER].includes(W)&&($(!0),B.preventDefault());return}switch(W){case ce.UP:M(-1),B.preventDefault();break;case ce.DOWN:M(1),B.preventDefault();break;case ce.ESC:$(!1);break;case ce.SPACE:case ce.ENTER:O!==null&&p(O,B);break}}f.useEffect(function(){var B=document.getElementById(P);B&&B.scrollIntoView&&B.scrollIntoView(!1);},[O]),f.useEffect(function(){E||_(null);},[E]);var j=D({},v?"marginRight":"marginLeft",g);o.length||(j.visibility="hidden",j.order=1);var F=V(D({},"".concat(I,"-rtl"),v)),K=i?null:f__namespace.createElement(cS,{prefixCls:I,overlay:N,trigger:["hover"],visible:o.length?E:!1,transitionName:l,onVisibleChange:$,overlayClassName:V(F,y),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:b},f__namespace.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:j,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":T,id:"".concat(r,"-more"),"aria-expanded":E,onKeyDown:L},c));return f__namespace.createElement("div",{className:V("".concat(n,"-nav-operations"),d),style:u,ref:t},K,f__namespace.createElement(lS,{prefixCls:n,locale:a,editable:m}))}const J8=f__namespace.memo(f__namespace.forwardRef(Q8),function(e,t){return t.tabMoving});function eB(e){var t,n=e.prefixCls,r=e.id,o=e.active,a=e.tab,i=a.key,s=a.label,c=a.disabled,l=a.closeIcon,u=e.closable,d=e.renderWrapper,m=e.removeAriaLabel,g=e.editable,v=e.onClick,h=e.onFocus,p=e.style,b="".concat(n,"-tab"),y=sS(u,l,g,c);function S($){c||v($);}function x($){$.preventDefault(),$.stopPropagation(),g.onEdit("remove",{key:i,event:$});}var E=f__namespace.createElement("div",{key:i,"data-node-key":iS(i),className:V(b,(t={},D(t,"".concat(b,"-with-remove"),y),D(t,"".concat(b,"-active"),o),D(t,"".concat(b,"-disabled"),c),t)),style:p,onClick:S},f__namespace.createElement("div",{role:"tab","aria-selected":o,id:r&&"".concat(r,"-tab-").concat(i),className:"".concat(b,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(i),"aria-disabled":c,tabIndex:c?null:0,onClick:function(C){C.stopPropagation(),S(C);},onKeyDown:function(C){[ce.SPACE,ce.ENTER].includes(C.which)&&(C.preventDefault(),S(C));},onFocus:h},s),y&&f__namespace.createElement("button",{type:"button","aria-label":m||"remove",tabIndex:0,className:"".concat(b,"-remove"),onClick:function(C){C.stopPropagation(),x(C);}},l||g.removeIcon||"×"));return d?d(E):E}var tB=function(t){var n=t.activeTabOffset,r=t.horizontal,o=t.rtl,a=t.indicatorSize,i=f.useState(),s=J(i,2),c=s[0],l=s[1],u=f.useRef(),d=function(v){return typeof a=="function"?a(v):typeof a=="number"?a:v};function m(){wt.cancel(u.current);}return f.useEffect(function(){var g={};return n&&(r?(o?(g.right=n.right+n.width/2,g.transform="translateX(50%)"):(g.left=n.left+n.width/2,g.transform="translateX(-50%)"),g.width=d(n.width)):(g.top=n.top+n.height/2,g.transform="translateY(-50%)",g.height=d(n.height))),m(),u.current=wt(function(){l(g);}),m},[n,r,o,a]),{style:c}},xa=function(t){var n=t.current||{},r=n.offsetWidth,o=r===void 0?0:r,a=n.offsetHeight,i=a===void 0?0:a;return [o,i]},bl=function(t,n){return t[n?0:1]};function nB(e,t){var n,r=f__namespace.useContext(_u),o=r.prefixCls,a=r.tabs,i=e.className,s=e.style,c=e.id,l=e.animated,u=e.activeKey,d=e.rtl,m=e.extra,g=e.editable,v=e.locale,h=e.tabPosition,p=e.tabBarGutter,b=e.children,y=e.onTabClick,S=e.onTabScroll,x=e.indicatorSize,E=f.useRef(),$=f.useRef(),C=f.useRef(),w=f.useRef(),O=f.useRef(),_=f.useRef(),T=f.useRef(),I=h==="top"||h==="bottom",P=Cb(0,function(Ne,Ie){I&&S&&S({direction:Ne>Ie?"left":"right"});}),R=J(P,2),k=R[0],N=R[1],M=Cb(0,function(Ne,Ie){!I&&S&&S({direction:Ne>Ie?"top":"bottom"});}),L=J(M,2),j=L[0],F=L[1],K=f.useState([0,0]),B=J(K,2),W=B[0],H=B[1],Y=f.useState([0,0]),U=J(Y,2),X=U[0],G=U[1],ee=f.useState([0,0]),te=J(ee,2),ie=te[0],le=te[1],Q=f.useState([0,0]),oe=J(Q,2),ue=oe[0],Z=oe[1],ae=UF(new Map),ne=J(ae,2),se=ne[0],ve=ne[1],ge=VF(a,se,X[0]),ke=bl(W,I),Ae=bl(X,I),Me=bl(ie,I),Ee=bl(ue,I),he=ke<Ae+Me,Pe=he?ke-Ee:ke-Me,Qe="".concat(o,"-nav-operations-hidden"),Be=0,Ke=0;I&&d?(Be=0,Ke=Math.max(0,Ae-Pe)):(Be=Math.min(0,Pe-Ae),Ke=0);function ze(Ne){return Ne<Be?Be:Ne>Ke?Ke:Ne}var mt=f.useRef(),et=f.useState(),ot=J(et,2),Ve=ot[0],ct=ot[1];function bt(){ct(Date.now());}function at(){window.clearTimeout(mt.current);}GF(w,function(Ne,Ie){function Se(be,Ge){be(function(Ue){var Ct=ze(Ue+Ge);return Ct});}return he?(I?Se(N,Ne):Se(F,Ie),at(),bt(),!0):!1}),f.useEffect(function(){return at(),Ve&&(mt.current=window.setTimeout(function(){ct(0);},100)),at},[Ve]);var it=XF(ge,Pe,I?k:j,Ae,Me,Ee,q(q({},e),{},{tabs:a})),_e=J(it,2),de=_e[0],$e=_e[1],pe=Mn(function(){var Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:u,Ie=ge.get(Ne)||{width:0,height:0,left:0,right:0,top:0};if(I){var Se=k;d?Ie.right<k?Se=Ie.right:Ie.right+Ie.width>k+Pe&&(Se=Ie.right+Ie.width-Pe):Ie.left<-k?Se=-Ie.left:Ie.left+Ie.width>-k+Pe&&(Se=-(Ie.left+Ie.width-Pe)),F(0),N(ze(Se));}else {var be=j;Ie.top<-j?be=-Ie.top:Ie.top+Ie.height>-j+Pe&&(be=-(Ie.top+Ie.height-Pe)),N(0),F(ze(be));}}),we={};h==="top"||h==="bottom"?we[d?"marginRight":"marginLeft"]=p:we.marginTop=p;var He=a.map(function(Ne,Ie){var Se=Ne.key;return f__namespace.createElement(eB,{id:c,prefixCls:o,key:Se,tab:Ne,style:Ie===0?void 0:we,closable:Ne.closable,editable:g,active:Se===u,renderWrapper:b,removeAriaLabel:v==null?void 0:v.removeAriaLabel,onClick:function(Ge){y(Se,Ge);},onFocus:function(){pe(Se),bt(),w.current&&(d||(w.current.scrollLeft=0),w.current.scrollTop=0);}})}),De=function(){return ve(function(){var Ie=new Map;return a.forEach(function(Se){var be,Ge=Se.key,Ue=(be=O.current)===null||be===void 0?void 0:be.querySelector('[data-node-key="'.concat(iS(Ge),'"]'));Ue&&Ie.set(Ge,{width:Ue.offsetWidth,height:Ue.offsetHeight,left:Ue.offsetLeft,top:Ue.offsetTop});}),Ie})};f.useEffect(function(){De();},[a.map(function(Ne){return Ne.key}).join("_")]);var ye=aS(function(){var Ne=xa(E),Ie=xa($),Se=xa(C);H([Ne[0]-Ie[0]-Se[0],Ne[1]-Ie[1]-Se[1]]);var be=xa(T);le(be);var Ge=xa(_);Z(Ge);var Ue=xa(O);G([Ue[0]-be[0],Ue[1]-be[1]]),De();}),fe=a.slice(0,de),me=a.slice($e+1),xe=[].concat(Re(fe),Re(me)),Le=ge.get(u),qe=tB({activeTabOffset:Le,horizontal:I,rtl:d,indicatorSize:x}),st=qe.style;f.useEffect(function(){pe();},[u,Be,Ke,xb(Le),xb(ge),I]),f.useEffect(function(){ye();},[d]);var vt=!!xe.length,kt="".concat(o,"-nav-wrap"),zt,ut,Ft,ht;return I?d?(ut=k>0,zt=k!==Ke):(zt=k<0,ut=k!==Be):(Ft=j<0,ht=j!==Be),f__namespace.createElement(pr,{onResize:ye},f__namespace.createElement("div",{ref:aa(t,E),role:"tablist",className:V("".concat(o,"-nav"),i),style:s,onKeyDown:function(){bt();}},f__namespace.createElement(Eb,{ref:$,position:"left",extra:m,prefixCls:o}),f__namespace.createElement(pr,{onResize:ye},f__namespace.createElement("div",{className:V(kt,(n={},D(n,"".concat(kt,"-ping-left"),zt),D(n,"".concat(kt,"-ping-right"),ut),D(n,"".concat(kt,"-ping-top"),Ft),D(n,"".concat(kt,"-ping-bottom"),ht),n)),ref:w},f__namespace.createElement(pr,{onResize:ye},f__namespace.createElement("div",{ref:O,className:"".concat(o,"-nav-list"),style:{transform:"translate(".concat(k,"px, ").concat(j,"px)"),transition:Ve?"none":void 0}},He,f__namespace.createElement(lS,{ref:T,prefixCls:o,locale:v,editable:g,style:q(q({},He.length===0?void 0:we),{},{visibility:vt?"hidden":null})}),f__namespace.createElement("div",{className:V("".concat(o,"-ink-bar"),D({},"".concat(o,"-ink-bar-animated"),l.inkBar)),style:st}))))),f__namespace.createElement(J8,Oe({},e,{removeAriaLabel:v==null?void 0:v.removeAriaLabel,ref:_,prefixCls:o,tabs:xe,className:!vt&&Qe,tabMoving:!!Ve})),f__namespace.createElement(Eb,{ref:C,position:"right",extra:m,prefixCls:o})))}const Tb=f__namespace.forwardRef(nB);var rB=["renderTabBar"],oB=["label","key"];function aB(e){var t=e.renderTabBar,n=Ze(e,rB),r=f__namespace.useContext(_u),o=r.tabs;if(t){var a=q(q({},n),{},{panes:o.map(function(i){var s=i.label,c=i.key,l=Ze(i,oB);return f__namespace.createElement(oS,Oe({tab:s,key:c,tabKey:c},l))})});return t(a,Tb)}return f__namespace.createElement(Tb,n)}function iB(){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=q({inkBar:!0},rt(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var sB=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],Mb=0;function lB(e,t){var n,r=e.id,o=e.prefixCls,a=o===void 0?"rc-tabs":o,i=e.className,s=e.items,c=e.direction,l=e.activeKey,u=e.defaultActiveKey,d=e.editable,m=e.animated,g=e.tabPosition,v=g===void 0?"top":g,h=e.tabBarGutter,p=e.tabBarStyle,b=e.tabBarExtraContent,y=e.locale,S=e.moreIcon,x=e.moreTransitionName,E=e.destroyInactiveTabPane,$=e.renderTabBar,C=e.onChange,w=e.onTabClick,O=e.onTabScroll,_=e.getPopupContainer,T=e.popupClassName,I=e.indicatorSize,P=Ze(e,sB),R=f__namespace.useMemo(function(){return (s||[]).filter(function(Z){return Z&&rt(Z)==="object"&&"key"in Z})},[s]),k=c==="rtl",N=iB(m),M=f.useState(!1),L=J(M,2),j=L[0],F=L[1];f.useEffect(function(){F(mu());},[]);var K=Wt(function(){var Z;return (Z=R[0])===null||Z===void 0?void 0:Z.key},{value:l,defaultValue:u}),B=J(K,2),W=B[0],H=B[1],Y=f.useState(function(){return R.findIndex(function(Z){return Z.key===W})}),U=J(Y,2),X=U[0],G=U[1];f.useEffect(function(){var Z=R.findIndex(function(ne){return ne.key===W});if(Z===-1){var ae;Z=Math.max(0,Math.min(X,R.length-1)),H((ae=R[Z])===null||ae===void 0?void 0:ae.key);}G(Z);},[R.map(function(Z){return Z.key}).join("_"),W,X]);var ee=Wt(null,{value:r}),te=J(ee,2),ie=te[0],le=te[1];f.useEffect(function(){r||(le("rc-tabs-".concat(Mb)),Mb+=1);},[]);function Q(Z,ae){w==null||w(Z,ae);var ne=Z!==W;H(Z),ne&&(C==null||C(Z));}var oe={id:ie,activeKey:W,animated:N,tabPosition:v,rtl:k,mobile:j},ue=q(q({},oe),{},{editable:d,locale:y,moreIcon:S,moreTransitionName:x,tabBarGutter:h,onTabClick:Q,onTabScroll:O,extra:b,style:p,panes:null,getPopupContainer:_,popupClassName:T,indicatorSize:I});return f__namespace.createElement(_u.Provider,{value:{tabs:R,prefixCls:a}},f__namespace.createElement("div",Oe({ref:t,id:r,className:V(a,"".concat(a,"-").concat(v),(n={},D(n,"".concat(a,"-mobile"),j),D(n,"".concat(a,"-editable"),d),D(n,"".concat(a,"-rtl"),k),n),i)},P),f__namespace.createElement(aB,Oe({},ue,{renderTabBar:$})),f__namespace.createElement(WF,Oe({destroyInactiveTabPane:E},oe,{animated:N}))))}var cB=f__namespace.forwardRef(lB);const uB={motionAppear:!1,motionEnter:!0,motionLeave:!0};function dB(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({},uB),{motionName:vu(e,"switch")})),n}var fB=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 mB(e){return e.filter(t=>t)}function gB(e,t){if(e)return e;const n=ir(t).map(r=>{if(f__namespace.isValidElement(r)){const{key:o,props:a}=r,i=a||{},{tab:s}=i,c=fB(i,["tab"]);return Object.assign(Object.assign({key:String(o)},c),{label:s})}return null});return mB(n)}const vB=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}`}}}}},[_o(e,"slide-up"),_o(e,"slide-down")]]},hB=vB,pB=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:a,itemSelectedColor:i}=e;return {[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${e.lineWidth}px ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:i,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:`${o}px`}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:`${o}px`}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadiusLG}px 0 0 ${e.borderRadiusLG}px`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},bB=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return {[`${t}-dropdown`]:Object.assign(Object.assign({},Nt(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({},Qo),{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"}}})}})}},yB=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:a,verticalItemMargin:i}=e;return {[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${e.lineWidth}px ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
            right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
        > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:`${n}px`,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:e.controlHeight*1.25,[`${t}-tab`]:{padding:a,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:i},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${e.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-e.lineWidth},borderRight:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},CB=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:a}=e;return {[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${e.borderRadius}px ${e.borderRadius}px`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${e.borderRadius}px ${e.borderRadius}px 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadius}px ${e.borderRadius}px 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadius}px 0 0 ${e.borderRadius}px`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},SB=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:a,horizontalItemPadding:i,itemSelectedColor:s,itemColor:c}=e,l=`${t}-tab`;return {[l]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:i,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},ea(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:a}}}},$B=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"}}}}},wB=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:a,itemActiveColor:i,colorBorderSecondary:s}=e;return {[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Nt(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${e.paddingXS}px`,background:"transparent",border:`${e.lineWidth}px ${e.lineType} ${s}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:a},"&:active, &:focus:not(:focus-visible)":{color:i}},ea(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),SB(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"}}}}}},xB=Dt("Tabs",e=>{const t=gt(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 [CB(t),$B(t),yB(t),bB(t),pB(t),wB(t),hB(t)]},e=>{const t=e.controlHeightLG;return {zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:"",cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}),EB=()=>null,OB=EB;var IB=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 xS=e=>{const{type:t,className:n,rootClassName:r,size:o,onEdit:a,hideAdd:i,centered:s,addIcon:c,popupClassName:l,children:u,items:d,animated:m,style:g,indicatorSize:v}=e,h=IB(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:p,moreIcon:b=f__namespace.createElement(cv,null)}=h,{direction:y,tabs:S,getPrefixCls:x,getPopupContainer:E}=f__namespace.useContext(Xe),$=x("tabs",p),[C,w]=xB($);let O;t==="editable-card"&&(O={onEdit:(k,N)=>{let{key:M,event:L}=N;a==null||a(k==="add"?L:M,k);},removeIcon:f__namespace.createElement(Ou,null),addIcon:c||f__namespace.createElement(BF,null),showAdd:i!==!0});const _=x(),T=gB(d,u),I=dB($,m),P=Xn(o),R=Object.assign(Object.assign({},S==null?void 0:S.style),g);return C(f__namespace.createElement(cB,Object.assign({direction:y,getPopupContainer:E,moreTransitionName:`${_}-slide-up`},h,{items:T,className:V({[`${$}-${P}`]:P,[`${$}-card`]:["card","editable-card"].includes(t),[`${$}-editable-card`]:t==="editable-card",[`${$}-centered`]:s},S==null?void 0:S.className,n,r,w),popupClassName:V(l,w),style:R,editable:O,moreIcon:b,prefixCls:$,animated:I,indicatorSize:v??(S==null?void 0:S.indicatorSize)})))};xS.TabPane=OB;const PB=xS;function _B(e){return function(n){return f__namespace.createElement(Ag,{theme:{token:{motion:!1,zIndexPopupBase:0}}},f__namespace.createElement(e,Object.assign({},n)))}}function hv(e,t,n,r){function o(a){const{prefixCls:i,style:s}=a,c=f__namespace.useRef(null),[l,u]=f__namespace.useState(0),[d,m]=f__namespace.useState(0),[g,v]=Wt(!1,{value:a.open}),{getPrefixCls:h}=f__namespace.useContext(Xe),p=h(t||"select",i);f__namespace.useEffect(()=>{if(v(!0),typeof ResizeObserver<"u"){const y=new ResizeObserver(x=>{const E=x[0].target;u(E.offsetHeight+8),m(E.offsetWidth);}),S=setInterval(()=>{var x;const E=n?`.${n(p)}`:`.${p}-dropdown`,$=(x=c.current)===null||x===void 0?void 0:x.querySelector(E);$&&(clearInterval(S),y.observe($));},10);return ()=>{clearInterval(S),y.disconnect();}}},[]);let b=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},s),{margin:0}),open:g,visible:g,getPopupContainer:()=>c.current});return r&&(b=r(b)),f__namespace.createElement("div",{ref:c,style:{paddingBottom:l,position:"relative",minWidth:d}},f__namespace.createElement(e,Object.assign({},b)))}return _B(o)}const RB=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:a,orientationMargin:i,verticalMarginInline:s}=e;return {[t]:Object.assign(Object.assign({},Nt(e)),{borderBlockStart:`${o}px solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${o}px solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${o}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`${i*100}%`},"&::after":{width:`${100-i*100}%`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`${100-i*100}%`},"&::after":{width:`${i*100}%`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:a},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${o}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},TB=Dt("Divider",e=>{const t=gt(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return [RB(t)]},e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}));var MB=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 NB=e=>{const{getPrefixCls:t,direction:n,divider:r}=f__namespace.useContext(Xe),{prefixCls:o,type:a="horizontal",orientation:i="center",orientationMargin:s,className:c,rootClassName:l,children:u,dashed:d,plain:m,style:g}=e,v=MB(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),h=t("divider",o),[p,b]=TB(h),y=i.length>0?`-${i}`:i,S=!!u,x=i==="left"&&s!=null,E=i==="right"&&s!=null,$=V(h,r==null?void 0:r.className,b,`${h}-${a}`,{[`${h}-with-text`]:S,[`${h}-with-text${y}`]:S,[`${h}-dashed`]:!!d,[`${h}-plain`]:!!m,[`${h}-rtl`]:n==="rtl",[`${h}-no-default-orientation-margin-left`]:x,[`${h}-no-default-orientation-margin-right`]:E},c,l),C=f__namespace.useMemo(()=>typeof s=="number"?s:/^\d+$/.test(s)?Number(s):s,[s]),w=Object.assign(Object.assign({},x&&{marginLeft:C}),E&&{marginRight:C});return p(f__namespace.createElement("div",Object.assign({className:$,style:Object.assign(Object.assign({},r==null?void 0:r.style),g)},v,{role:"separator"}),u&&a!=="vertical"&&f__namespace.createElement("span",{className:`${h}-inner-text`,style:w},u)))},kB=NB;var AB=["b"],LB=["v"],kd=function(t){return Math.round(Number(t||0))},jB=function(t){if(t&&rt(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,o=Ze(n,AB);return q(q({},o),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},uc=function(e){Mo(n,e);var t=No(n);function n(r){return hn(this,n),t.call(this,jB(r))}return pn(n,[{key:"toHsbString",value:function(){var o=this.toHsb(),a=kd(o.s*100),i=kd(o.b*100),s=kd(o.h),c=o.a,l="hsb(".concat(s,", ").concat(a,"%, ").concat(i,"%)"),u="hsba(".concat(s,", ").concat(a,"%, ").concat(i,"%, ").concat(c.toFixed(c===0?0:2),")");return c===1?l:u}},{key:"toHsb",value:function(){var o=this.toHsv();rt(this.originalInput)==="object"&&this.originalInput&&"h"in this.originalInput&&(o=this.originalInput);var a=o;a.v;var i=Ze(a,LB);return q(q({},i),{},{b:o.v})}}]),n}(qt),zB="rc-color-picker",Oo=function(t){return t instanceof uc?t:new uc(t)},DB=Oo("#1677ff"),ES=function(t){var n=t.offset,r=t.targetRef,o=t.containerRef,a=t.color,i=t.type,s=o.current.getBoundingClientRect(),c=s.width,l=s.height,u=r.current.getBoundingClientRect(),d=u.width,m=u.height,g=d/2,v=m/2,h=(n.x+g)/c,p=1-(n.y+v)/l,b=a.toHsb(),y=h,S=(n.x+g)/c*360;if(i)switch(i){case"hue":return Oo(q(q({},b),{},{h:S<=0?0:S}));case"alpha":return Oo(q(q({},b),{},{a:y<=0?0:y}))}return Oo({h:b.h,s:h<=0?0:h,b:p>=1?1:p,a:b.a})},OS=function(t,n,r,o){var a=t.current.getBoundingClientRect(),i=a.width,s=a.height,c=n.current.getBoundingClientRect(),l=c.width,u=c.height,d=l/2,m=u/2,g=r.toHsb();if(!(l===0&&u===0||l!==u)){if(o)switch(o){case"hue":return {x:g.h/360*i-d,y:-m/3};case"alpha":return {x:g.a/1*i-d,y:-m/3}}return {x:g.s*i-d,y:(1-g.b)*s-m}}},pv=function(t){var n=t.color,r=t.prefixCls,o=t.className,a=t.style,i=t.onClick,s="".concat(r,"-color-block");return f.createElement("div",{className:V(s,o),style:a,onClick:i},f.createElement("div",{className:"".concat(s,"-inner"),style:{background:n}}))};function FB(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 IS(e){var t=e.offset,n=e.targetRef,r=e.containerRef,o=e.direction,a=e.onDragChange,i=e.onDragChangeComplete,s=e.calculate,c=e.color,l=e.disabledDrag,u=f.useState(t||{x:0,y:0}),d=J(u,2),m=d[0],g=d[1],v=f.useRef(null),h=f.useRef(null),p=f.useRef({flag:!1});f.useEffect(function(){if(p.current.flag===!1){var E=s==null?void 0:s(r);E&&g(E);}},[c,r]),f.useEffect(function(){return function(){document.removeEventListener("mousemove",v.current),document.removeEventListener("mouseup",h.current),document.removeEventListener("touchmove",v.current),document.removeEventListener("touchend",h.current),v.current=null,h.current=null;}},[]);var b=function($){var C=FB($),w=C.pageX,O=C.pageY,_=r.current.getBoundingClientRect(),T=_.x,I=_.y,P=_.width,R=_.height,k=n.current.getBoundingClientRect(),N=k.width,M=k.height,L=N/2,j=M/2,F=Math.max(0,Math.min(w-T,P))-L,K=Math.max(0,Math.min(O-I,R))-j,B={x:F,y:o==="x"?m.y:K};if(N===0&&M===0||N!==M)return !1;g(B),a==null||a(B);},y=function($){$.preventDefault(),b($);},S=function($){$.preventDefault(),p.current.flag=!1,document.removeEventListener("mousemove",v.current),document.removeEventListener("mouseup",h.current),document.removeEventListener("touchmove",v.current),document.removeEventListener("touchend",h.current),v.current=null,h.current=null,i==null||i();},x=function($){document.removeEventListener("mousemove",v.current),document.removeEventListener("mouseup",h.current),!l&&(b($),p.current.flag=!0,document.addEventListener("mousemove",y),document.addEventListener("mouseup",S),document.addEventListener("touchmove",y),document.addEventListener("touchend",S),v.current=y,h.current=S);};return [m,x]}var PS=function(t){var n=t.size,r=n===void 0?"default":n,o=t.color,a=t.prefixCls;return f.createElement("div",{className:V("".concat(a,"-handler"),D({},"".concat(a,"-handler-sm"),r==="small")),style:{backgroundColor:o}})},_S=function(t){var n=t.children,r=t.style,o=t.prefixCls;return f.createElement("div",{className:"".concat(o,"-palette"),style:q({position:"relative"},r)},n)},RS=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)}),BB=function(t){var n=t.color,r=t.onChange,o=t.prefixCls,a=t.onChangeComplete,i=t.disabled,s=f.useRef(),c=f.useRef(),l=f.useRef(n),u=IS({color:n,containerRef:s,targetRef:c,calculate:function(h){return OS(h,c,n)},onDragChange:function(h){var p=ES({offset:h,targetRef:c,containerRef:s,color:n});l.current=p,r(p);},onDragChangeComplete:function(){return a==null?void 0:a(l.current)},disabledDrag:i}),d=J(u,2),m=d[0],g=d[1];return f.createElement("div",{ref:s,className:"".concat(o,"-select"),onMouseDown:g,onTouchStart:g},f.createElement(_S,{prefixCls:o},f.createElement(RS,{offset:m,ref:c},f.createElement(PS,{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))"}})))},HB=function(t){var n=t.colors,r=t.children,o=t.direction,a=o===void 0?"to right":o,i=t.type,s=t.prefixCls,c=f.useMemo(function(){return n.map(function(l,u){var d=Oo(l);return i==="alpha"&&u===n.length-1&&d.setAlpha(1),d.toRgbString()}).join(",")},[n,i]);return f.createElement("div",{className:"".concat(s,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(a,", ").concat(c,")")}},r)},Nb=function(t){var n=t.gradientColors,r=t.direction,o=t.type,a=o===void 0?"hue":o,i=t.color,s=t.value,c=t.onChange,l=t.onChangeComplete,u=t.disabled,d=t.prefixCls,m=f.useRef(),g=f.useRef(),v=f.useRef(i),h=IS({color:i,targetRef:g,containerRef:m,calculate:function(x){return OS(x,g,i,a)},onDragChange:function(x){var E=ES({offset:x,targetRef:g,containerRef:m,color:i,type:a});v.current=E,c(E);},onDragChangeComplete:function(){l==null||l(v.current,a);},direction:"x",disabledDrag:u}),p=J(h,2),b=p[0],y=p[1];return f.createElement("div",{ref:m,className:V("".concat(d,"-slider"),"".concat(d,"-slider-").concat(a)),onMouseDown:y,onTouchStart:y},f.createElement(_S,{prefixCls:d},f.createElement(RS,{offset:b,ref:g},f.createElement(PS,{size:"small",color:s,prefixCls:d})),f.createElement(HB,{colors:n,direction:r,type:a,prefixCls:d})))};function kb(e){return e!==void 0}var WB=function(t,n){var r=n.defaultValue,o=n.value,a=f.useState(function(){var l;return kb(o)?l=o:kb(r)?l=r:l=t,Oo(l)}),i=J(a,2),s=i[0],c=i[1];return f.useEffect(function(){o&&c(Oo(o));},[o]),[s,c]},VB=["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 KB=f.forwardRef(function(e,t){var n=e.value,r=e.defaultValue,o=e.prefixCls,a=o===void 0?zB:o,i=e.onChange,s=e.onChangeComplete,c=e.className,l=e.style,u=e.panelRender,d=e.disabledAlpha,m=d===void 0?!1:d,g=e.disabled,v=g===void 0?!1:g,h=WB(DB,{value:n,defaultValue:r}),p=J(h,2),b=p[0],y=p[1],S=f.useMemo(function(){var w=Oo(b.toRgbString());return w.setAlpha(1),w.toRgbString()},[b]),x=V("".concat(a,"-panel"),c,D({},"".concat(a,"-panel-disabled"),v)),E={prefixCls:a,onChangeComplete:s,disabled:v},$=function(O,_){n||y(O),i==null||i(O,_);},C=f.createElement(f.Fragment,null,f.createElement(BB,Oe({color:b,onChange:$},E)),f.createElement("div",{className:"".concat(a,"-slider-container")},f.createElement("div",{className:V("".concat(a,"-slider-group"),D({},"".concat(a,"-slider-group-disabled-alpha"),m))},f.createElement(Nb,Oe({gradientColors:VB,color:b,value:"hsl(".concat(b.toHsb().h,",100%, 50%)"),onChange:function(O){return $(O,"hue")}},E)),!m&&f.createElement(Nb,Oe({type:"alpha",gradientColors:["rgba(255, 0, 4, 0) 0%",S],color:b,value:b.toRgbString(),onChange:function(O){return $(O,"alpha")}},E))),f.createElement(pv,{color:b.toRgbString(),prefixCls:a})));return f.createElement("div",{className:x,style:l,ref:t},typeof u=="function"?u(C):C)}),TS=f.createContext({}),MS=f.createContext({}),{Provider:GB}=TS,{Provider:UB}=MS,zl=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/gi,"").slice(0,t?8:6))||"",XB=(e,t)=>e?zl(e,t):"";let Ab=function(){function e(t){hn(this,e),this.metaColor=new uc(t),t||this.metaColor.setAlpha(0);}return pn(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return XB(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 qB="ant-color-picker",kn=e=>e instanceof Ab?e:new Ab(e),Dl=e=>Math.round(Number(e||0)),dc=e=>Dl(e.toHsb().a*100),Ad=(e,t)=>{const n=e.toHsb();return n.a=t||1,kn(n)},YB=e=>{let{prefixCls:t,value:n,colorCleared:r,onChange:o}=e;const a=()=>{if(n&&!r){const i=n.toHsb();i.a=0;const s=kn(i);o==null||o(s);}};return f.createElement("div",{className:`${t}-clear`,onClick:a})},NS=YB;var Nu=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,a=t.onMouseDown,i=t.onClick,s=t.children,c;return typeof r=="function"?c=r(o):c=r,f__namespace.createElement("span",{className:n,onMouseDown:function(u){u.preventDefault(),a&&a(u);},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:i,"aria-hidden":!0},c!==void 0?c:f__namespace.createElement("span",{className:V(n.split(/\s+/).map(function(l){return "".concat(l,"-icon")}))},s))};function ZB(e,t,n,r,o){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,i=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,c=f.useMemo(function(){if(rt(r)==="object")return r.clearIcon;if(o)return o},[r,o]),l=f.useMemo(function(){return !!(!a&&r&&(n.length||i)&&!(s==="combobox"&&i===""))},[r,a,n.length,i,s]);return {allowClear:l,clearIcon:f.createElement(Nu,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:c},"×")}}var kS=f__namespace.createContext(null);function QB(){return f__namespace.useContext(kS)}function JB(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=f__namespace.useState(!1),n=J(t,2),r=n[0],o=n[1],a=f__namespace.useRef(null),i=function(){window.clearTimeout(a.current);};f__namespace.useEffect(function(){return i},[]);var s=function(l,u){i(),a.current=window.setTimeout(function(){o(l),u&&u();},e);};return [r,s,i]}function AS(){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 eH(e,t,n,r){var o=f__namespace.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},f__namespace.useEffect(function(){function a(i){var s;if(!((s=o.current)!==null&&s!==void 0&&s.customizedTrigger)){var c=i.target;c.shadowRoot&&i.composed&&(c=i.composedPath()[0]||c),o.current.open&&e().filter(function(l){return l}).every(function(l){return !l.contains(c)&&l!==c})&&o.current.triggerOpen(!1);}}return window.addEventListener("mousedown",a),function(){return window.removeEventListener("mousedown",a)}},[]);}var tH=`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`,nH=`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`,rH="".concat(tH," ").concat(nH).split(/[\s\n]+/),oH="aria-",aH="data-";function Lb(e,t){return e.indexOf(t)===0}function Ya(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=q({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||Lb(o,oH))||n.data&&Lb(o,aH)||n.attr&&rH.includes(o))&&(r[o]=e[o]);}),r}var iH=function(t,n){var r,o,a=t.prefixCls,i=t.id,s=t.inputElement,c=t.disabled,l=t.tabIndex,u=t.autoFocus,d=t.autoComplete,m=t.editable,g=t.activeDescendantId,v=t.value,h=t.maxLength,p=t.onKeyDown,b=t.onMouseDown,y=t.onChange,S=t.onPaste,x=t.onCompositionStart,E=t.onCompositionEnd,$=t.open,C=t.attrs,w=s||f__namespace.createElement("input",null),O=w,_=O.ref,T=O.props,I=T.onKeyDown,P=T.onChange,R=T.onMouseDown,k=T.onCompositionStart,N=T.onCompositionEnd,M=T.style;return "maxLength"in w.props,w=f__namespace.cloneElement(w,q(q(q({type:"search"},T),{},{id:i,ref:Kn(n,_),disabled:c,tabIndex:l,autoComplete:d||"off",autoFocus:u,className:V("".concat(a,"-selection-search-input"),(r=w)===null||r===void 0||(o=r.props)===null||o===void 0?void 0:o.className),role:"combobox","aria-expanded":$||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":$?g:void 0},C),{},{value:m?v:"",maxLength:h,readOnly:!m,unselectable:m?null:"on",style:q(q({},M),{},{opacity:m?null:0}),onKeyDown:function(j){p(j),I&&I(j);},onMouseDown:function(j){b(j),R&&R(j);},onChange:function(j){y(j),P&&P(j);},onCompositionStart:function(j){x(j),k&&k(j);},onCompositionEnd:function(j){E(j),N&&N(j);},onPaste:S})),w},bv=f__namespace.forwardRef(iH);bv.displayName="Input";function LS(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var sH=typeof window<"u"&&window.document&&window.document.documentElement,lH=sH;function cH(e){return e!=null}function uH(e){return !e&&e!==0}function jb(e){return ["string","number"].includes(rt(e))}function jS(e){var t=void 0;return e&&(jb(e.title)?t=e.title.toString():jb(e.label)&&(t=e.label.toString())),t}function dH(e,t){lH?f__namespace.useLayoutEffect(e,t):f__namespace.useEffect(e,t);}function fH(e){var t;return (t=e.key)!==null&&t!==void 0?t:e.value}var zb=function(t){t.preventDefault(),t.stopPropagation();},mH=function(t){var n=t.id,r=t.prefixCls,o=t.values,a=t.open,i=t.searchValue,s=t.autoClearSearchValue,c=t.inputRef,l=t.placeholder,u=t.disabled,d=t.mode,m=t.showSearch,g=t.autoFocus,v=t.autoComplete,h=t.activeDescendantId,p=t.tabIndex,b=t.removeIcon,y=t.maxTagCount,S=t.maxTagTextLength,x=t.maxTagPlaceholder,E=x===void 0?function(Q){return "+ ".concat(Q.length," ...")}:x,$=t.tagRender,C=t.onToggleOpen,w=t.onRemove,O=t.onInputChange,_=t.onInputPaste,T=t.onInputKeyDown,I=t.onInputMouseDown,P=t.onInputCompositionStart,R=t.onInputCompositionEnd,k=f__namespace.useRef(null),N=f.useState(0),M=J(N,2),L=M[0],j=M[1],F=f.useState(!1),K=J(F,2),B=K[0],W=K[1],H="".concat(r,"-selection"),Y=a||d==="multiple"&&s===!1||d==="tags"?i:"",U=d==="tags"||d==="multiple"&&s===!1||m&&(a||B);dH(function(){j(k.current.scrollWidth);},[Y]);function X(Q,oe,ue,Z,ae){return f__namespace.createElement("span",{className:V("".concat(H,"-item"),D({},"".concat(H,"-item-disabled"),ue)),title:jS(Q)},f__namespace.createElement("span",{className:"".concat(H,"-item-content")},oe),Z&&f__namespace.createElement(Nu,{className:"".concat(H,"-item-remove"),onMouseDown:zb,onClick:ae,customizeIcon:b},"×"))}function G(Q,oe,ue,Z,ae){var ne=function(ve){zb(ve),C(!a);};return f__namespace.createElement("span",{onMouseDown:ne},$({label:oe,value:Q,disabled:ue,closable:Z,onClose:ae}))}function ee(Q){var oe=Q.disabled,ue=Q.label,Z=Q.value,ae=!u&&!oe,ne=ue;if(typeof S=="number"&&(typeof ue=="string"||typeof ue=="number")){var se=String(ne);se.length>S&&(ne="".concat(se.slice(0,S),"..."));}var ve=function(ke){ke&&ke.stopPropagation(),w(Q);};return typeof $=="function"?G(Z,ne,oe,ae,ve):X(Q,ne,oe,ae,ve)}function te(Q){var oe=typeof E=="function"?E(Q):E;return X({title:oe},oe,!1)}var ie=f__namespace.createElement("div",{className:"".concat(H,"-search"),style:{width:L},onFocus:function(){W(!0);},onBlur:function(){W(!1);}},f__namespace.createElement(bv,{ref:c,open:a,prefixCls:r,id:n,inputElement:null,disabled:u,autoFocus:g,autoComplete:v,editable:U,activeDescendantId:h,value:Y,onKeyDown:T,onMouseDown:I,onChange:O,onPaste:_,onCompositionStart:P,onCompositionEnd:R,tabIndex:p,attrs:Ya(t,!0)}),f__namespace.createElement("span",{ref:k,className:"".concat(H,"-search-mirror"),"aria-hidden":!0},Y," ")),le=f__namespace.createElement(Gr,{prefixCls:"".concat(H,"-overflow"),data:o,renderItem:ee,renderRest:te,suffix:ie,itemKey:fH,maxCount:y});return f__namespace.createElement(f__namespace.Fragment,null,le,!o.length&&!Y&&f__namespace.createElement("span",{className:"".concat(H,"-placeholder")},l))},gH=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,a=t.inputRef,i=t.disabled,s=t.autoFocus,c=t.autoComplete,l=t.activeDescendantId,u=t.mode,d=t.open,m=t.values,g=t.placeholder,v=t.tabIndex,h=t.showSearch,p=t.searchValue,b=t.activeValue,y=t.maxLength,S=t.onInputKeyDown,x=t.onInputMouseDown,E=t.onInputChange,$=t.onInputPaste,C=t.onInputCompositionStart,w=t.onInputCompositionEnd,O=t.title,_=f__namespace.useState(!1),T=J(_,2),I=T[0],P=T[1],R=u==="combobox",k=R||h,N=m[0],M=p||"";R&&b&&!I&&(M=b),f__namespace.useEffect(function(){R&&P(!1);},[R,b]);var L=u!=="combobox"&&!d&&!h?!1:!!M,j=O===void 0?jS(N):O,F=function(){if(N)return null;var B=L?{visibility:"hidden"}:void 0;return f__namespace.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:B},g)};return f__namespace.createElement(f__namespace.Fragment,null,f__namespace.createElement("span",{className:"".concat(r,"-selection-search")},f__namespace.createElement(bv,{ref:a,prefixCls:r,id:o,open:d,inputElement:n,disabled:i,autoFocus:s,autoComplete:c,editable:k,activeDescendantId:l,value:M,onKeyDown:S,onMouseDown:x,onChange:function(B){P(!0),E(B);},onPaste:$,onCompositionStart:C,onCompositionEnd:w,tabIndex:v,attrs:Ya(t,!0),maxLength:R?y:void 0})),!R&&N?f__namespace.createElement("span",{className:"".concat(r,"-selection-item"),title:j,style:L?{visibility:"hidden"}:void 0},N.label):null,F())};function vH(e){return ![ce.ESC,ce.SHIFT,ce.BACKSPACE,ce.TAB,ce.WIN_KEY,ce.ALT,ce.META,ce.WIN_KEY_RIGHT,ce.CTRL,ce.SEMICOLON,ce.EQUALS,ce.CAPS_LOCK,ce.CONTEXT_MENU,ce.F1,ce.F2,ce.F3,ce.F4,ce.F5,ce.F6,ce.F7,ce.F8,ce.F9,ce.F10,ce.F11,ce.F12].includes(e)}var hH=function(t,n){var r=f.useRef(null),o=f.useRef(!1),a=t.prefixCls,i=t.open,s=t.mode,c=t.showSearch,l=t.tokenWithEnter,u=t.autoClearSearchValue,d=t.onSearch,m=t.onSearchSubmit,g=t.onToggleOpen,v=t.onInputKeyDown,h=t.domRef;f__namespace.useImperativeHandle(n,function(){return {focus:function(){r.current.focus();},blur:function(){r.current.blur();}}});var p=AS(0),b=J(p,2),y=b[0],S=b[1],x=function(M){var L=M.which;(L===ce.UP||L===ce.DOWN)&&M.preventDefault(),v&&v(M),L===ce.ENTER&&s==="tags"&&!o.current&&!i&&(m==null||m(M.target.value)),vH(L)&&g(!0);},E=function(){S(!0);},$=f.useRef(null),C=function(M){d(M,!0,o.current)!==!1&&g(!0);},w=function(){o.current=!0;},O=function(M){o.current=!1,s!=="combobox"&&C(M.target.value);},_=function(M){var L=M.target.value;if(l&&$.current&&/[\r\n]/.test($.current)){var j=$.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");L=L.replace(j,$.current);}$.current=null,C(L);},T=function(M){var L=M.clipboardData,j=L.getData("text");$.current=j;},I=function(M){var L=M.target;if(L!==r.current){var j=document.body.style.msTouchAction!==void 0;j?setTimeout(function(){r.current.focus();}):r.current.focus();}},P=function(M){var L=y();M.target!==r.current&&!L&&s!=="combobox"&&M.preventDefault(),(s!=="combobox"&&(!c||!L)||!i)&&(i&&u!==!1&&d("",!0,!1),g());},R={inputRef:r,onInputKeyDown:x,onInputMouseDown:E,onInputChange:_,onInputPaste:T,onInputCompositionStart:w,onInputCompositionEnd:O},k=s==="multiple"||s==="tags"?f__namespace.createElement(mH,Oe({},t,R)):f__namespace.createElement(gH,Oe({},t,R));return f__namespace.createElement("div",{ref:h,className:"".concat(a,"-selector"),onClick:I,onMouseDown:P},k)},zS=f__namespace.forwardRef(hH);zS.displayName="Selector";var pH=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],bH=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"}}},yH=function(t,n){var r=t.prefixCls;t.disabled;var o=t.visible,a=t.children,i=t.popupElement,s=t.animation,c=t.transitionName,l=t.dropdownStyle,u=t.dropdownClassName,d=t.direction,m=d===void 0?"ltr":d,g=t.placement,v=t.builtinPlacements,h=t.dropdownMatchSelectWidth,p=t.dropdownRender,b=t.dropdownAlign,y=t.getPopupContainer,S=t.empty,x=t.getTriggerDOMNode,E=t.onPopupVisibleChange,$=t.onPopupMouseEnter,C=Ze(t,pH),w="".concat(r,"-dropdown"),O=i;p&&(O=p(i));var _=f__namespace.useMemo(function(){return v||bH(h)},[v,h]),T=s?"".concat(w,"-").concat(s):c,I=typeof h=="number",P=f__namespace.useMemo(function(){return I?null:h===!1?"minWidth":"width"},[h,I]),R=l;I&&(R=q(q({},R),{},{width:h}));var k=f__namespace.useRef(null);return f__namespace.useImperativeHandle(n,function(){return {getPopupElement:function(){return k.current}}}),f__namespace.createElement(gu,Oe({},C,{showAction:E?["click"]:[],hideAction:E?["click"]:[],popupPlacement:g||(m==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:_,prefixCls:w,popupTransitionName:T,popup:f__namespace.createElement("div",{ref:k,onMouseEnter:$},O),stretch:P,popupAlign:b,popupVisible:o,getPopupContainer:y,popupClassName:V(u,D({},"".concat(w,"-empty"),S)),popupStyle:R,getTriggerDOMNode:x,onPopupVisibleChange:E}),a)},DS=f__namespace.forwardRef(yH);DS.displayName="SelectTrigger";function Db(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 FS(e,t){var n=e||{},r=n.label,o=n.value,a=n.options,i=n.groupLabel,s=r||(t?"children":"label");return {label:s,value:o||"value",options:a||"options",groupLabel:i||s}}function CH(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],a=FS(n,!1),i=a.label,s=a.value,c=a.options,l=a.groupLabel;function u(d,m){d.forEach(function(g){if(m||!(c in g)){var v=g[s];o.push({key:Db(g,o.length),groupOption:m,data:g,label:g[i],value:v});}else {var h=g[l];h===void 0&&r&&(h=g.label),o.push({key:Db(g,o.length),group:!0,data:g,label:h}),u(g[c],!0);}});}return u(e,!1),o}function dm(e){var t=q({},e);return "props"in t||Object.defineProperty(t,"props",{get:function(){return gn(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function SH(e,t){if(!t||!t.length)return null;var n=!1;function r(a,i){var s=x1(i),c=s[0],l=s.slice(1);if(!c)return [a];var u=a.split(c);return n=n||u.length>1,u.reduce(function(d,m){return [].concat(Re(d),Re(r(m,l)))},[]).filter(function(d){return d})}var o=r(e,t);return n?o:null}var $H=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],wH=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function fm(e){return e==="tags"||e==="multiple"}var xH=f__namespace.forwardRef(function(e,t){var n,r,o=e.id,a=e.prefixCls,i=e.className,s=e.showSearch,c=e.tagRender,l=e.direction,u=e.omitDomProps,d=e.displayValues,m=e.onDisplayValuesChange,g=e.emptyOptions,v=e.notFoundContent,h=v===void 0?"Not Found":v,p=e.onClear,b=e.mode,y=e.disabled,S=e.loading,x=e.getInputElement,E=e.getRawInputElement,$=e.open,C=e.defaultOpen,w=e.onDropdownVisibleChange,O=e.activeValue,_=e.onActiveValueChange,T=e.activeDescendantId,I=e.searchValue,P=e.autoClearSearchValue,R=e.onSearch,k=e.onSearchSplit,N=e.tokenSeparators,M=e.allowClear,L=e.suffixIcon,j=e.clearIcon,F=e.OptionList,K=e.animation,B=e.transitionName,W=e.dropdownStyle,H=e.dropdownClassName,Y=e.dropdownMatchSelectWidth,U=e.dropdownRender,X=e.dropdownAlign,G=e.placement,ee=e.builtinPlacements,te=e.getPopupContainer,ie=e.showAction,le=ie===void 0?[]:ie,Q=e.onFocus,oe=e.onBlur,ue=e.onKeyUp,Z=e.onKeyDown,ae=e.onMouseDown,ne=Ze(e,$H),se=fm(b),ve=(s!==void 0?s:se)||b==="combobox",ge=q({},ne);wH.forEach(function(ft){delete ge[ft];}),u==null||u.forEach(function(ft){delete ge[ft];});var ke=f__namespace.useState(!1),Ae=J(ke,2),Me=Ae[0],Ee=Ae[1];f__namespace.useEffect(function(){Ee(mu());},[]);var he=f__namespace.useRef(null),Pe=f__namespace.useRef(null),Qe=f__namespace.useRef(null),Be=f__namespace.useRef(null),Ke=f__namespace.useRef(null),ze=f__namespace.useRef(!1),mt=JB(),et=J(mt,3),ot=et[0],Ve=et[1],ct=et[2];f__namespace.useImperativeHandle(t,function(){var ft,je;return {focus:(ft=Be.current)===null||ft===void 0?void 0:ft.focus,blur:(je=Be.current)===null||je===void 0?void 0:je.blur,scrollTo:function(dt){var yt;return (yt=Ke.current)===null||yt===void 0?void 0:yt.scrollTo(dt)}}});var bt=f__namespace.useMemo(function(){var ft;if(b!=="combobox")return I;var je=(ft=d[0])===null||ft===void 0?void 0:ft.value;return typeof je=="string"||typeof je=="number"?String(je):""},[I,b,d]),at=b==="combobox"&&typeof x=="function"&&x()||null,it=typeof E=="function"&&E(),_e=aa(Pe,it==null||(n=it.props)===null||n===void 0?void 0:n.ref),de=f__namespace.useState(!1),$e=J(de,2),pe=$e[0],we=$e[1];Ht(function(){we(!0);},[]);var He=Wt(!1,{defaultValue:C,value:$}),De=J(He,2),ye=De[0],fe=De[1],me=pe?ye:!1,xe=!h&&g;(y||xe&&me&&b==="combobox")&&(me=!1);var Le=xe?!1:me,qe=f__namespace.useCallback(function(ft){var je=ft!==void 0?ft:!me;y||(fe(je),me!==je&&(w==null||w(je)));},[y,me,fe,w]),st=f__namespace.useMemo(function(){return (N||[]).some(function(ft){return [`
`,`\r
`].includes(ft)})},[N]),vt=function(je,Je,dt){var yt=!0,_t=je;_==null||_(null);var Yt=dt?null:SH(je,N);return b!=="combobox"&&Yt&&(_t="",k==null||k(Yt),qe(!1),yt=!1),R&&bt!==_t&&R(_t,{source:Je?"typing":"effect"}),yt},kt=function(je){!je||!je.trim()||R(je,{source:"submit"});};f__namespace.useEffect(function(){!me&&!se&&b!=="combobox"&&vt("",!1,!1);},[me]),f__namespace.useEffect(function(){ye&&y&&fe(!1),y&&!ze.current&&Ve(!1);},[y]);var zt=AS(),ut=J(zt,2),Ft=ut[0],ht=ut[1],Ne=function(je){var Je=Ft(),dt=je.which;if(dt===ce.ENTER&&(b!=="combobox"&&je.preventDefault(),me||qe(!0)),ht(!!bt),dt===ce.BACKSPACE&&!Je&&se&&!bt&&d.length){for(var yt=Re(d),_t=null,Yt=yt.length-1;Yt>=0;Yt-=1){var Pn=yt[Yt];if(!Pn.disabled){yt.splice(Yt,1),_t=Pn;break}}_t&&m(yt,{type:"remove",values:[_t]});}for(var Gn=arguments.length,Dr=new Array(Gn>1?Gn-1:0),Qn=1;Qn<Gn;Qn++)Dr[Qn-1]=arguments[Qn];if(me&&Ke.current){var da;(da=Ke.current).onKeyDown.apply(da,[je].concat(Dr));}Z==null||Z.apply(void 0,[je].concat(Dr));},Ie=function(je){for(var Je=arguments.length,dt=new Array(Je>1?Je-1:0),yt=1;yt<Je;yt++)dt[yt-1]=arguments[yt];if(me&&Ke.current){var _t;(_t=Ke.current).onKeyUp.apply(_t,[je].concat(dt));}ue==null||ue.apply(void 0,[je].concat(dt));},Se=function(je){var Je=d.filter(function(dt){return dt!==je});m(Je,{type:"remove",values:[je]});},be=f__namespace.useRef(!1),Ge=function(){Ve(!0),y||(Q&&!be.current&&Q.apply(void 0,arguments),le.includes("focus")&&qe(!0)),be.current=!0;},Ue=function(){ze.current=!0,Ve(!1,function(){be.current=!1,ze.current=!1,qe(!1);}),!y&&(bt&&(b==="tags"?R(bt,{source:"submit"}):b==="multiple"&&R("",{source:"blur"})),oe&&oe.apply(void 0,arguments));},Ct=[];f__namespace.useEffect(function(){return function(){Ct.forEach(function(ft){return clearTimeout(ft)}),Ct.splice(0,Ct.length);}},[]);var On=function(je){var Je,dt=je.target,yt=(Je=Qe.current)===null||Je===void 0?void 0:Je.getPopupElement();if(yt&&yt.contains(dt)){var _t=setTimeout(function(){var Dr=Ct.indexOf(_t);if(Dr!==-1&&Ct.splice(Dr,1),ct(),!Me&&!yt.contains(document.activeElement)){var Qn;(Qn=Be.current)===null||Qn===void 0||Qn.focus();}});Ct.push(_t);}for(var Yt=arguments.length,Pn=new Array(Yt>1?Yt-1:0),Gn=1;Gn<Yt;Gn++)Pn[Gn-1]=arguments[Gn];ae==null||ae.apply(void 0,[je].concat(Pn));},bn=f__namespace.useState({}),yn=J(bn,2),mn=yn[1];function In(){mn({});}var qn;it&&(qn=function(je){qe(je);}),eH(function(){var ft;return [he.current,(ft=Qe.current)===null||ft===void 0?void 0:ft.getPopupElement()]},Le,qe,!!it);var ko=f__namespace.useMemo(function(){return q(q({},e),{},{notFoundContent:h,open:me,triggerOpen:Le,id:o,showSearch:ve,multiple:se,toggleOpen:qe})},[e,h,Le,me,o,ve,se,qe]),Yn=!!L||S,jn;Yn&&(jn=f__namespace.createElement(Nu,{className:V("".concat(a,"-arrow"),D({},"".concat(a,"-arrow-loading"),S)),customizeIcon:L,customizeIconProps:{loading:S,searchValue:bt,open:me,focused:ot,showSearch:ve}}));var Qr=function(){var je;p==null||p(),(je=Be.current)===null||je===void 0||je.focus(),m([],{type:"clear",values:d}),vt("",!1,!1);},cr=ZB(a,Qr,d,M,j,y,bt,b),ur=cr.allowClear,Zn=cr.clearIcon,wr=f__namespace.createElement(F,{ref:Ke}),zr=V(a,i,(r={},D(r,"".concat(a,"-focused"),ot),D(r,"".concat(a,"-multiple"),se),D(r,"".concat(a,"-single"),!se),D(r,"".concat(a,"-allow-clear"),M),D(r,"".concat(a,"-show-arrow"),Yn),D(r,"".concat(a,"-disabled"),y),D(r,"".concat(a,"-loading"),S),D(r,"".concat(a,"-open"),me),D(r,"".concat(a,"-customize-input"),at),D(r,"".concat(a,"-show-search"),ve),r)),xr=f__namespace.createElement(DS,{ref:Qe,disabled:y,prefixCls:a,visible:Le,popupElement:wr,animation:K,transitionName:B,dropdownStyle:W,dropdownClassName:H,direction:l,dropdownMatchSelectWidth:Y,dropdownRender:U,dropdownAlign:X,placement:G,builtinPlacements:ee,getPopupContainer:te,empty:g,getTriggerDOMNode:function(){return Pe.current},onPopupVisibleChange:qn,onPopupMouseEnter:In},it?f__namespace.cloneElement(it,{ref:_e}):f__namespace.createElement(zS,Oe({},e,{domRef:Pe,prefixCls:a,inputElement:at,ref:Be,id:o,showSearch:ve,autoClearSearchValue:P,mode:b,activeDescendantId:T,tagRender:c,values:d,open:me,onToggleOpen:qe,activeValue:O,searchValue:bt,onSearch:vt,onSearchSubmit:kt,onRemove:Se,tokenWithEnter:st}))),zn;return it?zn=xr:zn=f__namespace.createElement("div",Oe({className:zr},ge,{ref:he,onMouseDown:On,onKeyDown:Ne,onKeyUp:Ie,onFocus:Ge,onBlur:Ue}),ot&&!me&&f__namespace.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(d.map(function(ft){var je=ft.label,Je=ft.value;return ["number","string"].includes(rt(je))?je:Je}).join(", "))),xr,jn,ur&&Zn),f__namespace.createElement(kS.Provider,{value:ko},zn)});const EH=function(e,t){var n=f__namespace.useRef({values:new Map,options:new Map}),r=f__namespace.useMemo(function(){var a=n.current,i=a.values,s=a.options,c=e.map(function(d){if(d.label===void 0){var m;return q(q({},d),{},{label:(m=i.get(d.value))===null||m===void 0?void 0:m.label})}return d}),l=new Map,u=new Map;return c.forEach(function(d){l.set(d.value,d),u.set(d.value,t.get(d.value)||s.get(d.value));}),n.current.values=l,n.current.options=u,c},[e,t]),o=f__namespace.useCallback(function(a){return t.get(a)||n.current.options.get(a)},[t]);return [r,o]};function Ld(e,t){return LS(e).join("").toUpperCase().includes(t)}const OH=function(e,t,n,r,o){return f__namespace.useMemo(function(){if(!n||r===!1)return e;var a=t.options,i=t.label,s=t.value,c=[],l=typeof r=="function",u=n.toUpperCase(),d=l?r:function(g,v){return o?Ld(v[o],u):v[a]?Ld(v[i!=="children"?i:"label"],u):Ld(v[s],u)},m=l?function(g){return dm(g)}:function(g){return g};return e.forEach(function(g){if(g[a]){var v=d(n,m(g));if(v)c.push(g);else {var h=g[a].filter(function(p){return d(n,m(p))});h.length&&c.push(q(q({},g),{},D({},a,h)));}return}d(n,m(g))&&c.push(g);}),c},[e,r,o,n,t])};var Fb=0,IH=Hn();function PH(){var e;return IH?(e=Fb,Fb+=1):e="TEST_OR_SSR",e}function _H(e){var t=f__namespace.useState(),n=J(t,2),r=n[0],o=n[1];return f__namespace.useEffect(function(){o("rc_select_".concat(PH()));},[]),e||r}var RH=["children","value"],TH=["children"];function MH(e){var t=e,n=t.key,r=t.props,o=r.children,a=r.value,i=Ze(r,RH);return q({key:n,value:a!==void 0?a:n,children:o},i)}function BS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return ir(e).map(function(n,r){if(!f__namespace.isValidElement(n)||!n.type)return null;var o=n,a=o.type.isSelectOptGroup,i=o.key,s=o.props,c=s.children,l=Ze(s,TH);return t||!a?MH(n):q(q({key:"__RC_SELECT_GRP__".concat(i===null?r:i,"__"),label:i},l),{},{options:BS(c)})}).filter(function(n){return n})}function NH(e,t,n,r,o){return f__namespace.useMemo(function(){var a=e,i=!e;i&&(a=BS(t));var s=new Map,c=new Map,l=function(m,g,v){v&&typeof v=="string"&&m.set(g[v],g);};function u(d){for(var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,g=0;g<d.length;g+=1){var v=d[g];!v[n.options]||m?(s.set(v[n.value],v),l(c,v,n.label),l(c,v,r),l(c,v,o)):u(v[n.options],!0);}}return u(a),{options:a,valueOptions:s,labelOptions:c}},[e,t,n,r,o])}function Bb(e){var t=f__namespace.useRef();t.current=e;var n=f__namespace.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var yv=function(){return null};yv.isSelectOptGroup=!0;var Cv=function(){return null};Cv.isSelectOption=!0;var HS=f__namespace.forwardRef(function(e,t){var n=e.height,r=e.offsetY,o=e.offsetX,a=e.children,i=e.prefixCls,s=e.onInnerResize,c=e.innerProps,l=e.rtl,u=e.extra,d={},m={display:"flex",flexDirection:"column"};if(r!==void 0){var g;d={height:n,position:"relative",overflow:"hidden"},m=q(q({},m),{},(g={transform:"translateY(".concat(r,"px)")},D(g,l?"marginRight":"marginLeft",-o),D(g,"position","absolute"),D(g,"left",0),D(g,"right",0),D(g,"top",0),g));}return f__namespace.createElement("div",{style:d},f__namespace.createElement(pr,{onResize:function(h){var p=h.offsetHeight;p&&s&&s();}},f__namespace.createElement("div",Oe({style:m,className:V(D({},"".concat(i,"-holder-inner"),i)),ref:t},c),a,u)))});HS.displayName="Filler";function Hb(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]}var Wb=f__namespace.forwardRef(function(e,t){var n,r=e.prefixCls,o=e.rtl,a=e.scrollOffset,i=e.scrollRange,s=e.onStartMove,c=e.onStopMove,l=e.onScroll,u=e.horizontal,d=e.spinSize,m=e.containerSize,g=e.style,v=e.thumbStyle,h=f__namespace.useState(!1),p=J(h,2),b=p[0],y=p[1],S=f__namespace.useState(null),x=J(S,2),E=x[0],$=x[1],C=f__namespace.useState(null),w=J(C,2),O=w[0],_=w[1],T=!o,I=f__namespace.useRef(),P=f__namespace.useRef(),R=f__namespace.useState(!1),k=J(R,2),N=k[0],M=k[1],L=f__namespace.useRef(),j=function(){clearTimeout(L.current),M(!0),L.current=setTimeout(function(){M(!1);},3e3);},F=i-m||0,K=m-d||0,B=F>0,W=f__namespace.useMemo(function(){if(a===0||F===0)return 0;var le=a/F;return le*K},[a,F,K]),H=function(Q){Q.stopPropagation(),Q.preventDefault();},Y=f__namespace.useRef({top:W,dragging:b,pageY:E,startTop:O});Y.current={top:W,dragging:b,pageY:E,startTop:O};var U=function(Q){y(!0),$(Hb(Q,u)),_(Y.current.top),s(),Q.stopPropagation(),Q.preventDefault();};f__namespace.useEffect(function(){var le=function(Z){Z.preventDefault();},Q=I.current,oe=P.current;return Q.addEventListener("touchstart",le),oe.addEventListener("touchstart",U),function(){Q.removeEventListener("touchstart",le),oe.removeEventListener("touchstart",U);}},[]);var X=f__namespace.useRef();X.current=F;var G=f__namespace.useRef();G.current=K,f__namespace.useEffect(function(){if(b){var le,Q=function(Z){var ae=Y.current,ne=ae.dragging,se=ae.pageY,ve=ae.startTop;if(wt.cancel(le),ne){var ge=Hb(Z,u)-se,ke=ve;!T&&u?ke-=ge:ke+=ge;var Ae=X.current,Me=G.current,Ee=Me?ke/Me:0,he=Math.ceil(Ee*Ae);he=Math.max(he,0),he=Math.min(he,Ae),le=wt(function(){l(he,u);});}},oe=function(){y(!1),c();};return window.addEventListener("mousemove",Q),window.addEventListener("touchmove",Q),window.addEventListener("mouseup",oe),window.addEventListener("touchend",oe),function(){window.removeEventListener("mousemove",Q),window.removeEventListener("touchmove",Q),window.removeEventListener("mouseup",oe),window.removeEventListener("touchend",oe),wt.cancel(le);}}},[b]),f__namespace.useEffect(function(){j();},[a]),f__namespace.useImperativeHandle(t,function(){return {delayHidden:j}});var ee="".concat(r,"-scrollbar"),te={position:"absolute",visibility:N&&B?null:"hidden"},ie={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return u?(te.height=8,te.left=0,te.right=0,te.bottom=0,ie.height="100%",ie.width=d,T?ie.left=W:ie.right=W):(te.width=8,te.top=0,te.bottom=0,T?te.right=0:te.left=0,ie.width="100%",ie.height=d,ie.top=W),f__namespace.createElement("div",{ref:I,className:V(ee,(n={},D(n,"".concat(ee,"-horizontal"),u),D(n,"".concat(ee,"-vertical"),!u),D(n,"".concat(ee,"-visible"),N),n)),style:q(q({},te),g),onMouseDown:H,onMouseMove:j},f__namespace.createElement("div",{ref:P,className:V("".concat(ee,"-thumb"),D({},"".concat(ee,"-thumb-moving"),b)),style:q(q({},ie),v),onMouseDown:U}))});function kH(e){var t=e.children,n=e.setRef,r=f__namespace.useCallback(function(o){n(o);},[]);return f__namespace.cloneElement(t,{ref:r})}function AH(e,t,n,r,o,a,i){var s=i.getKey;return e.slice(t,n+1).map(function(c,l){var u=t+l,d=a(c,u,{style:{width:r}}),m=s(c);return f__namespace.createElement(kH,{key:m,setRef:function(v){return o(c,v)}},d)})}var LH=function(){function e(){hn(this,e),this.maps=void 0,this.id=0,this.maps=Object.create(null);}return pn(e,[{key:"set",value:function(n,r){this.maps[n]=r,this.id+=1;}},{key:"get",value:function(n){return this.maps[n]}}]),e}();function jH(e,t,n){var r=f__namespace.useState(0),o=J(r,2),a=o[0],i=o[1],s=f.useRef(new Map),c=f.useRef(new LH),l=f.useRef();function u(){wt.cancel(l.current);}function d(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;u();var v=function(){s.current.forEach(function(p,b){if(p&&p.offsetParent){var y=Hi(p),S=y.offsetHeight;c.current.get(b)!==S&&c.current.set(b,y.offsetHeight);}}),i(function(p){return p+1});};g?v():l.current=wt(v);}function m(g,v){var h=e(g),p=s.current.get(h);v?(s.current.set(h,v),d()):s.current.delete(h),!p!=!v&&(v?t==null||t(g):n==null||n(g));}return f.useEffect(function(){return u},[]),[m,d,c.current,a]}var zH=10;function DH(e,t,n,r,o,a,i,s){var c=f__namespace.useRef(),l=f__namespace.useState(null),u=J(l,2),d=u[0],m=u[1];return Ht(function(){if(d&&d.times<zH){if(!e.current){m(function(j){return q({},j)});return}a();var g=d.targetAlign,v=d.originAlign,h=d.index,p=d.offset,b=e.current.clientHeight,y=!1,S=g,x=null;if(b){for(var E=g||v,$=0,C=0,w=0,O=Math.min(t.length-1,h),_=0;_<=O;_+=1){var T=o(t[_]);C=$;var I=n.get(T);w=C+(I===void 0?r:I),$=w;}for(var P=E==="top"?p:b-p,R=O;R>=0;R-=1){var k=o(t[R]),N=n.get(k);if(N===void 0){y=!0;break}if(P-=N,P<=0)break}switch(E){case"top":x=C-p;break;case"bottom":x=w-b+p;break;default:{var M=e.current.scrollTop,L=M+b;C<M?S="top":w>L&&(S="bottom");}}x!==null&&i(x),x!==d.lastTop&&(y=!0);}y&&m(function(j){return q(q({},j),{},{times:j.times+1,targetAlign:S,lastTop:x})});}},[d,e.current]),function(g){if(g==null){s();return}if(wt.cancel(c.current),typeof g=="number")i(g);else if(g&&rt(g)==="object"){var v,h=g.align;"index"in g?v=g.index:v=t.findIndex(function(y){return o(y)===g.key});var p=g.offset,b=p===void 0?0:p;m({times:0,index:v,offset:b,originAlign:h});}}}function FH(e,t,n){var r=e.length,o=t.length,a,i;if(r===0&&o===0)return null;r<o?(a=e,i=t):(a=t,i=e);var s={__EMPTY_ITEM__:!0};function c(v){return v!==void 0?n(v):s}for(var l=null,u=Math.abs(r-o)!==1,d=0;d<i.length;d+=1){var m=c(a[d]),g=c(i[d]);if(m!==g){l=d,u=u||m!==c(i[d+1]);break}}return l===null?null:{index:l,multiple:u}}function BH(e,t,n){var r=f__namespace.useState(e),o=J(r,2),a=o[0],i=o[1],s=f__namespace.useState(null),c=J(s,2),l=c[0],u=c[1];return f__namespace.useEffect(function(){var d=FH(a||[],e||[],t);(d==null?void 0:d.index)!==void 0&&(n==null||n(d.index),u(e[d.index])),i(e);},[e]),[l]}var Vb=(typeof navigator>"u"?"undefined":rt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const WS=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 a=f.useRef({top:e,bottom:t});return a.current.top=e,a.current.bottom=t,function(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,c=i<0&&a.current.top||i>0&&a.current.bottom;return s&&c?(clearTimeout(r.current),n.current=!1):(!c||n.current)&&o(),!n.current&&c}};function HH(e,t,n,r,o){var a=f.useRef(0),i=f.useRef(null),s=f.useRef(null),c=f.useRef(!1),l=WS(t,n);function u(p,b){wt.cancel(i.current),a.current+=b,s.current=b,!l(b)&&(Vb||p.preventDefault(),i.current=wt(function(){var y=c.current?10:1;o(a.current*y),a.current=0;}));}function d(p,b){o(b,!0),Vb||p.preventDefault();}var m=f.useRef(null),g=f.useRef(null);function v(p){if(e){wt.cancel(g.current),g.current=wt(function(){m.current=null;},2);var b=p.deltaX,y=p.deltaY,S=p.shiftKey,x=b,E=y;(m.current==="sx"||!m.current&&S&&y&&!b)&&(x=y,E=0,m.current="sx");var $=Math.abs(x),C=Math.abs(E);m.current===null&&(m.current=r&&$>C?"x":"y"),m.current==="y"?u(p,E):d(p,x);}}function h(p){e&&(c.current=p.detail===s.current);}return [v,h]}var WH=14/15;function VH(e,t,n){var r=f.useRef(!1),o=f.useRef(0),a=f.useRef(null),i=f.useRef(null),s,c=function(m){if(r.current){var g=Math.ceil(m.touches[0].pageY),v=o.current-g;o.current=g,n(v)&&m.preventDefault(),clearInterval(i.current),i.current=setInterval(function(){v*=WH,(!n(v,!0)||Math.abs(v)<=.1)&&clearInterval(i.current);},16);}},l=function(){r.current=!1,s();},u=function(m){s(),m.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(m.touches[0].pageY),a.current=m.target,a.current.addEventListener("touchmove",c),a.current.addEventListener("touchend",l));};s=function(){a.current&&(a.current.removeEventListener("touchmove",c),a.current.removeEventListener("touchend",l));},Ht(function(){return e&&t.current.addEventListener("touchstart",u),function(){var d;(d=t.current)===null||d===void 0||d.removeEventListener("touchstart",u),s(),clearInterval(i.current);}},[e]);}var KH=20;function Kb(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*100;return isNaN(n)&&(n=0),n=Math.max(n,KH),n=Math.min(n,e/2),Math.floor(n)}function GH(e,t,n,r){var o=f__namespace.useMemo(function(){return [new Map,[]]},[e,n.id,r]),a=J(o,2),i=a[0],s=a[1],c=function(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u,m=i.get(u),g=i.get(d);if(m===void 0||g===void 0)for(var v=e.length,h=s.length;h<v;h+=1){var p,b=e[h],y=t(b);i.set(y,h);var S=(p=n.get(y))!==null&&p!==void 0?p:r;if(s[h]=(s[h-1]||0)+S,y===u&&(m=h),y===d&&(g=h),m!==void 0&&g!==void 0)break}return {top:s[m-1]||0,bottom:s[g]}};return c}var UH=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],XH=[],qH={overflowY:"auto",overflowAnchor:"none"};function YH(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,o=e.className,a=e.height,i=e.itemHeight,s=e.fullHeight,c=s===void 0?!0:s,l=e.style,u=e.data,d=e.children,m=e.itemKey,g=e.virtual,v=e.direction,h=e.scrollWidth,p=e.component,b=p===void 0?"div":p,y=e.onScroll,S=e.onVirtualScroll,x=e.onVisibleChange,E=e.innerProps,$=e.extraRender,C=e.styles,w=Ze(e,UH),O=!!(g!==!1&&a&&i),_=O&&u&&(i*u.length>a||!!h),T=v==="rtl",I=V(r,D({},"".concat(r,"-rtl"),T),o),P=u||XH,R=f.useRef(),k=f.useRef(),N=f.useState(0),M=J(N,2),L=M[0],j=M[1],F=f.useState(0),K=J(F,2),B=K[0],W=K[1],H=f.useState(!1),Y=J(H,2),U=Y[0],X=Y[1],G=function(){X(!0);},ee=function(){X(!1);},te=f__namespace.useCallback(function(Se){return typeof m=="function"?m(Se):Se==null?void 0:Se[m]},[m]),ie={getKey:te};function le(Se){j(function(be){var Ge;typeof Se=="function"?Ge=Se(be):Ge=Se;var Ue=_e(Ge);return R.current.scrollTop=Ue,Ue});}var Q=f.useRef({start:0,end:P.length}),oe=f.useRef(),ue=BH(P,te),Z=J(ue,1),ae=Z[0];oe.current=ae;var ne=jH(te,null,null),se=J(ne,4),ve=se[0],ge=se[1],ke=se[2],Ae=se[3],Me=f__namespace.useMemo(function(){if(!O)return {scrollHeight:void 0,start:0,end:P.length-1,offset:void 0};if(!_){var Se;return {scrollHeight:((Se=k.current)===null||Se===void 0?void 0:Se.offsetHeight)||0,start:0,end:P.length-1,offset:void 0}}for(var be=0,Ge,Ue,Ct,On=P.length,bn=0;bn<On;bn+=1){var yn=P[bn],mn=te(yn),In=ke.get(mn),qn=be+(In===void 0?i:In);qn>=L&&Ge===void 0&&(Ge=bn,Ue=be),qn>L+a&&Ct===void 0&&(Ct=bn),be=qn;}return Ge===void 0&&(Ge=0,Ue=0,Ct=Math.ceil(a/i)),Ct===void 0&&(Ct=P.length-1),Ct=Math.min(Ct+1,P.length-1),{scrollHeight:be,start:Ge,end:Ct,offset:Ue}},[_,O,L,P,Ae,a]),Ee=Me.scrollHeight,he=Me.start,Pe=Me.end,Qe=Me.offset;Q.current.start=he,Q.current.end=Pe;var Be=f__namespace.useState({width:0,height:a}),Ke=J(Be,2),ze=Ke[0],mt=Ke[1],et=function(be){mt(be);},ot=f.useRef(),Ve=f.useRef(),ct=f__namespace.useMemo(function(){return Kb(ze.width,h)},[ze.width,h]),bt=f__namespace.useMemo(function(){return Kb(ze.height,Ee)},[ze.height,Ee]),at=Ee-a,it=f.useRef(at);it.current=at;function _e(Se){var be=Se;return Number.isNaN(it.current)||(be=Math.min(be,it.current)),be=Math.max(be,0),be}var de=L<=0,$e=L>=at,pe=WS(de,$e),we=function(){return {x:T?-B:B,y:L}},He=f.useRef(we()),De=Mn(function(){if(S){var Se=we();(He.current.x!==Se.x||He.current.y!==Se.y)&&(S(Se),He.current=Se);}});function ye(Se,be){var Ge=Se;be?(Q0.flushSync(function(){W(Ge);}),De()):le(Ge);}function fe(Se){var be=Se.currentTarget.scrollTop;be!==L&&le(be),y==null||y(Se),De();}var me=function(be){var Ge=be,Ue=h-ze.width;return Ge=Math.max(Ge,0),Ge=Math.min(Ge,Ue),Ge},xe=Mn(function(Se,be){be?(Q0.flushSync(function(){W(function(Ge){var Ue=Ge+(T?-Se:Se);return me(Ue)});}),De()):le(function(Ge){var Ue=Ge+Se;return Ue});}),Le=HH(O,de,$e,!!h,xe),qe=J(Le,2),st=qe[0],vt=qe[1];VH(O,R,function(Se,be){return pe(Se,be)?!1:(st({preventDefault:function(){},deltaY:Se}),!0)}),Ht(function(){function Se(Ge){O&&Ge.preventDefault();}var be=R.current;return be.addEventListener("wheel",st),be.addEventListener("DOMMouseScroll",vt),be.addEventListener("MozMousePixelScroll",Se),function(){be.removeEventListener("wheel",st),be.removeEventListener("DOMMouseScroll",vt),be.removeEventListener("MozMousePixelScroll",Se);}},[O]),Ht(function(){h&&W(function(Se){return me(Se)});},[ze.width,h]);var kt=function(){var be,Ge;(be=ot.current)===null||be===void 0||be.delayHidden(),(Ge=Ve.current)===null||Ge===void 0||Ge.delayHidden();},zt=DH(R,P,ke,i,te,function(){return ge(!0)},le,kt);f__namespace.useImperativeHandle(t,function(){return {getScrollInfo:we,scrollTo:function(be){function Ge(Ue){return Ue&&rt(Ue)==="object"&&("left"in Ue||"top"in Ue)}Ge(be)?(be.left!==void 0&&W(me(be.left)),zt(be.top)):zt(be);}}}),Ht(function(){if(x){var Se=P.slice(he,Pe+1);x(Se,P);}},[he,Pe,P]);var ut=GH(P,te,ke,i),Ft=$==null?void 0:$({start:he,end:Pe,virtual:_,offsetX:B,offsetY:Qe,rtl:T,getSize:ut}),ht=AH(P,he,Pe,h,ve,d,ie),Ne=null;a&&(Ne=q(D({},c?"height":"maxHeight",a),qH),O&&(Ne.overflowY="hidden",h&&(Ne.overflowX="hidden"),U&&(Ne.pointerEvents="none")));var Ie={};return T&&(Ie.dir="rtl"),f__namespace.createElement("div",Oe({style:q(q({},l),{},{position:"relative"}),className:I},Ie,w),f__namespace.createElement(pr,{onResize:et},f__namespace.createElement(b,{className:"".concat(r,"-holder"),style:Ne,ref:R,onScroll:fe,onMouseEnter:kt},f__namespace.createElement(HS,{prefixCls:r,height:Ee,offsetX:B,offsetY:Qe,scrollWidth:h,onInnerResize:ge,ref:k,innerProps:E,rtl:T,extra:Ft},ht))),_&&Ee>a&&f__namespace.createElement(Wb,{ref:ot,prefixCls:r,scrollOffset:L,scrollRange:Ee,rtl:T,onScroll:ye,onStartMove:G,onStopMove:ee,spinSize:bt,containerSize:ze.height,style:C==null?void 0:C.verticalScrollBar,thumbStyle:C==null?void 0:C.verticalScrollBarThumb}),_&&h&&f__namespace.createElement(Wb,{ref:Ve,prefixCls:r,scrollOffset:B,scrollRange:h,rtl:T,onScroll:ye,onStartMove:G,onStopMove:ee,spinSize:ct,containerSize:ze.width,horizontal:!0,style:C==null?void 0:C.horizontalScrollBar,thumbStyle:C==null?void 0:C.horizontalScrollBarThumb}))}var VS=f__namespace.forwardRef(YH);VS.displayName="List";var KS=f__namespace.createContext(null);function ZH(){return /(mac\sos|macintosh)/i.test(navigator.appVersion)}var QH=["disabled","title","children","style","className"];function Gb(e){return typeof e=="string"||typeof e=="number"}var JH=function(t,n){var r=QB(),o=r.prefixCls,a=r.id,i=r.open,s=r.multiple,c=r.mode,l=r.searchValue,u=r.toggleOpen,d=r.notFoundContent,m=r.onPopupScroll,g=f__namespace.useContext(KS),v=g.flattenOptions,h=g.onActiveValue,p=g.defaultActiveFirstOption,b=g.onSelect,y=g.menuItemSelectedIcon,S=g.rawValues,x=g.fieldNames,E=g.virtual,$=g.direction,C=g.listHeight,w=g.listItemHeight,O="".concat(o,"-item"),_=Ps(function(){return v},[i,v],function(X,G){return G[0]&&X[1]!==G[1]}),T=f__namespace.useRef(null),I=function(G){G.preventDefault();},P=function(G){T.current&&T.current.scrollTo(typeof G=="number"?{index:G}:G);},R=function(G){for(var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,te=_.length,ie=0;ie<te;ie+=1){var le=(G+ie*ee+te)%te,Q=_[le],oe=Q.group,ue=Q.data;if(!oe&&!ue.disabled)return le}return -1},k=f__namespace.useState(function(){return R(0)}),N=J(k,2),M=N[0],L=N[1],j=function(G){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;L(G);var te={source:ee?"keyboard":"mouse"},ie=_[G];if(!ie){h(null,-1,te);return}h(ie.value,G,te);};f.useEffect(function(){j(p!==!1?R(0):-1);},[_.length,l]);var F=f__namespace.useCallback(function(X){return S.has(X)&&c!=="combobox"},[c,Re(S).toString(),S.size]);f.useEffect(function(){var X=setTimeout(function(){if(!s&&i&&S.size===1){var ee=Array.from(S)[0],te=_.findIndex(function(ie){var le=ie.data;return le.value===ee});te!==-1&&(j(te),P(te));}});if(i){var G;(G=T.current)===null||G===void 0||G.scrollTo(void 0);}return function(){return clearTimeout(X)}},[i,l]);var K=function(G){G!==void 0&&b(G,{selected:!S.has(G)}),s||u(!1);};if(f__namespace.useImperativeHandle(n,function(){return {onKeyDown:function(G){var ee=G.which,te=G.ctrlKey;switch(ee){case ce.N:case ce.P:case ce.UP:case ce.DOWN:{var ie=0;if(ee===ce.UP?ie=-1:ee===ce.DOWN?ie=1:ZH()&&te&&(ee===ce.N?ie=1:ee===ce.P&&(ie=-1)),ie!==0){var le=R(M+ie,ie);P(le),j(le,!0);}break}case ce.ENTER:{var Q=_[M];Q&&!Q.data.disabled?K(Q.value):K(void 0),i&&G.preventDefault();break}case ce.ESC:u(!1),i&&G.stopPropagation();}},onKeyUp:function(){},scrollTo:function(G){P(G);}}}),_.length===0)return f__namespace.createElement("div",{role:"listbox",id:"".concat(a,"_list"),className:"".concat(O,"-empty"),onMouseDown:I},d);var B=Object.keys(x).map(function(X){return x[X]}),W=function(G){return G.label};function H(X,G){var ee=X.group;return {role:ee?"presentation":"option",id:"".concat(a,"_list_").concat(G)}}var Y=function(G){var ee=_[G];if(!ee)return null;var te=ee.data||{},ie=te.value,le=ee.group,Q=Ya(te,!0),oe=W(ee);return ee?f__namespace.createElement("div",Oe({"aria-label":typeof oe=="string"&&!le?oe:null},Q,{key:G},H(ee,G),{"aria-selected":F(ie)}),ie):null},U={role:"listbox",id:"".concat(a,"_list")};return f__namespace.createElement(f__namespace.Fragment,null,E&&f__namespace.createElement("div",Oe({},U,{style:{height:0,width:0,overflow:"hidden"}}),Y(M-1),Y(M),Y(M+1)),f__namespace.createElement(VS,{itemKey:"key",ref:T,data:_,height:C,itemHeight:w,fullHeight:!1,onMouseDown:I,onScroll:m,virtual:E,direction:$,innerProps:E?null:U},function(X,G){var ee,te=X.group,ie=X.groupOption,le=X.data,Q=X.label,oe=X.value,ue=le.key;if(te){var Z,ae=(Z=le.title)!==null&&Z!==void 0?Z:Gb(Q)?Q.toString():void 0;return f__namespace.createElement("div",{className:V(O,"".concat(O,"-group")),title:ae},Q!==void 0?Q:ue)}var ne=le.disabled,se=le.title;le.children;var ve=le.style,ge=le.className,ke=Ze(le,QH),Ae=An(ke,B),Me=F(oe),Ee="".concat(O,"-option"),he=V(O,Ee,ge,(ee={},D(ee,"".concat(Ee,"-grouped"),ie),D(ee,"".concat(Ee,"-active"),M===G&&!ne),D(ee,"".concat(Ee,"-disabled"),ne),D(ee,"".concat(Ee,"-selected"),Me),ee)),Pe=W(X),Qe=!y||typeof y=="function"||Me,Be=typeof Pe=="number"?Pe:Pe||oe,Ke=Gb(Be)?Be.toString():void 0;return se!==void 0&&(Ke=se),f__namespace.createElement("div",Oe({},Ya(Ae),E?{}:H(X,G),{"aria-selected":Me,className:he,title:Ke,onMouseMove:function(){M===G||ne||j(G);},onClick:function(){ne||K(oe);},style:ve}),f__namespace.createElement("div",{className:"".concat(Ee,"-content")},Be),f__namespace.isValidElement(y)||Me,Qe&&f__namespace.createElement(Nu,{className:"".concat(O,"-option-state"),customizeIcon:y,customizeIconProps:{value:oe,disabled:ne,isSelected:Me}},Me?"✓":null))}))},GS=f__namespace.forwardRef(JH);GS.displayName="OptionList";var e9=["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"],t9=["inputValue"];function n9(e){return !e||rt(e)!=="object"}var r9=f__namespace.forwardRef(function(e,t){var n=e.id,r=e.mode,o=e.prefixCls,a=o===void 0?"rc-select":o,i=e.backfill,s=e.fieldNames,c=e.inputValue,l=e.searchValue,u=e.onSearch,d=e.autoClearSearchValue,m=d===void 0?!0:d,g=e.onSelect,v=e.onDeselect,h=e.dropdownMatchSelectWidth,p=h===void 0?!0:h,b=e.filterOption,y=e.filterSort,S=e.optionFilterProp,x=e.optionLabelProp,E=e.options,$=e.children,C=e.defaultActiveFirstOption,w=e.menuItemSelectedIcon,O=e.virtual,_=e.direction,T=e.listHeight,I=T===void 0?200:T,P=e.listItemHeight,R=P===void 0?20:P,k=e.value,N=e.defaultValue,M=e.labelInValue,L=e.onChange,j=Ze(e,e9),F=_H(n),K=fm(r),B=!!(!E&&$),W=f__namespace.useMemo(function(){return b===void 0&&r==="combobox"?!1:b},[b,r]),H=f__namespace.useMemo(function(){return FS(s,B)},[JSON.stringify(s),B]),Y=Wt("",{value:l!==void 0?l:c,postState:function(me){return me||""}}),U=J(Y,2),X=U[0],G=U[1],ee=NH(E,$,H,S,x),te=ee.valueOptions,ie=ee.labelOptions,le=ee.options,Q=f__namespace.useCallback(function(fe){var me=LS(fe);return me.map(function(xe){var Le,qe,st,vt,kt;if(n9(xe))Le=xe;else {var zt;st=xe.key,qe=xe.label,Le=(zt=xe.value)!==null&&zt!==void 0?zt:st;}var ut=te.get(Le);if(ut){var Ft;qe===void 0&&(qe=ut==null?void 0:ut[x||H.label]),st===void 0&&(st=(Ft=ut==null?void 0:ut.key)!==null&&Ft!==void 0?Ft:Le),vt=ut==null?void 0:ut.disabled,kt=ut==null?void 0:ut.title;}return {label:qe,value:Le,key:st,disabled:vt,title:kt}})},[H,x,te]),oe=Wt(N,{value:k}),ue=J(oe,2),Z=ue[0],ae=ue[1],ne=f__namespace.useMemo(function(){var fe,me=Q(Z);return r==="combobox"&&uH((fe=me[0])===null||fe===void 0?void 0:fe.value)?[]:me},[Z,Q,r]),se=EH(ne,te),ve=J(se,2),ge=ve[0],ke=ve[1],Ae=f__namespace.useMemo(function(){if(!r&&ge.length===1){var fe=ge[0];if(fe.value===null&&(fe.label===null||fe.label===void 0))return []}return ge.map(function(me){var xe;return q(q({},me),{},{label:(xe=me.label)!==null&&xe!==void 0?xe:me.value})})},[r,ge]),Me=f__namespace.useMemo(function(){return new Set(ge.map(function(fe){return fe.value}))},[ge]);f__namespace.useEffect(function(){if(r==="combobox"){var fe,me=(fe=ge[0])===null||fe===void 0?void 0:fe.value;G(cH(me)?String(me):"");}},[ge]);var Ee=Bb(function(fe,me){var xe,Le=me??fe;return xe={},D(xe,H.value,fe),D(xe,H.label,Le),xe}),he=f__namespace.useMemo(function(){if(r!=="tags")return le;var fe=Re(le),me=function(Le){return te.has(Le)};return Re(ge).sort(function(xe,Le){return xe.value<Le.value?-1:1}).forEach(function(xe){var Le=xe.value;me(Le)||fe.push(Ee(Le,xe.label));}),fe},[Ee,le,te,ge,r]),Pe=OH(he,H,X,W,S),Qe=f__namespace.useMemo(function(){return r!=="tags"||!X||Pe.some(function(fe){return fe[S||"value"]===X})||Pe.some(function(fe){return fe[H.value]===X})?Pe:[Ee(X)].concat(Re(Pe))},[Ee,S,r,Pe,X,H]),Be=f__namespace.useMemo(function(){return y?Re(Qe).sort(function(fe,me){return y(fe,me)}):Qe},[Qe,y]),Ke=f__namespace.useMemo(function(){return CH(Be,{fieldNames:H,childrenAsData:B})},[Be,H,B]),ze=function(me){var xe=Q(me);if(ae(xe),L&&(xe.length!==ge.length||xe.some(function(st,vt){var kt;return ((kt=ge[vt])===null||kt===void 0?void 0:kt.value)!==(st==null?void 0:st.value)}))){var Le=M?xe:xe.map(function(st){return st.value}),qe=xe.map(function(st){return dm(ke(st.value))});L(K?Le:Le[0],K?qe:qe[0]);}},mt=f__namespace.useState(null),et=J(mt,2),ot=et[0],Ve=et[1],ct=f__namespace.useState(0),bt=J(ct,2),at=bt[0],it=bt[1],_e=C!==void 0?C:r!=="combobox",de=f__namespace.useCallback(function(fe,me){var xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Le=xe.source,qe=Le===void 0?"keyboard":Le;it(me),i&&r==="combobox"&&fe!==null&&qe==="keyboard"&&Ve(String(fe));},[i,r]),$e=function(me,xe,Le){var qe=function(){var Se,be=ke(me);return [M?{label:be==null?void 0:be[H.label],value:me,key:(Se=be==null?void 0:be.key)!==null&&Se!==void 0?Se:me}:me,dm(be)]};if(xe&&g){var st=qe(),vt=J(st,2),kt=vt[0],zt=vt[1];g(kt,zt);}else if(!xe&&v&&Le!=="clear"){var ut=qe(),Ft=J(ut,2),ht=Ft[0],Ne=Ft[1];v(ht,Ne);}},pe=Bb(function(fe,me){var xe,Le=K?me.selected:!0;Le?xe=K?[].concat(Re(ge),[fe]):[fe]:xe=ge.filter(function(qe){return qe.value!==fe}),ze(xe),$e(fe,Le),r==="combobox"?Ve(""):(!fm||m)&&(G(""),Ve(""));}),we=function(me,xe){ze(me);var Le=xe.type,qe=xe.values;(Le==="remove"||Le==="clear")&&qe.forEach(function(st){$e(st.value,!1,Le);});},He=function(me,xe){if(G(me),Ve(null),xe.source==="submit"){var Le=(me||"").trim();if(Le){var qe=Array.from(new Set([].concat(Re(Me),[Le])));ze(qe),$e(Le,!0),G("");}return}xe.source!=="blur"&&(r==="combobox"&&ze(me),u==null||u(me));},De=function(me){var xe=me;r!=="tags"&&(xe=me.map(function(qe){var st=ie.get(qe);return st==null?void 0:st.value}).filter(function(qe){return qe!==void 0}));var Le=Array.from(new Set([].concat(Re(Me),Re(xe))));ze(Le),Le.forEach(function(qe){$e(qe,!0);});},ye=f__namespace.useMemo(function(){var fe=O!==!1&&p!==!1;return q(q({},ee),{},{flattenOptions:Ke,onActiveValue:de,defaultActiveFirstOption:_e,onSelect:pe,menuItemSelectedIcon:w,rawValues:Me,fieldNames:H,virtual:fe,direction:_,listHeight:I,listItemHeight:R,childrenAsData:B})},[ee,Ke,de,_e,pe,w,Me,H,O,p,I,R,B]);return f__namespace.createElement(KS.Provider,{value:ye},f__namespace.createElement(xH,Oe({},j,{id:F,prefixCls:a,ref:t,omitDomProps:t9,mode:r,displayValues:Ae,onDisplayValuesChange:we,direction:_,searchValue:X,onSearch:He,autoClearSearchValue:m,onSearchSplit:De,dropdownMatchSelectWidth:p,OptionList:GS,emptyOptions:!Ke.length,activeValue:ot,activeDescendantId:"".concat(F,"_list_").concat(at)})))}),Sv=r9;Sv.Option=Cv;Sv.OptGroup=yv;const o9=()=>{const[,e]=lr(),n=new qt(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"}))))},a9=o9,i9=()=>{const[,e]=lr(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:a,shadowColor:i,contentColor:s}=f.useMemo(()=>({borderColor:new qt(t).onBackground(o).toHexShortString(),shadowColor:new qt(n).onBackground(o).toHexShortString(),contentColor:new qt(r).onBackground(o).toHexShortString()}),[t,n,r,o]);return 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:i,cx:"32",cy:"33",rx:"32",ry:"7"}),f__namespace.createElement("g",{fillRule:"nonzero",stroke:a},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}))))},s9=i9,l9=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:a,lineHeight:i}=e;return {[t]:{marginInline:r,fontSize:a,lineHeight:i,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDisabled,[`${t}-description`]:{color:e.colorTextDisabled},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},c9=Dt("Empty",e=>{const{componentCls:t,controlHeightLG:n}=e,r=gt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n*2.5,emptyImgHeightMD:n,emptyImgHeightSM:n*.875});return [l9(r)]});var u9=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 US=f__namespace.createElement(a9,null),XS=f__namespace.createElement(s9,null),$v=e=>{var{className:t,rootClassName:n,prefixCls:r,image:o=US,description:a,children:i,imageStyle:s,style:c}=e,l=u9(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:u,direction:d,empty:m}=f__namespace.useContext(Xe),g=u("empty",r),[v,h]=c9(g),[p]=hi("Empty"),b=typeof a<"u"?a:p==null?void 0:p.description,y=typeof b=="string"?b:"empty";let S=null;return typeof o=="string"?S=f__namespace.createElement("img",{alt:y,src:o}):S=o,v(f__namespace.createElement("div",Object.assign({className:V(h,g,m==null?void 0:m.className,{[`${g}-normal`]:o===XS,[`${g}-rtl`]:d==="rtl"},t,n),style:Object.assign(Object.assign({},m==null?void 0:m.style),c)},l),f__namespace.createElement("div",{className:`${g}-image`,style:s},S),b&&f__namespace.createElement("div",{className:`${g}-description`},b),i&&f__namespace.createElement("div",{className:`${g}-footer`},i)))};$v.PRESENTED_IMAGE_DEFAULT=US;$v.PRESENTED_IMAGE_SIMPLE=XS;const Ti=$v,d9=e=>{const{componentName:t}=e,{getPrefixCls:n}=f.useContext(Xe),r=n("empty");switch(t){case"Table":case"List":return f.createElement(Ti,{image:Ti.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return f.createElement(Ti,{image:Ti.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return f.createElement(Ti,null)}},qS=d9,f9=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return {position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},m9=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,i=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`;return [{[`${n}-dropdown`]:Object.assign(Object.assign({},Nt(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`
          ${o}${s}bottomLeft,
          ${a}${s}bottomLeft
        `]:{animationName:Bg},[`
          ${o}${s}topLeft,
          ${a}${s}topLeft,
          ${o}${s}topRight,
          ${a}${s}topRight
        `]:{animationName:Wg},[`${i}${s}bottomLeft`]:{animationName:Hg},[`
          ${i}${s}topLeft,
          ${i}${s}topRight
        `]:{animationName:Vg},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},f9(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Qo),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},_o(e,"slide-up"),_o(e,"slide-down"),oc(e,"move-up"),oc(e,"move-down")]},g9=m9,Ea=2,YS=e=>{let{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;const o=(n-t)/2-r,a=Math.ceil(o/2);return [o,a]};function jd(e,t){const{componentCls:n,iconCls:r}=e,o=`${n}-selection-overflow`,a=e.multipleSelectItemHeight,[i]=YS(e),s=t?`${n}-${t}`:"";return {[`${n}-multiple${s}`]:{fontSize:e.fontSize,[o]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",padding:`${i-Ea}px ${Ea*2}px`,borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Ea}px 0`,lineHeight:`${a}px`,visibility:"hidden",content:'"\\a0"'}},[`
        &${n}-show-arrow ${n}-selector,
        &${n}-allow-clear ${n}-selector
      `]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${n}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:a,marginTop:Ea,marginBottom:Ea,lineHeight:`${a-e.lineWidth*2}px`,background:e.multipleItemBg,border:`${e.lineWidth}px ${e.lineType} ${e.multipleItemBorderColor}`,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,marginInlineEnd:Ea*2,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${n}-disabled&`]:{color:e.multipleItemColorDisabled,borderColor:e.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},ia()),{display:"inline-flex",alignItems:"center",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${o}-item + ${o}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${o}-item-suffix`]:{height:"100%"},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-i,"\n          &-input,\n          &-mirror\n        ":{height:a,fontFamily:e.fontFamily,lineHeight:`${a}px`,transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}}const v9=e=>{const{componentCls:t}=e,n=gt(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=gt(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),[,o]=YS(e);return [jd(e),jd(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.controlPaddingHorizontalSM-e.lineWidth},[`${t}-selection-search`]:{marginInlineStart:o}}},jd(r,"lg")]},h9=v9;function zd(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,a=e.controlHeight-e.lineWidth*2,i=Math.ceil(e.fontSize*1.25),s=t?`${n}-${t}`:"";return {[`${n}-single${s}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},Nt(e,!0)),{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:`${a}px`,transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
        &${n}-show-arrow ${n}-selection-item,
        &${n}-show-arrow ${n}-selection-placeholder
      `]:{paddingInlineEnd:i},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${r}px`,[`${n}-selection-search-input`]:{height:a},"&:after":{lineHeight:`${a}px`}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${r}px`,"&:after":{display:"none"}}}}}}}function p9(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return [zd(e),zd(gt(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}}}},zd(gt(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const b9=e=>{const{componentCls:t,selectorBg:n}=e;return {position:"relative",backgroundColor:n,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},Dd=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:r,borderHoverColor:o,antCls:a,borderActiveColor:i,outlineColor:s,controlOutlineWidth:c}=t,l=n?{[`${r}-selector`]:{borderColor:i}}:{};return {[e]:{[`&:not(${r}-disabled):not(${r}-customize-input):not(${a}-pagination-size-changer)`]:Object.assign(Object.assign({},l),{[`&:hover ${r}-selector`]:{borderColor:o},[`${r}-focused& ${r}-selector`]:{borderColor:i,boxShadow:`0 0 0 ${c}px ${s}`,outline:0}})}}},y9=e=>{const{componentCls:t}=e;return {[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},C9=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return {[n]:Object.assign(Object.assign({},Nt(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},b9(e)),y9(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Qo),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Qo),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},ia()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.clearBg,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${n}-clear`]:{opacity:1}}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:r+e.fontSize+e.paddingXS}}}},S9=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%"}}},C9(e),p9(e),h9(e),g9(e),{[`${t}-rtl`]:{direction:"rtl"}},Dd(t,gt(e,{borderHoverColor:e.colorPrimaryHover,borderActiveColor:e.colorPrimary,outlineColor:e.controlOutline})),Dd(`${t}-status-error`,gt(e,{borderHoverColor:e.colorErrorHover,borderActiveColor:e.colorError,outlineColor:e.colorErrorOutline}),!0),Dd(`${t}-status-warning`,gt(e,{borderHoverColor:e.colorWarningHover,borderActiveColor:e.colorWarning,outlineColor:e.colorWarningOutline}),!0),Eu(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},$9=Dt("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=gt(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1,multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return [S9(r)]},e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlPaddingHorizontal:o,zIndexPopupBase:a,colorText:i,fontWeightStrong:s,controlItemBgActive:c,controlItemBgHover:l,colorBgContainer:u,colorFillSecondary:d,controlHeightLG:m,controlHeightSM:g,colorBgContainerDisabled:v,colorTextDisabled:h}=e;return {zIndexPopup:a+50,optionSelectedColor:i,optionSelectedFontWeight:s,optionSelectedBg:c,optionActiveBg:l,optionPadding:`${(r-t*n)/2}px ${o}px`,optionFontSize:t,optionLineHeight:n,optionHeight:r,selectorBg:u,clearBg:u,singleItemHeightLG:m,multipleItemBg:d,multipleItemBorderColor:"transparent",multipleItemHeight:g,multipleItemHeightLG:r,multipleSelectorBgDisabled:v,multipleItemColorDisabled:h,multipleItemBorderColorDisabled:"transparent"}}),w9=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return {bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function x9(e,t){return e||w9(t)}function E9(e,t){return t!==void 0?t:e!==null}var O9={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 I9=O9;var P9=function(t,n){return f__namespace.createElement(En,Oe({},t,{ref:n,icon:I9}))};const _9=f__namespace.forwardRef(P9);var R9={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};const T9=R9;var M9=function(t,n){return f__namespace.createElement(En,Oe({},t,{ref:n,icon:T9}))};const wv=f__namespace.forwardRef(M9);var N9={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 k9=N9;var A9=function(t,n){return f__namespace.createElement(En,Oe({},t,{ref:n,icon:k9}))};const xv=f__namespace.forwardRef(A9);function L9(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:a,multiple:i,hasFeedback:s,prefixCls:c,showSuffixIcon:l,feedbackIcon:u,showArrow:d,componentName:m}=e;const g=n??f__namespace.createElement(wv,null),v=y=>t===null&&!s&&!d?null:f__namespace.createElement(f__namespace.Fragment,null,l!==!1&&y,s&&u);let h=null;if(t!==void 0)h=v(t);else if(a)h=v(f__namespace.createElement(Xg,{spin:!0}));else {const y=`${c}-suffix`;h=S=>{let{open:x,showSearch:E}=S;return v(x&&E?f__namespace.createElement(xv,{className:y}):f__namespace.createElement(ev,{className:y}))};}let p=null;r!==void 0?p=r:i?p=f__namespace.createElement(_9,null):p=null;let b=null;return o!==void 0?b=o:b=f__namespace.createElement(Ou,null),{clearIcon:g,suffixIcon:h,itemIcon:p,removeIcon:b}}var j9=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 ZS="SECRET_COMBOBOX_MODE_DO_NOT_USE",z9=(e,t)=>{var n,{prefixCls:r,bordered:o=!0,className:a,rootClassName:i,getPopupContainer:s,popupClassName:c,dropdownClassName:l,listHeight:u=256,placement:d,listItemHeight:m=24,size:g,disabled:v,notFoundContent:h,status:p,builtinPlacements:b,dropdownMatchSelectWidth:y,popupMatchSelectWidth:S,direction:x,style:E,allowClear:$}=e,C=j9(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:w,getPrefixCls:O,renderEmpty:_,direction:T,virtual:I,popupMatchSelectWidth:P,popupOverflow:R,select:k}=f__namespace.useContext(Xe),N=O("select",r),M=O(),L=x??T,{compactSize:j,compactItemClassnames:F}=bi(N,L),[K,B]=$9(N),W=f__namespace.useMemo(()=>{const{mode:he}=C;if(he!=="combobox")return he===ZS?"combobox":he},[C.mode]),H=W==="multiple"||W==="tags",Y=E9(C.suffixIcon,C.showArrow),U=(n=S??y)!==null&&n!==void 0?n:P,{status:X,hasFeedback:G,isFormItemInput:ee,feedbackIcon:te}=f__namespace.useContext(br),ie=js(X,p);let le;h!==void 0?le=h:W==="combobox"?le=null:le=(_==null?void 0:_("Select"))||f__namespace.createElement(qS,{componentName:"Select"});const{suffixIcon:Q,itemIcon:oe,removeIcon:ue,clearIcon:Z}=L9(Object.assign(Object.assign({},C),{multiple:H,hasFeedback:G,feedbackIcon:te,showSuffixIcon:Y,prefixCls:N,showArrow:C.showArrow,componentName:"Select"})),ae=$===!0?{clearIcon:Z}:$,ne=An(C,["suffixIcon","itemIcon"]),se=V(c||l,{[`${N}-dropdown-${L}`]:L==="rtl"},i,B),ve=Xn(he=>{var Pe;return (Pe=g??j)!==null&&Pe!==void 0?Pe:he}),ge=f__namespace.useContext(Zr),ke=v??ge,Ae=V({[`${N}-lg`]:ve==="large",[`${N}-sm`]:ve==="small",[`${N}-rtl`]:L==="rtl",[`${N}-borderless`]:!o,[`${N}-in-form-item`]:ee},kr(N,ie,G),F,k==null?void 0:k.className,a,i,B),Me=f__namespace.useMemo(()=>d!==void 0?d:L==="rtl"?"bottomRight":"bottomLeft",[d,L]),Ee=x9(b,R);return K(f__namespace.createElement(Sv,Object.assign({ref:t,virtual:I,showSearch:k==null?void 0:k.showSearch},ne,{style:Object.assign(Object.assign({},k==null?void 0:k.style),E),dropdownMatchSelectWidth:U,builtinPlacements:Ee,transitionName:vu(M,"slide-up",C.transitionName),listHeight:u,listItemHeight:m,mode:W,prefixCls:N,placement:Me,direction:L,suffixIcon:Q,menuItemSelectedIcon:oe,removeIcon:ue,allowClear:ae,notFoundContent:le,className:Ae,getPopupContainer:s||w,dropdownClassName:se,disabled:ke})))},Si=f__namespace.forwardRef(z9),D9=hv(Si);Si.SECRET_COMBOBOX_MODE_DO_NOT_USE=ZS;Si.Option=Cv;Si.OptGroup=yv;Si._InternalPanelDoNotUseOrYouWillBeFired=D9;const Fs=Si;var oo;(function(e){e.hex="hex",e.rgb="rgb",e.hsb="hsb";})(oo||(oo={}));const F9=e=>{let{prefixCls:t,min:n=0,max:r=100,value:o,onChange:a,className:i,formatter:s}=e;const c=`${t}-steppers`,[l,u]=f.useState(o);return f.useEffect(()=>{Number.isNaN(o)||u(o);},[o]),f.createElement(am,{className:V(c,i),min:n,max:r,value:l,formatter:s,size:"small",onChange:d=>{o||u(d||0),a==null||a(d);}})},Zo=F9,B9=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-alpha-input`,[a,i]=f.useState(kn(n||"#000"));f.useEffect(()=>{n&&i(n);},[n]);const s=c=>{const l=a.toHsb();l.a=(c||0)/100;const u=kn(l);n||i(u),r==null||r(u);};return f.createElement(Zo,{value:dc(a),prefixCls:t,formatter:c=>`${c}%`,className:o,onChange:s})},H9=B9,W9=e=>{const{getPrefixCls:t,direction:n}=f.useContext(Xe),{prefixCls:r,className:o}=e,a=t("input-group",r),i=t("input"),[s,c]=lv(i),l=V(a,{[`${a}-lg`]:e.size==="large",[`${a}-sm`]:e.size==="small",[`${a}-compact`]:e.compact,[`${a}-rtl`]:n==="rtl"},c,o),u=f.useContext(br),d=f.useMemo(()=>Object.assign(Object.assign({},u),{isFormItemInput:!1}),[u]);return s(f__namespace.createElement("span",{className:l,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},f__namespace.createElement(br.Provider,{value:d},e.children)))},V9=W9;function QS(e,t){const n=f.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,a,i,s;!((o=e.current)===null||o===void 0)&&o.input&&((a=e.current)===null||a===void 0?void 0:a.input.getAttribute("type"))==="password"&&(!((i=e.current)===null||i===void 0)&&i.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"));}));};return f.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o);})),[]),r}function K9(e){return !!(e.prefix||e.suffix||e.allowClear)}var G9=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 U9(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 X9=f.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,status:a,size:i,disabled:s,onBlur:c,onFocus:l,suffix:u,allowClear:d,addonAfter:m,addonBefore:g,className:v,style:h,styles:p,rootClassName:b,onChange:y,classNames:S}=e,x=G9(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:E,direction:$,input:C}=f.useContext(Xe),w=E("input",r),O=f.useRef(null),[_,T]=lv(w),{compactSize:I,compactItemClassnames:P}=bi(w,$),R=Xn(G=>{var ee;return (ee=i??I)!==null&&ee!==void 0?ee:G}),k=f.useContext(Zr),N=s??k,{status:M,hasFeedback:L,feedbackIcon:j}=f.useContext(br),F=js(M,a),K=K9(e)||!!L;f.useRef(K);const B=QS(O,!0),W=G=>{B(),c==null||c(G);},H=G=>{B(),l==null||l(G);},Y=G=>{B(),y==null||y(G);},U=(L||u)&&f.createElement(f.Fragment,null,u,L&&j);let X;return typeof d=="object"&&(d!=null&&d.clearIcon)?X=d:d&&(X={clearIcon:f.createElement(wv,null)}),_(f.createElement(gF,Object.assign({ref:Kn(t,O),prefixCls:w,autoComplete:C==null?void 0:C.autoComplete},x,{disabled:N,onBlur:W,onFocus:H,style:Object.assign(Object.assign({},C==null?void 0:C.style),h),styles:Object.assign(Object.assign({},C==null?void 0:C.styles),p),suffix:U,allowClear:X,className:V(v,b,P,C==null?void 0:C.className),onChange:Y,addonAfter:m&&f.createElement(Ua,null,f.createElement(ls,{override:!0,status:!0},m)),addonBefore:g&&f.createElement(Ua,null,f.createElement(ls,{override:!0,status:!0},g)),classNames:Object.assign(Object.assign(Object.assign({},S),C==null?void 0:C.classNames),{input:V({[`${w}-sm`]:R==="small",[`${w}-lg`]:R==="large",[`${w}-rtl`]:$==="rtl",[`${w}-borderless`]:!o},!K&&kr(w,F),S==null?void 0:S.input,(n=C==null?void 0:C.classNames)===null||n===void 0?void 0:n.input,T)}),classes:{affixWrapper:V({[`${w}-affix-wrapper-sm`]:R==="small",[`${w}-affix-wrapper-lg`]:R==="large",[`${w}-affix-wrapper-rtl`]:$==="rtl",[`${w}-affix-wrapper-borderless`]:!o},kr(`${w}-affix-wrapper`,F,L),T),wrapper:V({[`${w}-group-rtl`]:$==="rtl"},T),group:V({[`${w}-group-wrapper-sm`]:R==="small",[`${w}-group-wrapper-lg`]:R==="large",[`${w}-group-wrapper-rtl`]:$==="rtl",[`${w}-group-wrapper-disabled`]:N},kr(`${w}-group-wrapper`,F,L),T)}})))}),Ev=X9;var q9={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 Y9=q9;var Z9=function(t,n){return f__namespace.createElement(En,Oe({},t,{ref:n,icon:Y9}))};const Q9=f__namespace.forwardRef(Z9);var J9={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 e7=J9;var t7=function(t,n){return f__namespace.createElement(En,Oe({},t,{ref:n,icon:e7}))};const n7=f__namespace.forwardRef(t7);var r7=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 o7=e=>e?f__namespace.createElement(n7,null):f__namespace.createElement(Q9,null),a7={click:"onClick",hover:"onMouseOver"},i7=f__namespace.forwardRef((e,t)=>{const{visibilityToggle:n=!0}=e,r=typeof n=="object"&&n.visible!==void 0,[o,a]=f.useState(()=>r?n.visible:!1),i=f.useRef(null);f__namespace.useEffect(()=>{r&&a(n.visible);},[r,n]);const s=QS(i),c=()=>{const{disabled:E}=e;E||(o&&s(),a($=>{var C;const w=!$;return typeof n=="object"&&((C=n.onVisibleChange)===null||C===void 0||C.call(n,w)),w}));},l=E=>{const{action:$="click",iconRender:C=o7}=e,w=a7[$]||"",O=C(o),_={[w]:c,className:`${E}-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),_)},{className:u,prefixCls:d,inputPrefixCls:m,size:g}=e,v=r7(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:h}=f__namespace.useContext(Xe),p=h("input",m),b=h("input-password",d),y=n&&l(b),S=V(b,u,{[`${b}-${g}`]:!!g}),x=Object.assign(Object.assign({},An(v,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:S,prefixCls:p,suffix:y});return g&&(x.size=g),f__namespace.createElement(Ev,Object.assign({ref:Kn(t,i)},x))}),s7=i7;var l7=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 c7=f__namespace.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:a,suffix:i,enterButton:s=!1,addonAfter:c,loading:l,disabled:u,onSearch:d,onChange:m,onCompositionStart:g,onCompositionEnd:v}=e,h=l7(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:p,direction:b}=f__namespace.useContext(Xe),y=f__namespace.useRef(!1),S=p("input-search",n),x=p("input",r),{compactSize:E}=bi(S,b),$=Xn(F=>{var K;return (K=a??E)!==null&&K!==void 0?K:F}),C=f__namespace.useRef(null),w=F=>{F&&F.target&&F.type==="click"&&d&&d(F.target.value,F,{source:"clear"}),m&&m(F);},O=F=>{var K;document.activeElement===((K=C.current)===null||K===void 0?void 0:K.input)&&F.preventDefault();},_=F=>{var K,B;d&&d((B=(K=C.current)===null||K===void 0?void 0:K.input)===null||B===void 0?void 0:B.value,F,{source:"input"});},T=F=>{y.current||l||_(F);},I=typeof s=="boolean"?f__namespace.createElement(xv,null):null,P=`${S}-button`;let R;const k=s||{},N=k.type&&k.type.__ANT_BUTTON===!0;N||k.type==="button"?R=Wn(k,Object.assign({onMouseDown:O,onClick:F=>{var K,B;(B=(K=k==null?void 0:k.props)===null||K===void 0?void 0:K.onClick)===null||B===void 0||B.call(K,F),_(F);},key:"enterButton"},N?{className:P,size:$}:{})):R=f__namespace.createElement(Xt,{className:P,type:s?"primary":void 0,size:$,disabled:u,key:"enterButton",onMouseDown:O,onClick:_,loading:l,icon:I},s),c&&(R=[R,Wn(c,{key:"addonAfter"})]);const M=V(S,{[`${S}-rtl`]:b==="rtl",[`${S}-${$}`]:!!$,[`${S}-with-button`]:!!s},o),L=F=>{y.current=!0,g==null||g(F);},j=F=>{y.current=!1,v==null||v(F);};return f__namespace.createElement(Ev,Object.assign({ref:Kn(C,t),onPressEnter:T},h,{size:$,onCompositionStart:L,onCompositionEnd:j,prefixCls:x,addonAfter:R,suffix:i,onChange:w,className:M,disabled:u}))}),u7=c7;var d7=`
  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;
`,f7=["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"],Fd={},gr;function m7(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&&Fd[n])return Fd[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),a=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=f7.map(function(l){return "".concat(l,":").concat(r.getPropertyValue(l))}).join(";"),c={sizingStyle:s,paddingSize:a,borderSize:i,boxSizing:o};return t&&n&&(Fd[n]=c),c}function g7(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;gr||(gr=document.createElement("textarea"),gr.setAttribute("tab-index","-1"),gr.setAttribute("aria-hidden","true"),document.body.appendChild(gr)),e.getAttribute("wrap")?gr.setAttribute("wrap",e.getAttribute("wrap")):gr.removeAttribute("wrap");var o=m7(e,t),a=o.paddingSize,i=o.borderSize,s=o.boxSizing,c=o.sizingStyle;gr.setAttribute("style","".concat(c,";").concat(d7)),gr.value=e.value||e.placeholder||"";var l=void 0,u=void 0,d,m=gr.scrollHeight;if(s==="border-box"?m+=i:s==="content-box"&&(m-=a),n!==null||r!==null){gr.value=" ";var g=gr.scrollHeight-a;n!==null&&(l=g*n,s==="border-box"&&(l=l+a+i),m=Math.max(l,m)),r!==null&&(u=g*r,s==="border-box"&&(u=u+a+i),d=m>u?"":"hidden",m=Math.min(u,m));}var v={height:m,overflowY:d,resize:"none"};return l&&(v.minHeight=l),u&&(v.maxHeight=u),v}var v7=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Bd=0,Hd=1,Wd=2,h7=f__namespace.forwardRef(function(e,t){var n=e,r=n.prefixCls;n.onPressEnter;var o=n.defaultValue,a=n.value,i=n.autoSize,s=n.onResize,c=n.className,l=n.style,u=n.disabled,d=n.onChange;n.onInternalAutoSize;var m=Ze(n,v7),g=Wt(o,{value:a,postState:function(H){return H??""}}),v=J(g,2),h=v[0],p=v[1],b=function(H){p(H.target.value),d==null||d(H);},y=f__namespace.useRef();f__namespace.useImperativeHandle(t,function(){return {textArea:y.current}});var S=f__namespace.useMemo(function(){return i&&rt(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),x=J(S,2),E=x[0],$=x[1],C=!!i,w=function(){try{if(document.activeElement===y.current){var H=y.current,Y=H.selectionStart,U=H.selectionEnd,X=H.scrollTop;y.current.setSelectionRange(Y,U),y.current.scrollTop=X;}}catch{}},O=f__namespace.useState(Wd),_=J(O,2),T=_[0],I=_[1],P=f__namespace.useState(),R=J(P,2),k=R[0],N=R[1],M=function(){I(Bd);};Ht(function(){C&&M();},[a,E,$,C]),Ht(function(){if(T===Bd)I(Hd);else if(T===Hd){var W=g7(y.current,!1,E,$);I(Wd),N(W);}else w();},[T]);var L=f__namespace.useRef(),j=function(){wt.cancel(L.current);},F=function(H){T===Wd&&(s==null||s(H),i&&(j(),L.current=wt(function(){M();})));};f__namespace.useEffect(function(){return j},[]);var K=C?k:null,B=q(q({},l),K);return (T===Bd||T===Hd)&&(B.overflowY="hidden",B.overflowX="hidden"),f__namespace.createElement(pr,{onResize:F,disabled:!(i||s)},f__namespace.createElement("textarea",Oe({},m,{ref:y,style:B,className:V(r,c,D({},"".concat(r,"-disabled"),u)),disabled:u,value:h,onChange:b})))}),p7=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function JS(e,t){return Re(e||"").slice(0,t).join("")}function Ub(e,t,n,r){var o=n;return e?o=JS(n,r):Re(t||"").length<n.length&&Re(n||"").length>r&&(o=t),o}var b7=f.forwardRef(function(e,t){var n,r=e.defaultValue,o=e.value,a=e.onFocus,i=e.onBlur,s=e.onChange,c=e.allowClear,l=e.maxLength,u=e.onCompositionStart,d=e.onCompositionEnd,m=e.suffix,g=e.prefixCls,v=g===void 0?"rc-textarea":g,h=e.classes,p=e.showCount,b=e.className,y=e.style,S=e.disabled,x=e.hidden,E=e.classNames,$=e.styles,C=e.onResize,w=Ze(e,p7),O=Wt(r,{value:o,defaultValue:r}),_=J(O,2),T=_[0],I=_[1],P=f.useRef(null),R=f.useState(!1),k=J(R,2),N=k[0],M=k[1],L=f.useState(!1),j=J(L,2),F=j[0],K=j[1],B=f.useRef(),W=f.useRef(0),H=f.useState(null),Y=J(H,2),U=Y[0],X=Y[1],G=function(){var Ee;(Ee=P.current)===null||Ee===void 0||Ee.textArea.focus();};f.useImperativeHandle(t,function(){return {resizableTextArea:P.current,focus:G,blur:function(){var Ee;(Ee=P.current)===null||Ee===void 0||Ee.textArea.blur();}}}),f.useEffect(function(){M(function(Me){return !S&&Me});},[S]);var ee=Number(l)>0,te=function(Ee){K(!0),B.current=T,W.current=Ee.currentTarget.selectionStart,u==null||u(Ee);},ie=function(Ee){K(!1);var he=Ee.currentTarget.value;if(ee){var Pe,Qe=W.current>=l+1||W.current===((Pe=B.current)===null||Pe===void 0?void 0:Pe.length);he=Ub(Qe,B.current,he,l);}he!==T&&(I(he),Ki(Ee.currentTarget,Ee,s,he)),d==null||d(Ee);},le=function(Ee){var he=Ee.target.value;if(!F&&ee){var Pe=Ee.target.selectionStart>=l+1||Ee.target.selectionStart===he.length||!Ee.target.selectionStart;he=Ub(Pe,T,he,l);}I(he),Ki(Ee.currentTarget,Ee,s,he);},Q=function(Ee){var he=w.onPressEnter,Pe=w.onKeyDown;Ee.key==="Enter"&&he&&he(Ee),Pe==null||Pe(Ee);},oe=function(Ee){M(!0),a==null||a(Ee);},ue=function(Ee){M(!1),i==null||i(Ee);},Z=function(Ee){var he;I(""),G(),Ki((he=P.current)===null||he===void 0?void 0:he.textArea,Ee,s);},ae=rm(T);!F&&ee&&o==null&&(ae=JS(ae,l));var ne=m,se;if(p){var ve=Re(ae).length;rt(p)==="object"?se=p.formatter({value:ae,count:ve,maxLength:l}):se="".concat(ve).concat(ee?" / ".concat(l):""),ne=f.createElement(f.Fragment,null,ne,f.createElement("span",{className:V("".concat(v,"-data-count"),E==null?void 0:E.count),style:$==null?void 0:$.count},se));}var ge=function(Ee){var he;C==null||C(Ee),(he=P.current)!==null&&he!==void 0&&he.textArea.style.height&&X(!0);},ke=!w.autoSize&&!p&&!c,Ae=f.createElement(rv,{value:ae,allowClear:c,handleReset:Z,suffix:ne,prefixCls:v,classes:{affixWrapper:V(h==null?void 0:h.affixWrapper,(n={},D(n,"".concat(v,"-show-count"),p),D(n,"".concat(v,"-textarea-allow-clear"),c),n))},disabled:S,focused:N,className:b,style:q(q({},y),U&&!ke?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof se=="string"?se:void 0}},hidden:x,inputElement:f.createElement(h7,Oe({},w,{onKeyDown:Q,onChange:le,onFocus:oe,onBlur:ue,onCompositionStart:te,onCompositionEnd:ie,className:E==null?void 0:E.textarea,style:q(q({},$==null?void 0:$.textarea),{},{resize:y==null?void 0:y.resize}),disabled:S,prefixCls:v,onResize:ge,ref:P}))});return Ae}),y7=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 C7=f.forwardRef((e,t)=>{const{prefixCls:n,bordered:r=!0,size:o,disabled:a,status:i,allowClear:s,showCount:c,classNames:l,rootClassName:u,className:d}=e,m=y7(e,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:g,direction:v}=f__namespace.useContext(Xe),h=Xn(o),p=f__namespace.useContext(Zr),b=a??p,{status:y,hasFeedback:S,feedbackIcon:x}=f__namespace.useContext(br),E=js(y,i),$=f__namespace.useRef(null);f__namespace.useImperativeHandle(t,()=>{var T;return {resizableTextArea:(T=$.current)===null||T===void 0?void 0:T.resizableTextArea,focus:I=>{var P,R;U9((R=(P=$.current)===null||P===void 0?void 0:P.resizableTextArea)===null||R===void 0?void 0:R.textArea,I);},blur:()=>{var I;return (I=$.current)===null||I===void 0?void 0:I.blur()}}});const C=g("input",n);let w;typeof s=="object"&&(s!=null&&s.clearIcon)?w=s:s&&(w={clearIcon:f__namespace.createElement(wv,null)});const[O,_]=lv(C);return O(f__namespace.createElement(b7,Object.assign({},m,{disabled:b,allowClear:w,className:V(d,u),classes:{affixWrapper:V(`${C}-textarea-affix-wrapper`,{[`${C}-affix-wrapper-rtl`]:v==="rtl",[`${C}-affix-wrapper-borderless`]:!r,[`${C}-affix-wrapper-sm`]:h==="small",[`${C}-affix-wrapper-lg`]:h==="large",[`${C}-textarea-show-count`]:c},kr(`${C}-affix-wrapper`,E),_)},classNames:Object.assign(Object.assign({},l),{textarea:V({[`${C}-borderless`]:!r,[`${C}-sm`]:h==="small",[`${C}-lg`]:h==="large"},kr(C,E),_,l==null?void 0:l.textarea)}),prefixCls:C,suffix:S&&f__namespace.createElement("span",{className:`${C}-textarea-suffix`},x),showCount:c,ref:$})))}),S7=C7,Bs=Ev;Bs.Group=V9;Bs.Search=u7;Bs.TextArea=S7;Bs.Password=s7;const e$=Bs,$7=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,Xb=e=>$7.test(`#${e}`),w7=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-hex-input`,[a,i]=f.useState(n==null?void 0:n.toHex());f.useEffect(()=>{const c=n==null?void 0:n.toHex();Xb(c)&&n&&i(zl(c));},[n]);const s=c=>{const l=c.target.value;i(zl(l)),Xb(zl(l,!0))&&(r==null||r(kn(l)));};return f.createElement(e$,{className:o,value:a,prefix:"#",onChange:s,size:"small"})},x7=w7,E7=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-hsb-input`,[a,i]=f.useState(kn(n||"#000"));f.useEffect(()=>{n&&i(n);},[n]);const s=(c,l)=>{const u=a.toHsb();u[l]=l==="h"?c:(c||0)/100;const d=kn(u);n||i(d),r==null||r(d);};return f.createElement("div",{className:o},f.createElement(Zo,{max:360,min:0,value:Number(a.toHsb().h),prefixCls:t,className:o,formatter:c=>Dl(c||0).toString(),onChange:c=>s(Number(c),"h")}),f.createElement(Zo,{max:100,min:0,value:Number(a.toHsb().s)*100,prefixCls:t,className:o,formatter:c=>`${Dl(c||0)}%`,onChange:c=>s(Number(c),"s")}),f.createElement(Zo,{max:100,min:0,value:Number(a.toHsb().b)*100,prefixCls:t,className:o,formatter:c=>`${Dl(c||0)}%`,onChange:c=>s(Number(c),"b")}))},O7=E7,I7=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-rgb-input`,[a,i]=f.useState(kn(n||"#000"));f.useEffect(()=>{n&&i(n);},[n]);const s=(c,l)=>{const u=a.toRgb();u[l]=c||0;const d=kn(u);n||i(d),r==null||r(d);};return f.createElement("div",{className:o},f.createElement(Zo,{max:255,min:0,value:Number(a.toRgb().r),prefixCls:t,className:o,onChange:c=>s(Number(c),"r")}),f.createElement(Zo,{max:255,min:0,value:Number(a.toRgb().g),prefixCls:t,className:o,onChange:c=>s(Number(c),"g")}),f.createElement(Zo,{max:255,min:0,value:Number(a.toRgb().b),prefixCls:t,className:o,onChange:c=>s(Number(c),"b")}))},P7=I7,_7=[oo.hex,oo.hsb,oo.rgb].map(e=>({value:e,label:e.toLocaleUpperCase()})),R7=e=>{const{prefixCls:t,format:n,value:r,disabledAlpha:o,onFormatChange:a,onChange:i}=e,[s,c]=Wt(oo.hex,{value:n,onChange:a}),l=`${t}-input`,u=m=>{c(m);},d=f.useMemo(()=>{const m={value:r,prefixCls:t,onChange:i};switch(s){case oo.hsb:return f.createElement(O7,Object.assign({},m));case oo.rgb:return f.createElement(P7,Object.assign({},m));case oo.hex:default:return f.createElement(x7,Object.assign({},m))}},[s,t,r,i]);return f.createElement("div",{className:`${l}-container`},f.createElement(Fs,{value:s,bordered:!1,getPopupContainer:m=>m,popupMatchSelectWidth:68,placement:"bottomRight",onChange:u,className:`${t}-format-select`,size:"small",options:_7}),f.createElement("div",{className:l},d),!o&&f.createElement(H9,{prefixCls:t,value:r,onChange:i}))},T7=R7;var M7=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 N7=()=>{const e=f.useContext(TS),{prefixCls:t,colorCleared:n,allowClear:r,value:o,disabledAlpha:a,onChange:i,onClear:s,onChangeComplete:c}=e,l=M7(e,["prefixCls","colorCleared","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete"]);return f.createElement(f.Fragment,null,r&&f.createElement(NS,Object.assign({prefixCls:t,value:o,colorCleared:n,onChange:u=>{i==null||i(u),s==null||s();}},l)),f.createElement(KB,{prefixCls:t,value:o==null?void 0:o.toHsb(),disabledAlpha:a,onChange:(u,d)=>i==null?void 0:i(u,d,!0),onChangeComplete:c}),f.createElement(T7,Object.assign({value:o,onChange:i,prefixCls:t,disabledAlpha:a},l)))},qb=N7;var k7={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 A7=k7;var L7=function(t,n){return f__namespace.createElement(En,Oe({},t,{ref:n,icon:A7}))};const Za=f__namespace.forwardRef(L7);var t$=f.forwardRef(function(e,t){var n,r=e.prefixCls,o=e.forceRender,a=e.className,i=e.style,s=e.children,c=e.isActive,l=e.role,u=f.useState(c||o),d=J(u,2),m=d[0],g=d[1];return f.useEffect(function(){(o||c)&&g(!0);},[o,c]),m?f.createElement("div",{ref:t,className:V("".concat(r,"-content"),(n={},D(n,"".concat(r,"-content-active"),c),D(n,"".concat(r,"-content-inactive"),!c),n),a),style:i,role:l},f.createElement("div",{className:"".concat(r,"-content-box")},s)):null});t$.displayName="PanelContent";var j7=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],n$=f.forwardRef(function(e,t){var n,r,o=e.showArrow,a=o===void 0?!0:o,i=e.headerClass,s=e.isActive,c=e.onItemClick,l=e.forceRender,u=e.className,d=e.prefixCls,m=e.collapsible,g=e.accordion,v=e.panelKey,h=e.extra,p=e.header,b=e.expandIcon,y=e.openMotion,S=e.destroyInactivePanel,x=e.children,E=Ze(e,j7),$=m==="disabled",C=m==="header",w=m==="icon",O=h!=null&&typeof h!="boolean",_=function(){c==null||c(v);},T=function(M){(M.key==="Enter"||M.keyCode===ce.ENTER||M.which===ce.ENTER)&&_();},I=typeof b=="function"?b(e):f.createElement("i",{className:"arrow"});I&&(I=f.createElement("div",{className:"".concat(d,"-expand-icon"),onClick:["header","icon"].includes(m)?_:void 0},I));var P=V((n={},D(n,"".concat(d,"-item"),!0),D(n,"".concat(d,"-item-active"),s),D(n,"".concat(d,"-item-disabled"),$),n),u),R=V(i,(r={},D(r,"".concat(d,"-header"),!0),D(r,"".concat(d,"-header-collapsible-only"),C),D(r,"".concat(d,"-icon-collapsible-only"),w),r)),k={className:R,"aria-expanded":s,"aria-disabled":$,onKeyDown:T};return !C&&!w&&(k.onClick=_,k.role=g?"tab":"button",k.tabIndex=$?-1:0),f.createElement("div",Oe({},E,{ref:t,className:P}),f.createElement("div",k,a&&I,f.createElement("span",{className:"".concat(d,"-header-text"),onClick:m==="header"?_:void 0},p),O&&f.createElement("div",{className:"".concat(d,"-extra")},h)),f.createElement(go,Oe({visible:s,leavedClassName:"".concat(d,"-content-hidden")},y,{forceRender:l,removeOnLeave:S}),function(N,M){var L=N.className,j=N.style;return f.createElement(t$,{ref:M,prefixCls:d,className:L,style:j,isActive:s,forceRender:l,role:g?"tabpanel":void 0},x)}))}),z7=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],D7=function(t,n){var r=n.prefixCls,o=n.accordion,a=n.collapsible,i=n.destroyInactivePanel,s=n.onItemClick,c=n.activeKey,l=n.openMotion,u=n.expandIcon;return t.map(function(d,m){var g=d.children,v=d.label,h=d.key,p=d.collapsible,b=d.onItemClick,y=d.destroyInactivePanel,S=Ze(d,z7),x=String(h??m),E=p??a,$=y??i,C=function(_){E!=="disabled"&&(s(_),b==null||b(_));},w=!1;return o?w=c[0]===x:w=c.indexOf(x)>-1,f.createElement(n$,Oe({},S,{prefixCls:r,key:x,panelKey:x,isActive:w,accordion:o,openMotion:l,expandIcon:u,header:v,collapsible:E,onItemClick:C,destroyInactivePanel:$}),g)})},F7=function(t,n,r){if(!t)return null;var o=r.prefixCls,a=r.accordion,i=r.collapsible,s=r.destroyInactivePanel,c=r.onItemClick,l=r.activeKey,u=r.openMotion,d=r.expandIcon,m=t.key||String(n),g=t.props,v=g.header,h=g.headerClass,p=g.destroyInactivePanel,b=g.collapsible,y=g.onItemClick,S=!1;a?S=l[0]===m:S=l.indexOf(m)>-1;var x=b??i,E=function(w){x!=="disabled"&&(c(w),y==null||y(w));},$={key:m,panelKey:m,header:v,headerClass:h,isActive:S,prefixCls:o,destroyInactivePanel:p??s,openMotion:u,accordion:a,children:t.props.children,onItemClick:E,expandIcon:d,collapsible:x};return typeof t.type=="string"?t:(Object.keys($).forEach(function(C){typeof $[C]>"u"&&delete $[C];}),f.cloneElement(t,$))};function B7(e,t,n){return Array.isArray(e)?D7(e,n):ir(t).map(function(r,o){return F7(r,o,n)})}function H7(e){var t=e;if(!Array.isArray(t)){var n=rt(t);t=n==="number"||n==="string"?[t]:[];}return t.map(function(r){return String(r)})}var W7=f.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,o=e.destroyInactivePanel,a=o===void 0?!1:o,i=e.style,s=e.accordion,c=e.className,l=e.children,u=e.collapsible,d=e.openMotion,m=e.expandIcon,g=e.activeKey,v=e.defaultActiveKey,h=e.onChange,p=e.items,b=V(r,c),y=Wt([],{value:g,onChange:function(O){return h==null?void 0:h(O)},defaultValue:v,postState:H7}),S=J(y,2),x=S[0],E=S[1],$=function(O){return E(function(){if(s)return x[0]===O?[]:[O];var _=x.indexOf(O),T=_>-1;return T?x.filter(function(I){return I!==O}):[].concat(Re(x),[O])})};gn(!l,"`children` will be removed in next major version. Please use `items` instead.");var C=B7(p,l,{prefixCls:r,accordion:s,openMotion:d,expandIcon:m,collapsible:u,destroyInactivePanel:a,onItemClick:$,activeKey:x});return f.createElement("div",{ref:t,className:b,style:i,role:s?"tablist":void 0},C)});const Ov=Object.assign(W7,{Panel:n$});Ov.Panel;const V7=f__namespace.forwardRef((e,t)=>{const{getPrefixCls:n}=f__namespace.useContext(Xe),{prefixCls:r,className:o,showArrow:a=!0}=e,i=n("collapse",r),s=V({[`${i}-no-arrow`]:!a},o);return f__namespace.createElement(Ov.Panel,Object.assign({ref:t},e,{prefixCls:i,className:s}))}),K7=V7,G7=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:o,headerPadding:a,collapseHeaderPaddingSM:i,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:c,lineWidth:l,lineType:u,colorBorder:d,colorText:m,colorTextHeading:g,colorTextDisabled:v,fontSize:h,fontSizeLG:p,lineHeight:b,marginSM:y,paddingSM:S,paddingLG:x,paddingXS:E,motionDurationSlow:$,fontSizeIcon:C,contentPadding:w}=e,O=`${l}px ${u} ${d}`;return {[t]:Object.assign(Object.assign({},Nt(e)),{backgroundColor:o,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,color:g,lineHeight:b,cursor:"pointer",transition:`all ${$}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:h*b,display:"flex",alignItems:"center",paddingInlineEnd:y},[`${t}-arrow`]:Object.assign(Object.assign({},ia()),{fontSize:C,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:m,backgroundColor:n,borderTop:O,[`& > ${t}-content-box`]:{padding:w},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:i,paddingInlineStart:E,[`> ${t}-expand-icon`]:{marginInlineStart:S-E}},[`> ${t}-content > ${t}-content-box`]:{padding:S}}},"&-large":{[`> ${t}-item`]:{fontSize:p,[`> ${t}-header`]:{padding:s,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:p*b,marginInlineStart:x-r}},[`> ${t}-content > ${t}-content-box`]:{padding:x}}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${c}px ${c}px`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n          &,\n          & > .arrow\n        ":{color:v,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:y}}}}})}},U7=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow svg`;return {[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},X7=e=>{const{componentCls:t,headerBg:n,paddingXXS:r,colorBorder:o}=e;return {[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${o}`},[`
        > ${t}-item:last-child,
        > ${t}-item:last-child ${t}-header
      `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},q7=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}}}}}},Y7=Dt("Collapse",e=>{const t=gt(e,{collapseHeaderPaddingSM:`${e.paddingXS}px ${e.paddingSM}px`,collapseHeaderPaddingLG:`${e.padding}px ${e.paddingLG}px`,collapsePanelBorderRadius:e.borderRadiusLG});return [G7(t),X7(t),q7(t),U7(t),mC(t)]},e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer})),Z7=f__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,collapse:o}=f__namespace.useContext(Xe),{prefixCls:a,className:i,rootClassName:s,style:c,bordered:l=!0,ghost:u,size:d,expandIconPosition:m="start",children:g,expandIcon:v}=e,h=Xn(O=>{var _;return (_=d??O)!==null&&_!==void 0?_:"middle"}),p=n("collapse",a),b=n(),[y,S]=Y7(p),x=f__namespace.useMemo(()=>m==="left"?"start":m==="right"?"end":m,[m]),E=function(){let O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const _=v?v(O):f__namespace.createElement(Za,{rotate:O.isActive?90:void 0});return Wn(_,()=>({className:V(_.props.className,`${p}-arrow`)}))},$=V(`${p}-icon-position-${x}`,{[`${p}-borderless`]:!l,[`${p}-rtl`]:r==="rtl",[`${p}-ghost`]:!!u,[`${p}-${h}`]:h!=="middle"},o==null?void 0:o.className,i,s,S),C=Object.assign(Object.assign({},sC(b)),{motionAppear:!1,leavedClassName:`${p}-content-hidden`}),w=f__namespace.useMemo(()=>g?ir(g).map((O,_)=>{var T,I;if(!((T=O.props)===null||T===void 0)&&T.disabled){const P=(I=O.key)!==null&&I!==void 0?I:String(_),{disabled:R,collapsible:k}=O.props,N=Object.assign(Object.assign({},An(O.props,["disabled"])),{key:P,collapsible:k??(R?"disabled":void 0)});return Wn(O,N)}return O}):null,[g]);return y(f__namespace.createElement(Ov,Object.assign({ref:t,openMotion:C},An(e,["rootClassName"]),{expandIcon:E,prefixCls:p,className:$,style:Object.assign(Object.assign({},o==null?void 0:o.style),c)}),w))}),Q7=Object.assign(Z7,{Panel:K7}),Vd=e=>e.map(t=>(t.colors=t.colors.map(kn),t)),J7=(e,t)=>{const{r:n,g:r,b:o,a}=e.toRgb(),i=new uc(e.toRgbString()).onBackground(t).toHsv();return a<=.5?i.v>.5:n*.299+r*.587+o*.114>192},eW=e=>{let{prefixCls:t,presets:n,value:r,onChange:o}=e;const[a]=hi("ColorPicker"),[,i]=lr(),[s]=Wt(Vd(n),{value:Vd(n),postState:Vd}),c=`${t}-presets`,l=f.useMemo(()=>s.map(m=>`panel-${m.label}`),[s]),u=m=>{o==null||o(m);},d=s.map(m=>{var g;return {key:`panel-${m.label}`,label:f.createElement("div",{className:`${c}-label`},m==null?void 0:m.label),children:f.createElement("div",{className:`${c}-items`},Array.isArray(m==null?void 0:m.colors)&&((g=m.colors)===null||g===void 0?void 0:g.length)>0?m.colors.map((v,h)=>f.createElement(pv,{key:`preset-${h}-${v.toHexString()}`,color:kn(v).toRgbString(),prefixCls:t,className:V(`${c}-color`,{[`${c}-color-checked`]:v.toHexString()===(r==null?void 0:r.toHexString()),[`${c}-color-bright`]:J7(v,i.colorBgElevated)}),onClick:()=>u(v)})):f.createElement("span",{className:`${c}-empty`},a.presetEmpty))}});return f.createElement("div",{className:c},f.createElement(Q7,{defaultActiveKey:l,ghost:!0,items:d}))},tW=eW,nW=()=>{const{prefixCls:e,value:t,presets:n,onChange:r}=f.useContext(MS);return Array.isArray(n)?f.createElement(tW,{value:t,presets:n,prefixCls:e,onChange:r}):null},Yb=nW;var rW=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 oW=e=>{const{prefixCls:t,presets:n,panelRender:r,color:o,onChange:a,onClear:i}=e,s=rW(e,["prefixCls","presets","panelRender","color","onChange","onClear"]),c=`${t}-inner-content`,l=Object.assign({prefixCls:t,value:o,onChange:a,onClear:i},s),u=f.useMemo(()=>({prefixCls:t,value:o,presets:n,onChange:a}),[t,o,n,a]),d=f.createElement(f.Fragment,null,f.createElement(qb,null),Array.isArray(n)&&f.createElement(kB,{className:`${c}-divider`}),f.createElement(Yb,null));return f.createElement(GB,{value:l},f.createElement(UB,{value:u},f.createElement("div",{className:c},typeof r=="function"?r(d,{components:{Picker:qb,Presets:Yb}}):d)))},aW=oW;var iW=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 sW=f.forwardRef((e,t)=>{const{color:n,prefixCls:r,open:o,colorCleared:a,disabled:i,format:s,className:c,showText:l}=e,u=iW(e,["color","prefixCls","open","colorCleared","disabled","format","className","showText"]),d=`${r}-trigger`,m=f.useMemo(()=>a?f.createElement(NS,{prefixCls:r}):f.createElement(pv,{prefixCls:r,color:n.toRgbString()}),[n,a,r]),g=()=>{const h=n.toHexString().toUpperCase(),p=dc(n);switch(s){case"rgb":return n.toRgbString();case"hsb":return n.toHsbString();case"hex":default:return p<100?`${h.slice(0,7)},${p}%`:h}},v=()=>{if(typeof l=="function")return l(n);if(l)return g()};return f.createElement("div",Object.assign({ref:t,className:V(d,c,{[`${d}-active`]:o,[`${d}-disabled`]:i})},u),m,l&&f.createElement("div",{className:`${d}-text`},v()))}),lW=sW;function Zb(e){return e!==void 0}const cW=(e,t)=>{const{defaultValue:n,value:r}=t,[o,a]=f.useState(()=>{let i;return Zb(r)?i=r:Zb(n)?i=n:i=e,kn(i||"")});return f.useEffect(()=>{r&&a(kn(r));},[r]),[o,a]},uW=cW,r$=(e,t)=>({backgroundImage:`conic-gradient(${t} 0 25%, transparent 0 50%, ${t} 0 75%, transparent 0)`,backgroundSize:`${e} ${e}`}),dW=(e,t)=>{const{componentCls:n,borderRadiusSM:r,colorPickerInsetShadow:o,lineWidth:a,colorFillSecondary:i}=e;return {[`${n}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:r,width:t,height:t,boxShadow:o},r$("50%",e.colorFillSecondary)),{[`${n}-color-block-inner`]:{width:"100%",height:"100%",border:`${a}px solid ${i}`,borderRadius:"inherit"}})}},Qb=dW,fW=e=>{const{componentCls:t,antCls:n,fontSizeSM:r,lineHeightSM:o,colorPickerAlphaInputWidth:a,marginXXS:i,paddingXXS:s,controlHeightSM:c,marginXS:l,fontSizeIcon:u,paddingXS:d,colorTextPlaceholder:m,colorPickerInputNumberHandleWidth:g,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:g}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${a}px`,marginInlineStart:i},[`${t}-format-select${n}-select`]:{marginInlineEnd:l,width:"auto","&-single":{[`${n}-select-selector`]:{padding:0,border:0},[`${n}-select-arrow`]:{insetInlineEnd:0},[`${n}-select-selection-item`]:{paddingInlineEnd:u+i,fontSize:r,lineHeight:`${c}px`},[`${n}-select-item-option-content`]:{fontSize:r,lineHeight:o},[`${n}-select-dropdown`]:{[`${n}-select-item`]:{minHeight:"auto"}}}},[`${t}-input`]:{gap:i,alignItems:"center",flex:1,width:0,[`${t}-hsb-input,${t}-rgb-input`]:{display:"flex",gap:i,alignItems:"center"},[`${t}-steppers`]:{flex:1},[`${t}-hex-input${n}-input-affix-wrapper`]:{flex:1,padding:`0 ${d}px`,[`${n}-input`]:{fontSize:r,textTransform:"uppercase",lineHeight:`${c-2*v}px`},[`${n}-input-prefix`]:{color:m}}}}}},mW=fW,gW=e=>{const{componentCls:t,controlHeightLG:n,borderRadiusSM:r,colorPickerInsetShadow:o,marginSM:a,colorBgElevated:i,colorFillSecondary:s,lineWidthBold:c,colorPickerHandlerSize:l,colorPickerHandlerSizeSM:u,colorPickerSliderHeight:d}=e;return {[`${t}-select`]:{[`${t}-palette`]:{minHeight:n*4,overflow:"hidden",borderRadius:r},[`${t}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:o,inset:0},marginBottom:a},[`${t}-handler`]:{width:l,height:l,border:`${c}px solid ${i}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${o}, 0 0 0 1px ${s}`,"&-sm":{width:u,height:u}},[`${t}-slider`]:{borderRadius:d/2,[`${t}-palette`]:{height:d},[`${t}-gradient`]:{borderRadius:d/2,boxShadow:o},"&-alpha":r$(`${d}px`,e.colorFillSecondary),"&-hue":{marginBottom:a}},[`${t}-slider-container`]:{display:"flex",gap:a,marginBottom:a,[`${t}-slider-group`]:{flex:1,"&-disabled-alpha":{display:"flex",alignItems:"center",[`${t}-slider`]:{flex:1,marginBottom:0}}}}}},vW=gW,hW=e=>{const{componentCls:t,antCls:n,colorTextQuaternary:r,paddingXXS:o,colorPickerPresetColorSize:a,fontSizeSM:i,colorText:s,lineHeightSM:c,lineWidth:l,borderRadius:u,colorFill:d,colorWhite:m,marginXXS:g,paddingXS:v}=e;return {[`${t}-presets`]:{[`${n}-collapse-item > ${n}-collapse-header`]:{padding:0,[`${n}-collapse-expand-icon`]:{height:i*c,color:r,paddingInlineEnd:o}},[`${n}-collapse`]:{display:"flex",flexDirection:"column",gap:g},[`${n}-collapse-item > ${n}-collapse-content > ${n}-collapse-content-box`]:{padding:`${v}px 0`},"&-label":{fontSize:i,color:s,lineHeight:c},"&-items":{display:"flex",flexWrap:"wrap",gap:g*1.5,[`${t}-presets-color`]:{position:"relative",cursor:"pointer",width:a,height:a,"&::before":{content:'""',pointerEvents:"none",width:a+4*l,height:a+4*l,position:"absolute",top:-2*l,insetInlineStart:-2*l,borderRadius:u,border:`${l}px solid transparent`,transition:`border-color ${e.motionDurationMid} ${e.motionEaseInBack}`},"&:hover::before":{borderColor:d},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:a/13*5,height:a/13*8,border:`${e.lineWidthBold}px solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`},[`&${t}-presets-color-checked`]:{"&::after":{opacity:1,borderColor: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:i,color:r}}}},pW=hW,mm=(e,t,n)=>({borderInlineEndWidth:e.lineWidth,borderColor:t,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${n}`,outline:0}),bW=e=>{const{componentCls:t}=e;return {"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},Jb=(e,t,n)=>{const{componentCls:r,borderRadiusSM:o,lineWidth:a,colorSplit:i,red6:s}=e;return {[`${r}-clear`]:Object.assign(Object.assign({width:t,height:t,borderRadius:o,border:`${a}px solid ${i}`,position:"relative",cursor:"pointer",overflow:"hidden"},n),{"&::after":{content:'""',position:"absolute",insetInlineEnd:a,top:0,display:"block",width:40,height:2,transformOrigin:"right",transform:"rotate(-45deg)",backgroundColor:s}})}},yW=e=>{const{componentCls:t,colorError:n,colorWarning:r,colorErrorHover:o,colorWarningHover:a,colorErrorOutline:i,colorWarningOutline:s}=e;return {[`&${t}-status-error`]:{borderColor:n,"&:hover":{borderColor:o},[`&${t}-trigger-active`]:Object.assign({},mm(e,n,i))},[`&${t}-status-warning`]:{borderColor:r,"&:hover":{borderColor:a},[`&${t}-trigger-active`]:Object.assign({},mm(e,r,s))}}},CW=e=>{const{componentCls:t,controlHeightLG:n,controlHeightSM:r,controlHeight:o,controlHeightXS:a,borderRadius:i,borderRadiusSM:s,borderRadiusXS:c,borderRadiusLG:l,fontSizeLG:u}=e;return {[`&${t}-lg`]:{minWidth:n,height:n,borderRadius:l,[`${t}-color-block, ${t}-clear`]:{width:o,height:o,borderRadius:i},[`${t}-trigger-text`]:{fontSize:u}},[`&${t}-sm`]:{minWidth:r,height:r,borderRadius:s,[`${t}-color-block, ${t}-clear`]:{width:a,height:a,borderRadius:c}}}},SW=e=>{const{componentCls:t,colorPickerWidth:n,colorPrimary:r,motionDurationMid:o,colorBgElevated:a,colorTextDisabled:i,colorText:s,colorBgContainerDisabled:c,borderRadius:l,marginXS:u,marginSM:d,controlHeight:m,controlHeightSM:g,colorBgTextActive:v,colorPickerPresetColorSize:h,colorPickerPreviewSize:p,lineWidth:b,colorBorder:y,paddingXXS:S,fontSize:x,colorPrimaryHover:E,controlOutline:$}=e;return [{[t]:Object.assign({[`${t}-inner-content`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"flex",flexDirection:"column",width:n,"&-divider":{margin:`${d}px 0 ${u}px`},[`${t}-panel`]:Object.assign({},vW(e))},Qb(e,p)),mW(e)),pW(e)),Jb(e,h,{marginInlineStart:"auto",marginBottom:u})),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:m,height:m,borderRadius:l,border:`${b}px solid ${y}`,cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",transition:`all ${o}`,background:a,padding:S-b,[`${t}-trigger-text`]:{marginInlineStart:u,marginInlineEnd:u-(S-b),fontSize:x,color:s},"&:hover":{borderColor:E},[`&${t}-trigger-active`]:Object.assign({},mm(e,r,$)),"&-disabled":{color:i,background:c,cursor:"not-allowed","&:hover":{borderColor:v},[`${t}-trigger-text`]:{color:i}}},Jb(e,g)),Qb(e,g)),yW(e)),CW(e))},bW(e))}]},$W=Dt("ColorPicker",e=>{const{colorTextQuaternary:t,marginSM:n}=e,r=8,o=gt(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 [SW(o)]});var wW=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 Iv=e=>{const{value:t,defaultValue:n,format:r,defaultFormat:o,allowClear:a=!1,presets:i,children:s,trigger:c="click",open:l,disabled:u,placement:d="bottomLeft",arrow:m=!0,panelRender:g,showText:v,style:h,className:p,size:b,rootClassName:y,styles:S,disabledAlpha:x=!1,onFormatChange:E,onChange:$,onClear:C,onOpenChange:w,onChangeComplete:O,getPopupContainer:_,autoAdjustOverflow:T=!0,destroyTooltipOnHide:I}=e,P=wW(e,["value","defaultValue","format","defaultFormat","allowClear","presets","children","trigger","open","disabled","placement","arrow","panelRender","showText","style","className","size","rootClassName","styles","disabledAlpha","onFormatChange","onChange","onClear","onOpenChange","onChangeComplete","getPopupContainer","autoAdjustOverflow","destroyTooltipOnHide"]),{getPrefixCls:R,direction:k,colorPicker:N}=f.useContext(Xe),[,M]=lr(),[L,j]=uW(M.colorPrimary,{value:t,defaultValue:n}),[F,K]=Wt(!1,{value:l,postState:Ae=>!u&&Ae,onChange:w}),[B,W]=Wt(r,{value:r,defaultValue:o,onChange:E}),[H,Y]=f.useState(!1),U=R("color-picker",qB),X=f.useMemo(()=>dc(L)<100,[L]),{status:G}=f.useContext(br),ee=Xn(b),[te,ie]=$W(U),le={[`${U}-rtl`]:k},Q=V(y,le),oe=V(kr(U,G),{[`${U}-sm`]:ee==="small",[`${U}-lg`]:ee==="large"},N==null?void 0:N.className,Q,p,ie),ue=V(U,le),Z=f.useRef(!0),ae=(Ae,Me,Ee)=>{let he=kn(Ae);(H||(t===null||!t&&n===null))&&(Y(!1),dc(L)===0&&Me!=="alpha"&&(he=Ad(he))),x&&X&&(he=Ad(he)),Ee?Z.current=!1:O==null||O(he),j(he),$==null||$(he,he.toHexString());},ne=()=>{Y(!0),C==null||C();},se=Ae=>{Z.current=!0;let Me=kn(Ae);x&&X&&(Me=Ad(Ae)),O==null||O(Me);},ve={open:F,trigger:c,placement:d,arrow:m,rootClassName:y,getPopupContainer:_,autoAdjustOverflow:T,destroyTooltipOnHide:I},ge={prefixCls:U,color:L,allowClear:a,colorCleared:H,disabled:u,disabledAlpha:x,presets:i,panelRender:g,format:B,onFormatChange:W,onChangeComplete:se},ke=Object.assign(Object.assign({},N==null?void 0:N.style),h);return te(f.createElement(xu,Object.assign({style:S==null?void 0:S.popup,overlayInnerStyle:S==null?void 0:S.popupOverlayInner,onOpenChange:Ae=>{Z.current&&!u&&K(Ae);},content:f.createElement(ls,{override:!0,status:!0},f.createElement(aW,Object.assign({},ge,{onChange:ae,onChangeComplete:se,onClear:ne}))),overlayClassName:ue},ve),s||f.createElement(lW,Object.assign({open:F,className:oe,style:ke,color:t?kn(t):L,prefixCls:U,disabled:u,colorCleared:H,showText:v,format:B},P))))},xW=hv(Iv,"color-picker",e=>e,e=>Object.assign(Object.assign({},e),{placement:"bottom",autoAdjustOverflow:!1}));Iv._InternalPanelDoNotUseOrYouWillBeFired=xW;const EW=Iv;var OW=["size","strokeWidth","strokeLinecap","strokeLinejoin","theme","fill","className","spin"];function e0(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 t0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?e0(Object(n),!0).forEach(function(r){IW(e,r,n[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r));});}return e}function IW(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PW(e,t){if(e==null)return {};var n=_W(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);}return n}function _W(e,t){if(e==null)return {};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var RW={size:"1em",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",rtl:!1,theme:"outline",colors:{outline:{fill:"#333",background:"transparent"},filled:{fill:"#333",background:"#FFF"},twoTone:{fill:"#333",twoTone:"#2F88FF"},multiColor:{outStrokeColor:"#333",outFillColor:"#2F88FF",innerStrokeColor:"#FFF",innerFillColor:"#43CCF8"}},prefix:"i"};function TW(){return "icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)}function MW(e,t,n){var r=typeof t.fill=="string"?[t.fill]:t.fill||[],o=[],a=t.theme||n.theme;switch(a){case"outline":o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push("none"),o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push("none");break;case"filled":o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push("#FFF"),o.push("#FFF");break;case"two-tone":o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push(typeof r[1]=="string"?r[1]:n.colors.twoTone.twoTone),o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push(typeof r[1]=="string"?r[1]:n.colors.twoTone.twoTone);break;case"multi-color":o.push(typeof r[0]=="string"?r[0]:"currentColor"),o.push(typeof r[1]=="string"?r[1]:n.colors.multiColor.outFillColor),o.push(typeof r[2]=="string"?r[2]:n.colors.multiColor.innerStrokeColor),o.push(typeof r[3]=="string"?r[3]:n.colors.multiColor.innerFillColor);break}return {size:t.size||n.size,strokeWidth:t.strokeWidth||n.strokeWidth,strokeLinecap:t.strokeLinecap||n.strokeLinecap,strokeLinejoin:t.strokeLinejoin||n.strokeLinejoin,colors:o,id:e}}var o$=f.createContext(RW);o$.Provider;function Ut(e,t,n){return function(r){var o=r.size,a=r.strokeWidth,i=r.strokeLinecap,s=r.strokeLinejoin,c=r.theme,l=r.fill,u=r.className,d=r.spin,m=PW(r,OW),g=f.useContext(o$),v=f.useMemo(TW,[]),h=MW(v,{size:o,strokeWidth:a,strokeLinecap:i,strokeLinejoin:s,theme:c,fill:l},g),p=[g.prefix+"-icon"];return p.push(g.prefix+"-icon-"+e),t&&g.rtl&&p.push(g.prefix+"-icon-rtl"),d&&p.push(g.prefix+"-icon-spin"),u&&p.push(u),f.createElement("span",t0(t0({},m),{},{className:p.join(" ")}),n(h))}}const NW=Ut("people-search",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M19 20C22.866 20 26 16.866 26 13C26 9.13401 22.866 6 19 6C15.134 6 12 9.13401 12 13C12 16.866 15.134 20 19 20Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M27 28H18.8C14.3196 28 12.0794 28 10.3681 28.8719C8.86278 29.6389 7.63893 30.8628 6.87195 32.3681C6 34.0794 6 36.3196 6 40.8V42H27",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M39.9997 41.0002L36.8281 37.8286",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M38 35C38 36.1046 37.5523 37.1046 36.8284 37.8284C36.1046 38.5523 35.1046 39 34 39C31.7909 39 30 37.2091 30 35C30 32.7909 31.7909 31 34 31C36.2091 31 38 32.7909 38 35Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),kW=Ut("people-minus",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M19 20C22.866 20 26 16.866 26 13C26 9.13401 22.866 6 19 6C15.134 6 12 9.13401 12 13C12 16.866 15.134 20 19 20Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M30 35H42H30Z",fill:e.colors[1]}),f.createElement("path",{d:"M30 35H42",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M27 28H18.8C14.3196 28 12.0794 28 10.3681 28.8719C8.86278 29.6389 7.63893 30.8628 6.87195 32.3681C6 34.0794 6 36.3196 6 40.8V42H27",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),AW=Ut("people-delete",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M19 20C22.866 20 26 16.866 26 13C26 9.13401 22.866 6 19 6C15.134 6 12 9.13401 12 13C12 16.866 15.134 20 19 20Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M33 31L41 39",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M33 39L41 31",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M27 28H18.8C14.3196 28 12.0794 28 10.3681 28.8719C8.86278 29.6389 7.63893 30.8628 6.87195 32.3681C6 34.0794 6 36.3196 6 40.8V42H27",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),LW=Ut("delete",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M9 10V44H39V10H9Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M20 20V33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M28 20V33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M4 10H44",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M16 10L19.289 4H28.7771L32 10H16Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),jW=Ut("add-two",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M33 7.26261C30.3212 5.81915 27.2563 5 24 5C13.5066 5 5 13.5066 5 24C5 34.4934 13.5066 43 24 43C26.858 43 29.5685 42.369 32 41.2387",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),f.createElement("path",{d:"M31 30L43 30",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M15 22L22 29L41 11",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M37 24V36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),zW=Ut("play-two",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("rect",{x:"6",y:"6",width:"36",height:"36",rx:"3",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M18.5 24V16.2058L25.25 20.1029L32 24L25.25 27.8971L18.5 31.7942V24Z",fill:e.colors[3],stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),DW=Ut("unlike",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M44 19C44 12.9249 39.0751 8 33 8C29.2797 8 25.9907 9.8469 24 12.6738C22.0093 9.8469 18.7203 8 15 8C8.92487 8 4 12.9249 4 19C4 30 17 40 24 42.3262C25.1936 41.9295 26.5616 41.3098 28.0099 40.5",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M34.959 27L41.8375 35.5",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M41.8375 27L34.959 35.5",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),FW=Ut("dislike-two",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M15 8C8.92487 8 4 12.9249 4 19C4 30 17 40 24 42.3262C31 40 44 30 44 19C44 12.9249 39.0751 8 33 8C29.2797 8 25.9907 9.8469 24 12.6738C22.0093 9.8469 18.7203 8 15 8Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28 20L20 28L28 20Z",fill:e.colors[1]}),f.createElement("path",{d:"M28 20L20 28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 20.0001L28 28L20 20.0001Z",fill:e.colors[1]}),f.createElement("path",{d:"M20 20.0001L28 28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),BW=Ut("copy",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M13 12.4316V7.8125C13 6.2592 14.2592 5 15.8125 5H40.1875C41.7408 5 43 6.2592 43 7.8125V32.1875C43 33.7408 41.7408 35 40.1875 35H35.5163",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M32.1875 13H7.8125C6.2592 13 5 14.2592 5 15.8125V40.1875C5 41.7408 6.2592 43 7.8125 43H32.1875C33.7408 43 35 41.7408 35 40.1875V15.8125C35 14.2592 33.7408 13 32.1875 13Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),HW=Ut("efferent-four",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M20 5L10 5C8.89543 5 8 5.89543 8 7L8 41C8 42.1046 8.89543 43 10 43L38 43C39.1046 43 40 42.1046 40 41L40 24.75",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M28 5H40V17",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M21.0001 23.9998L39 6",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),WW=Ut("star",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M23.9986 5L17.8856 17.4776L4 19.4911L14.0589 29.3251L11.6544 43L23.9986 36.4192L36.3454 43L33.9586 29.3251L44 19.4911L30.1913 17.4776L23.9986 5Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),VW=Ut("file-cabinet",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M42 4H6V14H42V4Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M42 19H6V29H42V19Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M42 34H6V44H42V34Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M21 9H27",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),f.createElement("path",{d:"M21 24H27",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),f.createElement("path",{d:"M21 39H27",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}))}),KW=Ut("tumblr",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M39 6H9C7.34315 6 6 7.34315 6 9V39C6 40.6569 7.34315 42 9 42H39C40.6569 42 42 40.6569 42 39V9C42 7.34315 40.6569 6 39 6Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth}),f.createElement("path",{d:"M15 22V17H20V14L26 12V17H31V22H26V29C26 29 26 30.5 28 31C30 31.5 33 30 33 30L31 36H26C22.5 36 20 32.5 20 30V22H15Z",fill:e.colors[2]}))}),GW=Ut("concern",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M10.8579 9.85803C7.23858 13.4773 5 18.4773 5 24.0002C5 29.523 7.23858 34.523 10.8579 38.1423",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),f.createElement("path",{d:"M39.1421 38.1423C42.7614 34.523 45 29.523 45 24.0002C45 18.4773 42.7614 13.4773 39.1421 9.85803",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),f.createElement("path",{d:"M34.8994 33.8997C37.4329 31.3662 38.9999 27.8662 38.9999 24.0002C38.9999 20.1342 37.4329 16.6342 34.8994 14.1007",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),f.createElement("path",{d:"M15.1005 14.1007C12.567 16.6342 11 20.1342 11 24.0002C11 27.8662 12.567 31.3662 15.1005 33.8997",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),f.createElement("path",{d:"M28.1818 20C30.2905 20 32 21.6118 32 23.6C32 26.1882 29.4545 28.4 28.1818 29.6C27.3333 30.4 26.2727 31.2 25 32C23.7273 31.2 22.6667 30.4 21.8182 29.6C20.5455 28.4 18 26.1882 18 23.6C18 21.6118 19.7095 20 21.8182 20C23.1463 20 24.316 20.6393 25 21.6093C25.684 20.6393 26.8537 20 28.1818 20Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),UW=Ut("iphone",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("rect",{x:"11",y:"4",width:"26",height:"40",rx:"3",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth}),f.createElement("path",{d:"M22 10L26 10",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M20 38H28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),XW=Ut("computer",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("rect",{x:"19",y:"32",width:"10",height:"9",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("rect",{x:"5",y:"8",width:"38",height:"24",rx:"2",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth}),f.createElement("path",{d:"M22 27H26",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M14 41L34 41",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),qW=Ut("tips",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M40 20C40 26.8077 35.7484 32.6224 29.7555 34.9336H24H18.2445C12.2516 32.6224 8 26.8077 8 20C8 11.1634 15.1634 4 24 4C32.8366 4 40 11.1634 40 20Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M29.7557 34.9336L29.0766 43.0831C29.0334 43.6014 28.6001 44 28.08 44H19.9203C19.4002 44 18.9669 43.6014 18.9238 43.0831L18.2446 34.9336",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M18 17V23L24 20L30 23V17",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),YW=Ut("return",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M12.9998 8L6 14L12.9998 21",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.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}))}),ZW=Ut("loading-three",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.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}),f.createElement("path",{d:"M24 12V15",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M32.4852 15.5147L30.3639 17.636",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M36 24H33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M32.4852 32.4853L30.3639 30.364",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M24 36V33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M15.5148 32.4853L17.6361 30.364",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M12 24H15",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M15.5148 15.5147L17.6361 17.636",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),QW=Ut("loading",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.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}),f.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}))}),JW=Ut("info",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.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}),f.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]}),f.createElement("path",{d:"M24.5 34V20H23.5H22.5",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M21 34H28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),eV=Ut("help",!0,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.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}),f.createElement("path",{d:"M24 28.6248V24.6248C27.3137 24.6248 30 21.9385 30 18.6248C30 15.3111 27.3137 12.6248 24 12.6248C20.6863 12.6248 18 15.3111 18 18.6248",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 37.6248C25.3807 37.6248 26.5 36.5055 26.5 35.1248C26.5 33.7441 25.3807 32.6248 24 32.6248C22.6193 32.6248 21.5 33.7441 21.5 35.1248C21.5 36.5055 22.6193 37.6248 24 37.6248Z",fill:e.colors[2]}))}),tV=Ut("distraught-face",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.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}),f.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}),f.createElement("path",{d:"M32 17L29 20L32 23",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M16 17L19 20L16 23",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),nV=Ut("config",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.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}),f.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}))}),rV=Ut("close",!1,function(e){return f.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},f.createElement("path",{d:"M8 8L40 40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("path",{d:"M8 40L40 8",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),oV={Close:rV,Config:nV,DistraughtFace:tV,Help:eV,Info:JW,Loading:QW,LoadingThree:ZW,Return:YW,Tips:qW,Computer:XW,Iphone:UW,Concern:GW,Tumblr:KW,FileCabinet:VW,Star:WW,EfferentFour:HW,Copy:BW,DislikeTwo:FW,Unlike:DW,PlayTwo:zW,AddTwo:jW,Delete:LW,PeopleDelete:AW,PeopleMinus:kW,PeopleSearch:NW};function Mt({name:e,theme:t,size:n,fill:r,...o}){t||(t="outline"),n||(n=24),r||(r="currentColor");const a=oV[e];return z(a,{theme:t,size:n,fill:r,...o,style:{fontSize:0,...o.style}})}const aV=e=>{const t=e!=null&&e.algorithm?rs(e.algorithm):rs(_s),n=Object.assign(Object.assign({},Ga),e==null?void 0:e.token);return C1(n,{override:e==null?void 0:e.token},t,Ig)},iV=aV;function sV(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 lV=(e,t)=>{const n=t??_s(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),sV(t??e)),N1(r)),{controlHeight:o}),T1(Object.assign(Object.assign({},n),{controlHeight:o})))},cV=lV,no=(e,t)=>new qt(e).setAlpha(t).toRgbString(),Oa=(e,t)=>new qt(e).lighten(t).toHexString(),uV=e=>{const t=lo(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]}},dV=(e,t)=>{const n=e||"#000",r=t||"#fff";return {colorBgBase:n,colorTextBase:r,colorText:no(r,.85),colorTextSecondary:no(r,.65),colorTextTertiary:no(r,.45),colorTextQuaternary:no(r,.25),colorFill:no(r,.18),colorFillSecondary:no(r,.12),colorFillTertiary:no(r,.08),colorFillQuaternary:no(r,.04),colorBgElevated:Oa(n,12),colorBgContainer:Oa(n,8),colorBgLayout:Oa(n,0),colorBgSpotlight:Oa(n,26),colorBgBlur:no(r,.04),colorBorder:Oa(n,26),colorBorderSecondary:Oa(n,19)}},fV=(e,t)=>{const n=Object.keys(Og).map(o=>{const a=lo(e[o],{theme:"dark"});return new Array(10).fill(1).reduce((i,s,c)=>(i[`${o}-${c+1}`]=a[c],i[`${o}${c+1}`]=a[c],i),{})}).reduce((o,a)=>(o=Object.assign(Object.assign({},o),a),o),{}),r=t??_s(e);return Object.assign(Object.assign(Object.assign({},r),n),M1(e,{generateColorPalettes:uV,generateNeutralColorPalettes:dV}))},mV=fV;function gV(){const[e,t,n]=lr();return {theme:e,token:t,hashId:n}}const n0={defaultConfig:Jl,defaultSeed:Jl.token,useToken:gV,defaultAlgorithm:_s,darkAlgorithm:mV,compactAlgorithm:cV,getDesignToken:iV};var vV=e1,r0=1/0,hV=17976931348623157e292;function pV(e){if(!e)return e===0?e:0;if(e=vV(e),e===r0||e===-r0){var t=e<0?-1:1;return t*hV}return e===e?e:0}var bV=pV,yV=bV;function CV(e){var t=yV(e),n=t%1;return t===t?n?t-n:t:0}var SV=CV,$V=SV,wV="Expected a function";function xV(e,t){var n;if(typeof t!="function")throw new TypeError(wV);return e=$V(e),function(){return --e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var EV=xV,OV=EV;function IV(e){return OV(2,e)}var PV=IV;const _V=fn(PV),RV=Symbol(),Pv=Symbol(),Mi="a",Fl="w";let TV=(e,t)=>new Proxy(e,t);const gm=Object.getPrototypeOf,vm=new WeakMap,a$=e=>e&&(vm.has(e)?vm.get(e):gm(e)===Object.prototype||gm(e)===Array.prototype),o0=e=>typeof e=="object"&&e!==null,MV=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(gm(e),t)},i$=e=>e[Pv]||e,s$=(e,t,n,r)=>{if(!a$(e))return e;let o=r&&r.get(e);if(!o){const c=i$(e);o=(l=>Object.values(Object.getOwnPropertyDescriptors(l)).some(u=>!u.configurable&&!u.writable))(c)?[c,MV(c)]:[c],r==null||r.set(e,o);}const[a,i]=o;let s=n&&n.get(a);return s&&s[1].f===!!i||(s=((c,l)=>{const u={f:l};let d=!1;const m=(v,h)=>{if(!d){let p=u[Mi].get(c);if(p||(p={},u[Mi].set(c,p)),v===Fl)p[Fl]=!0;else {let b=p[v];b||(b=new Set,p[v]=b),b.add(h);}}},g={get:(v,h)=>h===Pv?c:(m("k",h),s$(Reflect.get(v,h),u[Mi],u.c,u.t)),has:(v,h)=>h===RV?(d=!0,u[Mi].delete(c),!0):(m("h",h),Reflect.has(v,h)),getOwnPropertyDescriptor:(v,h)=>(m("o",h),Reflect.getOwnPropertyDescriptor(v,h)),ownKeys:v=>(m(Fl),Reflect.ownKeys(v))};return l&&(g.set=g.deleteProperty=()=>!1),[g,u]})(a,!!i),s[1].p=TV(i||a,s[0]),n&&n.set(a,s)),s[1][Mi]=t,s[1].c=n,s[1].t=r,s[1].p},l$=(e,t,n,r)=>{if(Object.is(e,t))return !1;if(!o0(e)||!o0(t))return !0;const o=n.get(i$(e));if(!o)return !0;if(r){const i=r.get(e);if(i&&i.n===t)return i.g;r.set(e,{n:t,g:!1});}let a=null;try{for(const i of o.h||[])if(a=Reflect.has(e,i)!==Reflect.has(t,i),a)return a;if(o[Fl]===!0){if(a=((i,s)=>{const c=Reflect.ownKeys(i),l=Reflect.ownKeys(s);return c.length!==l.length||c.some((u,d)=>u!==l[d])})(e,t),a)return a}else for(const i of o.o||[])if(a=!!Reflect.getOwnPropertyDescriptor(e,i)!=!!Reflect.getOwnPropertyDescriptor(t,i),a)return a;for(const i of o.k||[])if(a=l$(e[i],t[i],n,r),a)return a;return a===null&&(a=!0),a}finally{r&&r.set(e,{n:t,g:a});}},NV=e=>a$(e)&&e[Pv]||null,a0=(e,t=!0)=>{vm.set(e,t);};const Kd=e=>typeof e=="object"&&e!==null,yo=new WeakMap,yl=new WeakSet,kV=(e=Object.is,t=(l,u)=>new Proxy(l,u),n=l=>Kd(l)&&!yl.has(l)&&(Array.isArray(l)||!(Symbol.iterator in l))&&!(l instanceof WeakMap)&&!(l instanceof WeakSet)&&!(l instanceof Error)&&!(l instanceof Number)&&!(l instanceof Date)&&!(l instanceof String)&&!(l instanceof RegExp)&&!(l instanceof ArrayBuffer),r=l=>{switch(l.status){case"fulfilled":return l.value;case"rejected":throw l.reason;default:throw l}},o=new WeakMap,a=(l,u,d=r)=>{const m=o.get(l);if((m==null?void 0:m[0])===u)return m[1];const g=Array.isArray(l)?[]:Object.create(Object.getPrototypeOf(l));return a0(g,!0),o.set(l,[u,g]),Reflect.ownKeys(l).forEach(v=>{if(Object.getOwnPropertyDescriptor(g,v))return;const h=Reflect.get(l,v),p={value:h,enumerable:!0,configurable:!0};if(yl.has(h))a0(h,!1);else if(h instanceof Promise)delete p.value,p.get=()=>d(h);else if(yo.has(h)){const[b,y]=yo.get(h);p.value=a(b,y(),d);}Object.defineProperty(g,v,p);}),Object.preventExtensions(g)},i=new WeakMap,s=[1,1],c=l=>{if(!Kd(l))throw new Error("object required");const u=i.get(l);if(u)return u;let d=s[0];const m=new Set,g=(O,_=++s[0])=>{d!==_&&(d=_,m.forEach(T=>T(O,_)));};let v=s[1];const h=(O=++s[1])=>(v!==O&&!m.size&&(v=O,b.forEach(([_])=>{const T=_[1](O);T>d&&(d=T);})),d),p=O=>(_,T)=>{const I=[..._];I[1]=[O,...I[1]],g(I,T);},b=new Map,y=(O,_)=>{if(m.size){const T=_[3](p(O));b.set(O,[_,T]);}else b.set(O,[_]);},S=O=>{var _;const T=b.get(O);T&&(b.delete(O),(_=T[1])==null||_.call(T));},x=O=>(m.add(O),m.size===1&&b.forEach(([T,I],P)=>{const R=T[3](p(P));b.set(P,[T,R]);}),()=>{m.delete(O),m.size===0&&b.forEach(([T,I],P)=>{I&&(I(),b.set(P,[T]));});}),E=Array.isArray(l)?[]:Object.create(Object.getPrototypeOf(l)),C=t(E,{deleteProperty(O,_){const T=Reflect.get(O,_);S(_);const I=Reflect.deleteProperty(O,_);return I&&g(["delete",[_],T]),I},set(O,_,T,I){const P=Reflect.has(O,_),R=Reflect.get(O,_,I);if(P&&(e(R,T)||i.has(T)&&e(R,i.get(T))))return !0;S(_),Kd(T)&&(T=NV(T)||T);let k=T;if(T instanceof Promise)T.then(N=>{T.status="fulfilled",T.value=N,g(["resolve",[_],N]);}).catch(N=>{T.status="rejected",T.reason=N,g(["reject",[_],N]);});else {!yo.has(T)&&n(T)&&(k=c(T));const N=!yl.has(k)&&yo.get(k);N&&y(_,N);}return Reflect.set(O,_,k,I),g(["set",[_],T,R]),!0}});i.set(l,C);const w=[E,h,a,x];return yo.set(C,w),Reflect.ownKeys(l).forEach(O=>{const _=Object.getOwnPropertyDescriptor(l,O);"value"in _&&(C[O]=l[O],delete _.value,delete _.writable),Object.defineProperty(E,O,_);}),C})=>[c,yo,yl,e,t,n,r,o,a,i,s],[AV]=kV();function yr(e={}){return AV(e)}function _v(e,t,n){const r=yo.get(e);let o;const a=[],i=r[3];let s=!1;const l=i(u=>{if(a.push(u),n){t(a.splice(0));return}o||(o=Promise.resolve().then(()=>{o=void 0,s&&t(a.splice(0));}));});return s=!0,()=>{s=!1,l();}}function fc(e,t){const n=yo.get(e),[r,o,a]=n;return a(r,o(),t)}var c$={exports:{}},u$={};/**
   * @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 Qa=f;function LV(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var jV=typeof Object.is=="function"?Object.is:LV,zV=Qa.useState,DV=Qa.useEffect,FV=Qa.useLayoutEffect,BV=Qa.useDebugValue;function HV(e,t){var n=t(),r=zV({inst:{value:n,getSnapshot:t}}),o=r[0].inst,a=r[1];return FV(function(){o.value=n,o.getSnapshot=t,Gd(o)&&a({inst:o});},[e,n,t]),DV(function(){return Gd(o)&&a({inst:o}),e(function(){Gd(o)&&a({inst:o});})},[e]),BV(n),n}function Gd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return !jV(e,n)}catch{return !0}}function WV(e,t){return t()}var VV=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?WV:HV;u$.useSyncExternalStore=Qa.useSyncExternalStore!==void 0?Qa.useSyncExternalStore:VV;c$.exports=u$;var KV=c$.exports;const GV=fn(KV),{use:i0}=f,{useSyncExternalStore:UV}=GV;const XV=new WeakMap;function $r(e,t){const n=t==null?void 0:t.sync,r=f.useRef(),o=f.useRef();let a=!0;const i=UV(f.useCallback(l=>{const u=_v(e,l,n);return l(),u},[e,n]),()=>{const l=fc(e,i0);try{if(!a&&r.current&&o.current&&!l$(r.current,l,o.current,new WeakMap))return r.current}catch{}return l},()=>fc(e,i0));a=!1;const s=new WeakMap;f.useEffect(()=>{r.current=i,o.current=s;});const c=f.useMemo(()=>new WeakMap,[]);return s$(i,s,c,XV)}const Ja=_V(()=>!!document.querySelectorAll(".bili-feed4").length),d$=()=>document.body.classList.contains("dark"),f$=yr({value:d$()});function Rv(){return $r(f$).value}const m$=new MutationObserver(function(){f$.value=d$();});m$.observe(document.body,{attributes:!0,attributeFilter:["class"]});window.addEventListener("unload",()=>{m$.disconnect();});const g$=Nx();var Y0;const qV=((Y0=g$.os.name)==null?void 0:Y0.toLowerCase())==="mac os";var Z0;const Tv=((Z0=g$.browser.name)==null?void 0:Z0.toLowerCase())==="safari";var YV=Cy(function(e,t){var n=e.styles,r=za([n],void 0,f__namespace.useContext(Sy)),o=f__namespace.useRef();return dh(function(){var a=t.key+"-global",i=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,c=document.querySelector('style[data-emotion="'+a+" "+r.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),c!==null&&(s=!0,c.setAttribute("data-emotion",a),i.hydrate([c])),o.current=[i,s],function(){i.flush();}},[t]),dh(function(){var a=o.current,i=a[0],s=a[1];if(s){a[1]=!1;return}if(r.next!==void 0&&Zm(t,r.next,!0),i.tags.length){var c=i.tags[i.tags.length-1].nextElementSibling;i.before=c,i.flush();}t.insert("",r,i,!1);},[t,r.name]),null});function Nr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return za(t)}var ku={},v$={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;})(v$);var Mv=v$.exports,Au={};Object.defineProperty(Au,"__esModule",{value:!0});Au.default=void 0;var ZV={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:"页码"};Au.default=ZV;var Lu={},Hs={},ju={};Object.defineProperty(ju,"__esModule",{value:!0});ju.default=void 0;var QV={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:"下一世纪"},JV=QV;ju.default=JV;var Ws={};Object.defineProperty(Ws,"__esModule",{value:!0});Ws.default=void 0;const eK={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};Ws.default=eK;var h$=Mv.default;Object.defineProperty(Hs,"__esModule",{value:!0});Hs.default=void 0;var tK=h$(ju),nK=h$(Ws);const p$={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},tK.default),timePickerLocale:Object.assign({},nK.default)};p$.lang.ok="确定";Hs.default=p$;var rK=Mv.default;Object.defineProperty(Lu,"__esModule",{value:!0});Lu.default=void 0;var oK=rK(Hs);Lu.default=oK.default;var zu=Mv.default;Object.defineProperty(ku,"__esModule",{value:!0});ku.default=void 0;var aK=zu(Au),iK=zu(Lu),sK=zu(Hs),lK=zu(Ws);const tr="${label}不是一个有效的${type}",cK={locale:"zh-cn",Pagination:aK.default,DatePicker:sK.default,TimePicker:lK.default,Calendar:iK.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:tr,method:tr,array:tr,object:tr,number:tr,date:tr,boolean:tr,integer:tr,float:tr,regexp:tr,email:tr,url:tr,hex:tr},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:"暂无"}};ku.default=cK;var uK=ku;const dK=fn(uK);function b$({children:e}){const t=Rv(),{colorPrimary:n}=$$();return Ce(Ag,{locale:dK,theme:{algorithm:t?n0.darkAlgorithm:n0.defaultAlgorithm,token:{colorPrimary:n,colorBgSpotlight:n,zIndexPopupBase:11e3,fontFamily:"inherit"}},children:[z(YV,{styles:Nr(":root{",w$,":",n,";}","")}),e]})}function Nv(e){return z(Ts,{...e,overlayStyle:{width:"max-content",maxWidth:"50vw",...e.overlayInnerStyle},children:e.children})}function Sn({configKey:e,label:t,extraAction:n,tooltip:r,...o}){const i=!!xn()[e],s=f.useCallback(l=>{const u=l.target.checked;Cr({[e]:u}),n==null||n(u);},[]);let c=z("span",{style:{userSelect:"none"},children:t||e});return r&&(c=z(Ts,{title:r,overlayStyle:{width:"max-content",maxWidth:"50vw"},children:c})),z(Su,{...o,checked:i,onChange:s,children:c})}var fK={name:"1qkltea",styles:"margin-left:5px"};const mK=function(){const e=fK;return Ce(It,{children:[z(Sn,{configKey:"initialShowMore",label:"自动查看更多",css:e}),z(Sn,{configKey:"useNarrowMode",label:"启用居中模式",css:e})]})};function Du({tooltip:e,iconProps:t,tooltipProps:n}){return z(It,{children:e&&z(Nv,{...n,title:e,children:z(Mt,{name:"Info",size:18,...t,style:{cursor:"pointer",marginLeft:"4px",...t==null?void 0:t.style}})})})}const gK=[{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)"}],mc={id:"default-bili-pink",name:"B站粉",isDark:!1,isCustom:!1,colorPrimary:"#ff6699"},y$={id:"color-picker",name:"自定义",isDark:!1,isCustom:!0,colorPrimary:"#ff6699"};function vK(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 C$="UP长期洗涤",hK=vK(C$,`
  #0545b2 理想之蓝
  #f4cd00 柠檬黄
  #ef2729 石榴红
  #f89c00 鹿箭
  #233728 黛绿
  #f2b9b7 和熙粉
  #f3cc91 芝士黄
  #6b4c68 葡萄紫
  #ff7227 落日橙
  #004d62 碧海天
  #23909b 洗碧空
  #aeb400 芥丝绿
  #425a17 箬叶青

  #002FA7 克莱因蓝
  #003153 普鲁士蓝
  #01847F 马尔斯绿
  #FBD26A 申布伦黄
  #470024 勃艮第红
  #492D22 凡戴克棕
  `),S$=[{name:"预设",themes:[mc,{id:"bilibili-blue",name:"B站蓝",colorPrimary:"#00aeec"},{id:"app-靓紫",name:"靓紫",colorPrimary:"#8500ff"},y$]},{name:"移动端",themes:[{id:"app-custom-高能红",name:"高能红",colorPrimary:"#fd453e"},{id:"app-custom-咸蛋黄",name:"咸蛋黄",colorPrimary:"#ffc034"},{id:"app-custom-早苗绿",name:"早苗绿",colorPrimary:"#85c255"},{id:"app-custom-宝石蓝",name:"宝石蓝",colorPrimary:"#0095ef"},{id:"app-custom-罗兰紫",name:"罗兰紫",colorPrimary:"#a029ac"}]},{name:"LX Themes",themes:gK,tooltip:Ce(It,{children:["提取自"," ",z("a",{target:"_blank",href:"https://github.com/lyswhut/lx-music-desktop/",children:"lx-music-desktop"}),z("br",{}),"Apache License 2.0"]})},{name:C$,themes:hK,tooltip:Ce(It,{children:["提取自"," ",z("a",{target:"_blank",href:"https://www.bilibili.com/video/BV1g3411u7Lg/",children:"BV1g3411u7Lg"})," ","&"," ",z("a",{target:"_blank",href:"https://www.bilibili.com/video/BV1xu411q7sU/",children:"BV1xu411q7sU"})]})}],pK=S$.map(e=>e.themes).flat();function $$(){let{theme:e,colorPickerThemeSelectedColor:t}=xn();return e||(e=mc.id),f.useMemo(()=>{const n=pK.find(r=>r.id===e)||mc;return n.id===y$.id&&t&&(n.colorPrimary=t),n},[e,t])}const w$=`--${$n}-color-primary`,fo=`var(${w$})`;var bK={name:"1ba68ro",styles:"min-width:60px;text-align:center;cursor:pointer"},yK={name:"lj8i4f",styles:"width:50px;height:50px;padding:3px;border:2px solid transparent;border-radius:5px;margin:0 auto"},CK={name:"1kk26el",styles:"font-size:1.5em;display:flex;align-items:center;margin-top:10px"};function SK(){const e=$$().id,{colorPickerThemeSelectedColor:t}=xn(),[n,r]=f.useState(t||mc.colorPrimary),o=f.useMemo(()=>typeof n=="string"?n:n.toHexString(),[n]);return z("div",{children:S$.map(({name:a,themes:i,tooltip:s})=>Ce(f.Fragment,{children:[Ce("div",{css:CK,children:[a,z(Du,{tooltip:s,tooltipProps:{color:"rgba(0, 0, 0, 0.85)"},iconProps:{name:"Tips",size:16}})]}),z("div",{style:{display:"flex",flexWrap:"wrap",gap:"2px 8px"},children:i.map(c=>{const l=e===c.id,u=c.isCustom,d=z("div",{className:"preview",css:Nr("width:100%;height:100%;background-color:",u?o:c.colorPrimary,";border-radius:5px;","")});let m=z("div",{className:"preview-wrapper",css:[yK,l&&Nr("border-color:",c.colorPrimary,";",""),"",""],children:d});return c.isCustom&&(m=z(EW,{value:n,onChange:g=>r(g),onOpenChange:g=>{g||Cr({colorPickerThemeSelectedColor:o});},children:m})),Ce("div",{css:bK,onClick:g=>{Cr({theme:c.id});},children:[m,c.name]},c.id)})})]},a))})}function s0(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function l0(e,t,n){var r=[],o=Ym(e,r,n);return r.length<2?n:o+t(r)}var $K=function(t){var n=dy(t);n.sheet.speedy=function(s){this.isSpeedy=s;},n.compat=!0;var r=function(){for(var c=arguments.length,l=new Array(c),u=0;u<c;u++)l[u]=arguments[u];var d=za(l,n.registered,void 0);return Zm(n,d,!1),n.key+"-"+d.name},o=function(){for(var c=arguments.length,l=new Array(c),u=0;u<c;u++)l[u]=arguments[u];var d=za(l,n.registered),m="animation-"+d.name;return s0(n,{name:d.name,styles:"@keyframes "+m+"{"+d.styles+"}"}),m},a=function(){for(var c=arguments.length,l=new Array(c),u=0;u<c;u++)l[u]=arguments[u];var d=za(l,n.registered);s0(n,d);},i=function(){for(var c=arguments.length,l=new Array(c),u=0;u<c;u++)l[u]=arguments[u];return l0(n.registered,r,wK(l))};return {css:r,cx:i,injectGlobal:a,keyframes:o,hydrate:function(c){c.forEach(function(l){n.inserted[l]=!0;});},flush:function(){n.registered={},n.inserted={},n.sheet.flush();},sheet:n.sheet,cache:n,getRegisteredStyles:Ym.bind(null,n.registered),merge:l0.bind(null,n.registered,r)}},wK=function e(t){for(var n="",r=0;r<t.length;r++){var o=t[r];if(o!=null){var a=void 0;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))a=e(o);else {a="";for(var i in o)o[i]&&i&&(a&&(a+=" "),a+=i);}break}default:a=o;}a&&(n&&(n+=" "),n+=a);}}return n},xK=$K({key:"css"}),gc=xK.css;const EK=gc("position:fixed;top:50%;left:50%;transform:translate(-50%, -50%);z-index:90000;padding:12px 24px;font-size:14px;min-width:200px;width:max-content;max-width:450px;color:#fff;background-color:#ffb243;background-color:",fo,";border-radius:6px;white-space:pre-wrap;",""),OK=gc({name:"1azakc",styles:"text-align:center"});function St(e,t=2e3){const n=document.createElement("div");n.className=EK,n.innerText=e,!e.includes(`
`)&&!e.includes("<br")&&n.classList.add(OK),document.body.appendChild(n),setTimeout(()=>n.remove(),t);}const IK="请求失败, 请重试 !!!",x$="操作失败, 请重试 !!!";function E$(){return St(IK)}function O$(){return St(x$)}const I$="27eb53fc9058f8c3";async function _K(){var r,o;const t=(await Tc.get("https://passport.bilibili.com/login/app/third",{params:{appkey:I$,api:"https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png",sign:"04224646d1fea004e79606d3b038c84a"},withCredentials:!0})).data;if(!((r=t==null?void 0:t.data)!=null&&r.has_login)){St("你必须登录B站之后才能使用授权");return}if(!((o=t==null?void 0:t.data)!=null&&o.confirm_uri)){St("无法获得授权网址");return}const n=t.data.confirm_uri;{const a=await MK(n);return NK(a)}}async function RK(){const e=await _K();if(e)return xt.accessKey=e,St("获取成功"),e}function TK(){xt.accessKey="",St("已删除 access_key");}function MK(e){return new Promise((t,n)=>{GM.xmlHttpRequest({method:"head",url:e,responseType:"blob",onload(r){t(r.finalUrl);},onreadystatechange(r){}});})}function NK(e){const n=new URL(e).searchParams.get("access_key");if(n)return n;St("没有获得匹配的密钥");}var P$=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);}},Rr=function(){return Rr=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a]);}return t},Rr.apply(this,arguments)};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 kK(e,t,n,r){function o(a){return a instanceof n?a:new n(function(i){i(a);})}return new(n||(n=Promise))(function(a,i){function s(u){try{l(r.next(u));}catch(d){i(d);}}function c(u){try{l(r.throw(u));}catch(d){i(d);}}function l(u){u.done?a(u.value):o(u.value).then(s,c);}l((r=r.apply(e,t||[])).next());})}function AK(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,o,a,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(l){return function(u){return c([l,u])}}function c(l){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(n=0)),n;)try{if(r=1,o&&(a=l[0]&2?o.return:l[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,l[1])).done)return a;switch(o=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,o=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){n.label=l[1];break}if(l[0]===6&&n.label<a[1]){n.label=a[1],a=l;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(l);break}a[2]&&n.ops.pop(),n.trys.pop();continue}l=t.call(e,n);}catch(u){l=[6,u],o=0;}finally{r=a=0;}if(l[0]&5)throw l[1];return {value:l[0]?l[1]:void 0,done:!0}}}function hm(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 nn(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,a=[],i;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)a.push(o.value);}catch(s){i={error:s};}finally{try{o&&!o.done&&(n=r.return)&&n.call(r);}finally{if(i)throw i.error}}return a}function Nn(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var $i=function(e){return typeof e=="function"},LK=function(e){return typeof e=="string"},R$=function(e){return typeof e=="number"};function nt(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 vc=P$(f.useEffect);var T$=function(e,t){var n=t.manual,r=t.ready,o=r===void 0?!0:r,a=t.defaultParams,i=a===void 0?[]:a,s=t.refreshDeps,c=s===void 0?[]:s,l=t.refreshDepsAction,u=f.useRef(!1);return u.current=!1,vc(function(){!n&&o&&(u.current=!0,e.run.apply(e,Nn([],nn(i),!1)));},[o]),vc(function(){u.current||n||(u.current=!0,l?l():e.refresh());},Nn([],nn(c),!1)),{onBefore:function(){if(!o)return {stopNow:!0}}}};T$.onInit=function(e){var t=e.ready,n=t===void 0?!0:t,r=e.manual;return {loading:!r&&n}};const zK=T$;function pm(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 M$(e,t){var n=f.useRef({deps:t,obj:void 0,initialized:!1}).current;return (n.initialized===!1||!pm(n.deps,t))&&(n.deps=t,n.obj=e(),n.initialized=!0),n.obj}function ei(e){var t=f.useRef(e);return t.current=e,t}var DK=function(e){var t=ei(e);f.useEffect(function(){return function(){t.current();}},[]);};const Vs=DK;var Bl=new Map,FK=function(e,t,n){var r=Bl.get(e);r!=null&&r.timer&&clearTimeout(r.timer);var o=void 0;t>-1&&(o=setTimeout(function(){Bl.delete(e);},t)),Bl.set(e,Rr(Rr({},n),{timer:o}));},BK=function(e){return Bl.get(e)},Hl=new Map,HK=function(e){return Hl.get(e)},WK=function(e,t){Hl.set(e,t),t.then(function(n){return Hl.delete(e),n}).catch(function(){Hl.delete(e);});},Fo={},VK=function(e,t){Fo[e]&&Fo[e].forEach(function(n){return n(t)});},Ud=function(e,t){return Fo[e]||(Fo[e]=[]),Fo[e].push(t),function(){var r=Fo[e].indexOf(t);Fo[e].splice(r,1);}},KK=function(e,t){var n=t.cacheKey,r=t.cacheTime,o=r===void 0?5*60*1e3:r,a=t.staleTime,i=a===void 0?0:a,s=t.setCache,c=t.getCache,l=f.useRef(),u=f.useRef(),d=function(g,v){s?s(v):FK(g,o,v),VK(g,v.data);},m=function(g,v){return v===void 0&&(v=[]),c?c(v):BK(g)};return M$(function(){if(n){var g=m(n);g&&Object.hasOwnProperty.call(g,"data")&&(e.state.data=g.data,e.state.params=g.params,(i===-1||new Date().getTime()-g.time<=i)&&(e.state.loading=!1)),l.current=Ud(n,function(v){e.setState({data:v});});}},[]),Vs(function(){var g;(g=l.current)===null||g===void 0||g.call(l);}),n?{onBefore:function(g){var v=m(n,g);return !v||!Object.hasOwnProperty.call(v,"data")?{}:i===-1||new Date().getTime()-v.time<=i?{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(g,v){var h=HK(n);return h&&h!==u.current?{servicePromise:h}:(h=g.apply(void 0,Nn([],nn(v),!1)),u.current=h,WK(n,h),{servicePromise:h})},onSuccess:function(g,v){var h;n&&((h=l.current)===null||h===void 0||h.call(l),d(n,{data:g,params:v,time:new Date().getTime()}),l.current=Ud(n,function(p){e.setState({data:p});}));},onMutate:function(g){var v;n&&((v=l.current)===null||v===void 0||v.call(l),d(n,{data:g,params:e.state.params,time:new Date().getTime()}),l.current=Ud(n,function(h){e.setState({data:h});}));}}:{}};const GK=KK;var UK=function(e,t){var n=t.debounceWait,r=t.debounceLeading,o=t.debounceTrailing,a=t.debounceMaxWait,i=f.useRef(),s=f.useMemo(function(){var c={};return r!==void 0&&(c.leading=r),o!==void 0&&(c.trailing=o),a!==void 0&&(c.maxWait=a),c},[r,o,a]);return f.useEffect(function(){if(n){var c=e.runAsync.bind(e);return i.current=w3(function(l){l();},n,s),e.runAsync=function(){for(var l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];return new Promise(function(d,m){var g;(g=i.current)===null||g===void 0||g.call(i,function(){c.apply(void 0,Nn([],nn(l),!1)).then(d).catch(m);});})},function(){var l;(l=i.current)===null||l===void 0||l.cancel(),e.runAsync=c;}}},[n,s]),n?{onCancel:function(){var c;(c=i.current)===null||c===void 0||c.cancel();}}:{}};const XK=UK;var qK=function(e,t){var n=t.loadingDelay,r=t.ready,o=f.useRef();if(!n)return {};var a=function(){o.current&&clearTimeout(o.current);};return {onBefore:function(){return a(),r!==!1&&(o.current=setTimeout(function(){e.setState({loading:!0});},n)),{loading:!1}},onFinally:function(){a();},onCancel:function(){a();}}};const YK=qK;var ZK=!!(typeof window<"u"&&window.document&&window.document.createElement);const Ks=ZK;function kv(){return Ks?document.visibilityState!=="hidden":!0}var Ui=[];function QK(e){return Ui.push(e),function(){var n=Ui.indexOf(e);Ui.splice(n,1);}}if(Ks){var JK=function(){if(kv())for(var e=0;e<Ui.length;e++){var t=Ui[e];t();}};window.addEventListener("visibilitychange",JK,!1);}var eG=function(e,t){var n=t.pollingInterval,r=t.pollingWhenHidden,o=r===void 0?!0:r,a=t.pollingErrorRetryCount,i=a===void 0?-1:a,s=f.useRef(),c=f.useRef(),l=f.useRef(0),u=function(){var d;s.current&&clearTimeout(s.current),(d=c.current)===null||d===void 0||d.call(c);};return vc(function(){n||u();},[n]),n?{onBefore:function(){u();},onError:function(){l.current+=1;},onSuccess:function(){l.current=0;},onFinally:function(){i===-1||i!==-1&&l.current<=i?s.current=setTimeout(function(){!o&&!kv()?c.current=QK(function(){e.refresh();}):e.refresh();},n):l.current=0;},onCancel:function(){u();}}:{}};const tG=eG;function nG(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,Nn([],nn(r),!1)),setTimeout(function(){n=!1;},t));}}function rG(){return Ks&&typeof navigator.onLine<"u"?navigator.onLine:!0}var Xi=[];function oG(e){return Xi.push(e),function(){var n=Xi.indexOf(e);n>-1&&Xi.splice(n,1);}}if(Ks){var c0=function(){if(!(!kv()||!rG()))for(var e=0;e<Xi.length;e++){var t=Xi[e];t();}};window.addEventListener("visibilitychange",c0,!1),window.addEventListener("focus",c0,!1);}var aG=function(e,t){var n=t.refreshOnWindowFocus,r=t.focusTimespan,o=r===void 0?5e3:r,a=f.useRef(),i=function(){var s;(s=a.current)===null||s===void 0||s.call(a);};return f.useEffect(function(){if(n){var s=nG(e.refresh.bind(e),o);a.current=oG(function(){s();});}return function(){i();}},[n,o]),Vs(function(){i();}),{}};const iG=aG;var sG=function(e,t){var n=t.retryInterval,r=t.retryCount,o=f.useRef(),a=f.useRef(0),i=f.useRef(!1);return r?{onBefore:function(){i.current||(a.current=0),i.current=!1,o.current&&clearTimeout(o.current);},onSuccess:function(){a.current=0;},onError:function(){if(a.current+=1,r===-1||a.current<=r){var s=n??Math.min(1e3*Math.pow(2,a.current),3e4);o.current=setTimeout(function(){i.current=!0,e.refresh();},s);}else a.current=0;},onCancel:function(){a.current=0,o.current&&clearTimeout(o.current);}}:{}};const lG=sG;var cG=function(e,t){var n=t.throttleWait,r=t.throttleLeading,o=t.throttleTrailing,a=f.useRef(),i={};return r!==void 0&&(i.leading=r),o!==void 0&&(i.trailing=o),f.useEffect(function(){if(n){var s=e.runAsync.bind(e);return a.current=n1(function(c){c();},n,i),e.runAsync=function(){for(var c=[],l=0;l<arguments.length;l++)c[l]=arguments[l];return new Promise(function(u,d){var m;(m=a.current)===null||m===void 0||m.call(a,function(){s.apply(void 0,Nn([],nn(c),!1)).then(u).catch(d);});})},function(){var c;e.runAsync=s,(c=a.current)===null||c===void 0||c.cancel();}}},[n,r,o]),n?{onCancel:function(){var s;(s=a.current)===null||s===void 0||s.cancel();}}:{}};const uG=cG;var dG=function(e){f.useEffect(function(){e==null||e();},[]);};const Gs=dG;var fG=function(){var e=nn(f.useState({}),2),t=e[1];return f.useCallback(function(){return t({})},[])};const mG=fG;var gG=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=Rr(Rr(Rr({},this.state),{loading:!n.manual}),o);}return e.prototype.setState=function(t){t===void 0&&(t={}),this.state=Rr(Rr({},this.state),t),this.subscribe();},e.prototype.runPluginHandler=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=this.pluginImpls.map(function(a){var i;return (i=a[t])===null||i===void 0?void 0:i.call.apply(i,Nn([a],nn(n),!1))}).filter(Boolean);return Object.assign.apply(Object,Nn([{}],nn(o),!1))},e.prototype.runAsync=function(){for(var t,n,r,o,a,i,s,c,l,u,d=[],m=0;m<arguments.length;m++)d[m]=arguments[m];return kK(this,void 0,void 0,function(){var g,v,h,p,b,y,S,x,E,$,C;return AK(this,function(w){switch(w.label){case 0:if(this.count+=1,g=this.count,v=this.runPluginHandler("onBefore",d),h=v.stopNow,p=h===void 0?!1:h,b=v.returnNow,y=b===void 0?!1:b,S=_$(v,["stopNow","returnNow"]),p)return [2,new Promise(function(){})];if(this.setState(Rr({loading:!0,params:d},S)),y)return [2,Promise.resolve(S.data)];(n=(t=this.options).onBefore)===null||n===void 0||n.call(t,d),w.label=1;case 1:return w.trys.push([1,3,,4]),x=this.runPluginHandler("onRequest",this.serviceRef.current,d).servicePromise,x||(x=(C=this.serviceRef).current.apply(C,Nn([],nn(d),!1))),[4,x];case 2:return E=w.sent(),g!==this.count?[2,new Promise(function(){})]:(this.setState({data:E,error:void 0,loading:!1}),(o=(r=this.options).onSuccess)===null||o===void 0||o.call(r,E,d),this.runPluginHandler("onSuccess",E,d),(i=(a=this.options).onFinally)===null||i===void 0||i.call(a,d,E,void 0),g===this.count&&this.runPluginHandler("onFinally",d,E,void 0),[2,E]);case 3:if($=w.sent(),g!==this.count)return [2,new Promise(function(){})];throw this.setState({error:$,loading:!1}),(c=(s=this.options).onError)===null||c===void 0||c.call(s,$,d),this.runPluginHandler("onError",$,d),(u=(l=this.options).onFinally)===null||u===void 0||u.call(l,d,void 0,$),g===this.count&&this.runPluginHandler("onFinally",d,void 0,$),$;case 4:return [2]}})})},e.prototype.run=function(){for(var t=this,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];this.runAsync.apply(this,Nn([],nn(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,Nn([],nn(this.state.params||[]),!1));},e.prototype.refreshAsync=function(){return this.runAsync.apply(this,Nn([],nn(this.state.params||[]),!1))},e.prototype.mutate=function(t){var n=$i(t)?t(this.state.data):t;this.runPluginHandler("onMutate",n),this.setState({data:n});},e}();const vG=gG;function hG(e,t,n){t===void 0&&(t={}),n===void 0&&(n=[]);var r=t.manual,o=r===void 0?!1:r,a=_$(t,["manual"]);var i=Rr({manual:o},a),s=ei(e),c=mG(),l=M$(function(){var u=n.map(function(d){var m;return (m=d==null?void 0:d.onInit)===null||m===void 0?void 0:m.call(d,i)}).filter(Boolean);return new vG(s,i,c,Object.assign.apply(Object,Nn([{}],nn(u),!1)))},[]);return l.options=i,l.pluginImpls=n.map(function(u){return u(l,i)}),Gs(function(){if(!o){var u=l.state.params||t.defaultParams||[];l.run.apply(l,Nn([],nn(u),!1));}}),Vs(function(){l.cancel();}),{loading:l.state.loading,data:l.state.data,error:l.state.error,params:l.state.params||[],cancel:nt(l.cancel.bind(l)),refresh:nt(l.refresh.bind(l)),refreshAsync:nt(l.refreshAsync.bind(l)),run:nt(l.run.bind(l)),runAsync:nt(l.runAsync.bind(l)),mutate:nt(l.mutate.bind(l))}}function pG(e,t,n){return hG(e,t,Nn(Nn([],nn(n||[]),!1),[XK,YK,tG,iG,uG,zK,GK,lG],!1))}function N$(e,t){e===void 0&&(e=!1);var n=nn(f.useState(e),2),r=n[0],o=n[1],a=f.useMemo(function(){var i=t===void 0?!e:t,s=function(){return o(function(d){return d===e?i:e})},c=function(d){return o(d)},l=function(){return o(e)},u=function(){return o(i)};return {toggle:s,set:c,setLeft:l,setRight:u}},[]);return [r,a]}function bG(e){e===void 0&&(e=!1);var t=nn(N$(!!e),2),n=t[0],r=t[1],o=r.toggle,a=r.set,i=f.useMemo(function(){var s=function(){return a(!0)},c=function(){return a(!1)};return {toggle:o,set:function(l){return a(!!l)},setTrue:s,setFalse:c}},[]);return [n,i]}function Bu(e,t){if(Ks){if(!e)return t;var n;return $i(e)?n=e():"current"in e?n=e.current:n=e,n}}var yG=function(e){var t=function(n,r,o){var a=f.useRef(!1),i=f.useRef([]),s=f.useRef([]),c=f.useRef();e(function(){var l,u=Array.isArray(o)?o:[o],d=u.map(function(m){return Bu(m)});if(!a.current){a.current=!0,i.current=d,s.current=r,c.current=n();return}(d.length!==i.current.length||!pm(d,i.current)||!pm(r,s.current))&&((l=c.current)===null||l===void 0||l.call(c),i.current=d,s.current=r,c.current=n());}),Vs(function(){var l;(l=c.current)===null||l===void 0||l.call(c),a.current=!1;});};return t};const CG=yG;var SG=CG(f.useEffect);const k$=SG;var A$={exports:{}};(function(e,t){(function(n,r){e.exports=r();})(Ra,function(){var n=1e3,r=6e4,o=36e5,a="millisecond",i="second",s="minute",c="hour",l="day",u="week",d="month",m="quarter",g="year",v="date",h="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(R){var k=["th","st","nd","rd"],N=R%100;return "["+R+(k[(N-20)%10]||k[N]||k[0])+"]"}},S=function(R,k,N){var M=String(R);return !M||M.length>=k?R:""+Array(k+1-M.length).join(N)+R},x={s:S,z:function(R){var k=-R.utcOffset(),N=Math.abs(k),M=Math.floor(N/60),L=N%60;return (k<=0?"+":"-")+S(M,2,"0")+":"+S(L,2,"0")},m:function R(k,N){if(k.date()<N.date())return -R(N,k);var M=12*(N.year()-k.year())+(N.month()-k.month()),L=k.clone().add(M,d),j=N-L<0,F=k.clone().add(M+(j?-1:1),d);return +(-(M+(N-L)/(j?L-F:F-L))||0)},a:function(R){return R<0?Math.ceil(R)||0:Math.floor(R)},p:function(R){return {M:d,y:g,w:u,d:l,D:v,h:c,m:s,s:i,ms:a,Q:m}[R]||String(R||"").toLowerCase().replace(/s$/,"")},u:function(R){return R===void 0}},E="en",$={};$[E]=y;var C="$isDayjsObject",w=function(R){return R instanceof I||!(!R||!R[C])},O=function R(k,N,M){var L;if(!k)return E;if(typeof k=="string"){var j=k.toLowerCase();$[j]&&(L=j),N&&($[j]=N,L=j);var F=k.split("-");if(!L&&F.length>1)return R(F[0])}else {var K=k.name;$[K]=k,L=K;}return !M&&L&&(E=L),L||!M&&E},_=function(R,k){if(w(R))return R.clone();var N=typeof k=="object"?k:{};return N.date=R,N.args=arguments,new I(N)},T=x;T.l=O,T.i=w,T.w=function(R,k){return _(R,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var I=function(){function R(N){this.$L=O(N.locale,null,!0),this.parse(N),this.$x=this.$x||N.x||{},this[C]=!0;}var k=R.prototype;return k.parse=function(N){this.$d=function(M){var L=M.date,j=M.utc;if(L===null)return new Date(NaN);if(T.u(L))return new Date;if(L instanceof Date)return new Date(L);if(typeof L=="string"&&!/Z$/i.test(L)){var F=L.match(p);if(F){var K=F[2]-1||0,B=(F[7]||"0").substring(0,3);return j?new Date(Date.UTC(F[1],K,F[3]||1,F[4]||0,F[5]||0,F[6]||0,B)):new Date(F[1],K,F[3]||1,F[4]||0,F[5]||0,F[6]||0,B)}}return new Date(L)}(N),this.init();},k.init=function(){var N=this.$d;this.$y=N.getFullYear(),this.$M=N.getMonth(),this.$D=N.getDate(),this.$W=N.getDay(),this.$H=N.getHours(),this.$m=N.getMinutes(),this.$s=N.getSeconds(),this.$ms=N.getMilliseconds();},k.$utils=function(){return T},k.isValid=function(){return this.$d.toString()!==h},k.isSame=function(N,M){var L=_(N);return this.startOf(M)<=L&&L<=this.endOf(M)},k.isAfter=function(N,M){return _(N)<this.startOf(M)},k.isBefore=function(N,M){return this.endOf(M)<_(N)},k.$g=function(N,M,L){return T.u(N)?this[M]:this.set(L,N)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(N,M){var L=this,j=!!T.u(M)||M,F=T.p(N),K=function(ee,te){var ie=T.w(L.$u?Date.UTC(L.$y,te,ee):new Date(L.$y,te,ee),L);return j?ie:ie.endOf(l)},B=function(ee,te){return T.w(L.toDate()[ee].apply(L.toDate("s"),(j?[0,0,0,0]:[23,59,59,999]).slice(te)),L)},W=this.$W,H=this.$M,Y=this.$D,U="set"+(this.$u?"UTC":"");switch(F){case g:return j?K(1,0):K(31,11);case d:return j?K(1,H):K(0,H+1);case u:var X=this.$locale().weekStart||0,G=(W<X?W+7:W)-X;return K(j?Y-G:Y+(6-G),H);case l:case v:return B(U+"Hours",0);case c:return B(U+"Minutes",1);case s:return B(U+"Seconds",2);case i:return B(U+"Milliseconds",3);default:return this.clone()}},k.endOf=function(N){return this.startOf(N,!1)},k.$set=function(N,M){var L,j=T.p(N),F="set"+(this.$u?"UTC":""),K=(L={},L[l]=F+"Date",L[v]=F+"Date",L[d]=F+"Month",L[g]=F+"FullYear",L[c]=F+"Hours",L[s]=F+"Minutes",L[i]=F+"Seconds",L[a]=F+"Milliseconds",L)[j],B=j===l?this.$D+(M-this.$W):M;if(j===d||j===g){var W=this.clone().set(v,1);W.$d[K](B),W.init(),this.$d=W.set(v,Math.min(this.$D,W.daysInMonth())).$d;}else K&&this.$d[K](B);return this.init(),this},k.set=function(N,M){return this.clone().$set(N,M)},k.get=function(N){return this[T.p(N)]()},k.add=function(N,M){var L,j=this;N=Number(N);var F=T.p(M),K=function(H){var Y=_(j);return T.w(Y.date(Y.date()+Math.round(H*N)),j)};if(F===d)return this.set(d,this.$M+N);if(F===g)return this.set(g,this.$y+N);if(F===l)return K(1);if(F===u)return K(7);var B=(L={},L[s]=r,L[c]=o,L[i]=n,L)[F]||1,W=this.$d.getTime()+N*B;return T.w(W,this)},k.subtract=function(N,M){return this.add(-1*N,M)},k.format=function(N){var M=this,L=this.$locale();if(!this.isValid())return L.invalidDate||h;var j=N||"YYYY-MM-DDTHH:mm:ssZ",F=T.z(this),K=this.$H,B=this.$m,W=this.$M,H=L.weekdays,Y=L.months,U=L.meridiem,X=function(te,ie,le,Q){return te&&(te[ie]||te(M,j))||le[ie].slice(0,Q)},G=function(te){return T.s(K%12||12,te,"0")},ee=U||function(te,ie,le){var Q=te<12?"AM":"PM";return le?Q.toLowerCase():Q};return j.replace(b,function(te,ie){return ie||function(le){switch(le){case"YY":return String(M.$y).slice(-2);case"YYYY":return T.s(M.$y,4,"0");case"M":return W+1;case"MM":return T.s(W+1,2,"0");case"MMM":return X(L.monthsShort,W,Y,3);case"MMMM":return X(Y,W);case"D":return M.$D;case"DD":return T.s(M.$D,2,"0");case"d":return String(M.$W);case"dd":return X(L.weekdaysMin,M.$W,H,2);case"ddd":return X(L.weekdaysShort,M.$W,H,3);case"dddd":return H[M.$W];case"H":return String(K);case"HH":return T.s(K,2,"0");case"h":return G(1);case"hh":return G(2);case"a":return ee(K,B,!0);case"A":return ee(K,B,!1);case"m":return String(B);case"mm":return T.s(B,2,"0");case"s":return String(M.$s);case"ss":return T.s(M.$s,2,"0");case"SSS":return T.s(M.$ms,3,"0");case"Z":return F}return null}(te)||F.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(N,M,L){var j,F=this,K=T.p(M),B=_(N),W=(B.utcOffset()-this.utcOffset())*r,H=this-B,Y=function(){return T.m(F,B)};switch(K){case g:j=Y()/12;break;case d:j=Y();break;case m:j=Y()/3;break;case u:j=(H-W)/6048e5;break;case l:j=(H-W)/864e5;break;case c:j=H/o;break;case s:j=H/r;break;case i:j=H/n;break;default:j=H;}return L?j:T.a(j)},k.daysInMonth=function(){return this.endOf(d).$D},k.$locale=function(){return $[this.$L]},k.locale=function(N,M){if(!N)return this.$L;var L=this.clone(),j=O(N,M,!0);return j&&(L.$L=j),L},k.clone=function(){return T.w(this.$d,this)},k.toDate=function(){return new Date(this.valueOf())},k.toJSON=function(){return this.isValid()?this.toISOString():null},k.toISOString=function(){return this.$d.toISOString()},k.toString=function(){return this.$d.toUTCString()},R}(),P=I.prototype;return _.prototype=P,[["$ms",a],["$s",i],["$m",s],["$H",c],["$W",l],["$M",d],["$y",g],["$D",v]].forEach(function(R){P[R[1]]=function(k){return this.$g(k,R[0],R[1])};}),_.extend=function(R,k){return R.$i||(R(k,I,_),R.$i=!0),_},_.locale=O,_.isDayjs=w,_.unix=function(R){return _(1e3*R)},_.en=$[E],_.Ls=$,_.p={},_});})(A$);var $G=A$.exports;const la=fn($G);var wG="__lodash_hash_undefined__";function xG(e){return this.__data__.set(e,wG),this}var EG=xG;function OG(e){return this.__data__.has(e)}var IG=OG,PG=tg,_G=EG,RG=IG;function hc(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new PG;++t<n;)this.add(e[t]);}hc.prototype.add=hc.prototype.push=_G;hc.prototype.has=RG;var L$=hc;function TG(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return !0;return !1}var MG=TG;function NG(e,t){return e.has(t)}var j$=NG,kG=L$,AG=MG,LG=j$,jG=1,zG=2;function DG(e,t,n,r,o,a){var i=n&jG,s=e.length,c=t.length;if(s!=c&&!(i&&c>s))return !1;var l=a.get(e),u=a.get(t);if(l&&u)return l==t&&u==e;var d=-1,m=!0,g=n&zG?new kG:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var v=e[d],h=t[d];if(r)var p=i?r(h,v,d,t,e,a):r(v,h,d,e,t,a);if(p!==void 0){if(p)continue;m=!1;break}if(g){if(!AG(t,function(b,y){if(!LG(g,y)&&(v===b||o(v,b,n,r,a)))return g.push(y)})){m=!1;break}}else if(!(v===h||o(v,h,n,r,a))){m=!1;break}}return a.delete(e),a.delete(t),m}var z$=DG;function FG(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r];}),n}var BG=FG;function HG(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r;}),n}var Av=HG,u0=si,d0=Wy,WG=Jm,VG=z$,KG=BG,GG=Av,UG=1,XG=2,qG="[object Boolean]",YG="[object Date]",ZG="[object Error]",QG="[object Map]",JG="[object Number]",eU="[object RegExp]",tU="[object Set]",nU="[object String]",rU="[object Symbol]",oU="[object ArrayBuffer]",aU="[object DataView]",f0=u0?u0.prototype:void 0,Xd=f0?f0.valueOf:void 0;function iU(e,t,n,r,o,a,i){switch(n){case aU:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return !1;e=e.buffer,t=t.buffer;case oU:return !(e.byteLength!=t.byteLength||!a(new d0(e),new d0(t)));case qG:case YG:case JG:return WG(+e,+t);case ZG:return e.name==t.name&&e.message==t.message;case eU:case nU:return e==t+"";case QG:var s=KG;case tU:var c=r&UG;if(s||(s=GG),e.size!=t.size&&!c)return !1;var l=i.get(e);if(l)return l==t;r|=XG,i.set(e,t);var u=VG(s(e),s(t),r,o,a,i);return i.delete(e),u;case rU:if(Xd)return Xd.call(e)==Xd.call(t)}return !1}var sU=iU,m0=Dy,lU=1,cU=Object.prototype,uU=cU.hasOwnProperty;function dU(e,t,n,r,o,a){var i=n&lU,s=m0(e),c=s.length,l=m0(t),u=l.length;if(c!=u&&!i)return !1;for(var d=c;d--;){var m=s[d];if(!(i?m in t:uU.call(t,m)))return !1}var g=a.get(e),v=a.get(t);if(g&&v)return g==t&&v==e;var h=!0;a.set(e,t),a.set(t,e);for(var p=i;++d<c;){m=s[d];var b=e[m],y=t[m];if(r)var S=i?r(y,b,m,t,e,a):r(b,y,m,e,t,a);if(!(S===void 0?b===y||o(b,y,n,r,a):S)){h=!1;break}p||(p=m=="constructor");}if(h&&!p){var x=e.constructor,E=t.constructor;x!=E&&"constructor"in e&&"constructor"in t&&!(typeof x=="function"&&x instanceof x&&typeof E=="function"&&E instanceof E)&&(h=!1);}return a.delete(e),a.delete(t),h}var fU=dU,qd=ng,mU=z$,gU=sU,vU=fU,g0=Zc,v0=jr,h0=ag,hU=Ty,pU=1,p0="[object Arguments]",b0="[object Array]",Cl="[object Object]",bU=Object.prototype,y0=bU.hasOwnProperty;function yU(e,t,n,r,o,a){var i=v0(e),s=v0(t),c=i?b0:g0(e),l=s?b0:g0(t);c=c==p0?Cl:c,l=l==p0?Cl:l;var u=c==Cl,d=l==Cl,m=c==l;if(m&&h0(e)){if(!h0(t))return !1;i=!0,u=!1;}if(m&&!u)return a||(a=new qd),i||hU(e)?mU(e,t,n,r,o,a):gU(e,t,c,n,r,o,a);if(!(n&pU)){var g=u&&y0.call(e,"__wrapped__"),v=d&&y0.call(t,"__wrapped__");if(g||v){var h=g?e.value():e,p=v?t.value():t;return a||(a=new qd),o(h,p,n,r,a)}}return m?(a||(a=new qd),vU(e,t,n,r,o,a)):!1}var CU=yU,SU=CU,C0=Ro;function D$(e,t,n,r,o){return e===t?!0:e==null||t==null||!C0(e)&&!C0(t)?e!==e&&t!==t:SU(e,t,n,r,D$,o)}var Lv=D$,$U=Lv;function wU(e,t){return $U(e,t)}var xU=wU;const EU=fn(xU);var OU=function(e,t){return e===void 0&&(e=[]),t===void 0&&(t=[]),EU(e,t)};function Io(e,t,n){n===void 0&&(n={});var r=ei(t);k$(function(){var o=Bu(n.target,window);if(o!=null&&o.addEventListener){var a=function(i){return r.current(i)};return o.addEventListener(e,a,{capture:n.capture,once:n.once,passive:n.passive}),function(){o.removeEventListener(e,a,{capture:n.capture});}}},[e,n.capture,n.once,n.passive],n.target);}function F$(e){var t=nn(f.useState(e),2),n=t[0],r=t[1],o=f.useRef(n);o.current=n;var a=f.useCallback(function(){return o.current},[]);return [n,r,a]}const Yd=function(e,t){var n=t||{},r=n.onEnter,o=n.onLeave,a=n.onChange,i=nn(bG(!1),2),s=i[0],c=i[1],l=c.setTrue,u=c.setFalse;return Io("mouseenter",function(){r==null||r(),l(),a==null||a(!0);},{target:e}),Io("mouseleave",function(){o==null||o(),u(),a==null||a(!1);},{target:e}),s};var IU=function(e,t,n){var r=f.useRef(),o=f.useRef(0);OU(t,r.current)||(r.current=t,o.current+=1),k$(e,[o.current],n);};const PU=IU;var _U=/(mac|iphone|ipod|ipad)/i.test(typeof navigator<"u"?navigator==null?void 0:navigator.platform:"");const RU=_U;var B$={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:RU?[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},bm={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"?B$.meta.includes(e.keyCode):e.metaKey}};function TU(e){var t=Object.keys(bm).reduce(function(n,r){return bm[r](e)?n+1:n},0);return [16,17,18,91,92].includes(e.keyCode)?t:t+1}function S0(e,t,n){var r,o;if(!e.key)return !1;if(R$(t))return e.keyCode===t;var a=t.split("."),i=0;try{for(var s=hm(a),c=s.next();!c.done;c=s.next()){var l=c.value,u=bm[l],d=B$[l.toLowerCase()];(u&&u(e)||d&&d===e.keyCode)&&i++;}}catch(m){r={error:m};}finally{try{c&&!c.done&&(o=s.return)&&o.call(s);}finally{if(r)throw r.error}}return n?i===a.length&&TU(e)===a.length:i===a.length}function MU(e,t){return $i(e)?e:LK(e)||R$(e)?function(n){return S0(n,e,t)}:Array.isArray(e)?function(n){return e.some(function(r){return S0(n,r,t)})}:function(){return !!e}}var NU=["keydown"];function on(e,t,n){var r=n||{},o=r.events,a=o===void 0?NU:o,i=r.target,s=r.exactMatch,c=s===void 0?!1:s,l=r.useCapture,u=l===void 0?!1:l,d=ei(t),m=ei(e);PU(function(){var g,v,h,p=Bu(i,window);if(p){var b=function(E){var $,C=MU(m.current,c);if(C(E))return ($=d.current)===null||$===void 0?void 0:$.call(d,E)};try{for(var y=hm(a),S=y.next();!S.done;S=y.next()){var x=S.value;(h=p==null?void 0:p.addEventListener)===null||h===void 0||h.call(p,x,b,u);}}catch(E){g={error:E};}finally{try{S&&!S.done&&(v=y.return)&&v.call(y);}finally{if(g)throw g.error}}return function(){var E,$,C;try{for(var w=hm(a),O=w.next();!O.done;O=w.next()){var _=O.value;(C=p==null?void 0:p.removeEventListener)===null||C===void 0||C.call(p,_,b,u);}}catch(T){E={error:T};}finally{try{O&&!O.done&&($=w.return)&&$.call(w);}finally{if(E)throw E.error}}}}},[a],i);}function H$(e){var t=f.useRef(0),n=nn(f.useState(e),2),r=n[0],o=n[1],a=f.useCallback(function(i){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){o(i);});},[]);return Vs(function(){cancelAnimationFrame(t.current);}),[r,a]}var kU={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 AU=function(e){var t=nn(H$(kU),2),n=t[0],r=t[1];return Io("mousemove",function(o){var a=o.screenX,i=o.screenY,s=o.clientX,c=o.clientY,l=o.pageX,u=o.pageY,d={screenX:a,screenY:i,clientX:s,clientY:c,pageX:l,pageY:u,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},m=Bu(e);if(m){var g=m.getBoundingClientRect(),v=g.left,h=g.top,p=g.width,b=g.height;d.elementPosX=v+window.pageXOffset,d.elementPosY=h+window.pageYOffset,d.elementX=l-d.elementPosX,d.elementY=u-d.elementPosY,d.elementW=p,d.elementH=b;}r(d);},{target:function(){return document}}),n};var LU=function(){var e=f.useRef(!1);return f.useEffect(function(){return e.current=!1,function(){e.current=!0;}},[]),e};const jU=LU,zU=P$(f.useLayoutEffect),$0=z(Xt,{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 W$({style:e,className:t}){const {runAsync:n,loading:r}=pG(RK,{manual:!0}),{accessKey:o}=xn(),a=TK,s=c=>c;return z(Ls,{size:"small",style:e,className:t,children:o?Ce(It,{children:[s(z(Xt,{onClick:n,disabled:r,children:z("span",{children:"重新获取 access_key"})})),z(Xt,{onClick:a,children:z("span",{children:"删除 access_key"})}),$0]}):Ce(It,{children:[s(z(Xt,{onClick:n,disabled:r,size:"middle",children:z("span",{children:"获取 access_key"})})),$0]})})}const DU="_modal-mask_1j5wc_1",FU="_modal_1j5wc_1",BU="_modal-header_1j5wc_23",HU="_modal-body_1j5wc_30",WU="_modal-title_1j5wc_35",VU="_btn-close_1j5wc_42",Ur={modalMask:DU,modal:FU,modalHeader:BU,modalBody:HU,modalTitle:WU,btnClose:VU};let Di=0;const KU=()=>{Di++,document.body.style.overflow="hidden";},GU=()=>{Di--,Di<0&&(Di=0),Di===0&&(document.body.style.overflow="");};function jv({show:e,onHide:t,children:n,styleModalMask:r,clsModalMask:o,styleModal:a,clsModal:i,width:s,hideWhenMaskOnClick:c=!1,hideWhenEsc:l=!1}){f.useLayoutEffect(()=>{e?KU():GU();},[e]);const u=f.useRef(null),d=Rv(),{bg:m,c:g}=f.useMemo(()=>{const y=window.getComputedStyle(document.body).backgroundColor,S=window.getComputedStyle(document.body).color;return {bg:y,c:S}},[d]),v=f.useMemo(()=>d?{"--bg":m,"--c":g,backgroundColor:m,color:g}:{},[m,g,d]),h=f.useId(),p=f.useMemo(()=>{const y=document.createElement("div");return y.setAttribute("data-id","base-modal-"+h),document.body.appendChild(y),y},[]),b=nt(y=>{var x;const S=y.target;(x=u.current)!=null&&x.contains(S)||S.closest('.ant-tooltip-inner[role="tooltip"]')||S.closest('.ant-popover-inner[role="tooltip"]')||c&&t();});return on("esc",y=>{e&&l&&(y.preventDefault(),y.stopImmediatePropagation(),setTimeout(t));}),e?Q0.createPortal(z("div",{className:V(Ur.modalMask,o),style:r,onClick:b,children:z("div",{className:V(Ur.modal,i),style:{...v,width:s,...a},ref:u,children:n})}),p):null}const zv=e=>z(Mt,{...e,name:"Close",size:18,style:{cursor:"pointer",marginLeft:10,...e.style}}),V$=f__namespace.createContext(null),UU=V$.Provider,K$=f__namespace.createContext(null),XU=K$.Provider,qU=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return {[r]:Object.assign(Object.assign({},Nt(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"}})}},YU=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:a,motionDurationMid:i,motionEaseInOutCirc:s,colorBgContainer:c,colorBorder:l,lineWidth:u,dotSize:d,colorBgContainerDisabled:m,colorTextDisabled:g,paddingXS:v,dotColorDisabled:h,lineType:p,radioDotDisabledSize:b,wireframe:y,colorWhite:S}=e,x=`${t}-inner`;return {[`${t}-wrapper`]:Object.assign(Object.assign({},Nt(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${u}px ${p} ${r}`,borderRadius:"50%",visibility:"hidden",content:'""'},[t]:Object.assign(Object.assign({},Nt(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,
        &:hover ${x}`]:{borderColor:r},[`${t}-input:focus-visible + ${x}`]:Object.assign({},Jo(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:o,height:o,marginBlockStart:o/-2,marginInlineStart:o/-2,backgroundColor:y?r:S,borderBlockStart:0,borderInlineStart:0,borderRadius:o,transform:"scale(0)",opacity:0,transition:`all ${a} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:o,height:o,backgroundColor:c,borderColor:l,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:`all ${i}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[x]:{borderColor:r,backgroundColor:y?c:r,"&::after":{transform:`scale(${d/o})`,opacity:1,transition:`all ${a} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[x]:{backgroundColor:m,borderColor:l,cursor:"not-allowed","&::after":{backgroundColor:h}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:g,cursor:"not-allowed"},[`&${t}-checked`]:{[x]:{"&::after":{transform:`scale(${b/o})`}}}},[`span${t} + *`]:{paddingInlineStart:v,paddingInlineEnd:v}})}},ZU=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:a,colorBorder:i,motionDurationSlow:s,motionDurationMid:c,buttonPaddingInline:l,fontSize:u,buttonBg:d,fontSizeLG:m,controlHeightLG:g,controlHeightSM:v,paddingXS:h,borderRadius:p,borderRadiusSM:b,borderRadiusLG:y,buttonCheckedBg:S,buttonSolidCheckedColor:x,colorTextDisabled:E,colorBgContainerDisabled:$,buttonCheckedBgDisabled:C,buttonCheckedColorDisabled:w,colorPrimary:O,colorPrimaryHover:_,colorPrimaryActive:T,buttonSolidCheckedBg:I,buttonSolidCheckedHoverBg:P,buttonSolidCheckedActiveBg:R}=e;return {[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:l,paddingBlock:0,color:t,fontSize:u,lineHeight:`${n-o*2}px`,background:d,border:`${o}px ${a} ${i}`,borderBlockStartWidth:o+.02,borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${c}`,`background ${c}`,`box-shadow ${c}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-o,insetInlineStart:-o,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:i,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${o}px ${a} ${i}`,borderStartStartRadius:p,borderEndStartRadius:p},"&:last-child":{borderStartEndRadius:p,borderEndEndRadius:p},"&:first-child:last-child":{borderRadius:p},[`${r}-group-large &`]:{height:g,fontSize:m,lineHeight:`${g-o*2}px`,"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},[`${r}-group-small &`]:{height:v,paddingInline:h-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({},Jo(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:S,borderColor:O,"&::before":{backgroundColor:O},"&:first-child":{borderColor:O},"&:hover":{color:_,borderColor:_,"&::before":{backgroundColor:_}},"&:active":{color:T,borderColor:T,"&::before":{backgroundColor:T}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:x,background:I,borderColor:I,"&:hover":{color:x,background:P,borderColor:P},"&:active":{color:x,background:R,borderColor:R}},"&-disabled":{color:E,backgroundColor:$,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:E,backgroundColor:$,borderColor:i}},[`&-disabled${r}-button-wrapper-checked`]:{color:w,backgroundColor:C,borderColor:i,boxShadow:"none"}}}},w0=e=>e-4*2,G$=Dt("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n,radioSize:r}=e,o=`0 0 0 ${n}px ${t}`,a=o,i=w0(r),s=gt(e,{radioDotDisabledSize:i,radioFocusShadow:o,radioButtonFocusShadow:a});return [qU(s),YU(s),ZU(s)]},e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:a,colorText:i,colorBgContainer:s,colorTextDisabled:c,controlItemBgActiveDisabled:l,colorTextLightSolid:u,colorPrimary:d,colorPrimaryHover:m,colorPrimaryActive:g}=e,v=4,h=a,p=t?w0(h):h-(v+o)*2;return {radioSize:h,dotSize:p,dotColorDisabled:c,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:m,buttonSolidCheckedActiveBg:g,buttonBg:s,buttonCheckedBg:s,buttonColor:i,buttonCheckedBgDisabled:l,buttonCheckedColorDisabled:c,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r}});var QU=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 JU=(e,t)=>{var n,r;const o=f__namespace.useContext(V$),a=f__namespace.useContext(K$),{getPrefixCls:i,direction:s,radio:c}=f__namespace.useContext(Xe),l=f__namespace.useRef(null),u=Kn(t,l),{isFormItemInput:d}=f__namespace.useContext(br),m=T=>{var I,P;(I=e.onChange)===null||I===void 0||I.call(e,T),(P=o==null?void 0:o.onChange)===null||P===void 0||P.call(o,T);},{prefixCls:g,className:v,rootClassName:h,children:p,style:b}=e,y=QU(e,["prefixCls","className","rootClassName","children","style"]),S=i("radio",g),x=((o==null?void 0:o.optionType)||a)==="button",E=x?`${S}-button`:S,[$,C]=G$(S),w=Object.assign({},y),O=f__namespace.useContext(Zr);o&&(w.name=o.name,w.onChange=m,w.checked=e.value===o.value,w.disabled=(n=w.disabled)!==null&&n!==void 0?n:o.disabled),w.disabled=(r=w.disabled)!==null&&r!==void 0?r:O;const _=V(`${E}-wrapper`,{[`${E}-wrapper-checked`]:w.checked,[`${E}-wrapper-disabled`]:w.disabled,[`${E}-wrapper-rtl`]:s==="rtl",[`${E}-wrapper-in-form-item`]:d},c==null?void 0:c.className,v,h,C);return $(f__namespace.createElement(Ns,{component:"Radio",disabled:w.disabled},f__namespace.createElement("label",{className:_,style:Object.assign(Object.assign({},c==null?void 0:c.style),b),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},f__namespace.createElement(bC,Object.assign({},w,{className:V(w.className,!x&&Cu),type:"radio",prefixCls:E,ref:u})),p!==void 0?f__namespace.createElement("span",null,p):null)))},eX=f__namespace.forwardRef(JU),pc=eX,tX=f__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=f__namespace.useContext(Xe),[o,a]=Wt(e.defaultValue,{value:e.value}),i=I=>{const P=o,R=I.target.value;"value"in e||a(R);const{onChange:k}=e;k&&R!==P&&k(I);},{prefixCls:s,className:c,rootClassName:l,options:u,buttonStyle:d="outline",disabled:m,children:g,size:v,style:h,id:p,onMouseEnter:b,onMouseLeave:y,onFocus:S,onBlur:x}=e,E=n("radio",s),$=`${E}-group`,[C,w]=G$(E);let O=g;u&&u.length>0&&(O=u.map(I=>typeof I=="string"||typeof I=="number"?f__namespace.createElement(pc,{key:I.toString(),prefixCls:E,disabled:m,value:I,checked:o===I},I):f__namespace.createElement(pc,{key:`radio-group-value-options-${I.value}`,prefixCls:E,disabled:I.disabled||m,value:I.value,checked:o===I.value,title:I.title,style:I.style,id:I.id},I.label)));const _=Xn(v),T=V($,`${$}-${d}`,{[`${$}-${_}`]:_,[`${$}-rtl`]:r==="rtl"},c,l,w);return C(f__namespace.createElement("div",Object.assign({},Ya(e,{aria:!0,data:!0}),{className:T,style:h,onMouseEnter:b,onMouseLeave:y,onFocus:S,onBlur:x,id:p,ref:t}),f__namespace.createElement(UU,{value:{onChange:i,value:o,disabled:e.disabled,name:e.name,optionType:e.optionType}},O)))}),nX=f__namespace.memo(tX);var rX=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 oX=(e,t)=>{const{getPrefixCls:n}=f__namespace.useContext(Xe),{prefixCls:r}=e,o=rX(e,["prefixCls"]),a=n("radio",r);return f__namespace.createElement(XU,{value:"button"},f__namespace.createElement(pc,Object.assign({prefixCls:a},o,{type:"radio",ref:t})))},aX=f__namespace.forwardRef(oX),Hu=pc;Hu.Button=aX;Hu.Group=nX;Hu.__ANT_RADIO=!0;const x0=Hu;function iX(e,t){const n=Object.keys(e),r=bg(JSON.parse(localStorage.getItem(t)||"{}"),n),o=yr({...e,...r});return _v(o,()=>{const a=fc(o);localStorage.setItem(t,JSON.stringify(a));}),o}function Dv(){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 Us(){const e=Dv().bili_jct;if(!e)throw St("找不到 csrf token, 请检查是否登录"),new Error("找不到 csrf token, 请检查是否登录");return e}function Wu(){return Dv().DedeUserID}function Xs(){return !!Dv().DedeUserID}const ym=yr({cookie:document.cookie,logined:Xs()});function sX(){return Object.assign(ym,{cookie:document.cookie,logined:Xs()}),ym.logined}function Fv(){return $r(ym).logined}const E0=()=>{const e=new Error("Delay aborted");return e.name="AbortError",e},lX=new WeakMap;function cX({clearTimeout:e,setTimeout:t}={}){return (n,{value:r,signal:o}={})=>{if(o!=null&&o.aborted)return Promise.reject(E0());let a,i,s;const c=e??clearTimeout,l=()=>{c(a),s(E0());},u=()=>{o&&o.removeEventListener("abort",l);},d=new Promise((m,g)=>{i=()=>{u(),m(r);},s=g,a=(t??setTimeout)(i,n);});return o&&o.addEventListener("abort",l,{once:!0}),lX.set(d,()=>{c(a),a=null,i();}),d}}const mo=cX(),uX=vi.extend("utility:dom"),dX=10*1e3,fX=200;async function qi(e,t,n=()=>!0){let r=[];const o=()=>{r=Array.from(document.querySelectorAll(e)).filter(n);};o();const i=performance.now()+dX;for(;!r.length&&performance.now()<i;)await mo(fX),o();if(!r.length){console.warn(`[${$n}]: tryAction timeout, selector = \`%s\``,e);return}uX("tryAction: selector=`%s` count=%s",e,r.length);for(const s of r)await Promise.resolve(t(s));}async function La(e,t,n){return typeof n=="number"&&await mo(n),qi(e,r=>r.remove(),t)}function Vu(){var t;const e=(((t=document.activeElement)==null?void 0:t.tagName)||"").toLowerCase();return !!(["input","textarea"].includes(e)||document.querySelector(".center-search__bar.is-focus"))}function mX(e){if(!e)return 0;const t=[1,60,360];return e.split(":").map(o=>Number(o)).reverse().reduce((o,a,i)=>o+a*t[i],0)}function Ku(e){return e||(e=0),la.duration(e||0,"seconds").format(e>=3600?"HH:mm:ss":"mm:ss")}function Zd(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 gX=la().format("YYYY");function Eo(e,t=!1){if(!e)return "";const n=la.unix(e),r=t?" HH:mm":"";return n.format("YYYY")===gX?n.format("M-D"+r):n.format("YY-M-D"+r)}const vX={1:"橙色通过",0:"开放浏览","-1":"待审","-2":"被打回","-3":"网警锁定","-4":"被锁定","-5":"管理员锁定","-6":"修复待审","-7":"暂缓审核","-8":"补档待审","-9":"等待转码","-10":"延迟审核","-11":"视频源待修","-12":"转储失败","-13":"允许评论待审","-14":"临时回收站","-15":"分发中","-16":"转码失败","-20":"创建未提交","-30":"创建已提交","-40":"定时发布","-100":"用户删除"};function hX(e){if(!(typeof e>"u")&&!(e>=0))return vX[e]}const pX=`${$n}-video-source-tab`,Bv=iX({value:"recommend-app"},pX),Cm={name:"qamjgr",styles:"margin-right:4px"},qs=[{key:"recommend-app",icon:"Iphone",label:"推荐",desc:"使用手机 APP 端推荐 API"},{key:"recommend-pc",icon:"Computer",label:"推荐",desc:"使用新版首页顶部推荐 API"},{key:"keep-follow-only",icon:"Concern",label:"已关注",desc:"推荐中只保留「已关注」,会很慢"},{key:"dynamic-feed",icon:"Tumblr",iconProps:{size:16},label:"动态",desc:"视频投稿动态",swr:!0},{key:"watchlater",icon:"FileCabinet",iconProps:{size:15},label:"稍后再看",desc:"你添加的稍后再看; 默认随机乱序, 可在设置-高级设置 或 稍后再看 Tab 中关闭乱序",swr:!0},{key:"fav",icon:"Star",iconProps:{size:15},label:"收藏",desc:"你添加的收藏; 默认随机乱序, 可在设置-高级设置 或 收藏 Tab 中关闭乱序",reuseable:!1}],O0=qs.reduce((e,t)=>({...e,[t.key]:t}),{}),bX=qs.map(e=>e.key);function U$(){const{showingTabKeys:e}=xn();return f.useMemo(()=>e.length?e:qs.map(t=>t.key),[e])}function yX(){const e=U$(),t=Fv();return f.useMemo(()=>qs.filter(n=>e.includes(n.key)||!t&&n.key==="recommend-app"),[e,t])}function X$(e,t){return bX.includes(e)&&(t||e==="recommend-app"||e==="recommend-pc")?e:"recommend-app"}function Ys(){return X$($r(Bv).value,Fv())}function CX(){return X$(Bv.value,Xs())}function SX(){return St("你需要登录B站后使用该功能! 如已完成登录, 请刷新网页重试~")}const $X={name:"1dwyqh0",styles:"height:26px;line-height:unset;&:has(:focus-visible){outline:none;outline-offset:unset;}>.ant-radio-button+span{height:100%;}"},wX={name:"s0vnfv",styles:"height:32px"};var xX={name:"shwixj",styles:"display:flex;align-items:center;height:22px"},EX={name:"1k4kcw8",styles:"display:flex;align-items:center;line-height:unset;height:100%"};function q$({onRefresh:e}){const t=Fv(),n=Ys(),{styleUseStandardVideoSourceTab:r}=xn(),o=yX();return Ce(It,{children:[z(x0.Group,{optionType:"button",buttonStyle:"solid",size:"middle",value:n,style:{overflow:"hidden"},onFocus:a=>{a.target.blur();},onChange:a=>{const i=a.target.value;if(i!=="recommend-app"&&i!=="recommend-pc"&&!t&&!sX())return SX();Bv.value=i,setTimeout(()=>{e(!0,{watchlaterKeepOrder:!0});});},children:o.map(({key:a,label:i,icon:s,iconProps:c})=>z(x0.Button,{css:[$X,r&&wX,"",""],className:"video-source-tab",tabIndex:-1,value:a,children:Ce("span",{css:EX,children:[z(Mt,{name:s,...c,size:(c==null?void 0:c.size)||18,css:Cm}),i]})},a))}),z(Du,{iconProps:{name:"Tips",size:16,style:{marginLeft:6}},tooltip:z(It,{children:o.map(({key:a,label:i,icon:s,iconProps:c,desc:l})=>Ce("div",{css:xX,children:[z(Mt,{name:s,...c,size:(c==null?void 0:c.size)||18,css:Cm}),i,": ",l]},a))})})]})}var Y$={exports:{}},Z$={exports:{}};(function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t={rotl:function(n,r){return n<<r|n>>>32-r},rotr:function(n,r){return n<<32-r|n>>>r},endian:function(n){if(n.constructor==Number)return t.rotl(n,8)&16711935|t.rotl(n,24)&4278255360;for(var r=0;r<n.length;r++)n[r]=t.endian(n[r]);return n},randomBytes:function(n){for(var r=[];n>0;n--)r.push(Math.floor(Math.random()*256));return r},bytesToWords:function(n){for(var r=[],o=0,a=0;o<n.length;o++,a+=8)r[a>>>5]|=n[o]<<24-a%32;return r},wordsToBytes:function(n){for(var r=[],o=0;o<n.length*32;o+=8)r.push(n[o>>>5]>>>24-o%32&255);return r},bytesToHex:function(n){for(var r=[],o=0;o<n.length;o++)r.push((n[o]>>>4).toString(16)),r.push((n[o]&15).toString(16));return r.join("")},hexToBytes:function(n){for(var r=[],o=0;o<n.length;o+=2)r.push(parseInt(n.substr(o,2),16));return r},bytesToBase64:function(n){for(var r=[],o=0;o<n.length;o+=3)for(var a=n[o]<<16|n[o+1]<<8|n[o+2],i=0;i<4;i++)o*8+i*6<=n.length*8?r.push(e.charAt(a>>>6*(3-i)&63)):r.push("=");return r.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/ig,"");for(var r=[],o=0,a=0;o<n.length;a=++o%4)a!=0&&r.push((e.indexOf(n.charAt(o-1))&Math.pow(2,-2*a+8)-1)<<a*2|e.indexOf(n.charAt(o))>>>6-a*2);return r}};Z$.exports=t;})();var OX=Z$.exports,Sm={utf8:{stringToBytes:function(e){return Sm.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(Sm.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(e.charCodeAt(n)&255);return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}},I0=Sm;/*!
   * Determine if an object is a Buffer
   *
   * @author   Feross Aboukhadijeh <https://feross.org>
   * @license  MIT
   */var IX=function(e){return e!=null&&(Q$(e)||PX(e)||!!e._isBuffer)};function Q$(e){return !!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function PX(e){return typeof e.readFloatLE=="function"&&typeof e.slice=="function"&&Q$(e.slice(0,0))}(function(){var e=OX,t=I0.utf8,n=IX,r=I0.bin,o=function(a,i){a.constructor==String?i&&i.encoding==="binary"?a=r.stringToBytes(a):a=t.stringToBytes(a):n(a)?a=Array.prototype.slice.call(a,0):!Array.isArray(a)&&a.constructor!==Uint8Array&&(a=a.toString());for(var s=e.bytesToWords(a),c=a.length*8,l=1732584193,u=-271733879,d=-1732584194,m=271733878,g=0;g<s.length;g++)s[g]=(s[g]<<8|s[g]>>>24)&16711935|(s[g]<<24|s[g]>>>8)&4278255360;s[c>>>5]|=128<<c%32,s[(c+64>>>9<<4)+14]=c;for(var v=o._ff,h=o._gg,p=o._hh,b=o._ii,g=0;g<s.length;g+=16){var y=l,S=u,x=d,E=m;l=v(l,u,d,m,s[g+0],7,-680876936),m=v(m,l,u,d,s[g+1],12,-389564586),d=v(d,m,l,u,s[g+2],17,606105819),u=v(u,d,m,l,s[g+3],22,-1044525330),l=v(l,u,d,m,s[g+4],7,-176418897),m=v(m,l,u,d,s[g+5],12,1200080426),d=v(d,m,l,u,s[g+6],17,-1473231341),u=v(u,d,m,l,s[g+7],22,-45705983),l=v(l,u,d,m,s[g+8],7,1770035416),m=v(m,l,u,d,s[g+9],12,-1958414417),d=v(d,m,l,u,s[g+10],17,-42063),u=v(u,d,m,l,s[g+11],22,-1990404162),l=v(l,u,d,m,s[g+12],7,1804603682),m=v(m,l,u,d,s[g+13],12,-40341101),d=v(d,m,l,u,s[g+14],17,-1502002290),u=v(u,d,m,l,s[g+15],22,1236535329),l=h(l,u,d,m,s[g+1],5,-165796510),m=h(m,l,u,d,s[g+6],9,-1069501632),d=h(d,m,l,u,s[g+11],14,643717713),u=h(u,d,m,l,s[g+0],20,-373897302),l=h(l,u,d,m,s[g+5],5,-701558691),m=h(m,l,u,d,s[g+10],9,38016083),d=h(d,m,l,u,s[g+15],14,-660478335),u=h(u,d,m,l,s[g+4],20,-405537848),l=h(l,u,d,m,s[g+9],5,568446438),m=h(m,l,u,d,s[g+14],9,-1019803690),d=h(d,m,l,u,s[g+3],14,-187363961),u=h(u,d,m,l,s[g+8],20,1163531501),l=h(l,u,d,m,s[g+13],5,-1444681467),m=h(m,l,u,d,s[g+2],9,-51403784),d=h(d,m,l,u,s[g+7],14,1735328473),u=h(u,d,m,l,s[g+12],20,-1926607734),l=p(l,u,d,m,s[g+5],4,-378558),m=p(m,l,u,d,s[g+8],11,-2022574463),d=p(d,m,l,u,s[g+11],16,1839030562),u=p(u,d,m,l,s[g+14],23,-35309556),l=p(l,u,d,m,s[g+1],4,-1530992060),m=p(m,l,u,d,s[g+4],11,1272893353),d=p(d,m,l,u,s[g+7],16,-155497632),u=p(u,d,m,l,s[g+10],23,-1094730640),l=p(l,u,d,m,s[g+13],4,681279174),m=p(m,l,u,d,s[g+0],11,-358537222),d=p(d,m,l,u,s[g+3],16,-722521979),u=p(u,d,m,l,s[g+6],23,76029189),l=p(l,u,d,m,s[g+9],4,-640364487),m=p(m,l,u,d,s[g+12],11,-421815835),d=p(d,m,l,u,s[g+15],16,530742520),u=p(u,d,m,l,s[g+2],23,-995338651),l=b(l,u,d,m,s[g+0],6,-198630844),m=b(m,l,u,d,s[g+7],10,1126891415),d=b(d,m,l,u,s[g+14],15,-1416354905),u=b(u,d,m,l,s[g+5],21,-57434055),l=b(l,u,d,m,s[g+12],6,1700485571),m=b(m,l,u,d,s[g+3],10,-1894986606),d=b(d,m,l,u,s[g+10],15,-1051523),u=b(u,d,m,l,s[g+1],21,-2054922799),l=b(l,u,d,m,s[g+8],6,1873313359),m=b(m,l,u,d,s[g+15],10,-30611744),d=b(d,m,l,u,s[g+6],15,-1560198380),u=b(u,d,m,l,s[g+13],21,1309151649),l=b(l,u,d,m,s[g+4],6,-145523070),m=b(m,l,u,d,s[g+11],10,-1120210379),d=b(d,m,l,u,s[g+2],15,718787259),u=b(u,d,m,l,s[g+9],21,-343485551),l=l+y>>>0,u=u+S>>>0,d=d+x>>>0,m=m+E>>>0;}return e.endian([l,u,d,m])};o._ff=function(a,i,s,c,l,u,d){var m=a+(i&s|~i&c)+(l>>>0)+d;return (m<<u|m>>>32-u)+i},o._gg=function(a,i,s,c,l,u,d){var m=a+(i&c|s&~c)+(l>>>0)+d;return (m<<u|m>>>32-u)+i},o._hh=function(a,i,s,c,l,u,d){var m=a+(i^s^c)+(l>>>0)+d;return (m<<u|m>>>32-u)+i},o._ii=function(a,i,s,c,l,u,d){var m=a+(s^(i|~c))+(l>>>0)+d;return (m<<u|m>>>32-u)+i},o._blocksize=16,o._digestsize=16,Y$.exports=function(a,i){if(a==null)throw new Error("Illegal argument "+a);var s=e.wordsToBytes(o(a,i));return i&&i.asBytes?s:i&&i.asString?r.bytesToString(s):e.bytesToHex(s)};})();var _X=Y$.exports;const RX=fn(_X);var ti=1e3,ni=ti*60,ri=ni*60,ta=ri*24,TX=ta*7,MX=ta*365.25,NX=function(e,t){t=t||{};var n=typeof e;if(n==="string"&&e.length>0)return kX(e);if(n==="number"&&isFinite(e))return t.long?LX(e):AX(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function kX(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]),r=(t[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*MX;case"weeks":case"week":case"w":return n*TX;case"days":case"day":case"d":return n*ta;case"hours":case"hour":case"hrs":case"hr":case"h":return n*ri;case"minutes":case"minute":case"mins":case"min":case"m":return n*ni;case"seconds":case"second":case"secs":case"sec":case"s":return n*ti;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function AX(e){var t=Math.abs(e);return t>=ta?Math.round(e/ta)+"d":t>=ri?Math.round(e/ri)+"h":t>=ni?Math.round(e/ni)+"m":t>=ti?Math.round(e/ti)+"s":e+"ms"}function LX(e){var t=Math.abs(e);return t>=ta?Sl(e,t,ta,"day"):t>=ri?Sl(e,t,ri,"hour"):t>=ni?Sl(e,t,ni,"minute"):t>=ti?Sl(e,t,ti,"second"):e+" ms"}function Sl(e,t,n,r){var o=t>=n*1.5;return Math.round(e/n)+" "+r+(o?"s":"")}const Zs=fn(NX),jX=[46,47,18,2,53,8,23,32,15,50,10,31,58,3,45,35,27,43,5,49,33,9,42,19,29,28,14,39,12,38,41,13,37,48,7,16,24,55,40,61,26,17,0,1,60,51,30,4,22,25,54,21,56,59,6,63,57,62,11,36,20,34,44,52];function zX(e){let t="";return jX.forEach(n=>{t+=e[n];}),t.slice(0,32)}async function DX(e){const{img_key:t,sub_key:n}=await FX(),r=zX(t+n),o=Math.round(Date.now()/1e3),a=/[!'()*]/g;let i=[];e={...e,wts:o},Object.keys(e).sort().forEach(l=>{i.push(`${encodeURIComponent(l)}=${encodeURIComponent(e[l].toString().replace(a,""))}`);});const s=i.join("&"),c=RX(s+r);return {wts:o,w_rid:c}}let Qd,Jd,ef;async function FX(){const e=()=>la().format("YYYYMMDD");if(Qd&&Jd&&ef&&ef===e()&&Date.now()-Jd<=Zs("6h"))return Qd;const r=(await Tc.get("/x/web-interface/nav",{baseURL:o1})).data,o=r.data.wbi_img.img_url,a=r.data.wbi_img.sub_url,i={img_key:o.slice(o.lastIndexOf("/")+1,o.lastIndexOf(".")),sub_key:a.slice(a.lastIndexOf("/")+1,a.lastIndexOf("."))};return Qd=i,ef=e(),Jd=Date.now(),i}const Ln=Tc.create({baseURL:o1,withCredentials:!0});Ln.interceptors.request.use(async function(e){var t;return e.params||(e.params={}),(t=e.url)!=null&&t.includes("/wbi/")&&(e.params={...e.params,...await DX(e.params)}),e});function ca(e){return (e==null?void 0:e.code)===0&&(e==null?void 0:e.message)==="0"}const Gu=Tc.create({adapter:kx});Gu.interceptors.request.use(function(e){return e.params={appkey:I$,access_key:xt.accessKey||"",...e.params},e});Gu.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});async function J$(){var n;return ((n=(await Ln.get("https://member.bilibili.com/x/web/draft/list")).data.artlist)==null?void 0:n.drafts)||[]}async function $m(e){var a,i;const t=new URLSearchParams({title:"",banner_url:"",content:"",summary:"",words:"0",category:"15",tid:"0",reprint:"0",tags:"",image_urls:"",origin_image_urls:"",dynamic_intro:"",media_id:"0",spoiler:"0",original:"0",top_video_bvid:"",aid:"",csrf:Us(),...e}),n=(await Ln.post("/x/article/creative/draft/addupdate",t)).data,r=(i=(a=n==null?void 0:n.data)==null?void 0:a.aid)==null?void 0:i.toString(),o=ca(n);return o||St(n.message||"addupdate error"),{success:o,aid:r}}async function BX(e){var n;const t=(await Ln.get("/x/article/creative/draft/view",{params:{aid:e}})).data;return ((n=t==null?void 0:t.data)==null?void 0:n.content)||""}async function HX(){const t=(await J$()).find(i=>i.title===$n);if(!t){await $m({title:$n});return}const n=await BX(t.id),a=(new DOMParser().parseFromString(n,"text/html").body.textContent||"").trim();if(a)try{return JSON.parse(a)}catch{return}}async function WX(e){const n=(await J$()).find(i=>i.title===$n);let r="";if(n)r=n.id.toString();else {const{success:i,aid:s}=await $m({title:$n});if(!i)return !1;r=s;}const o=JSON.stringify(e),{success:a}=await $m({aid:r,title:$n,content:`<p>${o}</p>`,words:o.length.toString()});return a}const VX="_config-icon_1xtyf_1",KX="_settings-group_1xtyf_6",GX="_settings-group-title_1xtyf_9",UX="_settings-group-sub-title_1xtyf_14",XX="_settings-group-content_1xtyf_20",qX="_row_1xtyf_26",YX="_check_1xtyf_34",ZX="_setting-tabs_1xtyf_39",QX="_tab-pane_1xtyf_42",Fe={configIcon:VX,settingsGroup:KX,settingsGroupTitle:GX,settingsGroupSubTitle:UX,settingsGroupContent:XX,row:qX,check:YX,settingTabs:ZX,tabPane:QX};async function Hv(){St("即将刷新网页"),await mo(500),location.reload();}function JX(){return fq(),Hv()}let ew=!1;async function eq(){const e=await HX(),t=bg(e||{},tw);return Object.keys(t).length?(ew=!0,Cr({...t}),Hv()):St("备份不存在或没有有效的配置")}function $l(e,t,n){return on(e,r=>{if(Vu())return;xt[t]=!xt[t];const o=!xt[t];St(`已${o?"禁用":"启用"}「${n}」`);},{exactMatch:!0})}function tq({show:e,onHide:t}){const{filterMinPlayCount:n,filterMinPlayCountEnabled:r,filterMinDuration:o,filterMinDurationEnabled:a,filterOutGotoTypePicture:i}=xn();return $l(["shift.p"],"autoPreviewWhenKeyboardSelect","键盘选中后自动开始预览"),$l(["shift.m"],"autoPreviewWhenHover","鼠标悬浮后自动开始预览"),$l(["shift.c"],"useNarrowMode","居中模式"),$l(["shift.y"],"styleUseYoutubeLikeCard","大卡片样式"),Ce(jv,{show:e,onHide:t,hideWhenMaskOnClick:!0,hideWhenEsc:!0,styleModal:{width:900,maxHeight:"unset"},children:[Ce("div",{className:Ur.modalHeader,children:[Ce("div",{className:Ur.modalTitle,children:[z(Mt,{name:"Config",className:Fe.configIcon}),"设置项"]}),z("div",{className:"space",style:{flex:1}}),z(zv,{onClick:t})]}),z("main",{className:Ur.modalBody,style:{overflow:"hidden"},children:z(PB,{tabPosition:"left",size:"middle",defaultActiveKey:"basic",className:Fe.settingTabs,items:[{label:"常规设置",key:"basic",children:z(nq,{})},{label:"内容过滤",key:"filter",children:z("div",{className:Fe.tabPane,children:Ce("div",{className:Fe.settingsGroup,children:[Ce("div",{className:Fe.settingsGroupTitle,children:["内容过滤",z(Du,{iconProps:{name:"Tips"},tooltip:Ce(It,{children:["启用过滤会大幅降低加载速度, 谨慎开启! ",z("br",{}),"仅推荐类 Tab 生效"]})})]}),Ce("div",{className:V(Fe.settingsGroupContent),children:[z("div",{className:Fe.settingsGroupSubTitle,children:"视频"}),Ce("div",{className:Fe.row,children:[z(Sn,{configKey:"filterMinPlayCountEnabled",label:"按播放量过滤",tooltip:z(It,{children:"不显示播放量很少的视频"})}),z(am,{size:"small",min:1,step:1e3,value:n,onChange:s=>s&&Cr({filterMinPlayCount:s}),disabled:!r})]}),Ce("div",{className:Fe.row,style:{marginTop:3},children:[z(Sn,{configKey:"filterMinDurationEnabled",label:"按视频时长过滤",tooltip:z(It,{children:"不显示短视频"})}),z(am,{style:{width:150},size:"small",min:1,step:10,addonAfter:"单位:秒",value:o,onChange:s=>s&&Cr({filterMinDuration:s}),disabled:!a})]}),z(Sn,{className:Fe.row,style:{marginTop:3},configKey:"enableFilterForFollowedVideo",label:"对「已关注」的视频启用过滤",tooltip:z(It,{children:"默认不过滤「已关注」"})}),z("div",{className:Fe.settingsGroupSubTitle,children:"图文"}),z(Sn,{className:Fe.row,configKey:"filterOutGotoTypePicture",label:"启用图文(动态 & 专栏)过滤",tooltip:z(It,{children:"过滤掉图文推荐"})}),z(Sn,{className:Fe.row,disabled:!i,configKey:"enableFilterForFollowedPicture",label:"对「已关注」的图文启用过滤",tooltip:z(It,{children:"默认不过滤「已关注」"})})]})]})})},{label:"外观设置",key:"ui",children:z("div",{className:Fe.tabPane,children:Ce("div",{className:Fe.settingsGroup,children:[z("div",{className:Fe.settingsGroupTitle,style:{marginBottom:15},children:"样式自定义"}),Ce("div",{className:V(Fe.settingsGroupContent),children:[z("div",{className:Fe.row,children:z(Sn,{configKey:"styleUseYoutubeLikeCard",label:"视频卡片: 使用类似 YouTube 大卡片",tooltip:Ce(It,{children:["增加卡片大小, 增大卡片间距",z("br",{}),"仅「查看更多」弹窗 & 纯推荐模式可用",z("br",{}),"切换设置快捷键: ",z(Co,{color:"green",children:"shift+y"})]})})}),z("div",{className:Fe.row,style:{marginTop:5},children:z(Sn,{configKey:"styleUseStandardVideoSourceTab",label:"推荐源切换 Tab 按钮: 使用标准高度",tooltip:"默认紧凑高度"})})]})]})})},{label:"主题选择",key:"theme-select",children:z("div",{className:Fe.tabPane,children:Ce("div",{className:Fe.settingsGroup,children:[z("div",{className:Fe.settingsGroupTitle,style:{marginBottom:15},children:"主题选择"}),z("div",{className:V(Fe.settingsGroupContent),children:z(SK,{})})]})})},{label:"高级设置",key:"advance",children:z(aq,{})}]})})]})}function nq(){return Ce("div",{className:Fe.tabPane,children:[Ce("div",{className:Fe.settingsGroup,children:[Ce("div",{className:Fe.settingsGroupTitle,children:["access_key",z(Du,{iconProps:{name:"Help",size:18,style:{marginTop:6,marginLeft:5}},tooltip:Ce(It,{children:["用于「推荐」Tab",z("br",{}),"用于 获取推荐 / 提交不喜欢等操作"]})})]}),z("div",{className:V(Fe.settingsGroupContent),children:z("div",{className:Fe.row,style:{marginTop:5},children:z(W$,{})})})]}),Ce("div",{className:Fe.settingsGroup,children:[z("div",{className:Fe.settingsGroupTitle,children:"开关"}),Ce("div",{className:V(Fe.settingsGroupContent,Fe.row),children:[z(Sn,{configKey:"pureRecommend",label:"开启纯推荐模式",tooltip:Ce(It,{children:["首页只保留推荐",z("br",{}),"P.S 需要刷新网页~"]}),className:Fe.check,extraAction:Hv}),z(Sn,{configKey:"initialShowMore",label:"自动查看更多",tooltip:"打开首页时默认打开推荐弹窗",className:Fe.check,extraAction:e=>{e&&St("已开启自动查看更多: 下次打开首页时将直接展示推荐弹窗");}}),z(Sn,{configKey:"useNarrowMode",label:"启用居中模式",tooltip:Ce(It,{children:["居中两列",z("br",{}),"切换设置快捷键: ",z(Co,{color:"green",children:"shift+c"})]}),className:Fe.check})]})]}),Ce("div",{className:Fe.settingsGroup,children:[z("div",{className:Fe.settingsGroupTitle,children:"预览"}),Ce("div",{className:V(Fe.settingsGroupContent,Fe.row),children:[z(Sn,{configKey:"autoPreviewWhenKeyboardSelect",label:"键盘选中后自动开始预览",className:Fe.check,tooltip:Ce(It,{children:["手动预览快捷键: ",z(Co,{color:"green",children:"."})," or ",z(Co,{color:"green",children:"p"}),z("br",{}),"切换设置快捷键: ",z(Co,{color:"green",children:"shift+p"})]})}),z(Sn,{configKey:"autoPreviewWhenHover",label:"鼠标悬浮后自动开始预览",className:Fe.check,tooltip:Ce(It,{children:["鼠标悬浮后自动开始预览, 预览不再跟随鼠标位置 ",z("br",{}),"切换设置快捷键: ",z(Co,{color:"green",children:"shift+m"})]})})]})]}),Ce("div",{className:Fe.settingsGroup,children:[z("div",{className:Fe.settingsGroupTitle,children:"帮助"}),z("div",{className:V(Fe.settingsGroupContent),children:z("div",{className:Fe.row,children:Ce(Ls,{size:"small",children:[z(Xt,{href:"https://github.com/magicdawn/bilibili-app-recommend",target:"_blank",children:"GitHub 主页"}),z(Xt,{href:"http://greasyfork.icu/zh-CN/scripts/443530-bilibili-app-recommend",target:"_blank",children:"GreasyFork 主页"}),z(Xt,{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:"查看可用的快捷键"}),z(Xt,{href:"https://github.com/magicdawn/bilibili-app-recommend/blob/main/CHANGELOG.md",target:"_blank",children:"更新日志"}),z(Xt,{href:"https://afdian.net/a/magicdawn",target:"_blank",children:"用 ❤️ 发电"})]})})})]})]})}var rq={name:"1yvqi6w",styles:"display:flex;align-items:center;margin-right:15px"},oq={name:"1nwso5m",styles:".ant-checkbox-group-item{align-items:center;}"};function aq(){const e=U$(),{autoPreviewUpdateInterval:t}=xn();return z("div",{className:Fe.tabPane,children:Ce("div",{className:Fe.settingsGroup,children:[z("div",{className:Fe.settingsGroupTitle,children:"设置项"}),z("div",{className:V(Fe.settingsGroupContent),children:z("div",{className:Fe.row,children:z(fb,{title:"确定",description:"确定恢复默认设置? 该操作不可逆!",onConfirm:JX,children:z(Xt,{danger:!0,type:"primary",children:"恢复默认设置"})})})}),z("div",{className:Fe.settingsGroupTitle,style:{marginTop:15},children:"备份/恢复"}),Ce("div",{className:V(Fe.settingsGroupContent),children:[Ce("div",{className:Fe.row,children:[z(Sn,{configKey:"backupSettingsToArticleDraft",label:"备份设置到专栏草稿箱中",tooltip:`专栏 - 草稿箱 - ${$n}`}),Ce("a",{style:{marginLeft:15,display:"inline-flex",alignItems:"center"},href:"https://member.bilibili.com/platform/upload/text/draft",target:"_blank",children:[z(Mt,{name:"EfferentFour",size:16,style:{marginRight:4}}),"去草稿箱浏览"]})]}),z("div",{className:Fe.row,style:{marginTop:5},children:z(fb,{title:"确定",description:"将覆盖本地设置? 该操作不可逆!",onConfirm:eq,children:z(Xt,{danger:!0,type:"primary",children:"从专栏草稿箱中恢复"})})})]}),z("div",{className:Fe.settingsGroupTitle,style:{marginTop:15},children:"稍后再看 & 收藏"}),Ce("div",{className:V(Fe.settingsGroupContent),children:[z("div",{className:Fe.row,children:z(Sn,{configKey:"shuffleForWatchLater",label:"对「稍后再看」Tab 使用随机顺序",tooltip:z(It,{children:"不包括最近添加的「稍后再看」"})})}),z("div",{className:Fe.row,children:z(Sn,{configKey:"shuffleForFav",label:"对「收藏」Tab 使用随机顺序"})})]}),z("div",{className:Fe.settingsGroupTitle,style:{marginTop:15},children:"Tab 显示"}),Ce("div",{className:V(Fe.settingsGroupContent),children:[z("div",{className:Fe.row,children:z(Su.Group,{css:oq,options:qs.map(({label:n,key:r,icon:o,iconProps:a})=>({label:Ce("span",{css:rq,children:[z(Mt,{name:o,...a,size:(a==null?void 0:a.size)||18,css:Cm}),n]}),value:r})),value:e,onChange:n=>{if(!n.length)return St("至少选择一项!");Cr({showingTabKeys:n});}})}),z(Xt,{style:{marginTop:5},onClick:()=>{Cr({showingTabKeys:[]});},children:"重置"})]}),z("div",{className:Fe.settingsGroupTitle,style:{marginTop:15},children:"预览"}),Ce("div",{style:{width:"100%",display:"flex",alignItems:"center"},children:["自动预览更新间隔",z(nz,{style:{flex:1,margin:"0 15px"},min:0,max:1e3,keyboard:!0,onChange:n=>xt.autoPreviewUpdateInterval=n,value:t}),Ce("span",{style:{width:"65px"},children:["(",t,"ms)"]})]})]})})}const iq=vi.extend("settings"),Wv={accessKey:"",useNarrowMode:!1,initialShowMore:!1,pureRecommend:!1,autoPreviewWhenKeyboardSelect:!1,autoPreviewUpdateInterval:400,autoPreviewWhenHover:!1,theme:"",colorPickerThemeSelectedColor:"",shuffleForWatchLater:!0,shuffleForFav:!0,excludeFavFolderIds:[],filterMinPlayCountEnabled:!1,filterMinPlayCount:1e4,filterMinDurationEnabled:!1,filterMinDuration:60,enableFilterForFollowedVideo:!1,filterOutGotoTypePicture:!1,enableFilterForFollowedPicture:!1,styleUseYoutubeLikeCard:!1,styleUseStandardVideoSourceTab:!1,backupSettingsToArticleDraft:!1,showingTabKeys:[]},xt=yr({...Wv}),tw=Object.keys(Wv);function xn(){return $r(xt)}const sq=$n,nw=`${sq}.settings`;async function lq(){const e=await GM.getValue(nw);e&&typeof e=="object"&&Object.assign(xt,bg(e,tw)),_v(xt,()=>{uq();});}const cq=n1(WX,Zs("5s"));async function uq(){const e=fc(xt);await GM.setValue(nw,e),await dq(e);}async function dq(e){if(!e.backupSettingsToArticleDraft||ew)return;const t=e3(e,["accessKey"]);try{await cq(t),iq("backup to article draft complete");}catch(n){console.error(n.stack||n);}}function Cr(e){Object.assign(xt,e);}function fq(){return Cr(Wv)}await( lq());var rw={exports:{}};(function(e,t){(function(n,r){e.exports=r();})(Ra,function(){var n,r,o=1e3,a=6e4,i=36e5,s=864e5,c=/\[([^\]]+)]|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,l=31536e6,u=2628e6,d=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,m={years:l,months:u,days:s,hours:i,minutes:a,seconds:o,milliseconds:1,weeks:6048e5},g=function($){return $ instanceof x},v=function($,C,w){return new x($,w,C.$l)},h=function($){return r.p($)+"s"},p=function($){return $<0},b=function($){return p($)?Math.ceil($):Math.floor($)},y=function($){return Math.abs($)},S=function($,C){return $?p($)?{negative:!0,format:""+y($)+C}:{negative:!1,format:""+$+C}:{negative:!1,format:""}},x=function(){function $(w,O,_){var T=this;if(this.$d={},this.$l=_,w===void 0&&(this.$ms=0,this.parseFromMilliseconds()),O)return v(w*m[h(O)],this);if(typeof w=="number")return this.$ms=w,this.parseFromMilliseconds(),this;if(typeof w=="object")return Object.keys(w).forEach(function(R){T.$d[h(R)]=w[R];}),this.calMilliseconds(),this;if(typeof w=="string"){var I=w.match(d);if(I){var P=I.slice(2).map(function(R){return R!=null?Number(R):0});return this.$d.years=P[0],this.$d.months=P[1],this.$d.weeks=P[2],this.$d.days=P[3],this.$d.hours=P[4],this.$d.minutes=P[5],this.$d.seconds=P[6],this.calMilliseconds(),this}}return this}var C=$.prototype;return C.calMilliseconds=function(){var w=this;this.$ms=Object.keys(this.$d).reduce(function(O,_){return O+(w.$d[_]||0)*m[_]},0);},C.parseFromMilliseconds=function(){var w=this.$ms;this.$d.years=b(w/l),w%=l,this.$d.months=b(w/u),w%=u,this.$d.days=b(w/s),w%=s,this.$d.hours=b(w/i),w%=i,this.$d.minutes=b(w/a),w%=a,this.$d.seconds=b(w/o),w%=o,this.$d.milliseconds=w;},C.toISOString=function(){var w=S(this.$d.years,"Y"),O=S(this.$d.months,"M"),_=+this.$d.days||0;this.$d.weeks&&(_+=7*this.$d.weeks);var T=S(_,"D"),I=S(this.$d.hours,"H"),P=S(this.$d.minutes,"M"),R=this.$d.seconds||0;this.$d.milliseconds&&(R+=this.$d.milliseconds/1e3,R=Math.round(1e3*R)/1e3);var k=S(R,"S"),N=w.negative||O.negative||T.negative||I.negative||P.negative||k.negative,M=I.format||P.format||k.format?"T":"",L=(N?"-":"")+"P"+w.format+O.format+T.format+M+I.format+P.format+k.format;return L==="P"||L==="-P"?"P0D":L},C.toJSON=function(){return this.toISOString()},C.format=function(w){var O=w||"YYYY-MM-DDTHH:mm:ss",_={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 O.replace(c,function(T,I){return I||String(_[T])})},C.as=function(w){return this.$ms/m[h(w)]},C.get=function(w){var O=this.$ms,_=h(w);return _==="milliseconds"?O%=1e3:O=_==="weeks"?b(O/m[_]):this.$d[_],O||0},C.add=function(w,O,_){var T;return T=O?w*m[h(O)]:g(w)?w.$ms:v(w,this).$ms,v(this.$ms+T*(_?-1:1),this)},C.subtract=function(w,O){return this.add(w,O,!0)},C.locale=function(w){var O=this.clone();return O.$l=w,O},C.clone=function(){return v(this.$ms,this)},C.humanize=function(w){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!w)},C.valueOf=function(){return this.asMilliseconds()},C.milliseconds=function(){return this.get("milliseconds")},C.asMilliseconds=function(){return this.as("milliseconds")},C.seconds=function(){return this.get("seconds")},C.asSeconds=function(){return this.as("seconds")},C.minutes=function(){return this.get("minutes")},C.asMinutes=function(){return this.as("minutes")},C.hours=function(){return this.get("hours")},C.asHours=function(){return this.as("hours")},C.days=function(){return this.get("days")},C.asDays=function(){return this.as("days")},C.weeks=function(){return this.get("weeks")},C.asWeeks=function(){return this.as("weeks")},C.months=function(){return this.get("months")},C.asMonths=function(){return this.as("months")},C.years=function(){return this.get("years")},C.asYears=function(){return this.as("years")},$}(),E=function($,C,w){return $.add(C.years()*w,"y").add(C.months()*w,"M").add(C.days()*w,"d").add(C.hours()*w,"h").add(C.minutes()*w,"m").add(C.seconds()*w,"s").add(C.milliseconds()*w,"ms")};return function($,C,w){n=w,r=w().$utils(),w.duration=function(T,I){var P=w.locale();return v(T,{$l:P},I)},w.isDuration=g;var O=C.prototype.add,_=C.prototype.subtract;C.prototype.add=function(T,I){return g(T)?E(this,T,1):O.bind(this)(T,I)},C.prototype.subtract=function(T,I){return g(T)?E(this,T,-1):_.bind(this)(T,I)};}});})(rw);var mq=rw.exports;const gq=fn(mq);var Uu,P0=Q0;Uu=P0.createRoot,P0.hydrateRoot;function Vv(e){const t=yr({data:Array.from(new Set(e)),has(n){return this.data.indexOf(n)!==-1},add(n){let r=!1;return typeof n=="object"&&n!==null&&(r=this.data.indexOf(yr(n))!==-1),this.data.indexOf(n)===-1&&!r&&this.data.push(n),this},delete(n){const r=this.data.indexOf(n);return r===-1?!1:(this.data.splice(r,1),!0)},clear(){this.data.splice(0);},get size(){return this.data.length},forEach(n){this.data.forEach(r=>{n(r,r,this);});},get[Symbol.toStringTag](){return "Set"},toJSON(){return new Set(this.data)},[Symbol.iterator](){return this.data[Symbol.iterator]()},values(){return this.data.values()},keys(){return this.data.values()},entries(){return new Set(this.data).entries()}});return Object.defineProperties(t,{data:{enumerable:!1},size:{enumerable:!1},toJSON:{enumerable:!1}}),Object.seal(t),t}function vq(e){const t=yr({data:Array.from(e||[]),has(n){return this.data.some(r=>r[0]===n)},set(n,r){const o=this.data.find(a=>a[0]===n);return o?o[1]=r:this.data.push([n,r]),this},get(n){var r;return (r=this.data.find(o=>o[0]===n))==null?void 0:r[1]},delete(n){const r=this.data.findIndex(o=>o[0]===n);return r===-1?!1:(this.data.splice(r,1),!0)},clear(){this.data.splice(0);},get size(){return this.data.length},toJSON(){return new Map(this.data)},forEach(n){this.data.forEach(r=>{n(r[1],r[0],this);});},keys(){return this.data.map(n=>n[0]).values()},values(){return this.data.map(n=>n[1]).values()},entries(){return new Map(this.data).entries()},get[Symbol.toStringTag](){return "Map"},[Symbol.iterator](){return this.entries()}});return Object.defineProperties(t,{data:{enumerable:!1},size:{enumerable:!1},toJSON:{enumerable:!1}}),Object.seal(t),t}var hr,Vt,tn,So,ps,$o,bs,wm,rr,Or,Pc,ow,ys,xm,Cs,Em,Ss,Om,_c,aw,$s,Im;class hq extends Map{constructor(n={}){super();Dn(this,bs);Dn(this,rr);Dn(this,Pc);Dn(this,ys);Dn(this,Cs);Dn(this,Ss);Dn(this,_c);Dn(this,$s);Dn(this,hr,0);Dn(this,Vt,new Map);Dn(this,tn,new Map);Dn(this,So,void 0);Dn(this,ps,void 0);Dn(this,$o,void 0);if(!(n.maxSize&&n.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if(typeof n.maxAge=="number"&&n.maxAge===0)throw new TypeError("`maxAge` must be a number greater than 0");_n(this,So,n.maxSize),_n(this,ps,n.maxAge||Number.POSITIVE_INFINITY),_n(this,$o,n.onEviction);}get __oldCache(){return tt(this,tn)}get(n){if(tt(this,Vt).has(n)){const r=tt(this,Vt).get(n);return Zt(this,ys,xm).call(this,n,r)}if(tt(this,tn).has(n)){const r=tt(this,tn).get(n);if(Zt(this,rr,Or).call(this,n,r)===!1)return Zt(this,_c,aw).call(this,n,r),r.value}}set(n,r,{maxAge:o=tt(this,ps)}={}){const a=typeof o=="number"&&o!==Number.POSITIVE_INFINITY?Date.now()+o:void 0;return tt(this,Vt).has(n)?tt(this,Vt).set(n,{value:r,expiry:a}):Zt(this,Ss,Om).call(this,n,{value:r,expiry:a}),this}has(n){return tt(this,Vt).has(n)?!Zt(this,rr,Or).call(this,n,tt(this,Vt).get(n)):tt(this,tn).has(n)?!Zt(this,rr,Or).call(this,n,tt(this,tn).get(n)):!1}peek(n){if(tt(this,Vt).has(n))return Zt(this,Cs,Em).call(this,n,tt(this,Vt));if(tt(this,tn).has(n))return Zt(this,Cs,Em).call(this,n,tt(this,tn))}delete(n){const r=tt(this,Vt).delete(n);return r&&sd(this,hr)._--,tt(this,tn).delete(n)||r}clear(){tt(this,Vt).clear(),tt(this,tn).clear(),_n(this,hr,0);}resize(n){if(!(n&&n>0))throw new TypeError("`maxSize` must be a number greater than 0");const r=[...Zt(this,$s,Im).call(this)],o=r.length-n;o<0?(_n(this,Vt,new Map(r)),_n(this,tn,new Map),_n(this,hr,r.length)):(o>0&&Zt(this,bs,wm).call(this,r.slice(0,o)),_n(this,tn,new Map(r.slice(o))),_n(this,Vt,new Map),_n(this,hr,0)),_n(this,So,n);}*keys(){for(const[n]of this)yield n;}*values(){for(const[,n]of this)yield n;}*[Symbol.iterator](){for(const n of tt(this,Vt)){const[r,o]=n;Zt(this,rr,Or).call(this,r,o)===!1&&(yield [r,o.value]);}for(const n of tt(this,tn)){const[r,o]=n;tt(this,Vt).has(r)||Zt(this,rr,Or).call(this,r,o)===!1&&(yield [r,o.value]);}}*entriesDescending(){let n=[...tt(this,Vt)];for(let r=n.length-1;r>=0;--r){const o=n[r],[a,i]=o;Zt(this,rr,Or).call(this,a,i)===!1&&(yield [a,i.value]);}n=[...tt(this,tn)];for(let r=n.length-1;r>=0;--r){const o=n[r],[a,i]=o;tt(this,Vt).has(a)||Zt(this,rr,Or).call(this,a,i)===!1&&(yield [a,i.value]);}}*entriesAscending(){for(const[n,r]of Zt(this,$s,Im).call(this))yield [n,r.value];}get size(){if(!tt(this,hr))return tt(this,tn).size;let n=0;for(const r of tt(this,tn).keys())tt(this,Vt).has(r)||n++;return Math.min(tt(this,hr)+n,tt(this,So))}get maxSize(){return tt(this,So)}entries(){return this.entriesAscending()}forEach(n,r=this){for(const[o,a]of this.entriesAscending())n.call(r,a,o,this);}get[Symbol.toStringTag](){return JSON.stringify([...this.entriesAscending()])}}hr=new WeakMap,Vt=new WeakMap,tn=new WeakMap,So=new WeakMap,ps=new WeakMap,$o=new WeakMap,bs=new WeakSet,wm=function(n){if(typeof tt(this,$o)=="function")for(const[r,o]of n)tt(this,$o).call(this,r,o.value);},rr=new WeakSet,Or=function(n,r){return typeof r.expiry=="number"&&r.expiry<=Date.now()?(typeof tt(this,$o)=="function"&&tt(this,$o).call(this,n,r.value),this.delete(n)):!1},Pc=new WeakSet,ow=function(n,r){if(Zt(this,rr,Or).call(this,n,r)===!1)return r.value},ys=new WeakSet,xm=function(n,r){return r.expiry?Zt(this,Pc,ow).call(this,n,r):r.value},Cs=new WeakSet,Em=function(n,r){const o=r.get(n);return Zt(this,ys,xm).call(this,n,o)},Ss=new WeakSet,Om=function(n,r){tt(this,Vt).set(n,r),sd(this,hr)._++,tt(this,hr)>=tt(this,So)&&(_n(this,hr,0),Zt(this,bs,wm).call(this,tt(this,tn)),_n(this,tn,tt(this,Vt)),_n(this,Vt,new Map));},_c=new WeakSet,aw=function(n,r){tt(this,tn).delete(n),Zt(this,Ss,Om).call(this,n,r);},$s=new WeakSet,Im=function*(){for(const n of tt(this,tn)){const[r,o]=n;tt(this,Vt).has(r)||Zt(this,rr,Or).call(this,r,o)===!1&&(yield n);}for(const n of tt(this,Vt)){const[r,o]=n;Zt(this,rr,Or).call(this,r,o)===!1&&(yield n);}};async function pq(e){return (await Ln.get("/x/player/videoshot",{params:{aid:e,index:"1"}})).data.data}async function bq(e){return []}const tf=new hq({maxSize:1e3});async function yq(e){if(tf.has(e))return tf.get(e);const[t,n]=await Promise.all([pq(e),bq()]);return tf.set(e,{pvideoData:t,dmData:n}),{pvideoData:t,dmData:n}}function iw(e){return async function(n){const r=new URLSearchParams({aid:n,csrf:Us()}),a=(await Ln.post("/x/v2/history/toview/"+e,r)).data,i=ca(a);return i||St((a==null?void 0:a.message)||"出错了"),i}}const wl=iw("add"),_0=iw("del"),sw=e=>{const t={dislike:"/x/feed/dislike",cancel:"/x/feed/dislike/cancel"}[e];return async function(n,r){const a=(await Gu.get(a1+t,{params:{goto:n.goto,id:n.param,reason_id:r,build:"1",mobi_app:"android",idx:(Date.now()/1e3).toFixed(0)}})).data;return ca(a)}},Cq=sw("dislike"),Sq=sw("cancel"),$q="_modal_1rloz_1",wq="_title-desc_1rloz_4",xq="_reason-list_1rloz_8",Eq="_reason_1rloz_8",Oq="_active_1rloz_29",Iq="_reason-no_1rloz_33",Pq="_tips-container_1rloz_47",_q="_tips_1rloz_47",vr={modal:$q,titleDesc:wq,reasonList:xq,reason:Eq,active:Oq,reasonNo:Iq,tipsContainer:Pq,tips:_q},Xu=vq();function Rq(){return $r(Xu)}function Tq(e){const t=Rq();if(e)return t.get(e)}function Mq({show:e,onHide:t,item:n}){const[r,o]=f.useState(!1),a=nt(async g=>{if(!n)return;let v=!1,h;try{o(!0),v=await Cq(n,g.id);}catch(p){h=p;}finally{o(!1);}if(h)return console.error(h.stack||h),E$();v?St("已标记不想看"):O$(),v&&(Xu.set(n.param,{...g}),t());}),i=f.useMemo(()=>{var g;return ((g=n==null?void 0:n.three_point)==null?void 0:g.dislike_reasons)||[]},[n]),s=()=>!!e&&!!n,c=["1","2","3","4","5","6"];on(c,g=>{if(!s()||!c.includes(g.key))return;const v=Number(g.key)-1;u(v);const h=document.querySelectorAll(`.${vr.reason}`)[v]||null;h==null||h.click();});const[l,u]=f.useState(i.length-1);zU(()=>{u(i.length-1);},[i]);const d=g=>()=>{if(!s())return;const v=l+g;v<0||v>i.length-1||u(v);};on("leftarrow",d(-1),{exactMatch:!0}),on("rightarrow",d(1),{exactMatch:!0}),on("uparrow",d(-2),{exactMatch:!0}),on("downarrow",d(2),{exactMatch:!0}),on("enter",g=>{var v;s()&&(l<0||l>i.length-1||(g.preventDefault(),g.stopImmediatePropagation(),(v=document.querySelector(`.${vr.reason}.${vr.active}`))==null||v.click()));},{exactMatch:!0});const m=f.useMemo(()=>{var g;return ((g=i[l])==null?void 0:g.name)||""},[i,l]);return Ce(jv,{show:e,onHide:t,clsModal:vr.modal,hideWhenMaskOnClick:!0,hideWhenEsc:!0,children:[Ce("div",{className:Ur.modalHeader,children:[Ce("div",{className:Ur.modalTitle,children:["我不想看",z("span",{className:vr.titleDesc,children:"(选择后将减少相似内容推荐)"})]}),z("div",{className:"space",style:{flex:1}}),z(zv,{onClick:t})]}),Ce("div",{className:Ur.modalBody,children:[z("div",{className:vr.reasonList,children:i.map((g,v)=>Ce("button",{className:V(vr.reason,{[vr.active]:v===l}),style:{...v===l&&{borderColor:fo}},"data-id":g.id,onClick:()=>{u(v),a(g);},disabled:r,children:[z("span",{className:vr.reasonNo,style:{backgroundColor:fo},children:v+1}),g.name]},g.id))}),Ce("div",{className:vr.tipsContainer,children:[Ce("div",{className:vr.tips,children:[z(Mt,{name:"Info",size:15,style:{marginRight:5}}),"使用删除键打开弹窗, 数字键选择, Esc 关闭"]}),m&&Ce("div",{className:vr.tips,children:[z(Mt,{name:"Info",size:15,style:{marginRight:5}}),"已选择「",m,"」, 回车键提交"]})]})]})]})}const Wl={show:!1,onHide:cw,item:null},lw=yr({value:Wl.show}),Nq=function(){return $r(lw).value};function cw(){setTimeout(()=>{uw({show:!1,item:null});});}function uw(e){Object.assign(Wl,e),lw.value=Wl.show,kq().render(z(Mq,{...Wl,onHide:cw}));}let R0;function kq(){return R0||(R0=(()=>{const e=document.createElement("div");return e.classList.add("show-dislike-container"),document.body.appendChild(e),Uu(e)})()),R0}function Aq(e){e!=null&&e.param&&Xu.has(e.param)||uw({show:!0,item:e});}var Lq={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};const jq=Lq;var zq=function(t,n){return f__namespace.createElement(En,Oe({},t,{ref:n,icon:jq}))};const yc=f__namespace.forwardRef(zq);const dw=f__namespace.createContext({});var Dq=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 Fq=e=>{const{prefixCls:t,className:n,dashed:r}=e,o=Dq(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=f__namespace.useContext(Xe),i=a("menu",t),s=V({[`${i}-item-divider-dashed`]:!!r},n);return f__namespace.createElement(vv,Object.assign({className:s},o))},fw=Fq,Bq=f.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Cc=Bq,Hq=e=>{var t;const{className:n,children:r,icon:o,title:a,danger:i}=e,{prefixCls:s,firstLevel:c,direction:l,disableMenuItemTitleTooltip:u,inlineCollapsed:d}=f__namespace.useContext(Cc),m=y=>{const S=f__namespace.createElement("span",{className:`${s}-title-content`},r);return (!o||co(r)&&r.type==="span")&&r&&y&&c&&typeof r=="string"?f__namespace.createElement("div",{className:`${s}-inline-collapsed-noicon`},r.charAt(0)):S},{siderCollapsed:g}=f__namespace.useContext(dw);let v=a;typeof a>"u"?v=c?r:"":a===!1&&(v="");const h={title:v};!g&&!d&&(h.title=null,h.open=!1);const p=ir(r).length;let b=f__namespace.createElement(Ds,Object.assign({},An(e,["title","icon","danger"]),{className:V({[`${s}-item-danger`]:i,[`${s}-item-only-child`]:(o?p+1:p)===1},n),title:typeof a=="string"?a:void 0}),Wn(o,{className:V(co(o)?(t=o.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),m(d));return u||(b=f__namespace.createElement(Ts,Object.assign({},h,{placement:l==="rtl"?"left":"right",overlayClassName:`${s}-inline-collapsed-tooltip`}),b)),b},mw=Hq,Wq=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:a}=e,i=f__namespace.useContext(Cc),{prefixCls:s,inlineCollapsed:c,theme:l}=i,u=yi();let d;if(!r)d=c&&!u.length&&o&&typeof o=="string"?f__namespace.createElement("div",{className:`${s}-inline-collapsed-noicon`},o.charAt(0)):f__namespace.createElement("span",{className:`${s}-title-content`},o);else {const g=co(o)&&o.type==="span";d=f__namespace.createElement(f__namespace.Fragment,null,Wn(r,{className:V(co(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),g?o:f__namespace.createElement("span",{className:`${s}-title-content`},o));}const m=f__namespace.useMemo(()=>Object.assign(Object.assign({},i),{firstLevel:!1}),[i]);return f__namespace.createElement(Cc.Provider,{value:m},f__namespace.createElement(Tu,Object.assign({},An(e,["icon"]),{title:d,popupClassName:V(s,n,`${s}-${a||l}`)})))},gw=Wq;var Vq=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 Pm(e){return (e||[]).map((t,n)=>{if(t&&typeof t=="object"){const r=t,{label:o,children:a,key:i,type:s}=r,c=Vq(r,["label","children","key","type"]),l=i??`tmp-${n}`;return a||s==="group"?s==="group"?f__namespace.createElement(Mu,Object.assign({key:l},c,{title:o}),Pm(a)):f__namespace.createElement(gw,Object.assign({key:l},c,{title:o}),Pm(a)):s==="divider"?f__namespace.createElement(fw,Object.assign({key:l},c)):f__namespace.createElement(mw,Object.assign({key:l},c),o)}return null}).filter(t=>t)}function Kq(e){return f__namespace.useMemo(()=>e&&Pm(e),[e])}var Gq=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Sc=f__namespace.createContext(null),Uq=f__namespace.forwardRef((e,t)=>{const{children:n}=e,r=Gq(e,["children"]),o=f__namespace.useContext(Sc),a=f__namespace.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable]),i=$L(n),s=aa(t,i?n.ref:null);return f__namespace.createElement(Sc.Provider,{value:a},f__namespace.createElement(Ua,null,i?f__namespace.cloneElement(n,{ref:s}):n))}),Xq=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:a,lineType:i,itemPaddingInline:s}=e;return {[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${a}px ${i} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${t}-item:hover,
        > ${t}-item-active,
        > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},qq=Xq,Yq=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})`}}}}},Zq=Yq,T0=e=>Object.assign({},Jo(e)),Qq=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:a,itemBg:i,subMenuItemBg:s,itemSelectedBg:c,activeBarHeight:l,activeBarWidth:u,activeBarBorderWidth:d,motionDurationSlow:m,motionEaseInOut:g,motionEaseOut:v,itemPaddingInline:h,motionDurationMid:p,itemHoverColor:b,lineType:y,colorSplit:S,itemDisabledColor:x,dangerItemColor:E,dangerItemHoverColor:$,dangerItemSelectedColor:C,dangerItemActiveBg:w,dangerItemSelectedBg:O,itemHoverBg:_,itemActiveBg:T,menuSubMenuBg:I,horizontalItemSelectedColor:P,horizontalItemSelectedBg:R,horizontalItemBorderRadius:k,horizontalItemHoverBg:N,popupBg:M}=e;return {[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:i,[`&${n}-root:focus-visible`]:Object.assign({},T0(e)),[`${n}-item-group-title`]:{color:a},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${x} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:b}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:_},"&:active":{backgroundColor:T}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:_},"&:active":{backgroundColor:T}}},[`${n}-item-danger`]:{color:E,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:$}},[`&${n}-item:active`]:{background:w}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:C},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:O}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},T0(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:I},[`&${n}-popup > ${n}`]:{backgroundColor:M},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:-d,marginBottom:0,borderRadius:k,"&::after":{position:"absolute",insetInline:h,bottom:0,borderBottom:`${l}px solid transparent`,transition:`border-color ${m} ${g}`,content:'""'},"&:hover, &-active, &-open":{background:N,"&::after":{borderBottomWidth:l,borderBottomColor:P}},"&-selected":{color:P,backgroundColor:R,"&:hover":{backgroundColor:R},"&::after":{borderBottomWidth:l,borderBottomColor:P}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${d}px ${y} ${S}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item, ${n}-submenu-title`]:d&&u?{width:`calc(100% + ${d}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${u}px solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${p} ${v}`,`opacity ${p} ${v}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:C}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${p} ${g}`,`opacity ${p} ${g}`].join(",")}}}}}},M0=Qq,N0=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:a,marginXS:i,itemMarginBlock:s}=e,c=o+a+i;return {[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`,paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:`calc(100% - ${r*2}px)`},[`> ${t}-item,
            > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`},[`${t}-item-group-list ${t}-submenu-title,
            ${t}-submenu-title`]:{paddingInlineEnd:c}}},Jq=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:a,controlHeightLG:i,motionDurationMid:s,motionEaseOut:c,paddingXL:l,itemMarginInline:u,fontSizeLG:d,motionDurationSlow:m,paddingXS:g,boxShadowSecondary:v,collapsedWidth:h,collapsedIconSize:p}=e,b={height:r,lineHeight:`${r}px`,listStylePosition:"inside",listStyleType:"disc"};return [{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},N0(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},N0(e)),{boxShadow:v})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${i*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${m}`,`background ${m}`,`padding ${s} ${c}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:b,[`& ${t}-item-group-title`]:{paddingInlineStart:l}},[`${t}-item`]:b}},{[`${t}-inline-collapsed`]:{width:h,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item,
          > ${t}-item-group > ${t}-item-group-list > ${t}-item,
          > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
          > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${d/2}px - ${u}px)`,textOverflow:"clip",[`
            ${t}-submenu-arrow,
            ${t}-submenu-expand-icon
          `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:p,lineHeight:`${r}px`,"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},Qo),{paddingInline:g})}}]},eY=Jq,k0=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:a,iconCls:i,iconSize:s,iconMarginInlineEnd:c}=e;return {[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding ${n} ${o}`].join(","),[`${t}-item-icon, ${i}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${a}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},ia()),[`&${t}-item-only-child`]:{[`> ${i}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},A0=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:a,menuArrowOffset:i}=e;return {[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:a,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:a*.6,height:a*.15,backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${i})`},"&::after":{transform:`rotate(-45deg) translateY(${i})`}}}}},tY=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:a,motionEaseInOut:i,paddingXS:s,padding:c,colorSplit:l,lineWidth:u,zIndexPopup:d,borderRadiusLG:m,subMenuItemBorderRadius:g,menuArrowSize:v,menuArrowOffset:h,lineType:p,menuPanelMaskInset:b,groupTitleLineHeight:y,groupTitleFontSize:S}=e;return [{"":{[`${n}`]:Object.assign(Object.assign({},Tf()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Nt(e)),Tf()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${s}px ${c}px`,fontSize:S,lineHeight:y,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${i}`,`background ${o} ${i}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${i}`,`background ${o} ${i}`,`padding ${a} ${i}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${i}`,`padding ${o} ${i}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`,[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:l,borderStyle:p,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),k0(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:d,borderRadius:m,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${b}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:b},"\n          &-placement-leftTop,\n          &-placement-bottomRight,\n          ":{transformOrigin:"100% 0"},"\n          &-placement-leftBottom,\n          &-placement-topRight,\n          ":{transformOrigin:"100% 100%"},"\n          &-placement-rightBottom,\n          &-placement-topLeft,\n          ":{transformOrigin:"0 100%"},"\n          &-placement-bottomLeft,\n          &-placement-rightTop,\n          ":{transformOrigin:"0 0"},"\n          &-placement-leftTop,\n          &-placement-leftBottom\n          ":{paddingInlineEnd:e.paddingXS},"\n          &-placement-rightTop,\n          &-placement-rightBottom\n          ":{paddingInlineStart:e.paddingXS},"\n          &-placement-topRight,\n          &-placement-topLeft\n          ":{paddingBottom:e.paddingXS},"\n          &-placement-bottomRight,\n          &-placement-bottomLeft\n          ":{paddingTop:e.paddingXS},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:m},k0(e)),A0(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:g},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${i}`}})}}),A0(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
        &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${h})`},"&::after":{transform:`rotate(45deg) translateX(-${h})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${v*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${h})`},"&::before":{transform:`rotate(45deg) translateX(${h})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},nY=(e,t)=>Dt("Menu",r=>{if(t===!1)return [];const{colorBgElevated:o,colorPrimary:a,colorTextLightSolid:i,controlHeightLG:s,fontSize:c,darkItemColor:l,darkDangerItemColor:u,darkItemBg:d,darkSubMenuItemBg:m,darkItemSelectedColor:g,darkItemSelectedBg:v,darkDangerItemSelectedBg:h,darkItemHoverBg:p,darkGroupTitleColor:b,darkItemHoverColor:y,darkItemDisabledColor:S,darkDangerItemHoverColor:x,darkDangerItemSelectedColor:E,darkDangerItemActiveBg:$}=r,C=c/7*5,w=gt(r,{menuArrowSize:C,menuHorizontalHeight:s*1.15,menuArrowOffset:`${C*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:o}),O=gt(w,{itemColor:l,itemHoverColor:y,groupTitleColor:b,itemSelectedColor:g,itemBg:d,popupBg:d,subMenuItemBg:m,itemActiveBg:"transparent",itemSelectedBg:v,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:p,itemDisabledColor:S,dangerItemColor:u,dangerItemHoverColor:x,dangerItemSelectedColor:E,dangerItemActiveBg:$,dangerItemSelectedBg:h,menuSubMenuBg:m,horizontalItemSelectedColor:i,horizontalItemSelectedBg:a});return [tY(w),qq(w),eY(w),M0(w,"light"),M0(O,"dark"),Zq(w),mC(w),_o(w,"slide-up"),_o(w,"slide-down"),pu(w,"zoom-big")]},r=>{const{colorPrimary:o,colorError:a,colorTextDisabled:i,colorErrorBg:s,colorText:c,colorTextDescription:l,colorBgContainer:u,colorFillAlter:d,colorFillContent:m,lineWidth:g,lineWidthBold:v,controlItemBgActive:h,colorBgTextHover:p,controlHeightLG:b,lineHeight:y,colorBgElevated:S,marginXXS:x,padding:E,fontSize:$,controlHeightSM:C,fontSizeLG:w,colorTextLightSolid:O,colorErrorHover:_}=r,T=new qt(O).setAlpha(.65).toRgbString();return {dropdownWidth:160,zIndexPopup:r.zIndexPopupBase+50,radiusItem:r.borderRadiusLG,itemBorderRadius:r.borderRadiusLG,radiusSubMenuItem:r.borderRadiusSM,subMenuItemBorderRadius:r.borderRadiusSM,colorItemText:c,itemColor:c,colorItemTextHover:c,itemHoverColor:c,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:l,groupTitleColor:l,colorItemTextSelected:o,itemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:u,itemBg:u,colorItemBgHover:p,itemHoverBg:p,colorItemBgActive:m,itemActiveBg:h,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:h,itemSelectedBg:h,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:v,activeBarHeight:v,colorActiveBarBorderSize:g,activeBarBorderWidth:g,colorItemTextDisabled:i,itemDisabledColor:i,colorDangerItemText:a,dangerItemColor:a,colorDangerItemTextHover:a,dangerItemHoverColor:a,colorDangerItemTextSelected:a,dangerItemSelectedColor:a,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:r.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:b,groupTitleLineHeight:y,collapsedWidth:b*2,popupBg:S,itemMarginBlock:x,itemPaddingInline:E,horizontalLineHeight:`${b*1.15}px`,iconSize:$,iconMarginInlineEnd:C-$,collapsedIconSize:w,groupTitleFontSize:$,darkItemDisabledColor:new qt(O).setAlpha(.25).toRgbString(),darkItemColor:T,darkDangerItemColor:a,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:O,darkItemSelectedBg:o,darkDangerItemSelectedBg:a,darkItemHoverBg:"transparent",darkGroupTitleColor:T,darkItemHoverColor:O,darkDangerItemHoverColor:_,darkDangerItemSelectedColor:O,darkDangerItemActiveBg:a}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(e);var rY=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.forwardRef((e,t)=>{var n,r;const o=f__namespace.useContext(Sc),a=o||{},{getPrefixCls:i,getPopupContainer:s,direction:c,menu:l}=f__namespace.useContext(Xe),u=i(),{prefixCls:d,className:m,style:g,theme:v="light",expandIcon:h,_internalDisableMenuItemTitleTooltip:p,inlineCollapsed:b,siderCollapsed:y,items:S,children:x,rootClassName:E,mode:$,selectable:C,onClick:w,overflowedIndicatorPopupClassName:O}=e,_=rY(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),T=An(_,["collapsedWidth"]),I=Kq(S)||x;(n=a.validator)===null||n===void 0||n.call(a,{mode:$});const P=Mn(function(){var H;w==null||w.apply(void 0,arguments),(H=a.onClick)===null||H===void 0||H.call(a);}),R=a.mode||$,k=C??a.selectable,N=f__namespace.useMemo(()=>y!==void 0?y:b,[b,y]),M={horizontal:{motionName:`${u}-slide-up`},inline:sC(u),other:{motionName:`${u}-zoom-big`}},L=i("menu",d||a.prefixCls),[j,F]=nY(L,!o),K=V(`${L}-${v}`,l==null?void 0:l.className,m);let B;if(typeof h=="function")B=h;else if(h===null||h===!1)B=null;else if(a.expandIcon===null||a.expandIcon===!1)B=null;else {const H=h??a.expandIcon;B=Wn(H,{className:V(`${L}-submenu-expand-icon`,co(H)?(r=H.props)===null||r===void 0?void 0:r.className:"")});}const W=f__namespace.useMemo(()=>({prefixCls:L,inlineCollapsed:N||!1,direction:c,firstLevel:!0,theme:v,mode:R,disableMenuItemTitleTooltip:p}),[L,N,c,p,v]);return j(f__namespace.createElement(Sc.Provider,{value:null},f__namespace.createElement(Cc.Provider,{value:W},f__namespace.createElement(Ci,Object.assign({getPopupContainer:s,overflowedIndicator:f__namespace.createElement(cv,null),overflowedIndicatorPopupClassName:V(L,`${L}-${v}`,O),mode:R,selectable:k,onClick:P},T,{inlineCollapsed:N,style:Object.assign(Object.assign({},l==null?void 0:l.style),g),className:K,prefixCls:L,direction:c,defaultMotions:M,expandIcon:B,ref:t,rootClassName:V(E,F)}),I))))}),aY=oY,Qs=f.forwardRef((e,t)=>{const n=f.useRef(null),r=f__namespace.useContext(dw);return f.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{var a;(a=n.current)===null||a===void 0||a.focus(o);}})),f__namespace.createElement(aY,Object.assign({ref:n},e,r))});Qs.Item=mw;Qs.SubMenu=gw;Qs.Divider=fw;Qs.ItemGroup=Mu;const iY=Qs,sY=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,a=`${n}-item`;return {[`${t}, ${t}-menu-submenu`]:{[`${n} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},lY=sY,cY=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:a,antCls:i,iconCls:s,motionDurationMid:c,dropdownPaddingVertical:l,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:m,fontSizeIcon:g,controlPaddingHorizontal:v,colorBgElevated:h}=e;return [{[t]:Object.assign(Object.assign({},Nt(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:-o+a/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${i}-btn`]:{[`& > ${s}-down, & > ${i}-btn-icon > ${s}-down`]:{fontSize:g}},[`${t}-wrap`]:{position:"relative",[`${i}-btn > ${s}-down`]:{fontSize:g},[`${s}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n        &-hidden,\n        &-menu-hidden,\n        &-menu-submenu-hidden\n      ":{display:"none"},[`&${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomLeft,
          &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomLeft,
          &${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottom,
          &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottom,
          &${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomRight,
          &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:Bg},[`&${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topLeft,
          &${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topLeft,
          &${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-top,
          &${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-top,
          &${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topRight,
          &${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Wg},[`&${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomLeft,
          &${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottom,
          &${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Hg},[`&${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topLeft,
          &${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-top,
          &${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Vg}})},Dg(e,{colorBg:h,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:{[n]:Object.assign(Object.assign({padding:d,listStyleType:"none",backgroundColor:h,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},ea(e)),{[`${n}-item-group-title`]:{padding:`${l}px ${v}px`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${l}px ${v}px`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},ea(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:m,cursor:"not-allowed","&:hover":{color:m,backgroundColor:h,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${e.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:g,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:h,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[_o(e,"slide-up"),_o(e,"slide-down"),oc(e,"move-up"),oc(e,"move-down"),pu(e,"zoom-big")]]},vw=Dt("Dropdown",(e,t)=>{let{rootPrefixCls:n}=t;const{marginXXS:r,sizePopupArrow:o,controlHeight:a,fontSize:i,lineHeight:s,paddingXXS:c,componentCls:l,borderRadiusLG:u}=e,d=(a-i*s)/2,{dropdownArrowOffset:m}=zg({contentRadius:u}),g=gt(e,{menuCls:`${l}-menu`,rootPrefixCls:n,dropdownArrowDistance:o/2+r,dropdownArrowOffset:m,dropdownPaddingVertical:d,dropdownEdgeChildPadding:c});return [cY(g),lY(g)]},e=>({zIndexPopup:e.zIndexPopupBase+50})),Kv=e=>{const{menu:t,arrow:n,prefixCls:r,children:o,trigger:a,disabled:i,dropdownRender:s,getPopupContainer:c,overlayClassName:l,rootClassName:u,open:d,onOpenChange:m,visible:g,onVisibleChange:v,mouseEnterDelay:h=.15,mouseLeaveDelay:p=.1,autoAdjustOverflow:b=!0,placement:y="",overlay:S,transitionName:x}=e,{getPopupContainer:E,getPrefixCls:$,direction:C}=f__namespace.useContext(Xe);f1();const w=f__namespace.useMemo(()=>{const Y=$();return x!==void 0?x:y.includes("top")?`${Y}-slide-down`:`${Y}-slide-up`},[$,y,x]),O=f__namespace.useMemo(()=>y?y.includes("Center")?y.slice(0,y.indexOf("Center")):y:C==="rtl"?"bottomRight":"bottomLeft",[y,C]),_=$("dropdown",r),[T,I]=vw(_),[,P]=lr(),R=f__namespace.Children.only(o),k=Wn(R,{className:V(`${_}-trigger`,{[`${_}-rtl`]:C==="rtl"},R.props.className),disabled:i}),N=i?[]:a;let M;N&&N.includes("contextMenu")&&(M=!0);const[L,j]=Wt(!1,{value:d??g}),F=Mn(Y=>{m==null||m(Y),v==null||v(Y),j(Y);}),K=V(l,u,I,{[`${_}-rtl`]:C==="rtl"}),B=cC({arrowPointAtCenter:typeof n=="object"&&n.pointAtCenter,autoAdjustOverflow:b,offset:P.marginXXS,arrowWidth:n?P.sizePopupArrow:0,borderRadius:P.borderRadius}),W=f__namespace.useCallback(()=>{j(!1);},[]),H=()=>{let Y;return t!=null&&t.items?Y=f__namespace.createElement(iY,Object.assign({},t)):typeof S=="function"?Y=S():Y=S,s&&(Y=s(Y)),Y=f__namespace.Children.only(typeof Y=="string"?f__namespace.createElement("span",null,Y):Y),f__namespace.createElement(Uq,{prefixCls:`${_}-menu`,expandIcon:f__namespace.createElement("span",{className:`${_}-menu-submenu-arrow`},f__namespace.createElement(Za,{className:`${_}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:W,validator:U=>{}},Y)};return T(f__namespace.createElement(cS,Object.assign({alignPoint:M},An(e,["rootClassName"]),{mouseEnterDelay:h,mouseLeaveDelay:p,visible:L,builtinPlacements:B,arrow:!!n,overlayClassName:K,prefixCls:_,getPopupContainer:c||E,transitionName:w,trigger:N,overlay:H,placement:O,onVisibleChange:F}),k))};function uY(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const dY=hv(Kv,"dropdown",e=>e,uY),fY=e=>f__namespace.createElement(dY,Object.assign({},e),f__namespace.createElement("span",null));Kv._InternalPanelDoNotUseOrYouWillBeFired=fY;const hw=Kv;var mY=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 pw=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=f__namespace.useContext(Xe),{prefixCls:o,type:a="default",danger:i,disabled:s,loading:c,onClick:l,htmlType:u,children:d,className:m,menu:g,arrow:v,autoFocus:h,overlay:p,trigger:b,align:y,open:S,onOpenChange:x,placement:E,getPopupContainer:$,href:C,icon:w=f__namespace.createElement(cv,null),title:O,buttonsRender:_=te=>te,mouseEnterDelay:T,mouseLeaveDelay:I,overlayClassName:P,overlayStyle:R,destroyPopupOnHide:k,dropdownRender:N}=e,M=mY(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"]),L=n("dropdown",o),j=`${L}-button`,[F,K]=vw(L),B={menu:g,arrow:v,autoFocus:h,align:y,disabled:s,trigger:s?[]:b,onOpenChange:x,getPopupContainer:$||t,mouseEnterDelay:T,mouseLeaveDelay:I,overlayClassName:P,overlayStyle:R,destroyPopupOnHide:k,dropdownRender:N},{compactSize:W,compactItemClassnames:H}=bi(L,r),Y=V(j,H,m,K);"overlay"in e&&(B.overlay=p),"open"in e&&(B.open=S),"placement"in e?B.placement=E:B.placement=r==="rtl"?"bottomLeft":"bottomRight";const U=f__namespace.createElement(Xt,{type:a,danger:i,disabled:s,loading:c,onClick:l,htmlType:u,href:C,title:O},d),X=f__namespace.createElement(Xt,{type:a,danger:i,icon:w}),[G,ee]=_([U,X]);return F(f__namespace.createElement(Ls.Compact,Object.assign({className:Y,size:W,block:!0},M),G,f__namespace.createElement(hw,Object.assign({},B),ee)))};pw.__ANT_BUTTON=!0;const gY=pw,bw=hw;bw.Button=gY;const Gv=bw;function _a(e,t,n){const r=nt(n);f.useEffect(()=>(e.on(t,r),()=>{e.off(t,r);}),[e]);}const vY=new Et("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),hY=new Et("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),pY=new Et("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),bY=new Et("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),yY=new Et("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),CY=new Et("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),SY=e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:o,motionDurationSlow:a,textFontSize:i,textFontSizeSM:s,statusSize:c,dotSize:l,textFontWeight:u,indicatorHeight:d,indicatorHeightSM:m,marginXS:g}=e,v=`${r}-scroll-number`,h=fu(e,(p,b)=>{let{darkColor:y}=b;return {[`&${t} ${t}-color-${p}`]:{background:y,[`&:not(${t}-count)`]:{color:y}}}});return {[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Nt(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{zIndex:e.indicatorZIndex,minWidth:d,height:d,color:e.badgeTextColor,fontWeight:u,fontSize:i,lineHeight:`${d}px`,whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:d/2,boxShadow:`0 0 0 ${o}px ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:m,height:m,fontSize:s,lineHeight:`${m}px`,borderRadius:m/2},[`${t}-multiple-words`]:{padding:`0 ${e.paddingXS}px`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:l,minWidth:l,height:l,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${o}px ${e.badgeShadowColor}`},[`${t}-dot${v}`]:{transition:`background ${a}`},[`${t}-count, ${t}-dot, ${v}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:CY,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:c,height:c,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorPrimary,backgroundColor:e.colorPrimary,"&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:o,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:vY,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:g,color:e.colorText,fontSize:e.fontSize}}}),h),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:hY,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:pY,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:bY,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:yY,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${v}-custom-component, ${t}-count`]:{transform:"none"},[`${v}-custom-component, ${v}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[`${v}`]:{overflow:"hidden",[`${v}-only`]:{position:"relative",display:"inline-block",height:d,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${v}-only-unit`]:{height:d,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${v}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${v}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},yw=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,marginXS:o,colorBorderBg:a}=e,i=Math.round(t*n),s=r,c=e.colorBgContainer,l=e.colorError,u=e.colorErrorHover;return gt(e,{badgeFontHeight:i,badgeShadowSize:s,badgeTextColor:c,badgeColor:l,badgeColorHover:u,badgeShadowColor:a,badgeProcessingDuration:"1.2s",badgeRibbonOffset:o,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},Cw=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:o}=e;return {indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*o,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},$Y=Dt("Badge",e=>{const t=yw(e);return [SY(t)]},Cw),wY=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:o}=e,a=`${t}-ribbon`,i=`${t}-ribbon-wrapper`,s=fu(e,(c,l)=>{let{darkColor:u}=l;return {[`&${a}-color-${c}`]:{background:u,color:u}}});return {[`${i}`]:{position:"relative"},[`${a}`]:Object.assign(Object.assign(Object.assign(Object.assign({},Nt(e)),{position:"absolute",top:r,padding:`0 ${e.paddingXS}px`,color:e.colorPrimary,lineHeight:`${n}px`,whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${a}-text`]:{color:e.colorTextLightSolid},[`${a}-corner`]:{position:"absolute",top:"100%",width:o,height:o,color:"currentcolor",border:`${o/2}px solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),s),{[`&${a}-placement-end`]:{insetInlineEnd:-o,borderEndEndRadius:0,[`${a}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${a}-placement-start`]:{insetInlineStart:-o,borderEndStartRadius:0,[`${a}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},xY=Dt(["Badge","Ribbon"],e=>{const t=yw(e);return [wY(t)]},Cw),EY=e=>{const{className:t,prefixCls:n,style:r,color:o,children:a,text:i,placement:s="end",rootClassName:c}=e,{getPrefixCls:l,direction:u}=f__namespace.useContext(Xe),d=l("ribbon",n),m=bu(o,!1),g=V(d,`${d}-placement-${s}`,{[`${d}-rtl`]:u==="rtl",[`${d}-color-${o}`]:m},t),[v,h]=xY(d),p={},b={};return o&&!m&&(p.background=o,b.color=o),v(f__namespace.createElement("div",{className:V(`${d}-wrapper`,c,h)},a,f__namespace.createElement("div",{className:V(g,h),style:Object.assign(Object.assign({},p),r)},f__namespace.createElement("span",{className:`${d}-text`},i),f__namespace.createElement("div",{className:`${d}-corner`,style:b}))))},OY=EY;function L0(e){let{prefixCls:t,value:n,current:r,offset:o=0}=e,a;return o&&(a={position:"absolute",top:`${o}00%`,left:0}),f__namespace.createElement("span",{style:a,className:V(`${t}-only-unit`,{current:r})},n)}function IY(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}function PY(e){const{prefixCls:t,count:n,value:r}=e,o=Number(r),a=Math.abs(n),[i,s]=f__namespace.useState(o),[c,l]=f__namespace.useState(a),u=()=>{s(o),l(a);};f__namespace.useEffect(()=>{const g=setTimeout(()=>{u();},1e3);return ()=>{clearTimeout(g);}},[o]);let d,m;if(i===o||Number.isNaN(o)||Number.isNaN(i))d=[f__namespace.createElement(L0,Object.assign({},e,{key:o,current:!0}))],m={transition:"none"};else {d=[];const g=o+10,v=[];for(let b=o;b<=g;b+=1)v.push(b);const h=v.findIndex(b=>b%10===i);d=v.map((b,y)=>{const S=b%10;return f__namespace.createElement(L0,Object.assign({},e,{key:b,value:S,offset:y-h,current:y===h}))});const p=c<a?1:-1;m={transform:`translateY(${-IY(i,o,p)}00%)`};}return f__namespace.createElement("span",{className:`${t}-only`,style:m,onTransitionEnd:u},d)}var _Y=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 RY=f__namespace.forwardRef((e,t)=>{const{prefixCls:n,count:r,className:o,motionClassName:a,style:i,title:s,show:c,component:l="sup",children:u}=e,d=_Y(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:m}=f__namespace.useContext(Xe),g=m("scroll-number",n),v=Object.assign(Object.assign({},d),{"data-show":c,style:i,className:V(g,o,a),title:s});let h=r;if(r&&Number(r)%1===0){const p=String(r).split("");h=f__namespace.createElement("bdi",null,p.map((b,y)=>f__namespace.createElement(PY,{prefixCls:g,count:Number(r),value:b,key:p.length-y})));}return i&&i.borderColor&&(v.style=Object.assign(Object.assign({},i),{boxShadow:`0 0 0 1px ${i.borderColor} inset`})),u?Wn(u,p=>({className:V(`${g}-custom-component`,p==null?void 0:p.className,a)})):f__namespace.createElement(l,Object.assign({},v,{ref:t}),h)}),TY=RY;var MY=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=(e,t)=>{var n,r,o,a,i;const{prefixCls:s,scrollNumberPrefixCls:c,children:l,status:u,text:d,color:m,count:g=null,overflowCount:v=99,dot:h=!1,size:p="default",title:b,offset:y,style:S,className:x,rootClassName:E,classNames:$,styles:C,showZero:w=!1}=e,O=MY(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:_,direction:T,badge:I}=f__namespace.useContext(Xe),P=_("badge",s),[R,k]=$Y(P),N=g>v?`${v}+`:g,M=N==="0"||N===0,L=g===null||M&&!w,j=(u!=null||m!=null)&&L,F=h&&!M,K=F?"":N,B=f.useMemo(()=>(K==null||K===""||M&&!w)&&!F,[K,M,w,F]),W=f.useRef(g);B||(W.current=g);const H=W.current,Y=f.useRef(K);B||(Y.current=K);const U=Y.current,X=f.useRef(F);B||(X.current=F);const G=f.useMemo(()=>{if(!y)return Object.assign(Object.assign({},I==null?void 0:I.style),S);const Z={marginTop:y[1]};return T==="rtl"?Z.left=parseInt(y[0],10):Z.right=-parseInt(y[0],10),Object.assign(Object.assign(Object.assign({},Z),I==null?void 0:I.style),S)},[T,y,S,I==null?void 0:I.style]),ee=b??(typeof H=="string"||typeof H=="number"?H:void 0),te=B||!d?null:f__namespace.createElement("span",{className:`${P}-status-text`},d),ie=!H||typeof H!="object"?void 0:Wn(H,Z=>({style:Object.assign(Object.assign({},G),Z.style)})),le=bu(m,!1),Q=V($==null?void 0:$.indicator,(n=I==null?void 0:I.classNames)===null||n===void 0?void 0:n.indicator,{[`${P}-status-dot`]:j,[`${P}-status-${u}`]:!!u,[`${P}-color-${m}`]:le}),oe={};m&&!le&&(oe.color=m,oe.background=m);const ue=V(P,{[`${P}-status`]:j,[`${P}-not-a-wrapper`]:!l,[`${P}-rtl`]:T==="rtl"},x,E,I==null?void 0:I.className,(r=I==null?void 0:I.classNames)===null||r===void 0?void 0:r.root,$==null?void 0:$.root,k);if(!l&&j){const Z=G.color;return R(f__namespace.createElement("span",Object.assign({},O,{className:ue,style:Object.assign(Object.assign(Object.assign({},C==null?void 0:C.root),(o=I==null?void 0:I.styles)===null||o===void 0?void 0:o.root),G)}),f__namespace.createElement("span",{className:Q,style:Object.assign(Object.assign(Object.assign({},C==null?void 0:C.indicator),(a=I==null?void 0:I.styles)===null||a===void 0?void 0:a.indicator),oe)}),d&&f__namespace.createElement("span",{style:{color:Z},className:`${P}-status-text`},d)))}return R(f__namespace.createElement("span",Object.assign({ref:t},O,{className:ue,style:Object.assign(Object.assign({},(i=I==null?void 0:I.styles)===null||i===void 0?void 0:i.root),C==null?void 0:C.root)}),l,f__namespace.createElement(go,{visible:!B,motionName:`${P}-zoom`,motionAppear:!1,motionDeadline:1e3},Z=>{let{className:ae,ref:ne}=Z;var se,ve;const ge=_("scroll-number",c),ke=X.current,Ae=V($==null?void 0:$.indicator,(se=I==null?void 0:I.classNames)===null||se===void 0?void 0:se.indicator,{[`${P}-dot`]:ke,[`${P}-count`]:!ke,[`${P}-count-sm`]:p==="small",[`${P}-multiple-words`]:!ke&&U&&U.toString().length>1,[`${P}-status-${u}`]:!!u,[`${P}-color-${m}`]:le});let Me=Object.assign(Object.assign(Object.assign({},C==null?void 0:C.indicator),(ve=I==null?void 0:I.styles)===null||ve===void 0?void 0:ve.indicator),G);return m&&!le&&(Me=Me||{},Me.background=m),f__namespace.createElement(TY,{prefixCls:ge,show:!B,motionClassName:ae,className:Ae,count:U,title:ee,style:Me,key:"scrollNumber",ref:ne},ie)}),te))},Sw=f__namespace.forwardRef(NY);Sw.Ribbon=OY;const kY=Sw,$w=["xxl","xl","lg","md","sm","xs"],AY=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),LY=e=>{const t=e,n=[].concat($w).reverse();return n.forEach((r,o)=>{const a=r.toUpperCase(),i=`screen${a}Min`,s=`screen${a}`;if(!(t[i]<=t[s]))throw new Error(`${i}<=${s} fails : !(${t[i]}<=${t[s]})`);if(o<n.length-1){const c=`screen${a}Max`;if(!(t[s]<=t[c]))throw new Error(`${s}<=${c} fails : !(${t[s]}<=${t[c]})`);const u=`screen${n[o+1].toUpperCase()}Min`;if(!(t[c]<=t[u]))throw new Error(`${c}<=${u} fails : !(${t[c]}<=${t[u]})`)}}),e};function jY(){const[,e]=lr(),t=AY(LY(e));return f.useMemo(()=>{const n=new Map;let r=-1,o={};return {matchHandlers:{},dispatch(a){return o=a,n.forEach(i=>i(o)),n.size>=1},subscribe(a){return n.size||this.register(),r+=1,n.set(r,a),a(o),r},unsubscribe(a){n.delete(a),n.size||this.unregister();},unregister(){Object.keys(t).forEach(a=>{const i=t[a],s=this.matchHandlers[i];s==null||s.mql.removeListener(s==null?void 0:s.listener);}),n.clear();},register(){Object.keys(t).forEach(a=>{const i=t[a],s=l=>{let{matches:u}=l;this.dispatch(Object.assign(Object.assign({},o),{[a]:u}));},c=window.matchMedia(i);c.addListener(s),this.matchHandlers[i]={mql:c,listener:s},s(c);});},responsiveMap:t}},[e])}function zY(){const[,e]=f__namespace.useReducer(t=>t+1,0);return e}function ww(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=f.useRef({}),n=zY(),r=jY();return Ht(()=>{const o=r.subscribe(a=>{t.current=a,e&&n();});return ()=>r.unsubscribe(o)},[]),t.current}const DY=f__namespace.createContext({}),_m=DY,FY=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:o,avatarColor:a,containerSize:i,containerSizeLG:s,containerSizeSM:c,textFontSize:l,textFontSizeLG:u,textFontSizeSM:d,borderRadius:m,borderRadiusLG:g,borderRadiusSM:v,lineWidth:h,lineType:p}=e,b=(y,S,x)=>({width:y,height:y,lineHeight:`${y-h*2}px`,borderRadius:"50%",[`&${n}-square`]:{borderRadius:x},[`${n}-string`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},transformOrigin:"0 center"},[`&${n}-icon`]:{fontSize:S,[`> ${r}`]:{margin:0}}});return {[n]:Object.assign(Object.assign(Object.assign(Object.assign({},Nt(e)),{position:"relative",display:"inline-block",overflow:"hidden",color:a,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:o,border:`${h}px ${p} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),b(i,l,m)),{"&-lg":Object.assign({},b(s,u,g)),"&-sm":Object.assign({},b(c,d,v)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},BY=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:o}=e;return {[`${t}-group`]:{display:"inline-flex",[`${t}`]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:o}}}},xw=Dt("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=gt(e,{avatarBg:n,avatarColor:t});return [FY(r),BY(r)]},e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:o,fontSizeLG:a,fontSizeXL:i,fontSizeHeading3:s,marginXS:c,marginXXS:l,colorBorderBg:u}=e;return {containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:Math.round((a+i)/2),textFontSizeLG:s,textFontSizeSM:o,groupSpace:l,groupOverlapping:-c,groupBorderColor:u}});var HY=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 WY=(e,t)=>{const[n,r]=f__namespace.useState(1),[o,a]=f__namespace.useState(!1),[i,s]=f__namespace.useState(!0),c=f__namespace.useRef(null),l=f__namespace.useRef(null),u=Kn(t,c),{getPrefixCls:d,avatar:m}=f__namespace.useContext(Xe),g=f__namespace.useContext(_m),v=()=>{if(!l.current||!c.current)return;const U=l.current.offsetWidth,X=c.current.offsetWidth;if(U!==0&&X!==0){const{gap:G=4}=e;G*2<X&&r(X-G*2<U?(X-G*2)/U:1);}};f__namespace.useEffect(()=>{a(!0);},[]),f__namespace.useEffect(()=>{s(!0),r(1);},[e.src]),f__namespace.useEffect(v,[e.gap]);const h=()=>{const{onError:U}=e;(U==null?void 0:U())!==!1&&s(!1);},{prefixCls:p,shape:b,size:y,src:S,srcSet:x,icon:E,className:$,rootClassName:C,alt:w,draggable:O,children:_,crossOrigin:T}=e,I=HY(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),P=Xn(U=>{var X,G;return (G=(X=y??(g==null?void 0:g.size))!==null&&X!==void 0?X:U)!==null&&G!==void 0?G:"default"}),R=Object.keys(typeof P=="object"?P||{}:{}).some(U=>["xs","sm","md","lg","xl","xxl"].includes(U)),k=ww(R),N=f__namespace.useMemo(()=>{if(typeof P!="object")return {};const U=$w.find(G=>k[G]),X=P[U];return X?{width:X,height:X,lineHeight:`${X}px`,fontSize:X&&(E||_)?X/2:18}:{}},[k,P]),M=d("avatar",p),[L,j]=xw(M),F=V({[`${M}-lg`]:P==="large",[`${M}-sm`]:P==="small"}),K=f__namespace.isValidElement(S),B=b||(g==null?void 0:g.shape)||"circle",W=V(M,F,m==null?void 0:m.className,`${M}-${B}`,{[`${M}-image`]:K||S&&i,[`${M}-icon`]:!!E},$,C,j),H=typeof P=="number"?{width:P,height:P,lineHeight:`${P}px`,fontSize:E?P/2:18}:{};let Y;if(typeof S=="string"&&i)Y=f__namespace.createElement("img",{src:S,draggable:O,srcSet:x,onError:h,alt:w,crossOrigin:T});else if(K)Y=S;else if(E)Y=E;else if(o||n!==1){const U=`scale(${n}) translateX(-50%)`,X={msTransform:U,WebkitTransform:U,transform:U},G=typeof P=="number"?{lineHeight:`${P}px`}:{};Y=f__namespace.createElement(pr,{onResize:v},f__namespace.createElement("span",{className:`${M}-string`,ref:l,style:Object.assign(Object.assign({},G),X)},_));}else Y=f__namespace.createElement("span",{className:`${M}-string`,style:{opacity:0},ref:l},_);return delete I.onError,delete I.gap,L(f__namespace.createElement("span",Object.assign({},I,{style:Object.assign(Object.assign(Object.assign(Object.assign({},H),N),m==null?void 0:m.style),I.style),className:W,ref:u}),Y))},VY=f__namespace.forwardRef(WY),Ew=VY,j0=e=>{const{size:t,shape:n}=f__namespace.useContext(_m),r=f__namespace.useMemo(()=>({size:e.size||t,shape:e.shape||n}),[e.size,e.shape,t,n]);return f__namespace.createElement(_m.Provider,{value:r},e.children)},KY=e=>{const{getPrefixCls:t,direction:n}=f__namespace.useContext(Xe),{prefixCls:r,className:o,rootClassName:a,style:i,maxCount:s,maxStyle:c,size:l,shape:u,maxPopoverPlacement:d="top",maxPopoverTrigger:m="hover",children:g}=e,v=t("avatar",r),h=`${v}-group`,[p,b]=xw(v),y=V(h,{[`${h}-rtl`]:n==="rtl"},o,a,b),S=ir(g).map((E,$)=>Wn(E,{key:`avatar-key-${$}`})),x=S.length;if(s&&s<x){const E=S.slice(0,s),$=S.slice(s,x);return E.push(f__namespace.createElement(xu,{key:"avatar-popover-key",content:$,trigger:m,placement:d,overlayClassName:`${h}-popover`},f__namespace.createElement(Ew,{style:c},`+${x-s}`))),p(f__namespace.createElement(j0,{shape:u,size:l},f__namespace.createElement("div",{className:y,style:i},E)))}return p(f__namespace.createElement(j0,{shape:u,size:l},f__namespace.createElement("div",{className:y,style:i},S)))},GY=KY,Ow=Ew;Ow.Group=GY;const z0=Ow,qu={name:"1wnowod",styles:"display:flex;align-items:center;justify-content:center"};function UY(e){const t=f.useRef(null);return t.current??(t.current=e()),t}var XY=Math.floor,qY=Math.random;function YY(e,t){return e+XY(qY()*(t-e+1))}var ZY=YY,QY=ZY;function JY(e,t){var n=-1,r=e.length,o=r-1;for(t=t===void 0?r:t;++n<t;){var a=QY(n,o),i=e[a];e[a]=e[n],e[n]=i;}return e.length=t,e}var Iw=JY,eZ=Ay,tZ=Iw;function nZ(e){return tZ(eZ(e))}var rZ=nZ,oZ=Qm;function aZ(e,t){return oZ(t,function(n){return e[n]})}var iZ=aZ,sZ=iZ,lZ=Os;function cZ(e){return e==null?[]:sZ(e,lZ(e))}var uZ=cZ,dZ=Iw,fZ=uZ;function mZ(e){return dZ(fZ(e))}var gZ=mZ,vZ=rZ,hZ=gZ,pZ=jr;function bZ(e){var t=pZ(e)?vZ:hZ;return t(e)}var yZ=bZ;const Rm=fn(yZ);var CZ=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Pw=f__namespace.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-switch":r,a=e.className,i=e.checked,s=e.defaultChecked,c=e.disabled,l=e.loadingIcon,u=e.checkedChildren,d=e.unCheckedChildren,m=e.onClick,g=e.onChange,v=e.onKeyDown,h=Ze(e,CZ),p=Wt(!1,{value:i,defaultValue:s}),b=J(p,2),y=b[0],S=b[1];function x(w,O){var _=y;return c||(_=w,S(_),g==null||g(_,O)),_}function E(w){w.which===ce.LEFT?x(!1,w):w.which===ce.RIGHT&&x(!0,w),v==null||v(w);}function $(w){var O=x(!y,w);m==null||m(O,w);}var C=V(o,a,(n={},D(n,"".concat(o,"-checked"),y),D(n,"".concat(o,"-disabled"),c),n));return f__namespace.createElement("button",Oe({},h,{type:"button",role:"switch","aria-checked":y,disabled:c,className:C,ref:t,onKeyDown:E,onClick:$}),l,f__namespace.createElement("span",{className:"".concat(o,"-inner")},f__namespace.createElement("span",{className:"".concat(o,"-inner-checked")},u),f__namespace.createElement("span",{className:"".concat(o,"-inner-unchecked")},d)))});Pw.displayName="Switch";const SZ=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:a,innerMaxMarginSM:i,handleSizeSM:s}=e,c=`${t}-inner`;return {[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:`${n}px`,[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${s+r*2}px - ${i*2}px)`,marginInlineEnd:`calc(100% - ${s+r*2}px + ${i*2}px)`},[`${c}-unchecked`]:{marginTop:-n,marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:(s-e.switchLoadingIconSize)/2,fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${s+r*2}px + ${i*2}px)`,marginInlineEnd:`calc(-100% + ${s+r*2}px - ${i*2}px)`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${s+r}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:e.marginXXS/2,marginInlineEnd:-e.marginXXS/2}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:-e.marginXXS/2,marginInlineEnd:e.marginXXS/2}}}}}}},$Z=e=>{const{componentCls:t,handleSize:n}=e;return {[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:(n-e.fontSize)/2,color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},wZ=e=>{const{componentCls:t,motion:n,trackPadding:r,handleBg:o,handleShadow:a,handleSize:i}=e,s=`${t}-handle`;return {[t]:{[s]:{position:"absolute",top:r,insetInlineStart:r,width:i,height:i,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:o,borderRadius:i/2,boxShadow:a,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${i+r}px)`},[`&:not(${t}-disabled):active`]:n?{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}:{}}}},xZ=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:a,handleSize:i}=e,s=`${t}-inner`;return {[t]:{[s]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:a,paddingInlineEnd:o,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${s}-checked, ${s}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none"},[`${s}-checked`]:{marginInlineStart:`calc(-100% + ${i+r*2}px - ${a*2}px)`,marginInlineEnd:`calc(100% - ${i+r*2}px + ${a*2}px)`},[`${s}-unchecked`]:{marginTop:-n,marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${s}`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${s}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${s}-unchecked`]:{marginInlineStart:`calc(100% - ${i+r*2}px + ${a*2}px)`,marginInlineEnd:`calc(-100% + ${i+r*2}px - ${a*2}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${s}`]:{[`${s}-unchecked`]:{marginInlineStart:r*2,marginInlineEnd:-r*2}},[`&${t}-checked ${s}`]:{[`${s}-checked`]:{marginInlineStart:-r*2,marginInlineEnd:r*2}}}}}},EZ=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return {[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Nt(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:`${n}px`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),ea(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},OZ=Dt("Switch",e=>{const t=gt(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return [EZ(t),xZ(t),wZ(t),$Z(t),SZ(t)]},e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,a=t*n,i=r/2,s=2,c=a-s*2,l=i-s*2;return {trackHeight:a,trackHeightSM:i,trackMinWidth:c*2+s*4,trackMinWidthSM:l*2+s*2,trackPadding:s,handleBg:o,handleSize:c,handleSizeSM:l,handleShadow:`0 2px 4px 0 ${new qt("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:c/2,innerMaxMargin:c+s+s*2,innerMinMarginSM:l/2,innerMaxMarginSM:l+s+s*2}});var IZ=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const _w=f__namespace.forwardRef((e,t)=>{const{prefixCls:n,size:r,disabled:o,loading:a,className:i,rootClassName:s,style:c}=e,l=IZ(e,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:u,direction:d,switch:m}=f__namespace.useContext(Xe),g=f__namespace.useContext(Zr),v=(o??g)||a,h=u("switch",n),p=f__namespace.createElement("div",{className:`${h}-handle`},a&&f__namespace.createElement(Xg,{className:`${h}-loading-icon`})),[b,y]=OZ(h),S=Xn(r),x=V(m==null?void 0:m.className,{[`${h}-small`]:S==="small",[`${h}-loading`]:a,[`${h}-rtl`]:d==="rtl"},i,s,y),E=Object.assign(Object.assign({},m==null?void 0:m.style),c);return b(f__namespace.createElement(Ns,{component:"Switch"},f__namespace.createElement(Pw,Object.assign({},l,{prefixCls:h,className:x,style:E,disabled:v,ref:t,loadingIcon:p}))))});_w.__ANT_SWITCH=!0;const Rw=_w,$c=e=>{const t=new Map;return e.forEach((n,r)=>{t.set(n,r);}),t},PZ=e=>{const t=new Map;return e.forEach((n,r)=>{let{disabled:o,key:a}=n;o&&t.set(a,r);}),t};function _Z(e,t,n){const r=f__namespace.useMemo(()=>(e||[]).map(i=>(t&&(i=Object.assign(Object.assign({},i),{key:t(i)})),i)),[e,t]),[o,a]=f__namespace.useMemo(()=>{const i=[],s=new Array((n||[]).length),c=$c(n||[]);return r.forEach(l=>{c.has(l.key)?s[c.get(l.key)]=l:i.push(l);}),[i,s]},[r,n,t]);return [r,o,a]}const RZ=[];function Ia(e,t){const n=e.filter(r=>t.has(r));return e.length===n.length?e:n}function D0(e){return Array.from(e).join(";")}function TZ(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:RZ;const[r,o]=f__namespace.useMemo(()=>[new Set(e.map(l=>l.key)),new Set(t.map(l=>l.key))],[e,t]),[a,i]=f__namespace.useState(()=>Ia(n,r)),[s,c]=f__namespace.useState(()=>Ia(n,o));return f__namespace.useEffect(()=>{i(Ia(n,r)),c(Ia(n,o));},[n]),f__namespace.useEffect(()=>{i(Ia(a,r)),c(Ia(s,o));},[D0(r),D0(o)]),[a,s,i,c]}var MZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};const NZ=MZ;var kZ=function(t,n){return f__namespace.createElement(En,Oe({},t,{ref:n,icon:NZ}))};const F0=f__namespace.forwardRef(kZ);var AZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};const LZ=AZ;var jZ=function(t,n){return f__namespace.createElement(En,Oe({},t,{ref:n,icon:LZ}))};const B0=f__namespace.forwardRef(jZ);var zo={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40};const zZ={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"};var Tw=function(e){Mo(n,e);var t=No(n);function n(){var r;hn(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=t.call.apply(t,[this].concat(a)),r.state={goInputText:""},r.getValidValue=function(){var s=r.state.goInputText;return !s||Number.isNaN(s)?void 0:Number(s)},r.buildOptionText=function(s){return "".concat(s," ").concat(r.props.locale.items_per_page)},r.changeSize=function(s){r.props.changeSize(Number(s));},r.handleChange=function(s){r.setState({goInputText:s.target.value});},r.handleBlur=function(s){var c=r.props,l=c.goButton,u=c.quickGo,d=c.rootPrefixCls,m=r.state.goInputText;l||m===""||(r.setState({goInputText:""}),!(s.relatedTarget&&(s.relatedTarget.className.indexOf("".concat(d,"-item-link"))>=0||s.relatedTarget.className.indexOf("".concat(d,"-item"))>=0))&&u(r.getValidValue()));},r.go=function(s){var c=r.state.goInputText;c!==""&&(s.keyCode===zo.ENTER||s.type==="click")&&(r.setState({goInputText:""}),r.props.quickGo(r.getValidValue()));},r}return pn(n,[{key:"getPageSizeOptions",value:function(){var o=this.props,a=o.pageSize,i=o.pageSizeOptions;return i.some(function(s){return s.toString()===a.toString()})?i:i.concat([a.toString()]).sort(function(s,c){var l=Number.isNaN(Number(s))?0:Number(s),u=Number.isNaN(Number(c))?0:Number(c);return l-u})}},{key:"render",value:function(){var o=this,a=this.props,i=a.pageSize,s=a.locale,c=a.rootPrefixCls,l=a.changeSize,u=a.quickGo,d=a.goButton,m=a.selectComponentClass,g=a.buildOptionText,v=a.selectPrefixCls,h=a.disabled,p=this.state.goInputText,b="".concat(c,"-options"),y=m,S=null,x=null,E=null;if(!l&&!u)return null;var $=this.getPageSizeOptions();if(l&&y){var C=$.map(function(w,O){return f.createElement(y.Option,{key:O,value:w.toString()},(g||o.buildOptionText)(w))});S=f.createElement(y,{disabled:h,prefixCls:v,showSearch:!1,className:"".concat(b,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(i||$[0]).toString(),onChange:this.changeSize,getPopupContainer:function(O){return O.parentNode},"aria-label":s.page_size,defaultOpen:!1},C);}return u&&(d&&(E=typeof d=="boolean"?f.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:h,className:"".concat(b,"-quick-jumper-button")},s.jump_to_confirm):f.createElement("span",{onClick:this.go,onKeyUp:this.go},d)),x=f.createElement("div",{className:"".concat(b,"-quick-jumper")},s.jump_to,f.createElement("input",{disabled:h,type:"text",value:p,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":s.page}),s.page,E)),f.createElement("li",{className:"".concat(b)},S,x)}}]),n}(f.Component);Tw.defaultProps={pageSizeOptions:["10","20","50","100"]};var Ni=function(t){var n,r=t.rootPrefixCls,o=t.page,a=t.active,i=t.className,s=t.showTitle,c=t.onClick,l=t.onKeyPress,u=t.itemRender,d="".concat(r,"-item"),m=V(d,"".concat(d,"-").concat(o),(n={},D(n,"".concat(d,"-active"),a),D(n,"".concat(d,"-disabled"),!o),D(n,t.className,i),n)),g=function(){c(o);},v=function(b){l(b,c,o);},h=u(o,"page",f.createElement("a",{rel:"nofollow"},o));return h?f.createElement("li",{title:s?o.toString():null,className:m,onClick:g,onKeyPress:v,tabIndex:0},h):null};function Tm(){}function H0(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}var DZ=function(t,n,r){return r};function bo(e,t,n){var r=typeof e>"u"?t.pageSize:e;return Math.floor((n.total-1)/r)+1}var Mw=function(e){Mo(n,e);var t=No(n);function n(r){var o;hn(this,n),o=t.call(this,r),o.paginationNode=f.createRef(),o.getJumpPrevPage=function(){return Math.max(1,o.state.current-(o.props.showLessItems?3:5))},o.getJumpNextPage=function(){return Math.min(bo(void 0,o.state,o.props),o.state.current+(o.props.showLessItems?3:5))},o.getItemIcon=function(l,u){var d=o.props.prefixCls,m=l||f.createElement("button",{type:"button","aria-label":u,className:"".concat(d,"-item-link")});return typeof l=="function"&&(m=f.createElement(l,q({},o.props))),m},o.isValid=function(l){var u=o.props.total;return H0(l)&&l!==o.state.current&&H0(u)&&u>0},o.shouldDisplayQuickJumper=function(){var l=o.props,u=l.showQuickJumper,d=l.total,m=o.state.pageSize;return d<=m?!1:u},o.handleKeyDown=function(l){(l.keyCode===zo.ARROW_UP||l.keyCode===zo.ARROW_DOWN)&&l.preventDefault();},o.handleKeyUp=function(l){var u=o.getValidValue(l),d=o.state.currentInputValue;u!==d&&o.setState({currentInputValue:u}),l.keyCode===zo.ENTER?o.handleChange(u):l.keyCode===zo.ARROW_UP?o.handleChange(u-1):l.keyCode===zo.ARROW_DOWN&&o.handleChange(u+1);},o.handleBlur=function(l){var u=o.getValidValue(l);o.handleChange(u);},o.changePageSize=function(l){var u=o.state.current,d=bo(l,o.state,o.props);u=u>d?d:u,d===0&&(u=o.state.current),typeof l=="number"&&("pageSize"in o.props||o.setState({pageSize:l}),"current"in o.props||o.setState({current:u,currentInputValue:u})),o.props.onShowSizeChange(u,l),"onChange"in o.props&&o.props.onChange&&o.props.onChange(u,l);},o.handleChange=function(l){var u=o.props,d=u.disabled,m=u.onChange,g=o.state,v=g.pageSize,h=g.current,p=g.currentInputValue;if(o.isValid(l)&&!d){var b=bo(void 0,o.state,o.props),y=l;return l>b?y=b:l<1&&(y=1),"current"in o.props||o.setState({current:y}),y!==p&&o.setState({currentInputValue:y}),m(y,v),y}return h},o.prev=function(){o.hasPrev()&&o.handleChange(o.state.current-1);},o.next=function(){o.hasNext()&&o.handleChange(o.state.current+1);},o.jumpPrev=function(){o.handleChange(o.getJumpPrevPage());},o.jumpNext=function(){o.handleChange(o.getJumpNextPage());},o.hasPrev=function(){return o.state.current>1},o.hasNext=function(){return o.state.current<bo(void 0,o.state,o.props)},o.runIfEnter=function(l,u){if(l.key==="Enter"||l.charCode===13){for(var d=arguments.length,m=new Array(d>2?d-2:0),g=2;g<d;g++)m[g-2]=arguments[g];u.apply(void 0,m);}},o.runIfEnterPrev=function(l){o.runIfEnter(l,o.prev);},o.runIfEnterNext=function(l){o.runIfEnter(l,o.next);},o.runIfEnterJumpPrev=function(l){o.runIfEnter(l,o.jumpPrev);},o.runIfEnterJumpNext=function(l){o.runIfEnter(l,o.jumpNext);},o.handleGoTO=function(l){(l.keyCode===zo.ENTER||l.type==="click")&&o.handleChange(o.state.currentInputValue);},o.renderPrev=function(l){var u=o.props,d=u.prevIcon,m=u.itemRender,g=m(l,"prev",o.getItemIcon(d,"prev page")),v=!o.hasPrev();return f.isValidElement(g)?f.cloneElement(g,{disabled:v}):g},o.renderNext=function(l){var u=o.props,d=u.nextIcon,m=u.itemRender,g=m(l,"next",o.getItemIcon(d,"next page")),v=!o.hasNext();return f.isValidElement(g)?f.cloneElement(g,{disabled:v}):g};var a=r.onChange!==Tm,i="current"in r;i&&!a&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var s=r.defaultCurrent;"current"in r&&(s=r.current);var c=r.defaultPageSize;return "pageSize"in r&&(c=r.pageSize),s=Math.min(s,bo(c,void 0,r)),o.state={current:s,currentInputValue:s,pageSize:c},o}return pn(n,[{key:"componentDidUpdate",value:function(o,a){var i=this.props.prefixCls;if(a.current!==this.state.current&&this.paginationNode.current){var s=this.paginationNode.current.querySelector(".".concat(i,"-item-").concat(a.current));if(s&&document.activeElement===s){var c;s==null||(c=s.blur)===null||c===void 0||c.call(s);}}}},{key:"getValidValue",value:function(o){var a=o.target.value,i=bo(void 0,this.state,this.props),s=this.state.currentInputValue,c;return a===""?c=a:Number.isNaN(Number(a))?c=s:a>=i?c=i:c=Number(a),c}},{key:"getShowSizeChanger",value:function(){var o=this.props,a=o.showSizeChanger,i=o.total,s=o.totalBoundaryShowSizeChanger;return typeof a<"u"?a:i>s}},{key:"render",value:function(){var o=this.props,a=o.prefixCls,i=o.className,s=o.style,c=o.disabled,l=o.hideOnSinglePage,u=o.total,d=o.locale,m=o.showQuickJumper,g=o.showLessItems,v=o.showTitle,h=o.showTotal,p=o.simple,b=o.itemRender,y=o.showPrevNextJumpers,S=o.jumpPrevIcon,x=o.jumpNextIcon,E=o.selectComponentClass,$=o.selectPrefixCls,C=o.pageSizeOptions,w=this.state,O=w.current,_=w.pageSize,T=w.currentInputValue;if(l===!0&&u<=_)return null;var I=bo(void 0,this.state,this.props),P=[],R=null,k=null,N=null,M=null,L=null,j=m&&m.goButton,F=g?1:2,K=O-1>0?O-1:0,B=O+1<I?O+1:I,W=Ya(this.props,{aria:!0,data:!0}),H=h&&f.createElement("li",{className:"".concat(a,"-total-text")},h(u,[u===0?0:(O-1)*_+1,O*_>u?u:O*_]));if(p){j&&(typeof j=="boolean"?L=f.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},d.jump_to_confirm):L=f.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},j),L=f.createElement("li",{title:v?"".concat(d.jump_to).concat(O,"/").concat(I):null,className:"".concat(a,"-simple-pager")},L));var Y=this.renderPrev(K);return f.createElement("ul",Oe({className:V(a,"".concat(a,"-simple"),D({},"".concat(a,"-disabled"),c),i),style:s,ref:this.paginationNode},W),H,Y?f.createElement("li",{title:v?d.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:V("".concat(a,"-prev"),D({},"".concat(a,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},Y):null,f.createElement("li",{title:v?"".concat(O,"/").concat(I):null,className:"".concat(a,"-simple-pager")},f.createElement("input",{type:"text",value:T,disabled:c,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),f.createElement("span",{className:"".concat(a,"-slash")},"/"),I),f.createElement("li",{title:v?d.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:V("".concat(a,"-next"),D({},"".concat(a,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(B)),L)}if(I<=3+F*2){var U={locale:d,rootPrefixCls:a,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:v,itemRender:b};I||P.push(f.createElement(Ni,Oe({},U,{key:"noPager",page:1,className:"".concat(a,"-item-disabled")})));for(var X=1;X<=I;X+=1){var G=O===X;P.push(f.createElement(Ni,Oe({},U,{key:X,page:X,active:G})));}}else {var ee=g?d.prev_3:d.prev_5,te=g?d.next_3:d.next_5,ie=b(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(S,"prev page")),le=b(this.getJumpNextPage(),"jump-next",this.getItemIcon(x,"next page"));y&&(R=ie?f.createElement("li",{title:v?ee:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:V("".concat(a,"-jump-prev"),D({},"".concat(a,"-jump-prev-custom-icon"),!!S))},ie):null,k=le?f.createElement("li",{title:v?te:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:V("".concat(a,"-jump-next"),D({},"".concat(a,"-jump-next-custom-icon"),!!x))},le):null),M=f.createElement(Ni,{locale:d,last:!0,rootPrefixCls:a,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:I,page:I,active:!1,showTitle:v,itemRender:b}),N=f.createElement(Ni,{locale:d,rootPrefixCls:a,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:v,itemRender:b});var Q=Math.max(1,O-F),oe=Math.min(O+F,I);O-1<=F&&(oe=1+F*2),I-O<=F&&(Q=I-F*2);for(var ue=Q;ue<=oe;ue+=1){var Z=O===ue;P.push(f.createElement(Ni,{locale:d,rootPrefixCls:a,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:ue,page:ue,active:Z,showTitle:v,itemRender:b}));}O-1>=F*2&&O!==1+2&&(P[0]=f.cloneElement(P[0],{className:"".concat(a,"-item-after-jump-prev")}),P.unshift(R)),I-O>=F*2&&O!==I-2&&(P[P.length-1]=f.cloneElement(P[P.length-1],{className:"".concat(a,"-item-before-jump-next")}),P.push(k)),Q!==1&&P.unshift(N),oe!==I&&P.push(M);}var ae=!this.hasPrev()||!I,ne=!this.hasNext()||!I,se=this.renderPrev(K),ve=this.renderNext(B);return f.createElement("ul",Oe({className:V(a,i,D({},"".concat(a,"-disabled"),c)),style:s,ref:this.paginationNode},W),H,se?f.createElement("li",{title:v?d.prev_page:null,onClick:this.prev,tabIndex:ae?null:0,onKeyPress:this.runIfEnterPrev,className:V("".concat(a,"-prev"),D({},"".concat(a,"-disabled"),ae)),"aria-disabled":ae},se):null,P,ve?f.createElement("li",{title:v?d.next_page:null,onClick:this.next,tabIndex:ne?null:0,onKeyPress:this.runIfEnterNext,className:V("".concat(a,"-next"),D({},"".concat(a,"-disabled"),ne)),"aria-disabled":ne},ve):null,f.createElement(Tw,{disabled:c,locale:d,rootPrefixCls:a,selectComponentClass:E,selectPrefixCls:$,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:O,pageSize:_,pageSizeOptions:C,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:j}))}}],[{key:"getDerivedStateFromProps",value:function(o,a){var i={};if("current"in o&&(i.current=o.current,o.current!==a.current&&(i.currentInputValue=i.current)),"pageSize"in o&&o.pageSize!==a.pageSize){var s=a.current,c=bo(o.pageSize,a,o);s=s>c?c:s,"current"in o||(i.current=s,i.currentInputValue=s),i.pageSize=o.pageSize;}return i}}]),n}(f.Component);Mw.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Tm,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Tm,locale:zZ,style:{},itemRender:DZ,totalBoundaryShowSizeChanger:50};const Nw=e=>f__namespace.createElement(Fs,Object.assign({},e,{showSearch:!0,size:"small"})),kw=e=>f__namespace.createElement(Fs,Object.assign({},e,{showSearch:!0,size:"middle"}));Nw.Option=Fs.Option;kw.Option=Fs.Option;const FZ=e=>{const{componentCls:t}=e;return {[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},BZ=e=>{const{componentCls:t}=e;return {[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:`${e.itemSizeSM-2}px`},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:`${e.itemSizeSM}px`},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`
    &${t}-mini ${t}-prev ${t}-item-link,
    &${t}-mini ${t}-next ${t}-item-link
    `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:`${e.itemSizeSM}px`},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`,input:Object.assign(Object.assign({},av(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},HZ=e=>{const{componentCls:t}=e;return {[`
    &${t}-simple ${t}-prev,
    &${t}-simple ${t}-next
    `]:{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`,verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${e.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${e.inputOutlineOffset}px 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},WZ=e=>{const{componentCls:t}=e;return {[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`
    ${t}-prev,
    ${t}-jump-prev,
    ${t}-jump-next
    `]:{marginInlineEnd:e.marginXS},[`
    ${t}-prev,
    ${t}-next,
    ${t}-jump-prev,
    ${t}-jump-next
    `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:`${e.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:`${e.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},zs(e)),{width:e.controlHeightLG*1.25,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},VZ=e=>{const{componentCls:t}=e;return {[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:`${e.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${e.paginationItemPaddingInline}px`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},KZ=e=>{const{componentCls:t}=e;return {[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Nt(e)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:`${e.itemSize-2}px`,verticalAlign:"middle"}}),VZ(e)),WZ(e)),HZ(e)),BZ(e)),FZ(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},GZ=e=>{const{componentCls:t}=e;return {[`${t}${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},UZ=e=>{const{componentCls:t}=e;return {[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},ea(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},Jo(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},Jo(e))}}}},XZ=Dt("Pagination",e=>{const t=gt(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.marginXXS/2,paginationMiniQuickJumperInputWidth:e.controlHeightLG*1.1,paginationItemPaddingInline:e.marginXXS*1.5,paginationEllipsisLetterSpacing:e.marginXXS/2,paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},iv(e),sv(e));return [KZ(t),UZ(t),e.wireframe&&GZ(t)]},e=>({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0}));var qZ=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const YZ=e=>{const{prefixCls:t,selectPrefixCls:n,className:r,rootClassName:o,style:a,size:i,locale:s,selectComponentClass:c,responsive:l,showSizeChanger:u}=e,d=qZ(e,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:m}=ww(l),{getPrefixCls:g,direction:v,pagination:h={}}=f__namespace.useContext(Xe),p=g("pagination",t),[b,y]=XZ(p),S=u??h.showSizeChanger,x=f__namespace.useMemo(()=>{const I=f__namespace.createElement("span",{className:`${p}-item-ellipsis`},"•••"),P=f__namespace.createElement("button",{className:`${p}-item-link`,type:"button",tabIndex:-1},v==="rtl"?f__namespace.createElement(Za,null):f__namespace.createElement(yc,null)),R=f__namespace.createElement("button",{className:`${p}-item-link`,type:"button",tabIndex:-1},v==="rtl"?f__namespace.createElement(yc,null):f__namespace.createElement(Za,null)),k=f__namespace.createElement("a",{className:`${p}-item-link`},f__namespace.createElement("div",{className:`${p}-item-container`},v==="rtl"?f__namespace.createElement(B0,{className:`${p}-item-link-icon`}):f__namespace.createElement(F0,{className:`${p}-item-link-icon`}),I)),N=f__namespace.createElement("a",{className:`${p}-item-link`},f__namespace.createElement("div",{className:`${p}-item-container`},v==="rtl"?f__namespace.createElement(F0,{className:`${p}-item-link-icon`}):f__namespace.createElement(B0,{className:`${p}-item-link-icon`}),I));return {prevIcon:P,nextIcon:R,jumpPrevIcon:k,jumpNextIcon:N}},[v,p]),[E]=hi("Pagination",O1),$=Object.assign(Object.assign({},E),s),C=Xn(i),w=C==="small"||!!(m&&!C&&l),O=g("select",n),_=V({[`${p}-mini`]:w,[`${p}-rtl`]:v==="rtl"},h==null?void 0:h.className,r,o,y),T=Object.assign(Object.assign({},h==null?void 0:h.style),a);return b(f__namespace.createElement(Mw,Object.assign({},x,d,{style:T,prefixCls:p,selectPrefixCls:O,className:_,selectComponentClass:c||(w?Nw:kw),locale:$,showSizeChanger:S})))},ZZ=YZ;var QZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};const JZ=QZ;var eQ=function(t,n){return f__namespace.createElement(En,Oe({},t,{ref:n,icon:JZ}))};const tQ=f__namespace.forwardRef(eQ);var nQ=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 rQ={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},oQ=f__namespace.forwardRef((e,t)=>{const n=l=>{const{keyCode:u}=l;u===ce.ENTER&&l.preventDefault();},r=l=>{const{keyCode:u}=l,{onClick:d}=e;u===ce.ENTER&&d&&d();},{style:o,noStyle:a,disabled:i}=e,s=nQ(e,["style","noStyle","disabled"]);let c={};return a||(c=Object.assign({},rQ)),i&&(c.pointerEvents="none"),c=Object.assign(Object.assign({},c),o),f__namespace.createElement("div",Object.assign({role:"button",tabIndex:0,ref:t},s,{onKeyDown:n,onKeyUp:r,style:c}))}),aQ=oQ,iQ=e=>{const{renderedText:t,renderedEl:n,item:r,checked:o,disabled:a,prefixCls:i,onClick:s,onRemove:c,showRemove:l}=e,u=V(`${i}-content-item`,{[`${i}-content-item-disabled`]:a||r.disabled,[`${i}-content-item-checked`]:o});let d;(typeof t=="string"||typeof t=="number")&&(d=String(t));const[m]=hi("Transfer",so.Transfer),g={className:u,title:d},v=f__namespace.createElement("span",{className:`${i}-content-item-text`},n);return l?f__namespace.createElement("li",Object.assign({},g),v,f__namespace.createElement(aQ,{disabled:a||r.disabled,className:`${i}-content-item-remove`,"aria-label":m==null?void 0:m.remove,onClick:()=>{c==null||c(r);}},f__namespace.createElement(tQ,null))):(g.onClick=a||r.disabled?void 0:()=>s(r),f__namespace.createElement("li",Object.assign({},g),f__namespace.createElement(Su,{className:`${i}-checkbox`,checked:o,disabled:a||r.disabled}),v))},sQ=f__namespace.memo(iQ),lQ=["handleFilter","handleClear","checkedKeys"],cQ=e=>Object.assign(Object.assign({},{simple:!0,showSizeChanger:!1,showLessItems:!1}),e),uQ=(e,t)=>{const{prefixCls:n,filteredRenderItems:r,selectedKeys:o,disabled:a,showRemove:i,pagination:s,onScroll:c,onItemSelect:l,onItemRemove:u}=e,[d,m]=f__namespace.useState(1),g=f__namespace.useMemo(()=>s?cQ(typeof s=="object"?s:{}):null,[s]),[v,h]=Wt(10,{value:g==null?void 0:g.pageSize});f__namespace.useEffect(()=>{if(g){const C=Math.ceil(r.length/v);m(Math.min(d,C));}},[r,g,v]);const p=C=>{l==null||l(C.key,!o.includes(C.key));},b=C=>{u==null||u([C.key]);},y=C=>{m(C);},S=(C,w)=>{m(C),h(w);},x=f__namespace.useMemo(()=>g?r.slice((d-1)*v,d*v):r,[d,r,g,v]);f__namespace.useImperativeHandle(t,()=>({items:x}));const E=g?f__namespace.createElement(ZZ,{size:"small",disabled:a,simple:g.simple,pageSize:v,showLessItems:g.showLessItems,showSizeChanger:g.showSizeChanger,className:`${n}-pagination`,total:r.length,current:d,onChange:y,onShowSizeChange:S}):null,$=V(`${n}-content`,{[`${n}-content-show-remove`]:i});return f__namespace.createElement(f__namespace.Fragment,null,f__namespace.createElement("ul",{className:$,onScroll:c},(x||[]).map(C=>{let{renderedEl:w,renderedText:O,item:_}=C;return f__namespace.createElement(sQ,{key:_.key,item:_,renderedText:O,renderedEl:w,prefixCls:n,showRemove:i,onClick:p,onRemove:b,checked:o.includes(_.key),disabled:a||_.disabled})})),E)},dQ=f__namespace.forwardRef(uQ),fQ=e=>{const{placeholder:t="",value:n,prefixCls:r,disabled:o,onChange:a,handleClear:i}=e,s=f__namespace.useCallback(c=>{a==null||a(c),c.target.value===""&&(i==null||i());},[a]);return f__namespace.createElement(e$,{placeholder:t,className:r,value:n,onChange:s,disabled:o,allowClear:!0,prefix:f__namespace.createElement(xv,null)})},Aw=fQ,mQ=()=>null;function gQ(e){return !!(e&&!co(e)&&Object.prototype.toString.call(e)==="[object Object]")}function ki(e){return e.filter(t=>!t.disabled).map(t=>t.key)}const vQ=e=>e!==void 0,hQ=e=>{const{prefixCls:t,dataSource:n=[],titleText:r="",checkedKeys:o,disabled:a,showSearch:i=!1,style:s,searchPlaceholder:c,notFoundContent:l,selectAll:u,selectCurrent:d,selectInvert:m,removeAll:g,removeCurrent:v,showSelectAll:h=!0,showRemove:p,pagination:b,direction:y,itemsUnit:S,itemUnit:x,selectAllLabel:E,selectionsIcon:$,footer:C,renderList:w,onItemSelectAll:O,onItemRemove:_,handleFilter:T,handleClear:I,filterOption:P,render:R=mQ}=e,[k,N]=f.useState(""),M=f.useRef({}),L=Z=>{N(Z.target.value),T(Z);},j=()=>{N(""),I();},F=(Z,ae)=>P?P(k,ae,y):Z.includes(k),K=Z=>{let ae=w?w(Z):null;const ne=!!ae;return ne||(ae=f.createElement(dQ,Object.assign({ref:M},Z))),{customize:ne,bodyContent:ae}},B=Z=>{const ae=R(Z),ne=gQ(ae);return {item:Z,renderedEl:ne?ae.label:ae,renderedText:ne?ae.value:ae}},W=f.useMemo(()=>Array.isArray(l)?l[y==="left"?0:1]:l,[l,y]),[H,Y]=f.useMemo(()=>{const Z=[],ae=[];return n.forEach(ne=>{const se=B(ne);k&&!F(se.renderedText,ne)||(Z.push(ne),ae.push(se));}),[Z,ae]},[n,k]),U=f.useMemo(()=>{if(o.length===0)return "none";const Z=$c(o);return H.every(ae=>Z.has(ae.key)||!!ae.disabled)?"all":"part"},[o,H]),X=f.useMemo(()=>{const Z=i?f.createElement("div",{className:`${t}-body-search-wrapper`},f.createElement(Aw,{prefixCls:`${t}-search`,onChange:L,handleClear:j,placeholder:c,value:k,disabled:a})):null,{customize:ae,bodyContent:ne}=K(Object.assign(Object.assign({},An(e,lQ)),{filteredItems:H,filteredRenderItems:Y,selectedKeys:o}));let se;return ae?se=f.createElement("div",{className:`${t}-body-customize-wrapper`},ne):se=H.length?ne:f.createElement("div",{className:`${t}-body-not-found`},W),f.createElement("div",{className:V(i?`${t}-body ${t}-body-with-search`:`${t}-body`)},Z,se)},[i,t,c,k,a,o,H,Y,W]),G=f.createElement(Su,{disabled:n.length===0||a,checked:U==="all",indeterminate:U==="part",className:`${t}-checkbox`,onChange:()=>{O==null||O(H.filter(Z=>!Z.disabled).map(Z=>{let{key:ae}=Z;return ae}),U!=="all");}}),ee=(Z,ae)=>{if(E)return typeof E=="function"?E({selectedCount:Z,totalCount:ae}):E;const ne=ae>1?S:x;return f.createElement(f.Fragment,null,(Z>0?`${Z}/`:"")+ae," ",ne)},te=C&&(C.length<2?C(e):C(e,{direction:y})),ie=V(t,{[`${t}-with-pagination`]:!!b,[`${t}-with-footer`]:!!te}),le=te?f.createElement("div",{className:`${t}-footer`},te):null,Q=!p&&!b&&G;let oe;p?oe=[b?{key:"removeCurrent",label:v,onClick(){var Z;const ae=ki((((Z=M.current)===null||Z===void 0?void 0:Z.items)||[]).map(ne=>ne.item));_==null||_(ae);}}:null,{key:"removeAll",label:g,onClick(){_==null||_(ki(H));}}].filter(Boolean):oe=[{key:"selectAll",label:u,onClick(){const Z=ki(H);O==null||O(Z,Z.length!==o.length);}},b?{key:"selectCurrent",label:d,onClick(){var Z;const ae=((Z=M.current)===null||Z===void 0?void 0:Z.items)||[];O==null||O(ki(ae.map(ne=>ne.item)),!0);}}:null,{key:"selectInvert",label:m,onClick(){var Z;const ae=ki(b?(((Z=M.current)===null||Z===void 0?void 0:Z.items)||[]).map(ve=>ve.item):H),ne=new Set(o),se=[];ae.forEach(ve=>{ne.has(ve)||se.push(ve);}),O==null||O(se,"replace");}}];const ue=f.createElement(Gv,{className:`${t}-header-dropdown`,menu:{items:oe},disabled:a},vQ($)?$:f.createElement(ev,null));return f.createElement("div",{className:ie,style:s},f.createElement("div",{className:`${t}-header`},h?f.createElement(f.Fragment,null,Q,ue):null,f.createElement("span",{className:`${t}-header-selected`},ee(o.length,H.length)),f.createElement("span",{className:`${t}-header-title`},r)),X,le)},Mm=hQ,pQ=e=>{const{disabled:t,moveToLeft:n,moveToRight:r,leftArrowText:o="",rightArrowText:a="",leftActive:i,rightActive:s,className:c,style:l,direction:u,oneWay:d}=e;return f__namespace.createElement("div",{className:c,style:l},f__namespace.createElement(Xt,{type:"primary",size:"small",disabled:t||!s,onClick:r,icon:u!=="rtl"?f__namespace.createElement(Za,null):f__namespace.createElement(yc,null)},a),!d&&f__namespace.createElement(Xt,{type:"primary",size:"small",disabled:t||!i,onClick:n,icon:u!=="rtl"?f__namespace.createElement(yc,null):f__namespace.createElement(Za,null)},o))},Lw=pQ,bQ=e=>{const{antCls:t,componentCls:n,listHeight:r,controlHeightLG:o,marginXXS:a,margin:i}=e,s=`${t}-table`,c=`${t}-input`;return {[`${n}-customize-list`]:{[`${n}-list`]:{flex:"1 1 50%",width:"auto",height:"auto",minHeight:r},[`${s}-wrapper`]:{[`${s}-small`]:{border:0,borderRadius:0,[`${s}-selection-column`]:{width:o,minWidth:o}},[`${s}-pagination${s}-pagination`]:{margin:`${i}px 0 ${a}px`}},[`${c}[disabled]`]:{backgroundColor:"transparent"}}}},W0=(e,t)=>{const{componentCls:n,colorBorder:r}=e;return {[`${n}-list`]:{borderColor:t,"&-search:not([disabled])":{borderColor:r}}}},yQ=e=>{const{componentCls:t}=e;return {[`${t}-status-error`]:Object.assign({},W0(e,e.colorError)),[`${t}-status-warning`]:Object.assign({},W0(e,e.colorWarning))}},CQ=e=>{const{componentCls:t,colorBorder:n,colorSplit:r,lineWidth:o,itemHeight:a,headerHeight:i,transferHeaderVerticalPadding:s,itemPaddingBlock:c,controlItemBgActive:l,colorTextDisabled:u,listHeight:d,listWidth:m,listWidthLG:g,fontSizeIcon:v,marginXS:h,paddingSM:p,lineType:b,antCls:y,iconCls:S,motionDurationSlow:x,controlItemBgHover:E,borderRadiusLG:$,colorBgContainer:C,colorText:w,controlItemBgActiveHover:O}=e;return {display:"flex",flexDirection:"column",width:m,height:d,border:`${o}px ${b} ${n}`,borderRadius:e.borderRadiusLG,"&-with-pagination":{width:g,height:"auto"},"&-search":{[`${S}-search`]:{color:u}},"&-header":{display:"flex",flex:"none",alignItems:"center",height:i,padding:`${s-o}px ${p}px ${s}px`,color:w,background:C,borderBottom:`${o}px ${b} ${r}`,borderRadius:`${$}px ${$}px 0 0`,"> *:not(:last-child)":{marginInlineEnd:4},"> *":{flex:"none"},"&-title":Object.assign(Object.assign({},Qo),{flex:"auto",textAlign:"end"}),"&-dropdown":Object.assign(Object.assign({},ia()),{fontSize:v,transform:"translateY(10%)",cursor:"pointer","&[disabled]":{cursor:"not-allowed"}})},"&-body":{display:"flex",flex:"auto",flexDirection:"column",fontSize:e.fontSize,minHeight:0,"&-search-wrapper":{position:"relative",flex:"none",padding:p}},"&-content":{flex:"auto",margin:0,padding:0,overflow:"auto",listStyle:"none","&-item":{display:"flex",alignItems:"center",minHeight:a,padding:`${c}px ${p}px`,transition:`all ${x}`,"> *:not(:last-child)":{marginInlineEnd:h},"> *":{flex:"none"},"&-text":Object.assign(Object.assign({},Qo),{flex:"auto"}),"&-remove":{position:"relative",color:n,cursor:"pointer",transition:`all ${x}`,"&:hover":{color:e.colorLinkHover},"&::after":{position:"absolute",inset:`-${c}px -50%`,content:'""'}},[`&:not(${t}-list-content-item-disabled)`]:{"&:hover":{backgroundColor:E,cursor:"pointer"},[`&${t}-list-content-item-checked:hover`]:{backgroundColor:O}},"&-checked":{backgroundColor:l},"&-disabled":{color:u,cursor:"not-allowed"}},[`&-show-remove ${t}-list-content-item:not(${t}-list-content-item-disabled):hover`]:{background:"transparent",cursor:"default"}},"&-pagination":{padding:`${e.paddingXS}px 0`,textAlign:"end",borderTop:`${o}px ${b} ${r}`,[`${y}-pagination-options`]:{paddingInlineEnd:e.paddingXS}},"&-body-not-found":{flex:"none",width:"100%",margin:"auto 0",color:u,textAlign:"center"},"&-footer":{borderTop:`${o}px ${b} ${r}`},"&-checkbox":{lineHeight:1}}},SQ=e=>{const{antCls:t,iconCls:n,componentCls:r,headerHeight:o,marginXS:a,marginXXS:i,fontSizeIcon:s,fontSize:c,lineHeight:l,colorBgContainerDisabled:u}=e;return {[r]:Object.assign(Object.assign({},Nt(e)),{position:"relative",display:"flex",alignItems:"stretch",[`${r}-disabled`]:{[`${r}-list`]:{background:u}},[`${r}-list`]:CQ(e),[`${r}-operation`]:{display:"flex",flex:"none",flexDirection:"column",alignSelf:"center",margin:`0 ${a}px`,verticalAlign:"middle",[`${t}-btn`]:{display:"block","&:first-child":{marginBottom:i},[n]:{fontSize:s}}},[`${t}-empty-image`]:{maxHeight:o/2-Math.round(c*l)}})}},$Q=e=>{const{componentCls:t}=e;return {[`${t}-rtl`]:{direction:"rtl"}}},wQ=Dt("Transfer",e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeightLG:o}=e,a=Math.round(t*n),i=gt(e,{transferHeaderVerticalPadding:Math.ceil((o-r-a)/2)});return [SQ(i),bQ(i),yQ(i),$Q(i)]},e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlHeightLG:o}=e,a=Math.round(t*n);return {listWidth:180,listHeight:200,listWidthLG:250,headerHeight:o,itemHeight:r,itemPaddingBlock:(r-a)/2}}),Yu=e=>{const{dataSource:t,targetKeys:n=[],selectedKeys:r,selectAllLabels:o=[],operations:a=[],style:i={},listStyle:s={},locale:c={},titles:l,disabled:u,showSearch:d=!1,operationStyle:m,showSelectAll:g,oneWay:v,pagination:h,status:p,prefixCls:b,className:y,rootClassName:S,selectionsIcon:x,filterOption:E,render:$,footer:C,children:w,rowKey:O,onScroll:_,onChange:T,onSearch:I,onSelectChange:P}=e,{getPrefixCls:R,renderEmpty:k,direction:N,transfer:M}=f.useContext(Xe),L=R("transfer",b),[j,F]=wQ(L),[K,B,W]=_Z(t,O,n),[H,Y,U,X]=TZ(B,W,r),G=f.useCallback((de,$e)=>{if(de==="left"){const pe=typeof $e=="function"?$e(H||[]):$e;U(pe);}else {const pe=typeof $e=="function"?$e(Y||[]):$e;X(pe);}},[H,Y]),ee=f.useCallback((de,$e)=>{de==="left"?P==null||P($e,Y):P==null||P(H,$e);},[H,Y]),te=de=>{var $e;return ($e=l??de.titles)!==null&&$e!==void 0?$e:[]},ie=de=>{_==null||_("left",de);},le=de=>{_==null||_("right",de);},Q=de=>{const $e=de==="right"?H:Y,pe=PZ(K),we=$e.filter(fe=>!pe.has(fe)),He=$c(we),De=de==="right"?we.concat(n):n.filter(fe=>!He.has(fe)),ye=de==="right"?"left":"right";G(ye,[]),ee(ye,[]),T==null||T(De,de,we);},oe=()=>{Q("left");},ue=()=>{Q("right");},Z=(de,$e,pe)=>{G(de,we=>{let He=[];if(pe==="replace")He=$e;else if(pe)He=Array.from(new Set([].concat(Re(we),Re($e))));else {const De=$c($e);He=we.filter(ye=>!De.has(ye));}return ee(de,He),He});},ae=(de,$e)=>{Z("left",de,$e);},ne=(de,$e)=>{Z("right",de,$e);},se=de=>I==null?void 0:I("left",de.target.value),ve=de=>I==null?void 0:I("right",de.target.value),ge=()=>I==null?void 0:I("left",""),ke=()=>I==null?void 0:I("right",""),Ae=(de,$e,pe)=>{const we=Re(de==="left"?H:Y),He=we.indexOf($e);He>-1&&we.splice(He,1),pe&&we.push($e),ee(de,we),e.selectedKeys||G(de,we);},Me=(de,$e)=>{Ae("left",de,$e);},Ee=(de,$e)=>{Ae("right",de,$e);},he=de=>{G("right",[]),T==null||T(n.filter($e=>!de.includes($e)),"left",Re(de));},Pe=de=>typeof s=="function"?s({direction:de}):s||{},Qe=f.useContext(br),{hasFeedback:Be,status:Ke}=Qe,ze=de=>Object.assign(Object.assign(Object.assign({},de),{notFoundContent:(k==null?void 0:k("Transfer"))||f.createElement(qS,{componentName:"Transfer"})}),c),mt=js(Ke,p),et=!w&&h,ot=Y.length>0,Ve=H.length>0,ct=V(L,{[`${L}-disabled`]:u,[`${L}-customize-list`]:!!w,[`${L}-rtl`]:N==="rtl"},kr(L,mt,Be),M==null?void 0:M.className,y,S,F),[bt]=hi("Transfer",so.Transfer),at=ze(bt),[it,_e]=te(at);return j(f.createElement("div",{className:ct,style:Object.assign(Object.assign({},M==null?void 0:M.style),i)},f.createElement(Mm,Object.assign({prefixCls:`${L}-list`,titleText:it,dataSource:B,filterOption:E,style:Pe("left"),checkedKeys:H,handleFilter:se,handleClear:ge,onItemSelect:Me,onItemSelectAll:ae,render:$,showSearch:d,renderList:w,footer:C,onScroll:ie,disabled:u,direction:N==="rtl"?"right":"left",showSelectAll:g,selectAllLabel:o[0],pagination:et,selectionsIcon:x},at)),f.createElement(Lw,{className:`${L}-operation`,rightActive:Ve,rightArrowText:a[0],moveToRight:ue,leftActive:ot,leftArrowText:a[1],moveToLeft:oe,style:m,disabled:u,direction:N,oneWay:v}),f.createElement(Mm,Object.assign({prefixCls:`${L}-list`,titleText:_e,dataSource:W,filterOption:E,style:Pe("right"),checkedKeys:Y,handleFilter:ve,handleClear:ke,onItemSelect:Ee,onItemSelectAll:ne,onItemRemove:he,render:$,showSearch:d,renderList:w,footer:C,onScroll:le,disabled:u,direction:N==="rtl"?"left":"right",showSelectAll:g,selectAllLabel:o[1],showRemove:v,pagination:et,selectionsIcon:x},at))))};Yu.List=Mm;Yu.Search=Aw;Yu.Operation=Lw;const xQ=Yu;function jw(e){return `https://space.bilibili.com/${Wu()}/favlist?fid=${e}`}const ja=class ja{constructor(){Pt(this,"useShuffle");Pt(this,"allFolderServices",[]);Pt(this,"folderServices",[]);Pt(this,"bufferQueue",[]);Pt(this,"total",0);Pt(this,"returnedItems",[]);Pt(this,"foldersLoaded",!1);this.useShuffle=xt.shuffleForFav;}doReturnItems(t){return this.returnedItems=this.returnedItems.concat(t||[]),t}restore(){this.bufferQueue=[...this.returnedItems,...this.bufferQueue],this.returnedItems=[];}get folderHasMore(){return this.folderServices.some(t=>t.hasMore)}get hasMore(){return this.bufferQueue.length>0||this.folderHasMore}get usageInfo(){if(this.foldersLoaded)return z(IQ,{allFavFolderServices:this.allFolderServices})}async loadMore(){if(this.foldersLoaded||await this.getAllFolders(),!this.hasMore)return;const t=()=>{if(this.bufferQueue.length){const n=this.bufferQueue.slice(0,ja.PAGE_SIZE);return this.bufferQueue=this.bufferQueue.slice(ja.PAGE_SIZE),this.doReturnItems(n)}};if(!this.useShuffle){if(this.bufferQueue.length)return t();const n=this.folderServices.find(o=>o.hasMore);if(!n)return;const r=await n.loadMore();return this.doReturnItems(r)}if(this.bufferQueue.length<ja.PAGE_SIZE){for(;this.folderHasMore&&this.bufferQueue.length<100;){const n=this.folderServices.filter(a=>a.hasMore),r=Rm(n).slice(0,5),o=(await Promise.all(r.map(async a=>await a.loadMore()||[]))).flat();this.bufferQueue=[...this.bufferQueue,...o];}this.bufferQueue=Rm(this.bufferQueue);}return t()}async getAllFolders(){const r=(await Ln.get("/x/v3/fav/folder/created/list-all",{params:{up_mid:Wu()}})).data.data.list;this.foldersLoaded=!0,this.allFolderServices=r.map(o=>new EQ(o)),this.folderServices=this.allFolderServices.filter(o=>!xt.excludeFavFolderIds.includes(o.entry.id.toString())),this.total=this.folderServices.reduce((o,a)=>o+a.entry.media_count,0);}};Pt(ja,"PAGE_SIZE",20);let fs=ja;class EQ{constructor(t){Pt(this,"entry");Pt(this,"hasMore");Pt(this,"info");Pt(this,"page",0);this.entry=t,this.hasMore=t.media_count>0;}async loadMore(){if(!this.hasMore)return;const n=(await Ln.get("/x/v3/fav/resource/list",{params:{media_id:this.entry.id,pn:++this.page,ps:20,keyword:"",order:"mtime",type:"0",tid:"0",platform:"web"}})).data;if(!ca(n)){St(n.message);return}this.hasMore=n.data.has_more,this.info=n.data.info;let r=n.data.medias;return r=r.filter(o=>o.title!=="已失效视频"),r.map(o=>{var a;return {...o,folder:this.info,api:"fav",uniqId:`fav-${(a=this.info)==null?void 0:a.id}-${o.bvid}`}})}}var OQ={name:"1uu99zq",styles:"margin-left:15px;cursor:pointer;font-size:12px"};function IQ({allFavFolderServices:e}){const{excludeFavFolderIds:t,shuffleForFav:n}=xn(),r=Xv(),[o,a]=f.useState(!1),i=nt((u,d,m)=>{a(!0),Cr({excludeFavFolderIds:u});}),s=e.length-t.length,c=f.useMemo(()=>e.filter(u=>!t.includes(u.entry.id.toString())).reduce((u,d)=>u+d.entry.media_count,0),[e,t]),l=nt(u=>{u?a(!1):o&&(r==null||r());});return Ce(It,{children:[z(xu,{trigger:"click",placement:"bottom",onOpenChange:l,getPopupContainer:u=>u.parentElement||document.body,content:z(It,{children:z(xQ,{dataSource:e,rowKey:u=>u.entry.id.toString(),titles:["收藏夹","忽略"],targetKeys:t,onChange:i,render:u=>u.entry.title,oneWay:!0,style:{marginBottom:10}})}),children:Ce(Co,{color:"success",css:OQ,children:["收藏夹(",s,") 收藏(",c,")"]})}),z(Rw,{style:{marginLeft:15},checkedChildren:"随机顺序",unCheckedChildren:"默认顺序",checked:n,onChange:u=>{Cr({shuffleForFav:u}),setTimeout(()=>{r==null||r();});}})]})}var PQ=ng,_Q=Lv,RQ=1,TQ=2;function MQ(e,t,n,r){var o=n.length,a=o,i=!r;if(e==null)return !a;for(e=Object(e);o--;){var s=n[o];if(i&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return !1}for(;++o<a;){s=n[o];var c=s[0],l=e[c],u=s[1];if(i&&s[2]){if(l===void 0&&!(c in e))return !1}else {var d=new PQ;if(r)var m=r(l,u,c,e,t,d);if(!(m===void 0?_Q(u,l,RQ|TQ,r,d):m))return !1}}return !0}var NQ=MQ,kQ=Yr;function AQ(e){return e===e&&!kQ(e)}var zw=AQ,LQ=zw,jQ=Os;function zQ(e){for(var t=jQ(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,LQ(o)];}return t}var DQ=zQ;function FQ(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var Dw=FQ,BQ=NQ,HQ=DQ,WQ=Dw;function VQ(e){var t=HQ(e);return t.length==1&&t[0][2]?WQ(t[0][0],t[0][1]):function(n){return n===e||BQ(n,e,t)}}var KQ=VQ,GQ=Jc;function UQ(e,t,n){var r=e==null?void 0:GQ(e,t);return r===void 0?n:r}var XQ=UQ,qQ=Lv,YQ=XQ,ZQ=r1,QQ=hg,JQ=zw,eJ=Dw,tJ=gi,nJ=1,rJ=2;function oJ(e,t){return QQ(e)&&JQ(t)?eJ(tJ(e),t):function(n){var r=YQ(n,e);return r===void 0&&r===t?ZQ(n,e):qQ(t,r,nJ|rJ)}}var aJ=oJ;function iJ(e){return function(t){return t==null?void 0:t[e]}}var sJ=iJ,lJ=Jc;function cJ(e){return function(t){return lJ(t,e)}}var uJ=cJ,dJ=sJ,fJ=uJ,mJ=hg,gJ=gi;function vJ(e){return mJ(e)?dJ(gJ(e)):fJ(e)}var hJ=vJ,pJ=KQ,bJ=aJ,yJ=Qy,CJ=jr,SJ=hJ;function $J(e){return typeof e=="function"?e:e==null?yJ:typeof e=="object"?CJ(e)?bJ(e[0],e[1]):pJ(e):SJ(e)}var wJ=$J;function xJ(e,t,n,r){for(var o=e.length,a=n+(r?1:-1);r?a--:++a<o;)if(t(e[a],a,e))return a;return -1}var EJ=xJ;function OJ(e){return e!==e}var IJ=OJ;function PJ(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return -1}var _J=PJ,RJ=EJ,TJ=IJ,MJ=_J;function NJ(e,t,n){return t===t?MJ(e,t,n):RJ(e,TJ,n)}var kJ=NJ,AJ=kJ;function LJ(e,t){var n=e==null?0:e.length;return !!n&&AJ(e,t,0)>-1}var jJ=LJ;function zJ(e,t,n){for(var r=-1,o=e==null?0:e.length;++r<o;)if(n(t,e[r]))return !0;return !1}var DJ=zJ;function FJ(){}var BJ=FJ,nf=By,HJ=BJ,WJ=Av,VJ=1/0,KJ=nf&&1/WJ(new nf([,-0]))[1]==VJ?function(e){return new nf(e)}:HJ,GJ=KJ,UJ=L$,XJ=jJ,qJ=DJ,YJ=j$,ZJ=GJ,QJ=Av,JJ=200;function eee(e,t,n){var r=-1,o=XJ,a=e.length,i=!0,s=[],c=s;if(n)i=!1,o=qJ;else if(a>=JJ){var l=t?null:ZJ(e);if(l)return QJ(l);i=!1,o=YJ,c=new UJ;}else c=t?[]:s;e:for(;++r<a;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,i&&d===d){for(var m=c.length;m--;)if(c[m]===d)continue e;t&&c.push(d),s.push(u);}else o(c,d,n)||(c!==s&&c.push(d),s.push(u));}return s}var tee=eee,nee=wJ,ree=tee;function oee(e,t){return e&&e.length?ree(e,nee(t)):[]}var aee=oee;const Zu=fn(aee),Rc=class Rc{constructor(){Pt(this,"page",0);Pt(this,"hasMore",!0);}loadMore(){return this.getRecommendTimes(2)}async getRecommend(t=void 0){var i,s;const n=++this.page,o=(await Ln.get("/x/web-interface/wbi/index/top/rcmd",{signal:t,params:{fresh_type:3,version:1,ps:Rc.PAGE_SIZE,fresh_idx:n,fresh_idx_1h:n,homepage_ver:1}})).data;return (i=o.data)!=null&&i.item||St(o.message||"API 请求没有返回结果"),((s=o.data)==null?void 0:s.item)||[]}async getRecommendTimes(t,n=void 0){let r=[];return await(async()=>{r=(await Promise.all(new Array(t).fill(0).map(()=>this.getRecommend(n)))).flat();})(),r=Zu(r,a=>a.id),r.forEach(a=>{var i,s;((i=a.rcmd_reason)==null?void 0:i.reason_type)===1&&((s=a.rcmd_reason).content||(s.content="已关注"));}),r.map(a=>({...a,uniqId:a.id+"-"+crypto.randomUUID(),api:"pc"}))}};Pt(Rc,"PAGE_SIZE",14);let ms=Rc;var iee=Uy,see=1,lee=4;function cee(e){return iee(e,see|lee)}var uee=cee;const dee=fn(uee),Ba=yr({updatedAt:0,bvidSet:Vv()});function fee(e){return $r(Ba).bvidSet.has(e)}Xs()&&setTimeout(()=>{new gs().loadMore();});const ro=class ro{constructor(t){Pt(this,"loaded",!1);Pt(this,"page",-1);Pt(this,"hasMore",!0);Pt(this,"count",0);Pt(this,"items",[]);Pt(this,"keepOrder");this.keepOrder=t??!1;}async fetch(){const n=(await Ln.get("/x/v2/history/toview/web")).data;let r=n.data.list.map(i=>({...i,api:"watchlater",uniqId:`watchlater-${i.bvid}`}));Date.now()>Ba.updatedAt&&(Ba.updatedAt=Date.now(),Ba.bvidSet=Vv(r.map(i=>i.bvid)));const o=la().subtract(2,"days").unix(),a=r.findIndex(i=>i.add_at<o);if(a!==-1){const i=r.slice(0,a);let s=r.slice(a);this.keepOrder&&ro.LAST_ITEMS.length?(s=s.map(c=>({item:c,index:ro.LAST_ITEMS.findIndex(l=>l.bvid===c.bvid)})).sort((c,l)=>c.index-l.index).map(c=>c.item),r=[...i,...s]):xt.shuffleForWatchLater&&(r=[...i,...Rm(s)]);}this.count=n.data.count,this.items=r,ro.LAST_ITEMS=r;}get usageInfo(){if(!this.loaded)return;const{count:t}=this;return z(mee,{count:t})}async loadMore(){if(!this.hasMore)return;this.loaded||(await this.fetch(),this.loaded=!0),this.page++;const t=this.page*ro.PAGE_SIZE,n=t+ro.PAGE_SIZE,r=dee(this.items.slice(t,n));return this.hasMore=n<=this.count-1,r}};Pt(ro,"PAGE_SIZE",15),Pt(ro,"LAST_ITEMS",[]);let gs=ro;function mee({count:e}){const t=e<=90?"success":e<100?"warning":"error",n=`${t!=="success"?"快满了~ ":""}已使用 ${e} / 100`,{shuffleForWatchLater:r}=xn(),o=Xv();return Ce(It,{children:[Ce(Co,{color:t,style:{marginLeft:20,marginRight:0,marginTop:1,cursor:"pointer"},title:n,onClick:()=>{St(`稍后再看: ${n}`);},children:[e," / 100"]}),z(Rw,{style:{marginLeft:15},checkedChildren:"随机顺序",unCheckedChildren:"添加顺序",checked:r,onChange:a=>{Cr({shuffleForWatchLater:a}),setTimeout(()=>{o==null||o();});}})]})}const Uv=f.createContext(void 0);function Xv(){return f.useContext(Uv)}function Fw({debug:e,recreateService:t,fetcher:n,preAction:r,postAction:o,onScrollToTop:a,setUpperRefreshing:i}){const s=CX(),c=UY(()=>({})),[l,u]=f.useState(!0),[d,m]=f.useState([]),[g,v]=f.useState(()=>new ms),[h,p]=f.useState(()=>new Nm(Tr.upMid)),[b,y]=f.useState(()=>new gs),[S,x]=f.useState(()=>new fs),[E,$]=f.useState(!1),[C,w,O]=F$(()=>Date.now()),[_,T]=f.useState(s),[I,P]=f.useState(()=>new AbortController),[R,k]=f.useState(!1),[N,M]=f.useState(void 0),L=nt(async(j=!1,F)=>{var ae;const K=performance.now();if(E)if(s===_){e("refresh(): [start] [refreshing] prevent same tab(%s) refresh()",s);return}else e("refresh(): [start] [refreshing] switchTab %s -> %s, abort existing",_,s),I.abort();else e("refresh(): [start] tab = %s",s);await(a==null?void 0:a());const B=ne=>{$(ne),i==null||i(ne);};B(!0),w(Date.now()),T(s),m([]),M(void 0),u(!0),await(r==null?void 0:r());let W=[],H;const Y=!!(j&&((ae=c.current[s])!=null&&ae.length)),U=!!(Y&&(O0[s].swr||s==="fav"));k(U);const X=Y&&(U||s==="fav"),G=async()=>{try{W=await n(ue);}catch(ne){H=ne;}},ee=t?new ms:g;t&&v(ee);let te=h;s==="dynamic-feed"&&(te=new Nm(Tr.upMid),p(te));let ie=b;s==="watchlater"&&(ie=new gs(F==null?void 0:F.watchlaterKeepOrder),y(ie));let le=S;s==="fav"&&(Y?le.restore():(le=new fs,x(le)));const Q=new AbortController,oe=Q.signal;P(Q);const ue={tab:s,pcRecService:ee,dynamicFeedService:te,watchLaterService:ie,favService:le,abortSignal:oe};if(e("refresh(): shouldReuse=%s swr=%s",Y,U),Y?(W=c.current[s]||[],m(W),X&&await G()):(c.current[s]=[],await G()),oe.aborted){e("refresh(): [legacy] skip setItems/err for aborted, legacy tab = %s",s);return}if(B(!1),H){console.error(H),M(H);return}m(W),O0[s].swr?c.current[s]=W.slice(0,30):c.current[s]=W,s==="dynamic-feed"&&u(te.hasMore),s==="watchlater"&&u(ie.hasMore),s==="fav"&&u(le.hasMore),await(o==null?void 0:o());const Z=performance.now()-K;e("refresh(): [success] cost %s ms",Z.toFixed(0));});return {items:d,itemsCache:c,setItems:m,error:N,refreshedAt:C,setRefreshedAt:w,getRefreshedAt:O,refreshing:E,setRefreshing:$,refreshFor:_,setRefreshFor:T,refreshAbortController:I,setRefreshAbortController:P,hasMore:l,setHasMore:u,swr:R,setSwr:k,pcRecService:g,dynamicFeedService:h,watchLaterService:b,favService:S,setPcRecService:v,setDynamicFeedService:p,setWatchLaterService:y,setFavService:x,refresh:L}}async function gee(){const t=(await Ln.get("/x/polymer/web-dynamic/v1/portal")).data;return (t==null?void 0:t.data.up_list)||[]}class Nm{constructor(t){Pt(this,"offset","");Pt(this,"page",0);Pt(this,"hasMore",!0);Pt(this,"upMid");this.upMid=t;}async loadMore(t=void 0){if(!this.hasMore)return;this.page++;const n={timezone_offset:"-480",type:"video",features:"itemOpusStyle",page:this.page};this.offset&&(n.offset=this.offset),this.upMid&&(n.host_mid=this.upMid);const o=(await Ln.get("/x/polymer/web-dynamic/v1/feed/all",{signal:t,params:n})).data;return this.hasMore=o.data.has_more,this.offset=o.data.offset,o.data.items.filter(s=>s.type==="DYNAMIC_TYPE_AV").map(s=>({...s,api:"dynamic",uniqId:s.id_str||crypto.randomUUID()}))}get usageInfo(){return z(pee,{})}}Pt(Nm,"PAGE_SIZE",15);const Tr=yr({upMid:void 0,upName:void 0,upList:[],upListUpdatedAt:0});setTimeout(()=>{Tr.upList.length||requestIdleCallback(()=>{Bw();});},Zs("5s"));async function Bw(e=!1){if(!e&&Tr.upList.length&&Tr.upListUpdatedAt&&Tr.upListUpdatedAt-Date.now()<Zs("5min"))return;const n=await gee();Tr.upList=n,Tr.upListUpdatedAt=Date.now();}function Hw(e){if(Object.assign(Tr,e),e.upMid){const t=Tr.upList.find(n=>n.mid===e.upMid);t&&(t.has_update=!1);}}var vee={name:"dhit8z",styles:"margin-left:15px"},hee={name:"1mkc8b8",styles:"display:block;max-width:130px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden"};function pee(){const e=Xv(),{upName:t,upList:n}=$r(Tr);Gs(()=>{Bw();});const r=nt(async i=>{Hw(i),await mo(100),e==null||e();}),o=nt(()=>{r({upMid:void 0,upName:void 0});}),a=f.useMemo(()=>{const i={key:"all",icon:z(z0,{size:"small",children:"全"}),label:"全部",onClick:o},s=n.map(c=>{let l=z(z0,{size:"small",src:c.face});return c.has_update&&(l=z(kY,{dot:!0,children:l})),{key:c.mid,icon:l,label:z("span",{title:c.uname,css:hee,children:c.uname}),onClick(){r({upMid:c.mid,upName:c.uname});}}});return [i,...s]},[n,n.map(i=>!!i.has_update)]);return z("div",{css:vee,children:Ce(Ls,{children:[z(Gv,{placement:"bottomLeft",menu:{items:a,style:{maxHeight:"50vh",overflowY:"scroll"}},children:z(Xt,{children:t?`UP: ${t}`:"全部"})}),!!t&&Ce(Xt,{onClick:o,css:[qu,"",""],children:[z(Mt,{name:"Return",size:14,style:{marginRight:5}}),"清除"]})]})})}const rf={removeFav:bee,addFav:See,getVideoFavState:yee};async function bee(e,t){const n=new URLSearchParams({resources:t,media_id:e.toString(),platform:"web",csrf:Us()}),o=(await Ln.post("/x/v3/fav/resource/batch-del",n)).data,a=ca(o);return a||St(o.message||x$),a}async function yee(e){if(!Xs())return;const r=(await Ln.get("/x/v3/fav/folder/created/list-all",{params:{up_mid:Wu(),type:2,rid:e}})).data.data.list.filter(i=>i.fav_state>0),o=r.map(i=>i.title),a=r.map(i=>jw(i.id));return {favFolders:r,favFolderNames:o,favFolderUrls:a}}async function Cee({avid:e,add_media_ids:t="",del_media_ids:n=""}){const r=new URLSearchParams({rid:e.toString(),type:"2",add_media_ids:t,del_media_ids:n,platform:"web",eab_x:"2",ramval:"0",ga:"1",gaia_source:"web_normal",csrf:Us()}),a=(await Ln.post("/x/v3/fav/resource/deal",r)).data,i=ca(a);return i||St((a==null?void 0:a.message)||"fav deal api fail"),i}let of=0,km="";async function See(e){if(!of||!km){const t=new fs;await t.getAllFolders(),of=t.folderServices[0].entry.id,km=t.folderServices[0].entry.title;}return await Cee({avid:e,add_media_ids:of.toString()})}async function Ww(e,t){const n=Wu(),r=Us(),o=new URLSearchParams({fid:e,act:String(t),re_src:"11",gaia_source:"web_main",spmid:"333.999.0.0",extend_content:JSON.stringify({entity:"user",entity_id:n,fp:$ee()}),csrf:r}),i=(await Ln.post("/x/relation/modify",o)).data,s=ca(i);return s||St(i.message||"未知错误"),s}function $ee(){let e,t,n=((e=window.reportObserver)===null||e===void 0||(t=e.cache)===null||t===void 0?void 0:t.fpriskMsg)||{},r="empty";return n&&(r=n.webdriver+""+n.screenResolution+""+n.platform+""+n.hardwareConcurrency+""+n.deviceMemory+""+n.colorDepth+""+n.indexedDb+""+n.language+""+n.openDatabase+""+n.touchSupport+""+n.userAgent),decodeURIComponent(r)}const wee=Kw("follow"),xee=Kw("remove"),Vw={add:wee,remove:xee},Am=Vv();function Eee(e){const t=$r(Am);return e&&t.has(e)}function Kw(e){const t=e==="follow"?5:6;return async function(r){const o=await Ww(r,t);return o&&(e==="follow"?Am.add(r):e==="remove"&&Am.delete(r)),o}}const Oee=Gw("follow"),Iee=Gw("unfollow"),Pee={follow:Oee,unfollow:Iee};function Gw(e){const t=e==="follow"?1:2;return async function(r){return await Ww(r,t)}}function Uw(e){return {all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n]);},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]));},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(o){o(n);}),(r=e.get("*"))&&r.slice().map(function(o){o(t,n);});}}}const _ee="_bili-video-card_mnvtu_1",Ree="_preview-card-wrapper_mnvtu_4",Tee="_preview-card-inner_mnvtu_17",Mee="_watch-later_mnvtu_21",Nee="_badge_mnvtu_24",kee="_recommend-reason_mnvtu_33",Aee="_bangumi-desc_mnvtu_48",Lee="_btn-dislike_mnvtu_51",jee="_btn-dislike-icon_mnvtu_66",zee="_btn-dislike-tip_mnvtu_73",Dee="_disliked-wrapper_mnvtu_88",Fee="_dislike-content-cover_mnvtu_102",Bee="_dislike-content-cover-inner_mnvtu_108",Hee="_dislike-icon_mnvtu_119",Wee="_dislike-reason_mnvtu_122",Vee="_dislike-desc_mnvtu_126",Kee="_dislike-content-action_mnvtu_130",Gee="_skeleton-active_mnvtu_147",Uee="_ant-skeleton-loading_mnvtu_1",Gt={biliVideoCard:_ee,previewCardWrapper:Ree,previewCardInner:Tee,watchLater:Mee,badge:Nee,recommendReason:kee,bangumiDesc:Aee,btnDislike:Lee,btnDislikeIcon:jee,btnDislikeTip:zee,dislikedWrapper:Dee,dislikeContentCover:Fee,dislikeContentCoverInner:Bee,dislikeIcon:Hee,dislikeReason:Wee,dislikeDesc:Vee,dislikeContentAction:Kee,skeletonActive:Gee,antSkeletonLoading:Uee};function Xee(...e){for(const t of e)if(!isNaN(t))return t;return 0}function qee({className:e,videoDuration:t,pvideo:n,mouseEnterRelativeX:r,previewAnimationProgress:o}){const a=f.useRef(null),i=AU(a),[s,c]=f.useState(()=>({width:0,height:0}));Gs(()=>{var m;const d=(m=a.current)==null?void 0:m.getBoundingClientRect();d&&c({width:d.width,height:d.height});});let l=0;if(typeof o=="number")l=o;else {const d=Xee(i.elementX,r||0);s.width&&d&&!isNaN(d)&&(l=d/s.width,l<0&&(l=0),l>1&&(l=1));}const u={videoDuration:t,pvideo:n,elWidth:s.width,elHeight:s.height,progress:l};return z("div",{ref:a,className:V(Gt.previewCardWrapper,e),children:!!(n&&s.width&&s.height&&l)&&z(Yee,{...u})})}function Yee({videoDuration:e,pvideo:t,elWidth:n,elHeight:r,progress:o}){var E;const a=Math.floor((e||0)*o);let i=f.useMemo(()=>{const $=(t==null?void 0:t.index)||[];let C=Qee($,a);return C!==-1?C:a>$[$.length-1]?(C=Math.floor($.length*o)-1,C<0&&(C=0),C):0},[t,a]);const{img_x_len:s,img_y_len:c,img_x_size:l,img_y_size:u}=t,d=c*s;i=i+1;const m=Math.floor(i/d),g=i-m*d,v=((E=t.image)==null?void 0:E[m])||"",h=Math.floor(g/s)+1,p=g-(h-1)*s,b=n*s,y=r*c,S=(h-1)*r,x=(p-1)*n;return z("div",{className:Gt.previewCardInner,style:{backgroundColor:"black",backgroundImage:`url(${v})`,backgroundPosition:`-${x}px -${S}px`,backgroundSize:`${b}px ${y}px`},children:z(Zee,{progress:o})})}function Zee({progress:e}){return z("div",{className:"track",style:{position:"absolute",bottom:0,left:0,backgroundColor:"#eee",width:"100%",height:2},children:z("div",{className:"bar",style:{backgroundColor:fo,height:"100%",width:`${e*100}%`}})})}function Qee(e,t){let n=0,r=e.length-1,o=-1;for(;n<=r;){const s=Math.floor((n+r)/2),c=e[s];if(t===c)return s;c<t?(n=s+1,o=s):r=s-1;}if(o===-1)return -1;const a=e[o],i=e[o+1]??0;return a<t&&t<i?o:-1}const Fi={play:"#widget-video-play-count",danmaku:"#widget-video-danmaku",like:"#widget-agree",bangumiFollow:"#widget-followed"},vs={1:"play",2:"like",3:"danmaku",4:"bangumiFollow",20:"like"},Jee={bangumiFollow:1.3},ete=e=>{const t=vs[e]||vs[1];return Fi[t]},tte=e=>{const t=vs[e];if(t)return Jee[t]};function V0(e){return {iconSvgName:ete(e),iconSvgScale:tte(e)}}var io=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}};io.TABEL="fZodR9XQDSUm21yCkr6zBqiveYah8bt4xsWpHnJE7jL5VG3guMTKNPAwcF";io.TR={};io.S=[11,10,3,8,4,6];io.XOR=177451812;io.ADD=8728348608;(()=>{const e=io.TABEL.length;for(let t=0;t<e;t++)io.TR[io.TABEL[t]]=t;})();var hs=io;hs.av2bv.bind(hs);hs.bv2av.bind(hs);function Xw(e,t){const n=e.api==="pc",r=e.api==="app",o=e.api==="dynamic",a=e.api==="watchlater";return e.api,n?t.pc(e):r?t.app(e):o?t.dynamic(e):a?t.watchlater(e):t.fav(e)}function qw(e){return Xw(e,{pc:nte,app:rte,dynamic:ote,watchlater:ate,fav:ite})}function nte(e){var t;return {avid:String(e.id),bvid:e.bvid,goto:e.goto,href:e.goto==="av"?`/video/${e.bvid}/`:e.uri,title:e.title,coverRaw:e.pic,pubts:e.pubdate,pubdateDisplay:Eo(e.pubdate),duration:e.duration,durationStr:Ku(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 rte(e){var a,i,s;const t=c=>{const{cover_left_icon_1:l,cover_left_text_1:u,cover_left_icon_2:d,cover_left_text_2:m}=e;if(l&&vs[l]===c)return bc(u);if(d&&vs[d]===c)return bc(m)},n=e.param,r=hs.av2bv(Number(e.param)),o=(()=>{var c;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(`[${$n}]: bangumi uri should not starts with 'bilibili://': %s`,e.uri),e.uri;if(e.goto==="picture"){const l=(c=/^bilibili:\/\/article\/(\d+)$/.exec(e.uri))==null?void 0:c[1];return l?`/read/cv${l}`:e.uri}return e.uri})();return {avid:n,bvid:r,goto:e.goto,href:o,title:e.title,coverRaw:e.cover,pubts:void 0,pubdateDisplay:void 0,duration:((a=e.player_args)==null?void 0:a.duration)||0,durationStr:Ku((i=e.player_args)==null?void 0:i.duration),recommendReason:e.rcmd_reason,play:t("play"),like:void 0,coin:void 0,danmaku:t("danmaku"),favorite:void 0,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 ote(e){const t=e.modules.module_dynamic.major.archive,n=e.modules.module_author,r=la().subtract(2,"days").unix(),o=(()=>{const a=n.pub_ts;return a>r?n.pub_time:Eo(a)})();return {avid:t.aid,bvid:t.bvid,goto:"av",href:`/video/${t.bvid}/`,title:t.title,coverRaw:t.cover,pubts:n.pub_ts,pubdateDisplay:o,duration:mX(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 ate(e){const t=hX(e.state),n=`${e.viewed?"【已观看】· ":""}${e.title}`,r=t?z(Nv,{title:Ce(It,{children:["视频已失效, 原因: ",t]}),align:{offset:[0,-5]},placement:"topLeft",children:Ce("del",{children:[e.viewed?"【已观看】· ":"",e.title,"`"]})}):void 0;return {avid:String(e.aid),bvid:e.bvid,goto:"av",href:e.uri,title:n,titleRender:r,coverRaw:e.pic,pubts:e.pubdate,pubdateDisplay:Eo(e.pubdate),pubdateDisplayTitle:`${Eo(e.pubdate,!0)} 发布, ${Eo(e.add_at,!0)} 添加稍后再看`,duration:e.duration,durationStr:Ku(e.duration),recommendReason:`${Eo(e.add_at)} · 稍后再看`,invalidReason:t,play:e.stat.view,like:e.stat.like,coin:void 0,danmaku:e.stat.danmaku,favorite:void 0,authorName:e.owner.name,authorFace:e.owner.face,authorMid:String(e.owner.mid)}}function ite(e){return {avid:String(e.id),bvid:e.bvid,goto:"av",href:`/video/${e.bvid}/`,title:`【${e.folder.title}】· ${e.title}`,titleRender:Ce(It,{children:["【",z(Mt,{name:"Star",size:16,theme:"two-tone",fill:["currentColor",fo],style:{display:"inline-block",verticalAlign:"middle",marginLeft:10,marginRight:4,marginTop:-4}}),e.folder.title,"】· ",e.title]}),coverRaw:e.cover,pubts:e.pubtime,pubdateDisplay:Eo(e.pubtime),duration:e.duration,durationStr:Ku(e.duration),recommendReason:`${Eo(e.fav_time)} · 收藏`,play:e.cnt_info.play,like:void 0,coin:void 0,danmaku:e.cnt_info.danmaku,favorite:e.cnt_info.collect,authorName:e.upper.name,authorFace:e.upper.face,authorMid:String(e.upper.mid)}}const ste=e=>(e||"").replace(/^http:\/\//,"https://");function K0(e){GM.setClipboard(e),St(`已复制: ${e}`);}const Yw=Uw(),lte="--video-card-border-radius",Zw=`var(${lte})`,Qw={borderRadius:Zw},wc=f.memo(function({style:t,className:n,item:r,loading:o,active:a,onRemoveCurrent:i,onMoveToFirst:s,onRefresh:c,emitter:l,...u}){o=o??!r;const d=Ce("div",{className:V("bili-video-card__skeleton",{hide:!o,[Gt.skeletonActive]:o}),children:[z("div",{className:"bili-video-card__skeleton--cover",style:Qw}),z("div",{className:"bili-video-card__skeleton--info",children:Ce("div",{className:"bili-video-card__skeleton--right",children:[z("p",{className:"bili-video-card__skeleton--text"}),z("p",{className:"bili-video-card__skeleton--text short"}),z("p",{className:"bili-video-card__skeleton--light"})]})})]}),m=Tq((r==null?void 0:r.api)==="app"&&r.param),g=f.useMemo(()=>r&&qw(r),[r]),v=Eee(g==null?void 0:g.authorMid);return Ce("div",{style:t,className:V("bili-video-card",Gt.biliVideoCard,n),...u,children:[d,!o&&r&&g&&(m?z(cte,{item:r,emitter:l,dislikedReason:m}):v?z(ute,{cardData:g}):z(dte,{item:r,cardData:g,active:a,emitter:l,onRemoveCurrent:i,onMoveToFirst:s,onRefresh:c}))]})}),cte=f.memo(function({dislikedReason:t,item:n,emitter:r=Yw}){const o=nt(async()=>{if(!(t!=null&&t.id))return;let a=!1,i;try{a=await Sq(n,t.id);}catch(s){i=s;}if(i)return console.error(i.stack||i),E$();a?St("已撤销"):O$(),a&&Xu.delete(n.param);});return _a(r,"cancel-dislike",o),Ce("div",{className:V(Gt.dislikedWrapper),children:[z("div",{className:Gt.dislikeContentCover,children:Ce("div",{className:Gt.dislikeContentCoverInner,children:[z(Mt,{name:"DistraughtFace",size:32,className:Gt.dislikeIcon}),z("div",{className:Gt.dislikeReason,children:t==null?void 0:t.name}),z("div",{className:Gt.dislikeDesc,children:(t==null?void 0:t.toast)||"将减少此类内容推荐"})]})}),z("div",{className:Gt.dislikeContentAction,children:Ce("button",{onClick:o,children:[z(Mt,{name:"Return",size:"16",style:{marginRight:4,marginTop:-2}}),"撤销"]})})]})}),ute=f.memo(function({cardData:t}){const{authorMid:n,authorFace:r,authorName:o}=t,a=nt(async()=>{if(!n)return;await Vw.remove(n)&&St(`已移出黑名单: ${o}`);});return Ce("div",{className:V(Gt.dislikedWrapper),children:[z("div",{className:Gt.dislikeContentCover,children:Ce("div",{className:Gt.dislikeContentCoverInner,children:[z(Mt,{name:"PeopleDelete",size:32,className:Gt.dislikeIcon}),z("div",{className:Gt.dislikeReason,children:"已拉黑"}),Ce("div",{className:Gt.dislikeDesc,children:["UP: ",o]})]})}),z("div",{className:Gt.dislikeContentAction,children:Ce("button",{onClick:a,children:[z(Mt,{name:"Return",size:"16",style:{marginRight:4,marginTop:-2}}),"撤销"]})})]})}),dte=f.memo(function({item:t,cardData:n,active:r=!1,onRemoveCurrent:o,onMoveToFirst:a,onRefresh:i,emitter:s=Yw}){var He,De;const c=t.api==="pc",l=t.api==="app";t.api,t.api,t.api;const{avid:u,bvid:d,goto:m,href:g,title:v,titleRender:h,coverRaw:p,pubdateDisplay:b,pubdateDisplayTitle:y,duration:S,durationStr:x,recommendReason:E,invalidReason:$,play:C,like:w,coin:O,danmaku:_,favorite:T,authorName:I,authorFace:P,authorMid:R,appBadge:k,appBadgeDesc:N}=n,M=m==="av";["av","bangumi","picture"].includes(m)||console.warn(`[${$n}]: none (av,bangumi,picture) goto type %s`,m,t);const L=f.useMemo(()=>ste(p),[p]),[j,F]=f.useState(null),K=f.useRef(!1),B=nt(async()=>{if(!j&&!K.current)try{K.current=!0,F(await yq(u));}finally{K.current=!1;}}),W=f.useRef(null),[H,Y]=f.useState(void 0);Io("mouseenter",ye=>{var Le;const fe=(Le=W.current)==null?void 0:Le.getBoundingClientRect();if(!fe)return;const{x:me}=fe,xe=ye.pageX-window.pageXOffset-me;Y(xe);},{target:W});const U=Yd(W),{autoPreviewWhenHover:X}=xn(),{onStartPreviewAnimation:G,onHotkeyPreviewAnimation:ee,previewAnimationProgress:te}=fte({bvid:d,title:v,autoPreviewWhenHover:X,active:r,tryFetchVideoData:B,videoPreviewWrapperRef:W});vc(()=>{if(r){try{unsafeWindow[`${f4}_activeItem`]=t;}catch(ye){console.warn("set unsafeWindow activeItem error"),console.warn(ye.stack||ye);}xt.autoPreviewWhenKeyboardSelect&&G();}},[r]);const ie=f.useRef(null),le=Yd(ie),Q=fee(d),{accessKey:oe}=xn(),ue=!!oe;f.useEffect(()=>{U&&B();},[U]);const Z=t.api!=="app"||t.api==="app"&&t.goto==="av",ae=f.useRef(!1),ne=nt(async(ye,fe)=>{if(ye==null||ye.preventDefault(),fe??(fe=Q?_0:wl),fe!==wl&&fe!==_0)throw new Error("unexpected usingAction provided");if(ae.current)return {success:!1};ae.current=!0;let me=!1;try{me=await fe(u);}finally{ae.current=!1;}const xe=fe===wl;return me&&(xe?Ba.bvidSet.add(d):Ba.bvidSet.delete(d),t.api==="watchlater"?xe||(await mo(100),o==null||o(t,n)):St(`已${xe?"添加":"移除"}稍后再看`)),{success:me,targetState:xe}}),se=f.useRef(null),ve=Yd(se),ge=nt(ye=>{if(ye==null||ye.stopPropagation(),ye==null||ye.preventDefault(),!et)return t.api!=="app"?St("当前视频不支持提交「我不想看」"):ue?void 0:St("请先获取 access_key");Aq(t);}),ke=f.useMemo(()=>Zd(C),[C]),Ae=f.useMemo(()=>Zd(w),[w]),Me=f.useMemo(()=>Zd(T),[T]),Ee=c?Ae:Me,he=({text:ye,iconSvgName:fe,iconSvgScale:me})=>Ce("span",{className:"bili-video-card__stats--item",children:[z("svg",{className:"bili-video-card__stats--icon",style:{transform:me?`scale(${me})`:void 0},children:z("use",{href:fe})}),z("span",{className:"bili-video-card__stats--text",children:ye})]}),[Pe,Qe]=f.useState(void 0),[Be,Ke]=f.useState(void 0),ze=nt(async()=>{if(t.api!=="watchlater")return;const ye=await rf.getVideoFavState(u);if(ye){const{favFolderNames:fe,favFolderUrls:me}=ye;Qe(fe),Ke(me);}}),mt=nt(()=>{window.open(g,"_blank");});_a(s,"open",mt),_a(s,"toggle-watch-later",()=>ne()),_a(s,"trigger-dislike",()=>ge()),_a(s,"start-preview-animation",G),_a(s,"hotkey-preview-animation",ee);const et=l&&ue&&!!((De=(He=t.three_point)==null?void 0:He.dislike_reasons)!=null&&De.length),ot=nt(()=>{let ye=g;g.startsWith("/")&&(ye=new URL(g,location.href).href),K0(ye);}),Ve=nt(()=>{let ye=g;t.api==="watchlater"&&(ye=`/video/${t.bvid}`);const fe=new URL(ye,location.href).href,me=`iina://open?url=${encodeURIComponent(fe)}`;window.open(me,"_self");}),ct=Ys(),bt=ct==="recommend-app"||ct==="recommend-pc",at=nt(async()=>{if(!R)return St("UP mid 为空!");await Vw.add(R)&&St(`已加入黑名单: ${I}`);}),it=t.api==="dynamic"||(t.api==="app"||t.api==="pc")&&E==="已关注",_e=nt(async()=>{if(!R)return;await Pee.unfollow(R)&&St("已取消关注");}),de=t.api==="dynamic"&&!!i,$e=nt(async()=>{!R||!I||(Hw({upMid:Number(R),upName:I}),await mo(100),await(i==null?void 0:i()));}),pe=f.useMemo(()=>{const ye=Q?"移除稍后再看":"稍后再看";return [{key:"open-link",label:"打开",icon:z(Mt,{name:"EfferentFour",size:15}),onClick:mt},{type:"divider"},{key:"copy-link",label:"复制视频链接",icon:z(Mt,{name:"Copy",size:15}),onClick:ot},{key:"copy-bvid",label:"复制 BVID",icon:z(Mt,{name:"Copy",size:15}),onClick(){K0(d);}},{type:"divider"},et&&{key:"dislike",label:"我不想看",icon:z(Mt,{name:"DislikeTwo",size:15}),onClick(){ge();}},de&&{key:"dymamic-feed-filter-select-up",label:"查看 UP 的动态",icon:z(Mt,{name:"PeopleSearch",size:15}),onClick:$e},it&&{key:"unfollow-up",label:"取消关注",icon:z(Mt,{name:"PeopleMinus",size:15}),onClick:_e},bt&&{key:"blacklist-up",label:"将 UP 加入黑名单",icon:z(Mt,{name:"PeopleDelete",size:15}),onClick:at},t.api==="watchlater"&&{key:"add-fav",icon:z(Mt,{name:"Star",size:15,...Pe!=null&&Pe.length?{theme:"two-tone",fill:["currentColor",fo]}:void 0}),label:Pe!=null&&Pe.length?`已收藏 ${Pe.map(fe=>`「${fe}」`).join("")}`:"快速收藏",async onClick(){!!(Pe!=null&&Pe.length)?Be==null||Be.forEach(me=>{window.open(me,"_blank");}):await rf.addFav(u)&&St(`已加入收藏夹「${km}」`);}},Z&&{key:"watchlater",label:ye,icon:z(Mt,{name:Q?"Delete":"FileCabinet",size:15}),onClick(){ne();}},t.api==="watchlater"&&Q&&{key:"watchlater-readd",label:"重新添加稍候再看 (移到最前)",icon:z(Mt,{name:"AddTwo",size:15}),async onClick(){const{success:fe}=await ne(void 0,wl);fe&&(a==null||a(t,n));}},...t.api==="fav"?[{type:"divider"},{key:"open-fav-folder",label:"浏览收藏夹",icon:z(Mt,{name:"EfferentFour",size:15}),onClick(){const{id:fe}=t.folder,me=jw(fe);window.open(me,"_blank");}},{key:"remove-fav",label:"移除收藏",icon:z(Mt,{name:"Delete",size:15}),async onClick(){if(t.api!=="fav")return;await rf.removeFav(t.folder.id,`${t.id}:${t.type}`)&&(o==null||o(t,n));}}]:[],...qV?[{type:"divider"},{key:"open-in-iina",label:"在 IINA 中打开",icon:z(Mt,{name:"PlayTwo",size:15}),onClick:Ve}]:[]].filter(Boolean)},[t,Z,Q,et,it,bt,de,Pe,Be]),we=nt(ye=>{ye&&ze();});return Ce("div",{className:"bili-video-card__wrap __scale-wrap",children:[z(Gv,{menu:{items:pe},trigger:["contextMenu"],onOpenChange:we,children:z("a",{href:g,target:"_blank",children:Ce("div",{className:"bili-video-card__image __scale-player-wrap",ref:W,style:{...Qw,aspectRatio:"16 / 9"},children:[Ce("div",{className:"bili-video-card__image--wrap",style:{borderRadius:"inherit"},children:[Ce("picture",{className:"v-img bili-video-card__cover",style:{borderRadius:"inherit",overflow:"hidden"},children:[!Tv&&z("source",{srcSet:`${L}@672w_378h_1c_!web-home-common-cover.avif`,type:"image/avif"}),z("source",{srcSet:`${L}@672w_378h_1c_!web-home-common-cover.webp`,type:"image/webp"}),z("img",{src:`${L}@672w_378h_1c_!web-home-common-cover`,loading:"eager"})]}),(U||typeof te=="number")&&z(qee,{videoDuration:S,pvideo:j==null?void 0:j.pvideoData,mouseEnterRelativeX:H,previewAnimationProgress:te}),Z&&Ce("div",{className:`bili-watch-later ${Gt.watchLater}`,style:{display:U||r?"flex":"none"},ref:ie,onClick:ne,children:[z("svg",{className:"bili-watch-later__icon",children:z("use",{href:Q?"#widget-watch-save":"#widget-watch-later"})}),z("span",{className:"bili-watch-later__tip",style:{display:le?"block":"none"},children:Q?"移除稍后再看":"稍后再看"})]}),et&&Ce("div",{ref:se,className:Gt.btnDislike,onClick:ge,style:{display:U?"flex":"none"},children:[z("svg",{className:Gt.btnDislikeIcon,children:z("use",{href:"#widget-close"})}),z("span",{className:Gt.btnDislikeTip,style:{display:ve?"block":"none"},children:"我不想看"})]})]}),z("div",{className:"bili-video-card__mask",style:{borderRadius:"inherit",overflow:"hidden"},children:Ce("div",{className:"bili-video-card__stats",children:[z("div",{className:"bili-video-card__stats--left",children:c?Ce(It,{children:[he({text:ke,iconSvgName:Fi.play}),he({text:m==="av"?Ae:Ee,iconSvgName:Fi.like})]}):l?Ce(It,{children:[!!t.cover_left_text_1&&he({...V0(t.cover_left_icon_1),text:t.cover_left_text_1}),!!t.cover_left_text_2&&he({...V0(t.cover_left_icon_2),text:t.cover_left_text_2})]}):Ce(It,{children:[he({text:ke,iconSvgName:Fi.play}),he({text:(_||0).toString(),iconSvgName:Fi.danmaku})]})}),z("span",{className:"bili-video-card__stats__duration",children:M&&x})]})})]})})}),z("div",{className:"bili-video-card__info __scale-disable",children:Ce("div",{className:"bili-video-card__info--right",children:[z("a",{href:g,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:z("h3",{className:"bili-video-card__info--tit",title:v,children:h??v})}),z("p",{className:"bili-video-card__info--bottom",children:M?Ce("a",{className:"bili-video-card__info--owner",href:`//space.bilibili.com/${R}`,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",title:`${I} ${y||b}`,children:[E?z("span",{className:Gt.recommendReason,children:E}):z("svg",{className:"bili-video-card__info--owner__up",children:z("use",{href:"#widget-up"})}),z("span",{className:"bili-video-card__info--author",children:I}),b&&Ce("span",{className:"bili-video-card__info--date",children:["· ",b]})]}):k||N?Ce("a",{className:"bili-video-card__info--owner",href:g,target:"_blank",children:[z("span",{className:Gt.badge,children:k||""}),z("span",{className:Gt.bangumiDesc,children:N||""})]}):null})]})})]})});function fte({bvid:e,title:t,autoPreviewWhenHover:n,active:r,tryFetchVideoData:o,videoPreviewWrapperRef:a}){const[s,c]=H$(void 0),[l,u]=f.useState(!1),d=f.useRef(!1),m=f.useRef(!1);Io("mouseenter",w=>{d.current=!0,n&&!v.current&&C(!0);},{target:a}),Io("mouseleave",w=>{d.current=!1;},{target:a}),Io("mousemove",w=>{u(!0),n||p();},{target:a});const g=jU(),v=f.useRef(void 0),h=nt(()=>{if(g.current)return !0;if(n){if(m.current){if(!d.current)return !0}else if(!r)return !0}else if(!r||l)return !0;return !1}),p=nt((w=!1)=>{v.current&&cancelAnimationFrame(v.current),v.current=void 0,c(void 0),y(!1);}),[b,y,S]=F$(!1),x=f.useRef(),E=nt(()=>{var w;if(!v.current){C();return}y(O=>!O),b&&((w=x.current)==null||w.call(x,s||0));}),$=nt(()=>s||0),C=nt((w=!1)=>{m.current=w,u(!1),y(!1),o(),p(!0),c(R=>typeof R>"u"?0:R);const O=8e3,_=()=>typeof xt.autoPreviewUpdateInterval=="number"?xt.autoPreviewUpdateInterval:400;let T=performance.now(),I=0;x.current=()=>{T=performance.now()-$()*O;};function P(R){if(h()){p();return}const k=()=>{const N=performance.now()-T,M=Math.min(N%O/O,1);c(M);};S()||(_()?(!I||performance.now()-I>=_())&&(I=performance.now(),k()):k()),v.current=requestAnimationFrame(P);}v.current=requestAnimationFrame(P);});return {onHotkeyPreviewAnimation:E,onStartPreviewAnimation:C,previewAnimationProgress:s}}const mte=()=>document.querySelector(".bili-header__bar");function gte(){const e=mte();return !!(e&&window.getComputedStyle(e).display==="none")}function Lm(){if(!gte())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 xc=yr({value:Lm()});function vte(){return $r(xc).value}function Jw(){return xc.value}setTimeout(()=>{xc.value=Lm();const e=new MutationObserver(()=>{xc.value=Lm();});e.observe(document.documentElement,{attributes:!0,attributeFilter:["style"]}),e.observe(document.body,{attributes:!0,attributeFilter:["class"]}),window.addEventListener("unload",()=>{e.disconnect();});},2e3);const qv="_video-grid_t2sr7_9",ex="_video-grid-new-homepage_t2sr7_17",hte="_limit-two-lines_t2sr7_20",tx="_video-grid-internal-testing_t2sr7_52";const G0="_video-grid-container_t2sr7_80",pte="_video-grid-youtube-like_t2sr7_84",bte="_narrow-mode_t2sr7_112";function yte({enabled:e,refresh:t,minIndex:n=0,maxIndex:r,containerRef:o,getScrollerRect:a,changeScrollY:i,videoCardEmitters:s}){const[c,l]=f.useState(void 0),u=nt(()=>!(!e||Vu())),d=nt(()=>{var C;if(typeof c!="number"||!o.current)return !1;const E=a(),$=(C=o.current.querySelector(`.${Wa.card}.${Wa.cardActive}`))==null?void 0:C.getBoundingClientRect();return !(!E||!$||$.top-E.top<-(E.height+$.height)||$.top-E.top>E.height*2+$.height)}),m=E=>$=>{if(!u())return;$==null||$.preventDefault();let C=typeof E=="number"?E:E();const w=d()?c+C:p();if(w<n){x(n);return}if(w>r){x(r);return}l(w),x(w);};on("leftarrow",m(-1),{exactMatch:!0}),on("rightarrow",m(1),{exactMatch:!0}),on("tab",m(1),{exactMatch:!0}),on("shift.tab",m(-1),{exactMatch:!0});const g=()=>Yv(o.current);on("uparrow",m(()=>-g()),{exactMatch:!0}),on("downarrow",m(g),{exactMatch:!0});const v=()=>{u()&&l(void 0);},h=()=>{if(!(!u()||typeof c!="number"))return s[c]};on("esc",v),on("enter",()=>{var E;!u()||typeof c!="number"||(E=h())==null||E.emit("open");}),on("backspace",()=>{var E;!u()||typeof c!="number"||(E=h())==null||E.emit("trigger-dislike");}),on(["s","w"],()=>{var E;!u()||typeof c!="number"||(E=h())==null||E.emit("toggle-watch-later");},{exactMatch:!0}),on(["period","p"],()=>{var E;!u()||typeof c!="number"||(E=h())==null||E.emit("hotkey-preview-animation");},{exactMatch:!0});function p(){const E=a();if(!E)return 0;const $=y();for(let C=0;C<$.length;C++)if($[C].getBoundingClientRect().top>=E.top)return C;return 0}const b=`.${Wa.card}`;function y(){var E;return [...((E=o.current)==null?void 0:E.querySelectorAll(b))||[]]}function S(E){return y()[E]}function x(E){var O;const $=S(E);(O=$==null?void 0:$.scrollIntoViewIfNeeded)==null||O.call($,!1);const C=a(),w=$.getBoundingClientRect();if(!(!C||!w)){if(w.top<=C.top){const _=-(C.top-w.top+10);i==null||i({offset:_});return}if(C.bottom-w.bottom<10){const _=10-(C.bottom-w.bottom);i==null||i({offset:_});return}}}return {activeIndex:c,clearActiveIndex:v}}const Cte=new Map,Ste=new Map;function Yv(e,t=!0){if(t&&xt.useNarrowMode)return 2;const n=xt.styleUseYoutubeLikeCard?Cte:Ste;let r=n.get(Math.trunc(window.innerWidth));if(r)return r;if(e||(e=document.querySelector(`.${qv}`)),!e)return 0;const o=window.getComputedStyle(e);return o.display!=="grid"?0:(r=o.gridTemplateColumns.split(" ").length,n.set(window.innerWidth,r),r)}function nx(e){return e==="keep-follow-only"||xt.filterMinDurationEnabled||xt.filterMinPlayCountEnabled||xt.filterOutGotoTypePicture}function rx(e,t){return nx(t)?e.filter(n=>{const{play:r,duration:o,recommendReason:a,goto:i}=qw(n),s=a==="已关注"||(a==null?void 0:a.includes("关注"));if(t==="keep-follow-only"&&!s)return !1;const c=i==="av",l=i==="picture";if(c)return u();if(l)return d();return !0;function u(){return s&&!xt.enableFilterForFollowedVideo?!0:!(xt.filterMinPlayCountEnabled&&xt.filterMinPlayCount&&typeof r=="number"&&r<xt.filterMinPlayCount||xt.filterMinDurationEnabled&&xt.filterMinDuration&&o&&o<xt.filterMinDuration)}function d(){return xt.filterOutGotoTypePicture?!!(s&&!xt.enableFilterForFollowedPicture):!0}}):e}var Qu={exports:{}},Zv={exports:{}},ox={exports:{}},an=ox.exports={},Fr,Br;function jm(){throw new Error("setTimeout has not been defined")}function zm(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Fr=setTimeout:Fr=jm;}catch{Fr=jm;}try{typeof clearTimeout=="function"?Br=clearTimeout:Br=zm;}catch{Br=zm;}})();function ax(e){if(Fr===setTimeout)return setTimeout(e,0);if((Fr===jm||!Fr)&&setTimeout)return Fr=setTimeout,setTimeout(e,0);try{return Fr(e,0)}catch{try{return Fr.call(null,e,0)}catch{return Fr.call(this,e,0)}}}function $te(e){if(Br===clearTimeout)return clearTimeout(e);if((Br===zm||!Br)&&clearTimeout)return Br=clearTimeout,clearTimeout(e);try{return Br(e)}catch{try{return Br.call(null,e)}catch{return Br.call(this,e)}}}var ao=[],Ha=!1,Ko,Vl=-1;function wte(){!Ha||!Ko||(Ha=!1,Ko.length?ao=Ko.concat(ao):Vl=-1,ao.length&&ix());}function ix(){if(!Ha){var e=ax(wte);Ha=!0;for(var t=ao.length;t;){for(Ko=ao,ao=[];++Vl<t;)Ko&&Ko[Vl].run();Vl=-1,t=ao.length;}Ko=null,Ha=!1,$te(e);}}an.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];ao.push(new sx(e,t)),ao.length===1&&!Ha&&ax(ix);};function sx(e,t){this.fun=e,this.array=t;}sx.prototype.run=function(){this.fun.apply(null,this.array);};an.title="browser";an.browser=!0;an.env={};an.argv=[];an.version="";an.versions={};function vo(){}an.on=vo;an.addListener=vo;an.once=vo;an.off=vo;an.removeListener=vo;an.removeAllListeners=vo;an.emit=vo;an.prependListener=vo;an.prependOnceListener=vo;an.listeners=function(e){return []};an.binding=function(e){throw new Error("process.binding is not supported")};an.cwd=function(){return "/"};an.chdir=function(e){throw new Error("process.chdir is not supported")};an.umask=function(){return 0};var xte=ox.exports;const af=fn(xte);var Dm;typeof Object.create=="function"?Dm=function(t,n){t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}});}:Dm=function(t,n){t.super_=n;var r=function(){};r.prototype=n.prototype,t.prototype=new r,t.prototype.constructor=t;};const lx=Dm;var Ete=/%[sdj%]/g;function oi(e){if(!el(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(Xr(arguments[n]));return t.join(" ")}for(var n=1,r=arguments,o=r.length,a=String(e).replace(Ete,function(s){if(s==="%%")return "%";if(n>=o)return s;switch(s){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch{return "[Circular]"}default:return s}}),i=r[n];n<o;i=r[++n])Js(i)||!ua(i)?a+=" "+i:a+=" "+Xr(i);return a}function Qv(e,t){if(Vr(global.process))return function(){return Qv(e,t).apply(this,arguments)};if(af.noDeprecation===!0)return e;var n=!1;function r(){if(!n){if(af.throwDeprecation)throw new Error(t);af.traceDeprecation?console.trace(t):console.error(t),n=!0;}return e.apply(this,arguments)}return r}var xl={},sf;function cx(e){if(Vr(sf)&&(sf={}.NODE_DEBUG||""),e=e.toUpperCase(),!xl[e])if(new RegExp("\\b"+e+"\\b","i").test(sf)){var t=0;xl[e]=function(){var n=oi.apply(null,arguments);console.error("%s %d: %s",e,t,n);};}else xl[e]=function(){};return xl[e]}function Xr(e,t){var n={seen:[],stylize:Ite};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),Ju(t)?n.showHidden=t:t&&nh(n,t),Vr(n.showHidden)&&(n.showHidden=!1),Vr(n.depth)&&(n.depth=2),Vr(n.colors)&&(n.colors=!1),Vr(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=Ote),Ec(n,e,n.depth)}Xr.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]};Xr.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function Ote(e,t){var n=Xr.styles[t];return n?"\x1B["+Xr.colors[n][0]+"m"+e+"\x1B["+Xr.colors[n][1]+"m":e}function Ite(e,t){return e}function Pte(e){var t={};return e.forEach(function(n,r){t[n]=!0;}),t}function Ec(e,t,n){if(e.customInspect&&t&&Qi(t.inspect)&&t.inspect!==Xr&&!(t.constructor&&t.constructor.prototype===t)){var r=t.inspect(n,e);return el(r)||(r=Ec(e,r,n)),r}var o=_te(e,t);if(o)return o;var a=Object.keys(t),i=Pte(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),Zi(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return lf(t);if(a.length===0){if(Qi(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(Yi(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(Oc(t))return e.stylize(Date.prototype.toString.call(t),"date");if(Zi(t))return lf(t)}var c="",l=!1,u=["{","}"];if(Jv(t)&&(l=!0,u=["[","]"]),Qi(t)){var d=t.name?": "+t.name:"";c=" [Function"+d+"]";}if(Yi(t)&&(c=" "+RegExp.prototype.toString.call(t)),Oc(t)&&(c=" "+Date.prototype.toUTCString.call(t)),Zi(t)&&(c=" "+lf(t)),a.length===0&&(!l||t.length==0))return u[0]+c+u[1];if(n<0)return Yi(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var m;return l?m=Rte(e,t,n,i,a):m=a.map(function(g){return Fm(e,t,n,i,g,l)}),e.seen.pop(),Tte(m,c,u)}function _te(e,t){if(Vr(t))return e.stylize("undefined","undefined");if(el(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(eh(t))return e.stylize(""+t,"number");if(Ju(t))return e.stylize(""+t,"boolean");if(Js(t))return e.stylize("null","null")}function lf(e){return "["+Error.prototype.toString.call(e)+"]"}function Rte(e,t,n,r,o){for(var a=[],i=0,s=t.length;i<s;++i)vx(t,String(i))?a.push(Fm(e,t,n,r,String(i),!0)):a.push("");return o.forEach(function(c){c.match(/^\d+$/)||a.push(Fm(e,t,n,r,c,!0));}),a}function Fm(e,t,n,r,o,a){var i,s,c;if(c=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]},c.get?c.set?s=e.stylize("[Getter/Setter]","special"):s=e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),vx(r,o)||(i="["+o+"]"),s||(e.seen.indexOf(c.value)<0?(Js(n)?s=Ec(e,c.value,null):s=Ec(e,c.value,n-1),s.indexOf(`
`)>-1&&(a?s=s.split(`
`).map(function(l){return "  "+l}).join(`
`).substr(2):s=`
`+s.split(`
`).map(function(l){return "   "+l}).join(`
`))):s=e.stylize("[Circular]","special")),Vr(i)){if(a&&o.match(/^\d+$/))return s;i=JSON.stringify(""+o),i.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(i=i.substr(1,i.length-2),i=e.stylize(i,"name")):(i=i.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),i=e.stylize(i,"string"));}return i+": "+s}function Tte(e,t,n){var r=e.reduce(function(o,a){return a.indexOf(`
`)>=0,o+a.replace(/\u001b\[\d\d?m/g,"").length+1},0);return r>60?n[0]+(t===""?"":t+`
 `)+" "+e.join(`,
  `)+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function Jv(e){return Array.isArray(e)}function Ju(e){return typeof e=="boolean"}function Js(e){return e===null}function ux(e){return e==null}function eh(e){return typeof e=="number"}function el(e){return typeof e=="string"}function dx(e){return typeof e=="symbol"}function Vr(e){return e===void 0}function Yi(e){return ua(e)&&th(e)==="[object RegExp]"}function ua(e){return typeof e=="object"&&e!==null}function Oc(e){return ua(e)&&th(e)==="[object Date]"}function Zi(e){return ua(e)&&(th(e)==="[object Error]"||e instanceof Error)}function Qi(e){return typeof e=="function"}function fx(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}function mx(e){return Buffer.isBuffer(e)}function th(e){return Object.prototype.toString.call(e)}function cf(e){return e<10?"0"+e.toString(10):e.toString(10)}var Mte=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Nte(){var e=new Date,t=[cf(e.getHours()),cf(e.getMinutes()),cf(e.getSeconds())].join(":");return [e.getDate(),Mte[e.getMonth()],t].join(" ")}function gx(){console.log("%s - %s",Nte(),oi.apply(null,arguments));}function nh(e,t){if(!t||!ua(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}function vx(e,t){return Object.prototype.hasOwnProperty.call(e,t)}const kte={inherits:lx,_extend:nh,log:gx,isBuffer:mx,isPrimitive:fx,isFunction:Qi,isError:Zi,isDate:Oc,isObject:ua,isRegExp:Yi,isUndefined:Vr,isSymbol:dx,isString:el,isNumber:eh,isNullOrUndefined:ux,isNull:Js,isBoolean:Ju,isArray:Jv,inspect:Xr,deprecate:Qv,format:oi,debuglog:cx},Ate=Object.freeze(Object.defineProperty({__proto__:null,_extend:nh,debuglog:cx,default:kte,deprecate:Qv,format:oi,inherits:lx,inspect:Xr,isArray:Jv,isBoolean:Ju,isBuffer:mx,isDate:Oc,isError:Zi,isFunction:Qi,isNull:Js,isNullOrUndefined:ux,isNumber:eh,isObject:ua,isPrimitive:fx,isRegExp:Yi,isString:el,isSymbol:dx,isUndefined:Vr,log:gx},Symbol.toStringTag,{value:"Module"})),Lte=Ax(Ate);var jte=Lte.format;function zte(){(typeof AbortController>"u"||typeof AbortSignal>"u")&&console.error("[promise.timeout] need global AbortController & AbortSingal");}function Dte(e,t){return function(){var n=this,r=[].slice.call(arguments);zte();var o=new AbortController;return r.push(o.signal),new Promise(function(a,i){var s=setTimeout(function(){var c=new hx(t);i(c),o.abort();},t);Promise.resolve(e.apply(n,r)).then(function(c){clearTimeout(s),a(c);},function(c){clearTimeout(s),i(c);});})}}let hx=class px extends Error{constructor(t){super(),this.timeout=t,this.message=jte("timeout of %sms exceed",t),Error.captureStackTrace(this,px);}};Zv.exports=Dte;Zv.exports.TimeoutError=hx;var Fte=Zv.exports;const bx=Fte,Bte=bx.TimeoutError;Qu.exports=function(t,n){const r=t;n=n||{};const o=n.times||5,a=n.timeout;a&&(t=bx(t,a));const i=n.onerror;return async function(){const s=this,c=[].slice.call(arguments),l=new Array(o);for(let u=0;u<o;u++){let d,m;try{d=await t.apply(s,c);}catch(g){m=g;}if(!m)return d;if(m instanceof TypeError)throw m;if(m instanceof Hte)throw m.originalError;l[u]=m,i&&i(m,u);}throw new yx({times:o,timeout:a,fn:r,errors:l})}};class yx 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 Hte 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 Wte=Qu.exports.RetryError=yx;Qu.exports.TimeoutError=Bte;var Vte=Qu.exports;const Kte=fn(Vte);class rh extends Error{constructor(n){super();Pt(this,"json");Error.captureStackTrace(this,rh),this.json=n,this.message=n.message||JSON.stringify(n);}}async function Gte(){var r;const t=(await Gu.get(a1+"/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 rh(t);return St(`${$n}: 未知错误, 请联系开发者

  code=${t.code} message=${t.message||""}`,5e3),[]}return ((r=t==null?void 0:t.data)==null?void 0:r.items)||[]}const Ute=Kte(Gte,{times:5,timeout:2e3,onerror(e,t){console.info("[%s] tryGetRecommend onerror: index=%s",$n,t,e);}});async function Xte(){try{return await Ute()}catch(e){if(e instanceof Wte){console.error(e.errors);const t=[oi("请求出错, 已重试%s次:",e.times),...e.errors.map((n,r)=>oi("  %s) %s",r+1,n.message)),"","请重新获取 access_key 后重试~"].join(`
`);St(t,5e3);}throw e}}class Ic{constructor(){Pt(this,"hasMore",!0);}loadMore(){return this.getRecommendTimes(2)}async getRecommendTimes(t){let n=[];return await(async()=>{n=(await Promise.all(new Array(t).fill(0).map(()=>Xte()))).flat();})(),n=Zu(n,o=>o.param),n.map(o=>({...o,api:"app",uniqId:o.param+"-"+crypto.randomUUID()}))}}Pt(Ic,"PAGE_SIZE",10);const El=vi.extend("service"),Kl=e=>Xw(e,{pc:t=>t.id,app:t=>t.param,dynamic:t=>t.modules.module_dynamic.major.archive.aid,watchlater:t=>t.bvid,fav:t=>t.bvid});function qte(e,t){const n=e.map(Kl);return t=Zu(t,Kl),e.concat(t.filter(r=>!n.includes(Kl(r))))}const Bm=e=>e==="keep-follow-only"||e==="recommend-pc";async function Cx(e,t,n=5){const{pcRecService:r,dynamicFeedService:o,watchLaterService:a,favService:i,tab:s,abortSignal:c}=t,l=new Ic;let u=[],d=!0;const m=async g=>{let v=[];if(s==="dynamic-feed"){v=await o.loadMore(c)||[],d=o.hasMore,u=u.concat(v);return}if(s==="watchlater"){v=await a.loadMore()||[],d=a.hasMore,u=u.concat(v);return}if(s==="fav"){v=await i.loadMore()||[],d=i.hasMore,u=u.concat(v);return}let h;if(s==="keep-follow-only")h=8,El("getMinCount: addMore(restCount = %s) times=%s",g,h);else {const p=Bm(s)?ms.PAGE_SIZE:Ic.PAGE_SIZE,b=nx(s)?n:1.2;h=Math.ceil(g*b/p),El("getMinCount: addMore(restCount = %s) multipler=%s pagesize=%s times=%s",g,b,p,h);}v=Bm(s)?await r.getRecommendTimes(h,c):await l.getRecommendTimes(h),v=rx(v,s),u=u.concat(v),u=Zu(u,Kl);};for(await m(e);;){if(c!=null&&c.aborted){El("getMinCount: break for abortSignal");break}if(!d){El("getMinCount: break for tab=%s hasMore=false",s);break}if(u.length>=e)break;await m(e-u.length);}return u}async function Yte(e){let t=await Cx(Yv(void 0,!1)*2,e,5);return e.tab==="watchlater"&&(t=t.slice(0,20)),t}async function Zte(e){return Cx(Yv()*3+1,e,5)}async function Qte(e,t,n){let r=Bm(t)?await n.getRecommendTimes(e):await new Ic().getRecommendTimes(e);return r=rx(r,t),r}var Hm=new Map,Ol=new WeakMap,U0=0,Jte=void 0;function ene(e){return e?(Ol.has(e)||(U0+=1,Ol.set(e,U0.toString())),Ol.get(e)):"0"}function tne(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?ene(e.root):e[t]}`).toString()}function nne(e){let t=tne(e),n=Hm.get(t);if(!n){const r=new Map;let o;const a=new IntersectionObserver(i=>{i.forEach(s=>{var c;const l=s.isIntersecting&&o.some(u=>s.intersectionRatio>=u);e.trackVisibility&&typeof s.isVisible>"u"&&(s.isVisible=l),(c=r.get(s.target))==null||c.forEach(u=>{u(l,s);});});},e);o=a.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:a,elements:r},Hm.set(t,n);}return n}function rne(e,t,n={},r=Jte){if(typeof window.IntersectionObserver>"u"&&r!==void 0){const c=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:typeof n.threshold=="number"?n.threshold:0,time:0,boundingClientRect:c,intersectionRect:c,rootBounds:c}),()=>{}}const{id:o,observer:a,elements:i}=nne(n);let s=i.get(e)||[];return i.has(e)||i.set(e,s),s.push(t),a.observe(e),function(){s.splice(s.indexOf(t),1),s.length===0&&(i.delete(e),a.unobserve(e)),i.size===0&&(a.disconnect(),Hm.delete(o));}}function one({threshold:e,delay:t,trackVisibility:n,rootMargin:r,root:o,triggerOnce:a,skip:i,initialInView:s,fallbackInView:c,onChange:l}={}){var u;const[d,m]=f__namespace.useState(null),g=f__namespace.useRef(),[v,h]=f__namespace.useState({inView:!!s,entry:void 0});g.current=l,f__namespace.useEffect(()=>{if(i||!d)return;let S;return S=rne(d,(x,E)=>{h({inView:x,entry:E}),g.current&&g.current(x,E),E.isIntersecting&&a&&S&&(S(),S=void 0);},{root:o,rootMargin:r,threshold:e,trackVisibility:n,delay:t},c),()=>{S&&S();}},[Array.isArray(e)?e.toString():e,d,o,r,a,i,n,c,t]);const p=(u=v.entry)==null?void 0:u.target,b=f__namespace.useRef();!d&&p&&!a&&!i&&b.current!==p&&(b.current=p,h({inView:!!s,entry:void 0}));const y=[m,v.inView,v.entry];return y.ref=y[0],y.inView=y[1],y.entry=y[2],y}const Ai=vi.extend("components:RecGrid"),Wa={card:gc({name:"pqxyg1",styles:"border:2px solid transparent;.bili-video-card__info{padding-left:2px;padding-bottom:1px;margin-top:calc(var(--info-margin-top) - 1px);}"}),cardActive:gc("border-color:",fo,";border-radius:",Zw,";overflow:hidden;","")};var ane={name:"1hce7io",styles:"padding:30px 0;display:flex;align-items:center;justify-content:center;font-size:120%"};const Sx=f.forwardRef(({infiteScrollUseWindow:e,shortcutEnabled:t,onScrollToTop:n,className:r,scrollerRef:o,setRefreshing:a,setExtraInfo:i},s)=>{const{useNarrowMode:c,styleUseYoutubeLikeCard:l}=xn(),u=Ys(),[d,m]=f.useState(0),g=nt(async()=>{W(),i==null||i();}),v=nt(()=>{W(),m(1),u==="watchlater"&&(i==null||i(T.usageInfo)),u==="fav"&&(i==null||i(I.usageInfo)),u==="dynamic-feed"&&(i==null||i(_.usageInfo)),N();}),{refresh:h,items:p,setItems:b,error:y,refreshing:S,refreshedAt:x,getRefreshedAt:E,swr:$,hasMore:C,setHasMore:w,pcRecService:O,dynamicFeedService:_,watchLaterService:T,favService:I}=Fw({tab:u,debug:Ai,fetcher:Zte,recreateService:!0,preAction:g,postAction:v,onScrollToTop:n,setUpperRefreshing:a});Gs(h),f.useImperativeHandle(s,()=>({refresh:h}),[]);const P=f.useRef();Io("visibilitychange",Q=>{if(!(document.visibilityState==="visible")){P.current=Date.now();return}S||R.current[x]||u==="watchlater"&&P.current&&Date.now()-P.current>Zs("1h")&&h(!0,{watchlaterKeepOrder:!0});},{target:document});const R=f.useRef({}),k=nt(async()=>{if(!C||S)return;const Q=x;if(R.current[Q])return;R.current={[Q]:!0};let oe=p,ue=!0;try{if(u==="dynamic-feed")oe=oe.concat(await _.loadMore()||[]),ue=_.hasMore;else if(u==="watchlater")oe=oe.concat(await T.loadMore()||[]),ue=T.hasMore;else if(u==="fav")oe=oe.concat(await I.loadMore()||[]),ue=I.hasMore;else for(;!(oe.length>p.length);){const ae=await Qte(u==="keep-follow-only"?5:2,u,O);oe=qte(oe,ae);}}catch(Z){throw R.current[Q]=!1,Z}if(Q!==E()){Ai("loadMore: skip update for mismatch refreshedAt, %s != %s",Q,E());return}Ai("loadMore: seq(%s) len %s -> %s",d+1,p.length,oe.length),w(ue),b(oe),m(Z=>Z+1),R.current[Q]=!1,N();}),N=nt(async()=>{await mo(Tv?100:50),Ai("checkShouldLoadMore(): footerInView = %s",ee.current),ee.current&&k();}),M=f.useRef(null),L=nt(()=>{var Q;if(e){const oe=Jw()+50;return new DOMRect(0,oe,window.innerWidth,window.innerHeight-oe)}else return (Q=o==null?void 0:o.current)==null?void 0:Q.getBoundingClientRect()}),j=Nq(),F=f.useMemo(()=>new Map,[x]),K=f.useMemo(()=>p.map(({uniqId:Q})=>F.get(Q)||(()=>{const oe=Uw();return F.set(Q,oe),oe})()),[p]),{activeIndex:B,clearActiveIndex:W}=yte({enabled:t&&!j,refresh:h,maxIndex:p.length-1,containerRef:M,getScrollerRect:L,videoCardEmitters:K,changeScrollY:e?function({offset:Q,absolute:oe}){const ue=document.documentElement;if(typeof Q=="number"){ue.scrollTop+=Q;return}if(typeof oe=="number"){ue.scrollTop=oe;return}}:void 0}),H=Ja(),Y=nt((Q,oe)=>{b(ue=>{const Z=ue.findIndex(ne=>ne.uniqId===Q.uniqId);if(Z===-1)return ue;let ae=ue.slice();return ae.splice(Z,1),St(`已移除: ${oe.title}`,4e3),u==="watchlater"&&(T.count--,i==null||i(T.usageInfo)),u==="fav"&&(I.total--,i==null||i(I.usageInfo)),ae});}),U=nt((Q,oe)=>{b(ue=>{const Z=ue.find(se=>se.uniqId===Q.uniqId);if(!Z)return ue;const ae=ue.indexOf(Z),ne=ue.slice();return ne.splice(ae,1),ne.unshift(Z),ne});}),{ref:X,inView:G}=one({root:e?null:(o==null?void 0:o.current)||null,rootMargin:`0px 0px ${window.innerHeight}px 0px`,onChange(Q){Q&&(Ai("footerInView change to visible",Q),k());}}),ee=ei(G),te=z("div",{ref:X,css:ane,children:!S&&z(It,{children:C?Ce(It,{children:[z(Mt,{name:"Loading",fill:fo,spin:!0,size:40,style:{marginRight:10}}),"加载中~"]}):"没有更多了~"})}),ie=V(`${$n}-video-grid`,qv,l?pte:H?tx:ex,c&&bte,r);return !p.length||y||S&&!$?z("div",{className:G0,children:z("div",{className:ie,children:new Array(28).fill(void 0).map((Q,oe)=>z(wc,{loading:!0,className:Wa.card},oe))})}):Ce("div",{style:{minHeight:"100%"},className:G0,children:[z("div",{ref:M,className:ie,children:p.map((Q,oe)=>{const ue=oe===B;return z(wc,{className:V(Wa.card,{[Wa.cardActive]:ue}),item:Q,active:ue,onRemoveCurrent:Y,onMoveToFirst:U,onRefresh:h,emitter:K[oe]},Q.uniqId)})}),te]})});function ine(){const e=f.useRef(null),[t,n]=f.useState(!1);return f.useEffect(()=>{function r(){if(!e.current)return;const o=Math.trunc(e.current.getBoundingClientRect().top*10)/10,a=parseInt(getComputedStyle(e.current).top),i=o<=a;n(i);}return r(),document.addEventListener("scroll",r),window.addEventListener("resize",r),window.addEventListener("orientationchange",r),()=>{document.removeEventListener("scroll",r),window.removeEventListener("resize",r),window.removeEventListener("orientationchange",r);}},[t]),[e,t]}const sne="_expand-btn_wdzp9_1",lne="_expanded_wdzp9_12",X0={expandBtn:sne,expanded:lne},cne=f.forwardRef(function({children:t},n){const[r,o]=N$(!1);f.useImperativeHandle(n,()=>o,[o]);const a=z("button",{className:V("primary-btn",X0.expandBtn),onClick:o.toggle,children:z("svg",{className:V({[X0.expanded]:r}),children:z("use",{href:"#widget-arrow"})})});return Ce(It,{children:[a,r&&t]})}),une="_modal-mask_7bwzz_1",dne="_narrow-mode_7bwzz_1",fne="_modal_7bwzz_1",mne="_modal-header_7bwzz_18",gne="_modal-body_7bwzz_19",vne="_btn-refresh_7bwzz_22",Li={modalMask:une,narrowMode:dne,modal:fne,modalHeader:mne,modalBody:gne,btnRefresh:vne};var hne={name:"1q4vxyr",styles:"margin-left:8px"};const pne=f.memo(function({show:t,onHide:n}){const r=f.useRef(null),o=f.useRef(null),{useNarrowMode:a}=xn(),i=f.useMemo(()=>({[Li.narrowMode]:a}),[a]),s=nt((...h)=>{var p;return (p=o.current)==null?void 0:p.refresh(...h)}),[c,l]=f.useState(null),u=nt(()=>{r.current&&(r.current.scrollTop=0);}),d=Rv(),m=f.useMemo(()=>d?{border:`1px solid ${fo}`}:void 0,[d]),[g,v]=f.useState(!1);return z(jv,{show:t,onHide:n,clsModalMask:V(i),clsModal:V(Li.modal,i),styleModal:{...m},children:Ce(Uv.Provider,{value:s,children:[Ce("div",{className:V(Ur.modalHeader,Li.modalHeader),children:[z(q$,{onRefresh:s}),c,z("div",{className:"space",style:{flex:1}}),z(cne,{children:z(mK,{})}),z(wx,{css:hne,refreshing:g,onRefresh:s,className:Li.btnRefresh,refreshHotkeyEnabled:t}),z(zv,{onClick:n})]}),z("div",{className:V(Ur.modalBody,Li.modalBody),ref:r,children:z(Sx,{ref:o,shortcutEnabled:t,onScrollToTop:u,infiteScrollUseWindow:!1,scrollerRef:r,setRefreshing:v,setExtraInfo:l})})]})})}),bne=vi.extend("RecHeader"),q0={btn:Nr`
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    ${qu}
  `,icon:Nr`
    svg {
      width: 14px;
      height: 14px;
    }
  `},Po=yr({modalFeedVisible:xt.initialShowMore,modalConfigVisible:!1}),yne=function(){return $r(Po)},Cne=()=>{Po.modalFeedVisible=!0;},Sne=()=>{Po.modalFeedVisible=!1;},$ne=()=>{Po.modalConfigVisible=!0;},wne=()=>{Po.modalConfigVisible=!1;},$x=f.forwardRef(function({onRefresh:t,refreshing:n,leftSlot:r,rightSlot:o},a){const{accessKey:i,pureRecommend:s}=xn(),{modalFeedVisible:c,modalConfigVisible:l}=$r(Po);on(["shift.comma"],v=>{Vu()||(Po.modalConfigVisible=!Po.modalConfigVisible);},{exactMatch:!0});const[u,d]=ine(),m=nt(()=>{var b;if(!s)return;const v=(b=u.current)==null?void 0:b.parentElement;if(!v)return;const h=v.getBoundingClientRect(),p=Jw();if(h.top<p){const y=p-h.top+1;bne("changing scroll on refresh: rect.top = %s, headerHeight = %s, scrollTop -= %s",h.top,p,y),document.documentElement.scrollTop-=y;}});f.useImperativeHandle(a,()=>({scroll:m}));const g=vte();return z(It,{children:Ce(Uv.Provider,{value:t,children:[Ce("div",{ref:u,className:"area-header",css:[Nr`
              margin-bottom: 0;
              height: 50px;
            `,s&&Nr`
                position: sticky;
                top: ${g-1}px; // 有缝隙, 故 -1 px
                z-index: 1000;
              `,s&&d&&Nr`
                background-color: var(--bg1_float);
                box-shadow: 0 2px 4px rgb(0 0 0 / 8%);
              `,"",""],children:[Ce("div",{className:"left",children:[z("svg",{className:"icon",children:z("use",{href:"#channel-cinephile"})}),z(q$,{onRefresh:t}),r]}),z("div",{className:"right",children:Ce(Ls,{size:"small",children:[o,!i&&z(W$,{style:{marginLeft:5}}),z(Xt,{onClick:$ne,css:q0.btn,children:z(Mt,{name:"Config",css:q0.icon})}),z(wx,{refreshing:n,onRefresh:t,refreshHotkeyEnabled:!(l||c)}),!s&&Ce(Xt,{css:qu,onClick:Cne,children:[z("span",{children:"查看更多"}),z("svg",{css:Nr`
                      width: 12px;
                      height: 12px;
                      margin-left: 2px;
                    `,children:z("use",{href:"#widget-arrow"})})]})]})})]}),z(pne,{show:c,onHide:Sne}),z(tq,{show:l,onHide:wne})]})})}),wx=f.forwardRef(function({onRefresh:e,className:t="",style:n,refreshHotkeyEnabled:r,refreshing:o},a){r??(r=!0);const[i,s]=f.useState(0),c=f.useRef(null),l=nt(()=>{c.current&&(c.current.disabled||c.current.click());});f.useImperativeHandle(a,()=>({click:l}),[]),on("r",()=>{Vu()||r&&l();},{exactMatch:!0});const u=Ys(),{shuffleForFav:d,shuffleForWatchLater:m}=xn(),g=u==="dynamic-feed"||u==="watchlater"&&!m||u==="fav"&&!d?"刷新":"换一换",v=nt(h=>(s(p=>p+360),e==null?void 0:e()));return Ce(Xt,{disabled:o,className:t,style:n,css:Nr`
        ${qu}
        &.ant-btn:not(:disabled):focus-visible {
          outline: none;
        }
      `,ref:c,onClick:v,children:[z("svg",{style:{transform:`rotate(${i}deg)`,width:"11px",height:"11px",marginRight:5,transition:i===360?"transform .5s ease":"unset"},onTransitionEnd:()=>{s(0);},children:z("use",{href:"#widget-roll"})}),z("span",{children:g})]})}),xne={grid:Nr`
    /* card=360 col-gap=16  */
    width: ${360*2+20}px;
    margin: 0 auto;
  `};function Ene(){const{useNarrowMode:e}=xn(),{modalFeedVisible:t,modalConfigVisible:n}=yne(),r=f.useRef(null),o=f.useRef(null),a=nt((...d)=>{var m;return (m=o.current)==null?void 0:m.refresh(...d)}),i=nt(()=>{var d;return (d=r.current)==null?void 0:d.scroll()}),[s,c]=f.useState(!1),[l,u]=f.useState(null);return Ce("section",{"data-area":"推荐",children:[z($x,{ref:r,refreshing:s,onRefresh:a,leftSlot:l}),z(Sx,{ref:o,css:[e&&xne.grid,"",""],shortcutEnabled:!(t||n),infiteScrollUseWindow:!0,onScrollToTop:i,setRefreshing:c,setExtraInfo:u})]})}const One=vi.extend("components:SectionRecommend");function Ine(){const e=f.useMemo(()=>new Array(20).fill(0).map(()=>crypto.randomUUID()),[]),t=Ja(),n=Ys(),{refreshing:r,items:o,refresh:a,error:i,swr:s}=Fw({tab:n,debug:One,fetcher:Yte,recreateService:!1});Gs(a);const c=!o.length||i||r&&!s;return Ce("section",{"data-area":"推荐",children:[z($x,{refreshing:r,onRefresh:a}),z("div",{className:V(qv,hte,t?tx:ex),style:{marginBottom:t?30:0},children:c?e.map(l=>z(wc,{},l)):o.map(l=>z(wc,{item:l},l.uniqId))})]})}la.extend(gq);(function(){if(location.pathname==="/"||location.pathname==="/index.html")return Pne()})();async function Pne(){return La(".adblock-tips"),qi("html.gray",e=>e.classList.remove("gray")),xt.pureRecommend?Rne():_ne()}async function _ne(){const t=Date.now()+1e4;let n;for(;Date.now()<=t;){if(document.querySelector(".bili-layout > section.bili-grid")){const a=document.querySelector(".bili-layout > section.bili-grid");n=i=>a==null?void 0:a.insertAdjacentElement("afterend",i);break}if(Ja()&&document.querySelector(".bili-feed4-layout")){n=a=>{var i;return (i=document.querySelector(".bili-feed4-layout"))==null?void 0:i.insertAdjacentElement("afterbegin",a)};break}await mo(200);}if(!n){console.error(`[${$n}]: init fail`);return}const r=document.createElement("section");n(r),Uu(r).render(z(b$,{children:z(Ine,{})})),Ja()&&La(".bili-feed4 .header-channel");}async function Rne(){var o,a;Tv&&await mo(500),Ja()?((o=document.querySelector(".bili-feed4 .bili-feed4-layout"))==null||o.remove(),La(".bili-feed4 .header-channel"),La(".palette-button-wrap .flexible-roll-btn"),qi(".palette-button-wrap .storage-box",i=>i.classList.remove("hidden")),qi(".palette-button-wrap .top-btn-wrap .top-btn",i=>i.classList.add("visible")),qi(".palette-button-wrap",i=>{i.style.position="absolute";})):((a=document.querySelector(".bili-layout"))==null||a.remove(),La(".bili-footer"),La(".palette-button-wrap > .primary-btn",i=>i.innerText.includes("分区"),2e3).then(()=>{document.querySelectorAll(".palette-button-wrap .primary-btn").forEach(i=>{i.classList.remove("hidden"),i.classList.contains("top-btn")&&i.classList.remove("top-btn");});}));const e=document.createElement("div");e.classList.add(Ja()?"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),Uu(n).render(z(b$,{children:z(Ene,{})}));}

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