bilibili-app-recommend

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

当前为 2023-04-21 提交的版本,查看 最新版本

// ==UserScript==
// @name         bilibili-app-recommend
// @namespace    https://magicdawn.fun
// @version      0.10.5
// @author       magicdawn
// @description  为B站首页添加像App一样的推荐
// @license      MIT
// @homepageURL  https://gf.qytechs.cn/zh-CN/scripts/443530-bilibili-app-recommend
// @supportURL   https://github.com/magicdawn/bilibili-app-recommend/issues
// @match        *://www.bilibili.com/
// @match        *://www.bilibili.com/?*
// @match        https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png
// @match        https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png?*
// @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 i=document.createElement("style");i.dataset.source="vite-plugin-monkey",i.textContent=e,document.head.append(i)})(` .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_mcbuq_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:#ffb243;color:#fff;border-radius:6px;white-space:pre-wrap}._toast-container_mcbuq_1._single-line_mcbuq_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_15g5q_1{line-height:1;margin-right:5px;font-size:0}._settings-group_15g5q_6{margin-bottom:10px}._settings-group_15g5q_6 ._settings-group-title_15g5q_9{font-size:2em;display:flex;align-items:center}._settings-group_15g5q_6 ._settings-group-content_15g5q_14{color:default}._settings-group_15g5q_6 ._settings-group-content_15g5q_14 button:first-child{margin-left:0}._row_15g5q_20{display:flex;align-items:center;flex-wrap:wrap}._row_15g5q_20 .primary-btn:first-child{margin-left:0}._check_15g5q_28{margin-bottom:5px;margin-inline-start:0!important;margin-inline-end:5px!important}._expand-btn_wdzp9_1{padding:0;width:31px;height:31px;border-radius:50%}._expand-btn_wdzp9_1 svg{width:13px;height:13px;transform:rotate(180deg)}._expand-btn_wdzp9_1 svg._expanded_wdzp9_12{transform:rotate(0)}body.dark ._expand-btn_wdzp9_1{color:#eee!important;border-color:transparent!important;background-color:#333!important}body.dark ._expand-btn_wdzp9_1:hover{background-color:#555!important}._modal-mask_juq7d_1._narrow-mode_juq7d_1{background-color:#000000e6}._modal_juq7d_1{width:calc(100vw - 30px);height:calc(100vh - 30px);max-height:unset;padding-right:0}body.dark ._modal_juq7d_1{border:1px solid #ff6699}._modal_juq7d_1._narrow-mode_juq7d_1{width:606px;height:calc(100vh - 10px);border:none}body.dark ._modal_juq7d_1._narrow-mode_juq7d_1{border:none}._modal-header_juq7d_21,._modal-body_juq7d_22{padding-right:15px}body.dark ._btn-refresh_juq7d_25{color:#eee!important;background-color:#333!important;border-color:transparent!important;height:auto;padding:8px 12px;line-height:16px;font-size:13px}
 `);

(function (h, cg, Fu, Db) {
  '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 h__namespace = /*#__PURE__*/_interopNamespaceDefault(h);
  const cg__namespace = /*#__PURE__*/_interopNamespaceDefault(cg);

  var Rb=Object.defineProperty;var Mb=(e,t,r)=>t in e?Rb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Ab=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Ke=(e,t,r)=>(Mb(e,typeof t!="symbol"?t+"":t,r),r),Al=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var R=(e,t,r)=>(Al(e,t,"read from private field"),r?r.call(e):t.get(e)),ge=(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);},ne=(e,t,r,n)=>(Al(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),ya=(e,t,r,n)=>({set _(i){ne(e,t,i,r);},get _(){return R(e,t,n)}}),J=(e,t,r)=>(Al(e,t,"access private method"),r);var KN=Ab((sn,ln)=>{function jb(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 zb(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 Hb=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(zb(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=jb(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}(),Pt="-ms-",es="-moz-",_e="-webkit-",dg="comm",Lu="rule",Du="decl",Wb="@import",fg="@keyframes",Bb=Math.abs,Rs=String.fromCharCode,Vb=Object.assign;function Ub(e,t){return Et(e,0)^45?(((t<<2^Et(e,0))<<2^Et(e,1))<<2^Et(e,2))<<2^Et(e,3):0}function hg(e){return e.trim()}function Gb(e,t){return (e=t.exec(e))?e[0]:e}function Ae(e,t,r){return e.replace(t,r)}function Ec(e,t){return e.indexOf(t)}function Et(e,t){return e.charCodeAt(t)|0}function Oo(e,t,r){return e.slice(t,r)}function Lr(e){return e.length}function ju(e){return e.length}function wa(e,t){return t.push(e),e}function qb(e,t){return e.map(t).join("")}var Ms=1,Ai=1,gg=0,jt=0,at=0,Wi="";function As(e,t,r,n,i,o,a){return {value:e,root:t,parent:r,type:n,props:i,children:o,line:Ms,column:Ai,length:a,return:""}}function Qi(e,t){return Vb(As("",null,null,"",null,null,0),e,{length:-e.length},t)}function Kb(){return at}function Xb(){return at=jt>0?Et(Wi,--jt):0,Ai--,at===10&&(Ai=1,Ms--),at}function tr(){return at=jt<gg?Et(Wi,jt++):0,Ai++,at===10&&(Ai=1,Ms++),at}function zr(){return Et(Wi,jt)}function La(){return jt}function Ko(e,t){return Oo(Wi,e,t)}function Po(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 mg(e){return Ms=Ai=1,gg=Lr(Wi=e),jt=0,[]}function vg(e){return Wi="",e}function Da(e){return hg(Ko(jt-1,xc(e===91?e+2:e===40?e+1:e)))}function Yb(e){for(;(at=zr())&&at<33;)tr();return Po(e)>2||Po(at)>3?"":" "}function Zb(e,t){for(;--t&&tr()&&!(at<48||at>102||at>57&&at<65||at>70&&at<97););return Ko(e,La()+(t<6&&zr()==32&&tr()==32))}function xc(e){for(;tr();)switch(at){case e:return jt;case 34:case 39:e!==34&&e!==39&&xc(at);break;case 40:e===41&&xc(e);break;case 92:tr();break}return jt}function Qb(e,t){for(;tr()&&e+at!==47+10;)if(e+at===42+42&&zr()===47)break;return "/*"+Ko(t,jt-1)+"*"+Rs(e===47?e:tr())}function Jb(e){for(;!Po(zr());)tr();return Ko(e,jt)}function pg(e){return vg(ja("",null,null,null,[""],e=mg(e),0,[0],e))}function ja(e,t,r,n,i,o,a,s,l){for(var c=0,u=0,d=a,f=0,g=0,v=0,m=1,p=1,b=1,$=0,C="",O=i,w=o,S=n,y=C;p;)switch(v=$,$=tr()){case 40:if(v!=108&&Et(y,d-1)==58){Ec(y+=Ae(Da($),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:y+=Da($);break;case 9:case 10:case 13:case 32:y+=Yb(v);break;case 92:y+=Zb(La()-1,7);continue;case 47:switch(zr()){case 42:case 47:wa(e0(Qb(tr(),La()),t,r),l);break;default:y+="/";}break;case 123*m:s[c++]=Lr(y)*b;case 125*m:case 59:case 0:switch($){case 0:case 125:p=0;case 59+u:g>0&&Lr(y)-d&&wa(g>32?Jd(y+";",n,r,d-1):Jd(Ae(y," ","")+";",n,r,d-2),l);break;case 59:y+=";";default:if(wa(S=Qd(y,t,r,c,u,i,s,C,O=[],w=[],d),o),$===123)if(u===0)ja(y,t,S,S,O,o,d,s,w);else switch(f===99&&Et(y,3)===110?100:f){case 100:case 109:case 115:ja(e,S,S,n&&wa(Qd(e,S,S,0,0,i,s,C,i,O=[],d),w),i,w,d,s,n?O:w);break;default:ja(y,S,S,S,[""],w,0,s,w);}}c=u=g=0,m=b=1,C=y="",d=a;break;case 58:d=1+Lr(y),g=v;default:if(m<1){if($==123)--m;else if($==125&&m++==0&&Xb()==125)continue}switch(y+=Rs($),$*m){case 38:b=u>0?1:(y+="\f",-1);break;case 44:s[c++]=(Lr(y)-1)*b,b=1;break;case 64:zr()===45&&(y+=Da(tr())),f=zr(),u=d=Lr(C=y+=Jb(La())),$++;break;case 45:v===45&&Lr(y)==2&&(m=0);}}return o}function Qd(e,t,r,n,i,o,a,s,l,c,u){for(var d=i-1,f=i===0?o:[""],g=ju(f),v=0,m=0,p=0;v<n;++v)for(var b=0,$=Oo(e,d+1,d=Bb(m=a[v])),C=e;b<g;++b)(C=hg(m>0?f[b]+" "+$:Ae($,/&\f/g,f[b])))&&(l[p++]=C);return As(e,t,r,i===0?Lu:s,l,c,u)}function e0(e,t,r){return As(e,t,r,dg,Rs(Kb()),Oo(e,2,-2),0)}function Jd(e,t,r,n){return As(e,t,r,Du,Oo(e,0,n),Oo(e,n+1,-1),n)}function Xn(e,t){for(var r="",n=ju(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function bg(e,t,r,n){switch(e.type){case Wb:case Du:return e.return=e.return||e.value;case dg:return "";case fg:return e.return=e.value+"{"+Xn(e.children,n)+"}";case Lu:e.value=e.props.join(",");}return Lr(r=Xn(e.children,n))?e.return=e.value+"{"+r+"}":""}function t0(e){var t=ju(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 r0(e){return function(t){t.root||(t=t.return)&&e(t);}}function n0(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var i0=function(t,r,n){for(var i=0,o=0;i=o,o=zr(),i===38&&o===12&&(r[n]=1),!Po(o);)tr();return Ko(t,jt)},o0=function(t,r){var n=-1,i=44;do switch(Po(i)){case 0:i===38&&zr()===12&&(r[n]=1),t[n]+=i0(jt-1,r,n);break;case 2:t[n]+=Da(i);break;case 4:if(i===44){t[++n]=zr()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=Rs(i);}while(i=tr());return t},a0=function(t,r){return vg(o0(mg(t),r))},ef=new WeakMap,s0=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&&!ef.get(n))&&!i){ef.set(t,!0);for(var o=[],a=a0(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];}}},l0=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="");}};function yg(e,t){switch(Ub(e,t)){case 5103:return _e+"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 _e+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return _e+e+es+e+Pt+e+e;case 6828:case 4268:return _e+e+Pt+e+e;case 6165:return _e+e+Pt+"flex-"+e+e;case 5187:return _e+e+Ae(e,/(\w+).+(:[^]+)/,_e+"box-$1$2"+Pt+"flex-$1$2")+e;case 5443:return _e+e+Pt+"flex-item-"+Ae(e,/flex-|-self/,"")+e;case 4675:return _e+e+Pt+"flex-line-pack"+Ae(e,/align-content|flex-|-self/,"")+e;case 5548:return _e+e+Pt+Ae(e,"shrink","negative")+e;case 5292:return _e+e+Pt+Ae(e,"basis","preferred-size")+e;case 6060:return _e+"box-"+Ae(e,"-grow","")+_e+e+Pt+Ae(e,"grow","positive")+e;case 4554:return _e+Ae(e,/([^-])(transform)/g,"$1"+_e+"$2")+e;case 6187:return Ae(Ae(Ae(e,/(zoom-|grab)/,_e+"$1"),/(image-set)/,_e+"$1"),e,"")+e;case 5495:case 3959:return Ae(e,/(image-set\([^]*)/,_e+"$1$`$1");case 4968:return Ae(Ae(e,/(.+:)(flex-)?(.*)/,_e+"box-pack:$3"+Pt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+_e+e+e;case 4095:case 3583:case 4068:case 2532:return Ae(e,/(.+)-inline(.+)/,_e+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Lr(e)-1-t>6)switch(Et(e,t+1)){case 109:if(Et(e,t+4)!==45)break;case 102:return Ae(e,/(.+:)(.+)-([^]+)/,"$1"+_e+"$2-$3$1"+es+(Et(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return ~Ec(e,"stretch")?yg(Ae(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Et(e,t+1)!==115)break;case 6444:switch(Et(e,Lr(e)-3-(~Ec(e,"!important")&&10))){case 107:return Ae(e,":",":"+_e)+e;case 101:return Ae(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+_e+(Et(e,14)===45?"inline-":"")+"box$3$1"+_e+"$2$3$1"+Pt+"$2box$3")+e}break;case 5936:switch(Et(e,t+11)){case 114:return _e+e+Pt+Ae(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return _e+e+Pt+Ae(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return _e+e+Pt+Ae(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return _e+e+Pt+e+e}return e}var c0=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case Du:t.return=yg(t.value,t.length);break;case fg:return Xn([Qi(t,{value:Ae(t.value,"@","@"+_e)})],i);case Lu:if(t.length)return qb(t.props,function(o){switch(Gb(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Xn([Qi(t,{props:[Ae(o,/:(read-\w+)/,":"+es+"$1")]})],i);case"::placeholder":return Xn([Qi(t,{props:[Ae(o,/:(plac\w+)/,":"+_e+"input-$1")]}),Qi(t,{props:[Ae(o,/:(plac\w+)/,":"+es+"$1")]}),Qi(t,{props:[Ae(o,/:(plac\w+)/,Pt+"input-$1")]})],i)}return ""})}},u0=[c0],wg=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 p=m.getAttribute("data-emotion");p.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""));});}var i=t.stylisPlugins||u0,o={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(m){for(var p=m.getAttribute("data-emotion").split(" "),b=1;b<p.length;b++)o[p[b]]=!0;s.push(m);});var l,c=[s0,l0];{var u,d=[bg,r0(function(m){u.insert(m);})],f=t0(c.concat(i,d)),g=function(p){return Xn(pg(p),f)};l=function(p,b,$,C){u=$,g(p?p+"{"+b.styles+"}":b.styles),C&&(v.inserted[b.name]=!0);};}var v={key:r,sheet:new Hb({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 v.sheet.hydrate(s),v},Sg=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function d0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function f0(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 To={},h0={get exports(){return To},set exports(e){To=e;}},ke={};/** @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 St=typeof Symbol=="function"&&Symbol.for,zu=St?Symbol.for("react.element"):60103,Hu=St?Symbol.for("react.portal"):60106,Ns=St?Symbol.for("react.fragment"):60107,ks=St?Symbol.for("react.strict_mode"):60108,Is=St?Symbol.for("react.profiler"):60114,Fs=St?Symbol.for("react.provider"):60109,Ls=St?Symbol.for("react.context"):60110,Wu=St?Symbol.for("react.async_mode"):60111,Ds=St?Symbol.for("react.concurrent_mode"):60111,js=St?Symbol.for("react.forward_ref"):60112,zs=St?Symbol.for("react.suspense"):60113,g0=St?Symbol.for("react.suspense_list"):60120,Hs=St?Symbol.for("react.memo"):60115,Ws=St?Symbol.for("react.lazy"):60116,m0=St?Symbol.for("react.block"):60121,v0=St?Symbol.for("react.fundamental"):60117,p0=St?Symbol.for("react.responder"):60118,b0=St?Symbol.for("react.scope"):60119;function or(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case zu:switch(e=e.type,e){case Wu:case Ds:case Ns:case Is:case ks:case zs:return e;default:switch(e=e&&e.$$typeof,e){case Ls:case js:case Ws:case Hs:case Fs:return e;default:return t}}case Hu:return t}}}function Cg(e){return or(e)===Ds}ke.AsyncMode=Wu;ke.ConcurrentMode=Ds;ke.ContextConsumer=Ls;ke.ContextProvider=Fs;ke.Element=zu;ke.ForwardRef=js;ke.Fragment=Ns;ke.Lazy=Ws;ke.Memo=Hs;ke.Portal=Hu;ke.Profiler=Is;ke.StrictMode=ks;ke.Suspense=zs;ke.isAsyncMode=function(e){return Cg(e)||or(e)===Wu};ke.isConcurrentMode=Cg;ke.isContextConsumer=function(e){return or(e)===Ls};ke.isContextProvider=function(e){return or(e)===Fs};ke.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===zu};ke.isForwardRef=function(e){return or(e)===js};ke.isFragment=function(e){return or(e)===Ns};ke.isLazy=function(e){return or(e)===Ws};ke.isMemo=function(e){return or(e)===Hs};ke.isPortal=function(e){return or(e)===Hu};ke.isProfiler=function(e){return or(e)===Is};ke.isStrictMode=function(e){return or(e)===ks};ke.isSuspense=function(e){return or(e)===zs};ke.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Ns||e===Ds||e===Is||e===ks||e===zs||e===g0||typeof e=="object"&&e!==null&&(e.$$typeof===Ws||e.$$typeof===Hs||e.$$typeof===Fs||e.$$typeof===Ls||e.$$typeof===js||e.$$typeof===v0||e.$$typeof===p0||e.$$typeof===b0||e.$$typeof===m0)};ke.typeOf=or;(function(e){e.exports=ke;})(h0);var $g=To,y0={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},w0={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Eg={};Eg[$g.ForwardRef]=y0;Eg[$g.Memo]=w0;var S0=!0;function Bu(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):n+=i+" ";}),n}var xg=function(t,r,n){var i=t.key+"-"+r.name;(n===!1||S0===!1)&&t.registered[i]===void 0&&(t.registered[i]=r.styles);},_g=function(t,r,n){xg(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 C0(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 $0={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},E0=/[A-Z]|^ms/g,x0=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Og=function(t){return t.charCodeAt(1)===45},tf=function(t){return t!=null&&typeof t!="boolean"},kl=n0(function(e){return Og(e)?e:e.replace(E0,"-$&").toLowerCase()}),rf=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(x0,function(n,i,o){return Dr={name:i,styles:o,next:Dr},i})}return $0[t]!==1&&!Og(t)&&typeof r=="number"&&r!==0?r+"px":r};function Ro(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 Dr={name:r.name,styles:r.styles,next:Dr},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)Dr={name:n.name,styles:n.styles,next:Dr},n=n.next;var i=r.styles+";";return i}return _0(e,t,r)}case"function":{if(e!==void 0){var o=Dr,a=r(e);return Dr=o,Ro(e,t,a)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function _0(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=Ro(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]+"}":tf(a)&&(n+=kl(o)+":"+rf(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++)tf(a[s])&&(n+=kl(o)+":"+rf(o,a[s])+";");else {var l=Ro(e,t,a);switch(o){case"animation":case"animationName":{n+=kl(o)+":"+l+";";break}default:n+=o+"{"+l+"}";}}}return n}var nf=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Dr,uo=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="";Dr=void 0;var a=t[0];a==null||a.raw===void 0?(i=!1,o+=Ro(n,r,a)):o+=a[0];for(var s=1;s<t.length;s++)o+=Ro(n,r,t[s]),i&&(o+=a[s]);nf.lastIndex=0;for(var l="",c;(c=nf.exec(o))!==null;)l+="-"+c[1];var u=C0(o)+l;return {name:u,styles:o,next:Dr}},O0=function(t){return t()},P0=h__namespace["useInsertionEffect"]?h__namespace["useInsertionEffect"]:!1,T0=P0||O0,Bs={}.hasOwnProperty,Pg=h.createContext(typeof HTMLElement<"u"?wg({key:"css"}):null);Pg.Provider;var R0=function(t){return h.forwardRef(function(r,n){var i=h.useContext(Pg);return t(r,i,n)})},M0=h.createContext({}),_c="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Tg=function(t,r){var n={};for(var i in r)Bs.call(r,i)&&(n[i]=r[i]);return n[_c]=t,n},A0=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return xg(r,n,i),T0(function(){return _g(r,n,i)}),null},Rg=R0(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var i=e[_c],o=[n],a="";typeof e.className=="string"?a=Bu(t.registered,o,e.className):e.className!=null&&(a=e.className+" ");var s=uo(o,void 0,h.useContext(M0));a+=t.key+"-"+s.name;var l={};for(var c in e)Bs.call(e,c)&&c!=="css"&&c!==_c&&(l[c]=e[c]);return l.ref=r,l.className=a,h.createElement(h.Fragment,null,h.createElement(A0,{cache:t,serialized:s,isStringTag:typeof i=="string"}),h.createElement(i,l))}),Mo={},N0={get exports(){return Mo},set exports(e){Mo=e;}},Vs={};/**
   * @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 k0=h,I0=Symbol.for("react.element"),F0=Symbol.for("react.fragment"),L0=Object.prototype.hasOwnProperty,D0=k0.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,j0={key:!0,ref:!0,__self:!0,__source:!0};function Mg(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)L0.call(t,n)&&!j0.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:I0,type:e,key:o,ref:a,props:i,_owner:D0.current}}Vs.Fragment=F0;Vs.jsx=Mg;Vs.jsxs=Mg;(function(e){e.exports=Vs;})(N0);const z0=Mo.Fragment,of=Mo.jsx,af=Mo.jsxs;var Dt=z0;function F(e,t,r){return Bs.call(t,"css")?of(Rg,Tg(e,t),r):of(e,t,r)}function U(e,t,r){return Bs.call(t,"css")?af(Rg,Tg(e,t),r):af(e,t,r)}const Bi="bilibili-app-recommend",H0="bilibili_app_recommend";var W0=typeof global=="object"&&global&&global.Object===Object&&global;const Ag=W0;var B0=typeof self=="object"&&self&&self.Object===Object&&self,V0=Ag||B0||Function("return this")();const Vr=V0;var U0=Vr.Symbol;const Wr=U0;var Ng=Object.prototype,G0=Ng.hasOwnProperty,q0=Ng.toString,Ji=Wr?Wr.toStringTag:void 0;function K0(e){var t=G0.call(e,Ji),r=e[Ji];try{e[Ji]=void 0;var n=!0;}catch{}var i=q0.call(e);return n&&(t?e[Ji]=r:delete e[Ji]),i}var X0=Object.prototype,Y0=X0.toString;function Z0(e){return Y0.call(e)}var Q0="[object Null]",J0="[object Undefined]",sf=Wr?Wr.toStringTag:void 0;function Vi(e){return e==null?e===void 0?J0:Q0:sf&&sf in Object(e)?K0(e):Z0(e)}function Ni(e){return e!=null&&typeof e=="object"}var ey="[object Symbol]";function Us(e){return typeof e=="symbol"||Ni(e)&&Vi(e)==ey}function ty(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 ry=Array.isArray;const Br=ry;var ny=1/0,lf=Wr?Wr.prototype:void 0,cf=lf?lf.toString:void 0;function kg(e){if(typeof e=="string")return e;if(Br(e))return ty(e,kg)+"";if(Us(e))return cf?cf.call(e):"";var t=e+"";return t=="0"&&1/e==-ny?"-0":t}var iy=/\s/;function oy(e){for(var t=e.length;t--&&iy.test(e.charAt(t)););return t}var ay=/^\s+/;function sy(e){return e&&e.slice(0,oy(e)+1).replace(ay,"")}function dn(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var uf=0/0,ly=/^[-+]0x[0-9a-f]+$/i,cy=/^0b[01]+$/i,uy=/^0o[0-7]+$/i,dy=parseInt;function Oc(e){if(typeof e=="number")return e;if(Us(e))return uf;if(dn(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=dn(t)?t+"":t;}if(typeof e!="string")return e===0?e:+e;e=sy(e);var r=cy.test(e);return r||uy.test(e)?dy(e.slice(2),r?2:8):ly.test(e)?uf:+e}var df=1/0,fy=17976931348623157e292;function hy(e){if(!e)return e===0?e:0;if(e=Oc(e),e===df||e===-df){var t=e<0?-1:1;return t*fy}return e===e?e:0}function gy(e){var t=hy(e),r=t%1;return t===t?r?t-r:t:0}function Ig(e){return e}var my="[object AsyncFunction]",vy="[object Function]",py="[object GeneratorFunction]",by="[object Proxy]";function Fg(e){if(!dn(e))return !1;var t=Vi(e);return t==vy||t==py||t==my||t==by}var yy=Vr["__core-js_shared__"];const Il=yy;var ff=function(){var e=/[^.]+$/.exec(Il&&Il.keys&&Il.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function wy(e){return !!ff&&ff in e}var Sy=Function.prototype,Cy=Sy.toString;function Jn(e){if(e!=null){try{return Cy.call(e)}catch{}try{return e+""}catch{}}return ""}var $y=/[\\^$.*+?()[\]{}|]/g,Ey=/^\[object .+?Constructor\]$/,xy=Function.prototype,_y=Object.prototype,Oy=xy.toString,Py=_y.hasOwnProperty,Ty=RegExp("^"+Oy.call(Py).replace($y,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ry(e){if(!dn(e)||wy(e))return !1;var t=Fg(e)?Ty:Ey;return t.test(Jn(e))}function My(e,t){return e==null?void 0:e[t]}function ei(e,t){var r=My(e,t);return Ry(r)?r:void 0}var Ay=ei(Vr,"WeakMap");const Pc=Ay;function Ny(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 ky(){}var Iy=800,Fy=16,Ly=Date.now;function Dy(e){var t=0,r=0;return function(){var n=Ly(),i=Fy-(n-r);if(r=n,i>0){if(++t>=Iy)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function jy(e){return function(){return e}}var zy=function(){try{var e=ei(Object,"defineProperty");return e({},"",{}),e}catch{}}();const ts=zy;var Hy=ts?function(e,t){return ts(e,"toString",{configurable:!0,enumerable:!1,value:jy(t),writable:!0})}:Ig;const Wy=Hy;var By=Dy(Wy);const Vy=By;function Uy(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 Gy(e){return e!==e}function qy(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return -1}function Ky(e,t,r){return t===t?qy(e,t,r):Uy(e,Gy,r)}function Xy(e,t){var r=e==null?0:e.length;return !!r&&Ky(e,t,0)>-1}var Yy=9007199254740991,Zy=/^(?:0|[1-9]\d*)$/;function Vu(e,t){var r=typeof e;return t=t??Yy,!!t&&(r=="number"||r!="symbol"&&Zy.test(e))&&e>-1&&e%1==0&&e<t}function Qy(e,t,r){t=="__proto__"&&ts?ts(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r;}function Uu(e,t){return e===t||e!==e&&t!==t}var Jy=Object.prototype,e1=Jy.hasOwnProperty;function t1(e,t,r){var n=e[t];(!(e1.call(e,t)&&Uu(n,r))||r===void 0&&!(t in e))&&Qy(e,t,r);}var hf=Math.max;function r1(e,t,r){return t=hf(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=hf(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),Ny(e,this,s)}}var n1=9007199254740991;function Gu(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=n1}function i1(e){return e!=null&&Gu(e.length)&&!Fg(e)}var o1=Object.prototype;function a1(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||o1;return e===r}function s1(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var l1="[object Arguments]";function gf(e){return Ni(e)&&Vi(e)==l1}var Lg=Object.prototype,c1=Lg.hasOwnProperty,u1=Lg.propertyIsEnumerable,d1=gf(function(){return arguments}())?gf:function(e){return Ni(e)&&c1.call(e,"callee")&&!u1.call(e,"callee")};const qu=d1;function f1(){return !1}var Dg=typeof sn=="object"&&sn&&!sn.nodeType&&sn,mf=Dg&&typeof ln=="object"&&ln&&!ln.nodeType&&ln,h1=mf&&mf.exports===Dg,vf=h1?Vr.Buffer:void 0,g1=vf?vf.isBuffer:void 0,m1=g1||f1;const Tc=m1;var v1="[object Arguments]",p1="[object Array]",b1="[object Boolean]",y1="[object Date]",w1="[object Error]",S1="[object Function]",C1="[object Map]",$1="[object Number]",E1="[object Object]",x1="[object RegExp]",_1="[object Set]",O1="[object String]",P1="[object WeakMap]",T1="[object ArrayBuffer]",R1="[object DataView]",M1="[object Float32Array]",A1="[object Float64Array]",N1="[object Int8Array]",k1="[object Int16Array]",I1="[object Int32Array]",F1="[object Uint8Array]",L1="[object Uint8ClampedArray]",D1="[object Uint16Array]",j1="[object Uint32Array]",Ye={};Ye[M1]=Ye[A1]=Ye[N1]=Ye[k1]=Ye[I1]=Ye[F1]=Ye[L1]=Ye[D1]=Ye[j1]=!0;Ye[v1]=Ye[p1]=Ye[T1]=Ye[b1]=Ye[R1]=Ye[y1]=Ye[w1]=Ye[S1]=Ye[C1]=Ye[$1]=Ye[E1]=Ye[x1]=Ye[_1]=Ye[O1]=Ye[P1]=!1;function z1(e){return Ni(e)&&Gu(e.length)&&!!Ye[Vi(e)]}function H1(e){return function(t){return e(t)}}var jg=typeof sn=="object"&&sn&&!sn.nodeType&&sn,fo=jg&&typeof ln=="object"&&ln&&!ln.nodeType&&ln,W1=fo&&fo.exports===jg,Fl=W1&&Ag.process,B1=function(){try{var e=fo&&fo.require&&fo.require("util").types;return e||Fl&&Fl.binding&&Fl.binding("util")}catch{}}();const pf=B1;var bf=pf&&pf.isTypedArray,V1=bf?H1(bf):z1;const zg=V1;var U1=Object.prototype,G1=U1.hasOwnProperty;function q1(e,t){var r=Br(e),n=!r&&qu(e),i=!r&&!n&&Tc(e),o=!r&&!n&&!i&&zg(e),a=r||n||i||o,s=a?s1(e.length,String):[],l=s.length;for(var c in e)(t||G1.call(e,c))&&!(a&&(c=="length"||i&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Vu(c,l)))&&s.push(c);return s}function K1(e,t){return function(r){return e(t(r))}}var X1=K1(Object.keys,Object);const Y1=X1;var Z1=Object.prototype,Q1=Z1.hasOwnProperty;function J1(e){if(!a1(e))return Y1(e);var t=[];for(var r in Object(e))Q1.call(e,r)&&r!="constructor"&&t.push(r);return t}function Hg(e){return i1(e)?q1(e):J1(e)}var ew=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,tw=/^\w*$/;function Ku(e,t){if(Br(e))return !1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Us(e)?!0:tw.test(e)||!ew.test(e)||t!=null&&e in Object(t)}var rw=ei(Object,"create");const Ao=rw;function nw(){this.__data__=Ao?Ao(null):{},this.size=0;}function iw(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var ow="__lodash_hash_undefined__",aw=Object.prototype,sw=aw.hasOwnProperty;function lw(e){var t=this.__data__;if(Ao){var r=t[e];return r===ow?void 0:r}return sw.call(t,e)?t[e]:void 0}var cw=Object.prototype,uw=cw.hasOwnProperty;function dw(e){var t=this.__data__;return Ao?t[e]!==void 0:uw.call(t,e)}var fw="__lodash_hash_undefined__";function hw(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ao&&t===void 0?fw: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=nw;Qn.prototype.delete=iw;Qn.prototype.get=lw;Qn.prototype.has=dw;Qn.prototype.set=hw;function gw(){this.__data__=[],this.size=0;}function Gs(e,t){for(var r=e.length;r--;)if(Uu(e[r][0],t))return r;return -1}var mw=Array.prototype,vw=mw.splice;function pw(e){var t=this.__data__,r=Gs(t,e);if(r<0)return !1;var n=t.length-1;return r==n?t.pop():vw.call(t,r,1),--this.size,!0}function bw(e){var t=this.__data__,r=Gs(t,e);return r<0?void 0:t[r][1]}function yw(e){return Gs(this.__data__,e)>-1}function ww(e,t){var r=this.__data__,n=Gs(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function pn(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]);}}pn.prototype.clear=gw;pn.prototype.delete=pw;pn.prototype.get=bw;pn.prototype.has=yw;pn.prototype.set=ww;var Sw=ei(Vr,"Map");const No=Sw;function Cw(){this.size=0,this.__data__={hash:new Qn,map:new(No||pn),string:new Qn};}function $w(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function qs(e,t){var r=e.__data__;return $w(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Ew(e){var t=qs(this,e).delete(e);return this.size-=t?1:0,t}function xw(e){return qs(this,e).get(e)}function _w(e){return qs(this,e).has(e)}function Ow(e,t){var r=qs(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function bn(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]);}}bn.prototype.clear=Cw;bn.prototype.delete=Ew;bn.prototype.get=xw;bn.prototype.has=_w;bn.prototype.set=Ow;var Pw="Expected a function";function Xu(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Pw);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(Xu.Cache||bn),r}Xu.Cache=bn;var Tw=500;function Rw(e){var t=Xu(e,function(n){return r.size===Tw&&r.clear(),n}),r=t.cache;return t}var Mw=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Aw=/\\(\\)?/g,Nw=Rw(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Mw,function(r,n,i,o){t.push(i?o.replace(Aw,"$1"):n||r);}),t});const kw=Nw;function Iw(e){return e==null?"":kg(e)}function Ks(e,t){return Br(e)?e:Ku(e,t)?[e]:kw(Iw(e))}var Fw=1/0;function Xo(e){if(typeof e=="string"||Us(e))return e;var t=e+"";return t=="0"&&1/e==-Fw?"-0":t}function Yu(e,t){t=Ks(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[Xo(t[r++])];return r&&r==n?e:void 0}function Lw(e,t,r){var n=e==null?void 0:Yu(e,t);return n===void 0?r:n}function Wg(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var yf=Wr?Wr.isConcatSpreadable:void 0;function Dw(e){return Br(e)||qu(e)||!!(yf&&e&&e[yf])}function Bg(e,t,r,n,i){var o=-1,a=e.length;for(r||(r=Dw),i||(i=[]);++o<a;){var s=e[o];t>0&&r(s)?t>1?Bg(s,t-1,r,n,i):Wg(i,s):n||(i[i.length]=s);}return i}function jw(e){var t=e==null?0:e.length;return t?Bg(e,1):[]}function zw(e){return Vy(r1(e,void 0,jw),e+"")}var Hw="Expected a function";function Ww(e,t){var r;if(typeof t!="function")throw new TypeError(Hw);return e=gy(e),function(){return --e>0&&(r=t.apply(this,arguments)),e<=1&&(t=void 0),r}}function Bw(){this.__data__=new pn,this.size=0;}function Vw(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Uw(e){return this.__data__.get(e)}function Gw(e){return this.__data__.has(e)}var qw=200;function Kw(e,t){var r=this.__data__;if(r instanceof pn){var n=r.__data__;if(!No||n.length<qw-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new bn(n);}return r.set(e,t),this.size=r.size,this}function cn(e){var t=this.__data__=new pn(e);this.size=t.size;}cn.prototype.clear=Bw;cn.prototype.delete=Vw;cn.prototype.get=Uw;cn.prototype.has=Gw;cn.prototype.set=Kw;function Xw(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 Yw(){return []}var Zw=Object.prototype,Qw=Zw.propertyIsEnumerable,wf=Object.getOwnPropertySymbols,Jw=wf?function(e){return e==null?[]:(e=Object(e),Xw(wf(e),function(t){return Qw.call(e,t)}))}:Yw;const eS=Jw;function tS(e,t,r){var n=t(e);return Br(e)?n:Wg(n,r(e))}function Sf(e){return tS(e,Hg,eS)}var rS=ei(Vr,"DataView");const Rc=rS;var nS=ei(Vr,"Promise");const Mc=nS;var iS=ei(Vr,"Set");const Si=iS;var Cf="[object Map]",oS="[object Object]",$f="[object Promise]",Ef="[object Set]",xf="[object WeakMap]",_f="[object DataView]",aS=Jn(Rc),sS=Jn(No),lS=Jn(Mc),cS=Jn(Si),uS=Jn(Pc),Dn=Vi;(Rc&&Dn(new Rc(new ArrayBuffer(1)))!=_f||No&&Dn(new No)!=Cf||Mc&&Dn(Mc.resolve())!=$f||Si&&Dn(new Si)!=Ef||Pc&&Dn(new Pc)!=xf)&&(Dn=function(e){var t=Vi(e),r=t==oS?e.constructor:void 0,n=r?Jn(r):"";if(n)switch(n){case aS:return _f;case sS:return Cf;case lS:return $f;case cS:return Ef;case uS:return xf}return t});const Of=Dn;var dS=Vr.Uint8Array;const Pf=dS;var fS="__lodash_hash_undefined__";function hS(e){return this.__data__.set(e,fS),this}function gS(e){return this.__data__.has(e)}function ko(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new bn;++t<r;)this.add(e[t]);}ko.prototype.add=ko.prototype.push=hS;ko.prototype.has=gS;function mS(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 Vg(e,t){return e.has(t)}var vS=1,pS=2;function Ug(e,t,r,n,i,o){var a=r&vS,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,f=!0,g=r&pS?new ko:void 0;for(o.set(e,t),o.set(t,e);++d<s;){var v=e[d],m=t[d];if(n)var p=a?n(m,v,d,t,e,o):n(v,m,d,e,t,o);if(p!==void 0){if(p)continue;f=!1;break}if(g){if(!mS(t,function(b,$){if(!Vg(g,$)&&(v===b||i(v,b,r,n,o)))return g.push($)})){f=!1;break}}else if(!(v===m||i(v,m,r,n,o))){f=!1;break}}return o.delete(e),o.delete(t),f}function bS(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n];}),r}function Zu(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n;}),r}var yS=1,wS=2,SS="[object Boolean]",CS="[object Date]",$S="[object Error]",ES="[object Map]",xS="[object Number]",_S="[object RegExp]",OS="[object Set]",PS="[object String]",TS="[object Symbol]",RS="[object ArrayBuffer]",MS="[object DataView]",Tf=Wr?Wr.prototype:void 0,Ll=Tf?Tf.valueOf:void 0;function AS(e,t,r,n,i,o,a){switch(r){case MS:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return !1;e=e.buffer,t=t.buffer;case RS:return !(e.byteLength!=t.byteLength||!o(new Pf(e),new Pf(t)));case SS:case CS:case xS:return Uu(+e,+t);case $S:return e.name==t.name&&e.message==t.message;case _S:case PS:return e==t+"";case ES:var s=bS;case OS:var l=n&yS;if(s||(s=Zu),e.size!=t.size&&!l)return !1;var c=a.get(e);if(c)return c==t;n|=wS,a.set(e,t);var u=Ug(s(e),s(t),n,i,o,a);return a.delete(e),u;case TS:if(Ll)return Ll.call(e)==Ll.call(t)}return !1}var NS=1,kS=Object.prototype,IS=kS.hasOwnProperty;function FS(e,t,r,n,i,o){var a=r&NS,s=Sf(e),l=s.length,c=Sf(t),u=c.length;if(l!=u&&!a)return !1;for(var d=l;d--;){var f=s[d];if(!(a?f in t:IS.call(t,f)))return !1}var g=o.get(e),v=o.get(t);if(g&&v)return g==t&&v==e;var m=!0;o.set(e,t),o.set(t,e);for(var p=a;++d<l;){f=s[d];var b=e[f],$=t[f];if(n)var C=a?n($,b,f,t,e,o):n(b,$,f,e,t,o);if(!(C===void 0?b===$||i(b,$,r,n,o):C)){m=!1;break}p||(p=f=="constructor");}if(m&&!p){var O=e.constructor,w=t.constructor;O!=w&&"constructor"in e&&"constructor"in t&&!(typeof O=="function"&&O instanceof O&&typeof w=="function"&&w instanceof w)&&(m=!1);}return o.delete(e),o.delete(t),m}var LS=1,Rf="[object Arguments]",Mf="[object Array]",Sa="[object Object]",DS=Object.prototype,Af=DS.hasOwnProperty;function jS(e,t,r,n,i,o){var a=Br(e),s=Br(t),l=a?Mf:Of(e),c=s?Mf:Of(t);l=l==Rf?Sa:l,c=c==Rf?Sa:c;var u=l==Sa,d=c==Sa,f=l==c;if(f&&Tc(e)){if(!Tc(t))return !1;a=!0,u=!1;}if(f&&!u)return o||(o=new cn),a||zg(e)?Ug(e,t,r,n,i,o):AS(e,t,l,r,n,i,o);if(!(r&LS)){var g=u&&Af.call(e,"__wrapped__"),v=d&&Af.call(t,"__wrapped__");if(g||v){var m=g?e.value():e,p=v?t.value():t;return o||(o=new cn),i(m,p,r,n,o)}}return f?(o||(o=new cn),FS(e,t,r,n,i,o)):!1}function Xs(e,t,r,n,i){return e===t?!0:e==null||t==null||!Ni(e)&&!Ni(t)?e!==e&&t!==t:jS(e,t,r,n,Xs,i)}var zS=1,HS=2;function WS(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 cn;if(n)var f=n(c,u,l,e,t,d);if(!(f===void 0?Xs(u,c,zS|HS,n,d):f))return !1}}return !0}function Gg(e){return e===e&&!dn(e)}function BS(e){for(var t=Hg(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,Gg(i)];}return t}function qg(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function VS(e){var t=BS(e);return t.length==1&&t[0][2]?qg(t[0][0],t[0][1]):function(r){return r===e||WS(r,e,t)}}function US(e,t){return e!=null&&t in Object(e)}function GS(e,t,r){t=Ks(t,e);for(var n=-1,i=t.length,o=!1;++n<i;){var a=Xo(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&&Gu(i)&&Vu(a,i)&&(Br(e)||qu(e)))}function Kg(e,t){return e!=null&&GS(e,t,US)}var qS=1,KS=2;function XS(e,t){return Ku(e)&&Gg(t)?qg(Xo(e),t):function(r){var n=Lw(r,e);return n===void 0&&n===t?Kg(r,e):Xs(t,n,qS|KS)}}function YS(e){return function(t){return t==null?void 0:t[e]}}function ZS(e){return function(t){return Yu(t,e)}}function QS(e){return Ku(e)?YS(Xo(e)):ZS(e)}function JS(e){return typeof e=="function"?e:e==null?Ig:typeof e=="object"?Br(e)?XS(e[0],e[1]):VS(e):QS(e)}var eC=function(){return Vr.Date.now()};const Dl=eC;var tC="Expected a function",rC=Math.max,nC=Math.min;function Xg(e,t,r){var n,i,o,a,s,l,c=0,u=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(tC);t=Oc(t)||0,dn(r)&&(u=!!r.leading,d="maxWait"in r,o=d?rC(Oc(r.maxWait)||0,t):o,f="trailing"in r?!!r.trailing:f);function g(S){var y=n,T=i;return n=i=void 0,c=S,a=e.apply(T,y),a}function v(S){return c=S,s=setTimeout(b,t),u?g(S):a}function m(S){var y=S-l,T=S-c,P=t-y;return d?nC(P,o-T):P}function p(S){var y=S-l,T=S-c;return l===void 0||y>=t||y<0||d&&T>=o}function b(){var S=Dl();if(p(S))return $(S);s=setTimeout(b,m(S));}function $(S){return s=void 0,f&&n?g(S):(n=i=void 0,a)}function C(){s!==void 0&&clearTimeout(s),c=0,n=l=i=s=void 0;}function O(){return s===void 0?a:$(Dl())}function w(){var S=Dl(),y=p(S);if(n=arguments,i=this,l=S,y){if(s===void 0)return v(l);if(d)return clearTimeout(s),s=setTimeout(b,t),g(l)}return s===void 0&&(s=setTimeout(b,t)),a}return w.cancel=C,w.flush=O,w}function iC(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 oC(e,t){return Xs(e,t)}function aC(e,t,r,n){if(!dn(e))return e;t=Ks(t,e);for(var i=-1,o=t.length,a=o-1,s=e;s!=null&&++i<o;){var l=Xo(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=dn(u)?u:Vu(t[i+1])?[]:{});}t1(s,l,c),s=s[l];}return e}function sC(e,t,r){for(var n=-1,i=t.length,o={};++n<i;){var a=t[n],s=Yu(e,a);r(s,a)&&aC(o,Ks(a,e),s);}return o}function lC(e){return Ww(2,e)}function cC(e,t){return sC(e,t,function(r,n){return Kg(e,n)})}var uC=zw(function(e,t){return e==null?{}:cC(e,t)});const Yg=uC;var dC="Expected a function";function fC(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(dC);return dn(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),Xg(e,t,{leading:n,maxWait:t,trailing:i})}var hC=1/0,gC=Si&&1/Zu(new Si([,-0]))[1]==hC?function(e){return new Si(e)}:ky;const mC=gC;var vC=200;function pC(e,t,r){var n=-1,i=Xy,o=e.length,a=!0,s=[],l=s;if(r)a=!1,i=iC;else if(o>=vC){var c=t?null:mC(e);if(c)return Zu(c);a=!1,i=Vg,l=new ko;}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 f=l.length;f--;)if(l[f]===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 Ys(e,t){return e&&e.length?pC(e,JS(t)):[]}const bC=Symbol(),Qu=Symbol(),eo="a",ho="w";let yC=(e,t)=>new Proxy(e,t);const Ac=Object.getPrototypeOf,Nc=new WeakMap,Zg=e=>e&&(Nc.has(e)?Nc.get(e):Ac(e)===Object.prototype||Ac(e)===Array.prototype),rs=e=>typeof e=="object"&&e!==null,wC=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(Ac(e),t)},Ju=e=>e[Qu]||e,Qg=(e,t,r,n)=>{if(!Zg(e))return e;let i=n&&n.get(e);if(!i){const l=Ju(e);i=(c=>Object.values(Object.getOwnPropertyDescriptors(c)).some(u=>!u.configurable&&!u.writable))(l)?[l,wC(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 f=(v,m)=>{if(!d){let p=u[eo].get(l);if(p||(p={},u[eo].set(l,p)),v===ho)p[ho]=!0;else {let b=p[v];b||(b=new Set,p[v]=b),b.add(m);}}},g={get:(v,m)=>m===Qu?l:(f("k",m),Qg(Reflect.get(v,m),u[eo],u.c)),has:(v,m)=>m===bC?(d=!0,u[eo].delete(l),!0):(f("h",m),Reflect.has(v,m)),getOwnPropertyDescriptor:(v,m)=>(f("o",m),Reflect.getOwnPropertyDescriptor(v,m)),ownKeys:v=>(f(ho),Reflect.ownKeys(v))};return c&&(g.set=g.deleteProperty=()=>!1),[g,u]})(o,!!a),s[1].p=yC(a||o,s[0]),r&&r.set(o,s)),s[1][eo]=t,s[1].c=r,s[1].p},Jg=(e,t,r,n)=>{if(Object.is(e,t))return !1;if(!rs(e)||!rs(t))return !0;const i=r.get(Ju(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[ho]===!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=Jg(e[a],t[a],r,n),o)return o;return o===null&&(o=!0),o}finally{n&&n.set(e,{n:t,g:o});}},SC=e=>Zg(e)&&e[Qu]||null,Nf=(e,t=!0)=>{Nc.set(e,t);},CC=(e,t,r)=>{const n=[],i=new WeakSet,o=(a,s)=>{if(i.has(a))return;rs(a)&&i.add(a);const l=rs(a)&&t.get(Ju(a));if(l){var c,u;if((c=l.h)==null||c.forEach(f=>{const g=`:has(${String(f)})`;n.push(s?[...s,g]:[g]);}),l[ho]===!0){const f=":ownKeys";n.push(s?[...s,f]:[f]);}else {var d;(d=l.o)==null||d.forEach(f=>{const g=`:hasOwn(${String(f)})`;n.push(s?[...s,g]:[g]);});}(u=l.k)==null||u.forEach(f=>{r&&!("value"in(Object.getOwnPropertyDescriptor(a,f)||{}))||o(a[f],s?[...s,f]:[f]);});}else s&&n.push(s);};return o(e),n},jl=e=>typeof e=="object"&&e!==null,Tn=new WeakMap,Ca=new WeakSet,$C=(e=Object.is,t=(c,u)=>new Proxy(c,u),r=c=>jl(c)&&!Ca.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 f=i.get(c);if((f==null?void 0:f[0])===u)return f[1];const g=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c));return Nf(g,!0),i.set(c,[u,g]),Reflect.ownKeys(c).forEach(v=>{if(Object.getOwnPropertyDescriptor(g,v))return;const m=Reflect.get(c,v),p={value:m,enumerable:!0,configurable:!0};if(Ca.has(m))Nf(m,!1);else if(m instanceof Promise)delete p.value,p.get=()=>d(m);else if(Tn.has(m)){const[b,$]=Tn.get(m);p.value=o(b,$(),d);}Object.defineProperty(g,v,p);}),g},a=new WeakMap,s=[1,1],l=c=>{if(!jl(c))throw new Error("object required");const u=a.get(c);if(u)return u;let d=s[0];const f=new Set,g=(P,_=++s[0])=>{d!==_&&(d=_,f.forEach(N=>N(P,_)));};let v=s[1];const m=(P=++s[1])=>(v!==P&&!f.size&&(v=P,b.forEach(([_])=>{const N=_[1](P);N>d&&(d=N);})),d),p=P=>(_,N)=>{const A=[..._];A[1]=[P,...A[1]],g(A,N);},b=new Map,$=(P,_)=>{if(({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&b.has(P))throw new Error("prop listener already exists");if(f.size){const N=_[3](p(P));b.set(P,[_,N]);}else b.set(P,[_]);},C=P=>{var _;const N=b.get(P);N&&(b.delete(P),(_=N[1])==null||_.call(N));},O=P=>(f.add(P),f.size===1&&b.forEach(([N,A],E)=>{if(({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&A)throw new Error("remove already exists");const x=N[3](p(E));b.set(E,[N,x]);}),()=>{f.delete(P),f.size===0&&b.forEach(([N,A],E)=>{A&&(A(),b.set(E,[N]));});}),w=Array.isArray(c)?[]:Object.create(Object.getPrototypeOf(c)),y=t(w,{deleteProperty(P,_){const N=Reflect.get(P,_);C(_);const A=Reflect.deleteProperty(P,_);return A&&g(["delete",[_],N]),A},set(P,_,N,A){const E=Reflect.has(P,_),x=Reflect.get(P,_,A);if(E&&(e(x,N)||a.has(N)&&e(x,a.get(N))))return !0;C(_),jl(N)&&(N=SC(N)||N);let M=N;if(N instanceof Promise)N.then(I=>{N.status="fulfilled",N.value=I,g(["resolve",[_],I]);}).catch(I=>{N.status="rejected",N.reason=I,g(["reject",[_],I]);});else {!Tn.has(N)&&r(N)&&(M=l(N));const I=!Ca.has(M)&&Tn.get(M);I&&$(_,I);}return Reflect.set(P,_,M,A),g(["set",[_],N,x]),!0}});a.set(c,y);const T=[w,m,o,O];return Tn.set(y,T),Reflect.ownKeys(c).forEach(P=>{const _=Object.getOwnPropertyDescriptor(c,P);"value"in _&&(y[P]=c[P],delete _.value,delete _.writable),Object.defineProperty(w,P,_);}),y})=>[l,Tn,Ca,e,t,r,n,i,o,a,s],[EC]=$C();function Yo(e={}){return EC(e)}function em(e,t,r){const n=Tn.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 kf(e,t){const r=Tn.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 kc={},xC={get exports(){return kc},set exports(e){kc=e;}},tm={};/**
   * @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 ki=h;function _C(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var OC=typeof Object.is=="function"?Object.is:_C,PC=ki.useState,TC=ki.useEffect,RC=ki.useLayoutEffect,MC=ki.useDebugValue;function AC(e,t){var r=t(),n=PC({inst:{value:r,getSnapshot:t}}),i=n[0].inst,o=n[1];return RC(function(){i.value=r,i.getSnapshot=t,zl(i)&&o({inst:i});},[e,r,t]),TC(function(){return zl(i)&&o({inst:i}),e(function(){zl(i)&&o({inst:i});})},[e]),MC(r),r}function zl(e){var t=e.getSnapshot;e=e.value;try{var r=t();return !OC(e,r)}catch{return !0}}function NC(e,t){return t()}var kC=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?NC:AC;tm.useSyncExternalStore=ki.useSyncExternalStore!==void 0?ki.useSyncExternalStore:kC;(function(e){e.exports=tm;})(xC);const IC=d0(kc),{use:If}=h,{useSyncExternalStore:FC}=IC,LC=(e,t)=>{const r=h.useRef();h.useEffect(()=>{r.current=CC(e,t,!0);}),h.useDebugValue(r.current);},DC=new WeakMap;function Ui(e,t){const r=t==null?void 0:t.sync,n=h.useRef(),i=h.useRef();let o=!0;const a=FC(h.useCallback(c=>{const u=em(e,c,r);return c(),u},[e,r]),()=>{const c=kf(e,If);try{if(!o&&n.current&&i.current&&!Jg(n.current,c,i.current,new WeakMap))return n.current}catch{}return c},()=>kf(e,If));o=!1;const s=new WeakMap;h.useEffect(()=>{n.current=a,i.current=s;}),({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&LC(a,s);const l=h.useMemo(()=>new WeakMap,[]);return Qg(a,s,l,DC)}const ed={accessKey:"",useNarrowMode:!1,initialShowMore:!1,pureRecommend:!1,openInIINAWhenRightClick:!1,usePcDesktopApi:!1,useParallelRequest:!0,autoPreviewWhenKeyboardSelect:!1,autoPreviewUpdateInterval:400,autoPreviewWhenHover:!1,filterMinPlayCountEnabled:!1,filterMinPlayCount:1e4,filterMinDurationEnabled:!1,filterMinDuration:60},Ee=Yo({...ed}),rm=Object.keys(ed),fn=function(){return Ui(Ee)},jC=Bi,nm=`${jC}.settings`;function zC(){const e=GM_getValue(nm);e&&typeof e=="object"&&Object.assign(Ee,Yg(e,rm)),em(Ee,()=>{HC();});}function HC(){const e=Yg(Ee,rm);GM_setValue(nm,e);}function ns(e){Object.assign(Ee,e);}function WC(){return ns(ed)}zC();var Ic={},BC={get exports(){return Ic},set exports(e){Ic=e;}};(function(e,t){(function(r,n){e.exports=n();})(Sg,function(){var r=1e3,n=6e4,i=36e5,o="millisecond",a="second",s="minute",l="hour",c="day",u="week",d="month",f="quarter",g="year",v="date",m="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,$={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(E){var x=["th","st","nd","rd"],M=E%100;return "["+E+(x[(M-20)%10]||x[M]||x[0])+"]"}},C=function(E,x,M){var I=String(E);return !I||I.length>=x?E:""+Array(x+1-I.length).join(M)+E},O={s:C,z:function(E){var x=-E.utcOffset(),M=Math.abs(x),I=Math.floor(M/60),k=M%60;return (x<=0?"+":"-")+C(I,2,"0")+":"+C(k,2,"0")},m:function E(x,M){if(x.date()<M.date())return -E(M,x);var I=12*(M.year()-x.year())+(M.month()-x.month()),k=x.clone().add(I,d),L=M-k<0,D=x.clone().add(I+(L?-1:1),d);return +(-(I+(M-k)/(L?k-D:D-k))||0)},a:function(E){return E<0?Math.ceil(E)||0:Math.floor(E)},p:function(E){return {M:d,y:g,w:u,d:c,D:v,h:l,m:s,s:a,ms:o,Q:f}[E]||String(E||"").toLowerCase().replace(/s$/,"")},u:function(E){return E===void 0}},w="en",S={};S[w]=$;var y=function(E){return E instanceof N},T=function E(x,M,I){var k;if(!x)return w;if(typeof x=="string"){var L=x.toLowerCase();S[L]&&(k=L),M&&(S[L]=M,k=L);var D=x.split("-");if(!k&&D.length>1)return E(D[0])}else {var H=x.name;S[H]=x,k=H;}return !I&&k&&(w=k),k||!I&&w},P=function(E,x){if(y(E))return E.clone();var M=typeof x=="object"?x:{};return M.date=E,M.args=arguments,new N(M)},_=O;_.l=T,_.i=y,_.w=function(E,x){return P(E,{locale:x.$L,utc:x.$u,x:x.$x,$offset:x.$offset})};var N=function(){function E(M){this.$L=T(M.locale,null,!0),this.parse(M);}var x=E.prototype;return x.parse=function(M){this.$d=function(I){var k=I.date,L=I.utc;if(k===null)return new Date(NaN);if(_.u(k))return new Date;if(k instanceof Date)return new Date(k);if(typeof k=="string"&&!/Z$/i.test(k)){var D=k.match(p);if(D){var H=D[2]-1||0,V=(D[7]||"0").substring(0,3);return L?new Date(Date.UTC(D[1],H,D[3]||1,D[4]||0,D[5]||0,D[6]||0,V)):new Date(D[1],H,D[3]||1,D[4]||0,D[5]||0,D[6]||0,V)}}return new Date(k)}(M),this.$x=M.x||{},this.init();},x.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds();},x.$utils=function(){return _},x.isValid=function(){return this.$d.toString()!==m},x.isSame=function(M,I){var k=P(M);return this.startOf(I)<=k&&k<=this.endOf(I)},x.isAfter=function(M,I){return P(M)<this.startOf(I)},x.isBefore=function(M,I){return this.endOf(I)<P(M)},x.$g=function(M,I,k){return _.u(M)?this[I]:this.set(k,M)},x.unix=function(){return Math.floor(this.valueOf()/1e3)},x.valueOf=function(){return this.$d.getTime()},x.startOf=function(M,I){var k=this,L=!!_.u(I)||I,D=_.p(M),H=function(me,ee){var pe=_.w(k.$u?Date.UTC(k.$y,ee,me):new Date(k.$y,ee,me),k);return L?pe:pe.endOf(c)},V=function(me,ee){return _.w(k.toDate()[me].apply(k.toDate("s"),(L?[0,0,0,0]:[23,59,59,999]).slice(ee)),k)},W=this.$W,B=this.$M,re=this.$D,z="set"+(this.$u?"UTC":"");switch(D){case g:return L?H(1,0):H(31,11);case d:return L?H(1,B):H(0,B+1);case u:var le=this.$locale().weekStart||0,ie=(W<le?W+7:W)-le;return H(L?re-ie:re+(6-ie),B);case c:case v:return V(z+"Hours",0);case l:return V(z+"Minutes",1);case s:return V(z+"Seconds",2);case a:return V(z+"Milliseconds",3);default:return this.clone()}},x.endOf=function(M){return this.startOf(M,!1)},x.$set=function(M,I){var k,L=_.p(M),D="set"+(this.$u?"UTC":""),H=(k={},k[c]=D+"Date",k[v]=D+"Date",k[d]=D+"Month",k[g]=D+"FullYear",k[l]=D+"Hours",k[s]=D+"Minutes",k[a]=D+"Seconds",k[o]=D+"Milliseconds",k)[L],V=L===c?this.$D+(I-this.$W):I;if(L===d||L===g){var W=this.clone().set(v,1);W.$d[H](V),W.init(),this.$d=W.set(v,Math.min(this.$D,W.daysInMonth())).$d;}else H&&this.$d[H](V);return this.init(),this},x.set=function(M,I){return this.clone().$set(M,I)},x.get=function(M){return this[_.p(M)]()},x.add=function(M,I){var k,L=this;M=Number(M);var D=_.p(I),H=function(B){var re=P(L);return _.w(re.date(re.date()+Math.round(B*M)),L)};if(D===d)return this.set(d,this.$M+M);if(D===g)return this.set(g,this.$y+M);if(D===c)return H(1);if(D===u)return H(7);var V=(k={},k[s]=n,k[l]=i,k[a]=r,k)[D]||1,W=this.$d.getTime()+M*V;return _.w(W,this)},x.subtract=function(M,I){return this.add(-1*M,I)},x.format=function(M){var I=this,k=this.$locale();if(!this.isValid())return k.invalidDate||m;var L=M||"YYYY-MM-DDTHH:mm:ssZ",D=_.z(this),H=this.$H,V=this.$m,W=this.$M,B=k.weekdays,re=k.months,z=function(ee,pe,xe,De){return ee&&(ee[pe]||ee(I,L))||xe[pe].slice(0,De)},le=function(ee){return _.s(H%12||12,ee,"0")},ie=k.meridiem||function(ee,pe,xe){var De=ee<12?"AM":"PM";return xe?De.toLowerCase():De},me={YY:String(this.$y).slice(-2),YYYY:this.$y,M:W+1,MM:_.s(W+1,2,"0"),MMM:z(k.monthsShort,W,re,3),MMMM:z(re,W),D:this.$D,DD:_.s(this.$D,2,"0"),d:String(this.$W),dd:z(k.weekdaysMin,this.$W,B,2),ddd:z(k.weekdaysShort,this.$W,B,3),dddd:B[this.$W],H:String(H),HH:_.s(H,2,"0"),h:le(1),hh:le(2),a:ie(H,V,!0),A:ie(H,V,!1),m:String(V),mm:_.s(V,2,"0"),s:String(this.$s),ss:_.s(this.$s,2,"0"),SSS:_.s(this.$ms,3,"0"),Z:D};return L.replace(b,function(ee,pe){return pe||me[ee]||D.replace(":","")})},x.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},x.diff=function(M,I,k){var L,D=_.p(I),H=P(M),V=(H.utcOffset()-this.utcOffset())*n,W=this-H,B=_.m(this,H);return B=(L={},L[g]=B/12,L[d]=B,L[f]=B/3,L[u]=(W-V)/6048e5,L[c]=(W-V)/864e5,L[l]=W/i,L[s]=W/n,L[a]=W/r,L)[D]||W,k?B:_.a(B)},x.daysInMonth=function(){return this.endOf(d).$D},x.$locale=function(){return S[this.$L]},x.locale=function(M,I){if(!M)return this.$L;var k=this.clone(),L=T(M,I,!0);return L&&(k.$L=L),k},x.clone=function(){return _.w(this.$d,this)},x.toDate=function(){return new Date(this.valueOf())},x.toJSON=function(){return this.isValid()?this.toISOString():null},x.toISOString=function(){return this.$d.toISOString()},x.toString=function(){return this.$d.toUTCString()},E}(),A=N.prototype;return P.prototype=A,[["$ms",o],["$s",a],["$m",s],["$H",l],["$W",c],["$M",d],["$y",g],["$D",v]].forEach(function(E){A[E[1]]=function(x){return this.$g(x,E[0],E[1])};}),P.extend=function(E,x){return E.$i||(E(x,N,P),E.$i=!0),P},P.locale=T,P.isDayjs=y,P.unix=function(E){return P(1e3*E)},P.en=S[w],P.Ls=S,P.p={},P});})(BC);const Zs=Ic;var Fc={},VC={get exports(){return Fc},set exports(e){Fc=e;}};(function(e,t){(function(r,n){e.exports=n();})(Sg,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)?)?$/,f={years:c,months:u,days:s,hours:a,minutes:o,seconds:i,milliseconds:1,weeks:6048e5},g=function(w){return w instanceof O},v=function(w,S,y){return new O(w,y,S.$l)},m=function(w){return n.p(w)+"s"},p=function(w){return w<0},b=function(w){return p(w)?Math.ceil(w):Math.floor(w)},$=function(w){return Math.abs(w)},C=function(w,S){return w?p(w)?{negative:!0,format:""+$(w)+S}:{negative:!1,format:""+w+S}:{negative:!1,format:""}},O=function(){function w(y,T,P){var _=this;if(this.$d={},this.$l=P,y===void 0&&(this.$ms=0,this.parseFromMilliseconds()),T)return v(y*f[m(T)],this);if(typeof y=="number")return this.$ms=y,this.parseFromMilliseconds(),this;if(typeof y=="object")return Object.keys(y).forEach(function(E){_.$d[m(E)]=y[E];}),this.calMilliseconds(),this;if(typeof y=="string"){var N=y.match(d);if(N){var A=N.slice(2).map(function(E){return E!=null?Number(E):0});return this.$d.years=A[0],this.$d.months=A[1],this.$d.weeks=A[2],this.$d.days=A[3],this.$d.hours=A[4],this.$d.minutes=A[5],this.$d.seconds=A[6],this.calMilliseconds(),this}}return this}var S=w.prototype;return S.calMilliseconds=function(){var y=this;this.$ms=Object.keys(this.$d).reduce(function(T,P){return T+(y.$d[P]||0)*f[P]},0);},S.parseFromMilliseconds=function(){var y=this.$ms;this.$d.years=b(y/c),y%=c,this.$d.months=b(y/u),y%=u,this.$d.days=b(y/s),y%=s,this.$d.hours=b(y/a),y%=a,this.$d.minutes=b(y/o),y%=o,this.$d.seconds=b(y/i),y%=i,this.$d.milliseconds=y;},S.toISOString=function(){var y=C(this.$d.years,"Y"),T=C(this.$d.months,"M"),P=+this.$d.days||0;this.$d.weeks&&(P+=7*this.$d.weeks);var _=C(P,"D"),N=C(this.$d.hours,"H"),A=C(this.$d.minutes,"M"),E=this.$d.seconds||0;this.$d.milliseconds&&(E+=this.$d.milliseconds/1e3);var x=C(E,"S"),M=y.negative||T.negative||_.negative||N.negative||A.negative||x.negative,I=N.format||A.format||x.format?"T":"",k=(M?"-":"")+"P"+y.format+T.format+_.format+I+N.format+A.format+x.format;return k==="P"||k==="-P"?"P0D":k},S.toJSON=function(){return this.toISOString()},S.format=function(y){var T=y||"YYYY-MM-DDTHH:mm:ss",P={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 T.replace(l,function(_,N){return N||String(P[_])})},S.as=function(y){return this.$ms/f[m(y)]},S.get=function(y){var T=this.$ms,P=m(y);return P==="milliseconds"?T%=1e3:T=P==="weeks"?b(T/f[P]):this.$d[P],T===0?0:T},S.add=function(y,T,P){var _;return _=T?y*f[m(T)]:g(y)?y.$ms:v(y,this).$ms,v(this.$ms+_*(P?-1:1),this)},S.subtract=function(y,T){return this.add(y,T,!0)},S.locale=function(y){var T=this.clone();return T.$l=y,T},S.clone=function(){return v(this.$ms,this)},S.humanize=function(y){return r().add(this.$ms,"ms").locale(this.$l).fromNow(!y)},S.milliseconds=function(){return this.get("milliseconds")},S.asMilliseconds=function(){return this.as("milliseconds")},S.seconds=function(){return this.get("seconds")},S.asSeconds=function(){return this.as("seconds")},S.minutes=function(){return this.get("minutes")},S.asMinutes=function(){return this.as("minutes")},S.hours=function(){return this.get("hours")},S.asHours=function(){return this.as("hours")},S.days=function(){return this.get("days")},S.asDays=function(){return this.as("days")},S.weeks=function(){return this.get("weeks")},S.asWeeks=function(){return this.as("weeks")},S.months=function(){return this.get("months")},S.asMonths=function(){return this.as("months")},S.years=function(){return this.get("years")},S.asYears=function(){return this.as("years")},w}();return function(w,S,y){r=y,n=y().$utils(),y.duration=function(_,N){var A=y.locale();return v(_,{$l:A},N)},y.isDuration=g;var T=S.prototype.add,P=S.prototype.subtract;S.prototype.add=function(_,N){return g(_)&&(_=_.asMilliseconds()),T.bind(this)(_,N)},S.prototype.subtract=function(_,N){return g(_)&&(_=_.asMilliseconds()),P.bind(this)(_,N)};}});})(VC);const UC=Fc,Io=lC(()=>!!document.querySelectorAll(".bili-feed4").length),Ff=document.querySelector(".bili-header__bar"),GC=!!(Ff&&window.getComputedStyle(Ff).display==="none"),im=GC?50:64,om=()=>document.body.classList.contains("dark"),am=Yo({value:om()});function td(){return Ui(am).value}const za=new MutationObserver(function(){am.value=om();});za.observe(document.body,{attributes:!0,attributeFilter:["class"]});window.addEventListener("unload",()=>{za==null||za.disconnect();});function ur(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ze(e){return ze=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},ze(e)}function qC(e,t){if(ze(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ze(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return (t==="string"?String:Number)(e)}function sm(e){var t=qC(e,"string");return ze(t)==="symbol"?t:String(t)}function Lf(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,sm(n.key),n);}}function dr(e,t,r){return t&&Lf(e.prototype,t),r&&Lf(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lc(e,t){return Lc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Lc(e,t)}function Qs(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&&Lc(e,t);}function is(e){return is=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},is(e)}function KC(){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 os(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function XC(e,t){if(t&&(ze(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return os(e)}function Js(e){var t=KC();return function(){var n=is(e),i;if(t){var o=is(this).constructor;i=Reflect.construct(n,arguments,o);}else i=n.apply(this,arguments);return XC(this,i)}}var Dc={},YC={get exports(){return Dc},set exports(e){Dc=e;}};/*!
  	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;})();})(YC);const q=Dc;function At(){return At=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},At.apply(this,arguments)}function Ii(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[];return h.Children.forEach(e,function(n){n==null&&!t.keepEmpty||(Array.isArray(n)?r=r.concat(Ii(n)):To.isFragment(n)&&n.props?r=r.concat(Ii(n.props.children,t)):r.push(n));}),r}var Df={};function ZC(e,t){}function QC(e,t,r){!t&&!Df[r]&&(e(!1,r),Df[r]=!0);}function $r(e,t){QC(ZC,e,t);}function X(e,t,r){return t=sm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jf(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 j(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jf(Object(r),!0).forEach(function(n){X(e,n,r[n]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n));});}return e}function rd(e,t,r){var n=h__namespace.useRef({});return (!("value"in n.current)||r(n.current.condition,t))&&(n.current.value=e(),n.current.condition=t),n.current.value}function nd(e,t){typeof e=="function"?e(t):ze(e)==="object"&&e&&"current"in e&&(e.current=t);}function ti(){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){nd(o,i);});}}function lm(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return rd(function(){return ti.apply(void 0,t)},t,function(n,i){return n.length===i.length&&n.every(function(o,a){return o===i[a]})})}function Zo(e){var t,r,n=To.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 as(e){return e instanceof HTMLElement||e instanceof SVGElement}function jc(e){return as(e)?e:e instanceof h.Component?cg.findDOMNode(e):null}var cm=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}()}(),zc=typeof window<"u"&&typeof document<"u"&&window.document===document,ss=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")()}(),JC=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(ss):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),e$=2;function t$(e,t){var r=!1,n=!1,i=0;function o(){r&&(r=!1,e()),n&&s();}function a(){JC(o);}function s(){var l=Date.now();if(r){if(l-i<e$)return;n=!0;}else r=!0,n=!1,setTimeout(a,t);i=l;}return s}var r$=20,n$=["top","right","bottom","left","width","height","size","weight"],i$=typeof MutationObserver<"u",o$=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=t$(this.refresh.bind(this),r$);}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(){!zc||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),i$?(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(){!zc||!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=n$.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}(),um=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},Fi=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||ss},dm=el(0,0,0,0);function ls(e){return parseFloat(e)||0}function zf(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+ls(o)},0)}function a$(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]=ls(a);}return r}function s$(e){var t=e.getBBox();return el(0,0,t.width,t.height)}function l$(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return dm;var n=Fi(e).getComputedStyle(e),i=a$(n),o=i.left+i.right,a=i.top+i.bottom,s=ls(n.width),l=ls(n.height);if(n.boxSizing==="border-box"&&(Math.round(s+o)!==t&&(s-=zf(n,"left","right")+o),Math.round(l+a)!==r&&(l-=zf(n,"top","bottom")+a)),!u$(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 el(i.left,i.top,s,l)}var c$=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Fi(e).SVGGraphicsElement}:function(e){return e instanceof Fi(e).SVGElement&&typeof e.getBBox=="function"}}();function u$(e){return e===Fi(e).document.documentElement}function d$(e){return zc?c$(e)?s$(e):l$(e):dm}function f$(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 um(a,{x:t,y:r,width:n,height:i,top:r,right:t+n,bottom:i+r,left:t}),a}function el(e,t,r,n){return {x:e,y:t,width:r,height:n}}var h$=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=el(0,0,0,0),this.target=t;}return e.prototype.isActive=function(){var t=d$(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}(),g$=function(){function e(t,r){var n=f$(r);um(this,{target:t,contentRect:n});}return e}(),m$=function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new cm,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 Fi(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new h$(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 Fi(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 g$(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}(),fm=typeof WeakMap<"u"?new WeakMap:new cm,hm=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=o$.getInstance(),n=new m$(t,r,this);fm.set(this,n);}return e}();["observe","unobserve","disconnect"].forEach(function(e){hm.prototype[e]=function(){var t;return (t=fm.get(this))[e].apply(t,arguments)};});var v$=function(){return typeof ss.ResizeObserver<"u"?ss.ResizeObserver:hm}(),Mn=new Map;function p$(e){e.forEach(function(t){var r,n=t.target;(r=Mn.get(n))===null||r===void 0||r.forEach(function(i){return i(n)});});}var gm=new v$(p$);function b$(e,t){Mn.has(e)||(Mn.set(e,new Set),gm.observe(e)),Mn.get(e).add(t);}function y$(e,t){Mn.has(e)&&(Mn.get(e).delete(t),Mn.get(e).size||(gm.unobserve(e),Mn.delete(e)));}var w$=function(e){Qs(r,e);var t=Js(r);function r(){return ur(this,r),t.apply(this,arguments)}return dr(r,[{key:"render",value:function(){return this.props.children}}]),r}(h__namespace.Component),Hc=h__namespace.createContext(null);function S$(e){var t=e.children,r=e.onBatchResize,n=h__namespace.useRef(0),i=h__namespace.useRef([]),o=h__namespace.useContext(Hc),a=h__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 h__namespace.createElement(Hc.Provider,{value:a},t)}function C$(e,t){var r=e.children,n=e.disabled,i=h__namespace.useRef(null),o=h__namespace.useRef(null),a=h__namespace.useContext(Hc),s=typeof r=="function",l=s?r(i):r,c=h__namespace.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&h__namespace.isValidElement(l)&&Zo(l),d=u?l.ref:null,f=h__namespace.useMemo(function(){return ti(d,i)},[d,i]),g=function(){return jc(i.current)||jc(o.current)};h__namespace.useImperativeHandle(t,function(){return g()});var v=h__namespace.useRef(e);v.current=e;var m=h__namespace.useCallback(function(p){var b=v.current,$=b.onResize,C=b.data,O=p.getBoundingClientRect(),w=O.width,S=O.height,y=p.offsetWidth,T=p.offsetHeight,P=Math.floor(w),_=Math.floor(S);if(c.current.width!==P||c.current.height!==_||c.current.offsetWidth!==y||c.current.offsetHeight!==T){var N={width:P,height:_,offsetWidth:y,offsetHeight:T};c.current=N;var A=y===Math.round(w)?w:y,E=T===Math.round(S)?S:T,x=j(j({},N),{},{offsetWidth:A,offsetHeight:E});a==null||a(x,p,C),$&&Promise.resolve().then(function(){$(x,p);});}},[]);return h__namespace.useEffect(function(){var p=g();return p&&!n&&b$(p,m),function(){return y$(p,m)}},[i.current,n]),h__namespace.createElement(w$,{ref:o},u?h__namespace.cloneElement(l,{ref:f}):l)}var $$=h__namespace.forwardRef(C$),E$="rc-observer-key";function x$(e,t){var r=e.children,n=typeof r=="function"?[r]:Ii(r);return n.map(function(i,o){var a=(i==null?void 0:i.key)||"".concat(E$,"-").concat(o);return h__namespace.createElement($$,At({},e,{key:a,ref:o===0?t:void 0}),i)})}var id=h__namespace.forwardRef(x$);id.Collection=S$;function mm(e,t){var r=j({},e);return Array.isArray(t)&&t.forEach(function(n){delete r[n];}),r}function Wc(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 _$(e){if(Array.isArray(e))return Wc(e)}function vm(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function od(e,t){if(e){if(typeof e=="string")return Wc(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 Wc(e,t)}}function O$(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function te(e){return _$(e)||vm(e)||od(e)||O$()}function ad(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 P$(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 rr(e,t){if(e==null)return {};var r=P$(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 pm(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($r(!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&&ze(o)==="object"&&ze(a)==="object"){var d=Object.keys(o);return d.length!==Object.keys(a).length?!1:d.every(function(f){return i(o[f],a[f],c)})}return !1}return i(e,t)}var T$=function(){function e(){ur(this,e),X(this,"cache",new Map);}return dr(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}(),Bc="data-token-hash",Ci="data-css-hash",go="__cssinjs_instance__",cs=Math.random().toString(12).slice(2);function R$(){if(typeof document<"u"&&document.head&&document.body){var e=document.body.querySelectorAll("style[".concat(Ci,"]"))||[],t=document.head.firstChild;Array.from(e).forEach(function(n){n[go]=n[go]||cs,document.head.insertBefore(n,t);});var r={};Array.from(document.querySelectorAll("style[".concat(Ci,"]"))).forEach(function(n){var i=n.getAttribute(Ci);if(r[i]){if(n[go]===cs){var o;(o=n.parentNode)===null||o===void 0||o.removeChild(n);}}else r[i]=!0;});}return new T$}var bm=h__namespace.createContext({hashPriority:"low",cache:R$(),defaultCache:!0});function ym(e){if(Array.isArray(e))return e}function M$(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 wm(){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 G(e,t){return ym(e)||M$(e,t)||od(e,t)||wm()}function Sm(e,t,r,n){var i=h__namespace.useContext(bm),o=i.cache,a=[e].concat(te(t));return h__namespace.useMemo(function(){o.update(a,function(s){var l=s||[],c=G(l,2),u=c[0],d=u===void 0?0:u,f=c[1],g=f,v=g||r();return [d+1,v]});},[a.join("_")]),h__namespace.useEffect(function(){return function(){o.update(a,function(s){var l=s||[],c=G(l,2),u=c[0],d=u===void 0?0:u,f=c[1],g=d-1;return g===0?(n==null||n(f,!1),null):[d-1,f]});}},a),o.get(a)[1]}function nr(){return !!(typeof window<"u"&&window.document&&window.document.createElement)}function A$(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 Hf="data-rc-order",N$="rc-util-key",Vc=new Map;function Cm(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):N$}function tl(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 $m(e){return Array.from((Vc.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Em(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!nr())return null;var r=t.csp,n=t.prepend,i=document.createElement("style");i.setAttribute(Hf,k$(n)),r!=null&&r.nonce&&(i.nonce=r==null?void 0:r.nonce),i.innerHTML=e;var o=tl(t),a=o.firstChild;if(n){if(n==="queue"){var s=$m(o).filter(function(l){return ["prepend","prependQueue"].includes(l.getAttribute(Hf))});if(s.length)return o.insertBefore(i,s[s.length-1].nextSibling),i}o.insertBefore(i,a);}else o.appendChild(i);return i}function xm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=tl(t);return $m(r).find(function(n){return n.getAttribute(Cm(t))===e})}function us(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=xm(e,t);if(r){var n=tl(t);n.removeChild(r);}}function I$(e,t){var r=Vc.get(e);if(!r||!A$(document,r)){var n=Em("",t),i=n.parentNode;Vc.set(e,i),e.removeChild(n);}}function Li(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=tl(r);I$(n,r);var i=xm(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=Em(e,r);return l.setAttribute(Cm(r),t),l}function ds(e){var t="";return Object.keys(e).forEach(function(r){var n=e[r];t+=r,n&&ze(n)==="object"?t+=ds(n):t+=n;}),t}function F$(e,t){return ad("".concat(t,"_").concat(ds(e)))}var mo="layer-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),_m="903px";function L$(e,t){if(nr()){var r;Li(e,mo);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===_m;return (r=n.parentNode)===null||r===void 0||r.removeChild(n),us(mo),i}return !1}var Hl=void 0;function D$(){return Hl===void 0&&(Hl=L$("@layer ".concat(mo," { .").concat(mo," { width: ").concat(_m,"!important; } }"),function(e){e.className=mo;})),Hl}var j$={},z$="css",jn=new Map;function H$(e){jn.set(e,(jn.get(e)||0)+1);}function W$(e){if(typeof document<"u"){var t=document.querySelectorAll("style[".concat(Bc,'="').concat(e,'"]'));t.forEach(function(r){if(r[go]===cs){var n;(n=r.parentNode)===null||n===void 0||n.removeChild(r);}});}}function B$(e){jn.set(e,(jn.get(e)||0)-1);var t=Array.from(jn.keys()),r=t.filter(function(n){var i=jn.get(n)||0;return i<=0});r.length<t.length&&r.forEach(function(n){W$(n),jn.delete(n);});}function V$(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=r.salt,i=n===void 0?"":n,o=r.override,a=o===void 0?j$:o,s=r.formatToken,l=h__namespace.useMemo(function(){return Object.assign.apply(Object,[{}].concat(te(t)))},[t]),c=h__namespace.useMemo(function(){return ds(l)},[l]),u=h__namespace.useMemo(function(){return ds(a)},[a]),d=Sm("token",[i,e.id,c,u],function(){var f=e.getDerivativeToken(l),g=j(j({},f),a);s&&(g=s(g));var v=F$(g,i);g._tokenKey=v,H$(v);var m="".concat(z$,"-").concat(ad(v));return g._hashId=m,[g,m]},function(f){B$(f[0]._tokenKey);});return d}var U$={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},Wf=nr(),G$="_skip_check_";function Bf(e){var t=Xn(pg(e),bg);return t.replace(/\{%%%\:[^;];}/g,";")}function q$(e){return ze(e)==="object"&&e&&G$ in e}function K$(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(te(l.slice(1))).join(" ")});return o.join(",")}var X$=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 f="",g={};function v(C){var O=C.getName(s);if(!g[O]){var w=e(C.style,r,{root:!1,parentSelectors:a}),S=G(w,1),y=S[0];g[O]="@keyframes ".concat(C.getName(s)).concat(y);}}function m(C){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return C.forEach(function(w){Array.isArray(w)?m(w,O):w&&O.push(w);}),O}var p=m(Array.isArray(t)?t:[t]);if(p.forEach(function(C){var O=typeof C=="string"&&!i?{}:C;if(typeof O=="string")f+="".concat(O,`
`);else if(O._keyframe)v(O);else {var w=d.reduce(function(S,y){var T;return (y==null||(T=y.visit)===null||T===void 0?void 0:T.call(y,S))||S},O);Object.keys(w).forEach(function(S){var y=w[S];if(ze(y)==="object"&&y&&(S!=="animationName"||!y._keyframe)&&!q$(y)){var T=!1,P=S.trim(),_=!1;(i||o)&&s?P.startsWith("@")?T=!0:P=K$(S,s,c):i&&!s&&(P==="&"||P==="")&&(P="",_=!0);var N=e(y,r,{root:_,injectHash:T,parentSelectors:[].concat(te(a),[P])}),A=G(N,2),E=A[0],x=A[1];g=j(j({},g),x),f+="".concat(P).concat(E);}else {var M,I=(M=y==null?void 0:y.value)!==null&&M!==void 0?M:y,k=S.replace(/[A-Z]/g,function(D){return "-".concat(D.toLowerCase())}),L=I;!U$[S]&&typeof L=="number"&&L!==0&&(L="".concat(L,"px")),S==="animationName"&&y!==null&&y!==void 0&&y._keyframe&&(v(y),L=y.getName(s)),f+="".concat(k,":").concat(L,";");}});}}),!i)f="{".concat(f,"}");else if(l&&D$()){var b=l.split(","),$=b[b.length-1].trim();f="@layer ".concat($," {").concat(f,"}"),b.length>1&&(f="@layer ".concat(l,"{%%%:%}").concat(f));}return [f,g]};function Y$(e,t){return ad("".concat(e.join("%")).concat(t))}function Z$(){return null}function Uc(e,t){var r=e.token,n=e.path,i=e.hashId,o=e.layer,a=e.nonce,s=h__namespace.useContext(bm),l=s.autoClear;s.mock;var c=s.defaultCache,u=s.hashPriority,d=s.container,f=s.ssrInline,g=s.transformers,v=s.linters,m=r._tokenKey,p=[m].concat(te(n)),b=Wf,$=Sm("style",p,function(){var y=t(),T=X$(y,{hashId:i,hashPriority:u,layer:o,path:n.join("-"),transformers:g,linters:v}),P=G(T,2),_=P[0],N=P[1],A=Bf(_),E=Y$(p,A);if(b){var x={mark:Ci,prepend:"queue",attachTo:d},M=typeof a=="function"?a():a;M&&(x.csp={nonce:M});var I=Li(A,E,x);I[go]=cs,I.setAttribute(Bc,m),Object.keys(N).forEach(function(k){Li(Bf(N[k]),"_effect-".concat(k),x);});}return [A,m,E]},function(y,T){var P=G(y,3),_=P[2];(T||l)&&Wf&&us(_,{mark:Ci});}),C=G($,3),O=C[0],w=C[1],S=C[2];return function(y){var T;if(!f||b||!c)T=h__namespace.createElement(Z$,null);else {var P;T=h__namespace.createElement("style",At({},(P={},X(P,Bc,w),X(P,Ci,S),P),{dangerouslySetInnerHTML:{__html:O}}));}return h__namespace.createElement(h__namespace.Fragment,null,T,y)}}var Wt=function(){function e(t,r){ur(this,e),X(this,"name",void 0),X(this,"style",void 0),X(this,"_keyframe",!0),this.name=t,this.style=r;}return dr(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 Q$(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 sd=function(){function e(){ur(this,e),X(this,"cache",void 0),X(this,"keys",void 0),X(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0;}return dr(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=G(c,2),f=d[1];return i.internalGet(u)[1]<f?[u,i.internalGet(u)[1]]:c},[this.keys[0],this.cacheCallTimes]),a=G(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 !Q$(n,r)}),this.deleteByPath(this.cache,r)}}]),e}();X(sd,"MAX_CACHE_SIZE",20);X(sd,"MAX_CACHE_OFFSET",5);var Vf=0,J$=function(){function e(t){ur(this,e),X(this,"derivatives",void 0),X(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Vf,t.length===0&&(t.length>0,void 0),Vf+=1;}return dr(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(n,i){return i(r,n)},void 0)}}]),e}(),Wl=new sd;function Om(e){var t=Array.isArray(e)?e:[e];return Wl.has(t)||Wl.set(t,new J$(t)),Wl.get(t)}function li(e){return e.notSplit=!0,e}li(["borderTop","borderBottom"]),li(["borderTop"]),li(["borderBottom"]),li(["borderLeft","borderRight"]),li(["borderLeft"]),li(["borderRight"]);var eE=h.createContext({});const ld=eE;var Hn="RC_FORM_INTERNAL_HOOKS",Fe=function(){$r(!1,"Can not find FormContext. Please make sure you wrap Field under Form.");},Di=h__namespace.createContext({getFieldValue:Fe,getFieldsValue:Fe,getFieldError:Fe,getFieldWarning:Fe,getFieldsError:Fe,isFieldsTouched:Fe,isFieldTouched:Fe,isFieldValidating:Fe,isFieldsValidating:Fe,resetFields:Fe,setFields:Fe,setFieldValue:Fe,setFieldsValue:Fe,validateFields:Fe,submit:Fe,getInternalHooks:function(){return Fe(),{dispatch:Fe,initEntityValue:Fe,registerField:Fe,useSubscribe:Fe,setInitialValues:Fe,destroyForm:Fe,setCallbacks:Fe,registerWatch:Fe,getFields:Fe,setValidateMessages:Fe,setPreserve:Fe,getInitialValue:Fe}}});function Gc(e){return e==null?[]:Array.isArray(e)?e:[e]}function tE(e){return e&&!!e._init}function ir(){ir=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(A,E,x){A[E]=x.value;},i=typeof Symbol=="function"?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(A,E,x){return Object.defineProperty(A,E,{value:x,enumerable:!0,configurable:!0,writable:!0}),A[E]}try{l({},"");}catch{l=function(x,M,I){return x[M]=I};}function c(A,E,x,M){var I=E&&E.prototype instanceof f?E:f,k=Object.create(I.prototype),L=new P(M||[]);return n(k,"_invoke",{value:w(A,x,L)}),k}function u(A,E,x){try{return {type:"normal",arg:A.call(E,x)}}catch(M){return {type:"throw",arg:M}}}e.wrap=c;var d={};function f(){}function g(){}function v(){}var m={};l(m,o,function(){return this});var p=Object.getPrototypeOf,b=p&&p(p(_([])));b&&b!==t&&r.call(b,o)&&(m=b);var $=v.prototype=f.prototype=Object.create(m);function C(A){["next","throw","return"].forEach(function(E){l(A,E,function(x){return this._invoke(E,x)});});}function O(A,E){function x(I,k,L,D){var H=u(A[I],A,k);if(H.type!=="throw"){var V=H.arg,W=V.value;return W&&ze(W)=="object"&&r.call(W,"__await")?E.resolve(W.__await).then(function(B){x("next",B,L,D);},function(B){x("throw",B,L,D);}):E.resolve(W).then(function(B){V.value=B,L(V);},function(B){return x("throw",B,L,D)})}D(H.arg);}var M;n(this,"_invoke",{value:function(k,L){function D(){return new E(function(H,V){x(k,L,H,V);})}return M=M?M.then(D,D):D()}});}function w(A,E,x){var M="suspendedStart";return function(I,k){if(M==="executing")throw new Error("Generator is already running");if(M==="completed"){if(I==="throw")throw k;return N()}for(x.method=I,x.arg=k;;){var L=x.delegate;if(L){var D=S(L,x);if(D){if(D===d)continue;return D}}if(x.method==="next")x.sent=x._sent=x.arg;else if(x.method==="throw"){if(M==="suspendedStart")throw M="completed",x.arg;x.dispatchException(x.arg);}else x.method==="return"&&x.abrupt("return",x.arg);M="executing";var H=u(A,E,x);if(H.type==="normal"){if(M=x.done?"completed":"suspendedYield",H.arg===d)continue;return {value:H.arg,done:x.done}}H.type==="throw"&&(M="completed",x.method="throw",x.arg=H.arg);}}}function S(A,E){var x=E.method,M=A.iterator[x];if(M===void 0)return E.delegate=null,x==="throw"&&A.iterator.return&&(E.method="return",E.arg=void 0,S(A,E),E.method==="throw")||x!=="return"&&(E.method="throw",E.arg=new TypeError("The iterator does not provide a '"+x+"' method")),d;var I=u(M,A.iterator,E.arg);if(I.type==="throw")return E.method="throw",E.arg=I.arg,E.delegate=null,d;var k=I.arg;return k?k.done?(E[A.resultName]=k.value,E.next=A.nextLoc,E.method!=="return"&&(E.method="next",E.arg=void 0),E.delegate=null,d):k:(E.method="throw",E.arg=new TypeError("iterator result is not an object"),E.delegate=null,d)}function y(A){var E={tryLoc:A[0]};1 in A&&(E.catchLoc=A[1]),2 in A&&(E.finallyLoc=A[2],E.afterLoc=A[3]),this.tryEntries.push(E);}function T(A){var E=A.completion||{};E.type="normal",delete E.arg,A.completion=E;}function P(A){this.tryEntries=[{tryLoc:"root"}],A.forEach(y,this),this.reset(!0);}function _(A){if(A){var E=A[o];if(E)return E.call(A);if(typeof A.next=="function")return A;if(!isNaN(A.length)){var x=-1,M=function I(){for(;++x<A.length;)if(r.call(A,x))return I.value=A[x],I.done=!1,I;return I.value=void 0,I.done=!0,I};return M.next=M}}return {next:N}}function N(){return {value:void 0,done:!0}}return g.prototype=v,n($,"constructor",{value:v,configurable:!0}),n(v,"constructor",{value:g,configurable:!0}),g.displayName=l(v,s,"GeneratorFunction"),e.isGeneratorFunction=function(A){var E=typeof A=="function"&&A.constructor;return !!E&&(E===g||(E.displayName||E.name)==="GeneratorFunction")},e.mark=function(A){return Object.setPrototypeOf?Object.setPrototypeOf(A,v):(A.__proto__=v,l(A,s,"GeneratorFunction")),A.prototype=Object.create($),A},e.awrap=function(A){return {__await:A}},C(O.prototype),l(O.prototype,a,function(){return this}),e.AsyncIterator=O,e.async=function(A,E,x,M,I){I===void 0&&(I=Promise);var k=new O(c(A,E,x,M),I);return e.isGeneratorFunction(E)?k:k.next().then(function(L){return L.done?L.value:k.next()})},C($),l($,s,"Generator"),l($,o,function(){return this}),l($,"toString",function(){return "[object Generator]"}),e.keys=function(A){var E=Object(A),x=[];for(var M in E)x.push(M);return x.reverse(),function I(){for(;x.length;){var k=x.pop();if(k in E)return I.value=k,I.done=!1,I}return I.done=!0,I}},e.values=_,P.prototype={constructor:P,reset:function(E){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(T),!E)for(var x in this)x.charAt(0)==="t"&&r.call(this,x)&&!isNaN(+x.slice(1))&&(this[x]=void 0);},stop:function(){this.done=!0;var E=this.tryEntries[0].completion;if(E.type==="throw")throw E.arg;return this.rval},dispatchException:function(E){if(this.done)throw E;var x=this;function M(V,W){return L.type="throw",L.arg=E,x.next=V,W&&(x.method="next",x.arg=void 0),!!W}for(var I=this.tryEntries.length-1;I>=0;--I){var k=this.tryEntries[I],L=k.completion;if(k.tryLoc==="root")return M("end");if(k.tryLoc<=this.prev){var D=r.call(k,"catchLoc"),H=r.call(k,"finallyLoc");if(D&&H){if(this.prev<k.catchLoc)return M(k.catchLoc,!0);if(this.prev<k.finallyLoc)return M(k.finallyLoc)}else if(D){if(this.prev<k.catchLoc)return M(k.catchLoc,!0)}else {if(!H)throw new Error("try statement without catch or finally");if(this.prev<k.finallyLoc)return M(k.finallyLoc)}}}},abrupt:function(E,x){for(var M=this.tryEntries.length-1;M>=0;--M){var I=this.tryEntries[M];if(I.tryLoc<=this.prev&&r.call(I,"finallyLoc")&&this.prev<I.finallyLoc){var k=I;break}}k&&(E==="break"||E==="continue")&&k.tryLoc<=x&&x<=k.finallyLoc&&(k=null);var L=k?k.completion:{};return L.type=E,L.arg=x,k?(this.method="next",this.next=k.finallyLoc,d):this.complete(L)},complete:function(E,x){if(E.type==="throw")throw E.arg;return E.type==="break"||E.type==="continue"?this.next=E.arg:E.type==="return"?(this.rval=this.arg=E.arg,this.method="return",this.next="end"):E.type==="normal"&&x&&(this.next=x),d},finish:function(E){for(var x=this.tryEntries.length-1;x>=0;--x){var M=this.tryEntries[x];if(M.finallyLoc===E)return this.complete(M.completion,M.afterLoc),T(M),d}},catch:function(E){for(var x=this.tryEntries.length-1;x>=0;--x){var M=this.tryEntries[x];if(M.tryLoc===E){var I=M.completion;if(I.type==="throw"){var k=I.arg;T(M);}return k}}throw new Error("illegal catch attempt")},delegateYield:function(E,x,M){return this.delegate={iterator:_(E),resultName:x,nextLoc:M},this.method==="next"&&(this.arg=void 0),d}},e}function Uf(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 Gi(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function a(l){Uf(o,n,i,a,s,"next",l);}function s(l){Uf(o,n,i,a,s,"throw",l);}a(void 0);})}}function Wn(){return Wn=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},Wn.apply(this,arguments)}function rE(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Fo(e,t);}function qc(e){return qc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},qc(e)}function Fo(e,t){return Fo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Fo(e,t)}function nE(){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 Ha(e,t,r){return nE()?Ha=Reflect.construct.bind():Ha=function(i,o,a){var s=[null];s.push.apply(s,o);var l=Function.bind.apply(i,s),c=new l;return a&&Fo(c,a.prototype),c},Ha.apply(null,arguments)}function iE(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Kc(e){var t=typeof Map=="function"?new Map:void 0;return Kc=function(n){if(n===null||!iE(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 Ha(n,arguments,qc(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Fo(i,n)},Kc(e)}var oE=/%[sdj%]/g,aE=function(){};typeof process<"u"&&process.env;function Xc(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 er(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(oE,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 sE(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function ht(e,t){return !!(e==null||t==="array"&&Array.isArray(e)&&!e.length||sE(t)&&typeof e=="string"&&!e)}function lE(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 Gf(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 cE(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,e[r]||[]);}),t}var qf=function(e){rE(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}(Kc(Error));function uE(e,t,r,n,i){if(t.first){var o=new Promise(function(f,g){var v=function(b){return n(b),b.length?g(new qf(b,Xc(b))):f(i)},m=cE(e);Gf(m,r,v);});return o.catch(function(f){return f}),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(f,g){var v=function(p){if(u.push.apply(u,p),c++,c===l)return n(u),u.length?g(new qf(u,Xc(u))):f(i)};s.length||(n(u),f(i)),s.forEach(function(m){var p=e[m];a.indexOf(m)!==-1?Gf(p,r,v):lE(p,r,v);});});return d.catch(function(f){return f}),d}function dE(e){return !!(e&&e.message!==void 0)}function fE(e,t){for(var r=e,n=0;n<t.length;n++){if(r==null)return r;r=r[t[n]];}return r}function Kf(e,t){return function(r){var n;return e.fullFields?n=fE(t,e.fullFields):n=t[r.field||e.fullField],dE(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 Xf(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]=Wn({},e[r],n):e[r]=n;}}return e}var Pm=function(t,r,n,i,o,a){t.required&&(!n.hasOwnProperty(t.field)||ht(r,a||t.type))&&i.push(er(o.messages.required,t.fullField));},hE=function(t,r,n,i,o){(/^\s+$/.test(r)||r==="")&&i.push(er(o.messages.whitespace,t.fullField));},$a,gE=function(){if($a)return $a;var e="[a-fA-F\\d:]",t=function(O){return O&&O.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(O){return O&&O.exact?o:new RegExp("(?:"+t(O)+r+t(O)+")|(?:"+t(O)+i+t(O)+")","g")};l.v4=function(C){return C&&C.exact?a:new RegExp(""+t(C)+r+t(C),"g")},l.v6=function(C){return C&&C.exact?s:new RegExp(""+t(C)+i+t(C),"g")};var c="(?:(?:[a-z]+:)?//)",u="(?:\\S+(?::\\S*)?@)?",d=l.v4().source,f=l.v6().source,g="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",m="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",p="(?::\\d{2,5})?",b='(?:[/?#][^\\s"]*)?',$="(?:"+c+"|www\\.)"+u+"(?:localhost|"+d+"|"+f+"|"+g+v+m+")"+p+b;return $a=new RegExp("(?:^"+$+"$)","i"),$a},Yf={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},so={integer:function(t){return so.number(t)&&parseInt(t,10)===t},float:function(t){return so.number(t)&&!so.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"&&!so.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Yf.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(gE())},hex:function(t){return typeof t=="string"&&!!t.match(Yf.hex)}},mE=function(t,r,n,i,o){if(t.required&&r===void 0){Pm(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?so[s](r)||i.push(er(o.messages.types[s],t.fullField,t.type)):s&&typeof r!==t.type&&i.push(er(o.messages.types[s],t.fullField,t.type));},vE=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,f=typeof r=="number",g=typeof r=="string",v=Array.isArray(r);if(f?d="number":g?d="string":v&&(d="array"),!d)return !1;v&&(u=r.length),g&&(u=r.replace(c,"_").length),a?u!==t.len&&i.push(er(o.messages[d].len,t.fullField,t.len)):s&&!l&&u<t.min?i.push(er(o.messages[d].min,t.fullField,t.min)):l&&!s&&u>t.max?i.push(er(o.messages[d].max,t.fullField,t.max)):s&&l&&(u<t.min||u>t.max)&&i.push(er(o.messages[d].range,t.fullField,t.min,t.max));},ci="enum",pE=function(t,r,n,i,o){t[ci]=Array.isArray(t[ci])?t[ci]:[],t[ci].indexOf(r)===-1&&i.push(er(o.messages[ci],t.fullField,t[ci].join(", ")));},bE=function(t,r,n,i,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||i.push(er(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(er(o.messages.pattern.mismatch,t.fullField,r,t.pattern));}}},ye={required:Pm,whitespace:hE,type:mE,range:vE,enum:pE,pattern:bE},yE=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(ht(r,"string")&&!t.required)return n();ye.required(t,r,i,a,o,"string"),ht(r,"string")||(ye.type(t,r,i,a,o),ye.range(t,r,i,a,o),ye.pattern(t,r,i,a,o),t.whitespace===!0&&ye.whitespace(t,r,i,a,o));}n(a);},wE=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(ht(r)&&!t.required)return n();ye.required(t,r,i,a,o),r!==void 0&&ye.type(t,r,i,a,o);}n(a);},SE=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),ht(r)&&!t.required)return n();ye.required(t,r,i,a,o),r!==void 0&&(ye.type(t,r,i,a,o),ye.range(t,r,i,a,o));}n(a);},CE=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(ht(r)&&!t.required)return n();ye.required(t,r,i,a,o),r!==void 0&&ye.type(t,r,i,a,o);}n(a);},$E=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(ht(r)&&!t.required)return n();ye.required(t,r,i,a,o),ht(r)||ye.type(t,r,i,a,o);}n(a);},EE=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(ht(r)&&!t.required)return n();ye.required(t,r,i,a,o),r!==void 0&&(ye.type(t,r,i,a,o),ye.range(t,r,i,a,o));}n(a);},xE=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(ht(r)&&!t.required)return n();ye.required(t,r,i,a,o),r!==void 0&&(ye.type(t,r,i,a,o),ye.range(t,r,i,a,o));}n(a);},_E=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();ye.required(t,r,i,a,o,"array"),r!=null&&(ye.type(t,r,i,a,o),ye.range(t,r,i,a,o));}n(a);},OE=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(ht(r)&&!t.required)return n();ye.required(t,r,i,a,o),r!==void 0&&ye.type(t,r,i,a,o);}n(a);},PE="enum",TE=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(ht(r)&&!t.required)return n();ye.required(t,r,i,a,o),r!==void 0&&ye[PE](t,r,i,a,o);}n(a);},RE=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(ht(r,"string")&&!t.required)return n();ye.required(t,r,i,a,o),ht(r,"string")||ye.pattern(t,r,i,a,o);}n(a);},ME=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(ht(r,"date")&&!t.required)return n();if(ye.required(t,r,i,a,o),!ht(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),ye.type(t,l,i,a,o),l&&ye.range(t,l.getTime(),i,a,o);}}n(a);},AE=function(t,r,n,i,o){var a=[],s=Array.isArray(r)?"array":typeof r;ye.required(t,r,i,a,o,s),n(a);},Bl=function(t,r,n,i,o){var a=t.type,s=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(ht(r,a)&&!t.required)return n();ye.required(t,r,i,s,o,a),ht(r,a)||ye.type(t,r,i,s,o);}n(s);},NE=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(ht(r)&&!t.required)return n();ye.required(t,r,i,a,o);}n(a);},vo={string:yE,method:wE,number:SE,boolean:CE,regexp:$E,integer:EE,float:xE,array:_E,object:OE,enum:TE,pattern:RE,date:ME,url:Bl,hex:Bl,email:Bl,required:AE,any:NE};function Yc(){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 Zc=Yc(),Qo=function(){function e(r){this.rules=null,this._messages=Zc,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=Xf(Yc(),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 p=[],b={};function $(O){if(Array.isArray(O)){var w;p=(w=p).concat.apply(w,O);}else p.push(O);}for(var C=0;C<m.length;C++)$(m[C]);p.length?(b=Xc(p),c(p,b)):c(null,s);}if(l.messages){var d=this.messages();d===Zc&&(d=Yc()),Xf(d,l.messages),l.messages=d;}else l.messages=this.messages();var f={},g=l.keys||Object.keys(this.rules);g.forEach(function(m){var p=a.rules[m],b=s[m];p.forEach(function($){var C=$;typeof C.transform=="function"&&(s===n&&(s=Wn({},s)),b=s[m]=C.transform(b)),typeof C=="function"?C={validator:C}:C=Wn({},C),C.validator=a.getValidationMethod(C),C.validator&&(C.field=m,C.fullField=C.fullField||m,C.type=a.getType(C),f[m]=f[m]||[],f[m].push({rule:C,value:b,source:s,field:m}));});});var v={};return uE(f,l,function(m,p){var b=m.rule,$=(b.type==="object"||b.type==="array")&&(typeof b.fields=="object"||typeof b.defaultField=="object");$=$&&(b.required||!b.required&&m.value),b.field=m.field;function C(S,y){return Wn({},y,{fullField:b.fullField+"."+S,fullFields:b.fullFields?[].concat(b.fullFields,[S]):[S]})}function O(S){S===void 0&&(S=[]);var y=Array.isArray(S)?S:[S];!l.suppressWarning&&y.length&&e.warning("async-validator:",y),y.length&&b.message!==void 0&&(y=[].concat(b.message));var T=y.map(Kf(b,s));if(l.first&&T.length)return v[b.field]=1,p(T);if(!$)p(T);else {if(b.required&&!m.value)return b.message!==void 0?T=[].concat(b.message).map(Kf(b,s)):l.error&&(T=[l.error(b,er(l.messages.required,b.field))]),p(T);var P={};b.defaultField&&Object.keys(m.value).map(function(A){P[A]=b.defaultField;}),P=Wn({},P,m.rule.fields);var _={};Object.keys(P).forEach(function(A){var E=P[A],x=Array.isArray(E)?E:[E];_[A]=x.map(C.bind(null,A));});var N=new e(_);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(A){var E=[];T&&T.length&&E.push.apply(E,T),A&&A.length&&E.push.apply(E,A),p(E.length?E:null);});}}var w;if(b.asyncValidator)w=b.asyncValidator(b,m.value,O,m.source,l);else if(b.validator){try{w=b.validator(b,m.value,O,m.source,l);}catch(S){console.error==null||console.error(S),l.suppressValidatorError||setTimeout(function(){throw S},0),O(S.message);}w===!0?O():w===!1?O(typeof b.message=="function"?b.message(b.fullField||b.field):b.message||(b.fullField||b.field)+" fails"):w instanceof Array?O(w):w instanceof Error&&O(w.message);}w&&w.then&&w.then(function(){return O()},function(S){return O(S)});},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&&!vo.hasOwnProperty(n.type))throw new Error(er("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"?vo.required:vo[this.getType(n)]||void 0},e}();Qo.register=function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");vo[t]=r;};Qo.warning=aE;Qo.messages=Zc;Qo.validators=vo;var Kt="'${name}' is not a valid ${type}",Tm={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:Kt,method:Kt,array:Kt,object:Kt,number:Kt,date:Kt,boolean:Kt,integer:Kt,float:Kt,regexp:Kt,email:Kt,url:Kt,hex:Kt},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 on(e,t){for(var r=e,n=0;n<t.length;n+=1){if(r==null)return;r=r[t[n]];}return r}function kE(e){return ym(e)||vm(e)||od(e)||wm()}function Rm(e,t,r,n){if(!t.length)return r;var i=kE(t),o=i[0],a=i.slice(1),s;return !e&&typeof o=="number"?s=[]:Array.isArray(e)?s=te(e):s=j({},e),n&&r===void 0&&a.length===1?delete s[o][a[0]]:s[o]=Rm(s[o],a,r,n),s}function xn(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&n&&r===void 0&&!on(e,t.slice(0,-1))?e:Rm(e,t,r,n)}function rl(e){return Array.isArray(e)?FE(e):ze(e)==="object"&&e!==null?IE(e):e}function IE(e){if(Object.getPrototypeOf(e)===Object.prototype){var t={};for(var r in e)t[r]=rl(e[r]);return t}return e}function FE(e){return e.map(function(t){return rl(t)})}function it(e){return Gc(e)}function Zf(e,t){var r={};return t.forEach(function(n){var i=on(e,n);r=xn(r,n,i);}),r}function po(e,t){return e&&e.some(function(r){return Am(r,t)})}function Qf(e){return ze(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Mm(e,t){var r=Array.isArray(e)?te(e):j({},e);return t&&Object.keys(t).forEach(function(n){var i=r[n],o=t[n],a=Qf(i)&&Qf(o);r[n]=a?Mm(i,o||{}):rl(o);}),r}function bo(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 Mm(i,o)},e)}function Am(e,t){return !e||!t||e.length!==t.length?!1:e.every(function(r,n){return t[n]===r})}function LE(e,t){if(e===t)return !0;if(!e&&t||e&&!t||!e||!t||ze(e)!=="object"||ze(t)!=="object")return !1;var r=Object.keys(e),n=Object.keys(t),i=new Set([].concat(r,n));return te(i).every(function(o){var a=e[o],s=t[o];return typeof a=="function"&&typeof s=="function"?!0:a===s})}function DE(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&ze(t.target)==="object"&&e in t.target?t.target[e]:t}function Jf(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(te(e.slice(0,r)),[i],te(e.slice(r,t)),te(e.slice(t+1,n))):o<0?[].concat(te(e.slice(0,t)),te(e.slice(t+1,r+1)),[i],te(e.slice(r+1,n))):e}var eh=Qo;function jE(e,t){return e.replace(/\$\{\w+\}/g,function(r){var n=r.slice(2,-1);return t[n]})}var th="CODE_LOGIC_ERROR";function Qc(e,t,r,n,i){return Jc.apply(this,arguments)}function Jc(){return Jc=Gi(ir().mark(function e(t,r,n,i,o){var a,s,l,c,u,d,f,g,v;return ir().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return a=j({},n),delete a.ruleIndex,eh.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(th)}}),l=null,a&&a.type==="array"&&a.defaultField&&(l=a.defaultField,delete a.defaultField),c=new eh(X({},t,[a])),u=bo({},Tm,i.validateMessages),c.messages(u),d=[],p.prev=10,p.next=13,Promise.resolve(c.validate(X({},t,r),j({},i)));case 13:p.next=18;break;case 15:p.prev=15,p.t0=p.catch(10),p.t0.errors&&(d=p.t0.errors.map(function(b,$){var C=b.message,O=C===th?u.default:C;return h__namespace.isValidElement(O)?h__namespace.cloneElement(O,{key:"error_".concat($)}):O}));case 18:if(!(!d.length&&l)){p.next=23;break}return p.next=21,Promise.all(r.map(function(b,$){return Qc("".concat(t,".").concat($),b,l,i,o)}));case 21:return f=p.sent,p.abrupt("return",f.reduce(function(b,$){return [].concat(te(b),te($))},[]));case 23:return g=j(j({},n),{},{name:t,enum:(n.enum||[]).join(", ")},o),v=d.map(function(b){return typeof b=="string"?jE(b,g):b}),p.abrupt("return",v);case 26:case"end":return p.stop()}},e,null,[[10,15]])})),Jc.apply(this,arguments)}function zE(e,t,r,n,i,o){var a=e.join("."),s=r.map(function(u,d){var f=u.validator,g=j(j({},u),{},{ruleIndex:d});return f&&(g.validator=function(v,m,p){var b=!1,$=function(){for(var w=arguments.length,S=new Array(w),y=0;y<w;y++)S[y]=arguments[y];Promise.resolve().then(function(){$r(!b,"Your validator function has already return a promise. `callback` will be ignored."),b||p.apply(void 0,S);});},C=f(v,m,$);b=C&&typeof C.then=="function"&&typeof C.catch=="function",$r(b,"`callback` is deprecated. Please return a promise instead."),b&&C.then(function(){p();}).catch(function(O){p(O||" ");});}),g}).sort(function(u,d){var f=u.warningOnly,g=u.ruleIndex,v=d.warningOnly,m=d.ruleIndex;return !!f==!!v?g-m:f?1:-1}),l;if(i===!0)l=new Promise(function(){var u=Gi(ir().mark(function d(f,g){var v,m,p;return ir().wrap(function($){for(;;)switch($.prev=$.next){case 0:v=0;case 1:if(!(v<s.length)){$.next=12;break}return m=s[v],$.next=5,Qc(a,t,m,n,o);case 5:if(p=$.sent,!p.length){$.next=9;break}return g([{errors:p,rule:m}]),$.abrupt("return");case 9:v+=1,$.next=1;break;case 12:f([]);case 13:case"end":return $.stop()}},d)}));return function(d,f){return u.apply(this,arguments)}}());else {var c=s.map(function(u){return Qc(a,t,u,n,o).then(function(d){return {errors:d,rule:u}})});l=(i?WE(c):HE(c)).then(function(u){return Promise.reject(u)});}return l.catch(function(u){return u}),l}function HE(e){return eu.apply(this,arguments)}function eu(){return eu=Gi(ir().mark(function e(t){return ir().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,te(i));return a}));case 1:case"end":return n.stop()}},e)})),eu.apply(this,arguments)}function WE(e){return tu.apply(this,arguments)}function tu(){return tu=Gi(ir().mark(function e(t){var r;return ir().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)})),tu.apply(this,arguments)}var BE=["name"],sr=[];function rh(e,t,r,n,i,o){return typeof e=="function"?e(t,r,"source"in o?{source:o.source}:{}):n!==i}var cd=function(e){Qs(r,e);var t=Js(r);function r(n){var i;if(ur(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=sr,i.warnings=sr,i.cancelRegister=function(){var l=i.props,c=l.preserve,u=l.isListField,d=l.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(u,c,it(d)),i.cancelRegisterFunc=null;},i.getNamePath=function(){var l=i.props,c=l.name,u=l.fieldContext,d=u.prefixName,f=d===void 0?[]:d;return c!==void 0?[].concat(te(f),te(c)):[]},i.getRules=function(){var l=i.props,c=l.rules,u=c===void 0?[]:c,d=l.fieldContext;return u.map(function(f){return typeof f=="function"?f(d):f})},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(j(j({},i.getMeta()),{},{destroy:l}));},i.onStoreChange=function(l,c,u){var d=i.props,f=d.shouldUpdate,g=d.dependencies,v=g===void 0?[]:g,m=d.onReset,p=u.store,b=i.getNamePath(),$=i.getValue(l),C=i.getValue(p),O=c&&po(c,b);switch(u.type==="valueUpdate"&&u.source==="external"&&$!==C&&(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=sr,i.warnings=sr,i.triggerMetaEvent()),u.type){case"reset":if(!c||O){i.touched=!1,i.dirty=!1,i.validatePromise=null,i.errors=sr,i.warnings=sr,i.triggerMetaEvent(),m==null||m(),i.refresh();return}break;case"remove":{if(f){i.reRender();return}break}case"setField":{if(O){var w=u.data;"touched"in w&&(i.touched=w.touched),"validating"in w&&!("originRCField"in w)&&(i.validatePromise=w.validating?Promise.resolve([]):null),"errors"in w&&(i.errors=w.errors||sr),"warnings"in w&&(i.warnings=w.warnings||sr),i.dirty=!0,i.triggerMetaEvent(),i.reRender();return}if(f&&!b.length&&rh(f,l,p,$,C,u)){i.reRender();return}break}case"dependenciesUpdate":{var S=v.map(it);if(S.some(function(y){return po(u.relatedFields,y)})){i.reRender();return}break}default:if(O||(!v.length||b.length||f)&&rh(f,l,p,$,C,u)){i.reRender();return}break}f===!0&&i.reRender();},i.validateRules=function(l){var c=i.getNamePath(),u=i.getValue(),d=Promise.resolve().then(function(){if(!i.mounted)return [];var f=i.props,g=f.validateFirst,v=g===void 0?!1:g,m=f.messageVariables,p=l||{},b=p.triggerName,$=i.getRules();b&&($=$.filter(function(O){return O}).filter(function(O){var w=O.validateTrigger;if(!w)return !0;var S=Gc(w);return S.includes(b)}));var C=zE(c,u,$,l,v,m);return C.catch(function(O){return O}).then(function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:sr;if(i.validatePromise===d){var w;i.validatePromise=null;var S=[],y=[];(w=O.forEach)===null||w===void 0||w.call(O,function(T){var P=T.rule.warningOnly,_=T.errors,N=_===void 0?sr:_;P?y.push.apply(y,te(N)):S.push.apply(S,te(N));}),i.errors=S,i.warnings=y,i.triggerMetaEvent(),i.reRender();}}),C});return i.validatePromise=d,i.dirty=!0,i.errors=sr,i.warnings=sr,i.triggerMetaEvent(),i.reRender(),d},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(Hn),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 j(j({},i.getOnlyChild(l(i.getControlled(),c,i.props.fieldContext))),{},{isFunction:!0})}var u=Ii(l);return u.length!==1||!h__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 on(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,f=c.getValueFromEvent,g=c.normalize,v=c.valuePropName,m=c.getValueProps,p=c.fieldContext,b=d!==void 0?d:p.validateTrigger,$=i.getNamePath(),C=p.getInternalHooks,O=p.getFieldsValue,w=C(Hn),S=w.dispatch,y=i.getValue(),T=m||function(A){return X({},v,A)},P=l[u],_=j(j({},l),T(y));_[u]=function(){i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var A,E=arguments.length,x=new Array(E),M=0;M<E;M++)x[M]=arguments[M];f?A=f.apply(void 0,x):A=DE.apply(void 0,[v].concat(x)),g&&(A=g(A,y,O(!0))),S({type:"updateValue",namePath:$,value:A}),P&&P.apply(void 0,x);};var N=Gc(b||[]);return N.forEach(function(A){var E=_[A];_[A]=function(){E&&E.apply(void 0,arguments);var x=i.props.rules;x&&x.length&&S({type:"validateField",namePath:$,triggerName:A});};}),_},n.fieldContext){var o=n.fieldContext.getInternalHooks,a=o(Hn),s=a.initEntityValue;s(os(i));}return i}return dr(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(Hn),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:h__namespace.isValidElement(s)?c=h__namespace.cloneElement(s,this.getControlled(s.props)):($r(!s,"`children` of Field is not validate ReactElement."),c=s),h__namespace.createElement(h__namespace.Fragment,{key:i},c)}}]),r}(h__namespace.Component);cd.contextType=Di;cd.defaultProps={trigger:"onChange",valuePropName:"value"};function Nm(e){var t=e.name,r=rr(e,BE),n=h__namespace.useContext(Di),i=t!==void 0?it(t):void 0,o="keep";return r.isListField||(o="_".concat((i||[]).join("_"))),h__namespace.createElement(cd,At({key:o,name:i},r,{fieldContext:n}))}var VE=h__namespace.createContext(null),UE=function(t){var r=t.name,n=t.initialValue,i=t.children,o=t.rules,a=t.validateTrigger,s=t.isListField,l=h__namespace.useContext(Di),c=h__namespace.useRef({keys:[],id:0}),u=c.current,d=h__namespace.useMemo(function(){var m=it(l.prefixName)||[];return [].concat(te(m),te(it(r)))},[l.prefixName,r]),f=h__namespace.useMemo(function(){return j(j({},l),{},{prefixName:d})},[l,d]),g=h__namespace.useMemo(function(){return {getKey:function(p){var b=d.length,$=p[b];return [u.keys[$],p.slice(b+1)]}}},[d]);if(typeof i!="function")return $r(!1,"Form.List only accepts function as children."),null;var v=function(p,b,$){var C=$.source;return C==="internal"?!1:p!==b};return h__namespace.createElement(VE.Provider,{value:g},h__namespace.createElement(Di.Provider,{value:f},h__namespace.createElement(Nm,{name:[],shouldUpdate:v,rules:o,validateTrigger:a,initialValue:n,isList:!0,isListField:s},function(m,p){var b=m.value,$=b===void 0?[]:b,C=m.onChange,O=l.getFieldValue,w=function(){var P=O(d||[]);return P||[]},S={add:function(P,_){var N=w();_>=0&&_<=N.length?(u.keys=[].concat(te(u.keys.slice(0,_)),[u.id],te(u.keys.slice(_))),C([].concat(te(N.slice(0,_)),[P],te(N.slice(_))))):(u.keys=[].concat(te(u.keys),[u.id]),C([].concat(te(N),[P]))),u.id+=1;},remove:function(P){var _=w(),N=new Set(Array.isArray(P)?P:[P]);N.size<=0||(u.keys=u.keys.filter(function(A,E){return !N.has(E)}),C(_.filter(function(A,E){return !N.has(E)})));},move:function(P,_){if(P!==_){var N=w();P<0||P>=N.length||_<0||_>=N.length||(u.keys=Jf(u.keys,P,_),C(Jf(N,P,_)));}}},y=$||[];return Array.isArray(y)||(y=[]),i(y.map(function(T,P){var _=u.keys[P];return _===void 0&&(u.keys[P]=u.id,_=u.keys[P],u.id+=1),{name:P,key:_,isListField:!0}}),S,p)})))};function GE(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 km="__@field_split__";function Vl(e){return e.map(function(t){return "".concat(ze(t),":").concat(t)}).join(km)}var ui=function(){function e(){ur(this,e),this.kvs=new Map;}return dr(e,[{key:"set",value:function(r,n){this.kvs.set(Vl(r),n);}},{key:"get",value:function(r){return this.kvs.get(Vl(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(Vl(r));}},{key:"map",value:function(r){return te(this.kvs.entries()).map(function(n){var i=G(n,2),o=i[0],a=i[1],s=o.split(km);return r({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=G(c,3),d=u[1],f=u[2];return d==="number"?Number(f):f}),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}(),qE=["name"],KE=dr(function e(t){var r=this;ur(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===Hn?(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}):($r(!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=bo({},n,r.store);(o=r.prevWithoutPreserves)===null||o===void 0||o.map(function(s){var l=s.key;a=xn(a,l,on(n,l));}),r.prevWithoutPreserves=null,r.updateStore(a);}},this.destroyForm=function(){var n=new ui;r.getFieldEntities(!0).forEach(function(i){r.isMergedPreserve(i.isPreserve())||n.set(i.getNamePath(),!0);}),r.prevWithoutPreserves=n;},this.getInitialValue=function(n){var i=on(r.initialValues,n);return n.length?rl(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 ui;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=it(o);return i.get(a)||{INVALIDATE_NAME_PATH:it(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);}}),Zf(r.store,a.map(it))},this.getFieldValue=function(n){r.warningUnhooked();var i=it(n);return on(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:it(n[a]),errors:[],warnings:[]}})},this.getFieldError=function(n){r.warningUnhooked();var i=it(n),o=r.getFieldsError([i])[0];return o.errors},this.getFieldWarning=function(n){r.warningUnhooked();var i=it(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(it),c=!1):(l=null,c=a):(l=a.map(it),c=s);var u=r.getFieldEntities(!0),d=function(p){return p.isFieldTouched()};if(!l)return c?u.every(d):u.some(d);var f=new ui;l.forEach(function(m){f.set(m,[]);}),u.forEach(function(m){var p=m.getNamePath();l.forEach(function(b){b.every(function($,C){return p[C]===$})&&f.update(b,function($){return [].concat(te($),[m])});});});var g=function(p){return p.some(d)},v=f.map(function(m){var p=m.value;return p});return c?v.every(g):v.some(g)},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(it);return i.some(function(a){var s=a.getNamePath();return po(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 ui,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 f=u.getNamePath(),g=r.getInitialValue(f);if(g!==void 0)$r(!1,"Form already set 'initialValues' with path '".concat(f.join("."),"'. Field can not overwrite it."));else {var v=i.get(f);if(v&&v.size>1)$r(!1,"Multiple Field with path '".concat(f.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(v){var m=r.getFieldValue(f);(!n.skipExist||m===void 0)&&r.updateStore(xn(r.store,f,te(v)[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,te(te(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(bo({},r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(i,null,{type:"reset"}),r.notifyWatch();return}var o=n.map(it);o.forEach(function(a){var s=r.getInitialValue(a);r.updateStore(xn(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=rr(a,qE),c=it(s);o.push(c),"value"in l&&r.updateStore(xn(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=j(j({},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=on(r.store,o);a===void 0&&r.updateStore(xn(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 !Am(d.getNamePath(),i)})){var u=r.store;r.updateStore(xn(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=j(j({},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(te(o))}),o},this.updateValue=function(n,i){var o=it(n),a=r.store;r.updateStore(xn(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=Zf(r.store,[o]);l(c,r.getFieldsValue());}r.triggerOnFieldsChange([o].concat(te(s)));},this.setFieldsValue=function(n){r.warningUnhooked();var i=r.store;if(n){var o=bo(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 ui;r.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var d=it(u);a.update(d,function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return f.add(l),f});});});var s=function l(c){var u=a.get(c)||new Set;u.forEach(function(d){if(!i.has(d)){i.add(d);var f=d.getNamePath();d.isFieldDirty()&&f.length&&(o.push(f),l(f));}});};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 ui;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 po(n,u)});o(l,a);}},this.validateFields=function(n,i){r.warningUnhooked();var o=!!n,a=o?n.map(it):[],s=[];r.getFieldEntities(!0).forEach(function(u){if(o||a.push(u.getNamePath()),i!=null&&i.recursive&&o){var d=u.getNamePath();d.every(function(v,m){return n[m]===v||n[m]===void 0})&&a.push(d);}if(!(!u.props.rules||!u.props.rules.length)){var f=u.getNamePath();if(!o||po(a,f)){var g=u.validateRules(j({validateMessages:j(j({},Tm),r.validateMessages)},i));s.push(g.then(function(){return {name:f,errors:[],warnings:[]}}).catch(function(v){var m,p=[],b=[];return (m=v.forEach)===null||m===void 0||m.call(v,function($){var C=$.rule.warningOnly,O=$.errors;C?b.push.apply(b,te(O)):p.push.apply(p,te(O));}),p.length?Promise.reject({name:f,errors:p,warnings:b}):{name:f,errors:p,warnings:b}}));}}});var l=GE(s);r.lastValidatePromise=l,l.catch(function(u){return u}).then(function(u){var d=u.map(function(f){var g=f.name;return g});r.notifyObservers(r.store,d,{type:"validateFinish"}),r.triggerOnFieldsChange(d,u);});var c=l.then(function(){return r.lastValidatePromise===l?Promise.resolve(r.getFieldsValue(a)):Promise.reject([])}).catch(function(u){var d=u.filter(function(f){return f&&f.errors.length});return Promise.reject({values:r.getFieldsValue(a),errorFields:d,outOfDate:r.lastValidatePromise!==l})});return c.catch(function(u){return u}),r.triggerOnFieldsChange(a),c},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 Im(e){var t=h__namespace.useRef(),r=h__namespace.useState({}),n=G(r,2),i=n[1];if(!t.current)if(e)t.current=e;else {var o=function(){i({});},a=new KE(o);t.current=a.getForm();}return [t.current]}var ru=h__namespace.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Fm=function(t){var r=t.validateMessages,n=t.onFormChange,i=t.onFormFinish,o=t.children,a=h__namespace.useContext(ru),s=h__namespace.useRef({});return h__namespace.createElement(ru.Provider,{value:j(j({},a),{},{validateMessages:j(j({},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=j(j({},s.current),{},X({},c,u))),a.registerForm(c,u);},unregisterForm:function(c){var u=j({},s.current);delete u[c],s.current=u,a.unregisterForm(c);}})},o)},XE=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],YE=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,f=t.validateTrigger,g=f===void 0?"onChange":f,v=t.onValuesChange,m=t.onFieldsChange,p=t.onFinish,b=t.onFinishFailed,$=rr(t,XE),C=h__namespace.useContext(ru),O=Im(a),w=G(O,1),S=w[0],y=S.getInternalHooks(Hn),T=y.useSubscribe,P=y.setInitialValues,_=y.setCallbacks,N=y.setValidateMessages,A=y.setPreserve,E=y.destroyForm;h__namespace.useImperativeHandle(r,function(){return S}),h__namespace.useEffect(function(){return C.registerForm(n,S),function(){C.unregisterForm(n);}},[C,S,n]),N(j(j({},C.validateMessages),d)),_({onValuesChange:v,onFieldsChange:function(W){if(C.triggerFormChange(n,W),m){for(var B=arguments.length,re=new Array(B>1?B-1:0),z=1;z<B;z++)re[z-1]=arguments[z];m.apply(void 0,[W].concat(re));}},onFinish:function(W){C.triggerFormFinish(n,W),p&&p(W);},onFinishFailed:b}),A(s);var x=h__namespace.useRef(null);P(i,!x.current),x.current||(x.current=!0),h__namespace.useEffect(function(){return E},[]);var M,I=typeof l=="function";if(I){var k=S.getFieldsValue(!0);M=l(k,S);}else M=l;T(!I);var L=h__namespace.useRef();h__namespace.useEffect(function(){LE(L.current||[],o||[])||S.setFields(o||[]),L.current=o;},[o,S]);var D=h__namespace.useMemo(function(){return j(j({},S),{},{validateTrigger:g})},[S,g]),H=h__namespace.createElement(Di.Provider,{value:D},M);return u===!1?H:h__namespace.createElement(u,At({},$,{onSubmit:function(W){W.preventDefault(),W.stopPropagation(),S.submit();},onReset:function(W){var B;W.preventDefault(),S.resetFields(),(B=$.onReset)===null||B===void 0||B.call($,W);}}),H)};function nh(e){try{return JSON.stringify(e)}catch{return Math.random()}}function ZE(){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=tE(a)?{form:a}:a,l=s.form,c=h.useState(),u=G(c,2),d=u[0],f=u[1],g=h.useMemo(function(){return nh(d)},[d]),v=h.useRef(g);v.current=g;var m=h.useContext(Di),p=l||m,b=p&&p._init,$=it(i),C=h.useRef($);return C.current=$,h.useEffect(function(){if(b){var O=p.getFieldsValue,w=p.getInternalHooks,S=w(Hn),y=S.registerWatch,T=y(function(_,N){var A=on(s.preserve?N:_,C.current),E=nh(A);v.current!==E&&(v.current=E,f(A));}),P=on(s.preserve?O(!0):O(),C.current);return f(P),T}},[b]),d}var QE=h__namespace.forwardRef(YE),Jo=QE;Jo.FormProvider=Fm;Jo.Field=Nm;Jo.List=UE;Jo.useForm=Im;Jo.useWatch=ZE;const JE={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 ex={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 tx={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Lm=tx,rx={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"]},ex),timePickerLocale:Object.assign({},Lm)},ih=rx,Xt="${label} is not a valid ${type}",nx={locale:"en",Pagination:JE,DatePicker:ih,TimePicker:Lm,Calendar:ih,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:Xt,method:Xt,array:Xt,object:Xt,number:Xt,date:Xt,boolean:Xt,integer:Xt,float:Xt,regexp:Xt,email:Xt,url:Xt,hex:Xt},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"}},ud=nx;let Ul=Object.assign({},ud.Modal);function oh(e){e?Ul=Object.assign(Object.assign({},Ul),e):Ul=Object.assign({},ud.Modal);}const ix=h.createContext(void 0),Dm=ix,ox="internalMark",ax=e=>{const{locale:t={},children:r,_ANT_MARK__:n}=e;h__namespace.useEffect(()=>(oh(t&&t.Modal),()=>{oh();}),[t]);const i=h__namespace.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return h__namespace.createElement(Dm.Provider,{value:i},r)},sx=ax,lx="5.4.2",fs=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function xt(e,t){cx(e)&&(e="100%");var r=ux(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 Ea(e){return Math.min(1,Math.max(0,e))}function cx(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function ux(e){return typeof e=="string"&&e.indexOf("%")!==-1}function jm(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function xa(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Bn(e){return e.length===1?"0"+e:String(e)}function dx(e,t,r){return {r:xt(e,255)*255,g:xt(t,255)*255,b:xt(r,255)*255}}function ah(e,t,r){e=xt(e,255),t=xt(t,255),r=xt(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 Gl(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 fx(e,t,r){var n,i,o;if(e=xt(e,360),t=xt(t,100),r=xt(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=Gl(s,a,e+1/3),i=Gl(s,a,e),o=Gl(s,a,e-1/3);}return {r:n*255,g:i*255,b:o*255}}function nu(e,t,r){e=xt(e,255),t=xt(t,255),r=xt(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 hx(e,t,r){e=xt(e,360)*6,t=xt(t,100),r=xt(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 iu(e,t,r,n){var i=[Bn(Math.round(e).toString(16)),Bn(Math.round(t).toString(16)),Bn(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 gx(e,t,r,n,i){var o=[Bn(Math.round(e).toString(16)),Bn(Math.round(t).toString(16)),Bn(Math.round(r).toString(16)),Bn(mx(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 mx(e){return Math.round(parseFloat(e)*255).toString(16)}function sh(e){return Yt(e)/255}function Yt(e){return parseInt(e,16)}function vx(e){return {r:e>>16,g:(e&65280)>>8,b:e&255}}var ou={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 mi(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=yx(e)),typeof e=="object"&&(Zr(e.r)&&Zr(e.g)&&Zr(e.b)?(t=dx(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Zr(e.h)&&Zr(e.s)&&Zr(e.v)?(n=xa(e.s),i=xa(e.v),t=hx(e.h,n,i),a=!0,s="hsv"):Zr(e.h)&&Zr(e.s)&&Zr(e.l)&&(n=xa(e.s),o=xa(e.l),t=fx(e.h,n,o),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=jm(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 px="[-\\+]?\\d+%?",bx="[-\\+]?\\d*\\.\\d+%?",An="(?:".concat(bx,")|(?:").concat(px,")"),ql="[\\s|\\(]+(".concat(An,")[,|\\s]+(").concat(An,")[,|\\s]+(").concat(An,")\\s*\\)?"),Kl="[\\s|\\(]+(".concat(An,")[,|\\s]+(").concat(An,")[,|\\s]+(").concat(An,")[,|\\s]+(").concat(An,")\\s*\\)?"),gr={CSS_UNIT:new RegExp(An),rgb:new RegExp("rgb"+ql),rgba:new RegExp("rgba"+Kl),hsl:new RegExp("hsl"+ql),hsla:new RegExp("hsla"+Kl),hsv:new RegExp("hsv"+ql),hsva:new RegExp("hsva"+Kl),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 yx(e){if(e=e.trim().toLowerCase(),e.length===0)return !1;var t=!1;if(ou[e])e=ou[e],t=!0;else if(e==="transparent")return {r:0,g:0,b:0,a:0,format:"name"};var r=gr.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=gr.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=gr.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=gr.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=gr.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=gr.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=gr.hex8.exec(e),r?{r:Yt(r[1]),g:Yt(r[2]),b:Yt(r[3]),a:sh(r[4]),format:t?"name":"hex8"}:(r=gr.hex6.exec(e),r?{r:Yt(r[1]),g:Yt(r[2]),b:Yt(r[3]),format:t?"name":"hex"}:(r=gr.hex4.exec(e),r?{r:Yt(r[1]+r[1]),g:Yt(r[2]+r[2]),b:Yt(r[3]+r[3]),a:sh(r[4]+r[4]),format:t?"name":"hex8"}:(r=gr.hex3.exec(e),r?{r:Yt(r[1]+r[1]),g:Yt(r[2]+r[2]),b:Yt(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function Zr(e){return !!gr.CSS_UNIT.exec(String(e))}var Mt=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=vx(t)),this.originalInput=t;var i=mi(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=jm(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=nu(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=nu(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=ah(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=ah(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),iu(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),gx(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(xt(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(xt(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="#"+iu(this.r,this.g,this.b,!1),r=0,n=Object.entries(ou);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=Ea(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=Ea(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=Ea(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=Ea(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}(),_a=2,lh=.16,wx=.05,Sx=.05,Cx=.15,zm=5,Hm=4,$x=[{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 ch(e){var t=e.r,r=e.g,n=e.b,i=nu(t,r,n);return {h:i.h*360,s:i.s,v:i.v}}function Oa(e){var t=e.r,r=e.g,n=e.b;return "#".concat(iu(t,r,n,!1))}function Ex(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 uh(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-_a*t:Math.round(e.h)+_a*t:n=r?Math.round(e.h)+_a*t:Math.round(e.h)-_a*t,n<0?n+=360:n>=360&&(n-=360),n}function dh(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-lh*t:t===Hm?n=e.s+lh:n=e.s+wx*t,n>1&&(n=1),r&&t===zm&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2))}function fh(e,t,r){var n;return r?n=e.v+Sx*t:n=e.v-Cx*t,n>1&&(n=1),Number(n.toFixed(2))}function hn(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=mi(e),i=zm;i>0;i-=1){var o=ch(n),a=Oa(mi({h:uh(o,i,!0),s:dh(o,i,!0),v:fh(o,i,!0)}));r.push(a);}r.push(Oa(n));for(var s=1;s<=Hm;s+=1){var l=ch(n),c=Oa(mi({h:uh(l,s),s:dh(l,s),v:fh(l,s)}));r.push(c);}return t.theme==="dark"?$x.map(function(u){var d=u.index,f=u.opacity,g=Oa(Ex(mi(t.backgroundColor||"#141414"),mi(r[d]),f*100));return g}):r}var Xl={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"},Yl={},Zl={};Object.keys(Xl).forEach(function(e){Yl[e]=hn(Xl[e]),Yl[e].primary=Yl[e][5],Zl[e]=hn(Xl[e],{theme:"dark",backgroundColor:"#141414"}),Zl[e].primary=Zl[e][5];});const xx=e=>{const{controlHeight:t}=e;return {controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},Wm=xx;function _x(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 dd={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"},nl=Object.assign(Object.assign({},dd),{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});function Bm(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),f=r(i),g=r(o),v=r(a),m=r(s),p=n(c,u);return Object.assign(Object.assign({},p),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:v[1],colorErrorBgHover:v[2],colorErrorBorder:v[3],colorErrorBorderHover:v[4],colorErrorHover:v[5],colorError:v[6],colorErrorActive:v[7],colorErrorTextHover:v[8],colorErrorText:v[9],colorErrorTextActive:v[10],colorWarningBg:g[1],colorWarningBgHover:g[2],colorWarningBorder:g[3],colorWarningBorderHover:g[4],colorWarningHover:g[4],colorWarning:g[6],colorWarningActive:g[7],colorWarningTextHover:g[8],colorWarningText:g[9],colorWarningTextActive:g[10],colorInfoBg: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 Mt("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const Ox=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}},Px=Ox;function Tx(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},Px(n))}const Qr=(e,t)=>new Mt(e).setAlpha(t).toRgbString(),to=(e,t)=>new Mt(e).darken(t).toHexString(),Rx=e=>{const t=hn(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]}},Mx=(e,t)=>{const r=e||"#fff",n=t||"#000";return {colorBgBase:r,colorTextBase:n,colorText:Qr(n,.88),colorTextSecondary:Qr(n,.65),colorTextTertiary:Qr(n,.45),colorTextQuaternary:Qr(n,.25),colorFill:Qr(n,.15),colorFillSecondary:Qr(n,.06),colorFillTertiary:Qr(n,.04),colorFillQuaternary:Qr(n,.02),colorBgLayout:to(r,4),colorBgContainer:to(r,0),colorBgElevated:to(r,0),colorBgSpotlight:Qr(n,.85),colorBorder:to(r,15),colorBorderSecondary:to(r,6)}};function Ax(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 Nx=e=>{const t=Ax(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]}},Vm=Nx;function il(e){const t=Object.keys(dd).map(r=>{const n=hn(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),Bm(e,{generateColorPalettes:Rx,generateNeutralColorPalettes:Mx})),Vm(e.fontSize)),_x(e)),Wm(e)),Tx(e))}function Ql(e){return e>=0&&e<=255}function Pa(e,t){const{r,g:n,b:i,a:o}=new Mt(e).toRgb();if(o<1)return e;const{r:a,g:s,b:l}=new Mt(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),f=Math.round((i-l*(1-c))/c);if(Ql(u)&&Ql(d)&&Ql(f))return new Mt({r:u,g:d,b:f,a:Math.round(c*100)/100}).toRgbString()}return new Mt({r,g:n,b:i,a:1}).toRgbString()}var kx=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 Ix(e){const{override:t}=e,r=kx(e,["override"]),n=Object.assign({},t);Object.keys(nl).forEach(f=>{delete n[f];});const i=Object.assign(Object.assign({},r),n),o=480,a=576,s=768,l=992,c=1200,u=1600;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:Pa(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:Pa(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:Pa(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:Pa(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 Mt("rgba(0, 0, 0, 0.16)").toRgbString()},
      0 3px 6px 0 ${new Mt("rgba(0, 0, 0, 0.12)").toRgbString()},
      0 5px 12px 4px ${new Mt("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 Um="anticon",Fx=(e,t)=>t||(e?`ant-${e}`:"ant"),st=h__namespace.createContext({getPrefixCls:Fx,iconPrefixCls:Um}),Lx=(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)),f=2*o-u,g=d,v=2*o-l,m=c,p=2*o-a,b=s,$=o*Math.sqrt(2)+r*(Math.sqrt(2)-2);return {pointerEvents:"none",width:e,height:e,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e,height:e/2,background:n,clipPath:`path('M ${a} ${s} A ${r} ${r} 0 0 0 ${l} ${c} L ${u} ${d} A ${t} ${t} 0 0 1 ${f} ${g} L ${v} ${m} A ${r} ${r} 0 0 0 ${p} ${b} Z')`,content:'""'},"&::after":{content:'""',position:"absolute",width:$,height:$,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"}}},Er=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),Gm=()=>({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"}}),Dx=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),jx=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"}}}),zx=(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"}}}}},ol=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Hx=e=>({"&:focus-visible":Object.assign({},ol(e))});function yn(e,t,r,n){return i=>{const[o,a,s]=al(),{getPrefixCls:l,iconPrefixCls:c,csp:u}=h.useContext(st),d=l(),f={theme:o,token:a,hashId:s,nonce:()=>u==null?void 0:u.nonce};return Uc(Object.assign(Object.assign({},f),{path:["Shared",d]}),()=>[{"&":jx(a)}]),[Uc(Object.assign(Object.assign({},f),{path:[e,i,c]}),()=>{const{token:g,flush:v}=Bx(a),m=typeof r=="function"?r(g):r,p=Object.assign(Object.assign({},m),a[e]),b=`.${i}`,$=zt(g,{componentCls:b,prefixCls:i,iconCls:`.${c}`,antCls:`.${d}`},p),C=t($,{hashId:s,prefixCls:i,rootPrefixCls:d,iconPrefixCls:c,overrideComponentToken:a[e]});return v(e,p),[(n==null?void 0:n.resetStyle)===!1?null:zx(a,i),C]}),s]}}const qm=typeof CSSINJS_STATISTIC<"u";let au=!0;function zt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!qm)return Object.assign.apply(Object,[{}].concat(t));au=!1;const n={};return t.forEach(i=>{Object.keys(i).forEach(a=>{Object.defineProperty(n,a,{configurable:!0,enumerable:!0,get:()=>i[a]});});}),au=!0,n}function Wx(){}function Bx(e){let t,r=e,n=Wx;return qm&&(t=new Set,r=new Proxy(e,{get(i,o){return au&&t.add(o),i[o]}}),n=(i,o)=>{Array.from(t);}),{token:r,keys:t,flush:n}}function Km(e,t){return fs.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 Vx=Om(il),hs={token:nl,hashed:!0},Xm=h.createContext(hs);function al(){const{token:e,hashed:t,theme:r,components:n}=h.useContext(Xm),i=`${lx}-${t||""}`,o=r||Vx,[a,s]=V$(o,[nl,e],{salt:i,override:Object.assign({override:e},n),formatToken:Ix});return [o,a,t?s:""]}const Ux=`-ant-${Date.now()}-${Math.random()}`;function Gx(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 Mt(a),c=hn(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 Mt(t.primaryColor),s=hn(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 Mt(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 qx(e,t){const r=Gx(e,t);nr()&&Li(r,`${Ux}-dynamic-theme`);}const su=h__namespace.createContext(!1),Kx=e=>{let{children:t,disabled:r}=e;const n=h__namespace.useContext(su);return h__namespace.createElement(su.Provider,{value:r??n},t)},ea=su,lu=h__namespace.createContext(void 0),Xx=e=>{let{children:t,size:r}=e;const n=h__namespace.useContext(lu);return h__namespace.createElement(lu.Provider,{value:r||n},t)},qi=lu;function Yx(){const e=h.useContext(ea),t=h.useContext(qi);return {componentDisabled:e,componentSize:t}}function Zx(e,t){const r=e||{},n=r.inherit===!1||!t?hs:t;return rd(()=>{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 !pm(s,c,!0)}))}const Qx=(e,t)=>{const[r,n]=al();return Uc({theme:r,token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},Gm()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},Jx=Qx;var e_=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 t_=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select"],r_="ant";let Ym;function n_(){return Ym||r_}const i_=e=>{let{prefixCls:t,iconPrefixCls:r,theme:n}=e;t!==void 0&&(Ym=t),n&&qx(n_(),n);},o_=e=>{const{children:t,csp:r,autoInsertSpaceInButton:n,form:i,locale:o,componentSize:a,direction:s,space:l,virtual:c,dropdownMatchSelectWidth:u,legacyLocale:d,parentContext:f,iconPrefixCls:g,theme:v,componentDisabled:m}=e,p=h__namespace.useCallback((E,x)=>{const{prefixCls:M}=e;if(x)return x;const I=M||f.getPrefixCls("");return E?`${I}-${E}`:I},[f.getPrefixCls,e.prefixCls]),b=g||f.iconPrefixCls||Um,$=b!==f.iconPrefixCls,C=r||f.csp,O=Jx(b,C),w=Zx(v,f.theme),S={csp:C,autoInsertSpaceInButton:n,locale:o||d,direction:s,space:l,virtual:c,dropdownMatchSelectWidth:u,getPrefixCls:p,iconPrefixCls:b,theme:w},y=Object.assign({},f);Object.keys(S).forEach(E=>{S[E]!==void 0&&(y[E]=S[E]);}),t_.forEach(E=>{const x=e[E];x&&(y[E]=x);});const T=rd(()=>y,y,(E,x)=>{const M=Object.keys(E),I=Object.keys(x);return M.length!==I.length||M.some(k=>E[k]!==x[k])}),P=h__namespace.useMemo(()=>({prefixCls:b,csp:C}),[b,C]);let _=$?O(t):t;const N=h__namespace.useMemo(()=>{var E,x,M;return bo({},((E=ud.Form)===null||E===void 0?void 0:E.defaultValidateMessages)||{},((M=(x=T.locale)===null||x===void 0?void 0:x.Form)===null||M===void 0?void 0:M.defaultValidateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[T,i==null?void 0:i.validateMessages]);Object.keys(N).length>0&&(_=h__namespace.createElement(Fm,{validateMessages:N},t)),o&&(_=h__namespace.createElement(sx,{locale:o,_ANT_MARK__:ox},_)),(b||C)&&(_=h__namespace.createElement(ld.Provider,{value:P},_)),a&&(_=h__namespace.createElement(Xx,{size:a},_));const A=h__namespace.useMemo(()=>{const E=w||{},{algorithm:x,token:M}=E,I=e_(E,["algorithm","token"]),k=x&&(!Array.isArray(x)||x.length>0)?Om(x):void 0;return Object.assign(Object.assign({},I),{theme:k,token:Object.assign(Object.assign({},nl),M)})},[w]);return v&&(_=h__namespace.createElement(Xm.Provider,{value:A},_)),m!==void 0&&(_=h__namespace.createElement(Kx,{disabled:m},_)),h__namespace.createElement(st.Provider,{value:T},_)},Ki=e=>{const t=h__namespace.useContext(st),r=h__namespace.useContext(Dm);return h__namespace.createElement(o_,Object.assign({parentContext:t,legacyLocale:r},e))};Ki.ConfigContext=st;Ki.SizeContext=qi;Ki.config=i_;Ki.useConfig=Yx;Object.defineProperty(Ki,"SizeContext",{get:()=>qi});const Zm=Ki;var Qm=function(t){return +setTimeout(t,16)},Jm=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(Qm=function(t){return window.requestAnimationFrame(t)},Jm=function(t){return window.cancelAnimationFrame(t)});var hh=0,fd=new Map;function ev(e){fd.delete(e);}var gn=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;hh+=1;var n=hh;function i(o){if(o===0)ev(n),t();else {var a=Qm(function(){i(o-1);});fd.set(n,a);}}return i(r),n};gn.cancel=function(e){var t=fd.get(e);return ev(t),Jm(t)};function a_(e,t){$r(e,"[@ant-design/icons] ".concat(t));}function gh(e){return ze(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(ze(e.icon)==="object"||typeof e.icon=="function")}function mh(){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 cu(e,t,r){return r?h.createElement(e.tag,j(j({key:t},mh(e.attrs)),r),(e.children||[]).map(function(n,i){return cu(n,"".concat(t,"-").concat(e.tag,"-").concat(i))})):h.createElement(e.tag,j({key:t},mh(e.attrs)),(e.children||[]).map(function(n,i){return cu(n,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function tv(e){return hn(e)[0]}function rv(e){return e?Array.isArray(e)?e:[e]:[]}var s_=`
.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);
  }
}
`,l_=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:s_,r=h.useContext(ld),n=r.csp,i=r.prefixCls,o=t;i&&(o=o.replace(/anticon/g,i)),h.useEffect(function(){Li(o,"@ant-design-icons",{prepend:!0,csp:n});},[]);},c_=["icon","className","onClick","style","primaryColor","secondaryColor"],yo={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function u_(e){var t=e.primaryColor,r=e.secondaryColor;yo.primaryColor=t,yo.secondaryColor=r||tv(t),yo.calculated=!!r;}function d_(){return j({},yo)}var sl=function(t){var r=t.icon,n=t.className,i=t.onClick,o=t.style,a=t.primaryColor,s=t.secondaryColor,l=rr(t,c_),c=yo;if(a&&(c={primaryColor:a,secondaryColor:s||tv(a)}),l_(),a_(gh(r),"icon should be icon definiton, but got ".concat(r)),!gh(r))return null;var u=r;return u&&typeof u.icon=="function"&&(u=j(j({},u),{},{icon:u.icon(c.primaryColor,c.secondaryColor)})),cu(u.icon,"svg-".concat(u.name),j({className:n,onClick:i,style:o,"data-icon":u.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l))};sl.displayName="IconReact";sl.getTwoToneColors=d_;sl.setTwoToneColors=u_;const hd=sl;function nv(e){var t=rv(e),r=G(t,2),n=r[0],i=r[1];return hd.setTwoToneColors({primaryColor:n,secondaryColor:i})}function f_(){var e=hd.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var h_=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];nv("#1890ff");var ll=h__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=rr(e,h_),d=h__namespace.useContext(ld),f=d.prefixCls,g=f===void 0?"anticon":f,v=d.rootClassName,m=q(v,g,(r={},X(r,"".concat(g,"-").concat(i.name),!!i.name),X(r,"".concat(g,"-spin"),!!o||i.name==="loading"),r),n),p=s;p===void 0&&l&&(p=-1);var b=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,$=rv(c),C=G($,2),O=C[0],w=C[1];return h__namespace.createElement("span",j(j({role:"img","aria-label":i.name},u),{},{ref:t,tabIndex:p,onClick:l,className:m}),h__namespace.createElement(hd,{icon:i,primaryColor:O,secondaryColor:w,style:b}))});ll.displayName="AntdIcon";ll.getTwoToneColor=f_;ll.setTwoToneColor=nv;const cl=ll;var g_={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 m_=g_;var iv=function(t,r){return h__namespace.createElement(cl,j(j({},t),{},{ref:r,icon:m_}))};iv.displayName="CloseOutlined";const v_=h__namespace.forwardRef(iv);function vh(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 p_(e,t){var r={animationend:vh("Animation","AnimationEnd"),transitionend:vh("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var b_=p_(nr(),typeof window<"u"?window:{}),ov={};if(nr()){var y_=document.createElement("div");ov=y_.style;}var Ta={};function av(e){if(Ta[e])return Ta[e];var t=b_[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 ov)return Ta[e]=t[o],Ta[e]}return ""}var sv=av("animationend"),lv=av("transitionend"),cv=!!(sv&&lv),ph=sv||"animationend",bh=lv||"transitionend";function yh(e,t){if(!e)return null;if(ze(e)==="object"){var r=t.replace(/-\w/g,function(n){return n[1].toUpperCase()});return e[r]}return "".concat(e,"-").concat(t)}var vi="none",Ra="appear",Ma="enter",Aa="leave",wh="none",Jr="prepare",pi="start",bi="active",gd="end";function $i(e){var t=h__namespace.useRef(!1),r=h__namespace.useState(e),n=G(r,2),i=n[0],o=n[1];h__namespace.useEffect(function(){return t.current=!1,function(){t.current=!0;}},[]);function a(s,l){l&&t.current||o(s);}return [i,a]}const w_=function(){var e=h__namespace.useRef(null);function t(){gn.cancel(e.current);}function r(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var o=gn(function(){i<=1?n({isCanceled:function(){return o!==e.current}}):r(n,i-1);});e.current=o;}return h__namespace.useEffect(function(){return function(){t();}},[]),[r,t]};var uv=nr()?h.useLayoutEffect:h.useEffect,Sh=[Jr,pi,bi,gd],dv=!1,S_=!0;function fv(e){return e===bi||e===gd}const C_=function(e,t){var r=$i(wh),n=G(r,2),i=n[0],o=n[1],a=w_(),s=G(a,2),l=s[0],c=s[1];function u(){o(Jr,!0);}return uv(function(){if(i!==wh&&i!==gd){var d=Sh.indexOf(i),f=Sh[d+1],g=t(i);g===dv?o(f,!0):l(function(v){function m(){v.isCanceled()||o(f,!0);}g===!0?m():Promise.resolve(g).then(m);});}},[e,i]),h__namespace.useEffect(function(){return function(){c();}},[]),[u,i]},$_=function(e){var t=h.useRef(),r=h.useRef(e);r.current=e;var n=h__namespace.useCallback(function(a){r.current(a);},[]);function i(a){a&&(a.removeEventListener(bh,n),a.removeEventListener(ph,n));}function o(a){t.current&&t.current!==a&&i(t.current),a&&a!==t.current&&(a.addEventListener(bh,n),a.addEventListener(ph,n),t.current=a);}return h__namespace.useEffect(function(){return function(){i(t.current);}},[]),[o,i]};function E_(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,f=n.onAppearPrepare,g=n.onEnterPrepare,v=n.onLeavePrepare,m=n.onAppearStart,p=n.onEnterStart,b=n.onLeaveStart,$=n.onAppearActive,C=n.onEnterActive,O=n.onLeaveActive,w=n.onAppearEnd,S=n.onEnterEnd,y=n.onLeaveEnd,T=n.onVisibleChanged,P=$i(),_=G(P,2),N=_[0],A=_[1],E=$i(vi),x=G(E,2),M=x[0],I=x[1],k=$i(null),L=G(k,2),D=L[0],H=L[1],V=h.useRef(!1),W=h.useRef(null);function B(){return r()}var re=h.useRef(!1);function z(oe){var Q=B();if(!(oe&&!oe.deadline&&oe.target!==Q)){var ae=re.current,we;M===Ra&&ae?we=w==null?void 0:w(Q,oe):M===Ma&&ae?we=S==null?void 0:S(Q,oe):M===Aa&&ae&&(we=y==null?void 0:y(Q,oe)),M!==vi&&ae&&we!==!1&&(I(vi,!0),H(null,!0));}}var le=$_(z),ie=G(le,1),me=ie[0],ee=h__namespace.useMemo(function(){var oe,Q,ae;switch(M){case Ra:return oe={},X(oe,Jr,f),X(oe,pi,m),X(oe,bi,$),oe;case Ma:return Q={},X(Q,Jr,g),X(Q,pi,p),X(Q,bi,C),Q;case Aa:return ae={},X(ae,Jr,v),X(ae,pi,b),X(ae,bi,O),ae;default:return {}}},[M]),pe=C_(M,function(oe){if(oe===Jr){var Q=ee[Jr];return Q?Q(B()):dv}if(ve in ee){var ae;H(((ae=ee[ve])===null||ae===void 0?void 0:ae.call(ee,B(),null))||null);}return ve===bi&&(me(B()),u>0&&(clearTimeout(W.current),W.current=setTimeout(function(){z({deadline:!0});},u))),S_}),xe=G(pe,2),De=xe[0],ve=xe[1],$e=fv(ve);re.current=$e,uv(function(){A(t);var oe=V.current;if(V.current=!0,!!e){var Q;!oe&&t&&s&&(Q=Ra),oe&&t&&o&&(Q=Ma),(oe&&!t&&c||!oe&&d&&!t&&c)&&(Q=Aa),Q&&(I(Q),De());}},[t]),h.useEffect(function(){(M===Ra&&!s||M===Ma&&!o||M===Aa&&!c)&&I(vi);},[s,o,c]),h.useEffect(function(){return function(){V.current=!1,clearTimeout(W.current);}},[]);var Pe=h__namespace.useRef(!1);h.useEffect(function(){N&&(Pe.current=!0),N!==void 0&&M===vi&&((Pe.current||N)&&(T==null||T(N)),Pe.current=!0);},[N,M]);var He=D;return ee[Jr]&&ve===pi&&(He=j({transition:"none"},He)),[M,ve,He,N??t]}var x_=function(e){Qs(r,e);var t=Js(r);function r(){return ur(this,r),t.apply(this,arguments)}return dr(r,[{key:"render",value:function(){return this.props.children}}]),r}(h__namespace.Component);function __(e){var t=e;ze(e)==="object"&&(t=e.transitionSupport);function r(i){return !!(i.motionName&&t)}var n=h__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,f=i.motionName,g=i.leavedClassName,v=i.eventProps,m=r(i),p=h.useRef(),b=h.useRef();function $(){try{return p.current instanceof HTMLElement?p.current:jc(b.current)}catch{return null}}var C=E_(m,s,$,i),O=G(C,4),w=O[0],S=O[1],y=O[2],T=O[3],P=h__namespace.useRef(T);T&&(P.current=!0);var _=h__namespace.useCallback(function(k){p.current=k,nd(o,k);},[o]),N,A=j(j({},v),{},{visible:s});if(!d)N=null;else if(w===vi||!r(i))T?N=d(j({},A),_):!c&&P.current&&g?N=d(j(j({},A),{},{className:g}),_):u||!c&&!g?N=d(j(j({},A),{},{style:{display:"none"}}),_):N=null;else {var E,x;S===Jr?x="prepare":fv(S)?x="active":S===pi&&(x="start"),N=d(j(j({},A),{},{className:q(yh(f,w),(E={},X(E,yh(f,"".concat(w,"-").concat(x)),x),X(E,f,typeof f=="string"),E)),style:y}),_);}if(h__namespace.isValidElement(N)&&Zo(N)){var M=N,I=M.ref;I||(N=h__namespace.cloneElement(N,{ref:_}));}return h__namespace.createElement(x_,{ref:b},N)});return n.displayName="CSSMotion",n}const ta=__(cv);var uu="add",du="keep",fu="remove",Jl="removed";function O_(e){var t;return e&&ze(e)==="object"&&"key"in e?t=e:t={key:e},j(j({},t),{},{key:String(t.key)})}function hu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(O_)}function P_(){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=hu(e),a=hu(t);o.forEach(function(c){for(var u=!1,d=n;d<i;d+=1){var f=a[d];if(f.key===c.key){n<d&&(r=r.concat(a.slice(n,d).map(function(g){return j(j({},g),{},{status:uu})})),n=d),r.push(j(j({},f),{},{status:du})),n+=1,u=!0;break}}u||r.push(j(j({},c),{},{status:fu}));}),n<i&&(r=r.concat(a.slice(n).map(function(c){return j(j({},c),{},{status:uu})})));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,f=u.status;return d!==c||f!==fu}),r.forEach(function(u){u.key===c&&(u.status=du);});}),r}var T_=["component","children","onVisibleChanged","onAllRemoved"],R_=["status"],M_=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function A_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ta,r=function(n){Qs(o,n);var i=Js(o);function o(){var a;ur(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)),X(os(a),"state",{keyEntities:[]}),X(os(a),"removeKey",function(u){var d=a.state.keyEntities,f=d.map(function(g){return g.key!==u?g:j(j({},g),{},{status:Jl})});return a.setState({keyEntities:f}),f.filter(function(g){var v=g.status;return v!==Jl}).length}),a}return dr(o,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,c=this.props,u=c.component,d=c.children,f=c.onVisibleChanged,g=c.onAllRemoved,v=rr(c,T_),m=u||h__namespace.Fragment,p={};return M_.forEach(function(b){p[b]=v[b],delete v[b];}),delete v.keys,h__namespace.createElement(m,v,l.map(function(b){var $=b.status,C=rr(b,R_),O=$===uu||$===du;return h__namespace.createElement(t,At({},p,{key:C.key,visible:O,eventProps:C,onVisibleChanged:function(S){if(f==null||f(S,{key:C.key}),!S){var y=s.removeKey(C.key);y===0&&g&&g();}}}),d)}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var c=s.keys,u=l.keyEntities,d=hu(c),f=P_(u,d);return {keyEntities:f.filter(function(g){var v=u.find(function(m){var p=m.key;return g.key===p});return !(v&&v.status===Jl&&g.status===fu)})}}}]),o}(h__namespace.Component);return X(r,"defaultProps",{component:"div"}),r}A_(cv);function N_(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:md}=h__namespace;function hv(e){return e&&md(e)&&e.type===h__namespace.Fragment}function k_(e,t,r){return md(e)?h__namespace.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t}function ji(e,t){return k_(e,e,t)}function en(e){var t=h__namespace.useRef();t.current=e;var r=h__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}}},I_={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 F_=I_;var gv=function(t,r){return h__namespace.createElement(cl,j(j({},t),{},{ref:r,icon:F_}))};gv.displayName="LoadingOutlined";const Ch=h__namespace.forwardRef(gv);var ra=j({},cg__namespace),L_=ra.version,D_=ra.render,j_=ra.unmountComponentAtNode,ul;try{var z_=Number((L_||"").split(".")[0]);z_>=18&&(ul=ra.createRoot);}catch{}function $h(e){var t=ra.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&ze(t)==="object"&&(t.usingClientEntryPoint=e);}var gs="__rc_react_root__";function H_(e,t){$h(!0);var r=t[gs]||ul(t);$h(!1),r.render(e),t[gs]=r;}function W_(e,t){D_(e,t);}function B_(e,t){if(ul){H_(e,t);return}W_(e,t);}function V_(e){return gu.apply(this,arguments)}function gu(){return gu=Gi(ir().mark(function e(t){return ir().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.resolve().then(function(){var i;(i=t[gs])===null||i===void 0||i.unmount(),delete t[gs];}));case 1:case"end":return n.stop()}},e)})),gu.apply(this,arguments)}function U_(e){j_(e);}function G_(e){return mu.apply(this,arguments)}function mu(){return mu=Gi(ir().mark(function e(t){return ir().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(ul===void 0){n.next=2;break}return n.abrupt("return",V_(t));case 2:U_(t);case 3:case"end":return n.stop()}},e)})),mu.apply(this,arguments)}const mv=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},q_=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}}}}},K_=yn("Wave",e=>[q_(e)]);function X_(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 ec(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&X_(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function Y_(e){const{borderTopColor:t,borderColor:r,backgroundColor:n}=getComputedStyle(e);return ec(t)?t:ec(r)?r:ec(n)?n:null}function tc(e){return Number.isNaN(e)?0:e}const Z_=e=>{const{className:t,target:r}=e,n=h__namespace.useRef(null),[i,o]=h__namespace.useState(null),[a,s]=h__namespace.useState([]),[l,c]=h__namespace.useState(0),[u,d]=h__namespace.useState(0),[f,g]=h__namespace.useState(0),[v,m]=h__namespace.useState(0),[p,b]=h__namespace.useState(!1),$={left:l,top:u,width:f,height:v,borderRadius:a.map(O=>`${O}px`).join(" ")};i&&($["--wave-color"]=i);function C(){const O=getComputedStyle(r);o(Y_(r));const w=O.position==="static",{borderLeftWidth:S,borderTopWidth:y}=O;c(w?r.offsetLeft:tc(-parseFloat(S))),d(w?r.offsetTop:tc(-parseFloat(y))),g(r.offsetWidth),m(r.offsetHeight);const{borderTopLeftRadius:T,borderTopRightRadius:P,borderBottomLeftRadius:_,borderBottomRightRadius:N}=O;s([T,P,N,_].map(A=>tc(parseFloat(A))));}return h__namespace.useEffect(()=>{if(r){const O=gn(()=>{C(),b(!0);});let w;return typeof ResizeObserver<"u"&&(w=new ResizeObserver(C),w.observe(r)),()=>{gn.cancel(O),w==null||w.disconnect();}}},[]),p?h__namespace.createElement(ta,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(O,w)=>{var S;if(w.deadline||w.propertyName==="opacity"){const y=(S=n.current)===null||S===void 0?void 0:S.parentElement;G_(y).then(()=>{var T;(T=y.parentElement)===null||T===void 0||T.removeChild(y);});}return !1}},O=>{let{className:w}=O;return h__namespace.createElement("div",{ref:n,className:q(t,w),style:$})}):null};function Q_(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),B_(h__namespace.createElement(Z_,{target:e,className:t}),r);}function J_(e,t){function r(){const n=e.current;Q_(n,t);}return r}const eO=e=>{const{children:t,disabled:r}=e,{getPrefixCls:n}=h.useContext(st),i=h.useRef(null),o=n("wave"),[,a]=K_(o),s=J_(i,q(o,a));if(h.useEffect(()=>{const c=i.current;if(!c||c.nodeType!==1||r)return;const u=d=>{d.target.tagName==="INPUT"||!mv(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]),!h.isValidElement(t))return t??null;const l=Zo(t)?ti(t.ref,i):i;return ji(t,{ref:l})},vv=eO,tO=e=>{const{componentCls:t}=e;return {[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},rO=tO,nO=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"}}}},pv=yn("Space",e=>[nO(e),rO(e)],()=>({}),{resetStyle:!1});var bv=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 dl=h__namespace.createContext(null),yv=(e,t)=>{const r=h__namespace.useContext(dl),n=h__namespace.useMemo(()=>{if(!r)return "";const{compactDirection:i,isFirstItem:o,isLastItem:a}=r,s=i==="vertical"?"-vertical-":"-";return q({[`${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}},Eh=e=>{let{children:t}=e;return h__namespace.createElement(dl.Provider,{value:null},t)},iO=e=>{var{children:t}=e,r=bv(e,["children"]);return h__namespace.createElement(dl.Provider,{value:r},t)},oO=e=>{const{getPrefixCls:t,direction:r}=h__namespace.useContext(st),{size:n="middle",direction:i,block:o,prefixCls:a,className:s,rootClassName:l,children:c}=e,u=bv(e,["size","direction","block","prefixCls","className","rootClassName","children"]),d=t("space-compact",a),[f,g]=pv(d),v=q(d,g,{[`${d}-rtl`]:r==="rtl",[`${d}-block`]:o,[`${d}-vertical`]:i==="vertical"},s,l),m=h__namespace.useContext(dl),p=Ii(c),b=h__namespace.useMemo(()=>p.map(($,C)=>{const O=$&&$.key||`${d}-item-${C}`;return h__namespace.createElement(iO,{key:O,compactSize:n,compactDirection:i,isFirstItem:C===0&&(!m||(m==null?void 0:m.isFirstItem)),isLastItem:C===p.length-1&&(!m||(m==null?void 0:m.isLastItem))},$)}),[n,p,m]);return p.length===0?null:f(h__namespace.createElement("div",Object.assign({className:v},u),b))},aO=oO,rc=()=>({width:0,opacity:0,transform:"scale(0)"}),nc=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),sO=e=>{let{prefixCls:t,loading:r,existIcon:n}=e;const i=!!r;return n?h.createElement("span",{className:`${t}-loading-icon`},h.createElement(Ch,null)):h.createElement(ta,{visible:i,motionName:`${t}-loading-icon-motion`,removeOnLeave:!0,onAppearStart:rc,onAppearActive:nc,onEnterStart:rc,onEnterActive:nc,onLeaveStart:nc,onLeaveActive:rc},(o,a)=>{let{className:s,style:l}=o;return h.createElement("span",{className:`${t}-loading-icon`,style:l,ref:a},h.createElement(Ch,{className:s}))})},lO=sO;var cO=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 wv=h__namespace.createContext(void 0),uO=e=>{const{getPrefixCls:t,direction:r}=h__namespace.useContext(st),{prefixCls:n,size:i,className:o}=e,a=cO(e,["prefixCls","size","className"]),s=t("btn-group",n),[,,l]=al();let c="";switch(i){case"large":c="lg";break;case"small":c="sm";break}const u=q(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:r==="rtl"},o,l);return h__namespace.createElement(wv.Provider,{value:i},h__namespace.createElement("div",Object.assign({},a,{className:u})))},dO=uO,xh=/^[\u4e00-\u9fa5]{2}$/,vu=xh.test.bind(xh);function fO(e){return typeof e=="string"}function ic(e){return e==="text"||e==="link"}function hO(e,t){if(e==null)return;const r=t?" ":"";return typeof e!="string"&&typeof e!="number"&&fO(e.type)&&vu(e.props.children)?ji(e,{children:e.props.children.split("").join(r)}):typeof e=="string"?vu(e)?h.createElement("span",null,e.split("").join(r)):h.createElement("span",null,e):hv(e)?h.createElement("span",null,e):e}function gO(e,t){let r=!1;const n=[];return h.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;}),h.Children.map(n,i=>hO(i,t))}const _h=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),mO=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}},_h(`${t}-primary`,i),_h(`${t}-danger`,o)]}},vO=mO;function pO(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 bO(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 Sv(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({},pO(e,n,t)),bO(r,n,t))}}function yO(e,t){return {[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function wO(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 SO(e){const t=`${e.componentCls}-compact-vertical`;return {[t]:Object.assign(Object.assign({},yO(e,t)),wO(e.componentCls,t))}}const CO=e=>{const{componentCls:t,iconCls:r}=e;return {[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:400,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"},[`> ${r} + span, > span + ${r}`]:{marginInlineStart:e.marginXS},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},Hx(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:'""'}}}}}}},mn=(e,t)=>({"&:not(:disabled)":{"&:hover":e,"&:active":t}}),$O=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),EO=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),pu=e=>({cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),ms=(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"},mn(Object.assign({backgroundColor:"transparent"},o),Object.assign({backgroundColor:"transparent"},a))),{"&:disabled":{cursor:"not-allowed",color:n||void 0,borderColor:i||void 0}})}),vd=e=>({"&:disabled":Object.assign({},pu(e))}),Cv=e=>Object.assign({},vd(e)),vs=e=>({"&:disabled":{cursor:"not-allowed",color:e.colorTextDisabled}}),$v=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Cv(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),mn({color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),ms(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},mn({color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),ms(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),vd(e))}),xO=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Cv(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),mn({color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),ms(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}`},mn({backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),ms(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),vd(e))}),_O=e=>Object.assign(Object.assign({},$v(e)),{borderStyle:"dashed"}),OO=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},mn({color:e.colorLinkHover},{color:e.colorLinkActive})),vs(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},mn({color:e.colorErrorHover},{color:e.colorErrorActive})),vs(e))}),PO=e=>Object.assign(Object.assign(Object.assign({},mn({color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),vs(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},vs(e)),mn({color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),TO=e=>Object.assign(Object.assign({},pu(e)),{[`&${e.componentCls}:hover`]:Object.assign({},pu(e))}),RO=e=>{const{componentCls:t}=e;return {[`${t}-default`]:$v(e),[`${t}-primary`]:xO(e),[`${t}-dashed`]:_O(e),[`${t}-link`]:OO(e),[`${t}-text`]:PO(e),[`${t}-disabled`]:TO(e)}},pd=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:r,iconCls:n,controlHeight:i,fontSize:o,lineHeight:a,lineWidth:s,borderRadius:l,buttonPaddingHorizontal:c}=e,u=Math.max(0,(i-o*a)/2-s),d=c-s,f=`${r}-icon-only`;return [{[`${r}${t}`]:{fontSize:o,height:i,padding:`${u}px ${d}px`,borderRadius:l,[`&${f}`]:{width:i,paddingInlineStart:0,paddingInlineEnd:0,[`&${r}-round`]:{width:"auto"},"> span":{transform:"scale(1.143)"}},[`&${r}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${r}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`&:not(${f}) ${r}-loading-icon > ${n}`]:{marginInlineEnd:e.marginXS}}},{[`${r}${r}-circle${t}`]:$O(e)},{[`${r}${r}-round${t}`]:EO(e)}]},MO=e=>pd(e),AO=e=>{const t=zt(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM});return pd(t,`${e.componentCls}-sm`)},NO=e=>{const t=zt(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG});return pd(t,`${e.componentCls}-lg`)},kO=e=>{const{componentCls:t}=e;return {[t]:{[`&${t}-block`]:{width:"100%"}}}},IO=yn("Button",e=>{const{controlTmpOutline:t,paddingContentHorizontal:r}=e,n=zt(e,{colorOutlineDefault:t,buttonPaddingHorizontal:r});return [CO(n),AO(n),MO(n),NO(n),kO(n),RO(n),vO(n),Sv(e),SO(e)]});var FO=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 LO(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 DO=(e,t)=>{const{loading:r=!1,prefixCls:n,type:i="default",danger:o,shape:a="default",size:s,disabled:l,className:c,rootClassName:u,children:d,icon:f,ghost:g=!1,block:v=!1,htmlType:m="button"}=e,p=FO(e,["loading","prefixCls","type","danger","shape","size","disabled","className","rootClassName","children","icon","ghost","block","htmlType"]),{getPrefixCls:b,autoInsertSpaceInButton:$,direction:C}=h__namespace.useContext(st),O=b("btn",n),[w,S]=IO(O),y=h__namespace.useContext(qi),T=h__namespace.useContext(ea),P=l??T,_=h__namespace.useContext(wv),N=h__namespace.useMemo(()=>LO(r),[r]),[A,E]=h__namespace.useState(N.loading),[x,M]=h__namespace.useState(!1),I=t||h__namespace.createRef(),k=()=>h__namespace.Children.count(d)===1&&!f&&!ic(i),L=()=>{if(!I||!I.current||$===!1)return;const ve=I.current.textContent;k()&&vu(ve)?x||M(!0):x&&M(!1);};h__namespace.useEffect(()=>{let ve=null;N.delay>0?ve=window.setTimeout(()=>{ve=null,E(!0);},N.delay):E(N.loading);function $e(){ve&&(window.clearTimeout(ve),ve=null);}return $e},[N]),h__namespace.useEffect(L,[I]);const D=ve=>{const{onClick:$e}=e;if(A||P){ve.preventDefault();return}$e==null||$e(ve);},H=$!==!1,{compactSize:V,compactItemClassnames:W}=yv(O,C),B={large:"lg",small:"sm",middle:void 0},re=V||_||s||y,z=re&&B[re]||"",le=A?"loading":f,ie=mm(p,["navigate"]),me=ie.href!==void 0&&P,ee=q(O,S,{[`${O}-${a}`]:a!=="default"&&a,[`${O}-${i}`]:i,[`${O}-${z}`]:z,[`${O}-icon-only`]:!d&&d!==0&&!!le,[`${O}-background-ghost`]:g&&!ic(i),[`${O}-loading`]:A,[`${O}-two-chinese-chars`]:x&&H&&!A,[`${O}-block`]:v,[`${O}-dangerous`]:!!o,[`${O}-rtl`]:C==="rtl",[`${O}-disabled`]:me},W,c,u),pe=f&&!A?f:h__namespace.createElement(lO,{existIcon:!!f,prefixCls:O,loading:!!A}),xe=d||d===0?gO(d,k()&&H):null;if(ie.href!==void 0)return w(h__namespace.createElement("a",Object.assign({},ie,{className:ee,onClick:D,ref:I}),pe,xe));let De=h__namespace.createElement("button",Object.assign({},p,{type:m,className:ee,onClick:D,disabled:P,ref:I}),pe,xe);return ic(i)||(De=h__namespace.createElement(vv,{disabled:!!A},De)),w(De)},bd=h__namespace.forwardRef(DO);bd.Group=dO;bd.__ANT_BUTTON=!0;const Ei=bd,jO=(e,t,r)=>r!==void 0?r:`${e}-${t}`;var Ev=h__namespace.createContext(null),It=nr()?h__namespace.useLayoutEffect:h__namespace.useEffect,wo=function(t,r){var n=h__namespace.useRef(!0);It(function(){if(!n.current)return t()},r),It(function(){return n.current=!1,function(){n.current=!0;}},[]);},Oh=[];function zO(e,t){var r=h__namespace.useState(function(){if(!nr())return null;var v=document.createElement("div");return v}),n=G(r,1),i=n[0],o=h__namespace.useRef(!1),a=h__namespace.useContext(Ev),s=h__namespace.useState(Oh),l=G(s,2),c=l[0],u=l[1],d=a||(o.current?void 0:function(v){u(function(m){var p=[v].concat(te(m));return p});});function f(){i.parentElement||document.body.appendChild(i),o.current=!0;}function g(){var v;(v=i.parentElement)===null||v===void 0||v.removeChild(i),o.current=!1;}return It(function(){return e?a?a(f):f():g(),g},[e]),It(function(){c.length&&(c.forEach(function(v){return v()}),u(Oh));},[c]),[i,d]}var oc;function HO(e){if(typeof document>"u")return 0;if(e||oc===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),oc=i-o;}return oc}function WO(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var BO="rc-util-locker-".concat(Date.now()),Ph=0;function VO(e){var t=!!e,r=h__namespace.useState(function(){return Ph+=1,"".concat(BO,"_").concat(Ph)}),n=G(r,1),i=n[0];It(function(){if(t){var o=HO(),a=WO();Li(`
html body {
  overflow-y: hidden;
  `.concat(a?"width: calc(100% - ".concat(o,"px);"):"",`
}`),i);}else us(i);return function(){us(i);}},[t,i]);}var Th=!1;function UO(e){return typeof e=="boolean"&&(Th=e),Th}var Rh=function(t){return t===!1?!1:!nr()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},xv=h__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=h__namespace.useState(r),c=G(l,2),u=c[0],d=c[1],f=u||r;h__namespace.useEffect(function(){(a||r)&&d(r);},[r,a]);var g=h__namespace.useState(function(){return Rh(i)}),v=G(g,2),m=v[0],p=v[1];h__namespace.useEffect(function(){var N=Rh(i);p(N??null);});var b=zO(f&&!m),$=G(b,2),C=$[0],O=$[1],w=m??C;VO(n&&r&&nr()&&(w===C||w===document.body));var S=null;if(s&&Zo(s)&&t){var y=s;S=y.ref;}var T=lm(S,t);if(!f||!nr()||m===void 0)return null;var P=w===!1||UO(),_=s;return t&&(_=h__namespace.cloneElement(s,{ref:T})),h__namespace.createElement(Ev.Provider,{value:O},P?_:cg.createPortal(_,w))});function GO(){var e=j({},h__namespace);return e.useId}var Mh=0;function qO(e){var t=h__namespace.useState("ssr-id"),r=G(t,2),n=r[0],i=r[1],o=GO(),a=o==null?void 0:o();return h__namespace.useEffect(function(){if(!o){var s=Mh;Mh+=1,i("rc_unique_".concat(s));}},[]),e||a||n}const Lo=h__namespace.createContext({}),Ah=e=>{let{children:t,status:r,override:n}=e;const i=h.useContext(Lo),o=h.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 h__namespace.createElement(Lo.Provider,{value:o},t)},KO=()=>nr()&&window.document.documentElement;let Na;const XO=()=>{if(!KO())return !1;if(Na!==void 0)return Na;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),Na=e.scrollHeight===1,document.body.removeChild(e),Na},YO=e=>({animationDuration:e,animationFillMode:"both"}),ZO=e=>({animationDuration:e,animationFillMode:"both"}),QO=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({},YO(n)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},ZO(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"}}},JO=new Wt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),eP=new Wt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Nh=new Wt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),kh=new Wt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),tP=new Wt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),rP=new Wt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),nP=new Wt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),iP=new Wt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),oP=new Wt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),aP=new Wt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),sP=new Wt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),lP=new Wt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),cP={zoom:{inKeyframes:JO,outKeyframes:eP},"zoom-big":{inKeyframes:Nh,outKeyframes:kh},"zoom-big-fast":{inKeyframes:Nh,outKeyframes:kh},"zoom-left":{inKeyframes:nP,outKeyframes:iP},"zoom-right":{inKeyframes:oP,outKeyframes:aP},"zoom-up":{inKeyframes:tP,outKeyframes:rP},"zoom-down":{inKeyframes:sP,outKeyframes:lP}},uP=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:i,outKeyframes:o}=cP[t];return [QO(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 ac(e){return e!==void 0}function fl(e,t){var r=t||{},n=r.defaultValue,i=r.value,o=r.onChange,a=r.postState,s=$i(function(){return ac(i)?i:ac(n)?typeof n=="function"?n():n:typeof e=="function"?e():e}),l=G(s,2),c=l[0],u=l[1],d=i!==void 0?i:c,f=a?a(d):d,g=en(o),v=$i([d]),m=G(v,2),p=m[0],b=m[1];wo(function(){var C=p[0];c!==C&&g(c,C);},[p]),wo(function(){ac(i)||u(i);},[i]);var $=en(function(C,O){u(C,O),b([d],O);});return [f,$]}const _v=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 Ih=h__namespace.createContext(null);function Fh(e){return e?Array.isArray(e)?e:[e]:[]}function dP(e,t,r,n){return h__namespace.useMemo(function(){var i=Fh(r??t),o=Fh(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 fP(){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 hP(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(fP((s=e[l])===null||s===void 0?void 0:s.points,i,n))return "".concat(t,"-placement-").concat(l)}return ""}function Lh(e,t,r,n){return t||(r?{motionName:"".concat(e,"-").concat(r)}:n?{motionName:n}:null)}function na(e){return e.ownerDocument.defaultView}function bu(e){for(var t=[],r=e==null?void 0:e.parentElement,n=["hidden","scroll","auto"];r;){var i=na(r).getComputedStyle(r),o=i.overflowX,a=i.overflowY;(n.includes(o)||n.includes(a))&&t.push(r),r=r.parentElement;}return t}function ps(e){return Number.isNaN(e)?1:e}function gP(e,t){var r=j({},e);return (t||[]).forEach(function(n){if(!(n instanceof HTMLBodyElement)){var i=na(n).getComputedStyle(n),o=i.position;if(o!=="static"){var a=n.getBoundingClientRect(),s=n.offsetHeight,l=n.clientHeight,c=n.offsetWidth,u=n.clientWidth,d=ps(Math.round(a.width/c*1e3)/1e3),f=ps(Math.round(a.height/s*1e3)/1e3),g=(c-u)*d,v=(s-l)*f,m=a.x+a.width-g,p=a.y+a.height-v;r.left=Math.max(r.left,a.x),r.top=Math.max(r.top,a.y),r.right=Math.min(r.right,m),r.bottom=Math.min(r.bottom,p);}}}),r}function Dh(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return [e[0],e[1]]}function di(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 $n(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 mP(e,t,r,n,i,o,a){var s=h__namespace.useState({ready:!1,offsetX:0,offsetY:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[n]||{}}),l=G(s,2),c=l[0],u=l[1],d=h__namespace.useRef(0),f=h__namespace.useMemo(function(){return t?bu(t):[]},[t]),g=h__namespace.useRef({}),v=function(){g.current={};};e||v();var m=en(function(){if(t&&r&&e){let Xr=function(la,Ln){var ca=_.x+la,ua=_.y+Ln,da=ca+W,_l=ua+V,Ol=Math.max(ca,z.left),Pl=Math.max(ua,z.top),fa=Math.min(da,z.right),Tl=Math.min(_l,z.bottom);return Math.max(0,(fa-Ol)*(Tl-Pl))},Yr=function(){pt=_.y+We,Ot=pt+V,Or=_.x+tt,fr=Or+W;};var $=t,C=$.style.left,O=$.style.top,w=$.ownerDocument,S=na($),y=j(j({},i[n]),o);$.style.left="0",$.style.top="0";var T;if(Array.isArray(r))T={x:r[0],y:r[1],width:0,height:0};else {var P=r.getBoundingClientRect();T={x:P.x,y:P.y,width:P.width,height:P.height};}var _=$.getBoundingClientRect(),N=S.getComputedStyle($),A=N.width,E=N.height,x=w.documentElement,M=x.clientWidth,I=x.clientHeight,k=x.scrollWidth,L=x.scrollHeight,D=x.scrollTop,H=x.scrollLeft,V=_.height,W=_.width,B=T.height,re=T.width,z=y.htmlRegion==="scroll"?{left:-H,top:-D,right:k-H,bottom:L-D}:{left:0,top:0,right:M,bottom:I};z=gP(z,f),$.style.left=C,$.style.top=O;var le=ps(Math.round(W/parseFloat(A)*1e3)/1e3),ie=ps(Math.round(V/parseFloat(E)*1e3)/1e3);if(le===0||ie===0||as(r)&&!mv(r))return;var me=y.offset,ee=y.targetOffset,pe=me||[],xe=G(pe,2),De=xe[0],ve=De===void 0?0:De,$e=xe[1],Pe=$e===void 0?0:$e,He=ee||[],oe=G(He,2),Q=oe[0],ae=Q===void 0?0:Q,we=oe[1],gt=we===void 0?0:we;T.x+=ae,T.y+=gt;var nt=y.points||[],mt=G(nt,2),Ie=mt[0],Te=mt[1],Ue=Dh(Te),Ze=Dh(Ie),vt=di(T,Ue),_r=di(_,Ze),Re=j({},y),tt=vt.x-_r.x+ve,We=vt.y-_r.y+Pe,_t=Xr(tt,We),lt=di(T,["t","l"]),Vt=di(_,["t","l"]),Sn=di(T,["b","r"]),Ur=di(_,["b","r"]),ar=y.overflow||{},ce=ar.adjustX,se=ar.adjustY,Se=ar.shiftX,he=ar.shiftY,Be=function(Ln){return typeof Ln=="boolean"?Ln:Ln>=0},pt,Ot,Or,fr;Yr();var In=Be(se),Ut=Ze[0]===Ue[0];if(In&&Ze[0]==="t"&&(Ot>z.bottom||g.current.bt)){var Gr=We;Ut?Gr-=V-B:Gr=lt.y-Ur.y-Pe,Xr(tt,Gr)>=_t?(g.current.bt=!0,We=Gr,Re.points=[$n(Ze,0),$n(Ue,0)]):g.current.bt=!1;}if(In&&Ze[0]==="b"&&(pt<z.top||g.current.tb)){var Ft=We;Ut?Ft+=V-B:Ft=Sn.y-Vt.y-Pe,Xr(tt,Ft)>=_t?(g.current.tb=!0,We=Ft,Re.points=[$n(Ze,0),$n(Ue,0)]):g.current.tb=!1;}var Fn=Be(ce),Cn=Ze[1]===Ue[1];if(Fn&&Ze[1]==="l"&&(fr>z.right||g.current.rl)){var Pr=tt;Cn?Pr-=W-re:Pr=lt.x-Ur.x-ve,Xr(Pr,We)>=_t?(g.current.rl=!0,tt=Pr,Re.points=[$n(Ze,1),$n(Ue,1)]):g.current.rl=!1;}if(Fn&&Ze[1]==="r"&&(Or<z.left||g.current.lr)){var qr=tt;Cn?qr+=W-re:qr=Sn.x-Vt.x-ve,Xr(qr,We)>=_t?(g.current.lr=!0,tt=qr,Re.points=[$n(Ze,1),$n(Ue,1)]):g.current.lr=!1;}Yr();var Tr=Se===!0?0:Se;typeof Tr=="number"&&(Or<z.left&&(tt-=Or-z.left,T.x+re<z.left+Tr&&(tt+=T.x-z.left+re-Tr)),fr>z.right&&(tt-=fr-z.right,T.x>z.right-Tr&&(tt+=T.x-z.right+Tr)));var Me=he===!0?0:he;typeof Me=="number"&&(pt<z.top&&(We-=pt-z.top,T.y+B<z.top+Me&&(We+=T.y-z.top+B-Me)),Ot>z.bottom&&(We-=Ot-z.bottom,T.y>z.bottom-Me&&(We+=T.y-z.bottom+Me)));var be=_.x+tt,ue=be+W,Ge=_.y+We,je=Ge+V,hr=T.x,Gt=hr+re,qt=T.y,Ct=qt+B,ii=Math.max(be,hr),oi=Math.min(ue,Gt),Kr=(ii+oi)/2,Zi=Kr-be,$l=Math.max(Ge,qt),El=Math.min(je,Ct),xl=($l+El)/2,ai=xl-Ge;a==null||a(t,Re),u({ready:!0,offsetX:tt/le,offsetY:We/ie,arrowX:Zi/le,arrowY:ai/ie,scaleX:le,scaleY:ie,align:Re});}}),p=function(){d.current+=1;var C=d.current;Promise.resolve().then(function(){d.current===C&&m();});},b=function(){u(function(C){return j(j({},C),{},{ready:!1})});};return It(b,[n]),It(function(){e||b();},[e]),[c.ready,c.offsetX,c.offsetY,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,p]}function vP(e,t,r,n){It(function(){if(e&&t&&r){let u=function(){n();};var i=t,o=r,a=bu(i),s=bu(o),l=na(o),c=new Set([l].concat(te(a),te(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 pP(e){var t=e.prefixCls,r=e.align,n=e.arrowX,i=n===void 0?0:n,o=e.arrowY,a=o===void 0?0:o,s=h__namespace.useRef();if(!r||!r.points)return null;var l={position:"absolute"};if(r.autoArrow!==!1){var c=r.points[0],u=r.points[1],d=c[0],f=c[1],g=u[0],v=u[1];d===g||!["t","b"].includes(d)?l.top=a:d==="t"?l.top=0:l.bottom=0,f===v||!["l","r"].includes(f)?l.left=i:f==="l"?l.left=0:l.right=0;}return h__namespace.createElement("div",{ref:s,className:"".concat(t,"-arrow"),style:l})}function bP(e){var t=e.prefixCls,r=e.open,n=e.zIndex,i=e.mask,o=e.motion;return i?React.createElement(ta,At({},o,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(a){var s=a.className;return React.createElement("div",{style:{zIndex:n},className:q("".concat(t,"-mask"),s)})}):null}var yP=h__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,f=e.arrow,g=e.align,v=e.arrowX,m=e.arrowY,p=e.motion,b=e.maskMotion,$=e.forceRender,C=e.getPopupContainer,O=e.autoDestroy,w=e.portal,S=e.zIndex,y=e.onMouseEnter,T=e.onMouseLeave,P=e.ready,_=e.offsetX,N=e.offsetY,A=e.onAlign,E=e.onPrepare,x=e.stretch,M=e.targetWidth,I=e.targetHeight,k=typeof r=="function"?r():r,L=l||c,D=(C==null?void 0:C.length)>0,H=h__namespace.useState(!C||!D),V=G(H,2),W=V[0],B=V[1];if(It(function(){!W&&D&&a&&B(!0);},[W,D,a]),!W)return null;var re=P||!l?{left:_,top:N}:{left:"-1000vw",top:"-1000vh"},z={};return x&&(x.includes("height")&&I?z.height=I:x.includes("minHeight")&&I&&(z.minHeight=I),x.includes("width")&&M?z.width=M:x.includes("minWidth")&&M&&(z.minWidth=M)),l||(z.pointerEvents="none"),h__namespace.createElement(w,{open:$||L,getContainer:C&&function(){return C(a)},autoDestroy:O},h__namespace.createElement(bP,{prefixCls:i,open:l,zIndex:S,mask:d,motion:b}),h__namespace.createElement(id,{onResize:A,disabled:!l},function(le){return h__namespace.createElement(ta,At({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:$,leavedClassName:"".concat(i,"-hidden")},p,{onAppearPrepare:E,onEnterPrepare:E,visible:l,onVisibleChanged:function(me){var ee;p==null||(ee=p.onVisibleChanged)===null||ee===void 0||ee.call(p,me),s(me);}}),function(ie,me){var ee=ie.className,pe=ie.style,xe=q(i,ee,n);return h__namespace.createElement("div",{ref:ti(le,t,me),className:xe,style:j(j(j(j({},re),z),pe),{},{boxSizing:"border-box",zIndex:S},o),onMouseEnter:y,onMouseLeave:T,onClick:u},f&&h__namespace.createElement(pP,{prefixCls:i,align:g,arrowX:v,arrowY:m}),k)})}))}),wP=h__namespace.forwardRef(function(e,t){var r=e.children,n=e.getTriggerDOMNode,i=Zo(r),o=h__namespace.useCallback(function(s){nd(t,n?n(s):s);},[n]),a=lm(o,r.ref);return i?h__namespace.cloneElement(r,{ref:a}):r}),SP=["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 CP(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:xv,t=h__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,f=r.defaultPopupVisible,g=r.onPopupVisibleChange,v=r.afterPopupVisibleChange,m=r.mouseEnterDelay,p=r.mouseLeaveDelay,b=p===void 0?.1:p,$=r.focusDelay,C=r.blurDelay,O=r.mask,w=r.maskClosable,S=w===void 0?!0:w,y=r.getPopupContainer,T=r.forceRender,P=r.autoDestroy,_=r.destroyPopupOnHide,N=r.popup,A=r.popupClassName,E=r.popupStyle,x=r.popupPlacement,M=r.builtinPlacements,I=M===void 0?{}:M,k=r.popupAlign,L=r.zIndex,D=r.stretch,H=r.getPopupClassNameFromAlign,V=r.alignPoint,W=r.onPopupClick,B=r.onPopupAlign,re=r.arrow,z=r.popupMotion,le=r.maskMotion,ie=r.popupTransitionName,me=r.popupAnimation,ee=r.maskTransitionName,pe=r.maskAnimation,xe=r.className,De=r.getTriggerDOMNode,ve=rr(r,SP),$e=P||_||!1,Pe=h__namespace.useState(!1),He=G(Pe,2),oe=He[0],Q=He[1];It(function(){Q(_v());},[]);var ae=h__namespace.useRef({}),we=h__namespace.useContext(Ih),gt=h__namespace.useMemo(function(){return {registerSubPopup:function(fe,Ne){ae.current[fe]=Ne,we==null||we.registerSubPopup(fe,Ne);}}},[we]),nt=qO(),mt=h__namespace.useState(null),Ie=G(mt,2),Te=Ie[0],Ue=Ie[1],Ze=en(function(Z){as(Z)&&Te!==Z&&Ue(Z),we==null||we.registerSubPopup(nt,Z);}),vt=h__namespace.useState(null),_r=G(vt,2),Re=_r[0],tt=_r[1],We=en(function(Z){as(Z)&&Re!==Z&&tt(Z);}),_t=h__namespace.Children.only(a),lt=(_t==null?void 0:_t.props)||{},Vt={},Sn=en(function(Z){var fe,Ne,qe=Re;return (qe==null?void 0:qe.contains(Z))||(qe==null||(fe=qe.getRootNode())===null||fe===void 0?void 0:fe.host)===Z||Z===qe||(Te==null?void 0:Te.contains(Z))||(Te==null||(Ne=Te.getRootNode())===null||Ne===void 0?void 0:Ne.host)===Z||Z===Te||Object.values(ae.current).some(function(Qe){return (Qe==null?void 0:Qe.contains(Z))||Z===Qe})}),Ur=Lh(o,z,me,ie),ar=Lh(o,le,pe,ee),ce=h__namespace.useState(f||!1),se=G(ce,2),Se=se[0],he=se[1],Be=d??Se,pt=en(function(Z){d===void 0&&he(Z);});It(function(){he(d||!1);},[d]);var Ot=h__namespace.useRef(Be);Ot.current=Be;var Or=en(function(Z){Be!==Z&&(pt(Z),g==null||g(Z));}),fr=h__namespace.useRef(),In=function(){clearTimeout(fr.current);},Ut=function(fe){var Ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;In(),Ne===0?Or(fe):fr.current=setTimeout(function(){Or(fe);},Ne*1e3);};h__namespace.useEffect(function(){return In},[]);var Gr=h__namespace.useState(!1),Ft=G(Gr,2),Fn=Ft[0],Cn=Ft[1],Pr=h__namespace.useRef(!0);It(function(){(!Pr.current||Be)&&Cn(!0),Pr.current=!0;},[Be]);var qr=h__namespace.useState(null),Tr=G(qr,2),Me=Tr[0],be=Tr[1],ue=h__namespace.useState([0,0]),Ge=G(ue,2),je=Ge[0],hr=Ge[1],Gt=function(fe){hr([fe.clientX,fe.clientY]);},qt=mP(Be,Te,V?je:Re,x,I,k,B),Ct=G(qt,9),ii=Ct[0],oi=Ct[1],Kr=Ct[2],Zi=Ct[3],$l=Ct[4],El=Ct[5],xl=Ct[6],ai=Ct[7],Xr=Ct[8],Yr=en(function(){Fn||Xr();});vP(Be,Re,Te,Yr),It(function(){Yr();},[je]),It(function(){Be&&!(I!=null&&I[x])&&Yr();},[JSON.stringify(k)]);var la=h__namespace.useMemo(function(){var Z=hP(I,o,ai,V);return q(Z,H==null?void 0:H(ai))},[ai,H,I,o,V]);h__namespace.useImperativeHandle(n,function(){return {forceAlign:Yr}});var Ln=function(fe){Cn(!1),Xr(),v==null||v(fe);},ca=function(){return new Promise(function(fe){be(function(){return fe});})};It(function(){Me&&(Xr(),Me(),be(null));},[Me]);var ua=h__namespace.useState(0),da=G(ua,2),_l=da[0],Ol=da[1],Pl=h__namespace.useState(0),fa=G(Pl,2),Tl=fa[0],$b=fa[1],Eb=function(fe,Ne){if(Yr(),D){var qe=Ne.getBoundingClientRect();Ol(qe.width),$b(qe.height);}},xb=dP(oe,l,c,u),Gd=G(xb,2),ha=Gd[0],ga=Gd[1],ma=function(fe,Ne,qe,Qe){Vt[fe]=function(pa){var si;Qe==null||Qe(pa),Ut(Ne,qe);for(var Ml=arguments.length,Zd=new Array(Ml>1?Ml-1:0),ba=1;ba<Ml;ba++)Zd[ba-1]=arguments[ba];(si=lt[fe])===null||si===void 0||si.call.apply(si,[lt,pa].concat(Zd));};},qd=ha.has("click"),va=ga.has("click")||ga.has("contextMenu");(qd||va)&&(Vt.onClick=function(Z){var fe;Ot.current&&va?Ut(!1):!Ot.current&&qd&&(Gt(Z),Ut(!0));for(var Ne=arguments.length,qe=new Array(Ne>1?Ne-1:0),Qe=1;Qe<Ne;Qe++)qe[Qe-1]=arguments[Qe];(fe=lt.onClick)===null||fe===void 0||fe.call.apply(fe,[lt,Z].concat(qe));}),h__namespace.useEffect(function(){if(va&&Te&&(!O||S)){var Z=function(pa){var si=pa.target;Ot.current&&!Sn(si)&&Ut(!1);},fe=na(Te),Ne=Re==null?void 0:Re.getRootNode();fe.addEventListener("click",Z);var qe=Ne&&Ne!==Re.ownerDocument;return qe&&Ne.addEventListener("click",Z),function(){fe.removeEventListener("click",Z),qe&&Ne.removeEventListener("click",Z);}}},[va,Re,Te,O,S]);var _b=ha.has("hover"),Ob=ga.has("hover"),Kd,Xd;_b&&(ma("onMouseEnter",!0,m,function(Z){Gt(Z);}),Kd=function(){Ut(!0,m);},V&&(Vt.onMouseMove=function(Z){var fe;(fe=lt.onMouseMove)===null||fe===void 0||fe.call(lt,Z);})),Ob&&(ma("onMouseLeave",!1,b),Xd=function(){Ut(!1,b);}),ha.has("focus")&&ma("onFocus",!0,$),ga.has("focus")&&ma("onBlur",!1,C),ha.has("contextMenu")&&(Vt.onContextMenu=function(Z){var fe;Gt(Z),Ut(!0),Z.preventDefault();for(var Ne=arguments.length,qe=new Array(Ne>1?Ne-1:0),Qe=1;Qe<Ne;Qe++)qe[Qe-1]=arguments[Qe];(fe=lt.onContextMenu)===null||fe===void 0||fe.call.apply(fe,[lt,Z].concat(qe));}),xe&&(Vt.className=q(lt.className,xe));var Rl=j(j({},lt),Vt),Yd={},Pb=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Pb.forEach(function(Z){ve[Z]&&(Yd[Z]=function(){for(var fe,Ne=arguments.length,qe=new Array(Ne),Qe=0;Qe<Ne;Qe++)qe[Qe]=arguments[Qe];(fe=Rl[Z])===null||fe===void 0||fe.call.apply(fe,[Rl].concat(qe)),ve[Z].apply(ve,qe);});});var Tb=h__namespace.cloneElement(_t,j(j({},Rl),Yd));return h__namespace.createElement(h__namespace.Fragment,null,h__namespace.createElement(id,{disabled:!Be,ref:We,onResize:Eb},h__namespace.createElement(wP,{getTriggerDOMNode:De},Tb)),h__namespace.createElement(Ih.Provider,{value:gt},h__namespace.createElement(yP,{portal:e,ref:Ze,prefixCls:o,popup:N,className:q(A,la),style:E,target:Re,onMouseEnter:Kd,onMouseLeave:Xd,zIndex:L,open:Be,keepDom:Fn,onClick:W,mask:O,motion:Ur,maskMotion:ar,onVisibleChanged:Ln,onPrepare:ca,forceRender:T,autoDestroy:$e,getPopupContainer:y,align:ai,arrow:re,ready:ii,offsetX:oi,offsetY:Kr,arrowX:Zi,arrowY:$l,onAlign:Yr,stretch:D,targetWidth:_l/El,targetHeight:Tl/xl})))});return t}const $P=CP(xv);function sc(e,t,r){return q({[`${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 EP=(e,t)=>t||e;var xP={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 _P=xP;var Ov=function(t,r){return h__namespace.createElement(cl,j(j({},t),{},{ref:r,icon:_P}))};Ov.displayName="DownOutlined";const OP=h__namespace.forwardRef(Ov);var fi={shiftX:64,adjustY:1},hi={adjustX:1,shiftY:!0},lr=[0,0],PP={left:{points:["cr","cl"],overflow:hi,offset:[-4,0],targetOffset:lr},right:{points:["cl","cr"],overflow:hi,offset:[4,0],targetOffset:lr},top:{points:["bc","tc"],overflow:fi,offset:[0,-4],targetOffset:lr},bottom:{points:["tc","bc"],overflow:fi,offset:[0,4],targetOffset:lr},topLeft:{points:["bl","tl"],overflow:fi,offset:[0,-4],targetOffset:lr},leftTop:{points:["tr","tl"],overflow:hi,offset:[-4,0],targetOffset:lr},topRight:{points:["br","tr"],overflow:fi,offset:[0,-4],targetOffset:lr},rightTop:{points:["tl","tr"],overflow:hi,offset:[4,0],targetOffset:lr},bottomRight:{points:["tr","br"],overflow:fi,offset:[0,4],targetOffset:lr},rightBottom:{points:["bl","br"],overflow:hi,offset:[4,0],targetOffset:lr},bottomLeft:{points:["tl","bl"],overflow:fi,offset:[0,4],targetOffset:lr},leftBottom:{points:["br","bl"],overflow:hi,offset:[-4,0],targetOffset:lr}};function Pv(e){var t=e.children,r=e.prefixCls,n=e.id,i=e.overlayInnerStyle,o=e.className,a=e.style;return h__namespace.createElement("div",{className:q("".concat(r,"-content"),o),style:a},h__namespace.createElement("div",{className:"".concat(r,"-inner"),id:n,role:"tooltip",style:i},typeof t=="function"?t():t))}var TP=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],RP=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,f=d===void 0?"rc-tooltip":d,g=t.children,v=t.onVisibleChange,m=t.afterVisibleChange,p=t.transitionName,b=t.animation,$=t.motion,C=t.placement,O=C===void 0?"right":C,w=t.align,S=w===void 0?{}:w,y=t.destroyTooltipOnHide,T=y===void 0?!1:y,P=t.defaultVisible,_=t.getTooltipContainer,N=t.overlayInnerStyle;t.arrowContent;var A=t.overlay,E=t.id,x=t.showArrow,M=x===void 0?!0:x,I=rr(t,TP),k=h.useRef(null);h.useImperativeHandle(r,function(){return k.current});var L=j({},I);"visible"in t&&(L.popupVisible=t.visible);var D=function(){return h__namespace.createElement(Pv,{key:"content",prefixCls:f,id:E,overlayInnerStyle:N},A)};return h__namespace.createElement($P,At({popupClassName:n,prefixCls:f,popup:D,action:o,builtinPlacements:PP,popupPlacement:O,ref:k,popupAlign:S,getPopupContainer:_,onPopupVisibleChange:v,afterPopupVisibleChange:m,popupTransitionName:p,popupAnimation:b,popupMotion:$,defaultPopupVisible:P,autoDestroy:T,mouseLeaveDelay:c,popupStyle:u,mouseEnterDelay:s,arrow:M},L),g)};const MP=h.forwardRef(RP),Tv=8;function Rv(e){const t=Tv,{contentRadius:r,limitVerticalRadius:n}=e,i=r>12?r+2:12;return {dropdownArrowOffset:i,dropdownArrowOffsetVertical:n?t:i}}function ka(e,t){return e?t:{}}function AP(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:f,dropdownArrowOffset:g}=Rv({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"},Lx(n,i,o,s,a)),{"&:before":{background:s}})]},ka(!!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:g}},[`&-placement-topRight ${r}-arrow`]:{right:{_skip_check_:!0,value:g}}})),ka(!!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:g}},[`&-placement-bottomRight ${r}-arrow`]:{right:{_skip_check_:!0,value:g}}})),ka(!!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:f},[`&-placement-leftBottom ${r}-arrow`]:{bottom:f}})),ka(!!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:f},[`&-placement-rightBottom ${r}-arrow`]:{bottom:f}}))}}function NP(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 jh={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"]}},kP={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"]}},IP=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function FP(e){const{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:n,offset:i,borderRadius:o}=e,a=t/2,s={};return Object.keys(jh).forEach(l=>{const c=n&&kP[l]||jh[l],u=Object.assign(Object.assign({},c),{offset:[0,0]});switch(s[l]=u,IP.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=Rv({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=NP(l,d,t,r);}),s}const En=(e,t)=>new Mt(e).setAlpha(t).toRgbString(),gi=(e,t)=>new Mt(e).lighten(t).toHexString(),LP=e=>{const t=hn(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]}},DP=(e,t)=>{const r=e||"#000",n=t||"#fff";return {colorBgBase:r,colorTextBase:n,colorText:En(n,.85),colorTextSecondary:En(n,.65),colorTextTertiary:En(n,.45),colorTextQuaternary:En(n,.25),colorFill:En(n,.18),colorFillSecondary:En(n,.12),colorFillTertiary:En(n,.08),colorFillQuaternary:En(n,.04),colorBgElevated:gi(r,12),colorBgContainer:gi(r,8),colorBgLayout:gi(r,0),colorBgSpotlight:gi(r,26),colorBorder:gi(r,26),colorBorderSecondary:gi(r,19)}},jP=(e,t)=>{const r=Object.keys(dd).map(i=>{const o=hn(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??il(e);return Object.assign(Object.assign(Object.assign({},n),r),Bm(e,{generateColorPalettes:LP,generateNeutralColorPalettes:DP}))},zP=jP;function HP(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 WP=(e,t)=>{const r=t??il(e),n=r.fontSizeSM,i=r.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},r),HP(t??e)),Vm(n)),{controlHeight:i}),Wm(Object.assign(Object.assign({},r),{controlHeight:i})))},BP=WP;function VP(){const[e,t,r]=al();return {theme:e,token:t,hashId:r}}const yu={defaultConfig:hs,defaultSeed:hs.token,useToken:VP,defaultAlgorithm:il,darkAlgorithm:zP,compactAlgorithm:BP},UP=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({},Er(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:r,visibility:"visible","&-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,Tv)}},[`${t}-content`]:{position:"relative"}}),Km(e,(f,g)=>{let{darkColor:v}=g;return {[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:v},[`${t}-arrow`]:{"--antd-arrow-background-color":v}}}})),{"&-rtl":{direction:"rtl"}})},AP(zt(e,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:o,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},Mv=(e,t)=>yn("Tooltip",n=>{if(t===!1)return [];const{borderRadius:i,colorTextLightSolid:o,colorBgDefault:a,borderRadiusOuter:s}=n,l=zt(n,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:i,tooltipBg:a,tooltipRadiusOuter:s>4?4:s});return [UP(l),uP(n,"zoom-big-fast")]},n=>{let{zIndexPopupBase:i,colorBgSpotlight:o}=n;return {zIndexPopup:i+70,colorBgDefault:o}})(e),GP=fs.map(e=>`${e}-inverse`),qP=["success","processing","error","default","warning"];function Av(e){return (arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(te(GP),te(fs)).includes(e):fs.includes(e)}function KP(e){return qP.includes(e)}function Nv(e,t){const r=Av(t),n=q({[`${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 XP(e){const{prefixCls:t,className:r,placement:n="top",title:i,color:o,overlayInnerStyle:a}=e,{getPrefixCls:s}=h__namespace.useContext(st),l=s("tooltip",t),[c,u]=Mv(l,!0),d=Nv(l,o),f=Object.assign(Object.assign({},a),d.overlayStyle),g=d.arrowStyle;return c(h__namespace.createElement("div",{className:q(u,l,`${l}-pure`,`${l}-placement-${n}`,r,d.className),style:g},h__namespace.createElement("div",{className:`${l}-arrow`}),h__namespace.createElement(Pv,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:f}),i)))}var YP=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:ZP}=yu,QP=(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 JP(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}=QP(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=ji(e,{style:a,className:null});return h__namespace.createElement("span",{style:o,className:q(e.props.className,`${t}-disabled-compatible-wrapper`)},s)}return e}const kv=h__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:f,destroyTooltipOnHide:g,arrow:v=!0,title:m,overlay:p,builtinPlacements:b,arrowPointAtCenter:$=!1,autoAdjustOverflow:C=!0}=e,O=!!v,{token:w}=ZP(),{getPopupContainer:S,getPrefixCls:y,direction:T}=h__namespace.useContext(st),P=h__namespace.useRef(null),_=()=>{var Q;(Q=P.current)===null||Q===void 0||Q.forceAlign();};h__namespace.useImperativeHandle(t,()=>({forceAlign:_,forcePopupAlign:()=>{_();}}));const[N,A]=fl(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),E=!m&&!p&&m!==0,x=Q=>{var ae,we;A(E?!1:Q),E||((ae=e.onOpenChange)===null||ae===void 0||ae.call(e,Q),(we=e.onVisibleChange)===null||we===void 0||we.call(e,Q));},M=h__namespace.useMemo(()=>{var Q,ae;let we=$;return typeof v=="object"&&(we=(ae=(Q=v.pointAtCenter)!==null&&Q!==void 0?Q:v.arrowPointAtCenter)!==null&&ae!==void 0?ae:$),b||FP({arrowPointAtCenter:we,autoAdjustOverflow:C,arrowWidth:O?w.sizePopupArrow:0,borderRadius:w.borderRadius,offset:w.marginXXS})},[$,v,b,w]),I=(Q,ae)=>{const we=Object.keys(M).find(gt=>{var nt,mt;return M[gt].points[0]===((nt=ae.points)===null||nt===void 0?void 0:nt[0])&&M[gt].points[1]===((mt=ae.points)===null||mt===void 0?void 0:mt[1])});if(we){const gt=Q.getBoundingClientRect(),nt={top:"50%",left:"50%"};/top|Bottom/.test(we)?nt.top=`${gt.height-ae.offset[1]}px`:/Top|bottom/.test(we)&&(nt.top=`${-ae.offset[1]}px`),/left|Right/.test(we)?nt.left=`${gt.width-ae.offset[0]}px`:/right|Left/.test(we)&&(nt.left=`${-ae.offset[0]}px`),Q.style.transformOrigin=`${nt.left} ${nt.top}`;}},k=h__namespace.useMemo(()=>m===0?m:p||m||"",[p,m]),{getPopupContainer:L,placement:D="top",mouseEnterDelay:H=.1,mouseLeaveDelay:V=.1,overlayStyle:W,rootClassName:B}=e,re=YP(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),z=y("tooltip",i),le=y(),ie=e["data-popover-inject"];let me=N;!("open"in e)&&!("visible"in e)&&E&&(me=!1);const ee=JP(md(u)&&!hv(u)?u:h__namespace.createElement("span",null,u),z),pe=ee.props,xe=!pe.className||typeof pe.className=="string"?q(pe.className,{[o||`${z}-open`]:!0}):pe.className,[De,ve]=Mv(z,!ie),$e=Nv(z,l),Pe=Object.assign(Object.assign({},c),$e.overlayStyle),He=$e.arrowStyle,oe=q(s,{[`${z}-rtl`]:T==="rtl"},$e.className,B,ve);return De(h__namespace.createElement(MP,Object.assign({},re,{showArrow:O,placement:D,mouseEnterDelay:H,mouseLeaveDelay:V,prefixCls:z,overlayClassName:oe,overlayStyle:Object.assign(Object.assign({},He),W),getTooltipContainer:L||a||S,ref:P,builtinPlacements:M,overlay:k,visible:me,onVisibleChange:x,afterVisibleChange:d??f,onPopupAlign:I,overlayInnerStyle:Pe,arrowContent:h__namespace.createElement("span",{className:`${z}-arrow-content`}),motion:{motionName:jO(le,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!g}),me?ji(ee,{className:xe}):ee))});kv._InternalPanelDoNotUseOrYouWillBeFired=XP;const yd=kv,eT=()=>{const[e,t]=h__namespace.useState(!1);return h__namespace.useEffect(()=>{t(XO());},[]),e};function tT(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}=h__namespace.useContext(Iv);let f={};return d||(r==="vertical"?n<u&&(f={marginBottom:l/(a?2:1)}):f=Object.assign(Object.assign({},n<u&&{[i]:l/(a?2:1)}),s&&{paddingBottom:c})),o==null?null:h__namespace.createElement(h__namespace.Fragment,null,h__namespace.createElement("div",{className:t,style:f},o),n<u&&a&&h__namespace.createElement("span",{className:`${t}-split`,style:f},a))}var rT=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 Iv=h__namespace.createContext({latestIndex:0,horizontalSize:0,verticalSize:0,supportFlexGap:!1}),nT={small:8,middle:16,large:24};function iT(e){return typeof e=="string"?nT[e]:e||0}const oT=e=>{const{getPrefixCls:t,space:r,direction:n}=h__namespace.useContext(st),{size:i=(r==null?void 0:r.size)||"small",align:o,className:a,rootClassName:s,children:l,direction:c="horizontal",prefixCls:u,split:d,style:f,wrap:g=!1}=e,v=rT(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap"]),m=eT(),[p,b]=h__namespace.useMemo(()=>(Array.isArray(i)?i:[i,i]).map(x=>iT(x)),[i]),$=Ii(l,{keepEmpty:!0}),C=o===void 0&&c==="horizontal"?"center":o,O=t("space",u),[w,S]=pv(O),y=q(O,S,`${O}-${c}`,{[`${O}-rtl`]:n==="rtl",[`${O}-align-${C}`]:C},a,s),T=`${O}-item`,P=n==="rtl"?"marginLeft":"marginRight";let _=0;const N=$.map((x,M)=>{x!=null&&(_=M);const I=x&&x.key||`${T}-${M}`;return h__namespace.createElement(tT,{className:T,key:I,direction:c,index:M,marginDirection:P,split:d,wrap:g},x)}),A=h__namespace.useMemo(()=>({horizontalSize:p,verticalSize:b,latestIndex:_,supportFlexGap:m}),[p,b,_,m]);if($.length===0)return null;const E={};return g&&(E.flexWrap="wrap",m||(E.marginBottom=-b)),m&&(E.columnGap=p,E.rowGap=b),w(h__namespace.createElement("div",Object.assign({className:y,style:Object.assign(Object.assign({},E),f)},v),h__namespace.createElement(Iv.Provider,{value:A},N)))},Fv=oT;Fv.Compact=aO;const Lv=Fv,Dv=h__namespace.createContext(null),aT=Dv.Provider,jv=h__namespace.createContext(null),sT=jv.Provider;var lT=["prefixCls","className","style","checked","disabled","defaultChecked","type","onChange"],zv=h.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,f=d===void 0?"checkbox":d,g=e.onChange,v=rr(e,lT),m=h.useRef(null),p=fl(u,{value:s}),b=G(p,2),$=b[0],C=b[1];h.useImperativeHandle(t,function(){return {focus:function(){var y;(y=m.current)===null||y===void 0||y.focus();},blur:function(){var y;(y=m.current)===null||y===void 0||y.blur();},input:m.current}});var O=q(i,o,(r={},X(r,"".concat(i,"-checked"),$),X(r,"".concat(i,"-disabled"),l),r)),w=function(y){l||("checked"in e||C(y.target.checked),g==null||g({target:j(j({},e),{},{checked:y.target.checked}),stopPropagation:function(){y.stopPropagation();},preventDefault:function(){y.preventDefault();},nativeEvent:y.nativeEvent}));};return h__namespace.createElement("span",{className:O,style:a},h__namespace.createElement("input",At({},v,{className:"".concat(i,"-input"),ref:m,onChange:w,disabled:l,checked:!!$,type:f})),h__namespace.createElement("span",{className:"".concat(i,"-inner")}))});const cT=new Wt("antRadioEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),uT=e=>{const{componentCls:t,antCls:r}=e,n=`${t}-group`;return {[n]:Object.assign(Object.assign({},Er(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"}})}},dT=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:f,colorBgContainerDisabled:g,colorTextDisabled:v,paddingXS:m,radioDotDisabledColor:p,lineType:b,radioDotDisabledSize:$,wireframe:C,colorWhite:O}=e,w=`${t}-inner`;return {[`${t}-wrapper`]:Object.assign(Object.assign({},Er(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:cT,animationDuration:o,animationTimingFunction:s,animationFillMode:"both",content:'""'},[t]:Object.assign(Object.assign({},Er(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center"}),[`${t}-wrapper:hover &,
        &:hover ${w}`]:{borderColor:n},[`${t}-input:focus-visible + ${w}`]:Object.assign({},ol(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:C?n:O,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`]:{[w]:{borderColor:n,backgroundColor:C?c:n,"&::after":{transform:`scale(${f/i})`,opacity:1,transition:`all ${o} ${l}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[w]:{backgroundColor:g,borderColor:u,cursor:"not-allowed","&::after":{backgroundColor:p}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:v,cursor:"not-allowed"},[`&${t}-checked`]:{[w]:{"&::after":{transform:`scale(${$/i})`}}}},[`span${t} + *`]:{paddingInlineStart:m,paddingInlineEnd:m}})}},fT=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:f,controlHeightLG:g,controlHeightSM:v,paddingXS:m,borderRadius:p,borderRadiusSM:b,borderRadiusLG:$,radioCheckedColor:C,radioButtonCheckedBg:O,radioButtonHoverColor:w,radioButtonActiveColor:S,radioSolidCheckedColor:y,colorTextDisabled:T,colorBgContainerDisabled:P,radioDisabledButtonCheckedColor:_,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:p,borderEndStartRadius:p},"&:last-child":{borderStartEndRadius:p,borderEndEndRadius:p},"&:first-child:last-child":{borderRadius:p},[`${n}-group-large &`]:{height:g,fontSize:f,lineHeight:`${g-i*2}px`,"&:first-child":{borderStartStartRadius:$,borderEndStartRadius:$},"&:last-child":{borderStartEndRadius:$,borderEndEndRadius:$}},[`${n}-group-small &`]:{height:v,paddingInline:m-i,paddingBlock:0,lineHeight:`${v-i*2}px`,"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},"&:hover":{position:"relative",color:C},"&:has(:focus-visible)":Object.assign({},ol(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:C,background:O,borderColor:C,"&::before":{backgroundColor:C},"&:first-child":{borderColor:C},"&:hover":{color:w,borderColor:w,"&::before":{backgroundColor:w}},"&:active":{color:S,borderColor:S,"&::before":{backgroundColor:S}}},[`${n}-group-solid &-checked:not(${n}-button-wrapper-disabled)`]:{color:y,background:C,borderColor:C,"&:hover":{color:y,background:w,borderColor:w},"&:active":{color:y,background:S,borderColor:S}},"&-disabled":{color:T,backgroundColor:P,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:T,backgroundColor:P,borderColor:a}},[`&-disabled${n}-button-wrapper-checked`]:{color:_,backgroundColor:N,borderColor:a,boxShadow:"none"}}}},Hv=yn("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:f,controlOutlineWidth:g,colorTextLightSolid:v,wireframe:m}=e,p=`0 0 0 ${g}px ${s}`,b=p,$=a,C=4,O=$-C*2,w=m?O:$-(C+r)*2,S=d,y=u,T=l,P=c,_=t-r,E=zt(e,{radioFocusShadow:p,radioButtonFocusShadow:b,radioSize:$,radioDotSize:w,radioDotDisabledSize:O,radioCheckedColor:S,radioDotDisabledColor:i,radioSolidCheckedColor:v,radioButtonBg:o,radioButtonCheckedBg:o,radioButtonColor:y,radioButtonHoverColor:T,radioButtonActiveColor:P,radioButtonPaddingHorizontal:_,radioDisabledButtonCheckedBg:n,radioDisabledButtonCheckedColor:i,radioWrapperMarginRight:f});return [uT(E),dT(E),fT(E)]});var hT=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 gT=(e,t)=>{var r,n;const i=h__namespace.useContext(Dv),o=h__namespace.useContext(jv),{getPrefixCls:a,direction:s}=h__namespace.useContext(st),l=h__namespace.useRef(null),c=ti(t,l),{isFormItemInput:u}=h__namespace.useContext(Lo),d=P=>{var _,N;(_=e.onChange)===null||_===void 0||_.call(e,P),(N=i==null?void 0:i.onChange)===null||N===void 0||N.call(i,P);},{prefixCls:f,className:g,rootClassName:v,children:m,style:p}=e,b=hT(e,["prefixCls","className","rootClassName","children","style"]),$=a("radio",f),C=((i==null?void 0:i.optionType)||o)==="button"?`${$}-button`:$,[O,w]=Hv($),S=Object.assign({},b),y=h__namespace.useContext(ea);i&&(S.name=i.name,S.onChange=d,S.checked=e.value===i.value,S.disabled=(r=S.disabled)!==null&&r!==void 0?r:i.disabled),S.disabled=(n=S.disabled)!==null&&n!==void 0?n:y;const T=q(`${C}-wrapper`,{[`${C}-wrapper-checked`]:S.checked,[`${C}-wrapper-disabled`]:S.disabled,[`${C}-wrapper-rtl`]:s==="rtl",[`${C}-wrapper-in-form-item`]:u},g,v,w);return O(h__namespace.createElement("label",{className:T,style:p,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},h__namespace.createElement(zv,Object.assign({},S,{type:"radio",prefixCls:C,ref:c})),m!==void 0?h__namespace.createElement("span",null,m):null))},mT=h__namespace.forwardRef(gT),bs=mT,vT=h__namespace.forwardRef((e,t)=>{const{getPrefixCls:r,direction:n}=h__namespace.useContext(st),i=h__namespace.useContext(qi),[o,a]=fl(e.defaultValue,{value:e.value}),s=E=>{const x=o,M=E.target.value;"value"in e||a(M);const{onChange:I}=e;I&&M!==x&&I(E);},{prefixCls:l,className:c,rootClassName:u,options:d,buttonStyle:f="outline",disabled:g,children:v,size:m,style:p,id:b,onMouseEnter:$,onMouseLeave:C,onFocus:O,onBlur:w}=e,S=r("radio",l),y=`${S}-group`,[T,P]=Hv(S);let _=v;d&&d.length>0&&(_=d.map(E=>typeof E=="string"||typeof E=="number"?h__namespace.createElement(bs,{key:E.toString(),prefixCls:S,disabled:g,value:E,checked:o===E},E):h__namespace.createElement(bs,{key:`radio-group-value-options-${E.value}`,prefixCls:S,disabled:E.disabled||g,value:E.value,checked:o===E.value,style:E.style},E.label)));const N=m||i,A=q(y,`${y}-${f}`,{[`${y}-${N}`]:N,[`${y}-rtl`]:n==="rtl"},c,u,P);return T(h__namespace.createElement("div",Object.assign({},N_(e),{className:A,style:p,onMouseEnter:$,onMouseLeave:C,onFocus:O,onBlur:w,id:b,ref:t}),h__namespace.createElement(aT,{value:{onChange:s,value:o,disabled:e.disabled,name:e.name,optionType:e.optionType}},_)))}),pT=h__namespace.memo(vT);var bT=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 yT=(e,t)=>{const{getPrefixCls:r}=h__namespace.useContext(st),{prefixCls:n}=e,i=bT(e,["prefixCls"]),o=r("radio",n);return h__namespace.createElement(sT,{value:"button"},h__namespace.createElement(bs,Object.assign({prefixCls:o},i,{type:"radio",ref:t})))},wT=h__namespace.forwardRef(yT),hl=bs;hl.Button=wT;hl.Group=pT;hl.__ANT_RADIO=!0;const lc=hl,Wv=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),gl=e=>({borderColor:e.inputBorderHoverColor,borderInlineEndWidth:e.lineWidth}),ys=e=>({borderColor:e.inputBorderHoverColor,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),Bv=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},gl(zt(e,{inputBorderHoverColor:e.colorBorder})))}),Vv=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}},Uv=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),Gv=(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({},ys(zt(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({},ys(zt(e,{inputBorderActiveColor:i,inputBorderHoverColor:i,controlOutline:a}))),[`${r}-prefix, ${r}-suffix`]:{color:i}}}},qv=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}`},Wv(e.colorTextPlaceholder)),{"&:hover":Object.assign({},gl(e)),"&:focus, &-focused":Object.assign({},ys(e)),"&-disabled, &[disabled]":Object.assign({},Bv(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({},Vv(e)),"&-sm":Object.assign({},Uv(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),ST=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({},Vv(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},Uv(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"},Dx()),{[`${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 CT(e){return zt(e,{inputAffixPadding:e.paddingXXS,inputPaddingVertical:Math.max(Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,3),inputPaddingVerticalLG:Math.ceil((e.controlHeightLG-e.fontSizeLG*e.lineHeightLG)/2*10)/10-e.lineWidth,inputPaddingVerticalSM:Math.max(Math.round((e.controlHeightSM-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,0),inputPaddingHorizontal:e.paddingSM-e.lineWidth,inputPaddingHorizontalSM:e.paddingXS-e.lineWidth,inputPaddingHorizontalLG:e.controlPaddingHorizontal-e.lineWidth,inputBorderHoverColor:e.colorPrimaryHover,inputBorderActiveColor:e.colorPrimaryHover})}const $T=new Wt("antCheckboxEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),ET=e=>{const{checkboxCls:t}=e,r=`${t}-wrapper`;return [{[`${t}-group`]:Object.assign(Object.assign({},Er(e)),{display:"inline-flex"}),[r]:Object.assign(Object.assign({},Er(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${r}`]:{marginInlineStart:e.marginXS},[`&${r}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},Er(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({},ol(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:$T,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 xT(e,t){const r=zt(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return [ET(r)]}const Kv=yn("Checkbox",(e,t)=>{let{prefixCls:r}=t;return [xT(r,e)]});var _T=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 Xv=h__namespace.createContext(null),OT=(e,t)=>{var{defaultValue:r,children:n,options:i=[],prefixCls:o,className:a,rootClassName:s,style:l,onChange:c}=e,u=_T(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]);const{getPrefixCls:d,direction:f}=h__namespace.useContext(st),[g,v]=h__namespace.useState(u.value||r||[]),[m,p]=h__namespace.useState([]);h__namespace.useEffect(()=>{"value"in u&&v(u.value||[]);},[u.value]);const b=()=>i.map(A=>typeof A=="string"||typeof A=="number"?{label:A,value:A}:A),$=A=>{p(E=>E.filter(x=>x!==A));},C=A=>{p(E=>[].concat(te(E),[A]));},O=A=>{const E=g.indexOf(A.value),x=te(g);E===-1?x.push(A.value):x.splice(E,1),"value"in u||v(x);const M=b();c==null||c(x.filter(I=>m.includes(I)).sort((I,k)=>{const L=M.findIndex(H=>H.value===I),D=M.findIndex(H=>H.value===k);return L-D}));},w=d("checkbox",o),S=`${w}-group`,[y,T]=Kv(w),P=mm(u,["value","disabled"]);i&&i.length>0&&(n=b().map(A=>h__namespace.createElement(Yv,{prefixCls:w,key:A.value.toString(),disabled:"disabled"in A?A.disabled:u.disabled,value:A.value,checked:g.includes(A.value),onChange:A.onChange,className:`${S}-item`,style:A.style},A.label)));const _={toggleOption:O,value:g,disabled:u.disabled,name:u.name,registerValue:C,cancelValue:$},N=q(S,{[`${S}-rtl`]:f==="rtl"},a,s,T);return y(h__namespace.createElement("div",Object.assign({className:N,style:l},P,{ref:t}),h__namespace.createElement(Xv.Provider,{value:_},n)))},PT=h__namespace.forwardRef(OT),TT=h__namespace.memo(PT);var RT=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 MT=(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:f}=e,g=RT(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]);const{getPrefixCls:v,direction:m}=h__namespace.useContext(st),p=h__namespace.useContext(Xv),{isFormItemInput:b}=h__namespace.useContext(Lo),$=h__namespace.useContext(ea),C=(r=(p==null?void 0:p.disabled)||f)!==null&&r!==void 0?r:$,O=h__namespace.useRef(g.value);h__namespace.useEffect(()=>{p==null||p.registerValue(g.value);},[]),h__namespace.useEffect(()=>{if(!d)return g.value!==O.current&&(p==null||p.cancelValue(O.current),p==null||p.registerValue(g.value),O.current=g.value),()=>p==null?void 0:p.cancelValue(g.value)},[g.value]);const w=v("checkbox",n),[S,y]=Kv(w),T=Object.assign({},g);p&&!d&&(T.onChange=function(){g.onChange&&g.onChange.apply(g,arguments),p.toggleOption&&p.toggleOption({label:a,value:g.value});},T.name=p.name,T.checked=p.value.includes(g.value));const P=q({[`${w}-wrapper`]:!0,[`${w}-rtl`]:m==="rtl",[`${w}-wrapper-checked`]:T.checked,[`${w}-wrapper-disabled`]:C,[`${w}-wrapper-in-form-item`]:b},i,o,y),_=q({[`${w}-indeterminate`]:s},y),N=s?"mixed":void 0;return S(h__namespace.createElement("label",{className:P,style:l,onMouseEnter:c,onMouseLeave:u},h__namespace.createElement(zv,Object.assign({"aria-checked":N},T,{prefixCls:w,className:_,disabled:C,ref:t})),a!==void 0&&h__namespace.createElement("span",null,a)))},AT=h__namespace.forwardRef(MT),Yv=AT,wd=Yv;wd.Group=TT;wd.__ANT_CHECKBOX=!0;const NT=wd;var kT={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 IT=kT;var Zv=function(t,r){return h__namespace.createElement(cl,j(j({},t),{},{ref:r,icon:IT}))};Zv.displayName="UpOutlined";const FT=h__namespace.forwardRef(Zv);function wu(){return typeof BigInt=="function"}function Yn(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 Sd(e){var t=String(e);return !Number.isNaN(Number(t))&&t.includes("e")}function Do(e){var t=String(e);if(Sd(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(".")&&Cd(t)?t.length-t.indexOf(".")-1:0}function ml(e){var t=String(e);if(Sd(e)){if(e>Number.MAX_SAFE_INTEGER)return String(wu()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(wu()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(Do(t));}return Yn(t).fullStr}function Cd(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 Qv(e){return !e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}var LT=function(){function e(t){if(ur(this,e),X(this,"origin",""),X(this,"number",void 0),X(this,"empty",void 0),Qv(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t);}return dr(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(Do(this.number),Do(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()?"":ml(this.number):this.origin}}]),e}(),DT=function(){function e(t){if(ur(this,e),X(this,"origin",""),X(this,"negative",void 0),X(this,"integer",void 0),X(this,"decimal",void 0),X(this,"decimalLen",void 0),X(this,"empty",void 0),X(this,"nan",void 0),Qv(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var r=t;if(Sd(r)&&(r=Number(r)),r=typeof r=="string"?r:ml(r),Cd(r)){var n=Yn(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 dr(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=Yn(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()?"":Yn("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}();function mr(e){return wu()?new DT(e):new LT(e)}function Wa(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return "";var i=Yn(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=mr(e).add("".concat(o,"0.").concat("0".repeat(r)).concat(10-u));return Wa(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 jT=function(){var t=h.useState(!1),r=G(t,2),n=r[0],i=r[1];return h.useLayoutEffect(function(){i(_v());},[]),n},zT=200,HT=600;function WT(e){var t=e.prefixCls,r=e.upNode,n=e.downNode,i=e.upDisabled,o=e.downDisabled,a=e.onStep,s=h__namespace.useRef(),l=h__namespace.useRef();l.current=a;var c=function(b,$){b.preventDefault(),l.current($);function C(){l.current($),s.current=setTimeout(C,zT);}s.current=setTimeout(C,HT);},u=function(){clearTimeout(s.current);};h__namespace.useEffect(function(){return u},[]);var d=jT();if(d)return null;var f="".concat(t,"-handler"),g=q(f,"".concat(f,"-up"),X({},"".concat(f,"-up-disabled"),i)),v=q(f,"".concat(f,"-down"),X({},"".concat(f,"-down-disabled"),o)),m={unselectable:"on",role:"button",onMouseUp:u,onMouseLeave:u};return h__namespace.createElement("div",{className:"".concat(f,"-wrap")},h__namespace.createElement("span",At({},m,{onMouseDown:function(b){c(b,!0);},"aria-label":"Increase Value","aria-disabled":i,className:g}),r||h__namespace.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),h__namespace.createElement("span",At({},m,{onMouseDown:function(b){c(b,!1);},"aria-label":"Decrease Value","aria-disabled":o,className:v}),n||h__namespace.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function zh(e){var t=typeof e=="number"?ml(e):Yn(e).fullStr,r=t.includes(".");return r?Yn(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}function BT(e,t){var r=h.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],f=o.indexOf(d,c-1);f!==-1&&(u=f+1);}e.setSelectionRange(u,u);}catch(g){$r(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(g.message));}}return [n,i]}const VT=function(){var e=h.useRef(0),t=function(){gn.cancel(e.current);};return h.useEffect(function(){return t},[]),function(r){t(),e.current=gn(function(){r();});}};var UT=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],Hh=function(t,r){return t||r.isEmpty()?r.toString():r.toNumber()},Wh=function(t){var r=mr(t);return r.isInvalidate()?null:r},Jv=h__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,f=e.value,g=e.disabled,v=e.readOnly,m=e.upHandler,p=e.downHandler,b=e.keyboard,$=e.controls,C=$===void 0?!0:$,O=e.stringMode,w=e.parser,S=e.formatter,y=e.precision,T=e.decimalSeparator,P=e.onChange,_=e.onInput,N=e.onPressEnter,A=e.onStep,E=rr(e,UT),x="".concat(i,"-input"),M=h__namespace.useRef(null),I=h__namespace.useState(!1),k=G(I,2),L=k[0],D=k[1],H=h__namespace.useRef(!1),V=h__namespace.useRef(!1),W=h__namespace.useRef(!1),B=h__namespace.useState(function(){return mr(f??d)}),re=G(B,2),z=re[0],le=re[1];function ie(ce){f===void 0&&le(ce);}var me=h__namespace.useCallback(function(ce,se){if(!se)return y>=0?y:Math.max(Do(ce),Do(u))},[y,u]),ee=h__namespace.useCallback(function(ce){var se=String(ce);if(w)return w(se);var Se=se;return T&&(Se=Se.replace(T,".")),Se.replace(/[^\w.-]+/g,"")},[w,T]),pe=h__namespace.useRef(""),xe=h__namespace.useCallback(function(ce,se){if(S)return S(ce,{userTyping:se,input:String(pe.current)});var Se=typeof ce=="number"?ml(ce):ce;if(!se){var he=me(Se,se);if(Cd(Se)&&(T||he>=0)){var Be=T||".";Se=Wa(Se,Be,he);}}return Se},[S,me,T]),De=h__namespace.useState(function(){var ce=d??f;return z.isInvalidate()&&["string","number"].includes(ze(ce))?Number.isNaN(ce)?"":ce:xe(z.toString(),!1)}),ve=G(De,2),$e=ve[0],Pe=ve[1];pe.current=$e;function He(ce,se){Pe(xe(ce.isInvalidate()?ce.toString(!1):ce.toString(!se),se));}var oe=h__namespace.useMemo(function(){return Wh(l)},[l,y]),Q=h__namespace.useMemo(function(){return Wh(s)},[s,y]),ae=h__namespace.useMemo(function(){return !oe||!z||z.isInvalidate()?!1:oe.lessEquals(z)},[oe,z]),we=h__namespace.useMemo(function(){return !Q||!z||z.isInvalidate()?!1:z.lessEquals(Q)},[Q,z]),gt=BT(M.current,L),nt=G(gt,2),mt=nt[0],Ie=nt[1],Te=function(se){return oe&&!se.lessEquals(oe)?oe:Q&&!Q.lessEquals(se)?Q:null},Ue=function(se){return !Te(se)},Ze=function(se,Se){var he=se,Be=Ue(he)||he.isEmpty();if(!he.isEmpty()&&!Se&&(he=Te(he)||he,Be=!0),!v&&!g&&Be){var pt=he.toString(),Ot=me(pt,Se);return Ot>=0&&(he=mr(Wa(pt,".",Ot)),Ue(he)||(he=mr(Wa(pt,".",Ot,!0)))),he.equals(z)||(ie(he),P==null||P(he.isEmpty()?null:Hh(O,he)),f===void 0&&He(he,Se)),he}return z},vt=VT(),_r=function ce(se){if(mt(),Pe(se),!V.current){var Se=ee(se),he=mr(Se);he.isNaN()||Ze(he,!0);}_==null||_(se),vt(function(){var Be=se;w||(Be=se.replace(/。/g,".")),Be!==se&&ce(Be);});},Re=function(){V.current=!0;},tt=function(){V.current=!1,_r(M.current.value);},We=function(se){_r(se.target.value);},_t=function(se){var Se;if(!(se&&ae||!se&&we)){H.current=!1;var he=mr(W.current?zh(u):u);se||(he=he.negate());var Be=(z||mr(0)).add(he.toString()),pt=Ze(Be,!1);A==null||A(Hh(O,pt),{offset:W.current?zh(u):u,type:se?"up":"down"}),(Se=M.current)===null||Se===void 0||Se.focus();}},lt=function(se){var Se=mr(ee($e)),he=Se;Se.isNaN()?he=z:he=Ze(Se,se),f!==void 0?He(z,!1):he.isNaN()||He(he,!1);},Vt=function(){H.current=!0;},Sn=function(se){var Se=se.which,he=se.shiftKey;H.current=!0,he?W.current=!0:W.current=!1,Se===Y.ENTER&&(V.current||(H.current=!1),lt(!1),N==null||N(se)),b!==!1&&!V.current&&[Y.UP,Y.DOWN].includes(Se)&&(_t(Y.UP===Se),se.preventDefault());},Ur=function(){H.current=!1,W.current=!1;},ar=function(){lt(!1),D(!1),H.current=!1;};return wo(function(){z.isInvalidate()||He(z,!1);},[y]),wo(function(){var ce=mr(f);le(ce);var se=mr(ee($e));(!ce.equals(se)||!H.current||S)&&He(ce,H.current);},[f]),wo(function(){S&&Ie();},[$e]),h__namespace.createElement("div",{className:q(i,o,(r={},X(r,"".concat(i,"-focused"),L),X(r,"".concat(i,"-disabled"),g),X(r,"".concat(i,"-readonly"),v),X(r,"".concat(i,"-not-a-number"),z.isNaN()),X(r,"".concat(i,"-out-of-range"),!z.isInvalidate()&&!Ue(z)),r)),style:a,onFocus:function(){D(!0);},onBlur:ar,onKeyDown:Sn,onKeyUp:Ur,onCompositionStart:Re,onCompositionEnd:tt,onBeforeInput:Vt},C&&h__namespace.createElement(WT,{prefixCls:i,upNode:m,downNode:p,upDisabled:ae,downDisabled:we,onStep:_t}),h__namespace.createElement("div",{className:"".concat(x,"-wrap")},h__namespace.createElement("input",At({autoComplete:"off",role:"spinbutton","aria-valuemin":s,"aria-valuemax":l,"aria-valuenow":z.isInvalidate()?null:z.toString(),step:u},E,{ref:ti(M,t),className:x,value:$e,onChange:We,disabled:g,readOnly:v}))))});Jv.displayName="InputNumber";const GT=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:f,colorPrimary:g,controlHeight:v,inputPaddingHorizontal:m,colorBgContainer:p,colorTextDisabled:b,borderRadiusSM:$,borderRadiusLG:C,controlWidth:O,handleVisible:w}=e;return [{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Er(e)),qv(e)),Gv(e,t)),{display:"inline-block",width:O,margin:0,padding:0,border:`${r}px ${n} ${i}`,borderRadius:o,"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,borderRadius:C,[`input${t}-input`]:{height:s-2*r}},"&-sm":{padding:0,borderRadius:$,[`input${t}-input`]:{height:l-2*r,padding:`0 ${u}px`}},"&:hover":Object.assign({},gl(e)),"&-focused":Object.assign({},ys(e)),"&-disabled":Object.assign(Object.assign({},Bv(e)),{[`${t}-input`]:{cursor:"not-allowed"}}),"&-out-of-range":{input:{color:c}},"&-group":Object.assign(Object.assign(Object.assign({},Er(e)),ST(e)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:C}},"&-sm":{[`${t}-group-addon`]:{borderRadius:$}}}}),[t]:{"&-input":Object.assign(Object.assign({width:"100%",height:v-2*r,padding:`0 ${m}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${f} linear`,appearance:"textfield",color:e.colorText,fontSize:"inherit",verticalAlign:"top"},Wv(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:{[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",background:p,borderStartStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o,borderEndStartRadius:0,opacity:w===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${f} linear ${f}`,[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
              ${t}-handler-up-inner,
              ${t}-handler-down-inner
            `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:d,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${r}px ${n} ${i}`,transition:`all ${f} linear`,"&:active":{background:e.colorFillAlter},"&:hover":{height:"60%",[`
              ${t}-handler-up-inner,
              ${t}-handler-down-inner
            `]:{color:g}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},Gm()),{color:d,transition:`all ${f} 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}}}]},qT=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({},qv(e)),Gv(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({},gl(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}}})}},KT=yn("InputNumber",e=>{const t=CT(e);return [GT(t),qT(t),Sv(t)]},e=>({controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:"auto"}));var XT=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 ep=h__namespace.forwardRef((e,t)=>{const{getPrefixCls:r,direction:n}=h__namespace.useContext(st),i=h__namespace.useContext(qi),[o,a]=h__namespace.useState(!1),s=h__namespace.useRef(null);h__namespace.useImperativeHandle(t,()=>s.current);const{className:l,rootClassName:c,size:u,disabled:d,prefixCls:f,addonBefore:g,addonAfter:v,prefix:m,bordered:p=!0,readOnly:b,status:$,controls:C}=e,O=XT(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),w=r("input-number",f),[S,y]=KT(w),{compactSize:T,compactItemClassnames:P}=yv(w,n);let _=h__namespace.createElement(FT,{className:`${w}-handler-up-inner`}),N=h__namespace.createElement(OP,{className:`${w}-handler-down-inner`});const A=typeof C=="boolean"?C:void 0;typeof C=="object"&&(_=typeof C.upIcon>"u"?_:h__namespace.createElement("span",{className:`${w}-handler-up-inner`},C.upIcon),N=typeof C.downIcon>"u"?N:h__namespace.createElement("span",{className:`${w}-handler-down-inner`},C.downIcon));const{hasFeedback:E,status:x,isFormItemInput:M,feedbackIcon:I}=h__namespace.useContext(Lo),k=EP(x,$),L=T||u||i,D=m!=null||E,H=!!(g||v),V=h__namespace.useContext(ea),W=d??V,B=q({[`${w}-lg`]:L==="large",[`${w}-sm`]:L==="small",[`${w}-rtl`]:n==="rtl",[`${w}-borderless`]:!p,[`${w}-in-form-item`]:M},sc(w,k),P,y,l,!D&&!H&&c);let re=h__namespace.createElement(Jv,Object.assign({ref:s,disabled:W,className:B,upHandler:_,downHandler:N,prefixCls:w,readOnly:b,controls:A},O));if(D){const z=q(`${w}-affix-wrapper`,sc(`${w}-affix-wrapper`,k,E),{[`${w}-affix-wrapper-focused`]:o,[`${w}-affix-wrapper-disabled`]:e.disabled,[`${w}-affix-wrapper-sm`]:L==="small",[`${w}-affix-wrapper-lg`]:L==="large",[`${w}-affix-wrapper-rtl`]:n==="rtl",[`${w}-affix-wrapper-readonly`]:b,[`${w}-affix-wrapper-borderless`]:!p},!H&&l,!H&&c,y);re=h__namespace.createElement("div",{className:z,style:e.style,onMouseUp:()=>s.current.focus()},m&&h__namespace.createElement("span",{className:`${w}-prefix`},m),ji(re,{style:null,value:e.value,onFocus:le=>{var ie;a(!0),(ie=e.onFocus)===null||ie===void 0||ie.call(e,le);},onBlur:le=>{var ie;a(!1),(ie=e.onBlur)===null||ie===void 0||ie.call(e,le);}}),E&&h__namespace.createElement("span",{className:`${w}-suffix`},I));}if(H){const z=`${w}-group`,le=`${z}-addon`,ie=g?h__namespace.createElement("div",{className:le},g):null,me=v?h__namespace.createElement("div",{className:le},v):null,ee=q(`${w}-wrapper`,z,y,{[`${z}-rtl`]:n==="rtl"}),pe=q(`${w}-group-wrapper`,{[`${w}-group-wrapper-sm`]:L==="small",[`${w}-group-wrapper-lg`]:L==="large",[`${w}-group-wrapper-rtl`]:n==="rtl"},sc(`${w}-group-wrapper`,k,E),y,l,c);re=h__namespace.createElement("div",{className:pe,style:e.style},h__namespace.createElement("div",{className:ee},ie&&h__namespace.createElement(Eh,null,h__namespace.createElement(Ah,{status:!0,override:!0},ie)),ji(re,{style:null,disabled:W}),me&&h__namespace.createElement(Eh,null,h__namespace.createElement(Ah,{status:!0,override:!0},me))));}return S(re)}),tp=ep,YT=e=>h__namespace.createElement(Zm,{theme:{components:{InputNumber:{handleVisible:!0}}}},h__namespace.createElement(ep,Object.assign({},e)));tp._InternalPanelDoNotUseOrYouWillBeFired=YT;const Bh=tp;var ri=h__namespace.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0});function Su(e,t,r){return (e-t)/(r-t)}function $d(e,t,r,n){var i=Su(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 yi(e,t){return Array.isArray(e)?e[t]:e}var ZT=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"],QT=h__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,f=rr(e,ZT),g=h__namespace.useContext(ri),v=g.min,m=g.max,p=g.direction,b=g.disabled,$=g.keyboard,C=g.range,O=g.tabIndex,w=g.ariaLabelForHandle,S=g.ariaLabelledByForHandle,y=g.ariaValueTextFormatterForHandle,T="".concat(i,"-handle"),P=function(x){b||s(x,a);},_=function(x){if(!b&&$){var M=null;switch(x.which||x.keyCode){case Y.LEFT:M=p==="ltr"||p==="btt"?-1:1;break;case Y.RIGHT:M=p==="ltr"||p==="btt"?1:-1;break;case Y.UP:M=p!=="ttb"?1:-1;break;case Y.DOWN:M=p!=="ttb"?-1:1;break;case Y.HOME:M="min";break;case Y.END:M="max";break;case Y.PAGE_UP:M=2;break;case Y.PAGE_DOWN:M=-2;break}M!==null&&(x.preventDefault(),d(M,a));}},N=$d(p,o,v,m),A=h__namespace.createElement("div",At({ref:t,className:q(T,(r={},X(r,"".concat(T,"-").concat(a+1),C),X(r,"".concat(T,"-dragging"),u),r)),style:j(j({},N),l),onMouseDown:P,onTouchStart:P,onKeyDown:_,tabIndex:b?null:yi(O,a),role:"slider","aria-valuemin":v,"aria-valuemax":m,"aria-valuenow":o,"aria-disabled":b,"aria-label":yi(w,a),"aria-labelledby":yi(S,a),"aria-valuetext":(n=yi(y,a))===null||n===void 0?void 0:n(o)},f));return c&&(A=c(A,{index:a,prefixCls:i,value:o,dragging:u})),A}),JT=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],e2=h__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=rr(e,JT),u=h__namespace.useRef({});return h__namespace.useImperativeHandle(t,function(){return {focus:function(f){var g;(g=u.current[f])===null||g===void 0||g.focus();}}}),h__namespace.createElement(h__namespace.Fragment,null,a.map(function(d,f){return h__namespace.createElement(QT,At({ref:function(v){v?u.current[f]=v:delete u.current[f];},dragging:l===f,prefixCls:r,style:yi(n,f),key:f,value:d,valueIndex:f,onStartMove:i,onOffsetChange:o,render:s},c))}))});function Vh(e){var t="touches"in e?e.touches[0]:e;return {pageX:t.pageX,pageY:t.pageY}}function t2(e,t,r,n,i,o,a,s,l){var c=h__namespace.useState(null),u=G(c,2),d=u[0],f=u[1],g=h__namespace.useState(-1),v=G(g,2),m=v[0],p=v[1],b=h__namespace.useState(r),$=G(b,2),C=$[0],O=$[1],w=h__namespace.useState(r),S=G(w,2),y=S[0],T=S[1],P=h__namespace.useRef(null),_=h__namespace.useRef(null);h__namespace.useEffect(function(){m===-1&&O(r);},[r,m]),h__namespace.useEffect(function(){return function(){document.removeEventListener("mousemove",P.current),document.removeEventListener("mouseup",_.current),document.removeEventListener("touchmove",P.current),document.removeEventListener("touchend",_.current);}},[]);var N=function(k,L){C.some(function(D,H){return D!==k[H]})&&(L!==void 0&&f(L),O(k),a(k));},A=function(k,L){if(k===-1){var D=y[0],H=y[y.length-1],V=n-D,W=i-H,B=L*(i-n);B=Math.max(B,V),B=Math.min(B,W);var re=o(D+B);B=re-D;var z=y.map(function(ee){return ee+B});N(z);}else {var le=(i-n)*L,ie=te(C);ie[k]=y[k];var me=l(ie,le,k,"dist");N(me.values,me.value);}},E=h__namespace.useRef(A);E.current=A;var x=function(k,L){k.stopPropagation();var D=r[L];p(L),f(D),T(r);var H=Vh(k),V=H.pageX,W=H.pageY,B=function(le){le.preventDefault();var ie=Vh(le),me=ie.pageX,ee=ie.pageY,pe=me-V,xe=ee-W,De=e.current.getBoundingClientRect(),ve=De.width,$e=De.height,Pe;switch(t){case"btt":Pe=-xe/$e;break;case"ttb":Pe=xe/$e;break;case"rtl":Pe=-pe/ve;break;default:Pe=pe/ve;}E.current(L,Pe);},re=function z(le){le.preventDefault(),document.removeEventListener("mouseup",z),document.removeEventListener("mousemove",B),document.removeEventListener("touchend",z),document.removeEventListener("touchmove",B),P.current=null,_.current=null,p(-1),s();};document.addEventListener("mouseup",re),document.addEventListener("mousemove",B),document.addEventListener("touchend",re),document.addEventListener("touchmove",B),P.current=B,_.current=re;},M=h__namespace.useMemo(function(){var I=te(r).sort(function(L,D){return L-D}),k=te(C).sort(function(L,D){return L-D});return I.every(function(L,D){return L===k[D]})?C:r},[r,C]);return [m,d,M,x]}function r2(e){var t=e.prefixCls,r=e.style,n=e.start,i=e.end,o=e.index,a=e.onStartMove,s=h__namespace.useContext(ri),l=s.direction,c=s.min,u=s.max,d=s.disabled,f=s.range,g="".concat(t,"-track"),v=Su(n,c,u),m=Su(i,c,u),p=function(C){!d&&a&&a(C,-1);},b={};switch(l){case"rtl":b.right="".concat(v*100,"%"),b.width="".concat(m*100-v*100,"%");break;case"btt":b.bottom="".concat(v*100,"%"),b.height="".concat(m*100-v*100,"%");break;case"ttb":b.top="".concat(v*100,"%"),b.height="".concat(m*100-v*100,"%");break;default:b.left="".concat(v*100,"%"),b.width="".concat(m*100-v*100,"%");}return h__namespace.createElement("div",{className:q(g,f&&"".concat(g,"-").concat(o+1)),style:j(j({},b),r),onMouseDown:p,onTouchStart:p})}function n2(e){var t=e.prefixCls,r=e.style,n=e.values,i=e.startPoint,o=e.onStartMove,a=h__namespace.useContext(ri),s=a.included,l=a.range,c=a.min,u=h__namespace.useMemo(function(){if(!l){if(n.length===0)return [];var d=i??c,f=n[0];return [{start:Math.min(d,f),end:Math.max(d,f)}]}for(var g=[],v=0;v<n.length-1;v+=1)g.push({start:n[v],end:n[v+1]});return g},[n,l,i,c]);return s?u.map(function(d,f){var g=d.start,v=d.end;return h__namespace.createElement(r2,{index:f,prefixCls:t,style:yi(r,f),start:g,end:v,key:f,onStartMove:o})}):null}function i2(e){var t=e.prefixCls,r=e.style,n=e.children,i=e.value,o=e.onClick,a=h__namespace.useContext(ri),s=a.min,l=a.max,c=a.direction,u=a.includedStart,d=a.includedEnd,f=a.included,g="".concat(t,"-text"),v=$d(c,i,s,l);return h__namespace.createElement("span",{className:q(g,X({},"".concat(g,"-active"),f&&u<=i&&i<=d)),style:j(j({},v),r),onMouseDown:function(p){p.stopPropagation();},onClick:function(){o(i);}},n)}function o2(e){var t=e.prefixCls,r=e.marks,n=e.onClick,i="".concat(t,"-mark");return r.length?h__namespace.createElement("div",{className:i},r.map(function(o){var a=o.value,s=o.style,l=o.label;return h__namespace.createElement(i2,{key:a,prefixCls:i,style:s,value:a,onClick:n},l)})):null}function a2(e){var t=e.prefixCls,r=e.value,n=e.style,i=e.activeStyle,o=h__namespace.useContext(ri),a=o.min,s=o.max,l=o.direction,c=o.included,u=o.includedStart,d=o.includedEnd,f="".concat(t,"-dot"),g=c&&u<=r&&r<=d,v=j(j({},$d(l,r,a,s)),typeof n=="function"?n(r):n);return g&&(v=j(j({},v),typeof i=="function"?i(r):i)),h__namespace.createElement("span",{className:q(f,X({},"".concat(f,"-active"),g)),style:v})}function s2(e){var t=e.prefixCls,r=e.marks,n=e.dots,i=e.style,o=e.activeStyle,a=h__namespace.useContext(ri),s=a.min,l=a.max,c=a.step,u=h__namespace.useMemo(function(){var d=new Set;if(r.forEach(function(g){d.add(g.value);}),n&&c!==null)for(var f=s;f<=l;)d.add(f),f+=c;return Array.from(d)},[s,l,c,n,r]);return h__namespace.createElement("div",{className:"".concat(t,"-step")},u.map(function(d){return h__namespace.createElement(a2,{prefixCls:t,key:d,value:d,style:i,activeStyle:o})}))}function l2(e,t,r,n,i,o){var a=h__namespace.useCallback(function(g){var v=isFinite(g)?g:e;return v=Math.min(t,g),v=Math.max(e,v),v},[e,t]),s=h__namespace.useCallback(function(g){if(r!==null){var v=e+Math.round((a(g)-e)/r)*r,m=function(C){return (String(C).split(".")[1]||"").length},p=Math.max(m(r),m(t),m(e)),b=Number(v.toFixed(p));return e<=b&&b<=t?b:null}return null},[r,e,t,a]),l=h__namespace.useCallback(function(g){var v=a(g),m=n.map(function($){return $.value});r!==null&&m.push(s(g)),m.push(e,t);var p=m[0],b=t-e;return m.forEach(function($){var C=Math.abs(v-$);C<=b&&(p=$,b=C);}),p},[e,t,n,r,a,s]),c=function g(v,m,p){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof m=="number"){var $,C=v[p],O=C+m,w=[];n.forEach(function(_){w.push(_.value);}),w.push(e,t),w.push(s(C));var S=m>0?1:-1;b==="unit"?w.push(s(C+S*r)):w.push(s(O)),w=w.filter(function(_){return _!==null}).filter(function(_){return m<0?_<=C:_>=C}),b==="unit"&&(w=w.filter(function(_){return _!==C}));var y=b==="unit"?C:O;$=w[0];var T=Math.abs($-y);if(w.forEach(function(_){var N=Math.abs(_-y);N<T&&($=_,T=N);}),$===void 0)return m<0?e:t;if(b==="dist")return $;if(Math.abs(m)>1){var P=te(v);return P[p]=$,g(P,m-S,p,b)}return $}else {if(m==="min")return e;if(m==="max")return t}},u=function(v,m,p){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",$=v[p],C=c(v,m,p,b);return {value:C,changed:C!==$}},d=function(v){return o===null&&v===0||typeof o=="number"&&v<o},f=function(v,m,p){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",$=v.map(l),C=$[p],O=c($,m,p,b);if($[p]=O,i===!1){var w=o||0;p>0&&$[p-1]!==C&&($[p]=Math.max($[p],$[p-1]+w)),p<$.length-1&&$[p+1]!==C&&($[p]=Math.min($[p],$[p+1]-w));}else if(typeof o=="number"||o===null){for(var S=p+1;S<$.length;S+=1)for(var y=!0;d($[S]-$[S-1])&&y;){var T=u($,1,S);$[S]=T.value,y=T.changed;}for(var P=p;P>0;P-=1)for(var _=!0;d($[P]-$[P-1])&&_;){var N=u($,-1,P-1);$[P-1]=N.value,_=N.changed;}for(var A=$.length-1;A>0;A-=1)for(var E=!0;d($[A]-$[A-1])&&E;){var x=u($,-1,A-1);$[A-1]=x.value,E=x.changed;}for(var M=0;M<$.length-1;M+=1)for(var I=!0;d($[M+1]-$[M])&&I;){var k=u($,1,M+1);$[M+1]=k.value,I=k.changed;}}return {value:$[p],values:$}};return [l,f]}var c2=h__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,f=e.onFocus,g=e.onBlur,v=e.min,m=v===void 0?0:v,p=e.max,b=p===void 0?100:p,$=e.step,C=$===void 0?1:$,O=e.value,w=e.defaultValue,S=e.range,y=e.count,T=e.onChange,P=e.onBeforeChange,_=e.onAfterChange,N=e.allowCross,A=N===void 0?!0:N,E=e.pushable,x=E===void 0?!1:E,M=e.draggableTrack,I=e.reverse,k=e.vertical,L=e.included,D=L===void 0?!0:L,H=e.startPoint,V=e.trackStyle,W=e.handleStyle,B=e.railStyle,re=e.dotStyle,z=e.activeDotStyle,le=e.marks,ie=e.dots,me=e.handleRender,ee=e.tabIndex,pe=ee===void 0?0:ee,xe=e.ariaLabelForHandle,De=e.ariaLabelledByForHandle,ve=e.ariaValueTextFormatterForHandle,$e=h__namespace.useRef(),Pe=h__namespace.useRef(),He=h__namespace.useMemo(function(){return k?I?"ttb":"btt":I?"rtl":"ltr"},[I,k]),oe=h__namespace.useMemo(function(){return isFinite(m)?m:0},[m]),Q=h__namespace.useMemo(function(){return isFinite(b)?b:100},[b]),ae=h__namespace.useMemo(function(){return C!==null&&C<=0?1:C},[C]),we=h__namespace.useMemo(function(){return x===!0?ae:x>=0?x:!1},[x,ae]),gt=h__namespace.useMemo(function(){var Me=Object.keys(le||{});return Me.map(function(be){var ue=le[be],Ge={value:Number(be)};return ue&&ze(ue)==="object"&&!h__namespace.isValidElement(ue)&&("label"in ue||"style"in ue)?(Ge.style=ue.style,Ge.label=ue.label):Ge.label=ue,Ge}).filter(function(be){var ue=be.label;return ue||typeof ue=="number"}).sort(function(be,ue){return be.value-ue.value})},[le]),nt=l2(oe,Q,ae,gt,A,we),mt=G(nt,2),Ie=mt[0],Te=mt[1],Ue=fl(w,{value:O}),Ze=G(Ue,2),vt=Ze[0],_r=Ze[1],Re=h__namespace.useMemo(function(){var Me=vt==null?[]:Array.isArray(vt)?vt:[vt],be=G(Me,1),ue=be[0],Ge=ue===void 0?oe:ue,je=vt===null?[]:[Ge];if(S){if(je=te(Me),y||vt===void 0){var hr=y>=0?y+1:2;for(je=je.slice(0,hr);je.length<hr;){var Gt;je.push((Gt=je[je.length-1])!==null&&Gt!==void 0?Gt:oe);}}je.sort(function(qt,Ct){return qt-Ct});}return je.forEach(function(qt,Ct){je[Ct]=Ie(qt);}),je},[vt,S,oe,y,Ie]),tt=h__namespace.useRef(Re);tt.current=Re;var We=function(be){return S?be:be[0]},_t=function(be){var ue=te(be).sort(function(Ge,je){return Ge-je});T&&!pm(ue,tt.current,!0)&&T(We(ue)),_r(ue);},lt=function(be){if(!l){var ue=0,Ge=Q-oe;Re.forEach(function(hr,Gt){var qt=Math.abs(be-hr);qt<=Ge&&(Ge=qt,ue=Gt);});var je=te(Re);je[ue]=be,S&&!Re.length&&y===void 0&&je.push(be),P==null||P(We(je)),_t(je),_==null||_(We(je));}},Vt=function(be){be.preventDefault();var ue=Pe.current.getBoundingClientRect(),Ge=ue.width,je=ue.height,hr=ue.left,Gt=ue.top,qt=ue.bottom,Ct=ue.right,ii=be.clientX,oi=be.clientY,Kr;switch(He){case"btt":Kr=(qt-oi)/je;break;case"ttb":Kr=(oi-Gt)/je;break;case"rtl":Kr=(Ct-ii)/Ge;break;default:Kr=(ii-hr)/Ge;}var Zi=oe+Kr*(Q-oe);lt(Ie(Zi));},Sn=h__namespace.useState(null),Ur=G(Sn,2),ar=Ur[0],ce=Ur[1],se=function(be,ue){if(!l){var Ge=Te(Re,be,ue);P==null||P(We(Re)),_t(Ge.values),_==null||_(We(Ge.values)),ce(Ge.value);}};h__namespace.useEffect(function(){if(ar!==null){var Me=Re.indexOf(ar);Me>=0&&$e.current.focus(Me);}ce(null);},[ar]);var Se=h__namespace.useMemo(function(){return M&&ae===null?!1:M},[M,ae]),he=function(){_==null||_(We(tt.current));},Be=t2(Pe,He,Re,oe,Q,Ie,_t,he,Te),pt=G(Be,4),Ot=pt[0],Or=pt[1],fr=pt[2],In=pt[3],Ut=function(be,ue){In(be,ue),P==null||P(We(tt.current));},Gr=Ot!==-1;h__namespace.useEffect(function(){if(!Gr){var Me=Re.lastIndexOf(Or);$e.current.focus(Me);}},[Gr]);var Ft=h__namespace.useMemo(function(){return te(fr).sort(function(Me,be){return Me-be})},[fr]),Fn=h__namespace.useMemo(function(){return S?[Ft[0],Ft[Ft.length-1]]:[oe,Ft[0]]},[Ft,S,oe]),Cn=G(Fn,2),Pr=Cn[0],qr=Cn[1];h__namespace.useImperativeHandle(t,function(){return {focus:function(){$e.current.focus(0);},blur:function(){var be=document,ue=be.activeElement;Pe.current.contains(ue)&&(ue==null||ue.blur());}}}),h__namespace.useEffect(function(){d&&$e.current.focus(0);},[]);var Tr=h__namespace.useMemo(function(){return {min:oe,max:Q,direction:He,disabled:l,keyboard:u,step:ae,included:D,includedStart:Pr,includedEnd:qr,range:S,tabIndex:pe,ariaLabelForHandle:xe,ariaLabelledByForHandle:De,ariaValueTextFormatterForHandle:ve}},[oe,Q,He,l,u,ae,D,Pr,qr,S,pe,xe,De,ve]);return h__namespace.createElement(ri.Provider,{value:Tr},h__namespace.createElement("div",{ref:Pe,className:q(i,o,(r={},X(r,"".concat(i,"-disabled"),l),X(r,"".concat(i,"-vertical"),k),X(r,"".concat(i,"-horizontal"),!k),X(r,"".concat(i,"-with-marks"),gt.length),r)),style:a,onMouseDown:Vt},h__namespace.createElement("div",{className:"".concat(i,"-rail"),style:B}),h__namespace.createElement(n2,{prefixCls:i,style:V,values:Ft,startPoint:H,onStartMove:Se?Ut:null}),h__namespace.createElement(s2,{prefixCls:i,marks:gt,dots:ie,style:re,activeStyle:z}),h__namespace.createElement(e2,{ref:$e,prefixCls:i,style:W,values:fr,draggingIndex:Ot,onStartMove:Ut,onOffsetChange:se,onFocus:f,onBlur:g,handleRender:me}),h__namespace.createElement(o2,{prefixCls:i,marks:gt,onClick:lt})))});const u2=h__namespace.forwardRef((e,t)=>{const{open:r}=e,n=h.useRef(null),i=h.useRef(null);function o(){gn.cancel(i.current),i.current=null;}function a(){i.current=gn(()=>{var s;(s=n.current)===null||s===void 0||s.forceAlign(),i.current=null;});}return h__namespace.useEffect(()=>(r?a():o(),o),[r,e.title]),h__namespace.createElement(yd,Object.assign({ref:ti(n,t)},e))}),d2=u2,f2=e=>{const{componentCls:t,controlSize:r,dotSize:n,marginFull:i,marginPart:o,colorFillContentHover:a}=e;return {[t]:Object.assign(Object.assign({},Er(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 Mt(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString()}`,insetInlineStart:0,insetBlockStart:0},[`
          ${t}-mark-text,
          ${t}-dot
        `]:{cursor:"not-allowed !important"}}})}},rp=(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}}},h2=e=>{const{componentCls:t,marginPartWithMark:r}=e;return {[`${t}-horizontal`]:Object.assign(Object.assign({},rp(e,!0)),{[`&${t}-with-marks`]:{marginBottom:r}})}},g2=e=>{const{componentCls:t}=e;return {[`${t}-vertical`]:Object.assign(Object.assign({},rp(e,!1)),{height:"100%"})}},m2=yn("Slider",e=>{const t=zt(e,{marginPart:(e.controlHeight-e.controlSize)/2,marginFull:e.controlSize/2,marginPartWithMark:e.controlHeightLG-e.controlSize});return [f2(t),h2(t),g2(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 v2=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 p2=e=>typeof e=="number"?e.toString():"",b2=h__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=v2(e,["prefixCls","range","className","rootClassName","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement"]),{getPrefixCls:f,direction:g,getPopupContainer:v}=h__namespace.useContext(st),[m,p]=h__namespace.useState({}),b=(_,N)=>{p(A=>Object.assign(Object.assign({},A),{[_]:N}));},$=(_,N)=>_||(N?g==="rtl"?"left":"right":"top"),C=f("slider",r),[O,w]=m2(C),S=q(i,o,{[`${C}-rtl`]:g==="rtl"},w);g==="rtl"&&!d.vertical&&(d.reverse=!d.reverse);const[y,T]=h__namespace.useMemo(()=>n?typeof n=="object"?[!0,n.draggableTrack]:[!0,!1]:[!1],[n]),P=(_,N)=>{var A;const{index:E,dragging:x}=N,{tooltip:M={},vertical:I}=e,k=Object.assign({},M),{open:L,placement:D,getPopupContainer:H,prefixCls:V,formatter:W}=k;let B;W||W===null?B=W:s||s===null?B=s:B=p2;const re=B?m[E]||x:!1,z=(A=L??l)!==null&&A!==void 0?A:L===void 0&&re,le=Object.assign(Object.assign({},_.props),{onMouseEnter:()=>b(E,!0),onMouseLeave:()=>b(E,!1)}),ie=f("tooltip",V??a);return h__namespace.createElement(d2,{prefixCls:ie,title:B?B(N.value):"",open:z,placement:$(D??u,I),key:E,overlayClassName:`${C}-tooltip`,getPopupContainer:H||c||v},h__namespace.cloneElement(_,le))};return O(h__namespace.createElement(c2,Object.assign({},d,{step:d.step,range:y,draggableTrack:T,className:S,ref:t,prefixCls:C,handleRender:P})))}),y2=b2;function w2(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const Ia=(e,t,r)=>{const n=w2(r);return {[`${e.componentCls}-${t}`]:{color:e[`color${r}`],background:e[`color${n}Bg`],borderColor:e[`color${n}Border`]}}},S2=e=>Km(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"}}}}),C2=e=>{const{paddingXXS:t,lineWidth:r,tagPaddingHorizontal:n,componentCls:i}=e,o=n-r,a=t-r;return {[i]:Object.assign(Object.assign({},Er(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}}},np=yn("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=zt(e,{tagFontSize:a,tagLineHeight:s,tagDefaultBg:l,tagDefaultColor:c,tagIconSize:i-2*n,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary});return [C2(u),S2(u),Ia(u,"success","Success"),Ia(u,"processing","Info"),Ia(u,"error","Error"),Ia(u,"warning","Warning")]});var $2=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 E2=e=>{const{prefixCls:t,className:r,checked:n,onChange:i,onClick:o}=e,a=$2(e,["prefixCls","className","checked","onChange","onClick"]),{getPrefixCls:s}=h__namespace.useContext(st),l=g=>{i==null||i(!n),o==null||o(g);},c=s("tag",t),[u,d]=np(c),f=q(c,{[`${c}-checkable`]:!0,[`${c}-checkable-checked`]:n},r,d);return u(h__namespace.createElement("span",Object.assign({},a,{className:f,onClick:l})))},x2=E2;var _2=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 O2=(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:f=!0}=e,g=_2(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:v,direction:m}=h__namespace.useContext(st),[p,b]=h__namespace.useState(!0);h__namespace.useEffect(()=>{"visible"in g&&b(g.visible);},[g.visible]);const $=Av(l)||KP(l),C=Object.assign({backgroundColor:l&&!$?l:void 0},o),O=v("tag",r),[w,S]=np(O),y=q(O,{[`${O}-${l}`]:$,[`${O}-has-color`]:l&&!$,[`${O}-hidden`]:!p,[`${O}-rtl`]:m==="rtl",[`${O}-borderless`]:!f},n,i,S),T=x=>{x.stopPropagation(),c==null||c(x),!x.defaultPrevented&&b(!1);},P=h__namespace.useMemo(()=>d?u?h__namespace.createElement("span",{className:`${O}-close-icon`,onClick:T},u):h__namespace.createElement(v_,{className:`${O}-close-icon`,onClick:T}):null,[d,u,O,T]),_=typeof g.onClick=="function"||a&&a.type==="a",N=s||null,A=N?h__namespace.createElement(h__namespace.Fragment,null,N,h__namespace.createElement("span",null,a)):a,E=h__namespace.createElement("span",Object.assign({},g,{ref:t,className:y,style:C}),A,P);return w(_?h__namespace.createElement(vv,null,E):E)},ip=h__namespace.forwardRef(O2);ip.CheckableTag=x2;const ro=ip;function op({children:e}){const t=td();return F(Zm,{theme:{algorithm:t?yu.darkAlgorithm:yu.defaultAlgorithm,token:{colorPrimary:"#ff6699"}},children:e})}function P2(e){return F(yd,{...e,zIndex:11100,overlayStyle:{width:"max-content",maxWidth:"50vw",...e.overlayInnerStyle},children:e.children})}var zi={},T2={get exports(){return zi},set exports(e){zi=e;}};const R2=(e,t)=>Math.floor(Math.random()*(t-e+1)+e),Uh=()=>{const e=new Error("Delay aborted");return e.name="AbortError",e},Gh=({clearTimeout:e,setTimeout:t,willResolve:r})=>(n,{value:i,signal:o}={})=>{if(o&&o.aborted)return Promise.reject(Uh());let a,s,l;const c=e||clearTimeout,u=()=>{c(a),l(Uh());},d=()=>{o&&o.removeEventListener("abort",u);},f=new Promise((g,v)=>{s=()=>{d(),r?g(i):v(i);},l=v,a=(t||setTimeout)(s,n);});return o&&o.addEventListener("abort",u,{once:!0}),f.clear=()=>{c(a),a=null,s();},f},ap=e=>{const t=Gh({...e,willResolve:!0});return t.reject=Gh({...e,willResolve:!1}),t.range=(r,n,i)=>t(R2(r,n),i),t},Ed=ap();Ed.createWithTimers=ap;T2.exports=Ed;zi.default=Ed;const M2=10*1e3,A2=200;async function sp(e,t){let r=[];const n=()=>{r=Array.from(document.querySelectorAll(e));};n();const i=performance.now();for(;!r.length&&performance.now()-i<M2;)await zi(A2),n();if(!r.length){console.log(`[${Bi}]: tryAction timeout, selector = %s`,e);return}for(const o of r)await Promise.resolve(t(o));}function Ba(e){return sp(e,t=>t.remove())}function lp(){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 vl,qh=cg;vl=qh.createRoot,qh.hydrateRoot;var xd={},Bt={};Object.defineProperty(Bt,"__esModule",{value:!0});Bt.DEFAULT_ICON_CONFIGS=void 0;Bt.IconConverter=dp;Bt.IconProvider=void 0;Bt.IconWrapper=z2;var Va=N2(h);function cp(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return (cp=function(n){return n?r:t})(e)}function N2(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return {default:e};var r=cp(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 k2=["size","strokeWidth","strokeLinecap","strokeLinejoin","theme","fill","className","spin"];function Kh(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 Xh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Kh(Object(r),!0).forEach(function(n){I2(e,n,r[n]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n));});}return e}function I2(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function F2(e,t){if(e==null)return {};var r=L2(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 L2(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 up={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"};Bt.DEFAULT_ICON_CONFIGS=up;function D2(){return "icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)}function dp(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 fp=(0, Va.createContext)(up),j2=fp.Provider;Bt.IconProvider=j2;function z2(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,f=F2(n,k2),g=(0, Va.useContext)(fp),v=(0, Va.useMemo)(D2,[]),m=dp(v,{size:i,strokeWidth:o,strokeLinecap:a,strokeLinejoin:s,theme:l,fill:c},g),p=[g.prefix+"-icon"];return p.push(g.prefix+"-icon-"+e),t&&g.rtl&&p.push(g.prefix+"-icon-rtl"),d&&p.push(g.prefix+"-icon-spin"),u&&p.push(u),Va.default.createElement("span",Xh(Xh({},f),{},{className:p.join(" ")}),r(m))}}Object.defineProperty(xd,"__esModule",{value:!0});var hp=xd.default=void 0,cc=W2(h),H2=Bt;function W2(e){return e&&e.__esModule?e:{default:e}}var B2=(0, H2.IconWrapper)("close",!1,function(e){return cc.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},cc.default.createElement("path",{d:"M8 8L40 40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),cc.default.createElement("path",{d:"M8 40L40 8",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});hp=xd.default=B2;var _d={};Object.defineProperty(_d,"__esModule",{value:!0});var gp=_d.default=void 0,uc=U2(h),V2=Bt;function U2(e){return e&&e.__esModule?e:{default:e}}var G2=(0, V2.IconWrapper)("config",!1,function(e){return uc.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},uc.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}),uc.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}))});gp=_d.default=G2;var Od={};Object.defineProperty(Od,"__esModule",{value:!0});var mp=Od.default=void 0,no=K2(h),q2=Bt;function K2(e){return e&&e.__esModule?e:{default:e}}var X2=(0, q2.IconWrapper)("distraught-face",!1,function(e){return no.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},no.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}),no.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}),no.default.createElement("path",{d:"M32 17L29 20L32 23",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),no.default.createElement("path",{d:"M16 17L19 20L16 23",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});mp=Od.default=X2;var Pd={};Object.defineProperty(Pd,"__esModule",{value:!0});var vp=Pd.default=void 0,io=Z2(h),Y2=Bt;function Z2(e){return e&&e.__esModule?e:{default:e}}var Q2=(0, Y2.IconWrapper)("info",!0,function(e){return io.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},io.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}),io.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]}),io.default.createElement("path",{d:"M24.5 34V20H23.5H22.5",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),io.default.createElement("path",{d:"M21 34H28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});vp=Pd.default=Q2;var Td={};Object.defineProperty(Td,"__esModule",{value:!0});var pp=Td.default=void 0,dc=eR(h),J2=Bt;function eR(e){return e&&e.__esModule?e:{default:e}}var tR=(0, J2.IconWrapper)("loading",!0,function(e){return dc.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},dc.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}),dc.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}))});pp=Td.default=tR;var Rd={};Object.defineProperty(Rd,"__esModule",{value:!0});var bp=Rd.default=void 0,Rr=nR(h),rR=Bt;function nR(e){return e&&e.__esModule?e:{default:e}}var iR=(0, rR.IconWrapper)("loading-three",!1,function(e){return Rr.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Rr.default.createElement("path",{d:"M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Rr.default.createElement("path",{d:"M24 12V15",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Rr.default.createElement("path",{d:"M32.4852 15.5147L30.3639 17.636",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Rr.default.createElement("path",{d:"M36 24H33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Rr.default.createElement("path",{d:"M32.4852 32.4853L30.3639 30.364",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Rr.default.createElement("path",{d:"M24 36V33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Rr.default.createElement("path",{d:"M15.5148 32.4853L17.6361 30.364",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Rr.default.createElement("path",{d:"M12 24H15",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Rr.default.createElement("path",{d:"M15.5148 15.5147L17.6361 17.636",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});bp=Rd.default=iR;var Md={};Object.defineProperty(Md,"__esModule",{value:!0});var yp=Md.default=void 0,fc=aR(h),oR=Bt;function aR(e){return e&&e.__esModule?e:{default:e}}var sR=(0, oR.IconWrapper)("return",!0,function(e){return fc.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},fc.default.createElement("path",{d:"M12.9998 8L6 14L12.9998 21",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),fc.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}))});yp=Md.default=sR;const lR={Close:hp,Config:gp,DistraughtFace:mp,Return:yp,Loading:pp,LoadingThree:bp,Info:vp};function Nn({name:e,theme:t,size:r,fill:n,...i}){t||(t="outline"),r||(r=24);const o=td();n||(n=o?"#fff":"#333");const a=lR[e];return F(a,{theme:t,size:r,fill:n,...i,style:{fontSize:0,...i.style}})}function xi(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return uo(t)}function Yh(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Zh(e,t,r){var n=[],i=Bu(e,n,r);return n.length<2?r:i+t(n)}var cR=function(t){var r=wg(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=uo(c,r.registered,void 0);return _g(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=uo(c,r.registered),f="animation-"+d.name;return Yh(r,{name:d.name,styles:"@keyframes "+f+"{"+d.styles+"}"}),f},o=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=uo(c,r.registered);Yh(r,d);},a=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return Zh(r.registered,n,uR(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:Bu.bind(null,r.registered),merge:Zh.bind(null,r.registered,n)}},uR=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},dR=cR({key:"css"}),hc=dR.css,wp=function(e){return function(t,r){var n=h.useRef(!1);e(function(){return function(){n.current=!1;}},[]),e(function(){if(!n.current)n.current=!0;else return t()},r);}},Cr=function(){return Cr=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},Cr.apply(this,arguments)};function Sp(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 fR(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 hR(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 Cu(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 rt(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 Rt(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 Xi=function(e){return typeof e=="function"},gR=function(e){return typeof e=="string"},Cp=function(e){return typeof e=="number"};function Le(e){var t=h.useRef(e);t.current=h.useMemo(function(){return e},[e]);var r=h.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 ws=wp(h.useEffect);var $p=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=h.useRef(!1);return u.current=!1,ws(function(){!r&&i&&(u.current=!0,e.run.apply(e,Rt([],rt(a),!1)));},[i]),ws(function(){u.current||r||(u.current=!0,c?c():e.refresh());},Rt([],rt(l),!1)),{onBefore:function(){if(!i)return {stopNow:!0}}}};$p.onInit=function(e){var t=e.ready,r=t===void 0?!0:t,n=e.manual;return {loading:!n&&r}};const vR=$p;function $u(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 Ep(e,t){var r=h.useRef({deps:t,obj:void 0,initialized:!1}).current;return (r.initialized===!1||!$u(r.deps,t))&&(r.deps=t,r.obj=e(),r.initialized=!0),r.obj}function jo(e){var t=h.useRef(e);return t.current=e,t}var pR=function(e){var t=jo(e);h.useEffect(function(){return function(){t.current();}},[]);};const ia=pR;var Ua=new Map,bR=function(e,t,r){var n=Ua.get(e);n!=null&&n.timer&&clearTimeout(n.timer);var i=void 0;t>-1&&(i=setTimeout(function(){Ua.delete(e);},t)),Ua.set(e,Cr(Cr({},r),{timer:i}));},yR=function(e){return Ua.get(e)},Ga=new Map,wR=function(e){return Ga.get(e)},SR=function(e,t){Ga.set(e,t),t.then(function(r){return Ga.delete(e),r}).catch(function(){Ga.delete(e);});},zn={},CR=function(e,t){zn[e]&&zn[e].forEach(function(r){return r(t)});},gc=function(e,t){return zn[e]||(zn[e]=[]),zn[e].push(t),function(){var n=zn[e].indexOf(t);zn[e].splice(n,1);}},$R=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=h.useRef(),u=h.useRef(),d=function(g,v){s?s(v):bR(g,i,v),CR(g,v.data);},f=function(g,v){return v===void 0&&(v=[]),l?l(v):yR(g)};return Ep(function(){if(r){var g=f(r);g&&Object.hasOwnProperty.call(g,"data")&&(e.state.data=g.data,e.state.params=g.params,(a===-1||new Date().getTime()-g.time<=a)&&(e.state.loading=!1)),c.current=gc(r,function(v){e.setState({data:v});});}},[]),ia(function(){var g;(g=c.current)===null||g===void 0||g.call(c);}),r?{onBefore:function(g){var v=f(r,g);return !v||!Object.hasOwnProperty.call(v,"data")?{}:a===-1||new Date().getTime()-v.time<=a?{loading:!1,data:v==null?void 0:v.data,error:void 0,returnNow:!0}:{data:v==null?void 0:v.data,error:void 0}},onRequest:function(g,v){var m=wR(r);return m&&m!==u.current?{servicePromise:m}:(m=g.apply(void 0,Rt([],rt(v),!1)),u.current=m,SR(r,m),{servicePromise:m})},onSuccess:function(g,v){var m;r&&((m=c.current)===null||m===void 0||m.call(c),d(r,{data:g,params:v,time:new Date().getTime()}),c.current=gc(r,function(p){e.setState({data:p});}));},onMutate:function(g){var v;r&&((v=c.current)===null||v===void 0||v.call(c),d(r,{data:g,params:e.state.params,time:new Date().getTime()}),c.current=gc(r,function(m){e.setState({data:m});}));}}:{}};const ER=$R;var xR=function(e,t){var r=t.debounceWait,n=t.debounceLeading,i=t.debounceTrailing,o=t.debounceMaxWait,a=h.useRef(),s=h.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 h.useEffect(function(){if(r){var l=e.runAsync.bind(e);return a.current=Xg(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,f){var g;(g=a.current)===null||g===void 0||g.call(a,function(){l.apply(void 0,Rt([],rt(c),!1)).then(d).catch(f);});})},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 _R=xR;var OR=function(e,t){var r=t.loadingDelay,n=t.ready,i=h.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 PR=OR;var TR=!!(typeof window<"u"&&window.document&&window.document.createElement);const oa=TR;function Ad(){return oa?document.visibilityState!=="hidden":!0}var So=[];function RR(e){return So.push(e),function(){var r=So.indexOf(e);So.splice(r,1);}}if(oa){var MR=function(){if(Ad())for(var e=0;e<So.length;e++){var t=So[e];t();}};window.addEventListener("visibilitychange",MR,!1);}var AR=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=h.useRef(),l=h.useRef(),c=h.useRef(0),u=function(){var d;s.current&&clearTimeout(s.current),(d=l.current)===null||d===void 0||d.call(l);};return ws(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&&!Ad()?l.current=RR(function(){e.refresh();}):e.refresh();},r):c.current=0;},onCancel:function(){u();}}:{}};const NR=AR;function kR(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,Rt([],rt(n),!1)),setTimeout(function(){r=!1;},t));}}function IR(){return oa&&typeof navigator.onLine<"u"?navigator.onLine:!0}var Co=[];function FR(e){return Co.push(e),function(){var r=Co.indexOf(e);r>-1&&Co.splice(r,1);}}if(oa){var Qh=function(){if(!(!Ad()||!IR()))for(var e=0;e<Co.length;e++){var t=Co[e];t();}};window.addEventListener("visibilitychange",Qh,!1),window.addEventListener("focus",Qh,!1);}var LR=function(e,t){var r=t.refreshOnWindowFocus,n=t.focusTimespan,i=n===void 0?5e3:n,o=h.useRef(),a=function(){var s;(s=o.current)===null||s===void 0||s.call(o);};return h.useEffect(function(){if(r){var s=kR(e.refresh.bind(e),i);o.current=FR(function(){s();});}return function(){a();}},[r,i]),ia(function(){a();}),{}};const DR=LR;var jR=function(e,t){var r=t.retryInterval,n=t.retryCount,i=h.useRef(),o=h.useRef(0),a=h.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 zR=jR;var HR=function(e,t){var r=t.throttleWait,n=t.throttleLeading,i=t.throttleTrailing,o=h.useRef(),a={};return n!==void 0&&(a.leading=n),i!==void 0&&(a.trailing=i),h.useEffect(function(){if(r){var s=e.runAsync.bind(e);return o.current=fC(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 f;(f=o.current)===null||f===void 0||f.call(o,function(){s.apply(void 0,Rt([],rt(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 WR=HR;var BR=function(e){h.useEffect(function(){e==null||e();},[]);};const Nd=BR;var VR=function(){var e=rt(h.useState({}),2),t=e[1];return h.useCallback(function(){return t({})},[])};const UR=VR;var GR=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=Cr(Cr(Cr({},this.state),{loading:!r.manual}),i);}return e.prototype.setState=function(t){t===void 0&&(t={}),this.state=Cr(Cr({},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,Rt([o],rt(r),!1))}).filter(Boolean);return Object.assign.apply(Object,Rt([{}],rt(i),!1))},e.prototype.runAsync=function(){for(var t,r,n,i,o,a,s,l,c,u,d=[],f=0;f<arguments.length;f++)d[f]=arguments[f];return fR(this,void 0,void 0,function(){var g,v,m,p,b,$,C,O,w,S,y;return hR(this,function(T){switch(T.label){case 0:if(this.count+=1,g=this.count,v=this.runPluginHandler("onBefore",d),m=v.stopNow,p=m===void 0?!1:m,b=v.returnNow,$=b===void 0?!1:b,C=Sp(v,["stopNow","returnNow"]),p)return [2,new Promise(function(){})];if(this.setState(Cr({loading:!0,params:d},C)),$)return [2,Promise.resolve(C.data)];(r=(t=this.options).onBefore)===null||r===void 0||r.call(t,d),T.label=1;case 1:return T.trys.push([1,3,,4]),O=this.runPluginHandler("onRequest",this.serviceRef.current,d).servicePromise,O||(O=(y=this.serviceRef).current.apply(y,Rt([],rt(d),!1))),[4,O];case 2:return w=T.sent(),g!==this.count?[2,new Promise(function(){})]:(this.setState({data:w,error:void 0,loading:!1}),(i=(n=this.options).onSuccess)===null||i===void 0||i.call(n,w,d),this.runPluginHandler("onSuccess",w,d),(a=(o=this.options).onFinally)===null||a===void 0||a.call(o,d,w,void 0),g===this.count&&this.runPluginHandler("onFinally",d,w,void 0),[2,w]);case 3:if(S=T.sent(),g!==this.count)return [2,new Promise(function(){})];throw this.setState({error:S,loading:!1}),(l=(s=this.options).onError)===null||l===void 0||l.call(s,S,d),this.runPluginHandler("onError",S,d),(u=(c=this.options).onFinally)===null||u===void 0||u.call(c,d,void 0,S),g===this.count&&this.runPluginHandler("onFinally",d,void 0,S),S;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,Rt([],rt(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,Rt([],rt(this.state.params||[]),!1));},e.prototype.refreshAsync=function(){return this.runAsync.apply(this,Rt([],rt(this.state.params||[]),!1))},e.prototype.mutate=function(t){var r=Xi(t)?t(this.state.data):t;this.runPluginHandler("onMutate",r),this.setState({data:r});},e}();const qR=GR;function KR(e,t,r){t===void 0&&(t={}),r===void 0&&(r=[]);var n=t.manual,i=n===void 0?!1:n,o=Sp(t,["manual"]);var a=Cr({manual:i},o),s=jo(e),l=UR(),c=Ep(function(){var u=r.map(function(d){var f;return (f=d==null?void 0:d.onInit)===null||f===void 0?void 0:f.call(d,a)}).filter(Boolean);return new qR(s,a,l,Object.assign.apply(Object,Rt([{}],rt(u),!1)))},[]);return c.options=a,c.pluginImpls=r.map(function(u){return u(c,a)}),Nd(function(){if(!i){var u=c.state.params||t.defaultParams||[];c.run.apply(c,Rt([],rt(u),!1));}}),ia(function(){c.cancel();}),{loading:c.state.loading,data:c.state.data,error:c.state.error,params:c.state.params||[],cancel:Le(c.cancel.bind(c)),refresh:Le(c.refresh.bind(c)),refreshAsync:Le(c.refreshAsync.bind(c)),run:Le(c.run.bind(c)),runAsync:Le(c.runAsync.bind(c)),mutate:Le(c.mutate.bind(c))}}function xp(e,t,r){return KR(e,t,Rt(Rt([],rt(r||[]),!1),[_R,PR,NR,DR,WR,vR,ER,zR],!1))}function _p(e,t){e===void 0&&(e=!1);var r=rt(h.useState(e),2),n=r[0],i=r[1],o=h.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 XR(e){e===void 0&&(e=!1);var t=rt(_p(!!e),2),r=t[0],n=t[1],i=n.toggle,o=n.set,a=h.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 bl(e,t){if(oa){if(!e)return t;var r;return Xi(e)?r=e():"current"in e?r=e.current:r=e,r}}var YR=function(e){var t=function(r,n,i){var o=h.useRef(!1),a=h.useRef([]),s=h.useRef([]),l=h.useRef();e(function(){var c,u=Array.isArray(i)?i:[i],d=u.map(function(f){return bl(f)});if(!o.current){o.current=!0,a.current=d,s.current=n,l.current=r();return}(d.length!==a.current.length||!$u(d,a.current)||!$u(n,s.current))&&((c=l.current)===null||c===void 0||c.call(l),a.current=d,s.current=n,l.current=r());}),ia(function(){var c;(c=l.current)===null||c===void 0||c.call(l),o.current=!1;});};return t};const ZR=YR;var QR=ZR(h.useEffect);const Op=QR;function Zn(e,t,r){r===void 0&&(r={});var n=jo(t);Op(function(){var i=bl(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 JR(e){var t=rt(h.useState(e),2),r=t[0],n=t[1],i=h.useRef(r);i.current=r;var o=h.useCallback(function(){return i.current},[]);return [r,n,o]}const mc=function(e,t){var r=t||{},n=r.onEnter,i=r.onLeave,o=r.onChange,a=rt(XR(!1),2),s=a[0],l=a[1],c=l.setTrue,u=l.setFalse;return Zn("mouseenter",function(){n==null||n(),c(),o==null||o(!0);},{target:e}),Zn("mouseleave",function(){i==null||i(),u(),o==null||o(!1);},{target:e}),s};var eM=function(e,t){return t===void 0&&(t=[]),oC(e,t)},tM=function(e,t,r){var n=h.useRef(),i=h.useRef(0);eM(t,n.current)||(n.current=t,i.current+=1),Op(e,[i.current],r);};const rM=tM;var nM=/(mac|iphone|ipod|ipad)/i.test(typeof navigator<"u"?navigator==null?void 0:navigator.platform:"");const iM=nM;var Pp={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:iM?[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},Eu={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"?Pp.meta.includes(e.keyCode):e.metaKey}};function oM(e){var t=Object.keys(Eu).reduce(function(r,n){return Eu[n](e)?r+1:r},0);return [16,17,18,91,92].includes(e.keyCode)?t:t+1}function Jh(e,t,r){var n,i;if(!e.key)return !1;if(Cp(t))return e.keyCode===t;var o=t.split("."),a=0;try{for(var s=Cu(o),l=s.next();!l.done;l=s.next()){var c=l.value,u=Eu[c],d=Pp[c.toLowerCase()];(u&&u(e)||d&&d===e.keyCode)&&a++;}}catch(f){n={error:f};}finally{try{l&&!l.done&&(i=s.return)&&i.call(s);}finally{if(n)throw n.error}}return r?a===o.length&&oM(e)===o.length:a===o.length}function aM(e,t){return Xi(e)?e:gR(e)||Cp(e)?function(r){return Jh(r,e,t)}:Array.isArray(e)?function(r){return e.some(function(n){return Jh(r,n,t)})}:function(){return !!e}}var sM=["keydown"];function yt(e,t,r){var n=r||{},i=n.events,o=i===void 0?sM:i,a=n.target,s=n.exactMatch,l=s===void 0?!1:s,c=n.useCapture,u=c===void 0?!1:c,d=jo(t),f=jo(e);rM(function(){var g,v,m,p=bl(a,window);if(p){var b=function(w){var S,y=aM(f.current,l);if(y(w))return (S=d.current)===null||S===void 0?void 0:S.call(d,w)};try{for(var $=Cu(o),C=$.next();!C.done;C=$.next()){var O=C.value;(m=p==null?void 0:p.addEventListener)===null||m===void 0||m.call(p,O,b,u);}}catch(w){g={error:w};}finally{try{C&&!C.done&&(v=$.return)&&v.call($);}finally{if(g)throw g.error}}return function(){var w,S,y;try{for(var T=Cu(o),P=T.next();!P.done;P=T.next()){var _=P.value;(y=p==null?void 0:p.removeEventListener)===null||y===void 0||y.call(p,_,b,u);}}catch(N){w={error:N};}finally{try{P&&!P.done&&(S=T.return)&&S.call(T);}finally{if(w)throw w.error}}}}},[o],a);}function Tp(e){var t=h.useRef(0),r=rt(h.useState(e),2),n=r[0],i=r[1],o=h.useCallback(function(a){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){i(a);});},[]);return ia(function(){cancelAnimationFrame(t.current);}),[n,o]}var lM={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 cM=function(e){var t=rt(Tp(lM),2),r=t[0],n=t[1];return Zn("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},f=bl(e);if(f){var g=f.getBoundingClientRect(),v=g.left,m=g.top,p=g.width,b=g.height;d.elementPosX=v+window.pageXOffset,d.elementPosY=m+window.pageYOffset,d.elementX=c-d.elementPosX,d.elementY=u-d.elementPosY,d.elementW=p,d.elementH=b;}n(d);},{target:function(){return document}}),r};var uM=function(){var e=h.useRef(!1);return h.useEffect(function(){return e.current=!1,function(){e.current=!0;}},[]),e};const dM=uM,fM=wp(h.useLayoutEffect),hM="_modal-mask_qk630_1",gM="_modal_qk630_1",mM="_modal-header_qk630_23",vM="_modal-body_qk630_30",pM="_modal-title_qk630_35",bM="_btn-close_qk630_42",xr={modalMask:hM,modal:gM,modalHeader:mM,modalBody:vM,modalTitle:pM,btnClose:bM};let lo=0;const yM=()=>{lo++,document.body.style.overflow="hidden";},wM=()=>{lo--,lo<0&&(lo=0),lo===0&&(document.body.style.overflow="");};function kd({show:e,onHide:t,children:r,clsModalMask:n,clsModal:i,width:o,hideWhenMaskOnClick:a=!1,hideWhenEsc:s=!1}){h.useLayoutEffect(()=>{e?yM():wM();},[e]);const l=h.useRef(null),c=td(),{bg:u,c:d}=h.useMemo(()=>{const p=window.getComputedStyle(document.body)["background-color"],b=window.getComputedStyle(document.body).color;return {bg:p,c:b}},[c]),f=h.useMemo(()=>c?{"--bg":u,"--c":d,backgroundColor:u,color:d}:{},[u,d,c]),g=h.useId(),v=h.useMemo(()=>{const p=document.createElement("div");return p.setAttribute("data-id","base-modal-"+g),document.body.appendChild(p),p},[]),m=Le(p=>{var b;(b=l.current)!=null&&b.contains(p.target)||a&&t();});return yt("esc",p=>{e&&s&&(p.preventDefault(),p.stopImmediatePropagation(),setTimeout(t));}),e?cg.createPortal(F("div",{className:q(xr.modalMask,n),onClick:m,children:F("div",{className:q(xr.modal,i),style:{...f,width:o},ref:l,children:r})}),v):null}const Id=e=>F(Nn,{...e,name:"Close",size:18,style:{cursor:"pointer",marginLeft:10,...e.style}}),SM="_toast-container_mcbuq_1",CM="_single-line_mcbuq_17";function Ht(e,t=2e3){const r=document.createElement("div");r.className=SM,r.innerText=e,!e.includes(`
`)&&!e.includes("<br")&&r.classList.add(CM),document.body.appendChild(r),setTimeout(()=>r.remove(),t);}const $M="请求失败, 请重试 !!!",EM="操作失败, 请重试 !!!";function Rp(){return Ht($M)}function Mp(){return Ht(EM)}function xM(e){const t=Yo({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 Ap="27eb53fc9058f8c3";async function _M(){var c,u;const t=(await Fu.get("https://passport.bilibili.com/login/app/third",{params:{appkey:Ap,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 f=g=>{if(g.origin!="https://www.mcbbs.net"||!g.data)return;const v=g.data.match(/access_key=([0-9a-z]{32})/);if(!v||!v[1])return d({errmsg:"没有获得匹配的密钥"});d(v[1]);};window.addEventListener("message",f),i=()=>window.removeEventListener("message",f),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 OM(){const e=await _M();if(typeof e=="object"&&"errmsg"in e){Ht(e.errmsg);return}const t=e;return Ee.accessKey=t,Ht("获取成功"),t}function PM(){Ee.accessKey="",Ht("已删除 access_key");}const Np="https://api.bilibili.com",kp="https://app.bilibili.com",yl=Fu.create({baseURL:Np});yl.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 wl=Fu.create({adapter:Db});wl.interceptors.request.use(function(e){return e.params={appkey:Ap,access_key:Ee.accessKey||"",...e.params},e},function(e){return Promise.reject(e)});wl.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 TM(){var t;const e=(t=document.cookie.match(/bili_jct=([0-9a-fA-F]{32})/))==null?void 0:t[1];if(!e)throw Ht("找不到 csrf token, 请检查是否登录(不可用)"),new Error("找不到 csrf token, 请检查是否登录(不可用)");return e}const oo=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Ip=new Set,xu=typeof process=="object"&&process?process:{},Fp=(e,t,r,n)=>{typeof xu.emitWarning=="function"?xu.emitWarning(e,t,r,n):console.error(`[${r}] ${t}: ${e}`);};let Ss=globalThis.AbortController,eg=globalThis.AbortSignal;var lg;if(typeof Ss>"u"){eg=class{constructor(){Ke(this,"onabort");Ke(this,"_onabort",[]);Ke(this,"reason");Ke(this,"aborted",!1);}addEventListener(n,i){this._onabort.push(i);}},Ss=class{constructor(){Ke(this,"signal",new eg);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=((lg=xu.env)==null?void 0:lg.LRU_CACHE_IGNORE_AC_WARNING)!=="1";const t=()=>{e&&(e=!1,Fp("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 RM=e=>!Ip.has(e),_n=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),Lp=e=>_n(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?qa:null:null;class qa extends Array{constructor(t){super(t),this.fill(0);}}var Oi;const wi=class{constructor(t,r){Ke(this,"heap");Ke(this,"length");if(!R(wi,Oi))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(t),this.length=0;}static create(t){const r=Lp(t);if(!r)return [];ne(wi,Oi,!0);const n=new wi(t,r);return ne(wi,Oi,!1),n}push(t){this.heap[this.length++]=t;}pop(){return this.heap[--this.length]}};let Ka=wi;Oi=new WeakMap,ge(Ka,Oi,!1);var pr,Zt,Nr,br,Pi,ct,yr,ut,Xe,de,kt,Qt,Tt,bt,wr,$t,tn,rn,Sr,kr,Rn,Lt,Wo,Ou,Gn,nn,Bo,Jt,_s,Dp,qn,Ti,Vo,Ir,On,Fr,Pn,Uo,Pu,Ri,Xa,Mi,Ya,Ve,Je,Go,Tu,Kn,co;const Ud=class{constructor(t){ge(this,Wo);ge(this,_s);ge(this,Ir);ge(this,Fr);ge(this,Uo);ge(this,Ri);ge(this,Mi);ge(this,Ve);ge(this,Go);ge(this,Kn);ge(this,pr,void 0);ge(this,Zt,void 0);ge(this,Nr,void 0);ge(this,br,void 0);ge(this,Pi,void 0);Ke(this,"ttl");Ke(this,"ttlResolution");Ke(this,"ttlAutopurge");Ke(this,"updateAgeOnGet");Ke(this,"updateAgeOnHas");Ke(this,"allowStale");Ke(this,"noDisposeOnSet");Ke(this,"noUpdateTTL");Ke(this,"maxEntrySize");Ke(this,"sizeCalculation");Ke(this,"noDeleteOnFetchRejection");Ke(this,"noDeleteOnStaleGet");Ke(this,"allowStaleOnFetchAbort");Ke(this,"allowStaleOnFetchRejection");Ke(this,"ignoreFetchAbort");ge(this,ct,void 0);ge(this,yr,void 0);ge(this,ut,void 0);ge(this,Xe,void 0);ge(this,de,void 0);ge(this,kt,void 0);ge(this,Qt,void 0);ge(this,Tt,void 0);ge(this,bt,void 0);ge(this,wr,void 0);ge(this,$t,void 0);ge(this,tn,void 0);ge(this,rn,void 0);ge(this,Sr,void 0);ge(this,kr,void 0);ge(this,Rn,void 0);ge(this,Lt,void 0);ge(this,Gn,()=>{});ge(this,nn,()=>{});ge(this,Bo,()=>{});ge(this,Jt,()=>!1);ge(this,qn,t=>{});ge(this,Ti,(t,r,n)=>{});ge(this,Vo,(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:f,maxSize:g=0,maxEntrySize:v=0,sizeCalculation:m,fetchMethod:p,noDeleteOnFetchRejection:b,noDeleteOnStaleGet:$,allowStaleOnFetchRejection:C,allowStaleOnFetchAbort:O,ignoreFetchAbort:w}=t;if(r!==0&&!_n(r))throw new TypeError("max option must be a nonnegative integer");const S=r?Lp(r):Array;if(!S)throw new Error("invalid max value: "+r);if(ne(this,pr,r),ne(this,Zt,g),this.maxEntrySize=v||R(this,Zt),this.sizeCalculation=m,this.sizeCalculation){if(!R(this,Zt)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(p!==void 0&&typeof p!="function")throw new TypeError("fetchMethod must be a function if specified");if(ne(this,Pi,p),ne(this,Rn,!!p),ne(this,ut,new Map),ne(this,Xe,new Array(r).fill(void 0)),ne(this,de,new Array(r).fill(void 0)),ne(this,kt,new S(r)),ne(this,Qt,new S(r)),ne(this,Tt,0),ne(this,bt,0),ne(this,wr,Ka.create(r)),ne(this,ct,0),ne(this,yr,0),typeof c=="function"&&ne(this,Nr,c),typeof u=="function"?(ne(this,br,u),ne(this,$t,[])):(ne(this,br,void 0),ne(this,$t,void 0)),ne(this,kr,!!R(this,Nr)),ne(this,Lt,!!R(this,br)),this.noDisposeOnSet=!!d,this.noUpdateTTL=!!f,this.noDeleteOnFetchRejection=!!b,this.allowStaleOnFetchRejection=!!C,this.allowStaleOnFetchAbort=!!O,this.ignoreFetchAbort=!!w,this.maxEntrySize!==0){if(R(this,Zt)!==0&&!_n(R(this,Zt)))throw new TypeError("maxSize must be a positive integer if specified");if(!_n(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");J(this,_s,Dp).call(this);}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!$,this.updateAgeOnGet=!!a,this.updateAgeOnHas=!!s,this.ttlResolution=_n(i)||i===0?i:1,this.ttlAutopurge=!!o,this.ttl=n||0,this.ttl){if(!_n(this.ttl))throw new TypeError("ttl must be a positive integer if specified");J(this,Wo,Ou).call(this);}if(R(this,pr)===0&&this.ttl===0&&R(this,Zt)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!R(this,pr)&&!R(this,Zt)){const y="LRU_CACHE_UNBOUNDED";RM(y)&&(Ip.add(y),Fp("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",y,Ud));}}static unsafeExposeInternals(t){return {starts:R(t,rn),ttls:R(t,Sr),sizes:R(t,tn),keyMap:R(t,ut),keyList:R(t,Xe),valList:R(t,de),next:R(t,kt),prev:R(t,Qt),get head(){return R(t,Tt)},get tail(){return R(t,bt)},free:R(t,wr),isBackgroundFetch:r=>{var n;return J(n=t,Ve,Je).call(n,r)},backgroundFetch:(r,n,i,o)=>{var a;return J(a=t,Mi,Ya).call(a,r,n,i,o)},moveToTail:r=>{var n;return J(n=t,Kn,co).call(n,r)},indexes:r=>{var n;return J(n=t,Ir,On).call(n,r)},rindexes:r=>{var n;return J(n=t,Fr,Pn).call(n,r)},isStale:r=>{var n;return R(n=t,Jt).call(n,r)}}}get max(){return R(this,pr)}get maxSize(){return R(this,Zt)}get calculatedSize(){return R(this,yr)}get size(){return R(this,ct)}get fetchMethod(){return R(this,Pi)}get dispose(){return R(this,Nr)}get disposeAfter(){return R(this,br)}getRemainingTTL(t){return R(this,ut).has(t)?1/0:0}*entries(){for(const t of J(this,Ir,On).call(this))R(this,de)[t]!==void 0&&R(this,Xe)[t]!==void 0&&!J(this,Ve,Je).call(this,R(this,de)[t])&&(yield [R(this,Xe)[t],R(this,de)[t]]);}*rentries(){for(const t of J(this,Fr,Pn).call(this))R(this,de)[t]!==void 0&&R(this,Xe)[t]!==void 0&&!J(this,Ve,Je).call(this,R(this,de)[t])&&(yield [R(this,Xe)[t],R(this,de)[t]]);}*keys(){for(const t of J(this,Ir,On).call(this)){const r=R(this,Xe)[t];r!==void 0&&!J(this,Ve,Je).call(this,R(this,de)[t])&&(yield r);}}*rkeys(){for(const t of J(this,Fr,Pn).call(this)){const r=R(this,Xe)[t];r!==void 0&&!J(this,Ve,Je).call(this,R(this,de)[t])&&(yield r);}}*values(){for(const t of J(this,Ir,On).call(this))R(this,de)[t]!==void 0&&!J(this,Ve,Je).call(this,R(this,de)[t])&&(yield R(this,de)[t]);}*rvalues(){for(const t of J(this,Fr,Pn).call(this))R(this,de)[t]!==void 0&&!J(this,Ve,Je).call(this,R(this,de)[t])&&(yield R(this,de)[t]);}[Symbol.iterator](){return this.entries()}find(t,r={}){for(const n of J(this,Ir,On).call(this)){const i=R(this,de)[n],o=J(this,Ve,Je).call(this,i)?i.__staleWhileFetching:i;if(o!==void 0&&t(o,R(this,Xe)[n],this))return this.get(R(this,Xe)[n],r)}}forEach(t,r=this){for(const n of J(this,Ir,On).call(this)){const i=R(this,de)[n],o=J(this,Ve,Je).call(this,i)?i.__staleWhileFetching:i;o!==void 0&&t.call(r,o,R(this,Xe)[n],this);}}rforEach(t,r=this){for(const n of J(this,Fr,Pn).call(this)){const i=R(this,de)[n],o=J(this,Ve,Je).call(this,i)?i.__staleWhileFetching:i;o!==void 0&&t.call(r,o,R(this,Xe)[n],this);}}purgeStale(){let t=!1;for(const r of J(this,Fr,Pn).call(this,{allowStale:!0}))R(this,Jt).call(this,r)&&(this.delete(R(this,Xe)[r]),t=!0);return t}dump(){const t=[];for(const r of J(this,Ir,On).call(this,{allowStale:!0})){const n=R(this,Xe)[r],i=R(this,de)[r],o=J(this,Ve,Je).call(this,i)?i.__staleWhileFetching:i;if(o===void 0||n===void 0)continue;const a={value:o};if(R(this,Sr)&&R(this,rn)){a.ttl=R(this,Sr)[r];const s=oo.now()-R(this,rn)[r];a.start=Math.floor(Date.now()-s);}R(this,tn)&&(a.size=R(this,tn)[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=oo.now()-i;}this.set(r,n.value,n);}}set(t,r,n={}){var f,g,v;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=R(this,Vo).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=R(this,ct)===0?void 0:R(this,ut).get(t);if(d===void 0)d=R(this,ct)===0?R(this,bt):R(this,wr).length!==0?R(this,wr).pop():R(this,ct)===R(this,pr)?J(this,Ri,Xa).call(this,!1):R(this,ct),R(this,Xe)[d]=t,R(this,de)[d]=r,R(this,ut).set(t,d),R(this,kt)[R(this,bt)]=d,R(this,Qt)[d]=R(this,bt),ne(this,bt,d),ya(this,ct)._++,R(this,Ti).call(this,d,u,l),l&&(l.set="add"),c=!1;else {J(this,Kn,co).call(this,d);const m=R(this,de)[d];if(r!==m){if(R(this,Rn)&&J(this,Ve,Je).call(this,m)?m.__abortController.abort(new Error("replaced")):a||(R(this,kr)&&((f=R(this,Nr))==null||f.call(this,m,t,"set")),R(this,Lt)&&((g=R(this,$t))==null||g.push([m,t,"set"]))),R(this,qn).call(this,d),R(this,Ti).call(this,d,u,l),R(this,de)[d]=r,l){l.set="replace";const p=m&&J(this,Ve,Je).call(this,m)?m.__staleWhileFetching:m;p!==void 0&&(l.oldValue=p);}}else l&&(l.set="update");}if(i!==0&&!R(this,Sr)&&J(this,Wo,Ou).call(this),R(this,Sr)&&(c||R(this,Bo).call(this,d,i,o),l&&R(this,nn).call(this,l,d)),!a&&R(this,Lt)&&R(this,$t)){const m=R(this,$t);let p;for(;p=m==null?void 0:m.shift();)(v=R(this,br))==null||v.call(this,...p);}return this}pop(){var t;try{for(;R(this,ct);){const r=R(this,de)[R(this,Tt)];if(J(this,Ri,Xa).call(this,!0),J(this,Ve,Je).call(this,r)){if(r.__staleWhileFetching)return r.__staleWhileFetching}else if(r!==void 0)return r}}finally{if(R(this,Lt)&&R(this,$t)){const r=R(this,$t);let n;for(;n=r==null?void 0:r.shift();)(t=R(this,br))==null||t.call(this,...n);}}}has(t,r={}){const{updateAgeOnHas:n=this.updateAgeOnHas,status:i}=r,o=R(this,ut).get(t);if(o!==void 0){const a=R(this,de)[o];if(J(this,Ve,Je).call(this,a)&&a.__staleWhileFetching===void 0)return !1;if(R(this,Jt).call(this,o))i&&(i.has="stale",R(this,nn).call(this,i,o));else return n&&R(this,Gn).call(this,o),i&&(i.has="hit",R(this,nn).call(this,i,o)),!0}else i&&(i.has="miss");return !1}peek(t,r={}){const{allowStale:n=this.allowStale}=r,i=R(this,ut).get(t);if(i!==void 0&&(n||!R(this,Jt).call(this,i))){const o=R(this,de)[i];return J(this,Ve,Je).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:f=this.allowStaleOnFetchRejection,ignoreFetchAbort:g=this.ignoreFetchAbort,allowStaleOnFetchAbort:v=this.allowStaleOnFetchAbort,context:m,forceRefresh:p=!1,status:b,signal:$}=r;if(!R(this,Rn))return b&&(b.fetch="get"),this.get(t,{allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:o,status:b});const C={allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:o,ttl:a,noDisposeOnSet:s,size:l,sizeCalculation:c,noUpdateTTL:u,noDeleteOnFetchRejection:d,allowStaleOnFetchRejection:f,allowStaleOnFetchAbort:v,ignoreFetchAbort:g,status:b,signal:$};let O=R(this,ut).get(t);if(O===void 0){b&&(b.fetch="miss");const w=J(this,Mi,Ya).call(this,t,O,C,m);return w.__returned=w}else {const w=R(this,de)[O];if(J(this,Ve,Je).call(this,w)){const _=n&&w.__staleWhileFetching!==void 0;return b&&(b.fetch="inflight",_&&(b.returnedStale=!0)),_?w.__staleWhileFetching:w.__returned=w}const S=R(this,Jt).call(this,O);if(!p&&!S)return b&&(b.fetch="hit"),J(this,Kn,co).call(this,O),i&&R(this,Gn).call(this,O),b&&R(this,nn).call(this,b,O),w;const y=J(this,Mi,Ya).call(this,t,O,C,m),P=y.__staleWhileFetching!==void 0&&n;return b&&(b.fetch=S?"stale":"refresh",P&&S&&(b.returnedStale=!0)),P?y.__staleWhileFetching:y.__returned=y}}get(t,r={}){const{allowStale:n=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:o=this.noDeleteOnStaleGet,status:a}=r,s=R(this,ut).get(t);if(s!==void 0){const l=R(this,de)[s],c=J(this,Ve,Je).call(this,l);return a&&R(this,nn).call(this,a,s),R(this,Jt).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:(J(this,Kn,co).call(this,s),i&&R(this,Gn).call(this,s),l))}else a&&(a.get="miss");}delete(t){var n,i,o,a;let r=!1;if(R(this,ct)!==0){const s=R(this,ut).get(t);if(s!==void 0)if(r=!0,R(this,ct)===1)this.clear();else {R(this,qn).call(this,s);const l=R(this,de)[s];J(this,Ve,Je).call(this,l)?l.__abortController.abort(new Error("deleted")):(R(this,kr)||R(this,Lt))&&(R(this,kr)&&((n=R(this,Nr))==null||n.call(this,l,t,"delete")),R(this,Lt)&&((i=R(this,$t))==null||i.push([l,t,"delete"]))),R(this,ut).delete(t),R(this,Xe)[s]=void 0,R(this,de)[s]=void 0,s===R(this,bt)?ne(this,bt,R(this,Qt)[s]):s===R(this,Tt)?ne(this,Tt,R(this,kt)[s]):(R(this,kt)[R(this,Qt)[s]]=R(this,kt)[s],R(this,Qt)[R(this,kt)[s]]=R(this,Qt)[s]),ya(this,ct)._--,R(this,wr).push(s);}}if(R(this,Lt)&&((o=R(this,$t))!=null&&o.length)){const s=R(this,$t);let l;for(;l=s==null?void 0:s.shift();)(a=R(this,br))==null||a.call(this,...l);}return r}clear(){var t,r,n;for(const i of J(this,Fr,Pn).call(this,{allowStale:!0})){const o=R(this,de)[i];if(J(this,Ve,Je).call(this,o))o.__abortController.abort(new Error("deleted"));else {const a=R(this,Xe)[i];R(this,kr)&&((t=R(this,Nr))==null||t.call(this,o,a,"delete")),R(this,Lt)&&((r=R(this,$t))==null||r.push([o,a,"delete"]));}}if(R(this,ut).clear(),R(this,de).fill(void 0),R(this,Xe).fill(void 0),R(this,Sr)&&R(this,rn)&&(R(this,Sr).fill(0),R(this,rn).fill(0)),R(this,tn)&&R(this,tn).fill(0),ne(this,Tt,0),ne(this,bt,0),R(this,wr).length=0,ne(this,yr,0),ne(this,ct,0),R(this,Lt)&&R(this,$t)){const i=R(this,$t);let o;for(;o=i==null?void 0:i.shift();)(n=R(this,br))==null||n.call(this,...o);}}};let _u=Ud;pr=new WeakMap,Zt=new WeakMap,Nr=new WeakMap,br=new WeakMap,Pi=new WeakMap,ct=new WeakMap,yr=new WeakMap,ut=new WeakMap,Xe=new WeakMap,de=new WeakMap,kt=new WeakMap,Qt=new WeakMap,Tt=new WeakMap,bt=new WeakMap,wr=new WeakMap,$t=new WeakMap,tn=new WeakMap,rn=new WeakMap,Sr=new WeakMap,kr=new WeakMap,Rn=new WeakMap,Lt=new WeakMap,Wo=new WeakSet,Ou=function(){const t=new qa(R(this,pr)),r=new qa(R(this,pr));ne(this,Sr,t),ne(this,rn,r),ne(this,Bo,(o,a,s=oo.now())=>{if(r[o]=a!==0?s:0,t[o]=a,a!==0&&this.ttlAutopurge){const l=setTimeout(()=>{R(this,Jt).call(this,o)&&this.delete(R(this,Xe)[o]);},a+1);l.unref&&l.unref();}}),ne(this,Gn,o=>{r[o]=t[o]!==0?oo.now():0;}),ne(this,nn,(o,a)=>{if(t[a]){const s=t[a],l=r[a];o.ttl=s,o.start=l,o.now=n||i(),o.remainingTTL=o.now+s-l;}});let n=0;const i=()=>{const o=oo.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=R(this,ut).get(o);return a===void 0?0:t[a]===0||r[a]===0?1/0:r[a]+t[a]-(n||i())},ne(this,Jt,o=>t[o]!==0&&r[o]!==0&&(n||i())-r[o]>t[o]);},Gn=new WeakMap,nn=new WeakMap,Bo=new WeakMap,Jt=new WeakMap,_s=new WeakSet,Dp=function(){const t=new qa(R(this,pr));ne(this,yr,0),ne(this,tn,t),ne(this,qn,r=>{ne(this,yr,R(this,yr)-t[r]),t[r]=0;}),ne(this,Vo,(r,n,i,o)=>{if(J(this,Ve,Je).call(this,n))return 0;if(!_n(i))if(o){if(typeof o!="function")throw new TypeError("sizeCalculation must be a function");if(i=o(n,r),!_n(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}),ne(this,Ti,(r,n,i)=>{if(t[r]=n,R(this,Zt)){const o=R(this,Zt)-t[r];for(;R(this,yr)>o;)J(this,Ri,Xa).call(this,!0);}ne(this,yr,R(this,yr)+t[r]),i&&(i.entrySize=n,i.totalCalculatedSize=R(this,yr));});},qn=new WeakMap,Ti=new WeakMap,Vo=new WeakMap,Ir=new WeakSet,On=function*({allowStale:t=this.allowStale}={}){if(R(this,ct))for(let r=R(this,bt);!(!J(this,Uo,Pu).call(this,r)||((t||!R(this,Jt).call(this,r))&&(yield r),r===R(this,Tt)));)r=R(this,Qt)[r];},Fr=new WeakSet,Pn=function*({allowStale:t=this.allowStale}={}){if(R(this,ct))for(let r=R(this,Tt);!(!J(this,Uo,Pu).call(this,r)||((t||!R(this,Jt).call(this,r))&&(yield r),r===R(this,bt)));)r=R(this,kt)[r];},Uo=new WeakSet,Pu=function(t){return t!==void 0&&R(this,ut).get(R(this,Xe)[t])===t},Ri=new WeakSet,Xa=function(t){var o,a;const r=R(this,Tt),n=R(this,Xe)[r],i=R(this,de)[r];return R(this,Rn)&&J(this,Ve,Je).call(this,i)?i.__abortController.abort(new Error("evicted")):(R(this,kr)||R(this,Lt))&&(R(this,kr)&&((o=R(this,Nr))==null||o.call(this,i,n,"evict")),R(this,Lt)&&((a=R(this,$t))==null||a.push([i,n,"evict"]))),R(this,qn).call(this,r),t&&(R(this,Xe)[r]=void 0,R(this,de)[r]=void 0,R(this,wr).push(r)),R(this,ct)===1?(ne(this,Tt,ne(this,bt,0)),R(this,wr).length=0):ne(this,Tt,R(this,kt)[r]),R(this,ut).delete(n),ya(this,ct)._--,r},Mi=new WeakSet,Ya=function(t,r,n,i){const o=r===void 0?void 0:R(this,de)[r];if(J(this,Ve,Je).call(this,o))return o;const a=new Ss,{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,p=!1)=>{const{aborted:b}=a.signal,$=n.ignoreFetchAbort&&m!==void 0;if(n.status&&(b&&!p?(n.status.fetchAborted=!0,n.status.fetchError=a.signal.reason,$&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),b&&!$&&!p)return d(a.signal.reason);const C=g;return R(this,de)[r]===g&&(m===void 0?C.__staleWhileFetching?R(this,de)[r]=C.__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:p}=a.signal,b=p&&n.allowStaleOnFetchAbort,$=b||n.allowStaleOnFetchRejection,C=$||n.noDeleteOnFetchRejection,O=g;if(R(this,de)[r]===g&&(!C||O.__staleWhileFetching===void 0?this.delete(t):b||(R(this,de)[r]=O.__staleWhileFetching)),$)return n.status&&O.__staleWhileFetching!==void 0&&(n.status.returnedStale=!0),O.__staleWhileFetching;if(O.__returned===O)throw m},f=(m,p)=>{var $;const b=($=R(this,Pi))==null?void 0:$.call(this,t,o,l);b&&b instanceof Promise&&b.then(C=>m(C),p),a.signal.addEventListener("abort",()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(m(),n.allowStaleOnFetchAbort&&(m=C=>c(C,!0)));});};n.status&&(n.status.fetchDispatched=!0);const g=new Promise(f).then(c,u),v=Object.assign(g,{__abortController:a,__staleWhileFetching:o,__returned:void 0});return r===void 0?(this.set(t,v,{...l.options,status:void 0}),r=R(this,ut).get(t)):R(this,de)[r]=v,v},Ve=new WeakSet,Je=function(t){if(!R(this,Rn))return !1;const r=t;return !!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof Ss},Go=new WeakSet,Tu=function(t,r){R(this,Qt)[r]=t,R(this,kt)[t]=r;},Kn=new WeakSet,co=function(t){t!==R(this,bt)&&(t===R(this,Tt)?ne(this,Tt,R(this,kt)[t]):J(this,Go,Tu).call(this,R(this,Qt)[t],R(this,kt)[t]),J(this,Go,Tu).call(this,R(this,bt),t),ne(this,bt,t));};async function MM(e){return (await yl.get("/pvideo",{params:{aid:e}})).data.data}async function AM(e){return []}const vc=new _u({max:200});async function NM(e){if(vc.has(e))return vc.get(e);const[t,r]=await Promise.all([MM(e),AM()]);return vc.set(e,{pvideoData:t,dmData:r}),{pvideoData:t,dmData:r}}function jp(e){return async function(r){const n=new FormData;n.append("aid",r),n.append("csrf",TM());const o=(await yl.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||Ht((o==null?void 0:o.message)||"出错了"),a}}const kM=jp("add"),IM=jp("del"),zp=e=>{const t={dislike:"/x/feed/dislike",cancel:"/x/feed/dislike/cancel"}[e];return async function(r,n){const o=(await wl.get(kp+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"}},FM=zp("dislike"),LM=zp("cancel"),DM="_modal_1rloz_1",jM="_title-desc_1rloz_4",zM="_reason-list_1rloz_8",HM="_reason_1rloz_8",WM="_active_1rloz_29",BM="_reason-no_1rloz_33",VM="_tips-container_1rloz_47",UM="_tips_1rloz_47",cr={modal:DM,titleDesc:jM,reasonList:zM,reason:HM,active:WM,reasonNo:BM,tipsContainer:VM,tips:UM},Sl=xM();function GM(){return Ui(Sl)}function qM(e){const t=GM();if(e)return t.get(e)}function KM({show:e,onHide:t,item:r}){const[n,i]=h.useState(!1),o=Le(async g=>{if(!r)return;let v=!1,m;try{i(!0),v=await FM(r,g.id);}catch(p){m=p;}finally{i(!1);}if(m)return console.error(m.stack||m),Rp();v?Ht("已标记不想看"):Mp(),v&&(Sl.set(r.param,{...g}),t());}),a=h.useMemo(()=>{var g;return ((g=r==null?void 0:r.three_point)==null?void 0:g.dislike_reasons)||[]},[r]),s=()=>!!e&&!!r,l=["1","2","3","4","5","6"];yt(l,g=>{if(!s()||!l.includes(g.key))return;const v=Number(g.key)-1;u(v);const m=document.querySelectorAll(`.${cr.reason}`)[v]||null;m==null||m.click();});const[c,u]=h.useState(a.length-1);fM(()=>{u(a.length-1);},[a]);const d=g=>()=>{if(!s())return;const v=c+g;v<0||v>a.length-1||u(v);};yt("leftarrow",d(-1)),yt("rightarrow",d(1)),yt("uparrow",d(-2)),yt("downarrow",d(2)),yt("enter",g=>{var v;s()&&(c<0||c>a.length-1||(g.preventDefault(),g.stopImmediatePropagation(),(v=document.querySelector(`.${cr.reason}.${cr.active}`))==null||v.click()));});const f=h.useMemo(()=>{var g;return ((g=a[c])==null?void 0:g.name)||""},[a,c]);return U(kd,{show:e,onHide:t,clsModal:cr.modal,hideWhenMaskOnClick:!0,hideWhenEsc:!0,children:[U("div",{className:xr.modalHeader,children:[U("div",{className:xr.modalTitle,children:["我不想看",F("span",{className:cr.titleDesc,children:"(选择后将减少相似内容推荐)"})]}),F("div",{className:"space",style:{flex:1}}),F(Id,{onClick:t})]}),U("div",{className:xr.modalBody,children:[F("div",{className:cr.reasonList,children:a.map((g,v)=>U("button",{className:q(cr.reason,{[cr.active]:v===c}),"data-id":g.id,onClick:()=>{u(v),o(g);},disabled:n,children:[F("span",{className:cr.reasonNo,children:v+1}),g.name]},g.id))}),U("div",{className:cr.tipsContainer,children:[U("div",{className:cr.tips,children:[F(Nn,{name:"Info",size:15,style:{marginRight:5}}),"使用删除键打开弹框, 数字键选择, Esc 关闭"]}),f&&U("div",{className:cr.tips,children:[F(Nn,{name:"Info",size:15,style:{marginRight:5}}),"已选择「",f,"」, 回车键提交"]})]})]})]})}const Za={show:!1,onHide:Wp,item:null},Hp=Yo({value:Za.show}),XM=function(){return Ui(Hp).value};function Wp(){setTimeout(()=>{Bp({show:!1,item:null});});}function Bp(e){Object.assign(Za,e),Hp.value=Za.show,YM().render(F(KM,{...Za,onHide:Wp}));}let pc;function YM(){if(!pc){const e=document.createElement("div");e.classList.add("show-dislike-container"),document.body.appendChild(e),pc=vl(e);}return pc}function ZM(e){e!=null&&e.param&&Sl.has(e.param)||Bp({show:!0,item:e});}function QM(e){return e||(e=0),Zs.duration(e||0,"seconds").format(e>=3600?"HH:mm:ss":"mm:ss")}function bc(e){if(!e)return "";if(e<=9999)return e.toString();let t=(e/1e4).toFixed(1);return t=t.replace(/\.0$/,""),`${t}万`}function tg(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 JM="_bili-video-card_mlccj_1",eA="_image-wrapper_mlccj_4",tA="_preview-card-wrapper_mlccj_8",rA="_preview-card-inner_mlccj_21",nA="_watch-later_mlccj_25",iA="_badge_mlccj_28",oA="_recommend-reason_mlccj_37",aA="_bangumi-desc_mlccj_52",sA="_btn-dislike_mlccj_55",lA="_btn-dislike-icon_mlccj_70",cA="_btn-dislike-tip_mlccj_77",uA="_disliked-wrapper_mlccj_92",dA="_dislike-content-cover_mlccj_106",fA="_dislike-content-cover-inner_mlccj_112",hA="_dislike-icon_mlccj_123",gA="_dislike-reason_mlccj_126",mA="_dislike-desc_mlccj_130",vA="_dislike-content-action_mlccj_134",pA="_skeleton-active_mlccj_151",bA="_ant-skeleton-loading_mlccj_1",dt={biliVideoCard:JM,imageWrapper:eA,previewCardWrapper:tA,previewCardInner:rA,watchLater:nA,badge:iA,recommendReason:oA,bangumiDesc:aA,btnDislike:sA,btnDislikeIcon:lA,btnDislikeTip:cA,dislikedWrapper:uA,dislikeContentCover:dA,dislikeContentCoverInner:fA,dislikeIcon:hA,dislikeReason:gA,dislikeDesc:mA,dislikeContentAction:vA,skeletonActive:pA,antSkeletonLoading:bA};function yA(...e){for(const t of e)if(!isNaN(t))return t;return 0}function wA({className:e,videoDuration:t,pvideo:r,mouseEnterRelativeX:n,previewAnimationProgress:i}){const o=h.useRef(null),a=cM(o),[s,l]=h.useState(()=>({width:0,height:0}));Nd(()=>{var f;const d=(f=o.current)==null?void 0:f.getBoundingClientRect();d&&l({width:d.width,height:d.height});});let c=0;if(typeof i=="number")c=i;else {const d=yA(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:q(dt.previewCardWrapper,e),children:!!(r&&s.width&&s.height&&c)&&F(SA,{...u})})}function SA({videoDuration:e,pvideo:t,elWidth:r,elHeight:n,progress:i}){var w;const o=Math.floor((e||0)*i);let a=h.useMemo(()=>{const S=(t==null?void 0:t.index)||[];let y=$A(S,o);return y!==-1?y:o>S[S.length-1]?(y=Math.floor(S.length*i)-1,y<0&&(y=0),y):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 f=Math.floor(a/d),g=a-f*d,v=((w=t.image)==null?void 0:w[f])||"",m=Math.floor(g/s)+1,p=g-(m-1)*s,b=r*s,$=n*l,C=(m-1)*n,O=(p-1)*r;return F("div",{className:dt.previewCardInner,style:{backgroundColor:"black",backgroundImage:`url(${v})`,backgroundPosition:`-${O}px -${C}px`,backgroundSize:`${b}px ${$}px`},children:F(CA,{progress:i})})}function CA({progress:e}){return F("div",{className:"track",style:{position:"absolute",bottom:0,left:0,backgroundColor:"#eee",width:"100%",height:2},children:F("div",{className:"bar",style:{backgroundColor:"#fa6a9d",height:"100%",width:`${e*100}%`}})})}function $A(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 Ru={play:"#widget-video-play-count",danmaku:"#widget-video-danmaku",like:"#widget-agree",bangumiFollow:"#widget-followed"},zo={1:"play",2:"like",3:"danmaku",4:"bangumiFollow",20:"like"},EA={bangumiFollow:1.3},xA=e=>{const t=zo[e]||zo[1];return Ru[t]},_A=e=>{const t=zo[e];if(t)return EA[t]};function rg(e){return {iconSvgName:xA(e),iconSvgScale:_A(e)}}function Vp(e){var S,y,T;const t=e.api==="pc",r=e.api==="app",n=String(t?e.id:e.param),i=t?e.bvid:"",o=e.goto,a=P=>{if(t)return;const{cover_left_icon_1:_,cover_left_text_1:N,cover_left_icon_2:A,cover_left_text_2:E}=e;if(_&&zo[_]===P)return tg(N);if(A&&zo[A]===P)return tg(E)},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,f=t?e.pic:e.cover,g=t?e.pubdate:void 0,v=(t?e.duration:(S=e.player_args)==null?void 0:S.duration)||0,m=t?e.owner.name:e.args.up_name,p=t?e.owner.face:void 0,b=t?e.owner.mid:e.args.up_id,$=void 0,C=t?void 0:e.badge,O=t?void 0:((y=e.desc_button)==null?void 0:y.text)||"",w=t?(T=e.rcmd_reason)==null?void 0:T.content:e.rcmd_reason;return {isPc:t,isApp:r,id:n,bvid:i,goto:o,play:s,like:l,coin:c,danmaku:u,title:d,coverRaw:f,pubdate:g,duration:v,name:m,face:p,mid:b,favorite:$,bangumiBadge:C,bangumiDesc:O,rcmd_reason:w}}const OA=Zs().format("YYYY"),PA=e=>{if(!e)return "";const t=Zs.unix(e);return t.format("YYYY")===OA?t.format("M-D"):t.format("YY-M-D")},TA=e=>(e||"").replace(/^http:\/\//,"https://"),Cs=h.memo(h.forwardRef(function({style:t,className:r,item:n,loading:i,active:o,...a},s){i=i??!n;const l=U("div",{className:q("bili-video-card__skeleton",{hide:!i,[dt.skeletonActive]:i}),children:[F("div",{className:"bili-video-card__skeleton--cover"}),F("div",{className:"bili-video-card__skeleton--info",children:U("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=qM((n==null?void 0:n.api)==="app"&&n.param),u=h.useRef(null),d=h.useRef(null);return h.useImperativeHandle(s,()=>({async onCancelDislike(){var f;await((f=u.current)==null?void 0:f.onCancelDislike());},async onToggleWatchLater(){var f;await((f=d.current)==null?void 0:f.onToggleWatchLater());},onTriggerDislike(){var f;(f=d.current)==null||f.onTriggerDislike();},onStartPreviewAnimation(){var f;(f=d.current)==null||f.onStartPreviewAnimation();},onHotkeyPreviewAnimation(){var f;(f=d.current)==null||f.onHotkeyPreviewAnimation();}}),[u,d]),U("div",{style:t,className:q("bili-video-card",dt.biliVideoCard,r),"data-report":"partition_recommend.content",...a,children:[l,!i&&n&&(c?F(RA,{ref:u,item:n,dislikedReason:c}):F(MA,{ref:d,item:n,active:o}))]})})),RA=h.memo(h.forwardRef(function({dislikedReason:t,item:r},n){const i=Le(async()=>{if(!(t!=null&&t.id))return;let o=!1,a;try{o=await LM(r,t.id);}catch(s){a=s;}if(a)return console.error(a.stack||a),Rp();o?Ht("已撤销"):Mp(),o&&Sl.delete(r.param);});return h.useImperativeHandle(n,()=>({onCancelDislike:i}),[]),U("div",{className:q(dt.dislikedWrapper),children:[F("div",{className:dt.dislikeContentCover,children:U("div",{className:dt.dislikeContentCoverInner,children:[F(Nn,{name:"DistraughtFace",size:32,className:dt.dislikeIcon}),F("div",{className:dt.dislikeReason,children:t==null?void 0:t.name}),F("div",{className:dt.dislikeDesc,children:(t==null?void 0:t.toast)||"将减少此类内容推荐"})]})}),F("div",{className:dt.dislikeContentAction,children:U("button",{onClick:i,children:[F(Nn,{name:"Return",size:"16",style:{marginRight:4,marginTop:-2}}),"撤销"]})})]})})),MA=h.memo(h.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:f,title:g,coverRaw:v,pubdate:m,duration:p,name:b,face:$,mid:C,favorite:O,bangumiBadge:w,bangumiDesc:S,rcmd_reason:y}=Vp(t);["av","bangumi"].includes(l)||console.warn(`[${Bi}]: none (av,bangumi) goto type %s`,l,t);const T=h.useMemo(()=>PA(m),[m]),P=h.useMemo(()=>TA(v),[v]),[_,N]=h.useState(null),A=h.useRef(!1),E=Le(async()=>{if(!_&&!A.current)try{A.current=!0,N(await NM(a));}finally{A.current=!1;}}),x=h.useRef(null),[M,I]=h.useState(void 0);Zn("mouseenter",Ie=>{var vt;const Te=(vt=x.current)==null?void 0:vt.getBoundingClientRect();if(!Te)return;const{x:Ue}=Te,Ze=Ie.pageX-window.pageXOffset-Ue;I(Ze);},{target:x});const k=mc(x),{autoPreviewWhenHover:L}=fn(),{onStartPreviewAnimation:D,onHotkeyPreviewAnimation:H,previewAnimationProgress:V}=AA({id:a,title:g,autoPreviewWhenHover:L,active:r,tryFetchVideoData:E,videoPreviewWrapperRef:x});ws(()=>{r&&(unsafeWindow[`${H0}_activeItem`]=t,Ee.autoPreviewWhenKeyboardSelect&&D());},[r]);const W=h.useRef(null),B=mc(W),[re,z]=h.useState(!1),{accessKey:le}=fn(),ie=!!le;h.useEffect(()=>{k&&E();},[k]),h.useImperativeHandle(n,()=>({onToggleWatchLater:pe,onTriggerDislike:ve,onStartPreviewAnimation:D,onHotkeyPreviewAnimation:H}),[]);const[me,ee]=h.useState(!1),pe=Le(async Ie=>{if(Ie==null||Ie.preventDefault(),me)return;ee(!0);const Te=re?IM:kM;let Ue=!1;try{Ue=await Te(a);}finally{ee(!1);}Ue&&z(Ze=>!Ze);}),xe=h.useRef(null),De=mc(xe),ve=Le(Ie=>{Ie==null||Ie.stopPropagation(),Ie==null||Ie.preventDefault(),o&&ZM(t);}),$e=t.goto==="bangumi",Pe=t.goto==="av",He=i?Pe&&s?`/video/${s}`:t.uri:Pe?`/video/av${t.param}`:t.uri,oe=h.useMemo(()=>QM(p),[p]),Q=h.useMemo(()=>bc(c),[c]),ae=h.useMemo(()=>bc(u),[u]),we=h.useMemo(()=>bc(O),[O]),gt=i?ae:we,nt=Le(Ie=>{if(!Ee.openInIINAWhenRightClick)return;const Te=new URL(He,location.href).href,Ue=`iina://open?url=${encodeURIComponent(Te)}`;window.open(Ue,"_self"),Ie.preventDefault();}),mt=({text:Ie,iconSvgName:Te,iconSvgScale:Ue})=>U("span",{className:"bili-video-card__stats--item",children:[F("svg",{className:"bili-video-card__stats--icon",style:{transform:Ue?`scale(${Ue})`:void 0},children:F("use",{href:Te})}),F("span",{className:"bili-video-card__stats--text",children:Ie})]});return U("div",{className:"bili-video-card__wrap __scale-wrap",onContextMenu:nt,children:[F("a",{href:He,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:U("div",{className:"bili-video-card__image __scale-player-wrap",ref:x,children:[U("div",{className:q("bili-video-card__image--wrap",dt.imageWrapper),children:[U("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:g,loading:"eager"})]}),(k||typeof V=="number")&&F(wA,{videoDuration:p,pvideo:_==null?void 0:_.pvideoData,mouseEnterRelativeX:M,previewAnimationProgress:V}),U("div",{className:`bili-watch-later ${dt.watchLater}`,style:{display:k||r?"flex":"none"},ref:W,onClick:pe,children:[F("svg",{className:"bili-watch-later__icon",children:F("use",{href:re?"#widget-watch-save":"#widget-watch-later"})}),F("span",{className:"bili-watch-later__tip",style:{display:B?"block":"none"},children:re?"移除":"稍后再看"})]}),o&&ie&&U("div",{ref:xe,className:dt.btnDislike,onClick:ve,style:{display:k?"flex":"none"},children:[F("svg",{className:dt.btnDislikeIcon,children:F("use",{href:"#widget-close"})}),F("span",{className:dt.btnDislikeTip,style:{display:De?"block":"none"},children:"我不想看"})]})]}),F("div",{className:"bili-video-card__mask",children:U("div",{className:"bili-video-card__stats",children:[F("div",{className:"bili-video-card__stats--left",children:i?U(Dt,{children:[mt({text:Q,iconSvgName:Ru.play}),mt({text:l==="av"?ae:gt,iconSvgName:Ru.like})]}):U(Dt,{children:[t.cover_left_text_1&&mt({...rg(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&&mt({...rg(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:Pe&&oe})]})})]})}),F("div",{className:"bili-video-card__info __scale-disable",children:U("div",{className:"bili-video-card__info--right",children:[F("a",{href:He,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:F("h3",{className:"bili-video-card__info--tit",title:g,children:g})}),U("p",{className:"bili-video-card__info--bottom",children:[Pe&&U("a",{className:"bili-video-card__info--owner",href:`//space.bilibili.com/${C}`,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:[y?F("span",{className:dt.recommendReason,children:y}):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}),T&&U("span",{className:"bili-video-card__info--date",children:["· ",T]})]}),$e&&U("a",{className:"bili-video-card__info--owner",href:He,target:"_blank",children:[F("span",{className:dt.badge,children:w||""}),F("span",{className:dt.bangumiDesc,children:S||""})]})]})]})})]})}));function AA({id:e,title:t,autoPreviewWhenHover:r,active:n,tryFetchVideoData:i,videoPreviewWrapperRef:o}){const[s,l]=Tp(void 0),[c,u]=h.useState(!1),d=h.useRef(!1),f=h.useRef(!1);Zn("mouseenter",T=>{d.current=!0,r&&!v.current&&y(!0);},{target:o}),Zn("mouseleave",T=>{d.current=!1;},{target:o}),Zn("mousemove",T=>{u(!0),r||p();},{target:o});const g=dM(),v=h.useRef(void 0),m=Le(()=>{if(g.current)return !0;if(r){if(f.current){if(!d.current)return !0}else if(!n)return !0}else if(!n||c)return !0;return !1}),p=Le((T=!1)=>{v.current&&cancelAnimationFrame(v.current),v.current=void 0,l(void 0),$(!1);}),[b,$,C]=JR(!1),O=h.useRef(),w=Le(()=>{var T;if(!v.current){y();return}$(P=>!P),b&&((T=O.current)==null||T.call(O,s||0));}),S=Le(()=>s||0),y=Le((T=!1)=>{f.current=T,u(!1),$(!1),i(),p(!0),l(x=>typeof x>"u"?0:x);const P=8e3,_=()=>typeof Ee.autoPreviewUpdateInterval=="number"?Ee.autoPreviewUpdateInterval:400;let N=performance.now(),A=0;O.current=()=>{N=performance.now()-S()*P;};function E(x){if(m()){p();return}const M=()=>{const I=performance.now()-N,k=Math.min(I%P/P,1);l(k);};C()||(_()?(!A||performance.now()-A>=_())&&(A=performance.now(),M()):M()),v.current=requestAnimationFrame(E);}v.current=requestAnimationFrame(E);});return {onHotkeyPreviewAnimation:w,onStartPreviewAnimation:y,previewAnimationProgress:s}}const Fd="_video-grid_tu03i_9",NA="_limit-two-lines_tu03i_19",Up="_internal-testing_tu03i_51",kA="_narrow-mode_tu03i_79";function IA({enabled:e,refresh:t,minIndex:r=0,maxIndex:n,containerRef:i,getScrollerRect:o,changeScrollY:a,videoCardRefs:s}){const[l,c]=h.useState(void 0),u=Le(()=>!(!e||lp())),d=Le(()=>{var y;if(typeof l!="number"||!i.current)return !1;const w=o(),S=(y=i.current.querySelector(`.${Un.card}.${Un.cardActive}`))==null?void 0:y.getBoundingClientRect();return !(!w||!S||S.top-w.top<-(w.height+S.height)||S.top-w.top>w.height*2+S.height)}),f=w=>S=>{if(!u())return;S==null||S.preventDefault();let y=typeof w=="number"?w:w();const T=d()?l+y:m();if(T<r){C(r);return}if(T>n){C(n);return}c(T),C(T);};yt("leftarrow",f(-1),{exactMatch:!0}),yt("rightarrow",f(1),{exactMatch:!0});const g=()=>Ld(i.current);yt("uparrow",f(()=>-g()),{exactMatch:!0}),yt("downarrow",f(g),{exactMatch:!0});const v=()=>{u()&&c(void 0);};yt("esc",v),yt("enter",()=>{!u()||typeof l!="number"||O(l);}),yt("backspace",()=>{var w;!u()||typeof l!="number"||(w=s[l])==null||w.onTriggerDislike();}),yt(["s","w"],()=>{var w;!u()||typeof l!="number"||(w=s[l])==null||w.onToggleWatchLater();},{exactMatch:!0}),yt(["period","p"],()=>{var w;!u()||typeof l!="number"||(w=s[l])==null||w.onHotkeyPreviewAnimation();},{exactMatch:!0});function m(){const w=o();if(!w)return 0;const S=b();for(let y=0;y<S.length;y++)if(S[y].getBoundingClientRect().top>=w.top)return y;return 0}const p=`.${Un.card}`;function b(){var w;return [...((w=i.current)==null?void 0:w.querySelectorAll(p))||[]]}function $(w){return b()[w]}function C(w){var P;const S=$(w);(P=S==null?void 0:S.scrollIntoViewIfNeeded)==null||P.call(S,!1);const y=o(),T=S.getBoundingClientRect();if(!(!y||!T)){if(T.top<=y.top){const _=-(y.top-T.top+10);a==null||a({offset:_});return}if(y.bottom-T.bottom<10){const _=10-(y.bottom-T.bottom);a==null||a({offset:_});return}}}function O(w){const S=$(w);if(!S)return;const y=S.querySelector(".bili-video-card__wrap > a");y==null||y.click();}return {activeIndex:l,clearActiveIndex:v}}const ng=new Map;function Ld(e){if(Ee.useNarrowMode)return 2;let t=ng.get(window.innerWidth);if(t)return t;if(e||(e=document.querySelector(`.${Fd}`)),!e)return 0;const r=window.getComputedStyle(e);return r.display!=="grid"?0:(t=r.gridTemplateColumns.split(" ").length,ng.set(window.innerWidth,t),t)}function Gp(){return Ee.filterMinDurationEnabled||Ee.filterMinPlayCountEnabled}function qp(e){return Gp()?e.filter(t=>{const{play:r,duration:n}=Vp(t);return !(typeof r=="number"&&Ee.filterMinPlayCountEnabled&&Ee.filterMinPlayCount&&r<Ee.filterMinPlayCount||n&&Ee.filterMinDurationEnabled&&Ee.filterMinDuration&&n<Ee.filterMinDuration)}):e}var Ho={},FA={get exports(){return Ho},set exports(e){Ho=e;}},$s={},LA={get exports(){return $s},set exports(e){$s=e;}},$o={},DA={get exports(){return $o},set exports(e){$o=e;}},ot=DA.exports={},Mr,Ar;function Mu(){throw new Error("setTimeout has not been defined")}function Au(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Mr=setTimeout:Mr=Mu;}catch{Mr=Mu;}try{typeof clearTimeout=="function"?Ar=clearTimeout:Ar=Au;}catch{Ar=Au;}})();function Kp(e){if(Mr===setTimeout)return setTimeout(e,0);if((Mr===Mu||!Mr)&&setTimeout)return Mr=setTimeout,setTimeout(e,0);try{return Mr(e,0)}catch{try{return Mr.call(null,e,0)}catch{return Mr.call(this,e,0)}}}function jA(e){if(Ar===clearTimeout)return clearTimeout(e);if((Ar===Au||!Ar)&&clearTimeout)return Ar=clearTimeout,clearTimeout(e);try{return Ar(e)}catch{try{return Ar.call(null,e)}catch{return Ar.call(this,e)}}}var an=[],_i=!1,Vn,Qa=-1;function zA(){!_i||!Vn||(_i=!1,Vn.length?an=Vn.concat(an):Qa=-1,an.length&&Xp());}function Xp(){if(!_i){var e=Kp(zA);_i=!0;for(var t=an.length;t;){for(Vn=an,an=[];++Qa<t;)Vn&&Vn[Qa].run();Qa=-1,t=an.length;}Vn=null,_i=!1,jA(e);}}ot.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];an.push(new Yp(e,t)),an.length===1&&!_i&&Kp(Xp);};function Yp(e,t){this.fun=e,this.array=t;}Yp.prototype.run=function(){this.fun.apply(null,this.array);};ot.title="browser";ot.browser=!0;ot.env={};ot.argv=[];ot.version="";ot.versions={};function wn(){}ot.on=wn;ot.addListener=wn;ot.once=wn;ot.off=wn;ot.removeListener=wn;ot.removeAllListeners=wn;ot.emit=wn;ot.prependListener=wn;ot.prependOnceListener=wn;ot.listeners=function(e){return []};ot.binding=function(e){throw new Error("process.binding is not supported")};ot.cwd=function(){return "/"};ot.chdir=function(e){throw new Error("process.chdir is not supported")};ot.umask=function(){return 0};var Nu;typeof Object.create=="function"?Nu=function(t,r){t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}});}:Nu=function(t,r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t;};const Zp=Nu;var HA=/%[sdj%]/g;function Hi(e){if(!sa(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(Hr(arguments[r]));return t.join(" ")}for(var r=1,n=arguments,i=n.length,o=String(e).replace(HA,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])aa(a)||!ni(a)?o+=" "+a:o+=" "+Hr(a);return o}function Dd(e,t){if(jr(global.process))return function(){return Dd(e,t).apply(this,arguments)};if($o.noDeprecation===!0)return e;var r=!1;function n(){if(!r){if($o.throwDeprecation)throw new Error(t);$o.traceDeprecation?console.trace(t):console.error(t),r=!0;}return e.apply(this,arguments)}return n}var Fa={},yc;function Qp(e){if(jr(yc)&&(yc={}.NODE_DEBUG||""),e=e.toUpperCase(),!Fa[e])if(new RegExp("\\b"+e+"\\b","i").test(yc)){var t=0;Fa[e]=function(){var r=Hi.apply(null,arguments);console.error("%s %d: %s",e,t,r);};}else Fa[e]=function(){};return Fa[e]}function Hr(e,t){var r={seen:[],stylize:BA};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),Cl(t)?r.showHidden=t:t&&Wd(r,t),jr(r.showHidden)&&(r.showHidden=!1),jr(r.depth)&&(r.depth=2),jr(r.colors)&&(r.colors=!1),jr(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=WA),Es(r,e,r.depth)}Hr.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]};Hr.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function WA(e,t){var r=Hr.styles[t];return r?"\x1B["+Hr.colors[r][0]+"m"+e+"\x1B["+Hr.colors[r][1]+"m":e}function BA(e,t){return e}function VA(e){var t={};return e.forEach(function(r,n){t[r]=!0;}),t}function Es(e,t,r){if(e.customInspect&&t&&_o(t.inspect)&&t.inspect!==Hr&&!(t.constructor&&t.constructor.prototype===t)){var n=t.inspect(r,e);return sa(n)||(n=Es(e,n,r)),n}var i=UA(e,t);if(i)return i;var o=Object.keys(t),a=VA(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),xo(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return wc(t);if(o.length===0){if(_o(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(Eo(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(xs(t))return e.stylize(Date.prototype.toString.call(t),"date");if(xo(t))return wc(t)}var l="",c=!1,u=["{","}"];if(jd(t)&&(c=!0,u=["[","]"]),_o(t)){var d=t.name?": "+t.name:"";l=" [Function"+d+"]";}if(Eo(t)&&(l=" "+RegExp.prototype.toString.call(t)),xs(t)&&(l=" "+Date.prototype.toUTCString.call(t)),xo(t)&&(l=" "+wc(t)),o.length===0&&(!c||t.length==0))return u[0]+l+u[1];if(r<0)return Eo(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var f;return c?f=GA(e,t,r,a,o):f=o.map(function(g){return ku(e,t,r,a,g,c)}),e.seen.pop(),qA(f,l,u)}function UA(e,t){if(jr(t))return e.stylize("undefined","undefined");if(sa(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(zd(t))return e.stylize(""+t,"number");if(Cl(t))return e.stylize(""+t,"boolean");if(aa(t))return e.stylize("null","null")}function wc(e){return "["+Error.prototype.toString.call(e)+"]"}function GA(e,t,r,n,i){for(var o=[],a=0,s=t.length;a<s;++a)ib(t,String(a))?o.push(ku(e,t,r,n,String(a),!0)):o.push("");return i.forEach(function(l){l.match(/^\d+$/)||o.push(ku(e,t,r,n,l,!0));}),o}function ku(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")),ib(n,i)||(a="["+i+"]"),s||(e.seen.indexOf(l.value)<0?(aa(r)?s=Es(e,l.value,null):s=Es(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")),jr(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 qA(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 jd(e){return Array.isArray(e)}function Cl(e){return typeof e=="boolean"}function aa(e){return e===null}function Jp(e){return e==null}function zd(e){return typeof e=="number"}function sa(e){return typeof e=="string"}function eb(e){return typeof e=="symbol"}function jr(e){return e===void 0}function Eo(e){return ni(e)&&Hd(e)==="[object RegExp]"}function ni(e){return typeof e=="object"&&e!==null}function xs(e){return ni(e)&&Hd(e)==="[object Date]"}function xo(e){return ni(e)&&(Hd(e)==="[object Error]"||e instanceof Error)}function _o(e){return typeof e=="function"}function tb(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}function rb(e){return Buffer.isBuffer(e)}function Hd(e){return Object.prototype.toString.call(e)}function Sc(e){return e<10?"0"+e.toString(10):e.toString(10)}var KA=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function XA(){var e=new Date,t=[Sc(e.getHours()),Sc(e.getMinutes()),Sc(e.getSeconds())].join(":");return [e.getDate(),KA[e.getMonth()],t].join(" ")}function nb(){console.log("%s - %s",XA(),Hi.apply(null,arguments));}function Wd(e,t){if(!t||!ni(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}function ib(e,t){return Object.prototype.hasOwnProperty.call(e,t)}const YA={inherits:Zp,_extend:Wd,log:nb,isBuffer:rb,isPrimitive:tb,isFunction:_o,isError:xo,isDate:xs,isObject:ni,isRegExp:Eo,isUndefined:jr,isSymbol:eb,isString:sa,isNumber:zd,isNullOrUndefined:Jp,isNull:aa,isBoolean:Cl,isArray:jd,inspect:Hr,deprecate:Dd,format:Hi,debuglog:Qp},ZA=Object.freeze(Object.defineProperty({__proto__:null,_extend:Wd,debuglog:Qp,default:YA,deprecate:Dd,format:Hi,inherits:Zp,inspect:Hr,isArray:jd,isBoolean:Cl,isBuffer:rb,isDate:xs,isError:xo,isFunction:_o,isNull:aa,isNullOrUndefined:Jp,isNumber:zd,isObject:ni,isPrimitive:tb,isRegExp:Eo,isString:sa,isSymbol:eb,isUndefined:jr,log:nb},Symbol.toStringTag,{value:"Module"})),QA=f0(ZA);var JA=QA.format;function eN(){(typeof AbortController>"u"||typeof AbortSignal>"u")&&console.error("[promise.timeout] need global AbortController & AbortSingal");}function tN(e,t){return function(){var r=this,n=[].slice.call(arguments);eN();var i=new AbortController;return n.push(i.signal),new Promise(function(o,a){var s=setTimeout(function(){var l=new ob(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 ob=class ab extends Error{constructor(t){super(),this.timeout=t,this.message=JA("timeout of %sms exceed",t),Error.captureStackTrace(this,ab);}};LA.exports=tN;$s.TimeoutError=ob;const sb=$s,rN=sb.TimeoutError;FA.exports=function(t,r){const n=t;r=r||{};const i=r.times||5,o=r.timeout;o&&(t=sb(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,f;try{d=await t.apply(s,l);}catch(g){f=g;}if(!f)return d;if(f instanceof TypeError)throw f;if(f instanceof nN)throw f.originalError;c[u]=f,a&&a(f,u);}throw new lb({times:i,timeout:o,fn:n,errors:c})}};class lb 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 nN 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 iN=Ho.RetryError=lb;Ho.TimeoutError=rN;class Bd extends Error{constructor(t){super(),Error.captureStackTrace(this,Bd),this.json=t,this.message=t.message||JSON.stringify(t);}}const oN=10;async function aN(){var n;const t=(await wl.get(kp+"/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 Bd(t);return Ht(`${Bi}: 未知错误, 请联系开发者

  code=${t.code} message=${t.message||""}`,5e3),[]}return ((n=t==null?void 0:t.data)==null?void 0:n.items)||[]}const sN=Ho(aN,{times:5,timeout:2e3,onerror(e,t){console.info("[%s] tryGetRecommend onerror: index=%s",Bi,t,e);}});async function ig(){try{return await sN()}catch(e){if(e instanceof iN){console.error(e.errors);const t=[Hi("请求出错, 已重试%s次:",e.times),...e.errors.map((r,n)=>Hi("  %s) %s",n+1,r.message)),"","请重新获取 access_key 后重试~"].join(`
`);Ht(t,5e3);}throw e}}async function cb(e){let t=[];const r=async()=>{t=(await Promise.all(new Array(e).fill(0).map(()=>ig()))).flat();},n=async()=>{for(let i=1;i<=e;i++)t=t.concat(await ig());};return await(Ee.useParallelRequest?r:n)(),t=Ys(t,i=>i.param),t.map(i=>({...i,api:"app",uniqId:i.param+"-"+crypto.randomUUID()}))}const ub=14;async function og(e){const t=e.page++;return (await yl.get("/x/web-interface/index/top/rcmd",{baseURL:Np,withCredentials:!0,params:{fresh_type:3,version:1,ps:ub,fresh_idx:t,fresh_idx_1h:t,homepage_ver:1}})).data.data.item}async function db(e,t){let r=[];const n=async()=>{r=(await Promise.all(new Array(e).fill(0).map(()=>og(t)))).flat();},i=async()=>{for(let o=1;o<=e;o++)r=r.concat(await og(t));};return await(Ee.useParallelRequest?n:i)(),r=Ys(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"}))}const Ja=e=>e.api==="pc"?e.id:e.param;function lN(e,t){const r=e.map(Ja);return t=Ys(t,Ja),e.concat(t.filter(n=>!r.includes(Ja(n))))}async function fb(e,t,r){let n=[],i=async o=>{const a=Ee.usePcDesktopApi?ub:oN,s=Gp()?r:1.2,l=Math.ceil(o*s/a);let c=Ee.usePcDesktopApi?await db(l,t):await cb(l);c=qp(c),n=n.concat(c),n=Ys(n,Ja);};for(await i(e);n.length<e;)await i(e-n.length);return n}async function cN(e){return fb(Ld()*2,e,3)}async function uN(e){return fb(Ld()*3,e,5)}async function dN(e,t){let r=Ee.usePcDesktopApi?await db(e,t):await cb(e);return r=qp(r),r}var Nt={},fN={get exports(){return Nt},set exports(e){Nt=e;}},hN="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",gN=hN,mN=gN;function hb(){}function gb(){}gb.resetWarningCache=hb;var vN=function(){function e(n,i,o,a,s,l){if(l!==mN){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:gb,resetWarningCache:hb};return r.PropTypes=r,r};fN.exports=vN();class Iu extends h.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:f,useWindow:g,getScrollParent:v,...m}=t;m.ref=b=>{this.scrollComponent=b,u&&u(b);};const p=[r];return i&&(s?a?p.unshift(s):p.push(s):this.defaultLoader&&(a?p.unshift(this.defaultLoader):p.push(this.defaultLoader))),h.createElement(n,m,p)}}Ke(Iu,"propTypes",{children:Nt.node.isRequired,element:Nt.node,hasMore:Nt.bool,initialLoad:Nt.bool,isReverse:Nt.bool,loader:Nt.node,loadMore:Nt.func.isRequired,pageStart:Nt.number,ref:Nt.func,getScrollParent:Nt.func,threshold:Nt.number,useCapture:Nt.bool,useWindow:Nt.bool}),Ke(Iu,"defaultProps",{element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null});const Un={loader:hc`
    text-align: center;
    line-height: 60px;
    font-size: 120%;
  `,card:hc`
    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:hc`
    border-color: #fb7299;
    border-radius: 6px;
    overflow: hidden;
  `},mb=h.forwardRef(({infiteScrollUseWindow:e,shortcutEnabled:t,onScrollToTop:r,className:n,scrollerRef:i},o)=>{const[a,s]=h.useState([]),[l,c]=h.useState(!1),[u,d]=h.useState(!1),f=h.useMemo(()=>({page:1}),[]),g=Le(async()=>{await(r==null?void 0:r());try{const y=performance.now();w(),c(!0),d(!0),s([]),f.page=1,s(await uN(f)),w();const T=performance.now()-y;}finally{c(!1),d(!1);}});h.useImperativeHandle(o,()=>({refresh:g}),[]),Nd(g);const v=Le(async()=>{const y=await dN(2,f);s(T=>lN(T,y));}),{useNarrowMode:m}=fn(),p=h.useRef(null),b=Le(()=>{var y;if(e){const T=im+50;return new DOMRect(0,T,window.innerWidth,window.innerHeight-T)}else return (y=i==null?void 0:i.current)==null?void 0:y.getBoundingClientRect()}),$=XM(),C=h.useMemo(()=>new Array(a.length).fill(void 0),[a.length]),{activeIndex:O,clearActiveIndex:w}=IA({enabled:t&&!$,refresh:g,maxIndex:a.length-1,containerRef:p,getScrollerRect:b,videoCardRefs:C,changeScrollY:e?function({offset:y,absolute:T}){const P=document.documentElement;if(typeof y=="number"){P.scrollTop+=y;return}if(typeof T=="number"){P.scrollTop=T;return}}:void 0}),S=Io();return F(Iu,{pageStart:0,loadMore:v,hasMore:!0,useWindow:e,threshold:window.innerHeight,style:{minHeight:"100%"},loader:F("div",{className:Un.loader,children:"加载中..."},0),children:U("div",{ref:p,className:q(Fd,{[Up]:S},{[kA]:m},n),children:[u&&new Array(24).fill(void 0).map((y,T)=>F(Cs,{loading:!0,className:q(Un.card)},T)),a.map((y,T)=>{const P=T===O;return F(Cs,{ref:_=>C[T]=_,className:q(Un.card,{[Un.cardActive]:P}),loading:l,item:y,active:P},y.uniqId)})]})})}),vb=F(Ei,{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 pb({style:e,className:t}){const{runAsync:r,loading:n}=xp(OM,{manual:!0}),{accessKey:i}=fn();return F(Lv,{size:"small",style:e,className:t,children:i?U(Dt,{children:[F(Ei,{onClick:r,disabled:n,children:F("span",{children:"重新获取 access_key"})}),F(Ei,{onClick:PM,children:F("span",{children:"删除 access_key"})})]}):U(Dt,{children:[vb,F(Ei,{onClick:r,disabled:n,size:"middle",children:F("span",{children:"获取 access_key"})})]})})}function vr({configKey:e,label:t,className:r,extraAction:n,tooltip:i}){const a=!!fn()[e],s=h.useCallback(c=>{const u=c.target.checked;ns({[e]:u}),n==null||n(u);},[]);let l=t||e;return i&&(l=F(yd,{title:i,zIndex:11100,overlayStyle:{width:"max-content",maxWidth:"50vw"},children:l})),F(NT,{className:r,checked:a,onChange:s,children:l})}var pN={name:"1qkltea",styles:"margin-left:5px"};const bN=function(){const e=pN;return U(Dt,{children:[F(vr,{configKey:"initialShowMore",label:"自动查看更多",css:e}),F(vr,{configKey:"useNarrowMode",label:"启用居中模式",css:e})]})},yN="_config-icon_15g5q_1",wN="_settings-group_15g5q_6",SN="_settings-group-title_15g5q_9",CN="_settings-group-content_15g5q_14",$N="_row_15g5q_20",EN="_check_15g5q_28",Ce={configIcon:yN,settingsGroup:wN,settingsGroupTitle:SN,settingsGroupContent:CN,row:$N,check:EN};async function bb(){Ht("即将刷新网页"),await zi(500),location.reload();}function xN(){if(window.confirm("确定?"))return WC(),bb()}function Cc(e,t,r){return yt(e,()=>{Ee[t]=!Ee[t];const n=!Ee[t];Ht(`已${n?"禁用":"启用"}「${r}」`);},{exactMatch:!0})}function _N({show:e,onHide:t}){const{usePcDesktopApi:r,autoPreviewUpdateInterval:n,filterMinPlayCount:i,filterMinPlayCountEnabled:o,filterMinDuration:a,filterMinDurationEnabled:s}=fn();return Cc(["shift.p"],"autoPreviewWhenKeyboardSelect","键盘选中后自动开始预览"),Cc(["shift.m"],"autoPreviewWhenHover","鼠标悬浮后自动开始预览"),Cc(["shift.c"],"useNarrowMode","居中模式"),U(kd,{show:e,onHide:t,hideWhenMaskOnClick:!0,hideWhenEsc:!0,width:"700px",children:[U("div",{className:xr.modalHeader,children:[U("div",{className:xr.modalTitle,children:[F(Nn,{name:"Config",className:Ce.configIcon}),"设置项"]}),F("div",{className:"space",style:{flex:1}}),F(Id,{onClick:t})]}),U("main",{className:xr.modalBody,children:[U("div",{className:Ce.settingsGroup,children:[F("div",{className:Ce.settingsGroupTitle,children:"接口切换"}),U("div",{className:q(Ce.settingsGroupContent),children:[U(lc.Group,{buttonStyle:"solid",value:r?"desktop":"app",onChange:l=>{const c=l.target.value;Ee.usePcDesktopApi=c==="desktop";},children:[F(lc.Button,{value:"desktop",children:"使用桌面端接口"}),F(lc.Button,{value:"app",children:"使用 App 端接口"})]}),!r&&F("div",{className:Ce.row,style:{marginTop:5},children:F(pb,{})})]})]}),U("div",{className:Ce.settingsGroup,children:[F("div",{className:Ce.settingsGroupTitle,children:"开关"}),U("div",{className:q(Ce.settingsGroupContent,Ce.row),children:[F(vr,{configKey:"pureRecommend",label:"开启纯推荐模式",tooltip:U(Dt,{children:["首页只保留推荐",F("br",{}),"P.S 需要刷新网页~"]}),className:Ce.check,extraAction:bb}),F(vr,{configKey:"initialShowMore",label:"自动查看更多",tooltip:"打开首页时默认打开推荐弹框",className:Ce.check,extraAction:l=>{l&&Ht("已开启自动查看更多: 下次打开首页时将直接展示推荐弹框");}}),F(vr,{configKey:"useNarrowMode",label:"启用居中模式",tooltip:U(Dt,{children:["居中两列",F("br",{}),"切换设置快捷键: ",F(ro,{color:"green",children:"shift+c"})]}),className:Ce.check}),F(vr,{configKey:"useParallelRequest",label:"批量请求时使用并行",tooltip:U(Dt,{children:["并行快但可能有重复",F("br",{}),"推荐视频大量重复时关闭这个试试~"]}),className:Ce.check})]})]}),U("div",{className:Ce.settingsGroup,children:[F("div",{className:Ce.settingsGroupTitle,children:"预览"}),U("div",{className:q(Ce.settingsGroupContent,Ce.row),children:[F(vr,{configKey:"autoPreviewWhenKeyboardSelect",label:"键盘选中后自动开始预览",className:Ce.check,tooltip:U(Dt,{children:["手动预览快捷键: ",F(ro,{color:"green",children:"."})," or ",F(ro,{color:"green",children:"p"}),F("br",{}),"切换设置快捷键: ",F(ro,{color:"green",children:"shift+p"})]})}),F(vr,{configKey:"autoPreviewWhenHover",label:"鼠标悬浮后自动开始预览",className:Ce.check,tooltip:U(Dt,{children:["鼠标悬浮后自动开始预览, 预览不再跟随鼠标位置 ",F("br",{}),"切换设置快捷键: ",F(ro,{color:"green",children:"shift+m"})]})}),U("div",{style:{width:"100%",display:"flex",alignItems:"center"},children:["预览更新间隔",F(y2,{style:{flex:1,margin:"0 15px"},min:0,max:1e3,keyboard:!0,onChange:l=>Ee.autoPreviewUpdateInterval=l,value:n,tooltip:{open:!0}}),U("span",{style:{width:"65px"},children:["(",n,"ms)"]})]})]})]}),U("div",{className:Ce.settingsGroup,children:[U("div",{className:Ce.settingsGroupTitle,children:["视频过滤器",F(P2,{title:"启用视频过滤器会大幅降低加载速度, 谨慎开启!",children:F(Nn,{style:{marginLeft:4,cursor:"pointer"},name:"Info"})})]}),U("div",{className:q(Ce.settingsGroupContent),children:[U("div",{className:Ce.row,children:[F(vr,{configKey:"filterMinPlayCountEnabled",label:"按播放量过滤",tooltip:F(Dt,{children:"不显示播放量很少的视频"})}),F(Bh,{size:"small",min:1,step:1e3,value:i,onChange:l=>l&&ns({filterMinPlayCount:l}),disabled:!o})]}),U("div",{className:Ce.row,style:{marginTop:8},children:[F(vr,{configKey:"filterMinDurationEnabled",label:"按视频时长过滤",tooltip:F(Dt,{children:"不显示短视频"})}),F(Bh,{style:{width:150},size:"small",min:1,step:10,addonAfter:"单位:秒",value:a,onChange:l=>l&&ns({filterMinDuration:l}),disabled:!s})]})]})]}),U("div",{className:Ce.settingsGroup,children:[F("div",{className:Ce.settingsGroupTitle,children:"高级"}),U("div",{className:q(Ce.settingsGroupContent),children:[F("div",{className:Ce.row,children:F(Ei,{onClick:xN,danger:!0,children:"恢复默认设置"})}),F("div",{className:Ce.row,style:{marginTop:10},children:F(vr,{configKey:"openInIINAWhenRightClick",label:"右键在 IINA 中打开",className:Ce.check})})]})]}),U("div",{className:Ce.settingsGroup,children:[F("div",{className:Ce.settingsGroupTitle,children:"帮助"}),F("div",{className:q(Ce.settingsGroupContent),children:F("div",{className:Ce.row,children:U(Lv,{size:"small",children:[F(Ei,{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:"查看可用的快捷键"}),vb]})})})]})]})]})}var Vd={};Object.defineProperty(Vd,"__esModule",{value:!0});var yb=Vd.useSticky=void 0;const $c=h;function ON(){const e=(0, $c.useRef)(null),[t,r]=(0, $c.useState)(!1);return (0, $c.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]}yb=Vd.useSticky=ON;const PN="_expand-btn_wdzp9_1",TN="_expanded_wdzp9_12",ag={expandBtn:PN,expanded:TN},RN=h.forwardRef(function({children:t},r){const[n,i]=_p(!1);h.useImperativeHandle(r,()=>i,[i]);const o=F("button",{className:q("primary-btn",ag.expandBtn),onClick:i.toggle,children:F("svg",{className:q({[ag.expanded]:n}),children:F("use",{href:"#widget-arrow"})})});return U(Dt,{children:[o,n&&t]})}),MN="_modal-mask_juq7d_1",AN="_narrow-mode_juq7d_1",NN="_modal_juq7d_1",kN="_modal-header_juq7d_21",IN="_modal-body_juq7d_22",FN="_btn-refresh_juq7d_25",ao={modalMask:MN,narrowMode:AN,modal:NN,modalHeader:kN,modalBody:IN,btnRefresh:FN},LN=h.memo(function({show:t,onHide:r}){const n=h.useRef(null),i=h.useRef(null),{useNarrowMode:o}=fn(),a=h.useMemo(()=>({[ao.narrowMode]:o}),[o]),s=Le(()=>{var c;return (c=i.current)==null?void 0:c.refresh()}),l=Le(()=>{n.current&&(n.current.scrollTop=0);});return U(kd,{show:t,onHide:r,clsModalMask:q(a),clsModal:q(ao.modal,a),children:[U("div",{className:q(xr.modalHeader,ao.modalHeader),children:[F("div",{className:xr.modalTitle,children:"推荐"}),F("div",{className:"space",style:{flex:1}}),F(RN,{children:F(bN,{})}),F(Cb,{onClick:s,className:ao.btnRefresh,refreshHotkeyEnabled:t}),F(Id,{onClick:r})]}),F("div",{className:q(xr.modalBody,ao.modalBody),ref:n,children:F(mb,{ref:i,shortcutEnabled:t,onScrollToTop:l,infiteScrollUseWindow:!1,scrollerRef:n})})]})}),sg={btn:xi`
    padding: 0;
    width: 31px;
    height: 31px;
    border-radius: 50%;
  `,icon:xi`
    svg {
      width: 14px;
      height: 14px;
    }
  `},Yi=Yo({modalFeedVisible:Ee.initialShowMore,modalConfigVisible:!1}),wb=function(){return Ui(Yi)},DN=()=>{Yi.modalFeedVisible=!0;},jN=()=>{Yi.modalFeedVisible=!1;},zN=()=>{Yi.modalConfigVisible=!0;},HN=()=>{Yi.modalConfigVisible=!1;};function Sb({onRefresh:e,refreshHotkeyEnabled:t}){const{accessKey:r,pureRecommend:n,usePcDesktopApi:i}=fn(),{modalFeedVisible:o,modalConfigVisible:a}=Ui(Yi),[s,l]=yb();return U(Dt,{children:[U("div",{ref:s,className:"area-header",css:[xi`
            margin-bottom: 0;
            height: 50px;
          `,n&&xi`
              position: sticky;
              top: ${im}px;
              z-index: 1000;
            `,n&&l&&xi`
              background-color: var(--bg1_float);
              box-shadow: 0 2px 4px rgb(0 0 0 / 8%);
            `,"",""],children:[U("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:"推荐"})})]}),U("div",{className:"right",children:[!i&&!r&&F(pb,{style:{marginLeft:5}}),F("button",{className:"primary-btn",css:sg.btn,onClick:zN,children:F(Nn,{name:"Config",css:sg.icon})}),F(Cb,{onClick:e,refreshHotkeyEnabled:t}),!n&&U("button",{className:"primary-btn see-more",onClick:DN,children:[F("span",{children:"查看更多"}),F("svg",{children:F("use",{href:"#widget-arrow"})})]})]})]}),F(LN,{show:o,onHide:jN}),F(_N,{show:a,onHide:HN})]})}const Cb=h.forwardRef(function({onClick:e,className:t="",style:r,refreshHotkeyEnabled:n},i){n??(n=!0);const[o,a]=h.useState(0),s=Le(c=>(a(u=>u+360),e==null?void 0:e(c))),l=h.useRef(null);return h.useImperativeHandle(i,()=>({click(){var c;(c=l.current)==null||c.click();}}),[]),yt("r",()=>{var c;n&&(lp()||(c=l.current)==null||c.click());},{exactMatch:!0}),U("button",{className:`primary-btn roll-btn ${t}`,onClick:s,style:r,ref:l,children:[F("svg",{style:{transform:`rotate(${o}deg)`,width:"10px",height:"10px",transition:o===360?"transform .5s ease":"unset"},onTransitionEnd:()=>{a(0);},children:F("use",{href:"#widget-roll"})}),F("span",{children:"换一换"})]})}),WN={grid:xi`
    /* card=299 col-gap=20  */
    width: ${299*2+20}px;
    margin: 0 auto;
  `};function BN(){const{useNarrowMode:e}=fn(),{modalFeedVisible:t,modalConfigVisible:r}=wb(),n=h.useRef(null),i=Le(()=>{var a;return (a=n.current)==null?void 0:a.refresh()}),o=Le(()=>{document.documentElement.scrollTop=0;});return U("section",{"data-area":"推荐",children:[F(Sb,{onRefresh:i,refreshHotkeyEnabled:!(t||r)}),F(mb,{ref:n,css:[e&&WN.grid,"",""],shortcutEnabled:!(t||r),infiteScrollUseWindow:!0,onScrollToTop:o})]})}function VN(){const e=h.useMemo(()=>new Array(20).fill(0).map(()=>crypto.randomUUID()),[]),t=Io(),r=h.useMemo(()=>({page:1}),[]),{data:n,loading:i,error:o,refresh:a}=xp(()=>cN(r));o&&console.error(o.stack||o);const{modalConfigVisible:s,modalFeedVisible:l}=wb();return U("section",{"data-area":"推荐",children:[F(Sb,{onRefresh:a,refreshHotkeyEnabled:!(s||l)}),F("div",{className:q(Fd,NA,{[Up]:t}),style:{marginBottom:t?30:0},children:i||o?e.map(c=>F(Cs,{},c)):n.map(c=>F(Cs,{item:c},c.uniqId))})]})}Zs.extend(UC);(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==="/")return UN()})();async function UN(){return Ba(".adblock-tips"),sp("html.gray",e=>e.classList.remove("gray")),Ee.pureRecommend?qN():GN()}async function GN(){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(Io()&&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 zi(200);}if(!r){console.error(`[${Bi}]: init fail`);return}const n=document.createElement("section");r(n),vl(n).render(F(op,{children:F(VN,{})}));}async function qN(){var i,o;Io()?((i=document.querySelector(".bili-feed4 .bili-feed4-layout"))==null||i.remove(),Ba(".bili-feed4 .header-channel")):((o=document.querySelector(".bili-layout"))==null||o.remove(),Ba(".bili-footer"),Ba(".palette-button-wrap > .primary-btn:first-child"));const e=document.createElement("div");e.classList.add(Io()?"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),vl(r).render(F(op,{children:F(BN,{})}));}});KN();

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

QingJ © 2025

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