bilibili-app-recommend

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

当前为 2023-05-18 提交的版本,查看 最新版本

// ==UserScript==
// @name         bilibili-app-recommend
// @namespace    https://magicdawn.fun
// @version      0.11.2
// @author       magicdawn
// @description  为B站首页添加像App一样的推荐
// @license      MIT
// @homepageURL  https://greasyfork.org/zh-CN/scripts/443530-bilibili-app-recommend
// @supportURL   https://github.com/magicdawn/bilibili-app-recommend/issues
// @match        *://www.bilibili.com/
// @match        https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png
// @match        *://www.bilibili.com/index.html
// @match        *://www.bilibili.com/?*
// @match        https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png?*
// @match        *://www.bilibili.com/index.html?*
// @require      https://unpkg.com/[email protected]/dist/axios.min.js
// @require      https://unpkg.com/[email protected]/dist/axiosGmxhrAdapter.min.js
// @require      https://unpkg.com/[email protected]/umd/react.production.min.js
// @require      https://unpkg.com/[email protected]/umd/react-dom.production.min.js
// @connect      app.bilibili.com
// @connect      passport.bilibili.com
// @connect      link.acg.tv
// @connect      www.mcbbs.net
// @grant        GM.xmlHttpRequest
// @grant        GM_deleteValue
// @grant        GM_getValue
// @grant        GM_setValue
// @grant        unsafeWindow
// ==/UserScript==

(e=>{const t=document.createElement("style");t.dataset.source="vite-plugin-monkey",t.textContent=e,document.head.append(t)})(" .primary-btn:disabled:active,.primary-btn:disabled:hover{cursor:wait;background-color:inherit}.ant-btn{font-size:13px}.ant-btn:disabled{cursor:wait}._modal-mask_qk630_1{position:fixed;left:0;top:0;right:0;bottom:0;background-color:#00000080;z-index:11003;display:flex;align-items:center;justify-content:center}._modal_qk630_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_qk630_23{padding-top:10px;padding-bottom:10px;border-bottom:none;display:flex;align-items:center}._modal-body_qk630_30{padding-top:0;flex-grow:1;overflow-y:scroll}._modal-title_qk630_35{font-size:1.5rem;margin-bottom:0;line-height:1.5;display:flex;align-items:center}._btn-close_qk630_42{margin-left:10px}._btn-close_qk630_42 svg{width:10px;height:10px;margin-right:3px;margin-top:-1px}body.dark ._btn-close_qk630_42{color:#eee!important;background-color:#333!important;border-color:transparent!important;height:auto;padding:8px 12px;line-height:16px;font-size:13px}._toast-container_1jzhe_1{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:999999;padding:12px 24px;font-size:14px;min-width:200px;width:max-content;max-width:450px;background-color:#ffb243;color:#fff;border-radius:6px;white-space:pre-wrap}._toast-container_1jzhe_1._single-line_1jzhe_17{text-align:center}._modal_1rloz_1{width:500px}._title-desc_1rloz_4{margin-left:5px;font-size:40%}._reason-list_1rloz_8{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between}._reason_1rloz_8{color:inherit;width:48%;text-align:center;line-height:20px;position:relative;border:1px solid #eee;padding-top:5px;padding-bottom:5px;margin-top:5px;margin-bottom:5px}body.dark ._reason_1rloz_8{border:1px solid #333}._reason_1rloz_8._active_1rloz_29{border-color:#f69;border-radius:4px}._reason-no_1rloz_33{position:absolute;left:6px;width:20px;height:20px;border-radius:50%;top:6px;display:flex;align-items:center;justify-content:center;background-color:#6a5acd;background-color:#f69;color:#fff}._tips-container_1rloz_47{margin-top:20px}._tips_1rloz_47{display:flex;align-items:center}._bili-video-card_mlccj_1{position:relative}._image-wrapper_mlccj_4{border-radius:6px;overflow:hidden}._preview-card-wrapper_mlccj_8{position:absolute;top:0;left:0;right:0;bottom:0;z-index:4;overflow:hidden;border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0}._preview-card-wrapper_mlccj_8 ._preview-card-inner_mlccj_21{width:100%;height:100%}._watch-later_mlccj_25{z-index:5}._badge_mlccj_28{color:#fa6a9d;border-radius:2px;border:1px #fa6a9d solid;line-height:20px;padding:0 10px;transform:scale(.8);transform-origin:center left}._recommend-reason_mlccj_37{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:inline-block;color:var(--Or5);background-color:var(--Or1);border-radius:4px;margin-right:4px;font-size:var(--follow-icon-font-size);line-height:var(--follow-icon-line-height);height:var(--follow-icon-line-height);padding:0 4px;cursor:default}._bangumi-desc_mlccj_52{color:default}._btn-dislike_mlccj_55{display:flex;align-items:center;justify-content:center;position:absolute;top:8px;left:8px;width:28px;height:28px;border-radius:6px;cursor:pointer;background-color:#212121cc;z-index:9;transform:translateZ(0)}._btn-dislike_mlccj_55 ._btn-dislike-icon_mlccj_70{pointer-events:none;user-select:none;width:12px;height:12px;color:#fff}._btn-dislike_mlccj_55 ._btn-dislike-tip_mlccj_77{pointer-events:none;user-select:none;position:absolute;bottom:-6px;left:-5px;transform:translateY(100%);font-size:12px;color:#fff;border-radius:4px;line-height:18px;padding:4px 8px;background-color:#000c;white-space:nowrap}._disliked-wrapper_mlccj_92{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;border-radius:6px;border:1px solid #eee}body.dark ._disliked-wrapper_mlccj_92{border:1px solid #333}._disliked-wrapper_mlccj_92 ._dislike-content-cover_mlccj_106{border-top-left-radius:6px;border-top-right-radius:6px;padding-top:56.25%;position:relative}._disliked-wrapper_mlccj_92 ._dislike-content-cover_mlccj_106 ._dislike-content-cover-inner_mlccj_112{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}._disliked-wrapper_mlccj_92 ._dislike-content-cover_mlccj_106 ._dislike-content-cover-inner_mlccj_112 ._dislike-icon_mlccj_123{margin-bottom:5px}._disliked-wrapper_mlccj_92 ._dislike-content-cover_mlccj_106 ._dislike-content-cover-inner_mlccj_112 ._dislike-reason_mlccj_126{font-size:20px;text-align:center}._disliked-wrapper_mlccj_92 ._dislike-content-cover_mlccj_106 ._dislike-content-cover-inner_mlccj_112 ._dislike-desc_mlccj_130{font-size:16px;text-align:center}._disliked-wrapper_mlccj_92 ._dislike-content-action_mlccj_134{flex:1;width:100%;border-top:1px solid #eee;display:flex;align-items:center;justify-content:center}body.dark ._disliked-wrapper_mlccj_92 ._dislike-content-action_mlccj_134{border-top:1px solid #333}._disliked-wrapper_mlccj_92 ._dislike-content-action_mlccj_134 button{font-size:16px;color:inherit;display:flex;align-items:center}._skeleton-active_mlccj_151 .bili-video-card__skeleton--cover,._skeleton-active_mlccj_151 .bili-video-card__skeleton--text,._skeleton-active_mlccj_151 .bili-video-card__skeleton--light{background:linear-gradient(135deg,rgba(0,0,0,.06) 25%,rgba(0,0,0,.15) 37%,rgba(0,0,0,.06) 63%);background-size:400% 100%;animation-name:_ant-skeleton-loading_mlccj_1;animation-duration:1.4s;animation-timing-function:ease;animation-iteration-count:infinite}@keyframes _ant-skeleton-loading_mlccj_1{0%{background-position:100% 50%}to{background-position:0 50%}}._video-grid_tu03i_9{display:grid;position:relative;width:100%;grid-gap:20px 12px}@media (max-width: 1099.9px){._video-grid_tu03i_9{grid-template-columns:repeat(4,1fr)}._video-grid_tu03i_9._limit-two-lines_tu03i_19>*:nth-of-type(1n + 9){display:none!important}}@media (min-width: 1100px) and (max-width: 1700.9px){._video-grid_tu03i_9{grid-template-columns:repeat(5,1fr)}._video-grid_tu03i_9._limit-two-lines_tu03i_19>*:nth-of-type(1n + 11){display:none!important}}@media (min-width: 1701px) and (max-width: 2199.9px){._video-grid_tu03i_9{grid-template-columns:repeat(6,1fr)}._video-grid_tu03i_9._limit-two-lines_tu03i_19>*:nth-of-type(1n + 13){display:none!important}}@media (min-width: 2200px){._video-grid_tu03i_9{grid-template-columns:repeat(7,1fr)}._video-grid_tu03i_9._limit-two-lines_tu03i_19>*:nth-of-type(1n + 15){display:none!important}}._video-grid_tu03i_9._internal-testing_tu03i_51{grid-gap:20px 20px}@media (max-width: 1399.9px){._video-grid_tu03i_9._internal-testing_tu03i_51{grid-template-columns:repeat(4,1fr)}._video-grid_tu03i_9._internal-testing_tu03i_51._limit-one-line_tu03i_58>*:nth-of-type(1n + 5){display:none!important}._video-grid_tu03i_9._internal-testing_tu03i_51._limit-two-lines_tu03i_19>*:nth-of-type(1n + 9){display:none!important}}@media (min-width: 1400px){._video-grid_tu03i_9._internal-testing_tu03i_51{grid-template-columns:repeat(5,1fr)}._video-grid_tu03i_9._internal-testing_tu03i_51._limit-one-line_tu03i_58>*:nth-of-type(1n + 6){display:none!important}._video-grid_tu03i_9._internal-testing_tu03i_51._limit-two-lines_tu03i_19>*:nth-of-type(1n + 11){display:none!important}}._narrow-mode_tu03i_79{grid-template-columns:repeat(2,1fr)!important}._config-icon_1qntb_1{line-height:1;margin-right:5px;font-size:0}._settings-group_1qntb_6{margin-bottom:10px}._settings-group_1qntb_6 ._settings-group-title_1qntb_9{font-size:2em;display:flex;align-items:center}._settings-group_1qntb_6 ._settings-group-sub-title_1qntb_14{font-size:1.3em;display:flex;align-items:center;margin-top:15px}._settings-group_1qntb_6 ._settings-group-content_1qntb_20{color:default}._settings-group_1qntb_6 ._settings-group-content_1qntb_20 button:first-child{margin-left:0}._row_1qntb_26{display:flex;align-items:center;flex-wrap:wrap}._row_1qntb_26 .primary-btn:first-child{margin-left:0}._check_1qntb_34{margin-bottom:5px;margin-inline-start:0!important;margin-inline-end:5px!important}._setting-tabs_1qntb_39.ant-tabs .ant-tabs-tab{padding-left:5px}._tab-pane_1qntb_42{min-height:40vh}._expand-btn_wdzp9_1{padding:0;width:31px;height:31px;border-radius:50%}._expand-btn_wdzp9_1 svg{width:13px;height:13px;transform:rotate(180deg)}._expand-btn_wdzp9_1 svg._expanded_wdzp9_12{transform:rotate(0)}body.dark ._expand-btn_wdzp9_1{color:#eee!important;border-color:transparent!important;background-color:#333!important}body.dark ._expand-btn_wdzp9_1:hover{background-color:#555!important}._modal-mask_7bwzz_1._narrow-mode_7bwzz_1{background-color:#000000e6}._modal_7bwzz_1{width:calc(100vw - 30px);height:calc(100vh - 30px);max-height:unset;padding-right:0}._modal_7bwzz_1._narrow-mode_7bwzz_1{width:606px;height:calc(100vh - 10px);border:none}body.dark ._modal_7bwzz_1._narrow-mode_7bwzz_1{border:none}._modal-header_7bwzz_18,._modal-body_7bwzz_19{padding-right:15px}body.dark ._btn-refresh_7bwzz_22{color:#eee!important;background-color:#333!important;border-color:transparent!important;height:auto;padding:8px 12px;line-height:16px;font-size:13px} ");

(function (f, $o, cf, K1) {
  'use strict';

  function _interopNamespaceDefault(e) {
    const n = Object.create(null, { [Symbol.toStringTag]: { value: 'Module' } });
    if (e) {
      for (const k in e) {
        if (k !== 'default') {
          const d = Object.getOwnPropertyDescriptor(e, k);
          Object.defineProperty(n, k, d.get ? d : {
            enumerable: true,
            get: () => e[k]
          });
        }
      }
    }
    n.default = e;
    return Object.freeze(n);
  }

  const f__namespace = /*#__PURE__*/_interopNamespaceDefault(f);
  const $o__namespace = /*#__PURE__*/_interopNamespaceDefault($o);

  var L1=Object.defineProperty;var F1=(e,t,r)=>t in e?L1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var D1=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var ct=(e,t,r)=>(F1(e,typeof t!="symbol"?t+"":t,r),r),Vc=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var k=(e,t,r)=>(Vc(e,t,"read from private field"),r?r.call(e):t.get(e)),je=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r);},Se=(e,t,r,n)=>(Vc(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),Cs=(e,t,r,n)=>({set _(i){Se(e,t,i,r);},get _(){return k(e,t,n)}}),he=(e,t,r)=>(Vc(e,t,"access private method"),r);var dj=D1((jn,zn)=>{var Pm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Kn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function q1(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){if(this instanceof n){var i=[null];i.push.apply(i,arguments);var o=Function.bind.apply(t,i);return new o}return t.apply(this,arguments)};r.prototype=t.prototype;}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}});}),r}var Tm={exports:{}},zl={};/**
   * @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 X1=f,Y1=Symbol.for("react.element"),Z1=Symbol.for("react.fragment"),Q1=Object.prototype.hasOwnProperty,J1=X1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ew={key:!0,ref:!0,__self:!0,__source:!0};function Rm(e,t,r){var n,i={},o=null,a=null;r!==void 0&&(o=""+r),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(n in t)Q1.call(t,n)&&!ew.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)i[n]===void 0&&(i[n]=t[n]);return {$$typeof:Y1,type:e,key:o,ref:a,props:i,_owner:J1.current}}zl.Fragment=Z1;zl.jsx=Rm;zl.jsxs=Rm;Tm.exports=zl;var Na=Tm.exports;function tw(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 rw(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 nw=function(){function e(r){var n=this;this._insertTag=function(i){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,o),n.tags.push(i);},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null;}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag);},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(rw(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=tw(i);try{o.insertRule(n,o.cssRules.length);}catch{}}else i.appendChild(document.createTextNode(n));this.ctr++;},t.flush=function(){this.tags.forEach(function(n){return n.parentNode&&n.parentNode.removeChild(n)}),this.tags=[],this.ctr=0;},e}(),sr="-ms-",hl="-moz-",ut="-webkit-",Mm="comm",uf="rule",df="decl",iw="@import",Nm="@keyframes",ow="@layer",aw=Math.abs,Hl=String.fromCharCode,sw=Object.assign;function lw(e,t){return ir(e,0)^45?(((t<<2^ir(e,0))<<2^ir(e,1))<<2^ir(e,2))<<2^ir(e,3):0}function Im(e){return e.trim()}function cw(e,t){return (e=t.exec(e))?e[0]:e}function dt(e,t,r){return e.replace(t,r)}function Hu(e,t){return e.indexOf(t)}function ir(e,t){return e.charCodeAt(t)|0}function Ia(e,t,r){return e.slice(t,r)}function gn(e){return e.length}function ff(e){return e.length}function xs(e,t){return t.push(e),e}function uw(e,t){return e.map(t).join("")}var Wl=1,_o=1,Am=0,wr=0,Ut=0,Ao="";function Bl(e,t,r,n,i,o,a){return {value:e,root:t,parent:r,type:n,props:i,children:o,line:Wl,column:_o,length:a,return:""}}function Zo(e,t){return sw(Bl("",null,null,"",null,null,0),e,{length:-e.length},t)}function dw(){return Ut}function fw(){return Ut=wr>0?ir(Ao,--wr):0,_o--,Ut===10&&(_o=1,Wl--),Ut}function Dr(){return Ut=wr<Am?ir(Ao,wr++):0,_o++,Ut===10&&(_o=1,Wl++),Ut}function Sn(){return ir(Ao,wr)}function Gs(){return wr}function ts(e,t){return Ia(Ao,e,t)}function Aa(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 km(e){return Wl=_o=1,Am=gn(Ao=e),wr=0,[]}function Lm(e){return Ao="",e}function Ks(e){return Im(ts(wr-1,Wu(e===91?e+2:e===40?e+1:e)))}function hw(e){for(;(Ut=Sn())&&Ut<33;)Dr();return Aa(e)>2||Aa(Ut)>3?"":" "}function vw(e,t){for(;--t&&Dr()&&!(Ut<48||Ut>102||Ut>57&&Ut<65||Ut>70&&Ut<97););return ts(e,Gs()+(t<6&&Sn()==32&&Dr()==32))}function Wu(e){for(;Dr();)switch(Ut){case e:return wr;case 34:case 39:e!==34&&e!==39&&Wu(Ut);break;case 40:e===41&&Wu(e);break;case 92:Dr();break}return wr}function pw(e,t){for(;Dr()&&e+Ut!==47+10;)if(e+Ut===42+42&&Sn()===47)break;return "/*"+ts(t,wr-1)+"*"+Hl(e===47?e:Dr())}function mw(e){for(;!Aa(Sn());)Dr();return ts(e,wr)}function Fm(e){return Lm(qs("",null,null,null,[""],e=km(e),0,[0],e))}function qs(e,t,r,n,i,o,a,s,l){for(var c=0,u=0,d=a,h=0,v=0,p=0,m=1,g=1,b=1,w=0,S="",E=i,x=o,y=n,C=S;g;)switch(p=w,w=Dr()){case 40:if(p!=108&&ir(C,d-1)==58){Hu(C+=dt(Ks(w),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:C+=Ks(w);break;case 9:case 10:case 13:case 32:C+=hw(p);break;case 92:C+=vw(Gs()-1,7);continue;case 47:switch(Sn()){case 42:case 47:xs(gw(pw(Dr(),Gs()),t,r),l);break;default:C+="/";}break;case 123*m:s[c++]=gn(C)*b;case 125*m:case 59:case 0:switch(w){case 0:case 125:g=0;case 59+u:b==-1&&(C=dt(C,/\f/g,"")),v>0&&gn(C)-d&&xs(v>32?Lh(C+";",n,r,d-1):Lh(dt(C," ","")+";",n,r,d-2),l);break;case 59:C+=";";default:if(xs(y=kh(C,t,r,c,u,i,s,S,E=[],x=[],d),o),w===123)if(u===0)qs(C,t,y,y,E,o,d,s,x);else switch(h===99&&ir(C,3)===110?100:h){case 100:case 108:case 109:case 115:qs(e,y,y,n&&xs(kh(e,y,y,0,0,i,s,S,i,E=[],d),x),i,x,d,s,n?E:x);break;default:qs(C,y,y,y,[""],x,0,s,x);}}c=u=v=0,m=b=1,S=C="",d=a;break;case 58:d=1+gn(C),v=p;default:if(m<1){if(w==123)--m;else if(w==125&&m++==0&&fw()==125)continue}switch(C+=Hl(w),w*m){case 38:b=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(gn(C)-1)*b,b=1;break;case 64:Sn()===45&&(C+=Ks(Dr())),h=Sn(),u=d=gn(S=C+=mw(Gs())),w++;break;case 45:p===45&&gn(C)==2&&(m=0);}}return o}function kh(e,t,r,n,i,o,a,s,l,c,u){for(var d=i-1,h=i===0?o:[""],v=ff(h),p=0,m=0,g=0;p<n;++p)for(var b=0,w=Ia(e,d+1,d=aw(m=a[p])),S=e;b<v;++b)(S=Im(m>0?h[b]+" "+w:dt(w,/&\f/g,h[b])))&&(l[g++]=S);return Bl(e,t,r,i===0?uf:s,l,c,u)}function gw(e,t,r){return Bl(e,t,r,Mm,Hl(dw()),Ia(e,2,-2),0)}function Lh(e,t,r,n){return Bl(e,t,r,df,Ia(e,0,n),Ia(e,n+1,-1),n)}function Ri(e,t){for(var r="",n=ff(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function Dm(e,t,r,n){switch(e.type){case ow:if(e.children.length)break;case iw:case df:return e.return=e.return||e.value;case Mm:return "";case Nm:return e.return=e.value+"{"+Ri(e.children,n)+"}";case uf:e.value=e.props.join(",");}return gn(r=Ri(e.children,n))?e.return=e.value+"{"+r+"}":""}function bw(e){var t=ff(e);return function(r,n,i,o){for(var a="",s=0;s<t;s++)a+=e[s](r,n,i,o)||"";return a}}function yw(e){return function(t){t.root||(t=t.return)&&e(t);}}function ww(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Sw=function(t,r,n){for(var i=0,o=0;i=o,o=Sn(),i===38&&o===12&&(r[n]=1),!Aa(o);)Dr();return ts(t,wr)},Cw=function(t,r){var n=-1,i=44;do switch(Aa(i)){case 0:i===38&&Sn()===12&&(r[n]=1),t[n]+=Sw(wr-1,r,n);break;case 2:t[n]+=Ks(i);break;case 4:if(i===44){t[++n]=Sn()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=Hl(i);}while(i=Dr());return t},xw=function(t,r){return Lm(Cw(km(t),r))},Fh=new WeakMap,Ew=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,i=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Fh.get(n))&&!i){Fh.set(t,!0);for(var o=[],a=xw(r,o),s=n.props,l=0,c=0;l<a.length;l++)for(var u=0;u<s.length;u++,c++)t.props[c]=o[l]?a[l].replace(/&\f/g,s[u]):s[u]+" "+a[l];}}},$w=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="");}};function jm(e,t){switch(lw(e,t)){case 5103:return ut+"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 ut+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ut+e+hl+e+sr+e+e;case 6828:case 4268:return ut+e+sr+e+e;case 6165:return ut+e+sr+"flex-"+e+e;case 5187:return ut+e+dt(e,/(\w+).+(:[^]+)/,ut+"box-$1$2"+sr+"flex-$1$2")+e;case 5443:return ut+e+sr+"flex-item-"+dt(e,/flex-|-self/,"")+e;case 4675:return ut+e+sr+"flex-line-pack"+dt(e,/align-content|flex-|-self/,"")+e;case 5548:return ut+e+sr+dt(e,"shrink","negative")+e;case 5292:return ut+e+sr+dt(e,"basis","preferred-size")+e;case 6060:return ut+"box-"+dt(e,"-grow","")+ut+e+sr+dt(e,"grow","positive")+e;case 4554:return ut+dt(e,/([^-])(transform)/g,"$1"+ut+"$2")+e;case 6187:return dt(dt(dt(e,/(zoom-|grab)/,ut+"$1"),/(image-set)/,ut+"$1"),e,"")+e;case 5495:case 3959:return dt(e,/(image-set\([^]*)/,ut+"$1$`$1");case 4968:return dt(dt(e,/(.+:)(flex-)?(.*)/,ut+"box-pack:$3"+sr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ut+e+e;case 4095:case 3583:case 4068:case 2532:return dt(e,/(.+)-inline(.+)/,ut+"$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(gn(e)-1-t>6)switch(ir(e,t+1)){case 109:if(ir(e,t+4)!==45)break;case 102:return dt(e,/(.+:)(.+)-([^]+)/,"$1"+ut+"$2-$3$1"+hl+(ir(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return ~Hu(e,"stretch")?jm(dt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ir(e,t+1)!==115)break;case 6444:switch(ir(e,gn(e)-3-(~Hu(e,"!important")&&10))){case 107:return dt(e,":",":"+ut)+e;case 101:return dt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ut+(ir(e,14)===45?"inline-":"")+"box$3$1"+ut+"$2$3$1"+sr+"$2box$3")+e}break;case 5936:switch(ir(e,t+11)){case 114:return ut+e+sr+dt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ut+e+sr+dt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ut+e+sr+dt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ut+e+sr+e+e}return e}var _w=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case df:t.return=jm(t.value,t.length);break;case Nm:return Ri([Zo(t,{value:dt(t.value,"@","@"+ut)})],i);case uf:if(t.length)return uw(t.props,function(o){switch(cw(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ri([Zo(t,{props:[dt(o,/:(read-\w+)/,":"+hl+"$1")]})],i);case"::placeholder":return Ri([Zo(t,{props:[dt(o,/:(plac\w+)/,":"+ut+"input-$1")]}),Zo(t,{props:[dt(o,/:(plac\w+)/,":"+hl+"$1")]}),Zo(t,{props:[dt(o,/:(plac\w+)/,sr+"input-$1")]})],i)}return ""})}},Ow=[_w],zm=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(m){var g=m.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""));});}var i=t.stylisPlugins||Ow,o={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),b=1;b<g.length;b++)o[g[b]]=!0;s.push(m);});var l,c=[Ew,$w];{var u,d=[Dm,yw(function(m){u.insert(m);})],h=bw(c.concat(i,d)),v=function(g){return Ri(Fm(g),h)};l=function(g,b,w,S){u=w,v(g?g+"{"+b.styles+"}":b.styles),S&&(p.inserted[b.name]=!0);};}var p={key:r,sheet:new nw({key:r,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:l};return p.sheet.hydrate(s),p};function Ce(){return Ce=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);}return e},Ce.apply(this,arguments)}var Hm={exports:{}},bt={};/** @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 er=typeof Symbol=="function"&&Symbol.for,hf=er?Symbol.for("react.element"):60103,vf=er?Symbol.for("react.portal"):60106,Vl=er?Symbol.for("react.fragment"):60107,Ul=er?Symbol.for("react.strict_mode"):60108,Gl=er?Symbol.for("react.profiler"):60114,Kl=er?Symbol.for("react.provider"):60109,ql=er?Symbol.for("react.context"):60110,pf=er?Symbol.for("react.async_mode"):60111,Xl=er?Symbol.for("react.concurrent_mode"):60111,Yl=er?Symbol.for("react.forward_ref"):60112,Zl=er?Symbol.for("react.suspense"):60113,Pw=er?Symbol.for("react.suspense_list"):60120,Ql=er?Symbol.for("react.memo"):60115,Jl=er?Symbol.for("react.lazy"):60116,Tw=er?Symbol.for("react.block"):60121,Rw=er?Symbol.for("react.fundamental"):60117,Mw=er?Symbol.for("react.responder"):60118,Nw=er?Symbol.for("react.scope"):60119;function jr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case hf:switch(e=e.type,e){case pf:case Xl:case Vl:case Gl:case Ul:case Zl:return e;default:switch(e=e&&e.$$typeof,e){case ql:case Yl:case Jl:case Ql:case Kl:return e;default:return t}}case vf:return t}}}function Wm(e){return jr(e)===Xl}bt.AsyncMode=pf;bt.ConcurrentMode=Xl;bt.ContextConsumer=ql;bt.ContextProvider=Kl;bt.Element=hf;bt.ForwardRef=Yl;bt.Fragment=Vl;bt.Lazy=Jl;bt.Memo=Ql;bt.Portal=vf;bt.Profiler=Gl;bt.StrictMode=Ul;bt.Suspense=Zl;bt.isAsyncMode=function(e){return Wm(e)||jr(e)===pf};bt.isConcurrentMode=Wm;bt.isContextConsumer=function(e){return jr(e)===ql};bt.isContextProvider=function(e){return jr(e)===Kl};bt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===hf};bt.isForwardRef=function(e){return jr(e)===Yl};bt.isFragment=function(e){return jr(e)===Vl};bt.isLazy=function(e){return jr(e)===Jl};bt.isMemo=function(e){return jr(e)===Ql};bt.isPortal=function(e){return jr(e)===vf};bt.isProfiler=function(e){return jr(e)===Gl};bt.isStrictMode=function(e){return jr(e)===Ul};bt.isSuspense=function(e){return jr(e)===Zl};bt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Vl||e===Xl||e===Gl||e===Ul||e===Zl||e===Pw||typeof e=="object"&&e!==null&&(e.$$typeof===Jl||e.$$typeof===Ql||e.$$typeof===Kl||e.$$typeof===ql||e.$$typeof===Yl||e.$$typeof===Rw||e.$$typeof===Mw||e.$$typeof===Nw||e.$$typeof===Tw)};bt.typeOf=jr;Hm.exports=bt;var mf=Hm.exports,Bm=mf,Iw={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Aw={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Vm={};Vm[Bm.ForwardRef]=Iw;Vm[Bm.Memo]=Aw;var kw=!0;function gf(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):n+=i+" ";}),n}var Um=function(t,r,n){var i=t.key+"-"+r.name;(n===!1||kw===!1)&&t.registered[i]===void 0&&(t.registered[i]=r.styles);},Gm=function(t,r,n){Um(t,r,n);var i=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var o=r;do t.insert(r===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function Lw(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&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 Fw={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},Dw=/[A-Z]|^ms/g,jw=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Km=function(t){return t.charCodeAt(1)===45},Dh=function(t){return t!=null&&typeof t!="boolean"},Uc=ww(function(e){return Km(e)?e:e.replace(Dw,"-$&").toLowerCase()}),jh=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(jw,function(n,i,o){return bn={name:i,styles:o,next:bn},i})}return Fw[t]!==1&&!Km(t)&&typeof r=="number"&&r!==0?r+"px":r};function ka(e,t,r){if(r==null)return "";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return "";case"object":{if(r.anim===1)return bn={name:r.name,styles:r.styles,next:bn},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)bn={name:n.name,styles:n.styles,next:bn},n=n.next;var i=r.styles+";";return i}return zw(e,t,r)}case"function":{if(e!==void 0){var o=bn,a=r(e);return bn=o,ka(e,t,a)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function zw(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=ka(e,t,r[i])+";";else for(var o in r){var a=r[o];if(typeof a!="object")t!=null&&t[a]!==void 0?n+=o+"{"+t[a]+"}":Dh(a)&&(n+=Uc(o)+":"+jh(o,a)+";");else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var s=0;s<a.length;s++)Dh(a[s])&&(n+=Uc(o)+":"+jh(o,a[s])+";");else {var l=ka(e,t,a);switch(o){case"animation":case"animationName":{n+=Uc(o)+":"+l+";";break}default:n+=o+"{"+l+"}";}}}return n}var zh=/label:\s*([^\s;\n{]+)\s*(;|$)/g,bn,ma=function(t,r,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var i=!0,o="";bn=void 0;var a=t[0];a==null||a.raw===void 0?(i=!1,o+=ka(n,r,a)):o+=a[0];for(var s=1;s<t.length;s++)o+=ka(n,r,t[s]),i&&(o+=a[s]);zh.lastIndex=0;for(var l="",c;(c=zh.exec(o))!==null;)l+="-"+c[1];var u=Lw(o)+l;return {name:u,styles:o,next:bn}},Hw=function(t){return t()},Ww=f__namespace["useInsertionEffect"]?f__namespace["useInsertionEffect"]:!1,Bw=Ww||Hw,ec={}.hasOwnProperty,qm=f__namespace.createContext(typeof HTMLElement<"u"?zm({key:"css"}):null);qm.Provider;var Vw=function(t){return f.forwardRef(function(r,n){var i=f.useContext(qm);return t(r,i,n)})},Uw=f__namespace.createContext({}),Bu="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Xm=function(t,r){var n={};for(var i in r)ec.call(r,i)&&(n[i]=r[i]);return n[Bu]=t,n},Gw=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return Um(r,n,i),Bw(function(){return Gm(r,n,i)}),null},Kw=Vw(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var i=e[Bu],o=[n],a="";typeof e.className=="string"?a=gf(t.registered,o,e.className):e.className!=null&&(a=e.className+" ");var s=ma(o,void 0,f__namespace.useContext(Uw));a+=t.key+"-"+s.name;var l={};for(var c in e)ec.call(e,c)&&c!=="css"&&c!==Bu&&(l[c]=e[c]);return l.ref=r,l.className=a,f__namespace.createElement(f__namespace.Fragment,null,f__namespace.createElement(Gw,{cache:t,serialized:s,isStringTag:typeof i=="string"}),f__namespace.createElement(i,l))}),Ym=Kw,nr=Na.Fragment;function F(e,t,r){return ec.call(t,"css")?Na.jsx(Ym,Xm(e,t),r):Na.jsx(e,t,r)}function ee(e,t,r){return ec.call(t,"css")?Na.jsxs(Ym,Xm(e,t),r):Na.jsxs(e,t,r)}var Vu={exports:{}},Gc,Hh;function qw(){if(Hh)return Gc;Hh=1;var e=1e3,t=e*60,r=t*60,n=r*24,i=n*7,o=n*365.25;Gc=function(u,d){d=d||{};var h=typeof u;if(h==="string"&&u.length>0)return a(u);if(h==="number"&&isFinite(u))return d.long?l(u):s(u);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(u))};function a(u){if(u=String(u),!(u.length>100)){var d=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(u);if(d){var h=parseFloat(d[1]),v=(d[2]||"ms").toLowerCase();switch(v){case"years":case"year":case"yrs":case"yr":case"y":return h*o;case"weeks":case"week":case"w":return h*i;case"days":case"day":case"d":return h*n;case"hours":case"hour":case"hrs":case"hr":case"h":return h*r;case"minutes":case"minute":case"mins":case"min":case"m":return h*t;case"seconds":case"second":case"secs":case"sec":case"s":return h*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return h;default:return}}}}function s(u){var d=Math.abs(u);return d>=n?Math.round(u/n)+"d":d>=r?Math.round(u/r)+"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>=n?c(u,d,n,"day"):d>=r?c(u,d,r,"hour"):d>=t?c(u,d,t,"minute"):d>=e?c(u,d,e,"second"):u+" ms"}function c(u,d,h,v){var p=d>=h*1.5;return Math.round(u/h)+" "+v+(p?"s":"")}return Gc}function Xw(e){r.debug=r,r.default=r,r.coerce=l,r.disable=o,r.enable=i,r.enabled=a,r.humanize=qw(),r.destroy=c,Object.keys(e).forEach(u=>{r[u]=e[u];}),r.names=[],r.skips=[],r.formatters={};function t(u){let d=0;for(let h=0;h<u.length;h++)d=(d<<5)-d+u.charCodeAt(h),d|=0;return r.colors[Math.abs(d)%r.colors.length]}r.selectColor=t;function r(u){let d,h=null,v,p;function m(...g){if(!m.enabled)return;const b=m,w=Number(new Date),S=w-(d||w);b.diff=S,b.prev=d,b.curr=w,d=w,g[0]=r.coerce(g[0]),typeof g[0]!="string"&&g.unshift("%O");let E=0;g[0]=g[0].replace(/%([a-zA-Z%])/g,(y,C)=>{if(y==="%%")return "%";E++;const R=r.formatters[C];if(typeof R=="function"){const M=g[E];y=R.call(b,M),g.splice(E,1),E--;}return y}),r.formatArgs.call(b,g),(b.log||r.log).apply(b,g);}return m.namespace=u,m.useColors=r.useColors(),m.color=r.selectColor(u),m.extend=n,m.destroy=r.destroy,Object.defineProperty(m,"enabled",{enumerable:!0,configurable:!1,get:()=>h!==null?h:(v!==r.namespaces&&(v=r.namespaces,p=r.enabled(u)),p),set:g=>{h=g;}}),typeof r.init=="function"&&r.init(m),m}function n(u,d){const h=r(this.namespace+(typeof d>"u"?":":d)+u);return h.log=this.log,h}function i(u){r.save(u),r.namespaces=u,r.names=[],r.skips=[];let d;const h=(typeof u=="string"?u:"").split(/[\s,]+/),v=h.length;for(d=0;d<v;d++)h[d]&&(u=h[d].replace(/\*/g,".*?"),u[0]==="-"?r.skips.push(new RegExp("^"+u.slice(1)+"$")):r.names.push(new RegExp("^"+u+"$")));}function o(){const u=[...r.names.map(s),...r.skips.map(s).map(d=>"-"+d)].join(",");return r.enable(""),u}function a(u){if(u[u.length-1]==="*")return !0;let d,h;for(d=0,h=r.skips.length;d<h;d++)if(r.skips[d].test(u))return !1;for(d=0,h=r.names.length;d<h;d++)if(r.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 r.enable(r.load()),r}var Yw=Xw;(function(e,t){t.formatArgs=n,t.save=i,t.load=o,t.useColors=r,t.storage=a(),t.destroy=(()=>{let l=!1;return ()=>{l||(l=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."));}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function 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 n(l){if(l[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+l[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const c="color: "+this.color;l.splice(1,0,c,"color: inherit");let u=0,d=0;l[0].replace(/%[a-zA-Z%]/g,h=>{h!=="%%"&&(u++,h==="%c"&&(d=u));}),l.splice(d,0,c);}t.log=console.debug||console.log||(()=>{});function i(l){try{l?t.storage.setItem("debug",l):t.storage.removeItem("debug");}catch{}}function o(){let l;try{l=t.storage.getItem("debug");}catch{}return !l&&typeof process<"u"&&"env"in process&&(l={}.DEBUG),l}function a(){try{return localStorage}catch{}}e.exports=Yw(t);const{formatters:s}=e.exports;s.j=function(l){try{return JSON.stringify(l)}catch(c){return "[UnexpectedJSONParseError]: "+c.message}};})(Vu,Vu.exports);var Zw=Vu.exports;const Qw=Kn(Zw),di="bilibili-app-recommend",Jw="bilibili_app_recommend",Zm=Qw(di);var eS=typeof global=="object"&&global&&global.Object===Object&&global;const Qm=eS;var tS=typeof self=="object"&&self&&self.Object===Object&&self,rS=Qm||tS||Function("return this")();const Pn=rS;var nS=Pn.Symbol;const En=nS;var Jm=Object.prototype,iS=Jm.hasOwnProperty,oS=Jm.toString,Qo=En?En.toStringTag:void 0;function aS(e){var t=iS.call(e,Qo),r=e[Qo];try{e[Qo]=void 0;var n=!0;}catch{}var i=oS.call(e);return n&&(t?e[Qo]=r:delete e[Qo]),i}var sS=Object.prototype,lS=sS.toString;function cS(e){return lS.call(e)}var uS="[object Null]",dS="[object Undefined]",Wh=En?En.toStringTag:void 0;function ko(e){return e==null?e===void 0?dS:uS:Wh&&Wh in Object(e)?aS(e):cS(e)}function Oo(e){return e!=null&&typeof e=="object"}var fS="[object Symbol]";function tc(e){return typeof e=="symbol"||Oo(e)&&ko(e)==fS}function hS(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var vS=Array.isArray;const $n=vS;var pS=1/0,Bh=En?En.prototype:void 0,Vh=Bh?Bh.toString:void 0;function eg(e){if(typeof e=="string")return e;if($n(e))return hS(e,eg)+"";if(tc(e))return Vh?Vh.call(e):"";var t=e+"";return t=="0"&&1/e==-pS?"-0":t}var mS=/\s/;function gS(e){for(var t=e.length;t--&&mS.test(e.charAt(t)););return t}var bS=/^\s+/;function yS(e){return e&&e.slice(0,gS(e)+1).replace(bS,"")}function Vn(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Uh=0/0,wS=/^[-+]0x[0-9a-f]+$/i,SS=/^0b[01]+$/i,CS=/^0o[0-7]+$/i,xS=parseInt;function Uu(e){if(typeof e=="number")return e;if(tc(e))return Uh;if(Vn(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Vn(t)?t+"":t;}if(typeof e!="string")return e===0?e:+e;e=yS(e);var r=SS.test(e);return r||CS.test(e)?xS(e.slice(2),r?2:8):wS.test(e)?Uh:+e}var Gh=1/0,ES=17976931348623157e292;function $S(e){if(!e)return e===0?e:0;if(e=Uu(e),e===Gh||e===-Gh){var t=e<0?-1:1;return t*ES}return e===e?e:0}function _S(e){var t=$S(e),r=t%1;return t===t?r?t-r:t:0}function tg(e){return e}var OS="[object AsyncFunction]",PS="[object Function]",TS="[object GeneratorFunction]",RS="[object Proxy]";function rg(e){if(!Vn(e))return !1;var t=ko(e);return t==PS||t==TS||t==OS||t==RS}var MS=Pn["__core-js_shared__"];const Kc=MS;var Kh=function(){var e=/[^.]+$/.exec(Kc&&Kc.keys&&Kc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function NS(e){return !!Kh&&Kh in e}var IS=Function.prototype,AS=IS.toString;function Li(e){if(e!=null){try{return AS.call(e)}catch{}try{return e+""}catch{}}return ""}var kS=/[\\^$.*+?()[\]{}|]/g,LS=/^\[object .+?Constructor\]$/,FS=Function.prototype,DS=Object.prototype,jS=FS.toString,zS=DS.hasOwnProperty,HS=RegExp("^"+jS.call(zS).replace(kS,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function WS(e){if(!Vn(e)||NS(e))return !1;var t=rg(e)?HS:LS;return t.test(Li(e))}function BS(e,t){return e==null?void 0:e[t]}function Fi(e,t){var r=BS(e,t);return WS(r)?r:void 0}var VS=Fi(Pn,"WeakMap");const Gu=VS;function US(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function GS(){}var KS=800,qS=16,XS=Date.now;function YS(e){var t=0,r=0;return function(){var n=XS(),i=qS-(n-r);if(r=n,i>0){if(++t>=KS)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function ZS(e){return function(){return e}}var QS=function(){try{var e=Fi(Object,"defineProperty");return e({},"",{}),e}catch{}}();const vl=QS;var JS=vl?function(e,t){return vl(e,"toString",{configurable:!0,enumerable:!1,value:ZS(t),writable:!0})}:tg;const eC=JS;var tC=YS(eC);const rC=tC;function nC(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o<i;)if(t(e[o],o,e))return o;return -1}function iC(e){return e!==e}function oC(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return -1}function aC(e,t,r){return t===t?oC(e,t,r):nC(e,iC,r)}function sC(e,t){var r=e==null?0:e.length;return !!r&&aC(e,t,0)>-1}var lC=9007199254740991,cC=/^(?:0|[1-9]\d*)$/;function bf(e,t){var r=typeof e;return t=t??lC,!!t&&(r=="number"||r!="symbol"&&cC.test(e))&&e>-1&&e%1==0&&e<t}function uC(e,t,r){t=="__proto__"&&vl?vl(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r;}function yf(e,t){return e===t||e!==e&&t!==t}var dC=Object.prototype,fC=dC.hasOwnProperty;function hC(e,t,r){var n=e[t];(!(fC.call(e,t)&&yf(n,r))||r===void 0&&!(t in e))&&uC(e,t,r);}var qh=Math.max;function vC(e,t,r){return t=qh(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=qh(n.length-t,0),a=Array(o);++i<o;)a[i]=n[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=n[i];return s[t]=r(a),US(e,this,s)}}var pC=9007199254740991;function wf(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=pC}function mC(e){return e!=null&&wf(e.length)&&!rg(e)}var gC=Object.prototype;function bC(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||gC;return e===r}function yC(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var wC="[object Arguments]";function Xh(e){return Oo(e)&&ko(e)==wC}var ng=Object.prototype,SC=ng.hasOwnProperty,CC=ng.propertyIsEnumerable,xC=Xh(function(){return arguments}())?Xh:function(e){return Oo(e)&&SC.call(e,"callee")&&!CC.call(e,"callee")};const Sf=xC;function EC(){return !1}var ig=typeof jn=="object"&&jn&&!jn.nodeType&&jn,Yh=ig&&typeof zn=="object"&&zn&&!zn.nodeType&&zn,$C=Yh&&Yh.exports===ig,Zh=$C?Pn.Buffer:void 0,_C=Zh?Zh.isBuffer:void 0,OC=_C||EC;const Ku=OC;var PC="[object Arguments]",TC="[object Array]",RC="[object Boolean]",MC="[object Date]",NC="[object Error]",IC="[object Function]",AC="[object Map]",kC="[object Number]",LC="[object Object]",FC="[object RegExp]",DC="[object Set]",jC="[object String]",zC="[object WeakMap]",HC="[object ArrayBuffer]",WC="[object DataView]",BC="[object Float32Array]",VC="[object Float64Array]",UC="[object Int8Array]",GC="[object Int16Array]",KC="[object Int32Array]",qC="[object Uint8Array]",XC="[object Uint8ClampedArray]",YC="[object Uint16Array]",ZC="[object Uint32Array]",Tt={};Tt[BC]=Tt[VC]=Tt[UC]=Tt[GC]=Tt[KC]=Tt[qC]=Tt[XC]=Tt[YC]=Tt[ZC]=!0;Tt[PC]=Tt[TC]=Tt[HC]=Tt[RC]=Tt[WC]=Tt[MC]=Tt[NC]=Tt[IC]=Tt[AC]=Tt[kC]=Tt[LC]=Tt[FC]=Tt[DC]=Tt[jC]=Tt[zC]=!1;function QC(e){return Oo(e)&&wf(e.length)&&!!Tt[ko(e)]}function JC(e){return function(t){return e(t)}}var og=typeof jn=="object"&&jn&&!jn.nodeType&&jn,ga=og&&typeof zn=="object"&&zn&&!zn.nodeType&&zn,ex=ga&&ga.exports===og,qc=ex&&Qm.process,tx=function(){try{var e=ga&&ga.require&&ga.require("util").types;return e||qc&&qc.binding&&qc.binding("util")}catch{}}();const Qh=tx;var Jh=Qh&&Qh.isTypedArray,rx=Jh?JC(Jh):QC;const ag=rx;var nx=Object.prototype,ix=nx.hasOwnProperty;function ox(e,t){var r=$n(e),n=!r&&Sf(e),i=!r&&!n&&Ku(e),o=!r&&!n&&!i&&ag(e),a=r||n||i||o,s=a?yC(e.length,String):[],l=s.length;for(var c in e)(t||ix.call(e,c))&&!(a&&(c=="length"||i&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||bf(c,l)))&&s.push(c);return s}function ax(e,t){return function(r){return e(t(r))}}var sx=ax(Object.keys,Object);const lx=sx;var cx=Object.prototype,ux=cx.hasOwnProperty;function dx(e){if(!bC(e))return lx(e);var t=[];for(var r in Object(e))ux.call(e,r)&&r!="constructor"&&t.push(r);return t}function sg(e){return mC(e)?ox(e):dx(e)}var fx=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,hx=/^\w*$/;function Cf(e,t){if($n(e))return !1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||tc(e)?!0:hx.test(e)||!fx.test(e)||t!=null&&e in Object(t)}var vx=Fi(Object,"create");const La=vx;function px(){this.__data__=La?La(null):{},this.size=0;}function mx(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var gx="__lodash_hash_undefined__",bx=Object.prototype,yx=bx.hasOwnProperty;function wx(e){var t=this.__data__;if(La){var r=t[e];return r===gx?void 0:r}return yx.call(t,e)?t[e]:void 0}var Sx=Object.prototype,Cx=Sx.hasOwnProperty;function xx(e){var t=this.__data__;return La?t[e]!==void 0:Cx.call(t,e)}var Ex="__lodash_hash_undefined__";function $x(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=La&&t===void 0?Ex:t,this}function Ai(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1]);}}Ai.prototype.clear=px;Ai.prototype.delete=mx;Ai.prototype.get=wx;Ai.prototype.has=xx;Ai.prototype.set=$x;function _x(){this.__data__=[],this.size=0;}function rc(e,t){for(var r=e.length;r--;)if(yf(e[r][0],t))return r;return -1}var Ox=Array.prototype,Px=Ox.splice;function Tx(e){var t=this.__data__,r=rc(t,e);if(r<0)return !1;var n=t.length-1;return r==n?t.pop():Px.call(t,r,1),--this.size,!0}function Rx(e){var t=this.__data__,r=rc(t,e);return r<0?void 0:t[r][1]}function Mx(e){return rc(this.__data__,e)>-1}function Nx(e,t){var r=this.__data__,n=rc(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function qn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1]);}}qn.prototype.clear=_x;qn.prototype.delete=Tx;qn.prototype.get=Rx;qn.prototype.has=Mx;qn.prototype.set=Nx;var Ix=Fi(Pn,"Map");const Fa=Ix;function Ax(){this.size=0,this.__data__={hash:new Ai,map:new(Fa||qn),string:new Ai};}function kx(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function nc(e,t){var r=e.__data__;return kx(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Lx(e){var t=nc(this,e).delete(e);return this.size-=t?1:0,t}function Fx(e){return nc(this,e).get(e)}function Dx(e){return nc(this,e).has(e)}function jx(e,t){var r=nc(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Xn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1]);}}Xn.prototype.clear=Ax;Xn.prototype.delete=Lx;Xn.prototype.get=Fx;Xn.prototype.has=Dx;Xn.prototype.set=jx;var zx="Expected a function";function xf(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(zx);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(xf.Cache||Xn),r}xf.Cache=Xn;var Hx=500;function Wx(e){var t=xf(e,function(n){return r.size===Hx&&r.clear(),n}),r=t.cache;return t}var Bx=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Vx=/\\(\\)?/g,Ux=Wx(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Bx,function(r,n,i,o){t.push(i?o.replace(Vx,"$1"):n||r);}),t});const Gx=Ux;function Kx(e){return e==null?"":eg(e)}function ic(e,t){return $n(e)?e:Cf(e,t)?[e]:Gx(Kx(e))}var qx=1/0;function rs(e){if(typeof e=="string"||tc(e))return e;var t=e+"";return t=="0"&&1/e==-qx?"-0":t}function Ef(e,t){t=ic(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[rs(t[r++])];return r&&r==n?e:void 0}function Xx(e,t,r){var n=e==null?void 0:Ef(e,t);return n===void 0?r:n}function lg(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var ev=En?En.isConcatSpreadable:void 0;function Yx(e){return $n(e)||Sf(e)||!!(ev&&e&&e[ev])}function cg(e,t,r,n,i){var o=-1,a=e.length;for(r||(r=Yx),i||(i=[]);++o<a;){var s=e[o];t>0&&r(s)?t>1?cg(s,t-1,r,n,i):lg(i,s):n||(i[i.length]=s);}return i}function Zx(e){var t=e==null?0:e.length;return t?cg(e,1):[]}function Qx(e){return rC(vC(e,void 0,Zx),e+"")}var Jx="Expected a function";function eE(e,t){var r;if(typeof t!="function")throw new TypeError(Jx);return e=_S(e),function(){return --e>0&&(r=t.apply(this,arguments)),e<=1&&(t=void 0),r}}function tE(){this.__data__=new qn,this.size=0;}function rE(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function nE(e){return this.__data__.get(e)}function iE(e){return this.__data__.has(e)}var oE=200;function aE(e,t){var r=this.__data__;if(r instanceof qn){var n=r.__data__;if(!Fa||n.length<oE-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Xn(n);}return r.set(e,t),this.size=r.size,this}function Hn(e){var t=this.__data__=new qn(e);this.size=t.size;}Hn.prototype.clear=tE;Hn.prototype.delete=rE;Hn.prototype.get=nE;Hn.prototype.has=iE;Hn.prototype.set=aE;function sE(e,t){for(var r=-1,n=e==null?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a);}return o}function lE(){return []}var cE=Object.prototype,uE=cE.propertyIsEnumerable,tv=Object.getOwnPropertySymbols,dE=tv?function(e){return e==null?[]:(e=Object(e),sE(tv(e),function(t){return uE.call(e,t)}))}:lE;const fE=dE;function hE(e,t,r){var n=t(e);return $n(e)?n:lg(n,r(e))}function rv(e){return hE(e,sg,fE)}var vE=Fi(Pn,"DataView");const qu=vE;var pE=Fi(Pn,"Promise");const Xu=pE;var mE=Fi(Pn,"Set");const vo=mE;var nv="[object Map]",gE="[object Object]",iv="[object Promise]",ov="[object Set]",av="[object WeakMap]",sv="[object DataView]",bE=Li(qu),yE=Li(Fa),wE=Li(Xu),SE=Li(vo),CE=Li(Gu),yi=ko;(qu&&yi(new qu(new ArrayBuffer(1)))!=sv||Fa&&yi(new Fa)!=nv||Xu&&yi(Xu.resolve())!=iv||vo&&yi(new vo)!=ov||Gu&&yi(new Gu)!=av)&&(yi=function(e){var t=ko(e),r=t==gE?e.constructor:void 0,n=r?Li(r):"";if(n)switch(n){case bE:return sv;case yE:return nv;case wE:return iv;case SE:return ov;case CE:return av}return t});const lv=yi;var xE=Pn.Uint8Array;const cv=xE;var EE="__lodash_hash_undefined__";function $E(e){return this.__data__.set(e,EE),this}function _E(e){return this.__data__.has(e)}function Da(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Xn;++t<r;)this.add(e[t]);}Da.prototype.add=Da.prototype.push=$E;Da.prototype.has=_E;function OE(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return !0;return !1}function ug(e,t){return e.has(t)}var PE=1,TE=2;function dg(e,t,r,n,i,o){var a=r&PE,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return !1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var d=-1,h=!0,v=r&TE?new Da:void 0;for(o.set(e,t),o.set(t,e);++d<s;){var p=e[d],m=t[d];if(n)var g=a?n(m,p,d,t,e,o):n(p,m,d,e,t,o);if(g!==void 0){if(g)continue;h=!1;break}if(v){if(!OE(t,function(b,w){if(!ug(v,w)&&(p===b||i(p,b,r,n,o)))return v.push(w)})){h=!1;break}}else if(!(p===m||i(p,m,r,n,o))){h=!1;break}}return o.delete(e),o.delete(t),h}function RE(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n];}),r}function $f(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n;}),r}var ME=1,NE=2,IE="[object Boolean]",AE="[object Date]",kE="[object Error]",LE="[object Map]",FE="[object Number]",DE="[object RegExp]",jE="[object Set]",zE="[object String]",HE="[object Symbol]",WE="[object ArrayBuffer]",BE="[object DataView]",uv=En?En.prototype:void 0,Xc=uv?uv.valueOf:void 0;function VE(e,t,r,n,i,o,a){switch(r){case BE:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return !1;e=e.buffer,t=t.buffer;case WE:return !(e.byteLength!=t.byteLength||!o(new cv(e),new cv(t)));case IE:case AE:case FE:return yf(+e,+t);case kE:return e.name==t.name&&e.message==t.message;case DE:case zE:return e==t+"";case LE:var s=RE;case jE:var l=n&ME;if(s||(s=$f),e.size!=t.size&&!l)return !1;var c=a.get(e);if(c)return c==t;n|=NE,a.set(e,t);var u=dg(s(e),s(t),n,i,o,a);return a.delete(e),u;case HE:if(Xc)return Xc.call(e)==Xc.call(t)}return !1}var UE=1,GE=Object.prototype,KE=GE.hasOwnProperty;function qE(e,t,r,n,i,o){var a=r&UE,s=rv(e),l=s.length,c=rv(t),u=c.length;if(l!=u&&!a)return !1;for(var d=l;d--;){var h=s[d];if(!(a?h in t:KE.call(t,h)))return !1}var v=o.get(e),p=o.get(t);if(v&&p)return v==t&&p==e;var m=!0;o.set(e,t),o.set(t,e);for(var g=a;++d<l;){h=s[d];var b=e[h],w=t[h];if(n)var S=a?n(w,b,h,t,e,o):n(b,w,h,e,t,o);if(!(S===void 0?b===w||i(b,w,r,n,o):S)){m=!1;break}g||(g=h=="constructor");}if(m&&!g){var E=e.constructor,x=t.constructor;E!=x&&"constructor"in e&&"constructor"in t&&!(typeof E=="function"&&E instanceof E&&typeof x=="function"&&x instanceof x)&&(m=!1);}return o.delete(e),o.delete(t),m}var XE=1,dv="[object Arguments]",fv="[object Array]",Es="[object Object]",YE=Object.prototype,hv=YE.hasOwnProperty;function ZE(e,t,r,n,i,o){var a=$n(e),s=$n(t),l=a?fv:lv(e),c=s?fv:lv(t);l=l==dv?Es:l,c=c==dv?Es:c;var u=l==Es,d=c==Es,h=l==c;if(h&&Ku(e)){if(!Ku(t))return !1;a=!0,u=!1;}if(h&&!u)return o||(o=new Hn),a||ag(e)?dg(e,t,r,n,i,o):VE(e,t,l,r,n,i,o);if(!(r&XE)){var v=u&&hv.call(e,"__wrapped__"),p=d&&hv.call(t,"__wrapped__");if(v||p){var m=v?e.value():e,g=p?t.value():t;return o||(o=new Hn),i(m,g,r,n,o)}}return h?(o||(o=new Hn),qE(e,t,r,n,i,o)):!1}function oc(e,t,r,n,i){return e===t?!0:e==null||t==null||!Oo(e)&&!Oo(t)?e!==e&&t!==t:ZE(e,t,r,n,oc,i)}var QE=1,JE=2;function e$(e,t,r,n){var i=r.length,o=i,a=!n;if(e==null)return !o;for(e=Object(e);i--;){var s=r[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return !1}for(;++i<o;){s=r[i];var l=s[0],c=e[l],u=s[1];if(a&&s[2]){if(c===void 0&&!(l in e))return !1}else {var d=new Hn;if(n)var h=n(c,u,l,e,t,d);if(!(h===void 0?oc(u,c,QE|JE,n,d):h))return !1}}return !0}function fg(e){return e===e&&!Vn(e)}function t$(e){for(var t=sg(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,fg(i)];}return t}function hg(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function r$(e){var t=t$(e);return t.length==1&&t[0][2]?hg(t[0][0],t[0][1]):function(r){return r===e||e$(r,e,t)}}function n$(e,t){return e!=null&&t in Object(e)}function i$(e,t,r){t=ic(t,e);for(var n=-1,i=t.length,o=!1;++n<i;){var a=rs(t[n]);if(!(o=e!=null&&r(e,a)))break;e=e[a];}return o||++n!=i?o:(i=e==null?0:e.length,!!i&&wf(i)&&bf(a,i)&&($n(e)||Sf(e)))}function vg(e,t){return e!=null&&i$(e,t,n$)}var o$=1,a$=2;function s$(e,t){return Cf(e)&&fg(t)?hg(rs(e),t):function(r){var n=Xx(r,e);return n===void 0&&n===t?vg(r,e):oc(t,n,o$|a$)}}function l$(e){return function(t){return t==null?void 0:t[e]}}function c$(e){return function(t){return Ef(t,e)}}function u$(e){return Cf(e)?l$(rs(e)):c$(e)}function d$(e){return typeof e=="function"?e:e==null?tg:typeof e=="object"?$n(e)?s$(e[0],e[1]):r$(e):u$(e)}var f$=function(){return Pn.Date.now()};const Yc=f$;var h$="Expected a function",v$=Math.max,p$=Math.min;function pg(e,t,r){var n,i,o,a,s,l,c=0,u=!1,d=!1,h=!0;if(typeof e!="function")throw new TypeError(h$);t=Uu(t)||0,Vn(r)&&(u=!!r.leading,d="maxWait"in r,o=d?v$(Uu(r.maxWait)||0,t):o,h="trailing"in r?!!r.trailing:h);function v(y){var C=n,R=i;return n=i=void 0,c=y,a=e.apply(R,C),a}function p(y){return c=y,s=setTimeout(b,t),u?v(y):a}function m(y){var C=y-l,R=y-c,M=t-C;return d?p$(M,o-R):M}function g(y){var C=y-l,R=y-c;return l===void 0||C>=t||C<0||d&&R>=o}function b(){var y=Yc();if(g(y))return w(y);s=setTimeout(b,m(y));}function w(y){return s=void 0,h&&n?v(y):(n=i=void 0,a)}function S(){s!==void 0&&clearTimeout(s),c=0,n=l=i=s=void 0;}function E(){return s===void 0?a:w(Yc())}function x(){var y=Yc(),C=g(y);if(n=arguments,i=this,l=y,C){if(s===void 0)return p(l);if(d)return clearTimeout(s),s=setTimeout(b,t),v(l)}return s===void 0&&(s=setTimeout(b,t)),a}return x.cancel=S,x.flush=E,x}function m$(e,t,r){for(var n=-1,i=e==null?0:e.length;++n<i;)if(r(t,e[n]))return !0;return !1}function g$(e,t){return oc(e,t)}function b$(e,t,r,n){if(!Vn(e))return e;t=ic(t,e);for(var i=-1,o=t.length,a=o-1,s=e;s!=null&&++i<o;){var l=rs(t[i]),c=r;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(i!=a){var u=s[l];c=n?n(u,l,s):void 0,c===void 0&&(c=Vn(u)?u:bf(t[i+1])?[]:{});}hC(s,l,c),s=s[l];}return e}function y$(e,t,r){for(var n=-1,i=t.length,o={};++n<i;){var a=t[n],s=Ef(e,a);r(s,a)&&b$(o,ic(a,e),s);}return o}function w$(e){return eE(2,e)}function S$(e,t){return y$(e,t,function(r,n){return vg(e,n)})}var C$=Qx(function(e,t){return e==null?{}:S$(e,t)});const mg=C$;var x$="Expected a function";function E$(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(x$);return Vn(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),pg(e,t,{leading:n,maxWait:t,trailing:i})}var $$=1/0,_$=vo&&1/$f(new vo([,-0]))[1]==$$?function(e){return new vo(e)}:GS;const O$=_$;var P$=200;function T$(e,t,r){var n=-1,i=sC,o=e.length,a=!0,s=[],l=s;if(r)a=!1,i=m$;else if(o>=P$){var c=t?null:O$(e);if(c)return $f(c);a=!1,i=ug,l=new Da;}else l=t?[]:s;e:for(;++n<o;){var u=e[n],d=t?t(u):u;if(u=r||u!==0?u:0,a&&d===d){for(var h=l.length;h--;)if(l[h]===d)continue e;t&&l.push(d),s.push(u);}else i(l,d,r)||(l!==s&&l.push(d),s.push(u));}return s}function ac(e,t){return e&&e.length?T$(e,d$(t)):[]}const R$=Symbol(),_f=Symbol(),Jo="a",ba="w";let M$=(e,t)=>new Proxy(e,t);const Yu=Object.getPrototypeOf,Zu=new WeakMap,gg=e=>e&&(Zu.has(e)?Zu.get(e):Yu(e)===Object.prototype||Yu(e)===Array.prototype),pl=e=>typeof e=="object"&&e!==null,N$=e=>{if(Array.isArray(e))return Array.from(e);const t=Object.getOwnPropertyDescriptors(e);return Object.values(t).forEach(r=>{r.configurable=!0;}),Object.create(Yu(e),t)},Of=e=>e[_f]||e,bg=(e,t,r,n)=>{if(!gg(e))return e;let i=n&&n.get(e);if(!i){const l=Of(e);i=(c=>Object.values(Object.getOwnPropertyDescriptors(c)).some(u=>!u.configurable&&!u.writable))(l)?[l,N$(l)]:[l],n==null||n.set(e,i);}const[o,a]=i;let s=r&&r.get(o);return s&&s[1].f===!!a||(s=((l,c)=>{const u={f:c};let d=!1;const h=(p,m)=>{if(!d){let g=u[Jo].get(l);if(g||(g={},u[Jo].set(l,g)),p===ba)g[ba]=!0;else {let b=g[p];b||(b=new Set,g[p]=b),b.add(m);}}},v={get:(p,m)=>m===_f?l:(h("k",m),bg(Reflect.get(p,m),u[Jo],u.c,u.t)),has:(p,m)=>m===R$?(d=!0,u[Jo].delete(l),!0):(h("h",m),Reflect.has(p,m)),getOwnPropertyDescriptor:(p,m)=>(h("o",m),Reflect.getOwnPropertyDescriptor(p,m)),ownKeys:p=>(h(ba),Reflect.ownKeys(p))};return c&&(v.set=v.deleteProperty=()=>!1),[v,u]})(o,!!a),s[1].p=M$(a||o,s[0]),r&&r.set(o,s)),s[1][Jo]=t,s[1].c=r,s[1].t=n,s[1].p},yg=(e,t,r,n)=>{if(Object.is(e,t))return !1;if(!pl(e)||!pl(t))return !0;const i=r.get(Of(e));if(!i)return !0;if(n){const a=n.get(e);if(a&&a.n===t)return a.g;n.set(e,{n:t,g:!1});}let o=null;try{for(const a of i.h||[])if(o=Reflect.has(e,a)!==Reflect.has(t,a),o)return o;if(i[ba]===!0){if(o=((a,s)=>{const l=Reflect.ownKeys(a),c=Reflect.ownKeys(s);return l.length!==c.length||l.some((u,d)=>u!==c[d])})(e,t),o)return o}else for(const a of i.o||[])if(o=!!Reflect.getOwnPropertyDescriptor(e,a)!=!!Reflect.getOwnPropertyDescriptor(t,a),o)return o;for(const a of i.k||[])if(o=yg(e[a],t[a],r,n),o)return o;return o===null&&(o=!0),o}finally{n&&n.set(e,{n:t,g:o});}},I$=e=>gg(e)&&e[_f]||null,vv=(e,t=!0)=>{Zu.set(e,t);},A$=(e,t,r)=>{const n=[],i=new WeakSet,o=(a,s)=>{if(i.has(a))return;pl(a)&&i.add(a);const l=pl(a)&&t.get(Of(a));if(l){var c,u;if((c=l.h)==null||c.forEach(h=>{const v=`:has(${String(h)})`;n.push(s?[...s,v]:[v]);}),l[ba]===!0){const h=":ownKeys";n.push(s?[...s,h]:[h]);}else {var d;(d=l.o)==null||d.forEach(h=>{const v=`:hasOwn(${String(h)})`;n.push(s?[...s,v]:[v]);});}(u=l.k)==null||u.forEach(h=>{r&&!("value"in(Object.getOwnPropertyDescriptor(a,h)||{}))||o(a[h],s?[...s,h]:[h]);});}else s&&n.push(s);};return o(e),n},Zc=e=>typeof e=="object"&&e!==null,oi=new WeakMap,$s=new WeakSet,k$=(e=Object.is,t=(c,u)=>new Proxy(c,u),r=c=>Zc(c)&&!$s.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),n=c=>{switch(c.status){case"fulfilled":return c.value;case"rejected":throw c.reason;default:throw c}},i=new WeakMap,o=(c,u,d=n)=>{const h=i.get(c);if((h==null?void 0:h[0])===u)return h[1];const v=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c));return vv(v,!0),i.set(c,[u,v]),Reflect.ownKeys(c).forEach(p=>{if(Object.getOwnPropertyDescriptor(v,p))return;const m=Reflect.get(c,p),g={value:m,enumerable:!0,configurable:!0};if($s.has(m))vv(m,!1);else if(m instanceof Promise)delete g.value,g.get=()=>d(m);else if(oi.has(m)){const[b,w]=oi.get(m);g.value=o(b,w(),d);}Object.defineProperty(v,p,g);}),v},a=new WeakMap,s=[1,1],l=c=>{if(!Zc(c))throw new Error("object required");const u=a.get(c);if(u)return u;let d=s[0];const h=new Set,v=(M,O=++s[0])=>{d!==O&&(d=O,h.forEach(N=>N(M,O)));};let p=s[1];const m=(M=++s[1])=>(p!==M&&!h.size&&(p=M,b.forEach(([O])=>{const N=O[1](M);N>d&&(d=N);})),d),g=M=>(O,N)=>{const _=[...O];_[1]=[M,..._[1]],v(_,N);},b=new Map,w=(M,O)=>{if(({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&b.has(M))throw new Error("prop listener already exists");if(h.size){const N=O[3](g(M));b.set(M,[O,N]);}else b.set(M,[O]);},S=M=>{var O;const N=b.get(M);N&&(b.delete(M),(O=N[1])==null||O.call(N));},E=M=>(h.add(M),h.size===1&&b.forEach(([N,_],$)=>{if(({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&_)throw new Error("remove already exists");const P=N[3](g($));b.set($,[N,P]);}),()=>{h.delete(M),h.size===0&&b.forEach(([N,_],$)=>{_&&(_(),b.set($,[N]));});}),x=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c)),C=t(x,{deleteProperty(M,O){const N=Reflect.get(M,O);S(O);const _=Reflect.deleteProperty(M,O);return _&&v(["delete",[O],N]),_},set(M,O,N,_){const $=Reflect.has(M,O),P=Reflect.get(M,O,_);if($&&(e(P,N)||a.has(N)&&e(P,a.get(N))))return !0;S(O),Zc(N)&&(N=I$(N)||N);let T=N;if(N instanceof Promise)N.then(A=>{N.status="fulfilled",N.value=A,v(["resolve",[O],A]);}).catch(A=>{N.status="rejected",N.reason=A,v(["reject",[O],A]);});else {!oi.has(N)&&r(N)&&(T=l(N));const A=!$s.has(T)&&oi.get(T);A&&w(O,A);}return Reflect.set(M,O,T,_),v(["set",[O],N,P]),!0}});a.set(c,C);const R=[x,m,o,E];return oi.set(C,R),Reflect.ownKeys(c).forEach(M=>{const O=Object.getOwnPropertyDescriptor(c,M);"value"in O&&(C[M]=c[M],delete O.value,delete O.writable),Object.defineProperty(x,M,O);}),C})=>[l,oi,$s,e,t,r,n,i,o,a,s],[L$]=k$();function ns(e={}){return L$(e)}function wg(e,t,r){const n=oi.get(e);({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&!n&&console.warn("Please use proxy object");let i;const o=[],a=n[3];let s=!1;const c=a(u=>{if(o.push(u),r){t(o.splice(0));return}i||(i=Promise.resolve().then(()=>{i=void 0,s&&t(o.splice(0));}));});return s=!0,()=>{s=!1,c();}}function pv(e,t){const r=oi.get(e);({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&!r&&console.warn("Please use proxy object");const[n,i,o]=r;return o(n,i(),t)}var Sg={exports:{}},Cg={};/**
   * @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 Po=f;function F$(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var D$=typeof Object.is=="function"?Object.is:F$,j$=Po.useState,z$=Po.useEffect,H$=Po.useLayoutEffect,W$=Po.useDebugValue;function B$(e,t){var r=t(),n=j$({inst:{value:r,getSnapshot:t}}),i=n[0].inst,o=n[1];return H$(function(){i.value=r,i.getSnapshot=t,Qc(i)&&o({inst:i});},[e,r,t]),z$(function(){return Qc(i)&&o({inst:i}),e(function(){Qc(i)&&o({inst:i});})},[e]),W$(r),r}function Qc(e){var t=e.getSnapshot;e=e.value;try{var r=t();return !D$(e,r)}catch{return !0}}function V$(e,t){return t()}var U$=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?V$:B$;Cg.useSyncExternalStore=Po.useSyncExternalStore!==void 0?Po.useSyncExternalStore:U$;Sg.exports=Cg;var G$=Sg.exports;const K$=Kn(G$),{use:mv}=f,{useSyncExternalStore:q$}=K$,X$=(e,t)=>{const r=f.useRef();f.useEffect(()=>{r.current=A$(e,t,!0);}),f.useDebugValue(r.current);},Y$=new WeakMap;function Lo(e,t){const r=t==null?void 0:t.sync,n=f.useRef(),i=f.useRef();let o=!0;const a=q$(f.useCallback(c=>{const u=wg(e,c,r);return c(),u},[e,r]),()=>{const c=pv(e,mv);try{if(!o&&n.current&&i.current&&!yg(n.current,c,i.current,new WeakMap))return n.current}catch{}return c},()=>pv(e,mv));o=!1;const s=new WeakMap;f.useEffect(()=>{n.current=a,i.current=s;}),({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&X$(a,s);const l=f.useMemo(()=>new WeakMap,[]);return bg(a,s,l,Y$)}const Pf={accessKey:"",useNarrowMode:!1,initialShowMore:!1,pureRecommend:!1,openInIINAWhenRightClick:!1,usePcDesktopApi:!1,useParallelRequest:!0,autoPreviewWhenKeyboardSelect:!1,autoPreviewUpdateInterval:400,autoPreviewWhenHover:!1,theme:"",filterMinPlayCountEnabled:!1,filterMinPlayCount:1e4,filterMinDurationEnabled:!1,filterMinDuration:60,enableFilterForFollowed:!1},et=ns({...Pf}),xg=Object.keys(Pf),_n=function(){return Lo(et)},Z$=di,Eg=`${Z$}.settings`;function Q$(){const e=GM_getValue(Eg);e&&typeof e=="object"&&Object.assign(et,mg(e,xg)),wg(et,()=>{J$();});}function J$(){const e=mg(et,xg);GM_setValue(Eg,e);}function ja(e){Object.assign(et,e);}function e_(){return ja(Pf)}Q$();var $g={exports:{}};(function(e,t){(function(r,n){e.exports=n();})(Pm,function(){var r=1e3,n=6e4,i=36e5,o="millisecond",a="second",s="minute",l="hour",c="day",u="week",d="month",h="quarter",v="year",p="date",m="Invalid Date",g=/^(\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,w={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($){var P=["th","st","nd","rd"],T=$%100;return "["+$+(P[(T-20)%10]||P[T]||P[0])+"]"}},S=function($,P,T){var A=String($);return !A||A.length>=P?$:""+Array(P+1-A.length).join(T)+$},E={s:S,z:function($){var P=-$.utcOffset(),T=Math.abs(P),A=Math.floor(T/60),I=T%60;return (P<=0?"+":"-")+S(A,2,"0")+":"+S(I,2,"0")},m:function $(P,T){if(P.date()<T.date())return -$(T,P);var A=12*(T.year()-P.year())+(T.month()-P.month()),I=P.clone().add(A,d),L=T-I<0,j=P.clone().add(A+(L?-1:1),d);return +(-(A+(T-I)/(L?I-j:j-I))||0)},a:function($){return $<0?Math.ceil($)||0:Math.floor($)},p:function($){return {M:d,y:v,w:u,d:c,D:p,h:l,m:s,s:a,ms:o,Q:h}[$]||String($||"").toLowerCase().replace(/s$/,"")},u:function($){return $===void 0}},x="en",y={};y[x]=w;var C=function($){return $ instanceof N},R=function $(P,T,A){var I;if(!P)return x;if(typeof P=="string"){var L=P.toLowerCase();y[L]&&(I=L),T&&(y[L]=T,I=L);var j=P.split("-");if(!I&&j.length>1)return $(j[0])}else {var B=P.name;y[B]=P,I=B;}return !A&&I&&(x=I),I||!A&&x},M=function($,P){if(C($))return $.clone();var T=typeof P=="object"?P:{};return T.date=$,T.args=arguments,new N(T)},O=E;O.l=R,O.i=C,O.w=function($,P){return M($,{locale:P.$L,utc:P.$u,x:P.$x,$offset:P.$offset})};var N=function(){function $(T){this.$L=R(T.locale,null,!0),this.parse(T);}var P=$.prototype;return P.parse=function(T){this.$d=function(A){var I=A.date,L=A.utc;if(I===null)return new Date(NaN);if(O.u(I))return new Date;if(I instanceof Date)return new Date(I);if(typeof I=="string"&&!/Z$/i.test(I)){var j=I.match(g);if(j){var B=j[2]-1||0,G=(j[7]||"0").substring(0,3);return L?new Date(Date.UTC(j[1],B,j[3]||1,j[4]||0,j[5]||0,j[6]||0,G)):new Date(j[1],B,j[3]||1,j[4]||0,j[5]||0,j[6]||0,G)}}return new Date(I)}(T),this.$x=T.x||{},this.init();},P.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds();},P.$utils=function(){return O},P.isValid=function(){return this.$d.toString()!==m},P.isSame=function(T,A){var I=M(T);return this.startOf(A)<=I&&I<=this.endOf(A)},P.isAfter=function(T,A){return M(T)<this.startOf(A)},P.isBefore=function(T,A){return this.endOf(A)<M(T)},P.$g=function(T,A,I){return O.u(T)?this[A]:this.set(I,T)},P.unix=function(){return Math.floor(this.valueOf()/1e3)},P.valueOf=function(){return this.$d.getTime()},P.startOf=function(T,A){var I=this,L=!!O.u(A)||A,j=O.p(T),B=function(Z,te){var ae=O.w(I.$u?Date.UTC(I.$y,te,Z):new Date(I.$y,te,Z),I);return L?ae:ae.endOf(c)},G=function(Z,te){return O.w(I.toDate()[Z].apply(I.toDate("s"),(L?[0,0,0,0]:[23,59,59,999]).slice(te)),I)},z=this.$W,V=this.$M,q=this.$D,U="set"+(this.$u?"UTC":"");switch(j){case v:return L?B(1,0):B(31,11);case d:return L?B(1,V):B(0,V+1);case u:var Q=this.$locale().weekStart||0,ie=(z<Q?z+7:z)-Q;return B(L?q-ie:q+(6-ie),V);case c:case p:return G(U+"Hours",0);case l:return G(U+"Minutes",1);case s:return G(U+"Seconds",2);case a:return G(U+"Milliseconds",3);default:return this.clone()}},P.endOf=function(T){return this.startOf(T,!1)},P.$set=function(T,A){var I,L=O.p(T),j="set"+(this.$u?"UTC":""),B=(I={},I[c]=j+"Date",I[p]=j+"Date",I[d]=j+"Month",I[v]=j+"FullYear",I[l]=j+"Hours",I[s]=j+"Minutes",I[a]=j+"Seconds",I[o]=j+"Milliseconds",I)[L],G=L===c?this.$D+(A-this.$W):A;if(L===d||L===v){var z=this.clone().set(p,1);z.$d[B](G),z.init(),this.$d=z.set(p,Math.min(this.$D,z.daysInMonth())).$d;}else B&&this.$d[B](G);return this.init(),this},P.set=function(T,A){return this.clone().$set(T,A)},P.get=function(T){return this[O.p(T)]()},P.add=function(T,A){var I,L=this;T=Number(T);var j=O.p(A),B=function(V){var q=M(L);return O.w(q.date(q.date()+Math.round(V*T)),L)};if(j===d)return this.set(d,this.$M+T);if(j===v)return this.set(v,this.$y+T);if(j===c)return B(1);if(j===u)return B(7);var G=(I={},I[s]=n,I[l]=i,I[a]=r,I)[j]||1,z=this.$d.getTime()+T*G;return O.w(z,this)},P.subtract=function(T,A){return this.add(-1*T,A)},P.format=function(T){var A=this,I=this.$locale();if(!this.isValid())return I.invalidDate||m;var L=T||"YYYY-MM-DDTHH:mm:ssZ",j=O.z(this),B=this.$H,G=this.$m,z=this.$M,V=I.weekdays,q=I.months,U=function(te,ae,ue,$e){return te&&(te[ae]||te(A,L))||ue[ae].slice(0,$e)},Q=function(te){return O.s(B%12||12,te,"0")},ie=I.meridiem||function(te,ae,ue){var $e=te<12?"AM":"PM";return ue?$e.toLowerCase():$e},Z={YY:String(this.$y).slice(-2),YYYY:this.$y,M:z+1,MM:O.s(z+1,2,"0"),MMM:U(I.monthsShort,z,q,3),MMMM:U(q,z),D:this.$D,DD:O.s(this.$D,2,"0"),d:String(this.$W),dd:U(I.weekdaysMin,this.$W,V,2),ddd:U(I.weekdaysShort,this.$W,V,3),dddd:V[this.$W],H:String(B),HH:O.s(B,2,"0"),h:Q(1),hh:Q(2),a:ie(B,G,!0),A:ie(B,G,!1),m:String(G),mm:O.s(G,2,"0"),s:String(this.$s),ss:O.s(this.$s,2,"0"),SSS:O.s(this.$ms,3,"0"),Z:j};return L.replace(b,function(te,ae){return ae||Z[te]||j.replace(":","")})},P.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},P.diff=function(T,A,I){var L,j=O.p(A),B=M(T),G=(B.utcOffset()-this.utcOffset())*n,z=this-B,V=O.m(this,B);return V=(L={},L[v]=V/12,L[d]=V,L[h]=V/3,L[u]=(z-G)/6048e5,L[c]=(z-G)/864e5,L[l]=z/i,L[s]=z/n,L[a]=z/r,L)[j]||z,I?V:O.a(V)},P.daysInMonth=function(){return this.endOf(d).$D},P.$locale=function(){return y[this.$L]},P.locale=function(T,A){if(!T)return this.$L;var I=this.clone(),L=R(T,A,!0);return L&&(I.$L=L),I},P.clone=function(){return O.w(this.$d,this)},P.toDate=function(){return new Date(this.valueOf())},P.toJSON=function(){return this.isValid()?this.toISOString():null},P.toISOString=function(){return this.$d.toISOString()},P.toString=function(){return this.$d.toUTCString()},$}(),_=N.prototype;return M.prototype=_,[["$ms",o],["$s",a],["$m",s],["$H",l],["$W",c],["$M",d],["$y",v],["$D",p]].forEach(function($){_[$[1]]=function(P){return this.$g(P,$[0],$[1])};}),M.extend=function($,P){return $.$i||($(P,N,M),$.$i=!0),M},M.locale=R,M.isDayjs=C,M.unix=function($){return M(1e3*$)},M.en=y[x],M.Ls=y,M.p={},M});})($g);var t_=$g.exports;const sc=Kn(t_);var _g={exports:{}};(function(e,t){(function(r,n){e.exports=n();})(Pm,function(){var r,n,i=1e3,o=6e4,a=36e5,s=864e5,l=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,c=31536e6,u=2592e6,d=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,h={years:c,months:u,days:s,hours:a,minutes:o,seconds:i,milliseconds:1,weeks:6048e5},v=function(x){return x instanceof E},p=function(x,y,C){return new E(x,C,y.$l)},m=function(x){return n.p(x)+"s"},g=function(x){return x<0},b=function(x){return g(x)?Math.ceil(x):Math.floor(x)},w=function(x){return Math.abs(x)},S=function(x,y){return x?g(x)?{negative:!0,format:""+w(x)+y}:{negative:!1,format:""+x+y}:{negative:!1,format:""}},E=function(){function x(C,R,M){var O=this;if(this.$d={},this.$l=M,C===void 0&&(this.$ms=0,this.parseFromMilliseconds()),R)return p(C*h[m(R)],this);if(typeof C=="number")return this.$ms=C,this.parseFromMilliseconds(),this;if(typeof C=="object")return Object.keys(C).forEach(function($){O.$d[m($)]=C[$];}),this.calMilliseconds(),this;if(typeof C=="string"){var N=C.match(d);if(N){var _=N.slice(2).map(function($){return $!=null?Number($):0});return this.$d.years=_[0],this.$d.months=_[1],this.$d.weeks=_[2],this.$d.days=_[3],this.$d.hours=_[4],this.$d.minutes=_[5],this.$d.seconds=_[6],this.calMilliseconds(),this}}return this}var y=x.prototype;return y.calMilliseconds=function(){var C=this;this.$ms=Object.keys(this.$d).reduce(function(R,M){return R+(C.$d[M]||0)*h[M]},0);},y.parseFromMilliseconds=function(){var C=this.$ms;this.$d.years=b(C/c),C%=c,this.$d.months=b(C/u),C%=u,this.$d.days=b(C/s),C%=s,this.$d.hours=b(C/a),C%=a,this.$d.minutes=b(C/o),C%=o,this.$d.seconds=b(C/i),C%=i,this.$d.milliseconds=C;},y.toISOString=function(){var C=S(this.$d.years,"Y"),R=S(this.$d.months,"M"),M=+this.$d.days||0;this.$d.weeks&&(M+=7*this.$d.weeks);var O=S(M,"D"),N=S(this.$d.hours,"H"),_=S(this.$d.minutes,"M"),$=this.$d.seconds||0;this.$d.milliseconds&&($+=this.$d.milliseconds/1e3);var P=S($,"S"),T=C.negative||R.negative||O.negative||N.negative||_.negative||P.negative,A=N.format||_.format||P.format?"T":"",I=(T?"-":"")+"P"+C.format+R.format+O.format+A+N.format+_.format+P.format;return I==="P"||I==="-P"?"P0D":I},y.toJSON=function(){return this.toISOString()},y.format=function(C){var R=C||"YYYY-MM-DDTHH:mm:ss",M={Y:this.$d.years,YY:n.s(this.$d.years,2,"0"),YYYY:n.s(this.$d.years,4,"0"),M:this.$d.months,MM:n.s(this.$d.months,2,"0"),D:this.$d.days,DD:n.s(this.$d.days,2,"0"),H:this.$d.hours,HH:n.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:n.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:n.s(this.$d.seconds,2,"0"),SSS:n.s(this.$d.milliseconds,3,"0")};return R.replace(l,function(O,N){return N||String(M[O])})},y.as=function(C){return this.$ms/h[m(C)]},y.get=function(C){var R=this.$ms,M=m(C);return M==="milliseconds"?R%=1e3:R=M==="weeks"?b(R/h[M]):this.$d[M],R===0?0:R},y.add=function(C,R,M){var O;return O=R?C*h[m(R)]:v(C)?C.$ms:p(C,this).$ms,p(this.$ms+O*(M?-1:1),this)},y.subtract=function(C,R){return this.add(C,R,!0)},y.locale=function(C){var R=this.clone();return R.$l=C,R},y.clone=function(){return p(this.$ms,this)},y.humanize=function(C){return r().add(this.$ms,"ms").locale(this.$l).fromNow(!C)},y.milliseconds=function(){return this.get("milliseconds")},y.asMilliseconds=function(){return this.as("milliseconds")},y.seconds=function(){return this.get("seconds")},y.asSeconds=function(){return this.as("seconds")},y.minutes=function(){return this.get("minutes")},y.asMinutes=function(){return this.as("minutes")},y.hours=function(){return this.get("hours")},y.asHours=function(){return this.as("hours")},y.days=function(){return this.get("days")},y.asDays=function(){return this.as("days")},y.weeks=function(){return this.get("weeks")},y.asWeeks=function(){return this.as("weeks")},y.months=function(){return this.get("months")},y.asMonths=function(){return this.as("months")},y.years=function(){return this.get("years")},y.asYears=function(){return this.as("years")},x}();return function(x,y,C){r=C,n=C().$utils(),C.duration=function(O,N){var _=C.locale();return p(O,{$l:_},N)},C.isDuration=v;var R=y.prototype.add,M=y.prototype.subtract;y.prototype.add=function(O,N){return v(O)&&(O=O.asMilliseconds()),R.bind(this)(O,N)},y.prototype.subtract=function(O,N){return v(O)&&(O=O.asMilliseconds()),M.bind(this)(O,N)};}});})(_g);var r_=_g.exports;const n_=Kn(r_),za=w$(()=>!!document.querySelectorAll(".bili-feed4").length),gv=document.querySelector(".bili-header__bar"),i_=!!(gv&&window.getComputedStyle(gv).display==="none"),Og=i_?50:64,Pg=()=>document.body.classList.contains("dark"),Tg=ns({value:Pg()});function lc(){return Lo(Tg).value}const Xs=new MutationObserver(function(){Tg.value=Pg();});Xs.observe(document.body,{attributes:!0,attributeFilter:["class"]});window.addEventListener("unload",()=>{Xs==null||Xs.disconnect();});function Er(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ot(e){"@babel/helpers - typeof";return ot=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ot(e)}function o_(e,t){if(ot(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ot(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return (t==="string"?String:Number)(e)}function Rg(e){var t=o_(e,"string");return ot(t)==="symbol"?t:String(t)}function bv(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Rg(n.key),n);}}function $r(e,t,r){return t&&bv(e.prototype,t),r&&bv(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qu(e,t){return Qu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Qu(e,t)}function Fo(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&&Qu(e,t);}function ml(e){return ml=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ml(e)}function a_(){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 ze(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s_(e,t){if(t&&(ot(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ze(e)}function Do(e){var t=a_();return function(){var n=ml(e),i;if(t){var o=ml(this).constructor;i=Reflect.construct(n,arguments,o);}else i=n.apply(this,arguments);return s_(this,i)}}var Mg={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 r(){for(var n=[],i=0;i<arguments.length;i++){var o=arguments[i];if(o){var a=typeof o;if(a==="string"||a==="number")n.push(o);else if(Array.isArray(o)){if(o.length){var s=r.apply(null,o);s&&n.push(s);}}else if(a==="object"){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){n.push(o.toString());continue}for(var l in o)t.call(o,l)&&o[l]&&n.push(l);}}}return n.join(" ")}e.exports?(r.default=r,e.exports=r):window.classNames=r;})();})(Mg);var l_=Mg.exports;const K=Kn(l_);function fi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[];return f.Children.forEach(e,function(n){n==null&&!t.keepEmpty||(Array.isArray(n)?r=r.concat(fi(n)):mf.isFragment(n)&&n.props?r=r.concat(fi(n.props.children,t)):r.push(n));}),r}var Ju={},c_=function(t){};function u_(e,t){}function d_(e,t){}function f_(){Ju={};}function Ng(e,t,r){!t&&!Ju[r]&&(e(!1,r),Ju[r]=!0);}function dr(e,t){Ng(u_,e,t);}function h_(e,t){Ng(d_,e,t);}dr.preMessage=c_;dr.resetWarned=f_;dr.noteOnce=h_;function H(e,t,r){return t=Rg(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n);}return r}function D(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yv(Object(r),!0).forEach(function(n){H(e,n,r[n]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n));});}return e}function cc(e,t,r){var n=f__namespace.useRef({});return (!("value"in n.current)||r(n.current.condition,t))&&(n.current.value=e(),n.current.condition=t),n.current.value}function Tf(e,t){typeof e=="function"?e(t):ot(e)==="object"&&e&&"current"in e&&(e.current=t);}function Kr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.filter(function(i){return i});return n.length<=1?n[0]:function(i){t.forEach(function(o){Tf(o,i);});}}function uc(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return cc(function(){return Kr.apply(void 0,t)},t,function(n,i){return n.length===i.length&&n.every(function(o,a){return o===i[a]})})}function hi(e){var t,r,n=mf.isMemo(e)?e.type.type:e.type;return !(typeof n=="function"&&!((t=n.prototype)!==null&&t!==void 0&&t.render)||typeof e=="function"&&!((r=e.prototype)!==null&&r!==void 0&&r.render))}function gl(e){return e instanceof HTMLElement||e instanceof SVGElement}function bl(e){return gl(e)?e:e instanceof f.Component?$o.findDOMNode(e):null}var Ig=function(){if(typeof Map<"u")return Map;function e(t,r){var n=-1;return t.some(function(i,o){return i[0]===r?(n=o,!0):!1}),n}return function(){function t(){this.__entries__=[];}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(r){var n=e(this.__entries__,r),i=this.__entries__[n];return i&&i[1]},t.prototype.set=function(r,n){var i=e(this.__entries__,r);~i?this.__entries__[i][1]=n:this.__entries__.push([r,n]);},t.prototype.delete=function(r){var n=this.__entries__,i=e(n,r);~i&&n.splice(i,1);},t.prototype.has=function(r){return !!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0);},t.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var i=0,o=this.__entries__;i<o.length;i++){var a=o[i];r.call(n,a[1],a[0]);}},t}()}(),ed=typeof window<"u"&&typeof document<"u"&&window.document===document,yl=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),v_=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(yl):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),p_=2;function m_(e,t){var r=!1,n=!1,i=0;function o(){r&&(r=!1,e()),n&&s();}function a(){v_(o);}function s(){var l=Date.now();if(r){if(l-i<p_)return;n=!0;}else r=!0,n=!1,setTimeout(a,t);i=l;}return s}var g_=20,b_=["top","right","bottom","left","width","height","size","weight"],y_=typeof MutationObserver<"u",w_=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=m_(this.refresh.bind(this),g_);}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_();},e.prototype.removeObserver=function(t){var r=this.observers_,n=r.indexOf(t);~n&&r.splice(n,1),!r.length&&this.connected_&&this.disconnect_();},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh();},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return t.forEach(function(r){return r.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!ed||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),y_?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0);},e.prototype.disconnect_=function(){!ed||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1);},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,n=r===void 0?"":r,i=b_.some(function(o){return !!~n.indexOf(o)});i&&this.refresh();},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Ag=function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var i=n[r];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0});}return e},To=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||yl},kg=dc(0,0,0,0);function wl(e){return parseFloat(e)||0}function wv(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(n,i){var o=e["border-"+i+"-width"];return n+wl(o)},0)}function S_(e){for(var t=["top","right","bottom","left"],r={},n=0,i=t;n<i.length;n++){var o=i[n],a=e["padding-"+o];r[o]=wl(a);}return r}function C_(e){var t=e.getBBox();return dc(0,0,t.width,t.height)}function x_(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return kg;var n=To(e).getComputedStyle(e),i=S_(n),o=i.left+i.right,a=i.top+i.bottom,s=wl(n.width),l=wl(n.height);if(n.boxSizing==="border-box"&&(Math.round(s+o)!==t&&(s-=wv(n,"left","right")+o),Math.round(l+a)!==r&&(l-=wv(n,"top","bottom")+a)),!$_(e)){var c=Math.round(s+o)-t,u=Math.round(l+a)-r;Math.abs(c)!==1&&(s-=c),Math.abs(u)!==1&&(l-=u);}return dc(i.left,i.top,s,l)}var E_=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof To(e).SVGGraphicsElement}:function(e){return e instanceof To(e).SVGElement&&typeof e.getBBox=="function"}}();function $_(e){return e===To(e).document.documentElement}function __(e){return ed?E_(e)?C_(e):x_(e):kg}function O_(e){var t=e.x,r=e.y,n=e.width,i=e.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,a=Object.create(o.prototype);return Ag(a,{x:t,y:r,width:n,height:i,top:r,right:t+n,bottom:i+r,left:t}),a}function dc(e,t,r,n){return {x:e,y:t,width:r,height:n}}var P_=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=dc(0,0,0,0),this.target=t;}return e.prototype.isActive=function(){var t=__(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),T_=function(){function e(t,r){var n=O_(r);Ag(this,{target:t,contentRect:n});}return e}(),R_=function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new Ig,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=r,this.callbackCtx_=n;}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof To(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new P_(t)),this.controller_.addObserver(this),this.controller_.refresh());}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof To(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this));}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this);},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r);});},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new T_(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive();}},e.prototype.clearActive=function(){this.activeObservations_.splice(0);},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Lg=typeof WeakMap<"u"?new WeakMap:new Ig,Fg=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=w_.getInstance(),n=new R_(t,r,this);Lg.set(this,n);}return e}();["observe","unobserve","disconnect"].forEach(function(e){Fg.prototype[e]=function(){var t;return (t=Lg.get(this))[e].apply(t,arguments)};});var Dg=function(){return typeof yl.ResizeObserver<"u"?yl.ResizeObserver:Fg}(),si=new Map;function M_(e){e.forEach(function(t){var r,n=t.target;(r=si.get(n))===null||r===void 0||r.forEach(function(i){return i(n)});});}var jg=new Dg(M_);function N_(e,t){si.has(e)||(si.set(e,new Set),jg.observe(e)),si.get(e).add(t);}function I_(e,t){si.has(e)&&(si.get(e).delete(t),si.get(e).size||(jg.unobserve(e),si.delete(e)));}var A_=function(e){Fo(r,e);var t=Do(r);function r(){return Er(this,r),t.apply(this,arguments)}return $r(r,[{key:"render",value:function(){return this.props.children}}]),r}(f__namespace.Component),td=f__namespace.createContext(null);function k_(e){var t=e.children,r=e.onBatchResize,n=f__namespace.useRef(0),i=f__namespace.useRef([]),o=f__namespace.useContext(td),a=f__namespace.useCallback(function(s,l,c){n.current+=1;var u=n.current;i.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){u===n.current&&(r==null||r(i.current),i.current=[]);}),o==null||o(s,l,c);},[r,o]);return f__namespace.createElement(td.Provider,{value:a},t)}function L_(e,t){var r=e.children,n=e.disabled,i=f__namespace.useRef(null),o=f__namespace.useRef(null),a=f__namespace.useContext(td),s=typeof r=="function",l=s?r(i):r,c=f__namespace.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&f__namespace.isValidElement(l)&&hi(l),d=u?l.ref:null,h=f__namespace.useMemo(function(){return Kr(d,i)},[d,i]),v=function(){return bl(i.current)||bl(o.current)};f__namespace.useImperativeHandle(t,function(){return v()});var p=f__namespace.useRef(e);p.current=e;var m=f__namespace.useCallback(function(g){var b=p.current,w=b.onResize,S=b.data,E=g.getBoundingClientRect(),x=E.width,y=E.height,C=g.offsetWidth,R=g.offsetHeight,M=Math.floor(x),O=Math.floor(y);if(c.current.width!==M||c.current.height!==O||c.current.offsetWidth!==C||c.current.offsetHeight!==R){var N={width:M,height:O,offsetWidth:C,offsetHeight:R};c.current=N;var _=C===Math.round(x)?x:C,$=R===Math.round(y)?y:R,P=D(D({},N),{},{offsetWidth:_,offsetHeight:$});a==null||a(P,g,S),w&&Promise.resolve().then(function(){w(P,g);});}},[]);return f__namespace.useEffect(function(){var g=v();return g&&!n&&N_(g,m),function(){return I_(g,m)}},[i.current,n]),f__namespace.createElement(A_,{ref:o},u?f__namespace.cloneElement(l,{ref:h}):l)}var F_=f__namespace.forwardRef(L_),D_="rc-observer-key";function j_(e,t){var r=e.children,n=typeof r=="function"?[r]:fi(r);return n.map(function(i,o){var a=(i==null?void 0:i.key)||"".concat(D_,"-").concat(o);return f__namespace.createElement(F_,Ce({},e,{key:a,ref:o===0?t:void 0}),i)})}var ki=f__namespace.forwardRef(j_);ki.Collection=k_;function fc(e,t){var r=D({},e);return Array.isArray(t)&&t.forEach(function(n){delete r[n];}),r}function rd(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function z_(e){if(Array.isArray(e))return rd(e)}function zg(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Rf(e,t){if(e){if(typeof e=="string")return rd(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return rd(e,t)}}function H_(){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 le(e){return z_(e)||zg(e)||Rf(e)||H_()}function Mf(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&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 W_(e,t){if(e==null)return {};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function Xe(e,t){if(e==null)return {};var r=W_(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n]);}return r}function is(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=new Set;function i(o,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=n.has(o);if(dr(!l,"Warning: There may be circular references"),l)return !1;if(o===a)return !0;if(r&&s>1)return !1;n.add(o);var c=s+1;if(Array.isArray(o)){if(!Array.isArray(a)||o.length!==a.length)return !1;for(var u=0;u<o.length;u++)if(!i(o[u],a[u],c))return !1;return !0}if(o&&a&&ot(o)==="object"&&ot(a)==="object"){var d=Object.keys(o);return d.length!==Object.keys(a).length?!1:d.every(function(h){return i(o[h],a[h],c)})}return !1}return i(e,t)}var B_=function(){function e(t){Er(this,e),H(this,"instanceId",void 0),H(this,"cache",new Map),this.instanceId=t;}return $r(e,[{key:"get",value:function(r){return this.cache.get(r.join("%"))||null}},{key:"update",value:function(r,n){var i=r.join("%"),o=this.cache.get(i),a=n(o);a===null?this.cache.delete(i):this.cache.set(i,a);}}]),e}(),nd="data-token-hash",po="data-css-hash",lo="__cssinjs_instance__";function V_(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(po,"]"))||[],r=document.head.firstChild;Array.from(t).forEach(function(i){i[lo]=i[lo]||e,i[lo]===e&&document.head.insertBefore(i,r);});var n={};Array.from(document.querySelectorAll("style[".concat(po,"]"))).forEach(function(i){var o=i.getAttribute(po);if(n[o]){if(i[lo]===e){var a;(a=i.parentNode)===null||a===void 0||a.removeChild(i);}}else n[o]=!0;});}return new B_(e)}var U_=f__namespace.createContext({hashPriority:"low",cache:V_(),defaultCache:!0});const Nf=U_;function Sr(){return !!(typeof window<"u"&&window.document&&window.document.createElement)}function ya(e,t){if(!e)return !1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return !0;r=r.parentNode;}return !1}var Sv="data-rc-order",G_="rc-util-key",id=new Map;function Hg(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):G_}function hc(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function K_(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Wg(e){return Array.from((id.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Bg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Sr())return null;var r=t.csp,n=t.prepend,i=document.createElement("style");i.setAttribute(Sv,K_(n)),r!=null&&r.nonce&&(i.nonce=r==null?void 0:r.nonce),i.innerHTML=e;var o=hc(t),a=o.firstChild;if(n){if(n==="queue"){var s=Wg(o).filter(function(l){return ["prepend","prependQueue"].includes(l.getAttribute(Sv))});if(s.length)return o.insertBefore(i,s[s.length-1].nextSibling),i}o.insertBefore(i,a);}else o.appendChild(i);return i}function Vg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=hc(t);return Wg(r).find(function(n){return n.getAttribute(Hg(t))===e})}function Sl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Vg(e,t);if(r){var n=hc(t);n.removeChild(r);}}function q_(e,t){var r=id.get(e);if(!r||!ya(document,r)){var n=Bg("",t),i=n.parentNode;id.set(e,i),e.removeChild(n);}}function Ro(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=hc(r);q_(n,r);var i=Vg(t,r);if(i){var o,a;if((o=r.csp)!==null&&o!==void 0&&o.nonce&&i.nonce!==((a=r.csp)===null||a===void 0?void 0:a.nonce)){var s;i.nonce=(s=r.csp)===null||s===void 0?void 0:s.nonce;}return i.innerHTML!==e&&(i.innerHTML=e),i}var l=Bg(e,r);return l.setAttribute(Hg(r),t),l}function Cl(e){var t="";return Object.keys(e).forEach(function(r){var n=e[r];t+=r,n&&ot(n)==="object"?t+=Cl(n):t+=n;}),t}function X_(e,t){return Mf("".concat(t,"_").concat(Cl(e)))}var wa="layer-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),Ug="903px";function Y_(e,t){if(Sr()){var r;Ro(e,wa);var n=document.createElement("div");n.style.position="fixed",n.style.left="0",n.style.top="0",t==null||t(n),document.body.appendChild(n);var i=getComputedStyle(n).width===Ug;return (r=n.parentNode)===null||r===void 0||r.removeChild(n),Sl(wa),i}return !1}var Jc=void 0;function Z_(){return Jc===void 0&&(Jc=Y_("@layer ".concat(wa," { .").concat(wa," { width: ").concat(Ug,"!important; } }"),function(e){e.className=wa;})),Jc}function Gg(e){if(Array.isArray(e))return e}function Q_(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1;}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,i=u;}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}function Kg(){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 W(e,t){return Gg(e)||Q_(e,t)||Rf(e,t)||Kg()}function qg(e,t,r,n){var i=f__namespace.useContext(Nf),o=i.cache,a=[e].concat(le(t));return f__namespace.useMemo(function(){o.update(a,function(s){var l=s||[],c=W(l,2),u=c[0],d=u===void 0?0:u,h=c[1],v=h,p=v||r();return [d+1,p]});},[a.join("_")]),f__namespace.useEffect(function(){return function(){o.update(a,function(s){var l=s||[],c=W(l,2),u=c[0],d=u===void 0?0:u,h=c[1],v=d-1;return v===0?(n==null||n(h,!1),null):[d-1,h]});}},a),o.get(a)[1]}var J_={},eO="css",Si=new Map;function tO(e){Si.set(e,(Si.get(e)||0)+1);}function rO(e,t){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(nd,'="').concat(e,'"]'));r.forEach(function(n){if(n[lo]===t){var i;(i=n.parentNode)===null||i===void 0||i.removeChild(n);}});}}function nO(e,t){Si.set(e,(Si.get(e)||0)-1);var r=Array.from(Si.keys()),n=r.filter(function(i){var o=Si.get(i)||0;return o<=0});n.length<r.length&&n.forEach(function(i){rO(i,t),Si.delete(i);});}function iO(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=f.useContext(Nf),i=n.cache.instanceId,o=r.salt,a=o===void 0?"":o,s=r.override,l=s===void 0?J_:s,c=r.formatToken,u=f__namespace.useMemo(function(){return Object.assign.apply(Object,[{}].concat(le(t)))},[t]),d=f__namespace.useMemo(function(){return Cl(u)},[u]),h=f__namespace.useMemo(function(){return Cl(l)},[l]),v=qg("token",[a,e.id,d,h],function(){var p=e.getDerivativeToken(u),m=D(D({},p),l);c&&(m=c(m));var g=X_(m,a);m._tokenKey=g,tO(g);var b="".concat(eO,"-").concat(Mf(g));return m._hashId=b,[m,b]},function(p){nO(p[0]._tokenKey,i);});return v}var oO={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},Cv=Sr(),aO="_skip_check_",Xg="_multi_value_";function xv(e){var t=Ri(Fm(e),Dm);return t.replace(/\{%%%\:[^;];}/g,";")}function sO(e){return ot(e)==="object"&&e&&(aO in e||Xg in e)}function lO(e,t,r){if(!t)return e;var n=".".concat(t),i=r==="low"?":where(".concat(n,")"):n,o=e.split(",").map(function(a){var s,l=a.trim().split(/\s+/),c=l[0]||"",u=((s=c.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return c="".concat(u).concat(i).concat(c.slice(u.length)),[c].concat(le(l.slice(1))).join(" ")});return o.join(",")}var cO=function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},i=n.root,o=n.injectHash,a=n.parentSelectors,s=r.hashId,l=r.layer;r.path;var c=r.hashPriority,u=r.transformers,d=u===void 0?[]:u;r.linters;var h="",v={};function p(S){var E=S.getName(s);if(!v[E]){var x=e(S.style,r,{root:!1,parentSelectors:a}),y=W(x,1),C=y[0];v[E]="@keyframes ".concat(S.getName(s)).concat(C);}}function m(S){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return S.forEach(function(x){Array.isArray(x)?m(x,E):x&&E.push(x);}),E}var g=m(Array.isArray(t)?t:[t]);if(g.forEach(function(S){var E=typeof S=="string"&&!i?{}:S;if(typeof E=="string")h+="".concat(E,`
`);else if(E._keyframe)p(E);else {var x=d.reduce(function(y,C){var R;return (C==null||(R=C.visit)===null||R===void 0?void 0:R.call(C,y))||y},E);Object.keys(x).forEach(function(y){var C=x[y];if(ot(C)==="object"&&C&&(y!=="animationName"||!C._keyframe)&&!sO(C)){var R=!1,M=y.trim(),O=!1;(i||o)&&s?M.startsWith("@")?R=!0:M=lO(y,s,c):i&&!s&&(M==="&"||M==="")&&(M="",O=!0);var N=e(C,r,{root:O,injectHash:R,parentSelectors:[].concat(le(a),[M])}),_=W(N,2),$=_[0],P=_[1];v=D(D({},v),P),h+="".concat(M).concat($);}else {let I=function(L,j){var B=L.replace(/[A-Z]/g,function(z){return "-".concat(z.toLowerCase())}),G=j;!oO[L]&&typeof G=="number"&&G!==0&&(G="".concat(G,"px")),L==="animationName"&&j!==null&&j!==void 0&&j._keyframe&&(p(j),G=j.getName(s)),h+="".concat(B,":").concat(G,";");};var T,A=(T=C==null?void 0:C.value)!==null&&T!==void 0?T:C;ot(C)==="object"&&C!==null&&C!==void 0&&C[Xg]&&Array.isArray(A)?A.forEach(function(L){I(y,L);}):I(y,A);}});}}),!i)h="{".concat(h,"}");else if(l&&Z_()){var b=l.split(","),w=b[b.length-1].trim();h="@layer ".concat(w," {").concat(h,"}"),b.length>1&&(h="@layer ".concat(l,"{%%%:%}").concat(h));}return [h,v]};function uO(e,t){return Mf("".concat(e.join("%")).concat(t))}function dO(){return null}function od(e,t){var r=e.token,n=e.path,i=e.hashId,o=e.layer,a=e.nonce,s=f__namespace.useContext(Nf),l=s.autoClear;s.mock;var c=s.defaultCache,u=s.hashPriority,d=s.container,h=s.ssrInline,v=s.transformers,p=s.linters,m=s.cache,g=r._tokenKey,b=[g].concat(le(n)),w=Cv,S=qg("style",b,function(){var R=t(),M=cO(R,{hashId:i,hashPriority:u,layer:o,path:n.join("-"),transformers:v,linters:p}),O=W(M,2),N=O[0],_=O[1],$=xv(N),P=uO(b,$);if(w){var T={mark:po,prepend:"queue",attachTo:d},A=typeof a=="function"?a():a;A&&(T.csp={nonce:A});var I=Ro($,P,T);I[lo]=m.instanceId,I.setAttribute(nd,g),Object.keys(_).forEach(function(L){Ro(xv(_[L]),"_effect-".concat(L),T);});}return [$,g,P]},function(R,M){var O=W(R,3),N=O[2];(M||l)&&Cv&&Sl(N,{mark:po});}),E=W(S,3),x=E[0],y=E[1],C=E[2];return function(R){var M;if(!h||w||!c)M=f__namespace.createElement(dO,null);else {var O;M=f__namespace.createElement("style",Ce({},(O={},H(O,nd,y),H(O,po,C),O),{dangerouslySetInnerHTML:{__html:x}}));}return f__namespace.createElement(f__namespace.Fragment,null,M,R)}}var Dt=function(){function e(t,r){Er(this,e),H(this,"name",void 0),H(this,"style",void 0),H(this,"_keyframe",!0),this.name=t,this.style=r;}return $r(e,[{key:"getName",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return r?"".concat(r,"-").concat(this.name):this.name}}]),e}();function fO(e,t){if(e.length!==t.length)return !1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return !1;return !0}var If=function(){function e(){Er(this,e),H(this,"cache",void 0),H(this,"keys",void 0),H(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0;}return $r(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(r){var n,i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return r.forEach(function(s){if(!a)a=void 0;else {var l,c;a=(l=a)===null||l===void 0||(c=l.map)===null||c===void 0?void 0:c.get(s);}}),(n=a)!==null&&n!==void 0&&n.value&&o&&(a.value[1]=this.cacheCallTimes++),(i=a)===null||i===void 0?void 0:i.value}},{key:"get",value:function(r){var n;return (n=this.internalGet(r,!0))===null||n===void 0?void 0:n[0]}},{key:"has",value:function(r){return !!this.internalGet(r)}},{key:"set",value:function(r,n){var i=this;if(!this.has(r)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(c,u){var d=W(c,2),h=d[1];return i.internalGet(u)[1]<h?[u,i.internalGet(u)[1]]:c},[this.keys[0],this.cacheCallTimes]),a=W(o,1),s=a[0];this.delete(s);}this.keys.push(r);}var l=this.cache;r.forEach(function(c,u){if(u===r.length-1)l.set(c,{value:[n,i.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(r,n){var i=r.get(n[0]);if(n.length===1){var o;return i.map?r.set(n[0],{map:i.map}):r.delete(n[0]),(o=i.value)===null||o===void 0?void 0:o[0]}var a=this.deleteByPath(i.map,n.slice(1));return (!i.map||i.map.size===0)&&!i.value&&r.delete(n[0]),a}},{key:"delete",value:function(r){if(this.has(r))return this.keys=this.keys.filter(function(n){return !fO(n,r)}),this.deleteByPath(this.cache,r)}}]),e}();H(If,"MAX_CACHE_SIZE",20);H(If,"MAX_CACHE_OFFSET",5);var Ev=0,hO=function(){function e(t){Er(this,e),H(this,"derivatives",void 0),H(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Ev,t.length===0&&(t.length>0,void 0),Ev+=1;}return $r(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(n,i){return i(r,n)},void 0)}}]),e}(),eu=new If;function Yg(e){var t=Array.isArray(e)?e:[e];return eu.has(t)||eu.set(t,new hO(t)),eu.get(t)}function qi(e){return e.notSplit=!0,e}qi(["borderTop","borderBottom"]),qi(["borderTop"]),qi(["borderBottom"]),qi(["borderLeft","borderRight"]),qi(["borderLeft"]),qi(["borderRight"]);var vO=f.createContext({});const Af=vO;var xi="RC_FORM_INTERNAL_HOOKS",yt=function(){dr(!1,"Can not find FormContext. Please make sure you wrap Field under Form.");},Mo=f__namespace.createContext({getFieldValue:yt,getFieldsValue:yt,getFieldError:yt,getFieldWarning:yt,getFieldsError:yt,isFieldsTouched:yt,isFieldTouched:yt,isFieldValidating:yt,isFieldsValidating:yt,resetFields:yt,setFields:yt,setFieldValue:yt,setFieldsValue:yt,validateFields:yt,submit:yt,getInternalHooks:function(){return yt(),{dispatch:yt,initEntityValue:yt,registerField:yt,useSubscribe:yt,setInitialValues:yt,destroyForm:yt,setCallbacks:yt,registerWatch:yt,getFields:yt,setValidateMessages:yt,setPreserve:yt,getInitialValue:yt}}}),ad=f__namespace.createContext(null);function sd(e){return e==null?[]:Array.isArray(e)?e:[e]}function pO(e){return e&&!!e._init}function pr(){pr=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(_,$,P){_[$]=P.value;},i=typeof Symbol=="function"?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(_,$,P){return Object.defineProperty(_,$,{value:P,enumerable:!0,configurable:!0,writable:!0}),_[$]}try{l({},"");}catch{l=function(P,T,A){return P[T]=A};}function c(_,$,P,T){var A=$&&$.prototype instanceof h?$:h,I=Object.create(A.prototype),L=new M(T||[]);return n(I,"_invoke",{value:x(_,P,L)}),I}function u(_,$,P){try{return {type:"normal",arg:_.call($,P)}}catch(T){return {type:"throw",arg:T}}}e.wrap=c;var d={};function h(){}function v(){}function p(){}var m={};l(m,o,function(){return this});var g=Object.getPrototypeOf,b=g&&g(g(O([])));b&&b!==t&&r.call(b,o)&&(m=b);var w=p.prototype=h.prototype=Object.create(m);function S(_){["next","throw","return"].forEach(function($){l(_,$,function(P){return this._invoke($,P)});});}function E(_,$){function P(A,I,L,j){var B=u(_[A],_,I);if(B.type!=="throw"){var G=B.arg,z=G.value;return z&&ot(z)=="object"&&r.call(z,"__await")?$.resolve(z.__await).then(function(V){P("next",V,L,j);},function(V){P("throw",V,L,j);}):$.resolve(z).then(function(V){G.value=V,L(G);},function(V){return P("throw",V,L,j)})}j(B.arg);}var T;n(this,"_invoke",{value:function(I,L){function j(){return new $(function(B,G){P(I,L,B,G);})}return T=T?T.then(j,j):j()}});}function x(_,$,P){var T="suspendedStart";return function(A,I){if(T==="executing")throw new Error("Generator is already running");if(T==="completed"){if(A==="throw")throw I;return N()}for(P.method=A,P.arg=I;;){var L=P.delegate;if(L){var j=y(L,P);if(j){if(j===d)continue;return j}}if(P.method==="next")P.sent=P._sent=P.arg;else if(P.method==="throw"){if(T==="suspendedStart")throw T="completed",P.arg;P.dispatchException(P.arg);}else P.method==="return"&&P.abrupt("return",P.arg);T="executing";var B=u(_,$,P);if(B.type==="normal"){if(T=P.done?"completed":"suspendedYield",B.arg===d)continue;return {value:B.arg,done:P.done}}B.type==="throw"&&(T="completed",P.method="throw",P.arg=B.arg);}}}function y(_,$){var P=$.method,T=_.iterator[P];if(T===void 0)return $.delegate=null,P==="throw"&&_.iterator.return&&($.method="return",$.arg=void 0,y(_,$),$.method==="throw")||P!=="return"&&($.method="throw",$.arg=new TypeError("The iterator does not provide a '"+P+"' method")),d;var A=u(T,_.iterator,$.arg);if(A.type==="throw")return $.method="throw",$.arg=A.arg,$.delegate=null,d;var I=A.arg;return I?I.done?($[_.resultName]=I.value,$.next=_.nextLoc,$.method!=="return"&&($.method="next",$.arg=void 0),$.delegate=null,d):I:($.method="throw",$.arg=new TypeError("iterator result is not an object"),$.delegate=null,d)}function C(_){var $={tryLoc:_[0]};1 in _&&($.catchLoc=_[1]),2 in _&&($.finallyLoc=_[2],$.afterLoc=_[3]),this.tryEntries.push($);}function R(_){var $=_.completion||{};$.type="normal",delete $.arg,_.completion=$;}function M(_){this.tryEntries=[{tryLoc:"root"}],_.forEach(C,this),this.reset(!0);}function O(_){if(_){var $=_[o];if($)return $.call(_);if(typeof _.next=="function")return _;if(!isNaN(_.length)){var P=-1,T=function A(){for(;++P<_.length;)if(r.call(_,P))return A.value=_[P],A.done=!1,A;return A.value=void 0,A.done=!0,A};return T.next=T}}return {next:N}}function N(){return {value:void 0,done:!0}}return v.prototype=p,n(w,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:v,configurable:!0}),v.displayName=l(p,s,"GeneratorFunction"),e.isGeneratorFunction=function(_){var $=typeof _=="function"&&_.constructor;return !!$&&($===v||($.displayName||$.name)==="GeneratorFunction")},e.mark=function(_){return Object.setPrototypeOf?Object.setPrototypeOf(_,p):(_.__proto__=p,l(_,s,"GeneratorFunction")),_.prototype=Object.create(w),_},e.awrap=function(_){return {__await:_}},S(E.prototype),l(E.prototype,a,function(){return this}),e.AsyncIterator=E,e.async=function(_,$,P,T,A){A===void 0&&(A=Promise);var I=new E(c(_,$,P,T),A);return e.isGeneratorFunction($)?I:I.next().then(function(L){return L.done?L.value:I.next()})},S(w),l(w,s,"Generator"),l(w,o,function(){return this}),l(w,"toString",function(){return "[object Generator]"}),e.keys=function(_){var $=Object(_),P=[];for(var T in $)P.push(T);return P.reverse(),function A(){for(;P.length;){var I=P.pop();if(I in $)return A.value=I,A.done=!1,A}return A.done=!0,A}},e.values=O,M.prototype={constructor:M,reset:function($){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(R),!$)for(var P in this)P.charAt(0)==="t"&&r.call(this,P)&&!isNaN(+P.slice(1))&&(this[P]=void 0);},stop:function(){this.done=!0;var $=this.tryEntries[0].completion;if($.type==="throw")throw $.arg;return this.rval},dispatchException:function($){if(this.done)throw $;var P=this;function T(G,z){return L.type="throw",L.arg=$,P.next=G,z&&(P.method="next",P.arg=void 0),!!z}for(var A=this.tryEntries.length-1;A>=0;--A){var I=this.tryEntries[A],L=I.completion;if(I.tryLoc==="root")return T("end");if(I.tryLoc<=this.prev){var j=r.call(I,"catchLoc"),B=r.call(I,"finallyLoc");if(j&&B){if(this.prev<I.catchLoc)return T(I.catchLoc,!0);if(this.prev<I.finallyLoc)return T(I.finallyLoc)}else if(j){if(this.prev<I.catchLoc)return T(I.catchLoc,!0)}else {if(!B)throw new Error("try statement without catch or finally");if(this.prev<I.finallyLoc)return T(I.finallyLoc)}}}},abrupt:function($,P){for(var T=this.tryEntries.length-1;T>=0;--T){var A=this.tryEntries[T];if(A.tryLoc<=this.prev&&r.call(A,"finallyLoc")&&this.prev<A.finallyLoc){var I=A;break}}I&&($==="break"||$==="continue")&&I.tryLoc<=P&&P<=I.finallyLoc&&(I=null);var L=I?I.completion:{};return L.type=$,L.arg=P,I?(this.method="next",this.next=I.finallyLoc,d):this.complete(L)},complete:function($,P){if($.type==="throw")throw $.arg;return $.type==="break"||$.type==="continue"?this.next=$.arg:$.type==="return"?(this.rval=this.arg=$.arg,this.method="return",this.next="end"):$.type==="normal"&&P&&(this.next=P),d},finish:function($){for(var P=this.tryEntries.length-1;P>=0;--P){var T=this.tryEntries[P];if(T.finallyLoc===$)return this.complete(T.completion,T.afterLoc),R(T),d}},catch:function($){for(var P=this.tryEntries.length-1;P>=0;--P){var T=this.tryEntries[P];if(T.tryLoc===$){var A=T.completion;if(A.type==="throw"){var I=A.arg;R(T);}return I}}throw new Error("illegal catch attempt")},delegateYield:function($,P,T){return this.delegate={iterator:O($),resultName:P,nextLoc:T},this.method==="next"&&(this.arg=void 0),d}},e}function $v(e,t,r,n,i,o,a){try{var s=e[o](a),l=s.value;}catch(c){r(c);return}s.done?t(l):Promise.resolve(l).then(n,i);}function Di(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function a(l){$v(o,n,i,a,s,"next",l);}function s(l){$v(o,n,i,a,s,"throw",l);}a(void 0);})}}function Ei(){return Ei=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);}return e},Ei.apply(this,arguments)}function mO(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ha(e,t);}function ld(e){return ld=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ld(e)}function Ha(e,t){return Ha=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ha(e,t)}function gO(){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 Ys(e,t,r){return gO()?Ys=Reflect.construct.bind():Ys=function(i,o,a){var s=[null];s.push.apply(s,o);var l=Function.bind.apply(i,s),c=new l;return a&&Ha(c,a.prototype),c},Ys.apply(null,arguments)}function bO(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function cd(e){var t=typeof Map=="function"?new Map:void 0;return cd=function(n){if(n===null||!bO(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(n))return t.get(n);t.set(n,i);}function i(){return Ys(n,arguments,ld(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Ha(i,n)},cd(e)}var yO=/%[sdj%]/g,wO=function(){};typeof process<"u"&&process.env;function ud(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var n=r.field;t[n]=t[n]||[],t[n].push(r);}),t}function Fr(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=0,o=r.length;if(typeof e=="function")return e.apply(null,r);if(typeof e=="string"){var a=e.replace(yO,function(s){if(s==="%%")return "%";if(i>=o)return s;switch(s){case"%s":return String(r[i++]);case"%d":return Number(r[i++]);case"%j":try{return JSON.stringify(r[i++])}catch{return "[Circular]"}break;default:return s}});return a}return e}function SO(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Zt(e,t){return !!(e==null||t==="array"&&Array.isArray(e)&&!e.length||SO(t)&&typeof e=="string"&&!e)}function CO(e,t,r){var n=[],i=0,o=e.length;function a(s){n.push.apply(n,s||[]),i++,i===o&&r(n);}e.forEach(function(s){t(s,a);});}function _v(e,t,r){var n=0,i=e.length;function o(a){if(a&&a.length){r(a);return}var s=n;n=n+1,s<i?t(e[s],o):r([]);}o([]);}function xO(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,e[r]||[]);}),t}var Ov=function(e){mO(t,e);function t(r,n){var i;return i=e.call(this,"Async Validation Error")||this,i.errors=r,i.fields=n,i}return t}(cd(Error));function EO(e,t,r,n,i){if(t.first){var o=new Promise(function(h,v){var p=function(b){return n(b),b.length?v(new Ov(b,ud(b))):h(i)},m=xO(e);_v(m,r,p);});return o.catch(function(h){return h}),o}var a=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],d=new Promise(function(h,v){var p=function(g){if(u.push.apply(u,g),c++,c===l)return n(u),u.length?v(new Ov(u,ud(u))):h(i)};s.length||(n(u),h(i)),s.forEach(function(m){var g=e[m];a.indexOf(m)!==-1?_v(g,r,p):CO(g,r,p);});});return d.catch(function(h){return h}),d}function $O(e){return !!(e&&e.message!==void 0)}function _O(e,t){for(var r=e,n=0;n<t.length;n++){if(r==null)return r;r=r[t[n]];}return r}function Pv(e,t){return function(r){var n;return e.fullFields?n=_O(t,e.fullFields):n=t[r.field||e.fullField],$O(r)?(r.field=r.field||e.fullField,r.fieldValue=n,r):{message:typeof r=="function"?r():r,fieldValue:n,field:r.field||e.fullField}}}function Tv(e,t){if(t){for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];typeof n=="object"&&typeof e[r]=="object"?e[r]=Ei({},e[r],n):e[r]=n;}}return e}var Zg=function(t,r,n,i,o,a){t.required&&(!n.hasOwnProperty(t.field)||Zt(r,a||t.type))&&i.push(Fr(o.messages.required,t.fullField));},OO=function(t,r,n,i,o){(/^\s+$/.test(r)||r==="")&&i.push(Fr(o.messages.whitespace,t.fullField));},_s,PO=function(){if(_s)return _s;var e="[a-fA-F\\d:]",t=function(E){return E&&E.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},r="(?: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}",n="[a-fA-F\\d]{1,4}",i=(`
(?:
(?:`+n+":){7}(?:"+n+`|:)|                                    // 1:2:3:4:5:6:7::  1:2:3:4:5:6:7:8
(?:`+n+":){6}(?:"+r+"|:"+n+`|:)|                             // 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
(?:`+n+":){5}(?::"+r+"|(?::"+n+`){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
(?:`+n+":){4}(?:(?::"+n+"){0,1}:"+r+"|(?::"+n+`){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
(?:`+n+":){3}(?:(?::"+n+"){0,2}:"+r+"|(?::"+n+`){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
(?:`+n+":){2}(?:(?::"+n+"){0,3}:"+r+"|(?::"+n+`){1,5}|:)| // 1:2::            1:2::4:5:6:7:8   1:2::8          1:2::4:5:6:7:1.2.3.4
(?:`+n+":){1}(?:(?::"+n+"){0,4}:"+r+"|(?::"+n+`){1,6}|:)| // 1::              1::3:4:5:6:7:8   1::8            1::3:4:5:6:7:1.2.3.4
(?::(?:(?::`+n+"){0,5}:"+r+"|(?::"+n+`){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(),o=new RegExp("(?:^"+r+"$)|(?:^"+i+"$)"),a=new RegExp("^"+r+"$"),s=new RegExp("^"+i+"$"),l=function(E){return E&&E.exact?o:new RegExp("(?:"+t(E)+r+t(E)+")|(?:"+t(E)+i+t(E)+")","g")};l.v4=function(S){return S&&S.exact?a:new RegExp(""+t(S)+r+t(S),"g")},l.v6=function(S){return S&&S.exact?s:new RegExp(""+t(S)+i+t(S),"g")};var c="(?:(?:[a-z]+:)?//)",u="(?:\\S+(?::\\S*)?@)?",d=l.v4().source,h=l.v6().source,v="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",p="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",m="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",g="(?::\\d{2,5})?",b='(?:[/?#][^\\s"]*)?',w="(?:"+c+"|www\\.)"+u+"(?:localhost|"+d+"|"+h+"|"+v+p+m+")"+g+b;return _s=new RegExp("(?:^"+w+"$)","i"),_s},Rv={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},da={integer:function(t){return da.number(t)&&parseInt(t,10)===t},float:function(t){return da.number(t)&&!da.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"&&!da.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Rv.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(PO())},hex:function(t){return typeof t=="string"&&!!t.match(Rv.hex)}},TO=function(t,r,n,i,o){if(t.required&&r===void 0){Zg(t,r,n,i,o);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;a.indexOf(s)>-1?da[s](r)||i.push(Fr(o.messages.types[s],t.fullField,t.type)):s&&typeof r!==t.type&&i.push(Fr(o.messages.types[s],t.fullField,t.type));},RO=function(t,r,n,i,o){var a=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=r,d=null,h=typeof r=="number",v=typeof r=="string",p=Array.isArray(r);if(h?d="number":v?d="string":p&&(d="array"),!d)return !1;p&&(u=r.length),v&&(u=r.replace(c,"_").length),a?u!==t.len&&i.push(Fr(o.messages[d].len,t.fullField,t.len)):s&&!l&&u<t.min?i.push(Fr(o.messages[d].min,t.fullField,t.min)):l&&!s&&u>t.max?i.push(Fr(o.messages[d].max,t.fullField,t.max)):s&&l&&(u<t.min||u>t.max)&&i.push(Fr(o.messages[d].range,t.fullField,t.min,t.max));},Xi="enum",MO=function(t,r,n,i,o){t[Xi]=Array.isArray(t[Xi])?t[Xi]:[],t[Xi].indexOf(r)===-1&&i.push(Fr(o.messages[Xi],t.fullField,t[Xi].join(", ")));},NO=function(t,r,n,i,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||i.push(Fr(o.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(r)||i.push(Fr(o.messages.pattern.mismatch,t.fullField,r,t.pattern));}}},Je={required:Zg,whitespace:OO,type:TO,range:RO,enum:MO,pattern:NO},IO=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Zt(r,"string")&&!t.required)return n();Je.required(t,r,i,a,o,"string"),Zt(r,"string")||(Je.type(t,r,i,a,o),Je.range(t,r,i,a,o),Je.pattern(t,r,i,a,o),t.whitespace===!0&&Je.whitespace(t,r,i,a,o));}n(a);},AO=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Zt(r)&&!t.required)return n();Je.required(t,r,i,a,o),r!==void 0&&Je.type(t,r,i,a,o);}n(a);},kO=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),Zt(r)&&!t.required)return n();Je.required(t,r,i,a,o),r!==void 0&&(Je.type(t,r,i,a,o),Je.range(t,r,i,a,o));}n(a);},LO=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Zt(r)&&!t.required)return n();Je.required(t,r,i,a,o),r!==void 0&&Je.type(t,r,i,a,o);}n(a);},FO=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Zt(r)&&!t.required)return n();Je.required(t,r,i,a,o),Zt(r)||Je.type(t,r,i,a,o);}n(a);},DO=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Zt(r)&&!t.required)return n();Je.required(t,r,i,a,o),r!==void 0&&(Je.type(t,r,i,a,o),Je.range(t,r,i,a,o));}n(a);},jO=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Zt(r)&&!t.required)return n();Je.required(t,r,i,a,o),r!==void 0&&(Je.type(t,r,i,a,o),Je.range(t,r,i,a,o));}n(a);},zO=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(r==null&&!t.required)return n();Je.required(t,r,i,a,o,"array"),r!=null&&(Je.type(t,r,i,a,o),Je.range(t,r,i,a,o));}n(a);},HO=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Zt(r)&&!t.required)return n();Je.required(t,r,i,a,o),r!==void 0&&Je.type(t,r,i,a,o);}n(a);},WO="enum",BO=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Zt(r)&&!t.required)return n();Je.required(t,r,i,a,o),r!==void 0&&Je[WO](t,r,i,a,o);}n(a);},VO=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Zt(r,"string")&&!t.required)return n();Je.required(t,r,i,a,o),Zt(r,"string")||Je.pattern(t,r,i,a,o);}n(a);},UO=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Zt(r,"date")&&!t.required)return n();if(Je.required(t,r,i,a,o),!Zt(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),Je.type(t,l,i,a,o),l&&Je.range(t,l.getTime(),i,a,o);}}n(a);},GO=function(t,r,n,i,o){var a=[],s=Array.isArray(r)?"array":typeof r;Je.required(t,r,i,a,o,s),n(a);},tu=function(t,r,n,i,o){var a=t.type,s=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(Zt(r,a)&&!t.required)return n();Je.required(t,r,i,s,o,a),Zt(r,a)||Je.type(t,r,i,s,o);}n(s);},KO=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Zt(r)&&!t.required)return n();Je.required(t,r,i,a,o);}n(a);},Sa={string:IO,method:AO,number:kO,boolean:LO,regexp:FO,integer:DO,float:jO,array:zO,object:HO,enum:BO,pattern:VO,date:UO,url:tu,hex:tu,email:tu,required:GO,any:KO};function dd(){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 fd=dd(),os=function(){function e(r){this.rules=null,this._messages=fd,this.define(r);}var t=e.prototype;return t.define=function(n){var i=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(typeof n!="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(o){var a=n[o];i.rules[o]=Array.isArray(a)?a:[a];});},t.messages=function(n){return n&&(this._messages=Tv(dd(),n)),this._messages},t.validate=function(n,i,o){var a=this;i===void 0&&(i={}),o===void 0&&(o=function(){});var s=n,l=i,c=o;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(m){var g=[],b={};function w(E){if(Array.isArray(E)){var x;g=(x=g).concat.apply(x,E);}else g.push(E);}for(var S=0;S<m.length;S++)w(m[S]);g.length?(b=ud(g),c(g,b)):c(null,s);}if(l.messages){var d=this.messages();d===fd&&(d=dd()),Tv(d,l.messages),l.messages=d;}else l.messages=this.messages();var h={},v=l.keys||Object.keys(this.rules);v.forEach(function(m){var g=a.rules[m],b=s[m];g.forEach(function(w){var S=w;typeof S.transform=="function"&&(s===n&&(s=Ei({},s)),b=s[m]=S.transform(b)),typeof S=="function"?S={validator:S}:S=Ei({},S),S.validator=a.getValidationMethod(S),S.validator&&(S.field=m,S.fullField=S.fullField||m,S.type=a.getType(S),h[m]=h[m]||[],h[m].push({rule:S,value:b,source:s,field:m}));});});var p={};return EO(h,l,function(m,g){var b=m.rule,w=(b.type==="object"||b.type==="array")&&(typeof b.fields=="object"||typeof b.defaultField=="object");w=w&&(b.required||!b.required&&m.value),b.field=m.field;function S(y,C){return Ei({},C,{fullField:b.fullField+"."+y,fullFields:b.fullFields?[].concat(b.fullFields,[y]):[y]})}function E(y){y===void 0&&(y=[]);var C=Array.isArray(y)?y:[y];!l.suppressWarning&&C.length&&e.warning("async-validator:",C),C.length&&b.message!==void 0&&(C=[].concat(b.message));var R=C.map(Pv(b,s));if(l.first&&R.length)return p[b.field]=1,g(R);if(!w)g(R);else {if(b.required&&!m.value)return b.message!==void 0?R=[].concat(b.message).map(Pv(b,s)):l.error&&(R=[l.error(b,Fr(l.messages.required,b.field))]),g(R);var M={};b.defaultField&&Object.keys(m.value).map(function(_){M[_]=b.defaultField;}),M=Ei({},M,m.rule.fields);var O={};Object.keys(M).forEach(function(_){var $=M[_],P=Array.isArray($)?$:[$];O[_]=P.map(S.bind(null,_));});var N=new e(O);N.messages(l.messages),m.rule.options&&(m.rule.options.messages=l.messages,m.rule.options.error=l.error),N.validate(m.value,m.rule.options||l,function(_){var $=[];R&&R.length&&$.push.apply($,R),_&&_.length&&$.push.apply($,_),g($.length?$:null);});}}var x;if(b.asyncValidator)x=b.asyncValidator(b,m.value,E,m.source,l);else if(b.validator){try{x=b.validator(b,m.value,E,m.source,l);}catch(y){console.error==null||console.error(y),l.suppressValidatorError||setTimeout(function(){throw y},0),E(y.message);}x===!0?E():x===!1?E(typeof b.message=="function"?b.message(b.fullField||b.field):b.message||(b.fullField||b.field)+" fails"):x instanceof Array?E(x):x instanceof Error&&E(x.message);}x&&x.then&&x.then(function(){return E()},function(y){return E(y)});},function(m){u(m);},s)},t.getType=function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!Sa.hasOwnProperty(n.type))throw new Error(Fr("Unknown rule type %s",n.type));return n.type||"string"},t.getValidationMethod=function(n){if(typeof n.validator=="function")return n.validator;var i=Object.keys(n),o=i.indexOf("message");return o!==-1&&i.splice(o,1),i.length===1&&i[0]==="required"?Sa.required:Sa[this.getType(n)]||void 0},e}();os.register=function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");Sa[t]=r;};os.warning=wO;os.messages=fd;os.validators=Sa;var Tr="'${name}' is not a valid ${type}",Qg={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:Tr,method:Tr,array:Tr,object:Tr,number:Tr,date:Tr,boolean:Tr,integer:Tr,float:Tr,regexp:Tr,email:Tr,url:Tr,hex:Tr},string:{len:"'${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}"}};function Fn(e,t){for(var r=e,n=0;n<t.length;n+=1){if(r==null)return;r=r[t[n]];}return r}function qO(e){return Gg(e)||zg(e)||Rf(e)||Kg()}function Jg(e,t,r,n){if(!t.length)return r;var i=qO(t),o=i[0],a=i.slice(1),s;return !e&&typeof o=="number"?s=[]:Array.isArray(e)?s=le(e):s=D({},e),n&&r===void 0&&a.length===1?delete s[o][a[0]]:s[o]=Jg(s[o],a,r,n),s}function ei(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&n&&r===void 0&&!Fn(e,t.slice(0,-1))?e:Jg(e,t,r,n)}function vc(e){return Array.isArray(e)?YO(e):ot(e)==="object"&&e!==null?XO(e):e}function XO(e){if(Object.getPrototypeOf(e)===Object.prototype){var t={};for(var r in e)t[r]=vc(e[r]);return t}return e}function YO(e){return e.map(function(t){return vc(t)})}function Ht(e){return sd(e)}function Mv(e,t){var r={};return t.forEach(function(n){var i=Fn(e,n);r=ei(r,n,i);}),r}function Ca(e,t){return e&&e.some(function(r){return tb(r,t)})}function Nv(e){return ot(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function eb(e,t){var r=Array.isArray(e)?le(e):D({},e);return t&&Object.keys(t).forEach(function(n){var i=r[n],o=t[n],a=Nv(i)&&Nv(o);r[n]=a?eb(i,o||{}):vc(o);}),r}function xa(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return r.reduce(function(i,o){return eb(i,o)},e)}function tb(e,t){return !e||!t||e.length!==t.length?!1:e.every(function(r,n){return t[n]===r})}function ZO(e,t){if(e===t)return !0;if(!e&&t||e&&!t||!e||!t||ot(e)!=="object"||ot(t)!=="object")return !1;var r=Object.keys(e),n=Object.keys(t),i=new Set([].concat(r,n));return le(i).every(function(o){var a=e[o],s=t[o];return typeof a=="function"&&typeof s=="function"?!0:a===s})}function QO(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&ot(t.target)==="object"&&e in t.target?t.target[e]:t}function Iv(e,t,r){var n=e.length;if(t<0||t>=n||r<0||r>=n)return e;var i=e[t],o=t-r;return o>0?[].concat(le(e.slice(0,r)),[i],le(e.slice(r,t)),le(e.slice(t+1,n))):o<0?[].concat(le(e.slice(0,t)),le(e.slice(t+1,r+1)),[i],le(e.slice(r+1,n))):e}var Av=os;function JO(e,t){return e.replace(/\$\{\w+\}/g,function(r){var n=r.slice(2,-1);return t[n]})}var kv="CODE_LOGIC_ERROR";function hd(e,t,r,n,i){return vd.apply(this,arguments)}function vd(){return vd=Di(pr().mark(function e(t,r,n,i,o){var a,s,l,c,u,d,h,v,p;return pr().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return a=D({},n),delete a.ruleIndex,Av.warning=function(){},a.validator&&(s=a.validator,a.validator=function(){try{return s.apply(void 0,arguments)}catch(b){return console.error(b),Promise.reject(kv)}}),l=null,a&&a.type==="array"&&a.defaultField&&(l=a.defaultField,delete a.defaultField),c=new Av(H({},t,[a])),u=xa({},Qg,i.validateMessages),c.messages(u),d=[],g.prev=10,g.next=13,Promise.resolve(c.validate(H({},t,r),D({},i)));case 13:g.next=18;break;case 15:g.prev=15,g.t0=g.catch(10),g.t0.errors&&(d=g.t0.errors.map(function(b,w){var S=b.message,E=S===kv?u.default:S;return f__namespace.isValidElement(E)?f__namespace.cloneElement(E,{key:"error_".concat(w)}):E}));case 18:if(!(!d.length&&l)){g.next=23;break}return g.next=21,Promise.all(r.map(function(b,w){return hd("".concat(t,".").concat(w),b,l,i,o)}));case 21:return h=g.sent,g.abrupt("return",h.reduce(function(b,w){return [].concat(le(b),le(w))},[]));case 23:return v=D(D({},n),{},{name:t,enum:(n.enum||[]).join(", ")},o),p=d.map(function(b){return typeof b=="string"?JO(b,v):b}),g.abrupt("return",p);case 26:case"end":return g.stop()}},e,null,[[10,15]])})),vd.apply(this,arguments)}function eP(e,t,r,n,i,o){var a=e.join("."),s=r.map(function(u,d){var h=u.validator,v=D(D({},u),{},{ruleIndex:d});return h&&(v.validator=function(p,m,g){var b=!1,w=function(){for(var x=arguments.length,y=new Array(x),C=0;C<x;C++)y[C]=arguments[C];Promise.resolve().then(function(){dr(!b,"Your validator function has already return a promise. `callback` will be ignored."),b||g.apply(void 0,y);});},S=h(p,m,w);b=S&&typeof S.then=="function"&&typeof S.catch=="function",dr(b,"`callback` is deprecated. Please return a promise instead."),b&&S.then(function(){g();}).catch(function(E){g(E||" ");});}),v}).sort(function(u,d){var h=u.warningOnly,v=u.ruleIndex,p=d.warningOnly,m=d.ruleIndex;return !!h==!!p?v-m:h?1:-1}),l;if(i===!0)l=new Promise(function(){var u=Di(pr().mark(function d(h,v){var p,m,g;return pr().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:p=0;case 1:if(!(p<s.length)){w.next=12;break}return m=s[p],w.next=5,hd(a,t,m,n,o);case 5:if(g=w.sent,!g.length){w.next=9;break}return v([{errors:g,rule:m}]),w.abrupt("return");case 9:p+=1,w.next=1;break;case 12:h([]);case 13:case"end":return w.stop()}},d)}));return function(d,h){return u.apply(this,arguments)}}());else {var c=s.map(function(u){return hd(a,t,u,n,o).then(function(d){return {errors:d,rule:u}})});l=(i?rP(c):tP(c)).then(function(u){return Promise.reject(u)});}return l.catch(function(u){return u}),l}function tP(e){return pd.apply(this,arguments)}function pd(){return pd=Di(pr().mark(function e(t){return pr().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.all(t).then(function(i){var o,a=(o=[]).concat.apply(o,le(i));return a}));case 1:case"end":return n.stop()}},e)})),pd.apply(this,arguments)}function rP(e){return md.apply(this,arguments)}function md(){return md=Di(pr().mark(function e(t){var r;return pr().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return r=0,i.abrupt("return",new Promise(function(o){t.forEach(function(a){a.then(function(s){s.errors.length&&o([s]),r+=1,r===t.length&&o([]);});});}));case 2:case"end":return i.stop()}},e)})),md.apply(this,arguments)}var nP=["name"],Hr=[];function Lv(e,t,r,n,i,o){return typeof e=="function"?e(t,r,"source"in o?{source:o.source}:{}):n!==i}var kf=function(e){Fo(r,e);var t=Do(r);function r(n){var i;if(Er(this,r),i=t.call(this,n),i.state={resetCount:0},i.cancelRegisterFunc=null,i.mounted=!1,i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.prevValidating=void 0,i.errors=Hr,i.warnings=Hr,i.cancelRegister=function(){var l=i.props,c=l.preserve,u=l.isListField,d=l.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(u,c,Ht(d)),i.cancelRegisterFunc=null;},i.getNamePath=function(){var l=i.props,c=l.name,u=l.fieldContext,d=u.prefixName,h=d===void 0?[]:d;return c!==void 0?[].concat(le(h),le(c)):[]},i.getRules=function(){var l=i.props,c=l.rules,u=c===void 0?[]:c,d=l.fieldContext;return u.map(function(h){return typeof h=="function"?h(d):h})},i.refresh=function(){i.mounted&&i.setState(function(l){var c=l.resetCount;return {resetCount:c+1}});},i.triggerMetaEvent=function(l){var c=i.props.onMetaChange;c==null||c(D(D({},i.getMeta()),{},{destroy:l}));},i.onStoreChange=function(l,c,u){var d=i.props,h=d.shouldUpdate,v=d.dependencies,p=v===void 0?[]:v,m=d.onReset,g=u.store,b=i.getNamePath(),w=i.getValue(l),S=i.getValue(g),E=c&&Ca(c,b);switch(u.type==="valueUpdate"&&u.source==="external"&&w!==S&&(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=Hr,i.warnings=Hr,i.triggerMetaEvent()),u.type){case"reset":if(!c||E){i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.errors=Hr,i.warnings=Hr,i.triggerMetaEvent(),m==null||m(),i.refresh();return}break;case"remove":{if(h){i.reRender();return}break}case"setField":{if(E){var x=u.data;"touched"in x&&(i.touched=x.touched),"validating"in x&&!("originRCField"in x)&&(i.validatePromise=x.validating?Promise.resolve([]):null),"errors"in x&&(i.errors=x.errors||Hr),"warnings"in x&&(i.warnings=x.warnings||Hr),i.dirty=!0,i.triggerMetaEvent(),i.reRender();return}if(h&&!b.length&&Lv(h,l,g,w,S,u)){i.reRender();return}break}case"dependenciesUpdate":{var y=p.map(Ht);if(y.some(function(C){return Ca(u.relatedFields,C)})){i.reRender();return}break}default:if(E||(!p.length||b.length||h)&&Lv(h,l,g,w,S,u)){i.reRender();return}break}h===!0&&i.reRender();},i.validateRules=function(l){var c=i.getNamePath(),u=i.getValue(),d=l||{},h=d.triggerName,v=d.validateOnly,p=v===void 0?!1:v,m=Promise.resolve().then(function(){if(!i.mounted)return [];var g=i.props,b=g.validateFirst,w=b===void 0?!1:b,S=g.messageVariables,E=i.getRules();h&&(E=E.filter(function(y){return y}).filter(function(y){var C=y.validateTrigger;if(!C)return !0;var R=sd(C);return R.includes(h)}));var x=eP(c,u,E,l,w,S);return x.catch(function(y){return y}).then(function(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Hr;if(i.validatePromise===m){var C;i.validatePromise=null;var R=[],M=[];(C=y.forEach)===null||C===void 0||C.call(y,function(O){var N=O.rule.warningOnly,_=O.errors,$=_===void 0?Hr:_;N?M.push.apply(M,le($)):R.push.apply(R,le($));}),i.errors=R,i.warnings=M,i.triggerMetaEvent(),i.reRender();}}),x});return p||(i.validatePromise=m,i.dirty=!0,i.errors=Hr,i.warnings=Hr,i.triggerMetaEvent(),i.reRender()),m},i.isFieldValidating=function(){return !!i.validatePromise},i.isFieldTouched=function(){return i.touched},i.isFieldDirty=function(){if(i.dirty||i.props.initialValue!==void 0)return !0;var l=i.props.fieldContext,c=l.getInternalHooks(xi),u=c.getInitialValue;return u(i.getNamePath())!==void 0},i.getErrors=function(){return i.errors},i.getWarnings=function(){return i.warnings},i.isListField=function(){return i.props.isListField},i.isList=function(){return i.props.isList},i.isPreserve=function(){return i.props.preserve},i.getMeta=function(){i.prevValidating=i.isFieldValidating();var l={touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:i.validatePromise===null};return l},i.getOnlyChild=function(l){if(typeof l=="function"){var c=i.getMeta();return D(D({},i.getOnlyChild(l(i.getControlled(),c,i.props.fieldContext))),{},{isFunction:!0})}var u=fi(l);return u.length!==1||!f__namespace.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}},i.getValue=function(l){var c=i.props.fieldContext.getFieldsValue,u=i.getNamePath();return Fn(l||c(!0),u)},i.getControlled=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=i.props,u=c.trigger,d=c.validateTrigger,h=c.getValueFromEvent,v=c.normalize,p=c.valuePropName,m=c.getValueProps,g=c.fieldContext,b=d!==void 0?d:g.validateTrigger,w=i.getNamePath(),S=g.getInternalHooks,E=g.getFieldsValue,x=S(xi),y=x.dispatch,C=i.getValue(),R=m||function(_){return H({},p,_)},M=l[u],O=D(D({},l),R(C));O[u]=function(){i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var _,$=arguments.length,P=new Array($),T=0;T<$;T++)P[T]=arguments[T];h?_=h.apply(void 0,P):_=QO.apply(void 0,[p].concat(P)),v&&(_=v(_,C,E(!0))),y({type:"updateValue",namePath:w,value:_}),M&&M.apply(void 0,P);};var N=sd(b||[]);return N.forEach(function(_){var $=O[_];O[_]=function(){$&&$.apply(void 0,arguments);var P=i.props.rules;P&&P.length&&y({type:"validateField",namePath:w,triggerName:_});};}),O},n.fieldContext){var o=n.fieldContext.getInternalHooks,a=o(xi),s=a.initEntityValue;s(ze(i));}return i}return $r(r,[{key:"componentDidMount",value:function(){var i=this.props,o=i.shouldUpdate,a=i.fieldContext;if(this.mounted=!0,a){var s=a.getInternalHooks,l=s(xi),c=l.registerField;this.cancelRegisterFunc=c(this);}o===!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 i=this.state.resetCount,o=this.props.children,a=this.getOnlyChild(o),s=a.child,l=a.isFunction,c;return l?c=s:f__namespace.isValidElement(s)?c=f__namespace.cloneElement(s,this.getControlled(s.props)):(dr(!s,"`children` of Field is not validate ReactElement."),c=s),f__namespace.createElement(f__namespace.Fragment,{key:i},c)}}]),r}(f__namespace.Component);kf.contextType=Mo;kf.defaultProps={trigger:"onChange",valuePropName:"value"};function rb(e){var t=e.name,r=Xe(e,nP),n=f__namespace.useContext(Mo),i=f__namespace.useContext(ad),o=t!==void 0?Ht(t):void 0,a="keep";return r.isListField||(a="_".concat((o||[]).join("_"))),f__namespace.createElement(kf,Ce({key:a,name:o,isListField:!!i},r,{fieldContext:n}))}var iP=function(t){var r=t.name,n=t.initialValue,i=t.children,o=t.rules,a=t.validateTrigger,s=t.isListField,l=f__namespace.useContext(Mo),c=f__namespace.useContext(ad),u=f__namespace.useRef({keys:[],id:0}),d=u.current,h=f__namespace.useMemo(function(){var g=Ht(l.prefixName)||[];return [].concat(le(g),le(Ht(r)))},[l.prefixName,r]),v=f__namespace.useMemo(function(){return D(D({},l),{},{prefixName:h})},[l,h]),p=f__namespace.useMemo(function(){return {getKey:function(b){var w=h.length,S=b[w];return [d.keys[S],b.slice(w+1)]}}},[h]);if(typeof i!="function")return dr(!1,"Form.List only accepts function as children."),null;var m=function(b,w,S){var E=S.source;return E==="internal"?!1:b!==w};return f__namespace.createElement(ad.Provider,{value:p},f__namespace.createElement(Mo.Provider,{value:v},f__namespace.createElement(rb,{name:[],shouldUpdate:m,rules:o,validateTrigger:a,initialValue:n,isList:!0,isListField:s??!!c},function(g,b){var w=g.value,S=w===void 0?[]:w,E=g.onChange,x=l.getFieldValue,y=function(){var O=x(h||[]);return O||[]},C={add:function(O,N){var _=y();N>=0&&N<=_.length?(d.keys=[].concat(le(d.keys.slice(0,N)),[d.id],le(d.keys.slice(N))),E([].concat(le(_.slice(0,N)),[O],le(_.slice(N))))):(d.keys=[].concat(le(d.keys),[d.id]),E([].concat(le(_),[O]))),d.id+=1;},remove:function(O){var N=y(),_=new Set(Array.isArray(O)?O:[O]);_.size<=0||(d.keys=d.keys.filter(function($,P){return !_.has(P)}),E(N.filter(function($,P){return !_.has(P)})));},move:function(O,N){if(O!==N){var _=y();O<0||O>=_.length||N<0||N>=_.length||(d.keys=Iv(d.keys,O,N),E(Iv(_,O,N)));}}},R=S||[];return Array.isArray(R)||(R=[]),i(R.map(function(M,O){var N=d.keys[O];return N===void 0&&(d.keys[O]=d.id,N=d.keys[O],d.id+=1),{name:O,key:N,isListField:!0}}),C,b)})))};function oP(e){var t=!1,r=e.length,n=[];return e.length?new Promise(function(i,o){e.forEach(function(a,s){a.catch(function(l){return t=!0,l}).then(function(l){r-=1,n[s]=l,!(r>0)&&(t&&o(n),i(n));});});}):Promise.resolve([])}var nb="__@field_split__";function ru(e){return e.map(function(t){return "".concat(ot(t),":").concat(t)}).join(nb)}var Yi=function(){function e(){Er(this,e),this.kvs=new Map;}return $r(e,[{key:"set",value:function(r,n){this.kvs.set(ru(r),n);}},{key:"get",value:function(r){return this.kvs.get(ru(r))}},{key:"update",value:function(r,n){var i=this.get(r),o=n(i);o?this.set(r,o):this.delete(r);}},{key:"delete",value:function(r){this.kvs.delete(ru(r));}},{key:"map",value:function(r){return le(this.kvs.entries()).map(function(n){var i=W(n,2),o=i[0],a=i[1],s=o.split(nb);return r({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=W(c,3),d=u[1],h=u[2];return d==="number"?Number(h):h}),value:a})})}},{key:"toJSON",value:function(){var r={};return this.map(function(n){var i=n.key,o=n.value;return r[i.join(".")]=o,null}),r}}]),e}(),aP=["name"],sP=$r(function e(t){var r=this;Er(this,e),this.formHooked=!1,this.forceRootUpdate=void 0,this.subscribable=!0,this.store={},this.fieldEntities=[],this.initialValues={},this.callbacks={},this.validateMessages=null,this.preserve=null,this.lastValidatePromise=null,this.getForm=function(){return {getFieldValue:r.getFieldValue,getFieldsValue:r.getFieldsValue,getFieldError:r.getFieldError,getFieldWarning:r.getFieldWarning,getFieldsError:r.getFieldsError,isFieldsTouched:r.isFieldsTouched,isFieldTouched:r.isFieldTouched,isFieldValidating:r.isFieldValidating,isFieldsValidating:r.isFieldsValidating,resetFields:r.resetFields,setFields:r.setFields,setFieldValue:r.setFieldValue,setFieldsValue:r.setFieldsValue,validateFields:r.validateFields,submit:r.submit,_init:!0,getInternalHooks:r.getInternalHooks}},this.getInternalHooks=function(n){return n===xi?(r.formHooked=!0,{dispatch:r.dispatch,initEntityValue:r.initEntityValue,registerField:r.registerField,useSubscribe:r.useSubscribe,setInitialValues:r.setInitialValues,destroyForm:r.destroyForm,setCallbacks:r.setCallbacks,setValidateMessages:r.setValidateMessages,getFields:r.getFields,setPreserve:r.setPreserve,getInitialValue:r.getInitialValue,registerWatch:r.registerWatch}):(dr(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)},this.useSubscribe=function(n){r.subscribable=n;},this.prevWithoutPreserves=null,this.setInitialValues=function(n,i){if(r.initialValues=n||{},i){var o,a=xa({},n,r.store);(o=r.prevWithoutPreserves)===null||o===void 0||o.map(function(s){var l=s.key;a=ei(a,l,Fn(n,l));}),r.prevWithoutPreserves=null,r.updateStore(a);}},this.destroyForm=function(){var n=new Yi;r.getFieldEntities(!0).forEach(function(i){r.isMergedPreserve(i.isPreserve())||n.set(i.getNamePath(),!0);}),r.prevWithoutPreserves=n;},this.getInitialValue=function(n){var i=Fn(r.initialValues,n);return n.length?vc(i):i},this.setCallbacks=function(n){r.callbacks=n;},this.setValidateMessages=function(n){r.validateMessages=n;},this.setPreserve=function(n){r.preserve=n;},this.watchList=[],this.registerWatch=function(n){return r.watchList.push(n),function(){r.watchList=r.watchList.filter(function(i){return i!==n});}},this.notifyWatch=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(r.watchList.length){var i=r.getFieldsValue(),o=r.getFieldsValue(!0);r.watchList.forEach(function(a){a(i,o,n);});}},this.timeoutId=null,this.warningUnhooked=function(){},this.updateStore=function(n){r.store=n;},this.getFieldEntities=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return n?r.fieldEntities.filter(function(i){return i.getNamePath().length}):r.fieldEntities},this.getFieldsMap=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=new Yi;return r.getFieldEntities(n).forEach(function(o){var a=o.getNamePath();i.set(a,o);}),i},this.getFieldEntitiesForNamePathList=function(n){if(!n)return r.getFieldEntities(!0);var i=r.getFieldsMap(!0);return n.map(function(o){var a=Ht(o);return i.get(a)||{INVALIDATE_NAME_PATH:Ht(o)}})},this.getFieldsValue=function(n,i){if(r.warningUnhooked(),n===!0&&!i)return r.store;var o=r.getFieldEntitiesForNamePathList(Array.isArray(n)?n:null),a=[];return o.forEach(function(s){var l,c="INVALIDATE_NAME_PATH"in s?s.INVALIDATE_NAME_PATH:s.getNamePath();if(!(!n&&(!((l=s.isListField)===null||l===void 0)&&l.call(s))))if(!i)a.push(c);else {var u="getMeta"in s?s.getMeta():null;i(u)&&a.push(c);}}),Mv(r.store,a.map(Ht))},this.getFieldValue=function(n){r.warningUnhooked();var i=Ht(n);return Fn(r.store,i)},this.getFieldsError=function(n){r.warningUnhooked();var i=r.getFieldEntitiesForNamePathList(n);return i.map(function(o,a){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:Ht(n[a]),errors:[],warnings:[]}})},this.getFieldError=function(n){r.warningUnhooked();var i=Ht(n),o=r.getFieldsError([i])[0];return o.errors},this.getFieldWarning=function(n){r.warningUnhooked();var i=Ht(n),o=r.getFieldsError([i])[0];return o.warnings},this.isFieldsTouched=function(){r.warningUnhooked();for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];var a=i[0],s=i[1],l,c=!1;i.length===0?l=null:i.length===1?Array.isArray(a)?(l=a.map(Ht),c=!1):(l=null,c=a):(l=a.map(Ht),c=s);var u=r.getFieldEntities(!0),d=function(g){return g.isFieldTouched()};if(!l)return c?u.every(d):u.some(d);var h=new Yi;l.forEach(function(m){h.set(m,[]);}),u.forEach(function(m){var g=m.getNamePath();l.forEach(function(b){b.every(function(w,S){return g[S]===w})&&h.update(b,function(w){return [].concat(le(w),[m])});});});var v=function(g){return g.some(d)},p=h.map(function(m){var g=m.value;return g});return c?p.every(v):p.some(v)},this.isFieldTouched=function(n){return r.warningUnhooked(),r.isFieldsTouched([n])},this.isFieldsValidating=function(n){r.warningUnhooked();var i=r.getFieldEntities();if(!n)return i.some(function(a){return a.isFieldValidating()});var o=n.map(Ht);return i.some(function(a){var s=a.getNamePath();return Ca(o,s)&&a.isFieldValidating()})},this.isFieldValidating=function(n){return r.warningUnhooked(),r.isFieldsValidating([n])},this.resetWithFieldInitialValue=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=new Yi,o=r.getFieldEntities(!0);o.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var d=i.get(u)||new Set;d.add({entity:l,value:c}),i.set(u,d);}});var a=function(c){c.forEach(function(u){var d=u.props.initialValue;if(d!==void 0){var h=u.getNamePath(),v=r.getInitialValue(h);if(v!==void 0)dr(!1,"Form already set 'initialValues' with path '".concat(h.join("."),"'. Field can not overwrite it."));else {var p=i.get(h);if(p&&p.size>1)dr(!1,"Multiple Field with path '".concat(h.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(p){var m=r.getFieldValue(h);(!n.skipExist||m===void 0)&&r.updateStore(ei(r.store,h,le(p)[0].value));}}}});},s;n.entities?s=n.entities:n.namePathList?(s=[],n.namePathList.forEach(function(l){var c=i.get(l);if(c){var u;(u=s).push.apply(u,le(le(c).map(function(d){return d.entity})));}})):s=o,a(s);},this.resetFields=function(n){r.warningUnhooked();var i=r.store;if(!n){r.updateStore(xa({},r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(i,null,{type:"reset"}),r.notifyWatch();return}var o=n.map(Ht);o.forEach(function(a){var s=r.getInitialValue(a);r.updateStore(ei(r.store,a,s));}),r.resetWithFieldInitialValue({namePathList:o}),r.notifyObservers(i,o,{type:"reset"}),r.notifyWatch(o);},this.setFields=function(n){r.warningUnhooked();var i=r.store,o=[];n.forEach(function(a){var s=a.name,l=Xe(a,aP),c=Ht(s);o.push(c),"value"in l&&r.updateStore(ei(r.store,c,l.value)),r.notifyObservers(i,[c],{type:"setField",data:a});}),r.notifyWatch(o);},this.getFields=function(){var n=r.getFieldEntities(!0),i=n.map(function(o){var a=o.getNamePath(),s=o.getMeta(),l=D(D({},s),{},{name:a,value:r.getFieldValue(a)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return i},this.initEntityValue=function(n){var i=n.props.initialValue;if(i!==void 0){var o=n.getNamePath(),a=Fn(r.store,o);a===void 0&&r.updateStore(ei(r.store,o,i));}},this.isMergedPreserve=function(n){var i=n!==void 0?n:r.preserve;return i??!0},this.registerField=function(n){r.fieldEntities.push(n);var i=n.getNamePath();if(r.notifyWatch([i]),n.props.initialValue!==void 0){var o=r.store;r.resetWithFieldInitialValue({entities:[n],skipExist:!0}),r.notifyObservers(o,[n.getNamePath()],{type:"valueUpdate",source:"internal"});}return function(a,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.fieldEntities=r.fieldEntities.filter(function(d){return d!==n}),!r.isMergedPreserve(s)&&(!a||l.length>1)){var c=a?void 0:r.getInitialValue(i);if(i.length&&r.getFieldValue(i)!==c&&r.fieldEntities.every(function(d){return !tb(d.getNamePath(),i)})){var u=r.store;r.updateStore(ei(u,i,c,!0)),r.notifyObservers(u,[i],{type:"remove"}),r.triggerDependenciesUpdate(u,i);}}r.notifyWatch([i]);}},this.dispatch=function(n){switch(n.type){case"updateValue":{var i=n.namePath,o=n.value;r.updateValue(i,o);break}case"validateField":{var a=n.namePath,s=n.triggerName;r.validateFields([a],{triggerName:s});break}}},this.notifyObservers=function(n,i,o){if(r.subscribable){var a=D(D({},o),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(n,i,a);});}else r.forceRootUpdate();},this.triggerDependenciesUpdate=function(n,i){var o=r.getDependencyChildrenFields(i);return o.length&&r.validateFields(o),r.notifyObservers(n,o,{type:"dependenciesUpdate",relatedFields:[i].concat(le(o))}),o},this.updateValue=function(n,i){var o=Ht(n),a=r.store;r.updateStore(ei(r.store,o,i)),r.notifyObservers(a,[o],{type:"valueUpdate",source:"internal"}),r.notifyWatch([o]);var s=r.triggerDependenciesUpdate(a,o),l=r.callbacks.onValuesChange;if(l){var c=Mv(r.store,[o]);l(c,r.getFieldsValue());}r.triggerOnFieldsChange([o].concat(le(s)));},this.setFieldsValue=function(n){r.warningUnhooked();var i=r.store;if(n){var o=xa(r.store,n);r.updateStore(o);}r.notifyObservers(i,null,{type:"valueUpdate",source:"external"}),r.notifyWatch();},this.setFieldValue=function(n,i){r.setFields([{name:n,value:i}]);},this.getDependencyChildrenFields=function(n){var i=new Set,o=[],a=new Yi;r.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var d=Ht(u);a.update(d,function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return h.add(l),h});});});var s=function l(c){var u=a.get(c)||new Set;u.forEach(function(d){if(!i.has(d)){i.add(d);var h=d.getNamePath();d.isFieldDirty()&&h.length&&(o.push(h),l(h));}});};return s(n),o},this.triggerOnFieldsChange=function(n,i){var o=r.callbacks.onFieldsChange;if(o){var a=r.getFields();if(i){var s=new Yi;i.forEach(function(c){var u=c.name,d=c.errors;s.set(u,d);}),a.forEach(function(c){c.errors=s.get(c.name)||c.errors;});}var l=a.filter(function(c){var u=c.name;return Ca(n,u)});o(l,a);}},this.validateFields=function(n,i){r.warningUnhooked();var o,a;Array.isArray(n)||typeof n=="string"||typeof i=="string"?(o=n,a=i):a=n;var s=!!o,l=s?o.map(Ht):[],c=[];r.getFieldEntities(!0).forEach(function(h){var v;if(s||l.push(h.getNamePath()),!((v=a)===null||v===void 0)&&v.recursive&&s){var p=h.getNamePath();p.every(function(b,w){return o[w]===b||o[w]===void 0})&&l.push(p);}if(!(!h.props.rules||!h.props.rules.length)){var m=h.getNamePath();if(!s||Ca(l,m)){var g=h.validateRules(D({validateMessages:D(D({},Qg),r.validateMessages)},a));c.push(g.then(function(){return {name:m,errors:[],warnings:[]}}).catch(function(b){var w,S=[],E=[];return (w=b.forEach)===null||w===void 0||w.call(b,function(x){var y=x.rule.warningOnly,C=x.errors;y?E.push.apply(E,le(C)):S.push.apply(S,le(C));}),S.length?Promise.reject({name:m,errors:S,warnings:E}):{name:m,errors:S,warnings:E}}));}}});var u=oP(c);r.lastValidatePromise=u,u.catch(function(h){return h}).then(function(h){var v=h.map(function(p){var m=p.name;return m});r.notifyObservers(r.store,v,{type:"validateFinish"}),r.triggerOnFieldsChange(v,h);});var d=u.then(function(){return r.lastValidatePromise===u?Promise.resolve(r.getFieldsValue(l)):Promise.reject([])}).catch(function(h){var v=h.filter(function(p){return p&&p.errors.length});return Promise.reject({values:r.getFieldsValue(l),errorFields:v,outOfDate:r.lastValidatePromise!==u})});return d.catch(function(h){return h}),r.triggerOnFieldsChange(l),d},this.submit=function(){r.warningUnhooked(),r.validateFields().then(function(n){var i=r.callbacks.onFinish;if(i)try{i(n);}catch(o){console.error(o);}}).catch(function(n){var i=r.callbacks.onFinishFailed;i&&i(n);});},this.forceRootUpdate=t;});function ib(e){var t=f__namespace.useRef(),r=f__namespace.useState({}),n=W(r,2),i=n[1];if(!t.current)if(e)t.current=e;else {var o=function(){i({});},a=new sP(o);t.current=a.getForm();}return [t.current]}var gd=f__namespace.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),ob=function(t){var r=t.validateMessages,n=t.onFormChange,i=t.onFormFinish,o=t.children,a=f__namespace.useContext(gd),s=f__namespace.useRef({});return f__namespace.createElement(gd.Provider,{value:D(D({},a),{},{validateMessages:D(D({},a.validateMessages),r),triggerFormChange:function(c,u){n&&n(c,{changedFields:u,forms:s.current}),a.triggerFormChange(c,u);},triggerFormFinish:function(c,u){i&&i(c,{values:u,forms:s.current}),a.triggerFormFinish(c,u);},registerForm:function(c,u){c&&(s.current=D(D({},s.current),{},H({},c,u))),a.registerForm(c,u);},unregisterForm:function(c){var u=D({},s.current);delete u[c],s.current=u,a.unregisterForm(c);}})},o)},lP=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],cP=function(t,r){var n=t.name,i=t.initialValues,o=t.fields,a=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,d=t.validateMessages,h=t.validateTrigger,v=h===void 0?"onChange":h,p=t.onValuesChange,m=t.onFieldsChange,g=t.onFinish,b=t.onFinishFailed,w=Xe(t,lP),S=f__namespace.useContext(gd),E=ib(a),x=W(E,1),y=x[0],C=y.getInternalHooks(xi),R=C.useSubscribe,M=C.setInitialValues,O=C.setCallbacks,N=C.setValidateMessages,_=C.setPreserve,$=C.destroyForm;f__namespace.useImperativeHandle(r,function(){return y}),f__namespace.useEffect(function(){return S.registerForm(n,y),function(){S.unregisterForm(n);}},[S,y,n]),N(D(D({},S.validateMessages),d)),O({onValuesChange:p,onFieldsChange:function(z){if(S.triggerFormChange(n,z),m){for(var V=arguments.length,q=new Array(V>1?V-1:0),U=1;U<V;U++)q[U-1]=arguments[U];m.apply(void 0,[z].concat(q));}},onFinish:function(z){S.triggerFormFinish(n,z),g&&g(z);},onFinishFailed:b}),_(s);var P=f__namespace.useRef(null);M(i,!P.current),P.current||(P.current=!0),f__namespace.useEffect(function(){return $},[]);var T,A=typeof l=="function";if(A){var I=y.getFieldsValue(!0);T=l(I,y);}else T=l;R(!A);var L=f__namespace.useRef();f__namespace.useEffect(function(){ZO(L.current||[],o||[])||y.setFields(o||[]),L.current=o;},[o,y]);var j=f__namespace.useMemo(function(){return D(D({},y),{},{validateTrigger:v})},[y,v]),B=f__namespace.createElement(Mo.Provider,{value:j},T);return u===!1?B:f__namespace.createElement(u,Ce({},w,{onSubmit:function(z){z.preventDefault(),z.stopPropagation(),y.submit();},onReset:function(z){var V;z.preventDefault(),y.resetFields(),(V=w.onReset)===null||V===void 0||V.call(w,z);}}),B)};function Fv(e){try{return JSON.stringify(e)}catch{return Math.random()}}function uP(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],i=n===void 0?[]:n,o=t[1],a=o===void 0?{}:o,s=pO(a)?{form:a}:a,l=s.form,c=f.useState(),u=W(c,2),d=u[0],h=u[1],v=f.useMemo(function(){return Fv(d)},[d]),p=f.useRef(v);p.current=v;var m=f.useContext(Mo),g=l||m,b=g&&g._init,w=Ht(i),S=f.useRef(w);return S.current=w,f.useEffect(function(){if(b){var E=g.getFieldsValue,x=g.getInternalHooks,y=x(xi),C=y.registerWatch,R=C(function(O,N){var _=Fn(s.preserve?N:O,S.current),$=Fv(_);p.current!==$&&(p.current=$,h(_));}),M=Fn(s.preserve?E(!0):E(),S.current);return h(M),R}},[b]),d}var dP=f__namespace.forwardRef(cP),as=dP;as.FormProvider=ob;as.Field=rb;as.List=iP;as.useForm=ib;as.useWatch=uP;const fP={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 hP={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 vP={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},ab=vP,pP={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"]},hP),timePickerLocale:Object.assign({},ab)},Dv=pP,Rr="${label} is not a valid ${type}",mP={locale:"en",Pagination:fP,DatePicker:Dv,TimePicker:ab,Calendar:Dv,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:Rr,method:Rr,array:Rr,object:Rr,number:Rr,date:Rr,boolean:Rr,integer:Rr,float:Rr,regexp:Rr,email:Rr,url:Rr,hex:Rr},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"}},Lf=mP;let nu=Object.assign({},Lf.Modal);function jv(e){e?nu=Object.assign(Object.assign({},nu),e):nu=Object.assign({},Lf.Modal);}const gP=f.createContext(void 0),sb=gP,bP="internalMark",yP=e=>{const{locale:t={},children:r,_ANT_MARK__:n}=e;f__namespace.useEffect(()=>(jv(t&&t.Modal),()=>{jv();}),[t]);const i=f__namespace.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return f__namespace.createElement(sb.Provider,{value:i},r)},wP=yP,SP="5.5.0",xl=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function or(e,t){CP(e)&&(e="100%");var r=xP(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(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 Os(e){return Math.min(1,Math.max(0,e))}function CP(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function xP(e){return typeof e=="string"&&e.indexOf("%")!==-1}function lb(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Ps(e){return e<=1?"".concat(Number(e)*100,"%"):e}function $i(e){return e.length===1?"0"+e:String(e)}function EP(e,t,r){return {r:or(e,255)*255,g:or(t,255)*255,b:or(r,255)*255}}function zv(e,t,r){e=or(e,255),t=or(t,255),r=or(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),o=0,a=0,s=(n+i)/2;if(n===i)a=0,o=0;else {var l=n-i;switch(a=s>.5?l/(2-n-i):l/(n+i),n){case e:o=(t-r)/l+(t<r?6:0);break;case t:o=(r-e)/l+2;break;case r:o=(e-t)/l+4;break}o/=6;}return {h:o,s:a,l:s}}function iu(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*(6*r):r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function $P(e,t,r){var n,i,o;if(e=or(e,360),t=or(t,100),r=or(r,100),t===0)i=r,o=r,n=r;else {var a=r<.5?r*(1+t):r+t-r*t,s=2*r-a;n=iu(s,a,e+1/3),i=iu(s,a,e),o=iu(s,a,e-1/3);}return {r:n*255,g:i*255,b:o*255}}function bd(e,t,r){e=or(e,255),t=or(t,255),r=or(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),o=0,a=n,s=n-i,l=n===0?0:s/n;if(n===i)o=0;else {switch(n){case e:o=(t-r)/s+(t<r?6:0);break;case t:o=(r-e)/s+2;break;case r:o=(e-t)/s+4;break}o/=6;}return {h:o,s:l,v:a}}function _P(e,t,r){e=or(e,360)*6,t=or(t,100),r=or(r,100);var n=Math.floor(e),i=e-n,o=r*(1-t),a=r*(1-i*t),s=r*(1-(1-i)*t),l=n%6,c=[r,a,o,o,s,r][l],u=[s,r,r,a,o,o][l],d=[o,o,s,r,r,a][l];return {r:c*255,g:u*255,b:d*255}}function yd(e,t,r,n){var i=[$i(Math.round(e).toString(16)),$i(Math.round(t).toString(16)),$i(Math.round(r).toString(16))];return n&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function OP(e,t,r,n,i){var o=[$i(Math.round(e).toString(16)),$i(Math.round(t).toString(16)),$i(Math.round(r).toString(16)),$i(PP(n))];return i&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))&&o[3].startsWith(o[3].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function PP(e){return Math.round(parseFloat(e)*255).toString(16)}function Hv(e){return Nr(e)/255}function Nr(e){return parseInt(e,16)}function TP(e){return {r:e>>16,g:(e&65280)>>8,b:e&255}}var wd={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 ao(e){var t={r:0,g:0,b:0},r=1,n=null,i=null,o=null,a=!1,s=!1;return typeof e=="string"&&(e=NP(e)),typeof e=="object"&&(Nn(e.r)&&Nn(e.g)&&Nn(e.b)?(t=EP(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Nn(e.h)&&Nn(e.s)&&Nn(e.v)?(n=Ps(e.s),i=Ps(e.v),t=_P(e.h,n,i),a=!0,s="hsv"):Nn(e.h)&&Nn(e.s)&&Nn(e.l)&&(n=Ps(e.s),o=Ps(e.l),t=$P(e.h,n,o),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=lb(r),{ok:a,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}var RP="[-\\+]?\\d+%?",MP="[-\\+]?\\d*\\.\\d+%?",li="(?:".concat(MP,")|(?:").concat(RP,")"),ou="[\\s|\\(]+(".concat(li,")[,|\\s]+(").concat(li,")[,|\\s]+(").concat(li,")\\s*\\)?"),au="[\\s|\\(]+(".concat(li,")[,|\\s]+(").concat(li,")[,|\\s]+(").concat(li,")[,|\\s]+(").concat(li,")\\s*\\)?"),Xr={CSS_UNIT:new RegExp(li),rgb:new RegExp("rgb"+ou),rgba:new RegExp("rgba"+au),hsl:new RegExp("hsl"+ou),hsla:new RegExp("hsla"+au),hsv:new RegExp("hsv"+ou),hsva:new RegExp("hsva"+au),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 NP(e){if(e=e.trim().toLowerCase(),e.length===0)return !1;var t=!1;if(wd[e])e=wd[e],t=!0;else if(e==="transparent")return {r:0,g:0,b:0,a:0,format:"name"};var r=Xr.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=Xr.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=Xr.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=Xr.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=Xr.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=Xr.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=Xr.hex8.exec(e),r?{r:Nr(r[1]),g:Nr(r[2]),b:Nr(r[3]),a:Hv(r[4]),format:t?"name":"hex8"}:(r=Xr.hex6.exec(e),r?{r:Nr(r[1]),g:Nr(r[2]),b:Nr(r[3]),format:t?"name":"hex"}:(r=Xr.hex4.exec(e),r?{r:Nr(r[1]+r[1]),g:Nr(r[2]+r[2]),b:Nr(r[3]+r[3]),a:Hv(r[4]+r[4]),format:t?"name":"hex8"}:(r=Xr.hex3.exec(e),r?{r:Nr(r[1]+r[1]),g:Nr(r[2]+r[2]),b:Nr(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function Nn(e){return !!Xr.CSS_UNIT.exec(String(e))}var ur=function(){function e(t,r){t===void 0&&(t=""),r===void 0&&(r={});var n;if(t instanceof e)return t;typeof t=="number"&&(t=TP(t)),this.originalInput=t;var i=ao(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(n=r.format)!==null&&n!==void 0?n:i.format,this.gradientType=r.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=i.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(),r,n,i,o=t.r/255,a=t.g/255,s=t.b/255;return o<=.03928?r=o/12.92:r=Math.pow((o+.055)/1.055,2.4),a<=.03928?n=a/12.92:n=Math.pow((a+.055)/1.055,2.4),s<=.03928?i=s/12.92:i=Math.pow((s+.055)/1.055,2.4),.2126*r+.7152*n+.0722*i},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=lb(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=bd(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=bd(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),i=Math.round(t.v*100);return this.a===1?"hsv(".concat(r,", ").concat(n,"%, ").concat(i,"%)"):"hsva(".concat(r,", ").concat(n,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=zv(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=zv(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),i=Math.round(t.l*100);return this.a===1?"hsl(".concat(r,", ").concat(n,"%, ").concat(i,"%)"):"hsla(".concat(r,", ").concat(n,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),yd(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),OP(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),r=Math.round(this.g),n=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(r,", ").concat(n,")"):"rgba(".concat(t,", ").concat(r,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(r){return "".concat(Math.round(or(r,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(r){return Math.round(or(r,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="#"+yd(this.r,this.g,this.b,!1),r=0,n=Object.entries(wd);r<n.length;r++){var i=n[r],o=i[0],a=i[1];if(t===a)return o}return !1},e.prototype.toString=function(t){var r=!!t;t=t??this.format;var n=!1,i=this.a<1&&this.a>=0,o=!r&&i&&(t.startsWith("hex")||t==="name");return o?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||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 r=this.toHsl();return r.l+=t/100,r.l=Os(r.l),new e(r)},e.prototype.brighten=function(t){t===void 0&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),new e(r)},e.prototype.darken=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=Os(r.l),new e(r)},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 r=this.toHsl();return r.s-=t/100,r.s=Os(r.s),new e(r)},e.prototype.saturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=Os(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,new e(r)},e.prototype.mix=function(t,r){r===void 0&&(r=50);var n=this.toRgb(),i=new e(t).toRgb(),o=r/100,a={r:(i.r-n.r)*o+n.r,g:(i.g-n.g)*o+n.g,b:(i.b-n.b)*o+n.b,a:(i.a-n.a)*o+n.a};return new e(a)},e.prototype.analogous=function(t,r){t===void 0&&(t=6),r===void 0&&(r=30);var n=this.toHsl(),i=360/r,o=[this];for(n.h=(n.h-(i*t>>1)+720)%360;--t;)n.h=(n.h+i)%360,o.push(new e(n));return o},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 r=this.toHsv(),n=r.h,i=r.s,o=r.v,a=[],s=1/t;t--;)a.push(new e({h:n,s:i,v:o})),o=(o+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return [this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),n=new e(t).toRgb(),i=r.a+n.a*(1-r.a);return new e({r:(r.r*r.a+n.r*n.a*(1-r.a))/i,g:(r.g*r.a+n.g*n.a*(1-r.a))/i,b:(r.b*r.a+n.b*n.a*(1-r.a))/i,a:i})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),n=r.h,i=[this],o=360/t,a=1;a<t;a++)i.push(new e({h:(n+a*o)%360,s:r.s,l:r.l}));return i},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),Ts=2,Wv=.16,IP=.05,AP=.05,kP=.15,cb=5,ub=4,LP=[{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 Bv(e){var t=e.r,r=e.g,n=e.b,i=bd(t,r,n);return {h:i.h*360,s:i.s,v:i.v}}function Rs(e){var t=e.r,r=e.g,n=e.b;return "#".concat(yd(t,r,n,!1))}function FP(e,t,r){var n=r/100,i={r:(t.r-e.r)*n+e.r,g:(t.g-e.g)*n+e.g,b:(t.b-e.b)*n+e.b};return i}function Vv(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-Ts*t:Math.round(e.h)+Ts*t:n=r?Math.round(e.h)+Ts*t:Math.round(e.h)-Ts*t,n<0?n+=360:n>=360&&(n-=360),n}function Uv(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-Wv*t:t===ub?n=e.s+Wv:n=e.s+IP*t,n>1&&(n=1),r&&t===cb&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2))}function Gv(e,t,r){var n;return r?n=e.v+AP*t:n=e.v-kP*t,n>1&&(n=1),Number(n.toFixed(2))}function Un(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=ao(e),i=cb;i>0;i-=1){var o=Bv(n),a=Rs(ao({h:Vv(o,i,!0),s:Uv(o,i,!0),v:Gv(o,i,!0)}));r.push(a);}r.push(Rs(n));for(var s=1;s<=ub;s+=1){var l=Bv(n),c=Rs(ao({h:Vv(l,s),s:Uv(l,s),v:Gv(l,s)}));r.push(c);}return t.theme==="dark"?LP.map(function(u){var d=u.index,h=u.opacity,v=Rs(FP(ao(t.backgroundColor||"#141414"),ao(r[d]),h*100));return v}):r}var su={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"},lu={},cu={};Object.keys(su).forEach(function(e){lu[e]=Un(su[e]),lu[e].primary=lu[e][5],cu[e]=Un(su[e],{theme:"dark",backgroundColor:"#141414"}),cu[e].primary=cu[e][5];});const DP=e=>{const{controlHeight:t}=e;return {controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},db=DP;function jP(e){const{sizeUnit:t,sizeStep:r}=e;return {sizeXXL:t*(r+8),sizeXL:t*(r+4),sizeLG:t*(r+2),sizeMD:t*(r+1),sizeMS:t*r,size:t*r,sizeSM:t*(r-1),sizeXS:t*(r-2),sizeXXS:t*(r-3)}}const Ff={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"},pc=Object.assign(Object.assign({},Ff),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});function fb(e,t){let{generateColorPalettes:r,generateNeutralColorPalettes:n}=t;const{colorSuccess:i,colorWarning:o,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,d=r(l),h=r(i),v=r(o),p=r(a),m=r(s),g=n(c,u);return Object.assign(Object.assign({},g),{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:h[1],colorSuccessBgHover:h[2],colorSuccessBorder:h[3],colorSuccessBorderHover:h[4],colorSuccessHover:h[4],colorSuccess:h[6],colorSuccessActive:h[7],colorSuccessTextHover:h[8],colorSuccessText:h[9],colorSuccessTextActive:h[10],colorErrorBg:p[1],colorErrorBgHover:p[2],colorErrorBorder:p[3],colorErrorBorderHover:p[4],colorErrorHover:p[5],colorError:p[6],colorErrorActive:p[7],colorErrorTextHover:p[8],colorErrorText:p[9],colorErrorTextActive:p[10],colorWarningBg:v[1],colorWarningBgHover:v[2],colorWarningBorder:v[3],colorWarningBorderHover:v[4],colorWarningHover:v[4],colorWarning:v[6],colorWarningActive:v[7],colorWarningTextHover:v[8],colorWarningText:v[9],colorWarningTextActive:v[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorBgMask:new ur("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const zP=e=>{let t=e,r=e,n=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e>16?16:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:i}},HP=zP;function WP(e){const{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:i}=e;return Object.assign({motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+t*2).toFixed(1)}s`,motionDurationSlow:`${(r+t*3).toFixed(1)}s`,lineWidthBold:i+1},HP(n))}const In=(e,t)=>new ur(e).setAlpha(t).toRgbString(),ea=(e,t)=>new ur(e).darken(t).toHexString(),BP=e=>{const t=Un(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]}},VP=(e,t)=>{const r=e||"#fff",n=t||"#000";return {colorBgBase:r,colorTextBase:n,colorText:In(n,.88),colorTextSecondary:In(n,.65),colorTextTertiary:In(n,.45),colorTextQuaternary:In(n,.25),colorFill:In(n,.15),colorFillSecondary:In(n,.06),colorFillTertiary:In(n,.04),colorFillQuaternary:In(n,.02),colorBgLayout:ea(r,4),colorBgContainer:ea(r,0),colorBgElevated:ea(r,0),colorBgSpotlight:In(n,.85),colorBorder:ea(r,15),colorBorderSecondary:ea(r,6)}};function UP(e){const t=new Array(10).fill(null).map((r,n)=>{const i=n-1,o=e*Math.pow(2.71828,i/5),a=n>1?Math.floor(o):Math.ceil(o);return Math.floor(a/2)*2});return t[1]=e,t.map(r=>{const n=r+8;return {size:r,lineHeight:n/r}})}const GP=e=>{const t=UP(e),r=t.map(i=>i.size),n=t.map(i=>i.lineHeight);return {fontSizeSM:r[0],fontSize:r[1],fontSizeLG:r[2],fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:n[1],lineHeightLG:n[2],lineHeightSM:n[0],lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}},hb=GP;function mc(e){const t=Object.keys(Ff).map(r=>{const n=Un(e[r]);return new Array(10).fill(1).reduce((i,o,a)=>(i[`${r}-${a+1}`]=n[a],i[`${r}${a+1}`]=n[a],i),{})}).reduce((r,n)=>(r=Object.assign(Object.assign({},r),n),r),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),fb(e,{generateColorPalettes:BP,generateNeutralColorPalettes:VP})),hb(e.fontSize)),jP(e)),db(e)),WP(e))}function uu(e){return e>=0&&e<=255}function Ms(e,t){const{r,g:n,b:i,a:o}=new ur(e).toRgb();if(o<1)return e;const{r:a,g:s,b:l}=new ur(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((r-a*(1-c))/c),d=Math.round((n-s*(1-c))/c),h=Math.round((i-l*(1-c))/c);if(uu(u)&&uu(d)&&uu(h))return new ur({r:u,g:d,b:h,a:Math.round(c*100)/100}).toRgbString()}return new ur({r,g:n,b:i,a:1}).toRgbString()}var KP=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function qP(e){const{override:t}=e,r=KP(e,["override"]),n=Object.assign({},t);Object.keys(pc).forEach(h=>{delete n[h];});const i=Object.assign(Object.assign({},r),n),o=480,a=576,s=768,l=992,c=1200,u=1600;if(i.motion===!1){const h="0s";i.motionDurationFast=h,i.motionDurationMid=h,i.motionDurationSlow=h;}return Object.assign(Object.assign(Object.assign({},i),{colorLink:i.colorInfoText,colorLinkHover:i.colorInfoHover,colorLinkActive:i.colorInfoActive,colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:Ms(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:Ms(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:Ms(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*4,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:Ms(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.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:o,screenXSMin:o,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
      0 1px 2px -2px ${new ur("rgba(0, 0, 0, 0.16)").toRgbString()},
      0 3px 6px 0 ${new ur("rgba(0, 0, 0, 0.12)").toRgbString()},
      0 5px 12px 4px ${new ur("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)"}),n)}const vb="anticon",XP=(e,t)=>t||(e?`ant-${e}`:"ant"),Wt=f__namespace.createContext({getPrefixCls:XP,iconPrefixCls:vb}),YP=(e,t,r,n,i)=>{const o=e/2,a=0,s=o,l=r*1/Math.sqrt(2),c=o-r*(1-1/Math.sqrt(2)),u=o-t*(1/Math.sqrt(2)),d=r*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),h=2*o-u,v=d,p=2*o-l,m=c,g=2*o-a,b=s,w=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),S=r*(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:n,clipPath:{_multi_value_:!0,value:[`polygon(${S}px 100%, 50% ${S}px, ${2*o-S}px 100%, ${S}px 100%)`,`path('M ${a} ${s} A ${r} ${r} 0 0 0 ${l} ${c} L ${u} ${d} A ${t} ${t} 0 0 1 ${h} ${v} L ${p} ${m} A ${r} ${r} 0 0 0 ${g} ${b} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:w,height:w,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${t}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:i,zIndex:0,background:"transparent"}}},ZP={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},yr=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),pb=()=>({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"}}),QP=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),JP=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},[`&:active,
  &:hover`]:{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),eT=(e,t)=>{const{fontFamily:r,fontSize:n}=e,i=`[class^="${t}"], [class*=" ${t}"]`;return {[i]:{fontFamily:r,fontSize:n,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[i]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},gc=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Df=e=>({"&:focus-visible":Object.assign({},gc(e))});function Tn(e,t,r,n){return i=>{const[o,a,s]=ss(),{getPrefixCls:l,iconPrefixCls:c,csp:u}=f.useContext(Wt),d=l(),h={theme:o,token:a,hashId:s,nonce:()=>u==null?void 0:u.nonce};return od(Object.assign(Object.assign({},h),{path:["Shared",d]}),()=>[{"&":JP(a)}]),[od(Object.assign(Object.assign({},h),{path:[e,i,c]}),()=>{const{token:v,flush:p}=rT(a),m=typeof r=="function"?r(v):r,g=Object.assign(Object.assign({},m),a[e]),b=`.${i}`,w=mr(v,{componentCls:b,prefixCls:i,iconCls:`.${c}`,antCls:`.${d}`},g),S=t(w,{hashId:s,prefixCls:i,rootPrefixCls:d,iconPrefixCls:c,overrideComponentToken:a[e]});return p(e,g),[(n==null?void 0:n.resetStyle)===!1?null:eT(a,i),S]}),s]}}const mb=typeof CSSINJS_STATISTIC<"u";let Sd=!0;function mr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!mb)return Object.assign.apply(Object,[{}].concat(t));Sd=!1;const n={};return t.forEach(i=>{Object.keys(i).forEach(a=>{Object.defineProperty(n,a,{configurable:!0,enumerable:!0,get:()=>i[a]});});}),Sd=!0,n}function tT(){}function rT(e){let t,r=e,n=tT;return mb&&(t=new Set,r=new Proxy(e,{get(i,o){return Sd&&t.add(o),i[o]}}),n=(i,o)=>{Array.from(t);}),{token:r,keys:t,flush:n}}function gb(e,t){return xl.reduce((r,n)=>{const i=e[`${n}1`],o=e[`${n}3`],a=e[`${n}6`],s=e[`${n}7`];return Object.assign(Object.assign({},r),t(n,{lightColor:i,lightBorderColor:o,darkColor:a,textColor:s}))},{})}const nT=Yg(mc),El={token:pc,hashed:!0},bb=f.createContext(El);function ss(){const{token:e,hashed:t,theme:r,components:n}=f.useContext(bb),i=`${SP}-${t||""}`,o=r||nT,[a,s]=iO(o,[pc,e],{salt:i,override:Object.assign({override:e},n),formatToken:qP});return [o,a,t?s:""]}const iT=`-ant-${Date.now()}-${Math.random()}`;function oT(e,t){const r={},n=(a,s)=>{let l=a.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},i=(a,s)=>{const l=new ur(a),c=Un(l.toRgbString());r[`${s}-color`]=n(l),r[`${s}-color-disabled`]=c[1],r[`${s}-color-hover`]=c[4],r[`${s}-color-active`]=c[6],r[`${s}-color-outline`]=l.clone().setAlpha(.2).toRgbString(),r[`${s}-color-deprecated-bg`]=c[0],r[`${s}-color-deprecated-border`]=c[2];};if(t.primaryColor){i(t.primaryColor,"primary");const a=new ur(t.primaryColor),s=Un(a.toRgbString());s.forEach((c,u)=>{r[`primary-${u+1}`]=c;}),r["primary-color-deprecated-l-35"]=n(a,c=>c.lighten(35)),r["primary-color-deprecated-l-20"]=n(a,c=>c.lighten(20)),r["primary-color-deprecated-t-20"]=n(a,c=>c.tint(20)),r["primary-color-deprecated-t-50"]=n(a,c=>c.tint(50)),r["primary-color-deprecated-f-12"]=n(a,c=>c.setAlpha(c.getAlpha()*.12));const l=new ur(s[0]);r["primary-color-active-deprecated-f-30"]=n(l,c=>c.setAlpha(c.getAlpha()*.3)),r["primary-color-active-deprecated-d-02"]=n(l,c=>c.darken(2));}return t.successColor&&i(t.successColor,"success"),t.warningColor&&i(t.warningColor,"warning"),t.errorColor&&i(t.errorColor,"error"),t.infoColor&&i(t.infoColor,"info"),`
  :root {
    ${Object.keys(r).map(a=>`--${e}-${a}: ${r[a]};`).join(`
`)}
  }
  `.trim()}function aT(e,t){const r=oT(e,t);Sr()&&Ro(r,`${iT}-dynamic-theme`);}const Cd=f__namespace.createContext(!1),sT=e=>{let{children:t,disabled:r}=e;const n=f__namespace.useContext(Cd);return f__namespace.createElement(Cd.Provider,{value:r??n},t)},ls=Cd,lT=e=>{const t=f.useContext(bc);return f.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},jo=lT,yb=f__namespace.createContext(void 0),cT=e=>{let{children:t,size:r}=e;const n=jo(r);return f__namespace.createElement(yb.Provider,{value:n},t)},bc=yb;function uT(){const e=f.useContext(ls),t=f.useContext(bc);return {componentDisabled:e,componentSize:t}}function dT(e,t){const r=e||{},n=r.inherit===!1||!t?El:t;return cc(()=>{if(!e)return t;const o=Object.assign({},n.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({},n),r),{token:Object.assign(Object.assign({},n.token),r.token),components:o})},[r,n],(o,a)=>o.some((s,l)=>{const c=a[l];return !is(s,c,!0)}))}var fT=["children"],wb=f__namespace.createContext({});function hT(e){var t=e.children,r=Xe(e,fT);return f__namespace.createElement(wb.Provider,{value:r},t)}var vT=function(e){Fo(r,e);var t=Do(r);function r(){return Er(this,r),t.apply(this,arguments)}return $r(r,[{key:"render",value:function(){return this.props.children}}]),r}(f__namespace.Component);function Mi(e){var t=f__namespace.useRef(!1),r=f__namespace.useState(e),n=W(r,2),i=n[0],o=n[1];f__namespace.useEffect(function(){return t.current=!1,function(){t.current=!0;}},[]);function a(s,l){l&&t.current||o(s);}return [i,a]}var wi="none",Ns="appear",Is="enter",As="leave",Kv="none",rn="prepare",co="start",uo="active",jf="end",Sb="prepared";function qv(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit".concat(e)]="webkit".concat(t),r["Moz".concat(e)]="moz".concat(t),r["ms".concat(e)]="MS".concat(t),r["O".concat(e)]="o".concat(t.toLowerCase()),r}function pT(e,t){var r={animationend:qv("Animation","AnimationEnd"),transitionend:qv("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var mT=pT(Sr(),typeof window<"u"?window:{}),Cb={};if(Sr()){var gT=document.createElement("div");Cb=gT.style;}var ks={};function xb(e){if(ks[e])return ks[e];var t=mT[e];if(t)for(var r=Object.keys(t),n=r.length,i=0;i<n;i+=1){var o=r[i];if(Object.prototype.hasOwnProperty.call(t,o)&&o in Cb)return ks[e]=t[o],ks[e]}return ""}var Eb=xb("animationend"),$b=xb("transitionend"),_b=!!(Eb&&$b),Xv=Eb||"animationend",Yv=$b||"transitionend";function Zv(e,t){if(!e)return null;if(ot(e)==="object"){var r=t.replace(/-\w/g,function(n){return n[1].toUpperCase()});return e[r]}return "".concat(e,"-").concat(t)}const bT=function(e){var t=f.useRef(),r=f.useRef(e);r.current=e;var n=f__namespace.useCallback(function(a){r.current(a);},[]);function i(a){a&&(a.removeEventListener(Yv,n),a.removeEventListener(Xv,n));}function o(a){t.current&&t.current!==a&&i(t.current),a&&a!==t.current&&(a.addEventListener(Yv,n),a.addEventListener(Xv,n),t.current=a);}return f__namespace.useEffect(function(){return function(){i(t.current);}},[]),[o,i]};var Ob=Sr()?f.useLayoutEffect:f.useEffect,Pb=function(t){return +setTimeout(t,16)},Tb=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(Pb=function(t){return window.requestAnimationFrame(t)},Tb=function(t){return window.cancelAnimationFrame(t)});var Qv=0,zf=new Map;function Rb(e){zf.delete(e);}var It=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Qv+=1;var n=Qv;function i(o){if(o===0)Rb(n),t();else {var a=Pb(function(){i(o-1);});zf.set(n,a);}}return i(r),n};It.cancel=function(e){var t=zf.get(e);return Rb(t),Tb(t)};const yT=function(){var e=f__namespace.useRef(null);function t(){It.cancel(e.current);}function r(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var o=It(function(){i<=1?n({isCanceled:function(){return o!==e.current}}):r(n,i-1);});e.current=o;}return f__namespace.useEffect(function(){return function(){t();}},[]),[r,t]};var wT=[rn,co,uo,jf],ST=[rn,Sb],Mb=!1,CT=!0;function Nb(e){return e===uo||e===jf}const xT=function(e,t,r){var n=Mi(Kv),i=W(n,2),o=i[0],a=i[1],s=yT(),l=W(s,2),c=l[0],u=l[1];function d(){a(rn,!0);}var h=t?ST:wT;return Ob(function(){if(o!==Kv&&o!==jf){var v=h.indexOf(o),p=h[v+1],m=r(o);m===Mb?a(p,!0):p&&c(function(g){function b(){g.isCanceled()||a(p,!0);}m===!0?b():Promise.resolve(m).then(b);});}},[e,o]),f__namespace.useEffect(function(){return function(){u();}},[]),[d,o]};function ET(e,t,r,n){var i=n.motionEnter,o=i===void 0?!0:i,a=n.motionAppear,s=a===void 0?!0:a,l=n.motionLeave,c=l===void 0?!0:l,u=n.motionDeadline,d=n.motionLeaveImmediately,h=n.onAppearPrepare,v=n.onEnterPrepare,p=n.onLeavePrepare,m=n.onAppearStart,g=n.onEnterStart,b=n.onLeaveStart,w=n.onAppearActive,S=n.onEnterActive,E=n.onLeaveActive,x=n.onAppearEnd,y=n.onEnterEnd,C=n.onLeaveEnd,R=n.onVisibleChanged,M=Mi(),O=W(M,2),N=O[0],_=O[1],$=Mi(wi),P=W($,2),T=P[0],A=P[1],I=Mi(null),L=W(I,2),j=L[0],B=L[1],G=f.useRef(!1),z=f.useRef(null);function V(){return r()}var q=f.useRef(!1);function U(){A(wi,!0),B(null,!0);}function Q(ge){var ve=V();if(!(ge&&!ge.deadline&&ge.target!==ve)){var Ee=q.current,Ye;T===Ns&&Ee?Ye=x==null?void 0:x(ve,ge):T===Is&&Ee?Ye=y==null?void 0:y(ve,ge):T===As&&Ee&&(Ye=C==null?void 0:C(ve,ge)),T!==wi&&Ee&&Ye!==!1&&U();}}var ie=bT(Q),Z=W(ie,1),te=Z[0],ae=function(ve){var Ee,Ye,ft;switch(ve){case Ns:return Ee={},H(Ee,rn,h),H(Ee,co,m),H(Ee,uo,w),Ee;case Is:return Ye={},H(Ye,rn,v),H(Ye,co,g),H(Ye,uo,S),Ye;case As:return ft={},H(ft,rn,p),H(ft,co,b),H(ft,uo,E),ft;default:return {}}},ue=f__namespace.useMemo(function(){return ae(T)},[T]),$e=xT(T,!e,function(ge){if(ge===rn){var ve=ue[rn];return ve?ve(V()):Mb}if(se in ue){var Ee;B(((Ee=ue[se])===null||Ee===void 0?void 0:Ee.call(ue,V(),null))||null);}return se===uo&&(te(V()),u>0&&(clearTimeout(z.current),z.current=setTimeout(function(){Q({deadline:!0});},u))),se===Sb&&U(),CT}),J=W($e,2),oe=J[0],se=J[1],re=Nb(se);q.current=re,Ob(function(){_(t);var ge=G.current;G.current=!0;var ve;!ge&&t&&s&&(ve=Ns),ge&&t&&o&&(ve=Is),(ge&&!t&&c||!ge&&d&&!t&&c)&&(ve=As);var Ee=ae(ve);ve&&(e||Ee[rn])?(A(ve),oe()):A(wi);},[t]),f.useEffect(function(){(T===Ns&&!s||T===Is&&!o||T===As&&!c)&&A(wi);},[s,o,c]),f.useEffect(function(){return function(){G.current=!1,clearTimeout(z.current);}},[]);var xe=f__namespace.useRef(!1);f.useEffect(function(){N&&(xe.current=!0),N!==void 0&&T===wi&&((xe.current||N)&&(R==null||R(N)),xe.current=!0);},[N,T]);var de=j;return ue[rn]&&se===co&&(de=D({transition:"none"},de)),[T,se,de,N??t]}function $T(e){var t=e;ot(e)==="object"&&(t=e.transitionSupport);function r(i,o){return !!(i.motionName&&t&&o!==!1)}var n=f__namespace.forwardRef(function(i,o){var a=i.visible,s=a===void 0?!0:a,l=i.removeOnLeave,c=l===void 0?!0:l,u=i.forceRender,d=i.children,h=i.motionName,v=i.leavedClassName,p=i.eventProps,m=f__namespace.useContext(wb),g=m.motion,b=r(i,g),w=f.useRef(),S=f.useRef();function E(){try{return w.current instanceof HTMLElement?w.current:bl(S.current)}catch{return null}}var x=ET(b,s,E,i),y=W(x,4),C=y[0],R=y[1],M=y[2],O=y[3],N=f__namespace.useRef(O);O&&(N.current=!0);var _=f__namespace.useCallback(function(B){w.current=B,Tf(o,B);},[o]),$,P=D(D({},p),{},{visible:s});if(!d)$=null;else if(C===wi)O?$=d(D({},P),_):!c&&N.current&&v?$=d(D(D({},P),{},{className:v}),_):u||!c&&!v?$=d(D(D({},P),{},{style:{display:"none"}}),_):$=null;else {var T,A;R===rn?A="prepare":Nb(R)?A="active":R===co&&(A="start");var I=Zv(h,"".concat(C,"-").concat(A));$=d(D(D({},P),{},{className:K(Zv(h,C),(T={},H(T,I,I&&A),H(T,h,typeof h=="string"),T)),style:M}),_);}if(f__namespace.isValidElement($)&&hi($)){var L=$,j=L.ref;j||($=f__namespace.cloneElement($,{ref:_}));}return f__namespace.createElement(vT,{ref:S},$)});return n.displayName="CSSMotion",n}const Rn=$T(_b);var xd="add",Ed="keep",$d="remove",du="removed";function _T(e){var t;return e&&ot(e)==="object"&&"key"in e?t=e:t={key:e},D(D({},t),{},{key:String(t.key)})}function _d(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(_T)}function OT(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[],n=0,i=t.length,o=_d(e),a=_d(t);o.forEach(function(c){for(var u=!1,d=n;d<i;d+=1){var h=a[d];if(h.key===c.key){n<d&&(r=r.concat(a.slice(n,d).map(function(v){return D(D({},v),{},{status:xd})})),n=d),r.push(D(D({},h),{},{status:Ed})),n+=1,u=!0;break}}u||r.push(D(D({},c),{},{status:$d}));}),n<i&&(r=r.concat(a.slice(n).map(function(c){return D(D({},c),{},{status:xd})})));var s={};r.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){r=r.filter(function(u){var d=u.key,h=u.status;return d!==c||h!==$d}),r.forEach(function(u){u.key===c&&(u.status=Ed);});}),r}var PT=["component","children","onVisibleChanged","onAllRemoved"],TT=["status"],RT=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function MT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Rn,r=function(n){Fo(o,n);var i=Do(o);function o(){var a;Er(this,o);for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return a=i.call.apply(i,[this].concat(l)),H(ze(a),"state",{keyEntities:[]}),H(ze(a),"removeKey",function(u){var d=a.state.keyEntities,h=d.map(function(v){return v.key!==u?v:D(D({},v),{},{status:du})});return a.setState({keyEntities:h}),h.filter(function(v){var p=v.status;return p!==du}).length}),a}return $r(o,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,c=this.props,u=c.component,d=c.children,h=c.onVisibleChanged,v=c.onAllRemoved,p=Xe(c,PT),m=u||f__namespace.Fragment,g={};return RT.forEach(function(b){g[b]=p[b],delete p[b];}),delete p.keys,f__namespace.createElement(m,p,l.map(function(b){var w=b.status,S=Xe(b,TT),E=w===xd||w===Ed;return f__namespace.createElement(t,Ce({},g,{key:S.key,visible:E,eventProps:S,onVisibleChanged:function(y){if(h==null||h(y,{key:S.key}),!y){var C=s.removeKey(S.key);C===0&&v&&v();}}}),d)}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var c=s.keys,u=l.keyEntities,d=_d(c),h=OT(u,d);return {keyEntities:h.filter(function(v){var p=u.find(function(m){var g=m.key;return v.key===g});return !(p&&p.status===du&&v.status===$d)})}}}]),o}(f__namespace.Component);return H(r,"defaultProps",{component:"div"}),r}MT(_b);function NT(e){const{children:t}=e,[,r]=ss(),{motion:n}=r,i=f__namespace.useRef(!1);return i.current=i.current||n===!1,i.current?f__namespace.createElement(hT,{motion:n},t):t}const IT=(e,t)=>{const[r,n]=ss();return od({theme:r,token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},pb()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},AT=IT;var kT=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const LT=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select"],FT="ant";let Ib;function DT(){return Ib||FT}const jT=e=>{let{prefixCls:t,iconPrefixCls:r,theme:n}=e;t!==void 0&&(Ib=t),n&&aT(DT(),n);},zT=e=>{const{children:t,csp:r,autoInsertSpaceInButton:n,form:i,locale:o,componentSize:a,direction:s,space:l,virtual:c,dropdownMatchSelectWidth:u,popupMatchSelectWidth:d,popupOverflow:h,legacyLocale:v,parentContext:p,iconPrefixCls:m,theme:g,componentDisabled:b}=e,w=f__namespace.useCallback((T,A)=>{const{prefixCls:I}=e;if(A)return A;const L=I||p.getPrefixCls("");return T?`${L}-${T}`:L},[p.getPrefixCls,e.prefixCls]),S=m||p.iconPrefixCls||vb,E=S!==p.iconPrefixCls,x=r||p.csp,y=AT(S,x),C=dT(g,p.theme),R={csp:x,autoInsertSpaceInButton:n,locale:o||v,direction:s,space:l,virtual:c,popupMatchSelectWidth:d??u,popupOverflow:h,getPrefixCls:w,iconPrefixCls:S,theme:C},M=Object.assign({},p);Object.keys(R).forEach(T=>{R[T]!==void 0&&(M[T]=R[T]);}),LT.forEach(T=>{const A=e[T];A&&(M[T]=A);});const O=cc(()=>M,M,(T,A)=>{const I=Object.keys(T),L=Object.keys(A);return I.length!==L.length||I.some(j=>T[j]!==A[j])}),N=f__namespace.useMemo(()=>({prefixCls:S,csp:x}),[S,x]);let _=E?y(t):t;const $=f__namespace.useMemo(()=>{var T,A,I;return xa({},((T=Lf.Form)===null||T===void 0?void 0:T.defaultValidateMessages)||{},((I=(A=O.locale)===null||A===void 0?void 0:A.Form)===null||I===void 0?void 0:I.defaultValidateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[O,i==null?void 0:i.validateMessages]);Object.keys($).length>0&&(_=f__namespace.createElement(ob,{validateMessages:$},t)),o&&(_=f__namespace.createElement(wP,{locale:o,_ANT_MARK__:bP},_)),(S||x)&&(_=f__namespace.createElement(Af.Provider,{value:N},_)),a&&(_=f__namespace.createElement(cT,{size:a},_)),_=f__namespace.createElement(NT,null,_);const P=f__namespace.useMemo(()=>{const T=C||{},{algorithm:A,token:I}=T,L=kT(T,["algorithm","token"]),j=A&&(!Array.isArray(A)||A.length>0)?Yg(A):void 0;return Object.assign(Object.assign({},L),{theme:j,token:Object.assign(Object.assign({},pc),I)})},[C]);return g&&(_=f__namespace.createElement(bb.Provider,{value:P},_)),b!==void 0&&(_=f__namespace.createElement(sT,{disabled:b},_)),f__namespace.createElement(Wt.Provider,{value:O},_)},zo=e=>{const t=f__namespace.useContext(Wt),r=f__namespace.useContext(sb);return f__namespace.createElement(zT,Object.assign({parentContext:t,legacyLocale:r},e))};zo.ConfigContext=Wt;zo.SizeContext=bc;zo.config=jT;zo.useConfig=uT;Object.defineProperty(zo,"SizeContext",{get:()=>bc});const Ab=zo;function fa(e,t,r,n){var i=$o.unstable_batchedUpdates?function(a){$o.unstable_batchedUpdates(r,a);}:r;return e.addEventListener&&e.addEventListener(t,i,n),{remove:function(){e.removeEventListener&&e.removeEventListener(t,i,n);}}}function HT(e,t){dr(e,"[@ant-design/icons] ".concat(t));}function Jv(e){return ot(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(ot(e.icon)==="object"||typeof e.icon=="function")}function ep(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:t[r]=n;}return t},{})}function Od(e,t,r){return r?f.createElement(e.tag,D(D({key:t},ep(e.attrs)),r),(e.children||[]).map(function(n,i){return Od(n,"".concat(t,"-").concat(e.tag,"-").concat(i))})):f.createElement(e.tag,D({key:t},ep(e.attrs)),(e.children||[]).map(function(n,i){return Od(n,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function kb(e){return Un(e)[0]}function Lb(e){return e?Array.isArray(e)?e:[e]:[]}var WT=`
.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);
  }
}
`,BT=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:WT,r=f.useContext(Af),n=r.csp,i=r.prefixCls,o=t;i&&(o=o.replace(/anticon/g,i)),f.useEffect(function(){Ro(o,"@ant-design-icons",{prepend:!0,csp:n});},[]);},VT=["icon","className","onClick","style","primaryColor","secondaryColor"],Ea={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function UT(e){var t=e.primaryColor,r=e.secondaryColor;Ea.primaryColor=t,Ea.secondaryColor=r||kb(t),Ea.calculated=!!r;}function GT(){return D({},Ea)}var yc=function(t){var r=t.icon,n=t.className,i=t.onClick,o=t.style,a=t.primaryColor,s=t.secondaryColor,l=Xe(t,VT),c=Ea;if(a&&(c={primaryColor:a,secondaryColor:s||kb(a)}),BT(),HT(Jv(r),"icon should be icon definiton, but got ".concat(r)),!Jv(r))return null;var u=r;return u&&typeof u.icon=="function"&&(u=D(D({},u),{},{icon:u.icon(c.primaryColor,c.secondaryColor)})),Od(u.icon,"svg-".concat(u.name),D({className:n,onClick:i,style:o,"data-icon":u.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l))};yc.displayName="IconReact";yc.getTwoToneColors=GT;yc.setTwoToneColors=UT;const Hf=yc;function Fb(e){var t=Lb(e),r=W(t,2),n=r[0],i=r[1];return Hf.setTwoToneColors({primaryColor:n,secondaryColor:i})}function KT(){var e=Hf.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var qT=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Fb("#1890ff");var wc=f__namespace.forwardRef(function(e,t){var r,n=e.className,i=e.icon,o=e.spin,a=e.rotate,s=e.tabIndex,l=e.onClick,c=e.twoToneColor,u=Xe(e,qT),d=f__namespace.useContext(Af),h=d.prefixCls,v=h===void 0?"anticon":h,p=d.rootClassName,m=K(p,v,(r={},H(r,"".concat(v,"-").concat(i.name),!!i.name),H(r,"".concat(v,"-spin"),!!o||i.name==="loading"),r),n),g=s;g===void 0&&l&&(g=-1);var b=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,w=Lb(c),S=W(w,2),E=S[0],x=S[1];return f__namespace.createElement("span",D(D({role:"img","aria-label":i.name},u),{},{ref:t,tabIndex:g,onClick:l,className:m}),f__namespace.createElement(Hf,{icon:i,primaryColor:E,secondaryColor:x,style:b}))});wc.displayName="AntdIcon";wc.getTwoToneColor=KT;wc.setTwoToneColor=Fb;const Ho=wc;var XT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"};const YT=XT;var Db=function(t,r){return f__namespace.createElement(Ho,D(D({},t),{},{ref:r,icon:YT}))};Db.displayName="CloseOutlined";const jb=f__namespace.forwardRef(Db);function ZT(e){return Object.keys(e).reduce((t,r)=>((r.startsWith("data-")||r.startsWith("aria-")||r==="role")&&!r.startsWith("data-__")&&(t[r]=e[r]),t),{})}const{isValidElement:Wf}=f__namespace;function zb(e){return e&&Wf(e)&&e.type===f__namespace.Fragment}function QT(e,t,r){return Wf(e)?f__namespace.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t}function No(e,t){return QT(e,e,t)}function nn(e){var t=f__namespace.useRef();t.current=e;var r=f__namespace.useCallback(function(){for(var n,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return (n=t.current)===null||n===void 0?void 0:n.call.apply(n,[t].concat(o))},[]);return r}var Y={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 r=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||r>=Y.F1&&r<=Y.F12)return !1;switch(r){case Y.ALT:case Y.CAPS_LOCK:case Y.CONTEXT_MENU:case Y.CTRL:case Y.DOWN:case Y.END:case Y.ESC:case Y.HOME:case Y.INSERT:case Y.LEFT:case Y.MAC_FF_META:case Y.META:case Y.NUMLOCK:case Y.NUM_CENTER:case Y.PAGE_DOWN:case Y.PAGE_UP:case Y.PAUSE:case Y.PRINT_SCREEN:case Y.RIGHT:case Y.SHIFT:case Y.UP:case Y.WIN_KEY:case Y.WIN_KEY_RIGHT:return !1;default:return !0}},isCharacterKey:function(t){if(t>=Y.ZERO&&t<=Y.NINE||t>=Y.NUM_ZERO&&t<=Y.NUM_MULTIPLY||t>=Y.A&&t<=Y.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return !0;switch(t){case Y.SPACE:case Y.QUESTION_MARK:case Y.NUM_PLUS:case Y.NUM_MINUS:case Y.NUM_PERIOD:case Y.NUM_DIVISION:case Y.SEMICOLON:case Y.DASH:case Y.EQUALS:case Y.COMMA:case Y.PERIOD:case Y.SLASH:case Y.APOSTROPHE:case Y.SINGLE_QUOTE:case Y.OPEN_SQUARE_BRACKET:case Y.BACKSLASH:case Y.CLOSE_SQUARE_BRACKET:return !0;default:return !1}}},JT={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 eR=JT;var Hb=function(t,r){return f__namespace.createElement(Ho,D(D({},t),{},{ref:r,icon:eR}))};Hb.displayName="LoadingOutlined";const tR=f__namespace.forwardRef(Hb);var cs=D({},$o__namespace),rR=cs.version,nR=cs.render,iR=cs.unmountComponentAtNode,Sc;try{var oR=Number((rR||"").split(".")[0]);oR>=18&&(Sc=cs.createRoot);}catch{}function tp(e){var t=cs.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&ot(t)==="object"&&(t.usingClientEntryPoint=e);}var $l="__rc_react_root__";function aR(e,t){tp(!0);var r=t[$l]||Sc(t);tp(!1),r.render(e),t[$l]=r;}function sR(e,t){nR(e,t);}function lR(e,t){if(Sc){aR(e,t);return}sR(e,t);}function cR(e){return Pd.apply(this,arguments)}function Pd(){return Pd=Di(pr().mark(function e(t){return pr().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.resolve().then(function(){var i;(i=t[$l])===null||i===void 0||i.unmount(),delete t[$l];}));case 1:case"end":return n.stop()}},e)})),Pd.apply(this,arguments)}function uR(e){iR(e);}function dR(e){return Td.apply(this,arguments)}function Td(){return Td=Di(pr().mark(function e(t){return pr().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(Sc===void 0){n.next=2;break}return n.abrupt("return",cR(t));case 2:uR(t);case 3:case"end":return n.stop()}},e)})),Td.apply(this,arguments)}const Cc=function(e){if(!e)return !1;if(e instanceof Element){if(e.offsetParent)return !0;if(e.getBBox){var t=e.getBBox(),r=t.width,n=t.height;if(r||n)return !0}if(e.getBoundingClientRect){var i=e.getBoundingClientRect(),o=i.width,a=i.height;if(o||a)return !0}}return !1},fR=e=>{const{componentCls:t,colorPrimary:r}=e;return {[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${r})`,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}}}}},hR=Tn("Wave",e=>[fR(e)]);function vR(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 fu(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&vR(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function pR(e){const{borderTopColor:t,borderColor:r,backgroundColor:n}=getComputedStyle(e);return fu(t)?t:fu(r)?r:fu(n)?n:null}function hu(e){return Number.isNaN(e)?0:e}const mR=e=>{const{className:t,target:r}=e,n=f__namespace.useRef(null),[i,o]=f__namespace.useState(null),[a,s]=f__namespace.useState([]),[l,c]=f__namespace.useState(0),[u,d]=f__namespace.useState(0),[h,v]=f__namespace.useState(0),[p,m]=f__namespace.useState(0),[g,b]=f__namespace.useState(!1),w={left:l,top:u,width:h,height:p,borderRadius:a.map(E=>`${E}px`).join(" ")};i&&(w["--wave-color"]=i);function S(){const E=getComputedStyle(r);o(pR(r));const x=E.position==="static",{borderLeftWidth:y,borderTopWidth:C}=E;c(x?r.offsetLeft:hu(-parseFloat(y))),d(x?r.offsetTop:hu(-parseFloat(C))),v(r.offsetWidth),m(r.offsetHeight);const{borderTopLeftRadius:R,borderTopRightRadius:M,borderBottomLeftRadius:O,borderBottomRightRadius:N}=E;s([R,M,N,O].map(_=>hu(parseFloat(_))));}return f__namespace.useEffect(()=>{if(r){const E=It(()=>{S(),b(!0);});let x;return typeof ResizeObserver<"u"&&(x=new ResizeObserver(S),x.observe(r)),()=>{It.cancel(E),x==null||x.disconnect();}}},[]),g?f__namespace.createElement(Rn,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(E,x)=>{var y;if(x.deadline||x.propertyName==="opacity"){const C=(y=n.current)===null||y===void 0?void 0:y.parentElement;dR(C).then(()=>{C==null||C.remove();});}return !1}},E=>{let{className:x}=E;return f__namespace.createElement("div",{ref:n,className:K(t,x),style:w})}):null};function gR(e,t){const r=document.createElement("div");r.style.position="absolute",r.style.left="0px",r.style.top="0px",e==null||e.insertBefore(r,e==null?void 0:e.firstChild),lR(f__namespace.createElement(mR,{target:e,className:t}),r);}function bR(e,t){function r(){const n=e.current;gR(n,t);}return r}const yR=e=>{const{children:t,disabled:r}=e,{getPrefixCls:n}=f.useContext(Wt),i=f.useRef(null),o=n("wave"),[,a]=hR(o),s=bR(i,K(o,a));if(f.useEffect(()=>{const c=i.current;if(!c||c.nodeType!==1||r)return;const u=d=>{d.target.tagName==="INPUT"||!Cc(d.target)||!c.getAttribute||c.getAttribute("disabled")||c.disabled||c.className.includes("disabled")||c.className.includes("-leave")||s();};return c.addEventListener("click",u,!0),()=>{c.removeEventListener("click",u,!0);}},[r]),!f.isValidElement(t))return t??null;const l=hi(t)?Kr(t.ref,i):i;return No(t,{ref:l})},Wb=yR,wR=e=>{const{componentCls:t}=e;return {[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},SR=wR,CR=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"}}}},Bb=Tn("Space",e=>[CR(e),SR(e)],()=>({}),{resetStyle:!1});var Vb=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const xc=f__namespace.createContext(null),Ub=(e,t)=>{const r=f__namespace.useContext(xc),n=f__namespace.useMemo(()=>{if(!r)return "";const{compactDirection:i,isFirstItem:o,isLastItem:a}=r,s=i==="vertical"?"-vertical-":"-";return K({[`${e}-compact${s}item`]:!0,[`${e}-compact${s}first-item`]:o,[`${e}-compact${s}last-item`]:a,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,r]);return {compactSize:r==null?void 0:r.compactSize,compactDirection:r==null?void 0:r.compactDirection,compactItemClassnames:n}},Rd=e=>{let{children:t}=e;return f__namespace.createElement(xc.Provider,{value:null},t)},xR=e=>{var{children:t}=e,r=Vb(e,["children"]);return f__namespace.createElement(xc.Provider,{value:r},t)},ER=e=>{const{getPrefixCls:t,direction:r}=f__namespace.useContext(Wt),{size:n,direction:i,block:o,prefixCls:a,className:s,rootClassName:l,children:c}=e,u=Vb(e,["size","direction","block","prefixCls","className","rootClassName","children"]),d=jo(S=>{var E;return (E=n??S)!==null&&E!==void 0?E:"middle"}),h=t("space-compact",a),[v,p]=Bb(h),m=K(h,p,{[`${h}-rtl`]:r==="rtl",[`${h}-block`]:o,[`${h}-vertical`]:i==="vertical"},s,l),g=f__namespace.useContext(xc),b=fi(c),w=f__namespace.useMemo(()=>b.map((S,E)=>{const x=S&&S.key||`${h}-item-${E}`;return f__namespace.createElement(xR,{key:x,compactSize:d,compactDirection:i,isFirstItem:E===0&&(!g||(g==null?void 0:g.isFirstItem)),isLastItem:E===b.length-1&&(!g||(g==null?void 0:g.isLastItem))},S)}),[n,b,g]);return b.length===0?null:v(f__namespace.createElement("div",Object.assign({className:m},u),w))},$R=f.forwardRef((e,t)=>{const{className:r,style:n,children:i,prefixCls:o}=e,a=K(`${o}-icon`,r);return f.createElement("span",{ref:t,className:a,style:n},i)}),Gb=$R,rp=f.forwardRef((e,t)=>{let{prefixCls:r,className:n,style:i,iconClassName:o}=e;const a=K(`${r}-loading-icon`,n);return f.createElement(Gb,{prefixCls:r,className:a,style:i,ref:t},f.createElement(tR,{className:o}))}),vu=()=>({width:0,opacity:0,transform:"scale(0)"}),pu=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),_R=e=>{let{prefixCls:t,loading:r,existIcon:n,className:i,style:o}=e;const a=!!r;return n?f.createElement(rp,{prefixCls:t,className:i,style:o}):f.createElement(Rn,{visible:a,motionName:`${t}-loading-icon-motion`,removeOnLeave:!0,onAppearStart:vu,onAppearActive:pu,onEnterStart:vu,onEnterActive:pu,onLeaveStart:pu,onLeaveActive:vu},(s,l)=>{let{className:c,style:u}=s;return f.createElement(rp,{prefixCls:t,className:i,style:Object.assign(Object.assign({},o),u),ref:l,iconClassName:c})})},OR=_R;var PR=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const Kb=f__namespace.createContext(void 0),TR=e=>{const{getPrefixCls:t,direction:r}=f__namespace.useContext(Wt),{prefixCls:n,size:i,className:o}=e,a=PR(e,["prefixCls","size","className"]),s=t("btn-group",n),[,,l]=ss();let c="";switch(i){case"large":c="lg";break;case"small":c="sm";break}const u=K(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:r==="rtl"},o,l);return f__namespace.createElement(Kb.Provider,{value:i},f__namespace.createElement("div",Object.assign({},a,{className:u})))},RR=TR,np=/^[\u4e00-\u9fa5]{2}$/,Md=np.test.bind(np);function MR(e){return typeof e=="string"}function mu(e){return e==="text"||e==="link"}function NR(e,t){if(e==null)return;const r=t?" ":"";return typeof e!="string"&&typeof e!="number"&&MR(e.type)&&Md(e.props.children)?No(e,{children:e.props.children.split("").join(r)}):typeof e=="string"?Md(e)?f.createElement("span",null,e.split("").join(r)):f.createElement("span",null,e):zb(e)?f.createElement("span",null,e):e}function IR(e,t){let r=!1;const n=[];return f.Children.forEach(e,i=>{const o=typeof i,a=o==="string"||o==="number";if(r&&a){const s=n.length-1,l=n[s];n[s]=`${l}${i}`;}else n.push(i);r=a;}),f.Children.map(n,i=>NR(i,t))}function AR(e,t,r){const{focusElCls:n,focus:i,borderElCls:o}=r,a=o?"> *":"",s=["hover",i?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${a}`).join(",");return {[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},n?{[`&${n}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function kR(e,t,r){const{borderElCls:n}=r,i=n?`> ${n}`:"";return {[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function qb(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:r}=e,n=`${r}-compact`;return {[n]:Object.assign(Object.assign({},AR(e,n,t)),kR(r,n,t))}}function LR(e,t){return {[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function FR(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 DR(e){const t=`${e.componentCls}-compact-vertical`;return {[t]:Object.assign(Object.assign({},LR(e,t)),FR(e.componentCls,t))}}const ip=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),jR=e=>{const{componentCls:t,fontSize:r,lineWidth:n,colorPrimaryHover:i,colorErrorHover:o}=e;return {[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-n,[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,[`&:hover,
          &:focus,
          &:active`]:{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:r}},ip(`${t}-primary`,i),ip(`${t}-danger`,o)]}},zR=jR,HR=e=>{const{componentCls:t,iconCls:r,buttonFontWeight:n}=e;return {[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:n,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:0},[`&:not(${t}-icon-only) > ${t}-icon`]:{[`&${t}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:e.marginXS}},[`> span + ${r}`]:{marginInlineStart:e.marginXS},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},Df(e)),[`&-icon-only${t}-compact-item`]:{flex:"none"},[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:e.lineWidth,height:`calc(100% + ${e.lineWidth*2}px)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:`calc(100% + ${e.lineWidth*2}px)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},Gn=(e,t)=>({"&:not(:disabled)":{"&:hover":e,"&:active":t}}),WR=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),BR=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),Nd=e=>({cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),_l=(e,t,r,n,i,o,a)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:t||void 0,backgroundColor:"transparent",borderColor:r||void 0,boxShadow:"none"},Gn(Object.assign({backgroundColor:"transparent"},o),Object.assign({backgroundColor:"transparent"},a))),{"&:disabled":{cursor:"not-allowed",color:n||void 0,borderColor:i||void 0}})}),Bf=e=>({"&:disabled":Object.assign({},Nd(e))}),Xb=e=>Object.assign({},Bf(e)),Ol=e=>({"&:disabled":{cursor:"not-allowed",color:e.colorTextDisabled}}),Yb=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Xb(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),Gn({color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),_l(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},Gn({color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),_l(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),Bf(e))}),VR=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Xb(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),Gn({color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),_l(e.componentCls,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({backgroundColor:e.colorError,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`},Gn({backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),_l(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Bf(e))}),UR=e=>Object.assign(Object.assign({},Yb(e)),{borderStyle:"dashed"}),GR=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},Gn({color:e.colorLinkHover},{color:e.colorLinkActive})),Ol(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Gn({color:e.colorErrorHover},{color:e.colorErrorActive})),Ol(e))}),KR=e=>Object.assign(Object.assign(Object.assign({},Gn({color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),Ol(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Ol(e)),Gn({color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),qR=e=>Object.assign(Object.assign({},Nd(e)),{[`&${e.componentCls}:hover`]:Object.assign({},Nd(e))}),XR=e=>{const{componentCls:t}=e;return {[`${t}-default`]:Yb(e),[`${t}-primary`]:VR(e),[`${t}-dashed`]:UR(e),[`${t}-link`]:GR(e),[`${t}-text`]:KR(e),[`${t}-disabled`]:qR(e)}},Vf=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:r,controlHeight:n,fontSize:i,lineHeight:o,lineWidth:a,borderRadius:s,buttonPaddingHorizontal:l,iconCls:c}=e,u=Math.max(0,(n-i*o)/2-a),d=l-a,h=`${r}-icon-only`;return [{[`${r}${t}`]:{fontSize:i,height:n,padding:`${u}px ${d}px`,borderRadius:s,[`&${h}`]:{width:n,paddingInlineStart:0,paddingInlineEnd:0,[`&${r}-round`]:{width:"auto"},[c]:{fontSize:e.buttonIconOnlyFontSize}},[`&${r}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${r}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${r}${r}-circle${t}`]:WR(e)},{[`${r}${r}-round${t}`]:BR(e)}]},YR=e=>Vf(e),ZR=e=>{const t=mr(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.fontSizeLG-2});return Vf(t,`${e.componentCls}-sm`)},QR=e=>{const t=mr(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.fontSizeLG+2});return Vf(t,`${e.componentCls}-lg`)},JR=e=>{const{componentCls:t}=e;return {[t]:{[`&${t}-block`]:{width:"100%"}}}},eM=Tn("Button",e=>{const{controlTmpOutline:t,paddingContentHorizontal:r}=e,n=mr(e,{colorOutlineDefault:t,buttonPaddingHorizontal:r,buttonIconOnlyFontSize:e.fontSizeLG,buttonFontWeight:400});return [HR(n),ZR(n),YR(n),QR(n),JR(n),XR(n),zR(n),qb(e),DR(e)]});var tM=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function rM(e){if(typeof e=="object"&&e){const t=e==null?void 0:e.delay;return {loading:!1,delay:!Number.isNaN(t)&&typeof t=="number"?t:0}}return {loading:!!e,delay:0}}const nM=(e,t)=>{const{loading:r=!1,prefixCls:n,type:i="default",danger:o,shape:a="default",size:s,styles:l,disabled:c,className:u,rootClassName:d,children:h,icon:v,ghost:p=!1,block:m=!1,htmlType:g="button",classNames:b}=e,w=tM(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames"]),{getPrefixCls:S,autoInsertSpaceInButton:E,direction:x}=f.useContext(Wt),y=S("btn",n),[C,R]=eM(y),M=f.useContext(ls),O=c??M,N=f.useContext(Kb),_=f.useMemo(()=>rM(r),[r]),[$,P]=f.useState(_.loading),[T,A]=f.useState(!1),L=Kr(t,f.createRef()),j=f.Children.count(h)===1&&!v&&!mu(i);f.useEffect(()=>{let oe=null;_.delay>0?oe=setTimeout(()=>{oe=null,P(!0);},_.delay):P(_.loading);function se(){oe&&(clearTimeout(oe),oe=null);}return se},[_]),f.useEffect(()=>{if(!L||!L.current||E===!1)return;const oe=L.current.textContent;j&&Md(oe)?T||A(!0):T&&A(!1);},[L]);const B=oe=>{const{onClick:se}=e;if($||O){oe.preventDefault();return}se==null||se(oe);},G=E!==!1,{compactSize:z,compactItemClassnames:V}=Ub(y,x),q={large:"lg",small:"sm",middle:void 0},U=jo(oe=>{var se,re;return (re=(se=z??N)!==null&&se!==void 0?se:s)!==null&&re!==void 0?re:oe}),Q=U&&q[U]||"",ie=$?"loading":v,Z=fc(w,["navigate"]),te=Z.href!==void 0&&O,ae=K(y,R,{[`${y}-${a}`]:a!=="default"&&a,[`${y}-${i}`]:i,[`${y}-${Q}`]:Q,[`${y}-icon-only`]:!h&&h!==0&&!!ie,[`${y}-background-ghost`]:p&&!mu(i),[`${y}-loading`]:$,[`${y}-two-chinese-chars`]:T&&G&&!$,[`${y}-block`]:m,[`${y}-dangerous`]:!!o,[`${y}-rtl`]:x==="rtl",[`${y}-disabled`]:te},V,u,d),ue=v&&!$?f.createElement(Gb,{prefixCls:y,className:b==null?void 0:b.icon,style:l==null?void 0:l.icon},v):f.createElement(OR,{existIcon:!!v,prefixCls:y,loading:!!$}),$e=h||h===0?IR(h,j&&G):null;if(Z.href!==void 0)return C(f.createElement("a",Object.assign({},Z,{className:ae,onClick:B,ref:L}),ue,$e));let J=f.createElement("button",Object.assign({},w,{type:g,className:ae,onClick:B,disabled:O,ref:L}),ue,$e);return mu(i)||(J=f.createElement(Wb,{disabled:!!$},J)),C(J)},Uf=f.forwardRef(nM);Uf.Group=RR;Uf.__ANT_BUTTON=!0;const an=Uf,Zb=(e,t,r)=>r!==void 0?r:`${e}-${t}`;var Qb=f__namespace.createContext(null),Gt=Sr()?f__namespace.useLayoutEffect:f__namespace.useEffect,mo=function(t,r){var n=f__namespace.useRef(!0);Gt(function(){if(!n.current)return t()},r),Gt(function(){return n.current=!1,function(){n.current=!0;}},[]);},op=[];function iM(e,t){var r=f__namespace.useState(function(){if(!Sr())return null;var p=document.createElement("div");return p}),n=W(r,1),i=n[0],o=f__namespace.useRef(!1),a=f__namespace.useContext(Qb),s=f__namespace.useState(op),l=W(s,2),c=l[0],u=l[1],d=a||(o.current?void 0:function(p){u(function(m){var g=[p].concat(le(m));return g});});function h(){i.parentElement||document.body.appendChild(i),o.current=!0;}function v(){var p;(p=i.parentElement)===null||p===void 0||p.removeChild(i),o.current=!1;}return Gt(function(){return e?a?a(h):h():v(),v},[e]),Gt(function(){c.length&&(c.forEach(function(p){return p()}),u(op));},[c]),[i,d]}var gu;function oM(e){if(typeof document>"u")return 0;if(e||gu===void 0){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var r=document.createElement("div"),n=r.style;n.position="absolute",n.top="0",n.left="0",n.pointerEvents="none",n.visibility="hidden",n.width="200px",n.height="150px",n.overflow="hidden",r.appendChild(t),document.body.appendChild(r);var i=t.offsetWidth;r.style.overflow="scroll";var o=t.offsetWidth;i===o&&(o=r.clientWidth),document.body.removeChild(r),gu=i-o;}return gu}function aM(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var sM="rc-util-locker-".concat(Date.now()),ap=0;function lM(e){var t=!!e,r=f__namespace.useState(function(){return ap+=1,"".concat(sM,"_").concat(ap)}),n=W(r,1),i=n[0];Gt(function(){if(t){var o=oM(),a=aM();Ro(`
html body {
  overflow-y: hidden;
  `.concat(a?"width: calc(100% - ".concat(o,"px);"):"",`
}`),i);}else Sl(i);return function(){Sl(i);}},[t,i]);}var sp=!1;function cM(e){return typeof e=="boolean"&&(sp=e),sp}var lp=function(t){return t===!1?!1:!Sr()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},Jb=f__namespace.forwardRef(function(e,t){var r=e.open,n=e.autoLock,i=e.getContainer;e.debug;var o=e.autoDestroy,a=o===void 0?!0:o,s=e.children,l=f__namespace.useState(r),c=W(l,2),u=c[0],d=c[1],h=u||r;f__namespace.useEffect(function(){(a||r)&&d(r);},[r,a]);var v=f__namespace.useState(function(){return lp(i)}),p=W(v,2),m=p[0],g=p[1];f__namespace.useEffect(function(){var N=lp(i);g(N??null);});var b=iM(h&&!m),w=W(b,2),S=w[0],E=w[1],x=m??S;lM(n&&r&&Sr()&&(x===S||x===document.body));var y=null;if(s&&hi(s)&&t){var C=s;y=C.ref;}var R=uc(y,t);if(!h||!Sr()||m===void 0)return null;var M=x===!1||cM(),O=s;return t&&(O=f__namespace.cloneElement(s,{ref:R})),f__namespace.createElement(Qb.Provider,{value:E},M?O:$o.createPortal(O,x))});function uM(){var e=D({},f__namespace);return e.useId}var cp=0;function dM(e){var t=f__namespace.useState("ssr-id"),r=W(t,2),n=r[0],i=r[1],o=uM(),a=o==null?void 0:o();return f__namespace.useEffect(function(){if(!o){var s=cp;cp+=1,i("rc_unique_".concat(s));}},[]),e||a||n}const Wa=f__namespace.createContext({}),up=e=>{let{children:t,status:r,override:n}=e;const i=f.useContext(Wa),o=f.useMemo(()=>{const a=Object.assign({},i);return n&&delete a.isFormItemInput,r&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[r,n,i]);return f__namespace.createElement(Wa.Provider,{value:o},t)},fM=()=>Sr()&&window.document.documentElement;let Ls;const hM=()=>{if(!fM())return !1;if(Ls!==void 0)return Ls;const e=document.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e),Ls=e.scrollHeight===1,document.body.removeChild(e),Ls},vM=e=>({animationDuration:e,animationFillMode:"both"}),pM=e=>({animationDuration:e,animationFillMode:"both"}),e0=function(e,t,r,n){const o=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return {[`
      ${o}${e}-enter,
      ${o}${e}-appear
    `]:Object.assign(Object.assign({},vM(n)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},pM(n)),{animationPlayState:"paused"}),[`
      ${o}${e}-enter${e}-enter-active,
      ${o}${e}-appear${e}-appear-active
    `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:r,animationPlayState:"running",pointerEvents:"none"}}},mM=new Dt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),gM=new Dt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),bM=new Dt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),yM=new Dt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),wM=new Dt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),SM=new Dt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),CM=new Dt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),xM=new Dt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),EM={"slide-up":{inKeyframes:mM,outKeyframes:gM},"slide-down":{inKeyframes:bM,outKeyframes:yM},"slide-left":{inKeyframes:wM,outKeyframes:SM},"slide-right":{inKeyframes:CM,outKeyframes:xM}},dp=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:i,outKeyframes:o}=EM[t];return [e0(n,i,o,e.motionDurationMid),{[`
      ${n}-enter,
      ${n}-appear
    `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,["&-prepare"]:{transform:"scale(1)"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},$M=new Dt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),_M=new Dt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),fp=new Dt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),hp=new Dt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),OM=new Dt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),PM=new Dt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),TM=new Dt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),RM=new Dt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),MM=new Dt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),NM=new Dt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),IM=new Dt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),AM=new Dt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),kM={zoom:{inKeyframes:$M,outKeyframes:_M},"zoom-big":{inKeyframes:fp,outKeyframes:hp},"zoom-big-fast":{inKeyframes:fp,outKeyframes:hp},"zoom-left":{inKeyframes:TM,outKeyframes:RM},"zoom-right":{inKeyframes:MM,outKeyframes:NM},"zoom-up":{inKeyframes:OM,outKeyframes:PM},"zoom-down":{inKeyframes:IM,outKeyframes:AM}},LM=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:i,outKeyframes:o}=kM[t];return [e0(n,i,o,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
        ${n}-enter,
        ${n}-appear
      `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};function bu(e){return e!==void 0}function Cn(e,t){var r=t||{},n=r.defaultValue,i=r.value,o=r.onChange,a=r.postState,s=Mi(function(){return bu(i)?i:bu(n)?typeof n=="function"?n():n:typeof e=="function"?e():e}),l=W(s,2),c=l[0],u=l[1],d=i!==void 0?i:c,h=a?a(d):d,v=nn(o),p=Mi([d]),m=W(p,2),g=m[0],b=m[1];mo(function(){var S=g[0];c!==S&&v(c,S);},[g]),mo(function(){bu(i)||u(i);},[i]);var w=nn(function(S,E){u(S,E),b([d],E);});return [h,w]}const Ec=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 FM=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Zi=void 0;function DM(e,t){var r=e.prefixCls,n=e.invalidate,i=e.item,o=e.renderItem,a=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,u=e.className,d=e.style,h=e.children,v=e.display,p=e.order,m=e.component,g=m===void 0?"div":m,b=Xe(e,FM),w=a&&!v;function S(R){l(c,R);}f__namespace.useEffect(function(){return function(){S(null);}},[]);var E=o&&i!==Zi?o(i):h,x;n||(x={opacity:w?0:1,height:w?0:Zi,overflowY:w?"hidden":Zi,order:a?p:Zi,pointerEvents:w?"none":Zi,position:w?"absolute":Zi});var y={};w&&(y["aria-hidden"]=!0);var C=f__namespace.createElement(g,Ce({className:K(!n&&r,u),style:D(D({},x),d)},y,b,{ref:t}),E);return a&&(C=f__namespace.createElement(ki,{onResize:function(M){var O=M.offsetWidth;S(O);},disabled:s},C)),C}var $a=f__namespace.forwardRef(DM);$a.displayName="Item";function jM(e){if(typeof MessageChannel>"u")It(e);else {var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0);}}function zM(){var e=f__namespace.useRef(null),t=function(n){e.current||(e.current=[],jM(function(){$o.unstable_batchedUpdates(function(){e.current.forEach(function(i){i();}),e.current=null;});})),e.current.push(n);};return t}function ta(e,t){var r=f__namespace.useState(t),n=W(r,2),i=n[0],o=n[1],a=nn(function(s){e(function(){o(s);});});return [i,a]}var HM=["component"],WM=["className"],BM=["className"],VM=function(t,r){var n=f__namespace.useContext(Pl);if(!n){var i=t.component,o=i===void 0?"div":i,a=Xe(t,HM);return f__namespace.createElement(o,Ce({},a,{ref:r}))}var s=n.className,l=Xe(n,WM),c=t.className,u=Xe(t,BM);return f__namespace.createElement(Pl.Provider,{value:null},f__namespace.createElement($a,Ce({ref:r,className:K(s,c)},l,u)))},t0=f__namespace.forwardRef(VM);t0.displayName="RawItem";var UM=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Pl=f__namespace.createContext(null),r0="responsive",n0="invalidate";function GM(e){return "+ ".concat(e.length," ...")}function KM(e,t){var r=e.prefixCls,n=r===void 0?"rc-overflow":r,i=e.data,o=i===void 0?[]:i,a=e.renderItem,s=e.renderRawItem,l=e.itemKey,c=e.itemWidth,u=c===void 0?10:c,d=e.ssr,h=e.style,v=e.className,p=e.maxCount,m=e.renderRest,g=e.renderRawRest,b=e.suffix,w=e.component,S=w===void 0?"div":w,E=e.itemComponent,x=e.onVisibleChange,y=Xe(e,UM),C=d==="full",R=zM(),M=ta(R,null),O=W(M,2),N=O[0],_=O[1],$=N||0,P=ta(R,new Map),T=W(P,2),A=T[0],I=T[1],L=ta(R,0),j=W(L,2),B=j[0],G=j[1],z=ta(R,0),V=W(z,2),q=V[0],U=V[1],Q=ta(R,0),ie=W(Q,2),Z=ie[0],te=ie[1],ae=f.useState(null),ue=W(ae,2),$e=ue[0],J=ue[1],oe=f.useState(null),se=W(oe,2),re=se[0],xe=se[1],de=f__namespace.useMemo(function(){return re===null&&C?Number.MAX_SAFE_INTEGER:re||0},[re,N]),ge=f.useState(!1),ve=W(ge,2),Ee=ve[0],Ye=ve[1],ft="".concat(n,"-item"),Et=Math.max(B,q),tt=p===r0,ke=o.length&&tt,Fe=p===n0,Pe=ke||typeof p=="number"&&o.length>p,De=f.useMemo(function(){var be=o;return ke?N===null&&C?be=o:be=o.slice(0,Math.min(o.length,$/u)):typeof p=="number"&&(be=o.slice(0,p)),be},[o,u,N,p,ke]),Te=f.useMemo(function(){return ke?o.slice(de+1):o.slice(De.length)},[o,De,ke,de]),He=f.useCallback(function(be,We){var Ue;return typeof l=="function"?l(be):(Ue=l&&(be==null?void 0:be[l]))!==null&&Ue!==void 0?Ue:We},[l]),rt=f.useCallback(a||function(be){return be},[a]);function ht(be,We,Ue){re===be&&(We===void 0||We===$e)||(xe(be),Ue||(Ye(be<o.length-1),x==null||x(be)),We!==void 0&&J(We));}function Ke(be,We){_(We.clientWidth);}function Ze(be,We){I(function(Ue){var _t=new Map(Ue);return We===null?_t.delete(be):_t.set(be,We),_t});}function at(be,We){U(We),G(q);}function st(be,We){te(We);}function St(be){return A.get(He(De[be],be))}Gt(function(){if($&&typeof Et=="number"&&De){var be=Z,We=De.length,Ue=We-1;if(!We){ht(0,null);return}for(var _t=0;_t<We;_t+=1){var Ot=St(_t);if(C&&(Ot=Ot||0),Ot===void 0){ht(_t-1,void 0,!0);break}if(be+=Ot,Ue===0&&be<=$||_t===Ue-1&&be+St(Ue)<=$){ht(Ue,null);break}else if(be+Et>$){ht(_t-1,be-Ot-Z+q);break}}b&&St(0)+Z>$&&J(null);}},[$,A,q,Z,He,De]);var fe=Ee&&!!Te.length,ce={};$e!==null&&ke&&(ce={position:"absolute",left:$e,top:0});var _e={prefixCls:ft,responsive:ke,component:E,invalidate:Fe},we=s?function(be,We){var Ue=He(be,We);return f__namespace.createElement(Pl.Provider,{key:Ue,value:D(D({},_e),{},{order:We,item:be,itemKey:Ue,registerSize:Ze,display:We<=de})},s(be,We))}:function(be,We){var Ue=He(be,We);return f__namespace.createElement($a,Ce({},_e,{order:We,key:Ue,item:be,renderItem:rt,itemKey:Ue,registerSize:Ze,display:We<=de}))},Ve,$t={order:fe?de:Number.MAX_SAFE_INTEGER,className:"".concat(ft,"-rest"),registerSize:at,display:fe};if(g)g&&(Ve=f__namespace.createElement(Pl.Provider,{value:D(D({},_e),$t)},g(Te)));else {var At=m||GM;Ve=f__namespace.createElement($a,Ce({},_e,$t),typeof At=="function"?At(Te):At);}var kt=f__namespace.createElement(S,Ce({className:K(!Fe&&n,v),style:h,ref:t},y),De.map(we),Pe?Ve:null,b&&f__namespace.createElement($a,Ce({},_e,{responsive:tt,responsiveDisabled:!ke,order:de,className:"".concat(ft,"-suffix"),registerSize:st,display:!0,style:ce}),b));return tt&&(kt=f__namespace.createElement(ki,{onResize:Ke,disabled:!ke},kt)),kt}var Wn=f__namespace.forwardRef(KM);Wn.displayName="Overflow";Wn.Item=t0;Wn.RESPONSIVE=r0;Wn.INVALIDATE=n0;var vp=f__namespace.createContext(null);function pp(e){return e?Array.isArray(e)?e:[e]:[]}function qM(e,t,r,n){return f__namespace.useMemo(function(){var i=pp(r??t),o=pp(n??t),a=new Set(i),s=new Set(o);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]},[e,t,r,n])}function XM(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;return r?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function YM(e,t,r,n){for(var i=r.points,o=Object.keys(e),a=0;a<o.length;a+=1){var s,l=o[a];if(XM((s=e[l])===null||s===void 0?void 0:s.points,i,n))return "".concat(t,"-placement-").concat(l)}return ""}function mp(e,t,r,n){return t||(r?{motionName:"".concat(e,"-").concat(r)}:n?{motionName:n}:null)}function us(e){return e.ownerDocument.defaultView}function Id(e){for(var t=[],r=e==null?void 0:e.parentElement,n=["hidden","scroll","clip","auto"];r;){var i=us(r).getComputedStyle(r),o=i.overflowX,a=i.overflowY,s=i.overflow;[o,a,s].some(function(l){return n.includes(l)})&&t.push(r),r=r.parentElement;}return t}function Ba(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function ra(e){return Ba(parseFloat(e),0)}function gp(e,t){var r=D({},e);return (t||[]).forEach(function(n){if(!(n instanceof HTMLBodyElement)){var i=us(n).getComputedStyle(n),o=i.overflow,a=i.overflowClipMargin,s=i.borderTopWidth,l=i.borderBottomWidth,c=i.borderLeftWidth,u=i.borderRightWidth,d=n.getBoundingClientRect(),h=n.offsetHeight,v=n.clientHeight,p=n.offsetWidth,m=n.clientWidth,g=ra(s),b=ra(l),w=ra(c),S=ra(u),E=Ba(Math.round(d.width/p*1e3)/1e3),x=Ba(Math.round(d.height/h*1e3)/1e3),y=(p-m-w-S)*E,C=(h-v-g-b)*x,R=g*x,M=b*x,O=w*E,N=S*E,_=0,$=0;if(o==="clip"){var P=ra(a);_=P*E,$=P*x;}var T=d.x+O-_,A=d.y+R-$,I=T+d.width+2*_-O-N-y,L=A+d.height+2*$-R-M-C;r.left=Math.max(r.left,T),r.top=Math.max(r.top,A),r.right=Math.min(r.right,I),r.bottom=Math.min(r.bottom,L);}}),r}function bp(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r="".concat(t),n=r.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(r)}function yp(e,t){var r=t||[],n=W(r,2),i=n[0],o=n[1];return [bp(e.width,i),bp(e.height,o)]}function wp(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return [e[0],e[1]]}function Qi(e,t){var r=t[0],n=t[1],i,o;return r==="t"?o=e.y:r==="b"?o=e.y+e.height:o=e.y+e.height/2,n==="l"?i=e.x:n==="r"?i=e.x+e.width:i=e.x+e.width/2,{x:i,y:o}}function Qn(e,t){var r={t:"b",b:"t",l:"r",r:"l"};return e.map(function(n,i){return i===t?r[n]||"c":n}).join("")}function ZM(e,t,r,n,i,o,a){var s=f__namespace.useState({ready:!1,offsetX:0,offsetY:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[n]||{}}),l=W(s,2),c=l[0],u=l[1],d=f__namespace.useRef(0),h=f__namespace.useMemo(function(){return t?Id(t):[]},[t]),v=f__namespace.useRef({}),p=function(){v.current={};};e||p();var m=nn(function(){if(t&&r&&e){let qe=function(zt,Qt){var hr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:J,pi=O.x+zt,mi=O.y+Qt,Wc=pi+z,Bc=mi+G,bs=Math.max(pi,hr.left),ys=Math.max(mi,hr.top),Xo=Math.min(Wc,hr.right),ws=Math.min(Bc,hr.bottom);return Math.max(0,(Xo-bs)*(ws-ys))},Vt=function(){_t=O.y+st,Ot=_t+G,gr=O.x+at,fr=gr+z;};var w=t,S=w.style.left,E=w.style.top,x=w.ownerDocument,y=us(w),C=D(D({},i[n]),o);w.style.left="0",w.style.top="0";var R;if(Array.isArray(r))R={x:r[0],y:r[1],width:0,height:0};else {var M=r.getBoundingClientRect();R={x:M.x,y:M.y,width:M.width,height:M.height};}var O=w.getBoundingClientRect(),N=y.getComputedStyle(w),_=N.width,$=N.height,P=x.documentElement,T=P.clientWidth,A=P.clientHeight,I=P.scrollWidth,L=P.scrollHeight,j=P.scrollTop,B=P.scrollLeft,G=O.height,z=O.width,V=R.height,q=R.width,U={left:0,top:0,right:T,bottom:A},Q={left:-B,top:-j,right:I-B,bottom:L-j},ie=C.htmlRegion,Z="visible",te="visibleFirst";ie!=="scroll"&&ie!==te&&(ie=Z);var ae=ie===te,ue=gp(Q,h),$e=gp(U,h),J=ie===Z?$e:ue,oe=ae?$e:J;w.style.left=S,w.style.top=E;var se=Ba(Math.round(z/parseFloat(_)*1e3)/1e3),re=Ba(Math.round(G/parseFloat($)*1e3)/1e3);if(se===0||re===0||gl(r)&&!Cc(r))return;var xe=C.offset,de=C.targetOffset,ge=yp(O,xe),ve=W(ge,2),Ee=ve[0],Ye=ve[1],ft=yp(R,de),Et=W(ft,2),tt=Et[0],ke=Et[1];R.x-=tt,R.y-=ke;var Fe=C.points||[],Pe=W(Fe,2),De=Pe[0],Te=Pe[1],He=wp(Te),rt=wp(De),ht=Qi(R,He),Ke=Qi(O,rt),Ze=D({},C),at=ht.x-Ke.x+Ee,st=ht.y-Ke.y+Ye,St=qe(at,st),fe=qe(at,st,$e),ce=Qi(R,["t","l"]),_e=Qi(O,["t","l"]),we=Qi(R,["b","r"]),Ve=Qi(O,["b","r"]),$t=C.overflow||{},At=$t.adjustX,kt=$t.adjustY,be=$t.shiftX,We=$t.shiftY,Ue=function(Qt){return typeof Qt=="boolean"?Qt:Qt>=0},_t,Ot,gr,fr;Vt();var Lt=Ue(kt),zr=rt[0]===He[0];if(Lt&&rt[0]==="t"&&(Ot>oe.bottom||v.current.bt)){var tr=st;zr?tr-=G-V:tr=ce.y-Ve.y-Ye;var Ge=qe(at,tr),Ie=qe(at,tr,$e);Ge>St||Ge===St&&(!ae||Ie>=fe)?(v.current.bt=!0,st=tr,Ze.points=[Qn(rt,0),Qn(He,0)]):v.current.bt=!1;}if(Lt&&rt[0]==="b"&&(_t<oe.top||v.current.tb)){var pe=st;zr?pe+=G-V:pe=we.y-_e.y-Ye;var vt=qe(at,pe),nt=qe(at,pe,$e);vt>St||vt===St&&(!ae||nt>=fe)?(v.current.tb=!0,st=pe,Ze.points=[Qn(rt,0),Qn(He,0)]):v.current.tb=!1;}var ar=Ue(At),Oe=rt[1]===He[1];if(ar&&rt[1]==="l"&&(fr>oe.right||v.current.rl)){var ye=at;Oe?ye-=z-q:ye=ce.x-Ve.x-Ee;var Be=qe(ye,st),Rt=qe(ye,st,$e);Be>St||Be===St&&(!ae||Rt>=fe)?(v.current.rl=!0,at=ye,Ze.points=[Qn(rt,1),Qn(He,1)]):v.current.rl=!1;}if(ar&&rt[1]==="r"&&(gr<oe.left||v.current.lr)){var jt=at;Oe?jt+=z-q:jt=we.x-_e.x-Ee;var Mt=qe(jt,st),Or=qe(jt,st,$e);Mt>St||Mt===St&&(!ae||Or>=fe)?(v.current.lr=!0,at=jt,Ze.points=[Qn(rt,1),Qn(He,1)]):v.current.lr=!1;}Vt();var qr=be===!0?0:be;typeof qr=="number"&&(gr<J.left&&(at-=gr-J.left,R.x+q<J.left+qr&&(at+=R.x-J.left+q-qr)),fr>J.right&&(at-=fr-J.right,R.x>J.right-qr&&(at+=R.x-J.right+qr)));var Mn=We===!0?0:We;typeof Mn=="number"&&(_t<J.top&&(st-=_t-J.top,R.y+V<J.top+Mn&&(st+=R.y-J.top+V-Mn)),Ot>J.bottom&&(st-=Ot-J.bottom,R.y>J.bottom-Mn&&(st+=R.y-J.bottom+Mn)));var vi=O.x+at,Zn=vi+z,cn=O.y+st,Pr=cn+G,Hi=R.x,Vo=Hi+q,Wi=R.y,Bi=Wi+V,Vi=Math.max(vi,Hi),Uo=Math.min(Zn,Vo),Go=(Vi+Uo)/2,Ko=Go-vi,Ui=Math.max(cn,Wi),qo=Math.min(Pr,Bi),Ct=(Ui+qo)/2,lt=Ct-cn;a==null||a(t,Ze),u({ready:!0,offsetX:at/se,offsetY:st/re,arrowX:Ko/se,arrowY:lt/re,scaleX:se,scaleY:re,align:Ze});}}),g=function(){d.current+=1;var S=d.current;Promise.resolve().then(function(){d.current===S&&m();});},b=function(){u(function(S){return D(D({},S),{},{ready:!1})});};return Gt(b,[n]),Gt(function(){e||b();},[e]),[c.ready,c.offsetX,c.offsetY,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,g]}function QM(e,t,r,n){Gt(function(){if(e&&t&&r){let u=function(){n();};var i=t,o=r,a=Id(i),s=Id(o),l=us(o),c=new Set([l].concat(le(a),le(s)));return c.forEach(function(d){d.addEventListener("scroll",u,{passive:!0});}),l.addEventListener("resize",u,{passive:!0}),n(),function(){c.forEach(function(d){d.removeEventListener("scroll",u),l.removeEventListener("resize",u);});}}},[e,t,r]);}function JM(e){var t=e.prefixCls,r=e.align,n=e.arrow,i=e.arrowPos,o=n||{},a=o.className,s=o.content,l=i.x,c=l===void 0?0:l,u=i.y,d=u===void 0?0:u,h=f__namespace.useRef();if(!r||!r.points)return null;var v={position:"absolute"};if(r.autoArrow!==!1){var p=r.points[0],m=r.points[1],g=p[0],b=p[1],w=m[0],S=m[1];g===w||!["t","b"].includes(g)?v.top=d:g==="t"?v.top=0:v.bottom=0,b===S||!["l","r"].includes(b)?v.left=c:b==="l"?v.left=0:v.right=0;}return f__namespace.createElement("div",{ref:h,className:K("".concat(t,"-arrow"),a),style:v},s)}function eN(e){var t=e.prefixCls,r=e.open,n=e.zIndex,i=e.mask,o=e.motion;return i?f__namespace.createElement(Rn,Ce({},o,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(a){var s=a.className;return f__namespace.createElement("div",{style:{zIndex:n},className:K("".concat(t,"-mask"),s)})}):null}var tN=f__namespace.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),rN=f__namespace.forwardRef(function(e,t){var r=e.popup,n=e.className,i=e.prefixCls,o=e.style,a=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.onClick,d=e.mask,h=e.arrow,v=e.arrowPos,p=e.align,m=e.motion,g=e.maskMotion,b=e.forceRender,w=e.getPopupContainer,S=e.autoDestroy,E=e.portal,x=e.zIndex,y=e.onMouseEnter,C=e.onMouseLeave,R=e.ready,M=e.offsetX,O=e.offsetY,N=e.onAlign,_=e.onPrepare,$=e.stretch,P=e.targetWidth,T=e.targetHeight,A=typeof r=="function"?r():r,I=l||c,L=(w==null?void 0:w.length)>0,j=f__namespace.useState(!w||!L),B=W(j,2),G=B[0],z=B[1];if(Gt(function(){!G&&L&&a&&z(!0);},[G,L,a]),!G)return null;var V=R||!l?{left:M,top:O}:{left:"-1000vw",top:"-1000vh"},q={};return $&&($.includes("height")&&T?q.height=T:$.includes("minHeight")&&T&&(q.minHeight=T),$.includes("width")&&P?q.width=P:$.includes("minWidth")&&P&&(q.minWidth=P)),l||(q.pointerEvents="none"),f__namespace.createElement(E,{open:b||I,getContainer:w&&function(){return w(a)},autoDestroy:S},f__namespace.createElement(eN,{prefixCls:i,open:l,zIndex:x,mask:d,motion:g}),f__namespace.createElement(ki,{onResize:N,disabled:!l},function(U){return f__namespace.createElement(Rn,Ce({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:b,leavedClassName:"".concat(i,"-hidden")},m,{onAppearPrepare:_,onEnterPrepare:_,visible:l,onVisibleChanged:function(ie){var Z;m==null||(Z=m.onVisibleChanged)===null||Z===void 0||Z.call(m,ie),s(ie);}}),function(Q,ie){var Z=Q.className,te=Q.style,ae=K(i,Z,n);return f__namespace.createElement("div",{ref:Kr(U,t,ie),className:ae,style:D(D(D(D({"--arrow-x":"".concat(v.x||0,"px"),"--arrow-y":"".concat(v.y||0,"px")},V),q),te),{},{boxSizing:"border-box",zIndex:x},o),onMouseEnter:y,onMouseLeave:C,onClick:u},h&&f__namespace.createElement(JM,{prefixCls:i,arrow:h,arrowPos:v,align:p}),f__namespace.createElement(tN,{cache:!l},A))})}))}),nN=f__namespace.forwardRef(function(e,t){var r=e.children,n=e.getTriggerDOMNode,i=hi(r),o=f__namespace.useCallback(function(s){Tf(t,n?n(s):s);},[n]),a=uc(o,r.ref);return i?f__namespace.cloneElement(r,{ref:a}):r}),iN=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function oN(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Jb,t=f__namespace.forwardRef(function(r,n){var i=r.prefixCls,o=i===void 0?"rc-trigger-popup":i,a=r.children,s=r.action,l=s===void 0?"hover":s,c=r.showAction,u=r.hideAction,d=r.popupVisible,h=r.defaultPopupVisible,v=r.onPopupVisibleChange,p=r.afterPopupVisibleChange,m=r.mouseEnterDelay,g=r.mouseLeaveDelay,b=g===void 0?.1:g,w=r.focusDelay,S=r.blurDelay,E=r.mask,x=r.maskClosable,y=x===void 0?!0:x,C=r.getPopupContainer,R=r.forceRender,M=r.autoDestroy,O=r.destroyPopupOnHide,N=r.popup,_=r.popupClassName,$=r.popupStyle,P=r.popupPlacement,T=r.builtinPlacements,A=T===void 0?{}:T,I=r.popupAlign,L=r.zIndex,j=r.stretch,B=r.getPopupClassNameFromAlign,G=r.alignPoint,z=r.onPopupClick,V=r.onPopupAlign,q=r.arrow,U=r.popupMotion,Q=r.maskMotion,ie=r.popupTransitionName,Z=r.popupAnimation,te=r.maskTransitionName,ae=r.maskAnimation,ue=r.className,$e=r.getTriggerDOMNode,J=Xe(r,iN),oe=M||O||!1,se=f__namespace.useState(!1),re=W(se,2),xe=re[0],de=re[1];Gt(function(){de(Ec());},[]);var ge=f__namespace.useRef({}),ve=f__namespace.useContext(vp),Ee=f__namespace.useMemo(function(){return {registerSubPopup:function(Re,mt){ge.current[Re]=mt,ve==null||ve.registerSubPopup(Re,mt);}}},[ve]),Ye=dM(),ft=f__namespace.useState(null),Et=W(ft,2),tt=Et[0],ke=Et[1],Fe=nn(function(me){gl(me)&&tt!==me&&ke(me),ve==null||ve.registerSubPopup(Ye,me);}),Pe=f__namespace.useState(null),De=W(Pe,2),Te=De[0],He=De[1],rt=nn(function(me){gl(me)&&Te!==me&&He(me);}),ht=f__namespace.Children.only(a),Ke=(ht==null?void 0:ht.props)||{},Ze={},at=nn(function(me){var Re,mt,wt=Te;return (wt==null?void 0:wt.contains(me))||(wt==null||(Re=wt.getRootNode())===null||Re===void 0?void 0:Re.host)===me||me===wt||(tt==null?void 0:tt.contains(me))||(tt==null||(mt=tt.getRootNode())===null||mt===void 0?void 0:mt.host)===me||me===tt||Object.values(ge.current).some(function(pt){return (pt==null?void 0:pt.contains(me))||me===pt})}),st=mp(o,U,Z,ie),St=mp(o,Q,ae,te),fe=f__namespace.useState(h||!1),ce=W(fe,2),_e=ce[0],we=ce[1],Ve=d??_e,$t=nn(function(me){d===void 0&&we(me);});Gt(function(){we(d||!1);},[d]);var At=f__namespace.useRef(Ve);At.current=Ve;var kt=nn(function(me){Ve!==me&&($t(me),v==null||v(me));}),be=f__namespace.useRef(),We=function(){clearTimeout(be.current);},Ue=function(Re){var mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;We(),mt===0?kt(Re):be.current=setTimeout(function(){kt(Re);},mt*1e3);};f__namespace.useEffect(function(){return We},[]);var _t=f__namespace.useState(!1),Ot=W(_t,2),gr=Ot[0],fr=Ot[1],Lt=f__namespace.useRef(!0);Gt(function(){(!Lt.current||Ve)&&fr(!0),Lt.current=!0;},[Ve]);var zr=f__namespace.useState(null),tr=W(zr,2),Ge=tr[0],Ie=tr[1],pe=f__namespace.useState([0,0]),vt=W(pe,2),nt=vt[0],ar=vt[1],Oe=function(Re){ar([Re.clientX,Re.clientY]);},ye=ZM(Ve,tt,G?nt:Te,P,A,I,V),Be=W(ye,9),Rt=Be[0],jt=Be[1],Mt=Be[2],Or=Be[3],qr=Be[4],Mn=Be[5],vi=Be[6],Zn=Be[7],cn=Be[8],Pr=nn(function(){gr||cn();});QM(Ve,Te,tt,Pr),Gt(function(){Pr();},[nt,P]),Gt(function(){Ve&&!(A!=null&&A[P])&&Pr();},[JSON.stringify(I)]);var Hi=f__namespace.useMemo(function(){var me=YM(A,o,Zn,G);return K(me,B==null?void 0:B(Zn))},[Zn,B,A,o,G]);f__namespace.useImperativeHandle(n,function(){return {forceAlign:Pr}});var Vo=function(Re){fr(!1),cn(),p==null||p(Re);},Wi=function(){return new Promise(function(Re){Ie(function(){return Re});})};Gt(function(){Ge&&(cn(),Ge(),Ie(null));},[Ge]);var Bi=f__namespace.useState(0),Vi=W(Bi,2),Uo=Vi[0],Go=Vi[1],Ko=f__namespace.useState(0),Ui=W(Ko,2),qo=Ui[0],Ct=Ui[1],lt=function(Re,mt){if(Pr(),j){var wt=mt.getBoundingClientRect();Go(wt.width),Ct(wt.height);}},qe=qM(xe,l,c,u),Vt=W(qe,2),zt=Vt[0],Qt=Vt[1],hr=function(Re,mt,wt,pt){Ze[Re]=function(Yo){var Gi;pt==null||pt(Yo),Ue(mt,wt);for(var gi=arguments.length,Ki=new Array(gi>1?gi-1:0),Ss=1;Ss<gi;Ss++)Ki[Ss-1]=arguments[Ss];(Gi=Ke[Re])===null||Gi===void 0||Gi.call.apply(Gi,[Ke,Yo].concat(Ki));};},pi=zt.has("click"),mi=Qt.has("click")||Qt.has("contextMenu");(pi||mi)&&(Ze.onClick=function(me){var Re;At.current&&mi?Ue(!1):!At.current&&pi&&(Oe(me),Ue(!0));for(var mt=arguments.length,wt=new Array(mt>1?mt-1:0),pt=1;pt<mt;pt++)wt[pt-1]=arguments[pt];(Re=Ke.onClick)===null||Re===void 0||Re.call.apply(Re,[Ke,me].concat(wt));}),f__namespace.useEffect(function(){if(mi&&tt&&(!E||y)){var me=!1,Re=function(gi){var Ki=gi.target;me=at(Ki);},mt=function(gi){var Ki=gi.target;At.current&&!me&&!at(Ki)&&Ue(!1);},wt=us(tt),pt=Te==null?void 0:Te.getRootNode();wt.addEventListener("mousedown",Re),wt.addEventListener("click",mt);var Yo=pt&&pt!==Te.ownerDocument;return Yo&&(pt.addEventListener("mousedown",Re),pt.addEventListener("click",mt)),function(){wt.removeEventListener("mousedown",Re),wt.removeEventListener("click",mt),Yo&&(pt.removeEventListener("mousedown",Re),pt.removeEventListener("click",mt));}}},[mi,Te,tt,E,y]);var Wc=zt.has("hover"),Bc=Qt.has("hover"),bs,ys;Wc&&(hr("onMouseEnter",!0,m,function(me){Oe(me);}),bs=function(){Ue(!0,m);},G&&(Ze.onMouseMove=function(me){var Re;(Re=Ke.onMouseMove)===null||Re===void 0||Re.call(Ke,me);})),Bc&&(hr("onMouseLeave",!1,b),ys=function(){Ue(!1,b);}),zt.has("focus")&&hr("onFocus",!0,w),Qt.has("focus")&&hr("onBlur",!1,S),zt.has("contextMenu")&&(Ze.onContextMenu=function(me){var Re;Oe(me),Ue(!0),me.preventDefault();for(var mt=arguments.length,wt=new Array(mt>1?mt-1:0),pt=1;pt<mt;pt++)wt[pt-1]=arguments[pt];(Re=Ke.onContextMenu)===null||Re===void 0||Re.call.apply(Re,[Ke,me].concat(wt));}),ue&&(Ze.className=K(Ke.className,ue));var Xo=D(D({},Ke),Ze),ws={},N1=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];N1.forEach(function(me){J[me]&&(ws[me]=function(){for(var Re,mt=arguments.length,wt=new Array(mt),pt=0;pt<mt;pt++)wt[pt]=arguments[pt];(Re=Xo[me])===null||Re===void 0||Re.call.apply(Re,[Xo].concat(wt)),J[me].apply(J,wt);});});var I1=f__namespace.cloneElement(ht,D(D({},Xo),ws)),A1={x:Or,y:qr},k1=q?D({},q!==!0?q:{}):null;return f__namespace.createElement(f__namespace.Fragment,null,f__namespace.createElement(ki,{disabled:!Ve,ref:rt,onResize:lt},f__namespace.createElement(nN,{getTriggerDOMNode:$e},I1)),f__namespace.createElement(vp.Provider,{value:Ee},f__namespace.createElement(rN,{portal:e,ref:Fe,prefixCls:o,popup:N,className:K(_,Hi),style:$,target:Te,onMouseEnter:bs,onMouseLeave:ys,zIndex:L,open:Ve,keepDom:gr,onClick:z,mask:E,motion:st,maskMotion:St,onVisibleChanged:Vo,onPrepare:Wi,forceRender:R,autoDestroy:oe,getPopupContainer:C,align:Zn,arrow:k1,arrowPos:A1,ready:Rt,offsetX:jt,offsetY:Mt,onAlign:Pr,stretch:j,targetWidth:Uo/Mn,targetHeight:qo/vi})))});return t}const i0=oN(Jb);function yu(e,t,r){return K({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:r})}const aN=(e,t)=>t||e;var sN={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 lN=sN;var o0=function(t,r){return f__namespace.createElement(Ho,D(D({},t),{},{ref:r,icon:lN}))};o0.displayName="DownOutlined";const cN=f__namespace.forwardRef(o0);var Ji={shiftX:64,adjustY:1},eo={adjustX:1,shiftY:!0},Wr=[0,0],uN={left:{points:["cr","cl"],overflow:eo,offset:[-4,0],targetOffset:Wr},right:{points:["cl","cr"],overflow:eo,offset:[4,0],targetOffset:Wr},top:{points:["bc","tc"],overflow:Ji,offset:[0,-4],targetOffset:Wr},bottom:{points:["tc","bc"],overflow:Ji,offset:[0,4],targetOffset:Wr},topLeft:{points:["bl","tl"],overflow:Ji,offset:[0,-4],targetOffset:Wr},leftTop:{points:["tr","tl"],overflow:eo,offset:[-4,0],targetOffset:Wr},topRight:{points:["br","tr"],overflow:Ji,offset:[0,-4],targetOffset:Wr},rightTop:{points:["tl","tr"],overflow:eo,offset:[4,0],targetOffset:Wr},bottomRight:{points:["tr","br"],overflow:Ji,offset:[0,4],targetOffset:Wr},rightBottom:{points:["bl","br"],overflow:eo,offset:[4,0],targetOffset:Wr},bottomLeft:{points:["tl","bl"],overflow:Ji,offset:[0,4],targetOffset:Wr},leftBottom:{points:["br","bl"],overflow:eo,offset:[-4,0],targetOffset:Wr}};function a0(e){var t=e.children,r=e.prefixCls,n=e.id,i=e.overlayInnerStyle,o=e.className,a=e.style;return f__namespace.createElement("div",{className:K("".concat(r,"-content"),o),style:a},f__namespace.createElement("div",{className:"".concat(r,"-inner"),id:n,role:"tooltip",style:i},typeof t=="function"?t():t))}var dN=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],fN=function(t,r){var n=t.overlayClassName,i=t.trigger,o=i===void 0?["hover"]:i,a=t.mouseEnterDelay,s=a===void 0?0:a,l=t.mouseLeaveDelay,c=l===void 0?.1:l,u=t.overlayStyle,d=t.prefixCls,h=d===void 0?"rc-tooltip":d,v=t.children,p=t.onVisibleChange,m=t.afterVisibleChange,g=t.transitionName,b=t.animation,w=t.motion,S=t.placement,E=S===void 0?"right":S,x=t.align,y=x===void 0?{}:x,C=t.destroyTooltipOnHide,R=C===void 0?!1:C,M=t.defaultVisible,O=t.getTooltipContainer,N=t.overlayInnerStyle;t.arrowContent;var _=t.overlay,$=t.id,P=t.showArrow,T=P===void 0?!0:P,A=Xe(t,dN),I=f.useRef(null);f.useImperativeHandle(r,function(){return I.current});var L=D({},A);"visible"in t&&(L.popupVisible=t.visible);var j=function(){return f__namespace.createElement(a0,{key:"content",prefixCls:h,id:$,overlayInnerStyle:N},_)};return f__namespace.createElement(i0,Ce({popupClassName:n,prefixCls:h,popup:j,action:o,builtinPlacements:uN,popupPlacement:E,ref:I,popupAlign:y,getPopupContainer:O,onPopupVisibleChange:p,afterPopupVisibleChange:m,popupTransitionName:g,popupAnimation:b,popupMotion:w,defaultPopupVisible:M,autoDestroy:R,mouseLeaveDelay:c,popupStyle:u,mouseEnterDelay:s,arrow:T},L),v)};const hN=f.forwardRef(fN),s0=8;function l0(e){const t=s0,{contentRadius:r,limitVerticalRadius:n}=e,i=r>12?r+2:12;return {dropdownArrowOffset:i,dropdownArrowOffsetVertical:n?t:i}}function Fs(e,t){return e?t:{}}function vN(e,t){const{componentCls:r,sizePopupArrow:n,borderRadiusXS:i,borderRadiusOuter:o,boxShadowPopoverArrow:a}=e,{colorBg:s,contentRadius:l=e.borderRadiusLG,limitVerticalRadius:c,arrowDistance:u=0,arrowPlacement:d={left:!0,right:!0,top:!0,bottom:!0}}=t,{dropdownArrowOffsetVertical:h,dropdownArrowOffset:v}=l0({contentRadius:l,limitVerticalRadius:c});return {[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},YP(n,i,o,s,a)),{"&:before":{background:s}})]},Fs(!!d.top,{[[`&-placement-top ${r}-arrow`,`&-placement-topLeft ${r}-arrow`,`&-placement-topRight ${r}-arrow`].join(",")]:{bottom:u,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${r}-arrow`]:{left:{_skip_check_:!0,value:v}},[`&-placement-topRight ${r}-arrow`]:{right:{_skip_check_:!0,value:v}}})),Fs(!!d.bottom,{[[`&-placement-bottom ${r}-arrow`,`&-placement-bottomLeft ${r}-arrow`,`&-placement-bottomRight ${r}-arrow`].join(",")]:{top:u,transform:"translateY(-100%)"},[`&-placement-bottom ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${r}-arrow`]:{left:{_skip_check_:!0,value:v}},[`&-placement-bottomRight ${r}-arrow`]:{right:{_skip_check_:!0,value:v}}})),Fs(!!d.left,{[[`&-placement-left ${r}-arrow`,`&-placement-leftTop ${r}-arrow`,`&-placement-leftBottom ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:u},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${r}-arrow`]:{top:h},[`&-placement-leftBottom ${r}-arrow`]:{bottom:h}})),Fs(!!d.right,{[[`&-placement-right ${r}-arrow`,`&-placement-rightTop ${r}-arrow`,`&-placement-rightBottom ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:u},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${r}-arrow`]:{top:h},[`&-placement-rightBottom ${r}-arrow`]:{bottom:h}}))}}function pN(e,t,r,n){if(n===!1)return {adjustX:!1,adjustY:!1};const i=n&&typeof n=="object"?n:{},o={};switch(e){case"top":case"bottom":o.shiftX=t.dropdownArrowOffset*2+r;break;case"left":case"right":o.shiftY=t.dropdownArrowOffsetVertical*2+r;break}const a=Object.assign(Object.assign({},o),i);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const Sp={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"]}},mN={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"]}},gN=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function bN(e){const{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:n,offset:i,borderRadius:o}=e,a=t/2,s={};return Object.keys(Sp).forEach(l=>{const c=n&&mN[l]||Sp[l],u=Object.assign(Object.assign({},c),{offset:[0,0]});switch(s[l]=u,gN.has(l)&&(u.autoArrow=!1),l){case"top":case"topLeft":case"topRight":u.offset[1]=-a-i;break;case"bottom":case"bottomLeft":case"bottomRight":u.offset[1]=a+i;break;case"left":case"leftTop":case"leftBottom":u.offset[0]=-a-i;break;case"right":case"rightTop":case"rightBottom":u.offset[0]=a+i;break}const d=l0({contentRadius:o,limitVerticalRadius:!0});if(n)switch(l){case"topLeft":case"bottomLeft":u.offset[0]=-d.dropdownArrowOffset-a;break;case"topRight":case"bottomRight":u.offset[0]=d.dropdownArrowOffset+a;break;case"leftTop":case"rightTop":u.offset[1]=-d.dropdownArrowOffset-a;break;case"leftBottom":case"rightBottom":u.offset[1]=d.dropdownArrowOffset+a;break}u.overflow=pN(l,d,t,r);}),s}const Jn=(e,t)=>new ur(e).setAlpha(t).toRgbString(),to=(e,t)=>new ur(e).lighten(t).toHexString(),yN=e=>{const t=Un(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]}},wN=(e,t)=>{const r=e||"#000",n=t||"#fff";return {colorBgBase:r,colorTextBase:n,colorText:Jn(n,.85),colorTextSecondary:Jn(n,.65),colorTextTertiary:Jn(n,.45),colorTextQuaternary:Jn(n,.25),colorFill:Jn(n,.18),colorFillSecondary:Jn(n,.12),colorFillTertiary:Jn(n,.08),colorFillQuaternary:Jn(n,.04),colorBgElevated:to(r,12),colorBgContainer:to(r,8),colorBgLayout:to(r,0),colorBgSpotlight:to(r,26),colorBorder:to(r,26),colorBorderSecondary:to(r,19)}},SN=(e,t)=>{const r=Object.keys(Ff).map(i=>{const o=Un(e[i],{theme:"dark"});return new Array(10).fill(1).reduce((a,s,l)=>(a[`${i}-${l+1}`]=o[l],a[`${i}${l+1}`]=o[l],a),{})}).reduce((i,o)=>(i=Object.assign(Object.assign({},i),o),i),{}),n=t??mc(e);return Object.assign(Object.assign(Object.assign({},n),r),fb(e,{generateColorPalettes:yN,generateNeutralColorPalettes:wN}))},CN=SN;function xN(e){const{sizeUnit:t,sizeStep:r}=e,n=r-2;return {sizeXXL:t*(n+10),sizeXL:t*(n+6),sizeLG:t*(n+2),sizeMD:t*(n+2),sizeMS:t*(n+1),size:t*n,sizeSM:t*n,sizeXS:t*(n-1),sizeXXS:t*(n-1)}}const EN=(e,t)=>{const r=t??mc(e),n=r.fontSizeSM,i=r.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},r),xN(t??e)),hb(n)),{controlHeight:i}),db(Object.assign(Object.assign({},r),{controlHeight:i})))},$N=EN;function _N(){const[e,t,r]=ss();return {theme:e,token:t,hashId:r}}const Ad={defaultConfig:El,defaultSeed:El.token,useToken:_N,defaultAlgorithm:mc,darkAlgorithm:CN,compactAlgorithm:$N},ON=e=>{const{componentCls:t,tooltipMaxWidth:r,tooltipColor:n,tooltipBg:i,tooltipBorderRadius:o,zIndexPopup:a,controlHeight:s,boxShadowSecondary:l,paddingSM:c,paddingXS:u,tooltipRadiusOuter:d}=e;return [{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},yr(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:r,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${t}-inner`]:{minWidth:s,minHeight:s,padding:`${c/2}px ${u}px`,color:n,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:o,boxShadow:l},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(o,s0)}},[`${t}-content`]:{position:"relative"}}),gb(e,(h,v)=>{let{darkColor:p}=v;return {[`&${t}-${h}`]:{[`${t}-inner`]:{backgroundColor:p},[`${t}-arrow`]:{"--antd-arrow-background-color":p}}}})),{"&-rtl":{direction:"rtl"}})},vN(mr(e,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:o,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},c0=(e,t)=>Tn("Tooltip",n=>{if(t===!1)return [];const{borderRadius:i,colorTextLightSolid:o,colorBgDefault:a,borderRadiusOuter:s}=n,l=mr(n,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:i,tooltipBg:a,tooltipRadiusOuter:s>4?4:s});return [ON(l),LM(n,"zoom-big-fast")]},n=>{let{zIndexPopupBase:i,colorBgSpotlight:o}=n;return {zIndexPopup:i+70,colorBgDefault:o}})(e),PN=xl.map(e=>`${e}-inverse`),TN=["success","processing","error","default","warning"];function u0(e){return (arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(le(PN),le(xl)).includes(e):xl.includes(e)}function RN(e){return TN.includes(e)}function d0(e,t){const r=u0(t),n=K({[`${e}-${t}`]:t&&r}),i={},o={};return t&&!r&&(i.background=t,o["--antd-arrow-background-color"]=t),{className:n,overlayStyle:i,arrowStyle:o}}function MN(e){const{prefixCls:t,className:r,placement:n="top",title:i,color:o,overlayInnerStyle:a}=e,{getPrefixCls:s}=f__namespace.useContext(Wt),l=s("tooltip",t),[c,u]=c0(l,!0),d=d0(l,o),h=Object.assign(Object.assign({},a),d.overlayStyle),v=d.arrowStyle;return c(f__namespace.createElement("div",{className:K(u,l,`${l}-pure`,`${l}-placement-${n}`,r,d.className),style:v},f__namespace.createElement("div",{className:`${l}-arrow`}),f__namespace.createElement(a0,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:h}),i)))}var NN=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const{useToken:IN}=Ad,AN=(e,t)=>{const r={},n=Object.assign({},e);return t.forEach(i=>{e&&i in e&&(r[i]=e[i],delete n[i]);}),{picked:r,omitted:n}};function kN(e,t){const r=e.type;if((r.__ANT_BUTTON===!0||e.type==="button")&&e.props.disabled||r.__ANT_SWITCH===!0&&(e.props.disabled||e.props.loading)||r.__ANT_RADIO===!0&&e.props.disabled){const{picked:n,omitted:i}=AN(e.props.style,["position","left","right","top","bottom","float","display","zIndex"]),o=Object.assign(Object.assign({display:"inline-block"},n),{cursor:"not-allowed",width:e.props.block?"100%":void 0}),a=Object.assign(Object.assign({},i),{pointerEvents:"none"}),s=No(e,{style:a,className:null});return f__namespace.createElement("span",{style:o,className:K(e.props.className,`${t}-disabled-compatible-wrapper`)},s)}return e}const f0=f__namespace.forwardRef((e,t)=>{var r,n;const{prefixCls:i,openClassName:o,getTooltipContainer:a,overlayClassName:s,color:l,overlayInnerStyle:c,children:u,afterOpenChange:d,afterVisibleChange:h,destroyTooltipOnHide:v,arrow:p=!0,title:m,overlay:g,builtinPlacements:b,arrowPointAtCenter:w=!1,autoAdjustOverflow:S=!0}=e,E=!!p,{token:x}=IN(),{getPopupContainer:y,getPrefixCls:C,direction:R}=f__namespace.useContext(Wt),M=f__namespace.useRef(null),O=()=>{var de;(de=M.current)===null||de===void 0||de.forceAlign();};f__namespace.useImperativeHandle(t,()=>({forceAlign:O,forcePopupAlign:()=>{O();}}));const[N,_]=Cn(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),$=!m&&!g&&m!==0,P=de=>{var ge,ve;_($?!1:de),$||((ge=e.onOpenChange)===null||ge===void 0||ge.call(e,de),(ve=e.onVisibleChange)===null||ve===void 0||ve.call(e,de));},T=f__namespace.useMemo(()=>{var de,ge;let ve=w;return typeof p=="object"&&(ve=(ge=(de=p.pointAtCenter)!==null&&de!==void 0?de:p.arrowPointAtCenter)!==null&&ge!==void 0?ge:w),b||bN({arrowPointAtCenter:ve,autoAdjustOverflow:S,arrowWidth:E?x.sizePopupArrow:0,borderRadius:x.borderRadius,offset:x.marginXXS})},[w,p,b,x]),A=f__namespace.useMemo(()=>m===0?m:g||m||"",[g,m]),I=f__namespace.createElement(Rd,null,typeof A=="function"?A():A),{getPopupContainer:L,placement:j="top",mouseEnterDelay:B=.1,mouseLeaveDelay:G=.1,overlayStyle:z,rootClassName:V}=e,q=NN(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),U=C("tooltip",i),Q=C(),ie=e["data-popover-inject"];let Z=N;!("open"in e)&&!("visible"in e)&&$&&(Z=!1);const te=kN(Wf(u)&&!zb(u)?u:f__namespace.createElement("span",null,u),U),ae=te.props,ue=!ae.className||typeof ae.className=="string"?K(ae.className,{[o||`${U}-open`]:!0}):ae.className,[$e,J]=c0(U,!ie),oe=d0(U,l),se=Object.assign(Object.assign({},c),oe.overlayStyle),re=oe.arrowStyle,xe=K(s,{[`${U}-rtl`]:R==="rtl"},oe.className,V,J);return $e(f__namespace.createElement(hN,Object.assign({},q,{showArrow:E,placement:j,mouseEnterDelay:B,mouseLeaveDelay:G,prefixCls:U,overlayClassName:xe,overlayStyle:Object.assign(Object.assign({},re),z),getTooltipContainer:L||a||y,ref:M,builtinPlacements:T,overlay:I,visible:Z,onVisibleChange:P,afterVisibleChange:d??h,overlayInnerStyle:se,arrowContent:f__namespace.createElement("span",{className:`${U}-arrow-content`}),motion:{motionName:Zb(Q,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!v}),Z?No(te,{className:ue}):te))});f0._InternalPanelDoNotUseOrYouWillBeFired=MN;const Gf=f0;var LN=Y.ESC,FN=Y.TAB;function DN(e){var t=e.visible,r=e.triggerRef,n=e.onVisibleChange,i=e.autoFocus,o=e.overlayRef,a=f__namespace.useRef(!1),s=function(){if(t){var d,h;(d=r.current)===null||d===void 0||(h=d.focus)===null||h===void 0||h.call(d),n==null||n(!1);}},l=function(){var d;return (d=o.current)!==null&&d!==void 0&&d.focus?(o.current.focus(),a.current=!0,!0):!1},c=function(d){switch(d.keyCode){case LN:s();break;case FN:{var h=!1;a.current||(h=l()),h?d.preventDefault():s();break}}};f__namespace.useEffect(function(){return t?(window.addEventListener("keydown",c),i&&It(l,3),function(){window.removeEventListener("keydown",c),a.current=!1;}):function(){a.current=!1;}},[t]);}var jN=f.forwardRef(function(e,t){var r=e.overlay,n=e.arrow,i=e.prefixCls,o=f.useMemo(function(){var s;return typeof r=="function"?s=r():s=r,s},[r]),a=Kr(t,o==null?void 0:o.ref);return f.createElement(f.Fragment,null,n&&f.createElement("div",{className:"".concat(i,"-arrow")}),f.cloneElement(o,{ref:hi(o)?a:void 0}))}),ro={adjustX:1,adjustY:1},no=[0,0],zN={topLeft:{points:["bl","tl"],overflow:ro,offset:[0,-4],targetOffset:no},top:{points:["bc","tc"],overflow:ro,offset:[0,-4],targetOffset:no},topRight:{points:["br","tr"],overflow:ro,offset:[0,-4],targetOffset:no},bottomLeft:{points:["tl","bl"],overflow:ro,offset:[0,4],targetOffset:no},bottom:{points:["tc","bc"],overflow:ro,offset:[0,4],targetOffset:no},bottomRight:{points:["tr","br"],overflow:ro,offset:[0,4],targetOffset:no}},HN=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function WN(e,t){var r,n=e.arrow,i=n===void 0?!1:n,o=e.prefixCls,a=o===void 0?"rc-dropdown":o,s=e.transitionName,l=e.animation,c=e.align,u=e.placement,d=u===void 0?"bottomLeft":u,h=e.placements,v=h===void 0?zN:h,p=e.getPopupContainer,m=e.showAction,g=e.hideAction,b=e.overlayClassName,w=e.overlayStyle,S=e.visible,E=e.trigger,x=E===void 0?["hover"]:E,y=e.autoFocus,C=e.overlay,R=e.children,M=e.onVisibleChange,O=Xe(e,HN),N=f.useState(),_=W(N,2),$=_[0],P=_[1],T="visible"in e?S:$,A=f.useRef(null),I=f.useRef(null),L=f.useRef(null);f.useImperativeHandle(t,function(){return A.current});var j=function(Z){P(Z),M==null||M(Z);};DN({visible:T,triggerRef:L,onVisibleChange:j,autoFocus:y,overlayRef:I});var B=function(Z){var te=e.onOverlayClick;P(!1),te&&te(Z);},G=function(){return f.createElement(jN,{ref:I,overlay:C,prefixCls:a,arrow:i})},z=function(){return typeof C=="function"?G:G()},V=function(){var Z=e.minOverlayWidthMatchTrigger,te=e.alignPoint;return "minOverlayWidthMatchTrigger"in e?Z:!te},q=function(){var Z=e.openClassName;return Z!==void 0?Z:"".concat(a,"-open")},U=f.cloneElement(R,{className:K((r=R.props)===null||r===void 0?void 0:r.className,T&&q()),ref:hi(R)?Kr(L,R.ref):void 0}),Q=g;return !Q&&x.indexOf("contextMenu")!==-1&&(Q=["click"]),f.createElement(i0,Ce({builtinPlacements:v},O,{prefixCls:a,ref:A,popupClassName:K(b,H({},"".concat(a,"-show-arrow"),i)),popupStyle:w,action:x,showAction:m,hideAction:Q,popupPlacement:d,popupAlign:c,popupTransitionName:s,popupAnimation:l,popupVisible:T,stretch:V()?"minWidth":"",popup:z(),onPopupVisibleChange:j,onPopupClick:B,getPopupContainer:p}),U)}const BN=f.forwardRef(WN);var h0=f__namespace.createContext(null);function Kf(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function v0(e){var t=f__namespace.useContext(h0);return Kf(t,e)}var VN=["children","locked"],ln=f__namespace.createContext(null);function UN(e,t){var r=D({},e);return Object.keys(t).forEach(function(n){var i=t[n];i!==void 0&&(r[n]=i);}),r}function Va(e){var t=e.children,r=e.locked,n=Xe(e,VN),i=f__namespace.useContext(ln),o=cc(function(){return UN(i,n)},[i,n],function(a,s){return !r&&(a[0]!==s[0]||!is(a[1],s[1],!0))});return f__namespace.createElement(ln.Provider,{value:o},t)}var GN=[],p0=f__namespace.createContext(null);function $c(){return f__namespace.useContext(p0)}var m0=f__namespace.createContext(GN);function ds(e){var t=f__namespace.useContext(m0);return f__namespace.useMemo(function(){return e!==void 0?[].concat(le(t),[e]):t},[t,e])}var g0=f__namespace.createContext(null),qf=f__namespace.createContext({});function Cp(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Cc(e)){var r=e.nodeName.toLowerCase(),n=["input","select","textarea","button"].includes(r)||e.isContentEditable||r==="a"&&!!e.getAttribute("href"),i=e.getAttribute("tabindex"),o=Number(i),a=null;return i&&!Number.isNaN(o)?a=o:n&&a===null&&(a=0),n&&e.disabled&&(a=null),a!==null&&(a>=0||t&&a<0)}return !1}function KN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=le(e.querySelectorAll("*")).filter(function(n){return Cp(n,t)});return Cp(e,t)&&r.unshift(e),r}var kd=Y.LEFT,Ld=Y.RIGHT,Fd=Y.UP,Zs=Y.DOWN,Qs=Y.ENTER,b0=Y.ESC,na=Y.HOME,ia=Y.END,xp=[Fd,Zs,kd,Ld];function qN(e,t,r,n){var i,o,a,s,l="prev",c="next",u="children",d="parent";if(e==="inline"&&n===Qs)return {inlineTrigger:!0};var h=(i={},H(i,Fd,l),H(i,Zs,c),i),v=(o={},H(o,kd,r?c:l),H(o,Ld,r?l:c),H(o,Zs,u),H(o,Qs,u),o),p=(a={},H(a,Fd,l),H(a,Zs,c),H(a,Qs,u),H(a,b0,d),H(a,kd,r?u:d),H(a,Ld,r?d:u),a),m={inline:h,horizontal:v,vertical:p,inlineSub:h,horizontalSub:p,verticalSub:p},g=(s=m["".concat(e).concat(t?"":"Sub")])===null||s===void 0?void 0:s[n];switch(g){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 XN(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement;}return null}function YN(e,t){for(var r=e||document.activeElement;r;){if(t.has(r))return r;r=r.parentElement;}return null}function y0(e,t){var r=KN(e,!0);return r.filter(function(n){return t.has(n)})}function Ep(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var i=y0(e,t),o=i.length,a=i.findIndex(function(s){return r===s});return n<0?a===-1?a=o-1:a-=1:n>0&&(a+=1),a=(a+o)%o,i[a]}function ZN(e,t,r,n,i,o,a,s,l,c){var u=f__namespace.useRef(),d=f__namespace.useRef();d.current=t;var h=function(){It.cancel(u.current);};return f__namespace.useEffect(function(){return function(){h();}},[]),function(v){var p=v.which;if([].concat(xp,[Qs,b0,na,ia]).includes(p)){var m,g,b,w=function(){m=new Set,g=new Map,b=new Map;var T=o();return T.forEach(function(A){var I=document.querySelector("[data-menu-id='".concat(Kf(n,A),"']"));I&&(m.add(I),b.set(I,A),g.set(A,I));}),m};w();var S=g.get(t),E=YN(S,m),x=b.get(E),y=qN(e,a(x,!0).length===1,r,p);if(!y&&p!==na&&p!==ia)return;(xp.includes(p)||[na,ia].includes(p))&&v.preventDefault();var C=function(T){if(T){var A=T,I=T.querySelector("a");I!=null&&I.getAttribute("href")&&(A=I);var L=b.get(T);s(L),h(),u.current=It(function(){d.current===L&&A.focus();});}};if([na,ia].includes(p)||y.sibling||!E){var R;!E||e==="inline"?R=i.current:R=XN(E);var M,O=y0(R,m);p===na?M=O[0]:p===ia?M=O[O.length-1]:M=Ep(R,m,E,y.offset),C(M);}else if(y.inlineTrigger)l(x);else if(y.offset>0)l(x,!0),h(),u.current=It(function(){w();var P=E.getAttribute("aria-controls"),T=document.getElementById(P),A=Ep(T,m);C(A);},5);else if(y.offset<0){var N=a(x,!0),_=N[N.length-2],$=g.get(_);l(_,!1),C($);}}c==null||c(v);}}function QN(e){Promise.resolve().then(e);}var Xf="__RC_UTIL_PATH_SPLIT__",$p=function(t){return t.join(Xf)},JN=function(t){return t.split(Xf)},Dd="rc-menu-more";function e2(){var e=f__namespace.useState({}),t=W(e,2),r=t[1],n=f.useRef(new Map),i=f.useRef(new Map),o=f__namespace.useState([]),a=W(o,2),s=a[0],l=a[1],c=f.useRef(0),u=f.useRef(!1),d=function(){u.current||r({});},h=f.useCallback(function(S,E){var x=$p(E);i.current.set(x,S),n.current.set(S,x),c.current+=1;var y=c.current;QN(function(){y===c.current&&d();});},[]),v=f.useCallback(function(S,E){var x=$p(E);i.current.delete(x),n.current.delete(S);},[]),p=f.useCallback(function(S){l(S);},[]),m=f.useCallback(function(S,E){var x=n.current.get(S)||"",y=JN(x);return E&&s.includes(y[0])&&y.unshift(Dd),y},[s]),g=f.useCallback(function(S,E){return S.some(function(x){var y=m(x,!0);return y.includes(E)})},[m]),b=function(){var E=le(n.current.keys());return s.length&&E.push(Dd),E},w=f.useCallback(function(S){var E="".concat(n.current.get(S)).concat(Xf),x=new Set;return le(i.current.keys()).forEach(function(y){y.startsWith(E)&&x.add(i.current.get(y));}),x},[]);return f__namespace.useEffect(function(){return function(){u.current=!0;}},[]),{registerPath:h,unregisterPath:v,refreshOverflowKeys:p,isSubPathKey:g,getKeyPath:m,getKeys:b,getSubPathKeys:w}}function so(e){var t=f__namespace.useRef(e);t.current=e;var r=f__namespace.useCallback(function(){for(var n,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return (n=t.current)===null||n===void 0?void 0:n.call.apply(n,[t].concat(o))},[]);return e?r:void 0}var t2=Math.random().toFixed(5).toString().slice(2),_p=0;function r2(e){var t=Cn(e,{value:e}),r=W(t,2),n=r[0],i=r[1];return f__namespace.useEffect(function(){_p+=1;var o="".concat(t2,"-").concat(_p);i("rc-menu-uuid-".concat(o));},[]),n}function w0(e,t,r,n){var i=f__namespace.useContext(ln),o=i.activeKey,a=i.onActive,s=i.onInactive,l={active:o===e};return t||(l.onMouseEnter=function(c){r==null||r({key:e,domEvent:c}),a(e);},l.onMouseLeave=function(c){n==null||n({key:e,domEvent:c}),s(e);}),l}function S0(e){var t=f__namespace.useContext(ln),r=t.mode,n=t.rtl,i=t.inlineIndent;if(r!=="inline")return null;var o=e;return n?{paddingRight:o*i}:{paddingLeft:o*i}}function C0(e){var t=e.icon,r=e.props,n=e.children,i;return typeof t=="function"?i=f__namespace.createElement(t,D({},r)):i=t,i||n||null}var n2=["item"];function Tl(e){var t=e.item,r=Xe(e,n2);return Object.defineProperty(r,"item",{get:function(){return dr(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),r}var i2=["title","attribute","elementRef"],o2=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],a2=["active"],s2=function(e){Fo(r,e);var t=Do(r);function r(){return Er(this,r),t.apply(this,arguments)}return $r(r,[{key:"render",value:function(){var i=this.props,o=i.title,a=i.attribute,s=i.elementRef,l=Xe(i,i2),c=fc(l,["eventKey","popupClassName","popupOffset","onTitleClick"]);return dr(!a,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),f__namespace.createElement(Wn.Item,Ce({},a,{title:typeof o=="string"?o:void 0},c,{ref:s}))}}]),r}(f__namespace.Component),l2=f__namespace.forwardRef(function(e,t){var r,n=e.style,i=e.className,o=e.eventKey;e.warnKey;var a=e.disabled,s=e.itemIcon,l=e.children,c=e.role,u=e.onMouseEnter,d=e.onMouseLeave,h=e.onClick,v=e.onKeyDown,p=e.onFocus,m=Xe(e,o2),g=v0(o),b=f__namespace.useContext(ln),w=b.prefixCls,S=b.onItemClick,E=b.disabled,x=b.overflowDisabled,y=b.itemIcon,C=b.selectedKeys,R=b.onActive,M=f__namespace.useContext(qf),O=M._internalRenderMenuItem,N="".concat(w,"-item"),_=f__namespace.useRef(),$=f__namespace.useRef(),P=E||a,T=uc(t,$),A=ds(o),I=function(ae){return {key:o,keyPath:le(A).reverse(),item:_.current,domEvent:ae}},L=s||y,j=w0(o,P,u,d),B=j.active,G=Xe(j,a2),z=C.includes(o),V=S0(A.length),q=function(ae){if(!P){var ue=I(ae);h==null||h(Tl(ue)),S(ue);}},U=function(ae){if(v==null||v(ae),ae.which===Y.ENTER){var ue=I(ae);h==null||h(Tl(ue)),S(ue);}},Q=function(ae){R(o),p==null||p(ae);},ie={};e.role==="option"&&(ie["aria-selected"]=z);var Z=f__namespace.createElement(s2,Ce({ref:_,elementRef:T,role:c===null?"none":c||"menuitem",tabIndex:a?null:-1,"data-menu-id":x&&g?null:g},m,G,ie,{component:"li","aria-disabled":a,style:D(D({},V),n),className:K(N,(r={},H(r,"".concat(N,"-active"),B),H(r,"".concat(N,"-selected"),z),H(r,"".concat(N,"-disabled"),P),r),i),onClick:q,onKeyDown:U,onFocus:Q}),l,f__namespace.createElement(C0,{props:D(D({},e),{},{isSelected:z}),icon:L}));return O&&(Z=O(Z,e,{selected:z})),Z});function c2(e,t){var r=e.eventKey,n=$c(),i=ds(r);return f__namespace.useEffect(function(){if(n)return n.registerPath(r,i),function(){n.unregisterPath(r,i);}},[i]),n?null:f__namespace.createElement(l2,Ce({},e,{ref:t}))}const _c=f__namespace.forwardRef(c2);var u2=["className","children"],d2=function(t,r){var n=t.className,i=t.children,o=Xe(t,u2),a=f__namespace.useContext(ln),s=a.prefixCls,l=a.mode,c=a.rtl;return f__namespace.createElement("ul",Ce({className:K(s,c&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat(l==="inline"?"inline":"vertical"),n),role:"menu"},o,{"data-menu-list":!0,ref:r}),i)},Yf=f__namespace.forwardRef(d2);Yf.displayName="SubMenuList";var f2=["label","children","key","type"];function Zf(e,t){return fi(e).map(function(r,n){if(f__namespace.isValidElement(r)){var i,o,a=r.key,s=(i=(o=r.props)===null||o===void 0?void 0:o.eventKey)!==null&&i!==void 0?i:a,l=s==null;l&&(s="tmp_key-".concat([].concat(le(t),[n]).join("-")));var c={key:s,eventKey:s};return f__namespace.cloneElement(r,c)}return r})}function jd(e){return (e||[]).map(function(t,r){if(t&&ot(t)==="object"){var n=t,i=n.label,o=n.children,a=n.key,s=n.type,l=Xe(n,f2),c=a??"tmp-".concat(r);return o||s==="group"?s==="group"?f__namespace.createElement(F0,Ce({key:c},l,{title:i}),jd(o)):f__namespace.createElement(nh,Ce({key:c},l,{title:i}),jd(o)):s==="divider"?f__namespace.createElement(D0,Ce({key:c},l)):f__namespace.createElement(_c,Ce({key:c},l),i)}return null}).filter(function(t){return t})}function h2(e,t,r){var n=e;return t&&(n=jd(t)),Zf(n,r)}var v2=f.forwardRef(function(e,t){var r=e.didUpdate,n=e.getContainer,i=e.children,o=f.useRef(),a=f.useRef();f.useImperativeHandle(t,function(){return {}});var s=f.useRef(!1);return !s.current&&Sr()&&(a.current=n(),o.current=a.current.parentNode,s.current=!0),f.useEffect(function(){r==null||r(e);}),f.useEffect(function(){return a.current.parentNode===null&&o.current!==null&&o.current.appendChild(a.current),function(){var l,c;(l=a.current)===null||l===void 0||(c=l.parentNode)===null||c===void 0||c.removeChild(a.current);}},[]),a.current?$o.createPortal(i,a.current):null});function p2(e,t,r){return r?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function m2(e,t,r){var n=e[t]||{};return D(D({},n),r)}function g2(e,t,r,n){for(var i=r.points,o=Object.keys(e),a=0;a<o.length;a+=1){var s=o[a];if(p2(e[s].points,i,n))return "".concat(t,"-placement-").concat(s)}return ""}function x0(e){var t=e.prefixCls,r=e.motion,n=e.animation,i=e.transitionName;return r||(n?{motionName:"".concat(t,"-").concat(n)}:i?{motionName:i}:null)}function b2(e){var t=e.prefixCls,r=e.visible,n=e.zIndex,i=e.mask,o=e.maskMotion,a=e.maskAnimation,s=e.maskTransitionName;if(!i)return null;var l={};return (o||s||a)&&(l=D({motionAppear:!0},x0({motion:o,prefixCls:t,transitionName:s,animation:a}))),f__namespace.createElement(Rn,Ce({},l,{visible:r,removeOnLeave:!0}),function(c){var u=c.className;return f__namespace.createElement("div",{style:{zIndex:n},className:K("".concat(t,"-mask"),u)})})}function Op(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n);}return r}function Pp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Op(Object(r),!0).forEach(function(n){y2(e,n,r[n]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Op(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n));});}return e}function zd(e){"@babel/helpers - typeof";return zd=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},zd(e)}function y2(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var oa,w2={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function Rl(){if(oa!==void 0)return oa;oa="";var e=document.createElement("p").style,t="Transform";for(var r in w2)r+t in e&&(oa=r);return oa}function E0(){return Rl()?"".concat(Rl(),"TransitionProperty"):"transitionProperty"}function Oc(){return Rl()?"".concat(Rl(),"Transform"):"transform"}function Tp(e,t){var r=E0();r&&(e.style[r]=t,r!=="transitionProperty"&&(e.style.transitionProperty=t));}function wu(e,t){var r=Oc();r&&(e.style[r]=t,r!=="transform"&&(e.style.transform=t));}function S2(e){return e.style.transitionProperty||e.style[E0()]}function C2(e){var t=window.getComputedStyle(e,null),r=t.getPropertyValue("transform")||t.getPropertyValue(Oc());if(r&&r!=="none"){var n=r.replace(/[^0-9\-.,]/g,"").split(",");return {x:parseFloat(n[12]||n[4],0),y:parseFloat(n[13]||n[5],0)}}return {x:0,y:0}}var x2=/matrix\((.*)\)/,E2=/matrix3d\((.*)\)/;function $2(e,t){var r=window.getComputedStyle(e,null),n=r.getPropertyValue("transform")||r.getPropertyValue(Oc());if(n&&n!=="none"){var i,o=n.match(x2);if(o)o=o[1],i=o.split(",").map(function(s){return parseFloat(s,10)}),i[4]=t.x,i[5]=t.y,wu(e,"matrix(".concat(i.join(","),")"));else {var a=n.match(E2)[1];i=a.split(",").map(function(s){return parseFloat(s,10)}),i[12]=t.x,i[13]=t.y,wu(e,"matrix3d(".concat(i.join(","),")"));}}else wu(e,"translateX(".concat(t.x,"px) translateY(").concat(t.y,"px) translateZ(0)"));}var _2=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,fs;function Rp(e){var t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t;}function go(e,t,r){var n=r;if(zd(t)==="object"){for(var i in t)t.hasOwnProperty(i)&&go(e,i,t[i]);return}if(typeof n<"u"){typeof n=="number"&&(n="".concat(n,"px")),e.style[t]=n;return}return fs(e,t)}function O2(e){var t,r,n,i=e.ownerDocument,o=i.body,a=i&&i.documentElement;return t=e.getBoundingClientRect(),r=Math.floor(t.left),n=Math.floor(t.top),r-=a.clientLeft||o.clientLeft||0,n-=a.clientTop||o.clientTop||0,{left:r,top:n}}function $0(e,t){var r=e["page".concat(t?"Y":"X","Offset")],n="scroll".concat(t?"Top":"Left");if(typeof r!="number"){var i=e.document;r=i.documentElement[n],typeof r!="number"&&(r=i.body[n]);}return r}function _0(e){return $0(e)}function O0(e){return $0(e,!0)}function Ua(e){var t=O2(e),r=e.ownerDocument,n=r.defaultView||r.parentWindow;return t.left+=_0(n),t.top+=O0(n),t}function Qf(e){return e!=null&&e==e.window}function P0(e){return Qf(e)?e.document:e.nodeType===9?e:e.ownerDocument}function P2(e,t,r){var n=r,i="",o=P0(e);return n=n||o.defaultView.getComputedStyle(e,null),n&&(i=n.getPropertyValue(t)||n[t]),i}var T2=new RegExp("^(".concat(_2,")(?!px)[a-z%]+$"),"i"),R2=/^(top|right|bottom|left)$/,Su="currentStyle",Cu="runtimeStyle",bi="left",M2="px";function N2(e,t){var r=e[Su]&&e[Su][t];if(T2.test(r)&&!R2.test(t)){var n=e.style,i=n[bi],o=e[Cu][bi];e[Cu][bi]=e[Su][bi],n[bi]=t==="fontSize"?"1em":r||0,r=n.pixelLeft+M2,n[bi]=i,e[Cu][bi]=o;}return r===""?"auto":r}typeof window<"u"&&(fs=window.getComputedStyle?P2:N2);function Ds(e,t){return e==="left"?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}function Mp(e){if(e==="left")return "right";if(e==="right")return "left";if(e==="top")return "bottom";if(e==="bottom")return "top"}function Np(e,t,r){go(e,"position")==="static"&&(e.style.position="relative");var n=-999,i=-999,o=Ds("left",r),a=Ds("top",r),s=Mp(o),l=Mp(a);o!=="left"&&(n=999),a!=="top"&&(i=999);var c="",u=Ua(e);("left"in t||"top"in t)&&(c=S2(e)||"",Tp(e,"none")),"left"in t&&(e.style[s]="",e.style[o]="".concat(n,"px")),"top"in t&&(e.style[l]="",e.style[a]="".concat(i,"px")),Rp(e);var d=Ua(e),h={};for(var v in t)if(t.hasOwnProperty(v)){var p=Ds(v,r),m=v==="left"?n:i,g=u[v]-d[v];p===v?h[p]=m+g:h[p]=m-g;}go(e,h),Rp(e),("left"in t||"top"in t)&&Tp(e,c);var b={};for(var w in t)if(t.hasOwnProperty(w)){var S=Ds(w,r),E=t[w]-u[w];w===S?b[S]=h[S]+E:b[S]=h[S]-E;}go(e,b);}function I2(e,t){var r=Ua(e),n=C2(e),i={x:n.x,y:n.y};"left"in t&&(i.x=n.x+t.left-r.left),"top"in t&&(i.y=n.y+t.top-r.top),$2(e,i);}function A2(e,t,r){if(r.ignoreShake){var n=Ua(e),i=n.left.toFixed(0),o=n.top.toFixed(0),a=t.left.toFixed(0),s=t.top.toFixed(0);if(i===a&&o===s)return}r.useCssRight||r.useCssBottom?Np(e,t,r):r.useCssTransform&&Oc()in document.body.style?I2(e,t):Np(e,t,r);}function Jf(e,t){for(var r=0;r<e.length;r++)t(e[r]);}function T0(e){return fs(e,"boxSizing")==="border-box"}var k2=["margin","border","padding"],Hd=-1,L2=2,Wd=1,F2=0;function D2(e,t,r){var n={},i=e.style,o;for(o in t)t.hasOwnProperty(o)&&(n[o]=i[o],i[o]=t[o]);r.call(e);for(o in t)t.hasOwnProperty(o)&&(i[o]=n[o]);}function ha(e,t,r){var n=0,i,o,a;for(o=0;o<t.length;o++)if(i=t[o],i)for(a=0;a<r.length;a++){var s=void 0;i==="border"?s="".concat(i).concat(r[a],"Width"):s=i+r[a],n+=parseFloat(fs(e,s))||0;}return n}var yn={getParent:function(t){var r=t;do r.nodeType===11&&r.host?r=r.host:r=r.parentNode;while(r&&r.nodeType!==1&&r.nodeType!==9);return r}};Jf(["Width","Height"],function(e){yn["doc".concat(e)]=function(t){var r=t.document;return Math.max(r.documentElement["scroll".concat(e)],r.body["scroll".concat(e)],yn["viewport".concat(e)](r))},yn["viewport".concat(e)]=function(t){var r="client".concat(e),n=t.document,i=n.body,o=n.documentElement,a=o[r];return n.compatMode==="CSS1Compat"&&a||i&&i[r]||a};});function Ip(e,t,r){var n=r;if(Qf(e))return t==="width"?yn.viewportWidth(e):yn.viewportHeight(e);if(e.nodeType===9)return t==="width"?yn.docWidth(e):yn.docHeight(e);var i=t==="width"?["Left","Right"]:["Top","Bottom"],o=Math.floor(t==="width"?e.getBoundingClientRect().width:e.getBoundingClientRect().height),a=T0(e),s=0;(o==null||o<=0)&&(o=void 0,s=fs(e,t),(s==null||Number(s)<0)&&(s=e.style[t]||0),s=Math.floor(parseFloat(s))||0),n===void 0&&(n=a?Wd:Hd);var l=o!==void 0||a,c=o||s;return n===Hd?l?c-ha(e,["border","padding"],i):s:l?n===Wd?c:c+(n===L2?-ha(e,["border"],i):ha(e,["margin"],i)):s+ha(e,k2.slice(n),i)}var j2={position:"absolute",visibility:"hidden",display:"block"};function Ap(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,i=t[0];return i.offsetWidth!==0?n=Ip.apply(void 0,t):D2(i,j2,function(){n=Ip.apply(void 0,t);}),n}Jf(["width","height"],function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);yn["outer".concat(t)]=function(n,i){return n&&Ap(n,e,i?F2:Wd)};var r=e==="width"?["Left","Right"]:["Top","Bottom"];yn[e]=function(n,i){var o=i;if(o!==void 0){if(n){var a=T0(n);return a&&(o+=ha(n,["padding","border"],r)),go(n,e,o)}return}return n&&Ap(n,e,Hd)};});function R0(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e}var Ne={getWindow:function(t){if(t&&t.document&&t.setTimeout)return t;var r=t.ownerDocument||t;return r.defaultView||r.parentWindow},getDocument:P0,offset:function(t,r,n){if(typeof r<"u")A2(t,r,n||{});else return Ua(t)},isWindow:Qf,each:Jf,css:go,clone:function(t){var r,n={};for(r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);var i=t.overflow;if(i)for(r in t)t.hasOwnProperty(r)&&(n.overflow[r]=t.overflow[r]);return n},mix:R0,getWindowScrollLeft:function(t){return _0(t)},getWindowScrollTop:function(t){return O0(t)},merge:function(){for(var t={},r=0;r<arguments.length;r++)Ne.mix(t,r<0||arguments.length<=r?void 0:arguments[r]);return t},viewportWidth:0,viewportHeight:0};R0(Ne,yn);var xu=Ne.getParent;function Bd(e){if(Ne.isWindow(e)||e.nodeType===9)return null;var t=Ne.getDocument(e),r=t.body,n,i=Ne.css(e,"position"),o=i==="fixed"||i==="absolute";if(!o)return e.nodeName.toLowerCase()==="html"?null:xu(e);for(n=xu(e);n&&n!==r&&n.nodeType!==9;n=xu(n))if(i=Ne.css(n,"position"),i!=="static")return n;return null}var kp=Ne.getParent;function z2(e){if(Ne.isWindow(e)||e.nodeType===9)return !1;var t=Ne.getDocument(e),r=t.body,n=null;for(n=kp(e);n&&n!==r&&n!==t;n=kp(n)){var i=Ne.css(n,"position");if(i==="fixed")return !0}return !1}function eh(e,t){for(var r={left:0,right:1/0,top:0,bottom:1/0},n=Bd(e),i=Ne.getDocument(e),o=i.defaultView||i.parentWindow,a=i.body,s=i.documentElement;n;){if((navigator.userAgent.indexOf("MSIE")===-1||n.clientWidth!==0)&&n!==a&&n!==s&&Ne.css(n,"overflow")!=="visible"){var l=Ne.offset(n);l.left+=n.clientLeft,l.top+=n.clientTop,r.top=Math.max(r.top,l.top),r.right=Math.min(r.right,l.left+n.clientWidth),r.bottom=Math.min(r.bottom,l.top+n.clientHeight),r.left=Math.max(r.left,l.left);}else if(n===a||n===s)break;n=Bd(n);}var c=null;if(!Ne.isWindow(e)&&e.nodeType!==9){c=e.style.position;var u=Ne.css(e,"position");u==="absolute"&&(e.style.position="fixed");}var d=Ne.getWindowScrollLeft(o),h=Ne.getWindowScrollTop(o),v=Ne.viewportWidth(o),p=Ne.viewportHeight(o),m=s.scrollWidth,g=s.scrollHeight,b=window.getComputedStyle(a);if(b.overflowX==="hidden"&&(m=o.innerWidth),b.overflowY==="hidden"&&(g=o.innerHeight),e.style&&(e.style.position=c),t||z2(e))r.left=Math.max(r.left,d),r.top=Math.max(r.top,h),r.right=Math.min(r.right,d+v),r.bottom=Math.min(r.bottom,h+p);else {var w=Math.max(m,d+v);r.right=Math.min(r.right,w);var S=Math.max(g,h+p);r.bottom=Math.min(r.bottom,S);}return r.top>=0&&r.left>=0&&r.bottom>r.top&&r.right>r.left?r:null}function H2(e,t,r,n){var i=Ne.clone(e),o={width:t.width,height:t.height};return n.adjustX&&i.left<r.left&&(i.left=r.left),n.resizeWidth&&i.left>=r.left&&i.left+o.width>r.right&&(o.width-=i.left+o.width-r.right),n.adjustX&&i.left+o.width>r.right&&(i.left=Math.max(r.right-o.width,r.left)),n.adjustY&&i.top<r.top&&(i.top=r.top),n.resizeHeight&&i.top>=r.top&&i.top+o.height>r.bottom&&(o.height-=i.top+o.height-r.bottom),n.adjustY&&i.top+o.height>r.bottom&&(i.top=Math.max(r.bottom-o.height,r.top)),Ne.mix(i,o)}function th(e){var t,r,n;if(!Ne.isWindow(e)&&e.nodeType!==9)t=Ne.offset(e),r=Ne.outerWidth(e),n=Ne.outerHeight(e);else {var i=Ne.getWindow(e);t={left:Ne.getWindowScrollLeft(i),top:Ne.getWindowScrollTop(i)},r=Ne.viewportWidth(i),n=Ne.viewportHeight(i);}return t.width=r,t.height=n,t}function Lp(e,t){var r=t.charAt(0),n=t.charAt(1),i=e.width,o=e.height,a=e.left,s=e.top;return r==="c"?s+=o/2:r==="b"&&(s+=o),n==="c"?a+=i/2:n==="r"&&(a+=i),{left:a,top:s}}function js(e,t,r,n,i){var o=Lp(t,r[1]),a=Lp(e,r[0]),s=[a.left-o.left,a.top-o.top];return {left:Math.round(e.left-s[0]+n[0]-i[0]),top:Math.round(e.top-s[1]+n[1]-i[1])}}function Fp(e,t,r){return e.left<r.left||e.left+t.width>r.right}function Dp(e,t,r){return e.top<r.top||e.top+t.height>r.bottom}function W2(e,t,r){return e.left>r.right||e.left+t.width<r.left}function B2(e,t,r){return e.top>r.bottom||e.top+t.height<r.top}function zs(e,t,r){var n=[];return Ne.each(e,function(i){n.push(i.replace(t,function(o){return r[o]}));}),n}function Hs(e,t){return e[t]=-e[t],e}function jp(e,t){var r;return /%$/.test(e)?r=parseInt(e.substring(0,e.length-1),10)/100*t:r=parseInt(e,10),r||0}function zp(e,t){e[0]=jp(e[0],t.width),e[1]=jp(e[1],t.height);}function M0(e,t,r,n){var i=r.points,o=r.offset||[0,0],a=r.targetOffset||[0,0],s=r.overflow,l=r.source||e;o=[].concat(o),a=[].concat(a),s=s||{};var c={},u=0,d=!!(s&&s.alwaysByViewport),h=eh(l,d),v=th(l);zp(o,v),zp(a,t);var p=js(v,t,i,o,a),m=Ne.merge(v,p);if(h&&(s.adjustX||s.adjustY)&&n){if(s.adjustX&&Fp(p,v,h)){var g=zs(i,/[lr]/gi,{l:"r",r:"l"}),b=Hs(o,0),w=Hs(a,0),S=js(v,t,g,b,w);W2(S,v,h)||(u=1,i=g,o=b,a=w);}if(s.adjustY&&Dp(p,v,h)){var E=zs(i,/[tb]/gi,{t:"b",b:"t"}),x=Hs(o,1),y=Hs(a,1),C=js(v,t,E,x,y);B2(C,v,h)||(u=1,i=E,o=x,a=y);}u&&(p=js(v,t,i,o,a),Ne.mix(m,p));var R=Fp(p,v,h),M=Dp(p,v,h);if(R||M){var O=i;R&&(O=zs(i,/[lr]/gi,{l:"r",r:"l"})),M&&(O=zs(i,/[tb]/gi,{t:"b",b:"t"})),i=O,o=r.offset||[0,0],a=r.targetOffset||[0,0];}c.adjustX=s.adjustX&&R,c.adjustY=s.adjustY&&M,(c.adjustX||c.adjustY)&&(m=H2(p,v,h,c));}return m.width!==v.width&&Ne.css(l,"width",Ne.width(l)+m.width-v.width),m.height!==v.height&&Ne.css(l,"height",Ne.height(l)+m.height-v.height),Ne.offset(l,{left:m.left,top:m.top},{useCssRight:r.useCssRight,useCssBottom:r.useCssBottom,useCssTransform:r.useCssTransform,ignoreShake:r.ignoreShake}),{points:i,offset:o,targetOffset:a,overflow:c}}function V2(e,t){var r=eh(e,t),n=th(e);return !r||n.left+n.width<=r.left||n.top+n.height<=r.top||n.left>=r.right||n.top>=r.bottom}function rh(e,t,r){var n=r.target||t,i=th(n),o=!V2(n,r.overflow&&r.overflow.alwaysByViewport);return M0(e,i,r,o)}rh.__getOffsetParent=Bd;rh.__getVisibleRectForElement=eh;function U2(e,t,r){var n,i,o=Ne.getDocument(e),a=o.defaultView||o.parentWindow,s=Ne.getWindowScrollLeft(a),l=Ne.getWindowScrollTop(a),c=Ne.viewportWidth(a),u=Ne.viewportHeight(a);"pageX"in t?n=t.pageX:n=s+t.clientX,"pageY"in t?i=t.pageY:i=l+t.clientY;var d={left:n,top:i,width:0,height:0},h=n>=0&&n<=s+c&&i>=0&&i<=l+u,v=[r.points[0],"cc"];return M0(e,d,Pp(Pp({},r),{},{points:v}),h)}const G2=function(e,t){var r=f.useRef(!1),n=f.useRef(null);function i(){window.clearTimeout(n.current);}function o(a){if(i(),!r.current||a===!0){if(e(a)===!1)return;r.current=!0,n.current=window.setTimeout(function(){r.current=!1;},t);}else n.current=window.setTimeout(function(){r.current=!1,o();},t);}return [o,function(){r.current=!1,i();}]};function K2(e,t){return e===t?!0:!e||!t?!1:"pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t?e.clientX===t.clientX&&e.clientY===t.clientY:!1}function q2(e,t){e!==document.activeElement&&ya(t,e)&&typeof e.focus=="function"&&e.focus();}function Hp(e,t){var r=null,n=null;function i(a){var s=W(a,1),l=s[0].target;if(document.documentElement.contains(l)){var c=l.getBoundingClientRect(),u=c.width,d=c.height,h=Math.floor(u),v=Math.floor(d);(r!==h||n!==v)&&Promise.resolve().then(function(){t({width:h,height:v});}),r=h,n=v;}}var o=new Dg(i);return e&&o.observe(e),function(){o.disconnect();}}function Wp(e){return typeof e!="function"?null:e()}function Bp(e){return ot(e)!=="object"||!e?null:e}var X2=function(t,r){var n=t.children,i=t.disabled,o=t.target,a=t.align,s=t.onAlign,l=t.monitorWindowResize,c=t.monitorBufferTime,u=c===void 0?0:c,d=f.useRef({}),h=f.useRef(),v=f.Children.only(n),p=f.useRef({});p.current.disabled=i,p.current.target=o,p.current.align=a,p.current.onAlign=s;var m=G2(function(){var N=p.current,_=N.disabled,$=N.target,P=N.align,T=N.onAlign,A=h.current;if(!_&&$&&A){var I,L=Wp($),j=Bp($);d.current.element=L,d.current.point=j,d.current.align=P;var B=document,G=B.activeElement;return L&&Cc(L)?I=rh(A,L,P):j&&(I=U2(A,j,P)),q2(G,A),T&&I&&T(A,I),!0}return !1},u),g=W(m,2),b=g[0],w=g[1],S=f.useState(),E=W(S,2),x=E[0],y=E[1],C=f.useState(),R=W(C,2),M=R[0],O=R[1];return Gt(function(){y(Wp(o)),O(Bp(o));}),f.useEffect(function(){(d.current.element!==x||!K2(d.current.point,M)||!is(d.current.align,a))&&b();}),f.useEffect(function(){var N=Hp(h.current,b);return N},[h.current]),f.useEffect(function(){var N=Hp(x,b);return N},[x]),f.useEffect(function(){i?w():b();},[i]),f.useEffect(function(){if(l){var N=fa(window,"resize",b);return N.remove}},[l]),f.useEffect(function(){return function(){w();}},[]),f.useImperativeHandle(r,function(){return {forceAlign:function(){return b(!0)}}}),f.isValidElement(v)&&(v=f.cloneElement(v,{ref:Kr(v.ref,h)})),v},N0=f.forwardRef(X2);N0.displayName="Align";var Vp=["measure","alignPre","align",null,"motion"];const Y2=function(e,t){var r=Mi(null),n=W(r,2),i=n[0],o=n[1],a=f.useRef();function s(u){o(u,!0);}function l(){It.cancel(a.current);}function c(u){l(),a.current=It(function(){s(function(d){switch(i){case"align":return "motion";case"motion":return "stable"}return d}),u==null||u();});}return f.useEffect(function(){s("measure");},[e]),f.useEffect(function(){switch(i){case"measure":t();break}i&&(a.current=It(Di(pr().mark(function u(){var d,h;return pr().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:d=Vp.indexOf(i),h=Vp[d+1],h&&d!==-1&&s(h);case 3:case"end":return p.stop()}},u)}))));},[i]),f.useEffect(function(){return function(){l();}},[]),[i,c]},Z2=function(e){var t=f__namespace.useState({width:0,height:0}),r=W(t,2),n=r[0],i=r[1];function o(s){var l=s.offsetWidth,c=s.offsetHeight,u=s.getBoundingClientRect(),d=u.width,h=u.height;Math.abs(l-d)<1&&Math.abs(c-h)<1&&(l=d,c=h),i({width:l,height:c});}var a=f__namespace.useMemo(function(){var s={};if(e){var l=n.width,c=n.height;e.indexOf("height")!==-1&&c?s.height=c:e.indexOf("minHeight")!==-1&&c&&(s.minHeight=c),e.indexOf("width")!==-1&&l?s.width=l:e.indexOf("minWidth")!==-1&&l&&(s.minWidth=l);}return s},[e,n]);return [a,o]};var I0=f__namespace.forwardRef(function(e,t){var r=e.visible,n=e.prefixCls,i=e.className,o=e.style,a=e.children,s=e.zIndex,l=e.stretch,c=e.destroyPopupOnHide,u=e.forceRender,d=e.align,h=e.point,v=e.getRootDomNode,p=e.getClassNameFromAlign,m=e.onAlign,g=e.onMouseEnter,b=e.onMouseLeave,w=e.onMouseDown,S=e.onTouchStart,E=e.onClick,x=f.useRef(),y=f.useRef(),C=f.useState(),R=W(C,2),M=R[0],O=R[1],N=Z2(l),_=W(N,2),$=_[0],P=_[1];function T(){l&&P(v());}var A=Y2(r,T),I=W(A,2),L=I[0],j=I[1],B=f.useState(0),G=W(B,2),z=G[0],V=G[1],q=f.useRef();Gt(function(){L==="alignPre"&&V(0);},[L]);function U(){return h||v}function Q(){var J;(J=x.current)===null||J===void 0||J.forceAlign();}function ie(J,oe){var se=p(oe);M!==se&&O(se),V(function(re){return re+1}),L==="align"&&(m==null||m(J,oe));}Gt(function(){L==="align"&&(z<3?Q():j(function(){var J;(J=q.current)===null||J===void 0||J.call(q);}));},[z]);var Z=D({},x0(e));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(J){var oe=Z[J];Z[J]=function(se,re){return j(),oe==null?void 0:oe(se,re)};});function te(){return new Promise(function(J){q.current=J;})}f__namespace.useEffect(function(){!Z.motionName&&L==="motion"&&j();},[Z.motionName,L]),f__namespace.useImperativeHandle(t,function(){return {forceAlign:Q,getElement:function(){return y.current}}});var ae=D(D({},$),{},{zIndex:s,opacity:L==="motion"||L==="stable"||!r?void 0:0,pointerEvents:!r&&L!=="stable"?"none":void 0},o),ue=!0;d!=null&&d.points&&(L==="align"||L==="stable")&&(ue=!1);var $e=a;return f__namespace.Children.count(a)>1&&($e=f__namespace.createElement("div",{className:"".concat(n,"-content")},a)),f__namespace.createElement(Rn,Ce({visible:r,ref:y,leavedClassName:"".concat(n,"-hidden")},Z,{onAppearPrepare:te,onEnterPrepare:te,removeOnLeave:c,forceRender:u}),function(J,oe){var se=J.className,re=J.style,xe=K(n,i,M,se);return f__namespace.createElement(N0,{target:U(),key:"popup",ref:x,monitorWindowResize:!0,disabled:ue,align:d,onAlign:ie},f__namespace.createElement("div",{ref:oe,className:xe,onMouseEnter:g,onMouseLeave:b,onMouseDownCapture:w,onTouchStartCapture:S,onClick:E,style:D(D({},re),ae)},$e))})});I0.displayName="PopupInner";var A0=f__namespace.forwardRef(function(e,t){var r=e.prefixCls,n=e.visible,i=e.zIndex,o=e.children,a=e.mobile;a=a===void 0?{}:a;var s=a.popupClassName,l=a.popupStyle,c=a.popupMotion,u=c===void 0?{}:c,d=a.popupRender,h=e.onClick,v=f__namespace.useRef();f__namespace.useImperativeHandle(t,function(){return {forceAlign:function(){},getElement:function(){return v.current}}});var p=D({zIndex:i},l),m=o;return f__namespace.Children.count(o)>1&&(m=f__namespace.createElement("div",{className:"".concat(r,"-content")},o)),d&&(m=d(m)),f__namespace.createElement(Rn,Ce({visible:n,ref:v,removeOnLeave:!0},u),function(g,b){var w=g.className,S=g.style,E=K(r,s,w);return f__namespace.createElement("div",{ref:b,className:E,onClick:h,style:D(D({},S),p)},m)})});A0.displayName="MobilePopupInner";var Q2=["visible","mobile"],k0=f__namespace.forwardRef(function(e,t){var r=e.visible,n=e.mobile,i=Xe(e,Q2),o=f.useState(r),a=W(o,2),s=a[0],l=a[1],c=f.useState(!1),u=W(c,2),d=u[0],h=u[1],v=D(D({},i),{},{visible:s});f.useEffect(function(){l(r),r&&n&&h(Ec());},[r,n]);var p=d?f__namespace.createElement(A0,Ce({},v,{mobile:n,ref:t})):f__namespace.createElement(I0,Ce({},v,{ref:t}));return f__namespace.createElement("div",null,f__namespace.createElement(b2,v),p)});k0.displayName="Popup";var Up=f__namespace.createContext(null);function Eu(){}function J2(){return ""}function eI(e){return e?e.ownerDocument:window.document}var tI=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function rI(e){var t=function(r){Fo(i,r);var n=Do(i);function i(o){var a;Er(this,i),a=n.call(this,o),H(ze(a),"popupRef",f__namespace.createRef()),H(ze(a),"triggerRef",f__namespace.createRef()),H(ze(a),"portalContainer",void 0),H(ze(a),"attachId",void 0),H(ze(a),"clickOutsideHandler",void 0),H(ze(a),"touchOutsideHandler",void 0),H(ze(a),"contextMenuOutsideHandler1",void 0),H(ze(a),"contextMenuOutsideHandler2",void 0),H(ze(a),"mouseDownTimeout",void 0),H(ze(a),"focusTime",void 0),H(ze(a),"preClickTime",void 0),H(ze(a),"preTouchTime",void 0),H(ze(a),"delayTimer",void 0),H(ze(a),"hasPopupMouseDown",void 0),H(ze(a),"onMouseEnter",function(l){var c=a.props.mouseEnterDelay;a.fireEvents("onMouseEnter",l),a.delaySetPopupVisible(!0,c,c?null:l);}),H(ze(a),"onMouseMove",function(l){a.fireEvents("onMouseMove",l),a.setPoint(l);}),H(ze(a),"onMouseLeave",function(l){a.fireEvents("onMouseLeave",l),a.delaySetPopupVisible(!1,a.props.mouseLeaveDelay);}),H(ze(a),"onPopupMouseEnter",function(){a.clearDelayTimer();}),H(ze(a),"onPopupMouseLeave",function(l){var c;l.relatedTarget&&!l.relatedTarget.setTimeout&&ya((c=a.popupRef.current)===null||c===void 0?void 0:c.getElement(),l.relatedTarget)||a.delaySetPopupVisible(!1,a.props.mouseLeaveDelay);}),H(ze(a),"onFocus",function(l){a.fireEvents("onFocus",l),a.clearDelayTimer(),a.isFocusToShow()&&(a.focusTime=Date.now(),a.delaySetPopupVisible(!0,a.props.focusDelay));}),H(ze(a),"onMouseDown",function(l){a.fireEvents("onMouseDown",l),a.preClickTime=Date.now();}),H(ze(a),"onTouchStart",function(l){a.fireEvents("onTouchStart",l),a.preTouchTime=Date.now();}),H(ze(a),"onBlur",function(l){a.fireEvents("onBlur",l),a.clearDelayTimer(),a.isBlurToHide()&&a.delaySetPopupVisible(!1,a.props.blurDelay);}),H(ze(a),"onContextMenu",function(l){l.preventDefault(),a.fireEvents("onContextMenu",l),a.setPopupVisible(!0,l);}),H(ze(a),"onContextMenuClose",function(){a.isContextMenuToShow()&&a.close();}),H(ze(a),"onClick",function(l){if(a.fireEvents("onClick",l),a.focusTime){var c;if(a.preClickTime&&a.preTouchTime?c=Math.min(a.preClickTime,a.preTouchTime):a.preClickTime?c=a.preClickTime:a.preTouchTime&&(c=a.preTouchTime),Math.abs(c-a.focusTime)<20)return;a.focusTime=0;}a.preClickTime=0,a.preTouchTime=0,a.isClickToShow()&&(a.isClickToHide()||a.isBlurToHide())&&l&&l.preventDefault&&l.preventDefault();var u=!a.state.popupVisible;(a.isClickToHide()&&!u||u&&a.isClickToShow())&&a.setPopupVisible(!a.state.popupVisible,l);}),H(ze(a),"onPopupMouseDown",function(){if(a.hasPopupMouseDown=!0,clearTimeout(a.mouseDownTimeout),a.mouseDownTimeout=window.setTimeout(function(){a.hasPopupMouseDown=!1;},0),a.context){var l;(l=a.context).onPopupMouseDown.apply(l,arguments);}}),H(ze(a),"onDocumentClick",function(l){if(!(a.props.mask&&!a.props.maskClosable)){var c=l.target,u=a.getRootDomNode(),d=a.getPopupDomNode();(!ya(u,c)||a.isContextMenuOnly())&&!ya(d,c)&&!a.hasPopupMouseDown&&a.close();}}),H(ze(a),"getRootDomNode",function(){var l=a.props.getTriggerDOMNode;if(l)return l(a.triggerRef.current);try{var c=bl(a.triggerRef.current);if(c)return c}catch{}return $o.findDOMNode(ze(a))}),H(ze(a),"getPopupClassNameFromAlign",function(l){var c=[],u=a.props,d=u.popupPlacement,h=u.builtinPlacements,v=u.prefixCls,p=u.alignPoint,m=u.getPopupClassNameFromAlign;return d&&h&&c.push(g2(h,v,l,p)),m&&c.push(m(l)),c.join(" ")}),H(ze(a),"getComponent",function(){var l=a.props,c=l.prefixCls,u=l.destroyPopupOnHide,d=l.popupClassName,h=l.onPopupAlign,v=l.popupMotion,p=l.popupAnimation,m=l.popupTransitionName,g=l.popupStyle,b=l.mask,w=l.maskAnimation,S=l.maskTransitionName,E=l.maskMotion,x=l.zIndex,y=l.popup,C=l.stretch,R=l.alignPoint,M=l.mobile,O=l.forceRender,N=l.onPopupClick,_=a.state,$=_.popupVisible,P=_.point,T=a.getPopupAlign(),A={};return a.isMouseEnterToShow()&&(A.onMouseEnter=a.onPopupMouseEnter),a.isMouseLeaveToHide()&&(A.onMouseLeave=a.onPopupMouseLeave),A.onMouseDown=a.onPopupMouseDown,A.onTouchStart=a.onPopupMouseDown,f__namespace.createElement(k0,Ce({prefixCls:c,destroyPopupOnHide:u,visible:$,point:R&&P,className:d,align:T,onAlign:h,animation:p,getClassNameFromAlign:a.getPopupClassNameFromAlign},A,{stretch:C,getRootDomNode:a.getRootDomNode,style:g,mask:b,zIndex:x,transitionName:m,maskAnimation:w,maskTransitionName:S,maskMotion:E,ref:a.popupRef,motion:v,mobile:M,forceRender:O,onClick:N}),typeof y=="function"?y():y)}),H(ze(a),"attachParent",function(l){It.cancel(a.attachId);var c=a.props,u=c.getPopupContainer,d=c.getDocument,h=a.getRootDomNode(),v;u?(h||u.length===0)&&(v=u(h)):v=d(a.getRootDomNode()).body,v?v.appendChild(l):a.attachId=It(function(){a.attachParent(l);});}),H(ze(a),"getContainer",function(){if(!a.portalContainer){var l=a.props.getDocument,c=l(a.getRootDomNode()).createElement("div");c.style.position="absolute",c.style.top="0",c.style.left="0",c.style.width="100%",a.portalContainer=c;}return a.attachParent(a.portalContainer),a.portalContainer}),H(ze(a),"setPoint",function(l){var c=a.props.alignPoint;!c||!l||a.setState({point:{pageX:l.pageX,pageY:l.pageY}});}),H(ze(a),"handlePortalUpdate",function(){a.state.prevPopupVisible!==a.state.popupVisible&&a.props.afterPopupVisibleChange(a.state.popupVisible);}),H(ze(a),"triggerContextValue",{onPopupMouseDown:a.onPopupMouseDown});var s;return "popupVisible"in o?s=!!o.popupVisible:s=!!o.defaultPopupVisible,a.state={prevPopupVisible:s,popupVisible:s},tI.forEach(function(l){a["fire".concat(l)]=function(c){a.fireEvents(l,c);};}),a}return $r(i,[{key:"componentDidMount",value:function(){this.componentDidUpdate();}},{key:"componentDidUpdate",value:function(){var a=this.props,s=this.state;if(s.popupVisible){var l;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(l=a.getDocument(this.getRootDomNode()),this.clickOutsideHandler=fa(l,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(l=l||a.getDocument(this.getRootDomNode()),this.touchOutsideHandler=fa(l,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(l=l||a.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=fa(l,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=fa(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler();}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),It.cancel(this.attachId);}},{key:"getPopupDomNode",value:function(){var a;return ((a=this.popupRef.current)===null||a===void 0?void 0:a.getElement())||null}},{key:"getPopupAlign",value:function(){var a=this.props,s=a.popupPlacement,l=a.popupAlign,c=a.builtinPlacements;return s&&c?m2(c,s,l):l}},{key:"setPopupVisible",value:function(a,s){var l=this.props.alignPoint,c=this.state.popupVisible;this.clearDelayTimer(),c!==a&&("popupVisible"in this.props||this.setState({popupVisible:a,prevPopupVisible:c}),this.props.onPopupVisibleChange(a)),l&&s&&a&&this.setPoint(s);}},{key:"delaySetPopupVisible",value:function(a,s,l){var c=this,u=s*1e3;if(this.clearDelayTimer(),u){var d=l?{pageX:l.pageX,pageY:l.pageY}:null;this.delayTimer=window.setTimeout(function(){c.setPopupVisible(a,d),c.clearDelayTimer();},u);}else this.setPopupVisible(a,l);}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null);}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null);}},{key:"createTwoChains",value:function(a){var s=this.props.children.props,l=this.props;return s[a]&&l[a]?this["fire".concat(a)]:s[a]||l[a]}},{key:"isClickToShow",value:function(){var a=this.props,s=a.action,l=a.showAction;return s.indexOf("click")!==-1||l.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var a=this.props.action;return a==="contextMenu"||a.length===1&&a[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var a=this.props,s=a.action,l=a.showAction;return s.indexOf("contextMenu")!==-1||l.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var a=this.props,s=a.action,l=a.hideAction;return s.indexOf("click")!==-1||l.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var a=this.props,s=a.action,l=a.showAction;return s.indexOf("hover")!==-1||l.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var a=this.props,s=a.action,l=a.hideAction;return s.indexOf("hover")!==-1||l.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var a=this.props,s=a.action,l=a.showAction;return s.indexOf("focus")!==-1||l.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var a=this.props,s=a.action,l=a.hideAction;return s.indexOf("focus")!==-1||l.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var a;(a=this.popupRef.current)===null||a===void 0||a.forceAlign();}}},{key:"fireEvents",value:function(a,s){var l=this.props.children.props[a];l&&l(s);var c=this.props[a];c&&c(s);}},{key:"close",value:function(){this.setPopupVisible(!1);}},{key:"render",value:function(){var a=this.state.popupVisible,s=this.props,l=s.children,c=s.forceRender,u=s.alignPoint,d=s.className,h=s.autoDestroy,v=f__namespace.Children.only(l),p={key:"trigger"};this.isContextMenuToShow()?p.onContextMenu=this.onContextMenu:p.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(p.onClick=this.onClick,p.onMouseDown=this.onMouseDown,p.onTouchStart=this.onTouchStart):(p.onClick=this.createTwoChains("onClick"),p.onMouseDown=this.createTwoChains("onMouseDown"),p.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(p.onMouseEnter=this.onMouseEnter,u&&(p.onMouseMove=this.onMouseMove)):p.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?p.onMouseLeave=this.onMouseLeave:p.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(p.onFocus=this.onFocus,p.onBlur=this.onBlur):(p.onFocus=this.createTwoChains("onFocus"),p.onBlur=this.createTwoChains("onBlur"));var m=K(v&&v.props&&v.props.className,d);m&&(p.className=m);var g=D({},p);hi(v)&&(g.ref=Kr(this.triggerRef,v.ref));var b=f__namespace.cloneElement(v,g),w;return (a||this.popupRef.current||c)&&(w=f__namespace.createElement(e,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!a&&h&&(w=null),f__namespace.createElement(Up.Provider,{value:this.triggerContextValue},b,w)}}],[{key:"getDerivedStateFromProps",value:function(a,s){var l=a.popupVisible,c={};return l!==void 0&&s.popupVisible!==l&&(c.popupVisible=l,c.prevPopupVisible=s.popupVisible),c}}]),i}(f__namespace.Component);return H(t,"contextType",Up),H(t,"defaultProps",{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:J2,getDocument:eI,onPopupVisibleChange:Eu,afterPopupVisibleChange:Eu,onPopupAlign:Eu,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1}),t}const nI=rI(v2);var ci={adjustX:1,adjustY:1},iI={topLeft:{points:["bl","tl"],overflow:ci,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ci,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:ci,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:ci,offset:[4,0]}},oI={topLeft:{points:["bl","tl"],overflow:ci,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ci,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:ci,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:ci,offset:[4,0]}};function L0(e,t,r){if(t)return t;if(r)return r[e]||r.other}var aI={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function sI(e){var t=e.prefixCls,r=e.visible,n=e.children,i=e.popup,o=e.popupClassName,a=e.popupOffset,s=e.disabled,l=e.mode,c=e.onVisibleChange,u=f__namespace.useContext(ln),d=u.getPopupContainer,h=u.rtl,v=u.subMenuOpenDelay,p=u.subMenuCloseDelay,m=u.builtinPlacements,g=u.triggerSubMenuAction,b=u.forceSubMenuRender,w=u.rootClassName,S=u.motion,E=u.defaultMotions,x=f__namespace.useState(!1),y=W(x,2),C=y[0],R=y[1],M=D(h?D({},oI):D({},iI),m),O=aI[l],N=L0(l,S,E),_=f__namespace.useRef(N);l!=="inline"&&(_.current=N);var $=D(D({},_.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),P=f__namespace.useRef();return f__namespace.useEffect(function(){return P.current=It(function(){R(r);}),function(){It.cancel(P.current);}},[r]),f__namespace.createElement(nI,{prefixCls:t,popupClassName:K("".concat(t,"-popup"),H({},"".concat(t,"-rtl"),h),o,w),stretch:l==="horizontal"?"minWidth":null,getPopupContainer:d,builtinPlacements:M,popupPlacement:O,popupVisible:C,popup:i,popupAlign:a&&{offset:a},action:s?[]:[g],mouseEnterDelay:v,mouseLeaveDelay:p,onPopupVisibleChange:c,forceRender:b,popupMotion:$},n)}function lI(e){var t=e.id,r=e.open,n=e.keyPath,i=e.children,o="inline",a=f__namespace.useContext(ln),s=a.prefixCls,l=a.forceSubMenuRender,c=a.motion,u=a.defaultMotions,d=a.mode,h=f__namespace.useRef(!1);h.current=d===o;var v=f__namespace.useState(!h.current),p=W(v,2),m=p[0],g=p[1],b=h.current?r:!1;f__namespace.useEffect(function(){h.current&&g(!1);},[d]);var w=D({},L0(o,c,u));n.length>1&&(w.motionAppear=!1);var S=w.onVisibleChanged;return w.onVisibleChanged=function(E){return !h.current&&!E&&g(!0),S==null?void 0:S(E)},m?null:f__namespace.createElement(Va,{mode:o,locked:!h.current},f__namespace.createElement(Rn,Ce({visible:b},w,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(E){var x=E.className,y=E.style;return f__namespace.createElement(Yf,{id:t,className:x,style:y},i)}))}var cI=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],uI=["active"],dI=function(t){var r,n=t.style,i=t.className,o=t.title,a=t.eventKey;t.warnKey;var s=t.disabled,l=t.internalPopupClose,c=t.children,u=t.itemIcon,d=t.expandIcon,h=t.popupClassName,v=t.popupOffset,p=t.onClick,m=t.onMouseEnter,g=t.onMouseLeave,b=t.onTitleClick,w=t.onTitleMouseEnter,S=t.onTitleMouseLeave,E=Xe(t,cI),x=v0(a),y=f__namespace.useContext(ln),C=y.prefixCls,R=y.mode,M=y.openKeys,O=y.disabled,N=y.overflowDisabled,_=y.activeKey,$=y.selectedKeys,P=y.itemIcon,T=y.expandIcon,A=y.onItemClick,I=y.onOpenChange,L=y.onActive,j=f__namespace.useContext(qf),B=j._internalRenderSubMenuItem,G=f__namespace.useContext(g0),z=G.isSubPathKey,V=ds(),q="".concat(C,"-submenu"),U=O||s,Q=f__namespace.useRef(),ie=f__namespace.useRef(),Z=u||P,te=d||T,ae=M.includes(a),ue=!N&&ae,$e=z($,a),J=w0(a,U,w,S),oe=J.active,se=Xe(J,uI),re=f__namespace.useState(!1),xe=W(re,2),de=xe[0],ge=xe[1],ve=function(Ze){U||ge(Ze);},Ee=function(Ze){ve(!0),m==null||m({key:a,domEvent:Ze});},Ye=function(Ze){ve(!1),g==null||g({key:a,domEvent:Ze});},ft=f__namespace.useMemo(function(){return oe||(R!=="inline"?de||z([_],a):!1)},[R,oe,_,de,a,z]),Et=S0(V.length),tt=function(Ze){U||(b==null||b({key:a,domEvent:Ze}),R==="inline"&&I(a,!ae));},ke=so(function(Ke){p==null||p(Tl(Ke)),A(Ke);}),Fe=function(Ze){R!=="inline"&&I(a,Ze);},Pe=function(){L(a);},De=x&&"".concat(x,"-popup"),Te=f__namespace.createElement("div",Ce({role:"menuitem",style:Et,className:"".concat(q,"-title"),tabIndex:U?null:-1,ref:Q,title:typeof o=="string"?o:null,"data-menu-id":N&&x?null:x,"aria-expanded":ue,"aria-haspopup":!0,"aria-controls":De,"aria-disabled":U,onClick:tt,onFocus:Pe},se),o,f__namespace.createElement(C0,{icon:R!=="horizontal"?te:null,props:D(D({},t),{},{isOpen:ue,isSubMenu:!0})},f__namespace.createElement("i",{className:"".concat(q,"-arrow")}))),He=f__namespace.useRef(R);if(R!=="inline"&&V.length>1?He.current="vertical":He.current=R,!N){var rt=He.current;Te=f__namespace.createElement(sI,{mode:rt,prefixCls:q,visible:!l&&ue&&R!=="inline",popupClassName:h,popupOffset:v,popup:f__namespace.createElement(Va,{mode:rt==="horizontal"?"vertical":rt},f__namespace.createElement(Yf,{id:De,ref:ie},c)),disabled:U,onVisibleChange:Fe},Te);}var ht=f__namespace.createElement(Wn.Item,Ce({role:"none"},E,{component:"li",style:n,className:K(q,"".concat(q,"-").concat(R),i,(r={},H(r,"".concat(q,"-open"),ue),H(r,"".concat(q,"-active"),ft),H(r,"".concat(q,"-selected"),$e),H(r,"".concat(q,"-disabled"),U),r)),onMouseEnter:Ee,onMouseLeave:Ye}),Te,!N&&f__namespace.createElement(lI,{id:De,open:ue,keyPath:V},c));return B&&(ht=B(ht,t,{selected:$e,active:ft,open:ue,disabled:U})),f__namespace.createElement(Va,{onItemClick:ke,mode:R==="horizontal"?"vertical":R,itemIcon:Z,expandIcon:te},ht)};function nh(e){var t=e.eventKey,r=e.children,n=ds(t),i=Zf(r,n),o=$c();f__namespace.useEffect(function(){if(o)return o.registerPath(t,n),function(){o.unregisterPath(t,n);}},[n]);var a;return o?a=i:a=f__namespace.createElement(dI,e,i),f__namespace.createElement(m0.Provider,{value:n},a)}var fI=["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"],io=[],hI=f__namespace.forwardRef(function(e,t){var r,n,i=e,o=i.prefixCls,a=o===void 0?"rc-menu":o,s=i.rootClassName,l=i.style,c=i.className,u=i.tabIndex,d=u===void 0?0:u,h=i.items,v=i.children,p=i.direction,m=i.id,g=i.mode,b=g===void 0?"vertical":g,w=i.inlineCollapsed,S=i.disabled,E=i.disabledOverflow,x=i.subMenuOpenDelay,y=x===void 0?.1:x,C=i.subMenuCloseDelay,R=C===void 0?.1:C,M=i.forceSubMenuRender,O=i.defaultOpenKeys,N=i.openKeys,_=i.activeKey,$=i.defaultActiveFirst,P=i.selectable,T=P===void 0?!0:P,A=i.multiple,I=A===void 0?!1:A,L=i.defaultSelectedKeys,j=i.selectedKeys,B=i.onSelect,G=i.onDeselect,z=i.inlineIndent,V=z===void 0?24:z,q=i.motion,U=i.defaultMotions,Q=i.triggerSubMenuAction,ie=Q===void 0?"hover":Q,Z=i.builtinPlacements,te=i.itemIcon,ae=i.expandIcon,ue=i.overflowedIndicator,$e=ue===void 0?"...":ue,J=i.overflowedIndicatorPopupClassName,oe=i.getPopupContainer,se=i.onClick,re=i.onOpenChange,xe=i.onKeyDown;i.openAnimation,i.openTransitionName;var de=i._internalRenderMenuItem,ge=i._internalRenderSubMenuItem,ve=Xe(i,fI),Ee=f__namespace.useMemo(function(){return h2(v,h,io)},[v,h]),Ye=f__namespace.useState(!1),ft=W(Ye,2),Et=ft[0],tt=ft[1],ke=f__namespace.useRef(),Fe=r2(m),Pe=p==="rtl",De=Cn(O,{value:N,postState:function(lt){return lt||io}}),Te=W(De,2),He=Te[0],rt=Te[1],ht=function(lt){var qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Vt(){rt(lt),re==null||re(lt);}qe?$o.flushSync(Vt):Vt();},Ke=f__namespace.useState(He),Ze=W(Ke,2),at=Ze[0],st=Ze[1],St=f__namespace.useRef(!1),fe=f__namespace.useMemo(function(){return (b==="inline"||b==="vertical")&&w?["vertical",w]:[b,!1]},[b,w]),ce=W(fe,2),_e=ce[0],we=ce[1],Ve=_e==="inline",$t=f__namespace.useState(_e),At=W($t,2),kt=At[0],be=At[1],We=f__namespace.useState(we),Ue=W(We,2),_t=Ue[0],Ot=Ue[1];f__namespace.useEffect(function(){be(_e),Ot(we),St.current&&(Ve?rt(at):ht(io));},[_e,we]);var gr=f__namespace.useState(0),fr=W(gr,2),Lt=fr[0],zr=fr[1],tr=Lt>=Ee.length-1||kt!=="horizontal"||E;f__namespace.useEffect(function(){Ve&&st(He);},[He]),f__namespace.useEffect(function(){return St.current=!0,function(){St.current=!1;}},[]);var Ge=e2(),Ie=Ge.registerPath,pe=Ge.unregisterPath,vt=Ge.refreshOverflowKeys,nt=Ge.isSubPathKey,ar=Ge.getKeyPath,Oe=Ge.getKeys,ye=Ge.getSubPathKeys,Be=f__namespace.useMemo(function(){return {registerPath:Ie,unregisterPath:pe}},[Ie,pe]),Rt=f__namespace.useMemo(function(){return {isSubPathKey:nt}},[nt]);f__namespace.useEffect(function(){vt(tr?io:Ee.slice(Lt+1).map(function(Ct){return Ct.key}));},[Lt,tr]);var jt=Cn(_||$&&((r=Ee[0])===null||r===void 0?void 0:r.key),{value:_}),Mt=W(jt,2),Or=Mt[0],qr=Mt[1],Mn=so(function(Ct){qr(Ct);}),vi=so(function(){qr(void 0);});f.useImperativeHandle(t,function(){return {list:ke.current,focus:function(lt){var qe,Vt=Or??((qe=Ee.find(function(pi){return !pi.props.disabled}))===null||qe===void 0?void 0:qe.key);if(Vt){var zt,Qt,hr;(zt=ke.current)===null||zt===void 0||(Qt=zt.querySelector("li[data-menu-id='".concat(Kf(Fe,Vt),"']")))===null||Qt===void 0||(hr=Qt.focus)===null||hr===void 0||hr.call(Qt,lt);}}}});var Zn=Cn(L||[],{value:j,postState:function(lt){return Array.isArray(lt)?lt:lt==null?io:[lt]}}),cn=W(Zn,2),Pr=cn[0],Hi=cn[1],Vo=function(lt){if(T){var qe=lt.key,Vt=Pr.includes(qe),zt;I?Vt?zt=Pr.filter(function(hr){return hr!==qe}):zt=[].concat(le(Pr),[qe]):zt=[qe],Hi(zt);var Qt=D(D({},lt),{},{selectedKeys:zt});Vt?G==null||G(Qt):B==null||B(Qt);}!I&&He.length&&kt!=="inline"&&ht(io);},Wi=so(function(Ct){se==null||se(Tl(Ct)),Vo(Ct);}),Bi=so(function(Ct,lt){var qe=He.filter(function(zt){return zt!==Ct});if(lt)qe.push(Ct);else if(kt!=="inline"){var Vt=ye(Ct);qe=qe.filter(function(zt){return !Vt.has(zt)});}is(He,qe,!0)||ht(qe,!0);}),Vi=so(oe),Uo=function(lt,qe){var Vt=qe??!He.includes(lt);Bi(lt,Vt);},Go=ZN(kt,Or,Pe,Fe,ke,Oe,ar,qr,Uo,xe);f__namespace.useEffect(function(){tt(!0);},[]);var Ko=f__namespace.useMemo(function(){return {_internalRenderMenuItem:de,_internalRenderSubMenuItem:ge}},[de,ge]),Ui=kt!=="horizontal"||E?Ee:Ee.map(function(Ct,lt){return f__namespace.createElement(Va,{key:Ct.key,overflowDisabled:lt>Lt},Ct)}),qo=f__namespace.createElement(Wn,Ce({id:m,ref:ke,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:_c,className:K(a,"".concat(a,"-root"),"".concat(a,"-").concat(kt),c,(n={},H(n,"".concat(a,"-inline-collapsed"),_t),H(n,"".concat(a,"-rtl"),Pe),n),s),dir:p,style:l,role:"menu",tabIndex:d,data:Ui,renderRawItem:function(lt){return lt},renderRawRest:function(lt){var qe=lt.length,Vt=qe?Ee.slice(-qe):null;return f__namespace.createElement(nh,{eventKey:Dd,title:$e,disabled:tr,internalPopupClose:qe===0,popupClassName:J},Vt)},maxCount:kt!=="horizontal"||E?Wn.INVALIDATE:Wn.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(lt){zr(lt);},onKeyDown:Go},ve));return f__namespace.createElement(qf.Provider,{value:Ko},f__namespace.createElement(h0.Provider,{value:Fe},f__namespace.createElement(Va,{prefixCls:a,rootClassName:s,mode:kt,openKeys:He,rtl:Pe,disabled:S,motion:Et?q:null,defaultMotions:Et?U:null,activeKey:Or,onActive:Mn,onInactive:vi,selectedKeys:Pr,inlineIndent:V,subMenuOpenDelay:y,subMenuCloseDelay:R,forceSubMenuRender:M,builtinPlacements:Z,triggerSubMenuAction:ie,getPopupContainer:Vi,itemIcon:te,expandIcon:ae,onItemClick:Wi,onOpenChange:Bi},f__namespace.createElement(g0.Provider,{value:Rt},qo),f__namespace.createElement("div",{style:{display:"none"},"aria-hidden":!0},f__namespace.createElement(p0.Provider,{value:Be},Ee)))))}),vI=["className","title","eventKey","children"],pI=["children"],mI=function(t){var r=t.className,n=t.title;t.eventKey;var i=t.children,o=Xe(t,vI),a=f__namespace.useContext(ln),s=a.prefixCls,l="".concat(s,"-item-group");return f__namespace.createElement("li",Ce({role:"presentation"},o,{onClick:function(u){return u.stopPropagation()},className:K(l,r)}),f__namespace.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof n=="string"?n:void 0},n),f__namespace.createElement("ul",{role:"group",className:"".concat(l,"-list")},i))};function F0(e){var t=e.children,r=Xe(e,pI),n=ds(r.eventKey),i=Zf(t,n),o=$c();return o?i:f__namespace.createElement(mI,fc(r,["warnKey"]),i)}function D0(e){var t=e.className,r=e.style,n=f__namespace.useContext(ln),i=n.prefixCls,o=$c();return o?null:f__namespace.createElement("li",{className:K("".concat(i,"-item-divider"),t),style:r})}var hs=hI;hs.Item=_c;hs.SubMenu=nh;hs.ItemGroup=F0;hs.Divider=D0;var gI={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 bI=gI;var j0=function(t,r){return f__namespace.createElement(Ho,D(D({},t),{},{ref:r,icon:bI}))};j0.displayName="EllipsisOutlined";const yI=f__namespace.forwardRef(j0),wI=()=>{const[e,t]=f__namespace.useState(!1);return f__namespace.useEffect(()=>{t(hM());},[]),e};function SI(e){let{className:t,direction:r,index:n,marginDirection:i,children:o,split:a,wrap:s}=e;const{horizontalSize:l,verticalSize:c,latestIndex:u,supportFlexGap:d}=f__namespace.useContext(z0);let h={};return d||(r==="vertical"?n<u&&(h={marginBottom:l/(a?2:1)}):h=Object.assign(Object.assign({},n<u&&{[i]:l/(a?2:1)}),s&&{paddingBottom:c})),o==null?null:f__namespace.createElement(f__namespace.Fragment,null,f__namespace.createElement("div",{className:t,style:h},o),n<u&&a&&f__namespace.createElement("span",{className:`${t}-split`,style:h},a))}var CI=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const z0=f__namespace.createContext({latestIndex:0,horizontalSize:0,verticalSize:0,supportFlexGap:!1}),xI={small:8,middle:16,large:24};function EI(e){return typeof e=="string"?xI[e]:e||0}const $I=f__namespace.forwardRef((e,t)=>{const{getPrefixCls:r,space:n,direction:i}=f__namespace.useContext(Wt),{size:o=(n==null?void 0:n.size)||"small",align:a,className:s,rootClassName:l,children:c,direction:u="horizontal",prefixCls:d,split:h,style:v,wrap:p=!1}=e,m=CI(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap"]),g=wI(),[b,w]=f__namespace.useMemo(()=>(Array.isArray(o)?o:[o,o]).map(T=>EI(T)),[o]),S=fi(c,{keepEmpty:!0}),E=a===void 0&&u==="horizontal"?"center":a,x=r("space",d),[y,C]=Bb(x),R=K(x,C,`${x}-${u}`,{[`${x}-rtl`]:i==="rtl",[`${x}-align-${E}`]:E},s,l),M=`${x}-item`,O=i==="rtl"?"marginLeft":"marginRight";let N=0;const _=S.map((T,A)=>{T!=null&&(N=A);const I=T&&T.key||`${M}-${A}`;return f__namespace.createElement(SI,{className:M,key:I,direction:u,index:A,marginDirection:O,split:h,wrap:p},T)}),$=f__namespace.useMemo(()=>({horizontalSize:b,verticalSize:w,latestIndex:N,supportFlexGap:g}),[b,w,N,g]);if(S.length===0)return null;const P={};return p&&(P.flexWrap="wrap",g||(P.marginBottom=-w)),g&&(P.columnGap=b,P.rowGap=w),y(f__namespace.createElement("div",Object.assign({ref:t,className:R,style:Object.assign(Object.assign({},P),v)},m),f__namespace.createElement(z0.Provider,{value:$},_)))}),H0=$I;H0.Compact=ER;const ih=H0,W0=f__namespace.createContext(null),_I=W0.Provider,B0=f__namespace.createContext(null),OI=B0.Provider;var PI=["prefixCls","className","style","checked","disabled","defaultChecked","type","onChange"],V0=f.forwardRef(function(e,t){var r,n=e.prefixCls,i=n===void 0?"rc-checkbox":n,o=e.className,a=e.style,s=e.checked,l=e.disabled,c=e.defaultChecked,u=c===void 0?!1:c,d=e.type,h=d===void 0?"checkbox":d,v=e.onChange,p=Xe(e,PI),m=f.useRef(null),g=Cn(u,{value:s}),b=W(g,2),w=b[0],S=b[1];f.useImperativeHandle(t,function(){return {focus:function(){var C;(C=m.current)===null||C===void 0||C.focus();},blur:function(){var C;(C=m.current)===null||C===void 0||C.blur();},input:m.current}});var E=K(i,o,(r={},H(r,"".concat(i,"-checked"),w),H(r,"".concat(i,"-disabled"),l),r)),x=function(C){l||("checked"in e||S(C.target.checked),v==null||v({target:D(D({},e),{},{checked:C.target.checked}),stopPropagation:function(){C.stopPropagation();},preventDefault:function(){C.preventDefault();},nativeEvent:C.nativeEvent}));};return f__namespace.createElement("span",{className:E,style:a},f__namespace.createElement("input",Ce({},p,{className:"".concat(i,"-input"),ref:m,onChange:x,disabled:l,checked:!!w,type:h})),f__namespace.createElement("span",{className:"".concat(i,"-inner")}))});const TI=new Dt("antRadioEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),RI=e=>{const{componentCls:t,antCls:r}=e,n=`${t}-group`;return {[n]:Object.assign(Object.assign({},yr(e)),{display:"inline-block",fontSize:0,[`&${n}-rtl`]:{direction:"rtl"},[`${r}-badge ${r}-badge-count`]:{zIndex:1},[`> ${r}-badge:not(:first-child) > ${r}-button-wrapper`]:{borderInlineStart:"none"}})}},MI=e=>{const{componentCls:t,radioWrapperMarginRight:r,radioCheckedColor:n,radioSize:i,motionDurationSlow:o,motionDurationMid:a,motionEaseInOut:s,motionEaseInOutCirc:l,radioButtonBg:c,colorBorder:u,lineWidth:d,radioDotSize:h,colorBgContainerDisabled:v,colorTextDisabled:p,paddingXS:m,radioDotDisabledColor:g,lineType:b,radioDotDisabledSize:w,wireframe:S,colorWhite:E}=e,x=`${t}-inner`;return {[`${t}-wrapper`]:Object.assign(Object.assign({},yr(e)),{position:"relative",display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:r,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${d}px ${b} ${n}`,borderRadius:"50%",visibility:"hidden",animationName:TI,animationDuration:o,animationTimingFunction:s,animationFillMode:"both",content:'""'},[t]:Object.assign(Object.assign({},yr(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center"}),[`${t}-wrapper:hover &,
        &:hover ${x}`]:{borderColor:n},[`${t}-input:focus-visible + ${x}`]:Object.assign({},gc(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:i,height:i,marginBlockStart:i/-2,marginInlineStart:i/-2,backgroundColor:S?n:E,borderBlockStart:0,borderInlineStart:0,borderRadius:i,transform:"scale(0)",opacity:0,transition:`all ${o} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:i,height:i,backgroundColor:c,borderColor:u,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,insetBlockEnd:0,insetInlineStart:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[x]:{borderColor:n,backgroundColor:S?c:n,"&::after":{transform:`scale(${h/i})`,opacity:1,transition:`all ${o} ${l}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[x]:{backgroundColor:v,borderColor:u,cursor:"not-allowed","&::after":{backgroundColor:g}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:p,cursor:"not-allowed"},[`&${t}-checked`]:{[x]:{"&::after":{transform:`scale(${w/i})`}}}},[`span${t} + *`]:{paddingInlineStart:m,paddingInlineEnd:m}})}},NI=e=>{const{radioButtonColor:t,controlHeight:r,componentCls:n,lineWidth:i,lineType:o,colorBorder:a,motionDurationSlow:s,motionDurationMid:l,radioButtonPaddingHorizontal:c,fontSize:u,radioButtonBg:d,fontSizeLG:h,controlHeightLG:v,controlHeightSM:p,paddingXS:m,borderRadius:g,borderRadiusSM:b,borderRadiusLG:w,radioCheckedColor:S,radioButtonCheckedBg:E,radioButtonHoverColor:x,radioButtonActiveColor:y,radioSolidCheckedColor:C,colorTextDisabled:R,colorBgContainerDisabled:M,radioDisabledButtonCheckedColor:O,radioDisabledButtonCheckedBg:N}=e;return {[`${n}-button-wrapper`]:{position:"relative",display:"inline-block",height:r,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:u,lineHeight:`${r-i*2}px`,background:d,border:`${i}px ${o} ${a}`,borderBlockStartWidth:i+.02,borderInlineStartWidth:0,borderInlineEndWidth:i,cursor:"pointer",transition:[`color ${l}`,`background ${l}`,`border-color ${l}`,`box-shadow ${l}`].join(","),a:{color:t},[`> ${n}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-i,insetInlineStart:-i,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:i,paddingInline:0,backgroundColor:a,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${i}px ${o} ${a}`,borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g},"&:first-child:last-child":{borderRadius:g},[`${n}-group-large &`]:{height:v,fontSize:h,lineHeight:`${v-i*2}px`,"&:first-child":{borderStartStartRadius:w,borderEndStartRadius:w},"&:last-child":{borderStartEndRadius:w,borderEndEndRadius:w}},[`${n}-group-small &`]:{height:p,paddingInline:m-i,paddingBlock:0,lineHeight:`${p-i*2}px`,"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},"&:hover":{position:"relative",color:S},"&:has(:focus-visible)":Object.assign({},gc(e)),[`${n}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${n}-button-wrapper-disabled)`]:{zIndex:1,color:S,background:E,borderColor:S,"&::before":{backgroundColor:S},"&:first-child":{borderColor:S},"&:hover":{color:x,borderColor:x,"&::before":{backgroundColor:x}},"&:active":{color:y,borderColor:y,"&::before":{backgroundColor:y}}},[`${n}-group-solid &-checked:not(${n}-button-wrapper-disabled)`]:{color:C,background:S,borderColor:S,"&:hover":{color:C,background:x,borderColor:x},"&:active":{color:C,background:y,borderColor:y}},"&-disabled":{color:R,backgroundColor:M,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:R,backgroundColor:M,borderColor:a}},[`&-disabled${n}-button-wrapper-checked`]:{color:O,backgroundColor:N,borderColor:a,boxShadow:"none"}}}},U0=Tn("Radio",e=>{const{padding:t,lineWidth:r,controlItemBgActiveDisabled:n,colorTextDisabled:i,colorBgContainer:o,fontSizeLG:a,controlOutline:s,colorPrimaryHover:l,colorPrimaryActive:c,colorText:u,colorPrimary:d,marginXS:h,controlOutlineWidth:v,colorTextLightSolid:p,wireframe:m}=e,g=`0 0 0 ${v}px ${s}`,b=g,w=a,S=4,E=w-S*2,x=m?E:w-(S+r)*2,y=d,C=u,R=l,M=c,O=t-r,$=mr(e,{radioFocusShadow:g,radioButtonFocusShadow:b,radioSize:w,radioDotSize:x,radioDotDisabledSize:E,radioCheckedColor:y,radioDotDisabledColor:i,radioSolidCheckedColor:p,radioButtonBg:o,radioButtonCheckedBg:o,radioButtonColor:C,radioButtonHoverColor:R,radioButtonActiveColor:M,radioButtonPaddingHorizontal:O,radioDisabledButtonCheckedBg:n,radioDisabledButtonCheckedColor:i,radioWrapperMarginRight:h});return [RI($),MI($),NI($)]});var II=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const AI=(e,t)=>{var r,n;const i=f__namespace.useContext(W0),o=f__namespace.useContext(B0),{getPrefixCls:a,direction:s}=f__namespace.useContext(Wt),l=f__namespace.useRef(null),c=Kr(t,l),{isFormItemInput:u}=f__namespace.useContext(Wa),d=M=>{var O,N;(O=e.onChange)===null||O===void 0||O.call(e,M),(N=i==null?void 0:i.onChange)===null||N===void 0||N.call(i,M);},{prefixCls:h,className:v,rootClassName:p,children:m,style:g}=e,b=II(e,["prefixCls","className","rootClassName","children","style"]),w=a("radio",h),S=((i==null?void 0:i.optionType)||o)==="button"?`${w}-button`:w,[E,x]=U0(w),y=Object.assign({},b),C=f__namespace.useContext(ls);i&&(y.name=i.name,y.onChange=d,y.checked=e.value===i.value,y.disabled=(r=y.disabled)!==null&&r!==void 0?r:i.disabled),y.disabled=(n=y.disabled)!==null&&n!==void 0?n:C;const R=K(`${S}-wrapper`,{[`${S}-wrapper-checked`]:y.checked,[`${S}-wrapper-disabled`]:y.disabled,[`${S}-wrapper-rtl`]:s==="rtl",[`${S}-wrapper-in-form-item`]:u},v,p,x);return E(f__namespace.createElement("label",{className:R,style:g,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},f__namespace.createElement(V0,Object.assign({},y,{type:"radio",prefixCls:S,ref:c})),m!==void 0?f__namespace.createElement("span",null,m):null))},kI=f__namespace.forwardRef(AI),Ml=kI,LI=f__namespace.forwardRef((e,t)=>{const{getPrefixCls:r,direction:n}=f__namespace.useContext(Wt),[i,o]=Cn(e.defaultValue,{value:e.value}),a=_=>{const $=i,P=_.target.value;"value"in e||o(P);const{onChange:T}=e;T&&P!==$&&T(_);},{prefixCls:s,className:l,rootClassName:c,options:u,buttonStyle:d="outline",disabled:h,children:v,size:p,style:m,id:g,onMouseEnter:b,onMouseLeave:w,onFocus:S,onBlur:E}=e,x=r("radio",s),y=`${x}-group`,[C,R]=U0(x);let M=v;u&&u.length>0&&(M=u.map(_=>typeof _=="string"||typeof _=="number"?f__namespace.createElement(Ml,{key:_.toString(),prefixCls:x,disabled:h,value:_,checked:i===_},_):f__namespace.createElement(Ml,{key:`radio-group-value-options-${_.value}`,prefixCls:x,disabled:_.disabled||h,value:_.value,checked:i===_.value,style:_.style},_.label)));const O=jo(p),N=K(y,`${y}-${d}`,{[`${y}-${O}`]:O,[`${y}-rtl`]:n==="rtl"},l,c,R);return C(f__namespace.createElement("div",Object.assign({},ZT(e),{className:N,style:m,onMouseEnter:b,onMouseLeave:w,onFocus:S,onBlur:E,id:g,ref:t}),f__namespace.createElement(_I,{value:{onChange:a,value:i,disabled:e.disabled,name:e.name,optionType:e.optionType}},M)))}),FI=f__namespace.memo(LI);var DI=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const jI=(e,t)=>{const{getPrefixCls:r}=f__namespace.useContext(Wt),{prefixCls:n}=e,i=DI(e,["prefixCls"]),o=r("radio",n);return f__namespace.createElement(OI,{value:"button"},f__namespace.createElement(Ml,Object.assign({prefixCls:o},i,{type:"radio",ref:t})))},zI=f__namespace.forwardRef(jI),Pc=Ml;Pc.Button=zI;Pc.Group=FI;Pc.__ANT_RADIO=!0;const $u=Pc,G0=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Tc=e=>({borderColor:e.inputBorderHoverColor,borderInlineEndWidth:e.lineWidth}),Nl=e=>({borderColor:e.inputBorderHoverColor,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),K0=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},Tc(mr(e,{inputBorderHoverColor:e.colorBorder})))}),q0=e=>{const{inputPaddingVerticalLG:t,fontSizeLG:r,lineHeightLG:n,borderRadiusLG:i,inputPaddingHorizontalLG:o}=e;return {padding:`${t}px ${o}px`,fontSize:r,lineHeight:n,borderRadius:i}},X0=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),Y0=(e,t)=>{const{componentCls:r,colorError:n,colorWarning:i,colorErrorOutline:o,colorWarningOutline:a,colorErrorBorderHover:s,colorWarningBorderHover:l}=e;return {[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:n,"&:hover":{borderColor:s},"&:focus, &-focused":Object.assign({},Nl(mr(e,{inputBorderActiveColor:n,inputBorderHoverColor:n,controlOutline:o}))),[`${r}-prefix, ${r}-suffix`]:{color:n}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:i,"&:hover":{borderColor:l},"&:focus, &-focused":Object.assign({},Nl(mr(e,{inputBorderActiveColor:i,inputBorderHoverColor:i,controlOutline:a}))),[`${r}-prefix, ${r}-suffix`]:{color:i}}}},Z0=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.inputPaddingVertical}px ${e.inputPaddingHorizontal}px`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},G0(e.colorTextPlaceholder)),{"&:hover":Object.assign({},Tc(e)),"&:focus, &-focused":Object.assign({},Nl(e)),"&-disabled, &[disabled]":Object.assign({},K0(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({},q0(e)),"&-sm":Object.assign({},X0(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),HI=e=>{const{componentCls:t,antCls:r}=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({},q0(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},X0(e)),[`&-lg ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{["&-addon, &-wrap"]:{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${e.inputPaddingHorizontal}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${r}-select`]:{margin:`-${e.inputPaddingVertical+1}px -${e.inputPaddingHorizontal}px`,[`&${r}-select-single:not(${r}-select-customize-input)`]:{[`${r}-select-selector`]:{backgroundColor:"inherit",border:`${e.lineWidth}px ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${r}-select-selector`]:{color:e.colorPrimary}}},[`${r}-cascader-picker`]:{margin:`-9px -${e.inputPaddingHorizontal}px`,backgroundColor:"transparent",[`${r}-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,[`${r}-select ${r}-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,[`${r}-select ${r}-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"},QP()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`& > ${t}-affix-wrapper`]:{display:"inline-flex"},[`& > ${r}-picker-range`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-e.lineWidth,borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${r}-select > ${r}-select-selector,
      & > ${r}-select-auto-complete ${t},
      & > ${r}-cascader-picker ${t},
      & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${r}-select-focused`]:{zIndex:1},[`& > ${r}-select > ${r}-select-arrow`]:{zIndex:1},[`& > *:first-child,
      & > ${r}-select:first-child > ${r}-select-selector,
      & > ${r}-select-auto-complete:first-child ${t},
      & > ${r}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
      & > ${r}-select:last-child > ${r}-select-selector,
      & > ${r}-cascader-picker:last-child ${t},
      & > ${r}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${r}-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}}}})}};function WI(e){return mr(e,{inputAffixPadding:e.paddingXXS,inputPaddingVertical:Math.max(Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,3),inputPaddingVerticalLG:Math.ceil((e.controlHeightLG-e.fontSizeLG*e.lineHeightLG)/2*10)/10-e.lineWidth,inputPaddingVerticalSM:Math.max(Math.round((e.controlHeightSM-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,0),inputPaddingHorizontal:e.paddingSM-e.lineWidth,inputPaddingHorizontalSM:e.paddingXS-e.lineWidth,inputPaddingHorizontalLG:e.controlPaddingHorizontal-e.lineWidth,inputBorderHoverColor:e.colorPrimaryHover,inputBorderActiveColor:e.colorPrimaryHover})}var BI={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 VI=BI;var Q0=function(t,r){return f__namespace.createElement(Ho,D(D({},t),{},{ref:r,icon:VI}))};Q0.displayName="PlusOutlined";const UI=f__namespace.forwardRef(Q0),Rc=f.createContext(null);var J0=f__namespace.forwardRef(function(e,t){var r=e.prefixCls,n=e.className,i=e.style,o=e.id,a=e.active,s=e.tabKey,l=e.children;return f__namespace.createElement("div",{id:o&&"".concat(o,"-panel-").concat(s),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":o&&"".concat(o,"-tab-").concat(s),"aria-hidden":!a,style:i,className:K(r,a&&"".concat(r,"-active"),n),ref:t},l)}),GI=["key","forceRender","style","className"];function KI(e){var t=e.id,r=e.activeKey,n=e.animated,i=e.tabPosition,o=e.destroyInactiveTabPane,a=f__namespace.useContext(Rc),s=a.prefixCls,l=a.tabs,c=n.tabPane,u="".concat(s,"-tabpane");return f__namespace.createElement("div",{className:K("".concat(s,"-content-holder"))},f__namespace.createElement("div",{className:K("".concat(s,"-content"),"".concat(s,"-content-").concat(i),H({},"".concat(s,"-content-animated"),c))},l.map(function(d){var h=d.key,v=d.forceRender,p=d.style,m=d.className,g=Xe(d,GI),b=h===r;return f__namespace.createElement(Rn,Ce({key:h,visible:b,forceRender:v,removeOnLeave:!!o,leavedClassName:"".concat(u,"-hidden")},n.tabPaneMotion),function(w,S){var E=w.style,x=w.className;return f__namespace.createElement(J0,Ce({},g,{prefixCls:u,id:t,tabKey:h,animated:c,active:b,style:D(D({},p),E),className:K(m,x),ref:S}))})})))}var Gp={width:0,height:0,left:0,top:0};function qI(e,t,r){return f.useMemo(function(){for(var n,i=new Map,o=t.get((n=e[0])===null||n===void 0?void 0:n.key)||Gp,a=o.left+o.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)||Gp;}var d=i.get(l)||D({},c);d.right=a-d.left-d.width,i.set(l,d);}return i},[e.map(function(n){return n.key}).join("_"),t,r])}function Kp(e,t){var r=f__namespace.useRef(e),n=f__namespace.useState({}),i=W(n,2),o=i[1];function a(s){var l=typeof s=="function"?s(r.current):s;l!==r.current&&t(l,r.current),r.current=l,o({});}return [r.current,a]}var XI=.1,qp=.01,Js=20,Xp=Math.pow(.995,Js);function YI(e,t){var r=f.useState(),n=W(r,2),i=n[0],o=n[1],a=f.useState(0),s=W(a,2),l=s[0],c=s[1],u=f.useState(0),d=W(u,2),h=d[0],v=d[1],p=f.useState(),m=W(p,2),g=m[0],b=m[1],w=f.useRef();function S(M){var O=M.touches[0],N=O.screenX,_=O.screenY;o({x:N,y:_}),window.clearInterval(w.current);}function E(M){if(i){M.preventDefault();var O=M.touches[0],N=O.screenX,_=O.screenY;o({x:N,y:_});var $=N-i.x,P=_-i.y;t($,P);var T=Date.now();c(T),v(T-l),b({x:$,y:P});}}function x(){if(i&&(o(null),b(null),g)){var M=g.x/h,O=g.y/h,N=Math.abs(M),_=Math.abs(O);if(Math.max(N,_)<XI)return;var $=M,P=O;w.current=window.setInterval(function(){if(Math.abs($)<qp&&Math.abs(P)<qp){window.clearInterval(w.current);return}$*=Xp,P*=Xp,t($*Js,P*Js);},Js);}}var y=f.useRef();function C(M){var O=M.deltaX,N=M.deltaY,_=0,$=Math.abs(O),P=Math.abs(N);$===P?_=y.current==="x"?O:N:$>P?(_=O,y.current="x"):(_=N,y.current="y"),t(-_,-_)&&M.preventDefault();}var R=f.useRef(null);R.current={onTouchStart:S,onTouchMove:E,onTouchEnd:x,onWheel:C},f__namespace.useEffect(function(){function M($){R.current.onTouchStart($);}function O($){R.current.onTouchMove($);}function N($){R.current.onTouchEnd($);}function _($){R.current.onWheel($);}return document.addEventListener("touchmove",O,{passive:!1}),document.addEventListener("touchend",N,{passive:!1}),e.current.addEventListener("touchstart",M,{passive:!1}),e.current.addEventListener("wheel",_),function(){document.removeEventListener("touchmove",O),document.removeEventListener("touchend",N);}},[]);}function ey(e){var t=f.useState(0),r=W(t,2),n=r[0],i=r[1],o=f.useRef(0),a=f.useRef();return a.current=e,mo(function(){var s;(s=a.current)===null||s===void 0||s.call(a);},[n]),function(){o.current===n&&(o.current+=1,i(o.current));}}function ZI(e){var t=f.useRef([]),r=f.useState({}),n=W(r,2),i=n[1],o=f.useRef(typeof e=="function"?e():e),a=ey(function(){var l=o.current;t.current.forEach(function(c){l=c(l);}),t.current=[],o.current=l,i({});});function s(l){t.current.push(l),a();}return [o.current,s]}var Yp={width:0,height:0,left:0,top:0,right:0};function QI(e,t,r,n,i,o,a){var s=a.tabs,l=a.tabPosition,c=a.rtl,u,d,h;return ["top","bottom"].includes(l)?(u="width",d=c?"right":"left",h=Math.abs(r)):(u="height",d="top",h=-r),f.useMemo(function(){if(!s.length)return [0,0];for(var v=s.length,p=v,m=0;m<v;m+=1){var g=e.get(s[m].key)||Yp;if(g[d]+g[u]>h+t){p=m-1;break}}for(var b=0,w=v-1;w>=0;w-=1){var S=e.get(s[w].key)||Yp;if(S[d]<h){b=w+1;break}}return [b,p]},[e,t,n,i,o,h,l,s.map(function(v){return v.key}).join("_"),c])}function Zp(e){var t;return e instanceof Map?(t={},e.forEach(function(r,n){t[n]=r;})):t=e,JSON.stringify(t)}var JI="TABS_DQ";function ty(e){return String(e).replace(/"/g,JI)}function eA(e,t){var r=e.prefixCls,n=e.editable,i=e.locale,o=e.style;return !n||n.showAdd===!1?null:f__namespace.createElement("button",{ref:t,type:"button",className:"".concat(r,"-nav-add"),style:o,"aria-label":(i==null?void 0:i.addAriaLabel)||"Add tab",onClick:function(s){n.onEdit("add",{event:s});}},n.addIcon||"+")}const ry=f__namespace.forwardRef(eA);var Qp=f__namespace.forwardRef(function(e,t){var r=e.position,n=e.prefixCls,i=e.extra;if(!i)return null;var o,a={};return ot(i)==="object"&&!f__namespace.isValidElement(i)?a=i:a.right=i,r==="right"&&(o=a.right),r==="left"&&(o=a.left),o?f__namespace.createElement("div",{className:"".concat(n,"-extra-content"),ref:t},o):null});function tA(e,t){var r=e.prefixCls,n=e.id,i=e.tabs,o=e.locale,a=e.mobile,s=e.moreIcon,l=s===void 0?"More":s,c=e.moreTransitionName,u=e.style,d=e.className,h=e.editable,v=e.tabBarGutter,p=e.rtl,m=e.removeAriaLabel,g=e.onTabClick,b=e.getPopupContainer,w=e.popupClassName,S=f.useState(!1),E=W(S,2),x=E[0],y=E[1],C=f.useState(null),R=W(C,2),M=R[0],O=R[1],N="".concat(n,"-more-popup"),_="".concat(r,"-dropdown"),$=M!==null?"".concat(N,"-").concat(M):null,P=o==null?void 0:o.dropdownAriaLabel;function T(z,V){z.preventDefault(),z.stopPropagation(),h.onEdit("remove",{key:V,event:z});}var A=f__namespace.createElement(hs,{onClick:function(V){var q=V.key,U=V.domEvent;g(q,U),y(!1);},prefixCls:"".concat(_,"-menu"),id:N,tabIndex:-1,role:"listbox","aria-activedescendant":$,selectedKeys:[M],"aria-label":P!==void 0?P:"expanded dropdown"},i.map(function(z){var V=h&&z.closable!==!1&&!z.disabled;return f__namespace.createElement(_c,{key:z.key,id:"".concat(N,"-").concat(z.key),role:"option","aria-controls":n&&"".concat(n,"-panel-").concat(z.key),disabled:z.disabled},f__namespace.createElement("span",null,z.label),V&&f__namespace.createElement("button",{type:"button","aria-label":m||"remove",tabIndex:0,className:"".concat(_,"-menu-item-remove"),onClick:function(U){U.stopPropagation(),T(U,z.key);}},z.closeIcon||h.removeIcon||"×"))}));function I(z){for(var V=i.filter(function(Z){return !Z.disabled}),q=V.findIndex(function(Z){return Z.key===M})||0,U=V.length,Q=0;Q<U;Q+=1){q=(q+z+U)%U;var ie=V[q];if(!ie.disabled){O(ie.key);return}}}function L(z){var V=z.which;if(!x){[Y.DOWN,Y.SPACE,Y.ENTER].includes(V)&&(y(!0),z.preventDefault());return}switch(V){case Y.UP:I(-1),z.preventDefault();break;case Y.DOWN:I(1),z.preventDefault();break;case Y.ESC:y(!1);break;case Y.SPACE:case Y.ENTER:M!==null&&g(M,z);break}}f.useEffect(function(){var z=document.getElementById($);z&&z.scrollIntoView&&z.scrollIntoView(!1);},[M]),f.useEffect(function(){x||O(null);},[x]);var j=H({},p?"marginRight":"marginLeft",v);i.length||(j.visibility="hidden",j.order=1);var B=K(H({},"".concat(_,"-rtl"),p)),G=a?null:f__namespace.createElement(BN,{prefixCls:_,overlay:A,trigger:["hover"],visible:i.length?x:!1,transitionName:c,onVisibleChange:y,overlayClassName:K(B,w),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:b},f__namespace.createElement("button",{type:"button",className:"".concat(r,"-nav-more"),style:j,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":N,id:"".concat(n,"-more"),"aria-expanded":x,onKeyDown:L},l));return f__namespace.createElement("div",{className:K("".concat(r,"-nav-operations"),d),style:u,ref:t},G,f__namespace.createElement(ry,{prefixCls:r,locale:o,editable:h}))}const rA=f__namespace.memo(f__namespace.forwardRef(tA),function(e,t){return t.tabMoving});function nA(e){var t,r=e.prefixCls,n=e.id,i=e.active,o=e.tab,a=o.key,s=o.label,l=o.disabled,c=o.closeIcon,u=e.closable,d=e.renderWrapper,h=e.removeAriaLabel,v=e.editable,p=e.onClick,m=e.onFocus,g=e.style,b="".concat(r,"-tab"),w=v&&u!==!1&&!l;function S(y){l||p(y);}function E(y){y.preventDefault(),y.stopPropagation(),v.onEdit("remove",{key:a,event:y});}var x=f__namespace.createElement("div",{key:a,"data-node-key":ty(a),className:K(b,(t={},H(t,"".concat(b,"-with-remove"),w),H(t,"".concat(b,"-active"),i),H(t,"".concat(b,"-disabled"),l),t)),style:g,onClick:S},f__namespace.createElement("div",{role:"tab","aria-selected":i,id:n&&"".concat(n,"-tab-").concat(a),className:"".concat(b,"-btn"),"aria-controls":n&&"".concat(n,"-panel-").concat(a),"aria-disabled":l,tabIndex:l?null:0,onClick:function(C){C.stopPropagation(),S(C);},onKeyDown:function(C){[Y.SPACE,Y.ENTER].includes(C.which)&&(C.preventDefault(),S(C));},onFocus:m},s),w&&f__namespace.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:"".concat(b,"-remove"),onClick:function(C){C.stopPropagation(),E(C);}},c||v.removeIcon||"×"));return d?d(x):x}var oo=function(t){var r=t.current||{},n=r.offsetWidth,i=n===void 0?0:n,o=r.offsetHeight,a=o===void 0?0:o;return [i,a]},Ws=function(t,r){return t[r?0:1]};function iA(e,t){var r,n=f__namespace.useContext(Rc),i=n.prefixCls,o=n.tabs,a=e.className,s=e.style,l=e.id,c=e.animated,u=e.activeKey,d=e.rtl,h=e.extra,v=e.editable,p=e.locale,m=e.tabPosition,g=e.tabBarGutter,b=e.children,w=e.onTabClick,S=e.onTabScroll,E=f.useRef(),x=f.useRef(),y=f.useRef(),C=f.useRef(),R=f.useRef(),M=f.useRef(),O=f.useRef(),N=m==="top"||m==="bottom",_=Kp(0,function(Oe,ye){N&&S&&S({direction:Oe>ye?"left":"right"});}),$=W(_,2),P=$[0],T=$[1],A=Kp(0,function(Oe,ye){!N&&S&&S({direction:Oe>ye?"top":"bottom"});}),I=W(A,2),L=I[0],j=I[1],B=f.useState([0,0]),G=W(B,2),z=G[0],V=G[1],q=f.useState([0,0]),U=W(q,2),Q=U[0],ie=U[1],Z=f.useState([0,0]),te=W(Z,2),ae=te[0],ue=te[1],$e=f.useState([0,0]),J=W($e,2),oe=J[0],se=J[1],re=ZI(new Map),xe=W(re,2),de=xe[0],ge=xe[1],ve=qI(o,de,Q[0]),Ee=Ws(z,N),Ye=Ws(Q,N),ft=Ws(ae,N),Et=Ws(oe,N),tt=Ee<Ye+ft,ke=tt?Ee-Et:Ee-ft,Fe="".concat(i,"-nav-operations-hidden"),Pe=0,De=0;N&&d?(Pe=0,De=Math.max(0,Ye-ke)):(Pe=Math.min(0,ke-Ye),De=0);function Te(Oe){return Oe<Pe?Pe:Oe>De?De:Oe}var He=f.useRef(),rt=f.useState(),ht=W(rt,2),Ke=ht[0],Ze=ht[1];function at(){Ze(Date.now());}function st(){window.clearTimeout(He.current);}YI(C,function(Oe,ye){function Be(Rt,jt){Rt(function(Mt){var Or=Te(Mt+jt);return Or});}return tt?(N?Be(T,Oe):Be(j,ye),st(),at(),!0):!1}),f.useEffect(function(){return st(),Ke&&(He.current=window.setTimeout(function(){Ze(0);},100)),st},[Ke]);var St=QI(ve,ke,N?P:L,Ye,ft,Et,D(D({},e),{},{tabs:o})),fe=W(St,2),ce=fe[0],_e=fe[1],we=nn(function(){var Oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:u,ye=ve.get(Oe)||{width:0,height:0,left:0,right:0,top:0};if(N){var Be=P;d?ye.right<P?Be=ye.right:ye.right+ye.width>P+ke&&(Be=ye.right+ye.width-ke):ye.left<-P?Be=-ye.left:ye.left+ye.width>-P+ke&&(Be=-(ye.left+ye.width-ke)),j(0),T(Te(Be));}else {var Rt=L;ye.top<-L?Rt=-ye.top:ye.top+ye.height>-L+ke&&(Rt=-(ye.top+ye.height-ke)),T(0),j(Te(Rt));}}),Ve={};m==="top"||m==="bottom"?Ve[d?"marginRight":"marginLeft"]=g:Ve.marginTop=g;var $t=o.map(function(Oe,ye){var Be=Oe.key;return f__namespace.createElement(nA,{id:l,prefixCls:i,key:Be,tab:Oe,style:ye===0?void 0:Ve,closable:Oe.closable,editable:v,active:Be===u,renderWrapper:b,removeAriaLabel:p==null?void 0:p.removeAriaLabel,onClick:function(jt){w(Be,jt);},onFocus:function(){we(Be),at(),C.current&&(d||(C.current.scrollLeft=0),C.current.scrollTop=0);}})}),At=function(){return ge(function(){var ye=new Map;return o.forEach(function(Be){var Rt,jt=Be.key,Mt=(Rt=R.current)===null||Rt===void 0?void 0:Rt.querySelector('[data-node-key="'.concat(ty(jt),'"]'));Mt&&ye.set(jt,{width:Mt.offsetWidth,height:Mt.offsetHeight,left:Mt.offsetLeft,top:Mt.offsetTop});}),ye})};f.useEffect(function(){At();},[o.map(function(Oe){return Oe.key}).join("_")]);var kt=ey(function(){var Oe=oo(E),ye=oo(x),Be=oo(y);V([Oe[0]-ye[0]-Be[0],Oe[1]-ye[1]-Be[1]]);var Rt=oo(O);ue(Rt);var jt=oo(M);se(jt);var Mt=oo(R);ie([Mt[0]-Rt[0],Mt[1]-Rt[1]]),At();}),be=o.slice(0,ce),We=o.slice(_e+1),Ue=[].concat(le(be),le(We)),_t=f.useState(),Ot=W(_t,2),gr=Ot[0],fr=Ot[1],Lt=ve.get(u),zr=f.useRef();function tr(){It.cancel(zr.current);}f.useEffect(function(){var Oe={};return Lt&&(N?(d?Oe.right=Lt.right:Oe.left=Lt.left,Oe.width=Lt.width):(Oe.top=Lt.top,Oe.height=Lt.height)),tr(),zr.current=It(function(){fr(Oe);}),tr},[Lt,N,d]),f.useEffect(function(){we();},[u,Pe,De,Zp(Lt),Zp(ve),N]),f.useEffect(function(){kt();},[d]);var Ge=!!Ue.length,Ie="".concat(i,"-nav-wrap"),pe,vt,nt,ar;return N?d?(vt=P>0,pe=P!==De):(pe=P<0,vt=P!==Pe):(nt=L<0,ar=L!==Pe),f__namespace.createElement(ki,{onResize:kt},f__namespace.createElement("div",{ref:uc(t,E),role:"tablist",className:K("".concat(i,"-nav"),a),style:s,onKeyDown:function(){at();}},f__namespace.createElement(Qp,{ref:x,position:"left",extra:h,prefixCls:i}),f__namespace.createElement("div",{className:K(Ie,(r={},H(r,"".concat(Ie,"-ping-left"),pe),H(r,"".concat(Ie,"-ping-right"),vt),H(r,"".concat(Ie,"-ping-top"),nt),H(r,"".concat(Ie,"-ping-bottom"),ar),r)),ref:C},f__namespace.createElement(ki,{onResize:kt},f__namespace.createElement("div",{ref:R,className:"".concat(i,"-nav-list"),style:{transform:"translate(".concat(P,"px, ").concat(L,"px)"),transition:Ke?"none":void 0}},$t,f__namespace.createElement(ry,{ref:O,prefixCls:i,locale:p,editable:v,style:D(D({},$t.length===0?void 0:Ve),{},{visibility:Ge?"hidden":null})}),f__namespace.createElement("div",{className:K("".concat(i,"-ink-bar"),H({},"".concat(i,"-ink-bar-animated"),c.inkBar)),style:gr})))),f__namespace.createElement(rA,Ce({},e,{removeAriaLabel:p==null?void 0:p.removeAriaLabel,ref:M,prefixCls:i,tabs:Ue,className:!Ge&&Fe,tabMoving:!!Ke})),f__namespace.createElement(Qp,{ref:y,position:"right",extra:h,prefixCls:i})))}const Jp=f__namespace.forwardRef(iA);var oA=["renderTabBar"],aA=["label","key"];function sA(e){var t=e.renderTabBar,r=Xe(e,oA),n=f__namespace.useContext(Rc),i=n.tabs;if(t){var o=D(D({},r),{},{panes:i.map(function(a){var s=a.label,l=a.key,c=Xe(a,aA);return f__namespace.createElement(J0,Ce({tab:s,key:l,tabKey:l},c))})});return t(o,Jp)}return f__namespace.createElement(Jp,r)}function lA(){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=D({inkBar:!0},ot(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var cA=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName"],em=0;function uA(e,t){var r,n=e.id,i=e.prefixCls,o=i===void 0?"rc-tabs":i,a=e.className,s=e.items,l=e.direction,c=e.activeKey,u=e.defaultActiveKey,d=e.editable,h=e.animated,v=e.tabPosition,p=v===void 0?"top":v,m=e.tabBarGutter,g=e.tabBarStyle,b=e.tabBarExtraContent,w=e.locale,S=e.moreIcon,E=e.moreTransitionName,x=e.destroyInactiveTabPane,y=e.renderTabBar,C=e.onChange,R=e.onTabClick,M=e.onTabScroll,O=e.getPopupContainer,N=e.popupClassName,_=Xe(e,cA),$=f__namespace.useMemo(function(){return (s||[]).filter(function(re){return re&&ot(re)==="object"&&"key"in re})},[s]),P=l==="rtl",T=lA(h),A=f.useState(!1),I=W(A,2),L=I[0],j=I[1];f.useEffect(function(){j(Ec());},[]);var B=Cn(function(){var re;return (re=$[0])===null||re===void 0?void 0:re.key},{value:c,defaultValue:u}),G=W(B,2),z=G[0],V=G[1],q=f.useState(function(){return $.findIndex(function(re){return re.key===z})}),U=W(q,2),Q=U[0],ie=U[1];f.useEffect(function(){var re=$.findIndex(function(de){return de.key===z});if(re===-1){var xe;re=Math.max(0,Math.min(Q,$.length-1)),V((xe=$[re])===null||xe===void 0?void 0:xe.key);}ie(re);},[$.map(function(re){return re.key}).join("_"),z,Q]);var Z=Cn(null,{value:n}),te=W(Z,2),ae=te[0],ue=te[1];f.useEffect(function(){n||(ue("rc-tabs-".concat(em)),em+=1);},[]);function $e(re,xe){R==null||R(re,xe);var de=re!==z;V(re),de&&(C==null||C(re));}var J={id:ae,activeKey:z,animated:T,tabPosition:p,rtl:P,mobile:L},oe,se=D(D({},J),{},{editable:d,locale:w,moreIcon:S,moreTransitionName:E,tabBarGutter:m,onTabClick:$e,onTabScroll:M,extra:b,style:g,panes:null,getPopupContainer:O,popupClassName:N});return f__namespace.createElement(Rc.Provider,{value:{tabs:$,prefixCls:o}},f__namespace.createElement("div",Ce({ref:t,id:n,className:K(o,"".concat(o,"-").concat(p),(r={},H(r,"".concat(o,"-mobile"),L),H(r,"".concat(o,"-editable"),d),H(r,"".concat(o,"-rtl"),P),r),a)},_),oe,f__namespace.createElement(sA,Ce({},se,{renderTabBar:y})),f__namespace.createElement(KI,Ce({destroyInactiveTabPane:x},J,{animated:T}))))}var dA=f__namespace.forwardRef(uA);const fA=()=>null,hA=fA,vA={motionAppear:!1,motionEnter:!0,motionLeave:!0};function pA(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},r;return t===!1?r={inkBar:!1,tabPane:!1}:t===!0?r={inkBar:!0,tabPane:!0}:r=Object.assign({inkBar:!0},typeof t=="object"?t:{}),r.tabPane&&(r.tabPaneMotion=Object.assign(Object.assign({},vA),{motionName:Zb(e,"switch")})),r}var mA=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function gA(e){return e.filter(t=>t)}function bA(e,t){if(e)return e;const r=fi(t).map(n=>{if(f__namespace.isValidElement(n)){const{key:i,props:o}=n,a=o||{},{tab:s}=a,l=mA(a,["tab"]);return Object.assign(Object.assign({key:String(i)},l),{label:s})}return null});return gA(r)}const yA=e=>{const{componentCls:t,motionDurationSlow:r}=e;return [{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${r}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${r}`}}}}},[dp(e,"slide-up"),dp(e,"slide-down")]]},wA=yA,SA=e=>{const{componentCls:t,tabsCardHorizontalPadding:r,tabsCardHeadBackground:n,tabsCardGutter:i,colorBorderSecondary:o}=e;return {[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:r,background:n,border:`${e.lineWidth}px ${e.lineType} ${o}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:e.colorPrimary,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:`${i}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:`${i}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}}}}}}},CA=e=>{const{componentCls:t,tabsHoverColor:r,dropdownEdgeChildVerticalPadding:n}=e;return {[`${t}-dropdown`]:Object.assign(Object.assign({},yr(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:`${n}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({},ZP),{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:r}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},xA=e=>{const{componentCls:t,margin:r,colorBorderSecondary:n}=e;return {[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:`0 0 ${r}px 0`,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${e.lineWidth}px ${e.lineType} ${n}`,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:`${r}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:`${e.paddingXS}px ${e.paddingLG}px`,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:`${e.margin}px 0 0 0`},[`${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}}}}}},EA=e=>{const{componentCls:t,padding:r}=e;return {[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXS}px 0`,fontSize:e.fontSize}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${r}px 0`,fontSize:e.fontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXXS*1.5}px ${r}px`}},[`&${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:`${e.paddingXS}px ${r}px ${e.paddingXXS*1.5}px`}}}}}},$A=e=>{const{componentCls:t,tabsActiveColor:r,tabsHoverColor:n,iconCls:i,tabsHorizontalGutter:o}=e,a=`${t}-tab`;return {[a]:{position:"relative",display:"inline-flex",alignItems:"center",padding:`${e.paddingSM}px 0`,fontSize:`${e.fontSize}px`,background:"transparent",border:0,outline:"none",cursor:"pointer","&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:r}},Df(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:n},[`&${a}-active ${a}-btn`]:{color:e.colorPrimary,textShadow:e.tabsActiveTextShadow},[`&${a}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${a}-disabled ${a}-btn, &${a}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${a}-remove ${i}`]:{margin:0},[i]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${a} + ${a}`]:{margin:{_skip_check_:!0,value:`0 0 0 ${o}px`}}}},_A=e=>{const{componentCls:t,tabsHorizontalGutter:r,iconCls:n,tabsCardGutter:i}=e;return {[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:`0 0 0 ${r}px`},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[n]:{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`},[n]:{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:`${i}px`},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},OA=e=>{const{componentCls:t,tabsCardHorizontalPadding:r,tabsCardHeight:n,tabsCardGutter:i,tabsHoverColor:o,tabsActiveColor:a,colorBorderSecondary:s}=e;return {[t]:Object.assign(Object.assign(Object.assign(Object.assign({},yr(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:r,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:`${n}px`,marginLeft:{_skip_check_:!0,value:`${i}px`},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:o},"&:active, &:focus:not(:focus-visible)":{color:a}},Df(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.colorPrimary,pointerEvents:"none"}}),$A(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"}}}}}},PA=Tn("Tabs",e=>{const t=e.controlHeightLG,r=mr(e,{tabsHoverColor:e.colorPrimaryHover,tabsActiveColor:e.colorPrimaryActive,tabsCardHorizontalPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,tabsCardHeight:t,tabsCardGutter:e.marginXXS/2,tabsHorizontalGutter:32,tabsCardHeadBackground:e.colorFillAlter,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120});return [EA(r),_A(r),xA(r),CA(r),SA(r),OA(r),wA(r)]},e=>({zIndexPopup:e.zIndexPopupBase+50}));var TA=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function ny(e){var{type:t,className:r,rootClassName:n,size:i,onEdit:o,hideAdd:a,centered:s,addIcon:l,popupClassName:c,children:u,items:d,animated:h}=e,v=TA(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated"]);const{prefixCls:p,moreIcon:m=f__namespace.createElement(yI,null)}=v,{direction:g,getPrefixCls:b,getPopupContainer:w}=f__namespace.useContext(Wt),S=b("tabs",p),[E,x]=PA(S);let y;t==="editable-card"&&(y={onEdit:(N,_)=>{let{key:$,event:P}=_;o==null||o(N==="add"?P:$,N);},removeIcon:f__namespace.createElement(jb,null),addIcon:l||f__namespace.createElement(UI,null),showAdd:a!==!0});const C=b(),R=bA(d,u),M=pA(S,h),O=jo(i);return E(f__namespace.createElement(dA,Object.assign({direction:g,getPopupContainer:w,moreTransitionName:`${C}-slide-up`},v,{items:R,className:K({[`${S}-${O}`]:O,[`${S}-card`]:["card","editable-card"].includes(t),[`${S}-editable-card`]:t==="editable-card",[`${S}-centered`]:s},r,n,x),popupClassName:K(c,x),editable:y,moreIcon:m,prefixCls:S,animated:M})))}ny.TabPane=hA;const RA=new Dt("antCheckboxEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),MA=e=>{const{checkboxCls:t}=e,r=`${t}-wrapper`;return [{[`${t}-group`]:Object.assign(Object.assign({},yr(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[r]:Object.assign(Object.assign({},yr(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${r}`]:{marginInlineStart:0},[`&${r}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},yr(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"start",transform:`translate(0, ${e.lineHeight*e.fontSize/2-e.checkboxSize/2}px)`,[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},gc(e))},[`${t}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.checkboxSize/14*5,height:e.checkboxSize/14*8,border:`${e.lineWidthBold}px solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[t]:{"&-indeterminate":{[`${t}-inner`]:{"&:after":{top:"50%",insetInlineStart:"50%",width:e.fontSizeLG/2,height:e.fontSizeLG/2,backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${r}:hover ${t}:after`]:{visibility:"visible"},[`
        ${r}:not(${r}-disabled),
        ${t}:not(${t}-disabled)
      `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${r}:not(${r}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}},"&:after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderRadius:e.borderRadiusSM,visibility:"hidden",border:`${e.lineWidthBold}px solid ${e.colorPrimary}`,animationName:RA,animationDuration:e.motionDurationSlow,animationTimingFunction:"ease-in-out",animationFillMode:"backwards",content:'""',transition:`all ${e.motionDurationSlow}`}},[`
        ${r}-checked:not(${r}-disabled),
        ${t}-checked:not(${t}-disabled)
      `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}:after`]:{borderColor:e.colorPrimaryHover}}},{[`${r}-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 NA(e,t){const r=mr(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return [MA(r)]}const iy=Tn("Checkbox",(e,t)=>{let{prefixCls:r}=t;return [NA(r,e)]});var IA=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const oy=f__namespace.createContext(null),AA=(e,t)=>{var{defaultValue:r,children:n,options:i=[],prefixCls:o,className:a,rootClassName:s,style:l,onChange:c}=e,u=IA(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]);const{getPrefixCls:d,direction:h}=f__namespace.useContext(Wt),[v,p]=f__namespace.useState(u.value||r||[]),[m,g]=f__namespace.useState([]);f__namespace.useEffect(()=>{"value"in u&&p(u.value||[]);},[u.value]);const b=()=>i.map(_=>typeof _=="string"||typeof _=="number"?{label:_,value:_}:_),w=_=>{g($=>$.filter(P=>P!==_));},S=_=>{g($=>[].concat(le($),[_]));},E=_=>{const $=v.indexOf(_.value),P=le(v);$===-1?P.push(_.value):P.splice($,1),"value"in u||p(P);const T=b();c==null||c(P.filter(A=>m.includes(A)).sort((A,I)=>{const L=T.findIndex(B=>B.value===A),j=T.findIndex(B=>B.value===I);return L-j}));},x=d("checkbox",o),y=`${x}-group`,[C,R]=iy(x),M=fc(u,["value","disabled"]);i&&i.length>0&&(n=b().map(_=>f__namespace.createElement(ay,{prefixCls:x,key:_.value.toString(),disabled:"disabled"in _?_.disabled:u.disabled,value:_.value,checked:v.includes(_.value),onChange:_.onChange,className:`${y}-item`,style:_.style},_.label)));const O={toggleOption:E,value:v,disabled:u.disabled,name:u.name,registerValue:S,cancelValue:w},N=K(y,{[`${y}-rtl`]:h==="rtl"},a,s,R);return C(f__namespace.createElement("div",Object.assign({className:N,style:l},M,{ref:t}),f__namespace.createElement(oy.Provider,{value:O},n)))},kA=f__namespace.forwardRef(AA),LA=f__namespace.memo(kA);var FA=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const DA=(e,t)=>{var r,{prefixCls:n,className:i,rootClassName:o,children:a,indeterminate:s=!1,style:l,onMouseEnter:c,onMouseLeave:u,skipGroup:d=!1,disabled:h}=e,v=FA(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]);const{getPrefixCls:p,direction:m}=f__namespace.useContext(Wt),g=f__namespace.useContext(oy),{isFormItemInput:b}=f__namespace.useContext(Wa),w=f__namespace.useContext(ls),S=(r=(g==null?void 0:g.disabled)||h)!==null&&r!==void 0?r:w,E=f__namespace.useRef(v.value);f__namespace.useEffect(()=>{g==null||g.registerValue(v.value);},[]),f__namespace.useEffect(()=>{if(!d)return v.value!==E.current&&(g==null||g.cancelValue(E.current),g==null||g.registerValue(v.value),E.current=v.value),()=>g==null?void 0:g.cancelValue(v.value)},[v.value]);const x=p("checkbox",n),[y,C]=iy(x),R=Object.assign({},v);g&&!d&&(R.onChange=function(){v.onChange&&v.onChange.apply(v,arguments),g.toggleOption&&g.toggleOption({label:a,value:v.value});},R.name=g.name,R.checked=g.value.includes(v.value));const M=K({[`${x}-wrapper`]:!0,[`${x}-rtl`]:m==="rtl",[`${x}-wrapper-checked`]:R.checked,[`${x}-wrapper-disabled`]:S,[`${x}-wrapper-in-form-item`]:b},i,o,C),O=K({[`${x}-indeterminate`]:s},C),N=s?"mixed":void 0;return y(f__namespace.createElement("label",{className:M,style:l,onMouseEnter:c,onMouseLeave:u},f__namespace.createElement(V0,Object.assign({"aria-checked":N},R,{prefixCls:x,className:O,disabled:S,ref:t})),a!==void 0&&f__namespace.createElement("span",null,a)))},jA=f__namespace.forwardRef(DA),ay=jA,oh=ay;oh.Group=LA;oh.__ANT_CHECKBOX=!0;const zA=oh;var HA={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 WA=HA;var sy=function(t,r){return f__namespace.createElement(Ho,D(D({},t),{},{ref:r,icon:WA}))};sy.displayName="UpOutlined";const BA=f__namespace.forwardRef(sy);function Vd(){return typeof BigInt=="function"}function Ni(e){var t=e.trim(),r=t.startsWith("-");r&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var n=t||"0",i=n.split("."),o=i[0]||"0",a=i[1]||"0";o==="0"&&a==="0"&&(r=!1);var s=r?"-":"";return {negative:r,negativeStr:s,trimStr:n,integerStr:o,decimalStr:a,fullStr:"".concat(s).concat(n)}}function ah(e){var t=String(e);return !Number.isNaN(Number(t))&&t.includes("e")}function Ga(e){var t=String(e);if(ah(e)){var r=Number(t.slice(t.indexOf("e-")+2)),n=t.match(/\.(\d+)/);return n!=null&&n[1]&&(r+=n[1].length),r}return t.includes(".")&&sh(t)?t.length-t.indexOf(".")-1:0}function Mc(e){var t=String(e);if(ah(e)){if(e>Number.MAX_SAFE_INTEGER)return String(Vd()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(Vd()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(Ga(t));}return Ni(t).fullStr}function sh(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 ly(e){return !e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}var VA=function(){function e(t){if(Er(this,e),H(this,"origin",""),H(this,"number",void 0),H(this,"empty",void 0),ly(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t);}return $r(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(r){if(this.isInvalidate())return new e(r);var n=Number(r);if(Number.isNaN(n))return this;var i=this.number+n;if(i>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(i<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(Ga(this.number),Ga(n));return new e(i.toFixed(o))}},{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(r){return this.toNumber()===(r==null?void 0:r.toNumber())}},{key:"lessEquals",value:function(r){return this.add(r.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return r?this.isInvalidate()?"":Mc(this.number):this.origin}}]),e}(),UA=function(){function e(t){if(Er(this,e),H(this,"origin",""),H(this,"negative",void 0),H(this,"integer",void 0),H(this,"decimal",void 0),H(this,"decimalLen",void 0),H(this,"empty",void 0),H(this,"nan",void 0),ly(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var r=t;if(ah(r)&&(r=Number(r)),r=typeof r=="string"?r:Mc(r),sh(r)){var n=Ni(r);this.negative=n.negative;var i=n.trimStr.split(".");this.integer=BigInt(i[0]);var o=i[1]||"0";this.decimal=BigInt(o),this.decimalLen=o.length;}else this.nan=!0;}return $r(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(r){var n="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(r,"0"));return BigInt(n)}},{key:"negate",value:function(){var r=new e(this.toString());return r.negative=!r.negative,r}},{key:"add",value:function(r){if(this.isInvalidate())return new e(r);var n=new e(r);if(n.isInvalidate())return this;var i=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),o=this.alignDecimal(i),a=n.alignDecimal(i),s=(o+a).toString(),l=Ni(s),c=l.negativeStr,u=l.trimStr,d="".concat(c).concat(u.padStart(i+1,"0"));return new e("".concat(d.slice(0,-i),".").concat(d.slice(-i)))}},{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(r){return this.toString()===(r==null?void 0:r.toString())}},{key:"lessEquals",value:function(r){return this.add(r.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return r?this.isInvalidate()?"":Ni("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}();function Yr(e){return Vd()?new UA(e):new VA(e)}function el(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return "";var i=Ni(e),o=i.negativeStr,a=i.integerStr,s=i.decimalStr,l="".concat(t).concat(s),c="".concat(o).concat(a);if(r>=0){var u=Number(s[r]);if(u>=5&&!n){var d=Yr(e).add("".concat(o,"0.").concat("0".repeat(r)).concat(10-u));return el(d.toString(),t,r,n)}return r===0?c:"".concat(c).concat(t).concat(s.padEnd(r,"0").slice(0,r))}return l===".0"?c:"".concat(c).concat(l)}var GA=function(){var t=f.useState(!1),r=W(t,2),n=r[0],i=r[1];return Gt(function(){i(Ec());},[]),n},KA=200,qA=600;function XA(e){var t=e.prefixCls,r=e.upNode,n=e.downNode,i=e.upDisabled,o=e.downDisabled,a=e.onStep,s=f__namespace.useRef(),l=f__namespace.useRef();l.current=a;var c=function(b,w){b.preventDefault(),l.current(w);function S(){l.current(w),s.current=setTimeout(S,KA);}s.current=setTimeout(S,qA);},u=function(){clearTimeout(s.current);};f__namespace.useEffect(function(){return u},[]);var d=GA();if(d)return null;var h="".concat(t,"-handler"),v=K(h,"".concat(h,"-up"),H({},"".concat(h,"-up-disabled"),i)),p=K(h,"".concat(h,"-down"),H({},"".concat(h,"-down-disabled"),o)),m={unselectable:"on",role:"button",onMouseUp:u,onMouseLeave:u};return f__namespace.createElement("div",{className:"".concat(h,"-wrap")},f__namespace.createElement("span",Ce({},m,{onMouseDown:function(b){c(b,!0);},"aria-label":"Increase Value","aria-disabled":i,className:v}),r||f__namespace.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),f__namespace.createElement("span",Ce({},m,{onMouseDown:function(b){c(b,!1);},"aria-label":"Decrease Value","aria-disabled":o,className:p}),n||f__namespace.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function tm(e){var t=typeof e=="number"?Mc(e):Ni(e).fullStr,r=t.includes(".");return r?Ni(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}function YA(e,t){var r=f.useRef(null);function n(){try{var o=e.selectionStart,a=e.selectionEnd,s=e.value,l=s.substring(0,o),c=s.substring(a);r.current={start:o,end:a,value:s,beforeTxt:l,afterTxt:c};}catch{}}function i(){if(e&&r.current&&t)try{var o=e.value,a=r.current,s=a.beforeTxt,l=a.afterTxt,c=a.start,u=o.length;if(o.endsWith(l))u=o.length-r.current.afterTxt.length;else if(o.startsWith(s))u=s.length;else {var d=s[c-1],h=o.indexOf(d,c-1);h!==-1&&(u=h+1);}e.setSelectionRange(u,u);}catch(v){dr(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(v.message));}}return [n,i]}const ZA=function(){var e=f.useRef(0),t=function(){It.cancel(e.current);};return f.useEffect(function(){return t},[]),function(r){t(),e.current=It(function(){r();});}};var QA=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],rm=function(t,r){return t||r.isEmpty()?r.toString():r.toNumber()},nm=function(t){var r=Yr(t);return r.isInvalidate()?null:r},cy=f__namespace.forwardRef(function(e,t){var r,n=e.prefixCls,i=n===void 0?"rc-input-number":n,o=e.className,a=e.style,s=e.min,l=e.max,c=e.step,u=c===void 0?1:c,d=e.defaultValue,h=e.value,v=e.disabled,p=e.readOnly,m=e.upHandler,g=e.downHandler,b=e.keyboard,w=e.controls,S=w===void 0?!0:w,E=e.stringMode,x=e.parser,y=e.formatter,C=e.precision,R=e.decimalSeparator,M=e.onChange,O=e.onInput,N=e.onPressEnter,_=e.onStep,$=Xe(e,QA),P="".concat(i,"-input"),T=f__namespace.useRef(null),A=f__namespace.useState(!1),I=W(A,2),L=I[0],j=I[1],B=f__namespace.useRef(!1),G=f__namespace.useRef(!1),z=f__namespace.useRef(!1),V=f__namespace.useState(function(){return Yr(h??d)}),q=W(V,2),U=q[0],Q=q[1];function ie(fe){h===void 0&&Q(fe);}var Z=f__namespace.useCallback(function(fe,ce){if(!ce)return C>=0?C:Math.max(Ga(fe),Ga(u))},[C,u]),te=f__namespace.useCallback(function(fe){var ce=String(fe);if(x)return x(ce);var _e=ce;return R&&(_e=_e.replace(R,".")),_e.replace(/[^\w.-]+/g,"")},[x,R]),ae=f__namespace.useRef(""),ue=f__namespace.useCallback(function(fe,ce){if(y)return y(fe,{userTyping:ce,input:String(ae.current)});var _e=typeof fe=="number"?Mc(fe):fe;if(!ce){var we=Z(_e,ce);if(sh(_e)&&(R||we>=0)){var Ve=R||".";_e=el(_e,Ve,we);}}return _e},[y,Z,R]),$e=f__namespace.useState(function(){var fe=d??h;return U.isInvalidate()&&["string","number"].includes(ot(fe))?Number.isNaN(fe)?"":fe:ue(U.toString(),!1)}),J=W($e,2),oe=J[0],se=J[1];ae.current=oe;function re(fe,ce){se(ue(fe.isInvalidate()?fe.toString(!1):fe.toString(!ce),ce));}var xe=f__namespace.useMemo(function(){return nm(l)},[l,C]),de=f__namespace.useMemo(function(){return nm(s)},[s,C]),ge=f__namespace.useMemo(function(){return !xe||!U||U.isInvalidate()?!1:xe.lessEquals(U)},[xe,U]),ve=f__namespace.useMemo(function(){return !de||!U||U.isInvalidate()?!1:U.lessEquals(de)},[de,U]),Ee=YA(T.current,L),Ye=W(Ee,2),ft=Ye[0],Et=Ye[1],tt=function(ce){return xe&&!ce.lessEquals(xe)?xe:de&&!de.lessEquals(ce)?de:null},ke=function(ce){return !tt(ce)},Fe=function(ce,_e){var we=ce,Ve=ke(we)||we.isEmpty();if(!we.isEmpty()&&!_e&&(we=tt(we)||we,Ve=!0),!p&&!v&&Ve){var $t=we.toString(),At=Z($t,_e);return At>=0&&(we=Yr(el($t,".",At)),ke(we)||(we=Yr(el($t,".",At,!0)))),we.equals(U)||(ie(we),M==null||M(we.isEmpty()?null:rm(E,we)),h===void 0&&re(we,_e)),we}return U},Pe=ZA(),De=function fe(ce){if(ft(),se(ce),!G.current){var _e=te(ce),we=Yr(_e);we.isNaN()||Fe(we,!0);}O==null||O(ce),Pe(function(){var Ve=ce;x||(Ve=ce.replace(/。/g,".")),Ve!==ce&&fe(Ve);});},Te=function(){G.current=!0;},He=function(){G.current=!1,De(T.current.value);},rt=function(ce){De(ce.target.value);},ht=function(ce){var _e;if(!(ce&&ge||!ce&&ve)){B.current=!1;var we=Yr(z.current?tm(u):u);ce||(we=we.negate());var Ve=(U||Yr(0)).add(we.toString()),$t=Fe(Ve,!1);_==null||_(rm(E,$t),{offset:z.current?tm(u):u,type:ce?"up":"down"}),(_e=T.current)===null||_e===void 0||_e.focus();}},Ke=function(ce){var _e=Yr(te(oe)),we=_e;_e.isNaN()?we=U:we=Fe(_e,ce),h!==void 0?re(U,!1):we.isNaN()||re(we,!1);},Ze=function(){B.current=!0;},at=function(ce){var _e=ce.which,we=ce.shiftKey;B.current=!0,we?z.current=!0:z.current=!1,_e===Y.ENTER&&(G.current||(B.current=!1),Ke(!1),N==null||N(ce)),b!==!1&&!G.current&&[Y.UP,Y.DOWN].includes(_e)&&(ht(Y.UP===_e),ce.preventDefault());},st=function(){B.current=!1,z.current=!1;},St=function(){Ke(!1),j(!1),B.current=!1;};return mo(function(){U.isInvalidate()||re(U,!1);},[C]),mo(function(){var fe=Yr(h);Q(fe);var ce=Yr(te(oe));(!fe.equals(ce)||!B.current||y)&&re(fe,B.current);},[h]),mo(function(){y&&Et();},[oe]),f__namespace.createElement("div",{className:K(i,o,(r={},H(r,"".concat(i,"-focused"),L),H(r,"".concat(i,"-disabled"),v),H(r,"".concat(i,"-readonly"),p),H(r,"".concat(i,"-not-a-number"),U.isNaN()),H(r,"".concat(i,"-out-of-range"),!U.isInvalidate()&&!ke(U)),r)),style:a,onFocus:function(){j(!0);},onBlur:St,onKeyDown:at,onKeyUp:st,onCompositionStart:Te,onCompositionEnd:He,onBeforeInput:Ze},S&&f__namespace.createElement(XA,{prefixCls:i,upNode:m,downNode:g,upDisabled:ge,downDisabled:ve,onStep:ht}),f__namespace.createElement("div",{className:"".concat(P,"-wrap")},f__namespace.createElement("input",Ce({autoComplete:"off",role:"spinbutton","aria-valuemin":s,"aria-valuemax":l,"aria-valuenow":U.isInvalidate()?null:U.toString(),step:u},$,{ref:Kr(T,t),className:P,value:oe,onChange:rt,disabled:v,readOnly:p}))))});cy.displayName="InputNumber";const JA=e=>{const{componentCls:t,lineWidth:r,lineType:n,colorBorder:i,borderRadius:o,fontSizeLG:a,controlHeightLG:s,controlHeightSM:l,colorError:c,inputPaddingHorizontalSM:u,colorTextDescription:d,motionDurationMid:h,colorPrimary:v,controlHeight:p,inputPaddingHorizontal:m,colorBgContainer:g,colorTextDisabled:b,borderRadiusSM:w,borderRadiusLG:S,controlWidth:E,handleVisible:x}=e;return [{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},yr(e)),Z0(e)),Y0(e,t)),{display:"inline-block",width:E,margin:0,padding:0,border:`${r}px ${n} ${i}`,borderRadius:o,"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,borderRadius:S,[`input${t}-input`]:{height:s-2*r}},"&-sm":{padding:0,borderRadius:w,[`input${t}-input`]:{height:l-2*r,padding:`0 ${u}px`}},"&:hover":Object.assign({},Tc(e)),"&-focused":Object.assign({},Nl(e)),"&-disabled":Object.assign(Object.assign({},K0(e)),{[`${t}-input`]:{cursor:"not-allowed"}}),"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},yr(e)),HI(e)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:S}},"&-sm":{[`${t}-group-addon`]:{borderRadius:w}}}}),[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},yr(e)),{width:"100%",height:p-2*r,padding:`0 ${m}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${h} linear`,appearance:"textfield",fontSize:"inherit",verticalAlign:"top"}),G0(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:{[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",background:g,borderStartStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o,borderEndStartRadius:0,opacity:x===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${h} linear ${h}`,[`${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:`${r}px ${n} ${i}`,transition:`all ${h} linear`,"&:active":{background:e.colorFillAlter},"&:hover":{height:"60%",[`
              ${t}-handler-up-inner,
              ${t}-handler-down-inner
            `]:{color:v}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},pb()),{color:d,transition:`all ${h} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:o},[`${t}-handler-down`]:{borderBlockStart:`${r}px ${n} ${i}`,borderEndEndRadius:o},"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`
          ${t}-handler-up-disabled,
          ${t}-handler-down-disabled
        `]:{cursor:"not-allowed"},[`
          ${t}-handler-up-disabled:hover &-handler-up-inner,
          ${t}-handler-down-disabled:hover &-handler-down-inner
        `]:{color:b}}},{[`${t}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${t}-handler-down`]:{borderBlockStartWidth:0}}}]},ek=e=>{const{componentCls:t,inputPaddingHorizontal:r,inputAffixPadding:n,controlWidth:i,borderRadiusLG:o,borderRadiusSM:a}=e;return {[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},Z0(e)),Y0(e,`${t}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:i,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:o},"&-sm":{borderRadius:a},[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},Tc(e)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},[`input${t}-input`]:{padding:0},"&::before":{width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:n},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:r,marginInlineStart:n}}})}},tk=Tn("InputNumber",e=>{const t=WI(e);return [JA(t),ek(t),qb(t)]},e=>({controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:"auto"}));var rk=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const uy=f__namespace.forwardRef((e,t)=>{const{getPrefixCls:r,direction:n}=f__namespace.useContext(Wt),[i,o]=f__namespace.useState(!1),a=f__namespace.useRef(null);f__namespace.useImperativeHandle(t,()=>a.current);const{className:s,rootClassName:l,size:c,disabled:u,prefixCls:d,addonBefore:h,addonAfter:v,prefix:p,bordered:m=!0,readOnly:g,status:b,controls:w}=e,S=rk(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),E=r("input-number",d),[x,y]=tk(E),{compactSize:C,compactItemClassnames:R}=Ub(E,n);let M=f__namespace.createElement(BA,{className:`${E}-handler-up-inner`}),O=f__namespace.createElement(cN,{className:`${E}-handler-down-inner`});const N=typeof w=="boolean"?w:void 0;typeof w=="object"&&(M=typeof w.upIcon>"u"?M:f__namespace.createElement("span",{className:`${E}-handler-up-inner`},w.upIcon),O=typeof w.downIcon>"u"?O:f__namespace.createElement("span",{className:`${E}-handler-down-inner`},w.downIcon));const{hasFeedback:_,status:$,isFormItemInput:P,feedbackIcon:T}=f__namespace.useContext(Wa),A=aN($,b),I=jo(q=>{var U;return (U=C??c)!==null&&U!==void 0?U:q}),L=p!=null||_,j=!!(h||v),B=f__namespace.useContext(ls),G=u??B,z=K({[`${E}-lg`]:I==="large",[`${E}-sm`]:I==="small",[`${E}-rtl`]:n==="rtl",[`${E}-borderless`]:!m,[`${E}-in-form-item`]:P},yu(E,A),R,y,s,!L&&!j&&l);let V=f__namespace.createElement(cy,Object.assign({ref:a,disabled:G,className:z,upHandler:M,downHandler:O,prefixCls:E,readOnly:g,controls:N},S));if(L){const q=K(`${E}-affix-wrapper`,yu(`${E}-affix-wrapper`,A,_),{[`${E}-affix-wrapper-focused`]:i,[`${E}-affix-wrapper-disabled`]:e.disabled,[`${E}-affix-wrapper-sm`]:I==="small",[`${E}-affix-wrapper-lg`]:I==="large",[`${E}-affix-wrapper-rtl`]:n==="rtl",[`${E}-affix-wrapper-readonly`]:g,[`${E}-affix-wrapper-borderless`]:!m},!j&&s,!j&&l,y);V=f__namespace.createElement("div",{className:q,style:e.style,onMouseUp:()=>a.current.focus()},p&&f__namespace.createElement("span",{className:`${E}-prefix`},p),No(V,{style:null,value:e.value,onFocus:U=>{var Q;o(!0),(Q=e.onFocus)===null||Q===void 0||Q.call(e,U);},onBlur:U=>{var Q;o(!1),(Q=e.onBlur)===null||Q===void 0||Q.call(e,U);}}),_&&f__namespace.createElement("span",{className:`${E}-suffix`},T));}if(j){const q=`${E}-group`,U=`${q}-addon`,Q=h?f__namespace.createElement("div",{className:U},h):null,ie=v?f__namespace.createElement("div",{className:U},v):null,Z=K(`${E}-wrapper`,q,y,{[`${q}-rtl`]:n==="rtl"}),te=K(`${E}-group-wrapper`,{[`${E}-group-wrapper-sm`]:I==="small",[`${E}-group-wrapper-lg`]:I==="large",[`${E}-group-wrapper-rtl`]:n==="rtl"},yu(`${E}-group-wrapper`,A,_),y,s,l);V=f__namespace.createElement("div",{className:te,style:e.style},f__namespace.createElement("div",{className:Z},Q&&f__namespace.createElement(Rd,null,f__namespace.createElement(up,{status:!0,override:!0},Q)),No(V,{style:null,disabled:G}),ie&&f__namespace.createElement(Rd,null,f__namespace.createElement(up,{status:!0,override:!0},ie))));}return x(V)}),dy=uy,nk=e=>f__namespace.createElement(Ab,{theme:{components:{InputNumber:{handleVisible:!0}}}},f__namespace.createElement(uy,Object.assign({},e)));dy._InternalPanelDoNotUseOrYouWillBeFired=nk;const im=dy;var ji=f__namespace.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0});function Ud(e,t,r){return (e-t)/(r-t)}function lh(e,t,r,n){var i=Ud(t,r,n),o={};switch(e){case"rtl":o.right="".concat(i*100,"%"),o.transform="translateX(50%)";break;case"btt":o.bottom="".concat(i*100,"%"),o.transform="translateY(50%)";break;case"ttb":o.top="".concat(i*100,"%"),o.transform="translateY(-50%)";break;default:o.left="".concat(i*100,"%"),o.transform="translateX(-50%)";break}return o}function fo(e,t){return Array.isArray(e)?e[t]:e}var ik=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"],ok=f__namespace.forwardRef(function(e,t){var r,n,i=e.prefixCls,o=e.value,a=e.valueIndex,s=e.onStartMove,l=e.style,c=e.render,u=e.dragging,d=e.onOffsetChange,h=Xe(e,ik),v=f__namespace.useContext(ji),p=v.min,m=v.max,g=v.direction,b=v.disabled,w=v.keyboard,S=v.range,E=v.tabIndex,x=v.ariaLabelForHandle,y=v.ariaLabelledByForHandle,C=v.ariaValueTextFormatterForHandle,R="".concat(i,"-handle"),M=function(P){b||s(P,a);},O=function(P){if(!b&&w){var T=null;switch(P.which||P.keyCode){case Y.LEFT:T=g==="ltr"||g==="btt"?-1:1;break;case Y.RIGHT:T=g==="ltr"||g==="btt"?1:-1;break;case Y.UP:T=g!=="ttb"?1:-1;break;case Y.DOWN:T=g!=="ttb"?-1:1;break;case Y.HOME:T="min";break;case Y.END:T="max";break;case Y.PAGE_UP:T=2;break;case Y.PAGE_DOWN:T=-2;break}T!==null&&(P.preventDefault(),d(T,a));}},N=lh(g,o,p,m),_=f__namespace.createElement("div",Ce({ref:t,className:K(R,(r={},H(r,"".concat(R,"-").concat(a+1),S),H(r,"".concat(R,"-dragging"),u),r)),style:D(D({},N),l),onMouseDown:M,onTouchStart:M,onKeyDown:O,tabIndex:b?null:fo(E,a),role:"slider","aria-valuemin":p,"aria-valuemax":m,"aria-valuenow":o,"aria-disabled":b,"aria-label":fo(x,a),"aria-labelledby":fo(y,a),"aria-valuetext":(n=fo(C,a))===null||n===void 0?void 0:n(o)},h));return c&&(_=c(_,{index:a,prefixCls:i,value:o,dragging:u})),_}),ak=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],sk=f__namespace.forwardRef(function(e,t){var r=e.prefixCls,n=e.style,i=e.onStartMove,o=e.onOffsetChange,a=e.values,s=e.handleRender,l=e.draggingIndex,c=Xe(e,ak),u=f__namespace.useRef({});return f__namespace.useImperativeHandle(t,function(){return {focus:function(h){var v;(v=u.current[h])===null||v===void 0||v.focus();}}}),f__namespace.createElement(f__namespace.Fragment,null,a.map(function(d,h){return f__namespace.createElement(ok,Ce({ref:function(p){p?u.current[h]=p:delete u.current[h];},dragging:l===h,prefixCls:r,style:fo(n,h),key:h,value:d,valueIndex:h,onStartMove:i,onOffsetChange:o,render:s},c))}))});function om(e){var t="touches"in e?e.touches[0]:e;return {pageX:t.pageX,pageY:t.pageY}}function lk(e,t,r,n,i,o,a,s,l){var c=f__namespace.useState(null),u=W(c,2),d=u[0],h=u[1],v=f__namespace.useState(-1),p=W(v,2),m=p[0],g=p[1],b=f__namespace.useState(r),w=W(b,2),S=w[0],E=w[1],x=f__namespace.useState(r),y=W(x,2),C=y[0],R=y[1],M=f__namespace.useRef(null),O=f__namespace.useRef(null);f__namespace.useEffect(function(){m===-1&&E(r);},[r,m]),f__namespace.useEffect(function(){return function(){document.removeEventListener("mousemove",M.current),document.removeEventListener("mouseup",O.current),document.removeEventListener("touchmove",M.current),document.removeEventListener("touchend",O.current);}},[]);var N=function(I,L){S.some(function(j,B){return j!==I[B]})&&(L!==void 0&&h(L),E(I),a(I));},_=function(I,L){if(I===-1){var j=C[0],B=C[C.length-1],G=n-j,z=i-B,V=L*(i-n);V=Math.max(V,G),V=Math.min(V,z);var q=o(j+V);V=q-j;var U=C.map(function(te){return te+V});N(U);}else {var Q=(i-n)*L,ie=le(S);ie[I]=C[I];var Z=l(ie,Q,I,"dist");N(Z.values,Z.value);}},$=f__namespace.useRef(_);$.current=_;var P=function(I,L){I.stopPropagation();var j=r[L];g(L),h(j),R(r);var B=om(I),G=B.pageX,z=B.pageY,V=function(Q){Q.preventDefault();var ie=om(Q),Z=ie.pageX,te=ie.pageY,ae=Z-G,ue=te-z,$e=e.current.getBoundingClientRect(),J=$e.width,oe=$e.height,se;switch(t){case"btt":se=-ue/oe;break;case"ttb":se=ue/oe;break;case"rtl":se=-ae/J;break;default:se=ae/J;}$.current(L,se);},q=function U(Q){Q.preventDefault(),document.removeEventListener("mouseup",U),document.removeEventListener("mousemove",V),document.removeEventListener("touchend",U),document.removeEventListener("touchmove",V),M.current=null,O.current=null,g(-1),s();};document.addEventListener("mouseup",q),document.addEventListener("mousemove",V),document.addEventListener("touchend",q),document.addEventListener("touchmove",V),M.current=V,O.current=q;},T=f__namespace.useMemo(function(){var A=le(r).sort(function(L,j){return L-j}),I=le(S).sort(function(L,j){return L-j});return A.every(function(L,j){return L===I[j]})?S:r},[r,S]);return [m,d,T,P]}function ck(e){var t=e.prefixCls,r=e.style,n=e.start,i=e.end,o=e.index,a=e.onStartMove,s=f__namespace.useContext(ji),l=s.direction,c=s.min,u=s.max,d=s.disabled,h=s.range,v="".concat(t,"-track"),p=Ud(n,c,u),m=Ud(i,c,u),g=function(S){!d&&a&&a(S,-1);},b={};switch(l){case"rtl":b.right="".concat(p*100,"%"),b.width="".concat(m*100-p*100,"%");break;case"btt":b.bottom="".concat(p*100,"%"),b.height="".concat(m*100-p*100,"%");break;case"ttb":b.top="".concat(p*100,"%"),b.height="".concat(m*100-p*100,"%");break;default:b.left="".concat(p*100,"%"),b.width="".concat(m*100-p*100,"%");}return f__namespace.createElement("div",{className:K(v,h&&"".concat(v,"-").concat(o+1)),style:D(D({},b),r),onMouseDown:g,onTouchStart:g})}function uk(e){var t=e.prefixCls,r=e.style,n=e.values,i=e.startPoint,o=e.onStartMove,a=f__namespace.useContext(ji),s=a.included,l=a.range,c=a.min,u=f__namespace.useMemo(function(){if(!l){if(n.length===0)return [];var d=i??c,h=n[0];return [{start:Math.min(d,h),end:Math.max(d,h)}]}for(var v=[],p=0;p<n.length-1;p+=1)v.push({start:n[p],end:n[p+1]});return v},[n,l,i,c]);return s?u.map(function(d,h){var v=d.start,p=d.end;return f__namespace.createElement(ck,{index:h,prefixCls:t,style:fo(r,h),start:v,end:p,key:h,onStartMove:o})}):null}function dk(e){var t=e.prefixCls,r=e.style,n=e.children,i=e.value,o=e.onClick,a=f__namespace.useContext(ji),s=a.min,l=a.max,c=a.direction,u=a.includedStart,d=a.includedEnd,h=a.included,v="".concat(t,"-text"),p=lh(c,i,s,l);return f__namespace.createElement("span",{className:K(v,H({},"".concat(v,"-active"),h&&u<=i&&i<=d)),style:D(D({},p),r),onMouseDown:function(g){g.stopPropagation();},onClick:function(){o(i);}},n)}function fk(e){var t=e.prefixCls,r=e.marks,n=e.onClick,i="".concat(t,"-mark");return r.length?f__namespace.createElement("div",{className:i},r.map(function(o){var a=o.value,s=o.style,l=o.label;return f__namespace.createElement(dk,{key:a,prefixCls:i,style:s,value:a,onClick:n},l)})):null}function hk(e){var t=e.prefixCls,r=e.value,n=e.style,i=e.activeStyle,o=f__namespace.useContext(ji),a=o.min,s=o.max,l=o.direction,c=o.included,u=o.includedStart,d=o.includedEnd,h="".concat(t,"-dot"),v=c&&u<=r&&r<=d,p=D(D({},lh(l,r,a,s)),typeof n=="function"?n(r):n);return v&&(p=D(D({},p),typeof i=="function"?i(r):i)),f__namespace.createElement("span",{className:K(h,H({},"".concat(h,"-active"),v)),style:p})}function vk(e){var t=e.prefixCls,r=e.marks,n=e.dots,i=e.style,o=e.activeStyle,a=f__namespace.useContext(ji),s=a.min,l=a.max,c=a.step,u=f__namespace.useMemo(function(){var d=new Set;if(r.forEach(function(v){d.add(v.value);}),n&&c!==null)for(var h=s;h<=l;)d.add(h),h+=c;return Array.from(d)},[s,l,c,n,r]);return f__namespace.createElement("div",{className:"".concat(t,"-step")},u.map(function(d){return f__namespace.createElement(hk,{prefixCls:t,key:d,value:d,style:i,activeStyle:o})}))}function pk(e,t,r,n,i,o){var a=f__namespace.useCallback(function(v){var p=isFinite(v)?v:e;return p=Math.min(t,v),p=Math.max(e,p),p},[e,t]),s=f__namespace.useCallback(function(v){if(r!==null){var p=e+Math.round((a(v)-e)/r)*r,m=function(S){return (String(S).split(".")[1]||"").length},g=Math.max(m(r),m(t),m(e)),b=Number(p.toFixed(g));return e<=b&&b<=t?b:null}return null},[r,e,t,a]),l=f__namespace.useCallback(function(v){var p=a(v),m=n.map(function(w){return w.value});r!==null&&m.push(s(v)),m.push(e,t);var g=m[0],b=t-e;return m.forEach(function(w){var S=Math.abs(p-w);S<=b&&(g=w,b=S);}),g},[e,t,n,r,a,s]),c=function v(p,m,g){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof m=="number"){var w,S=p[g],E=S+m,x=[];n.forEach(function(O){x.push(O.value);}),x.push(e,t),x.push(s(S));var y=m>0?1:-1;b==="unit"?x.push(s(S+y*r)):x.push(s(E)),x=x.filter(function(O){return O!==null}).filter(function(O){return m<0?O<=S:O>=S}),b==="unit"&&(x=x.filter(function(O){return O!==S}));var C=b==="unit"?S:E;w=x[0];var R=Math.abs(w-C);if(x.forEach(function(O){var N=Math.abs(O-C);N<R&&(w=O,R=N);}),w===void 0)return m<0?e:t;if(b==="dist")return w;if(Math.abs(m)>1){var M=le(p);return M[g]=w,v(M,m-y,g,b)}return w}else {if(m==="min")return e;if(m==="max")return t}},u=function(p,m,g){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",w=p[g],S=c(p,m,g,b);return {value:S,changed:S!==w}},d=function(p){return o===null&&p===0||typeof o=="number"&&p<o},h=function(p,m,g){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",w=p.map(l),S=w[g],E=c(w,m,g,b);if(w[g]=E,i===!1){var x=o||0;g>0&&w[g-1]!==S&&(w[g]=Math.max(w[g],w[g-1]+x)),g<w.length-1&&w[g+1]!==S&&(w[g]=Math.min(w[g],w[g+1]-x));}else if(typeof o=="number"||o===null){for(var y=g+1;y<w.length;y+=1)for(var C=!0;d(w[y]-w[y-1])&&C;){var R=u(w,1,y);w[y]=R.value,C=R.changed;}for(var M=g;M>0;M-=1)for(var O=!0;d(w[M]-w[M-1])&&O;){var N=u(w,-1,M-1);w[M-1]=N.value,O=N.changed;}for(var _=w.length-1;_>0;_-=1)for(var $=!0;d(w[_]-w[_-1])&&$;){var P=u(w,-1,_-1);w[_-1]=P.value,$=P.changed;}for(var T=0;T<w.length-1;T+=1)for(var A=!0;d(w[T+1]-w[T])&&A;){var I=u(w,1,T+1);w[T+1]=I.value,A=I.changed;}}return {value:w[g],values:w}};return [l,h]}var mk=f__namespace.forwardRef(function(e,t){var r,n=e.prefixCls,i=n===void 0?"rc-slider":n,o=e.className,a=e.style,s=e.disabled,l=s===void 0?!1:s,c=e.keyboard,u=c===void 0?!0:c,d=e.autoFocus,h=e.onFocus,v=e.onBlur,p=e.min,m=p===void 0?0:p,g=e.max,b=g===void 0?100:g,w=e.step,S=w===void 0?1:w,E=e.value,x=e.defaultValue,y=e.range,C=e.count,R=e.onChange,M=e.onBeforeChange,O=e.onAfterChange,N=e.allowCross,_=N===void 0?!0:N,$=e.pushable,P=$===void 0?!1:$,T=e.draggableTrack,A=e.reverse,I=e.vertical,L=e.included,j=L===void 0?!0:L,B=e.startPoint,G=e.trackStyle,z=e.handleStyle,V=e.railStyle,q=e.dotStyle,U=e.activeDotStyle,Q=e.marks,ie=e.dots,Z=e.handleRender,te=e.tabIndex,ae=te===void 0?0:te,ue=e.ariaLabelForHandle,$e=e.ariaLabelledByForHandle,J=e.ariaValueTextFormatterForHandle,oe=f__namespace.useRef(),se=f__namespace.useRef(),re=f__namespace.useMemo(function(){return I?A?"ttb":"btt":A?"rtl":"ltr"},[A,I]),xe=f__namespace.useMemo(function(){return isFinite(m)?m:0},[m]),de=f__namespace.useMemo(function(){return isFinite(b)?b:100},[b]),ge=f__namespace.useMemo(function(){return S!==null&&S<=0?1:S},[S]),ve=f__namespace.useMemo(function(){return P===!0?ge:P>=0?P:!1},[P,ge]),Ee=f__namespace.useMemo(function(){var Ge=Object.keys(Q||{});return Ge.map(function(Ie){var pe=Q[Ie],vt={value:Number(Ie)};return pe&&ot(pe)==="object"&&!f__namespace.isValidElement(pe)&&("label"in pe||"style"in pe)?(vt.style=pe.style,vt.label=pe.label):vt.label=pe,vt}).filter(function(Ie){var pe=Ie.label;return pe||typeof pe=="number"}).sort(function(Ie,pe){return Ie.value-pe.value})},[Q]),Ye=pk(xe,de,ge,Ee,_,ve),ft=W(Ye,2),Et=ft[0],tt=ft[1],ke=Cn(x,{value:E}),Fe=W(ke,2),Pe=Fe[0],De=Fe[1],Te=f__namespace.useMemo(function(){var Ge=Pe==null?[]:Array.isArray(Pe)?Pe:[Pe],Ie=W(Ge,1),pe=Ie[0],vt=pe===void 0?xe:pe,nt=Pe===null?[]:[vt];if(y){if(nt=le(Ge),C||Pe===void 0){var ar=C>=0?C+1:2;for(nt=nt.slice(0,ar);nt.length<ar;){var Oe;nt.push((Oe=nt[nt.length-1])!==null&&Oe!==void 0?Oe:xe);}}nt.sort(function(ye,Be){return ye-Be});}return nt.forEach(function(ye,Be){nt[Be]=Et(ye);}),nt},[Pe,y,xe,C,Et]),He=f__namespace.useRef(Te);He.current=Te;var rt=function(Ie){return y?Ie:Ie[0]},ht=function(Ie){var pe=le(Ie).sort(function(vt,nt){return vt-nt});R&&!is(pe,He.current,!0)&&R(rt(pe)),De(pe);},Ke=function(Ie){if(!l){var pe=0,vt=de-xe;Te.forEach(function(ar,Oe){var ye=Math.abs(Ie-ar);ye<=vt&&(vt=ye,pe=Oe);});var nt=le(Te);nt[pe]=Ie,y&&!Te.length&&C===void 0&&nt.push(Ie),M==null||M(rt(nt)),ht(nt),O==null||O(rt(nt));}},Ze=function(Ie){Ie.preventDefault();var pe=se.current.getBoundingClientRect(),vt=pe.width,nt=pe.height,ar=pe.left,Oe=pe.top,ye=pe.bottom,Be=pe.right,Rt=Ie.clientX,jt=Ie.clientY,Mt;switch(re){case"btt":Mt=(ye-jt)/nt;break;case"ttb":Mt=(jt-Oe)/nt;break;case"rtl":Mt=(Be-Rt)/vt;break;default:Mt=(Rt-ar)/vt;}var Or=xe+Mt*(de-xe);Ke(Et(Or));},at=f__namespace.useState(null),st=W(at,2),St=st[0],fe=st[1],ce=function(Ie,pe){if(!l){var vt=tt(Te,Ie,pe);M==null||M(rt(Te)),ht(vt.values),O==null||O(rt(vt.values)),fe(vt.value);}};f__namespace.useEffect(function(){if(St!==null){var Ge=Te.indexOf(St);Ge>=0&&oe.current.focus(Ge);}fe(null);},[St]);var _e=f__namespace.useMemo(function(){return T&&ge===null?!1:T},[T,ge]),we=function(){O==null||O(rt(He.current));},Ve=lk(se,re,Te,xe,de,Et,ht,we,tt),$t=W(Ve,4),At=$t[0],kt=$t[1],be=$t[2],We=$t[3],Ue=function(Ie,pe){We(Ie,pe),M==null||M(rt(He.current));},_t=At!==-1;f__namespace.useEffect(function(){if(!_t){var Ge=Te.lastIndexOf(kt);oe.current.focus(Ge);}},[_t]);var Ot=f__namespace.useMemo(function(){return le(be).sort(function(Ge,Ie){return Ge-Ie})},[be]),gr=f__namespace.useMemo(function(){return y?[Ot[0],Ot[Ot.length-1]]:[xe,Ot[0]]},[Ot,y,xe]),fr=W(gr,2),Lt=fr[0],zr=fr[1];f__namespace.useImperativeHandle(t,function(){return {focus:function(){oe.current.focus(0);},blur:function(){var Ie=document,pe=Ie.activeElement;se.current.contains(pe)&&(pe==null||pe.blur());}}}),f__namespace.useEffect(function(){d&&oe.current.focus(0);},[]);var tr=f__namespace.useMemo(function(){return {min:xe,max:de,direction:re,disabled:l,keyboard:u,step:ge,included:j,includedStart:Lt,includedEnd:zr,range:y,tabIndex:ae,ariaLabelForHandle:ue,ariaLabelledByForHandle:$e,ariaValueTextFormatterForHandle:J}},[xe,de,re,l,u,ge,j,Lt,zr,y,ae,ue,$e,J]);return f__namespace.createElement(ji.Provider,{value:tr},f__namespace.createElement("div",{ref:se,className:K(i,o,(r={},H(r,"".concat(i,"-disabled"),l),H(r,"".concat(i,"-vertical"),I),H(r,"".concat(i,"-horizontal"),!I),H(r,"".concat(i,"-with-marks"),Ee.length),r)),style:a,onMouseDown:Ze},f__namespace.createElement("div",{className:"".concat(i,"-rail"),style:V}),f__namespace.createElement(uk,{prefixCls:i,style:G,values:Ot,startPoint:B,onStartMove:_e?Ue:null}),f__namespace.createElement(vk,{prefixCls:i,marks:Ee,dots:ie,style:q,activeStyle:U}),f__namespace.createElement(sk,{ref:oe,prefixCls:i,style:z,values:be,draggingIndex:At,onStartMove:Ue,onOffsetChange:ce,onFocus:h,onBlur:v,handleRender:Z}),f__namespace.createElement(fk,{prefixCls:i,marks:Ee,onClick:Ke})))});const gk=f__namespace.forwardRef((e,t)=>{const{open:r}=e,n=f.useRef(null),i=f.useRef(null);function o(){It.cancel(i.current),i.current=null;}function a(){i.current=It(()=>{var s;(s=n.current)===null||s===void 0||s.forceAlign(),i.current=null;});}return f__namespace.useEffect(()=>(r?a():o(),o),[r,e.title]),f__namespace.createElement(Gf,Object.assign({ref:Kr(n,t)},e))}),bk=gk,yk=e=>{const{componentCls:t,controlSize:r,dotSize:n,marginFull:i,marginPart:o,colorFillContentHover:a}=e;return {[t]:Object.assign(Object.assign({},yr(e)),{position:"relative",height:r,margin:`${o}px ${i}px`,padding:0,cursor:"pointer",touchAction:"none",["&-vertical"]:{margin:`${i}px ${o}px`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.colorFillTertiary,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},[`${t}-track`]:{position:"absolute",backgroundColor:e.colorPrimaryBorder,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},"&:hover":{[`${t}-rail`]:{backgroundColor:e.colorFillSecondary},[`${t}-track`]:{backgroundColor:e.colorPrimaryBorderHover},[`${t}-dot`]:{borderColor:a},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.colorPrimary}},[`${t}-handle`]:{position:"absolute",width:e.handleSize,height:e.handleSize,outline:"none",[`${t}-dragging`]:{zIndex:1},"&::before":{content:'""',position:"absolute",insetInlineStart:-e.handleLineWidth,insetBlockStart:-e.handleLineWidth,width:e.handleSize+e.handleLineWidth*2,height:e.handleSize+e.handleLineWidth*2,backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:e.handleSize,height:e.handleSize,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorder}`,borderRadius:"50%",cursor:"pointer",transition:`
            inset-inline-start ${e.motionDurationMid},
            inset-block-start ${e.motionDurationMid},
            width ${e.motionDurationMid},
            height ${e.motionDurationMid},
            box-shadow ${e.motionDurationMid}
          `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),insetBlockStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),width:e.handleSizeHover+e.handleLineWidthHover*2,height:e.handleSizeHover+e.handleLineWidthHover*2},"&::after":{boxShadow:`0 0 0 ${e.handleLineWidthHover}px ${e.colorPrimary}`,width:e.handleSizeHover,height:e.handleSizeHover,insetInlineStart:(e.handleSize-e.handleSizeHover)/2,insetBlockStart:(e.handleSize-e.handleSizeHover)/2}}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:n,height:n,backgroundColor:e.colorBgElevated,border:`${e.handleLineWidth}px solid ${e.colorBorderSecondary}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.colorPrimaryBorder}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.colorFillSecondary} !important`},[`${t}-track`]:{backgroundColor:`${e.colorTextDisabled} !important`},[`
          ${t}-dot
        `]:{backgroundColor:e.colorBgElevated,borderColor:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:e.handleSize,height:e.handleSize,boxShadow:`0 0 0 ${e.handleLineWidth}px ${new ur(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString()}`,insetInlineStart:0,insetBlockStart:0},[`
          ${t}-mark-text,
          ${t}-dot
        `]:{cursor:"not-allowed !important"}}})}},fy=(e,t)=>{const{componentCls:r,railSize:n,handleSize:i,dotSize:o}=e,a=t?"paddingBlock":"paddingInline",s=t?"width":"height",l=t?"height":"width",c=t?"insetBlockStart":"insetInlineStart",u=t?"top":"insetInlineStart";return {[a]:n,[l]:n*3,[`${r}-rail`]:{[s]:"100%",[l]:n},[`${r}-track`]:{[l]:n},[`${r}-handle`]:{[c]:(n*3-i)/2},[`${r}-mark`]:{insetInlineStart:0,top:0,[u]:i,[s]:"100%"},[`${r}-step`]:{insetInlineStart:0,top:0,[u]:n,[s]:"100%",[l]:n},[`${r}-dot`]:{position:"absolute",[c]:(n-o)/2}}},wk=e=>{const{componentCls:t,marginPartWithMark:r}=e;return {[`${t}-horizontal`]:Object.assign(Object.assign({},fy(e,!0)),{[`&${t}-with-marks`]:{marginBottom:r}})}},Sk=e=>{const{componentCls:t}=e;return {[`${t}-vertical`]:Object.assign(Object.assign({},fy(e,!1)),{height:"100%"})}},Ck=Tn("Slider",e=>{const t=mr(e,{marginPart:(e.controlHeight-e.controlSize)/2,marginFull:e.controlSize/2,marginPartWithMark:e.controlHeightLG-e.controlSize});return [yk(t),wk(t),Sk(t)]},e=>{const r=e.controlHeightLG/4,n=e.controlHeightSM/2,i=e.lineWidth+1,o=e.lineWidth+1*3;return {controlSize:r,railSize:4,handleSize:r,handleSizeHover:n,dotSize:8,handleLineWidth:i,handleLineWidthHover:o}});var xk=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const Ek=e=>typeof e=="number"?e.toString():"",$k=f__namespace.forwardRef((e,t)=>{const{prefixCls:r,range:n,className:i,rootClassName:o,tooltipPrefixCls:a,tipFormatter:s,tooltipVisible:l,getTooltipPopupContainer:c,tooltipPlacement:u}=e,d=xk(e,["prefixCls","range","className","rootClassName","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement"]),{getPrefixCls:h,direction:v,getPopupContainer:p}=f__namespace.useContext(Wt),[m,g]=f__namespace.useState({}),b=(O,N)=>{g(_=>Object.assign(Object.assign({},_),{[O]:N}));},w=(O,N)=>O||(N?v==="rtl"?"left":"right":"top"),S=h("slider",r),[E,x]=Ck(S),y=K(i,o,{[`${S}-rtl`]:v==="rtl"},x);v==="rtl"&&!d.vertical&&(d.reverse=!d.reverse);const[C,R]=f__namespace.useMemo(()=>n?typeof n=="object"?[!0,n.draggableTrack]:[!0,!1]:[!1],[n]),M=(O,N)=>{var _;const{index:$,dragging:P}=N,{tooltip:T={},vertical:A}=e,I=Object.assign({},T),{open:L,placement:j,getPopupContainer:B,prefixCls:G,formatter:z}=I;let V;z||z===null?V=z:s||s===null?V=s:V=Ek;const q=V?m[$]||P:!1,U=(_=L??l)!==null&&_!==void 0?_:L===void 0&&q,Q=Object.assign(Object.assign({},O.props),{onMouseEnter:()=>b($,!0),onMouseLeave:()=>b($,!1)}),ie=h("tooltip",G??a);return f__namespace.createElement(bk,{prefixCls:ie,title:V?V(N.value):"",open:U,placement:w(j??u,A),key:$,overlayClassName:`${S}-tooltip`,getPopupContainer:B||c||p},f__namespace.cloneElement(O,Q))};return E(f__namespace.createElement(mk,Object.assign({},d,{step:d.step,range:C,draggableTrack:R,className:y,ref:t,prefixCls:S,handleRender:M})))}),_k=$k;function Ok(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const Bs=(e,t,r)=>{const n=Ok(r);return {[`${e.componentCls}-${t}`]:{color:e[`color${r}`],background:e[`color${n}Bg`],borderColor:e[`color${n}Border`]}}},Pk=e=>gb(e,(t,r)=>{let{textColor:n,lightBorderColor:i,lightColor:o,darkColor:a}=r;return {[`${e.componentCls}-${t}`]:{color:n,background:o,borderColor:i,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),Tk=e=>{const{paddingXXS:t,lineWidth:r,tagPaddingHorizontal:n,componentCls:i}=e,o=n-r,a=t-r;return {[i]:Object.assign(Object.assign({},yr(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:o,fontSize:e.tagFontSize,lineHeight:`${e.tagLineHeight}px`,whiteSpace:"nowrap",background:e.tagDefaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",[`&${i}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.tagDefaultColor},[`${i}-close-icon`]:{marginInlineStart:a,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${i}-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(${i}-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:o}}),[`${i}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},hy=Tn("Tag",e=>{const{fontSize:t,lineHeight:r,lineWidth:n,fontSizeIcon:i}=e,o=Math.round(t*r),a=e.fontSizeSM,s=o-n*2,l=e.colorFillQuaternary,c=e.colorText,u=mr(e,{tagFontSize:a,tagLineHeight:s,tagDefaultBg:l,tagDefaultColor:c,tagIconSize:i-2*n,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary});return [Tk(u),Pk(u),Bs(u,"success","Success"),Bs(u,"processing","Info"),Bs(u,"error","Error"),Bs(u,"warning","Warning")]});var Rk=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const Mk=e=>{const{prefixCls:t,className:r,checked:n,onChange:i,onClick:o}=e,a=Rk(e,["prefixCls","className","checked","onChange","onClick"]),{getPrefixCls:s}=f__namespace.useContext(Wt),l=v=>{i==null||i(!n),o==null||o(v);},c=s("tag",t),[u,d]=hy(c),h=K(c,{[`${c}-checkable`]:!0,[`${c}-checkable-checked`]:n},r,d);return u(f__namespace.createElement("span",Object.assign({},a,{className:h,onClick:l})))},Nk=Mk;var Ik=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const Ak=(e,t)=>{const{prefixCls:r,className:n,rootClassName:i,style:o,children:a,icon:s,color:l,onClose:c,closeIcon:u,closable:d=!1,bordered:h=!0}=e,v=Ik(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:p,direction:m}=f__namespace.useContext(Wt),[g,b]=f__namespace.useState(!0);f__namespace.useEffect(()=>{"visible"in v&&b(v.visible);},[v.visible]);const w=u0(l)||RN(l),S=Object.assign({backgroundColor:l&&!w?l:void 0},o),E=p("tag",r),[x,y]=hy(E),C=K(E,{[`${E}-${l}`]:w,[`${E}-has-color`]:l&&!w,[`${E}-hidden`]:!g,[`${E}-rtl`]:m==="rtl",[`${E}-borderless`]:!h},n,i,y),R=P=>{P.stopPropagation(),c==null||c(P),!P.defaultPrevented&&b(!1);},M=f__namespace.useMemo(()=>d?u?f__namespace.createElement("span",{className:`${E}-close-icon`,onClick:R},u):f__namespace.createElement(jb,{className:`${E}-close-icon`,onClick:R}):null,[d,u,E,R]),O=typeof v.onClick=="function"||a&&a.type==="a",N=s||null,_=N?f__namespace.createElement(f__namespace.Fragment,null,N,f__namespace.createElement("span",null,a)):a,$=f__namespace.createElement("span",Object.assign({},v,{ref:t,className:C,style:S}),_,M);return x(O?f__namespace.createElement(Wb,null,$):$)},vy=f__namespace.forwardRef(Ak);vy.CheckableTag=Nk;const aa=vy;function Ur(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return ma(t)}const kk=[{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)"}],Ka={id:"default-bili-pink",name:"B站小粉红",isDark:!1,isCustom:!1,colorPrimary:"#ff6699",colorTheme:"#ff6699"},ch=[Ka,...kk];function Lk(){return ch.find(e=>e.id===(et.theme||Ka.id))||Ka}function Wo(){const e=_n().theme||Ka.id;return f.useMemo(()=>ch.find(t=>t.id===e)||Ka,[e])}var Fk={name:"lj8i4f",styles:"width:50px;height:50px;padding:3px;border:2px solid transparent;border-radius:5px;margin:0 auto"},Dk={name:"yf99n4",styles:"min-width:70px;text-align:center;margin:0 15px 15px 0;cursor:pointer"};function jk(){const e=Wo().id;return F("div",{style:{display:"flex",flexWrap:"wrap"},children:ch.map(t=>{const r=e===t.id;return ee("div",{css:Dk,onClick:n=>{ja({theme:t.id});},children:[F("div",{className:"preview-wrapper",css:[Fk,r&&Ur("border-color:",t.colorPrimary,";",""),"",""],children:F("div",{className:"preview",css:Ur("width:100%;height:100%;background-color:",t.colorPrimary,";border-radius:5px;","")})}),t.name]},t.id)})})}function py({children:e}){const t=lc(),{colorPrimary:r}=Wo();return F(Ab,{theme:{algorithm:t?Ad.darkAlgorithm:Ad.defaultAlgorithm,token:{colorPrimary:r}},children:e})}function am(e){return F(Gf,{...e,zIndex:11100,overlayStyle:{width:"max-content",maxWidth:"50vw",...e.overlayInnerStyle},children:e.children})}var uh={exports:{}};const zk=(e,t)=>Math.floor(Math.random()*(t-e+1)+e),sm=()=>{const e=new Error("Delay aborted");return e.name="AbortError",e},lm=({clearTimeout:e,setTimeout:t,willResolve:r})=>(n,{value:i,signal:o}={})=>{if(o&&o.aborted)return Promise.reject(sm());let a,s,l;const c=e||clearTimeout,u=()=>{c(a),l(sm());},d=()=>{o&&o.removeEventListener("abort",u);},h=new Promise((v,p)=>{s=()=>{d(),r?v(i):p(i);},l=p,a=(t||setTimeout)(s,n);});return o&&o.addEventListener("abort",u,{once:!0}),h.clear=()=>{c(a),a=null,s();},h},my=e=>{const t=lm({...e,willResolve:!0});return t.reject=lm({...e,willResolve:!1}),t.range=(r,n,i)=>t(zk(r,n),i),t},dh=my();dh.createWithTimers=my;uh.exports=dh;uh.exports.default=dh;var Hk=uh.exports;const Nc=Kn(Hk),Wk=10*1e3,Bk=200;async function gy(e,t,r=()=>!0){let n=[];const i=()=>{n=Array.from(document.querySelectorAll(e)).filter(r);};i();const a=performance.now()+Wk;for(;!n.length&&performance.now()<a;)await Nc(Bk),i();if(!n.length){console.warn(`[${di}]: tryAction timeout, selector = %s`,e);return}for(const s of n)await Promise.resolve(t(s));}async function tl(e,t,r){return typeof r=="number"&&await Nc(r),gy(e,n=>n.remove(),t)}function Ic(){var t;const e=(((t=document.activeElement)==null?void 0:t.tagName)||"").toLowerCase();return !!(["input","textarea"].includes(e)||document.querySelector(".center-search__bar.is-focus"))}var Ac,cm=$o;Ac=cm.createRoot,cm.hydrateRoot;var fh={},_r={};Object.defineProperty(_r,"__esModule",{value:!0});_r.DEFAULT_ICON_CONFIGS=void 0;_r.IconConverter=wy;_r.IconProvider=void 0;_r.IconWrapper=Zk;var rl=Vk(f);function by(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return (by=function(n){return n?r:t})(e)}function Vk(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return {default:e};var r=by(t);if(r&&r.has(e))return r.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o];}return n.default=e,r&&r.set(e,n),n}var Uk=["size","strokeWidth","strokeLinecap","strokeLinejoin","theme","fill","className","spin"];function um(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n);}return r}function dm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?um(Object(r),!0).forEach(function(n){Gk(e,n,r[n]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):um(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n));});}return e}function Gk(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kk(e,t){if(e==null)return {};var r=qk(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n]);}return r}function qk(e,t){if(e==null)return {};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var yy={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"};_r.DEFAULT_ICON_CONFIGS=yy;function Xk(){return "icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)}function wy(e,t,r){var n=typeof t.fill=="string"?[t.fill]:t.fill||[],i=[],o=t.theme||r.theme;switch(o){case"outline":i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push("none"),i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push("none");break;case"filled":i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push("#FFF"),i.push("#FFF");break;case"two-tone":i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push(typeof n[1]=="string"?n[1]:r.colors.twoTone.twoTone),i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push(typeof n[1]=="string"?n[1]:r.colors.twoTone.twoTone);break;case"multi-color":i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push(typeof n[1]=="string"?n[1]:r.colors.multiColor.outFillColor),i.push(typeof n[2]=="string"?n[2]:r.colors.multiColor.innerStrokeColor),i.push(typeof n[3]=="string"?n[3]:r.colors.multiColor.innerFillColor);break}return {size:t.size||r.size,strokeWidth:t.strokeWidth||r.strokeWidth,strokeLinecap:t.strokeLinecap||r.strokeLinecap,strokeLinejoin:t.strokeLinejoin||r.strokeLinejoin,colors:i,id:e}}var Sy=(0, rl.createContext)(yy),Yk=Sy.Provider;_r.IconProvider=Yk;function Zk(e,t,r){return function(n){var i=n.size,o=n.strokeWidth,a=n.strokeLinecap,s=n.strokeLinejoin,l=n.theme,c=n.fill,u=n.className,d=n.spin,h=Kk(n,Uk),v=(0, rl.useContext)(Sy),p=(0, rl.useMemo)(Xk,[]),m=wy(p,{size:i,strokeWidth:o,strokeLinecap:a,strokeLinejoin:s,theme:l,fill:c},v),g=[v.prefix+"-icon"];return g.push(v.prefix+"-icon-"+e),t&&v.rtl&&g.push(v.prefix+"-icon-rtl"),d&&g.push(v.prefix+"-icon-spin"),u&&g.push(u),rl.default.createElement("span",dm(dm({},h),{},{className:g.join(" ")}),r(m))}}Object.defineProperty(fh,"__esModule",{value:!0});var Cy=fh.default=void 0,_u=Jk(f),Qk=_r;function Jk(e){return e&&e.__esModule?e:{default:e}}var eL=(0, Qk.IconWrapper)("close",!1,function(e){return _u.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},_u.default.createElement("path",{d:"M8 8L40 40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),_u.default.createElement("path",{d:"M8 40L40 8",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});Cy=fh.default=eL;var hh={};Object.defineProperty(hh,"__esModule",{value:!0});var xy=hh.default=void 0,Ou=rL(f),tL=_r;function rL(e){return e&&e.__esModule?e:{default:e}}var nL=(0, tL.IconWrapper)("config",!1,function(e){return Ou.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Ou.default.createElement("path",{d:"M24 4L18 10H10V18L4 24L10 30V38H18L24 44L30 38H38V30L44 24L38 18V10H30L24 4Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),Ou.default.createElement("path",{d:"M24 30C27.3137 30 30 27.3137 30 24C30 20.6863 27.3137 18 24 18C20.6863 18 18 20.6863 18 24C18 27.3137 20.6863 30 24 30Z",fill:e.colors[3],stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))});xy=hh.default=nL;var vh={};Object.defineProperty(vh,"__esModule",{value:!0});var Ey=vh.default=void 0,sa=oL(f),iL=_r;function oL(e){return e&&e.__esModule?e:{default:e}}var aL=(0, iL.IconWrapper)("distraught-face",!1,function(e){return sa.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},sa.default.createElement("path",{d:"M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),sa.default.createElement("path",{d:"M24 29C29 29 31 33 31 33H17C17 33 19 29 24 29Z",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),sa.default.createElement("path",{d:"M32 17L29 20L32 23",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),sa.default.createElement("path",{d:"M16 17L19 20L16 23",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});Ey=vh.default=aL;var ph={};Object.defineProperty(ph,"__esModule",{value:!0});var $y=ph.default=void 0,la=lL(f),sL=_r;function lL(e){return e&&e.__esModule?e:{default:e}}var cL=(0, sL.IconWrapper)("info",!0,function(e){return la.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},la.default.createElement("path",{d:"M24 44C29.5228 44 34.5228 41.7614 38.1421 38.1421C41.7614 34.5228 44 29.5228 44 24C44 18.4772 41.7614 13.4772 38.1421 9.85786C34.5228 6.23858 29.5228 4 24 4C18.4772 4 13.4772 6.23858 9.85786 9.85786C6.23858 13.4772 4 18.4772 4 24C4 29.5228 6.23858 34.5228 9.85786 38.1421C13.4772 41.7614 18.4772 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),la.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 11C25.3807 11 26.5 12.1193 26.5 13.5C26.5 14.8807 25.3807 16 24 16C22.6193 16 21.5 14.8807 21.5 13.5C21.5 12.1193 22.6193 11 24 11Z",fill:e.colors[2]}),la.default.createElement("path",{d:"M24.5 34V20H23.5H22.5",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),la.default.createElement("path",{d:"M21 34H28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});$y=ph.default=cL;var mh={};Object.defineProperty(mh,"__esModule",{value:!0});var _y=mh.default=void 0,Pu=dL(f),uL=_r;function dL(e){return e&&e.__esModule?e:{default:e}}var fL=(0, uL.IconWrapper)("loading",!0,function(e){return Pu.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Pu.default.createElement("path",{d:"M4 24C4 35.0457 12.9543 44 24 44V44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Pu.default.createElement("path",{d:"M36 24C36 17.3726 30.6274 12 24 12C17.3726 12 12 17.3726 12 24C12 30.6274 17.3726 36 24 36V36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});_y=mh.default=fL;var gh={};Object.defineProperty(gh,"__esModule",{value:!0});var Oy=gh.default=void 0,un=vL(f),hL=_r;function vL(e){return e&&e.__esModule?e:{default:e}}var pL=(0, hL.IconWrapper)("loading-three",!1,function(e){return un.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},un.default.createElement("path",{d:"M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),un.default.createElement("path",{d:"M24 12V15",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),un.default.createElement("path",{d:"M32.4852 15.5147L30.3639 17.636",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),un.default.createElement("path",{d:"M36 24H33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),un.default.createElement("path",{d:"M32.4852 32.4853L30.3639 30.364",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),un.default.createElement("path",{d:"M24 36V33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),un.default.createElement("path",{d:"M15.5148 32.4853L17.6361 30.364",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),un.default.createElement("path",{d:"M12 24H15",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),un.default.createElement("path",{d:"M15.5148 15.5147L17.6361 17.636",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});Oy=gh.default=pL;var bh={};Object.defineProperty(bh,"__esModule",{value:!0});var Py=bh.default=void 0,Tu=gL(f),mL=_r;function gL(e){return e&&e.__esModule?e:{default:e}}var bL=(0, mL.IconWrapper)("return",!0,function(e){return Tu.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Tu.default.createElement("path",{d:"M12.9998 8L6 14L12.9998 21",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Tu.default.createElement("path",{d:"M6 14H28.9938C35.8768 14 41.7221 19.6204 41.9904 26.5C42.2739 33.7696 36.2671 40 28.9938 40H11.9984",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});Py=bh.default=bL;const yL={Close:Cy,Config:xy,DistraughtFace:Ey,Return:Py,Loading:_y,LoadingThree:Oy,Info:$y};function Bn({name:e,theme:t,size:r,fill:n,...i}){t||(t="outline"),r||(r=24);const o=lc();n||(n=o?"#fff":"#333");const a=yL[e];return F(a,{theme:t,size:r,fill:n,...i,style:{fontSize:0,...i.style}})}function fm(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function hm(e,t,r){var n=[],i=gf(e,n,r);return n.length<2?r:i+t(n)}var wL=function(t){var r=zm(t);r.sheet.speedy=function(s){this.isSpeedy=s;},r.compat=!0;var n=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=ma(c,r.registered,void 0);return Gm(r,d,!1),r.key+"-"+d.name},i=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=ma(c,r.registered),h="animation-"+d.name;return fm(r,{name:d.name,styles:"@keyframes "+h+"{"+d.styles+"}"}),h},o=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=ma(c,r.registered);fm(r,d);},a=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return hm(r.registered,n,SL(c))};return {css:n,cx:a,injectGlobal:o,keyframes:i,hydrate:function(l){l.forEach(function(c){r.inserted[c]=!0;});},flush:function(){r.registered={},r.inserted={},r.sheet.flush();},sheet:r.sheet,cache:r,getRegisteredStyles:gf.bind(null,r.registered),merge:hm.bind(null,r.registered,n)}},SL=function e(t){for(var r="",n=0;n<t.length;n++){var i=t[n];if(i!=null){var o=void 0;switch(typeof i){case"boolean":break;case"object":{if(Array.isArray(i))o=e(i);else {o="";for(var a in i)i[a]&&a&&(o&&(o+=" "),o+=a);}break}default:o=i;}o&&(r&&(r+=" "),r+=o);}}return r},CL=wL({key:"css"}),vm=CL.css,Ty=function(e){return function(t,r){var n=f.useRef(!1);e(function(){return function(){n.current=!1;}},[]),e(function(){if(!n.current)n.current=!0;else return t()},r);}},on=function(){return on=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);}return t},on.apply(this,arguments)};function Ry(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function xL(e,t,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o);})}return new(r||(r=Promise))(function(o,a){function s(u){try{c(n.next(u));}catch(d){a(d);}}function l(u){try{c(n.throw(u));}catch(d){a(d);}}function c(u){u.done?o(u.value):i(u.value).then(s,l);}c((n=n.apply(e,t||[])).next());})}function EL(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(u){return l([c,u])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(r=0)),r;)try{if(n=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){r.label=c[1];break}if(c[0]===6&&r.label<o[1]){r.label=o[1],o=c;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(c);break}o[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r);}catch(u){c=[6,u],i=0;}finally{n=o=0;}if(c[0]&5)throw c[1];return {value:c[0]?c[1]:void 0,done:!0}}}function Gd(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return {next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ft(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value);}catch(s){a={error:s};}finally{try{i&&!i.done&&(r=n.return)&&r.call(n);}finally{if(a)throw a.error}}return o}function cr(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}var Bo=function(e){return typeof e=="function"},$L=function(e){return typeof e=="string"},My=function(e){return typeof e=="number"};function gt(e){var t=f.useRef(e);t.current=f.useMemo(function(){return e},[e]);var r=f.useRef();return r.current||(r.current=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return t.current.apply(this,n)}),r.current}const Il=Ty(f.useEffect);var Ny=function(e,t){var r=t.manual,n=t.ready,i=n===void 0?!0:n,o=t.defaultParams,a=o===void 0?[]:o,s=t.refreshDeps,l=s===void 0?[]:s,c=t.refreshDepsAction,u=f.useRef(!1);return u.current=!1,Il(function(){!r&&i&&(u.current=!0,e.run.apply(e,cr([],Ft(a),!1)));},[i]),Il(function(){u.current||r||(u.current=!0,c?c():e.refresh());},cr([],Ft(l),!1)),{onBefore:function(){if(!i)return {stopNow:!0}}}};Ny.onInit=function(e){var t=e.ready,r=t===void 0?!0:t,n=e.manual;return {loading:!n&&r}};const OL=Ny;function Kd(e,t){if(e===t)return !0;for(var r=0;r<e.length;r++)if(!Object.is(e[r],t[r]))return !1;return !0}function Iy(e,t){var r=f.useRef({deps:t,obj:void 0,initialized:!1}).current;return (r.initialized===!1||!Kd(r.deps,t))&&(r.deps=t,r.obj=e(),r.initialized=!0),r.obj}function qa(e){var t=f.useRef(e);return t.current=e,t}var PL=function(e){var t=qa(e);f.useEffect(function(){return function(){t.current();}},[]);};const vs=PL;var nl=new Map,TL=function(e,t,r){var n=nl.get(e);n!=null&&n.timer&&clearTimeout(n.timer);var i=void 0;t>-1&&(i=setTimeout(function(){nl.delete(e);},t)),nl.set(e,on(on({},r),{timer:i}));},RL=function(e){return nl.get(e)},il=new Map,ML=function(e){return il.get(e)},NL=function(e,t){il.set(e,t),t.then(function(r){return il.delete(e),r}).catch(function(){il.delete(e);});},Ci={},IL=function(e,t){Ci[e]&&Ci[e].forEach(function(r){return r(t)});},Ru=function(e,t){return Ci[e]||(Ci[e]=[]),Ci[e].push(t),function(){var n=Ci[e].indexOf(t);Ci[e].splice(n,1);}},AL=function(e,t){var r=t.cacheKey,n=t.cacheTime,i=n===void 0?5*60*1e3:n,o=t.staleTime,a=o===void 0?0:o,s=t.setCache,l=t.getCache,c=f.useRef(),u=f.useRef(),d=function(v,p){s?s(p):TL(v,i,p),IL(v,p.data);},h=function(v,p){return p===void 0&&(p=[]),l?l(p):RL(v)};return Iy(function(){if(r){var v=h(r);v&&Object.hasOwnProperty.call(v,"data")&&(e.state.data=v.data,e.state.params=v.params,(a===-1||new Date().getTime()-v.time<=a)&&(e.state.loading=!1)),c.current=Ru(r,function(p){e.setState({data:p});});}},[]),vs(function(){var v;(v=c.current)===null||v===void 0||v.call(c);}),r?{onBefore:function(v){var p=h(r,v);return !p||!Object.hasOwnProperty.call(p,"data")?{}:a===-1||new Date().getTime()-p.time<=a?{loading:!1,data:p==null?void 0:p.data,error:void 0,returnNow:!0}:{data:p==null?void 0:p.data,error:void 0}},onRequest:function(v,p){var m=ML(r);return m&&m!==u.current?{servicePromise:m}:(m=v.apply(void 0,cr([],Ft(p),!1)),u.current=m,NL(r,m),{servicePromise:m})},onSuccess:function(v,p){var m;r&&((m=c.current)===null||m===void 0||m.call(c),d(r,{data:v,params:p,time:new Date().getTime()}),c.current=Ru(r,function(g){e.setState({data:g});}));},onMutate:function(v){var p;r&&((p=c.current)===null||p===void 0||p.call(c),d(r,{data:v,params:e.state.params,time:new Date().getTime()}),c.current=Ru(r,function(m){e.setState({data:m});}));}}:{}};const kL=AL;var LL=function(e,t){var r=t.debounceWait,n=t.debounceLeading,i=t.debounceTrailing,o=t.debounceMaxWait,a=f.useRef(),s=f.useMemo(function(){var l={};return n!==void 0&&(l.leading=n),i!==void 0&&(l.trailing=i),o!==void 0&&(l.maxWait=o),l},[n,i,o]);return f.useEffect(function(){if(r){var l=e.runAsync.bind(e);return a.current=pg(function(c){c();},r,s),e.runAsync=function(){for(var c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];return new Promise(function(d,h){var v;(v=a.current)===null||v===void 0||v.call(a,function(){l.apply(void 0,cr([],Ft(c),!1)).then(d).catch(h);});})},function(){var c;(c=a.current)===null||c===void 0||c.cancel(),e.runAsync=l;}}},[r,s]),r?{onCancel:function(){var l;(l=a.current)===null||l===void 0||l.cancel();}}:{}};const FL=LL;var DL=function(e,t){var r=t.loadingDelay,n=t.ready,i=f.useRef();if(!r)return {};var o=function(){i.current&&clearTimeout(i.current);};return {onBefore:function(){return o(),n!==!1&&(i.current=setTimeout(function(){e.setState({loading:!0});},r)),{loading:!1}},onFinally:function(){o();},onCancel:function(){o();}}};const jL=DL;var zL=!!(typeof window<"u"&&window.document&&window.document.createElement);const ps=zL;function yh(){return ps?document.visibilityState!=="hidden":!0}var _a=[];function HL(e){return _a.push(e),function(){var r=_a.indexOf(e);_a.splice(r,1);}}if(ps){var WL=function(){if(yh())for(var e=0;e<_a.length;e++){var t=_a[e];t();}};window.addEventListener("visibilitychange",WL,!1);}var BL=function(e,t){var r=t.pollingInterval,n=t.pollingWhenHidden,i=n===void 0?!0:n,o=t.pollingErrorRetryCount,a=o===void 0?-1:o,s=f.useRef(),l=f.useRef(),c=f.useRef(0),u=function(){var d;s.current&&clearTimeout(s.current),(d=l.current)===null||d===void 0||d.call(l);};return Il(function(){r||u();},[r]),r?{onBefore:function(){u();},onError:function(){c.current+=1;},onSuccess:function(){c.current=0;},onFinally:function(){a===-1||a!==-1&&c.current<=a?s.current=setTimeout(function(){!i&&!yh()?l.current=HL(function(){e.refresh();}):e.refresh();},r):c.current=0;},onCancel:function(){u();}}:{}};const VL=BL;function UL(e,t){var r=!1;return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];r||(r=!0,e.apply(void 0,cr([],Ft(n),!1)),setTimeout(function(){r=!1;},t));}}function GL(){return ps&&typeof navigator.onLine<"u"?navigator.onLine:!0}var Oa=[];function KL(e){return Oa.push(e),function(){var r=Oa.indexOf(e);r>-1&&Oa.splice(r,1);}}if(ps){var pm=function(){if(!(!yh()||!GL()))for(var e=0;e<Oa.length;e++){var t=Oa[e];t();}};window.addEventListener("visibilitychange",pm,!1),window.addEventListener("focus",pm,!1);}var qL=function(e,t){var r=t.refreshOnWindowFocus,n=t.focusTimespan,i=n===void 0?5e3:n,o=f.useRef(),a=function(){var s;(s=o.current)===null||s===void 0||s.call(o);};return f.useEffect(function(){if(r){var s=UL(e.refresh.bind(e),i);o.current=KL(function(){s();});}return function(){a();}},[r,i]),vs(function(){a();}),{}};const XL=qL;var YL=function(e,t){var r=t.retryInterval,n=t.retryCount,i=f.useRef(),o=f.useRef(0),a=f.useRef(!1);return n?{onBefore:function(){a.current||(o.current=0),a.current=!1,i.current&&clearTimeout(i.current);},onSuccess:function(){o.current=0;},onError:function(){if(o.current+=1,n===-1||o.current<=n){var s=r??Math.min(1e3*Math.pow(2,o.current),3e4);i.current=setTimeout(function(){a.current=!0,e.refresh();},s);}else o.current=0;},onCancel:function(){o.current=0,i.current&&clearTimeout(i.current);}}:{}};const ZL=YL;var QL=function(e,t){var r=t.throttleWait,n=t.throttleLeading,i=t.throttleTrailing,o=f.useRef(),a={};return n!==void 0&&(a.leading=n),i!==void 0&&(a.trailing=i),f.useEffect(function(){if(r){var s=e.runAsync.bind(e);return o.current=E$(function(l){l();},r,a),e.runAsync=function(){for(var l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];return new Promise(function(u,d){var h;(h=o.current)===null||h===void 0||h.call(o,function(){s.apply(void 0,cr([],Ft(l),!1)).then(u).catch(d);});})},function(){var l;e.runAsync=s,(l=o.current)===null||l===void 0||l.cancel();}}},[r,n,i]),r?{onCancel:function(){var s;(s=o.current)===null||s===void 0||s.cancel();}}:{}};const JL=QL;var eF=function(e){f.useEffect(function(){e==null||e();},[]);};const wh=eF;var tF=function(){var e=Ft(f.useState({}),2),t=e[1];return f.useCallback(function(){return t({})},[])};const rF=tF;var nF=function(){function e(t,r,n,i){i===void 0&&(i={}),this.serviceRef=t,this.options=r,this.subscribe=n,this.initState=i,this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=on(on(on({},this.state),{loading:!r.manual}),i);}return e.prototype.setState=function(t){t===void 0&&(t={}),this.state=on(on({},this.state),t),this.subscribe();},e.prototype.runPluginHandler=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var i=this.pluginImpls.map(function(o){var a;return (a=o[t])===null||a===void 0?void 0:a.call.apply(a,cr([o],Ft(r),!1))}).filter(Boolean);return Object.assign.apply(Object,cr([{}],Ft(i),!1))},e.prototype.runAsync=function(){for(var t,r,n,i,o,a,s,l,c,u,d=[],h=0;h<arguments.length;h++)d[h]=arguments[h];return xL(this,void 0,void 0,function(){var v,p,m,g,b,w,S,E,x,y,C;return EL(this,function(R){switch(R.label){case 0:if(this.count+=1,v=this.count,p=this.runPluginHandler("onBefore",d),m=p.stopNow,g=m===void 0?!1:m,b=p.returnNow,w=b===void 0?!1:b,S=Ry(p,["stopNow","returnNow"]),g)return [2,new Promise(function(){})];if(this.setState(on({loading:!0,params:d},S)),w)return [2,Promise.resolve(S.data)];(r=(t=this.options).onBefore)===null||r===void 0||r.call(t,d),R.label=1;case 1:return R.trys.push([1,3,,4]),E=this.runPluginHandler("onRequest",this.serviceRef.current,d).servicePromise,E||(E=(C=this.serviceRef).current.apply(C,cr([],Ft(d),!1))),[4,E];case 2:return x=R.sent(),v!==this.count?[2,new Promise(function(){})]:(this.setState({data:x,error:void 0,loading:!1}),(i=(n=this.options).onSuccess)===null||i===void 0||i.call(n,x,d),this.runPluginHandler("onSuccess",x,d),(a=(o=this.options).onFinally)===null||a===void 0||a.call(o,d,x,void 0),v===this.count&&this.runPluginHandler("onFinally",d,x,void 0),[2,x]);case 3:if(y=R.sent(),v!==this.count)return [2,new Promise(function(){})];throw this.setState({error:y,loading:!1}),(l=(s=this.options).onError)===null||l===void 0||l.call(s,y,d),this.runPluginHandler("onError",y,d),(u=(c=this.options).onFinally)===null||u===void 0||u.call(c,d,void 0,y),v===this.count&&this.runPluginHandler("onFinally",d,void 0,y),y;case 4:return [2]}})})},e.prototype.run=function(){for(var t=this,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];this.runAsync.apply(this,cr([],Ft(r),!1)).catch(function(i){t.options.onError||console.error(i);});},e.prototype.cancel=function(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel");},e.prototype.refresh=function(){this.run.apply(this,cr([],Ft(this.state.params||[]),!1));},e.prototype.refreshAsync=function(){return this.runAsync.apply(this,cr([],Ft(this.state.params||[]),!1))},e.prototype.mutate=function(t){var r=Bo(t)?t(this.state.data):t;this.runPluginHandler("onMutate",r),this.setState({data:r});},e}();const iF=nF;function oF(e,t,r){t===void 0&&(t={}),r===void 0&&(r=[]);var n=t.manual,i=n===void 0?!1:n,o=Ry(t,["manual"]);var a=on({manual:i},o),s=qa(e),l=rF(),c=Iy(function(){var u=r.map(function(d){var h;return (h=d==null?void 0:d.onInit)===null||h===void 0?void 0:h.call(d,a)}).filter(Boolean);return new iF(s,a,l,Object.assign.apply(Object,cr([{}],Ft(u),!1)))},[]);return c.options=a,c.pluginImpls=r.map(function(u){return u(c,a)}),wh(function(){if(!i){var u=c.state.params||t.defaultParams||[];c.run.apply(c,cr([],Ft(u),!1));}}),vs(function(){c.cancel();}),{loading:c.state.loading,data:c.state.data,error:c.state.error,params:c.state.params||[],cancel:gt(c.cancel.bind(c)),refresh:gt(c.refresh.bind(c)),refreshAsync:gt(c.refreshAsync.bind(c)),run:gt(c.run.bind(c)),runAsync:gt(c.runAsync.bind(c)),mutate:gt(c.mutate.bind(c))}}function Ay(e,t,r){return oF(e,t,cr(cr([],Ft(r||[]),!1),[FL,jL,VL,XL,JL,OL,kL,ZL],!1))}function ky(e,t){e===void 0&&(e=!1);var r=Ft(f.useState(e),2),n=r[0],i=r[1],o=f.useMemo(function(){var a=t===void 0?!e:t,s=function(){return i(function(d){return d===e?a:e})},l=function(d){return i(d)},c=function(){return i(e)},u=function(){return i(a)};return {toggle:s,set:l,setLeft:c,setRight:u}},[]);return [n,o]}function aF(e){e===void 0&&(e=!1);var t=Ft(ky(!!e),2),r=t[0],n=t[1],i=n.toggle,o=n.set,a=f.useMemo(function(){var s=function(){return o(!0)},l=function(){return o(!1)};return {toggle:i,set:function(c){return o(!!c)},setTrue:s,setFalse:l}},[]);return [r,a]}function Lc(e,t){if(ps){if(!e)return t;var r;return Bo(e)?r=e():"current"in e?r=e.current:r=e,r}}var sF=function(e){var t=function(r,n,i){var o=f.useRef(!1),a=f.useRef([]),s=f.useRef([]),l=f.useRef();e(function(){var c,u=Array.isArray(i)?i:[i],d=u.map(function(h){return Lc(h)});if(!o.current){o.current=!0,a.current=d,s.current=n,l.current=r();return}(d.length!==a.current.length||!Kd(d,a.current)||!Kd(n,s.current))&&((c=l.current)===null||c===void 0||c.call(l),a.current=d,s.current=n,l.current=r());}),vs(function(){var c;(c=l.current)===null||c===void 0||c.call(l),o.current=!1;});};return t};const lF=sF;var cF=lF(f.useEffect);const Ly=cF;function Ii(e,t,r){r===void 0&&(r={});var n=qa(t);Ly(function(){var i=Lc(r.target,window);if(i!=null&&i.addEventListener){var o=function(a){return n.current(a)};return i.addEventListener(e,o,{capture:r.capture,once:r.once,passive:r.passive}),function(){i.removeEventListener(e,o,{capture:r.capture});}}},[e,r.capture,r.once,r.passive],r.target);}function ol(e){var t=Ft(f.useState(e),2),r=t[0],n=t[1],i=f.useRef(r);i.current=r;var o=f.useCallback(function(){return i.current},[]);return [r,n,o]}const Mu=function(e,t){var r=t||{},n=r.onEnter,i=r.onLeave,o=r.onChange,a=Ft(aF(!1),2),s=a[0],l=a[1],c=l.setTrue,u=l.setFalse;return Ii("mouseenter",function(){n==null||n(),c(),o==null||o(!0);},{target:e}),Ii("mouseleave",function(){i==null||i(),u(),o==null||o(!1);},{target:e}),s};var uF=function(e,t){return t===void 0&&(t=[]),g$(e,t)},dF=function(e,t,r){var n=f.useRef(),i=f.useRef(0);uF(t,n.current)||(n.current=t,i.current+=1),Ly(e,[i.current],r);};const fF=dF;var hF=/(mac|iphone|ipod|ipad)/i.test(typeof navigator<"u"?navigator==null?void 0:navigator.platform:"");const vF=hF;var Fy={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:vF?[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},qd={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"?Fy.meta.includes(e.keyCode):e.metaKey}};function pF(e){var t=Object.keys(qd).reduce(function(r,n){return qd[n](e)?r+1:r},0);return [16,17,18,91,92].includes(e.keyCode)?t:t+1}function mm(e,t,r){var n,i;if(!e.key)return !1;if(My(t))return e.keyCode===t;var o=t.split("."),a=0;try{for(var s=Gd(o),l=s.next();!l.done;l=s.next()){var c=l.value,u=qd[c],d=Fy[c.toLowerCase()];(u&&u(e)||d&&d===e.keyCode)&&a++;}}catch(h){n={error:h};}finally{try{l&&!l.done&&(i=s.return)&&i.call(s);}finally{if(n)throw n.error}}return r?a===o.length&&pF(e)===o.length:a===o.length}function mF(e,t){return Bo(e)?e:$L(e)||My(e)?function(r){return mm(r,e,t)}:Array.isArray(e)?function(r){return e.some(function(n){return mm(r,n,t)})}:function(){return !!e}}var gF=["keydown"];function Xt(e,t,r){var n=r||{},i=n.events,o=i===void 0?gF:i,a=n.target,s=n.exactMatch,l=s===void 0?!1:s,c=n.useCapture,u=c===void 0?!1:c,d=qa(t),h=qa(e);fF(function(){var v,p,m,g=Lc(a,window);if(g){var b=function(x){var y,C=mF(h.current,l);if(C(x))return (y=d.current)===null||y===void 0?void 0:y.call(d,x)};try{for(var w=Gd(o),S=w.next();!S.done;S=w.next()){var E=S.value;(m=g==null?void 0:g.addEventListener)===null||m===void 0||m.call(g,E,b,u);}}catch(x){v={error:x};}finally{try{S&&!S.done&&(p=w.return)&&p.call(w);}finally{if(v)throw v.error}}return function(){var x,y,C;try{for(var R=Gd(o),M=R.next();!M.done;M=R.next()){var O=M.value;(C=g==null?void 0:g.removeEventListener)===null||C===void 0||C.call(g,O,b,u);}}catch(N){x={error:N};}finally{try{M&&!M.done&&(y=R.return)&&y.call(R);}finally{if(x)throw x.error}}}}},[o],a);}function Dy(e){var t=f.useRef(0),r=Ft(f.useState(e),2),n=r[0],i=r[1],o=f.useCallback(function(a){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){i(a);});},[]);return vs(function(){cancelAnimationFrame(t.current);}),[n,o]}var bF={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 yF=function(e){var t=Ft(Dy(bF),2),r=t[0],n=t[1];return Ii("mousemove",function(i){var o=i.screenX,a=i.screenY,s=i.clientX,l=i.clientY,c=i.pageX,u=i.pageY,d={screenX:o,screenY:a,clientX:s,clientY:l,pageX:c,pageY:u,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},h=Lc(e);if(h){var v=h.getBoundingClientRect(),p=v.left,m=v.top,g=v.width,b=v.height;d.elementPosX=p+window.pageXOffset,d.elementPosY=m+window.pageYOffset,d.elementX=c-d.elementPosX,d.elementY=u-d.elementPosY,d.elementW=g,d.elementH=b;}n(d);},{target:function(){return document}}),r};var wF=function(){var e=f.useRef(!1);return f.useEffect(function(){return e.current=!1,function(){e.current=!0;}},[]),e};const SF=wF,CF=Ty(f.useLayoutEffect),xF="_modal-mask_qk630_1",EF="_modal_qk630_1",$F="_modal-header_qk630_23",_F="_modal-body_qk630_30",OF="_modal-title_qk630_35",PF="_btn-close_qk630_42",sn={modalMask:xF,modal:EF,modalHeader:$F,modalBody:_F,modalTitle:OF,btnClose:PF};let va=0;const TF=()=>{va++,document.body.style.overflow="hidden";},RF=()=>{va--,va<0&&(va=0),va===0&&(document.body.style.overflow="");};function Sh({show:e,onHide:t,children:r,styleModalMask:n,clsModalMask:i,styleModal:o,clsModal:a,width:s,hideWhenMaskOnClick:l=!1,hideWhenEsc:c=!1}){f.useLayoutEffect(()=>{e?TF():RF();},[e]);const u=f.useRef(null),d=lc(),{bg:h,c:v}=f.useMemo(()=>{const w=window.getComputedStyle(document.body)["background-color"],S=window.getComputedStyle(document.body).color;return {bg:w,c:S}},[d]),p=f.useMemo(()=>d?{"--bg":h,"--c":v,backgroundColor:h,color:v}:{},[h,v,d]),m=f.useId(),g=f.useMemo(()=>{const w=document.createElement("div");return w.setAttribute("data-id","base-modal-"+m),document.body.appendChild(w),w},[]),b=gt(w=>{var S;(S=u.current)!=null&&S.contains(w.target)||w.target.closest('.ant-tooltip-inner[role="tooltip"]')||l&&t();});return Xt("esc",w=>{e&&c&&(w.preventDefault(),w.stopImmediatePropagation(),setTimeout(t));}),e?$o.createPortal(F("div",{className:K(sn.modalMask,i),style:n,onClick:b,children:F("div",{className:K(sn.modal,a),style:{...p,width:s,...o},ref:u,children:r})}),g):null}const Ch=e=>F(Bn,{...e,name:"Close",size:18,style:{cursor:"pointer",marginLeft:10,...e.style}}),MF="_toast-container_1jzhe_1",NF="_single-line_1jzhe_17";function Cr(e,t=2e3){const r=document.createElement("div");r.className=MF,r.innerText=e;const{colorPrimary:n}=Lk();r.style.backgroundColor=n,!e.includes(`
`)&&!e.includes("<br")&&r.classList.add(NF),document.body.appendChild(r),setTimeout(()=>r.remove(),t);}const IF="请求失败, 请重试 !!!",AF="操作失败, 请重试 !!!";function jy(){return Cr(IF)}function zy(){return Cr(AF)}function kF(e){const t=ns({data:Array.from(e||[]),has(r){return this.data.some(n=>n[0]===r)},set(r,n){const i=this.data.find(o=>o[0]===r);return i?i[1]=n:this.data.push([r,n]),this},get(r){var n;return (n=this.data.find(i=>i[0]===r))==null?void 0:n[1]},delete(r){const n=this.data.findIndex(i=>i[0]===r);return n===-1?!1:(this.data.splice(n,1),!0)},clear(){this.data.splice(0);},get size(){return this.data.length},toJSON(){return new Map(this.data)},forEach(r){this.data.forEach(n=>{r(n[1],n[0],this);});},keys(){return this.data.map(r=>r[0]).values()},values(){return this.data.map(r=>r[1]).values()},entries(){return new Map(this.data).entries()},get[Symbol.toStringTag](){return "Map"},[Symbol.iterator](){return this.entries()}});return Object.defineProperties(t,{data:{enumerable:!1},size:{enumerable:!1},toJSON:{enumerable:!1}}),Object.seal(t),t}const Hy="27eb53fc9058f8c3";async function LF(){var c,u;const t=(await cf.get("https://passport.bilibili.com/login/app/third",{params:{appkey:Hy,api:"https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png",sign:"04224646d1fea004e79606d3b038c84a"},withCredentials:!0})).data;if(!((c=t==null?void 0:t.data)!=null&&c.has_login))return {errmsg:"你必须登录B站之后才能使用授权",json:t};if(!((u=t==null?void 0:t.data)!=null&&u.confirm_uri))return {errmsg:"无法获得授权网址",json:t};const r=t.data.confirm_uri;let n,i;const o=new Promise(d=>{const h=v=>{if(v.origin!="https://www.mcbbs.net"||!v.data)return;const p=v.data.match(/access_key=([0-9a-z]{32})/);if(!p||!p[1])return d({errmsg:"没有获得匹配的密钥"});d({access_key:p[1]});};window.addEventListener("message",h),i=()=>window.removeEventListener("message",h),n=setTimeout(()=>{d({errmsg:"获取授权超时"});},10*1e3);}),a=document.createElement("iframe");a.src=r,a.style.display="none",document.body.appendChild(a);function s(){a==null||a.remove(),i==null||i(),i=void 0,n&&(clearTimeout(n),n=void 0);}const l=await o;return s(),l}async function FF(){const e=await LF();if(!e.access_key)return Cr(e.errmsg||"");const t=e.access_key;return et.accessKey=t,Cr("获取成功"),t}function DF(){et.accessKey="",Cr("已删除 access_key");}const Wy="https://api.bilibili.com",By="https://app.bilibili.com",Fc=cf.create({baseURL:Wy});Fc.interceptors.request.use(function(e){var t;return (t=e.params)!=null&&t._||(e.params={...e.params,_:Date.now()}),e},function(e){return Promise.reject(e)});const Dc=cf.create({adapter:K1});Dc.interceptors.request.use(function(e){return e.params={appkey:Hy,access_key:et.accessKey||"",...e.params},e},function(e){return Promise.reject(e)});Dc.interceptors.response.use(e=>{if(e.config.responseType==="json"&&e.data&&e.data instanceof ArrayBuffer){const t=new TextDecoder,r=new Uint8Array(e.data),n=t.decode(r);e.data=n;try{e.data=JSON.parse(n);}catch{}}return e});function jF(){var t;const e=(t=document.cookie.match(/bili_jct=([0-9a-fA-F]{32})/))==null?void 0:t[1];if(!e)throw Cr("找不到 csrf token, 请检查是否登录"),new Error("找不到 csrf token, 请检查是否登录");return e}const ca=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Vy=new Set,Xd=typeof process=="object"&&process?process:{},Uy=(e,t,r,n)=>{typeof Xd.emitWarning=="function"?Xd.emitWarning(e,t,r,n):console.error(`[${r}] ${t}: ${e}`);};let Al=globalThis.AbortController,gm=globalThis.AbortSignal;var _m;if(typeof Al>"u"){gm=class{constructor(){ct(this,"onabort");ct(this,"_onabort",[]);ct(this,"reason");ct(this,"aborted",!1);}addEventListener(n,i){this._onabort.push(i);}},Al=class{constructor(){ct(this,"signal",new gm);t();}abort(n){var i,o;if(!this.signal.aborted){this.signal.reason=n,this.signal.aborted=!0;for(const a of this.signal._onabort)a(n);(o=(i=this.signal).onabort)==null||o.call(i,n);}}};let e=((_m=Xd.env)==null?void 0:_m.LRU_CACHE_IGNORE_AC_WARNING)!=="1";const t=()=>{e&&(e=!1,Uy("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t));};}const zF=e=>!Vy.has(e),ti=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),Gy=e=>ti(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?al:null:null;class al extends Array{constructor(t){super(t),this.fill(0);}}var wo;const ho=class{constructor(t,r){ct(this,"heap");ct(this,"length");if(!k(ho,wo))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(t),this.length=0;}static create(t){const r=Gy(t);if(!r)return [];Se(ho,wo,!0);const n=new ho(t,r);return Se(ho,wo,!1),n}push(t){this.heap[this.length++]=t;}pop(){return this.heap[--this.length]}};let sl=ho;wo=new WeakMap,je(sl,wo,!1);var Zr,Ir,hn,Qr,So,Kt,Jr,qt,Pt,Ae,vr,Ar,lr,Jt,en,rr,An,kn,tn,vn,ai,br,Ya,Zd,Oi,Ln,Za,kr,Dl,Ky,Pi,Co,Qa,pn,ri,mn,ni,Ja,Qd,xo,ll,Eo,cl,xt,Nt,es,Jd,Ti,pa;const Ah=class{constructor(t){je(this,Ya);je(this,Dl);je(this,pn);je(this,mn);je(this,Ja);je(this,xo);je(this,Eo);je(this,xt);je(this,es);je(this,Ti);je(this,Zr,void 0);je(this,Ir,void 0);je(this,hn,void 0);je(this,Qr,void 0);je(this,So,void 0);ct(this,"ttl");ct(this,"ttlResolution");ct(this,"ttlAutopurge");ct(this,"updateAgeOnGet");ct(this,"updateAgeOnHas");ct(this,"allowStale");ct(this,"noDisposeOnSet");ct(this,"noUpdateTTL");ct(this,"maxEntrySize");ct(this,"sizeCalculation");ct(this,"noDeleteOnFetchRejection");ct(this,"noDeleteOnStaleGet");ct(this,"allowStaleOnFetchAbort");ct(this,"allowStaleOnFetchRejection");ct(this,"ignoreFetchAbort");je(this,Kt,void 0);je(this,Jr,void 0);je(this,qt,void 0);je(this,Pt,void 0);je(this,Ae,void 0);je(this,vr,void 0);je(this,Ar,void 0);je(this,lr,void 0);je(this,Jt,void 0);je(this,en,void 0);je(this,rr,void 0);je(this,An,void 0);je(this,kn,void 0);je(this,tn,void 0);je(this,vn,void 0);je(this,ai,void 0);je(this,br,void 0);je(this,Oi,()=>{});je(this,Ln,()=>{});je(this,Za,()=>{});je(this,kr,()=>!1);je(this,Pi,t=>{});je(this,Co,(t,r,n)=>{});je(this,Qa,(t,r,n,i)=>{if(n||i)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});const{max:r=0,ttl:n,ttlResolution:i=1,ttlAutopurge:o,updateAgeOnGet:a,updateAgeOnHas:s,allowStale:l,dispose:c,disposeAfter:u,noDisposeOnSet:d,noUpdateTTL:h,maxSize:v=0,maxEntrySize:p=0,sizeCalculation:m,fetchMethod:g,noDeleteOnFetchRejection:b,noDeleteOnStaleGet:w,allowStaleOnFetchRejection:S,allowStaleOnFetchAbort:E,ignoreFetchAbort:x}=t;if(r!==0&&!ti(r))throw new TypeError("max option must be a nonnegative integer");const y=r?Gy(r):Array;if(!y)throw new Error("invalid max value: "+r);if(Se(this,Zr,r),Se(this,Ir,v),this.maxEntrySize=p||k(this,Ir),this.sizeCalculation=m,this.sizeCalculation){if(!k(this,Ir)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(g!==void 0&&typeof g!="function")throw new TypeError("fetchMethod must be a function if specified");if(Se(this,So,g),Se(this,ai,!!g),Se(this,qt,new Map),Se(this,Pt,new Array(r).fill(void 0)),Se(this,Ae,new Array(r).fill(void 0)),Se(this,vr,new y(r)),Se(this,Ar,new y(r)),Se(this,lr,0),Se(this,Jt,0),Se(this,en,sl.create(r)),Se(this,Kt,0),Se(this,Jr,0),typeof c=="function"&&Se(this,hn,c),typeof u=="function"?(Se(this,Qr,u),Se(this,rr,[])):(Se(this,Qr,void 0),Se(this,rr,void 0)),Se(this,vn,!!k(this,hn)),Se(this,br,!!k(this,Qr)),this.noDisposeOnSet=!!d,this.noUpdateTTL=!!h,this.noDeleteOnFetchRejection=!!b,this.allowStaleOnFetchRejection=!!S,this.allowStaleOnFetchAbort=!!E,this.ignoreFetchAbort=!!x,this.maxEntrySize!==0){if(k(this,Ir)!==0&&!ti(k(this,Ir)))throw new TypeError("maxSize must be a positive integer if specified");if(!ti(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");he(this,Dl,Ky).call(this);}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!w,this.updateAgeOnGet=!!a,this.updateAgeOnHas=!!s,this.ttlResolution=ti(i)||i===0?i:1,this.ttlAutopurge=!!o,this.ttl=n||0,this.ttl){if(!ti(this.ttl))throw new TypeError("ttl must be a positive integer if specified");he(this,Ya,Zd).call(this);}if(k(this,Zr)===0&&this.ttl===0&&k(this,Ir)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!k(this,Zr)&&!k(this,Ir)){const C="LRU_CACHE_UNBOUNDED";zF(C)&&(Vy.add(C),Uy("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",C,Ah));}}static unsafeExposeInternals(t){return {starts:k(t,kn),ttls:k(t,tn),sizes:k(t,An),keyMap:k(t,qt),keyList:k(t,Pt),valList:k(t,Ae),next:k(t,vr),prev:k(t,Ar),get head(){return k(t,lr)},get tail(){return k(t,Jt)},free:k(t,en),isBackgroundFetch:r=>{var n;return he(n=t,xt,Nt).call(n,r)},backgroundFetch:(r,n,i,o)=>{var a;return he(a=t,Eo,cl).call(a,r,n,i,o)},moveToTail:r=>{var n;return he(n=t,Ti,pa).call(n,r)},indexes:r=>{var n;return he(n=t,pn,ri).call(n,r)},rindexes:r=>{var n;return he(n=t,mn,ni).call(n,r)},isStale:r=>{var n;return k(n=t,kr).call(n,r)}}}get max(){return k(this,Zr)}get maxSize(){return k(this,Ir)}get calculatedSize(){return k(this,Jr)}get size(){return k(this,Kt)}get fetchMethod(){return k(this,So)}get dispose(){return k(this,hn)}get disposeAfter(){return k(this,Qr)}getRemainingTTL(t){return k(this,qt).has(t)?1/0:0}*entries(){for(const t of he(this,pn,ri).call(this))k(this,Ae)[t]!==void 0&&k(this,Pt)[t]!==void 0&&!he(this,xt,Nt).call(this,k(this,Ae)[t])&&(yield [k(this,Pt)[t],k(this,Ae)[t]]);}*rentries(){for(const t of he(this,mn,ni).call(this))k(this,Ae)[t]!==void 0&&k(this,Pt)[t]!==void 0&&!he(this,xt,Nt).call(this,k(this,Ae)[t])&&(yield [k(this,Pt)[t],k(this,Ae)[t]]);}*keys(){for(const t of he(this,pn,ri).call(this)){const r=k(this,Pt)[t];r!==void 0&&!he(this,xt,Nt).call(this,k(this,Ae)[t])&&(yield r);}}*rkeys(){for(const t of he(this,mn,ni).call(this)){const r=k(this,Pt)[t];r!==void 0&&!he(this,xt,Nt).call(this,k(this,Ae)[t])&&(yield r);}}*values(){for(const t of he(this,pn,ri).call(this))k(this,Ae)[t]!==void 0&&!he(this,xt,Nt).call(this,k(this,Ae)[t])&&(yield k(this,Ae)[t]);}*rvalues(){for(const t of he(this,mn,ni).call(this))k(this,Ae)[t]!==void 0&&!he(this,xt,Nt).call(this,k(this,Ae)[t])&&(yield k(this,Ae)[t]);}[Symbol.iterator](){return this.entries()}find(t,r={}){for(const n of he(this,pn,ri).call(this)){const i=k(this,Ae)[n],o=he(this,xt,Nt).call(this,i)?i.__staleWhileFetching:i;if(o!==void 0&&t(o,k(this,Pt)[n],this))return this.get(k(this,Pt)[n],r)}}forEach(t,r=this){for(const n of he(this,pn,ri).call(this)){const i=k(this,Ae)[n],o=he(this,xt,Nt).call(this,i)?i.__staleWhileFetching:i;o!==void 0&&t.call(r,o,k(this,Pt)[n],this);}}rforEach(t,r=this){for(const n of he(this,mn,ni).call(this)){const i=k(this,Ae)[n],o=he(this,xt,Nt).call(this,i)?i.__staleWhileFetching:i;o!==void 0&&t.call(r,o,k(this,Pt)[n],this);}}purgeStale(){let t=!1;for(const r of he(this,mn,ni).call(this,{allowStale:!0}))k(this,kr).call(this,r)&&(this.delete(k(this,Pt)[r]),t=!0);return t}dump(){const t=[];for(const r of he(this,pn,ri).call(this,{allowStale:!0})){const n=k(this,Pt)[r],i=k(this,Ae)[r],o=he(this,xt,Nt).call(this,i)?i.__staleWhileFetching:i;if(o===void 0||n===void 0)continue;const a={value:o};if(k(this,tn)&&k(this,kn)){a.ttl=k(this,tn)[r];const s=ca.now()-k(this,kn)[r];a.start=Math.floor(Date.now()-s);}k(this,An)&&(a.size=k(this,An)[r]),t.unshift([n,a]);}return t}load(t){this.clear();for(const[r,n]of t){if(n.start){const i=Date.now()-n.start;n.start=ca.now()-i;}this.set(r,n.value,n);}}set(t,r,n={}){var h,v,p;if(r===void 0)return this.delete(t),this;const{ttl:i=this.ttl,start:o,noDisposeOnSet:a=this.noDisposeOnSet,sizeCalculation:s=this.sizeCalculation,status:l}=n;let{noUpdateTTL:c=this.noUpdateTTL}=n;const u=k(this,Qa).call(this,t,r,n.size||0,s);if(this.maxEntrySize&&u>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),this.delete(t),this;let d=k(this,Kt)===0?void 0:k(this,qt).get(t);if(d===void 0)d=k(this,Kt)===0?k(this,Jt):k(this,en).length!==0?k(this,en).pop():k(this,Kt)===k(this,Zr)?he(this,xo,ll).call(this,!1):k(this,Kt),k(this,Pt)[d]=t,k(this,Ae)[d]=r,k(this,qt).set(t,d),k(this,vr)[k(this,Jt)]=d,k(this,Ar)[d]=k(this,Jt),Se(this,Jt,d),Cs(this,Kt)._++,k(this,Co).call(this,d,u,l),l&&(l.set="add"),c=!1;else {he(this,Ti,pa).call(this,d);const m=k(this,Ae)[d];if(r!==m){if(k(this,ai)&&he(this,xt,Nt).call(this,m)?m.__abortController.abort(new Error("replaced")):a||(k(this,vn)&&((h=k(this,hn))==null||h.call(this,m,t,"set")),k(this,br)&&((v=k(this,rr))==null||v.push([m,t,"set"]))),k(this,Pi).call(this,d),k(this,Co).call(this,d,u,l),k(this,Ae)[d]=r,l){l.set="replace";const g=m&&he(this,xt,Nt).call(this,m)?m.__staleWhileFetching:m;g!==void 0&&(l.oldValue=g);}}else l&&(l.set="update");}if(i!==0&&!k(this,tn)&&he(this,Ya,Zd).call(this),k(this,tn)&&(c||k(this,Za).call(this,d,i,o),l&&k(this,Ln).call(this,l,d)),!a&&k(this,br)&&k(this,rr)){const m=k(this,rr);let g;for(;g=m==null?void 0:m.shift();)(p=k(this,Qr))==null||p.call(this,...g);}return this}pop(){var t;try{for(;k(this,Kt);){const r=k(this,Ae)[k(this,lr)];if(he(this,xo,ll).call(this,!0),he(this,xt,Nt).call(this,r)){if(r.__staleWhileFetching)return r.__staleWhileFetching}else if(r!==void 0)return r}}finally{if(k(this,br)&&k(this,rr)){const r=k(this,rr);let n;for(;n=r==null?void 0:r.shift();)(t=k(this,Qr))==null||t.call(this,...n);}}}has(t,r={}){const{updateAgeOnHas:n=this.updateAgeOnHas,status:i}=r,o=k(this,qt).get(t);if(o!==void 0){const a=k(this,Ae)[o];if(he(this,xt,Nt).call(this,a)&&a.__staleWhileFetching===void 0)return !1;if(k(this,kr).call(this,o))i&&(i.has="stale",k(this,Ln).call(this,i,o));else return n&&k(this,Oi).call(this,o),i&&(i.has="hit",k(this,Ln).call(this,i,o)),!0}else i&&(i.has="miss");return !1}peek(t,r={}){const{allowStale:n=this.allowStale}=r,i=k(this,qt).get(t);if(i!==void 0&&(n||!k(this,kr).call(this,i))){const o=k(this,Ae)[i];return he(this,xt,Nt).call(this,o)?o.__staleWhileFetching:o}}async fetch(t,r={}){const{allowStale:n=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:o=this.noDeleteOnStaleGet,ttl:a=this.ttl,noDisposeOnSet:s=this.noDisposeOnSet,size:l=0,sizeCalculation:c=this.sizeCalculation,noUpdateTTL:u=this.noUpdateTTL,noDeleteOnFetchRejection:d=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:h=this.allowStaleOnFetchRejection,ignoreFetchAbort:v=this.ignoreFetchAbort,allowStaleOnFetchAbort:p=this.allowStaleOnFetchAbort,context:m,forceRefresh:g=!1,status:b,signal:w}=r;if(!k(this,ai))return b&&(b.fetch="get"),this.get(t,{allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:o,status:b});const S={allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:o,ttl:a,noDisposeOnSet:s,size:l,sizeCalculation:c,noUpdateTTL:u,noDeleteOnFetchRejection:d,allowStaleOnFetchRejection:h,allowStaleOnFetchAbort:p,ignoreFetchAbort:v,status:b,signal:w};let E=k(this,qt).get(t);if(E===void 0){b&&(b.fetch="miss");const x=he(this,Eo,cl).call(this,t,E,S,m);return x.__returned=x}else {const x=k(this,Ae)[E];if(he(this,xt,Nt).call(this,x)){const O=n&&x.__staleWhileFetching!==void 0;return b&&(b.fetch="inflight",O&&(b.returnedStale=!0)),O?x.__staleWhileFetching:x.__returned=x}const y=k(this,kr).call(this,E);if(!g&&!y)return b&&(b.fetch="hit"),he(this,Ti,pa).call(this,E),i&&k(this,Oi).call(this,E),b&&k(this,Ln).call(this,b,E),x;const C=he(this,Eo,cl).call(this,t,E,S,m),M=C.__staleWhileFetching!==void 0&&n;return b&&(b.fetch=y?"stale":"refresh",M&&y&&(b.returnedStale=!0)),M?C.__staleWhileFetching:C.__returned=C}}get(t,r={}){const{allowStale:n=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:o=this.noDeleteOnStaleGet,status:a}=r,s=k(this,qt).get(t);if(s!==void 0){const l=k(this,Ae)[s],c=he(this,xt,Nt).call(this,l);return a&&k(this,Ln).call(this,a,s),k(this,kr).call(this,s)?(a&&(a.get="stale"),c?(a&&n&&l.__staleWhileFetching!==void 0&&(a.returnedStale=!0),n?l.__staleWhileFetching:void 0):(o||this.delete(t),a&&n&&(a.returnedStale=!0),n?l:void 0)):(a&&(a.get="hit"),c?l.__staleWhileFetching:(he(this,Ti,pa).call(this,s),i&&k(this,Oi).call(this,s),l))}else a&&(a.get="miss");}delete(t){var n,i,o,a;let r=!1;if(k(this,Kt)!==0){const s=k(this,qt).get(t);if(s!==void 0)if(r=!0,k(this,Kt)===1)this.clear();else {k(this,Pi).call(this,s);const l=k(this,Ae)[s];he(this,xt,Nt).call(this,l)?l.__abortController.abort(new Error("deleted")):(k(this,vn)||k(this,br))&&(k(this,vn)&&((n=k(this,hn))==null||n.call(this,l,t,"delete")),k(this,br)&&((i=k(this,rr))==null||i.push([l,t,"delete"]))),k(this,qt).delete(t),k(this,Pt)[s]=void 0,k(this,Ae)[s]=void 0,s===k(this,Jt)?Se(this,Jt,k(this,Ar)[s]):s===k(this,lr)?Se(this,lr,k(this,vr)[s]):(k(this,vr)[k(this,Ar)[s]]=k(this,vr)[s],k(this,Ar)[k(this,vr)[s]]=k(this,Ar)[s]),Cs(this,Kt)._--,k(this,en).push(s);}}if(k(this,br)&&((o=k(this,rr))!=null&&o.length)){const s=k(this,rr);let l;for(;l=s==null?void 0:s.shift();)(a=k(this,Qr))==null||a.call(this,...l);}return r}clear(){var t,r,n;for(const i of he(this,mn,ni).call(this,{allowStale:!0})){const o=k(this,Ae)[i];if(he(this,xt,Nt).call(this,o))o.__abortController.abort(new Error("deleted"));else {const a=k(this,Pt)[i];k(this,vn)&&((t=k(this,hn))==null||t.call(this,o,a,"delete")),k(this,br)&&((r=k(this,rr))==null||r.push([o,a,"delete"]));}}if(k(this,qt).clear(),k(this,Ae).fill(void 0),k(this,Pt).fill(void 0),k(this,tn)&&k(this,kn)&&(k(this,tn).fill(0),k(this,kn).fill(0)),k(this,An)&&k(this,An).fill(0),Se(this,lr,0),Se(this,Jt,0),k(this,en).length=0,Se(this,Jr,0),Se(this,Kt,0),k(this,br)&&k(this,rr)){const i=k(this,rr);let o;for(;o=i==null?void 0:i.shift();)(n=k(this,Qr))==null||n.call(this,...o);}}};let Yd=Ah;Zr=new WeakMap,Ir=new WeakMap,hn=new WeakMap,Qr=new WeakMap,So=new WeakMap,Kt=new WeakMap,Jr=new WeakMap,qt=new WeakMap,Pt=new WeakMap,Ae=new WeakMap,vr=new WeakMap,Ar=new WeakMap,lr=new WeakMap,Jt=new WeakMap,en=new WeakMap,rr=new WeakMap,An=new WeakMap,kn=new WeakMap,tn=new WeakMap,vn=new WeakMap,ai=new WeakMap,br=new WeakMap,Ya=new WeakSet,Zd=function(){const t=new al(k(this,Zr)),r=new al(k(this,Zr));Se(this,tn,t),Se(this,kn,r),Se(this,Za,(o,a,s=ca.now())=>{if(r[o]=a!==0?s:0,t[o]=a,a!==0&&this.ttlAutopurge){const l=setTimeout(()=>{k(this,kr).call(this,o)&&this.delete(k(this,Pt)[o]);},a+1);l.unref&&l.unref();}}),Se(this,Oi,o=>{r[o]=t[o]!==0?ca.now():0;}),Se(this,Ln,(o,a)=>{if(t[a]){const s=t[a],l=r[a];o.ttl=s,o.start=l,o.now=n||i();const c=o.now-l;o.remainingTTL=s-c;}});let n=0;const i=()=>{const o=ca.now();if(this.ttlResolution>0){n=o;const a=setTimeout(()=>n=0,this.ttlResolution);a.unref&&a.unref();}return o};this.getRemainingTTL=o=>{const a=k(this,qt).get(o);if(a===void 0)return 0;const s=t[a],l=r[a];if(s===0||l===0)return 1/0;const c=(n||i())-l;return s-c},Se(this,kr,o=>t[o]!==0&&r[o]!==0&&(n||i())-r[o]>t[o]);},Oi=new WeakMap,Ln=new WeakMap,Za=new WeakMap,kr=new WeakMap,Dl=new WeakSet,Ky=function(){const t=new al(k(this,Zr));Se(this,Jr,0),Se(this,An,t),Se(this,Pi,r=>{Se(this,Jr,k(this,Jr)-t[r]),t[r]=0;}),Se(this,Qa,(r,n,i,o)=>{if(he(this,xt,Nt).call(this,n))return 0;if(!ti(i))if(o){if(typeof o!="function")throw new TypeError("sizeCalculation must be a function");if(i=o(n,r),!ti(i))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return i}),Se(this,Co,(r,n,i)=>{if(t[r]=n,k(this,Ir)){const o=k(this,Ir)-t[r];for(;k(this,Jr)>o;)he(this,xo,ll).call(this,!0);}Se(this,Jr,k(this,Jr)+t[r]),i&&(i.entrySize=n,i.totalCalculatedSize=k(this,Jr));});},Pi=new WeakMap,Co=new WeakMap,Qa=new WeakMap,pn=new WeakSet,ri=function*({allowStale:t=this.allowStale}={}){if(k(this,Kt))for(let r=k(this,Jt);!(!he(this,Ja,Qd).call(this,r)||((t||!k(this,kr).call(this,r))&&(yield r),r===k(this,lr)));)r=k(this,Ar)[r];},mn=new WeakSet,ni=function*({allowStale:t=this.allowStale}={}){if(k(this,Kt))for(let r=k(this,lr);!(!he(this,Ja,Qd).call(this,r)||((t||!k(this,kr).call(this,r))&&(yield r),r===k(this,Jt)));)r=k(this,vr)[r];},Ja=new WeakSet,Qd=function(t){return t!==void 0&&k(this,qt).get(k(this,Pt)[t])===t},xo=new WeakSet,ll=function(t){var o,a;const r=k(this,lr),n=k(this,Pt)[r],i=k(this,Ae)[r];return k(this,ai)&&he(this,xt,Nt).call(this,i)?i.__abortController.abort(new Error("evicted")):(k(this,vn)||k(this,br))&&(k(this,vn)&&((o=k(this,hn))==null||o.call(this,i,n,"evict")),k(this,br)&&((a=k(this,rr))==null||a.push([i,n,"evict"]))),k(this,Pi).call(this,r),t&&(k(this,Pt)[r]=void 0,k(this,Ae)[r]=void 0,k(this,en).push(r)),k(this,Kt)===1?(Se(this,lr,Se(this,Jt,0)),k(this,en).length=0):Se(this,lr,k(this,vr)[r]),k(this,qt).delete(n),Cs(this,Kt)._--,r},Eo=new WeakSet,cl=function(t,r,n,i){const o=r===void 0?void 0:k(this,Ae)[r];if(he(this,xt,Nt).call(this,o))return o;const a=new Al,{signal:s}=n;s==null||s.addEventListener("abort",()=>a.abort(s.reason),{signal:a.signal});const l={signal:a.signal,options:n,context:i},c=(m,g=!1)=>{const{aborted:b}=a.signal,w=n.ignoreFetchAbort&&m!==void 0;if(n.status&&(b&&!g?(n.status.fetchAborted=!0,n.status.fetchError=a.signal.reason,w&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),b&&!w&&!g)return d(a.signal.reason);const S=v;return k(this,Ae)[r]===v&&(m===void 0?S.__staleWhileFetching?k(this,Ae)[r]=S.__staleWhileFetching:this.delete(t):(n.status&&(n.status.fetchUpdated=!0),this.set(t,m,l.options))),m},u=m=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=m),d(m)),d=m=>{const{aborted:g}=a.signal,b=g&&n.allowStaleOnFetchAbort,w=b||n.allowStaleOnFetchRejection,S=w||n.noDeleteOnFetchRejection,E=v;if(k(this,Ae)[r]===v&&(!S||E.__staleWhileFetching===void 0?this.delete(t):b||(k(this,Ae)[r]=E.__staleWhileFetching)),w)return n.status&&E.__staleWhileFetching!==void 0&&(n.status.returnedStale=!0),E.__staleWhileFetching;if(E.__returned===E)throw m},h=(m,g)=>{var w;const b=(w=k(this,So))==null?void 0:w.call(this,t,o,l);b&&b instanceof Promise&&b.then(S=>m(S),g),a.signal.addEventListener("abort",()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(m(),n.allowStaleOnFetchAbort&&(m=S=>c(S,!0)));});};n.status&&(n.status.fetchDispatched=!0);const v=new Promise(h).then(c,u),p=Object.assign(v,{__abortController:a,__staleWhileFetching:o,__returned:void 0});return r===void 0?(this.set(t,p,{...l.options,status:void 0}),r=k(this,qt).get(t)):k(this,Ae)[r]=p,p},xt=new WeakSet,Nt=function(t){if(!k(this,ai))return !1;const r=t;return !!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof Al},es=new WeakSet,Jd=function(t,r){k(this,Ar)[r]=t,k(this,vr)[t]=r;},Ti=new WeakSet,pa=function(t){t!==k(this,Jt)&&(t===k(this,lr)?Se(this,lr,k(this,vr)[t]):he(this,es,Jd).call(this,k(this,Ar)[t],k(this,vr)[t]),he(this,es,Jd).call(this,k(this,Jt),t),Se(this,Jt,t));};async function HF(e){return (await Fc.get("/pvideo",{params:{aid:e}})).data.data}async function WF(e){return []}const Nu=new Yd({max:200});async function BF(e){if(Nu.has(e))return Nu.get(e);const[t,r]=await Promise.all([HF(e),WF()]);return Nu.set(e,{pvideoData:t,dmData:r}),{pvideoData:t,dmData:r}}function qy(e){return async function(r){const n=new FormData;n.append("aid",r),n.append("csrf",jF());const o=(await Fc.post("/x/v2/history/toview/"+e,n,{withCredentials:!0})).data,a=(o==null?void 0:o.code)===0&&(o==null?void 0:o.message)==="0";return a||Cr((o==null?void 0:o.message)||"出错了"),a}}const VF=qy("add"),UF=qy("del"),Xy=e=>{const t={dislike:"/x/feed/dislike",cancel:"/x/feed/dislike/cancel"}[e];return async function(r,n){const o=(await Dc.get(By+t,{params:{goto:r.goto,id:r.param,reason_id:n,build:"1",mobi_app:"android",idx:(Date.now()/1e3).toFixed(0)}})).data;return (o==null?void 0:o.code)===0&&(o==null?void 0:o.message)==="0"}},GF=Xy("dislike"),KF=Xy("cancel"),qF="_modal_1rloz_1",XF="_title-desc_1rloz_4",YF="_reason-list_1rloz_8",ZF="_reason_1rloz_8",QF="_active_1rloz_29",JF="_reason-no_1rloz_33",eD="_tips-container_1rloz_47",tD="_tips_1rloz_47",Br={modal:qF,titleDesc:XF,reasonList:YF,reason:ZF,active:QF,reasonNo:JF,tipsContainer:eD,tips:tD},jc=kF();function rD(){return Lo(jc)}function nD(e){const t=rD();if(e)return t.get(e)}function iD({show:e,onHide:t,item:r}){const[n,i]=f.useState(!1),o=gt(async p=>{if(!r)return;let m=!1,g;try{i(!0),m=await GF(r,p.id);}catch(b){g=b;}finally{i(!1);}if(g)return console.error(g.stack||g),jy();m?Cr("已标记不想看"):zy(),m&&(jc.set(r.param,{...p}),t());}),a=f.useMemo(()=>{var p;return ((p=r==null?void 0:r.three_point)==null?void 0:p.dislike_reasons)||[]},[r]),s=()=>!!e&&!!r,l=["1","2","3","4","5","6"];Xt(l,p=>{if(!s()||!l.includes(p.key))return;const m=Number(p.key)-1;u(m);const g=document.querySelectorAll(`.${Br.reason}`)[m]||null;g==null||g.click();});const[c,u]=f.useState(a.length-1);CF(()=>{u(a.length-1);},[a]);const d=p=>()=>{if(!s())return;const m=c+p;m<0||m>a.length-1||u(m);};Xt("leftarrow",d(-1)),Xt("rightarrow",d(1)),Xt("uparrow",d(-2)),Xt("downarrow",d(2)),Xt("enter",p=>{var m;s()&&(c<0||c>a.length-1||(p.preventDefault(),p.stopImmediatePropagation(),(m=document.querySelector(`.${Br.reason}.${Br.active}`))==null||m.click()));});const h=f.useMemo(()=>{var p;return ((p=a[c])==null?void 0:p.name)||""},[a,c]),{colorPrimary:v}=Wo();return ee(Sh,{show:e,onHide:t,clsModal:Br.modal,hideWhenMaskOnClick:!0,hideWhenEsc:!0,children:[ee("div",{className:sn.modalHeader,children:[ee("div",{className:sn.modalTitle,children:["我不想看",F("span",{className:Br.titleDesc,children:"(选择后将减少相似内容推荐)"})]}),F("div",{className:"space",style:{flex:1}}),F(Ch,{onClick:t})]}),ee("div",{className:sn.modalBody,children:[F("div",{className:Br.reasonList,children:a.map((p,m)=>ee("button",{className:K(Br.reason,{[Br.active]:m===c}),style:{...m===c&&{borderColor:v}},"data-id":p.id,onClick:()=>{u(m),o(p);},disabled:n,children:[F("span",{className:Br.reasonNo,style:{backgroundColor:v},children:m+1}),p.name]},p.id))}),ee("div",{className:Br.tipsContainer,children:[ee("div",{className:Br.tips,children:[F(Bn,{name:"Info",size:15,style:{marginRight:5}}),"使用删除键打开弹框, 数字键选择, Esc 关闭"]}),h&&ee("div",{className:Br.tips,children:[F(Bn,{name:"Info",size:15,style:{marginRight:5}}),"已选择「",h,"」, 回车键提交"]})]})]})]})}const ul={show:!1,onHide:Zy,item:null},Yy=ns({value:ul.show}),oD=function(){return Lo(Yy).value};function Zy(){setTimeout(()=>{Qy({show:!1,item:null});});}function Qy(e){Object.assign(ul,e),Yy.value=ul.show,aD().render(F(iD,{...ul,onHide:Zy}));}let Iu;function aD(){if(!Iu){const e=document.createElement("div");e.classList.add("show-dislike-container"),document.body.appendChild(e),Iu=Ac(e);}return Iu}function sD(e){e!=null&&e.param&&jc.has(e.param)||Qy({show:!0,item:e});}const Ma=class{static av2bv(t){const r=(t^this.XOR)+this.ADD,n=["B","V","1",,,"4",,"1",,"7"];for(let i=0;i<6;i++)n[this.S[i]]=this.TABEL[Math.floor(r/58**i)%58];return n.join("")}static bv2av(t){let r=0;for(let n=0;n<6;n++)r+=this.TR[t[this.S[n]]]*58**n;return r-this.ADD^this.XOR}};let ii=Ma;ct(ii,"TABEL","fZodR9XQDSUm21yCkr6zBqiveYah8bt4xsWpHnJE7jL5VG3guMTKNPAwcF"),ct(ii,"TR",{}),ct(ii,"S",[11,10,3,8,4,6]),ct(ii,"XOR",177451812),ct(ii,"ADD",8728348608),(()=>{const t=Ma.TABEL.length;for(let r=0;r<t;r++)Ma.TR[Ma.TABEL[r]]=r;})();function lD(e){return e||(e=0),sc.duration(e||0,"seconds").format(e>=3600?"HH:mm:ss":"mm:ss")}function Au(e){if(!e)return "";if(e<=9999)return e.toString();let t=(e/1e4).toFixed(1);return t=t.replace(/\.0$/,""),`${t}万`}function bm(e){if(e){if(e==="-")return 0;if(/^\d+$/.test(e))return Number(e);if(/^\d+(\.\d+?)?万$/.test(e))return Number(e.slice(0,-1))*1e4}}const cD="_bili-video-card_mlccj_1",uD="_image-wrapper_mlccj_4",dD="_preview-card-wrapper_mlccj_8",fD="_preview-card-inner_mlccj_21",hD="_watch-later_mlccj_25",vD="_badge_mlccj_28",pD="_recommend-reason_mlccj_37",mD="_bangumi-desc_mlccj_52",gD="_btn-dislike_mlccj_55",bD="_btn-dislike-icon_mlccj_70",yD="_btn-dislike-tip_mlccj_77",wD="_disliked-wrapper_mlccj_92",SD="_dislike-content-cover_mlccj_106",CD="_dislike-content-cover-inner_mlccj_112",xD="_dislike-icon_mlccj_123",ED="_dislike-reason_mlccj_126",$D="_dislike-desc_mlccj_130",_D="_dislike-content-action_mlccj_134",OD="_skeleton-active_mlccj_151",PD="_ant-skeleton-loading_mlccj_1",Yt={biliVideoCard:cD,imageWrapper:uD,previewCardWrapper:dD,previewCardInner:fD,watchLater:hD,badge:vD,recommendReason:pD,bangumiDesc:mD,btnDislike:gD,btnDislikeIcon:bD,btnDislikeTip:yD,dislikedWrapper:wD,dislikeContentCover:SD,dislikeContentCoverInner:CD,dislikeIcon:xD,dislikeReason:ED,dislikeDesc:$D,dislikeContentAction:_D,skeletonActive:OD,antSkeletonLoading:PD};function TD(...e){for(const t of e)if(!isNaN(t))return t;return 0}function RD({className:e,videoDuration:t,pvideo:r,mouseEnterRelativeX:n,previewAnimationProgress:i}){const o=f.useRef(null),a=yF(o),[s,l]=f.useState(()=>({width:0,height:0}));wh(()=>{var h;const d=(h=o.current)==null?void 0:h.getBoundingClientRect();d&&l({width:d.width,height:d.height});});let c=0;if(typeof i=="number")c=i;else {const d=TD(a.elementX,n||0);s.width&&d&&!isNaN(d)&&(c=d/s.width,c<0&&(c=0),c>1&&(c=1));}const u={videoDuration:t,pvideo:r,elWidth:s.width,elHeight:s.height,progress:c};return F("div",{ref:o,className:K(Yt.previewCardWrapper,e),children:!!(r&&s.width&&s.height&&c)&&F(MD,{...u})})}function MD({videoDuration:e,pvideo:t,elWidth:r,elHeight:n,progress:i}){var x;const o=Math.floor((e||0)*i);let a=f.useMemo(()=>{const y=(t==null?void 0:t.index)||[];let C=ID(y,o);return C!==-1?C:o>y[y.length-1]?(C=Math.floor(y.length*i)-1,C<0&&(C=0),C):0},[t,o]);const{img_x_len:s,img_y_len:l,img_x_size:c,img_y_size:u}=t,d=l*s;a=a+1;const h=Math.floor(a/d),v=a-h*d,p=((x=t.image)==null?void 0:x[h])||"",m=Math.floor(v/s)+1,g=v-(m-1)*s,b=r*s,w=n*l,S=(m-1)*n,E=(g-1)*r;return F("div",{className:Yt.previewCardInner,style:{backgroundColor:"black",backgroundImage:`url(${p})`,backgroundPosition:`-${E}px -${S}px`,backgroundSize:`${b}px ${w}px`},children:F(ND,{progress:i})})}function ND({progress:e}){const{colorPrimary:t}=Wo();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:t,height:"100%",width:`${e*100}%`}})})}function ID(e,t){let r=0,n=e.length-1,i=-1;for(;r<=n;){const s=Math.floor((r+n)/2),l=e[s];if(t===l)return s;l<t?(r=s+1,i=s):n=s-1;}if(i===-1)return -1;const o=e[i],a=e[i+1]??0;return o<t&&t<a?i:-1}const ef={play:"#widget-video-play-count",danmaku:"#widget-video-danmaku",like:"#widget-agree",bangumiFollow:"#widget-followed"},Xa={1:"play",2:"like",3:"danmaku",4:"bangumiFollow",20:"like"},AD={bangumiFollow:1.3},kD=e=>{const t=Xa[e]||Xa[1];return ef[t]},LD=e=>{const t=Xa[e];if(t)return AD[t]};function ym(e){return {iconSvgName:kD(e),iconSvgScale:LD(e)}}function Jy(e){var R,M,O;const t=e.api==="pc",r=e.api==="app",n=String(t?e.id:e.param),i=t?e.bvid:"",o=e.goto,a=N=>{if(t)return;const{cover_left_icon_1:_,cover_left_text_1:$,cover_left_icon_2:P,cover_left_text_2:T}=e;if(_&&Xa[_]===N)return bm($);if(P&&Xa[P]===N)return bm(T)},s=t?e.stat.view:a("play"),l=t?e.stat.like:void 0,c=void 0,u=t?e.stat.danmaku:a("danmaku"),d=e.title,h=t?e.pic:e.cover,v=t?e.pubdate:void 0,p=(t?e.duration:(R=e.player_args)==null?void 0:R.duration)||0,m=t?e.owner.name:e.args.up_name,g=t?e.owner.face:void 0,b=t?e.owner.mid:e.args.up_id,w=void 0,S=t?void 0:e.badge,E=t?void 0:((M=e.desc_button)==null?void 0:M.text)||e.desc||"",x=t?void 0:e.badge_style,y=t?(O=e.rcmd_reason)==null?void 0:O.content:e.rcmd_reason,C=t?void 0:e.rcmd_reason_style;return {isPc:t,isApp:r,id:n,bvid:i,goto:o,play:s,like:l,coin:c,danmaku:u,title:d,coverRaw:h,pubdate:v,duration:p,name:m,face:g,mid:b,favorite:w,recommendReason:y,recommendReasonStyleConfig:C,appBadge:S,appBadgeDesc:E,appBadgeStyleConfig:x}}const FD=sc().format("YYYY"),DD=e=>{if(!e)return "";const t=sc.unix(e);return t.format("YYYY")===FD?t.format("M-D"):t.format("YY-M-D")},jD=e=>(e||"").replace(/^http:\/\//,"https://"),kl=f.memo(f.forwardRef(function({style:t,className:r,item:n,loading:i,active:o,...a},s){i=i??!n;const l=ee("div",{className:K("bili-video-card__skeleton",{hide:!i,[Yt.skeletonActive]:i}),children:[F("div",{className:"bili-video-card__skeleton--cover"}),F("div",{className:"bili-video-card__skeleton--info",children:ee("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"})]})})]}),c=nD((n==null?void 0:n.api)==="app"&&n.param),u=f.useRef(null),d=f.useRef(null);return f.useImperativeHandle(s,()=>({async onCancelDislike(){var h;await((h=u.current)==null?void 0:h.onCancelDislike());},async onToggleWatchLater(){var h;await((h=d.current)==null?void 0:h.onToggleWatchLater());},onTriggerDislike(){var h;(h=d.current)==null||h.onTriggerDislike();},onStartPreviewAnimation(){var h;(h=d.current)==null||h.onStartPreviewAnimation();},onHotkeyPreviewAnimation(){var h;(h=d.current)==null||h.onHotkeyPreviewAnimation();}}),[u,d]),ee("div",{style:t,className:K("bili-video-card",Yt.biliVideoCard,r),...a,children:[l,!i&&n&&(c?F(zD,{ref:u,item:n,dislikedReason:c}):F(HD,{ref:d,item:n,active:o}))]})})),zD=f.memo(f.forwardRef(function({dislikedReason:t,item:r},n){const i=gt(async()=>{if(!(t!=null&&t.id))return;let o=!1,a;try{o=await KF(r,t.id);}catch(s){a=s;}if(a)return console.error(a.stack||a),jy();o?Cr("已撤销"):zy(),o&&jc.delete(r.param);});return f.useImperativeHandle(n,()=>({onCancelDislike:i}),[]),ee("div",{className:K(Yt.dislikedWrapper),children:[F("div",{className:Yt.dislikeContentCover,children:ee("div",{className:Yt.dislikeContentCoverInner,children:[F(Bn,{name:"DistraughtFace",size:32,className:Yt.dislikeIcon}),F("div",{className:Yt.dislikeReason,children:t==null?void 0:t.name}),F("div",{className:Yt.dislikeDesc,children:(t==null?void 0:t.toast)||"将减少此类内容推荐"})]})}),F("div",{className:Yt.dislikeContentAction,children:ee("button",{onClick:i,children:[F(Bn,{name:"Return",size:"16",style:{marginRight:4,marginTop:-2}}),"撤销"]})})]})})),HD=f.memo(f.forwardRef(function({item:t,active:r=!1},n){const i=t.api==="pc",o=t.api==="app",{id:a,bvid:s,goto:l,play:c,like:u,coin:d,danmaku:h,title:v,coverRaw:p,pubdate:m,duration:g,name:b,face:w,mid:S,recommendReason:E,recommendReasonStyleConfig:x,favorite:y,appBadge:C,appBadgeDesc:R,appBadgeStyleConfig:M}=f.useMemo(()=>Jy(t),[t]),O=t.goto==="av",N=t.goto==="bangumi",_=t.goto==="picture";["av","bangumi","picture"].includes(l)||console.warn(`[${di}]: none (av,bangumi,picture) goto type %s`,l,t);const $=f.useMemo(()=>DD(m),[m]),P=f.useMemo(()=>jD(p),[p]),[T,A]=f.useState(null),I=f.useRef(!1),L=gt(async()=>{if(!T&&!I.current)try{I.current=!0,A(await BF(a));}finally{I.current=!1;}}),j=f.useRef(null),[B,G]=f.useState(void 0);Ii("mouseenter",Fe=>{var He;const Pe=(He=j.current)==null?void 0:He.getBoundingClientRect();if(!Pe)return;const{x:De}=Pe,Te=Fe.pageX-window.pageXOffset-De;G(Te);},{target:j});const z=Mu(j),{autoPreviewWhenHover:V}=_n(),{onStartPreviewAnimation:q,onHotkeyPreviewAnimation:U,previewAnimationProgress:Q}=WD({id:a,title:v,autoPreviewWhenHover:V,active:r,tryFetchVideoData:L,videoPreviewWrapperRef:j});Il(()=>{r&&(unsafeWindow[`${Jw}_activeItem`]=t,et.autoPreviewWhenKeyboardSelect&&q());},[r]);const ie=f.useRef(null),Z=Mu(ie),[te,ae]=f.useState(!1),{accessKey:ue}=_n(),$e=!!ue;f.useEffect(()=>{z&&L();},[z]),f.useImperativeHandle(n,()=>({onToggleWatchLater:se,onTriggerDislike:de,onStartPreviewAnimation:q,onHotkeyPreviewAnimation:U}),[]);const[J,oe]=f.useState(!1),se=gt(async Fe=>{if(Fe==null||Fe.preventDefault(),J)return;oe(!0);const Pe=te?UF:VF;let De=!1;try{De=await Pe(a);}finally{oe(!1);}De&&ae(Te=>!Te);}),re=f.useRef(null),xe=Mu(re),de=gt(Fe=>{Fe==null||Fe.stopPropagation(),Fe==null||Fe.preventDefault(),o&&sD(t);}),ge=f.useMemo(()=>i?O&&s?`/video/${s}/`:t.uri:(()=>{var Fe;if(t.uri.startsWith("http://")||t.uri.startsWith("https://"))return t.uri;if(O)return `/video/${ii.av2bv(Number(t.param))}/`;if(N)return console.warn(`[${di}]: bangumi uri should not starts with 'bilibili://': %s`,t.uri),t.uri;if(_){const Pe=(Fe=/^bilibili:\/\/article\/(\d+)$/.exec(t.uri))==null?void 0:Fe[1];return Pe?`/read/cv${Pe}`:t.uri}return t.uri})(),[t]),ve=f.useMemo(()=>lD(g),[g]),Ee=f.useMemo(()=>Au(c),[c]),Ye=f.useMemo(()=>Au(u),[u]),ft=f.useMemo(()=>Au(y),[y]),Et=i?Ye:ft,tt=gt(Fe=>{if(!et.openInIINAWhenRightClick)return;const Pe=new URL(ge,location.href).href,De=`iina://open?url=${encodeURIComponent(Pe)}`;window.open(De,"_self"),Fe.preventDefault();}),ke=({text:Fe,iconSvgName:Pe,iconSvgScale:De})=>ee("span",{className:"bili-video-card__stats--item",children:[F("svg",{className:"bili-video-card__stats--icon",style:{transform:De?`scale(${De})`:void 0},children:F("use",{href:Pe})}),F("span",{className:"bili-video-card__stats--text",children:Fe})]});return ee("div",{className:"bili-video-card__wrap __scale-wrap",onContextMenu:tt,children:[F("a",{href:ge,target:"_blank",children:ee("div",{className:"bili-video-card__image __scale-player-wrap",ref:j,children:[ee("div",{className:K("bili-video-card__image--wrap",Yt.imageWrapper),children:[ee("picture",{className:"v-img bili-video-card__cover",children:[F("source",{srcSet:`${P}@672w_378h_1c_!web-home-common-cover.avif`,type:"image/avif"}),F("source",{srcSet:`${P}@672w_378h_1c_!web-home-common-cover.webp`,type:"image/webp"}),F("img",{src:`${P}@672w_378h_1c_!web-home-common-cover`,alt:v,loading:"eager"})]}),(z||typeof Q=="number")&&F(RD,{videoDuration:g,pvideo:T==null?void 0:T.pvideoData,mouseEnterRelativeX:B,previewAnimationProgress:Q}),ee("div",{className:`bili-watch-later ${Yt.watchLater}`,style:{display:z||r?"flex":"none"},ref:ie,onClick:se,children:[F("svg",{className:"bili-watch-later__icon",children:F("use",{href:te?"#widget-watch-save":"#widget-watch-later"})}),F("span",{className:"bili-watch-later__tip",style:{display:Z?"block":"none"},children:te?"移除":"稍后再看"})]}),o&&$e&&ee("div",{ref:re,className:Yt.btnDislike,onClick:de,style:{display:z?"flex":"none"},children:[F("svg",{className:Yt.btnDislikeIcon,children:F("use",{href:"#widget-close"})}),F("span",{className:Yt.btnDislikeTip,style:{display:xe?"block":"none"},children:"我不想看"})]})]}),F("div",{className:"bili-video-card__mask",children:ee("div",{className:"bili-video-card__stats",children:[F("div",{className:"bili-video-card__stats--left",children:i?ee(nr,{children:[ke({text:Ee,iconSvgName:ef.play}),ke({text:l==="av"?Ye:Et,iconSvgName:ef.like})]}):ee(nr,{children:[t.cover_left_text_1&&ke({...ym(t.cover_left_icon_1),text:l==="picture"?t.cover_left_text_1+(t.cover_left_1_content_description||""):t.cover_left_text_1}),t.cover_left_text_2&&ke({...ym(t.cover_left_icon_2),text:l==="picture"?t.cover_left_text_2+(t.cover_left_2_content_description||""):t.cover_left_text_2})]})}),F("span",{className:"bili-video-card__stats__duration",children:O&&ve})]})})]})}),F("div",{className:"bili-video-card__info __scale-disable",children:ee("div",{className:"bili-video-card__info--right",children:[F("a",{href:ge,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:F("h3",{className:"bili-video-card__info--tit",title:v,children:v})}),F("p",{className:"bili-video-card__info--bottom",children:O?ee("a",{className:"bili-video-card__info--owner",href:`//space.bilibili.com/${S}`,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:[E?F("span",{className:Yt.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:b}),$&&ee("span",{className:"bili-video-card__info--date",children:["· ",$]})]}):C||R?ee("a",{className:"bili-video-card__info--owner",href:ge,target:"_blank",children:[F("span",{className:Yt.badge,children:C||""}),F("span",{className:Yt.bangumiDesc,children:R||""})]}):null})]})})]})}));function WD({id:e,title:t,autoPreviewWhenHover:r,active:n,tryFetchVideoData:i,videoPreviewWrapperRef:o}){const[s,l]=Dy(void 0),[c,u]=f.useState(!1),d=f.useRef(!1),h=f.useRef(!1);Ii("mouseenter",R=>{d.current=!0,r&&!p.current&&C(!0);},{target:o}),Ii("mouseleave",R=>{d.current=!1;},{target:o}),Ii("mousemove",R=>{u(!0),r||g();},{target:o});const v=SF(),p=f.useRef(void 0),m=gt(()=>{if(v.current)return !0;if(r){if(h.current){if(!d.current)return !0}else if(!n)return !0}else if(!n||c)return !0;return !1}),g=gt((R=!1)=>{p.current&&cancelAnimationFrame(p.current),p.current=void 0,l(void 0),w(!1);}),[b,w,S]=ol(!1),E=f.useRef(),x=gt(()=>{var R;if(!p.current){C();return}w(M=>!M),b&&((R=E.current)==null||R.call(E,s||0));}),y=gt(()=>s||0),C=gt((R=!1)=>{h.current=R,u(!1),w(!1),i(),g(!0),l(P=>typeof P>"u"?0:P);const M=8e3,O=()=>typeof et.autoPreviewUpdateInterval=="number"?et.autoPreviewUpdateInterval:400;let N=performance.now(),_=0;E.current=()=>{N=performance.now()-y()*M;};function $(P){if(m()){g();return}const T=()=>{const A=performance.now()-N,I=Math.min(A%M/M,1);l(I);};S()||(O()?(!_||performance.now()-_>=O())&&(_=performance.now(),T()):T()),p.current=requestAnimationFrame($);}p.current=requestAnimationFrame($);});return {onHotkeyPreviewAnimation:x,onStartPreviewAnimation:C,previewAnimationProgress:s}}const xh="_video-grid_tu03i_9",BD="_limit-two-lines_tu03i_19",e1="_internal-testing_tu03i_51",VD="_narrow-mode_tu03i_79";function UD({enabled:e,refresh:t,minIndex:r=0,maxIndex:n,containerRef:i,getScrollerRect:o,changeScrollY:a,videoCardRefs:s}){const[l,c]=f.useState(void 0),u=gt(()=>!(!e||Ic())),d=gt(()=>{var C;if(typeof l!="number"||!i.current)return !1;const x=o(),y=(C=i.current.querySelector(`.${yo.card}.${yo.cardActive}`))==null?void 0:C.getBoundingClientRect();return !(!x||!y||y.top-x.top<-(x.height+y.height)||y.top-x.top>x.height*2+y.height)}),h=x=>y=>{if(!u())return;y==null||y.preventDefault();let C=typeof x=="number"?x:x();const R=d()?l+C:m();if(R<r){S(r);return}if(R>n){S(n);return}c(R),S(R);};Xt("leftarrow",h(-1),{exactMatch:!0}),Xt("rightarrow",h(1),{exactMatch:!0});const v=()=>Eh(i.current);Xt("uparrow",h(()=>-v()),{exactMatch:!0}),Xt("downarrow",h(v),{exactMatch:!0});const p=()=>{u()&&c(void 0);};Xt("esc",p),Xt("enter",()=>{!u()||typeof l!="number"||E(l);}),Xt("backspace",()=>{var x;!u()||typeof l!="number"||(x=s[l])==null||x.onTriggerDislike();}),Xt(["s","w"],()=>{var x;!u()||typeof l!="number"||(x=s[l])==null||x.onToggleWatchLater();},{exactMatch:!0}),Xt(["period","p"],()=>{var x;!u()||typeof l!="number"||(x=s[l])==null||x.onHotkeyPreviewAnimation();},{exactMatch:!0});function m(){const x=o();if(!x)return 0;const y=b();for(let C=0;C<y.length;C++)if(y[C].getBoundingClientRect().top>=x.top)return C;return 0}const g=`.${yo.card}`;function b(){var x;return [...((x=i.current)==null?void 0:x.querySelectorAll(g))||[]]}function w(x){return b()[x]}function S(x){var M;const y=w(x);(M=y==null?void 0:y.scrollIntoViewIfNeeded)==null||M.call(y,!1);const C=o(),R=y.getBoundingClientRect();if(!(!C||!R)){if(R.top<=C.top){const O=-(C.top-R.top+10);a==null||a({offset:O});return}if(C.bottom-R.bottom<10){const O=10-(C.bottom-R.bottom);a==null||a({offset:O});return}}}function E(x){const y=w(x);if(!y)return;const C=y.querySelector(".bili-video-card__wrap > a");C==null||C.click();}return {activeIndex:l,clearActiveIndex:p}}const wm=new Map;function Eh(e,t=!0){if(t&&et.useNarrowMode)return 2;let r=wm.get(window.innerWidth);if(r)return r;if(e||(e=document.querySelector(`.${xh}`)),!e)return 0;const n=window.getComputedStyle(e);return n.display!=="grid"?0:(r=n.gridTemplateColumns.split(" ").length,wm.set(window.innerWidth,r),r)}function t1(){return et.filterMinDurationEnabled||et.filterMinPlayCountEnabled}function r1(e){return t1()?e.filter(t=>{const{play:r,duration:n,recommendReason:i}=Jy(t);return !et.enableFilterForFollowed&&(i==="已关注"||(i==null?void 0:i.includes("关注")))?!0:!(typeof r=="number"&&et.filterMinPlayCountEnabled&&et.filterMinPlayCount&&r<et.filterMinPlayCount||n&&et.filterMinDurationEnabled&&et.filterMinDuration&&n<et.filterMinDuration)}):e}var zc={exports:{}},$h={exports:{}},n1={exports:{}},Bt=n1.exports={},dn,fn;function tf(){throw new Error("setTimeout has not been defined")}function rf(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?dn=setTimeout:dn=tf;}catch{dn=tf;}try{typeof clearTimeout=="function"?fn=clearTimeout:fn=rf;}catch{fn=rf;}})();function i1(e){if(dn===setTimeout)return setTimeout(e,0);if((dn===tf||!dn)&&setTimeout)return dn=setTimeout,setTimeout(e,0);try{return dn(e,0)}catch{try{return dn.call(null,e,0)}catch{return dn.call(this,e,0)}}}function GD(e){if(fn===clearTimeout)return clearTimeout(e);if((fn===rf||!fn)&&clearTimeout)return fn=clearTimeout,clearTimeout(e);try{return fn(e)}catch{try{return fn.call(null,e)}catch{return fn.call(this,e)}}}var Dn=[],bo=!1,_i,dl=-1;function KD(){!bo||!_i||(bo=!1,_i.length?Dn=_i.concat(Dn):dl=-1,Dn.length&&o1());}function o1(){if(!bo){var e=i1(KD);bo=!0;for(var t=Dn.length;t;){for(_i=Dn,Dn=[];++dl<t;)_i&&_i[dl].run();dl=-1,t=Dn.length;}_i=null,bo=!1,GD(e);}}Bt.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];Dn.push(new a1(e,t)),Dn.length===1&&!bo&&i1(o1);};function a1(e,t){this.fun=e,this.array=t;}a1.prototype.run=function(){this.fun.apply(null,this.array);};Bt.title="browser";Bt.browser=!0;Bt.env={};Bt.argv=[];Bt.version="";Bt.versions={};function Yn(){}Bt.on=Yn;Bt.addListener=Yn;Bt.once=Yn;Bt.off=Yn;Bt.removeListener=Yn;Bt.removeAllListeners=Yn;Bt.emit=Yn;Bt.prependListener=Yn;Bt.prependOnceListener=Yn;Bt.listeners=function(e){return []};Bt.binding=function(e){throw new Error("process.binding is not supported")};Bt.cwd=function(){return "/"};Bt.chdir=function(e){throw new Error("process.chdir is not supported")};Bt.umask=function(){return 0};var qD=n1.exports;const ku=Kn(qD);var nf;typeof Object.create=="function"?nf=function(t,r){t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}});}:nf=function(t,r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t;};const s1=nf;var XD=/%[sdj%]/g;function Io(e){if(!gs(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(xn(arguments[r]));return t.join(" ")}for(var r=1,n=arguments,i=n.length,o=String(e).replace(XD,function(s){if(s==="%%")return "%";if(r>=i)return s;switch(s){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch{return "[Circular]"}default:return s}}),a=n[r];r<i;a=n[++r])ms(a)||!zi(a)?o+=" "+a:o+=" "+xn(a);return o}function _h(e,t){if(wn(global.process))return function(){return _h(e,t).apply(this,arguments)};if(ku.noDeprecation===!0)return e;var r=!1;function n(){if(!r){if(ku.throwDeprecation)throw new Error(t);ku.traceDeprecation?console.trace(t):console.error(t),r=!0;}return e.apply(this,arguments)}return n}var Vs={},Lu;function l1(e){if(wn(Lu)&&(Lu={}.NODE_DEBUG||""),e=e.toUpperCase(),!Vs[e])if(new RegExp("\\b"+e+"\\b","i").test(Lu)){var t=0;Vs[e]=function(){var r=Io.apply(null,arguments);console.error("%s %d: %s",e,t,r);};}else Vs[e]=function(){};return Vs[e]}function xn(e,t){var r={seen:[],stylize:ZD};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),Hc(t)?r.showHidden=t:t&&Rh(r,t),wn(r.showHidden)&&(r.showHidden=!1),wn(r.depth)&&(r.depth=2),wn(r.colors)&&(r.colors=!1),wn(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=YD),Ll(r,e,r.depth)}xn.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]};xn.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function YD(e,t){var r=xn.styles[t];return r?"\x1B["+xn.colors[r][0]+"m"+e+"\x1B["+xn.colors[r][1]+"m":e}function ZD(e,t){return e}function QD(e){var t={};return e.forEach(function(r,n){t[r]=!0;}),t}function Ll(e,t,r){if(e.customInspect&&t&&Ra(t.inspect)&&t.inspect!==xn&&!(t.constructor&&t.constructor.prototype===t)){var n=t.inspect(r,e);return gs(n)||(n=Ll(e,n,r)),n}var i=JD(e,t);if(i)return i;var o=Object.keys(t),a=QD(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),Ta(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return Fu(t);if(o.length===0){if(Ra(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(Pa(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(Fl(t))return e.stylize(Date.prototype.toString.call(t),"date");if(Ta(t))return Fu(t)}var l="",c=!1,u=["{","}"];if(Oh(t)&&(c=!0,u=["[","]"]),Ra(t)){var d=t.name?": "+t.name:"";l=" [Function"+d+"]";}if(Pa(t)&&(l=" "+RegExp.prototype.toString.call(t)),Fl(t)&&(l=" "+Date.prototype.toUTCString.call(t)),Ta(t)&&(l=" "+Fu(t)),o.length===0&&(!c||t.length==0))return u[0]+l+u[1];if(r<0)return Pa(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var h;return c?h=e3(e,t,r,a,o):h=o.map(function(v){return of(e,t,r,a,v,c)}),e.seen.pop(),t3(h,l,u)}function JD(e,t){if(wn(t))return e.stylize("undefined","undefined");if(gs(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(Ph(t))return e.stylize(""+t,"number");if(Hc(t))return e.stylize(""+t,"boolean");if(ms(t))return e.stylize("null","null")}function Fu(e){return "["+Error.prototype.toString.call(e)+"]"}function e3(e,t,r,n,i){for(var o=[],a=0,s=t.length;a<s;++a)v1(t,String(a))?o.push(of(e,t,r,n,String(a),!0)):o.push("");return i.forEach(function(l){l.match(/^\d+$/)||o.push(of(e,t,r,n,l,!0));}),o}function of(e,t,r,n,i,o){var a,s,l;if(l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]},l.get?l.set?s=e.stylize("[Getter/Setter]","special"):s=e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),v1(n,i)||(a="["+i+"]"),s||(e.seen.indexOf(l.value)<0?(ms(r)?s=Ll(e,l.value,null):s=Ll(e,l.value,r-1),s.indexOf(`
`)>-1&&(o?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")),wn(a)){if(o&&i.match(/^\d+$/))return s;a=JSON.stringify(""+i),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"));}return a+": "+s}function t3(e,t,r){var n=e.reduce(function(i,o){return o.indexOf(`
`)>=0,i+o.replace(/\u001b\[\d\d?m/g,"").length+1},0);return n>60?r[0]+(t===""?"":t+`
 `)+" "+e.join(`,
  `)+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}function Oh(e){return Array.isArray(e)}function Hc(e){return typeof e=="boolean"}function ms(e){return e===null}function c1(e){return e==null}function Ph(e){return typeof e=="number"}function gs(e){return typeof e=="string"}function u1(e){return typeof e=="symbol"}function wn(e){return e===void 0}function Pa(e){return zi(e)&&Th(e)==="[object RegExp]"}function zi(e){return typeof e=="object"&&e!==null}function Fl(e){return zi(e)&&Th(e)==="[object Date]"}function Ta(e){return zi(e)&&(Th(e)==="[object Error]"||e instanceof Error)}function Ra(e){return typeof e=="function"}function d1(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}function f1(e){return Buffer.isBuffer(e)}function Th(e){return Object.prototype.toString.call(e)}function Du(e){return e<10?"0"+e.toString(10):e.toString(10)}var r3=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function n3(){var e=new Date,t=[Du(e.getHours()),Du(e.getMinutes()),Du(e.getSeconds())].join(":");return [e.getDate(),r3[e.getMonth()],t].join(" ")}function h1(){console.log("%s - %s",n3(),Io.apply(null,arguments));}function Rh(e,t){if(!t||!zi(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}function v1(e,t){return Object.prototype.hasOwnProperty.call(e,t)}const i3={inherits:s1,_extend:Rh,log:h1,isBuffer:f1,isPrimitive:d1,isFunction:Ra,isError:Ta,isDate:Fl,isObject:zi,isRegExp:Pa,isUndefined:wn,isSymbol:u1,isString:gs,isNumber:Ph,isNullOrUndefined:c1,isNull:ms,isBoolean:Hc,isArray:Oh,inspect:xn,deprecate:_h,format:Io,debuglog:l1},o3=Object.freeze(Object.defineProperty({__proto__:null,_extend:Rh,debuglog:l1,default:i3,deprecate:_h,format:Io,inherits:s1,inspect:xn,isArray:Oh,isBoolean:Hc,isBuffer:f1,isDate:Fl,isError:Ta,isFunction:Ra,isNull:ms,isNullOrUndefined:c1,isNumber:Ph,isObject:zi,isPrimitive:d1,isRegExp:Pa,isString:gs,isSymbol:u1,isUndefined:wn,log:h1},Symbol.toStringTag,{value:"Module"})),a3=q1(o3);var s3=a3.format;function l3(){(typeof AbortController>"u"||typeof AbortSignal>"u")&&console.error("[promise.timeout] need global AbortController & AbortSingal");}function c3(e,t){return function(){var r=this,n=[].slice.call(arguments);l3();var i=new AbortController;return n.push(i.signal),new Promise(function(o,a){var s=setTimeout(function(){var l=new p1(t);a(l),i.abort();},t);Promise.resolve(e.apply(r,n)).then(function(l){clearTimeout(s),o(l);},function(l){clearTimeout(s),a(l);});})}}let p1=class m1 extends Error{constructor(t){super(),this.timeout=t,this.message=s3("timeout of %sms exceed",t),Error.captureStackTrace(this,m1);}};$h.exports=c3;$h.exports.TimeoutError=p1;var u3=$h.exports;const g1=u3,d3=g1.TimeoutError;zc.exports=function(t,r){const n=t;r=r||{};const i=r.times||5,o=r.timeout;o&&(t=g1(t,o));const a=r.onerror;return async function(){const s=this,l=[].slice.call(arguments),c=new Array(i);for(let u=0;u<i;u++){let d,h;try{d=await t.apply(s,l);}catch(v){h=v;}if(!h)return d;if(h instanceof TypeError)throw h;if(h instanceof f3)throw h.originalError;c[u]=h,a&&a(h,u);}throw new b1({times:i,timeout:o,fn:n,errors:c})}};class b1 extends Error{constructor(t){super(),this.times=t.times,this.timeout=t.timeout,this.fn=t.fn,this.errors=t.errors,this.name="RetryError",this.message=`tried function ${this.fn.name||"<anonymous>"} ${this.times} times`,this.timeout&&(this.message+=` with timeout = ${this.timeout}ms`),Error.captureStackTrace(this,this.constructor);}}class f3 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 h3=zc.exports.RetryError=b1;zc.exports.TimeoutError=d3;var v3=zc.exports;const p3=Kn(v3);class Mh extends Error{constructor(r){super();ct(this,"json");Error.captureStackTrace(this,Mh),this.json=r,this.message=r.message||JSON.stringify(r);}}const m3=10;async function g3(){var n;const t=(await Dc.get(By+"/x/v2/feed/index",{responseType:"json",params:{build:"1",mobi_app:"android",idx:(Date.now()/1e3).toFixed(0)+"0"+Math.trunc(Math.random()*1e3).toString().padStart(3,"0")}})).data;if(!t.data){if(t.code===-663)throw new Mh(t);return Cr(`${di}: 未知错误, 请联系开发者

  code=${t.code} message=${t.message||""}`,5e3),[]}return ((n=t==null?void 0:t.data)==null?void 0:n.items)||[]}const b3=p3(g3,{times:5,timeout:2e3,onerror(e,t){console.info("[%s] tryGetRecommend onerror: index=%s",di,t,e);}});async function Sm(){try{return await b3()}catch(e){if(e instanceof h3){console.error(e.errors);const t=[Io("请求出错, 已重试%s次:",e.times),...e.errors.map((r,n)=>Io("  %s) %s",n+1,r.message)),"","请重新获取 access_key 后重试~"].join(`
`);Cr(t,5e3);}throw e}}async function y1(e){let t=[];const r=async()=>{t=(await Promise.all(new Array(e).fill(0).map(()=>Sm()))).flat();},n=async()=>{for(let i=1;i<=e;i++)t=t.concat(await Sm());};return await(et.useParallelRequest?r:n)(),t=ac(t,i=>i.param),t.map(i=>({...i,api:"app",uniqId:i.param+"-"+crypto.randomUUID()}))}const w1=14;async function Cm(e){const t=e.page++;return (await Fc.get("/x/web-interface/index/top/rcmd",{baseURL:Wy,withCredentials:!0,params:{fresh_type:3,version:1,ps:w1,fresh_idx:t,fresh_idx_1h:t,homepage_ver:1}})).data.data.item}async function S1(e,t){let r=[];const n=async()=>{r=(await Promise.all(new Array(e).fill(0).map(()=>Cm(t)))).flat();},i=async()=>{for(let o=1;o<=e;o++)r=r.concat(await Cm(t));};return await(et.useParallelRequest?n:i)(),r=ac(r,o=>o.id),r.forEach(o=>{var a,s;((a=o.rcmd_reason)==null?void 0:a.reason_type)===1&&((s=o.rcmd_reason).content||(s.content="已关注"));}),r.map(o=>({...o,uniqId:o.id+"-"+crypto.randomUUID(),api:"pc"}))}Zm.extend("service");const fl=e=>e.api==="pc"?e.id:e.param;function y3(e,t){const r=e.map(fl);return t=ac(t,fl),e.concat(t.filter(n=>!r.includes(fl(n))))}async function C1(e,t,r=5){let n=[],i=async o=>{const a=et.usePcDesktopApi?w1:m3,s=t1()?r:1.2,l=Math.ceil(o*s/a);let c=et.usePcDesktopApi?await S1(l,t):await y1(l);c=r1(c),n=n.concat(c),n=ac(n,fl);};for(await i(e);n.length<e;)await i(e-n.length);return n}async function w3(e){return C1(Eh(void 0,!1)*2,e,3)}async function S3(e){return C1(Eh()*3,e,5)}async function C3(e,t){let r=et.usePcDesktopApi?await S1(e,t):await y1(e);return r=r1(r),r}var x1={exports:{}},x3="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",E3=x3,$3=E3;function E1(){}function $1(){}$1.resetWarningCache=E1;var _3=function(){function e(n,i,o,a,s,l){if(l!==$3){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:$1,resetWarningCache:E1};return r.PropTypes=r,r};x1.exports=_3();var O3=x1.exports;const Mr=Kn(O3);class af extends f.Component{constructor(t){super(t),this.scrollListener=this.scrollListener.bind(this),this.eventListenerOptions=this.eventListenerOptions.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this);}componentDidMount(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener();}componentDidUpdate(){if(this.props.isReverse&&this.loadMore){const t=this.getParentElement(this.scrollComponent);t.scrollTop=t.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1;}this.attachScrollListener();}componentWillUnmount(){this.detachScrollListener(),this.detachMousewheelListener();}isPassiveSupported(){let t=!1;const r={get passive(){t=!0;}};try{document.addEventListener("test",null,r),document.removeEventListener("test",null,r);}catch{}return t}eventListenerOptions(){let t=this.props.useCapture;return this.isPassiveSupported()?t={useCapture:this.props.useCapture,passive:!0}:t={passive:!1},t}setDefaultLoader(t){this.defaultLoader=t;}detachMousewheelListener(){let t=window;this.props.useWindow===!1&&(t=this.scrollComponent.parentNode),t.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture);}detachScrollListener(){let t=window;this.props.useWindow===!1&&(t=this.getParentElement(this.scrollComponent)),t.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture);}getParentElement(t){const r=this.props.getScrollParent&&this.props.getScrollParent();return r??(t&&t.parentNode)}filterProps(t){return t}attachScrollListener(){const t=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!t)return;let r=window;this.props.useWindow===!1&&(r=t),r.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),r.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),r.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener();}mousewheelListener(t){t.deltaY===1&&!this.isPassiveSupported()&&t.preventDefault();}scrollListener(){const t=this.scrollComponent,r=window,n=this.getParentElement(t);let i;if(this.props.useWindow){const o=document.documentElement||document.body.parentNode||document.body,a=r.pageYOffset!==void 0?r.pageYOffset:o.scrollTop;this.props.isReverse?i=a:i=this.calculateOffset(t,a);}else this.props.isReverse?i=n.scrollTop:i=t.scrollHeight-n.scrollTop-n.clientHeight;i<Number(this.props.threshold)&&t&&t.offsetParent!==null&&(this.detachScrollListener(),this.beforeScrollHeight=n.scrollHeight,this.beforeScrollTop=n.scrollTop,typeof this.props.loadMore=="function"&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0));}calculateOffset(t,r){return t?this.calculateTopPosition(t)+(t.offsetHeight-r-window.innerHeight):0}calculateTopPosition(t){return t?t.offsetTop+this.calculateTopPosition(t.offsetParent):0}render(){const t=this.filterProps(this.props),{children:r,element:n,hasMore:i,initialLoad:o,isReverse:a,loader:s,loadMore:l,pageStart:c,ref:u,threshold:d,useCapture:h,useWindow:v,getScrollParent:p,...m}=t;m.ref=b=>{this.scrollComponent=b,u&&u(b);};const g=[r];return i&&(s?a?g.unshift(s):g.push(s):this.defaultLoader&&(a?g.unshift(this.defaultLoader):g.push(this.defaultLoader))),f.createElement(n,m,g)}}ct(af,"propTypes",{children:Mr.node.isRequired,element:Mr.node,hasMore:Mr.bool,initialLoad:Mr.bool,isReverse:Mr.bool,loader:Mr.node,loadMore:Mr.func.isRequired,pageStart:Mr.number,ref:Mr.func,getScrollParent:Mr.func,threshold:Mr.number,useCapture:Mr.bool,useWindow:Mr.bool}),ct(af,"defaultProps",{element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null});const Us=Zm.extend("components:RecGrid"),yo={card:vm`
    border: 2px solid transparent;

    /* global class under .card */
    .bili-video-card__info {
      padding-left: 2px;
      padding-bottom: 1px;
      margin-top: calc(var(--info-margin-top) - 1px);
    }
  `,cardActive:vm`
    border-color: #fb7299;
    border-radius: 6px;
    overflow: hidden;
  `};var P3={name:"1uugokx",styles:"text-align:center;line-height:60px;font-size:120%"};const _1=f.forwardRef(({infiteScrollUseWindow:e,shortcutEnabled:t,onScrollToTop:r,className:n,scrollerRef:i},o)=>{const a=f.useRef({page:1}),[s,l,c]=ol(0),[u,d,h]=ol([]),[v,p]=f.useState(!1),[m,g,b]=ol(()=>Date.now()),w=gt(async()=>{const T=performance.now();Us("call refresh()"),await(r==null?void 0:r()),p(!0),g(Date.now()),_(),d([]),a.current.page=1;try{d(await S3(a.current));}catch(I){throw p(!1),I}l(1),_(),p(!1);const A=performance.now()-T;Us("refresh cost %s ms",A.toFixed(0)),x();});wh(w),f.useImperativeHandle(o,()=>({refresh:w}),[]);const S=f.useRef(!1),E=gt(async()=>{if(v||S.current)return;S.current=!0;const T=b();let A=u;try{for(;!(A.length>u.length);){const I=await C3(2,a.current);A=y3(A,I);}}catch(I){throw S.current=!1,I}if(T!==b()){Us("fetchMore: skip update for mismatch refreshedAt, %s != %s",T,b()),S.current=!1;return}Us("fetchMore: seq(%s) len %s -> %s",c()+1,u.length,A.length),d(A),l(I=>I+1),x(),S.current=!1;}),x=gt(()=>{setTimeout(()=>{const T=e?window:i==null?void 0:i.current;T==null||T.dispatchEvent(new CustomEvent("scroll"));});}),{useNarrowMode:y}=_n(),C=f.useRef(null),R=gt(()=>{var T;if(e){const A=Og+50;return new DOMRect(0,A,window.innerWidth,window.innerHeight-A)}else return (T=i==null?void 0:i.current)==null?void 0:T.getBoundingClientRect()}),M=oD(),O=f.useMemo(()=>new Array(u.length).fill(void 0),[u.length]),{activeIndex:N,clearActiveIndex:_}=UD({enabled:t&&!M,refresh:w,maxIndex:u.length-1,containerRef:C,getScrollerRect:R,videoCardRefs:O,changeScrollY:e?function({offset:T,absolute:A}){const I=document.documentElement;if(typeof T=="number"){I.scrollTop+=T;return}if(typeof A=="number"){I.scrollTop=A;return}}:void 0}),$=za(),{colorPrimary:P}=Wo();return F(af,{pageStart:0,hasMore:!0,loadMore:E,initialLoad:!1,useWindow:e,threshold:window.innerHeight,style:{minHeight:"100%"},loader:F("div",{css:P3,children:"加载中..."},-1),children:F("div",{ref:C,className:K(xh,{[e1]:$},{[VD]:y},n),children:v?new Array(24).fill(void 0).map((T,A)=>F(kl,{loading:!0,className:yo.card},A)):u.map((T,A)=>{const I=A===N;return F(kl,{ref:L=>O[A]=L,className:K(yo.card,{[yo.cardActive]:I}),css:[I&&Ur("border-color:",P,";",""),"",""],item:T,active:I},T.uniqId)})})})}),xm=F(an,{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 O1({style:e,className:t}){const{runAsync:r,loading:n}=Ay(FF,{manual:!0}),{accessKey:i}=_n();return F(ih,{size:"small",style:e,className:t,children:i?ee(nr,{children:[F(an,{onClick:r,disabled:n,children:F("span",{children:"重新获取 access_key"})}),F(an,{onClick:DF,children:F("span",{children:"删除 access_key"})}),xm]}):ee(nr,{children:[F(an,{onClick:r,disabled:n,size:"middle",children:F("span",{children:"获取 access_key"})}),xm]})})}function Vr({configKey:e,label:t,className:r,extraAction:n,tooltip:i}){const a=!!_n()[e],s=f.useCallback(c=>{const u=c.target.checked;ja({[e]:u}),n==null||n(u);},[]);let l=t||e;return i&&(l=F(Gf,{title:i,zIndex:11100,overlayStyle:{width:"max-content",maxWidth:"50vw"},children:l})),F(zA,{className:r,checked:a,onChange:s,children:l})}var T3={name:"1qkltea",styles:"margin-left:5px"};const R3=function(){const e=T3;return ee(nr,{children:[F(Vr,{configKey:"initialShowMore",label:"自动查看更多",css:e}),F(Vr,{configKey:"useNarrowMode",label:"启用居中模式",css:e})]})},M3="_config-icon_1qntb_1",N3="_settings-group_1qntb_6",I3="_settings-group-title_1qntb_9",A3="_settings-group-sub-title_1qntb_14",k3="_settings-group-content_1qntb_20",L3="_row_1qntb_26",F3="_check_1qntb_34",D3="_setting-tabs_1qntb_39",j3="_tab-pane_1qntb_42",Me={configIcon:M3,settingsGroup:N3,settingsGroupTitle:I3,settingsGroupSubTitle:A3,settingsGroupContent:k3,row:L3,check:F3,settingTabs:D3,tabPane:j3};async function P1(){Cr("即将刷新网页"),await Nc(500),location.reload();}function z3(){if(window.confirm("确定?"))return e_(),P1()}function ju(e,t,r){return Xt(e,n=>{if(Ic())return;et[t]=!et[t];const i=!et[t];Cr(`已${i?"禁用":"启用"}「${r}」`);},{exactMatch:!0})}function H3({show:e,onHide:t}){const{usePcDesktopApi:r,autoPreviewUpdateInterval:n,filterMinPlayCount:i,filterMinPlayCountEnabled:o,filterMinDuration:a,filterMinDurationEnabled:s}=_n();return ju(["shift.p"],"autoPreviewWhenKeyboardSelect","键盘选中后自动开始预览"),ju(["shift.m"],"autoPreviewWhenHover","鼠标悬浮后自动开始预览"),ju(["shift.c"],"useNarrowMode","居中模式"),ee(Sh,{show:e,onHide:t,hideWhenMaskOnClick:!0,hideWhenEsc:!0,styleModal:{width:800},children:[ee("div",{className:sn.modalHeader,children:[ee("div",{className:sn.modalTitle,children:[F(Bn,{name:"Config",className:Me.configIcon}),"设置项"]}),F("div",{className:"space",style:{flex:1}}),F(Ch,{onClick:t})]}),F("main",{className:sn.modalBody,children:F(ny,{tabPosition:"left",size:"middle",defaultActiveKey:"normal",className:Me.settingTabs,items:[{label:"常规设置",key:"normal",children:ee("div",{className:Me.tabPane,children:[ee("div",{className:Me.settingsGroup,children:[F("div",{className:Me.settingsGroupTitle,children:"接口切换"}),ee("div",{className:K(Me.settingsGroupContent),children:[ee($u.Group,{buttonStyle:"solid",value:r?"desktop":"app",onChange:l=>{const c=l.target.value;et.usePcDesktopApi=c==="desktop";},children:[F($u.Button,{value:"desktop",children:"使用桌面端接口"}),F($u.Button,{value:"app",children:"使用 App 端接口"})]}),!r&&F("div",{className:Me.row,style:{marginTop:5},children:F(O1,{})})]})]}),ee("div",{className:Me.settingsGroup,children:[F("div",{className:Me.settingsGroupTitle,children:"开关"}),ee("div",{className:K(Me.settingsGroupContent,Me.row),children:[F(Vr,{configKey:"pureRecommend",label:"开启纯推荐模式",tooltip:ee(nr,{children:["首页只保留推荐",F("br",{}),"P.S 需要刷新网页~"]}),className:Me.check,extraAction:P1}),F(Vr,{configKey:"initialShowMore",label:"自动查看更多",tooltip:"打开首页时默认打开推荐弹框",className:Me.check,extraAction:l=>{l&&Cr("已开启自动查看更多: 下次打开首页时将直接展示推荐弹框");}}),F(Vr,{configKey:"useNarrowMode",label:"启用居中模式",tooltip:ee(nr,{children:["居中两列",F("br",{}),"切换设置快捷键: ",F(aa,{color:"green",children:"shift+c"})]}),className:Me.check}),F(Vr,{configKey:"useParallelRequest",label:"批量请求时使用并行",tooltip:ee(nr,{children:["并行快但可能有重复",F("br",{}),"推荐视频大量重复时关闭这个试试~"]}),className:Me.check})]})]}),ee("div",{className:Me.settingsGroup,children:[F("div",{className:Me.settingsGroupTitle,children:"预览"}),ee("div",{className:K(Me.settingsGroupContent,Me.row),children:[F(Vr,{configKey:"autoPreviewWhenKeyboardSelect",label:"键盘选中后自动开始预览",className:Me.check,tooltip:ee(nr,{children:["手动预览快捷键: ",F(aa,{color:"green",children:"."})," or ",F(aa,{color:"green",children:"p"}),F("br",{}),"切换设置快捷键: ",F(aa,{color:"green",children:"shift+p"})]})}),F(Vr,{configKey:"autoPreviewWhenHover",label:"鼠标悬浮后自动开始预览",className:Me.check,tooltip:ee(nr,{children:["鼠标悬浮后自动开始预览, 预览不再跟随鼠标位置 ",F("br",{}),"切换设置快捷键: ",F(aa,{color:"green",children:"shift+m"})]})}),ee("div",{style:{width:"100%",display:"flex",alignItems:"center"},children:["预览更新间隔",F(_k,{style:{flex:1,margin:"0 15px"},min:0,max:1e3,keyboard:!0,onChange:l=>et.autoPreviewUpdateInterval=l,value:n,tooltip:{open:!0}}),ee("span",{style:{width:"65px"},children:["(",n,"ms)"]})]})]})]}),ee("div",{className:Me.settingsGroup,children:[F("div",{className:Me.settingsGroupTitle,children:"帮助"}),F("div",{className:K(Me.settingsGroupContent),children:F("div",{className:Me.row,children:ee(ih,{size:"small",children:[F(an,{href:"https://github.com/magicdawn/bilibili-app-recommend",target:"_blank",children:"GitHub 主页"}),F(an,{href:"https://greasyfork.org/zh-CN/scripts/443530-bilibili-app-recommend",target:"_blank",children:"GreasyFork 主页"}),F(an,{href:"https://github.com/magicdawn/bilibili-app-recommend#%E5%BF%AB%E6%8D%B7%E9%94%AE%E8%AF%B4%E6%98%8E",target:"_blank",children:"查看可用的快捷键"})]})})})]})]})},{label:"视频过滤",key:"filter",children:F("div",{className:Me.tabPane,children:ee("div",{className:Me.settingsGroup,children:[ee("div",{className:Me.settingsGroupTitle,children:["视频过滤",F(am,{title:F(nr,{children:"启用视频过滤会大幅降低加载速度, 谨慎开启!"}),children:F(Bn,{style:{marginLeft:4,cursor:"pointer"},name:"Info"})})]}),ee("div",{className:K(Me.settingsGroupContent),children:[F("div",{className:Me.settingsGroupSubTitle,children:"过滤范围"}),F(Vr,{configKey:"enableFilterForFollowed",label:"对推荐理由为「已关注」的视频启用过滤",tooltip:F(nr,{children:"默认不过滤「已关注」"})}),F("div",{className:Me.settingsGroupSubTitle,children:"过滤器"}),ee("div",{className:Me.row,children:[F(Vr,{configKey:"filterMinPlayCountEnabled",label:"按播放量过滤",tooltip:F(nr,{children:"不显示播放量很少的视频"})}),F(im,{size:"small",min:1,step:1e3,value:i,onChange:l=>l&&ja({filterMinPlayCount:l}),disabled:!o})]}),ee("div",{className:Me.row,style:{marginTop:8},children:[F(Vr,{configKey:"filterMinDurationEnabled",label:"按视频时长过滤",tooltip:F(nr,{children:"不显示短视频"})}),F(im,{style:{width:150},size:"small",min:1,step:10,addonAfter:"单位:秒",value:a,onChange:l=>l&&ja({filterMinDuration:l}),disabled:!s})]})]})]})})},{label:"外观设置",key:"UI",children:F("div",{className:Me.tabPane,children:ee("div",{className:Me.settingsGroup,children:[ee("div",{className:Me.settingsGroupTitle,style:{marginBottom:15},children:["主题选择",F(am,{title:ee(nr,{children:["提取自 https://github.com/lyswhut/lx-music-desktop/",F("br",{}),"Apache License 2.0"]}),children:F(Bn,{style:{marginLeft:4,cursor:"pointer"},name:"Info"})})]}),F("div",{className:K(Me.settingsGroupContent),children:F(jk,{})})]})})},{label:"高级设置",key:"advance",children:F("div",{className:Me.tabPane,children:ee("div",{className:Me.settingsGroup,children:[F("div",{className:Me.settingsGroupTitle,children:"高级"}),ee("div",{className:K(Me.settingsGroupContent),children:[F("div",{className:Me.row,children:F(an,{onClick:z3,danger:!0,type:"primary",children:"恢复默认设置"})}),F("div",{className:Me.row,style:{marginTop:10},children:F(Vr,{configKey:"openInIINAWhenRightClick",label:"右键在 IINA 中打开",className:Me.check})})]})]})})}]})})]})}var Nh={};Object.defineProperty(Nh,"__esModule",{value:!0});var T1=Nh.useSticky=void 0;const zu=f;function W3(){const e=(0, zu.useRef)(null),[t,r]=(0, zu.useState)(!1);return (0, zu.useEffect)(()=>{function n(){if(!e.current)return;const i=e.current.getBoundingClientRect().top,o=parseInt(getComputedStyle(e.current).top),a=i<=o;a&&!t?r(!0):!a&&t&&r(!1);}return n(),document.addEventListener("scroll",n),window.addEventListener("resize",n),window.addEventListener("orientationchange",n),()=>{document.removeEventListener("scroll",n),window.removeEventListener("resize",n),window.removeEventListener("orientationchange",n);}},[t]),[e,t]}T1=Nh.useSticky=W3;const B3="_expand-btn_wdzp9_1",V3="_expanded_wdzp9_12",Em={expandBtn:B3,expanded:V3},U3=f.forwardRef(function({children:t},r){const[n,i]=ky(!1);f.useImperativeHandle(r,()=>i,[i]);const o=F("button",{className:K("primary-btn",Em.expandBtn),onClick:i.toggle,children:F("svg",{className:K({[Em.expanded]:n}),children:F("use",{href:"#widget-arrow"})})});return ee(nr,{children:[o,n&&t]})}),G3="_modal-mask_7bwzz_1",K3="_narrow-mode_7bwzz_1",q3="_modal_7bwzz_1",X3="_modal-header_7bwzz_18",Y3="_modal-body_7bwzz_19",Z3="_btn-refresh_7bwzz_22",ua={modalMask:G3,narrowMode:K3,modal:q3,modalHeader:X3,modalBody:Y3,btnRefresh:Z3};var Q3={name:"1q4vxyr",styles:"margin-left:8px"};const J3=f.memo(function({show:t,onHide:r}){const n=f.useRef(null),i=f.useRef(null),{useNarrowMode:o}=_n(),a=f.useMemo(()=>({[ua.narrowMode]:o}),[o]),s=gt(()=>{var h;return (h=i.current)==null?void 0:h.refresh()}),l=gt(()=>{n.current&&(n.current.scrollTop=0);}),c=lc(),{colorPrimary:u}=Wo(),d=f.useMemo(()=>c?{border:`1px solid ${u}`}:void 0,[c,u]);return ee(Sh,{show:t,onHide:r,clsModalMask:K(a),clsModal:K(ua.modal,a),styleModal:{...d},children:[ee("div",{className:K(sn.modalHeader,ua.modalHeader),children:[F("div",{className:sn.modalTitle,children:"推荐"}),F("div",{className:"space",style:{flex:1}}),F(U3,{children:F(R3,{})}),F(M1,{css:Q3,onClick:s,className:ua.btnRefresh,refreshHotkeyEnabled:t}),F(Ch,{onClick:r})]}),F("div",{className:K(sn.modalBody,ua.modalBody),ref:n,children:F(_1,{ref:i,shortcutEnabled:t,onScrollToTop:l,infiteScrollUseWindow:!1,scrollerRef:n})})]})}),Ih=Ur`
  display: flex;
  align-items: center;
  justify-content: center;
`,$m={btn:Ur`
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    ${Ih}
  `,icon:Ur`
    svg {
      width: 14px;
      height: 14px;
    }
  `},ui=ns({modalFeedVisible:et.initialShowMore,modalConfigVisible:!1}),ej=function(){return Lo(ui)},tj=()=>{ui.modalFeedVisible=!0;},rj=()=>{ui.modalFeedVisible=!1;},nj=()=>{ui.modalConfigVisible=!0;},ij=()=>{ui.modalConfigVisible=!1;};function R1({onRefresh:e}){const{accessKey:t,pureRecommend:r,usePcDesktopApi:n}=_n(),{modalFeedVisible:i,modalConfigVisible:o}=Lo(ui);Xt(["shift.comma"],l=>{Ic()||(ui.modalConfigVisible=!ui.modalConfigVisible);},{exactMatch:!0});const[a,s]=T1();return ee(nr,{children:[ee("div",{ref:a,className:"area-header",css:[Ur`
            margin-bottom: 0;
            height: 50px;
          `,r&&Ur`
              position: sticky;
              top: ${Og}px;
              z-index: 1000;
            `,r&&s&&Ur`
              background-color: var(--bg1_float);
              box-shadow: 0 2px 4px rgb(0 0 0 / 8%);
            `,"",""],children:[ee("div",{className:"left",children:[F("a",{id:"影视",className:"the-world area-anchor","data-id":"25"}),F("svg",{className:"icon",children:F("use",{href:"#channel-cinephile"})}),F("a",{className:"title",href:"#",children:F("span",{children:"推荐"})})]}),F("div",{className:"right",children:ee(ih,{size:"small",children:[!n&&!t&&F(O1,{style:{marginLeft:5}}),F(an,{onClick:nj,css:$m.btn,children:F(Bn,{name:"Config",css:$m.icon})}),F(M1,{onClick:e,refreshHotkeyEnabled:!(o||i)}),!r&&ee(an,{css:Ih,onClick:tj,children:[F("span",{children:"查看更多"}),F("svg",{css:Ur`
                    width: 12px;
                    height: 12px;
                    margin-left: 2px;
                  `,children:F("use",{href:"#widget-arrow"})})]})]})})]}),F(J3,{show:i,onHide:rj}),F(H3,{show:o,onHide:ij})]})}const M1=f.forwardRef(function({onClick:e,className:t="",style:r,refreshHotkeyEnabled:n},i){n??(n=!0);const[o,a]=f.useState(0),s=gt(c=>(a(u=>u+360),e==null?void 0:e(c))),l=f.useRef(null);return f.useImperativeHandle(i,()=>({click(){var c;(c=l.current)==null||c.click();}}),[]),Xt("r",()=>{var c;n&&(Ic()||(c=l.current)==null||c.click());},{exactMatch:!0}),ee(an,{className:t,style:r,css:Ur`
        ${Ih}
        &.ant-btn:not(:disabled):focus-visible {
          outline: none;
        }
      `,ref:l,onClick:s,children:[F("svg",{style:{transform:`rotate(${o}deg)`,width:"11px",height:"11px",marginRight:5,transition:o===360?"transform .5s ease":"unset"},onTransitionEnd:()=>{a(0);},children:F("use",{href:"#widget-roll"})}),F("span",{children:"换一换"})]})}),oj={grid:Ur`
    /* card=299 col-gap=20  */
    width: ${299*2+20}px;
    margin: 0 auto;
  `};function aj(){const{useNarrowMode:e}=_n(),{modalFeedVisible:t,modalConfigVisible:r}=ej(),n=f.useRef(null),i=gt(()=>{var a;return (a=n.current)==null?void 0:a.refresh()}),o=gt(()=>{document.documentElement.scrollTop=0;});return ee("section",{"data-area":"推荐",children:[F(R1,{onRefresh:i}),F(_1,{ref:n,css:[e&&oj.grid,"",""],shortcutEnabled:!(t||r),infiteScrollUseWindow:!0,onScrollToTop:o})]})}function sj(){const e=f.useMemo(()=>new Array(20).fill(0).map(()=>crypto.randomUUID()),[]),t=za(),r=f.useMemo(()=>({page:1}),[]),{data:n,loading:i,error:o,refresh:a}=Ay(()=>w3(r));return o&&console.error(o.stack||o),ee("section",{"data-area":"推荐",children:[F(R1,{onRefresh:a}),F("div",{className:K(xh,BD,{[e1]:t}),style:{marginBottom:t?30:0},children:i||o?e.map(s=>F(kl,{},s)):n.map(s=>F(kl,{item:s},s.uniqId))})]})}sc.extend(n_);(function(){var t;if(location.href.startsWith("https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png?"))return window.stop(),(t=window.top)==null?void 0:t.postMessage(location.href,"https://www.bilibili.com");if(location.pathname==="/"||location.pathname==="/index.html")return lj()})();async function lj(){return tl(".adblock-tips"),gy("html.gray",e=>e.classList.remove("gray")),et.pureRecommend?uj():cj()}async function cj(){const t=Date.now()+1e4;let r;for(;Date.now()<=t;){if(document.querySelector(".bili-layout > section.bili-grid")){const o=document.querySelector(".bili-layout > section.bili-grid");r=a=>o==null?void 0:o.insertAdjacentElement("afterend",a);break}if(za()&&document.querySelector(".bili-feed4-layout")){r=o=>{var a;return (a=document.querySelector(".bili-feed4-layout"))==null?void 0:a.insertAdjacentElement("afterbegin",o)};break}await Nc(200);}if(!r){console.error(`[${di}]: init fail`);return}const n=document.createElement("section");r(n),Ac(n).render(F(py,{children:F(sj,{})}));}async function uj(){var i,o;za()?((i=document.querySelector(".bili-feed4 .bili-feed4-layout"))==null||i.remove(),tl(".bili-feed4 .header-channel")):((o=document.querySelector(".bili-layout"))==null||o.remove(),tl(".bili-footer"),tl(".palette-button-wrap > .primary-btn",a=>a.innerText.includes("分区"),2e3).then(()=>{document.querySelectorAll(".palette-button-wrap .primary-btn").forEach(a=>{a.classList.remove("hidden"),a.classList.contains("top-btn")&&a.classList.remove("top-btn");});}));const e=document.createElement("div");e.classList.add(za()?"bili-feed4-layout":"bili-layout","pure-recommend");const t=document.querySelector(".bili-header");t==null||t.insertAdjacentElement("afterend",e);const r=document.createElement("section");e==null||e.appendChild(r),Ac(r).render(F(py,{children:F(aj,{})}));}});dj();

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