bilibili-app-recommend

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

目前為 2023-11-15 提交的版本,檢視 最新版本

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

(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, dy, Zx, Qm, Jx, eE) {
  '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 dy__namespace = /*#__PURE__*/_interopNamespaceDefault(dy);

  var Vx=Object.defineProperty;var Gx=(e,t,n)=>t in e?Vx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Nt=(e,t,n)=>(Gx(e,typeof t!="symbol"?t+"":t,n),n),md=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var ot=(e,t,n)=>(md(e,t,"read from private field"),n?n.call(e):t.get(e)),jn=(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);},Pn=(e,t,n,r)=>(md(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var gd=(e,t,n,r)=>({set _(o){Pn(e,t,o,n);},get _(){return ot(e,t,r)}}),Zt=(e,t,n)=>(md(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 hn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function tE(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 my={exports:{}},zc={};/**
   * @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 nE=f,rE=Symbol.for("react.element"),oE=Symbol.for("react.fragment"),aE=Object.prototype.hasOwnProperty,iE=nE.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,sE={key:!0,ref:!0,__self:!0,__source:!0};function gy(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)aE.call(t,r)&&!sE.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:rE,type:e,key:a,ref:i,props:o,_owner:iE.current}}zc.Fragment=oE;zc.jsx=gy;zc.jsxs=gy;my.exports=zc;var rs=my.exports;function lE(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 cE(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 uE=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(cE(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var a=lE(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}(),Mn="-ms-",Ql="-moz-",kt="-webkit-",hy="comm",Zm="rule",Jm="decl",dE="@import",vy="@keyframes",fE="@layer",mE=Math.abs,Dc=String.fromCharCode,gE=Object.assign;function hE(e,t){return $n(e,0)^45?(((t<<2^$n(e,0))<<2^$n(e,1))<<2^$n(e,2))<<2^$n(e,3):0}function py(e){return e.trim()}function vE(e,t){return (e=t.exec(e))?e[0]:e}function Lt(e,t,n){return e.replace(t,n)}function yf(e,t){return e.indexOf(t)}function $n(e,t){return e.charCodeAt(t)|0}function os(e,t,n){return e.slice(t,n)}function Hr(e){return e.length}function eg(e){return e.length}function ul(e,t){return t.push(e),e}function pE(e,t){return e.map(t).join("")}var jc=1,Va=1,by=0,Kn=0,dn=0,ii="";function Fc(e,t,n,r,o,a,i){return {value:e,root:t,parent:n,type:r,props:o,children:a,line:jc,column:Va,length:i,return:""}}function Oi(e,t){return gE(Fc("",null,null,"",null,null,0),e,{length:-e.length},t)}function bE(){return dn}function yE(){return dn=Kn>0?$n(ii,--Kn):0,Va--,dn===10&&(Va=1,jc--),dn}function nr(){return dn=Kn<by?$n(ii,Kn++):0,Va++,dn===10&&(Va=1,jc++),dn}function Gr(){return $n(ii,Kn)}function Tl(){return Kn}function Os(e,t){return os(ii,e,t)}function as(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function yy(e){return jc=Va=1,by=Hr(ii=e),Kn=0,[]}function Cy(e){return ii="",e}function Nl(e){return py(Os(Kn-1,Cf(e===91?e+2:e===40?e+1:e)))}function CE(e){for(;(dn=Gr())&&dn<33;)nr();return as(e)>2||as(dn)>3?"":" "}function SE(e,t){for(;--t&&nr()&&!(dn<48||dn>102||dn>57&&dn<65||dn>70&&dn<97););return Os(e,Tl()+(t<6&&Gr()==32&&nr()==32))}function Cf(e){for(;nr();)switch(dn){case e:return Kn;case 34:case 39:e!==34&&e!==39&&Cf(dn);break;case 40:e===41&&Cf(e);break;case 92:nr();break}return Kn}function $E(e,t){for(;nr()&&e+dn!==47+10;)if(e+dn===42+42&&Gr()===47)break;return "/*"+Os(t,Kn-1)+"*"+Dc(e===47?e:nr())}function wE(e){for(;!as(Gr());)nr();return Os(e,Kn)}function Sy(e){return Cy(kl("",null,null,null,[""],e=yy(e),0,[0],e))}function kl(e,t,n,r,o,a,i,s,l){for(var c=0,u=0,d=i,m=0,g=0,h=0,v=1,p=1,b=1,y=0,C="",$=o,x=a,w=r,S=C;p;)switch(h=y,y=nr()){case 40:if(h!=108&&$n(S,d-1)==58){yf(S+=Lt(Nl(y),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:S+=Nl(y);break;case 9:case 10:case 13:case 32:S+=CE(h);break;case 92:S+=SE(Tl()-1,7);continue;case 47:switch(Gr()){case 42:case 47:ul(xE($E(nr(),Tl()),t,n),l);break;default:S+="/";}break;case 123*v:s[c++]=Hr(S)*b;case 125*v:case 59:case 0:switch(y){case 0:case 125:p=0;case 59+u:b==-1&&(S=Lt(S,/\f/g,"")),g>0&&Hr(S)-d&&ul(g>32?hv(S+";",r,n,d-1):hv(Lt(S," ","")+";",r,n,d-2),l);break;case 59:S+=";";default:if(ul(w=gv(S,t,n,c,u,o,s,C,$=[],x=[],d),a),y===123)if(u===0)kl(S,t,w,w,$,a,d,s,x);else switch(m===99&&$n(S,3)===110?100:m){case 100:case 108:case 109:case 115:kl(e,w,w,r&&ul(gv(e,w,w,0,0,o,s,C,o,$=[],d),x),o,x,d,s,r?$:x);break;default:kl(S,w,w,w,[""],x,0,s,x);}}c=u=g=0,v=b=1,C=S="",d=i;break;case 58:d=1+Hr(S),g=h;default:if(v<1){if(y==123)--v;else if(y==125&&v++==0&&yE()==125)continue}switch(S+=Dc(y),y*v){case 38:b=u>0?1:(S+="\f",-1);break;case 44:s[c++]=(Hr(S)-1)*b,b=1;break;case 64:Gr()===45&&(S+=Nl(nr())),m=Gr(),u=d=Hr(C=S+=wE(Tl())),y++;break;case 45:h===45&&Hr(S)==2&&(v=0);}}return a}function gv(e,t,n,r,o,a,i,s,l,c,u){for(var d=o-1,m=o===0?a:[""],g=eg(m),h=0,v=0,p=0;h<r;++h)for(var b=0,y=os(e,d+1,d=mE(v=i[h])),C=e;b<g;++b)(C=py(v>0?m[b]+" "+y:Lt(y,/&\f/g,m[b])))&&(l[p++]=C);return Fc(e,t,n,o===0?Zm:s,l,c,u)}function xE(e,t,n){return Fc(e,t,n,hy,Dc(bE()),os(e,2,-2),0)}function hv(e,t,n,r){return Fc(e,t,n,Jm,os(e,0,r),os(e,r+1,-1),r)}function Vo(e,t){for(var n="",r=eg(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function $y(e,t,n,r){switch(e.type){case fE:if(e.children.length)break;case dE:case Jm:return e.return=e.return||e.value;case hy:return "";case vy:return e.return=e.value+"{"+Vo(e.children,r)+"}";case Zm:e.value=e.props.join(",");}return Hr(n=Vo(e.children,r))?e.return=e.value+"{"+n+"}":""}function EE(e){var t=eg(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 OE(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var PE=function(t,n,r){for(var o=0,a=0;o=a,a=Gr(),o===38&&a===12&&(n[r]=1),!as(a);)nr();return Os(t,Kn)},ME=function(t,n){var r=-1,o=44;do switch(as(o)){case 0:o===38&&Gr()===12&&(n[r]=1),t[r]+=PE(Kn-1,n,r);break;case 2:t[r]+=Nl(o);break;case 4:if(o===44){t[++r]=Gr()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Dc(o);}while(o=nr());return t},RE=function(t,n){return Cy(ME(yy(t),n))},vv=new WeakMap,_E=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&&!vv.get(r))&&!o){vv.set(t,!0);for(var a=[],i=RE(n,a),s=r.props,l=0,c=0;l<i.length;l++)for(var u=0;u<s.length;u++,c++)t.props[c]=a[l]?i[l].replace(/&\f/g,s[u]):s[u]+" "+i[l];}}},TE=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="");}};function wy(e,t){switch(hE(e,t)){case 5103:return kt+"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 kt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return kt+e+Ql+e+Mn+e+e;case 6828:case 4268:return kt+e+Mn+e+e;case 6165:return kt+e+Mn+"flex-"+e+e;case 5187:return kt+e+Lt(e,/(\w+).+(:[^]+)/,kt+"box-$1$2"+Mn+"flex-$1$2")+e;case 5443:return kt+e+Mn+"flex-item-"+Lt(e,/flex-|-self/,"")+e;case 4675:return kt+e+Mn+"flex-line-pack"+Lt(e,/align-content|flex-|-self/,"")+e;case 5548:return kt+e+Mn+Lt(e,"shrink","negative")+e;case 5292:return kt+e+Mn+Lt(e,"basis","preferred-size")+e;case 6060:return kt+"box-"+Lt(e,"-grow","")+kt+e+Mn+Lt(e,"grow","positive")+e;case 4554:return kt+Lt(e,/([^-])(transform)/g,"$1"+kt+"$2")+e;case 6187:return Lt(Lt(Lt(e,/(zoom-|grab)/,kt+"$1"),/(image-set)/,kt+"$1"),e,"")+e;case 5495:case 3959:return Lt(e,/(image-set\([^]*)/,kt+"$1$`$1");case 4968:return Lt(Lt(e,/(.+:)(flex-)?(.*)/,kt+"box-pack:$3"+Mn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+kt+e+e;case 4095:case 3583:case 4068:case 2532:return Lt(e,/(.+)-inline(.+)/,kt+"$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($n(e,t+1)){case 109:if($n(e,t+4)!==45)break;case 102:return Lt(e,/(.+:)(.+)-([^]+)/,"$1"+kt+"$2-$3$1"+Ql+($n(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return ~yf(e,"stretch")?wy(Lt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if($n(e,t+1)!==115)break;case 6444:switch($n(e,Hr(e)-3-(~yf(e,"!important")&&10))){case 107:return Lt(e,":",":"+kt)+e;case 101:return Lt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+kt+($n(e,14)===45?"inline-":"")+"box$3$1"+kt+"$2$3$1"+Mn+"$2box$3")+e}break;case 5936:switch($n(e,t+11)){case 114:return kt+e+Mn+Lt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return kt+e+Mn+Lt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return kt+e+Mn+Lt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return kt+e+Mn+e+e}return e}var NE=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Jm:t.return=wy(t.value,t.length);break;case vy:return Vo([Oi(t,{value:Lt(t.value,"@","@"+kt)})],o);case Zm:if(t.length)return pE(t.props,function(a){switch(vE(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Vo([Oi(t,{props:[Lt(a,/:(read-\w+)/,":"+Ql+"$1")]})],o);case"::placeholder":return Vo([Oi(t,{props:[Lt(a,/:(plac\w+)/,":"+kt+"input-$1")]}),Oi(t,{props:[Lt(a,/:(plac\w+)/,":"+Ql+"$1")]}),Oi(t,{props:[Lt(a,/:(plac\w+)/,Mn+"input-$1")]})],o)}return ""})}},kE=[NE],xy=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(v){var p=v.getAttribute("data-emotion");p.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""));});}var o=t.stylisPlugins||kE,a={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var p=v.getAttribute("data-emotion").split(" "),b=1;b<p.length;b++)a[p[b]]=!0;s.push(v);});var l,c=[_E,TE];{var u,d=[$y,IE(function(v){u.insert(v);})],m=EE(c.concat(o,d)),g=function(p){return Vo(Sy(p),m)};l=function(p,b,y,C){u=y,g(p?p+"{"+b.styles+"}":b.styles),C&&(h.inserted[b.name]=!0);};}var h={key:n,sheet:new uE({key:n,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:l};return h.sheet.hydrate(s),h},Ey={exports:{}},Dt={};/** @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 yn=typeof Symbol=="function"&&Symbol.for,tg=yn?Symbol.for("react.element"):60103,ng=yn?Symbol.for("react.portal"):60106,Bc=yn?Symbol.for("react.fragment"):60107,Hc=yn?Symbol.for("react.strict_mode"):60108,Wc=yn?Symbol.for("react.profiler"):60114,Vc=yn?Symbol.for("react.provider"):60109,Gc=yn?Symbol.for("react.context"):60110,rg=yn?Symbol.for("react.async_mode"):60111,Kc=yn?Symbol.for("react.concurrent_mode"):60111,Uc=yn?Symbol.for("react.forward_ref"):60112,Xc=yn?Symbol.for("react.suspense"):60113,LE=yn?Symbol.for("react.suspense_list"):60120,qc=yn?Symbol.for("react.memo"):60115,Yc=yn?Symbol.for("react.lazy"):60116,AE=yn?Symbol.for("react.block"):60121,zE=yn?Symbol.for("react.fundamental"):60117,DE=yn?Symbol.for("react.responder"):60118,jE=yn?Symbol.for("react.scope"):60119;function ir(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case tg:switch(e=e.type,e){case rg:case Kc:case Bc:case Wc:case Hc:case Xc:return e;default:switch(e=e&&e.$$typeof,e){case Gc:case Uc:case Yc:case qc:case Vc:return e;default:return t}}case ng:return t}}}function Iy(e){return ir(e)===Kc}Dt.AsyncMode=rg;Dt.ConcurrentMode=Kc;Dt.ContextConsumer=Gc;Dt.ContextProvider=Vc;Dt.Element=tg;Dt.ForwardRef=Uc;Dt.Fragment=Bc;Dt.Lazy=Yc;Dt.Memo=qc;Dt.Portal=ng;Dt.Profiler=Wc;Dt.StrictMode=Hc;Dt.Suspense=Xc;Dt.isAsyncMode=function(e){return Iy(e)||ir(e)===rg};Dt.isConcurrentMode=Iy;Dt.isContextConsumer=function(e){return ir(e)===Gc};Dt.isContextProvider=function(e){return ir(e)===Vc};Dt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===tg};Dt.isForwardRef=function(e){return ir(e)===Uc};Dt.isFragment=function(e){return ir(e)===Bc};Dt.isLazy=function(e){return ir(e)===Yc};Dt.isMemo=function(e){return ir(e)===qc};Dt.isPortal=function(e){return ir(e)===ng};Dt.isProfiler=function(e){return ir(e)===Wc};Dt.isStrictMode=function(e){return ir(e)===Hc};Dt.isSuspense=function(e){return ir(e)===Xc};Dt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Bc||e===Kc||e===Wc||e===Hc||e===Xc||e===LE||typeof e=="object"&&e!==null&&(e.$$typeof===Yc||e.$$typeof===qc||e.$$typeof===Vc||e.$$typeof===Gc||e.$$typeof===Uc||e.$$typeof===zE||e.$$typeof===DE||e.$$typeof===jE||e.$$typeof===AE)};Dt.typeOf=ir;Ey.exports=Dt;var FE=Ey.exports,Oy=FE,BE={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},HE={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Py={};Py[Oy.ForwardRef]=BE;Py[Oy.Memo]=HE;var WE=!0;function og(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" ";}),r}var My=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||WE===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles);},ag=function(t,n,r){My(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 VE(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 GE={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},KE=/[A-Z]|^ms/g,UE=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ry=function(t){return t.charCodeAt(1)===45},pv=function(t){return t!=null&&typeof t!="boolean"},hd=OE(function(e){return Ry(e)?e:e.replace(KE,"-$&").toLowerCase()}),bv=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(UE,function(r,o,a){return Wr={name:o,styles:a,next:Wr},o})}return GE[t]!==1&&!Ry(t)&&typeof n=="number"&&n!==0?n+"px":n};function is(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 XE(e,t,n)}case"function":{if(e!==void 0){var a=Wr,i=n(e);return Wr=a,is(e,t,i)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function XE(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=is(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]+"}":pv(i)&&(r+=hd(a)+":"+bv(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++)pv(i[s])&&(r+=hd(a)+":"+bv(a,i[s])+";");else {var l=is(e,t,i);switch(a){case"animation":case"animationName":{r+=hd(a)+":"+l+";";break}default:r+=a+"{"+l+"}";}}}return r}var yv=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Wr,Da=function(t,n,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var o=!0,a="";Wr=void 0;var i=t[0];i==null||i.raw===void 0?(o=!1,a+=is(r,n,i)):a+=i[0];for(var s=1;s<t.length;s++)a+=is(r,n,t[s]),o&&(a+=i[s]);yv.lastIndex=0;for(var l="",c;(c=yv.exec(a))!==null;)l+="-"+c[1];var u=VE(a)+l;return {name:u,styles:a,next:Wr}},qE=function(t){return t()},_y=f__namespace["useInsertionEffect"]?f__namespace["useInsertionEffect"]:!1,YE=_y||qE,Cv=_y||f__namespace.useLayoutEffect,Qc={}.hasOwnProperty,Ty=f__namespace.createContext(typeof HTMLElement<"u"?xy({key:"css"}):null);Ty.Provider;var Ny=function(t){return f.forwardRef(function(n,r){var o=f.useContext(Ty);return t(n,o,r)})},ky=f__namespace.createContext({}),Sf="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Ly=function(t,n){var r={};for(var o in n)Qc.call(n,o)&&(r[o]=n[o]);return r[Sf]=t,r},QE=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return My(n,r,o),YE(function(){return ag(n,r,o)}),null},ZE=Ny(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[Sf],a=[r],i="";typeof e.className=="string"?i=og(t.registered,a,e.className):e.className!=null&&(i=e.className+" ");var s=Da(a,void 0,f__namespace.useContext(ky));i+=t.key+"-"+s.name;var l={};for(var c in e)Qc.call(e,c)&&c!=="css"&&c!==Sf&&(l[c]=e[c]);return l.ref=n,l.className=i,f__namespace.createElement(f__namespace.Fragment,null,f__namespace.createElement(QE,{cache:t,serialized:s,isStringTag:typeof o=="string"}),f__namespace.createElement(o,l))}),Ay=ZE,_t=rs.Fragment;function j(e,t,n){return Qc.call(t,"css")?rs.jsx(Ay,Ly(e,t),n):rs.jsx(e,t,n)}function pe(e,t,n){return Qc.call(t,"css")?rs.jsxs(Ay,Ly(e,t),n):rs.jsxs(e,t,n)}function JE(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 ig=JE;function e2(){this.__data__=[],this.size=0;}var t2=e2;function n2(e,t){return e===t||e!==e&&t!==t}var sg=n2,r2=sg;function o2(e,t){for(var n=e.length;n--;)if(r2(e[n][0],t))return n;return -1}var Zc=o2,a2=Zc,i2=Array.prototype,s2=i2.splice;function l2(e){var t=this.__data__,n=a2(t,e);if(n<0)return !1;var r=t.length-1;return n==r?t.pop():s2.call(t,n,1),--this.size,!0}var c2=l2,u2=Zc;function d2(e){var t=this.__data__,n=u2(t,e);return n<0?void 0:t[n][1]}var f2=d2,m2=Zc;function g2(e){return m2(this.__data__,e)>-1}var h2=g2,v2=Zc;function p2(e,t){var n=this.__data__,r=v2(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var b2=p2,y2=t2,C2=c2,S2=f2,$2=h2,w2=b2;function si(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]);}}si.prototype.clear=y2;si.prototype.delete=C2;si.prototype.get=S2;si.prototype.has=$2;si.prototype.set=w2;var Jc=si,x2=Jc;function E2(){this.__data__=new x2,this.size=0;}var I2=E2;function O2(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var P2=O2;function M2(e){return this.__data__.get(e)}var R2=M2;function _2(e){return this.__data__.has(e)}var T2=_2,N2=typeof Ra=="object"&&Ra&&Ra.Object===Object&&Ra,zy=N2,k2=zy,L2=typeof self=="object"&&self&&self.Object===Object&&self,A2=k2||L2||Function("return this")(),kr=A2,z2=kr,D2=z2.Symbol,li=D2,Sv=li,Dy=Object.prototype,j2=Dy.hasOwnProperty,F2=Dy.toString,Pi=Sv?Sv.toStringTag:void 0;function B2(e){var t=j2.call(e,Pi),n=e[Pi];try{e[Pi]=void 0;var r=!0;}catch{}var o=F2.call(e);return r&&(t?e[Pi]=n:delete e[Pi]),o}var H2=B2,W2=Object.prototype,V2=W2.toString;function G2(e){return V2.call(e)}var K2=G2,$v=li,U2=H2,X2=K2,q2="[object Null]",Y2="[object Undefined]",wv=$v?$v.toStringTag:void 0;function Q2(e){return e==null?e===void 0?Y2:q2:wv&&wv in Object(e)?U2(e):X2(e)}var ci=Q2;function Z2(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var qr=Z2,J2=ci,eI=qr,tI="[object AsyncFunction]",nI="[object Function]",rI="[object GeneratorFunction]",oI="[object Proxy]";function aI(e){if(!eI(e))return !1;var t=J2(e);return t==nI||t==rI||t==tI||t==oI}var jy=aI,iI=kr,sI=iI["__core-js_shared__"],lI=sI,vd=lI,xv=function(){var e=/[^.]+$/.exec(vd&&vd.keys&&vd.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function cI(e){return !!xv&&xv in e}var uI=cI,dI=Function.prototype,fI=dI.toString;function mI(e){if(e!=null){try{return fI.call(e)}catch{}try{return e+""}catch{}}return ""}var Fy=mI,gI=jy,hI=uI,vI=qr,pI=Fy,bI=/[\\^$.*+?()[\]{}|]/g,yI=/^\[object .+?Constructor\]$/,CI=Function.prototype,SI=Object.prototype,$I=CI.toString,wI=SI.hasOwnProperty,xI=RegExp("^"+$I.call(wI).replace(bI,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function EI(e){if(!vI(e)||hI(e))return !1;var t=gI(e)?xI:yI;return t.test(pI(e))}var II=EI;function OI(e,t){return e==null?void 0:e[t]}var PI=OI,MI=II,RI=PI;function _I(e,t){var n=RI(e,t);return MI(n)?n:void 0}var na=_I,TI=na,NI=kr,kI=TI(NI,"Map"),lg=kI,LI=na,AI=LI(Object,"create"),eu=AI,Ev=eu;function zI(){this.__data__=Ev?Ev(null):{},this.size=0;}var DI=zI;function jI(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var FI=jI,BI=eu,HI="__lodash_hash_undefined__",WI=Object.prototype,VI=WI.hasOwnProperty;function GI(e){var t=this.__data__;if(BI){var n=t[e];return n===HI?void 0:n}return VI.call(t,e)?t[e]:void 0}var KI=GI,UI=eu,XI=Object.prototype,qI=XI.hasOwnProperty;function YI(e){var t=this.__data__;return UI?t[e]!==void 0:qI.call(t,e)}var QI=YI,ZI=eu,JI="__lodash_hash_undefined__";function eO(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ZI&&t===void 0?JI:t,this}var tO=eO,nO=DI,rO=FI,oO=KI,aO=QI,iO=tO;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=nO;ui.prototype.delete=rO;ui.prototype.get=oO;ui.prototype.has=aO;ui.prototype.set=iO;var sO=ui,Iv=sO,lO=Jc,cO=lg;function uO(){this.size=0,this.__data__={hash:new Iv,map:new(cO||lO),string:new Iv};}var dO=uO;function fO(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var mO=fO,gO=mO;function hO(e,t){var n=e.__data__;return gO(t)?n[typeof t=="string"?"string":"hash"]:n.map}var tu=hO,vO=tu;function pO(e){var t=vO(this,e).delete(e);return this.size-=t?1:0,t}var bO=pO,yO=tu;function CO(e){return yO(this,e).get(e)}var SO=CO,$O=tu;function wO(e){return $O(this,e).has(e)}var xO=wO,EO=tu;function IO(e,t){var n=EO(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var OO=IO,PO=dO,MO=bO,RO=SO,_O=xO,TO=OO;function di(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]);}}di.prototype.clear=PO;di.prototype.delete=MO;di.prototype.get=RO;di.prototype.has=_O;di.prototype.set=TO;var cg=di,NO=Jc,kO=lg,LO=cg,AO=200;function zO(e,t){var n=this.__data__;if(n instanceof NO){var r=n.__data__;if(!kO||r.length<AO-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new LO(r);}return n.set(e,t),this.size=n.size,this}var DO=zO,jO=Jc,FO=I2,BO=P2,HO=R2,WO=T2,VO=DO;function fi(e){var t=this.__data__=new jO(e);this.size=t.size;}fi.prototype.clear=FO;fi.prototype.delete=BO;fi.prototype.get=HO;fi.prototype.has=WO;fi.prototype.set=VO;var ug=fi;function GO(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var KO=GO,UO=na,XO=function(){try{var e=UO(Object,"defineProperty");return e({},"",{}),e}catch{}}(),By=XO,Ov=By;function qO(e,t,n){t=="__proto__"&&Ov?Ov(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n;}var Hy=qO,YO=Hy,QO=sg,ZO=Object.prototype,JO=ZO.hasOwnProperty;function eP(e,t,n){var r=e[t];(!(JO.call(e,t)&&QO(r,n))||n===void 0&&!(t in e))&&YO(e,t,n);}var dg=eP,tP=dg,nP=Hy;function rP(e,t,n,r){var o=!n;n||(n={});for(var a=-1,i=t.length;++a<i;){var s=t[a],l=r?r(n[s],e[s],s,n,e):void 0;l===void 0&&(l=e[s]),o?nP(n,s,l):tP(n,s,l);}return n}var Ps=rP;function oP(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var aP=oP;function iP(e){return e!=null&&typeof e=="object"}var Mo=iP,sP=ci,lP=Mo,cP="[object Arguments]";function uP(e){return lP(e)&&sP(e)==cP}var dP=uP,Pv=dP,fP=Mo,Wy=Object.prototype,mP=Wy.hasOwnProperty,gP=Wy.propertyIsEnumerable,hP=Pv(function(){return arguments}())?Pv:function(e){return fP(e)&&mP.call(e,"callee")&&!gP.call(e,"callee")},fg=hP,vP=Array.isArray,Lr=vP,Zl={exports:{}};function pP(){return !1}var bP=pP;Zl.exports;(function(e,t){var n=kr,r=bP,o=t&&!t.nodeType&&t,a=o&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===o,s=i?n.Buffer:void 0,l=s?s.isBuffer:void 0,c=l||r;e.exports=c;})(Zl,Zl.exports);var mg=Zl.exports,yP=9007199254740991,CP=/^(?:0|[1-9]\d*)$/;function SP(e,t){var n=typeof e;return t=t??yP,!!t&&(n=="number"||n!="symbol"&&CP.test(e))&&e>-1&&e%1==0&&e<t}var gg=SP,$P=9007199254740991;function wP(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=$P}var hg=wP,xP=ci,EP=hg,IP=Mo,OP="[object Arguments]",PP="[object Array]",MP="[object Boolean]",RP="[object Date]",_P="[object Error]",TP="[object Function]",NP="[object Map]",kP="[object Number]",LP="[object Object]",AP="[object RegExp]",zP="[object Set]",DP="[object String]",jP="[object WeakMap]",FP="[object ArrayBuffer]",BP="[object DataView]",HP="[object Float32Array]",WP="[object Float64Array]",VP="[object Int8Array]",GP="[object Int16Array]",KP="[object Int32Array]",UP="[object Uint8Array]",XP="[object Uint8ClampedArray]",qP="[object Uint16Array]",YP="[object Uint32Array]",Ut={};Ut[HP]=Ut[WP]=Ut[VP]=Ut[GP]=Ut[KP]=Ut[UP]=Ut[XP]=Ut[qP]=Ut[YP]=!0;Ut[OP]=Ut[PP]=Ut[FP]=Ut[MP]=Ut[BP]=Ut[RP]=Ut[_P]=Ut[TP]=Ut[NP]=Ut[kP]=Ut[LP]=Ut[AP]=Ut[zP]=Ut[DP]=Ut[jP]=!1;function QP(e){return IP(e)&&EP(e.length)&&!!Ut[xP(e)]}var ZP=QP;function JP(e){return function(t){return e(t)}}var vg=JP,Jl={exports:{}};Jl.exports;(function(e,t){var n=zy,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===r,i=a&&n.process,s=function(){try{var l=o&&o.require&&o.require("util").types;return l||i&&i.binding&&i.binding("util")}catch{}}();e.exports=s;})(Jl,Jl.exports);var pg=Jl.exports,eM=ZP,tM=vg,Mv=pg,Rv=Mv&&Mv.isTypedArray,nM=Rv?tM(Rv):eM,Vy=nM,rM=aP,oM=fg,aM=Lr,iM=mg,sM=gg,lM=Vy,cM=Object.prototype,uM=cM.hasOwnProperty;function dM(e,t){var n=aM(e),r=!n&&oM(e),o=!n&&!r&&iM(e),a=!n&&!r&&!o&&lM(e),i=n||r||o||a,s=i?rM(e.length,String):[],l=s.length;for(var c in e)(t||uM.call(e,c))&&!(i&&(c=="length"||o&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||sM(c,l)))&&s.push(c);return s}var Gy=dM,fM=Object.prototype;function mM(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||fM;return e===n}var bg=mM;function gM(e,t){return function(n){return e(t(n))}}var Ky=gM,hM=Ky,vM=hM(Object.keys,Object),pM=vM,bM=bg,yM=pM,CM=Object.prototype,SM=CM.hasOwnProperty;function $M(e){if(!bM(e))return yM(e);var t=[];for(var n in Object(e))SM.call(e,n)&&n!="constructor"&&t.push(n);return t}var wM=$M,xM=jy,EM=hg;function IM(e){return e!=null&&EM(e.length)&&!xM(e)}var Uy=IM,OM=Gy,PM=wM,MM=Uy;function RM(e){return MM(e)?OM(e):PM(e)}var Ms=RM,_M=Ps,TM=Ms;function NM(e,t){return e&&_M(t,TM(t),e)}var kM=NM;function LM(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var AM=LM,zM=qr,DM=bg,jM=AM,FM=Object.prototype,BM=FM.hasOwnProperty;function HM(e){if(!zM(e))return jM(e);var t=DM(e),n=[];for(var r in e)r=="constructor"&&(t||!BM.call(e,r))||n.push(r);return n}var WM=HM,VM=Gy,KM=WM,UM=Uy;function XM(e){return UM(e)?VM(e,!0):KM(e)}var yg=XM,qM=Ps,YM=yg;function QM(e,t){return e&&qM(t,YM(t),e)}var ZM=QM,ec={exports:{}};ec.exports;(function(e,t){var n=kr,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===r,i=a?n.Buffer:void 0,s=i?i.allocUnsafe:void 0;function l(c,u){if(u)return c.slice();var d=c.length,m=s?s(d):new c.constructor(d);return c.copy(m),m}e.exports=l;})(ec,ec.exports);var JM=ec.exports;function eR(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var Xy=eR;function tR(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 nR=tR;function rR(){return []}var qy=rR,oR=nR,aR=qy,iR=Object.prototype,sR=iR.propertyIsEnumerable,_v=Object.getOwnPropertySymbols,lR=_v?function(e){return e==null?[]:(e=Object(e),oR(_v(e),function(t){return sR.call(e,t)}))}:aR,Cg=lR,cR=Ps,uR=Cg;function dR(e,t){return cR(e,uR(e),t)}var fR=dR;function mR(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var Sg=mR,gR=Ky,hR=gR(Object.getPrototypeOf,Object),$g=hR,vR=Sg,pR=$g,bR=Cg,yR=qy,CR=Object.getOwnPropertySymbols,SR=CR?function(e){for(var t=[];e;)vR(t,bR(e)),e=pR(e);return t}:yR,Yy=SR,$R=Ps,wR=Yy;function xR(e,t){return $R(e,wR(e),t)}var ER=xR,IR=Sg,OR=Lr;function PR(e,t,n){var r=t(e);return OR(e)?r:IR(r,n(e))}var Qy=PR,MR=Qy,RR=Cg,_R=Ms;function TR(e){return MR(e,_R,RR)}var Zy=TR,NR=Qy,kR=Yy,LR=yg;function AR(e){return NR(e,LR,kR)}var Jy=AR,zR=na,DR=kr,jR=zR(DR,"DataView"),FR=jR,BR=na,HR=kr,WR=BR(HR,"Promise"),VR=WR,GR=na,KR=kr,UR=GR(KR,"Set"),e1=UR,XR=na,qR=kr,YR=XR(qR,"WeakMap"),QR=YR,$f=FR,wf=lg,xf=VR,Ef=e1,If=QR,t1=ci,mi=Fy,Tv="[object Map]",ZR="[object Object]",Nv="[object Promise]",kv="[object Set]",Lv="[object WeakMap]",Av="[object DataView]",JR=mi($f),e_=mi(wf),t_=mi(xf),n_=mi(Ef),r_=mi(If),ko=t1;($f&&ko(new $f(new ArrayBuffer(1)))!=Av||wf&&ko(new wf)!=Tv||xf&&ko(xf.resolve())!=Nv||Ef&&ko(new Ef)!=kv||If&&ko(new If)!=Lv)&&(ko=function(e){var t=t1(e),n=t==ZR?e.constructor:void 0,r=n?mi(n):"";if(r)switch(r){case JR:return Av;case e_:return Tv;case t_:return Nv;case n_:return kv;case r_:return Lv}return t});var nu=ko,o_=Object.prototype,a_=o_.hasOwnProperty;function i_(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&a_.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var s_=i_,l_=kr,c_=l_.Uint8Array,n1=c_,zv=n1;function u_(e){var t=new e.constructor(e.byteLength);return new zv(t).set(new zv(e)),t}var wg=u_,d_=wg;function f_(e,t){var n=t?d_(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var m_=f_,g_=/\w*$/;function h_(e){var t=new e.constructor(e.source,g_.exec(e));return t.lastIndex=e.lastIndex,t}var v_=h_,Dv=li,jv=Dv?Dv.prototype:void 0,Fv=jv?jv.valueOf:void 0;function p_(e){return Fv?Object(Fv.call(e)):{}}var b_=p_,y_=wg;function C_(e,t){var n=t?y_(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var S_=C_,$_=wg,w_=m_,x_=v_,E_=b_,I_=S_,O_="[object Boolean]",P_="[object Date]",M_="[object Map]",R_="[object Number]",__="[object RegExp]",T_="[object Set]",N_="[object String]",k_="[object Symbol]",L_="[object ArrayBuffer]",A_="[object DataView]",z_="[object Float32Array]",D_="[object Float64Array]",j_="[object Int8Array]",F_="[object Int16Array]",B_="[object Int32Array]",H_="[object Uint8Array]",W_="[object Uint8ClampedArray]",V_="[object Uint16Array]",G_="[object Uint32Array]";function K_(e,t,n){var r=e.constructor;switch(t){case L_:return $_(e);case O_:case P_:return new r(+e);case A_:return w_(e,n);case z_:case D_:case j_:case F_:case B_:case H_:case W_:case V_:case G_:return I_(e,n);case M_:return new r;case R_:case N_:return new r(e);case __:return x_(e);case T_:return new r;case k_:return E_(e)}}var U_=K_,X_=qr,Bv=Object.create,q_=function(){function e(){}return function(t){if(!X_(t))return {};if(Bv)return Bv(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),Y_=q_,Q_=Y_,Z_=$g,J_=bg;function eT(e){return typeof e.constructor=="function"&&!J_(e)?Q_(Z_(e)):{}}var tT=eT,nT=nu,rT=Mo,oT="[object Map]";function aT(e){return rT(e)&&nT(e)==oT}var iT=aT,sT=iT,lT=vg,Hv=pg,Wv=Hv&&Hv.isMap,cT=Wv?lT(Wv):sT,uT=cT,dT=nu,fT=Mo,mT="[object Set]";function gT(e){return fT(e)&&dT(e)==mT}var hT=gT,vT=hT,pT=vg,Vv=pg,Gv=Vv&&Vv.isSet,bT=Gv?pT(Gv):vT,yT=bT,CT=ug,ST=KO,$T=dg,wT=kM,xT=ZM,ET=JM,IT=Xy,OT=fR,PT=ER,MT=Zy,RT=Jy,_T=nu,TT=s_,NT=U_,kT=tT,LT=Lr,AT=mg,zT=uT,DT=qr,jT=yT,FT=Ms,BT=yg,HT=1,WT=2,VT=4,r1="[object Arguments]",GT="[object Array]",KT="[object Boolean]",UT="[object Date]",XT="[object Error]",o1="[object Function]",qT="[object GeneratorFunction]",YT="[object Map]",QT="[object Number]",a1="[object Object]",ZT="[object RegExp]",JT="[object Set]",eN="[object String]",tN="[object Symbol]",nN="[object WeakMap]",rN="[object ArrayBuffer]",oN="[object DataView]",aN="[object Float32Array]",iN="[object Float64Array]",sN="[object Int8Array]",lN="[object Int16Array]",cN="[object Int32Array]",uN="[object Uint8Array]",dN="[object Uint8ClampedArray]",fN="[object Uint16Array]",mN="[object Uint32Array]",Ht={};Ht[r1]=Ht[GT]=Ht[rN]=Ht[oN]=Ht[KT]=Ht[UT]=Ht[aN]=Ht[iN]=Ht[sN]=Ht[lN]=Ht[cN]=Ht[YT]=Ht[QT]=Ht[a1]=Ht[ZT]=Ht[JT]=Ht[eN]=Ht[tN]=Ht[uN]=Ht[dN]=Ht[fN]=Ht[mN]=!0;Ht[XT]=Ht[o1]=Ht[nN]=!1;function Ll(e,t,n,r,o,a){var i,s=t&HT,l=t&WT,c=t&VT;if(n&&(i=o?n(e,r,o,a):n(e)),i!==void 0)return i;if(!DT(e))return e;var u=LT(e);if(u){if(i=TT(e),!s)return IT(e,i)}else {var d=_T(e),m=d==o1||d==qT;if(AT(e))return ET(e,s);if(d==a1||d==r1||m&&!o){if(i=l||m?{}:kT(e),!s)return l?PT(e,xT(i,e)):OT(e,wT(i,e))}else {if(!Ht[d])return o?e:{};i=NT(e,d,s);}}a||(a=new CT);var g=a.get(e);if(g)return g;a.set(e,i),jT(e)?e.forEach(function(p){i.add(Ll(p,t,n,p,e,a));}):zT(e)&&e.forEach(function(p,b){i.set(b,Ll(p,t,n,b,e,a));});var h=c?l?RT:MT:l?BT:FT,v=u?void 0:h(e);return ST(v||e,function(p,b){v&&(b=p,p=e[b]),$T(i,b,Ll(p,t,n,b,e,a));}),i}var i1=Ll,gN=ci,hN=Mo,vN="[object Symbol]";function pN(e){return typeof e=="symbol"||hN(e)&&gN(e)==vN}var ru=pN,bN=Lr,yN=ru,CN=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,SN=/^\w*$/;function $N(e,t){if(bN(e))return !1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||yN(e)?!0:SN.test(e)||!CN.test(e)||t!=null&&e in Object(t)}var xg=$N,s1=cg,wN="Expected a function";function Eg(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(wN);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(Eg.Cache||s1),n}Eg.Cache=s1;var xN=Eg,EN=xN,IN=500;function ON(e){var t=EN(e,function(r){return n.size===IN&&n.clear(),r}),n=t.cache;return t}var PN=ON,MN=PN,RN=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_N=/\\(\\)?/g,TN=MN(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(RN,function(n,r,o,a){t.push(o?a.replace(_N,"$1"):r||n);}),t}),NN=TN,Kv=li,kN=ig,LN=Lr,AN=ru,zN=1/0,Uv=Kv?Kv.prototype:void 0,Xv=Uv?Uv.toString:void 0;function l1(e){if(typeof e=="string")return e;if(LN(e))return kN(e,l1)+"";if(AN(e))return Xv?Xv.call(e):"";var t=e+"";return t=="0"&&1/e==-zN?"-0":t}var DN=l1,jN=DN;function FN(e){return e==null?"":jN(e)}var BN=FN,HN=Lr,WN=xg,VN=NN,GN=BN;function KN(e,t){return HN(e)?e:WN(e,t)?[e]:VN(GN(e))}var gi=KN;function UN(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var XN=UN,qN=ru,YN=1/0;function QN(e){if(typeof e=="string"||qN(e))return e;var t=e+"";return t=="0"&&1/e==-YN?"-0":t}var hi=QN,ZN=gi,JN=hi;function e3(e,t){t=ZN(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[JN(t[n++])];return n&&n==r?e:void 0}var ou=e3;function t3(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 n3=t3,r3=ou,o3=n3;function a3(e,t){return t.length<2?e:r3(e,o3(t,0,-1))}var i3=a3,s3=gi,l3=XN,c3=i3,u3=hi;function d3(e,t){return t=s3(t,e),e=c3(e,t),e==null||delete e[u3(l3(t))]}var f3=d3,m3=ci,g3=$g,h3=Mo,v3="[object Object]",p3=Function.prototype,b3=Object.prototype,c1=p3.toString,y3=b3.hasOwnProperty,C3=c1.call(Object);function S3(e){if(!h3(e)||m3(e)!=v3)return !1;var t=g3(e);if(t===null)return !0;var n=y3.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&c1.call(n)==C3}var $3=S3,w3=$3;function x3(e){return w3(e)?void 0:e}var E3=x3,qv=li,I3=fg,O3=Lr,Yv=qv?qv.isConcatSpreadable:void 0;function P3(e){return O3(e)||I3(e)||!!(Yv&&e&&e[Yv])}var M3=P3,R3=Sg,_3=M3;function u1(e,t,n,r,o){var a=-1,i=e.length;for(n||(n=_3),o||(o=[]);++a<i;){var s=e[a];t>0&&n(s)?t>1?u1(s,t-1,n,r,o):R3(o,s):r||(o[o.length]=s);}return o}var T3=u1,N3=T3;function k3(e){var t=e==null?0:e.length;return t?N3(e,1):[]}var L3=k3;function A3(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 z3=A3,D3=z3,Qv=Math.max;function j3(e,t,n){return t=Qv(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,a=Qv(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),D3(e,this,s)}}var F3=j3;function B3(e){return function(){return e}}var H3=B3;function W3(e){return e}var d1=W3,V3=H3,Zv=By,G3=d1,K3=Zv?function(e,t){return Zv(e,"toString",{configurable:!0,enumerable:!1,value:V3(t),writable:!0})}:G3,U3=K3,X3=800,q3=16,Y3=Date.now;function Q3(e){var t=0,n=0;return function(){var r=Y3(),o=q3-(r-n);if(n=r,o>0){if(++t>=X3)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Z3=Q3,J3=U3,ek=Z3,tk=ek(J3),nk=tk,rk=L3,ok=F3,ak=nk;function ik(e){return ak(ok(e,void 0,rk),e+"")}var f1=ik,sk=ig,lk=i1,ck=f3,uk=gi,dk=Ps,fk=E3,mk=f1,gk=Jy,hk=1,vk=2,pk=4,bk=mk(function(e,t){var n={};if(e==null)return n;var r=!1;t=sk(t,function(a){return a=uk(a,e),r||(r=a.length>1),a}),dk(e,gk(e),n),r&&(n=lk(n,hk|vk|pk,fk));for(var o=t.length;o--;)ck(n,t[o]);return n}),yk=bk;const Ck=hn(yk);var Sk=kr,$k=function(){return Sk.Date.now()},wk=$k,xk=/\s/;function Ek(e){for(var t=e.length;t--&&xk.test(e.charAt(t)););return t}var Ik=Ek,Ok=Ik,Pk=/^\s+/;function Mk(e){return e&&e.slice(0,Ok(e)+1).replace(Pk,"")}var Rk=Mk,_k=Rk,Jv=qr,Tk=ru,ep=0/0,Nk=/^[-+]0x[0-9a-f]+$/i,kk=/^0b[01]+$/i,Lk=/^0o[0-7]+$/i,Ak=parseInt;function zk(e){if(typeof e=="number")return e;if(Tk(e))return ep;if(Jv(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Jv(t)?t+"":t;}if(typeof e!="string")return e===0?e:+e;e=_k(e);var n=kk.test(e);return n||Lk.test(e)?Ak(e.slice(2),n?2:8):Nk.test(e)?ep:+e}var m1=zk,Dk=qr,pd=wk,tp=m1,jk="Expected a function",Fk=Math.max,Bk=Math.min;function Hk(e,t,n){var r,o,a,i,s,l,c=0,u=!1,d=!1,m=!0;if(typeof e!="function")throw new TypeError(jk);t=tp(t)||0,Dk(n)&&(u=!!n.leading,d="maxWait"in n,a=d?Fk(tp(n.maxWait)||0,t):a,m="trailing"in n?!!n.trailing:m);function g(w){var S=r,E=o;return r=o=void 0,c=w,i=e.apply(E,S),i}function h(w){return c=w,s=setTimeout(b,t),u?g(w):i}function v(w){var S=w-l,E=w-c,I=t-S;return d?Bk(I,a-E):I}function p(w){var S=w-l,E=w-c;return l===void 0||S>=t||S<0||d&&E>=a}function b(){var w=pd();if(p(w))return y(w);s=setTimeout(b,v(w));}function y(w){return s=void 0,m&&r?g(w):(r=o=void 0,i)}function C(){s!==void 0&&clearTimeout(s),c=0,r=l=o=s=void 0;}function $(){return s===void 0?i:y(pd())}function x(){var w=pd(),S=p(w);if(r=arguments,o=this,l=w,S){if(s===void 0)return h(l);if(d)return clearTimeout(s),s=setTimeout(b,t),g(l)}return s===void 0&&(s=setTimeout(b,t)),i}return x.cancel=C,x.flush=$,x}var g1=Hk;const Wk=hn(g1);var Vk=g1,Gk=qr,Kk="Expected a function";function Uk(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(Kk);return Gk(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Vk(e,t,{leading:r,maxWait:t,trailing:o})}var Xk=Uk;const h1=hn(Xk);var qk=dg,Yk=gi,Qk=gg,np=qr,Zk=hi;function Jk(e,t,n,r){if(!np(e))return e;t=Yk(t,e);for(var o=-1,a=t.length,i=a-1,s=e;s!=null&&++o<a;){var l=Zk(t[o]),c=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(o!=i){var u=s[l];c=r?r(u,l,s):void 0,c===void 0&&(c=np(u)?u:Qk(t[o+1])?[]:{});}qk(s,l,c),s=s[l];}return e}var e4=Jk,t4=ou,n4=e4,r4=gi;function o4(e,t,n){for(var r=-1,o=t.length,a={};++r<o;){var i=t[r],s=t4(e,i);n(s,i)&&n4(a,r4(i,e),s);}return a}var a4=o4;function i4(e,t){return e!=null&&t in Object(e)}var s4=i4,l4=gi,c4=fg,u4=Lr,d4=gg,f4=hg,m4=hi;function g4(e,t,n){t=l4(t,e);for(var r=-1,o=t.length,a=!1;++r<o;){var i=m4(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&&f4(o)&&d4(i,o)&&(u4(e)||c4(e)))}var h4=g4,v4=s4,p4=h4;function b4(e,t){return e!=null&&p4(e,t,v4)}var v1=b4,y4=a4,C4=v1;function S4(e,t){return y4(e,t,function(n,r){return C4(e,r)})}var $4=S4,w4=$4,x4=f1,E4=x4(function(e,t){return e==null?{}:w4(e,t)}),I4=E4;const Ig=hn(I4);var Of={exports:{}},bd,rp;function O4(){if(rp)return bd;rp=1;var e=1e3,t=e*60,n=t*60,r=n*24,o=r*7,a=r*365.25;bd=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?l(u):s(u);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(u))};function i(u){if(u=String(u),!(u.length>100)){var d=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(u);if(d){var 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 l(u){var d=Math.abs(u);return d>=r?c(u,d,r,"day"):d>=n?c(u,d,n,"hour"):d>=t?c(u,d,t,"minute"):d>=e?c(u,d,e,"second"):u+" ms"}function c(u,d,m,g){var h=d>=m*1.5;return Math.round(u/m)+" "+g+(h?"s":"")}return bd}function P4(e){n.debug=n,n.default=n,n.coerce=l,n.disable=a,n.enable=o,n.enabled=i,n.humanize=O4(),n.destroy=c,Object.keys(e).forEach(u=>{n[u]=e[u];}),n.names=[],n.skips=[],n.formatters={};function t(u){let d=0;for(let m=0;m<u.length;m++)d=(d<<5)-d+u.charCodeAt(m),d|=0;return n.colors[Math.abs(d)%n.colors.length]}n.selectColor=t;function n(u){let d,m=null,g,h;function v(...p){if(!v.enabled)return;const b=v,y=Number(new Date),C=y-(d||y);b.diff=C,b.prev=d,b.curr=y,d=y,p[0]=n.coerce(p[0]),typeof p[0]!="string"&&p.unshift("%O");let $=0;p[0]=p[0].replace(/%([a-zA-Z%])/g,(w,S)=>{if(w==="%%")return "%";$++;const E=n.formatters[S];if(typeof E=="function"){const I=p[$];w=E.call(b,I),p.splice($,1),$--;}return w}),n.formatArgs.call(b,p),(b.log||n.log).apply(b,p);}return v.namespace=u,v.useColors=n.useColors(),v.color=n.selectColor(u),v.extend=r,v.destroy=n.destroy,Object.defineProperty(v,"enabled",{enumerable:!0,configurable:!1,get:()=>m!==null?m:(g!==n.namespaces&&(g=n.namespaces,h=n.enabled(u)),h),set:p=>{m=p;}}),typeof n.init=="function"&&n.init(v),v}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 l(u){return u instanceof Error?u.stack||u.message:u}function c(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");}return n.enable(n.load()),n}var M4=P4;(function(e,t){t.formatArgs=r,t.save=o,t.load=a,t.useColors=n,t.storage=i(),t.destroy=(()=>{let l=!1;return ()=>{l||(l=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."));}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(l){if(l[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+l[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const c="color: "+this.color;l.splice(1,0,c,"color: inherit");let u=0,d=0;l[0].replace(/%[a-zA-Z%]/g,m=>{m!=="%%"&&(u++,m==="%c"&&(d=u));}),l.splice(d,0,c);}t.log=console.debug||console.log||(()=>{});function o(l){try{l?t.storage.setItem("debug",l):t.storage.removeItem("debug");}catch{}}function a(){let l;try{l=t.storage.getItem("debug");}catch{}return !l&&typeof process<"u"&&"env"in process&&(l={}.DEBUG),l}function i(){try{return localStorage}catch{}}e.exports=M4(t);const{formatters:s}=e.exports;s.j=function(l){try{return JSON.stringify(l)}catch(c){return "[UnexpectedJSONParseError]: "+c.message}};})(Of,Of.exports);var R4=Of.exports;const _4=hn(R4),xn="bilibili-app-recommend",T4="bilibili_app_recommend",vi=_4(xn),p1="https://api.bilibili.com",b1="https://app.bilibili.com",Ga={appkey:"4409e2ce8ffd12b8",appsec:"59b43e04ad6965f34319062b478f83dd"};var y1={exports:{}};/*!
  	Copyright (c) 2018 Jed Watson.
  	Licensed under the MIT License (MIT), see
  	http://jedwatson.github.io/classnames
  */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],o=0;o<arguments.length;o++){var a=arguments[o];if(a){var i=typeof a;if(i==="string"||i==="number")r.push(a);else if(Array.isArray(a)){if(a.length){var s=n.apply(null,a);s&&r.push(s);}}else if(i==="object"){if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]")){r.push(a.toString());continue}for(var l in a)t.call(a,l)&&a[l]&&r.push(l);}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n;})();})(y1);var N4=y1.exports;const V=hn(N4);function at(e){"@babel/helpers - typeof";return at=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},at(e)}function k4(e,t){if(at(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(at(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return (t==="string"?String:Number)(e)}function C1(e){var t=k4(e,"string");return at(t)==="symbol"?t:String(t)}function z(e,t,n){return t=C1(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function op(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 U(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?op(Object(n),!0).forEach(function(r){z(e,r,n[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):op(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r));});}return e}function Pf(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 L4(e){if(Array.isArray(e))return Pf(e)}function S1(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Og(e,t){if(e){if(typeof e=="string")return Pf(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 Pf(e,t)}}function A4(){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 L4(e)||S1(e)||Og(e)||A4()}function $1(e){if(Array.isArray(e))return e}function z4(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1;}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u;}finally{try{if(!l&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}function w1(){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 Q(e,t){return $1(e)||z4(e,t)||Og(e,t)||w1()}function Tn(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 Fn(){return !!(typeof window<"u"&&window.document&&window.document.createElement)}var ap=Fn()?f__namespace.useLayoutEffect:f__namespace.useEffect,Wt=function(t,n){var r=f__namespace.useRef(!0);ap(function(){return t(r.current)},n),ap(function(){return r.current=!1,function(){r.current=!0;}},[]);},ja=function(t,n){Wt(function(r){if(!r)return t()},n);};function Go(e){var t=f__namespace.useRef(!1),n=f__namespace.useState(e),r=Q(n,2),o=r[0],a=r[1];f__namespace.useEffect(function(){return t.current=!1,function(){t.current=!0;}},[]);function i(s,l){l&&t.current||a(s);}return [o,i]}function yd(e){return e!==void 0}function Vt(e,t){var n=t||{},r=n.defaultValue,o=n.value,a=n.onChange,i=n.postState,s=Go(function(){return yd(o)?o:yd(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),l=Q(s,2),c=l[0],u=l[1],d=o!==void 0?o:c,m=i?i(d):d,g=Tn(a),h=Go([d]),v=Q(h,2),p=v[0],b=v[1];ja(function(){var C=p[0];c!==C&&g(c,C);},[p]),ja(function(){yd(o)||u(o);},[o]);var y=Tn(function(C,$){u(C,$),b([d],$);});return [m,y]}var Mf={},D4=function(t){};function j4(e,t){}function F4(e,t){}function B4(){Mf={};}function x1(e,t,n){!t&&!Mf[n]&&(e(!1,n),Mf[n]=!0);}function bn(e,t){x1(j4,e,t);}function H4(e,t){x1(F4,e,t);}bn.preMessage=D4;bn.resetWarned=B4;bn.noteOnce=H4;function Rs(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(a,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(a);if(bn(!l,"Warning: There may be circular references"),l)return !1;if(a===i)return !0;if(n&&s>1)return !1;r.add(a);var c=s+1;if(Array.isArray(a)){if(!Array.isArray(i)||a.length!==i.length)return !1;for(var u=0;u<a.length;u++)if(!o(a[u],i[u],c))return !1;return !0}if(a&&i&&at(a)==="object"&&at(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],c)})}return !1}return o(e,t)}var ra=f__namespace.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}});function Ie(){return Ie=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},Ie.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 Ye(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 de={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>=de.F1&&n<=de.F12)return !1;switch(n){case de.ALT:case de.CAPS_LOCK:case de.CONTEXT_MENU:case de.CTRL:case de.DOWN:case de.END:case de.ESC:case de.HOME:case de.INSERT:case de.LEFT:case de.MAC_FF_META:case de.META:case de.NUMLOCK:case de.NUM_CENTER:case de.PAGE_DOWN:case de.PAGE_UP:case de.PAUSE:case de.PRINT_SCREEN:case de.RIGHT:case de.SHIFT:case de.UP:case de.WIN_KEY:case de.WIN_KEY_RIGHT:return !1;default:return !0}},isCharacterKey:function(t){if(t>=de.ZERO&&t<=de.NINE||t>=de.NUM_ZERO&&t<=de.NUM_MULTIPLY||t>=de.A&&t<=de.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return !0;switch(t){case de.SPACE:case de.QUESTION_MARK:case de.NUM_PLUS:case de.NUM_MINUS:case de.NUM_PERIOD:case de.NUM_DIVISION:case de.SEMICOLON:case de.DASH:case de.EQUALS:case de.COMMA:case de.PERIOD:case de.SLASH:case de.APOSTROPHE:case de.SINGLE_QUOTE:case de.OPEN_SQUARE_BRACKET:case de.BACKSLASH:case de.CLOSE_SQUARE_BRACKET:return !0;default:return !1}}};function Rf(e,t,n){return (e-t)/(n-t)}function Pg(e,t,n,r){var o=Rf(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 _a(e,t){return Array.isArray(e)?e[t]:e}var V4=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"],G4=f__namespace.forwardRef(function(e,t){var n,r,o=e.prefixCls,a=e.value,i=e.valueIndex,s=e.onStartMove,l=e.style,c=e.render,u=e.dragging,d=e.onOffsetChange,m=Ye(e,V4),g=f__namespace.useContext(ra),h=g.min,v=g.max,p=g.direction,b=g.disabled,y=g.keyboard,C=g.range,$=g.tabIndex,x=g.ariaLabelForHandle,w=g.ariaLabelledByForHandle,S=g.ariaValueTextFormatterForHandle,E=g.styles,I=g.classNames,O="".concat(o,"-handle"),R=function(T){b||s(T,i);},P=function(T){if(!b&&y){var M=null;switch(T.which||T.keyCode){case de.LEFT:M=p==="ltr"||p==="btt"?-1:1;break;case de.RIGHT:M=p==="ltr"||p==="btt"?1:-1;break;case de.UP:M=p!=="ttb"?1:-1;break;case de.DOWN:M=p!=="ttb"?-1:1;break;case de.HOME:M="min";break;case de.END:M="max";break;case de.PAGE_UP:M=2;break;case de.PAGE_DOWN:M=-2;break}M!==null&&(T.preventDefault(),d(M,i));}},k=Pg(p,a,h,v),L=f__namespace.createElement("div",Ie({ref:t,className:V(O,(n={},z(n,"".concat(O,"-").concat(i+1),C),z(n,"".concat(O,"-dragging"),u),n),I.handle),style:U(U(U({},k),l),E.handle),onMouseDown:R,onTouchStart:R,onKeyDown:P,tabIndex:b?null:_a($,i),role:"slider","aria-valuemin":h,"aria-valuemax":v,"aria-valuenow":a,"aria-disabled":b,"aria-label":_a(x,i),"aria-labelledby":_a(w,i),"aria-valuetext":(r=_a(S,i))===null||r===void 0?void 0:r(a),"aria-orientation":p==="ltr"||p==="rtl"?"horizontal":"vertical"},m));return c&&(L=c(L,{index:i,prefixCls:o,value:a,dragging:u})),L}),K4=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],U4=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,l=e.draggingIndex,c=Ye(e,K4),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(G4,Ie({ref:function(h){h?u.current[m]=h:delete u.current[m];},dragging:l===m,prefixCls:n,style:_a(r,m),key:m,value:d,valueIndex:m,onStartMove:o,onOffsetChange:a,render:s},c))}))});function ip(e){var t="touches"in e?e.touches[0]:e;return {pageX:t.pageX,pageY:t.pageY}}function X4(e,t,n,r,o,a,i,s,l){var c=f__namespace.useState(null),u=Q(c,2),d=u[0],m=u[1],g=f__namespace.useState(-1),h=Q(g,2),v=h[0],p=h[1],b=f__namespace.useState(n),y=Q(b,2),C=y[0],$=y[1],x=f__namespace.useState(n),w=Q(x,2),S=w[0],E=w[1],I=f__namespace.useRef(null),O=f__namespace.useRef(null);f__namespace.useEffect(function(){v===-1&&$(n);},[n,v]),f__namespace.useEffect(function(){return function(){document.removeEventListener("mousemove",I.current),document.removeEventListener("mouseup",O.current),document.removeEventListener("touchmove",I.current),document.removeEventListener("touchend",O.current);}},[]);var R=function(M,_){C.some(function(D,F){return D!==M[F]})&&(_!==void 0&&m(_),$(M),i(M));},P=function(M,_){if(M===-1){var D=S[0],F=S[S.length-1],H=r-D,B=o-F,W=_*(o-r);W=Math.max(W,H),W=Math.min(W,B);var K=a(D+W);W=K-D;var X=S.map(function(ee){return ee+W});R(X);}else {var q=(o-r)*_,ne=Re(C);ne[M]=S[M];var G=l(ne,q,M,"dist");R(G.values,G.value);}},k=f__namespace.useRef(P);k.current=P;var L=function(M,_,D){M.stopPropagation();var F=D||n,H=F[_];p(_),m(H),E(F);var B=ip(M),W=B.pageX,K=B.pageY,X=function(G){G.preventDefault();var ee=ip(G),Y=ee.pageX,ue=ee.pageY,le=Y-W,Z=ue-K,oe=e.current.getBoundingClientRect(),fe=oe.width,J=oe.height,se;switch(t){case"btt":se=-Z/J;break;case"ttb":se=Z/J;break;case"rtl":se=-le/fe;break;default:se=le/fe;}k.current(_,se);},q=function ne(G){G.preventDefault(),document.removeEventListener("mouseup",ne),document.removeEventListener("mousemove",X),document.removeEventListener("touchend",ne),document.removeEventListener("touchmove",X),I.current=null,O.current=null,p(-1),s();};document.addEventListener("mouseup",q),document.addEventListener("mousemove",X),document.addEventListener("touchend",q),document.addEventListener("touchmove",X),I.current=X,O.current=q;},A=f__namespace.useMemo(function(){var T=Re(n).sort(function(_,D){return _-D}),M=Re(C).sort(function(_,D){return _-D});return T.every(function(_,D){return _===M[D]})?C:n},[n,C]);return [v,d,A,L]}function q4(e,t,n,r,o,a){var i=f__namespace.useCallback(function(g){var h=isFinite(g)?g:e;return h=Math.min(t,g),h=Math.max(e,h),h},[e,t]),s=f__namespace.useCallback(function(g){if(n!==null){var h=e+Math.round((i(g)-e)/n)*n,v=function(C){return (String(C).split(".")[1]||"").length},p=Math.max(v(n),v(t),v(e)),b=Number(h.toFixed(p));return e<=b&&b<=t?b:null}return null},[n,e,t,i]),l=f__namespace.useCallback(function(g){var h=i(g),v=r.map(function(y){return y.value});n!==null&&v.push(s(g)),v.push(e,t);var p=v[0],b=t-e;return v.forEach(function(y){var C=Math.abs(h-y);C<=b&&(p=y,b=C);}),p},[e,t,r,n,i,s]),c=function g(h,v,p){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof v=="number"){var y,C=h[p],$=C+v,x=[];r.forEach(function(O){x.push(O.value);}),x.push(e,t),x.push(s(C));var w=v>0?1:-1;b==="unit"?x.push(s(C+w*n)):x.push(s($)),x=x.filter(function(O){return O!==null}).filter(function(O){return v<0?O<=C:O>=C}),b==="unit"&&(x=x.filter(function(O){return O!==C}));var S=b==="unit"?C:$;y=x[0];var E=Math.abs(y-S);if(x.forEach(function(O){var R=Math.abs(O-S);R<E&&(y=O,E=R);}),y===void 0)return v<0?e:t;if(b==="dist")return y;if(Math.abs(v)>1){var I=Re(h);return I[p]=y,g(I,v-w,p,b)}return y}else {if(v==="min")return e;if(v==="max")return t}},u=function(h,v,p){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",y=h[p],C=c(h,v,p,b);return {value:C,changed:C!==y}},d=function(h){return a===null&&h===0||typeof a=="number"&&h<a},m=function(h,v,p){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",y=h.map(l),C=y[p],$=c(y,v,p,b);if(y[p]=$,o===!1){var x=a||0;p>0&&y[p-1]!==C&&(y[p]=Math.max(y[p],y[p-1]+x)),p<y.length-1&&y[p+1]!==C&&(y[p]=Math.min(y[p],y[p+1]-x));}else if(typeof a=="number"||a===null){for(var w=p+1;w<y.length;w+=1)for(var S=!0;d(y[w]-y[w-1])&&S;){var E=u(y,1,w);y[w]=E.value,S=E.changed;}for(var I=p;I>0;I-=1)for(var O=!0;d(y[I]-y[I-1])&&O;){var R=u(y,-1,I-1);y[I-1]=R.value,O=R.changed;}for(var P=y.length-1;P>0;P-=1)for(var k=!0;d(y[P]-y[P-1])&&k;){var L=u(y,-1,P-1);y[P-1]=L.value,k=L.changed;}for(var A=0;A<y.length-1;A+=1)for(var T=!0;d(y[A+1]-y[A])&&T;){var M=u(y,1,A+1);y[A+1]=M.value,T=M.changed;}}return {value:y[p],values:y}};return [l,m]}function Y4(e){var t=e.prefixCls,n=e.style,r=e.children,o=e.value,a=e.onClick,i=f__namespace.useContext(ra),s=i.min,l=i.max,c=i.direction,u=i.includedStart,d=i.includedEnd,m=i.included,g="".concat(t,"-text"),h=Pg(c,o,s,l);return f__namespace.createElement("span",{className:V(g,z({},"".concat(g,"-active"),m&&u<=o&&o<=d)),style:U(U({},h),n),onMouseDown:function(p){p.stopPropagation();},onClick:function(){a(o);}},r)}function Q4(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,l=a.label;return f__namespace.createElement(Y4,{key:i,prefixCls:o,style:s,value:i,onClick:r},l)})):null}function Z4(e){var t=e.prefixCls,n=e.value,r=e.style,o=e.activeStyle,a=f__namespace.useContext(ra),i=a.min,s=a.max,l=a.direction,c=a.included,u=a.includedStart,d=a.includedEnd,m="".concat(t,"-dot"),g=c&&u<=n&&n<=d,h=U(U({},Pg(l,n,i,s)),typeof r=="function"?r(n):r);return g&&(h=U(U({},h),typeof o=="function"?o(n):o)),f__namespace.createElement("span",{className:V(m,z({},"".concat(m,"-active"),g)),style:h})}function J4(e){var t=e.prefixCls,n=e.marks,r=e.dots,o=e.style,a=e.activeStyle,i=f__namespace.useContext(ra),s=i.min,l=i.max,c=i.step,u=f__namespace.useMemo(function(){var d=new Set;if(n.forEach(function(g){d.add(g.value);}),r&&c!==null)for(var m=s;m<=l;)d.add(m),m+=c;return Array.from(d)},[s,l,c,r,n]);return f__namespace.createElement("div",{className:"".concat(t,"-step")},u.map(function(d){return f__namespace.createElement(Z4,{prefixCls:t,key:d,value:d,style:o,activeStyle:a})}))}function sp(e){var t,n=e.prefixCls,r=e.style,o=e.start,a=e.end,i=e.index,s=e.onStartMove,l=e.replaceCls,c=f__namespace.useContext(ra),u=c.direction,d=c.min,m=c.max,g=c.disabled,h=c.range,v=c.classNames,p="".concat(n,"-track"),b=Rf(o,d,m),y=Rf(a,d,m),C=function(S){!g&&s&&s(S,-1);},$={};switch(u){case"rtl":$.right="".concat(b*100,"%"),$.width="".concat(y*100-b*100,"%");break;case"btt":$.bottom="".concat(b*100,"%"),$.height="".concat(y*100-b*100,"%");break;case"ttb":$.top="".concat(b*100,"%"),$.height="".concat(y*100-b*100,"%");break;default:$.left="".concat(b*100,"%"),$.width="".concat(y*100-b*100,"%");}var x=l||V(p,(t={},z(t,"".concat(p,"-").concat(i+1),i!==null&&h),z(t,"".concat(n,"-track-draggable"),s),t),v.track);return f__namespace.createElement("div",{className:x,style:U(U({},$),r),onMouseDown:C,onTouchStart:C})}function eL(e){var t=e.prefixCls,n=e.style,r=e.values,o=e.startPoint,a=e.onStartMove,i=f__namespace.useContext(ra),s=i.included,l=i.range,c=i.min,u=i.styles,d=i.classNames,m=f__namespace.useMemo(function(){if(!l){if(r.length===0)return [];var h=o??c,v=r[0];return [{start:Math.min(h,v),end:Math.max(h,v)}]}for(var p=[],b=0;b<r.length-1;b+=1)p.push({start:r[b],end:r[b+1]});return p},[r,l,o,c]),g=null;return (d.tracks||u.tracks)&&(g=f__namespace.createElement(sp,{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(h,v){var p=h.start,b=h.end;return f__namespace.createElement(sp,{index:v,prefixCls:t,style:U(U({},_a(n,v)),u.track),start:p,end:b,key:v,onStartMove:a})})):null}var tL=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,l=e.styles,c=e.disabled,u=c===void 0?!1:c,d=e.keyboard,m=d===void 0?!0:d,g=e.autoFocus,h=e.onFocus,v=e.onBlur,p=e.min,b=p===void 0?0:p,y=e.max,C=y===void 0?100:y,$=e.step,x=$===void 0?1:$,w=e.value,S=e.defaultValue,E=e.range,I=e.count,O=e.onChange,R=e.onBeforeChange,P=e.onAfterChange,k=e.allowCross,L=k===void 0?!0:k,A=e.pushable,T=A===void 0?!1:A,M=e.draggableTrack,_=e.reverse,D=e.vertical,F=e.included,H=F===void 0?!0:F,B=e.startPoint,W=e.trackStyle,K=e.handleStyle,X=e.railStyle,q=e.dotStyle,ne=e.activeDotStyle,G=e.marks,ee=e.dots,Y=e.handleRender,ue=e.tabIndex,le=ue===void 0?0:ue,Z=e.ariaLabelForHandle,oe=e.ariaLabelledByForHandle,fe=e.ariaValueTextFormatterForHandle,J=f__namespace.useRef(),se=f__namespace.useRef(),me=f__namespace.useMemo(function(){return D?_?"ttb":"btt":_?"rtl":"ltr"},[_,D]),re=f__namespace.useMemo(function(){return isFinite(b)?b:0},[b]),ie=f__namespace.useMemo(function(){return isFinite(C)?C:100},[C]),ge=f__namespace.useMemo(function(){return x!==null&&x<=0?1:x},[x]),be=f__namespace.useMemo(function(){return typeof T=="boolean"?T?ge:!1:T>=0?T:!1},[T,ge]),Te=f__namespace.useMemo(function(){var it=Object.keys(G||{});return it.map(function(ke){var Ee=G[ke],Ce={value:Number(ke)};return Ee&&at(Ee)==="object"&&!f__namespace.isValidElement(Ee)&&("label"in Ee||"style"in Ee)?(Ce.style=Ee.style,Ce.label=Ee.label):Ce.label=Ee,Ce}).filter(function(ke){var Ee=ke.label;return Ee||typeof Ee=="number"}).sort(function(ke,Ee){return ke.value-Ee.value})},[G]),Ae=q4(re,ie,ge,Te,L,be),Ve=Q(Ae,2),Oe=Ve[0],je=Ve[1],Qe=Vt(S,{value:w}),Be=Q(Qe,2),Pe=Be[0],we=Be[1],Ge=f__namespace.useMemo(function(){var it=Pe==null?[]:Array.isArray(Pe)?Pe:[Pe],ke=Q(it,1),Ee=ke[0],Ce=Ee===void 0?re:Ee,Se=Pe===null?[]:[Ce];if(E){if(Se=Re(it),I||Pe===void 0){var Fe=I>=0?I+1:2;for(Se=Se.slice(0,Fe);Se.length<Fe;){var st;Se.push((st=Se[Se.length-1])!==null&&st!==void 0?st:re);}}Se.sort(function(Ot,It){return Ot-It});}return Se.forEach(function(Ot,It){Se[It]=Oe(Ot);}),Se},[Pe,E,re,I,Oe]),nt=f__namespace.useRef(Ge);nt.current=Ge;var ft=function(ke){return E?ke:ke[0]},et=function(ke){var Ee=Re(ke).sort(function(Ce,Se){return Ce-Se});O&&!Rs(Ee,nt.current,!0)&&O(ft(Ee)),we(Ee);},Xe=function(){P==null||P(ft(nt.current));},gt=X4(se,me,Ge,re,ie,Oe,et,Xe,je),pt=Q(gt,4),ut=pt[0],dt=pt[1],$t=pt[2],Me=pt[3],_e=function(ke,Ee){if(!u){var Ce=0,Se=ie-re;Ge.forEach(function(st,Ot){var It=Math.abs(ke-st);It<=Se&&(Se=It,Ce=Ot);});var Fe=Re(Ge);Fe[Ce]=ke,E&&!Ge.length&&I===void 0&&Fe.push(ke),R==null||R(ft(Fe)),et(Fe),P==null||P(ft(Fe)),Ee&&Me(Ee,Ce,Fe);}},Ne=function(ke){ke.preventDefault();var Ee=se.current.getBoundingClientRect(),Ce=Ee.width,Se=Ee.height,Fe=Ee.left,st=Ee.top,Ot=Ee.bottom,It=Ee.right,cn=ke.clientX,on=ke.clientY,un;switch(me){case"btt":un=(Ot-on)/Se;break;case"ttb":un=(on-st)/Se;break;case"rtl":un=(It-cn)/Ce;break;default:un=(cn-Fe)/Ce;}var An=re+un*(ie-re);_e(Oe(An),ke);},ve=f__namespace.useState(null),De=Q(ve,2),xe=De[0],ae=De[1],te=function(ke,Ee){if(!u){var Ce=je(Ge,ke,Ee);R==null||R(ft(Ge)),et(Ce.values),P==null||P(ft(Ce.values)),ae(Ce.value);}};f__namespace.useEffect(function(){if(xe!==null){var it=Ge.indexOf(xe);it>=0&&J.current.focus(it);}ae(null);},[xe]);var he=f__namespace.useMemo(function(){return M&&ge===null?!1:M},[M,ge]),ye=function(ke,Ee){Me(ke,Ee),R==null||R(ft(nt.current));},$e=ut!==-1;f__namespace.useEffect(function(){if(!$e){var it=Ge.lastIndexOf(dt);J.current.focus(it);}},[$e]);var Ue=f__namespace.useMemo(function(){return Re($t).sort(function(it,ke){return it-ke})},[$t]),qe=f__namespace.useMemo(function(){return E?[Ue[0],Ue[Ue.length-1]]:[re,Ue[0]]},[Ue,E,re]),Ct=Q(qe,2),ht=Ct[0],Rt=Ct[1];f__namespace.useImperativeHandle(t,function(){return {focus:function(){J.current.focus(0);},blur:function(){var ke=document,Ee=ke.activeElement;se.current.contains(Ee)&&(Ee==null||Ee.blur());}}}),f__namespace.useEffect(function(){g&&J.current.focus(0);},[]);var yt=f__namespace.useMemo(function(){return {min:re,max:ie,direction:me,disabled:u,keyboard:m,step:ge,included:H,includedStart:ht,includedEnd:Rt,range:E,tabIndex:le,ariaLabelForHandle:Z,ariaLabelledByForHandle:oe,ariaValueTextFormatterForHandle:fe,styles:l||{},classNames:s||{}}},[re,ie,me,u,m,ge,H,ht,Rt,E,le,Z,oe,fe,l,s]);return f__namespace.createElement(ra.Provider,{value:yt},f__namespace.createElement("div",{ref:se,className:V(o,a,(n={},z(n,"".concat(o,"-disabled"),u),z(n,"".concat(o,"-vertical"),D),z(n,"".concat(o,"-horizontal"),!D),z(n,"".concat(o,"-with-marks"),Te.length),n)),style:i,onMouseDown:Ne},f__namespace.createElement("div",{className:V("".concat(o,"-rail"),s==null?void 0:s.rail),style:U(U({},X),l==null?void 0:l.rail)}),f__namespace.createElement(eL,{prefixCls:o,style:W,values:Ue,startPoint:B,onStartMove:he?ye:null}),f__namespace.createElement(J4,{prefixCls:o,marks:Te,dots:ee,style:q,activeStyle:ne}),f__namespace.createElement(U4,{ref:J,prefixCls:o,style:K,values:$t,draggingIndex:ut,onStartMove:ye,onOffsetChange:te,onFocus:h,onBlur:v,handleRender:Y}),f__namespace.createElement(Q4,{prefixCls:o,marks:Te,onClick:_e})))});function nL(){}const rL=f__namespace.createContext({}),E1=()=>{const e=()=>{};return e.deprecated=nL,e};function Mg(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 _s(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 Cn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lp(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,C1(r.key),r);}}function Sn(e,t,n){return t&&lp(e.prototype,t),n&&lp(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var cp="%",oL=function(){function e(t){Cn(this,e),z(this,"instanceId",void 0),z(this,"cache",new Map),this.instanceId=t;}return Sn(e,[{key:"get",value:function(n){return this.cache.get(n.join(cp))||null}},{key:"update",value:function(n,r){var o=n.join(cp),a=this.cache.get(o),i=r(a);i===null?this.cache.delete(o):this.cache.set(o,i);}}]),e}(),_f="data-token-hash",Ko="data-css-hash",Ta="__cssinjs_instance__";function aL(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Ko,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[Ta]=o[Ta]||e,o[Ta]===e&&document.head.insertBefore(o,n);});var r={};Array.from(document.querySelectorAll("style[".concat(Ko,"]"))).forEach(function(o){var a=o.getAttribute(Ko);if(r[a]){if(o[Ta]===e){var i;(i=o.parentNode)===null||i===void 0||i.removeChild(o);}}else r[a]=!0;});}return new oL(e)}var iL=f__namespace.createContext({hashPriority:"low",cache:aL(),defaultCache:!0});const Rg=iL;function sL(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 up="data-rc-order",dp="data-rc-priority",lL="rc-util-key",Tf=new Map;function I1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):lL}function au(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function cL(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function O1(e){return Array.from((Tf.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function P1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Fn())return null;var n=t.csp,r=t.prepend,o=t.priority,a=o===void 0?0:o,i=cL(r),s=i==="prependQueue",l=document.createElement("style");l.setAttribute(up,i),s&&a&&l.setAttribute(dp,"".concat(a)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=au(t),u=c.firstChild;if(r){if(s){var d=O1(c).filter(function(m){if(!["prepend","prependQueue"].includes(m.getAttribute(up)))return !1;var g=Number(m.getAttribute(dp)||0);return a>=g});if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u);}else c.appendChild(l);return l}function M1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=au(t);return O1(n).find(function(r){return r.getAttribute(I1(t))===e})}function tc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=M1(e,t);if(n){var r=au(t);r.removeChild(n);}}function uL(e,t){var n=Tf.get(e);if(!n||!sL(document,n)){var r=P1("",t),o=r.parentNode;Tf.set(e,o),e.removeChild(r);}}function Ka(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=au(n);uL(r,n);var o=M1(t,n);if(o){var a,i;if((a=n.csp)!==null&&a!==void 0&&a.nonce&&o.nonce!==((i=n.csp)===null||i===void 0?void 0:i.nonce)){var s;o.nonce=(s=n.csp)===null||s===void 0?void 0:s.nonce;}return o.innerHTML!==e&&(o.innerHTML=e),o}var l=P1(e,n);return l.setAttribute(I1(n),t),l}function dL(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 _g=function(){function e(){Cn(this,e),z(this,"cache",void 0),z(this,"keys",void 0),z(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0;}return Sn(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,o,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i={map:this.cache};return n.forEach(function(s){if(!i)i=void 0;else {var l,c;i=(l=i)===null||l===void 0||(c=l.map)===null||c===void 0?void 0:c.get(s);}}),(r=i)!==null&&r!==void 0&&r.value&&a&&(i.value[1]=this.cacheCallTimes++),(o=i)===null||o===void 0?void 0:o.value}},{key:"get",value:function(n){var r;return (r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return !!this.internalGet(n)}},{key:"set",value:function(n,r){var o=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var a=this.keys.reduce(function(c,u){var d=Q(c,2),m=d[1];return o.internalGet(u)[1]<m?[u,o.internalGet(u)[1]]:c},[this.keys[0],this.cacheCallTimes]),i=Q(a,1),s=i[0];this.delete(s);}this.keys.push(n);}var l=this.cache;n.forEach(function(c,u){if(u===n.length-1)l.set(c,{value:[r,o.cacheCallTimes++]});else {var d=l.get(c);d?d.map||(d.map=new Map):l.set(c,{map:new Map}),l=l.get(c).map;}});}},{key:"deleteByPath",value:function(n,r){var o=n.get(r[0]);if(r.length===1){var a;return o.map?n.set(r[0],{map:o.map}):n.delete(r[0]),(a=o.value)===null||a===void 0?void 0:a[0]}var i=this.deleteByPath(o.map,r.slice(1));return (!o.map||o.map.size===0)&&!o.value&&n.delete(r[0]),i}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return !dL(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();z(_g,"MAX_CACHE_SIZE",20);z(_g,"MAX_CACHE_OFFSET",5);var fp=0,R1=function(){function e(t){Cn(this,e),z(this,"derivatives",void 0),z(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=fp,t.length===0&&(t.length>0,void 0),fp+=1;}return Sn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),Cd=new _g;function ss(e){var t=Array.isArray(e)?e:[e];return Cd.has(t)||Cd.set(t,new R1(t)),Cd.get(t)}var fL=new WeakMap,Sd={};function mL(e,t){for(var n=fL,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(Sd)||n.set(Sd,e()),n.get(Sd)}var mp=new WeakMap;function nc(e){var t=mp.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof R1?t+=r.id:r&&at(r)==="object"?t+=nc(r):t+=r;}),mp.set(e,t)),t}function gL(e,t){return Mg("".concat(t,"_").concat(nc(e)))}var Gi="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),_1="_bAmBoO_";function hL(e,t,n){if(Fn()){var r,o;Ka(e,Gi);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(_1);return (o=a.parentNode)===null||o===void 0||o.removeChild(a),tc(Gi),i}return !1}var $d=void 0;function vL(){return $d===void 0&&($d=hL("@layer ".concat(Gi," { .").concat(Gi,' { content: "').concat(_1,'"!important; } }'),function(e){e.className=Gi;})),$d}var pL=U({},f__namespace),gp=pL.useInsertionEffect,bL=function(t,n,r){f__namespace.useMemo(t,r),Wt(function(){return n(!0)},r);},yL=gp?function(e,t,n){return gp(function(){return e(),t()},n)}:bL;const CL=yL;var SL=U({},f__namespace),$L=SL.useInsertionEffect,wL=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},xL=function(){return function(t){t();}},EL=typeof $L<"u"?wL:xL;const IL=EL;function T1(e,t,n,r,o){var a=f__namespace.useContext(Rg),i=a.cache,s=[e].concat(Re(t)),l=s.join("_"),c=IL([l]),u=function(h){i.update(s,function(v){var p=v||[],b=Q(p,2),y=b[0],C=y===void 0?0:y,$=b[1],x=$,w=x||n(),S=[C,w];return h?h(S):S});};f__namespace.useMemo(function(){u();},[l]);var d=i.get(s),m=d[1];return CL(function(){o==null||o(m);},function(g){return u(function(h){var v=Q(h,2),p=v[0],b=v[1];return g&&p===0&&(o==null||o(m)),[p+1,b]}),function(){i.update(s,function(h){var v=h||[],p=Q(v,2),b=p[0],y=b===void 0?0:b,C=p[1],$=y-1;return $===0?(c(function(){return r==null?void 0:r(C,!1)}),null):[y-1,C]});}},[l]),m}var OL={},PL="css",zo=new Map;function ML(e){zo.set(e,(zo.get(e)||0)+1);}function RL(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(_f,'="').concat(e,'"]'));n.forEach(function(r){if(r[Ta]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r);}});}}var _L=0;function TL(e,t){zo.set(e,(zo.get(e)||0)-1);var n=Array.from(zo.keys()),r=n.filter(function(o){var a=zo.get(o)||0;return a<=0});n.length-r.length>_L&&r.forEach(function(o){RL(o,t),zo.delete(o);});}var N1=function(t,n,r,o){var a=r.getDerivativeToken(t),i=U(U({},a),n);return o&&(i=o(i)),i};function NL(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=f.useContext(Rg),o=r.cache.instanceId,a=n.salt,i=a===void 0?"":a,s=n.override,l=s===void 0?OL:s,c=n.formatToken,u=n.getComputedToken,d=mL(function(){return Object.assign.apply(Object,[{}].concat(Re(t)))},t),m=nc(d),g=nc(l),h=T1("token",[i,e.id,m,g],function(){var v=u?u(d,l,e):N1(d,l,e,c),p=gL(v,i);v._tokenKey=p,ML(p);var b="".concat(PL,"-").concat(Mg(p));return v._hashId=b,[v,b]},function(v){TL(v[0]._tokenKey,o);});return h}var kL={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},hp="data-ant-cssinjs-cache-path",k1="_FILE_STYLE__",Uo,L1=!0;function LL(){if(!Uo&&(Uo={},Fn())){var e=document.createElement("div");e.className=hp,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=Q(a,2),s=i[0],l=i[1];Uo[s]=l;});var n=document.querySelector("style[".concat(hp,"]"));if(n){var r;L1=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n);}document.body.removeChild(e);}}function AL(e){return LL(),!!Uo[e]}function zL(e){var t=Uo[e],n=null;if(t&&Fn())if(L1)n=k1;else {var r=document.querySelector("style[".concat(Ko,'="').concat(Uo[e],'"]'));r?n=r.innerHTML:delete Uo[e];}return [n,t]}var vp=Fn(),DL="_skip_check_",A1="_multi_value_";function pp(e){var t=Vo(Sy(e),$y);return t.replace(/\{%%%\:[^;];}/g,";")}function jL(e){return at(e)==="object"&&e&&(DL in e||A1 in e)}function FL(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,a=e.split(",").map(function(i){var s,l=i.trim().split(/\s+/),c=l[0]||"",u=((s=c.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return c="".concat(u).concat(o).concat(c.slice(u.length)),[c].concat(Re(l.slice(1))).join(" ")});return a.join(",")}var BL=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,a=r.injectHash,i=r.parentSelectors,s=n.hashId,l=n.layer;n.path;var c=n.hashPriority,u=n.transformers,d=u===void 0?[]:u;n.linters;var m="",g={};function h(C){var $=C.getName(s);if(!g[$]){var x=e(C.style,n,{root:!1,parentSelectors:i}),w=Q(x,1),S=w[0];g[$]="@keyframes ".concat(C.getName(s)).concat(S);}}function v(C){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return C.forEach(function(x){Array.isArray(x)?v(x,$):x&&$.push(x);}),$}var p=v(Array.isArray(t)?t:[t]);if(p.forEach(function(C){var $=typeof C=="string"&&!o?{}:C;if(typeof $=="string")m+="".concat($,`
`);else if($._keyframe)h($);else {var x=d.reduce(function(w,S){var E;return (S==null||(E=S.visit)===null||E===void 0?void 0:E.call(S,w))||w},$);Object.keys(x).forEach(function(w){var S=x[w];if(at(S)==="object"&&S&&(w!=="animationName"||!S._keyframe)&&!jL(S)){var E=!1,I=w.trim(),O=!1;(o||a)&&s?I.startsWith("@")?E=!0:I=FL(w,s,c):o&&!s&&(I==="&"||I==="")&&(I="",O=!0);var R=e(S,n,{root:O,injectHash:E,parentSelectors:[].concat(Re(i),[I])}),P=Q(R,2),k=P[0],L=P[1];g=U(U({},g),L),m+="".concat(I).concat(k);}else {let M=function(_,D){var F=_.replace(/[A-Z]/g,function(B){return "-".concat(B.toLowerCase())}),H=D;!kL[_]&&typeof H=="number"&&H!==0&&(H="".concat(H,"px")),_==="animationName"&&D!==null&&D!==void 0&&D._keyframe&&(h(D),H=D.getName(s)),m+="".concat(F,":").concat(H,";");};var A,T=(A=S==null?void 0:S.value)!==null&&A!==void 0?A:S;at(S)==="object"&&S!==null&&S!==void 0&&S[A1]&&Array.isArray(T)?T.forEach(function(_){M(w,_);}):M(w,T);}});}}),!o)m="{".concat(m,"}");else if(l&&vL()){var b=l.split(","),y=b[b.length-1].trim();m="@layer ".concat(y," {").concat(m,"}"),b.length>1&&(m="@layer ".concat(l,"{%%%:%}").concat(m));}return [m,g]};function HL(e,t){return Mg("".concat(e.join("%")).concat(t))}function WL(){return null}function Nf(e,t){var n=e.token,r=e.path,o=e.hashId,a=e.layer,i=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=f__namespace.useContext(Rg),d=u.autoClear;u.mock;var m=u.defaultCache,g=u.hashPriority,h=u.container,v=u.ssrInline,p=u.transformers,b=u.linters,y=u.cache,C=n._tokenKey,$=[C].concat(Re(r)),x=vp,w=T1("style",$,function(){var R=$.join("|");if(AL(R)){var P=zL(R),k=Q(P,2),L=k[0],A=k[1];if(L)return [L,C,A,{},s,c]}var T=t(),M=BL(T,{hashId:o,hashPriority:g,layer:a,path:r.join("-"),transformers:p,linters:b}),_=Q(M,2),D=_[0],F=_[1],H=pp(D),B=HL($,H);return [H,C,B,F,s,c]},function(R,P){var k=Q(R,3),L=k[2];(P||d)&&vp&&tc(L,{mark:Ko});},function(R){var P=Q(R,4),k=P[0];P[1];var L=P[2],A=P[3];if(x&&k!==k1){var T={mark:Ko,prepend:"queue",attachTo:h,priority:c},M=typeof i=="function"?i():i;M&&(T.csp={nonce:M});var _=Ka(k,L,T);_[Ta]=y.instanceId,_.setAttribute(_f,C),Object.keys(A).forEach(function(D){Ka(pp(A[D]),"_effect-".concat(D),T);});}}),S=Q(w,3),E=S[0],I=S[1],O=S[2];return function(R){var P;if(!v||x||!m)P=f__namespace.createElement(WL,null);else {var k;P=f__namespace.createElement("style",Ie({},(k={},z(k,_f,I),z(k,Ko,O),k),{dangerouslySetInnerHTML:{__html:E}}));}return f__namespace.createElement(f__namespace.Fragment,null,P,R)}}var Mt=function(){function e(t,n){Cn(this,e),z(this,"name",void 0),z(this,"style",void 0),z(this,"_keyframe",!0),this.name=t,this.style=n;}return Sn(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function fa(e){return e.notSplit=!0,e}fa(["borderTop","borderBottom"]),fa(["borderTop"]),fa(["borderBottom"]),fa(["borderLeft","borderRight"]),fa(["borderLeft"]),fa(["borderRight"]);var VL=f.createContext({});const Tg=VL;function z1(e){return $1(e)||S1(e)||Og(e)||w1()}function Rr(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]];}return n}function D1(e,t,n,r){if(!t.length)return n;var o=z1(t),a=o[0],i=o.slice(1),s;return !e&&typeof a=="number"?s=[]:Array.isArray(e)?s=Re(e):s=U({},e),r&&n===void 0&&i.length===1?delete s[a][i[0]]:s[a]=D1(s[a],i,n,r),s}function Ir(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Rr(e,t.slice(0,-1))?e:D1(e,t,n,r)}function GL(e){return at(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function bp(e){return Array.isArray(e)?[]:{}}var KL=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=bp(t[0]);return t.forEach(function(o){function a(i,s){var l=new Set(s),c=Rr(o,i),u=Array.isArray(c);if(u||GL(c)){if(!l.has(c)){l.add(c);var d=Rr(r,i);u?r=Ir(r,i,[]):(!d||at(d)!=="object")&&(r=Ir(r,i,bp(c))),KL(c).forEach(function(m){a([].concat(Re(i),[m]),l);});}}else r=Ir(r,i,c);}a([]);}),r}const UL=f.createContext(void 0),j1={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 XL={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 qL={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},F1=qL,YL={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"]},XL),timePickerLocale:Object.assign({},F1)},yp=YL,Yn="${label} is not a valid ${type}",QL={locale:"en",Pagination:j1,DatePicker:yp,TimePicker:F1,Calendar:yp,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:Yn,method:Yn,array:Yn,object:Yn,number:Yn,date:Yn,boolean:Yn,integer:Yn,float:Yn,regexp:Yn,email:Yn,url:Yn,hex:Yn},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=QL;Object.assign({},so.Modal);let Al=[];const Cp=()=>Al.reduce((e,t)=>Object.assign(Object.assign({},e),t),so.Modal);function ZL(e){if(e){const t=Object.assign({},e);return Al.push(t),Cp(),()=>{Al=Al.filter(n=>n!==t),Cp();}}Object.assign({},so.Modal);}const JL=f.createContext(void 0),Ng=JL,eA=(e,t)=>{const n=f__namespace.useContext(Ng),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]},pi=eA,tA="internalMark",nA=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;f__namespace.useEffect(()=>ZL(t&&t.Modal),[t]);const o=f__namespace.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return f__namespace.createElement(Ng.Provider,{value:o},n)},rA=nA;function En(e,t){oA(e)&&(e="100%");var n=aA(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 dl(e){return Math.min(1,Math.max(0,e))}function oA(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function aA(e){return typeof e=="string"&&e.indexOf("%")!==-1}function B1(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function fl(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Fo(e){return e.length===1?"0"+e:String(e)}function iA(e,t,n){return {r:En(e,255)*255,g:En(t,255)*255,b:En(n,255)*255}}function Sp(e,t,n){e=En(e,255),t=En(t,255),n=En(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a=0,i=0,s=(r+o)/2;if(r===o)i=0,a=0;else {var l=r-o;switch(i=s>.5?l/(2-r-o):l/(r+o),r){case e:a=(t-n)/l+(t<n?6:0);break;case t:a=(n-e)/l+2;break;case n:a=(e-t)/l+4;break}a/=6;}return {h:a,s:i,l:s}}function wd(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 sA(e,t,n){var r,o,a;if(e=En(e,360),t=En(t,100),n=En(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=wd(s,i,e+1/3),o=wd(s,i,e),a=wd(s,i,e-1/3);}return {r:r*255,g:o*255,b:a*255}}function kf(e,t,n){e=En(e,255),t=En(t,255),n=En(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a=0,i=r,s=r-o,l=r===0?0:s/r;if(r===o)a=0;else {switch(r){case e:a=(t-n)/s+(t<n?6:0);break;case t:a=(n-e)/s+2;break;case n:a=(e-t)/s+4;break}a/=6;}return {h:a,s:l,v:i}}function lA(e,t,n){e=En(e,360)*6,t=En(t,100),n=En(n,100);var r=Math.floor(e),o=e-r,a=n*(1-t),i=n*(1-o*t),s=n*(1-(1-o)*t),l=r%6,c=[n,i,a,a,s,n][l],u=[s,n,n,i,a,a][l],d=[a,a,s,n,n,i][l];return {r:c*255,g:u*255,b:d*255}}function Lf(e,t,n,r){var o=[Fo(Math.round(e).toString(16)),Fo(Math.round(t).toString(16)),Fo(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 cA(e,t,n,r,o){var a=[Fo(Math.round(e).toString(16)),Fo(Math.round(t).toString(16)),Fo(Math.round(n).toString(16)),Fo(uA(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 uA(e){return Math.round(parseFloat(e)*255).toString(16)}function $p(e){return Jn(e)/255}function Jn(e){return parseInt(e,16)}function dA(e){return {r:e>>16,g:(e&65280)>>8,b:e&255}}var Af={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=gA(e)),typeof e=="object"&&(eo(e.r)&&eo(e.g)&&eo(e.b)?(t=iA(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=fl(e.s),o=fl(e.v),t=lA(e.h,r,o),i=!0,s="hsv"):eo(e.h)&&eo(e.s)&&eo(e.l)&&(r=fl(e.s),a=fl(e.l),t=sA(e.h,r,a),i=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=B1(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 fA="[-\\+]?\\d+%?",mA="[-\\+]?\\d*\\.\\d+%?",$o="(?:".concat(mA,")|(?:").concat(fA,")"),xd="[\\s|\\(]+(".concat($o,")[,|\\s]+(").concat($o,")[,|\\s]+(").concat($o,")\\s*\\)?"),Ed="[\\s|\\(]+(".concat($o,")[,|\\s]+(").concat($o,")[,|\\s]+(").concat($o,")[,|\\s]+(").concat($o,")\\s*\\)?"),wr={CSS_UNIT:new RegExp($o),rgb:new RegExp("rgb"+xd),rgba:new RegExp("rgba"+Ed),hsl:new RegExp("hsl"+xd),hsla:new RegExp("hsla"+Ed),hsv:new RegExp("hsv"+xd),hsva:new RegExp("hsva"+Ed),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 gA(e){if(e=e.trim().toLowerCase(),e.length===0)return !1;var t=!1;if(Af[e])e=Af[e],t=!0;else if(e==="transparent")return {r:0,g:0,b:0,a:0,format:"name"};var n=wr.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=wr.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=wr.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=wr.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=wr.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=wr.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=wr.hex8.exec(e),n?{r:Jn(n[1]),g:Jn(n[2]),b:Jn(n[3]),a:$p(n[4]),format:t?"name":"hex8"}:(n=wr.hex6.exec(e),n?{r:Jn(n[1]),g:Jn(n[2]),b:Jn(n[3]),format:t?"name":"hex"}:(n=wr.hex4.exec(e),n?{r:Jn(n[1]+n[1]),g:Jn(n[2]+n[2]),b:Jn(n[3]+n[3]),a:$p(n[4]+n[4]),format:t?"name":"hex8"}:(n=wr.hex3.exec(e),n?{r:Jn(n[1]+n[1]),g:Jn(n[2]+n[2]),b:Jn(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function eo(e){return !!wr.CSS_UNIT.exec(String(e))}var Yt=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=dA(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=B1(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=kf(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=kf(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=Sp(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=Sp(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),Lf(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),cA(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(En(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(En(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="#"+Lf(this.r,this.g,this.b,!1),n=0,r=Object.entries(Af);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=dl(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=dl(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=dl(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=dl(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}(),ml=2,wp=.16,hA=.05,vA=.05,pA=.15,H1=5,W1=4,bA=[{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 xp(e){var t=e.r,n=e.g,r=e.b,o=kf(t,n,r);return {h:o.h*360,s:o.s,v:o.v}}function gl(e){var t=e.r,n=e.g,r=e.b;return "#".concat(Lf(t,n,r,!1))}function yA(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 Ep(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-ml*t:Math.round(e.h)+ml*t:r=n?Math.round(e.h)+ml*t:Math.round(e.h)-ml*t,r<0?r+=360:r>=360&&(r-=360),r}function Ip(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-wp*t:t===W1?r=e.s+wp:r=e.s+hA*t,r>1&&(r=1),n&&t===H1&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function Op(e,t,n){var r;return n?r=e.v+vA*t:r=e.v-pA*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=H1;o>0;o-=1){var a=xp(r),i=gl(Pa({h:Ep(a,o,!0),s:Ip(a,o,!0),v:Op(a,o,!0)}));n.push(i);}n.push(gl(r));for(var s=1;s<=W1;s+=1){var l=xp(r),c=gl(Pa({h:Ep(l,s),s:Ip(l,s),v:Op(l,s)}));n.push(c);}return t.theme==="dark"?bA.map(function(u){var d=u.index,m=u.opacity,g=gl(yA(Pa(t.backgroundColor||"#141414"),Pa(n[d]),m*100));return g}):n}var Id={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"},zl={},Od={};Object.keys(Id).forEach(function(e){zl[e]=lo(Id[e]),zl[e].primary=zl[e][5],Od[e]=lo(Id[e],{theme:"dark",backgroundColor:"#141414"}),Od[e].primary=Od[e][5];});var CA=zl.blue;const SA=e=>{const{controlHeight:t}=e;return {controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},V1=SA;function $A(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 kg={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"},wA=Object.assign(Object.assign({},kg),{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}),Ua=wA;function G1(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:a,colorError:i,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,d=n(l),m=n(o),g=n(a),h=n(i),v=n(s),p=r(c,u),b=e.colorLink||e.colorInfo,y=n(b);return Object.assign(Object.assign({},p),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg: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:h[1],colorErrorBgHover:h[2],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[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:v[1],colorInfoBgHover:v[2],colorInfoBorder:v[3],colorInfoBorderHover:v[4],colorInfoHover:v[4],colorInfo:v[6],colorInfoActive:v[7],colorInfoTextHover:v[8],colorInfoText:v[9],colorInfoTextActive:v[10],colorLinkHover:y[4],colorLink:y[6],colorLinkActive:y[7],colorBgMask:new Yt("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const xA=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}},EA=xA;function IA(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},EA(r))}const to=(e,t)=>new Yt(e).setAlpha(t).toRgbString(),Mi=(e,t)=>new Yt(e).darken(t).toHexString(),OA=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]}},PA=(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:Mi(n,4),colorBgContainer:Mi(n,0),colorBgElevated:Mi(n,0),colorBgSpotlight:to(r,.85),colorBgBlur:"transparent",colorBorder:Mi(n,15),colorBorderSecondary:Mi(n,6)}};function MA(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 RA=e=>{const t=MA(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]}},K1=RA;function Ts(e){const t=Object.keys(kg).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),G1(e,{generateColorPalettes:OA,generateNeutralColorPalettes:PA})),K1(e.fontSize)),$A(e)),V1(e)),IA(e))}const U1=ss(Ts),rc={token:Ua,override:{override:Ua},hashed:!0},X1=f.createContext(rc),q1="anticon",_A=(e,t)=>t||(e?`ant-${e}`:"ant"),Je=f__namespace.createContext({getPrefixCls:_A,iconPrefixCls:q1}),TA=`-ant-${Date.now()}-${Math.random()}`;function NA(e,t){const n={},r=(i,s)=>{let l=i.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},o=(i,s)=>{const l=new Yt(i),c=lo(l.toRgbString());n[`${s}-color`]=r(l),n[`${s}-color-disabled`]=c[1],n[`${s}-color-hover`]=c[4],n[`${s}-color-active`]=c[6],n[`${s}-color-outline`]=l.clone().setAlpha(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=c[0],n[`${s}-color-deprecated-border`]=c[2];};if(t.primaryColor){o(t.primaryColor,"primary");const i=new Yt(t.primaryColor),s=lo(i.toRgbString());s.forEach((c,u)=>{n[`primary-${u+1}`]=c;}),n["primary-color-deprecated-l-35"]=r(i,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(i,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(i,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(i,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(i,c=>c.setAlpha(c.getAlpha()*.12));const l=new Yt(s[0]);n["primary-color-active-deprecated-f-30"]=r(l,c=>c.setAlpha(c.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(l,c=>c.darken(2));}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`
  :root {
    ${Object.keys(n).map(i=>`--${e}-${i}: ${n[i]};`).join(`
`)}
  }
  `.trim()}function kA(e,t){const n=NA(e,t);Fn()&&Ka(n,`${TA}-dynamic-theme`);}const zf=f__namespace.createContext(!1),LA=e=>{let{children:t,disabled:n}=e;const r=f__namespace.useContext(zf);return f__namespace.createElement(zf.Provider,{value:n??r},t)},Yr=zf,Df=f__namespace.createContext(void 0),AA=e=>{let{children:t,size:n}=e;const r=f__namespace.useContext(Df);return f__namespace.createElement(Df.Provider,{value:n||r},t)},iu=Df;function zA(){const e=f.useContext(Yr),t=f.useContext(iu);return {componentDisabled:e,componentSize:t}}const ls=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],DA="5.11.1";function Pd(e){return e>=0&&e<=255}function hl(e,t){const{r:n,g:r,b:o,a}=new Yt(e).toRgb();if(a<1)return e;const{r:i,g:s,b:l}=new Yt(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-i*(1-c))/c),d=Math.round((r-s*(1-c))/c),m=Math.round((o-l*(1-c))/c);if(Pd(u)&&Pd(d)&&Pd(m))return new Yt({r:u,g:d,b:m,a:Math.round(c*100)/100}).toRgbString()}return new Yt({r:n,g:r,b:o,a:1}).toRgbString()}var jA=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 Lg(e){const{override:t}=e,n=jA(e,["override"]),r=Object.assign({},t);Object.keys(Ua).forEach(m=>{delete r[m];});const o=Object.assign(Object.assign({},n),r),a=480,i=576,s=768,l=992,c=1200,u=1600;if(o.motion===!1){const 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:hl(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:hl(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:hl(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:hl(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
      0 6px 16px 0 rgba(0, 0, 0, 0.08),
      0 3px 6px -4px rgba(0, 0, 0, 0.12),
      0 9px 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowSecondary:`
      0 6px 16px 0 rgba(0, 0, 0, 0.08),
      0 3px 6px -4px rgba(0, 0, 0, 0.12),
      0 9px 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowTertiary:`
      0 1px 2px 0 rgba(0, 0, 0, 0.03),
      0 1px 6px -1px rgba(0, 0, 0, 0.02),
      0 2px 4px 0 rgba(0, 0, 0, 0.02)
    `,screenXS:a,screenXSMin:a,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
      0 1px 2px -2px ${new Yt("rgba(0, 0, 0, 0.16)").toRgbString()},
      0 3px 6px 0 ${new Yt("rgba(0, 0, 0, 0.12)").toRgbString()},
      0 5px 12px 4px ${new Yt("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 Pp=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 Y1=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,a=Pp(t,["override"]);let i=Object.assign(Object.assign({},r),{override:o});return i=Lg(i),a&&Object.entries(a).forEach(s=>{let[l,c]=s;const{theme:u}=c,d=Pp(c,["theme"]);let m=d;u&&(m=Y1(Object.assign(Object.assign({},i),d),{override:d},u)),i[l]=m;}),i};function Un(){const{token:e,hashed:t,theme:n,override:r}=f.useContext(X1),o=`${DA}-${t||""}`,a=n||U1,[i,s]=NL(a,[Ua,e],{salt:o,override:r,getComputedToken:Y1,formatToken:Lg});return [a,i,t?s:""]}var Q1={exports:{}},jt={};/**
   * @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 Ag=Symbol.for("react.element"),zg=Symbol.for("react.portal"),su=Symbol.for("react.fragment"),lu=Symbol.for("react.strict_mode"),cu=Symbol.for("react.profiler"),uu=Symbol.for("react.provider"),du=Symbol.for("react.context"),FA=Symbol.for("react.server_context"),fu=Symbol.for("react.forward_ref"),mu=Symbol.for("react.suspense"),gu=Symbol.for("react.suspense_list"),hu=Symbol.for("react.memo"),vu=Symbol.for("react.lazy"),BA=Symbol.for("react.offscreen"),Z1;Z1=Symbol.for("react.module.reference");function Cr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Ag:switch(e=e.type,e){case su:case cu:case lu:case mu:case gu:return e;default:switch(e=e&&e.$$typeof,e){case FA:case du:case fu:case vu:case hu:case uu:return e;default:return t}}case zg:return t}}}jt.ContextConsumer=du;jt.ContextProvider=uu;jt.Element=Ag;jt.ForwardRef=fu;jt.Fragment=su;jt.Lazy=vu;jt.Memo=hu;jt.Portal=zg;jt.Profiler=cu;jt.StrictMode=lu;jt.Suspense=mu;jt.SuspenseList=gu;jt.isAsyncMode=function(){return !1};jt.isConcurrentMode=function(){return !1};jt.isContextConsumer=function(e){return Cr(e)===du};jt.isContextProvider=function(e){return Cr(e)===uu};jt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ag};jt.isForwardRef=function(e){return Cr(e)===fu};jt.isFragment=function(e){return Cr(e)===su};jt.isLazy=function(e){return Cr(e)===vu};jt.isMemo=function(e){return Cr(e)===hu};jt.isPortal=function(e){return Cr(e)===zg};jt.isProfiler=function(e){return Cr(e)===cu};jt.isStrictMode=function(e){return Cr(e)===lu};jt.isSuspense=function(e){return Cr(e)===mu};jt.isSuspenseList=function(e){return Cr(e)===gu};jt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===su||e===cu||e===lu||e===mu||e===gu||e===BA||typeof e=="object"&&e!==null&&(e.$$typeof===vu||e.$$typeof===hu||e.$$typeof===uu||e.$$typeof===du||e.$$typeof===fu||e.$$typeof===Z1||e.getModuleId!==void 0)};jt.typeOf=Cr;Q1.exports=jt;var Dg=Q1.exports;function jg(e,t){typeof e=="function"?e(t):at(e)==="object"&&e&&"current"in e&&(e.current=t);}function Wn(){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){jg(a,o);});}}function oa(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return _s(function(){return Wn.apply(void 0,t)},t,function(r,o){return r.length!==o.length||r.every(function(a,i){return a!==o[i]})})}function Ro(e){var t,n,r=Dg.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 HA(e){return !f.isValidElement(e)||Dg.isFragment(e)?!1:Ro(e)}const WA=(e,t,n,r,o)=>{const a=e/2,i=0,s=a,l=n*1/Math.sqrt(2),c=a-n*(1-1/Math.sqrt(2)),u=a-t*(1/Math.sqrt(2)),d=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),m=2*a-u,g=d,h=2*a-l,v=c,p=2*a-i,b=s,y=a*Math.sqrt(2)+n*(Math.sqrt(2)-2),C=n*(Math.sqrt(2)-1);return {pointerEvents:"none",width:e,height:e,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e,height:e/2,background:r,clipPath:{_multi_value_:!0,value:[`polygon(${C}px 100%, 50% ${C}px, ${2*a-C}px 100%, ${C}px 100%)`,`path('M ${i} ${s} A ${n} ${n} 0 0 0 ${l} ${c} L ${u} ${d} A ${t} ${t} 0 0 1 ${m} ${g} L ${h} ${v} 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"}}},Yo={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},zt=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}},aa=()=>({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"}}),jf=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),VA=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"}}}),GA=(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"}}}}},Qo=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Zo=e=>({"&:focus-visible":Object.assign({},Qo(e))}),J1=typeof CSSINJS_STATISTIC<"u";let Ff=!0;function bt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!J1)return Object.assign.apply(Object,[{}].concat(t));Ff=!1;const r={};return t.forEach(o=>{Object.keys(o).forEach(i=>{Object.defineProperty(r,i,{configurable:!0,enumerable:!0,get:()=>o[i]});});}),Ff=!0,r}const Mp={};function KA(){}function UA(e){let t,n=e,r=KA;return J1&&typeof Proxy<"u"&&(t=new Set,n=new Proxy(e,{get(o,a){return Ff&&t.add(a),o[a]}}),r=(o,a)=>{var i;Mp[o]={global:Array.from(t),component:Object.assign(Object.assign({},(i=Mp[o])===null||i===void 0?void 0:i.component),a)};}),{token:n,keys:t,flush:r}}const XA=(e,t)=>{const[n,r]=Un();return Nf({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},aa()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},eC=XA;function Bt(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=Array.isArray(e)?e:[e,e],[a]=o,i=o.join("-");return s=>{const[l,c,u]=Un(),{getPrefixCls:d,iconPrefixCls:m,csp:g}=f.useContext(Je),h=d(),v={theme:l,token:c,hashId:u,nonce:()=>g==null?void 0:g.nonce,clientOnly:r.clientOnly,order:r.order||-999};return Nf(Object.assign(Object.assign({},v),{clientOnly:!1,path:["Shared",h]}),()=>[{"&":VA(c)}]),eC(m,g),[Nf(Object.assign(Object.assign({},v),{path:[i,s,m]}),()=>{const{token:p,flush:b}=UA(c),y=Object.assign({},c[a]);if(r.deprecatedTokens){const{deprecatedTokens:E}=r;E.forEach(I=>{let[O,R]=I;var P;(y!=null&&y[O]||y!=null&&y[R])&&((P=y[R])!==null&&P!==void 0||(y[R]=y==null?void 0:y[O]));});}const C=typeof n=="function"?n(bt(p,y??{})):n,$=Object.assign(Object.assign({},C),y),x=`.${s}`,w=bt(p,{componentCls:x,prefixCls:s,iconCls:`.${m}`,antCls:`.${h}`},$),S=t(w,{hashId:u,prefixCls:s,rootPrefixCls:h,iconPrefixCls:m,overrideComponentToken:y});return b(a,$),[r.resetStyle===!1?null:GA(w,s),S]}),u]}}const Fg=(e,t,n,r)=>{const o=Bt(e,t,n,Object.assign({resetStyle:!1,order:-998},r));return i=>{let{prefixCls:s}=i;return o(s),null}};function pu(e,t){return ls.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 qA(e,t){const n=e||{},r=n.inherit===!1||!t?rc:t;return _s(()=>{if(!e)return t;const o=Object.assign({},r.components);return Object.keys(e.components||{}).forEach(a=>{o[a]=Object.assign(Object.assign({},o[a]),e.components[a]);}),Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:o})},[n,r],(o,a)=>o.some((i,s)=>{const l=a[s];return !Rs(i,l,!0)}))}function oc(e){return e instanceof HTMLElement||e instanceof SVGElement}function Ki(e){return oc(e)?e:e instanceof f.Component?dy.findDOMNode(e):null}var YA=["children"],tC=f__namespace.createContext({});function QA(e){var t=e.children,n=Ye(e,YA);return f__namespace.createElement(tC.Provider,{value:n},t)}function Bf(e,t){return Bf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Bf(e,t)}function _o(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&&Bf(e,t);}function ac(e){return ac=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ac(e)}function ZA(){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 He(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function JA(e,t){if(t&&(at(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return He(e)}function To(e){var t=ZA();return function(){var r=ac(e),o;if(t){var a=ac(this).constructor;o=Reflect.construct(r,arguments,a);}else o=r.apply(this,arguments);return JA(this,o)}}var e5=function(e){_o(n,e);var t=To(n);function n(){return Cn(this,n),t.apply(this,arguments)}return Sn(n,[{key:"render",value:function(){return this.props.children}}]),n}(f__namespace.Component),Lo="none",vl="appear",pl="enter",bl="leave",Rp="none",Or="prepare",ka="start",La="active",Bg="end",nC="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 t5(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 n5=t5(Fn(),typeof window<"u"?window:{}),rC={};if(Fn()){var r5=document.createElement("div");rC=r5.style;}var yl={};function oC(e){if(yl[e])return yl[e];var t=n5[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 rC)return yl[e]=t[a],yl[e]}return ""}var aC=oC("animationend"),iC=oC("transitionend"),sC=!!(aC&&iC),Tp=aC||"animationend",Np=iC||"transitionend";function kp(e,t){if(!e)return null;if(at(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return "".concat(e,"-").concat(t)}const o5=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(Np,r),i.removeEventListener(Tp,r));}function a(i){t.current&&t.current!==i&&o(t.current),i&&i!==t.current&&(i.addEventListener(Np,r),i.addEventListener(Tp,r),t.current=i);}return f__namespace.useEffect(function(){return function(){o(t.current);}},[]),[a,o]};var lC=Fn()?f.useLayoutEffect:f.useEffect,cC=function(t){return +setTimeout(t,16)},uC=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(cC=function(t){return window.requestAnimationFrame(t)},uC=function(t){return window.cancelAnimationFrame(t)});var Lp=0,Hg=new Map;function dC(e){Hg.delete(e);}var Et=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Lp+=1;var r=Lp;function o(a){if(a===0)dC(r),t();else {var i=cC(function(){o(a-1);});Hg.set(r,i);}}return o(n),r};Et.cancel=function(e){var t=Hg.get(e);return dC(e),uC(t)};const a5=function(){var e=f__namespace.useRef(null);function t(){Et.cancel(e.current);}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var a=Et(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 i5=[Or,ka,La,Bg],s5=[Or,nC],fC=!1,l5=!0;function mC(e){return e===La||e===Bg}const c5=function(e,t,n){var r=Go(Rp),o=Q(r,2),a=o[0],i=o[1],s=a5(),l=Q(s,2),c=l[0],u=l[1];function d(){i(Or,!0);}var m=t?s5:i5;return lC(function(){if(a!==Rp&&a!==Bg){var g=m.indexOf(a),h=m[g+1],v=n(a);v===fC?i(h,!0):h&&c(function(p){function b(){p.isCanceled()||i(h,!0);}v===!0?b():Promise.resolve(v).then(b);});}},[e,a]),f__namespace.useEffect(function(){return function(){u();}},[]),[d,a]};function u5(e,t,n,r){var o=r.motionEnter,a=o===void 0?!0:o,i=r.motionAppear,s=i===void 0?!0:i,l=r.motionLeave,c=l===void 0?!0:l,u=r.motionDeadline,d=r.motionLeaveImmediately,m=r.onAppearPrepare,g=r.onEnterPrepare,h=r.onLeavePrepare,v=r.onAppearStart,p=r.onEnterStart,b=r.onLeaveStart,y=r.onAppearActive,C=r.onEnterActive,$=r.onLeaveActive,x=r.onAppearEnd,w=r.onEnterEnd,S=r.onLeaveEnd,E=r.onVisibleChanged,I=Go(),O=Q(I,2),R=O[0],P=O[1],k=Go(Lo),L=Q(k,2),A=L[0],T=L[1],M=Go(null),_=Q(M,2),D=_[0],F=_[1],H=f.useRef(!1),B=f.useRef(null);function W(){return n()}var K=f.useRef(!1);function X(){T(Lo,!0),F(null,!0);}function q(re){var ie=W();if(!(re&&!re.deadline&&re.target!==ie)){var ge=K.current,be;A===vl&&ge?be=x==null?void 0:x(ie,re):A===pl&&ge?be=w==null?void 0:w(ie,re):A===bl&&ge&&(be=S==null?void 0:S(ie,re)),A!==Lo&&ge&&be!==!1&&X();}}var ne=o5(q),G=Q(ne,1),ee=G[0],Y=function(ie){var ge,be,Te;switch(ie){case vl:return ge={},z(ge,Or,m),z(ge,ka,v),z(ge,La,y),ge;case pl:return be={},z(be,Or,g),z(be,ka,p),z(be,La,C),be;case bl:return Te={},z(Te,Or,h),z(Te,ka,b),z(Te,La,$),Te;default:return {}}},ue=f__namespace.useMemo(function(){return Y(A)},[A]),le=c5(A,!e,function(re){if(re===Or){var ie=ue[Or];return ie?ie(W()):fC}if(fe in ue){var ge;F(((ge=ue[fe])===null||ge===void 0?void 0:ge.call(ue,W(),null))||null);}return fe===La&&(ee(W()),u>0&&(clearTimeout(B.current),B.current=setTimeout(function(){q({deadline:!0});},u))),fe===nC&&X(),l5}),Z=Q(le,2),oe=Z[0],fe=Z[1],J=mC(fe);K.current=J,lC(function(){P(t);var re=H.current;H.current=!0;var ie;!re&&t&&s&&(ie=vl),re&&t&&a&&(ie=pl),(re&&!t&&c||!re&&d&&!t&&c)&&(ie=bl);var ge=Y(ie);ie&&(e||ge[Or])?(T(ie),oe()):T(Lo);},[t]),f.useEffect(function(){(A===vl&&!s||A===pl&&!a||A===bl&&!c)&&T(Lo);},[s,a,c]),f.useEffect(function(){return function(){H.current=!1,clearTimeout(B.current);}},[]);var se=f__namespace.useRef(!1);f.useEffect(function(){R&&(se.current=!0),R!==void 0&&A===Lo&&((se.current||R)&&(E==null||E(R)),se.current=!0);},[R,A]);var me=D;return ue[Or]&&fe===ka&&(me=U({transition:"none"},me)),[A,fe,me,R??t]}function d5(e){var t=e;at(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,l=o.removeOnLeave,c=l===void 0?!0:l,u=o.forceRender,d=o.children,m=o.motionName,g=o.leavedClassName,h=o.eventProps,v=f__namespace.useContext(tC),p=v.motion,b=n(o,p),y=f.useRef(),C=f.useRef();function $(){try{return y.current instanceof HTMLElement?y.current:Ki(C.current)}catch{return null}}var x=u5(b,s,$,o),w=Q(x,4),S=w[0],E=w[1],I=w[2],O=w[3],R=f__namespace.useRef(O);O&&(R.current=!0);var P=f__namespace.useCallback(function(F){y.current=F,jg(a,F);},[a]),k,L=U(U({},h),{},{visible:s});if(!d)k=null;else if(S===Lo)O?k=d(U({},L),P):!c&&R.current&&g?k=d(U(U({},L),{},{className:g}),P):u||!c&&!g?k=d(U(U({},L),{},{style:{display:"none"}}),P):k=null;else {var A,T;E===Or?T="prepare":mC(E)?T="active":E===ka&&(T="start");var M=kp(m,"".concat(S,"-").concat(T));k=d(U(U({},L),{},{className:V(kp(m,S),(A={},z(A,M,M&&T),z(A,m,typeof m=="string"),A)),style:I}),P);}if(f__namespace.isValidElement(k)&&Ro(k)){var _=k,D=_.ref;D||(k=f__namespace.cloneElement(k,{ref:P}));}return f__namespace.createElement(e5,{ref:C},k)});return r.displayName="CSSMotion",r}const mo=d5(sC);var Hf="add",Wf="keep",Vf="remove",Md="removed";function f5(e){var t;return e&&at(e)==="object"&&"key"in e?t=e:t={key:e},U(U({},t),{},{key:String(t.key)})}function Gf(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(f5)}function m5(){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=Gf(e),i=Gf(t);a.forEach(function(c){for(var u=!1,d=r;d<o;d+=1){var m=i[d];if(m.key===c.key){r<d&&(n=n.concat(i.slice(r,d).map(function(g){return U(U({},g),{},{status:Hf})})),r=d),n.push(U(U({},m),{},{status:Wf})),r+=1,u=!0;break}}u||n.push(U(U({},c),{},{status:Vf}));}),r<o&&(n=n.concat(i.slice(r).map(function(c){return U(U({},c),{},{status:Hf})})));var s={};n.forEach(function(c){var u=c.key;s[u]=(s[u]||0)+1;});var l=Object.keys(s).filter(function(c){return s[c]>1});return l.forEach(function(c){n=n.filter(function(u){var d=u.key,m=u.status;return d!==c||m!==Vf}),n.forEach(function(u){u.key===c&&(u.status=Wf);});}),n}var g5=["component","children","onVisibleChanged","onAllRemoved"],h5=["status"],v5=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function p5(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:mo,n=function(r){_o(a,r);var o=To(a);function a(){var i;Cn(this,a);for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return i=o.call.apply(o,[this].concat(l)),z(He(i),"state",{keyEntities:[]}),z(He(i),"removeKey",function(u){var d=i.state.keyEntities,m=d.map(function(g){return g.key!==u?g:U(U({},g),{},{status:Md})});return i.setState({keyEntities:m}),m.filter(function(g){var h=g.status;return h!==Md}).length}),i}return Sn(a,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,c=this.props,u=c.component,d=c.children,m=c.onVisibleChanged,g=c.onAllRemoved,h=Ye(c,g5),v=u||f__namespace.Fragment,p={};return v5.forEach(function(b){p[b]=h[b],delete h[b];}),delete h.keys,f__namespace.createElement(v,h,l.map(function(b,y){var C=b.status,$=Ye(b,h5),x=C===Hf||C===Wf;return f__namespace.createElement(t,Ie({},p,{key:$.key,visible:x,eventProps:$,onVisibleChanged:function(S){if(m==null||m(S,{key:$.key}),!S){var E=s.removeKey($.key);E===0&&g&&g();}}}),function(w,S){return d(U(U({},w),{},{index:y}),S)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var c=s.keys,u=l.keyEntities,d=Gf(c),m=m5(u,d);return {keyEntities:m.filter(function(g){var h=u.find(function(v){var p=v.key;return g.key===p});return !(h&&h.status===Md&&g.status===Vf)})}}}]),a}(f__namespace.Component);return z(n,"defaultProps",{component:"div"}),n}p5(sC);function b5(e){const{children:t}=e,[,n]=Un(),{motion:r}=n,o=f__namespace.useRef(!1);return o.current=o.current||r===!1,o.current?f__namespace.createElement(QA,{motion:r},t):t}const y5=()=>null;var C5=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const S5=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select","button"],$5="ant";let gC;function w5(){return gC||$5}function x5(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const E5=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r}=e;t!==void 0&&(gC=t),r&&x5(r)&&kA(w5(),r);},I5=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:a,form:i,locale:s,componentSize:l,direction:c,space:u,virtual:d,dropdownMatchSelectWidth:m,popupMatchSelectWidth:g,popupOverflow:h,legacyLocale:v,parentContext:p,iconPrefixCls:b,theme:y,componentDisabled:C,segmented:$,statistic:x,spin:w,calendar:S,carousel:E,cascader:I,collapse:O,typography:R,checkbox:P,descriptions:k,divider:L,drawer:A,skeleton:T,steps:M,image:_,layout:D,list:F,mentions:H,modal:B,progress:W,result:K,slider:X,breadcrumb:q,menu:ne,pagination:G,input:ee,empty:Y,badge:ue,radio:le,rate:Z,switch:oe,transfer:fe,avatar:J,message:se,tag:me,table:re,card:ie,tabs:ge,timeline:be,timePicker:Te,upload:Ae,notification:Ve,tree:Oe,colorPicker:je,datePicker:Qe,rangePicker:Be,flex:Pe,wave:we,dropdown:Ge,warning:nt}=e,ft=f__namespace.useCallback((ve,De)=>{const{prefixCls:xe}=e;if(De)return De;const ae=xe||p.getPrefixCls("");return ve?`${ae}-${ve}`:ae},[p.getPrefixCls,e.prefixCls]),et=b||p.iconPrefixCls||q1,Xe=n||p.csp;eC(et,Xe);const gt=qA(y,p.theme),pt={csp:Xe,autoInsertSpaceInButton:r,alert:o,anchor:a,locale:s||v,direction:c,space:u,virtual:d,popupMatchSelectWidth:g??m,popupOverflow:h,getPrefixCls:ft,iconPrefixCls:et,theme:gt,segmented:$,statistic:x,spin:w,calendar:S,carousel:E,cascader:I,collapse:O,typography:R,checkbox:P,descriptions:k,divider:L,drawer:A,skeleton:T,steps:M,image:_,input:ee,layout:D,list:F,mentions:H,modal:B,progress:W,result:K,slider:X,breadcrumb:q,menu:ne,pagination:G,empty:Y,badge:ue,radio:le,rate:Z,switch:oe,transfer:fe,avatar:J,message:se,tag:me,table:re,card:ie,tabs:ge,timeline:be,timePicker:Te,upload:Ae,notification:Ve,tree:Oe,colorPicker:je,datePicker:Qe,rangePicker:Be,flex:Pe,wave:we,dropdown:Ge,warning:nt},ut=Object.assign({},p);Object.keys(pt).forEach(ve=>{pt[ve]!==void 0&&(ut[ve]=pt[ve]);}),S5.forEach(ve=>{const De=e[ve];De&&(ut[ve]=De);});const dt=_s(()=>ut,ut,(ve,De)=>{const xe=Object.keys(ve),ae=Object.keys(De);return xe.length!==ae.length||xe.some(te=>ve[te]!==De[te])}),$t=f__namespace.useMemo(()=>({prefixCls:et,csp:Xe}),[et,Xe]);let Me=f__namespace.createElement(f__namespace.Fragment,null,f__namespace.createElement(y5,{dropdownMatchSelectWidth:m}),t);const _e=f__namespace.useMemo(()=>{var ve,De,xe,ae;return Na(((ve=so.Form)===null||ve===void 0?void 0:ve.defaultValidateMessages)||{},((xe=(De=dt.locale)===null||De===void 0?void 0:De.Form)===null||xe===void 0?void 0:xe.defaultValidateMessages)||{},((ae=dt.form)===null||ae===void 0?void 0:ae.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[dt,i==null?void 0:i.validateMessages]);Object.keys(_e).length>0&&(Me=f__namespace.createElement(UL.Provider,{value:_e},Me)),s&&(Me=f__namespace.createElement(rA,{locale:s,_ANT_MARK__:tA},Me)),(et||Xe)&&(Me=f__namespace.createElement(Tg.Provider,{value:$t},Me)),l&&(Me=f__namespace.createElement(AA,{size:l},Me)),Me=f__namespace.createElement(b5,null,Me);const Ne=f__namespace.useMemo(()=>{const ve=gt||{},{algorithm:De,token:xe,components:ae}=ve,te=C5(ve,["algorithm","token","components"]),he=De&&(!Array.isArray(De)||De.length>0)?ss(De):U1,ye={};Object.entries(ae||{}).forEach(Ue=>{let[qe,Ct]=Ue;const ht=Object.assign({},Ct);"algorithm"in ht&&(ht.algorithm===!0?ht.theme=he:(Array.isArray(ht.algorithm)||typeof ht.algorithm=="function")&&(ht.theme=ss(ht.algorithm)),delete ht.algorithm),ye[qe]=ht;});const $e=Object.assign(Object.assign({},Ua),xe);return Object.assign(Object.assign({},te),{theme:he,token:$e,components:ye,override:Object.assign({override:$e},ye)})},[gt]);return y&&(Me=f__namespace.createElement(X1.Provider,{value:Ne},Me)),dt.warning&&(Me=f__namespace.createElement(rL.Provider,{value:dt.warning},Me)),C!==void 0&&(Me=f__namespace.createElement(LA,{disabled:C},Me)),f__namespace.createElement(Je.Provider,{value:dt},Me)},bi=e=>{const t=f__namespace.useContext(Je),n=f__namespace.useContext(Ng);return f__namespace.createElement(I5,Object.assign({parentContext:t,legacyLocale:n},e))};bi.ConfigContext=Je;bi.SizeContext=iu;bi.config=E5;bi.useConfig=zA;Object.defineProperty(bi,"SizeContext",{get:()=>iu});const Wg=bi;function Vg(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))}var hC=f__namespace.createContext(null),Ap=[];function O5(e,t){var n=f__namespace.useState(function(){if(!Fn())return null;var h=document.createElement("div");return h}),r=Q(n,1),o=r[0],a=f__namespace.useRef(!1),i=f__namespace.useContext(hC),s=f__namespace.useState(Ap),l=Q(s,2),c=l[0],u=l[1],d=i||(a.current?void 0:function(h){u(function(v){var p=[h].concat(Re(v));return p});});function m(){o.parentElement||document.body.appendChild(o),a.current=!0;}function g(){var h;(h=o.parentElement)===null||h===void 0||h.removeChild(o),a.current=!1;}return Wt(function(){return e?i?i(m):m():g(),g},[e]),Wt(function(){c.length&&(c.forEach(function(h){return h()}),u(Ap));},[c]),[o,d]}var Rd;function P5(e){if(typeof document>"u")return 0;if(e||Rd===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),Rd=o-a;}return Rd}function M5(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var R5="rc-util-locker-".concat(Date.now()),zp=0;function _5(e){var t=!!e,n=f__namespace.useState(function(){return zp+=1,"".concat(R5,"_").concat(zp)}),r=Q(n,1),o=r[0];Wt(function(){if(t){var a=P5(),i=M5();Ka(`
html body {
  overflow-y: hidden;
  `.concat(i?"width: calc(100% - ".concat(a,"px);"):"",`
}`),o);}else tc(o);return function(){tc(o);}},[t,o]);}var Dp=!1;function T5(e){return typeof e=="boolean"&&(Dp=e),Dp}var jp=function(t){return t===!1?!1:!Fn()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},vC=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,l=f__namespace.useState(n),c=Q(l,2),u=c[0],d=c[1],m=u||n;f__namespace.useEffect(function(){(i||n)&&d(n);},[n,i]);var g=f__namespace.useState(function(){return jp(o)}),h=Q(g,2),v=h[0],p=h[1];f__namespace.useEffect(function(){var R=jp(o);p(R??null);});var b=O5(m&&!v),y=Q(b,2),C=y[0],$=y[1],x=v??C;_5(r&&n&&Fn()&&(x===C||x===document.body));var w=null;if(s&&Ro(s)&&t){var S=s;w=S.ref;}var E=oa(w,t);if(!m||!Fn()||v===void 0)return null;var I=x===!1||T5(),O=s;return t&&(O=f__namespace.cloneElement(s,{ref:E})),f__namespace.createElement(hC.Provider,{value:$},I?O:dy.createPortal(O,x))});function or(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(or(r)):Dg.isFragment(r)&&r.props?n=n.concat(or(r.props.children,t)):n.push(r));}),n}var Kf=f__namespace.createContext(null);function N5(e){var t=e.children,n=e.onBatchResize,r=f__namespace.useRef(0),o=f__namespace.useRef([]),a=f__namespace.useContext(Kf),i=f__namespace.useCallback(function(s,l,c){r.current+=1;var u=r.current;o.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){u===r.current&&(n==null||n(o.current),o.current=[]);}),a==null||a(s,l,c);},[n,a]);return f__namespace.createElement(Kf.Provider,{value:i},t)}var wo=new Map;function k5(e){e.forEach(function(t){var n,r=t.target;(n=wo.get(r))===null||n===void 0||n.forEach(function(o){return o(r)});});}var pC=new Zx(k5);function L5(e,t){wo.has(e)||(wo.set(e,new Set),pC.observe(e)),wo.get(e).add(t);}function A5(e,t){wo.has(e)&&(wo.get(e).delete(t),wo.get(e).size||(pC.unobserve(e),wo.delete(e)));}var z5=function(e){_o(n,e);var t=To(n);function n(){return Cn(this,n),t.apply(this,arguments)}return Sn(n,[{key:"render",value:function(){return this.props.children}}]),n}(f__namespace.Component);function D5(e,t){var n=e.children,r=e.disabled,o=f__namespace.useRef(null),a=f__namespace.useRef(null),i=f__namespace.useContext(Kf),s=typeof n=="function",l=s?n(o):n,c=f__namespace.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&f__namespace.isValidElement(l)&&Ro(l),d=u?l.ref:null,m=oa(d,o),g=function(){var b;return Ki(o.current)||(o.current&&at(o.current)==="object"?Ki((b=o.current)===null||b===void 0?void 0:b.nativeElement):null)||Ki(a.current)};f__namespace.useImperativeHandle(t,function(){return g()});var h=f__namespace.useRef(e);h.current=e;var v=f__namespace.useCallback(function(p){var b=h.current,y=b.onResize,C=b.data,$=p.getBoundingClientRect(),x=$.width,w=$.height,S=p.offsetWidth,E=p.offsetHeight,I=Math.floor(x),O=Math.floor(w);if(c.current.width!==I||c.current.height!==O||c.current.offsetWidth!==S||c.current.offsetHeight!==E){var R={width:I,height:O,offsetWidth:S,offsetHeight:E};c.current=R;var P=S===Math.round(x)?x:S,k=E===Math.round(w)?w:E,L=U(U({},R),{},{offsetWidth:P,offsetHeight:k});i==null||i(L,p,C),y&&Promise.resolve().then(function(){y(L,p);});}},[]);return f__namespace.useEffect(function(){var p=g();return p&&!r&&L5(p,v),function(){return A5(p,v)}},[o.current,r]),f__namespace.createElement(z5,{ref:a},u?f__namespace.cloneElement(l,{ref:m}):l)}var j5=f__namespace.forwardRef(D5),F5="rc-observer-key";function B5(e,t){var n=e.children,r=typeof n=="function"?[n]:or(n);return r.map(function(o,a){var i=(o==null?void 0:o.key)||"".concat(F5,"-").concat(a);return f__namespace.createElement(j5,Ie({},e,{key:i,ref:a===0?t:void 0}),o)})}var vr=f__namespace.forwardRef(B5);vr.Collection=N5;function bC(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function H5(e){return bC(e)instanceof ShadowRoot}function ic(e){return H5(e)?bC(e):null}function W5(){var e=U({},f__namespace);return e.useId}var Fp=0,Bp=W5();const V5=Bp?function(t){var n=Bp();return t||n}:function(t){var n=f__namespace.useState("ssr-id"),r=Q(n,2),o=r[0],a=r[1];return f__namespace.useEffect(function(){var i=Fp;Fp+=1,a("rc_unique_".concat(i));},[]),t||o},bu=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))};function G5(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,a=r||{},i=a.className,s=a.content,l=o.x,c=l===void 0?0:l,u=o.y,d=u===void 0?0:u,m=f__namespace.useRef();if(!n||!n.points)return null;var g={position:"absolute"};if(n.autoArrow!==!1){var h=n.points[0],v=n.points[1],p=h[0],b=h[1],y=v[0],C=v[1];p===y||!["t","b"].includes(p)?g.top=d:p==="t"?g.top=0:g.bottom=0,b===C||!["l","r"].includes(b)?g.left=c: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 K5(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,a=e.motion;return o?f__namespace.createElement(mo,Ie({},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 U5=f__namespace.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),X5=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,l=e.open,c=e.keepDom,u=e.fresh,d=e.onClick,m=e.mask,g=e.arrow,h=e.arrowPos,v=e.align,p=e.motion,b=e.maskMotion,y=e.forceRender,C=e.getPopupContainer,$=e.autoDestroy,x=e.portal,w=e.zIndex,S=e.onMouseEnter,E=e.onMouseLeave,I=e.onPointerEnter,O=e.ready,R=e.offsetX,P=e.offsetY,k=e.offsetR,L=e.offsetB,A=e.onAlign,T=e.onPrepare,M=e.stretch,_=e.targetWidth,D=e.targetHeight,F=typeof n=="function"?n():n,H=l||c,B=(C==null?void 0:C.length)>0,W=f__namespace.useState(!C||!B),K=Q(W,2),X=K[0],q=K[1];if(Wt(function(){!X&&B&&i&&q(!0);},[X,B,i]),!X)return null;var ne="auto",G={left:"-1000vw",top:"-1000vh",right:ne,bottom:ne};if(O||!l){var ee,Y=v.points,ue=v.dynamicInset||((ee=v._experimental)===null||ee===void 0?void 0:ee.dynamicInset),le=ue&&Y[0][1]==="r",Z=ue&&Y[0][0]==="b";le?(G.right=k,G.left=ne):(G.left=R,G.right=ne),Z?(G.bottom=L,G.top=ne):(G.top=P,G.bottom=ne);}var oe={};return M&&(M.includes("height")&&D?oe.height=D:M.includes("minHeight")&&D&&(oe.minHeight=D),M.includes("width")&&_?oe.width=_:M.includes("minWidth")&&_&&(oe.minWidth=_)),l||(oe.pointerEvents="none"),f__namespace.createElement(x,{open:y||H,getContainer:C&&function(){return C(i)},autoDestroy:$},f__namespace.createElement(K5,{prefixCls:o,open:l,zIndex:w,mask:m,motion:b}),f__namespace.createElement(vr,{onResize:A,disabled:!l},function(fe){return f__namespace.createElement(mo,Ie({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(o,"-hidden")},p,{onAppearPrepare:T,onEnterPrepare:T,visible:l,onVisibleChanged:function(se){var me;p==null||(me=p.onVisibleChanged)===null||me===void 0||me.call(p,se),s(se);}}),function(J,se){var me=J.className,re=J.style,ie=V(o,me,r);return f__namespace.createElement("div",{ref:Wn(fe,t,se),className:ie,style:U(U(U(U({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},G),oe),re),{},{boxSizing:"border-box",zIndex:w},a),onMouseEnter:S,onMouseLeave:E,onPointerEnter:I,onClick:d},g&&f__namespace.createElement(G5,{prefixCls:o,arrow:g,arrowPos:h,align:v}),f__namespace.createElement(U5,{cache:!l&&!u},F))})}))}),q5=f__namespace.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=Ro(n),a=f__namespace.useCallback(function(s){jg(t,r?r(s):s);},[r]),i=oa(a,n.ref);return o?f__namespace.cloneElement(n,{ref:i}):n}),Hp=f__namespace.createContext(null);function Wp(e){return e?Array.isArray(e)?e:[e]:[]}function Y5(e,t,n,r){return f__namespace.useMemo(function(){var o=Wp(n??t),a=Wp(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 Gg=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 Q5(){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 Z5(e,t,n,r){for(var o=n.points,a=Object.keys(e),i=0;i<a.length;i+=1){var s,l=a[i];if(Q5((s=e[l])===null||s===void 0?void 0:s.points,o,r))return "".concat(t,"-placement-").concat(l)}return ""}function Vp(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Ns(e){return e.ownerDocument.defaultView}function Uf(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=Ns(n).getComputedStyle(n),a=o.overflowX,i=o.overflowY,s=o.overflow;[a,i,s].some(function(l){return r.includes(l)})&&t.push(n),n=n.parentElement;}return t}function cs(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Ri(e){return cs(parseFloat(e),0)}function Gp(e,t){var n=U({},e);return (t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=Ns(r).getComputedStyle(r),a=o.overflow,i=o.overflowClipMargin,s=o.borderTopWidth,l=o.borderBottomWidth,c=o.borderLeftWidth,u=o.borderRightWidth,d=r.getBoundingClientRect(),m=r.offsetHeight,g=r.clientHeight,h=r.offsetWidth,v=r.clientWidth,p=Ri(s),b=Ri(l),y=Ri(c),C=Ri(u),$=cs(Math.round(d.width/h*1e3)/1e3),x=cs(Math.round(d.height/m*1e3)/1e3),w=(h-v-y-C)*$,S=(m-g-p-b)*x,E=p*x,I=b*x,O=y*$,R=C*$,P=0,k=0;if(a==="clip"){var L=Ri(i);P=L*$,k=L*x;}var A=d.x+O-P,T=d.y+E-k,M=A+d.width+2*P-O-R-w,_=T+d.height+2*k-E-I-S;n.left=Math.max(n.left,A),n.top=Math.max(n.top,T),n.right=Math.min(n.right,M),n.bottom=Math.min(n.bottom,_);}}),n}function Kp(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 Up(e,t){var n=t||[],r=Q(n,2),o=r[0],a=r[1];return [Kp(e.width,o),Kp(e.height,a)]}function Xp(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return [e[0],e[1]]}function ma(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 vo(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 J5(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]||{}}),l=Q(s,2),c=l[0],u=l[1],d=f__namespace.useRef(0),m=f__namespace.useMemo(function(){return t?Uf(t):[]},[t]),g=f__namespace.useRef({}),h=function(){g.current={};};e||h();var v=Tn(function(){if(t&&n&&e){let ur=function(Jr,No){var ua=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ie,da=F.x+Jr,Ei=F.y+No,Ii=da+ee,sl=Ei+G,ld=Math.max(da,ua.left),cd=Math.max(Ei,ua.top),ud=Math.min(Ii,ua.right),dd=Math.min(sl,ua.bottom);return Math.max(0,(ud-ld)*(dd-cd))},il=function(){yt=F.y+ve,it=yt+G,ke=F.x+Ne,Ee=ke+ee;};var y,C,$=t,x=$.ownerDocument,w=Ns($),S=w.getComputedStyle($),E=S.width,I=S.height,O=S.position,R=$.style.left,P=$.style.top,k=$.style.right,L=$.style.bottom,A=$.style.overflow,T=U(U({},o[r]),a),M=x.createElement("div");(y=$.parentElement)===null||y===void 0||y.appendChild(M),M.style.left="".concat($.offsetLeft,"px"),M.style.top="".concat($.offsetTop,"px"),M.style.position=O,M.style.height="".concat($.offsetHeight,"px"),M.style.width="".concat($.offsetWidth,"px"),$.style.left="0",$.style.top="0",$.style.right="auto",$.style.bottom="auto",$.style.overflow="hidden";var _;if(Array.isArray(n))_={x:n[0],y:n[1],width:0,height:0};else {var D=n.getBoundingClientRect();_={x:D.x,y:D.y,width:D.width,height:D.height};}var F=$.getBoundingClientRect(),H=x.documentElement,B=H.clientWidth,W=H.clientHeight,K=H.scrollWidth,X=H.scrollHeight,q=H.scrollTop,ne=H.scrollLeft,G=F.height,ee=F.width,Y=_.height,ue=_.width,le={left:0,top:0,right:B,bottom:W},Z={left:-ne,top:-q,right:K-ne,bottom:X-q},oe=T.htmlRegion,fe="visible",J="visibleFirst";oe!=="scroll"&&oe!==J&&(oe=fe);var se=oe===J,me=Gp(Z,m),re=Gp(le,m),ie=oe===fe?re:me,ge=se?re:ie;$.style.left="auto",$.style.top="auto",$.style.right="0",$.style.bottom="0";var be=$.getBoundingClientRect();$.style.left=R,$.style.top=P,$.style.right=k,$.style.bottom=L,$.style.overflow=A,(C=$.parentElement)===null||C===void 0||C.removeChild(M);var Te=cs(Math.round(ee/parseFloat(E)*1e3)/1e3),Ae=cs(Math.round(G/parseFloat(I)*1e3)/1e3);if(Te===0||Ae===0||oc(n)&&!Gg(n))return;var Ve=T.offset,Oe=T.targetOffset,je=Up(F,Ve),Qe=Q(je,2),Be=Qe[0],Pe=Qe[1],we=Up(_,Oe),Ge=Q(we,2),nt=Ge[0],ft=Ge[1];_.x-=nt,_.y-=ft;var et=T.points||[],Xe=Q(et,2),gt=Xe[0],pt=Xe[1],ut=Xp(pt),dt=Xp(gt),$t=ma(_,ut),Me=ma(F,dt),_e=U({},T),Ne=$t.x-Me.x+Be,ve=$t.y-Me.y+Pe,De=ur(Ne,ve),xe=ur(Ne,ve,re),ae=ma(_,["t","l"]),te=ma(F,["t","l"]),he=ma(_,["b","r"]),ye=ma(F,["b","r"]),$e=T.overflow||{},Ue=$e.adjustX,qe=$e.adjustY,Ct=$e.shiftX,ht=$e.shiftY,Rt=function(No){return typeof No=="boolean"?No:No>=0},yt,it,ke,Ee;il();var Ce=Rt(qe),Se=dt[0]===ut[0];if(Ce&&dt[0]==="t"&&(it>ge.bottom||g.current.bt)){var Fe=ve;Se?Fe-=G-Y:Fe=ae.y-ye.y-Pe;var st=ur(Ne,Fe),Ot=ur(Ne,Fe,re);st>De||st===De&&(!se||Ot>=xe)?(g.current.bt=!0,ve=Fe,Pe=-Pe,_e.points=[vo(dt,0),vo(ut,0)]):g.current.bt=!1;}if(Ce&&dt[0]==="b"&&(yt<ge.top||g.current.tb)){var It=ve;Se?It+=G-Y:It=he.y-te.y-Pe;var cn=ur(Ne,It),on=ur(Ne,It,re);cn>De||cn===De&&(!se||on>=xe)?(g.current.tb=!0,ve=It,Pe=-Pe,_e.points=[vo(dt,0),vo(ut,0)]):g.current.tb=!1;}var un=Rt(Ue),An=dt[1]===ut[1];if(un&&dt[1]==="l"&&(Ee>ge.right||g.current.rl)){var pn=Ne;An?pn-=ee-ue:pn=ae.x-ye.x-Be;var Ar=ur(pn,ve),Zr=ur(pn,ve,re);Ar>De||Ar===De&&(!se||Zr>=xe)?(g.current.rl=!0,Ne=pn,Be=-Be,_e.points=[vo(dt,1),vo(ut,1)]):g.current.rl=!1;}if(un&&dt[1]==="r"&&(ke<ge.left||g.current.lr)){var zn=Ne;An?zn+=ee-ue:zn=he.x-te.x-Be;var ho=ur(zn,ve),Sr=ur(zn,ve,re);ho>De||ho===De&&(!se||Sr>=xe)?(g.current.lr=!0,Ne=zn,Be=-Be,_e.points=[vo(dt,1),vo(ut,1)]):g.current.lr=!1;}il();var qn=Ct===!0?0:Ct;typeof qn=="number"&&(ke<re.left&&(Ne-=ke-re.left-Be,_.x+ue<re.left+qn&&(Ne+=_.x-re.left+ue-qn)),Ee>re.right&&(Ne-=Ee-re.right-Be,_.x>re.right-qn&&(Ne+=_.x-re.right+qn)));var lr=ht===!0?0:ht;typeof lr=="number"&&(yt<re.top&&(ve-=yt-re.top-Pe,_.y+Y<re.top+lr&&(ve+=_.y-re.top+Y-lr)),it>re.bottom&&(ve-=it-re.bottom-Pe,_.y>re.bottom-lr&&(ve+=_.y-re.bottom+lr)));var zr=F.x+Ne,Dr=zr+ee,Vn=F.y+ve,jr=Vn+G,lt=_.x,ze=lt+ue,tt=_.y,vt=tt+Y,St=Math.max(zr,lt),Tt=Math.min(Dr,ze),Qt=(St+Tt)/2,Dn=Qt-zr,Gn=Math.max(Vn,tt),$r=Math.min(jr,vt),cr=(Gn+$r)/2,ca=cr-Vn;i==null||i(t,_e);var al=be.right-F.x-(Ne+F.width),sd=be.bottom-F.y-(ve+F.height);u({ready:!0,offsetX:Ne/Te,offsetY:ve/Ae,offsetR:al/Te,offsetB:sd/Ae,arrowX:Dn/Te,arrowY:ca/Ae,scaleX:Te,scaleY:Ae,align:_e});}}),p=function(){d.current+=1;var C=d.current;Promise.resolve().then(function(){d.current===C&&v();});},b=function(){u(function(C){return U(U({},C),{},{ready:!1})});};return Wt(b,[r]),Wt(function(){e||b();},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,p]}function e6(e,t,n,r,o){Wt(function(){if(e&&t&&n){let d=function(){r(),o();};var a=t,i=n,s=Uf(a),l=Uf(i),c=Ns(i),u=new Set([c].concat(Re(s),Re(l)));return u.forEach(function(m){m.addEventListener("scroll",d,{passive:!0});}),c.addEventListener("resize",d,{passive:!0}),r(),function(){u.forEach(function(m){m.removeEventListener("scroll",d),c.removeEventListener("resize",d);});}}},[e,t,n]);}function t6(e,t,n,r,o,a,i,s){var l=f__namespace.useRef(e),c=f__namespace.useRef(!1);l.current!==e&&(c.current=!0,l.current=e),f__namespace.useEffect(function(){var u=Et(function(){c.current=!1;});return function(){Et.cancel(u);}},[e]),f__namespace.useEffect(function(){if(t&&r&&(!o||a)){var u=function(){var w=!1,S=function(O){var R=O.target;w=i(R);},E=function(O){var R=O.target;!c.current&&l.current&&!w&&!i(R)&&s(!1);};return [S,E]},d=u(),m=Q(d,2),g=m[0],h=m[1],v=u(),p=Q(v,2),b=p[0],y=p[1],C=Ns(r);C.addEventListener("mousedown",g,!0),C.addEventListener("click",h,!0),C.addEventListener("contextmenu",h,!0);var $=ic(n);return $&&($.addEventListener("mousedown",b,!0),$.addEventListener("click",y,!0),$.addEventListener("contextmenu",y,!0)),function(){C.removeEventListener("mousedown",g,!0),C.removeEventListener("click",h,!0),C.removeEventListener("contextmenu",h,!0),$&&($.removeEventListener("mousedown",b,!0),$.removeEventListener("click",y,!0),$.removeEventListener("contextmenu",y,!0));}}},[t,n,r,o,a]);}var n6=["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 r6(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:vC,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,l=s===void 0?"hover":s,c=n.showAction,u=n.hideAction,d=n.popupVisible,m=n.defaultPopupVisible,g=n.onPopupVisibleChange,h=n.afterPopupVisibleChange,v=n.mouseEnterDelay,p=n.mouseLeaveDelay,b=p===void 0?.1:p,y=n.focusDelay,C=n.blurDelay,$=n.mask,x=n.maskClosable,w=x===void 0?!0:x,S=n.getPopupContainer,E=n.forceRender,I=n.autoDestroy,O=n.destroyPopupOnHide,R=n.popup,P=n.popupClassName,k=n.popupStyle,L=n.popupPlacement,A=n.builtinPlacements,T=A===void 0?{}:A,M=n.popupAlign,_=n.zIndex,D=n.stretch,F=n.getPopupClassNameFromAlign,H=n.fresh,B=n.alignPoint,W=n.onPopupClick,K=n.onPopupAlign,X=n.arrow,q=n.popupMotion,ne=n.maskMotion,G=n.popupTransitionName,ee=n.popupAnimation,Y=n.maskTransitionName,ue=n.maskAnimation,le=n.className,Z=n.getTriggerDOMNode,oe=Ye(n,n6),fe=I||O||!1,J=f__namespace.useState(!1),se=Q(J,2),me=se[0],re=se[1];Wt(function(){re(bu());},[]);var ie=f__namespace.useRef({}),ge=f__namespace.useContext(Hp),be=f__namespace.useMemo(function(){return {registerSubPopup:function(mt,en){ie.current[mt]=en,ge==null||ge.registerSubPopup(mt,en);}}},[ge]),Te=V5(),Ae=f__namespace.useState(null),Ve=Q(Ae,2),Oe=Ve[0],je=Ve[1],Qe=Tn(function(Ke){oc(Ke)&&Oe!==Ke&&je(Ke),ge==null||ge.registerSubPopup(Te,Ke);}),Be=f__namespace.useState(null),Pe=Q(Be,2),we=Pe[0],Ge=Pe[1],nt=f__namespace.useRef(null),ft=Tn(function(Ke){oc(Ke)&&we!==Ke&&(Ge(Ke),nt.current=Ke);}),et=f__namespace.Children.only(i),Xe=(et==null?void 0:et.props)||{},gt={},pt=Tn(function(Ke){var mt,en,fn=we;return (fn==null?void 0:fn.contains(Ke))||((mt=ic(fn))===null||mt===void 0?void 0:mt.host)===Ke||Ke===fn||(Oe==null?void 0:Oe.contains(Ke))||((en=ic(Oe))===null||en===void 0?void 0:en.host)===Ke||Ke===Oe||Object.values(ie.current).some(function(tn){return (tn==null?void 0:tn.contains(Ke))||Ke===tn})}),ut=Vp(a,q,ee,G),dt=Vp(a,ne,ue,Y),$t=f__namespace.useState(m||!1),Me=Q($t,2),_e=Me[0],Ne=Me[1],ve=d??_e,De=Tn(function(Ke){d===void 0&&Ne(Ke);});Wt(function(){Ne(d||!1);},[d]);var xe=f__namespace.useRef(ve);xe.current=ve;var ae=f__namespace.useRef([]);ae.current=[];var te=Tn(function(Ke){var mt;De(Ke),((mt=ae.current[ae.current.length-1])!==null&&mt!==void 0?mt:ve)!==Ke&&(ae.current.push(Ke),g==null||g(Ke));}),he=f__namespace.useRef(),ye=function(){clearTimeout(he.current);},$e=function(mt){var en=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;ye(),en===0?te(mt):he.current=setTimeout(function(){te(mt);},en*1e3);};f__namespace.useEffect(function(){return ye},[]);var Ue=f__namespace.useState(!1),qe=Q(Ue,2),Ct=qe[0],ht=qe[1];Wt(function(Ke){(!Ke||ve)&&ht(!0);},[ve]);var Rt=f__namespace.useState(null),yt=Q(Rt,2),it=yt[0],ke=yt[1],Ee=f__namespace.useState([0,0]),Ce=Q(Ee,2),Se=Ce[0],Fe=Ce[1],st=function(mt){Fe([mt.clientX,mt.clientY]);},Ot=J5(ve,Oe,B?Se:we,L,T,M,K),It=Q(Ot,11),cn=It[0],on=It[1],un=It[2],An=It[3],pn=It[4],Ar=It[5],Zr=It[6],zn=It[7],ho=It[8],Sr=It[9],qn=It[10],lr=Y5(me,l,c,u),zr=Q(lr,2),Dr=zr[0],Vn=zr[1],jr=Dr.has("click"),lt=Vn.has("click")||Vn.has("contextMenu"),ze=Tn(function(){Ct||qn();}),tt=function(){xe.current&&B&&lt&&$e(!1);};e6(ve,we,Oe,ze,tt),Wt(function(){ze();},[Se,L]),Wt(function(){ve&&!(T!=null&&T[L])&&ze();},[JSON.stringify(M)]);var vt=f__namespace.useMemo(function(){var Ke=Z5(T,a,Sr,B);return V(Ke,F==null?void 0:F(Sr))},[Sr,F,T,a,B]);f__namespace.useImperativeHandle(r,function(){return {nativeElement:nt.current,forceAlign:ze}});var St=f__namespace.useState(0),Tt=Q(St,2),Qt=Tt[0],Dn=Tt[1],Gn=f__namespace.useState(0),$r=Q(Gn,2),cr=$r[0],ca=$r[1],al=function(){if(D&&we){var mt=we.getBoundingClientRect();Dn(mt.width),ca(mt.height);}},sd=function(){al(),ze();},ur=function(mt){ht(!1),qn(),h==null||h(mt);},il=function(){return new Promise(function(mt){al(),ke(function(){return mt});})};Wt(function(){it&&(qn(),it(),ke(null));},[it]);function Jr(Ke,mt,en,fn){gt[Ke]=function(tn){var ll;fn==null||fn(tn),$e(mt,en);for(var fd=arguments.length,mv=new Array(fd>1?fd-1:0),cl=1;cl<fd;cl++)mv[cl-1]=arguments[cl];(ll=Xe[Ke])===null||ll===void 0||ll.call.apply(ll,[Xe,tn].concat(mv));};}(jr||lt)&&(gt.onClick=function(Ke){var mt;xe.current&&lt?$e(!1):!xe.current&&jr&&(st(Ke),$e(!0));for(var en=arguments.length,fn=new Array(en>1?en-1:0),tn=1;tn<en;tn++)fn[tn-1]=arguments[tn];(mt=Xe.onClick)===null||mt===void 0||mt.call.apply(mt,[Xe,Ke].concat(fn));}),t6(ve,lt,we,Oe,$,w,pt,$e);var No=Dr.has("hover"),ua=Vn.has("hover"),da,Ei;No&&(Jr("onMouseEnter",!0,v,function(Ke){st(Ke);}),Jr("onPointerEnter",!0,v,function(Ke){st(Ke);}),da=function(){(ve||Ct)&&$e(!0,v);},B&&(gt.onMouseMove=function(Ke){var mt;(mt=Xe.onMouseMove)===null||mt===void 0||mt.call(Xe,Ke);})),ua&&(Jr("onMouseLeave",!1,b),Jr("onPointerLeave",!1,b),Ei=function(){$e(!1,b);}),Dr.has("focus")&&Jr("onFocus",!0,y),Vn.has("focus")&&Jr("onBlur",!1,C),Dr.has("contextMenu")&&(gt.onContextMenu=function(Ke){var mt;xe.current&&Vn.has("contextMenu")?$e(!1):(st(Ke),$e(!0)),Ke.preventDefault();for(var en=arguments.length,fn=new Array(en>1?en-1:0),tn=1;tn<en;tn++)fn[tn-1]=arguments[tn];(mt=Xe.onContextMenu)===null||mt===void 0||mt.call.apply(mt,[Xe,Ke].concat(fn));}),le&&(gt.className=V(Xe.className,le));var Ii=U(U({},Xe),gt),sl={},ld=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];ld.forEach(function(Ke){oe[Ke]&&(sl[Ke]=function(){for(var mt,en=arguments.length,fn=new Array(en),tn=0;tn<en;tn++)fn[tn]=arguments[tn];(mt=Ii[Ke])===null||mt===void 0||mt.call.apply(mt,[Ii].concat(fn)),oe[Ke].apply(oe,fn);});});var cd=f__namespace.cloneElement(et,U(U({},Ii),sl)),ud={x:Ar,y:Zr},dd=X?U({},X!==!0?X:{}):null;return f__namespace.createElement(f__namespace.Fragment,null,f__namespace.createElement(vr,{disabled:!ve,ref:ft,onResize:sd},f__namespace.createElement(q5,{getTriggerDOMNode:Z},cd)),f__namespace.createElement(Hp.Provider,{value:be},f__namespace.createElement(X5,{portal:e,ref:Qe,prefixCls:a,popup:R,className:V(P,vt),style:k,target:we,onMouseEnter:da,onMouseLeave:Ei,onPointerEnter:da,zIndex:_,open:ve,keepDom:Ct,fresh:H,onClick:W,mask:$,motion:ut,maskMotion:dt,onVisibleChanged:ur,onPrepare:il,forceRender:E,autoDestroy:fe,getPopupContainer:S,align:Sr,arrow:dd,arrowPos:ud,ready:cn,offsetX:on,offsetY:un,offsetR:An,offsetB:pn,onAlign:ze,stretch:D,targetWidth:Qt/zn,targetHeight:cr/ho})))});return t}const yu=r6(vC);var ga={shiftX:64,adjustY:1},ha={adjustX:1,shiftY:!0},dr=[0,0],o6={left:{points:["cr","cl"],overflow:ha,offset:[-4,0],targetOffset:dr},right:{points:["cl","cr"],overflow:ha,offset:[4,0],targetOffset:dr},top:{points:["bc","tc"],overflow:ga,offset:[0,-4],targetOffset:dr},bottom:{points:["tc","bc"],overflow:ga,offset:[0,4],targetOffset:dr},topLeft:{points:["bl","tl"],overflow:ga,offset:[0,-4],targetOffset:dr},leftTop:{points:["tr","tl"],overflow:ha,offset:[-4,0],targetOffset:dr},topRight:{points:["br","tr"],overflow:ga,offset:[0,-4],targetOffset:dr},rightTop:{points:["tl","tr"],overflow:ha,offset:[4,0],targetOffset:dr},bottomRight:{points:["tr","br"],overflow:ga,offset:[0,4],targetOffset:dr},rightBottom:{points:["bl","br"],overflow:ha,offset:[4,0],targetOffset:dr},bottomLeft:{points:["tl","bl"],overflow:ga,offset:[0,4],targetOffset:dr},leftBottom:{points:["br","bl"],overflow:ha,offset:[-4,0],targetOffset:dr}},a6=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],i6=function(t,n){var r=t.overlayClassName,o=t.trigger,a=o===void 0?["hover"]:o,i=t.mouseEnterDelay,s=i===void 0?0:i,l=t.mouseLeaveDelay,c=l===void 0?.1:l,u=t.overlayStyle,d=t.prefixCls,m=d===void 0?"rc-tooltip":d,g=t.children,h=t.onVisibleChange,v=t.afterVisibleChange,p=t.transitionName,b=t.animation,y=t.motion,C=t.placement,$=C===void 0?"right":C,x=t.align,w=x===void 0?{}:x,S=t.destroyTooltipOnHide,E=S===void 0?!1:S,I=t.defaultVisible,O=t.getTooltipContainer,R=t.overlayInnerStyle;t.arrowContent;var P=t.overlay,k=t.id,L=t.showArrow,A=L===void 0?!0:L,T=Ye(t,a6),M=f.useRef(null);f.useImperativeHandle(n,function(){return M.current});var _=U({},T);"visible"in t&&(_.popupVisible=t.visible);var D=function(){return f__namespace.createElement(Vg,{key:"content",prefixCls:m,id:k,overlayInnerStyle:R},P)};return f__namespace.createElement(yu,Ie({popupClassName:r,prefixCls:m,popup:D,action:a,builtinPlacements:o6,popupPlacement:$,ref:M,popupAlign:w,getPopupContainer:O,onPopupVisibleChange:h,afterPopupVisibleChange:v,popupTransitionName:p,popupAnimation:b,popupMotion:y,defaultPopupVisible:I,autoDestroy:E,mouseLeaveDelay:c,popupStyle:u,mouseEnterDelay:s,arrow:A},_),g)};const s6=f.forwardRef(i6),l6=f.createContext(void 0),Kg=l6,yC={Modal:0,Drawer:0,Popover:70,Popconfirm:70,Tooltip:70,Tour:70},c6={SelectLike:50,Dropdown:50,ColorPicker:30,DatePicker:50,Menu:50};function u6(e){return e in yC}function ks(e,t){const[,n]=Un(),r=f.useContext(Kg),o=u6(e);let a=r??0;return o?a+=n.zIndexPopupBase+yC[e]:a+=c6[e],[r===void 0?t:a,a]}const _d=()=>({height:0,opacity:0}),qp=e=>{const{scrollHeight:t}=e;return {height:t,opacity:1}},d6=e=>({height:e?e.offsetHeight:0}),Td=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",CC=function(){return {motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:_d,onEnterStart:_d,onAppearActive:qp,onEnterActive:qp,onLeaveStart:d6,onLeaveActive:_d,onAppearEnd:Td,onEnterEnd:Td,onLeaveEnd:Td,motionDeadline:500}},Cu=(e,t,n)=>n!==void 0?n:`${e}-${t}`,SC=8;function Ug(e){const t=SC,{contentRadius:n,limitVerticalRadius:r}=e,o=n>12?n+2:12;return {dropdownArrowOffset:o,dropdownArrowOffsetVertical:r?t:o}}function Cl(e,t){return e?t:{}}function Xg(e,t){const{componentCls:n,sizePopupArrow:r,borderRadiusXS:o,borderRadiusOuter:a,boxShadowPopoverArrow:i}=e,{colorBg:s,contentRadius:l=e.borderRadiusLG,limitVerticalRadius:c,arrowDistance:u=0,arrowPlacement:d={left:!0,right:!0,top:!0,bottom:!0}}=t,{dropdownArrowOffsetVertical:m,dropdownArrowOffset:g}=Ug({contentRadius:l,limitVerticalRadius:c});return {[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},WA(r,o,a,s,i)),{"&:before":{background:s}})]},Cl(!!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}}})),Cl(!!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}}})),Cl(!!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}})),Cl(!!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 f6(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 Yp={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"]}},m6={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"]}},g6=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function $C(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:a,visibleFirst:i}=e,s=t/2,l={};return Object.keys(Yp).forEach(c=>{const u=r&&m6[c]||Yp[c],d=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(l[c]=d,g6.has(c)&&(d.autoArrow=!1),c){case"top":case"topLeft":case"topRight":d.offset[1]=-s-o;break;case"bottom":case"bottomLeft":case"bottomRight":d.offset[1]=s+o;break;case"left":case"leftTop":case"leftBottom":d.offset[0]=-s-o;break;case"right":case"rightTop":case"rightBottom":d.offset[0]=s+o;break}const m=Ug({contentRadius:a,limitVerticalRadius:!0});if(r)switch(c){case"topLeft":case"bottomLeft":d.offset[0]=-m.dropdownArrowOffset-s;break;case"topRight":case"bottomRight":d.offset[0]=m.dropdownArrowOffset+s;break;case"leftTop":case"rightTop":d.offset[1]=-m.dropdownArrowOffset-s;break;case"leftBottom":case"rightBottom":d.offset[1]=m.dropdownArrowOffset+s;break}d.overflow=f6(c,m,t,n),i&&(d.htmlRegion="visibleFirst");}),l}const{isValidElement:co}=f__namespace;function wC(e){return e&&co(e)&&e.type===f__namespace.Fragment}function h6(e,t,n){return co(e)?f__namespace.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t}function Bn(e,t){return h6(e,e,t)}const v6=e=>{const t=f.useContext(iu);return f.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},Xn=v6,p6=e=>{const{componentCls:t}=e;return {[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},b6=p6,y6=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"}}}},C6=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}}}},xC=Bt("Space",e=>{const t=bt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return [y6(t),C6(t),b6(t)]},()=>({}),{resetStyle:!1});var EC=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 Su=f__namespace.createContext(null),yi=(e,t)=>{const n=f__namespace.useContext(Su),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}},Xa=e=>{let{children:t}=e;return f__namespace.createElement(Su.Provider,{value:null},t)},S6=e=>{var{children:t}=e,n=EC(e,["children"]);return f__namespace.createElement(Su.Provider,{value:n},t)},$6=e=>{const{getPrefixCls:t,direction:n}=f__namespace.useContext(Je),{size:r,direction:o,block:a,prefixCls:i,className:s,rootClassName:l,children:c}=e,u=EC(e,["size","direction","block","prefixCls","className","rootClassName","children"]),d=Xn(C=>r??C),m=t("space-compact",i),[g,h]=xC(m),v=V(m,h,{[`${m}-rtl`]:n==="rtl",[`${m}-block`]:a,[`${m}-vertical`]:o==="vertical"},s,l),p=f__namespace.useContext(Su),b=or(c),y=f__namespace.useMemo(()=>b.map((C,$)=>{const x=C&&C.key||`${m}-item-${$}`;return f__namespace.createElement(S6,{key:x,compactSize:d,compactDirection:o,isFirstItem:$===0&&(!p||(p==null?void 0:p.isFirstItem)),isLastItem:$===b.length-1&&(!p||(p==null?void 0:p.isLastItem))},C)}),[r,b,p]);return b.length===0?null:g(f__namespace.createElement("div",Object.assign({className:v},u),y))},w6=$6,x6=e=>({animationDuration:e,animationFillMode:"both"}),E6=e=>({animationDuration:e,animationFillMode:"both"}),qg=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({},x6(r)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},E6(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"}}},I6=new Mt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),O6=new Mt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),P6=new Mt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),M6=new Mt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),R6=new Mt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),_6=new Mt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),T6=new Mt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),N6=new Mt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),k6={"move-up":{inKeyframes:T6,outKeyframes:N6},"move-down":{inKeyframes:I6,outKeyframes:O6},"move-left":{inKeyframes:P6,outKeyframes:M6},"move-right":{inKeyframes:R6,outKeyframes:_6}},sc=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=k6[t];return [qg(r,o,a,e.motionDurationMid),{[`
        ${r}-enter,
        ${r}-appear
      `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Yg=new Mt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Qg=new Mt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Zg=new Mt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Jg=new Mt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),L6=new Mt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),A6=new Mt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),z6=new Mt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),D6=new Mt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),j6={"slide-up":{inKeyframes:Yg,outKeyframes:Qg},"slide-down":{inKeyframes:Zg,outKeyframes:Jg},"slide-left":{inKeyframes:L6,outKeyframes:A6},"slide-right":{inKeyframes:z6,outKeyframes:D6}},Po=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=j6[t];return [qg(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}}]},F6=new Mt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),B6=new Mt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Qp=new Mt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Zp=new Mt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),H6=new Mt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),W6=new Mt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),V6=new Mt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),G6=new Mt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),K6=new Mt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),U6=new Mt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),X6=new Mt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),q6=new Mt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),Y6={zoom:{inKeyframes:F6,outKeyframes:B6},"zoom-big":{inKeyframes:Qp,outKeyframes:Zp},"zoom-big-fast":{inKeyframes:Qp,outKeyframes:Zp},"zoom-left":{inKeyframes:V6,outKeyframes:G6},"zoom-right":{inKeyframes:K6,outKeyframes:U6},"zoom-up":{inKeyframes:H6,outKeyframes:W6},"zoom-down":{inKeyframes:X6,outKeyframes:q6}},$u=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=Y6[t];return [qg(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}}]},Q6=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`}}}),IC=Q6,Z6=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:a,zIndexPopup:i,controlHeight:s,boxShadowSecondary:l,paddingSM:c,paddingXS:u,tooltipRadiusOuter:d}=e;return [{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},zt(e)),{position:"absolute",zIndex:i,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:s,minHeight:s,padding:`${c/2}px ${u}px`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:a,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(a,SC)}},[`${t}-content`]:{position:"relative"}}),pu(e,(m,g)=>{let{darkColor:h}=g;return {[`&${t}-${m}`]:{[`${t}-inner`]:{backgroundColor:h},[`${t}-arrow`]:{"--antd-arrow-background-color":h}}}})),{"&-rtl":{direction:"rtl"}})},Xg(bt(e,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:a,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},OC=(e,t)=>Bt("Tooltip",r=>{if(t===!1)return [];const{borderRadius:o,colorTextLightSolid:a,colorBgDefault:i,borderRadiusOuter:s}=r,l=bt(r,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:o,tooltipBg:i,tooltipRadiusOuter:s>4?4:s});return [Z6(l),$u(r,"zoom-big-fast")]},r=>{let{zIndexPopupBase:o,colorBgSpotlight:a}=r;return {zIndexPopup:o+70,colorBgDefault:a}},{resetStyle:!1})(e),J6=ls.map(e=>`${e}-inverse`),ez=["success","processing","error","default","warning"];function wu(e){return (arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Re(J6),Re(ls)).includes(e):ls.includes(e)}function tz(e){return ez.includes(e)}function PC(e,t){const n=wu(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 nz=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:a,overlayInnerStyle:i}=e,{getPrefixCls:s}=f__namespace.useContext(Je),l=s("tooltip",t),[c,u]=OC(l,!0),d=PC(l,a),m=d.arrowStyle,g=Object.assign(Object.assign({},i),d.overlayStyle),h=V(u,l,`${l}-pure`,`${l}-placement-${r}`,n,d.className);return c(f__namespace.createElement("div",{className:h,style:m},f__namespace.createElement("div",{className:`${l}-arrow`}),f__namespace.createElement(Vg,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:g}),o)))},rz=nz;var oz=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 MC=f__namespace.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:a,getTooltipContainer:i,overlayClassName:s,color:l,overlayInnerStyle:c,children:u,afterOpenChange:d,afterVisibleChange:m,destroyTooltipOnHide:g,arrow:h=!0,title:v,overlay:p,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:C=!0}=e,$=!!h,[,x]=Un(),{getPopupContainer:w,getPrefixCls:S,direction:E}=f__namespace.useContext(Je),I=E1(),O=f__namespace.useRef(null),R=()=>{var be;(be=O.current)===null||be===void 0||be.forceAlign();};f__namespace.useImperativeHandle(t,()=>({forceAlign:R,forcePopupAlign:()=>{I.deprecated(!1,"forcePopupAlign","forceAlign"),R();}}));const[P,k]=Vt(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),L=!v&&!p&&v!==0,A=be=>{var Te,Ae;k(L?!1:be),L||((Te=e.onOpenChange)===null||Te===void 0||Te.call(e,be),(Ae=e.onVisibleChange)===null||Ae===void 0||Ae.call(e,be));},T=f__namespace.useMemo(()=>{var be,Te;let Ae=y;return typeof h=="object"&&(Ae=(Te=(be=h.pointAtCenter)!==null&&be!==void 0?be:h.arrowPointAtCenter)!==null&&Te!==void 0?Te:y),b||$C({arrowPointAtCenter:Ae,autoAdjustOverflow:C,arrowWidth:$?x.sizePopupArrow:0,borderRadius:x.borderRadius,offset:x.marginXXS,visibleFirst:!0})},[y,h,b,x]),M=f__namespace.useMemo(()=>v===0?v:p||v||"",[p,v]),_=f__namespace.createElement(Xa,null,typeof M=="function"?M():M),{getPopupContainer:D,placement:F="top",mouseEnterDelay:H=.1,mouseLeaveDelay:B=.1,overlayStyle:W,rootClassName:K}=e,X=oz(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),q=S("tooltip",o),ne=S(),G=e["data-popover-inject"];let ee=P;!("open"in e)&&!("visible"in e)&&L&&(ee=!1);const Y=co(u)&&!wC(u)?u:f__namespace.createElement("span",null,u),ue=Y.props,le=!ue.className||typeof ue.className=="string"?V(ue.className,a||`${q}-open`):ue.className,[Z,oe]=OC(q,!G),fe=PC(q,l),J=fe.arrowStyle,se=Object.assign(Object.assign({},c),fe.overlayStyle),me=V(s,{[`${q}-rtl`]:E==="rtl"},fe.className,K,oe),[re,ie]=ks("Tooltip",X.zIndex),ge=f__namespace.createElement(s6,Object.assign({},X,{zIndex:G?X.zIndex:re,showArrow:$,placement:F,mouseEnterDelay:H,mouseLeaveDelay:B,prefixCls:q,overlayClassName:me,overlayStyle:Object.assign(Object.assign({},J),W),getTooltipContainer:D||i||w,ref:O,builtinPlacements:T,overlay:_,visible:ee,onVisibleChange:A,afterVisibleChange:d??m,overlayInnerStyle:se,arrowContent:f__namespace.createElement("span",{className:`${q}-arrow-content`}),motion:{motionName:Cu(ne,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!g}),ee?Bn(Y,{className:le}):Y);return Z(f__namespace.createElement(Kg.Provider,{value:ie},ge))});MC._InternalPanelDoNotUseOrYouWillBeFired=rz;const Ls=MC,az=f__namespace.forwardRef((e,t)=>{const{open:n}=e,r=f.useRef(null),o=f.useRef(null);function a(){Et.cancel(o.current),o.current=null;}function i(){o.current=Et(()=>{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(Ls,Object.assign({ref:Wn(r,t)},e))}),iz=az,sz=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:o,marginFull:a,marginPart:i,colorFillContentHover:s}=e;return {[t]:Object.assign(Object.assign({},zt(e)),{position:"relative",height:r,margin:`${i}px ${a}px`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${a}px ${i}px`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${e.motionDurationMid}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:s},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:e.handleSize,height:e.handleSize,outline:"none","&::before":{content:'""',position:"absolute",insetInlineStart:-e.handleLineWidth,insetBlockStart:-e.handleLineWidth,width:e.handleSize+e.handleLineWidth*2,height:e.handleSize+e.handleLineWidth*2,backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:e.handleSize,height:e.handleSize,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.handleColor}`,borderRadius:"50%",cursor:"pointer",transition:`
            inset-inline-start ${e.motionDurationMid},
            inset-block-start ${e.motionDurationMid},
            width ${e.motionDurationMid},
            height ${e.motionDurationMid},
            box-shadow ${e.motionDurationMid}
          `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),insetBlockStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),width:e.handleSizeHover+e.handleLineWidthHover*2,height:e.handleSizeHover+e.handleLineWidthHover*2},"&::after":{boxShadow:`0 0 0 ${e.handleLineWidthHover}px ${e.handleActiveColor}`,width:e.handleSizeHover,height:e.handleSizeHover,insetInlineStart:(e.handleSize-e.handleSizeHover)/2,insetBlockStart:(e.handleSize-e.handleSizeHover)/2}}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:o,height:o,backgroundColor:e.colorBgElevated,border:`${e.handleLineWidth}px solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[`
          ${t}-dot
        `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:e.handleSize,height:e.handleSize,boxShadow:`0 0 0 ${e.handleLineWidth}px ${new Yt(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"}})}},RC=(e,t)=>{const{componentCls:n,railSize:r,handleSize:o,dotSize:a}=e,i=t?"paddingBlock":"paddingInline",s=t?"width":"height",l=t?"height":"width",c=t?"insetBlockStart":"insetInlineStart",u=t?"top":"insetInlineStart",d=(r*3-o)/2,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,[l]:r*3,[`${n}-rail`]:{[s]:"100%",[l]:r},[`${n}-track,${n}-tracks`]:{[l]:r},[`${n}-track-draggable`]:Object.assign({},g),[`${n}-handle`]:{[c]:d},[`${n}-mark`]:{insetInlineStart:0,top:0,[u]:r*3+(t?0:e.marginFull),[s]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[u]:r,[s]:"100%",[l]:r},[`${n}-dot`]:{position:"absolute",[c]:(r-a)/2}}},lz=e=>{const{componentCls:t,marginPartWithMark:n}=e;return {[`${t}-horizontal`]:Object.assign(Object.assign({},RC(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},cz=e=>{const{componentCls:t}=e;return {[`${t}-vertical`]:Object.assign(Object.assign({},RC(e,!1)),{height:"100%"})}},uz=Bt("Slider",e=>{const t=bt(e,{marginPart:(e.controlHeight-e.controlSize)/2,marginFull:e.controlSize/2,marginPartWithMark:e.controlHeightLG-e.controlSize});return [sz(t),lz(t),cz(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 dz=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 fz(e,t){return e||e===null?e:t||t===null?t:n=>typeof n=="number"?n.toString():""}const mz=f.forwardRef((e,t)=>{const{prefixCls:n,range:r,className:o,rootClassName:a,style:i,disabled:s,tooltipPrefixCls:l,tipFormatter:c,tooltipVisible:u,getTooltipPopupContainer:d,tooltipPlacement:m}=e,g=dz(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement"]),{direction:h,slider:v,getPrefixCls:p,getPopupContainer:b}=f.useContext(Je),y=f.useContext(Yr),C=s??y,[$,x]=f.useState({}),w=(T,M)=>{x(_=>Object.assign(Object.assign({},_),{[T]:M}));},S=(T,M)=>T||(M?h==="rtl"?"left":"right":"top"),E=p("slider",n),[I,O]=uz(E),R=V(o,v==null?void 0:v.className,a,{[`${E}-rtl`]:h==="rtl"},O);h==="rtl"&&!g.vertical&&(g.reverse=!g.reverse);const[P,k]=f.useMemo(()=>r?typeof r=="object"?[!0,r.draggableTrack]:[!0,!1]:[!1],[r]),L=(T,M)=>{var _;const{index:D,dragging:F}=M,{tooltip:H={},vertical:B}=e,W=Object.assign({},H),{open:K,placement:X,getPopupContainer:q,prefixCls:ne,formatter:G}=W,ee=fz(G,c),Y=ee?$[D]||F:!1,ue=(_=K??u)!==null&&_!==void 0?_:K===void 0&&Y,le=Object.assign(Object.assign({},T.props),{onMouseEnter:()=>w(D,!0),onMouseLeave:()=>w(D,!1),onFocus:Z=>{var oe;w(D,!0),(oe=g.onFocus)===null||oe===void 0||oe.call(g,Z);},onBlur:Z=>{var oe;w(D,!1),(oe=g.onBlur)===null||oe===void 0||oe.call(g,Z);}});return f.createElement(iz,Object.assign({},W,{prefixCls:p("tooltip",ne??l),title:ee?ee(M.value):"",open:ue,placement:S(X??m,B),key:D,overlayClassName:`${E}-tooltip`,getPopupContainer:q||d||b}),f.cloneElement(T,le))},A=Object.assign(Object.assign({},v==null?void 0:v.style),i);return I(f.createElement(tL,Object.assign({},g,{step:g.step,range:P,draggableTrack:k,className:R,style:A,disabled:C,ref:t,prefixCls:E,handleRender:L})))}),gz=mz;var hz=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],_C=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,l=e.disabled,c=e.defaultChecked,u=c===void 0?!1:c,d=e.type,m=d===void 0?"checkbox":d,g=e.title,h=e.onChange,v=Ye(e,hz),p=f.useRef(null),b=Vt(u,{value:s}),y=Q(b,2),C=y[0],$=y[1];f.useImperativeHandle(t,function(){return {focus:function(){var E;(E=p.current)===null||E===void 0||E.focus();},blur:function(){var E;(E=p.current)===null||E===void 0||E.blur();},input:p.current}});var x=V(o,a,(n={},z(n,"".concat(o,"-checked"),C),z(n,"".concat(o,"-disabled"),l),n)),w=function(E){l||("checked"in e||$(E.target.checked),h==null||h({target:U(U({},e),{},{type:m,checked:E.target.checked}),stopPropagation:function(){E.stopPropagation();},preventDefault:function(){E.preventDefault();},nativeEvent:E.nativeEvent}));};return f__namespace.createElement("span",{className:x,title:g,style:i},f__namespace.createElement("input",Ie({},v,{className:"".concat(o,"-input"),ref:p,onChange:w,disabled:l,checked:!!C,type:m})),f__namespace.createElement("span",{className:"".concat(o,"-inner")}))});const vz=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(",")}}}}},pz=Bt("Wave",e=>[vz(e)]);function Hn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Hn=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(T,M,_){T[M]=_.value;},a=typeof Symbol=="function"?Symbol:{},i=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function c(T,M,_){return Object.defineProperty(T,M,{value:_,enumerable:!0,configurable:!0,writable:!0}),T[M]}try{c({},"");}catch{c=function(_,D,F){return _[D]=F};}function u(T,M,_,D){var F=M&&M.prototype instanceof b?M:b,H=Object.create(F.prototype),B=new L(D||[]);return o(H,"_invoke",{value:O(T,_,B)}),H}function d(T,M,_){try{return {type:"normal",arg:T.call(M,_)}}catch(D){return {type:"throw",arg:D}}}t.wrap=u;var m="suspendedStart",g="suspendedYield",h="executing",v="completed",p={};function b(){}function y(){}function C(){}var $={};c($,i,function(){return this});var x=Object.getPrototypeOf,w=x&&x(x(A([])));w&&w!==n&&r.call(w,i)&&($=w);var S=C.prototype=b.prototype=Object.create($);function E(T){["next","throw","return"].forEach(function(M){c(T,M,function(_){return this._invoke(M,_)});});}function I(T,M){function _(F,H,B,W){var K=d(T[F],T,H);if(K.type!=="throw"){var X=K.arg,q=X.value;return q&&at(q)=="object"&&r.call(q,"__await")?M.resolve(q.__await).then(function(ne){_("next",ne,B,W);},function(ne){_("throw",ne,B,W);}):M.resolve(q).then(function(ne){X.value=ne,B(X);},function(ne){return _("throw",ne,B,W)})}W(K.arg);}var D;o(this,"_invoke",{value:function(H,B){function W(){return new M(function(K,X){_(H,B,K,X);})}return D=D?D.then(W,W):W()}});}function O(T,M,_){var D=m;return function(F,H){if(D===h)throw new Error("Generator is already running");if(D===v){if(F==="throw")throw H;return {value:e,done:!0}}for(_.method=F,_.arg=H;;){var B=_.delegate;if(B){var W=R(B,_);if(W){if(W===p)continue;return W}}if(_.method==="next")_.sent=_._sent=_.arg;else if(_.method==="throw"){if(D===m)throw D=v,_.arg;_.dispatchException(_.arg);}else _.method==="return"&&_.abrupt("return",_.arg);D=h;var K=d(T,M,_);if(K.type==="normal"){if(D=_.done?v:g,K.arg===p)continue;return {value:K.arg,done:_.done}}K.type==="throw"&&(D=v,_.method="throw",_.arg=K.arg);}}}function R(T,M){var _=M.method,D=T.iterator[_];if(D===e)return M.delegate=null,_==="throw"&&T.iterator.return&&(M.method="return",M.arg=e,R(T,M),M.method==="throw")||_!=="return"&&(M.method="throw",M.arg=new TypeError("The iterator does not provide a '"+_+"' method")),p;var F=d(D,T.iterator,M.arg);if(F.type==="throw")return M.method="throw",M.arg=F.arg,M.delegate=null,p;var H=F.arg;return H?H.done?(M[T.resultName]=H.value,M.next=T.nextLoc,M.method!=="return"&&(M.method="next",M.arg=e),M.delegate=null,p):H:(M.method="throw",M.arg=new TypeError("iterator result is not an object"),M.delegate=null,p)}function P(T){var M={tryLoc:T[0]};1 in T&&(M.catchLoc=T[1]),2 in T&&(M.finallyLoc=T[2],M.afterLoc=T[3]),this.tryEntries.push(M);}function k(T){var M=T.completion||{};M.type="normal",delete M.arg,T.completion=M;}function L(T){this.tryEntries=[{tryLoc:"root"}],T.forEach(P,this),this.reset(!0);}function A(T){if(T||T===""){var M=T[i];if(M)return M.call(T);if(typeof T.next=="function")return T;if(!isNaN(T.length)){var _=-1,D=function F(){for(;++_<T.length;)if(r.call(T,_))return F.value=T[_],F.done=!1,F;return F.value=e,F.done=!0,F};return D.next=D}}throw new TypeError(at(T)+" is not iterable")}return y.prototype=C,o(S,"constructor",{value:C,configurable:!0}),o(C,"constructor",{value:y,configurable:!0}),y.displayName=c(C,l,"GeneratorFunction"),t.isGeneratorFunction=function(T){var M=typeof T=="function"&&T.constructor;return !!M&&(M===y||(M.displayName||M.name)==="GeneratorFunction")},t.mark=function(T){return Object.setPrototypeOf?Object.setPrototypeOf(T,C):(T.__proto__=C,c(T,l,"GeneratorFunction")),T.prototype=Object.create(S),T},t.awrap=function(T){return {__await:T}},E(I.prototype),c(I.prototype,s,function(){return this}),t.AsyncIterator=I,t.async=function(T,M,_,D,F){F===void 0&&(F=Promise);var H=new I(u(T,M,_,D),F);return t.isGeneratorFunction(M)?H:H.next().then(function(B){return B.done?B.value:H.next()})},E(S),c(S,l,"Generator"),c(S,i,function(){return this}),c(S,"toString",function(){return "[object Generator]"}),t.keys=function(T){var M=Object(T),_=[];for(var D in M)_.push(D);return _.reverse(),function F(){for(;_.length;){var H=_.pop();if(H in M)return F.value=H,F.done=!1,F}return F.done=!0,F}},t.values=A,L.prototype={constructor:L,reset:function(M){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!M)for(var _ in this)_.charAt(0)==="t"&&r.call(this,_)&&!isNaN(+_.slice(1))&&(this[_]=e);},stop:function(){this.done=!0;var M=this.tryEntries[0].completion;if(M.type==="throw")throw M.arg;return this.rval},dispatchException:function(M){if(this.done)throw M;var _=this;function D(X,q){return B.type="throw",B.arg=M,_.next=X,q&&(_.method="next",_.arg=e),!!q}for(var F=this.tryEntries.length-1;F>=0;--F){var H=this.tryEntries[F],B=H.completion;if(H.tryLoc==="root")return D("end");if(H.tryLoc<=this.prev){var W=r.call(H,"catchLoc"),K=r.call(H,"finallyLoc");if(W&&K){if(this.prev<H.catchLoc)return D(H.catchLoc,!0);if(this.prev<H.finallyLoc)return D(H.finallyLoc)}else if(W){if(this.prev<H.catchLoc)return D(H.catchLoc,!0)}else {if(!K)throw new Error("try statement without catch or finally");if(this.prev<H.finallyLoc)return D(H.finallyLoc)}}}},abrupt:function(M,_){for(var D=this.tryEntries.length-1;D>=0;--D){var F=this.tryEntries[D];if(F.tryLoc<=this.prev&&r.call(F,"finallyLoc")&&this.prev<F.finallyLoc){var H=F;break}}H&&(M==="break"||M==="continue")&&H.tryLoc<=_&&_<=H.finallyLoc&&(H=null);var B=H?H.completion:{};return B.type=M,B.arg=_,H?(this.method="next",this.next=H.finallyLoc,p):this.complete(B)},complete:function(M,_){if(M.type==="throw")throw M.arg;return M.type==="break"||M.type==="continue"?this.next=M.arg:M.type==="return"?(this.rval=this.arg=M.arg,this.method="return",this.next="end"):M.type==="normal"&&_&&(this.next=_),p},finish:function(M){for(var _=this.tryEntries.length-1;_>=0;--_){var D=this.tryEntries[_];if(D.finallyLoc===M)return this.complete(D.completion,D.afterLoc),k(D),p}},catch:function(M){for(var _=this.tryEntries.length-1;_>=0;--_){var D=this.tryEntries[_];if(D.tryLoc===M){var F=D.completion;if(F.type==="throw"){var H=F.arg;k(D);}return H}}throw new Error("illegal catch attempt")},delegateYield:function(M,_,D){return this.delegate={iterator:A(M),resultName:_,nextLoc:D},this.method==="next"&&(this.arg=e),p}},t}function Jp(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value;}catch(c){n(c);return}s.done?t(l):Promise.resolve(l).then(r,o);}function ia(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(l){Jp(a,r,o,i,s,"next",l);}function s(l){Jp(a,r,o,i,s,"throw",l);}i(void 0);})}}var As=U({},dy__namespace),bz=As.version,yz=As.render,Cz=As.unmountComponentAtNode,xu;try{var Sz=Number((bz||"").split(".")[0]);Sz>=18&&(xu=As.createRoot);}catch{}function eb(e){var t=As.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&at(t)==="object"&&(t.usingClientEntryPoint=e);}var lc="__rc_react_root__";function $z(e,t){eb(!0);var n=t[lc]||xu(t);eb(!1),n.render(e),t[lc]=n;}function wz(e,t){yz(e,t);}function xz(e,t){if(xu){$z(e,t);return}wz(e,t);}function Ez(e){return Xf.apply(this,arguments)}function Xf(){return Xf=ia(Hn().mark(function e(t){return Hn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[lc])===null||o===void 0||o.unmount(),delete t[lc];}));case 1:case"end":return r.stop()}},e)})),Xf.apply(this,arguments)}function Iz(e){Cz(e);}function Oz(e){return qf.apply(this,arguments)}function qf(){return qf=ia(Hn().mark(function e(t){return Hn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(xu===void 0){r.next=2;break}return r.abrupt("return",Ez(t));case 2:Iz(t);case 3:case"end":return r.stop()}},e)})),qf.apply(this,arguments)}function Pz(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return t&&t[1]&&t[2]&&t[3]?!(t[1]===t[2]&&t[2]===t[3]):!0}function Nd(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&Pz(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function Mz(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return Nd(t)?t:Nd(n)?n:Nd(r)?r:null}const Eu="ant-wave-target";function kd(e){return Number.isNaN(e)?0:e}const Rz=e=>{const{className:t,target:n,component:r}=e,o=f__namespace.useRef(null),[a,i]=f__namespace.useState(null),[s,l]=f__namespace.useState([]),[c,u]=f__namespace.useState(0),[d,m]=f__namespace.useState(0),[g,h]=f__namespace.useState(0),[v,p]=f__namespace.useState(0),[b,y]=f__namespace.useState(!1),C={left:c,top:d,width:g,height:v,borderRadius:s.map(w=>`${w}px`).join(" ")};a&&(C["--wave-color"]=a);function $(){const w=getComputedStyle(n);i(Mz(n));const S=w.position==="static",{borderLeftWidth:E,borderTopWidth:I}=w;u(S?n.offsetLeft:kd(-parseFloat(E))),m(S?n.offsetTop:kd(-parseFloat(I))),h(n.offsetWidth),p(n.offsetHeight);const{borderTopLeftRadius:O,borderTopRightRadius:R,borderBottomLeftRadius:P,borderBottomRightRadius:k}=w;l([O,R,k,P].map(L=>kd(parseFloat(L))));}if(f__namespace.useEffect(()=>{if(n){const w=Et(()=>{$(),y(!0);});let S;return typeof ResizeObserver<"u"&&(S=new ResizeObserver($),S.observe(n)),()=>{Et.cancel(w),S==null||S.disconnect();}}},[]),!b)return null;const x=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(Eu));return f__namespace.createElement(mo,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(w,S)=>{var E;if(S.deadline||S.propertyName==="opacity"){const I=(E=o.current)===null||E===void 0?void 0:E.parentElement;Oz(I).then(()=>{I==null||I.remove();});}return !1}},w=>{let{className:S}=w;return f__namespace.createElement("div",{ref:o,className:V(t,{"wave-quick":x},S),style:C})})},_z=(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),xz(f__namespace.createElement(Rz,Object.assign({},t,{target:e})),o);},Tz=_z;function Nz(e,t,n){const{wave:r}=f__namespace.useContext(Je),[,o,a]=Un(),i=Tn(c=>{const u=e.current;if(r!=null&&r.disabled||!u)return;const d=u.querySelector(`.${Eu}`)||u,{showEffect:m}=r||{};(m||Tz)(d,{className:t,token:o,component:n,event:c,hashId:a});}),s=f__namespace.useRef();return c=>{Et.cancel(s.current),s.current=Et(()=>{i(c);});}}const kz=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=f.useContext(Je),a=f.useRef(null),i=o("wave"),[,s]=pz(i),l=Nz(a,V(i,s),r);if(f.useEffect(()=>{const u=a.current;if(!u||u.nodeType!==1||n)return;const d=m=>{!Gg(m.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||l(m);};return u.addEventListener("click",d,!0),()=>{u.removeEventListener("click",d,!0);}},[n]),!f.isValidElement(t))return t??null;const c=Ro(t)?Wn(t.ref,a):a;return Bn(t,{ref:c})},zs=kz;var Bo="RC_FORM_INTERNAL_HOOKS",Ft=function(){bn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.");},qa=f__namespace.createContext({getFieldValue:Ft,getFieldsValue:Ft,getFieldError:Ft,getFieldWarning:Ft,getFieldsError:Ft,isFieldsTouched:Ft,isFieldTouched:Ft,isFieldValidating:Ft,isFieldsValidating:Ft,resetFields:Ft,setFields:Ft,setFieldValue:Ft,setFieldsValue:Ft,validateFields:Ft,submit:Ft,getInternalHooks:function(){return Ft(),{dispatch:Ft,initEntityValue:Ft,registerField:Ft,useSubscribe:Ft,setInitialValues:Ft,destroyForm:Ft,setCallbacks:Ft,registerWatch:Ft,getFields:Ft,setValidateMessages:Ft,setPreserve:Ft,getInitialValue:Ft}}}),cc=f__namespace.createContext(null);function Yf(e){return e==null?[]:Array.isArray(e)?e:[e]}function Lz(e){return e&&!!e._init}function Ho(){return Ho=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},Ho.apply(this,arguments)}function Az(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,us(e,t);}function Qf(e){return Qf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Qf(e)}function us(e,t){return us=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},us(e,t)}function zz(){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 Dl(e,t,n){return zz()?Dl=Reflect.construct.bind():Dl=function(o,a,i){var s=[null];s.push.apply(s,a);var l=Function.bind.apply(o,s),c=new l;return i&&us(c,i.prototype),c},Dl.apply(null,arguments)}function Dz(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Zf(e){var t=typeof Map=="function"?new Map:void 0;return Zf=function(r){if(r===null||!Dz(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 Dl(r,arguments,Qf(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),us(o,r)},Zf(e)}var jz=/%[sdj%]/g,Fz=function(){};typeof process<"u"&&process.env;function Jf(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 tr(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(jz,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 Bz(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function mn(e,t){return !!(e==null||t==="array"&&Array.isArray(e)&&!e.length||Bz(t)&&typeof e=="string"&&!e)}function Hz(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 tb(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 Wz(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[]);}),t}var nb=function(e){Az(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}(Zf(Error));function Vz(e,t,n,r,o){if(t.first){var a=new Promise(function(m,g){var h=function(b){return r(b),b.length?g(new nb(b,Jf(b))):m(o)},v=Wz(e);tb(v,n,h);});return a.catch(function(m){return m}),a}var i=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],d=new Promise(function(m,g){var h=function(p){if(u.push.apply(u,p),c++,c===l)return r(u),u.length?g(new nb(u,Jf(u))):m(o)};s.length||(r(u),m(o)),s.forEach(function(v){var p=e[v];i.indexOf(v)!==-1?tb(p,n,h):Hz(p,n,h);});});return d.catch(function(m){return m}),d}function Gz(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 rb(e,t){return function(n){var r;return e.fullFields?r=Kz(t,e.fullFields):r=t[n.field||e.fullField],Gz(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 ob(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]=Ho({},e[n],r):e[n]=r;}}return e}var TC=function(t,n,r,o,a,i){t.required&&(!r.hasOwnProperty(t.field)||mn(n,i||t.type))&&o.push(tr(a.messages.required,t.fullField));},Uz=function(t,n,r,o,a){(/^\s+$/.test(n)||n==="")&&o.push(tr(a.messages.whitespace,t.fullField));},Sl,Xz=function(){if(Sl)return Sl;var e="[a-fA-F\\d:]",t=function($){return $&&$.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=(`
(?:
(?:`+r+":){7}(?:"+r+`|:)|                                    // 1:2:3:4:5:6:7::  1:2:3:4:5:6:7:8
(?:`+r+":){6}(?:"+n+"|:"+r+`|:)|                             // 1:2:3:4:5:6::    1:2:3:4:5:6::8   1:2:3:4:5:6::8  1:2:3:4:5:6::1.2.3.4
(?:`+r+":){5}(?::"+n+"|(?::"+r+`){1,2}|:)|                   // 1:2:3:4:5::      1:2:3:4:5::7:8   1:2:3:4:5::8    1:2:3:4:5::7:1.2.3.4
(?:`+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+`){1,3}|:)| // 1:2:3:4::        1:2:3:4::6:7:8   1:2:3:4::8      1:2:3:4::6:7:1.2.3.4
(?:`+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+`){1,4}|:)| // 1:2:3::          1:2:3::5:6:7:8   1:2:3::8        1:2:3::5:6:7:1.2.3.4
(?:`+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+`){1,5}|:)| // 1:2::            1:2::4:5:6:7:8   1:2::8          1:2::4:5:6:7:1.2.3.4
(?:`+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+`){1,6}|:)| // 1::              1::3:4:5:6:7:8   1::8            1::3:4:5:6:7:1.2.3.4
(?::(?:(?::`+r+"){0,5}:"+n+"|(?::"+r+`){1,7}|:))             // ::2:3:4:5:6:7:8  ::2:3:4:5:6:7:8  ::8             ::1.2.3.4
)(?:%[0-9a-zA-Z]{1,})?                                             // %eth0            %1
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),a=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),i=new RegExp("^"+n+"$"),s=new RegExp("^"+o+"$"),l=function($){return $&&$.exact?a:new RegExp("(?:"+t($)+n+t($)+")|(?:"+t($)+o+t($)+")","g")};l.v4=function(C){return C&&C.exact?i:new RegExp(""+t(C)+n+t(C),"g")},l.v6=function(C){return C&&C.exact?s:new RegExp(""+t(C)+o+t(C),"g")};var c="(?:(?:[a-z]+:)?//)",u="(?:\\S+(?::\\S*)?@)?",d=l.v4().source,m=l.v6().source,g="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",h="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",v="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",p="(?::\\d{2,5})?",b='(?:[/?#][^\\s"]*)?',y="(?:"+c+"|www\\.)"+u+"(?:localhost|"+d+"|"+m+"|"+g+h+v+")"+p+b;return Sl=new RegExp("(?:^"+y+"$)","i"),Sl},ab={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},Fi={integer:function(t){return Fi.number(t)&&parseInt(t,10)===t},float:function(t){return Fi.number(t)&&!Fi.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"&&!Fi.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(ab.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Xz())},hex:function(t){return typeof t=="string"&&!!t.match(ab.hex)}},qz=function(t,n,r,o,a){if(t.required&&n===void 0){TC(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?Fi[s](n)||o.push(tr(a.messages.types[s],t.fullField,t.type)):s&&typeof n!==t.type&&o.push(tr(a.messages.types[s],t.fullField,t.type));},Yz=function(t,n,r,o,a){var i=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=n,d=null,m=typeof n=="number",g=typeof n=="string",h=Array.isArray(n);if(m?d="number":g?d="string":h&&(d="array"),!d)return !1;h&&(u=n.length),g&&(u=n.replace(c,"_").length),i?u!==t.len&&o.push(tr(a.messages[d].len,t.fullField,t.len)):s&&!l&&u<t.min?o.push(tr(a.messages[d].min,t.fullField,t.min)):l&&!s&&u>t.max?o.push(tr(a.messages[d].max,t.fullField,t.max)):s&&l&&(u<t.min||u>t.max)&&o.push(tr(a.messages[d].range,t.fullField,t.min,t.max));},va="enum",Qz=function(t,n,r,o,a){t[va]=Array.isArray(t[va])?t[va]:[],t[va].indexOf(n)===-1&&o.push(tr(a.messages[va],t.fullField,t[va].join(", ")));},Zz=function(t,n,r,o,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(tr(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(tr(a.messages.pattern.mismatch,t.fullField,n,t.pattern));}}},xt={required:TC,whitespace:Uz,type:qz,range:Yz,enum:Qz,pattern:Zz},Jz=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(mn(n,"string")&&!t.required)return r();xt.required(t,n,o,i,a,"string"),mn(n,"string")||(xt.type(t,n,o,i,a),xt.range(t,n,o,i,a),xt.pattern(t,n,o,i,a),t.whitespace===!0&&xt.whitespace(t,n,o,i,a));}r(i);},eD=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(mn(n)&&!t.required)return r();xt.required(t,n,o,i,a),n!==void 0&&xt.type(t,n,o,i,a);}r(i);},tD=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),mn(n)&&!t.required)return r();xt.required(t,n,o,i,a),n!==void 0&&(xt.type(t,n,o,i,a),xt.range(t,n,o,i,a));}r(i);},nD=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(mn(n)&&!t.required)return r();xt.required(t,n,o,i,a),n!==void 0&&xt.type(t,n,o,i,a);}r(i);},rD=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(mn(n)&&!t.required)return r();xt.required(t,n,o,i,a),mn(n)||xt.type(t,n,o,i,a);}r(i);},oD=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(mn(n)&&!t.required)return r();xt.required(t,n,o,i,a),n!==void 0&&(xt.type(t,n,o,i,a),xt.range(t,n,o,i,a));}r(i);},aD=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(mn(n)&&!t.required)return r();xt.required(t,n,o,i,a),n!==void 0&&(xt.type(t,n,o,i,a),xt.range(t,n,o,i,a));}r(i);},iD=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();xt.required(t,n,o,i,a,"array"),n!=null&&(xt.type(t,n,o,i,a),xt.range(t,n,o,i,a));}r(i);},sD=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(mn(n)&&!t.required)return r();xt.required(t,n,o,i,a),n!==void 0&&xt.type(t,n,o,i,a);}r(i);},lD="enum",cD=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(mn(n)&&!t.required)return r();xt.required(t,n,o,i,a),n!==void 0&&xt[lD](t,n,o,i,a);}r(i);},uD=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(mn(n,"string")&&!t.required)return r();xt.required(t,n,o,i,a),mn(n,"string")||xt.pattern(t,n,o,i,a);}r(i);},dD=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(mn(n,"date")&&!t.required)return r();if(xt.required(t,n,o,i,a),!mn(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),xt.type(t,l,o,i,a),l&&xt.range(t,l.getTime(),o,i,a);}}r(i);},fD=function(t,n,r,o,a){var i=[],s=Array.isArray(n)?"array":typeof n;xt.required(t,n,o,i,a,s),r(i);},Ld=function(t,n,r,o,a){var i=t.type,s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(mn(n,i)&&!t.required)return r();xt.required(t,n,o,s,a,i),mn(n,i)||xt.type(t,n,o,s,a);}r(s);},mD=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(mn(n)&&!t.required)return r();xt.required(t,n,o,i,a);}r(i);},Ui={string:Jz,method:eD,number:tD,boolean:nD,regexp:rD,integer:oD,float:aD,array:iD,object:sD,enum:cD,pattern:uD,date:dD,url:Ld,hex:Ld,email:Ld,required:fD,any:mD};function em(){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 tm=em(),Ds=function(){function e(n){this.rules=null,this._messages=tm,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=ob(em(),r)),this._messages},t.validate=function(r,o,a){var i=this;o===void 0&&(o={}),a===void 0&&(a=function(){});var s=r,l=o,c=a;if(typeof l=="function"&&(c=l,l={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,s),Promise.resolve(s);function u(v){var p=[],b={};function y($){if(Array.isArray($)){var x;p=(x=p).concat.apply(x,$);}else p.push($);}for(var C=0;C<v.length;C++)y(v[C]);p.length?(b=Jf(p),c(p,b)):c(null,s);}if(l.messages){var d=this.messages();d===tm&&(d=em()),ob(d,l.messages),l.messages=d;}else l.messages=this.messages();var m={},g=l.keys||Object.keys(this.rules);g.forEach(function(v){var p=i.rules[v],b=s[v];p.forEach(function(y){var C=y;typeof C.transform=="function"&&(s===r&&(s=Ho({},s)),b=s[v]=C.transform(b)),typeof C=="function"?C={validator:C}:C=Ho({},C),C.validator=i.getValidationMethod(C),C.validator&&(C.field=v,C.fullField=C.fullField||v,C.type=i.getType(C),m[v]=m[v]||[],m[v].push({rule:C,value:b,source:s,field:v}));});});var h={};return Vz(m,l,function(v,p){var b=v.rule,y=(b.type==="object"||b.type==="array")&&(typeof b.fields=="object"||typeof b.defaultField=="object");y=y&&(b.required||!b.required&&v.value),b.field=v.field;function C(w,S){return Ho({},S,{fullField:b.fullField+"."+w,fullFields:b.fullFields?[].concat(b.fullFields,[w]):[w]})}function $(w){w===void 0&&(w=[]);var S=Array.isArray(w)?w:[w];!l.suppressWarning&&S.length&&e.warning("async-validator:",S),S.length&&b.message!==void 0&&(S=[].concat(b.message));var E=S.map(rb(b,s));if(l.first&&E.length)return h[b.field]=1,p(E);if(!y)p(E);else {if(b.required&&!v.value)return b.message!==void 0?E=[].concat(b.message).map(rb(b,s)):l.error&&(E=[l.error(b,tr(l.messages.required,b.field))]),p(E);var I={};b.defaultField&&Object.keys(v.value).map(function(P){I[P]=b.defaultField;}),I=Ho({},I,v.rule.fields);var O={};Object.keys(I).forEach(function(P){var k=I[P],L=Array.isArray(k)?k:[k];O[P]=L.map(C.bind(null,P));});var R=new e(O);R.messages(l.messages),v.rule.options&&(v.rule.options.messages=l.messages,v.rule.options.error=l.error),R.validate(v.value,v.rule.options||l,function(P){var k=[];E&&E.length&&k.push.apply(k,E),P&&P.length&&k.push.apply(k,P),p(k.length?k:null);});}}var x;if(b.asyncValidator)x=b.asyncValidator(b,v.value,$,v.source,l);else if(b.validator){try{x=b.validator(b,v.value,$,v.source,l);}catch(w){console.error==null||console.error(w),l.suppressValidatorError||setTimeout(function(){throw w},0),$(w.message);}x===!0?$():x===!1?$(typeof b.message=="function"?b.message(b.fullField||b.field):b.message||(b.fullField||b.field)+" fails"):x instanceof Array?$(x):x instanceof Error&&$(x.message);}x&&x.then&&x.then(function(){return $()},function(w){return $(w)});},function(v){u(v);},s)},t.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!Ui.hasOwnProperty(r.type))throw new Error(tr("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"?Ui.required:Ui[this.getType(r)]||void 0},e}();Ds.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Ui[t]=n;};Ds.warning=Fz;Ds.messages=tm;Ds.validators=Ui;var Qn="'${name}' is not a valid ${type}",NC={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:Qn,method:Qn,array:Qn,object:Qn,number:Qn,date:Qn,boolean:Qn,integer:Qn,float:Qn,regexp:Qn,email:Qn,url:Qn,hex:Qn},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}"}},ib=Ds;function gD(e,t){return e.replace(/\$\{\w+\}/g,function(n){var r=n.slice(2,-1);return t[r]})}var sb="CODE_LOGIC_ERROR";function nm(e,t,n,r,o){return rm.apply(this,arguments)}function rm(){return rm=ia(Hn().mark(function e(t,n,r,o,a){var i,s,l,c,u,d,m,g,h;return Hn().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return i=U({},r),delete i.ruleIndex,ib.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(sb)}}),l=null,i&&i.type==="array"&&i.defaultField&&(l=i.defaultField,delete i.defaultField),c=new ib(z({},t,[i])),u=Na(NC,o.validateMessages),c.messages(u),d=[],p.prev=10,p.next=13,Promise.resolve(c.validate(z({},t,n),U({},o)));case 13:p.next=18;break;case 15:p.prev=15,p.t0=p.catch(10),p.t0.errors&&(d=p.t0.errors.map(function(b,y){var C=b.message,$=C===sb?u.default:C;return f__namespace.isValidElement($)?f__namespace.cloneElement($,{key:"error_".concat(y)}):$}));case 18:if(!(!d.length&&l)){p.next=23;break}return p.next=21,Promise.all(n.map(function(b,y){return nm("".concat(t,".").concat(y),b,l,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=U(U({},r),{},{name:t,enum:(r.enum||[]).join(", ")},a),h=d.map(function(b){return typeof b=="string"?gD(b,g):b}),p.abrupt("return",h);case 26:case"end":return p.stop()}},e,null,[[10,15]])})),rm.apply(this,arguments)}function hD(e,t,n,r,o,a){var i=e.join("."),s=n.map(function(u,d){var m=u.validator,g=U(U({},u),{},{ruleIndex:d});return m&&(g.validator=function(h,v,p){var b=!1,y=function(){for(var x=arguments.length,w=new Array(x),S=0;S<x;S++)w[S]=arguments[S];Promise.resolve().then(function(){bn(!b,"Your validator function has already return a promise. `callback` will be ignored."),b||p.apply(void 0,w);});},C=m(h,v,y);b=C&&typeof C.then=="function"&&typeof C.catch=="function",bn(b,"`callback` is deprecated. Please return a promise instead."),b&&C.then(function(){p();}).catch(function($){p($||" ");});}),g}).sort(function(u,d){var m=u.warningOnly,g=u.ruleIndex,h=d.warningOnly,v=d.ruleIndex;return !!m==!!h?g-v:m?1:-1}),l;if(o===!0)l=new Promise(function(){var u=ia(Hn().mark(function d(m,g){var h,v,p;return Hn().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:h=0;case 1:if(!(h<s.length)){y.next=12;break}return v=s[h],y.next=5,nm(i,t,v,r,a);case 5:if(p=y.sent,!p.length){y.next=9;break}return g([{errors:p,rule:v}]),y.abrupt("return");case 9:h+=1,y.next=1;break;case 12:m([]);case 13:case"end":return y.stop()}},d)}));return function(d,m){return u.apply(this,arguments)}}());else {var c=s.map(function(u){return nm(i,t,u,r,a).then(function(d){return {errors:d,rule:u}})});l=(o?pD(c):vD(c)).then(function(u){return Promise.reject(u)});}return l.catch(function(u){return u}),l}function vD(e){return om.apply(this,arguments)}function om(){return om=ia(Hn().mark(function e(t){return Hn().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)})),om.apply(this,arguments)}function pD(e){return am.apply(this,arguments)}function am(){return am=ia(Hn().mark(function e(t){var n;return Hn().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)})),am.apply(this,arguments)}function an(e){return Yf(e)}function lb(e,t){var n={};return t.forEach(function(r){var o=Rr(e,r);n=Ir(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 kC(t,r,n)})}function kC(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 bD(e,t){if(e===t)return !0;if(!e&&t||e&&!t||!e||!t||at(e)!=="object"||at(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 yD(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&at(t.target)==="object"&&e in t.target?t.target[e]:t}function cb(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 CD=["name"],fr=[];function ub(e,t,n,r,o,a){return typeof e=="function"?e(t,n,"source"in a?{source:a.source}:{}):r!==o}var eh=function(e){_o(n,e);var t=To(n);function n(r){var o;if(Cn(this,n),o=t.call(this,r),z(He(o),"state",{resetCount:0}),z(He(o),"cancelRegisterFunc",null),z(He(o),"mounted",!1),z(He(o),"touched",!1),z(He(o),"dirty",!1),z(He(o),"validatePromise",void 0),z(He(o),"prevValidating",void 0),z(He(o),"errors",fr),z(He(o),"warnings",fr),z(He(o),"cancelRegister",function(){var l=o.props,c=l.preserve,u=l.isListField,d=l.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(u,c,an(d)),o.cancelRegisterFunc=null;}),z(He(o),"getNamePath",function(){var l=o.props,c=l.name,u=l.fieldContext,d=u.prefixName,m=d===void 0?[]:d;return c!==void 0?[].concat(Re(m),Re(c)):[]}),z(He(o),"getRules",function(){var l=o.props,c=l.rules,u=c===void 0?[]:c,d=l.fieldContext;return u.map(function(m){return typeof m=="function"?m(d):m})}),z(He(o),"refresh",function(){o.mounted&&o.setState(function(l){var c=l.resetCount;return {resetCount:c+1}});}),z(He(o),"metaCache",null),z(He(o),"triggerMetaEvent",function(l){var c=o.props.onMetaChange;if(c){var u=U(U({},o.getMeta()),{},{destroy:l});Rs(o.metaCache,u)||c(u),o.metaCache=u;}else o.metaCache=null;}),z(He(o),"onStoreChange",function(l,c,u){var d=o.props,m=d.shouldUpdate,g=d.dependencies,h=g===void 0?[]:g,v=d.onReset,p=u.store,b=o.getNamePath(),y=o.getValue(l),C=o.getValue(p),$=c&&Fa(c,b);switch(u.type==="valueUpdate"&&u.source==="external"&&y!==C&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=fr,o.warnings=fr,o.triggerMetaEvent()),u.type){case"reset":if(!c||$){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=fr,o.warnings=fr,o.triggerMetaEvent(),v==null||v(),o.refresh();return}break;case"remove":{if(m){o.reRender();return}break}case"setField":{var x=u.data;if($){"touched"in x&&(o.touched=x.touched),"validating"in x&&!("originRCField"in x)&&(o.validatePromise=x.validating?Promise.resolve([]):null),"errors"in x&&(o.errors=x.errors||fr),"warnings"in x&&(o.warnings=x.warnings||fr),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in x&&Fa(c,b,!0)){o.reRender();return}if(m&&!b.length&&ub(m,l,p,y,C,u)){o.reRender();return}break}case"dependenciesUpdate":{var w=h.map(an);if(w.some(function(S){return Fa(u.relatedFields,S)})){o.reRender();return}break}default:if($||(!h.length||b.length||m)&&ub(m,l,p,y,C,u)){o.reRender();return}break}m===!0&&o.reRender();}),z(He(o),"validateRules",function(l){var c=o.getNamePath(),u=o.getValue(),d=l||{},m=d.triggerName,g=d.validateOnly,h=g===void 0?!1:g,v=Promise.resolve().then(ia(Hn().mark(function p(){var b,y,C,$,x,w,S;return Hn().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:if(o.mounted){I.next=2;break}return I.abrupt("return",[]);case 2:if(b=o.props,y=b.validateFirst,C=y===void 0?!1:y,$=b.messageVariables,x=b.validateDebounce,w=o.getRules(),m&&(w=w.filter(function(O){return O}).filter(function(O){var R=O.validateTrigger;if(!R)return !0;var P=Yf(R);return P.includes(m)})),!(x&&m)){I.next=10;break}return I.next=8,new Promise(function(O){setTimeout(O,x);});case 8:if(o.validatePromise===v){I.next=10;break}return I.abrupt("return",[]);case 10:return S=hD(c,u,w,l,C,$),S.catch(function(O){return O}).then(function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:fr;if(o.validatePromise===v){var R;o.validatePromise=null;var P=[],k=[];(R=O.forEach)===null||R===void 0||R.call(O,function(L){var A=L.rule.warningOnly,T=L.errors,M=T===void 0?fr:T;A?k.push.apply(k,Re(M)):P.push.apply(P,Re(M));}),o.errors=P,o.warnings=k,o.triggerMetaEvent(),o.reRender();}}),I.abrupt("return",S);case 13:case"end":return I.stop()}},p)})));return h||(o.validatePromise=v,o.dirty=!0,o.errors=fr,o.warnings=fr,o.triggerMetaEvent(),o.reRender()),v}),z(He(o),"isFieldValidating",function(){return !!o.validatePromise}),z(He(o),"isFieldTouched",function(){return o.touched}),z(He(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return !0;var l=o.props.fieldContext,c=l.getInternalHooks(Bo),u=c.getInitialValue;return u(o.getNamePath())!==void 0}),z(He(o),"getErrors",function(){return o.errors}),z(He(o),"getWarnings",function(){return o.warnings}),z(He(o),"isListField",function(){return o.props.isListField}),z(He(o),"isList",function(){return o.props.isList}),z(He(o),"isPreserve",function(){return o.props.preserve}),z(He(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var l={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return l}),z(He(o),"getOnlyChild",function(l){if(typeof l=="function"){var c=o.getMeta();return U(U({},o.getOnlyChild(l(o.getControlled(),c,o.props.fieldContext))),{},{isFunction:!0})}var u=or(l);return u.length!==1||!f__namespace.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),z(He(o),"getValue",function(l){var c=o.props.fieldContext.getFieldsValue,u=o.getNamePath();return Rr(l||c(!0),u)}),z(He(o),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=o.props,u=c.trigger,d=c.validateTrigger,m=c.getValueFromEvent,g=c.normalize,h=c.valuePropName,v=c.getValueProps,p=c.fieldContext,b=d!==void 0?d:p.validateTrigger,y=o.getNamePath(),C=p.getInternalHooks,$=p.getFieldsValue,x=C(Bo),w=x.dispatch,S=o.getValue(),E=v||function(P){return z({},h,P)},I=l[u],O=U(U({},l),E(S));O[u]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var P,k=arguments.length,L=new Array(k),A=0;A<k;A++)L[A]=arguments[A];m?P=m.apply(void 0,L):P=yD.apply(void 0,[h].concat(L)),g&&(P=g(P,S,$(!0))),w({type:"updateValue",namePath:y,value:P}),I&&I.apply(void 0,L);};var R=Yf(b||[]);return R.forEach(function(P){var k=O[P];O[P]=function(){k&&k.apply(void 0,arguments);var L=o.props.rules;L&&L.length&&w({type:"validateField",namePath:y,triggerName:P});};}),O}),r.fieldContext){var a=r.fieldContext.getInternalHooks,i=a(Bo),s=i.initEntityValue;s(He(o));}return o}return Sn(n,[{key:"componentDidMount",value:function(){var o=this.props,a=o.shouldUpdate,i=o.fieldContext;if(this.mounted=!0,i){var s=i.getInternalHooks,l=s(Bo),c=l.registerField;this.cancelRegisterFunc=c(this);}a===!0&&this.reRender();}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1;}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate();}},{key:"render",value:function(){var o=this.state.resetCount,a=this.props.children,i=this.getOnlyChild(a),s=i.child,l=i.isFunction,c;return l?c=s:f__namespace.isValidElement(s)?c=f__namespace.cloneElement(s,this.getControlled(s.props)):(bn(!s,"`children` of Field is not validate ReactElement."),c=s),f__namespace.createElement(f__namespace.Fragment,{key:o},c)}}]),n}(f__namespace.Component);z(eh,"contextType",qa);z(eh,"defaultProps",{trigger:"onChange",valuePropName:"value"});function LC(e){var t=e.name,n=Ye(e,CD),r=f__namespace.useContext(qa),o=f__namespace.useContext(cc),a=t!==void 0?an(t):void 0,i="keep";return n.isListField||(i="_".concat((a||[]).join("_"))),f__namespace.createElement(eh,Ie({key:i,name:a,isListField:!!o},n,{fieldContext:r}))}function SD(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,a=e.validateTrigger,i=e.isListField,s=f__namespace.useContext(qa),l=f__namespace.useContext(cc),c=f__namespace.useRef({keys:[],id:0}),u=c.current,d=f__namespace.useMemo(function(){var v=an(s.prefixName)||[];return [].concat(Re(v),Re(an(t)))},[s.prefixName,t]),m=f__namespace.useMemo(function(){return U(U({},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 bn(!1,"Form.List only accepts function as children."),null;var h=function(p,b,y){var C=y.source;return C==="internal"?!1:p!==b};return f__namespace.createElement(cc.Provider,{value:g},f__namespace.createElement(qa.Provider,{value:m},f__namespace.createElement(LC,{name:[],shouldUpdate:h,rules:o,validateTrigger:a,initialValue:n,isList:!0,isListField:i??!!l},function(v,p){var b=v.value,y=b===void 0?[]:b,C=v.onChange,$=s.getFieldValue,x=function(){var I=$(d||[]);return I||[]},w={add:function(I,O){var R=x();O>=0&&O<=R.length?(u.keys=[].concat(Re(u.keys.slice(0,O)),[u.id],Re(u.keys.slice(O))),C([].concat(Re(R.slice(0,O)),[I],Re(R.slice(O))))):(u.keys=[].concat(Re(u.keys),[u.id]),C([].concat(Re(R),[I]))),u.id+=1;},remove:function(I){var O=x(),R=new Set(Array.isArray(I)?I:[I]);R.size<=0||(u.keys=u.keys.filter(function(P,k){return !R.has(k)}),C(O.filter(function(P,k){return !R.has(k)})));},move:function(I,O){if(I!==O){var R=x();I<0||I>=R.length||O<0||O>=R.length||(u.keys=cb(u.keys,I,O),C(cb(R,I,O)));}}},S=y||[];return Array.isArray(S)||(S=[]),r(S.map(function(E,I){var O=u.keys[I];return O===void 0&&(u.keys[I]=u.id,O=u.keys[I],u.id+=1),{name:I,key:O,isListField:!0}}),w,p)})))}function $D(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,a){e.forEach(function(i,s){i.catch(function(l){return t=!0,l}).then(function(l){n-=1,r[s]=l,!(n>0)&&(t&&a(r),o(r));});});}):Promise.resolve([])}var AC="__@field_split__";function Ad(e){return e.map(function(t){return "".concat(at(t),":").concat(t)}).join(AC)}var pa=function(){function e(){Cn(this,e),z(this,"kvs",new Map);}return Sn(e,[{key:"set",value:function(n,r){this.kvs.set(Ad(n),r);}},{key:"get",value:function(n){return this.kvs.get(Ad(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(Ad(n));}},{key:"map",value:function(n){return Re(this.kvs.entries()).map(function(r){var o=Q(r,2),a=o[0],i=o[1],s=a.split(AC);return n({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=Q(c,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}(),wD=["name"],xD=Sn(function e(t){var n=this;Cn(this,e),z(this,"formHooked",!1),z(this,"forceRootUpdate",void 0),z(this,"subscribable",!0),z(this,"store",{}),z(this,"fieldEntities",[]),z(this,"initialValues",{}),z(this,"callbacks",{}),z(this,"validateMessages",null),z(this,"preserve",null),z(this,"lastValidatePromise",null),z(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}}),z(this,"getInternalHooks",function(r){return r===Bo?(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}):(bn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),z(this,"useSubscribe",function(r){n.subscribable=r;}),z(this,"prevWithoutPreserves",null),z(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 l=s.key;i=Ir(i,l,Rr(r,l));}),n.prevWithoutPreserves=null,n.updateStore(i);}}),z(this,"destroyForm",function(){var r=new pa;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||r.set(o.getNamePath(),!0);}),n.prevWithoutPreserves=r;}),z(this,"getInitialValue",function(r){var o=Rr(n.initialValues,r);return r.length?Na(o):o}),z(this,"setCallbacks",function(r){n.callbacks=r;}),z(this,"setValidateMessages",function(r){n.validateMessages=r;}),z(this,"setPreserve",function(r){n.preserve=r;}),z(this,"watchList",[]),z(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r});}}),z(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);});}}),z(this,"timeoutId",null),z(this,"warningUnhooked",function(){}),z(this,"updateStore",function(r){n.store=r;}),z(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}),z(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new pa;return n.getFieldEntities(r).forEach(function(a){var i=a.getNamePath();o.set(i,a);}),o}),z(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(a){var i=an(a);return o.get(i)||{INVALIDATE_NAME_PATH:an(a)}})}),z(this,"getFieldsValue",function(r,o){n.warningUnhooked();var a,i,s;if(r===!0||Array.isArray(r)?(a=r,i=o):r&&at(r)==="object"&&(s=r.strict,i=r.filter),a===!0&&!i)return n.store;var l=n.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null),c=[];return l.forEach(function(u){var d,m,g="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var h,v;if((h=(v=u).isList)!==null&&h!==void 0&&h.call(v))return}else if(!a&&(d=(m=u).isListField)!==null&&d!==void 0&&d.call(m))return;if(!i)c.push(g);else {var p="getMeta"in u?u.getMeta():null;i(p)&&c.push(g);}}),lb(n.store,c.map(an))}),z(this,"getFieldValue",function(r){n.warningUnhooked();var o=an(r);return Rr(n.store,o)}),z(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:an(r[i]),errors:[],warnings:[]}})}),z(this,"getFieldError",function(r){n.warningUnhooked();var o=an(r),a=n.getFieldsError([o])[0];return a.errors}),z(this,"getFieldWarning",function(r){n.warningUnhooked();var o=an(r),a=n.getFieldsError([o])[0];return a.warnings}),z(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];var i=o[0],s=o[1],l,c=!1;o.length===0?l=null:o.length===1?Array.isArray(i)?(l=i.map(an),c=!1):(l=null,c=i):(l=i.map(an),c=s);var u=n.getFieldEntities(!0),d=function(p){return p.isFieldTouched()};if(!l)return c?u.every(d):u.some(d);var m=new pa;l.forEach(function(v){m.set(v,[]);}),u.forEach(function(v){var p=v.getNamePath();l.forEach(function(b){b.every(function(y,C){return p[C]===y})&&m.update(b,function(y){return [].concat(Re(y),[v])});});});var g=function(p){return p.some(d)},h=m.map(function(v){var p=v.value;return p});return c?h.every(g):h.some(g)}),z(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),z(this,"isFieldsValidating",function(r){n.warningUnhooked();var o=n.getFieldEntities();if(!r)return o.some(function(i){return i.isFieldValidating()});var a=r.map(an);return o.some(function(i){var s=i.getNamePath();return Fa(a,s)&&i.isFieldValidating()})}),z(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),z(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new pa,a=n.getFieldEntities(!0);a.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var d=o.get(u)||new Set;d.add({entity:l,value:c}),o.set(u,d);}});var i=function(c){c.forEach(function(u){var d=u.props.initialValue;if(d!==void 0){var m=u.getNamePath(),g=n.getInitialValue(m);if(g!==void 0)bn(!1,"Form already set 'initialValues' with path '".concat(m.join("."),"'. Field can not overwrite it."));else {var h=o.get(m);if(h&&h.size>1)bn(!1,"Multiple Field with path '".concat(m.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(h){var v=n.getFieldValue(m),p=u.isListField();!p&&(!r.skipExist||v===void 0)&&n.updateStore(Ir(n.store,m,Re(h)[0].value));}}}});},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(l){var c=o.get(l);if(c){var u;(u=s).push.apply(u,Re(Re(c).map(function(d){return d.entity})));}})):s=a,i(s);}),z(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(an);a.forEach(function(i){var s=n.getInitialValue(i);n.updateStore(Ir(n.store,i,s));}),n.resetWithFieldInitialValue({namePathList:a}),n.notifyObservers(o,a,{type:"reset"}),n.notifyWatch(a);}),z(this,"setFields",function(r){n.warningUnhooked();var o=n.store,a=[];r.forEach(function(i){var s=i.name,l=Ye(i,wD),c=an(s);a.push(c),"value"in l&&n.updateStore(Ir(n.store,c,l.value)),n.notifyObservers(o,[c],{type:"setField",data:i});}),n.notifyWatch(a);}),z(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(a){var i=a.getNamePath(),s=a.getMeta(),l=U(U({},s),{},{name:i,value:n.getFieldValue(i)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return o}),z(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var a=r.getNamePath(),i=Rr(n.store,a);i===void 0&&n.updateStore(Ir(n.store,a,o));}}),z(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o??!0}),z(this,"registerField",function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var a=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(a,[r.getNamePath()],{type:"valueUpdate",source:"internal"});}return function(i,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(d){return d!==r}),!n.isMergedPreserve(s)&&(!i||l.length>1)){var c=i?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==c&&n.fieldEntities.every(function(d){return !kC(d.getNamePath(),o)})){var u=n.store;n.updateStore(Ir(u,o,c,!0)),n.notifyObservers(u,[o],{type:"remove"}),n.triggerDependenciesUpdate(u,o);}}n.notifyWatch([o]);}}),z(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}}}),z(this,"notifyObservers",function(r,o,a){if(n.subscribable){var i=U(U({},a),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(r,o,i);});}else n.forceRootUpdate();}),z(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}),z(this,"updateValue",function(r,o){var a=an(r),i=n.store;n.updateStore(Ir(n.store,a,o)),n.notifyObservers(i,[a],{type:"valueUpdate",source:"internal"}),n.notifyWatch([a]);var s=n.triggerDependenciesUpdate(i,a),l=n.callbacks.onValuesChange;if(l){var c=lb(n.store,[a]);l(c,n.getFieldsValue());}n.triggerOnFieldsChange([a].concat(Re(s)));}),z(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();}),z(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o}]);}),z(this,"getDependencyChildrenFields",function(r){var o=new Set,a=[],i=new pa;n.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var d=an(u);i.update(d,function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return m.add(l),m});});});var s=function l(c){var u=i.get(c)||new Set;u.forEach(function(d){if(!o.has(d)){o.add(d);var m=d.getNamePath();d.isFieldDirty()&&m.length&&(a.push(m),l(m));}});};return s(r),a}),z(this,"triggerOnFieldsChange",function(r,o){var a=n.callbacks.onFieldsChange;if(a){var i=n.getFields();if(o){var s=new pa;o.forEach(function(c){var u=c.name,d=c.errors;s.set(u,d);}),i.forEach(function(c){c.errors=s.get(c.name)||c.errors;});}var l=i.filter(function(c){var u=c.name;return Fa(r,u)});l.length&&a(l,i);}}),z(this,"validateFields",function(r,o){n.warningUnhooked();var a,i;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(a=r,i=o):i=r;var s=!!a,l=s?a.map(an):[],c=[],u=String(Date.now()),d=new Set,m=i||{},g=m.recursive,h=m.dirty;n.getFieldEntities(!0).forEach(function(y){if(s||l.push(y.getNamePath()),!(!y.props.rules||!y.props.rules.length)&&!(h&&!y.isFieldDirty())){var C=y.getNamePath();if(d.add(C.join(u)),!s||Fa(l,C,g)){var $=y.validateRules(U({validateMessages:U(U({},NC),n.validateMessages)},i));c.push($.then(function(){return {name:C,errors:[],warnings:[]}}).catch(function(x){var w,S=[],E=[];return (w=x.forEach)===null||w===void 0||w.call(x,function(I){var O=I.rule.warningOnly,R=I.errors;O?E.push.apply(E,Re(R)):S.push.apply(S,Re(R));}),S.length?Promise.reject({name:C,errors:S,warnings:E}):{name:C,errors:S,warnings:E}}));}}});var v=$D(c);n.lastValidatePromise=v,v.catch(function(y){return y}).then(function(y){var C=y.map(function($){var x=$.name;return x});n.notifyObservers(n.store,C,{type:"validateFinish"}),n.triggerOnFieldsChange(C,y);});var p=v.then(function(){return n.lastValidatePromise===v?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(y){var C=y.filter(function($){return $&&$.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:C,outOfDate:n.lastValidatePromise!==v})});p.catch(function(y){return y});var b=l.filter(function(y){return d.has(y.join(u))});return n.triggerOnFieldsChange(b),p}),z(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 zC(e){var t=f__namespace.useRef(),n=f__namespace.useState({}),r=Q(n,2),o=r[1];if(!t.current)if(e)t.current=e;else {var a=function(){o({});},i=new xD(a);t.current=i.getForm();}return [t.current]}var im=f__namespace.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),ED=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,a=t.children,i=f__namespace.useContext(im),s=f__namespace.useRef({});return f__namespace.createElement(im.Provider,{value:U(U({},i),{},{validateMessages:U(U({},i.validateMessages),n),triggerFormChange:function(c,u){r&&r(c,{changedFields:u,forms:s.current}),i.triggerFormChange(c,u);},triggerFormFinish:function(c,u){o&&o(c,{values:u,forms:s.current}),i.triggerFormFinish(c,u);},registerForm:function(c,u){c&&(s.current=U(U({},s.current),{},z({},c,u))),i.registerForm(c,u);},unregisterForm:function(c){var u=U({},s.current);delete u[c],s.current=u,i.unregisterForm(c);}})},a)},ID=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],OD=function(t,n){var r=t.name,o=t.initialValues,a=t.fields,i=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,d=t.validateMessages,m=t.validateTrigger,g=m===void 0?"onChange":m,h=t.onValuesChange,v=t.onFieldsChange,p=t.onFinish,b=t.onFinishFailed,y=Ye(t,ID),C=f__namespace.useContext(im),$=zC(i),x=Q($,1),w=x[0],S=w.getInternalHooks(Bo),E=S.useSubscribe,I=S.setInitialValues,O=S.setCallbacks,R=S.setValidateMessages,P=S.setPreserve,k=S.destroyForm;f__namespace.useImperativeHandle(n,function(){return w}),f__namespace.useEffect(function(){return C.registerForm(r,w),function(){C.unregisterForm(r);}},[C,w,r]),R(U(U({},C.validateMessages),d)),O({onValuesChange:h,onFieldsChange:function(B){if(C.triggerFormChange(r,B),v){for(var W=arguments.length,K=new Array(W>1?W-1:0),X=1;X<W;X++)K[X-1]=arguments[X];v.apply(void 0,[B].concat(K));}},onFinish:function(B){C.triggerFormFinish(r,B),p&&p(B);},onFinishFailed:b}),P(s);var L=f__namespace.useRef(null);I(o,!L.current),L.current||(L.current=!0),f__namespace.useEffect(function(){return k},[]);var A,T=typeof l=="function";if(T){var M=w.getFieldsValue(!0);A=l(M,w);}else A=l;E(!T);var _=f__namespace.useRef();f__namespace.useEffect(function(){bD(_.current||[],a||[])||w.setFields(a||[]),_.current=a;},[a,w]);var D=f__namespace.useMemo(function(){return U(U({},w),{},{validateTrigger:g})},[w,g]),F=f__namespace.createElement(cc.Provider,{value:null},f__namespace.createElement(qa.Provider,{value:D},A));return u===!1?F:f__namespace.createElement(u,Ie({},y,{onSubmit:function(B){B.preventDefault(),B.stopPropagation(),w.submit();},onReset:function(B){var W;B.preventDefault(),w.resetFields(),(W=y.onReset)===null||W===void 0||W.call(y,B);}}),F)};function db(e){try{return JSON.stringify(e)}catch{return Math.random()}}function PD(){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=Lz(i)?{form:i}:i,l=s.form,c=f.useState(),u=Q(c,2),d=u[0],m=u[1],g=f.useMemo(function(){return db(d)},[d]),h=f.useRef(g);h.current=g;var v=f.useContext(qa),p=l||v,b=p&&p._init,y=an(o),C=f.useRef(y);return C.current=y,f.useEffect(function(){if(b){var $=p.getFieldsValue,x=p.getInternalHooks,w=x(Bo),S=w.registerWatch,E=S(function(O,R){var P=Rr(s.preserve?R:O,C.current),k=db(P);h.current!==k&&(h.current=k,m(P));}),I=Rr(s.preserve?$(!0):$(),C.current);return d!==I&&m(I),E}},[b]),d}var MD=f__namespace.forwardRef(OD),js=MD;js.FormProvider=ED;js.Field=LC;js.List=SD;js.useForm=zC;js.useWatch=PD;function Ln(e,t){var n=U({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r];}),n}const br=f__namespace.createContext({}),ds=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)},RD=f.createContext(null),DC=RD,_D=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return [{[`${t}-group`]:Object.assign(Object.assign({},zt(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},zt(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({},zt(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({},Qo(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 TD(e,t){const n=bt(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return [_D(n)]}const jC=Bt("Checkbox",(e,t)=>{let{prefixCls:n}=t;return [TD(n,e)]});var ND=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const kD=(e,t)=>{var n;const{prefixCls:r,className:o,rootClassName:a,children:i,indeterminate:s=!1,style:l,onMouseEnter:c,onMouseLeave:u,skipGroup:d=!1,disabled:m}=e,g=ND(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:h,direction:v,checkbox:p}=f__namespace.useContext(Je),b=f__namespace.useContext(DC),{isFormItemInput:y}=f__namespace.useContext(br),C=f__namespace.useContext(Yr),$=(n=(b==null?void 0:b.disabled)||m)!==null&&n!==void 0?n:C,x=f__namespace.useRef(g.value);f__namespace.useEffect(()=>{b==null||b.registerValue(g.value);},[]),f__namespace.useEffect(()=>{if(!d)return g.value!==x.current&&(b==null||b.cancelValue(x.current),b==null||b.registerValue(g.value),x.current=g.value),()=>b==null?void 0:b.cancelValue(g.value)},[g.value]);const w=h("checkbox",r),[S,E]=jC(w),I=Object.assign({},g);b&&!d&&(I.onChange=function(){g.onChange&&g.onChange.apply(g,arguments),b.toggleOption&&b.toggleOption({label:i,value:g.value});},I.name=b.name,I.checked=b.value.includes(g.value));const O=V(`${w}-wrapper`,{[`${w}-rtl`]:v==="rtl",[`${w}-wrapper-checked`]:I.checked,[`${w}-wrapper-disabled`]:$,[`${w}-wrapper-in-form-item`]:y},p==null?void 0:p.className,o,a,E),R=V({[`${w}-indeterminate`]:s},Eu,E),P=s?"mixed":void 0;return S(f__namespace.createElement(zs,{component:"Checkbox",disabled:$},f__namespace.createElement("label",{className:O,style:Object.assign(Object.assign({},p==null?void 0:p.style),l),onMouseEnter:c,onMouseLeave:u},f__namespace.createElement(_C,Object.assign({"aria-checked":P},I,{prefixCls:w,className:R,disabled:$,ref:t})),i!==void 0&&f__namespace.createElement("span",null,i))))},LD=f__namespace.forwardRef(kD),FC=LD;var AD=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 zD=(e,t)=>{const{defaultValue:n,children:r,options:o=[],prefixCls:a,className:i,rootClassName:s,style:l,onChange:c}=e,u=AD(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:d,direction:m}=f__namespace.useContext(Je),[g,h]=f__namespace.useState(u.value||n||[]),[v,p]=f__namespace.useState([]);f__namespace.useEffect(()=>{"value"in u&&h(u.value||[]);},[u.value]);const b=f__namespace.useMemo(()=>o.map(k=>typeof k=="string"||typeof k=="number"?{label:k,value:k}:k),[o]),y=k=>{p(L=>L.filter(A=>A!==k));},C=k=>{p(L=>[].concat(Re(L),[k]));},$=k=>{const L=g.indexOf(k.value),A=Re(g);L===-1?A.push(k.value):A.splice(L,1),"value"in u||h(A),c==null||c(A.filter(T=>v.includes(T)).sort((T,M)=>{const _=b.findIndex(F=>F.value===T),D=b.findIndex(F=>F.value===M);return _-D}));},x=d("checkbox",a),w=`${x}-group`,[S,E]=jC(x),I=Ln(u,["value","disabled"]),O=o.length?b.map(k=>f__namespace.createElement(FC,{prefixCls:x,key:k.value.toString(),disabled:"disabled"in k?k.disabled:u.disabled,value:k.value,checked:g.includes(k.value),onChange:k.onChange,className:`${w}-item`,style:k.style,title:k.title,id:k.id},k.label)):r,R={toggleOption:$,value:g,disabled:u.disabled,name:u.name,registerValue:C,cancelValue:y},P=V(w,{[`${w}-rtl`]:m==="rtl"},i,s,E);return S(f__namespace.createElement("div",Object.assign({className:P,style:l},I,{ref:t}),f__namespace.createElement(DC.Provider,{value:R},O)))},DD=f__namespace.forwardRef(zD),jD=f__namespace.memo(DD),th=FC;th.Group=jD;th.__ANT_CHECKBOX=!0;const Iu=th;var FD={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 BD=FD;function HD(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function WD(e,t){bn(e,"[@ant-design/icons] ".concat(t));}function fb(e){return at(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(at(e.icon)==="object"||typeof e.icon=="function")}function mb(){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[HD(n)]=r;}return t},{})}function sm(e,t,n){return n?f.createElement(e.tag,U(U({key:t},mb(e.attrs)),n),(e.children||[]).map(function(r,o){return sm(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):f.createElement(e.tag,U({key:t},mb(e.attrs)),(e.children||[]).map(function(r,o){return sm(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function BC(e){return lo(e)[0]}function HC(e){return e?Array.isArray(e)?e:[e]:[]}var VD=`
.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);
  }
}
`,GD=function(t){var n=f.useContext(Tg),r=n.csp,o=n.prefixCls,a=VD;o&&(a=a.replace(/anticon/g,o)),f.useEffect(function(){var i=t.current,s=ic(i);Ka(a,"@ant-design-icons",{prepend:!0,csp:r,attachTo:s});},[]);},KD=["icon","className","onClick","style","primaryColor","secondaryColor"],Xi={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function UD(e){var t=e.primaryColor,n=e.secondaryColor;Xi.primaryColor=t,Xi.secondaryColor=n||BC(t),Xi.calculated=!!n;}function XD(){return U({},Xi)}var Ou=function(t){var n=t.icon,r=t.className,o=t.onClick,a=t.style,i=t.primaryColor,s=t.secondaryColor,l=Ye(t,KD),c=f__namespace.useRef(),u=Xi;if(i&&(u={primaryColor:i,secondaryColor:s||BC(i)}),GD(c),WD(fb(n),"icon should be icon definiton, but got ".concat(n)),!fb(n))return null;var d=n;return d&&typeof d.icon=="function"&&(d=U(U({},d),{},{icon:d.icon(u.primaryColor,u.secondaryColor)})),sm(d.icon,"svg-".concat(d.name),U(U({className:r,onClick:o,style:a,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};Ou.displayName="IconReact";Ou.getTwoToneColors=XD;Ou.setTwoToneColors=UD;const nh=Ou;function WC(e){var t=HC(e),n=Q(t,2),r=n[0],o=n[1];return nh.setTwoToneColors({primaryColor:r,secondaryColor:o})}function qD(){var e=nh.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var YD=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];WC(CA.primary);var Pu=f__namespace.forwardRef(function(e,t){var n,r=e.className,o=e.icon,a=e.spin,i=e.rotate,s=e.tabIndex,l=e.onClick,c=e.twoToneColor,u=Ye(e,YD),d=f__namespace.useContext(Tg),m=d.prefixCls,g=m===void 0?"anticon":m,h=d.rootClassName,v=V(h,g,(n={},z(n,"".concat(g,"-").concat(o.name),!!o.name),z(n,"".concat(g,"-spin"),!!a||o.name==="loading"),n),r),p=s;p===void 0&&l&&(p=-1);var b=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,y=HC(c),C=Q(y,2),$=C[0],x=C[1];return f__namespace.createElement("span",Ie({role:"img","aria-label":o.name},u,{ref:t,tabIndex:p,onClick:l,className:v}),f__namespace.createElement(nh,{icon:o,primaryColor:$,secondaryColor:x,style:b}))});Pu.displayName="AntdIcon";Pu.getTwoToneColor=qD;Pu.setTwoToneColor=WC;const On=Pu;var QD=function(t,n){return f__namespace.createElement(On,Ie({},t,{ref:n,icon:BD}))};const VC=f__namespace.forwardRef(QD),Ya=e=>e?typeof e=="function"?e():e:null,ZD=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,popoverPadding:a,boxShadowSecondary:i,colorTextHeading:s,borderRadiusLG:l,zIndexPopup:c,marginXS:u,colorBgElevated:d,popoverBg:m}=e;return [{[t]:Object.assign(Object.assign({},zt(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":d,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:m,backgroundClip:"padding-box",borderRadius:l,boxShadow:i,padding:a},[`${t}-title`]:{minWidth:r,marginBottom:u,color:s,fontWeight:o},[`${t}-inner-content`]:{color:n}})},Xg(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},JD=e=>{const{componentCls:t}=e;return {[t]:ls.map(n=>{const r=e[`${n}6`];return {[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},ej=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorSplit:o,paddingSM:a,controlHeight:i,fontSize:s,lineHeight:l,padding:c}=e,u=i-Math.round(s*l),d=u/2,m=u/2-n,g=c;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`}}}},GC=Bt("Popover",e=>{const{colorBgElevated:t,colorText:n,wireframe:r}=e,o=bt(e,{popoverPadding:12,popoverBg:t,popoverColor:n});return [ZD(o),JD(o),r&&ej(o),$u(o,"zoom-big")]},e=>({width:177,minWidth:177,titleMinWidth:177,zIndexPopup:e.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var tj=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 nj=(e,t,n)=>{if(!(!t&&!n))return f__namespace.createElement(f__namespace.Fragment,null,t&&f__namespace.createElement("div",{className:`${e}-title`},Ya(t)),f__namespace.createElement("div",{className:`${e}-inner-content`},Ya(n)))},rj=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:a="top",title:i,content:s,children:l}=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(Vg,Object.assign({},e,{className:t,prefixCls:n}),l||nj(n,i,s)))},oj=e=>{const{prefixCls:t}=e,n=tj(e,["prefixCls"]),{getPrefixCls:r}=f__namespace.useContext(Je),o=r("popover",t),[a,i]=GC(o);return a(f__namespace.createElement(rj,Object.assign({},n,{prefixCls:o,hashId:i})))},KC=oj;var aj=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 ij=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`},Ya(t)),f__namespace.createElement("div",{className:`${r}-inner-content`},Ya(n)))},UC=f__namespace.forwardRef((e,t)=>{const{prefixCls:n,title:r,content:o,overlayClassName:a,placement:i="top",trigger:s="hover",mouseEnterDelay:l=.1,mouseLeaveDelay:c=.1,overlayStyle:u={}}=e,d=aj(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:m}=f__namespace.useContext(Je),g=m("popover",n),[h,v]=GC(g),p=m(),b=V(a,v);return h(f__namespace.createElement(Ls,Object.assign({placement:i,trigger:s,mouseEnterDelay:l,mouseLeaveDelay:c,overlayStyle:u},d,{prefixCls:g,overlayClassName:b,ref:t,overlay:r||o?f__namespace.createElement(ij,{prefixCls:g,title:r,content:o}):null,transitionName:Cu(p,"zoom-big",d.transitionName),"data-popover-inject":!0})))});UC._InternalPanelDoNotUseOrYouWillBeFired=KC;const Mu=UC;var sj=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const XC=f__namespace.createContext(void 0),lj=e=>{const{getPrefixCls:t,direction:n}=f__namespace.useContext(Je),{prefixCls:r,size:o,className:a}=e,i=sj(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=Un();let c="";switch(o){case"large":c="lg";break;case"small":c="sm";break}const u=V(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:n==="rtl"},a,l);return f__namespace.createElement(XC.Provider,{value:o},f__namespace.createElement("div",Object.assign({},i,{className:u})))},cj=lj,gb=/^[\u4e00-\u9fa5]{2}$/,lm=gb.test.bind(gb);function qC(e){return e==="danger"?{danger:!0}:{type:e}}function hb(e){return typeof e=="string"}function zd(e){return e==="text"||e==="link"}function uj(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&hb(e.type)&&lm(e.props.children)?Bn(e,{children:e.props.children.split("").join(n)}):hb(e)?lm(e)?f.createElement("span",null,e.split("").join(n)):f.createElement("span",null,e):wC(e)?f.createElement("span",null,e):e}function dj(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,l=r[s];r[s]=`${l}${o}`;}else r.push(o);n=i;}),f.Children.map(r,o=>uj(o,t))}const fj=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)}),YC=fj;var mj={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 gj=mj;var hj=function(t,n){return f__namespace.createElement(On,Ie({},t,{ref:n,icon:gj}))};const rh=f__namespace.forwardRef(hj),vb=f.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:o,iconClassName:a}=e;const i=V(`${n}-loading-icon`,r);return f.createElement(YC,{prefixCls:n,className:i,style:o,ref:t},f.createElement(rh,{className:a}))}),Dd=()=>({width:0,opacity:0,transform:"scale(0)"}),jd=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),vj=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:a}=e,i=!!n;return r?f.createElement(vb,{prefixCls:t,className:o,style:a}):f.createElement(mo,{visible:i,motionName:`${t}-loading-icon-motion`,motionLeave:i,removeOnLeave:!0,onAppearStart:Dd,onAppearActive:jd,onEnterStart:Dd,onEnterActive:jd,onLeaveStart:jd,onLeaveActive:Dd},(s,l)=>{let{className:c,style:u}=s;return f.createElement(vb,{prefixCls:t,className:o,style:Object.assign(Object.assign({},a),u),ref:l,iconClassName:c})})},pj=vj,pb=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),bj=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}},pb(`${t}-primary`,o),pb(`${t}-danger`,a)]}},yj=bj,Cj=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({},Zo(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}}),Sj=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),$j=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),wj=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),fs=(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}})}),oh=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},wj(e))}),QC=e=>Object.assign({},oh(e)),uc=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),ZC=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},QC(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})),fs(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})),fs(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),oh(e))}),xj=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},QC(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})),fs(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})),fs(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),oh(e))}),Ej=e=>Object.assign(Object.assign({},ZC(e)),{borderStyle:"dashed"}),Ij=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},uo(e.componentCls,{color:e.colorLinkHover,backgroundColor:e.linkHoverBg},{color:e.colorLinkActive})),uc(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},uo(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),uc(e))}),Oj=e=>Object.assign(Object.assign(Object.assign({},uo(e.componentCls,{color:e.colorText,backgroundColor:e.textHoverBg},{color:e.colorText,backgroundColor:e.colorBgTextActive})),uc(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},uc(e)),uo(e.componentCls,{color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),Pj=e=>{const{componentCls:t}=e;return {[`${t}-default`]:ZC(e),[`${t}-primary`]:xj(e),[`${t}-dashed`]:Ej(e),[`${t}-link`]:Ij(e),[`${t}-text`]:Oj(e),[`${t}-ghost`]:fs(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},ah=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,lineHeight:a,lineWidth:i,borderRadius:s,buttonPaddingHorizontal:l,iconCls:c}=e,u=Math.max(0,(r-o*a)/2-i),d=`${n}-icon-only`;return [{[`${n}${t}`]:{fontSize:o,height:r,padding:`${u}px ${l}px`,borderRadius:s,[`&${d}`]:{width:r,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},[c]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:Sj(e)},{[`${n}${n}-round${t}`]:$j(e)}]},Mj=e=>ah(bt(e,{fontSize:e.contentFontSize})),Rj=e=>{const t=bt(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return ah(t,`${e.componentCls}-sm`)},_j=e=>{const t=bt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return ah(t,`${e.componentCls}-lg`)},Tj=e=>{const{componentCls:t}=e;return {[t]:{[`&${t}-block`]:{width:"100%"}}}},JC=e=>{const{paddingInline:t,onlyIconSize:n}=e;return bt(e,{buttonPaddingHorizontal:t,buttonIconOnlyFontSize:n})},eS=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}),Nj=Bt("Button",e=>{const t=JC(e);return [Cj(t),Rj(t),Mj(t),_j(t),Tj(t),Pj(t),yj(t)]},eS);function kj(e,t,n){const{focusElCls:r,focus:o,borderElCls:a}=n,i=a?"> *":"",s=["hover",o?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${i}`).join(",");return {[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${i}`]:{zIndex:0}})}}function Lj(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return {[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Ru(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return {[r]:Object.assign(Object.assign({},kj(e,r,t)),Lj(n,r,t))}}function Aj(e,t){return {[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function zj(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 Dj(e){const t=`${e.componentCls}-compact-vertical`;return {[t]:Object.assign(Object.assign({},Aj(e,t)),zj(e.componentCls,t))}}const jj=Fg(["Button","compact"],e=>{const t=JC(e);return [Ru(t),Dj(t)]},eS);var Fj=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 Bj(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 Hj=(e,t)=>{var n,r;const{loading:o=!1,prefixCls:a,type:i="default",danger:s,shape:l="default",size:c,styles:u,disabled:d,className:m,rootClassName:g,children:h,icon:v,ghost:p=!1,block:b=!1,htmlType:y="button",classNames:C,style:$={}}=e,x=Fj(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:w,autoInsertSpaceInButton:S,direction:E,button:I}=f.useContext(Je),O=w("btn",a),[R,P]=Nj(O),k=f.useContext(Yr),L=d??k,A=f.useContext(XC),T=f.useMemo(()=>Bj(o),[o]),[M,_]=f.useState(T.loading),[D,F]=f.useState(!1),B=Wn(t,f.createRef()),W=f.Children.count(h)===1&&!v&&!zd(i);f.useEffect(()=>{let ie=null;T.delay>0?ie=setTimeout(()=>{ie=null,_(!0);},T.delay):_(T.loading);function ge(){ie&&(clearTimeout(ie),ie=null);}return ge},[T]),f.useEffect(()=>{if(!B||!B.current||S===!1)return;const ie=B.current.textContent;W&&lm(ie)?D||F(!0):D&&F(!1);},[B]);const K=ie=>{const{onClick:ge}=e;if(M||L){ie.preventDefault();return}ge==null||ge(ie);},X=S!==!1,{compactSize:q,compactItemClassnames:ne}=yi(O,E),G={large:"lg",small:"sm",middle:void 0},ee=Xn(ie=>{var ge,be;return (be=(ge=c??q)!==null&&ge!==void 0?ge:A)!==null&&be!==void 0?be:ie}),Y=ee&&G[ee]||"",ue=M?"loading":v,le=Ln(x,["navigate"]),Z=V(O,P,{[`${O}-${l}`]:l!=="default"&&l,[`${O}-${i}`]:i,[`${O}-${Y}`]:Y,[`${O}-icon-only`]:!h&&h!==0&&!!ue,[`${O}-background-ghost`]:p&&!zd(i),[`${O}-loading`]:M,[`${O}-two-chinese-chars`]:D&&X&&!M,[`${O}-block`]:b,[`${O}-dangerous`]:!!s,[`${O}-rtl`]:E==="rtl"},ne,m,g,I==null?void 0:I.className),oe=Object.assign(Object.assign({},I==null?void 0:I.style),$),fe=V(C==null?void 0:C.icon,(n=I==null?void 0:I.classNames)===null||n===void 0?void 0:n.icon),J=Object.assign(Object.assign({},(u==null?void 0:u.icon)||{}),((r=I==null?void 0:I.styles)===null||r===void 0?void 0:r.icon)||{}),se=v&&!M?f.createElement(YC,{prefixCls:O,className:fe,style:J},v):f.createElement(pj,{existIcon:!!v,prefixCls:O,loading:!!M}),me=h||h===0?dj(h,W&&X):null;if(le.href!==void 0)return R(f.createElement("a",Object.assign({},le,{className:V(Z,{[`${O}-disabled`]:L}),style:oe,onClick:K,ref:B}),se,me));let re=f.createElement("button",Object.assign({},x,{type:y,className:Z,style:oe,onClick:K,disabled:L,ref:B}),se,me,ne&&f.createElement(jj,{key:"compact",prefixCls:O}));return zd(i)||(re=f.createElement(zs,{component:"Button",disabled:!!M},re)),R(re)},ih=f.forwardRef(Hj);ih.Group=cj;ih.__ANT_BUTTON=!0;const qt=ih;function bb(e){return !!(e&&e.then)}const Wj=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:a,autoFocus:i,emitEvent:s,isSilent:l,quitOnNullishReturnValue:c,actionFn:u}=e,d=f__namespace.useRef(!1),m=f__namespace.useRef(null),[g,h]=Go(!1),v=function(){a==null||a.apply(void 0,arguments);};f__namespace.useEffect(()=>{let y=null;return i&&(y=setTimeout(()=>{var C;(C=m.current)===null||C===void 0||C.focus();})),()=>{y&&clearTimeout(y);}},[]);const p=y=>{bb(y)&&(h(!0),y.then(function(){h(!1,!0),v.apply(void 0,arguments),d.current=!1;},C=>{if(h(!1,!0),d.current=!1,!(l!=null&&l()))return Promise.reject(C)}));},b=y=>{if(d.current)return;if(d.current=!0,!u){v();return}let C;if(s){if(C=u(y),c&&!bb(C)){d.current=!1,v(y);return}}else if(u.length)C=u(a),d.current=!1;else if(C=u(),!C){v();return}p(C);};return f__namespace.createElement(qt,Object.assign({},qC(t),{onClick:b,loading:g,prefixCls:r},o,{ref:m}),n)},Vj=Wj,Gj=e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:o,colorText:a,colorWarning:i,marginXXS:s,marginXS:l,fontSize:c,fontWeightStrong:u,colorTextHeading:d}=e;return {[t]:{zIndex:o,[`&${r}-popover`]:{fontSize:c},[`${t}-message`]:{marginBottom:l,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:i,fontSize:c,lineHeight:1,marginInlineEnd:l},[`${t}-title`]:{fontWeight:u,color:d,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:s,color:a}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:l}}}}},tS=Bt("Popconfirm",e=>Gj(e),e=>{const{zIndexPopupBase:t}=e;return {zIndexPopup:t+60}},{resetStyle:!1});var Kj=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const nS=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:o,description:a,cancelText:i,okText:s,okType:l="primary",icon:c=f__namespace.createElement(VC,null),showCancel:u=!0,close:d,onConfirm:m,onCancel:g,onPopupClick:h}=e,{getPrefixCls:v}=f__namespace.useContext(Je),[p]=pi("Popconfirm",so.Popconfirm),b=Ya(o),y=Ya(a);return f__namespace.createElement("div",{className:`${t}-inner-content`,onClick:h},f__namespace.createElement("div",{className:`${t}-message`},c&&f__namespace.createElement("span",{className:`${t}-message-icon`},c),f__namespace.createElement("div",{className:`${t}-message-text`},b&&f__namespace.createElement("div",{className:V(`${t}-title`)},b),y&&f__namespace.createElement("div",{className:`${t}-description`},y))),f__namespace.createElement("div",{className:`${t}-buttons`},u&&f__namespace.createElement(qt,Object.assign({onClick:g,size:"small"},r),i??(p==null?void 0:p.cancelText)),f__namespace.createElement(Vj,{buttonProps:Object.assign(Object.assign({size:"small"},qC(l)),n),actionFn:m,close:d,prefixCls:v("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s??(p==null?void 0:p.okText))))},Uj=e=>{const{prefixCls:t,placement:n,className:r,style:o}=e,a=Kj(e,["prefixCls","placement","className","style"]),{getPrefixCls:i}=f__namespace.useContext(Je),s=i("popconfirm",t),[l]=tS(s);return l(f__namespace.createElement(KC,{placement:n,className:V(s,r),style:o,content:f__namespace.createElement(nS,Object.assign({prefixCls:s},a))}))},Xj=Uj;var qj=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 rS=f__namespace.forwardRef((e,t)=>{var n,r;const{prefixCls:o,placement:a="top",trigger:i="click",okType:s="primary",icon:l=f__namespace.createElement(VC,null),children:c,overlayClassName:u,onOpenChange:d,onVisibleChange:m}=e,g=qj(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:h}=f__namespace.useContext(Je),[v,p]=Vt(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),b=(O,R)=>{p(O,!0),m==null||m(O),d==null||d(O,R);},y=O=>{b(!1,O);},C=O=>{var R;return (R=e.onConfirm)===null||R===void 0?void 0:R.call(globalThis,O)},$=O=>{var R;b(!1,O),(R=e.onCancel)===null||R===void 0||R.call(globalThis,O);},x=O=>{O.keyCode===de.ESC&&v&&b(!1,O);},w=O=>{const{disabled:R=!1}=e;R||b(O);},S=h("popconfirm",o),E=V(S,u),[I]=tS(S);return I(f__namespace.createElement(Mu,Object.assign({},Ln(g,["title"]),{trigger:i,placement:a,onOpenChange:w,open:v,ref:t,overlayClassName:E,content:f__namespace.createElement(nS,Object.assign({okType:s,icon:l},e,{prefixCls:S,close:y,onConfirm:C,onCancel:$})),"data-popover-inject":!0}),Bn(c,{onKeyDown:O=>{var R,P;f__namespace.isValidElement(c)&&((P=c==null?void 0:(R=c.props).onKeyDown)===null||P===void 0||P.call(R,O)),x(O);}})))});rS._InternalPanelDoNotUseOrYouWillBeFired=Xj;const yb=rS;function Cb(e){return ["small","middle","large"].includes(e)}function Sb(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const oS=f.createContext({latestIndex:0}),Yj=oS.Provider,Qj=e=>{let{className:t,index:n,children:r,split:o,style:a}=e;const{latestIndex:i}=f__namespace.useContext(oS);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))},Zj=Qj;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 e8=f__namespace.forwardRef((e,t)=>{var n,r;const{getPrefixCls:o,space:a,direction:i}=f__namespace.useContext(Je),{size:s=(a==null?void 0:a.size)||"small",align:l,className:c,rootClassName:u,children:d,direction:m="horizontal",prefixCls:g,split:h,style:v,wrap:p=!1,classNames:b,styles:y}=e,C=Jj(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[$,x]=Array.isArray(s)?s:[s,s],w=Cb(x),S=Cb($),E=Sb(x),I=Sb($),O=or(d,{keepEmpty:!0}),R=l===void 0&&m==="horizontal"?"center":l,P=o("space",g),[k,L]=xC(P),A=V(P,a==null?void 0:a.className,L,`${P}-${m}`,{[`${P}-rtl`]:i==="rtl",[`${P}-align-${R}`]:R,[`${P}-gap-row-${x}`]:w,[`${P}-gap-col-${$}`]:S},c,u),T=V(`${P}-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 _=O.map((H,B)=>{var W,K;H!=null&&(M=B);const X=H&&H.key||`${T}-${B}`;return f__namespace.createElement(Zj,{className:T,key:X,index:B,split:h,style:(W=y==null?void 0:y.item)!==null&&W!==void 0?W:(K=a==null?void 0:a.styles)===null||K===void 0?void 0:K.item},H)}),D=f__namespace.useMemo(()=>({latestIndex:M}),[M]);if(O.length===0)return null;const F={};return p&&(F.flexWrap="wrap"),!S&&I&&(F.columnGap=$),!w&&E&&(F.rowGap=x),k(f__namespace.createElement("div",Object.assign({ref:t,className:A,style:Object.assign(Object.assign(Object.assign({},F),a==null?void 0:a.style),v)},C),f__namespace.createElement(Yj,{value:D},_)))}),aS=e8;aS.Compact=w6;const Fs=aS;var t8={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 n8=t8;var r8=function(t,n){return f__namespace.createElement(On,Ie({},t,{ref:n,icon:n8}))};const _u=f__namespace.forwardRef(r8);function o8(e,t,n){return typeof e=="boolean"?e:t===void 0?!!n:t!==!1&&t!==null}function a8(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:f.createElement(_u,null),o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(!o8(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 i8=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o}=e,a=r-n,i=t-n;return {[o]:Object.assign(Object.assign({},zt(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}}},sh=e=>{const{lineWidth:t,fontSizeIcon:n}=e,r=e.fontSizeSM,o=`${e.lineHeightSM*r}px`;return bt(e,{tagFontSize:r,tagLineHeight:o,tagIconSize:n-2*t,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary})},lh=e=>({defaultBg:new Yt(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),iS=Bt("Tag",e=>{const t=sh(e);return i8(t)},lh);var s8=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 l8=f__namespace.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:o,checked:a,onChange:i,onClick:s}=e,l=s8(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:c,tag:u}=f__namespace.useContext(Je),d=p=>{i==null||i(!a),s==null||s(p);},m=c("tag",n),[g,h]=iS(m),v=V(m,`${m}-checkable`,{[`${m}-checkable-checked`]:a},u==null?void 0:u.className,o,h);return g(f__namespace.createElement("span",Object.assign({},l,{ref:t,style:Object.assign(Object.assign({},r),u==null?void 0:u.style),className:v,onClick:d})))}),c8=l8,u8=e=>pu(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"}}}}),d8=Fg(["Tag","preset"],e=>{const t=sh(e);return u8(t)},lh);function f8(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const $l=(e,t,n)=>{const r=f8(n);return {[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},m8=Fg(["Tag","status"],e=>{const t=sh(e);return [$l(t,"success","Success"),$l(t,"processing","Info"),$l(t,"error","Error"),$l(t,"warning","Warning")]},lh);var g8=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 h8=(e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:a,children:i,icon:s,color:l,onClose:c,closeIcon:u,closable:d,bordered:m=!0}=e,g=g8(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:h,direction:v,tag:p}=f__namespace.useContext(Je),[b,y]=f__namespace.useState(!0);f__namespace.useEffect(()=>{"visible"in g&&y(g.visible);},[g.visible]);const C=wu(l),$=tz(l),x=C||$,w=Object.assign(Object.assign({backgroundColor:l&&!x?l:void 0},p==null?void 0:p.style),a),S=h("tag",n),[E,I]=iS(S),O=V(S,p==null?void 0:p.className,{[`${S}-${l}`]:x,[`${S}-has-color`]:l&&!x,[`${S}-hidden`]:!b,[`${S}-rtl`]:v==="rtl",[`${S}-borderless`]:!m},r,o,I),R=M=>{M.stopPropagation(),c==null||c(M),!M.defaultPrevented&&y(!1);},[,P]=a8(d,u,M=>M===null?f__namespace.createElement(_u,{className:`${S}-close-icon`,onClick:R}):f__namespace.createElement("span",{className:`${S}-close-icon`,onClick:R},M),null,!1),k=typeof g.onClick=="function"||i&&i.type==="a",L=s||null,A=L?f__namespace.createElement(f__namespace.Fragment,null,L,i&&f__namespace.createElement("span",null,i)):i,T=f__namespace.createElement("span",Object.assign({},g,{ref:t,className:O,style:w}),A,P,C&&f__namespace.createElement(d8,{key:"preset",prefixCls:S}),$&&f__namespace.createElement(m8,{key:"status",prefixCls:S}));return E(k?f__namespace.createElement(zs,{component:"Tag"},T):T)},sS=f__namespace.forwardRef(h8);sS.CheckableTag=c8;const yo=sS;var v8={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 p8=v8;var b8=function(t,n){return f__namespace.createElement(On,Ie({},t,{ref:n,icon:p8}))};const ch=f__namespace.forwardRef(b8);var y8={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 C8=y8;var S8=function(t,n){return f__namespace.createElement(On,Ie({},t,{ref:n,icon:C8}))};const $8=f__namespace.forwardRef(S8);function cm(){return typeof BigInt=="function"}function Xo(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 uh(e){var t=String(e);return !Number.isNaN(Number(t))&&t.includes("e")}function ms(e){var t=String(e);if(uh(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(".")&&dh(t)?t.length-t.indexOf(".")-1:0}function Tu(e){var t=String(e);if(uh(e)){if(e>Number.MAX_SAFE_INTEGER)return String(cm()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(cm()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(ms(t));}return Xo(t).fullStr}function dh(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 lS(e){return !e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}var w8=function(){function e(t){if(Cn(this,e),z(this,"origin",""),z(this,"number",void 0),z(this,"empty",void 0),lS(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t);}return Sn(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var o=this.number+r;if(o>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var a=Math.max(ms(this.number),ms(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()?"":Tu(this.number):this.origin}}]),e}(),x8=function(){function e(t){if(Cn(this,e),z(this,"origin",""),z(this,"negative",void 0),z(this,"integer",void 0),z(this,"decimal",void 0),z(this,"decimalLen",void 0),z(this,"empty",void 0),z(this,"nan",void 0),lS(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(uh(n)&&(n=Number(n)),n=typeof n=="string"?n:Tu(n),dh(n)){var r=Xo(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 Sn(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(n){var r="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(n,"0"));return BigInt(r)}},{key:"negate",value:function(){var n=new e(this.toString());return n.negative=!n.negative,n}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=new e(n);if(r.isInvalidate())return this;var o=Math.max(this.getDecimalStr().length,r.getDecimalStr().length),a=this.alignDecimal(o),i=r.alignDecimal(o),s=(a+i).toString(),l=Xo(s),c=l.negativeStr,u=l.trimStr,d="".concat(c).concat(u.padStart(o+1,"0"));return new e("".concat(d.slice(0,-o),".").concat(d.slice(-o)))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toString()===(n==null?void 0:n.toString())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Xo("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}();function Er(e){return cm()?new x8(e):new w8(e)}function jl(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return "";var o=Xo(e),a=o.negativeStr,i=o.integerStr,s=o.decimalStr,l="".concat(t).concat(s),c="".concat(a).concat(i);if(n>=0){var u=Number(s[n]);if(u>=5&&!r){var d=Er(e).add("".concat(a,"0.").concat("0".repeat(n)).concat(10-u));return jl(d.toString(),t,n,r)}return n===0?c:"".concat(c).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return l===".0"?c:"".concat(c).concat(l)}function ba(e){return !!(e.addonBefore||e.addonAfter)}function Fd(e){return !!(e.prefix||e.suffix||e.allowClear)}function dc(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 cS(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var o=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o);}}}}var fh=function(t){var n,r,o=t.inputElement,a=t.prefixCls,i=t.prefix,s=t.suffix,l=t.addonBefore,c=t.addonAfter,u=t.className,d=t.style,m=t.disabled,g=t.readOnly,h=t.focused,v=t.triggerFocus,p=t.allowClear,b=t.value,y=t.handleReset,C=t.hidden,$=t.classes,x=t.classNames,w=t.dataAttrs,S=t.styles,E=t.components,I=(E==null?void 0:E.affixWrapper)||"span",O=(E==null?void 0:E.groupWrapper)||"span",R=(E==null?void 0:E.wrapper)||"span",P=(E==null?void 0:E.groupAddon)||"span",k=f.useRef(null),L=function(q){var ne;(ne=k.current)!==null&&ne!==void 0&&ne.contains(q.target)&&(v==null||v());},A=function(){var q;if(!p)return null;var ne=!m&&!g&&b,G="".concat(a,"-clear-icon"),ee=at(p)==="object"&&p!==null&&p!==void 0&&p.clearIcon?p.clearIcon:"✖";return f.createElement("span",{onClick:y,onMouseDown:function(ue){return ue.preventDefault()},className:V(G,(q={},z(q,"".concat(G,"-hidden"),!ne),z(q,"".concat(G,"-has-suffix"),!!s),q)),role:"button",tabIndex:-1},ee)},T=f.cloneElement(o,{value:b,hidden:C,className:V((n=o.props)===null||n===void 0?void 0:n.className,!Fd(t)&&!ba(t)&&u)||null,style:U(U({},(r=o.props)===null||r===void 0?void 0:r.style),!Fd(t)&&!ba(t)?d:{})});if(Fd(t)){var M,_="".concat(a,"-affix-wrapper"),D=V(_,(M={},z(M,"".concat(_,"-disabled"),m),z(M,"".concat(_,"-focused"),h),z(M,"".concat(_,"-readonly"),g),z(M,"".concat(_,"-input-with-clear-btn"),s&&p&&b),M),!ba(t)&&u,$==null?void 0:$.affixWrapper,x==null?void 0:x.affixWrapper),F=(s||p)&&f.createElement("span",{className:V("".concat(a,"-suffix"),x==null?void 0:x.suffix),style:S==null?void 0:S.suffix},A(),s);T=f.createElement(I,Ie({className:D,style:U(U({},ba(t)?void 0:d),S==null?void 0:S.affixWrapper),hidden:!ba(t)&&C,onClick:L},w==null?void 0:w.affixWrapper,{ref:k}),i&&f.createElement("span",{className:V("".concat(a,"-prefix"),x==null?void 0:x.prefix),style:S==null?void 0:S.prefix},i),f.cloneElement(o,{value:b,hidden:null}),F);}if(ba(t)){var H="".concat(a,"-group"),B="".concat(H,"-addon"),W=V("".concat(a,"-wrapper"),H,$==null?void 0:$.wrapper),K=V("".concat(a,"-group-wrapper"),u,$==null?void 0:$.group);return f.createElement(O,{className:K,style:d,hidden:C},f.createElement(R,{className:W},l&&f.createElement(P,{className:B},l),f.cloneElement(T,{hidden:null}),c&&f.createElement(P,{className:B},c)))}return T},E8=["show"];function uS(e,t){return f__namespace.useMemo(function(){var n={};t&&(n.show=at(t)==="object"&&t.formatter?t.formatter:!!t),n=U(U({},n),e);var r=n,o=r.show,a=Ye(r,E8);return U(U({},a),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:a.strategy||function(i){return i.length}})},[e,t])}var I8=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],O8=f.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,a=e.onBlur,i=e.onPressEnter,s=e.onKeyDown,l=e.prefixCls,c=l===void 0?"rc-input":l,u=e.disabled,d=e.htmlSize,m=e.className,g=e.maxLength,h=e.suffix,v=e.showCount,p=e.count,b=e.type,y=b===void 0?"text":b,C=e.classes,$=e.classNames,x=e.styles,w=e.onCompositionStart,S=e.onCompositionEnd,E=Ye(e,I8),I=f.useState(!1),O=Q(I,2),R=O[0],P=O[1],k=f.useRef(!1),L=f.useRef(null),A=function(ie){L.current&&cS(L.current,ie);},T=Vt(e.defaultValue,{value:e.value}),M=Q(T,2),_=M[0],D=M[1],F=_==null?"":String(_),H=f.useState(null),B=Q(H,2),W=B[0],K=B[1],X=uS(p,v),q=X.max||g,ne=X.strategy(F),G=!!q&&ne>q;f.useImperativeHandle(t,function(){return {focus:A,blur:function(){var ie;(ie=L.current)===null||ie===void 0||ie.blur();},setSelectionRange:function(ie,ge,be){var Te;(Te=L.current)===null||Te===void 0||Te.setSelectionRange(ie,ge,be);},select:function(){var ie;(ie=L.current)===null||ie===void 0||ie.select();},input:L.current}}),f.useEffect(function(){P(function(re){return re&&u?!1:re});},[u]);var ee=function(ie,ge){var be=ge;if(!k.current&&X.exceedFormatter&&X.max&&X.strategy(ge)>X.max&&(be=X.exceedFormatter(ge,{max:X.max}),ge!==be)){var Te,Ae;K([((Te=L.current)===null||Te===void 0?void 0:Te.selectionStart)||0,((Ae=L.current)===null||Ae===void 0?void 0:Ae.selectionEnd)||0]);}D(be),L.current&&dc(L.current,ie,r,be);};f.useEffect(function(){if(W){var re;(re=L.current)===null||re===void 0||re.setSelectionRange.apply(re,Re(W));}},[W]);var Y=function(ie){ee(ie,ie.target.value);},ue=function(ie){k.current=!1,ee(ie,ie.currentTarget.value),S==null||S(ie);},le=function(ie){i&&ie.key==="Enter"&&i(ie),s==null||s(ie);},Z=function(ie){P(!0),o==null||o(ie);},oe=function(ie){P(!1),a==null||a(ie);},fe=function(ie){D(""),A(),L.current&&dc(L.current,ie,r);},J=G&&"".concat(c,"-out-of-range"),se=function(){var ie=Ln(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames"]);return f.createElement("input",Ie({autoComplete:n},ie,{onChange:Y,onFocus:Z,onBlur:oe,onKeyDown:le,className:V(c,z({},"".concat(c,"-disabled"),u),$==null?void 0:$.input),style:x==null?void 0:x.input,ref:L,size:d,type:y,onCompositionStart:function(be){k.current=!0,w==null||w(be);},onCompositionEnd:ue}))},me=function(){var ie=Number(q)>0;if(h||X.show){var ge=X.showFormatter?X.showFormatter({value:F,count:ne,maxLength:q}):"".concat(ne).concat(ie?" / ".concat(q):"");return f.createElement(f.Fragment,null,X.show&&f.createElement("span",{className:V("".concat(c,"-show-count-suffix"),z({},"".concat(c,"-show-count-has-suffix"),!!h),$==null?void 0:$.count),style:U({},x==null?void 0:x.count)},ge),h)}return null};return f.createElement(fh,Ie({},E,{prefixCls:c,className:V(m,J),inputElement:se(),handleReset:fe,value:F,focused:R,triggerFocus:A,suffix:me(),disabled:u,classes:C,classNames:$,styles:x}))});function P8(e,t){var n=f.useRef(null);function r(){try{var a=e.selectionStart,i=e.selectionEnd,s=e.value,l=s.substring(0,a),c=s.substring(i);n.current={start:a,end:i,value:s,beforeTxt:l,afterTxt:c};}catch{}}function o(){if(e&&n.current&&t)try{var a=e.value,i=n.current,s=i.beforeTxt,l=i.afterTxt,c=i.start,u=a.length;if(a.endsWith(l))u=a.length-n.current.afterTxt.length;else if(a.startsWith(s))u=s.length;else {var d=s[c-1],m=a.indexOf(d,c-1);m!==-1&&(u=m+1);}e.setSelectionRange(u,u);}catch(g){bn(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(g.message));}}return [r,o]}var M8=function(){var t=f.useState(!1),n=Q(t,2),r=n[0],o=n[1];return Wt(function(){o(bu());},[]),r},R8=200,_8=600;function T8(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,o=e.upDisabled,a=e.downDisabled,i=e.onStep,s=f__namespace.useRef(),l=f__namespace.useRef([]),c=f__namespace.useRef();c.current=i;var u=function(){clearTimeout(s.current);},d=function(C,$){C.preventDefault(),u(),c.current($);function x(){c.current($),s.current=setTimeout(x,R8);}s.current=setTimeout(x,_8);};f__namespace.useEffect(function(){return function(){u(),l.current.forEach(function(y){return Et.cancel(y)});}},[]);var m=M8();if(m)return null;var g="".concat(t,"-handler"),h=V(g,"".concat(g,"-up"),z({},"".concat(g,"-up-disabled"),o)),v=V(g,"".concat(g,"-down"),z({},"".concat(g,"-down-disabled"),a)),p=function(){return l.current.push(Et(u))},b={unselectable:"on",role:"button",onMouseUp:p,onMouseLeave:p};return f__namespace.createElement("div",{className:"".concat(g,"-wrap")},f__namespace.createElement("span",Ie({},b,{onMouseDown:function(C){d(C,!0);},"aria-label":"Increase Value","aria-disabled":o,className:h}),n||f__namespace.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),f__namespace.createElement("span",Ie({},b,{onMouseDown:function(C){d(C,!1);},"aria-label":"Decrease Value","aria-disabled":a,className:v}),r||f__namespace.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function $b(e){var t=typeof e=="number"?Tu(e):Xo(e).fullStr,n=t.includes(".");return n?Xo(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const N8=function(){var e=f.useRef(0),t=function(){Et.cancel(e.current);};return f.useEffect(function(){return t},[]),function(n){t(),e.current=Et(function(){n();});}};var k8=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur"],L8=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],wb=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},xb=function(t){var n=Er(t);return n.isInvalidate()?null:n},A8=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,l=e.max,c=e.step,u=c===void 0?1:c,d=e.defaultValue,m=e.value,g=e.disabled,h=e.readOnly,v=e.upHandler,p=e.downHandler,b=e.keyboard,y=e.controls,C=y===void 0?!0:y,$=e.classNames,x=e.stringMode,w=e.parser,S=e.formatter,E=e.precision,I=e.decimalSeparator,O=e.onChange,R=e.onInput,P=e.onPressEnter,k=e.onStep,L=e.changeOnBlur,A=L===void 0?!0:L,T=Ye(e,k8),M="".concat(o,"-input"),_=f__namespace.useRef(null),D=f__namespace.useState(!1),F=Q(D,2),H=F[0],B=F[1],W=f__namespace.useRef(!1),K=f__namespace.useRef(!1),X=f__namespace.useRef(!1),q=f__namespace.useState(function(){return Er(m??d)}),ne=Q(q,2),G=ne[0],ee=ne[1];function Y(Me){m===void 0&&ee(Me);}var ue=f__namespace.useCallback(function(Me,_e){if(!_e)return E>=0?E:Math.max(ms(Me),ms(u))},[E,u]),le=f__namespace.useCallback(function(Me){var _e=String(Me);if(w)return w(_e);var Ne=_e;return I&&(Ne=Ne.replace(I,".")),Ne.replace(/[^\w.-]+/g,"")},[w,I]),Z=f__namespace.useRef(""),oe=f__namespace.useCallback(function(Me,_e){if(S)return S(Me,{userTyping:_e,input:String(Z.current)});var Ne=typeof Me=="number"?Tu(Me):Me;if(!_e){var ve=ue(Ne,_e);if(dh(Ne)&&(I||ve>=0)){var De=I||".";Ne=jl(Ne,De,ve);}}return Ne},[S,ue,I]),fe=f__namespace.useState(function(){var Me=d??m;return G.isInvalidate()&&["string","number"].includes(at(Me))?Number.isNaN(Me)?"":Me:oe(G.toString(),!1)}),J=Q(fe,2),se=J[0],me=J[1];Z.current=se;function re(Me,_e){me(oe(Me.isInvalidate()?Me.toString(!1):Me.toString(!_e),_e));}var ie=f__namespace.useMemo(function(){return xb(l)},[l,E]),ge=f__namespace.useMemo(function(){return xb(s)},[s,E]),be=f__namespace.useMemo(function(){return !ie||!G||G.isInvalidate()?!1:ie.lessEquals(G)},[ie,G]),Te=f__namespace.useMemo(function(){return !ge||!G||G.isInvalidate()?!1:G.lessEquals(ge)},[ge,G]),Ae=P8(_.current,H),Ve=Q(Ae,2),Oe=Ve[0],je=Ve[1],Qe=function(_e){return ie&&!_e.lessEquals(ie)?ie:ge&&!ge.lessEquals(_e)?ge:null},Be=function(_e){return !Qe(_e)},Pe=function(_e,Ne){var ve=_e,De=Be(ve)||ve.isEmpty();if(!ve.isEmpty()&&!Ne&&(ve=Qe(ve)||ve,De=!0),!h&&!g&&De){var xe=ve.toString(),ae=ue(xe,Ne);return ae>=0&&(ve=Er(jl(xe,".",ae)),Be(ve)||(ve=Er(jl(xe,".",ae,!0)))),ve.equals(G)||(Y(ve),O==null||O(ve.isEmpty()?null:wb(x,ve)),m===void 0&&re(ve,Ne)),ve}return G},we=N8(),Ge=function Me(_e){if(Oe(),Z.current=_e,me(_e),!K.current){var Ne=le(_e),ve=Er(Ne);ve.isNaN()||Pe(ve,!0);}R==null||R(_e),we(function(){var De=_e;w||(De=_e.replace(/。/g,".")),De!==_e&&Me(De);});},nt=function(){K.current=!0;},ft=function(){K.current=!1,Ge(_.current.value);},et=function(_e){Ge(_e.target.value);},Xe=function(_e){var Ne;if(!(_e&&be||!_e&&Te)){W.current=!1;var ve=Er(X.current?$b(u):u);_e||(ve=ve.negate());var De=(G||Er(0)).add(ve.toString()),xe=Pe(De,!1);k==null||k(wb(x,xe),{offset:X.current?$b(u):u,type:_e?"up":"down"}),(Ne=_.current)===null||Ne===void 0||Ne.focus();}},gt=function(_e){var Ne=Er(le(se)),ve=Ne;Ne.isNaN()?ve=Pe(G,_e):ve=Pe(Ne,_e),m!==void 0?re(G,!1):ve.isNaN()||re(ve,!1);},pt=function(){W.current=!0;},ut=function(_e){var Ne=_e.key,ve=_e.shiftKey;W.current=!0,X.current=ve,Ne==="Enter"&&(K.current||(W.current=!1),gt(!1),P==null||P(_e)),b!==!1&&!K.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Ne)&&(Xe(Ne==="Up"||Ne==="ArrowUp"),_e.preventDefault());},dt=function(){W.current=!1,X.current=!1;},$t=function(){A&&gt(!1),B(!1),W.current=!1;};return ja(function(){G.isInvalidate()||re(G,!1);},[E,S]),ja(function(){var Me=Er(m);ee(Me);var _e=Er(le(se));(!Me.equals(_e)||!W.current||S)&&re(Me,W.current);},[m]),ja(function(){S&&je();},[se]),f__namespace.createElement("div",{className:V(o,$==null?void 0:$.input,a,(n={},z(n,"".concat(o,"-focused"),H),z(n,"".concat(o,"-disabled"),g),z(n,"".concat(o,"-readonly"),h),z(n,"".concat(o,"-not-a-number"),G.isNaN()),z(n,"".concat(o,"-out-of-range"),!G.isInvalidate()&&!Be(G)),n)),style:i,onFocus:function(){B(!0);},onBlur:$t,onKeyDown:ut,onKeyUp:dt,onCompositionStart:nt,onCompositionEnd:ft,onBeforeInput:pt},C&&f__namespace.createElement(T8,{prefixCls:o,upNode:v,downNode:p,upDisabled:be,downDisabled:Te,onStep:Xe}),f__namespace.createElement("div",{className:"".concat(M,"-wrap")},f__namespace.createElement("input",Ie({autoComplete:"off",role:"spinbutton","aria-valuemin":s,"aria-valuemax":l,"aria-valuenow":G.isInvalidate()?null:G.toString(),step:u},T,{ref:Wn(_,t),className:M,value:se,onChange:et,disabled:g,readOnly:h}))))}),dS=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,l=e.addonBefore,c=e.addonAfter,u=e.classes,d=e.className,m=e.classNames,g=Ye(e,L8),h=f__namespace.useRef(null),v=function(b){h.current&&cS(h.current,b);};return f__namespace.createElement(fh,{inputElement:f__namespace.createElement(A8,Ie({prefixCls:o,disabled:n,classNames:m,ref:Wn(h,t)},g)),className:d,triggerFocus:v,prefixCls:o,value:a,disabled:n,style:r,prefix:i,suffix:s,addonAfter:c,addonBefore:l,classes:u,classNames:m,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});dS.displayName="InputNumber";function Tr(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 Bs=(e,t)=>t||e,fS=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),mS=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),um=e=>({borderColor:e.activeBorderColor,boxShadow:e.activeShadow,outline:0,backgroundColor:e.activeBg}),mh=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},mS(bt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),gS=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}},gh=e=>({padding:`${e.paddingBlockSM}px ${e.paddingInlineSM}px`,borderRadius:e.borderRadiusSM}),Nu=(e,t)=>{const{componentCls:n,colorError:r,colorWarning:o,errorActiveShadow:a,warningActiveShadow:i,colorErrorBorderHover:s,colorWarningBorderHover:l}=e;return {[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:r,"&:hover":{borderColor:s},"&:focus, &:focus-within":Object.assign({},um(bt(e,{activeBorderColor:r,activeShadow:a}))),[`${n}-prefix, ${n}-suffix`]:{color:r}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:o,"&:hover":{borderColor:l},"&:focus, &:focus-within":Object.assign({},um(bt(e,{activeBorderColor:o,activeShadow:i}))),[`${n}-prefix, ${n}-suffix`]:{color:o}}}},Hs=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}`},fS(e.colorTextPlaceholder)),{"&:hover":Object.assign({},mS(e)),"&:focus, &:focus-within":Object.assign({},um(e)),"&-disabled, &[disabled]":Object.assign({},mh(e)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},gS(e)),"&-sm":Object.assign({},gh(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),hS=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({},gS(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},gh(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"},jf()),{[`${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}}}})}},z8=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({},zt(e)),Hs(e)),Nu(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"}})}},D8=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`}}}},j8=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({},Hs(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}}}),D8(e)),{[`${s}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:i}}}),Nu(e,`${t}-affix-wrapper`))}},F8=e=>{const{componentCls:t,colorError:n,colorWarning:r,borderRadiusLG:o,borderRadiusSM:a}=e;return {[`${t}-group`]:Object.assign(Object.assign(Object.assign({},zt(e)),hS(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({},mh(e))},[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},B8=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}}}}},H8=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"}}}}}},W8=e=>{const{componentCls:t}=e;return {[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}};function hh(e){return bt(e,{inputAffixPadding:e.paddingXXS})}const vh=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:a,controlHeightLG:i,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:m,colorPrimaryHover:g,colorPrimary:h,controlOutlineWidth:v,controlOutline:p,colorErrorOutline:b,colorWarningOutline:y}=e;return {paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((a-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((i-s*l)/2*10)/10-o,paddingInline:c-o,paddingInlineSM:u-o,paddingInlineLG:d-o,addonBg:m,activeBorderColor:h,hoverBorderColor:g,activeShadow:`0 0 0 ${v}px ${p}`,errorActiveShadow:`0 0 0 ${v}px ${b}`,warningActiveShadow:`0 0 0 ${v}px ${y}`,hoverBg:"",activeBg:""}},ph=Bt("Input",e=>{const t=bt(e,hh(e));return [z8(t),H8(t),j8(t),F8(t),B8(t),W8(t),Ru(t)]},vh),Eb=(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}}}},V8=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorBorder:o,borderRadius:a,fontSizeLG:i,controlHeightLG:s,controlHeightSM:l,colorError:c,paddingInlineSM:u,colorTextDescription:d,motionDurationMid:m,handleHoverColor:g,paddingInline:h,paddingBlock:v,handleBg:p,handleActiveBg:b,colorTextDisabled:y,borderRadiusSM:C,borderRadiusLG:$,controlWidth:x,handleVisible:w,handleBorderColor:S}=e;return [{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},zt(e)),Hs(e)),Nu(e,t)),{display:"inline-block",width:x,margin:0,padding:0,border:`${n}px ${r} ${o}`,borderRadius:a,"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:i,borderRadius:$,[`input${t}-input`]:{height:s-2*n}},"&-sm":{padding:0,borderRadius:C,[`input${t}-input`]:{height:l-2*n,padding:`0 ${u}px`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},zt(e)),hS(e)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:$,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:C}},[`${t}-wrapper-disabled > ${t}-group-addon`]:Object.assign({},mh(e))}}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},zt(e)),{width:"100%",padding:`${v}px ${h}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:a,outline:0,transition:`all ${m} linear`,appearance:"textfield",fontSize:"inherit"}),fS(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:w===!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} ${S}`,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({},aa()),{color:d,transition:`all ${m} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:a},[`${t}-handler-down`]:{borderBlockStart:`${n}px ${r} ${S}`,borderEndEndRadius:a}},Eb(e,"lg")),Eb(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}}}]},G8=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({},Hs(e)),Nu(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}}})}},K8=Bt("InputNumber",e=>{const t=bt(e,hh(e));return [V8(t),G8(t),Ru(t)]},e=>Object.assign(Object.assign({},vh(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 U8=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 vS=f__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=f__namespace.useContext(Je),o=f__namespace.useRef(null);f__namespace.useImperativeHandle(t,()=>o.current);const{className:a,rootClassName:i,size:s,disabled:l,prefixCls:c,addonBefore:u,addonAfter:d,prefix:m,bordered:g=!0,readOnly:h,status:v,controls:p}=e,b=U8(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),y=n("input-number",c),[C,$]=K8(y),{compactSize:x,compactItemClassnames:w}=yi(y,r);let S=f__namespace.createElement($8,{className:`${y}-handler-up-inner`}),E=f__namespace.createElement(ch,{className:`${y}-handler-down-inner`});const I=typeof p=="boolean"?p:void 0;typeof p=="object"&&(S=typeof p.upIcon>"u"?S:f__namespace.createElement("span",{className:`${y}-handler-up-inner`},p.upIcon),E=typeof p.downIcon>"u"?E:f__namespace.createElement("span",{className:`${y}-handler-down-inner`},p.downIcon));const{hasFeedback:O,status:R,isFormItemInput:P,feedbackIcon:k}=f__namespace.useContext(br),L=Bs(R,v),A=Xn(B=>{var W;return (W=s??x)!==null&&W!==void 0?W:B}),T=f__namespace.useContext(Yr),M=l??T,_=V({[`${y}-lg`]:A==="large",[`${y}-sm`]:A==="small",[`${y}-rtl`]:r==="rtl",[`${y}-borderless`]:!g,[`${y}-in-form-item`]:P},Tr(y,L),$),D=`${y}-group`,F=O&&f__namespace.createElement(f__namespace.Fragment,null,k),H=f__namespace.createElement(dS,Object.assign({ref:o,disabled:M,className:V(a,i,w),upHandler:S,downHandler:E,prefixCls:y,readOnly:h,controls:I,prefix:m,suffix:F,addonAfter:d&&f__namespace.createElement(Xa,null,f__namespace.createElement(ds,{override:!0,status:!0},d)),addonBefore:u&&f__namespace.createElement(Xa,null,f__namespace.createElement(ds,{override:!0,status:!0},u)),classNames:{input:_},classes:{affixWrapper:V(Tr(`${y}-affix-wrapper`,L,O),{[`${y}-affix-wrapper-sm`]:A==="small",[`${y}-affix-wrapper-lg`]:A==="large",[`${y}-affix-wrapper-rtl`]:r==="rtl",[`${y}-affix-wrapper-borderless`]:!g},$),wrapper:V({[`${D}-rtl`]:r==="rtl",[`${y}-wrapper-disabled`]:M},$),group:V({[`${y}-group-wrapper-sm`]:A==="small",[`${y}-group-wrapper-lg`]:A==="large",[`${y}-group-wrapper-rtl`]:r==="rtl"},Tr(`${y}-group-wrapper`,L,O),$)}},b));return C(H)}),pS=vS,X8=e=>f__namespace.createElement(Wg,{theme:{components:{InputNumber:{handleVisible:!0}}}},f__namespace.createElement(vS,Object.assign({},e)));pS._InternalPanelDoNotUseOrYouWillBeFired=X8;const dm=pS;var q8={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 Y8=q8;var Q8=function(t,n){return f__namespace.createElement(On,Ie({},t,{ref:n,icon:Y8}))};const bh=f__namespace.forwardRef(Q8);var Z8={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 J8=Z8;var eF=function(t,n){return f__namespace.createElement(On,Ie({},t,{ref:n,icon:J8}))};const tF=f__namespace.forwardRef(eF),ku=f.createContext(null);var bS=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,l=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},l)}),nF=["key","forceRender","style","className","destroyInactiveTabPane"];function rF(e){var t=e.id,n=e.activeKey,r=e.animated,o=e.tabPosition,a=e.destroyInactiveTabPane,i=f__namespace.useContext(ku),s=i.prefixCls,l=i.tabs,c=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),z({},"".concat(s,"-content-animated"),c))},l.map(function(d){var m=d.key,g=d.forceRender,h=d.style,v=d.className,p=d.destroyInactiveTabPane,b=Ye(d,nF),y=m===n;return f__namespace.createElement(mo,Ie({key:m,visible:y,forceRender:g,removeOnLeave:!!(a||p),leavedClassName:"".concat(u,"-hidden")},r.tabPaneMotion),function(C,$){var x=C.style,w=C.className;return f__namespace.createElement(bS,Ie({},b,{prefixCls:u,id:t,tabKey:m,animated:c,active:y,style:U(U({},h),x),className:V(v,w),ref:$}))})})))}var oF=function(t){var n=t.activeTabOffset,r=t.horizontal,o=t.rtl,a=t.indicatorSize,i=f.useState(),s=Q(i,2),l=s[0],c=s[1],u=f.useRef(),d=function(h){return typeof a=="function"?a(h):typeof a=="number"?a:h};function m(){Et.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=Et(function(){c(g);}),m},[n,r,o,a]),{style:l}},Ib={width:0,height:0,left:0,top:0};function aF(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)||Ib,i=a.left+a.width,s=0;s<e.length;s+=1){var l=e[s].key,c=t.get(l);if(!c){var u;c=t.get((u=e[s-1])===null||u===void 0?void 0:u.key)||Ib;}var d=o.get(l)||U({},c);d.right=i-d.left-d.width,o.set(l,d);}return o},[e.map(function(r){return r.key}).join("_"),t,n])}function Ob(e,t){var n=f__namespace.useRef(e),r=f__namespace.useState({}),o=Q(r,2),a=o[1];function i(s){var l=typeof s=="function"?s(n.current):s;l!==n.current&&t(l,n.current),n.current=l,a({});}return [n.current,i]}var iF=.1,Pb=.01,Fl=20,Mb=Math.pow(.995,Fl);function sF(e,t){var n=f.useState(),r=Q(n,2),o=r[0],a=r[1],i=f.useState(0),s=Q(i,2),l=s[0],c=s[1],u=f.useState(0),d=Q(u,2),m=d[0],g=d[1],h=f.useState(),v=Q(h,2),p=v[0],b=v[1],y=f.useRef();function C(I){var O=I.touches[0],R=O.screenX,P=O.screenY;a({x:R,y:P}),window.clearInterval(y.current);}function $(I){if(o){I.preventDefault();var O=I.touches[0],R=O.screenX,P=O.screenY;a({x:R,y:P});var k=R-o.x,L=P-o.y;t(k,L);var A=Date.now();c(A),g(A-l),b({x:k,y:L});}}function x(){if(o&&(a(null),b(null),p)){var I=p.x/m,O=p.y/m,R=Math.abs(I),P=Math.abs(O);if(Math.max(R,P)<iF)return;var k=I,L=O;y.current=window.setInterval(function(){if(Math.abs(k)<Pb&&Math.abs(L)<Pb){window.clearInterval(y.current);return}k*=Mb,L*=Mb,t(k*Fl,L*Fl);},Fl);}}var w=f.useRef();function S(I){var O=I.deltaX,R=I.deltaY,P=0,k=Math.abs(O),L=Math.abs(R);k===L?P=w.current==="x"?O:R:k>L?(P=O,w.current="x"):(P=R,w.current="y"),t(-P,-P)&&I.preventDefault();}var E=f.useRef(null);E.current={onTouchStart:C,onTouchMove:$,onTouchEnd:x,onWheel:S},f__namespace.useEffect(function(){function I(k){E.current.onTouchStart(k);}function O(k){E.current.onTouchMove(k);}function R(k){E.current.onTouchEnd(k);}function P(k){E.current.onWheel(k);}return document.addEventListener("touchmove",O,{passive:!1}),document.addEventListener("touchend",R,{passive:!1}),e.current.addEventListener("touchstart",I,{passive:!1}),e.current.addEventListener("wheel",P),function(){document.removeEventListener("touchmove",O),document.removeEventListener("touchend",R);}},[]);}function yS(e){var t=f.useState(0),n=Q(t,2),r=n[0],o=n[1],a=f.useRef(0),i=f.useRef();return i.current=e,ja(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 lF(e){var t=f.useRef([]),n=f.useState({}),r=Q(n,2),o=r[1],a=f.useRef(typeof e=="function"?e():e),i=yS(function(){var l=a.current;t.current.forEach(function(c){l=c(l);}),t.current=[],a.current=l,o({});});function s(l){t.current.push(l),i();}return [a.current,s]}var Rb={width:0,height:0,left:0,top:0,right:0};function cF(e,t,n,r,o,a,i){var s=i.tabs,l=i.tabPosition,c=i.rtl,u,d,m;return ["top","bottom"].includes(l)?(u="width",d=c?"right":"left",m=Math.abs(n)):(u="height",d="top",m=-n),f.useMemo(function(){if(!s.length)return [0,0];for(var g=s.length,h=g,v=0;v<g;v+=1){var p=e.get(s[v].key)||Rb;if(p[d]+p[u]>m+t){h=v-1;break}}for(var b=0,y=g-1;y>=0;y-=1){var C=e.get(s[y].key)||Rb;if(C[d]<m){b=y+1;break}}return b>=h?[0,0]:[b,h]},[e,t,r,o,a,m,l,s.map(function(g){return g.key}).join("_"),c])}function _b(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n;})):t=e,JSON.stringify(t)}var uF="TABS_DQ";function CS(e){return String(e).replace(/"/g,uF)}function SS(e,t,n,r){return !(!n||r||e===!1||e===void 0&&(t===!1||t===null))}function dF(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 $S=f__namespace.forwardRef(dF);var Tb=f__namespace.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var a,i={};return at(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}),fF=de.ESC,mF=de.TAB;function gF(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);}},l=function(){var d;return (d=a.current)!==null&&d!==void 0&&d.focus?(a.current.focus(),i.current=!0,!0):!1},c=function(d){switch(d.keyCode){case fF:s();break;case mF:{var m=!1;i.current||(m=l()),m?d.preventDefault():s();break}}};f__namespace.useEffect(function(){return t?(window.addEventListener("keydown",c),o&&Et(l,3),function(){window.removeEventListener("keydown",c),i.current=!1;}):function(){i.current=!1;}},[t]);}var hF=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=Wn(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:Ro(a)?i:void 0}))}),ya={adjustX:1,adjustY:1},Ca=[0,0],vF={topLeft:{points:["bl","tl"],overflow:ya,offset:[0,-4],targetOffset:Ca},top:{points:["bc","tc"],overflow:ya,offset:[0,-4],targetOffset:Ca},topRight:{points:["br","tr"],overflow:ya,offset:[0,-4],targetOffset:Ca},bottomLeft:{points:["tl","bl"],overflow:ya,offset:[0,4],targetOffset:Ca},bottom:{points:["tc","bc"],overflow:ya,offset:[0,4],targetOffset:Ca},bottomRight:{points:["tr","br"],overflow:ya,offset:[0,4],targetOffset:Ca}},pF=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function bF(e,t){var n,r=e.arrow,o=r===void 0?!1:r,a=e.prefixCls,i=a===void 0?"rc-dropdown":a,s=e.transitionName,l=e.animation,c=e.align,u=e.placement,d=u===void 0?"bottomLeft":u,m=e.placements,g=m===void 0?vF:m,h=e.getPopupContainer,v=e.showAction,p=e.hideAction,b=e.overlayClassName,y=e.overlayStyle,C=e.visible,$=e.trigger,x=$===void 0?["hover"]:$,w=e.autoFocus,S=e.overlay,E=e.children,I=e.onVisibleChange,O=Ye(e,pF),R=f.useState(),P=Q(R,2),k=P[0],L=P[1],A="visible"in e?C:k,T=f.useRef(null),M=f.useRef(null),_=f.useRef(null);f.useImperativeHandle(t,function(){return T.current});var D=function(G){L(G),I==null||I(G);};gF({visible:A,triggerRef:_,onVisibleChange:D,autoFocus:w,overlayRef:M});var F=function(G){var ee=e.onOverlayClick;L(!1),ee&&ee(G);},H=function(){return f.createElement(hF,{ref:M,overlay:S,prefixCls:i,arrow:o})},B=function(){return typeof S=="function"?H:H()},W=function(){var G=e.minOverlayWidthMatchTrigger,ee=e.alignPoint;return "minOverlayWidthMatchTrigger"in e?G:!ee},K=function(){var G=e.openClassName;return G!==void 0?G:"".concat(i,"-open")},X=f.cloneElement(E,{className:V((n=E.props)===null||n===void 0?void 0:n.className,A&&K()),ref:Ro(E)?Wn(_,E.ref):void 0}),q=p;return !q&&x.indexOf("contextMenu")!==-1&&(q=["click"]),f.createElement(yu,Ie({builtinPlacements:g},O,{prefixCls:i,ref:T,popupClassName:V(b,z({},"".concat(i,"-show-arrow"),o)),popupStyle:y,action:x,showAction:v,hideAction:q,popupPlacement:d,popupAlign:c,popupTransitionName:s,popupAnimation:l,popupVisible:A,stretch:W()?"minWidth":"",popup:B(),onPopupVisibleChange:D,onPopupClick:F,getPopupContainer:h}),X)}const wS=f.forwardRef(bF);var yF=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Sa=void 0;function CF(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,a=e.renderItem,i=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,u=e.className,d=e.style,m=e.children,g=e.display,h=e.order,v=e.component,p=v===void 0?"div":v,b=Ye(e,yF),y=i&&!g;function C(E){l(c,E);}f__namespace.useEffect(function(){return function(){C(null);}},[]);var $=a&&o!==Sa?a(o):m,x;r||(x={opacity:y?0:1,height:y?0:Sa,overflowY:y?"hidden":Sa,order:i?h:Sa,pointerEvents:y?"none":Sa,position:y?"absolute":Sa});var w={};y&&(w["aria-hidden"]=!0);var S=f__namespace.createElement(p,Ie({className:V(!r&&n,u),style:U(U({},x),d)},w,b,{ref:t}),$);return i&&(S=f__namespace.createElement(vr,{onResize:function(I){var O=I.offsetWidth;C(O);},disabled:s},S)),S}var qi=f__namespace.forwardRef(CF);qi.displayName="Item";function SF(e){if(typeof MessageChannel>"u")Et(e);else {var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0);}}function $F(){var e=f__namespace.useRef(null),t=function(r){e.current||(e.current=[],SF(function(){dy.unstable_batchedUpdates(function(){e.current.forEach(function(o){o();}),e.current=null;});})),e.current.push(r);};return t}function _i(e,t){var n=f__namespace.useState(t),r=Q(n,2),o=r[0],a=r[1],i=Tn(function(s){e(function(){a(s);});});return [o,i]}var fc=f.createContext(null),wF=["component"],xF=["className"],EF=["className"],IF=function(t,n){var r=f__namespace.useContext(fc);if(!r){var o=t.component,a=o===void 0?"div":o,i=Ye(t,wF);return f__namespace.createElement(a,Ie({},i,{ref:n}))}var s=r.className,l=Ye(r,xF),c=t.className,u=Ye(t,EF);return f__namespace.createElement(fc.Provider,{value:null},f__namespace.createElement(qi,Ie({ref:n,className:V(s,c)},l,u)))},xS=f__namespace.forwardRef(IF);xS.displayName="RawItem";var OF=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],ES="responsive",IS="invalidate";function PF(e){return "+ ".concat(e.length," ...")}function MF(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,a=o===void 0?[]:o,i=e.renderItem,s=e.renderRawItem,l=e.itemKey,c=e.itemWidth,u=c===void 0?10:c,d=e.ssr,m=e.style,g=e.className,h=e.maxCount,v=e.renderRest,p=e.renderRawRest,b=e.suffix,y=e.component,C=y===void 0?"div":y,$=e.itemComponent,x=e.onVisibleChange,w=Ye(e,OF),S=d==="full",E=$F(),I=_i(E,null),O=Q(I,2),R=O[0],P=O[1],k=R||0,L=_i(E,new Map),A=Q(L,2),T=A[0],M=A[1],_=_i(E,0),D=Q(_,2),F=D[0],H=D[1],B=_i(E,0),W=Q(B,2),K=W[0],X=W[1],q=_i(E,0),ne=Q(q,2),G=ne[0],ee=ne[1],Y=f.useState(null),ue=Q(Y,2),le=ue[0],Z=ue[1],oe=f.useState(null),fe=Q(oe,2),J=fe[0],se=fe[1],me=f__namespace.useMemo(function(){return J===null&&S?Number.MAX_SAFE_INTEGER:J||0},[J,R]),re=f.useState(!1),ie=Q(re,2),ge=ie[0],be=ie[1],Te="".concat(r,"-item"),Ae=Math.max(F,K),Ve=h===ES,Oe=a.length&&Ve,je=h===IS,Qe=Oe||typeof h=="number"&&a.length>h,Be=f.useMemo(function(){var xe=a;return Oe?R===null&&S?xe=a:xe=a.slice(0,Math.min(a.length,k/u)):typeof h=="number"&&(xe=a.slice(0,h)),xe},[a,u,R,h,Oe]),Pe=f.useMemo(function(){return Oe?a.slice(me+1):a.slice(Be.length)},[a,Be,Oe,me]),we=f.useCallback(function(xe,ae){var te;return typeof l=="function"?l(xe):(te=l&&(xe==null?void 0:xe[l]))!==null&&te!==void 0?te:ae},[l]),Ge=f.useCallback(i||function(xe){return xe},[i]);function nt(xe,ae,te){J===xe&&(ae===void 0||ae===le)||(se(xe),te||(be(xe<a.length-1),x==null||x(xe)),ae!==void 0&&Z(ae));}function ft(xe,ae){P(ae.clientWidth);}function et(xe,ae){M(function(te){var he=new Map(te);return ae===null?he.delete(xe):he.set(xe,ae),he});}function Xe(xe,ae){X(ae),H(K);}function gt(xe,ae){ee(ae);}function pt(xe){return T.get(we(Be[xe],xe))}Wt(function(){if(k&&typeof Ae=="number"&&Be){var xe=G,ae=Be.length,te=ae-1;if(!ae){nt(0,null);return}for(var he=0;he<ae;he+=1){var ye=pt(he);if(S&&(ye=ye||0),ye===void 0){nt(he-1,void 0,!0);break}if(xe+=ye,te===0&&xe<=k||he===te-1&&xe+pt(te)<=k){nt(te,null);break}else if(xe+Ae>k){nt(he-1,xe-ye-G+K);break}}b&&pt(0)+G>k&&Z(null);}},[k,T,K,G,we,Be]);var ut=ge&&!!Pe.length,dt={};le!==null&&Oe&&(dt={position:"absolute",left:le,top:0});var $t={prefixCls:Te,responsive:Oe,component:$,invalidate:je},Me=s?function(xe,ae){var te=we(xe,ae);return f__namespace.createElement(fc.Provider,{key:te,value:U(U({},$t),{},{order:ae,item:xe,itemKey:te,registerSize:et,display:ae<=me})},s(xe,ae))}:function(xe,ae){var te=we(xe,ae);return f__namespace.createElement(qi,Ie({},$t,{order:ae,key:te,item:xe,renderItem:Ge,itemKey:te,registerSize:et,display:ae<=me}))},_e,Ne={order:ut?me:Number.MAX_SAFE_INTEGER,className:"".concat(Te,"-rest"),registerSize:Xe,display:ut};if(p)p&&(_e=f__namespace.createElement(fc.Provider,{value:U(U({},$t),Ne)},p(Pe)));else {var ve=v||PF;_e=f__namespace.createElement(qi,Ie({},$t,Ne),typeof ve=="function"?ve(Pe):ve);}var De=f__namespace.createElement(C,Ie({className:V(!je&&r,g),style:m,ref:t},w),Be.map(Me),Qe?_e:null,b&&f__namespace.createElement(qi,Ie({},$t,{responsive:Ve,responsiveDisabled:!Oe,order:me,className:"".concat(Te,"-suffix"),registerSize:gt,display:!0,style:dt}),b));return Ve&&(De=f__namespace.createElement(vr,{onResize:ft,disabled:!Oe},De)),De}var Kr=f__namespace.forwardRef(MF);Kr.displayName="Overflow";Kr.Item=xS;Kr.RESPONSIVE=ES;Kr.INVALIDATE=IS;var OS=f__namespace.createContext(null);function yh(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function PS(e){var t=f__namespace.useContext(OS);return yh(t,e)}var RF=["children","locked"],Nr=f__namespace.createContext(null);function _F(e,t){var n=U({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o);}),n}function gs(e){var t=e.children,n=e.locked,r=Ye(e,RF),o=f__namespace.useContext(Nr),a=_s(function(){return _F(o,r)},[o,r],function(i,s){return !n&&(i[0]!==s[0]||!Rs(i[1],s[1],!0))});return f__namespace.createElement(Nr.Provider,{value:a},t)}var TF=[],MS=f__namespace.createContext(null);function Lu(){return f__namespace.useContext(MS)}var RS=f__namespace.createContext(TF);function Ci(e){var t=f__namespace.useContext(RS);return f__namespace.useMemo(function(){return e!==void 0?[].concat(Re(t),[e]):t},[t,e])}var _S=f__namespace.createContext(null),Ch=f__namespace.createContext({});function Nb(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Gg(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 NF(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Re(e.querySelectorAll("*")).filter(function(r){return Nb(r,t)});return Nb(e,t)&&n.unshift(e),n}var fm=de.LEFT,mm=de.RIGHT,gm=de.UP,Bl=de.DOWN,Hl=de.ENTER,TS=de.ESC,Ti=de.HOME,Ni=de.END,kb=[gm,Bl,fm,mm];function kF(e,t,n,r){var o,a,i,s,l="prev",c="next",u="children",d="parent";if(e==="inline"&&r===Hl)return {inlineTrigger:!0};var m=(o={},z(o,gm,l),z(o,Bl,c),o),g=(a={},z(a,fm,n?c:l),z(a,mm,n?l:c),z(a,Bl,u),z(a,Hl,u),a),h=(i={},z(i,gm,l),z(i,Bl,c),z(i,Hl,u),z(i,TS,d),z(i,fm,n?u:d),z(i,mm,n?d:u),i),v={inline:m,horizontal:g,vertical:h,inlineSub:m,horizontalSub:h,verticalSub:h},p=(s=v["".concat(e).concat(t?"":"Sub")])===null||s===void 0?void 0:s[r];switch(p){case l:return {offset:-1,sibling:!0};case c:return {offset:1,sibling:!0};case d:return {offset:-1,sibling:!1};case u:return {offset:1,sibling:!1};default:return null}}function LF(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement;}return null}function AF(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement;}return null}function NS(e,t){var n=NF(e,!0);return n.filter(function(r){return t.has(r)})}function Lb(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=NS(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 zF(e,t,n,r,o,a,i,s,l,c){var u=f__namespace.useRef(),d=f__namespace.useRef();d.current=t;var m=function(){Et.cancel(u.current);};return f__namespace.useEffect(function(){return function(){m();}},[]),function(g){var h=g.which;if([].concat(kb,[Hl,TS,Ti,Ni]).includes(h)){var v,p,b,y=function(){v=new Set,p=new Map,b=new Map;var A=a();return A.forEach(function(T){var M=document.querySelector("[data-menu-id='".concat(yh(r,T),"']"));M&&(v.add(M),b.set(M,T),p.set(T,M));}),v};y();var C=p.get(t),$=AF(C,v),x=b.get($),w=kF(e,i(x,!0).length===1,n,h);if(!w&&h!==Ti&&h!==Ni)return;(kb.includes(h)||[Ti,Ni].includes(h))&&g.preventDefault();var S=function(A){if(A){var T=A,M=A.querySelector("a");M!=null&&M.getAttribute("href")&&(T=M);var _=b.get(A);s(_),m(),u.current=Et(function(){d.current===_&&T.focus();});}};if([Ti,Ni].includes(h)||w.sibling||!$){var E;!$||e==="inline"?E=o.current:E=LF($);var I,O=NS(E,v);h===Ti?I=O[0]:h===Ni?I=O[O.length-1]:I=Lb(E,v,$,w.offset),S(I);}else if(w.inlineTrigger)l(x);else if(w.offset>0)l(x,!0),m(),u.current=Et(function(){y();var L=$.getAttribute("aria-controls"),A=document.getElementById(L),T=Lb(A,v);S(T);},5);else if(w.offset<0){var R=i(x,!0),P=R[R.length-2],k=p.get(P);l(P,!1),S(k);}}c==null||c(g);}}function DF(e){Promise.resolve().then(e);}var Sh="__RC_UTIL_PATH_SPLIT__",Ab=function(t){return t.join(Sh)},jF=function(t){return t.split(Sh)},hm="rc-menu-more";function FF(){var e=f__namespace.useState({}),t=Q(e,2),n=t[1],r=f.useRef(new Map),o=f.useRef(new Map),a=f__namespace.useState([]),i=Q(a,2),s=i[0],l=i[1],c=f.useRef(0),u=f.useRef(!1),d=function(){u.current||n({});},m=f.useCallback(function(C,$){var x=Ab($);o.current.set(x,C),r.current.set(C,x),c.current+=1;var w=c.current;DF(function(){w===c.current&&d();});},[]),g=f.useCallback(function(C,$){var x=Ab($);o.current.delete(x),r.current.delete(C);},[]),h=f.useCallback(function(C){l(C);},[]),v=f.useCallback(function(C,$){var x=r.current.get(C)||"",w=jF(x);return $&&s.includes(w[0])&&w.unshift(hm),w},[s]),p=f.useCallback(function(C,$){return C.some(function(x){var w=v(x,!0);return w.includes($)})},[v]),b=function(){var $=Re(r.current.keys());return s.length&&$.push(hm),$},y=f.useCallback(function(C){var $="".concat(r.current.get(C)).concat(Sh),x=new Set;return Re(o.current.keys()).forEach(function(w){w.startsWith($)&&x.add(o.current.get(w));}),x},[]);return f__namespace.useEffect(function(){return function(){u.current=!0;}},[]),{registerPath:m,unregisterPath:g,refreshOverflowKeys:h,isSubPathKey:p,getKeyPath:v,getKeys:b,getSubPathKeys:y}}function Bi(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 BF=Math.random().toFixed(5).toString().slice(2),zb=0;function HF(e){var t=Vt(e,{value:e}),n=Q(t,2),r=n[0],o=n[1];return f__namespace.useEffect(function(){zb+=1;var a="".concat(BF,"-").concat(zb);o("rc-menu-uuid-".concat(a));},[]),r}function kS(e,t,n,r){var o=f__namespace.useContext(Nr),a=o.activeKey,i=o.onActive,s=o.onInactive,l={active:a===e};return t||(l.onMouseEnter=function(c){n==null||n({key:e,domEvent:c}),i(e);},l.onMouseLeave=function(c){r==null||r({key:e,domEvent:c}),s(e);}),l}function LS(e){var t=f__namespace.useContext(Nr),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 AS(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,U({},n)):typeof t!="boolean"&&(o=t),o||r||null)}var WF=["item"];function mc(e){var t=e.item,n=Ye(e,WF);return Object.defineProperty(n,"item",{get:function(){return bn(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var VF=["title","attribute","elementRef"],GF=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],KF=["active"],UF=function(e){_o(n,e);var t=To(n);function n(){return Cn(this,n),t.apply(this,arguments)}return Sn(n,[{key:"render",value:function(){var o=this.props,a=o.title,i=o.attribute,s=o.elementRef,l=Ye(o,VF),c=Ln(l,["eventKey","popupClassName","popupOffset","onTitleClick"]);return bn(!i,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),f__namespace.createElement(Kr.Item,Ie({},i,{title:typeof a=="string"?a:void 0},c,{ref:s}))}}]),n}(f__namespace.Component),XF=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,l=e.children,c=e.role,u=e.onMouseEnter,d=e.onMouseLeave,m=e.onClick,g=e.onKeyDown,h=e.onFocus,v=Ye(e,GF),p=PS(a),b=f__namespace.useContext(Nr),y=b.prefixCls,C=b.onItemClick,$=b.disabled,x=b.overflowDisabled,w=b.itemIcon,S=b.selectedKeys,E=b.onActive,I=f__namespace.useContext(Ch),O=I._internalRenderMenuItem,R="".concat(y,"-item"),P=f__namespace.useRef(),k=f__namespace.useRef(),L=$||i,A=oa(t,k),T=Ci(a),M=function(Y){return {key:a,keyPath:Re(T).reverse(),item:P.current,domEvent:Y}},_=s||w,D=kS(a,L,u,d),F=D.active,H=Ye(D,KF),B=S.includes(a),W=LS(T.length),K=function(Y){if(!L){var ue=M(Y);m==null||m(mc(ue)),C(ue);}},X=function(Y){if(g==null||g(Y),Y.which===de.ENTER){var ue=M(Y);m==null||m(mc(ue)),C(ue);}},q=function(Y){E(a),h==null||h(Y);},ne={};e.role==="option"&&(ne["aria-selected"]=B);var G=f__namespace.createElement(UF,Ie({ref:P,elementRef:A,role:c===null?"none":c||"menuitem",tabIndex:i?null:-1,"data-menu-id":x&&p?null:p},v,H,ne,{component:"li","aria-disabled":i,style:U(U({},W),r),className:V(R,(n={},z(n,"".concat(R,"-active"),F),z(n,"".concat(R,"-selected"),B),z(n,"".concat(R,"-disabled"),L),n),o),onClick:K,onKeyDown:X,onFocus:q}),l,f__namespace.createElement(AS,{props:U(U({},e),{},{isSelected:B}),icon:_}));return O&&(G=O(G,e,{selected:B})),G});function qF(e,t){var n=e.eventKey,r=Lu(),o=Ci(n);return f__namespace.useEffect(function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o);}},[o]),r?null:f__namespace.createElement(XF,Ie({},e,{ref:t}))}const Ws=f__namespace.forwardRef(qF);var YF=["className","children"],QF=function(t,n){var r=t.className,o=t.children,a=Ye(t,YF),i=f__namespace.useContext(Nr),s=i.prefixCls,l=i.mode,c=i.rtl;return f__namespace.createElement("ul",Ie({className:V(s,c&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat(l==="inline"?"inline":"vertical"),r),role:"menu"},a,{"data-menu-list":!0,ref:n}),o)},$h=f__namespace.forwardRef(QF);$h.displayName="SubMenuList";function wh(e,t){return or(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,l=s==null;l&&(s="tmp_key-".concat([].concat(Re(t),[r]).join("-")));var c={key:s,eventKey:s};return f__namespace.cloneElement(n,c)}return n})}var Rn={adjustX:1,adjustY:1},ZF={topLeft:{points:["bl","tl"],overflow:Rn},topRight:{points:["br","tr"],overflow:Rn},bottomLeft:{points:["tl","bl"],overflow:Rn},bottomRight:{points:["tr","br"],overflow:Rn},leftTop:{points:["tr","tl"],overflow:Rn},leftBottom:{points:["br","bl"],overflow:Rn},rightTop:{points:["tl","tr"],overflow:Rn},rightBottom:{points:["bl","br"],overflow:Rn}},JF={topLeft:{points:["bl","tl"],overflow:Rn},topRight:{points:["br","tr"],overflow:Rn},bottomLeft:{points:["tl","bl"],overflow:Rn},bottomRight:{points:["tr","br"],overflow:Rn},rightTop:{points:["tr","tl"],overflow:Rn},rightBottom:{points:["br","bl"],overflow:Rn},leftTop:{points:["tl","tr"],overflow:Rn},leftBottom:{points:["bl","br"],overflow:Rn}};function zS(e,t,n){if(t)return t;if(n)return n[e]||n.other}var eB={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function tB(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,a=e.popupStyle,i=e.popupClassName,s=e.popupOffset,l=e.disabled,c=e.mode,u=e.onVisibleChange,d=f__namespace.useContext(Nr),m=d.getPopupContainer,g=d.rtl,h=d.subMenuOpenDelay,v=d.subMenuCloseDelay,p=d.builtinPlacements,b=d.triggerSubMenuAction,y=d.forceSubMenuRender,C=d.rootClassName,$=d.motion,x=d.defaultMotions,w=f__namespace.useState(!1),S=Q(w,2),E=S[0],I=S[1],O=U(g?U({},JF):U({},ZF),p),R=eB[c],P=zS(c,$,x),k=f__namespace.useRef(P);c!=="inline"&&(k.current=P);var L=U(U({},k.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),A=f__namespace.useRef();return f__namespace.useEffect(function(){return A.current=Et(function(){I(n);}),function(){Et.cancel(A.current);}},[n]),f__namespace.createElement(yu,{prefixCls:t,popupClassName:V("".concat(t,"-popup"),z({},"".concat(t,"-rtl"),g),i,C),stretch:c==="horizontal"?"minWidth":null,getPopupContainer:m,builtinPlacements:O,popupPlacement:R,popupVisible:E,popup:o,popupStyle:a,popupAlign:s&&{offset:s},action:l?[]:[b],mouseEnterDelay:h,mouseLeaveDelay:v,onPopupVisibleChange:u,forceRender:y,popupMotion:L,fresh:!0},r)}function nB(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,a="inline",i=f__namespace.useContext(Nr),s=i.prefixCls,l=i.forceSubMenuRender,c=i.motion,u=i.defaultMotions,d=i.mode,m=f__namespace.useRef(!1);m.current=d===a;var g=f__namespace.useState(!m.current),h=Q(g,2),v=h[0],p=h[1],b=m.current?n:!1;f__namespace.useEffect(function(){m.current&&p(!1);},[d]);var y=U({},zS(a,c,u));r.length>1&&(y.motionAppear=!1);var C=y.onVisibleChanged;return y.onVisibleChanged=function($){return !m.current&&!$&&p(!0),C==null?void 0:C($)},v?null:f__namespace.createElement(gs,{mode:a,locked:!m.current},f__namespace.createElement(mo,Ie({visible:b},y,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function($){var x=$.className,w=$.style;return f__namespace.createElement($h,{id:t,className:x,style:w},o)}))}var rB=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],oB=["active"],aB=function(t){var n,r=t.style,o=t.className,a=t.title,i=t.eventKey;t.warnKey;var s=t.disabled,l=t.internalPopupClose,c=t.children,u=t.itemIcon,d=t.expandIcon,m=t.popupClassName,g=t.popupOffset,h=t.popupStyle,v=t.onClick,p=t.onMouseEnter,b=t.onMouseLeave,y=t.onTitleClick,C=t.onTitleMouseEnter,$=t.onTitleMouseLeave,x=Ye(t,rB),w=PS(i),S=f__namespace.useContext(Nr),E=S.prefixCls,I=S.mode,O=S.openKeys,R=S.disabled,P=S.overflowDisabled,k=S.activeKey,L=S.selectedKeys,A=S.itemIcon,T=S.expandIcon,M=S.onItemClick,_=S.onOpenChange,D=S.onActive,F=f__namespace.useContext(Ch),H=F._internalRenderSubMenuItem,B=f__namespace.useContext(_S),W=B.isSubPathKey,K=Ci(),X="".concat(E,"-submenu"),q=R||s,ne=f__namespace.useRef(),G=f__namespace.useRef(),ee=u??A,Y=d??T,ue=O.includes(i),le=!P&&ue,Z=W(L,i),oe=kS(i,q,C,$),fe=oe.active,J=Ye(oe,oB),se=f__namespace.useState(!1),me=Q(se,2),re=me[0],ie=me[1],ge=function(Xe){q||ie(Xe);},be=function(Xe){ge(!0),p==null||p({key:i,domEvent:Xe});},Te=function(Xe){ge(!1),b==null||b({key:i,domEvent:Xe});},Ae=f__namespace.useMemo(function(){return fe||(I!=="inline"?re||W([k],i):!1)},[I,fe,k,re,i,W]),Ve=LS(K.length),Oe=function(Xe){q||(y==null||y({key:i,domEvent:Xe}),I==="inline"&&_(i,!ue));},je=Bi(function(et){v==null||v(mc(et)),M(et);}),Qe=function(Xe){I!=="inline"&&_(i,Xe);},Be=function(){D(i);},Pe=w&&"".concat(w,"-popup"),we=f__namespace.createElement("div",Ie({role:"menuitem",style:Ve,className:"".concat(X,"-title"),tabIndex:q?null:-1,ref:ne,title:typeof a=="string"?a:null,"data-menu-id":P&&w?null:w,"aria-expanded":le,"aria-haspopup":!0,"aria-controls":Pe,"aria-disabled":q,onClick:Oe,onFocus:Be},J),a,f__namespace.createElement(AS,{icon:I!=="horizontal"?Y:void 0,props:U(U({},t),{},{isOpen:le,isSubMenu:!0})},f__namespace.createElement("i",{className:"".concat(X,"-arrow")}))),Ge=f__namespace.useRef(I);if(I!=="inline"&&K.length>1?Ge.current="vertical":Ge.current=I,!P){var nt=Ge.current;we=f__namespace.createElement(tB,{mode:nt,prefixCls:X,visible:!l&&le&&I!=="inline",popupClassName:m,popupOffset:g,popupStyle:h,popup:f__namespace.createElement(gs,{mode:nt==="horizontal"?"vertical":nt},f__namespace.createElement($h,{id:Pe,ref:G},c)),disabled:q,onVisibleChange:Qe},we);}var ft=f__namespace.createElement(Kr.Item,Ie({role:"none"},x,{component:"li",style:r,className:V(X,"".concat(X,"-").concat(I),o,(n={},z(n,"".concat(X,"-open"),le),z(n,"".concat(X,"-active"),Ae),z(n,"".concat(X,"-selected"),Z),z(n,"".concat(X,"-disabled"),q),n)),onMouseEnter:be,onMouseLeave:Te}),we,!P&&f__namespace.createElement(nB,{id:Pe,open:le,keyPath:K},c));return H&&(ft=H(ft,t,{selected:Z,active:Ae,open:le,disabled:q})),f__namespace.createElement(gs,{onItemClick:je,mode:I==="horizontal"?"vertical":I,itemIcon:ee,expandIcon:Y},ft)};function Au(e){var t=e.eventKey,n=e.children,r=Ci(t),o=wh(n,r),a=Lu();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(aB,e,o),f__namespace.createElement(RS.Provider,{value:r},i)}var iB=["className","title","eventKey","children"],sB=["children"],lB=function(t){var n=t.className,r=t.title;t.eventKey;var o=t.children,a=Ye(t,iB),i=f__namespace.useContext(Nr),s=i.prefixCls,l="".concat(s,"-item-group");return f__namespace.createElement("li",Ie({role:"presentation"},a,{onClick:function(u){return u.stopPropagation()},className:V(l,n)}),f__namespace.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof r=="string"?r:void 0},r),f__namespace.createElement("ul",{role:"group",className:"".concat(l,"-list")},o))};function zu(e){var t=e.children,n=Ye(e,sB),r=Ci(n.eventKey),o=wh(t,r),a=Lu();return a?o:f__namespace.createElement(lB,Ln(n,["warnKey"]),o)}function xh(e){var t=e.className,n=e.style,r=f__namespace.useContext(Nr),o=r.prefixCls,a=Lu();return a?null:f__namespace.createElement("li",{role:"separator",className:V("".concat(o,"-item-divider"),t),style:n})}var cB=["label","children","key","type"];function vm(e){return (e||[]).map(function(t,n){if(t&&at(t)==="object"){var r=t,o=r.label,a=r.children,i=r.key,s=r.type,l=Ye(r,cB),c=i??"tmp-".concat(n);return a||s==="group"?s==="group"?f__namespace.createElement(zu,Ie({key:c},l,{title:o}),vm(a)):f__namespace.createElement(Au,Ie({key:c},l,{title:o}),vm(a)):s==="divider"?f__namespace.createElement(xh,Ie({key:c},l)):f__namespace.createElement(Ws,Ie({key:c},l),o)}return null}).filter(function(t){return t})}function uB(e,t,n){var r=e;return t&&(r=vm(t)),wh(r,n)}var dB=["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"],$a=[],fB=f__namespace.forwardRef(function(e,t){var n,r,o=e,a=o.prefixCls,i=a===void 0?"rc-menu":a,s=o.rootClassName,l=o.style,c=o.className,u=o.tabIndex,d=u===void 0?0:u,m=o.items,g=o.children,h=o.direction,v=o.id,p=o.mode,b=p===void 0?"vertical":p,y=o.inlineCollapsed,C=o.disabled,$=o.disabledOverflow,x=o.subMenuOpenDelay,w=x===void 0?.1:x,S=o.subMenuCloseDelay,E=S===void 0?.1:S,I=o.forceSubMenuRender,O=o.defaultOpenKeys,R=o.openKeys,P=o.activeKey,k=o.defaultActiveFirst,L=o.selectable,A=L===void 0?!0:L,T=o.multiple,M=T===void 0?!1:T,_=o.defaultSelectedKeys,D=o.selectedKeys,F=o.onSelect,H=o.onDeselect,B=o.inlineIndent,W=B===void 0?24:B,K=o.motion,X=o.defaultMotions,q=o.triggerSubMenuAction,ne=q===void 0?"hover":q,G=o.builtinPlacements,ee=o.itemIcon,Y=o.expandIcon,ue=o.overflowedIndicator,le=ue===void 0?"...":ue,Z=o.overflowedIndicatorPopupClassName,oe=o.getPopupContainer,fe=o.onClick,J=o.onOpenChange,se=o.onKeyDown;o.openAnimation,o.openTransitionName;var me=o._internalRenderMenuItem,re=o._internalRenderSubMenuItem,ie=Ye(o,dB),ge=f__namespace.useMemo(function(){return uB(g,m,$a)},[g,m]),be=f__namespace.useState(!1),Te=Q(be,2),Ae=Te[0],Ve=Te[1],Oe=f__namespace.useRef(),je=HF(v),Qe=h==="rtl",Be=Vt(O,{value:R,postState:function(tt){return tt||$a}}),Pe=Q(Be,2),we=Pe[0],Ge=Pe[1],nt=function(tt){var vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function St(){Ge(tt),J==null||J(tt);}vt?dy.flushSync(St):St();},ft=f__namespace.useState(we),et=Q(ft,2),Xe=et[0],gt=et[1],pt=f__namespace.useRef(!1),ut=f__namespace.useMemo(function(){return (b==="inline"||b==="vertical")&&y?["vertical",y]:[b,!1]},[b,y]),dt=Q(ut,2),$t=dt[0],Me=dt[1],_e=$t==="inline",Ne=f__namespace.useState($t),ve=Q(Ne,2),De=ve[0],xe=ve[1],ae=f__namespace.useState(Me),te=Q(ae,2),he=te[0],ye=te[1];f__namespace.useEffect(function(){xe($t),ye(Me),pt.current&&(_e?Ge(Xe):nt($a));},[$t,Me]);var $e=f__namespace.useState(0),Ue=Q($e,2),qe=Ue[0],Ct=Ue[1],ht=qe>=ge.length-1||De!=="horizontal"||$;f__namespace.useEffect(function(){_e&&gt(we);},[we]),f__namespace.useEffect(function(){return pt.current=!0,function(){pt.current=!1;}},[]);var Rt=FF(),yt=Rt.registerPath,it=Rt.unregisterPath,ke=Rt.refreshOverflowKeys,Ee=Rt.isSubPathKey,Ce=Rt.getKeyPath,Se=Rt.getKeys,Fe=Rt.getSubPathKeys,st=f__namespace.useMemo(function(){return {registerPath:yt,unregisterPath:it}},[yt,it]),Ot=f__namespace.useMemo(function(){return {isSubPathKey:Ee}},[Ee]);f__namespace.useEffect(function(){ke(ht?$a:ge.slice(qe+1).map(function(ze){return ze.key}));},[qe,ht]);var It=Vt(P||k&&((n=ge[0])===null||n===void 0?void 0:n.key),{value:P}),cn=Q(It,2),on=cn[0],un=cn[1],An=Bi(function(ze){un(ze);}),pn=Bi(function(){un(void 0);});f.useImperativeHandle(t,function(){return {list:Oe.current,focus:function(tt){var vt,St=on??((vt=ge.find(function(Gn){return !Gn.props.disabled}))===null||vt===void 0?void 0:vt.key);if(St){var Tt,Qt,Dn;(Tt=Oe.current)===null||Tt===void 0||(Qt=Tt.querySelector("li[data-menu-id='".concat(yh(je,St),"']")))===null||Qt===void 0||(Dn=Qt.focus)===null||Dn===void 0||Dn.call(Qt,tt);}}}});var Ar=Vt(_||[],{value:D,postState:function(tt){return Array.isArray(tt)?tt:tt==null?$a:[tt]}}),Zr=Q(Ar,2),zn=Zr[0],ho=Zr[1],Sr=function(tt){if(A){var vt=tt.key,St=zn.includes(vt),Tt;M?St?Tt=zn.filter(function(Dn){return Dn!==vt}):Tt=[].concat(Re(zn),[vt]):Tt=[vt],ho(Tt);var Qt=U(U({},tt),{},{selectedKeys:Tt});St?H==null||H(Qt):F==null||F(Qt);}!M&&we.length&&De!=="inline"&&nt($a);},qn=Bi(function(ze){fe==null||fe(mc(ze)),Sr(ze);}),lr=Bi(function(ze,tt){var vt=we.filter(function(Tt){return Tt!==ze});if(tt)vt.push(ze);else if(De!=="inline"){var St=Fe(ze);vt=vt.filter(function(Tt){return !St.has(Tt)});}Rs(we,vt,!0)||nt(vt,!0);}),zr=function(tt,vt){var St=vt??!we.includes(tt);lr(tt,St);},Dr=zF(De,on,Qe,je,Oe,Se,Ce,un,zr,se);f__namespace.useEffect(function(){Ve(!0);},[]);var Vn=f__namespace.useMemo(function(){return {_internalRenderMenuItem:me,_internalRenderSubMenuItem:re}},[me,re]),jr=De!=="horizontal"||$?ge:ge.map(function(ze,tt){return f__namespace.createElement(gs,{key:ze.key,overflowDisabled:tt>qe},ze)}),lt=f__namespace.createElement(Kr,Ie({id:v,ref:Oe,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:Ws,className:V(i,"".concat(i,"-root"),"".concat(i,"-").concat(De),c,(r={},z(r,"".concat(i,"-inline-collapsed"),he),z(r,"".concat(i,"-rtl"),Qe),r),s),dir:h,style:l,role:"menu",tabIndex:d,data:jr,renderRawItem:function(tt){return tt},renderRawRest:function(tt){var vt=tt.length,St=vt?ge.slice(-vt):null;return f__namespace.createElement(Au,{eventKey:hm,title:le,disabled:ht,internalPopupClose:vt===0,popupClassName:Z},St)},maxCount:De!=="horizontal"||$?Kr.INVALIDATE:Kr.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(tt){Ct(tt);},onKeyDown:Dr},ie));return f__namespace.createElement(Ch.Provider,{value:Vn},f__namespace.createElement(OS.Provider,{value:je},f__namespace.createElement(gs,{prefixCls:i,rootClassName:s,mode:De,openKeys:we,rtl:Qe,disabled:C,motion:Ae?K:null,defaultMotions:Ae?X:null,activeKey:on,onActive:An,onInactive:pn,selectedKeys:zn,inlineIndent:W,subMenuOpenDelay:w,subMenuCloseDelay:E,forceSubMenuRender:I,builtinPlacements:G,triggerSubMenuAction:ne,getPopupContainer:oe,itemIcon:ee,expandIcon:Y,onItemClick:qn,onOpenChange:lr},f__namespace.createElement(_S.Provider,{value:Ot},lt),f__namespace.createElement("div",{style:{display:"none"},"aria-hidden":!0},f__namespace.createElement(MS.Provider,{value:st},ge)))))}),Si=fB;Si.Item=Ws;Si.SubMenu=Au;Si.ItemGroup=zu;Si.Divider=xh;function mB(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,a=e.locale,i=e.mobile,s=e.moreIcon,l=s===void 0?"More":s,c=e.moreTransitionName,u=e.style,d=e.className,m=e.editable,g=e.tabBarGutter,h=e.rtl,v=e.removeAriaLabel,p=e.onTabClick,b=e.getPopupContainer,y=e.popupClassName,C=f.useState(!1),$=Q(C,2),x=$[0],w=$[1],S=f.useState(null),E=Q(S,2),I=E[0],O=E[1],R="".concat(r,"-more-popup"),P="".concat(n,"-dropdown"),k=I!==null?"".concat(R,"-").concat(I):null,L=a==null?void 0:a.dropdownAriaLabel;function A(B,W){B.preventDefault(),B.stopPropagation(),m.onEdit("remove",{key:W,event:B});}var T=f__namespace.createElement(Si,{onClick:function(W){var K=W.key,X=W.domEvent;p(K,X),w(!1);},prefixCls:"".concat(P,"-menu"),id:R,tabIndex:-1,role:"listbox","aria-activedescendant":k,selectedKeys:[I],"aria-label":L!==void 0?L:"expanded dropdown"},o.map(function(B){var W=B.closable,K=B.disabled,X=B.closeIcon,q=B.key,ne=B.label,G=SS(W,X,m,K);return f__namespace.createElement(Ws,{key:q,id:"".concat(R,"-").concat(q),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(q),disabled:K},f__namespace.createElement("span",null,ne),G&&f__namespace.createElement("button",{type:"button","aria-label":v||"remove",tabIndex:0,className:"".concat(P,"-menu-item-remove"),onClick:function(Y){Y.stopPropagation(),A(Y,q);}},X||m.removeIcon||"×"))}));function M(B){for(var W=o.filter(function(G){return !G.disabled}),K=W.findIndex(function(G){return G.key===I})||0,X=W.length,q=0;q<X;q+=1){K=(K+B+X)%X;var ne=W[K];if(!ne.disabled){O(ne.key);return}}}function _(B){var W=B.which;if(!x){[de.DOWN,de.SPACE,de.ENTER].includes(W)&&(w(!0),B.preventDefault());return}switch(W){case de.UP:M(-1),B.preventDefault();break;case de.DOWN:M(1),B.preventDefault();break;case de.ESC:w(!1);break;case de.SPACE:case de.ENTER:I!==null&&p(I,B);break}}f.useEffect(function(){var B=document.getElementById(k);B&&B.scrollIntoView&&B.scrollIntoView(!1);},[I]),f.useEffect(function(){x||O(null);},[x]);var D=z({},h?"marginRight":"marginLeft",g);o.length||(D.visibility="hidden",D.order=1);var F=V(z({},"".concat(P,"-rtl"),h)),H=i?null:f__namespace.createElement(wS,{prefixCls:P,overlay:T,trigger:["hover"],visible:o.length?x:!1,transitionName:c,onVisibleChange:w,overlayClassName:V(F,y),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:b},f__namespace.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:D,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":R,id:"".concat(r,"-more"),"aria-expanded":x,onKeyDown:_},l));return f__namespace.createElement("div",{className:V("".concat(n,"-nav-operations"),d),style:u,ref:t},H,f__namespace.createElement($S,{prefixCls:n,locale:a,editable:m}))}const gB=f__namespace.memo(f__namespace.forwardRef(mB),function(e,t){return t.tabMoving});function hB(e){var t,n=e.prefixCls,r=e.id,o=e.active,a=e.tab,i=a.key,s=a.label,l=a.disabled,c=a.closeIcon,u=e.closable,d=e.renderWrapper,m=e.removeAriaLabel,g=e.editable,h=e.onClick,v=e.onFocus,p=e.style,b="".concat(n,"-tab"),y=SS(u,c,g,l);function C(w){l||h(w);}function $(w){w.preventDefault(),w.stopPropagation(),g.onEdit("remove",{key:i,event:w});}var x=f__namespace.createElement("div",{key:i,"data-node-key":CS(i),className:V(b,(t={},z(t,"".concat(b,"-with-remove"),y),z(t,"".concat(b,"-active"),o),z(t,"".concat(b,"-disabled"),l),t)),style:p,onClick:C},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":l,tabIndex:l?null:0,onClick:function(S){S.stopPropagation(),C(S);},onKeyDown:function(S){[de.SPACE,de.ENTER].includes(S.which)&&(S.preventDefault(),C(S));},onFocus:v},s),y&&f__namespace.createElement("button",{type:"button","aria-label":m||"remove",tabIndex:0,className:"".concat(b,"-remove"),onClick:function(S){S.stopPropagation(),$(S);}},c||g.removeIcon||"×"));return d?d(x):x}var vB=function(t,n){var r=t.offsetWidth,o=t.offsetHeight,a=t.offsetTop,i=t.offsetLeft,s=t.getBoundingClientRect(),l=s.width,c=s.height,u=s.x,d=s.y;return Math.abs(l-r)<1?[l,c,u-n.x,d-n.y]:[r,o,i,a]},wa=function(t){var n=t.current||{},r=n.offsetWidth,o=r===void 0?0:r,a=n.offsetHeight,i=a===void 0?0:a;if(t.current){var s=t.current.getBoundingClientRect(),l=s.width,c=s.height;if(Math.abs(l-o)<1)return [l,c]}return [o,i]},wl=function(t,n){return t[n?0:1]};function pB(e,t){var n,r=f__namespace.useContext(ku),o=r.prefixCls,a=r.tabs,i=e.className,s=e.style,l=e.id,c=e.animated,u=e.activeKey,d=e.rtl,m=e.extra,g=e.editable,h=e.locale,v=e.tabPosition,p=e.tabBarGutter,b=e.children,y=e.onTabClick,C=e.onTabScroll,$=e.indicatorSize,x=f.useRef(),w=f.useRef(),S=f.useRef(),E=f.useRef(),I=f.useRef(),O=f.useRef(),R=f.useRef(),P=v==="top"||v==="bottom",k=Ob(0,function(ke,Ee){P&&C&&C({direction:ke>Ee?"left":"right"});}),L=Q(k,2),A=L[0],T=L[1],M=Ob(0,function(ke,Ee){!P&&C&&C({direction:ke>Ee?"top":"bottom"});}),_=Q(M,2),D=_[0],F=_[1],H=f.useState([0,0]),B=Q(H,2),W=B[0],K=B[1],X=f.useState([0,0]),q=Q(X,2),ne=q[0],G=q[1],ee=f.useState([0,0]),Y=Q(ee,2),ue=Y[0],le=Y[1],Z=f.useState([0,0]),oe=Q(Z,2),fe=oe[0],J=oe[1],se=lF(new Map),me=Q(se,2),re=me[0],ie=me[1],ge=aF(a,re,ne[0]),be=wl(W,P),Te=wl(ne,P),Ae=wl(ue,P),Ve=wl(fe,P),Oe=be<Te+Ae,je=Oe?be-Ve:be-Ae,Qe="".concat(o,"-nav-operations-hidden"),Be=0,Pe=0;P&&d?(Be=0,Pe=Math.max(0,Te-je)):(Be=Math.min(0,je-Te),Pe=0);function we(ke){return ke<Be?Be:ke>Pe?Pe:ke}var Ge=f.useRef(),nt=f.useState(),ft=Q(nt,2),et=ft[0],Xe=ft[1];function gt(){Xe(Date.now());}function pt(){window.clearTimeout(Ge.current);}sF(E,function(ke,Ee){function Ce(Se,Fe){Se(function(st){var Ot=we(st+Fe);return Ot});}return Oe?(P?Ce(T,ke):Ce(F,Ee),pt(),gt(),!0):!1}),f.useEffect(function(){return pt(),et&&(Ge.current=window.setTimeout(function(){Xe(0);},100)),pt},[et]);var ut=cF(ge,je,P?A:D,Te,Ae,Ve,U(U({},e),{},{tabs:a})),dt=Q(ut,2),$t=dt[0],Me=dt[1],_e=Tn(function(){var ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:u,Ee=ge.get(ke)||{width:0,height:0,left:0,right:0,top:0};if(P){var Ce=A;d?Ee.right<A?Ce=Ee.right:Ee.right+Ee.width>A+je&&(Ce=Ee.right+Ee.width-je):Ee.left<-A?Ce=-Ee.left:Ee.left+Ee.width>-A+je&&(Ce=-(Ee.left+Ee.width-je)),F(0),T(we(Ce));}else {var Se=D;Ee.top<-D?Se=-Ee.top:Ee.top+Ee.height>-D+je&&(Se=-(Ee.top+Ee.height-je)),T(0),F(we(Se));}}),Ne={};v==="top"||v==="bottom"?Ne[d?"marginRight":"marginLeft"]=p:Ne.marginTop=p;var ve=a.map(function(ke,Ee){var Ce=ke.key;return f__namespace.createElement(hB,{id:l,prefixCls:o,key:Ce,tab:ke,style:Ee===0?void 0:Ne,closable:ke.closable,editable:g,active:Ce===u,renderWrapper:b,removeAriaLabel:h==null?void 0:h.removeAriaLabel,onClick:function(Fe){y(Ce,Fe);},onFocus:function(){_e(Ce),gt(),E.current&&(d||(E.current.scrollLeft=0),E.current.scrollTop=0);}})}),De=function(){return ie(function(){var Ee,Ce=new Map,Se=(Ee=I.current)===null||Ee===void 0?void 0:Ee.getBoundingClientRect();return a.forEach(function(Fe){var st,Ot=Fe.key,It=(st=I.current)===null||st===void 0?void 0:st.querySelector('[data-node-key="'.concat(CS(Ot),'"]'));if(It){var cn=vB(It,Se),on=Q(cn,4),un=on[0],An=on[1],pn=on[2],Ar=on[3];Ce.set(Ot,{width:un,height:An,left:pn,top:Ar});}}),Ce})};f.useEffect(function(){De();},[a.map(function(ke){return ke.key}).join("_")]);var xe=yS(function(){var ke=wa(x),Ee=wa(w),Ce=wa(S);K([ke[0]-Ee[0]-Ce[0],ke[1]-Ee[1]-Ce[1]]);var Se=wa(R);le(Se);var Fe=wa(O);J(Fe);var st=wa(I);G([st[0]-Se[0],st[1]-Se[1]]),De();}),ae=a.slice(0,$t),te=a.slice(Me+1),he=[].concat(Re(ae),Re(te)),ye=ge.get(u),$e=oF({activeTabOffset:ye,horizontal:P,rtl:d,indicatorSize:$}),Ue=$e.style;f.useEffect(function(){_e();},[u,Be,Pe,_b(ye),_b(ge),P]),f.useEffect(function(){xe();},[d]);var qe=!!he.length,Ct="".concat(o,"-nav-wrap"),ht,Rt,yt,it;return P?d?(Rt=A>0,ht=A!==Pe):(ht=A<0,Rt=A!==Be):(yt=D<0,it=D!==Be),f__namespace.createElement(vr,{onResize:xe},f__namespace.createElement("div",{ref:oa(t,x),role:"tablist",className:V("".concat(o,"-nav"),i),style:s,onKeyDown:function(){gt();}},f__namespace.createElement(Tb,{ref:w,position:"left",extra:m,prefixCls:o}),f__namespace.createElement(vr,{onResize:xe},f__namespace.createElement("div",{className:V(Ct,(n={},z(n,"".concat(Ct,"-ping-left"),ht),z(n,"".concat(Ct,"-ping-right"),Rt),z(n,"".concat(Ct,"-ping-top"),yt),z(n,"".concat(Ct,"-ping-bottom"),it),n)),ref:E},f__namespace.createElement(vr,{onResize:xe},f__namespace.createElement("div",{ref:I,className:"".concat(o,"-nav-list"),style:{transform:"translate(".concat(A,"px, ").concat(D,"px)"),transition:et?"none":void 0}},ve,f__namespace.createElement($S,{ref:R,prefixCls:o,locale:h,editable:g,style:U(U({},ve.length===0?void 0:Ne),{},{visibility:qe?"hidden":null})}),f__namespace.createElement("div",{className:V("".concat(o,"-ink-bar"),z({},"".concat(o,"-ink-bar-animated"),c.inkBar)),style:Ue}))))),f__namespace.createElement(gB,Ie({},e,{removeAriaLabel:h==null?void 0:h.removeAriaLabel,ref:O,prefixCls:o,tabs:he,className:!qe&&Qe,tabMoving:!!et})),f__namespace.createElement(Tb,{ref:S,position:"right",extra:m,prefixCls:o})))}const Db=f__namespace.forwardRef(pB);var bB=["renderTabBar"],yB=["label","key"];function CB(e){var t=e.renderTabBar,n=Ye(e,bB),r=f__namespace.useContext(ku),o=r.tabs;if(t){var a=U(U({},n),{},{panes:o.map(function(i){var s=i.label,l=i.key,c=Ye(i,yB);return f__namespace.createElement(bS,Ie({tab:s,key:l,tabKey:l},c))})});return t(a,Db)}return f__namespace.createElement(Db,n)}function SB(){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=U({inkBar:!0},at(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var $B=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],jb=0;function wB(e,t){var n,r=e.id,o=e.prefixCls,a=o===void 0?"rc-tabs":o,i=e.className,s=e.items,l=e.direction,c=e.activeKey,u=e.defaultActiveKey,d=e.editable,m=e.animated,g=e.tabPosition,h=g===void 0?"top":g,v=e.tabBarGutter,p=e.tabBarStyle,b=e.tabBarExtraContent,y=e.locale,C=e.moreIcon,$=e.moreTransitionName,x=e.destroyInactiveTabPane,w=e.renderTabBar,S=e.onChange,E=e.onTabClick,I=e.onTabScroll,O=e.getPopupContainer,R=e.popupClassName,P=e.indicatorSize,k=Ye(e,$B),L=f__namespace.useMemo(function(){return (s||[]).filter(function(J){return J&&at(J)==="object"&&"key"in J})},[s]),A=l==="rtl",T=SB(m),M=f.useState(!1),_=Q(M,2),D=_[0],F=_[1];f.useEffect(function(){F(bu());},[]);var H=Vt(function(){var J;return (J=L[0])===null||J===void 0?void 0:J.key},{value:c,defaultValue:u}),B=Q(H,2),W=B[0],K=B[1],X=f.useState(function(){return L.findIndex(function(J){return J.key===W})}),q=Q(X,2),ne=q[0],G=q[1];f.useEffect(function(){var J=L.findIndex(function(me){return me.key===W});if(J===-1){var se;J=Math.max(0,Math.min(ne,L.length-1)),K((se=L[J])===null||se===void 0?void 0:se.key);}G(J);},[L.map(function(J){return J.key}).join("_"),W,ne]);var ee=Vt(null,{value:r}),Y=Q(ee,2),ue=Y[0],le=Y[1];f.useEffect(function(){r||(le("rc-tabs-".concat(jb)),jb+=1);},[]);function Z(J,se){E==null||E(J,se);var me=J!==W;K(J),me&&(S==null||S(J));}var oe={id:ue,activeKey:W,animated:T,tabPosition:h,rtl:A,mobile:D},fe=U(U({},oe),{},{editable:d,locale:y,moreIcon:C,moreTransitionName:$,tabBarGutter:v,onTabClick:Z,onTabScroll:I,extra:b,style:p,panes:null,getPopupContainer:O,popupClassName:R,indicatorSize:P});return f__namespace.createElement(ku.Provider,{value:{tabs:L,prefixCls:a}},f__namespace.createElement("div",Ie({ref:t,id:r,className:V(a,"".concat(a,"-").concat(h),(n={},z(n,"".concat(a,"-mobile"),D),z(n,"".concat(a,"-editable"),d),z(n,"".concat(a,"-rtl"),A),n),i)},k),f__namespace.createElement(CB,Ie({},fe,{renderTabBar:w})),f__namespace.createElement(rF,Ie({destroyInactiveTabPane:x},oe,{animated:T}))))}var xB=f__namespace.forwardRef(wB);const EB={motionAppear:!1,motionEnter:!0,motionLeave:!0};function IB(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({},EB),{motionName:Cu(e,"switch")})),n}var OB=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 PB(e){return e.filter(t=>t)}function MB(e,t){if(e)return e;const n=or(t).map(r=>{if(f__namespace.isValidElement(r)){const{key:o,props:a}=r,i=a||{},{tab:s}=i,l=OB(i,["tab"]);return Object.assign(Object.assign({key:String(o)},l),{label:s})}return null});return PB(n)}const RB=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}`}}}}},[Po(e,"slide-up"),Po(e,"slide-down")]]},_B=RB,TB=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}}}}}}},NB=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return {[`${t}-dropdown`]:Object.assign(Object.assign({},zt(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({},Yo),{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"}}})}})}},kB=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}}}}}},LB=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}}}}}},AB=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:a,horizontalItemPadding:i,itemSelectedColor:s,itemColor:l}=e,c=`${t}-tab`;return {[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:i,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},Zo(e)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-e.marginXXS},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${c}-active ${c}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${o}`]:{margin:0},[o]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:a}}}},zB=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"}}}}},DB=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({},zt(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}},Zo(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),AB(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"}}}}}},jB=Bt("Tabs",e=>{const t=bt(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 [LB(t),zB(t),kB(t),NB(t),TB(t),DB(t),_B(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}}),FB=()=>null,BB=FB;var HB=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 DS=e=>{const{type:t,className:n,rootClassName:r,size:o,onEdit:a,hideAdd:i,centered:s,addIcon:l,popupClassName:c,children:u,items:d,animated:m,style:g,indicatorSize:h}=e,v=HB(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:p,moreIcon:b=f__namespace.createElement(bh,null)}=v,{direction:y,tabs:C,getPrefixCls:$,getPopupContainer:x}=f__namespace.useContext(Je),w=$("tabs",p),[S,E]=jB(w);let I;t==="editable-card"&&(I={onEdit:(A,T)=>{let{key:M,event:_}=T;a==null||a(A==="add"?_:M,A);},removeIcon:f__namespace.createElement(_u,null),addIcon:l||f__namespace.createElement(tF,null),showAdd:i!==!0});const O=$(),R=MB(d,u),P=IB(w,m),k=Xn(o),L=Object.assign(Object.assign({},C==null?void 0:C.style),g);return S(f__namespace.createElement(xB,Object.assign({direction:y,getPopupContainer:x,moreTransitionName:`${O}-slide-up`},v,{items:R,className:V({[`${w}-${k}`]:k,[`${w}-card`]:["card","editable-card"].includes(t),[`${w}-editable-card`]:t==="editable-card",[`${w}-centered`]:s},C==null?void 0:C.className,n,r,E),popupClassName:V(c,E),style:L,editable:I,moreIcon:b,prefixCls:w,animated:P,indicatorSize:h??(C==null?void 0:C.indicatorSize)})))};DS.TabPane=BB;const WB=DS;function VB(e){return function(n){return f__namespace.createElement(Wg,{theme:{token:{motion:!1,zIndexPopupBase:0}}},f__namespace.createElement(e,Object.assign({},n)))}}function Eh(e,t,n,r){function o(a){const{prefixCls:i,style:s}=a,l=f__namespace.useRef(null),[c,u]=f__namespace.useState(0),[d,m]=f__namespace.useState(0),[g,h]=Vt(!1,{value:a.open}),{getPrefixCls:v}=f__namespace.useContext(Je),p=v(t||"select",i);f__namespace.useEffect(()=>{if(h(!0),typeof ResizeObserver<"u"){const y=new ResizeObserver($=>{const x=$[0].target;u(x.offsetHeight+8),m(x.offsetWidth);}),C=setInterval(()=>{var $;const x=n?`.${n(p)}`:`.${p}-dropdown`,w=($=l.current)===null||$===void 0?void 0:$.querySelector(x);w&&(clearInterval(C),y.observe(w));},10);return ()=>{clearInterval(C),y.disconnect();}}},[]);let b=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},s),{margin:0}),open:g,visible:g,getPopupContainer:()=>l.current});return r&&(b=r(b)),f__namespace.createElement("div",{ref:l,style:{paddingBottom:c,position:"relative",minWidth:d}},f__namespace.createElement(e,Object.assign({},b)))}return VB(o)}const GB=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:a,orientationMargin:i,verticalMarginInline:s}=e;return {[t]:Object.assign(Object.assign({},zt(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}}})}},KB=Bt("Divider",e=>{const t=bt(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return [GB(t)]},e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}));var UB=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 XB=e=>{const{getPrefixCls:t,direction:n,divider:r}=f__namespace.useContext(Je),{prefixCls:o,type:a="horizontal",orientation:i="center",orientationMargin:s,className:l,rootClassName:c,children:u,dashed:d,plain:m,style:g}=e,h=UB(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),v=t("divider",o),[p,b]=KB(v),y=i.length>0?`-${i}`:i,C=!!u,$=i==="left"&&s!=null,x=i==="right"&&s!=null,w=V(v,r==null?void 0:r.className,b,`${v}-${a}`,{[`${v}-with-text`]:C,[`${v}-with-text${y}`]:C,[`${v}-dashed`]:!!d,[`${v}-plain`]:!!m,[`${v}-rtl`]:n==="rtl",[`${v}-no-default-orientation-margin-left`]:$,[`${v}-no-default-orientation-margin-right`]:x},l,c),S=f__namespace.useMemo(()=>typeof s=="number"?s:/^\d+$/.test(s)?Number(s):s,[s]),E=Object.assign(Object.assign({},$&&{marginLeft:S}),x&&{marginRight:S});return p(f__namespace.createElement("div",Object.assign({className:w,style:Object.assign(Object.assign({},r==null?void 0:r.style),g)},h,{role:"separator"}),u&&a!=="vertical"&&f__namespace.createElement("span",{className:`${v}-inner-text`,style:E},u)))},qB=XB;var YB=["b"],QB=["v"],Bd=function(t){return Math.round(Number(t||0))},ZB=function(t){if(t&&at(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,o=Ye(n,YB);return U(U({},o),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},gc=function(e){_o(n,e);var t=To(n);function n(r){return Cn(this,n),t.call(this,ZB(r))}return Sn(n,[{key:"toHsbString",value:function(){var o=this.toHsb(),a=Bd(o.s*100),i=Bd(o.b*100),s=Bd(o.h),l=o.a,c="hsb(".concat(s,", ").concat(a,"%, ").concat(i,"%)"),u="hsba(".concat(s,", ").concat(a,"%, ").concat(i,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?c:u}},{key:"toHsb",value:function(){var o=this.toHsv();at(this.originalInput)==="object"&&this.originalInput&&"h"in this.originalInput&&(o=this.originalInput);var a=o;a.v;var i=Ye(a,QB);return U(U({},i),{},{b:o.v})}}]),n}(Yt),JB="rc-color-picker",Eo=function(t){return t instanceof gc?t:new gc(t)},eH=Eo("#1677ff"),jS=function(t){var n=t.offset,r=t.targetRef,o=t.containerRef,a=t.color,i=t.type,s=o.current.getBoundingClientRect(),l=s.width,c=s.height,u=r.current.getBoundingClientRect(),d=u.width,m=u.height,g=d/2,h=m/2,v=(n.x+g)/l,p=1-(n.y+h)/c,b=a.toHsb(),y=v,C=(n.x+g)/l*360;if(i)switch(i){case"hue":return Eo(U(U({},b),{},{h:C<=0?0:C}));case"alpha":return Eo(U(U({},b),{},{a:y<=0?0:y}))}return Eo({h:b.h,s:v<=0?0:v,b:p>=1?1:p,a:b.a})},FS=function(t,n,r,o){var a=t.current.getBoundingClientRect(),i=a.width,s=a.height,l=n.current.getBoundingClientRect(),c=l.width,u=l.height,d=c/2,m=u/2,g=r.toHsb();if(!(c===0&&u===0||c!==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}}},Ih=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 tH(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 BS(e){var t=e.offset,n=e.targetRef,r=e.containerRef,o=e.direction,a=e.onDragChange,i=e.onDragChangeComplete,s=e.calculate,l=e.color,c=e.disabledDrag,u=f.useState(t||{x:0,y:0}),d=Q(u,2),m=d[0],g=d[1],h=f.useRef(null),v=f.useRef(null),p=f.useRef({flag:!1});f.useEffect(function(){if(p.current.flag===!1){var x=s==null?void 0:s(r);x&&g(x);}},[l,r]),f.useEffect(function(){return function(){document.removeEventListener("mousemove",h.current),document.removeEventListener("mouseup",v.current),document.removeEventListener("touchmove",h.current),document.removeEventListener("touchend",v.current),h.current=null,v.current=null;}},[]);var b=function(w){var S=tH(w),E=S.pageX,I=S.pageY,O=r.current.getBoundingClientRect(),R=O.x,P=O.y,k=O.width,L=O.height,A=n.current.getBoundingClientRect(),T=A.width,M=A.height,_=T/2,D=M/2,F=Math.max(0,Math.min(E-R,k))-_,H=Math.max(0,Math.min(I-P,L))-D,B={x:F,y:o==="x"?m.y:H};if(T===0&&M===0||T!==M)return !1;g(B),a==null||a(B);},y=function(w){w.preventDefault(),b(w);},C=function(w){w.preventDefault(),p.current.flag=!1,document.removeEventListener("mousemove",h.current),document.removeEventListener("mouseup",v.current),document.removeEventListener("touchmove",h.current),document.removeEventListener("touchend",v.current),h.current=null,v.current=null,i==null||i();},$=function(w){document.removeEventListener("mousemove",h.current),document.removeEventListener("mouseup",v.current),!c&&(b(w),p.current.flag=!0,document.addEventListener("mousemove",y),document.addEventListener("mouseup",C),document.addEventListener("touchmove",y),document.addEventListener("touchend",C),h.current=y,v.current=C);};return [m,$]}var HS=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"),z({},"".concat(a,"-handler-sm"),r==="small")),style:{backgroundColor:o}})},WS=function(t){var n=t.children,r=t.style,o=t.prefixCls;return f.createElement("div",{className:"".concat(o,"-palette"),style:U({position:"relative"},r)},n)},VS=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)}),nH=function(t){var n=t.color,r=t.onChange,o=t.prefixCls,a=t.onChangeComplete,i=t.disabled,s=f.useRef(),l=f.useRef(),c=f.useRef(n),u=BS({color:n,containerRef:s,targetRef:l,calculate:function(v){return FS(v,l,n)},onDragChange:function(v){var p=jS({offset:v,targetRef:l,containerRef:s,color:n});c.current=p,r(p);},onDragChangeComplete:function(){return a==null?void 0:a(c.current)},disabledDrag:i}),d=Q(u,2),m=d[0],g=d[1];return f.createElement("div",{ref:s,className:"".concat(o,"-select"),onMouseDown:g,onTouchStart:g},f.createElement(WS,{prefixCls:o},f.createElement(VS,{offset:m,ref:l},f.createElement(HS,{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))"}})))},rH=function(t){var n=t.colors,r=t.children,o=t.direction,a=o===void 0?"to right":o,i=t.type,s=t.prefixCls,l=f.useMemo(function(){return n.map(function(c,u){var d=Eo(c);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(l,")")}},r)},Fb=function(t){var n=t.gradientColors,r=t.direction,o=t.type,a=o===void 0?"hue":o,i=t.color,s=t.value,l=t.onChange,c=t.onChangeComplete,u=t.disabled,d=t.prefixCls,m=f.useRef(),g=f.useRef(),h=f.useRef(i),v=BS({color:i,targetRef:g,containerRef:m,calculate:function($){return FS($,g,i,a)},onDragChange:function($){var x=jS({offset:$,targetRef:g,containerRef:m,color:i,type:a});h.current=x,l(x);},onDragChangeComplete:function(){c==null||c(h.current,a);},direction:"x",disabledDrag:u}),p=Q(v,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(WS,{prefixCls:d},f.createElement(VS,{offset:b,ref:g},f.createElement(HS,{size:"small",color:s,prefixCls:d})),f.createElement(rH,{colors:n,direction:r,type:a,prefixCls:d})))};function Bb(e){return e!==void 0}var oH=function(t,n){var r=n.defaultValue,o=n.value,a=f.useState(function(){var c;return Bb(o)?c=o:Bb(r)?c=r:c=t,Eo(c)}),i=Q(a,2),s=i[0],l=i[1];return f.useEffect(function(){o&&l(Eo(o));},[o]),[s,l]},aH=["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 iH=f.forwardRef(function(e,t){var n=e.value,r=e.defaultValue,o=e.prefixCls,a=o===void 0?JB:o,i=e.onChange,s=e.onChangeComplete,l=e.className,c=e.style,u=e.panelRender,d=e.disabledAlpha,m=d===void 0?!1:d,g=e.disabled,h=g===void 0?!1:g,v=oH(eH,{value:n,defaultValue:r}),p=Q(v,2),b=p[0],y=p[1],C=f.useMemo(function(){var E=Eo(b.toRgbString());return E.setAlpha(1),E.toRgbString()},[b]),$=V("".concat(a,"-panel"),l,z({},"".concat(a,"-panel-disabled"),h)),x={prefixCls:a,onChangeComplete:s,disabled:h},w=function(I,O){n||y(I),i==null||i(I,O);},S=f.createElement(f.Fragment,null,f.createElement(nH,Ie({color:b,onChange:w},x)),f.createElement("div",{className:"".concat(a,"-slider-container")},f.createElement("div",{className:V("".concat(a,"-slider-group"),z({},"".concat(a,"-slider-group-disabled-alpha"),m))},f.createElement(Fb,Ie({gradientColors:aH,color:b,value:"hsl(".concat(b.toHsb().h,",100%, 50%)"),onChange:function(I){return w(I,"hue")}},x)),!m&&f.createElement(Fb,Ie({type:"alpha",gradientColors:["rgba(255, 0, 4, 0) 0%",C],color:b,value:b.toRgbString(),onChange:function(I){return w(I,"alpha")}},x))),f.createElement(Ih,{color:b.toRgbString(),prefixCls:a})));return f.createElement("div",{className:$,style:c,ref:t},typeof u=="function"?u(S):S)}),GS=f.createContext({}),KS=f.createContext({}),{Provider:sH}=GS,{Provider:lH}=KS,Wl=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/gi,"").slice(0,t?8:6))||"",cH=(e,t)=>e?Wl(e,t):"";let Hb=function(){function e(t){Cn(this,e),this.metaColor=new gc(t),t||this.metaColor.setAlpha(0);}return Sn(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return cH(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 uH="ant-color-picker",kn=e=>e instanceof Hb?e:new Hb(e),Vl=e=>Math.round(Number(e||0)),hc=e=>Vl(e.toHsb().a*100),Hd=(e,t)=>{const n=e.toHsb();return n.a=t||1,kn(n)},dH=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})},US=dH;var Du=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,a=t.onMouseDown,i=t.onClick,s=t.children,l;return typeof r=="function"?l=r(o):l=r,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},l!==void 0?l:f__namespace.createElement("span",{className:V(n.split(/\s+/).map(function(c){return "".concat(c,"-icon")}))},s))};function fH(e,t,n,r,o){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,i=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,l=f.useMemo(function(){if(at(r)==="object")return r.clearIcon;if(o)return o},[r,o]),c=f.useMemo(function(){return !!(!a&&r&&(n.length||i)&&!(s==="combobox"&&i===""))},[r,a,n.length,i,s]);return {allowClear:c,clearIcon:f.createElement(Du,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:l},"×")}}var XS=f__namespace.createContext(null);function mH(){return f__namespace.useContext(XS)}function gH(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=f__namespace.useState(!1),n=Q(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(c,u){i(),a.current=window.setTimeout(function(){o(c),u&&u();},e);};return [r,s,i]}function qS(){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 hH(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 l=i.target;l.shadowRoot&&i.composed&&(l=i.composedPath()[0]||l),o.current.open&&e().filter(function(c){return c}).every(function(c){return !c.contains(l)&&c!==l})&&o.current.triggerOpen(!1);}}return window.addEventListener("mousedown",a),function(){return window.removeEventListener("mousedown",a)}},[]);}var vH=`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`,pH=`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`,bH="".concat(vH," ").concat(pH).split(/[\s\n]+/),yH="aria-",CH="data-";function Wb(e,t){return e.indexOf(t)===0}function Qa(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=U({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||Wb(o,yH))||n.data&&Wb(o,CH)||n.attr&&bH.includes(o))&&(r[o]=e[o]);}),r}var SH=function(t,n){var r,o=t.prefixCls,a=t.id,i=t.inputElement,s=t.disabled,l=t.tabIndex,c=t.autoFocus,u=t.autoComplete,d=t.editable,m=t.activeDescendantId,g=t.value,h=t.maxLength,v=t.onKeyDown,p=t.onMouseDown,b=t.onChange,y=t.onPaste,C=t.onCompositionStart,$=t.onCompositionEnd,x=t.open,w=t.attrs,S=i||f__namespace.createElement("input",null),E=S,I=E.ref,O=E.props,R=O.onKeyDown,P=O.onChange,k=O.onMouseDown,L=O.onCompositionStart,A=O.onCompositionEnd,T=O.style;return "maxLength"in S.props,S=f__namespace.cloneElement(S,U(U(U({type:"search"},O),{},{id:a,ref:Wn(n,I),disabled:s,tabIndex:l,autoComplete:u||"off",autoFocus:c,className:V("".concat(o,"-selection-search-input"),(r=S)===null||r===void 0||(r=r.props)===null||r===void 0?void 0:r.className),role:"combobox","aria-expanded":x||!1,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":x?m:void 0},w),{},{value:d?g:"",maxLength:h,readOnly:!d,unselectable:d?null:"on",style:U(U({},T),{},{opacity:d?null:0}),onKeyDown:function(_){v(_),R&&R(_);},onMouseDown:function(_){p(_),k&&k(_);},onChange:function(_){b(_),P&&P(_);},onCompositionStart:function(_){C(_),L&&L(_);},onCompositionEnd:function(_){$(_),A&&A(_);},onPaste:y})),S},Oh=f__namespace.forwardRef(SH);Oh.displayName="Input";function YS(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var $H=typeof window<"u"&&window.document&&window.document.documentElement,wH=$H;function xH(e){return e!=null}function EH(e){return !e&&e!==0}function Vb(e){return ["string","number"].includes(at(e))}function QS(e){var t=void 0;return e&&(Vb(e.title)?t=e.title.toString():Vb(e.label)&&(t=e.label.toString())),t}function IH(e,t){wH?f__namespace.useLayoutEffect(e,t):f__namespace.useEffect(e,t);}function OH(e){var t;return (t=e.key)!==null&&t!==void 0?t:e.value}var Gb=function(t){t.preventDefault(),t.stopPropagation();},PH=function(t){var n=t.id,r=t.prefixCls,o=t.values,a=t.open,i=t.searchValue,s=t.autoClearSearchValue,l=t.inputRef,c=t.placeholder,u=t.disabled,d=t.mode,m=t.showSearch,g=t.autoFocus,h=t.autoComplete,v=t.activeDescendantId,p=t.tabIndex,b=t.removeIcon,y=t.maxTagCount,C=t.maxTagTextLength,$=t.maxTagPlaceholder,x=$===void 0?function(Z){return "+ ".concat(Z.length," ...")}:$,w=t.tagRender,S=t.onToggleOpen,E=t.onRemove,I=t.onInputChange,O=t.onInputPaste,R=t.onInputKeyDown,P=t.onInputMouseDown,k=t.onInputCompositionStart,L=t.onInputCompositionEnd,A=f__namespace.useRef(null),T=f.useState(0),M=Q(T,2),_=M[0],D=M[1],F=f.useState(!1),H=Q(F,2),B=H[0],W=H[1],K="".concat(r,"-selection"),X=a||d==="multiple"&&s===!1||d==="tags"?i:"",q=d==="tags"||d==="multiple"&&s===!1||m&&(a||B);IH(function(){D(A.current.scrollWidth);},[X]);function ne(Z,oe,fe,J,se){return f__namespace.createElement("span",{className:V("".concat(K,"-item"),z({},"".concat(K,"-item-disabled"),fe)),title:QS(Z)},f__namespace.createElement("span",{className:"".concat(K,"-item-content")},oe),J&&f__namespace.createElement(Du,{className:"".concat(K,"-item-remove"),onMouseDown:Gb,onClick:se,customizeIcon:b},"×"))}function G(Z,oe,fe,J,se){var me=function(ie){Gb(ie),S(!a);};return f__namespace.createElement("span",{onMouseDown:me},w({label:oe,value:Z,disabled:fe,closable:J,onClose:se}))}function ee(Z){var oe=Z.disabled,fe=Z.label,J=Z.value,se=!u&&!oe,me=fe;if(typeof C=="number"&&(typeof fe=="string"||typeof fe=="number")){var re=String(me);re.length>C&&(me="".concat(re.slice(0,C),"..."));}var ie=function(be){be&&be.stopPropagation(),E(Z);};return typeof w=="function"?G(J,me,oe,se,ie):ne(Z,me,oe,se,ie)}function Y(Z){var oe=typeof x=="function"?x(Z):x;return ne({title:oe},oe,!1)}var ue=f__namespace.createElement("div",{className:"".concat(K,"-search"),style:{width:_},onFocus:function(){W(!0);},onBlur:function(){W(!1);}},f__namespace.createElement(Oh,{ref:l,open:a,prefixCls:r,id:n,inputElement:null,disabled:u,autoFocus:g,autoComplete:h,editable:q,activeDescendantId:v,value:X,onKeyDown:R,onMouseDown:P,onChange:I,onPaste:O,onCompositionStart:k,onCompositionEnd:L,tabIndex:p,attrs:Qa(t,!0)}),f__namespace.createElement("span",{ref:A,className:"".concat(K,"-search-mirror"),"aria-hidden":!0},X," ")),le=f__namespace.createElement(Kr,{prefixCls:"".concat(K,"-overflow"),data:o,renderItem:ee,renderRest:Y,suffix:ue,itemKey:OH,maxCount:y});return f__namespace.createElement(f__namespace.Fragment,null,le,!o.length&&!X&&f__namespace.createElement("span",{className:"".concat(K,"-placeholder")},c))},MH=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,a=t.inputRef,i=t.disabled,s=t.autoFocus,l=t.autoComplete,c=t.activeDescendantId,u=t.mode,d=t.open,m=t.values,g=t.placeholder,h=t.tabIndex,v=t.showSearch,p=t.searchValue,b=t.activeValue,y=t.maxLength,C=t.onInputKeyDown,$=t.onInputMouseDown,x=t.onInputChange,w=t.onInputPaste,S=t.onInputCompositionStart,E=t.onInputCompositionEnd,I=t.title,O=f__namespace.useState(!1),R=Q(O,2),P=R[0],k=R[1],L=u==="combobox",A=L||v,T=m[0],M=p||"";L&&b&&!P&&(M=b),f__namespace.useEffect(function(){L&&k(!1);},[L,b]);var _=u!=="combobox"&&!d&&!v?!1:!!M,D=I===void 0?QS(T):I,F=function(){if(T)return null;var B=_?{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(Oh,{ref:a,prefixCls:r,id:o,open:d,inputElement:n,disabled:i,autoFocus:s,autoComplete:l,editable:A,activeDescendantId:c,value:M,onKeyDown:C,onMouseDown:$,onChange:function(B){k(!0),x(B);},onPaste:w,onCompositionStart:S,onCompositionEnd:E,tabIndex:h,attrs:Qa(t,!0),maxLength:L?y:void 0})),!L&&T?f__namespace.createElement("span",{className:"".concat(r,"-selection-item"),title:D,style:_?{visibility:"hidden"}:void 0},T.label):null,F())};function RH(e){return ![de.ESC,de.SHIFT,de.BACKSPACE,de.TAB,de.WIN_KEY,de.ALT,de.META,de.WIN_KEY_RIGHT,de.CTRL,de.SEMICOLON,de.EQUALS,de.CAPS_LOCK,de.CONTEXT_MENU,de.F1,de.F2,de.F3,de.F4,de.F5,de.F6,de.F7,de.F8,de.F9,de.F10,de.F11,de.F12].includes(e)}var _H=function(t,n){var r=f.useRef(null),o=f.useRef(!1),a=t.prefixCls,i=t.open,s=t.mode,l=t.showSearch,c=t.tokenWithEnter,u=t.autoClearSearchValue,d=t.onSearch,m=t.onSearchSubmit,g=t.onToggleOpen,h=t.onInputKeyDown,v=t.domRef;f__namespace.useImperativeHandle(n,function(){return {focus:function(){r.current.focus();},blur:function(){r.current.blur();}}});var p=qS(0),b=Q(p,2),y=b[0],C=b[1],$=function(M){var _=M.which;(_===de.UP||_===de.DOWN)&&M.preventDefault(),h&&h(M),_===de.ENTER&&s==="tags"&&!o.current&&!i&&(m==null||m(M.target.value)),RH(_)&&g(!0);},x=function(){C(!0);},w=f.useRef(null),S=function(M){d(M,!0,o.current)!==!1&&g(!0);},E=function(){o.current=!0;},I=function(M){o.current=!1,s!=="combobox"&&S(M.target.value);},O=function(M){var _=M.target.value;if(c&&w.current&&/[\r\n]/.test(w.current)){var D=w.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");_=_.replace(D,w.current);}w.current=null,S(_);},R=function(M){var _=M.clipboardData,D=_.getData("text");w.current=D;},P=function(M){var _=M.target;if(_!==r.current){var D=document.body.style.msTouchAction!==void 0;D?setTimeout(function(){r.current.focus();}):r.current.focus();}},k=function(M){var _=y();M.target!==r.current&&!_&&s!=="combobox"&&M.preventDefault(),(s!=="combobox"&&(!l||!_)||!i)&&(i&&u!==!1&&d("",!0,!1),g());},L={inputRef:r,onInputKeyDown:$,onInputMouseDown:x,onInputChange:O,onInputPaste:R,onInputCompositionStart:E,onInputCompositionEnd:I},A=s==="multiple"||s==="tags"?f__namespace.createElement(PH,Ie({},t,L)):f__namespace.createElement(MH,Ie({},t,L));return f__namespace.createElement("div",{ref:v,className:"".concat(a,"-selector"),onClick:P,onMouseDown:k},A)},ZS=f__namespace.forwardRef(_H);ZS.displayName="Selector";var TH=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],NH=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"}}},kH=function(t,n){var r=t.prefixCls;t.disabled;var o=t.visible,a=t.children,i=t.popupElement,s=t.animation,l=t.transitionName,c=t.dropdownStyle,u=t.dropdownClassName,d=t.direction,m=d===void 0?"ltr":d,g=t.placement,h=t.builtinPlacements,v=t.dropdownMatchSelectWidth,p=t.dropdownRender,b=t.dropdownAlign,y=t.getPopupContainer,C=t.empty,$=t.getTriggerDOMNode,x=t.onPopupVisibleChange,w=t.onPopupMouseEnter,S=Ye(t,TH),E="".concat(r,"-dropdown"),I=i;p&&(I=p(i));var O=f__namespace.useMemo(function(){return h||NH(v)},[h,v]),R=s?"".concat(E,"-").concat(s):l,P=typeof v=="number",k=f__namespace.useMemo(function(){return P?null:v===!1?"minWidth":"width"},[v,P]),L=c;P&&(L=U(U({},L),{},{width:v}));var A=f__namespace.useRef(null);return f__namespace.useImperativeHandle(n,function(){return {getPopupElement:function(){return A.current}}}),f__namespace.createElement(yu,Ie({},S,{showAction:x?["click"]:[],hideAction:x?["click"]:[],popupPlacement:g||(m==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:O,prefixCls:E,popupTransitionName:R,popup:f__namespace.createElement("div",{ref:A,onMouseEnter:w},I),stretch:k,popupAlign:b,popupVisible:o,getPopupContainer:y,popupClassName:V(u,z({},"".concat(E,"-empty"),C)),popupStyle:L,getTriggerDOMNode:$,onPopupVisibleChange:x}),a)},JS=f__namespace.forwardRef(kH);JS.displayName="SelectTrigger";function Kb(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 e$(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 LH(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],a=e$(n,!1),i=a.label,s=a.value,l=a.options,c=a.groupLabel;function u(d,m){d.forEach(function(g){if(m||!(l in g)){var h=g[s];o.push({key:Kb(g,o.length),groupOption:m,data:g,label:g[i],value:h});}else {var v=g[c];v===void 0&&r&&(v=g.label),o.push({key:Kb(g,o.length),group:!0,data:g,label:v}),u(g[l],!0);}});}return u(e,!1),o}function pm(e){var t=U({},e);return "props"in t||Object.defineProperty(t,"props",{get:function(){return bn(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function AH(e,t){if(!t||!t.length)return null;var n=!1;function r(a,i){var s=z1(i),l=s[0],c=s.slice(1);if(!l)return [a];var u=a.split(l);return n=n||u.length>1,u.reduce(function(d,m){return [].concat(Re(d),Re(r(m,c)))},[]).filter(function(d){return d})}var o=r(e,t);return n?o:null}var zH=["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"],DH=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function bm(e){return e==="tags"||e==="multiple"}var jH=f__namespace.forwardRef(function(e,t){var n,r,o=e.id,a=e.prefixCls,i=e.className,s=e.showSearch,l=e.tagRender,c=e.direction,u=e.omitDomProps,d=e.displayValues,m=e.onDisplayValuesChange,g=e.emptyOptions,h=e.notFoundContent,v=h===void 0?"Not Found":h,p=e.onClear,b=e.mode,y=e.disabled,C=e.loading,$=e.getInputElement,x=e.getRawInputElement,w=e.open,S=e.defaultOpen,E=e.onDropdownVisibleChange,I=e.activeValue,O=e.onActiveValueChange,R=e.activeDescendantId,P=e.searchValue,k=e.autoClearSearchValue,L=e.onSearch,A=e.onSearchSplit,T=e.tokenSeparators,M=e.allowClear,_=e.suffixIcon,D=e.clearIcon,F=e.OptionList,H=e.animation,B=e.transitionName,W=e.dropdownStyle,K=e.dropdownClassName,X=e.dropdownMatchSelectWidth,q=e.dropdownRender,ne=e.dropdownAlign,G=e.placement,ee=e.builtinPlacements,Y=e.getPopupContainer,ue=e.showAction,le=ue===void 0?[]:ue,Z=e.onFocus,oe=e.onBlur,fe=e.onKeyUp,J=e.onKeyDown,se=e.onMouseDown,me=Ye(e,zH),re=bm(b),ie=(s!==void 0?s:re)||b==="combobox",ge=U({},me);DH.forEach(function(lt){delete ge[lt];}),u==null||u.forEach(function(lt){delete ge[lt];});var be=f__namespace.useState(!1),Te=Q(be,2),Ae=Te[0],Ve=Te[1];f__namespace.useEffect(function(){Ve(bu());},[]);var Oe=f__namespace.useRef(null),je=f__namespace.useRef(null),Qe=f__namespace.useRef(null),Be=f__namespace.useRef(null),Pe=f__namespace.useRef(null),we=f__namespace.useRef(!1),Ge=gH(),nt=Q(Ge,3),ft=nt[0],et=nt[1],Xe=nt[2];f__namespace.useImperativeHandle(t,function(){var lt,ze;return {focus:(lt=Be.current)===null||lt===void 0?void 0:lt.focus,blur:(ze=Be.current)===null||ze===void 0?void 0:ze.blur,scrollTo:function(vt){var St;return (St=Pe.current)===null||St===void 0?void 0:St.scrollTo(vt)}}});var gt=f__namespace.useMemo(function(){var lt;if(b!=="combobox")return P;var ze=(lt=d[0])===null||lt===void 0?void 0:lt.value;return typeof ze=="string"||typeof ze=="number"?String(ze):""},[P,b,d]),pt=b==="combobox"&&typeof $=="function"&&$()||null,ut=typeof x=="function"&&x(),dt=oa(je,ut==null||(n=ut.props)===null||n===void 0?void 0:n.ref),$t=f__namespace.useState(!1),Me=Q($t,2),_e=Me[0],Ne=Me[1];Wt(function(){Ne(!0);},[]);var ve=Vt(!1,{defaultValue:S,value:w}),De=Q(ve,2),xe=De[0],ae=De[1],te=_e?xe:!1,he=!v&&g;(y||he&&te&&b==="combobox")&&(te=!1);var ye=he?!1:te,$e=f__namespace.useCallback(function(lt){var ze=lt!==void 0?lt:!te;y||(ae(ze),te!==ze&&(E==null||E(ze)));},[y,te,ae,E]),Ue=f__namespace.useMemo(function(){return (T||[]).some(function(lt){return [`
`,`\r
`].includes(lt)})},[T]),qe=function(ze,tt,vt){var St=!0,Tt=ze;O==null||O(null);var Qt=vt?null:AH(ze,T);return b!=="combobox"&&Qt&&(Tt="",A==null||A(Qt),$e(!1),St=!1),L&&gt!==Tt&&L(Tt,{source:tt?"typing":"effect"}),St},Ct=function(ze){!ze||!ze.trim()||L(ze,{source:"submit"});};f__namespace.useEffect(function(){!te&&!re&&b!=="combobox"&&qe("",!1,!1);},[te]),f__namespace.useEffect(function(){xe&&y&&ae(!1),y&&!we.current&&et(!1);},[y]);var ht=qS(),Rt=Q(ht,2),yt=Rt[0],it=Rt[1],ke=function(ze){var tt=yt(),vt=ze.which;if(vt===de.ENTER&&(b!=="combobox"&&ze.preventDefault(),te||$e(!0)),it(!!gt),vt===de.BACKSPACE&&!tt&&re&&!gt&&d.length){for(var St=Re(d),Tt=null,Qt=St.length-1;Qt>=0;Qt-=1){var Dn=St[Qt];if(!Dn.disabled){St.splice(Qt,1),Tt=Dn;break}}Tt&&m(St,{type:"remove",values:[Tt]});}for(var Gn=arguments.length,$r=new Array(Gn>1?Gn-1:0),cr=1;cr<Gn;cr++)$r[cr-1]=arguments[cr];if(te&&Pe.current){var ca;(ca=Pe.current).onKeyDown.apply(ca,[ze].concat($r));}J==null||J.apply(void 0,[ze].concat($r));},Ee=function(ze){for(var tt=arguments.length,vt=new Array(tt>1?tt-1:0),St=1;St<tt;St++)vt[St-1]=arguments[St];if(te&&Pe.current){var Tt;(Tt=Pe.current).onKeyUp.apply(Tt,[ze].concat(vt));}fe==null||fe.apply(void 0,[ze].concat(vt));},Ce=function(ze){var tt=d.filter(function(vt){return vt!==ze});m(tt,{type:"remove",values:[ze]});},Se=f__namespace.useRef(!1),Fe=function(){et(!0),y||(Z&&!Se.current&&Z.apply(void 0,arguments),le.includes("focus")&&$e(!0)),Se.current=!0;},st=function(){we.current=!0,et(!1,function(){Se.current=!1,we.current=!1,$e(!1);}),!y&&(gt&&(b==="tags"?L(gt,{source:"submit"}):b==="multiple"&&L("",{source:"blur"})),oe&&oe.apply(void 0,arguments));},Ot=[];f__namespace.useEffect(function(){return function(){Ot.forEach(function(lt){return clearTimeout(lt)}),Ot.splice(0,Ot.length);}},[]);var It=function(ze){var tt,vt=ze.target,St=(tt=Qe.current)===null||tt===void 0?void 0:tt.getPopupElement();if(St&&St.contains(vt)){var Tt=setTimeout(function(){var $r=Ot.indexOf(Tt);if($r!==-1&&Ot.splice($r,1),Xe(),!Ae&&!St.contains(document.activeElement)){var cr;(cr=Be.current)===null||cr===void 0||cr.focus();}});Ot.push(Tt);}for(var Qt=arguments.length,Dn=new Array(Qt>1?Qt-1:0),Gn=1;Gn<Qt;Gn++)Dn[Gn-1]=arguments[Gn];se==null||se.apply(void 0,[ze].concat(Dn));},cn=f__namespace.useState({}),on=Q(cn,2),un=on[1];function An(){un({});}var pn;ut&&(pn=function(ze){$e(ze);}),hH(function(){var lt;return [Oe.current,(lt=Qe.current)===null||lt===void 0?void 0:lt.getPopupElement()]},ye,$e,!!ut);var Ar=f__namespace.useMemo(function(){return U(U({},e),{},{notFoundContent:v,open:te,triggerOpen:ye,id:o,showSearch:ie,multiple:re,toggleOpen:$e})},[e,v,ye,te,o,ie,re,$e]),Zr=!!_||C,zn;Zr&&(zn=f__namespace.createElement(Du,{className:V("".concat(a,"-arrow"),z({},"".concat(a,"-arrow-loading"),C)),customizeIcon:_,customizeIconProps:{loading:C,searchValue:gt,open:te,focused:ft,showSearch:ie}}));var ho=function(){var ze;p==null||p(),(ze=Be.current)===null||ze===void 0||ze.focus(),m([],{type:"clear",values:d}),qe("",!1,!1);},Sr=fH(a,ho,d,M,D,y,gt,b),qn=Sr.allowClear,lr=Sr.clearIcon,zr=f__namespace.createElement(F,{ref:Pe}),Dr=V(a,i,(r={},z(r,"".concat(a,"-focused"),ft),z(r,"".concat(a,"-multiple"),re),z(r,"".concat(a,"-single"),!re),z(r,"".concat(a,"-allow-clear"),M),z(r,"".concat(a,"-show-arrow"),Zr),z(r,"".concat(a,"-disabled"),y),z(r,"".concat(a,"-loading"),C),z(r,"".concat(a,"-open"),te),z(r,"".concat(a,"-customize-input"),pt),z(r,"".concat(a,"-show-search"),ie),r)),Vn=f__namespace.createElement(JS,{ref:Qe,disabled:y,prefixCls:a,visible:ye,popupElement:zr,animation:H,transitionName:B,dropdownStyle:W,dropdownClassName:K,direction:c,dropdownMatchSelectWidth:X,dropdownRender:q,dropdownAlign:ne,placement:G,builtinPlacements:ee,getPopupContainer:Y,empty:g,getTriggerDOMNode:function(){return je.current},onPopupVisibleChange:pn,onPopupMouseEnter:An},ut?f__namespace.cloneElement(ut,{ref:dt}):f__namespace.createElement(ZS,Ie({},e,{domRef:je,prefixCls:a,inputElement:pt,ref:Be,id:o,showSearch:ie,autoClearSearchValue:k,mode:b,activeDescendantId:R,tagRender:l,values:d,open:te,onToggleOpen:$e,activeValue:I,searchValue:gt,onSearch:qe,onSearchSubmit:Ct,onRemove:Ce,tokenWithEnter:Ue}))),jr;return ut?jr=Vn:jr=f__namespace.createElement("div",Ie({className:Dr},ge,{ref:Oe,onMouseDown:It,onKeyDown:ke,onKeyUp:Ee,onFocus:Fe,onBlur:st}),ft&&!te&&f__namespace.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(d.map(function(lt){var ze=lt.label,tt=lt.value;return ["number","string"].includes(at(ze))?ze:tt}).join(", "))),Vn,zn,qn&&lr),f__namespace.createElement(XS.Provider,{value:Ar},jr)}),Ph=function(){return null};Ph.isSelectOptGroup=!0;var Mh=function(){return null};Mh.isSelectOption=!0;var t$=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,l=e.innerProps,c=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=U(U({},m),{},(g={transform:"translateY(".concat(r,"px)")},z(g,c?"marginRight":"marginLeft",-o),z(g,"position","absolute"),z(g,"left",0),z(g,"right",0),z(g,"top",0),g));}return f__namespace.createElement("div",{style:d},f__namespace.createElement(vr,{onResize:function(v){var p=v.offsetHeight;p&&s&&s();}},f__namespace.createElement("div",Ie({style:m,className:V(z({},"".concat(i,"-holder-inner"),i)),ref:t},l),a,u)))});t$.displayName="Filler";function Ub(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]}var Xb=f__namespace.forwardRef(function(e,t){var n,r=e.prefixCls,o=e.rtl,a=e.scrollOffset,i=e.scrollRange,s=e.onStartMove,l=e.onStopMove,c=e.onScroll,u=e.horizontal,d=e.spinSize,m=e.containerSize,g=e.style,h=e.thumbStyle,v=f__namespace.useState(!1),p=Q(v,2),b=p[0],y=p[1],C=f__namespace.useState(null),$=Q(C,2),x=$[0],w=$[1],S=f__namespace.useState(null),E=Q(S,2),I=E[0],O=E[1],R=!o,P=f__namespace.useRef(),k=f__namespace.useRef(),L=f__namespace.useState(!1),A=Q(L,2),T=A[0],M=A[1],_=f__namespace.useRef(),D=function(){clearTimeout(_.current),M(!0),_.current=setTimeout(function(){M(!1);},3e3);},F=i-m||0,H=m-d||0,B=F>0,W=f__namespace.useMemo(function(){if(a===0||F===0)return 0;var le=a/F;return le*H},[a,F,H]),K=function(Z){Z.stopPropagation(),Z.preventDefault();},X=f__namespace.useRef({top:W,dragging:b,pageY:x,startTop:I});X.current={top:W,dragging:b,pageY:x,startTop:I};var q=function(Z){y(!0),w(Ub(Z,u)),O(X.current.top),s(),Z.stopPropagation(),Z.preventDefault();};f__namespace.useEffect(function(){var le=function(J){J.preventDefault();},Z=P.current,oe=k.current;return Z.addEventListener("touchstart",le),oe.addEventListener("touchstart",q),function(){Z.removeEventListener("touchstart",le),oe.removeEventListener("touchstart",q);}},[]);var ne=f__namespace.useRef();ne.current=F;var G=f__namespace.useRef();G.current=H,f__namespace.useEffect(function(){if(b){var le,Z=function(J){var se=X.current,me=se.dragging,re=se.pageY,ie=se.startTop;if(Et.cancel(le),me){var ge=Ub(J,u)-re,be=ie;!R&&u?be-=ge:be+=ge;var Te=ne.current,Ae=G.current,Ve=Ae?be/Ae:0,Oe=Math.ceil(Ve*Te);Oe=Math.max(Oe,0),Oe=Math.min(Oe,Te),le=Et(function(){c(Oe,u);});}},oe=function(){y(!1),l();};return window.addEventListener("mousemove",Z),window.addEventListener("touchmove",Z),window.addEventListener("mouseup",oe),window.addEventListener("touchend",oe),function(){window.removeEventListener("mousemove",Z),window.removeEventListener("touchmove",Z),window.removeEventListener("mouseup",oe),window.removeEventListener("touchend",oe),Et.cancel(le);}}},[b]),f__namespace.useEffect(function(){D();},[a]),f__namespace.useImperativeHandle(t,function(){return {delayHidden:D}});var ee="".concat(r,"-scrollbar"),Y={position:"absolute",visibility:T&&B?null:"hidden"},ue={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return u?(Y.height=8,Y.left=0,Y.right=0,Y.bottom=0,ue.height="100%",ue.width=d,R?ue.left=W:ue.right=W):(Y.width=8,Y.top=0,Y.bottom=0,R?Y.right=0:Y.left=0,ue.width="100%",ue.height=d,ue.top=W),f__namespace.createElement("div",{ref:P,className:V(ee,(n={},z(n,"".concat(ee,"-horizontal"),u),z(n,"".concat(ee,"-vertical"),!u),z(n,"".concat(ee,"-visible"),T),n)),style:U(U({},Y),g),onMouseDown:K,onMouseMove:D},f__namespace.createElement("div",{ref:k,className:V("".concat(ee,"-thumb"),z({},"".concat(ee,"-thumb-moving"),b)),style:U(U({},ue),h),onMouseDown:q}))});function FH(e){var t=e.children,n=e.setRef,r=f__namespace.useCallback(function(o){n(o);},[]);return f__namespace.cloneElement(t,{ref:r})}function BH(e,t,n,r,o,a,i){var s=i.getKey;return e.slice(t,n+1).map(function(l,c){var u=t+c,d=a(l,u,{style:{width:r}}),m=s(l);return f__namespace.createElement(FH,{key:m,setRef:function(h){return o(l,h)}},d)})}var HH=function(){function e(){Cn(this,e),this.maps=void 0,this.id=0,this.maps=Object.create(null);}return Sn(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 WH(e,t,n){var r=f__namespace.useState(0),o=Q(r,2),a=o[0],i=o[1],s=f.useRef(new Map),l=f.useRef(new HH),c=f.useRef();function u(){Et.cancel(c.current);}function d(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;u();var h=function(){s.current.forEach(function(p,b){if(p&&p.offsetParent){var y=Ki(p),C=y.offsetHeight;l.current.get(b)!==C&&l.current.set(b,y.offsetHeight);}}),i(function(p){return p+1});};g?h():c.current=Et(h);}function m(g,h){var v=e(g),p=s.current.get(v);h?(s.current.set(v,h),d()):s.current.delete(v),!p!=!h&&(h?t==null||t(g):n==null||n(g));}return f.useEffect(function(){return u},[]),[m,d,l.current,a]}var VH=10;function GH(e,t,n,r,o,a,i,s){var l=f__namespace.useRef(),c=f__namespace.useState(null),u=Q(c,2),d=u[0],m=u[1];return Wt(function(){if(d&&d.times<VH){if(!e.current){m(function(D){return U({},D)});return}a();var g=d.targetAlign,h=d.originAlign,v=d.index,p=d.offset,b=e.current.clientHeight,y=!1,C=g,$=null;if(b){for(var x=g||h,w=0,S=0,E=0,I=Math.min(t.length-1,v),O=0;O<=I;O+=1){var R=o(t[O]);S=w;var P=n.get(R);E=S+(P===void 0?r:P),w=E;}for(var k=x==="top"?p:b-p,L=I;L>=0;L-=1){var A=o(t[L]),T=n.get(A);if(T===void 0){y=!0;break}if(k-=T,k<=0)break}switch(x){case"top":$=S-p;break;case"bottom":$=E-b+p;break;default:{var M=e.current.scrollTop,_=M+b;S<M?C="top":E>_&&(C="bottom");}}$!==null&&i($),$!==d.lastTop&&(y=!0);}y&&m(function(D){return U(U({},D),{},{times:D.times+1,targetAlign:C,lastTop:$})});}},[d,e.current]),function(g){if(g==null){s();return}if(Et.cancel(l.current),typeof g=="number")i(g);else if(g&&at(g)==="object"){var h,v=g.align;"index"in g?h=g.index:h=t.findIndex(function(y){return o(y)===g.key});var p=g.offset,b=p===void 0?0:p;m({times:0,index:h,offset:b,originAlign:v});}}}function KH(e,t,n){var r=e.length,o=t.length,a,i;if(r===0&&o===0)return null;r<o?(a=e,i=t):(a=t,i=e);var s={__EMPTY_ITEM__:!0};function l(h){return h!==void 0?n(h):s}for(var c=null,u=Math.abs(r-o)!==1,d=0;d<i.length;d+=1){var m=l(a[d]),g=l(i[d]);if(m!==g){c=d,u=u||m!==l(i[d+1]);break}}return c===null?null:{index:c,multiple:u}}function UH(e,t,n){var r=f__namespace.useState(e),o=Q(r,2),a=o[0],i=o[1],s=f__namespace.useState(null),l=Q(s,2),c=l[0],u=l[1];return f__namespace.useEffect(function(){var d=KH(a||[],e||[],t);(d==null?void 0:d.index)!==void 0&&(n==null||n(d.index),u(e[d.index])),i(e);},[e]),[c]}var qb=(typeof navigator>"u"?"undefined":at(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const n$=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,l=i<0&&a.current.top||i>0&&a.current.bottom;return s&&l?(clearTimeout(r.current),n.current=!1):(!l||n.current)&&o(),!n.current&&l}};function XH(e,t,n,r,o){var a=f.useRef(0),i=f.useRef(null),s=f.useRef(null),l=f.useRef(!1),c=n$(t,n);function u(p,b){Et.cancel(i.current),a.current+=b,s.current=b,!c(b)&&(qb||p.preventDefault(),i.current=Et(function(){var y=l.current?10:1;o(a.current*y),a.current=0;}));}function d(p,b){o(b,!0),qb||p.preventDefault();}var m=f.useRef(null),g=f.useRef(null);function h(p){if(e){Et.cancel(g.current),g.current=Et(function(){m.current=null;},2);var b=p.deltaX,y=p.deltaY,C=p.shiftKey,$=b,x=y;(m.current==="sx"||!m.current&&C&&y&&!b)&&($=y,x=0,m.current="sx");var w=Math.abs($),S=Math.abs(x);m.current===null&&(m.current=r&&w>S?"x":"y"),m.current==="y"?u(p,x):d(p,$);}}function v(p){e&&(l.current=p.detail===s.current);}return [h,v]}var qH=14/15;function YH(e,t,n){var r=f.useRef(!1),o=f.useRef(0),a=f.useRef(null),i=f.useRef(null),s,l=function(m){if(r.current){var g=Math.ceil(m.touches[0].pageY),h=o.current-g;o.current=g,n(h)&&m.preventDefault(),clearInterval(i.current),i.current=setInterval(function(){h*=qH,(!n(h,!0)||Math.abs(h)<=.1)&&clearInterval(i.current);},16);}},c=function(){r.current=!1,s();},u=function(m){s(),m.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(m.touches[0].pageY),a.current=m.target,a.current.addEventListener("touchmove",l),a.current.addEventListener("touchend",c));};s=function(){a.current&&(a.current.removeEventListener("touchmove",l),a.current.removeEventListener("touchend",c));},Wt(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 QH=20;function Yb(){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,QH),n=Math.min(n,e/2),Math.floor(n)}function ZH(e,t,n,r){var o=f__namespace.useMemo(function(){return [new Map,[]]},[e,n.id,r]),a=Q(o,2),i=a[0],s=a[1],l=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 h=e.length,v=s.length;v<h;v+=1){var p,b=e[v],y=t(b);i.set(y,v);var C=(p=n.get(y))!==null&&p!==void 0?p:r;if(s[v]=(s[v-1]||0)+C,y===u&&(m=v),y===d&&(g=v),m!==void 0&&g!==void 0)break}return {top:s[m-1]||0,bottom:s[g]}};return l}var JH=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],e9=[],t9={overflowY:"auto",overflowAnchor:"none"};function n9(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,o=e.className,a=e.height,i=e.itemHeight,s=e.fullHeight,l=s===void 0?!0:s,c=e.style,u=e.data,d=e.children,m=e.itemKey,g=e.virtual,h=e.direction,v=e.scrollWidth,p=e.component,b=p===void 0?"div":p,y=e.onScroll,C=e.onVirtualScroll,$=e.onVisibleChange,x=e.innerProps,w=e.extraRender,S=e.styles,E=Ye(e,JH),I=!!(g!==!1&&a&&i),O=I&&u&&(i*u.length>a||!!v),R=h==="rtl",P=V(r,z({},"".concat(r,"-rtl"),R),o),k=u||e9,L=f.useRef(),A=f.useRef(),T=f.useState(0),M=Q(T,2),_=M[0],D=M[1],F=f.useState(0),H=Q(F,2),B=H[0],W=H[1],K=f.useState(!1),X=Q(K,2),q=X[0],ne=X[1],G=function(){ne(!0);},ee=function(){ne(!1);},Y=f__namespace.useCallback(function(Ce){return typeof m=="function"?m(Ce):Ce==null?void 0:Ce[m]},[m]),ue={getKey:Y};function le(Ce){D(function(Se){var Fe;typeof Ce=="function"?Fe=Ce(Se):Fe=Ce;var st=dt(Fe);return L.current.scrollTop=st,st});}var Z=f.useRef({start:0,end:k.length}),oe=f.useRef(),fe=UH(k,Y),J=Q(fe,1),se=J[0];oe.current=se;var me=WH(Y,null,null),re=Q(me,4),ie=re[0],ge=re[1],be=re[2],Te=re[3],Ae=f__namespace.useMemo(function(){if(!I)return {scrollHeight:void 0,start:0,end:k.length-1,offset:void 0};if(!O){var Ce;return {scrollHeight:((Ce=A.current)===null||Ce===void 0?void 0:Ce.offsetHeight)||0,start:0,end:k.length-1,offset:void 0}}for(var Se=0,Fe,st,Ot,It=k.length,cn=0;cn<It;cn+=1){var on=k[cn],un=Y(on),An=be.get(un),pn=Se+(An===void 0?i:An);pn>=_&&Fe===void 0&&(Fe=cn,st=Se),pn>_+a&&Ot===void 0&&(Ot=cn),Se=pn;}return Fe===void 0&&(Fe=0,st=0,Ot=Math.ceil(a/i)),Ot===void 0&&(Ot=k.length-1),Ot=Math.min(Ot+1,k.length-1),{scrollHeight:Se,start:Fe,end:Ot,offset:st}},[O,I,_,k,Te,a]),Ve=Ae.scrollHeight,Oe=Ae.start,je=Ae.end,Qe=Ae.offset;Z.current.start=Oe,Z.current.end=je;var Be=f__namespace.useState({width:0,height:a}),Pe=Q(Be,2),we=Pe[0],Ge=Pe[1],nt=function(Se){Ge(Se);},ft=f.useRef(),et=f.useRef(),Xe=f__namespace.useMemo(function(){return Yb(we.width,v)},[we.width,v]),gt=f__namespace.useMemo(function(){return Yb(we.height,Ve)},[we.height,Ve]),pt=Ve-a,ut=f.useRef(pt);ut.current=pt;function dt(Ce){var Se=Ce;return Number.isNaN(ut.current)||(Se=Math.min(Se,ut.current)),Se=Math.max(Se,0),Se}var $t=_<=0,Me=_>=pt,_e=n$($t,Me),Ne=function(){return {x:R?-B:B,y:_}},ve=f.useRef(Ne()),De=Tn(function(){if(C){var Ce=Ne();(ve.current.x!==Ce.x||ve.current.y!==Ce.y)&&(C(Ce),ve.current=Ce);}});function xe(Ce,Se){var Fe=Ce;Se?(dy.flushSync(function(){W(Fe);}),De()):le(Fe);}function ae(Ce){var Se=Ce.currentTarget.scrollTop;Se!==_&&le(Se),y==null||y(Ce),De();}var te=function(Se){var Fe=Se,st=v-we.width;return Fe=Math.max(Fe,0),Fe=Math.min(Fe,st),Fe},he=Tn(function(Ce,Se){Se?(dy.flushSync(function(){W(function(Fe){var st=Fe+(R?-Ce:Ce);return te(st)});}),De()):le(function(Fe){var st=Fe+Ce;return st});}),ye=XH(I,$t,Me,!!v,he),$e=Q(ye,2),Ue=$e[0],qe=$e[1];YH(I,L,function(Ce,Se){return _e(Ce,Se)?!1:(Ue({preventDefault:function(){},deltaY:Ce}),!0)}),Wt(function(){function Ce(Fe){I&&Fe.preventDefault();}var Se=L.current;return Se.addEventListener("wheel",Ue),Se.addEventListener("DOMMouseScroll",qe),Se.addEventListener("MozMousePixelScroll",Ce),function(){Se.removeEventListener("wheel",Ue),Se.removeEventListener("DOMMouseScroll",qe),Se.removeEventListener("MozMousePixelScroll",Ce);}},[I]),Wt(function(){v&&W(function(Ce){return te(Ce)});},[we.width,v]);var Ct=function(){var Se,Fe;(Se=ft.current)===null||Se===void 0||Se.delayHidden(),(Fe=et.current)===null||Fe===void 0||Fe.delayHidden();},ht=GH(L,k,be,i,Y,function(){return ge(!0)},le,Ct);f__namespace.useImperativeHandle(t,function(){return {getScrollInfo:Ne,scrollTo:function(Se){function Fe(st){return st&&at(st)==="object"&&("left"in st||"top"in st)}Fe(Se)?(Se.left!==void 0&&W(te(Se.left)),ht(Se.top)):ht(Se);}}}),Wt(function(){if($){var Ce=k.slice(Oe,je+1);$(Ce,k);}},[Oe,je,k]);var Rt=ZH(k,Y,be,i),yt=w==null?void 0:w({start:Oe,end:je,virtual:O,offsetX:B,offsetY:Qe,rtl:R,getSize:Rt}),it=BH(k,Oe,je,v,ie,d,ue),ke=null;a&&(ke=U(z({},l?"height":"maxHeight",a),t9),I&&(ke.overflowY="hidden",v&&(ke.overflowX="hidden"),q&&(ke.pointerEvents="none")));var Ee={};return R&&(Ee.dir="rtl"),f__namespace.createElement("div",Ie({style:U(U({},c),{},{position:"relative"}),className:P},Ee,E),f__namespace.createElement(vr,{onResize:nt},f__namespace.createElement(b,{className:"".concat(r,"-holder"),style:ke,ref:L,onScroll:ae,onMouseEnter:Ct},f__namespace.createElement(t$,{prefixCls:r,height:Ve,offsetX:B,offsetY:Qe,scrollWidth:v,onInnerResize:ge,ref:A,innerProps:x,rtl:R,extra:yt},it))),O&&Ve>a&&f__namespace.createElement(Xb,{ref:ft,prefixCls:r,scrollOffset:_,scrollRange:Ve,rtl:R,onScroll:xe,onStartMove:G,onStopMove:ee,spinSize:gt,containerSize:we.height,style:S==null?void 0:S.verticalScrollBar,thumbStyle:S==null?void 0:S.verticalScrollBarThumb}),O&&v&&f__namespace.createElement(Xb,{ref:et,prefixCls:r,scrollOffset:B,scrollRange:v,rtl:R,onScroll:xe,onStartMove:G,onStopMove:ee,spinSize:Xe,containerSize:we.width,horizontal:!0,style:S==null?void 0:S.horizontalScrollBar,thumbStyle:S==null?void 0:S.horizontalScrollBarThumb}))}var r$=f__namespace.forwardRef(n9);r$.displayName="List";var o$=f__namespace.createContext(null);function r9(){return /(mac\sos|macintosh)/i.test(navigator.appVersion)}var o9=["disabled","title","children","style","className"];function Qb(e){return typeof e=="string"||typeof e=="number"}var a9=function(t,n){var r=mH(),o=r.prefixCls,a=r.id,i=r.open,s=r.multiple,l=r.mode,c=r.searchValue,u=r.toggleOpen,d=r.notFoundContent,m=r.onPopupScroll,g=f__namespace.useContext(o$),h=g.flattenOptions,v=g.onActiveValue,p=g.defaultActiveFirstOption,b=g.onSelect,y=g.menuItemSelectedIcon,C=g.rawValues,$=g.fieldNames,x=g.virtual,w=g.direction,S=g.listHeight,E=g.listItemHeight,I=g.optionRender,O="".concat(o,"-item"),R=_s(function(){return h},[i,h],function(G,ee){return ee[0]&&G[1]!==ee[1]}),P=f__namespace.useRef(null),k=function(ee){ee.preventDefault();},L=function(ee){P.current&&P.current.scrollTo(typeof ee=="number"?{index:ee}:ee);},A=function(ee){for(var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ue=R.length,le=0;le<ue;le+=1){var Z=(ee+le*Y+ue)%ue,oe=R[Z],fe=oe.group,J=oe.data;if(!fe&&!J.disabled)return Z}return -1},T=f__namespace.useState(function(){return A(0)}),M=Q(T,2),_=M[0],D=M[1],F=function(ee){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;D(ee);var ue={source:Y?"keyboard":"mouse"},le=R[ee];if(!le){v(null,-1,ue);return}v(le.value,ee,ue);};f.useEffect(function(){F(p!==!1?A(0):-1);},[R.length,c]);var H=f__namespace.useCallback(function(G){return C.has(G)&&l!=="combobox"},[l,Re(C).toString(),C.size]);f.useEffect(function(){var G=setTimeout(function(){if(!s&&i&&C.size===1){var Y=Array.from(C)[0],ue=R.findIndex(function(le){var Z=le.data;return Z.value===Y});ue!==-1&&(F(ue),L(ue));}});if(i){var ee;(ee=P.current)===null||ee===void 0||ee.scrollTo(void 0);}return function(){return clearTimeout(G)}},[i,c]);var B=function(ee){ee!==void 0&&b(ee,{selected:!C.has(ee)}),s||u(!1);};if(f__namespace.useImperativeHandle(n,function(){return {onKeyDown:function(ee){var Y=ee.which,ue=ee.ctrlKey;switch(Y){case de.N:case de.P:case de.UP:case de.DOWN:{var le=0;if(Y===de.UP?le=-1:Y===de.DOWN?le=1:r9()&&ue&&(Y===de.N?le=1:Y===de.P&&(le=-1)),le!==0){var Z=A(_+le,le);L(Z),F(Z,!0);}break}case de.ENTER:{var oe=R[_];oe&&!oe.data.disabled?B(oe.value):B(void 0),i&&ee.preventDefault();break}case de.ESC:u(!1),i&&ee.stopPropagation();}},onKeyUp:function(){},scrollTo:function(ee){L(ee);}}}),R.length===0)return f__namespace.createElement("div",{role:"listbox",id:"".concat(a,"_list"),className:"".concat(O,"-empty"),onMouseDown:k},d);var W=Object.keys($).map(function(G){return $[G]}),K=function(ee){return ee.label};function X(G,ee){var Y=G.group;return {role:Y?"presentation":"option",id:"".concat(a,"_list_").concat(ee)}}var q=function(ee){var Y=R[ee];if(!Y)return null;var ue=Y.data||{},le=ue.value,Z=Y.group,oe=Qa(ue,!0),fe=K(Y);return Y?f__namespace.createElement("div",Ie({"aria-label":typeof fe=="string"&&!Z?fe:null},oe,{key:ee},X(Y,ee),{"aria-selected":H(le)}),le):null},ne={role:"listbox",id:"".concat(a,"_list")};return f__namespace.createElement(f__namespace.Fragment,null,x&&f__namespace.createElement("div",Ie({},ne,{style:{height:0,width:0,overflow:"hidden"}}),q(_-1),q(_),q(_+1)),f__namespace.createElement(r$,{itemKey:"key",ref:P,data:R,height:S,itemHeight:E,fullHeight:!1,onMouseDown:k,onScroll:m,virtual:x,direction:w,innerProps:x?null:ne},function(G,ee){var Y,ue=G.group,le=G.groupOption,Z=G.data,oe=G.label,fe=G.value,J=Z.key;if(ue){var se,me=(se=Z.title)!==null&&se!==void 0?se:Qb(oe)?oe.toString():void 0;return f__namespace.createElement("div",{className:V(O,"".concat(O,"-group")),title:me},oe!==void 0?oe:J)}var re=Z.disabled,ie=Z.title;Z.children;var ge=Z.style,be=Z.className,Te=Ye(Z,o9),Ae=Ln(Te,W),Ve=H(fe),Oe="".concat(O,"-option"),je=V(O,Oe,be,(Y={},z(Y,"".concat(Oe,"-grouped"),le),z(Y,"".concat(Oe,"-active"),_===ee&&!re),z(Y,"".concat(Oe,"-disabled"),re),z(Y,"".concat(Oe,"-selected"),Ve),Y)),Qe=K(G),Be=!y||typeof y=="function"||Ve,Pe=typeof Qe=="number"?Qe:Qe||fe,we=Qb(Pe)?Pe.toString():void 0;return ie!==void 0&&(we=ie),f__namespace.createElement("div",Ie({},Qa(Ae),x?{}:X(G,ee),{"aria-selected":Ve,className:je,title:we,onMouseMove:function(){_===ee||re||F(ee);},onClick:function(){re||B(fe);},style:ge}),f__namespace.createElement("div",{className:"".concat(Oe,"-content")},typeof I=="function"?I(G,{index:ee}):Pe),f__namespace.isValidElement(y)||Ve,Be&&f__namespace.createElement(Du,{className:"".concat(O,"-option-state"),customizeIcon:y,customizeIconProps:{value:fe,disabled:re,isSelected:Ve}},Ve?"✓":null))}))},a$=f__namespace.forwardRef(a9);a$.displayName="OptionList";const i9=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,l=e.map(function(d){if(d.label===void 0){var m;return U(U({},d),{},{label:(m=i.get(d.value))===null||m===void 0?void 0:m.label})}return d}),c=new Map,u=new Map;return l.forEach(function(d){c.set(d.value,d),u.set(d.value,t.get(d.value)||s.get(d.value));}),n.current.values=c,n.current.options=u,l},[e,t]),o=f__namespace.useCallback(function(a){return t.get(a)||n.current.options.get(a)},[t]);return [r,o]};function Wd(e,t){return YS(e).join("").toUpperCase().includes(t)}const s9=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,l=[],c=typeof r=="function",u=n.toUpperCase(),d=c?r:function(g,h){return o?Wd(h[o],u):h[a]?Wd(h[i!=="children"?i:"label"],u):Wd(h[s],u)},m=c?function(g){return pm(g)}:function(g){return g};return e.forEach(function(g){if(g[a]){var h=d(n,m(g));if(h)l.push(g);else {var v=g[a].filter(function(p){return d(n,m(p))});v.length&&l.push(U(U({},g),{},z({},a,v)));}return}d(n,m(g))&&l.push(g);}),l},[e,r,o,n,t])};var Zb=0,l9=Fn();function c9(){var e;return l9?(e=Zb,Zb+=1):e="TEST_OR_SSR",e}function u9(e){var t=f__namespace.useState(),n=Q(t,2),r=n[0],o=n[1];return f__namespace.useEffect(function(){o("rc_select_".concat(c9()));},[]),e||r}var d9=["children","value"],f9=["children"];function m9(e){var t=e,n=t.key,r=t.props,o=r.children,a=r.value,i=Ye(r,d9);return U({key:n,value:a!==void 0?a:n,children:o},i)}function i$(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return or(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,l=s.children,c=Ye(s,f9);return t||!a?m9(n):U(U({key:"__RC_SELECT_GRP__".concat(i===null?r:i,"__"),label:i},c),{},{options:i$(l)})}).filter(function(n){return n})}function g9(e,t,n,r,o){return f__namespace.useMemo(function(){var a=e,i=!e;i&&(a=i$(t));var s=new Map,l=new Map,c=function(m,g,h){h&&typeof h=="string"&&m.set(g[h],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 h=d[g];!h[n.options]||m?(s.set(h[n.value],h),c(l,h,n.label),c(l,h,r),c(l,h,o)):u(h[n.options],!0);}}return u(a),{options:a,valueOptions:s,labelOptions:l}},[e,t,n,r,o])}function Jb(e){var t=f__namespace.useRef();t.current=e;var n=f__namespace.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var h9=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],v9=["inputValue"];function p9(e){return !e||at(e)!=="object"}var b9=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,l=e.inputValue,c=e.searchValue,u=e.onSearch,d=e.autoClearSearchValue,m=d===void 0?!0:d,g=e.onSelect,h=e.onDeselect,v=e.dropdownMatchSelectWidth,p=v===void 0?!0:v,b=e.filterOption,y=e.filterSort,C=e.optionFilterProp,$=e.optionLabelProp,x=e.options,w=e.optionRender,S=e.children,E=e.defaultActiveFirstOption,I=e.menuItemSelectedIcon,O=e.virtual,R=e.direction,P=e.listHeight,k=P===void 0?200:P,L=e.listItemHeight,A=L===void 0?20:L,T=e.value,M=e.defaultValue,_=e.labelInValue,D=e.onChange,F=Ye(e,h9),H=u9(n),B=bm(r),W=!!(!x&&S),K=f__namespace.useMemo(function(){return b===void 0&&r==="combobox"?!1:b},[b,r]),X=f__namespace.useMemo(function(){return e$(s,W)},[JSON.stringify(s),W]),q=Vt("",{value:c!==void 0?c:l,postState:function(he){return he||""}}),ne=Q(q,2),G=ne[0],ee=ne[1],Y=g9(x,S,X,C,$),ue=Y.valueOptions,le=Y.labelOptions,Z=Y.options,oe=f__namespace.useCallback(function(te){var he=YS(te);return he.map(function(ye){var $e,Ue,qe,Ct,ht;if(p9(ye))$e=ye;else {var Rt;qe=ye.key,Ue=ye.label,$e=(Rt=ye.value)!==null&&Rt!==void 0?Rt:qe;}var yt=ue.get($e);if(yt){var it;Ue===void 0&&(Ue=yt==null?void 0:yt[$||X.label]),qe===void 0&&(qe=(it=yt==null?void 0:yt.key)!==null&&it!==void 0?it:$e),Ct=yt==null?void 0:yt.disabled,ht=yt==null?void 0:yt.title;}return {label:Ue,value:$e,key:qe,disabled:Ct,title:ht}})},[X,$,ue]),fe=Vt(M,{value:T}),J=Q(fe,2),se=J[0],me=J[1],re=f__namespace.useMemo(function(){var te,he=oe(se);return r==="combobox"&&EH((te=he[0])===null||te===void 0?void 0:te.value)?[]:he},[se,oe,r]),ie=i9(re,ue),ge=Q(ie,2),be=ge[0],Te=ge[1],Ae=f__namespace.useMemo(function(){if(!r&&be.length===1){var te=be[0];if(te.value===null&&(te.label===null||te.label===void 0))return []}return be.map(function(he){var ye;return U(U({},he),{},{label:(ye=he.label)!==null&&ye!==void 0?ye:he.value})})},[r,be]),Ve=f__namespace.useMemo(function(){return new Set(be.map(function(te){return te.value}))},[be]);f__namespace.useEffect(function(){if(r==="combobox"){var te,he=(te=be[0])===null||te===void 0?void 0:te.value;ee(xH(he)?String(he):"");}},[be]);var Oe=Jb(function(te,he){var ye,$e=he??te;return ye={},z(ye,X.value,te),z(ye,X.label,$e),ye}),je=f__namespace.useMemo(function(){if(r!=="tags")return Z;var te=Re(Z),he=function($e){return ue.has($e)};return Re(be).sort(function(ye,$e){return ye.value<$e.value?-1:1}).forEach(function(ye){var $e=ye.value;he($e)||te.push(Oe($e,ye.label));}),te},[Oe,Z,ue,be,r]),Qe=s9(je,X,G,K,C),Be=f__namespace.useMemo(function(){return r!=="tags"||!G||Qe.some(function(te){return te[C||"value"]===G})||Qe.some(function(te){return te[X.value]===G})?Qe:[Oe(G)].concat(Re(Qe))},[Oe,C,r,Qe,G,X]),Pe=f__namespace.useMemo(function(){return y?Re(Be).sort(function(te,he){return y(te,he)}):Be},[Be,y]),we=f__namespace.useMemo(function(){return LH(Pe,{fieldNames:X,childrenAsData:W})},[Pe,X,W]),Ge=function(he){var ye=oe(he);if(me(ye),D&&(ye.length!==be.length||ye.some(function(qe,Ct){var ht;return ((ht=be[Ct])===null||ht===void 0?void 0:ht.value)!==(qe==null?void 0:qe.value)}))){var $e=_?ye:ye.map(function(qe){return qe.value}),Ue=ye.map(function(qe){return pm(Te(qe.value))});D(B?$e:$e[0],B?Ue:Ue[0]);}},nt=f__namespace.useState(null),ft=Q(nt,2),et=ft[0],Xe=ft[1],gt=f__namespace.useState(0),pt=Q(gt,2),ut=pt[0],dt=pt[1],$t=E!==void 0?E:r!=="combobox",Me=f__namespace.useCallback(function(te,he){var ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},$e=ye.source,Ue=$e===void 0?"keyboard":$e;dt(he),i&&r==="combobox"&&te!==null&&Ue==="keyboard"&&Xe(String(te));},[i,r]),_e=function(he,ye,$e){var Ue=function(){var Se,Fe=Te(he);return [_?{label:Fe==null?void 0:Fe[X.label],value:he,key:(Se=Fe==null?void 0:Fe.key)!==null&&Se!==void 0?Se:he}:he,pm(Fe)]};if(ye&&g){var qe=Ue(),Ct=Q(qe,2),ht=Ct[0],Rt=Ct[1];g(ht,Rt);}else if(!ye&&h&&$e!=="clear"){var yt=Ue(),it=Q(yt,2),ke=it[0],Ee=it[1];h(ke,Ee);}},Ne=Jb(function(te,he){var ye,$e=B?he.selected:!0;$e?ye=B?[].concat(Re(be),[te]):[te]:ye=be.filter(function(Ue){return Ue.value!==te}),Ge(ye),_e(te,$e),r==="combobox"?Xe(""):(!bm||m)&&(ee(""),Xe(""));}),ve=function(he,ye){Ge(he);var $e=ye.type,Ue=ye.values;($e==="remove"||$e==="clear")&&Ue.forEach(function(qe){_e(qe.value,!1,$e);});},De=function(he,ye){if(ee(he),Xe(null),ye.source==="submit"){var $e=(he||"").trim();if($e){var Ue=Array.from(new Set([].concat(Re(Ve),[$e])));Ge(Ue),_e($e,!0),ee("");}return}ye.source!=="blur"&&(r==="combobox"&&Ge(he),u==null||u(he));},xe=function(he){var ye=he;r!=="tags"&&(ye=he.map(function(Ue){var qe=le.get(Ue);return qe==null?void 0:qe.value}).filter(function(Ue){return Ue!==void 0}));var $e=Array.from(new Set([].concat(Re(Ve),Re(ye))));Ge($e),$e.forEach(function(Ue){_e(Ue,!0);});},ae=f__namespace.useMemo(function(){var te=O!==!1&&p!==!1;return U(U({},Y),{},{flattenOptions:we,onActiveValue:Me,defaultActiveFirstOption:$t,onSelect:Ne,menuItemSelectedIcon:I,rawValues:Ve,fieldNames:X,virtual:te,direction:R,listHeight:k,listItemHeight:A,childrenAsData:W,optionRender:w})},[Y,we,Me,$t,Ne,I,Ve,X,O,p,k,A,W,w]);return f__namespace.createElement(o$.Provider,{value:ae},f__namespace.createElement(jH,Ie({},F,{id:H,prefixCls:a,ref:t,omitDomProps:v9,mode:r,displayValues:Ae,onDisplayValuesChange:ve,direction:R,searchValue:G,onSearch:De,autoClearSearchValue:m,onSearchSplit:xe,dropdownMatchSelectWidth:p,OptionList:a$,emptyOptions:!we.length,activeValue:et,activeDescendantId:"".concat(H,"_list_").concat(ut)})))}),Rh=b9;Rh.Option=Mh;Rh.OptGroup=Ph;const y9=()=>{const[,e]=Un(),n=new Yt(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"}))))},C9=y9,S9=()=>{const[,e]=Un(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:a,shadowColor:i,contentColor:s}=f.useMemo(()=>({borderColor:new Yt(t).onBackground(o).toHexShortString(),shadowColor:new Yt(n).onBackground(o).toHexShortString(),contentColor:new Yt(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}))))},$9=S9,w9=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}}}}},x9=Bt("Empty",e=>{const{componentCls:t,controlHeightLG:n}=e,r=bt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n*2.5,emptyImgHeightMD:n,emptyImgHeightSM:n*.875});return [w9(r)]});var E9=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 s$=f__namespace.createElement(C9,null),l$=f__namespace.createElement($9,null),_h=e=>{var{className:t,rootClassName:n,prefixCls:r,image:o=s$,description:a,children:i,imageStyle:s,style:l}=e,c=E9(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:u,direction:d,empty:m}=f__namespace.useContext(Je),g=u("empty",r),[h,v]=x9(g),[p]=pi("Empty"),b=typeof a<"u"?a:p==null?void 0:p.description,y=typeof b=="string"?b:"empty";let C=null;return typeof o=="string"?C=f__namespace.createElement("img",{alt:y,src:o}):C=o,h(f__namespace.createElement("div",Object.assign({className:V(v,g,m==null?void 0:m.className,{[`${g}-normal`]:o===l$,[`${g}-rtl`]:d==="rtl"},t,n),style:Object.assign(Object.assign({},m==null?void 0:m.style),l)},c),f__namespace.createElement("div",{className:`${g}-image`,style:s},C),b&&f__namespace.createElement("div",{className:`${g}-description`},b),i&&f__namespace.createElement("div",{className:`${g}-footer`},i)))};_h.PRESENTED_IMAGE_DEFAULT=s$;_h.PRESENTED_IMAGE_SIMPLE=l$;const ki=_h,I9=e=>{const{componentName:t}=e,{getPrefixCls:n}=f.useContext(Je),r=n("empty");switch(t){case"Table":case"List":return f.createElement(ki,{image:ki.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return f.createElement(ki,{image:ki.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return f.createElement(ki,null)}},c$=I9,O9=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"}},P9=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({},zt(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:Yg},[`
          ${o}${s}topLeft,
          ${a}${s}topLeft,
          ${o}${s}topRight,
          ${a}${s}topRight
        `]:{animationName:Zg},[`${i}${s}bottomLeft`]:{animationName:Qg},[`
          ${i}${s}topLeft,
          ${i}${s}topRight
        `]:{animationName:Jg},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},O9(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"},Yo),"&-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"}})},Po(e,"slide-up"),Po(e,"slide-down"),sc(e,"move-up"),sc(e,"move-down")]},M9=P9,xa=2,u$=e=>{let{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;const o=(n-t)/2-r,a=Math.ceil(o/2);return [o,a]};function Vd(e,t){const{componentCls:n,iconCls:r}=e,o=`${n}-selection-overflow`,a=e.multipleSelectItemHeight,[i]=u$(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-xa}px ${xa*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:`${xa}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:xa,marginBottom:xa,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:xa*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({},aa()),{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 R9=e=>{const{componentCls:t}=e,n=bt(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=bt(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),[,o]=u$(e);return [Vd(e),Vd(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.controlPaddingHorizontalSM-e.lineWidth},[`${t}-selection-search`]:{marginInlineStart:o}}},Vd(r,"lg")]},_9=R9;function Gd(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({},zt(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 T9(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return [Gd(e),Gd(bt(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}}}},Gd(bt(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const N9=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"}}}},Kd=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:r,borderHoverColor:o,antCls:a,borderActiveColor:i,outlineColor:s,controlOutlineWidth:l}=t,c=n?{[`${r}-selector`]:{borderColor:i}}:{};return {[e]:{[`&:not(${r}-disabled):not(${r}-customize-input):not(${a}-pagination-size-changer)`]:Object.assign(Object.assign({},c),{[`&:hover ${r}-selector`]:{borderColor:o},[`${r}-focused& ${r}-selector`]:{borderColor:i,boxShadow:`0 0 0 ${l}px ${s}`,outline:0}})}}},k9=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"}}}},L9=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return {[n]:Object.assign(Object.assign({},zt(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},N9(e)),k9(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Yo),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Yo),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},aa()),{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}}}},A9=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%"}}},L9(e),T9(e),_9(e),M9(e),{[`${t}-rtl`]:{direction:"rtl"}},Kd(t,bt(e,{borderHoverColor:e.colorPrimaryHover,borderActiveColor:e.colorPrimary,outlineColor:e.controlOutline})),Kd(`${t}-status-error`,bt(e,{borderHoverColor:e.colorErrorHover,borderActiveColor:e.colorError,outlineColor:e.colorErrorOutline}),!0),Kd(`${t}-status-warning`,bt(e,{borderHoverColor:e.colorWarningHover,borderActiveColor:e.colorWarning,outlineColor:e.colorWarningOutline}),!0),Ru(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},z9=Bt("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=bt(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1,multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return [A9(r)]},e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlPaddingHorizontal:o,zIndexPopupBase:a,colorText:i,fontWeightStrong:s,controlItemBgActive:l,controlItemBgHover:c,colorBgContainer:u,colorFillSecondary:d,controlHeightLG:m,controlHeightSM:g,colorBgContainerDisabled:h,colorTextDisabled:v}=e;return {zIndexPopup:a+50,optionSelectedColor:i,optionSelectedFontWeight:s,optionSelectedBg:l,optionActiveBg:c,optionPadding:`${(r-t*n)/2}px ${o}px`,optionFontSize:t,optionLineHeight:n,optionHeight:r,selectorBg:u,clearBg:u,singleItemHeightLG:m,multipleItemBg:d,multipleItemBorderColor:"transparent",multipleItemHeight:g,multipleItemHeightLG:r,multipleSelectorBgDisabled:h,multipleItemColorDisabled:v,multipleItemBorderColorDisabled:"transparent"}}),D9=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 j9(e,t){return e||D9(t)}var F9={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 B9=F9;var H9=function(t,n){return f__namespace.createElement(On,Ie({},t,{ref:n,icon:B9}))};const W9=f__namespace.forwardRef(H9);var V9={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 G9=V9;var K9=function(t,n){return f__namespace.createElement(On,Ie({},t,{ref:n,icon:G9}))};const Th=f__namespace.forwardRef(K9);var U9={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 X9=U9;var q9=function(t,n){return f__namespace.createElement(On,Ie({},t,{ref:n,icon:X9}))};const Nh=f__namespace.forwardRef(q9);function Y9(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:a,multiple:i,hasFeedback:s,prefixCls:l,showSuffixIcon:c,feedbackIcon:u,showArrow:d,componentName:m}=e;const g=n??f__namespace.createElement(Th,null),h=y=>t===null&&!s&&!d?null:f__namespace.createElement(f__namespace.Fragment,null,c!==!1&&y,s&&u);let v=null;if(t!==void 0)v=h(t);else if(a)v=h(f__namespace.createElement(rh,{spin:!0}));else {const y=`${l}-suffix`;v=C=>{let{open:$,showSearch:x}=C;return h($&&x?f__namespace.createElement(Nh,{className:y}):f__namespace.createElement(ch,{className:y}))};}let p=null;r!==void 0?p=r:i?p=f__namespace.createElement(W9,null):p=null;let b=null;return o!==void 0?b=o:b=f__namespace.createElement(_u,null),{clearIcon:g,suffixIcon:v,itemIcon:p,removeIcon:b}}function Q9(e,t){return t!==void 0?t:e!==null}var Z9=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 d$="SECRET_COMBOBOX_MODE_DO_NOT_USE",J9=(e,t)=>{var n,r,{prefixCls:o,bordered:a=!0,className:i,rootClassName:s,getPopupContainer:l,popupClassName:c,dropdownClassName:u,listHeight:d=256,placement:m,listItemHeight:g=24,size:h,disabled:v,notFoundContent:p,status:b,builtinPlacements:y,dropdownMatchSelectWidth:C,popupMatchSelectWidth:$,direction:x,style:w,allowClear:S}=e,E=Z9(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:I,getPrefixCls:O,renderEmpty:R,direction:P,virtual:k,popupMatchSelectWidth:L,popupOverflow:A,select:T}=f__namespace.useContext(Je),M=O("select",o),_=O(),D=x??P,{compactSize:F,compactItemClassnames:H}=yi(M,D),[B,W]=z9(M),K=f__namespace.useMemo(()=>{const{mode:Qe}=E;if(Qe!=="combobox")return Qe===d$?"combobox":Qe},[E.mode]),X=K==="multiple"||K==="tags",q=Q9(E.suffixIcon,E.showArrow),ne=(n=$??C)!==null&&n!==void 0?n:L,{status:G,hasFeedback:ee,isFormItemInput:Y,feedbackIcon:ue}=f__namespace.useContext(br),le=Bs(G,b);let Z;p!==void 0?Z=p:K==="combobox"?Z=null:Z=(R==null?void 0:R("Select"))||f__namespace.createElement(c$,{componentName:"Select"});const{suffixIcon:oe,itemIcon:fe,removeIcon:J,clearIcon:se}=Y9(Object.assign(Object.assign({},E),{multiple:X,hasFeedback:ee,feedbackIcon:ue,showSuffixIcon:q,prefixCls:M,showArrow:E.showArrow,componentName:"Select"})),me=S===!0?{clearIcon:se}:S,re=Ln(E,["suffixIcon","itemIcon"]),ie=V(c||u,{[`${M}-dropdown-${D}`]:D==="rtl"},s,W),ge=Xn(Qe=>{var Be;return (Be=h??F)!==null&&Be!==void 0?Be:Qe}),be=f__namespace.useContext(Yr),Te=v??be,Ae=V({[`${M}-lg`]:ge==="large",[`${M}-sm`]:ge==="small",[`${M}-rtl`]:D==="rtl",[`${M}-borderless`]:!a,[`${M}-in-form-item`]:Y},Tr(M,le,ee),H,T==null?void 0:T.className,i,s,W),Ve=f__namespace.useMemo(()=>m!==void 0?m:D==="rtl"?"bottomRight":"bottomLeft",[m,D]),Oe=j9(y,A),[je]=ks("SelectLike",(r=E.dropdownStyle)===null||r===void 0?void 0:r.zIndex);return B(f__namespace.createElement(Rh,Object.assign({ref:t,virtual:k,showSearch:T==null?void 0:T.showSearch},re,{style:Object.assign(Object.assign({},T==null?void 0:T.style),w),dropdownMatchSelectWidth:ne,builtinPlacements:Oe,transitionName:Cu(_,"slide-up",E.transitionName),listHeight:d,listItemHeight:g,mode:K,prefixCls:M,placement:Ve,direction:D,suffixIcon:oe,menuItemSelectedIcon:fe,removeIcon:J,allowClear:me,notFoundContent:Z,className:Ae,getPopupContainer:l||I,dropdownClassName:ie,disabled:Te,dropdownStyle:Object.assign(Object.assign({},E==null?void 0:E.dropdownStyle),{zIndex:je})})))},$i=f__namespace.forwardRef(J9),e7=Eh($i);$i.SECRET_COMBOBOX_MODE_DO_NOT_USE=d$;$i.Option=Mh;$i.OptGroup=Ph;$i._InternalPanelDoNotUseOrYouWillBeFired=e7;const Vs=$i;var oo;(function(e){e.hex="hex",e.rgb="rgb",e.hsb="hsb";})(oo||(oo={}));const t7=e=>{let{prefixCls:t,min:n=0,max:r=100,value:o,onChange:a,className:i,formatter:s}=e;const l=`${t}-steppers`,[c,u]=f.useState(o);return f.useEffect(()=>{Number.isNaN(o)||u(o);},[o]),f.createElement(dm,{className:V(l,i),min:n,max:r,value:c,formatter:s,size:"small",onChange:d=>{o||u(d||0),a==null||a(d);}})},qo=t7,n7=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=l=>{const c=a.toHsb();c.a=(l||0)/100;const u=kn(c);n||i(u),r==null||r(u);};return f.createElement(qo,{value:hc(a),prefixCls:t,formatter:l=>`${l}%`,className:o,onChange:s})},r7=n7,o7=e=>{const{getPrefixCls:t,direction:n}=f.useContext(Je),{prefixCls:r,className:o}=e,a=t("input-group",r),i=t("input"),[s,l]=ph(i),c=V(a,{[`${a}-lg`]:e.size==="large",[`${a}-sm`]:e.size==="small",[`${a}-compact`]:e.compact,[`${a}-rtl`]:n==="rtl"},l,o),u=f.useContext(br),d=f.useMemo(()=>Object.assign(Object.assign({},u),{isFormItemInput:!1}),[u]);return s(f__namespace.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},f__namespace.createElement(br.Provider,{value:d},e.children)))},a7=o7;function f$(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 i7(e){return !!(e.prefix||e.suffix||e.allowClear)}var s7=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 l7(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 c7=f.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,status:a,size:i,disabled:s,onBlur:l,onFocus:c,suffix:u,allowClear:d,addonAfter:m,addonBefore:g,className:h,style:v,styles:p,rootClassName:b,onChange:y,classNames:C}=e,$=s7(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:x,direction:w,input:S}=f.useContext(Je),E=x("input",r),I=f.useRef(null),[O,R]=ph(E),{compactSize:P,compactItemClassnames:k}=yi(E,w),L=Xn(G=>{var ee;return (ee=i??P)!==null&&ee!==void 0?ee:G}),A=f.useContext(Yr),T=s??A,{status:M,hasFeedback:_,feedbackIcon:D}=f.useContext(br),F=Bs(M,a),H=i7(e)||!!_;f.useRef(H);const B=f$(I,!0),W=G=>{B(),l==null||l(G);},K=G=>{B(),c==null||c(G);},X=G=>{B(),y==null||y(G);},q=(_||u)&&f.createElement(f.Fragment,null,u,_&&D);let ne;return typeof d=="object"&&(d!=null&&d.clearIcon)?ne=d:d&&(ne={clearIcon:f.createElement(Th,null)}),O(f.createElement(O8,Object.assign({ref:Wn(t,I),prefixCls:E,autoComplete:S==null?void 0:S.autoComplete},$,{disabled:T,onBlur:W,onFocus:K,style:Object.assign(Object.assign({},S==null?void 0:S.style),v),styles:Object.assign(Object.assign({},S==null?void 0:S.styles),p),suffix:q,allowClear:ne,className:V(h,b,k,S==null?void 0:S.className),onChange:X,addonAfter:m&&f.createElement(Xa,null,f.createElement(ds,{override:!0,status:!0},m)),addonBefore:g&&f.createElement(Xa,null,f.createElement(ds,{override:!0,status:!0},g)),classNames:Object.assign(Object.assign(Object.assign({},C),S==null?void 0:S.classNames),{input:V({[`${E}-sm`]:L==="small",[`${E}-lg`]:L==="large",[`${E}-rtl`]:w==="rtl",[`${E}-borderless`]:!o},!H&&Tr(E,F),C==null?void 0:C.input,(n=S==null?void 0:S.classNames)===null||n===void 0?void 0:n.input,R)}),classes:{affixWrapper:V({[`${E}-affix-wrapper-sm`]:L==="small",[`${E}-affix-wrapper-lg`]:L==="large",[`${E}-affix-wrapper-rtl`]:w==="rtl",[`${E}-affix-wrapper-borderless`]:!o},Tr(`${E}-affix-wrapper`,F,_),R),wrapper:V({[`${E}-group-rtl`]:w==="rtl"},R),group:V({[`${E}-group-wrapper-sm`]:L==="small",[`${E}-group-wrapper-lg`]:L==="large",[`${E}-group-wrapper-rtl`]:w==="rtl",[`${E}-group-wrapper-disabled`]:T},Tr(`${E}-group-wrapper`,F,_),R)}})))}),kh=c7;var u7={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 d7=u7;var f7=function(t,n){return f__namespace.createElement(On,Ie({},t,{ref:n,icon:d7}))};const m7=f__namespace.forwardRef(f7);var g7={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 h7=g7;var v7=function(t,n){return f__namespace.createElement(On,Ie({},t,{ref:n,icon:h7}))};const p7=f__namespace.forwardRef(v7);var b7=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 y7=e=>e?f__namespace.createElement(p7,null):f__namespace.createElement(m7,null),C7={click:"onClick",hover:"onMouseOver"},S7=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=f$(i),l=()=>{const{disabled:x}=e;x||(o&&s(),a(w=>{var S;const E=!w;return typeof n=="object"&&((S=n.onVisibleChange)===null||S===void 0||S.call(n,E)),E}));},c=x=>{const{action:w="click",iconRender:S=y7}=e,E=C7[w]||"",I=S(o),O={[E]:l,className:`${x}-icon`,key:"passwordIcon",onMouseDown:R=>{R.preventDefault();},onMouseUp:R=>{R.preventDefault();}};return f__namespace.cloneElement(f__namespace.isValidElement(I)?I:f__namespace.createElement("span",null,I),O)},{className:u,prefixCls:d,inputPrefixCls:m,size:g}=e,h=b7(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:v}=f__namespace.useContext(Je),p=v("input",m),b=v("input-password",d),y=n&&c(b),C=V(b,u,{[`${b}-${g}`]:!!g}),$=Object.assign(Object.assign({},Ln(h,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:C,prefixCls:p,suffix:y});return g&&($.size=g),f__namespace.createElement(kh,Object.assign({ref:Wn(t,i)},$))}),$7=S7;var w7=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 x7=f__namespace.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:a,suffix:i,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:d,onChange:m,onCompositionStart:g,onCompositionEnd:h}=e,v=w7(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:p,direction:b}=f__namespace.useContext(Je),y=f__namespace.useRef(!1),C=p("input-search",n),$=p("input",r),{compactSize:x}=yi(C,b),w=Xn(F=>{var H;return (H=a??x)!==null&&H!==void 0?H:F}),S=f__namespace.useRef(null),E=F=>{F&&F.target&&F.type==="click"&&d&&d(F.target.value,F,{source:"clear"}),m&&m(F);},I=F=>{var H;document.activeElement===((H=S.current)===null||H===void 0?void 0:H.input)&&F.preventDefault();},O=F=>{var H,B;d&&d((B=(H=S.current)===null||H===void 0?void 0:H.input)===null||B===void 0?void 0:B.value,F,{source:"input"});},R=F=>{y.current||c||O(F);},P=typeof s=="boolean"?f__namespace.createElement(Nh,null):null,k=`${C}-button`;let L;const A=s||{},T=A.type&&A.type.__ANT_BUTTON===!0;T||A.type==="button"?L=Bn(A,Object.assign({onMouseDown:I,onClick:F=>{var H,B;(B=(H=A==null?void 0:A.props)===null||H===void 0?void 0:H.onClick)===null||B===void 0||B.call(H,F),O(F);},key:"enterButton"},T?{className:k,size:w}:{})):L=f__namespace.createElement(qt,{className:k,type:s?"primary":void 0,size:w,disabled:u,key:"enterButton",onMouseDown:I,onClick:O,loading:c,icon:P},s),l&&(L=[L,Bn(l,{key:"addonAfter"})]);const M=V(C,{[`${C}-rtl`]:b==="rtl",[`${C}-${w}`]:!!w,[`${C}-with-button`]:!!s},o),_=F=>{y.current=!0,g==null||g(F);},D=F=>{y.current=!1,h==null||h(F);};return f__namespace.createElement(kh,Object.assign({ref:Wn(S,t),onPressEnter:R},v,{size:w,onCompositionStart:_,onCompositionEnd:D,prefixCls:$,addonAfter:L,suffix:i,onChange:E,className:M,disabled:u}))}),E7=x7;var I7=`
  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;
`,O7=["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"],Ud={},mr;function P7(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&&Ud[n])return Ud[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=O7.map(function(c){return "".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:a,borderSize:i,boxSizing:o};return t&&n&&(Ud[n]=l),l}function M7(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;mr||(mr=document.createElement("textarea"),mr.setAttribute("tab-index","-1"),mr.setAttribute("aria-hidden","true"),document.body.appendChild(mr)),e.getAttribute("wrap")?mr.setAttribute("wrap",e.getAttribute("wrap")):mr.removeAttribute("wrap");var o=P7(e,t),a=o.paddingSize,i=o.borderSize,s=o.boxSizing,l=o.sizingStyle;mr.setAttribute("style","".concat(l,";").concat(I7)),mr.value=e.value||e.placeholder||"";var c=void 0,u=void 0,d,m=mr.scrollHeight;if(s==="border-box"?m+=i:s==="content-box"&&(m-=a),n!==null||r!==null){mr.value=" ";var g=mr.scrollHeight-a;n!==null&&(c=g*n,s==="border-box"&&(c=c+a+i),m=Math.max(c,m)),r!==null&&(u=g*r,s==="border-box"&&(u=u+a+i),d=m>u?"":"hidden",m=Math.min(u,m));}var h={height:m,overflowY:d,resize:"none"};return c&&(h.minHeight=c),u&&(h.maxHeight=u),h}var R7=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Xd=0,qd=1,Yd=2,_7=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,l=n.className,c=n.style,u=n.disabled,d=n.onChange;n.onInternalAutoSize;var m=Ye(n,R7),g=Vt(o,{value:a,postState:function(K){return K??""}}),h=Q(g,2),v=h[0],p=h[1],b=function(K){p(K.target.value),d==null||d(K);},y=f__namespace.useRef();f__namespace.useImperativeHandle(t,function(){return {textArea:y.current}});var C=f__namespace.useMemo(function(){return i&&at(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),$=Q(C,2),x=$[0],w=$[1],S=!!i,E=function(){try{if(document.activeElement===y.current){var K=y.current,X=K.selectionStart,q=K.selectionEnd,ne=K.scrollTop;y.current.setSelectionRange(X,q),y.current.scrollTop=ne;}}catch{}},I=f__namespace.useState(Yd),O=Q(I,2),R=O[0],P=O[1],k=f__namespace.useState(),L=Q(k,2),A=L[0],T=L[1],M=function(){P(Xd);};Wt(function(){S&&M();},[a,x,w,S]),Wt(function(){if(R===Xd)P(qd);else if(R===qd){var W=M7(y.current,!1,x,w);P(Yd),T(W);}else E();},[R]);var _=f__namespace.useRef(),D=function(){Et.cancel(_.current);},F=function(K){R===Yd&&(s==null||s(K),i&&(D(),_.current=Et(function(){M();})));};f__namespace.useEffect(function(){return D},[]);var H=S?A:null,B=U(U({},c),H);return (R===Xd||R===qd)&&(B.overflowY="hidden",B.overflowX="hidden"),f__namespace.createElement(vr,{onResize:F,disabled:!(i||s)},f__namespace.createElement("textarea",Ie({},m,{ref:y,style:B,className:V(r,l,z({},"".concat(r,"-disabled"),u)),disabled:u,value:v,onChange:b})))}),T7=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],N7=f.forwardRef(function(e,t){var n,r,o=e.defaultValue,a=e.value,i=e.onFocus,s=e.onBlur,l=e.onChange,c=e.allowClear,u=e.maxLength,d=e.onCompositionStart,m=e.onCompositionEnd,g=e.suffix,h=e.prefixCls,v=h===void 0?"rc-textarea":h,p=e.classes,b=e.showCount,y=e.count,C=e.className,$=e.style,x=e.disabled,w=e.hidden,S=e.classNames,E=e.styles,I=e.onResize,O=Ye(e,T7),R=Vt(o,{value:a,defaultValue:o}),P=Q(R,2),k=P[0],L=P[1],A=k==null?"":String(k),T=f.useState(!1),M=Q(T,2),_=M[0],D=M[1],F=f.useRef(!1),H=f.useState(null),B=Q(H,2),W=B[0],K=B[1],X=f.useRef(null),q=function(){var we;return (we=X.current)===null||we===void 0?void 0:we.textArea},ne=function(){q().focus();};f.useImperativeHandle(t,function(){return {resizableTextArea:X.current,focus:ne,blur:function(){q().blur();}}}),f.useEffect(function(){D(function(Pe){return !x&&Pe});},[x]);var G=f.useState(null),ee=Q(G,2),Y=ee[0],ue=ee[1];f.useEffect(function(){if(Y){var Pe;(Pe=q()).setSelectionRange.apply(Pe,Re(Y));}},[Y]);var le=uS(y,b),Z=(n=le.max)!==null&&n!==void 0?n:u,oe=Number(Z)>0,fe=le.strategy(A),J=!!Z&&fe>Z,se=function(we,Ge){var nt=Ge;!F.current&&le.exceedFormatter&&le.max&&le.strategy(Ge)>le.max&&(nt=le.exceedFormatter(Ge,{max:le.max}),Ge!==nt&&ue([q().selectionStart||0,q().selectionEnd||0])),L(nt),dc(we.currentTarget,we,l,nt);},me=function(we){F.current=!0,d==null||d(we);},re=function(we){F.current=!1,se(we,we.currentTarget.value),m==null||m(we);},ie=function(we){se(we,we.target.value);},ge=function(we){var Ge=O.onPressEnter,nt=O.onKeyDown;we.key==="Enter"&&Ge&&Ge(we),nt==null||nt(we);},be=function(we){D(!0),i==null||i(we);},Te=function(we){D(!1),s==null||s(we);},Ae=function(we){L(""),ne(),dc(q(),we,l);},Ve=g,Oe;le.show&&(le.showFormatter?Oe=le.showFormatter({value:A,count:fe,maxLength:Z}):Oe="".concat(fe).concat(oe?" / ".concat(Z):""),Ve=f.createElement(f.Fragment,null,Ve,f.createElement("span",{className:V("".concat(v,"-data-count"),S==null?void 0:S.count),style:E==null?void 0:E.count},Oe)));var je=function(we){var Ge;I==null||I(we),(Ge=q())!==null&&Ge!==void 0&&Ge.style.height&&K(!0);},Qe=!O.autoSize&&!b&&!c,Be=f.createElement(fh,{value:A,allowClear:c,handleReset:Ae,suffix:Ve,prefixCls:v,classes:{affixWrapper:V(p==null?void 0:p.affixWrapper,(r={},z(r,"".concat(v,"-show-count"),b),z(r,"".concat(v,"-textarea-allow-clear"),c),r))},disabled:x,focused:_,className:V(C,J&&"".concat(v,"-out-of-range")),style:U(U({},$),W&&!Qe?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Oe=="string"?Oe:void 0}},hidden:w,inputElement:f.createElement(_7,Ie({},O,{maxLength:u,onKeyDown:ge,onChange:ie,onFocus:be,onBlur:Te,onCompositionStart:me,onCompositionEnd:re,className:V(S==null?void 0:S.textarea),style:U(U({},E==null?void 0:E.textarea),{},{resize:$==null?void 0:$.resize}),disabled:x,prefixCls:v,onResize:je,ref:X}))});return Be}),k7=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 L7=f.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,size:a,disabled:i,status:s,allowClear:l,classNames:c,rootClassName:u,className:d}=e,m=k7(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className"]),{getPrefixCls:g,direction:h}=f__namespace.useContext(Je),v=Xn(a),p=f__namespace.useContext(Yr),b=i??p,{status:y,hasFeedback:C,feedbackIcon:$}=f__namespace.useContext(br),x=Bs(y,s),w=f__namespace.useRef(null);f__namespace.useImperativeHandle(t,()=>{var R;return {resizableTextArea:(R=w.current)===null||R===void 0?void 0:R.resizableTextArea,focus:P=>{var k,L;l7((L=(k=w.current)===null||k===void 0?void 0:k.resizableTextArea)===null||L===void 0?void 0:L.textArea,P);},blur:()=>{var P;return (P=w.current)===null||P===void 0?void 0:P.blur()}}});const S=g("input",r);let E;typeof l=="object"&&(l!=null&&l.clearIcon)?E=l:l&&(E={clearIcon:f__namespace.createElement(Th,null)});const[I,O]=ph(S);return I(f__namespace.createElement(N7,Object.assign({},m,{disabled:b,allowClear:E,className:V(d,u),classes:{affixWrapper:V(`${S}-textarea-affix-wrapper`,{[`${S}-affix-wrapper-rtl`]:h==="rtl",[`${S}-affix-wrapper-borderless`]:!o,[`${S}-affix-wrapper-sm`]:v==="small",[`${S}-affix-wrapper-lg`]:v==="large",[`${S}-textarea-show-count`]:e.showCount||((n=e.count)===null||n===void 0?void 0:n.show)},Tr(`${S}-affix-wrapper`,x),O)},classNames:Object.assign(Object.assign({},c),{textarea:V({[`${S}-borderless`]:!o,[`${S}-sm`]:v==="small",[`${S}-lg`]:v==="large"},Tr(S,x),O,c==null?void 0:c.textarea)}),prefixCls:S,suffix:C&&f__namespace.createElement("span",{className:`${S}-textarea-suffix`},$),ref:w})))}),A7=L7,Gs=kh;Gs.Group=a7;Gs.Search=E7;Gs.TextArea=A7;Gs.Password=$7;const m$=Gs,z7=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,e0=e=>z7.test(`#${e}`),D7=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 l=n==null?void 0:n.toHex();e0(l)&&n&&i(Wl(l));},[n]);const s=l=>{const c=l.target.value;i(Wl(c)),e0(Wl(c,!0))&&(r==null||r(kn(c)));};return f.createElement(m$,{className:o,value:a,prefix:"#",onChange:s,size:"small"})},j7=D7,F7=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=(l,c)=>{const u=a.toHsb();u[c]=c==="h"?l:(l||0)/100;const d=kn(u);n||i(d),r==null||r(d);};return f.createElement("div",{className:o},f.createElement(qo,{max:360,min:0,value:Number(a.toHsb().h),prefixCls:t,className:o,formatter:l=>Vl(l||0).toString(),onChange:l=>s(Number(l),"h")}),f.createElement(qo,{max:100,min:0,value:Number(a.toHsb().s)*100,prefixCls:t,className:o,formatter:l=>`${Vl(l||0)}%`,onChange:l=>s(Number(l),"s")}),f.createElement(qo,{max:100,min:0,value:Number(a.toHsb().b)*100,prefixCls:t,className:o,formatter:l=>`${Vl(l||0)}%`,onChange:l=>s(Number(l),"b")}))},B7=F7,H7=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=(l,c)=>{const u=a.toRgb();u[c]=l||0;const d=kn(u);n||i(d),r==null||r(d);};return f.createElement("div",{className:o},f.createElement(qo,{max:255,min:0,value:Number(a.toRgb().r),prefixCls:t,className:o,onChange:l=>s(Number(l),"r")}),f.createElement(qo,{max:255,min:0,value:Number(a.toRgb().g),prefixCls:t,className:o,onChange:l=>s(Number(l),"g")}),f.createElement(qo,{max:255,min:0,value:Number(a.toRgb().b),prefixCls:t,className:o,onChange:l=>s(Number(l),"b")}))},W7=H7,V7=[oo.hex,oo.hsb,oo.rgb].map(e=>({value:e,label:e.toLocaleUpperCase()})),G7=e=>{const{prefixCls:t,format:n,value:r,disabledAlpha:o,onFormatChange:a,onChange:i}=e,[s,l]=Vt(oo.hex,{value:n,onChange:a}),c=`${t}-input`,u=m=>{l(m);},d=f.useMemo(()=>{const m={value:r,prefixCls:t,onChange:i};switch(s){case oo.hsb:return f.createElement(B7,Object.assign({},m));case oo.rgb:return f.createElement(W7,Object.assign({},m));case oo.hex:default:return f.createElement(j7,Object.assign({},m))}},[s,t,r,i]);return f.createElement("div",{className:`${c}-container`},f.createElement(Vs,{value:s,bordered:!1,getPopupContainer:m=>m,popupMatchSelectWidth:68,placement:"bottomRight",onChange:u,className:`${t}-format-select`,size:"small",options:V7}),f.createElement("div",{className:c},d),!o&&f.createElement(r7,{prefixCls:t,value:r,onChange:i}))},K7=G7;var U7=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 X7=()=>{const e=f.useContext(GS),{prefixCls:t,colorCleared:n,allowClear:r,value:o,disabledAlpha:a,onChange:i,onClear:s,onChangeComplete:l}=e,c=U7(e,["prefixCls","colorCleared","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete"]);return f.createElement(f.Fragment,null,r&&f.createElement(US,Object.assign({prefixCls:t,value:o,colorCleared:n,onChange:u=>{i==null||i(u),s==null||s();}},c)),f.createElement(iH,{prefixCls:t,value:o==null?void 0:o.toHsb(),disabledAlpha:a,onChange:(u,d)=>i==null?void 0:i(u,d,!0),onChangeComplete:l}),f.createElement(K7,Object.assign({value:o,onChange:i,prefixCls:t,disabledAlpha:a},c)))},t0=X7;var q7={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 Y7=q7;var Q7=function(t,n){return f__namespace.createElement(On,Ie({},t,{ref:n,icon:Y7}))};const Za=f__namespace.forwardRef(Q7);var g$=f.forwardRef(function(e,t){var n,r=e.prefixCls,o=e.forceRender,a=e.className,i=e.style,s=e.children,l=e.isActive,c=e.role,u=f.useState(l||o),d=Q(u,2),m=d[0],g=d[1];return f.useEffect(function(){(o||l)&&g(!0);},[o,l]),m?f.createElement("div",{ref:t,className:V("".concat(r,"-content"),(n={},z(n,"".concat(r,"-content-active"),l),z(n,"".concat(r,"-content-inactive"),!l),n),a),style:i,role:c},f.createElement("div",{className:"".concat(r,"-content-box")},s)):null});g$.displayName="PanelContent";var Z7=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],h$=f.forwardRef(function(e,t){var n,r,o=e.showArrow,a=o===void 0?!0:o,i=e.headerClass,s=e.isActive,l=e.onItemClick,c=e.forceRender,u=e.className,d=e.prefixCls,m=e.collapsible,g=e.accordion,h=e.panelKey,v=e.extra,p=e.header,b=e.expandIcon,y=e.openMotion,C=e.destroyInactivePanel,$=e.children,x=Ye(e,Z7),w=m==="disabled",S=m==="header",E=m==="icon",I=v!=null&&typeof v!="boolean",O=function(){l==null||l(h);},R=function(M){(M.key==="Enter"||M.keyCode===de.ENTER||M.which===de.ENTER)&&O();},P=typeof b=="function"?b(e):f.createElement("i",{className:"arrow"});P&&(P=f.createElement("div",{className:"".concat(d,"-expand-icon"),onClick:["header","icon"].includes(m)?O:void 0},P));var k=V((n={},z(n,"".concat(d,"-item"),!0),z(n,"".concat(d,"-item-active"),s),z(n,"".concat(d,"-item-disabled"),w),n),u),L=V(i,(r={},z(r,"".concat(d,"-header"),!0),z(r,"".concat(d,"-header-collapsible-only"),S),z(r,"".concat(d,"-icon-collapsible-only"),E),r)),A={className:L,"aria-expanded":s,"aria-disabled":w,onKeyDown:R};return !S&&!E&&(A.onClick=O,A.role=g?"tab":"button",A.tabIndex=w?-1:0),f.createElement("div",Ie({},x,{ref:t,className:k}),f.createElement("div",A,a&&P,f.createElement("span",{className:"".concat(d,"-header-text"),onClick:m==="header"?O:void 0},p),I&&f.createElement("div",{className:"".concat(d,"-extra")},v)),f.createElement(mo,Ie({visible:s,leavedClassName:"".concat(d,"-content-hidden")},y,{forceRender:c,removeOnLeave:C}),function(T,M){var _=T.className,D=T.style;return f.createElement(g$,{ref:M,prefixCls:d,className:_,style:D,isActive:s,forceRender:c,role:g?"tabpanel":void 0},$)}))}),J7=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],eW=function(t,n){var r=n.prefixCls,o=n.accordion,a=n.collapsible,i=n.destroyInactivePanel,s=n.onItemClick,l=n.activeKey,c=n.openMotion,u=n.expandIcon;return t.map(function(d,m){var g=d.children,h=d.label,v=d.key,p=d.collapsible,b=d.onItemClick,y=d.destroyInactivePanel,C=Ye(d,J7),$=String(v??m),x=p??a,w=y??i,S=function(O){x!=="disabled"&&(s(O),b==null||b(O));},E=!1;return o?E=l[0]===$:E=l.indexOf($)>-1,f.createElement(h$,Ie({},C,{prefixCls:r,key:$,panelKey:$,isActive:E,accordion:o,openMotion:c,expandIcon:u,header:h,collapsible:x,onItemClick:S,destroyInactivePanel:w}),g)})},tW=function(t,n,r){if(!t)return null;var o=r.prefixCls,a=r.accordion,i=r.collapsible,s=r.destroyInactivePanel,l=r.onItemClick,c=r.activeKey,u=r.openMotion,d=r.expandIcon,m=t.key||String(n),g=t.props,h=g.header,v=g.headerClass,p=g.destroyInactivePanel,b=g.collapsible,y=g.onItemClick,C=!1;a?C=c[0]===m:C=c.indexOf(m)>-1;var $=b??i,x=function(E){$!=="disabled"&&(l(E),y==null||y(E));},w={key:m,panelKey:m,header:h,headerClass:v,isActive:C,prefixCls:o,destroyInactivePanel:p??s,openMotion:u,accordion:a,children:t.props.children,onItemClick:x,expandIcon:d,collapsible:$};return typeof t.type=="string"?t:(Object.keys(w).forEach(function(S){typeof w[S]>"u"&&delete w[S];}),f.cloneElement(t,w))};function nW(e,t,n){return Array.isArray(e)?eW(e,n):or(t).map(function(r,o){return tW(r,o,n)})}function rW(e){var t=e;if(!Array.isArray(t)){var n=at(t);t=n==="number"||n==="string"?[t]:[];}return t.map(function(r){return String(r)})}var oW=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,l=e.className,c=e.children,u=e.collapsible,d=e.openMotion,m=e.expandIcon,g=e.activeKey,h=e.defaultActiveKey,v=e.onChange,p=e.items,b=V(r,l),y=Vt([],{value:g,onChange:function(I){return v==null?void 0:v(I)},defaultValue:h,postState:rW}),C=Q(y,2),$=C[0],x=C[1],w=function(I){return x(function(){if(s)return $[0]===I?[]:[I];var O=$.indexOf(I),R=O>-1;return R?$.filter(function(P){return P!==I}):[].concat(Re($),[I])})};bn(!c,"`children` will be removed in next major version. Please use `items` instead.");var S=nW(p,c,{prefixCls:r,accordion:s,openMotion:d,expandIcon:m,collapsible:u,destroyInactivePanel:a,onItemClick:w,activeKey:$});return f.createElement("div",{ref:t,className:b,style:i,role:s?"tablist":void 0},S)});const Lh=Object.assign(oW,{Panel:h$});Lh.Panel;const aW=f__namespace.forwardRef((e,t)=>{const{getPrefixCls:n}=f__namespace.useContext(Je),{prefixCls:r,className:o,showArrow:a=!0}=e,i=n("collapse",r),s=V({[`${i}-no-arrow`]:!a},o);return f__namespace.createElement(Lh.Panel,Object.assign({ref:t},e,{prefixCls:i,className:s}))}),iW=aW,sW=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:o,headerPadding:a,collapseHeaderPaddingSM:i,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:l,lineWidth:c,lineType:u,colorBorder:d,colorText:m,colorTextHeading:g,colorTextDisabled:h,fontSize:v,fontSizeLG:p,lineHeight:b,marginSM:y,paddingSM:C,paddingLG:$,paddingXS:x,motionDurationSlow:w,fontSizeIcon:S,contentPadding:E}=e,I=`${c}px ${u} ${d}`;return {[t]:Object.assign(Object.assign({},zt(e)),{backgroundColor:o,border:I,borderBottom:0,borderRadius:`${l}px`,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:I,"&:last-child":{[`
            &,
            & > ${t}-header`]:{borderRadius:`0 0 ${l}px ${l}px`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:a,color:g,lineHeight:b,cursor:"pointer",transition:`all ${w}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:v*b,display:"flex",alignItems:"center",paddingInlineEnd:y},[`${t}-arrow`]:Object.assign(Object.assign({},aa()),{fontSize:S,svg:{transition:`transform ${w}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-header-collapsible-only`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"}},[`${t}-icon-collapsible-only`]:{cursor:"default",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:m,backgroundColor:n,borderTop:I,[`& > ${t}-content-box`]:{padding:E},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:i,paddingInlineStart:x,[`> ${t}-expand-icon`]:{marginInlineStart:C-x}},[`> ${t}-content > ${t}-content-box`]:{padding:C}}},"&-large":{[`> ${t}-item`]:{fontSize:p,[`> ${t}-header`]:{padding:s,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:p*b,marginInlineStart:$-r}},[`> ${t}-content > ${t}-content-box`]:{padding:$}}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${l}px ${l}px`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n          &,\n          & > .arrow\n        ":{color:h,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:y}}}}})}},lW=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow svg`;return {[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},cW=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}}}},uW=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}}}}}},dW=Bt("Collapse",e=>{const t=bt(e,{collapseHeaderPaddingSM:`${e.paddingXS}px ${e.paddingSM}px`,collapseHeaderPaddingLG:`${e.padding}px ${e.paddingLG}px`,collapsePanelBorderRadius:e.borderRadiusLG});return [sW(t),cW(t),uW(t),lW(t),IC(t)]},e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer})),fW=f__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,collapse:o}=f__namespace.useContext(Je),{prefixCls:a,className:i,rootClassName:s,style:l,bordered:c=!0,ghost:u,size:d,expandIconPosition:m="start",children:g,expandIcon:h}=e,v=Xn(I=>{var O;return (O=d??I)!==null&&O!==void 0?O:"middle"}),p=n("collapse",a),b=n(),[y,C]=dW(p),$=f__namespace.useMemo(()=>m==="left"?"start":m==="right"?"end":m,[m]),x=function(){let I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const O=h?h(I):f__namespace.createElement(Za,{rotate:I.isActive?90:void 0});return Bn(O,()=>({className:V(O.props.className,`${p}-arrow`)}))},w=V(`${p}-icon-position-${$}`,{[`${p}-borderless`]:!c,[`${p}-rtl`]:r==="rtl",[`${p}-ghost`]:!!u,[`${p}-${v}`]:v!=="middle"},o==null?void 0:o.className,i,s,C),S=Object.assign(Object.assign({},CC(b)),{motionAppear:!1,leavedClassName:`${p}-content-hidden`}),E=f__namespace.useMemo(()=>g?or(g).map((I,O)=>{var R,P;if(!((R=I.props)===null||R===void 0)&&R.disabled){const k=(P=I.key)!==null&&P!==void 0?P:String(O),{disabled:L,collapsible:A}=I.props,T=Object.assign(Object.assign({},Ln(I.props,["disabled"])),{key:k,collapsible:A??(L?"disabled":void 0)});return Bn(I,T)}return I}):null,[g]);return y(f__namespace.createElement(Lh,Object.assign({ref:t,openMotion:S},Ln(e,["rootClassName"]),{expandIcon:x,prefixCls:p,className:w,style:Object.assign(Object.assign({},o==null?void 0:o.style),l)}),E))}),mW=Object.assign(fW,{Panel:iW}),Qd=e=>e.map(t=>(t.colors=t.colors.map(kn),t)),gW=(e,t)=>{const{r:n,g:r,b:o,a}=e.toRgb(),i=new gc(e.toRgbString()).onBackground(t).toHsv();return a<=.5?i.v>.5:n*.299+r*.587+o*.114>192},n0=e=>{let{label:t}=e;return `panel-${t}`},hW=e=>{let{prefixCls:t,presets:n,value:r,onChange:o}=e;const[a]=pi("ColorPicker"),[,i]=Un(),[s]=Vt(Qd(n),{value:Qd(n),postState:Qd}),l=`${t}-presets`,c=f.useMemo(()=>s.reduce((m,g)=>{const{defaultOpen:h=!0}=g;return h&&m.push(n0(g)),m},[]),[s]),u=m=>{o==null||o(m);},d=s.map(m=>{var g;return {key:n0(m),label:f.createElement("div",{className:`${l}-label`},m==null?void 0:m.label),children:f.createElement("div",{className:`${l}-items`},Array.isArray(m==null?void 0:m.colors)&&((g=m.colors)===null||g===void 0?void 0:g.length)>0?m.colors.map((h,v)=>f.createElement(Ih,{key:`preset-${v}-${h.toHexString()}`,color:kn(h).toRgbString(),prefixCls:t,className:V(`${l}-color`,{[`${l}-color-checked`]:h.toHexString()===(r==null?void 0:r.toHexString()),[`${l}-color-bright`]:gW(h,i.colorBgElevated)}),onClick:()=>u(h)})):f.createElement("span",{className:`${l}-empty`},a.presetEmpty))}});return f.createElement("div",{className:l},f.createElement(mW,{defaultActiveKey:c,ghost:!0,items:d}))},vW=hW,pW=()=>{const{prefixCls:e,value:t,presets:n,onChange:r}=f.useContext(KS);return Array.isArray(n)?f.createElement(vW,{value:t,presets:n,prefixCls:e,onChange:r}):null},r0=pW;var bW=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 yW=e=>{const{prefixCls:t,presets:n,panelRender:r,color:o,onChange:a,onClear:i}=e,s=bW(e,["prefixCls","presets","panelRender","color","onChange","onClear"]),l=`${t}-inner-content`,c=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(t0,null),Array.isArray(n)&&f.createElement(qB,{className:`${l}-divider`}),f.createElement(r0,null));return f.createElement(sH,{value:c},f.createElement(lH,{value:u},f.createElement("div",{className:l},typeof r=="function"?r(d,{components:{Picker:t0,Presets:r0}}):d)))},CW=yW;var SW=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.forwardRef((e,t)=>{const{color:n,prefixCls:r,open:o,colorCleared:a,disabled:i,format:s,className:l,showText:c}=e,u=SW(e,["color","prefixCls","open","colorCleared","disabled","format","className","showText"]),d=`${r}-trigger`,m=f.useMemo(()=>a?f.createElement(US,{prefixCls:r}):f.createElement(Ih,{prefixCls:r,color:n.toRgbString()}),[n,a,r]),g=()=>{const v=n.toHexString().toUpperCase(),p=hc(n);switch(s){case"rgb":return n.toRgbString();case"hsb":return n.toHsbString();case"hex":default:return p<100?`${v.slice(0,7)},${p}%`:v}},h=()=>{if(typeof c=="function")return c(n);if(c)return g()};return f.createElement("div",Object.assign({ref:t,className:V(d,l,{[`${d}-active`]:o,[`${d}-disabled`]:i})},u),m,c&&f.createElement("div",{className:`${d}-text`},h()))}),wW=$W;function o0(e){return e!==void 0}const xW=(e,t)=>{const{defaultValue:n,value:r}=t,[o,a]=f.useState(()=>{let i;return o0(r)?i=r:o0(n)?i=n:i=e,kn(i||"")});return f.useEffect(()=>{r&&a(kn(r));},[r]),[o,a]},EW=xW,v$=(e,t)=>({backgroundImage:`conic-gradient(${t} 0 25%, transparent 0 50%, ${t} 0 75%, transparent 0)`,backgroundSize:`${e} ${e}`}),IW=(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},v$("50%",e.colorFillSecondary)),{[`${n}-color-block-inner`]:{width:"100%",height:"100%",border:`${a}px solid ${i}`,borderRadius:"inherit"}})}},a0=IW,OW=e=>{const{componentCls:t,antCls:n,fontSizeSM:r,lineHeightSM:o,colorPickerAlphaInputWidth:a,marginXXS:i,paddingXXS:s,controlHeightSM:l,marginXS:c,fontSizeIcon:u,paddingXS:d,colorTextPlaceholder:m,colorPickerInputNumberHandleWidth:g,lineWidth:h}=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:c,width:"auto","&-single":{[`${n}-select-selector`]:{padding:0,border:0},[`${n}-select-arrow`]:{insetInlineEnd:0},[`${n}-select-selection-item`]:{paddingInlineEnd:u+i,fontSize:r,lineHeight:`${l}px`},[`${n}-select-item-option-content`]:{fontSize:r,lineHeight:o},[`${n}-select-dropdown`]:{[`${n}-select-item`]:{minHeight:"auto"}}}},[`${t}-input`]:{gap:i,alignItems:"center",flex:1,width:0,[`${t}-hsb-input,${t}-rgb-input`]:{display:"flex",gap:i,alignItems:"center"},[`${t}-steppers`]:{flex:1},[`${t}-hex-input${n}-input-affix-wrapper`]:{flex:1,padding:`0 ${d}px`,[`${n}-input`]:{fontSize:r,textTransform:"uppercase",lineHeight:`${l-2*h}px`},[`${n}-input-prefix`]:{color:m}}}}}},PW=OW,MW=e=>{const{componentCls:t,controlHeightLG:n,borderRadiusSM:r,colorPickerInsetShadow:o,marginSM:a,colorBgElevated:i,colorFillSecondary:s,lineWidthBold:l,colorPickerHandlerSize:c,colorPickerHandlerSizeSM:u,colorPickerSliderHeight:d}=e;return {[`${t}-select`]:{[`${t}-palette`]:{minHeight:n*4,overflow:"hidden",borderRadius:r},[`${t}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:o,inset:0},marginBottom:a},[`${t}-handler`]:{width:c,height:c,border:`${l}px solid ${i}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${o}, 0 0 0 1px ${s}`,"&-sm":{width:u,height:u}},[`${t}-slider`]:{borderRadius:d/2,[`${t}-palette`]:{height:d},[`${t}-gradient`]:{borderRadius:d/2,boxShadow:o},"&-alpha":v$(`${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}}}}}},RW=MW,_W=e=>{const{componentCls:t,antCls:n,colorTextQuaternary:r,paddingXXS:o,colorPickerPresetColorSize:a,fontSizeSM:i,colorText:s,lineHeightSM:l,lineWidth:c,borderRadius:u,colorFill:d,colorWhite:m,marginXXS:g,paddingXS:h}=e;return {[`${t}-presets`]:{[`${n}-collapse-item > ${n}-collapse-header`]:{padding:0,[`${n}-collapse-expand-icon`]:{height:i*l,color:r,paddingInlineEnd:o}},[`${n}-collapse`]:{display:"flex",flexDirection:"column",gap:g},[`${n}-collapse-item > ${n}-collapse-content > ${n}-collapse-content-box`]:{padding:`${h}px 0`},"&-label":{fontSize:i,color:s,lineHeight:l},"&-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*c,height:a+4*c,position:"absolute",top:-2*c,insetInlineStart:-2*c,borderRadius:u,border:`${c}px solid transparent`,transition:`border-color ${e.motionDurationMid} ${e.motionEaseInBack}`},"&:hover::before":{borderColor:d},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:a/13*5,height:a/13*8,border:`${e.lineWidthBold}px solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`},[`&${t}-presets-color-checked`]:{"&::after":{opacity:1,borderColor: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}}}},TW=_W,ym=(e,t,n)=>({borderInlineEndWidth:e.lineWidth,borderColor:t,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${n}`,outline:0}),NW=e=>{const{componentCls:t}=e;return {"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},i0=(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}})}},kW=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({},ym(e,n,i))},[`&${t}-status-warning`]:{borderColor:r,"&:hover":{borderColor:a},[`&${t}-trigger-active`]:Object.assign({},ym(e,r,s))}}},LW=e=>{const{componentCls:t,controlHeightLG:n,controlHeightSM:r,controlHeight:o,controlHeightXS:a,borderRadius:i,borderRadiusSM:s,borderRadiusXS:l,borderRadiusLG:c,fontSizeLG:u}=e;return {[`&${t}-lg`]:{minWidth:n,height:n,borderRadius:c,[`${t}-color-block, ${t}-clear`]:{width:o,height:o,borderRadius:i},[`${t}-trigger-text`]:{fontSize:u}},[`&${t}-sm`]:{minWidth:r,height:r,borderRadius:s,[`${t}-color-block, ${t}-clear`]:{width:a,height:a,borderRadius:l}}}},AW=e=>{const{componentCls:t,colorPickerWidth:n,colorPrimary:r,motionDurationMid:o,colorBgElevated:a,colorTextDisabled:i,colorText:s,colorBgContainerDisabled:l,borderRadius:c,marginXS:u,marginSM:d,controlHeight:m,controlHeightSM:g,colorBgTextActive:h,colorPickerPresetColorSize:v,colorPickerPreviewSize:p,lineWidth:b,colorBorder:y,paddingXXS:C,fontSize:$,colorPrimaryHover:x,controlOutline:w}=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({},RW(e))},a0(e,p)),PW(e)),TW(e)),i0(e,v,{marginInlineStart:"auto",marginBottom:u})),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:m,height:m,borderRadius:c,border:`${b}px solid ${y}`,cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",transition:`all ${o}`,background:a,padding:C-b,[`${t}-trigger-text`]:{marginInlineStart:u,marginInlineEnd:u-(C-b),fontSize:$,color:s},"&:hover":{borderColor:x},[`&${t}-trigger-active`]:Object.assign({},ym(e,r,w)),"&-disabled":{color:i,background:l,cursor:"not-allowed","&:hover":{borderColor:h},[`${t}-trigger-text`]:{color:i}}},i0(e,g)),a0(e,g)),kW(e)),LW(e))},NW(e))}]},zW=Bt("ColorPicker",e=>{const{colorTextQuaternary:t,marginSM:n}=e,r=8,o=bt(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 [AW(o)]});var DW=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 Ah=e=>{const{value:t,defaultValue:n,format:r,defaultFormat:o,allowClear:a=!1,presets:i,children:s,trigger:l="click",open:c,disabled:u,placement:d="bottomLeft",arrow:m=!0,panelRender:g,showText:h,style:v,className:p,size:b,rootClassName:y,styles:C,disabledAlpha:$=!1,onFormatChange:x,onChange:w,onClear:S,onOpenChange:E,onChangeComplete:I,getPopupContainer:O,autoAdjustOverflow:R=!0,destroyTooltipOnHide:P}=e,k=DW(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:L,direction:A,colorPicker:T}=f.useContext(Je),[,M]=Un(),[_,D]=EW(M.colorPrimary,{value:t,defaultValue:n}),[F,H]=Vt(!1,{value:c,postState:Ae=>!u&&Ae,onChange:E}),[B,W]=Vt(r,{value:r,defaultValue:o,onChange:x}),[K,X]=f.useState(!1),q=L("color-picker",uH),ne=f.useMemo(()=>hc(_)<100,[_]),{status:G}=f.useContext(br),ee=Xn(b),[Y,ue]=zW(q),le={[`${q}-rtl`]:A},Z=V(y,le),oe=V(Tr(q,G),{[`${q}-sm`]:ee==="small",[`${q}-lg`]:ee==="large"},T==null?void 0:T.className,Z,p,ue),fe=V(q,le),J=f.useRef(!0),se=(Ae,Ve,Oe)=>{let je=kn(Ae);(K||(t===null||!t&&n===null))&&(X(!1),hc(_)===0&&Ve!=="alpha"&&(je=Hd(je))),$&&ne&&(je=Hd(je)),Oe?J.current=!1:I==null||I(je),D(je),w==null||w(je,je.toHexString());},me=()=>{X(!0),S==null||S();},re=Ae=>{J.current=!0;let Ve=kn(Ae);$&&ne&&(Ve=Hd(Ae)),I==null||I(Ve);},ie={open:F,trigger:l,placement:d,arrow:m,rootClassName:y,getPopupContainer:O,autoAdjustOverflow:R,destroyTooltipOnHide:P},ge={prefixCls:q,color:_,allowClear:a,colorCleared:K,disabled:u,disabledAlpha:$,presets:i,panelRender:g,format:B,onFormatChange:W,onChangeComplete:re},be=Object.assign(Object.assign({},T==null?void 0:T.style),v),[Te]=ks("ColorPicker");return Y(f.createElement(Mu,Object.assign({style:C==null?void 0:C.popup,overlayInnerStyle:C==null?void 0:C.popupOverlayInner,onOpenChange:Ae=>{J.current&&!u&&H(Ae);},content:f.createElement(ds,{override:!0,status:!0},f.createElement(CW,Object.assign({},ge,{onChange:se,onChangeComplete:re,onClear:me}))),overlayClassName:fe,zIndex:Te},ie),s||f.createElement(wW,Object.assign({open:F,className:oe,style:be,color:t?kn(t):_,prefixCls:q,disabled:u,colorCleared:K,showText:h,format:B},k))))},jW=Eh(Ah,"color-picker",e=>e,e=>Object.assign(Object.assign({},e),{placement:"bottom",autoAdjustOverflow:!1}));Ah._InternalPanelDoNotUseOrYouWillBeFired=jW;const FW=Ah;var BW=["size","strokeWidth","strokeLinecap","strokeLinejoin","theme","fill","className","spin"];function s0(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 l0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?s0(Object(n),!0).forEach(function(r){HW(e,r,n[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r));});}return e}function HW(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WW(e,t){if(e==null)return {};var n=VW(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 VW(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 GW={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 KW(){return "icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)}function UW(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 p$=f.createContext(GW);p$.Provider;function Gt(e,t,n){return function(r){var o=r.size,a=r.strokeWidth,i=r.strokeLinecap,s=r.strokeLinejoin,l=r.theme,c=r.fill,u=r.className,d=r.spin,m=WW(r,BW),g=f.useContext(p$),h=f.useMemo(KW,[]),v=UW(h,{size:o,strokeWidth:a,strokeLinecap:i,strokeLinejoin:s,theme:l,fill:c},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",l0(l0({},m),{},{className:p.join(" ")}),n(v))}}const XW=Gt("split",!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 10V7C19 5.89543 19.8954 5 21 5H41C42.1046 5 43 5.89543 43 7V29C43 30.1046 42.1046 31 41 31H37",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),f.createElement("rect",{x:"5",y:"18",width:"24",height:"24",rx:"2",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),qW=Gt("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}))}),YW=Gt("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}))}),QW=Gt("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}))}),ZW=Gt("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=Gt("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}))}),eV=Gt("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}))}),tV=Gt("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}))}),nV=Gt("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}))}),rV=Gt("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}))}),oV=Gt("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}))}),aV=Gt("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}))}),iV=Gt("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}))}),sV=Gt("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]}))}),lV=Gt("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}))}),cV=Gt("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}))}),uV=Gt("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}))}),dV=Gt("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}))}),fV=Gt("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}))}),mV=Gt("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}))}),gV=Gt("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}))}),hV=Gt("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}))}),vV=Gt("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]}))}),pV=Gt("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}))}),bV=Gt("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}))}),yV=Gt("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}))}),CV={Close:yV,Config:bV,DistraughtFace:pV,Help:vV,Info:hV,Loading:gV,LoadingThree:mV,Return:fV,Tips:dV,Computer:uV,Iphone:cV,Concern:lV,Tumblr:sV,FileCabinet:iV,Star:aV,EfferentFour:oV,Copy:rV,DislikeTwo:nV,Unlike:tV,PlayTwo:eV,AddTwo:JW,Delete:ZW,PeopleDelete:QW,PeopleMinus:YW,PeopleSearch:qW,Split:XW};function At({name:e,theme:t,size:n,fill:r,...o}){t||(t="outline"),n||(n=24),r||(r="currentColor");const a=CV[e];return j(a,{theme:t,size:n,fill:r,...o,style:{fontSize:0,...o.style}})}const SV=e=>{const t=e!=null&&e.algorithm?ss(e.algorithm):ss(Ts),n=Object.assign(Object.assign({},Ua),e==null?void 0:e.token);return N1(n,{override:e==null?void 0:e.token},t,Lg)},$V=SV;function wV(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 xV=(e,t)=>{const n=t??Ts(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),wV(t??e)),K1(r)),{controlHeight:o}),V1(Object.assign(Object.assign({},n),{controlHeight:o})))},EV=xV,no=(e,t)=>new Yt(e).setAlpha(t).toRgbString(),Ea=(e,t)=>new Yt(e).lighten(t).toHexString(),IV=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]}},OV=(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:Ea(n,12),colorBgContainer:Ea(n,8),colorBgLayout:Ea(n,0),colorBgSpotlight:Ea(n,26),colorBgBlur:no(r,.04),colorBorder:Ea(n,26),colorBorderSecondary:Ea(n,19)}},PV=(e,t)=>{const n=Object.keys(kg).map(o=>{const a=lo(e[o],{theme:"dark"});return new Array(10).fill(1).reduce((i,s,l)=>(i[`${o}-${l+1}`]=a[l],i[`${o}${l+1}`]=a[l],i),{})}).reduce((o,a)=>(o=Object.assign(Object.assign({},o),a),o),{}),r=t??Ts(e);return Object.assign(Object.assign(Object.assign({},r),n),G1(e,{generateColorPalettes:IV,generateNeutralColorPalettes:OV}))},MV=PV;function RV(){const[e,t,n]=Un();return {theme:e,token:t,hashId:n}}const c0={defaultConfig:rc,defaultSeed:rc.token,useToken:RV,defaultAlgorithm:Ts,darkAlgorithm:MV,compactAlgorithm:EV,getDesignToken:$V};var _V=m1,u0=1/0,TV=17976931348623157e292;function NV(e){if(!e)return e===0?e:0;if(e=_V(e),e===u0||e===-u0){var t=e<0?-1:1;return t*TV}return e===e?e:0}var kV=NV,LV=kV;function AV(e){var t=LV(e),n=t%1;return t===t?n?t-n:t:0}var zV=AV,DV=zV,jV="Expected a function";function FV(e,t){var n;if(typeof t!="function")throw new TypeError(jV);return e=DV(e),function(){return --e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var BV=FV,HV=BV;function WV(e){return HV(2,e)}var VV=WV;const b$=hn(VV),GV=Symbol(),zh=Symbol(),Li="a",Gl="w";let KV=(e,t)=>new Proxy(e,t);const Cm=Object.getPrototypeOf,Sm=new WeakMap,y$=e=>e&&(Sm.has(e)?Sm.get(e):Cm(e)===Object.prototype||Cm(e)===Array.prototype),d0=e=>typeof e=="object"&&e!==null,UV=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(Cm(e),t)},C$=e=>e[zh]||e,S$=(e,t,n,r)=>{if(!y$(e))return e;let o=r&&r.get(e);if(!o){const l=C$(e);o=(c=>Object.values(Object.getOwnPropertyDescriptors(c)).some(u=>!u.configurable&&!u.writable))(l)?[l,UV(l)]:[l],r==null||r.set(e,o);}const[a,i]=o;let s=n&&n.get(a);return s&&s[1].f===!!i||(s=((l,c)=>{const u={f:c};let d=!1;const m=(h,v)=>{if(!d){let p=u[Li].get(l);if(p||(p={},u[Li].set(l,p)),h===Gl)p[Gl]=!0;else {let b=p[h];b||(b=new Set,p[h]=b),b.add(v);}}},g={get:(h,v)=>v===zh?l:(m("k",v),S$(Reflect.get(h,v),u[Li],u.c,u.t)),has:(h,v)=>v===GV?(d=!0,u[Li].delete(l),!0):(m("h",v),Reflect.has(h,v)),getOwnPropertyDescriptor:(h,v)=>(m("o",v),Reflect.getOwnPropertyDescriptor(h,v)),ownKeys:h=>(m(Gl),Reflect.ownKeys(h))};return c&&(g.set=g.deleteProperty=()=>!1),[g,u]})(a,!!i),s[1].p=KV(i||a,s[0]),n&&n.set(a,s)),s[1][Li]=t,s[1].c=n,s[1].t=r,s[1].p},$$=(e,t,n,r)=>{if(Object.is(e,t))return !1;if(!d0(e)||!d0(t))return !0;const o=n.get(C$(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[Gl]===!0){if(a=((i,s)=>{const l=Reflect.ownKeys(i),c=Reflect.ownKeys(s);return l.length!==c.length||l.some((u,d)=>u!==c[d])})(e,t),a)return a}else for(const i of o.o||[])if(a=!!Reflect.getOwnPropertyDescriptor(e,i)!=!!Reflect.getOwnPropertyDescriptor(t,i),a)return a;for(const i of o.k||[])if(a=$$(e[i],t[i],n,r),a)return a;return a===null&&(a=!0),a}finally{r&&r.set(e,{n:t,g:a});}},XV=e=>y$(e)&&e[zh]||null,f0=(e,t=!0)=>{Sm.set(e,t);};const Zd=e=>typeof e=="object"&&e!==null,bo=new WeakMap,xl=new WeakSet,qV=(e=Object.is,t=(c,u)=>new Proxy(c,u),n=c=>Zd(c)&&!xl.has(c)&&(Array.isArray(c)||!(Symbol.iterator in c))&&!(c instanceof WeakMap)&&!(c instanceof WeakSet)&&!(c instanceof Error)&&!(c instanceof Number)&&!(c instanceof Date)&&!(c instanceof String)&&!(c instanceof RegExp)&&!(c instanceof ArrayBuffer),r=c=>{switch(c.status){case"fulfilled":return c.value;case"rejected":throw c.reason;default:throw c}},o=new WeakMap,a=(c,u,d=r)=>{const m=o.get(c);if((m==null?void 0:m[0])===u)return m[1];const g=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c));return f0(g,!0),o.set(c,[u,g]),Reflect.ownKeys(c).forEach(h=>{if(Object.getOwnPropertyDescriptor(g,h))return;const v=Reflect.get(c,h),{enumerable:p}=Reflect.getOwnPropertyDescriptor(c,h),b={value:v,enumerable:p,configurable:!0};if(xl.has(v))f0(v,!1);else if(v instanceof Promise)delete b.value,b.get=()=>d(v);else if(bo.has(v)){const[y,C]=bo.get(v);b.value=a(y,C(),d);}Object.defineProperty(g,h,b);}),Object.preventExtensions(g)},i=new WeakMap,s=[1,1],l=c=>{if(!Zd(c))throw new Error("object required");const u=i.get(c);if(u)return u;let d=s[0];const m=new Set,g=(I,O=++s[0])=>{d!==O&&(d=O,m.forEach(R=>R(I,O)));};let h=s[1];const v=(I=++s[1])=>(h!==I&&!m.size&&(h=I,b.forEach(([O])=>{const R=O[1](I);R>d&&(d=R);})),d),p=I=>(O,R)=>{const P=[...O];P[1]=[I,...P[1]],g(P,R);},b=new Map,y=(I,O)=>{if(m.size){const R=O[3](p(I));b.set(I,[O,R]);}else b.set(I,[O]);},C=I=>{var O;const R=b.get(I);R&&(b.delete(I),(O=R[1])==null||O.call(R));},$=I=>(m.add(I),m.size===1&&b.forEach(([R,P],k)=>{const L=R[3](p(k));b.set(k,[R,L]);}),()=>{m.delete(I),m.size===0&&b.forEach(([R,P],k)=>{P&&(P(),b.set(k,[R]));});}),x=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c)),S=t(x,{deleteProperty(I,O){const R=Reflect.get(I,O);C(O);const P=Reflect.deleteProperty(I,O);return P&&g(["delete",[O],R]),P},set(I,O,R,P){const k=Reflect.has(I,O),L=Reflect.get(I,O,P);if(k&&(e(L,R)||i.has(R)&&e(L,i.get(R))))return !0;C(O),Zd(R)&&(R=XV(R)||R);let A=R;if(R instanceof Promise)R.then(T=>{R.status="fulfilled",R.value=T,g(["resolve",[O],T]);}).catch(T=>{R.status="rejected",R.reason=T,g(["reject",[O],T]);});else {!bo.has(R)&&n(R)&&(A=l(R));const T=!xl.has(A)&&bo.get(A);T&&y(O,T);}return Reflect.set(I,O,A,P),g(["set",[O],R,L]),!0}});i.set(c,S);const E=[x,v,a,$];return bo.set(S,E),Reflect.ownKeys(c).forEach(I=>{const O=Object.getOwnPropertyDescriptor(c,I);"value"in O&&(S[I]=c[I],delete O.value,delete O.writable),Object.defineProperty(x,I,O);}),S})=>[l,bo,xl,e,t,n,r,o,a,i,s],[YV]=qV();function ar(e={}){return YV(e)}function Dh(e,t,n){const r=bo.get(e);let o;const a=[],i=r[3];let s=!1;const c=i(u=>{if(a.push(u),n){t(a.splice(0));return}o||(o=Promise.resolve().then(()=>{o=void 0,s&&t(a.splice(0));}));});return s=!0,()=>{s=!1,c();}}function vc(e,t){const n=bo.get(e),[r,o,a]=n;return a(r,o(),t)}var w$={exports:{}},x$={};/**
   * @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 Ja=f;function QV(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ZV=typeof Object.is=="function"?Object.is:QV,JV=Ja.useState,eG=Ja.useEffect,tG=Ja.useLayoutEffect,nG=Ja.useDebugValue;function rG(e,t){var n=t(),r=JV({inst:{value:n,getSnapshot:t}}),o=r[0].inst,a=r[1];return tG(function(){o.value=n,o.getSnapshot=t,Jd(o)&&a({inst:o});},[e,n,t]),eG(function(){return Jd(o)&&a({inst:o}),e(function(){Jd(o)&&a({inst:o});})},[e]),nG(n),n}function Jd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return !ZV(e,n)}catch{return !0}}function oG(e,t){return t()}var aG=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?oG:rG;x$.useSyncExternalStore=Ja.useSyncExternalStore!==void 0?Ja.useSyncExternalStore:aG;w$.exports=x$;var iG=w$.exports;const sG=hn(iG),{use:m0}=f,{useSyncExternalStore:lG}=sG;const cG=new WeakMap;function sr(e,t){const n=t==null?void 0:t.sync,r=f.useRef(),o=f.useRef();let a=!0;const i=lG(f.useCallback(c=>{const u=Dh(e,c,n);return c(),u},[e,n]),()=>{const c=vc(e,m0);try{if(!a&&r.current&&o.current&&!$$(r.current,c,o.current,new WeakMap))return r.current}catch{}return c},()=>vc(e,m0));a=!1;const s=new WeakMap;f.useEffect(()=>{r.current=i,o.current=s;});const l=f.useMemo(()=>new WeakMap,[]);return S$(i,s,l,cG)}const ei=b$(()=>!!document.querySelectorAll(".bili-feed4").length),E$=()=>document.body.classList.contains("dark"),I$=ar({value:E$()});function jh(){return sr(I$).value}const O$=new MutationObserver(function(){I$.value=E$();});O$.observe(document.body,{attributes:!0,attributeFilter:["class"]});window.addEventListener("unload",()=>{O$.disconnect();});const P$=Jx();var cy;const uG=((cy=P$.os.name)==null?void 0:cy.toLowerCase())==="mac os";var uy;const Fh=((uy=P$.browser.name)==null?void 0:uy.toLowerCase())==="safari";var dG=Ny(function(e,t){var n=e.styles,r=Da([n],void 0,f__namespace.useContext(ky)),o=f__namespace.useRef();return Cv(function(){var a=t.key+"-global",i=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,l=document.querySelector('style[data-emotion="'+a+" "+r.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),l!==null&&(s=!0,l.setAttribute("data-emotion",a),i.hydrate([l])),o.current=[i,s],function(){i.flush();}},[t]),Cv(function(){var a=o.current,i=a[0],s=a[1];if(s){a[1]=!1;return}if(r.next!==void 0&&ag(t,r.next,!0),i.tags.length){var l=i.tags[i.tags.length-1].nextElementSibling;i.before=l,i.flush();}t.insert("",r,i,!1);},[t,r.name]),null});function _r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Da(t)}var ju={},M$={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;})(M$);var Bh=M$.exports,Fu={};Object.defineProperty(Fu,"__esModule",{value:!0});Fu.default=void 0;Fu.default={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"};var Bu={},Ks={},Hu={};Object.defineProperty(Hu,"__esModule",{value:!0});Hu.default=void 0;var fG={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:"下一世纪"};Hu.default=fG;var Us={};Object.defineProperty(Us,"__esModule",{value:!0});Us.default=void 0;const mG={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};Us.default=mG;var R$=Bh.default;Object.defineProperty(Ks,"__esModule",{value:!0});Ks.default=void 0;var gG=R$(Hu),hG=R$(Us);const _$={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},gG.default),timePickerLocale:Object.assign({},hG.default)};_$.lang.ok="确定";Ks.default=_$;var vG=Bh.default;Object.defineProperty(Bu,"__esModule",{value:!0});Bu.default=void 0;var pG=vG(Ks);Bu.default=pG.default;var Wu=Bh.default;Object.defineProperty(ju,"__esModule",{value:!0});ju.default=void 0;var bG=Wu(Fu),yG=Wu(Bu),CG=Wu(Ks),SG=Wu(Us);const Zn="${label}不是一个有效的${type}",$G={locale:"zh-cn",Pagination:bG.default,DatePicker:CG.default,TimePicker:SG.default,Calendar:yG.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:Zn,method:Zn,array:Zn,object:Zn,number:Zn,date:Zn,boolean:Zn,integer:Zn,float:Zn,regexp:Zn,email:Zn,url:Zn,hex:Zn},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:"暂无"}};ju.default=$G;var wG=ju;const xG=hn(wG);function Hh({children:e}){const t=jh(),{colorPrimary:n}=L$();return pe(Wg,{locale:xG,theme:{algorithm:t?c0.darkAlgorithm:c0.defaultAlgorithm,token:{colorPrimary:n,colorBgSpotlight:n,zIndexPopupBase:11e3,fontFamily:"inherit"}},children:[j(dG,{styles:_r(":root{",A$,":",n,";}","")}),e]})}function Vu(e){return j(Ls,{...e,overlayStyle:{width:"max-content",maxWidth:"50vw",...e.overlayInnerStyle},children:e.children})}function wn({configKey:e,label:t,extraAction:n,tooltip:r,...o}){const i=!!In()[e],s=f.useCallback(c=>{const u=c.target.checked;yr({[e]:u}),n==null||n(u);},[]);let l=j("span",{style:{userSelect:"none"},children:t||e});return r&&(l=j(Ls,{title:r,overlayStyle:{width:"max-content",maxWidth:"50vw"},children:l})),j(Iu,{...o,checked:i,onChange:s,children:l})}var EG={name:"1qkltea",styles:"margin-left:5px"};const IG=function(){const e=EG;return pe(_t,{children:[j(wn,{configKey:"initialShowMore",label:"自动查看更多",css:e}),j(wn,{configKey:"useNarrowMode",label:"启用居中模式",css:e})]})};function Gu({tooltip:e,iconProps:t,tooltipProps:n}){return j(_t,{children:e&&j(Vu,{...n,title:e,children:j(At,{name:"Info",size:18,...t,style:{cursor:"pointer",marginLeft:"4px",...t==null?void 0:t.style}})})})}const OG=[{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)"}],pc={id:"default-bili-pink",name:"B站粉",isDark:!1,isCustom:!1,colorPrimary:"#ff6699"},T$={id:"color-picker",name:"自定义",isDark:!1,isCustom:!0,colorPrimary:"#ff6699"};function PG(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 N$="UP长期洗涤",MG=PG(N$,`
  #0545b2 理想之蓝
  #f4cd00 柠檬黄
  #ef2729 石榴红
  #f89c00 鹿箭
  #233728 黛绿
  #f2b9b7 和熙粉
  #f3cc91 芝士黄
  #6b4c68 葡萄紫
  #ff7227 落日橙
  #004d62 碧海天
  #23909b 洗碧空
  #aeb400 芥丝绿
  #425a17 箬叶青

  #002FA7 克莱因蓝
  #003153 普鲁士蓝
  #01847F 马尔斯绿
  #FBD26A 申布伦黄
  #470024 勃艮第红
  #492D22 凡戴克棕
  `),k$=[{name:"预设",themes:[pc,{id:"bilibili-blue",name:"B站蓝",colorPrimary:"#00aeec"},{id:"app-靓紫",name:"靓紫",colorPrimary:"#8500ff"},T$]},{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:OG,tooltip:pe(_t,{children:["提取自"," ",j("a",{target:"_blank",href:"https://github.com/lyswhut/lx-music-desktop/",children:"lx-music-desktop"}),j("br",{}),"Apache License 2.0"]})},{name:N$,themes:MG,tooltip:pe(_t,{children:["提取自"," ",j("a",{target:"_blank",href:"https://www.bilibili.com/video/BV1g3411u7Lg/",children:"BV1g3411u7Lg"})," ","&"," ",j("a",{target:"_blank",href:"https://www.bilibili.com/video/BV1xu411q7sU/",children:"BV1xu411q7sU"})]})}],RG=k$.map(e=>e.themes).flat();function L$(){let{theme:e,colorPickerThemeSelectedColor:t}=In();return e||(e=pc.id),f.useMemo(()=>{const n=RG.find(r=>r.id===e)||pc;return n.id===T$.id&&t&&(n.colorPrimary=t),n},[e,t])}const A$=`--${xn}-color-primary`,fo=`var(${A$})`;var _G={name:"1ba68ro",styles:"min-width:60px;text-align:center;cursor:pointer"},TG={name:"lj8i4f",styles:"width:50px;height:50px;padding:3px;border:2px solid transparent;border-radius:5px;margin:0 auto"},NG={name:"1kk26el",styles:"font-size:1.5em;display:flex;align-items:center;margin-top:10px"};function kG(){const e=L$().id,{colorPickerThemeSelectedColor:t}=In(),[n,r]=f.useState(t||pc.colorPrimary),o=f.useMemo(()=>typeof n=="string"?n:n.toHexString(),[n]);return j("div",{children:k$.map(({name:a,themes:i,tooltip:s})=>pe(f.Fragment,{children:[pe("div",{css:NG,children:[a,j(Gu,{tooltip:s,tooltipProps:{color:"rgba(0, 0, 0, 0.85)"},iconProps:{name:"Tips",size:16}})]}),j("div",{style:{display:"flex",flexWrap:"wrap",gap:"2px 8px"},children:i.map(l=>{const c=e===l.id,u=l.isCustom,d=j("div",{className:"preview",css:_r("width:100%;height:100%;background-color:",u?o:l.colorPrimary,";border-radius:5px;","")});let m=j("div",{className:"preview-wrapper",css:[TG,c&&_r("border-color:",l.colorPrimary,";",""),"",""],children:d});return l.isCustom&&(m=j(FW,{value:n,onChange:g=>r(g),onOpenChange:g=>{g||yr({colorPickerThemeSelectedColor:o});},children:m})),pe("div",{css:_G,onClick:g=>{yr({theme:l.id});},children:[m,l.name]},l.id)})})]},a))})}function g0(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function h0(e,t,n){var r=[],o=og(e,r,n);return r.length<2?n:o+t(r)}var LG=function(t){var n=xy(t);n.sheet.speedy=function(s){this.isSpeedy=s;},n.compat=!0;var r=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=Da(c,n.registered,void 0);return ag(n,d,!1),n.key+"-"+d.name},o=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=Da(c,n.registered),m="animation-"+d.name;return g0(n,{name:d.name,styles:"@keyframes "+m+"{"+d.styles+"}"}),m},a=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=Da(c,n.registered);g0(n,d);},i=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return h0(n.registered,r,AG(c))};return {css:r,cx:i,injectGlobal:a,keyframes:o,hydrate:function(l){l.forEach(function(c){n.inserted[c]=!0;});},flush:function(){n.registered={},n.inserted={},n.sheet.flush();},sheet:n.sheet,cache:n,getRegisteredStyles:og.bind(null,n.registered),merge:h0.bind(null,n.registered,r)}},AG=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},zG=LG({key:"css"}),bc=zG.css;const DG=bc("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;",""),jG=bc({name:"1azakc",styles:"text-align:center"});function wt(e,t=2e3){const n=document.createElement("div");n.className=DG,n.innerText=e,!e.includes(`
`)&&!e.includes("<br")&&n.classList.add(jG),document.body.appendChild(n),setTimeout(()=>n.remove(),t);}const FG="请求失败, 请重试 !!!",z$="操作失败, 请重试 !!!";function D$(){return wt(FG)}function j$(){return wt(z$)}function Wh(){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 wi(){const e=Wh().bili_jct;if(!e)throw wt("找不到 csrf token, 请检查是否登录(不可用)"),new Error("找不到 csrf token, 请检查是否登录(不可用)");return e}function Ku(){return Wh().DedeUserID}function Xs(){return !!Wh().DedeUserID}const $m=ar({cookie:document.cookie,logined:Xs()});function HG(){return Object.assign($m,{cookie:document.cookie,logined:Xs()}),$m.logined}function Vh(){return sr($m).logined}const v0=()=>{const e=new Error("Delay aborted");return e.name="AbortError",e},WG=new WeakMap;function VG({clearTimeout:e,setTimeout:t}={}){return (n,{value:r,signal:o}={})=>{if(o!=null&&o.aborted)return Promise.reject(v0());let a,i,s;const l=e??clearTimeout,c=()=>{l(a),s(v0());},u=()=>{o&&o.removeEventListener("abort",c);},d=new Promise((m,g)=>{i=()=>{u(),m(r);},s=g,a=(t??setTimeout)(i,n);});return o&&o.addEventListener("abort",c,{once:!0}),WG.set(d,()=>{l(a),a=null,i();}),d}}const pr=VG(),GG=vi.extend("utility:dom"),KG=10*1e3,UG=200;async function Yi(e,t,n=()=>!0){let r=[];const o=()=>{r=Array.from(document.querySelectorAll(e)).filter(n);};o();const i=performance.now()+KG;for(;!r.length&&performance.now()<i;)await pr(UG),o();if(!r.length){console.warn(`[${xn}]: tryAction timeout, selector = \`%s\``,e);return}GG("tryAction: selector=`%s` count=%s",e,r.length);for(const s of r)await Promise.resolve(t(s));}async function Aa(e,t,n){return typeof n=="number"&&await pr(n),Yi(e,r=>r.remove(),t)}function Uu(){var t;const e=(((t=document.activeElement)==null?void 0:t.tagName)||"").toLowerCase();return !!(["input","textarea"].includes(e)||document.querySelector(".center-search__bar.is-focus"))}var F$={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",l="hour",c="day",u="week",d="month",m="quarter",g="year",h="date",v="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(L){var A=["th","st","nd","rd"],T=L%100;return "["+L+(A[(T-20)%10]||A[T]||A[0])+"]"}},C=function(L,A,T){var M=String(L);return !M||M.length>=A?L:""+Array(A+1-M.length).join(T)+L},$={s:C,z:function(L){var A=-L.utcOffset(),T=Math.abs(A),M=Math.floor(T/60),_=T%60;return (A<=0?"+":"-")+C(M,2,"0")+":"+C(_,2,"0")},m:function L(A,T){if(A.date()<T.date())return -L(T,A);var M=12*(T.year()-A.year())+(T.month()-A.month()),_=A.clone().add(M,d),D=T-_<0,F=A.clone().add(M+(D?-1:1),d);return +(-(M+(T-_)/(D?_-F:F-_))||0)},a:function(L){return L<0?Math.ceil(L)||0:Math.floor(L)},p:function(L){return {M:d,y:g,w:u,d:c,D:h,h:l,m:s,s:i,ms:a,Q:m}[L]||String(L||"").toLowerCase().replace(/s$/,"")},u:function(L){return L===void 0}},x="en",w={};w[x]=y;var S="$isDayjsObject",E=function(L){return L instanceof P||!(!L||!L[S])},I=function L(A,T,M){var _;if(!A)return x;if(typeof A=="string"){var D=A.toLowerCase();w[D]&&(_=D),T&&(w[D]=T,_=D);var F=A.split("-");if(!_&&F.length>1)return L(F[0])}else {var H=A.name;w[H]=A,_=H;}return !M&&_&&(x=_),_||!M&&x},O=function(L,A){if(E(L))return L.clone();var T=typeof A=="object"?A:{};return T.date=L,T.args=arguments,new P(T)},R=$;R.l=I,R.i=E,R.w=function(L,A){return O(L,{locale:A.$L,utc:A.$u,x:A.$x,$offset:A.$offset})};var P=function(){function L(T){this.$L=I(T.locale,null,!0),this.parse(T),this.$x=this.$x||T.x||{},this[S]=!0;}var A=L.prototype;return A.parse=function(T){this.$d=function(M){var _=M.date,D=M.utc;if(_===null)return new Date(NaN);if(R.u(_))return new Date;if(_ instanceof Date)return new Date(_);if(typeof _=="string"&&!/Z$/i.test(_)){var F=_.match(p);if(F){var H=F[2]-1||0,B=(F[7]||"0").substring(0,3);return D?new Date(Date.UTC(F[1],H,F[3]||1,F[4]||0,F[5]||0,F[6]||0,B)):new Date(F[1],H,F[3]||1,F[4]||0,F[5]||0,F[6]||0,B)}}return new Date(_)}(T),this.init();},A.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds();},A.$utils=function(){return R},A.isValid=function(){return this.$d.toString()!==v},A.isSame=function(T,M){var _=O(T);return this.startOf(M)<=_&&_<=this.endOf(M)},A.isAfter=function(T,M){return O(T)<this.startOf(M)},A.isBefore=function(T,M){return this.endOf(M)<O(T)},A.$g=function(T,M,_){return R.u(T)?this[M]:this.set(_,T)},A.unix=function(){return Math.floor(this.valueOf()/1e3)},A.valueOf=function(){return this.$d.getTime()},A.startOf=function(T,M){var _=this,D=!!R.u(M)||M,F=R.p(T),H=function(ee,Y){var ue=R.w(_.$u?Date.UTC(_.$y,Y,ee):new Date(_.$y,Y,ee),_);return D?ue:ue.endOf(c)},B=function(ee,Y){return R.w(_.toDate()[ee].apply(_.toDate("s"),(D?[0,0,0,0]:[23,59,59,999]).slice(Y)),_)},W=this.$W,K=this.$M,X=this.$D,q="set"+(this.$u?"UTC":"");switch(F){case g:return D?H(1,0):H(31,11);case d:return D?H(1,K):H(0,K+1);case u:var ne=this.$locale().weekStart||0,G=(W<ne?W+7:W)-ne;return H(D?X-G:X+(6-G),K);case c:case h:return B(q+"Hours",0);case l:return B(q+"Minutes",1);case s:return B(q+"Seconds",2);case i:return B(q+"Milliseconds",3);default:return this.clone()}},A.endOf=function(T){return this.startOf(T,!1)},A.$set=function(T,M){var _,D=R.p(T),F="set"+(this.$u?"UTC":""),H=(_={},_[c]=F+"Date",_[h]=F+"Date",_[d]=F+"Month",_[g]=F+"FullYear",_[l]=F+"Hours",_[s]=F+"Minutes",_[i]=F+"Seconds",_[a]=F+"Milliseconds",_)[D],B=D===c?this.$D+(M-this.$W):M;if(D===d||D===g){var W=this.clone().set(h,1);W.$d[H](B),W.init(),this.$d=W.set(h,Math.min(this.$D,W.daysInMonth())).$d;}else H&&this.$d[H](B);return this.init(),this},A.set=function(T,M){return this.clone().$set(T,M)},A.get=function(T){return this[R.p(T)]()},A.add=function(T,M){var _,D=this;T=Number(T);var F=R.p(M),H=function(K){var X=O(D);return R.w(X.date(X.date()+Math.round(K*T)),D)};if(F===d)return this.set(d,this.$M+T);if(F===g)return this.set(g,this.$y+T);if(F===c)return H(1);if(F===u)return H(7);var B=(_={},_[s]=r,_[l]=o,_[i]=n,_)[F]||1,W=this.$d.getTime()+T*B;return R.w(W,this)},A.subtract=function(T,M){return this.add(-1*T,M)},A.format=function(T){var M=this,_=this.$locale();if(!this.isValid())return _.invalidDate||v;var D=T||"YYYY-MM-DDTHH:mm:ssZ",F=R.z(this),H=this.$H,B=this.$m,W=this.$M,K=_.weekdays,X=_.months,q=_.meridiem,ne=function(Y,ue,le,Z){return Y&&(Y[ue]||Y(M,D))||le[ue].slice(0,Z)},G=function(Y){return R.s(H%12||12,Y,"0")},ee=q||function(Y,ue,le){var Z=Y<12?"AM":"PM";return le?Z.toLowerCase():Z};return D.replace(b,function(Y,ue){return ue||function(le){switch(le){case"YY":return String(M.$y).slice(-2);case"YYYY":return R.s(M.$y,4,"0");case"M":return W+1;case"MM":return R.s(W+1,2,"0");case"MMM":return ne(_.monthsShort,W,X,3);case"MMMM":return ne(X,W);case"D":return M.$D;case"DD":return R.s(M.$D,2,"0");case"d":return String(M.$W);case"dd":return ne(_.weekdaysMin,M.$W,K,2);case"ddd":return ne(_.weekdaysShort,M.$W,K,3);case"dddd":return K[M.$W];case"H":return String(H);case"HH":return R.s(H,2,"0");case"h":return G(1);case"hh":return G(2);case"a":return ee(H,B,!0);case"A":return ee(H,B,!1);case"m":return String(B);case"mm":return R.s(B,2,"0");case"s":return String(M.$s);case"ss":return R.s(M.$s,2,"0");case"SSS":return R.s(M.$ms,3,"0");case"Z":return F}return null}(Y)||F.replace(":","")})},A.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},A.diff=function(T,M,_){var D,F=this,H=R.p(M),B=O(T),W=(B.utcOffset()-this.utcOffset())*r,K=this-B,X=function(){return R.m(F,B)};switch(H){case g:D=X()/12;break;case d:D=X();break;case m:D=X()/3;break;case u:D=(K-W)/6048e5;break;case c:D=(K-W)/864e5;break;case l:D=K/o;break;case s:D=K/r;break;case i:D=K/n;break;default:D=K;}return _?D:R.a(D)},A.daysInMonth=function(){return this.endOf(d).$D},A.$locale=function(){return w[this.$L]},A.locale=function(T,M){if(!T)return this.$L;var _=this.clone(),D=I(T,M,!0);return D&&(_.$L=D),_},A.clone=function(){return R.w(this.$d,this)},A.toDate=function(){return new Date(this.valueOf())},A.toJSON=function(){return this.isValid()?this.toISOString():null},A.toISOString=function(){return this.$d.toISOString()},A.toString=function(){return this.$d.toUTCString()},L}(),k=P.prototype;return O.prototype=k,[["$ms",a],["$s",i],["$m",s],["$H",l],["$W",c],["$M",d],["$y",g],["$D",h]].forEach(function(L){k[L[1]]=function(A){return this.$g(A,L[0],L[1])};}),O.extend=function(L,A){return L.$i||(L(A,P,O),L.$i=!0),O},O.locale=I,O.isDayjs=E,O.unix=function(L){return O(1e3*L)},O.en=w[x],O.Ls=w,O.p={},O});})(F$);var XG=F$.exports;const sa=hn(XG);function qG(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 Xu(e){return e||(e=0),sa.duration(e||0,"seconds").format(e>=3600?"HH:mm:ss":"mm:ss")}function ef(e){if(!e)return "";if(e<=9999)return e.toString();let t=(e/1e4).toFixed(1);return t=t.replace(/\.0$/,""),`${t}万`}function yc(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 YG=sa().format("YYYY");function xo(e,t=!1){if(!e)return "";const n=sa.unix(e),r=t?" HH:mm":"";return n.format("YYYY")===YG?n.format("M-D"+r):n.format("YY-M-D"+r)}const QG={1:"橙色通过",0:"开放浏览","-1":"待审","-2":"被打回","-3":"网警锁定","-4":"被锁定","-5":"管理员锁定","-6":"修复待审","-7":"暂缓审核","-8":"补档待审","-9":"等待转码","-10":"延迟审核","-11":"视频源待修","-12":"转储失败","-13":"允许评论待审","-14":"临时回收站","-15":"分发中","-16":"转码失败","-20":"创建未提交","-30":"创建已提交","-40":"定时发布","-100":"用户删除"};function ZG(e){if(!(typeof e>"u")&&!(e>=0))return QG[e]}var B$=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);}},Pr=function(){return Pr=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},Pr.apply(this,arguments)};function H$(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 JG(e,t,n,r){function o(a){return a instanceof n?a:new n(function(i){i(a);})}return new(n||(n=Promise))(function(a,i){function s(u){try{c(r.next(u));}catch(d){i(d);}}function l(u){try{c(r.throw(u));}catch(d){i(d);}}function c(u){u.done?a(u.value):o(u.value).then(s,l);}c((r=r.apply(e,t||[])).next());})}function eK(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,o,a,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(c){return function(u){return l([c,u])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(n=0)),n;)try{if(r=1,o&&(a=c[0]&2?o.return:c[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,c[1])).done)return a;switch(o=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,o=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){n.label=c[1];break}if(c[0]===6&&n.label<a[1]){n.label=a[1],a=c;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(c);break}a[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n);}catch(u){c=[6,u],o=0;}finally{r=a=0;}if(c[0]&5)throw c[1];return {value:c[0]?c[1]:void 0,done:!0}}}function wm(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 rn(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 xi=function(e){return typeof e=="function"},tK=function(e){return typeof e=="string"},W$=function(e){return typeof e=="number"};function rt(e){var t=f.useRef(e);t.current=f.useMemo(function(){return e},[e]);var n=f.useRef();return n.current||(n.current=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return t.current.apply(this,r)}),n.current}const Cc=B$(f.useEffect);var V$=function(e,t){var n=t.manual,r=t.ready,o=r===void 0?!0:r,a=t.defaultParams,i=a===void 0?[]:a,s=t.refreshDeps,l=s===void 0?[]:s,c=t.refreshDepsAction,u=f.useRef(!1);return u.current=!1,Cc(function(){!n&&o&&(u.current=!0,e.run.apply(e,Nn([],rn(i),!1)));},[o]),Cc(function(){u.current||n||(u.current=!0,c?c():e.refresh());},Nn([],rn(l),!1)),{onBefore:function(){if(!o)return {stopNow:!0}}}};V$.onInit=function(e){var t=e.ready,n=t===void 0?!0:t,r=e.manual;return {loading:!r&&n}};const rK=V$;function xm(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 G$(e,t){var n=f.useRef({deps:t,obj:void 0,initialized:!1}).current;return (n.initialized===!1||!xm(n.deps,t))&&(n.deps=t,n.obj=e(),n.initialized=!0),n.obj}function ti(e){var t=f.useRef(e);return t.current=e,t}var oK=function(e){var t=ti(e);f.useEffect(function(){return function(){t.current();}},[]);};const qs=oK;var Kl=new Map,aK=function(e,t,n){var r=Kl.get(e);r!=null&&r.timer&&clearTimeout(r.timer);var o=void 0;t>-1&&(o=setTimeout(function(){Kl.delete(e);},t)),Kl.set(e,Pr(Pr({},n),{timer:o}));},iK=function(e){return Kl.get(e)},Ul=new Map,sK=function(e){return Ul.get(e)},lK=function(e,t){Ul.set(e,t),t.then(function(n){return Ul.delete(e),n}).catch(function(){Ul.delete(e);});},Do={},cK=function(e,t){Do[e]&&Do[e].forEach(function(n){return n(t)});},tf=function(e,t){return Do[e]||(Do[e]=[]),Do[e].push(t),function(){var r=Do[e].indexOf(t);Do[e].splice(r,1);}},uK=function(e,t){var n=t.cacheKey,r=t.cacheTime,o=r===void 0?5*60*1e3:r,a=t.staleTime,i=a===void 0?0:a,s=t.setCache,l=t.getCache,c=f.useRef(),u=f.useRef(),d=function(g,h){s?s(h):aK(g,o,h),cK(g,h.data);},m=function(g,h){return h===void 0&&(h=[]),l?l(h):iK(g)};return G$(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)),c.current=tf(n,function(h){e.setState({data:h});});}},[]),qs(function(){var g;(g=c.current)===null||g===void 0||g.call(c);}),n?{onBefore:function(g){var h=m(n,g);return !h||!Object.hasOwnProperty.call(h,"data")?{}:i===-1||new Date().getTime()-h.time<=i?{loading:!1,data:h==null?void 0:h.data,error:void 0,returnNow:!0}:{data:h==null?void 0:h.data,error:void 0}},onRequest:function(g,h){var v=sK(n);return v&&v!==u.current?{servicePromise:v}:(v=g.apply(void 0,Nn([],rn(h),!1)),u.current=v,lK(n,v),{servicePromise:v})},onSuccess:function(g,h){var v;n&&((v=c.current)===null||v===void 0||v.call(c),d(n,{data:g,params:h,time:new Date().getTime()}),c.current=tf(n,function(p){e.setState({data:p});}));},onMutate:function(g){var h;n&&((h=c.current)===null||h===void 0||h.call(c),d(n,{data:g,params:e.state.params,time:new Date().getTime()}),c.current=tf(n,function(v){e.setState({data:v});}));}}:{}};const dK=uK;var fK=function(e,t){var n=t.debounceWait,r=t.debounceLeading,o=t.debounceTrailing,a=t.debounceMaxWait,i=f.useRef(),s=f.useMemo(function(){var l={};return r!==void 0&&(l.leading=r),o!==void 0&&(l.trailing=o),a!==void 0&&(l.maxWait=a),l},[r,o,a]);return f.useEffect(function(){if(n){var l=e.runAsync.bind(e);return i.current=Wk(function(c){c();},n,s),e.runAsync=function(){for(var c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];return new Promise(function(d,m){var g;(g=i.current)===null||g===void 0||g.call(i,function(){l.apply(void 0,Nn([],rn(c),!1)).then(d).catch(m);});})},function(){var c;(c=i.current)===null||c===void 0||c.cancel(),e.runAsync=l;}}},[n,s]),n?{onCancel:function(){var l;(l=i.current)===null||l===void 0||l.cancel();}}:{}};const mK=fK;var gK=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 hK=gK;var vK=!!(typeof window<"u"&&window.document&&window.document.createElement);const Ys=vK;function Gh(){return Ys?document.visibilityState!=="hidden":!0}var Qi=[];function pK(e){return Qi.push(e),function(){var n=Qi.indexOf(e);Qi.splice(n,1);}}if(Ys){var bK=function(){if(Gh())for(var e=0;e<Qi.length;e++){var t=Qi[e];t();}};window.addEventListener("visibilitychange",bK,!1);}var yK=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(),l=f.useRef(),c=f.useRef(0),u=function(){var d;s.current&&clearTimeout(s.current),(d=l.current)===null||d===void 0||d.call(l);};return Cc(function(){n||u();},[n]),n?{onBefore:function(){u();},onError:function(){c.current+=1;},onSuccess:function(){c.current=0;},onFinally:function(){i===-1||i!==-1&&c.current<=i?s.current=setTimeout(function(){!o&&!Gh()?l.current=pK(function(){e.refresh();}):e.refresh();},n):c.current=0;},onCancel:function(){u();}}:{}};const CK=yK;function SK(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([],rn(r),!1)),setTimeout(function(){n=!1;},t));}}function $K(){return Ys&&typeof navigator.onLine<"u"?navigator.onLine:!0}var Zi=[];function wK(e){return Zi.push(e),function(){var n=Zi.indexOf(e);n>-1&&Zi.splice(n,1);}}if(Ys){var p0=function(){if(!(!Gh()||!$K()))for(var e=0;e<Zi.length;e++){var t=Zi[e];t();}};window.addEventListener("visibilitychange",p0,!1),window.addEventListener("focus",p0,!1);}var xK=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=SK(e.refresh.bind(e),o);a.current=wK(function(){s();});}return function(){i();}},[n,o]),qs(function(){i();}),{}};const EK=xK;var IK=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 OK=IK;var PK=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=h1(function(l){l();},n,i),e.runAsync=function(){for(var l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];return new Promise(function(u,d){var m;(m=a.current)===null||m===void 0||m.call(a,function(){s.apply(void 0,Nn([],rn(l),!1)).then(u).catch(d);});})},function(){var l;e.runAsync=s,(l=a.current)===null||l===void 0||l.cancel();}}},[n,r,o]),n?{onCancel:function(){var s;(s=a.current)===null||s===void 0||s.cancel();}}:{}};const MK=PK;var RK=function(e){f.useEffect(function(){e==null||e();},[]);};const Qs=RK;var _K=function(){var e=rn(f.useState({}),2),t=e[1];return f.useCallback(function(){return t({})},[])};const TK=_K;var NK=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=Pr(Pr(Pr({},this.state),{loading:!n.manual}),o);}return e.prototype.setState=function(t){t===void 0&&(t={}),this.state=Pr(Pr({},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],rn(n),!1))}).filter(Boolean);return Object.assign.apply(Object,Nn([{}],rn(o),!1))},e.prototype.runAsync=function(){for(var t,n,r,o,a,i,s,l,c,u,d=[],m=0;m<arguments.length;m++)d[m]=arguments[m];return JG(this,void 0,void 0,function(){var g,h,v,p,b,y,C,$,x,w,S;return eK(this,function(E){switch(E.label){case 0:if(this.count+=1,g=this.count,h=this.runPluginHandler("onBefore",d),v=h.stopNow,p=v===void 0?!1:v,b=h.returnNow,y=b===void 0?!1:b,C=H$(h,["stopNow","returnNow"]),p)return [2,new Promise(function(){})];if(this.setState(Pr({loading:!0,params:d},C)),y)return [2,Promise.resolve(C.data)];(n=(t=this.options).onBefore)===null||n===void 0||n.call(t,d),E.label=1;case 1:return E.trys.push([1,3,,4]),$=this.runPluginHandler("onRequest",this.serviceRef.current,d).servicePromise,$||($=(S=this.serviceRef).current.apply(S,Nn([],rn(d),!1))),[4,$];case 2:return x=E.sent(),g!==this.count?[2,new Promise(function(){})]:(this.setState({data:x,error:void 0,loading:!1}),(o=(r=this.options).onSuccess)===null||o===void 0||o.call(r,x,d),this.runPluginHandler("onSuccess",x,d),(i=(a=this.options).onFinally)===null||i===void 0||i.call(a,d,x,void 0),g===this.count&&this.runPluginHandler("onFinally",d,x,void 0),[2,x]);case 3:if(w=E.sent(),g!==this.count)return [2,new Promise(function(){})];throw this.setState({error:w,loading:!1}),(l=(s=this.options).onError)===null||l===void 0||l.call(s,w,d),this.runPluginHandler("onError",w,d),(u=(c=this.options).onFinally)===null||u===void 0||u.call(c,d,void 0,w),g===this.count&&this.runPluginHandler("onFinally",d,void 0,w),w;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([],rn(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([],rn(this.state.params||[]),!1));},e.prototype.refreshAsync=function(){return this.runAsync.apply(this,Nn([],rn(this.state.params||[]),!1))},e.prototype.mutate=function(t){var n=xi(t)?t(this.state.data):t;this.runPluginHandler("onMutate",n),this.setState({data:n});},e}();const kK=NK;function LK(e,t,n){t===void 0&&(t={}),n===void 0&&(n=[]);var r=t.manual,o=r===void 0?!1:r,a=H$(t,["manual"]);var i=Pr({manual:o},a),s=ti(e),l=TK(),c=G$(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 kK(s,i,l,Object.assign.apply(Object,Nn([{}],rn(u),!1)))},[]);return c.options=i,c.pluginImpls=n.map(function(u){return u(c,i)}),Qs(function(){if(!o){var u=c.state.params||t.defaultParams||[];c.run.apply(c,Nn([],rn(u),!1));}}),qs(function(){c.cancel();}),{loading:c.state.loading,data:c.state.data,error:c.state.error,params:c.state.params||[],cancel:rt(c.cancel.bind(c)),refresh:rt(c.refresh.bind(c)),refreshAsync:rt(c.refreshAsync.bind(c)),run:rt(c.run.bind(c)),runAsync:rt(c.runAsync.bind(c)),mutate:rt(c.mutate.bind(c))}}function K$(e,t,n){return LK(e,t,Nn(Nn([],rn(n||[]),!1),[mK,hK,CK,EK,MK,rK,dK,OK],!1))}function U$(e,t){e===void 0&&(e=!1);var n=rn(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})},l=function(d){return o(d)},c=function(){return o(e)},u=function(){return o(i)};return {toggle:s,set:l,setLeft:c,setRight:u}},[]);return [r,a]}function AK(e){e===void 0&&(e=!1);var t=rn(U$(!!e),2),n=t[0],r=t[1],o=r.toggle,a=r.set,i=f.useMemo(function(){var s=function(){return a(!0)},l=function(){return a(!1)};return {toggle:o,set:function(c){return a(!!c)},setTrue:s,setFalse:l}},[]);return [n,i]}function Yu(e,t){if(Ys){if(!e)return t;var n;return xi(e)?n=e():"current"in e?n=e.current:n=e,n}}var zK=function(e){var t=function(n,r,o){var a=f.useRef(!1),i=f.useRef([]),s=f.useRef([]),l=f.useRef();e(function(){var c,u=Array.isArray(o)?o:[o],d=u.map(function(m){return Yu(m)});if(!a.current){a.current=!0,i.current=d,s.current=r,l.current=n();return}(d.length!==i.current.length||!xm(d,i.current)||!xm(r,s.current))&&((c=l.current)===null||c===void 0||c.call(l),i.current=d,s.current=r,l.current=n());}),qs(function(){var c;(c=l.current)===null||c===void 0||c.call(l),a.current=!1;});};return t};const DK=zK;var jK=DK(f.useEffect);const X$=jK;var FK="__lodash_hash_undefined__";function BK(e){return this.__data__.set(e,FK),this}var HK=BK;function WK(e){return this.__data__.has(e)}var VK=WK,GK=cg,KK=HK,UK=VK;function Sc(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new GK;++t<n;)this.add(e[t]);}Sc.prototype.add=Sc.prototype.push=KK;Sc.prototype.has=UK;var q$=Sc;function XK(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 qK=XK;function YK(e,t){return e.has(t)}var Y$=YK,QK=q$,ZK=qK,JK=Y$,eU=1,tU=2;function nU(e,t,n,r,o,a){var i=n&eU,s=e.length,l=t.length;if(s!=l&&!(i&&l>s))return !1;var c=a.get(e),u=a.get(t);if(c&&u)return c==t&&u==e;var d=-1,m=!0,g=n&tU?new QK:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var h=e[d],v=t[d];if(r)var p=i?r(v,h,d,t,e,a):r(h,v,d,e,t,a);if(p!==void 0){if(p)continue;m=!1;break}if(g){if(!ZK(t,function(b,y){if(!JK(g,y)&&(h===b||o(h,b,n,r,a)))return g.push(y)})){m=!1;break}}else if(!(h===v||o(h,v,n,r,a))){m=!1;break}}return a.delete(e),a.delete(t),m}var Q$=nU;function rU(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r];}),n}var oU=rU;function aU(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r;}),n}var Kh=aU,b0=li,y0=n1,iU=sg,sU=Q$,lU=oU,cU=Kh,uU=1,dU=2,fU="[object Boolean]",mU="[object Date]",gU="[object Error]",hU="[object Map]",vU="[object Number]",pU="[object RegExp]",bU="[object Set]",yU="[object String]",CU="[object Symbol]",SU="[object ArrayBuffer]",$U="[object DataView]",C0=b0?b0.prototype:void 0,nf=C0?C0.valueOf:void 0;function wU(e,t,n,r,o,a,i){switch(n){case $U:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return !1;e=e.buffer,t=t.buffer;case SU:return !(e.byteLength!=t.byteLength||!a(new y0(e),new y0(t)));case fU:case mU:case vU:return iU(+e,+t);case gU:return e.name==t.name&&e.message==t.message;case pU:case yU:return e==t+"";case hU:var s=lU;case bU:var l=r&uU;if(s||(s=cU),e.size!=t.size&&!l)return !1;var c=i.get(e);if(c)return c==t;r|=dU,i.set(e,t);var u=sU(s(e),s(t),r,o,a,i);return i.delete(e),u;case CU:if(nf)return nf.call(e)==nf.call(t)}return !1}var xU=wU,S0=Zy,EU=1,IU=Object.prototype,OU=IU.hasOwnProperty;function PU(e,t,n,r,o,a){var i=n&EU,s=S0(e),l=s.length,c=S0(t),u=c.length;if(l!=u&&!i)return !1;for(var d=l;d--;){var m=s[d];if(!(i?m in t:OU.call(t,m)))return !1}var g=a.get(e),h=a.get(t);if(g&&h)return g==t&&h==e;var v=!0;a.set(e,t),a.set(t,e);for(var p=i;++d<l;){m=s[d];var b=e[m],y=t[m];if(r)var C=i?r(y,b,m,t,e,a):r(b,y,m,e,t,a);if(!(C===void 0?b===y||o(b,y,n,r,a):C)){v=!1;break}p||(p=m=="constructor");}if(v&&!p){var $=e.constructor,x=t.constructor;$!=x&&"constructor"in e&&"constructor"in t&&!(typeof $=="function"&&$ instanceof $&&typeof x=="function"&&x instanceof x)&&(v=!1);}return a.delete(e),a.delete(t),v}var MU=PU,rf=ug,RU=Q$,_U=xU,TU=MU,$0=nu,w0=Lr,x0=mg,NU=Vy,kU=1,E0="[object Arguments]",I0="[object Array]",El="[object Object]",LU=Object.prototype,O0=LU.hasOwnProperty;function AU(e,t,n,r,o,a){var i=w0(e),s=w0(t),l=i?I0:$0(e),c=s?I0:$0(t);l=l==E0?El:l,c=c==E0?El:c;var u=l==El,d=c==El,m=l==c;if(m&&x0(e)){if(!x0(t))return !1;i=!0,u=!1;}if(m&&!u)return a||(a=new rf),i||NU(e)?RU(e,t,n,r,o,a):_U(e,t,l,n,r,o,a);if(!(n&kU)){var g=u&&O0.call(e,"__wrapped__"),h=d&&O0.call(t,"__wrapped__");if(g||h){var v=g?e.value():e,p=h?t.value():t;return a||(a=new rf),o(v,p,n,r,a)}}return m?(a||(a=new rf),TU(e,t,n,r,o,a)):!1}var zU=AU,DU=zU,P0=Mo;function Z$(e,t,n,r,o){return e===t?!0:e==null||t==null||!P0(e)&&!P0(t)?e!==e&&t!==t:DU(e,t,n,r,Z$,o)}var Uh=Z$,jU=Uh;function FU(e,t){return jU(e,t)}var BU=FU;const HU=hn(BU);var WU=function(e,t){return e===void 0&&(e=[]),t===void 0&&(t=[]),HU(e,t)};function Io(e,t,n){n===void 0&&(n={});var r=ti(t);X$(function(){var o=Yu(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 J$(e){var t=rn(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 of=function(e,t){var n=t||{},r=n.onEnter,o=n.onLeave,a=n.onChange,i=rn(AK(!1),2),s=i[0],l=i[1],c=l.setTrue,u=l.setFalse;return Io("mouseenter",function(){r==null||r(),c(),a==null||a(!0);},{target:e}),Io("mouseleave",function(){o==null||o(),u(),a==null||a(!1);},{target:e}),s};var VU=function(e,t,n){var r=f.useRef(),o=f.useRef(0);WU(t,r.current)||(r.current=t,o.current+=1),X$(e,[o.current],n);};const GU=VU;var KU=/(mac|iphone|ipod|ipad)/i.test(typeof navigator<"u"?navigator==null?void 0:navigator.platform:"");const UU=KU;var ew={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:UU?[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},Em={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"?ew.meta.includes(e.keyCode):e.metaKey}};function XU(e){var t=Object.keys(Em).reduce(function(n,r){return Em[r](e)?n+1:n},0);return [16,17,18,91,92].includes(e.keyCode)?t:t+1}function M0(e,t,n){var r,o;if(!e.key)return !1;if(W$(t))return e.keyCode===t;var a=t.split("."),i=0;try{for(var s=wm(a),l=s.next();!l.done;l=s.next()){var c=l.value,u=Em[c],d=ew[c.toLowerCase()];(u&&u(e)||d&&d===e.keyCode)&&i++;}}catch(m){r={error:m};}finally{try{l&&!l.done&&(o=s.return)&&o.call(s);}finally{if(r)throw r.error}}return n?i===a.length&&XU(e)===a.length:i===a.length}function qU(e,t){return xi(e)?e:tK(e)||W$(e)?function(n){return M0(n,e,t)}:Array.isArray(e)?function(n){return e.some(function(r){return M0(n,r,t)})}:function(){return !!e}}var YU=["keydown"];function sn(e,t,n){var r=n||{},o=r.events,a=o===void 0?YU:o,i=r.target,s=r.exactMatch,l=s===void 0?!1:s,c=r.useCapture,u=c===void 0?!1:c,d=ti(t),m=ti(e);GU(function(){var g,h,v,p=Yu(i,window);if(p){var b=function(x){var w,S=qU(m.current,l);if(S(x))return (w=d.current)===null||w===void 0?void 0:w.call(d,x)};try{for(var y=wm(a),C=y.next();!C.done;C=y.next()){var $=C.value;(v=p==null?void 0:p.addEventListener)===null||v===void 0||v.call(p,$,b,u);}}catch(x){g={error:x};}finally{try{C&&!C.done&&(h=y.return)&&h.call(y);}finally{if(g)throw g.error}}return function(){var x,w,S;try{for(var E=wm(a),I=E.next();!I.done;I=E.next()){var O=I.value;(S=p==null?void 0:p.removeEventListener)===null||S===void 0||S.call(p,O,b,u);}}catch(R){x={error:R};}finally{try{I&&!I.done&&(w=E.return)&&w.call(E);}finally{if(x)throw x.error}}}}},[a],i);}function tw(e){var t=f.useRef(0),n=rn(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 qs(function(){cancelAnimationFrame(t.current);}),[r,a]}var QU={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 ZU=function(e){var t=rn(tw(QU),2),n=t[0],r=t[1];return Io("mousemove",function(o){var a=o.screenX,i=o.screenY,s=o.clientX,l=o.clientY,c=o.pageX,u=o.pageY,d={screenX:a,screenY:i,clientX:s,clientY:l,pageX:c,pageY:u,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},m=Yu(e);if(m){var g=m.getBoundingClientRect(),h=g.left,v=g.top,p=g.width,b=g.height;d.elementPosX=h+window.pageXOffset,d.elementPosY=v+window.pageYOffset,d.elementX=c-d.elementPosX,d.elementY=u-d.elementPosY,d.elementW=p,d.elementH=b;}r(d);},{target:function(){return document}}),n};var JU=function(){var e=f.useRef(!1);return f.useEffect(function(){return e.current=!1,function(){e.current=!0;}},[]),e};const eX=JU,tX=B$(f.useLayoutEffect),nX="_modal-mask_1j5wc_1",rX="_modal_1j5wc_1",oX="_modal-header_1j5wc_23",aX="_modal-body_1j5wc_30",iX="_modal-title_1j5wc_35",sX="_btn-close_1j5wc_42",rr={modalMask:nX,modal:rX,modalHeader:oX,modalBody:aX,modalTitle:iX,btnClose:sX};let Hi=0;const lX=()=>{Hi++,document.body.style.overflow="hidden";},cX=()=>{Hi--,Hi<0&&(Hi=0),Hi===0&&(document.body.style.overflow="");};function Qu({show:e,onHide:t,children:n,styleModalMask:r,clsModalMask:o,styleModal:a,clsModal:i,width:s,hideWhenMaskOnClick:l=!1,hideWhenEsc:c=!1}){f.useLayoutEffect(()=>{e?lX():cX();},[e]);const u=f.useRef(null),d=jh(),{bg:m,c:g}=f.useMemo(()=>{const y=window.getComputedStyle(document.body).backgroundColor,C=window.getComputedStyle(document.body).color;return {bg:y,c:C}},[d]),h=f.useMemo(()=>d?{"--bg":m,"--c":g,backgroundColor:m,color:g}:{},[m,g,d]),v=f.useId(),p=f.useMemo(()=>{const y=document.createElement("div");return y.setAttribute("data-id","base-modal-"+v),document.body.appendChild(y),y},[]),b=rt(y=>{var $;const C=y.target;($=u.current)!=null&&$.contains(C)||C.closest('.ant-tooltip-inner[role="tooltip"]')||C.closest('.ant-popover-inner[role="tooltip"]')||l&&t();});return sn("esc",y=>{e&&c&&(y.preventDefault(),y.stopImmediatePropagation(),setTimeout(t));}),e?dy.createPortal(j("div",{className:V(rr.modalMask,o),style:r,onClick:b,children:j("div",{className:V(rr.modal,i),style:{...h,width:s,...a},ref:u,children:n})}),p):null}const Zu=e=>j(At,{...e,name:"Close",size:18,style:{cursor:"pointer",marginLeft:10,...e.style}});function Xh(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);});}}}let uX=class extends Error{constructor(t){super(t),this.name="TimeoutError";}},dX=class extends Error{constructor(t){super(),this.name="AbortError",this.message=t;}};const R0=e=>globalThis.DOMException===void 0?new dX(e):new DOMException(e),_0=e=>{const t=e.reason===void 0?R0("This operation was aborted."):e.reason;return t instanceof Error?t:R0(t)};function fX(e,t){const{milliseconds:n,fallback:r,message:o,customTimers:a={setTimeout,clearTimeout}}=t;let i;const l=new Promise((c,u)=>{if(typeof n!="number"||Math.sign(n)!==1)throw new TypeError(`Expected \`milliseconds\` to be a positive number, got \`${n}\``);if(t.signal){const{signal:m}=t;m.aborted&&u(_0(m)),m.addEventListener("abort",()=>{u(_0(m));});}if(n===Number.POSITIVE_INFINITY){e.then(c,u);return}const d=new uX;i=a.setTimeout.call(void 0,()=>{if(r){try{c(r());}catch(m){u(m);}return}typeof e.cancel=="function"&&e.cancel(),o===!1?c():o instanceof Error?u(o):(d.message=o??`Promise timed out after ${n} milliseconds`,u(d));},n),(async()=>{try{c(await e);}catch(m){u(m);}})();}).finally(()=>{l.clear();});return l.clear=()=>{a.clearTimeout.call(void 0,i),i=void 0;},l}const mX=e=>{const t=e.on||e.addListener||e.addEventListener,n=e.off||e.removeListener||e.removeEventListener;if(!t||!n)throw new TypeError("Emitter is not compatible");return {addListener:t.bind(e),removeListener:n.bind(e)}};function gX(e,t,n){let r;const o=new Promise((a,i)=>{var g;if(n={rejectionEvents:["error"],multiArgs:!1,resolveImmediately:!1,...n},!(n.count>=0&&(n.count===Number.POSITIVE_INFINITY||Number.isInteger(n.count))))throw new TypeError("The `count` option should be at least 0 or more");(g=n.signal)==null||g.throwIfAborted();const s=[t].flat(),l=[],{addListener:c,removeListener:u}=mX(e),d=(...h)=>{const v=n.multiArgs?h:h[0];n.filter&&!n.filter(v)||(l.push(v),n.count===l.length&&(r(),a(l)));},m=h=>{r(),i(h);};r=()=>{for(const h of s)u(h,d);for(const h of n.rejectionEvents)u(h,m);};for(const h of s)c(h,d);for(const h of n.rejectionEvents)c(h,m);n.signal&&n.signal.addEventListener("abort",()=>{m(n.signal.reason);},{once:!0}),n.resolveImmediately&&a(l);});if(o.cancel=r,typeof n.timeout=="number"){const a=fX(o,{milliseconds:n.timeout});return a.cancel=r,a}return o}function hX(e,t,n){typeof n=="function"&&(n={filter:n}),n={...n,count:1,resolveImmediately:!1};const r=gX(e,t,n),o=r.then(a=>a[0]);return o.cancel=r.cancel,o}var vX=Object.defineProperty,$c=Object.getOwnPropertySymbols,nw=Object.prototype.hasOwnProperty,rw=Object.prototype.propertyIsEnumerable,T0=(e,t,n)=>t in e?vX(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,pX=(e,t)=>{for(var n in t||(t={}))nw.call(t,n)&&T0(e,n,t[n]);if($c)for(var n of $c(t))rw.call(t,n)&&T0(e,n,t[n]);return e},bX=(e,t)=>{var n={};for(var r in e)nw.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&$c)for(var r of $c(e))t.indexOf(r)<0&&rw.call(e,r)&&(n[r]=e[r]);return n};/**
   * @license QR Code generator library (TypeScript)
   * Copyright (c) Project Nayuki.
   * SPDX-License-Identifier: MIT
   */var Jo;(e=>{const t=class{constructor(l,c,u,d){if(this.version=l,this.errorCorrectionLevel=c,this.modules=[],this.isFunction=[],l<t.MIN_VERSION||l>t.MAX_VERSION)throw new RangeError("Version value out of range");if(d<-1||d>7)throw new RangeError("Mask value out of range");this.size=l*4+17;let m=[];for(let h=0;h<this.size;h++)m.push(!1);for(let h=0;h<this.size;h++)this.modules.push(m.slice()),this.isFunction.push(m.slice());this.drawFunctionPatterns();const g=this.addEccAndInterleave(u);if(this.drawCodewords(g),d==-1){let h=1e9;for(let v=0;v<8;v++){this.applyMask(v),this.drawFormatBits(v);const p=this.getPenaltyScore();p<h&&(d=v,h=p),this.applyMask(v);}}a(0<=d&&d<=7),this.mask=d,this.applyMask(d),this.drawFormatBits(d),this.isFunction=[];}static encodeText(l,c){const u=e.QrSegment.makeSegments(l);return t.encodeSegments(u,c)}static encodeBinary(l,c){const u=e.QrSegment.makeBytes(l);return t.encodeSegments([u],c)}static encodeSegments(l,c,u=1,d=40,m=-1,g=!0){if(!(t.MIN_VERSION<=u&&u<=d&&d<=t.MAX_VERSION)||m<-1||m>7)throw new RangeError("Invalid value");let h,v;for(h=u;;h++){const C=t.getNumDataCodewords(h,c)*8,$=s.getTotalBits(l,h);if($<=C){v=$;break}if(h>=d)throw new RangeError("Data too long")}for(const C of [t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])g&&v<=t.getNumDataCodewords(h,C)*8&&(c=C);let p=[];for(const C of l){r(C.mode.modeBits,4,p),r(C.numChars,C.mode.numCharCountBits(h),p);for(const $ of C.getData())p.push($);}a(p.length==v);const b=t.getNumDataCodewords(h,c)*8;a(p.length<=b),r(0,Math.min(4,b-p.length),p),r(0,(8-p.length%8)%8,p),a(p.length%8==0);for(let C=236;p.length<b;C^=253)r(C,8,p);let y=[];for(;y.length*8<p.length;)y.push(0);return p.forEach((C,$)=>y[$>>>3]|=C<<7-($&7)),new t(h,c,y,m)}getModule(l,c){return 0<=l&&l<this.size&&0<=c&&c<this.size&&this.modules[c][l]}getModules(){return this.modules}drawFunctionPatterns(){for(let u=0;u<this.size;u++)this.setFunctionModule(6,u,u%2==0),this.setFunctionModule(u,6,u%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const l=this.getAlignmentPatternPositions(),c=l.length;for(let u=0;u<c;u++)for(let d=0;d<c;d++)u==0&&d==0||u==0&&d==c-1||u==c-1&&d==0||this.drawAlignmentPattern(l[u],l[d]);this.drawFormatBits(0),this.drawVersion();}drawFormatBits(l){const c=this.errorCorrectionLevel.formatBits<<3|l;let u=c;for(let m=0;m<10;m++)u=u<<1^(u>>>9)*1335;const d=(c<<10|u)^21522;a(d>>>15==0);for(let m=0;m<=5;m++)this.setFunctionModule(8,m,o(d,m));this.setFunctionModule(8,7,o(d,6)),this.setFunctionModule(8,8,o(d,7)),this.setFunctionModule(7,8,o(d,8));for(let m=9;m<15;m++)this.setFunctionModule(14-m,8,o(d,m));for(let m=0;m<8;m++)this.setFunctionModule(this.size-1-m,8,o(d,m));for(let m=8;m<15;m++)this.setFunctionModule(8,this.size-15+m,o(d,m));this.setFunctionModule(8,this.size-8,!0);}drawVersion(){if(this.version<7)return;let l=this.version;for(let u=0;u<12;u++)l=l<<1^(l>>>11)*7973;const c=this.version<<12|l;a(c>>>18==0);for(let u=0;u<18;u++){const d=o(c,u),m=this.size-11+u%3,g=Math.floor(u/3);this.setFunctionModule(m,g,d),this.setFunctionModule(g,m,d);}}drawFinderPattern(l,c){for(let u=-4;u<=4;u++)for(let d=-4;d<=4;d++){const m=Math.max(Math.abs(d),Math.abs(u)),g=l+d,h=c+u;0<=g&&g<this.size&&0<=h&&h<this.size&&this.setFunctionModule(g,h,m!=2&&m!=4);}}drawAlignmentPattern(l,c){for(let u=-2;u<=2;u++)for(let d=-2;d<=2;d++)this.setFunctionModule(l+d,c+u,Math.max(Math.abs(d),Math.abs(u))!=1);}setFunctionModule(l,c,u){this.modules[c][l]=u,this.isFunction[c][l]=!0;}addEccAndInterleave(l){const c=this.version,u=this.errorCorrectionLevel;if(l.length!=t.getNumDataCodewords(c,u))throw new RangeError("Invalid argument");const d=t.NUM_ERROR_CORRECTION_BLOCKS[u.ordinal][c],m=t.ECC_CODEWORDS_PER_BLOCK[u.ordinal][c],g=Math.floor(t.getNumRawDataModules(c)/8),h=d-g%d,v=Math.floor(g/d);let p=[];const b=t.reedSolomonComputeDivisor(m);for(let C=0,$=0;C<d;C++){let x=l.slice($,$+v-m+(C<h?0:1));$+=x.length;const w=t.reedSolomonComputeRemainder(x,b);C<h&&x.push(0),p.push(x.concat(w));}let y=[];for(let C=0;C<p[0].length;C++)p.forEach(($,x)=>{(C!=v-m||x>=h)&&y.push($[C]);});return a(y.length==g),y}drawCodewords(l){if(l.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let c=0;for(let u=this.size-1;u>=1;u-=2){u==6&&(u=5);for(let d=0;d<this.size;d++)for(let m=0;m<2;m++){const g=u-m,v=(u+1&2)==0?this.size-1-d:d;!this.isFunction[v][g]&&c<l.length*8&&(this.modules[v][g]=o(l[c>>>3],7-(c&7)),c++);}}a(c==l.length*8);}applyMask(l){if(l<0||l>7)throw new RangeError("Mask value out of range");for(let c=0;c<this.size;c++)for(let u=0;u<this.size;u++){let d;switch(l){case 0:d=(u+c)%2==0;break;case 1:d=c%2==0;break;case 2:d=u%3==0;break;case 3:d=(u+c)%3==0;break;case 4:d=(Math.floor(u/3)+Math.floor(c/2))%2==0;break;case 5:d=u*c%2+u*c%3==0;break;case 6:d=(u*c%2+u*c%3)%2==0;break;case 7:d=((u+c)%2+u*c%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[c][u]&&d&&(this.modules[c][u]=!this.modules[c][u]);}}getPenaltyScore(){let l=0;for(let m=0;m<this.size;m++){let g=!1,h=0,v=[0,0,0,0,0,0,0];for(let p=0;p<this.size;p++)this.modules[m][p]==g?(h++,h==5?l+=t.PENALTY_N1:h>5&&l++):(this.finderPenaltyAddHistory(h,v),g||(l+=this.finderPenaltyCountPatterns(v)*t.PENALTY_N3),g=this.modules[m][p],h=1);l+=this.finderPenaltyTerminateAndCount(g,h,v)*t.PENALTY_N3;}for(let m=0;m<this.size;m++){let g=!1,h=0,v=[0,0,0,0,0,0,0];for(let p=0;p<this.size;p++)this.modules[p][m]==g?(h++,h==5?l+=t.PENALTY_N1:h>5&&l++):(this.finderPenaltyAddHistory(h,v),g||(l+=this.finderPenaltyCountPatterns(v)*t.PENALTY_N3),g=this.modules[p][m],h=1);l+=this.finderPenaltyTerminateAndCount(g,h,v)*t.PENALTY_N3;}for(let m=0;m<this.size-1;m++)for(let g=0;g<this.size-1;g++){const h=this.modules[m][g];h==this.modules[m][g+1]&&h==this.modules[m+1][g]&&h==this.modules[m+1][g+1]&&(l+=t.PENALTY_N2);}let c=0;for(const m of this.modules)c=m.reduce((g,h)=>g+(h?1:0),c);const u=this.size*this.size,d=Math.ceil(Math.abs(c*20-u*10)/u)-1;return a(0<=d&&d<=9),l+=d*t.PENALTY_N4,a(0<=l&&l<=2568888),l}getAlignmentPatternPositions(){if(this.version==1)return [];{const l=Math.floor(this.version/7)+2,c=this.version==32?26:Math.ceil((this.version*4+4)/(l*2-2))*2;let u=[6];for(let d=this.size-7;u.length<l;d-=c)u.splice(1,0,d);return u}}static getNumRawDataModules(l){if(l<t.MIN_VERSION||l>t.MAX_VERSION)throw new RangeError("Version number out of range");let c=(16*l+128)*l+64;if(l>=2){const u=Math.floor(l/7)+2;c-=(25*u-10)*u-55,l>=7&&(c-=36);}return a(208<=c&&c<=29648),c}static getNumDataCodewords(l,c){return Math.floor(t.getNumRawDataModules(l)/8)-t.ECC_CODEWORDS_PER_BLOCK[c.ordinal][l]*t.NUM_ERROR_CORRECTION_BLOCKS[c.ordinal][l]}static reedSolomonComputeDivisor(l){if(l<1||l>255)throw new RangeError("Degree out of range");let c=[];for(let d=0;d<l-1;d++)c.push(0);c.push(1);let u=1;for(let d=0;d<l;d++){for(let m=0;m<c.length;m++)c[m]=t.reedSolomonMultiply(c[m],u),m+1<c.length&&(c[m]^=c[m+1]);u=t.reedSolomonMultiply(u,2);}return c}static reedSolomonComputeRemainder(l,c){let u=c.map(d=>0);for(const d of l){const m=d^u.shift();u.push(0),c.forEach((g,h)=>u[h]^=t.reedSolomonMultiply(g,m));}return u}static reedSolomonMultiply(l,c){if(l>>>8||c>>>8)throw new RangeError("Byte out of range");let u=0;for(let d=7;d>=0;d--)u=u<<1^(u>>>7)*285,u^=(c>>>d&1)*l;return a(u>>>8==0),u}finderPenaltyCountPatterns(l){const c=l[1];a(c<=this.size*3);const u=c>0&&l[2]==c&&l[3]==c*3&&l[4]==c&&l[5]==c;return (u&&l[0]>=c*4&&l[6]>=c?1:0)+(u&&l[6]>=c*4&&l[0]>=c?1:0)}finderPenaltyTerminateAndCount(l,c,u){return l&&(this.finderPenaltyAddHistory(c,u),c=0),c+=this.size,this.finderPenaltyAddHistory(c,u),this.finderPenaltyCountPatterns(u)}finderPenaltyAddHistory(l,c){c[0]==0&&(l+=this.size),c.pop(),c.unshift(l);}};let n=t;n.MIN_VERSION=1,n.MAX_VERSION=40,n.PENALTY_N1=3,n.PENALTY_N2=3,n.PENALTY_N3=40,n.PENALTY_N4=10,n.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],n.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=n;function r(l,c,u){if(c<0||c>31||l>>>c)throw new RangeError("Value out of range");for(let d=c-1;d>=0;d--)u.push(l>>>d&1);}function o(l,c){return (l>>>c&1)!=0}function a(l){if(!l)throw new Error("Assertion error")}const i=class{constructor(l,c,u){if(this.mode=l,this.numChars=c,this.bitData=u,c<0)throw new RangeError("Invalid argument");this.bitData=u.slice();}static makeBytes(l){let c=[];for(const u of l)r(u,8,c);return new i(i.Mode.BYTE,l.length,c)}static makeNumeric(l){if(!i.isNumeric(l))throw new RangeError("String contains non-numeric characters");let c=[];for(let u=0;u<l.length;){const d=Math.min(l.length-u,3);r(parseInt(l.substr(u,d),10),d*3+1,c),u+=d;}return new i(i.Mode.NUMERIC,l.length,c)}static makeAlphanumeric(l){if(!i.isAlphanumeric(l))throw new RangeError("String contains unencodable characters in alphanumeric mode");let c=[],u;for(u=0;u+2<=l.length;u+=2){let d=i.ALPHANUMERIC_CHARSET.indexOf(l.charAt(u))*45;d+=i.ALPHANUMERIC_CHARSET.indexOf(l.charAt(u+1)),r(d,11,c);}return u<l.length&&r(i.ALPHANUMERIC_CHARSET.indexOf(l.charAt(u)),6,c),new i(i.Mode.ALPHANUMERIC,l.length,c)}static makeSegments(l){return l==""?[]:i.isNumeric(l)?[i.makeNumeric(l)]:i.isAlphanumeric(l)?[i.makeAlphanumeric(l)]:[i.makeBytes(i.toUtf8ByteArray(l))]}static makeEci(l){let c=[];if(l<0)throw new RangeError("ECI assignment value out of range");if(l<128)r(l,8,c);else if(l<16384)r(2,2,c),r(l,14,c);else if(l<1e6)r(6,3,c),r(l,21,c);else throw new RangeError("ECI assignment value out of range");return new i(i.Mode.ECI,0,c)}static isNumeric(l){return i.NUMERIC_REGEX.test(l)}static isAlphanumeric(l){return i.ALPHANUMERIC_REGEX.test(l)}getData(){return this.bitData.slice()}static getTotalBits(l,c){let u=0;for(const d of l){const m=d.mode.numCharCountBits(c);if(d.numChars>=1<<m)return 1/0;u+=4+m+d.bitData.length;}return u}static toUtf8ByteArray(l){l=encodeURI(l);let c=[];for(let u=0;u<l.length;u++)l.charAt(u)!="%"?c.push(l.charCodeAt(u)):(c.push(parseInt(l.substr(u+1,2),16)),u+=2);return c}};let s=i;s.NUMERIC_REGEX=/^[0-9]*$/,s.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,s.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=s;})(Jo||(Jo={}));(e=>{(t=>{const n=class{constructor(o,a){this.ordinal=o,this.formatBits=a;}};let r=n;r.LOW=new n(0,1),r.MEDIUM=new n(1,0),r.QUARTILE=new n(2,3),r.HIGH=new n(3,2),t.Ecc=r;})(e.QrCode||(e.QrCode={}));})(Jo||(Jo={}));(e=>{(t=>{const n=class{constructor(o,a){this.modeBits=o,this.numBitsCharCount=a;}numCharCountBits(o){return this.numBitsCharCount[Math.floor((o+7)/17)]}};let r=n;r.NUMERIC=new n(1,[10,12,14]),r.ALPHANUMERIC=new n(2,[9,11,13]),r.BYTE=new n(4,[8,16,16]),r.KANJI=new n(8,[8,10,12]),r.ECI=new n(7,[0,0,0]),t.Mode=r;})(e.QrSegment||(e.QrSegment={}));})(Jo||(Jo={}));var Wi=Jo;/**
   * @license qrcode.react
   * Copyright (c) Paul O'Shannessy
   * SPDX-License-Identifier: ISC
   */var yX={L:Wi.QrCode.Ecc.LOW,M:Wi.QrCode.Ecc.MEDIUM,Q:Wi.QrCode.Ecc.QUARTILE,H:Wi.QrCode.Ecc.HIGH},CX=128,SX="L",$X="#FFFFFF",wX="#000000",xX=!1,ow=4,EX=.1;function IX(e,t=0){const n=[];return e.forEach(function(r,o){let a=null;r.forEach(function(i,s){if(!i&&a!==null){n.push(`M${a+t} ${o+t}h${s-a}v1H${a+t}z`),a=null;return}if(s===r.length-1){if(!i)return;a===null?n.push(`M${s+t},${o+t} h1v1H${s+t}z`):n.push(`M${a+t},${o+t} h${s+1-a}v1H${a+t}z`);return}i&&a===null&&(a=s);});}),n.join("")}function OX(e,t){return e.slice().map((n,r)=>r<t.y||r>=t.y+t.h?n:n.map((o,a)=>a<t.x||a>=t.x+t.w?o:!1))}function PX(e,t,n,r){if(r==null)return null;const o=n?ow:0,a=e.length+o*2,i=Math.floor(t*EX),s=a/t,l=(r.width||i)*s,c=(r.height||i)*s,u=r.x==null?e.length/2-l/2:r.x*s,d=r.y==null?e.length/2-c/2:r.y*s;let m=null;if(r.excavate){let g=Math.floor(u),h=Math.floor(d),v=Math.ceil(l+u-g),p=Math.ceil(c+d-h);m={x:g,y:h,w:v,h:p};}return {x:u,y:d,h:c,w:l,excavation:m}}(function(){try{new Path2D().addPath(new Path2D);}catch{return !1}return !0})();function MX(e){const t=e,{value:n,size:r=CX,level:o=SX,bgColor:a=$X,fgColor:i=wX,includeMargin:s=xX,imageSettings:l}=t,c=bX(t,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]);let u=Wi.QrCode.encodeText(n,yX[o]).getModules();const d=s?ow:0,m=u.length+d*2,g=PX(u,r,s,l);let h=null;l!=null&&g!=null&&(g.excavation!=null&&(u=OX(u,g.excavation)),h=f.createElement("image",{xlinkHref:l.src,height:g.h,width:g.w,x:g.x+d,y:g.y+d,preserveAspectRatio:"none"}));const v=IX(u,d);return f.createElement("svg",pX({height:r,width:r,viewBox:`0 0 ${m} ${m}`},c),f.createElement("path",{fill:a,d:`M0,0 h${m}v${m}H0z`,shapeRendering:"crispEdges"}),f.createElement("path",{fill:i,d:v,shapeRendering:"crispEdges"}),h)}var Zs,N0=dy;Zs=N0.createRoot,N0.hydrateRoot;var aw={exports:{}},iw={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}};iw.exports=t;})();var RX=iw.exports,Im={utf8:{stringToBytes:function(e){return Im.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(Im.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("")}}},k0=Im;/*!
   * Determine if an object is a Buffer
   *
   * @author   Feross Aboukhadijeh <https://feross.org>
   * @license  MIT
   */var _X=function(e){return e!=null&&(sw(e)||TX(e)||!!e._isBuffer)};function sw(e){return !!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function TX(e){return typeof e.readFloatLE=="function"&&typeof e.slice=="function"&&sw(e.slice(0,0))}(function(){var e=RX,t=k0.utf8,n=_X,r=k0.bin,o=function(a,i){a.constructor==String?i&&i.encoding==="binary"?a=r.stringToBytes(a):a=t.stringToBytes(a):n(a)?a=Array.prototype.slice.call(a,0):!Array.isArray(a)&&a.constructor!==Uint8Array&&(a=a.toString());for(var s=e.bytesToWords(a),l=a.length*8,c=1732584193,u=-271733879,d=-1732584194,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[l>>>5]|=128<<l%32,s[(l+64>>>9<<4)+14]=l;for(var h=o._ff,v=o._gg,p=o._hh,b=o._ii,g=0;g<s.length;g+=16){var y=c,C=u,$=d,x=m;c=h(c,u,d,m,s[g+0],7,-680876936),m=h(m,c,u,d,s[g+1],12,-389564586),d=h(d,m,c,u,s[g+2],17,606105819),u=h(u,d,m,c,s[g+3],22,-1044525330),c=h(c,u,d,m,s[g+4],7,-176418897),m=h(m,c,u,d,s[g+5],12,1200080426),d=h(d,m,c,u,s[g+6],17,-1473231341),u=h(u,d,m,c,s[g+7],22,-45705983),c=h(c,u,d,m,s[g+8],7,1770035416),m=h(m,c,u,d,s[g+9],12,-1958414417),d=h(d,m,c,u,s[g+10],17,-42063),u=h(u,d,m,c,s[g+11],22,-1990404162),c=h(c,u,d,m,s[g+12],7,1804603682),m=h(m,c,u,d,s[g+13],12,-40341101),d=h(d,m,c,u,s[g+14],17,-1502002290),u=h(u,d,m,c,s[g+15],22,1236535329),c=v(c,u,d,m,s[g+1],5,-165796510),m=v(m,c,u,d,s[g+6],9,-1069501632),d=v(d,m,c,u,s[g+11],14,643717713),u=v(u,d,m,c,s[g+0],20,-373897302),c=v(c,u,d,m,s[g+5],5,-701558691),m=v(m,c,u,d,s[g+10],9,38016083),d=v(d,m,c,u,s[g+15],14,-660478335),u=v(u,d,m,c,s[g+4],20,-405537848),c=v(c,u,d,m,s[g+9],5,568446438),m=v(m,c,u,d,s[g+14],9,-1019803690),d=v(d,m,c,u,s[g+3],14,-187363961),u=v(u,d,m,c,s[g+8],20,1163531501),c=v(c,u,d,m,s[g+13],5,-1444681467),m=v(m,c,u,d,s[g+2],9,-51403784),d=v(d,m,c,u,s[g+7],14,1735328473),u=v(u,d,m,c,s[g+12],20,-1926607734),c=p(c,u,d,m,s[g+5],4,-378558),m=p(m,c,u,d,s[g+8],11,-2022574463),d=p(d,m,c,u,s[g+11],16,1839030562),u=p(u,d,m,c,s[g+14],23,-35309556),c=p(c,u,d,m,s[g+1],4,-1530992060),m=p(m,c,u,d,s[g+4],11,1272893353),d=p(d,m,c,u,s[g+7],16,-155497632),u=p(u,d,m,c,s[g+10],23,-1094730640),c=p(c,u,d,m,s[g+13],4,681279174),m=p(m,c,u,d,s[g+0],11,-358537222),d=p(d,m,c,u,s[g+3],16,-722521979),u=p(u,d,m,c,s[g+6],23,76029189),c=p(c,u,d,m,s[g+9],4,-640364487),m=p(m,c,u,d,s[g+12],11,-421815835),d=p(d,m,c,u,s[g+15],16,530742520),u=p(u,d,m,c,s[g+2],23,-995338651),c=b(c,u,d,m,s[g+0],6,-198630844),m=b(m,c,u,d,s[g+7],10,1126891415),d=b(d,m,c,u,s[g+14],15,-1416354905),u=b(u,d,m,c,s[g+5],21,-57434055),c=b(c,u,d,m,s[g+12],6,1700485571),m=b(m,c,u,d,s[g+3],10,-1894986606),d=b(d,m,c,u,s[g+10],15,-1051523),u=b(u,d,m,c,s[g+1],21,-2054922799),c=b(c,u,d,m,s[g+8],6,1873313359),m=b(m,c,u,d,s[g+15],10,-30611744),d=b(d,m,c,u,s[g+6],15,-1560198380),u=b(u,d,m,c,s[g+13],21,1309151649),c=b(c,u,d,m,s[g+4],6,-145523070),m=b(m,c,u,d,s[g+11],10,-1120210379),d=b(d,m,c,u,s[g+2],15,718787259),u=b(u,d,m,c,s[g+9],21,-343485551),c=c+y>>>0,u=u+C>>>0,d=d+$>>>0,m=m+x>>>0;}return e.endian([c,u,d,m])};o._ff=function(a,i,s,l,c,u,d){var m=a+(i&s|~i&l)+(c>>>0)+d;return (m<<u|m>>>32-u)+i},o._gg=function(a,i,s,l,c,u,d){var m=a+(i&l|s&~l)+(c>>>0)+d;return (m<<u|m>>>32-u)+i},o._hh=function(a,i,s,l,c,u,d){var m=a+(i^s^l)+(c>>>0)+d;return (m<<u|m>>>32-u)+i},o._ii=function(a,i,s,l,c,u,d){var m=a+(s^(i|~l))+(c>>>0)+d;return (m<<u|m>>>32-u)+i},o._blocksize=16,o._digestsize=16,aw.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 NX=aw.exports;const lw=hn(NX);var ni=1e3,ri=ni*60,oi=ri*60,ea=oi*24,kX=ea*7,LX=ea*365.25,AX=function(e,t){t=t||{};var n=typeof e;if(n==="string"&&e.length>0)return zX(e);if(n==="number"&&isFinite(e))return t.long?jX(e):DX(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function zX(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*LX;case"weeks":case"week":case"w":return n*kX;case"days":case"day":case"d":return n*ea;case"hours":case"hour":case"hrs":case"hr":case"h":return n*oi;case"minutes":case"minute":case"mins":case"min":case"m":return n*ri;case"seconds":case"second":case"secs":case"sec":case"s":return n*ni;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function DX(e){var t=Math.abs(e);return t>=ea?Math.round(e/ea)+"d":t>=oi?Math.round(e/oi)+"h":t>=ri?Math.round(e/ri)+"m":t>=ni?Math.round(e/ni)+"s":e+"ms"}function jX(e){var t=Math.abs(e);return t>=ea?Il(e,t,ea,"day"):t>=oi?Il(e,t,oi,"hour"):t>=ri?Il(e,t,ri,"minute"):t>=ni?Il(e,t,ni,"second"):e+" ms"}function Il(e,t,n,r){var o=t>=n*1.5;return Math.round(e/n)+" "+r+(o?"s":"")}const Js=hn(AX),FX=[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 BX(e){let t="";return FX.forEach(n=>{t+=e[n];}),t.slice(0,32)}async function HX(e){const{img_key:t,sub_key:n}=await WX(),r=BX(t+n),o=Math.round(Date.now()/1e3),a=/[!'()*]/g;let i=[];e={...e,wts:o},Object.keys(e).sort().forEach(c=>{i.push(`${encodeURIComponent(c)}=${encodeURIComponent(e[c].toString().replace(a,""))}`);});const s=i.join("&"),l=lw(s+r);return {wts:o,w_rid:l}}let af,sf,lf;async function WX(){const e=()=>sa().format("YYYYMMDD");if(af&&sf&&lf&&lf===e()&&Date.now()-sf<=Js("6h"))return af;const r=(await Qm.get("/x/web-interface/nav",{baseURL:p1})).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 af=i,lf=e(),sf=Date.now(),i}function cw(e,t,n){e.appkey=t;const r=new URLSearchParams(e);return r.sort(),lw(r.toString()+n)}const vn=Qm.create({baseURL:p1,withCredentials:!0});vn.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 HX(e.params)}),e});function Qr(e){return (e==null?void 0:e.code)===0&&(e==null?void 0:e.message)==="0"}const Ju=Qm.create({adapter:eE}),L0=Ga.appkey,VX=Ga.appsec;Ju.interceptors.request.use(function(e){return e.params={appkey:L0,access_key:Pt.accessKey||"",...e.params},e.params.sign=cw(e.params,L0,VX),e});Ju.interceptors.response.use(e=>{if(e.config.responseType==="json"&&e.data&&e.data instanceof ArrayBuffer){const t=new TextDecoder,n=new Uint8Array(e.data),r=t.decode(n);e.data=r;try{e.data=JSON.parse(r);}catch{}}return e});const uw=e=>{const t=cw(e,Ga.appkey,Ga.appsec);return new URLSearchParams({...e,sign:t})};async function GX(){const t=(await vn.post("https://passport.bilibili.com/x/passport-tv-login/qrcode/auth_code",uw({appkey:Ga.appkey,local_id:"0",ts:"0"}))).data;if(!Qr(t)){wt((t==null?void 0:t.message)||"获取 auth_code 失败");return}return t.data}async function KX(e){const n=(await vn.post("https://passport.bilibili.com/x/passport-tv-login/qrcode/poll",uw({appkey:Ga.appkey,auth_code:e,local_id:"0",ts:"0"}))).data,r={0:"成功","-3":"API校验密匙错误","-400":"请求错误","-404":"啥都木有",86038:"二维码已失效",86039:"二维码尚未确认",86090:"二维码已扫码未确认"};if(!Qr(n)){const a=n.code.toString(),i=n.message||r[n.code.toString()]||"未知错误";return a==="86038"?{success:!1,message:i,action:"refresh"}:a==="86039"||a==="86090"?{success:!1,message:i,action:"wait"}:{success:!1,message:i,action:void 0}}return {success:!0,accessKey:n.data.access_token,message:"获取成功"}}async function UX(e){const n=(await vn.post("https://passport.bilibili.com/x/passport-tv-login/h5/qrcode/confirm",new URLSearchParams({auth_code:e,scanning_type:"1",csrf:wi()}))).data;if(!Qr(n)){const r=n.message||"未知错误";return wt(r)}}const qh={show:!1,qrcode:"",auth_code:"",message:""},hs=ar({...qh}),Ia=hs;function Ji(e){tq(),Object.assign(hs,e);}function XX(e){Ji({...qh,...e,show:!0});}function dw(){fw.emit("hide"),Ji({...qh});}const fw=Xh();function qX(){return hX(fw,"hide")}async function YX(){hs.auth_code&&await UX(hs.auth_code);}var QX={name:"7zumh8",styles:"margin:10px 15px;text-align:right"},ZX={name:"dbvn1l",styles:"height:30px;display:flex;align-items:center;justify-content:center;font-size:20px;margin-bottom:5px"},JX={name:"1azakc",styles:"text-align:center"};function eq(){const{qrcode:e,show:t,message:n}=sr(hs),r=dw,{runAsync:o,loading:a}=K$(YX,{manual:!0});return pe(Qu,{show:t,onHide:r,hideWhenMaskOnClick:!1,hideWhenEsc:!1,styleModal:{width:"600px"},children:[pe("div",{className:rr.modalHeader,children:[j("div",{className:rr.modalTitle,children:"使用移动端 Bilibili App 扫码获取 access_key"}),j("div",{className:"space",style:{flex:1}}),j(Zu,{onClick:r})]}),pe("div",{className:rr.modalBody,children:[pe("div",{className:"wrapper",css:JX,children:[j("div",{css:ZX,children:n||""}),e?j(MX,{value:e,size:200}):j("div",{className:"qrcode-placeholder"})]}),j("div",{css:QX,children:j(Vu,{title:"可能会导致桌面端掉登录(不可用), 谨慎使用",children:j(qt,{onClick:o,loading:a,children:"使用桌面端确认"})})})]})]})}const tq=b$(function(){const t=document.createElement("div");t.classList.add("tv-qrcode-auth"),document.body.appendChild(t),Zs(t).render(j(Hh,{children:j(eq,{})}));});async function A0(){const e=await GX();if(e)return XX({qrcode:e.url,auth_code:e.auth_code}),!0}async function nq(){if(!await A0())return;let t,n=Ia.auth_code;function r(){if(!Ia.show||!Ia.auth_code||n!==Ia.auth_code)return !0}for(;;){if(r())return;const o=pr(1500),a=qX();if(await Promise.race([o,a]),a.cancel(),r())return;t=await KX(Ia.auth_code);const{success:i,accessKey:s,message:l,action:c}=t;if(Ji({message:l}),i)return await pr(1e3),dw(),s;if(c==="refresh"){await pr(2e3),await A0(),n=Ia.auth_code,Ji({message:"已刷新二维码"});continue}if(c!=="wait"){if(r())return;Ji({message:l}),wt(l);return}}}async function rq(){const e=await nq();if(e)return Pt.accessKey=e,wt("获取成功"),e}function oq(){Pt.accessKey="",wt("已删除 access_key");}const z0=j(qt,{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 mw({style:e,className:t}){const {runAsync:n,loading:r}=K$(rq,{manual:!0}),{accessKey:o}=In(),a=oq,s=l=>l;return j(Fs,{size:"small",style:e,className:t,children:o?pe(_t,{children:[s(j(qt,{onClick:n,disabled:r,children:j("span",{children:"重新获取 access_key"})})),j(qt,{onClick:a,children:j("span",{children:"删除 access_key"})}),z0]}):pe(_t,{children:[s(j(qt,{onClick:n,disabled:r,size:"middle",children:j("span",{children:"获取 access_key"})})),z0]})})}const gw=f__namespace.createContext(null),aq=gw.Provider,hw=f__namespace.createContext(null),iq=hw.Provider,sq=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return {[r]:Object.assign(Object.assign({},zt(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"}})}},lq=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:a,motionDurationMid:i,motionEaseInOutCirc:s,colorBgContainer:l,colorBorder:c,lineWidth:u,dotSize:d,colorBgContainerDisabled:m,colorTextDisabled:g,paddingXS:h,dotColorDisabled:v,lineType:p,radioDotDisabledSize:b,wireframe:y,colorWhite:C}=e,$=`${t}-inner`;return {[`${t}-wrapper`]:Object.assign(Object.assign({},zt(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({},zt(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,
        &:hover ${$}`]:{borderColor:r},[`${t}-input:focus-visible + ${$}`]:Object.assign({},Qo(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:o,height:o,marginBlockStart:o/-2,marginInlineStart:o/-2,backgroundColor:y?r:C,borderBlockStart:0,borderInlineStart:0,borderRadius:o,transform:"scale(0)",opacity:0,transition:`all ${a} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:o,height:o,backgroundColor:l,borderColor:c,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:`all ${i}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[$]:{borderColor:r,backgroundColor:y?l:r,"&::after":{transform:`scale(${d/o})`,opacity:1,transition:`all ${a} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[$]:{backgroundColor:m,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:v}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:g,cursor:"not-allowed"},[`&${t}-checked`]:{[$]:{"&::after":{transform:`scale(${b/o})`}}}},[`span${t} + *`]:{paddingInlineStart:h,paddingInlineEnd:h}})}},cq=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:a,colorBorder:i,motionDurationSlow:s,motionDurationMid:l,buttonPaddingInline:c,fontSize:u,buttonBg:d,fontSizeLG:m,controlHeightLG:g,controlHeightSM:h,paddingXS:v,borderRadius:p,borderRadiusSM:b,borderRadiusLG:y,buttonCheckedBg:C,buttonSolidCheckedColor:$,colorTextDisabled:x,colorBgContainerDisabled:w,buttonCheckedBgDisabled:S,buttonCheckedColorDisabled:E,colorPrimary:I,colorPrimaryHover:O,colorPrimaryActive:R,buttonSolidCheckedBg:P,buttonSolidCheckedHoverBg:k,buttonSolidCheckedActiveBg:L}=e;return {[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:u,lineHeight:`${n-o*2}px`,background:d,border:`${o}px ${a} ${i}`,borderBlockStartWidth:o+.02,borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${l}`,`background ${l}`,`box-shadow ${l}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-o,insetInlineStart:-o,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:i,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${o}px ${a} ${i}`,borderStartStartRadius:p,borderEndStartRadius:p},"&:last-child":{borderStartEndRadius:p,borderEndEndRadius:p},"&:first-child:last-child":{borderRadius:p},[`${r}-group-large &`]:{height:g,fontSize:m,lineHeight:`${g-o*2}px`,"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},[`${r}-group-small &`]:{height:h,paddingInline:v-o,paddingBlock:0,lineHeight:`${h-o*2}px`,"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},"&:hover":{position:"relative",color:I},"&:has(:focus-visible)":Object.assign({},Qo(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:I,background:C,borderColor:I,"&::before":{backgroundColor:I},"&:first-child":{borderColor:I},"&:hover":{color:O,borderColor:O,"&::before":{backgroundColor:O}},"&:active":{color:R,borderColor:R,"&::before":{backgroundColor:R}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:$,background:P,borderColor:P,"&:hover":{color:$,background:k,borderColor:k},"&:active":{color:$,background:L,borderColor:L}},"&-disabled":{color:x,backgroundColor:w,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:x,backgroundColor:w,borderColor:i}},[`&-disabled${r}-button-wrapper-checked`]:{color:E,backgroundColor:S,borderColor:i,boxShadow:"none"}}}},D0=e=>e-4*2,vw=Bt("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n,radioSize:r}=e,o=`0 0 0 ${n}px ${t}`,a=o,i=D0(r),s=bt(e,{radioDotDisabledSize:i,radioFocusShadow:o,radioButtonFocusShadow:a});return [sq(s),lq(s),cq(s)]},e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:a,colorText:i,colorBgContainer:s,colorTextDisabled:l,controlItemBgActiveDisabled:c,colorTextLightSolid:u,colorPrimary:d,colorPrimaryHover:m,colorPrimaryActive:g}=e,h=4,v=a,p=t?D0(v):v-(h+o)*2;return {radioSize:v,dotSize:p,dotColorDisabled:l,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:m,buttonSolidCheckedActiveBg:g,buttonBg:s,buttonCheckedBg:s,buttonColor:i,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:l,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r}});var uq=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 dq=(e,t)=>{var n,r;const o=f__namespace.useContext(gw),a=f__namespace.useContext(hw),{getPrefixCls:i,direction:s,radio:l}=f__namespace.useContext(Je),c=f__namespace.useRef(null),u=Wn(t,c),{isFormItemInput:d}=f__namespace.useContext(br),m=R=>{var P,k;(P=e.onChange)===null||P===void 0||P.call(e,R),(k=o==null?void 0:o.onChange)===null||k===void 0||k.call(o,R);},{prefixCls:g,className:h,rootClassName:v,children:p,style:b}=e,y=uq(e,["prefixCls","className","rootClassName","children","style"]),C=i("radio",g),$=((o==null?void 0:o.optionType)||a)==="button",x=$?`${C}-button`:C,[w,S]=vw(C),E=Object.assign({},y),I=f__namespace.useContext(Yr);o&&(E.name=o.name,E.onChange=m,E.checked=e.value===o.value,E.disabled=(n=E.disabled)!==null&&n!==void 0?n:o.disabled),E.disabled=(r=E.disabled)!==null&&r!==void 0?r:I;const O=V(`${x}-wrapper`,{[`${x}-wrapper-checked`]:E.checked,[`${x}-wrapper-disabled`]:E.disabled,[`${x}-wrapper-rtl`]:s==="rtl",[`${x}-wrapper-in-form-item`]:d},l==null?void 0:l.className,h,v,S);return w(f__namespace.createElement(zs,{component:"Radio",disabled:E.disabled},f__namespace.createElement("label",{className:O,style:Object.assign(Object.assign({},l==null?void 0:l.style),b),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},f__namespace.createElement(_C,Object.assign({},E,{className:V(E.className,!$&&Eu),type:"radio",prefixCls:x,ref:u})),p!==void 0?f__namespace.createElement("span",null,p):null)))},fq=f__namespace.forwardRef(dq),wc=fq,mq=f__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=f__namespace.useContext(Je),[o,a]=Vt(e.defaultValue,{value:e.value}),i=P=>{const k=o,L=P.target.value;"value"in e||a(L);const{onChange:A}=e;A&&L!==k&&A(P);},{prefixCls:s,className:l,rootClassName:c,options:u,buttonStyle:d="outline",disabled:m,children:g,size:h,style:v,id:p,onMouseEnter:b,onMouseLeave:y,onFocus:C,onBlur:$}=e,x=n("radio",s),w=`${x}-group`,[S,E]=vw(x);let I=g;u&&u.length>0&&(I=u.map(P=>typeof P=="string"||typeof P=="number"?f__namespace.createElement(wc,{key:P.toString(),prefixCls:x,disabled:m,value:P,checked:o===P},P):f__namespace.createElement(wc,{key:`radio-group-value-options-${P.value}`,prefixCls:x,disabled:P.disabled||m,value:P.value,checked:o===P.value,title:P.title,style:P.style,id:P.id},P.label)));const O=Xn(h),R=V(w,`${w}-${d}`,{[`${w}-${O}`]:O,[`${w}-rtl`]:r==="rtl"},l,c,E);return S(f__namespace.createElement("div",Object.assign({},Qa(e,{aria:!0,data:!0}),{className:R,style:v,onMouseEnter:b,onMouseLeave:y,onFocus:C,onBlur:$,id:p,ref:t}),f__namespace.createElement(aq,{value:{onChange:i,value:o,disabled:e.disabled,name:e.name,optionType:e.optionType}},I)))}),gq=f__namespace.memo(mq);var hq=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 vq=(e,t)=>{const{getPrefixCls:n}=f__namespace.useContext(Je),{prefixCls:r}=e,o=hq(e,["prefixCls"]),a=n("radio",r);return f__namespace.createElement(iq,{value:"button"},f__namespace.createElement(wc,Object.assign({prefixCls:a},o,{type:"radio",ref:t})))},pq=f__namespace.forwardRef(vq),ed=wc;ed.Button=pq;ed.Group=gq;ed.__ANT_RADIO=!0;const j0=ed;function bq(e,t){const n=Object.keys(e),r=Ig(JSON.parse(localStorage.getItem(t)||"{}"),n),o=ar({...e,...r});return Dh(o,()=>{const a=vc(o);localStorage.setItem(t,JSON.stringify(a));}),o}const yq=`${xn}-video-source-tab`,Yh=bq({value:"recommend-app"},yq),Om={name:"qamjgr",styles:"margin-right:4px"},el=[{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}],F0=el.reduce((e,t)=>({...e,[t.key]:t}),{}),Cq=el.map(e=>e.key);function pw(){const{showingTabKeys:e}=In();return f.useMemo(()=>e.length?e:el.map(t=>t.key),[e])}function Sq(){const e=pw(),t=Vh();return f.useMemo(()=>el.filter(n=>e.includes(n.key)||!t&&n.key==="recommend-app"),[e,t])}function bw(e,t){return Cq.includes(e)&&(t||e==="recommend-app"||e==="recommend-pc")?e:"recommend-app"}function tl(){return bw(sr(Yh).value,Vh())}function $q(){return bw(Yh.value,Xs())}function wq(){return wt("你需要登录(不可用)B站后使用该功能! 如已完成登录(不可用), 请刷新网页重试~")}const xq={name:"1dwyqh0",styles:"height:26px;line-height:unset;&:has(:focus-visible){outline:none;outline-offset:unset;}>.ant-radio-button+span{height:100%;}"},Eq={name:"s0vnfv",styles:"height:32px"};var Iq={name:"shwixj",styles:"display:flex;align-items:center;height:22px"},Oq={name:"1k4kcw8",styles:"display:flex;align-items:center;line-height:unset;height:100%"};function yw({onRefresh:e}){const t=Vh(),n=tl(),{styleUseStandardVideoSourceTab:r}=In(),o=Sq();return pe(_t,{children:[j(j0.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&&!HG())return wq();Yh.value=i,setTimeout(()=>{e(!0,{watchlaterKeepOrder:!0});});},children:o.map(({key:a,label:i,icon:s,iconProps:l})=>j(j0.Button,{css:[xq,r&&Eq,"",""],className:"video-source-tab",tabIndex:-1,value:a,children:pe("span",{css:Oq,children:[j(At,{name:s,...l,size:(l==null?void 0:l.size)||18,css:Om}),i]})},a))}),j(Gu,{iconProps:{name:"Tips",size:16,style:{marginLeft:6}},tooltip:j(_t,{children:o.map(({key:a,label:i,icon:s,iconProps:l,desc:c})=>pe("div",{css:Iq,children:[j(At,{name:s,...l,size:(l==null?void 0:l.size)||18,css:Om}),i,": ",c]},a))})})]})}async function Cw(){var n;return ((n=(await vn.get("https://member.bilibili.com/x/web/draft/list")).data.artlist)==null?void 0:n.drafts)||[]}async function Pm(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:wi(),...e}),n=(await vn.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=Qr(n);return o||wt(n.message||"addupdate error"),{success:o,aid:r}}async function Pq(e){var n;const t=(await vn.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 Mq(){const t=(await Cw()).find(i=>i.title===xn);if(!t){await Pm({title:xn});return}const n=await Pq(t.id),a=(new DOMParser().parseFromString(n,"text/html").body.textContent||"").trim();if(a)try{return JSON.parse(a)}catch{return}}async function Rq(e){const n=(await Cw()).find(i=>i.title===xn);let r="";if(n)r=n.id.toString();else {const{success:i,aid:s}=await Pm({title:xn});if(!i)return !1;r=s;}const o=JSON.stringify(e),{success:a}=await Pm({aid:r,title:xn,content:`<p>${o}</p>`,words:o.length.toString()});return a}const _q="_config-icon_1xtyf_1",Tq="_settings-group_1xtyf_6",Nq="_settings-group-title_1xtyf_9",kq="_settings-group-sub-title_1xtyf_14",Lq="_settings-group-content_1xtyf_20",Aq="_row_1xtyf_26",zq="_check_1xtyf_34",Dq="_setting-tabs_1xtyf_39",jq="_tab-pane_1xtyf_42",We={configIcon:_q,settingsGroup:Tq,settingsGroupTitle:Nq,settingsGroupSubTitle:kq,settingsGroupContent:Lq,row:Aq,check:zq,settingTabs:Dq,tabPane:jq};async function Qh(){wt("即将刷新网页"),await pr(500),location.reload();}function Fq(){return Jq(),Qh()}let Sw=!1;async function Bq(){const e=await Mq(),t=Ig(e||{},$w);return Object.keys(t).length?(Sw=!0,yr({...t}),Qh()):wt("备份不存在或没有有效的配置")}function Ol(e,t,n){return sn(e,r=>{if(Uu())return;Pt[t]=!Pt[t];const o=!Pt[t];wt(`已${o?"禁用":"启用"}「${n}」`);},{exactMatch:!0})}function Hq({show:e,onHide:t}){const{filterMinPlayCount:n,filterMinPlayCountEnabled:r,filterMinDuration:o,filterMinDurationEnabled:a,filterOutGotoTypePicture:i}=In();return Ol(["shift.p"],"autoPreviewWhenKeyboardSelect","键盘选中后自动开始预览"),Ol(["shift.m"],"autoPreviewWhenHover","鼠标悬浮后自动开始预览"),Ol(["shift.c"],"useNarrowMode","居中模式"),Ol(["shift.y"],"styleUseYoutubeLikeCard","大卡片样式"),pe(Qu,{show:e,onHide:t,hideWhenMaskOnClick:!0,hideWhenEsc:!0,styleModal:{width:900,maxHeight:"unset"},children:[pe("div",{className:rr.modalHeader,children:[pe("div",{className:rr.modalTitle,children:[j(At,{name:"Config",className:We.configIcon}),"设置项"]}),j("div",{className:"space",style:{flex:1}}),j(Zu,{onClick:t})]}),j("main",{className:rr.modalBody,style:{overflow:"hidden"},children:j(WB,{tabPosition:"left",size:"middle",defaultActiveKey:"basic",className:We.settingTabs,items:[{label:"常规设置",key:"basic",children:j(Wq,{})},{label:"内容过滤",key:"filter",children:j("div",{className:We.tabPane,children:pe("div",{className:We.settingsGroup,children:[pe("div",{className:We.settingsGroupTitle,children:["内容过滤",j(Gu,{iconProps:{name:"Tips"},tooltip:pe(_t,{children:["启用过滤会大幅降低加载速度, 谨慎开启! ",j("br",{}),"仅推荐类 Tab 生效"]})})]}),pe("div",{className:V(We.settingsGroupContent),children:[j("div",{className:We.settingsGroupSubTitle,children:"视频"}),pe("div",{className:We.row,children:[j(wn,{configKey:"filterMinPlayCountEnabled",label:"按播放量过滤",tooltip:j(_t,{children:"不显示播放量很少的视频"})}),j(dm,{size:"small",min:1,step:1e3,value:n,onChange:s=>s&&yr({filterMinPlayCount:s}),disabled:!r})]}),pe("div",{className:We.row,style:{marginTop:3},children:[j(wn,{configKey:"filterMinDurationEnabled",label:"按视频时长过滤",tooltip:j(_t,{children:"不显示短视频"})}),j(dm,{style:{width:150},size:"small",min:1,step:10,addonAfter:"单位:秒",value:o,onChange:s=>s&&yr({filterMinDuration:s}),disabled:!a})]}),j(wn,{className:We.row,style:{marginTop:3},configKey:"enableFilterForFollowedVideo",label:"对「已关注」的视频启用过滤",tooltip:j(_t,{children:"默认不过滤「已关注」"})}),j("div",{className:We.settingsGroupSubTitle,children:"图文"}),j(wn,{className:We.row,configKey:"filterOutGotoTypePicture",label:"启用图文(动态 & 专栏)过滤",tooltip:j(_t,{children:"过滤掉图文推荐"})}),j(wn,{className:We.row,disabled:!i,configKey:"enableFilterForFollowedPicture",label:"对「已关注」的图文启用过滤",tooltip:j(_t,{children:"默认不过滤「已关注」"})})]})]})})},{label:"外观设置",key:"ui",children:j("div",{className:We.tabPane,children:pe("div",{className:We.settingsGroup,children:[j("div",{className:We.settingsGroupTitle,style:{marginBottom:15},children:"样式自定义"}),pe("div",{className:V(We.settingsGroupContent),children:[j("div",{className:We.row,children:j(wn,{configKey:"styleUseYoutubeLikeCard",label:"视频卡片: 使用类似 YouTube 大卡片",tooltip:pe(_t,{children:["增加卡片大小, 增大卡片间距",j("br",{}),"仅「查看更多」弹窗 & 纯推荐模式可用",j("br",{}),"切换设置快捷键: ",j(yo,{color:"green",children:"shift+y"})]})})}),j("div",{className:We.row,style:{marginTop:5},children:j(wn,{configKey:"styleUseStandardVideoSourceTab",label:"推荐源切换 Tab 按钮: 使用标准高度",tooltip:"默认紧凑高度"})})]})]})})},{label:"主题选择",key:"theme-select",children:j("div",{className:We.tabPane,children:pe("div",{className:We.settingsGroup,children:[j("div",{className:We.settingsGroupTitle,style:{marginBottom:15},children:"主题选择"}),j("div",{className:V(We.settingsGroupContent),children:j(kG,{})})]})})},{label:"高级设置",key:"advance",children:j(Kq,{})}]})})]})}function Wq(){return pe("div",{className:We.tabPane,children:[pe("div",{className:We.settingsGroup,children:[pe("div",{className:We.settingsGroupTitle,children:["access_key",j(Gu,{iconProps:{name:"Help",size:18,style:{marginTop:6,marginLeft:5}},tooltip:pe(_t,{children:["用于「推荐」Tab",j("br",{}),"用于 获取推荐 / 提交不喜欢等操作"]})})]}),j("div",{className:V(We.settingsGroupContent),children:j("div",{className:We.row,style:{marginTop:5},children:j(mw,{})})})]}),pe("div",{className:We.settingsGroup,children:[j("div",{className:We.settingsGroupTitle,children:"开关"}),pe("div",{className:V(We.settingsGroupContent,We.row),children:[j(wn,{configKey:"pureRecommend",label:"开启纯推荐模式",tooltip:pe(_t,{children:["首页只保留推荐",j("br",{}),"P.S 需要刷新网页~"]}),className:We.check,extraAction:Qh}),j(wn,{configKey:"initialShowMore",label:"自动查看更多",tooltip:"打开首页时默认打开推荐弹窗",className:We.check,extraAction:e=>{e&&wt("已开启自动查看更多: 下次打开首页时将直接展示推荐弹窗");}}),j(wn,{configKey:"useNarrowMode",label:"启用居中模式",tooltip:pe(_t,{children:["居中两列",j("br",{}),"切换设置快捷键: ",j(yo,{color:"green",children:"shift+c"})]}),className:We.check})]})]}),pe("div",{className:We.settingsGroup,children:[j("div",{className:We.settingsGroupTitle,children:"预览"}),pe("div",{className:V(We.settingsGroupContent,We.row),children:[j(wn,{configKey:"autoPreviewWhenKeyboardSelect",label:"键盘选中后自动开始预览",className:We.check,tooltip:pe(_t,{children:["手动预览快捷键: ",j(yo,{color:"green",children:"."})," or ",j(yo,{color:"green",children:"p"}),j("br",{}),"切换设置快捷键: ",j(yo,{color:"green",children:"shift+p"})]})}),j(wn,{configKey:"autoPreviewWhenHover",label:"鼠标悬浮后自动开始预览",className:We.check,tooltip:pe(_t,{children:["鼠标悬浮后自动开始预览, 预览不再跟随鼠标位置 ",j("br",{}),"切换设置快捷键: ",j(yo,{color:"green",children:"shift+m"})]})})]})]}),pe("div",{className:We.settingsGroup,children:[j("div",{className:We.settingsGroupTitle,children:"帮助"}),j("div",{className:V(We.settingsGroupContent),children:j("div",{className:We.row,children:pe(Fs,{size:"small",children:[j(qt,{href:"https://github.com/magicdawn/bilibili-app-recommend",target:"_blank",children:"GitHub 主页"}),j(qt,{href:"https://gf.qytechs.cn/zh-CN/scripts/443530-bilibili-app-recommend",target:"_blank",children:"GreasyFork 主页"}),j(qt,{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:"查看可用的快捷键"}),j(qt,{href:"https://github.com/magicdawn/bilibili-app-recommend/blob/main/CHANGELOG.md",target:"_blank",children:"更新日志"}),j(qt,{href:"https://afdian.net/a/magicdawn",target:"_blank",children:"用 ❤️ 发电"})]})})})]})]})}var Vq={name:"1yvqi6w",styles:"display:flex;align-items:center;margin-right:15px"},Gq={name:"1nwso5m",styles:".ant-checkbox-group-item{align-items:center;}"};function Kq(){const e=pw(),{autoPreviewUpdateInterval:t}=In();return j("div",{className:We.tabPane,children:pe("div",{className:We.settingsGroup,children:[j("div",{className:We.settingsGroupTitle,children:"设置项"}),j("div",{className:V(We.settingsGroupContent),children:j("div",{className:We.row,children:j(yb,{title:"确定",description:"确定恢复默认设置? 该操作不可逆!",onConfirm:Fq,children:j(qt,{danger:!0,type:"primary",children:"恢复默认设置"})})})}),j("div",{className:We.settingsGroupTitle,style:{marginTop:15},children:"备份/恢复"}),pe("div",{className:V(We.settingsGroupContent),children:[pe("div",{className:We.row,children:[j(wn,{configKey:"backupSettingsToArticleDraft",label:"备份设置到专栏草稿箱中",tooltip:`专栏 - 草稿箱 - ${xn}`}),pe("a",{style:{marginLeft:15,display:"inline-flex",alignItems:"center"},href:"https://member.bilibili.com/platform/upload/text/draft",target:"_blank",children:[j(At,{name:"EfferentFour",size:16,style:{marginRight:4}}),"去草稿箱浏览"]})]}),j("div",{className:We.row,style:{marginTop:5},children:j(yb,{title:"确定",description:"将覆盖本地设置? 该操作不可逆!",onConfirm:Bq,children:j(qt,{danger:!0,type:"primary",children:"从专栏草稿箱中恢复"})})})]}),j("div",{className:We.settingsGroupTitle,style:{marginTop:15},children:"稍后再看 & 收藏"}),pe("div",{className:V(We.settingsGroupContent),children:[j("div",{className:We.row,children:j(wn,{configKey:"shuffleForWatchLater",label:"对「稍后再看」Tab 使用随机顺序",tooltip:j(_t,{children:"不包括最近添加的「稍后再看」"})})}),j("div",{className:We.row,children:j(wn,{configKey:"shuffleForFav",label:"对「收藏」Tab 使用随机顺序"})})]}),j("div",{className:We.settingsGroupTitle,style:{marginTop:15},children:"Tab 显示"}),pe("div",{className:V(We.settingsGroupContent),children:[j("div",{className:We.row,children:j(Iu.Group,{css:Gq,options:el.map(({label:n,key:r,icon:o,iconProps:a})=>({label:pe("span",{css:Vq,children:[j(At,{name:o,...a,size:(a==null?void 0:a.size)||18,css:Om}),n]}),value:r})),value:e,onChange:n=>{if(!n.length)return wt("至少选择一项!");yr({showingTabKeys:n});}})}),j(qt,{style:{marginTop:5},onClick:()=>{yr({showingTabKeys:[]});},children:"重置"})]}),j("div",{className:We.settingsGroupTitle,style:{marginTop:15},children:"预览"}),pe("div",{style:{width:"100%",display:"flex",alignItems:"center"},children:["自动预览更新间隔",j(gz,{style:{flex:1,margin:"0 15px"},min:0,max:1e3,keyboard:!0,onChange:n=>Pt.autoPreviewUpdateInterval=n,value:t}),pe("span",{style:{width:"65px"},children:["(",t,"ms)"]})]})]})})}const Uq=vi.extend("settings"),Zh={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:[]},Pt=ar({...Zh}),$w=Object.keys(Zh);function In(){return sr(Pt)}const Xq=xn,ww=`${Xq}.settings`;async function qq(){const e=await GM.getValue(ww);e&&typeof e=="object"&&Object.assign(Pt,Ig(e,$w)),Dh(Pt,()=>{Qq();});}const Yq=h1(Rq,Js("5s"));async function Qq(){const e=vc(Pt);await GM.setValue(ww,e),await Zq(e);}async function Zq(e){if(!e.backupSettingsToArticleDraft||Sw)return;const t=Ck(e,["accessKey"]);try{await Yq(t),Uq("backup to article draft complete");}catch(n){console.error(n.stack||n);}}function yr(e){Object.assign(Pt,e);}function Jq(){return yr(Zh)}await( qq());var xw={exports:{}};(function(e,t){(function(n,r){e.exports=r();})(Ra,function(){var n,r,o=1e3,a=6e4,i=36e5,s=864e5,l=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,c=31536e6,u=2628e6,d=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,m={years:c,months:u,days:s,hours:i,minutes:a,seconds:o,milliseconds:1,weeks:6048e5},g=function(w){return w instanceof $},h=function(w,S,E){return new $(w,E,S.$l)},v=function(w){return r.p(w)+"s"},p=function(w){return w<0},b=function(w){return p(w)?Math.ceil(w):Math.floor(w)},y=function(w){return Math.abs(w)},C=function(w,S){return w?p(w)?{negative:!0,format:""+y(w)+S}:{negative:!1,format:""+w+S}:{negative:!1,format:""}},$=function(){function w(E,I,O){var R=this;if(this.$d={},this.$l=O,E===void 0&&(this.$ms=0,this.parseFromMilliseconds()),I)return h(E*m[v(I)],this);if(typeof E=="number")return this.$ms=E,this.parseFromMilliseconds(),this;if(typeof E=="object")return Object.keys(E).forEach(function(L){R.$d[v(L)]=E[L];}),this.calMilliseconds(),this;if(typeof E=="string"){var P=E.match(d);if(P){var k=P.slice(2).map(function(L){return L!=null?Number(L):0});return this.$d.years=k[0],this.$d.months=k[1],this.$d.weeks=k[2],this.$d.days=k[3],this.$d.hours=k[4],this.$d.minutes=k[5],this.$d.seconds=k[6],this.calMilliseconds(),this}}return this}var S=w.prototype;return S.calMilliseconds=function(){var E=this;this.$ms=Object.keys(this.$d).reduce(function(I,O){return I+(E.$d[O]||0)*m[O]},0);},S.parseFromMilliseconds=function(){var E=this.$ms;this.$d.years=b(E/c),E%=c,this.$d.months=b(E/u),E%=u,this.$d.days=b(E/s),E%=s,this.$d.hours=b(E/i),E%=i,this.$d.minutes=b(E/a),E%=a,this.$d.seconds=b(E/o),E%=o,this.$d.milliseconds=E;},S.toISOString=function(){var E=C(this.$d.years,"Y"),I=C(this.$d.months,"M"),O=+this.$d.days||0;this.$d.weeks&&(O+=7*this.$d.weeks);var R=C(O,"D"),P=C(this.$d.hours,"H"),k=C(this.$d.minutes,"M"),L=this.$d.seconds||0;this.$d.milliseconds&&(L+=this.$d.milliseconds/1e3,L=Math.round(1e3*L)/1e3);var A=C(L,"S"),T=E.negative||I.negative||R.negative||P.negative||k.negative||A.negative,M=P.format||k.format||A.format?"T":"",_=(T?"-":"")+"P"+E.format+I.format+R.format+M+P.format+k.format+A.format;return _==="P"||_==="-P"?"P0D":_},S.toJSON=function(){return this.toISOString()},S.format=function(E){var I=E||"YYYY-MM-DDTHH:mm:ss",O={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return I.replace(l,function(R,P){return P||String(O[R])})},S.as=function(E){return this.$ms/m[v(E)]},S.get=function(E){var I=this.$ms,O=v(E);return O==="milliseconds"?I%=1e3:I=O==="weeks"?b(I/m[O]):this.$d[O],I||0},S.add=function(E,I,O){var R;return R=I?E*m[v(I)]:g(E)?E.$ms:h(E,this).$ms,h(this.$ms+R*(O?-1:1),this)},S.subtract=function(E,I){return this.add(E,I,!0)},S.locale=function(E){var I=this.clone();return I.$l=E,I},S.clone=function(){return h(this.$ms,this)},S.humanize=function(E){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!E)},S.valueOf=function(){return this.asMilliseconds()},S.milliseconds=function(){return this.get("milliseconds")},S.asMilliseconds=function(){return this.as("milliseconds")},S.seconds=function(){return this.get("seconds")},S.asSeconds=function(){return this.as("seconds")},S.minutes=function(){return this.get("minutes")},S.asMinutes=function(){return this.as("minutes")},S.hours=function(){return this.get("hours")},S.asHours=function(){return this.as("hours")},S.days=function(){return this.get("days")},S.asDays=function(){return this.as("days")},S.weeks=function(){return this.get("weeks")},S.asWeeks=function(){return this.as("weeks")},S.months=function(){return this.get("months")},S.asMonths=function(){return this.as("months")},S.years=function(){return this.get("years")},S.asYears=function(){return this.as("years")},w}(),x=function(w,S,E){return w.add(S.years()*E,"y").add(S.months()*E,"M").add(S.days()*E,"d").add(S.hours()*E,"h").add(S.minutes()*E,"m").add(S.seconds()*E,"s").add(S.milliseconds()*E,"ms")};return function(w,S,E){n=E,r=E().$utils(),E.duration=function(R,P){var k=E.locale();return h(R,{$l:k},P)},E.isDuration=g;var I=S.prototype.add,O=S.prototype.subtract;S.prototype.add=function(R,P){return g(R)?x(this,R,1):I.bind(this)(R,P)},S.prototype.subtract=function(R,P){return g(R)?x(this,R,-1):O.bind(this)(R,P)};}});})(xw);var eY=xw.exports;const tY=hn(eY);function Jh(e){const t=ar({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(ar(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 nY(e){const t=ar({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,Kt,nn,Co,Cs,So,Ss,Mm,er,xr,kc,Ew,$s,Rm,ws,_m,xs,Tm,Lc,Iw,Es,Nm;class rY extends Map{constructor(n={}){super();jn(this,Ss);jn(this,er);jn(this,kc);jn(this,$s);jn(this,ws);jn(this,xs);jn(this,Lc);jn(this,Es);jn(this,hr,0);jn(this,Kt,new Map);jn(this,nn,new Map);jn(this,Co,void 0);jn(this,Cs,void 0);jn(this,So,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");Pn(this,Co,n.maxSize),Pn(this,Cs,n.maxAge||Number.POSITIVE_INFINITY),Pn(this,So,n.onEviction);}get __oldCache(){return ot(this,nn)}get(n){if(ot(this,Kt).has(n)){const r=ot(this,Kt).get(n);return Zt(this,$s,Rm).call(this,n,r)}if(ot(this,nn).has(n)){const r=ot(this,nn).get(n);if(Zt(this,er,xr).call(this,n,r)===!1)return Zt(this,Lc,Iw).call(this,n,r),r.value}}set(n,r,{maxAge:o=ot(this,Cs)}={}){const a=typeof o=="number"&&o!==Number.POSITIVE_INFINITY?Date.now()+o:void 0;return ot(this,Kt).has(n)?ot(this,Kt).set(n,{value:r,expiry:a}):Zt(this,xs,Tm).call(this,n,{value:r,expiry:a}),this}has(n){return ot(this,Kt).has(n)?!Zt(this,er,xr).call(this,n,ot(this,Kt).get(n)):ot(this,nn).has(n)?!Zt(this,er,xr).call(this,n,ot(this,nn).get(n)):!1}peek(n){if(ot(this,Kt).has(n))return Zt(this,ws,_m).call(this,n,ot(this,Kt));if(ot(this,nn).has(n))return Zt(this,ws,_m).call(this,n,ot(this,nn))}delete(n){const r=ot(this,Kt).delete(n);return r&&gd(this,hr)._--,ot(this,nn).delete(n)||r}clear(){ot(this,Kt).clear(),ot(this,nn).clear(),Pn(this,hr,0);}resize(n){if(!(n&&n>0))throw new TypeError("`maxSize` must be a number greater than 0");const r=[...Zt(this,Es,Nm).call(this)],o=r.length-n;o<0?(Pn(this,Kt,new Map(r)),Pn(this,nn,new Map),Pn(this,hr,r.length)):(o>0&&Zt(this,Ss,Mm).call(this,r.slice(0,o)),Pn(this,nn,new Map(r.slice(o))),Pn(this,Kt,new Map),Pn(this,hr,0)),Pn(this,Co,n);}*keys(){for(const[n]of this)yield n;}*values(){for(const[,n]of this)yield n;}*[Symbol.iterator](){for(const n of ot(this,Kt)){const[r,o]=n;Zt(this,er,xr).call(this,r,o)===!1&&(yield [r,o.value]);}for(const n of ot(this,nn)){const[r,o]=n;ot(this,Kt).has(r)||Zt(this,er,xr).call(this,r,o)===!1&&(yield [r,o.value]);}}*entriesDescending(){let n=[...ot(this,Kt)];for(let r=n.length-1;r>=0;--r){const o=n[r],[a,i]=o;Zt(this,er,xr).call(this,a,i)===!1&&(yield [a,i.value]);}n=[...ot(this,nn)];for(let r=n.length-1;r>=0;--r){const o=n[r],[a,i]=o;ot(this,Kt).has(a)||Zt(this,er,xr).call(this,a,i)===!1&&(yield [a,i.value]);}}*entriesAscending(){for(const[n,r]of Zt(this,Es,Nm).call(this))yield [n,r.value];}get size(){if(!ot(this,hr))return ot(this,nn).size;let n=0;for(const r of ot(this,nn).keys())ot(this,Kt).has(r)||n++;return Math.min(ot(this,hr)+n,ot(this,Co))}get maxSize(){return ot(this,Co)}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,Kt=new WeakMap,nn=new WeakMap,Co=new WeakMap,Cs=new WeakMap,So=new WeakMap,Ss=new WeakSet,Mm=function(n){if(typeof ot(this,So)=="function")for(const[r,o]of n)ot(this,So).call(this,r,o.value);},er=new WeakSet,xr=function(n,r){return typeof r.expiry=="number"&&r.expiry<=Date.now()?(typeof ot(this,So)=="function"&&ot(this,So).call(this,n,r.value),this.delete(n)):!1},kc=new WeakSet,Ew=function(n,r){if(Zt(this,er,xr).call(this,n,r)===!1)return r.value},$s=new WeakSet,Rm=function(n,r){return r.expiry?Zt(this,kc,Ew).call(this,n,r):r.value},ws=new WeakSet,_m=function(n,r){const o=r.get(n);return Zt(this,$s,Rm).call(this,n,o)},xs=new WeakSet,Tm=function(n,r){ot(this,Kt).set(n,r),gd(this,hr)._++,ot(this,hr)>=ot(this,Co)&&(Pn(this,hr,0),Zt(this,Ss,Mm).call(this,ot(this,nn)),Pn(this,nn,ot(this,Kt)),Pn(this,Kt,new Map));},Lc=new WeakSet,Iw=function(n,r){ot(this,nn).delete(n),Zt(this,xs,Tm).call(this,n,r);},Es=new WeakSet,Nm=function*(){for(const n of ot(this,nn)){const[r,o]=n;ot(this,Kt).has(r)||Zt(this,er,xr).call(this,r,o)===!1&&(yield n);}for(const n of ot(this,Kt)){const[r,o]=n;Zt(this,er,xr).call(this,r,o)===!1&&(yield n);}};async function oY(e){return (await vn.get("/x/player/videoshot",{params:{aid:e,index:"1"}})).data.data}async function aY(e){return []}const cf=new rY({maxSize:1e3});async function iY(e){if(cf.has(e))return cf.get(e);const[t,n]=await Promise.all([oY(e),aY()]);return cf.set(e,{pvideoData:t,dmData:n}),{pvideoData:t,dmData:n}}function Ow(e){return async function(n){const r=new URLSearchParams({aid:n,csrf:wi()}),a=(await vn.post("/x/v2/history/toview/"+e,r)).data,i=Qr(a);return i||wt((a==null?void 0:a.message)||"出错了"),i}}const Pl=Ow("add"),B0=Ow("del"),Pw=e=>{const t={dislike:"/x/feed/dislike",cancel:"/x/feed/dislike/cancel"}[e];return async function(n,r){const a=(await Ju.get(b1+t,{params:{goto:n.goto,id:n.param,reason_id:r,build:"1",mobi_app:"android",idx:(Date.now()/1e3).toFixed(0)}})).data;return Qr(a)}},sY=Pw("dislike"),lY=Pw("cancel"),cY="_modal_1rloz_1",uY="_title-desc_1rloz_4",dY="_reason-list_1rloz_8",fY="_reason_1rloz_8",mY="_active_1rloz_29",gY="_reason-no_1rloz_33",hY="_tips-container_1rloz_47",vY="_tips_1rloz_47",gr={modal:cY,titleDesc:uY,reasonList:dY,reason:fY,active:mY,reasonNo:gY,tipsContainer:hY,tips:vY},td=nY();function pY(){return sr(td)}function bY(e){const t=pY();if(e)return t.get(e)}function yY({show:e,onHide:t,item:n}){const[r,o]=f.useState(!1),a=rt(async g=>{if(!n)return;let h=!1,v;try{o(!0),h=await sY(n,g.id);}catch(p){v=p;}finally{o(!1);}if(v)return console.error(v.stack||v),D$();h?wt("已标记不想看"):j$(),h&&(td.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,l=["1","2","3","4","5","6"];sn(l,g=>{if(!s()||!l.includes(g.key))return;const h=Number(g.key)-1;u(h);const v=document.querySelectorAll(`.${gr.reason}`)[h]||null;v==null||v.click();});const[c,u]=f.useState(i.length-1);tX(()=>{u(i.length-1);},[i]);const d=g=>()=>{if(!s())return;const h=c+g;h<0||h>i.length-1||u(h);};sn("leftarrow",d(-1),{exactMatch:!0}),sn("rightarrow",d(1),{exactMatch:!0}),sn("uparrow",d(-2),{exactMatch:!0}),sn("downarrow",d(2),{exactMatch:!0}),sn("enter",g=>{var h;s()&&(c<0||c>i.length-1||(g.preventDefault(),g.stopImmediatePropagation(),(h=document.querySelector(`.${gr.reason}.${gr.active}`))==null||h.click()));},{exactMatch:!0});const m=f.useMemo(()=>{var g;return ((g=i[c])==null?void 0:g.name)||""},[i,c]);return pe(Qu,{show:e,onHide:t,clsModal:gr.modal,hideWhenMaskOnClick:!0,hideWhenEsc:!0,children:[pe("div",{className:rr.modalHeader,children:[pe("div",{className:rr.modalTitle,children:["我不想看",j("span",{className:gr.titleDesc,children:"(选择后将减少相似内容推荐)"})]}),j("div",{className:"space",style:{flex:1}}),j(Zu,{onClick:t})]}),pe("div",{className:rr.modalBody,children:[j("div",{className:gr.reasonList,children:i.map((g,h)=>pe("button",{className:V(gr.reason,{[gr.active]:h===c}),style:{...h===c&&{borderColor:fo}},"data-id":g.id,onClick:()=>{u(h),a(g);},disabled:r,children:[j("span",{className:gr.reasonNo,style:{backgroundColor:fo},children:h+1}),g.name]},g.id))}),pe("div",{className:gr.tipsContainer,children:[pe("div",{className:gr.tips,children:[j(At,{name:"Info",size:15,style:{marginRight:5}}),"使用删除键打开弹窗, 数字键选择, Esc 关闭"]}),m&&pe("div",{className:gr.tips,children:[j(At,{name:"Info",size:15,style:{marginRight:5}}),"已选择「",m,"」, 回车键提交"]})]})]})]})}const Xl={show:!1,onHide:Rw,item:null},Mw=ar({value:Xl.show}),CY=function(){return sr(Mw).value};function Rw(){setTimeout(()=>{_w({show:!1,item:null});});}function _w(e){Object.assign(Xl,e),Mw.value=Xl.show,SY().render(j(yY,{...Xl,onHide:Rw}));}let H0;function SY(){return H0||(H0=(()=>{const e=document.createElement("div");return e.classList.add("show-dislike-container"),document.body.appendChild(e),Zs(e)})()),H0}function $Y(e){e!=null&&e.param&&td.has(e.param)||_w({show:!0,item:e});}var wY={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 xY=wY;var EY=function(t,n){return f__namespace.createElement(On,Ie({},t,{ref:n,icon:xY}))};const xc=f__namespace.forwardRef(EY);const Tw=f__namespace.createContext({});var IY=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=e=>{const{prefixCls:t,className:n,dashed:r}=e,o=IY(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=f__namespace.useContext(Je),i=a("menu",t),s=V({[`${i}-item-divider-dashed`]:!!r},n);return f__namespace.createElement(xh,Object.assign({className:s},o))},Nw=OY,PY=f.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Ec=PY,MY=e=>{var t;const{className:n,children:r,icon:o,title:a,danger:i}=e,{prefixCls:s,firstLevel:l,direction:c,disableMenuItemTitleTooltip:u,inlineCollapsed:d}=f__namespace.useContext(Ec),m=y=>{const C=f__namespace.createElement("span",{className:`${s}-title-content`},r);return (!o||co(r)&&r.type==="span")&&r&&y&&l&&typeof r=="string"?f__namespace.createElement("div",{className:`${s}-inline-collapsed-noicon`},r.charAt(0)):C},{siderCollapsed:g}=f__namespace.useContext(Tw);let h=a;typeof a>"u"?h=l?r:"":a===!1&&(h="");const v={title:h};!g&&!d&&(v.title=null,v.open=!1);const p=or(r).length;let b=f__namespace.createElement(Ws,Object.assign({},Ln(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}),Bn(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(Ls,Object.assign({},v,{placement:c==="rtl"?"left":"right",overlayClassName:`${s}-inline-collapsed-tooltip`}),b)),b},kw=MY,RY=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:a}=e,i=f__namespace.useContext(Ec),{prefixCls:s,inlineCollapsed:l,theme:c}=i,u=Ci();let d;if(!r)d=l&&!u.length&&o&&typeof o=="string"?f__namespace.createElement("div",{className:`${s}-inline-collapsed-noicon`},o.charAt(0)):f__namespace.createElement("span",{className:`${s}-title-content`},o);else {const h=co(o)&&o.type==="span";d=f__namespace.createElement(f__namespace.Fragment,null,Bn(r,{className:V(co(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),h?o:f__namespace.createElement("span",{className:`${s}-title-content`},o));}const m=f__namespace.useMemo(()=>Object.assign(Object.assign({},i),{firstLevel:!1}),[i]),[g]=ks("Menu");return f__namespace.createElement(Ec.Provider,{value:m},f__namespace.createElement(Au,Object.assign({},Ln(e,["icon"]),{title:d,popupClassName:V(s,n,`${s}-${a||c}`),popupStyle:{zIndex:g}})))},Lw=RY;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};function km(e){return (e||[]).map((t,n)=>{if(t&&typeof t=="object"){const r=t,{label:o,children:a,key:i,type:s}=r,l=_Y(r,["label","children","key","type"]),c=i??`tmp-${n}`;return a||s==="group"?s==="group"?f__namespace.createElement(zu,Object.assign({key:c},l,{title:o}),km(a)):f__namespace.createElement(Lw,Object.assign({key:c},l,{title:o}),km(a)):s==="divider"?f__namespace.createElement(Nw,Object.assign({key:c},l)):f__namespace.createElement(kw,Object.assign({key:c},l),o)}return null}).filter(t=>t)}function TY(e){return f__namespace.useMemo(()=>e&&km(e),[e])}var NY=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 Ic=f__namespace.createContext(null),kY=f__namespace.forwardRef((e,t)=>{const{children:n}=e,r=NY(e,["children"]),o=f__namespace.useContext(Ic),a=f__namespace.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable]),i=HA(n),s=oa(t,i?n.ref:null);return f__namespace.createElement(Ic.Provider,{value:a},f__namespace.createElement(Xa,null,i?f__namespace.cloneElement(n,{ref:s}):n))}),LY=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"}}}},AY=LY,zY=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})`}}}}},DY=zY,W0=e=>Object.assign({},Qo(e)),jY=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:a,itemBg:i,subMenuItemBg:s,itemSelectedBg:l,activeBarHeight:c,activeBarWidth:u,activeBarBorderWidth:d,motionDurationSlow:m,motionEaseInOut:g,motionEaseOut:h,itemPaddingInline:v,motionDurationMid:p,itemHoverColor:b,lineType:y,colorSplit:C,itemDisabledColor:$,dangerItemColor:x,dangerItemHoverColor:w,dangerItemSelectedColor:S,dangerItemActiveBg:E,dangerItemSelectedBg:I,itemHoverBg:O,itemActiveBg:R,menuSubMenuBg:P,horizontalItemSelectedColor:k,horizontalItemSelectedBg:L,horizontalItemBorderRadius:A,horizontalItemHoverBg:T,popupBg:M}=e;return {[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:i,[`&${n}-root:focus-visible`]:Object.assign({},W0(e)),[`${n}-item-group-title`]:{color:a},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${$} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:b}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:R}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:R}}},[`${n}-item-danger`]:{color:x,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:w}},[`&${n}-item:active`]:{background:E}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:S},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:l,[`&${n}-item-danger`]:{backgroundColor:I}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},W0(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:P},[`&${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:A,"&::after":{position:"absolute",insetInline:v,bottom:0,borderBottom:`${c}px solid transparent`,transition:`border-color ${m} ${g}`,content:'""'},"&:hover, &-active, &-open":{background:T,"&::after":{borderBottomWidth:c,borderBottomColor:k}},"&-selected":{color:k,backgroundColor:L,"&:hover":{backgroundColor:L},"&::after":{borderBottomWidth:c,borderBottomColor:k}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${d}px ${y} ${C}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item, ${n}-submenu-title`]:d&&u?{width:`calc(100% + ${d}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${u}px solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${p} ${h}`,`opacity ${p} ${h}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:S}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${p} ${g}`,`opacity ${p} ${g}`].join(",")}}}}}},V0=jY,G0=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:a,marginXS:i,itemMarginBlock:s}=e,l=o+a+i;return {[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`,paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:`calc(100% - ${r*2}px)`},[`> ${t}-item,
            > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`},[`${t}-item-group-list ${t}-submenu-title,
            ${t}-submenu-title`]:{paddingInlineEnd:l}}},FY=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:a,controlHeightLG:i,motionDurationMid:s,motionEaseOut:l,paddingXL:c,itemMarginInline:u,fontSizeLG:d,motionDurationSlow:m,paddingXS:g,boxShadowSecondary:h,collapsedWidth:v,collapsedIconSize:p}=e,b={height:r,lineHeight:`${r}px`,listStylePosition:"inside",listStyleType:"disc"};return [{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},G0(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},G0(e)),{boxShadow:h})}},{[`${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} ${l}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:b,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:b}},{[`${t}-inline-collapsed`]:{width:v,[`&${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({},Yo),{paddingInline:g})}}]},BY=FY,K0=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:a,iconCls:i,iconSize:s,iconMarginInlineEnd:l}=e;return {[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding ${n} ${o}`].join(","),[`${t}-item-icon, ${i}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${a}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:l,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},aa()),[`&${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"}}}},U0=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})`}}}}},HY=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:a,motionEaseInOut:i,paddingXS:s,padding:l,colorSplit:c,lineWidth:u,zIndexPopup:d,borderRadiusLG:m,subMenuItemBorderRadius:g,menuArrowSize:h,menuArrowOffset:v,lineType:p,menuPanelMaskInset:b,groupTitleLineHeight:y,groupTitleFontSize:C}=e;return [{"":{[`${n}`]:Object.assign(Object.assign({},jf()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},zt(e)),jf()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${s}px ${l}px`,fontSize:C,lineHeight:y,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${i}`,`background ${o} ${i}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${i}`,`background ${o} ${i}`,`padding ${a} ${i}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${i}`,`padding ${o} ${i}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`,[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:p,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),K0(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${r*2}px ${l}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius: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)),U0(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:g},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${i}`}})}}),U0(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
        &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${v})`},"&::after":{transform:`rotate(45deg) translateX(-${v})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${h*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${v})`},"&::before":{transform:`rotate(45deg) translateX(${v})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},WY=(e,t)=>Bt("Menu",r=>{if(t===!1)return [];const{colorBgElevated:o,colorPrimary:a,colorTextLightSolid:i,controlHeightLG:s,fontSize:l,darkItemColor:c,darkDangerItemColor:u,darkItemBg:d,darkSubMenuItemBg:m,darkItemSelectedColor:g,darkItemSelectedBg:h,darkDangerItemSelectedBg:v,darkItemHoverBg:p,darkGroupTitleColor:b,darkItemHoverColor:y,darkItemDisabledColor:C,darkDangerItemHoverColor:$,darkDangerItemSelectedColor:x,darkDangerItemActiveBg:w}=r,S=l/7*5,E=bt(r,{menuArrowSize:S,menuHorizontalHeight:s*1.15,menuArrowOffset:`${S*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:o}),I=bt(E,{itemColor:c,itemHoverColor:y,groupTitleColor:b,itemSelectedColor:g,itemBg:d,popupBg:d,subMenuItemBg:m,itemActiveBg:"transparent",itemSelectedBg:h,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:p,itemDisabledColor:C,dangerItemColor:u,dangerItemHoverColor:$,dangerItemSelectedColor:x,dangerItemActiveBg:w,dangerItemSelectedBg:v,menuSubMenuBg:m,horizontalItemSelectedColor:i,horizontalItemSelectedBg:a});return [HY(E),AY(E),BY(E),V0(E,"light"),V0(I,"dark"),DY(E),IC(E),Po(E,"slide-up"),Po(E,"slide-down"),$u(E,"zoom-big")]},r=>{const{colorPrimary:o,colorError:a,colorTextDisabled:i,colorErrorBg:s,colorText:l,colorTextDescription:c,colorBgContainer:u,colorFillAlter:d,colorFillContent:m,lineWidth:g,lineWidthBold:h,controlItemBgActive:v,colorBgTextHover:p,controlHeightLG:b,lineHeight:y,colorBgElevated:C,marginXXS:$,padding:x,fontSize:w,controlHeightSM:S,fontSizeLG:E,colorTextLightSolid:I,colorErrorHover:O}=r,R=new Yt(I).setAlpha(.65).toRgbString();return {dropdownWidth:160,zIndexPopup:r.zIndexPopupBase+50,radiusItem:r.borderRadiusLG,itemBorderRadius:r.borderRadiusLG,radiusSubMenuItem:r.borderRadiusSM,subMenuItemBorderRadius:r.borderRadiusSM,colorItemText:l,itemColor:l,colorItemTextHover:l,itemHoverColor:l,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:o,itemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:u,itemBg:u,colorItemBgHover:p,itemHoverBg:p,colorItemBgActive:m,itemActiveBg:v,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:v,itemSelectedBg:v,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:h,activeBarHeight:h,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:C,itemMarginBlock:$,itemPaddingInline:x,horizontalLineHeight:`${b*1.15}px`,iconSize:w,iconMarginInlineEnd:S-w,collapsedIconSize:E,groupTitleFontSize:w,darkItemDisabledColor:new Yt(I).setAlpha(.25).toRgbString(),darkItemColor:R,darkDangerItemColor:a,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:I,darkItemSelectedBg:o,darkDangerItemSelectedBg:a,darkItemHoverBg:"transparent",darkGroupTitleColor:R,darkItemHoverColor:I,darkDangerItemHoverColor:O,darkDangerItemSelectedColor:I,darkDangerItemActiveBg:a}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(e);var VY=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 GY=f.forwardRef((e,t)=>{var n,r;const o=f__namespace.useContext(Ic),a=o||{},{getPrefixCls:i,getPopupContainer:s,direction:l,menu:c}=f__namespace.useContext(Je),u=i(),{prefixCls:d,className:m,style:g,theme:h="light",expandIcon:v,_internalDisableMenuItemTitleTooltip:p,inlineCollapsed:b,siderCollapsed:y,items:C,children:$,rootClassName:x,mode:w,selectable:S,onClick:E,overflowedIndicatorPopupClassName:I}=e,O=VY(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),R=Ln(O,["collapsedWidth"]),P=TY(C)||$;(n=a.validator)===null||n===void 0||n.call(a,{mode:w});const k=Tn(function(){var K;E==null||E.apply(void 0,arguments),(K=a.onClick)===null||K===void 0||K.call(a);}),L=a.mode||w,A=S??a.selectable,T=f__namespace.useMemo(()=>y!==void 0?y:b,[b,y]),M={horizontal:{motionName:`${u}-slide-up`},inline:CC(u),other:{motionName:`${u}-zoom-big`}},_=i("menu",d||a.prefixCls),[D,F]=WY(_,!o),H=V(`${_}-${h}`,c==null?void 0:c.className,m);let B;if(typeof v=="function")B=v;else if(v===null||v===!1)B=null;else if(a.expandIcon===null||a.expandIcon===!1)B=null;else {const K=v??a.expandIcon;B=Bn(K,{className:V(`${_}-submenu-expand-icon`,co(K)?(r=K.props)===null||r===void 0?void 0:r.className:"")});}const W=f__namespace.useMemo(()=>({prefixCls:_,inlineCollapsed:T||!1,direction:l,firstLevel:!0,theme:h,mode:L,disableMenuItemTitleTooltip:p}),[_,T,l,p,h]);return D(f__namespace.createElement(Ic.Provider,{value:null},f__namespace.createElement(Ec.Provider,{value:W},f__namespace.createElement(Si,Object.assign({getPopupContainer:s,overflowedIndicator:f__namespace.createElement(bh,null),overflowedIndicatorPopupClassName:V(_,`${_}-${h}`,I),mode:L,selectable:A,onClick:k},R,{inlineCollapsed:T,style:Object.assign(Object.assign({},c==null?void 0:c.style),g),className:H,prefixCls:_,direction:l,defaultMotions:M,expandIcon:B,ref:t,rootClassName:V(x,F)}),P))))}),KY=GY,nl=f.forwardRef((e,t)=>{const n=f.useRef(null),r=f__namespace.useContext(Tw);return f.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{var a;(a=n.current)===null||a===void 0||a.focus(o);}})),f__namespace.createElement(KY,Object.assign({ref:n},e,r))});nl.Item=kw;nl.SubMenu=Lw;nl.Divider=Nw;nl.ItemGroup=zu;const UY=nl,XY=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}}}}}},qY=XY,YY=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:a,antCls:i,iconCls:s,motionDurationMid:l,dropdownPaddingVertical:c,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:m,fontSizeIcon:g,controlPaddingHorizontal:h,colorBgElevated:v}=e;return [{[t]:Object.assign(Object.assign({},zt(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 ${l}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n        &-hidden,\n        &-menu-hidden,\n        &-menu-submenu-hidden\n      ":{display:"none"},[`&${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomLeft,
          &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomLeft,
          &${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottom,
          &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottom,
          &${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomRight,
          &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:Yg},[`&${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:Zg},[`&${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:Qg},[`&${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:Jg}})},Xg(e,{colorBg:v,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:v,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Zo(e)),{[`${n}-item-group-title`]:{padding:`${c}px ${h}px`,color:e.colorTextDescription,transition:`all ${l}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${l}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${c}px ${h}px`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${l}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Zo(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:m,cursor:"not-allowed","&:hover":{color:m,backgroundColor:v,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:h+e.fontSizeSM},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:m,backgroundColor:v,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[Po(e,"slide-up"),Po(e,"slide-down"),sc(e,"move-up"),sc(e,"move-down"),$u(e,"zoom-big")]]},Aw=Bt("Dropdown",(e,t)=>{let{rootPrefixCls:n}=t;const{marginXXS:r,sizePopupArrow:o,controlHeight:a,fontSize:i,lineHeight:s,paddingXXS:l,componentCls:c,borderRadiusLG:u}=e,d=(a-i*s)/2,{dropdownArrowOffset:m}=Ug({contentRadius:u}),g=bt(e,{menuCls:`${c}-menu`,rootPrefixCls:n,dropdownArrowDistance:o/2+r,dropdownArrowOffset:m,dropdownPaddingVertical:d,dropdownEdgeChildPadding:l});return [YY(g),qY(g)]},e=>({zIndexPopup:e.zIndexPopupBase+50})),ev=e=>{const{menu:t,arrow:n,prefixCls:r,children:o,trigger:a,disabled:i,dropdownRender:s,getPopupContainer:l,overlayClassName:c,rootClassName:u,overlayStyle:d,open:m,onOpenChange:g,visible:h,onVisibleChange:v,mouseEnterDelay:p=.15,mouseLeaveDelay:b=.1,autoAdjustOverflow:y=!0,placement:C="",overlay:$,transitionName:x}=e,{getPopupContainer:w,getPrefixCls:S,direction:E,dropdown:I}=f__namespace.useContext(Je);E1();const O=f__namespace.useMemo(()=>{const Y=S();return x!==void 0?x:C.includes("top")?`${Y}-slide-down`:`${Y}-slide-up`},[S,C,x]),R=f__namespace.useMemo(()=>C?C.includes("Center")?C.slice(0,C.indexOf("Center")):C:E==="rtl"?"bottomRight":"bottomLeft",[C,E]),P=S("dropdown",r),[k,L]=Aw(P),[,A]=Un(),T=f__namespace.Children.only(o),M=Bn(T,{className:V(`${P}-trigger`,{[`${P}-rtl`]:E==="rtl"},T.props.className),disabled:i}),_=i?[]:a;let D;_&&_.includes("contextMenu")&&(D=!0);const[F,H]=Vt(!1,{value:m??h}),B=Tn(Y=>{g==null||g(Y,{source:"trigger"}),v==null||v(Y),H(Y);}),W=V(c,u,L,I==null?void 0:I.className,{[`${P}-rtl`]:E==="rtl"}),K=$C({arrowPointAtCenter:typeof n=="object"&&n.pointAtCenter,autoAdjustOverflow:y,offset:A.marginXXS,arrowWidth:n?A.sizePopupArrow:0,borderRadius:A.borderRadius}),X=f__namespace.useCallback(()=>{t!=null&&t.selectable&&(t!=null&&t.multiple)||(g==null||g(!1,{source:"menu"}),H(!1));},[t==null?void 0:t.selectable,t==null?void 0:t.multiple]),q=()=>{let Y;return t!=null&&t.items?Y=f__namespace.createElement(UY,Object.assign({},t)):typeof $=="function"?Y=$():Y=$,s&&(Y=s(Y)),Y=f__namespace.Children.only(typeof Y=="string"?f__namespace.createElement("span",null,Y):Y),f__namespace.createElement(kY,{prefixCls:`${P}-menu`,expandIcon:f__namespace.createElement("span",{className:`${P}-menu-submenu-arrow`},f__namespace.createElement(Za,{className:`${P}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:X,validator:ue=>{}},Y)},[ne,G]=ks("Dropdown",d==null?void 0:d.zIndex);let ee=f__namespace.createElement(wS,Object.assign({alignPoint:D},Ln(e,["rootClassName"]),{mouseEnterDelay:p,mouseLeaveDelay:b,visible:F,builtinPlacements:K,arrow:!!n,overlayClassName:W,prefixCls:P,getPopupContainer:l||w,transitionName:O,trigger:_,overlay:q,placement:R,onVisibleChange:B,overlayStyle:Object.assign(Object.assign(Object.assign({},I==null?void 0:I.style),d),{zIndex:ne})}),M);return ne&&(ee=f__namespace.createElement(Kg.Provider,{value:G},ee)),k(ee)};function QY(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const ZY=Eh(ev,"dropdown",e=>e,QY),JY=e=>f__namespace.createElement(ZY,Object.assign({},e),f__namespace.createElement("span",null));ev._InternalPanelDoNotUseOrYouWillBeFired=JY;const zw=ev;var eQ=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 Dw=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=f__namespace.useContext(Je),{prefixCls:o,type:a="default",danger:i,disabled:s,loading:l,onClick:c,htmlType:u,children:d,className:m,menu:g,arrow:h,autoFocus:v,overlay:p,trigger:b,align:y,open:C,onOpenChange:$,placement:x,getPopupContainer:w,href:S,icon:E=f__namespace.createElement(bh,null),title:I,buttonsRender:O=Y=>Y,mouseEnterDelay:R,mouseLeaveDelay:P,overlayClassName:k,overlayStyle:L,destroyPopupOnHide:A,dropdownRender:T}=e,M=eQ(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),_=n("dropdown",o),D=`${_}-button`,[F,H]=Aw(_),B={menu:g,arrow:h,autoFocus:v,align:y,disabled:s,trigger:s?[]:b,onOpenChange:$,getPopupContainer:w||t,mouseEnterDelay:R,mouseLeaveDelay:P,overlayClassName:k,overlayStyle:L,destroyPopupOnHide:A,dropdownRender:T},{compactSize:W,compactItemClassnames:K}=yi(_,r),X=V(D,K,m,H);"overlay"in e&&(B.overlay=p),"open"in e&&(B.open=C),"placement"in e?B.placement=x:B.placement=r==="rtl"?"bottomLeft":"bottomRight";const q=f__namespace.createElement(qt,{type:a,danger:i,disabled:s,loading:l,onClick:c,htmlType:u,href:S,title:I},d),ne=f__namespace.createElement(qt,{type:a,danger:i,icon:E}),[G,ee]=O([q,ne]);return F(f__namespace.createElement(Fs.Compact,Object.assign({className:X,size:W,block:!0},M),G,f__namespace.createElement(zw,Object.assign({},B),ee)))};Dw.__ANT_BUTTON=!0;const tQ=Dw,jw=zw;jw.Button=tQ;const tv=jw;function Ma(e,t,n){const r=rt(n);f.useEffect(()=>(e.on(t,r),()=>{e.off(t,r);}),[e]);}const nQ=new Mt("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),rQ=new Mt("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),oQ=new Mt("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),aQ=new Mt("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),iQ=new Mt("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),sQ=new Mt("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),lQ=e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:o,motionDurationSlow:a,textFontSize:i,textFontSizeSM:s,statusSize:l,dotSize:c,textFontWeight:u,indicatorHeight:d,indicatorHeightSM:m,marginXS:g}=e,h=`${r}-scroll-number`,v=pu(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({},zt(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:c,minWidth:c,height:c,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${o}px ${e.badgeShadowColor}`},[`${t}-dot${h}`]:{transition:`background ${a}`},[`${t}-count, ${t}-dot, ${h}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:sQ,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:l,height:l,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorPrimary,backgroundColor:e.colorPrimary,"&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:o,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:nQ,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}}}),v),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:rQ,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:oQ,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:aQ,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:iQ,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${h}-custom-component, ${t}-count`]:{transform:"none"},[`${h}-custom-component, ${h}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[`${h}`]:{overflow:"hidden",[`${h}-only`]:{position:"relative",display:"inline-block",height:d,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${h}-only-unit`]:{height:d,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${h}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${h}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},Fw=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,marginXS:o,colorBorderBg:a}=e,i=Math.round(t*n),s=r,l=e.colorBgContainer,c=e.colorError,u=e.colorErrorHover;return bt(e,{badgeFontHeight:i,badgeShadowSize:s,badgeTextColor:l,badgeColor:c,badgeColorHover:u,badgeShadowColor:a,badgeProcessingDuration:"1.2s",badgeRibbonOffset:o,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},Bw=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}},cQ=Bt("Badge",e=>{const t=Fw(e);return [lQ(t)]},Bw),uQ=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:o}=e,a=`${t}-ribbon`,i=`${t}-ribbon-wrapper`,s=pu(e,(l,c)=>{let{darkColor:u}=c;return {[`&${a}-color-${l}`]:{background:u,color:u}}});return {[`${i}`]:{position:"relative"},[`${a}`]:Object.assign(Object.assign(Object.assign(Object.assign({},zt(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"}})}},dQ=Bt(["Badge","Ribbon"],e=>{const t=Fw(e);return [uQ(t)]},Bw),fQ=e=>{const{className:t,prefixCls:n,style:r,color:o,children:a,text:i,placement:s="end",rootClassName:l}=e,{getPrefixCls:c,direction:u}=f__namespace.useContext(Je),d=c("ribbon",n),m=wu(o,!1),g=V(d,`${d}-placement-${s}`,{[`${d}-rtl`]:u==="rtl",[`${d}-color-${o}`]:m},t),[h,v]=dQ(d),p={},b={};return o&&!m&&(p.background=o,b.color=o),h(f__namespace.createElement("div",{className:V(`${d}-wrapper`,l,v)},a,f__namespace.createElement("div",{className:V(g,v),style:Object.assign(Object.assign({},p),r)},f__namespace.createElement("span",{className:`${d}-text`},i),f__namespace.createElement("div",{className:`${d}-corner`,style:b}))))},mQ=fQ;function X0(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 gQ(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}function hQ(e){const{prefixCls:t,count:n,value:r}=e,o=Number(r),a=Math.abs(n),[i,s]=f__namespace.useState(o),[l,c]=f__namespace.useState(a),u=()=>{s(o),c(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(X0,Object.assign({},e,{key:o,current:!0}))],m={transition:"none"};else {d=[];const g=o+10,h=[];for(let b=o;b<=g;b+=1)h.push(b);const v=h.findIndex(b=>b%10===i);d=h.map((b,y)=>{const C=b%10;return f__namespace.createElement(X0,Object.assign({},e,{key:b,value:C,offset:y-v,current:y===v}))});const p=l<a?1:-1;m={transform:`translateY(${-gQ(i,o,p)}00%)`};}return f__namespace.createElement("span",{className:`${t}-only`,style:m,onTransitionEnd:u},d)}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};const pQ=f__namespace.forwardRef((e,t)=>{const{prefixCls:n,count:r,className:o,motionClassName:a,style:i,title:s,show:l,component:c="sup",children:u}=e,d=vQ(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:m}=f__namespace.useContext(Je),g=m("scroll-number",n),h=Object.assign(Object.assign({},d),{"data-show":l,style:i,className:V(g,o,a),title:s});let v=r;if(r&&Number(r)%1===0){const p=String(r).split("");v=f__namespace.createElement("bdi",null,p.map((b,y)=>f__namespace.createElement(hQ,{prefixCls:g,count:Number(r),value:b,key:p.length-y})));}return i&&i.borderColor&&(h.style=Object.assign(Object.assign({},i),{boxShadow:`0 0 0 1px ${i.borderColor} inset`})),u?Bn(u,p=>({className:V(`${g}-custom-component`,p==null?void 0:p.className,a)})):f__namespace.createElement(c,Object.assign({},h,{ref:t}),v)}),bQ=pQ;var yQ=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 CQ=(e,t)=>{var n,r,o,a,i;const{prefixCls:s,scrollNumberPrefixCls:l,children:c,status:u,text:d,color:m,count:g=null,overflowCount:h=99,dot:v=!1,size:p="default",title:b,offset:y,style:C,className:$,rootClassName:x,classNames:w,styles:S,showZero:E=!1}=e,I=yQ(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:O,direction:R,badge:P}=f__namespace.useContext(Je),k=O("badge",s),[L,A]=cQ(k),T=g>h?`${h}+`:g,M=T==="0"||T===0,_=g===null||M&&!E,D=(u!=null||m!=null)&&_,F=v&&!M,H=F?"":T,B=f.useMemo(()=>(H==null||H===""||M&&!E)&&!F,[H,M,E,F]),W=f.useRef(g);B||(W.current=g);const K=W.current,X=f.useRef(H);B||(X.current=H);const q=X.current,ne=f.useRef(F);B||(ne.current=F);const G=f.useMemo(()=>{if(!y)return Object.assign(Object.assign({},P==null?void 0:P.style),C);const J={marginTop:y[1]};return R==="rtl"?J.left=parseInt(y[0],10):J.right=-parseInt(y[0],10),Object.assign(Object.assign(Object.assign({},J),P==null?void 0:P.style),C)},[R,y,C,P==null?void 0:P.style]),ee=b??(typeof K=="string"||typeof K=="number"?K:void 0),Y=B||!d?null:f__namespace.createElement("span",{className:`${k}-status-text`},d),ue=!K||typeof K!="object"?void 0:Bn(K,J=>({style:Object.assign(Object.assign({},G),J.style)})),le=wu(m,!1),Z=V(w==null?void 0:w.indicator,(n=P==null?void 0:P.classNames)===null||n===void 0?void 0:n.indicator,{[`${k}-status-dot`]:D,[`${k}-status-${u}`]:!!u,[`${k}-color-${m}`]:le}),oe={};m&&!le&&(oe.color=m,oe.background=m);const fe=V(k,{[`${k}-status`]:D,[`${k}-not-a-wrapper`]:!c,[`${k}-rtl`]:R==="rtl"},$,x,P==null?void 0:P.className,(r=P==null?void 0:P.classNames)===null||r===void 0?void 0:r.root,w==null?void 0:w.root,A);if(!c&&D){const J=G.color;return L(f__namespace.createElement("span",Object.assign({},I,{className:fe,style:Object.assign(Object.assign(Object.assign({},S==null?void 0:S.root),(o=P==null?void 0:P.styles)===null||o===void 0?void 0:o.root),G)}),f__namespace.createElement("span",{className:Z,style:Object.assign(Object.assign(Object.assign({},S==null?void 0:S.indicator),(a=P==null?void 0:P.styles)===null||a===void 0?void 0:a.indicator),oe)}),d&&f__namespace.createElement("span",{style:{color:J},className:`${k}-status-text`},d)))}return L(f__namespace.createElement("span",Object.assign({ref:t},I,{className:fe,style:Object.assign(Object.assign({},(i=P==null?void 0:P.styles)===null||i===void 0?void 0:i.root),S==null?void 0:S.root)}),c,f__namespace.createElement(mo,{visible:!B,motionName:`${k}-zoom`,motionAppear:!1,motionDeadline:1e3},J=>{let{className:se,ref:me}=J;var re,ie;const ge=O("scroll-number",l),be=ne.current,Te=V(w==null?void 0:w.indicator,(re=P==null?void 0:P.classNames)===null||re===void 0?void 0:re.indicator,{[`${k}-dot`]:be,[`${k}-count`]:!be,[`${k}-count-sm`]:p==="small",[`${k}-multiple-words`]:!be&&q&&q.toString().length>1,[`${k}-status-${u}`]:!!u,[`${k}-color-${m}`]:le});let Ae=Object.assign(Object.assign(Object.assign({},S==null?void 0:S.indicator),(ie=P==null?void 0:P.styles)===null||ie===void 0?void 0:ie.indicator),G);return m&&!le&&(Ae=Ae||{},Ae.background=m),f__namespace.createElement(bQ,{prefixCls:ge,show:!B,motionClassName:se,className:Te,count:q,title:ee,style:Ae,key:"scrollNumber",ref:me},ue)}),Y))},Hw=f__namespace.forwardRef(CQ);Hw.Ribbon=mQ;const SQ=Hw,Ww=["xxl","xl","lg","md","sm","xs"],$Q=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)`}),wQ=e=>{const t=e,n=[].concat(Ww).reverse();return n.forEach((r,o)=>{const a=r.toUpperCase(),i=`screen${a}Min`,s=`screen${a}`;if(!(t[i]<=t[s]))throw new Error(`${i}<=${s} fails : !(${t[i]}<=${t[s]})`);if(o<n.length-1){const l=`screen${a}Max`;if(!(t[s]<=t[l]))throw new Error(`${s}<=${l} fails : !(${t[s]}<=${t[l]})`);const u=`screen${n[o+1].toUpperCase()}Min`;if(!(t[l]<=t[u]))throw new Error(`${l}<=${u} fails : !(${t[l]}<=${t[u]})`)}}),e};function xQ(){const[,e]=Un(),t=$Q(wQ(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=c=>{let{matches:u}=c;this.dispatch(Object.assign(Object.assign({},o),{[a]:u}));},l=window.matchMedia(i);l.addListener(s),this.matchHandlers[i]={mql:l,listener:s},s(l);});},responsiveMap:t}},[e])}function EQ(){const[,e]=f__namespace.useReducer(t=>t+1,0);return e}function Vw(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=f.useRef({}),n=EQ(),r=xQ();return Wt(()=>{const o=r.subscribe(a=>{t.current=a,e&&n();});return ()=>r.unsubscribe(o)},[]),t.current}const IQ=f__namespace.createContext({}),Lm=IQ,OQ=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:o,avatarColor:a,containerSize:i,containerSizeLG:s,containerSizeSM:l,textFontSize:c,textFontSizeLG:u,textFontSizeSM:d,borderRadius:m,borderRadiusLG:g,borderRadiusSM:h,lineWidth:v,lineType:p}=e,b=(y,C,$)=>({width:y,height:y,lineHeight:`${y-v*2}px`,borderRadius:"50%",[`&${n}-square`]:{borderRadius:$},[`${n}-string`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},transformOrigin:"0 center"},[`&${n}-icon`]:{fontSize:C,[`> ${r}`]:{margin:0}}});return {[n]:Object.assign(Object.assign(Object.assign(Object.assign({},zt(e)),{position:"relative",display:"inline-block",overflow:"hidden",color:a,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:o,border:`${v}px ${p} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),b(i,c,m)),{"&-lg":Object.assign({},b(s,u,g)),"&-sm":Object.assign({},b(l,d,h)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},PQ=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}}}},Gw=Bt("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=bt(e,{avatarBg:n,avatarColor:t});return [OQ(r),PQ(r)]},e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:o,fontSizeLG:a,fontSizeXL:i,fontSizeHeading3:s,marginXS:l,marginXXS:c,colorBorderBg:u}=e;return {containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:Math.round((a+i)/2),textFontSizeLG:s,textFontSizeSM:o,groupSpace:c,groupOverlapping:-l,groupBorderColor:u}});var MQ=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=(e,t)=>{const[n,r]=f__namespace.useState(1),[o,a]=f__namespace.useState(!1),[i,s]=f__namespace.useState(!0),l=f__namespace.useRef(null),c=f__namespace.useRef(null),u=Wn(t,l),{getPrefixCls:d,avatar:m}=f__namespace.useContext(Je),g=f__namespace.useContext(Lm),h=()=>{if(!c.current||!l.current)return;const q=c.current.offsetWidth,ne=l.current.offsetWidth;if(q!==0&&ne!==0){const{gap:G=4}=e;G*2<ne&&r(ne-G*2<q?(ne-G*2)/q:1);}};f__namespace.useEffect(()=>{a(!0);},[]),f__namespace.useEffect(()=>{s(!0),r(1);},[e.src]),f__namespace.useEffect(h,[e.gap]);const v=()=>{const{onError:q}=e;(q==null?void 0:q())!==!1&&s(!1);},{prefixCls:p,shape:b,size:y,src:C,srcSet:$,icon:x,className:w,rootClassName:S,alt:E,draggable:I,children:O,crossOrigin:R}=e,P=MQ(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),k=Xn(q=>{var ne,G;return (G=(ne=y??(g==null?void 0:g.size))!==null&&ne!==void 0?ne:q)!==null&&G!==void 0?G:"default"}),L=Object.keys(typeof k=="object"?k||{}:{}).some(q=>["xs","sm","md","lg","xl","xxl"].includes(q)),A=Vw(L),T=f__namespace.useMemo(()=>{if(typeof k!="object")return {};const q=Ww.find(G=>A[G]),ne=k[q];return ne?{width:ne,height:ne,lineHeight:`${ne}px`,fontSize:ne&&(x||O)?ne/2:18}:{}},[A,k]),M=d("avatar",p),[_,D]=Gw(M),F=V({[`${M}-lg`]:k==="large",[`${M}-sm`]:k==="small"}),H=f__namespace.isValidElement(C),B=b||(g==null?void 0:g.shape)||"circle",W=V(M,F,m==null?void 0:m.className,`${M}-${B}`,{[`${M}-image`]:H||C&&i,[`${M}-icon`]:!!x},w,S,D),K=typeof k=="number"?{width:k,height:k,lineHeight:`${k}px`,fontSize:x?k/2:18}:{};let X;if(typeof C=="string"&&i)X=f__namespace.createElement("img",{src:C,draggable:I,srcSet:$,onError:v,alt:E,crossOrigin:R});else if(H)X=C;else if(x)X=x;else if(o||n!==1){const q=`scale(${n}) translateX(-50%)`,ne={msTransform:q,WebkitTransform:q,transform:q},G=typeof k=="number"?{lineHeight:`${k}px`}:{};X=f__namespace.createElement(vr,{onResize:h},f__namespace.createElement("span",{className:`${M}-string`,ref:c,style:Object.assign(Object.assign({},G),ne)},O));}else X=f__namespace.createElement("span",{className:`${M}-string`,style:{opacity:0},ref:c},O);return delete P.onError,delete P.gap,_(f__namespace.createElement("span",Object.assign({},P,{style:Object.assign(Object.assign(Object.assign(Object.assign({},K),T),m==null?void 0:m.style),P.style),className:W,ref:u}),X))},_Q=f__namespace.forwardRef(RQ),Kw=_Q,q0=e=>{const{size:t,shape:n}=f__namespace.useContext(Lm),r=f__namespace.useMemo(()=>({size:e.size||t,shape:e.shape||n}),[e.size,e.shape,t,n]);return f__namespace.createElement(Lm.Provider,{value:r},e.children)},TQ=e=>{const{getPrefixCls:t,direction:n}=f__namespace.useContext(Je),{prefixCls:r,className:o,rootClassName:a,style:i,maxCount:s,maxStyle:l,size:c,shape:u,maxPopoverPlacement:d="top",maxPopoverTrigger:m="hover",children:g}=e,h=t("avatar",r),v=`${h}-group`,[p,b]=Gw(h),y=V(v,{[`${v}-rtl`]:n==="rtl"},o,a,b),C=or(g).map((x,w)=>Bn(x,{key:`avatar-key-${w}`})),$=C.length;if(s&&s<$){const x=C.slice(0,s),w=C.slice(s,$);return x.push(f__namespace.createElement(Mu,{key:"avatar-popover-key",content:w,trigger:m,placement:d,overlayClassName:`${v}-popover`},f__namespace.createElement(Kw,{style:l},`+${$-s}`))),p(f__namespace.createElement(q0,{shape:u,size:c},f__namespace.createElement("div",{className:y,style:i},x)))}return p(f__namespace.createElement(q0,{shape:u,size:c},f__namespace.createElement("div",{className:y,style:i},C)))},NQ=TQ,Uw=Kw;Uw.Group=NQ;const Y0=Uw,nd={name:"1wnowod",styles:"display:flex;align-items:center;justify-content:center"};function kQ(e){const t=f.useRef(null);return t.current??(t.current=e()),t}var LQ=Math.floor,AQ=Math.random;function zQ(e,t){return e+LQ(AQ()*(t-e+1))}var DQ=zQ,jQ=DQ;function FQ(e,t){var n=-1,r=e.length,o=r-1;for(t=t===void 0?r:t;++n<t;){var a=jQ(n,o),i=e[a];e[a]=e[n],e[n]=i;}return e.length=t,e}var Xw=FQ,BQ=Xy,HQ=Xw;function WQ(e){return HQ(BQ(e))}var VQ=WQ,GQ=ig;function KQ(e,t){return GQ(t,function(n){return e[n]})}var UQ=KQ,XQ=UQ,qQ=Ms;function YQ(e){return e==null?[]:XQ(e,qQ(e))}var QQ=YQ,ZQ=Xw,JQ=QQ;function eZ(e){return ZQ(JQ(e))}var tZ=eZ,nZ=VQ,rZ=tZ,oZ=Lr;function aZ(e){var t=oZ(e)?nZ:rZ;return t(e)}var iZ=aZ;const Am=hn(iZ);var sZ=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],qw=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,l=e.disabled,c=e.loadingIcon,u=e.checkedChildren,d=e.unCheckedChildren,m=e.onClick,g=e.onChange,h=e.onKeyDown,v=Ye(e,sZ),p=Vt(!1,{value:i,defaultValue:s}),b=Q(p,2),y=b[0],C=b[1];function $(E,I){var O=y;return l||(O=E,C(O),g==null||g(O,I)),O}function x(E){E.which===de.LEFT?$(!1,E):E.which===de.RIGHT&&$(!0,E),h==null||h(E);}function w(E){var I=$(!y,E);m==null||m(I,E);}var S=V(o,a,(n={},z(n,"".concat(o,"-checked"),y),z(n,"".concat(o,"-disabled"),l),n));return f__namespace.createElement("button",Ie({},v,{type:"button",role:"switch","aria-checked":y,disabled:l,className:S,ref:t,onKeyDown:x,onClick:w}),c,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)))});qw.displayName="Switch";const lZ=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:a,innerMaxMarginSM:i,handleSizeSM:s}=e,l=`${t}-inner`;return {[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:`${n}px`,[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${s+r*2}px - ${i*2}px)`,marginInlineEnd:`calc(100% - ${s+r*2}px + ${i*2}px)`},[`${l}-unchecked`]:{marginTop:-n,marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:(s-e.switchLoadingIconSize)/2,fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${s+r*2}px + ${i*2}px)`,marginInlineEnd:`calc(-100% + ${s+r*2}px - ${i*2}px)`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${s+r}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:e.marginXXS/2,marginInlineEnd:-e.marginXXS/2}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:-e.marginXXS/2,marginInlineEnd:e.marginXXS/2}}}}}}},cZ=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}}}},uZ=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}}:{}}}},dZ=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}}}}}},fZ=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return {[t]:Object.assign(Object.assign(Object.assign(Object.assign({},zt(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}}),Zo(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"}})}},mZ=Bt("Switch",e=>{const t=bt(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return [fZ(t),dZ(t),uZ(t),cZ(t),lZ(t)]},e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,a=t*n,i=r/2,s=2,l=a-s*2,c=i-s*2;return {trackHeight:a,trackHeightSM:i,trackMinWidth:l*2+s*4,trackMinWidthSM:c*2+s*2,trackPadding:s,handleBg:o,handleSize:l,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new Yt("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+s+s*2,innerMinMarginSM:c/2,innerMaxMarginSM:c+s+s*2}});var gZ=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 Yw=f__namespace.forwardRef((e,t)=>{const{prefixCls:n,size:r,disabled:o,loading:a,className:i,rootClassName:s,style:l}=e,c=gZ(e,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:u,direction:d,switch:m}=f__namespace.useContext(Je),g=f__namespace.useContext(Yr),h=(o??g)||a,v=u("switch",n),p=f__namespace.createElement("div",{className:`${v}-handle`},a&&f__namespace.createElement(rh,{className:`${v}-loading-icon`})),[b,y]=mZ(v),C=Xn(r),$=V(m==null?void 0:m.className,{[`${v}-small`]:C==="small",[`${v}-loading`]:a,[`${v}-rtl`]:d==="rtl"},i,s,y),x=Object.assign(Object.assign({},m==null?void 0:m.style),l);return b(f__namespace.createElement(zs,{component:"Switch"},f__namespace.createElement(qw,Object.assign({},c,{prefixCls:v,className:$,style:x,disabled:h,ref:t,loadingIcon:p}))))});Yw.__ANT_SWITCH=!0;const Qw=Yw;function Q0(e){const[t,n]=f.useState(null);return [f.useCallback((a,i,s)=>{const l=t??a,c=Math.min(l||0,a),u=Math.max(l||0,a),d=i.slice(c,u+1).map(h=>e(h)),m=d.some(h=>!s.has(h)),g=[];return d.forEach(h=>{m?(s.has(h)||g.push(h),s.add(h)):(s.delete(h),g.push(h));}),n(m?u:null),g},[t]),a=>{n(a);}]}const Oc=e=>{const t=new Map;return e.forEach((n,r)=>{t.set(n,r);}),t},hZ=e=>{const t=new Map;return e.forEach((n,r)=>{let{disabled:o,key:a}=n;o&&t.set(a,r);}),t};function vZ(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),l=Oc(n||[]);return r.forEach(c=>{l.has(c.key)?s[l.get(c.key)]=c:i.push(c);}),[i,s]},[r,n,t]);return [r,o,a]}const pZ=[];function Oa(e,t){const n=e.filter(r=>t.has(r));return e.length===n.length?e:n}function Z0(e){return Array.from(e).join(";")}function bZ(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:pZ;const[r,o]=f__namespace.useMemo(()=>[new Set(e.map(c=>c.key)),new Set(t.map(c=>c.key))],[e,t]),[a,i]=f__namespace.useState(()=>Oa(n,r)),[s,l]=f__namespace.useState(()=>Oa(n,o));return f__namespace.useEffect(()=>{i(Oa(n,r)),l(Oa(n,o));},[n]),f__namespace.useEffect(()=>{i(Oa(a,r)),l(Oa(s,o));},[Z0(r),Z0(o)]),[a,s,i,l]}var yZ={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 CZ=yZ;var SZ=function(t,n){return f__namespace.createElement(On,Ie({},t,{ref:n,icon:CZ}))};const J0=f__namespace.forwardRef(SZ);var $Z={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 wZ=$Z;var xZ=function(t,n){return f__namespace.createElement(On,Ie({},t,{ref:n,icon:wZ}))};const ey=f__namespace.forwardRef(xZ);var Ao={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40};const EZ={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 zm=function(e){_o(n,e);var t=To(n);function n(){var r;Cn(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)),z(He(r),"state",{goInputText:""}),z(He(r),"getValidValue",function(){var s=r.state.goInputText;return !s||Number.isNaN(s)?void 0:Number(s)}),z(He(r),"buildOptionText",function(s){return "".concat(s," ").concat(r.props.locale.items_per_page)}),z(He(r),"changeSize",function(s){r.props.changeSize(Number(s));}),z(He(r),"handleChange",function(s){r.setState({goInputText:s.target.value});}),z(He(r),"handleBlur",function(s){var l=r.props,c=l.goButton,u=l.quickGo,d=l.rootPrefixCls,m=r.state.goInputText;c||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()));}),z(He(r),"go",function(s){var l=r.state.goInputText;l!==""&&(s.keyCode===Ao.ENTER||s.type==="click")&&(r.setState({goInputText:""}),r.props.quickGo(r.getValidValue()));}),r}return Sn(n,[{key:"getPageSizeOptions",value:function(){var o=this.props,a=o.pageSize,i=o.pageSizeOptions;return i.some(function(s){return s.toString()===a.toString()})?i:i.concat([a.toString()]).sort(function(s,l){var c=Number.isNaN(Number(s))?0:Number(s),u=Number.isNaN(Number(l))?0:Number(l);return c-u})}},{key:"render",value:function(){var o=this,a=this.props,i=a.pageSize,s=a.locale,l=a.rootPrefixCls,c=a.changeSize,u=a.quickGo,d=a.goButton,m=a.selectComponentClass,g=a.buildOptionText,h=a.selectPrefixCls,v=a.disabled,p=this.state.goInputText,b="".concat(l,"-options"),y=m,C=null,$=null,x=null;if(!c&&!u)return null;var w=this.getPageSizeOptions();if(c&&y){var S=w.map(function(E,I){return f.createElement(y.Option,{key:I,value:E.toString()},(g||o.buildOptionText)(E))});C=f.createElement(y,{disabled:v,prefixCls:h,showSearch:!1,className:"".concat(b,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(i||w[0]).toString(),onChange:this.changeSize,getPopupContainer:function(I){return I.parentNode},"aria-label":s.page_size,defaultOpen:!1},S);}return u&&(d&&(x=typeof d=="boolean"?f.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:v,className:"".concat(b,"-quick-jumper-button")},s.jump_to_confirm):f.createElement("span",{onClick:this.go,onKeyUp:this.go},d)),$=f.createElement("div",{className:"".concat(b,"-quick-jumper")},s.jump_to,f.createElement("input",{disabled:v,type:"text",value:p,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":s.page}),s.page,x)),f.createElement("li",{className:"".concat(b)},C,$)}}]),n}(f.Component);z(zm,"defaultProps",{pageSizeOptions:["10","20","50","100"]});var Ai=function(t){var n,r=t.rootPrefixCls,o=t.page,a=t.active,i=t.className,s=t.showTitle,l=t.onClick,c=t.onKeyPress,u=t.itemRender,d="".concat(r,"-item"),m=V(d,"".concat(d,"-").concat(o),(n={},z(n,"".concat(d,"-active"),a),z(n,"".concat(d,"-disabled"),!o),z(n,t.className,i),n)),g=function(){l(o);},h=function(b){c(b,l,o);},v=u(o,"page",f.createElement("a",{rel:"nofollow"},o));return v?f.createElement("li",{title:s?o.toString():null,className:m,onClick:g,onKeyPress:h,tabIndex:0},v):null};function Dm(){}function ty(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}var IZ=function(t,n,r){return r};function po(e,t,n){var r=typeof e>"u"?t.pageSize:e;return Math.floor((n.total-1)/r)+1}var Zw=function(e){_o(n,e);var t=To(n);function n(r){var o;Cn(this,n),o=t.call(this,r),z(He(o),"paginationNode",f.createRef()),z(He(o),"getJumpPrevPage",function(){return Math.max(1,o.state.current-(o.props.showLessItems?3:5))}),z(He(o),"getJumpNextPage",function(){return Math.min(po(void 0,o.state,o.props),o.state.current+(o.props.showLessItems?3:5))}),z(He(o),"getItemIcon",function(c,u){var d=o.props.prefixCls,m=c||f.createElement("button",{type:"button","aria-label":u,className:"".concat(d,"-item-link")});return typeof c=="function"&&(m=f.createElement(c,U({},o.props))),m}),z(He(o),"isValid",function(c){var u=o.props.total;return ty(c)&&c!==o.state.current&&ty(u)&&u>0}),z(He(o),"shouldDisplayQuickJumper",function(){var c=o.props,u=c.showQuickJumper,d=c.total,m=o.state.pageSize;return d<=m?!1:u}),z(He(o),"handleKeyDown",function(c){(c.keyCode===Ao.ARROW_UP||c.keyCode===Ao.ARROW_DOWN)&&c.preventDefault();}),z(He(o),"handleKeyUp",function(c){var u=o.getValidValue(c),d=o.state.currentInputValue;u!==d&&o.setState({currentInputValue:u}),c.keyCode===Ao.ENTER?o.handleChange(u):c.keyCode===Ao.ARROW_UP?o.handleChange(u-1):c.keyCode===Ao.ARROW_DOWN&&o.handleChange(u+1);}),z(He(o),"handleBlur",function(c){var u=o.getValidValue(c);o.handleChange(u);}),z(He(o),"changePageSize",function(c){var u=o.state.current,d=po(c,o.state,o.props);u=u>d?d:u,d===0&&(u=o.state.current),typeof c=="number"&&("pageSize"in o.props||o.setState({pageSize:c}),"current"in o.props||o.setState({current:u,currentInputValue:u})),o.props.onShowSizeChange(u,c),"onChange"in o.props&&o.props.onChange&&o.props.onChange(u,c);}),z(He(o),"handleChange",function(c){var u=o.props,d=u.disabled,m=u.onChange,g=o.state,h=g.pageSize,v=g.current,p=g.currentInputValue;if(o.isValid(c)&&!d){var b=po(void 0,o.state,o.props),y=c;return c>b?y=b:c<1&&(y=1),"current"in o.props||o.setState({current:y}),y!==p&&o.setState({currentInputValue:y}),m(y,h),y}return v}),z(He(o),"prev",function(){o.hasPrev()&&o.handleChange(o.state.current-1);}),z(He(o),"next",function(){o.hasNext()&&o.handleChange(o.state.current+1);}),z(He(o),"jumpPrev",function(){o.handleChange(o.getJumpPrevPage());}),z(He(o),"jumpNext",function(){o.handleChange(o.getJumpNextPage());}),z(He(o),"hasPrev",function(){return o.state.current>1}),z(He(o),"hasNext",function(){return o.state.current<po(void 0,o.state,o.props)}),z(He(o),"runIfEnter",function(c,u){if(c.key==="Enter"||c.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);}}),z(He(o),"runIfEnterPrev",function(c){o.runIfEnter(c,o.prev);}),z(He(o),"runIfEnterNext",function(c){o.runIfEnter(c,o.next);}),z(He(o),"runIfEnterJumpPrev",function(c){o.runIfEnter(c,o.jumpPrev);}),z(He(o),"runIfEnterJumpNext",function(c){o.runIfEnter(c,o.jumpNext);}),z(He(o),"handleGoTO",function(c){(c.keyCode===Ao.ENTER||c.type==="click")&&o.handleChange(o.state.currentInputValue);}),z(He(o),"renderPrev",function(c){var u=o.props,d=u.prevIcon,m=u.itemRender,g=m(c,"prev",o.getItemIcon(d,"prev page")),h=!o.hasPrev();return f.isValidElement(g)?f.cloneElement(g,{disabled:h}):g}),z(He(o),"renderNext",function(c){var u=o.props,d=u.nextIcon,m=u.itemRender,g=m(c,"next",o.getItemIcon(d,"next page")),h=!o.hasNext();return f.isValidElement(g)?f.cloneElement(g,{disabled:h}):g});var a=r.onChange!==Dm,i="current"in r;i&&!a&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var s=r.defaultCurrent;"current"in r&&(s=r.current);var l=r.defaultPageSize;return "pageSize"in r&&(l=r.pageSize),s=Math.min(s,po(l,void 0,r)),o.state={current:s,currentInputValue:s,pageSize:l},o}return Sn(n,[{key:"componentDidUpdate",value:function(o,a){var i=this.props.prefixCls;if(a.current!==this.state.current&&this.paginationNode.current){var s=this.paginationNode.current.querySelector(".".concat(i,"-item-").concat(a.current));if(s&&document.activeElement===s){var l;s==null||(l=s.blur)===null||l===void 0||l.call(s);}}}},{key:"getValidValue",value:function(o){var a=o.target.value,i=po(void 0,this.state,this.props),s=this.state.currentInputValue,l;return a===""?l=a:Number.isNaN(Number(a))?l=s:a>=i?l=i:l=Number(a),l}},{key:"getShowSizeChanger",value:function(){var o=this.props,a=o.showSizeChanger,i=o.total,s=o.totalBoundaryShowSizeChanger;return typeof a<"u"?a:i>s}},{key:"render",value:function(){var o=this.props,a=o.prefixCls,i=o.className,s=o.style,l=o.disabled,c=o.hideOnSinglePage,u=o.total,d=o.locale,m=o.showQuickJumper,g=o.showLessItems,h=o.showTitle,v=o.showTotal,p=o.simple,b=o.itemRender,y=o.showPrevNextJumpers,C=o.jumpPrevIcon,$=o.jumpNextIcon,x=o.selectComponentClass,w=o.selectPrefixCls,S=o.pageSizeOptions,E=this.state,I=E.current,O=E.pageSize,R=E.currentInputValue;if(c===!0&&u<=O)return null;var P=po(void 0,this.state,this.props),k=[],L=null,A=null,T=null,M=null,_=null,D=m&&m.goButton,F=g?1:2,H=I-1>0?I-1:0,B=I+1<P?I+1:P,W=Qa(this.props,{aria:!0,data:!0}),K=v&&f.createElement("li",{className:"".concat(a,"-total-text")},v(u,[u===0?0:(I-1)*O+1,I*O>u?u:I*O]));if(p){D&&(typeof D=="boolean"?_=f.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},d.jump_to_confirm):_=f.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},D),_=f.createElement("li",{title:h?"".concat(d.jump_to).concat(I,"/").concat(P):null,className:"".concat(a,"-simple-pager")},_));var X=this.renderPrev(H);return f.createElement("ul",Ie({className:V(a,"".concat(a,"-simple"),z({},"".concat(a,"-disabled"),l),i),style:s,ref:this.paginationNode},W),K,X?f.createElement("li",{title:h?d.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:V("".concat(a,"-prev"),z({},"".concat(a,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},X):null,f.createElement("li",{title:h?"".concat(I,"/").concat(P):null,className:"".concat(a,"-simple-pager")},f.createElement("input",{type:"text",value:R,disabled:l,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),f.createElement("span",{className:"".concat(a,"-slash")},"/"),P),f.createElement("li",{title:h?d.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:V("".concat(a,"-next"),z({},"".concat(a,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(B)),f.createElement(zm,{disabled:l,locale:d,rootPrefixCls:a,selectComponentClass:x,selectPrefixCls:w,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:I,pageSize:O,pageSizeOptions:S,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:_}))}if(P<=3+F*2){var q={locale:d,rootPrefixCls:a,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:h,itemRender:b};P||k.push(f.createElement(Ai,Ie({},q,{key:"noPager",page:1,className:"".concat(a,"-item-disabled")})));for(var ne=1;ne<=P;ne+=1){var G=I===ne;k.push(f.createElement(Ai,Ie({},q,{key:ne,page:ne,active:G})));}}else {var ee=g?d.prev_3:d.prev_5,Y=g?d.next_3:d.next_5,ue=b(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(C,"prev page")),le=b(this.getJumpNextPage(),"jump-next",this.getItemIcon($,"next page"));y&&(L=ue?f.createElement("li",{title:h?ee:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:V("".concat(a,"-jump-prev"),z({},"".concat(a,"-jump-prev-custom-icon"),!!C))},ue):null,A=le?f.createElement("li",{title:h?Y:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:V("".concat(a,"-jump-next"),z({},"".concat(a,"-jump-next-custom-icon"),!!$))},le):null),M=f.createElement(Ai,{locale:d,last:!0,rootPrefixCls:a,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:P,page:P,active:!1,showTitle:h,itemRender:b}),T=f.createElement(Ai,{locale:d,rootPrefixCls:a,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:h,itemRender:b});var Z=Math.max(1,I-F),oe=Math.min(I+F,P);I-1<=F&&(oe=1+F*2),P-I<=F&&(Z=P-F*2);for(var fe=Z;fe<=oe;fe+=1){var J=I===fe;k.push(f.createElement(Ai,{locale:d,rootPrefixCls:a,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:fe,page:fe,active:J,showTitle:h,itemRender:b}));}I-1>=F*2&&I!==1+2&&(k[0]=f.cloneElement(k[0],{className:"".concat(a,"-item-after-jump-prev")}),k.unshift(L)),P-I>=F*2&&I!==P-2&&(k[k.length-1]=f.cloneElement(k[k.length-1],{className:"".concat(a,"-item-before-jump-next")}),k.push(A)),Z!==1&&k.unshift(T),oe!==P&&k.push(M);}var se=!this.hasPrev()||!P,me=!this.hasNext()||!P,re=this.renderPrev(H),ie=this.renderNext(B);return f.createElement("ul",Ie({className:V(a,i,z({},"".concat(a,"-disabled"),l)),style:s,ref:this.paginationNode},W),K,re?f.createElement("li",{title:h?d.prev_page:null,onClick:this.prev,tabIndex:se?null:0,onKeyPress:this.runIfEnterPrev,className:V("".concat(a,"-prev"),z({},"".concat(a,"-disabled"),se)),"aria-disabled":se},re):null,k,ie?f.createElement("li",{title:h?d.next_page:null,onClick:this.next,tabIndex:me?null:0,onKeyPress:this.runIfEnterNext,className:V("".concat(a,"-next"),z({},"".concat(a,"-disabled"),me)),"aria-disabled":me},ie):null,f.createElement(zm,{disabled:l,locale:d,rootPrefixCls:a,selectComponentClass:x,selectPrefixCls:w,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:I,pageSize:O,pageSizeOptions:S,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:D}))}}],[{key:"getDerivedStateFromProps",value:function(o,a){var i={};if("current"in o&&(i.current=o.current,o.current!==a.current&&(i.currentInputValue=i.current)),"pageSize"in o&&o.pageSize!==a.pageSize){var s=a.current,l=po(o.pageSize,a,o);s=s>l?l:s,"current"in o||(i.current=s,i.currentInputValue=s),i.pageSize=o.pageSize;}return i}}]),n}(f.Component);z(Zw,"defaultProps",{defaultCurrent:1,total:0,defaultPageSize:10,onChange:Dm,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Dm,locale:EZ,style:{},itemRender:IZ,totalBoundaryShowSizeChanger:50});const Jw=e=>f__namespace.createElement(Vs,Object.assign({},e,{showSearch:!0,size:"small"})),ex=e=>f__namespace.createElement(Vs,Object.assign({},e,{showSearch:!0,size:"middle"}));Jw.Option=Vs.Option;ex.Option=Vs.Option;const OZ=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"}}}}}},PZ=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({},gh(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},MZ=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"}}}}},RZ=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({},Hs(e)),{width:e.controlHeightLG*1.25,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},_Z=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}}}}},TZ=e=>{const{componentCls:t}=e;return {[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},zt(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"}}),_Z(e)),RZ(e)),MZ(e)),PZ(e)),OZ(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"}}},NZ=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}}}}},kZ=e=>{const{componentCls:t}=e;return {[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},Zo(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},Qo(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},Qo(e))}}}},LZ=Bt("Pagination",e=>{const t=bt(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"},hh(e),vh(e));return [TZ(t),kZ(t),e.wireframe&&NZ(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 AZ=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 zZ=e=>{const{prefixCls:t,selectPrefixCls:n,className:r,rootClassName:o,style:a,size:i,locale:s,selectComponentClass:l,responsive:c,showSizeChanger:u}=e,d=AZ(e,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:m}=Vw(c),{getPrefixCls:g,direction:h,pagination:v={}}=f__namespace.useContext(Je),p=g("pagination",t),[b,y]=LZ(p),C=u??v.showSizeChanger,$=f__namespace.useMemo(()=>{const P=f__namespace.createElement("span",{className:`${p}-item-ellipsis`},"•••"),k=f__namespace.createElement("button",{className:`${p}-item-link`,type:"button",tabIndex:-1},h==="rtl"?f__namespace.createElement(Za,null):f__namespace.createElement(xc,null)),L=f__namespace.createElement("button",{className:`${p}-item-link`,type:"button",tabIndex:-1},h==="rtl"?f__namespace.createElement(xc,null):f__namespace.createElement(Za,null)),A=f__namespace.createElement("a",{className:`${p}-item-link`},f__namespace.createElement("div",{className:`${p}-item-container`},h==="rtl"?f__namespace.createElement(ey,{className:`${p}-item-link-icon`}):f__namespace.createElement(J0,{className:`${p}-item-link-icon`}),P)),T=f__namespace.createElement("a",{className:`${p}-item-link`},f__namespace.createElement("div",{className:`${p}-item-container`},h==="rtl"?f__namespace.createElement(J0,{className:`${p}-item-link-icon`}):f__namespace.createElement(ey,{className:`${p}-item-link-icon`}),P));return {prevIcon:k,nextIcon:L,jumpPrevIcon:A,jumpNextIcon:T}},[h,p]),[x]=pi("Pagination",j1),w=Object.assign(Object.assign({},x),s),S=Xn(i),E=S==="small"||!!(m&&!S&&c),I=g("select",n),O=V({[`${p}-mini`]:E,[`${p}-rtl`]:h==="rtl"},v==null?void 0:v.className,r,o,y),R=Object.assign(Object.assign({},v==null?void 0:v.style),a);return b(f__namespace.createElement(Zw,Object.assign({},$,d,{style:R,prefixCls:p,selectPrefixCls:I,className:O,selectComponentClass:l||(E?Jw:ex),locale:w,showSizeChanger:C})))},DZ=zZ;var jZ={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 FZ=jZ;var BZ=function(t,n){return f__namespace.createElement(On,Ie({},t,{ref:n,icon:FZ}))};const HZ=f__namespace.forwardRef(BZ);var WZ=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 VZ={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},GZ=f__namespace.forwardRef((e,t)=>{const n=c=>{const{keyCode:u}=c;u===de.ENTER&&c.preventDefault();},r=c=>{const{keyCode:u}=c,{onClick:d}=e;u===de.ENTER&&d&&d();},{style:o,noStyle:a,disabled:i}=e,s=WZ(e,["style","noStyle","disabled"]);let l={};return a||(l=Object.assign({},VZ)),i&&(l.pointerEvents="none"),l=Object.assign(Object.assign({},l),o),f__namespace.createElement("div",Object.assign({role:"button",tabIndex:0,ref:t},s,{onKeyDown:n,onKeyUp:r,style:l}))}),KZ=GZ,UZ=e=>{const{renderedText:t,renderedEl:n,item:r,checked:o,disabled:a,prefixCls:i,onClick:s,onRemove:l,showRemove:c}=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]=pi("Transfer",so.Transfer),g={className:u,title:d},h=f__namespace.createElement("span",{className:`${i}-content-item-text`},n);return c?f__namespace.createElement("li",Object.assign({},g),h,f__namespace.createElement(KZ,{disabled:a||r.disabled,className:`${i}-content-item-remove`,"aria-label":m==null?void 0:m.remove,onClick:()=>{l==null||l(r);}},f__namespace.createElement(HZ,null))):(g.onClick=a||r.disabled?void 0:v=>s(r,v),f__namespace.createElement("li",Object.assign({},g),f__namespace.createElement(Iu,{className:`${i}-checkbox`,checked:o,disabled:a||r.disabled}),h))},XZ=f__namespace.memo(UZ),qZ=["handleFilter","handleClear","checkedKeys"],YZ=e=>Object.assign(Object.assign({},{simple:!0,showSizeChanger:!1,showLessItems:!1}),e),QZ=(e,t)=>{const{prefixCls:n,filteredRenderItems:r,selectedKeys:o,disabled:a,showRemove:i,pagination:s,onScroll:l,onItemSelect:c,onItemRemove:u}=e,[d,m]=f__namespace.useState(1),g=f__namespace.useMemo(()=>s?YZ(typeof s=="object"?s:{}):null,[s]),[h,v]=Vt(10,{value:g==null?void 0:g.pageSize});f__namespace.useEffect(()=>{if(g){const S=Math.ceil(r.length/h);m(Math.min(d,S));}},[r,g,h]);const p=(S,E)=>{c(S.key,!o.includes(S.key),E);},b=S=>{u==null||u([S.key]);},y=S=>{m(S);},C=(S,E)=>{m(S),v(E);},$=f__namespace.useMemo(()=>g?r.slice((d-1)*h,d*h):r,[d,r,g,h]);f__namespace.useImperativeHandle(t,()=>({items:$}));const x=g?f__namespace.createElement(DZ,{size:"small",disabled:a,simple:g.simple,pageSize:h,showLessItems:g.showLessItems,showSizeChanger:g.showSizeChanger,className:`${n}-pagination`,total:r.length,current:d,onChange:y,onShowSizeChange:C}):null,w=V(`${n}-content`,{[`${n}-content-show-remove`]:i});return f__namespace.createElement(f__namespace.Fragment,null,f__namespace.createElement("ul",{className:w,onScroll:l},($||[]).map(S=>{let{renderedEl:E,renderedText:I,item:O}=S;return f__namespace.createElement(XZ,{key:O.key,item:O,renderedText:I,renderedEl:E,prefixCls:n,showRemove:i,onClick:p,onRemove:b,checked:o.includes(O.key),disabled:a||O.disabled})})),x)},ZZ=f__namespace.forwardRef(QZ),JZ=e=>{const{placeholder:t="",value:n,prefixCls:r,disabled:o,onChange:a,handleClear:i}=e,s=f__namespace.useCallback(l=>{a==null||a(l),l.target.value===""&&(i==null||i());},[a]);return f__namespace.createElement(m$,{placeholder:t,className:r,value:n,onChange:s,disabled:o,allowClear:!0,prefix:f__namespace.createElement(Nh,null)})},tx=JZ,eJ=()=>null;function tJ(e){return !!(e&&!co(e)&&Object.prototype.toString.call(e)==="[object Object]")}function zi(e){return e.filter(t=>!t.disabled).map(t=>t.key)}const nJ=e=>e!==void 0,rJ=e=>{const{prefixCls:t,dataSource:n=[],titleText:r="",checkedKeys:o,disabled:a,showSearch:i=!1,style:s,searchPlaceholder:l,notFoundContent:c,selectAll:u,selectCurrent:d,selectInvert:m,removeAll:g,removeCurrent:h,showSelectAll:v=!0,showRemove:p,pagination:b,direction:y,itemsUnit:C,itemUnit:$,selectAllLabel:x,selectionsIcon:w,footer:S,renderList:E,onItemSelectAll:I,onItemRemove:O,handleFilter:R,handleClear:P,filterOption:k,render:L=eJ}=e,[A,T]=f.useState(""),M=f.useRef({}),_=J=>{T(J.target.value),R(J);},D=()=>{T(""),P();},F=(J,se)=>k?k(A,se,y):J.includes(A),H=J=>{let se=E?E(Object.assign(Object.assign({},J),{onItemSelect:(re,ie)=>J.onItemSelect(re,ie)})):null;const me=!!se;return me||(se=f.createElement(ZZ,Object.assign({ref:M},J))),{customize:me,bodyContent:se}},B=J=>{const se=L(J),me=tJ(se);return {item:J,renderedEl:me?se.label:se,renderedText:me?se.value:se}},W=f.useMemo(()=>Array.isArray(c)?c[y==="left"?0:1]:c,[c,y]),[K,X]=f.useMemo(()=>{const J=[],se=[];return n.forEach(me=>{const re=B(me);A&&!F(re.renderedText,me)||(J.push(me),se.push(re));}),[J,se]},[n,A]),q=f.useMemo(()=>{if(o.length===0)return "none";const J=Oc(o);return K.every(se=>J.has(se.key)||!!se.disabled)?"all":"part"},[o,K]),ne=f.useMemo(()=>{const J=i?f.createElement("div",{className:`${t}-body-search-wrapper`},f.createElement(tx,{prefixCls:`${t}-search`,onChange:_,handleClear:D,placeholder:l,value:A,disabled:a})):null,{customize:se,bodyContent:me}=H(Object.assign(Object.assign({},Ln(e,qZ)),{filteredItems:K,filteredRenderItems:X,selectedKeys:o}));let re;return se?re=f.createElement("div",{className:`${t}-body-customize-wrapper`},me):re=K.length?me:f.createElement("div",{className:`${t}-body-not-found`},W),f.createElement("div",{className:V(i?`${t}-body ${t}-body-with-search`:`${t}-body`)},J,re)},[i,t,l,A,a,o,K,X,W]),G=f.createElement(Iu,{disabled:n.length===0||a,checked:q==="all",indeterminate:q==="part",className:`${t}-checkbox`,onChange:()=>{I==null||I(K.filter(J=>!J.disabled).map(J=>{let{key:se}=J;return se}),q!=="all");}}),ee=(J,se)=>{if(x)return typeof x=="function"?x({selectedCount:J,totalCount:se}):x;const me=se>1?C:$;return f.createElement(f.Fragment,null,(J>0?`${J}/`:"")+se," ",me)},Y=S&&(S.length<2?S(e):S(e,{direction:y})),ue=V(t,{[`${t}-with-pagination`]:!!b,[`${t}-with-footer`]:!!Y}),le=Y?f.createElement("div",{className:`${t}-footer`},Y):null,Z=!p&&!b&&G;let oe;p?oe=[b?{key:"removeCurrent",label:h,onClick(){var J;const se=zi((((J=M.current)===null||J===void 0?void 0:J.items)||[]).map(me=>me.item));O==null||O(se);}}:null,{key:"removeAll",label:g,onClick(){O==null||O(zi(K));}}].filter(Boolean):oe=[{key:"selectAll",label:u,onClick(){const J=zi(K);I==null||I(J,J.length!==o.length);}},b?{key:"selectCurrent",label:d,onClick(){var J;const se=((J=M.current)===null||J===void 0?void 0:J.items)||[];I==null||I(zi(se.map(me=>me.item)),!0);}}:null,{key:"selectInvert",label:m,onClick(){var J;const se=zi(b?(((J=M.current)===null||J===void 0?void 0:J.items)||[]).map(ie=>ie.item):K),me=new Set(o),re=[];se.forEach(ie=>{me.has(ie)||re.push(ie);}),I==null||I(re,"replace");}}];const fe=f.createElement(tv,{className:`${t}-header-dropdown`,menu:{items:oe},disabled:a},nJ(w)?w:f.createElement(ch,null));return f.createElement("div",{className:ue,style:s},f.createElement("div",{className:`${t}-header`},v?f.createElement(f.Fragment,null,Z,fe):null,f.createElement("span",{className:`${t}-header-selected`},ee(o.length,K.length)),f.createElement("span",{className:`${t}-header-title`},r)),ne,le)},jm=rJ,oJ=e=>{const{disabled:t,moveToLeft:n,moveToRight:r,leftArrowText:o="",rightArrowText:a="",leftActive:i,rightActive:s,className:l,style:c,direction:u,oneWay:d}=e;return f__namespace.createElement("div",{className:l,style:c},f__namespace.createElement(qt,{type:"primary",size:"small",disabled:t||!s,onClick:r,icon:u!=="rtl"?f__namespace.createElement(Za,null):f__namespace.createElement(xc,null)},a),!d&&f__namespace.createElement(qt,{type:"primary",size:"small",disabled:t||!i,onClick:n,icon:u!=="rtl"?f__namespace.createElement(xc,null):f__namespace.createElement(Za,null)},o))},nx=oJ,aJ=e=>{const{antCls:t,componentCls:n,listHeight:r,controlHeightLG:o,marginXXS:a,margin:i}=e,s=`${t}-table`,l=`${t}-input`;return {[`${n}-customize-list`]:{[`${n}-list`]:{flex:"1 1 50%",width:"auto",height:"auto",minHeight:r},[`${s}-wrapper`]:{[`${s}-small`]:{border:0,borderRadius:0,[`${s}-selection-column`]:{width:o,minWidth:o}},[`${s}-pagination${s}-pagination`]:{margin:`${i}px 0 ${a}px`}},[`${l}[disabled]`]:{backgroundColor:"transparent"}}}},ny=(e,t)=>{const{componentCls:n,colorBorder:r}=e;return {[`${n}-list`]:{borderColor:t,"&-search:not([disabled])":{borderColor:r}}}},iJ=e=>{const{componentCls:t}=e;return {[`${t}-status-error`]:Object.assign({},ny(e,e.colorError)),[`${t}-status-warning`]:Object.assign({},ny(e,e.colorWarning))}},sJ=e=>{const{componentCls:t,colorBorder:n,colorSplit:r,lineWidth:o,itemHeight:a,headerHeight:i,transferHeaderVerticalPadding:s,itemPaddingBlock:l,controlItemBgActive:c,colorTextDisabled:u,listHeight:d,listWidth:m,listWidthLG:g,fontSizeIcon:h,marginXS:v,paddingSM:p,lineType:b,antCls:y,iconCls:C,motionDurationSlow:$,controlItemBgHover:x,borderRadiusLG:w,colorBgContainer:S,colorText:E,controlItemBgActiveHover:I}=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":{[`${C}-search`]:{color:u}},"&-header":{display:"flex",flex:"none",alignItems:"center",height:i,padding:`${s-o}px ${p}px ${s}px`,color:E,background:S,borderBottom:`${o}px ${b} ${r}`,borderRadius:`${w}px ${w}px 0 0`,"> *:not(:last-child)":{marginInlineEnd:4},"> *":{flex:"none"},"&-title":Object.assign(Object.assign({},Yo),{flex:"auto",textAlign:"end"}),"&-dropdown":Object.assign(Object.assign({},aa()),{fontSize:h,transform:"translateY(10%)",cursor:"pointer","&[disabled]":{cursor:"not-allowed"}})},"&-body":{display:"flex",flex:"auto",flexDirection:"column",fontSize:e.fontSize,minHeight:0,"&-search-wrapper":{position:"relative",flex:"none",padding:p}},"&-content":{flex:"auto",margin:0,padding:0,overflow:"auto",listStyle:"none","&-item":{display:"flex",alignItems:"center",minHeight:a,padding:`${l}px ${p}px`,transition:`all ${$}`,"> *:not(:last-child)":{marginInlineEnd:v},"> *":{flex:"none"},"&-text":Object.assign(Object.assign({},Yo),{flex:"auto"}),"&-remove":{position:"relative",color:n,cursor:"pointer",transition:`all ${$}`,"&:hover":{color:e.colorLinkHover},"&::after":{position:"absolute",inset:`-${l}px -50%`,content:'""'}},[`&:not(${t}-list-content-item-disabled)`]:{"&:hover":{backgroundColor:x,cursor:"pointer"},[`&${t}-list-content-item-checked:hover`]:{backgroundColor:I}},"&-checked":{backgroundColor:c},"&-disabled":{color:u,cursor:"not-allowed"}},[`&-show-remove ${t}-list-content-item:not(${t}-list-content-item-disabled):hover`]:{background:"transparent",cursor:"default"}},"&-pagination":{padding:`${e.paddingXS}px 0`,textAlign:"end",borderTop:`${o}px ${b} ${r}`,[`${y}-pagination-options`]:{paddingInlineEnd:e.paddingXS}},"&-body-not-found":{flex:"none",width:"100%",margin:"auto 0",color:u,textAlign:"center"},"&-footer":{borderTop:`${o}px ${b} ${r}`},"&-checkbox":{lineHeight:1}}},lJ=e=>{const{antCls:t,iconCls:n,componentCls:r,headerHeight:o,marginXS:a,marginXXS:i,fontSizeIcon:s,fontSize:l,lineHeight:c,colorBgContainerDisabled:u}=e;return {[r]:Object.assign(Object.assign({},zt(e)),{position:"relative",display:"flex",alignItems:"stretch",[`${r}-disabled`]:{[`${r}-list`]:{background:u}},[`${r}-list`]:sJ(e),[`${r}-operation`]:{display:"flex",flex:"none",flexDirection:"column",alignSelf:"center",margin:`0 ${a}px`,verticalAlign:"middle",[`${t}-btn`]:{display:"block","&:first-child":{marginBottom:i},[n]:{fontSize:s}}},[`${t}-empty-image`]:{maxHeight:o/2-Math.round(l*c)}})}},cJ=e=>{const{componentCls:t}=e;return {[`${t}-rtl`]:{direction:"rtl"}}},uJ=Bt("Transfer",e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeightLG:o}=e,a=Math.round(t*n),i=bt(e,{transferHeaderVerticalPadding:Math.ceil((o-r-a)/2)});return [lJ(i),aJ(i),iJ(i),cJ(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}}),rd=e=>{const{dataSource:t,targetKeys:n=[],selectedKeys:r,selectAllLabels:o=[],operations:a=[],style:i={},listStyle:s={},locale:l={},titles:c,disabled:u,showSearch:d=!1,operationStyle:m,showSelectAll:g,oneWay:h,pagination:v,status:p,prefixCls:b,className:y,rootClassName:C,selectionsIcon:$,filterOption:x,render:w,footer:S,children:E,rowKey:I,onScroll:O,onChange:R,onSearch:P,onSelectChange:k}=e,{getPrefixCls:L,renderEmpty:A,direction:T,transfer:M}=f.useContext(Je),_=L("transfer",b),[D,F]=uJ(_),[H,B,W]=vZ(t,I,n),[K,X,q,ne]=bZ(B,W,r),[G,ee]=Q0(ae=>ae.key),[Y,ue]=Q0(ae=>ae.key),le=f.useCallback((ae,te)=>{if(ae==="left"){const he=typeof te=="function"?te(K||[]):te;q(he);}else {const he=typeof te=="function"?te(X||[]):te;ne(he);}},[K,X]),Z=(ae,te)=>{(ae==="left"?ee:ue)(te);},oe=f.useCallback((ae,te)=>{ae==="left"?k==null||k(te,X):k==null||k(K,te);},[K,X]),fe=ae=>{var te;return (te=c??ae.titles)!==null&&te!==void 0?te:[]},J=ae=>{O==null||O("left",ae);},se=ae=>{O==null||O("right",ae);},me=ae=>{const te=ae==="right"?K:X,he=hZ(H),ye=te.filter(Ct=>!he.has(Ct)),$e=Oc(ye),Ue=ae==="right"?ye.concat(n):n.filter(Ct=>!$e.has(Ct)),qe=ae==="right"?"left":"right";le(qe,[]),oe(qe,[]),R==null||R(Ue,ae,ye);},re=()=>{me("left"),Z("left",null);},ie=()=>{me("right"),Z("right",null);},ge=(ae,te,he)=>{le(ae,ye=>{let $e=[];if(he==="replace")$e=te;else if(he)$e=Array.from(new Set([].concat(Re(ye),Re(te))));else {const Ue=Oc(te);$e=ye.filter(qe=>!Ue.has(qe));}return oe(ae,$e),$e}),Z(ae,null);},be=(ae,te)=>{ge("left",ae,te);},Te=(ae,te)=>{ge("right",ae,te);},Ae=ae=>P==null?void 0:P("left",ae.target.value),Ve=ae=>P==null?void 0:P("right",ae.target.value),Oe=()=>P==null?void 0:P("left",""),je=()=>P==null?void 0:P("right",""),Qe=(ae,te,he,ye,$e)=>{te.has(he)&&(te.delete(he),Z(ae,null)),ye&&(te.add(he),Z(ae,$e));},Be=(ae,te,he,ye)=>{(ae==="left"?G:Y)(ye,te,he);},Pe=(ae,te,he,ye)=>{const $e=ae==="left",Ue=Re($e?K:X),qe=new Set(Ue),Ct=Re($e?B:W).filter(yt=>!yt.disabled),ht=Ct.findIndex(yt=>yt.key===te);ye&&Ue.length>0?Be(ae,Ct,qe,ht):Qe(ae,qe,te,he,ht);const Rt=Array.from(qe);oe(ae,Rt),e.selectedKeys||le(ae,Rt);},we=(ae,te,he)=>{Pe("left",ae,te,he==null?void 0:he.shiftKey);},Ge=(ae,te,he)=>{Pe("right",ae,te,he==null?void 0:he.shiftKey);},nt=ae=>{le("right",[]),R==null||R(n.filter(te=>!ae.includes(te)),"left",Re(ae));},ft=ae=>typeof s=="function"?s({direction:ae}):s||{},et=f.useContext(br),{hasFeedback:Xe,status:gt}=et,pt=ae=>Object.assign(Object.assign(Object.assign({},ae),{notFoundContent:(A==null?void 0:A("Transfer"))||f.createElement(c$,{componentName:"Transfer"})}),l),ut=Bs(gt,p),dt=!E&&v,$t=X.length>0,Me=K.length>0,_e=V(_,{[`${_}-disabled`]:u,[`${_}-customize-list`]:!!E,[`${_}-rtl`]:T==="rtl"},Tr(_,ut,Xe),M==null?void 0:M.className,y,C,F),[Ne]=pi("Transfer",so.Transfer),ve=pt(Ne),[De,xe]=fe(ve);return D(f.createElement("div",{className:_e,style:Object.assign(Object.assign({},M==null?void 0:M.style),i)},f.createElement(jm,Object.assign({prefixCls:`${_}-list`,titleText:De,dataSource:B,filterOption:x,style:ft("left"),checkedKeys:K,handleFilter:Ae,handleClear:Oe,onItemSelect:we,onItemSelectAll:be,render:w,showSearch:d,renderList:E,footer:S,onScroll:J,disabled:u,direction:T==="rtl"?"right":"left",showSelectAll:g,selectAllLabel:o[0],pagination:dt,selectionsIcon:$},ve)),f.createElement(nx,{className:`${_}-operation`,rightActive:Me,rightArrowText:a[0],moveToRight:ie,leftActive:$t,leftArrowText:a[1],moveToLeft:re,style:m,disabled:u,direction:T,oneWay:h}),f.createElement(jm,Object.assign({prefixCls:`${_}-list`,titleText:xe,dataSource:W,filterOption:x,style:ft("right"),checkedKeys:X,handleFilter:Ve,handleClear:je,onItemSelect:Ge,onItemSelectAll:Te,onItemRemove:nt,render:w,showSearch:d,renderList:E,footer:S,onScroll:se,disabled:u,direction:T==="rtl"?"left":"right",showSelectAll:g,selectAllLabel:o[1],showRemove:h,pagination:dt,selectionsIcon:$},ve))))};rd.List=jm;rd.Search=tx;rd.Operation=nx;const dJ=rd;function rx(e){return `https://space.bilibili.com/${Ku()}/favlist?fid=${e}`}const za=class za{constructor(){Nt(this,"useShuffle");Nt(this,"allFolderServices",[]);Nt(this,"folderServices",[]);Nt(this,"bufferQueue",[]);Nt(this,"total",0);Nt(this,"returnedItems",[]);Nt(this,"foldersLoaded",!1);this.useShuffle=Pt.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 j(gJ,{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,za.PAGE_SIZE);return this.bufferQueue=this.bufferQueue.slice(za.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<za.PAGE_SIZE){for(;this.folderHasMore&&this.bufferQueue.length<100;){const n=this.folderServices.filter(a=>a.hasMore),r=Am(n).slice(0,5),o=(await Promise.all(r.map(async a=>await a.loadMore()||[]))).flat();this.bufferQueue=[...this.bufferQueue,...o];}this.bufferQueue=Am(this.bufferQueue);}return t()}async getAllFolders(){const t=await ox();this.foldersLoaded=!0,this.allFolderServices=t.map(n=>new fJ(n)),this.folderServices=this.allFolderServices.filter(n=>!Pt.excludeFavFolderIds.includes(n.entry.id.toString())),this.total=this.folderServices.reduce((n,r)=>n+r.entry.media_count,0);}};Nt(za,"PAGE_SIZE",20);let Pc=za;async function ox(){return (await vn.get("/x/v3/fav/folder/created/list-all",{params:{up_mid:Ku()}})).data.data.list}class fJ{constructor(t){Nt(this,"entry");Nt(this,"hasMore");Nt(this,"info");Nt(this,"page",0);this.entry=t,this.hasMore=t.media_count>0;}async loadMore(){if(!this.hasMore)return;const n=(await vn.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(!Qr(n)){wt(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 mJ={name:"1uu99zq",styles:"margin-left:15px;cursor:pointer;font-size:12px"};function gJ({allFavFolderServices:e}){const{excludeFavFolderIds:t,shuffleForFav:n}=In(),r=rv(),[o,a]=f.useState(!1),i=rt((u,d,m)=>{a(!0),yr({excludeFavFolderIds:u});}),s=f.useMemo(()=>e.filter(u=>!t.includes(u.entry.id.toString())).length,[e,t]),l=f.useMemo(()=>e.filter(u=>!t.includes(u.entry.id.toString())).reduce((u,d)=>u+d.entry.media_count,0),[e,t]),c=rt(u=>{u?a(!1):o&&(r==null||r());});return pe(_t,{children:[j(Mu,{trigger:"click",placement:"bottom",onOpenChange:c,getPopupContainer:u=>u.parentElement||document.body,content:j(_t,{children:j(dJ,{dataSource:e,rowKey:u=>u.entry.id.toString(),titles:["收藏夹","忽略"],targetKeys:t,onChange:i,render:u=>u.entry.title,oneWay:!0,style:{marginBottom:10}})}),children:pe(yo,{color:"success",css:mJ,children:["收藏夹(",s,") 收藏(",l,")"]})}),j(Qw,{style:{marginLeft:15},checkedChildren:"随机顺序",unCheckedChildren:"默认顺序",checked:n,onChange:u=>{yr({shuffleForFav:u}),setTimeout(()=>{r==null||r();});}})]})}var hJ=ug,vJ=Uh,pJ=1,bJ=2;function yJ(e,t,n,r){var o=n.length,a=o,i=!r;if(e==null)return !a;for(e=Object(e);o--;){var s=n[o];if(i&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return !1}for(;++o<a;){s=n[o];var l=s[0],c=e[l],u=s[1];if(i&&s[2]){if(c===void 0&&!(l in e))return !1}else {var d=new hJ;if(r)var m=r(c,u,l,e,t,d);if(!(m===void 0?vJ(u,c,pJ|bJ,r,d):m))return !1}}return !0}var CJ=yJ,SJ=qr;function $J(e){return e===e&&!SJ(e)}var ax=$J,wJ=ax,xJ=Ms;function EJ(e){for(var t=xJ(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,wJ(o)];}return t}var IJ=EJ;function OJ(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var ix=OJ,PJ=CJ,MJ=IJ,RJ=ix;function _J(e){var t=MJ(e);return t.length==1&&t[0][2]?RJ(t[0][0],t[0][1]):function(n){return n===e||PJ(n,e,t)}}var TJ=_J,NJ=ou;function kJ(e,t,n){var r=e==null?void 0:NJ(e,t);return r===void 0?n:r}var LJ=kJ,AJ=Uh,zJ=LJ,DJ=v1,jJ=xg,FJ=ax,BJ=ix,HJ=hi,WJ=1,VJ=2;function GJ(e,t){return jJ(e)&&FJ(t)?BJ(HJ(e),t):function(n){var r=zJ(n,e);return r===void 0&&r===t?DJ(n,e):AJ(t,r,WJ|VJ)}}var KJ=GJ;function UJ(e){return function(t){return t==null?void 0:t[e]}}var XJ=UJ,qJ=ou;function YJ(e){return function(t){return qJ(t,e)}}var QJ=YJ,ZJ=XJ,JJ=QJ,eee=xg,tee=hi;function nee(e){return eee(e)?ZJ(tee(e)):JJ(e)}var ree=nee,oee=TJ,aee=KJ,iee=d1,see=Lr,lee=ree;function cee(e){return typeof e=="function"?e:e==null?iee:typeof e=="object"?see(e)?aee(e[0],e[1]):oee(e):lee(e)}var uee=cee;function dee(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 fee=dee;function mee(e){return e!==e}var gee=mee;function hee(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return -1}var vee=hee,pee=fee,bee=gee,yee=vee;function Cee(e,t,n){return t===t?yee(e,t,n):pee(e,bee,n)}var See=Cee,$ee=See;function wee(e,t){var n=e==null?0:e.length;return !!n&&$ee(e,t,0)>-1}var xee=wee;function Eee(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 Iee=Eee;function Oee(){}var Pee=Oee,uf=e1,Mee=Pee,Ree=Kh,_ee=1/0,Tee=uf&&1/Ree(new uf([,-0]))[1]==_ee?function(e){return new uf(e)}:Mee,Nee=Tee,kee=q$,Lee=xee,Aee=Iee,zee=Y$,Dee=Nee,jee=Kh,Fee=200;function Bee(e,t,n){var r=-1,o=Lee,a=e.length,i=!0,s=[],l=s;if(n)i=!1,o=Aee;else if(a>=Fee){var c=t?null:Dee(e);if(c)return jee(c);i=!1,o=zee,l=new kee;}else l=t?[]:s;e:for(;++r<a;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,i&&d===d){for(var m=l.length;m--;)if(l[m]===d)continue e;t&&l.push(d),s.push(u);}else o(l,d,n)||(l!==s&&l.push(d),s.push(u));}return s}var Hee=Bee,Wee=uee,Vee=Hee;function Gee(e,t){return e&&e.length?Vee(e,Wee(t)):[]}var Kee=Gee;const od=hn(Kee),Ac=class Ac{constructor(){Nt(this,"page",0);Nt(this,"hasMore",!0);}loadMore(){return this.getRecommendTimes(2)}async getRecommend(t=void 0){var i,s;const n=++this.page,o=(await vn.get("/x/web-interface/wbi/index/top/rcmd",{signal:t,params:{fresh_type:3,version:1,ps:Ac.PAGE_SIZE,fresh_idx:n,fresh_idx_1h:n,homepage_ver:1}})).data;return (i=o.data)!=null&&i.item||wt(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=od(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"}))}};Nt(Ac,"PAGE_SIZE",14);let vs=Ac;var Uee=i1,Xee=1,qee=4;function Yee(e){return Uee(e,Xee|qee)}var Qee=Yee;const Zee=hn(Qee),Ba=ar({updatedAt:0,bvidSet:Jh()});function Jee(e){return sr(Ba).bvidSet.has(e)}Xs()&&setTimeout(()=>{new ps().loadMore();});const ro=class ro{constructor(t){Nt(this,"loaded",!1);Nt(this,"page",-1);Nt(this,"hasMore",!0);Nt(this,"count",0);Nt(this,"items",[]);Nt(this,"keepOrder");this.keepOrder=t??!1;}async fetch(){const n=(await vn.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=Jh(r.map(i=>i.bvid)));const o=sa().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(l=>({item:l,index:ro.LAST_ITEMS.findIndex(c=>c.bvid===l.bvid)})).sort((l,c)=>l.index-c.index).map(l=>l.item),r=[...i,...s]):Pt.shuffleForWatchLater&&(r=[...i,...Am(s)]);}this.count=n.data.count,this.items=r,ro.LAST_ITEMS=r;}get usageInfo(){if(!this.loaded)return;const{count:t}=this;return j(ete,{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=Zee(this.items.slice(t,n));return this.hasMore=n<=this.count-1,r}};Nt(ro,"PAGE_SIZE",15),Nt(ro,"LAST_ITEMS",[]);let ps=ro;function ete({count:e}){const t=e<=90?"success":e<100?"warning":"error",n=`${t!=="success"?"快满了~ ":""}已使用 ${e} / 100`,{shuffleForWatchLater:r}=In(),o=rv();return pe(_t,{children:[pe(yo,{color:t,style:{marginLeft:20,marginRight:0,marginTop:1,cursor:"pointer"},title:n,onClick:()=>{wt(`稍后再看: ${n}`);},children:[e," / 100"]}),j(Qw,{style:{marginLeft:15},checkedChildren:"随机顺序",unCheckedChildren:"添加顺序",checked:r,onChange:a=>{yr({shuffleForWatchLater:a}),setTimeout(()=>{o==null||o();});}})]})}const nv=f.createContext(void 0);function rv(){return f.useContext(nv)}function sx({debug:e,recreateService:t,fetcher:n,preAction:r,postAction:o,onScrollToTop:a,setUpperRefreshing:i}){const s=$q(),l=kQ(()=>({})),[c,u]=f.useState(!0),[d,m]=f.useState([]),[g,h]=f.useState(()=>new vs),[v,p]=f.useState(()=>new Fm(Mr.upMid)),[b,y]=f.useState(()=>new ps),[C,$]=f.useState(()=>new Pc),[x,w]=f.useState(!1),[S,E,I]=J$(()=>Date.now()),[O,R]=f.useState(s),[P,k]=f.useState(()=>new AbortController),[L,A]=f.useState(!1),[T,M]=f.useState(void 0),_=rt(async(D=!1,F)=>{var se;const H=performance.now();if(x)if(s===O){e("refresh(): [start] [refreshing] prevent same tab(%s) refresh()",s);return}else e("refresh(): [start] [refreshing] switchTab %s -> %s, abort existing",O,s),P.abort();else e("refresh(): [start] tab = %s",s);await(a==null?void 0:a());const B=me=>{w(me),i==null||i(me);};B(!0),E(Date.now()),R(s),m([]),M(void 0),u(!0),await(r==null?void 0:r());let W=[],K;const X=!!(D&&((se=l.current[s])!=null&&se.length)),q=!!(X&&(F0[s].swr||s==="fav"));A(q);const ne=X&&(q||s==="fav"),G=async()=>{try{W=await n(fe);}catch(me){K=me;}},ee=t?new vs:g;t&&h(ee);let Y=v;s==="dynamic-feed"&&(Y=new Fm(Mr.upMid),p(Y));let ue=b;s==="watchlater"&&(ue=new ps(F==null?void 0:F.watchlaterKeepOrder),y(ue));let le=C;s==="fav"&&(X?le.restore():(le=new Pc,$(le)));const Z=new AbortController,oe=Z.signal;k(Z);const fe={tab:s,pcRecService:ee,dynamicFeedService:Y,watchLaterService:ue,favService:le,abortSignal:oe};if(e("refresh(): shouldReuse=%s swr=%s",X,q),X?(W=l.current[s]||[],m(W),ne&&await G()):(l.current[s]=[],await G()),oe.aborted){e("refresh(): [legacy] skip setItems/err for aborted, legacy tab = %s",s);return}if(B(!1),K){console.error(K),M(K);return}m(W),F0[s].swr?l.current[s]=W.slice(0,30):l.current[s]=W,s==="dynamic-feed"&&u(Y.hasMore),s==="watchlater"&&u(ue.hasMore),s==="fav"&&u(le.hasMore),await(o==null?void 0:o());const J=performance.now()-H;e("refresh(): [success] cost %s ms",J.toFixed(0));});return {items:d,itemsCache:l,setItems:m,error:T,refreshedAt:S,setRefreshedAt:E,getRefreshedAt:I,refreshing:x,setRefreshing:w,refreshFor:O,setRefreshFor:R,refreshAbortController:P,setRefreshAbortController:k,hasMore:c,setHasMore:u,swr:L,setSwr:A,pcRecService:g,dynamicFeedService:v,watchLaterService:b,favService:C,setPcRecService:h,setDynamicFeedService:p,setWatchLaterService:y,setFavService:$,refresh:_}}async function tte(){const t=(await vn.get("/x/polymer/web-dynamic/v1/portal")).data;return (t==null?void 0:t.data.up_list)||[]}class Fm{constructor(t){Nt(this,"offset","");Nt(this,"page",0);Nt(this,"hasMore",!0);Nt(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 vn.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 j(ote,{})}}Nt(Fm,"PAGE_SIZE",15);const Mr=ar({upMid:void 0,upName:void 0,upList:[],upListUpdatedAt:0});setTimeout(()=>{Mr.upList.length||requestIdleCallback(()=>{lx();});},Js("5s"));async function lx(e=!1){if(!e&&Mr.upList.length&&Mr.upListUpdatedAt&&Mr.upListUpdatedAt-Date.now()<Js("5min"))return;const n=await tte();Mr.upList=n,Mr.upListUpdatedAt=Date.now();}function cx(e){if(Object.assign(Mr,e),e.upMid){const t=Mr.upList.find(n=>n.mid===e.upMid);t&&(t.has_update=!1);}}var nte={name:"dhit8z",styles:"margin-left:15px"},rte={name:"1mkc8b8",styles:"display:block;max-width:130px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden"};function ote(){const e=rv(),{upName:t,upList:n}=sr(Mr);Qs(()=>{lx();});const r=rt(async i=>{cx(i),await pr(100),e==null||e();}),o=rt(()=>{r({upMid:void 0,upName:void 0});}),a=f.useMemo(()=>{const i={key:"all",icon:j(Y0,{size:"small",children:"全"}),label:"全部",onClick:o},s=n.map(l=>{let c=j(Y0,{size:"small",src:l.face});return l.has_update&&(c=j(SQ,{dot:!0,children:c})),{key:l.mid,icon:c,label:j("span",{title:l.uname,css:rte,children:l.uname}),onClick(){r({upMid:l.mid,upName:l.uname});}}});return [i,...s]},[n,n.map(i=>!!i.has_update)]);return j("div",{css:nte,children:pe(Fs,{children:[j(tv,{placement:"bottomLeft",menu:{items:a,style:{maxHeight:"50vh",overflowY:"scroll"}},children:j(qt,{children:t?`UP: ${t}`:"全部"})}),!!t&&pe(qt,{onClick:o,css:[nd,"",""],children:[j(At,{name:"Return",size:14,style:{marginRight:5}}),"清除"]})]})})}const df={removeFav:ate,addFav:lte,getVideoFavState:ite};async function ate(e,t){const n=new URLSearchParams({resources:t,media_id:e.toString(),platform:"web",csrf:wi()}),o=(await vn.post("/x/v3/fav/resource/batch-del",n)).data,a=Qr(o);return a||wt(o.message||z$),a}async function ite(e){if(!Xs())return;const r=(await vn.get("/x/v3/fav/folder/created/list-all",{params:{up_mid:Ku(),type:2,rid:e}})).data.data.list.filter(i=>i.fav_state>0),o=r.map(i=>i.title),a=r.map(i=>rx(i.id));return {favFolders:r,favFolderNames:o,favFolderUrls:a}}async function ste({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:wi()}),a=(await vn.post("/x/v3/fav/resource/deal",r)).data,i=Qr(a);return i||wt((a==null?void 0:a.message)||"fav deal api fail"),i}let ff=0,Bm="";async function lte(e){if(!ff||!Bm){const t=await ox();ff=t[0].id,Bm=t[0].title;}return await ste({avid:e,add_media_ids:ff.toString()})}async function ux(e,t){const n=Ku(),r=wi(),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:cte()}),csrf:r}),i=(await vn.post("/x/relation/modify",o)).data,s=Qr(i);return s||wt(i.message||"未知错误"),s}function cte(){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 ute=fx("follow"),dte=fx("remove"),dx={add:ute,remove:dte},Hm=Jh();function fte(e){const t=sr(Hm);return e&&t.has(e)}function fx(e){const t=e==="follow"?5:6;return async function(r){const o=await ux(r,t);return o&&(e==="follow"?Hm.add(r):e==="remove"&&Hm.delete(r)),o}}const mte=mx("follow"),gte=mx("unfollow"),hte={follow:mte,unfollow:gte};function mx(e){const t=e==="follow"?1:2;return async function(r){return await ux(r,t)}}const vte="_bili-video-card_mnvtu_1",pte="_preview-card-wrapper_mnvtu_4",bte="_preview-card-inner_mnvtu_17",yte="_watch-later_mnvtu_21",Cte="_badge_mnvtu_24",Ste="_recommend-reason_mnvtu_33",$te="_bangumi-desc_mnvtu_48",wte="_btn-dislike_mnvtu_51",xte="_btn-dislike-icon_mnvtu_66",Ete="_btn-dislike-tip_mnvtu_73",Ite="_disliked-wrapper_mnvtu_88",Ote="_dislike-content-cover_mnvtu_102",Pte="_dislike-content-cover-inner_mnvtu_108",Mte="_dislike-icon_mnvtu_119",Rte="_dislike-reason_mnvtu_122",_te="_dislike-desc_mnvtu_126",Tte="_dislike-content-action_mnvtu_130",Nte="_skeleton-active_mnvtu_147",kte="_ant-skeleton-loading_mnvtu_1",Xt={biliVideoCard:vte,previewCardWrapper:pte,previewCardInner:bte,watchLater:yte,badge:Cte,recommendReason:Ste,bangumiDesc:$te,btnDislike:wte,btnDislikeIcon:xte,btnDislikeTip:Ete,dislikedWrapper:Ite,dislikeContentCover:Ote,dislikeContentCoverInner:Pte,dislikeIcon:Mte,dislikeReason:Rte,dislikeDesc:_te,dislikeContentAction:Tte,skeletonActive:Nte,antSkeletonLoading:kte};function Lte(...e){for(const t of e)if(!isNaN(t))return t;return 0}function Ate({className:e,videoDuration:t,pvideo:n,mouseEnterRelativeX:r,previewAnimationProgress:o}){const a=f.useRef(null),i=ZU(a),[s,l]=f.useState(()=>({width:0,height:0}));Qs(()=>{var m;const d=(m=a.current)==null?void 0:m.getBoundingClientRect();d&&l({width:d.width,height:d.height});});let c=0;if(typeof o=="number")c=o;else {const d=Lte(i.elementX,r||0);s.width&&d&&!isNaN(d)&&(c=d/s.width,c<0&&(c=0),c>1&&(c=1));}const u={videoDuration:t,pvideo:n,elWidth:s.width,elHeight:s.height,progress:c};return j("div",{ref:a,className:V(Xt.previewCardWrapper,e),children:!!(n&&s.width&&s.height&&c)&&j(zte,{...u})})}function zte({videoDuration:e,pvideo:t,elWidth:n,elHeight:r,progress:o}){var x;const a=Math.floor((e||0)*o);let i=f.useMemo(()=>{const w=(t==null?void 0:t.index)||[];let S=jte(w,a);return S!==-1?S:a>w[w.length-1]?(S=Math.floor(w.length*o)-1,S<0&&(S=0),S):0},[t,a]);const{img_x_len:s,img_y_len:l,img_x_size:c,img_y_size:u}=t,d=l*s;i=i+1;const m=Math.floor(i/d),g=i-m*d,h=((x=t.image)==null?void 0:x[m])||"",v=Math.floor(g/s)+1,p=g-(v-1)*s,b=n*s,y=r*l,C=(v-1)*r,$=(p-1)*n;return j("div",{className:Xt.previewCardInner,style:{backgroundColor:"black",backgroundImage:`url(${h})`,backgroundPosition:`-${$}px -${C}px`,backgroundSize:`${b}px ${y}px`},children:j(Dte,{progress:o})})}function Dte({progress:e}){return j("div",{className:"track",style:{position:"absolute",bottom:0,left:0,backgroundColor:"#eee",width:"100%",height:2},children:j("div",{className:"bar",style:{backgroundColor:fo,height:"100%",width:`${e*100}%`}})})}function jte(e,t){let n=0,r=e.length-1,o=-1;for(;n<=r;){const s=Math.floor((n+r)/2),l=e[s];if(t===l)return s;l<t?(n=s+1,o=s):r=s-1;}if(o===-1)return -1;const a=e[o],i=e[o+1]??0;return a<t&&t<i?o:-1}const Vi={play:"#widget-video-play-count",danmaku:"#widget-video-danmaku",like:"#widget-agree",bangumiFollow:"#widget-followed"},bs={1:"play",2:"like",3:"danmaku",4:"bangumiFollow",20:"like"},Fte={bangumiFollow:1.3},Bte=e=>{const t=bs[e]||bs[1];return Vi[t]},Hte=e=>{const t=bs[e];if(t)return Fte[t]};function ry(e){return {iconSvgName:Bte(e),iconSvgScale:Hte(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 ys=io;ys.av2bv.bind(ys);ys.bv2av.bind(ys);function gx(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 hx(e){return gx(e,{pc:Wte,app:Vte,dynamic:Gte,watchlater:Kte,fav:Ute})}function Wte(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:xo(e.pubdate),duration:e.duration,durationStr:Xu(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 Vte(e){var a,i,s;const t=l=>{const{cover_left_icon_1:c,cover_left_text_1:u,cover_left_icon_2:d,cover_left_text_2:m}=e;if(c&&bs[c]===l)return yc(u);if(d&&bs[d]===l)return yc(m)},n=e.param,r=ys.av2bv(Number(e.param)),o=(()=>{var l;if(e.uri.startsWith("http://")||e.uri.startsWith("https://"))return e.uri;if(e.goto==="av")return `/video/${r}/`;if(e.goto==="bangumi")return console.warn(`[${xn}]: bangumi uri should not starts with 'bilibili://': %s`,e.uri),e.uri;if(e.goto==="picture"){const c=(l=/^bilibili:\/\/article\/(\d+)$/.exec(e.uri))==null?void 0:l[1];return c?`/read/cv${c}`:e.uri}return e.uri})();return {avid:n,bvid:r,goto:e.goto,href:o,title:e.title,coverRaw:e.cover,pubts:void 0,pubdateDisplay:void 0,duration:((a=e.player_args)==null?void 0:a.duration)||0,durationStr:Xu((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 Gte(e){const t=e.modules.module_dynamic.major.archive,n=e.modules.module_author,r=sa().subtract(2,"days").unix(),o=(()=>{const a=n.pub_ts;return a>r?n.pub_time:xo(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:qG(t.duration_text)||0,durationStr:t.duration_text,recommendReason:t.badge.text,play:yc(t.stat.play),danmaku:yc(t.stat.danmaku),like:void 0,coin:void 0,favorite:void 0,authorName:n.name,authorFace:n.face,authorMid:n.mid.toString()}}function Kte(e){const t=ZG(e.state),n=`${e.viewed?"【已观看】· ":""}${e.title}`,r=t?j(Vu,{title:pe(_t,{children:["视频已失效, 原因: ",t]}),align:{offset:[0,-5]},placement:"topLeft",children:pe("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:xo(e.pubdate),pubdateDisplayTitle:`${xo(e.pubdate,!0)} 发布, ${xo(e.add_at,!0)} 添加稍后再看`,duration:e.duration,durationStr:Xu(e.duration),recommendReason:`${xo(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 Ute(e){return {avid:String(e.id),bvid:e.bvid,goto:"av",href:`/video/${e.bvid}/`,title:`【${e.folder.title}】· ${e.title}`,titleRender:pe(_t,{children:["【",j(At,{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:xo(e.pubtime),duration:e.duration,durationStr:Xu(e.duration),recommendReason:`${xo(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 Xte=e=>(e||"").replace(/^http:\/\//,"https://");function oy(e){GM.setClipboard(e),wt(`已复制: ${e}`);}const vx=Xh(),qte="--video-card-border-radius",px=`var(${qte})`,bx={borderRadius:px},Mc=f.memo(function({style:t,className:n,item:r,loading:o,active:a,onRemoveCurrent:i,onMoveToFirst:s,onRefresh:l,emitter:c,...u}){o=o??!r;const d=pe("div",{className:V("bili-video-card__skeleton",{hide:!o,[Xt.skeletonActive]:o}),children:[j("div",{className:"bili-video-card__skeleton--cover",style:bx}),j("div",{className:"bili-video-card__skeleton--info",children:pe("div",{className:"bili-video-card__skeleton--right",children:[j("p",{className:"bili-video-card__skeleton--text"}),j("p",{className:"bili-video-card__skeleton--text short"}),j("p",{className:"bili-video-card__skeleton--light"})]})})]}),m=bY((r==null?void 0:r.api)==="app"&&r.param),g=f.useMemo(()=>r&&hx(r),[r]),h=fte(g==null?void 0:g.authorMid);return pe("div",{style:t,className:V("bili-video-card",Xt.biliVideoCard,n),...u,children:[d,!o&&r&&g&&(m?j(Yte,{item:r,emitter:c,dislikedReason:m}):h?j(Qte,{cardData:g}):j(Zte,{item:r,cardData:g,active:a,emitter:c,onRemoveCurrent:i,onMoveToFirst:s,onRefresh:l}))]})}),Yte=f.memo(function({dislikedReason:t,item:n,emitter:r=vx}){const o=rt(async()=>{if(!(t!=null&&t.id))return;let a=!1,i;try{a=await lY(n,t.id);}catch(s){i=s;}if(i)return console.error(i.stack||i),D$();a?wt("已撤销"):j$(),a&&td.delete(n.param);});return Ma(r,"cancel-dislike",o),pe("div",{className:V(Xt.dislikedWrapper),children:[j("div",{className:Xt.dislikeContentCover,children:pe("div",{className:Xt.dislikeContentCoverInner,children:[j(At,{name:"DistraughtFace",size:32,className:Xt.dislikeIcon}),j("div",{className:Xt.dislikeReason,children:t==null?void 0:t.name}),j("div",{className:Xt.dislikeDesc,children:(t==null?void 0:t.toast)||"将减少此类内容推荐"})]})}),j("div",{className:Xt.dislikeContentAction,children:pe("button",{onClick:o,children:[j(At,{name:"Return",size:"16",style:{marginRight:4,marginTop:-2}}),"撤销"]})})]})}),Qte=f.memo(function({cardData:t}){const{authorMid:n,authorFace:r,authorName:o}=t,a=rt(async()=>{if(!n)return;await dx.remove(n)&&wt(`已移出黑名单: ${o}`);});return pe("div",{className:V(Xt.dislikedWrapper),children:[j("div",{className:Xt.dislikeContentCover,children:pe("div",{className:Xt.dislikeContentCoverInner,children:[j(At,{name:"PeopleDelete",size:32,className:Xt.dislikeIcon}),j("div",{className:Xt.dislikeReason,children:"已拉黑"}),pe("div",{className:Xt.dislikeDesc,children:["UP: ",o]})]})}),j("div",{className:Xt.dislikeContentAction,children:pe("button",{onClick:a,children:[j(At,{name:"Return",size:"16",style:{marginRight:4,marginTop:-2}}),"撤销"]})})]})}),Zte=f.memo(function({item:t,cardData:n,active:r=!1,onRemoveCurrent:o,onMoveToFirst:a,onRefresh:i,emitter:s=vx}){var De,xe;const l=t.api==="pc",c=t.api==="app";t.api,t.api,t.api;const{avid:u,bvid:d,goto:m,href:g,title:h,titleRender:v,coverRaw:p,pubdateDisplay:b,pubdateDisplayTitle:y,duration:C,durationStr:$,recommendReason:x,invalidReason:w,play:S,like:E,coin:I,danmaku:O,favorite:R,authorName:P,authorFace:k,authorMid:L,appBadge:A,appBadgeDesc:T}=n,M=m==="av";["av","bangumi","picture"].includes(m)||console.warn(`[${xn}]: none (av,bangumi,picture) goto type %s`,m,t);const _=f.useMemo(()=>Xte(p),[p]),[D,F]=f.useState(null),H=f.useRef(!1),B=rt(async()=>{if(!D&&!H.current)try{H.current=!0,F(await iY(u));}finally{H.current=!1;}}),W=f.useRef(null),[K,X]=f.useState(void 0);Io("mouseenter",ae=>{var $e;const te=($e=W.current)==null?void 0:$e.getBoundingClientRect();if(!te)return;const{x:he}=te,ye=ae.pageX-window.pageXOffset-he;X(ye);},{target:W});const q=of(W),{autoPreviewWhenHover:ne}=In(),{onStartPreviewAnimation:G,onHotkeyPreviewAnimation:ee,previewAnimationProgress:Y}=Jte({bvid:d,title:h,autoPreviewWhenHover:ne,active:r,tryFetchVideoData:B,videoPreviewWrapperRef:W});Cc(()=>{if(r){try{unsafeWindow[`${T4}_activeItem`]=t;}catch(ae){console.warn("set unsafeWindow activeItem error"),console.warn(ae.stack||ae);}Pt.autoPreviewWhenKeyboardSelect&&G();}},[r]);const ue=f.useRef(null),le=of(ue),Z=Jee(d),{accessKey:oe}=In(),fe=!!oe;f.useEffect(()=>{q&&B();},[q]);const J=t.api!=="app"||t.api==="app"&&t.goto==="av",se=f.useRef(!1),me=rt(async(ae,te)=>{if(ae==null||ae.preventDefault(),te??(te=Z?B0:Pl),te!==Pl&&te!==B0)throw new Error("unexpected usingAction provided");if(se.current)return {success:!1};se.current=!0;let he=!1;try{he=await te(u);}finally{se.current=!1;}const ye=te===Pl;return he&&(ye?Ba.bvidSet.add(d):Ba.bvidSet.delete(d),t.api==="watchlater"?ye||(await pr(100),o==null||o(t,n)):wt(`已${ye?"添加":"移除"}稍后再看`)),{success:he,targetState:ye}}),re=f.useRef(null),ie=of(re),ge=rt(ae=>{if(ae==null||ae.stopPropagation(),ae==null||ae.preventDefault(),!ft)return t.api!=="app"?wt("当前视频不支持提交「我不想看」"):fe?void 0:wt("请先获取 access_key");$Y(t);}),be=f.useMemo(()=>ef(S),[S]),Te=f.useMemo(()=>ef(E),[E]),Ae=f.useMemo(()=>ef(R),[R]),Ve=l?Te:Ae,Oe=({text:ae,iconSvgName:te,iconSvgScale:he})=>pe("span",{className:"bili-video-card__stats--item",children:[j("svg",{className:"bili-video-card__stats--icon",style:{transform:he?`scale(${he})`:void 0},children:j("use",{href:te})}),j("span",{className:"bili-video-card__stats--text",children:ae})]}),[je,Qe]=f.useState(void 0),[Be,Pe]=f.useState(void 0),we=rt(async()=>{if(t.api!=="watchlater")return;const ae=await df.getVideoFavState(u);if(ae){const{favFolderNames:te,favFolderUrls:he}=ae;Qe(te),Pe(he);}}),Ge=rt(()=>{window.open(g,"_blank");}),nt=rt(()=>{GM.openInTab(g,{active:!1,insert:!0});});Ma(s,"open",Ge),Ma(s,"toggle-watch-later",()=>me()),Ma(s,"trigger-dislike",()=>ge()),Ma(s,"start-preview-animation",G),Ma(s,"hotkey-preview-animation",ee);const ft=c&&fe&&!!((xe=(De=t.three_point)==null?void 0:De.dislike_reasons)!=null&&xe.length),et=rt(()=>{let ae=g;g.startsWith("/")&&(ae=new URL(g,location.href).href),oy(ae);}),Xe=rt(()=>{let ae=g;t.api==="watchlater"&&(ae=`/video/${t.bvid}`);const te=new URL(ae,location.href).href,he=`iina://open?url=${encodeURIComponent(te)}`;window.open(he,"_self");}),gt=tl(),pt=gt==="recommend-app"||gt==="recommend-pc",ut=rt(async()=>{if(!L)return wt("UP mid 为空!");await dx.add(L)&&wt(`已加入黑名单: ${P}`);}),dt=t.api==="dynamic"||(t.api==="app"||t.api==="pc")&&x==="已关注",$t=rt(async()=>{if(!L)return;await hte.unfollow(L)&&wt("已取消关注");}),Me=t.api==="dynamic"&&!!i,_e=rt(async()=>{!L||!P||(cx({upMid:Number(L),upName:P}),await pr(100),await(i==null?void 0:i()));}),Ne=f.useMemo(()=>{const ae=Z?"移除稍后再看":"稍后再看";return [{key:"open-link",label:"打开",icon:j(At,{name:"EfferentFour",size:15}),onClick:Ge},{key:"open-link-in-background",label:"后台打开",icon:j(At,{name:"Split",size:15}),onClick:nt},{type:"divider"},{key:"copy-link",label:"复制视频链接",icon:j(At,{name:"Copy",size:15}),onClick:et},{key:"copy-bvid",label:"复制 BVID",icon:j(At,{name:"Copy",size:15}),onClick(){oy(d);}},{type:"divider"},ft&&{key:"dislike",label:"我不想看",icon:j(At,{name:"DislikeTwo",size:15}),onClick(){ge();}},Me&&{key:"dymamic-feed-filter-select-up",label:"查看 UP 的动态",icon:j(At,{name:"PeopleSearch",size:15}),onClick:_e},dt&&{key:"unfollow-up",label:"取消关注",icon:j(At,{name:"PeopleMinus",size:15}),onClick:$t},pt&&{key:"blacklist-up",label:"将 UP 加入黑名单",icon:j(At,{name:"PeopleDelete",size:15}),onClick:ut},t.api==="watchlater"&&{key:"add-fav",icon:j(At,{name:"Star",size:15,...je!=null&&je.length?{theme:"two-tone",fill:["currentColor",fo]}:void 0}),label:je!=null&&je.length?`已收藏 ${je.map(te=>`「${te}」`).join("")}`:"快速收藏",async onClick(){!!(je!=null&&je.length)?Be==null||Be.forEach(he=>{window.open(he,"_blank");}):await df.addFav(u)&&wt(`已加入收藏夹「${Bm}」`);}},J&&{key:"watchlater",label:ae,icon:j(At,{name:Z?"Delete":"FileCabinet",size:15}),onClick(){me();}},t.api==="watchlater"&&Z&&{key:"watchlater-readd",label:"重新添加稍候再看 (移到最前)",icon:j(At,{name:"AddTwo",size:15}),async onClick(){const{success:te}=await me(void 0,Pl);te&&(a==null||a(t,n));}},...t.api==="fav"?[{type:"divider"},{key:"open-fav-folder",label:"浏览收藏夹",icon:j(At,{name:"EfferentFour",size:15}),onClick(){const{id:te}=t.folder,he=rx(te);window.open(he,"_blank");}},{key:"remove-fav",label:"移除收藏",icon:j(At,{name:"Delete",size:15}),async onClick(){if(t.api!=="fav")return;await df.removeFav(t.folder.id,`${t.id}:${t.type}`)&&(o==null||o(t,n));}}]:[],...uG?[{type:"divider"},{key:"open-in-iina",label:"在 IINA 中打开",icon:j(At,{name:"PlayTwo",size:15}),onClick:Xe}]:[]].filter(Boolean)},[t,J,Z,ft,dt,pt,Me,je,Be]),ve=rt(ae=>{ae&&we();});return pe("div",{className:"bili-video-card__wrap __scale-wrap",children:[j(tv,{menu:{items:Ne},trigger:["contextMenu"],onOpenChange:ve,children:j("a",{href:g,target:"_blank",children:pe("div",{className:"bili-video-card__image __scale-player-wrap",ref:W,style:{...bx,aspectRatio:"16 / 9"},children:[pe("div",{className:"bili-video-card__image--wrap",style:{borderRadius:"inherit"},children:[pe("picture",{className:"v-img bili-video-card__cover",style:{borderRadius:"inherit",overflow:"hidden"},children:[!Fh&&j("source",{srcSet:`${_}@672w_378h_1c_!web-home-common-cover.avif`,type:"image/avif"}),j("source",{srcSet:`${_}@672w_378h_1c_!web-home-common-cover.webp`,type:"image/webp"}),j("img",{src:`${_}@672w_378h_1c_!web-home-common-cover`,loading:"eager"})]}),(q||typeof Y=="number")&&j(Ate,{videoDuration:C,pvideo:D==null?void 0:D.pvideoData,mouseEnterRelativeX:K,previewAnimationProgress:Y}),J&&pe("div",{className:`bili-watch-later ${Xt.watchLater}`,style:{display:q||r?"flex":"none"},ref:ue,onClick:me,children:[j("svg",{className:"bili-watch-later__icon",children:j("use",{href:Z?"#widget-watch-save":"#widget-watch-later"})}),j("span",{className:"bili-watch-later__tip",style:{display:le?"block":"none"},children:Z?"移除稍后再看":"稍后再看"})]}),ft&&pe("div",{ref:re,className:Xt.btnDislike,onClick:ge,style:{display:q?"flex":"none"},children:[j("svg",{className:Xt.btnDislikeIcon,children:j("use",{href:"#widget-close"})}),j("span",{className:Xt.btnDislikeTip,style:{display:ie?"block":"none"},children:"我不想看"})]})]}),j("div",{className:"bili-video-card__mask",style:{borderRadius:"inherit",overflow:"hidden"},children:pe("div",{className:"bili-video-card__stats",children:[j("div",{className:"bili-video-card__stats--left",children:l?pe(_t,{children:[Oe({text:be,iconSvgName:Vi.play}),Oe({text:m==="av"?Te:Ve,iconSvgName:Vi.like})]}):c?pe(_t,{children:[!!t.cover_left_text_1&&Oe({...ry(t.cover_left_icon_1),text:t.cover_left_text_1}),!!t.cover_left_text_2&&Oe({...ry(t.cover_left_icon_2),text:t.cover_left_text_2})]}):pe(_t,{children:[Oe({text:be,iconSvgName:Vi.play}),Oe({text:(O||0).toString(),iconSvgName:Vi.danmaku})]})}),j("span",{className:"bili-video-card__stats__duration",children:M&&$})]})})]})})}),j("div",{className:"bili-video-card__info __scale-disable",children:pe("div",{className:"bili-video-card__info--right",children:[j("a",{href:g,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:j("h3",{className:"bili-video-card__info--tit",title:h,children:v??h})}),j("p",{className:"bili-video-card__info--bottom",children:M?pe("a",{className:"bili-video-card__info--owner",href:`//space.bilibili.com/${L}`,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",title:`${P} ${y||b}`,children:[x?j("span",{className:Xt.recommendReason,children:x}):j("svg",{className:"bili-video-card__info--owner__up",children:j("use",{href:"#widget-up"})}),j("span",{className:"bili-video-card__info--author",children:P}),b&&pe("span",{className:"bili-video-card__info--date",children:["· ",b]})]}):A||T?pe("a",{className:"bili-video-card__info--owner",href:g,target:"_blank",children:[j("span",{className:Xt.badge,children:A||""}),j("span",{className:Xt.bangumiDesc,children:T||""})]}):null})]})})]})});function Jte({bvid:e,title:t,autoPreviewWhenHover:n,active:r,tryFetchVideoData:o,videoPreviewWrapperRef:a}){const[s,l]=tw(void 0),[c,u]=f.useState(!1),d=f.useRef(!1),m=f.useRef(!1);Io("mouseenter",E=>{d.current=!0,n&&!h.current&&S(!0);},{target:a}),Io("mouseleave",E=>{d.current=!1;},{target:a}),Io("mousemove",E=>{u(!0),n||p();},{target:a});const g=eX(),h=f.useRef(void 0),v=rt(()=>{if(g.current)return !0;if(n){if(m.current){if(!d.current)return !0}else if(!r)return !0}else if(!r||c)return !0;return !1}),p=rt((E=!1)=>{h.current&&cancelAnimationFrame(h.current),h.current=void 0,l(void 0),y(!1);}),[b,y,C]=J$(!1),$=f.useRef(),x=rt(()=>{var E;if(!h.current){S();return}y(I=>!I),b&&((E=$.current)==null||E.call($,s||0));}),w=rt(()=>s||0),S=rt((E=!1)=>{m.current=E,u(!1),y(!1),o(),p(!0),l(L=>typeof L>"u"?0:L);const I=8e3,O=()=>typeof Pt.autoPreviewUpdateInterval=="number"?Pt.autoPreviewUpdateInterval:400;let R=performance.now(),P=0;$.current=()=>{R=performance.now()-w()*I;};function k(L){if(v()){p();return}const A=()=>{const T=performance.now()-R,M=Math.min(T%I/I,1);l(M);};C()||(O()?(!P||performance.now()-P>=O())&&(P=performance.now(),A()):A()),h.current=requestAnimationFrame(k);}h.current=requestAnimationFrame(k);});return {onHotkeyPreviewAnimation:x,onStartPreviewAnimation:S,previewAnimationProgress:s}}const ene=()=>document.querySelector(".bili-header__bar");function tne(){const e=ene();return !!(e&&window.getComputedStyle(e).display==="none")}function Wm(){if(!tne())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 Rc=ar({value:Wm()});function nne(){return sr(Rc).value}function yx(){return Rc.value}setTimeout(()=>{Rc.value=Wm();const e=new MutationObserver(()=>{Rc.value=Wm();});e.observe(document.documentElement,{attributes:!0,attributeFilter:["style"]}),e.observe(document.body,{attributes:!0,attributeFilter:["class"]}),window.addEventListener("unload",()=>{e.disconnect();});},2e3);const ov="_video-grid_t2sr7_9",Cx="_video-grid-new-homepage_t2sr7_17",rne="_limit-two-lines_t2sr7_20",Sx="_video-grid-internal-testing_t2sr7_52";const ay="_video-grid-container_t2sr7_80",one="_video-grid-youtube-like_t2sr7_84",ane="_narrow-mode_t2sr7_112";function ine({enabled:e,refresh:t,minIndex:n=0,maxIndex:r,containerRef:o,getScrollerRect:a,changeScrollY:i,videoCardEmitters:s}){const[l,c]=f.useState(void 0),u=rt(()=>!(!e||Uu())),d=rt(()=>{var S;if(typeof l!="number"||!o.current)return !1;const x=a(),w=(S=o.current.querySelector(`.${Wa.card}.${Wa.cardActive}`))==null?void 0:S.getBoundingClientRect();return !(!x||!w||w.top-x.top<-(x.height+w.height)||w.top-x.top>x.height*2+w.height)}),m=x=>w=>{if(!u())return;w==null||w.preventDefault();let S=typeof x=="number"?x:x();const E=d()?l+S:p();if(E<n){$(n);return}if(E>r){$(r);return}c(E),$(E);};sn("leftarrow",m(-1),{exactMatch:!0}),sn("rightarrow",m(1),{exactMatch:!0}),sn("tab",m(1),{exactMatch:!0}),sn("shift.tab",m(-1),{exactMatch:!0});const g=()=>av(o.current);sn("uparrow",m(()=>-g()),{exactMatch:!0}),sn("downarrow",m(g),{exactMatch:!0});const h=()=>{u()&&c(void 0);},v=()=>{if(!(!u()||typeof l!="number"))return s[l]};sn("esc",h),sn("enter",()=>{var x;!u()||typeof l!="number"||(x=v())==null||x.emit("open");}),sn("backspace",()=>{var x;!u()||typeof l!="number"||(x=v())==null||x.emit("trigger-dislike");}),sn(["s","w"],()=>{var x;!u()||typeof l!="number"||(x=v())==null||x.emit("toggle-watch-later");},{exactMatch:!0}),sn(["period","p"],()=>{var x;!u()||typeof l!="number"||(x=v())==null||x.emit("hotkey-preview-animation");},{exactMatch:!0});function p(){const x=a();if(!x)return 0;const w=y();for(let S=0;S<w.length;S++)if(w[S].getBoundingClientRect().top>=x.top)return S;return 0}const b=`.${Wa.card}`;function y(){var x;return [...((x=o.current)==null?void 0:x.querySelectorAll(b))||[]]}function C(x){return y()[x]}function $(x){var I;const w=C(x);(I=w==null?void 0:w.scrollIntoViewIfNeeded)==null||I.call(w,!1);const S=a(),E=w.getBoundingClientRect();if(!(!S||!E)){if(E.top<=S.top){const O=-(S.top-E.top+10);i==null||i({offset:O});return}if(S.bottom-E.bottom<10){const O=10-(S.bottom-E.bottom);i==null||i({offset:O});return}}}return {activeIndex:l,clearActiveIndex:h}}const sne=new Map,lne=new Map;function av(e,t=!0){if(t&&Pt.useNarrowMode)return 2;const n=Pt.styleUseYoutubeLikeCard?sne:lne;let r=n.get(Math.trunc(window.innerWidth));if(r)return r;if(e||(e=document.querySelector(`.${ov}`)),!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 $x(e){return e==="keep-follow-only"||Pt.filterMinDurationEnabled||Pt.filterMinPlayCountEnabled||Pt.filterOutGotoTypePicture}function wx(e,t){return $x(t)?e.filter(n=>{const{play:r,duration:o,recommendReason:a,goto:i}=hx(n),s=a==="已关注"||(a==null?void 0:a.includes("关注"));if(t==="keep-follow-only"&&!s)return !1;const l=i==="av",c=i==="picture";if(l)return u();if(c)return d();return !0;function u(){return s&&!Pt.enableFilterForFollowedVideo?!0:!(Pt.filterMinPlayCountEnabled&&Pt.filterMinPlayCount&&typeof r=="number"&&r<Pt.filterMinPlayCount||Pt.filterMinDurationEnabled&&Pt.filterMinDuration&&o&&o<Pt.filterMinDuration)}function d(){return Pt.filterOutGotoTypePicture?!!(s&&!Pt.enableFilterForFollowedPicture):!0}}):e}var ad={exports:{}},iv={exports:{}},xx={exports:{}},ln=xx.exports={},Fr,Br;function Vm(){throw new Error("setTimeout has not been defined")}function Gm(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Fr=setTimeout:Fr=Vm;}catch{Fr=Vm;}try{typeof clearTimeout=="function"?Br=clearTimeout:Br=Gm;}catch{Br=Gm;}})();function Ex(e){if(Fr===setTimeout)return setTimeout(e,0);if((Fr===Vm||!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 cne(e){if(Br===clearTimeout)return clearTimeout(e);if((Br===Gm||!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,Wo,ql=-1;function une(){!Ha||!Wo||(Ha=!1,Wo.length?ao=Wo.concat(ao):ql=-1,ao.length&&Ix());}function Ix(){if(!Ha){var e=Ex(une);Ha=!0;for(var t=ao.length;t;){for(Wo=ao,ao=[];++ql<t;)Wo&&Wo[ql].run();ql=-1,t=ao.length;}Wo=null,Ha=!1,cne(e);}}ln.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 Ox(e,t)),ao.length===1&&!Ha&&Ex(Ix);};function Ox(e,t){this.fun=e,this.array=t;}Ox.prototype.run=function(){this.fun.apply(null,this.array);};ln.title="browser";ln.browser=!0;ln.env={};ln.argv=[];ln.version="";ln.versions={};function go(){}ln.on=go;ln.addListener=go;ln.once=go;ln.off=go;ln.removeListener=go;ln.removeAllListeners=go;ln.emit=go;ln.prependListener=go;ln.prependOnceListener=go;ln.listeners=function(e){return []};ln.binding=function(e){throw new Error("process.binding is not supported")};ln.cwd=function(){return "/"};ln.chdir=function(e){throw new Error("process.chdir is not supported")};ln.umask=function(){return 0};var dne=xx.exports;const mf=hn(dne);var Km;typeof Object.create=="function"?Km=function(t,n){t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}});}:Km=function(t,n){t.super_=n;var r=function(){};r.prototype=n.prototype,t.prototype=new r,t.prototype.constructor=t;};const Px=Km;var fne=/%[sdj%]/g;function ai(e){if(!ol(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(Ur(arguments[n]));return t.join(" ")}for(var n=1,r=arguments,o=r.length,a=String(e).replace(fne,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])rl(i)||!la(i)?a+=" "+i:a+=" "+Ur(i);return a}function sv(e,t){if(Vr(global.process))return function(){return sv(e,t).apply(this,arguments)};if(mf.noDeprecation===!0)return e;var n=!1;function r(){if(!n){if(mf.throwDeprecation)throw new Error(t);mf.traceDeprecation?console.trace(t):console.error(t),n=!0;}return e.apply(this,arguments)}return r}var Ml={},gf;function Mx(e){if(Vr(gf)&&(gf={}.NODE_DEBUG||""),e=e.toUpperCase(),!Ml[e])if(new RegExp("\\b"+e+"\\b","i").test(gf)){var t=0;Ml[e]=function(){var n=ai.apply(null,arguments);console.error("%s %d: %s",e,t,n);};}else Ml[e]=function(){};return Ml[e]}function Ur(e,t){var n={seen:[],stylize:gne};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),id(t)?n.showHidden=t:t&&dv(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=mne),_c(n,e,n.depth)}Ur.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]};Ur.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function mne(e,t){var n=Ur.styles[t];return n?"\x1B["+Ur.colors[n][0]+"m"+e+"\x1B["+Ur.colors[n][1]+"m":e}function gne(e,t){return e}function hne(e){var t={};return e.forEach(function(n,r){t[n]=!0;}),t}function _c(e,t,n){if(e.customInspect&&t&&ns(t.inspect)&&t.inspect!==Ur&&!(t.constructor&&t.constructor.prototype===t)){var r=t.inspect(n,e);return ol(r)||(r=_c(e,r,n)),r}var o=vne(e,t);if(o)return o;var a=Object.keys(t),i=hne(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),ts(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return hf(t);if(a.length===0){if(ns(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(es(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(Tc(t))return e.stylize(Date.prototype.toString.call(t),"date");if(ts(t))return hf(t)}var l="",c=!1,u=["{","}"];if(lv(t)&&(c=!0,u=["[","]"]),ns(t)){var d=t.name?": "+t.name:"";l=" [Function"+d+"]";}if(es(t)&&(l=" "+RegExp.prototype.toString.call(t)),Tc(t)&&(l=" "+Date.prototype.toUTCString.call(t)),ts(t)&&(l=" "+hf(t)),a.length===0&&(!c||t.length==0))return u[0]+l+u[1];if(n<0)return es(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var m;return c?m=pne(e,t,n,i,a):m=a.map(function(g){return Um(e,t,n,i,g,c)}),e.seen.pop(),bne(m,l,u)}function vne(e,t){if(Vr(t))return e.stylize("undefined","undefined");if(ol(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(cv(t))return e.stylize(""+t,"number");if(id(t))return e.stylize(""+t,"boolean");if(rl(t))return e.stylize("null","null")}function hf(e){return "["+Error.prototype.toString.call(e)+"]"}function pne(e,t,n,r,o){for(var a=[],i=0,s=t.length;i<s;++i)Lx(t,String(i))?a.push(Um(e,t,n,r,String(i),!0)):a.push("");return o.forEach(function(l){l.match(/^\d+$/)||a.push(Um(e,t,n,r,l,!0));}),a}function Um(e,t,n,r,o,a){var i,s,l;if(l=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]},l.get?l.set?s=e.stylize("[Getter/Setter]","special"):s=e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),Lx(r,o)||(i="["+o+"]"),s||(e.seen.indexOf(l.value)<0?(rl(n)?s=_c(e,l.value,null):s=_c(e,l.value,n-1),s.indexOf(`
`)>-1&&(a?s=s.split(`
`).map(function(c){return "  "+c}).join(`
`).substr(2):s=`
`+s.split(`
`).map(function(c){return "   "+c}).join(`
`))):s=e.stylize("[Circular]","special")),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 bne(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 lv(e){return Array.isArray(e)}function id(e){return typeof e=="boolean"}function rl(e){return e===null}function Rx(e){return e==null}function cv(e){return typeof e=="number"}function ol(e){return typeof e=="string"}function _x(e){return typeof e=="symbol"}function Vr(e){return e===void 0}function es(e){return la(e)&&uv(e)==="[object RegExp]"}function la(e){return typeof e=="object"&&e!==null}function Tc(e){return la(e)&&uv(e)==="[object Date]"}function ts(e){return la(e)&&(uv(e)==="[object Error]"||e instanceof Error)}function ns(e){return typeof e=="function"}function Tx(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}function Nx(e){return Buffer.isBuffer(e)}function uv(e){return Object.prototype.toString.call(e)}function vf(e){return e<10?"0"+e.toString(10):e.toString(10)}var yne=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Cne(){var e=new Date,t=[vf(e.getHours()),vf(e.getMinutes()),vf(e.getSeconds())].join(":");return [e.getDate(),yne[e.getMonth()],t].join(" ")}function kx(){console.log("%s - %s",Cne(),ai.apply(null,arguments));}function dv(e,t){if(!t||!la(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}function Lx(e,t){return Object.prototype.hasOwnProperty.call(e,t)}const Sne={inherits:Px,_extend:dv,log:kx,isBuffer:Nx,isPrimitive:Tx,isFunction:ns,isError:ts,isDate:Tc,isObject:la,isRegExp:es,isUndefined:Vr,isSymbol:_x,isString:ol,isNumber:cv,isNullOrUndefined:Rx,isNull:rl,isBoolean:id,isArray:lv,inspect:Ur,deprecate:sv,format:ai,debuglog:Mx},$ne=Object.freeze(Object.defineProperty({__proto__:null,_extend:dv,debuglog:Mx,default:Sne,deprecate:sv,format:ai,inherits:Px,inspect:Ur,isArray:lv,isBoolean:id,isBuffer:Nx,isDate:Tc,isError:ts,isFunction:ns,isNull:rl,isNullOrUndefined:Rx,isNumber:cv,isObject:la,isPrimitive:Tx,isRegExp:es,isString:ol,isSymbol:_x,isUndefined:Vr,log:kx},Symbol.toStringTag,{value:"Module"})),wne=tE($ne);var xne=wne.format;function Ene(){(typeof AbortController>"u"||typeof AbortSignal>"u")&&console.error("[promise.timeout] need global AbortController & AbortSingal");}function Ine(e,t){return function(){var n=this,r=[].slice.call(arguments);Ene();var o=new AbortController;return r.push(o.signal),new Promise(function(a,i){var s=setTimeout(function(){var l=new Ax(t);i(l),o.abort();},t);Promise.resolve(e.apply(n,r)).then(function(l){clearTimeout(s),a(l);},function(l){clearTimeout(s),i(l);});})}}let Ax=class zx extends Error{constructor(t){super(),this.timeout=t,this.message=xne("timeout of %sms exceed",t),Error.captureStackTrace(this,zx);}};iv.exports=Ine;iv.exports.TimeoutError=Ax;var One=iv.exports;const Dx=One,Pne=Dx.TimeoutError;ad.exports=function(t,n){const r=t;n=n||{};const o=n.times||5,a=n.timeout;a&&(t=Dx(t,a));const i=n.onerror;return async function(){const s=this,l=[].slice.call(arguments),c=new Array(o);for(let u=0;u<o;u++){let d,m;try{d=await t.apply(s,l);}catch(g){m=g;}if(!m)return d;if(m instanceof TypeError)throw m;if(m instanceof Mne)throw m.originalError;c[u]=m,i&&i(m,u);}throw new jx({times:o,timeout:a,fn:r,errors:c})}};class jx 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 Mne 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 Rne=ad.exports.RetryError=jx;ad.exports.TimeoutError=Pne;var _ne=ad.exports;const Tne=hn(_ne);class fv extends Error{constructor(n){super();Nt(this,"json");Error.captureStackTrace(this,fv),this.json=n,this.message=n.message||JSON.stringify(n);}}async function Nne(){var r;const t=(await Ju.get(b1+"/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 fv(t);return wt(`${xn}: 未知错误, 请联系开发者

  code=${t.code} message=${t.message||""}`,5e3),[]}return ((r=t==null?void 0:t.data)==null?void 0:r.items)||[]}const kne=Tne(Nne,{times:5,timeout:2e3,onerror(e,t){console.info("[%s] tryGetRecommend onerror: index=%s",xn,t,e);}});async function Lne(){try{return await kne()}catch(e){if(e instanceof Rne){console.error(e.errors);const t=[ai("请求出错, 已重试%s次:",e.times),...e.errors.map((n,r)=>ai("  %s) %s",r+1,n.message)),"","请重新获取 access_key 后重试~"].join(`
`);wt(t,5e3);}throw e}}class Nc{constructor(){Nt(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(()=>Lne()))).flat();})(),n=od(n,o=>o.param),n.map(o=>({...o,api:"app",uniqId:o.param+"-"+crypto.randomUUID()}))}}Nt(Nc,"PAGE_SIZE",10);const Rl=vi.extend("service"),Yl=e=>gx(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 Ane(e,t){const n=e.map(Yl);return t=od(t,Yl),e.concat(t.filter(r=>!n.includes(Yl(r))))}const Xm=e=>e==="keep-follow-only"||e==="recommend-pc";async function Fx(e,t,n=5){const{pcRecService:r,dynamicFeedService:o,watchLaterService:a,favService:i,tab:s,abortSignal:l}=t,c=new Nc;let u=[],d=!0;const m=async g=>{let h=[];if(s==="dynamic-feed"){h=await o.loadMore(l)||[],d=o.hasMore,u=u.concat(h);return}if(s==="watchlater"){h=await a.loadMore()||[],d=a.hasMore,u=u.concat(h);return}if(s==="fav"){h=await i.loadMore()||[],d=i.hasMore,u=u.concat(h);return}let v;if(s==="keep-follow-only")v=8,Rl("getMinCount: addMore(restCount = %s) times=%s",g,v);else {const p=Xm(s)?vs.PAGE_SIZE:Nc.PAGE_SIZE,b=$x(s)?n:1.2;v=Math.ceil(g*b/p),Rl("getMinCount: addMore(restCount = %s) multipler=%s pagesize=%s times=%s",g,b,p,v);}h=Xm(s)?await r.getRecommendTimes(v,l):await c.getRecommendTimes(v),h=wx(h,s),u=u.concat(h),u=od(u,Yl);};for(await m(e);;){if(l!=null&&l.aborted){Rl("getMinCount: break for abortSignal");break}if(!d){Rl("getMinCount: break for tab=%s hasMore=false",s);break}if(u.length>=e)break;await m(e-u.length);}return u}async function zne(e){let t=await Fx(av(void 0,!1)*2,e,5);return e.tab==="watchlater"&&(t=t.slice(0,20)),t}async function Dne(e){return Fx(av()*3+1,e,5)}async function jne(e,t,n){let r=Xm(t)?await n.getRecommendTimes(e):await new Nc().getRecommendTimes(e);return r=wx(r,t),r}var qm=new Map,_l=new WeakMap,iy=0,Fne=void 0;function Bne(e){return e?(_l.has(e)||(iy+=1,_l.set(e,iy.toString())),_l.get(e)):"0"}function Hne(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?Bne(e.root):e[t]}`).toString()}function Wne(e){let t=Hne(e),n=qm.get(t);if(!n){const r=new Map;let o;const a=new IntersectionObserver(i=>{i.forEach(s=>{var l;const c=s.isIntersecting&&o.some(u=>s.intersectionRatio>=u);e.trackVisibility&&typeof s.isVisible>"u"&&(s.isVisible=c),(l=r.get(s.target))==null||l.forEach(u=>{u(c,s);});});},e);o=a.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:a,elements:r},qm.set(t,n);}return n}function Vne(e,t,n={},r=Fne){if(typeof window.IntersectionObserver>"u"&&r!==void 0){const l=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:typeof n.threshold=="number"?n.threshold:0,time:0,boundingClientRect:l,intersectionRect:l,rootBounds:l}),()=>{}}const{id:o,observer:a,elements:i}=Wne(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(),qm.delete(o));}}function Gne({threshold:e,delay:t,trackVisibility:n,rootMargin:r,root:o,triggerOnce:a,skip:i,initialInView:s,fallbackInView:l,onChange:c}={}){var u;const[d,m]=f__namespace.useState(null),g=f__namespace.useRef(),[h,v]=f__namespace.useState({inView:!!s,entry:void 0});g.current=c,f__namespace.useEffect(()=>{if(i||!d)return;let C;return C=Vne(d,($,x)=>{v({inView:$,entry:x}),g.current&&g.current($,x),x.isIntersecting&&a&&C&&(C(),C=void 0);},{root:o,rootMargin:r,threshold:e,trackVisibility:n,delay:t},l),()=>{C&&C();}},[Array.isArray(e)?e.toString():e,d,o,r,a,i,n,l,t]);const p=(u=h.entry)==null?void 0:u.target,b=f__namespace.useRef();!d&&p&&!a&&!i&&b.current!==p&&(b.current=p,v({inView:!!s,entry:void 0}));const y=[m,h.inView,h.entry];return y.ref=y[0],y.inView=y[1],y.entry=y[2],y}const Di=vi.extend("components:RecGrid"),Wa={card:bc({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:bc("border-color:",fo,";border-radius:",px,";overflow:hidden;","")};var Kne={name:"1hce7io",styles:"padding:30px 0;display:flex;align-items:center;justify-content:center;font-size:120%"};const Bx=f.forwardRef(({infiteScrollUseWindow:e,shortcutEnabled:t,onScrollToTop:n,className:r,scrollerRef:o,setRefreshing:a,setExtraInfo:i},s)=>{const{useNarrowMode:l,styleUseYoutubeLikeCard:c}=In(),u=tl(),[d,m]=f.useState(0),g=rt(async()=>{W(),i==null||i();}),h=rt(()=>{W(),m(1),u==="watchlater"&&(i==null||i(R.usageInfo)),u==="fav"&&(i==null||i(P.usageInfo)),u==="dynamic-feed"&&(i==null||i(O.usageInfo)),T();}),{refresh:v,items:p,setItems:b,error:y,refreshing:C,refreshedAt:$,getRefreshedAt:x,swr:w,hasMore:S,setHasMore:E,pcRecService:I,dynamicFeedService:O,watchLaterService:R,favService:P}=sx({tab:u,debug:Di,fetcher:Dne,recreateService:!0,preAction:g,postAction:h,onScrollToTop:n,setUpperRefreshing:a});Qs(v),f.useImperativeHandle(s,()=>({refresh:v}),[]);const k=f.useRef();Io("visibilitychange",Z=>{if(!(document.visibilityState==="visible")){k.current=Date.now();return}C||L.current[$]||u==="watchlater"&&k.current&&Date.now()-k.current>Js("1h")&&v(!0,{watchlaterKeepOrder:!0});},{target:document});const L=f.useRef({}),A=rt(async()=>{if(!S||C)return;const Z=$;if(L.current[Z])return;L.current={[Z]:!0};let oe=p,fe=!0;try{if(u==="dynamic-feed")oe=oe.concat(await O.loadMore()||[]),fe=O.hasMore;else if(u==="watchlater")oe=oe.concat(await R.loadMore()||[]),fe=R.hasMore;else if(u==="fav")oe=oe.concat(await P.loadMore()||[]),fe=P.hasMore;else for(;!(oe.length>p.length);){const se=await jne(u==="keep-follow-only"?5:2,u,I);oe=Ane(oe,se);}}catch(J){throw L.current[Z]=!1,J}if(Z!==x()){Di("loadMore: skip update for mismatch refreshedAt, %s != %s",Z,x());return}Di("loadMore: seq(%s) len %s -> %s",d+1,p.length,oe.length),E(fe),b(oe),m(J=>J+1),L.current[Z]=!1,T();}),T=rt(async()=>{await pr(Fh?100:50),Di("checkShouldLoadMore(): footerInView = %s",ee.current),ee.current&&A();}),M=f.useRef(null),_=rt(()=>{var Z;if(e){const oe=yx()+50;return new DOMRect(0,oe,window.innerWidth,window.innerHeight-oe)}else return (Z=o==null?void 0:o.current)==null?void 0:Z.getBoundingClientRect()}),D=CY(),F=f.useMemo(()=>new Map,[$]),H=f.useMemo(()=>p.map(({uniqId:Z})=>F.get(Z)||(()=>{const oe=Xh();return F.set(Z,oe),oe})()),[p]),{activeIndex:B,clearActiveIndex:W}=ine({enabled:t&&!D,refresh:v,maxIndex:p.length-1,containerRef:M,getScrollerRect:_,videoCardEmitters:H,changeScrollY:e?function({offset:Z,absolute:oe}){const fe=document.documentElement;if(typeof Z=="number"){fe.scrollTop+=Z;return}if(typeof oe=="number"){fe.scrollTop=oe;return}}:void 0}),K=ei(),X=rt((Z,oe)=>{b(fe=>{const J=fe.findIndex(me=>me.uniqId===Z.uniqId);if(J===-1)return fe;let se=fe.slice();return se.splice(J,1),wt(`已移除: ${oe.title}`,4e3),u==="watchlater"&&(R.count--,i==null||i(R.usageInfo)),u==="fav"&&(P.total--,i==null||i(P.usageInfo)),se});}),q=rt((Z,oe)=>{b(fe=>{const J=fe.find(re=>re.uniqId===Z.uniqId);if(!J)return fe;const se=fe.indexOf(J),me=fe.slice();return me.splice(se,1),me.unshift(J),me});}),{ref:ne,inView:G}=Gne({root:e?null:(o==null?void 0:o.current)||null,rootMargin:`0px 0px ${window.innerHeight}px 0px`,onChange(Z){Z&&(Di("footerInView change to visible",Z),A());}}),ee=ti(G),Y=j("div",{ref:ne,css:Kne,children:!C&&j(_t,{children:S?pe(_t,{children:[j(At,{name:"Loading",fill:fo,spin:!0,size:40,style:{marginRight:10}}),"加载中~"]}):"没有更多了~"})}),ue=V(`${xn}-video-grid`,ov,c?one:K?Sx:Cx,l&&ane,r);return !p.length||y||C&&!w?j("div",{className:ay,children:j("div",{className:ue,children:new Array(28).fill(void 0).map((Z,oe)=>j(Mc,{loading:!0,className:Wa.card},oe))})}):pe("div",{style:{minHeight:"100%"},className:ay,children:[j("div",{ref:M,className:ue,children:p.map((Z,oe)=>{const fe=oe===B;return j(Mc,{className:V(Wa.card,{[Wa.cardActive]:fe}),item:Z,active:fe,onRemoveCurrent:X,onMoveToFirst:q,onRefresh:v,emitter:H[oe]},Z.uniqId)})}),Y]})});function Une(){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 Xne="_expand-btn_wdzp9_1",qne="_expanded_wdzp9_12",sy={expandBtn:Xne,expanded:qne},Yne=f.forwardRef(function({children:t},n){const[r,o]=U$(!1);f.useImperativeHandle(n,()=>o,[o]);const a=j("button",{className:V("primary-btn",sy.expandBtn),onClick:o.toggle,children:j("svg",{className:V({[sy.expanded]:r}),children:j("use",{href:"#widget-arrow"})})});return pe(_t,{children:[a,r&&t]})}),Qne="_modal-mask_7bwzz_1",Zne="_narrow-mode_7bwzz_1",Jne="_modal_7bwzz_1",ere="_modal-header_7bwzz_18",tre="_modal-body_7bwzz_19",nre="_btn-refresh_7bwzz_22",ji={modalMask:Qne,narrowMode:Zne,modal:Jne,modalHeader:ere,modalBody:tre,btnRefresh:nre};var rre={name:"1q4vxyr",styles:"margin-left:8px"};const ore=f.memo(function({show:t,onHide:n}){const r=f.useRef(null),o=f.useRef(null),{useNarrowMode:a}=In(),i=f.useMemo(()=>({[ji.narrowMode]:a}),[a]),s=rt((...v)=>{var p;return (p=o.current)==null?void 0:p.refresh(...v)}),[l,c]=f.useState(null),u=rt(()=>{r.current&&(r.current.scrollTop=0);}),d=jh(),m=f.useMemo(()=>d?{border:`1px solid ${fo}`}:void 0,[d]),[g,h]=f.useState(!1);return j(Qu,{show:t,onHide:n,clsModalMask:V(i),clsModal:V(ji.modal,i),styleModal:{...m},children:pe(nv.Provider,{value:s,children:[pe("div",{className:V(rr.modalHeader,ji.modalHeader),children:[j(yw,{onRefresh:s}),l,j("div",{className:"space",style:{flex:1}}),j(Yne,{children:j(IG,{})}),j(Wx,{css:rre,refreshing:g,onRefresh:s,className:ji.btnRefresh,refreshHotkeyEnabled:t}),j(Zu,{onClick:n})]}),j("div",{className:V(rr.modalBody,ji.modalBody),ref:r,children:j(Bx,{ref:o,shortcutEnabled:t,onScrollToTop:u,infiteScrollUseWindow:!1,scrollerRef:r,setRefreshing:h,setExtraInfo:c})})]})})}),are=vi.extend("RecHeader"),ly={btn:_r`
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    ${nd}
  `,icon:_r`
    svg {
      width: 14px;
      height: 14px;
    }
  `},Oo=ar({modalFeedVisible:Pt.initialShowMore,modalConfigVisible:!1}),ire=function(){return sr(Oo)},sre=()=>{Oo.modalFeedVisible=!0;},lre=()=>{Oo.modalFeedVisible=!1;},cre=()=>{Oo.modalConfigVisible=!0;},ure=()=>{Oo.modalConfigVisible=!1;},Hx=f.forwardRef(function({onRefresh:t,refreshing:n,leftSlot:r,rightSlot:o},a){const{accessKey:i,pureRecommend:s}=In(),{modalFeedVisible:l,modalConfigVisible:c}=sr(Oo);sn(["shift.comma"],h=>{Uu()||(Oo.modalConfigVisible=!Oo.modalConfigVisible);},{exactMatch:!0});const[u,d]=Une(),m=rt(()=>{var b;if(!s)return;const h=(b=u.current)==null?void 0:b.parentElement;if(!h)return;const v=h.getBoundingClientRect(),p=yx();if(v.top<p){const y=p-v.top+1;are("changing scroll on refresh: rect.top = %s, headerHeight = %s, scrollTop -= %s",v.top,p,y),document.documentElement.scrollTop-=y;}});f.useImperativeHandle(a,()=>({scroll:m}));const g=nne();return j(_t,{children:pe(nv.Provider,{value:t,children:[pe("div",{ref:u,className:"area-header",css:[_r`
              margin-bottom: 0;
              height: 50px;
            `,s&&_r`
                position: sticky;
                top: ${g-1}px; // 有缝隙, 故 -1 px
                z-index: 1000;
              `,s&&d&&_r`
                background-color: var(--bg1_float);
                box-shadow: 0 2px 4px rgb(0 0 0 / 8%);
              `,"",""],children:[pe("div",{className:"left",children:[j("svg",{className:"icon",children:j("use",{href:"#channel-cinephile"})}),j(yw,{onRefresh:t}),r]}),j("div",{className:"right",children:pe(Fs,{size:"small",children:[o,!i&&j(mw,{style:{marginLeft:5}}),j(qt,{onClick:cre,css:ly.btn,children:j(At,{name:"Config",css:ly.icon})}),j(Wx,{refreshing:n,onRefresh:t,refreshHotkeyEnabled:!(c||l)}),!s&&pe(qt,{css:nd,onClick:sre,children:[j("span",{children:"查看更多"}),j("svg",{css:_r`
                      width: 12px;
                      height: 12px;
                      margin-left: 2px;
                    `,children:j("use",{href:"#widget-arrow"})})]})]})})]}),j(ore,{show:l,onHide:lre}),j(Hq,{show:c,onHide:ure})]})})}),Wx=f.forwardRef(function({onRefresh:e,className:t="",style:n,refreshHotkeyEnabled:r,refreshing:o},a){r??(r=!0);const[i,s]=f.useState(0),l=f.useRef(null),c=rt(()=>{l.current&&(l.current.disabled||l.current.click());});f.useImperativeHandle(a,()=>({click:c}),[]),sn("r",()=>{Uu()||r&&c();},{exactMatch:!0});const u=tl(),{shuffleForFav:d,shuffleForWatchLater:m}=In(),g=u==="dynamic-feed"||u==="watchlater"&&!m||u==="fav"&&!d?"刷新":"换一换",h=rt(v=>(s(p=>p+360),e==null?void 0:e()));return pe(qt,{disabled:o,className:t,style:n,css:_r`
        ${nd}
        &.ant-btn:not(:disabled):focus-visible {
          outline: none;
        }
      `,ref:l,onClick:h,children:[j("svg",{style:{transform:`rotate(${i}deg)`,width:"11px",height:"11px",marginRight:5,transition:i===360?"transform .5s ease":"unset"},onTransitionEnd:()=>{s(0);},children:j("use",{href:"#widget-roll"})}),j("span",{children:g})]})}),dre={grid:_r`
    /* card=360 col-gap=16  */
    width: ${360*2+20}px;
    margin: 0 auto;
  `};function fre(){const{useNarrowMode:e}=In(),{modalFeedVisible:t,modalConfigVisible:n}=ire(),r=f.useRef(null),o=f.useRef(null),a=rt((...d)=>{var m;return (m=o.current)==null?void 0:m.refresh(...d)}),i=rt(()=>{var d;return (d=r.current)==null?void 0:d.scroll()}),[s,l]=f.useState(!1),[c,u]=f.useState(null);return pe("section",{"data-area":"推荐",children:[j(Hx,{ref:r,refreshing:s,onRefresh:a,leftSlot:c}),j(Bx,{ref:o,css:[e&&dre.grid,"",""],shortcutEnabled:!(t||n),infiteScrollUseWindow:!0,onScrollToTop:i,setRefreshing:l,setExtraInfo:u})]})}const mre=vi.extend("components:SectionRecommend");function gre(){const e=f.useMemo(()=>new Array(20).fill(0).map(()=>crypto.randomUUID()),[]),t=ei(),n=tl(),{refreshing:r,items:o,refresh:a,error:i,swr:s}=sx({tab:n,debug:mre,fetcher:zne,recreateService:!1});Qs(a);const l=!o.length||i||r&&!s;return pe("section",{"data-area":"推荐",children:[j(Hx,{refreshing:r,onRefresh:a}),j("div",{className:V(ov,rne,t?Sx:Cx),style:{marginBottom:t?30:0},children:l?e.map(c=>j(Mc,{},c)):o.map(c=>j(Mc,{item:c},c.uniqId))})]})}sa.extend(tY);(function(){if(location.pathname==="/"||location.pathname==="/index.html")return hre()})();async function hre(){return Aa(".adblock-tips"),Yi("html.gray",e=>e.classList.remove("gray")),Pt.pureRecommend?pre():vre()}async function vre(){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(ei()&&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 pr(200);}if(!n){console.error(`[${xn}]: init fail`);return}const r=document.createElement("section");n(r),Zs(r).render(j(Hh,{children:j(gre,{})})),ei()&&Aa(".bili-feed4 .header-channel");}async function pre(){var o,a;Fh&&await pr(500),ei()?((o=document.querySelector(".bili-feed4 .bili-feed4-layout"))==null||o.remove(),Aa(".bili-feed4 .header-channel"),Aa(".palette-button-wrap .flexible-roll-btn"),Yi(".palette-button-wrap .storage-box",i=>i.classList.remove("hidden")),Yi(".palette-button-wrap .top-btn-wrap .top-btn",i=>i.classList.add("visible")),Yi(".palette-button-wrap",i=>{i.style.position="absolute";})):((a=document.querySelector(".bili-layout"))==null||a.remove(),Aa(".bili-footer"),Aa(".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(ei()?"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),Zs(n).render(j(Hh,{children:j(fre,{})}));}

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

QingJ © 2025

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