bilibili-app-recommend

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

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

// ==UserScript==
// @name         bilibili-app-recommend
// @namespace    https://magicdawn.fun
// @version      0.19.0
// @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==

(i=>{if(typeof GM_addStyle=="function"){GM_addStyle(i);return}const e=document.createElement("style");e.textContent=i,document.head.append(e)})(" .i-icon{display:inline-block;color:inherit;font-style:normal;line-height:0;text-align:center;text-transform:none;vertical-align:-.125em;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.i-icon-spin svg{animation:i-icon-spin 1s infinite linear}.i-icon-rtl{transform:scaleX(-1)}@keyframes i-icon-spin{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes i-icon-spin{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.primary-btn:disabled:active,.primary-btn:disabled:hover{cursor:wait;background-color:inherit}.ant-btn{font-size:13px;line-height:24px}.ant-btn:disabled{cursor:wait}.ant-radio-button-wrapper-disabled{cursor:wait}body .ant-tooltip a{color:#1677ff;transition:color .3s}body .ant-tooltip a:visited{color:#1677ff}body .ant-tooltip a:hover{color:#69b1ff}body .ant-tooltip a:active{color:#0958d9}body button:where(.ant-switch):focus,body button:where(.ant-switch):active{background-color:#00000040;outline:unset}._modal-mask_1j5wc_1{position:fixed;left:0;top:0;right:0;bottom:0;background-color:#00000080;z-index:10002;display:flex;align-items:center;justify-content:center}._modal_1j5wc_1{width:500px;max-height:calc(90vh - 50px);background-color:#fff;border-radius:10px;padding:0 15px 15px;display:flex;flex-direction:column;overflow:hidden}._modal-header_1j5wc_23{padding-top:10px;padding-bottom:10px;border-bottom:none;display:flex;align-items:center}._modal-body_1j5wc_30{padding-top:0;flex-grow:1;overflow-y:scroll}._modal-title_1j5wc_35{font-size:1.5rem;margin-bottom:0;line-height:1.5;display:flex;align-items:center}._btn-close_1j5wc_42{margin-left:10px}._btn-close_1j5wc_42 svg{width:10px;height:10px;margin-right:3px;margin-top:-1px}body.dark ._btn-close_1j5wc_42{color:#eee!important;background-color:#333!important;border-color:transparent!important;height:auto;padding:8px 12px;line-height:16px;font-size:13px}._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_90sij_1{position:relative}._preview-card-wrapper_90sij_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_90sij_4 ._preview-card-inner_90sij_17{width:100%;height:100%}._watch-later_90sij_21{z-index:5}._badge_90sij_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_90sij_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_90sij_48{color:default}._btn-dislike_90sij_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_90sij_51 ._btn-dislike-icon_90sij_66{pointer-events:none;-webkit-user-select:none;user-select:none;width:12px;height:12px;color:#fff}._btn-dislike_90sij_51 ._btn-dislike-tip_90sij_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_90sij_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_90sij_88{border:1px solid #333}._disliked-wrapper_90sij_88 ._dislike-content-cover_90sij_102{border-top-left-radius:6px;border-top-right-radius:6px;padding-top:56.25%;position:relative}._disliked-wrapper_90sij_88 ._dislike-content-cover_90sij_102 ._dislike-content-cover-inner_90sij_108{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}._disliked-wrapper_90sij_88 ._dislike-content-cover_90sij_102 ._dislike-content-cover-inner_90sij_108 ._dislike-icon_90sij_119{margin-bottom:5px}._disliked-wrapper_90sij_88 ._dislike-content-cover_90sij_102 ._dislike-content-cover-inner_90sij_108 ._dislike-reason_90sij_122{font-size:20px;text-align:center}._disliked-wrapper_90sij_88 ._dislike-content-cover_90sij_102 ._dislike-content-cover-inner_90sij_108 ._dislike-desc_90sij_126{font-size:16px;text-align:center}._disliked-wrapper_90sij_88 ._dislike-content-action_90sij_130{flex:1;width:100%;border-top:1px solid #eee;display:flex;align-items:center;justify-content:center}body.dark ._disliked-wrapper_90sij_88 ._dislike-content-action_90sij_130{border-top:1px solid #333}._disliked-wrapper_90sij_88 ._dislike-content-action_90sij_130 button{font-size:16px;color:inherit;display:flex;align-items:center}body .bili-video-card__skeleton--cover,body .bili-video-card__skeleton--text,body .bili-video-card__skeleton--light,body .bili-video-card__skeleton--avatar{background:linear-gradient(135deg,rgba(0,0,0,.06) 25%,rgba(0,0,0,.15) 37%,rgba(0,0,0,.06) 63%)}body.dark .bili-video-card__skeleton--avatar{background-color:#444}._skeleton-active_90sij_156 .bili-video-card__skeleton--cover,._skeleton-active_90sij_156 .bili-video-card__skeleton--text,._skeleton-active_90sij_156 .bili-video-card__skeleton--light,._skeleton-active_90sij_156 .bili-video-card__skeleton--avatar{background-size:400% 100%;animation-name:_ant-skeleton-loading_90sij_1;animation-duration:2.165s;animation-timing-function:ease;animation-iteration-count:infinite}@keyframes _ant-skeleton-loading_90sij_1{0%{background-position:100% 50%}61.8%,to{background-position:0 50%}}._video-grid_65653_8{--video-card-border-radius: 6px;display:grid;position:relative;width:100%;grid-gap:20px 12px}@media (max-width: 1099.9px){._video-grid-new-homepage_65653_16{grid-template-columns:repeat(4,minmax(0,1fr))}._video-grid-new-homepage_65653_16._limit-two-lines_65653_19>*:nth-of-type(n+9){display:none!important}}@media (min-width: 1100px) and (max-width: 1700.9px){._video-grid-new-homepage_65653_16{grid-template-columns:repeat(5,minmax(0,1fr))}._video-grid-new-homepage_65653_16._limit-two-lines_65653_19>*:nth-of-type(n+11){display:none!important}}@media (min-width: 1701px) and (max-width: 2199.9px){._video-grid-new-homepage_65653_16{grid-template-columns:repeat(6,minmax(0,1fr))}._video-grid-new-homepage_65653_16._limit-two-lines_65653_19>*:nth-of-type(n+13){display:none!important}}@media (min-width: 2200px){._video-grid-new-homepage_65653_16{grid-template-columns:repeat(7,minmax(0,1fr))}._video-grid-new-homepage_65653_16._limit-two-lines_65653_19>*:nth-of-type(n+15){display:none!important}}._video-grid-internal-testing_65653_51{grid-gap:20px 20px}@media (max-width: 1399px){._video-grid-internal-testing_65653_51{grid-template-columns:repeat(4,minmax(0,1fr))}._video-grid-internal-testing_65653_51._limit-one-line_65653_58>*:nth-of-type(n+5){display:none!important}._video-grid-internal-testing_65653_51._limit-two-lines_65653_19>*:nth-of-type(n+9){display:none!important}}@media (min-width: 1400px){._video-grid-internal-testing_65653_51{grid-template-columns:repeat(5,minmax(0,1fr))}._video-grid-internal-testing_65653_51._limit-one-line_65653_58>*:nth-of-type(n+6){display:none!important}._video-grid-internal-testing_65653_51._limit-two-lines_65653_19>*:nth-of-type(n+11){display:none!important}}._video-grid-container_65653_79{container-name:video-grid-container;container-type:inline-size}._video-grid-fancy_65653_83{--video-card-border-radius: 15px;grid-gap:50px 20px;grid-template-columns:repeat(5,minmax(0,1fr))}@container video-grid-container (width >= 616px){._video-grid-fancy_65653_83{grid-template-columns:repeat(2,minmax(0,1fr))}}@container video-grid-container (width >= 932px){._video-grid-fancy_65653_83{grid-template-columns:repeat(3,minmax(0,1fr))}}@container video-grid-container (width >= 1248px){._video-grid-fancy_65653_83{grid-template-columns:repeat(4,minmax(0,1fr))}}@container video-grid-container (width >= 1564px){._video-grid-fancy_65653_83{grid-template-columns:repeat(5,minmax(0,1fr))}}._narrow-mode_65653_111{grid-template-columns:repeat(2,minmax(0,1fr))!important}._config-icon_1xtyf_1{line-height:1;margin-right:5px;font-size:0}._settings-group_1xtyf_6{margin-bottom:10px}._settings-group_1xtyf_6 ._settings-group-title_1xtyf_9{font-size:2em;display:flex;align-items:center}._settings-group_1xtyf_6 ._settings-group-sub-title_1xtyf_14{font-size:1.3em;display:flex;align-items:center;margin-top:15px}._settings-group_1xtyf_6 ._settings-group-content_1xtyf_20{color:default}._settings-group_1xtyf_6 ._settings-group-content_1xtyf_20 button:first-child{margin-left:0}._row_1xtyf_26{display:flex;align-items:center;flex-wrap:wrap}._row_1xtyf_26 .primary-btn:first-child{margin-left:0}._check_1xtyf_34{margin-bottom:5px;margin-inline-start:0!important;margin-inline-end:5px!important}._setting-tabs_1xtyf_39.ant-tabs .ant-tabs-tab{padding-left:5px}._tab-pane_1xtyf_42{min-height:min(360px,calc(90vh - 121px));max-height:calc(90vh - 121px);overflow-y:scroll}._expand-btn_wdzp9_1{padding:0;width:31px;height:31px;border-radius:50%}._expand-btn_wdzp9_1 svg{width:13px;height:13px;transform:rotate(180deg)}._expand-btn_wdzp9_1 svg._expanded_wdzp9_12{transform:rotate(0)}body.dark ._expand-btn_wdzp9_1{color:#eee!important;border-color:transparent!important;background-color:#333!important}body.dark ._expand-btn_wdzp9_1:hover{background-color:#555!important}._modal-mask_7bwzz_1._narrow-mode_7bwzz_1{background-color:#000000e6}._modal_7bwzz_1{width:calc(100vw - 30px);height:calc(100vh - 30px);max-height:unset;padding-right:0}._modal_7bwzz_1._narrow-mode_7bwzz_1{width:606px;height:calc(100vh - 10px);border:none}body.dark ._modal_7bwzz_1._narrow-mode_7bwzz_1{border:none}._modal-header_7bwzz_18,._modal-body_7bwzz_19{padding-right:15px}body.dark ._btn-refresh_7bwzz_22{color:#eee!important;background-color:#333!important;border-color:transparent!important;height:auto;padding:8px 12px;line-height:16px;font-size:13px} ");

(async function (m, Ag, GP, HC, XP, qP) {
  '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 m__namespace = /*#__PURE__*/_interopNamespaceDefault(m);
  const HC__namespace = /*#__PURE__*/_interopNamespaceDefault(HC);

  var FP=Object.defineProperty;var DP=(e,t,n)=>t in e?FP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var $t=(e,t,n)=>(DP(e,typeof t!="symbol"?t+"":t,n),n),_f=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var ze=(e,t,n)=>(_f(e,t,"read from private field"),n?n.call(e):t.get(e)),yn=(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);},Ht=(e,t,n,r)=>(_f(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var kf=(e,t,n,r)=>({set _(o){Ht(e,t,o,n);},get _(){return ze(e,t,r)}}),tn=(e,t,n)=>(_f(e,t,"access private method"),n);var oi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Sn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function YP(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 WC={exports:{}},Xu={};/**
   * @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 ZP=m,QP=Symbol.for("react.element"),JP=Symbol.for("react.fragment"),eO=Object.prototype.hasOwnProperty,tO=ZP.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,nO={key:!0,ref:!0,__self:!0,__source:!0};function GC(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)eO.call(t,r)&&!nO.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:QP,type:e,key:a,ref:i,props:o,_owner:tO.current}}Xu.Fragment=JP;Xu.jsx=GC;Xu.jsxs=GC;WC.exports=Xu;var Gs=WC.exports;function rO(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 oO(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 aO=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(oO(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var a=rO(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}(),kn="-ms-",Qc="-moz-",Lt="-webkit-",KC="comm",Lg="rule",Fg="decl",iO="@import",UC="@keyframes",sO="@layer",lO=Math.abs,qu=String.fromCharCode,cO=Object.assign;function uO(e,t){return On(e,0)^45?(((t<<2^On(e,0))<<2^On(e,1))<<2^On(e,2))<<2^On(e,3):0}function XC(e){return e.trim()}function dO(e,t){return (e=t.exec(e))?e[0]:e}function Ft(e,t,n){return e.replace(t,n)}function Km(e,t){return e.indexOf(t)}function On(e,t){return e.charCodeAt(t)|0}function Ks(e,t,n){return e.slice(t,n)}function Jr(e){return e.length}function Dg(e){return e.length}function sc(e,t){return t.push(e),e}function fO(e,t){return e.map(t).join("")}var Yu=1,Si=1,qC=0,nr=0,vn=0,Bi="";function Zu(e,t,n,r,o,a,i){return {value:e,root:t,parent:n,type:r,props:o,children:a,line:Yu,column:Si,length:i,return:""}}function cs(e,t){return cO(Zu("",null,null,"",null,null,0),e,{length:-e.length},t)}function mO(){return vn}function hO(){return vn=nr>0?On(Bi,--nr):0,Si--,vn===10&&(Si=1,Yu--),vn}function fr(){return vn=nr<qC?On(Bi,nr++):0,Si++,vn===10&&(Si=1,Yu++),vn}function oo(){return On(Bi,nr)}function kc(){return nr}function bl(e,t){return Ks(Bi,e,t)}function Us(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 YC(e){return Yu=Si=1,qC=Jr(Bi=e),nr=0,[]}function ZC(e){return Bi="",e}function Nc(e){return XC(bl(nr-1,Um(e===91?e+2:e===40?e+1:e)))}function gO(e){for(;(vn=oo())&&vn<33;)fr();return Us(e)>2||Us(vn)>3?"":" "}function vO(e,t){for(;--t&&fr()&&!(vn<48||vn>102||vn>57&&vn<65||vn>70&&vn<97););return bl(e,kc()+(t<6&&oo()==32&&fr()==32))}function Um(e){for(;fr();)switch(vn){case e:return nr;case 34:case 39:e!==34&&e!==39&&Um(vn);break;case 40:e===41&&Um(e);break;case 92:fr();break}return nr}function pO(e,t){for(;fr()&&e+vn!==57;)if(e+vn===84&&oo()===47)break;return "/*"+bl(t,nr-1)+"*"+qu(e===47?e:fr())}function bO(e){for(;!Us(oo());)fr();return bl(e,nr)}function QC(e){return ZC(Ac("",null,null,null,[""],e=YC(e),0,[0],e))}function Ac(e,t,n,r,o,a,i,s,l){for(var c=0,u=0,d=i,f=0,h=0,g=0,v=1,p=1,b=1,y=0,C="",w=o,x=a,E=r,S=C;p;)switch(g=y,y=fr()){case 40:if(g!=108&&On(S,d-1)==58){Km(S+=Ft(Nc(y),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:S+=Nc(y);break;case 9:case 10:case 13:case 32:S+=gO(g);break;case 92:S+=vO(kc()-1,7);continue;case 47:switch(oo()){case 42:case 47:sc(yO(pO(fr(),kc()),t,n),l);break;default:S+="/";}break;case 123*v:s[c++]=Jr(S)*b;case 125*v:case 59:case 0:switch(y){case 0:case 125:p=0;case 59+u:b==-1&&(S=Ft(S,/\f/g,"")),h>0&&Jr(S)-d&&sc(h>32?b0(S+";",r,n,d-1):b0(Ft(S," ","")+";",r,n,d-2),l);break;case 59:S+=";";default:if(sc(E=p0(S,t,n,c,u,o,s,C,w=[],x=[],d),a),y===123)if(u===0)Ac(S,t,E,E,w,a,d,s,x);else switch(f===99&&On(S,3)===110?100:f){case 100:case 108:case 109:case 115:Ac(e,E,E,r&&sc(p0(e,E,E,0,0,o,s,C,o,w=[],d),x),o,x,d,s,r?w:x);break;default:Ac(S,E,E,E,[""],x,0,s,x);}}c=u=h=0,v=b=1,C=S="",d=i;break;case 58:d=1+Jr(S),h=g;default:if(v<1){if(y==123)--v;else if(y==125&&v++==0&&hO()==125)continue}switch(S+=qu(y),y*v){case 38:b=u>0?1:(S+="\f",-1);break;case 44:s[c++]=(Jr(S)-1)*b,b=1;break;case 64:oo()===45&&(S+=Nc(fr())),f=oo(),u=d=Jr(C=S+=bO(kc())),y++;break;case 45:g===45&&Jr(S)==2&&(v=0);}}return a}function p0(e,t,n,r,o,a,i,s,l,c,u){for(var d=o-1,f=o===0?a:[""],h=Dg(f),g=0,v=0,p=0;g<r;++g)for(var b=0,y=Ks(e,d+1,d=lO(v=i[g])),C=e;b<h;++b)(C=XC(v>0?f[b]+" "+y:Ft(y,/&\f/g,f[b])))&&(l[p++]=C);return Zu(e,t,n,o===0?Lg:s,l,c,u)}function yO(e,t,n){return Zu(e,t,n,KC,qu(mO()),Ks(e,2,-2),0)}function b0(e,t,n,r){return Zu(e,t,n,Fg,Ks(e,0,r),Ks(e,r+1,-1),r)}function fa(e,t){for(var n="",r=Dg(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function JC(e,t,n,r){switch(e.type){case sO:if(e.children.length)break;case iO:case Fg:return e.return=e.return||e.value;case KC:return "";case UC:return e.return=e.value+"{"+fa(e.children,r)+"}";case Lg:e.value=e.props.join(",");}return Jr(n=fa(e.children,r))?e.return=e.value+"{"+n+"}":""}function CO(e){var t=Dg(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 SO(e){return function(t){t.root||(t=t.return)&&e(t);}}function wO(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var $O=function(t,n,r){for(var o=0,a=0;o=a,a=oo(),o===38&&a===12&&(n[r]=1),!Us(a);)fr();return bl(t,nr)},xO=function(t,n){var r=-1,o=44;do switch(Us(o)){case 0:o===38&&oo()===12&&(n[r]=1),t[r]+=$O(nr-1,n,r);break;case 2:t[r]+=Nc(o);break;case 4:if(o===44){t[++r]=oo()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=qu(o);}while(o=fr());return t},EO=function(t,n){return ZC(xO(YC(t),n))},y0=new WeakMap,IO=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&&!y0.get(r))&&!o){y0.set(t,!0);for(var a=[],i=EO(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];}}},PO=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="");}};function eS(e,t){switch(uO(e,t)){case 5103:return Lt+"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 Lt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Lt+e+Qc+e+kn+e+e;case 6828:case 4268:return Lt+e+kn+e+e;case 6165:return Lt+e+kn+"flex-"+e+e;case 5187:return Lt+e+Ft(e,/(\w+).+(:[^]+)/,Lt+"box-$1$2"+kn+"flex-$1$2")+e;case 5443:return Lt+e+kn+"flex-item-"+Ft(e,/flex-|-self/,"")+e;case 4675:return Lt+e+kn+"flex-line-pack"+Ft(e,/align-content|flex-|-self/,"")+e;case 5548:return Lt+e+kn+Ft(e,"shrink","negative")+e;case 5292:return Lt+e+kn+Ft(e,"basis","preferred-size")+e;case 6060:return Lt+"box-"+Ft(e,"-grow","")+Lt+e+kn+Ft(e,"grow","positive")+e;case 4554:return Lt+Ft(e,/([^-])(transform)/g,"$1"+Lt+"$2")+e;case 6187:return Ft(Ft(Ft(e,/(zoom-|grab)/,Lt+"$1"),/(image-set)/,Lt+"$1"),e,"")+e;case 5495:case 3959:return Ft(e,/(image-set\([^]*)/,Lt+"$1$`$1");case 4968:return Ft(Ft(e,/(.+:)(flex-)?(.*)/,Lt+"box-pack:$3"+kn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Lt+e+e;case 4095:case 3583:case 4068:case 2532:return Ft(e,/(.+)-inline(.+)/,Lt+"$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(Jr(e)-1-t>6)switch(On(e,t+1)){case 109:if(On(e,t+4)!==45)break;case 102:return Ft(e,/(.+:)(.+)-([^]+)/,"$1"+Lt+"$2-$3$1"+Qc+(On(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return ~Km(e,"stretch")?eS(Ft(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(On(e,t+1)!==115)break;case 6444:switch(On(e,Jr(e)-3-(~Km(e,"!important")&&10))){case 107:return Ft(e,":",":"+Lt)+e;case 101:return Ft(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Lt+(On(e,14)===45?"inline-":"")+"box$3$1"+Lt+"$2$3$1"+kn+"$2box$3")+e}break;case 5936:switch(On(e,t+11)){case 114:return Lt+e+kn+Ft(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Lt+e+kn+Ft(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Lt+e+kn+Ft(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Lt+e+kn+e+e}return e}var OO=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Fg:t.return=eS(t.value,t.length);break;case UC:return fa([cs(t,{value:Ft(t.value,"@","@"+Lt)})],o);case Lg:if(t.length)return fO(t.props,function(a){switch(dO(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return fa([cs(t,{props:[Ft(a,/:(read-\w+)/,":"+Qc+"$1")]})],o);case"::placeholder":return fa([cs(t,{props:[Ft(a,/:(plac\w+)/,":"+Lt+"input-$1")]}),cs(t,{props:[Ft(a,/:(plac\w+)/,":"+Qc+"$1")]}),cs(t,{props:[Ft(a,/:(plac\w+)/,kn+"input-$1")]})],o)}return ""})}},MO=[OO],tS=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||MO,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=[IO,PO];{var u,d=[JC,SO(function(v){u.insert(v);})],f=CO(c.concat(o,d)),h=function(p){return fa(QC(p),f)};l=function(p,b,y,C){u=y,h(p?p+"{"+b.styles+"}":b.styles),C&&(g.inserted[b.name]=!0);};}var g={key:n,sheet:new aO({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 g.sheet.hydrate(s),g},nS={exports:{}},zt={};/** @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 xn=typeof Symbol=="function"&&Symbol.for,jg=xn?Symbol.for("react.element"):60103,zg=xn?Symbol.for("react.portal"):60106,Qu=xn?Symbol.for("react.fragment"):60107,Ju=xn?Symbol.for("react.strict_mode"):60108,ed=xn?Symbol.for("react.profiler"):60114,td=xn?Symbol.for("react.provider"):60109,nd=xn?Symbol.for("react.context"):60110,Bg=xn?Symbol.for("react.async_mode"):60111,rd=xn?Symbol.for("react.concurrent_mode"):60111,od=xn?Symbol.for("react.forward_ref"):60112,ad=xn?Symbol.for("react.suspense"):60113,RO=xn?Symbol.for("react.suspense_list"):60120,id=xn?Symbol.for("react.memo"):60115,sd=xn?Symbol.for("react.lazy"):60116,TO=xn?Symbol.for("react.block"):60121,_O=xn?Symbol.for("react.fundamental"):60117,kO=xn?Symbol.for("react.responder"):60118,NO=xn?Symbol.for("react.scope"):60119;function br(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case jg:switch(e=e.type,e){case Bg:case rd:case Qu:case ed:case Ju:case ad:return e;default:switch(e=e&&e.$$typeof,e){case nd:case od:case sd:case id:case td:return e;default:return t}}case zg:return t}}}function rS(e){return br(e)===rd}zt.AsyncMode=Bg;zt.ConcurrentMode=rd;zt.ContextConsumer=nd;zt.ContextProvider=td;zt.Element=jg;zt.ForwardRef=od;zt.Fragment=Qu;zt.Lazy=sd;zt.Memo=id;zt.Portal=zg;zt.Profiler=ed;zt.StrictMode=Ju;zt.Suspense=ad;zt.isAsyncMode=function(e){return rS(e)||br(e)===Bg};zt.isConcurrentMode=rS;zt.isContextConsumer=function(e){return br(e)===nd};zt.isContextProvider=function(e){return br(e)===td};zt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===jg};zt.isForwardRef=function(e){return br(e)===od};zt.isFragment=function(e){return br(e)===Qu};zt.isLazy=function(e){return br(e)===sd};zt.isMemo=function(e){return br(e)===id};zt.isPortal=function(e){return br(e)===zg};zt.isProfiler=function(e){return br(e)===ed};zt.isStrictMode=function(e){return br(e)===Ju};zt.isSuspense=function(e){return br(e)===ad};zt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Qu||e===rd||e===ed||e===Ju||e===ad||e===RO||typeof e=="object"&&e!==null&&(e.$$typeof===sd||e.$$typeof===id||e.$$typeof===td||e.$$typeof===nd||e.$$typeof===od||e.$$typeof===_O||e.$$typeof===kO||e.$$typeof===NO||e.$$typeof===TO)};zt.typeOf=br;nS.exports=zt;var AO=nS.exports,oS=AO,LO={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},FO={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},aS={};aS[oS.ForwardRef]=LO;aS[oS.Memo]=FO;var DO=!0;function Hg(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" ";}),r}var iS=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||DO===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles);},Vg=function(t,n,r){iS(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 jO(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 zO={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},BO=/[A-Z]|^ms/g,HO=/_EMO_([^_]+?)_([^]*?)_EMO_/g,sS=function(t){return t.charCodeAt(1)===45},C0=function(t){return t!=null&&typeof t!="boolean"},Nf=wO(function(e){return sS(e)?e:e.replace(BO,"-$&").toLowerCase()}),S0=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(HO,function(r,o,a){return eo={name:o,styles:a,next:eo},o})}return zO[t]!==1&&!sS(t)&&typeof n=="number"&&n!==0?n+"px":n};function Xs(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 eo={name:n.name,styles:n.styles,next:eo},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)eo={name:r.name,styles:r.styles,next:eo},r=r.next;var o=n.styles+";";return o}return VO(e,t,n)}case"function":{if(e!==void 0){var a=eo,i=n(e);return eo=a,Xs(e,t,i)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function VO(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Xs(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]+"}":C0(i)&&(r+=Nf(a)+":"+S0(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++)C0(i[s])&&(r+=Nf(a)+":"+S0(a,i[s])+";");else {var l=Xs(e,t,i);switch(a){case"animation":case"animationName":{r+=Nf(a)+":"+l+";";break}default:r+=a+"{"+l+"}";}}}return r}var w0=/label:\s*([^\s;\n{]+)\s*(;|$)/g,eo,mi=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="";eo=void 0;var i=t[0];i==null||i.raw===void 0?(o=!1,a+=Xs(r,n,i)):a+=i[0];for(var s=1;s<t.length;s++)a+=Xs(r,n,t[s]),o&&(a+=i[s]);w0.lastIndex=0;for(var l="",c;(c=w0.exec(a))!==null;)l+="-"+c[1];var u=jO(a)+l;return {name:u,styles:a,next:eo}},WO=function(t){return t()},lS=m__namespace.useInsertionEffect?m__namespace.useInsertionEffect:!1,GO=lS||WO,$0=lS||m__namespace.useLayoutEffect,ld={}.hasOwnProperty,cS=m__namespace.createContext(typeof HTMLElement<"u"?tS({key:"css"}):null);cS.Provider;var uS=function(t){return m.forwardRef(function(n,r){var o=m.useContext(cS);return t(n,o,r)})},dS=m__namespace.createContext({}),Xm="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",fS=function(t,n){var r={};for(var o in n)ld.call(n,o)&&(r[o]=n[o]);return r[Xm]=t,r},KO=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return iS(n,r,o),GO(function(){return Vg(n,r,o)}),null},UO=uS(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[Xm],a=[r],i="";typeof e.className=="string"?i=Hg(t.registered,a,e.className):e.className!=null&&(i=e.className+" ");var s=mi(a,void 0,m__namespace.useContext(dS));i+=t.key+"-"+s.name;var l={};for(var c in e)ld.call(e,c)&&c!=="css"&&c!==Xm&&(l[c]=e[c]);return l.ref=n,l.className=i,m__namespace.createElement(m__namespace.Fragment,null,m__namespace.createElement(KO,{cache:t,serialized:s,isStringTag:typeof o=="string"}),m__namespace.createElement(o,l))}),mS=UO,It=Gs.Fragment;function F(e,t,n){return ld.call(t,"css")?Gs.jsx(mS,fS(e,t),n):Gs.jsx(e,t,n)}function be(e,t,n){return ld.call(t,"css")?Gs.jsxs(mS,fS(e,t),n):Gs.jsxs(e,t,n)}function XO(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 Wg=XO;function qO(){this.__data__=[],this.size=0;}var YO=qO;function ZO(e,t){return e===t||e!==e&&t!==t}var Gg=ZO,QO=Gg;function JO(e,t){for(var n=e.length;n--;)if(QO(e[n][0],t))return n;return -1}var cd=JO,eM=cd,tM=Array.prototype,nM=tM.splice;function rM(e){var t=this.__data__,n=eM(t,e);if(n<0)return !1;var r=t.length-1;return n==r?t.pop():nM.call(t,n,1),--this.size,!0}var oM=rM,aM=cd;function iM(e){var t=this.__data__,n=aM(t,e);return n<0?void 0:t[n][1]}var sM=iM,lM=cd;function cM(e){return lM(this.__data__,e)>-1}var uM=cM,dM=cd;function fM(e,t){var n=this.__data__,r=dM(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var mM=fM,hM=YO,gM=oM,vM=sM,pM=uM,bM=mM;function Hi(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]);}}Hi.prototype.clear=hM;Hi.prototype.delete=gM;Hi.prototype.get=vM;Hi.prototype.has=pM;Hi.prototype.set=bM;var ud=Hi,yM=ud;function CM(){this.__data__=new yM,this.size=0;}var SM=CM;function wM(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var $M=wM;function xM(e){return this.__data__.get(e)}var EM=xM;function IM(e){return this.__data__.has(e)}var PM=IM,OM=typeof oi=="object"&&oi&&oi.Object===Object&&oi,hS=OM,MM=hS,RM=typeof self=="object"&&self&&self.Object===Object&&self,TM=MM||RM||Function("return this")(),Vr=TM,_M=Vr,kM=_M.Symbol,Vi=kM,x0=Vi,gS=Object.prototype,NM=gS.hasOwnProperty,AM=gS.toString,us=x0?x0.toStringTag:void 0;function LM(e){var t=NM.call(e,us),n=e[us];try{e[us]=void 0;var r=!0;}catch{}var o=AM.call(e);return r&&(t?e[us]=n:delete e[us]),o}var FM=LM,DM=Object.prototype,jM=DM.toString;function zM(e){return jM.call(e)}var BM=zM,E0=Vi,HM=FM,VM=BM,WM="[object Null]",KM="[object Undefined]",I0=E0?E0.toStringTag:void 0;function UM(e){return e==null?e===void 0?KM:WM:I0&&I0 in Object(e)?HM(e):VM(e)}var Wi=UM;function XM(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var co=XM,qM=Wi,YM=co,ZM="[object AsyncFunction]",QM="[object Function]",JM="[object GeneratorFunction]",eR="[object Proxy]";function tR(e){if(!YM(e))return !1;var t=qM(e);return t==QM||t==JM||t==ZM||t==eR}var vS=tR,nR=Vr,rR=nR["__core-js_shared__"],oR=rR,Af=oR,P0=function(){var e=/[^.]+$/.exec(Af&&Af.keys&&Af.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function aR(e){return !!P0&&P0 in e}var iR=aR,sR=Function.prototype,lR=sR.toString;function cR(e){if(e!=null){try{return lR.call(e)}catch{}try{return e+""}catch{}}return ""}var pS=cR,uR=vS,dR=iR,fR=co,mR=pS,hR=/[\\^$.*+?()[\]{}|]/g,gR=/^\[object .+?Constructor\]$/,vR=Function.prototype,pR=Object.prototype,bR=vR.toString,yR=pR.hasOwnProperty,CR=RegExp("^"+bR.call(yR).replace(hR,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function SR(e){if(!fR(e)||dR(e))return !1;var t=uR(e)?CR:gR;return t.test(mR(e))}var wR=SR;function $R(e,t){return e==null?void 0:e[t]}var xR=$R,ER=wR,IR=xR;function PR(e,t){var n=IR(e,t);return ER(n)?n:void 0}var Ia=PR,OR=Ia,MR=Vr,RR=OR(MR,"Map"),Kg=RR,TR=Ia,_R=TR(Object,"create"),dd=_R,O0=dd;function kR(){this.__data__=O0?O0(null):{},this.size=0;}var NR=kR;function AR(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var LR=AR,FR=dd,DR="__lodash_hash_undefined__",jR=Object.prototype,zR=jR.hasOwnProperty;function BR(e){var t=this.__data__;if(FR){var n=t[e];return n===DR?void 0:n}return zR.call(t,e)?t[e]:void 0}var HR=BR,VR=dd,WR=Object.prototype,GR=WR.hasOwnProperty;function KR(e){var t=this.__data__;return VR?t[e]!==void 0:GR.call(t,e)}var UR=KR,XR=dd,qR="__lodash_hash_undefined__";function YR(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=XR&&t===void 0?qR:t,this}var ZR=YR,QR=NR,JR=LR,eT=HR,tT=UR,nT=ZR;function Gi(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]);}}Gi.prototype.clear=QR;Gi.prototype.delete=JR;Gi.prototype.get=eT;Gi.prototype.has=tT;Gi.prototype.set=nT;var rT=Gi,M0=rT,oT=ud,aT=Kg;function iT(){this.size=0,this.__data__={hash:new M0,map:new(aT||oT),string:new M0};}var sT=iT;function lT(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var cT=lT,uT=cT;function dT(e,t){var n=e.__data__;return uT(t)?n[typeof t=="string"?"string":"hash"]:n.map}var fd=dT,fT=fd;function mT(e){var t=fT(this,e).delete(e);return this.size-=t?1:0,t}var hT=mT,gT=fd;function vT(e){return gT(this,e).get(e)}var pT=vT,bT=fd;function yT(e){return bT(this,e).has(e)}var CT=yT,ST=fd;function wT(e,t){var n=ST(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var $T=wT,xT=sT,ET=hT,IT=pT,PT=CT,OT=$T;function Ki(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]);}}Ki.prototype.clear=xT;Ki.prototype.delete=ET;Ki.prototype.get=IT;Ki.prototype.has=PT;Ki.prototype.set=OT;var Ug=Ki,MT=ud,RT=Kg,TT=Ug,_T=200;function kT(e,t){var n=this.__data__;if(n instanceof MT){var r=n.__data__;if(!RT||r.length<_T-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new TT(r);}return n.set(e,t),this.size=n.size,this}var NT=kT,AT=ud,LT=SM,FT=$M,DT=EM,jT=PM,zT=NT;function Ui(e){var t=this.__data__=new AT(e);this.size=t.size;}Ui.prototype.clear=LT;Ui.prototype.delete=FT;Ui.prototype.get=DT;Ui.prototype.has=jT;Ui.prototype.set=zT;var Xg=Ui;function BT(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var HT=BT,VT=Ia,WT=function(){try{var e=VT(Object,"defineProperty");return e({},"",{}),e}catch{}}(),bS=WT,R0=bS;function GT(e,t,n){t=="__proto__"&&R0?R0(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n;}var yS=GT,KT=yS,UT=Gg,XT=Object.prototype,qT=XT.hasOwnProperty;function YT(e,t,n){var r=e[t];(!(qT.call(e,t)&&UT(r,n))||n===void 0&&!(t in e))&&KT(e,t,n);}var qg=YT,ZT=qg,QT=yS;function JT(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?QT(n,s,l):ZT(n,s,l);}return n}var yl=JT;function e_(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var t_=e_;function n_(e){return e!=null&&typeof e=="object"}var Wo=n_,r_=Wi,o_=Wo,a_="[object Arguments]";function i_(e){return o_(e)&&r_(e)==a_}var s_=i_,T0=s_,l_=Wo,CS=Object.prototype,c_=CS.hasOwnProperty,u_=CS.propertyIsEnumerable,d_=T0(function(){return arguments}())?T0:function(e){return l_(e)&&c_.call(e,"callee")&&!u_.call(e,"callee")},Yg=d_,f_=Array.isArray,Wr=f_,Jc={exports:{}};function m_(){return !1}var h_=m_;Jc.exports;(function(e,t){var n=Vr,r=h_,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;})(Jc,Jc.exports);var Zg=Jc.exports,g_=9007199254740991,v_=/^(?:0|[1-9]\d*)$/;function p_(e,t){var n=typeof e;return t=t??g_,!!t&&(n=="number"||n!="symbol"&&v_.test(e))&&e>-1&&e%1==0&&e<t}var Qg=p_,b_=9007199254740991;function y_(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=b_}var Jg=y_,C_=Wi,S_=Jg,w_=Wo,$_="[object Arguments]",x_="[object Array]",E_="[object Boolean]",I_="[object Date]",P_="[object Error]",O_="[object Function]",M_="[object Map]",R_="[object Number]",T_="[object Object]",__="[object RegExp]",k_="[object Set]",N_="[object String]",A_="[object WeakMap]",L_="[object ArrayBuffer]",F_="[object DataView]",D_="[object Float32Array]",j_="[object Float64Array]",z_="[object Int8Array]",B_="[object Int16Array]",H_="[object Int32Array]",V_="[object Uint8Array]",W_="[object Uint8ClampedArray]",G_="[object Uint16Array]",K_="[object Uint32Array]",Zt={};Zt[D_]=Zt[j_]=Zt[z_]=Zt[B_]=Zt[H_]=Zt[V_]=Zt[W_]=Zt[G_]=Zt[K_]=!0;Zt[$_]=Zt[x_]=Zt[L_]=Zt[E_]=Zt[F_]=Zt[I_]=Zt[P_]=Zt[O_]=Zt[M_]=Zt[R_]=Zt[T_]=Zt[__]=Zt[k_]=Zt[N_]=Zt[A_]=!1;function U_(e){return w_(e)&&S_(e.length)&&!!Zt[C_(e)]}var X_=U_;function q_(e){return function(t){return e(t)}}var ev=q_,eu={exports:{}};eu.exports;(function(e,t){var n=hS,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;})(eu,eu.exports);var tv=eu.exports,Y_=X_,Z_=ev,_0=tv,k0=_0&&_0.isTypedArray,Q_=k0?Z_(k0):Y_,SS=Q_,J_=t_,ek=Yg,tk=Wr,nk=Zg,rk=Qg,ok=SS,ak=Object.prototype,ik=ak.hasOwnProperty;function sk(e,t){var n=tk(e),r=!n&&ek(e),o=!n&&!r&&nk(e),a=!n&&!r&&!o&&ok(e),i=n||r||o||a,s=i?J_(e.length,String):[],l=s.length;for(var c in e)(t||ik.call(e,c))&&!(i&&(c=="length"||o&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||rk(c,l)))&&s.push(c);return s}var wS=sk,lk=Object.prototype;function ck(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||lk;return e===n}var nv=ck;function uk(e,t){return function(n){return e(t(n))}}var $S=uk,dk=$S,fk=dk(Object.keys,Object),mk=fk,hk=nv,gk=mk,vk=Object.prototype,pk=vk.hasOwnProperty;function bk(e){if(!hk(e))return gk(e);var t=[];for(var n in Object(e))pk.call(e,n)&&n!="constructor"&&t.push(n);return t}var yk=bk,Ck=vS,Sk=Jg;function wk(e){return e!=null&&Sk(e.length)&&!Ck(e)}var xS=wk,$k=wS,xk=yk,Ek=xS;function Ik(e){return Ek(e)?$k(e):xk(e)}var Cl=Ik,Pk=yl,Ok=Cl;function Mk(e,t){return e&&Pk(t,Ok(t),e)}var Rk=Mk;function Tk(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var _k=Tk,kk=co,Nk=nv,Ak=_k,Lk=Object.prototype,Fk=Lk.hasOwnProperty;function Dk(e){if(!kk(e))return Ak(e);var t=Nk(e),n=[];for(var r in e)r=="constructor"&&(t||!Fk.call(e,r))||n.push(r);return n}var jk=Dk,zk=wS,Bk=jk,Hk=xS;function Vk(e){return Hk(e)?zk(e,!0):Bk(e)}var rv=Vk,Wk=yl,Gk=rv;function Kk(e,t){return e&&Wk(t,Gk(t),e)}var Uk=Kk,tu={exports:{}};tu.exports;(function(e,t){var n=Vr,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,f=s?s(d):new c.constructor(d);return c.copy(f),f}e.exports=l;})(tu,tu.exports);var Xk=tu.exports;function qk(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var ES=qk;function Yk(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 Zk=Yk;function Qk(){return []}var IS=Qk,Jk=Zk,eN=IS,tN=Object.prototype,nN=tN.propertyIsEnumerable,N0=Object.getOwnPropertySymbols,rN=N0?function(e){return e==null?[]:(e=Object(e),Jk(N0(e),function(t){return nN.call(e,t)}))}:eN,ov=rN,oN=yl,aN=ov;function iN(e,t){return oN(e,aN(e),t)}var sN=iN;function lN(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var av=lN,cN=$S,uN=cN(Object.getPrototypeOf,Object),iv=uN,dN=av,fN=iv,mN=ov,hN=IS,gN=Object.getOwnPropertySymbols,vN=gN?function(e){for(var t=[];e;)dN(t,mN(e)),e=fN(e);return t}:hN,PS=vN,pN=yl,bN=PS;function yN(e,t){return pN(e,bN(e),t)}var CN=yN,SN=av,wN=Wr;function $N(e,t,n){var r=t(e);return wN(e)?r:SN(r,n(e))}var OS=$N,xN=OS,EN=ov,IN=Cl;function PN(e){return xN(e,IN,EN)}var MS=PN,ON=OS,MN=PS,RN=rv;function TN(e){return ON(e,RN,MN)}var RS=TN,_N=Ia,kN=Vr,NN=_N(kN,"DataView"),AN=NN,LN=Ia,FN=Vr,DN=LN(FN,"Promise"),jN=DN,zN=Ia,BN=Vr,HN=zN(BN,"Set"),TS=HN,VN=Ia,WN=Vr,GN=VN(WN,"WeakMap"),KN=GN,qm=AN,Ym=Kg,Zm=jN,Qm=TS,Jm=KN,_S=Wi,Xi=pS,A0="[object Map]",UN="[object Object]",L0="[object Promise]",F0="[object Set]",D0="[object WeakMap]",j0="[object DataView]",XN=Xi(qm),qN=Xi(Ym),YN=Xi(Zm),ZN=Xi(Qm),QN=Xi(Jm),Zo=_S;(qm&&Zo(new qm(new ArrayBuffer(1)))!=j0||Ym&&Zo(new Ym)!=A0||Zm&&Zo(Zm.resolve())!=L0||Qm&&Zo(new Qm)!=F0||Jm&&Zo(new Jm)!=D0)&&(Zo=function(e){var t=_S(e),n=t==UN?e.constructor:void 0,r=n?Xi(n):"";if(r)switch(r){case XN:return j0;case qN:return A0;case YN:return L0;case ZN:return F0;case QN:return D0}return t});var md=Zo,JN=Object.prototype,e3=JN.hasOwnProperty;function t3(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&e3.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var n3=t3,r3=Vr,o3=r3.Uint8Array,kS=o3,z0=kS;function a3(e){var t=new e.constructor(e.byteLength);return new z0(t).set(new z0(e)),t}var sv=a3,i3=sv;function s3(e,t){var n=t?i3(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var l3=s3,c3=/\w*$/;function u3(e){var t=new e.constructor(e.source,c3.exec(e));return t.lastIndex=e.lastIndex,t}var d3=u3,B0=Vi,H0=B0?B0.prototype:void 0,V0=H0?H0.valueOf:void 0;function f3(e){return V0?Object(V0.call(e)):{}}var m3=f3,h3=sv;function g3(e,t){var n=t?h3(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var v3=g3,p3=sv,b3=l3,y3=d3,C3=m3,S3=v3,w3="[object Boolean]",$3="[object Date]",x3="[object Map]",E3="[object Number]",I3="[object RegExp]",P3="[object Set]",O3="[object String]",M3="[object Symbol]",R3="[object ArrayBuffer]",T3="[object DataView]",_3="[object Float32Array]",k3="[object Float64Array]",N3="[object Int8Array]",A3="[object Int16Array]",L3="[object Int32Array]",F3="[object Uint8Array]",D3="[object Uint8ClampedArray]",j3="[object Uint16Array]",z3="[object Uint32Array]";function B3(e,t,n){var r=e.constructor;switch(t){case R3:return p3(e);case w3:case $3:return new r(+e);case T3:return b3(e,n);case _3:case k3:case N3:case A3:case L3:case F3:case D3:case j3:case z3:return S3(e,n);case x3:return new r;case E3:case O3:return new r(e);case I3:return y3(e);case P3:return new r;case M3:return C3(e)}}var H3=B3,V3=co,W0=Object.create,W3=function(){function e(){}return function(t){if(!V3(t))return {};if(W0)return W0(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),G3=W3,K3=G3,U3=iv,X3=nv;function q3(e){return typeof e.constructor=="function"&&!X3(e)?K3(U3(e)):{}}var Y3=q3,Z3=md,Q3=Wo,J3="[object Map]";function eA(e){return Q3(e)&&Z3(e)==J3}var tA=eA,nA=tA,rA=ev,G0=tv,K0=G0&&G0.isMap,oA=K0?rA(K0):nA,aA=oA,iA=md,sA=Wo,lA="[object Set]";function cA(e){return sA(e)&&iA(e)==lA}var uA=cA,dA=uA,fA=ev,U0=tv,X0=U0&&U0.isSet,mA=X0?fA(X0):dA,hA=mA,gA=Xg,vA=HT,pA=qg,bA=Rk,yA=Uk,CA=Xk,SA=ES,wA=sN,$A=CN,xA=MS,EA=RS,IA=md,PA=n3,OA=H3,MA=Y3,RA=Wr,TA=Zg,_A=aA,kA=co,NA=hA,AA=Cl,LA=rv,FA=1,DA=2,jA=4,NS="[object Arguments]",zA="[object Array]",BA="[object Boolean]",HA="[object Date]",VA="[object Error]",AS="[object Function]",WA="[object GeneratorFunction]",GA="[object Map]",KA="[object Number]",LS="[object Object]",UA="[object RegExp]",XA="[object Set]",qA="[object String]",YA="[object Symbol]",ZA="[object WeakMap]",QA="[object ArrayBuffer]",JA="[object DataView]",e4="[object Float32Array]",t4="[object Float64Array]",n4="[object Int8Array]",r4="[object Int16Array]",o4="[object Int32Array]",a4="[object Uint8Array]",i4="[object Uint8ClampedArray]",s4="[object Uint16Array]",l4="[object Uint32Array]",Ut={};Ut[NS]=Ut[zA]=Ut[QA]=Ut[JA]=Ut[BA]=Ut[HA]=Ut[e4]=Ut[t4]=Ut[n4]=Ut[r4]=Ut[o4]=Ut[GA]=Ut[KA]=Ut[LS]=Ut[UA]=Ut[XA]=Ut[qA]=Ut[YA]=Ut[a4]=Ut[i4]=Ut[s4]=Ut[l4]=!0;Ut[VA]=Ut[AS]=Ut[ZA]=!1;function Lc(e,t,n,r,o,a){var i,s=t&FA,l=t&DA,c=t&jA;if(n&&(i=o?n(e,r,o,a):n(e)),i!==void 0)return i;if(!kA(e))return e;var u=RA(e);if(u){if(i=PA(e),!s)return SA(e,i)}else {var d=IA(e),f=d==AS||d==WA;if(TA(e))return CA(e,s);if(d==LS||d==NS||f&&!o){if(i=l||f?{}:MA(e),!s)return l?$A(e,yA(i,e)):wA(e,bA(i,e))}else {if(!Ut[d])return o?e:{};i=OA(e,d,s);}}a||(a=new gA);var h=a.get(e);if(h)return h;a.set(e,i),NA(e)?e.forEach(function(p){i.add(Lc(p,t,n,p,e,a));}):_A(e)&&e.forEach(function(p,b){i.set(b,Lc(p,t,n,b,e,a));});var g=c?l?EA:xA:l?LA:AA,v=u?void 0:g(e);return vA(v||e,function(p,b){v&&(b=p,p=e[b]),pA(i,b,Lc(p,t,n,b,e,a));}),i}var FS=Lc,c4=Wi,u4=Wo,d4="[object Symbol]";function f4(e){return typeof e=="symbol"||u4(e)&&c4(e)==d4}var hd=f4,m4=Wr,h4=hd,g4=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,v4=/^\w*$/;function p4(e,t){if(m4(e))return !1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||h4(e)?!0:v4.test(e)||!g4.test(e)||t!=null&&e in Object(t)}var lv=p4,DS=Ug,b4="Expected a function";function cv(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(b4);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(cv.Cache||DS),n}cv.Cache=DS;var y4=cv,C4=y4,S4=500;function w4(e){var t=C4(e,function(r){return n.size===S4&&n.clear(),r}),n=t.cache;return t}var $4=w4,x4=$4,E4=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,I4=/\\(\\)?/g,P4=x4(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(E4,function(n,r,o,a){t.push(o?a.replace(I4,"$1"):r||n);}),t}),O4=P4,q0=Vi,M4=Wg,R4=Wr,T4=hd,_4=1/0,Y0=q0?q0.prototype:void 0,Z0=Y0?Y0.toString:void 0;function jS(e){if(typeof e=="string")return e;if(R4(e))return M4(e,jS)+"";if(T4(e))return Z0?Z0.call(e):"";var t=e+"";return t=="0"&&1/e==-_4?"-0":t}var k4=jS,N4=k4;function A4(e){return e==null?"":N4(e)}var L4=A4,F4=Wr,D4=lv,j4=O4,z4=L4;function B4(e,t){return F4(e)?e:D4(e,t)?[e]:j4(z4(e))}var qi=B4;function H4(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var V4=H4,W4=hd,G4=1/0;function K4(e){if(typeof e=="string"||W4(e))return e;var t=e+"";return t=="0"&&1/e==-G4?"-0":t}var Yi=K4,U4=qi,X4=Yi;function q4(e,t){t=U4(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[X4(t[n++])];return n&&n==r?e:void 0}var gd=q4;function Y4(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 Z4=Y4,Q4=gd,J4=Z4;function eL(e,t){return t.length<2?e:Q4(e,J4(t,0,-1))}var tL=eL,nL=qi,rL=V4,oL=tL,aL=Yi;function iL(e,t){return t=nL(t,e),e=oL(e,t),e==null||delete e[aL(rL(t))]}var sL=iL,lL=Wi,cL=iv,uL=Wo,dL="[object Object]",fL=Function.prototype,mL=Object.prototype,zS=fL.toString,hL=mL.hasOwnProperty,gL=zS.call(Object);function vL(e){if(!uL(e)||lL(e)!=dL)return !1;var t=cL(e);if(t===null)return !0;var n=hL.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&zS.call(n)==gL}var pL=vL,bL=pL;function yL(e){return bL(e)?void 0:e}var CL=yL,Q0=Vi,SL=Yg,wL=Wr,J0=Q0?Q0.isConcatSpreadable:void 0;function $L(e){return wL(e)||SL(e)||!!(J0&&e&&e[J0])}var xL=$L,EL=av,IL=xL;function BS(e,t,n,r,o){var a=-1,i=e.length;for(n||(n=IL),o||(o=[]);++a<i;){var s=e[a];t>0&&n(s)?t>1?BS(s,t-1,n,r,o):EL(o,s):r||(o[o.length]=s);}return o}var PL=BS,OL=PL;function ML(e){var t=e==null?0:e.length;return t?OL(e,1):[]}var RL=ML;function TL(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 _L=TL,kL=_L,eb=Math.max;function NL(e,t,n){return t=eb(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,a=eb(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),kL(e,this,s)}}var AL=NL;function LL(e){return function(){return e}}var FL=LL;function DL(e){return e}var HS=DL,jL=FL,tb=bS,zL=HS,BL=tb?function(e,t){return tb(e,"toString",{configurable:!0,enumerable:!1,value:jL(t),writable:!0})}:zL,HL=BL,VL=800,WL=16,GL=Date.now;function KL(e){var t=0,n=0;return function(){var r=GL(),o=WL-(r-n);if(n=r,o>0){if(++t>=VL)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var UL=KL,XL=HL,qL=UL,YL=qL(XL),ZL=YL,QL=RL,JL=AL,e5=ZL;function t5(e){return e5(JL(e,void 0,QL),e+"")}var VS=t5,n5=Wg,r5=FS,o5=sL,a5=qi,i5=yl,s5=CL,l5=VS,c5=RS,u5=1,d5=2,f5=4,m5=l5(function(e,t){var n={};if(e==null)return n;var r=!1;t=n5(t,function(a){return a=a5(a,e),r||(r=a.length>1),a}),i5(e,c5(e),n),r&&(n=r5(n,u5|d5|f5,s5));for(var o=t.length;o--;)o5(n,t[o]);return n}),h5=m5;const g5=Sn(h5);var v5=Vr,p5=function(){return v5.Date.now()},b5=p5,y5=/\s/;function C5(e){for(var t=e.length;t--&&y5.test(e.charAt(t)););return t}var S5=C5,w5=S5,$5=/^\s+/;function x5(e){return e&&e.slice(0,w5(e)+1).replace($5,"")}var E5=x5,I5=E5,nb=co,P5=hd,rb=NaN,O5=/^[-+]0x[0-9a-f]+$/i,M5=/^0b[01]+$/i,R5=/^0o[0-7]+$/i,T5=parseInt;function _5(e){if(typeof e=="number")return e;if(P5(e))return rb;if(nb(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=nb(t)?t+"":t;}if(typeof e!="string")return e===0?e:+e;e=I5(e);var n=M5.test(e);return n||R5.test(e)?T5(e.slice(2),n?2:8):O5.test(e)?rb:+e}var WS=_5,k5=co,Lf=b5,ob=WS,N5="Expected a function",A5=Math.max,L5=Math.min;function F5(e,t,n){var r,o,a,i,s,l,c=0,u=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(N5);t=ob(t)||0,k5(n)&&(u=!!n.leading,d="maxWait"in n,a=d?A5(ob(n.maxWait)||0,t):a,f="trailing"in n?!!n.trailing:f);function h(E){var S=r,$=o;return r=o=void 0,c=E,i=e.apply($,S),i}function g(E){return c=E,s=setTimeout(b,t),u?h(E):i}function v(E){var S=E-l,$=E-c,I=t-S;return d?L5(I,a-$):I}function p(E){var S=E-l,$=E-c;return l===void 0||S>=t||S<0||d&&$>=a}function b(){var E=Lf();if(p(E))return y(E);s=setTimeout(b,v(E));}function y(E){return s=void 0,f&&r?h(E):(r=o=void 0,i)}function C(){s!==void 0&&clearTimeout(s),c=0,r=l=o=s=void 0;}function w(){return s===void 0?i:y(Lf())}function x(){var E=Lf(),S=p(E);if(r=arguments,o=this,l=E,S){if(s===void 0)return g(l);if(d)return clearTimeout(s),s=setTimeout(b,t),h(l)}return s===void 0&&(s=setTimeout(b,t)),i}return x.cancel=C,x.flush=w,x}var GS=F5;const D5=Sn(GS);var j5=GS,z5=co,B5="Expected a function";function H5(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(B5);return z5(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),j5(e,t,{leading:r,maxWait:t,trailing:o})}var V5=H5;const KS=Sn(V5);var W5=qg,G5=qi,K5=Qg,ab=co,U5=Yi;function X5(e,t,n,r){if(!ab(e))return e;t=G5(t,e);for(var o=-1,a=t.length,i=a-1,s=e;s!=null&&++o<a;){var l=U5(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=ab(u)?u:K5(t[o+1])?[]:{});}W5(s,l,c),s=s[l];}return e}var q5=X5,Y5=gd,Z5=q5,Q5=qi;function J5(e,t,n){for(var r=-1,o=t.length,a={};++r<o;){var i=t[r],s=Y5(e,i);n(s,i)&&Z5(a,Q5(i,e),s);}return a}var e6=J5;function t6(e,t){return e!=null&&t in Object(e)}var n6=t6,r6=qi,o6=Yg,a6=Wr,i6=Qg,s6=Jg,l6=Yi;function c6(e,t,n){t=r6(t,e);for(var r=-1,o=t.length,a=!1;++r<o;){var i=l6(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&&s6(o)&&i6(i,o)&&(a6(e)||o6(e)))}var u6=c6,d6=n6,f6=u6;function m6(e,t){return e!=null&&f6(e,t,d6)}var US=m6,h6=e6,g6=US;function v6(e,t){return h6(e,t,function(n,r){return g6(e,r)})}var p6=v6,b6=p6,y6=VS,C6=y6(function(e,t){return e==null?{}:b6(e,t)}),S6=C6;const uv=Sn(S6);var eh={exports:{}},Ff,ib;function w6(){if(ib)return Ff;ib=1;var e=1e3,t=e*60,n=t*60,r=n*24,o=r*7,a=r*365.25;Ff=function(u,d){d=d||{};var f=typeof u;if(f==="string"&&u.length>0)return i(u);if(f==="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 f=parseFloat(d[1]),h=(d[2]||"ms").toLowerCase();switch(h){case"years":case"year":case"yrs":case"yr":case"y":return f*a;case"weeks":case"week":case"w":return f*o;case"days":case"day":case"d":return f*r;case"hours":case"hour":case"hrs":case"hr":case"h":return f*n;case"minutes":case"minute":case"mins":case"min":case"m":return f*t;case"seconds":case"second":case"secs":case"sec":case"s":return f*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return f;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,f,h){var g=d>=f*1.5;return Math.round(u/f)+" "+h+(g?"s":"")}return Ff}function $6(e){n.debug=n,n.default=n,n.coerce=l,n.disable=a,n.enable=o,n.enabled=i,n.humanize=w6(),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 f=0;f<u.length;f++)d=(d<<5)-d+u.charCodeAt(f),d|=0;return n.colors[Math.abs(d)%n.colors.length]}n.selectColor=t;function n(u){let d,f=null,h,g;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 w=0;p[0]=p[0].replace(/%([a-zA-Z%])/g,(E,S)=>{if(E==="%%")return "%";w++;const $=n.formatters[S];if(typeof $=="function"){const I=p[w];E=$.call(b,I),p.splice(w,1),w--;}return E}),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:()=>f!==null?f:(h!==n.namespaces&&(h=n.namespaces,g=n.enabled(u)),g),set:p=>{f=p;}}),typeof n.init=="function"&&n.init(v),v}function r(u,d){const f=n(this.namespace+(typeof d>"u"?":":d)+u);return f.log=this.log,f}function o(u){n.save(u),n.namespaces=u,n.names=[],n.skips=[];let d;const f=(typeof u=="string"?u:"").split(/[\s,]+/),h=f.length;for(d=0;d<h;d++)f[d]&&(u=f[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,f;for(d=0,f=n.skips.length;d<f;d++)if(n.skips[d].test(u))return !1;for(d=0,f=n.names.length;d<f;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 x6=$6;(function(e,t){var n={};t.formatArgs=o,t.save=a,t.load=i,t.useColors=r,t.storage=s(),t.destroy=(()=>{let c=!1;return ()=>{c||(c=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."));}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){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 o(c){if(c[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+c[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const u="color: "+this.color;c.splice(1,0,u,"color: inherit");let d=0,f=0;c[0].replace(/%[a-zA-Z%]/g,h=>{h!=="%%"&&(d++,h==="%c"&&(f=d));}),c.splice(f,0,u);}t.log=console.debug||console.log||(()=>{});function a(c){try{c?t.storage.setItem("debug",c):t.storage.removeItem("debug");}catch{}}function i(){let c;try{c=t.storage.getItem("debug");}catch{}return !c&&typeof process<"u"&&"env"in process&&(c=n.DEBUG),c}function s(){try{return localStorage}catch{}}e.exports=x6(t);const{formatters:l}=e.exports;l.j=function(c){try{return JSON.stringify(c)}catch(u){return "[UnexpectedJSONParseError]: "+u.message}};})(eh,eh.exports);var E6=eh.exports;const I6=Sn(E6),nn="bilibili-app-recommend",P6="bilibili_app_recommend",Pa=I6(nn),XS="https://api.bilibili.com",qS="https://app.bilibili.com",wi={appkey:"4409e2ce8ffd12b8",appsec:"59b43e04ad6965f34319062b478f83dd"},Oa=`${nn}-root`;let YS=!1;function O6(e){YS=e;}var ZS={exports:{}};(function(e,t){(function(n,r){e.exports=r();})(oi,function(){var n=1e3,r=6e4,o=36e5,a="millisecond",i="second",s="minute",l="hour",c="day",u="week",d="month",f="quarter",h="year",g="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(A){var L=["th","st","nd","rd"],_=A%100;return "["+A+(L[(_-20)%10]||L[_]||L[0])+"]"}},C=function(A,L,_){var O=String(A);return !O||O.length>=L?A:""+Array(L+1-O.length).join(_)+A},w={s:C,z:function(A){var L=-A.utcOffset(),_=Math.abs(L),O=Math.floor(_/60),T=_%60;return (L<=0?"+":"-")+C(O,2,"0")+":"+C(T,2,"0")},m:function A(L,_){if(L.date()<_.date())return -A(_,L);var O=12*(_.year()-L.year())+(_.month()-L.month()),T=L.clone().add(O,d),D=_-T<0,j=L.clone().add(O+(D?-1:1),d);return +(-(O+(_-T)/(D?T-j:j-T))||0)},a:function(A){return A<0?Math.ceil(A)||0:Math.floor(A)},p:function(A){return {M:d,y:h,w:u,d:c,D:g,h:l,m:s,s:i,ms:a,Q:f}[A]||String(A||"").toLowerCase().replace(/s$/,"")},u:function(A){return A===void 0}},x="en",E={};E[x]=y;var S="$isDayjsObject",$=function(A){return A instanceof M||!(!A||!A[S])},I=function A(L,_,O){var T;if(!L)return x;if(typeof L=="string"){var D=L.toLowerCase();E[D]&&(T=D),_&&(E[D]=_,T=D);var j=L.split("-");if(!T&&j.length>1)return A(j[0])}else {var B=L.name;E[B]=L,T=B;}return !O&&T&&(x=T),T||!O&&x},P=function(A,L){if($(A))return A.clone();var _=typeof L=="object"?L:{};return _.date=A,_.args=arguments,new M(_)},R=w;R.l=I,R.i=$,R.w=function(A,L){return P(A,{locale:L.$L,utc:L.$u,x:L.$x,$offset:L.$offset})};var M=function(){function A(_){this.$L=I(_.locale,null,!0),this.parse(_),this.$x=this.$x||_.x||{},this[S]=!0;}var L=A.prototype;return L.parse=function(_){this.$d=function(O){var T=O.date,D=O.utc;if(T===null)return new Date(NaN);if(R.u(T))return new Date;if(T instanceof Date)return new Date(T);if(typeof T=="string"&&!/Z$/i.test(T)){var j=T.match(p);if(j){var B=j[2]-1||0,H=(j[7]||"0").substring(0,3);return D?new Date(Date.UTC(j[1],B,j[3]||1,j[4]||0,j[5]||0,j[6]||0,H)):new Date(j[1],B,j[3]||1,j[4]||0,j[5]||0,j[6]||0,H)}}return new Date(T)}(_),this.init();},L.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds();},L.$utils=function(){return R},L.isValid=function(){return this.$d.toString()!==v},L.isSame=function(_,O){var T=P(_);return this.startOf(O)<=T&&T<=this.endOf(O)},L.isAfter=function(_,O){return P(_)<this.startOf(O)},L.isBefore=function(_,O){return this.endOf(O)<P(_)},L.$g=function(_,O,T){return R.u(_)?this[O]:this.set(T,_)},L.unix=function(){return Math.floor(this.valueOf()/1e3)},L.valueOf=function(){return this.$d.getTime()},L.startOf=function(_,O){var T=this,D=!!R.u(O)||O,j=R.p(_),B=function(J,q){var se=R.w(T.$u?Date.UTC(T.$y,q,J):new Date(T.$y,q,J),T);return D?se:se.endOf(c)},H=function(J,q){return R.w(T.toDate()[J].apply(T.toDate("s"),(D?[0,0,0,0]:[23,59,59,999]).slice(q)),T)},G=this.$W,K=this.$M,X=this.$D,Y="set"+(this.$u?"UTC":"");switch(j){case h:return D?B(1,0):B(31,11);case d:return D?B(1,K):B(0,K+1);case u:var ee=this.$locale().weekStart||0,V=(G<ee?G+7:G)-ee;return B(D?X-V:X+(6-V),K);case c:case g:return H(Y+"Hours",0);case l:return H(Y+"Minutes",1);case s:return H(Y+"Seconds",2);case i:return H(Y+"Milliseconds",3);default:return this.clone()}},L.endOf=function(_){return this.startOf(_,!1)},L.$set=function(_,O){var T,D=R.p(_),j="set"+(this.$u?"UTC":""),B=(T={},T[c]=j+"Date",T[g]=j+"Date",T[d]=j+"Month",T[h]=j+"FullYear",T[l]=j+"Hours",T[s]=j+"Minutes",T[i]=j+"Seconds",T[a]=j+"Milliseconds",T)[D],H=D===c?this.$D+(O-this.$W):O;if(D===d||D===h){var G=this.clone().set(g,1);G.$d[B](H),G.init(),this.$d=G.set(g,Math.min(this.$D,G.daysInMonth())).$d;}else B&&this.$d[B](H);return this.init(),this},L.set=function(_,O){return this.clone().$set(_,O)},L.get=function(_){return this[R.p(_)]()},L.add=function(_,O){var T,D=this;_=Number(_);var j=R.p(O),B=function(K){var X=P(D);return R.w(X.date(X.date()+Math.round(K*_)),D)};if(j===d)return this.set(d,this.$M+_);if(j===h)return this.set(h,this.$y+_);if(j===c)return B(1);if(j===u)return B(7);var H=(T={},T[s]=r,T[l]=o,T[i]=n,T)[j]||1,G=this.$d.getTime()+_*H;return R.w(G,this)},L.subtract=function(_,O){return this.add(-1*_,O)},L.format=function(_){var O=this,T=this.$locale();if(!this.isValid())return T.invalidDate||v;var D=_||"YYYY-MM-DDTHH:mm:ssZ",j=R.z(this),B=this.$H,H=this.$m,G=this.$M,K=T.weekdays,X=T.months,Y=T.meridiem,ee=function(q,se,le,Q){return q&&(q[se]||q(O,D))||le[se].slice(0,Q)},V=function(q){return R.s(B%12||12,q,"0")},J=Y||function(q,se,le){var Q=q<12?"AM":"PM";return le?Q.toLowerCase():Q};return D.replace(b,function(q,se){return se||function(le){switch(le){case"YY":return String(O.$y).slice(-2);case"YYYY":return R.s(O.$y,4,"0");case"M":return G+1;case"MM":return R.s(G+1,2,"0");case"MMM":return ee(T.monthsShort,G,X,3);case"MMMM":return ee(X,G);case"D":return O.$D;case"DD":return R.s(O.$D,2,"0");case"d":return String(O.$W);case"dd":return ee(T.weekdaysMin,O.$W,K,2);case"ddd":return ee(T.weekdaysShort,O.$W,K,3);case"dddd":return K[O.$W];case"H":return String(B);case"HH":return R.s(B,2,"0");case"h":return V(1);case"hh":return V(2);case"a":return J(B,H,!0);case"A":return J(B,H,!1);case"m":return String(H);case"mm":return R.s(H,2,"0");case"s":return String(O.$s);case"ss":return R.s(O.$s,2,"0");case"SSS":return R.s(O.$ms,3,"0");case"Z":return j}return null}(q)||j.replace(":","")})},L.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},L.diff=function(_,O,T){var D,j=this,B=R.p(O),H=P(_),G=(H.utcOffset()-this.utcOffset())*r,K=this-H,X=function(){return R.m(j,H)};switch(B){case h:D=X()/12;break;case d:D=X();break;case f:D=X()/3;break;case u:D=(K-G)/6048e5;break;case c:D=(K-G)/864e5;break;case l:D=K/o;break;case s:D=K/r;break;case i:D=K/n;break;default:D=K;}return T?D:R.a(D)},L.daysInMonth=function(){return this.endOf(d).$D},L.$locale=function(){return E[this.$L]},L.locale=function(_,O){if(!_)return this.$L;var T=this.clone(),D=I(_,O,!0);return D&&(T.$L=D),T},L.clone=function(){return R.w(this.$d,this)},L.toDate=function(){return new Date(this.valueOf())},L.toJSON=function(){return this.isValid()?this.toISOString():null},L.toISOString=function(){return this.$d.toISOString()},L.toString=function(){return this.$d.toUTCString()},A}(),k=M.prototype;return P.prototype=k,[["$ms",a],["$s",i],["$m",s],["$H",l],["$W",c],["$M",d],["$y",h],["$D",g]].forEach(function(A){k[A[1]]=function(L){return this.$g(L,A[0],A[1])};}),P.extend=function(A,L){return A.$i||(A(L,M,P),A.$i=!0),P},P.locale=I,P.isDayjs=$,P.unix=function(A){return P(1e3*A)},P.en=E[x],P.Ls=E,P.p={},P});})(ZS);var M6=ZS.exports;const Go=Sn(M6);var QS={exports:{}},JS={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}};JS.exports=t;})();var R6=JS.exports,th={utf8:{stringToBytes:function(e){return th.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(th.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("")}}},sb=th;/*!
   * Determine if an object is a Buffer
   *
   * @author   Feross Aboukhadijeh <https://feross.org>
   * @license  MIT
   */var T6=function(e){return e!=null&&(ew(e)||_6(e)||!!e._isBuffer)};function ew(e){return !!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function _6(e){return typeof e.readFloatLE=="function"&&typeof e.slice=="function"&&ew(e.slice(0,0))}(function(){var e=R6,t=sb.utf8,n=T6,r=sb.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,f=271733878,h=0;h<s.length;h++)s[h]=(s[h]<<8|s[h]>>>24)&16711935|(s[h]<<24|s[h]>>>8)&4278255360;s[l>>>5]|=128<<l%32,s[(l+64>>>9<<4)+14]=l;for(var g=o._ff,v=o._gg,p=o._hh,b=o._ii,h=0;h<s.length;h+=16){var y=c,C=u,w=d,x=f;c=g(c,u,d,f,s[h+0],7,-680876936),f=g(f,c,u,d,s[h+1],12,-389564586),d=g(d,f,c,u,s[h+2],17,606105819),u=g(u,d,f,c,s[h+3],22,-1044525330),c=g(c,u,d,f,s[h+4],7,-176418897),f=g(f,c,u,d,s[h+5],12,1200080426),d=g(d,f,c,u,s[h+6],17,-1473231341),u=g(u,d,f,c,s[h+7],22,-45705983),c=g(c,u,d,f,s[h+8],7,1770035416),f=g(f,c,u,d,s[h+9],12,-1958414417),d=g(d,f,c,u,s[h+10],17,-42063),u=g(u,d,f,c,s[h+11],22,-1990404162),c=g(c,u,d,f,s[h+12],7,1804603682),f=g(f,c,u,d,s[h+13],12,-40341101),d=g(d,f,c,u,s[h+14],17,-1502002290),u=g(u,d,f,c,s[h+15],22,1236535329),c=v(c,u,d,f,s[h+1],5,-165796510),f=v(f,c,u,d,s[h+6],9,-1069501632),d=v(d,f,c,u,s[h+11],14,643717713),u=v(u,d,f,c,s[h+0],20,-373897302),c=v(c,u,d,f,s[h+5],5,-701558691),f=v(f,c,u,d,s[h+10],9,38016083),d=v(d,f,c,u,s[h+15],14,-660478335),u=v(u,d,f,c,s[h+4],20,-405537848),c=v(c,u,d,f,s[h+9],5,568446438),f=v(f,c,u,d,s[h+14],9,-1019803690),d=v(d,f,c,u,s[h+3],14,-187363961),u=v(u,d,f,c,s[h+8],20,1163531501),c=v(c,u,d,f,s[h+13],5,-1444681467),f=v(f,c,u,d,s[h+2],9,-51403784),d=v(d,f,c,u,s[h+7],14,1735328473),u=v(u,d,f,c,s[h+12],20,-1926607734),c=p(c,u,d,f,s[h+5],4,-378558),f=p(f,c,u,d,s[h+8],11,-2022574463),d=p(d,f,c,u,s[h+11],16,1839030562),u=p(u,d,f,c,s[h+14],23,-35309556),c=p(c,u,d,f,s[h+1],4,-1530992060),f=p(f,c,u,d,s[h+4],11,1272893353),d=p(d,f,c,u,s[h+7],16,-155497632),u=p(u,d,f,c,s[h+10],23,-1094730640),c=p(c,u,d,f,s[h+13],4,681279174),f=p(f,c,u,d,s[h+0],11,-358537222),d=p(d,f,c,u,s[h+3],16,-722521979),u=p(u,d,f,c,s[h+6],23,76029189),c=p(c,u,d,f,s[h+9],4,-640364487),f=p(f,c,u,d,s[h+12],11,-421815835),d=p(d,f,c,u,s[h+15],16,530742520),u=p(u,d,f,c,s[h+2],23,-995338651),c=b(c,u,d,f,s[h+0],6,-198630844),f=b(f,c,u,d,s[h+7],10,1126891415),d=b(d,f,c,u,s[h+14],15,-1416354905),u=b(u,d,f,c,s[h+5],21,-57434055),c=b(c,u,d,f,s[h+12],6,1700485571),f=b(f,c,u,d,s[h+3],10,-1894986606),d=b(d,f,c,u,s[h+10],15,-1051523),u=b(u,d,f,c,s[h+1],21,-2054922799),c=b(c,u,d,f,s[h+8],6,1873313359),f=b(f,c,u,d,s[h+15],10,-30611744),d=b(d,f,c,u,s[h+6],15,-1560198380),u=b(u,d,f,c,s[h+13],21,1309151649),c=b(c,u,d,f,s[h+4],6,-145523070),f=b(f,c,u,d,s[h+11],10,-1120210379),d=b(d,f,c,u,s[h+2],15,718787259),u=b(u,d,f,c,s[h+9],21,-343485551),c=c+y>>>0,u=u+C>>>0,d=d+w>>>0,f=f+x>>>0;}return e.endian([c,u,d,f])};o._ff=function(a,i,s,l,c,u,d){var f=a+(i&s|~i&l)+(c>>>0)+d;return (f<<u|f>>>32-u)+i},o._gg=function(a,i,s,l,c,u,d){var f=a+(i&l|s&~l)+(c>>>0)+d;return (f<<u|f>>>32-u)+i},o._hh=function(a,i,s,l,c,u,d){var f=a+(i^s^l)+(c>>>0)+d;return (f<<u|f>>>32-u)+i},o._ii=function(a,i,s,l,c,u,d){var f=a+(s^(i|~l))+(c>>>0)+d;return (f<<u|f>>>32-u)+i},o._blocksize=16,o._digestsize=16,QS.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 k6=QS.exports;const tw=Sn(k6);var $i=1e3,xi=$i*60,Ei=xi*60,Ca=Ei*24,N6=Ca*7,A6=Ca*365.25,L6=function(e,t){t=t||{};var n=typeof e;if(n==="string"&&e.length>0)return F6(e);if(n==="number"&&isFinite(e))return t.long?j6(e):D6(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function F6(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*A6;case"weeks":case"week":case"w":return n*N6;case"days":case"day":case"d":return n*Ca;case"hours":case"hour":case"hrs":case"hr":case"h":return n*Ei;case"minutes":case"minute":case"mins":case"min":case"m":return n*xi;case"seconds":case"second":case"secs":case"sec":case"s":return n*$i;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function D6(e){var t=Math.abs(e);return t>=Ca?Math.round(e/Ca)+"d":t>=Ei?Math.round(e/Ei)+"h":t>=xi?Math.round(e/xi)+"m":t>=$i?Math.round(e/$i)+"s":e+"ms"}function j6(e){var t=Math.abs(e);return t>=Ca?lc(e,t,Ca,"day"):t>=Ei?lc(e,t,Ei,"hour"):t>=xi?lc(e,t,xi,"minute"):t>=$i?lc(e,t,$i,"second"):e+" ms"}function lc(e,t,n,r){var o=t>=n*1.5;return Math.round(e/n)+" "+r+(o?"s":"")}const Sl=Sn(L6),z6=[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 B6(e){let t="";return z6.forEach(n=>{t+=e[n];}),t.slice(0,32)}async function H6(e){const{img_key:t,sub_key:n}=await V6(),r=B6(t+n),o=Math.round(Date.now()/1e3),a=/[!'()*]/g,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=tw(s+r);return {wts:o,w_rid:l}}let Df,jf,zf;async function V6(){const e=()=>Go().format("YYYYMMDD");if(Df&&jf&&zf&&zf===e()&&Date.now()-jf<=Sl("6h"))return Df;const r=(await Ag.get("/x/web-interface/nav",{baseURL:XS})).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 Df=i,zf=e(),jf=Date.now(),i}function nw(e,t,n){e.appkey=t;const r=new URLSearchParams(e);return r.sort(),tw(r.toString()+n)}const rn=Ag.create({baseURL:XS,withCredentials:!0});rn.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 H6(e.params)}),e});function Gr(e){return (e==null?void 0:e.code)===0&&(e==null?void 0:e.message)==="0"}const vd=Ag.create({adapter:GP}),lb=wi.appkey,W6=wi.appsec;vd.interceptors.request.use(function(e){return e.params={appkey:lb,access_key:Et.accessKey||"",...e.params},e.params.sign=nw(e.params,lb,W6),e});vd.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 G6=[{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)"}],rw=`--${nn}-color-primary`,so=`var(${rw})`,nu={id:"default-bili-pink",name:"B站粉",isDark:!1,isCustom:!1,colorPrimary:"#ff6699"},ow={id:"color-picker",name:"自定义",isDark:!1,isCustom:!0,colorPrimary:"#ff6699"};function K6(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 aw="UP长期洗涤",U6=K6(aw,`
  #0545b2 理想之蓝
  #f4cd00 柠檬黄
  #ef2729 石榴红
  #f89c00 鹿箭
  #233728 黛绿
  #f2b9b7 和熙粉
  #f3cc91 芝士黄
  #6b4c68 葡萄紫
  #ff7227 落日橙
  #004d62 碧海天
  #23909b 洗碧空
  #aeb400 芥丝绿
  #425a17 箬叶青

  #002FA7 克莱因蓝
  #003153 普鲁士蓝
  #01847F 马尔斯绿
  #FBD26A 申布伦黄
  #470024 勃艮第红
  #492D22 凡戴克棕
  `),iw=[{name:"预设",themes:[nu,{id:"bilibili-blue",name:"B站蓝",colorPrimary:"#00aeec"},{id:"app-靓紫",name:"靓紫",colorPrimary:"#8500ff"},ow]},{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:G6,tooltip:be(It,{children:["提取自"," ",F("a",{target:"_blank",href:"https://github.com/lyswhut/lx-music-desktop/",children:"lx-music-desktop"}),F("br",{}),"Apache License 2.0"]})},{name:aw,themes:U6,tooltip:be(It,{children:["提取自"," ",F("a",{target:"_blank",href:"https://www.bilibili.com/video/BV1g3411u7Lg/",children:"BV1g3411u7Lg"})," ","&"," ",F("a",{target:"_blank",href:"https://www.bilibili.com/video/BV1xu411q7sU/",children:"BV1xu411q7sU"})]})}],X6=iw.map(e=>e.themes).flat();function dv(){let{theme:e,colorPickerThemeSelectedColor:t}=cn();return e||(e=nu.id),m.useMemo(()=>{const n=X6.find(r=>r.id===e)||nu;return n.id===ow.id&&t&&(n.colorPrimary=t),n},[e,t])}function cb(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function ub(e,t,n){var r=[],o=Hg(e,r,n);return r.length<2?n:o+t(r)}var q6=function(t){var n=tS(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=mi(c,n.registered,void 0);return Vg(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=mi(c,n.registered),f="animation-"+d.name;return cb(n,{name:d.name,styles:"@keyframes "+f+"{"+d.styles+"}"}),f},a=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=mi(c,n.registered);cb(n,d);},i=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return ub(n.registered,r,Y6(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:Hg.bind(null,n.registered),merge:ub.bind(null,n.registered,r)}},Y6=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},Z6=q6({key:"css"}),ru=Z6.css;const Q6=ru("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:",so,";border-radius:6px;white-space:pre-wrap;",""),J6=ru({name:"1azakc",styles:"text-align:center"});function Pt(e,t=2e3){const n=document.createElement("div");n.classList.add(Q6,Oa),n.innerText=e,!e.includes(`
`)&&!e.includes("<br")&&n.classList.add(J6),document.body.appendChild(n),setTimeout(()=>n.remove(),t);}const eF="请求失败, 请重试 !!!",sw="操作失败, 请重试 !!!";function lw(){return Pt(eF)}function cw(){return Pt(sw)}const nF=Symbol(),fv=Symbol(),ds="a",Ms="w";let rF=(e,t)=>new Proxy(e,t);const nh=Object.getPrototypeOf,rh=new WeakMap,uw=e=>e&&(rh.has(e)?rh.get(e):nh(e)===Object.prototype||nh(e)===Array.prototype),ou=e=>typeof e=="object"&&e!==null,oF=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(nh(e),t)},mv=e=>e[fv]||e,dw=(e,t,n,r)=>{if(!uw(e))return e;let o=r&&r.get(e);if(!o){const l=mv(e);o=(c=>Object.values(Object.getOwnPropertyDescriptors(c)).some(u=>!u.configurable&&!u.writable))(l)?[l,oF(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 f=(g,v)=>{if(!d){let p=u[ds].get(l);if(p||(p={},u[ds].set(l,p)),g===Ms)p[Ms]=!0;else {let b=p[g];b||(b=new Set,p[g]=b),b.add(v);}}},h={get:(g,v)=>v===fv?l:(f("k",v),dw(Reflect.get(g,v),u[ds],u.c,u.t)),has:(g,v)=>v===nF?(d=!0,u[ds].delete(l),!0):(f("h",v),Reflect.has(g,v)),getOwnPropertyDescriptor:(g,v)=>(f("o",v),Reflect.getOwnPropertyDescriptor(g,v)),ownKeys:g=>(f(Ms),Reflect.ownKeys(g))};return c&&(h.set=h.deleteProperty=()=>!1),[h,u]})(a,!!i),s[1].p=rF(i||a,s[0]),n&&n.set(a,s)),s[1][ds]=t,s[1].c=n,s[1].t=r,s[1].p},fw=(e,t,n,r)=>{if(Object.is(e,t))return !1;if(!ou(e)||!ou(t))return !0;const o=n.get(mv(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[Ms]===!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=fw(e[i],t[i],n,r),a)return a;return a===null&&(a=!0),a}finally{r&&r.set(e,{n:t,g:a});}},aF=e=>uw(e)&&e[fv]||null,db=(e,t=!0)=>{rh.set(e,t);},iF=(e,t,n)=>{const r=[],o=new WeakSet,a=(i,s)=>{if(o.has(i))return;ou(i)&&o.add(i);const l=ou(i)&&t.get(mv(i));if(l){var c,u;if((c=l.h)==null||c.forEach(f=>{const h=`:has(${String(f)})`;r.push(s?[...s,h]:[h]);}),l[Ms]===!0){const f=":ownKeys";r.push(s?[...s,f]:[f]);}else {var d;(d=l.o)==null||d.forEach(f=>{const h=`:hasOwn(${String(f)})`;r.push(s?[...s,h]:[h]);});}(u=l.k)==null||u.forEach(f=>{n&&!("value"in(Object.getOwnPropertyDescriptor(i,f)||{}))||a(i[f],s?[...s,f]:[f]);});}else s&&r.push(s);};return a(e),r};var au={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const Bf=e=>typeof e=="object"&&e!==null,_o=new WeakMap,cc=new WeakSet,sF=(e=Object.is,t=(c,u)=>new Proxy(c,u),n=c=>Bf(c)&&!cc.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 f=o.get(c);if((f==null?void 0:f[0])===u)return f[1];const h=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c));return db(h,!0),o.set(c,[u,h]),Reflect.ownKeys(c).forEach(g=>{if(Object.getOwnPropertyDescriptor(h,g))return;const v=Reflect.get(c,g),{enumerable:p}=Reflect.getOwnPropertyDescriptor(c,g),b={value:v,enumerable:p,configurable:!0};if(cc.has(v))db(v,!1);else if(v instanceof Promise)delete b.value,b.get=()=>d(v);else if(_o.has(v)){const[y,C]=_o.get(v);b.value=a(y,C(),d);}Object.defineProperty(h,g,b);}),Object.preventExtensions(h)},i=new WeakMap,s=[1,1],l=c=>{if(!Bf(c))throw new Error("object required");const u=i.get(c);if(u)return u;let d=s[0];const f=new Set,h=(I,P=++s[0])=>{d!==P&&(d=P,f.forEach(R=>R(I,P)));};let g=s[1];const v=(I=++s[1])=>(g!==I&&!f.size&&(g=I,b.forEach(([P])=>{const R=P[1](I);R>d&&(d=R);})),d),p=I=>(P,R)=>{const M=[...P];M[1]=[I,...M[1]],h(M,R);},b=new Map,y=(I,P)=>{if((au?"production":void 0)!=="production"&&b.has(I))throw new Error("prop listener already exists");if(f.size){const R=P[3](p(I));b.set(I,[P,R]);}else b.set(I,[P]);},C=I=>{var P;const R=b.get(I);R&&(b.delete(I),(P=R[1])==null||P.call(R));},w=I=>(f.add(I),f.size===1&&b.forEach(([R,M],k)=>{if((au?"production":void 0)!=="production"&&M)throw new Error("remove already exists");const A=R[3](p(k));b.set(k,[R,A]);}),()=>{f.delete(I),f.size===0&&b.forEach(([R,M],k)=>{M&&(M(),b.set(k,[R]));});}),x=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c)),S=t(x,{deleteProperty(I,P){const R=Reflect.get(I,P);C(P);const M=Reflect.deleteProperty(I,P);return M&&h(["delete",[P],R]),M},set(I,P,R,M){const k=Reflect.has(I,P),A=Reflect.get(I,P,M);if(k&&(e(A,R)||i.has(R)&&e(A,i.get(R))))return !0;C(P),Bf(R)&&(R=aF(R)||R);let L=R;if(R instanceof Promise)R.then(_=>{R.status="fulfilled",R.value=_,h(["resolve",[P],_]);}).catch(_=>{R.status="rejected",R.reason=_,h(["reject",[P],_]);});else {!_o.has(R)&&n(R)&&(L=l(R));const _=!cc.has(L)&&_o.get(L);_&&y(P,_);}return Reflect.set(I,P,L,M),h(["set",[P],R,A]),!0}});i.set(c,S);const $=[x,v,a,w];return _o.set(S,$),Reflect.ownKeys(c).forEach(I=>{const P=Object.getOwnPropertyDescriptor(c,I);"value"in P&&(S[I]=c[I],delete P.value,delete P.writable),Object.defineProperty(x,I,P);}),S})=>[l,_o,cc,e,t,n,r,o,a,i,s],[lF]=sF();function gr(e={}){return lF(e)}function pd(e,t,n){const r=_o.get(e);(au?"production":void 0)!=="production"&&!r&&console.warn("Please use proxy object");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 qs(e,t){const n=_o.get(e);(au?"production":void 0)!=="production"&&!n&&console.warn("Please use proxy object");const[r,o,a]=n;return a(r,o(),t)}var mw={exports:{}},hw={};/**
   * @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 Ii=m;function cF(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var uF=typeof Object.is=="function"?Object.is:cF,dF=Ii.useState,fF=Ii.useEffect,mF=Ii.useLayoutEffect,hF=Ii.useDebugValue;function gF(e,t){var n=t(),r=dF({inst:{value:n,getSnapshot:t}}),o=r[0].inst,a=r[1];return mF(function(){o.value=n,o.getSnapshot=t,Hf(o)&&a({inst:o});},[e,n,t]),fF(function(){return Hf(o)&&a({inst:o}),e(function(){Hf(o)&&a({inst:o});})},[e]),hF(n),n}function Hf(e){var t=e.getSnapshot;e=e.value;try{var n=t();return !uF(e,n)}catch{return !0}}function vF(e,t){return t()}var pF=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?vF:gF;hw.useSyncExternalStore=Ii.useSyncExternalStore!==void 0?Ii.useSyncExternalStore:pF;mw.exports=hw;var bF=mw.exports;const yF=Sn(bF);var CF={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{use:fb}=m,{useSyncExternalStore:SF}=yF,wF=(e,t)=>{const n=m.useRef();m.useEffect(()=>{n.current=iF(e,t,!0);}),m.useDebugValue(n.current);},$F=new WeakMap;function yr(e,t){const n=t==null?void 0:t.sync,r=m.useRef(),o=m.useRef();let a=!0;const i=SF(m.useCallback(c=>{const u=pd(e,c,n);return c(),u},[e,n]),()=>{const c=qs(e,fb);try{if(!a&&r.current&&o.current&&!fw(r.current,c,o.current,new WeakMap))return r.current}catch{}return c},()=>qs(e,fb));a=!1;const s=new WeakMap;m.useEffect(()=>{r.current=i,o.current=s;}),(CF?"production":void 0)!=="production"&&wF(i,s);const l=m.useMemo(()=>new WeakMap,[]);return dw(i,s,l,$F)}function hv(){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 Zi(){const e=hv().bili_jct;if(!e)throw Pt("找不到 csrf token, 请检查是否登录(不可用)"),new Error("找不到 csrf token, 请检查是否登录(不可用)");return e}function bd(){return hv().DedeUserID}function wl(){return !!hv().DedeUserID}const oh=gr({cookie:document.cookie,logined:wl()});function xF(){return Object.assign(oh,{cookie:document.cookie,logined:wl()}),oh.logined}function gv(){return yr(oh).logined}const mb=()=>{const e=new Error("Delay aborted");return e.name="AbortError",e},EF=new WeakMap;function IF({clearTimeout:e,setTimeout:t}={}){return (n,{value:r,signal:o}={})=>{if(o!=null&&o.aborted)return Promise.reject(mb());let a,i,s;const l=e??clearTimeout,c=()=>{l(a),s(mb());},u=()=>{o&&o.removeEventListener("abort",c);},d=new Promise((f,h)=>{i=()=>{u(),f(r);},s=h,a=(t??setTimeout)(i,n);});return o&&o.addEventListener("abort",c,{once:!0}),EF.set(d,()=>{l(a),a=null,i();}),d}}const zn=IF(),PF=Pa.extend("utility:dom"),OF=10*1e3,MF=200;async function Rs(e,t,n=()=>!0){let r=[];const o=()=>{r=Array.from(document.querySelectorAll(e)).filter(n);};o();const i=performance.now()+OF;for(;!r.length&&performance.now()<i;)await zn(MF),o();if(!r.length){console.warn(`[${nn}]: tryAction timeout, selector = \`%s\``,e);return}PF("tryAction: selector=`%s` count=%s",e,r.length);for(const s of r)await Promise.resolve(t(s));}async function ai(e,t,n){return typeof n=="number"&&await zn(n),Rs(e,r=>r.remove(),t)}function yd(){var t;const e=(((t=document.activeElement)==null?void 0:t.tagName)||"").toLowerCase();return !!(["input","textarea"].includes(e)||document.querySelector(".center-search__bar.is-focus"))}function RF(){return new Promise(e=>{queueMicrotask(e);})}function TF(){return new Promise(e=>{requestIdleCallback(()=>e());})}const hb=e=>(e||"").replace(/^http:\/\//,"https://");function _F(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 Ma(e){return e||(e=0),Go.duration(e||0,"seconds").format(e>=3600?"HH:mm:ss":"mm:ss")}function Xn(e){if(!e)return "";if(e<=9999)return e.toString();if(e/=1e4,e<=9999){let t=e.toFixed(1);return t=t.replace(/\.0$/,""),`${t}万`}if(e/=1e4,e<=9999){let t=e.toFixed(1);return t=t.replace(/\.0$/,""),`${t}亿`}}function ma(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;if(/^\d+(\.\d+?)?亿$/.test(e))return Number(e.slice(0,-1))*1e8}}const kF=Go().format("YYYY");function no(e,t=!1){if(!e)return "";const n=Go.unix(e),r=t?" HH:mm":"";return n.format("YYYY")===kF?n.format("M-D"+r):n.format("YY-M-D"+r)}const NF={1:"橙色通过",0:"开放浏览","-1":"待审","-2":"被打回","-3":"网警锁定","-4":"被锁定","-5":"管理员锁定","-6":"修复待审","-7":"暂缓审核","-8":"补档待审","-9":"等待转码","-10":"延迟审核","-11":"视频源待修","-12":"转储失败","-13":"允许评论待审","-14":"临时回收站","-15":"分发中","-16":"转码失败","-20":"创建未提交","-30":"创建已提交","-40":"定时发布","-100":"用户删除"};function AF(e){if(!(typeof e>"u")&&!(e>=0))return NF[e]}async function gw(){var n;return ((n=(await rn.get("https://member.bilibili.com/x/web/draft/list")).data.artlist)==null?void 0:n.drafts)||[]}async function ah(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:Zi(),...e}),n=(await rn.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=Gr(n);return o||Pt(n.message||"addupdate error"),{success:o,aid:r}}async function LF(e){var n;const t=(await rn.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 FF(){const t=(await gw()).find(i=>i.title===nn);if(!t){await ah({title:nn});return}const n=await LF(t.id),a=(new DOMParser().parseFromString(n,"text/html").body.textContent||"").trim();if(a)try{return JSON.parse(a)}catch{return}}let uc="";async function DF(e){if(!uc){const o=(await gw()).find(a=>a.title===nn);if(o)uc=o.id.toString();else {const{success:a,aid:i}=await ah({title:nn});if(!a)return !1;uc=i;}}const t=JSON.stringify(e),{success:n}=await ah({aid:uc,title:nn,content:`<p>${t}</p>`,words:t.length.toString()});return n}const jF=Pa.extend("settings"),vv={accessKey:"",useNarrowMode:!1,initialShowMore:!1,pureRecommend:!1,autoPreviewWhenKeyboardSelect:!1,autoPreviewUpdateInterval:400,autoPreviewWhenHover:!1,theme:"",colorPickerThemeSelectedColor:"",shuffleForWatchLater:!0,shuffleForFav:!0,excludeFavFolderIds:[],anonymousForPopularGeneral:!1,shuffleForPopularWeekly:!1,filterEnabled:!0,filterMinPlayCountEnabled:!1,filterMinPlayCount:1e4,filterMinDurationEnabled:!1,filterMinDuration:60,enableFilterForFollowedVideo:!1,filterOutGotoTypePicture:!1,enableFilterForFollowedPicture:!1,styleFancy:!1,styleUseStandardVideoSourceTab:!1,backupSettingsToArticleDraft:!1,hidingTabKeys:[]},Et=gr({...vv}),vw=Object.keys(vv);function cn(){return yr(Et)}const zF=nn,pw=`${zF}.settings`;async function BF(){const e=await GM.getValue(pw);e&&typeof e=="object"&&Object.assign(Et,uv(e,vw)),pd(Et,()=>{VF();});}const HF=KS(DF,Sl("5s"));async function VF(){const e=qs(Et);await GM.setValue(pw,e),await WF(e);}async function WF(e){if(!e.backupSettingsToArticleDraft||YS)return;const t=g5(e,["accessKey"]);try{await HF(t),jF("backup to article draft complete");}catch(n){console.error(n.stack||n);}}function qn(e){Object.assign(Et,e);}function GF(){return qn(vv)}await( BF());var bw={exports:{}};(function(e,t){(function(n,r){e.exports=r();})(oi,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)?)?$/,f={years:c,months:u,days:s,hours:i,minutes:a,seconds:o,milliseconds:1,weeks:6048e5},h=function(E){return E instanceof w},g=function(E,S,$){return new w(E,$,S.$l)},v=function(E){return r.p(E)+"s"},p=function(E){return E<0},b=function(E){return p(E)?Math.ceil(E):Math.floor(E)},y=function(E){return Math.abs(E)},C=function(E,S){return E?p(E)?{negative:!0,format:""+y(E)+S}:{negative:!1,format:""+E+S}:{negative:!1,format:""}},w=function(){function E($,I,P){var R=this;if(this.$d={},this.$l=P,$===void 0&&(this.$ms=0,this.parseFromMilliseconds()),I)return g($*f[v(I)],this);if(typeof $=="number")return this.$ms=$,this.parseFromMilliseconds(),this;if(typeof $=="object")return Object.keys($).forEach(function(A){R.$d[v(A)]=$[A];}),this.calMilliseconds(),this;if(typeof $=="string"){var M=$.match(d);if(M){var k=M.slice(2).map(function(A){return A!=null?Number(A):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=E.prototype;return S.calMilliseconds=function(){var $=this;this.$ms=Object.keys(this.$d).reduce(function(I,P){return I+($.$d[P]||0)*f[P]},0);},S.parseFromMilliseconds=function(){var $=this.$ms;this.$d.years=b($/c),$%=c,this.$d.months=b($/u),$%=u,this.$d.days=b($/s),$%=s,this.$d.hours=b($/i),$%=i,this.$d.minutes=b($/a),$%=a,this.$d.seconds=b($/o),$%=o,this.$d.milliseconds=$;},S.toISOString=function(){var $=C(this.$d.years,"Y"),I=C(this.$d.months,"M"),P=+this.$d.days||0;this.$d.weeks&&(P+=7*this.$d.weeks);var R=C(P,"D"),M=C(this.$d.hours,"H"),k=C(this.$d.minutes,"M"),A=this.$d.seconds||0;this.$d.milliseconds&&(A+=this.$d.milliseconds/1e3,A=Math.round(1e3*A)/1e3);var L=C(A,"S"),_=$.negative||I.negative||R.negative||M.negative||k.negative||L.negative,O=M.format||k.format||L.format?"T":"",T=(_?"-":"")+"P"+$.format+I.format+R.format+O+M.format+k.format+L.format;return T==="P"||T==="-P"?"P0D":T},S.toJSON=function(){return this.toISOString()},S.format=function($){var I=$||"YYYY-MM-DDTHH:mm:ss",P={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,M){return M||String(P[R])})},S.as=function($){return this.$ms/f[v($)]},S.get=function($){var I=this.$ms,P=v($);return P==="milliseconds"?I%=1e3:I=P==="weeks"?b(I/f[P]):this.$d[P],I||0},S.add=function($,I,P){var R;return R=I?$*f[v(I)]:h($)?$.$ms:g($,this).$ms,g(this.$ms+R*(P?-1:1),this)},S.subtract=function($,I){return this.add($,I,!0)},S.locale=function($){var I=this.clone();return I.$l=$,I},S.clone=function(){return g(this.$ms,this)},S.humanize=function($){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!$)},S.valueOf=function(){return this.asMilliseconds()},S.milliseconds=function(){return this.get("milliseconds")},S.asMilliseconds=function(){return this.as("milliseconds")},S.seconds=function(){return this.get("seconds")},S.asSeconds=function(){return this.as("seconds")},S.minutes=function(){return this.get("minutes")},S.asMinutes=function(){return this.as("minutes")},S.hours=function(){return this.get("hours")},S.asHours=function(){return this.as("hours")},S.days=function(){return this.get("days")},S.asDays=function(){return this.as("days")},S.weeks=function(){return this.get("weeks")},S.asWeeks=function(){return this.as("weeks")},S.months=function(){return this.get("months")},S.asMonths=function(){return this.as("months")},S.years=function(){return this.get("years")},S.asYears=function(){return this.as("years")},E}(),x=function(E,S,$){return E.add(S.years()*$,"y").add(S.months()*$,"M").add(S.days()*$,"d").add(S.hours()*$,"h").add(S.minutes()*$,"m").add(S.seconds()*$,"s").add(S.milliseconds()*$,"ms")};return function(E,S,$){n=$,r=$().$utils(),$.duration=function(R,M){var k=$.locale();return g(R,{$l:k},M)},$.isDuration=h;var I=S.prototype.add,P=S.prototype.subtract;S.prototype.add=function(R,M){return h(R)?x(this,R,1):I.bind(this)(R,M)},S.prototype.subtract=function(R,M){return h(R)?x(this,R,-1):P.bind(this)(R,M)};}});})(bw);var KF=bw.exports;const UF=Sn(KF);var yw={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;})();})(yw);var XF=yw.exports;const W=Sn(XF);function pv(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,a=e.className,i=e.style;return m__namespace.createElement("div",{className:W("".concat(n,"-content"),a),style:i},m__namespace.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}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 it(e){"@babel/helpers - typeof";return it=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},it(e)}function qF(e,t){if(it(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(it(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return (t==="string"?String:Number)(e)}function Cw(e){var t=qF(e,"string");return it(t)==="symbol"?t:String(t)}function z(e,t,n){return t=Cw(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gb(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?gb(Object(n),!0).forEach(function(r){z(e,r,n[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gb(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r));});}return e}function YF(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 et(e,t){if(e==null)return {};var n=YF(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 Sw(e){if(Array.isArray(e))return e}function ZF(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 ih(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 bv(e,t){if(e){if(typeof e=="string")return ih(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 ih(e,t)}}function ww(){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 Z(e,t){return Sw(e)||ZF(e,t)||bv(e,t)||ww()}function Yn(){return !!(typeof window<"u"&&window.document&&window.document.createElement)}var sh={},QF=function(t){};function JF(e,t){}function eD(e,t){}function tD(){sh={};}function $w(e,t,n){!t&&!sh[n]&&(e(!1,n),sh[n]=!0);}function $n(e,t){$w(JF,e,t);}function nD(e,t){$w(eD,e,t);}$n.preMessage=QF;$n.resetWarned=tD;$n.noteOnce=nD;var xw={exports:{}},Bt={};/**
   * @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 yv=Symbol.for("react.element"),Cv=Symbol.for("react.portal"),Cd=Symbol.for("react.fragment"),Sd=Symbol.for("react.strict_mode"),wd=Symbol.for("react.profiler"),$d=Symbol.for("react.provider"),xd=Symbol.for("react.context"),rD=Symbol.for("react.server_context"),Ed=Symbol.for("react.forward_ref"),Id=Symbol.for("react.suspense"),Pd=Symbol.for("react.suspense_list"),Od=Symbol.for("react.memo"),Md=Symbol.for("react.lazy"),oD=Symbol.for("react.offscreen"),Ew;Ew=Symbol.for("react.module.reference");function Rr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case yv:switch(e=e.type,e){case Cd:case wd:case Sd:case Id:case Pd:return e;default:switch(e=e&&e.$$typeof,e){case rD:case xd:case Ed:case Md:case Od:case $d:return e;default:return t}}case Cv:return t}}}Bt.ContextConsumer=xd;Bt.ContextProvider=$d;Bt.Element=yv;Bt.ForwardRef=Ed;Bt.Fragment=Cd;Bt.Lazy=Md;Bt.Memo=Od;Bt.Portal=Cv;Bt.Profiler=wd;Bt.StrictMode=Sd;Bt.Suspense=Id;Bt.SuspenseList=Pd;Bt.isAsyncMode=function(){return !1};Bt.isConcurrentMode=function(){return !1};Bt.isContextConsumer=function(e){return Rr(e)===xd};Bt.isContextProvider=function(e){return Rr(e)===$d};Bt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===yv};Bt.isForwardRef=function(e){return Rr(e)===Ed};Bt.isFragment=function(e){return Rr(e)===Cd};Bt.isLazy=function(e){return Rr(e)===Md};Bt.isMemo=function(e){return Rr(e)===Od};Bt.isPortal=function(e){return Rr(e)===Cv};Bt.isProfiler=function(e){return Rr(e)===wd};Bt.isStrictMode=function(e){return Rr(e)===Sd};Bt.isSuspense=function(e){return Rr(e)===Id};Bt.isSuspenseList=function(e){return Rr(e)===Pd};Bt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Cd||e===wd||e===Sd||e===Id||e===Pd||e===oD||typeof e=="object"&&e!==null&&(e.$$typeof===Md||e.$$typeof===Od||e.$$typeof===$d||e.$$typeof===xd||e.$$typeof===Ed||e.$$typeof===Ew||e.getModuleId!==void 0)};Bt.typeOf=Rr;xw.exports=Bt;var Sv=xw.exports;function $l(e,t,n){var r=m__namespace.useRef({});return (!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}function wv(e,t){typeof e=="function"?e(t):it(e)==="object"&&e&&"current"in e&&(e.current=t);}function Jn(){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){wv(a,o);});}}function Ra(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return $l(function(){return Jn.apply(void 0,t)},t,function(r,o){return r.length!==o.length||r.every(function(a,i){return a!==o[i]})})}function Ko(e){var t,n,r=Sv.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 aD(e){return !m.isValidElement(e)||Sv.isFragment(e)?!1:Ko(e)}var Iw=m__namespace.createContext(null);function iD(e){if(Array.isArray(e))return ih(e)}function Pw(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function sD(){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 Te(e){return iD(e)||Pw(e)||bv(e)||sD()}var vb=Yn()?m__namespace.useLayoutEffect:m__namespace.useEffect,Xt=function(t,n){var r=m__namespace.useRef(!0);vb(function(){return t(r.current)},n),vb(function(){return r.current=!1,function(){r.current=!0;}},[]);},hi=function(t,n){Xt(function(r){if(!r)return t()},n);},pb=[];function lD(e,t){var n=m__namespace.useState(function(){if(!Yn())return null;var g=document.createElement("div");return g}),r=Z(n,1),o=r[0],a=m__namespace.useRef(!1),i=m__namespace.useContext(Iw),s=m__namespace.useState(pb),l=Z(s,2),c=l[0],u=l[1],d=i||(a.current?void 0:function(g){u(function(v){var p=[g].concat(Te(v));return p});});function f(){o.parentElement||document.body.appendChild(o),a.current=!0;}function h(){var g;(g=o.parentElement)===null||g===void 0||g.removeChild(o),a.current=!1;}return Xt(function(){return e?i?i(f):f():h(),h},[e]),Xt(function(){c.length&&(c.forEach(function(g){return g()}),u(pb));},[c]),[o,d]}function cD(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 bb="data-rc-order",yb="data-rc-priority",uD="rc-util-key",lh=new Map;function Ow(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):uD}function Rd(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function dD(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Mw(e){return Array.from((lh.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Rw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Yn())return null;var n=t.csp,r=t.prepend,o=t.priority,a=o===void 0?0:o,i=dD(r),s=i==="prependQueue",l=document.createElement("style");l.setAttribute(bb,i),s&&a&&l.setAttribute(yb,"".concat(a)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=Rd(t),u=c.firstChild;if(r){if(s){var d=Mw(c).filter(function(f){if(!["prepend","prependQueue"].includes(f.getAttribute(bb)))return !1;var h=Number(f.getAttribute(yb)||0);return a>=h});if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u);}else c.appendChild(l);return l}function Tw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Rd(t);return Mw(n).find(function(r){return r.getAttribute(Ow(t))===e})}function iu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Tw(e,t);if(n){var r=Rd(t);r.removeChild(n);}}function fD(e,t){var n=lh.get(e);if(!n||!cD(document,n)){var r=Rw("",t),o=r.parentNode;lh.set(e,o),e.removeChild(r);}}function Pi(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Rd(n);fD(r,n);var o=Tw(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=Rw(e,n);return l.setAttribute(Ow(n),t),l}var Vf;function mD(e){if(typeof document>"u")return 0;if(e||Vf===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),Vf=o-a;}return Vf}function hD(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var gD="rc-util-locker-".concat(Date.now()),Cb=0;function vD(e){var t=!!e,n=m__namespace.useState(function(){return Cb+=1,"".concat(gD,"_").concat(Cb)}),r=Z(n,1),o=r[0];Xt(function(){if(t){var a=mD(),i=hD();Pi(`
html body {
  overflow-y: hidden;
  `.concat(i?"width: calc(100% - ".concat(a,"px);"):"",`
}`),o);}else iu(o);return function(){iu(o);}},[t,o]);}var Sb=!1;function pD(e){return typeof e=="boolean"&&(Sb=e),Sb}var wb=function(t){return t===!1?!1:!Yn()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},_w=m__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=m__namespace.useState(n),c=Z(l,2),u=c[0],d=c[1],f=u||n;m__namespace.useEffect(function(){(i||n)&&d(n);},[n,i]);var h=m__namespace.useState(function(){return wb(o)}),g=Z(h,2),v=g[0],p=g[1];m__namespace.useEffect(function(){var R=wb(o);p(R??null);});var b=lD(f&&!v),y=Z(b,2),C=y[0],w=y[1],x=v??C;vD(r&&n&&Yn()&&(x===C||x===document.body));var E=null;if(s&&Ko(s)&&t){var S=s;E=S.ref;}var $=Ra(E,t);if(!f||!Yn()||v===void 0)return null;var I=x===!1||pD(),P=s;return t&&(P=m__namespace.cloneElement(s,{ref:$})),m__namespace.createElement(Iw.Provider,{value:w},I?P:HC.createPortal(P,x))});function vr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return m.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(vr(r)):Sv.isFragment(r)&&r.props?n=n.concat(vr(r.props.children,t)):n.push(r));}),n}function su(e){return e instanceof HTMLElement||e instanceof SVGElement}function Ts(e){return su(e)?e:e instanceof m.Component?HC.findDOMNode(e):null}var ch=m__namespace.createContext(null);function bD(e){var t=e.children,n=e.onBatchResize,r=m__namespace.useRef(0),o=m__namespace.useRef([]),a=m__namespace.useContext(ch),i=m__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 m__namespace.createElement(ch.Provider,{value:i},t)}var Fo=new Map;function yD(e){e.forEach(function(t){var n,r=t.target;(n=Fo.get(r))===null||n===void 0||n.forEach(function(o){return o(r)});});}var kw=new XP(yD);function CD(e,t){Fo.has(e)||(Fo.set(e,new Set),kw.observe(e)),Fo.get(e).add(t);}function SD(e,t){Fo.has(e)&&(Fo.get(e).delete(t),Fo.get(e).size||(kw.unobserve(e),Fo.delete(e)));}function En(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $b(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,Cw(r.key),r);}}function In(e,t,n){return t&&$b(e.prototype,t),n&&$b(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function uh(e,t){return uh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},uh(e,t)}function Uo(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&&uh(e,t);}function lu(e){return lu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},lu(e)}function wD(){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 Ge(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $D(e,t){if(t&&(it(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ge(e)}function Xo(e){var t=wD();return function(){var r=lu(e),o;if(t){var a=lu(this).constructor;o=Reflect.construct(r,arguments,a);}else o=r.apply(this,arguments);return $D(this,o)}}var xD=function(e){Uo(n,e);var t=Xo(n);function n(){return En(this,n),t.apply(this,arguments)}return In(n,[{key:"render",value:function(){return this.props.children}}]),n}(m__namespace.Component);function ED(e,t){var n=e.children,r=e.disabled,o=m__namespace.useRef(null),a=m__namespace.useRef(null),i=m__namespace.useContext(ch),s=typeof n=="function",l=s?n(o):n,c=m__namespace.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&m__namespace.isValidElement(l)&&Ko(l),d=u?l.ref:null,f=Ra(d,o),h=function(){var b;return Ts(o.current)||(o.current&&it(o.current)==="object"?Ts((b=o.current)===null||b===void 0?void 0:b.nativeElement):null)||Ts(a.current)};m__namespace.useImperativeHandle(t,function(){return h()});var g=m__namespace.useRef(e);g.current=e;var v=m__namespace.useCallback(function(p){var b=g.current,y=b.onResize,C=b.data,w=p.getBoundingClientRect(),x=w.width,E=w.height,S=p.offsetWidth,$=p.offsetHeight,I=Math.floor(x),P=Math.floor(E);if(c.current.width!==I||c.current.height!==P||c.current.offsetWidth!==S||c.current.offsetHeight!==$){var R={width:I,height:P,offsetWidth:S,offsetHeight:$};c.current=R;var M=S===Math.round(x)?x:S,k=$===Math.round(E)?E:$,A=U(U({},R),{},{offsetWidth:M,offsetHeight:k});i==null||i(A,p,C),y&&Promise.resolve().then(function(){y(A,p);});}},[]);return m__namespace.useEffect(function(){var p=h();return p&&!r&&CD(p,v),function(){return SD(p,v)}},[o.current,r]),m__namespace.createElement(xD,{ref:a},u?m__namespace.cloneElement(l,{ref:f}):l)}var ID=m__namespace.forwardRef(ED),PD="rc-observer-key";function OD(e,t){var n=e.children,r=typeof n=="function"?[n]:vr(n);return r.map(function(o,a){var i=(o==null?void 0:o.key)||"".concat(PD,"-").concat(a);return m__namespace.createElement(ID,Ie({},e,{key:i,ref:a===0?t:void 0}),o)})}var Or=m__namespace.forwardRef(OD);Or.Collection=bD;function Nw(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function MD(e){return Nw(e)instanceof ShadowRoot}function cu(e){return MD(e)?Nw(e):null}function Ln(e){var t=m__namespace.useRef();t.current=e;var n=m__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 RD(){var e=U({},m__namespace);return e.useId}var xb=0,Eb=RD();const TD=Eb?function(t){var n=Eb();return t||n}:function(t){var n=m__namespace.useState("ssr-id"),r=Z(n,2),o=r[0],a=r[1];return m__namespace.useEffect(function(){var i=xb;xb+=1,a("rc_unique_".concat(i));},[]),t||o},Td=function(){if(typeof navigator>"u"||typeof window>"u")return !1;var e=navigator.userAgent||navigator.vendor||window.opera;return /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};var _D=["children"],Aw=m__namespace.createContext({});function kD(e){var t=e.children,n=et(e,_D);return m__namespace.createElement(Aw.Provider,{value:n},t)}var ND=function(e){Uo(n,e);var t=Xo(n);function n(){return En(this,n),t.apply(this,arguments)}return In(n,[{key:"render",value:function(){return this.props.children}}]),n}(m__namespace.Component);function ha(e){var t=m__namespace.useRef(!1),n=m__namespace.useState(e),r=Z(n,2),o=r[0],a=r[1];m__namespace.useEffect(function(){return t.current=!1,function(){t.current=!0;}},[]);function i(s,l){l&&t.current||a(s);}return [o,i]}var Qo="none",dc="appear",fc="enter",mc="leave",Ib="none",Lr="prepare",ii="start",si="active",$v="end",Lw="prepared";function Pb(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 AD(e,t){var n={animationend:Pb("Animation","AnimationEnd"),transitionend:Pb("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var LD=AD(Yn(),typeof window<"u"?window:{}),Fw={};if(Yn()){var FD=document.createElement("div");Fw=FD.style;}var hc={};function Dw(e){if(hc[e])return hc[e];var t=LD[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 Fw)return hc[e]=t[a],hc[e]}return ""}var jw=Dw("animationend"),zw=Dw("transitionend"),Bw=!!(jw&&zw),Ob=jw||"animationend",Mb=zw||"transitionend";function Rb(e,t){if(!e)return null;if(it(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return "".concat(e,"-").concat(t)}const DD=function(e){var t=m.useRef(),n=m.useRef(e);n.current=e;var r=m__namespace.useCallback(function(i){n.current(i);},[]);function o(i){i&&(i.removeEventListener(Mb,r),i.removeEventListener(Ob,r));}function a(i){t.current&&t.current!==i&&o(t.current),i&&i!==t.current&&(i.addEventListener(Mb,r),i.addEventListener(Ob,r),t.current=i);}return m__namespace.useEffect(function(){return function(){o(t.current);}},[]),[a,o]};var Hw=Yn()?m.useLayoutEffect:m.useEffect,Vw=function(t){return +setTimeout(t,16)},Ww=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(Vw=function(t){return window.requestAnimationFrame(t)},Ww=function(t){return window.cancelAnimationFrame(t)});var Tb=0,xv=new Map;function Gw(e){xv.delete(e);}var Mt=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Tb+=1;var r=Tb;function o(a){if(a===0)Gw(r),t();else {var i=Vw(function(){o(a-1);});xv.set(r,i);}}return o(n),r};Mt.cancel=function(e){var t=xv.get(e);return Gw(e),Ww(t)};const jD=function(){var e=m__namespace.useRef(null);function t(){Mt.cancel(e.current);}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var a=Mt(function(){o<=1?r({isCanceled:function(){return a!==e.current}}):n(r,o-1);});e.current=a;}return m__namespace.useEffect(function(){return function(){t();}},[]),[n,t]};var zD=[Lr,ii,si,$v],BD=[Lr,Lw],Kw=!1,HD=!0;function Uw(e){return e===si||e===$v}const VD=function(e,t,n){var r=ha(Ib),o=Z(r,2),a=o[0],i=o[1],s=jD(),l=Z(s,2),c=l[0],u=l[1];function d(){i(Lr,!0);}var f=t?BD:zD;return Hw(function(){if(a!==Ib&&a!==$v){var h=f.indexOf(a),g=f[h+1],v=n(a);v===Kw?i(g,!0):g&&c(function(p){function b(){p.isCanceled()||i(g,!0);}v===!0?b():Promise.resolve(v).then(b);});}},[e,a]),m__namespace.useEffect(function(){return function(){u();}},[]),[d,a]};function WD(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,f=r.onAppearPrepare,h=r.onEnterPrepare,g=r.onLeavePrepare,v=r.onAppearStart,p=r.onEnterStart,b=r.onLeaveStart,y=r.onAppearActive,C=r.onEnterActive,w=r.onLeaveActive,x=r.onAppearEnd,E=r.onEnterEnd,S=r.onLeaveEnd,$=r.onVisibleChanged,I=ha(),P=Z(I,2),R=P[0],M=P[1],k=ha(Qo),A=Z(k,2),L=A[0],_=A[1],O=ha(null),T=Z(O,2),D=T[0],j=T[1],B=m.useRef(!1),H=m.useRef(null);function G(){return n()}var K=m.useRef(!1);function X(){_(Qo,!0),j(null,!0);}function Y(re){var ae=G();if(!(re&&!re.deadline&&re.target!==ae)){var he=K.current,Ce;L===dc&&he?Ce=x==null?void 0:x(ae,re):L===fc&&he?Ce=E==null?void 0:E(ae,re):L===mc&&he&&(Ce=S==null?void 0:S(ae,re)),L!==Qo&&he&&Ce!==!1&&X();}}var ee=DD(Y),V=Z(ee,1),J=V[0],q=function(ae){var he,Ce,_e;switch(ae){case dc:return he={},z(he,Lr,f),z(he,ii,v),z(he,si,y),he;case fc:return Ce={},z(Ce,Lr,h),z(Ce,ii,p),z(Ce,si,C),Ce;case mc:return _e={},z(_e,Lr,g),z(_e,ii,b),z(_e,si,w),_e;default:return {}}},se=m__namespace.useMemo(function(){return q(L)},[L]),le=VD(L,!e,function(re){if(re===Lr){var ae=se[Lr];return ae?ae(G()):Kw}if(de in se){var he;j(((he=se[de])===null||he===void 0?void 0:he.call(se,G(),null))||null);}return de===si&&(J(G()),u>0&&(clearTimeout(H.current),H.current=setTimeout(function(){Y({deadline:!0});},u))),de===Lw&&X(),HD}),Q=Z(le,2),ne=Q[0],de=Q[1],te=Uw(de);K.current=te,Hw(function(){M(t);var re=B.current;B.current=!0;var ae;!re&&t&&s&&(ae=dc),re&&t&&a&&(ae=fc),(re&&!t&&c||!re&&d&&!t&&c)&&(ae=mc);var he=q(ae);ae&&(e||he[Lr])?(_(ae),ne()):_(Qo);},[t]),m.useEffect(function(){(L===dc&&!s||L===fc&&!a||L===mc&&!c)&&_(Qo);},[s,a,c]),m.useEffect(function(){return function(){B.current=!1,clearTimeout(H.current);}},[]);var ce=m__namespace.useRef(!1);m.useEffect(function(){R&&(ce.current=!0),R!==void 0&&L===Qo&&((ce.current||R)&&($==null||$(R)),ce.current=!0);},[R,L]);var ge=D;return se[Lr]&&de===ii&&(ge=U({transition:"none"},ge)),[L,de,ge,R??t]}function GD(e){var t=e;it(e)==="object"&&(t=e.transitionSupport);function n(o,a){return !!(o.motionName&&t&&a!==!1)}var r=m__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,f=o.motionName,h=o.leavedClassName,g=o.eventProps,v=m__namespace.useContext(Aw),p=v.motion,b=n(o,p),y=m.useRef(),C=m.useRef();function w(){try{return y.current instanceof HTMLElement?y.current:Ts(C.current)}catch{return null}}var x=WD(b,s,w,o),E=Z(x,4),S=E[0],$=E[1],I=E[2],P=E[3],R=m__namespace.useRef(P);P&&(R.current=!0);var M=m__namespace.useCallback(function(j){y.current=j,wv(a,j);},[a]),k,A=U(U({},g),{},{visible:s});if(!d)k=null;else if(S===Qo)P?k=d(U({},A),M):!c&&R.current&&h?k=d(U(U({},A),{},{className:h}),M):u||!c&&!h?k=d(U(U({},A),{},{style:{display:"none"}}),M):k=null;else {var L,_;$===Lr?_="prepare":Uw($)?_="active":$===ii&&(_="start");var O=Rb(f,"".concat(S,"-").concat(_));k=d(U(U({},A),{},{className:W(Rb(f,S),(L={},z(L,O,O&&_),z(L,f,typeof f=="string"),L)),style:I}),M);}if(m__namespace.isValidElement(k)&&Ko(k)){var T=k,D=T.ref;D||(k=m__namespace.cloneElement(k,{ref:M}));}return m__namespace.createElement(ND,{ref:C},k)});return r.displayName="CSSMotion",r}const Io=GD(Bw);var dh="add",fh="keep",mh="remove",Wf="removed";function KD(e){var t;return e&&it(e)==="object"&&"key"in e?t=e:t={key:e},U(U({},t),{},{key:String(t.key)})}function hh(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(KD)}function UD(){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=hh(e),i=hh(t);a.forEach(function(c){for(var u=!1,d=r;d<o;d+=1){var f=i[d];if(f.key===c.key){r<d&&(n=n.concat(i.slice(r,d).map(function(h){return U(U({},h),{},{status:dh})})),r=d),n.push(U(U({},f),{},{status:fh})),r+=1,u=!0;break}}u||n.push(U(U({},c),{},{status:mh}));}),r<o&&(n=n.concat(i.slice(r).map(function(c){return U(U({},c),{},{status:dh})})));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,f=u.status;return d!==c||f!==mh}),n.forEach(function(u){u.key===c&&(u.status=fh);});}),n}var XD=["component","children","onVisibleChanged","onAllRemoved"],qD=["status"],YD=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function ZD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Io,n=function(r){Uo(a,r);var o=Xo(a);function a(){var i;En(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(Ge(i),"state",{keyEntities:[]}),z(Ge(i),"removeKey",function(u){var d=i.state.keyEntities,f=d.map(function(h){return h.key!==u?h:U(U({},h),{},{status:Wf})});return i.setState({keyEntities:f}),f.filter(function(h){var g=h.status;return g!==Wf}).length}),i}return In(a,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,c=this.props,u=c.component,d=c.children,f=c.onVisibleChanged,h=c.onAllRemoved,g=et(c,XD),v=u||m__namespace.Fragment,p={};return YD.forEach(function(b){p[b]=g[b],delete g[b];}),delete g.keys,m__namespace.createElement(v,g,l.map(function(b,y){var C=b.status,w=et(b,qD),x=C===dh||C===fh;return m__namespace.createElement(t,Ie({},p,{key:w.key,visible:x,eventProps:w,onVisibleChanged:function(S){if(f==null||f(S,{key:w.key}),!S){var $=s.removeKey(w.key);$===0&&h&&h();}}}),function(E,S){return d(U(U({},E),{},{index:y}),S)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var c=s.keys,u=l.keyEntities,d=hh(c),f=UD(u,d);return {keyEntities:f.filter(function(h){var g=u.find(function(v){var p=v.key;return h.key===p});return !(g&&g.status===Wf&&h.status===mh)})}}}]),a}(m__namespace.Component);return z(n,"defaultProps",{component:"div"}),n}ZD(Bw);function QD(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,f=m__namespace.useRef();if(!n||!n.points)return null;var h={position:"absolute"};if(n.autoArrow!==!1){var g=n.points[0],v=n.points[1],p=g[0],b=g[1],y=v[0],C=v[1];p===y||!["t","b"].includes(p)?h.top=d:p==="t"?h.top=0:h.bottom=0,b===C||!["l","r"].includes(b)?h.left=c:b==="l"?h.left=0:h.right=0;}return m__namespace.createElement("div",{ref:f,className:W("".concat(t,"-arrow"),i),style:h},s)}function JD(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,a=e.motion;return o?m__namespace.createElement(Io,Ie({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(i){var s=i.className;return m__namespace.createElement("div",{style:{zIndex:r},className:W("".concat(t,"-mask"),s)})}):null}var ej=m__namespace.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),tj=m__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,f=e.mask,h=e.arrow,g=e.arrowPos,v=e.align,p=e.motion,b=e.maskMotion,y=e.forceRender,C=e.getPopupContainer,w=e.autoDestroy,x=e.portal,E=e.zIndex,S=e.onMouseEnter,$=e.onMouseLeave,I=e.onPointerEnter,P=e.ready,R=e.offsetX,M=e.offsetY,k=e.offsetR,A=e.offsetB,L=e.onAlign,_=e.onPrepare,O=e.stretch,T=e.targetWidth,D=e.targetHeight,j=typeof n=="function"?n():n,B=l||c,H=(C==null?void 0:C.length)>0,G=m__namespace.useState(!C||!H),K=Z(G,2),X=K[0],Y=K[1];if(Xt(function(){!X&&H&&i&&Y(!0);},[X,H,i]),!X)return null;var ee="auto",V={left:"-1000vw",top:"-1000vh",right:ee,bottom:ee};if(P||!l){var J,q=v.points,se=v.dynamicInset||((J=v._experimental)===null||J===void 0?void 0:J.dynamicInset),le=se&&q[0][1]==="r",Q=se&&q[0][0]==="b";le?(V.right=k,V.left=ee):(V.left=R,V.right=ee),Q?(V.bottom=A,V.top=ee):(V.top=M,V.bottom=ee);}var ne={};return O&&(O.includes("height")&&D?ne.height=D:O.includes("minHeight")&&D&&(ne.minHeight=D),O.includes("width")&&T?ne.width=T:O.includes("minWidth")&&T&&(ne.minWidth=T)),l||(ne.pointerEvents="none"),m__namespace.createElement(x,{open:y||B,getContainer:C&&function(){return C(i)},autoDestroy:w},m__namespace.createElement(JD,{prefixCls:o,open:l,zIndex:E,mask:f,motion:b}),m__namespace.createElement(Or,{onResize:L,disabled:!l},function(de){return m__namespace.createElement(Io,Ie({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(o,"-hidden")},p,{onAppearPrepare:_,onEnterPrepare:_,visible:l,onVisibleChanged:function(ce){var ge;p==null||(ge=p.onVisibleChanged)===null||ge===void 0||ge.call(p,ce),s(ce);}}),function(te,ce){var ge=te.className,re=te.style,ae=W(o,ge,r);return m__namespace.createElement("div",{ref:Jn(de,t,ce),className:ae,style:U(U(U(U({"--arrow-x":"".concat(g.x||0,"px"),"--arrow-y":"".concat(g.y||0,"px")},V),ne),re),{},{boxSizing:"border-box",zIndex:E},a),onMouseEnter:S,onMouseLeave:$,onPointerEnter:I,onClick:d},h&&m__namespace.createElement(QD,{prefixCls:o,arrow:h,arrowPos:g,align:v}),m__namespace.createElement(ej,{cache:!l&&!u},j))})}))}),nj=m__namespace.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=Ko(n),a=m__namespace.useCallback(function(s){wv(t,r?r(s):s);},[r]),i=Ra(a,n.ref);return o?m__namespace.cloneElement(n,{ref:i}):n}),_b=m__namespace.createContext(null);function kb(e){return e?Array.isArray(e)?e:[e]:[]}function rj(e,t,n,r){return m__namespace.useMemo(function(){var o=kb(n??t),a=kb(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 Ev=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 oj(){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 aj(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(oj((s=e[l])===null||s===void 0?void 0:s.points,o,r))return "".concat(t,"-placement-").concat(l)}return ""}function Nb(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function xl(e){return e.ownerDocument.defaultView}function gh(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=xl(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 Ys(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function fs(e){return Ys(parseFloat(e),0)}function Ab(e,t){var n=U({},e);return (t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=xl(r).getComputedStyle(r),a=o.overflow,i=o.overflowClipMargin,s=o.borderTopWidth,l=o.borderBottomWidth,c=o.borderLeftWidth,u=o.borderRightWidth,d=r.getBoundingClientRect(),f=r.offsetHeight,h=r.clientHeight,g=r.offsetWidth,v=r.clientWidth,p=fs(s),b=fs(l),y=fs(c),C=fs(u),w=Ys(Math.round(d.width/g*1e3)/1e3),x=Ys(Math.round(d.height/f*1e3)/1e3),E=(g-v-y-C)*w,S=(f-h-p-b)*x,$=p*x,I=b*x,P=y*w,R=C*w,M=0,k=0;if(a==="clip"){var A=fs(i);M=A*w,k=A*x;}var L=d.x+P-M,_=d.y+$-k,O=L+d.width+2*M-P-R-E,T=_+d.height+2*k-$-I-S;n.left=Math.max(n.left,L),n.top=Math.max(n.top,_),n.right=Math.min(n.right,O),n.bottom=Math.min(n.bottom,T);}}),n}function Lb(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 Fb(e,t){var n=t||[],r=Z(n,2),o=r[0],a=r[1];return [Lb(e.width,o),Lb(e.height,a)]}function Db(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return [e[0],e[1]]}function za(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 Mo(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 ij(e,t,n,r,o,a,i){var s=m__namespace.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),l=Z(s,2),c=l[0],u=l[1],d=m__namespace.useRef(0),f=m__namespace.useMemo(function(){return t?gh(t):[]},[t]),h=m__namespace.useRef({}),g=function(){h.current={};};e||g();var v=Ln(function(){if(t&&n&&e){let wr=function(fo,qo){var Da=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ae,ja=j.x+fo,ss=j.y+qo,ls=ja+J,oc=ss+V,Pf=Math.max(ja,Da.left),Of=Math.max(ss,Da.top),Mf=Math.min(ls,Da.right),Rf=Math.min(oc,Da.bottom);return Math.max(0,(Mf-Pf)*(Rf-Of))},rc=function(){St=j.y+pe,ct=St+V,Ae=j.x+ke,Ee=Ae+J;};var y,C,w=t,x=w.ownerDocument,E=xl(w),S=E.getComputedStyle(w),$=S.width,I=S.height,P=S.position,R=w.style.left,M=w.style.top,k=w.style.right,A=w.style.bottom,L=w.style.overflow,_=U(U({},o[r]),a),O=x.createElement("div");(y=w.parentElement)===null||y===void 0||y.appendChild(O),O.style.left="".concat(w.offsetLeft,"px"),O.style.top="".concat(w.offsetTop,"px"),O.style.position=P,O.style.height="".concat(w.offsetHeight,"px"),O.style.width="".concat(w.offsetWidth,"px"),w.style.left="0",w.style.top="0",w.style.right="auto",w.style.bottom="auto",w.style.overflow="hidden";var T;if(Array.isArray(n))T={x:n[0],y:n[1],width:0,height:0};else {var D=n.getBoundingClientRect();T={x:D.x,y:D.y,width:D.width,height:D.height};}var j=w.getBoundingClientRect(),B=x.documentElement,H=B.clientWidth,G=B.clientHeight,K=B.scrollWidth,X=B.scrollHeight,Y=B.scrollTop,ee=B.scrollLeft,V=j.height,J=j.width,q=T.height,se=T.width,le={left:0,top:0,right:H,bottom:G},Q={left:-ee,top:-Y,right:K-ee,bottom:X-Y},ne=_.htmlRegion,de="visible",te="visibleFirst";ne!=="scroll"&&ne!==te&&(ne=de);var ce=ne===te,ge=Ab(Q,f),re=Ab(le,f),ae=ne===de?re:ge,he=ce?re:ae;w.style.left="auto",w.style.top="auto",w.style.right="0",w.style.bottom="0";var Ce=w.getBoundingClientRect();w.style.left=R,w.style.top=M,w.style.right=k,w.style.bottom=A,w.style.overflow=L,(C=w.parentElement)===null||C===void 0||C.removeChild(O);var _e=Ys(Math.round(J/parseFloat($)*1e3)/1e3),He=Ys(Math.round(V/parseFloat(I)*1e3)/1e3);if(_e===0||He===0||su(n)&&!Ev(n))return;var We=_.offset,Me=_.targetOffset,Ye=Fb(j,We),Be=Z(Ye,2),Ve=Be[0],Pe=Be[1],xe=Fb(T,Me),qe=Z(xe,2),rt=qe[0],yt=qe[1];T.x-=rt,T.y-=yt;var Qe=_.points||[],Je=Z(Qe,2),pt=Je[0],ht=Je[1],lt=Db(ht),ft=Db(pt),xt=za(T,lt),Oe=za(j,ft),Re=U({},_),ke=xt.x-Oe.x+Ve,pe=xt.y-Oe.y+Pe,De=wr(ke,pe),$e=wr(ke,pe,re),fe=za(T,["t","l"]),oe=za(j,["t","l"]),ye=za(T,["b","r"]),ue=za(j,["b","r"]),ve=_.overflow||{},Ne=ve.adjustX,Ue=ve.adjustY,bt=ve.shiftX,gt=ve.shiftY,Nt=function(qo){return typeof qo=="boolean"?qo:qo>=0},St,ct,Ae,Ee;rc();var Se=Nt(Ue),we=ft[0]===lt[0];if(Se&&ft[0]==="t"&&(ct>he.bottom||h.current.bt)){var je=pe;we?je-=V-q:je=fe.y-ue.y-Pe;var ut=wr(ke,je),_t=wr(ke,je,re);ut>De||ut===De&&(!ce||_t>=$e)?(h.current.bt=!0,pe=je,Pe=-Pe,Re.points=[Mo(ft,0),Mo(lt,0)]):h.current.bt=!1;}if(Se&&ft[0]==="b"&&(St<he.top||h.current.tb)){var Rt=pe;we?Rt+=V-q:Rt=ye.y-oe.y-Pe;var hn=wr(ke,Rt),un=wr(ke,Rt,re);hn>De||hn===De&&(!ce||un>=$e)?(h.current.tb=!0,pe=Rt,Pe=-Pe,Re.points=[Mo(ft,0),Mo(lt,0)]):h.current.tb=!1;}var gn=Nt(Ne),Wn=ft[1]===lt[1];if(gn&&ft[1]==="l"&&(Ee>he.right||h.current.rl)){var wn=ke;Wn?wn-=J-se:wn=fe.x-ue.x-Ve;var Ur=wr(wn,pe),uo=wr(wn,pe,re);Ur>De||Ur===De&&(!ce||uo>=$e)?(h.current.rl=!0,ke=wn,Ve=-Ve,Re.points=[Mo(ft,1),Mo(lt,1)]):h.current.rl=!1;}if(gn&&ft[1]==="r"&&(Ae<he.left||h.current.lr)){var Gn=ke;Wn?Gn+=J-se:Gn=ye.x-oe.x-Ve;var Oo=wr(Gn,pe),Tr=wr(Gn,pe,re);Oo>De||Oo===De&&(!ce||Tr>=$e)?(h.current.lr=!0,ke=Gn,Ve=-Ve,Re.points=[Mo(ft,1),Mo(lt,1)]):h.current.lr=!1;}rc();var ar=bt===!0?0:bt;typeof ar=="number"&&(Ae<re.left&&(ke-=Ae-re.left-Ve,T.x+se<re.left+ar&&(ke+=T.x-re.left+se-ar)),Ee>re.right&&(ke-=Ee-re.right-Ve,T.x>re.right-ar&&(ke+=T.x-re.right+ar)));var Cr=gt===!0?0:gt;typeof Cr=="number"&&(St<re.top&&(pe-=St-re.top-Pe,T.y+q<re.top+Cr&&(pe+=T.y-re.top+q-Cr)),ct>re.bottom&&(pe-=ct-re.bottom-Pe,T.y>re.bottom-Cr&&(pe+=T.y-re.bottom+Cr)));var Xr=j.x+ke,qr=Xr+J,er=j.y+pe,Yr=er+V,dt=T.x,Le=dt+se,ot=T.y,vt=ot+q,wt=Math.max(Xr,dt),At=Math.min(qr,Le),en=(wt+At)/2,Kn=en-Xr,tr=Math.max(er,ot),_r=Math.min(Yr,vt),Sr=(tr+_r)/2,Fa=Sr-er;i==null||i(t,Re);var nc=Ce.right-j.x-(ke+j.width),If=Ce.bottom-j.y-(pe+j.height);u({ready:!0,offsetX:ke/_e,offsetY:pe/He,offsetR:nc/_e,offsetB:If/He,arrowX:Kn/_e,arrowY:Fa/He,scaleX:_e,scaleY:He,align:Re});}}),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 Xt(b,[r]),Xt(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 sj(e,t,n,r,o){Xt(function(){if(e&&t&&n){let d=function(){r(),o();};var a=t,i=n,s=gh(a),l=gh(i),c=xl(i),u=new Set([c].concat(Te(s),Te(l)));return u.forEach(function(f){f.addEventListener("scroll",d,{passive:!0});}),c.addEventListener("resize",d,{passive:!0}),r(),function(){u.forEach(function(f){f.removeEventListener("scroll",d),c.removeEventListener("resize",d);});}}},[e,t,n]);}function lj(e,t,n,r,o,a,i,s){var l=m__namespace.useRef(e),c=m__namespace.useRef(!1);l.current!==e&&(c.current=!0,l.current=e),m__namespace.useEffect(function(){var u=Mt(function(){c.current=!1;});return function(){Mt.cancel(u);}},[e]),m__namespace.useEffect(function(){if(t&&r&&(!o||a)){var u=function(){var E=!1,S=function(P){var R=P.target;E=i(R);},$=function(P){var R=P.target;!c.current&&l.current&&!E&&!i(R)&&s(!1);};return [S,$]},d=u(),f=Z(d,2),h=f[0],g=f[1],v=u(),p=Z(v,2),b=p[0],y=p[1],C=xl(r);C.addEventListener("mousedown",h,!0),C.addEventListener("click",g,!0),C.addEventListener("contextmenu",g,!0);var w=cu(n);return w&&(w.addEventListener("mousedown",b,!0),w.addEventListener("click",y,!0),w.addEventListener("contextmenu",y,!0)),function(){C.removeEventListener("mousedown",h,!0),C.removeEventListener("click",g,!0),C.removeEventListener("contextmenu",g,!0),w&&(w.removeEventListener("mousedown",b,!0),w.removeEventListener("click",y,!0),w.removeEventListener("contextmenu",y,!0));}}},[t,n,r,o,a]);}var cj=["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 uj(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_w,t=m__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,f=n.defaultPopupVisible,h=n.onPopupVisibleChange,g=n.afterPopupVisibleChange,v=n.mouseEnterDelay,p=n.mouseLeaveDelay,b=p===void 0?.1:p,y=n.focusDelay,C=n.blurDelay,w=n.mask,x=n.maskClosable,E=x===void 0?!0:x,S=n.getPopupContainer,$=n.forceRender,I=n.autoDestroy,P=n.destroyPopupOnHide,R=n.popup,M=n.popupClassName,k=n.popupStyle,A=n.popupPlacement,L=n.builtinPlacements,_=L===void 0?{}:L,O=n.popupAlign,T=n.zIndex,D=n.stretch,j=n.getPopupClassNameFromAlign,B=n.fresh,H=n.alignPoint,G=n.onPopupClick,K=n.onPopupAlign,X=n.arrow,Y=n.popupMotion,ee=n.maskMotion,V=n.popupTransitionName,J=n.popupAnimation,q=n.maskTransitionName,se=n.maskAnimation,le=n.className,Q=n.getTriggerDOMNode,ne=et(n,cj),de=I||P||!1,te=m__namespace.useState(!1),ce=Z(te,2),ge=ce[0],re=ce[1];Xt(function(){re(Td());},[]);var ae=m__namespace.useRef({}),he=m__namespace.useContext(_b),Ce=m__namespace.useMemo(function(){return {registerSubPopup:function(mt,on){ae.current[mt]=on,he==null||he.registerSubPopup(mt,on);}}},[he]),_e=TD(),He=m__namespace.useState(null),We=Z(He,2),Me=We[0],Ye=We[1],Be=Ln(function(Xe){su(Xe)&&Me!==Xe&&Ye(Xe),he==null||he.registerSubPopup(_e,Xe);}),Ve=m__namespace.useState(null),Pe=Z(Ve,2),xe=Pe[0],qe=Pe[1],rt=m__namespace.useRef(null),yt=Ln(function(Xe){su(Xe)&&xe!==Xe&&(qe(Xe),rt.current=Xe);}),Qe=m__namespace.Children.only(i),Je=(Qe==null?void 0:Qe.props)||{},pt={},ht=Ln(function(Xe){var mt,on,bn=xe;return (bn==null?void 0:bn.contains(Xe))||((mt=cu(bn))===null||mt===void 0?void 0:mt.host)===Xe||Xe===bn||(Me==null?void 0:Me.contains(Xe))||((on=cu(Me))===null||on===void 0?void 0:on.host)===Xe||Xe===Me||Object.values(ae.current).some(function(an){return (an==null?void 0:an.contains(Xe))||Xe===an})}),lt=Nb(a,Y,J,V),ft=Nb(a,ee,se,q),xt=m__namespace.useState(f||!1),Oe=Z(xt,2),Re=Oe[0],ke=Oe[1],pe=d??Re,De=Ln(function(Xe){d===void 0&&ke(Xe);});Xt(function(){ke(d||!1);},[d]);var $e=m__namespace.useRef(pe);$e.current=pe;var fe=m__namespace.useRef([]);fe.current=[];var oe=Ln(function(Xe){var mt;De(Xe),((mt=fe.current[fe.current.length-1])!==null&&mt!==void 0?mt:pe)!==Xe&&(fe.current.push(Xe),h==null||h(Xe));}),ye=m__namespace.useRef(),ue=function(){clearTimeout(ye.current);},ve=function(mt){var on=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;ue(),on===0?oe(mt):ye.current=setTimeout(function(){oe(mt);},on*1e3);};m__namespace.useEffect(function(){return ue},[]);var Ne=m__namespace.useState(!1),Ue=Z(Ne,2),bt=Ue[0],gt=Ue[1];Xt(function(Xe){(!Xe||pe)&&gt(!0);},[pe]);var Nt=m__namespace.useState(null),St=Z(Nt,2),ct=St[0],Ae=St[1],Ee=m__namespace.useState([0,0]),Se=Z(Ee,2),we=Se[0],je=Se[1],ut=function(mt){je([mt.clientX,mt.clientY]);},_t=ij(pe,Me,H?we:xe,A,_,O,K),Rt=Z(_t,11),hn=Rt[0],un=Rt[1],gn=Rt[2],Wn=Rt[3],wn=Rt[4],Ur=Rt[5],uo=Rt[6],Gn=Rt[7],Oo=Rt[8],Tr=Rt[9],ar=Rt[10],Cr=rj(ge,l,c,u),Xr=Z(Cr,2),qr=Xr[0],er=Xr[1],Yr=qr.has("click"),dt=er.has("click")||er.has("contextMenu"),Le=Ln(function(){bt||ar();}),ot=function(){$e.current&&H&&dt&&ve(!1);};sj(pe,xe,Me,Le,ot),Xt(function(){Le();},[we,A]),Xt(function(){pe&&!(_!=null&&_[A])&&Le();},[JSON.stringify(O)]);var vt=m__namespace.useMemo(function(){var Xe=aj(_,a,Tr,H);return W(Xe,j==null?void 0:j(Tr))},[Tr,j,_,a,H]);m__namespace.useImperativeHandle(r,function(){return {nativeElement:rt.current,forceAlign:Le}});var wt=m__namespace.useState(0),At=Z(wt,2),en=At[0],Kn=At[1],tr=m__namespace.useState(0),_r=Z(tr,2),Sr=_r[0],Fa=_r[1],nc=function(){if(D&&xe){var mt=xe.getBoundingClientRect();Kn(mt.width),Fa(mt.height);}},If=function(){nc(),Le();},wr=function(mt){gt(!1),ar(),g==null||g(mt);},rc=function(){return new Promise(function(mt){nc(),Ae(function(){return mt});})};Xt(function(){ct&&(ar(),ct(),Ae(null));},[ct]);function fo(Xe,mt,on,bn){pt[Xe]=function(an){var ac;bn==null||bn(an),ve(mt,on);for(var Tf=arguments.length,v0=new Array(Tf>1?Tf-1:0),ic=1;ic<Tf;ic++)v0[ic-1]=arguments[ic];(ac=Je[Xe])===null||ac===void 0||ac.call.apply(ac,[Je,an].concat(v0));};}(Yr||dt)&&(pt.onClick=function(Xe){var mt;$e.current&&dt?ve(!1):!$e.current&&Yr&&(ut(Xe),ve(!0));for(var on=arguments.length,bn=new Array(on>1?on-1:0),an=1;an<on;an++)bn[an-1]=arguments[an];(mt=Je.onClick)===null||mt===void 0||mt.call.apply(mt,[Je,Xe].concat(bn));}),lj(pe,dt,xe,Me,w,E,ht,ve);var qo=qr.has("hover"),Da=er.has("hover"),ja,ss;qo&&(fo("onMouseEnter",!0,v,function(Xe){ut(Xe);}),fo("onPointerEnter",!0,v,function(Xe){ut(Xe);}),ja=function(){(pe||bt)&&ve(!0,v);},H&&(pt.onMouseMove=function(Xe){var mt;(mt=Je.onMouseMove)===null||mt===void 0||mt.call(Je,Xe);})),Da&&(fo("onMouseLeave",!1,b),fo("onPointerLeave",!1,b),ss=function(){ve(!1,b);}),qr.has("focus")&&fo("onFocus",!0,y),er.has("focus")&&fo("onBlur",!1,C),qr.has("contextMenu")&&(pt.onContextMenu=function(Xe){var mt;$e.current&&er.has("contextMenu")?ve(!1):(ut(Xe),ve(!0)),Xe.preventDefault();for(var on=arguments.length,bn=new Array(on>1?on-1:0),an=1;an<on;an++)bn[an-1]=arguments[an];(mt=Je.onContextMenu)===null||mt===void 0||mt.call.apply(mt,[Je,Xe].concat(bn));}),le&&(pt.className=W(Je.className,le));var ls=U(U({},Je),pt),oc={},Pf=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Pf.forEach(function(Xe){ne[Xe]&&(oc[Xe]=function(){for(var mt,on=arguments.length,bn=new Array(on),an=0;an<on;an++)bn[an]=arguments[an];(mt=ls[Xe])===null||mt===void 0||mt.call.apply(mt,[ls].concat(bn)),ne[Xe].apply(ne,bn);});});var Of=m__namespace.cloneElement(Qe,U(U({},ls),oc)),Mf={x:Ur,y:uo},Rf=X?U({},X!==!0?X:{}):null;return m__namespace.createElement(m__namespace.Fragment,null,m__namespace.createElement(Or,{disabled:!pe,ref:yt,onResize:If},m__namespace.createElement(nj,{getTriggerDOMNode:Q},Of)),m__namespace.createElement(_b.Provider,{value:Ce},m__namespace.createElement(tj,{portal:e,ref:Be,prefixCls:a,popup:R,className:W(M,vt),style:k,target:xe,onMouseEnter:ja,onMouseLeave:ss,onPointerEnter:ja,zIndex:T,open:pe,keepDom:bt,fresh:B,onClick:G,mask:w,motion:lt,maskMotion:ft,onVisibleChanged:wr,onPrepare:rc,forceRender:$,autoDestroy:de,getPopupContainer:S,align:Tr,arrow:Rf,arrowPos:Mf,ready:hn,offsetX:un,offsetY:gn,offsetR:Wn,offsetB:wn,onAlign:Le,stretch:D,targetWidth:en/Gn,targetHeight:Sr/Oo})))});return t}const _d=uj(_w);var Ba={shiftX:64,adjustY:1},Ha={adjustX:1,shiftY:!0},$r=[0,0],dj={left:{points:["cr","cl"],overflow:Ha,offset:[-4,0],targetOffset:$r},right:{points:["cl","cr"],overflow:Ha,offset:[4,0],targetOffset:$r},top:{points:["bc","tc"],overflow:Ba,offset:[0,-4],targetOffset:$r},bottom:{points:["tc","bc"],overflow:Ba,offset:[0,4],targetOffset:$r},topLeft:{points:["bl","tl"],overflow:Ba,offset:[0,-4],targetOffset:$r},leftTop:{points:["tr","tl"],overflow:Ha,offset:[-4,0],targetOffset:$r},topRight:{points:["br","tr"],overflow:Ba,offset:[0,-4],targetOffset:$r},rightTop:{points:["tl","tr"],overflow:Ha,offset:[4,0],targetOffset:$r},bottomRight:{points:["tr","br"],overflow:Ba,offset:[0,4],targetOffset:$r},rightBottom:{points:["bl","br"],overflow:Ha,offset:[4,0],targetOffset:$r},bottomLeft:{points:["tl","bl"],overflow:Ba,offset:[0,4],targetOffset:$r},leftBottom:{points:["br","bl"],overflow:Ha,offset:[-4,0],targetOffset:$r}},fj=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],mj=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,f=d===void 0?"rc-tooltip":d,h=t.children,g=t.onVisibleChange,v=t.afterVisibleChange,p=t.transitionName,b=t.animation,y=t.motion,C=t.placement,w=C===void 0?"right":C,x=t.align,E=x===void 0?{}:x,S=t.destroyTooltipOnHide,$=S===void 0?!1:S,I=t.defaultVisible,P=t.getTooltipContainer,R=t.overlayInnerStyle;t.arrowContent;var M=t.overlay,k=t.id,A=t.showArrow,L=A===void 0?!0:A,_=et(t,fj),O=m.useRef(null);m.useImperativeHandle(n,function(){return O.current});var T=U({},_);"visible"in t&&(T.popupVisible=t.visible);var D=function(){return m__namespace.createElement(pv,{key:"content",prefixCls:f,id:k,overlayInnerStyle:R},M)};return m__namespace.createElement(_d,Ie({popupClassName:r,prefixCls:f,popup:D,action:a,builtinPlacements:dj,popupPlacement:w,ref:O,popupAlign:E,getPopupContainer:P,onPopupVisibleChange:g,afterPopupVisibleChange:v,popupTransitionName:p,popupAnimation:b,popupMotion:y,defaultPopupVisible:I,autoDestroy:$,mouseLeaveDelay:c,popupStyle:u,mouseEnterDelay:s,arrow:L},T),h)};const hj=m.forwardRef(mj);function Gf(e){return e!==void 0}function qt(e,t){var n=t||{},r=n.defaultValue,o=n.value,a=n.onChange,i=n.postState,s=ha(function(){return Gf(o)?o:Gf(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),l=Z(s,2),c=l[0],u=l[1],d=o!==void 0?o:c,f=i?i(d):d,h=Ln(a),g=ha([d]),v=Z(g,2),p=v[0],b=v[1];hi(function(){var C=p[0];c!==C&&h(c,C);},[p]),hi(function(){Gf(o)||u(o);},[o]);var y=Ln(function(C,w){u(C,w),b([d],w);});return [f,y]}function Iv(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 El(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($n(!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&&it(a)==="object"&&it(i)==="object"){var d=Object.keys(a);return d.length!==Object.keys(i).length?!1:d.every(function(f){return o(a[f],i[f],c)})}return !1}return o(e,t)}var jb="%",gj=function(){function e(t){En(this,e),z(this,"instanceId",void 0),z(this,"cache",new Map),this.instanceId=t;}return In(e,[{key:"get",value:function(n){return this.cache.get(n.join(jb))||null}},{key:"update",value:function(n,r){var o=n.join(jb),a=this.cache.get(o),i=r(a);i===null?this.cache.delete(o):this.cache.set(o,i);}}]),e}(),vh="data-token-hash",ga="data-css-hash",li="__cssinjs_instance__";function vj(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(ga,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[li]=o[li]||e,o[li]===e&&document.head.insertBefore(o,n);});var r={};Array.from(document.querySelectorAll("style[".concat(ga,"]"))).forEach(function(o){var a=o.getAttribute(ga);if(r[a]){if(o[li]===e){var i;(i=o.parentNode)===null||i===void 0||i.removeChild(o);}}else r[a]=!0;});}return new gj(e)}var pj=m__namespace.createContext({hashPriority:"low",cache:vj(),defaultCache:!0});const Pv=pj;function bj(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 Ov=function(){function e(){En(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 In(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;i=(l=i)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(s);}}),(r=i)!==null&&r!==void 0&&r.value&&a&&(i.value[1]=this.cacheCallTimes++),(o=i)===null||o===void 0?void 0:o.value}},{key:"get",value:function(n){var r;return (r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return !!this.internalGet(n)}},{key:"set",value:function(n,r){var o=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var a=this.keys.reduce(function(c,u){var d=Z(c,2),f=d[1];return o.internalGet(u)[1]<f?[u,o.internalGet(u)[1]]:c},[this.keys[0],this.cacheCallTimes]),i=Z(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 !bj(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();z(Ov,"MAX_CACHE_SIZE",20);z(Ov,"MAX_CACHE_OFFSET",5);var zb=0,Xw=function(){function e(t){En(this,e),z(this,"derivatives",void 0),z(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=zb,t.length===0&&(t.length>0,void 0),zb+=1;}return In(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),Kf=new Ov;function Zs(e){var t=Array.isArray(e)?e:[e];return Kf.has(t)||Kf.set(t,new Xw(t)),Kf.get(t)}var yj=new WeakMap,Uf={};function Cj(e,t){for(var n=yj,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(Uf)||n.set(Uf,e()),n.get(Uf)}var Bb=new WeakMap;function uu(e){var t=Bb.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof Xw?t+=r.id:r&&it(r)==="object"?t+=uu(r):t+=r;}),Bb.set(e,t)),t}function Sj(e,t){return Iv("".concat(t,"_").concat(uu(e)))}var _s="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),qw="_bAmBoO_";function wj(e,t,n){if(Yn()){var r,o;Pi(e,_s);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(qw);return (o=a.parentNode)===null||o===void 0||o.removeChild(a),iu(_s),i}return !1}var Xf=void 0;function $j(){return Xf===void 0&&(Xf=wj("@layer ".concat(_s," { .").concat(_s,' { content: "').concat(qw,'"!important; } }'),function(e){e.className=_s;})),Xf}var xj=U({},m__namespace),Hb=xj.useInsertionEffect,Ej=function(t,n,r){m__namespace.useMemo(t,r),Xt(function(){return n(!0)},r);},Ij=Hb?function(e,t,n){return Hb(function(){return e(),t()},n)}:Ej;const Pj=Ij;var Oj=U({},m__namespace),Mj=Oj.useInsertionEffect,Rj=function(t){var n=[],r=!1;function o(a){r||n.push(a);}return m__namespace.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(a){return a()});}},t),o},Tj=function(){return function(t){t();}},_j=typeof Mj<"u"?Rj:Tj;const kj=_j;function Yw(e,t,n,r,o){var a=m__namespace.useContext(Pv),i=a.cache,s=[e].concat(Te(t)),l=s.join("_"),c=kj([l]),u=function(g){i.update(s,function(v){var p=v||[],b=Z(p,2),y=b[0],C=y===void 0?0:y,w=b[1],x=w,E=x||n(),S=[C,E];return g?g(S):S});};m__namespace.useMemo(function(){u();},[l]);var d=i.get(s),f=d[1];return Pj(function(){o==null||o(f);},function(h){return u(function(g){var v=Z(g,2),p=v[0],b=v[1];return h&&p===0&&(o==null||o(f)),[p+1,b]}),function(){i.update(s,function(g){var v=g||[],p=Z(v,2),b=p[0],y=b===void 0?0:b,C=p[1],w=y-1;return w===0?(c(function(){return r==null?void 0:r(C,!1)}),null):[y-1,C]});}},[l]),f}var Nj={},Aj="css",ta=new Map;function Lj(e){ta.set(e,(ta.get(e)||0)+1);}function Fj(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(vh,'="').concat(e,'"]'));n.forEach(function(r){if(r[li]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r);}});}}var Dj=0;function jj(e,t){ta.set(e,(ta.get(e)||0)-1);var n=Array.from(ta.keys()),r=n.filter(function(o){var a=ta.get(o)||0;return a<=0});n.length-r.length>Dj&&r.forEach(function(o){Fj(o,t),ta.delete(o);});}var Zw=function(t,n,r,o){var a=r.getDerivativeToken(t),i=U(U({},a),n);return o&&(i=o(i)),i};function zj(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=m.useContext(Pv),o=r.cache.instanceId,a=n.salt,i=a===void 0?"":a,s=n.override,l=s===void 0?Nj:s,c=n.formatToken,u=n.getComputedToken,d=Cj(function(){return Object.assign.apply(Object,[{}].concat(Te(t)))},t),f=uu(d),h=uu(l),g=Yw("token",[i,e.id,f,h],function(){var v=u?u(d,l,e):Zw(d,l,e,c),p=Sj(v,i);v._tokenKey=p,Lj(p);var b="".concat(Aj,"-").concat(Iv(p));return v._hashId=b,[v,b]},function(v){jj(v[0]._tokenKey,o);});return g}var Bj={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},Vb="data-ant-cssinjs-cache-path",Qw="_FILE_STYLE__",va,Jw=!0;function Hj(){if(!va&&(va={},Yn())){var e=document.createElement("div");e.className=Vb,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=Z(a,2),s=i[0],l=i[1];va[s]=l;});var n=document.querySelector("style[".concat(Vb,"]"));if(n){var r;Jw=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n);}document.body.removeChild(e);}}function Vj(e){return Hj(),!!va[e]}function Wj(e){var t=va[e],n=null;if(t&&Yn())if(Jw)n=Qw;else {var r=document.querySelector("style[".concat(ga,'="').concat(va[e],'"]'));r?n=r.innerHTML:delete va[e];}return [n,t]}var Wb=Yn(),Gj="_skip_check_",e$="_multi_value_";function Gb(e){var t=fa(QC(e),JC);return t.replace(/\{%%%\:[^;];}/g,";")}function Kj(e){return it(e)==="object"&&e&&(Gj in e||e$ in e)}function Uj(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(Te(l.slice(1))).join(" ")});return a.join(",")}var Xj=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 f="",h={};function g(C){var w=C.getName(s);if(!h[w]){var x=e(C.style,n,{root:!1,parentSelectors:i}),E=Z(x,1),S=E[0];h[w]="@keyframes ".concat(C.getName(s)).concat(S);}}function v(C){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return C.forEach(function(x){Array.isArray(x)?v(x,w):x&&w.push(x);}),w}var p=v(Array.isArray(t)?t:[t]);if(p.forEach(function(C){var w=typeof C=="string"&&!o?{}:C;if(typeof w=="string")f+="".concat(w,`
`);else if(w._keyframe)g(w);else {var x=d.reduce(function(E,S){var $;return (S==null||($=S.visit)===null||$===void 0?void 0:$.call(S,E))||E},w);Object.keys(x).forEach(function(E){var S=x[E];if(it(S)==="object"&&S&&(E!=="animationName"||!S._keyframe)&&!Kj(S)){var $=!1,I=E.trim(),P=!1;(o||a)&&s?I.startsWith("@")?$=!0:I=Uj(E,s,c):o&&!s&&(I==="&"||I==="")&&(I="",P=!0);var R=e(S,n,{root:P,injectHash:$,parentSelectors:[].concat(Te(i),[I])}),M=Z(R,2),k=M[0],A=M[1];h=U(U({},h),A),f+="".concat(I).concat(k);}else {let O=function(T,D){var j=T.replace(/[A-Z]/g,function(H){return "-".concat(H.toLowerCase())}),B=D;!Bj[T]&&typeof B=="number"&&B!==0&&(B="".concat(B,"px")),T==="animationName"&&D!==null&&D!==void 0&&D._keyframe&&(g(D),B=D.getName(s)),f+="".concat(j,":").concat(B,";");};var L,_=(L=S==null?void 0:S.value)!==null&&L!==void 0?L:S;it(S)==="object"&&S!==null&&S!==void 0&&S[e$]&&Array.isArray(_)?_.forEach(function(T){O(E,T);}):O(E,_);}});}}),!o)f="{".concat(f,"}");else if(l&&$j()){var b=l.split(","),y=b[b.length-1].trim();f="@layer ".concat(y," {").concat(f,"}"),b.length>1&&(f="@layer ".concat(l,"{%%%:%}").concat(f));}return [f,h]};function qj(e,t){return Iv("".concat(e.join("%")).concat(t))}function Yj(){return null}function ph(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=m__namespace.useContext(Pv),d=u.autoClear;u.mock;var f=u.defaultCache,h=u.hashPriority,g=u.container,v=u.ssrInline,p=u.transformers,b=u.linters,y=u.cache,C=n._tokenKey,w=[C].concat(Te(r)),x=Wb,E=Yw("style",w,function(){var R=w.join("|");if(Vj(R)){var M=Wj(R),k=Z(M,2),A=k[0],L=k[1];if(A)return [A,C,L,{},s,c]}var _=t(),O=Xj(_,{hashId:o,hashPriority:h,layer:a,path:r.join("-"),transformers:p,linters:b}),T=Z(O,2),D=T[0],j=T[1],B=Gb(D),H=qj(w,B);return [B,C,H,j,s,c]},function(R,M){var k=Z(R,3),A=k[2];(M||d)&&Wb&&iu(A,{mark:ga});},function(R){var M=Z(R,4),k=M[0];M[1];var A=M[2],L=M[3];if(x&&k!==Qw){var _={mark:ga,prepend:"queue",attachTo:g,priority:c},O=typeof i=="function"?i():i;O&&(_.csp={nonce:O});var T=Pi(k,A,_);T[li]=y.instanceId,T.setAttribute(vh,C),Object.keys(L).forEach(function(D){Pi(Gb(L[D]),"_effect-".concat(D),_);});}}),S=Z(E,3),$=S[0],I=S[1],P=S[2];return function(R){var M;if(!v||x||!f)M=m__namespace.createElement(Yj,null);else {var k;M=m__namespace.createElement("style",Ie({},(k={},z(k,vh,I),z(k,ga,P),k),{dangerouslySetInnerHTML:{__html:$}}));}return m__namespace.createElement(m__namespace.Fragment,null,M,R)}}var kt=function(){function e(t,n){En(this,e),z(this,"name",void 0),z(this,"style",void 0),z(this,"_keyframe",!0),this.name=t,this.style=n;}return In(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 Va(e){return e.notSplit=!0,e}Va(["borderTop","borderBottom"]),Va(["borderTop"]),Va(["borderBottom"]),Va(["borderLeft","borderRight"]),Va(["borderLeft"]),Va(["borderRight"]);const Zj="5.11.5";function Tn(e,t){Qj(e)&&(e="100%");var n=Jj(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 gc(e){return Math.min(1,Math.max(0,e))}function Qj(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Jj(e){return typeof e=="string"&&e.indexOf("%")!==-1}function t$(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function vc(e){return e<=1?"".concat(Number(e)*100,"%"):e}function oa(e){return e.length===1?"0"+e:String(e)}function ez(e,t,n){return {r:Tn(e,255)*255,g:Tn(t,255)*255,b:Tn(n,255)*255}}function Kb(e,t,n){e=Tn(e,255),t=Tn(t,255),n=Tn(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 qf(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 tz(e,t,n){var r,o,a;if(e=Tn(e,360),t=Tn(t,100),n=Tn(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=qf(s,i,e+1/3),o=qf(s,i,e),a=qf(s,i,e-1/3);}return {r:r*255,g:o*255,b:a*255}}function bh(e,t,n){e=Tn(e,255),t=Tn(t,255),n=Tn(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 nz(e,t,n){e=Tn(e,360)*6,t=Tn(t,100),n=Tn(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 yh(e,t,n,r){var o=[oa(Math.round(e).toString(16)),oa(Math.round(t).toString(16)),oa(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 rz(e,t,n,r,o){var a=[oa(Math.round(e).toString(16)),oa(Math.round(t).toString(16)),oa(Math.round(n).toString(16)),oa(oz(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 oz(e){return Math.round(parseFloat(e)*255).toString(16)}function Ub(e){return cr(e)/255}function cr(e){return parseInt(e,16)}function az(e){return {r:e>>16,g:(e&65280)>>8,b:e&255}}var Ch={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 ni(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=lz(e)),typeof e=="object"&&(mo(e.r)&&mo(e.g)&&mo(e.b)?(t=ez(e.r,e.g,e.b),i=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):mo(e.h)&&mo(e.s)&&mo(e.v)?(r=vc(e.s),o=vc(e.v),t=nz(e.h,r,o),i=!0,s="hsv"):mo(e.h)&&mo(e.s)&&mo(e.l)&&(r=vc(e.s),a=vc(e.l),t=tz(e.h,r,a),i=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=t$(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 iz="[-\\+]?\\d+%?",sz="[-\\+]?\\d*\\.\\d+%?",Do="(?:".concat(sz,")|(?:").concat(iz,")"),Yf="[\\s|\\(]+(".concat(Do,")[,|\\s]+(").concat(Do,")[,|\\s]+(").concat(Do,")\\s*\\)?"),Zf="[\\s|\\(]+(".concat(Do,")[,|\\s]+(").concat(Do,")[,|\\s]+(").concat(Do,")[,|\\s]+(").concat(Do,")\\s*\\)?"),kr={CSS_UNIT:new RegExp(Do),rgb:new RegExp("rgb"+Yf),rgba:new RegExp("rgba"+Zf),hsl:new RegExp("hsl"+Yf),hsla:new RegExp("hsla"+Zf),hsv:new RegExp("hsv"+Yf),hsva:new RegExp("hsva"+Zf),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 lz(e){if(e=e.trim().toLowerCase(),e.length===0)return !1;var t=!1;if(Ch[e])e=Ch[e],t=!0;else if(e==="transparent")return {r:0,g:0,b:0,a:0,format:"name"};var n=kr.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=kr.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=kr.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=kr.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=kr.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=kr.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=kr.hex8.exec(e),n?{r:cr(n[1]),g:cr(n[2]),b:cr(n[3]),a:Ub(n[4]),format:t?"name":"hex8"}:(n=kr.hex6.exec(e),n?{r:cr(n[1]),g:cr(n[2]),b:cr(n[3]),format:t?"name":"hex"}:(n=kr.hex4.exec(e),n?{r:cr(n[1]+n[1]),g:cr(n[2]+n[2]),b:cr(n[3]+n[3]),a:Ub(n[4]+n[4]),format:t?"name":"hex8"}:(n=kr.hex3.exec(e),n?{r:cr(n[1]+n[1]),g:cr(n[2]+n[2]),b:cr(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function mo(e){return !!kr.CSS_UNIT.exec(String(e))}var Jt=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=az(t)),this.originalInput=t;var o=ni(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=t$(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=bh(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=bh(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=Kb(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=Kb(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),yh(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),rz(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(Tn(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(Tn(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="#"+yh(this.r,this.g,this.b,!1),n=0,r=Object.entries(Ch);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=gc(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=gc(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=gc(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=gc(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}(),pc=2,Xb=.16,cz=.05,uz=.05,dz=.15,n$=5,r$=4,fz=[{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 qb(e){var t=e.r,n=e.g,r=e.b,o=bh(t,n,r);return {h:o.h*360,s:o.s,v:o.v}}function bc(e){var t=e.r,n=e.g,r=e.b;return "#".concat(yh(t,n,r,!1))}function mz(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 Yb(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-pc*t:Math.round(e.h)+pc*t:r=n?Math.round(e.h)+pc*t:Math.round(e.h)-pc*t,r<0?r+=360:r>=360&&(r-=360),r}function Zb(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Xb*t:t===r$?r=e.s+Xb:r=e.s+cz*t,r>1&&(r=1),n&&t===n$&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function Qb(e,t,n){var r;return n?r=e.v+uz*t:r=e.v-dz*t,r>1&&(r=1),Number(r.toFixed(2))}function So(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=ni(e),o=n$;o>0;o-=1){var a=qb(r),i=bc(ni({h:Yb(a,o,!0),s:Zb(a,o,!0),v:Qb(a,o,!0)}));n.push(i);}n.push(bc(r));for(var s=1;s<=r$;s+=1){var l=qb(r),c=bc(ni({h:Yb(l,s),s:Zb(l,s),v:Qb(l,s)}));n.push(c);}return t.theme==="dark"?fz.map(function(u){var d=u.index,f=u.opacity,h=bc(mz(ni(t.backgroundColor||"#141414"),ni(n[d]),f*100));return h}):n}var Qf={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"},Fc={},Jf={};Object.keys(Qf).forEach(function(e){Fc[e]=So(Qf[e]),Fc[e].primary=Fc[e][5],Jf[e]=So(Qf[e],{theme:"dark",backgroundColor:"#141414"}),Jf[e].primary=Jf[e][5];});var hz=Fc.blue;const gz=e=>{const{controlHeight:t}=e;return {controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},o$=gz;function vz(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 Mv={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"},pz=Object.assign(Object.assign({},Mv),{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}),Oi=pz;function a$(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),f=n(o),h=n(a),g=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:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:g[1],colorErrorBgHover:g[2],colorErrorBorder:g[3],colorErrorBorderHover:g[4],colorErrorHover:g[5],colorError:g[6],colorErrorActive:g[7],colorErrorTextHover:g[8],colorErrorText:g[9],colorErrorTextActive:g[10],colorWarningBg:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[10],colorInfoBg: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 Jt("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const bz=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}},yz=bz;function Cz(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},yz(r))}const ho=(e,t)=>new Jt(e).setAlpha(t).toRgbString(),ms=(e,t)=>new Jt(e).darken(t).toHexString(),Sz=e=>{const t=So(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]}},wz=(e,t)=>{const n=e||"#fff",r=t||"#000";return {colorBgBase:n,colorTextBase:r,colorText:ho(r,.88),colorTextSecondary:ho(r,.65),colorTextTertiary:ho(r,.45),colorTextQuaternary:ho(r,.25),colorFill:ho(r,.15),colorFillSecondary:ho(r,.06),colorFillTertiary:ho(r,.04),colorFillQuaternary:ho(r,.02),colorBgLayout:ms(n,4),colorBgContainer:ms(n,0),colorBgElevated:ms(n,0),colorBgSpotlight:ho(r,.85),colorBgBlur:"transparent",colorBorder:ms(n,15),colorBorderSecondary:ms(n,6)}};function $z(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 xz=e=>{const t=$z(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]}},i$=xz;function Il(e){const t=Object.keys(Mv).map(n=>{const r=So(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),a$(e,{generateColorPalettes:Sz,generateNeutralColorPalettes:wz})),i$(e.fontSize)),vz(e)),o$(e)),Cz(e))}const s$=Zs(Il),du={token:Oi,override:{override:Oi},hashed:!0},l$=m.createContext(du);function em(e){return e>=0&&e<=255}function yc(e,t){const{r:n,g:r,b:o,a}=new Jt(e).toRgb();if(a<1)return e;const{r:i,g:s,b:l}=new Jt(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),f=Math.round((o-l*(1-c))/c);if(em(u)&&em(d)&&em(f))return new Jt({r:u,g:d,b:f,a:Math.round(c*100)/100}).toRgbString()}return new Jt({r:n,g:r,b:o,a:1}).toRgbString()}var Ez=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 Rv(e){const{override:t}=e,n=Ez(e,["override"]),r=Object.assign({},t);Object.keys(Oi).forEach(f=>{delete r[f];});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 f="0s";o.motionDurationFast=f,o.motionDurationMid=f,o.motionDurationSlow=f;}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:yc(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:yc(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:yc(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:yc(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 Jt("rgba(0, 0, 0, 0.16)").toRgbString()},
      0 3px 6px 0 ${new Jt("rgba(0, 0, 0, 0.12)").toRgbString()},
      0 5px 12px 4px ${new Jt("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 Jb=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 c$=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,a=Jb(t,["override"]);let i=Object.assign(Object.assign({},r),{override:o});return i=Rv(i),a&&Object.entries(a).forEach(s=>{let[l,c]=s;const{theme:u}=c,d=Jb(c,["theme"]);let f=d;u&&(f=c$(Object.assign(Object.assign({},i),d),{override:d},u)),i[l]=f;}),i};function rr(){const{token:e,hashed:t,theme:n,override:r}=m.useContext(l$),o=`${Zj}-${t||""}`,a=n||s$,[i,s]=zj(a,[Oi,e],{salt:o,override:r,getComputedToken:c$,formatToken:Rv});return [a,i,t?s:""]}const Iz=m.createContext(void 0),Tv=Iz,Jo=100,Pz=10,Oz=Jo*Pz,u$={Modal:Jo,Drawer:Jo,Popover:Jo,Popconfirm:Jo,Tooltip:Jo,Tour:Jo},Mz={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function Rz(e){return e in u$}function kd(e,t){const[,n]=rr(),r=m.useContext(Tv),o=Rz(e);if(t!==void 0)return [t,t];let a=r??0;return o?(a+=(r?0:n.zIndexPopupBase)+u$[e],a=Math.min(a,n.zIndexPopupBase+Oz)):a+=Mz[e],[r===void 0?t:a,a]}const tm=()=>({height:0,opacity:0}),ey=e=>{const{scrollHeight:t}=e;return {height:t,opacity:1}},Tz=e=>({height:e?e.offsetHeight:0}),nm=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",d$=function(){return {motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:tm,onEnterStart:tm,onAppearActive:ey,onEnterActive:ey,onLeaveStart:Tz,onLeaveActive:tm,onAppearEnd:nm,onEnterEnd:nm,onLeaveEnd:nm,motionDeadline:500}},Nd=(e,t,n)=>n!==void 0?n:`${e}-${t}`,_z=(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)),f=2*a-u,h=d,g=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 ${f} ${h} L ${g} ${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"}}},f$=8;function _v(e){const t=f$,{contentRadius:n,limitVerticalRadius:r}=e,o=n>12?n+2:12;return {dropdownArrowOffset:o,dropdownArrowOffsetVertical:r?t:o}}function Cc(e,t){return e?t:{}}function kv(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:f,dropdownArrowOffset:h}=_v({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"},_z(r,o,a,s,i)),{"&:before":{background:s}})]},Cc(!!d.top,{[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:u,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:h}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:h}}})),Cc(!!d.bottom,{[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:u,transform:"translateY(-100%)"},[`&-placement-bottom ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:h}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:h}}})),Cc(!!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:f},[`&-placement-leftBottom ${n}-arrow`]:{bottom:f}})),Cc(!!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:f},[`&-placement-rightBottom ${n}-arrow`]:{bottom:f}}))}}function kz(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 ty={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"]}},Nz={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"]}},Az=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function m$(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:a,visibleFirst:i}=e,s=t/2,l={};return Object.keys(ty).forEach(c=>{const u=r&&Nz[c]||ty[c],d=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(l[c]=d,Az.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 f=_v({contentRadius:a,limitVerticalRadius:!0});if(r)switch(c){case"topLeft":case"bottomLeft":d.offset[0]=-f.dropdownArrowOffset-s;break;case"topRight":case"bottomRight":d.offset[0]=f.dropdownArrowOffset+s;break;case"leftTop":case"rightTop":d.offset[1]=-f.dropdownArrowOffset-s;break;case"leftBottom":case"rightBottom":d.offset[1]=f.dropdownArrowOffset+s;break}d.overflow=kz(c,f,t,n),i&&(d.htmlRegion="visibleFirst");}),l}const{isValidElement:wo}=m__namespace;function h$(e){return e&&wo(e)&&e.type===m__namespace.Fragment}function Lz(e,t,n){return wo(e)?m__namespace.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t}function Zn(e,t){return Lz(e,e,t)}function Fz(){}const Dz=m__namespace.createContext({}),g$=()=>{const e=()=>{};return e.deprecated=Fz,e};var jz=m.createContext({});const Nv=jz;function v$(e){return Sw(e)||Pw(e)||bv(e)||ww()}function jr(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]];}return n}function p$(e,t,n,r){if(!t.length)return n;var o=v$(t),a=o[0],i=o.slice(1),s;return !e&&typeof a=="number"?s=[]:Array.isArray(e)?s=Te(e):s=U({},e),r&&n===void 0&&i.length===1?delete s[a][i[0]]:s[a]=p$(s[a],i,n,r),s}function Fr(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!jr(e,t.slice(0,-1))?e:p$(e,t,n,r)}function zz(e){return it(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function ny(e){return Array.isArray(e)?[]:{}}var Bz=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function ci(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=ny(t[0]);return t.forEach(function(o){function a(i,s){var l=new Set(s),c=jr(o,i),u=Array.isArray(c);if(u||zz(c)){if(!l.has(c)){l.add(c);var d=jr(r,i);u?r=Fr(r,i,[]):(!d||it(d)!=="object")&&(r=Fr(r,i,ny(c))),Bz(c).forEach(function(f){a([].concat(Te(i),[f]),l);});}}else r=Fr(r,i,c);}a([]);}),r}const Hz=m.createContext(void 0),b$={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 Vz={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 Wz={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},y$=Wz,Gz={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"]},Vz),timePickerLocale:Object.assign({},y$)},ry=Gz,ir="${label} is not a valid ${type}",Kz={locale:"en",Pagination:b$,DatePicker:ry,TimePicker:y$,Calendar:ry,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:ir,method:ir,array:ir,object:ir,number:ir,date:ir,boolean:ir,integer:ir,float:ir,regexp:ir,email:ir,url:ir,hex:ir},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"}},$o=Kz;Object.assign({},$o.Modal);let Dc=[];const oy=()=>Dc.reduce((e,t)=>Object.assign(Object.assign({},e),t),$o.Modal);function Uz(e){if(e){const t=Object.assign({},e);return Dc.push(t),oy(),()=>{Dc=Dc.filter(n=>n!==t),oy();}}Object.assign({},$o.Modal);}const Xz=m.createContext(void 0),Av=Xz,qz=(e,t)=>{const n=m__namespace.useContext(Av),r=m__namespace.useMemo(()=>{var a;const i=t||$o[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=m__namespace.useMemo(()=>{const a=n==null?void 0:n.locale;return n!=null&&n.exist&&!a?$o.locale:a},[n]);return [r,o]},Qi=qz,Yz="internalMark",Zz=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;m__namespace.useEffect(()=>Uz(t&&t.Modal),[t]);const o=m__namespace.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return m__namespace.createElement(Av.Provider,{value:o},n)},Qz=Zz,C$="anticon",Jz=(e,t)=>t||(e?`ant-${e}`:"ant"),tt=m__namespace.createContext({getPrefixCls:Jz,iconPrefixCls:C$}),e8=`-ant-${Date.now()}-${Math.random()}`;function t8(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 Jt(i),c=So(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 Jt(t.primaryColor),s=So(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 Jt(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 n8(e,t){const n=t8(e,t);Yn()&&Pi(n,`${e8}-dynamic-theme`);}const Sh=m__namespace.createContext(!1),r8=e=>{let{children:t,disabled:n}=e;const r=m__namespace.useContext(Sh);return m__namespace.createElement(Sh.Provider,{value:n??r},t)},Kr=Sh,wh=m__namespace.createContext(void 0),o8=e=>{let{children:t,size:n}=e;const r=m__namespace.useContext(wh);return m__namespace.createElement(wh.Provider,{value:n||r},t)},Ad=wh;function a8(){const e=m.useContext(Kr),t=m.useContext(Ad);return {componentDisabled:e,componentSize:t}}const Qs=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],Sa={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},jt=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}},Ta=()=>({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"}}),$h=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),i8=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"}}}),s8=(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"}}}}},wa=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),$a=e=>({"&:focus-visible":Object.assign({},wa(e))}),S$=typeof CSSINJS_STATISTIC<"u";let xh=!0;function Ct(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!S$)return Object.assign.apply(Object,[{}].concat(t));xh=!1;const r={};return t.forEach(o=>{Object.keys(o).forEach(i=>{Object.defineProperty(r,i,{configurable:!0,enumerable:!0,get:()=>o[i]});});}),xh=!0,r}const ay={};function l8(){}function c8(e){let t,n=e,r=l8;return S$&&typeof Proxy<"u"&&(t=new Set,n=new Proxy(e,{get(o,a){return xh&&t.add(a),o[a]}}),r=(o,a)=>{var i;ay[o]={global:Array.from(t),component:Object.assign(Object.assign({},(i=ay[o])===null||i===void 0?void 0:i.component),a)};}),{token:n,keys:t,flush:r}}const u8=(e,t)=>{const[n,r]=rr();return ph({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},Ta()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},w$=u8;function Kt(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]=rr(),{getPrefixCls:d,iconPrefixCls:f,csp:h}=m.useContext(tt),g=d(),v={theme:l,token:c,hashId:u,nonce:()=>h==null?void 0:h.nonce,clientOnly:r.clientOnly,order:r.order||-999};return ph(Object.assign(Object.assign({},v),{clientOnly:!1,path:["Shared",g]}),()=>[{"&":i8(c)}]),w$(f,h),[ph(Object.assign(Object.assign({},v),{path:[i,s,f]}),()=>{const{token:p,flush:b}=c8(c),y=Object.assign({},c[a]);if(r.deprecatedTokens){const{deprecatedTokens:$}=r;$.forEach(I=>{let[P,R]=I;var M;(y!=null&&y[P]||y!=null&&y[R])&&((M=y[R])!==null&&M!==void 0||(y[R]=y==null?void 0:y[P]));});}const C=typeof n=="function"?n(Ct(p,y??{})):n,w=Object.assign(Object.assign({},C),y),x=`.${s}`,E=Ct(p,{componentCls:x,prefixCls:s,iconCls:`.${f}`,antCls:`.${g}`},w),S=t(E,{hashId:u,prefixCls:s,rootPrefixCls:g,iconPrefixCls:f,overrideComponentToken:y});return b(a,w),[r.resetStyle===!1?null:s8(E,s),S]}),u]}}const Lv=(e,t,n,r)=>{const o=Kt(e,t,n,Object.assign({resetStyle:!1,order:-998},r));return i=>{let{prefixCls:s}=i;return o(s),null}};function Ld(e,t){return Qs.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 d8(e,t){const n=e||{},r=n.inherit===!1||!t?du:t;return $l(()=>{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 !El(i,l,!0)}))}function f8(e){const{children:t}=e,[,n]=rr(),{motion:r}=n,o=m__namespace.useRef(!1);return o.current=o.current||r===!1,o.current?m__namespace.createElement(kD,{motion:r},t):t}const m8=()=>null;var h8=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 g8=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select","button"],v8="ant";let $$;function p8(){return $$||v8}function b8(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const y8=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r}=e;t!==void 0&&($$=t),r&&b8(r)&&n8(p8(),r);},C8=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:f,popupMatchSelectWidth:h,popupOverflow:g,legacyLocale:v,parentContext:p,iconPrefixCls:b,theme:y,componentDisabled:C,segmented:w,statistic:x,spin:E,calendar:S,carousel:$,cascader:I,collapse:P,typography:R,checkbox:M,descriptions:k,divider:A,drawer:L,skeleton:_,steps:O,image:T,layout:D,list:j,mentions:B,modal:H,progress:G,result:K,slider:X,breadcrumb:Y,menu:ee,pagination:V,input:J,empty:q,badge:se,radio:le,rate:Q,switch:ne,transfer:de,avatar:te,message:ce,tag:ge,table:re,card:ae,tabs:he,timeline:Ce,timePicker:_e,upload:He,notification:We,tree:Me,colorPicker:Ye,datePicker:Be,rangePicker:Ve,flex:Pe,wave:xe,dropdown:qe,warning:rt}=e,yt=m__namespace.useCallback((pe,De)=>{const{prefixCls:$e}=e;if(De)return De;const fe=$e||p.getPrefixCls("");return pe?`${fe}-${pe}`:fe},[p.getPrefixCls,e.prefixCls]),Qe=b||p.iconPrefixCls||C$,Je=n||p.csp;w$(Qe,Je);const pt=d8(y,p.theme),ht={csp:Je,autoInsertSpaceInButton:r,alert:o,anchor:a,locale:s||v,direction:c,space:u,virtual:d,popupMatchSelectWidth:h??f,popupOverflow:g,getPrefixCls:yt,iconPrefixCls:Qe,theme:pt,segmented:w,statistic:x,spin:E,calendar:S,carousel:$,cascader:I,collapse:P,typography:R,checkbox:M,descriptions:k,divider:A,drawer:L,skeleton:_,steps:O,image:T,input:J,layout:D,list:j,mentions:B,modal:H,progress:G,result:K,slider:X,breadcrumb:Y,menu:ee,pagination:V,empty:q,badge:se,radio:le,rate:Q,switch:ne,transfer:de,avatar:te,message:ce,tag:ge,table:re,card:ae,tabs:he,timeline:Ce,timePicker:_e,upload:He,notification:We,tree:Me,colorPicker:Ye,datePicker:Be,rangePicker:Ve,flex:Pe,wave:xe,dropdown:qe,warning:rt},lt=Object.assign({},p);Object.keys(ht).forEach(pe=>{ht[pe]!==void 0&&(lt[pe]=ht[pe]);}),g8.forEach(pe=>{const De=e[pe];De&&(lt[pe]=De);});const ft=$l(()=>lt,lt,(pe,De)=>{const $e=Object.keys(pe),fe=Object.keys(De);return $e.length!==fe.length||$e.some(oe=>pe[oe]!==De[oe])}),xt=m__namespace.useMemo(()=>({prefixCls:Qe,csp:Je}),[Qe,Je]);let Oe=m__namespace.createElement(m__namespace.Fragment,null,m__namespace.createElement(m8,{dropdownMatchSelectWidth:f}),t);const Re=m__namespace.useMemo(()=>{var pe,De,$e,fe;return ci(((pe=$o.Form)===null||pe===void 0?void 0:pe.defaultValidateMessages)||{},(($e=(De=ft.locale)===null||De===void 0?void 0:De.Form)===null||$e===void 0?void 0:$e.defaultValidateMessages)||{},((fe=ft.form)===null||fe===void 0?void 0:fe.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[ft,i==null?void 0:i.validateMessages]);Object.keys(Re).length>0&&(Oe=m__namespace.createElement(Hz.Provider,{value:Re},Oe)),s&&(Oe=m__namespace.createElement(Qz,{locale:s,_ANT_MARK__:Yz},Oe)),(Qe||Je)&&(Oe=m__namespace.createElement(Nv.Provider,{value:xt},Oe)),l&&(Oe=m__namespace.createElement(o8,{size:l},Oe)),Oe=m__namespace.createElement(f8,null,Oe);const ke=m__namespace.useMemo(()=>{const pe=pt||{},{algorithm:De,token:$e,components:fe}=pe,oe=h8(pe,["algorithm","token","components"]),ye=De&&(!Array.isArray(De)||De.length>0)?Zs(De):s$,ue={};Object.entries(fe||{}).forEach(Ne=>{let[Ue,bt]=Ne;const gt=Object.assign({},bt);"algorithm"in gt&&(gt.algorithm===!0?gt.theme=ye:(Array.isArray(gt.algorithm)||typeof gt.algorithm=="function")&&(gt.theme=Zs(gt.algorithm)),delete gt.algorithm),ue[Ue]=gt;});const ve=Object.assign(Object.assign({},Oi),$e);return Object.assign(Object.assign({},oe),{theme:ye,token:ve,components:ue,override:Object.assign({override:ve},ue)})},[pt]);return y&&(Oe=m__namespace.createElement(l$.Provider,{value:ke},Oe)),ft.warning&&(Oe=m__namespace.createElement(Dz.Provider,{value:ft.warning},Oe)),C!==void 0&&(Oe=m__namespace.createElement(r8,{disabled:C},Oe)),m__namespace.createElement(tt.Provider,{value:ft},Oe)},Ji=e=>{const t=m__namespace.useContext(tt),n=m__namespace.useContext(Av);return m__namespace.createElement(C8,Object.assign({parentContext:t,legacyLocale:n},e))};Ji.ConfigContext=tt;Ji.SizeContext=Ad;Ji.config=y8;Ji.useConfig=a8;Object.defineProperty(Ji,"SizeContext",{get:()=>Ad});const Fv=Ji,S8=e=>{const t=m.useContext(Ad);return m.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},or=S8,w8=e=>{const{componentCls:t}=e;return {[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},$8=w8,x8=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"}}}},E8=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}}}},x$=Kt("Space",e=>{const t=Ct(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return [x8(t),E8(t),$8(t)]},()=>({}),{resetStyle:!1});var E$=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 Fd=m__namespace.createContext(null),es=(e,t)=>{const n=m__namespace.useContext(Fd),r=m__namespace.useMemo(()=>{if(!n)return "";const{compactDirection:o,isFirstItem:a,isLastItem:i}=n,s=o==="vertical"?"-vertical-":"-";return W(`${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}},Mi=e=>{let{children:t}=e;return m__namespace.createElement(Fd.Provider,{value:null},t)},I8=e=>{var{children:t}=e,n=E$(e,["children"]);return m__namespace.createElement(Fd.Provider,{value:n},t)},P8=e=>{const{getPrefixCls:t,direction:n}=m__namespace.useContext(tt),{size:r,direction:o,block:a,prefixCls:i,className:s,rootClassName:l,children:c}=e,u=E$(e,["size","direction","block","prefixCls","className","rootClassName","children"]),d=or(C=>r??C),f=t("space-compact",i),[h,g]=x$(f),v=W(f,g,{[`${f}-rtl`]:n==="rtl",[`${f}-block`]:a,[`${f}-vertical`]:o==="vertical"},s,l),p=m__namespace.useContext(Fd),b=vr(c),y=m__namespace.useMemo(()=>b.map((C,w)=>{const x=C&&C.key||`${f}-item-${w}`;return m__namespace.createElement(I8,{key:x,compactSize:d,compactDirection:o,isFirstItem:w===0&&(!p||(p==null?void 0:p.isFirstItem)),isLastItem:w===b.length-1&&(!p||(p==null?void 0:p.isLastItem))},C)}),[r,b,p]);return b.length===0?null:h(m__namespace.createElement("div",Object.assign({className:v},u),y))},O8=P8,M8=e=>({animationDuration:e,animationFillMode:"both"}),R8=e=>({animationDuration:e,animationFillMode:"both"}),Dv=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({},M8(r)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},R8(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"}}},T8=new kt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),_8=new kt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),k8=new kt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),N8=new kt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),A8=new kt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),L8=new kt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),F8=new kt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),D8=new kt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),j8={"move-up":{inKeyframes:F8,outKeyframes:D8},"move-down":{inKeyframes:T8,outKeyframes:_8},"move-left":{inKeyframes:k8,outKeyframes:N8},"move-right":{inKeyframes:A8,outKeyframes:L8}},fu=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=j8[t];return [Dv(r,o,a,e.motionDurationMid),{[`
        ${r}-enter,
        ${r}-appear
      `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},jv=new kt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),zv=new kt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Bv=new kt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Hv=new kt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),z8=new kt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),B8=new kt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),H8=new kt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),V8=new kt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),W8={"slide-up":{inKeyframes:jv,outKeyframes:zv},"slide-down":{inKeyframes:Bv,outKeyframes:Hv},"slide-left":{inKeyframes:z8,outKeyframes:B8},"slide-right":{inKeyframes:H8,outKeyframes:V8}},Vo=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=W8[t];return [Dv(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}}]},G8=new kt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),K8=new kt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),iy=new kt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),sy=new kt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),U8=new kt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),X8=new kt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),q8=new kt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),Y8=new kt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),Z8=new kt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Q8=new kt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),J8=new kt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),eB=new kt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),tB={zoom:{inKeyframes:G8,outKeyframes:K8},"zoom-big":{inKeyframes:iy,outKeyframes:sy},"zoom-big-fast":{inKeyframes:iy,outKeyframes:sy},"zoom-left":{inKeyframes:q8,outKeyframes:Y8},"zoom-right":{inKeyframes:Z8,outKeyframes:Q8},"zoom-up":{inKeyframes:U8,outKeyframes:X8},"zoom-down":{inKeyframes:J8,outKeyframes:eB}},Dd=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=tB[t];return [Dv(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}}]},nB=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`}}}),I$=nB,rB=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({},jt(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,f$)}},[`${t}-content`]:{position:"relative"}}),Ld(e,(f,h)=>{let{darkColor:g}=h;return {[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:g},[`${t}-arrow`]:{"--antd-arrow-background-color":g}}}})),{"&-rtl":{direction:"rtl"}})},kv(Ct(e,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:a,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},P$=(e,t)=>Kt("Tooltip",r=>{if(t===!1)return [];const{borderRadius:o,colorTextLightSolid:a,colorBgDefault:i,borderRadiusOuter:s}=r,l=Ct(r,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:o,tooltipBg:i,tooltipRadiusOuter:s>4?4:s});return [rB(l),Dd(r,"zoom-big-fast")]},r=>{let{zIndexPopupBase:o,colorBgSpotlight:a}=r;return {zIndexPopup:o+70,colorBgDefault:a}},{resetStyle:!1})(e),oB=Qs.map(e=>`${e}-inverse`),aB=["success","processing","error","default","warning"];function jd(e){return (arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Te(oB),Te(Qs)).includes(e):Qs.includes(e)}function iB(e){return aB.includes(e)}function O$(e,t){const n=jd(t),r=W({[`${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 sB=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:a,overlayInnerStyle:i}=e,{getPrefixCls:s}=m__namespace.useContext(tt),l=s("tooltip",t),[c,u]=P$(l,!0),d=O$(l,a),f=d.arrowStyle,h=Object.assign(Object.assign({},i),d.overlayStyle),g=W(u,l,`${l}-pure`,`${l}-placement-${r}`,n,d.className);return c(m__namespace.createElement("div",{className:g,style:f},m__namespace.createElement("div",{className:`${l}-arrow`}),m__namespace.createElement(pv,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:h}),o)))},lB=sB;var cB=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 M$=m__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:f,destroyTooltipOnHide:h,arrow:g=!0,title:v,overlay:p,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:C=!0}=e,w=!!g,[,x]=rr(),{getPopupContainer:E,getPrefixCls:S,direction:$}=m__namespace.useContext(tt),I=g$(),P=m__namespace.useRef(null),R=()=>{var Ce;(Ce=P.current)===null||Ce===void 0||Ce.forceAlign();};m__namespace.useImperativeHandle(t,()=>({forceAlign:R,forcePopupAlign:()=>{I.deprecated(!1,"forcePopupAlign","forceAlign"),R();}}));const[M,k]=qt(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),A=!v&&!p&&v!==0,L=Ce=>{var _e,He;k(A?!1:Ce),A||((_e=e.onOpenChange)===null||_e===void 0||_e.call(e,Ce),(He=e.onVisibleChange)===null||He===void 0||He.call(e,Ce));},_=m__namespace.useMemo(()=>{var Ce,_e;let He=y;return typeof g=="object"&&(He=(_e=(Ce=g.pointAtCenter)!==null&&Ce!==void 0?Ce:g.arrowPointAtCenter)!==null&&_e!==void 0?_e:y),b||m$({arrowPointAtCenter:He,autoAdjustOverflow:C,arrowWidth:w?x.sizePopupArrow:0,borderRadius:x.borderRadius,offset:x.marginXXS,visibleFirst:!0})},[y,g,b,x]),O=m__namespace.useMemo(()=>v===0?v:p||v||"",[p,v]),T=m__namespace.createElement(Mi,null,typeof O=="function"?O():O),{getPopupContainer:D,placement:j="top",mouseEnterDelay:B=.1,mouseLeaveDelay:H=.1,overlayStyle:G,rootClassName:K}=e,X=cB(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),Y=S("tooltip",o),ee=S(),V=e["data-popover-inject"];let J=M;!("open"in e)&&!("visible"in e)&&A&&(J=!1);const q=wo(u)&&!h$(u)?u:m__namespace.createElement("span",null,u),se=q.props,le=!se.className||typeof se.className=="string"?W(se.className,a||`${Y}-open`):se.className,[Q,ne]=P$(Y,!V),de=O$(Y,l),te=de.arrowStyle,ce=Object.assign(Object.assign({},c),de.overlayStyle),ge=W(s,{[`${Y}-rtl`]:$==="rtl"},de.className,K,ne),[re,ae]=kd("Tooltip",X.zIndex),he=m__namespace.createElement(hj,Object.assign({},X,{zIndex:re,showArrow:w,placement:j,mouseEnterDelay:B,mouseLeaveDelay:H,prefixCls:Y,overlayClassName:ge,overlayStyle:Object.assign(Object.assign({},te),G),getTooltipContainer:D||i||E,ref:P,builtinPlacements:_,overlay:T,visible:J,onVisibleChange:L,afterVisibleChange:d??f,overlayInnerStyle:ce,arrowContent:m__namespace.createElement("span",{className:`${Y}-arrow-content`}),motion:{motionName:Nd(ee,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!h}),J?Zn(q,{className:le}):q);return Q(m__namespace.createElement(Tv.Provider,{value:ae},he))});M$._InternalPanelDoNotUseOrYouWillBeFired=lB;const Pl=M$,uB=e=>{const t=e!=null&&e.algorithm?Zs(e.algorithm):Zs(Il),n=Object.assign(Object.assign({},Oi),e==null?void 0:e.token);return Zw(n,{override:e==null?void 0:e.token},t,Rv)},dB=uB;function fB(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 mB=(e,t)=>{const n=t??Il(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),fB(t??e)),i$(r)),{controlHeight:o}),o$(Object.assign(Object.assign({},n),{controlHeight:o})))},hB=mB,go=(e,t)=>new Jt(e).setAlpha(t).toRgbString(),Wa=(e,t)=>new Jt(e).lighten(t).toHexString(),gB=e=>{const t=So(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]}},vB=(e,t)=>{const n=e||"#000",r=t||"#fff";return {colorBgBase:n,colorTextBase:r,colorText:go(r,.85),colorTextSecondary:go(r,.65),colorTextTertiary:go(r,.45),colorTextQuaternary:go(r,.25),colorFill:go(r,.18),colorFillSecondary:go(r,.12),colorFillTertiary:go(r,.08),colorFillQuaternary:go(r,.04),colorBgElevated:Wa(n,12),colorBgContainer:Wa(n,8),colorBgLayout:Wa(n,0),colorBgSpotlight:Wa(n,26),colorBgBlur:go(r,.04),colorBorder:Wa(n,26),colorBorderSecondary:Wa(n,19)}},pB=(e,t)=>{const n=Object.keys(Mv).map(o=>{const a=So(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??Il(e);return Object.assign(Object.assign(Object.assign({},r),n),a$(e,{generateColorPalettes:gB,generateNeutralColorPalettes:vB}))},bB=pB;function yB(){const[e,t,n]=rr();return {theme:e,token:t,hashId:n}}const ly={defaultConfig:du,defaultSeed:du.token,useToken:yB,defaultAlgorithm:Il,darkAlgorithm:bB,compactAlgorithm:hB,getDesignToken:dB};var CB=WS,cy=1/0,SB=17976931348623157e292;function wB(e){if(!e)return e===0?e:0;if(e=CB(e),e===cy||e===-cy){var t=e<0?-1:1;return t*SB}return e===e?e:0}var $B=wB,xB=$B;function EB(e){var t=xB(e),n=t%1;return t===t?n?t-n:t:0}var IB=EB,PB=IB,OB="Expected a function";function MB(e,t){var n;if(typeof t!="function")throw new TypeError(OB);return e=PB(e),function(){return --e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var RB=MB,TB=RB;function _B(e){return TB(2,e)}var kB=_B;const R$=Sn(kB),xa=R$(()=>!!document.querySelectorAll(".bili-feed4").length),T$=()=>document.body.classList.contains("dark"),_$=gr({value:T$()});function Vv(){return yr(_$).value}const Wv=new MutationObserver(function(){_$.value=T$();});Wv.observe(document.body,{attributes:!0,attributeFilter:["class"]});Wv.observe(document.documentElement,{attributes:!0,attributeFilter:["data-darkreader-scheme"]});window.addEventListener("unload",()=>{Wv.disconnect();});const k$=qP();var jC;const NB=((jC=k$.os.name)==null?void 0:jC.toLowerCase())==="mac os";var zC;const Gv=((zC=k$.browser.name)==null?void 0:zC.toLowerCase())==="safari";var uy=uS(function(e,t){var n=e.styles,r=mi([n],void 0,m__namespace.useContext(dS)),o=m__namespace.useRef();return $0(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]),$0(function(){var a=o.current,i=a[0],s=a[1];if(s){a[1]=!1;return}if(r.next!==void 0&&Vg(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 zr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return mi(t)}var zd={},N$={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;})(N$);var Kv=N$.exports,Bd={};Object.defineProperty(Bd,"__esModule",{value:!0});Bd.default=void 0;Bd.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 Hd={},Ol={},Vd={};Object.defineProperty(Vd,"__esModule",{value:!0});Vd.default=void 0;var AB={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:"下一世纪"};Vd.default=AB;var Ml={};Object.defineProperty(Ml,"__esModule",{value:!0});Ml.default=void 0;const LB={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};Ml.default=LB;var A$=Kv.default;Object.defineProperty(Ol,"__esModule",{value:!0});Ol.default=void 0;var FB=A$(Vd),DB=A$(Ml);const L$={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},FB.default),timePickerLocale:Object.assign({},DB.default)};L$.lang.ok="确定";Ol.default=L$;var jB=Kv.default;Object.defineProperty(Hd,"__esModule",{value:!0});Hd.default=void 0;var zB=jB(Ol);Hd.default=zB.default;var Wd=Kv.default;Object.defineProperty(zd,"__esModule",{value:!0});zd.default=void 0;var BB=Wd(Bd),HB=Wd(Hd),VB=Wd(Ol),WB=Wd(Ml);const sr="${label}不是一个有效的${type}",GB={locale:"zh-cn",Pagination:BB.default,DatePicker:VB.default,TimePicker:WB.default,Calendar:HB.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:sr,method:sr,array:sr,object:sr,number:sr,date:sr,boolean:sr,integer:sr,float:sr,regexp:sr,email:sr,url:sr,hex:sr},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:"暂无"}};zd.default=GB;var KB=zd;const UB=Sn(KB),F$=m.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Gd=m.createContext({}),D$=m.createContext(null),Kd=typeof document<"u",XB=Kd?m.useLayoutEffect:m.useEffect,Uv=m.createContext({strict:!1});function qB(e,t,n,r){const{visualElement:o}=m.useContext(Gd),a=m.useContext(Uv),i=m.useContext(D$),s=m.useContext(F$).reducedMotion,l=m.useRef();r=r||a.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:o,props:n,presenceContext:i,blockInitialAnimation:i?i.initial===!1:!1,reducedMotionConfig:s}));const c=l.current;m.useInsertionEffect(()=>{c&&c.update(n,i);});const u=m.useRef(!!window.HandoffAppearAnimations);return XB(()=>{c&&(c.render(),u.current&&c.animationState&&c.animationState.animateChanges());}),m.useEffect(()=>{c&&(c.updateFeatures(),!u.current&&c.animationState&&c.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,u.current=!1);}),c}function j$(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function YB(e,t,n){return m.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):j$(n)&&(n.current=r));},[t])}function Js(e){return typeof e=="string"||Array.isArray(e)}function Ud(e){return typeof e=="object"&&typeof e.start=="function"}const Xv=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],qv=["initial",...Xv];function Xd(e){return Ud(e.animate)||qv.some(t=>Js(e[t]))}function z$(e){return !!(Xd(e)||e.variants)}function ZB(e,t){if(Xd(e)){const{initial:n,animate:r}=e;return {initial:n===!1||Js(n)?n:void 0,animate:Js(r)?r:void 0}}return e.inherit!==!1?t:{}}function QB(e){const{initial:t,animate:n}=ZB(e,m.useContext(Gd));return m.useMemo(()=>({initial:t,animate:n}),[dy(t),dy(n)])}function dy(e){return Array.isArray(e)?e.join(" "):e}const fy={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},el={};for(const e in fy)el[e]={isEnabled:t=>fy[e].some(n=>!!t[n])};function Eh(e){for(const t in e)el[t]={...el[t],...e[t]};}const JB=m.createContext({}),e9=m.createContext({}),t9=Symbol.for("motionComponentSymbol");function n9({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&Eh(e);function a(s,l){let c;const u={...m.useContext(F$),...s,layoutId:r9(s)},{isStatic:d}=u,f=QB(s),h=r(s,d);if(!d&&Kd){f.visualElement=qB(o,h,u,t);const g=m.useContext(e9),v=m.useContext(Uv).strict;f.visualElement&&(c=f.visualElement.loadFeatures(u,v,e,g));}return m__namespace.createElement(Gd.Provider,{value:f},c&&f.visualElement?m__namespace.createElement(c,{visualElement:f.visualElement,...u}):null,n(o,s,YB(h,f.visualElement,l),h,d,f.visualElement))}const i=m.forwardRef(a);return i[t9]=o,i}function r9({layoutId:e}){const t=m.useContext(JB).id;return t&&e!==void 0?t+"-"+e:e}function o9(e){function t(r,o={}){return n9(e(r,o))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,o)=>(n.has(o)||n.set(o,t(o)),n.get(o))})}const a9=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Yv(e){return typeof e!="string"||e.includes("-")?!1:!!(a9.indexOf(e)>-1||/[A-Z]/.test(e))}const i9={},Rl=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],_a=new Set(Rl);function B$(e,{layout:t,layoutId:n}){return _a.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!i9[e]||e==="opacity")}const Hn=e=>!!(e&&e.getVelocity),s9={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},l9=Rl.length;function c9(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let a="";for(let i=0;i<l9;i++){const s=Rl[i];if(e[s]!==void 0){const l=s9[s]||s;a+=`${l}(${e[s]}) `;}}return t&&!e.z&&(a+="translateZ(0)"),a=a.trim(),o?a=o(e,r?"":a):n&&r&&(a="none"),a}const H$=e=>t=>typeof t=="string"&&t.startsWith(e),V$=H$("--"),Ih=H$("var(--"),u9=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,d9=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Ri=(e,t,n)=>Math.min(Math.max(n,e),t),ka={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ks={...ka,transform:e=>Ri(0,1,e)},Sc={...ka,default:1},Ns=e=>Math.round(e*1e5)/1e5,qd=/(-)?([\d]*\.?[\d])+/g,W$=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,f9=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Tl(e){return typeof e=="string"}const _l=e=>({test:t=>Tl(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),To=_l("deg"),gi=_l("%"),st=_l("px"),m9=_l("vh"),h9=_l("vw"),my={...gi,parse:e=>gi.parse(e)/100,transform:e=>gi.transform(e*100)},hy={...ka,transform:Math.round},G$={borderWidth:st,borderTopWidth:st,borderRightWidth:st,borderBottomWidth:st,borderLeftWidth:st,borderRadius:st,radius:st,borderTopLeftRadius:st,borderTopRightRadius:st,borderBottomRightRadius:st,borderBottomLeftRadius:st,width:st,maxWidth:st,height:st,maxHeight:st,size:st,top:st,right:st,bottom:st,left:st,padding:st,paddingTop:st,paddingRight:st,paddingBottom:st,paddingLeft:st,margin:st,marginTop:st,marginRight:st,marginBottom:st,marginLeft:st,rotate:To,rotateX:To,rotateY:To,rotateZ:To,scale:Sc,scaleX:Sc,scaleY:Sc,scaleZ:Sc,skew:To,skewX:To,skewY:To,distance:st,translateX:st,translateY:st,translateZ:st,x:st,y:st,z:st,perspective:st,transformPerspective:st,opacity:ks,originX:my,originY:my,originZ:st,zIndex:hy,fillOpacity:ks,strokeOpacity:ks,numOctaves:hy};function Zv(e,t,n,r){const{style:o,vars:a,transform:i,transformOrigin:s}=e;let l=!1,c=!1,u=!0;for(const d in t){const f=t[d];if(V$(d)){a[d]=f;continue}const h=G$[d],g=d9(f,h);if(_a.has(d)){if(l=!0,i[d]=g,!u)continue;f!==(h.default||0)&&(u=!1);}else d.startsWith("origin")?(c=!0,s[d]=g):o[d]=g;}if(t.transform||(l||r?o.transform=c9(e.transform,n,u,r):o.transform&&(o.transform="none")),c){const{originX:d="50%",originY:f="50%",originZ:h=0}=s;o.transformOrigin=`${d} ${f} ${h}`;}}const Qv=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function K$(e,t,n){for(const r in t)!Hn(t[r])&&!B$(r,n)&&(e[r]=t[r]);}function g9({transformTemplate:e},t,n){return m.useMemo(()=>{const r=Qv();return Zv(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function v9(e,t,n){const r=e.style||{},o={};return K$(o,r,e),Object.assign(o,g9(e,t,n)),e.transformValues?e.transformValues(o):o}function p9(e,t,n){const r={},o=v9(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}const b9=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function mu(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||b9.has(e)}let U$=e=>!mu(e);function y9(e){e&&(U$=t=>t.startsWith("on")?!mu(t):e(t));}try{y9(require("@emotion/is-prop-valid").default);}catch{}function C9(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(U$(o)||n===!0&&mu(o)||!t&&!mu(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function gy(e,t,n){return typeof e=="string"?e:st.transform(t+n*e)}function S9(e,t,n){const r=gy(t,e.x,e.width),o=gy(n,e.y,e.height);return `${r} ${o}`}const w9={offset:"stroke-dashoffset",array:"stroke-dasharray"},$9={offset:"strokeDashoffset",array:"strokeDasharray"};function x9(e,t,n=1,r=0,o=!0){e.pathLength=1;const a=o?w9:$9;e[a.offset]=st.transform(-r);const i=st.transform(t),s=st.transform(n);e[a.array]=`${i} ${s}`;}function Jv(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:a,pathLength:i,pathSpacing:s=1,pathOffset:l=0,...c},u,d,f){if(Zv(e,c,u,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:g,dimensions:v}=e;h.transform&&(v&&(g.transform=h.transform),delete h.transform),v&&(o!==void 0||a!==void 0||g.transform)&&(g.transformOrigin=S9(v,o!==void 0?o:.5,a!==void 0?a:.5)),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),i!==void 0&&x9(h,i,s,l,!1);}const X$=()=>({...Qv(),attrs:{}}),ep=e=>typeof e=="string"&&e.toLowerCase()==="svg";function E9(e,t,n,r){const o=m.useMemo(()=>{const a=X$();return Jv(a,t,{enableHardwareAcceleration:!1},ep(r),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};K$(a,e.style,e),o.style={...a,...o.style};}return o}function I9(e=!1){return (n,r,o,{latestValues:a},i)=>{const l=(Yv(n)?E9:p9)(r,a,i,n),u={...C9(r,typeof n=="string",e),...l,ref:o},{children:d}=r,f=m.useMemo(()=>Hn(d)?d.get():d,[d]);return m.createElement(n,{...u,children:f})}}const tp=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function q$(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const a in n)e.style.setProperty(a,n[a]);}const Y$=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Z$(e,t,n,r){q$(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Y$.has(o)?o:tp(o),t.attrs[o]);}function np(e,t){const{style:n}=e,r={};for(const o in n)(Hn(n[o])||t.style&&Hn(t.style[o])||B$(o,e))&&(r[o]=n[o]);return r}function Q$(e,t){const n=np(e,t);for(const r in e)if(Hn(e[r])||Hn(t[r])){const o=Rl.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[o]=e[r];}return n}function rp(e,t,n,r={},o={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),t}function Ph(e){const t=m.useRef(null);return t.current===null&&(t.current=e()),t.current}const hu=e=>Array.isArray(e),P9=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),O9=e=>hu(e)?e[e.length-1]||0:e;function M9(e){const t=Hn(e)?e.get():e;return P9(t)?t.toValue():t}function R9({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,a){const i={latestValues:T9(r,o,a,e),renderState:t()};return n&&(i.mount=s=>n(r,s,i)),i}const J$=e=>(t,n)=>{const r=m.useContext(Gd),o=m.useContext(D$),a=()=>R9(e,t,r,o);return n?a():Ph(a)};function T9(e,t,n,r){const o={},a=r(e,{});for(const f in a)o[f]=M9(a[f]);let{initial:i,animate:s}=e;const l=Xd(e),c=z$(e);t&&c&&!l&&e.inherit!==!1&&(i===void 0&&(i=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u=u||i===!1;const d=u?s:i;return d&&typeof d!="boolean"&&!Ud(d)&&(Array.isArray(d)?d:[d]).forEach(h=>{const g=rp(e,h);if(!g)return;const{transitionEnd:v,transition:p,...b}=g;for(const y in b){let C=b[y];if(Array.isArray(C)){const w=u?C.length-1:0;C=C[w];}C!==null&&(o[y]=C);}for(const y in v)o[y]=v[y];}),o}const Dn=e=>e;class vy{constructor(){this.order=[],this.scheduled=new Set;}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t));}clear(){this.order.length=0,this.scheduled.clear();}}function _9(e){let t=new vy,n=new vy,r=0,o=!1,a=!1;const i=new WeakSet,s={schedule:(l,c=!1,u=!1)=>{const d=u&&o,f=d?t:n;return c&&i.add(l),f.add(l)&&d&&o&&(r=t.order.length),l},cancel:l=>{n.remove(l),i.delete(l);},process:l=>{if(o){a=!0;return}if(o=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let c=0;c<r;c++){const u=t.order[c];u(l),i.has(u)&&(s.schedule(u),e());}o=!1,a&&(a=!1,s.process(l));}};return s}const wc=["prepare","read","update","preRender","render","postRender"],k9=40;function N9(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},a=wc.reduce((d,f)=>(d[f]=_9(()=>n=!0),d),{}),i=d=>a[d].process(o),s=()=>{const d=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(d-o.timestamp,k9),1),o.timestamp=d,o.isProcessing=!0,wc.forEach(i),o.isProcessing=!1,n&&t&&(r=!1,e(s));},l=()=>{n=!0,r=!0,o.isProcessing||e(s);};return {schedule:wc.reduce((d,f)=>{const h=a[f];return d[f]=(g,v=!1,p=!1)=>(n||l(),h.schedule(g,v,p)),d},{}),cancel:d=>wc.forEach(f=>a[f].cancel(d)),state:o,steps:a}}const{schedule:jn,cancel:tl,state:nl,steps:Ide}=N9(typeof requestAnimationFrame<"u"?requestAnimationFrame:Dn,!0),A9={useVisualState:J$({scrapeMotionValuesFromProps:Q$,createRenderState:X$,onMount:(e,t,{renderState:n,latestValues:r})=>{jn.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect();}catch{n.dimensions={x:0,y:0,width:0,height:0};}}),jn.render(()=>{Jv(n,r,{enableHardwareAcceleration:!1},ep(t.tagName),e.transformTemplate),Z$(t,n);});}})},L9={useVisualState:J$({scrapeMotionValuesFromProps:np,createRenderState:Qv})};function F9(e,{forwardMotionProps:t=!1},n,r){return {...Yv(e)?A9:L9,preloadedFeatures:n,useRender:I9(t),createVisualElement:r,Component:e}}function aa(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const D9=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function ex(e,t="page"){return {point:{x:e[t+"X"],y:e[t+"Y"]}}}const j9=e=>t=>D9(t)&&e(t,ex(t));function jc(e,t,n,r){return aa(e,t,j9(n),r)}const z9=(e,t)=>n=>t(e(n)),pa=(...e)=>e.reduce(z9);function tx(e){let t=null;return ()=>{const n=()=>{t=null;};return t===null?(t=e,n):!1}}const py=tx("dragHorizontal"),by=tx("dragVertical");function B9(e){let t=!1;if(e==="y")t=by();else if(e==="x")t=py();else {const n=py(),r=by();n&&r?t=()=>{n(),r();}:(n&&n(),r&&r());}return t}function nx(){const e=B9(!0);return e?(e(),!1):!0}class ts{constructor(t){this.isMounted=!1,this.node=t;}update(){}}function yy(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),o=(a,i)=>{if(a.type==="touch"||nx())return;const s=e.getProps();e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",t),s[r]&&jn.update(()=>s[r](a,i));};return jc(e.current,n,o,{passive:!e.getProps()[r]})}class H9 extends ts{mount(){this.unmount=pa(yy(this.node,!0),yy(this.node,!1));}unmount(){}}class V9 extends ts{constructor(){super(...arguments),this.isActive=!1;}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible");}catch{t=!0;}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0);}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1);}mount(){this.unmount=pa(aa(this.node.current,"focus",()=>this.onFocus()),aa(this.node.current,"blur",()=>this.onBlur()));}unmount(){}}const rx=(e,t)=>t?e===t?!0:rx(e,t.parentElement):!1;function rm(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,ex(n));}class W9 extends ts{constructor(){super(...arguments),this.removeStartListeners=Dn,this.removeEndListeners=Dn,this.removeAccessibleListeners=Dn,this.startPointerPress=(t,n)=>{if(this.removeEndListeners(),this.isPressing)return;const r=this.node.getProps(),a=jc(window,"pointerup",(s,l)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:u}=this.node.getProps();jn.update(()=>{rx(this.node.current,s.target)?c&&c(s,l):u&&u(s,l);});},{passive:!(r.onTap||r.onPointerUp)}),i=jc(window,"pointercancel",(s,l)=>this.cancelPress(s,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=pa(a,i),this.startPress(t,n);},this.startAccessiblePress=()=>{const t=a=>{if(a.key!=="Enter"||this.isPressing)return;const i=s=>{s.key!=="Enter"||!this.checkPressEnd()||rm("up",(l,c)=>{const{onTap:u}=this.node.getProps();u&&jn.update(()=>u(l,c));});};this.removeEndListeners(),this.removeEndListeners=aa(this.node.current,"keyup",i),rm("down",(s,l)=>{this.startPress(s,l);});},n=aa(this.node.current,"keydown",t),r=()=>{this.isPressing&&rm("cancel",(a,i)=>this.cancelPress(a,i));},o=aa(this.node.current,"blur",r);this.removeAccessibleListeners=pa(n,o);};}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&jn.update(()=>r(t,n));}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!nx()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&jn.update(()=>r(t,n));}mount(){const t=this.node.getProps(),n=jc(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=aa(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=pa(n,r);}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners();}}const Oh=new WeakMap,om=new WeakMap,G9=e=>{const t=Oh.get(e.target);t&&t(e);},K9=e=>{e.forEach(G9);};function U9({root:e,...t}){const n=e||document;om.has(n)||om.set(n,{});const r=om.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(K9,{root:e,...t})),r[o]}function X9(e,t,n){const r=U9(t);return Oh.set(e,n),r.observe(e),()=>{Oh.delete(e),r.unobserve(e);}}const q9={some:0,all:1};class Y9 extends ts{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1;}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:a}=t,i={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:q9[o]},s=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,a&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),f=c?u:d;f&&f(l);};return X9(this.node.current,i,s)}mount(){this.startObserver();}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Z9(t,n))&&this.startObserver();}unmount(){}}function Z9({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Q9={inView:{Feature:Y9},tap:{Feature:W9},focus:{Feature:V9},hover:{Feature:H9}};function ox(e,t){if(!Array.isArray(t))return !1;const n=t.length;if(n!==e.length)return !1;for(let r=0;r<n;r++)if(t[r]!==e[r])return !1;return !0}function J9(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function eH(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Yd(e,t,n){const r=e.getProps();return rp(r,t,n!==void 0?n:r.custom,J9(e),eH(e))}const tH="framerAppearId",nH="data-"+tp(tH);let Zd=Dn;const jo=e=>e*1e3,yo=e=>e/1e3,oH={current:!1},ax=e=>Array.isArray(e)&&typeof e[0]=="number";function ix(e){return !!(!e||typeof e=="string"&&sx[e]||ax(e)||Array.isArray(e)&&e.every(ix))}const xs=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,sx={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:xs([0,.65,.55,1]),circOut:xs([.55,0,1,.45]),backIn:xs([.31,.01,.66,-.59]),backOut:xs([.33,1.53,.69,.99])};function lx(e){if(e)return ax(e)?xs(e):Array.isArray(e)?e.map(lx):sx[e]}function aH(e,t,n,{delay:r=0,duration:o,repeat:a=0,repeatType:i="loop",ease:s,times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=lx(s);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:a+1,direction:i==="reverse"?"alternate":"normal"})}function iH(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const cx=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,sH=1e-7,lH=12;function cH(e,t,n,r,o){let a,i,s=0;do i=t+(n-t)/2,a=cx(i,r,o)-e,a>0?n=i:t=i;while(Math.abs(a)>sH&&++s<lH);return i}function kl(e,t,n,r){if(e===t&&n===r)return Dn;const o=a=>cH(a,0,1,e,n);return a=>a===0||a===1?a:cx(o(a),t,r)}const uH=kl(.42,0,1,1),dH=kl(0,0,.58,1),ux=kl(.42,0,.58,1),dx=e=>Array.isArray(e)&&typeof e[0]!="number",fx=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,mx=e=>t=>1-e(1-t),hx=e=>1-Math.sin(Math.acos(e)),gx=mx(hx),fH=fx(gx),vx=kl(.33,1.53,.69,.99),op=mx(vx),mH=fx(op),hH=e=>(e*=2)<1?.5*op(e):.5*(2-Math.pow(2,-10*(e-1))),gH={linear:Dn,easeIn:uH,easeInOut:ux,easeOut:dH,circIn:hx,circInOut:fH,circOut:gx,backIn:op,backInOut:mH,backOut:vx,anticipate:hH},Cy=e=>{if(Array.isArray(e)){Zd(e.length===4);const[t,n,r,o]=e;return kl(t,n,r,o)}else if(typeof e=="string")return gH[e];return e},ap=(e,t)=>n=>!!(Tl(n)&&f9.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),px=(e,t,n)=>r=>{if(!Tl(r))return r;const[o,a,i,s]=r.match(qd);return {[e]:parseFloat(o),[t]:parseFloat(a),[n]:parseFloat(i),alpha:s!==void 0?parseFloat(s):1}},vH=e=>Ri(0,255,e),am={...ka,transform:e=>Math.round(vH(e))},ia={test:ap("rgb","red"),parse:px("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+am.transform(e)+", "+am.transform(t)+", "+am.transform(n)+", "+Ns(ks.transform(r))+")"};function pH(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Mh={test:ap("#"),parse:pH,transform:ia.transform},ui={test:ap("hsl","hue"),parse:px("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+gi.transform(Ns(t))+", "+gi.transform(Ns(n))+", "+Ns(ks.transform(r))+")"},Un={test:e=>ia.test(e)||Mh.test(e)||ui.test(e),parse:e=>ia.test(e)?ia.parse(e):ui.test(e)?ui.parse(e):Mh.parse(e),transform:e=>Tl(e)?e:e.hasOwnProperty("red")?ia.transform(e):ui.transform(e)},Nl=(e,t,n)=>-n*e+n*t+e;function im(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 bH({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,a=0,i=0;if(!t)o=a=i=n;else {const s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;o=im(l,s,e+1/3),a=im(l,s,e),i=im(l,s,e-1/3);}return {red:Math.round(o*255),green:Math.round(a*255),blue:Math.round(i*255),alpha:r}}const sm=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},yH=[Mh,ia,ui],CH=e=>yH.find(t=>t.test(e));function Sy(e){const t=CH(e);let n=t.parse(e);return t===ui&&(n=bH(n)),n}const bx=(e,t)=>{const n=Sy(e),r=Sy(t),o={...n};return a=>(o.red=sm(n.red,r.red,a),o.green=sm(n.green,r.green,a),o.blue=sm(n.blue,r.blue,a),o.alpha=Nl(n.alpha,r.alpha,a),ia.transform(o))};function SH(e){var t,n;return isNaN(e)&&Tl(e)&&(((t=e.match(qd))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(W$))===null||n===void 0?void 0:n.length)||0)>0}const yx={regex:u9,countKey:"Vars",token:"${v}",parse:Dn},Cx={regex:W$,countKey:"Colors",token:"${c}",parse:Un.parse},Sx={regex:qd,countKey:"Numbers",token:"${n}",parse:ka.parse};function lm(e,{regex:t,countKey:n,token:r,parse:o}){const a=e.tokenised.match(t);a&&(e["num"+n]=a.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...a.map(o)));}function gu(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&lm(n,yx),lm(n,Cx),lm(n,Sx),n}function wx(e){return gu(e).values}function $x(e){const{values:t,numColors:n,numVars:r,tokenised:o}=gu(e),a=t.length;return i=>{let s=o;for(let l=0;l<a;l++)l<r?s=s.replace(yx.token,i[l]):l<r+n?s=s.replace(Cx.token,Un.transform(i[l])):s=s.replace(Sx.token,Ns(i[l]));return s}}const wH=e=>typeof e=="number"?0:e;function $H(e){const t=wx(e);return $x(e)(t.map(wH))}const ns={test:SH,parse:wx,createTransformer:$x,getAnimatableNone:$H},xx=(e,t)=>n=>`${n>0?t:e}`;function Ex(e,t){return typeof e=="number"?n=>Nl(e,t,n):Un.test(e)?bx(e,t):e.startsWith("var(")?xx(e,t):Px(e,t)}const Ix=(e,t)=>{const n=[...e],r=n.length,o=e.map((a,i)=>Ex(a,t[i]));return a=>{for(let i=0;i<r;i++)n[i]=o[i](a);return n}},xH=(e,t)=>{const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=Ex(e[o],t[o]));return o=>{for(const a in r)n[a]=r[a](o);return n}},Px=(e,t)=>{const n=ns.createTransformer(t),r=gu(e),o=gu(t);return r.numVars===o.numVars&&r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?pa(Ix(r.values,o.values),n):xx(e,t)},ip=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},wy=(e,t)=>n=>Nl(e,t,n);function EH(e){return typeof e=="number"?wy:typeof e=="string"?Un.test(e)?bx:Px:Array.isArray(e)?Ix:typeof e=="object"?xH:wy}function IH(e,t,n){const r=[],o=n||EH(e[0]),a=e.length-1;for(let i=0;i<a;i++){let s=o(e[i],e[i+1]);if(t){const l=Array.isArray(t)?t[i]||Dn:t;s=pa(l,s);}r.push(s);}return r}function Ox(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const a=e.length;if(Zd(a===t.length),a===1)return ()=>t[0];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const i=IH(t,r,o),s=i.length,l=c=>{let u=0;if(s>1)for(;u<e.length-2&&!(c<e[u+1]);u++);const d=ip(e[u],e[u+1],c);return i[u](d)};return n?c=>l(Ri(e[0],e[a-1],c)):l}function Mx(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=ip(0,t,r);e.push(Nl(n,1,o));}}function Rx(e){const t=[0];return Mx(t,e.length-1),t}function PH(e,t){return e.map(n=>n*t)}function OH(e,t){return e.map(()=>t||ux).splice(0,e.length-1)}function vu({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=dx(r)?r.map(Cy):Cy(r),a={done:!1,value:t[0]},i=PH(n&&n.length===t.length?n:Rx(t),e),s=Ox(i,t,{ease:Array.isArray(o)?o:OH(t,o)});return {calculatedDuration:e,next:l=>(a.value=s(l),a.done=l>=e,a)}}function Tx(e,t){return t?e*(1e3/t):0}const MH=5;function _x(e,t,n){const r=Math.max(t-MH,0);return Tx(n-e(r),t-r)}const cm=.001,RH=.01,$y=10,TH=.05,_H=1;function kH({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,a;let i=1-t;i=Ri(TH,_H,i),e=Ri(RH,$y,yo(e)),i<1?(o=c=>{const u=c*i,d=u*e,f=u-n,h=Rh(c,i),g=Math.exp(-d);return cm-f/h*g},a=c=>{const d=c*i*e,f=d*n+n,h=Math.pow(i,2)*Math.pow(c,2)*e,g=Math.exp(-d),v=Rh(Math.pow(c,2),i);return (-o(c)+cm>0?-1:1)*((f-h)*g)/v}):(o=c=>{const u=Math.exp(-c*e),d=(c-n)*e+1;return -cm+u*d},a=c=>{const u=Math.exp(-c*e),d=(n-c)*(e*e);return u*d});const s=5/e,l=AH(o,a,s);if(e=jo(e),isNaN(l))return {stiffness:100,damping:10,duration:e};{const c=Math.pow(l,2)*r;return {stiffness:c,damping:i*2*Math.sqrt(r*c),duration:e}}}const NH=12;function AH(e,t,n){let r=n;for(let o=1;o<NH;o++)r=r-e(r)/t(r);return r}function Rh(e,t){return e*Math.sqrt(1-t*t)}const LH=["duration","bounce"],FH=["stiffness","damping","mass"];function xy(e,t){return t.some(n=>e[n]!==void 0)}function DH(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!xy(e,FH)&&xy(e,LH)){const n=kH(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0;}return t}function sp({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],a=e[e.length-1],i={done:!1,value:o},{stiffness:s,damping:l,mass:c,velocity:u,duration:d,isResolvedFromDuration:f}=DH(r),h=u?-yo(u):0,g=l/(2*Math.sqrt(s*c)),v=a-o,p=yo(Math.sqrt(s/c)),b=Math.abs(v)<5;n||(n=b?.01:2),t||(t=b?.005:.5);let y;if(g<1){const C=Rh(p,g);y=w=>{const x=Math.exp(-g*p*w);return a-x*((h+g*p*v)/C*Math.sin(C*w)+v*Math.cos(C*w))};}else if(g===1)y=C=>a-Math.exp(-p*C)*(v+(h+p*v)*C);else {const C=p*Math.sqrt(g*g-1);y=w=>{const x=Math.exp(-g*p*w),E=Math.min(C*w,300);return a-x*((h+g*p*v)*Math.sinh(E)+C*v*Math.cosh(E))/C};}return {calculatedDuration:f&&d||null,next:C=>{const w=y(C);if(f)i.done=C>=d;else {let x=h;C!==0&&(g<1?x=_x(y,C,w):x=0);const E=Math.abs(x)<=n,S=Math.abs(a-w)<=t;i.done=E&&S;}return i.value=i.done?a:w,i}}}function Ey({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:a=500,modifyTarget:i,min:s,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},h=$=>s!==void 0&&$<s||l!==void 0&&$>l,g=$=>s===void 0?l:l===void 0||Math.abs(s-$)<Math.abs(l-$)?s:l;let v=n*t;const p=d+v,b=i===void 0?p:i(p);b!==p&&(v=b-d);const y=$=>-v*Math.exp(-$/r),C=$=>b+y($),w=$=>{const I=y($),P=C($);f.done=Math.abs(I)<=c,f.value=f.done?b:P;};let x,E;const S=$=>{h(f.value)&&(x=$,E=sp({keyframes:[f.value,g(f.value)],velocity:_x(C,$,f.value),damping:o,stiffness:a,restDelta:c,restSpeed:u}));};return S(0),{calculatedDuration:null,next:$=>{let I=!1;return !E&&x===void 0&&(I=!0,w($),S($)),x!==void 0&&$>x?E.next($-x):(!I&&w($),f)}}}const jH=e=>{const t=({timestamp:n})=>e(n);return {start:()=>jn.update(t,!0),stop:()=>tl(t),now:()=>nl.isProcessing?nl.timestamp:performance.now()}},Th=2e4;function _h(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Th;)t+=n,r=e.next(t);return t>=Th?1/0:t}const zH={decay:Ey,inertia:Ey,tween:vu,keyframes:vu,spring:sp};function pu({autoplay:e=!0,delay:t=0,driver:n=jH,keyframes:r,type:o="keyframes",repeat:a=0,repeatDelay:i=0,repeatType:s="loop",onPlay:l,onStop:c,onComplete:u,onUpdate:d,...f}){let h=1,g=!1,v,p;const b=()=>{p=new Promise(B=>{v=B;});};b();let y;const C=zH[o]||vu;let w;C!==vu&&typeof r[0]!="number"&&(w=Ox([0,100],r,{clamp:!1}),r=[0,100]);const x=C({...f,keyframes:r});let E;s==="mirror"&&(E=C({...f,keyframes:[...r].reverse(),velocity:-(f.velocity||0)}));let S="idle",$=null,I=null,P=null;x.calculatedDuration===null&&a&&(x.calculatedDuration=_h(x));const{calculatedDuration:R}=x;let M=1/0,k=1/0;R!==null&&(M=R+i,k=M*(a+1)-i);let A=0;const L=B=>{if(I===null)return;h>0&&(I=Math.min(I,B)),h<0&&(I=Math.min(B-k/h,I)),$!==null?A=$:A=Math.round(B-I)*h;const H=A-t*(h>=0?1:-1),G=h>=0?H<0:H>k;A=Math.max(H,0),S==="finished"&&$===null&&(A=k);let K=A,X=x;if(a){const J=A/M;let q=Math.floor(J),se=J%1;!se&&J>=1&&(se=1),se===1&&q--,q=Math.min(q,a+1);const le=!!(q%2);le&&(s==="reverse"?(se=1-se,i&&(se-=i/M)):s==="mirror"&&(X=E));let Q=Ri(0,1,se);A>k&&(Q=s==="reverse"&&le?1:0),K=Q*M;}const Y=G?{done:!1,value:r[0]}:X.next(K);w&&(Y.value=w(Y.value));let{done:ee}=Y;!G&&R!==null&&(ee=h>=0?A>=k:A<=0);const V=$===null&&(S==="finished"||S==="running"&&ee);return d&&d(Y.value),V&&T(),Y},_=()=>{y&&y.stop(),y=void 0;},O=()=>{S="idle",_(),v(),b(),I=P=null;},T=()=>{S="finished",u&&u(),_(),v();},D=()=>{if(g)return;y||(y=n(L));const B=y.now();l&&l(),$!==null?I=B-$:(!I||S==="finished")&&(I=B),S==="finished"&&b(),P=I,$=null,S="running",y.start();};e&&D();const j={then(B,H){return p.then(B,H)},get time(){return yo(A)},set time(B){B=jo(B),A=B,$!==null||!y||h===0?$=B:I=y.now()-B/h;},get duration(){const B=x.calculatedDuration===null?_h(x):x.calculatedDuration;return yo(B)},get speed(){return h},set speed(B){B===h||!y||(h=B,j.time=yo(A));},get state(){return S},play:D,pause:()=>{S="paused",$=A;},stop:()=>{g=!0,S!=="idle"&&(S="idle",c&&c(),O());},cancel:()=>{P!==null&&L(P),O();},complete:()=>{S="finished";},sample:B=>(I=0,L(B))};return j}function kx(e){let t;return ()=>(t===void 0&&(t=e()),t)}const BH=kx(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),HH=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),$c=10,VH=2e4,WH=(e,t)=>t.type==="spring"||e==="backgroundColor"||!ix(t.ease);function GH(e,t,{onUpdate:n,onComplete:r,...o}){if(!(BH()&&HH.has(t)&&!o.repeatDelay&&o.repeatType!=="mirror"&&o.damping!==0&&o.type!=="inertia"))return !1;let i=!1,s,l;const c=()=>{l=new Promise(y=>{s=y;});};c();let{keyframes:u,duration:d=300,ease:f,times:h}=o;if(WH(t,o)){const y=pu({...o,repeat:0,delay:0});let C={done:!1,value:u[0]};const w=[];let x=0;for(;!C.done&&x<VH;)C=y.sample(x),w.push(C.value),x+=$c;h=void 0,u=w,d=x-$c,f="linear";}const g=aH(e.owner.current,t,u,{...o,duration:d,ease:f,times:h});o.syncStart&&(g.startTime=nl.isProcessing?nl.timestamp:document.timeline?document.timeline.currentTime:performance.now());const v=()=>g.cancel(),p=()=>{jn.update(v),s(),c();};return g.onfinish=()=>{e.set(iH(u,o)),r&&r(),p();},{then(y,C){return l.then(y,C)},attachTimeline(y){return g.timeline=y,g.onfinish=null,Dn},get time(){return yo(g.currentTime||0)},set time(y){g.currentTime=jo(y);},get speed(){return g.playbackRate},set speed(y){g.playbackRate=y;},get duration(){return yo(d)},play:()=>{i||(g.play(),tl(v));},pause:()=>g.pause(),stop:()=>{if(i=!0,g.playState==="idle")return;const{currentTime:y}=g;if(y){const C=pu({...o,autoplay:!1});e.setWithVelocity(C.sample(y-$c).value,C.sample(y).value,$c);}p();},complete:()=>g.finish(),cancel:p}}function KH({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const o=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:Dn,pause:Dn,stop:Dn,then:a=>(a(),Promise.resolve()),cancel:Dn,complete:Dn});return t?pu({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}const UH={type:"spring",stiffness:500,damping:25,restSpeed:10},XH=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),qH={type:"keyframes",duration:.8},YH={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ZH=(e,{keyframes:t})=>t.length>2?qH:_a.has(e)?e.startsWith("scale")?XH(t[1]):UH:YH,kh=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(ns.test(t)||t==="0")&&!t.startsWith("url(")),QH=new Set(["brightness","contrast","saturate","opacity"]);function JH(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(qd)||[];if(!r)return e;const o=n.replace(r,"");let a=QH.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+o+")"}const e7=/([a-z-]*)\(.*?\)/g,Nh={...ns,getAnimatableNone:e=>{const t=e.match(e7);return t?t.map(JH).join(" "):e}},t7={...G$,color:Un,backgroundColor:Un,outlineColor:Un,fill:Un,stroke:Un,borderColor:Un,borderTopColor:Un,borderRightColor:Un,borderBottomColor:Un,borderLeftColor:Un,filter:Nh,WebkitFilter:Nh},lp=e=>t7[e];function Nx(e,t){let n=lp(e);return n!==Nh&&(n=ns),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Ax=e=>/^0[^.\s]+$/.test(e);function n7(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||Ax(e)}function r7(e,t,n,r){const o=kh(t,n);let a;Array.isArray(n)?a=[...n]:a=[null,n];const i=r.from!==void 0?r.from:e.get();let s;const l=[];for(let c=0;c<a.length;c++)a[c]===null&&(a[c]=c===0?i:a[c-1]),n7(a[c])&&l.push(c),typeof a[c]=="string"&&a[c]!=="none"&&a[c]!=="0"&&(s=a[c]);if(o&&l.length&&s)for(let c=0;c<l.length;c++){const u=l[c];a[u]=Nx(t,s);}return a}function o7({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:a,repeatType:i,repeatDelay:s,from:l,elapsed:c,...u}){return !!Object.keys(u).length}function a7(e,t){return e[t]||e.default||e}const Lx=(e,t,n,r={})=>o=>{const a=a7(r,e)||{},i=a.delay||r.delay||0;let{elapsed:s=0}=r;s=s-jo(i);const l=r7(t,e,n,a),c=l[0],u=l[l.length-1],d=kh(e,c),f=kh(e,u);let h={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...a,delay:-s,onUpdate:g=>{t.set(g),a.onUpdate&&a.onUpdate(g);},onComplete:()=>{o(),a.onComplete&&a.onComplete();}};if(o7(a)||(h={...h,...ZH(e,h)}),h.duration&&(h.duration=jo(h.duration)),h.repeatDelay&&(h.repeatDelay=jo(h.repeatDelay)),!d||!f||oH.current||a.type===!1)return KH(h);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const g=GH(t,e,h);if(g)return g}return pu(h)};function bu(e){return !!(Hn(e)&&e.add)}const Fx=e=>/^\-?\d*\.?\d+$/.test(e);function i7(e,t){e.indexOf(t)===-1&&e.push(t);}function Dx(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1);}class jx{constructor(){this.subscriptions=[];}add(t){return i7(this.subscriptions,t),()=>Dx(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let a=0;a<o;a++){const i=this.subscriptions[a];i&&i(t,n,r);}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0;}}const s7=e=>!isNaN(parseFloat(e));class l7{constructor(t,n={}){this.version="10.16.5",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,o=!0)=>{this.prev=this.current,this.current=r;const{delta:a,timestamp:i}=nl;this.lastUpdated!==i&&(this.timeDelta=a,this.lastUpdated=i,jn.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current);},this.scheduleVelocityCheck=()=>jn.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()));},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=s7(this.current),this.owner=n.owner;}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new jx);const r=this.events[t].add(n);return t==="change"?()=>{r(),jn.read(()=>{this.events.change.getSize()||this.stop();});}:r}clearListeners(){for(const t in this.events)this.events[t].clear();}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n;}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify);}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r;}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect();}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Tx(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify();}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation();})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation();}isAnimating(){return !!this.animation}clearAnimation(){delete this.animation;}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect();}}function Ti(e,t){return new l7(e,t)}const zx=e=>t=>t.test(e),c7={test:e=>e==="auto",parse:e=>e},Bx=[ka,st,gi,To,h9,m9,c7],hs=e=>Bx.find(zx(e)),u7=[...Bx,Un,ns],d7=e=>u7.find(zx(e));function f7(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ti(n));}function m7(e,t){const n=Yd(e,t);let{transitionEnd:r={},transition:o={},...a}=n?e.makeTargetAnimatable(n,!1):{};a={...a,...r};for(const i in a){const s=O9(a[i]);f7(e,i,s);}}function h7(e,t,n){var r,o;const a=Object.keys(t).filter(s=>!e.hasValue(s)),i=a.length;if(i)for(let s=0;s<i;s++){const l=a[s],c=t[l];let u=null;Array.isArray(c)&&(u=c[0]),u===null&&(u=(o=(r=n[l])!==null&&r!==void 0?r:e.readValue(l))!==null&&o!==void 0?o:t[l]),u!=null&&(typeof u=="string"&&(Fx(u)||Ax(u))?u=parseFloat(u):!d7(u)&&ns.test(c)&&(u=Nx(l,c)),e.addValue(l,Ti(u,{owner:e})),n[l]===void 0&&(n[l]=u),u!==null&&e.setBaseTarget(l,u));}}function g7(e,t){return t?(t[e]||t.default||t).from:void 0}function v7(e,t,n){const r={};for(const o in e){const a=g7(o,t);if(a!==void 0)r[o]=a;else {const i=n.getValue(o);i&&(r[o]=i.get());}}return r}function p7({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function cp(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:i,...s}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");r&&(a=r);const c=[],u=o&&e.animationState&&e.animationState.getState()[o];for(const d in s){const f=e.getValue(d),h=s[d];if(!f||h===void 0||u&&p7(u,d))continue;const g={delay:n,elapsed:0,...a};if(window.HandoffAppearAnimations&&!f.hasAnimated){const p=e.getProps()[nH];p&&(g.elapsed=window.HandoffAppearAnimations(p,d,f,jn),g.syncStart=!0);}f.start(Lx(d,f,h,e.shouldReduceMotion&&_a.has(d)?{type:!1}:g));const v=f.animation;bu(l)&&(l.add(d),v.then(()=>l.remove(d))),c.push(v);}return i&&Promise.all(c).then(()=>{i&&m7(e,i);}),c}function Ah(e,t,n={}){const r=Yd(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const a=r?()=>Promise.all(cp(e,r,n)):()=>Promise.resolve(),i=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:u,staggerDirection:d}=o;return b7(e,t,c+l,u,d,n)}:()=>Promise.resolve(),{when:s}=o;if(s){const[l,c]=s==="beforeChildren"?[a,i]:[i,a];return l().then(()=>c())}else return Promise.all([a(),i(n.delay)])}function b7(e,t,n=0,r=0,o=1,a){const i=[],s=(e.variantChildren.size-1)*r,l=o===1?(c=0)=>c*r:(c=0)=>s-c*r;return Array.from(e.variantChildren).sort(y7).forEach((c,u)=>{c.notify("AnimationStart",t),i.push(Ah(c,t,{...a,delay:n+l(u)}).then(()=>c.notify("AnimationComplete",t)));}),Promise.all(i)}function y7(e,t){return e.sortNodePosition(t)}function C7(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(a=>Ah(e,a,n));r=Promise.all(o);}else if(typeof t=="string")r=Ah(e,t,n);else {const o=typeof t=="function"?Yd(e,t,n.custom):t;r=Promise.all(cp(e,o,n));}return r.then(()=>e.notify("AnimationComplete",t))}const S7=[...Xv].reverse(),w7=Xv.length;function $7(e){return t=>Promise.all(t.map(({animation:n,options:r})=>C7(e,n,r)))}function x7(e){let t=$7(e);const n=I7();let r=!0;const o=(l,c)=>{const u=Yd(e,c);if(u){const{transition:d,transitionEnd:f,...h}=u;l={...l,...h,...f};}return l};function a(l){t=l(e);}function i(l,c){const u=e.getProps(),d=e.getVariantContext(!0)||{},f=[],h=new Set;let g={},v=1/0;for(let b=0;b<w7;b++){const y=S7[b],C=n[y],w=u[y]!==void 0?u[y]:d[y],x=Js(w),E=y===c?C.isActive:null;E===!1&&(v=b);let S=w===d[y]&&w!==u[y]&&x;if(S&&r&&e.manuallyAnimateOnMount&&(S=!1),C.protectedKeys={...g},!C.isActive&&E===null||!w&&!C.prevProp||Ud(w)||typeof w=="boolean")continue;const $=E7(C.prevProp,w);let I=$||y===c&&C.isActive&&!S&&x||b>v&&x;const P=Array.isArray(w)?w:[w];let R=P.reduce(o,{});E===!1&&(R={});const{prevResolvedValues:M={}}=C,k={...M,...R},A=L=>{I=!0,h.delete(L),C.needsAnimating[L]=!0;};for(const L in k){const _=R[L],O=M[L];g.hasOwnProperty(L)||(_!==O?hu(_)&&hu(O)?!ox(_,O)||$?A(L):C.protectedKeys[L]=!0:_!==void 0?A(L):h.add(L):_!==void 0&&h.has(L)?A(L):C.protectedKeys[L]=!0);}C.prevProp=w,C.prevResolvedValues=R,C.isActive&&(g={...g,...R}),r&&e.blockInitialAnimation&&(I=!1),I&&!S&&f.push(...P.map(L=>({animation:L,options:{type:y,...l}})));}if(h.size){const b={};h.forEach(y=>{const C=e.getBaseTarget(y);C!==void 0&&(b[y]=C);}),f.push({animation:b});}let p=!!f.length;return r&&u.initial===!1&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,p?t(f):Promise.resolve()}function s(l,c,u){var d;if(n[l].isActive===c)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(h=>{var g;return (g=h.animationState)===null||g===void 0?void 0:g.setActive(l,c)}),n[l].isActive=c;const f=i(u,l);for(const h in n)n[h].protectedKeys={};return f}return {animateChanges:i,setActive:s,setAnimateFunction:a,getState:()=>n}}function E7(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!ox(t,e):!1}function Yo(e=!1){return {isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function I7(){return {animate:Yo(!0),whileInView:Yo(),whileHover:Yo(),whileTap:Yo(),whileDrag:Yo(),whileFocus:Yo(),exit:Yo()}}class P7 extends ts{constructor(t){super(t),t.animationState||(t.animationState=x7(t));}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Ud(t)&&(this.unmount=t.subscribe(this.node));}mount(){this.updateAnimationControlsSubscription();}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription();}unmount(){}}let O7=0;class M7 extends ts{constructor(){super(...arguments),this.id=O7++;}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const a=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&a.then(()=>n(this.id));}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id));}unmount(){}}const R7={animation:{Feature:P7},exit:{Feature:M7}},Iy=()=>({min:0,max:0}),Hx=()=>({x:Iy(),y:Iy()});function T7({top:e,left:t,right:n,bottom:r}){return {x:{min:t,max:n},y:{min:e,max:r}}}function _7(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return {top:n.y,left:n.x,bottom:r.y,right:r.x}}function k7(e,t){return T7(_7(e.getBoundingClientRect(),t))}function N7(e){return e instanceof SVGElement&&e.tagName!=="svg"}function Vx(e,t,n){const r=Hn(e)?e:Ti(e);return r.start(Lx("",r,t,n)),r.animation}const A7=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function L7(e){const t=A7.exec(e);if(!t)return [,];const[,n,r]=t;return [n,r]}function Lh(e,t,n=1){const[r,o]=L7(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const i=a.trim();return Fx(i)?parseFloat(i):i}else return Ih(o)?Lh(o,t,n+1):o}function F7(e,{...t},n){const r=e.current;if(!(r instanceof Element))return {target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(o=>{const a=o.get();if(!Ih(a))return;const i=Lh(a,r);i&&o.set(i);});for(const o in t){const a=t[o];if(!Ih(a))continue;const i=Lh(a,r);i&&(t[o]=i,n||(n={}),n[o]===void 0&&(n[o]=a));}return {target:t,transitionEnd:n}}const D7=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Wx=e=>D7.has(e),j7=e=>Object.keys(e).some(Wx),Py=e=>e===ka||e===st,Oy=(e,t)=>parseFloat(e.split(", ")[t]),My=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return Oy(o[1],t);{const a=r.match(/^matrix\((.+)\)$/);return a?Oy(a[1],e):0}},z7=new Set(["x","y","z"]),B7=Rl.filter(e=>!z7.has(e));function H7(e){const t=[];return B7.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0));}),t.length&&e.render(),t}const _i={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:My(4,13),y:My(5,14)};_i.translateX=_i.x;_i.translateY=_i.y;const V7=(e,t,n)=>{const r=t.measureViewportBox(),o=t.current,a=getComputedStyle(o),{display:i}=a,s={};i==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(c=>{s[c]=_i[c](r,a);}),t.render();const l=t.measureViewportBox();return n.forEach(c=>{const u=t.getValue(c);u&&u.jump(s[c]),e[c]=_i[c](l,a);}),e},W7=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(Wx);let a=[],i=!1;const s=[];if(o.forEach(l=>{const c=e.getValue(l);if(!e.hasValue(l))return;let u=n[l],d=hs(u);const f=t[l];let h;if(hu(f)){const g=f.length,v=f[0]===null?1:0;u=f[v],d=hs(u);for(let p=v;p<g&&f[p]!==null;p++)h?Zd(hs(f[p])===h):h=hs(f[p]);}else h=hs(f);if(d!==h)if(Py(d)&&Py(h)){const g=c.get();typeof g=="string"&&c.set(parseFloat(g)),typeof f=="string"?t[l]=parseFloat(f):Array.isArray(f)&&h===st&&(t[l]=f.map(parseFloat));}else d!=null&&d.transform&&(h!=null&&h.transform)&&(u===0||f===0)?u===0?c.set(h.transform(u)):t[l]=d.transform(f):(i||(a=H7(e),i=!0),s.push(l),r[l]=r[l]!==void 0?r[l]:t[l],c.jump(f));}),s.length){const l=s.indexOf("height")>=0?window.pageYOffset:null,c=V7(t,e,s);return a.length&&a.forEach(([u,d])=>{e.getValue(u).set(d);}),e.render(),Kd&&l!==null&&window.scrollTo({top:l}),{target:c,transitionEnd:r}}else return {target:t,transitionEnd:r}};function G7(e,t,n,r){return j7(t)?W7(e,t,n,r):{target:t,transitionEnd:r}}const K7=(e,t,n,r)=>{const o=F7(e,t,r);return t=o.target,r=o.transitionEnd,G7(e,t,n,r)},Fh={current:null},Gx={current:!1};function U7(){if(Gx.current=!0,!!Kd)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Fh.current=e.matches;e.addListener(t),t();}else Fh.current=!1;}function X7(e,t,n){const{willChange:r}=t;for(const o in t){const a=t[o],i=n[o];if(Hn(a))e.addValue(o,a),bu(r)&&r.add(o);else if(Hn(i))e.addValue(o,Ti(a,{owner:e})),bu(r)&&r.remove(o);else if(i!==a)if(e.hasValue(o)){const s=e.getValue(o);!s.hasAnimated&&s.set(a);}else {const s=e.getStaticValue(o);e.addValue(o,Ti(s!==void 0?s:a,{owner:e}));}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const rl=new WeakMap,Kx=Object.keys(el),q7=Kx.length,Ry=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Y7=qv.length;class Z7{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,visualState:a},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection));},this.scheduleRender=()=>jn.render(this.render,!1,!0);const{latestValues:s,renderState:l}=a;this.latestValues=s,this.baseTarget={...s},this.initialValues=n.initial?{...s}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=i,this.isControllingVariants=Xd(n),this.isVariantNode=z$(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...u}=this.scrapeMotionValuesFromProps(n,{});for(const d in u){const f=u[d];s[d]!==void 0&&Hn(f)&&(f.set(s[d],!1),bu(c)&&c.add(d));}}scrapeMotionValuesFromProps(t,n){return {}}mount(t){this.current=t,rl.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),Gx.current||U7(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Fh.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext);}unmount(){rl.delete(this.current),this.projection&&this.projection.unmount(),tl(this.notifyUpdate),tl(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null;}bindToMotionValue(t,n){const r=_a.has(t),o=n.on("change",i=>{this.latestValues[t]=i,this.props.onUpdate&&jn.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0);}),a=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),a();});}sortNodePosition(t){return !this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,o,a){let i,s;for(let l=0;l<q7;l++){const c=Kx[l],{isEnabled:u,Feature:d,ProjectionNode:f,MeasureLayout:h}=el[c];f&&(i=f),u(n)&&(!this.features[c]&&d&&(this.features[c]=new d(this)),h&&(s=h));}if(!this.projection&&i){this.projection=new i(this.latestValues,this.parent&&this.parent.projection);const{layoutId:l,layout:c,drag:u,dragConstraints:d,layoutScroll:f,layoutRoot:h}=n;this.projection.setOptions({layoutId:l,layout:c,alwaysMeasureLayout:!!u||d&&j$(d),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof c=="string"?c:"both",initialPromotionConfig:a,layoutScroll:f,layoutRoot:h});}return s}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0);}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props);}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Hx()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n;}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Ry.length;r++){const o=Ry[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const a=t["on"+o];a&&(this.propEventSubscriptions[o]=this.on(o,a));}this.prevMotionValues=X7(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue();}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<Y7;r++){const o=qv[r],a=this.props[o];(Js(a)||a===!1)&&(n[o]=a);}return n}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get();}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState);}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Ti(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n;}getBaseTarget(t){var n;const{initial:r}=this.props,o=typeof r=="string"||typeof r=="object"?(n=rp(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&o!==void 0)return o;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!Hn(a)?a:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new jx),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n);}}class Ux extends Z7{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t];}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:o},a){let i=v7(r,t||{},this);if(o&&(n&&(n=o(n)),r&&(r=o(r)),i&&(i=o(i))),a){h7(this,r,i);const s=K7(this,r,i,n);n=s.transitionEnd,r=s.target;}return {transition:t,transitionEnd:n,...r}}}function Q7(e){return window.getComputedStyle(e)}class Xx extends Ux{readValueFromInstance(t,n){if(_a.has(n)){const r=lp(n);return r&&r.default||0}else {const r=Q7(t),o=(V$(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return k7(t,n)}build(t,n,r,o){Zv(t,n,r,o.transformTemplate);}scrapeMotionValuesFromProps(t,n){return np(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Hn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`);}));}renderInstance(t,n,r,o){q$(t,n,r,o);}}class qx extends Ux{constructor(){super(...arguments),this.isSVGTag=!1;}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(_a.has(n)){const r=lp(n);return r&&r.default||0}return n=Y$.has(n)?n:tp(n),t.getAttribute(n)}measureInstanceViewportBox(){return Hx()}scrapeMotionValuesFromProps(t,n){return Q$(t,n)}build(t,n,r,o){Jv(t,n,r,this.isSVGTag,o.transformTemplate);}renderInstance(t,n,r,o){Z$(t,n,r,o);}mount(t){this.isSVGTag=ep(t.tagName),super.mount(t);}}const J7=(e,t)=>Yv(e)?new qx(t,{enableHardwareAcceleration:!1}):new Xx(t,{enableHardwareAcceleration:!0}),eV=o9(F9);function tV(e){return m.useEffect(()=>()=>e(),[])}function nV({children:e,features:t,strict:n=!1}){const[,r]=m.useState(!um(t)),o=m.useRef(void 0);if(!um(t)){const{renderer:a,...i}=t;o.current=a,Eh(i);}return m.useEffect(()=>{um(t)&&t().then(({renderer:a,...i})=>{Eh(i),o.current=a,r(!0);});},[]),m__namespace.createElement(Uv.Provider,{value:{renderer:o.current,strict:n}},e)}function um(e){return typeof e=="function"}const rV={renderer:J7,...R7,...Q9};function Yx(e,t,n){var r;if(typeof e=="string"){let o=document;t&&(Zd(!!t.current),o=t.current),n?((r=n[e])!==null&&r!==void 0||(n[e]=o.querySelectorAll(e)),e=n[e]):e=o.querySelectorAll(e);}else e instanceof Element&&(e=[e]);return Array.from(e||[])}function oV(e,t){let n;const r=()=>{const{currentTime:o}=t,i=(o===null?0:o.value)/100;n!==i&&e(i),n=i;};return jn.update(r,!0),()=>tl(r)}const aV=kx(()=>window.ScrollTimeline!==void 0);class Zx{constructor(t){this.animations=t.filter(Boolean);}then(t,n){return Promise.all(this.animations).then(t).catch(n)}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n;}attachTimeline(t){const n=this.animations.map(r=>{if(aV()&&r.attachTimeline)r.attachTimeline(t);else return r.pause(),oV(o=>{r.time=r.duration*o;},t)});return ()=>{n.forEach((r,o)=>{r&&r(),this.animations[o].stop();});}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t);}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t);}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]());}play(){this.runAll("play");}pause(){this.runAll("pause");}stop(){this.runAll("stop");}cancel(){this.runAll("cancel");}complete(){this.runAll("complete");}}function iV(e){return typeof e=="object"&&!Array.isArray(e)}function sV(e){const t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=N7(e)?new qx(t,{enableHardwareAcceleration:!1}):new Xx(t,{enableHardwareAcceleration:!0});n.mount(e),rl.set(e,n);}function lV(e,t=100){const n=sp({keyframes:[0,t],...e}),r=Math.min(_h(n),Th);return {type:"keyframes",ease:o=>n.next(r*o).value/t,duration:yo(r)}}function Ty(e,t,n,r){var o;return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?n:(o=r.get(t))!==null&&o!==void 0?o:e}const cV=(e,t,n)=>{const r=t-e;return ((n-e)%r+r)%r+e};function uV(e,t){return dx(e)?e[cV(0,e.length,t)]:e}function dV(e,t,n){for(let r=0;r<e.length;r++){const o=e[r];o.at>t&&o.at<n&&(Dx(e,o),r--);}}function fV(e,t,n,r,o,a){dV(e,o,a);for(let i=0;i<t.length;i++)e.push({value:t[i],at:Nl(o,a,r[i]),easing:uV(n,i)});}function mV(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}const hV="easeInOut";function gV(e,{defaultTransition:t={},...n}={},r){const o=t.duration||.3,a=new Map,i=new Map,s={},l=new Map;let c=0,u=0,d=0;for(let f=0;f<e.length;f++){const h=e[f];if(typeof h=="string"){l.set(h,u);continue}else if(!Array.isArray(h)){l.set(h.name,Ty(u,h.at,c,l));continue}let[g,v,p={}]=h;p.at!==void 0&&(u=Ty(u,p.at,c,l));let b=0;const y=(C,w,x,E=0,S=0)=>{const $=vV(C),{delay:I=0,times:P=Rx($),type:R="keyframes",...M}=w;let{ease:k=t.ease||"easeOut",duration:A}=w;const L=typeof I=="function"?I(E,S):I,_=$.length;if(_<=2&&R==="spring"){let j=100;if(_===2&&yV($)){const G=$[1]-$[0];j=Math.abs(G);}const B={...M};A!==void 0&&(B.duration=jo(A));const H=lV(B,j);k=H.ease,A=H.duration;}A??(A=o);const O=u+L,T=O+A;P.length===1&&P[0]===0&&(P[1]=1);const D=P.length-$.length;D>0&&Mx(P,D),$.length===1&&$.unshift(null),fV(x,$,k,P,O,T),b=Math.max(L+A,b),d=Math.max(T,d);};if(Hn(g)){const C=_y(g,i);y(v,p,ky("default",C));}else {const C=Yx(g,r,s),w=C.length;for(let x=0;x<w;x++){v=v,p=p;const E=C[x],S=_y(E,i);for(const $ in v)y(v[$],pV(p,$),ky($,S),x,w);}c=u,u+=b;}}return i.forEach((f,h)=>{for(const g in f){const v=f[g];v.sort(mV);const p=[],b=[],y=[];for(let w=0;w<v.length;w++){const{at:x,value:E,easing:S}=v[w];p.push(E),b.push(ip(0,d,x)),y.push(S||"easeOut");}b[0]!==0&&(b.unshift(0),p.unshift(p[0]),y.unshift(hV)),b[b.length-1]!==1&&(b.push(1),p.push(null)),a.has(h)||a.set(h,{keyframes:{},transition:{}});const C=a.get(h);C.keyframes[g]=p,C.transition[g]={...t,duration:d,ease:y,times:b,...n};}}),a}function _y(e,t){return !t.has(e)&&t.set(e,{}),t.get(e)}function ky(e,t){return t[e]||(t[e]=[]),t[e]}function vV(e){return Array.isArray(e)?e:[e]}function pV(e,t){return e[t]?{...e,...e[t]}:{...e}}const bV=e=>typeof e=="number",yV=e=>e.every(bV);function Qx(e,t,n,r){const o=Yx(e,r),a=o.length,i=[];for(let s=0;s<a;s++){const l=o[s];rl.has(l)||sV(l);const c=rl.get(l),u={...n};typeof u.delay=="function"&&(u.delay=u.delay(s,a)),i.push(...cp(c,{...t,transition:u},{}));}return new Zx(i)}const CV=e=>Array.isArray(e)&&Array.isArray(e[0]);function SV(e,t,n){const r=[];return gV(e,t,n).forEach(({keyframes:a,transition:i},s)=>{let l;Hn(s)?l=Vx(s,a.default,i.default):l=Qx(s,a,i),r.push(l);}),new Zx(r)}const wV=e=>{function t(n,r,o){let a;return CV(n)?a=SV(n,r,e):iV(r)?a=Qx(n,r,o,e):a=Vx(n,r,o),e&&e.animations.push(a),a}return t};function $V(){const e=Ph(()=>({current:null,animations:[]})),t=Ph(()=>wV(e));return tV(()=>{e.animations.forEach(n=>n.stop());}),[e,t]}const Jx="HarmonyOS_Regular,PingFang SC,Helvetica Neue,Microsoft YaHei,sans-serif";function up({children:e,injectGlobalStyle:t=!1}){const n=Vv(),{colorPrimary:r}=dv();return be(Fv,{locale:UB,theme:{algorithm:n?ly.darkAlgorithm:ly.defaultAlgorithm,token:{colorPrimary:r,colorBgSpotlight:r,zIndexPopupBase:11e3,fontFamily:Jx}},children:[t&&F(EV,{}),F(nV,{features:rV,children:e})]})}var xV={name:"bts51",styles:"body,.large-header,#i_cecream,.bili-header .bili-header__channel{background-color:var(--bg2);}"};function EV(){const{colorPrimary:e}=dv(),{styleFancy:t}=cn();return be(It,{children:[F(uy,{styles:zr`
          :root {
            ${rw}: ${e};
          }

          .${Oa} {
            font-family: ${Jx};
          }
        `}),t&&F(uy,{styles:xV})]})}function Qd(e){return F(Pl,{...e,overlayStyle:{width:"max-content",maxWidth:"50vw",...e.overlayInnerStyle},children:e.children})}var Al,Ny=HC;Al=Ny.createRoot,Ny.hydrateRoot;var IV=["size","strokeWidth","strokeLinecap","strokeLinejoin","theme","fill","className","spin"];function Ay(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 Ly(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ay(Object(n),!0).forEach(function(r){PV(e,r,n[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ay(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r));});}return e}function PV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OV(e,t){if(e==null)return {};var n=MV(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 MV(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 RV={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 TV(){return "icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)}function _V(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 e2=m.createContext(RV);e2.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,f=OV(r,IV),h=m.useContext(e2),g=m.useMemo(TV,[]),v=_V(g,{size:o,strokeWidth:a,strokeLinecap:i,strokeLinejoin:s,theme:l,fill:c},h),p=[h.prefix+"-icon"];return p.push(h.prefix+"-icon-"+e),t&&h.rtl&&p.push(h.prefix+"-icon-rtl"),d&&p.push(h.prefix+"-icon-spin"),u&&p.push(u),m.createElement("span",Ly(Ly({},f),{},{className:p.join(" ")}),n(v))}}const kV=Gt("trend-two",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.createElement("path",{d:"M4 44H44",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M4 26L12 28V38H4V26Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M20 24L28 20V38H20V24Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M36 16L44 12V38H36V16Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M4 18L12 20L44 4H34",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),NV=Gt("fire",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.createElement("path",{d:"M24 44C32.2347 44 38.9998 37.4742 38.9998 29.0981C38.9998 27.0418 38.8953 24.8375 37.7555 21.4116C36.6157 17.9858 36.3861 17.5436 35.1809 15.4279C34.666 19.7454 31.911 21.5448 31.2111 22.0826C31.2111 21.5231 29.5445 15.3359 27.0176 11.6339C24.537 8 21.1634 5.61592 19.1853 4C19.1853 7.06977 18.3219 11.6339 17.0854 13.9594C15.8489 16.2849 15.6167 16.3696 14.0722 18.1002C12.5278 19.8308 11.8189 20.3653 10.5274 22.4651C9.23596 24.565 9 27.3618 9 29.4181C9 37.7942 15.7653 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),AV=Gt("split",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.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}))}),LV=Gt("people-search",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.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}),m.createElement("path",{d:"M39.9997 41.0002L36.8281 37.8286",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.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}))}),FV=Gt("people-minus",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M30 35H42H30Z",fill:e.colors[1]}),m.createElement("path",{d:"M30 35H42",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.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}))}),DV=Gt("people-delete",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.createElement("path",{d:"M33 31L41 39",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M33 39L41 31",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.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}))}),jV=Gt("delete",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.createElement("path",{d:"M9 10V44H39V10H9Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M20 20V33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M28 20V33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M4 10H44",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M16 10L19.289 4H28.7771L32 10H16Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),zV=Gt("add-two",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.createElement("path",{d:"M31 30L43 30",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M15 22L22 29L41 11",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M37 24V36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),BV=Gt("play-two",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.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}))}),HV=Gt("unlike",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.createElement("path",{d:"M34.959 27L41.8375 35.5",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M41.8375 27L34.959 35.5",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),VV=Gt("dislike-two",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28 20L20 28L28 20Z",fill:e.colors[1]}),m.createElement("path",{d:"M28 20L20 28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 20.0001L28 28L20 20.0001Z",fill:e.colors[1]}),m.createElement("path",{d:"M20 20.0001L28 28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),WV=Gt("copy",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.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}))}),GV=Gt("efferent-four",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.createElement("path",{d:"M28 5H40V17",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M21.0001 23.9998L39 6",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),KV=Gt("star",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}))}),UV=Gt("file-cabinet",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.createElement("path",{d:"M42 4H6V14H42V4Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M42 19H6V29H42V19Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M42 34H6V44H42V34Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M21 9H27",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),m.createElement("path",{d:"M21 24H27",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}),m.createElement("path",{d:"M21 39H27",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}))}),XV=Gt("tumblr",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.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]}))}),qV=Gt("concern",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.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}),m.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}),m.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}),m.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}))}),YV=Gt("iphone",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.createElement("rect",{x:"11",y:"4",width:"26",height:"40",rx:"3",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth}),m.createElement("path",{d:"M22 10L26 10",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M20 38H28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),ZV=Gt("computer",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.createElement("rect",{x:"19",y:"32",width:"10",height:"9",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("rect",{x:"5",y:"8",width:"38",height:"24",rx:"2",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth}),m.createElement("path",{d:"M22 27H26",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M14 41L34 41",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),QV=Gt("tips",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.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}),m.createElement("path",{d:"M18 17V23L24 20L30 23V17",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),JV=Gt("return",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.createElement("path",{d:"M12.9998 8L6 14L12.9998 21",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.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}))}),eW=Gt("loading-three",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.createElement("path",{d:"M24 12V15",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M32.4852 15.5147L30.3639 17.636",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M36 24H33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M32.4852 32.4853L30.3639 30.364",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M24 36V33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M15.5148 32.4853L17.6361 30.364",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M12 24H15",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M15.5148 15.5147L17.6361 17.636",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),tW=Gt("loading",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.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}))}),nW=Gt("info",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.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]}),m.createElement("path",{d:"M24.5 34V20H23.5H22.5",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M21 34H28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),rW=Gt("help",!0,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.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}),m.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]}))}),oW=Gt("distraught-face",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.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}),m.createElement("path",{d:"M32 17L29 20L32 23",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M16 17L19 20L16 23",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),aW=Gt("config",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.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}),m.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}))}),iW=Gt("close",!1,function(e){return m.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},m.createElement("path",{d:"M8 8L40 40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),m.createElement("path",{d:"M8 40L40 8",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),sW={Close:iW,Config:aW,DistraughtFace:oW,Help:rW,Info:nW,Loading:tW,LoadingThree:eW,Return:JV,Tips:QV,Computer:ZV,Iphone:YV,Concern:qV,Tumblr:XV,FileCabinet:UV,Star:KV,EfferentFour:GV,Copy:WV,DislikeTwo:VV,Unlike:HV,PlayTwo:BV,AddTwo:zV,Delete:jV,PeopleDelete:DV,PeopleMinus:FV,PeopleSearch:LV,Split:AV,Fire:NV,TrendTwo:kV};function Dt({name:e,theme:t,size:n,fill:r,...o}){t||(t="outline"),n||(n=24),r||(r="currentColor");const a=sW[e];return F(a,{theme:t,size:n,fill:r,...o,style:{fontSize:0,...o.style}})}var t2=function(e){return function(t,n){var r=m.useRef(!1);e(function(){return function(){r.current=!1;}},[]),e(function(){if(!r.current)r.current=!0;else return t()},n);}},Dr=function(){return Dr=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},Dr.apply(this,arguments)};function n2(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 lW(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 cW(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 Dh(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 ln(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 Fn(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 rs=function(e){return typeof e=="function"},uW=function(e){return typeof e=="string"},r2=function(e){return typeof e=="number"};function at(e){var t=m.useRef(e);t.current=m.useMemo(function(){return e},[e]);var n=m.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 yu=t2(m.useEffect);var o2=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=m.useRef(!1);return u.current=!1,yu(function(){!n&&o&&(u.current=!0,e.run.apply(e,Fn([],ln(i),!1)));},[o]),yu(function(){u.current||n||(u.current=!0,c?c():e.refresh());},Fn([],ln(l),!1)),{onBefore:function(){if(!o)return {stopNow:!0}}}};o2.onInit=function(e){var t=e.ready,n=t===void 0?!0:t,r=e.manual;return {loading:!r&&n}};const fW=o2;function jh(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 a2(e,t){var n=m.useRef({deps:t,obj:void 0,initialized:!1}).current;return (n.initialized===!1||!jh(n.deps,t))&&(n.deps=t,n.obj=e(),n.initialized=!0),n.obj}function ki(e){var t=m.useRef(e);return t.current=e,t}var mW=function(e){var t=ki(e);m.useEffect(function(){return function(){t.current();}},[]);};const Ll=mW;var zc=new Map,hW=function(e,t,n){var r=zc.get(e);r!=null&&r.timer&&clearTimeout(r.timer);var o=void 0;t>-1&&(o=setTimeout(function(){zc.delete(e);},t)),zc.set(e,Dr(Dr({},n),{timer:o}));},gW=function(e){return zc.get(e)},Bc=new Map,vW=function(e){return Bc.get(e)},pW=function(e,t){Bc.set(e,t),t.then(function(n){return Bc.delete(e),n}).catch(function(){Bc.delete(e);});},na={},bW=function(e,t){na[e]&&na[e].forEach(function(n){return n(t)});},dm=function(e,t){return na[e]||(na[e]=[]),na[e].push(t),function(){var r=na[e].indexOf(t);na[e].splice(r,1);}},yW=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=m.useRef(),u=m.useRef(),d=function(h,g){s?s(g):hW(h,o,g),bW(h,g.data);},f=function(h,g){return g===void 0&&(g=[]),l?l(g):gW(h)};return a2(function(){if(n){var h=f(n);h&&Object.hasOwnProperty.call(h,"data")&&(e.state.data=h.data,e.state.params=h.params,(i===-1||new Date().getTime()-h.time<=i)&&(e.state.loading=!1)),c.current=dm(n,function(g){e.setState({data:g});});}},[]),Ll(function(){var h;(h=c.current)===null||h===void 0||h.call(c);}),n?{onBefore:function(h){var g=f(n,h);return !g||!Object.hasOwnProperty.call(g,"data")?{}:i===-1||new Date().getTime()-g.time<=i?{loading:!1,data:g==null?void 0:g.data,error:void 0,returnNow:!0}:{data:g==null?void 0:g.data,error:void 0}},onRequest:function(h,g){var v=vW(n);return v&&v!==u.current?{servicePromise:v}:(v=h.apply(void 0,Fn([],ln(g),!1)),u.current=v,pW(n,v),{servicePromise:v})},onSuccess:function(h,g){var v;n&&((v=c.current)===null||v===void 0||v.call(c),d(n,{data:h,params:g,time:new Date().getTime()}),c.current=dm(n,function(p){e.setState({data:p});}));},onMutate:function(h){var g;n&&((g=c.current)===null||g===void 0||g.call(c),d(n,{data:h,params:e.state.params,time:new Date().getTime()}),c.current=dm(n,function(v){e.setState({data:v});}));}}:{}};const CW=yW;var SW=function(e,t){var n=t.debounceWait,r=t.debounceLeading,o=t.debounceTrailing,a=t.debounceMaxWait,i=m.useRef(),s=m.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 m.useEffect(function(){if(n){var l=e.runAsync.bind(e);return i.current=D5(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,f){var h;(h=i.current)===null||h===void 0||h.call(i,function(){l.apply(void 0,Fn([],ln(c),!1)).then(d).catch(f);});})},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 wW=SW;var $W=function(e,t){var n=t.loadingDelay,r=t.ready,o=m.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 xW=$W;var EW=!!(typeof window<"u"&&window.document&&window.document.createElement);const Fl=EW;function dp(){return Fl?document.visibilityState!=="hidden":!0}var As=[];function IW(e){return As.push(e),function(){var n=As.indexOf(e);As.splice(n,1);}}if(Fl){var PW=function(){if(dp())for(var e=0;e<As.length;e++){var t=As[e];t();}};window.addEventListener("visibilitychange",PW,!1);}var OW=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=m.useRef(),l=m.useRef(),c=m.useRef(0),u=function(){var d;s.current&&clearTimeout(s.current),(d=l.current)===null||d===void 0||d.call(l);};return yu(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&&!dp()?l.current=IW(function(){e.refresh();}):e.refresh();},n):c.current=0;},onCancel:function(){u();}}:{}};const MW=OW;function RW(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,Fn([],ln(r),!1)),setTimeout(function(){n=!1;},t));}}function TW(){return Fl&&typeof navigator.onLine<"u"?navigator.onLine:!0}var Ls=[];function _W(e){return Ls.push(e),function(){var n=Ls.indexOf(e);n>-1&&Ls.splice(n,1);}}if(Fl){var Fy=function(){if(!(!dp()||!TW()))for(var e=0;e<Ls.length;e++){var t=Ls[e];t();}};window.addEventListener("visibilitychange",Fy,!1),window.addEventListener("focus",Fy,!1);}var kW=function(e,t){var n=t.refreshOnWindowFocus,r=t.focusTimespan,o=r===void 0?5e3:r,a=m.useRef(),i=function(){var s;(s=a.current)===null||s===void 0||s.call(a);};return m.useEffect(function(){if(n){var s=RW(e.refresh.bind(e),o);a.current=_W(function(){s();});}return function(){i();}},[n,o]),Ll(function(){i();}),{}};const NW=kW;var AW=function(e,t){var n=t.retryInterval,r=t.retryCount,o=m.useRef(),a=m.useRef(0),i=m.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 LW=AW;var FW=function(e,t){var n=t.throttleWait,r=t.throttleLeading,o=t.throttleTrailing,a=m.useRef(),i={};return r!==void 0&&(i.leading=r),o!==void 0&&(i.trailing=o),m.useEffect(function(){if(n){var s=e.runAsync.bind(e);return a.current=KS(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 f;(f=a.current)===null||f===void 0||f.call(a,function(){s.apply(void 0,Fn([],ln(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 DW=FW;var jW=function(e){m.useEffect(function(){e==null||e();},[]);};const Dl=jW;var zW=function(){var e=ln(m.useState({}),2),t=e[1];return m.useCallback(function(){return t({})},[])};const BW=zW;var HW=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=Dr(Dr(Dr({},this.state),{loading:!n.manual}),o);}return e.prototype.setState=function(t){t===void 0&&(t={}),this.state=Dr(Dr({},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,Fn([a],ln(n),!1))}).filter(Boolean);return Object.assign.apply(Object,Fn([{}],ln(o),!1))},e.prototype.runAsync=function(){for(var t,n,r,o,a,i,s,l,c,u,d=[],f=0;f<arguments.length;f++)d[f]=arguments[f];return lW(this,void 0,void 0,function(){var h,g,v,p,b,y,C,w,x,E,S;return cW(this,function($){switch($.label){case 0:if(this.count+=1,h=this.count,g=this.runPluginHandler("onBefore",d),v=g.stopNow,p=v===void 0?!1:v,b=g.returnNow,y=b===void 0?!1:b,C=n2(g,["stopNow","returnNow"]),p)return [2,new Promise(function(){})];if(this.setState(Dr({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),$.label=1;case 1:return $.trys.push([1,3,,4]),w=this.runPluginHandler("onRequest",this.serviceRef.current,d).servicePromise,w||(w=(S=this.serviceRef).current.apply(S,Fn([],ln(d),!1))),[4,w];case 2:return x=$.sent(),h!==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),h===this.count&&this.runPluginHandler("onFinally",d,x,void 0),[2,x]);case 3:if(E=$.sent(),h!==this.count)return [2,new Promise(function(){})];throw this.setState({error:E,loading:!1}),(l=(s=this.options).onError)===null||l===void 0||l.call(s,E,d),this.runPluginHandler("onError",E,d),(u=(c=this.options).onFinally)===null||u===void 0||u.call(c,d,void 0,E),h===this.count&&this.runPluginHandler("onFinally",d,void 0,E),E;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,Fn([],ln(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,Fn([],ln(this.state.params||[]),!1));},e.prototype.refreshAsync=function(){return this.runAsync.apply(this,Fn([],ln(this.state.params||[]),!1))},e.prototype.mutate=function(t){var n=rs(t)?t(this.state.data):t;this.runPluginHandler("onMutate",n),this.setState({data:n});},e}();const VW=HW;function WW(e,t,n){t===void 0&&(t={}),n===void 0&&(n=[]);var r=t.manual,o=r===void 0?!1:r,a=n2(t,["manual"]);var i=Dr({manual:o},a),s=ki(e),l=BW(),c=a2(function(){var u=n.map(function(d){var f;return (f=d==null?void 0:d.onInit)===null||f===void 0?void 0:f.call(d,i)}).filter(Boolean);return new VW(s,i,l,Object.assign.apply(Object,Fn([{}],ln(u),!1)))},[]);return c.options=i,c.pluginImpls=n.map(function(u){return u(c,i)}),Dl(function(){if(!o){var u=c.state.params||t.defaultParams||[];c.run.apply(c,Fn([],ln(u),!1));}}),Ll(function(){c.cancel();}),{loading:c.state.loading,data:c.state.data,error:c.state.error,params:c.state.params||[],cancel:at(c.cancel.bind(c)),refresh:at(c.refresh.bind(c)),refreshAsync:at(c.refreshAsync.bind(c)),run:at(c.run.bind(c)),runAsync:at(c.runAsync.bind(c)),mutate:at(c.mutate.bind(c))}}function i2(e,t,n){return WW(e,t,Fn(Fn([],ln(n||[]),!1),[wW,xW,MW,NW,DW,fW,CW,LW],!1))}function s2(e,t){e===void 0&&(e=!1);var n=ln(m.useState(e),2),r=n[0],o=n[1],a=m.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 GW(e){e===void 0&&(e=!1);var t=ln(s2(!!e),2),n=t[0],r=t[1],o=r.toggle,a=r.set,i=m.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 ef(e,t){if(Fl){if(!e)return t;var n;return rs(e)?n=e():"current"in e?n=e.current:n=e,n}}var KW=function(e){var t=function(n,r,o){var a=m.useRef(!1),i=m.useRef([]),s=m.useRef([]),l=m.useRef();e(function(){var c,u=Array.isArray(o)?o:[o],d=u.map(function(f){return ef(f)});if(!a.current){a.current=!0,i.current=d,s.current=r,l.current=n();return}(d.length!==i.current.length||!jh(d,i.current)||!jh(r,s.current))&&((c=l.current)===null||c===void 0||c.call(l),i.current=d,s.current=r,l.current=n());}),Ll(function(){var c;(c=l.current)===null||c===void 0||c.call(l),a.current=!1;});};return t};const UW=KW;var XW=UW(m.useEffect);const l2=XW;var qW="__lodash_hash_undefined__";function YW(e){return this.__data__.set(e,qW),this}var ZW=YW;function QW(e){return this.__data__.has(e)}var JW=QW,eG=Ug,tG=ZW,nG=JW;function Cu(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new eG;++t<n;)this.add(e[t]);}Cu.prototype.add=Cu.prototype.push=tG;Cu.prototype.has=nG;var c2=Cu;function rG(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 oG=rG;function aG(e,t){return e.has(t)}var u2=aG,iG=c2,sG=oG,lG=u2,cG=1,uG=2;function dG(e,t,n,r,o,a){var i=n&cG,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,f=!0,h=n&uG?new iG:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var g=e[d],v=t[d];if(r)var p=i?r(v,g,d,t,e,a):r(g,v,d,e,t,a);if(p!==void 0){if(p)continue;f=!1;break}if(h){if(!sG(t,function(b,y){if(!lG(h,y)&&(g===b||o(g,b,n,r,a)))return h.push(y)})){f=!1;break}}else if(!(g===v||o(g,v,n,r,a))){f=!1;break}}return a.delete(e),a.delete(t),f}var d2=dG;function fG(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r];}),n}var mG=fG;function hG(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r;}),n}var fp=hG,Dy=Vi,jy=kS,gG=Gg,vG=d2,pG=mG,bG=fp,yG=1,CG=2,SG="[object Boolean]",wG="[object Date]",$G="[object Error]",xG="[object Map]",EG="[object Number]",IG="[object RegExp]",PG="[object Set]",OG="[object String]",MG="[object Symbol]",RG="[object ArrayBuffer]",TG="[object DataView]",zy=Dy?Dy.prototype:void 0,fm=zy?zy.valueOf:void 0;function _G(e,t,n,r,o,a,i){switch(n){case TG:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return !1;e=e.buffer,t=t.buffer;case RG:return !(e.byteLength!=t.byteLength||!a(new jy(e),new jy(t)));case SG:case wG:case EG:return gG(+e,+t);case $G:return e.name==t.name&&e.message==t.message;case IG:case OG:return e==t+"";case xG:var s=pG;case PG:var l=r&yG;if(s||(s=bG),e.size!=t.size&&!l)return !1;var c=i.get(e);if(c)return c==t;r|=CG,i.set(e,t);var u=vG(s(e),s(t),r,o,a,i);return i.delete(e),u;case MG:if(fm)return fm.call(e)==fm.call(t)}return !1}var kG=_G,By=MS,NG=1,AG=Object.prototype,LG=AG.hasOwnProperty;function FG(e,t,n,r,o,a){var i=n&NG,s=By(e),l=s.length,c=By(t),u=c.length;if(l!=u&&!i)return !1;for(var d=l;d--;){var f=s[d];if(!(i?f in t:LG.call(t,f)))return !1}var h=a.get(e),g=a.get(t);if(h&&g)return h==t&&g==e;var v=!0;a.set(e,t),a.set(t,e);for(var p=i;++d<l;){f=s[d];var b=e[f],y=t[f];if(r)var C=i?r(y,b,f,t,e,a):r(b,y,f,e,t,a);if(!(C===void 0?b===y||o(b,y,n,r,a):C)){v=!1;break}p||(p=f=="constructor");}if(v&&!p){var w=e.constructor,x=t.constructor;w!=x&&"constructor"in e&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof x=="function"&&x instanceof x)&&(v=!1);}return a.delete(e),a.delete(t),v}var DG=FG,mm=Xg,jG=d2,zG=kG,BG=DG,Hy=md,Vy=Wr,Wy=Zg,HG=SS,VG=1,Gy="[object Arguments]",Ky="[object Array]",xc="[object Object]",WG=Object.prototype,Uy=WG.hasOwnProperty;function GG(e,t,n,r,o,a){var i=Vy(e),s=Vy(t),l=i?Ky:Hy(e),c=s?Ky:Hy(t);l=l==Gy?xc:l,c=c==Gy?xc:c;var u=l==xc,d=c==xc,f=l==c;if(f&&Wy(e)){if(!Wy(t))return !1;i=!0,u=!1;}if(f&&!u)return a||(a=new mm),i||HG(e)?jG(e,t,n,r,o,a):zG(e,t,l,n,r,o,a);if(!(n&VG)){var h=u&&Uy.call(e,"__wrapped__"),g=d&&Uy.call(t,"__wrapped__");if(h||g){var v=h?e.value():e,p=g?t.value():t;return a||(a=new mm),o(v,p,n,r,a)}}return f?(a||(a=new mm),BG(e,t,n,r,o,a)):!1}var KG=GG,UG=KG,Xy=Wo;function f2(e,t,n,r,o){return e===t?!0:e==null||t==null||!Xy(e)&&!Xy(t)?e!==e&&t!==t:UG(e,t,n,r,f2,o)}var mp=f2,XG=mp;function qG(e,t){return XG(e,t)}var YG=qG;const ZG=Sn(YG);var QG=function(e,t){return e===void 0&&(e=[]),t===void 0&&(t=[]),ZG(e,t)};function zo(e,t,n){n===void 0&&(n={});var r=ki(t);l2(function(){var o=ef(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 m2(e){var t=ln(m.useState(e),2),n=t[0],r=t[1],o=m.useRef(n);o.current=n;var a=m.useCallback(function(){return o.current},[]);return [n,r,a]}const hm=function(e,t){var n=t||{},r=n.onEnter,o=n.onLeave,a=n.onChange,i=ln(GW(!1),2),s=i[0],l=i[1],c=l.setTrue,u=l.setFalse;return zo("mouseenter",function(){r==null||r(),c(),a==null||a(!0);},{target:e}),zo("mouseleave",function(){o==null||o(),u(),a==null||a(!1);},{target:e}),s};var JG=function(e,t,n){var r=m.useRef(),o=m.useRef(0);QG(t,r.current)||(r.current=t,o.current+=1),l2(e,[o.current],n);};const eK=JG;var tK=/(mac|iphone|ipod|ipad)/i.test(typeof navigator<"u"?navigator==null?void 0:navigator.platform:"");const nK=tK;var h2={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:nK?[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},zh={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"?h2.meta.includes(e.keyCode):e.metaKey}};function rK(e){var t=Object.keys(zh).reduce(function(n,r){return zh[r](e)?n+1:n},0);return [16,17,18,91,92].includes(e.keyCode)?t:t+1}function qy(e,t,n){var r,o;if(!e.key)return !1;if(r2(t))return e.keyCode===t;var a=t.split("."),i=0;try{for(var s=Dh(a),l=s.next();!l.done;l=s.next()){var c=l.value,u=zh[c],d=h2[c.toLowerCase()];(u&&u(e)||d&&d===e.keyCode)&&i++;}}catch(f){r={error:f};}finally{try{l&&!l.done&&(o=s.return)&&o.call(s);}finally{if(r)throw r.error}}return n?i===a.length&&rK(e)===a.length:i===a.length}function oK(e,t){return rs(e)?e:uW(e)||r2(e)?function(n){return qy(n,e,t)}:Array.isArray(e)?function(n){return e.some(function(r){return qy(n,r,t)})}:function(){return !!e}}var aK=["keydown"];function fn(e,t,n){var r=n||{},o=r.events,a=o===void 0?aK:o,i=r.target,s=r.exactMatch,l=s===void 0?!1:s,c=r.useCapture,u=c===void 0?!1:c,d=ki(t),f=ki(e);eK(function(){var h,g,v,p=ef(i,window);if(p){var b=function(x){var E,S=oK(f.current,l);if(S(x))return (E=d.current)===null||E===void 0?void 0:E.call(d,x)};try{for(var y=Dh(a),C=y.next();!C.done;C=y.next()){var w=C.value;(v=p==null?void 0:p.addEventListener)===null||v===void 0||v.call(p,w,b,u);}}catch(x){h={error:x};}finally{try{C&&!C.done&&(g=y.return)&&g.call(y);}finally{if(h)throw h.error}}return function(){var x,E,S;try{for(var $=Dh(a),I=$.next();!I.done;I=$.next()){var P=I.value;(S=p==null?void 0:p.removeEventListener)===null||S===void 0||S.call(p,P,b,u);}}catch(R){x={error:R};}finally{try{I&&!I.done&&(E=$.return)&&E.call($);}finally{if(x)throw x.error}}}}},[a],i);}function g2(e){var t=m.useRef(0),n=ln(m.useState(e),2),r=n[0],o=n[1],a=m.useCallback(function(i){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){o(i);});},[]);return Ll(function(){cancelAnimationFrame(t.current);}),[r,a]}var iK={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 sK=function(e){var t=ln(g2(iK),2),n=t[0],r=t[1];return zo("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},f=ef(e);if(f){var h=f.getBoundingClientRect(),g=h.left,v=h.top,p=h.width,b=h.height;d.elementPosX=g+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 lK=function(e,t){return !Object.is(e,t)};function cK(e,t){t===void 0&&(t=lK);var n=m.useRef(),r=m.useRef();return t(r.current,e)&&(n.current=r.current,r.current=e),n.current}var uK=function(){var e=m.useRef(!1);return m.useEffect(function(){return e.current=!1,function(){e.current=!0;}},[]),e};const dK=uK,fK=t2(m.useLayoutEffect),mK="_modal-mask_1j5wc_1",hK="_modal_1j5wc_1",gK="_modal-header_1j5wc_23",vK="_modal-body_1j5wc_30",pK="_modal-title_1j5wc_35",bK="_btn-close_1j5wc_42",mr={modalMask:mK,modal:hK,modalHeader:gK,modalBody:vK,modalTitle:pK,btnClose:bK};let Es=0;const yK=()=>{Es++,document.body.style.overflow="hidden";},CK=()=>{Es--,Es<0&&(Es=0),Es===0&&(document.body.style.overflow="");};function tf({show:e,onHide:t,children:n,styleModalMask:r,clsModalMask:o,styleModal:a,clsModal:i,width:s,hideWhenMaskOnClick:l=!1,hideWhenEsc:c=!1}){m.useLayoutEffect(()=>{e?yK():CK();},[e]);const u=m.useRef(null),d=Vv(),{bg:f,c:h}=m.useMemo(()=>{const y=window.getComputedStyle(document.body).backgroundColor,C=window.getComputedStyle(document.body).color;return {bg:y,c:C}},[d]),g=m.useMemo(()=>d?{"--bg":f,"--c":h,backgroundColor:f,color:h}:{},[f,h,d]),v=m.useId(),p=m.useMemo(()=>{const y=document.createElement("div");return y.classList.add(Oa),y.setAttribute("data-id","base-modal-"+v),document.body.appendChild(y),y},[]),b=at(y=>{var w;const C=y.target;(w=u.current)!=null&&w.contains(C)||C.closest('.ant-tooltip-inner[role="tooltip"]')||C.closest('.ant-popover-inner[role="tooltip"]')||l&&t();});return fn("esc",y=>{e&&c&&(y.preventDefault(),y.stopImmediatePropagation(),setTimeout(t));}),e?HC.createPortal(F("div",{className:W(mr.modalMask,o),style:r,onClick:b,children:F("div",{className:W(mr.modal,i),style:{...g,width:s,...a},ref:u,children:n})}),p):null}const nf=e=>F(Dt,{...e,name:"Close",size:18,style:{cursor:"pointer",marginLeft:10,...e.style}});function hp(e){const t=gr({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(gr(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 SK(e){const t=gr({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 Pr,Yt,sn,Ao,fl,Lo,ml,Bh,ur,Nr,Wu,v2,hl,Hh,gl,Vh,vl,Wh,Gu,p2,pl,Gh;class wK extends Map{constructor(n={}){super();yn(this,ml);yn(this,ur);yn(this,Wu);yn(this,hl);yn(this,gl);yn(this,vl);yn(this,Gu);yn(this,pl);yn(this,Pr,0);yn(this,Yt,new Map);yn(this,sn,new Map);yn(this,Ao,void 0);yn(this,fl,void 0);yn(this,Lo,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");Ht(this,Ao,n.maxSize),Ht(this,fl,n.maxAge||Number.POSITIVE_INFINITY),Ht(this,Lo,n.onEviction);}get __oldCache(){return ze(this,sn)}get(n){if(ze(this,Yt).has(n)){const r=ze(this,Yt).get(n);return tn(this,hl,Hh).call(this,n,r)}if(ze(this,sn).has(n)){const r=ze(this,sn).get(n);if(tn(this,ur,Nr).call(this,n,r)===!1)return tn(this,Gu,p2).call(this,n,r),r.value}}set(n,r,{maxAge:o=ze(this,fl)}={}){const a=typeof o=="number"&&o!==Number.POSITIVE_INFINITY?Date.now()+o:void 0;return ze(this,Yt).has(n)?ze(this,Yt).set(n,{value:r,expiry:a}):tn(this,vl,Wh).call(this,n,{value:r,expiry:a}),this}has(n){return ze(this,Yt).has(n)?!tn(this,ur,Nr).call(this,n,ze(this,Yt).get(n)):ze(this,sn).has(n)?!tn(this,ur,Nr).call(this,n,ze(this,sn).get(n)):!1}peek(n){if(ze(this,Yt).has(n))return tn(this,gl,Vh).call(this,n,ze(this,Yt));if(ze(this,sn).has(n))return tn(this,gl,Vh).call(this,n,ze(this,sn))}delete(n){const r=ze(this,Yt).delete(n);return r&&kf(this,Pr)._--,ze(this,sn).delete(n)||r}clear(){ze(this,Yt).clear(),ze(this,sn).clear(),Ht(this,Pr,0);}resize(n){if(!(n&&n>0))throw new TypeError("`maxSize` must be a number greater than 0");const r=[...tn(this,pl,Gh).call(this)],o=r.length-n;o<0?(Ht(this,Yt,new Map(r)),Ht(this,sn,new Map),Ht(this,Pr,r.length)):(o>0&&tn(this,ml,Bh).call(this,r.slice(0,o)),Ht(this,sn,new Map(r.slice(o))),Ht(this,Yt,new Map),Ht(this,Pr,0)),Ht(this,Ao,n);}*keys(){for(const[n]of this)yield n;}*values(){for(const[,n]of this)yield n;}*[Symbol.iterator](){for(const n of ze(this,Yt)){const[r,o]=n;tn(this,ur,Nr).call(this,r,o)===!1&&(yield [r,o.value]);}for(const n of ze(this,sn)){const[r,o]=n;ze(this,Yt).has(r)||tn(this,ur,Nr).call(this,r,o)===!1&&(yield [r,o.value]);}}*entriesDescending(){let n=[...ze(this,Yt)];for(let r=n.length-1;r>=0;--r){const o=n[r],[a,i]=o;tn(this,ur,Nr).call(this,a,i)===!1&&(yield [a,i.value]);}n=[...ze(this,sn)];for(let r=n.length-1;r>=0;--r){const o=n[r],[a,i]=o;ze(this,Yt).has(a)||tn(this,ur,Nr).call(this,a,i)===!1&&(yield [a,i.value]);}}*entriesAscending(){for(const[n,r]of tn(this,pl,Gh).call(this))yield [n,r.value];}get size(){if(!ze(this,Pr))return ze(this,sn).size;let n=0;for(const r of ze(this,sn).keys())ze(this,Yt).has(r)||n++;return Math.min(ze(this,Pr)+n,ze(this,Ao))}get maxSize(){return ze(this,Ao)}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()])}}Pr=new WeakMap,Yt=new WeakMap,sn=new WeakMap,Ao=new WeakMap,fl=new WeakMap,Lo=new WeakMap,ml=new WeakSet,Bh=function(n){if(typeof ze(this,Lo)=="function")for(const[r,o]of n)ze(this,Lo).call(this,r,o.value);},ur=new WeakSet,Nr=function(n,r){return typeof r.expiry=="number"&&r.expiry<=Date.now()?(typeof ze(this,Lo)=="function"&&ze(this,Lo).call(this,n,r.value),this.delete(n)):!1},Wu=new WeakSet,v2=function(n,r){if(tn(this,ur,Nr).call(this,n,r)===!1)return r.value},hl=new WeakSet,Hh=function(n,r){return r.expiry?tn(this,Wu,v2).call(this,n,r):r.value},gl=new WeakSet,Vh=function(n,r){const o=r.get(n);return tn(this,hl,Hh).call(this,n,o)},vl=new WeakSet,Wh=function(n,r){ze(this,Yt).set(n,r),kf(this,Pr)._++,ze(this,Pr)>=ze(this,Ao)&&(Ht(this,Pr,0),tn(this,ml,Bh).call(this,ze(this,sn)),Ht(this,sn,ze(this,Yt)),Ht(this,Yt,new Map));},Gu=new WeakSet,p2=function(n,r){ze(this,sn).delete(n),tn(this,vl,Wh).call(this,n,r);},pl=new WeakSet,Gh=function*(){for(const n of ze(this,sn)){const[r,o]=n;ze(this,Yt).has(r)||tn(this,ur,Nr).call(this,r,o)===!1&&(yield n);}for(const n of ze(this,Yt)){const[r,o]=n;tn(this,ur,Nr).call(this,r,o)===!1&&(yield n);}};async function $K(e){return (await rn.get("/x/player/videoshot",{params:{aid:e,index:"1"}})).data.data}async function xK(e){return []}const gm=new wK({maxSize:1e3});async function EK(e){if(gm.has(e))return gm.get(e);const[t,n]=await Promise.all([$K(e),xK()]);return gm.set(e,{pvideoData:t,dmData:n}),{pvideoData:t,dmData:n}}function b2(e){return async function(n){const r=new URLSearchParams({aid:n,csrf:Zi()}),a=(await rn.post("/x/v2/history/toview/"+e,r)).data,i=Gr(a);return i||Pt((a==null?void 0:a.message)||"出错了"),i}}const gs=b2("add"),Yy=b2("del"),y2=e=>{const t={dislike:"/x/feed/dislike",cancel:"/x/feed/dislike/cancel"}[e];return async function(n,r){const a=(await vd.get(qS+t,{params:{goto:n.goto,id:n.param,reason_id:r,build:"1",mobi_app:"android",idx:(Date.now()/1e3).toFixed(0)}})).data;return Gr(a)}},IK=y2("dislike"),PK=y2("cancel"),OK="_modal_1rloz_1",MK="_title-desc_1rloz_4",RK="_reason-list_1rloz_8",TK="_reason_1rloz_8",_K="_active_1rloz_29",kK="_reason-no_1rloz_33",NK="_tips-container_1rloz_47",AK="_tips_1rloz_47",xr={modal:OK,titleDesc:MK,reasonList:RK,reason:TK,active:_K,reasonNo:kK,tipsContainer:NK,tips:AK},rf=SK();function LK(){return yr(rf)}function FK(e){const t=LK();if(e)return t.get(e)}function DK({show:e,onHide:t,item:n}){const[r,o]=m.useState(!1),a=at(async h=>{if(!n)return;let g=!1,v;try{o(!0),g=await IK(n,h.id);}catch(p){v=p;}finally{o(!1);}if(v)return console.error(v.stack||v),lw();g?Pt("已标记不想看"):cw(),g&&(rf.set(n.param,{...h}),t());}),i=m.useMemo(()=>{var h;return ((h=n==null?void 0:n.three_point)==null?void 0:h.dislike_reasons)||[]},[n]),s=()=>!!e&&!!n,l=["1","2","3","4","5","6"];fn(l,h=>{if(!s()||!l.includes(h.key))return;const g=Number(h.key)-1;u(g);const v=document.querySelectorAll(`.${xr.reason}`)[g]||null;v==null||v.click();});const[c,u]=m.useState(i.length-1);fK(()=>{u(i.length-1);},[i]);const d=h=>()=>{if(!s())return;const g=c+h;g<0||g>i.length-1||u(g);};fn("leftarrow",d(-1),{exactMatch:!0}),fn("rightarrow",d(1),{exactMatch:!0}),fn("uparrow",d(-2),{exactMatch:!0}),fn("downarrow",d(2),{exactMatch:!0}),fn("enter",h=>{var g;s()&&(c<0||c>i.length-1||(h.preventDefault(),h.stopImmediatePropagation(),(g=document.querySelector(`.${xr.reason}.${xr.active}`))==null||g.click()));},{exactMatch:!0});const f=m.useMemo(()=>{var h;return ((h=i[c])==null?void 0:h.name)||""},[i,c]);return be(tf,{show:e,onHide:t,clsModal:xr.modal,hideWhenMaskOnClick:!0,hideWhenEsc:!0,children:[be("div",{className:mr.modalHeader,children:[be("div",{className:mr.modalTitle,children:["我不想看",F("span",{className:xr.titleDesc,children:"(选择后将减少相似内容推荐)"})]}),F("div",{className:"space",style:{flex:1}}),F(nf,{onClick:t})]}),be("div",{className:mr.modalBody,children:[F("div",{className:xr.reasonList,children:i.map((h,g)=>be("button",{className:W(xr.reason,{[xr.active]:g===c}),style:{...g===c&&{borderColor:so}},"data-id":h.id,onClick:()=>{u(g),a(h);},disabled:r,children:[F("span",{className:xr.reasonNo,style:{backgroundColor:so},children:g+1}),h.name]},h.id))}),be("div",{className:xr.tipsContainer,children:[be("div",{className:xr.tips,children:[F(Dt,{name:"Info",size:15,style:{marginRight:5}}),"使用删除键打开弹窗, 数字键选择, Esc 关闭"]}),f&&be("div",{className:xr.tips,children:[F(Dt,{name:"Info",size:15,style:{marginRight:5}}),"已选择「",f,"」, 回车键提交"]})]})]})]})}const Hc={show:!1,onHide:S2,item:null},C2=gr({value:Hc.show}),jK=function(){return yr(C2).value};function S2(){setTimeout(()=>{w2({show:!1,item:null});});}function w2(e){Object.assign(Hc,e),C2.value=Hc.show,zK().render(F(DK,{...Hc,onHide:S2}));}let Zy;function zK(){return Zy||(Zy=(()=>{const e=document.createElement("div");return e.classList.add("show-dislike-container",Oa),document.body.appendChild(e),Al(e)})()),Zy}function BK(e){e!=null&&e.param&&rf.has(e.param)||w2({show:!0,item:e});}var HK=`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`,VK=`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`,WK="".concat(HK," ").concat(VK).split(/[\s\n]+/),GK="aria-",KK="data-";function Qy(e,t){return e.indexOf(t)===0}function Ni(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"||Qy(o,GK))||n.data&&Qy(o,KK)||n.attr&&WK.includes(o))&&(r[o]=e[o]);}),r}const $2=m__namespace.createContext(null),UK=$2.Provider,x2=m__namespace.createContext(null),XK=x2.Provider;var qK=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],E2=m.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,f=d===void 0?"checkbox":d,h=e.title,g=e.onChange,v=et(e,qK),p=m.useRef(null),b=qt(u,{value:s}),y=Z(b,2),C=y[0],w=y[1];m.useImperativeHandle(t,function(){return {focus:function(){var $;($=p.current)===null||$===void 0||$.focus();},blur:function(){var $;($=p.current)===null||$===void 0||$.blur();},input:p.current}});var x=W(o,a,(n={},z(n,"".concat(o,"-checked"),C),z(n,"".concat(o,"-disabled"),l),n)),E=function($){l||("checked"in e||w($.target.checked),g==null||g({target:U(U({},e),{},{type:f,checked:$.target.checked}),stopPropagation:function(){$.stopPropagation();},preventDefault:function(){$.preventDefault();},nativeEvent:$.nativeEvent}));};return m__namespace.createElement("span",{className:x,title:h,style:i},m__namespace.createElement("input",Ie({},v,{className:"".concat(o,"-input"),ref:p,onChange:E,disabled:l,checked:!!C,type:f})),m__namespace.createElement("span",{className:"".concat(o,"-inner")}))});const YK=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(",")}}}}},ZK=Kt("Wave",e=>[YK(e)]);function Qn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Qn=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(_,O,T){_[O]=T.value;},a=typeof Symbol=="function"?Symbol:{},i=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function c(_,O,T){return Object.defineProperty(_,O,{value:T,enumerable:!0,configurable:!0,writable:!0}),_[O]}try{c({},"");}catch{c=function(T,D,j){return T[D]=j};}function u(_,O,T,D){var j=O&&O.prototype instanceof b?O:b,B=Object.create(j.prototype),H=new A(D||[]);return o(B,"_invoke",{value:P(_,T,H)}),B}function d(_,O,T){try{return {type:"normal",arg:_.call(O,T)}}catch(D){return {type:"throw",arg:D}}}t.wrap=u;var f="suspendedStart",h="suspendedYield",g="executing",v="completed",p={};function b(){}function y(){}function C(){}var w={};c(w,i,function(){return this});var x=Object.getPrototypeOf,E=x&&x(x(L([])));E&&E!==n&&r.call(E,i)&&(w=E);var S=C.prototype=b.prototype=Object.create(w);function $(_){["next","throw","return"].forEach(function(O){c(_,O,function(T){return this._invoke(O,T)});});}function I(_,O){function T(j,B,H,G){var K=d(_[j],_,B);if(K.type!=="throw"){var X=K.arg,Y=X.value;return Y&&it(Y)=="object"&&r.call(Y,"__await")?O.resolve(Y.__await).then(function(ee){T("next",ee,H,G);},function(ee){T("throw",ee,H,G);}):O.resolve(Y).then(function(ee){X.value=ee,H(X);},function(ee){return T("throw",ee,H,G)})}G(K.arg);}var D;o(this,"_invoke",{value:function(B,H){function G(){return new O(function(K,X){T(B,H,K,X);})}return D=D?D.then(G,G):G()}});}function P(_,O,T){var D=f;return function(j,B){if(D===g)throw new Error("Generator is already running");if(D===v){if(j==="throw")throw B;return {value:e,done:!0}}for(T.method=j,T.arg=B;;){var H=T.delegate;if(H){var G=R(H,T);if(G){if(G===p)continue;return G}}if(T.method==="next")T.sent=T._sent=T.arg;else if(T.method==="throw"){if(D===f)throw D=v,T.arg;T.dispatchException(T.arg);}else T.method==="return"&&T.abrupt("return",T.arg);D=g;var K=d(_,O,T);if(K.type==="normal"){if(D=T.done?v:h,K.arg===p)continue;return {value:K.arg,done:T.done}}K.type==="throw"&&(D=v,T.method="throw",T.arg=K.arg);}}}function R(_,O){var T=O.method,D=_.iterator[T];if(D===e)return O.delegate=null,T==="throw"&&_.iterator.return&&(O.method="return",O.arg=e,R(_,O),O.method==="throw")||T!=="return"&&(O.method="throw",O.arg=new TypeError("The iterator does not provide a '"+T+"' method")),p;var j=d(D,_.iterator,O.arg);if(j.type==="throw")return O.method="throw",O.arg=j.arg,O.delegate=null,p;var B=j.arg;return B?B.done?(O[_.resultName]=B.value,O.next=_.nextLoc,O.method!=="return"&&(O.method="next",O.arg=e),O.delegate=null,p):B:(O.method="throw",O.arg=new TypeError("iterator result is not an object"),O.delegate=null,p)}function M(_){var O={tryLoc:_[0]};1 in _&&(O.catchLoc=_[1]),2 in _&&(O.finallyLoc=_[2],O.afterLoc=_[3]),this.tryEntries.push(O);}function k(_){var O=_.completion||{};O.type="normal",delete O.arg,_.completion=O;}function A(_){this.tryEntries=[{tryLoc:"root"}],_.forEach(M,this),this.reset(!0);}function L(_){if(_||_===""){var O=_[i];if(O)return O.call(_);if(typeof _.next=="function")return _;if(!isNaN(_.length)){var T=-1,D=function j(){for(;++T<_.length;)if(r.call(_,T))return j.value=_[T],j.done=!1,j;return j.value=e,j.done=!0,j};return D.next=D}}throw new TypeError(it(_)+" 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(_){var O=typeof _=="function"&&_.constructor;return !!O&&(O===y||(O.displayName||O.name)==="GeneratorFunction")},t.mark=function(_){return Object.setPrototypeOf?Object.setPrototypeOf(_,C):(_.__proto__=C,c(_,l,"GeneratorFunction")),_.prototype=Object.create(S),_},t.awrap=function(_){return {__await:_}},$(I.prototype),c(I.prototype,s,function(){return this}),t.AsyncIterator=I,t.async=function(_,O,T,D,j){j===void 0&&(j=Promise);var B=new I(u(_,O,T,D),j);return t.isGeneratorFunction(O)?B:B.next().then(function(H){return H.done?H.value:B.next()})},$(S),c(S,l,"Generator"),c(S,i,function(){return this}),c(S,"toString",function(){return "[object Generator]"}),t.keys=function(_){var O=Object(_),T=[];for(var D in O)T.push(D);return T.reverse(),function j(){for(;T.length;){var B=T.pop();if(B in O)return j.value=B,j.done=!1,j}return j.done=!0,j}},t.values=L,A.prototype={constructor:A,reset:function(O){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),!O)for(var T in this)T.charAt(0)==="t"&&r.call(this,T)&&!isNaN(+T.slice(1))&&(this[T]=e);},stop:function(){this.done=!0;var O=this.tryEntries[0].completion;if(O.type==="throw")throw O.arg;return this.rval},dispatchException:function(O){if(this.done)throw O;var T=this;function D(X,Y){return H.type="throw",H.arg=O,T.next=X,Y&&(T.method="next",T.arg=e),!!Y}for(var j=this.tryEntries.length-1;j>=0;--j){var B=this.tryEntries[j],H=B.completion;if(B.tryLoc==="root")return D("end");if(B.tryLoc<=this.prev){var G=r.call(B,"catchLoc"),K=r.call(B,"finallyLoc");if(G&&K){if(this.prev<B.catchLoc)return D(B.catchLoc,!0);if(this.prev<B.finallyLoc)return D(B.finallyLoc)}else if(G){if(this.prev<B.catchLoc)return D(B.catchLoc,!0)}else {if(!K)throw new Error("try statement without catch or finally");if(this.prev<B.finallyLoc)return D(B.finallyLoc)}}}},abrupt:function(O,T){for(var D=this.tryEntries.length-1;D>=0;--D){var j=this.tryEntries[D];if(j.tryLoc<=this.prev&&r.call(j,"finallyLoc")&&this.prev<j.finallyLoc){var B=j;break}}B&&(O==="break"||O==="continue")&&B.tryLoc<=T&&T<=B.finallyLoc&&(B=null);var H=B?B.completion:{};return H.type=O,H.arg=T,B?(this.method="next",this.next=B.finallyLoc,p):this.complete(H)},complete:function(O,T){if(O.type==="throw")throw O.arg;return O.type==="break"||O.type==="continue"?this.next=O.arg:O.type==="return"?(this.rval=this.arg=O.arg,this.method="return",this.next="end"):O.type==="normal"&&T&&(this.next=T),p},finish:function(O){for(var T=this.tryEntries.length-1;T>=0;--T){var D=this.tryEntries[T];if(D.finallyLoc===O)return this.complete(D.completion,D.afterLoc),k(D),p}},catch:function(O){for(var T=this.tryEntries.length-1;T>=0;--T){var D=this.tryEntries[T];if(D.tryLoc===O){var j=D.completion;if(j.type==="throw"){var B=j.arg;k(D);}return B}}throw new Error("illegal catch attempt")},delegateYield:function(O,T,D){return this.delegate={iterator:L(O),resultName:T,nextLoc:D},this.method==="next"&&(this.arg=e),p}},t}function Jy(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 Na(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(l){Jy(a,r,o,i,s,"next",l);}function s(l){Jy(a,r,o,i,s,"throw",l);}i(void 0);})}}var jl=U({},HC__namespace),QK=jl.version,JK=jl.render,eU=jl.unmountComponentAtNode,of;try{var tU=Number((QK||"").split(".")[0]);tU>=18&&(of=jl.createRoot);}catch{}function e1(e){var t=jl.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&it(t)==="object"&&(t.usingClientEntryPoint=e);}var Su="__rc_react_root__";function nU(e,t){e1(!0);var n=t[Su]||of(t);e1(!1),n.render(e),t[Su]=n;}function rU(e,t){JK(e,t);}function oU(e,t){if(of){nU(e,t);return}rU(e,t);}function aU(e){return Kh.apply(this,arguments)}function Kh(){return Kh=Na(Qn().mark(function e(t){return Qn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[Su])===null||o===void 0||o.unmount(),delete t[Su];}));case 1:case"end":return r.stop()}},e)})),Kh.apply(this,arguments)}function iU(e){eU(e);}function sU(e){return Uh.apply(this,arguments)}function Uh(){return Uh=Na(Qn().mark(function e(t){return Qn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(of===void 0){r.next=2;break}return r.abrupt("return",aU(t));case 2:iU(t);case 3:case"end":return r.stop()}},e)})),Uh.apply(this,arguments)}function lU(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 vm(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&lU(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function cU(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return vm(t)?t:vm(n)?n:vm(r)?r:null}const af="ant-wave-target";function pm(e){return Number.isNaN(e)?0:e}const uU=e=>{const{className:t,target:n,component:r}=e,o=m__namespace.useRef(null),[a,i]=m__namespace.useState(null),[s,l]=m__namespace.useState([]),[c,u]=m__namespace.useState(0),[d,f]=m__namespace.useState(0),[h,g]=m__namespace.useState(0),[v,p]=m__namespace.useState(0),[b,y]=m__namespace.useState(!1),C={left:c,top:d,width:h,height:v,borderRadius:s.map(E=>`${E}px`).join(" ")};a&&(C["--wave-color"]=a);function w(){const E=getComputedStyle(n);i(cU(n));const S=E.position==="static",{borderLeftWidth:$,borderTopWidth:I}=E;u(S?n.offsetLeft:pm(-parseFloat($))),f(S?n.offsetTop:pm(-parseFloat(I))),g(n.offsetWidth),p(n.offsetHeight);const{borderTopLeftRadius:P,borderTopRightRadius:R,borderBottomLeftRadius:M,borderBottomRightRadius:k}=E;l([P,R,k,M].map(A=>pm(parseFloat(A))));}if(m__namespace.useEffect(()=>{if(n){const E=Mt(()=>{w(),y(!0);});let S;return typeof ResizeObserver<"u"&&(S=new ResizeObserver(w),S.observe(n)),()=>{Mt.cancel(E),S==null||S.disconnect();}}},[]),!b)return null;const x=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(af));return m__namespace.createElement(Io,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(E,S)=>{var $;if(S.deadline||S.propertyName==="opacity"){const I=($=o.current)===null||$===void 0?void 0:$.parentElement;sU(I).then(()=>{I==null||I.remove();});}return !1}},E=>{let{className:S}=E;return m__namespace.createElement("div",{ref:o,className:W(t,{"wave-quick":x},S),style:C})})},dU=(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),oU(m__namespace.createElement(uU,Object.assign({},t,{target:e})),o);},fU=dU;function mU(e,t,n){const{wave:r}=m__namespace.useContext(tt),[,o,a]=rr(),i=Ln(c=>{const u=e.current;if(r!=null&&r.disabled||!u)return;const d=u.querySelector(`.${af}`)||u,{showEffect:f}=r||{};(f||fU)(d,{className:t,token:o,component:n,event:c,hashId:a});}),s=m__namespace.useRef();return c=>{Mt.cancel(s.current),s.current=Mt(()=>{i(c);});}}const hU=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=m.useContext(tt),a=m.useRef(null),i=o("wave"),[,s]=ZK(i),l=mU(a,W(i,s),r);if(m.useEffect(()=>{const u=a.current;if(!u||u.nodeType!==1||n)return;const d=f=>{!Ev(f.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||l(f);};return u.addEventListener("click",d,!0),()=>{u.removeEventListener("click",d,!0);}},[n]),!m.isValidElement(t))return t??null;const c=Ko(t)?Jn(t.ref,a):a;return Zn(t,{ref:c})},zl=hU;var sa="RC_FORM_INTERNAL_HOOKS",Vt=function(){$n(!1,"Can not find FormContext. Please make sure you wrap Field under Form.");},Ai=m__namespace.createContext({getFieldValue:Vt,getFieldsValue:Vt,getFieldError:Vt,getFieldWarning:Vt,getFieldsError:Vt,isFieldsTouched:Vt,isFieldTouched:Vt,isFieldValidating:Vt,isFieldsValidating:Vt,resetFields:Vt,setFields:Vt,setFieldValue:Vt,setFieldsValue:Vt,validateFields:Vt,submit:Vt,getInternalHooks:function(){return Vt(),{dispatch:Vt,initEntityValue:Vt,registerField:Vt,useSubscribe:Vt,setInitialValues:Vt,destroyForm:Vt,setCallbacks:Vt,registerWatch:Vt,getFields:Vt,setValidateMessages:Vt,setPreserve:Vt,getInitialValue:Vt}}}),wu=m__namespace.createContext(null);function Xh(e){return e==null?[]:Array.isArray(e)?e:[e]}function gU(e){return e&&!!e._init}function la(){return la=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},la.apply(this,arguments)}function vU(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ol(e,t);}function qh(e){return qh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},qh(e)}function ol(e,t){return ol=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},ol(e,t)}function pU(){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 Vc(e,t,n){return pU()?Vc=Reflect.construct.bind():Vc=function(o,a,i){var s=[null];s.push.apply(s,a);var l=Function.bind.apply(o,s),c=new l;return i&&ol(c,i.prototype),c},Vc.apply(null,arguments)}function bU(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Yh(e){var t=typeof Map=="function"?new Map:void 0;return Yh=function(r){if(r===null||!bU(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 Vc(r,arguments,qh(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),ol(o,r)},Yh(e)}var yU=/%[sdj%]/g,CU=function(){};function Zh(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 dr(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(yU,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 SU(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Cn(e,t){return !!(e==null||t==="array"&&Array.isArray(e)&&!e.length||SU(t)&&typeof e=="string"&&!e)}function wU(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 t1(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 $U(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[]);}),t}var n1=function(e){vU(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}(Yh(Error));function xU(e,t,n,r,o){if(t.first){var a=new Promise(function(f,h){var g=function(b){return r(b),b.length?h(new n1(b,Zh(b))):f(o)},v=$U(e);t1(v,n,g);});return a.catch(function(f){return f}),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(f,h){var g=function(p){if(u.push.apply(u,p),c++,c===l)return r(u),u.length?h(new n1(u,Zh(u))):f(o)};s.length||(r(u),f(o)),s.forEach(function(v){var p=e[v];i.indexOf(v)!==-1?t1(p,n,g):wU(p,n,g);});});return d.catch(function(f){return f}),d}function EU(e){return !!(e&&e.message!==void 0)}function IU(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]];}return n}function r1(e,t){return function(n){var r;return e.fullFields?r=IU(t,e.fullFields):r=t[n.field||e.fullField],EU(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 o1(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]=la({},e[n],r):e[n]=r;}}return e}var I2=function(t,n,r,o,a,i){t.required&&(!r.hasOwnProperty(t.field)||Cn(n,i||t.type))&&o.push(dr(a.messages.required,t.fullField));},PU=function(t,n,r,o,a){(/^\s+$/.test(n)||n==="")&&o.push(dr(a.messages.whitespace,t.fullField));},Ec,OU=function(){if(Ec)return Ec;var e="[a-fA-F\\d:]",t=function(w){return w&&w.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(w){return w&&w.exact?a:new RegExp("(?:"+t(w)+n+t(w)+")|(?:"+t(w)+o+t(w)+")","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,f=l.v6().source,h="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",g="(?:\\.(?:[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+"|"+f+"|"+h+g+v+")"+p+b;return Ec=new RegExp("(?:^"+y+"$)","i"),Ec},a1={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},Is={integer:function(t){return Is.number(t)&&parseInt(t,10)===t},float:function(t){return Is.number(t)&&!Is.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"&&!Is.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(a1.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(OU())},hex:function(t){return typeof t=="string"&&!!t.match(a1.hex)}},MU=function(t,n,r,o,a){if(t.required&&n===void 0){I2(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?Is[s](n)||o.push(dr(a.messages.types[s],t.fullField,t.type)):s&&typeof n!==t.type&&o.push(dr(a.messages.types[s],t.fullField,t.type));},RU=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,f=typeof n=="number",h=typeof n=="string",g=Array.isArray(n);if(f?d="number":h?d="string":g&&(d="array"),!d)return !1;g&&(u=n.length),h&&(u=n.replace(c,"_").length),i?u!==t.len&&o.push(dr(a.messages[d].len,t.fullField,t.len)):s&&!l&&u<t.min?o.push(dr(a.messages[d].min,t.fullField,t.min)):l&&!s&&u>t.max?o.push(dr(a.messages[d].max,t.fullField,t.max)):s&&l&&(u<t.min||u>t.max)&&o.push(dr(a.messages[d].range,t.fullField,t.min,t.max));},Ga="enum",TU=function(t,n,r,o,a){t[Ga]=Array.isArray(t[Ga])?t[Ga]:[],t[Ga].indexOf(n)===-1&&o.push(dr(a.messages[Ga],t.fullField,t[Ga].join(", ")));},_U=function(t,n,r,o,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(dr(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(dr(a.messages.pattern.mismatch,t.fullField,n,t.pattern));}}},Ot={required:I2,whitespace:PU,type:MU,range:RU,enum:TU,pattern:_U},kU=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Cn(n,"string")&&!t.required)return r();Ot.required(t,n,o,i,a,"string"),Cn(n,"string")||(Ot.type(t,n,o,i,a),Ot.range(t,n,o,i,a),Ot.pattern(t,n,o,i,a),t.whitespace===!0&&Ot.whitespace(t,n,o,i,a));}r(i);},NU=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Cn(n)&&!t.required)return r();Ot.required(t,n,o,i,a),n!==void 0&&Ot.type(t,n,o,i,a);}r(i);},AU=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),Cn(n)&&!t.required)return r();Ot.required(t,n,o,i,a),n!==void 0&&(Ot.type(t,n,o,i,a),Ot.range(t,n,o,i,a));}r(i);},LU=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Cn(n)&&!t.required)return r();Ot.required(t,n,o,i,a),n!==void 0&&Ot.type(t,n,o,i,a);}r(i);},FU=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Cn(n)&&!t.required)return r();Ot.required(t,n,o,i,a),Cn(n)||Ot.type(t,n,o,i,a);}r(i);},DU=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Cn(n)&&!t.required)return r();Ot.required(t,n,o,i,a),n!==void 0&&(Ot.type(t,n,o,i,a),Ot.range(t,n,o,i,a));}r(i);},jU=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Cn(n)&&!t.required)return r();Ot.required(t,n,o,i,a),n!==void 0&&(Ot.type(t,n,o,i,a),Ot.range(t,n,o,i,a));}r(i);},zU=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();Ot.required(t,n,o,i,a,"array"),n!=null&&(Ot.type(t,n,o,i,a),Ot.range(t,n,o,i,a));}r(i);},BU=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Cn(n)&&!t.required)return r();Ot.required(t,n,o,i,a),n!==void 0&&Ot.type(t,n,o,i,a);}r(i);},HU="enum",VU=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Cn(n)&&!t.required)return r();Ot.required(t,n,o,i,a),n!==void 0&&Ot[HU](t,n,o,i,a);}r(i);},WU=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Cn(n,"string")&&!t.required)return r();Ot.required(t,n,o,i,a),Cn(n,"string")||Ot.pattern(t,n,o,i,a);}r(i);},GU=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Cn(n,"date")&&!t.required)return r();if(Ot.required(t,n,o,i,a),!Cn(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),Ot.type(t,l,o,i,a),l&&Ot.range(t,l.getTime(),o,i,a);}}r(i);},KU=function(t,n,r,o,a){var i=[],s=Array.isArray(n)?"array":typeof n;Ot.required(t,n,o,i,a,s),r(i);},bm=function(t,n,r,o,a){var i=t.type,s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Cn(n,i)&&!t.required)return r();Ot.required(t,n,o,s,a,i),Cn(n,i)||Ot.type(t,n,o,s,a);}r(s);},UU=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Cn(n)&&!t.required)return r();Ot.required(t,n,o,i,a);}r(i);},Fs={string:kU,method:NU,number:AU,boolean:LU,regexp:FU,integer:DU,float:jU,array:zU,object:BU,enum:VU,pattern:WU,date:GU,url:bm,hex:bm,email:bm,required:KU,any:UU};function Qh(){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 Jh=Qh(),Bl=function(){function e(n){this.rules=null,this._messages=Jh,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=o1(Qh(),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(w){if(Array.isArray(w)){var x;p=(x=p).concat.apply(x,w);}else p.push(w);}for(var C=0;C<v.length;C++)y(v[C]);p.length?(b=Zh(p),c(p,b)):c(null,s);}if(l.messages){var d=this.messages();d===Jh&&(d=Qh()),o1(d,l.messages),l.messages=d;}else l.messages=this.messages();var f={},h=l.keys||Object.keys(this.rules);h.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=la({},s)),b=s[v]=C.transform(b)),typeof C=="function"?C={validator:C}:C=la({},C),C.validator=i.getValidationMethod(C),C.validator&&(C.field=v,C.fullField=C.fullField||v,C.type=i.getType(C),f[v]=f[v]||[],f[v].push({rule:C,value:b,source:s,field:v}));});});var g={};return xU(f,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(E,S){return la({},S,{fullField:b.fullField+"."+E,fullFields:b.fullFields?[].concat(b.fullFields,[E]):[E]})}function w(E){E===void 0&&(E=[]);var S=Array.isArray(E)?E:[E];!l.suppressWarning&&S.length&&e.warning("async-validator:",S),S.length&&b.message!==void 0&&(S=[].concat(b.message));var $=S.map(r1(b,s));if(l.first&&$.length)return g[b.field]=1,p($);if(!y)p($);else {if(b.required&&!v.value)return b.message!==void 0?$=[].concat(b.message).map(r1(b,s)):l.error&&($=[l.error(b,dr(l.messages.required,b.field))]),p($);var I={};b.defaultField&&Object.keys(v.value).map(function(M){I[M]=b.defaultField;}),I=la({},I,v.rule.fields);var P={};Object.keys(I).forEach(function(M){var k=I[M],A=Array.isArray(k)?k:[k];P[M]=A.map(C.bind(null,M));});var R=new e(P);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(M){var k=[];$&&$.length&&k.push.apply(k,$),M&&M.length&&k.push.apply(k,M),p(k.length?k:null);});}}var x;if(b.asyncValidator)x=b.asyncValidator(b,v.value,w,v.source,l);else if(b.validator){try{x=b.validator(b,v.value,w,v.source,l);}catch(E){console.error==null||console.error(E),l.suppressValidatorError||setTimeout(function(){throw E},0),w(E.message);}x===!0?w():x===!1?w(typeof b.message=="function"?b.message(b.fullField||b.field):b.message||(b.fullField||b.field)+" fails"):x instanceof Array?w(x):x instanceof Error&&w(x.message);}x&&x.then&&x.then(function(){return w()},function(E){return w(E)});},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&&!Fs.hasOwnProperty(r.type))throw new Error(dr("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"?Fs.required:Fs[this.getType(r)]||void 0},e}();Bl.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Fs[t]=n;};Bl.warning=CU;Bl.messages=Jh;Bl.validators=Fs;var lr="'${name}' is not a valid ${type}",P2={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:lr,method:lr,array:lr,object:lr,number:lr,date:lr,boolean:lr,integer:lr,float:lr,regexp:lr,email:lr,url:lr,hex:lr},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}"}},i1=Bl;function XU(e,t){return e.replace(/\$\{\w+\}/g,function(n){var r=n.slice(2,-1);return t[r]})}var s1="CODE_LOGIC_ERROR";function eg(e,t,n,r,o){return tg.apply(this,arguments)}function tg(){return tg=Na(Qn().mark(function e(t,n,r,o,a){var i,s,l,c,u,d,f,h,g;return Qn().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return i=U({},r),delete i.ruleIndex,i1.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(s1)}}),l=null,i&&i.type==="array"&&i.defaultField&&(l=i.defaultField,delete i.defaultField),c=new i1(z({},t,[i])),u=ci(P2,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,w=C===s1?u.default:C;return m__namespace.isValidElement(w)?m__namespace.cloneElement(w,{key:"error_".concat(y)}):w}));case 18:if(!(!d.length&&l)){p.next=23;break}return p.next=21,Promise.all(n.map(function(b,y){return eg("".concat(t,".").concat(y),b,l,o,a)}));case 21:return f=p.sent,p.abrupt("return",f.reduce(function(b,y){return [].concat(Te(b),Te(y))},[]));case 23:return h=U(U({},r),{},{name:t,enum:(r.enum||[]).join(", ")},a),g=d.map(function(b){return typeof b=="string"?XU(b,h):b}),p.abrupt("return",g);case 26:case"end":return p.stop()}},e,null,[[10,15]])})),tg.apply(this,arguments)}function qU(e,t,n,r,o,a){var i=e.join("."),s=n.map(function(u,d){var f=u.validator,h=U(U({},u),{},{ruleIndex:d});return f&&(h.validator=function(g,v,p){var b=!1,y=function(){for(var x=arguments.length,E=new Array(x),S=0;S<x;S++)E[S]=arguments[S];Promise.resolve().then(function(){$n(!b,"Your validator function has already return a promise. `callback` will be ignored."),b||p.apply(void 0,E);});},C=f(g,v,y);b=C&&typeof C.then=="function"&&typeof C.catch=="function",$n(b,"`callback` is deprecated. Please return a promise instead."),b&&C.then(function(){p();}).catch(function(w){p(w||" ");});}),h}).sort(function(u,d){var f=u.warningOnly,h=u.ruleIndex,g=d.warningOnly,v=d.ruleIndex;return !!f==!!g?h-v:f?1:-1}),l;if(o===!0)l=new Promise(function(){var u=Na(Qn().mark(function d(f,h){var g,v,p;return Qn().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:g=0;case 1:if(!(g<s.length)){y.next=12;break}return v=s[g],y.next=5,eg(i,t,v,r,a);case 5:if(p=y.sent,!p.length){y.next=9;break}return h([{errors:p,rule:v}]),y.abrupt("return");case 9:g+=1,y.next=1;break;case 12:f([]);case 13:case"end":return y.stop()}},d)}));return function(d,f){return u.apply(this,arguments)}}());else {var c=s.map(function(u){return eg(i,t,u,r,a).then(function(d){return {errors:d,rule:u}})});l=(o?ZU(c):YU(c)).then(function(u){return Promise.reject(u)});}return l.catch(function(u){return u}),l}function YU(e){return ng.apply(this,arguments)}function ng(){return ng=Na(Qn().mark(function e(t){return Qn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(o){var a,i=(a=[]).concat.apply(a,Te(o));return i}));case 1:case"end":return r.stop()}},e)})),ng.apply(this,arguments)}function ZU(e){return rg.apply(this,arguments)}function rg(){return rg=Na(Qn().mark(function e(t){var n;return Qn().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return n=0,o.abrupt("return",new Promise(function(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)})),rg.apply(this,arguments)}function dn(e){return Xh(e)}function l1(e,t){var n={};return t.forEach(function(r){var o=jr(e,r);n=Fr(n,r,o);}),n}function vi(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return O2(t,r,n)})}function O2(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 QU(e,t){if(e===t)return !0;if(!e&&t||e&&!t||!e||!t||it(e)!=="object"||it(t)!=="object")return !1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return Te(o).every(function(a){var i=e[a],s=t[a];return typeof i=="function"&&typeof s=="function"?!0:i===s})}function JU(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&it(t.target)==="object"&&e in t.target?t.target[e]:t}function c1(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(Te(e.slice(0,n)),[o],Te(e.slice(n,t)),Te(e.slice(t+1,r))):a<0?[].concat(Te(e.slice(0,t)),Te(e.slice(t+1,n+1)),[o],Te(e.slice(n+1,r))):e}var eX=["name"],Er=[];function u1(e,t,n,r,o,a){return typeof e=="function"?e(t,n,"source"in a?{source:a.source}:{}):r!==o}var gp=function(e){Uo(n,e);var t=Xo(n);function n(r){var o;if(En(this,n),o=t.call(this,r),z(Ge(o),"state",{resetCount:0}),z(Ge(o),"cancelRegisterFunc",null),z(Ge(o),"mounted",!1),z(Ge(o),"touched",!1),z(Ge(o),"dirty",!1),z(Ge(o),"validatePromise",void 0),z(Ge(o),"prevValidating",void 0),z(Ge(o),"errors",Er),z(Ge(o),"warnings",Er),z(Ge(o),"cancelRegister",function(){var l=o.props,c=l.preserve,u=l.isListField,d=l.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(u,c,dn(d)),o.cancelRegisterFunc=null;}),z(Ge(o),"getNamePath",function(){var l=o.props,c=l.name,u=l.fieldContext,d=u.prefixName,f=d===void 0?[]:d;return c!==void 0?[].concat(Te(f),Te(c)):[]}),z(Ge(o),"getRules",function(){var l=o.props,c=l.rules,u=c===void 0?[]:c,d=l.fieldContext;return u.map(function(f){return typeof f=="function"?f(d):f})}),z(Ge(o),"refresh",function(){o.mounted&&o.setState(function(l){var c=l.resetCount;return {resetCount:c+1}});}),z(Ge(o),"metaCache",null),z(Ge(o),"triggerMetaEvent",function(l){var c=o.props.onMetaChange;if(c){var u=U(U({},o.getMeta()),{},{destroy:l});El(o.metaCache,u)||c(u),o.metaCache=u;}else o.metaCache=null;}),z(Ge(o),"onStoreChange",function(l,c,u){var d=o.props,f=d.shouldUpdate,h=d.dependencies,g=h===void 0?[]:h,v=d.onReset,p=u.store,b=o.getNamePath(),y=o.getValue(l),C=o.getValue(p),w=c&&vi(c,b);switch(u.type==="valueUpdate"&&u.source==="external"&&y!==C&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=Er,o.warnings=Er,o.triggerMetaEvent()),u.type){case"reset":if(!c||w){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=Er,o.warnings=Er,o.triggerMetaEvent(),v==null||v(),o.refresh();return}break;case"remove":{if(f){o.reRender();return}break}case"setField":{var x=u.data;if(w){"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||Er),"warnings"in x&&(o.warnings=x.warnings||Er),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in x&&vi(c,b,!0)){o.reRender();return}if(f&&!b.length&&u1(f,l,p,y,C,u)){o.reRender();return}break}case"dependenciesUpdate":{var E=g.map(dn);if(E.some(function(S){return vi(u.relatedFields,S)})){o.reRender();return}break}default:if(w||(!g.length||b.length||f)&&u1(f,l,p,y,C,u)){o.reRender();return}break}f===!0&&o.reRender();}),z(Ge(o),"validateRules",function(l){var c=o.getNamePath(),u=o.getValue(),d=l||{},f=d.triggerName,h=d.validateOnly,g=h===void 0?!1:h,v=Promise.resolve().then(Na(Qn().mark(function p(){var b,y,C,w,x,E,S;return Qn().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,w=b.messageVariables,x=b.validateDebounce,E=o.getRules(),f&&(E=E.filter(function(P){return P}).filter(function(P){var R=P.validateTrigger;if(!R)return !0;var M=Xh(R);return M.includes(f)})),!(x&&f)){I.next=10;break}return I.next=8,new Promise(function(P){setTimeout(P,x);});case 8:if(o.validatePromise===v){I.next=10;break}return I.abrupt("return",[]);case 10:return S=qU(c,u,E,l,C,w),S.catch(function(P){return P}).then(function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Er;if(o.validatePromise===v){var R;o.validatePromise=null;var M=[],k=[];(R=P.forEach)===null||R===void 0||R.call(P,function(A){var L=A.rule.warningOnly,_=A.errors,O=_===void 0?Er:_;L?k.push.apply(k,Te(O)):M.push.apply(M,Te(O));}),o.errors=M,o.warnings=k,o.triggerMetaEvent(),o.reRender();}}),I.abrupt("return",S);case 13:case"end":return I.stop()}},p)})));return g||(o.validatePromise=v,o.dirty=!0,o.errors=Er,o.warnings=Er,o.triggerMetaEvent(),o.reRender()),v}),z(Ge(o),"isFieldValidating",function(){return !!o.validatePromise}),z(Ge(o),"isFieldTouched",function(){return o.touched}),z(Ge(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return !0;var l=o.props.fieldContext,c=l.getInternalHooks(sa),u=c.getInitialValue;return u(o.getNamePath())!==void 0}),z(Ge(o),"getErrors",function(){return o.errors}),z(Ge(o),"getWarnings",function(){return o.warnings}),z(Ge(o),"isListField",function(){return o.props.isListField}),z(Ge(o),"isList",function(){return o.props.isList}),z(Ge(o),"isPreserve",function(){return o.props.preserve}),z(Ge(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(Ge(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=vr(l);return u.length!==1||!m__namespace.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),z(Ge(o),"getValue",function(l){var c=o.props.fieldContext.getFieldsValue,u=o.getNamePath();return jr(l||c(!0),u)}),z(Ge(o),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=o.props,u=c.trigger,d=c.validateTrigger,f=c.getValueFromEvent,h=c.normalize,g=c.valuePropName,v=c.getValueProps,p=c.fieldContext,b=d!==void 0?d:p.validateTrigger,y=o.getNamePath(),C=p.getInternalHooks,w=p.getFieldsValue,x=C(sa),E=x.dispatch,S=o.getValue(),$=v||function(M){return z({},g,M)},I=l[u],P=U(U({},l),$(S));P[u]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var M,k=arguments.length,A=new Array(k),L=0;L<k;L++)A[L]=arguments[L];f?M=f.apply(void 0,A):M=JU.apply(void 0,[g].concat(A)),h&&(M=h(M,S,w(!0))),E({type:"updateValue",namePath:y,value:M}),I&&I.apply(void 0,A);};var R=Xh(b||[]);return R.forEach(function(M){var k=P[M];P[M]=function(){k&&k.apply(void 0,arguments);var A=o.props.rules;A&&A.length&&E({type:"validateField",namePath:y,triggerName:M});};}),P}),r.fieldContext){var a=r.fieldContext.getInternalHooks,i=a(sa),s=i.initEntityValue;s(Ge(o));}return o}return In(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(sa),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:m__namespace.isValidElement(s)?c=m__namespace.cloneElement(s,this.getControlled(s.props)):($n(!s,"`children` of Field is not validate ReactElement."),c=s),m__namespace.createElement(m__namespace.Fragment,{key:o},c)}}]),n}(m__namespace.Component);z(gp,"contextType",Ai);z(gp,"defaultProps",{trigger:"onChange",valuePropName:"value"});function M2(e){var t=e.name,n=et(e,eX),r=m__namespace.useContext(Ai),o=m__namespace.useContext(wu),a=t!==void 0?dn(t):void 0,i="keep";return n.isListField||(i="_".concat((a||[]).join("_"))),m__namespace.createElement(gp,Ie({key:i,name:a,isListField:!!o},n,{fieldContext:r}))}function tX(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,a=e.validateTrigger,i=e.isListField,s=m__namespace.useContext(Ai),l=m__namespace.useContext(wu),c=m__namespace.useRef({keys:[],id:0}),u=c.current,d=m__namespace.useMemo(function(){var v=dn(s.prefixName)||[];return [].concat(Te(v),Te(dn(t)))},[s.prefixName,t]),f=m__namespace.useMemo(function(){return U(U({},s),{},{prefixName:d})},[s,d]),h=m__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 $n(!1,"Form.List only accepts function as children."),null;var g=function(p,b,y){var C=y.source;return C==="internal"?!1:p!==b};return m__namespace.createElement(wu.Provider,{value:h},m__namespace.createElement(Ai.Provider,{value:f},m__namespace.createElement(M2,{name:[],shouldUpdate:g,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,w=s.getFieldValue,x=function(){var I=w(d||[]);return I||[]},E={add:function(I,P){var R=x();P>=0&&P<=R.length?(u.keys=[].concat(Te(u.keys.slice(0,P)),[u.id],Te(u.keys.slice(P))),C([].concat(Te(R.slice(0,P)),[I],Te(R.slice(P))))):(u.keys=[].concat(Te(u.keys),[u.id]),C([].concat(Te(R),[I]))),u.id+=1;},remove:function(I){var P=x(),R=new Set(Array.isArray(I)?I:[I]);R.size<=0||(u.keys=u.keys.filter(function(M,k){return !R.has(k)}),C(P.filter(function(M,k){return !R.has(k)})));},move:function(I,P){if(I!==P){var R=x();I<0||I>=R.length||P<0||P>=R.length||(u.keys=c1(u.keys,I,P),C(c1(R,I,P)));}}},S=y||[];return Array.isArray(S)||(S=[]),r(S.map(function($,I){var P=u.keys[I];return P===void 0&&(u.keys[I]=u.id,P=u.keys[I],u.id+=1),{name:I,key:P,isListField:!0}}),E,p)})))}function nX(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 R2="__@field_split__";function ym(e){return e.map(function(t){return "".concat(it(t),":").concat(t)}).join(R2)}var Ka=function(){function e(){En(this,e),z(this,"kvs",new Map);}return In(e,[{key:"set",value:function(n,r){this.kvs.set(ym(n),r);}},{key:"get",value:function(n){return this.kvs.get(ym(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(ym(n));}},{key:"map",value:function(n){return Te(this.kvs.entries()).map(function(r){var o=Z(r,2),a=o[0],i=o[1],s=a.split(R2);return n({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=Z(c,3),d=u[1],f=u[2];return d==="number"?Number(f):f}),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}(),rX=["name"],oX=In(function e(t){var n=this;En(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===sa?(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}):($n(!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=ci(r,n.store);(a=n.prevWithoutPreserves)===null||a===void 0||a.map(function(s){var l=s.key;i=Fr(i,l,jr(r,l));}),n.prevWithoutPreserves=null,n.updateStore(i);}}),z(this,"destroyForm",function(){var r=new Ka;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=jr(n.initialValues,r);return r.length?ci(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 Ka;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=dn(a);return o.get(i)||{INVALIDATE_NAME_PATH:dn(a)}})}),z(this,"getFieldsValue",function(r,o){n.warningUnhooked();var a,i,s;if(r===!0||Array.isArray(r)?(a=r,i=o):r&&it(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,f,h="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var g,v;if((g=(v=u).isList)!==null&&g!==void 0&&g.call(v))return}else if(!a&&(d=(f=u).isListField)!==null&&d!==void 0&&d.call(f))return;if(!i)c.push(h);else {var p="getMeta"in u?u.getMeta():null;i(p)&&c.push(h);}}),l1(n.store,c.map(dn))}),z(this,"getFieldValue",function(r){n.warningUnhooked();var o=dn(r);return jr(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:dn(r[i]),errors:[],warnings:[]}})}),z(this,"getFieldError",function(r){n.warningUnhooked();var o=dn(r),a=n.getFieldsError([o])[0];return a.errors}),z(this,"getFieldWarning",function(r){n.warningUnhooked();var o=dn(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(dn),c=!1):(l=null,c=i):(l=i.map(dn),c=s);var u=n.getFieldEntities(!0),d=function(p){return p.isFieldTouched()};if(!l)return c?u.every(d):u.some(d);var f=new Ka;l.forEach(function(v){f.set(v,[]);}),u.forEach(function(v){var p=v.getNamePath();l.forEach(function(b){b.every(function(y,C){return p[C]===y})&&f.update(b,function(y){return [].concat(Te(y),[v])});});});var h=function(p){return p.some(d)},g=f.map(function(v){var p=v.value;return p});return c?g.every(h):g.some(h)}),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(dn);return o.some(function(i){var s=i.getNamePath();return vi(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 Ka,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 f=u.getNamePath(),h=n.getInitialValue(f);if(h!==void 0)$n(!1,"Form already set 'initialValues' with path '".concat(f.join("."),"'. Field can not overwrite it."));else {var g=o.get(f);if(g&&g.size>1)$n(!1,"Multiple Field with path '".concat(f.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(g){var v=n.getFieldValue(f),p=u.isListField();!p&&(!r.skipExist||v===void 0)&&n.updateStore(Fr(n.store,f,Te(g)[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,Te(Te(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(ci(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var a=r.map(dn);a.forEach(function(i){var s=n.getInitialValue(i);n.updateStore(Fr(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=et(i,rX),c=dn(s);a.push(c),"value"in l&&n.updateStore(Fr(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=jr(n.store,a);i===void 0&&n.updateStore(Fr(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 !O2(d.getNamePath(),o)})){var u=n.store;n.updateStore(Fr(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(Te(a))}),a}),z(this,"updateValue",function(r,o){var a=dn(r),i=n.store;n.updateStore(Fr(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=l1(n.store,[a]);l(c,n.getFieldsValue());}n.triggerOnFieldsChange([a].concat(Te(s)));}),z(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var a=ci(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 Ka;n.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var d=dn(u);i.update(d,function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return f.add(l),f});});});var s=function l(c){var u=i.get(c)||new Set;u.forEach(function(d){if(!o.has(d)){o.add(d);var f=d.getNamePath();d.isFieldDirty()&&f.length&&(a.push(f),l(f));}});};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 Ka;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 vi(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(dn):[],c=[],u=String(Date.now()),d=new Set,f=i||{},h=f.recursive,g=f.dirty;n.getFieldEntities(!0).forEach(function(y){if(s||l.push(y.getNamePath()),!(!y.props.rules||!y.props.rules.length)&&!(g&&!y.isFieldDirty())){var C=y.getNamePath();if(d.add(C.join(u)),!s||vi(l,C,h)){var w=y.validateRules(U({validateMessages:U(U({},P2),n.validateMessages)},i));c.push(w.then(function(){return {name:C,errors:[],warnings:[]}}).catch(function(x){var E,S=[],$=[];return (E=x.forEach)===null||E===void 0||E.call(x,function(I){var P=I.rule.warningOnly,R=I.errors;P?$.push.apply($,Te(R)):S.push.apply(S,Te(R));}),S.length?Promise.reject({name:C,errors:S,warnings:$}):{name:C,errors:S,warnings:$}}));}}});var v=nX(c);n.lastValidatePromise=v,v.catch(function(y){return y}).then(function(y){var C=y.map(function(w){var x=w.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(w){return w&&w.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 T2(e){var t=m__namespace.useRef(),n=m__namespace.useState({}),r=Z(n,2),o=r[1];if(!t.current)if(e)t.current=e;else {var a=function(){o({});},i=new oX(a);t.current=i.getForm();}return [t.current]}var og=m__namespace.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),aX=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,a=t.children,i=m__namespace.useContext(og),s=m__namespace.useRef({});return m__namespace.createElement(og.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)},iX=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],sX=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,f=t.validateTrigger,h=f===void 0?"onChange":f,g=t.onValuesChange,v=t.onFieldsChange,p=t.onFinish,b=t.onFinishFailed,y=et(t,iX),C=m__namespace.useContext(og),w=T2(i),x=Z(w,1),E=x[0],S=E.getInternalHooks(sa),$=S.useSubscribe,I=S.setInitialValues,P=S.setCallbacks,R=S.setValidateMessages,M=S.setPreserve,k=S.destroyForm;m__namespace.useImperativeHandle(n,function(){return E}),m__namespace.useEffect(function(){return C.registerForm(r,E),function(){C.unregisterForm(r);}},[C,E,r]),R(U(U({},C.validateMessages),d)),P({onValuesChange:g,onFieldsChange:function(H){if(C.triggerFormChange(r,H),v){for(var G=arguments.length,K=new Array(G>1?G-1:0),X=1;X<G;X++)K[X-1]=arguments[X];v.apply(void 0,[H].concat(K));}},onFinish:function(H){C.triggerFormFinish(r,H),p&&p(H);},onFinishFailed:b}),M(s);var A=m__namespace.useRef(null);I(o,!A.current),A.current||(A.current=!0),m__namespace.useEffect(function(){return k},[]);var L,_=typeof l=="function";if(_){var O=E.getFieldsValue(!0);L=l(O,E);}else L=l;$(!_);var T=m__namespace.useRef();m__namespace.useEffect(function(){QU(T.current||[],a||[])||E.setFields(a||[]),T.current=a;},[a,E]);var D=m__namespace.useMemo(function(){return U(U({},E),{},{validateTrigger:h})},[E,h]),j=m__namespace.createElement(wu.Provider,{value:null},m__namespace.createElement(Ai.Provider,{value:D},L));return u===!1?j:m__namespace.createElement(u,Ie({},y,{onSubmit:function(H){H.preventDefault(),H.stopPropagation(),E.submit();},onReset:function(H){var G;H.preventDefault(),E.resetFields(),(G=y.onReset)===null||G===void 0||G.call(y,H);}}),j)};function d1(e){try{return JSON.stringify(e)}catch{return Math.random()}}function lX(){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=gU(i)?{form:i}:i,l=s.form,c=m.useState(),u=Z(c,2),d=u[0],f=u[1],h=m.useMemo(function(){return d1(d)},[d]),g=m.useRef(h);g.current=h;var v=m.useContext(Ai),p=l||v,b=p&&p._init,y=dn(o),C=m.useRef(y);return C.current=y,m.useEffect(function(){if(b){var w=p.getFieldsValue,x=p.getInternalHooks,E=x(sa),S=E.registerWatch,$=S(function(P,R){var M=jr(s.preserve?R:P,C.current),k=d1(M);g.current!==k&&(g.current=k,f(M));}),I=jr(s.preserve?w(!0):w(),C.current);return d!==I&&f(I),$}},[b]),d}var cX=m__namespace.forwardRef(sX),Hl=cX;Hl.FormProvider=aX;Hl.Field=M2;Hl.List=tX;Hl.useForm=T2;Hl.useWatch=lX;function Vn(e,t){var n=U({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r];}),n}const Mr=m__namespace.createContext({}),al=e=>{let{children:t,status:n,override:r}=e;const o=m.useContext(Mr),a=m.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 m__namespace.createElement(Mr.Provider,{value:a},t)},uX=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return {[r]:Object.assign(Object.assign({},jt(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"}})}},dX=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:f,colorTextDisabled:h,paddingXS:g,dotColorDisabled:v,lineType:p,radioDotDisabledSize:b,wireframe:y,colorWhite:C}=e,w=`${t}-inner`;return {[`${t}-wrapper`]:Object.assign(Object.assign({},jt(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({},jt(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,
        &:hover ${w}`]:{borderColor:r},[`${t}-input:focus-visible + ${w}`]:Object.assign({},wa(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`]:{[w]:{borderColor:r,backgroundColor:y?l:r,"&::after":{transform:`scale(${d/o})`,opacity:1,transition:`all ${a} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[w]:{backgroundColor:f,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:v}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:h,cursor:"not-allowed"},[`&${t}-checked`]:{[w]:{"&::after":{transform:`scale(${b/o})`}}}},[`span${t} + *`]:{paddingInlineStart:g,paddingInlineEnd:g}})}},fX=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:f,controlHeightLG:h,controlHeightSM:g,paddingXS:v,borderRadius:p,borderRadiusSM:b,borderRadiusLG:y,buttonCheckedBg:C,buttonSolidCheckedColor:w,colorTextDisabled:x,colorBgContainerDisabled:E,buttonCheckedBgDisabled:S,buttonCheckedColorDisabled:$,colorPrimary:I,colorPrimaryHover:P,colorPrimaryActive:R,buttonSolidCheckedBg:M,buttonSolidCheckedHoverBg:k,buttonSolidCheckedActiveBg:A}=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:h,fontSize:f,lineHeight:`${h-o*2}px`,"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},[`${r}-group-small &`]:{height:g,paddingInline:v-o,paddingBlock:0,lineHeight:`${g-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({},wa(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:P,borderColor:P,"&::before":{backgroundColor:P}},"&:active":{color:R,borderColor:R,"&::before":{backgroundColor:R}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:w,background:M,borderColor:M,"&:hover":{color:w,background:k,borderColor:k},"&:active":{color:w,background:A,borderColor:A}},"&-disabled":{color:x,backgroundColor:E,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:x,backgroundColor:E,borderColor:i}},[`&-disabled${r}-button-wrapper-checked`]:{color:$,backgroundColor:S,borderColor:i,boxShadow:"none"}}}},f1=e=>e-4*2,_2=Kt("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n,radioSize:r}=e,o=`0 0 0 ${n}px ${t}`,a=o,i=f1(r),s=Ct(e,{radioDotDisabledSize:i,radioFocusShadow:o,radioButtonFocusShadow:a});return [uX(s),dX(s),fX(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:f,colorPrimaryActive:h}=e,g=4,v=a,p=t?f1(v):v-(g+o)*2;return {radioSize:v,dotSize:p,dotColorDisabled:l,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:f,buttonSolidCheckedActiveBg:h,buttonBg:s,buttonCheckedBg:s,buttonColor:i,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:l,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r}});var mX=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 hX=(e,t)=>{var n,r;const o=m__namespace.useContext($2),a=m__namespace.useContext(x2),{getPrefixCls:i,direction:s,radio:l}=m__namespace.useContext(tt),c=m__namespace.useRef(null),u=Jn(t,c),{isFormItemInput:d}=m__namespace.useContext(Mr),f=R=>{var M,k;(M=e.onChange)===null||M===void 0||M.call(e,R),(k=o==null?void 0:o.onChange)===null||k===void 0||k.call(o,R);},{prefixCls:h,className:g,rootClassName:v,children:p,style:b}=e,y=mX(e,["prefixCls","className","rootClassName","children","style"]),C=i("radio",h),w=((o==null?void 0:o.optionType)||a)==="button",x=w?`${C}-button`:C,[E,S]=_2(C),$=Object.assign({},y),I=m__namespace.useContext(Kr);o&&($.name=o.name,$.onChange=f,$.checked=e.value===o.value,$.disabled=(n=$.disabled)!==null&&n!==void 0?n:o.disabled),$.disabled=(r=$.disabled)!==null&&r!==void 0?r:I;const P=W(`${x}-wrapper`,{[`${x}-wrapper-checked`]:$.checked,[`${x}-wrapper-disabled`]:$.disabled,[`${x}-wrapper-rtl`]:s==="rtl",[`${x}-wrapper-in-form-item`]:d},l==null?void 0:l.className,g,v,S);return E(m__namespace.createElement(zl,{component:"Radio",disabled:$.disabled},m__namespace.createElement("label",{className:P,style:Object.assign(Object.assign({},l==null?void 0:l.style),b),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},m__namespace.createElement(E2,Object.assign({},$,{className:W($.className,!w&&af),type:"radio",prefixCls:x,ref:u})),p!==void 0?m__namespace.createElement("span",null,p):null)))},gX=m__namespace.forwardRef(hX),$u=gX,vX=m__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=m__namespace.useContext(tt),[o,a]=qt(e.defaultValue,{value:e.value}),i=M=>{const k=o,A=M.target.value;"value"in e||a(A);const{onChange:L}=e;L&&A!==k&&L(M);},{prefixCls:s,className:l,rootClassName:c,options:u,buttonStyle:d="outline",disabled:f,children:h,size:g,style:v,id:p,onMouseEnter:b,onMouseLeave:y,onFocus:C,onBlur:w}=e,x=n("radio",s),E=`${x}-group`,[S,$]=_2(x);let I=h;u&&u.length>0&&(I=u.map(M=>typeof M=="string"||typeof M=="number"?m__namespace.createElement($u,{key:M.toString(),prefixCls:x,disabled:f,value:M,checked:o===M},M):m__namespace.createElement($u,{key:`radio-group-value-options-${M.value}`,prefixCls:x,disabled:M.disabled||f,value:M.value,checked:o===M.value,title:M.title,style:M.style,id:M.id,required:M.required},M.label)));const P=or(g),R=W(E,`${E}-${d}`,{[`${E}-${P}`]:P,[`${E}-rtl`]:r==="rtl"},l,c,$);return S(m__namespace.createElement("div",Object.assign({},Ni(e,{aria:!0,data:!0}),{className:R,style:v,onMouseEnter:b,onMouseLeave:y,onFocus:C,onBlur:w,id:p,ref:t}),m__namespace.createElement(UK,{value:{onChange:i,value:o,disabled:e.disabled,name:e.name,optionType:e.optionType}},I)))}),pX=m__namespace.memo(vX);var bX=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 yX=(e,t)=>{const{getPrefixCls:n}=m__namespace.useContext(tt),{prefixCls:r}=e,o=bX(e,["prefixCls"]),a=n("radio",r);return m__namespace.createElement(XK,{value:"button"},m__namespace.createElement($u,Object.assign({prefixCls:a},o,{type:"radio",ref:t})))},CX=m__namespace.forwardRef(yX),sf=$u;sf.Button=CX;sf.Group=pX;sf.__ANT_RADIO=!0;const m1=sf;function SX(e,t){const n=Object.keys(e),r=uv(JSON.parse(localStorage.getItem(t)||"{}"),n),o=gr({...e,...r});return pd(o,()=>{const a=qs(o);localStorage.setItem(t,JSON.stringify(a));}),o}const wX=m.createContext(null),k2=wX,$X=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return [{[`${t}-group`]:Object.assign(Object.assign({},jt(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},jt(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({},jt(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({},wa(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 xX(e,t){const n=Ct(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return [$X(n)]}const N2=Kt("Checkbox",(e,t)=>{let{prefixCls:n}=t;return [xX(n,e)]});var EX=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 IX=(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:f}=e,h=EX(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:g,direction:v,checkbox:p}=m__namespace.useContext(tt),b=m__namespace.useContext(k2),{isFormItemInput:y}=m__namespace.useContext(Mr),C=m__namespace.useContext(Kr),w=(n=(b==null?void 0:b.disabled)||f)!==null&&n!==void 0?n:C,x=m__namespace.useRef(h.value);m__namespace.useEffect(()=>{b==null||b.registerValue(h.value);},[]),m__namespace.useEffect(()=>{if(!d)return h.value!==x.current&&(b==null||b.cancelValue(x.current),b==null||b.registerValue(h.value),x.current=h.value),()=>b==null?void 0:b.cancelValue(h.value)},[h.value]);const E=g("checkbox",r),[S,$]=N2(E),I=Object.assign({},h);b&&!d&&(I.onChange=function(){h.onChange&&h.onChange.apply(h,arguments),b.toggleOption&&b.toggleOption({label:i,value:h.value});},I.name=b.name,I.checked=b.value.includes(h.value));const P=W(`${E}-wrapper`,{[`${E}-rtl`]:v==="rtl",[`${E}-wrapper-checked`]:I.checked,[`${E}-wrapper-disabled`]:w,[`${E}-wrapper-in-form-item`]:y},p==null?void 0:p.className,o,a,$),R=W({[`${E}-indeterminate`]:s},af,$),M=s?"mixed":void 0;return S(m__namespace.createElement(zl,{component:"Checkbox",disabled:w},m__namespace.createElement("label",{className:P,style:Object.assign(Object.assign({},p==null?void 0:p.style),l),onMouseEnter:c,onMouseLeave:u},m__namespace.createElement(E2,Object.assign({"aria-checked":M},I,{prefixCls:E,className:R,disabled:w,ref:t})),i!==void 0&&m__namespace.createElement("span",null,i))))},PX=m__namespace.forwardRef(IX),A2=PX;var OX=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 MX=(e,t)=>{const{defaultValue:n,children:r,options:o=[],prefixCls:a,className:i,rootClassName:s,style:l,onChange:c}=e,u=OX(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:d,direction:f}=m__namespace.useContext(tt),[h,g]=m__namespace.useState(u.value||n||[]),[v,p]=m__namespace.useState([]);m__namespace.useEffect(()=>{"value"in u&&g(u.value||[]);},[u.value]);const b=m__namespace.useMemo(()=>o.map(k=>typeof k=="string"||typeof k=="number"?{label:k,value:k}:k),[o]),y=k=>{p(A=>A.filter(L=>L!==k));},C=k=>{p(A=>[].concat(Te(A),[k]));},w=k=>{const A=h.indexOf(k.value),L=Te(h);A===-1?L.push(k.value):L.splice(A,1),"value"in u||g(L),c==null||c(L.filter(_=>v.includes(_)).sort((_,O)=>{const T=b.findIndex(j=>j.value===_),D=b.findIndex(j=>j.value===O);return T-D}));},x=d("checkbox",a),E=`${x}-group`,[S,$]=N2(x),I=Vn(u,["value","disabled"]),P=o.length?b.map(k=>m__namespace.createElement(A2,{prefixCls:x,key:k.value.toString(),disabled:"disabled"in k?k.disabled:u.disabled,value:k.value,checked:h.includes(k.value),onChange:k.onChange,className:`${E}-item`,style:k.style,title:k.title,id:k.id,required:k.required},k.label)):r,R={toggleOption:w,value:h,disabled:u.disabled,name:u.name,registerValue:C,cancelValue:y},M=W(E,{[`${E}-rtl`]:f==="rtl"},i,s,$);return S(m__namespace.createElement("div",Object.assign({className:M,style:l},I,{ref:t}),m__namespace.createElement(k2.Provider,{value:R},P)))},RX=m__namespace.forwardRef(MX),TX=m__namespace.memo(RX),vp=A2;vp.Group=TX;vp.__ANT_CHECKBOX=!0;const lf=vp;function Mn({configKey:e,label:t,extraAction:n,tooltip:r,...o}){const i=!!cn()[e],s=m.useCallback(c=>{const u=c.target.checked;qn({[e]:u}),n==null||n(u);},[]);let l=F("span",{style:{userSelect:"none"},children:t||e});return r&&(l=F(Pl,{title:r,overlayStyle:{width:"max-content",maxWidth:"50vw"},children:l})),F(lf,{...o,checked:i,onChange:s,children:l})}var _X={name:"1qkltea",styles:"margin-left:5px"};const kX=function(){const e=_X;return be(It,{children:[F(Mn,{configKey:"initialShowMore",label:"自动查看更多",css:e}),F(Mn,{configKey:"useNarrowMode",label:"启用居中模式",css:e})]})};function cf({tooltip:e,iconProps:t,tooltipProps:n}){return F(It,{children:e&&F(Qd,{...n,title:e,children:F(Dt,{name:"Info",size:18,...t,style:{cursor:"pointer",marginLeft:"4px",...t==null?void 0:t.style}})})})}const NX=`${nn}-video-source-tab`,pp=SX({value:"recommend-app"},NX),ag={name:"qamjgr",styles:"margin-right:4px"},AX={name:"1dwyqh0",styles:"height:26px;line-height:unset;&:has(:focus-visible){outline:none;outline-offset:unset;}>.ant-radio-button+span{height:100%;}"},LX={name:"s0vnfv",styles:"height:32px"};var FX={name:"shwixj",styles:"display:flex;align-items:center;height:22px"},DX={name:"1k4kcw8",styles:"display:flex;align-items:center;line-height:unset;height:100%"};function L2({onRefresh:e}){const t=gv(),n=Vl(),{styleUseStandardVideoSourceTab:r}=cn(),o=jX();return be(It,{children:[F(m1.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&&!xF())return BX();pp.value=i,setTimeout(()=>{e(!0,{watchlaterKeepOrder:!0});});},children:o.map(({key:a,label:i,icon:s,iconProps:l})=>F(m1.Button,{css:[AX,r&&LX,"",""],className:"video-source-tab",tabIndex:-1,value:a,children:be("span",{css:DX,children:[F(Dt,{name:s,...l,size:(l==null?void 0:l.size)||18,css:ag}),i]})},a))}),F(cf,{iconProps:{name:"Tips",size:16,style:{marginLeft:6}},tooltip:F(It,{children:o.map(({key:a,label:i,icon:s,iconProps:l,desc:c})=>be("div",{css:FX,children:[F(Dt,{name:s,...l,size:(l==null?void 0:l.size)||18,css:ag}),i,": ",c]},a))})})]})}const uf=[{key:"recommend-app",icon:"Iphone",label:"推荐",desc:"使用 Bilibili 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},{key:"popular-general",icon:"Fire",iconProps:{size:16},label:"综合热门",desc:"各个领域中新奇好玩的优质内容都在这里~",swr:!0},{key:"popular-weekly",icon:"TrendTwo",iconProps:{size:15},label:"每周必看",desc:"每周五晚 18:00 更新",swr:!0}],h1=uf.reduce((e,t)=>({...e,[t.key]:t}),{}),bp=uf.map(e=>e.key);function F2(){const{hidingTabKeys:e}=cn();return m.useMemo(()=>bp.filter(t=>!e.includes(t)),[e])}function jX(){const e=F2(),t=gv();return m.useMemo(()=>uf.filter(n=>e.includes(n.key)||!t&&n.key==="recommend-app"),[e,t])}function D2(e,t){return bp.includes(e)&&(t||e==="recommend-app"||e==="recommend-pc")?e:"recommend-app"}function Vl(){return D2(yr(pp).value,gv())}function zX(){return D2(pp.value,wl())}function BX(){return Pt("你需要登录(不可用)B站后使用该功能! 如已完成登录(不可用), 请刷新网页重试~")}const j2=["xxl","xl","lg","md","sm","xs"],HX=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)`}),VX=e=>{const t=e,n=[].concat(j2).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 WX(){const[,e]=rr(),t=HX(VX(e));return m.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 GX(){const[,e]=m__namespace.useReducer(t=>t+1,0);return e}function z2(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=m.useRef({}),n=GX(),r=WX();return Xt(()=>{const o=r.subscribe(a=>{t.current=a,e&&n();});return ()=>r.unsubscribe(o)},[]),t.current}const KX=m__namespace.createContext({}),ig=KX,UX=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:f,borderRadiusLG:h,borderRadiusSM:g,lineWidth:v,lineType:p}=e,b=(y,C,w)=>({width:y,height:y,lineHeight:`${y-v*2}px`,borderRadius:"50%",[`&${n}-square`]:{borderRadius:w},[`${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({},jt(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,f)),{"&-lg":Object.assign({},b(s,u,h)),"&-sm":Object.assign({},b(l,d,g)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},XX=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}}}},B2=Kt("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=Ct(e,{avatarBg:n,avatarColor:t});return [UX(r),XX(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 qX=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 YX=(e,t)=>{const[n,r]=m__namespace.useState(1),[o,a]=m__namespace.useState(!1),[i,s]=m__namespace.useState(!0),l=m__namespace.useRef(null),c=m__namespace.useRef(null),u=Jn(t,l),{getPrefixCls:d,avatar:f}=m__namespace.useContext(tt),h=m__namespace.useContext(ig),g=()=>{if(!c.current||!l.current)return;const Y=c.current.offsetWidth,ee=l.current.offsetWidth;if(Y!==0&&ee!==0){const{gap:V=4}=e;V*2<ee&&r(ee-V*2<Y?(ee-V*2)/Y:1);}};m__namespace.useEffect(()=>{a(!0);},[]),m__namespace.useEffect(()=>{s(!0),r(1);},[e.src]),m__namespace.useEffect(g,[e.gap]);const v=()=>{const{onError:Y}=e;(Y==null?void 0:Y())!==!1&&s(!1);},{prefixCls:p,shape:b,size:y,src:C,srcSet:w,icon:x,className:E,rootClassName:S,alt:$,draggable:I,children:P,crossOrigin:R}=e,M=qX(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),k=or(Y=>{var ee,V;return (V=(ee=y??(h==null?void 0:h.size))!==null&&ee!==void 0?ee:Y)!==null&&V!==void 0?V:"default"}),A=Object.keys(typeof k=="object"?k||{}:{}).some(Y=>["xs","sm","md","lg","xl","xxl"].includes(Y)),L=z2(A),_=m__namespace.useMemo(()=>{if(typeof k!="object")return {};const Y=j2.find(V=>L[V]),ee=k[Y];return ee?{width:ee,height:ee,lineHeight:`${ee}px`,fontSize:ee&&(x||P)?ee/2:18}:{}},[L,k]),O=d("avatar",p),[T,D]=B2(O),j=W({[`${O}-lg`]:k==="large",[`${O}-sm`]:k==="small"}),B=m__namespace.isValidElement(C),H=b||(h==null?void 0:h.shape)||"circle",G=W(O,j,f==null?void 0:f.className,`${O}-${H}`,{[`${O}-image`]:B||C&&i,[`${O}-icon`]:!!x},E,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=m__namespace.createElement("img",{src:C,draggable:I,srcSet:w,onError:v,alt:$,crossOrigin:R});else if(B)X=C;else if(x)X=x;else if(o||n!==1){const Y=`scale(${n}) translateX(-50%)`,ee={msTransform:Y,WebkitTransform:Y,transform:Y},V=typeof k=="number"?{lineHeight:`${k}px`}:{};X=m__namespace.createElement(Or,{onResize:g},m__namespace.createElement("span",{className:`${O}-string`,ref:c,style:Object.assign(Object.assign({},V),ee)},P));}else X=m__namespace.createElement("span",{className:`${O}-string`,style:{opacity:0},ref:c},P);return delete M.onError,delete M.gap,T(m__namespace.createElement("span",Object.assign({},M,{style:Object.assign(Object.assign(Object.assign(Object.assign({},K),_),f==null?void 0:f.style),M.style),className:G,ref:u}),X))},ZX=m__namespace.forwardRef(YX),H2=ZX,Li=e=>e?typeof e=="function"?e():e:null,QX=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:f}=e;return [{[t]:Object.assign(Object.assign({},jt(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:f,backgroundClip:"padding-box",borderRadius:l,boxShadow:i,padding:a},[`${t}-title`]:{minWidth:r,marginBottom:u,color:s,fontWeight:o},[`${t}-inner-content`]:{color:n}})},kv(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},JX=e=>{const{componentCls:t}=e;return {[t]:Qs.map(n=>{const r=e[`${n}6`];return {[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},eq=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,f=u/2-n,h=c;return {[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${d}px ${h}px ${f}px`,borderBottom:`${n}px ${r} ${o}`},[`${t}-inner-content`]:{padding:`${a}px ${h}px`}}}},V2=Kt("Popover",e=>{const{colorBgElevated:t,colorText:n,wireframe:r}=e,o=Ct(e,{popoverPadding:12,popoverBg:t,popoverColor:n});return [QX(o),JX(o),r&&eq(o),Dd(o,"zoom-big")]},e=>({width:177,minWidth:177,titleMinWidth:177,zIndexPopup:e.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var tq=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 nq=(e,t,n)=>{if(!(!t&&!n))return m__namespace.createElement(m__namespace.Fragment,null,t&&m__namespace.createElement("div",{className:`${e}-title`},Li(t)),m__namespace.createElement("div",{className:`${e}-inner-content`},Li(n)))},rq=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:a="top",title:i,content:s,children:l}=e;return m__namespace.createElement("div",{className:W(t,n,`${n}-pure`,`${n}-placement-${a}`,r),style:o},m__namespace.createElement("div",{className:`${n}-arrow`}),m__namespace.createElement(pv,Object.assign({},e,{className:t,prefixCls:n}),l||nq(n,i,s)))},oq=e=>{const{prefixCls:t}=e,n=tq(e,["prefixCls"]),{getPrefixCls:r}=m__namespace.useContext(tt),o=r("popover",t),[a,i]=V2(o);return a(m__namespace.createElement(rq,Object.assign({},n,{prefixCls:o,hashId:i})))},W2=oq;var aq=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 iq=e=>{let{title:t,content:n,prefixCls:r}=e;return m__namespace.createElement(m__namespace.Fragment,null,t&&m__namespace.createElement("div",{className:`${r}-title`},Li(t)),m__namespace.createElement("div",{className:`${r}-inner-content`},Li(n)))},G2=m__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=aq(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:f}=m__namespace.useContext(tt),h=f("popover",n),[g,v]=V2(h),p=f(),b=W(a,v);return g(m__namespace.createElement(Pl,Object.assign({placement:i,trigger:s,mouseEnterDelay:l,mouseLeaveDelay:c,overlayStyle:u},d,{prefixCls:h,overlayClassName:b,ref:t,overlay:r||o?m__namespace.createElement(iq,{prefixCls:h,title:r,content:o}):null,transitionName:Nd(p,"zoom-big",d.transitionName),"data-popover-inject":!0})))});G2._InternalPanelDoNotUseOrYouWillBeFired=W2;const df=G2,g1=e=>{const{size:t,shape:n}=m__namespace.useContext(ig),r=m__namespace.useMemo(()=>({size:e.size||t,shape:e.shape||n}),[e.size,e.shape,t,n]);return m__namespace.createElement(ig.Provider,{value:r},e.children)},sq=e=>{const{getPrefixCls:t,direction:n}=m__namespace.useContext(tt),{prefixCls:r,className:o,rootClassName:a,style:i,maxCount:s,maxStyle:l,size:c,shape:u,maxPopoverPlacement:d="top",maxPopoverTrigger:f="hover",children:h}=e,g=t("avatar",r),v=`${g}-group`,[p,b]=B2(g),y=W(v,{[`${v}-rtl`]:n==="rtl"},o,a,b),C=vr(h).map((x,E)=>Zn(x,{key:`avatar-key-${E}`})),w=C.length;if(s&&s<w){const x=C.slice(0,s),E=C.slice(s,w);return x.push(m__namespace.createElement(df,{key:"avatar-popover-key",content:E,trigger:f,placement:d,overlayClassName:`${v}-popover`},m__namespace.createElement(H2,{style:l},`+${w-s}`))),p(m__namespace.createElement(g1,{shape:u,size:c},m__namespace.createElement("div",{className:y,style:i},x)))}return p(m__namespace.createElement(g1,{shape:u,size:c},m__namespace.createElement("div",{className:y,style:i},C)))},lq=sq,K2=H2;K2.Group=lq;const xu=K2;var cq={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 uq=cq;function dq(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function fq(e,t){$n(e,"[@ant-design/icons] ".concat(t));}function v1(e){return it(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(it(e.icon)==="object"||typeof e.icon=="function")}function p1(){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[dq(n)]=r;}return t},{})}function sg(e,t,n){return n?m.createElement(e.tag,U(U({key:t},p1(e.attrs)),n),(e.children||[]).map(function(r,o){return sg(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):m.createElement(e.tag,U({key:t},p1(e.attrs)),(e.children||[]).map(function(r,o){return sg(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function U2(e){return So(e)[0]}function X2(e){return e?Array.isArray(e)?e:[e]:[]}var mq=`
.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);
  }
}
`,hq=function(t){var n=m.useContext(Nv),r=n.csp,o=n.prefixCls,a=mq;o&&(a=a.replace(/anticon/g,o)),m.useEffect(function(){var i=t.current,s=cu(i);Pi(a,"@ant-design-icons",{prepend:!0,csp:r,attachTo:s});},[]);},gq=["icon","className","onClick","style","primaryColor","secondaryColor"],Ds={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function vq(e){var t=e.primaryColor,n=e.secondaryColor;Ds.primaryColor=t,Ds.secondaryColor=n||U2(t),Ds.calculated=!!n;}function pq(){return U({},Ds)}var ff=function(t){var n=t.icon,r=t.className,o=t.onClick,a=t.style,i=t.primaryColor,s=t.secondaryColor,l=et(t,gq),c=m__namespace.useRef(),u=Ds;if(i&&(u={primaryColor:i,secondaryColor:s||U2(i)}),hq(c),fq(v1(n),"icon should be icon definiton, but got ".concat(n)),!v1(n))return null;var d=n;return d&&typeof d.icon=="function"&&(d=U(U({},d),{},{icon:d.icon(u.primaryColor,u.secondaryColor)})),sg(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}))};ff.displayName="IconReact";ff.getTwoToneColors=pq;ff.setTwoToneColors=vq;const yp=ff;function q2(e){var t=X2(e),n=Z(t,2),r=n[0],o=n[1];return yp.setTwoToneColors({primaryColor:r,secondaryColor:o})}function bq(){var e=yp.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var yq=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];q2(hz.primary);var mf=m__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=et(e,yq),d=m__namespace.useContext(Nv),f=d.prefixCls,h=f===void 0?"anticon":f,g=d.rootClassName,v=W(g,h,(n={},z(n,"".concat(h,"-").concat(o.name),!!o.name),z(n,"".concat(h,"-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=X2(c),C=Z(y,2),w=C[0],x=C[1];return m__namespace.createElement("span",Ie({role:"img","aria-label":o.name},u,{ref:t,tabIndex:p,onClick:l,className:v}),m__namespace.createElement(yp,{icon:o,primaryColor:w,secondaryColor:x,style:b}))});mf.displayName="AntdIcon";mf.getTwoToneColor=bq;mf.setTwoToneColor=q2;const _n=mf;var Cq=function(t,n){return m__namespace.createElement(_n,Ie({},t,{ref:n,icon:uq}))};const Fi=m__namespace.forwardRef(Cq);var me={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>=me.F1&&n<=me.F12)return !1;switch(n){case me.ALT:case me.CAPS_LOCK:case me.CONTEXT_MENU:case me.CTRL:case me.DOWN:case me.END:case me.ESC:case me.HOME:case me.INSERT:case me.LEFT:case me.MAC_FF_META:case me.META:case me.NUMLOCK:case me.NUM_CENTER:case me.PAGE_DOWN:case me.PAGE_UP:case me.PAUSE:case me.PRINT_SCREEN:case me.RIGHT:case me.SHIFT:case me.UP:case me.WIN_KEY:case me.WIN_KEY_RIGHT:return !1;default:return !0}},isCharacterKey:function(t){if(t>=me.ZERO&&t<=me.NINE||t>=me.NUM_ZERO&&t<=me.NUM_MULTIPLY||t>=me.A&&t<=me.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return !0;switch(t){case me.SPACE:case me.QUESTION_MARK:case me.NUM_PLUS:case me.NUM_MINUS:case me.NUM_PERIOD:case me.NUM_DIVISION:case me.SEMICOLON:case me.DASH:case me.EQUALS:case me.COMMA:case me.PERIOD:case me.SLASH:case me.APOSTROPHE:case me.SINGLE_QUOTE:case me.OPEN_SQUARE_BRACKET:case me.BACKSLASH:case me.CLOSE_SQUARE_BRACKET:return !0;default:return !1}}},Sq=me.ESC,wq=me.TAB;function $q(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,a=e.overlayRef,i=m__namespace.useRef(!1),s=function(){if(t){var d,f;(d=n.current)===null||d===void 0||(f=d.focus)===null||f===void 0||f.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 Sq:s();break;case wq:{var f=!1;i.current||(f=l()),f?d.preventDefault():s();break}}};m__namespace.useEffect(function(){return t?(window.addEventListener("keydown",c),o&&Mt(l,3),function(){window.removeEventListener("keydown",c),i.current=!1;}):function(){i.current=!1;}},[t]);}var xq=m.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,a=m.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),i=Jn(t,a==null?void 0:a.ref);return m.createElement(m.Fragment,null,r&&m.createElement("div",{className:"".concat(o,"-arrow")}),m.cloneElement(a,{ref:Ko(a)?i:void 0}))}),Ua={adjustX:1,adjustY:1},Xa=[0,0],Eq={topLeft:{points:["bl","tl"],overflow:Ua,offset:[0,-4],targetOffset:Xa},top:{points:["bc","tc"],overflow:Ua,offset:[0,-4],targetOffset:Xa},topRight:{points:["br","tr"],overflow:Ua,offset:[0,-4],targetOffset:Xa},bottomLeft:{points:["tl","bl"],overflow:Ua,offset:[0,4],targetOffset:Xa},bottom:{points:["tc","bc"],overflow:Ua,offset:[0,4],targetOffset:Xa},bottomRight:{points:["tr","br"],overflow:Ua,offset:[0,4],targetOffset:Xa}},Iq=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Pq(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,f=e.placements,h=f===void 0?Eq:f,g=e.getPopupContainer,v=e.showAction,p=e.hideAction,b=e.overlayClassName,y=e.overlayStyle,C=e.visible,w=e.trigger,x=w===void 0?["hover"]:w,E=e.autoFocus,S=e.overlay,$=e.children,I=e.onVisibleChange,P=et(e,Iq),R=m.useState(),M=Z(R,2),k=M[0],A=M[1],L="visible"in e?C:k,_=m.useRef(null),O=m.useRef(null),T=m.useRef(null);m.useImperativeHandle(t,function(){return _.current});var D=function(V){A(V),I==null||I(V);};$q({visible:L,triggerRef:T,onVisibleChange:D,autoFocus:E,overlayRef:O});var j=function(V){var J=e.onOverlayClick;A(!1),J&&J(V);},B=function(){return m.createElement(xq,{ref:O,overlay:S,prefixCls:i,arrow:o})},H=function(){return typeof S=="function"?B:B()},G=function(){var V=e.minOverlayWidthMatchTrigger,J=e.alignPoint;return "minOverlayWidthMatchTrigger"in e?V:!J},K=function(){var V=e.openClassName;return V!==void 0?V:"".concat(i,"-open")},X=m.cloneElement($,{className:W((n=$.props)===null||n===void 0?void 0:n.className,L&&K()),ref:Ko($)?Jn(T,$.ref):void 0}),Y=p;return !Y&&x.indexOf("contextMenu")!==-1&&(Y=["click"]),m.createElement(_d,Ie({builtinPlacements:h},P,{prefixCls:i,ref:_,popupClassName:W(b,z({},"".concat(i,"-show-arrow"),o)),popupStyle:y,action:x,showAction:v,hideAction:Y,popupPlacement:d,popupAlign:c,popupTransitionName:s,popupAnimation:l,popupVisible:L,stretch:G()?"minWidth":"",popup:H(),onPopupVisibleChange:D,onPopupClick:j,getPopupContainer:g}),X)}const Y2=m.forwardRef(Pq);function Oq(e){return function(n){return m__namespace.createElement(Fv,{theme:{token:{motion:!1,zIndexPopupBase:0}}},m__namespace.createElement(e,Object.assign({},n)))}}function Cp(e,t,n,r){function o(a){const{prefixCls:i,style:s}=a,l=m__namespace.useRef(null),[c,u]=m__namespace.useState(0),[d,f]=m__namespace.useState(0),[h,g]=qt(!1,{value:a.open}),{getPrefixCls:v}=m__namespace.useContext(tt),p=v(t||"select",i);m__namespace.useEffect(()=>{if(g(!0),typeof ResizeObserver<"u"){const y=new ResizeObserver(w=>{const x=w[0].target;u(x.offsetHeight+8),f(x.offsetWidth);}),C=setInterval(()=>{var w;const x=n?`.${n(p)}`:`.${p}-dropdown`,E=(w=l.current)===null||w===void 0?void 0:w.querySelector(x);E&&(clearInterval(C),y.observe(E));},10);return ()=>{clearInterval(C),y.disconnect();}}},[]);let b=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},s),{margin:0}),open:h,visible:h,getPopupContainer:()=>l.current});return r&&(b=r(b)),m__namespace.createElement("div",{ref:l,style:{paddingBottom:c,position:"relative",minWidth:d}},m__namespace.createElement(e,Object.assign({},b)))}return Oq(o)}var Mq=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],qa=void 0;function Rq(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,f=e.children,h=e.display,g=e.order,v=e.component,p=v===void 0?"div":v,b=et(e,Mq),y=i&&!h;function C($){l(c,$);}m__namespace.useEffect(function(){return function(){C(null);}},[]);var w=a&&o!==qa?a(o):f,x;r||(x={opacity:y?0:1,height:y?0:qa,overflowY:y?"hidden":qa,order:i?g:qa,pointerEvents:y?"none":qa,position:y?"absolute":qa});var E={};y&&(E["aria-hidden"]=!0);var S=m__namespace.createElement(p,Ie({className:W(!r&&n,u),style:U(U({},x),d)},E,b,{ref:t}),w);return i&&(S=m__namespace.createElement(Or,{onResize:function(I){var P=I.offsetWidth;C(P);},disabled:s},S)),S}var js=m__namespace.forwardRef(Rq);js.displayName="Item";function Tq(e){if(typeof MessageChannel>"u")Mt(e);else {var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0);}}function _q(){var e=m__namespace.useRef(null),t=function(r){e.current||(e.current=[],Tq(function(){HC.unstable_batchedUpdates(function(){e.current.forEach(function(o){o();}),e.current=null;});})),e.current.push(r);};return t}function vs(e,t){var n=m__namespace.useState(t),r=Z(n,2),o=r[0],a=r[1],i=Ln(function(s){e(function(){a(s);});});return [o,i]}var Eu=m.createContext(null),kq=["component"],Nq=["className"],Aq=["className"],Lq=function(t,n){var r=m__namespace.useContext(Eu);if(!r){var o=t.component,a=o===void 0?"div":o,i=et(t,kq);return m__namespace.createElement(a,Ie({},i,{ref:n}))}var s=r.className,l=et(r,Nq),c=t.className,u=et(t,Aq);return m__namespace.createElement(Eu.Provider,{value:null},m__namespace.createElement(js,Ie({ref:n,className:W(s,c)},l,u)))},Z2=m__namespace.forwardRef(Lq);Z2.displayName="RawItem";var Fq=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Q2="responsive",J2="invalidate";function Dq(e){return "+ ".concat(e.length," ...")}function jq(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,f=e.style,h=e.className,g=e.maxCount,v=e.renderRest,p=e.renderRawRest,b=e.suffix,y=e.component,C=y===void 0?"div":y,w=e.itemComponent,x=e.onVisibleChange,E=et(e,Fq),S=d==="full",$=_q(),I=vs($,null),P=Z(I,2),R=P[0],M=P[1],k=R||0,A=vs($,new Map),L=Z(A,2),_=L[0],O=L[1],T=vs($,0),D=Z(T,2),j=D[0],B=D[1],H=vs($,0),G=Z(H,2),K=G[0],X=G[1],Y=vs($,0),ee=Z(Y,2),V=ee[0],J=ee[1],q=m.useState(null),se=Z(q,2),le=se[0],Q=se[1],ne=m.useState(null),de=Z(ne,2),te=de[0],ce=de[1],ge=m__namespace.useMemo(function(){return te===null&&S?Number.MAX_SAFE_INTEGER:te||0},[te,R]),re=m.useState(!1),ae=Z(re,2),he=ae[0],Ce=ae[1],_e="".concat(r,"-item"),He=Math.max(j,K),We=g===Q2,Me=a.length&&We,Ye=g===J2,Be=Me||typeof g=="number"&&a.length>g,Ve=m.useMemo(function(){var $e=a;return Me?R===null&&S?$e=a:$e=a.slice(0,Math.min(a.length,k/u)):typeof g=="number"&&($e=a.slice(0,g)),$e},[a,u,R,g,Me]),Pe=m.useMemo(function(){return Me?a.slice(ge+1):a.slice(Ve.length)},[a,Ve,Me,ge]),xe=m.useCallback(function($e,fe){var oe;return typeof l=="function"?l($e):(oe=l&&($e==null?void 0:$e[l]))!==null&&oe!==void 0?oe:fe},[l]),qe=m.useCallback(i||function($e){return $e},[i]);function rt($e,fe,oe){te===$e&&(fe===void 0||fe===le)||(ce($e),oe||(Ce($e<a.length-1),x==null||x($e)),fe!==void 0&&Q(fe));}function yt($e,fe){M(fe.clientWidth);}function Qe($e,fe){O(function(oe){var ye=new Map(oe);return fe===null?ye.delete($e):ye.set($e,fe),ye});}function Je($e,fe){X(fe),B(K);}function pt($e,fe){J(fe);}function ht($e){return _.get(xe(Ve[$e],$e))}Xt(function(){if(k&&typeof He=="number"&&Ve){var $e=V,fe=Ve.length,oe=fe-1;if(!fe){rt(0,null);return}for(var ye=0;ye<fe;ye+=1){var ue=ht(ye);if(S&&(ue=ue||0),ue===void 0){rt(ye-1,void 0,!0);break}if($e+=ue,oe===0&&$e<=k||ye===oe-1&&$e+ht(oe)<=k){rt(oe,null);break}else if($e+He>k){rt(ye-1,$e-ue-V+K);break}}b&&ht(0)+V>k&&Q(null);}},[k,_,K,V,xe,Ve]);var lt=he&&!!Pe.length,ft={};le!==null&&Me&&(ft={position:"absolute",left:le,top:0});var xt={prefixCls:_e,responsive:Me,component:w,invalidate:Ye},Oe=s?function($e,fe){var oe=xe($e,fe);return m__namespace.createElement(Eu.Provider,{key:oe,value:U(U({},xt),{},{order:fe,item:$e,itemKey:oe,registerSize:Qe,display:fe<=ge})},s($e,fe))}:function($e,fe){var oe=xe($e,fe);return m__namespace.createElement(js,Ie({},xt,{order:fe,key:oe,item:$e,renderItem:qe,itemKey:oe,registerSize:Qe,display:fe<=ge}))},Re,ke={order:lt?ge:Number.MAX_SAFE_INTEGER,className:"".concat(_e,"-rest"),registerSize:Je,display:lt};if(p)p&&(Re=m__namespace.createElement(Eu.Provider,{value:U(U({},xt),ke)},p(Pe)));else {var pe=v||Dq;Re=m__namespace.createElement(js,Ie({},xt,ke),typeof pe=="function"?pe(Pe):pe);}var De=m__namespace.createElement(C,Ie({className:W(!Ye&&r,h),style:f,ref:t},E),Ve.map(Oe),Be?Re:null,b&&m__namespace.createElement(js,Ie({},xt,{responsive:We,responsiveDisabled:!Me,order:ge,className:"".concat(_e,"-suffix"),registerSize:pt,display:!0,style:ft}),b));return We&&(De=m__namespace.createElement(Or,{onResize:yt,disabled:!Me},De)),De}var ao=m__namespace.forwardRef(jq);ao.displayName="Overflow";ao.Item=Z2;ao.RESPONSIVE=Q2;ao.INVALIDATE=J2;var eE=m__namespace.createContext(null);function Sp(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function tE(e){var t=m__namespace.useContext(eE);return Sp(t,e)}var zq=["children","locked"],Hr=m__namespace.createContext(null);function Bq(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 il(e){var t=e.children,n=e.locked,r=et(e,zq),o=m__namespace.useContext(Hr),a=$l(function(){return Bq(o,r)},[o,r],function(i,s){return !n&&(i[0]!==s[0]||!El(i[1],s[1],!0))});return m__namespace.createElement(Hr.Provider,{value:a},t)}var Hq=[],nE=m__namespace.createContext(null);function hf(){return m__namespace.useContext(nE)}var rE=m__namespace.createContext(Hq);function os(e){var t=m__namespace.useContext(rE);return m__namespace.useMemo(function(){return e!==void 0?[].concat(Te(t),[e]):t},[t,e])}var oE=m__namespace.createContext(null),wp=m__namespace.createContext({});function b1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Ev(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 Vq(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Te(e.querySelectorAll("*")).filter(function(r){return b1(r,t)});return b1(e,t)&&n.unshift(e),n}var lg=me.LEFT,cg=me.RIGHT,ug=me.UP,Wc=me.DOWN,Gc=me.ENTER,aE=me.ESC,ps=me.HOME,bs=me.END,y1=[ug,Wc,lg,cg];function Wq(e,t,n,r){var o,a,i,s,l="prev",c="next",u="children",d="parent";if(e==="inline"&&r===Gc)return {inlineTrigger:!0};var f=(o={},z(o,ug,l),z(o,Wc,c),o),h=(a={},z(a,lg,n?c:l),z(a,cg,n?l:c),z(a,Wc,u),z(a,Gc,u),a),g=(i={},z(i,ug,l),z(i,Wc,c),z(i,Gc,u),z(i,aE,d),z(i,lg,n?u:d),z(i,cg,n?d:u),i),v={inline:f,horizontal:h,vertical:g,inlineSub:f,horizontalSub:g,verticalSub:g},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 Gq(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement;}return null}function Kq(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement;}return null}function iE(e,t){var n=Vq(e,!0);return n.filter(function(r){return t.has(r)})}function C1(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=iE(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 Uq(e,t,n,r,o,a,i,s,l,c){var u=m__namespace.useRef(),d=m__namespace.useRef();d.current=t;var f=function(){Mt.cancel(u.current);};return m__namespace.useEffect(function(){return function(){f();}},[]),function(h){var g=h.which;if([].concat(y1,[Gc,aE,ps,bs]).includes(g)){var v,p,b,y=function(){v=new Set,p=new Map,b=new Map;var L=a();return L.forEach(function(_){var O=document.querySelector("[data-menu-id='".concat(Sp(r,_),"']"));O&&(v.add(O),b.set(O,_),p.set(_,O));}),v};y();var C=p.get(t),w=Kq(C,v),x=b.get(w),E=Wq(e,i(x,!0).length===1,n,g);if(!E&&g!==ps&&g!==bs)return;(y1.includes(g)||[ps,bs].includes(g))&&h.preventDefault();var S=function(L){if(L){var _=L,O=L.querySelector("a");O!=null&&O.getAttribute("href")&&(_=O);var T=b.get(L);s(T),f(),u.current=Mt(function(){d.current===T&&_.focus();});}};if([ps,bs].includes(g)||E.sibling||!w){var $;!w||e==="inline"?$=o.current:$=Gq(w);var I,P=iE($,v);g===ps?I=P[0]:g===bs?I=P[P.length-1]:I=C1($,v,w,E.offset),S(I);}else if(E.inlineTrigger)l(x);else if(E.offset>0)l(x,!0),f(),u.current=Mt(function(){y();var A=w.getAttribute("aria-controls"),L=document.getElementById(A),_=C1(L,v);S(_);},5);else if(E.offset<0){var R=i(x,!0),M=R[R.length-2],k=p.get(M);l(M,!1),S(k);}}c==null||c(h);}}function Xq(e){Promise.resolve().then(e);}var $p="__RC_UTIL_PATH_SPLIT__",S1=function(t){return t.join($p)},qq=function(t){return t.split($p)},dg="rc-menu-more";function Yq(){var e=m__namespace.useState({}),t=Z(e,2),n=t[1],r=m.useRef(new Map),o=m.useRef(new Map),a=m__namespace.useState([]),i=Z(a,2),s=i[0],l=i[1],c=m.useRef(0),u=m.useRef(!1),d=function(){u.current||n({});},f=m.useCallback(function(C,w){var x=S1(w);o.current.set(x,C),r.current.set(C,x),c.current+=1;var E=c.current;Xq(function(){E===c.current&&d();});},[]),h=m.useCallback(function(C,w){var x=S1(w);o.current.delete(x),r.current.delete(C);},[]),g=m.useCallback(function(C){l(C);},[]),v=m.useCallback(function(C,w){var x=r.current.get(C)||"",E=qq(x);return w&&s.includes(E[0])&&E.unshift(dg),E},[s]),p=m.useCallback(function(C,w){return C.some(function(x){var E=v(x,!0);return E.includes(w)})},[v]),b=function(){var w=Te(r.current.keys());return s.length&&w.push(dg),w},y=m.useCallback(function(C){var w="".concat(r.current.get(C)).concat($p),x=new Set;return Te(o.current.keys()).forEach(function(E){E.startsWith(w)&&x.add(o.current.get(E));}),x},[]);return m__namespace.useEffect(function(){return function(){u.current=!0;}},[]),{registerPath:f,unregisterPath:h,refreshOverflowKeys:g,isSubPathKey:p,getKeyPath:v,getKeys:b,getSubPathKeys:y}}function Ps(e){var t=m__namespace.useRef(e);t.current=e;var n=m__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 Zq=Math.random().toFixed(5).toString().slice(2),w1=0;function Qq(e){var t=qt(e,{value:e}),n=Z(t,2),r=n[0],o=n[1];return m__namespace.useEffect(function(){w1+=1;var a="".concat(Zq,"-").concat(w1);o("rc-menu-uuid-".concat(a));},[]),r}function sE(e,t,n,r){var o=m__namespace.useContext(Hr),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 lE(e){var t=m__namespace.useContext(Hr),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 cE(e){var t=e.icon,n=e.props,r=e.children,o;return t===null||t===!1?null:(typeof t=="function"?o=m__namespace.createElement(t,U({},n)):typeof t!="boolean"&&(o=t),o||r||null)}var Jq=["item"];function Iu(e){var t=e.item,n=et(e,Jq);return Object.defineProperty(n,"item",{get:function(){return $n(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var eY=["title","attribute","elementRef"],tY=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],nY=["active"],rY=function(e){Uo(n,e);var t=Xo(n);function n(){return En(this,n),t.apply(this,arguments)}return In(n,[{key:"render",value:function(){var o=this.props,a=o.title,i=o.attribute,s=o.elementRef,l=et(o,eY),c=Vn(l,["eventKey","popupClassName","popupOffset","onTitleClick"]);return $n(!i,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),m__namespace.createElement(ao.Item,Ie({},i,{title:typeof a=="string"?a:void 0},c,{ref:s}))}}]),n}(m__namespace.Component),oY=m__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,f=e.onClick,h=e.onKeyDown,g=e.onFocus,v=et(e,tY),p=tE(a),b=m__namespace.useContext(Hr),y=b.prefixCls,C=b.onItemClick,w=b.disabled,x=b.overflowDisabled,E=b.itemIcon,S=b.selectedKeys,$=b.onActive,I=m__namespace.useContext(wp),P=I._internalRenderMenuItem,R="".concat(y,"-item"),M=m__namespace.useRef(),k=m__namespace.useRef(),A=w||i,L=Ra(t,k),_=os(a),O=function(q){return {key:a,keyPath:Te(_).reverse(),item:M.current,domEvent:q}},T=s||E,D=sE(a,A,u,d),j=D.active,B=et(D,nY),H=S.includes(a),G=lE(_.length),K=function(q){if(!A){var se=O(q);f==null||f(Iu(se)),C(se);}},X=function(q){if(h==null||h(q),q.which===me.ENTER){var se=O(q);f==null||f(Iu(se)),C(se);}},Y=function(q){$(a),g==null||g(q);},ee={};e.role==="option"&&(ee["aria-selected"]=H);var V=m__namespace.createElement(rY,Ie({ref:M,elementRef:L,role:c===null?"none":c||"menuitem",tabIndex:i?null:-1,"data-menu-id":x&&p?null:p},v,B,ee,{component:"li","aria-disabled":i,style:U(U({},G),r),className:W(R,(n={},z(n,"".concat(R,"-active"),j),z(n,"".concat(R,"-selected"),H),z(n,"".concat(R,"-disabled"),A),n),o),onClick:K,onKeyDown:X,onFocus:Y}),l,m__namespace.createElement(cE,{props:U(U({},e),{},{isSelected:H}),icon:T}));return P&&(V=P(V,e,{selected:H})),V});function aY(e,t){var n=e.eventKey,r=hf(),o=os(n);return m__namespace.useEffect(function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o);}},[o]),r?null:m__namespace.createElement(oY,Ie({},e,{ref:t}))}const Wl=m__namespace.forwardRef(aY);var iY=["className","children"],sY=function(t,n){var r=t.className,o=t.children,a=et(t,iY),i=m__namespace.useContext(Hr),s=i.prefixCls,l=i.mode,c=i.rtl;return m__namespace.createElement("ul",Ie({className:W(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)},xp=m__namespace.forwardRef(sY);xp.displayName="SubMenuList";function Ep(e,t){return vr(e).map(function(n,r){if(m__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(Te(t),[r]).join("-")));var c={key:s,eventKey:s};return m__namespace.cloneElement(n,c)}return n})}var An={adjustX:1,adjustY:1},lY={topLeft:{points:["bl","tl"],overflow:An},topRight:{points:["br","tr"],overflow:An},bottomLeft:{points:["tl","bl"],overflow:An},bottomRight:{points:["tr","br"],overflow:An},leftTop:{points:["tr","tl"],overflow:An},leftBottom:{points:["br","bl"],overflow:An},rightTop:{points:["tl","tr"],overflow:An},rightBottom:{points:["bl","br"],overflow:An}},cY={topLeft:{points:["bl","tl"],overflow:An},topRight:{points:["br","tr"],overflow:An},bottomLeft:{points:["tl","bl"],overflow:An},bottomRight:{points:["tr","br"],overflow:An},rightTop:{points:["tr","tl"],overflow:An},rightBottom:{points:["br","bl"],overflow:An},leftTop:{points:["tl","tr"],overflow:An},leftBottom:{points:["bl","br"],overflow:An}};function uE(e,t,n){if(t)return t;if(n)return n[e]||n.other}var uY={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function dY(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=m__namespace.useContext(Hr),f=d.getPopupContainer,h=d.rtl,g=d.subMenuOpenDelay,v=d.subMenuCloseDelay,p=d.builtinPlacements,b=d.triggerSubMenuAction,y=d.forceSubMenuRender,C=d.rootClassName,w=d.motion,x=d.defaultMotions,E=m__namespace.useState(!1),S=Z(E,2),$=S[0],I=S[1],P=U(h?U({},cY):U({},lY),p),R=uY[c],M=uE(c,w,x),k=m__namespace.useRef(M);c!=="inline"&&(k.current=M);var A=U(U({},k.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),L=m__namespace.useRef();return m__namespace.useEffect(function(){return L.current=Mt(function(){I(n);}),function(){Mt.cancel(L.current);}},[n]),m__namespace.createElement(_d,{prefixCls:t,popupClassName:W("".concat(t,"-popup"),z({},"".concat(t,"-rtl"),h),i,C),stretch:c==="horizontal"?"minWidth":null,getPopupContainer:f,builtinPlacements:P,popupPlacement:R,popupVisible:$,popup:o,popupStyle:a,popupAlign:s&&{offset:s},action:l?[]:[b],mouseEnterDelay:g,mouseLeaveDelay:v,onPopupVisibleChange:u,forceRender:y,popupMotion:A,fresh:!0},r)}function fY(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,a="inline",i=m__namespace.useContext(Hr),s=i.prefixCls,l=i.forceSubMenuRender,c=i.motion,u=i.defaultMotions,d=i.mode,f=m__namespace.useRef(!1);f.current=d===a;var h=m__namespace.useState(!f.current),g=Z(h,2),v=g[0],p=g[1],b=f.current?n:!1;m__namespace.useEffect(function(){f.current&&p(!1);},[d]);var y=U({},uE(a,c,u));r.length>1&&(y.motionAppear=!1);var C=y.onVisibleChanged;return y.onVisibleChanged=function(w){return !f.current&&!w&&p(!0),C==null?void 0:C(w)},v?null:m__namespace.createElement(il,{mode:a,locked:!f.current},m__namespace.createElement(Io,Ie({visible:b},y,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(w){var x=w.className,E=w.style;return m__namespace.createElement(xp,{id:t,className:x,style:E},o)}))}var mY=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],hY=["active"],gY=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,f=t.popupClassName,h=t.popupOffset,g=t.popupStyle,v=t.onClick,p=t.onMouseEnter,b=t.onMouseLeave,y=t.onTitleClick,C=t.onTitleMouseEnter,w=t.onTitleMouseLeave,x=et(t,mY),E=tE(i),S=m__namespace.useContext(Hr),$=S.prefixCls,I=S.mode,P=S.openKeys,R=S.disabled,M=S.overflowDisabled,k=S.activeKey,A=S.selectedKeys,L=S.itemIcon,_=S.expandIcon,O=S.onItemClick,T=S.onOpenChange,D=S.onActive,j=m__namespace.useContext(wp),B=j._internalRenderSubMenuItem,H=m__namespace.useContext(oE),G=H.isSubPathKey,K=os(),X="".concat($,"-submenu"),Y=R||s,ee=m__namespace.useRef(),V=m__namespace.useRef(),J=u??L,q=d??_,se=P.includes(i),le=!M&&se,Q=G(A,i),ne=sE(i,Y,C,w),de=ne.active,te=et(ne,hY),ce=m__namespace.useState(!1),ge=Z(ce,2),re=ge[0],ae=ge[1],he=function(Je){Y||ae(Je);},Ce=function(Je){he(!0),p==null||p({key:i,domEvent:Je});},_e=function(Je){he(!1),b==null||b({key:i,domEvent:Je});},He=m__namespace.useMemo(function(){return de||(I!=="inline"?re||G([k],i):!1)},[I,de,k,re,i,G]),We=lE(K.length),Me=function(Je){Y||(y==null||y({key:i,domEvent:Je}),I==="inline"&&T(i,!se));},Ye=Ps(function(Qe){v==null||v(Iu(Qe)),O(Qe);}),Be=function(Je){I!=="inline"&&T(i,Je);},Ve=function(){D(i);},Pe=E&&"".concat(E,"-popup"),xe=m__namespace.createElement("div",Ie({role:"menuitem",style:We,className:"".concat(X,"-title"),tabIndex:Y?null:-1,ref:ee,title:typeof a=="string"?a:null,"data-menu-id":M&&E?null:E,"aria-expanded":le,"aria-haspopup":!0,"aria-controls":Pe,"aria-disabled":Y,onClick:Me,onFocus:Ve},te),a,m__namespace.createElement(cE,{icon:I!=="horizontal"?q:void 0,props:U(U({},t),{},{isOpen:le,isSubMenu:!0})},m__namespace.createElement("i",{className:"".concat(X,"-arrow")}))),qe=m__namespace.useRef(I);if(I!=="inline"&&K.length>1?qe.current="vertical":qe.current=I,!M){var rt=qe.current;xe=m__namespace.createElement(dY,{mode:rt,prefixCls:X,visible:!l&&le&&I!=="inline",popupClassName:f,popupOffset:h,popupStyle:g,popup:m__namespace.createElement(il,{mode:rt==="horizontal"?"vertical":rt},m__namespace.createElement(xp,{id:Pe,ref:V},c)),disabled:Y,onVisibleChange:Be},xe);}var yt=m__namespace.createElement(ao.Item,Ie({role:"none"},x,{component:"li",style:r,className:W(X,"".concat(X,"-").concat(I),o,(n={},z(n,"".concat(X,"-open"),le),z(n,"".concat(X,"-active"),He),z(n,"".concat(X,"-selected"),Q),z(n,"".concat(X,"-disabled"),Y),n)),onMouseEnter:Ce,onMouseLeave:_e}),xe,!M&&m__namespace.createElement(fY,{id:Pe,open:le,keyPath:K},c));return B&&(yt=B(yt,t,{selected:Q,active:He,open:le,disabled:Y})),m__namespace.createElement(il,{onItemClick:Ye,mode:I==="horizontal"?"vertical":I,itemIcon:J,expandIcon:q},yt)};function gf(e){var t=e.eventKey,n=e.children,r=os(t),o=Ep(n,r),a=hf();m__namespace.useEffect(function(){if(a)return a.registerPath(t,r),function(){a.unregisterPath(t,r);}},[r]);var i;return a?i=o:i=m__namespace.createElement(gY,e,o),m__namespace.createElement(rE.Provider,{value:r},i)}var vY=["className","title","eventKey","children"],pY=["children"],bY=function(t){var n=t.className,r=t.title;t.eventKey;var o=t.children,a=et(t,vY),i=m__namespace.useContext(Hr),s=i.prefixCls,l="".concat(s,"-item-group");return m__namespace.createElement("li",Ie({role:"presentation"},a,{onClick:function(u){return u.stopPropagation()},className:W(l,n)}),m__namespace.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof r=="string"?r:void 0},r),m__namespace.createElement("ul",{role:"group",className:"".concat(l,"-list")},o))};function vf(e){var t=e.children,n=et(e,pY),r=os(n.eventKey),o=Ep(t,r),a=hf();return a?o:m__namespace.createElement(bY,Vn(n,["warnKey"]),o)}function Ip(e){var t=e.className,n=e.style,r=m__namespace.useContext(Hr),o=r.prefixCls,a=hf();return a?null:m__namespace.createElement("li",{role:"separator",className:W("".concat(o,"-item-divider"),t),style:n})}var yY=["label","children","key","type"];function fg(e){return (e||[]).map(function(t,n){if(t&&it(t)==="object"){var r=t,o=r.label,a=r.children,i=r.key,s=r.type,l=et(r,yY),c=i??"tmp-".concat(n);return a||s==="group"?s==="group"?m__namespace.createElement(vf,Ie({key:c},l,{title:o}),fg(a)):m__namespace.createElement(gf,Ie({key:c},l,{title:o}),fg(a)):s==="divider"?m__namespace.createElement(Ip,Ie({key:c},l)):m__namespace.createElement(Wl,Ie({key:c},l),o)}return null}).filter(function(t){return t})}function CY(e,t,n){var r=e;return t&&(r=fg(t)),Ep(r,n)}var SY=["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"],Ya=[],wY=m__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,f=o.items,h=o.children,g=o.direction,v=o.id,p=o.mode,b=p===void 0?"vertical":p,y=o.inlineCollapsed,C=o.disabled,w=o.disabledOverflow,x=o.subMenuOpenDelay,E=x===void 0?.1:x,S=o.subMenuCloseDelay,$=S===void 0?.1:S,I=o.forceSubMenuRender,P=o.defaultOpenKeys,R=o.openKeys,M=o.activeKey,k=o.defaultActiveFirst,A=o.selectable,L=A===void 0?!0:A,_=o.multiple,O=_===void 0?!1:_,T=o.defaultSelectedKeys,D=o.selectedKeys,j=o.onSelect,B=o.onDeselect,H=o.inlineIndent,G=H===void 0?24:H,K=o.motion,X=o.defaultMotions,Y=o.triggerSubMenuAction,ee=Y===void 0?"hover":Y,V=o.builtinPlacements,J=o.itemIcon,q=o.expandIcon,se=o.overflowedIndicator,le=se===void 0?"...":se,Q=o.overflowedIndicatorPopupClassName,ne=o.getPopupContainer,de=o.onClick,te=o.onOpenChange,ce=o.onKeyDown;o.openAnimation,o.openTransitionName;var ge=o._internalRenderMenuItem,re=o._internalRenderSubMenuItem,ae=et(o,SY),he=m__namespace.useMemo(function(){return CY(h,f,Ya)},[h,f]),Ce=m__namespace.useState(!1),_e=Z(Ce,2),He=_e[0],We=_e[1],Me=m__namespace.useRef(),Ye=Qq(v),Be=g==="rtl",Ve=qt(P,{value:R,postState:function(ot){return ot||Ya}}),Pe=Z(Ve,2),xe=Pe[0],qe=Pe[1],rt=function(ot){var vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function wt(){qe(ot),te==null||te(ot);}vt?HC.flushSync(wt):wt();},yt=m__namespace.useState(xe),Qe=Z(yt,2),Je=Qe[0],pt=Qe[1],ht=m__namespace.useRef(!1),lt=m__namespace.useMemo(function(){return (b==="inline"||b==="vertical")&&y?["vertical",y]:[b,!1]},[b,y]),ft=Z(lt,2),xt=ft[0],Oe=ft[1],Re=xt==="inline",ke=m__namespace.useState(xt),pe=Z(ke,2),De=pe[0],$e=pe[1],fe=m__namespace.useState(Oe),oe=Z(fe,2),ye=oe[0],ue=oe[1];m__namespace.useEffect(function(){$e(xt),ue(Oe),ht.current&&(Re?qe(Je):rt(Ya));},[xt,Oe]);var ve=m__namespace.useState(0),Ne=Z(ve,2),Ue=Ne[0],bt=Ne[1],gt=Ue>=he.length-1||De!=="horizontal"||w;m__namespace.useEffect(function(){Re&&pt(xe);},[xe]),m__namespace.useEffect(function(){return ht.current=!0,function(){ht.current=!1;}},[]);var Nt=Yq(),St=Nt.registerPath,ct=Nt.unregisterPath,Ae=Nt.refreshOverflowKeys,Ee=Nt.isSubPathKey,Se=Nt.getKeyPath,we=Nt.getKeys,je=Nt.getSubPathKeys,ut=m__namespace.useMemo(function(){return {registerPath:St,unregisterPath:ct}},[St,ct]),_t=m__namespace.useMemo(function(){return {isSubPathKey:Ee}},[Ee]);m__namespace.useEffect(function(){Ae(gt?Ya:he.slice(Ue+1).map(function(Le){return Le.key}));},[Ue,gt]);var Rt=qt(M||k&&((n=he[0])===null||n===void 0?void 0:n.key),{value:M}),hn=Z(Rt,2),un=hn[0],gn=hn[1],Wn=Ps(function(Le){gn(Le);}),wn=Ps(function(){gn(void 0);});m.useImperativeHandle(t,function(){return {list:Me.current,focus:function(ot){var vt,wt=un??((vt=he.find(function(tr){return !tr.props.disabled}))===null||vt===void 0?void 0:vt.key);if(wt){var At,en,Kn;(At=Me.current)===null||At===void 0||(en=At.querySelector("li[data-menu-id='".concat(Sp(Ye,wt),"']")))===null||en===void 0||(Kn=en.focus)===null||Kn===void 0||Kn.call(en,ot);}}}});var Ur=qt(T||[],{value:D,postState:function(ot){return Array.isArray(ot)?ot:ot==null?Ya:[ot]}}),uo=Z(Ur,2),Gn=uo[0],Oo=uo[1],Tr=function(ot){if(L){var vt=ot.key,wt=Gn.includes(vt),At;O?wt?At=Gn.filter(function(Kn){return Kn!==vt}):At=[].concat(Te(Gn),[vt]):At=[vt],Oo(At);var en=U(U({},ot),{},{selectedKeys:At});wt?B==null||B(en):j==null||j(en);}!O&&xe.length&&De!=="inline"&&rt(Ya);},ar=Ps(function(Le){de==null||de(Iu(Le)),Tr(Le);}),Cr=Ps(function(Le,ot){var vt=xe.filter(function(At){return At!==Le});if(ot)vt.push(Le);else if(De!=="inline"){var wt=je(Le);vt=vt.filter(function(At){return !wt.has(At)});}El(xe,vt,!0)||rt(vt,!0);}),Xr=function(ot,vt){var wt=vt??!xe.includes(ot);Cr(ot,wt);},qr=Uq(De,un,Be,Ye,Me,we,Se,gn,Xr,ce);m__namespace.useEffect(function(){We(!0);},[]);var er=m__namespace.useMemo(function(){return {_internalRenderMenuItem:ge,_internalRenderSubMenuItem:re}},[ge,re]),Yr=De!=="horizontal"||w?he:he.map(function(Le,ot){return m__namespace.createElement(il,{key:Le.key,overflowDisabled:ot>Ue},Le)}),dt=m__namespace.createElement(ao,Ie({id:v,ref:Me,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:Wl,className:W(i,"".concat(i,"-root"),"".concat(i,"-").concat(De),c,(r={},z(r,"".concat(i,"-inline-collapsed"),ye),z(r,"".concat(i,"-rtl"),Be),r),s),dir:g,style:l,role:"menu",tabIndex:d,data:Yr,renderRawItem:function(ot){return ot},renderRawRest:function(ot){var vt=ot.length,wt=vt?he.slice(-vt):null;return m__namespace.createElement(gf,{eventKey:dg,title:le,disabled:gt,internalPopupClose:vt===0,popupClassName:Q},wt)},maxCount:De!=="horizontal"||w?ao.INVALIDATE:ao.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(ot){bt(ot);},onKeyDown:qr},ae));return m__namespace.createElement(wp.Provider,{value:er},m__namespace.createElement(eE.Provider,{value:Ye},m__namespace.createElement(il,{prefixCls:i,rootClassName:s,mode:De,openKeys:xe,rtl:Be,disabled:C,motion:He?K:null,defaultMotions:He?X:null,activeKey:un,onActive:Wn,onInactive:wn,selectedKeys:Gn,inlineIndent:G,subMenuOpenDelay:E,subMenuCloseDelay:$,forceSubMenuRender:I,builtinPlacements:V,triggerSubMenuAction:ee,getPopupContainer:ne,itemIcon:J,expandIcon:q,onItemClick:ar,onOpenChange:Cr},m__namespace.createElement(oE.Provider,{value:_t},dt),m__namespace.createElement("div",{style:{display:"none"},"aria-hidden":!0},m__namespace.createElement(nE.Provider,{value:ut},he)))))}),as=wY;as.Item=Wl;as.SubMenu=gf;as.ItemGroup=vf;as.Divider=Ip;var $Y={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=$Y;var EY=function(t,n){return m__namespace.createElement(_n,Ie({},t,{ref:n,icon:xY}))};const Pu=m__namespace.forwardRef(EY),dE=m__namespace.createContext({});var IY=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 PY=e=>{const{prefixCls:t,className:n,dashed:r}=e,o=IY(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=m__namespace.useContext(tt),i=a("menu",t),s=W({[`${i}-item-divider-dashed`]:!!r},n);return m__namespace.createElement(Ip,Object.assign({className:s},o))},fE=PY,OY=m.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Ou=OY,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}=m__namespace.useContext(Ou),f=y=>{const C=m__namespace.createElement("span",{className:`${s}-title-content`},r);return (!o||wo(r)&&r.type==="span")&&r&&y&&l&&typeof r=="string"?m__namespace.createElement("div",{className:`${s}-inline-collapsed-noicon`},r.charAt(0)):C},{siderCollapsed:h}=m__namespace.useContext(dE);let g=a;typeof a>"u"?g=l?r:"":a===!1&&(g="");const v={title:g};!h&&!d&&(v.title=null,v.open=!1);const p=vr(r).length;let b=m__namespace.createElement(Wl,Object.assign({},Vn(e,["title","icon","danger"]),{className:W({[`${s}-item-danger`]:i,[`${s}-item-only-child`]:(o?p+1:p)===1},n),title:typeof a=="string"?a:void 0}),Zn(o,{className:W(wo(o)?(t=o.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),f(d));return u||(b=m__namespace.createElement(Pl,Object.assign({},v,{placement:c==="rtl"?"left":"right",overlayClassName:`${s}-inline-collapsed-tooltip`}),b)),b},mE=MY,RY=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:a}=e,i=m__namespace.useContext(Ou),{prefixCls:s,inlineCollapsed:l,theme:c}=i,u=os();let d;if(!r)d=l&&!u.length&&o&&typeof o=="string"?m__namespace.createElement("div",{className:`${s}-inline-collapsed-noicon`},o.charAt(0)):m__namespace.createElement("span",{className:`${s}-title-content`},o);else {const g=wo(o)&&o.type==="span";d=m__namespace.createElement(m__namespace.Fragment,null,Zn(r,{className:W(wo(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),g?o:m__namespace.createElement("span",{className:`${s}-title-content`},o));}const f=m__namespace.useMemo(()=>Object.assign(Object.assign({},i),{firstLevel:!1}),[i]),[h]=kd("Menu");return m__namespace.createElement(Ou.Provider,{value:f},m__namespace.createElement(gf,Object.assign({},Vn(e,["icon"]),{title:d,popupClassName:W(s,n,`${s}-${a||c}`),popupStyle:{zIndex:h}})))},hE=RY;var TY={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 _Y=TY;var kY=function(t,n){return m__namespace.createElement(_n,Ie({},t,{ref:n,icon:_Y}))};const Pp=m__namespace.forwardRef(kY);var NY=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 mg(e){return (e||[]).map((t,n)=>{if(t&&typeof t=="object"){const r=t,{label:o,children:a,key:i,type:s}=r,l=NY(r,["label","children","key","type"]),c=i??`tmp-${n}`;return a||s==="group"?s==="group"?m__namespace.createElement(vf,Object.assign({key:c},l,{title:o}),mg(a)):m__namespace.createElement(hE,Object.assign({key:c},l,{title:o}),mg(a)):s==="divider"?m__namespace.createElement(fE,Object.assign({key:c},l)):m__namespace.createElement(mE,Object.assign({key:c},l),o)}return null}).filter(t=>t)}function AY(e){return m__namespace.useMemo(()=>e&&mg(e),[e])}var LY=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 Mu=m__namespace.createContext(null),FY=m__namespace.forwardRef((e,t)=>{const{children:n}=e,r=LY(e,["children"]),o=m__namespace.useContext(Mu),a=m__namespace.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable]),i=aD(n),s=Ra(t,i?n.ref:null);return m__namespace.createElement(Mu.Provider,{value:a},m__namespace.createElement(Mi,null,i?m__namespace.cloneElement(n,{ref:s}):n))}),DY=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"}}}},jY=DY,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})`}}}}},BY=zY,$1=e=>Object.assign({},wa(e)),HY=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:a,itemBg:i,subMenuItemBg:s,itemSelectedBg:l,activeBarHeight:c,activeBarWidth:u,activeBarBorderWidth:d,motionDurationSlow:f,motionEaseInOut:h,motionEaseOut:g,itemPaddingInline:v,motionDurationMid:p,itemHoverColor:b,lineType:y,colorSplit:C,itemDisabledColor:w,dangerItemColor:x,dangerItemHoverColor:E,dangerItemSelectedColor:S,dangerItemActiveBg:$,dangerItemSelectedBg:I,itemHoverBg:P,itemActiveBg:R,menuSubMenuBg:M,horizontalItemSelectedColor:k,horizontalItemSelectedBg:A,horizontalItemBorderRadius:L,horizontalItemHoverBg:_,popupBg:O}=e;return {[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:i,[`&${n}-root:focus-visible`]:Object.assign({},$1(e)),[`${n}-item-group-title`]:{color:a},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${w} !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:P},"&:active":{backgroundColor:R}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:P},"&:active":{backgroundColor:R}}},[`${n}-item-danger`]:{color:x,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:E}},[`&${n}-item:active`]:{background:$}},[`${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({},$1(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:M},[`&${n}-popup > ${n}`]:{backgroundColor:O},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:-d,marginBottom:0,borderRadius:L,"&::after":{position:"absolute",insetInline:v,bottom:0,borderBottom:`${c}px solid transparent`,transition:`border-color ${f} ${h}`,content:'""'},"&:hover, &-active, &-open":{background:_,"&::after":{borderBottomWidth:c,borderBottomColor:k}},"&-selected":{color:k,backgroundColor:A,"&:hover":{backgroundColor:A},"&::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} ${g}`,`opacity ${p} ${g}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:S}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${p} ${h}`,`opacity ${p} ${h}`].join(",")}}}}}},x1=HY,E1=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}}},VY=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:f,paddingXS:h,boxShadowSecondary:g,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"}},E1(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},E1(e)),{boxShadow:g})}},{[`${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 ${f}`,`background ${f}`,`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({},Sa),{paddingInline:h})}}]},WY=VY,I1=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({},Ta()),[`&${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"}}}},P1=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})`}}}}},GY=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:f,subMenuItemBorderRadius:h,menuArrowSize:g,menuArrowOffset:v,lineType:p,menuPanelMaskInset:b,groupTitleLineHeight:y,groupTitleFontSize:C}=e;return [{"":{[`${n}`]:Object.assign(Object.assign({},$h()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},jt(e)),$h()),{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"}}}),I1(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:f,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:f},I1(e)),P1(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:h},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${i}`}})}}),P1(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(-${g*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${v})`},"&::before":{transform:`rotate(45deg) translateX(${v})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},KY=(e,t)=>Kt("Menu",r=>{if(t===!1)return [];const{colorBgElevated:o,colorPrimary:a,colorTextLightSolid:i,controlHeightLG:s,fontSize:l,darkItemColor:c,darkDangerItemColor:u,darkItemBg:d,darkSubMenuItemBg:f,darkItemSelectedColor:h,darkItemSelectedBg:g,darkDangerItemSelectedBg:v,darkItemHoverBg:p,darkGroupTitleColor:b,darkItemHoverColor:y,darkItemDisabledColor:C,darkDangerItemHoverColor:w,darkDangerItemSelectedColor:x,darkDangerItemActiveBg:E}=r,S=l/7*5,$=Ct(r,{menuArrowSize:S,menuHorizontalHeight:s*1.15,menuArrowOffset:`${S*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:o}),I=Ct($,{itemColor:c,itemHoverColor:y,groupTitleColor:b,itemSelectedColor:h,itemBg:d,popupBg:d,subMenuItemBg:f,itemActiveBg:"transparent",itemSelectedBg:g,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:p,itemDisabledColor:C,dangerItemColor:u,dangerItemHoverColor:w,dangerItemSelectedColor:x,dangerItemActiveBg:E,dangerItemSelectedBg:v,menuSubMenuBg:f,horizontalItemSelectedColor:i,horizontalItemSelectedBg:a});return [GY($),jY($),WY($),x1($,"light"),x1(I,"dark"),BY($),I$($),Vo($,"slide-up"),Vo($,"slide-down"),Dd($,"zoom-big")]},r=>{const{colorPrimary:o,colorError:a,colorTextDisabled:i,colorErrorBg:s,colorText:l,colorTextDescription:c,colorBgContainer:u,colorFillAlter:d,colorFillContent:f,lineWidth:h,lineWidthBold:g,controlItemBgActive:v,colorBgTextHover:p,controlHeightLG:b,lineHeight:y,colorBgElevated:C,marginXXS:w,padding:x,fontSize:E,controlHeightSM:S,fontSizeLG:$,colorTextLightSolid:I,colorErrorHover:P}=r,R=new Jt(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:f,itemActiveBg:v,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:v,itemSelectedBg:v,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:g,activeBarHeight:g,colorActiveBarBorderSize:h,activeBarBorderWidth:h,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:w,itemPaddingInline:x,horizontalLineHeight:`${b*1.15}px`,iconSize:E,iconMarginInlineEnd:S-E,collapsedIconSize:$,groupTitleFontSize:E,darkItemDisabledColor:new Jt(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:P,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 UY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const XY=m.forwardRef((e,t)=>{var n,r;const o=m__namespace.useContext(Mu),a=o||{},{getPrefixCls:i,getPopupContainer:s,direction:l,menu:c}=m__namespace.useContext(tt),u=i(),{prefixCls:d,className:f,style:h,theme:g="light",expandIcon:v,_internalDisableMenuItemTitleTooltip:p,inlineCollapsed:b,siderCollapsed:y,items:C,children:w,rootClassName:x,mode:E,selectable:S,onClick:$,overflowedIndicatorPopupClassName:I}=e,P=UY(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),R=Vn(P,["collapsedWidth"]),M=AY(C)||w;(n=a.validator)===null||n===void 0||n.call(a,{mode:E});const k=Ln(function(){var K;$==null||$.apply(void 0,arguments),(K=a.onClick)===null||K===void 0||K.call(a);}),A=a.mode||E,L=S??a.selectable,_=m__namespace.useMemo(()=>y!==void 0?y:b,[b,y]),O={horizontal:{motionName:`${u}-slide-up`},inline:d$(u),other:{motionName:`${u}-zoom-big`}},T=i("menu",d||a.prefixCls),[D,j]=KY(T,!o),B=W(`${T}-${g}`,c==null?void 0:c.className,f);let H;if(typeof v=="function")H=v;else if(v===null||v===!1)H=null;else if(a.expandIcon===null||a.expandIcon===!1)H=null;else {const K=v??a.expandIcon;H=Zn(K,{className:W(`${T}-submenu-expand-icon`,wo(K)?(r=K.props)===null||r===void 0?void 0:r.className:"")});}const G=m__namespace.useMemo(()=>({prefixCls:T,inlineCollapsed:_||!1,direction:l,firstLevel:!0,theme:g,mode:A,disableMenuItemTitleTooltip:p}),[T,_,l,p,g]);return D(m__namespace.createElement(Mu.Provider,{value:null},m__namespace.createElement(Ou.Provider,{value:G},m__namespace.createElement(as,Object.assign({getPopupContainer:s,overflowedIndicator:m__namespace.createElement(Pp,null),overflowedIndicatorPopupClassName:W(T,`${T}-${g}`,I),mode:A,selectable:L,onClick:k},R,{inlineCollapsed:_,style:Object.assign(Object.assign({},c==null?void 0:c.style),h),className:B,prefixCls:T,direction:l,defaultMotions:O,expandIcon:H,ref:t,rootClassName:W(x,j)}),M))))}),qY=XY,Gl=m.forwardRef((e,t)=>{const n=m.useRef(null),r=m__namespace.useContext(dE);return m.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{var a;(a=n.current)===null||a===void 0||a.focus(o);}})),m__namespace.createElement(qY,Object.assign({ref:n},e,r))});Gl.Item=mE;Gl.SubMenu=hE;Gl.Divider=fE;Gl.ItemGroup=vf;const YY=Gl,ZY=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=ZY,JY=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:f,fontSizeIcon:h,controlPaddingHorizontal:g,colorBgElevated:v}=e;return [{[t]:Object.assign(Object.assign({},jt(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:h}},[`${t}-wrap`]:{position:"relative",[`${i}-btn > ${s}-down`]:{fontSize:h},[`${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:jv},[`&${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:Bv},[`&${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:zv},[`&${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:Hv}})},kv(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},$a(e)),{[`${n}-item-group-title`]:{padding:`${c}px ${g}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 ${g}px`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${l}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},$a(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:f,cursor:"not-allowed","&:hover":{color:f,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:h,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${e.marginXS}px`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:g+e.fontSizeSM},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:f,backgroundColor:v,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[Vo(e,"slide-up"),Vo(e,"slide-down"),fu(e,"move-up"),fu(e,"move-down"),Dd(e,"zoom-big")]]},gE=Kt("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:f}=_v({contentRadius:u}),h=Ct(e,{menuCls:`${c}-menu`,rootPrefixCls:n,dropdownArrowDistance:o/2+r,dropdownArrowOffset:f,dropdownPaddingVertical:d,dropdownEdgeChildPadding:l});return [JY(h),QY(h)]},e=>({zIndexPopup:e.zIndexPopupBase+50})),Op=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:f,onOpenChange:h,visible:g,onVisibleChange:v,mouseEnterDelay:p=.15,mouseLeaveDelay:b=.1,autoAdjustOverflow:y=!0,placement:C="",overlay:w,transitionName:x}=e,{getPopupContainer:E,getPrefixCls:S,direction:$,dropdown:I}=m__namespace.useContext(tt);g$();const P=m__namespace.useMemo(()=>{const q=S();return x!==void 0?x:C.includes("top")?`${q}-slide-down`:`${q}-slide-up`},[S,C,x]),R=m__namespace.useMemo(()=>C?C.includes("Center")?C.slice(0,C.indexOf("Center")):C:$==="rtl"?"bottomRight":"bottomLeft",[C,$]),M=S("dropdown",r),[k,A]=gE(M),[,L]=rr(),_=m__namespace.Children.only(o),O=Zn(_,{className:W(`${M}-trigger`,{[`${M}-rtl`]:$==="rtl"},_.props.className),disabled:i}),T=i?[]:a;let D;T&&T.includes("contextMenu")&&(D=!0);const[j,B]=qt(!1,{value:f??g}),H=Ln(q=>{h==null||h(q,{source:"trigger"}),v==null||v(q),B(q);}),G=W(c,u,A,I==null?void 0:I.className,{[`${M}-rtl`]:$==="rtl"}),K=m$({arrowPointAtCenter:typeof n=="object"&&n.pointAtCenter,autoAdjustOverflow:y,offset:L.marginXXS,arrowWidth:n?L.sizePopupArrow:0,borderRadius:L.borderRadius}),X=m__namespace.useCallback(()=>{t!=null&&t.selectable&&(t!=null&&t.multiple)||(h==null||h(!1,{source:"menu"}),B(!1));},[t==null?void 0:t.selectable,t==null?void 0:t.multiple]),Y=()=>{let q;return t!=null&&t.items?q=m__namespace.createElement(YY,Object.assign({},t)):typeof w=="function"?q=w():q=w,s&&(q=s(q)),q=m__namespace.Children.only(typeof q=="string"?m__namespace.createElement("span",null,q):q),m__namespace.createElement(FY,{prefixCls:`${M}-menu`,expandIcon:m__namespace.createElement("span",{className:`${M}-menu-submenu-arrow`},m__namespace.createElement(Fi,{className:`${M}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:X,validator:se=>{}},q)},[ee,V]=kd("Dropdown",d==null?void 0:d.zIndex);let J=m__namespace.createElement(Y2,Object.assign({alignPoint:D},Vn(e,["rootClassName"]),{mouseEnterDelay:p,mouseLeaveDelay:b,visible:j,builtinPlacements:K,arrow:!!n,overlayClassName:G,prefixCls:M,getPopupContainer:l||E,transitionName:P,trigger:T,overlay:Y,placement:R,onVisibleChange:H,overlayStyle:Object.assign(Object.assign(Object.assign({},I==null?void 0:I.style),d),{zIndex:ee})}),O);return ee&&(J=m__namespace.createElement(Tv.Provider,{value:V},J)),k(J)};function eZ(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const tZ=Cp(Op,"dropdown",e=>e,eZ),nZ=e=>m__namespace.createElement(tZ,Object.assign({},e),m__namespace.createElement("span",null));Op._InternalPanelDoNotUseOrYouWillBeFired=nZ;const vE=Op;var rZ=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 pE=m__namespace.createContext(void 0),oZ=e=>{const{getPrefixCls:t,direction:n}=m__namespace.useContext(tt),{prefixCls:r,size:o,className:a}=e,i=rZ(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=rr();let c="";switch(o){case"large":c="lg";break;case"small":c="sm";break}const u=W(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:n==="rtl"},a,l);return m__namespace.createElement(pE.Provider,{value:o},m__namespace.createElement("div",Object.assign({},i,{className:u})))},aZ=oZ,O1=/^[\u4e00-\u9fa5]{2}$/,hg=O1.test.bind(O1);function bE(e){return e==="danger"?{danger:!0}:{type:e}}function M1(e){return typeof e=="string"}function Cm(e){return e==="text"||e==="link"}function iZ(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&M1(e.type)&&hg(e.props.children)?Zn(e,{children:e.props.children.split("").join(n)}):M1(e)?hg(e)?m.createElement("span",null,e.split("").join(n)):m.createElement("span",null,e):h$(e)?m.createElement("span",null,e):e}function sZ(e,t){let n=!1;const r=[];return m.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;}),m.Children.map(r,o=>iZ(o,t))}const lZ=m.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:a}=e,i=W(`${a}-icon`,n);return m.createElement("span",{ref:t,className:i,style:r},o)}),yE=lZ;var cZ={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 uZ=cZ;var dZ=function(t,n){return m__namespace.createElement(_n,Ie({},t,{ref:n,icon:uZ}))};const Mp=m__namespace.forwardRef(dZ),R1=m.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:o,iconClassName:a}=e;const i=W(`${n}-loading-icon`,r);return m.createElement(yE,{prefixCls:n,className:i,style:o,ref:t},m.createElement(Mp,{className:a}))}),Sm=()=>({width:0,opacity:0,transform:"scale(0)"}),wm=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),fZ=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:a}=e,i=!!n;return r?m.createElement(R1,{prefixCls:t,className:o,style:a}):m.createElement(Io,{visible:i,motionName:`${t}-loading-icon-motion`,motionLeave:i,removeOnLeave:!0,onAppearStart:Sm,onAppearActive:wm,onEnterStart:Sm,onEnterActive:wm,onLeaveStart:wm,onLeaveActive:Sm},(s,l)=>{let{className:c,style:u}=s;return m.createElement(R1,{prefixCls:t,className:o,style:Object.assign(Object.assign({},a),u),ref:l,iconClassName:c})})},mZ=fZ,T1=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),hZ=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}},T1(`${t}-primary`,o),T1(`${t}-danger`,a)]}},gZ=hZ,vZ=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({},$a(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:'""'}}}}}}},xo=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),pZ=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),bZ=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),yZ=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),sl=(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"},xo(e,Object.assign({backgroundColor:t},i),Object.assign({backgroundColor:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:a||void 0}})}),Rp=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},yZ(e))}),CE=e=>Object.assign({},Rp(e)),Ru=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),SE=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},CE(e)),{backgroundColor:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),xo(e.componentCls,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),sl(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},xo(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),sl(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),Rp(e))}),CZ=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},CE(e)),{color:e.primaryColor,backgroundColor:e.colorPrimary,boxShadow:e.primaryShadow}),xo(e.componentCls,{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),sl(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},xo(e.componentCls,{backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),sl(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Rp(e))}),SZ=e=>Object.assign(Object.assign({},SE(e)),{borderStyle:"dashed"}),wZ=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},xo(e.componentCls,{color:e.colorLinkHover,backgroundColor:e.linkHoverBg},{color:e.colorLinkActive})),Ru(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},xo(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),Ru(e))}),$Z=e=>Object.assign(Object.assign(Object.assign({},xo(e.componentCls,{color:e.colorText,backgroundColor:e.textHoverBg},{color:e.colorText,backgroundColor:e.colorBgTextActive})),Ru(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Ru(e)),xo(e.componentCls,{color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),xZ=e=>{const{componentCls:t}=e;return {[`${t}-default`]:SE(e),[`${t}-primary`]:CZ(e),[`${t}-dashed`]:SZ(e),[`${t}-link`]:wZ(e),[`${t}-text`]:$Z(e),[`${t}-ghost`]:sl(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},Tp=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}`]:pZ(e)},{[`${n}${n}-round${t}`]:bZ(e)}]},EZ=e=>Tp(Ct(e,{fontSize:e.contentFontSize})),IZ=e=>{const t=Ct(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Tp(t,`${e.componentCls}-sm`)},PZ=e=>{const t=Ct(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Tp(t,`${e.componentCls}-lg`)},OZ=e=>{const{componentCls:t}=e;return {[t]:{[`&${t}-block`]:{width:"100%"}}}},wE=e=>{const{paddingInline:t,onlyIconSize:n}=e;return Ct(e,{buttonPaddingHorizontal:t,buttonIconOnlyFontSize:n})},$E=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}),MZ=Kt("Button",e=>{const t=wE(e);return [vZ(t),IZ(t),EZ(t),PZ(t),OZ(t),xZ(t),gZ(t)]},$E);function RZ(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 TZ(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 pf(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({},RZ(e,r,t)),TZ(n,r,t))}}function _Z(e,t){return {[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function kZ(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 NZ(e){const t=`${e.componentCls}-compact-vertical`;return {[t]:Object.assign(Object.assign({},_Z(e,t)),kZ(e.componentCls,t))}}const AZ=Lv(["Button","compact"],e=>{const t=wE(e);return [pf(t),NZ(t)]},$E);var LZ=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){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 DZ=(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:f,rootClassName:h,children:g,icon:v,ghost:p=!1,block:b=!1,htmlType:y="button",classNames:C,style:w={}}=e,x=LZ(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:E,autoInsertSpaceInButton:S,direction:$,button:I}=m.useContext(tt),P=E("btn",a),[R,M]=MZ(P),k=m.useContext(Kr),A=d??k,L=m.useContext(pE),_=m.useMemo(()=>FZ(o),[o]),[O,T]=m.useState(_.loading),[D,j]=m.useState(!1),H=Jn(t,m.createRef()),G=m.Children.count(g)===1&&!v&&!Cm(i);m.useEffect(()=>{let ae=null;_.delay>0?ae=setTimeout(()=>{ae=null,T(!0);},_.delay):T(_.loading);function he(){ae&&(clearTimeout(ae),ae=null);}return he},[_]),m.useEffect(()=>{if(!H||!H.current||S===!1)return;const ae=H.current.textContent;G&&hg(ae)?D||j(!0):D&&j(!1);},[H]);const K=ae=>{const{onClick:he}=e;if(O||A){ae.preventDefault();return}he==null||he(ae);},X=S!==!1,{compactSize:Y,compactItemClassnames:ee}=es(P,$),V={large:"lg",small:"sm",middle:void 0},J=or(ae=>{var he,Ce;return (Ce=(he=c??Y)!==null&&he!==void 0?he:L)!==null&&Ce!==void 0?Ce:ae}),q=J&&V[J]||"",se=O?"loading":v,le=Vn(x,["navigate"]),Q=W(P,M,{[`${P}-${l}`]:l!=="default"&&l,[`${P}-${i}`]:i,[`${P}-${q}`]:q,[`${P}-icon-only`]:!g&&g!==0&&!!se,[`${P}-background-ghost`]:p&&!Cm(i),[`${P}-loading`]:O,[`${P}-two-chinese-chars`]:D&&X&&!O,[`${P}-block`]:b,[`${P}-dangerous`]:!!s,[`${P}-rtl`]:$==="rtl"},ee,f,h,I==null?void 0:I.className),ne=Object.assign(Object.assign({},I==null?void 0:I.style),w),de=W(C==null?void 0:C.icon,(n=I==null?void 0:I.classNames)===null||n===void 0?void 0:n.icon),te=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)||{}),ce=v&&!O?m.createElement(yE,{prefixCls:P,className:de,style:te},v):m.createElement(mZ,{existIcon:!!v,prefixCls:P,loading:!!O}),ge=g||g===0?sZ(g,G&&X):null;if(le.href!==void 0)return R(m.createElement("a",Object.assign({},le,{className:W(Q,{[`${P}-disabled`]:A}),href:A?void 0:le.href,style:ne,onClick:K,ref:H,tabIndex:A?-1:0}),ce,ge));let re=m.createElement("button",Object.assign({},x,{type:y,className:Q,style:ne,onClick:K,disabled:A,ref:H}),ce,ge,ee&&m.createElement(AZ,{key:"compact",prefixCls:P}));return Cm(i)||(re=m.createElement(zl,{component:"Button",disabled:!!O},re)),R(re)},_p=m.forwardRef(DZ);_p.Group=aZ;_p.__ANT_BUTTON=!0;const Qt=_p;function _1(e){return ["small","middle","large"].includes(e)}function k1(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const xE=m.createContext({latestIndex:0}),jZ=xE.Provider,zZ=e=>{let{className:t,index:n,children:r,split:o,style:a}=e;const{latestIndex:i}=m__namespace.useContext(xE);return r==null?null:m__namespace.createElement(m__namespace.Fragment,null,m__namespace.createElement("div",{className:t,style:a},r),n<i&&o&&m__namespace.createElement("span",{className:`${t}-split`},o))},BZ=zZ;var HZ=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=m__namespace.forwardRef((e,t)=>{var n,r;const{getPrefixCls:o,space:a,direction:i}=m__namespace.useContext(tt),{size:s=(a==null?void 0:a.size)||"small",align:l,className:c,rootClassName:u,children:d,direction:f="horizontal",prefixCls:h,split:g,style:v,wrap:p=!1,classNames:b,styles:y}=e,C=HZ(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[w,x]=Array.isArray(s)?s:[s,s],E=_1(x),S=_1(w),$=k1(x),I=k1(w),P=vr(d,{keepEmpty:!0}),R=l===void 0&&f==="horizontal"?"center":l,M=o("space",h),[k,A]=x$(M),L=W(M,a==null?void 0:a.className,A,`${M}-${f}`,{[`${M}-rtl`]:i==="rtl",[`${M}-align-${R}`]:R,[`${M}-gap-row-${x}`]:E,[`${M}-gap-col-${w}`]:S},c,u),_=W(`${M}-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 O=0;const T=P.map((B,H)=>{var G,K;B!=null&&(O=H);const X=B&&B.key||`${_}-${H}`;return m__namespace.createElement(BZ,{className:_,key:X,index:H,split:g,style:(G=y==null?void 0:y.item)!==null&&G!==void 0?G:(K=a==null?void 0:a.styles)===null||K===void 0?void 0:K.item},B)}),D=m__namespace.useMemo(()=>({latestIndex:O}),[O]);if(P.length===0)return null;const j={};return p&&(j.flexWrap="wrap"),!S&&I&&(j.columnGap=w),!E&&$&&(j.rowGap=x),k(m__namespace.createElement("div",Object.assign({ref:t,className:L,style:Object.assign(Object.assign(Object.assign({},j),a==null?void 0:a.style),v)},C),m__namespace.createElement(jZ,{value:D},T)))}),EE=VZ;EE.Compact=O8;const Kl=EE;var WZ=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 IE=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=m__namespace.useContext(tt),{prefixCls:o,type:a="default",danger:i,disabled:s,loading:l,onClick:c,htmlType:u,children:d,className:f,menu:h,arrow:g,autoFocus:v,overlay:p,trigger:b,align:y,open:C,onOpenChange:w,placement:x,getPopupContainer:E,href:S,icon:$=m__namespace.createElement(Pp,null),title:I,buttonsRender:P=q=>q,mouseEnterDelay:R,mouseLeaveDelay:M,overlayClassName:k,overlayStyle:A,destroyPopupOnHide:L,dropdownRender:_}=e,O=WZ(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"]),T=n("dropdown",o),D=`${T}-button`,[j,B]=gE(T),H={menu:h,arrow:g,autoFocus:v,align:y,disabled:s,trigger:s?[]:b,onOpenChange:w,getPopupContainer:E||t,mouseEnterDelay:R,mouseLeaveDelay:M,overlayClassName:k,overlayStyle:A,destroyPopupOnHide:L,dropdownRender:_},{compactSize:G,compactItemClassnames:K}=es(T,r),X=W(D,K,f,B);"overlay"in e&&(H.overlay=p),"open"in e&&(H.open=C),"placement"in e?H.placement=x:H.placement=r==="rtl"?"bottomLeft":"bottomRight";const Y=m__namespace.createElement(Qt,{type:a,danger:i,disabled:s,loading:l,onClick:c,htmlType:u,href:S,title:I},d),ee=m__namespace.createElement(Qt,{type:a,danger:i,icon:$}),[V,J]=P([Y,ee]);return j(m__namespace.createElement(Kl.Compact,Object.assign({className:X,size:G,block:!0},O),V,m__namespace.createElement(vE,Object.assign({},H),J)))};IE.__ANT_BUTTON=!0;const GZ=IE,PE=vE;PE.Button=GZ;const kp=PE;function ri(e,t,n){const r=at(n);m.useEffect(()=>(e.on(t,r),()=>{e.off(t,r);}),[e]);}const KZ=new kt("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),UZ=new kt("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),XZ=new kt("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),qZ=new kt("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),YZ=new kt("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),ZZ=new kt("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),QZ=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:f,marginXS:h}=e,g=`${r}-scroll-number`,v=Ld(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({},jt(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:f,height:f,fontSize:s,lineHeight:`${f}px`,borderRadius:f/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${g}`]:{transition:`background ${a}`},[`${t}-count, ${t}-dot, ${g}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:ZZ,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:KZ,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:h,color:e.colorText,fontSize:e.fontSize}}}),v),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:UZ,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:XZ,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:qZ,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:YZ,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${g}-custom-component, ${t}-count`]:{transform:"none"},[`${g}-custom-component, ${g}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[`${g}`]:{overflow:"hidden",[`${g}-only`]:{position:"relative",display:"inline-block",height:d,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${g}-only-unit`]:{height:d,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${g}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${g}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},OE=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 Ct(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%)"})},ME=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}},JZ=Kt("Badge",e=>{const t=OE(e);return [QZ(t)]},ME),eQ=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:o}=e,a=`${t}-ribbon`,i=`${t}-ribbon-wrapper`,s=Ld(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({},jt(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"}})}},tQ=Kt(["Badge","Ribbon"],e=>{const t=OE(e);return [eQ(t)]},ME),nQ=e=>{const{className:t,prefixCls:n,style:r,color:o,children:a,text:i,placement:s="end",rootClassName:l}=e,{getPrefixCls:c,direction:u}=m__namespace.useContext(tt),d=c("ribbon",n),f=jd(o,!1),h=W(d,`${d}-placement-${s}`,{[`${d}-rtl`]:u==="rtl",[`${d}-color-${o}`]:f},t),[g,v]=tQ(d),p={},b={};return o&&!f&&(p.background=o,b.color=o),g(m__namespace.createElement("div",{className:W(`${d}-wrapper`,l,v)},a,m__namespace.createElement("div",{className:W(h,v),style:Object.assign(Object.assign({},p),r)},m__namespace.createElement("span",{className:`${d}-text`},i),m__namespace.createElement("div",{className:`${d}-corner`,style:b}))))},rQ=nQ;function N1(e){let{prefixCls:t,value:n,current:r,offset:o=0}=e,a;return o&&(a={position:"absolute",top:`${o}00%`,left:0}),m__namespace.createElement("span",{style:a,className:W(`${t}-only-unit`,{current:r})},n)}function oQ(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}function aQ(e){const{prefixCls:t,count:n,value:r}=e,o=Number(r),a=Math.abs(n),[i,s]=m__namespace.useState(o),[l,c]=m__namespace.useState(a),u=()=>{s(o),c(a);};m__namespace.useEffect(()=>{const h=setTimeout(()=>{u();},1e3);return ()=>{clearTimeout(h);}},[o]);let d,f;if(i===o||Number.isNaN(o)||Number.isNaN(i))d=[m__namespace.createElement(N1,Object.assign({},e,{key:o,current:!0}))],f={transition:"none"};else {d=[];const h=o+10,g=[];for(let b=o;b<=h;b+=1)g.push(b);const v=g.findIndex(b=>b%10===i);d=g.map((b,y)=>{const C=b%10;return m__namespace.createElement(N1,Object.assign({},e,{key:b,value:C,offset:y-v,current:y===v}))});const p=l<a?1:-1;f={transform:`translateY(${-oQ(i,o,p)}00%)`};}return m__namespace.createElement("span",{className:`${t}-only`,style:f,onTransitionEnd:u},d)}var iQ=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 sQ=m__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=iQ(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:f}=m__namespace.useContext(tt),h=f("scroll-number",n),g=Object.assign(Object.assign({},d),{"data-show":l,style:i,className:W(h,o,a),title:s});let v=r;if(r&&Number(r)%1===0){const p=String(r).split("");v=m__namespace.createElement("bdi",null,p.map((b,y)=>m__namespace.createElement(aQ,{prefixCls:h,count:Number(r),value:b,key:p.length-y})));}return i&&i.borderColor&&(g.style=Object.assign(Object.assign({},i),{boxShadow:`0 0 0 1px ${i.borderColor} inset`})),u?Zn(u,p=>({className:W(`${h}-custom-component`,p==null?void 0:p.className,a)})):m__namespace.createElement(c,Object.assign({},g,{ref:t}),v)}),lQ=sQ;var cQ=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 uQ=(e,t)=>{var n,r,o,a,i;const{prefixCls:s,scrollNumberPrefixCls:l,children:c,status:u,text:d,color:f,count:h=null,overflowCount:g=99,dot:v=!1,size:p="default",title:b,offset:y,style:C,className:w,rootClassName:x,classNames:E,styles:S,showZero:$=!1}=e,I=cQ(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:P,direction:R,badge:M}=m__namespace.useContext(tt),k=P("badge",s),[A,L]=JZ(k),_=h>g?`${g}+`:h,O=_==="0"||_===0,T=h===null||O&&!$,D=(u!=null||f!=null)&&T,j=v&&!O,B=j?"":_,H=m.useMemo(()=>(B==null||B===""||O&&!$)&&!j,[B,O,$,j]),G=m.useRef(h);H||(G.current=h);const K=G.current,X=m.useRef(B);H||(X.current=B);const Y=X.current,ee=m.useRef(j);H||(ee.current=j);const V=m.useMemo(()=>{if(!y)return Object.assign(Object.assign({},M==null?void 0:M.style),C);const te={marginTop:y[1]};return R==="rtl"?te.left=parseInt(y[0],10):te.right=-parseInt(y[0],10),Object.assign(Object.assign(Object.assign({},te),M==null?void 0:M.style),C)},[R,y,C,M==null?void 0:M.style]),J=b??(typeof K=="string"||typeof K=="number"?K:void 0),q=H||!d?null:m__namespace.createElement("span",{className:`${k}-status-text`},d),se=!K||typeof K!="object"?void 0:Zn(K,te=>({style:Object.assign(Object.assign({},V),te.style)})),le=jd(f,!1),Q=W(E==null?void 0:E.indicator,(n=M==null?void 0:M.classNames)===null||n===void 0?void 0:n.indicator,{[`${k}-status-dot`]:D,[`${k}-status-${u}`]:!!u,[`${k}-color-${f}`]:le}),ne={};f&&!le&&(ne.color=f,ne.background=f);const de=W(k,{[`${k}-status`]:D,[`${k}-not-a-wrapper`]:!c,[`${k}-rtl`]:R==="rtl"},w,x,M==null?void 0:M.className,(r=M==null?void 0:M.classNames)===null||r===void 0?void 0:r.root,E==null?void 0:E.root,L);if(!c&&D){const te=V.color;return A(m__namespace.createElement("span",Object.assign({},I,{className:de,style:Object.assign(Object.assign(Object.assign({},S==null?void 0:S.root),(o=M==null?void 0:M.styles)===null||o===void 0?void 0:o.root),V)}),m__namespace.createElement("span",{className:Q,style:Object.assign(Object.assign(Object.assign({},S==null?void 0:S.indicator),(a=M==null?void 0:M.styles)===null||a===void 0?void 0:a.indicator),ne)}),d&&m__namespace.createElement("span",{style:{color:te},className:`${k}-status-text`},d)))}return A(m__namespace.createElement("span",Object.assign({ref:t},I,{className:de,style:Object.assign(Object.assign({},(i=M==null?void 0:M.styles)===null||i===void 0?void 0:i.root),S==null?void 0:S.root)}),c,m__namespace.createElement(Io,{visible:!H,motionName:`${k}-zoom`,motionAppear:!1,motionDeadline:1e3},te=>{let{className:ce,ref:ge}=te;var re,ae;const he=P("scroll-number",l),Ce=ee.current,_e=W(E==null?void 0:E.indicator,(re=M==null?void 0:M.classNames)===null||re===void 0?void 0:re.indicator,{[`${k}-dot`]:Ce,[`${k}-count`]:!Ce,[`${k}-count-sm`]:p==="small",[`${k}-multiple-words`]:!Ce&&Y&&Y.toString().length>1,[`${k}-status-${u}`]:!!u,[`${k}-color-${f}`]:le});let He=Object.assign(Object.assign(Object.assign({},S==null?void 0:S.indicator),(ae=M==null?void 0:M.styles)===null||ae===void 0?void 0:ae.indicator),V);return f&&!le&&(He=He||{},He.background=f),m__namespace.createElement(lQ,{prefixCls:he,show:!H,motionClassName:ce,className:_e,count:Y,title:J,style:He,key:"scrollNumber",ref:ge},se)}),q))},RE=m__namespace.forwardRef(uQ);RE.Ribbon=rQ;const dQ=RE,Ul={name:"1wnowod",styles:"display:flex;align-items:center;justify-content:center"};function fQ(e){const t=m.useRef(null);return t.current??(t.current=e()),t}var mQ=Math.floor,hQ=Math.random;function gQ(e,t){return e+mQ(hQ()*(t-e+1))}var vQ=gQ,pQ=vQ;function bQ(e,t){var n=-1,r=e.length,o=r-1;for(t=t===void 0?r:t;++n<t;){var a=pQ(n,o),i=e[a];e[a]=e[n],e[n]=i;}return e.length=t,e}var TE=bQ,yQ=ES,CQ=TE;function SQ(e){return CQ(yQ(e))}var wQ=SQ,$Q=Wg;function xQ(e,t){return $Q(t,function(n){return e[n]})}var EQ=xQ,IQ=EQ,PQ=Cl;function OQ(e){return e==null?[]:IQ(e,PQ(e))}var MQ=OQ,RQ=TE,TQ=MQ;function _Q(e){return RQ(TQ(e))}var kQ=_Q,NQ=wQ,AQ=kQ,LQ=Wr;function FQ(e){var t=LQ(e)?NQ:AQ;return t(e)}var DQ=FQ;const pi=Sn(DQ);var jQ=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],_E=m__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,f=e.onClick,h=e.onChange,g=e.onKeyDown,v=et(e,jQ),p=qt(!1,{value:i,defaultValue:s}),b=Z(p,2),y=b[0],C=b[1];function w($,I){var P=y;return l||(P=$,C(P),h==null||h(P,I)),P}function x($){$.which===me.LEFT?w(!1,$):$.which===me.RIGHT&&w(!0,$),g==null||g($);}function E($){var I=w(!y,$);f==null||f(I,$);}var S=W(o,a,(n={},z(n,"".concat(o,"-checked"),y),z(n,"".concat(o,"-disabled"),l),n));return m__namespace.createElement("button",Ie({},v,{type:"button",role:"switch","aria-checked":y,disabled:l,className:S,ref:t,onKeyDown:x,onClick:E}),c,m__namespace.createElement("span",{className:"".concat(o,"-inner")},m__namespace.createElement("span",{className:"".concat(o,"-inner-checked")},u),m__namespace.createElement("span",{className:"".concat(o,"-inner-unchecked")},d)))});_E.displayName="Switch";const zQ=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}}}}}}},BQ=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}}}},HQ=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}}:{}}}},VQ=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}}}}}},WQ=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return {[t]:Object.assign(Object.assign(Object.assign(Object.assign({},jt(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}}),$a(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"}})}},GQ=Kt("Switch",e=>{const t=Ct(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return [WQ(t),VQ(t),HQ(t),BQ(t),zQ(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 Jt("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+s+s*2,innerMinMarginSM:c/2,innerMaxMarginSM:c+s+s*2}});var KQ=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 kE=m__namespace.forwardRef((e,t)=>{const{prefixCls:n,size:r,disabled:o,loading:a,className:i,rootClassName:s,style:l}=e,c=KQ(e,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:u,direction:d,switch:f}=m__namespace.useContext(tt),h=m__namespace.useContext(Kr),g=(o??h)||a,v=u("switch",n),p=m__namespace.createElement("div",{className:`${v}-handle`},a&&m__namespace.createElement(Mp,{className:`${v}-loading-icon`})),[b,y]=GQ(v),C=or(r),w=W(f==null?void 0:f.className,{[`${v}-small`]:C==="small",[`${v}-loading`]:a,[`${v}-rtl`]:d==="rtl"},i,s,y),x=Object.assign(Object.assign({},f==null?void 0:f.style),l);return b(m__namespace.createElement(zl,{component:"Switch"},m__namespace.createElement(_E,Object.assign({},c,{prefixCls:v,className:w,style:x,disabled:g,ref:t,loadingIcon:p}))))});kE.__ANT_SWITCH=!0;const Xl=kE;var UQ={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 XQ=UQ;var qQ=function(t,n){return m__namespace.createElement(_n,Ie({},t,{ref:n,icon:XQ}))};const bf=m__namespace.forwardRef(qQ);function YQ(e,t,n){return typeof e=="boolean"?e:t===void 0?!!n:t!==!1&&t!==null}function ZQ(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:m.createElement(bf,null),o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(!YQ(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 QQ=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o}=e,a=r-n,i=t-n;return {[o]:Object.assign(Object.assign({},jt(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}}},Np=e=>{const{lineWidth:t,fontSizeIcon:n}=e,r=e.fontSizeSM,o=`${e.lineHeightSM*r}px`;return Ct(e,{tagFontSize:r,tagLineHeight:o,tagIconSize:n-2*t,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary})},Ap=e=>({defaultBg:new Jt(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),NE=Kt("Tag",e=>{const t=Np(e);return QQ(t)},Ap);var JQ=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 eJ=m__namespace.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:o,checked:a,onChange:i,onClick:s}=e,l=JQ(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:c,tag:u}=m__namespace.useContext(tt),d=p=>{i==null||i(!a),s==null||s(p);},f=c("tag",n),[h,g]=NE(f),v=W(f,`${f}-checkable`,{[`${f}-checkable-checked`]:a},u==null?void 0:u.className,o,g);return h(m__namespace.createElement("span",Object.assign({},l,{ref:t,style:Object.assign(Object.assign({},r),u==null?void 0:u.style),className:v,onClick:d})))}),tJ=eJ,nJ=e=>Ld(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"}}}}),rJ=Lv(["Tag","preset"],e=>{const t=Np(e);return nJ(t)},Ap);function oJ(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const Ic=(e,t,n)=>{const r=oJ(n);return {[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},aJ=Lv(["Tag","status"],e=>{const t=Np(e);return [Ic(t,"success","Success"),Ic(t,"processing","Info"),Ic(t,"error","Error"),Ic(t,"warning","Warning")]},Ap);var iJ=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 sJ=(e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:a,children:i,icon:s,color:l,onClose:c,closeIcon:u,closable:d,bordered:f=!0}=e,h=iJ(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:g,direction:v,tag:p}=m__namespace.useContext(tt),[b,y]=m__namespace.useState(!0);m__namespace.useEffect(()=>{"visible"in h&&y(h.visible);},[h.visible]);const C=jd(l),w=iB(l),x=C||w,E=Object.assign(Object.assign({backgroundColor:l&&!x?l:void 0},p==null?void 0:p.style),a),S=g("tag",n),[$,I]=NE(S),P=W(S,p==null?void 0:p.className,{[`${S}-${l}`]:x,[`${S}-has-color`]:l&&!x,[`${S}-hidden`]:!b,[`${S}-rtl`]:v==="rtl",[`${S}-borderless`]:!f},r,o,I),R=O=>{O.stopPropagation(),c==null||c(O),!O.defaultPrevented&&y(!1);},[,M]=ZQ(d,u,O=>O===null?m__namespace.createElement(bf,{className:`${S}-close-icon`,onClick:R}):m__namespace.createElement("span",{className:`${S}-close-icon`,onClick:R},O),null,!1),k=typeof h.onClick=="function"||i&&i.type==="a",A=s||null,L=A?m__namespace.createElement(m__namespace.Fragment,null,A,i&&m__namespace.createElement("span",null,i)):i,_=m__namespace.createElement("span",Object.assign({},h,{ref:t,className:P,style:E}),L,M,C&&m__namespace.createElement(rJ,{key:"preset",prefixCls:S}),w&&m__namespace.createElement(aJ,{key:"status",prefixCls:S}));return $(k?m__namespace.createElement(zl,{component:"Tag"},_):_)},AE=m__namespace.forwardRef(sJ);AE.CheckableTag=tJ;const No=AE;function A1(e){const[t,n]=m.useState(null);return [m.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(g=>e(g)),f=d.some(g=>!s.has(g)),h=[];return d.forEach(g=>{f?(s.has(g)||h.push(g),s.add(g)):(s.delete(g),h.push(g));}),n(f?u:null),h},[t]),a=>{n(a);}]}function Br(e,t,n){return W({[`${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 ql=(e,t)=>t||e,Tu=e=>{const t=new Map;return e.forEach((n,r)=>{t.set(n,r);}),t},lJ=e=>{const t=new Map;return e.forEach((n,r)=>{let{disabled:o,key:a}=n;o&&t.set(a,r);}),t},cJ=()=>{const[,e]=rr(),n=new Jt(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return m__namespace.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},m__namespace.createElement("g",{fill:"none",fillRule:"evenodd"},m__namespace.createElement("g",{transform:"translate(24 31.67)"},m__namespace.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),m__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"}),m__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)"}),m__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"}),m__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"})),m__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"}),m__namespace.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},m__namespace.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),m__namespace.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},uJ=cJ,dJ=()=>{const[,e]=rr(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:a,shadowColor:i,contentColor:s}=m.useMemo(()=>({borderColor:new Jt(t).onBackground(o).toHexShortString(),shadowColor:new Jt(n).onBackground(o).toHexShortString(),contentColor:new Jt(r).onBackground(o).toHexShortString()}),[t,n,r,o]);return m__namespace.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},m__namespace.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},m__namespace.createElement("ellipse",{fill:i,cx:"32",cy:"33",rx:"32",ry:"7"}),m__namespace.createElement("g",{fillRule:"nonzero",stroke:a},m__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"}),m__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}))))},fJ=dJ,mJ=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}}}}},hJ=Kt("Empty",e=>{const{componentCls:t,controlHeightLG:n}=e,r=Ct(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n*2.5,emptyImgHeightMD:n,emptyImgHeightSM:n*.875});return [mJ(r)]});var gJ=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 LE=m__namespace.createElement(uJ,null),FE=m__namespace.createElement(fJ,null),Lp=e=>{var{className:t,rootClassName:n,prefixCls:r,image:o=LE,description:a,children:i,imageStyle:s,style:l}=e,c=gJ(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:u,direction:d,empty:f}=m__namespace.useContext(tt),h=u("empty",r),[g,v]=hJ(h),[p]=Qi("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=m__namespace.createElement("img",{alt:y,src:o}):C=o,g(m__namespace.createElement("div",Object.assign({className:W(v,h,f==null?void 0:f.className,{[`${h}-normal`]:o===FE,[`${h}-rtl`]:d==="rtl"},t,n),style:Object.assign(Object.assign({},f==null?void 0:f.style),l)},c),m__namespace.createElement("div",{className:`${h}-image`,style:s},C),b&&m__namespace.createElement("div",{className:`${h}-description`},b),i&&m__namespace.createElement("div",{className:`${h}-footer`},i)))};Lp.PRESENTED_IMAGE_DEFAULT=LE;Lp.PRESENTED_IMAGE_SIMPLE=FE;const ys=Lp,vJ=e=>{const{componentName:t}=e,{getPrefixCls:n}=m.useContext(tt),r=n("empty");switch(t){case"Table":case"List":return m.createElement(ys,{image:ys.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return m.createElement(ys,{image:ys.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return m.createElement(ys,null)}},DE=vJ;function pJ(e,t,n){const r=m__namespace.useMemo(()=>(e||[]).map(i=>(t&&(i=Object.assign(Object.assign({},i),{key:t(i)})),i)),[e,t]),[o,a]=m__namespace.useMemo(()=>{const i=[],s=new Array((n||[]).length),l=Tu(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 bJ=[];function Za(e,t){const n=e.filter(r=>t.has(r));return e.length===n.length?e:n}function L1(e){return Array.from(e).join(";")}function yJ(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:bJ;const[r,o]=m__namespace.useMemo(()=>[new Set(e.map(c=>c.key)),new Set(t.map(c=>c.key))],[e,t]),[a,i]=m__namespace.useState(()=>Za(n,r)),[s,l]=m__namespace.useState(()=>Za(n,o));return m__namespace.useEffect(()=>{i(Za(n,r)),l(Za(n,o));},[n]),m__namespace.useEffect(()=>{i(Za(a,r)),l(Za(s,o));},[L1(r),L1(o)]),[a,s,i,l]}var CJ={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 SJ=CJ;var wJ=function(t,n){return m__namespace.createElement(_n,Ie({},t,{ref:n,icon:SJ}))};const Fp=m__namespace.forwardRef(wJ);var $J={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 xJ=$J;var EJ=function(t,n){return m__namespace.createElement(_n,Ie({},t,{ref:n,icon:xJ}))};const F1=m__namespace.forwardRef(EJ);var IJ={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 PJ=IJ;var OJ=function(t,n){return m__namespace.createElement(_n,Ie({},t,{ref:n,icon:PJ}))};const D1=m__namespace.forwardRef(OJ);var ea={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40};const MJ={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 gg=function(e){Uo(n,e);var t=Xo(n);function n(){var r;En(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(Ge(r),"state",{goInputText:""}),z(Ge(r),"getValidValue",function(){var s=r.state.goInputText;return !s||Number.isNaN(s)?void 0:Number(s)}),z(Ge(r),"buildOptionText",function(s){return "".concat(s," ").concat(r.props.locale.items_per_page)}),z(Ge(r),"changeSize",function(s){r.props.changeSize(Number(s));}),z(Ge(r),"handleChange",function(s){r.setState({goInputText:s.target.value});}),z(Ge(r),"handleBlur",function(s){var l=r.props,c=l.goButton,u=l.quickGo,d=l.rootPrefixCls,f=r.state.goInputText;c||f===""||(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(Ge(r),"go",function(s){var l=r.state.goInputText;l!==""&&(s.keyCode===ea.ENTER||s.type==="click")&&(r.setState({goInputText:""}),r.props.quickGo(r.getValidValue()));}),r}return In(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,f=a.selectComponentClass,h=a.buildOptionText,g=a.selectPrefixCls,v=a.disabled,p=this.state.goInputText,b="".concat(l,"-options"),y=f,C=null,w=null,x=null;if(!c&&!u)return null;var E=this.getPageSizeOptions();if(c&&y){var S=E.map(function($,I){return m.createElement(y.Option,{key:I,value:$.toString()},(h||o.buildOptionText)($))});C=m.createElement(y,{disabled:v,prefixCls:g,showSearch:!1,className:"".concat(b,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(i||E[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"?m.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:v,className:"".concat(b,"-quick-jumper-button")},s.jump_to_confirm):m.createElement("span",{onClick:this.go,onKeyUp:this.go},d)),w=m.createElement("div",{className:"".concat(b,"-quick-jumper")},s.jump_to,m.createElement("input",{disabled:v,type:"text",value:p,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":s.page}),s.page,x)),m.createElement("li",{className:"".concat(b)},C,w)}}]),n}(m.Component);z(gg,"defaultProps",{pageSizeOptions:["10","20","50","100"]});var Cs=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"),f=W(d,"".concat(d,"-").concat(o),(n={},z(n,"".concat(d,"-active"),a),z(n,"".concat(d,"-disabled"),!o),z(n,t.className,i),n)),h=function(){l(o);},g=function(b){c(b,l,o);},v=u(o,"page",m.createElement("a",{rel:"nofollow"},o));return v?m.createElement("li",{title:s?o.toString():null,className:f,onClick:h,onKeyPress:g,tabIndex:0},v):null};function vg(){}function j1(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}var RJ=function(t,n,r){return r};function Ro(e,t,n){var r=typeof e>"u"?t.pageSize:e;return Math.floor((n.total-1)/r)+1}var jE=function(e){Uo(n,e);var t=Xo(n);function n(r){var o;En(this,n),o=t.call(this,r),z(Ge(o),"paginationNode",m.createRef()),z(Ge(o),"getJumpPrevPage",function(){return Math.max(1,o.state.current-(o.props.showLessItems?3:5))}),z(Ge(o),"getJumpNextPage",function(){return Math.min(Ro(void 0,o.state,o.props),o.state.current+(o.props.showLessItems?3:5))}),z(Ge(o),"getItemIcon",function(c,u){var d=o.props.prefixCls,f=c||m.createElement("button",{type:"button","aria-label":u,className:"".concat(d,"-item-link")});return typeof c=="function"&&(f=m.createElement(c,U({},o.props))),f}),z(Ge(o),"isValid",function(c){var u=o.props.total;return j1(c)&&c!==o.state.current&&j1(u)&&u>0}),z(Ge(o),"shouldDisplayQuickJumper",function(){var c=o.props,u=c.showQuickJumper,d=c.total,f=o.state.pageSize;return d<=f?!1:u}),z(Ge(o),"handleKeyDown",function(c){(c.keyCode===ea.ARROW_UP||c.keyCode===ea.ARROW_DOWN)&&c.preventDefault();}),z(Ge(o),"handleKeyUp",function(c){var u=o.getValidValue(c),d=o.state.currentInputValue;u!==d&&o.setState({currentInputValue:u}),c.keyCode===ea.ENTER?o.handleChange(u):c.keyCode===ea.ARROW_UP?o.handleChange(u-1):c.keyCode===ea.ARROW_DOWN&&o.handleChange(u+1);}),z(Ge(o),"handleBlur",function(c){var u=o.getValidValue(c);o.handleChange(u);}),z(Ge(o),"changePageSize",function(c){var u=o.state.current,d=Ro(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(Ge(o),"handleChange",function(c){var u=o.props,d=u.disabled,f=u.onChange,h=o.state,g=h.pageSize,v=h.current,p=h.currentInputValue;if(o.isValid(c)&&!d){var b=Ro(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}),f(y,g),y}return v}),z(Ge(o),"prev",function(){o.hasPrev()&&o.handleChange(o.state.current-1);}),z(Ge(o),"next",function(){o.hasNext()&&o.handleChange(o.state.current+1);}),z(Ge(o),"jumpPrev",function(){o.handleChange(o.getJumpPrevPage());}),z(Ge(o),"jumpNext",function(){o.handleChange(o.getJumpNextPage());}),z(Ge(o),"hasPrev",function(){return o.state.current>1}),z(Ge(o),"hasNext",function(){return o.state.current<Ro(void 0,o.state,o.props)}),z(Ge(o),"runIfEnter",function(c,u){if(c.key==="Enter"||c.charCode===13){for(var d=arguments.length,f=new Array(d>2?d-2:0),h=2;h<d;h++)f[h-2]=arguments[h];u.apply(void 0,f);}}),z(Ge(o),"runIfEnterPrev",function(c){o.runIfEnter(c,o.prev);}),z(Ge(o),"runIfEnterNext",function(c){o.runIfEnter(c,o.next);}),z(Ge(o),"runIfEnterJumpPrev",function(c){o.runIfEnter(c,o.jumpPrev);}),z(Ge(o),"runIfEnterJumpNext",function(c){o.runIfEnter(c,o.jumpNext);}),z(Ge(o),"handleGoTO",function(c){(c.keyCode===ea.ENTER||c.type==="click")&&o.handleChange(o.state.currentInputValue);}),z(Ge(o),"renderPrev",function(c){var u=o.props,d=u.prevIcon,f=u.itemRender,h=f(c,"prev",o.getItemIcon(d,"prev page")),g=!o.hasPrev();return m.isValidElement(h)?m.cloneElement(h,{disabled:g}):h}),z(Ge(o),"renderNext",function(c){var u=o.props,d=u.nextIcon,f=u.itemRender,h=f(c,"next",o.getItemIcon(d,"next page")),g=!o.hasNext();return m.isValidElement(h)?m.cloneElement(h,{disabled:g}):h});var a=r.onChange!==vg,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,Ro(l,void 0,r)),o.state={current:s,currentInputValue:s,pageSize:l},o}return In(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=Ro(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,f=o.showQuickJumper,h=o.showLessItems,g=o.showTitle,v=o.showTotal,p=o.simple,b=o.itemRender,y=o.showPrevNextJumpers,C=o.jumpPrevIcon,w=o.jumpNextIcon,x=o.selectComponentClass,E=o.selectPrefixCls,S=o.pageSizeOptions,$=this.state,I=$.current,P=$.pageSize,R=$.currentInputValue;if(c===!0&&u<=P)return null;var M=Ro(void 0,this.state,this.props),k=[],A=null,L=null,_=null,O=null,T=null,D=f&&f.goButton,j=h?1:2,B=I-1>0?I-1:0,H=I+1<M?I+1:M,G=Ni(this.props,{aria:!0,data:!0}),K=v&&m.createElement("li",{className:"".concat(a,"-total-text")},v(u,[u===0?0:(I-1)*P+1,I*P>u?u:I*P]));if(p){D&&(typeof D=="boolean"?T=m.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},d.jump_to_confirm):T=m.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},D),T=m.createElement("li",{title:g?"".concat(d.jump_to).concat(I,"/").concat(M):null,className:"".concat(a,"-simple-pager")},T));var X=this.renderPrev(B);return m.createElement("ul",Ie({className:W(a,"".concat(a,"-simple"),z({},"".concat(a,"-disabled"),l),i),style:s,ref:this.paginationNode},G),K,X?m.createElement("li",{title:g?d.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:W("".concat(a,"-prev"),z({},"".concat(a,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},X):null,m.createElement("li",{title:g?"".concat(I,"/").concat(M):null,className:"".concat(a,"-simple-pager")},m.createElement("input",{type:"text",value:R,disabled:l,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),m.createElement("span",{className:"".concat(a,"-slash")},"/"),M),m.createElement("li",{title:g?d.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:W("".concat(a,"-next"),z({},"".concat(a,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(H)),m.createElement(gg,{disabled:l,locale:d,rootPrefixCls:a,selectComponentClass:x,selectPrefixCls:E,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:I,pageSize:P,pageSizeOptions:S,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:T}))}if(M<=3+j*2){var Y={locale:d,rootPrefixCls:a,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:g,itemRender:b};M||k.push(m.createElement(Cs,Ie({},Y,{key:"noPager",page:1,className:"".concat(a,"-item-disabled")})));for(var ee=1;ee<=M;ee+=1){var V=I===ee;k.push(m.createElement(Cs,Ie({},Y,{key:ee,page:ee,active:V})));}}else {var J=h?d.prev_3:d.prev_5,q=h?d.next_3:d.next_5,se=b(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(C,"prev page")),le=b(this.getJumpNextPage(),"jump-next",this.getItemIcon(w,"next page"));y&&(A=se?m.createElement("li",{title:g?J:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:W("".concat(a,"-jump-prev"),z({},"".concat(a,"-jump-prev-custom-icon"),!!C))},se):null,L=le?m.createElement("li",{title:g?q:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:W("".concat(a,"-jump-next"),z({},"".concat(a,"-jump-next-custom-icon"),!!w))},le):null),O=m.createElement(Cs,{locale:d,last:!0,rootPrefixCls:a,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:M,page:M,active:!1,showTitle:g,itemRender:b}),_=m.createElement(Cs,{locale:d,rootPrefixCls:a,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:g,itemRender:b});var Q=Math.max(1,I-j),ne=Math.min(I+j,M);I-1<=j&&(ne=1+j*2),M-I<=j&&(Q=M-j*2);for(var de=Q;de<=ne;de+=1){var te=I===de;k.push(m.createElement(Cs,{locale:d,rootPrefixCls:a,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:de,page:de,active:te,showTitle:g,itemRender:b}));}I-1>=j*2&&I!==3&&(k[0]=m.cloneElement(k[0],{className:"".concat(a,"-item-after-jump-prev")}),k.unshift(A)),M-I>=j*2&&I!==M-2&&(k[k.length-1]=m.cloneElement(k[k.length-1],{className:"".concat(a,"-item-before-jump-next")}),k.push(L)),Q!==1&&k.unshift(_),ne!==M&&k.push(O);}var ce=!this.hasPrev()||!M,ge=!this.hasNext()||!M,re=this.renderPrev(B),ae=this.renderNext(H);return m.createElement("ul",Ie({className:W(a,i,z({},"".concat(a,"-disabled"),l)),style:s,ref:this.paginationNode},G),K,re?m.createElement("li",{title:g?d.prev_page:null,onClick:this.prev,tabIndex:ce?null:0,onKeyPress:this.runIfEnterPrev,className:W("".concat(a,"-prev"),z({},"".concat(a,"-disabled"),ce)),"aria-disabled":ce},re):null,k,ae?m.createElement("li",{title:g?d.next_page:null,onClick:this.next,tabIndex:ge?null:0,onKeyPress:this.runIfEnterNext,className:W("".concat(a,"-next"),z({},"".concat(a,"-disabled"),ge)),"aria-disabled":ge},ae):null,m.createElement(gg,{disabled:l,locale:d,rootPrefixCls:a,selectComponentClass:x,selectPrefixCls:E,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:I,pageSize:P,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=Ro(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}(m.Component);z(jE,"defaultProps",{defaultCurrent:1,total:0,defaultPageSize:10,onChange:vg,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:vg,locale:MJ,style:{},itemRender:RJ,totalBoundaryShowSizeChanger:50});var yf=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,m__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:m__namespace.createElement("span",{className:W(n.split(/\s+/).map(function(c){return "".concat(c,"-icon")}))},s))};function TJ(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=m.useMemo(function(){if(it(r)==="object")return r.clearIcon;if(o)return o},[r,o]),c=m.useMemo(function(){return !!(!a&&r&&(n.length||i)&&!(s==="combobox"&&i===""))},[r,a,n.length,i,s]);return {allowClear:c,clearIcon:m.createElement(yf,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:l},"×")}}var zE=m__namespace.createContext(null);function _J(){return m__namespace.useContext(zE)}function kJ(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=m__namespace.useState(!1),n=Z(t,2),r=n[0],o=n[1],a=m__namespace.useRef(null),i=function(){window.clearTimeout(a.current);};m__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 BE(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=m__namespace.useRef(null),n=m__namespace.useRef(null);m__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 NJ(e,t,n,r){var o=m__namespace.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},m__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 AJ=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,f=t.activeDescendantId,h=t.value,g=t.maxLength,v=t.onKeyDown,p=t.onMouseDown,b=t.onChange,y=t.onPaste,C=t.onCompositionStart,w=t.onCompositionEnd,x=t.open,E=t.attrs,S=i||m__namespace.createElement("input",null),$=S,I=$.ref,P=$.props,R=P.onKeyDown,M=P.onChange,k=P.onMouseDown,A=P.onCompositionStart,L=P.onCompositionEnd,_=P.style;return "maxLength"in S.props,S=m__namespace.cloneElement(S,U(U(U({type:"search"},P),{},{id:a,ref:Jn(n,I),disabled:s,tabIndex:l,autoComplete:u||"off",autoFocus:c,className:W("".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?f:void 0},E),{},{value:d?h:"",maxLength:g,readOnly:!d,unselectable:d?null:"on",style:U(U({},_),{},{opacity:d?null:0}),onKeyDown:function(T){v(T),R&&R(T);},onMouseDown:function(T){p(T),k&&k(T);},onChange:function(T){b(T),M&&M(T);},onCompositionStart:function(T){C(T),A&&A(T);},onCompositionEnd:function(T){w(T),L&&L(T);},onPaste:y})),S},Dp=m__namespace.forwardRef(AJ);Dp.displayName="Input";function HE(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var LJ=typeof window<"u"&&window.document&&window.document.documentElement,FJ=LJ;function DJ(e){return e!=null}function jJ(e){return !e&&e!==0}function z1(e){return ["string","number"].includes(it(e))}function VE(e){var t=void 0;return e&&(z1(e.title)?t=e.title.toString():z1(e.label)&&(t=e.label.toString())),t}function zJ(e,t){FJ?m__namespace.useLayoutEffect(e,t):m__namespace.useEffect(e,t);}function BJ(e){var t;return (t=e.key)!==null&&t!==void 0?t:e.value}var B1=function(t){t.preventDefault(),t.stopPropagation();},HJ=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,f=t.showSearch,h=t.autoFocus,g=t.autoComplete,v=t.activeDescendantId,p=t.tabIndex,b=t.removeIcon,y=t.maxTagCount,C=t.maxTagTextLength,w=t.maxTagPlaceholder,x=w===void 0?function(Q){return "+ ".concat(Q.length," ...")}:w,E=t.tagRender,S=t.onToggleOpen,$=t.onRemove,I=t.onInputChange,P=t.onInputPaste,R=t.onInputKeyDown,M=t.onInputMouseDown,k=t.onInputCompositionStart,A=t.onInputCompositionEnd,L=m__namespace.useRef(null),_=m.useState(0),O=Z(_,2),T=O[0],D=O[1],j=m.useState(!1),B=Z(j,2),H=B[0],G=B[1],K="".concat(r,"-selection"),X=a||d==="multiple"&&s===!1||d==="tags"?i:"",Y=d==="tags"||d==="multiple"&&s===!1||f&&(a||H);zJ(function(){D(L.current.scrollWidth);},[X]);function ee(Q,ne,de,te,ce){return m__namespace.createElement("span",{className:W("".concat(K,"-item"),z({},"".concat(K,"-item-disabled"),de)),title:VE(Q)},m__namespace.createElement("span",{className:"".concat(K,"-item-content")},ne),te&&m__namespace.createElement(yf,{className:"".concat(K,"-item-remove"),onMouseDown:B1,onClick:ce,customizeIcon:b},"×"))}function V(Q,ne,de,te,ce){var ge=function(ae){B1(ae),S(!a);};return m__namespace.createElement("span",{onMouseDown:ge},E({label:ne,value:Q,disabled:de,closable:te,onClose:ce}))}function J(Q){var ne=Q.disabled,de=Q.label,te=Q.value,ce=!u&&!ne,ge=de;if(typeof C=="number"&&(typeof de=="string"||typeof de=="number")){var re=String(ge);re.length>C&&(ge="".concat(re.slice(0,C),"..."));}var ae=function(Ce){Ce&&Ce.stopPropagation(),$(Q);};return typeof E=="function"?V(te,ge,ne,ce,ae):ee(Q,ge,ne,ce,ae)}function q(Q){var ne=typeof x=="function"?x(Q):x;return ee({title:ne},ne,!1)}var se=m__namespace.createElement("div",{className:"".concat(K,"-search"),style:{width:T},onFocus:function(){G(!0);},onBlur:function(){G(!1);}},m__namespace.createElement(Dp,{ref:l,open:a,prefixCls:r,id:n,inputElement:null,disabled:u,autoFocus:h,autoComplete:g,editable:Y,activeDescendantId:v,value:X,onKeyDown:R,onMouseDown:M,onChange:I,onPaste:P,onCompositionStart:k,onCompositionEnd:A,tabIndex:p,attrs:Ni(t,!0)}),m__namespace.createElement("span",{ref:L,className:"".concat(K,"-search-mirror"),"aria-hidden":!0},X," ")),le=m__namespace.createElement(ao,{prefixCls:"".concat(K,"-overflow"),data:o,renderItem:J,renderRest:q,suffix:se,itemKey:BJ,maxCount:y});return m__namespace.createElement(m__namespace.Fragment,null,le,!o.length&&!X&&m__namespace.createElement("span",{className:"".concat(K,"-placeholder")},c))},VJ=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,f=t.values,h=t.placeholder,g=t.tabIndex,v=t.showSearch,p=t.searchValue,b=t.activeValue,y=t.maxLength,C=t.onInputKeyDown,w=t.onInputMouseDown,x=t.onInputChange,E=t.onInputPaste,S=t.onInputCompositionStart,$=t.onInputCompositionEnd,I=t.title,P=m__namespace.useState(!1),R=Z(P,2),M=R[0],k=R[1],A=u==="combobox",L=A||v,_=f[0],O=p||"";A&&b&&!M&&(O=b),m__namespace.useEffect(function(){A&&k(!1);},[A,b]);var T=u!=="combobox"&&!d&&!v?!1:!!O,D=I===void 0?VE(_):I,j=function(){if(_)return null;var H=T?{visibility:"hidden"}:void 0;return m__namespace.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:H},h)};return m__namespace.createElement(m__namespace.Fragment,null,m__namespace.createElement("span",{className:"".concat(r,"-selection-search")},m__namespace.createElement(Dp,{ref:a,prefixCls:r,id:o,open:d,inputElement:n,disabled:i,autoFocus:s,autoComplete:l,editable:L,activeDescendantId:c,value:O,onKeyDown:C,onMouseDown:w,onChange:function(H){k(!0),x(H);},onPaste:E,onCompositionStart:S,onCompositionEnd:$,tabIndex:g,attrs:Ni(t,!0),maxLength:A?y:void 0})),!A&&_?m__namespace.createElement("span",{className:"".concat(r,"-selection-item"),title:D,style:T?{visibility:"hidden"}:void 0},_.label):null,j())};function WJ(e){return ![me.ESC,me.SHIFT,me.BACKSPACE,me.TAB,me.WIN_KEY,me.ALT,me.META,me.WIN_KEY_RIGHT,me.CTRL,me.SEMICOLON,me.EQUALS,me.CAPS_LOCK,me.CONTEXT_MENU,me.F1,me.F2,me.F3,me.F4,me.F5,me.F6,me.F7,me.F8,me.F9,me.F10,me.F11,me.F12].includes(e)}var GJ=function(t,n){var r=m.useRef(null),o=m.useRef(!1),a=t.prefixCls,i=t.open,s=t.mode,l=t.showSearch,c=t.tokenWithEnter,u=t.autoClearSearchValue,d=t.onSearch,f=t.onSearchSubmit,h=t.onToggleOpen,g=t.onInputKeyDown,v=t.domRef;m__namespace.useImperativeHandle(n,function(){return {focus:function(){r.current.focus();},blur:function(){r.current.blur();}}});var p=BE(0),b=Z(p,2),y=b[0],C=b[1],w=function(O){var T=O.which;(T===me.UP||T===me.DOWN)&&O.preventDefault(),g&&g(O),T===me.ENTER&&s==="tags"&&!o.current&&!i&&(f==null||f(O.target.value)),WJ(T)&&h(!0);},x=function(){C(!0);},E=m.useRef(null),S=function(O){d(O,!0,o.current)!==!1&&h(!0);},$=function(){o.current=!0;},I=function(O){o.current=!1,s!=="combobox"&&S(O.target.value);},P=function(O){var T=O.target.value;if(c&&E.current&&/[\r\n]/.test(E.current)){var D=E.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");T=T.replace(D,E.current);}E.current=null,S(T);},R=function(O){var T=O.clipboardData,D=T.getData("text");E.current=D;},M=function(O){var T=O.target;if(T!==r.current){var D=document.body.style.msTouchAction!==void 0;D?setTimeout(function(){r.current.focus();}):r.current.focus();}},k=function(O){var T=y();O.target!==r.current&&!T&&s!=="combobox"&&O.preventDefault(),(s!=="combobox"&&(!l||!T)||!i)&&(i&&u!==!1&&d("",!0,!1),h());},A={inputRef:r,onInputKeyDown:w,onInputMouseDown:x,onInputChange:P,onInputPaste:R,onInputCompositionStart:$,onInputCompositionEnd:I},L=s==="multiple"||s==="tags"?m__namespace.createElement(HJ,Ie({},t,A)):m__namespace.createElement(VJ,Ie({},t,A));return m__namespace.createElement("div",{ref:v,className:"".concat(a,"-selector"),onClick:M,onMouseDown:k},L)},WE=m__namespace.forwardRef(GJ);WE.displayName="Selector";var KJ=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],UJ=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"}}},XJ=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,f=d===void 0?"ltr":d,h=t.placement,g=t.builtinPlacements,v=t.dropdownMatchSelectWidth,p=t.dropdownRender,b=t.dropdownAlign,y=t.getPopupContainer,C=t.empty,w=t.getTriggerDOMNode,x=t.onPopupVisibleChange,E=t.onPopupMouseEnter,S=et(t,KJ),$="".concat(r,"-dropdown"),I=i;p&&(I=p(i));var P=m__namespace.useMemo(function(){return g||UJ(v)},[g,v]),R=s?"".concat($,"-").concat(s):l,M=typeof v=="number",k=m__namespace.useMemo(function(){return M?null:v===!1?"minWidth":"width"},[v,M]),A=c;M&&(A=U(U({},A),{},{width:v}));var L=m__namespace.useRef(null);return m__namespace.useImperativeHandle(n,function(){return {getPopupElement:function(){return L.current}}}),m__namespace.createElement(_d,Ie({},S,{showAction:x?["click"]:[],hideAction:x?["click"]:[],popupPlacement:h||(f==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:P,prefixCls:$,popupTransitionName:R,popup:m__namespace.createElement("div",{ref:L,onMouseEnter:E},I),stretch:k,popupAlign:b,popupVisible:o,getPopupContainer:y,popupClassName:W(u,z({},"".concat($,"-empty"),C)),popupStyle:A,getTriggerDOMNode:w,onPopupVisibleChange:x}),a)},GE=m__namespace.forwardRef(XJ);GE.displayName="SelectTrigger";function H1(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 KE(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 qJ(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],a=KE(n,!1),i=a.label,s=a.value,l=a.options,c=a.groupLabel;function u(d,f){d.forEach(function(h){if(f||!(l in h)){var g=h[s];o.push({key:H1(h,o.length),groupOption:f,data:h,label:h[i],value:g});}else {var v=h[c];v===void 0&&r&&(v=h.label),o.push({key:H1(h,o.length),group:!0,data:h,label:v}),u(h[l],!0);}});}return u(e,!1),o}function pg(e){var t=U({},e);return "props"in t||Object.defineProperty(t,"props",{get:function(){return $n(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function YJ(e,t){if(!t||!t.length)return null;var n=!1;function r(a,i){var s=v$(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,f){return [].concat(Te(d),Te(r(f,c)))},[]).filter(function(d){return d})}var o=r(e,t);return n?o:null}var ZJ=["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"],QJ=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function bg(e){return e==="tags"||e==="multiple"}var JJ=m__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,f=e.onDisplayValuesChange,h=e.emptyOptions,g=e.notFoundContent,v=g===void 0?"Not Found":g,p=e.onClear,b=e.mode,y=e.disabled,C=e.loading,w=e.getInputElement,x=e.getRawInputElement,E=e.open,S=e.defaultOpen,$=e.onDropdownVisibleChange,I=e.activeValue,P=e.onActiveValueChange,R=e.activeDescendantId,M=e.searchValue,k=e.autoClearSearchValue,A=e.onSearch,L=e.onSearchSplit,_=e.tokenSeparators,O=e.allowClear,T=e.suffixIcon,D=e.clearIcon,j=e.OptionList,B=e.animation,H=e.transitionName,G=e.dropdownStyle,K=e.dropdownClassName,X=e.dropdownMatchSelectWidth,Y=e.dropdownRender,ee=e.dropdownAlign,V=e.placement,J=e.builtinPlacements,q=e.getPopupContainer,se=e.showAction,le=se===void 0?[]:se,Q=e.onFocus,ne=e.onBlur,de=e.onKeyUp,te=e.onKeyDown,ce=e.onMouseDown,ge=et(e,ZJ),re=bg(b),ae=(s!==void 0?s:re)||b==="combobox",he=U({},ge);QJ.forEach(function(dt){delete he[dt];}),u==null||u.forEach(function(dt){delete he[dt];});var Ce=m__namespace.useState(!1),_e=Z(Ce,2),He=_e[0],We=_e[1];m__namespace.useEffect(function(){We(Td());},[]);var Me=m__namespace.useRef(null),Ye=m__namespace.useRef(null),Be=m__namespace.useRef(null),Ve=m__namespace.useRef(null),Pe=m__namespace.useRef(null),xe=m__namespace.useRef(!1),qe=kJ(),rt=Z(qe,3),yt=rt[0],Qe=rt[1],Je=rt[2];m__namespace.useImperativeHandle(t,function(){var dt,Le;return {focus:(dt=Ve.current)===null||dt===void 0?void 0:dt.focus,blur:(Le=Ve.current)===null||Le===void 0?void 0:Le.blur,scrollTo:function(vt){var wt;return (wt=Pe.current)===null||wt===void 0?void 0:wt.scrollTo(vt)}}});var pt=m__namespace.useMemo(function(){var dt;if(b!=="combobox")return M;var Le=(dt=d[0])===null||dt===void 0?void 0:dt.value;return typeof Le=="string"||typeof Le=="number"?String(Le):""},[M,b,d]),ht=b==="combobox"&&typeof w=="function"&&w()||null,lt=typeof x=="function"&&x(),ft=Ra(Ye,lt==null||(n=lt.props)===null||n===void 0?void 0:n.ref),xt=m__namespace.useState(!1),Oe=Z(xt,2),Re=Oe[0],ke=Oe[1];Xt(function(){ke(!0);},[]);var pe=qt(!1,{defaultValue:S,value:E}),De=Z(pe,2),$e=De[0],fe=De[1],oe=Re?$e:!1,ye=!v&&h;(y||ye&&oe&&b==="combobox")&&(oe=!1);var ue=ye?!1:oe,ve=m__namespace.useCallback(function(dt){var Le=dt!==void 0?dt:!oe;y||(fe(Le),oe!==Le&&($==null||$(Le)));},[y,oe,fe,$]),Ne=m__namespace.useMemo(function(){return (_||[]).some(function(dt){return [`
`,`\r
`].includes(dt)})},[_]),Ue=function(Le,ot,vt){var wt=!0,At=Le;P==null||P(null);var en=vt?null:YJ(Le,_);return b!=="combobox"&&en&&(At="",L==null||L(en),ve(!1),wt=!1),A&&pt!==At&&A(At,{source:ot?"typing":"effect"}),wt},bt=function(Le){!Le||!Le.trim()||A(Le,{source:"submit"});};m__namespace.useEffect(function(){!oe&&!re&&b!=="combobox"&&Ue("",!1,!1);},[oe]),m__namespace.useEffect(function(){$e&&y&&fe(!1),y&&!xe.current&&Qe(!1);},[y]);var gt=BE(),Nt=Z(gt,2),St=Nt[0],ct=Nt[1],Ae=function(Le){var ot=St(),vt=Le.which;if(vt===me.ENTER&&(b!=="combobox"&&Le.preventDefault(),oe||ve(!0)),ct(!!pt),vt===me.BACKSPACE&&!ot&&re&&!pt&&d.length){for(var wt=Te(d),At=null,en=wt.length-1;en>=0;en-=1){var Kn=wt[en];if(!Kn.disabled){wt.splice(en,1),At=Kn;break}}At&&f(wt,{type:"remove",values:[At]});}for(var tr=arguments.length,_r=new Array(tr>1?tr-1:0),Sr=1;Sr<tr;Sr++)_r[Sr-1]=arguments[Sr];if(oe&&Pe.current){var Fa;(Fa=Pe.current).onKeyDown.apply(Fa,[Le].concat(_r));}te==null||te.apply(void 0,[Le].concat(_r));},Ee=function(Le){for(var ot=arguments.length,vt=new Array(ot>1?ot-1:0),wt=1;wt<ot;wt++)vt[wt-1]=arguments[wt];if(oe&&Pe.current){var At;(At=Pe.current).onKeyUp.apply(At,[Le].concat(vt));}de==null||de.apply(void 0,[Le].concat(vt));},Se=function(Le){var ot=d.filter(function(vt){return vt!==Le});f(ot,{type:"remove",values:[Le]});},we=m__namespace.useRef(!1),je=function(){Qe(!0),y||(Q&&!we.current&&Q.apply(void 0,arguments),le.includes("focus")&&ve(!0)),we.current=!0;},ut=function(){xe.current=!0,Qe(!1,function(){we.current=!1,xe.current=!1,ve(!1);}),!y&&(pt&&(b==="tags"?A(pt,{source:"submit"}):b==="multiple"&&A("",{source:"blur"})),ne&&ne.apply(void 0,arguments));},_t=[];m__namespace.useEffect(function(){return function(){_t.forEach(function(dt){return clearTimeout(dt)}),_t.splice(0,_t.length);}},[]);var Rt=function(Le){var ot,vt=Le.target,wt=(ot=Be.current)===null||ot===void 0?void 0:ot.getPopupElement();if(wt&&wt.contains(vt)){var At=setTimeout(function(){var _r=_t.indexOf(At);if(_r!==-1&&_t.splice(_r,1),Je(),!He&&!wt.contains(document.activeElement)){var Sr;(Sr=Ve.current)===null||Sr===void 0||Sr.focus();}});_t.push(At);}for(var en=arguments.length,Kn=new Array(en>1?en-1:0),tr=1;tr<en;tr++)Kn[tr-1]=arguments[tr];ce==null||ce.apply(void 0,[Le].concat(Kn));},hn=m__namespace.useState({}),un=Z(hn,2),gn=un[1];function Wn(){gn({});}var wn;lt&&(wn=function(Le){ve(Le);}),NJ(function(){var dt;return [Me.current,(dt=Be.current)===null||dt===void 0?void 0:dt.getPopupElement()]},ue,ve,!!lt);var Ur=m__namespace.useMemo(function(){return U(U({},e),{},{notFoundContent:v,open:oe,triggerOpen:ue,id:o,showSearch:ae,multiple:re,toggleOpen:ve})},[e,v,ue,oe,o,ae,re,ve]),uo=!!T||C,Gn;uo&&(Gn=m__namespace.createElement(yf,{className:W("".concat(a,"-arrow"),z({},"".concat(a,"-arrow-loading"),C)),customizeIcon:T,customizeIconProps:{loading:C,searchValue:pt,open:oe,focused:yt,showSearch:ae}}));var Oo=function(){var Le;p==null||p(),(Le=Ve.current)===null||Le===void 0||Le.focus(),f([],{type:"clear",values:d}),Ue("",!1,!1);},Tr=TJ(a,Oo,d,O,D,y,pt,b),ar=Tr.allowClear,Cr=Tr.clearIcon,Xr=m__namespace.createElement(j,{ref:Pe}),qr=W(a,i,(r={},z(r,"".concat(a,"-focused"),yt),z(r,"".concat(a,"-multiple"),re),z(r,"".concat(a,"-single"),!re),z(r,"".concat(a,"-allow-clear"),O),z(r,"".concat(a,"-show-arrow"),uo),z(r,"".concat(a,"-disabled"),y),z(r,"".concat(a,"-loading"),C),z(r,"".concat(a,"-open"),oe),z(r,"".concat(a,"-customize-input"),ht),z(r,"".concat(a,"-show-search"),ae),r)),er=m__namespace.createElement(GE,{ref:Be,disabled:y,prefixCls:a,visible:ue,popupElement:Xr,animation:B,transitionName:H,dropdownStyle:G,dropdownClassName:K,direction:c,dropdownMatchSelectWidth:X,dropdownRender:Y,dropdownAlign:ee,placement:V,builtinPlacements:J,getPopupContainer:q,empty:h,getTriggerDOMNode:function(){return Ye.current},onPopupVisibleChange:wn,onPopupMouseEnter:Wn},lt?m__namespace.cloneElement(lt,{ref:ft}):m__namespace.createElement(WE,Ie({},e,{domRef:Ye,prefixCls:a,inputElement:ht,ref:Ve,id:o,showSearch:ae,autoClearSearchValue:k,mode:b,activeDescendantId:R,tagRender:l,values:d,open:oe,onToggleOpen:ve,activeValue:I,searchValue:pt,onSearch:Ue,onSearchSubmit:bt,onRemove:Se,tokenWithEnter:Ne}))),Yr;return lt?Yr=er:Yr=m__namespace.createElement("div",Ie({className:qr},he,{ref:Me,onMouseDown:Rt,onKeyDown:Ae,onKeyUp:Ee,onFocus:je,onBlur:ut}),yt&&!oe&&m__namespace.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(d.map(function(dt){var Le=dt.label,ot=dt.value;return ["number","string"].includes(it(Le))?Le:ot}).join(", "))),er,Gn,ar&&Cr),m__namespace.createElement(zE.Provider,{value:Ur},Yr)}),jp=function(){return null};jp.isSelectOptGroup=!0;var zp=function(){return null};zp.isSelectOption=!0;var UE=m__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={},f={display:"flex",flexDirection:"column"};if(r!==void 0){var h;d={height:n,position:"relative",overflow:"hidden"},f=U(U({},f),{},(h={transform:"translateY(".concat(r,"px)")},z(h,c?"marginRight":"marginLeft",-o),z(h,"position","absolute"),z(h,"left",0),z(h,"right",0),z(h,"top",0),h));}return m__namespace.createElement("div",{style:d},m__namespace.createElement(Or,{onResize:function(v){var p=v.offsetHeight;p&&s&&s();}},m__namespace.createElement("div",Ie({style:f,className:W(z({},"".concat(i,"-holder-inner"),i)),ref:t},l),a,u)))});UE.displayName="Filler";function V1(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]}var W1=m__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,f=e.containerSize,h=e.style,g=e.thumbStyle,v=m__namespace.useState(!1),p=Z(v,2),b=p[0],y=p[1],C=m__namespace.useState(null),w=Z(C,2),x=w[0],E=w[1],S=m__namespace.useState(null),$=Z(S,2),I=$[0],P=$[1],R=!o,M=m__namespace.useRef(),k=m__namespace.useRef(),A=m__namespace.useState(!1),L=Z(A,2),_=L[0],O=L[1],T=m__namespace.useRef(),D=function(){clearTimeout(T.current),O(!0),T.current=setTimeout(function(){O(!1);},3e3);},j=i-f||0,B=f-d||0,H=j>0,G=m__namespace.useMemo(function(){if(a===0||j===0)return 0;var le=a/j;return le*B},[a,j,B]),K=function(Q){Q.stopPropagation(),Q.preventDefault();},X=m__namespace.useRef({top:G,dragging:b,pageY:x,startTop:I});X.current={top:G,dragging:b,pageY:x,startTop:I};var Y=function(Q){y(!0),E(V1(Q,u)),P(X.current.top),s(),Q.stopPropagation(),Q.preventDefault();};m__namespace.useEffect(function(){var le=function(te){te.preventDefault();},Q=M.current,ne=k.current;return Q.addEventListener("touchstart",le),ne.addEventListener("touchstart",Y),function(){Q.removeEventListener("touchstart",le),ne.removeEventListener("touchstart",Y);}},[]);var ee=m__namespace.useRef();ee.current=j;var V=m__namespace.useRef();V.current=B,m__namespace.useEffect(function(){if(b){var le,Q=function(te){var ce=X.current,ge=ce.dragging,re=ce.pageY,ae=ce.startTop;if(Mt.cancel(le),ge){var he=V1(te,u)-re,Ce=ae;!R&&u?Ce-=he:Ce+=he;var _e=ee.current,He=V.current,We=He?Ce/He:0,Me=Math.ceil(We*_e);Me=Math.max(Me,0),Me=Math.min(Me,_e),le=Mt(function(){c(Me,u);});}},ne=function(){y(!1),l();};return window.addEventListener("mousemove",Q),window.addEventListener("touchmove",Q),window.addEventListener("mouseup",ne),window.addEventListener("touchend",ne),function(){window.removeEventListener("mousemove",Q),window.removeEventListener("touchmove",Q),window.removeEventListener("mouseup",ne),window.removeEventListener("touchend",ne),Mt.cancel(le);}}},[b]),m__namespace.useEffect(function(){D();},[a]),m__namespace.useImperativeHandle(t,function(){return {delayHidden:D}});var J="".concat(r,"-scrollbar"),q={position:"absolute",visibility:_&&H?null:"hidden"},se={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return u?(q.height=8,q.left=0,q.right=0,q.bottom=0,se.height="100%",se.width=d,R?se.left=G:se.right=G):(q.width=8,q.top=0,q.bottom=0,R?q.right=0:q.left=0,se.width="100%",se.height=d,se.top=G),m__namespace.createElement("div",{ref:M,className:W(J,(n={},z(n,"".concat(J,"-horizontal"),u),z(n,"".concat(J,"-vertical"),!u),z(n,"".concat(J,"-visible"),_),n)),style:U(U({},q),h),onMouseDown:K,onMouseMove:D},m__namespace.createElement("div",{ref:k,className:W("".concat(J,"-thumb"),z({},"".concat(J,"-thumb-moving"),b)),style:U(U({},se),g),onMouseDown:Y}))});function eee(e){var t=e.children,n=e.setRef,r=m__namespace.useCallback(function(o){n(o);},[]);return m__namespace.cloneElement(t,{ref:r})}function tee(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}}),f=s(l);return m__namespace.createElement(eee,{key:f,setRef:function(g){return o(l,g)}},d)})}var nee=function(){function e(){En(this,e),this.maps=void 0,this.id=0,this.maps=Object.create(null);}return In(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 ree(e,t,n){var r=m__namespace.useState(0),o=Z(r,2),a=o[0],i=o[1],s=m.useRef(new Map),l=m.useRef(new nee),c=m.useRef();function u(){Mt.cancel(c.current);}function d(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;u();var g=function(){s.current.forEach(function(p,b){if(p&&p.offsetParent){var y=Ts(p),C=y.offsetHeight;l.current.get(b)!==C&&l.current.set(b,y.offsetHeight);}}),i(function(p){return p+1});};h?g():c.current=Mt(g);}function f(h,g){var v=e(h),p=s.current.get(v);g?(s.current.set(v,g),d()):s.current.delete(v),!p!=!g&&(g?t==null||t(h):n==null||n(h));}return m.useEffect(function(){return u},[]),[f,d,l.current,a]}var oee=10;function aee(e,t,n,r,o,a,i,s){var l=m__namespace.useRef(),c=m__namespace.useState(null),u=Z(c,2),d=u[0],f=u[1];return Xt(function(){if(d&&d.times<oee){if(!e.current){f(function(D){return U({},D)});return}a();var h=d.targetAlign,g=d.originAlign,v=d.index,p=d.offset,b=e.current.clientHeight,y=!1,C=h,w=null;if(b){for(var x=h||g,E=0,S=0,$=0,I=Math.min(t.length-1,v),P=0;P<=I;P+=1){var R=o(t[P]);S=E;var M=n.get(R);$=S+(M===void 0?r:M),E=$;}for(var k=x==="top"?p:b-p,A=I;A>=0;A-=1){var L=o(t[A]),_=n.get(L);if(_===void 0){y=!0;break}if(k-=_,k<=0)break}switch(x){case"top":w=S-p;break;case"bottom":w=$-b+p;break;default:{var O=e.current.scrollTop,T=O+b;S<O?C="top":$>T&&(C="bottom");}}w!==null&&i(w),w!==d.lastTop&&(y=!0);}y&&f(function(D){return U(U({},D),{},{times:D.times+1,targetAlign:C,lastTop:w})});}},[d,e.current]),function(h){if(h==null){s();return}if(Mt.cancel(l.current),typeof h=="number")i(h);else if(h&&it(h)==="object"){var g,v=h.align;"index"in h?g=h.index:g=t.findIndex(function(y){return o(y)===h.key});var p=h.offset,b=p===void 0?0:p;f({times:0,index:g,offset:b,originAlign:v});}}}function iee(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(g){return g!==void 0?n(g):s}for(var c=null,u=Math.abs(r-o)!==1,d=0;d<i.length;d+=1){var f=l(a[d]),h=l(i[d]);if(f!==h){c=d,u=u||f!==l(i[d+1]);break}}return c===null?null:{index:c,multiple:u}}function see(e,t,n){var r=m__namespace.useState(e),o=Z(r,2),a=o[0],i=o[1],s=m__namespace.useState(null),l=Z(s,2),c=l[0],u=l[1];return m__namespace.useEffect(function(){var d=iee(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 G1=(typeof navigator>"u"?"undefined":it(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const XE=function(e,t){var n=m.useRef(!1),r=m.useRef(null);function o(){clearTimeout(r.current),n.current=!0,r.current=setTimeout(function(){n.current=!1;},50);}var a=m.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 lee(e,t,n,r,o){var a=m.useRef(0),i=m.useRef(null),s=m.useRef(null),l=m.useRef(!1),c=XE(t,n);function u(p,b){Mt.cancel(i.current),a.current+=b,s.current=b,!c(b)&&(G1||p.preventDefault(),i.current=Mt(function(){var y=l.current?10:1;o(a.current*y),a.current=0;}));}function d(p,b){o(b,!0),G1||p.preventDefault();}var f=m.useRef(null),h=m.useRef(null);function g(p){if(e){Mt.cancel(h.current),h.current=Mt(function(){f.current=null;},2);var b=p.deltaX,y=p.deltaY,C=p.shiftKey,w=b,x=y;(f.current==="sx"||!f.current&&C&&y&&!b)&&(w=y,x=0,f.current="sx");var E=Math.abs(w),S=Math.abs(x);f.current===null&&(f.current=r&&E>S?"x":"y"),f.current==="y"?u(p,x):d(p,w);}}function v(p){e&&(l.current=p.detail===s.current);}return [g,v]}var cee=14/15;function uee(e,t,n){var r=m.useRef(!1),o=m.useRef(0),a=m.useRef(null),i=m.useRef(null),s,l=function(f){if(r.current){var h=Math.ceil(f.touches[0].pageY),g=o.current-h;o.current=h,n(g)&&f.preventDefault(),clearInterval(i.current),i.current=setInterval(function(){g*=cee,(!n(g,!0)||Math.abs(g)<=.1)&&clearInterval(i.current);},16);}},c=function(){r.current=!1,s();},u=function(f){s(),f.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(f.touches[0].pageY),a.current=f.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));},Xt(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 dee=20;function K1(){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,dee),n=Math.min(n,e/2),Math.floor(n)}function fee(e,t,n,r){var o=m__namespace.useMemo(function(){return [new Map,[]]},[e,n.id,r]),a=Z(o,2),i=a[0],s=a[1],l=function(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u,f=i.get(u),h=i.get(d);if(f===void 0||h===void 0)for(var g=e.length,v=s.length;v<g;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&&(f=v),y===d&&(h=v),f!==void 0&&h!==void 0)break}return {top:s[f-1]||0,bottom:s[h]}};return l}var mee=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],hee=[],gee={overflowY:"auto",overflowAnchor:"none"};function vee(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,f=e.itemKey,h=e.virtual,g=e.direction,v=e.scrollWidth,p=e.component,b=p===void 0?"div":p,y=e.onScroll,C=e.onVirtualScroll,w=e.onVisibleChange,x=e.innerProps,E=e.extraRender,S=e.styles,$=et(e,mee),I=!!(h!==!1&&a&&i),P=I&&u&&(i*u.length>a||!!v),R=g==="rtl",M=W(r,z({},"".concat(r,"-rtl"),R),o),k=u||hee,A=m.useRef(),L=m.useRef(),_=m.useState(0),O=Z(_,2),T=O[0],D=O[1],j=m.useState(0),B=Z(j,2),H=B[0],G=B[1],K=m.useState(!1),X=Z(K,2),Y=X[0],ee=X[1],V=function(){ee(!0);},J=function(){ee(!1);},q=m__namespace.useCallback(function(Se){return typeof f=="function"?f(Se):Se==null?void 0:Se[f]},[f]),se={getKey:q};function le(Se){D(function(we){var je;typeof Se=="function"?je=Se(we):je=Se;var ut=ft(je);return A.current.scrollTop=ut,ut});}var Q=m.useRef({start:0,end:k.length}),ne=m.useRef(),de=see(k,q),te=Z(de,1),ce=te[0];ne.current=ce;var ge=ree(q,null,null),re=Z(ge,4),ae=re[0],he=re[1],Ce=re[2],_e=re[3],He=m__namespace.useMemo(function(){if(!I)return {scrollHeight:void 0,start:0,end:k.length-1,offset:void 0};if(!P){var Se;return {scrollHeight:((Se=L.current)===null||Se===void 0?void 0:Se.offsetHeight)||0,start:0,end:k.length-1,offset:void 0}}for(var we=0,je,ut,_t,Rt=k.length,hn=0;hn<Rt;hn+=1){var un=k[hn],gn=q(un),Wn=Ce.get(gn),wn=we+(Wn===void 0?i:Wn);wn>=T&&je===void 0&&(je=hn,ut=we),wn>T+a&&_t===void 0&&(_t=hn),we=wn;}return je===void 0&&(je=0,ut=0,_t=Math.ceil(a/i)),_t===void 0&&(_t=k.length-1),_t=Math.min(_t+1,k.length-1),{scrollHeight:we,start:je,end:_t,offset:ut}},[P,I,T,k,_e,a]),We=He.scrollHeight,Me=He.start,Ye=He.end,Be=He.offset;Q.current.start=Me,Q.current.end=Ye;var Ve=m__namespace.useState({width:0,height:a}),Pe=Z(Ve,2),xe=Pe[0],qe=Pe[1],rt=function(we){qe(we);},yt=m.useRef(),Qe=m.useRef(),Je=m__namespace.useMemo(function(){return K1(xe.width,v)},[xe.width,v]),pt=m__namespace.useMemo(function(){return K1(xe.height,We)},[xe.height,We]),ht=We-a,lt=m.useRef(ht);lt.current=ht;function ft(Se){var we=Se;return Number.isNaN(lt.current)||(we=Math.min(we,lt.current)),we=Math.max(we,0),we}var xt=T<=0,Oe=T>=ht,Re=XE(xt,Oe),ke=function(){return {x:R?-H:H,y:T}},pe=m.useRef(ke()),De=Ln(function(){if(C){var Se=ke();(pe.current.x!==Se.x||pe.current.y!==Se.y)&&(C(Se),pe.current=Se);}});function $e(Se,we){var je=Se;we?(HC.flushSync(function(){G(je);}),De()):le(je);}function fe(Se){var we=Se.currentTarget.scrollTop;we!==T&&le(we),y==null||y(Se),De();}var oe=function(we){var je=we,ut=v-xe.width;return je=Math.max(je,0),je=Math.min(je,ut),je},ye=Ln(function(Se,we){we?(HC.flushSync(function(){G(function(je){var ut=je+(R?-Se:Se);return oe(ut)});}),De()):le(function(je){var ut=je+Se;return ut});}),ue=lee(I,xt,Oe,!!v,ye),ve=Z(ue,2),Ne=ve[0],Ue=ve[1];uee(I,A,function(Se,we){return Re(Se,we)?!1:(Ne({preventDefault:function(){},deltaY:Se}),!0)}),Xt(function(){function Se(je){I&&je.preventDefault();}var we=A.current;return we.addEventListener("wheel",Ne),we.addEventListener("DOMMouseScroll",Ue),we.addEventListener("MozMousePixelScroll",Se),function(){we.removeEventListener("wheel",Ne),we.removeEventListener("DOMMouseScroll",Ue),we.removeEventListener("MozMousePixelScroll",Se);}},[I]),Xt(function(){v&&G(function(Se){return oe(Se)});},[xe.width,v]);var bt=function(){var we,je;(we=yt.current)===null||we===void 0||we.delayHidden(),(je=Qe.current)===null||je===void 0||je.delayHidden();},gt=aee(A,k,Ce,i,q,function(){return he(!0)},le,bt);m__namespace.useImperativeHandle(t,function(){return {getScrollInfo:ke,scrollTo:function(we){function je(ut){return ut&&it(ut)==="object"&&("left"in ut||"top"in ut)}je(we)?(we.left!==void 0&&G(oe(we.left)),gt(we.top)):gt(we);}}}),Xt(function(){if(w){var Se=k.slice(Me,Ye+1);w(Se,k);}},[Me,Ye,k]);var Nt=fee(k,q,Ce,i),St=E==null?void 0:E({start:Me,end:Ye,virtual:P,offsetX:H,offsetY:Be,rtl:R,getSize:Nt}),ct=tee(k,Me,Ye,v,ae,d,se),Ae=null;a&&(Ae=U(z({},l?"height":"maxHeight",a),gee),I&&(Ae.overflowY="hidden",v&&(Ae.overflowX="hidden"),Y&&(Ae.pointerEvents="none")));var Ee={};return R&&(Ee.dir="rtl"),m__namespace.createElement("div",Ie({style:U(U({},c),{},{position:"relative"}),className:M},Ee,$),m__namespace.createElement(Or,{onResize:rt},m__namespace.createElement(b,{className:"".concat(r,"-holder"),style:Ae,ref:A,onScroll:fe,onMouseEnter:bt},m__namespace.createElement(UE,{prefixCls:r,height:We,offsetX:H,offsetY:Be,scrollWidth:v,onInnerResize:he,ref:L,innerProps:x,rtl:R,extra:St},ct))),P&&We>a&&m__namespace.createElement(W1,{ref:yt,prefixCls:r,scrollOffset:T,scrollRange:We,rtl:R,onScroll:$e,onStartMove:V,onStopMove:J,spinSize:pt,containerSize:xe.height,style:S==null?void 0:S.verticalScrollBar,thumbStyle:S==null?void 0:S.verticalScrollBarThumb}),P&&v&&m__namespace.createElement(W1,{ref:Qe,prefixCls:r,scrollOffset:H,scrollRange:v,rtl:R,onScroll:$e,onStartMove:V,onStopMove:J,spinSize:Je,containerSize:xe.width,horizontal:!0,style:S==null?void 0:S.horizontalScrollBar,thumbStyle:S==null?void 0:S.horizontalScrollBarThumb}))}var qE=m__namespace.forwardRef(vee);qE.displayName="List";var YE=m__namespace.createContext(null);function pee(){return /(mac\sos|macintosh)/i.test(navigator.appVersion)}var bee=["disabled","title","children","style","className"];function U1(e){return typeof e=="string"||typeof e=="number"}var yee=function(t,n){var r=_J(),o=r.prefixCls,a=r.id,i=r.open,s=r.multiple,l=r.mode,c=r.searchValue,u=r.toggleOpen,d=r.notFoundContent,f=r.onPopupScroll,h=m__namespace.useContext(YE),g=h.flattenOptions,v=h.onActiveValue,p=h.defaultActiveFirstOption,b=h.onSelect,y=h.menuItemSelectedIcon,C=h.rawValues,w=h.fieldNames,x=h.virtual,E=h.direction,S=h.listHeight,$=h.listItemHeight,I=h.optionRender,P="".concat(o,"-item"),R=$l(function(){return g},[i,g],function(V,J){return J[0]&&V[1]!==J[1]}),M=m__namespace.useRef(null),k=function(J){J.preventDefault();},A=function(J){M.current&&M.current.scrollTo(typeof J=="number"?{index:J}:J);},L=function(J){for(var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,se=R.length,le=0;le<se;le+=1){var Q=(J+le*q+se)%se,ne=R[Q],de=ne.group,te=ne.data;if(!de&&!te.disabled)return Q}return -1},_=m__namespace.useState(function(){return L(0)}),O=Z(_,2),T=O[0],D=O[1],j=function(J){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;D(J);var se={source:q?"keyboard":"mouse"},le=R[J];if(!le){v(null,-1,se);return}v(le.value,J,se);};m.useEffect(function(){j(p!==!1?L(0):-1);},[R.length,c]);var B=m__namespace.useCallback(function(V){return C.has(V)&&l!=="combobox"},[l,Te(C).toString(),C.size]);m.useEffect(function(){var V=setTimeout(function(){if(!s&&i&&C.size===1){var q=Array.from(C)[0],se=R.findIndex(function(le){var Q=le.data;return Q.value===q});se!==-1&&(j(se),A(se));}});if(i){var J;(J=M.current)===null||J===void 0||J.scrollTo(void 0);}return function(){return clearTimeout(V)}},[i,c]);var H=function(J){J!==void 0&&b(J,{selected:!C.has(J)}),s||u(!1);};if(m__namespace.useImperativeHandle(n,function(){return {onKeyDown:function(J){var q=J.which,se=J.ctrlKey;switch(q){case me.N:case me.P:case me.UP:case me.DOWN:{var le=0;if(q===me.UP?le=-1:q===me.DOWN?le=1:pee()&&se&&(q===me.N?le=1:q===me.P&&(le=-1)),le!==0){var Q=L(T+le,le);A(Q),j(Q,!0);}break}case me.ENTER:{var ne=R[T];ne&&!ne.data.disabled?H(ne.value):H(void 0),i&&J.preventDefault();break}case me.ESC:u(!1),i&&J.stopPropagation();}},onKeyUp:function(){},scrollTo:function(J){A(J);}}}),R.length===0)return m__namespace.createElement("div",{role:"listbox",id:"".concat(a,"_list"),className:"".concat(P,"-empty"),onMouseDown:k},d);var G=Object.keys(w).map(function(V){return w[V]}),K=function(J){return J.label};function X(V,J){var q=V.group;return {role:q?"presentation":"option",id:"".concat(a,"_list_").concat(J)}}var Y=function(J){var q=R[J];if(!q)return null;var se=q.data||{},le=se.value,Q=q.group,ne=Ni(se,!0),de=K(q);return q?m__namespace.createElement("div",Ie({"aria-label":typeof de=="string"&&!Q?de:null},ne,{key:J},X(q,J),{"aria-selected":B(le)}),le):null},ee={role:"listbox",id:"".concat(a,"_list")};return m__namespace.createElement(m__namespace.Fragment,null,x&&m__namespace.createElement("div",Ie({},ee,{style:{height:0,width:0,overflow:"hidden"}}),Y(T-1),Y(T),Y(T+1)),m__namespace.createElement(qE,{itemKey:"key",ref:M,data:R,height:S,itemHeight:$,fullHeight:!1,onMouseDown:k,onScroll:f,virtual:x,direction:E,innerProps:x?null:ee},function(V,J){var q,se=V.group,le=V.groupOption,Q=V.data,ne=V.label,de=V.value,te=Q.key;if(se){var ce,ge=(ce=Q.title)!==null&&ce!==void 0?ce:U1(ne)?ne.toString():void 0;return m__namespace.createElement("div",{className:W(P,"".concat(P,"-group")),title:ge},ne!==void 0?ne:te)}var re=Q.disabled,ae=Q.title;Q.children;var he=Q.style,Ce=Q.className,_e=et(Q,bee),He=Vn(_e,G),We=B(de),Me="".concat(P,"-option"),Ye=W(P,Me,Ce,(q={},z(q,"".concat(Me,"-grouped"),le),z(q,"".concat(Me,"-active"),T===J&&!re),z(q,"".concat(Me,"-disabled"),re),z(q,"".concat(Me,"-selected"),We),q)),Be=K(V),Ve=!y||typeof y=="function"||We,Pe=typeof Be=="number"?Be:Be||de,xe=U1(Pe)?Pe.toString():void 0;return ae!==void 0&&(xe=ae),m__namespace.createElement("div",Ie({},Ni(He),x?{}:X(V,J),{"aria-selected":We,className:Ye,title:xe,onMouseMove:function(){T===J||re||j(J);},onClick:function(){re||H(de);},style:he}),m__namespace.createElement("div",{className:"".concat(Me,"-content")},typeof I=="function"?I(V,{index:J}):Pe),m__namespace.isValidElement(y)||We,Ve&&m__namespace.createElement(yf,{className:"".concat(P,"-option-state"),customizeIcon:y,customizeIconProps:{value:de,disabled:re,isSelected:We}},We?"✓":null))}))},ZE=m__namespace.forwardRef(yee);ZE.displayName="OptionList";const Cee=function(e,t){var n=m__namespace.useRef({values:new Map,options:new Map}),r=m__namespace.useMemo(function(){var a=n.current,i=a.values,s=a.options,l=e.map(function(d){if(d.label===void 0){var f;return U(U({},d),{},{label:(f=i.get(d.value))===null||f===void 0?void 0:f.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=m__namespace.useCallback(function(a){return t.get(a)||n.current.options.get(a)},[t]);return [r,o]};function $m(e,t){return HE(e).join("").toUpperCase().includes(t)}const See=function(e,t,n,r,o){return m__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(h,g){return o?$m(g[o],u):g[a]?$m(g[i!=="children"?i:"label"],u):$m(g[s],u)},f=c?function(h){return pg(h)}:function(h){return h};return e.forEach(function(h){if(h[a]){var g=d(n,f(h));if(g)l.push(h);else {var v=h[a].filter(function(p){return d(n,f(p))});v.length&&l.push(U(U({},h),{},z({},a,v)));}return}d(n,f(h))&&l.push(h);}),l},[e,r,o,n,t])};var X1=0,wee=Yn();function $ee(){var e;return wee?(e=X1,X1+=1):e="TEST_OR_SSR",e}function xee(e){var t=m__namespace.useState(),n=Z(t,2),r=n[0],o=n[1];return m__namespace.useEffect(function(){o("rc_select_".concat($ee()));},[]),e||r}var Eee=["children","value"],Iee=["children"];function Pee(e){var t=e,n=t.key,r=t.props,o=r.children,a=r.value,i=et(r,Eee);return U({key:n,value:a!==void 0?a:n,children:o},i)}function QE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return vr(e).map(function(n,r){if(!m__namespace.isValidElement(n)||!n.type)return null;var o=n,a=o.type.isSelectOptGroup,i=o.key,s=o.props,l=s.children,c=et(s,Iee);return t||!a?Pee(n):U(U({key:"__RC_SELECT_GRP__".concat(i===null?r:i,"__"),label:i},c),{},{options:QE(l)})}).filter(function(n){return n})}function Oee(e,t,n,r,o){return m__namespace.useMemo(function(){var a=e,i=!e;i&&(a=QE(t));var s=new Map,l=new Map,c=function(f,h,g){g&&typeof g=="string"&&f.set(h[g],h);};function u(d){for(var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,h=0;h<d.length;h+=1){var g=d[h];!g[n.options]||f?(s.set(g[n.value],g),c(l,g,n.label),c(l,g,r),c(l,g,o)):u(g[n.options],!0);}}return u(a),{options:a,valueOptions:s,labelOptions:l}},[e,t,n,r,o])}function q1(e){var t=m__namespace.useRef();t.current=e;var n=m__namespace.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var Mee=["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"],Ree=["inputValue"];function Tee(e){return !e||it(e)!=="object"}var _ee=m__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,f=d===void 0?!0:d,h=e.onSelect,g=e.onDeselect,v=e.dropdownMatchSelectWidth,p=v===void 0?!0:v,b=e.filterOption,y=e.filterSort,C=e.optionFilterProp,w=e.optionLabelProp,x=e.options,E=e.optionRender,S=e.children,$=e.defaultActiveFirstOption,I=e.menuItemSelectedIcon,P=e.virtual,R=e.direction,M=e.listHeight,k=M===void 0?200:M,A=e.listItemHeight,L=A===void 0?20:A,_=e.value,O=e.defaultValue,T=e.labelInValue,D=e.onChange,j=et(e,Mee),B=xee(n),H=bg(r),G=!!(!x&&S),K=m__namespace.useMemo(function(){return b===void 0&&r==="combobox"?!1:b},[b,r]),X=m__namespace.useMemo(function(){return KE(s,G)},[JSON.stringify(s),G]),Y=qt("",{value:c!==void 0?c:l,postState:function(ye){return ye||""}}),ee=Z(Y,2),V=ee[0],J=ee[1],q=Oee(x,S,X,C,w),se=q.valueOptions,le=q.labelOptions,Q=q.options,ne=m__namespace.useCallback(function(oe){var ye=HE(oe);return ye.map(function(ue){var ve,Ne,Ue,bt,gt;if(Tee(ue))ve=ue;else {var Nt;Ue=ue.key,Ne=ue.label,ve=(Nt=ue.value)!==null&&Nt!==void 0?Nt:Ue;}var St=se.get(ve);if(St){var ct;Ne===void 0&&(Ne=St==null?void 0:St[w||X.label]),Ue===void 0&&(Ue=(ct=St==null?void 0:St.key)!==null&&ct!==void 0?ct:ve),bt=St==null?void 0:St.disabled,gt=St==null?void 0:St.title;}return {label:Ne,value:ve,key:Ue,disabled:bt,title:gt}})},[X,w,se]),de=qt(O,{value:_}),te=Z(de,2),ce=te[0],ge=te[1],re=m__namespace.useMemo(function(){var oe,ye=ne(ce);return r==="combobox"&&jJ((oe=ye[0])===null||oe===void 0?void 0:oe.value)?[]:ye},[ce,ne,r]),ae=Cee(re,se),he=Z(ae,2),Ce=he[0],_e=he[1],He=m__namespace.useMemo(function(){if(!r&&Ce.length===1){var oe=Ce[0];if(oe.value===null&&(oe.label===null||oe.label===void 0))return []}return Ce.map(function(ye){var ue;return U(U({},ye),{},{label:(ue=ye.label)!==null&&ue!==void 0?ue:ye.value})})},[r,Ce]),We=m__namespace.useMemo(function(){return new Set(Ce.map(function(oe){return oe.value}))},[Ce]);m__namespace.useEffect(function(){if(r==="combobox"){var oe,ye=(oe=Ce[0])===null||oe===void 0?void 0:oe.value;J(DJ(ye)?String(ye):"");}},[Ce]);var Me=q1(function(oe,ye){var ue,ve=ye??oe;return ue={},z(ue,X.value,oe),z(ue,X.label,ve),ue}),Ye=m__namespace.useMemo(function(){if(r!=="tags")return Q;var oe=Te(Q),ye=function(ve){return se.has(ve)};return Te(Ce).sort(function(ue,ve){return ue.value<ve.value?-1:1}).forEach(function(ue){var ve=ue.value;ye(ve)||oe.push(Me(ve,ue.label));}),oe},[Me,Q,se,Ce,r]),Be=See(Ye,X,V,K,C),Ve=m__namespace.useMemo(function(){return r!=="tags"||!V||Be.some(function(oe){return oe[C||"value"]===V})||Be.some(function(oe){return oe[X.value]===V})?Be:[Me(V)].concat(Te(Be))},[Me,C,r,Be,V,X]),Pe=m__namespace.useMemo(function(){return y?Te(Ve).sort(function(oe,ye){return y(oe,ye)}):Ve},[Ve,y]),xe=m__namespace.useMemo(function(){return qJ(Pe,{fieldNames:X,childrenAsData:G})},[Pe,X,G]),qe=function(ye){var ue=ne(ye);if(ge(ue),D&&(ue.length!==Ce.length||ue.some(function(Ue,bt){var gt;return ((gt=Ce[bt])===null||gt===void 0?void 0:gt.value)!==(Ue==null?void 0:Ue.value)}))){var ve=T?ue:ue.map(function(Ue){return Ue.value}),Ne=ue.map(function(Ue){return pg(_e(Ue.value))});D(H?ve:ve[0],H?Ne:Ne[0]);}},rt=m__namespace.useState(null),yt=Z(rt,2),Qe=yt[0],Je=yt[1],pt=m__namespace.useState(0),ht=Z(pt,2),lt=ht[0],ft=ht[1],xt=$!==void 0?$:r!=="combobox",Oe=m__namespace.useCallback(function(oe,ye){var ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ve=ue.source,Ne=ve===void 0?"keyboard":ve;ft(ye),i&&r==="combobox"&&oe!==null&&Ne==="keyboard"&&Je(String(oe));},[i,r]),Re=function(ye,ue,ve){var Ne=function(){var we,je=_e(ye);return [T?{label:je==null?void 0:je[X.label],value:ye,key:(we=je==null?void 0:je.key)!==null&&we!==void 0?we:ye}:ye,pg(je)]};if(ue&&h){var Ue=Ne(),bt=Z(Ue,2),gt=bt[0],Nt=bt[1];h(gt,Nt);}else if(!ue&&g&&ve!=="clear"){var St=Ne(),ct=Z(St,2),Ae=ct[0],Ee=ct[1];g(Ae,Ee);}},ke=q1(function(oe,ye){var ue,ve=H?ye.selected:!0;ve?ue=H?[].concat(Te(Ce),[oe]):[oe]:ue=Ce.filter(function(Ne){return Ne.value!==oe}),qe(ue),Re(oe,ve),r==="combobox"?Je(""):(!bg||f)&&(J(""),Je(""));}),pe=function(ye,ue){qe(ye);var ve=ue.type,Ne=ue.values;(ve==="remove"||ve==="clear")&&Ne.forEach(function(Ue){Re(Ue.value,!1,ve);});},De=function(ye,ue){if(J(ye),Je(null),ue.source==="submit"){var ve=(ye||"").trim();if(ve){var Ne=Array.from(new Set([].concat(Te(We),[ve])));qe(Ne),Re(ve,!0),J("");}return}ue.source!=="blur"&&(r==="combobox"&&qe(ye),u==null||u(ye));},$e=function(ye){var ue=ye;r!=="tags"&&(ue=ye.map(function(Ne){var Ue=le.get(Ne);return Ue==null?void 0:Ue.value}).filter(function(Ne){return Ne!==void 0}));var ve=Array.from(new Set([].concat(Te(We),Te(ue))));qe(ve),ve.forEach(function(Ne){Re(Ne,!0);});},fe=m__namespace.useMemo(function(){var oe=P!==!1&&p!==!1;return U(U({},q),{},{flattenOptions:xe,onActiveValue:Oe,defaultActiveFirstOption:xt,onSelect:ke,menuItemSelectedIcon:I,rawValues:We,fieldNames:X,virtual:oe,direction:R,listHeight:k,listItemHeight:L,childrenAsData:G,optionRender:E})},[q,xe,Oe,xt,ke,I,We,X,P,p,k,L,G,E]);return m__namespace.createElement(YE.Provider,{value:fe},m__namespace.createElement(JJ,Ie({},j,{id:B,prefixCls:a,ref:t,omitDomProps:Ree,mode:r,displayValues:He,onDisplayValuesChange:pe,direction:R,searchValue:V,onSearch:De,autoClearSearchValue:f,onSearchSplit:$e,dropdownMatchSelectWidth:p,OptionList:ZE,emptyOptions:!xe.length,activeValue:Qe,activeDescendantId:"".concat(B,"_list_").concat(lt)})))}),Bp=_ee;Bp.Option=zp;Bp.OptGroup=jp;const kee=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"}},Nee=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({},jt(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:jv},[`
          ${o}${s}topLeft,
          ${a}${s}topLeft,
          ${o}${s}topRight,
          ${a}${s}topRight
        `]:{animationName:Bv},[`${i}${s}bottomLeft`]:{animationName:zv},[`
          ${i}${s}topLeft,
          ${i}${s}topRight
        `]:{animationName:Hv},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},kee(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"},Sa),"&-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"}})},Vo(e,"slide-up"),Vo(e,"slide-down"),fu(e,"move-up"),fu(e,"move-down")]},Aee=Nee,Qa=2,JE=e=>{let{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;const o=(n-t)/2-r,a=Math.ceil(o/2);return [o,a]};function xm(e,t){const{componentCls:n,iconCls:r}=e,o=`${n}-selection-overflow`,a=e.multipleSelectItemHeight,[i]=JE(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-Qa}px ${Qa*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:`${Qa}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:Qa,marginBottom:Qa,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:Qa*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({},Ta()),{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 Lee=e=>{const{componentCls:t}=e,n=Ct(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=Ct(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),[,o]=JE(e);return [xm(e),xm(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.controlPaddingHorizontalSM-e.lineWidth},[`${t}-selection-search`]:{marginInlineStart:o}}},xm(r,"lg")]},Fee=Lee;function Em(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({},jt(e,!0)),{display:"flex",borderRadius:o,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
          ${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 Dee(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return [Em(e),Em(Ct(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}}}},Em(Ct(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const jee=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"}}}},Im=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}})}}},zee=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"}}}},Bee=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return {[n]:Object.assign(Object.assign({},jt(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},jee(e)),zee(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Sa),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Sa),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},Ta()),{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}}}},Hee=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%"}}},Bee(e),Dee(e),Fee(e),Aee(e),{[`${t}-rtl`]:{direction:"rtl"}},Im(t,Ct(e,{borderHoverColor:e.colorPrimaryHover,borderActiveColor:e.colorPrimary,outlineColor:e.controlOutline})),Im(`${t}-status-error`,Ct(e,{borderHoverColor:e.colorErrorHover,borderActiveColor:e.colorError,outlineColor:e.colorErrorOutline}),!0),Im(`${t}-status-warning`,Ct(e,{borderHoverColor:e.colorWarningHover,borderActiveColor:e.colorWarning,outlineColor:e.colorWarningOutline}),!0),pf(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},Vee=Kt("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=Ct(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1,multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return [Hee(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:f,controlHeightSM:h,colorBgContainerDisabled:g,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:f,multipleItemBg:d,multipleItemBorderColor:"transparent",multipleItemHeight:h,multipleItemHeightLG:r,multipleSelectorBgDisabled:g,multipleItemColorDisabled:v,multipleItemBorderColorDisabled:"transparent"}}),Wee=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 Gee(e,t){return e||Wee(t)}var Kee={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 Uee=Kee;var Xee=function(t,n){return m__namespace.createElement(_n,Ie({},t,{ref:n,icon:Uee}))};const qee=m__namespace.forwardRef(Xee);var Yee={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 Zee=Yee;var Qee=function(t,n){return m__namespace.createElement(_n,Ie({},t,{ref:n,icon:Zee}))};const Hp=m__namespace.forwardRef(Qee);var Jee={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 ete=Jee;var tte=function(t,n){return m__namespace.createElement(_n,Ie({},t,{ref:n,icon:ete}))};const Vp=m__namespace.forwardRef(tte);function nte(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:f}=e;const h=n??m__namespace.createElement(Hp,null),g=y=>t===null&&!s&&!d?null:m__namespace.createElement(m__namespace.Fragment,null,c!==!1&&y,s&&u);let v=null;if(t!==void 0)v=g(t);else if(a)v=g(m__namespace.createElement(Mp,{spin:!0}));else {const y=`${l}-suffix`;v=C=>{let{open:w,showSearch:x}=C;return g(w&&x?m__namespace.createElement(Vp,{className:y}):m__namespace.createElement(Fp,{className:y}))};}let p=null;r!==void 0?p=r:i?p=m__namespace.createElement(qee,null):p=null;let b=null;return o!==void 0?b=o:b=m__namespace.createElement(bf,null),{clearIcon:h,suffixIcon:v,itemIcon:p,removeIcon:b}}function rte(e,t){return t!==void 0?t:e!==null}var ote=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 eI="SECRET_COMBOBOX_MODE_DO_NOT_USE",ate=(e,t)=>{var n,r,{prefixCls:o,bordered:a=!0,className:i,rootClassName:s,getPopupContainer:l,popupClassName:c,dropdownClassName:u,listHeight:d=256,placement:f,listItemHeight:h=24,size:g,disabled:v,notFoundContent:p,status:b,builtinPlacements:y,dropdownMatchSelectWidth:C,popupMatchSelectWidth:w,direction:x,style:E,allowClear:S}=e,$=ote(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:P,renderEmpty:R,direction:M,virtual:k,popupMatchSelectWidth:A,popupOverflow:L,select:_}=m__namespace.useContext(tt),O=P("select",o),T=P(),D=x??M,{compactSize:j,compactItemClassnames:B}=es(O,D),[H,G]=Vee(O),K=m__namespace.useMemo(()=>{const{mode:Be}=$;if(Be!=="combobox")return Be===eI?"combobox":Be},[$.mode]),X=K==="multiple"||K==="tags",Y=rte($.suffixIcon,$.showArrow),ee=(n=w??C)!==null&&n!==void 0?n:A,{status:V,hasFeedback:J,isFormItemInput:q,feedbackIcon:se}=m__namespace.useContext(Mr),le=ql(V,b);let Q;p!==void 0?Q=p:K==="combobox"?Q=null:Q=(R==null?void 0:R("Select"))||m__namespace.createElement(DE,{componentName:"Select"});const{suffixIcon:ne,itemIcon:de,removeIcon:te,clearIcon:ce}=nte(Object.assign(Object.assign({},$),{multiple:X,hasFeedback:J,feedbackIcon:se,showSuffixIcon:Y,prefixCls:O,showArrow:$.showArrow,componentName:"Select"})),ge=S===!0?{clearIcon:ce}:S,re=Vn($,["suffixIcon","itemIcon"]),ae=W(c||u,{[`${O}-dropdown-${D}`]:D==="rtl"},s,G),he=or(Be=>{var Ve;return (Ve=g??j)!==null&&Ve!==void 0?Ve:Be}),Ce=m__namespace.useContext(Kr),_e=v??Ce,He=W({[`${O}-lg`]:he==="large",[`${O}-sm`]:he==="small",[`${O}-rtl`]:D==="rtl",[`${O}-borderless`]:!a,[`${O}-in-form-item`]:q},Br(O,le,J),B,_==null?void 0:_.className,i,s,G),We=m__namespace.useMemo(()=>f!==void 0?f:D==="rtl"?"bottomRight":"bottomLeft",[f,D]),Me=Gee(y,L),[Ye]=kd("SelectLike",(r=$.dropdownStyle)===null||r===void 0?void 0:r.zIndex);return H(m__namespace.createElement(Bp,Object.assign({ref:t,virtual:k,showSearch:_==null?void 0:_.showSearch},re,{style:Object.assign(Object.assign({},_==null?void 0:_.style),E),dropdownMatchSelectWidth:ee,builtinPlacements:Me,transitionName:Nd(T,"slide-up",$.transitionName),listHeight:d,listItemHeight:h,mode:K,prefixCls:O,placement:We,direction:D,suffixIcon:ne,menuItemSelectedIcon:de,removeIcon:te,allowClear:ge,notFoundContent:Q,className:He,getPopupContainer:l||I,dropdownClassName:ae,disabled:_e,dropdownStyle:Object.assign(Object.assign({},$==null?void 0:$.dropdownStyle),{zIndex:Ye})})))},is=m__namespace.forwardRef(ate),ite=Cp(is);is.SECRET_COMBOBOX_MODE_DO_NOT_USE=eI;is.Option=zp;is.OptGroup=jp;is._InternalPanelDoNotUseOrYouWillBeFired=ite;const Yl=is,tI=e=>m__namespace.createElement(Yl,Object.assign({},e,{showSearch:!0,size:"small"})),nI=e=>m__namespace.createElement(Yl,Object.assign({},e,{showSearch:!0,size:"middle"}));tI.Option=Yl.Option;nI.Option=Yl.Option;const rI=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),oI=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),yg=e=>({borderColor:e.activeBorderColor,boxShadow:e.activeShadow,outline:0,backgroundColor:e.activeBg}),Wp=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover:not([disabled])":Object.assign({},oI(Ct(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),aI=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}},Gp=e=>({padding:`${e.paddingBlockSM}px ${e.paddingInlineSM}px`,borderRadius:e.borderRadiusSM}),Cf=(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({},yg(Ct(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({},yg(Ct(e,{activeBorderColor:o,activeShadow:i}))),[`${n}-prefix, ${n}-suffix`]:{color:o}}}},Zl=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}`},rI(e.colorTextPlaceholder)),{"&:hover":Object.assign({},oI(e)),"&:focus, &:focus-within":Object.assign({},yg(e)),"&-disabled, &[disabled]":Object.assign({},Wp(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({},aI(e)),"&-sm":Object.assign({},Gp(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),iI=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({},aI(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},Gp(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"},$h()),{[`${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}}}})}},ste=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({},jt(e)),Zl(e)),Cf(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"}})}},lte=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`}}}},cte=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({},Zl(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}}}),lte(e)),{[`${s}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:i}}}),Cf(e,`${t}-affix-wrapper`))}},ute=e=>{const{componentCls:t,colorError:n,colorWarning:r,borderRadiusLG:o,borderRadiusSM:a}=e;return {[`${t}-group`]:Object.assign(Object.assign(Object.assign({},jt(e)),iI(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({},Wp(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}}}})}},dte=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}}}}},fte=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"}}}}}},mte=e=>{const{componentCls:t}=e;return {[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}};function Kp(e){return Ct(e,{inputAffixPadding:e.paddingXXS})}const Up=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:f,colorPrimaryHover:h,colorPrimary:g,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:f,activeBorderColor:g,hoverBorderColor:h,activeShadow:`0 0 0 ${v}px ${p}`,errorActiveShadow:`0 0 0 ${v}px ${b}`,warningActiveShadow:`0 0 0 ${v}px ${y}`,hoverBg:"",activeBg:""}},Xp=Kt("Input",e=>{const t=Ct(e,Kp(e));return [ste(t),fte(t),cte(t),ute(t),dte(t),mte(t),pf(t)]},Up),hte=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"}}}}}},gte=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({},Gp(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},vte=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"}}}}},pte=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({},Zl(e)),{width:e.controlHeightLG*1.25,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},bte=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}}}}},yte=e=>{const{componentCls:t}=e;return {[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},jt(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"}}),bte(e)),pte(e)),vte(e)),gte(e)),hte(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"}}},Cte=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}}}}},Ste=e=>{const{componentCls:t}=e;return {[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},$a(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},wa(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},wa(e))}}}},wte=Kt("Pagination",e=>{const t=Ct(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"},Kp(e),Up(e));return [yte(t),Ste(t),e.wireframe&&Cte(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 $te=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 xte=e=>{const{prefixCls:t,selectPrefixCls:n,className:r,rootClassName:o,style:a,size:i,locale:s,selectComponentClass:l,responsive:c,showSizeChanger:u}=e,d=$te(e,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:f}=z2(c),{getPrefixCls:h,direction:g,pagination:v={}}=m__namespace.useContext(tt),p=h("pagination",t),[b,y]=wte(p),C=u??v.showSizeChanger,w=m__namespace.useMemo(()=>{const M=m__namespace.createElement("span",{className:`${p}-item-ellipsis`},"•••"),k=m__namespace.createElement("button",{className:`${p}-item-link`,type:"button",tabIndex:-1},g==="rtl"?m__namespace.createElement(Fi,null):m__namespace.createElement(Pu,null)),A=m__namespace.createElement("button",{className:`${p}-item-link`,type:"button",tabIndex:-1},g==="rtl"?m__namespace.createElement(Pu,null):m__namespace.createElement(Fi,null)),L=m__namespace.createElement("a",{className:`${p}-item-link`},m__namespace.createElement("div",{className:`${p}-item-container`},g==="rtl"?m__namespace.createElement(D1,{className:`${p}-item-link-icon`}):m__namespace.createElement(F1,{className:`${p}-item-link-icon`}),M)),_=m__namespace.createElement("a",{className:`${p}-item-link`},m__namespace.createElement("div",{className:`${p}-item-container`},g==="rtl"?m__namespace.createElement(F1,{className:`${p}-item-link-icon`}):m__namespace.createElement(D1,{className:`${p}-item-link-icon`}),M));return {prevIcon:k,nextIcon:A,jumpPrevIcon:L,jumpNextIcon:_}},[g,p]),[x]=Qi("Pagination",b$),E=Object.assign(Object.assign({},x),s),S=or(i),$=S==="small"||!!(f&&!S&&c),I=h("select",n),P=W({[`${p}-mini`]:$,[`${p}-rtl`]:g==="rtl"},v==null?void 0:v.className,r,o,y),R=Object.assign(Object.assign({},v==null?void 0:v.style),a);return b(m__namespace.createElement(jE,Object.assign({},w,d,{style:R,prefixCls:p,selectPrefixCls:I,className:P,selectComponentClass:l||($?tI:nI),locale:E,showSizeChanger:C})))},Ete=xte;var Ite={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 Pte=Ite;var Ote=function(t,n){return m__namespace.createElement(_n,Ie({},t,{ref:n,icon:Pte}))};const Mte=m__namespace.forwardRef(Ote);var Rte=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 Tte={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},_te=m__namespace.forwardRef((e,t)=>{const n=c=>{const{keyCode:u}=c;u===me.ENTER&&c.preventDefault();},r=c=>{const{keyCode:u}=c,{onClick:d}=e;u===me.ENTER&&d&&d();},{style:o,noStyle:a,disabled:i}=e,s=Rte(e,["style","noStyle","disabled"]);let l={};return a||(l=Object.assign({},Tte)),i&&(l.pointerEvents="none"),l=Object.assign(Object.assign({},l),o),m__namespace.createElement("div",Object.assign({role:"button",tabIndex:0,ref:t},s,{onKeyDown:n,onKeyUp:r,style:l}))}),kte=_te,Nte=e=>{const{renderedText:t,renderedEl:n,item:r,checked:o,disabled:a,prefixCls:i,onClick:s,onRemove:l,showRemove:c}=e,u=W(`${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[f]=Qi("Transfer",$o.Transfer),h={className:u,title:d},g=m__namespace.createElement("span",{className:`${i}-content-item-text`},n);return c?m__namespace.createElement("li",Object.assign({},h),g,m__namespace.createElement(kte,{disabled:a||r.disabled,className:`${i}-content-item-remove`,"aria-label":f==null?void 0:f.remove,onClick:()=>{l==null||l(r);}},m__namespace.createElement(Mte,null))):(h.onClick=a||r.disabled?void 0:v=>s(r,v),m__namespace.createElement("li",Object.assign({},h),m__namespace.createElement(lf,{className:`${i}-checkbox`,checked:o,disabled:a||r.disabled}),g))},Ate=m__namespace.memo(Nte),Lte=["handleFilter","handleClear","checkedKeys"],Fte=e=>Object.assign(Object.assign({},{simple:!0,showSizeChanger:!1,showLessItems:!1}),e),Dte=(e,t)=>{const{prefixCls:n,filteredRenderItems:r,selectedKeys:o,disabled:a,showRemove:i,pagination:s,onScroll:l,onItemSelect:c,onItemRemove:u}=e,[d,f]=m__namespace.useState(1),h=m__namespace.useMemo(()=>s?Fte(typeof s=="object"?s:{}):null,[s]),[g,v]=qt(10,{value:h==null?void 0:h.pageSize});m__namespace.useEffect(()=>{if(h){const S=Math.ceil(r.length/g);f(Math.min(d,S));}},[r,h,g]);const p=(S,$)=>{c(S.key,!o.includes(S.key),$);},b=S=>{u==null||u([S.key]);},y=S=>{f(S);},C=(S,$)=>{f(S),v($);},w=m__namespace.useMemo(()=>h?r.slice((d-1)*g,d*g):r,[d,r,h,g]);m__namespace.useImperativeHandle(t,()=>({items:w}));const x=h?m__namespace.createElement(Ete,{size:"small",disabled:a,simple:h.simple,pageSize:g,showLessItems:h.showLessItems,showSizeChanger:h.showSizeChanger,className:`${n}-pagination`,total:r.length,current:d,onChange:y,onShowSizeChange:C}):null,E=W(`${n}-content`,{[`${n}-content-show-remove`]:i});return m__namespace.createElement(m__namespace.Fragment,null,m__namespace.createElement("ul",{className:E,onScroll:l},(w||[]).map(S=>{let{renderedEl:$,renderedText:I,item:P}=S;return m__namespace.createElement(Ate,{key:P.key,item:P,renderedText:I,renderedEl:$,prefixCls:n,showRemove:i,onClick:p,onRemove:b,checked:o.includes(P.key),disabled:a||P.disabled})})),x)},jte=m__namespace.forwardRef(Dte),zte=e=>{const{getPrefixCls:t,direction:n}=m.useContext(tt),{prefixCls:r,className:o}=e,a=t("input-group",r),i=t("input"),[s,l]=Xp(i),c=W(a,{[`${a}-lg`]:e.size==="large",[`${a}-sm`]:e.size==="small",[`${a}-compact`]:e.compact,[`${a}-rtl`]:n==="rtl"},l,o),u=m.useContext(Mr),d=m.useMemo(()=>Object.assign(Object.assign({},u),{isFormItemInput:!1}),[u]);return s(m__namespace.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},m__namespace.createElement(Mr.Provider,{value:d},e.children)))},Bte=zte;function Ja(e){return !!(e.addonBefore||e.addonAfter)}function Pm(e){return !!(e.prefix||e.suffix||e.allowClear)}function _u(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.type!=="file"&&(e.value=r),n(o);return}n(o);}}function sI(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 qp=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,f=t.disabled,h=t.readOnly,g=t.focused,v=t.triggerFocus,p=t.allowClear,b=t.value,y=t.handleReset,C=t.hidden,w=t.classes,x=t.classNames,E=t.dataAttrs,S=t.styles,$=t.components,I=($==null?void 0:$.affixWrapper)||"span",P=($==null?void 0:$.groupWrapper)||"span",R=($==null?void 0:$.wrapper)||"span",M=($==null?void 0:$.groupAddon)||"span",k=m.useRef(null),A=function(Y){var ee;(ee=k.current)!==null&&ee!==void 0&&ee.contains(Y.target)&&(v==null||v());},L=function(){var Y;if(!p)return null;var ee=!f&&!h&&b,V="".concat(a,"-clear-icon"),J=it(p)==="object"&&p!==null&&p!==void 0&&p.clearIcon?p.clearIcon:"✖";return m.createElement("span",{onClick:y,onMouseDown:function(se){return se.preventDefault()},className:W(V,(Y={},z(Y,"".concat(V,"-hidden"),!ee),z(Y,"".concat(V,"-has-suffix"),!!s),Y)),role:"button",tabIndex:-1},J)},_=m.cloneElement(o,{value:b,hidden:C,className:W((n=o.props)===null||n===void 0?void 0:n.className,!Pm(t)&&!Ja(t)&&u)||null,style:U(U({},(r=o.props)===null||r===void 0?void 0:r.style),!Pm(t)&&!Ja(t)?d:{})});if(Pm(t)){var O,T="".concat(a,"-affix-wrapper"),D=W(T,(O={},z(O,"".concat(T,"-disabled"),f),z(O,"".concat(T,"-focused"),g),z(O,"".concat(T,"-readonly"),h),z(O,"".concat(T,"-input-with-clear-btn"),s&&p&&b),O),!Ja(t)&&u,w==null?void 0:w.affixWrapper,x==null?void 0:x.affixWrapper),j=(s||p)&&m.createElement("span",{className:W("".concat(a,"-suffix"),x==null?void 0:x.suffix),style:S==null?void 0:S.suffix},L(),s);_=m.createElement(I,Ie({className:D,style:U(U({},Ja(t)?void 0:d),S==null?void 0:S.affixWrapper),hidden:!Ja(t)&&C,onClick:A},E==null?void 0:E.affixWrapper,{ref:k}),i&&m.createElement("span",{className:W("".concat(a,"-prefix"),x==null?void 0:x.prefix),style:S==null?void 0:S.prefix},i),m.cloneElement(o,{value:b,hidden:null}),j);}if(Ja(t)){var B="".concat(a,"-group"),H="".concat(B,"-addon"),G=W("".concat(a,"-wrapper"),B,w==null?void 0:w.wrapper),K=W("".concat(a,"-group-wrapper"),u,w==null?void 0:w.group);return m.createElement(P,{className:K,style:d,hidden:C},m.createElement(R,{className:G},l&&m.createElement(M,{className:H},l),m.cloneElement(_,{hidden:null}),c&&m.createElement(M,{className:H},c)))}return _},Hte=["show"];function lI(e,t){return m__namespace.useMemo(function(){var n={};t&&(n.show=it(t)==="object"&&t.formatter?t.formatter:!!t),n=U(U({},n),e);var r=n,o=r.show,a=et(r,Hte);return U(U({},a),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:a.strategy||function(i){return i.length}})},[e,t])}var Vte=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],Wte=m.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,f=e.className,h=e.maxLength,g=e.suffix,v=e.showCount,p=e.count,b=e.type,y=b===void 0?"text":b,C=e.classes,w=e.classNames,x=e.styles,E=e.onCompositionStart,S=e.onCompositionEnd,$=et(e,Vte),I=m.useState(!1),P=Z(I,2),R=P[0],M=P[1],k=m.useRef(!1),A=m.useRef(null),L=function(ae){A.current&&sI(A.current,ae);},_=qt(e.defaultValue,{value:e.value}),O=Z(_,2),T=O[0],D=O[1],j=T==null?"":String(T),B=m.useState(null),H=Z(B,2),G=H[0],K=H[1],X=lI(p,v),Y=X.max||h,ee=X.strategy(j),V=!!Y&&ee>Y;m.useImperativeHandle(t,function(){return {focus:L,blur:function(){var ae;(ae=A.current)===null||ae===void 0||ae.blur();},setSelectionRange:function(ae,he,Ce){var _e;(_e=A.current)===null||_e===void 0||_e.setSelectionRange(ae,he,Ce);},select:function(){var ae;(ae=A.current)===null||ae===void 0||ae.select();},input:A.current}}),m.useEffect(function(){M(function(re){return re&&u?!1:re});},[u]);var J=function(ae,he){var Ce=he;if(!k.current&&X.exceedFormatter&&X.max&&X.strategy(he)>X.max&&(Ce=X.exceedFormatter(he,{max:X.max}),he!==Ce)){var _e,He;K([((_e=A.current)===null||_e===void 0?void 0:_e.selectionStart)||0,((He=A.current)===null||He===void 0?void 0:He.selectionEnd)||0]);}D(Ce),A.current&&_u(A.current,ae,r,Ce);};m.useEffect(function(){if(G){var re;(re=A.current)===null||re===void 0||re.setSelectionRange.apply(re,Te(G));}},[G]);var q=function(ae){J(ae,ae.target.value);},se=function(ae){k.current=!1,J(ae,ae.currentTarget.value),S==null||S(ae);},le=function(ae){i&&ae.key==="Enter"&&i(ae),s==null||s(ae);},Q=function(ae){M(!0),o==null||o(ae);},ne=function(ae){M(!1),a==null||a(ae);},de=function(ae){D(""),L(),A.current&&_u(A.current,ae,r);},te=V&&"".concat(c,"-out-of-range"),ce=function(){var ae=Vn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames"]);return m.createElement("input",Ie({autoComplete:n},ae,{onChange:q,onFocus:Q,onBlur:ne,onKeyDown:le,className:W(c,z({},"".concat(c,"-disabled"),u),w==null?void 0:w.input),style:x==null?void 0:x.input,ref:A,size:d,type:y,onCompositionStart:function(Ce){k.current=!0,E==null||E(Ce);},onCompositionEnd:se}))},ge=function(){var ae=Number(Y)>0;if(g||X.show){var he=X.showFormatter?X.showFormatter({value:j,count:ee,maxLength:Y}):"".concat(ee).concat(ae?" / ".concat(Y):"");return m.createElement(m.Fragment,null,X.show&&m.createElement("span",{className:W("".concat(c,"-show-count-suffix"),z({},"".concat(c,"-show-count-has-suffix"),!!g),w==null?void 0:w.count),style:U({},x==null?void 0:x.count)},he),g)}return null};return m.createElement(qp,Ie({},$,{prefixCls:c,className:W(f,te),inputElement:ce(),handleReset:de,value:j,focused:R,triggerFocus:L,suffix:ge(),disabled:u,classes:C,classNames:w,styles:x}))});function cI(e,t){const n=m.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 m.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o);})),[]),r}function Gte(e){return !!(e.prefix||e.suffix||e.allowClear)}var Kte=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 Ute(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 Xte=m.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:f,addonBefore:h,className:g,style:v,styles:p,rootClassName:b,onChange:y,classNames:C}=e,w=Kte(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:x,direction:E,input:S}=m.useContext(tt),$=x("input",r),I=m.useRef(null),[P,R]=Xp($),{compactSize:M,compactItemClassnames:k}=es($,E),A=or(V=>{var J;return (J=i??M)!==null&&J!==void 0?J:V}),L=m.useContext(Kr),_=s??L,{status:O,hasFeedback:T,feedbackIcon:D}=m.useContext(Mr),j=ql(O,a),B=Gte(e)||!!T;m.useRef(B);const H=cI(I,!0),G=V=>{H(),l==null||l(V);},K=V=>{H(),c==null||c(V);},X=V=>{H(),y==null||y(V);},Y=(T||u)&&m.createElement(m.Fragment,null,u,T&&D);let ee;return typeof d=="object"&&(d!=null&&d.clearIcon)?ee=d:d&&(ee={clearIcon:m.createElement(Hp,null)}),P(m.createElement(Wte,Object.assign({ref:Jn(t,I),prefixCls:$,autoComplete:S==null?void 0:S.autoComplete},w,{disabled:_,onBlur:G,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:Y,allowClear:ee,className:W(g,b,k,S==null?void 0:S.className),onChange:X,addonAfter:f&&m.createElement(Mi,null,m.createElement(al,{override:!0,status:!0},f)),addonBefore:h&&m.createElement(Mi,null,m.createElement(al,{override:!0,status:!0},h)),classNames:Object.assign(Object.assign(Object.assign({},C),S==null?void 0:S.classNames),{input:W({[`${$}-sm`]:A==="small",[`${$}-lg`]:A==="large",[`${$}-rtl`]:E==="rtl",[`${$}-borderless`]:!o},!B&&Br($,j),C==null?void 0:C.input,(n=S==null?void 0:S.classNames)===null||n===void 0?void 0:n.input,R)}),classes:{affixWrapper:W({[`${$}-affix-wrapper-sm`]:A==="small",[`${$}-affix-wrapper-lg`]:A==="large",[`${$}-affix-wrapper-rtl`]:E==="rtl",[`${$}-affix-wrapper-borderless`]:!o},Br(`${$}-affix-wrapper`,j,T),R),wrapper:W({[`${$}-group-rtl`]:E==="rtl"},R),group:W({[`${$}-group-wrapper-sm`]:A==="small",[`${$}-group-wrapper-lg`]:A==="large",[`${$}-group-wrapper-rtl`]:E==="rtl",[`${$}-group-wrapper-disabled`]:_},Br(`${$}-group-wrapper`,j,T),R)}})))}),Yp=Xte;var qte={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 Yte=qte;var Zte=function(t,n){return m__namespace.createElement(_n,Ie({},t,{ref:n,icon:Yte}))};const Qte=m__namespace.forwardRef(Zte);var Jte={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 ene=Jte;var tne=function(t,n){return m__namespace.createElement(_n,Ie({},t,{ref:n,icon:ene}))};const nne=m__namespace.forwardRef(tne);var rne=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 one=e=>e?m__namespace.createElement(nne,null):m__namespace.createElement(Qte,null),ane={click:"onClick",hover:"onMouseOver"},ine=m__namespace.forwardRef((e,t)=>{const{visibilityToggle:n=!0}=e,r=typeof n=="object"&&n.visible!==void 0,[o,a]=m.useState(()=>r?n.visible:!1),i=m.useRef(null);m__namespace.useEffect(()=>{r&&a(n.visible);},[r,n]);const s=cI(i),l=()=>{const{disabled:x}=e;x||(o&&s(),a(E=>{var S;const $=!E;return typeof n=="object"&&((S=n.onVisibleChange)===null||S===void 0||S.call(n,$)),$}));},c=x=>{const{action:E="click",iconRender:S=one}=e,$=ane[E]||"",I=S(o),P={[$]:l,className:`${x}-icon`,key:"passwordIcon",onMouseDown:R=>{R.preventDefault();},onMouseUp:R=>{R.preventDefault();}};return m__namespace.cloneElement(m__namespace.isValidElement(I)?I:m__namespace.createElement("span",null,I),P)},{className:u,prefixCls:d,inputPrefixCls:f,size:h}=e,g=rne(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:v}=m__namespace.useContext(tt),p=v("input",f),b=v("input-password",d),y=n&&c(b),C=W(b,u,{[`${b}-${h}`]:!!h}),w=Object.assign(Object.assign({},Vn(g,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:C,prefixCls:p,suffix:y});return h&&(w.size=h),m__namespace.createElement(Yp,Object.assign({ref:Jn(t,i)},w))}),sne=ine;var lne=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 cne=m__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:f,onCompositionStart:h,onCompositionEnd:g}=e,v=lne(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:p,direction:b}=m__namespace.useContext(tt),y=m__namespace.useRef(!1),C=p("input-search",n),w=p("input",r),{compactSize:x}=es(C,b),E=or(j=>{var B;return (B=a??x)!==null&&B!==void 0?B:j}),S=m__namespace.useRef(null),$=j=>{j&&j.target&&j.type==="click"&&d&&d(j.target.value,j,{source:"clear"}),f&&f(j);},I=j=>{var B;document.activeElement===((B=S.current)===null||B===void 0?void 0:B.input)&&j.preventDefault();},P=j=>{var B,H;d&&d((H=(B=S.current)===null||B===void 0?void 0:B.input)===null||H===void 0?void 0:H.value,j,{source:"input"});},R=j=>{y.current||c||P(j);},M=typeof s=="boolean"?m__namespace.createElement(Vp,null):null,k=`${C}-button`;let A;const L=s||{},_=L.type&&L.type.__ANT_BUTTON===!0;_||L.type==="button"?A=Zn(L,Object.assign({onMouseDown:I,onClick:j=>{var B,H;(H=(B=L==null?void 0:L.props)===null||B===void 0?void 0:B.onClick)===null||H===void 0||H.call(B,j),P(j);},key:"enterButton"},_?{className:k,size:E}:{})):A=m__namespace.createElement(Qt,{className:k,type:s?"primary":void 0,size:E,disabled:u,key:"enterButton",onMouseDown:I,onClick:P,loading:c,icon:M},s),l&&(A=[A,Zn(l,{key:"addonAfter"})]);const O=W(C,{[`${C}-rtl`]:b==="rtl",[`${C}-${E}`]:!!E,[`${C}-with-button`]:!!s},o),T=j=>{y.current=!0,h==null||h(j);},D=j=>{y.current=!1,g==null||g(j);};return m__namespace.createElement(Yp,Object.assign({ref:Jn(S,t),onPressEnter:R},v,{size:E,onCompositionStart:T,onCompositionEnd:D,prefixCls:w,addonAfter:A,suffix:i,onChange:$,className:O,disabled:u}))}),une=cne;var dne=`
  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;
`,fne=["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"],Om={},Ir;function mne(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&&Om[n])return Om[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=fne.map(function(c){return "".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:a,borderSize:i,boxSizing:o};return t&&n&&(Om[n]=l),l}function hne(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;Ir||(Ir=document.createElement("textarea"),Ir.setAttribute("tab-index","-1"),Ir.setAttribute("aria-hidden","true"),document.body.appendChild(Ir)),e.getAttribute("wrap")?Ir.setAttribute("wrap",e.getAttribute("wrap")):Ir.removeAttribute("wrap");var o=mne(e,t),a=o.paddingSize,i=o.borderSize,s=o.boxSizing,l=o.sizingStyle;Ir.setAttribute("style","".concat(l,";").concat(dne)),Ir.value=e.value||e.placeholder||"";var c=void 0,u=void 0,d,f=Ir.scrollHeight;if(s==="border-box"?f+=i:s==="content-box"&&(f-=a),n!==null||r!==null){Ir.value=" ";var h=Ir.scrollHeight-a;n!==null&&(c=h*n,s==="border-box"&&(c=c+a+i),f=Math.max(c,f)),r!==null&&(u=h*r,s==="border-box"&&(u=u+a+i),d=f>u?"":"hidden",f=Math.min(u,f));}var g={height:f,overflowY:d,resize:"none"};return c&&(g.minHeight=c),u&&(g.maxHeight=u),g}var gne=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Mm=0,Rm=1,Tm=2,vne=m__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 f=et(n,gne),h=qt(o,{value:a,postState:function(K){return K??""}}),g=Z(h,2),v=g[0],p=g[1],b=function(K){p(K.target.value),d==null||d(K);},y=m__namespace.useRef();m__namespace.useImperativeHandle(t,function(){return {textArea:y.current}});var C=m__namespace.useMemo(function(){return i&&it(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),w=Z(C,2),x=w[0],E=w[1],S=!!i,$=function(){try{if(document.activeElement===y.current){var K=y.current,X=K.selectionStart,Y=K.selectionEnd,ee=K.scrollTop;y.current.setSelectionRange(X,Y),y.current.scrollTop=ee;}}catch{}},I=m__namespace.useState(Tm),P=Z(I,2),R=P[0],M=P[1],k=m__namespace.useState(),A=Z(k,2),L=A[0],_=A[1],O=function(){M(Mm);};Xt(function(){S&&O();},[a,x,E,S]),Xt(function(){if(R===Mm)M(Rm);else if(R===Rm){var G=hne(y.current,!1,x,E);M(Tm),_(G);}else $();},[R]);var T=m__namespace.useRef(),D=function(){Mt.cancel(T.current);},j=function(K){R===Tm&&(s==null||s(K),i&&(D(),T.current=Mt(function(){O();})));};m__namespace.useEffect(function(){return D},[]);var B=S?L:null,H=U(U({},c),B);return (R===Mm||R===Rm)&&(H.overflowY="hidden",H.overflowX="hidden"),m__namespace.createElement(Or,{onResize:j,disabled:!(i||s)},m__namespace.createElement("textarea",Ie({},f,{ref:y,style:H,className:W(r,l,z({},"".concat(r,"-disabled"),u)),disabled:u,value:v,onChange:b})))}),pne=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],bne=m.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,f=e.onCompositionEnd,h=e.suffix,g=e.prefixCls,v=g===void 0?"rc-textarea":g,p=e.classes,b=e.showCount,y=e.count,C=e.className,w=e.style,x=e.disabled,E=e.hidden,S=e.classNames,$=e.styles,I=e.onResize,P=et(e,pne),R=qt(o,{value:a,defaultValue:o}),M=Z(R,2),k=M[0],A=M[1],L=k==null?"":String(k),_=m.useState(!1),O=Z(_,2),T=O[0],D=O[1],j=m.useRef(!1),B=m.useState(null),H=Z(B,2),G=H[0],K=H[1],X=m.useRef(null),Y=function(){var xe;return (xe=X.current)===null||xe===void 0?void 0:xe.textArea},ee=function(){Y().focus();};m.useImperativeHandle(t,function(){return {resizableTextArea:X.current,focus:ee,blur:function(){Y().blur();}}}),m.useEffect(function(){D(function(Pe){return !x&&Pe});},[x]);var V=m.useState(null),J=Z(V,2),q=J[0],se=J[1];m.useEffect(function(){if(q){var Pe;(Pe=Y()).setSelectionRange.apply(Pe,Te(q));}},[q]);var le=lI(y,b),Q=(n=le.max)!==null&&n!==void 0?n:u,ne=Number(Q)>0,de=le.strategy(L),te=!!Q&&de>Q,ce=function(xe,qe){var rt=qe;!j.current&&le.exceedFormatter&&le.max&&le.strategy(qe)>le.max&&(rt=le.exceedFormatter(qe,{max:le.max}),qe!==rt&&se([Y().selectionStart||0,Y().selectionEnd||0])),A(rt),_u(xe.currentTarget,xe,l,rt);},ge=function(xe){j.current=!0,d==null||d(xe);},re=function(xe){j.current=!1,ce(xe,xe.currentTarget.value),f==null||f(xe);},ae=function(xe){ce(xe,xe.target.value);},he=function(xe){var qe=P.onPressEnter,rt=P.onKeyDown;xe.key==="Enter"&&qe&&qe(xe),rt==null||rt(xe);},Ce=function(xe){D(!0),i==null||i(xe);},_e=function(xe){D(!1),s==null||s(xe);},He=function(xe){A(""),ee(),_u(Y(),xe,l);},We=h,Me;le.show&&(le.showFormatter?Me=le.showFormatter({value:L,count:de,maxLength:Q}):Me="".concat(de).concat(ne?" / ".concat(Q):""),We=m.createElement(m.Fragment,null,We,m.createElement("span",{className:W("".concat(v,"-data-count"),S==null?void 0:S.count),style:$==null?void 0:$.count},Me)));var Ye=function(xe){var qe;I==null||I(xe),(qe=Y())!==null&&qe!==void 0&&qe.style.height&&K(!0);},Be=!P.autoSize&&!b&&!c,Ve=m.createElement(qp,{value:L,allowClear:c,handleReset:He,suffix:We,prefixCls:v,classes:{affixWrapper:W(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:T,className:W(C,te&&"".concat(v,"-out-of-range")),style:U(U({},w),G&&!Be?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Me=="string"?Me:void 0}},hidden:E,inputElement:m.createElement(vne,Ie({},P,{maxLength:u,onKeyDown:he,onChange:ae,onFocus:Ce,onBlur:_e,onCompositionStart:ge,onCompositionEnd:re,className:W(S==null?void 0:S.textarea),style:U(U({},$==null?void 0:$.textarea),{},{resize:w==null?void 0:w.resize}),disabled:x,prefixCls:v,onResize:Ye,ref:X}))});return Ve}),yne=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 Cne=m.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,f=yne(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className"]),{getPrefixCls:h,direction:g}=m__namespace.useContext(tt),v=or(a),p=m__namespace.useContext(Kr),b=i??p,{status:y,hasFeedback:C,feedbackIcon:w}=m__namespace.useContext(Mr),x=ql(y,s),E=m__namespace.useRef(null);m__namespace.useImperativeHandle(t,()=>{var R;return {resizableTextArea:(R=E.current)===null||R===void 0?void 0:R.resizableTextArea,focus:M=>{var k,A;Ute((A=(k=E.current)===null||k===void 0?void 0:k.resizableTextArea)===null||A===void 0?void 0:A.textArea,M);},blur:()=>{var M;return (M=E.current)===null||M===void 0?void 0:M.blur()}}});const S=h("input",r);let $;typeof l=="object"&&(l!=null&&l.clearIcon)?$=l:l&&($={clearIcon:m__namespace.createElement(Hp,null)});const[I,P]=Xp(S);return I(m__namespace.createElement(bne,Object.assign({},f,{disabled:b,allowClear:$,className:W(d,u),classes:{affixWrapper:W(`${S}-textarea-affix-wrapper`,{[`${S}-affix-wrapper-rtl`]:g==="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)},Br(`${S}-affix-wrapper`,x),P)},classNames:Object.assign(Object.assign({},c),{textarea:W({[`${S}-borderless`]:!o,[`${S}-sm`]:v==="small",[`${S}-lg`]:v==="large"},Br(S,x),P,c==null?void 0:c.textarea)}),prefixCls:S,suffix:C&&m__namespace.createElement("span",{className:`${S}-textarea-suffix`},w),ref:E})))}),Sne=Cne,Ql=Yp;Ql.Group=Bte;Ql.Search=une;Ql.TextArea=Sne;Ql.Password=sne;const uI=Ql,wne=e=>{const{placeholder:t="",value:n,prefixCls:r,disabled:o,onChange:a,handleClear:i}=e,s=m__namespace.useCallback(l=>{a==null||a(l),l.target.value===""&&(i==null||i());},[a]);return m__namespace.createElement(uI,{placeholder:t,className:r,value:n,onChange:s,disabled:o,allowClear:!0,prefix:m__namespace.createElement(Vp,null)})},dI=wne,$ne=()=>null;function xne(e){return !!(e&&!wo(e)&&Object.prototype.toString.call(e)==="[object Object]")}function Ss(e){return e.filter(t=>!t.disabled).map(t=>t.key)}const Ene=e=>e!==void 0,Ine=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:f,removeAll:h,removeCurrent:g,showSelectAll:v=!0,showRemove:p,pagination:b,direction:y,itemsUnit:C,itemUnit:w,selectAllLabel:x,selectionsIcon:E,footer:S,renderList:$,onItemSelectAll:I,onItemRemove:P,handleFilter:R,handleClear:M,filterOption:k,render:A=$ne}=e,[L,_]=m.useState(""),O=m.useRef({}),T=te=>{_(te.target.value),R(te);},D=()=>{_(""),M();},j=(te,ce)=>k?k(L,ce,y):te.includes(L),B=te=>{let ce=$?$(Object.assign(Object.assign({},te),{onItemSelect:(re,ae)=>te.onItemSelect(re,ae)})):null;const ge=!!ce;return ge||(ce=m.createElement(jte,Object.assign({ref:O},te))),{customize:ge,bodyContent:ce}},H=te=>{const ce=A(te),ge=xne(ce);return {item:te,renderedEl:ge?ce.label:ce,renderedText:ge?ce.value:ce}},G=m.useMemo(()=>Array.isArray(c)?c[y==="left"?0:1]:c,[c,y]),[K,X]=m.useMemo(()=>{const te=[],ce=[];return n.forEach(ge=>{const re=H(ge);L&&!j(re.renderedText,ge)||(te.push(ge),ce.push(re));}),[te,ce]},[n,L]),Y=m.useMemo(()=>{if(o.length===0)return "none";const te=Tu(o);return K.every(ce=>te.has(ce.key)||!!ce.disabled)?"all":"part"},[o,K]),ee=m.useMemo(()=>{const te=i?m.createElement("div",{className:`${t}-body-search-wrapper`},m.createElement(dI,{prefixCls:`${t}-search`,onChange:T,handleClear:D,placeholder:l,value:L,disabled:a})):null,{customize:ce,bodyContent:ge}=B(Object.assign(Object.assign({},Vn(e,Lte)),{filteredItems:K,filteredRenderItems:X,selectedKeys:o}));let re;return ce?re=m.createElement("div",{className:`${t}-body-customize-wrapper`},ge):re=K.length?ge:m.createElement("div",{className:`${t}-body-not-found`},G),m.createElement("div",{className:W(i?`${t}-body ${t}-body-with-search`:`${t}-body`)},te,re)},[i,t,l,L,a,o,K,X,G]),V=m.createElement(lf,{disabled:n.length===0||a,checked:Y==="all",indeterminate:Y==="part",className:`${t}-checkbox`,onChange:()=>{I==null||I(K.filter(te=>!te.disabled).map(te=>{let{key:ce}=te;return ce}),Y!=="all");}}),J=(te,ce)=>{if(x)return typeof x=="function"?x({selectedCount:te,totalCount:ce}):x;const ge=ce>1?C:w;return m.createElement(m.Fragment,null,(te>0?`${te}/`:"")+ce," ",ge)},q=S&&(S.length<2?S(e):S(e,{direction:y})),se=W(t,{[`${t}-with-pagination`]:!!b,[`${t}-with-footer`]:!!q}),le=q?m.createElement("div",{className:`${t}-footer`},q):null,Q=!p&&!b&&V;let ne;p?ne=[b?{key:"removeCurrent",label:g,onClick(){var te;const ce=Ss((((te=O.current)===null||te===void 0?void 0:te.items)||[]).map(ge=>ge.item));P==null||P(ce);}}:null,{key:"removeAll",label:h,onClick(){P==null||P(Ss(K));}}].filter(Boolean):ne=[{key:"selectAll",label:u,onClick(){const te=Ss(K);I==null||I(te,te.length!==o.length);}},b?{key:"selectCurrent",label:d,onClick(){var te;const ce=((te=O.current)===null||te===void 0?void 0:te.items)||[];I==null||I(Ss(ce.map(ge=>ge.item)),!0);}}:null,{key:"selectInvert",label:f,onClick(){var te;const ce=Ss(b?(((te=O.current)===null||te===void 0?void 0:te.items)||[]).map(ae=>ae.item):K),ge=new Set(o),re=[];ce.forEach(ae=>{ge.has(ae)||re.push(ae);}),I==null||I(re,"replace");}}];const de=m.createElement(kp,{className:`${t}-header-dropdown`,menu:{items:ne},disabled:a},Ene(E)?E:m.createElement(Fp,null));return m.createElement("div",{className:se,style:s},m.createElement("div",{className:`${t}-header`},v?m.createElement(m.Fragment,null,Q,de):null,m.createElement("span",{className:`${t}-header-selected`},J(o.length,K.length)),m.createElement("span",{className:`${t}-header-title`},r)),ee,le)},Cg=Ine,Pne=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 m__namespace.createElement("div",{className:l,style:c},m__namespace.createElement(Qt,{type:"primary",size:"small",disabled:t||!s,onClick:r,icon:u!=="rtl"?m__namespace.createElement(Fi,null):m__namespace.createElement(Pu,null)},a),!d&&m__namespace.createElement(Qt,{type:"primary",size:"small",disabled:t||!i,onClick:n,icon:u!=="rtl"?m__namespace.createElement(Pu,null):m__namespace.createElement(Fi,null)},o))},fI=Pne,One=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"}}}},Y1=(e,t)=>{const{componentCls:n,colorBorder:r}=e;return {[`${n}-list`]:{borderColor:t,"&-search:not([disabled])":{borderColor:r}}}},Mne=e=>{const{componentCls:t}=e;return {[`${t}-status-error`]:Object.assign({},Y1(e,e.colorError)),[`${t}-status-warning`]:Object.assign({},Y1(e,e.colorWarning))}},Rne=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:f,listWidthLG:h,fontSizeIcon:g,marginXS:v,paddingSM:p,lineType:b,antCls:y,iconCls:C,motionDurationSlow:w,controlItemBgHover:x,borderRadiusLG:E,colorBgContainer:S,colorText:$,controlItemBgActiveHover:I}=e;return {display:"flex",flexDirection:"column",width:f,height:d,border:`${o}px ${b} ${n}`,borderRadius:e.borderRadiusLG,"&-with-pagination":{width:h,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:$,background:S,borderBottom:`${o}px ${b} ${r}`,borderRadius:`${E}px ${E}px 0 0`,"> *:not(:last-child)":{marginInlineEnd:4},"> *":{flex:"none"},"&-title":Object.assign(Object.assign({},Sa),{flex:"auto",textAlign:"end"}),"&-dropdown":Object.assign(Object.assign({},Ta()),{fontSize:g,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 ${w}`,"> *:not(:last-child)":{marginInlineEnd:v},"> *":{flex:"none"},"&-text":Object.assign(Object.assign({},Sa),{flex:"auto"}),"&-remove":{position:"relative",color:n,cursor:"pointer",transition:`all ${w}`,"&: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}}},Tne=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({},jt(e)),{position:"relative",display:"flex",alignItems:"stretch",[`${r}-disabled`]:{[`${r}-list`]:{background:u}},[`${r}-list`]:Rne(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)}})}},_ne=e=>{const{componentCls:t}=e;return {[`${t}-rtl`]:{direction:"rtl"}}},kne=Kt("Transfer",e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeightLG:o}=e,a=Math.round(t*n),i=Ct(e,{transferHeaderVerticalPadding:Math.ceil((o-r-a)/2)});return [Tne(i),One(i),Mne(i),_ne(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}}),Sf=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:f,showSelectAll:h,oneWay:g,pagination:v,status:p,prefixCls:b,className:y,rootClassName:C,selectionsIcon:w,filterOption:x,render:E,footer:S,children:$,rowKey:I,onScroll:P,onChange:R,onSearch:M,onSelectChange:k}=e,{getPrefixCls:A,renderEmpty:L,direction:_,transfer:O}=m.useContext(tt),T=A("transfer",b),[D,j]=kne(T),[B,H,G]=pJ(t,I,n),[K,X,Y,ee]=yJ(H,G,r),[V,J]=A1(fe=>fe.key),[q,se]=A1(fe=>fe.key),le=m.useCallback((fe,oe)=>{if(fe==="left"){const ye=typeof oe=="function"?oe(K||[]):oe;Y(ye);}else {const ye=typeof oe=="function"?oe(X||[]):oe;ee(ye);}},[K,X]),Q=(fe,oe)=>{(fe==="left"?J:se)(oe);},ne=m.useCallback((fe,oe)=>{fe==="left"?k==null||k(oe,X):k==null||k(K,oe);},[K,X]),de=fe=>{var oe;return (oe=c??fe.titles)!==null&&oe!==void 0?oe:[]},te=fe=>{P==null||P("left",fe);},ce=fe=>{P==null||P("right",fe);},ge=fe=>{const oe=fe==="right"?K:X,ye=lJ(B),ue=oe.filter(bt=>!ye.has(bt)),ve=Tu(ue),Ne=fe==="right"?ue.concat(n):n.filter(bt=>!ve.has(bt)),Ue=fe==="right"?"left":"right";le(Ue,[]),ne(Ue,[]),R==null||R(Ne,fe,ue);},re=()=>{ge("left"),Q("left",null);},ae=()=>{ge("right"),Q("right",null);},he=(fe,oe,ye)=>{le(fe,ue=>{let ve=[];if(ye==="replace")ve=oe;else if(ye)ve=Array.from(new Set([].concat(Te(ue),Te(oe))));else {const Ne=Tu(oe);ve=ue.filter(Ue=>!Ne.has(Ue));}return ne(fe,ve),ve}),Q(fe,null);},Ce=(fe,oe)=>{he("left",fe,oe);},_e=(fe,oe)=>{he("right",fe,oe);},He=fe=>M==null?void 0:M("left",fe.target.value),We=fe=>M==null?void 0:M("right",fe.target.value),Me=()=>M==null?void 0:M("left",""),Ye=()=>M==null?void 0:M("right",""),Be=(fe,oe,ye,ue,ve)=>{oe.has(ye)&&(oe.delete(ye),Q(fe,null)),ue&&(oe.add(ye),Q(fe,ve));},Ve=(fe,oe,ye,ue)=>{(fe==="left"?V:q)(ue,oe,ye);},Pe=(fe,oe,ye,ue)=>{const ve=fe==="left",Ne=Te(ve?K:X),Ue=new Set(Ne),bt=Te(ve?H:G).filter(St=>!St.disabled),gt=bt.findIndex(St=>St.key===oe);ue&&Ne.length>0?Ve(fe,bt,Ue,gt):Be(fe,Ue,oe,ye,gt);const Nt=Array.from(Ue);ne(fe,Nt),e.selectedKeys||le(fe,Nt);},xe=(fe,oe,ye)=>{Pe("left",fe,oe,ye==null?void 0:ye.shiftKey);},qe=(fe,oe,ye)=>{Pe("right",fe,oe,ye==null?void 0:ye.shiftKey);},rt=fe=>{le("right",[]),R==null||R(n.filter(oe=>!fe.includes(oe)),"left",Te(fe));},yt=fe=>typeof s=="function"?s({direction:fe}):s||{},Qe=m.useContext(Mr),{hasFeedback:Je,status:pt}=Qe,ht=fe=>Object.assign(Object.assign(Object.assign({},fe),{notFoundContent:(L==null?void 0:L("Transfer"))||m.createElement(DE,{componentName:"Transfer"})}),l),lt=ql(pt,p),ft=!$&&v,xt=X.length>0,Oe=K.length>0,Re=W(T,{[`${T}-disabled`]:u,[`${T}-customize-list`]:!!$,[`${T}-rtl`]:_==="rtl"},Br(T,lt,Je),O==null?void 0:O.className,y,C,j),[ke]=Qi("Transfer",$o.Transfer),pe=ht(ke),[De,$e]=de(pe);return D(m.createElement("div",{className:Re,style:Object.assign(Object.assign({},O==null?void 0:O.style),i)},m.createElement(Cg,Object.assign({prefixCls:`${T}-list`,titleText:De,dataSource:H,filterOption:x,style:yt("left"),checkedKeys:K,handleFilter:He,handleClear:Me,onItemSelect:xe,onItemSelectAll:Ce,render:E,showSearch:d,renderList:$,footer:S,onScroll:te,disabled:u,direction:_==="rtl"?"right":"left",showSelectAll:h,selectAllLabel:o[0],pagination:ft,selectionsIcon:w},pe)),m.createElement(fI,{className:`${T}-operation`,rightActive:Oe,rightArrowText:a[0],moveToRight:ae,leftActive:xt,leftArrowText:a[1],moveToLeft:re,style:f,disabled:u,direction:_,oneWay:g}),m.createElement(Cg,Object.assign({prefixCls:`${T}-list`,titleText:$e,dataSource:G,filterOption:x,style:yt("right"),checkedKeys:X,handleFilter:We,handleClear:Ye,onItemSelect:qe,onItemSelectAll:_e,onItemRemove:rt,render:E,showSearch:d,renderList:$,footer:S,onScroll:ce,disabled:u,direction:_==="rtl"?"left":"right",showSelectAll:h,selectAllLabel:o[1],showRemove:g,pagination:ft,selectionsIcon:w},pe))))};Sf.List=Cg;Sf.Search=dI;Sf.Operation=fI;const Nne=Sf;function mI(e){return `https://space.bilibili.com/${bd()}/favlist?fid=${e}`}var Pn,ua;const fi=class fi{constructor(){$t(this,"useShuffle");$t(this,"total",0);$t(this,"allFolderServices",[]);$t(this,"folderServices",[]);yn(this,Pn,[]);yn(this,ua,[]);$t(this,"foldersLoaded",!1);this.useShuffle=Et.shuffleForFav;}doReturnItems(t){return Ht(this,ua,ze(this,ua).concat(t||[])),t}restore(){Ht(this,Pn,[...ze(this,ua),...ze(this,Pn)]),Ht(this,ua,[]);}get folderHasMore(){return this.folderServices.some(t=>t.hasMore)}get hasMore(){return ze(this,Pn).length>0||this.folderHasMore}get usageInfo(){if(this.foldersLoaded)return F(Fne,{allFavFolderServices:this.allFolderServices})}async loadMore(){if(this.foldersLoaded||await this.getAllFolders(),!this.hasMore)return;const t=()=>{if(ze(this,Pn).length){const n=ze(this,Pn).slice(0,fi.PAGE_SIZE);return Ht(this,Pn,ze(this,Pn).slice(fi.PAGE_SIZE)),this.doReturnItems(n)}};if(!this.useShuffle){if(ze(this,Pn).length)return t();const n=this.folderServices.find(o=>o.hasMore);if(!n)return;const r=await n.loadMore();return this.doReturnItems(r)}if(ze(this,Pn).length<fi.PAGE_SIZE){for(;this.folderHasMore&&ze(this,Pn).length<100;){const n=this.folderServices.filter(a=>a.hasMore),r=pi(n).slice(0,5),o=(await Promise.all(r.map(async a=>await a.loadMore()||[]))).flat();Ht(this,Pn,[...ze(this,Pn),...o]);}Ht(this,Pn,pi(ze(this,Pn)));}return t()}async getAllFolders(){const t=await hI();this.foldersLoaded=!0,this.allFolderServices=t.map(n=>new Ane(n)),this.folderServices=this.allFolderServices.filter(n=>!Et.excludeFavFolderIds.includes(n.entry.id.toString())),this.total=this.folderServices.reduce((n,r)=>n+r.entry.media_count,0);}};Pn=new WeakMap,ua=new WeakMap,$t(fi,"PAGE_SIZE",20);let Sg=fi;async function hI(){return (await rn.get("/x/v3/fav/folder/created/list-all",{params:{up_mid:bd()}})).data.data.list}class Ane{constructor(t){$t(this,"entry");$t(this,"hasMore");$t(this,"info");$t(this,"page",0);this.entry=t,this.hasMore=t.media_count>0;}async loadMore(){if(!this.hasMore)return;const n=(await rn.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(!Gr(n)){Pt(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 Lne={name:"1uu99zq",styles:"margin-left:15px;cursor:pointer;font-size:12px"};function Fne({allFavFolderServices:e}){const{excludeFavFolderIds:t,shuffleForFav:n}=cn(),r=Jl(),[o,a]=m.useState(!1),i=at((u,d,f)=>{a(!0),qn({excludeFavFolderIds:u});}),s=m.useMemo(()=>e.filter(u=>!t.includes(u.entry.id.toString())).length,[e,t]),l=m.useMemo(()=>e.filter(u=>!t.includes(u.entry.id.toString())).reduce((u,d)=>u+d.entry.media_count,0),[e,t]),c=at(u=>{u?a(!1):o&&(r==null||r());});return be(It,{children:[F(df,{trigger:"click",placement:"bottom",onOpenChange:c,getPopupContainer:u=>u.parentElement||document.body,content:F(It,{children:F(Nne,{dataSource:e,rowKey:u=>u.entry.id.toString(),titles:["收藏夹","忽略"],targetKeys:t,onChange:i,render:u=>u.entry.title,oneWay:!0,style:{marginBottom:10}})}),children:be(No,{color:"success",css:Lne,children:["收藏夹(",s,") 收藏(",l,")"]})}),F(Xl,{style:{marginLeft:15},checkedChildren:"随机顺序",unCheckedChildren:"默认顺序",checked:n,onChange:async u=>{qn({shuffleForFav:u}),await zn(100),r==null||r();}})]})}var Dne=Xg,jne=mp,zne=1,Bne=2;function Hne(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 Dne;if(r)var f=r(c,u,l,e,t,d);if(!(f===void 0?jne(u,c,zne|Bne,r,d):f))return !1}}return !0}var Vne=Hne,Wne=co;function Gne(e){return e===e&&!Wne(e)}var gI=Gne,Kne=gI,Une=Cl;function Xne(e){for(var t=Une(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Kne(o)];}return t}var qne=Xne;function Yne(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var vI=Yne,Zne=Vne,Qne=qne,Jne=vI;function ere(e){var t=Qne(e);return t.length==1&&t[0][2]?Jne(t[0][0],t[0][1]):function(n){return n===e||Zne(n,e,t)}}var tre=ere,nre=gd;function rre(e,t,n){var r=e==null?void 0:nre(e,t);return r===void 0?n:r}var ore=rre,are=mp,ire=ore,sre=US,lre=lv,cre=gI,ure=vI,dre=Yi,fre=1,mre=2;function hre(e,t){return lre(e)&&cre(t)?ure(dre(e),t):function(n){var r=ire(n,e);return r===void 0&&r===t?sre(n,e):are(t,r,fre|mre)}}var gre=hre;function vre(e){return function(t){return t==null?void 0:t[e]}}var pre=vre,bre=gd;function yre(e){return function(t){return bre(t,e)}}var Cre=yre,Sre=pre,wre=Cre,$re=lv,xre=Yi;function Ere(e){return $re(e)?Sre(xre(e)):wre(e)}var Ire=Ere,Pre=tre,Ore=gre,Mre=HS,Rre=Wr,Tre=Ire;function _re(e){return typeof e=="function"?e:e==null?Mre:typeof e=="object"?Rre(e)?Ore(e[0],e[1]):Pre(e):Tre(e)}var kre=_re;function Nre(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 Are=Nre;function Lre(e){return e!==e}var Fre=Lre;function Dre(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return -1}var jre=Dre,zre=Are,Bre=Fre,Hre=jre;function Vre(e,t,n){return t===t?Hre(e,t,n):zre(e,Bre,n)}var Wre=Vre,Gre=Wre;function Kre(e,t){var n=e==null?0:e.length;return !!n&&Gre(e,t,0)>-1}var Ure=Kre;function Xre(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 qre=Xre;function Yre(){}var Zre=Yre,_m=TS,Qre=Zre,Jre=fp,eoe=1/0,toe=_m&&1/Jre(new _m([,-0]))[1]==eoe?function(e){return new _m(e)}:Qre,noe=toe,roe=c2,ooe=Ure,aoe=qre,ioe=u2,soe=noe,loe=fp,coe=200;function uoe(e,t,n){var r=-1,o=ooe,a=e.length,i=!0,s=[],l=s;if(n)i=!1,o=aoe;else if(a>=coe){var c=t?null:soe(e);if(c)return loe(c);i=!1,o=ioe,l=new roe;}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 f=l.length;f--;)if(l[f]===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 doe=uoe,foe=kre,moe=doe;function hoe(e,t){return e&&e.length?moe(e,foe(t)):[]}var goe=hoe;const ll=Sn(goe),Ku=class Ku{constructor(){$t(this,"page",0);$t(this,"hasMore",!0);}loadMore(){return this.getRecommendTimes(2)}async getRecommend(t=void 0){var i,s;const n=++this.page,o=(await rn.get("/x/web-interface/wbi/index/top/rcmd",{signal:t,params:{fresh_type:3,version:1,ps:Ku.PAGE_SIZE,fresh_idx:n,fresh_idx_1h:n,homepage_ver:1}})).data;return (i=o.data)!=null&&i.item||Pt(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=ll(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"}))}};$t(Ku,"PAGE_SIZE",14);let cl=Ku;async function pI(e,t){const n=bd(),r=Zi(),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:voe()}),csrf:r}),i=(await rn.post("/x/relation/modify",o)).data,s=Gr(i);return s||Pt(i.message||"未知错误"),s}function voe(){let e,t;const n=((e=window.reportObserver)===null||e===void 0||(t=e.cache)===null||t===void 0?void 0:t.fpriskMsg)||{};let 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 poe=Pa.extend("service:user:relations:blacklist"),boe=CI("follow"),yoe=CI("remove"),bI={add:boe,remove:yoe},yI=`${nn}-blacklist-mids`,Coe=(localStorage.getItem(yI)||"").split(","),Eo=hp(Coe);pd(Eo,e=>{localStorage.setItem(yI,Array.from(qs(Eo)).join(","));});function Soe(e){const t=yr(Eo);return e&&t.has(e)}function CI(e){const t=e==="follow"?5:6;return async function(r){const o=await pI(r,t);return o&&(e==="follow"?Eo.add(r):e==="remove"&&Eo.delete(r)),o}}async function woe(){const t=async i=>{const l=(await rn.get("/x/relation/blacks",{params:{re_version:0,ps:20,pn:i}})).data;if(!Gr(l))return;const c=l.data.total,u=l.data.list.map(d=>d.mid);return {total:c,mids:u}},n=await t(1);if(!n)return;const{total:r,mids:o=[]}=n;let a=o;if(r){const i=Math.ceil(r/20);for(let s=2;s<=i;s++){const{mids:l=[]}=await t(s)||{};a=a.concat(l);}}return a}(async()=>{await TF();const e=await woe();return e&&(Eo.clear(),e.forEach(t=>{Eo.add(t.toString());})),poe("user blocklist fetched: %o",e),e})();class $oe{constructor(){$t(this,"hasMore",!0);$t(this,"page",1);$t(this,"anonymous");this.anonymous=Et.anonymousForPopularGeneral;}async loadMore(){if(!this.hasMore)return;const n=(await rn.get("/x/web-interface/popular",{params:{ps:20,pn:this.page++},withCredentials:!this.anonymous})).data;this.hasMore=!n.data.no_more;let r=(n.data.list||[]).map(o=>({...o,api:"popular-general",uniqId:o.bvid}));return r=r.filter(o=>!Eo.has(o.owner.mid.toString())),r}get usageInfo(){return F(xoe,{})}}function xoe(){const{anonymousForPopularGeneral:e}=cn(),t=Jl();return F(It,{children:F(Xl,{style:{margin:"0 10px"},checked:e,onChange:async n=>{qn({anonymousForPopularGeneral:n}),await zn(100),t==null||t();},checkedChildren:"匿名访问",unCheckedChildren:"登录(不可用)访问"})})}let Pc=[],km="";function Z1(){const e=Go();return [e.format("YYYYMMDD"),e.hour()<18?"less-18":"gte-18"].join("-")}async function Eoe(){return Pc.length&&km&&km===Z1()||(Pc=(await rn.get("/x/web-interface/popular/series/list")).data.data.list,km=Z1()),Pc}var da,Nn;const ko=class ko{constructor(){$t(this,"episodesLoaded",!1);$t(this,"episodes",[]);$t(this,"id");$t(this,"useShuffle");yn(this,da,[]);yn(this,Nn,[]);this.id=ko.id++,this.useShuffle=Et.shuffleForPopularWeekly;}doReturnItems(t){return Ht(this,da,ze(this,da).concat(t||[])),t}restore(){Ht(this,Nn,[...ze(this,da),...ze(this,Nn)]),Ht(this,da,[]);}sliceFromQueue(){if(ze(this,Nn).length){const t=ze(this,Nn).slice(0,ko.PAGE_SIZE);return Ht(this,Nn,ze(this,Nn).slice(ko.PAGE_SIZE)),this.doReturnItems(t)}}get hasMore(){return this.episodesLoaded?!!ze(this,Nn).length||!!this.episodes.length:!0}async loadMore(){if(this.episodesLoaded||(this.episodes=await Eoe(),this.episodesLoaded=!0,this.useShuffle&&(this.episodes=pi(this.episodes))),!this.hasMore)return;if(!this.useShuffle){if(ze(this,Nn).length)return this.sliceFromQueue();const n=this.episodes[0].number,r=await Q1(n);return Ht(this,Nn,ze(this,Nn).concat(r)),this.episodes=this.episodes.slice(1),this.sliceFromQueue()}const t=5;for(;ze(this,Nn).length<ko.PAGE_SIZE*t&&this.episodes.length;){this.episodes=pi(this.episodes);const n=this.episodes.slice(0,t);this.episodes=this.episodes.slice(t);const r=await Promise.all(n.map(o=>o.number).map(o=>Q1(o)));Ht(this,Nn,pi([...ze(this,Nn),...r.flat()]));}return this.sliceFromQueue()}get usageInfo(){return F(Ioe,{})}};da=new WeakMap,Nn=new WeakMap,$t(ko,"id",0),$t(ko,"PAGE_SIZE",20);let wg=ko;const Nm={};async function Q1(e){var n;if(!((n=Nm[e])!=null&&n.length)){const a=((await rn.get("/x/web-interface/popular/series/one",{params:{number:e}})).data.data.list||[]).map(i=>({...i,api:"popular-weekly",uniqId:i.bvid}));Nm[e]=a;}let t=Nm[e];return t=t.filter(r=>!Eo.has(r.owner.mid.toString())),t}function Ioe(){const{shuffleForPopularWeekly:e}=cn(),t=Jl();return F(It,{children:F(Xl,{style:{marginLeft:"10px"},checked:e,onChange:async n=>{qn({shuffleForPopularWeekly:n}),await zn(100),t==null||t();},checkedChildren:"随机顺序",unCheckedChildren:"默认顺序"})})}var Poe=FS,Ooe=1,Moe=4;function Roe(e){return Poe(e,Ooe|Moe)}var Toe=Roe;const _oe=Sn(Toe),bi=gr({updatedAt:0,bvidSet:hp()});function koe(e){return yr(bi).bvidSet.has(e)}wl()&&setTimeout(()=>{new ku().loadMore();});const vo=class vo{constructor(t){$t(this,"loaded",!1);$t(this,"page",-1);$t(this,"hasMore",!0);$t(this,"count",0);$t(this,"items",[]);$t(this,"keepOrder");this.keepOrder=t??!1;}async fetch(){const n=(await rn.get("/x/v2/history/toview/web")).data;let r=n.data.list.map(i=>({...i,api:"watchlater",uniqId:`watchlater-${i.bvid}`}));Date.now()>bi.updatedAt&&(bi.updatedAt=Date.now(),bi.bvidSet=hp(r.map(i=>i.bvid)));const o=Go().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&&vo.LAST_ITEMS.length?(s=s.map(l=>({item:l,index:vo.LAST_ITEMS.findIndex(c=>c.bvid===l.bvid)})).sort((l,c)=>l.index-c.index).map(l=>l.item),r=[...i,...s]):Et.shuffleForWatchLater&&(r=[...i,...pi(s)]);}this.count=n.data.count,this.items=r,vo.LAST_ITEMS=r;}get usageInfo(){if(!this.loaded)return;const{count:t}=this;return F(Noe,{count:t})}async loadMore(){if(!this.hasMore)return;this.loaded||(await this.fetch(),this.loaded=!0),this.page++;const t=this.page*vo.PAGE_SIZE,n=t+vo.PAGE_SIZE,r=_oe(this.items.slice(t,n));return this.hasMore=n<=this.count-1,r}};$t(vo,"PAGE_SIZE",15),$t(vo,"LAST_ITEMS",[]);let ku=vo;function Noe({count:e}){const t=e<=90?"success":e<100?"warning":"error",n=`${t!=="success"?"快满了~ ":""}已使用 ${e} / 100`,{shuffleForWatchLater:r}=cn(),o=Jl();return be(It,{children:[be(No,{color:t,style:{marginLeft:20,marginRight:0,marginTop:1,cursor:"pointer"},title:n,onClick:()=>{Pt(`稍后再看: ${n}`);},children:[e," / 100"]}),F(Xl,{style:{marginLeft:15},checkedChildren:"随机顺序",unCheckedChildren:"添加顺序",checked:r,onChange:async a=>{qn({shuffleForWatchLater:a}),await zn(100),o==null||o();}})]})}const Zp=m.createContext(void 0);function Jl(){return m.useContext(Zp)}const J1={"dynamic-feed":()=>new wI(to.upMid),watchlater:()=>new ku,fav:()=>new Sg,"popular-general":()=>new $oe,"popular-weekly":()=>new wg};function Nu(e,t){return e[t]}function SI({debug:e,recreateService:t,fetcher:n,preAction:r,postAction:o,onScrollToTop:a,setUpperRefreshing:i}){const s=zX(),l=fQ(()=>({})),[c,u]=m.useState(!0),[d,f]=m.useState([]),[h,g]=m.useState(()=>Object.fromEntries(Object.entries(J1).map(([L,_])=>[L,_()]))),[v,p]=m.useState(()=>new cl),[b,y]=m.useState(!1),[C,w,x]=m2(()=>Date.now()),[E,S]=m.useState(s),[$,I]=m.useState(()=>new AbortController),[P,R]=m.useState(!1),[M,k]=m.useState(void 0),A=at(async(L=!1,_)=>{var Q;const O=performance.now();if(b)if(s===E){e("refresh(): [start] [refreshing] prevent same tab(%s) refresh()",s);return}else e("refresh(): [start] [refreshing] switchTab %s -> %s, abort existing",E,s),$.abort();else e("refresh(): [start] tab = %s",s);await(a==null?void 0:a());const T=ne=>{y(ne),i==null||i(ne);};T(!0),w(Date.now()),S(s),f([]),k(void 0),u(!0),await(r==null?void 0:r());let D=[],j;const B=!!(L&&((Q=l.current[s])!=null&&Q.length)),H=!!(B&&(h1[s].swr||s==="fav"));R(H);const G=B&&(H||s==="fav"),K=async()=>{try{D=await n(q);}catch(ne){j=ne;}},X=t?new cl:v;t&&p(X);const Y={...h},ee=ne=>{Y[ne]=J1[ne](),g(Y);};s==="dynamic-feed"&&ee(s),s==="watchlater"&&ee(s),s==="fav"&&(B?h.fav.restore():ee(s)),s==="popular-general"&&ee(s),s==="popular-weekly"&&(B?h["popular-weekly"].restore():ee(s));const V=new AbortController,J=V.signal;I(V);const q={tab:s,abortSignal:J,serviceMap:Y,pcRecService:X};if(e("refresh(): shouldReuse=%s swr=%s",B,H),B?(D=l.current[s]||[],f(D),G&&await K()):(l.current[s]=[],await K()),J.aborted){e("refresh(): [legacy] skip setItems/err for aborted, legacy tab = %s",s);return}if(T(!1),j){console.error(j),k(j);return}if(await new Promise(ne=>requestIdleCallback(ne,{timeout:400})),J.aborted){e("refresh(): [legacy] skip setItems/err for aborted, legacy tab = %s",s);return}f(D),h1[s].swr?l.current[s]=D.slice(0,30):l.current[s]=D;const se=Nu(Y,s);se&&u(se.hasMore),await RF(),await(o==null?void 0:o());const le=performance.now()-O;e("refresh(): [success] cost %s ms",le.toFixed(0));});return {items:d,itemsCache:l,setItems:f,error:M,refreshedAt:C,setRefreshedAt:w,getRefreshedAt:x,refreshing:b,setRefreshing:y,refreshFor:E,setRefreshFor:S,refreshAbortController:$,setRefreshAbortController:I,hasMore:c,setHasMore:u,swr:P,setSwr:R,pcRecService:v,serviceMap:h,setPcRecService:p,setServiceMap:g,refresh:A}}async function Aoe(){const t=(await rn.get("/x/polymer/web-dynamic/v1/portal")).data;return (t==null?void 0:t.data.up_list)||[]}class wI{constructor(t){$t(this,"offset","");$t(this,"page",0);$t(this,"hasMore",!0);$t(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 rn.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 F(Doe,{})}}$t(wI,"PAGE_SIZE",15);const to=gr({upMid:void 0,upName:void 0,upList:[],upListUpdatedAt:0});setTimeout(()=>{to.upList.length||requestIdleCallback(()=>{$I();});},Sl("5s"));async function $I(e=!1){if(!e&&to.upList.length&&to.upListUpdatedAt&&to.upListUpdatedAt-Date.now()<Sl("5min"))return;const n=await Aoe();to.upList=n,to.upListUpdatedAt=Date.now();}function xI(e){if(Object.assign(to,e),e.upMid){const t=to.upList.find(n=>n.mid===e.upMid);t&&(t.has_update=!1);}}var Loe={name:"dhit8z",styles:"margin-left:15px"},Foe={name:"1mkc8b8",styles:"display:block;max-width:130px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden"};function Doe(){const e=Jl(),{upName:t,upList:n}=yr(to);Dl(()=>{$I();});const r=at(async i=>{xI(i),await zn(100),e==null||e();}),o=at(()=>{r({upMid:void 0,upName:void 0});}),a=m.useMemo(()=>{const i={key:"all",icon:F(xu,{size:"small",children:"全"}),label:"全部",onClick:o},s=n.map(l=>{let c=F(xu,{size:"small",src:l.face});return l.has_update&&(c=F(dQ,{dot:!0,children:c})),{key:l.mid,icon:c,label:F("span",{title:l.uname,css:Foe,children:l.uname}),onClick(){r({upMid:l.mid,upName:l.uname});}}});return [i,...s]},[n,n.map(i=>!!i.has_update)]);return F("div",{css:Loe,children:be(Kl,{children:[F(kp,{placement:"bottomLeft",menu:{items:a,style:{maxHeight:"50vh",overflowY:"scroll"}},children:F(Qt,{children:t?`UP: ${t}`:"全部"})}),!!t&&be(Qt,{onClick:o,css:[Ul,"",""],children:[F(Dt,{name:"Return",size:14,style:{marginRight:5}}),"清除"]})]})})}const Am={removeFav:joe,addFav:Hoe,getVideoFavState:zoe};async function joe(e,t){const n=new URLSearchParams({resources:t,media_id:e.toString(),platform:"web",csrf:Zi()}),o=(await rn.post("/x/v3/fav/resource/batch-del",n)).data,a=Gr(o);return a||Pt(o.message||sw),a}async function zoe(e){if(!wl())return;const r=(await rn.get("/x/v3/fav/folder/created/list-all",{params:{up_mid:bd(),type:2,rid:e}})).data.data.list.filter(i=>i.fav_state>0),o=r.map(i=>i.title),a=r.map(i=>mI(i.id));return {favFolders:r,favFolderNames:o,favFolderUrls:a}}async function Boe({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:Zi()}),a=(await rn.post("/x/v3/fav/resource/deal",r)).data,i=Gr(a);return i||Pt((a==null?void 0:a.message)||"fav deal api fail"),i}let Lm=0,$g="";async function Hoe(e){if(!Lm||!$g){const t=await hI();Lm=t[0].id,$g=t[0].title;}return await Boe({avid:e,add_media_ids:Lm.toString()})}const Voe=EI("follow"),Woe=EI("unfollow"),Goe={follow:Voe,unfollow:Woe};function EI(e){const t=e==="follow"?1:2;return async function(r){return await pI(r,t)}}function Qp(e){return {all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n]);},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]));},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(o){o(n);}),(r=e.get("*"))&&r.slice().map(function(o){o(t,n);});}}}const Koe="_bili-video-card_90sij_1",Uoe="_preview-card-wrapper_90sij_4",Xoe="_preview-card-inner_90sij_17",qoe="_watch-later_90sij_21",Yoe="_badge_90sij_24",Zoe="_recommend-reason_90sij_33",Qoe="_bangumi-desc_90sij_48",Joe="_btn-dislike_90sij_51",eae="_btn-dislike-icon_90sij_66",tae="_btn-dislike-tip_90sij_73",nae="_disliked-wrapper_90sij_88",rae="_dislike-content-cover_90sij_102",oae="_dislike-content-cover-inner_90sij_108",aae="_dislike-icon_90sij_119",iae="_dislike-reason_90sij_122",sae="_dislike-desc_90sij_126",lae="_dislike-content-action_90sij_130",cae="_skeleton-active_90sij_156",uae="_ant-skeleton-loading_90sij_1",Wt={biliVideoCard:Koe,previewCardWrapper:Uoe,previewCardInner:Xoe,watchLater:qoe,badge:Yoe,recommendReason:Zoe,bangumiDesc:Qoe,btnDislike:Joe,btnDislikeIcon:eae,btnDislikeTip:tae,dislikedWrapper:nae,dislikeContentCover:rae,dislikeContentCoverInner:oae,dislikeIcon:aae,dislikeReason:iae,dislikeDesc:sae,dislikeContentAction:lae,skeletonActive:cae,antSkeletonLoading:uae};function dae(...e){for(const t of e)if(!isNaN(t))return t;return 0}function fae({className:e,videoDuration:t,pvideo:n,mouseEnterRelativeX:r,previewAnimationProgress:o}){const a=m.useRef(null),i=sK(a),[s,l]=m.useState(()=>({width:0,height:0}));Dl(()=>{var f;const d=(f=a.current)==null?void 0:f.getBoundingClientRect();d&&l({width:d.width,height:d.height});});let c=0;if(typeof o=="number")c=o;else {const d=dae(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 F("div",{ref:a,className:W(Wt.previewCardWrapper,e),children:!!(n&&s.width&&s.height&&c)&&F(mae,{...u})})}function mae({videoDuration:e,pvideo:t,elWidth:n,elHeight:r,progress:o}){var x;const a=Math.floor((e||0)*o);let i=m.useMemo(()=>{const E=(t==null?void 0:t.index)||[];let S=gae(E,a);return S!==-1?S:a>E[E.length-1]?(S=Math.floor(E.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 f=Math.floor(i/d),h=i-f*d,g=((x=t.image)==null?void 0:x[f])||"",v=Math.floor(h/s)+1,p=h-(v-1)*s,b=n*s,y=r*l,C=(v-1)*r,w=(p-1)*n;return F("div",{className:Wt.previewCardInner,style:{backgroundColor:"black",backgroundImage:`url(${g})`,backgroundPosition:`-${w}px -${C}px`,backgroundSize:`${b}px ${y}px`},children:F(hae,{progress:o})})}function hae({progress:e}){return F("div",{className:"track",style:{position:"absolute",bottom:0,left:0,backgroundColor:"#eee",width:"100%",height:2},children:F("div",{className:"bar",style:{backgroundColor:so,height:"100%",width:`${e*100}%`}})})}function gae(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 Fm={play:"#widget-video-play-count",danmaku:"#widget-video-danmaku",like:"#widget-agree",bangumiFollow:"#widget-followed"},Au={1:"play",2:"like",3:"danmaku",4:"bangumiFollow",20:"like"},vae={bangumiFollow:1.3};function eC(e){return Au[e]||Au[1]}const pae="--video-card-border-radius",II=`var(${pae})`,PI={borderRadius:II},hr="0";var Co=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}};Co.TABEL="fZodR9XQDSUm21yCkr6zBqiveYah8bt4xsWpHnJE7jL5VG3guMTKNPAwcF";Co.TR={};Co.S=[11,10,3,8,4,6];Co.XOR=177451812;Co.ADD=8728348608;(()=>{const e=Co.TABEL.length;for(let t=0;t<e;t++)Co.TR[Co.TABEL[t]]=t;})();var Di=Co;Di.av2bv.bind(Di);Di.bv2av.bind(Di);function OI(e,t){if(e.api==="pc")return t.pc(e);if(e.api==="app")return t.app(e);if(e.api==="dynamic")return t.dynamic(e);if(e.api==="watchlater")return t.watchlater(e);if(e.api==="fav")return t.fav(e);if(e.api==="popular-general")return t["popular-general"](e);if(e.api==="popular-weekly")return t["popular-weekly"](e);throw new Error("unknown api type")}function MI(e){const t=OI(e,{pc:Sae,app:bae,dynamic:wae,watchlater:$ae,fav:xae,"popular-general":Eae,"popular-weekly":Iae});return t.authorFace&&(t.authorFace=hb(t.authorFace)),t.cover=hb(t.cover),t}function bae(e){return e.device==="android"?yae(e):Cae(e)}function yae(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:f}=e;if(c&&Au[c]===l)return ma(u);if(d&&Au[d]===l)return ma(f)},n=e.param,r=Di.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(`[${nn}]: 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,cover:e.cover,pubts:void 0,pubdateDisplay:void 0,duration:((a=e.player_args)==null?void 0:a.duration)||0,durationStr:Ma((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,bangumiFollow:t("bangumiFollow"),statItems:[e.cover_left_text_1&&{field:eC(e.cover_left_icon_1),value:e.cover_left_text_1},e.cover_left_text_2&&{field:eC(e.cover_left_icon_2),value:e.cover_left_text_2}].filter(Boolean),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 Cae(e){var f,h;const t=g=>{const{cover_left_text_1:v,cover_left_text_2:p,cover_left_text_3:b}=e,y=[v,p,b].filter(Boolean);if(g==="play"){const C=y.find(x=>/观看|播放$/.test(x));if(!C)return;const w=C.replace(/观看|播放$/,"");return ma(w)}if(g==="danmaku"){const C=y.find(x=>/弹幕$/.test(x));if(!C)return;const w=C.replace(/弹幕$/,"");return ma(w)}if(g==="bangumiFollow"){const C=y.find(x=>/追剧$/.test(x));if(!C)return;const w=C.replace(/追剧$/,"");return ma(w)}},n=e.param,r=e.bvid||Di.av2bv(Number(e.param)),o=(()=>{var g;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(`[${nn}]: bangumi uri should not starts with 'bilibili://': %s`,e.uri),e.uri;if(e.goto==="picture"){const v=(g=/^bilibili:\/\/article\/(\d+)$/.exec(e.uri))==null?void 0:g[1];return v?`/read/cv${v}`:e.uri}return e.uri})(),a=t("play"),i=void 0,s=void 0,l=t("danmaku"),c=void 0,u=t("bangumiFollow"),d=[{field:"play",value:Xn(a)||hr},typeof l=="number"?{field:"danmaku",value:Xn(l)||hr}:{field:"bangumiFollow",value:Xn(u)||hr}];return {avid:n,bvid:r,goto:e.goto,href:o,title:e.title,desc:e.desc,cover:e.cover,pubts:void 0,pubdateDisplay:void 0,duration:((f=e.player_args)==null?void 0:f.duration)||0,durationStr:Ma((h=e.player_args)==null?void 0:h.duration),recommendReason:e.bottom_rcmd_reason||e.top_rcmd_reason,play:a,like:i,coin:s,danmaku:l,favorite:c,bangumiFollow:u,statItems:d,authorName:e.args.up_name,authorFace:e.avatar.cover,authorMid:String(e.args.up_id||""),appBadge:e.cover_badge,appBadgeDesc:e.desc}}function Sae(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,cover:e.pic,pubts:e.pubdate,pubdateDisplay:no(e.pubdate),duration:e.duration,durationStr:Ma(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,statItems:[{field:"play",value:Xn(e.stat.view)||hr},{field:"like",value:Xn(e.stat.like)||hr}],authorName:e.owner.name,authorFace:e.owner.face,authorMid:String(e.owner.mid)}}function wae(e){const t=e.modules.module_dynamic.major.archive,n=e.modules.module_author,r=Go().subtract(2,"days").unix(),o=(()=>{const a=n.pub_ts;return a>r?n.pub_time:no(a)})();return {avid:t.aid,bvid:t.bvid,goto:"av",href:`/video/${t.bvid}/`,title:t.title,cover:t.cover,pubts:n.pub_ts,pubdateDisplay:o,duration:_F(t.duration_text)||0,durationStr:t.duration_text,recommendReason:t.badge.text,play:ma(t.stat.play),danmaku:ma(t.stat.danmaku),like:void 0,coin:void 0,favorite:void 0,authorName:n.name,authorFace:n.face,authorMid:n.mid.toString()}}function $ae(e){const t=AF(e.state),n=`${e.viewed?"【已观看】· ":""}${e.title}`,r=t?F(Qd,{title:be(It,{children:["视频已失效, 原因: ",t]}),align:{offset:[0,-5]},placement:"topLeft",children:be("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,cover:e.pic,pubts:e.pubdate,pubdateDisplay:no(e.pubdate),pubdateDisplayTitle:`${no(e.pubdate,!0)} 发布, ${no(e.add_at,!0)} 添加稍后再看`,duration:e.duration,durationStr:Ma(e.duration),recommendReason:`${no(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 xae(e){return {avid:String(e.id),bvid:e.bvid,goto:"av",href:`/video/${e.bvid}/`,title:`【${e.folder.title}】· ${e.title}`,titleRender:be(It,{children:["【",F(Dt,{name:"Star",size:16,theme:"two-tone",fill:["currentColor",so],style:{display:"inline-block",verticalAlign:"middle",marginLeft:10,marginRight:4,marginTop:-4}}),e.folder.title,"】· ",e.title]}),cover:e.cover,pubts:e.pubtime,pubdateDisplay:no(e.pubtime),duration:e.duration,durationStr:Ma(e.duration),recommendReason:`${no(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)}}function Eae(e){var t;return {avid:String(e.aid),bvid:e.bvid,goto:"av",href:`/video/${e.bvid}/`,title:e.title,cover:e.pic,pubts:e.pubdate,pubdateDisplay:no(e.pubdate),duration:e.duration,durationStr:Ma(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,statItems:[{field:"play",value:Xn(e.stat.view)||hr},{field:"like",value:Xn(e.stat.like)||hr},{field:"danmaku",value:Xn(e.stat.danmaku)||hr}],authorName:e.owner.name,authorFace:e.owner.face,authorMid:String(e.owner.mid)}}function Iae(e){return {avid:String(e.aid),bvid:e.bvid,goto:"av",href:`/video/${e.bvid}/`,title:e.title,cover:e.pic,pubts:e.pubdate,pubdateDisplay:no(e.pubdate),duration:e.duration,durationStr:Ma(e.duration),recommendReason:e.rcmd_reason,play:e.stat.view,like:e.stat.like,coin:void 0,danmaku:e.stat.danmaku,favorite:void 0,statItems:[{field:"play",value:Xn(e.stat.view)||hr},{field:"like",value:Xn(e.stat.like)||hr},{field:"danmaku",value:Xn(e.stat.danmaku)||hr}],authorName:e.owner.name,authorFace:e.owner.face,authorMid:String(e.owner.mid)}}function Pae({bvid:e,title:t,autoPreviewWhenHover:n,active:r,tryFetchVideoData:o,videoPreviewWrapperRef:a}){const[s,l]=g2(void 0),[c,u]=m.useState(!1),d=m.useRef(!1),f=m.useRef(!1);zo("mouseenter",$=>{d.current=!0,n&&!g.current&&S(!0);},{target:a}),zo("mouseleave",$=>{d.current=!1;},{target:a}),zo("mousemove",$=>{u(!0),n||p();},{target:a});const h=dK(),g=m.useRef(void 0),v=at(()=>{if(h.current)return !0;if(n){if(f.current){if(!d.current)return !0}else if(!r)return !0}else if(!r||c)return !0;return !1}),p=at(($=!1)=>{g.current&&cancelAnimationFrame(g.current),g.current=void 0,l(void 0),y(!1);}),[b,y,C]=m2(!1),w=m.useRef(),x=at(()=>{var $;if(!g.current){S();return}y(I=>!I),b&&(($=w.current)==null||$.call(w,s||0));}),E=at(()=>s||0),S=at(($=!1)=>{f.current=$,u(!1),y(!1),o(),p(!0),l(A=>typeof A>"u"?0:A);const I=8e3,P=()=>typeof Et.autoPreviewUpdateInterval=="number"?Et.autoPreviewUpdateInterval:400;let R=performance.now(),M=0;w.current=()=>{R=performance.now()-E()*I;};function k(A){if(v()){p();return}const L=()=>{const _=performance.now()-R,O=Math.min(_%I/I,1);l(O);};C()||(P()?(!M||performance.now()-M>=P())&&(M=performance.now(),L()):L()),g.current=requestAnimationFrame(k);}g.current=requestAnimationFrame(k);});return {onHotkeyPreviewAnimation:x,onStartPreviewAnimation:S,previewAnimationProgress:s}}function tC(e){GM.setClipboard(e),Pt(`已复制: ${e}`);}const RI=Qp(),Lu=m.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=FK((r==null?void 0:r.api)==="app"&&r.param),f=m.useMemo(()=>r&&MI(r),[r]),h=Soe(f==null?void 0:f.authorMid);return F("div",{style:t,className:W("bili-video-card",Wt.biliVideoCard,n),...u,children:o?F(Rae,{loading:o}):r&&f&&(d?F(Tae,{item:r,emitter:c,dislikedReason:d}):h?F(_ae,{cardData:f}):F(zae,{item:r,cardData:f,active:a,emitter:c,onRemoveCurrent:i,onMoveToFirst:s,onRefresh:l}))})});var Oae={name:"16dof6j",styles:"flex:1;margin-left:10px"},Mae={name:"1po2nvr",styles:"width:32px;height:32px;border-radius:50%"};const Rae=m.memo(function({loading:t}){const{styleFancy:n}=cn();return be("div",{className:W("bili-video-card__skeleton",{hide:!t,[Wt.skeletonActive]:t}),children:[F("div",{className:"bili-video-card__skeleton--cover",style:PI}),!n&&F("div",{className:"bili-video-card__skeleton--info",children:be("div",{className:"bili-video-card__skeleton--right",children:[F("p",{className:"bili-video-card__skeleton--text"}),F("p",{className:"bili-video-card__skeleton--text short"}),F("p",{className:"bili-video-card__skeleton--light"})]})}),n&&be("div",{className:"bili-video-card__skeleton--info",children:[F("div",{className:"bili-video-card__skeleton--avatar",css:Mae}),be("div",{className:"bili-video-card__skeleton--right",css:Oae,children:[F("p",{className:"bili-video-card__skeleton--text"}),F("p",{className:"bili-video-card__skeleton--text short"}),F("p",{className:"bili-video-card__skeleton--light"})]})]})]})}),Tae=m.memo(function({dislikedReason:t,item:n,emitter:r=RI}){const o=at(async()=>{if(!(t!=null&&t.id))return;let a=!1,i;try{a=await PK(n,t.id);}catch(s){i=s;}if(i)return console.error(i.stack||i),lw();a?Pt("已撤销"):cw(),a&&rf.delete(n.param);});return ri(r,"cancel-dislike",o),be("div",{className:W(Wt.dislikedWrapper),children:[F("div",{className:Wt.dislikeContentCover,children:be("div",{className:Wt.dislikeContentCoverInner,children:[F(Dt,{name:"DistraughtFace",size:32,className:Wt.dislikeIcon}),F("div",{className:Wt.dislikeReason,children:t==null?void 0:t.name}),F("div",{className:Wt.dislikeDesc,children:(t==null?void 0:t.toast)||"将减少此类内容推荐"})]})}),F("div",{className:Wt.dislikeContentAction,children:be("button",{onClick:o,children:[F(Dt,{name:"Return",size:"16",style:{marginRight:4,marginTop:-2}}),"撤销"]})})]})}),_ae=m.memo(function({cardData:t}){const{authorMid:n,authorFace:r,authorName:o}=t,a=at(async()=>{if(!n)return;await bI.remove(n)&&Pt(`已移出黑名单: ${o}`);});return be("div",{className:W(Wt.dislikedWrapper),children:[F("div",{className:Wt.dislikeContentCover,children:be("div",{className:Wt.dislikeContentCoverInner,children:[F(Dt,{name:"PeopleDelete",size:32,className:Wt.dislikeIcon}),F("div",{className:Wt.dislikeReason,children:"已拉黑"}),be("div",{className:Wt.dislikeDesc,children:["UP: ",o]})]})}),F("div",{className:Wt.dislikeContentAction,children:be("button",{onClick:a,children:[F(Dt,{name:"Return",size:"16",style:{marginRight:4,marginTop:-2}}),"撤销"]})})]})});var kae={name:"putlsr",styles:"margin-top:4px;padding-left:0;max-width:100%"},Nae={name:"s5xdrg",styles:"display:flex;align-items:center"},Aae={name:"zmsypw",styles:"margin-top:4px;color:var(--text3);font-size:var(--subtitle-font-size)"},Lae={name:"1ic5zs4",styles:"display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;word-break:break-all;line-break:anywhere;color:var(--text1);font-size:var(--title-font-size);line-height:var(--title-line-height)"},Fae={name:"t6djnl",styles:"flex:1;margin-left:10px;overflow:hidden"},Dae={name:"1t32qz5",styles:"display:flex;margin-top:15px"},jae={name:"11ginrh",styles:"background-color:unset;position:static"};const zae=m.memo(function({item:t,cardData:n,active:r=!1,onRemoveCurrent:o,onMoveToFirst:a,onRefresh:i,emitter:s=RI}){var oe,ye;t.api;const l=t.api==="app";t.api,t.api,t.api;const{styleFancy:c}=cn();let{avid:u,bvid:d,goto:f,href:h,title:g,titleRender:v,desc:p,cover:b,pubdateDisplay:y,pubdateDisplayTitle:C,duration:w,durationStr:x,recommendReason:E,invalidReason:S,play:$,like:I,coin:P,danmaku:R,favorite:M,bangumiFollow:k,statItems:A,authorName:L,authorFace:_,authorMid:O,appBadge:T,appBadgeDesc:D}=n;const j=f==="av";["av","bangumi","picture"].includes(f)||console.warn(`[${nn}]: none (av,bangumi,picture) goto type %s`,f,t);const[B,H]=m.useState(null),G=m.useRef(!1),K=at(async()=>{if(!B&&!G.current)try{G.current=!0,H(await EK(u));}finally{G.current=!1;}}),X=m.useRef(null),[Y,ee]=m.useState(void 0);zo("mouseenter",ue=>{var bt;const ve=(bt=X.current)==null?void 0:bt.getBoundingClientRect();if(!ve)return;const{x:Ne}=ve,Ue=ue.pageX-window.pageXOffset-Ne;ee(Ue);},{target:X});const V=hm(X),{autoPreviewWhenHover:J}=cn(),{onStartPreviewAnimation:q,onHotkeyPreviewAnimation:se,previewAnimationProgress:le}=Pae({bvid:d,title:g,autoPreviewWhenHover:J,active:r,tryFetchVideoData:K,videoPreviewWrapperRef:X});yu(()=>{if(r){try{unsafeWindow[`${P6}_activeItem`]=t;}catch(ue){console.warn("set unsafeWindow activeItem error"),console.warn(ue.stack||ue);}Et.autoPreviewWhenKeyboardSelect&&q();}},[r]);const Q=m.useRef(null),ne=hm(Q),de=koe(d),te=cK(gs),{accessKey:ce}=cn(),ge=!!ce;m.useEffect(()=>{V&&K();},[V]);const re=t.api!=="app"||t.api==="app"&&t.goto==="av",ae=m.useRef(!1),he=at(async(ue,ve)=>{if(ue==null||ue.preventDefault(),ve??(ve=de?Yy:gs),ve!==gs&&ve!==Yy)throw new Error("unexpected usingAction provided");if(ae.current)return {success:!1};ae.current=!0;let Ne=!1;try{Ne=await ve(u);}finally{ae.current=!1;}const Ue=ve===gs;return Ne&&(Ue?bi.bvidSet.add(d):bi.bvidSet.delete(d),t.api==="watchlater"?Ue||(await zn(100),o==null||o(t,n)):Pt(`已${Ue?"添加":"移除"}稍后再看`)),{success:Ne,targetState:Ue}}),Ce=m.useRef(null),_e=hm(Ce),He=at(ue=>{if(ue==null||ue.stopPropagation(),ue==null||ue.preventDefault(),!Qe)return t.api!=="app"?Pt("当前视频不支持提交「我不想看」"):ge?void 0:Pt("请先获取 access_key");BK(t);}),We=m.useMemo(()=>Xn($),[$]);m.useMemo(()=>Xn(I),[I]);const Me=m.useMemo(()=>Xn(R),[R]);m.useMemo(()=>Xn(M),[M]);const Ye=({text:ue,iconSvgName:ve,iconSvgScale:Ne})=>be("span",{className:"bili-video-card__stats--item",children:[F("svg",{className:"bili-video-card__stats--icon",style:{transform:Ne?`scale(${Ne})`:void 0},children:F("use",{href:ve})}),F("span",{className:"bili-video-card__stats--text",style:{lineHeight:"calc(var(--icon-size) + 1px)"},children:ue})]}),[Be,Ve]=m.useState(void 0),[Pe,xe]=m.useState(void 0),qe=at(async()=>{if(t.api!=="watchlater")return;const ue=await Am.getVideoFavState(u);if(ue){const{favFolderNames:ve,favFolderUrls:Ne}=ue;Ve(ve),xe(Ne);}}),rt=at(()=>{window.open(h,"_blank");}),yt=at(()=>{GM.openInTab(h,{active:!1,insert:!0});});ri(s,"open",rt),ri(s,"toggle-watch-later",()=>he()),ri(s,"trigger-dislike",()=>He()),ri(s,"start-preview-animation",q),ri(s,"hotkey-preview-animation",se);const Qe=l&&ge&&!!((ye=(oe=t.three_point)==null?void 0:oe.dislike_reasons)!=null&&ye.length),Je=at(()=>{let ue=h;h.startsWith("/")&&(ue=new URL(h,location.href).href),tC(ue);}),pt=at(()=>{let ue=h;t.api==="watchlater"&&(ue=`/video/${t.bvid}`);const ve=new URL(ue,location.href).href,Ne=`iina://open?url=${encodeURIComponent(ve)}`;window.open(Ne,"_self");}),ht=Vl(),lt=ht==="recommend-app"||ht==="recommend-pc"||ht==="popular-general"||ht==="popular-weekly",ft=at(async()=>{if(!O)return Pt("UP mid 为空!");await bI.add(O)&&Pt(`已加入黑名单: ${L}`);}),xt=t.api==="dynamic"||(t.api==="app"||t.api==="pc")&&E==="已关注",Oe=at(async()=>{if(!O)return;await Goe.unfollow(O)&&Pt("已取消关注");}),Re=t.api==="dynamic"&&!!i,ke=at(async()=>{!O||!L||(xI({upMid:Number(O),upName:L}),await zn(100),await(i==null?void 0:i()));}),pe=m.useMemo(()=>{const ue=de?"移除稍后再看":"稍后再看";return [{key:"open-link",label:"打开",icon:F(Dt,{name:"EfferentFour",size:15}),onClick:rt},{key:"open-link-in-background",label:"后台打开",icon:F(Dt,{name:"Split",size:15}),onClick:yt},{type:"divider"},{key:"copy-link",label:"复制视频链接",icon:F(Dt,{name:"Copy",size:15}),onClick:Je},{key:"copy-bvid",label:"复制 BVID",icon:F(Dt,{name:"Copy",size:15}),onClick(){tC(d);}},{type:"divider"},Qe&&{key:"dislike",label:"我不想看",icon:F(Dt,{name:"DislikeTwo",size:15}),onClick(){He();}},Re&&{key:"dymamic-feed-filter-select-up",label:"查看 UP 的动态",icon:F(Dt,{name:"PeopleSearch",size:15}),onClick:ke},xt&&{key:"unfollow-up",label:"取消关注",icon:F(Dt,{name:"PeopleMinus",size:15}),onClick:Oe},lt&&{key:"blacklist-up",label:"将 UP 加入黑名单",icon:F(Dt,{name:"PeopleDelete",size:15}),onClick:ft},t.api==="watchlater"&&{key:"add-fav",icon:F(Dt,{name:"Star",size:15,...Be!=null&&Be.length?{theme:"two-tone",fill:["currentColor",so]}:void 0}),label:Be!=null&&Be.length?`已收藏 ${Be.map(ve=>`「${ve}」`).join("")}`:"快速收藏",async onClick(){!!(Be!=null&&Be.length)?Pe==null||Pe.forEach(Ne=>{window.open(Ne,"_blank");}):await Am.addFav(u)&&Pt(`已加入收藏夹「${$g}」`);}},re&&{key:"watchlater",label:ue,icon:F(Dt,{name:de?"Delete":"FileCabinet",size:15}),onClick(){he();}},t.api==="watchlater"&&de&&{key:"watchlater-readd",label:"重新添加稍候再看 (移到最前)",icon:F(Dt,{name:"AddTwo",size:15}),async onClick(){const{success:ve}=await he(void 0,gs);ve&&(a==null||a(t,n));}},...t.api==="fav"?[{type:"divider"},{key:"open-fav-folder",label:"浏览收藏夹",icon:F(Dt,{name:"EfferentFour",size:15}),onClick(){const{id:ve}=t.folder,Ne=mI(ve);window.open(Ne,"_blank");}},{key:"remove-fav",label:"移除收藏",icon:F(Dt,{name:"Delete",size:15}),async onClick(){if(t.api!=="fav")return;await Am.removeFav(t.folder.id,`${t.id}:${t.type}`)&&(o==null||o(t,n));}}]:[],...NB?[{type:"divider"},{key:"open-in-iina",label:"在 IINA 中打开",icon:F(Dt,{name:"PlayTwo",size:15}),onClick:pt}]:[]].filter(Boolean)},[t,re,de,Qe,xt,lt,Re,Be,Pe]),De=at(ue=>{ue&&qe();}),$e=O?`https://space.bilibili.com/${O}`:h;p||(p=`${L}${y?` · ${y}`:""}`);const fe=L&&C?`${L} · ${C}`:p;return be("div",{className:"bili-video-card__wrap __scale-wrap",css:jae,children:[F(kp,{menu:{items:pe},trigger:["contextMenu"],onOpenChange:De,children:F("a",{href:h,target:"_blank",children:be("div",{className:"bili-video-card__image __scale-player-wrap",ref:X,style:{...PI,aspectRatio:"16 / 9"},children:[be("div",{className:"bili-video-card__image--wrap",style:{borderRadius:"inherit"},children:[be("picture",{className:"v-img bili-video-card__cover",style:{borderRadius:"inherit",overflow:"hidden"},children:[!Gv&&F("source",{srcSet:`${b}@672w_378h_1c_!web-home-common-cover.avif`,type:"image/avif"}),F("source",{srcSet:`${b}@672w_378h_1c_!web-home-common-cover.webp`,type:"image/webp"}),F("img",{src:`${b}@672w_378h_1c_!web-home-common-cover`,loading:"eager"})]}),(V||typeof le=="number")&&F(fae,{videoDuration:w,pvideo:B==null?void 0:B.pvideoData,mouseEnterRelativeX:Y,previewAnimationProgress:le}),re&&be("div",{className:`bili-watch-later ${Wt.watchLater}`,style:{display:V||r?"flex":"none"},ref:Q,onClick:he,children:[de?F("svg",{className:"bili-watch-later__icon",viewBox:"0 0 200 200",children:F(eV.path,{d:"M25,100 l48,48 a 8.5,8.5 0 0 0 10,0 l90,-90",strokeWidth:"20",stroke:"currentColor",fill:"transparent",strokeLinecap:"round",...te?void 0:{initial:{pathLength:0},animate:{pathLength:1}}})}):F("svg",{className:"bili-watch-later__icon",children:F("use",{href:"#widget-watch-later"})}),F("span",{className:"bili-watch-later__tip",style:{display:ne?"block":"none"},children:de?"移除稍后再看":"稍后再看"})]}),Qe&&be("div",{ref:Ce,className:Wt.btnDislike,onClick:He,style:{display:V?"flex":"none"},children:[F("svg",{className:Wt.btnDislikeIcon,children:F("use",{href:"#widget-close"})}),F("span",{className:Wt.btnDislikeTip,style:{display:_e?"block":"none"},children:"我不想看"})]})]}),F("div",{className:"bili-video-card__mask",style:{borderRadius:"inherit",overflow:"hidden"},children:be("div",{className:"bili-video-card__stats",children:[F("div",{className:"bili-video-card__stats--left",children:A!=null&&A.length?F(It,{children:A.map(({field:ue,value:ve})=>F(m.Fragment,{children:Ye({text:ve,iconSvgName:Fm[ue],iconSvgScale:vae[ue]})},ue))}):be(It,{children:[Ye({text:We||hr,iconSvgName:Fm.play}),Ye({text:Me||hr,iconSvgName:Fm.danmaku})]})}),F("span",{className:"bili-video-card__stats__duration",children:j&&x})]})})]})})}),!c&&F("div",{className:"bili-video-card__info __scale-disable",children:be("div",{className:"bili-video-card__info--right",children:[F("a",{href:h,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:F("h3",{className:"bili-video-card__info--tit",title:g,children:v??g})}),F("p",{className:"bili-video-card__info--bottom",children:j?be("a",{className:"bili-video-card__info--owner",href:$e,target:"_blank",title:fe,children:[E?F("span",{className:Wt.recommendReason,children:E}):F("svg",{className:"bili-video-card__info--owner__up",children:F("use",{href:"#widget-up"})}),F("span",{className:"bili-video-card__info--author",children:p})]}):T||D?be("a",{className:"bili-video-card__info--owner",href:h,target:"_blank",children:[F("span",{className:Wt.badge,children:T||""}),F("span",{className:Wt.bangumiDesc,children:D||""})]}):null})]})}),c&&be("div",{css:Dae,children:[F("a",{href:$e,target:"_blank",children:_?F(xu,{src:_}):F(xu,{children:(L==null?void 0:L[0])||(D==null?void 0:D[0])||""})}),be("div",{css:Fae,children:[F("a",{href:h,target:"_blank",children:F("h3",{title:g,css:Lae,children:v??g})}),F("div",{css:Aae,children:j?be(It,{children:[F("div",{css:Nae,children:F("a",{className:"bili-video-card__info--owner",href:$e,target:"_blank",title:fe,children:F("span",{className:"bili-video-card__info--author",children:p})})}),!!E&&F("div",{className:Wt.recommendReason,css:kae,children:E})]}):T||D?be("a",{className:"bili-video-card__info--owner",href:h,target:"_blank",children:[!!T&&F("span",{className:Wt.badge,children:T}),!!D&&F("span",{className:Wt.bangumiDesc,children:D})]}):null})]})]})]})}),Bae=()=>document.querySelector(".bili-header__bar");function Hae(){const e=Bae();return !!(e&&window.getComputedStyle(e).display==="none")}function xg(){if(!Hae())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 Fu=gr({value:xg()});function Vae(){return yr(Fu).value}function TI(){return Fu.value}setTimeout(()=>{Fu.value=xg();const e=new MutationObserver(()=>{Fu.value=xg();});e.observe(document.documentElement,{attributes:!0,attributeFilter:["style"]}),e.observe(document.body,{attributes:!0,attributeFilter:["class"]}),window.addEventListener("unload",()=>{e.disconnect();});},2e3);const Jp="_video-grid_65653_8",_I="_video-grid-new-homepage_65653_16",Wae="_limit-two-lines_65653_19",kI="_video-grid-internal-testing_65653_51";const nC="_video-grid-container_65653_79",Gae="_video-grid-fancy_65653_83",Kae="_narrow-mode_65653_111";function Uae({enabled:e,refresh:t,minIndex:n=0,maxIndex:r,containerRef:o,getScrollerRect:a,changeScrollY:i,videoCardEmitters:s}){const[l,c]=m.useState(void 0),u=at(()=>!(!e||yd())),d=at(()=>{var S;if(typeof l!="number"||!o.current)return !1;const x=a(),E=(S=o.current.querySelector(`.${Ci.card}.${Ci.cardActive}`))==null?void 0:S.getBoundingClientRect();return !(!x||!E||E.top-x.top<-(x.height+E.height)||E.top-x.top>x.height*2+E.height)}),f=x=>E=>{if(!u())return;E==null||E.preventDefault();const S=typeof x=="number"?x:x(),$=d()?l+S:p();if($<n){w(n);return}if($>r){w(r);return}c($),w($);};fn("leftarrow",f(-1),{exactMatch:!0}),fn("rightarrow",f(1),{exactMatch:!0}),fn("tab",f(1),{exactMatch:!0}),fn("shift.tab",f(-1),{exactMatch:!0});const h=()=>e0(o.current);fn("uparrow",f(()=>-h()),{exactMatch:!0}),fn("downarrow",f(h),{exactMatch:!0});const g=()=>{u()&&c(void 0);},v=()=>{if(!(!u()||typeof l!="number"))return s[l]};fn("esc",g),fn("enter",()=>{var x;!u()||typeof l!="number"||(x=v())==null||x.emit("open");}),fn("backspace",()=>{var x;!u()||typeof l!="number"||(x=v())==null||x.emit("trigger-dislike");}),fn(["s","w"],()=>{var x;!u()||typeof l!="number"||(x=v())==null||x.emit("toggle-watch-later");},{exactMatch:!0}),fn(["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 E=y();for(let S=0;S<E.length;S++)if(E[S].getBoundingClientRect().top>=x.top)return S;return 0}const b=`.${Ci.card}`;function y(){var x;return [...((x=o.current)==null?void 0:x.querySelectorAll(b))||[]]}function C(x){return y()[x]}function w(x){var I;const E=C(x);(I=E==null?void 0:E.scrollIntoViewIfNeeded)==null||I.call(E,!1);const S=a(),$=E.getBoundingClientRect();if(!(!S||!$)){if($.top<=S.top){const P=-(S.top-$.top+10);i==null||i({offset:P});return}if(S.bottom-$.bottom<10){const P=10-(S.bottom-$.bottom);i==null||i({offset:P});return}}}return {activeIndex:l,clearActiveIndex:g}}const Xae=new Map,qae=new Map;function e0(e,t=!0){if(t&&Et.useNarrowMode)return 2;const n=Et.styleFancy?Xae:qae;let r=n.get(Math.trunc(window.innerWidth));if(r)return r;if(e||(e=document.querySelector(`.${Jp}`)),!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 NI(e){return e==="keep-follow-only"||Et.filterEnabled&&(Et.filterMinDurationEnabled||Et.filterMinPlayCountEnabled||Et.filterOutGotoTypePicture)}function AI(e,t){return NI(t)?e.filter(n=>{const{play:r,duration:o,recommendReason:a,goto:i}=MI(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&&!Et.enableFilterForFollowedVideo?!0:!(Et.filterMinPlayCountEnabled&&Et.filterMinPlayCount&&typeof r=="number"&&r<Et.filterMinPlayCount||Et.filterMinDurationEnabled&&Et.filterMinDuration&&o&&o<Et.filterMinDuration)}function d(){return Et.filterOutGotoTypePicture?!!(s&&!Et.enableFilterForFollowedPicture):!0}}):e}var wf={exports:{}},t0={exports:{}},LI={exports:{}},mn=LI.exports={},Zr,Qr;function Eg(){throw new Error("setTimeout has not been defined")}function Ig(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Zr=setTimeout:Zr=Eg;}catch{Zr=Eg;}try{typeof clearTimeout=="function"?Qr=clearTimeout:Qr=Ig;}catch{Qr=Ig;}})();function FI(e){if(Zr===setTimeout)return setTimeout(e,0);if((Zr===Eg||!Zr)&&setTimeout)return Zr=setTimeout,setTimeout(e,0);try{return Zr(e,0)}catch{try{return Zr.call(null,e,0)}catch{return Zr.call(this,e,0)}}}function Yae(e){if(Qr===clearTimeout)return clearTimeout(e);if((Qr===Ig||!Qr)&&clearTimeout)return Qr=clearTimeout,clearTimeout(e);try{return Qr(e)}catch{try{return Qr.call(null,e)}catch{return Qr.call(this,e)}}}var po=[],yi=!1,ca,Kc=-1;function Zae(){!yi||!ca||(yi=!1,ca.length?po=ca.concat(po):Kc=-1,po.length&&DI());}function DI(){if(!yi){var e=FI(Zae);yi=!0;for(var t=po.length;t;){for(ca=po,po=[];++Kc<t;)ca&&ca[Kc].run();Kc=-1,t=po.length;}ca=null,yi=!1,Yae(e);}}mn.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];po.push(new jI(e,t)),po.length===1&&!yi&&FI(DI);};function jI(e,t){this.fun=e,this.array=t;}jI.prototype.run=function(){this.fun.apply(null,this.array);};mn.title="browser";mn.browser=!0;mn.env={};mn.argv=[];mn.version="";mn.versions={};function Po(){}mn.on=Po;mn.addListener=Po;mn.once=Po;mn.off=Po;mn.removeListener=Po;mn.removeAllListeners=Po;mn.emit=Po;mn.prependListener=Po;mn.prependOnceListener=Po;mn.listeners=function(e){return []};mn.binding=function(e){throw new Error("process.binding is not supported")};mn.cwd=function(){return "/"};mn.chdir=function(e){throw new Error("process.chdir is not supported")};mn.umask=function(){return 0};var Qae=LI.exports;const Uc=Sn(Qae);var Pg;typeof Object.create=="function"?Pg=function(t,n){t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}});}:Pg=function(t,n){t.super_=n;var r=function(){};r.prototype=n.prototype,t.prototype=new r,t.prototype.constructor=t;};const zI=Pg;var Jae=/%[sdj%]/g;function ji(e){if(!tc(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(io(arguments[n]));return t.join(" ")}for(var n=1,r=arguments,o=r.length,a=String(e).replace(Jae,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])ec(i)||!Aa(i)?a+=" "+i:a+=" "+io(i);return a}function n0(e,t){if(ro(global.process))return function(){return n0(e,t).apply(this,arguments)};if(Uc.noDeprecation===!0)return e;var n=!1;function r(){if(!n){if(Uc.throwDeprecation)throw new Error(t);Uc.traceDeprecation?console.trace(t):console.error(t),n=!0;}return e.apply(this,arguments)}return r}var Oc={},Dm;function BI(e){if(ro(Dm)&&(Dm=Uc.env.NODE_DEBUG||""),e=e.toUpperCase(),!Oc[e])if(new RegExp("\\b"+e+"\\b","i").test(Dm)){var t=0;Oc[e]=function(){var n=ji.apply(null,arguments);console.error("%s %d: %s",e,t,n);};}else Oc[e]=function(){};return Oc[e]}function io(e,t){var n={seen:[],stylize:tie};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),$f(t)?n.showHidden=t:t&&i0(n,t),ro(n.showHidden)&&(n.showHidden=!1),ro(n.depth)&&(n.depth=2),ro(n.colors)&&(n.colors=!1),ro(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=eie),Du(n,e,n.depth)}io.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]};io.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function eie(e,t){var n=io.styles[t];return n?"\x1B["+io.colors[n][0]+"m"+e+"\x1B["+io.colors[n][1]+"m":e}function tie(e,t){return e}function nie(e){var t={};return e.forEach(function(n,r){t[n]=!0;}),t}function Du(e,t,n){if(e.customInspect&&t&&Hs(t.inspect)&&t.inspect!==io&&!(t.constructor&&t.constructor.prototype===t)){var r=t.inspect(n,e);return tc(r)||(r=Du(e,r,n)),r}var o=rie(e,t);if(o)return o;var a=Object.keys(t),i=nie(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),Bs(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return jm(t);if(a.length===0){if(Hs(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(zs(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(ju(t))return e.stylize(Date.prototype.toString.call(t),"date");if(Bs(t))return jm(t)}var l="",c=!1,u=["{","}"];if(r0(t)&&(c=!0,u=["[","]"]),Hs(t)){var d=t.name?": "+t.name:"";l=" [Function"+d+"]";}if(zs(t)&&(l=" "+RegExp.prototype.toString.call(t)),ju(t)&&(l=" "+Date.prototype.toUTCString.call(t)),Bs(t)&&(l=" "+jm(t)),a.length===0&&(!c||t.length==0))return u[0]+l+u[1];if(n<0)return zs(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var f;return c?f=oie(e,t,n,i,a):f=a.map(function(h){return Og(e,t,n,i,h,c)}),e.seen.pop(),aie(f,l,u)}function rie(e,t){if(ro(t))return e.stylize("undefined","undefined");if(tc(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(o0(t))return e.stylize(""+t,"number");if($f(t))return e.stylize(""+t,"boolean");if(ec(t))return e.stylize("null","null")}function jm(e){return "["+Error.prototype.toString.call(e)+"]"}function oie(e,t,n,r,o){for(var a=[],i=0,s=t.length;i<s;++i)UI(t,String(i))?a.push(Og(e,t,n,r,String(i),!0)):a.push("");return o.forEach(function(l){l.match(/^\d+$/)||a.push(Og(e,t,n,r,l,!0));}),a}function Og(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")),UI(r,o)||(i="["+o+"]"),s||(e.seen.indexOf(l.value)<0?(ec(n)?s=Du(e,l.value,null):s=Du(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")),ro(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 aie(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 r0(e){return Array.isArray(e)}function $f(e){return typeof e=="boolean"}function ec(e){return e===null}function HI(e){return e==null}function o0(e){return typeof e=="number"}function tc(e){return typeof e=="string"}function VI(e){return typeof e=="symbol"}function ro(e){return e===void 0}function zs(e){return Aa(e)&&a0(e)==="[object RegExp]"}function Aa(e){return typeof e=="object"&&e!==null}function ju(e){return Aa(e)&&a0(e)==="[object Date]"}function Bs(e){return Aa(e)&&(a0(e)==="[object Error]"||e instanceof Error)}function Hs(e){return typeof e=="function"}function WI(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}function GI(e){return Buffer.isBuffer(e)}function a0(e){return Object.prototype.toString.call(e)}function zm(e){return e<10?"0"+e.toString(10):e.toString(10)}var iie=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function sie(){var e=new Date,t=[zm(e.getHours()),zm(e.getMinutes()),zm(e.getSeconds())].join(":");return [e.getDate(),iie[e.getMonth()],t].join(" ")}function KI(){console.log("%s - %s",sie(),ji.apply(null,arguments));}function i0(e,t){if(!t||!Aa(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}function UI(e,t){return Object.prototype.hasOwnProperty.call(e,t)}const lie={inherits:zI,_extend:i0,log:KI,isBuffer:GI,isPrimitive:WI,isFunction:Hs,isError:Bs,isDate:ju,isObject:Aa,isRegExp:zs,isUndefined:ro,isSymbol:VI,isString:tc,isNumber:o0,isNullOrUndefined:HI,isNull:ec,isBoolean:$f,isArray:r0,inspect:io,deprecate:n0,format:ji,debuglog:BI},cie=Object.freeze(Object.defineProperty({__proto__:null,_extend:i0,debuglog:BI,default:lie,deprecate:n0,format:ji,inherits:zI,inspect:io,isArray:r0,isBoolean:$f,isBuffer:GI,isDate:ju,isError:Bs,isFunction:Hs,isNull:ec,isNullOrUndefined:HI,isNumber:o0,isObject:Aa,isPrimitive:WI,isRegExp:zs,isString:tc,isSymbol:VI,isUndefined:ro,log:KI},Symbol.toStringTag,{value:"Module"})),uie=YP(cie);var die=uie.format;function fie(){(typeof AbortController>"u"||typeof AbortSignal>"u")&&console.error("[promise.timeout] need global AbortController & AbortSingal");}function mie(e,t){return function(){var n=this,r=[].slice.call(arguments);fie();var o=new AbortController;return r.push(o.signal),new Promise(function(a,i){var s=setTimeout(function(){var l=new XI(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 XI=class qI extends Error{constructor(t){super(),this.timeout=t,this.message=die("timeout of %sms exceed",t),Error.captureStackTrace(this,qI);}};t0.exports=mie;t0.exports.TimeoutError=XI;var hie=t0.exports;const YI=hie,gie=YI.TimeoutError;wf.exports=function(t,n){const r=t;n=n||{};const o=n.times||5,a=n.timeout;a&&(t=YI(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,f;try{d=await t.apply(s,l);}catch(h){f=h;}if(!f)return d;if(f instanceof TypeError)throw f;if(f instanceof vie)throw f.originalError;c[u]=f,i&&i(f,u);}throw new ZI({times:o,timeout:a,fn:r,errors:c})}};class ZI 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);}}let vie=class 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 pie=wf.exports.RetryError=ZI;wf.exports.TimeoutError=gie;var bie=wf.exports;const yie=Sn(bie);class s0 extends Error{constructor(n){super();$t(this,"json");Error.captureStackTrace(this,s0),this.json=n,this.message=n.message||JSON.stringify(n);}}async function Cie(){var r;const t=(await vd.get(qS+"/x/v2/feed/index",{responseType:"json",params:{build:"1",mobi_app:"iphone",device:"pad",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 s0(t);return Pt(`${nn}: 未知错误, 请联系开发者

  code=${t.code} message=${t.message||""}`,5e3),[]}return ((r=t==null?void 0:t.data)==null?void 0:r.items)||[]}const Sie=yie(Cie,{times:5,timeout:2e3,onerror(e,t){console.info("[%s] tryGetRecommend onerror: index=%s",nn,t,e);}});async function wie(){try{return await Sie()}catch(e){if(e instanceof pie){console.error(e.errors);const t=[ji("请求出错, 已重试%s次:",e.times),...e.errors.map((n,r)=>ji("  %s) %s",r+1,n.message)),"","请重新获取 access_key 后重试~"].join(`
`);Pt(t,5e3);}throw e}}class zu{constructor(){$t(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(()=>wie()))).flat();})(),n=n.filter(o=>!(o.goto.includes("ad")||o.card_goto.includes("ad")||o.ad_info)),n=ll(n,o=>o.param),n.map(o=>({...o,api:"app",device:"ipad",uniqId:o.param+"-"+crypto.randomUUID()}))}}$t(zu,"PAGE_SIZE",10);const Mc=Pa.extend("service"),Vs=e=>OI(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,"popular-general":t=>t.bvid,"popular-weekly":t=>t.bvid});function rC(e,t){const n=e.map(Vs);return t=ll(t,Vs),e.concat(t.filter(r=>!n.includes(Vs(r))))}const Mg=e=>e==="keep-follow-only"||e==="recommend-pc";async function QI(e,t,n=5){const{tab:r,abortSignal:o,pcRecService:a,serviceMap:i}=t,s=new zu;let l=[],c=!0;const u=async d=>{let f=[];const h=Nu(i,r);if(h){f=await h.loadMore(o)||[],c=h.hasMore,l=l.concat(f),l=ll(l,Vs);return}let g;if(r==="keep-follow-only")g=8,Mc("getMinCount: addMore(restCount = %s) times=%s",d,g);else {const v=Mg(r)?cl.PAGE_SIZE:zu.PAGE_SIZE,p=NI(r)?n:1.2;g=Math.ceil(d*p/v),Mc("getMinCount: addMore(restCount = %s) multipler=%s pagesize=%s times=%s",d,p,v,g);}f=Mg(r)?await a.getRecommendTimes(g,o):await s.getRecommendTimes(g),f=AI(f,r),l=l.concat(f),l=ll(l,Vs);};for(await u(e);;){if(o!=null&&o.aborted){Mc("getMinCount: break for abortSignal");break}if(!c){Mc("getMinCount: break for tab=%s hasMore=false",r);break}if(l.length>=e)break;await u(e-l.length);}return l}async function $ie(e){let t=await QI(e0(void 0,!1)*2,e,5);return e.tab==="watchlater"&&(t=t.slice(0,20)),t}async function xie(e){return QI(e0()*3+1,e,5)}async function Eie(e,t,n){let r=Mg(t)?await n.getRecommendTimes(e):await new zu().getRecommendTimes(e);return r=AI(r,t),r}var Rg=new Map,Rc=new WeakMap,oC=0,Iie=void 0;function Pie(e){return e?(Rc.has(e)||(oC+=1,Rc.set(e,oC.toString())),Rc.get(e)):"0"}function Oie(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?Pie(e.root):e[t]}`).toString()}function Mie(e){let t=Oie(e),n=Rg.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},Rg.set(t,n);}return n}function Rie(e,t,n={},r=Iie){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}=Mie(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(),Rg.delete(o));}}function Tie({threshold:e,delay:t,trackVisibility:n,rootMargin:r,root:o,triggerOnce:a,skip:i,initialInView:s,fallbackInView:l,onChange:c}={}){var u;const[d,f]=m__namespace.useState(null),h=m__namespace.useRef(),[g,v]=m__namespace.useState({inView:!!s,entry:void 0});h.current=c,m__namespace.useEffect(()=>{if(i||!d)return;let C;return C=Rie(d,(w,x)=>{v({inView:w,entry:x}),h.current&&h.current(w,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=g.entry)==null?void 0:u.target,b=m__namespace.useRef();!d&&p&&!a&&!i&&b.current!==p&&(b.current=p,v({inView:!!s,entry:void 0}));const y=[f,g.inView,g.entry];return y.ref=y[0],y.inView=y[1],y.entry=y[2],y}const ws=Pa.extend("components:RecGrid"),Ci={card:ru({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:ru("border-color:",so,";border-radius:",II,";overflow:hidden;box-shadow:0px 0px 9px 4px ",so,";","")};var _ie={name:"1hce7io",styles:"padding:30px 0;display:flex;align-items:center;justify-content:center;font-size:120%"};const JI=m.forwardRef(({infiteScrollUseWindow:e,shortcutEnabled:t,onScrollToTop:n,className:r,scrollerRef:o,setRefreshing:a,setExtraInfo:i},s)=>{const{useNarrowMode:l,styleFancy:c}=cn(),u=Vl(),[d,f]=m.useState(0),h=at(async()=>{G(),v(u);}),g=at(()=>{G(),f(1),v(u),_();}),v=at(Q=>{var de;const ne=((de=Nu(M,Q))==null?void 0:de.usageInfo)??null;i==null||i(ne);}),{refresh:p,items:b,setItems:y,error:C,refreshing:w,refreshedAt:x,getRefreshedAt:E,swr:S,hasMore:$,setHasMore:I,refreshAbortController:P,pcRecService:R,serviceMap:M}=SI({tab:u,debug:ws,fetcher:xie,recreateService:!0,preAction:h,postAction:g,onScrollToTop:n,setUpperRefreshing:a});Dl(p),m.useImperativeHandle(s,()=>({refresh:p}),[]);const k=m.useRef();zo("visibilitychange",Q=>{if(!(document.visibilityState==="visible")){k.current=Date.now();return}w||A.current[x]||u==="watchlater"&&k.current&&Date.now()-k.current>Sl("1h")&&p(!0,{watchlaterKeepOrder:!0});},{target:document});const A=m.useRef({}),L=at(async()=>{if(!$||w)return;const Q=x;if(A.current[Q])return;A.current={[Q]:!0};let ne=b,de=!0;try{const te=Nu(M,u);if(te){const ce=await te.loadMore(P.signal)||[];ne=rC(ne,ce),de=te.hasMore;}else for(;!(ne.length>b.length);){const ge=await Eie(u==="keep-follow-only"?5:2,u,R);ne=rC(ne,ge);}}catch(te){throw A.current[Q]=!1,te}if(Q!==E()){ws("loadMore: skip update for mismatch refreshedAt, %s != %s",Q,E());return}ws("loadMore: seq(%s) len %s -> %s",d+1,b.length,ne.length),I(de),y(ne),f(te=>te+1),A.current[Q]=!1,_();}),_=at(async()=>{await zn(Gv?100:50),ws("checkShouldLoadMore(): footerInView = %s",J.current),J.current&&L();}),O=m.useRef(null),T=at(()=>{var Q;if(e){const ne=TI()+50;return new DOMRect(0,ne,window.innerWidth,window.innerHeight-ne)}else return (Q=o==null?void 0:o.current)==null?void 0:Q.getBoundingClientRect()}),D=jK(),j=m.useMemo(()=>new Map,[x]),B=m.useMemo(()=>b.map(({uniqId:Q})=>j.get(Q)||(()=>{const ne=Qp();return j.set(Q,ne),ne})()),[b]),{activeIndex:H,clearActiveIndex:G}=Uae({enabled:t&&!D,refresh:p,maxIndex:b.length-1,containerRef:O,getScrollerRect:T,videoCardEmitters:B,changeScrollY:e?function({offset:Q,absolute:ne}){const de=document.documentElement;if(typeof Q=="number"){de.scrollTop+=Q;return}if(typeof ne=="number"){de.scrollTop=ne;return}}:void 0}),K=xa(),X=at((Q,ne)=>{y(de=>{const te=de.findIndex(ge=>ge.uniqId===Q.uniqId);if(te===-1)return de;const ce=de.slice();return ce.splice(te,1),Pt(`已移除: ${ne.title}`,4e3),u==="watchlater"&&(M.watchlater.count--,v(u)),u==="fav"&&(M.fav.total--,v(u)),ce});}),Y=at((Q,ne)=>{y(de=>{const te=de.find(re=>re.uniqId===Q.uniqId);if(!te)return de;const ce=de.indexOf(te),ge=de.slice();return ge.splice(ce,1),ge.unshift(te),ge});}),{ref:ee,inView:V}=Tie({root:e?null:(o==null?void 0:o.current)||null,rootMargin:`0px 0px ${window.innerHeight}px 0px`,onChange(Q){Q&&(ws("footerInView change to visible",Q),L());}}),J=ki(V),q=F("div",{ref:ee,css:_ie,children:!w&&F(It,{children:$?be(It,{children:[F(Dt,{name:"Loading",fill:so,spin:!0,size:40,style:{marginRight:10}}),"加载中~"]}):"没有更多了~"})}),se=W(`${nn}-video-grid`,Jp,c?Gae:K?kI:_I,l&&Kae,r);return !b.length||C||w&&!S?F("div",{className:nC,children:F("div",{className:se,children:new Array(28).fill(void 0).map((Q,ne)=>F(Lu,{loading:!0,className:Ci.card},ne))})}):be("div",{style:{minHeight:"100%"},className:nC,children:[F("div",{ref:O,className:se,children:b.map((Q,ne)=>{const de=ne===H;return F(Lu,{className:W(Ci.card,{[Ci.cardActive]:de}),item:Q,active:de,onRemoveCurrent:X,onMoveToFirst:Y,onRefresh:p,emitter:B[ne]},Q.uniqId)})}),q]})});var La=m__namespace.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}});function Tg(e,t,n){return (e-t)/(n-t)}function l0(e,t,n,r){var o=Tg(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 di(e,t){return Array.isArray(e)?e[t]:e}var kie=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"],Nie=m__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,f=et(e,kie),h=m__namespace.useContext(La),g=h.min,v=h.max,p=h.direction,b=h.disabled,y=h.keyboard,C=h.range,w=h.tabIndex,x=h.ariaLabelForHandle,E=h.ariaLabelledByForHandle,S=h.ariaValueTextFormatterForHandle,$=h.styles,I=h.classNames,P="".concat(o,"-handle"),R=function(_){b||s(_,i);},M=function(_){if(!b&&y){var O=null;switch(_.which||_.keyCode){case me.LEFT:O=p==="ltr"||p==="btt"?-1:1;break;case me.RIGHT:O=p==="ltr"||p==="btt"?1:-1;break;case me.UP:O=p!=="ttb"?1:-1;break;case me.DOWN:O=p!=="ttb"?-1:1;break;case me.HOME:O="min";break;case me.END:O="max";break;case me.PAGE_UP:O=2;break;case me.PAGE_DOWN:O=-2;break}O!==null&&(_.preventDefault(),d(O,i));}},k=l0(p,a,g,v),A=m__namespace.createElement("div",Ie({ref:t,className:W(P,(n={},z(n,"".concat(P,"-").concat(i+1),C),z(n,"".concat(P,"-dragging"),u),n),I.handle),style:U(U(U({},k),l),$.handle),onMouseDown:R,onTouchStart:R,onKeyDown:M,tabIndex:b?null:di(w,i),role:"slider","aria-valuemin":g,"aria-valuemax":v,"aria-valuenow":a,"aria-disabled":b,"aria-label":di(x,i),"aria-labelledby":di(E,i),"aria-valuetext":(r=di(S,i))===null||r===void 0?void 0:r(a),"aria-orientation":p==="ltr"||p==="rtl"?"horizontal":"vertical"},f));return c&&(A=c(A,{index:i,prefixCls:o,value:a,dragging:u})),A}),Aie=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],Lie=m__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=et(e,Aie),u=m__namespace.useRef({});return m__namespace.useImperativeHandle(t,function(){return {focus:function(f){var h;(h=u.current[f])===null||h===void 0||h.focus();}}}),m__namespace.createElement(m__namespace.Fragment,null,i.map(function(d,f){return m__namespace.createElement(Nie,Ie({ref:function(g){g?u.current[f]=g:delete u.current[f];},dragging:l===f,prefixCls:n,style:di(r,f),key:f,value:d,valueIndex:f,onStartMove:o,onOffsetChange:a,render:s},c))}))});function aC(e){var t="touches"in e?e.touches[0]:e;return {pageX:t.pageX,pageY:t.pageY}}function Fie(e,t,n,r,o,a,i,s,l){var c=m__namespace.useState(null),u=Z(c,2),d=u[0],f=u[1],h=m__namespace.useState(-1),g=Z(h,2),v=g[0],p=g[1],b=m__namespace.useState(n),y=Z(b,2),C=y[0],w=y[1],x=m__namespace.useState(n),E=Z(x,2),S=E[0],$=E[1],I=m__namespace.useRef(null),P=m__namespace.useRef(null);m__namespace.useEffect(function(){v===-1&&w(n);},[n,v]),m__namespace.useEffect(function(){return function(){document.removeEventListener("mousemove",I.current),document.removeEventListener("mouseup",P.current),document.removeEventListener("touchmove",I.current),document.removeEventListener("touchend",P.current);}},[]);var R=function(O,T){C.some(function(D,j){return D!==O[j]})&&(T!==void 0&&f(T),w(O),i(O));},M=function(O,T){if(O===-1){var D=S[0],j=S[S.length-1],B=r-D,H=o-j,G=T*(o-r);G=Math.max(G,B),G=Math.min(G,H);var K=a(D+G);G=K-D;var X=S.map(function(J){return J+G});R(X);}else {var Y=(o-r)*T,ee=Te(C);ee[O]=S[O];var V=l(ee,Y,O,"dist");R(V.values,V.value);}},k=m__namespace.useRef(M);k.current=M;var A=function(O,T,D){O.stopPropagation();var j=D||n,B=j[T];p(T),f(B),$(j);var H=aC(O),G=H.pageX,K=H.pageY,X=function(V){V.preventDefault();var J=aC(V),q=J.pageX,se=J.pageY,le=q-G,Q=se-K,ne=e.current.getBoundingClientRect(),de=ne.width,te=ne.height,ce;switch(t){case"btt":ce=-Q/te;break;case"ttb":ce=Q/te;break;case"rtl":ce=-le/de;break;default:ce=le/de;}k.current(T,ce);},Y=function ee(V){V.preventDefault(),document.removeEventListener("mouseup",ee),document.removeEventListener("mousemove",X),document.removeEventListener("touchend",ee),document.removeEventListener("touchmove",X),I.current=null,P.current=null,p(-1),s();};document.addEventListener("mouseup",Y),document.addEventListener("mousemove",X),document.addEventListener("touchend",Y),document.addEventListener("touchmove",X),I.current=X,P.current=Y;},L=m__namespace.useMemo(function(){var _=Te(n).sort(function(T,D){return T-D}),O=Te(C).sort(function(T,D){return T-D});return _.every(function(T,D){return T===O[D]})?C:n},[n,C]);return [v,d,L,A]}function Die(e,t,n,r,o,a){var i=m__namespace.useCallback(function(h){var g=isFinite(h)?h:e;return g=Math.min(t,h),g=Math.max(e,g),g},[e,t]),s=m__namespace.useCallback(function(h){if(n!==null){var g=e+Math.round((i(h)-e)/n)*n,v=function(C){return (String(C).split(".")[1]||"").length},p=Math.max(v(n),v(t),v(e)),b=Number(g.toFixed(p));return e<=b&&b<=t?b:null}return null},[n,e,t,i]),l=m__namespace.useCallback(function(h){var g=i(h),v=r.map(function(y){return y.value});n!==null&&v.push(s(h)),v.push(e,t);var p=v[0],b=t-e;return v.forEach(function(y){var C=Math.abs(g-y);C<=b&&(p=y,b=C);}),p},[e,t,r,n,i,s]),c=function h(g,v,p){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof v=="number"){var y,C=g[p],w=C+v,x=[];r.forEach(function(P){x.push(P.value);}),x.push(e,t),x.push(s(C));var E=v>0?1:-1;b==="unit"?x.push(s(C+E*n)):x.push(s(w)),x=x.filter(function(P){return P!==null}).filter(function(P){return v<0?P<=C:P>=C}),b==="unit"&&(x=x.filter(function(P){return P!==C}));var S=b==="unit"?C:w;y=x[0];var $=Math.abs(y-S);if(x.forEach(function(P){var R=Math.abs(P-S);R<$&&(y=P,$=R);}),y===void 0)return v<0?e:t;if(b==="dist")return y;if(Math.abs(v)>1){var I=Te(g);return I[p]=y,h(I,v-E,p,b)}return y}else {if(v==="min")return e;if(v==="max")return t}},u=function(g,v,p){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",y=g[p],C=c(g,v,p,b);return {value:C,changed:C!==y}},d=function(g){return a===null&&g===0||typeof a=="number"&&g<a},f=function(g,v,p){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",y=g.map(l),C=y[p],w=c(y,v,p,b);if(y[p]=w,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 E=p+1;E<y.length;E+=1)for(var S=!0;d(y[E]-y[E-1])&&S;){var $=u(y,1,E);y[E]=$.value,S=$.changed;}for(var I=p;I>0;I-=1)for(var P=!0;d(y[I]-y[I-1])&&P;){var R=u(y,-1,I-1);y[I-1]=R.value,P=R.changed;}for(var M=y.length-1;M>0;M-=1)for(var k=!0;d(y[M]-y[M-1])&&k;){var A=u(y,-1,M-1);y[M-1]=A.value,k=A.changed;}for(var L=0;L<y.length-1;L+=1)for(var _=!0;d(y[L+1]-y[L])&&_;){var O=u(y,1,L+1);y[L+1]=O.value,_=O.changed;}}return {value:y[p],values:y}};return [l,f]}function jie(e){var t=e.prefixCls,n=e.style,r=e.children,o=e.value,a=e.onClick,i=m__namespace.useContext(La),s=i.min,l=i.max,c=i.direction,u=i.includedStart,d=i.includedEnd,f=i.included,h="".concat(t,"-text"),g=l0(c,o,s,l);return m__namespace.createElement("span",{className:W(h,z({},"".concat(h,"-active"),f&&u<=o&&o<=d)),style:U(U({},g),n),onMouseDown:function(p){p.stopPropagation();},onClick:function(){a(o);}},r)}function zie(e){var t=e.prefixCls,n=e.marks,r=e.onClick,o="".concat(t,"-mark");return n.length?m__namespace.createElement("div",{className:o},n.map(function(a){var i=a.value,s=a.style,l=a.label;return m__namespace.createElement(jie,{key:i,prefixCls:o,style:s,value:i,onClick:r},l)})):null}function Bie(e){var t=e.prefixCls,n=e.value,r=e.style,o=e.activeStyle,a=m__namespace.useContext(La),i=a.min,s=a.max,l=a.direction,c=a.included,u=a.includedStart,d=a.includedEnd,f="".concat(t,"-dot"),h=c&&u<=n&&n<=d,g=U(U({},l0(l,n,i,s)),typeof r=="function"?r(n):r);return h&&(g=U(U({},g),typeof o=="function"?o(n):o)),m__namespace.createElement("span",{className:W(f,z({},"".concat(f,"-active"),h)),style:g})}function Hie(e){var t=e.prefixCls,n=e.marks,r=e.dots,o=e.style,a=e.activeStyle,i=m__namespace.useContext(La),s=i.min,l=i.max,c=i.step,u=m__namespace.useMemo(function(){var d=new Set;if(n.forEach(function(h){d.add(h.value);}),r&&c!==null)for(var f=s;f<=l;)d.add(f),f+=c;return Array.from(d)},[s,l,c,r,n]);return m__namespace.createElement("div",{className:"".concat(t,"-step")},u.map(function(d){return m__namespace.createElement(Bie,{prefixCls:t,key:d,value:d,style:o,activeStyle:a})}))}function iC(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=m__namespace.useContext(La),u=c.direction,d=c.min,f=c.max,h=c.disabled,g=c.range,v=c.classNames,p="".concat(n,"-track"),b=Tg(o,d,f),y=Tg(a,d,f),C=function(S){!h&&s&&s(S,-1);},w={};switch(u){case"rtl":w.right="".concat(b*100,"%"),w.width="".concat(y*100-b*100,"%");break;case"btt":w.bottom="".concat(b*100,"%"),w.height="".concat(y*100-b*100,"%");break;case"ttb":w.top="".concat(b*100,"%"),w.height="".concat(y*100-b*100,"%");break;default:w.left="".concat(b*100,"%"),w.width="".concat(y*100-b*100,"%");}var x=l||W(p,(t={},z(t,"".concat(p,"-").concat(i+1),i!==null&&g),z(t,"".concat(n,"-track-draggable"),s),t),v.track);return m__namespace.createElement("div",{className:x,style:U(U({},w),r),onMouseDown:C,onTouchStart:C})}function Vie(e){var t=e.prefixCls,n=e.style,r=e.values,o=e.startPoint,a=e.onStartMove,i=m__namespace.useContext(La),s=i.included,l=i.range,c=i.min,u=i.styles,d=i.classNames,f=m__namespace.useMemo(function(){if(!l){if(r.length===0)return [];var g=o??c,v=r[0];return [{start:Math.min(g,v),end:Math.max(g,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]),h=null;return (d.tracks||u.tracks)&&(h=m__namespace.createElement(iC,{index:null,prefixCls:t,start:f[0].start,end:f[f.length-1].end,replaceCls:W(d.tracks,"".concat(t,"-tracks")),style:u.tracks})),s?m__namespace.createElement(m__namespace.Fragment,null,h,f.map(function(g,v){var p=g.start,b=g.end;return m__namespace.createElement(iC,{index:v,prefixCls:t,style:U(U({},di(n,v)),u.track),start:p,end:b,key:v,onStartMove:a})})):null}var Wie=m__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,f=d===void 0?!0:d,h=e.autoFocus,g=e.onFocus,v=e.onBlur,p=e.min,b=p===void 0?0:p,y=e.max,C=y===void 0?100:y,w=e.step,x=w===void 0?1:w,E=e.value,S=e.defaultValue,$=e.range,I=e.count,P=e.onChange,R=e.onBeforeChange,M=e.onAfterChange,k=e.allowCross,A=k===void 0?!0:k,L=e.pushable,_=L===void 0?!1:L,O=e.draggableTrack,T=e.reverse,D=e.vertical,j=e.included,B=j===void 0?!0:j,H=e.startPoint,G=e.trackStyle,K=e.handleStyle,X=e.railStyle,Y=e.dotStyle,ee=e.activeDotStyle,V=e.marks,J=e.dots,q=e.handleRender,se=e.tabIndex,le=se===void 0?0:se,Q=e.ariaLabelForHandle,ne=e.ariaLabelledByForHandle,de=e.ariaValueTextFormatterForHandle,te=m__namespace.useRef(),ce=m__namespace.useRef(),ge=m__namespace.useMemo(function(){return D?T?"ttb":"btt":T?"rtl":"ltr"},[T,D]),re=m__namespace.useMemo(function(){return isFinite(b)?b:0},[b]),ae=m__namespace.useMemo(function(){return isFinite(C)?C:100},[C]),he=m__namespace.useMemo(function(){return x!==null&&x<=0?1:x},[x]),Ce=m__namespace.useMemo(function(){return typeof _=="boolean"?_?he:!1:_>=0?_:!1},[_,he]),_e=m__namespace.useMemo(function(){var ct=Object.keys(V||{});return ct.map(function(Ae){var Ee=V[Ae],Se={value:Number(Ae)};return Ee&&it(Ee)==="object"&&!m__namespace.isValidElement(Ee)&&("label"in Ee||"style"in Ee)?(Se.style=Ee.style,Se.label=Ee.label):Se.label=Ee,Se}).filter(function(Ae){var Ee=Ae.label;return Ee||typeof Ee=="number"}).sort(function(Ae,Ee){return Ae.value-Ee.value})},[V]),He=Die(re,ae,he,_e,A,Ce),We=Z(He,2),Me=We[0],Ye=We[1],Be=qt(S,{value:E}),Ve=Z(Be,2),Pe=Ve[0],xe=Ve[1],qe=m__namespace.useMemo(function(){var ct=Pe==null?[]:Array.isArray(Pe)?Pe:[Pe],Ae=Z(ct,1),Ee=Ae[0],Se=Ee===void 0?re:Ee,we=Pe===null?[]:[Se];if($){if(we=Te(ct),I||Pe===void 0){var je=I>=0?I+1:2;for(we=we.slice(0,je);we.length<je;){var ut;we.push((ut=we[we.length-1])!==null&&ut!==void 0?ut:re);}}we.sort(function(_t,Rt){return _t-Rt});}return we.forEach(function(_t,Rt){we[Rt]=Me(_t);}),we},[Pe,$,re,I,Me]),rt=m__namespace.useRef(qe);rt.current=qe;var yt=function(Ae){return $?Ae:Ae[0]},Qe=function(Ae){var Ee=Te(Ae).sort(function(Se,we){return Se-we});P&&!El(Ee,rt.current,!0)&&P(yt(Ee)),xe(Ee);},Je=function(){M==null||M(yt(rt.current));},pt=Fie(ce,ge,qe,re,ae,Me,Qe,Je,Ye),ht=Z(pt,4),lt=ht[0],ft=ht[1],xt=ht[2],Oe=ht[3],Re=function(Ae,Ee){if(!u){var Se=0,we=ae-re;qe.forEach(function(ut,_t){var Rt=Math.abs(Ae-ut);Rt<=we&&(we=Rt,Se=_t);});var je=Te(qe);je[Se]=Ae,$&&!qe.length&&I===void 0&&je.push(Ae),R==null||R(yt(je)),Qe(je),M==null||M(yt(je)),Ee&&Oe(Ee,Se,je);}},ke=function(Ae){Ae.preventDefault();var Ee=ce.current.getBoundingClientRect(),Se=Ee.width,we=Ee.height,je=Ee.left,ut=Ee.top,_t=Ee.bottom,Rt=Ee.right,hn=Ae.clientX,un=Ae.clientY,gn;switch(ge){case"btt":gn=(_t-un)/we;break;case"ttb":gn=(un-ut)/we;break;case"rtl":gn=(Rt-hn)/Se;break;default:gn=(hn-je)/Se;}var Wn=re+gn*(ae-re);Re(Me(Wn),Ae);},pe=m__namespace.useState(null),De=Z(pe,2),$e=De[0],fe=De[1],oe=function(Ae,Ee){if(!u){var Se=Ye(qe,Ae,Ee);R==null||R(yt(qe)),Qe(Se.values),M==null||M(yt(Se.values)),fe(Se.value);}};m__namespace.useEffect(function(){if($e!==null){var ct=qe.indexOf($e);ct>=0&&te.current.focus(ct);}fe(null);},[$e]);var ye=m__namespace.useMemo(function(){return O&&he===null?!1:O},[O,he]),ue=function(Ae,Ee){Oe(Ae,Ee),R==null||R(yt(rt.current));},ve=lt!==-1;m__namespace.useEffect(function(){if(!ve){var ct=qe.lastIndexOf(ft);te.current.focus(ct);}},[ve]);var Ne=m__namespace.useMemo(function(){return Te(xt).sort(function(ct,Ae){return ct-Ae})},[xt]),Ue=m__namespace.useMemo(function(){return $?[Ne[0],Ne[Ne.length-1]]:[re,Ne[0]]},[Ne,$,re]),bt=Z(Ue,2),gt=bt[0],Nt=bt[1];m__namespace.useImperativeHandle(t,function(){return {focus:function(){te.current.focus(0);},blur:function(){var Ae=document,Ee=Ae.activeElement;ce.current.contains(Ee)&&(Ee==null||Ee.blur());}}}),m__namespace.useEffect(function(){h&&te.current.focus(0);},[]);var St=m__namespace.useMemo(function(){return {min:re,max:ae,direction:ge,disabled:u,keyboard:f,step:he,included:B,includedStart:gt,includedEnd:Nt,range:$,tabIndex:le,ariaLabelForHandle:Q,ariaLabelledByForHandle:ne,ariaValueTextFormatterForHandle:de,styles:l||{},classNames:s||{}}},[re,ae,ge,u,f,he,B,gt,Nt,$,le,Q,ne,de,l,s]);return m__namespace.createElement(La.Provider,{value:St},m__namespace.createElement("div",{ref:ce,className:W(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"),_e.length),n)),style:i,onMouseDown:ke},m__namespace.createElement("div",{className:W("".concat(o,"-rail"),s==null?void 0:s.rail),style:U(U({},X),l==null?void 0:l.rail)}),m__namespace.createElement(Vie,{prefixCls:o,style:G,values:Ne,startPoint:H,onStartMove:ye?ue:null}),m__namespace.createElement(Hie,{prefixCls:o,marks:_e,dots:J,style:Y,activeStyle:ee}),m__namespace.createElement(Lie,{ref:te,prefixCls:o,style:K,values:xt,draggingIndex:lt,onStartMove:ue,onOffsetChange:oe,onFocus:g,onBlur:v,handleRender:q}),m__namespace.createElement(zie,{prefixCls:o,marks:_e,onClick:Re})))});const Gie=m__namespace.forwardRef((e,t)=>{const{open:n}=e,r=m.useRef(null),o=m.useRef(null);function a(){Mt.cancel(o.current),o.current=null;}function i(){o.current=Mt(()=>{var s;(s=r.current)===null||s===void 0||s.forceAlign(),o.current=null;});}return m__namespace.useEffect(()=>(n?i():a(),a),[n,e.title]),m__namespace.createElement(Pl,Object.assign({ref:Jn(r,t)},e))}),Kie=Gie,Uie=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:o,marginFull:a,marginPart:i,colorFillContentHover:s}=e;return {[t]:Object.assign(Object.assign({},jt(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 Jt(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"}})}},eP=(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,f=(o-r)/2,h=t?{borderWidth:`${f}px 0`,transform:`translateY(-${f}px)`}:{borderWidth:`0 ${f}px`,transform:`translateX(-${f}px)`};return {[i]:r,[l]:r*3,[`${n}-rail`]:{[s]:"100%",[l]:r},[`${n}-track,${n}-tracks`]:{[l]:r},[`${n}-track-draggable`]:Object.assign({},h),[`${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}}},Xie=e=>{const{componentCls:t,marginPartWithMark:n}=e;return {[`${t}-horizontal`]:Object.assign(Object.assign({},eP(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},qie=e=>{const{componentCls:t}=e;return {[`${t}-vertical`]:Object.assign(Object.assign({},eP(e,!1)),{height:"100%"})}},Yie=Kt("Slider",e=>{const t=Ct(e,{marginPart:(e.controlHeight-e.controlSize)/2,marginFull:e.controlSize/2,marginPartWithMark:e.controlHeightLG-e.controlSize});return [Uie(t),Xie(t),qie(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 Zie=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 Qie(e,t){return e||e===null?e:t||t===null?t:n=>typeof n=="number"?n.toString():""}const Jie=m.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:f}=e,h=Zie(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement"]),{direction:g,slider:v,getPrefixCls:p,getPopupContainer:b}=m.useContext(tt),y=m.useContext(Kr),C=s??y,[w,x]=m.useState({}),E=(_,O)=>{x(T=>Object.assign(Object.assign({},T),{[_]:O}));},S=(_,O)=>_||(O?g==="rtl"?"left":"right":"top"),$=p("slider",n),[I,P]=Yie($),R=W(o,v==null?void 0:v.className,a,{[`${$}-rtl`]:g==="rtl"},P);g==="rtl"&&!h.vertical&&(h.reverse=!h.reverse);const[M,k]=m.useMemo(()=>r?typeof r=="object"?[!0,r.draggableTrack]:[!0,!1]:[!1],[r]),A=(_,O)=>{var T;const{index:D,dragging:j}=O,{tooltip:B={},vertical:H}=e,G=Object.assign({},B),{open:K,placement:X,getPopupContainer:Y,prefixCls:ee,formatter:V}=G,J=Qie(V,c),q=J?w[D]||j:!1,se=(T=K??u)!==null&&T!==void 0?T:K===void 0&&q,le=Object.assign(Object.assign({},_.props),{onMouseEnter:()=>E(D,!0),onMouseLeave:()=>E(D,!1),onFocus:Q=>{var ne;E(D,!0),(ne=h.onFocus)===null||ne===void 0||ne.call(h,Q);},onBlur:Q=>{var ne;E(D,!1),(ne=h.onBlur)===null||ne===void 0||ne.call(h,Q);}});return m.createElement(Kie,Object.assign({},G,{prefixCls:p("tooltip",ee??l),title:J?J(O.value):"",open:se,placement:S(X??f,H),key:D,overlayClassName:`${$}-tooltip`,getPopupContainer:Y||d||b}),m.cloneElement(_,le))},L=Object.assign(Object.assign({},v==null?void 0:v.style),i);return I(m.createElement(Wie,Object.assign({},h,{step:h.step,range:M,draggableTrack:k,className:R,style:L,disabled:C,ref:t,prefixCls:$,handleRender:A})))}),ese=Jie;var tse={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 nse=tse;var rse=function(t,n){return m__namespace.createElement(_n,Ie({},t,{ref:n,icon:nse}))};const tP=m__namespace.forwardRef(rse);function sC(e){return !!(e&&e.then)}const ose=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:a,autoFocus:i,emitEvent:s,isSilent:l,quitOnNullishReturnValue:c,actionFn:u}=e,d=m__namespace.useRef(!1),f=m__namespace.useRef(null),[h,g]=ha(!1),v=function(){a==null||a.apply(void 0,arguments);};m__namespace.useEffect(()=>{let y=null;return i&&(y=setTimeout(()=>{var C;(C=f.current)===null||C===void 0||C.focus();})),()=>{y&&clearTimeout(y);}},[]);const p=y=>{sC(y)&&(g(!0),y.then(function(){g(!1,!0),v.apply(void 0,arguments),d.current=!1;},C=>{if(g(!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&&!sC(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 m__namespace.createElement(Qt,Object.assign({},bE(t),{onClick:b,loading:h,prefixCls:r},o,{ref:f}),n)},ase=ose,ise=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}}}}},nP=Kt("Popconfirm",e=>ise(e),e=>{const{zIndexPopupBase:t}=e;return {zIndexPopup:t+60}},{resetStyle:!1});var sse=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 rP=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:o,description:a,cancelText:i,okText:s,okType:l="primary",icon:c=m__namespace.createElement(tP,null),showCancel:u=!0,close:d,onConfirm:f,onCancel:h,onPopupClick:g}=e,{getPrefixCls:v}=m__namespace.useContext(tt),[p]=Qi("Popconfirm",$o.Popconfirm),b=Li(o),y=Li(a);return m__namespace.createElement("div",{className:`${t}-inner-content`,onClick:g},m__namespace.createElement("div",{className:`${t}-message`},c&&m__namespace.createElement("span",{className:`${t}-message-icon`},c),m__namespace.createElement("div",{className:`${t}-message-text`},b&&m__namespace.createElement("div",{className:W(`${t}-title`)},b),y&&m__namespace.createElement("div",{className:`${t}-description`},y))),m__namespace.createElement("div",{className:`${t}-buttons`},u&&m__namespace.createElement(Qt,Object.assign({onClick:h,size:"small"},r),i??(p==null?void 0:p.cancelText)),m__namespace.createElement(ase,{buttonProps:Object.assign(Object.assign({size:"small"},bE(l)),n),actionFn:f,close:d,prefixCls:v("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s??(p==null?void 0:p.okText))))},lse=e=>{const{prefixCls:t,placement:n,className:r,style:o}=e,a=sse(e,["prefixCls","placement","className","style"]),{getPrefixCls:i}=m__namespace.useContext(tt),s=i("popconfirm",t),[l]=nP(s);return l(m__namespace.createElement(W2,{placement:n,className:W(s,r),style:o,content:m__namespace.createElement(rP,Object.assign({prefixCls:s},a))}))},cse=lse;var use=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 oP=m__namespace.forwardRef((e,t)=>{var n,r;const{prefixCls:o,placement:a="top",trigger:i="click",okType:s="primary",icon:l=m__namespace.createElement(tP,null),children:c,overlayClassName:u,onOpenChange:d,onVisibleChange:f}=e,h=use(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:g}=m__namespace.useContext(tt),[v,p]=qt(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),b=(P,R)=>{p(P,!0),f==null||f(P),d==null||d(P,R);},y=P=>{b(!1,P);},C=P=>{var R;return (R=e.onConfirm)===null||R===void 0?void 0:R.call(void 0,P)},w=P=>{var R;b(!1,P),(R=e.onCancel)===null||R===void 0||R.call(void 0,P);},x=P=>{P.keyCode===me.ESC&&v&&b(!1,P);},E=P=>{const{disabled:R=!1}=e;R||b(P);},S=g("popconfirm",o),$=W(S,u),[I]=nP(S);return I(m__namespace.createElement(df,Object.assign({},Vn(h,["title"]),{trigger:i,placement:a,onOpenChange:E,open:v,ref:t,overlayClassName:$,content:m__namespace.createElement(rP,Object.assign({okType:s,icon:l},e,{prefixCls:S,close:y,onConfirm:C,onCancel:w})),"data-popover-inject":!0}),Zn(c,{onKeyDown:P=>{var R,M;m__namespace.isValidElement(c)&&((M=c==null?void 0:(R=c.props).onKeyDown)===null||M===void 0||M.call(R,P)),x(P);}})))});oP._InternalPanelDoNotUseOrYouWillBeFired=cse;const lC=oP;var dse={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 fse=dse;var mse=function(t,n){return m__namespace.createElement(_n,Ie({},t,{ref:n,icon:fse}))};const hse=m__namespace.forwardRef(mse);function _g(){return typeof BigInt=="function"}function ba(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 c0(e){var t=String(e);return !Number.isNaN(Number(t))&&t.includes("e")}function ul(e){var t=String(e);if(c0(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(".")&&u0(t)?t.length-t.indexOf(".")-1:0}function xf(e){var t=String(e);if(c0(e)){if(e>Number.MAX_SAFE_INTEGER)return String(_g()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(_g()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(ul(t));}return ba(t).fullStr}function u0(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 aP(e){return !e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}var gse=function(){function e(t){if(En(this,e),z(this,"origin",""),z(this,"number",void 0),z(this,"empty",void 0),aP(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t);}return In(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(ul(this.number),ul(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()?"":xf(this.number):this.origin}}]),e}(),vse=function(){function e(t){if(En(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),aP(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(c0(n)&&(n=Number(n)),n=typeof n=="string"?n:xf(n),u0(n)){var r=ba(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 In(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=ba(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()?"":ba("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}();function Ar(e){return _g()?new vse(e):new gse(e)}function Xc(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return "";var o=ba(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=Ar(e).add("".concat(a,"0.").concat("0".repeat(n)).concat(10-u));return Xc(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 pse(e,t){var n=m.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],f=a.indexOf(d,c-1);f!==-1&&(u=f+1);}e.setSelectionRange(u,u);}catch(h){$n(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(h.message));}}return [r,o]}var bse=function(){var t=m.useState(!1),n=Z(t,2),r=n[0],o=n[1];return Xt(function(){o(Td());},[]),r},yse=200,Cse=600;function Sse(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,o=e.upDisabled,a=e.downDisabled,i=e.onStep,s=m__namespace.useRef(),l=m__namespace.useRef([]),c=m__namespace.useRef();c.current=i;var u=function(){clearTimeout(s.current);},d=function(C,w){C.preventDefault(),u(),c.current(w);function x(){c.current(w),s.current=setTimeout(x,yse);}s.current=setTimeout(x,Cse);};m__namespace.useEffect(function(){return function(){u(),l.current.forEach(function(y){return Mt.cancel(y)});}},[]);var f=bse();if(f)return null;var h="".concat(t,"-handler"),g=W(h,"".concat(h,"-up"),z({},"".concat(h,"-up-disabled"),o)),v=W(h,"".concat(h,"-down"),z({},"".concat(h,"-down-disabled"),a)),p=function(){return l.current.push(Mt(u))},b={unselectable:"on",role:"button",onMouseUp:p,onMouseLeave:p};return m__namespace.createElement("div",{className:"".concat(h,"-wrap")},m__namespace.createElement("span",Ie({},b,{onMouseDown:function(C){d(C,!0);},"aria-label":"Increase Value","aria-disabled":o,className:g}),n||m__namespace.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),m__namespace.createElement("span",Ie({},b,{onMouseDown:function(C){d(C,!1);},"aria-label":"Decrease Value","aria-disabled":a,className:v}),r||m__namespace.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function cC(e){var t=typeof e=="number"?xf(e):ba(e).fullStr,n=t.includes(".");return n?ba(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const wse=function(){var e=m.useRef(0),t=function(){Mt.cancel(e.current);};return m.useEffect(function(){return t},[]),function(n){t(),e.current=Mt(function(){n();});}};var $se=["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"],xse=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],uC=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},dC=function(t){var n=Ar(t);return n.isInvalidate()?null:n},Ese=m__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,f=e.value,h=e.disabled,g=e.readOnly,v=e.upHandler,p=e.downHandler,b=e.keyboard,y=e.controls,C=y===void 0?!0:y,w=e.classNames,x=e.stringMode,E=e.parser,S=e.formatter,$=e.precision,I=e.decimalSeparator,P=e.onChange,R=e.onInput,M=e.onPressEnter,k=e.onStep,A=e.changeOnBlur,L=A===void 0?!0:A,_=et(e,$se),O="".concat(o,"-input"),T=m__namespace.useRef(null),D=m__namespace.useState(!1),j=Z(D,2),B=j[0],H=j[1],G=m__namespace.useRef(!1),K=m__namespace.useRef(!1),X=m__namespace.useRef(!1),Y=m__namespace.useState(function(){return Ar(f??d)}),ee=Z(Y,2),V=ee[0],J=ee[1];function q(Oe){f===void 0&&J(Oe);}var se=m__namespace.useCallback(function(Oe,Re){if(!Re)return $>=0?$:Math.max(ul(Oe),ul(u))},[$,u]),le=m__namespace.useCallback(function(Oe){var Re=String(Oe);if(E)return E(Re);var ke=Re;return I&&(ke=ke.replace(I,".")),ke.replace(/[^\w.-]+/g,"")},[E,I]),Q=m__namespace.useRef(""),ne=m__namespace.useCallback(function(Oe,Re){if(S)return S(Oe,{userTyping:Re,input:String(Q.current)});var ke=typeof Oe=="number"?xf(Oe):Oe;if(!Re){var pe=se(ke,Re);if(u0(ke)&&(I||pe>=0)){var De=I||".";ke=Xc(ke,De,pe);}}return ke},[S,se,I]),de=m__namespace.useState(function(){var Oe=d??f;return V.isInvalidate()&&["string","number"].includes(it(Oe))?Number.isNaN(Oe)?"":Oe:ne(V.toString(),!1)}),te=Z(de,2),ce=te[0],ge=te[1];Q.current=ce;function re(Oe,Re){ge(ne(Oe.isInvalidate()?Oe.toString(!1):Oe.toString(!Re),Re));}var ae=m__namespace.useMemo(function(){return dC(l)},[l,$]),he=m__namespace.useMemo(function(){return dC(s)},[s,$]),Ce=m__namespace.useMemo(function(){return !ae||!V||V.isInvalidate()?!1:ae.lessEquals(V)},[ae,V]),_e=m__namespace.useMemo(function(){return !he||!V||V.isInvalidate()?!1:V.lessEquals(he)},[he,V]),He=pse(T.current,B),We=Z(He,2),Me=We[0],Ye=We[1],Be=function(Re){return ae&&!Re.lessEquals(ae)?ae:he&&!he.lessEquals(Re)?he:null},Ve=function(Re){return !Be(Re)},Pe=function(Re,ke){var pe=Re,De=Ve(pe)||pe.isEmpty();if(!pe.isEmpty()&&!ke&&(pe=Be(pe)||pe,De=!0),!g&&!h&&De){var $e=pe.toString(),fe=se($e,ke);return fe>=0&&(pe=Ar(Xc($e,".",fe)),Ve(pe)||(pe=Ar(Xc($e,".",fe,!0)))),pe.equals(V)||(q(pe),P==null||P(pe.isEmpty()?null:uC(x,pe)),f===void 0&&re(pe,ke)),pe}return V},xe=wse(),qe=function Oe(Re){if(Me(),Q.current=Re,ge(Re),!K.current){var ke=le(Re),pe=Ar(ke);pe.isNaN()||Pe(pe,!0);}R==null||R(Re),xe(function(){var De=Re;E||(De=Re.replace(/。/g,".")),De!==Re&&Oe(De);});},rt=function(){K.current=!0;},yt=function(){K.current=!1,qe(T.current.value);},Qe=function(Re){qe(Re.target.value);},Je=function(Re){var ke;if(!(Re&&Ce||!Re&&_e)){G.current=!1;var pe=Ar(X.current?cC(u):u);Re||(pe=pe.negate());var De=(V||Ar(0)).add(pe.toString()),$e=Pe(De,!1);k==null||k(uC(x,$e),{offset:X.current?cC(u):u,type:Re?"up":"down"}),(ke=T.current)===null||ke===void 0||ke.focus();}},pt=function(Re){var ke=Ar(le(ce)),pe=ke;ke.isNaN()?pe=Pe(V,Re):pe=Pe(ke,Re),f!==void 0?re(V,!1):pe.isNaN()||re(pe,!1);},ht=function(){G.current=!0;},lt=function(Re){var ke=Re.key,pe=Re.shiftKey;G.current=!0,X.current=pe,ke==="Enter"&&(K.current||(G.current=!1),pt(!1),M==null||M(Re)),b!==!1&&!K.current&&["Up","ArrowUp","Down","ArrowDown"].includes(ke)&&(Je(ke==="Up"||ke==="ArrowUp"),Re.preventDefault());},ft=function(){G.current=!1,X.current=!1;},xt=function(){L&&pt(!1),H(!1),G.current=!1;};return hi(function(){V.isInvalidate()||re(V,!1);},[$,S]),hi(function(){var Oe=Ar(f);J(Oe);var Re=Ar(le(ce));(!Oe.equals(Re)||!G.current||S)&&re(Oe,G.current);},[f]),hi(function(){S&&Ye();},[ce]),m__namespace.createElement("div",{className:W(o,w==null?void 0:w.input,a,(n={},z(n,"".concat(o,"-focused"),B),z(n,"".concat(o,"-disabled"),h),z(n,"".concat(o,"-readonly"),g),z(n,"".concat(o,"-not-a-number"),V.isNaN()),z(n,"".concat(o,"-out-of-range"),!V.isInvalidate()&&!Ve(V)),n)),style:i,onFocus:function(){H(!0);},onBlur:xt,onKeyDown:lt,onKeyUp:ft,onCompositionStart:rt,onCompositionEnd:yt,onBeforeInput:ht},C&&m__namespace.createElement(Sse,{prefixCls:o,upNode:v,downNode:p,upDisabled:Ce,downDisabled:_e,onStep:Je}),m__namespace.createElement("div",{className:"".concat(O,"-wrap")},m__namespace.createElement("input",Ie({autoComplete:"off",role:"spinbutton","aria-valuemin":s,"aria-valuemax":l,"aria-valuenow":V.isInvalidate()?null:V.toString(),step:u},_,{ref:Jn(T,t),className:O,value:ce,onChange:Qe,disabled:h,readOnly:g}))))}),iP=m__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,f=e.classNames,h=et(e,xse),g=m__namespace.useRef(null),v=function(b){g.current&&sI(g.current,b);};return m__namespace.createElement(qp,{inputElement:m__namespace.createElement(Ese,Ie({prefixCls:o,disabled:n,classNames:f,ref:Jn(g,t)},h)),className:d,triggerFocus:v,prefixCls:o,value:a,disabled:n,style:r,prefix:i,suffix:s,addonAfter:c,addonBefore:l,classes:u,classNames:f,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});iP.displayName="InputNumber";const fC=(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}}}},Ise=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:f,handleHoverColor:h,paddingInline:g,paddingBlock:v,handleBg:p,handleActiveBg:b,colorTextDisabled:y,borderRadiusSM:C,borderRadiusLG:w,controlWidth:x,handleVisible:E,handleBorderColor:S}=e;return [{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},jt(e)),Zl(e)),Cf(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:w,[`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({},jt(e)),iI(e)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:w,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:C}},[`${t}-wrapper-disabled > ${t}-group-addon`]:Object.assign({},Wp(e))}}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},jt(e)),{width:"100%",padding:`${v}px ${g}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:a,outline:0,transition:`all ${f} linear`,appearance:"textfield",fontSize:"inherit"}),rI(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:E===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${f} linear ${f}`,[`${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 ${f} linear`,"&:active":{background:b},"&:hover":{height:"60%",[`
              ${t}-handler-up-inner,
              ${t}-handler-down-inner
            `]:{color:h}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},Ta()),{color:d,transition:`all ${f} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:a},[`${t}-handler-down`]:{borderBlockStart:`${n}px ${r} ${S}`,borderEndEndRadius:a}},fC(e,"lg")),fC(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}}}]},Pse=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({},Zl(e)),Cf(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}}})}},Ose=Kt("InputNumber",e=>{const t=Ct(e,Kp(e));return [Ise(t),Pse(t),pf(t)]},e=>Object.assign(Object.assign({},Up(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 Mse=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 sP=m__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=m__namespace.useContext(tt),o=m__namespace.useRef(null);m__namespace.useImperativeHandle(t,()=>o.current);const{className:a,rootClassName:i,size:s,disabled:l,prefixCls:c,addonBefore:u,addonAfter:d,prefix:f,bordered:h=!0,readOnly:g,status:v,controls:p}=e,b=Mse(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),y=n("input-number",c),[C,w]=Ose(y),{compactSize:x,compactItemClassnames:E}=es(y,r);let S=m__namespace.createElement(hse,{className:`${y}-handler-up-inner`}),$=m__namespace.createElement(Fp,{className:`${y}-handler-down-inner`});const I=typeof p=="boolean"?p:void 0;typeof p=="object"&&(S=typeof p.upIcon>"u"?S:m__namespace.createElement("span",{className:`${y}-handler-up-inner`},p.upIcon),$=typeof p.downIcon>"u"?$:m__namespace.createElement("span",{className:`${y}-handler-down-inner`},p.downIcon));const{hasFeedback:P,status:R,isFormItemInput:M,feedbackIcon:k}=m__namespace.useContext(Mr),A=ql(R,v),L=or(H=>{var G;return (G=s??x)!==null&&G!==void 0?G:H}),_=m__namespace.useContext(Kr),O=l??_,T=W({[`${y}-lg`]:L==="large",[`${y}-sm`]:L==="small",[`${y}-rtl`]:r==="rtl",[`${y}-borderless`]:!h,[`${y}-in-form-item`]:M},Br(y,A),w),D=`${y}-group`,j=P&&m__namespace.createElement(m__namespace.Fragment,null,k),B=m__namespace.createElement(iP,Object.assign({ref:o,disabled:O,className:W(a,i,E),upHandler:S,downHandler:$,prefixCls:y,readOnly:g,controls:I,prefix:f,suffix:j,addonAfter:d&&m__namespace.createElement(Mi,null,m__namespace.createElement(al,{override:!0,status:!0},d)),addonBefore:u&&m__namespace.createElement(Mi,null,m__namespace.createElement(al,{override:!0,status:!0},u)),classNames:{input:T},classes:{affixWrapper:W(Br(`${y}-affix-wrapper`,A,P),{[`${y}-affix-wrapper-sm`]:L==="small",[`${y}-affix-wrapper-lg`]:L==="large",[`${y}-affix-wrapper-rtl`]:r==="rtl",[`${y}-affix-wrapper-borderless`]:!h},w),wrapper:W({[`${D}-rtl`]:r==="rtl",[`${y}-wrapper-disabled`]:O},w),group:W({[`${y}-group-wrapper-sm`]:L==="small",[`${y}-group-wrapper-lg`]:L==="large",[`${y}-group-wrapper-rtl`]:r==="rtl"},Br(`${y}-group-wrapper`,A,P),w)}},b));return C(B)}),lP=sP,Rse=e=>m__namespace.createElement(Fv,{theme:{components:{InputNumber:{handleVisible:!0}}}},m__namespace.createElement(sP,Object.assign({},e)));lP._InternalPanelDoNotUseOrYouWillBeFired=Rse;const kg=lP;var Tse={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 _se=Tse;var kse=function(t,n){return m__namespace.createElement(_n,Ie({},t,{ref:n,icon:_se}))};const Nse=m__namespace.forwardRef(kse),Ef=m.createContext(null);var cP=m__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 m__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:W(n,i&&"".concat(n,"-active"),r),ref:t},l)}),Ase=["key","forceRender","style","className","destroyInactiveTabPane"];function Lse(e){var t=e.id,n=e.activeKey,r=e.animated,o=e.tabPosition,a=e.destroyInactiveTabPane,i=m__namespace.useContext(Ef),s=i.prefixCls,l=i.tabs,c=r.tabPane,u="".concat(s,"-tabpane");return m__namespace.createElement("div",{className:W("".concat(s,"-content-holder"))},m__namespace.createElement("div",{className:W("".concat(s,"-content"),"".concat(s,"-content-").concat(o),z({},"".concat(s,"-content-animated"),c))},l.map(function(d){var f=d.key,h=d.forceRender,g=d.style,v=d.className,p=d.destroyInactiveTabPane,b=et(d,Ase),y=f===n;return m__namespace.createElement(Io,Ie({key:f,visible:y,forceRender:h,removeOnLeave:!!(a||p),leavedClassName:"".concat(u,"-hidden")},r.tabPaneMotion),function(C,w){var x=C.style,E=C.className;return m__namespace.createElement(cP,Ie({},b,{prefixCls:u,id:t,tabKey:f,animated:c,active:y,style:U(U({},g),x),className:W(v,E),ref:w}))})})))}var Fse=function(t){var n=t.activeTabOffset,r=t.horizontal,o=t.rtl,a=t.indicatorSize,i=m.useState(),s=Z(i,2),l=s[0],c=s[1],u=m.useRef(),d=function(g){return typeof a=="function"?a(g):typeof a=="number"?a:g};function f(){Mt.cancel(u.current);}return m.useEffect(function(){var h={};return n&&(r?(o?(h.right=n.right+n.width/2,h.transform="translateX(50%)"):(h.left=n.left+n.width/2,h.transform="translateX(-50%)"),h.width=d(n.width)):(h.top=n.top+n.height/2,h.transform="translateY(-50%)",h.height=d(n.height))),f(),u.current=Mt(function(){c(h);}),f},[n,r,o,a]),{style:l}},mC={width:0,height:0,left:0,top:0};function Dse(e,t,n){return m.useMemo(function(){for(var r,o=new Map,a=t.get((r=e[0])===null||r===void 0?void 0:r.key)||mC,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)||mC;}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 hC(e,t){var n=m__namespace.useRef(e),r=m__namespace.useState({}),o=Z(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 jse=.1,gC=.01,qc=20,vC=Math.pow(.995,qc);function zse(e,t){var n=m.useState(),r=Z(n,2),o=r[0],a=r[1],i=m.useState(0),s=Z(i,2),l=s[0],c=s[1],u=m.useState(0),d=Z(u,2),f=d[0],h=d[1],g=m.useState(),v=Z(g,2),p=v[0],b=v[1],y=m.useRef();function C(I){var P=I.touches[0],R=P.screenX,M=P.screenY;a({x:R,y:M}),window.clearInterval(y.current);}function w(I){if(o){I.preventDefault();var P=I.touches[0],R=P.screenX,M=P.screenY;a({x:R,y:M});var k=R-o.x,A=M-o.y;t(k,A);var L=Date.now();c(L),h(L-l),b({x:k,y:A});}}function x(){if(o&&(a(null),b(null),p)){var I=p.x/f,P=p.y/f,R=Math.abs(I),M=Math.abs(P);if(Math.max(R,M)<jse)return;var k=I,A=P;y.current=window.setInterval(function(){if(Math.abs(k)<gC&&Math.abs(A)<gC){window.clearInterval(y.current);return}k*=vC,A*=vC,t(k*qc,A*qc);},qc);}}var E=m.useRef();function S(I){var P=I.deltaX,R=I.deltaY,M=0,k=Math.abs(P),A=Math.abs(R);k===A?M=E.current==="x"?P:R:k>A?(M=P,E.current="x"):(M=R,E.current="y"),t(-M,-M)&&I.preventDefault();}var $=m.useRef(null);$.current={onTouchStart:C,onTouchMove:w,onTouchEnd:x,onWheel:S},m__namespace.useEffect(function(){function I(k){$.current.onTouchStart(k);}function P(k){$.current.onTouchMove(k);}function R(k){$.current.onTouchEnd(k);}function M(k){$.current.onWheel(k);}return document.addEventListener("touchmove",P,{passive:!1}),document.addEventListener("touchend",R,{passive:!1}),e.current.addEventListener("touchstart",I,{passive:!1}),e.current.addEventListener("wheel",M),function(){document.removeEventListener("touchmove",P),document.removeEventListener("touchend",R);}},[]);}function uP(e){var t=m.useState(0),n=Z(t,2),r=n[0],o=n[1],a=m.useRef(0),i=m.useRef();return i.current=e,hi(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 Bse(e){var t=m.useRef([]),n=m.useState({}),r=Z(n,2),o=r[1],a=m.useRef(typeof e=="function"?e():e),i=uP(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 pC={width:0,height:0,left:0,top:0,right:0};function Hse(e,t,n,r,o,a,i){var s=i.tabs,l=i.tabPosition,c=i.rtl,u,d,f;return ["top","bottom"].includes(l)?(u="width",d=c?"right":"left",f=Math.abs(n)):(u="height",d="top",f=-n),m.useMemo(function(){if(!s.length)return [0,0];for(var h=s.length,g=h,v=0;v<h;v+=1){var p=e.get(s[v].key)||pC;if(p[d]+p[u]>f+t){g=v-1;break}}for(var b=0,y=h-1;y>=0;y-=1){var C=e.get(s[y].key)||pC;if(C[d]<f){b=y+1;break}}return b>=g?[0,0]:[b,g]},[e,t,r,o,a,f,l,s.map(function(h){return h.key}).join("_"),c])}function bC(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n;})):t=e,JSON.stringify(t)}var Vse="TABS_DQ";function dP(e){return String(e).replace(/"/g,Vse)}function fP(e,t,n,r){return !(!n||r||e===!1||e===void 0&&(t===!1||t===null))}function Wse(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,a=e.style;return !r||r.showAdd===!1?null:m__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 mP=m__namespace.forwardRef(Wse);var yC=m__namespace.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var a,i={};return it(o)==="object"&&!m__namespace.isValidElement(o)?i=o:i.right=o,n==="right"&&(a=i.right),n==="left"&&(a=i.left),a?m__namespace.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},a):null});function Gse(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,f=e.editable,h=e.tabBarGutter,g=e.rtl,v=e.removeAriaLabel,p=e.onTabClick,b=e.getPopupContainer,y=e.popupClassName,C=m.useState(!1),w=Z(C,2),x=w[0],E=w[1],S=m.useState(null),$=Z(S,2),I=$[0],P=$[1],R="".concat(r,"-more-popup"),M="".concat(n,"-dropdown"),k=I!==null?"".concat(R,"-").concat(I):null,A=a==null?void 0:a.dropdownAriaLabel;function L(H,G){H.preventDefault(),H.stopPropagation(),f.onEdit("remove",{key:G,event:H});}var _=m__namespace.createElement(as,{onClick:function(G){var K=G.key,X=G.domEvent;p(K,X),E(!1);},prefixCls:"".concat(M,"-menu"),id:R,tabIndex:-1,role:"listbox","aria-activedescendant":k,selectedKeys:[I],"aria-label":A!==void 0?A:"expanded dropdown"},o.map(function(H){var G=H.closable,K=H.disabled,X=H.closeIcon,Y=H.key,ee=H.label,V=fP(G,X,f,K);return m__namespace.createElement(Wl,{key:Y,id:"".concat(R,"-").concat(Y),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(Y),disabled:K},m__namespace.createElement("span",null,ee),V&&m__namespace.createElement("button",{type:"button","aria-label":v||"remove",tabIndex:0,className:"".concat(M,"-menu-item-remove"),onClick:function(q){q.stopPropagation(),L(q,Y);}},X||f.removeIcon||"×"))}));function O(H){for(var G=o.filter(function(V){return !V.disabled}),K=G.findIndex(function(V){return V.key===I})||0,X=G.length,Y=0;Y<X;Y+=1){K=(K+H+X)%X;var ee=G[K];if(!ee.disabled){P(ee.key);return}}}function T(H){var G=H.which;if(!x){[me.DOWN,me.SPACE,me.ENTER].includes(G)&&(E(!0),H.preventDefault());return}switch(G){case me.UP:O(-1),H.preventDefault();break;case me.DOWN:O(1),H.preventDefault();break;case me.ESC:E(!1);break;case me.SPACE:case me.ENTER:I!==null&&p(I,H);break}}m.useEffect(function(){var H=document.getElementById(k);H&&H.scrollIntoView&&H.scrollIntoView(!1);},[I]),m.useEffect(function(){x||P(null);},[x]);var D=z({},g?"marginRight":"marginLeft",h);o.length||(D.visibility="hidden",D.order=1);var j=W(z({},"".concat(M,"-rtl"),g)),B=i?null:m__namespace.createElement(Y2,{prefixCls:M,overlay:_,trigger:["hover"],visible:o.length?x:!1,transitionName:c,onVisibleChange:E,overlayClassName:W(j,y),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:b},m__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:T},l));return m__namespace.createElement("div",{className:W("".concat(n,"-nav-operations"),d),style:u,ref:t},B,m__namespace.createElement(mP,{prefixCls:n,locale:a,editable:f}))}const Kse=m__namespace.memo(m__namespace.forwardRef(Gse),function(e,t){return t.tabMoving});function Use(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,f=e.removeAriaLabel,h=e.editable,g=e.onClick,v=e.onFocus,p=e.style,b="".concat(n,"-tab"),y=fP(u,c,h,l);function C(E){l||g(E);}function w(E){E.preventDefault(),E.stopPropagation(),h.onEdit("remove",{key:i,event:E});}var x=m__namespace.createElement("div",{key:i,"data-node-key":dP(i),className:W(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},m__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){[me.SPACE,me.ENTER].includes(S.which)&&(S.preventDefault(),C(S));},onFocus:v},s),y&&m__namespace.createElement("button",{type:"button","aria-label":f||"remove",tabIndex:0,className:"".concat(b,"-remove"),onClick:function(S){S.stopPropagation(),w(S);}},c||h.removeIcon||"×"));return d?d(x):x}var Xse=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]},ei=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]},Tc=function(t,n){return t[n?0:1]};function qse(e,t){var n,r=m__namespace.useContext(Ef),o=r.prefixCls,a=r.tabs,i=e.className,s=e.style,l=e.id,c=e.animated,u=e.activeKey,d=e.rtl,f=e.extra,h=e.editable,g=e.locale,v=e.tabPosition,p=e.tabBarGutter,b=e.children,y=e.onTabClick,C=e.onTabScroll,w=e.indicatorSize,x=m.useRef(),E=m.useRef(),S=m.useRef(),$=m.useRef(),I=m.useRef(),P=m.useRef(),R=m.useRef(),M=v==="top"||v==="bottom",k=hC(0,function(Ae,Ee){M&&C&&C({direction:Ae>Ee?"left":"right"});}),A=Z(k,2),L=A[0],_=A[1],O=hC(0,function(Ae,Ee){!M&&C&&C({direction:Ae>Ee?"top":"bottom"});}),T=Z(O,2),D=T[0],j=T[1],B=m.useState([0,0]),H=Z(B,2),G=H[0],K=H[1],X=m.useState([0,0]),Y=Z(X,2),ee=Y[0],V=Y[1],J=m.useState([0,0]),q=Z(J,2),se=q[0],le=q[1],Q=m.useState([0,0]),ne=Z(Q,2),de=ne[0],te=ne[1],ce=Bse(new Map),ge=Z(ce,2),re=ge[0],ae=ge[1],he=Dse(a,re,ee[0]),Ce=Tc(G,M),_e=Tc(ee,M),He=Tc(se,M),We=Tc(de,M),Me=Ce<_e+He,Ye=Me?Ce-We:Ce-He,Be="".concat(o,"-nav-operations-hidden"),Ve=0,Pe=0;M&&d?(Ve=0,Pe=Math.max(0,_e-Ye)):(Ve=Math.min(0,Ye-_e),Pe=0);function xe(Ae){return Ae<Ve?Ve:Ae>Pe?Pe:Ae}var qe=m.useRef(),rt=m.useState(),yt=Z(rt,2),Qe=yt[0],Je=yt[1];function pt(){Je(Date.now());}function ht(){window.clearTimeout(qe.current);}zse($,function(Ae,Ee){function Se(we,je){we(function(ut){var _t=xe(ut+je);return _t});}return Me?(M?Se(_,Ae):Se(j,Ee),ht(),pt(),!0):!1}),m.useEffect(function(){return ht(),Qe&&(qe.current=window.setTimeout(function(){Je(0);},100)),ht},[Qe]);var lt=Hse(he,Ye,M?L:D,_e,He,We,U(U({},e),{},{tabs:a})),ft=Z(lt,2),xt=ft[0],Oe=ft[1],Re=Ln(function(){var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:u,Ee=he.get(Ae)||{width:0,height:0,left:0,right:0,top:0};if(M){var Se=L;d?Ee.right<L?Se=Ee.right:Ee.right+Ee.width>L+Ye&&(Se=Ee.right+Ee.width-Ye):Ee.left<-L?Se=-Ee.left:Ee.left+Ee.width>-L+Ye&&(Se=-(Ee.left+Ee.width-Ye)),j(0),_(xe(Se));}else {var we=D;Ee.top<-D?we=-Ee.top:Ee.top+Ee.height>-D+Ye&&(we=-(Ee.top+Ee.height-Ye)),_(0),j(xe(we));}}),ke={};v==="top"||v==="bottom"?ke[d?"marginRight":"marginLeft"]=p:ke.marginTop=p;var pe=a.map(function(Ae,Ee){var Se=Ae.key;return m__namespace.createElement(Use,{id:l,prefixCls:o,key:Se,tab:Ae,style:Ee===0?void 0:ke,closable:Ae.closable,editable:h,active:Se===u,renderWrapper:b,removeAriaLabel:g==null?void 0:g.removeAriaLabel,onClick:function(je){y(Se,je);},onFocus:function(){Re(Se),pt(),$.current&&(d||($.current.scrollLeft=0),$.current.scrollTop=0);}})}),De=function(){return ae(function(){var Ee,Se=new Map,we=(Ee=I.current)===null||Ee===void 0?void 0:Ee.getBoundingClientRect();return a.forEach(function(je){var ut,_t=je.key,Rt=(ut=I.current)===null||ut===void 0?void 0:ut.querySelector('[data-node-key="'.concat(dP(_t),'"]'));if(Rt){var hn=Xse(Rt,we),un=Z(hn,4),gn=un[0],Wn=un[1],wn=un[2],Ur=un[3];Se.set(_t,{width:gn,height:Wn,left:wn,top:Ur});}}),Se})};m.useEffect(function(){De();},[a.map(function(Ae){return Ae.key}).join("_")]);var $e=uP(function(){var Ae=ei(x),Ee=ei(E),Se=ei(S);K([Ae[0]-Ee[0]-Se[0],Ae[1]-Ee[1]-Se[1]]);var we=ei(R);le(we);var je=ei(P);te(je);var ut=ei(I);V([ut[0]-we[0],ut[1]-we[1]]),De();}),fe=a.slice(0,xt),oe=a.slice(Oe+1),ye=[].concat(Te(fe),Te(oe)),ue=he.get(u),ve=Fse({activeTabOffset:ue,horizontal:M,rtl:d,indicatorSize:w}),Ne=ve.style;m.useEffect(function(){Re();},[u,Ve,Pe,bC(ue),bC(he),M]),m.useEffect(function(){$e();},[d]);var Ue=!!ye.length,bt="".concat(o,"-nav-wrap"),gt,Nt,St,ct;return M?d?(Nt=L>0,gt=L!==Pe):(gt=L<0,Nt=L!==Ve):(St=D<0,ct=D!==Ve),m__namespace.createElement(Or,{onResize:$e},m__namespace.createElement("div",{ref:Ra(t,x),role:"tablist",className:W("".concat(o,"-nav"),i),style:s,onKeyDown:function(){pt();}},m__namespace.createElement(yC,{ref:E,position:"left",extra:f,prefixCls:o}),m__namespace.createElement(Or,{onResize:$e},m__namespace.createElement("div",{className:W(bt,(n={},z(n,"".concat(bt,"-ping-left"),gt),z(n,"".concat(bt,"-ping-right"),Nt),z(n,"".concat(bt,"-ping-top"),St),z(n,"".concat(bt,"-ping-bottom"),ct),n)),ref:$},m__namespace.createElement(Or,{onResize:$e},m__namespace.createElement("div",{ref:I,className:"".concat(o,"-nav-list"),style:{transform:"translate(".concat(L,"px, ").concat(D,"px)"),transition:Qe?"none":void 0}},pe,m__namespace.createElement(mP,{ref:R,prefixCls:o,locale:g,editable:h,style:U(U({},pe.length===0?void 0:ke),{},{visibility:Ue?"hidden":null})}),m__namespace.createElement("div",{className:W("".concat(o,"-ink-bar"),z({},"".concat(o,"-ink-bar-animated"),c.inkBar)),style:Ne}))))),m__namespace.createElement(Kse,Ie({},e,{removeAriaLabel:g==null?void 0:g.removeAriaLabel,ref:P,prefixCls:o,tabs:ye,className:!Ue&&Be,tabMoving:!!Qe})),m__namespace.createElement(yC,{ref:S,position:"right",extra:f,prefixCls:o})))}const CC=m__namespace.forwardRef(qse);var Yse=["renderTabBar"],Zse=["label","key"];function Qse(e){var t=e.renderTabBar,n=et(e,Yse),r=m__namespace.useContext(Ef),o=r.tabs;if(t){var a=U(U({},n),{},{panes:o.map(function(i){var s=i.label,l=i.key,c=et(i,Zse);return m__namespace.createElement(cP,Ie({tab:s,key:l,tabKey:l},c))})});return t(a,CC)}return m__namespace.createElement(CC,n)}function Jse(){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},it(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var ele=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],SC=0;function tle(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,f=e.animated,h=e.tabPosition,g=h===void 0?"top":h,v=e.tabBarGutter,p=e.tabBarStyle,b=e.tabBarExtraContent,y=e.locale,C=e.moreIcon,w=e.moreTransitionName,x=e.destroyInactiveTabPane,E=e.renderTabBar,S=e.onChange,$=e.onTabClick,I=e.onTabScroll,P=e.getPopupContainer,R=e.popupClassName,M=e.indicatorSize,k=et(e,ele),A=m__namespace.useMemo(function(){return (s||[]).filter(function(te){return te&&it(te)==="object"&&"key"in te})},[s]),L=l==="rtl",_=Jse(f),O=m.useState(!1),T=Z(O,2),D=T[0],j=T[1];m.useEffect(function(){j(Td());},[]);var B=qt(function(){var te;return (te=A[0])===null||te===void 0?void 0:te.key},{value:c,defaultValue:u}),H=Z(B,2),G=H[0],K=H[1],X=m.useState(function(){return A.findIndex(function(te){return te.key===G})}),Y=Z(X,2),ee=Y[0],V=Y[1];m.useEffect(function(){var te=A.findIndex(function(ge){return ge.key===G});if(te===-1){var ce;te=Math.max(0,Math.min(ee,A.length-1)),K((ce=A[te])===null||ce===void 0?void 0:ce.key);}V(te);},[A.map(function(te){return te.key}).join("_"),G,ee]);var J=qt(null,{value:r}),q=Z(J,2),se=q[0],le=q[1];m.useEffect(function(){r||(le("rc-tabs-".concat(SC)),SC+=1);},[]);function Q(te,ce){$==null||$(te,ce);var ge=te!==G;K(te),ge&&(S==null||S(te));}var ne={id:se,activeKey:G,animated:_,tabPosition:g,rtl:L,mobile:D},de=U(U({},ne),{},{editable:d,locale:y,moreIcon:C,moreTransitionName:w,tabBarGutter:v,onTabClick:Q,onTabScroll:I,extra:b,style:p,panes:null,getPopupContainer:P,popupClassName:R,indicatorSize:M});return m__namespace.createElement(Ef.Provider,{value:{tabs:A,prefixCls:a}},m__namespace.createElement("div",Ie({ref:t,id:r,className:W(a,"".concat(a,"-").concat(g),(n={},z(n,"".concat(a,"-mobile"),D),z(n,"".concat(a,"-editable"),d),z(n,"".concat(a,"-rtl"),L),n),i)},k),m__namespace.createElement(Qse,Ie({},de,{renderTabBar:E})),m__namespace.createElement(Lse,Ie({destroyInactiveTabPane:x},ne,{animated:_}))))}var nle=m__namespace.forwardRef(tle);const rle={motionAppear:!1,motionEnter:!0,motionLeave:!0};function ole(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({},rle),{motionName:Nd(e,"switch")})),n}var ale=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 ile(e){return e.filter(t=>t)}function sle(e,t){if(e)return e;const n=vr(t).map(r=>{if(m__namespace.isValidElement(r)){const{key:o,props:a}=r,i=a||{},{tab:s}=i,l=ale(i,["tab"]);return Object.assign(Object.assign({key:String(o)},l),{label:s})}return null});return ile(n)}const lle=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}`}}}}},[Vo(e,"slide-up"),Vo(e,"slide-down")]]},cle=lle,ule=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}}}}}}},dle=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return {[`${t}-dropdown`]:Object.assign(Object.assign({},jt(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({},Sa),{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"}}})}})}},fle=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}}}}}},mle=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}}}}}},hle=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}},$a(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}}}},gle=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"}}}}},vle=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({},jt(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}},$a(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),hle(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"}}}}}},ple=Kt("Tabs",e=>{const t=Ct(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 [mle(t),gle(t),fle(t),dle(t),ule(t),vle(t),cle(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}}),ble=()=>null,yle=ble;var Cle=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 hP=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:f,style:h,indicatorSize:g}=e,v=Cle(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:p,moreIcon:b=m__namespace.createElement(Pp,null)}=v,{direction:y,tabs:C,getPrefixCls:w,getPopupContainer:x}=m__namespace.useContext(tt),E=w("tabs",p),[S,$]=ple(E);let I;t==="editable-card"&&(I={onEdit:(L,_)=>{let{key:O,event:T}=_;a==null||a(L==="add"?T:O,L);},removeIcon:m__namespace.createElement(bf,null),addIcon:l||m__namespace.createElement(Nse,null),showAdd:i!==!0});const P=w(),R=sle(d,u),M=ole(E,f),k=or(o),A=Object.assign(Object.assign({},C==null?void 0:C.style),h);return S(m__namespace.createElement(nle,Object.assign({direction:y,getPopupContainer:x,moreTransitionName:`${P}-slide-up`},v,{items:R,className:W({[`${E}-${k}`]:k,[`${E}-card`]:["card","editable-card"].includes(t),[`${E}-editable-card`]:t==="editable-card",[`${E}-centered`]:s},C==null?void 0:C.className,n,r,$),popupClassName:W(c,$),style:A,editable:I,moreIcon:b,prefixCls:E,animated:M,indicatorSize:g??(C==null?void 0:C.indicatorSize)})))};hP.TabPane=yle;const Sle=hP;class wle extends Error{constructor(t){super(t),this.name="TimeoutError";}}class $le extends Error{constructor(t){super(),this.name="AbortError",this.message=t;}}const wC=e=>globalThis.DOMException===void 0?new $le(e):new DOMException(e),$C=e=>{const t=e.reason===void 0?wC("This operation was aborted."):e.reason;return t instanceof Error?t:wC(t)};function xle(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:f}=t;f.aborted&&u($C(f)),f.addEventListener("abort",()=>{u($C(f));});}if(n===Number.POSITIVE_INFINITY){e.then(c,u);return}const d=new wle;i=a.setTimeout.call(void 0,()=>{if(r){try{c(r());}catch(f){u(f);}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(f){u(f);}})();}).finally(()=>{l.clear();});return l.clear=()=>{a.clearTimeout.call(void 0,i),i=void 0;},l}const Ele=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 Ile(e,t,n){let r;const o=new Promise((a,i)=>{var h;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");(h=n.signal)==null||h.throwIfAborted();const s=[t].flat(),l=[],{addListener:c,removeListener:u}=Ele(e),d=(...g)=>{const v=n.multiArgs?g:g[0];n.filter&&!n.filter(v)||(l.push(v),n.count===l.length&&(r(),a(l)));},f=g=>{r(),i(g);};r=()=>{for(const g of s)u(g,d);for(const g of n.rejectionEvents)u(g,f);};for(const g of s)c(g,d);for(const g of n.rejectionEvents)c(g,f);n.signal&&n.signal.addEventListener("abort",()=>{f(n.signal.reason);},{once:!0}),n.resolveImmediately&&a(l);});if(o.cancel=r,typeof n.timeout=="number"){const a=xle(o,{milliseconds:n.timeout});return a.cancel=r,a}return o}function Ple(e,t,n){typeof n=="function"&&(n={filter:n}),n={...n,count:1,resolveImmediately:!1};const r=Ile(e,t,n),o=r.then(a=>a[0]);return o.cancel=r.cancel,o}var Ole=Object.defineProperty,Bu=Object.getOwnPropertySymbols,gP=Object.prototype.hasOwnProperty,vP=Object.prototype.propertyIsEnumerable,xC=(e,t,n)=>t in e?Ole(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Mle=(e,t)=>{for(var n in t||(t={}))gP.call(t,n)&&xC(e,n,t[n]);if(Bu)for(var n of Bu(t))vP.call(t,n)&&xC(e,n,t[n]);return e},Rle=(e,t)=>{var n={};for(var r in e)gP.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Bu)for(var r of Bu(e))t.indexOf(r)<0&&vP.call(e,r)&&(n[r]=e[r]);return n};/**
   * @license QR Code generator library (TypeScript)
   * Copyright (c) Project Nayuki.
   * SPDX-License-Identifier: MIT
   */var Ea;(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 f=[];for(let g=0;g<this.size;g++)f.push(!1);for(let g=0;g<this.size;g++)this.modules.push(f.slice()),this.isFunction.push(f.slice());this.drawFunctionPatterns();const h=this.addEccAndInterleave(u);if(this.drawCodewords(h),d==-1){let g=1e9;for(let v=0;v<8;v++){this.applyMask(v),this.drawFormatBits(v);const p=this.getPenaltyScore();p<g&&(d=v,g=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,f=-1,h=!0){if(!(t.MIN_VERSION<=u&&u<=d&&d<=t.MAX_VERSION)||f<-1||f>7)throw new RangeError("Invalid value");let g,v;for(g=u;;g++){const C=t.getNumDataCodewords(g,c)*8,w=s.getTotalBits(l,g);if(w<=C){v=w;break}if(g>=d)throw new RangeError("Data too long")}for(const C of [t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])h&&v<=t.getNumDataCodewords(g,C)*8&&(c=C);let p=[];for(const C of l){r(C.mode.modeBits,4,p),r(C.numChars,C.mode.numCharCountBits(g),p);for(const w of C.getData())p.push(w);}a(p.length==v);const b=t.getNumDataCodewords(g,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,w)=>y[w>>>3]|=C<<7-(w&7)),new t(g,c,y,f)}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 f=0;f<10;f++)u=u<<1^(u>>>9)*1335;const d=(c<<10|u)^21522;a(d>>>15==0);for(let f=0;f<=5;f++)this.setFunctionModule(8,f,o(d,f));this.setFunctionModule(8,7,o(d,6)),this.setFunctionModule(8,8,o(d,7)),this.setFunctionModule(7,8,o(d,8));for(let f=9;f<15;f++)this.setFunctionModule(14-f,8,o(d,f));for(let f=0;f<8;f++)this.setFunctionModule(this.size-1-f,8,o(d,f));for(let f=8;f<15;f++)this.setFunctionModule(8,this.size-15+f,o(d,f));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),f=this.size-11+u%3,h=Math.floor(u/3);this.setFunctionModule(f,h,d),this.setFunctionModule(h,f,d);}}drawFinderPattern(l,c){for(let u=-4;u<=4;u++)for(let d=-4;d<=4;d++){const f=Math.max(Math.abs(d),Math.abs(u)),h=l+d,g=c+u;0<=h&&h<this.size&&0<=g&&g<this.size&&this.setFunctionModule(h,g,f!=2&&f!=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],f=t.ECC_CODEWORDS_PER_BLOCK[u.ordinal][c],h=Math.floor(t.getNumRawDataModules(c)/8),g=d-h%d,v=Math.floor(h/d);let p=[];const b=t.reedSolomonComputeDivisor(f);for(let C=0,w=0;C<d;C++){let x=l.slice(w,w+v-f+(C<g?0:1));w+=x.length;const E=t.reedSolomonComputeRemainder(x,b);C<g&&x.push(0),p.push(x.concat(E));}let y=[];for(let C=0;C<p[0].length;C++)p.forEach((w,x)=>{(C!=v-f||x>=g)&&y.push(w[C]);});return a(y.length==h),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 f=0;f<2;f++){const h=u-f,v=(u+1&2)==0?this.size-1-d:d;!this.isFunction[v][h]&&c<l.length*8&&(this.modules[v][h]=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 f=0;f<this.size;f++){let h=!1,g=0,v=[0,0,0,0,0,0,0];for(let p=0;p<this.size;p++)this.modules[f][p]==h?(g++,g==5?l+=t.PENALTY_N1:g>5&&l++):(this.finderPenaltyAddHistory(g,v),h||(l+=this.finderPenaltyCountPatterns(v)*t.PENALTY_N3),h=this.modules[f][p],g=1);l+=this.finderPenaltyTerminateAndCount(h,g,v)*t.PENALTY_N3;}for(let f=0;f<this.size;f++){let h=!1,g=0,v=[0,0,0,0,0,0,0];for(let p=0;p<this.size;p++)this.modules[p][f]==h?(g++,g==5?l+=t.PENALTY_N1:g>5&&l++):(this.finderPenaltyAddHistory(g,v),h||(l+=this.finderPenaltyCountPatterns(v)*t.PENALTY_N3),h=this.modules[p][f],g=1);l+=this.finderPenaltyTerminateAndCount(h,g,v)*t.PENALTY_N3;}for(let f=0;f<this.size-1;f++)for(let h=0;h<this.size-1;h++){const g=this.modules[f][h];g==this.modules[f][h+1]&&g==this.modules[f+1][h]&&g==this.modules[f+1][h+1]&&(l+=t.PENALTY_N2);}let c=0;for(const f of this.modules)c=f.reduce((h,g)=>h+(g?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 f=0;f<c.length;f++)c[f]=t.reedSolomonMultiply(c[f],u),f+1<c.length&&(c[f]^=c[f+1]);u=t.reedSolomonMultiply(u,2);}return c}static reedSolomonComputeRemainder(l,c){let u=c.map(d=>0);for(const d of l){const f=d^u.shift();u.push(0),c.forEach((h,g)=>u[g]^=t.reedSolomonMultiply(h,f));}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 f=d.mode.numCharCountBits(c);if(d.numChars>=1<<f)return 1/0;u+=4+f+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;})(Ea||(Ea={}));(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={}));})(Ea||(Ea={}));(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={}));})(Ea||(Ea={}));var Os=Ea;/**
   * @license qrcode.react
   * Copyright (c) Paul O'Shannessy
   * SPDX-License-Identifier: ISC
   */var Tle={L:Os.QrCode.Ecc.LOW,M:Os.QrCode.Ecc.MEDIUM,Q:Os.QrCode.Ecc.QUARTILE,H:Os.QrCode.Ecc.HIGH},_le=128,kle="L",Nle="#FFFFFF",Ale="#000000",Lle=!1,pP=4,Fle=.1;function Dle(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 jle(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 zle(e,t,n,r){if(r==null)return null;const o=n?pP:0,a=e.length+o*2,i=Math.floor(t*Fle),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 f=null;if(r.excavate){let h=Math.floor(u),g=Math.floor(d),v=Math.ceil(l+u-h),p=Math.ceil(c+d-g);f={x:h,y:g,w:v,h:p};}return {x:u,y:d,h:c,w:l,excavation:f}}(function(){try{new Path2D().addPath(new Path2D);}catch{return !1}return !0})();function Ble(e){const t=e,{value:n,size:r=_le,level:o=kle,bgColor:a=Nle,fgColor:i=Ale,includeMargin:s=Lle,imageSettings:l}=t,c=Rle(t,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]);let u=Os.QrCode.encodeText(n,Tle[o]).getModules();const d=s?pP:0,f=u.length+d*2,h=zle(u,r,s,l);let g=null;l!=null&&h!=null&&(h.excavation!=null&&(u=jle(u,h.excavation)),g=m.createElement("image",{xlinkHref:l.src,height:h.h,width:h.w,x:h.x+d,y:h.y+d,preserveAspectRatio:"none"}));const v=Dle(u,d);return m.createElement("svg",Mle({height:r,width:r,viewBox:`0 0 ${f} ${f}`},c),m.createElement("path",{fill:a,d:`M0,0 h${f}v${f}H0z`,shapeRendering:"crispEdges"}),m.createElement("path",{fill:i,d:v,shapeRendering:"crispEdges"}),g)}const bP=e=>{const t=nw(e,wi.appkey,wi.appsec);return new URLSearchParams({...e,sign:t})};async function Hle(){const t=(await rn.post("https://passport.bilibili.com/x/passport-tv-login/qrcode/auth_code",bP({appkey:wi.appkey,local_id:"0",ts:"0"}))).data;if(!Gr(t)){Pt((t==null?void 0:t.message)||"获取 auth_code 失败");return}return t.data}async function Vle(e){const n=(await rn.post("https://passport.bilibili.com/x/passport-tv-login/qrcode/poll",bP({appkey:wi.appkey,auth_code:e,local_id:"0",ts:"0"}))).data,r={0:"成功","-3":"API校验密匙错误","-400":"请求错误","-404":"啥都木有",86038:"二维码已失效",86039:"二维码尚未确认",86090:"二维码已扫码未确认"};if(!Gr(n)){const a=n.code.toString(),i=n.message||r[a]||"未知错误";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 Wle(e){const n=(await rn.post("https://passport.bilibili.com/x/passport-tv-login/h5/qrcode/confirm",new URLSearchParams({auth_code:e,scanning_type:"1",csrf:Zi()}))).data;if(!Gr(n)){const r=n.message||"未知错误";return Pt(r)}}const d0={show:!1,qrcode:"",auth_code:"",message:""},dl=gr({...d0}),ti=dl;function Ws(e){Qle(),Object.assign(dl,e);}function Gle(e){Ws({...d0,...e,show:!0});}function yP(){CP.emit("hide"),Ws({...d0});}const CP=Qp();function Kle(){return Ple(CP,"hide")}async function Ule(){dl.auth_code&&await Wle(dl.auth_code);}var Xle={name:"7zumh8",styles:"margin:10px 15px;text-align:right"},qle={name:"dbvn1l",styles:"height:30px;display:flex;align-items:center;justify-content:center;font-size:20px;margin-bottom:5px"},Yle={name:"1azakc",styles:"text-align:center"};function Zle(){const{qrcode:e,show:t,message:n}=yr(dl),r=yP,{runAsync:o,loading:a}=i2(Ule,{manual:!0});return be(tf,{show:t,onHide:r,hideWhenMaskOnClick:!1,hideWhenEsc:!1,styleModal:{width:"600px"},children:[be("div",{className:mr.modalHeader,children:[F("div",{className:mr.modalTitle,children:"使用移动端 Bilibili App 扫码获取 access_key"}),F("div",{className:"space",style:{flex:1}}),F(nf,{onClick:r})]}),be("div",{className:mr.modalBody,children:[be("div",{className:"wrapper",css:Yle,children:[F("div",{css:qle,children:n||""}),e?F(Ble,{value:e,size:200}):F("div",{className:"qrcode-placeholder"})]}),F("div",{css:Xle,children:F(Qd,{title:"可能会导致桌面端掉登录(不可用), 谨慎使用",children:F(Qt,{onClick:o,loading:a,children:"使用桌面端确认"})})})]})]})}const Qle=R$(function(){const t=document.createElement("div");t.classList.add("modal-tv-qrcode-auth",Oa),document.body.appendChild(t),Al(t).render(F(up,{children:F(Zle,{})}));});async function EC(){const e=await Hle();if(e)return Gle({qrcode:e.url,auth_code:e.auth_code}),!0}async function Jle(){if(!await EC())return;let t,n=ti.auth_code;function r(){if(!ti.show||!ti.auth_code||n!==ti.auth_code)return !0}for(;;){if(r())return;const o=zn(1500),a=Kle();if(await Promise.race([o,a]),a.cancel(),r())return;t=await Vle(ti.auth_code);const{success:i,accessKey:s,message:l,action:c}=t;if(Ws({message:l}),i)return await zn(1e3),yP(),s;if(c==="refresh"){await zn(2e3),await EC(),n=ti.auth_code,Ws({message:"已刷新二维码"});continue}if(c!=="wait"){if(r())return;Ws({message:l}),Pt(l);return}}}async function ece(){const e=await Jle();if(e)return Et.accessKey=e,Pt("获取成功"),e}function tce(){Et.accessKey="",Pt("已删除 access_key");}const IC=F(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 SP({style:e,className:t}){const {runAsync:n,loading:r}=i2(ece,{manual:!0}),{accessKey:o}=cn(),a=tce,s=l=>l;return F(Kl,{size:"small",style:e,className:t,children:o?be(It,{children:[s(F(Qt,{onClick:n,disabled:r,children:F("span",{children:"重新获取 access_key"})})),F(Qt,{onClick:a,children:F("span",{children:"删除 access_key"})}),IC]}):be(It,{children:[s(F(Qt,{onClick:n,disabled:r,size:"middle",children:F("span",{children:"获取 access_key"})})),IC]})})}const nce="_config-icon_1xtyf_1",rce="_settings-group_1xtyf_6",oce="_settings-group-title_1xtyf_9",ace="_settings-group-sub-title_1xtyf_14",ice="_settings-group-content_1xtyf_20",sce="_row_1xtyf_26",lce="_check_1xtyf_34",cce="_setting-tabs_1xtyf_39",uce="_tab-pane_1xtyf_42",Ke={configIcon:nce,settingsGroup:rce,settingsGroupTitle:oce,settingsGroupSubTitle:ace,settingsGroupContent:ice,row:sce,check:lce,settingTabs:cce,tabPane:uce},dce=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:a,orientationMargin:i,verticalMarginInline:s}=e;return {[t]:Object.assign(Object.assign({},jt(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}}})}},fce=Kt("Divider",e=>{const t=Ct(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return [dce(t)]},e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}));var mce=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 hce=e=>{const{getPrefixCls:t,direction:n,divider:r}=m__namespace.useContext(tt),{prefixCls:o,type:a="horizontal",orientation:i="center",orientationMargin:s,className:l,rootClassName:c,children:u,dashed:d,plain:f,style:h}=e,g=mce(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),v=t("divider",o),[p,b]=fce(v),y=i.length>0?`-${i}`:i,C=!!u,w=i==="left"&&s!=null,x=i==="right"&&s!=null,E=W(v,r==null?void 0:r.className,b,`${v}-${a}`,{[`${v}-with-text`]:C,[`${v}-with-text${y}`]:C,[`${v}-dashed`]:!!d,[`${v}-plain`]:!!f,[`${v}-rtl`]:n==="rtl",[`${v}-no-default-orientation-margin-left`]:w,[`${v}-no-default-orientation-margin-right`]:x},l,c),S=m__namespace.useMemo(()=>typeof s=="number"?s:/^\d+$/.test(s)?Number(s):s,[s]),$=Object.assign(Object.assign({},w&&{marginLeft:S}),x&&{marginRight:S});return p(m__namespace.createElement("div",Object.assign({className:E,style:Object.assign(Object.assign({},r==null?void 0:r.style),h)},g,{role:"separator"}),u&&a!=="vertical"&&m__namespace.createElement("span",{className:`${v}-inner-text`,style:$},u)))},gce=hce;var vce=["b"],pce=["v"],Bm=function(t){return Math.round(Number(t||0))},bce=function(t){if(t&&it(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,o=et(n,vce);return U(U({},o),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},Hu=function(e){Uo(n,e);var t=Xo(n);function n(r){return En(this,n),t.call(this,bce(r))}return In(n,[{key:"toHsbString",value:function(){var o=this.toHsb(),a=Bm(o.s*100),i=Bm(o.b*100),s=Bm(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();it(this.originalInput)==="object"&&this.originalInput&&"h"in this.originalInput&&(o=this.originalInput);var a=o;a.v;var i=et(a,pce);return U(U({},i),{},{b:o.v})}}]),n}(Jt),yce="rc-color-picker",Bo=function(t){return t instanceof Hu?t:new Hu(t)},Cce=Bo("#1677ff"),wP=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,f=u.height,h=d/2,g=f/2,v=(n.x+h)/l,p=1-(n.y+g)/c,b=a.toHsb(),y=v,C=(n.x+h)/l*360;if(i)switch(i){case"hue":return Bo(U(U({},b),{},{h:C<=0?0:C}));case"alpha":return Bo(U(U({},b),{},{a:y<=0?0:y}))}return Bo({h:b.h,s:v<=0?0:v,b:p>=1?1:p,a:b.a})},$P=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,f=u/2,h=r.toHsb();if(!(c===0&&u===0||c!==u)){if(o)switch(o){case"hue":return {x:h.h/360*i-d,y:-f/3};case"alpha":return {x:h.a/1*i-d,y:-f/3}}return {x:h.s*i-d,y:(1-h.b)*s-f}}},f0=function(t){var n=t.color,r=t.prefixCls,o=t.className,a=t.style,i=t.onClick,s="".concat(r,"-color-block");return m.createElement("div",{className:W(s,o),style:a,onClick:i},m.createElement("div",{className:"".concat(s,"-inner"),style:{background:n}}))};function Sce(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 xP(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=m.useState(t||{x:0,y:0}),d=Z(u,2),f=d[0],h=d[1],g=m.useRef(null),v=m.useRef(null),p=m.useRef({flag:!1});m.useEffect(function(){if(p.current.flag===!1){var x=s==null?void 0:s(r);x&&h(x);}},[l,r]),m.useEffect(function(){return function(){document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",v.current),document.removeEventListener("touchmove",g.current),document.removeEventListener("touchend",v.current),g.current=null,v.current=null;}},[]);var b=function(E){var S=Sce(E),$=S.pageX,I=S.pageY,P=r.current.getBoundingClientRect(),R=P.x,M=P.y,k=P.width,A=P.height,L=n.current.getBoundingClientRect(),_=L.width,O=L.height,T=_/2,D=O/2,j=Math.max(0,Math.min($-R,k))-T,B=Math.max(0,Math.min(I-M,A))-D,H={x:j,y:o==="x"?f.y:B};if(_===0&&O===0||_!==O)return !1;h(H),a==null||a(H);},y=function(E){E.preventDefault(),b(E);},C=function(E){E.preventDefault(),p.current.flag=!1,document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",v.current),document.removeEventListener("touchmove",g.current),document.removeEventListener("touchend",v.current),g.current=null,v.current=null,i==null||i();},w=function(E){document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",v.current),!c&&(b(E),p.current.flag=!0,document.addEventListener("mousemove",y),document.addEventListener("mouseup",C),document.addEventListener("touchmove",y),document.addEventListener("touchend",C),g.current=y,v.current=C);};return [f,w]}var EP=function(t){var n=t.size,r=n===void 0?"default":n,o=t.color,a=t.prefixCls;return m.createElement("div",{className:W("".concat(a,"-handler"),z({},"".concat(a,"-handler-sm"),r==="small")),style:{backgroundColor:o}})},IP=function(t){var n=t.children,r=t.style,o=t.prefixCls;return m.createElement("div",{className:"".concat(o,"-palette"),style:U({position:"relative"},r)},n)},PP=m.forwardRef(function(e,t){var n=e.children,r=e.offset;return m.createElement("div",{ref:t,style:{position:"absolute",left:r.x,top:r.y,zIndex:1}},n)}),wce=function(t){var n=t.color,r=t.onChange,o=t.prefixCls,a=t.onChangeComplete,i=t.disabled,s=m.useRef(),l=m.useRef(),c=m.useRef(n),u=xP({color:n,containerRef:s,targetRef:l,calculate:function(v){return $P(v,l,n)},onDragChange:function(v){var p=wP({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=Z(u,2),f=d[0],h=d[1];return m.createElement("div",{ref:s,className:"".concat(o,"-select"),onMouseDown:h,onTouchStart:h},m.createElement(IP,{prefixCls:o},m.createElement(PP,{offset:f,ref:l},m.createElement(EP,{color:n.toRgbString(),prefixCls:o})),m.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))"}})))},$ce=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=m.useMemo(function(){return n.map(function(c,u){var d=Bo(c);return i==="alpha"&&u===n.length-1&&d.setAlpha(1),d.toRgbString()}).join(",")},[n,i]);return m.createElement("div",{className:"".concat(s,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(a,", ").concat(l,")")}},r)},PC=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,f=m.useRef(),h=m.useRef(),g=m.useRef(i),v=xP({color:i,targetRef:h,containerRef:f,calculate:function(w){return $P(w,h,i,a)},onDragChange:function(w){var x=wP({offset:w,targetRef:h,containerRef:f,color:i,type:a});g.current=x,l(x);},onDragChangeComplete:function(){c==null||c(g.current,a);},direction:"x",disabledDrag:u}),p=Z(v,2),b=p[0],y=p[1];return m.createElement("div",{ref:f,className:W("".concat(d,"-slider"),"".concat(d,"-slider-").concat(a)),onMouseDown:y,onTouchStart:y},m.createElement(IP,{prefixCls:d},m.createElement(PP,{offset:b,ref:h},m.createElement(EP,{size:"small",color:s,prefixCls:d})),m.createElement($ce,{colors:n,direction:r,type:a,prefixCls:d})))};function OC(e){return e!==void 0}var xce=function(t,n){var r=n.defaultValue,o=n.value,a=m.useState(function(){var c;return OC(o)?c=o:OC(r)?c=r:c=t,Bo(c)}),i=Z(a,2),s=i[0],l=i[1];return m.useEffect(function(){o&&l(Bo(o));},[o]),[s,l]},Ece=["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 Ice=m.forwardRef(function(e,t){var n=e.value,r=e.defaultValue,o=e.prefixCls,a=o===void 0?yce:o,i=e.onChange,s=e.onChangeComplete,l=e.className,c=e.style,u=e.panelRender,d=e.disabledAlpha,f=d===void 0?!1:d,h=e.disabled,g=h===void 0?!1:h,v=xce(Cce,{value:n,defaultValue:r}),p=Z(v,2),b=p[0],y=p[1],C=m.useMemo(function(){var $=Bo(b.toRgbString());return $.setAlpha(1),$.toRgbString()},[b]),w=W("".concat(a,"-panel"),l,z({},"".concat(a,"-panel-disabled"),g)),x={prefixCls:a,onChangeComplete:s,disabled:g},E=function(I,P){n||y(I),i==null||i(I,P);},S=m.createElement(m.Fragment,null,m.createElement(wce,Ie({color:b,onChange:E},x)),m.createElement("div",{className:"".concat(a,"-slider-container")},m.createElement("div",{className:W("".concat(a,"-slider-group"),z({},"".concat(a,"-slider-group-disabled-alpha"),f))},m.createElement(PC,Ie({gradientColors:Ece,color:b,value:"hsl(".concat(b.toHsb().h,",100%, 50%)"),onChange:function(I){return E(I,"hue")}},x)),!f&&m.createElement(PC,Ie({type:"alpha",gradientColors:["rgba(255, 0, 4, 0) 0%",C],color:b,value:b.toRgbString(),onChange:function(I){return E(I,"alpha")}},x))),m.createElement(f0,{color:b.toRgbString(),prefixCls:a})));return m.createElement("div",{className:w,style:c,ref:t},typeof u=="function"?u(S):S)}),OP=m.createContext({}),MP=m.createContext({}),{Provider:Pce}=OP,{Provider:Oce}=MP,Yc=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/gi,"").slice(0,t?8:6))||"",Mce=(e,t)=>e?Yc(e,t):"";let MC=function(){function e(t){En(this,e),this.metaColor=new Hu(t),t||this.metaColor.setAlpha(0);}return In(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return Mce(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 Rce="ant-color-picker",Bn=e=>e instanceof MC?e:new MC(e),Zc=e=>Math.round(Number(e||0)),Vu=e=>Zc(e.toHsb().a*100),Hm=(e,t)=>{const n=e.toHsb();return n.a=t||1,Bn(n)},Tce=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=Bn(i);o==null||o(s);}};return m.createElement("div",{className:`${t}-clear`,onClick:a})},RP=Tce;var bo;(function(e){e.hex="hex",e.rgb="rgb",e.hsb="hsb";})(bo||(bo={}));const _ce=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]=m.useState(o);return m.useEffect(()=>{Number.isNaN(o)||u(o);},[o]),m.createElement(kg,{className:W(l,i),min:n,max:r,value:c,formatter:s,size:"small",onChange:d=>{o||u(d||0),a==null||a(d);}})},ya=_ce,kce=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-alpha-input`,[a,i]=m.useState(Bn(n||"#000"));m.useEffect(()=>{n&&i(n);},[n]);const s=l=>{const c=a.toHsb();c.a=(l||0)/100;const u=Bn(c);n||i(u),r==null||r(u);};return m.createElement(ya,{value:Vu(a),prefixCls:t,formatter:l=>`${l}%`,className:o,onChange:s})},Nce=kce,Ace=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,RC=e=>Ace.test(`#${e}`),Lce=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-hex-input`,[a,i]=m.useState(n==null?void 0:n.toHex());m.useEffect(()=>{const l=n==null?void 0:n.toHex();RC(l)&&n&&i(Yc(l));},[n]);const s=l=>{const c=l.target.value;i(Yc(c)),RC(Yc(c,!0))&&(r==null||r(Bn(c)));};return m.createElement(uI,{className:o,value:a,prefix:"#",onChange:s,size:"small"})},Fce=Lce,Dce=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-hsb-input`,[a,i]=m.useState(Bn(n||"#000"));m.useEffect(()=>{n&&i(n);},[n]);const s=(l,c)=>{const u=a.toHsb();u[c]=c==="h"?l:(l||0)/100;const d=Bn(u);n||i(d),r==null||r(d);};return m.createElement("div",{className:o},m.createElement(ya,{max:360,min:0,value:Number(a.toHsb().h),prefixCls:t,className:o,formatter:l=>Zc(l||0).toString(),onChange:l=>s(Number(l),"h")}),m.createElement(ya,{max:100,min:0,value:Number(a.toHsb().s)*100,prefixCls:t,className:o,formatter:l=>`${Zc(l||0)}%`,onChange:l=>s(Number(l),"s")}),m.createElement(ya,{max:100,min:0,value:Number(a.toHsb().b)*100,prefixCls:t,className:o,formatter:l=>`${Zc(l||0)}%`,onChange:l=>s(Number(l),"b")}))},jce=Dce,zce=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-rgb-input`,[a,i]=m.useState(Bn(n||"#000"));m.useEffect(()=>{n&&i(n);},[n]);const s=(l,c)=>{const u=a.toRgb();u[c]=l||0;const d=Bn(u);n||i(d),r==null||r(d);};return m.createElement("div",{className:o},m.createElement(ya,{max:255,min:0,value:Number(a.toRgb().r),prefixCls:t,className:o,onChange:l=>s(Number(l),"r")}),m.createElement(ya,{max:255,min:0,value:Number(a.toRgb().g),prefixCls:t,className:o,onChange:l=>s(Number(l),"g")}),m.createElement(ya,{max:255,min:0,value:Number(a.toRgb().b),prefixCls:t,className:o,onChange:l=>s(Number(l),"b")}))},Bce=zce,Hce=[bo.hex,bo.hsb,bo.rgb].map(e=>({value:e,label:e.toLocaleUpperCase()})),Vce=e=>{const{prefixCls:t,format:n,value:r,disabledAlpha:o,onFormatChange:a,onChange:i}=e,[s,l]=qt(bo.hex,{value:n,onChange:a}),c=`${t}-input`,u=f=>{l(f);},d=m.useMemo(()=>{const f={value:r,prefixCls:t,onChange:i};switch(s){case bo.hsb:return m.createElement(jce,Object.assign({},f));case bo.rgb:return m.createElement(Bce,Object.assign({},f));case bo.hex:default:return m.createElement(Fce,Object.assign({},f))}},[s,t,r,i]);return m.createElement("div",{className:`${c}-container`},m.createElement(Yl,{value:s,bordered:!1,getPopupContainer:f=>f,popupMatchSelectWidth:68,placement:"bottomRight",onChange:u,className:`${t}-format-select`,size:"small",options:Hce}),m.createElement("div",{className:c},d),!o&&m.createElement(Nce,{prefixCls:t,value:r,onChange:i}))},Wce=Vce;var Gce=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 Kce=()=>{const e=m.useContext(OP),{prefixCls:t,colorCleared:n,allowClear:r,value:o,disabledAlpha:a,onChange:i,onClear:s,onChangeComplete:l}=e,c=Gce(e,["prefixCls","colorCleared","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete"]);return m.createElement(m.Fragment,null,r&&m.createElement(RP,Object.assign({prefixCls:t,value:o,colorCleared:n,onChange:u=>{i==null||i(u),s==null||s();}},c)),m.createElement(Ice,{prefixCls:t,value:o==null?void 0:o.toHsb(),disabledAlpha:a,onChange:(u,d)=>i==null?void 0:i(u,d,!0),onChangeComplete:l}),m.createElement(Wce,Object.assign({value:o,onChange:i,prefixCls:t,disabledAlpha:a},c)))},TC=Kce;var TP=m.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=m.useState(l||o),d=Z(u,2),f=d[0],h=d[1];return m.useEffect(function(){(o||l)&&h(!0);},[o,l]),f?m.createElement("div",{ref:t,className:W("".concat(r,"-content"),(n={},z(n,"".concat(r,"-content-active"),l),z(n,"".concat(r,"-content-inactive"),!l),n),a),style:i,role:c},m.createElement("div",{className:"".concat(r,"-content-box")},s)):null});TP.displayName="PanelContent";var Uce=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],_P=m.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,f=e.collapsible,h=e.accordion,g=e.panelKey,v=e.extra,p=e.header,b=e.expandIcon,y=e.openMotion,C=e.destroyInactivePanel,w=e.children,x=et(e,Uce),E=f==="disabled",S=f==="header",$=f==="icon",I=v!=null&&typeof v!="boolean",P=function(){l==null||l(g);},R=function(O){(O.key==="Enter"||O.keyCode===me.ENTER||O.which===me.ENTER)&&P();},M=typeof b=="function"?b(e):m.createElement("i",{className:"arrow"});M&&(M=m.createElement("div",{className:"".concat(d,"-expand-icon"),onClick:["header","icon"].includes(f)?P:void 0},M));var k=W((n={},z(n,"".concat(d,"-item"),!0),z(n,"".concat(d,"-item-active"),s),z(n,"".concat(d,"-item-disabled"),E),n),u),A=W(i,(r={},z(r,"".concat(d,"-header"),!0),z(r,"".concat(d,"-header-collapsible-only"),S),z(r,"".concat(d,"-icon-collapsible-only"),$),r)),L={className:A,"aria-expanded":s,"aria-disabled":E,onKeyDown:R};return !S&&!$&&(L.onClick=P,L.role=h?"tab":"button",L.tabIndex=E?-1:0),m.createElement("div",Ie({},x,{ref:t,className:k}),m.createElement("div",L,a&&M,m.createElement("span",{className:"".concat(d,"-header-text"),onClick:f==="header"?P:void 0},p),I&&m.createElement("div",{className:"".concat(d,"-extra")},v)),m.createElement(Io,Ie({visible:s,leavedClassName:"".concat(d,"-content-hidden")},y,{forceRender:c,removeOnLeave:C}),function(_,O){var T=_.className,D=_.style;return m.createElement(TP,{ref:O,prefixCls:d,className:T,style:D,isActive:s,forceRender:c,role:h?"tabpanel":void 0},w)}))}),Xce=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],qce=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,f){var h=d.children,g=d.label,v=d.key,p=d.collapsible,b=d.onItemClick,y=d.destroyInactivePanel,C=et(d,Xce),w=String(v??f),x=p??a,E=y??i,S=function(P){x!=="disabled"&&(s(P),b==null||b(P));},$=!1;return o?$=l[0]===w:$=l.indexOf(w)>-1,m.createElement(_P,Ie({},C,{prefixCls:r,key:w,panelKey:w,isActive:$,accordion:o,openMotion:c,expandIcon:u,header:g,collapsible:x,onItemClick:S,destroyInactivePanel:E}),h)})},Yce=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,f=t.key||String(n),h=t.props,g=h.header,v=h.headerClass,p=h.destroyInactivePanel,b=h.collapsible,y=h.onItemClick,C=!1;a?C=c[0]===f:C=c.indexOf(f)>-1;var w=b??i,x=function($){w!=="disabled"&&(l($),y==null||y($));},E={key:f,panelKey:f,header:g,headerClass:v,isActive:C,prefixCls:o,destroyInactivePanel:p??s,openMotion:u,accordion:a,children:t.props.children,onItemClick:x,expandIcon:d,collapsible:w};return typeof t.type=="string"?t:(Object.keys(E).forEach(function(S){typeof E[S]>"u"&&delete E[S];}),m.cloneElement(t,E))};function Zce(e,t,n){return Array.isArray(e)?qce(e,n):vr(t).map(function(r,o){return Yce(r,o,n)})}function Qce(e){var t=e;if(!Array.isArray(t)){var n=it(t);t=n==="number"||n==="string"?[t]:[];}return t.map(function(r){return String(r)})}var Jce=m.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,f=e.expandIcon,h=e.activeKey,g=e.defaultActiveKey,v=e.onChange,p=e.items,b=W(r,l),y=qt([],{value:h,onChange:function(I){return v==null?void 0:v(I)},defaultValue:g,postState:Qce}),C=Z(y,2),w=C[0],x=C[1],E=function(I){return x(function(){if(s)return w[0]===I?[]:[I];var P=w.indexOf(I),R=P>-1;return R?w.filter(function(M){return M!==I}):[].concat(Te(w),[I])})};$n(!c,"`children` will be removed in next major version. Please use `items` instead.");var S=Zce(p,c,{prefixCls:r,accordion:s,openMotion:d,expandIcon:f,collapsible:u,destroyInactivePanel:a,onItemClick:E,activeKey:w});return m.createElement("div",{ref:t,className:b,style:i,role:s?"tablist":void 0},S)});const m0=Object.assign(Jce,{Panel:_P});m0.Panel;const eue=m__namespace.forwardRef((e,t)=>{const{getPrefixCls:n}=m__namespace.useContext(tt),{prefixCls:r,className:o,showArrow:a=!0}=e,i=n("collapse",r),s=W({[`${i}-no-arrow`]:!a},o);return m__namespace.createElement(m0.Panel,Object.assign({ref:t},e,{prefixCls:i,className:s}))}),tue=eue,nue=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:f,colorTextHeading:h,colorTextDisabled:g,fontSize:v,fontSizeLG:p,lineHeight:b,marginSM:y,paddingSM:C,paddingLG:w,paddingXS:x,motionDurationSlow:E,fontSizeIcon:S,contentPadding:$}=e,I=`${c}px ${u} ${d}`;return {[t]:Object.assign(Object.assign({},jt(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:h,lineHeight:b,cursor:"pointer",transition:`all ${E}, 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({},Ta()),{fontSize:S,svg:{transition:`transform ${E}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-icon-collapsible-only`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:f,backgroundColor:n,borderTop:I,[`& > ${t}-content-box`]:{padding:$},"&-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:w-r}},[`> ${t}-content > ${t}-content-box`]:{padding:w}}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${l}px ${l}px`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n          &,\n          & > .arrow\n        ":{color:g,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:y}}}}})}},rue=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow svg`;return {[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},oue=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}}}},aue=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}}}}}},iue=Kt("Collapse",e=>{const t=Ct(e,{collapseHeaderPaddingSM:`${e.paddingXS}px ${e.paddingSM}px`,collapseHeaderPaddingLG:`${e.padding}px ${e.paddingLG}px`,collapsePanelBorderRadius:e.borderRadiusLG});return [nue(t),oue(t),aue(t),rue(t),I$(t)]},e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer})),sue=m__namespace.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,collapse:o}=m__namespace.useContext(tt),{prefixCls:a,className:i,rootClassName:s,style:l,bordered:c=!0,ghost:u,size:d,expandIconPosition:f="start",children:h,expandIcon:g}=e,v=or(I=>{var P;return (P=d??I)!==null&&P!==void 0?P:"middle"}),p=n("collapse",a),b=n(),[y,C]=iue(p),w=m__namespace.useMemo(()=>f==="left"?"start":f==="right"?"end":f,[f]),x=function(){let I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const P=g?g(I):m__namespace.createElement(Fi,{rotate:I.isActive?90:void 0});return Zn(P,()=>({className:W(P.props.className,`${p}-arrow`)}))},E=W(`${p}-icon-position-${w}`,{[`${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({},d$(b)),{motionAppear:!1,leavedClassName:`${p}-content-hidden`}),$=m__namespace.useMemo(()=>h?vr(h).map((I,P)=>{var R,M;if(!((R=I.props)===null||R===void 0)&&R.disabled){const k=(M=I.key)!==null&&M!==void 0?M:String(P),{disabled:A,collapsible:L}=I.props,_=Object.assign(Object.assign({},Vn(I.props,["disabled"])),{key:k,collapsible:L??(A?"disabled":void 0)});return Zn(I,_)}return I}):null,[h]);return y(m__namespace.createElement(m0,Object.assign({ref:t,openMotion:S},Vn(e,["rootClassName"]),{expandIcon:x,prefixCls:p,className:E,style:Object.assign(Object.assign({},o==null?void 0:o.style),l)}),$))}),lue=Object.assign(sue,{Panel:tue}),Vm=e=>e.map(t=>(t.colors=t.colors.map(Bn),t)),cue=(e,t)=>{const{r:n,g:r,b:o,a}=e.toRgb(),i=new Hu(e.toRgbString()).onBackground(t).toHsv();return a<=.5?i.v>.5:n*.299+r*.587+o*.114>192},_C=e=>{let{label:t}=e;return `panel-${t}`},uue=e=>{let{prefixCls:t,presets:n,value:r,onChange:o}=e;const[a]=Qi("ColorPicker"),[,i]=rr(),[s]=qt(Vm(n),{value:Vm(n),postState:Vm}),l=`${t}-presets`,c=m.useMemo(()=>s.reduce((f,h)=>{const{defaultOpen:g=!0}=h;return g&&f.push(_C(h)),f},[]),[s]),u=f=>{o==null||o(f);},d=s.map(f=>{var h;return {key:_C(f),label:m.createElement("div",{className:`${l}-label`},f==null?void 0:f.label),children:m.createElement("div",{className:`${l}-items`},Array.isArray(f==null?void 0:f.colors)&&((h=f.colors)===null||h===void 0?void 0:h.length)>0?f.colors.map((g,v)=>m.createElement(f0,{key:`preset-${v}-${g.toHexString()}`,color:Bn(g).toRgbString(),prefixCls:t,className:W(`${l}-color`,{[`${l}-color-checked`]:g.toHexString()===(r==null?void 0:r.toHexString()),[`${l}-color-bright`]:cue(g,i.colorBgElevated)}),onClick:()=>u(g)})):m.createElement("span",{className:`${l}-empty`},a.presetEmpty))}});return m.createElement("div",{className:l},m.createElement(lue,{defaultActiveKey:c,ghost:!0,items:d}))},due=uue,fue=()=>{const{prefixCls:e,value:t,presets:n,onChange:r}=m.useContext(MP);return Array.isArray(n)?m.createElement(due,{value:t,presets:n,prefixCls:e,onChange:r}):null},kC=fue;var mue=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 hue=e=>{const{prefixCls:t,presets:n,panelRender:r,color:o,onChange:a,onClear:i}=e,s=mue(e,["prefixCls","presets","panelRender","color","onChange","onClear"]),l=`${t}-inner-content`,c=Object.assign({prefixCls:t,value:o,onChange:a,onClear:i},s),u=m.useMemo(()=>({prefixCls:t,value:o,presets:n,onChange:a}),[t,o,n,a]),d=m.createElement(m.Fragment,null,m.createElement(TC,null),Array.isArray(n)&&m.createElement(gce,{className:`${l}-divider`}),m.createElement(kC,null));return m.createElement(Pce,{value:c},m.createElement(Oce,{value:u},m.createElement("div",{className:l},typeof r=="function"?r(d,{components:{Picker:TC,Presets:kC}}):d)))},gue=hue;var vue=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 pue=m.forwardRef((e,t)=>{const{color:n,prefixCls:r,open:o,colorCleared:a,disabled:i,format:s,className:l,showText:c}=e,u=vue(e,["color","prefixCls","open","colorCleared","disabled","format","className","showText"]),d=`${r}-trigger`,f=m.useMemo(()=>a?m.createElement(RP,{prefixCls:r}):m.createElement(f0,{prefixCls:r,color:n.toRgbString()}),[n,a,r]),h=()=>{const v=n.toHexString().toUpperCase(),p=Vu(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}},g=()=>{if(typeof c=="function")return c(n);if(c)return h()};return m.createElement("div",Object.assign({ref:t,className:W(d,l,{[`${d}-active`]:o,[`${d}-disabled`]:i})},u),f,c&&m.createElement("div",{className:`${d}-text`},g()))}),bue=pue;function NC(e){return e!==void 0}const yue=(e,t)=>{const{defaultValue:n,value:r}=t,[o,a]=m.useState(()=>{let i;return NC(r)?i=r:NC(n)?i=n:i=e,Bn(i||"")});return m.useEffect(()=>{r&&a(Bn(r));},[r]),[o,a]},Cue=yue,kP=(e,t)=>({backgroundImage:`conic-gradient(${t} 0 25%, transparent 0 50%, ${t} 0 75%, transparent 0)`,backgroundSize:`${e} ${e}`}),Sue=(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},kP("50%",e.colorFillSecondary)),{[`${n}-color-block-inner`]:{width:"100%",height:"100%",border:`${a}px solid ${i}`,borderRadius:"inherit"}})}},AC=Sue,wue=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:f,colorPickerInputNumberHandleWidth:h,lineWidth:g}=e;return {[`${t}-input-container`]:{display:"flex",[`${t}-steppers${n}-input-number`]:{fontSize:r,lineHeight:o,[`${n}-input-number-input`]:{paddingInlineStart:s,paddingInlineEnd:0},[`${n}-input-number-handler-wrap`]:{width:h}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${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*g}px`},[`${n}-input-prefix`]:{color:f}}}}}},$ue=wue,xue=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":kP(`${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}}}}}},Eue=xue,Iue=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:f,marginXXS:h,paddingXS:g}=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:h},[`${n}-collapse-item > ${n}-collapse-content > ${n}-collapse-content-box`]:{padding:`${g}px 0`},"&-label":{fontSize:i,color:s,lineHeight:l},"&-items":{display:"flex",flexWrap:"wrap",gap:h*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:f,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}}}},Pue=Iue,Ng=(e,t,n)=>({borderInlineEndWidth:e.lineWidth,borderColor:t,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${n}`,outline:0}),Oue=e=>{const{componentCls:t}=e;return {"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},LC=(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}})}},Mue=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({},Ng(e,n,i))},[`&${t}-status-warning`]:{borderColor:r,"&:hover":{borderColor:a},[`&${t}-trigger-active`]:Object.assign({},Ng(e,r,s))}}},Rue=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}}}},Tue=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:f,controlHeightSM:h,colorBgTextActive:g,colorPickerPresetColorSize:v,colorPickerPreviewSize:p,lineWidth:b,colorBorder:y,paddingXXS:C,fontSize:w,colorPrimaryHover:x,controlOutline:E}=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({},Eue(e))},AC(e,p)),$ue(e)),Pue(e)),LC(e,v,{marginInlineStart:"auto",marginBottom:u})),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:f,height:f,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:w,color:s},"&:hover":{borderColor:x},[`&${t}-trigger-active`]:Object.assign({},Ng(e,r,E)),"&-disabled":{color:i,background:l,cursor:"not-allowed","&:hover":{borderColor:g},[`${t}-trigger-text`]:{color:i}}},LC(e,h)),AC(e,h)),Mue(e)),Rue(e))},Oue(e))}]},_ue=Kt("ColorPicker",e=>{const{colorTextQuaternary:t,marginSM:n}=e,r=8,o=Ct(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 [Tue(o)]});var kue=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 h0=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:f=!0,panelRender:h,showText:g,style:v,className:p,size:b,rootClassName:y,styles:C,disabledAlpha:w=!1,onFormatChange:x,onChange:E,onClear:S,onOpenChange:$,onChangeComplete:I,getPopupContainer:P,autoAdjustOverflow:R=!0,destroyTooltipOnHide:M}=e,k=kue(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:A,direction:L,colorPicker:_}=m.useContext(tt),O=m.useContext(Kr),T=u??O,[,D]=rr(),[j,B]=Cue(D.colorPrimary,{value:t,defaultValue:n}),[H,G]=qt(!1,{value:c,postState:We=>!T&&We,onChange:$}),[K,X]=qt(r,{value:r,defaultValue:o,onChange:x}),[Y,ee]=m.useState(!1),V=A("color-picker",Rce),J=m.useMemo(()=>Vu(j)<100,[j]),{status:q}=m.useContext(Mr),se=or(b),[le,Q]=_ue(V),ne={[`${V}-rtl`]:L},de=W(y,ne),te=W(Br(V,q),{[`${V}-sm`]:se==="small",[`${V}-lg`]:se==="large"},_==null?void 0:_.className,de,p,Q),ce=W(V,ne),ge=m.useRef(!0),re=(We,Me,Ye)=>{let Be=Bn(We);(Y||(t===null||!t&&n===null))&&(ee(!1),Vu(j)===0&&Me!=="alpha"&&(Be=Hm(Be))),w&&J&&(Be=Hm(Be)),Ye?ge.current=!1:I==null||I(Be),B(Be),E==null||E(Be,Be.toHexString());},ae=()=>{ee(!0),S==null||S();},he=We=>{ge.current=!0;let Me=Bn(We);w&&J&&(Me=Hm(We)),I==null||I(Me);},Ce={open:H,trigger:l,placement:d,arrow:f,rootClassName:y,getPopupContainer:P,autoAdjustOverflow:R,destroyTooltipOnHide:M},_e={prefixCls:V,color:j,allowClear:a,colorCleared:Y,disabled:T,disabledAlpha:w,presets:i,panelRender:h,format:K,onFormatChange:X,onChangeComplete:he},He=Object.assign(Object.assign({},_==null?void 0:_.style),v);return le(m.createElement(df,Object.assign({style:C==null?void 0:C.popup,overlayInnerStyle:C==null?void 0:C.popupOverlayInner,onOpenChange:We=>{ge.current&&!T&&G(We);},content:m.createElement(al,{override:!0,status:!0},m.createElement(gue,Object.assign({},_e,{onChange:re,onChangeComplete:he,onClear:ae}))),overlayClassName:ce},Ce),s||m.createElement(bue,Object.assign({open:H,className:te,style:He,color:t?Bn(t):j,prefixCls:V,disabled:T,colorCleared:Y,showText:g,format:K},k))))},Nue=Cp(h0,"color-picker",e=>e,e=>Object.assign(Object.assign({},e),{placement:"bottom",autoAdjustOverflow:!1}));h0._InternalPanelDoNotUseOrYouWillBeFired=Nue;const Aue=h0;var Lue={name:"1ba68ro",styles:"min-width:60px;text-align:center;cursor:pointer"},Fue={name:"snnttx",styles:"aspect-ratio:1;width:50px;border:2px solid transparent;border-radius:6px;margin:0 auto"},Due={name:"1kk26el",styles:"font-size:1.5em;display:flex;align-items:center;margin-top:10px"};function jue(){const e=dv().id,{colorPickerThemeSelectedColor:t}=cn(),[n,r]=m.useState(t||nu.colorPrimary),o=m.useMemo(()=>typeof n=="string"?n:n.toHexString(),[n]);return F("div",{children:iw.map(({name:a,themes:i,tooltip:s})=>be(m.Fragment,{children:[be("div",{css:Due,children:[a,F(cf,{tooltip:s,tooltipProps:{color:"rgba(0, 0, 0, 0.85)"},iconProps:{name:"Tips",size:16}})]}),F("div",{style:{display:"flex",flexWrap:"wrap",gap:"2px 8px"},children:i.map(l=>{const c=e===l.id,u=l.isCustom,d=F("div",{className:"preview",css:zr("aspect-ratio:1;width:42px;background-color:",u?o:l.colorPrimary,";border-radius:6px;","")});let f=F("div",{className:"preview-wrapper",css:[Fue,Ul,c&&zr("border-color:",l.colorPrimary,";",""),"",""],children:d});return l.isCustom&&(f=F(Aue,{value:n,onChange:h=>r(h),onOpenChange:h=>{h||qn({colorPickerThemeSelectedColor:o});},children:f})),be("div",{css:Lue,onClick:h=>{qn({theme:l.id});},children:[f,l.name]},l.id)})})]},a))})}async function g0(){Pt("即将刷新网页"),await zn(500),location.reload();}function zue(){return GF(),g0()}async function Bue(){const e=await FF(),t=uv(e||{},vw);return Object.keys(t).length?(O6(!0),qn({...t}),g0()):Pt("备份不存在或没有有效的配置")}function _c(e,t,n){return fn(e,r=>{if(yd())return;Et[t]=!Et[t];const o=!Et[t];Pt(`已${o?"禁用":"启用"}「${n}」`);},{exactMatch:!0})}var Hue={name:"1a2afmv",styles:"margin-left:10px"};function Vue({show:e,onHide:t}){const{filterEnabled:n,filterMinPlayCount:r,filterMinPlayCountEnabled:o,filterMinDuration:a,filterMinDurationEnabled:i,filterOutGotoTypePicture:s}=cn();return _c(["shift.p"],"autoPreviewWhenKeyboardSelect","键盘选中后自动开始预览"),_c(["shift.m"],"autoPreviewWhenHover","鼠标悬浮后自动开始预览"),_c(["shift.c"],"useNarrowMode","居中模式"),_c(["shift.y"],"styleFancy","Fancy Style"),be(tf,{show:e,onHide:t,hideWhenMaskOnClick:!0,hideWhenEsc:!0,styleModal:{width:900,maxHeight:"unset"},children:[be("div",{className:mr.modalHeader,children:[be("div",{className:mr.modalTitle,children:[F(Dt,{name:"Config",className:Ke.configIcon}),"设置项"]}),F("div",{className:"space",style:{flex:1}}),F(nf,{onClick:t})]}),F("main",{className:mr.modalBody,style:{overflow:"hidden"},children:F(Sle,{tabPosition:"left",size:"middle",defaultActiveKey:"basic",className:Ke.settingTabs,items:[{label:"常规设置",key:"basic",children:F(Wue,{})},{label:"内容过滤",key:"filter",children:F("div",{className:Ke.tabPane,children:be("div",{className:Ke.settingsGroup,children:[be("div",{className:Ke.settingsGroupTitle,children:["内容过滤",F(cf,{iconProps:{name:"Tips"},tooltip:be(It,{children:["启用过滤会大幅降低加载速度, 谨慎开启! ",F("br",{}),"仅推荐类 Tab 生效"]})}),F(Xl,{css:Hue,checked:n,onChange:l=>{qn({filterEnabled:l});}})]}),be("div",{className:W(Ke.settingsGroupContent),children:[F("div",{className:Ke.settingsGroupSubTitle,children:"视频"}),be("div",{className:Ke.row,children:[F(Mn,{disabled:!n,configKey:"filterMinPlayCountEnabled",label:"按播放量过滤",tooltip:F(It,{children:"不显示播放量很少的视频"})}),F(kg,{size:"small",min:1,step:1e3,value:r,onChange:l=>l&&qn({filterMinPlayCount:l}),disabled:!n||!o})]}),be("div",{className:Ke.row,style:{marginTop:3},children:[F(Mn,{configKey:"filterMinDurationEnabled",label:"按视频时长过滤",tooltip:F(It,{children:"不显示短视频"}),disabled:!n}),F(kg,{style:{width:150},size:"small",min:1,step:10,addonAfter:"单位:秒",value:a,onChange:l=>l&&qn({filterMinDuration:l}),disabled:!n||!i})]}),F(Mn,{className:Ke.row,style:{marginTop:3},configKey:"enableFilterForFollowedVideo",label:"对「已关注」的视频启用过滤",tooltip:F(It,{children:"默认不过滤「已关注」"}),disabled:!n}),F("div",{className:Ke.settingsGroupSubTitle,children:"图文"}),F(Mn,{className:Ke.row,configKey:"filterOutGotoTypePicture",label:"启用图文(动态 & 专栏)过滤",tooltip:F(It,{children:"过滤掉图文推荐"}),disabled:!n}),F(Mn,{className:Ke.row,disabled:!n||!s,configKey:"enableFilterForFollowedPicture",label:"对「已关注」的图文启用过滤",tooltip:F(It,{children:"默认不过滤「已关注」"})})]})]})})},{label:"外观设置",key:"ui",children:F("div",{className:Ke.tabPane,children:be("div",{className:Ke.settingsGroup,children:[F("div",{className:Ke.settingsGroupTitle,style:{marginBottom:15},children:"样式自定义"}),be("div",{className:W(Ke.settingsGroupContent),children:[F("div",{className:Ke.row,children:F(Mn,{configKey:"styleFancy",label:"Fancy Style",tooltip:be(It,{children:["增加卡片大小, 增大卡片间距",F("br",{}),"视频卡片会显示头像",F("br",{}),"切换设置快捷键: ",F(No,{color:"green",children:"shift+y"})]})})}),F("div",{className:Ke.row,style:{marginTop:5},children:F(Mn,{configKey:"styleUseStandardVideoSourceTab",label:"推荐源切换 Tab 按钮: 使用标准高度",tooltip:"默认紧凑高度"})})]})]})})},{label:"主题选择",key:"theme-select",children:F("div",{className:Ke.tabPane,children:be("div",{className:Ke.settingsGroup,children:[F("div",{className:Ke.settingsGroupTitle,style:{marginBottom:15},children:"主题选择"}),F("div",{className:W(Ke.settingsGroupContent),children:F(jue,{})})]})})},{label:"高级设置",key:"advance",children:F(Uue,{})}]})})]})}function Wue(){return be("div",{className:Ke.tabPane,children:[be("div",{className:Ke.settingsGroup,children:[be("div",{className:Ke.settingsGroupTitle,children:["access_key",F(cf,{iconProps:{name:"Help",size:18,style:{marginTop:6,marginLeft:5}},tooltip:be(It,{children:["用于「推荐」Tab",F("br",{}),"用于 获取推荐 / 提交不喜欢等操作"]})})]}),F("div",{className:W(Ke.settingsGroupContent),children:F("div",{className:Ke.row,style:{marginTop:5},children:F(SP,{})})})]}),be("div",{className:Ke.settingsGroup,children:[F("div",{className:Ke.settingsGroupTitle,children:"开关"}),be("div",{className:W(Ke.settingsGroupContent,Ke.row),children:[F(Mn,{configKey:"pureRecommend",label:"开启纯推荐模式",tooltip:be(It,{children:["首页只保留推荐",F("br",{}),"P.S 需要刷新网页~"]}),className:Ke.check,extraAction:g0}),F(Mn,{configKey:"initialShowMore",label:"自动查看更多",tooltip:"打开首页时默认打开推荐弹窗",className:Ke.check,extraAction:e=>{e&&Pt("已开启自动查看更多: 下次打开首页时将直接展示推荐弹窗");}}),F(Mn,{configKey:"useNarrowMode",label:"启用居中模式",tooltip:be(It,{children:["居中两列",F("br",{}),"切换设置快捷键: ",F(No,{color:"green",children:"shift+c"})]}),className:Ke.check})]})]}),be("div",{className:Ke.settingsGroup,children:[F("div",{className:Ke.settingsGroupTitle,children:"预览"}),be("div",{className:W(Ke.settingsGroupContent,Ke.row),children:[F(Mn,{configKey:"autoPreviewWhenKeyboardSelect",label:"键盘选中后自动开始预览",className:Ke.check,tooltip:be(It,{children:["手动预览快捷键: ",F(No,{color:"green",children:"."})," or ",F(No,{color:"green",children:"p"}),F("br",{}),"切换设置快捷键: ",F(No,{color:"green",children:"shift+p"})]})}),F(Mn,{configKey:"autoPreviewWhenHover",label:"鼠标悬浮后自动开始预览",className:Ke.check,tooltip:be(It,{children:["鼠标悬浮后自动开始预览, 预览不再跟随鼠标位置 ",F("br",{}),"切换设置快捷键: ",F(No,{color:"green",children:"shift+m"})]})})]})]}),be("div",{className:Ke.settingsGroup,children:[F("div",{className:Ke.settingsGroupTitle,children:"帮助"}),F("div",{className:W(Ke.settingsGroupContent),children:F("div",{className:Ke.row,children:be(Kl,{size:"small",children:[F(Qt,{href:"https://github.com/magicdawn/bilibili-app-recommend",target:"_blank",children:"GitHub 主页"}),F(Qt,{href:"https://gf.qytechs.cn/zh-CN/scripts/443530-bilibili-app-recommend",target:"_blank",children:"GreasyFork 主页"}),F(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:"查看可用的快捷键"}),F(Qt,{href:"https://github.com/magicdawn/bilibili-app-recommend/blob/main/CHANGELOG.md",target:"_blank",children:"更新日志"}),F(Qt,{href:"https://afdian.net/a/magicdawn",target:"_blank",children:"用 ❤️ 发电"})]})})})]})]})}var Gue={name:"1yvqi6w",styles:"display:flex;align-items:center;margin-right:15px"},Kue={name:"1nwso5m",styles:".ant-checkbox-group-item{align-items:center;}"};function Uue(){const e=F2(),{autoPreviewUpdateInterval:t}=cn();return F("div",{className:Ke.tabPane,children:be("div",{className:Ke.settingsGroup,children:[F("div",{className:Ke.settingsGroupTitle,children:"设置项"}),F("div",{className:W(Ke.settingsGroupContent),children:F("div",{className:Ke.row,children:F(lC,{title:"确定",description:"确定恢复默认设置? 该操作不可逆!",onConfirm:zue,children:F(Qt,{danger:!0,type:"primary",children:"恢复默认设置"})})})}),F("div",{className:Ke.settingsGroupTitle,style:{marginTop:15},children:"备份/恢复"}),be("div",{className:W(Ke.settingsGroupContent),children:[be("div",{className:Ke.row,children:[F(Mn,{configKey:"backupSettingsToArticleDraft",label:"备份设置到专栏草稿箱中",tooltip:`专栏 - 草稿箱 - ${nn}`}),be("a",{style:{marginLeft:15,display:"inline-flex",alignItems:"center"},href:"https://member.bilibili.com/platform/upload/text/draft",target:"_blank",children:[F(Dt,{name:"EfferentFour",size:16,style:{marginRight:4}}),"去草稿箱浏览"]})]}),F("div",{className:Ke.row,style:{marginTop:5},children:F(lC,{title:"确定",description:"将覆盖本地设置? 该操作不可逆!",onConfirm:Bue,children:F(Qt,{danger:!0,type:"primary",children:"从专栏草稿箱中恢复"})})})]}),F("div",{className:Ke.settingsGroupTitle,style:{marginTop:15},children:"稍后再看 & 收藏"}),be("div",{className:W(Ke.settingsGroupContent),children:[F("div",{className:Ke.row,children:F(Mn,{configKey:"shuffleForWatchLater",label:"对「稍后再看」Tab 使用随机顺序",tooltip:F(It,{children:"不包括最近添加的「稍后再看」"})})}),F("div",{className:Ke.row,children:F(Mn,{configKey:"shuffleForFav",label:"对「收藏」Tab 使用随机顺序"})})]}),F("div",{className:Ke.settingsGroupTitle,style:{marginTop:15},children:"Tab 显示"}),be("div",{className:W(Ke.settingsGroupContent),children:[F("div",{className:Ke.row,children:F(lf.Group,{css:Kue,options:uf.map(({label:n,key:r,icon:o,iconProps:a})=>({label:be("span",{css:Gue,children:[F(Dt,{name:o,...a,size:(a==null?void 0:a.size)||18,css:ag}),n]}),value:r})),value:e,onChange:n=>{if(!n.length)return Pt("至少选择一项!");qn({hidingTabKeys:bp.filter(r=>!n.includes(r))});}})}),F(Qt,{style:{marginTop:5},onClick:()=>{qn({hidingTabKeys:[]});},children:"重置"})]}),F("div",{className:Ke.settingsGroupTitle,style:{marginTop:15},children:"预览"}),be("div",{style:{width:"100%",display:"flex",alignItems:"center"},children:["自动预览更新间隔",F(ese,{style:{flex:1,margin:"0 15px"},min:0,max:1e3,keyboard:!0,onChange:n=>Et.autoPreviewUpdateInterval=n,value:t}),be("span",{style:{width:"65px"},children:["(",t,"ms)"]})]})]})})}function Xue(){const e=m.useRef(null),[t,n]=m.useState(!1);return m.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 que="_expand-btn_wdzp9_1",Yue="_expanded_wdzp9_12",FC={expandBtn:que,expanded:Yue},Zue=m.forwardRef(function({children:t},n){const[r,o]=s2(!1);m.useImperativeHandle(n,()=>o,[o]);const a=F("button",{className:W("primary-btn",FC.expandBtn),onClick:o.toggle,children:F("svg",{className:W({[FC.expanded]:r}),children:F("use",{href:"#widget-arrow"})})});return be(It,{children:[a,r&&t]})}),Que="_modal-mask_7bwzz_1",Jue="_narrow-mode_7bwzz_1",ede="_modal_7bwzz_1",tde="_modal-header_7bwzz_18",nde="_modal-body_7bwzz_19",rde="_btn-refresh_7bwzz_22",$s={modalMask:Que,narrowMode:Jue,modal:ede,modalHeader:tde,modalBody:nde,btnRefresh:rde};var ode={name:"1q4vxyr",styles:"margin-left:8px"};const ade=m.memo(function({show:t,onHide:n}){const r=m.useRef(null),o=m.useRef(null),{useNarrowMode:a}=cn(),i=m.useMemo(()=>({[$s.narrowMode]:a}),[a]),s=at((...v)=>{var p;return (p=o.current)==null?void 0:p.refresh(...v)}),[l,c]=m.useState(null),u=at(()=>{r.current&&(r.current.scrollTop=0);}),d=Vv(),f=m.useMemo(()=>d?{border:`1px solid ${so}`}:void 0,[d]),[h,g]=m.useState(!1);return F(tf,{show:t,onHide:n,clsModalMask:W(i),clsModal:W($s.modal,i),styleModal:{...f},children:be(Zp.Provider,{value:s,children:[be("div",{className:W(mr.modalHeader,$s.modalHeader),children:[F(L2,{onRefresh:s}),l,F("div",{className:"space",style:{flex:1}}),F(Zue,{children:F(kX,{})}),F(AP,{css:ode,refreshing:h,onRefresh:s,className:$s.btnRefresh,refreshHotkeyEnabled:t}),F(nf,{onClick:n})]}),F("div",{className:W(mr.modalBody,$s.modalBody),ref:r,children:F(JI,{ref:o,shortcutEnabled:t,onScrollToTop:u,infiteScrollUseWindow:!1,scrollerRef:r,setRefreshing:g,setExtraInfo:c})})]})})}),ide=Pa.extend("RecHeader"),DC={btn:zr`
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    ${Ul}
  `,icon:zr`
    svg {
      width: 14px;
      height: 14px;
    }
  `},Ho=gr({modalFeedVisible:Et.initialShowMore,modalConfigVisible:!1}),sde=function(){return yr(Ho)},lde=()=>{Ho.modalFeedVisible=!0;},cde=()=>{Ho.modalFeedVisible=!1;},ude=()=>{Ho.modalConfigVisible=!0;},dde=()=>{Ho.modalConfigVisible=!1;},NP=m.forwardRef(function({onRefresh:t,refreshing:n,leftSlot:r,rightSlot:o},a){const{accessKey:i,pureRecommend:s,styleFancy:l}=cn(),{modalFeedVisible:c,modalConfigVisible:u}=yr(Ho);fn(["shift.comma"],p=>{yd()||(Ho.modalConfigVisible=!Ho.modalConfigVisible);},{exactMatch:!0});const[d,f]=Xue(),h=at(()=>{var C;if(!s)return;const p=(C=d.current)==null?void 0:C.parentElement;if(!p)return;const b=p.getBoundingClientRect(),y=TI();if(b.top<y){const w=y-b.top+1;ide("changing scroll on refresh: rect.top = %s, headerHeight = %s, scrollTop -= %s",b.top,y,w),document.documentElement.scrollTop-=w;}});m.useImperativeHandle(a,()=>({scroll:h}));const g=Vae(),v=xa();return F(It,{children:be(Zp.Provider,{value:t,children:[be("div",{ref:d,className:"area-header",css:[zr`
              margin-bottom: 0;
              height: 50px;
            `,s&&zr`
                position: sticky;
                top: ${g-1}px; // 有缝隙, 故 -1 px
                z-index: 1000;
              `,s&&f&&zr`
                background-color: var(--${l?"bg2":"bg1"}_float);
                box-shadow: 0 2px 4px rgb(0 0 0 / 8%);
              `,"",""],children:[be("div",{className:"left",children:[!s&&!v&&F("svg",{className:"icon",children:F("use",{href:"#channel-cinephile"})}),F(L2,{onRefresh:t}),r]}),F("div",{className:"right",children:be(Kl,{size:"small",children:[o,!i&&F(SP,{style:{marginLeft:5}}),F(Qt,{onClick:ude,css:DC.btn,children:F(Dt,{name:"Config",css:DC.icon})}),F(AP,{refreshing:n,onRefresh:t,refreshHotkeyEnabled:!(u||c)}),!s&&be(Qt,{css:Ul,onClick:lde,children:[F("span",{children:"查看更多"}),F("svg",{css:zr`
                      width: 12px;
                      height: 12px;
                      margin-left: 2px;
                    `,children:F("use",{href:"#widget-arrow"})})]})]})})]}),F(ade,{show:c,onHide:cde}),F(Vue,{show:u,onHide:dde})]})})}),AP=m.forwardRef(function({onRefresh:e,className:t="",style:n,refreshHotkeyEnabled:r,refreshing:o},a){r??(r=!0),m.useState(0);const i=m.useRef(null),s=at(()=>{i.current&&(i.current.disabled||i.current.click());});m.useImperativeHandle(a,()=>({click:s}),[]),fn("r",()=>{yd()||r&&s();},{exactMatch:!0});const l=Vl(),{shuffleForFav:c,shuffleForWatchLater:u}=cn(),d=l==="dynamic-feed"||l==="watchlater"&&!u||l==="fav"&&!c?"刷新":"换一换",[f,h]=$V(),g=at(v=>(h(f.current,{rotate:[0,360]},{duration:.5,type:"tween"}),e==null?void 0:e()));return be(Qt,{disabled:o,className:t,style:n,css:zr`
        ${Ul}
        &.ant-btn:not(:disabled):focus-visible {
          outline: none;
        }
      `,ref:i,onClick:g,children:[F("svg",{ref:f,style:{width:"11px",height:"11px",marginRight:5},children:F("use",{href:"#widget-roll"})}),F("span",{children:d})]})}),fde={grid:zr`
    /* card=360 col-gap=16  */
    width: ${360*2+20}px;
    margin: 0 auto;
  `};function mde(){const{useNarrowMode:e}=cn(),{modalFeedVisible:t,modalConfigVisible:n}=sde(),r=m.useRef(null),o=m.useRef(null),a=at((...d)=>{var f;return (f=o.current)==null?void 0:f.refresh(...d)}),i=at(()=>{var d;return (d=r.current)==null?void 0:d.scroll()}),[s,l]=m.useState(!1),[c,u]=m.useState(null);return be("section",{"data-area":"推荐",children:[F(NP,{ref:r,refreshing:s,onRefresh:a,leftSlot:c}),F(JI,{ref:o,css:[e&&fde.grid,"",""],shortcutEnabled:!(t||n),infiteScrollUseWindow:!0,onScrollToTop:i,setRefreshing:l,setExtraInfo:u})]})}const hde=Pa.extend("components:SectionRecommend");function gde(){const e=m.useMemo(()=>new Array(20).fill(0).map(()=>crypto.randomUUID()),[]),t=xa(),n=Vl(),{refreshing:r,items:o,refresh:a,error:i,swr:s}=SI({tab:n,debug:hde,fetcher:$ie,recreateService:!1});Dl(a);const l=!o.length||i||r&&!s;return be("section",{"data-area":"推荐",children:[F(NP,{refreshing:r,onRefresh:a}),F("div",{className:W(Jp,Wae,t?kI:_I),style:{marginBottom:t?30:0},children:l?e.map(c=>F(Lu,{},c)):o.map(c=>F(Lu,{item:c},c.uniqId))})]})}Go.extend(UF);const LP=(location.hash||"").startsWith(`#/${nn}/`);(function(){if(location.pathname==="/"||location.pathname==="/index.html")return vde()})();async function vde(){if(ai(".adblock-tips"),Rs("html.gray",e=>e.classList.remove("gray")),!LP&&document.documentElement.classList.contains("bewly-design")){console.warn(`${nn}: quit for using bewly-design`);return}return Et.pureRecommend?bde():pde()}async function pde(){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(xa()&&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 zn(200);}if(!n){console.error(`[${nn}]: init fail`);return}const r=document.createElement("section");r.classList.add(Oa),n(r),Al(r).render(F(up,{injectGlobalStyle:!0,children:F(gde,{})})),xa()&&ai(".bili-feed4 .header-channel");}async function bde(){var a,i;Gv&&await zn(500),xa()?((a=document.querySelector(".bili-feed4 .bili-feed4-layout"))==null||a.remove(),ai(".bili-feed4 .header-channel"),ai(".palette-button-wrap .flexible-roll-btn"),Rs(".palette-button-wrap .storage-box",s=>s.classList.remove("hidden")),Rs(".palette-button-wrap .top-btn-wrap .top-btn",s=>s.classList.add("visible")),Rs(".palette-button-wrap",s=>{s.style.position="absolute";})):((i=document.querySelector(".bili-layout"))==null||i.remove(),ai(".bili-footer"),ai(".palette-button-wrap > .primary-btn",s=>s.innerText.includes("分区"),2e3).then(()=>{document.querySelectorAll(".palette-button-wrap .primary-btn").forEach(s=>{s.classList.remove("hidden"),s.classList.contains("top-btn")&&s.classList.remove("top-btn");});}));let e;const t=document.querySelector(".bili-header");if(t?e=s=>t.insertAdjacentElement("afterend",s):LP&&(e=s=>document.body.appendChild(s)),!e){console.error(`[${nn}]: init fail, no .bili-header found`);return}const n=document.createElement("div");n.classList.add(xa()?"bili-feed4-layout":"bili-layout","pure-recommend"),e(n);const r=document.createElement("section");r.classList.add(Oa),n.appendChild(r),Al(r).render(F(up,{injectGlobalStyle:!0,children:F(mde,{})}));}

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

QingJ © 2025

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