您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
为B站首页添加像App一样的推荐
当前为
// ==UserScript== // @name bilibili-app-recommend // @namespace https://magicdawn.fun // @version 0.9.2 // @author magicdawn // @description 为B站首页添加像App一样的推荐 // @license MIT // @homepageURL http://greasyfork.icu/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 // ==/UserScript== (e=>{const i=document.createElement("style");i.dataset.source="vite-plugin-monkey",i.innerText=e,document.head.appendChild(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_mqmiz_1{position:relative}._image-wrapper_mqmiz_4{border-radius:6px;overflow:hidden}._preview-card-wrapper_mqmiz_8{position:absolute;top:0;left:0;right:0;bottom:0;z-index:2;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_mqmiz_8 ._preview-card-inner_mqmiz_21{width:100%;height:100%}._watch-later_mqmiz_25{z-index:3}._badge_mqmiz_28{color:#fa6a9d;border-radius:2px;border:1px #fa6a9d solid;line-height:20px;padding:0 10px;transform:scale(.8)}._recommend-reason_mqmiz_36{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_mqmiz_51{color:default}._btn-dislike_mqmiz_54{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_mqmiz_54 ._btn-dislike-icon_mqmiz_69{pointer-events:none;user-select:none;width:12px;height:12px;color:#fff}._btn-dislike_mqmiz_54 ._btn-dislike-tip_mqmiz_76{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_mqmiz_91{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_mqmiz_91{border:1px solid #333}._disliked-wrapper_mqmiz_91 ._dislike-content-cover_mqmiz_105{border-top-left-radius:6px;border-top-right-radius:6px;padding-top:56.25%;position:relative}._disliked-wrapper_mqmiz_91 ._dislike-content-cover_mqmiz_105 ._dislike-content-cover-inner_mqmiz_111{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}._disliked-wrapper_mqmiz_91 ._dislike-content-cover_mqmiz_105 ._dislike-content-cover-inner_mqmiz_111 ._dislike-icon_mqmiz_122{margin-bottom:5px}._disliked-wrapper_mqmiz_91 ._dislike-content-cover_mqmiz_105 ._dislike-content-cover-inner_mqmiz_111 ._dislike-reason_mqmiz_125{font-size:20px;text-align:center}._disliked-wrapper_mqmiz_91 ._dislike-content-cover_mqmiz_105 ._dislike-content-cover-inner_mqmiz_111 ._dislike-desc_mqmiz_129{font-size:16px;text-align:center}._disliked-wrapper_mqmiz_91 ._dislike-content-action_mqmiz_133{flex:1;width:100%;border-top:1px solid #eee;display:flex;align-items:center;justify-content:center}body.dark ._disliked-wrapper_mqmiz_91 ._dislike-content-action_mqmiz_133{border-top:1px solid #333}._disliked-wrapper_mqmiz_91 ._dislike-content-action_mqmiz_133 button{font-size:16px;color:inherit;display:flex;align-items:center}._skeleton-active_mqmiz_150 .bili-video-card__skeleton--cover,._skeleton-active_mqmiz_150 .bili-video-card__skeleton--text,._skeleton-active_mqmiz_150 .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_mqmiz_1;animation-duration:1.4s;animation-timing-function:ease;animation-iteration-count:infinite}@keyframes _ant-skeleton-loading_mqmiz_1{0%{background-position:100% 50%}to{background-position:0 50%}}._video-grid_14t5i_9{display:grid;position:relative;width:100%;grid-gap:20px 12px}@media (max-width: 1099.9px){._video-grid_14t5i_9{grid-template-columns:repeat(4,1fr)}._video-grid_14t5i_9._limit-two-lines_14t5i_19>*:nth-of-type(1n + 9){display:none!important}}@media (min-width: 1100px) and (max-width: 1700.9px){._video-grid_14t5i_9{grid-template-columns:repeat(5,1fr)}._video-grid_14t5i_9._limit-two-lines_14t5i_19>*:nth-of-type(1n + 11){display:none!important}}@media (min-width: 1701px){._video-grid_14t5i_9{grid-template-columns:repeat(6,1fr)}._video-grid_14t5i_9._limit-two-lines_14t5i_19>*:nth-of-type(1n + 13){display:none!important}}._video-grid_14t5i_9._internal-testing_14t5i_43{grid-gap:20px 20px}@media (max-width: 1399.9px){._video-grid_14t5i_9._internal-testing_14t5i_43{grid-template-columns:repeat(4,1fr)}._video-grid_14t5i_9._internal-testing_14t5i_43._limit-one-line_14t5i_50>*:nth-of-type(1n + 5){display:none!important}._video-grid_14t5i_9._internal-testing_14t5i_43._limit-two-lines_14t5i_19>*:nth-of-type(1n + 9){display:none!important}}@media (min-width: 1400px){._video-grid_14t5i_9._internal-testing_14t5i_43{grid-template-columns:repeat(5,1fr)}._video-grid_14t5i_9._internal-testing_14t5i_43._limit-one-line_14t5i_50>*:nth-of-type(1n + 6){display:none!important}._video-grid_14t5i_9._internal-testing_14t5i_43._limit-two-lines_14t5i_19>*:nth-of-type(1n + 11){display:none!important}}._narrow-mode_14t5i_71{grid-template-columns:repeat(2,1fr)!important}._config-icon_1d50l_1{line-height:1;margin-right:5px;font-size:0}._settings-group_1d50l_6{margin-bottom:10px}._settings-group_1d50l_6 ._settings-group-title_1d50l_9{font-size:2em}._settings-group_1d50l_6 ._settings-group-content_1d50l_12{color:default}._settings-group_1d50l_6 ._settings-group-content_1d50l_12 button:first-child{margin-left:0}._row_1d50l_18{display:flex;align-items:center;flex-wrap:wrap}._row_1d50l_18 .primary-btn:first-child{margin-left:0}._check_1d50l_26{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} `); var jk=Object.defineProperty;var Dk=($,fe,Ee)=>fe in $?jk($,fe,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):$[fe]=Ee;var ze=($,fe,Ee)=>(Dk($,typeof fe!="symbol"?fe+"":fe,Ee),Ee),of=($,fe,Ee)=>{if(!fe.has($))throw TypeError("Cannot "+Ee)};var C=($,fe,Ee)=>(of($,fe,"read from private field"),Ee?Ee.call($):fe.get($)),ie=($,fe,Ee)=>{if(fe.has($))throw TypeError("Cannot add the same private member more than once");fe instanceof WeakSet?fe.add($):fe.set($,Ee)},Y=($,fe,Ee,bn)=>(of($,fe,"write to private field"),bn?bn.call($,Ee):fe.set($,Ee),Ee),ks=($,fe,Ee,bn)=>({set _(Po){Y($,fe,Po,Ee)},get _(){return C($,fe,bn)}}),U=($,fe,Ee)=>(of($,fe,"access private method"),Ee);(function($,fe,Ee,bn){var ti,Rt,_t,ir,Ft,ni,He,Lt,Ve,Ce,Q,ct,Et,it,Xe,Nt,Qe,Cr,xr,It,or,Nr,ht,go,af,nn,_r,po,Ot,ps,mv,on,ii,mo,ar,Dr,sr,zr,vo,sf,oi,As,ai,Ms,ye,$e,bo,cf,an,$o;"use strict";function Po(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const m=Po($),bv=Po(fe);function yv(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 wv(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 Sv=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(wv(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=yv(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}(),tt="-ms-",To="-moz-",de="-webkit-",lf="comm",Rs="rule",Fs="decl",Cv="@import",uf="@keyframes",xv=Math.abs,ko=String.fromCharCode,_v=Object.assign;function Ev(e,t){return Ye(e,0)^45?(((t<<2^Ye(e,0))<<2^Ye(e,1))<<2^Ye(e,2))<<2^Ye(e,3):0}function ff(e){return e.trim()}function Ov(e,t){return(e=t.exec(e))?e[0]:e}function ge(e,t,r){return e.replace(t,r)}function Ls(e,t){return e.indexOf(t)}function Ye(e,t){return e.charCodeAt(t)|0}function mi(e,t,r){return e.slice(t,r)}function Wt(e){return e.length}function Ns(e){return e.length}function Ao(e,t){return t.push(e),e}function $v(e,t){return e.map(t).join("")}var Mo=1,yn=1,df=0,ut=0,Ne=0,wn="";function Ro(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Mo,column:yn,length:a,return:""}}function vi(e,t){return _v(Ro("",null,null,"",null,null,0),e,{length:-e.length},t)}function Pv(){return Ne}function Tv(){return Ne=ut>0?Ye(wn,--ut):0,yn--,Ne===10&&(yn=1,Mo--),Ne}function pt(){return Ne=ut<df?Ye(wn,ut++):0,yn++,Ne===10&&(yn=1,Mo++),Ne}function Ht(){return Ye(wn,ut)}function Fo(){return ut}function bi(e,t){return mi(wn,e,t)}function yi(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 hf(e){return Mo=yn=1,df=Wt(wn=e),ut=0,[]}function gf(e){return wn="",e}function Lo(e){return ff(bi(ut-1,Is(e===91?e+2:e===40?e+1:e)))}function kv(e){for(;(Ne=Ht())&&Ne<33;)pt();return yi(e)>2||yi(Ne)>3?"":" "}function Av(e,t){for(;--t&&pt()&&!(Ne<48||Ne>102||Ne>57&&Ne<65||Ne>70&&Ne<97););return bi(e,Fo()+(t<6&&Ht()==32&&pt()==32))}function Is(e){for(;pt();)switch(Ne){case e:return ut;case 34:case 39:e!==34&&e!==39&&Is(Ne);break;case 40:e===41&&Is(e);break;case 92:pt();break}return ut}function Mv(e,t){for(;pt()&&e+Ne!==47+10;)if(e+Ne===42+42&&Ht()===47)break;return"/*"+bi(t,ut-1)+"*"+ko(e===47?e:pt())}function Rv(e){for(;!yi(Ht());)pt();return bi(e,ut)}function pf(e){return gf(No("",null,null,null,[""],e=hf(e),0,[0],e))}function No(e,t,r,n,i,o,a,s,c){for(var l=0,u=0,f=a,d=0,g=0,v=0,h=1,p=1,b=1,P=0,E="",O=i,S=o,y=n,_=E;p;)switch(v=P,P=pt()){case 40:if(v!=108&&Ye(_,f-1)==58){Ls(_+=ge(Lo(P),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:_+=Lo(P);break;case 9:case 10:case 13:case 32:_+=kv(v);break;case 92:_+=Av(Fo()-1,7);continue;case 47:switch(Ht()){case 42:case 47:Ao(Fv(Mv(pt(),Fo()),t,r),c);break;default:_+="/"}break;case 123*h:s[l++]=Wt(_)*b;case 125*h:case 59:case 0:switch(P){case 0:case 125:p=0;case 59+u:g>0&&Wt(_)-f&&Ao(g>32?vf(_+";",n,r,f-1):vf(ge(_," ","")+";",n,r,f-2),c);break;case 59:_+=";";default:if(Ao(y=mf(_,t,r,l,u,i,s,E,O=[],S=[],f),o),P===123)if(u===0)No(_,t,y,y,O,o,f,s,S);else switch(d===99&&Ye(_,3)===110?100:d){case 100:case 109:case 115:No(e,y,y,n&&Ao(mf(e,y,y,0,0,i,s,E,i,O=[],f),S),i,S,f,s,n?O:S);break;default:No(_,y,y,y,[""],S,0,s,S)}}l=u=g=0,h=b=1,E=_="",f=a;break;case 58:f=1+Wt(_),g=v;default:if(h<1){if(P==123)--h;else if(P==125&&h++==0&&Tv()==125)continue}switch(_+=ko(P),P*h){case 38:b=u>0?1:(_+="\f",-1);break;case 44:s[l++]=(Wt(_)-1)*b,b=1;break;case 64:Ht()===45&&(_+=Lo(pt())),d=Ht(),u=f=Wt(E=_+=Rv(Fo())),P++;break;case 45:v===45&&Wt(_)==2&&(h=0)}}return o}function mf(e,t,r,n,i,o,a,s,c,l,u){for(var f=i-1,d=i===0?o:[""],g=Ns(d),v=0,h=0,p=0;v<n;++v)for(var b=0,P=mi(e,f+1,f=xv(h=a[v])),E=e;b<g;++b)(E=ff(h>0?d[b]+" "+P:ge(P,/&\f/g,d[b])))&&(c[p++]=E);return Ro(e,t,r,i===0?Rs:s,c,l,u)}function Fv(e,t,r){return Ro(e,t,r,lf,ko(Pv()),mi(e,2,-2),0)}function vf(e,t,r,n){return Ro(e,t,r,Fs,mi(e,0,n),mi(e,n+1,-1),n)}function Br(e,t){for(var r="",n=Ns(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function bf(e,t,r,n){switch(e.type){case Cv:case Fs:return e.return=e.return||e.value;case lf:return"";case uf:return e.return=e.value+"{"+Br(e.children,n)+"}";case Rs:e.value=e.props.join(",")}return Wt(r=Br(e.children,n))?e.return=e.value+"{"+r+"}":""}function Lv(e){var t=Ns(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 Nv(e){return function(t){t.root||(t=t.return)&&e(t)}}function Iv(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var jv=function(t,r,n){for(var i=0,o=0;i=o,o=Ht(),i===38&&o===12&&(r[n]=1),!yi(o);)pt();return bi(t,ut)},Dv=function(t,r){var n=-1,i=44;do switch(yi(i)){case 0:i===38&&Ht()===12&&(r[n]=1),t[n]+=jv(ut-1,r,n);break;case 2:t[n]+=Lo(i);break;case 4:if(i===44){t[++n]=Ht()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=ko(i)}while(i=pt());return t},zv=function(t,r){return gf(Dv(hf(t),r))},yf=new WeakMap,Bv=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&&!yf.get(n))&&!i){yf.set(t,!0);for(var o=[],a=zv(r,o),s=n.props,c=0,l=0;c<a.length;c++)for(var u=0;u<s.length;u++,l++)t.props[l]=o[c]?a[c].replace(/&\f/g,s[u]):s[u]+" "+a[c]}}},Wv=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function wf(e,t){switch(Ev(e,t)){case 5103:return de+"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 de+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return de+e+To+e+tt+e+e;case 6828:case 4268:return de+e+tt+e+e;case 6165:return de+e+tt+"flex-"+e+e;case 5187:return de+e+ge(e,/(\w+).+(:[^]+)/,de+"box-$1$2"+tt+"flex-$1$2")+e;case 5443:return de+e+tt+"flex-item-"+ge(e,/flex-|-self/,"")+e;case 4675:return de+e+tt+"flex-line-pack"+ge(e,/align-content|flex-|-self/,"")+e;case 5548:return de+e+tt+ge(e,"shrink","negative")+e;case 5292:return de+e+tt+ge(e,"basis","preferred-size")+e;case 6060:return de+"box-"+ge(e,"-grow","")+de+e+tt+ge(e,"grow","positive")+e;case 4554:return de+ge(e,/([^-])(transform)/g,"$1"+de+"$2")+e;case 6187:return ge(ge(ge(e,/(zoom-|grab)/,de+"$1"),/(image-set)/,de+"$1"),e,"")+e;case 5495:case 3959:return ge(e,/(image-set\([^]*)/,de+"$1$`$1");case 4968:return ge(ge(e,/(.+:)(flex-)?(.*)/,de+"box-pack:$3"+tt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+de+e+e;case 4095:case 3583:case 4068:case 2532:return ge(e,/(.+)-inline(.+)/,de+"$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(Wt(e)-1-t>6)switch(Ye(e,t+1)){case 109:if(Ye(e,t+4)!==45)break;case 102:return ge(e,/(.+:)(.+)-([^]+)/,"$1"+de+"$2-$3$1"+To+(Ye(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ls(e,"stretch")?wf(ge(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ye(e,t+1)!==115)break;case 6444:switch(Ye(e,Wt(e)-3-(~Ls(e,"!important")&&10))){case 107:return ge(e,":",":"+de)+e;case 101:return ge(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+de+(Ye(e,14)===45?"inline-":"")+"box$3$1"+de+"$2$3$1"+tt+"$2box$3")+e}break;case 5936:switch(Ye(e,t+11)){case 114:return de+e+tt+ge(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return de+e+tt+ge(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return de+e+tt+ge(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return de+e+tt+e+e}return e}var Hv=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case Fs:t.return=wf(t.value,t.length);break;case uf:return Br([vi(t,{value:ge(t.value,"@","@"+de)})],i);case Rs:if(t.length)return $v(t.props,function(o){switch(Ov(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Br([vi(t,{props:[ge(o,/:(read-\w+)/,":"+To+"$1")]})],i);case"::placeholder":return Br([vi(t,{props:[ge(o,/:(plac\w+)/,":"+de+"input-$1")]}),vi(t,{props:[ge(o,/:(plac\w+)/,":"+To+"$1")]}),vi(t,{props:[ge(o,/:(plac\w+)/,tt+"input-$1")]})],i)}return""})}},Vv=[Hv],Sf=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(h){var p=h.getAttribute("data-emotion");p.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var i=t.stylisPlugins||Vv,o={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(h){for(var p=h.getAttribute("data-emotion").split(" "),b=1;b<p.length;b++)o[p[b]]=!0;s.push(h)});var c,l=[Bv,Wv];{var u,f=[bf,Nv(function(h){u.insert(h)})],d=Lv(l.concat(i,f)),g=function(p){return Br(pf(p),d)};c=function(p,b,P,E){u=P,g(p?p+"{"+b.styles+"}":b.styles),E&&(v.inserted[b.name]=!0)}}var v={key:r,sheet:new Sv({key:r,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:c};return v.sheet.hydrate(s),v};function Vt(){return Vt=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},Vt.apply(this,arguments)}var qv=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Gv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Uv(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 wi={},Kv={get exports(){return wi},set exports(e){wi=e}},pe={};/** @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 Ke=typeof Symbol=="function"&&Symbol.for,js=Ke?Symbol.for("react.element"):60103,Ds=Ke?Symbol.for("react.portal"):60106,Io=Ke?Symbol.for("react.fragment"):60107,jo=Ke?Symbol.for("react.strict_mode"):60108,Do=Ke?Symbol.for("react.profiler"):60114,zo=Ke?Symbol.for("react.provider"):60109,Bo=Ke?Symbol.for("react.context"):60110,zs=Ke?Symbol.for("react.async_mode"):60111,Wo=Ke?Symbol.for("react.concurrent_mode"):60111,Ho=Ke?Symbol.for("react.forward_ref"):60112,Vo=Ke?Symbol.for("react.suspense"):60113,Xv=Ke?Symbol.for("react.suspense_list"):60120,qo=Ke?Symbol.for("react.memo"):60115,Go=Ke?Symbol.for("react.lazy"):60116,Yv=Ke?Symbol.for("react.block"):60121,Zv=Ke?Symbol.for("react.fundamental"):60117,Jv=Ke?Symbol.for("react.responder"):60118,Qv=Ke?Symbol.for("react.scope"):60119;function mt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case js:switch(e=e.type,e){case zs:case Wo:case Io:case Do:case jo:case Vo:return e;default:switch(e=e&&e.$$typeof,e){case Bo:case Ho:case Go:case qo:case zo:return e;default:return t}}case Ds:return t}}}function Cf(e){return mt(e)===Wo}pe.AsyncMode=zs,pe.ConcurrentMode=Wo,pe.ContextConsumer=Bo,pe.ContextProvider=zo,pe.Element=js,pe.ForwardRef=Ho,pe.Fragment=Io,pe.Lazy=Go,pe.Memo=qo,pe.Portal=Ds,pe.Profiler=Do,pe.StrictMode=jo,pe.Suspense=Vo,pe.isAsyncMode=function(e){return Cf(e)||mt(e)===zs},pe.isConcurrentMode=Cf,pe.isContextConsumer=function(e){return mt(e)===Bo},pe.isContextProvider=function(e){return mt(e)===zo},pe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===js},pe.isForwardRef=function(e){return mt(e)===Ho},pe.isFragment=function(e){return mt(e)===Io},pe.isLazy=function(e){return mt(e)===Go},pe.isMemo=function(e){return mt(e)===qo},pe.isPortal=function(e){return mt(e)===Ds},pe.isProfiler=function(e){return mt(e)===Do},pe.isStrictMode=function(e){return mt(e)===jo},pe.isSuspense=function(e){return mt(e)===Vo},pe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Io||e===Wo||e===Do||e===jo||e===Vo||e===Xv||typeof e=="object"&&e!==null&&(e.$$typeof===Go||e.$$typeof===qo||e.$$typeof===zo||e.$$typeof===Bo||e.$$typeof===Ho||e.$$typeof===Zv||e.$$typeof===Jv||e.$$typeof===Qv||e.$$typeof===Yv)},pe.typeOf=mt,function(e){e.exports=pe}(Kv);var xf=wi,eb={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},tb={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},_f={};_f[xf.ForwardRef]=eb,_f[xf.Memo]=tb;var rb=!0;function Bs(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):n+=i+" "}),n}var Ef=function(t,r,n){var i=t.key+"-"+r.name;(n===!1||rb===!1)&&t.registered[i]===void 0&&(t.registered[i]=r.styles)},Of=function(t,r,n){Ef(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 nb(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 ib={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},ob=/[A-Z]|^ms/g,ab=/_EMO_([^_]+?)_([^]*?)_EMO_/g,$f=function(t){return t.charCodeAt(1)===45},Pf=function(t){return t!=null&&typeof t!="boolean"},Ws=Iv(function(e){return $f(e)?e:e.replace(ob,"-$&").toLowerCase()}),Tf=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(ab,function(n,i,o){return qt={name:i,styles:o,next:qt},i})}return ib[t]!==1&&!$f(t)&&typeof r=="number"&&r!==0?r+"px":r},zk="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Si(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 qt={name:r.name,styles:r.styles,next:qt},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)qt={name:n.name,styles:n.styles,next:qt},n=n.next;var i=r.styles+";";return i}return sb(e,t,r)}case"function":{if(e!==void 0){var o=qt,a=r(e);return qt=o,Si(e,t,a)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function sb(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=Si(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]+"}":Pf(a)&&(n+=Ws(o)+":"+Tf(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++)Pf(a[s])&&(n+=Ws(o)+":"+Tf(o,a[s])+";");else{var c=Si(e,t,a);switch(o){case"animation":case"animationName":{n+=Ws(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}var kf=/label:\s*([^\s;\n{]+)\s*(;|$)/g,qt,Ci=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="";qt=void 0;var a=t[0];a==null||a.raw===void 0?(i=!1,o+=Si(n,r,a)):o+=a[0];for(var s=1;s<t.length;s++)o+=Si(n,r,t[s]),i&&(o+=a[s]);kf.lastIndex=0;for(var c="",l;(l=kf.exec(o))!==null;)c+="-"+l[1];var u=nb(o)+c;return{name:u,styles:o,next:qt}},cb=function(t){return t()},lb=m["useInsertionEffect"]?m["useInsertionEffect"]:!1,ub=lb||cb,Uo={}.hasOwnProperty,Af=$.createContext(typeof HTMLElement<"u"?Sf({key:"css"}):null);Af.Provider;var fb=function(t){return $.forwardRef(function(r,n){var i=$.useContext(Af);return t(r,i,n)})},db=$.createContext({}),Hs="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Mf=function(t,r){var n={};for(var i in r)Uo.call(r,i)&&(n[i]=r[i]);return n[Hs]=t,n},hb=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return Ef(r,n,i),ub(function(){return Of(r,n,i)}),null},Rf=fb(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var i=e[Hs],o=[n],a="";typeof e.className=="string"?a=Bs(t.registered,o,e.className):e.className!=null&&(a=e.className+" ");var s=Ci(o,void 0,$.useContext(db));a+=t.key+"-"+s.name;var c={};for(var l in e)Uo.call(e,l)&&l!=="css"&&l!==Hs&&(c[l]=e[l]);return c.ref=r,c.className=a,$.createElement($.Fragment,null,$.createElement(hb,{cache:t,serialized:s,isStringTag:typeof i=="string"}),$.createElement(i,c))}),xi={},gb={get exports(){return xi},set exports(e){xi=e}},Ko={};/** * @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 pb=$,mb=Symbol.for("react.element"),vb=Symbol.for("react.fragment"),bb=Object.prototype.hasOwnProperty,yb=pb.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,wb={key:!0,ref:!0,__self:!0,__source:!0};function Ff(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)bb.call(t,n)&&!wb.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:mb,type:e,key:o,ref:a,props:i,_owner:yb.current}}Ko.Fragment=vb,Ko.jsx=Ff,Ko.jsxs=Ff,function(e){e.exports=Ko}(gb);const Sb=xi.Fragment,Lf=xi.jsx,Nf=xi.jsxs;var lr=Sb;function N(e,t,r){return Uo.call(t,"css")?Lf(Rf,Mf(e,t),r):Lf(e,t,r)}function V(e,t,r){return Uo.call(t,"css")?Nf(Rf,Mf(e,t),r):Nf(e,t,r)}var Cb=typeof global=="object"&&global&&global.Object===Object&&global;const If=Cb;var xb=typeof self=="object"&&self&&self.Object===Object&&self,_b=If||xb||Function("return this")();const Gt=_b;var Eb=Gt.Symbol;const Ut=Eb;var jf=Object.prototype,Ob=jf.hasOwnProperty,$b=jf.toString,_i=Ut?Ut.toStringTag:void 0;function Pb(e){var t=Ob.call(e,_i),r=e[_i];try{e[_i]=void 0;var n=!0}catch{}var i=$b.call(e);return n&&(t?e[_i]=r:delete e[_i]),i}var Tb=Object.prototype,kb=Tb.toString;function Ab(e){return kb.call(e)}var Mb="[object Null]",Rb="[object Undefined]",Df=Ut?Ut.toStringTag:void 0;function Sn(e){return e==null?e===void 0?Rb:Mb:Df&&Df in Object(e)?Pb(e):Ab(e)}function Cn(e){return e!=null&&typeof e=="object"}var Fb="[object Symbol]";function Xo(e){return typeof e=="symbol"||Cn(e)&&Sn(e)==Fb}function Lb(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 Nb=Array.isArray;const Kt=Nb;var Ib=1/0,zf=Ut?Ut.prototype:void 0,Bf=zf?zf.toString:void 0;function Vs(e){if(typeof e=="string")return e;if(Kt(e))return Lb(e,Vs)+"";if(Xo(e))return Bf?Bf.call(e):"";var t=e+"";return t=="0"&&1/e==-Ib?"-0":t}var jb=/\s/;function Db(e){for(var t=e.length;t--&&jb.test(e.charAt(t)););return t}var zb=/^\s+/;function Bb(e){return e&&e.slice(0,Db(e)+1).replace(zb,"")}function ur(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Wf=0/0,Wb=/^[-+]0x[0-9a-f]+$/i,Hb=/^0b[01]+$/i,Vb=/^0o[0-7]+$/i,qb=parseInt;function qs(e){if(typeof e=="number")return e;if(Xo(e))return Wf;if(ur(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ur(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Bb(e);var r=Hb.test(e);return r||Vb.test(e)?qb(e.slice(2),r?2:8):Wb.test(e)?Wf:+e}var Hf=1/0,Gb=17976931348623157e292;function Ub(e){if(!e)return e===0?e:0;if(e=qs(e),e===Hf||e===-Hf){var t=e<0?-1:1;return t*Gb}return e===e?e:0}function Vf(e){var t=Ub(e),r=t%1;return t===t?r?t-r:t:0}function qf(e){return e}var Kb="[object AsyncFunction]",Xb="[object Function]",Yb="[object GeneratorFunction]",Zb="[object Proxy]";function Gf(e){if(!ur(e))return!1;var t=Sn(e);return t==Xb||t==Yb||t==Kb||t==Zb}var Jb=Gt["__core-js_shared__"];const Gs=Jb;var Uf=function(){var e=/[^.]+$/.exec(Gs&&Gs.keys&&Gs.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Qb(e){return!!Uf&&Uf in e}var e0=Function.prototype,t0=e0.toString;function Wr(e){if(e!=null){try{return t0.call(e)}catch{}try{return e+""}catch{}}return""}var r0=/[\\^$.*+?()[\]{}|]/g,n0=/^\[object .+?Constructor\]$/,i0=Function.prototype,o0=Object.prototype,a0=i0.toString,s0=o0.hasOwnProperty,c0=RegExp("^"+a0.call(s0).replace(r0,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function l0(e){if(!ur(e)||Qb(e))return!1;var t=Gf(e)?c0:n0;return t.test(Wr(e))}function u0(e,t){return e==null?void 0:e[t]}function Hr(e,t){var r=u0(e,t);return l0(r)?r:void 0}var f0=Hr(Gt,"WeakMap");const Us=f0;function d0(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 h0(){}var g0=800,p0=16,m0=Date.now;function v0(e){var t=0,r=0;return function(){var n=m0(),i=p0-(n-r);if(r=n,i>0){if(++t>=g0)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function b0(e){return function(){return e}}var y0=function(){try{var e=Hr(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Yo=y0;var w0=Yo?function(e,t){return Yo(e,"toString",{configurable:!0,enumerable:!1,value:b0(t),writable:!0})}:qf,S0=v0(w0);const C0=S0;function x0(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 _0(e){return e!==e}function E0(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}function O0(e,t,r){return t===t?E0(e,t,r):x0(e,_0,r)}function $0(e,t){var r=e==null?0:e.length;return!!r&&O0(e,t,0)>-1}var P0=9007199254740991,T0=/^(?:0|[1-9]\d*)$/;function Ks(e,t){var r=typeof e;return t=t??P0,!!t&&(r=="number"||r!="symbol"&&T0.test(e))&&e>-1&&e%1==0&&e<t}function k0(e,t,r){t=="__proto__"&&Yo?Yo(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Xs(e,t){return e===t||e!==e&&t!==t}var A0=Object.prototype,M0=A0.hasOwnProperty;function R0(e,t,r){var n=e[t];(!(M0.call(e,t)&&Xs(n,r))||r===void 0&&!(t in e))&&k0(e,t,r)}var Kf=Math.max;function F0(e,t,r){return t=Kf(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=Kf(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),d0(e,this,s)}}var L0=9007199254740991;function Ys(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=L0}function N0(e){return e!=null&&Ys(e.length)&&!Gf(e)}var I0=Object.prototype;function j0(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||I0;return e===r}function D0(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var z0="[object Arguments]";function Xf(e){return Cn(e)&&Sn(e)==z0}var Yf=Object.prototype,B0=Yf.hasOwnProperty,W0=Yf.propertyIsEnumerable,H0=Xf(function(){return arguments}())?Xf:function(e){return Cn(e)&&B0.call(e,"callee")&&!W0.call(e,"callee")};const Zs=H0;function V0(){return!1}var Zf=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Jf=Zf&&typeof module=="object"&&module&&!module.nodeType&&module,q0=Jf&&Jf.exports===Zf,Qf=q0?Gt.Buffer:void 0,G0=Qf?Qf.isBuffer:void 0,U0=G0||V0;const Js=U0;var K0="[object Arguments]",X0="[object Array]",Y0="[object Boolean]",Z0="[object Date]",J0="[object Error]",Q0="[object Function]",ey="[object Map]",ty="[object Number]",ry="[object Object]",ny="[object RegExp]",iy="[object Set]",oy="[object String]",ay="[object WeakMap]",sy="[object ArrayBuffer]",cy="[object DataView]",ly="[object Float32Array]",uy="[object Float64Array]",fy="[object Int8Array]",dy="[object Int16Array]",hy="[object Int32Array]",gy="[object Uint8Array]",py="[object Uint8ClampedArray]",my="[object Uint16Array]",vy="[object Uint32Array]",Se={};Se[ly]=Se[uy]=Se[fy]=Se[dy]=Se[hy]=Se[gy]=Se[py]=Se[my]=Se[vy]=!0,Se[K0]=Se[X0]=Se[sy]=Se[Y0]=Se[cy]=Se[Z0]=Se[J0]=Se[Q0]=Se[ey]=Se[ty]=Se[ry]=Se[ny]=Se[iy]=Se[oy]=Se[ay]=!1;function by(e){return Cn(e)&&Ys(e.length)&&!!Se[Sn(e)]}function yy(e){return function(t){return e(t)}}var ed=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ei=ed&&typeof module=="object"&&module&&!module.nodeType&&module,wy=Ei&&Ei.exports===ed,Qs=wy&&If.process,Sy=function(){try{var e=Ei&&Ei.require&&Ei.require("util").types;return e||Qs&&Qs.binding&&Qs.binding("util")}catch{}}();const td=Sy;var rd=td&&td.isTypedArray,Cy=rd?yy(rd):by;const nd=Cy;var xy=Object.prototype,_y=xy.hasOwnProperty;function Ey(e,t){var r=Kt(e),n=!r&&Zs(e),i=!r&&!n&&Js(e),o=!r&&!n&&!i&&nd(e),a=r||n||i||o,s=a?D0(e.length,String):[],c=s.length;for(var l in e)(t||_y.call(e,l))&&!(a&&(l=="length"||i&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||Ks(l,c)))&&s.push(l);return s}function Oy(e,t){return function(r){return e(t(r))}}var $y=Oy(Object.keys,Object);const Py=$y;var Ty=Object.prototype,ky=Ty.hasOwnProperty;function Ay(e){if(!j0(e))return Py(e);var t=[];for(var r in Object(e))ky.call(e,r)&&r!="constructor"&&t.push(r);return t}function id(e){return N0(e)?Ey(e):Ay(e)}var My=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ry=/^\w*$/;function ec(e,t){if(Kt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Xo(e)?!0:Ry.test(e)||!My.test(e)||t!=null&&e in Object(t)}var Fy=Hr(Object,"create");const Oi=Fy;function Ly(){this.__data__=Oi?Oi(null):{},this.size=0}function Ny(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Iy="__lodash_hash_undefined__",jy=Object.prototype,Dy=jy.hasOwnProperty;function zy(e){var t=this.__data__;if(Oi){var r=t[e];return r===Iy?void 0:r}return Dy.call(t,e)?t[e]:void 0}var By=Object.prototype,Wy=By.hasOwnProperty;function Hy(e){var t=this.__data__;return Oi?t[e]!==void 0:Wy.call(t,e)}var Vy="__lodash_hash_undefined__";function qy(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Oi&&t===void 0?Vy:t,this}function Vr(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])}}Vr.prototype.clear=Ly,Vr.prototype.delete=Ny,Vr.prototype.get=zy,Vr.prototype.has=Hy,Vr.prototype.set=qy;function Gy(){this.__data__=[],this.size=0}function Zo(e,t){for(var r=e.length;r--;)if(Xs(e[r][0],t))return r;return-1}var Uy=Array.prototype,Ky=Uy.splice;function Xy(e){var t=this.__data__,r=Zo(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Ky.call(t,r,1),--this.size,!0}function Yy(e){var t=this.__data__,r=Zo(t,e);return r<0?void 0:t[r][1]}function Zy(e){return Zo(this.__data__,e)>-1}function Jy(e,t){var r=this.__data__,n=Zo(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function fr(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])}}fr.prototype.clear=Gy,fr.prototype.delete=Xy,fr.prototype.get=Yy,fr.prototype.has=Zy,fr.prototype.set=Jy;var Qy=Hr(Gt,"Map");const $i=Qy;function ew(){this.size=0,this.__data__={hash:new Vr,map:new($i||fr),string:new Vr}}function tw(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Jo(e,t){var r=e.__data__;return tw(t)?r[typeof t=="string"?"string":"hash"]:r.map}function rw(e){var t=Jo(this,e).delete(e);return this.size-=t?1:0,t}function nw(e){return Jo(this,e).get(e)}function iw(e){return Jo(this,e).has(e)}function ow(e,t){var r=Jo(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function dr(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])}}dr.prototype.clear=ew,dr.prototype.delete=rw,dr.prototype.get=nw,dr.prototype.has=iw,dr.prototype.set=ow;var aw="Expected a function";function tc(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(aw);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(tc.Cache||dr),r}tc.Cache=dr;var sw=500;function cw(e){var t=tc(e,function(n){return r.size===sw&&r.clear(),n}),r=t.cache;return t}var lw=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,uw=/\\(\\)?/g,fw=cw(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(lw,function(r,n,i,o){t.push(i?o.replace(uw,"$1"):n||r)}),t});const dw=fw;function od(e){return e==null?"":Vs(e)}function Qo(e,t){return Kt(e)?e:ec(e,t)?[e]:dw(od(e))}var hw=1/0;function Pi(e){if(typeof e=="string"||Xo(e))return e;var t=e+"";return t=="0"&&1/e==-hw?"-0":t}function rc(e,t){t=Qo(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[Pi(t[r++])];return r&&r==n?e:void 0}function gw(e,t,r){var n=e==null?void 0:rc(e,t);return n===void 0?r:n}function ad(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var sd=Ut?Ut.isConcatSpreadable:void 0;function pw(e){return Kt(e)||Zs(e)||!!(sd&&e&&e[sd])}function cd(e,t,r,n,i){var o=-1,a=e.length;for(r||(r=pw),i||(i=[]);++o<a;){var s=e[o];t>0&&r(s)?t>1?cd(s,t-1,r,n,i):ad(i,s):n||(i[i.length]=s)}return i}function mw(e){var t=e==null?0:e.length;return t?cd(e,1):[]}function vw(e){return C0(F0(e,void 0,mw),e+"")}var bw="Expected a function";function yw(e,t){var r;if(typeof t!="function")throw new TypeError(bw);return e=Vf(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=void 0),r}}function ww(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(i);++n<i;)o[n]=e[n+t];return o}function Sw(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:ww(e,t,r)}var Cw="\\ud800-\\udfff",xw="\\u0300-\\u036f",_w="\\ufe20-\\ufe2f",Ew="\\u20d0-\\u20ff",Ow=xw+_w+Ew,$w="\\ufe0e\\ufe0f",Pw="\\u200d",Tw=RegExp("["+Pw+Cw+Ow+$w+"]");function nc(e){return Tw.test(e)}function kw(e){return e.split("")}var ld="\\ud800-\\udfff",Aw="\\u0300-\\u036f",Mw="\\ufe20-\\ufe2f",Rw="\\u20d0-\\u20ff",Fw=Aw+Mw+Rw,Lw="\\ufe0e\\ufe0f",Nw="["+ld+"]",ic="["+Fw+"]",oc="\\ud83c[\\udffb-\\udfff]",Iw="(?:"+ic+"|"+oc+")",ud="[^"+ld+"]",fd="(?:\\ud83c[\\udde6-\\uddff]){2}",dd="[\\ud800-\\udbff][\\udc00-\\udfff]",jw="\\u200d",hd=Iw+"?",gd="["+Lw+"]?",Dw="(?:"+jw+"(?:"+[ud,fd,dd].join("|")+")"+gd+hd+")*",zw=gd+hd+Dw,Bw="(?:"+[ud+ic+"?",ic,fd,dd,Nw].join("|")+")",Ww=RegExp(oc+"(?="+oc+")|"+Bw+zw,"g");function Hw(e){return e.match(Ww)||[]}function Vw(e){return nc(e)?Hw(e):kw(e)}function qw(){this.__data__=new fr,this.size=0}function Gw(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Uw(e){return this.__data__.get(e)}function Kw(e){return this.__data__.has(e)}var Xw=200;function Yw(e,t){var r=this.__data__;if(r instanceof fr){var n=r.__data__;if(!$i||n.length<Xw-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new dr(n)}return r.set(e,t),this.size=r.size,this}function hr(e){var t=this.__data__=new fr(e);this.size=t.size}hr.prototype.clear=qw,hr.prototype.delete=Gw,hr.prototype.get=Uw,hr.prototype.has=Kw,hr.prototype.set=Yw;function Zw(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 Jw(){return[]}var Qw=Object.prototype,e1=Qw.propertyIsEnumerable,pd=Object.getOwnPropertySymbols,t1=pd?function(e){return e==null?[]:(e=Object(e),Zw(pd(e),function(t){return e1.call(e,t)}))}:Jw;const r1=t1;function n1(e,t,r){var n=t(e);return Kt(e)?n:ad(n,r(e))}function md(e){return n1(e,id,r1)}var i1=Hr(Gt,"DataView");const ac=i1;var o1=Hr(Gt,"Promise");const sc=o1;var a1=Hr(Gt,"Set");const xn=a1;var vd="[object Map]",s1="[object Object]",bd="[object Promise]",yd="[object Set]",wd="[object WeakMap]",Sd="[object DataView]",c1=Wr(ac),l1=Wr($i),u1=Wr(sc),f1=Wr(xn),d1=Wr(Us),qr=Sn;(ac&&qr(new ac(new ArrayBuffer(1)))!=Sd||$i&&qr(new $i)!=vd||sc&&qr(sc.resolve())!=bd||xn&&qr(new xn)!=yd||Us&&qr(new Us)!=wd)&&(qr=function(e){var t=Sn(e),r=t==s1?e.constructor:void 0,n=r?Wr(r):"";if(n)switch(n){case c1:return Sd;case l1:return vd;case u1:return bd;case f1:return yd;case d1:return wd}return t});const Cd=qr;var h1=Gt.Uint8Array;const xd=h1;var g1="__lodash_hash_undefined__";function p1(e){return this.__data__.set(e,g1),this}function m1(e){return this.__data__.has(e)}function Ti(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new dr;++t<r;)this.add(e[t])}Ti.prototype.add=Ti.prototype.push=p1,Ti.prototype.has=m1;function v1(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 _d(e,t){return e.has(t)}var b1=1,y1=2;function Ed(e,t,r,n,i,o){var a=r&b1,s=e.length,c=t.length;if(s!=c&&!(a&&c>s))return!1;var l=o.get(e),u=o.get(t);if(l&&u)return l==t&&u==e;var f=-1,d=!0,g=r&y1?new Ti:void 0;for(o.set(e,t),o.set(t,e);++f<s;){var v=e[f],h=t[f];if(n)var p=a?n(h,v,f,t,e,o):n(v,h,f,e,t,o);if(p!==void 0){if(p)continue;d=!1;break}if(g){if(!v1(t,function(b,P){if(!_d(g,P)&&(v===b||i(v,b,r,n,o)))return g.push(P)})){d=!1;break}}else if(!(v===h||i(v,h,r,n,o))){d=!1;break}}return o.delete(e),o.delete(t),d}function w1(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function cc(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var S1=1,C1=2,x1="[object Boolean]",_1="[object Date]",E1="[object Error]",O1="[object Map]",$1="[object Number]",P1="[object RegExp]",T1="[object Set]",k1="[object String]",A1="[object Symbol]",M1="[object ArrayBuffer]",R1="[object DataView]",Od=Ut?Ut.prototype:void 0,lc=Od?Od.valueOf:void 0;function F1(e,t,r,n,i,o,a){switch(r){case R1:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case M1:return!(e.byteLength!=t.byteLength||!o(new xd(e),new xd(t)));case x1:case _1:case $1:return Xs(+e,+t);case E1:return e.name==t.name&&e.message==t.message;case P1:case k1:return e==t+"";case O1:var s=w1;case T1:var c=n&S1;if(s||(s=cc),e.size!=t.size&&!c)return!1;var l=a.get(e);if(l)return l==t;n|=C1,a.set(e,t);var u=Ed(s(e),s(t),n,i,o,a);return a.delete(e),u;case A1:if(lc)return lc.call(e)==lc.call(t)}return!1}var L1=1,N1=Object.prototype,I1=N1.hasOwnProperty;function j1(e,t,r,n,i,o){var a=r&L1,s=md(e),c=s.length,l=md(t),u=l.length;if(c!=u&&!a)return!1;for(var f=c;f--;){var d=s[f];if(!(a?d in t:I1.call(t,d)))return!1}var g=o.get(e),v=o.get(t);if(g&&v)return g==t&&v==e;var h=!0;o.set(e,t),o.set(t,e);for(var p=a;++f<c;){d=s[f];var b=e[d],P=t[d];if(n)var E=a?n(P,b,d,t,e,o):n(b,P,d,e,t,o);if(!(E===void 0?b===P||i(b,P,r,n,o):E)){h=!1;break}p||(p=d=="constructor")}if(h&&!p){var O=e.constructor,S=t.constructor;O!=S&&"constructor"in e&&"constructor"in t&&!(typeof O=="function"&&O instanceof O&&typeof S=="function"&&S instanceof S)&&(h=!1)}return o.delete(e),o.delete(t),h}var D1=1,$d="[object Arguments]",Pd="[object Array]",ea="[object Object]",z1=Object.prototype,Td=z1.hasOwnProperty;function B1(e,t,r,n,i,o){var a=Kt(e),s=Kt(t),c=a?Pd:Cd(e),l=s?Pd:Cd(t);c=c==$d?ea:c,l=l==$d?ea:l;var u=c==ea,f=l==ea,d=c==l;if(d&&Js(e)){if(!Js(t))return!1;a=!0,u=!1}if(d&&!u)return o||(o=new hr),a||nd(e)?Ed(e,t,r,n,i,o):F1(e,t,c,r,n,i,o);if(!(r&D1)){var g=u&&Td.call(e,"__wrapped__"),v=f&&Td.call(t,"__wrapped__");if(g||v){var h=g?e.value():e,p=v?t.value():t;return o||(o=new hr),i(h,p,r,n,o)}}return d?(o||(o=new hr),j1(e,t,r,n,i,o)):!1}function ta(e,t,r,n,i){return e===t?!0:e==null||t==null||!Cn(e)&&!Cn(t)?e!==e&&t!==t:B1(e,t,r,n,ta,i)}var W1=1,H1=2;function V1(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 c=s[0],l=e[c],u=s[1];if(a&&s[2]){if(l===void 0&&!(c in e))return!1}else{var f=new hr;if(n)var d=n(l,u,c,e,t,f);if(!(d===void 0?ta(u,l,W1|H1,n,f):d))return!1}}return!0}function kd(e){return e===e&&!ur(e)}function q1(e){for(var t=id(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,kd(i)]}return t}function Ad(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function G1(e){var t=q1(e);return t.length==1&&t[0][2]?Ad(t[0][0],t[0][1]):function(r){return r===e||V1(r,e,t)}}function U1(e,t){return e!=null&&t in Object(e)}function K1(e,t,r){t=Qo(t,e);for(var n=-1,i=t.length,o=!1;++n<i;){var a=Pi(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&&Ys(i)&&Ks(a,i)&&(Kt(e)||Zs(e)))}function Md(e,t){return e!=null&&K1(e,t,U1)}var X1=1,Y1=2;function Z1(e,t){return ec(e)&&kd(t)?Ad(Pi(e),t):function(r){var n=gw(r,e);return n===void 0&&n===t?Md(r,e):ta(t,n,X1|Y1)}}function Rd(e){return function(t){return t==null?void 0:t[e]}}function J1(e){return function(t){return rc(t,e)}}function Q1(e){return ec(e)?Rd(Pi(e)):J1(e)}function eS(e){return typeof e=="function"?e:e==null?qf:typeof e=="object"?Kt(e)?Z1(e[0],e[1]):G1(e):Q1(e)}var tS=function(){return Gt.Date.now()};const uc=tS;var rS="Expected a function",nS=Math.max,iS=Math.min;function Fd(e,t,r){var n,i,o,a,s,c,l=0,u=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(rS);t=qs(t)||0,ur(r)&&(u=!!r.leading,f="maxWait"in r,o=f?nS(qs(r.maxWait)||0,t):o,d="trailing"in r?!!r.trailing:d);function g(y){var _=n,M=i;return n=i=void 0,l=y,a=e.apply(M,_),a}function v(y){return l=y,s=setTimeout(b,t),u?g(y):a}function h(y){var _=y-c,M=y-l,R=t-_;return f?iS(R,o-M):R}function p(y){var _=y-c,M=y-l;return c===void 0||_>=t||_<0||f&&M>=o}function b(){var y=uc();if(p(y))return P(y);s=setTimeout(b,h(y))}function P(y){return s=void 0,d&&n?g(y):(n=i=void 0,a)}function E(){s!==void 0&&clearTimeout(s),l=0,n=c=i=s=void 0}function O(){return s===void 0?a:P(uc())}function S(){var y=uc(),_=p(y);if(n=arguments,i=this,c=y,_){if(s===void 0)return v(c);if(f)return clearTimeout(s),s=setTimeout(b,t),g(c)}return s===void 0&&(s=setTimeout(b,t)),a}return S.cancel=E,S.flush=O,S}function oS(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 aS(e,t){return ta(e,t)}function sS(e,t,r,n){if(!ur(e))return e;t=Qo(t,e);for(var i=-1,o=t.length,a=o-1,s=e;s!=null&&++i<o;){var c=Pi(t[i]),l=r;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(i!=a){var u=s[c];l=n?n(u,c,s):void 0,l===void 0&&(l=ur(u)?u:Ks(t[i+1])?[]:{})}R0(s,c,l),s=s[c]}return e}function cS(e,t,r){for(var n=-1,i=t.length,o={};++n<i;){var a=t[n],s=rc(e,a);r(s,a)&&sS(o,Qo(a,e),s)}return o}function lS(e){return yw(2,e)}var uS=9007199254740991,fS=Math.floor;function Ld(e,t){var r="";if(!e||t<1||t>uS)return r;do t%2&&(r+=e),t=fS(t/2),t&&(e+=e);while(t);return r}var dS=Rd("length");const hS=dS;var Nd="\\ud800-\\udfff",gS="\\u0300-\\u036f",pS="\\ufe20-\\ufe2f",mS="\\u20d0-\\u20ff",vS=gS+pS+mS,bS="\\ufe0e\\ufe0f",yS="["+Nd+"]",fc="["+vS+"]",dc="\\ud83c[\\udffb-\\udfff]",wS="(?:"+fc+"|"+dc+")",Id="[^"+Nd+"]",jd="(?:\\ud83c[\\udde6-\\uddff]){2}",Dd="[\\ud800-\\udbff][\\udc00-\\udfff]",SS="\\u200d",zd=wS+"?",Bd="["+bS+"]?",CS="(?:"+SS+"(?:"+[Id,jd,Dd].join("|")+")"+Bd+zd+")*",xS=Bd+zd+CS,_S="(?:"+[Id+fc+"?",fc,jd,Dd,yS].join("|")+")",Wd=RegExp(dc+"(?="+dc+")|"+_S+xS,"g");function ES(e){for(var t=Wd.lastIndex=0;Wd.test(e);)++t;return t}function Hd(e){return nc(e)?ES(e):hS(e)}var OS=Math.ceil;function $S(e,t){t=t===void 0?" ":Vs(t);var r=t.length;if(r<2)return r?Ld(t,e):t;var n=Ld(t,OS(e/Hd(t)));return nc(t)?Sw(Vw(n),0,e).join(""):n.slice(0,e)}function PS(e,t,r){e=od(e),t=Vf(t);var n=t?Hd(e):0;return t&&n<t?$S(t-n,r)+e:e}function TS(e,t){return cS(e,t,function(r,n){return Md(e,n)})}var kS=vw(function(e,t){return e==null?{}:TS(e,t)});const Vd=kS;var AS="Expected a function";function MS(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(AS);return ur(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),Fd(e,t,{leading:n,maxWait:t,trailing:i})}var RS=1/0,FS=xn&&1/cc(new xn([,-0]))[1]==RS?function(e){return new xn(e)}:h0;const LS=FS;var NS=200;function IS(e,t,r){var n=-1,i=$0,o=e.length,a=!0,s=[],c=s;if(r)a=!1,i=oS;else if(o>=NS){var l=t?null:LS(e);if(l)return cc(l);a=!1,i=_d,c=new Ti}else c=t?[]:s;e:for(;++n<o;){var u=e[n],f=t?t(u):u;if(u=r||u!==0?u:0,a&&f===f){for(var d=c.length;d--;)if(c[d]===f)continue e;t&&c.push(f),s.push(u)}else i(c,f,r)||(c!==s&&c.push(f),s.push(u))}return s}function qd(e,t){return e&&e.length?IS(e,eS(t)):[]}const jS=Symbol(),hc=Symbol(),ki="a",Ai="w";let DS=(e,t)=>new Proxy(e,t);const gc=Object.getPrototypeOf,pc=new WeakMap,Gd=e=>e&&(pc.has(e)?pc.get(e):gc(e)===Object.prototype||gc(e)===Array.prototype),ra=e=>typeof e=="object"&&e!==null,zS=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(gc(e),t)},mc=e=>e[hc]||e,Ud=(e,t,r,n)=>{if(!Gd(e))return e;let i=n&&n.get(e);if(!i){const c=mc(e);i=(l=>Object.values(Object.getOwnPropertyDescriptors(l)).some(u=>!u.configurable&&!u.writable))(c)?[c,zS(c)]:[c],n==null||n.set(e,i)}const[o,a]=i;let s=r&&r.get(o);return s&&s[1].f===!!a||(s=((c,l)=>{const u={f:l};let f=!1;const d=(v,h)=>{if(!f){let p=u[ki].get(c);if(p||(p={},u[ki].set(c,p)),v===Ai)p[Ai]=!0;else{let b=p[v];b||(b=new Set,p[v]=b),b.add(h)}}},g={get:(v,h)=>h===hc?c:(d("k",h),Ud(Reflect.get(v,h),u[ki],u.c)),has:(v,h)=>h===jS?(f=!0,u[ki].delete(c),!0):(d("h",h),Reflect.has(v,h)),getOwnPropertyDescriptor:(v,h)=>(d("o",h),Reflect.getOwnPropertyDescriptor(v,h)),ownKeys:v=>(d(Ai),Reflect.ownKeys(v))};return l&&(g.set=g.deleteProperty=()=>!1),[g,u]})(o,!!a),s[1].p=DS(a||o,s[0]),r&&r.set(o,s)),s[1][ki]=t,s[1].c=r,s[1].p},Kd=(e,t,r,n)=>{if(Object.is(e,t))return!1;if(!ra(e)||!ra(t))return!0;const i=r.get(mc(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[Ai]===!0){if(o=((a,s)=>{const c=Reflect.ownKeys(a),l=Reflect.ownKeys(s);return c.length!==l.length||c.some((u,f)=>u!==l[f])})(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=Kd(e[a],t[a],r,n),o)return o;return o===null&&(o=!0),o}finally{n&&n.set(e,{n:t,g:o})}},BS=e=>Gd(e)&&e[hc]||null,Xd=(e,t=!0)=>{pc.set(e,t)},WS=(e,t,r)=>{const n=[],i=new WeakSet,o=(a,s)=>{if(i.has(a))return;ra(a)&&i.add(a);const c=ra(a)&&t.get(mc(a));if(c){var l,u;if((l=c.h)==null||l.forEach(d=>{const g=`:has(${String(d)})`;n.push(s?[...s,g]:[g])}),c[Ai]===!0){const d=":ownKeys";n.push(s?[...s,d]:[d])}else{var f;(f=c.o)==null||f.forEach(d=>{const g=`:hasOwn(${String(d)})`;n.push(s?[...s,g]:[g])})}(u=c.k)==null||u.forEach(d=>{r&&!("value"in(Object.getOwnPropertyDescriptor(a,d)||{}))||o(a[d],s?[...s,d]:[d])})}else s&&n.push(s)};return o(e),n},vc=e=>typeof e=="object"&&e!==null,Or=new WeakMap,na=new WeakSet,HS=(e=Object.is,t=(l,u)=>new Proxy(l,u),r=l=>vc(l)&&!na.has(l)&&(Array.isArray(l)||!(Symbol.iterator in l))&&!(l instanceof WeakMap)&&!(l instanceof WeakSet)&&!(l instanceof Error)&&!(l instanceof Number)&&!(l instanceof Date)&&!(l instanceof String)&&!(l instanceof RegExp)&&!(l instanceof ArrayBuffer),n=l=>{switch(l.status){case"fulfilled":return l.value;case"rejected":throw l.reason;default:throw l}},i=new WeakMap,o=(l,u,f=n)=>{const d=i.get(l);if((d==null?void 0:d[0])===u)return d[1];const g=Array.isArray(l)?[]:Object.create(Object.getPrototypeOf(l));return Xd(g,!0),i.set(l,[u,g]),Reflect.ownKeys(l).forEach(v=>{if(Object.getOwnPropertyDescriptor(g,v))return;const h=Reflect.get(l,v),p={value:h,enumerable:!0,configurable:!0};if(na.has(h))Xd(h,!1);else if(h instanceof Promise)delete p.value,p.get=()=>f(h);else if(Or.has(h)){const[b,P]=Or.get(h);p.value=o(b,P(),f)}Object.defineProperty(g,v,p)}),g},a=new WeakMap,s=[1,1],c=l=>{if(!vc(l))throw new Error("object required");const u=a.get(l);if(u)return u;let f=s[0];const d=new Set,g=(R,A=++s[0])=>{f!==A&&(f=A,d.forEach(I=>I(R,A)))};let v=s[1];const h=(R=++s[1])=>(v!==R&&!d.size&&(v=R,b.forEach(([A])=>{const I=A[1](R);I>f&&(f=I)})),f),p=R=>(A,I)=>{const k=[...A];k[1]=[R,...k[1]],g(k,I)},b=new Map,P=(R,A)=>{if(({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&b.has(R))throw new Error("prop listener already exists");if(d.size){const I=A[3](p(R));b.set(R,[A,I])}else b.set(R,[A])},E=R=>{var A;const I=b.get(R);I&&(b.delete(R),(A=I[1])==null||A.call(I))},O=R=>(d.add(R),d.size===1&&b.forEach(([I,k],w)=>{if(({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&k)throw new Error("remove already exists");const x=I[3](p(w));b.set(w,[I,x])}),()=>{d.delete(R),d.size===0&&b.forEach(([I,k],w)=>{k&&(k(),b.set(w,[I]))})}),S=Array.isArray(l)?[]:Object.create(Object.getPrototypeOf(l)),_=t(S,{deleteProperty(R,A){const I=Reflect.get(R,A);E(A);const k=Reflect.deleteProperty(R,A);return k&&g(["delete",[A],I]),k},set(R,A,I,k){const w=Reflect.has(R,A),x=Reflect.get(R,A,k);if(w&&(e(x,I)||a.has(I)&&e(x,a.get(I))))return!0;E(A),vc(I)&&(I=BS(I)||I);let T=I;if(I instanceof Promise)I.then(F=>{I.status="fulfilled",I.value=F,g(["resolve",[A],F])}).catch(F=>{I.status="rejected",I.reason=F,g(["reject",[A],F])});else{!Or.has(I)&&r(I)&&(T=c(I));const F=!na.has(T)&&Or.get(T);F&&P(A,F)}return Reflect.set(R,A,T,k),g(["set",[A],I,x]),!0}});a.set(l,_);const M=[S,h,o,O];return Or.set(_,M),Reflect.ownKeys(l).forEach(R=>{const A=Object.getOwnPropertyDescriptor(l,R);"value"in A&&(_[R]=l[R],delete A.value,delete A.writable),Object.defineProperty(S,R,A)}),_})=>[c,Or,na,e,t,r,n,i,o,a,s],[VS]=HS();function Mi(e={}){return VS(e)}function Yd(e,t,r){const n=Or.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 l=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,l()}}function Zd(e,t){const r=Or.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 bc={},qS={get exports(){return bc},set exports(e){bc=e}},Jd={};/** * @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 _n=$;function GS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var US=typeof Object.is=="function"?Object.is:GS,KS=_n.useState,XS=_n.useEffect,YS=_n.useLayoutEffect,ZS=_n.useDebugValue;function JS(e,t){var r=t(),n=KS({inst:{value:r,getSnapshot:t}}),i=n[0].inst,o=n[1];return YS(function(){i.value=r,i.getSnapshot=t,yc(i)&&o({inst:i})},[e,r,t]),XS(function(){return yc(i)&&o({inst:i}),e(function(){yc(i)&&o({inst:i})})},[e]),ZS(r),r}function yc(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!US(e,r)}catch{return!0}}function QS(e,t){return t()}var eC=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?QS:JS;Jd.useSyncExternalStore=_n.useSyncExternalStore!==void 0?_n.useSyncExternalStore:eC,function(e){e.exports=Jd}(qS);const tC=Gv(bc),{use:Qd}=$,{useSyncExternalStore:rC}=tC,nC=(e,t)=>{const r=$.useRef();$.useEffect(()=>{r.current=WS(e,t,!0)}),$.useDebugValue(r.current)},iC=new WeakMap;function En(e,t){const r=t==null?void 0:t.sync,n=$.useRef(),i=$.useRef();let o=!0;const a=rC($.useCallback(l=>{const u=Yd(e,l,r);return l(),u},[e,r]),()=>{const l=Zd(e,Qd);try{if(!o&&n.current&&i.current&&!Kd(n.current,l,i.current,new WeakMap))return n.current}catch{}return l},()=>Zd(e,Qd));o=!1;const s=new WeakMap;$.useEffect(()=>{n.current=a,i.current=s}),({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&nC(a,s);const c=$.useMemo(()=>new WeakMap,[]);return Ud(a,s,c,iC)}const wc={accessKey:"",useNarrowMode:!1,initialShowMore:!1,pureRecommend:!1,openInIINAWhenRightClick:!1,usePcDesktopApi:!1,useParallelRequest:!0},Ze=Mi({...wc}),eh=Object.keys(wc),$r=function(){return En(Ze)},th="bilibili-app-recommend.settings";function oC(){const e=GM_getValue(th);e&&typeof e=="object"&&Object.assign(Ze,Vd(e,eh)),Yd(Ze,()=>{aC()})}function aC(){const e=Vd(Ze,eh);GM_setValue(th,e)}function rh(e){Object.assign(Ze,e)}function sC(){return rh(wc)}oC();var On={},cC={get exports(){return On},set exports(e){On=e}};const lC=(e,t)=>Math.floor(Math.random()*(t-e+1)+e),nh=()=>{const e=new Error("Delay aborted");return e.name="AbortError",e},ih=({clearTimeout:e,setTimeout:t,willResolve:r})=>(n,{value:i,signal:o}={})=>{if(o&&o.aborted)return Promise.reject(nh());let a,s,c;const l=e||clearTimeout,u=()=>{l(a),c(nh())},f=()=>{o&&o.removeEventListener("abort",u)},d=new Promise((g,v)=>{s=()=>{f(),r?g(i):v(i)},c=v,a=(t||setTimeout)(s,n)});return o&&o.addEventListener("abort",u,{once:!0}),d.clear=()=>{l(a),a=null,s()},d},oh=e=>{const t=ih({...e,willResolve:!0});return t.reject=ih({...e,willResolve:!1}),t.range=(r,n,i)=>t(lC(r,n),i),t},Sc=oh();Sc.createWithTimers=oh,cC.exports=Sc,On.default=Sc;var ia,ah=fe;ia=ah.createRoot,ah.hydrateRoot;const Hk="",Ri=lS(()=>!!document.querySelectorAll(".bili-feed4").length),sh=document.querySelector(".bili-header__bar"),ch=!!(sh&&window.getComputedStyle(sh).display==="none")?50:64,lh=()=>document.body.classList.contains("dark"),uh=Mi({value:lh()});function Cc(){return En(uh).value}const oa=new MutationObserver(function(){uh.value=lh()});oa.observe(document.body,{attributes:!0,attributeFilter:["class"]}),window.addEventListener("unload",()=>{oa==null||oa.disconnect()});var xc={},ft={};Object.defineProperty(ft,"__esModule",{value:!0}),ft.DEFAULT_ICON_CONFIGS=void 0,ft.IconConverter=ph,ft.IconProvider=void 0,ft.IconWrapper=vC;var aa=uC($);function fh(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(fh=function(n){return n?r:t})(e)}function uC(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=fh(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 fC=["size","strokeWidth","strokeLinecap","strokeLinejoin","theme","fill","className","spin"];function dh(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 hh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dh(Object(r),!0).forEach(function(n){dC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dC(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hC(e,t){if(e==null)return{};var r=gC(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 gC(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 gh={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"};ft.DEFAULT_ICON_CONFIGS=gh;function pC(){return"icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)}function ph(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 mh=(0,aa.createContext)(gh),mC=mh.Provider;ft.IconProvider=mC;function vC(e,t,r){return function(n){var i=n.size,o=n.strokeWidth,a=n.strokeLinecap,s=n.strokeLinejoin,c=n.theme,l=n.fill,u=n.className,f=n.spin,d=hC(n,fC),g=(0,aa.useContext)(mh),v=(0,aa.useMemo)(pC,[]),h=ph(v,{size:i,strokeWidth:o,strokeLinecap:a,strokeLinejoin:s,theme:c,fill:l},g),p=[g.prefix+"-icon"];return p.push(g.prefix+"-icon-"+e),t&&g.rtl&&p.push(g.prefix+"-icon-rtl"),f&&p.push(g.prefix+"-icon-spin"),u&&p.push(u),aa.default.createElement("span",hh(hh({},d),{},{className:p.join(" ")}),r(h))}}Object.defineProperty(xc,"__esModule",{value:!0});var vh=xc.default=void 0,_c=yC($),bC=ft;function yC(e){return e&&e.__esModule?e:{default:e}}var wC=(0,bC.IconWrapper)("close",!1,function(e){return _c.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},_c.default.createElement("path",{d:"M8 8L40 40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),_c.default.createElement("path",{d:"M8 40L40 8",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});vh=xc.default=wC;var Ec={};Object.defineProperty(Ec,"__esModule",{value:!0});var bh=Ec.default=void 0,Oc=CC($),SC=ft;function CC(e){return e&&e.__esModule?e:{default:e}}var xC=(0,SC.IconWrapper)("config",!1,function(e){return Oc.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Oc.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}),Oc.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}))});bh=Ec.default=xC;var $c={};Object.defineProperty($c,"__esModule",{value:!0});var yh=$c.default=void 0,Fi=EC($),_C=ft;function EC(e){return e&&e.__esModule?e:{default:e}}var OC=(0,_C.IconWrapper)("distraught-face",!1,function(e){return Fi.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Fi.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}),Fi.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}),Fi.default.createElement("path",{d:"M32 17L29 20L32 23",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Fi.default.createElement("path",{d:"M16 17L19 20L16 23",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});yh=$c.default=OC;var Pc={};Object.defineProperty(Pc,"__esModule",{value:!0});var wh=Pc.default=void 0,Li=PC($),$C=ft;function PC(e){return e&&e.__esModule?e:{default:e}}var TC=(0,$C.IconWrapper)("info",!0,function(e){return Li.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Li.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}),Li.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]}),Li.default.createElement("path",{d:"M24.5 34V20H23.5H22.5",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Li.default.createElement("path",{d:"M21 34H28",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});wh=Pc.default=TC;var Tc={};Object.defineProperty(Tc,"__esModule",{value:!0});var Sh=Tc.default=void 0,kc=AC($),kC=ft;function AC(e){return e&&e.__esModule?e:{default:e}}var MC=(0,kC.IconWrapper)("loading",!0,function(e){return kc.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},kc.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}),kc.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}))});Sh=Tc.default=MC;var Ac={};Object.defineProperty(Ac,"__esModule",{value:!0});var Ch=Ac.default=void 0,Xt=FC($),RC=ft;function FC(e){return e&&e.__esModule?e:{default:e}}var LC=(0,RC.IconWrapper)("loading-three",!1,function(e){return Xt.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Xt.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}),Xt.default.createElement("path",{d:"M24 12V15",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Xt.default.createElement("path",{d:"M32.4852 15.5147L30.3639 17.636",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Xt.default.createElement("path",{d:"M36 24H33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Xt.default.createElement("path",{d:"M32.4852 32.4853L30.3639 30.364",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Xt.default.createElement("path",{d:"M24 36V33",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Xt.default.createElement("path",{d:"M15.5148 32.4853L17.6361 30.364",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Xt.default.createElement("path",{d:"M12 24H15",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Xt.default.createElement("path",{d:"M15.5148 15.5147L17.6361 17.636",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))});Ch=Ac.default=LC;var Mc={};Object.defineProperty(Mc,"__esModule",{value:!0});var xh=Mc.default=void 0,Rc=IC($),NC=ft;function IC(e){return e&&e.__esModule?e:{default:e}}var jC=(0,NC.IconWrapper)("return",!0,function(e){return Rc.default.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},Rc.default.createElement("path",{d:"M12.9998 8L6 14L12.9998 21",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),Rc.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}))});xh=Mc.default=jC;const DC={Close:vh,Config:bh,DistraughtFace:yh,Return:xh,Loading:Sh,LoadingThree:Ch,Info:wh};function Gr({name:e,theme:t,size:r,fill:n,...i}){t||(t="outline"),r||(r=24);const o=Cc();n||(n=o?"#fff":"#333");const a=DC[e];return N(a,{theme:t,size:r,fill:n,...i,style:{fontSize:0,...i.style}})}var Fc={},zC={get exports(){return Fc},set exports(e){Fc=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 c in o)t.call(o,c)&&o[c]&&n.push(c)}}}return n.join(" ")}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(zC);const Z=Fc;function $n(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Ci(t)}function _h(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Eh(e,t,r){var n=[],i=Bs(e,n,r);return n.length<2?r:i+t(n)}var BC=function(t){var r=Sf(t);r.sheet.speedy=function(s){this.isSpeedy=s},r.compat=!0;var n=function(){for(var c=arguments.length,l=new Array(c),u=0;u<c;u++)l[u]=arguments[u];var f=Ci(l,r.registered,void 0);return Of(r,f,!1),r.key+"-"+f.name},i=function(){for(var c=arguments.length,l=new Array(c),u=0;u<c;u++)l[u]=arguments[u];var f=Ci(l,r.registered),d="animation-"+f.name;return _h(r,{name:f.name,styles:"@keyframes "+d+"{"+f.styles+"}"}),d},o=function(){for(var c=arguments.length,l=new Array(c),u=0;u<c;u++)l[u]=arguments[u];var f=Ci(l,r.registered);_h(r,f)},a=function(){for(var c=arguments.length,l=new Array(c),u=0;u<c;u++)l[u]=arguments[u];return Eh(r.registered,n,WC(l))};return{css:n,cx:a,injectGlobal:o,keyframes:i,hydrate:function(c){c.forEach(function(l){r.inserted[l]=!0})},flush:function(){r.registered={},r.inserted={},r.sheet.flush()},sheet:r.sheet,cache:r,getRegisteredStyles:Bs.bind(null,r.registered),merge:Eh.bind(null,r.registered,n)}},WC=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},HC=BC({key:"css"}),Lc=HC.css;const Oh=e=>(t,r)=>{const n=$.useRef(!1);e(()=>()=>{n.current=!1},[]),e(()=>{if(!n.current)n.current=!0;else return t()},r)};function $h(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 VC(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{l(n.next(u))}catch(f){a(f)}}function c(u){try{l(n.throw(u))}catch(f){a(f)}}function l(u){u.done?o(u.value):i(u.value).then(s,c)}l((n=n.apply(e,t||[])).next())})}const Pn=e=>typeof e=="function",qC=e=>typeof e=="string",Ph=e=>typeof e=="number",Nc=!1;function Pe(e){Nc&&(Pn(e)||console.error(`useMemoizedFn expected parameter is a function, got ${typeof e}`));const t=$.useRef(e);t.current=$.useMemo(()=>e,[e]);const r=$.useRef();return r.current||(r.current=function(...n){return t.current.apply(this,n)}),r.current}const Ic=Oh($.useEffect),Th=(e,{manual:t,ready:r=!0,defaultParams:n=[],refreshDeps:i=[],refreshDepsAction:o})=>{const a=$.useRef(!1);return a.current=!1,Ic(()=>{!t&&r&&(a.current=!0,e.run(...n))},[r]),Ic(()=>{a.current||t||(a.current=!0,o?o():e.refresh())},[...i]),{onBefore:()=>{if(!r)return{stopNow:!0}}}};Th.onInit=({ready:e=!0,manual:t})=>({loading:!t&&e});const GC=Th;function jc(e,t){if(e===t)return!0;for(let r=0;r<e.length;r++)if(!Object.is(e[r],t[r]))return!1;return!0}function kh(e,t){const{current:r}=$.useRef({deps:t,obj:void 0,initialized:!1});return(r.initialized===!1||!jc(r.deps,t))&&(r.deps=t,r.obj=e(),r.initialized=!0),r.obj}function Ni(e){const t=$.useRef(e);return t.current=e,t}const Ii=e=>{Nc&&(Pn(e)||console.error(`useUnmount expected parameter is a function, got ${typeof e}`));const t=Ni(e);$.useEffect(()=>()=>{t.current()},[])},sa=new Map,UC=(e,t,r)=>{const n=sa.get(e);n!=null&&n.timer&&clearTimeout(n.timer);let i;t>-1&&(i=setTimeout(()=>{sa.delete(e)},t)),sa.set(e,Object.assign(Object.assign({},r),{timer:i}))},KC=e=>sa.get(e),ca=new Map,XC=e=>ca.get(e),YC=(e,t)=>{ca.set(e,t),t.then(r=>(ca.delete(e),r)).catch(()=>{ca.delete(e)})},Ur={},ZC=(e,t)=>{Ur[e]&&Ur[e].forEach(r=>r(t))},Dc=(e,t)=>(Ur[e]||(Ur[e]=[]),Ur[e].push(t),function(){const n=Ur[e].indexOf(t);Ur[e].splice(n,1)}),JC=(e,{cacheKey:t,cacheTime:r=5*60*1e3,staleTime:n=0,setCache:i,getCache:o})=>{const a=$.useRef(),s=$.useRef(),c=(u,f)=>{i?i(f):UC(u,r,f),ZC(u,f.data)},l=(u,f=[])=>o?o(f):KC(u);return kh(()=>{if(!t)return;const u=l(t);u&&Object.hasOwnProperty.call(u,"data")&&(e.state.data=u.data,e.state.params=u.params,(n===-1||new Date().getTime()-u.time<=n)&&(e.state.loading=!1)),a.current=Dc(t,f=>{e.setState({data:f})})},[]),Ii(()=>{var u;(u=a.current)===null||u===void 0||u.call(a)}),t?{onBefore:u=>{const f=l(t,u);return!f||!Object.hasOwnProperty.call(f,"data")?{}:n===-1||new Date().getTime()-f.time<=n?{loading:!1,data:f==null?void 0:f.data,error:void 0,returnNow:!0}:{data:f==null?void 0:f.data,error:void 0}},onRequest:(u,f)=>{let d=XC(t);return d&&d!==s.current?{servicePromise:d}:(d=u(...f),s.current=d,YC(t,d),{servicePromise:d})},onSuccess:(u,f)=>{var d;t&&((d=a.current)===null||d===void 0||d.call(a),c(t,{data:u,params:f,time:new Date().getTime()}),a.current=Dc(t,g=>{e.setState({data:g})}))},onMutate:u=>{var f;t&&((f=a.current)===null||f===void 0||f.call(a),c(t,{data:u,params:e.state.params,time:new Date().getTime()}),a.current=Dc(t,d=>{e.setState({data:d})}))}}:{}},QC=(e,{debounceWait:t,debounceLeading:r,debounceTrailing:n,debounceMaxWait:i})=>{const o=$.useRef(),a=$.useMemo(()=>{const s={};return r!==void 0&&(s.leading=r),n!==void 0&&(s.trailing=n),i!==void 0&&(s.maxWait=i),s},[r,n,i]);return $.useEffect(()=>{if(t){const s=e.runAsync.bind(e);return o.current=Fd(c=>{c()},t,a),e.runAsync=(...c)=>new Promise((l,u)=>{var f;(f=o.current)===null||f===void 0||f.call(o,()=>{s(...c).then(l).catch(u)})}),()=>{var c;(c=o.current)===null||c===void 0||c.cancel(),e.runAsync=s}}},[t,a]),t?{onCancel:()=>{var s;(s=o.current)===null||s===void 0||s.cancel()}}:{}},ex=(e,{loadingDelay:t,ready:r})=>{const n=$.useRef();if(!t)return{};const i=()=>{n.current&&clearTimeout(n.current)};return{onBefore:()=>(i(),r!==!1&&(n.current=setTimeout(()=>{e.setState({loading:!0})},t)),{loading:!1}),onFinally:()=>{i()},onCancel:()=>{i()}}},ji=!!(typeof window<"u"&&window.document&&window.document.createElement);function zc(){return ji?document.visibilityState!=="hidden":!0}const Di=[];function tx(e){return Di.push(e),function(){const r=Di.indexOf(e);Di.splice(r,1)}}if(ji){const e=()=>{if(zc())for(let t=0;t<Di.length;t++){const r=Di[t];r()}};window.addEventListener("visibilitychange",e,!1)}const rx=(e,{pollingInterval:t,pollingWhenHidden:r=!0,pollingErrorRetryCount:n=-1})=>{const i=$.useRef(),o=$.useRef(),a=$.useRef(0),s=()=>{var c;i.current&&clearTimeout(i.current),(c=o.current)===null||c===void 0||c.call(o)};return Ic(()=>{t||s()},[t]),t?{onBefore:()=>{s()},onError:()=>{a.current+=1},onSuccess:()=>{a.current=0},onFinally:()=>{n===-1||n!==-1&&a.current<=n?i.current=setTimeout(()=>{!r&&!zc()?o.current=tx(()=>{e.refresh()}):e.refresh()},t):a.current=0},onCancel:()=>{s()}}:{}};function nx(e,t){let r=!1;return(...n)=>{r||(r=!0,e(...n),setTimeout(()=>{r=!1},t))}}function ix(){return ji&&typeof navigator.onLine<"u"?navigator.onLine:!0}const zi=[];function ox(e){return zi.push(e),function(){const r=zi.indexOf(e);r>-1&&zi.splice(r,1)}}if(ji){const e=()=>{if(!(!zc()||!ix()))for(let t=0;t<zi.length;t++){const r=zi[t];r()}};window.addEventListener("visibilitychange",e,!1),window.addEventListener("focus",e,!1)}const ax=(e,{refreshOnWindowFocus:t,focusTimespan:r=5e3})=>{const n=$.useRef(),i=()=>{var o;(o=n.current)===null||o===void 0||o.call(n)};return $.useEffect(()=>{if(t){const o=nx(e.refresh.bind(e),r);n.current=ox(()=>{o()})}return()=>{i()}},[t,r]),Ii(()=>{i()}),{}},sx=(e,{retryInterval:t,retryCount:r})=>{const n=$.useRef(),i=$.useRef(0),o=$.useRef(!1);return r?{onBefore:()=>{o.current||(i.current=0),o.current=!1,n.current&&clearTimeout(n.current)},onSuccess:()=>{i.current=0},onError:()=>{if(i.current+=1,r===-1||i.current<=r){const a=t??Math.min(1e3*Math.pow(2,i.current),3e4);n.current=setTimeout(()=>{o.current=!0,e.refresh()},a)}else i.current=0},onCancel:()=>{i.current=0,n.current&&clearTimeout(n.current)}}:{}},cx=(e,{throttleWait:t,throttleLeading:r,throttleTrailing:n})=>{const i=$.useRef(),o={};return r!==void 0&&(o.leading=r),n!==void 0&&(o.trailing=n),$.useEffect(()=>{if(t){const a=e.runAsync.bind(e);return i.current=MS(s=>{s()},t,o),e.runAsync=(...s)=>new Promise((c,l)=>{var u;(u=i.current)===null||u===void 0||u.call(i,()=>{a(...s).then(c).catch(l)})}),()=>{var s;e.runAsync=a,(s=i.current)===null||s===void 0||s.cancel()}}},[t,r,n]),t?{onCancel:()=>{var a;(a=i.current)===null||a===void 0||a.cancel()}}:{}},lx=e=>{Nc&&(Pn(e)||console.error(`useMount: parameter \`fn\` expected to be a function, but got "${typeof e}".`)),$.useEffect(()=>{e==null||e()},[])},ux=()=>{const[,e]=$.useState({});return $.useCallback(()=>e({}),[])};class fx{constructor(t,r,n,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=Object.assign(Object.assign(Object.assign({},this.state),{loading:!r.manual}),i)}setState(t={}){this.state=Object.assign(Object.assign({},this.state),t),this.subscribe()}runPluginHandler(t,...r){const n=this.pluginImpls.map(i=>{var o;return(o=i[t])===null||o===void 0?void 0:o.call(i,...r)}).filter(Boolean);return Object.assign({},...n)}runAsync(...t){var r,n,i,o,a,s,c,l,u,f;return VC(this,void 0,void 0,function*(){this.count+=1;const d=this.count,g=this.runPluginHandler("onBefore",t),{stopNow:v=!1,returnNow:h=!1}=g,p=$h(g,["stopNow","returnNow"]);if(v)return new Promise(()=>{});if(this.setState(Object.assign({loading:!0,params:t},p)),h)return Promise.resolve(p.data);(n=(r=this.options).onBefore)===null||n===void 0||n.call(r,t);try{let{servicePromise:b}=this.runPluginHandler("onRequest",this.serviceRef.current,t);b||(b=this.serviceRef.current(...t));const P=yield b;return d!==this.count?new Promise(()=>{}):(this.setState({data:P,error:void 0,loading:!1}),(o=(i=this.options).onSuccess)===null||o===void 0||o.call(i,P,t),this.runPluginHandler("onSuccess",P,t),(s=(a=this.options).onFinally)===null||s===void 0||s.call(a,t,P,void 0),d===this.count&&this.runPluginHandler("onFinally",t,P,void 0),P)}catch(b){if(d!==this.count)return new Promise(()=>{});throw this.setState({error:b,loading:!1}),(l=(c=this.options).onError)===null||l===void 0||l.call(c,b,t),this.runPluginHandler("onError",b,t),(f=(u=this.options).onFinally)===null||f===void 0||f.call(u,t,void 0,b),d===this.count&&this.runPluginHandler("onFinally",t,void 0,b),b}})}run(...t){this.runAsync(...t).catch(r=>{this.options.onError||console.error(r)})}cancel(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")}refresh(){this.run(...this.state.params||[])}refreshAsync(){return this.runAsync(...this.state.params||[])}mutate(t){const r=Pn(t)?t(this.state.data):t;this.runPluginHandler("onMutate",r),this.setState({data:r})}}function dx(e,t={},r=[]){const{manual:n=!1}=t,i=$h(t,["manual"]),o=Object.assign({manual:n},i),a=Ni(e),s=ux(),c=kh(()=>{const l=r.map(u=>{var f;return(f=u==null?void 0:u.onInit)===null||f===void 0?void 0:f.call(u,o)}).filter(Boolean);return new fx(a,o,s,Object.assign({},...l))},[]);return c.options=o,c.pluginImpls=r.map(l=>l(c,o)),lx(()=>{if(!n){const l=c.state.params||t.defaultParams||[];c.run(...l)}}),Ii(()=>{c.cancel()}),{loading:c.state.loading,data:c.state.data,error:c.state.error,params:c.state.params||[],cancel:Pe(c.cancel.bind(c)),refresh:Pe(c.refresh.bind(c)),refreshAsync:Pe(c.refreshAsync.bind(c)),run:Pe(c.run.bind(c)),runAsync:Pe(c.runAsync.bind(c)),mutate:Pe(c.mutate.bind(c))}}function Ah(e,t,r){return dx(e,t,[...r||[],QC,ex,rx,ax,cx,GC,JC,sx])}function Mh(e=!1,t){const[r,n]=$.useState(e),i=$.useMemo(()=>{const o=t===void 0?!e:t;return{toggle:()=>n(u=>u===e?o:e),set:u=>n(u),setLeft:()=>n(e),setRight:()=>n(o)}},[]);return[r,i]}function hx(e=!1){const[t,{toggle:r,set:n}]=Mh(e),i=$.useMemo(()=>({toggle:r,set:s=>n(!!s),setTrue:()=>n(!0),setFalse:()=>n(!1)}),[]);return[t,i]}function la(e,t){if(!ji)return;if(!e)return t;let r;return Pn(e)?r=e():"current"in e?r=e.current:r=e,r}const Rh=(e=>(r,n,i)=>{const o=$.useRef(!1),a=$.useRef([]),s=$.useRef([]),c=$.useRef();e(()=>{var l;const f=(Array.isArray(i)?i:[i]).map(d=>la(d));if(!o.current){o.current=!0,a.current=f,s.current=n,c.current=r();return}(f.length!==a.current.length||!jc(f,a.current)||!jc(n,s.current))&&((l=c.current)===null||l===void 0||l.call(c),a.current=f,s.current=n,c.current=r())}),Ii(()=>{var l;(l=c.current)===null||l===void 0||l.call(c),o.current=!1})})($.useEffect);var Bc={},gx={get exports(){return Bc},set exports(e){Bc=e}};(function(e,t){(function(r,n){e.exports=n()})(qv,function(){var r=1e3,n=6e4,i=36e5,o="millisecond",a="second",s="minute",c="hour",l="day",u="week",f="month",d="quarter",g="year",v="date",h="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,P={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(w){var x=["th","st","nd","rd"],T=w%100;return"["+w+(x[(T-20)%10]||x[T]||x[0])+"]"}},E=function(w,x,T){var F=String(w);return!F||F.length>=x?w:""+Array(x+1-F.length).join(T)+w},O={s:E,z:function(w){var x=-w.utcOffset(),T=Math.abs(x),F=Math.floor(T/60),L=T%60;return(x<=0?"+":"-")+E(F,2,"0")+":"+E(L,2,"0")},m:function w(x,T){if(x.date()<T.date())return-w(T,x);var F=12*(T.year()-x.year())+(T.month()-x.month()),L=x.clone().add(F,f),j=T-L<0,z=x.clone().add(F+(j?-1:1),f);return+(-(F+(T-L)/(j?L-z:z-L))||0)},a:function(w){return w<0?Math.ceil(w)||0:Math.floor(w)},p:function(w){return{M:f,y:g,w:u,d:l,D:v,h:c,m:s,s:a,ms:o,Q:d}[w]||String(w||"").toLowerCase().replace(/s$/,"")},u:function(w){return w===void 0}},S="en",y={};y[S]=P;var _=function(w){return w instanceof I},M=function w(x,T,F){var L;if(!x)return S;if(typeof x=="string"){var j=x.toLowerCase();y[j]&&(L=j),T&&(y[j]=T,L=j);var z=x.split("-");if(!L&&z.length>1)return w(z[0])}else{var W=x.name;y[W]=x,L=W}return!F&&L&&(S=L),L||!F&&S},R=function(w,x){if(_(w))return w.clone();var T=typeof x=="object"?x:{};return T.date=w,T.args=arguments,new I(T)},A=O;A.l=M,A.i=_,A.w=function(w,x){return R(w,{locale:x.$L,utc:x.$u,x:x.$x,$offset:x.$offset})};var I=function(){function w(T){this.$L=M(T.locale,null,!0),this.parse(T)}var x=w.prototype;return x.parse=function(T){this.$d=function(F){var L=F.date,j=F.utc;if(L===null)return new Date(NaN);if(A.u(L))return new Date;if(L instanceof Date)return new Date(L);if(typeof L=="string"&&!/Z$/i.test(L)){var z=L.match(p);if(z){var W=z[2]-1||0,q=(z[7]||"0").substring(0,3);return j?new Date(Date.UTC(z[1],W,z[3]||1,z[4]||0,z[5]||0,z[6]||0,q)):new Date(z[1],W,z[3]||1,z[4]||0,z[5]||0,z[6]||0,q)}}return new Date(L)}(T),this.$x=T.x||{},this.init()},x.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds()},x.$utils=function(){return A},x.isValid=function(){return this.$d.toString()!==h},x.isSame=function(T,F){var L=R(T);return this.startOf(F)<=L&&L<=this.endOf(F)},x.isAfter=function(T,F){return R(T)<this.startOf(F)},x.isBefore=function(T,F){return this.endOf(F)<R(T)},x.$g=function(T,F,L){return A.u(T)?this[F]:this.set(L,T)},x.unix=function(){return Math.floor(this.valueOf()/1e3)},x.valueOf=function(){return this.$d.getTime()},x.startOf=function(T,F){var L=this,j=!!A.u(F)||F,z=A.p(T),W=function(ke,ee){var be=A.w(L.$u?Date.UTC(L.$y,ee,ke):new Date(L.$y,ee,ke),L);return j?be:be.endOf(l)},q=function(ke,ee){return A.w(L.toDate()[ke].apply(L.toDate("s"),(j?[0,0,0,0]:[23,59,59,999]).slice(ee)),L)},H=this.$W,B=this.$M,le=this.$D,te="set"+(this.$u?"UTC":"");switch(z){case g:return j?W(1,0):W(31,11);case f:return j?W(1,B):W(0,B+1);case u:var qe=this.$locale().weekStart||0,Oe=(H<qe?H+7:H)-qe;return W(j?le-Oe:le+(6-Oe),B);case l:case v:return q(te+"Hours",0);case c:return q(te+"Minutes",1);case s:return q(te+"Seconds",2);case a:return q(te+"Milliseconds",3);default:return this.clone()}},x.endOf=function(T){return this.startOf(T,!1)},x.$set=function(T,F){var L,j=A.p(T),z="set"+(this.$u?"UTC":""),W=(L={},L[l]=z+"Date",L[v]=z+"Date",L[f]=z+"Month",L[g]=z+"FullYear",L[c]=z+"Hours",L[s]=z+"Minutes",L[a]=z+"Seconds",L[o]=z+"Milliseconds",L)[j],q=j===l?this.$D+(F-this.$W):F;if(j===f||j===g){var H=this.clone().set(v,1);H.$d[W](q),H.init(),this.$d=H.set(v,Math.min(this.$D,H.daysInMonth())).$d}else W&&this.$d[W](q);return this.init(),this},x.set=function(T,F){return this.clone().$set(T,F)},x.get=function(T){return this[A.p(T)]()},x.add=function(T,F){var L,j=this;T=Number(T);var z=A.p(F),W=function(B){var le=R(j);return A.w(le.date(le.date()+Math.round(B*T)),j)};if(z===f)return this.set(f,this.$M+T);if(z===g)return this.set(g,this.$y+T);if(z===l)return W(1);if(z===u)return W(7);var q=(L={},L[s]=n,L[c]=i,L[a]=r,L)[z]||1,H=this.$d.getTime()+T*q;return A.w(H,this)},x.subtract=function(T,F){return this.add(-1*T,F)},x.format=function(T){var F=this,L=this.$locale();if(!this.isValid())return L.invalidDate||h;var j=T||"YYYY-MM-DDTHH:mm:ssZ",z=A.z(this),W=this.$H,q=this.$m,H=this.$M,B=L.weekdays,le=L.months,te=function(ee,be,Me,Ge){return ee&&(ee[be]||ee(F,j))||Me[be].slice(0,Ge)},qe=function(ee){return A.s(W%12||12,ee,"0")},Oe=L.meridiem||function(ee,be,Me){var Ge=ee<12?"AM":"PM";return Me?Ge.toLowerCase():Ge},ke={YY:String(this.$y).slice(-2),YYYY:this.$y,M:H+1,MM:A.s(H+1,2,"0"),MMM:te(L.monthsShort,H,le,3),MMMM:te(le,H),D:this.$D,DD:A.s(this.$D,2,"0"),d:String(this.$W),dd:te(L.weekdaysMin,this.$W,B,2),ddd:te(L.weekdaysShort,this.$W,B,3),dddd:B[this.$W],H:String(W),HH:A.s(W,2,"0"),h:qe(1),hh:qe(2),a:Oe(W,q,!0),A:Oe(W,q,!1),m:String(q),mm:A.s(q,2,"0"),s:String(this.$s),ss:A.s(this.$s,2,"0"),SSS:A.s(this.$ms,3,"0"),Z:z};return j.replace(b,function(ee,be){return be||ke[ee]||z.replace(":","")})},x.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},x.diff=function(T,F,L){var j,z=A.p(F),W=R(T),q=(W.utcOffset()-this.utcOffset())*n,H=this-W,B=A.m(this,W);return B=(j={},j[g]=B/12,j[f]=B,j[d]=B/3,j[u]=(H-q)/6048e5,j[l]=(H-q)/864e5,j[c]=H/i,j[s]=H/n,j[a]=H/r,j)[z]||H,L?B:A.a(B)},x.daysInMonth=function(){return this.endOf(f).$D},x.$locale=function(){return y[this.$L]},x.locale=function(T,F){if(!T)return this.$L;var L=this.clone(),j=M(T,F,!0);return j&&(L.$L=j),L},x.clone=function(){return A.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()},w}(),k=I.prototype;return R.prototype=k,[["$ms",o],["$s",a],["$m",s],["$H",c],["$W",l],["$M",f],["$y",g],["$D",v]].forEach(function(w){k[w[1]]=function(x){return this.$g(x,w[0],w[1])}}),R.extend=function(w,x){return w.$i||(w(x,I,R),w.$i=!0),R},R.locale=M,R.isDayjs=_,R.unix=function(w){return R(1e3*w)},R.en=y[S],R.Ls=y,R.p={},R})})(gx);const Fh=Bc;function ua(e,t,r={}){const n=Ni(t);Rh(()=>{const i=la(r.target,window);if(!(i!=null&&i.addEventListener))return;const o=a=>n.current(a);return i.addEventListener(e,o,{capture:r.capture,once:r.once,passive:r.passive}),()=>{i.removeEventListener(e,o,{capture:r.capture})}},[e,r.capture,r.once,r.passive],r.target)}const Wc=(e,t)=>{const{onEnter:r,onLeave:n,onChange:i}=t||{},[o,{setTrue:a,setFalse:s}]=hx(!1);return ua("mouseenter",()=>{r==null||r(),a(),i==null||i(!0)},{target:e}),ua("mouseleave",()=>{n==null||n(),s(),i==null||i(!1)},{target:e}),o},px=(e,t=[])=>aS(e,t),mx=(e,t,r)=>{const n=$.useRef(),i=$.useRef(0);px(t,n.current)||(n.current=t,i.current+=1),Rh(e,[i.current],r)},vx=/(mac|iphone|ipod|ipad)/i.test(typeof navigator<"u"?navigator==null?void 0:navigator.platform:""),fa={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,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};vx?fa.meta=[91,93]:fa.meta=[91,92];const Hc={ctrl:e=>e.ctrlKey,shift:e=>e.shiftKey,alt:e=>e.altKey,meta:e=>e.type==="keyup"?fa.meta.includes(e.keyCode):e.metaKey};function bx(e){const t=Object.keys(Hc).reduce((r,n)=>Hc[n](e)?r+1:r,0);return[16,17,18,91,92].includes(e.keyCode)?t:t+1}function Lh(e,t,r){if(!e.key)return!1;if(Ph(t))return e.keyCode===t;const n=t.split(".");let i=0;for(const o of n){const a=Hc[o],s=fa[o.toLowerCase()];(a&&a(e)||s&&s===e.keyCode)&&i++}return r?i===n.length&&bx(e)===n.length:i===n.length}function yx(e,t){return Pn(e)?e:qC(e)||Ph(e)?r=>Lh(r,e,t):Array.isArray(e)?r=>e.some(n=>Lh(r,n,t)):()=>!!e}const wx=["keydown"];function rt(e,t,r){const{events:n=wx,target:i,exactMatch:o=!1,useCapture:a=!1}=r||{},s=Ni(t),c=Ni(e);mx(()=>{var l;const u=la(i,window);if(!u)return;const f=d=>{var g;if(yx(c.current,o)(d))return(g=s.current)===null||g===void 0?void 0:g.call(s,d)};for(const d of n)(l=u==null?void 0:u.addEventListener)===null||l===void 0||l.call(u,d,f,a);return()=>{var d;for(const g of n)(d=u==null?void 0:u.removeEventListener)===null||d===void 0||d.call(u,g,f,a)}},[n],i)}function Sx(e){const t=$.useRef(0),[r,n]=$.useState(e),i=$.useCallback(o=>{cancelAnimationFrame(t.current),t.current=requestAnimationFrame(()=>{n(o)})},[]);return Ii(()=>{cancelAnimationFrame(t.current)}),[r,i]}const Cx={screenX:NaN,screenY:NaN,clientX:NaN,clientY:NaN,pageX:NaN,pageY:NaN,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},xx=e=>{const[t,r]=Sx(Cx);return ua("mousemove",n=>{const{screenX:i,screenY:o,clientX:a,clientY:s,pageX:c,pageY:l}=n,u={screenX:i,screenY:o,clientX:a,clientY:s,pageX:c,pageY:l,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},f=la(e);if(f){const{left:d,top:g,width:v,height:h}=f.getBoundingClientRect();u.elementPosX=d+window.pageXOffset,u.elementPosY=g+window.pageYOffset,u.elementX=c-u.elementPosX,u.elementY=l-u.elementPosY,u.elementW=v,u.elementH=h}r(u)},{target:()=>document}),t};var Nh=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}()}(),Vc=typeof window<"u"&&typeof document<"u"&&window.document===document,da=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")()}(),_x=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(da):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),Ex=2;function Ox(e,t){var r=!1,n=!1,i=0;function o(){r&&(r=!1,e()),n&&s()}function a(){_x(o)}function s(){var c=Date.now();if(r){if(c-i<Ex)return;n=!0}else r=!0,n=!1,setTimeout(a,t);i=c}return s}var $x=20,Px=["top","right","bottom","left","width","height","size","weight"],Tx=typeof MutationObserver<"u",kx=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Ox(this.refresh.bind(this),$x)}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(){!Vc||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Tx?(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(){!Vc||!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=Px.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}(),Ih=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},Tn=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||da},jh=ga(0,0,0,0);function ha(e){return parseFloat(e)||0}function Dh(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+ha(o)},0)}function Ax(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]=ha(a)}return r}function Mx(e){var t=e.getBBox();return ga(0,0,t.width,t.height)}function Rx(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return jh;var n=Tn(e).getComputedStyle(e),i=Ax(n),o=i.left+i.right,a=i.top+i.bottom,s=ha(n.width),c=ha(n.height);if(n.boxSizing==="border-box"&&(Math.round(s+o)!==t&&(s-=Dh(n,"left","right")+o),Math.round(c+a)!==r&&(c-=Dh(n,"top","bottom")+a)),!Lx(e)){var l=Math.round(s+o)-t,u=Math.round(c+a)-r;Math.abs(l)!==1&&(s-=l),Math.abs(u)!==1&&(c-=u)}return ga(i.left,i.top,s,c)}var Fx=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Tn(e).SVGGraphicsElement}:function(e){return e instanceof Tn(e).SVGElement&&typeof e.getBBox=="function"}}();function Lx(e){return e===Tn(e).document.documentElement}function Nx(e){return Vc?Fx(e)?Mx(e):Rx(e):jh}function Ix(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 Ih(a,{x:t,y:r,width:n,height:i,top:r,right:t+n,bottom:i+r,left:t}),a}function ga(e,t,r,n){return{x:e,y:t,width:r,height:n}}var jx=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=ga(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=Nx(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}(),Dx=function(){function e(t,r){var n=Ix(r);Ih(this,{target:t,contentRect:n})}return e}(),zx=function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new Nh,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 Tn(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new jx(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 Tn(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 Dx(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}(),zh=typeof WeakMap<"u"?new WeakMap:new Nh,Bh=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=kx.getInstance(),n=new zx(t,r,this);zh.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){Bh.prototype[e]=function(){var t;return(t=zh.get(this))[e].apply(t,arguments)}});var Bx=function(){return typeof da.ResizeObserver<"u"?da.ResizeObserver:Bh}();const Wx=Oh($.useLayoutEffect),At={modalMask:"_modal-mask_qk630_1",modal:"_modal_qk630_1",modalHeader:"_modal-header_qk630_23",modalBody:"_modal-body_qk630_30",modalTitle:"_modal-title_qk630_35",btnClose:"_btn-close_qk630_42"};let Bi=0;const Hx=()=>{Bi++,document.body.style.overflow="hidden"},Vx=()=>{Bi--,Bi<0&&(Bi=0),Bi===0&&(document.body.style.overflow="")};function qc({show:e,onHide:t,children:r,clsModalMask:n,clsModal:i,hideWhenMaskOnClick:o=!1,hideWhenEsc:a=!1}){$.useLayoutEffect(()=>{e?Hx():Vx()},[e]);const s=$.useRef(null),c=Cc(),{bg:l,c:u}=$.useMemo(()=>{const h=window.getComputedStyle(document.body)["background-color"],p=window.getComputedStyle(document.body).color;return{bg:h,c:p}},[c]),f=$.useMemo(()=>c?{"--bg":l,"--c":u,backgroundColor:l,color:u}:{},[l,u,c]),d=$.useId(),g=$.useMemo(()=>{const h=document.createElement("div");return h.setAttribute("data-id","base-modal-"+d),document.body.appendChild(h),h},[]),v=Pe(h=>{var p;(p=s.current)!=null&&p.contains(h.target)||o&&t()});return rt("esc",h=>{e&&a&&(h.preventDefault(),h.stopImmediatePropagation(),setTimeout(t))}),e?fe.createPortal(N("div",{className:Z(At.modalMask,n),onClick:v,children:N("div",{className:Z(At.modal,i),style:f,ref:s,children:r})}),g):null}const Gc=e=>N(Gr,{...e,name:"Close",size:18,style:{cursor:"pointer",marginLeft:10,...e.style}}),Wh="_toast-container_mcbuq_1",Hh="_single-line_mcbuq_17",gA={toastContainer:Wh,singleLine:Hh};function vt(e,t=2e3){const r=document.createElement("div");r.className=Wh,r.innerText=e,!e.includes(` `)&&!e.includes("<br")&&r.classList.add(Hh),document.body.appendChild(r),setTimeout(()=>r.remove(),t)}const qx="请求失败, 请重试 !!!",Gx="操作失败, 请重试 !!!";function Vh(){return vt(qx)}function qh(){return vt(Gx)}function Ux(e){const t=Mi({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 Gh="27eb53fc9058f8c3";async function Kx(){var c,l;const t=(await Ee.get("https://passport.bilibili.com/login/app/third",{params:{appkey:Gh,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(!((l=t==null?void 0:t.data)!=null&&l.confirm_uri))return{errmsg:"无法获得授权网址",json:t};const r=t.data.confirm_uri;let n;const i=new Promise(u=>{window.addEventListener("message",f=>{if(f.origin!="https://www.mcbbs.net"||!f.data)return;const d=f.data.match(/access_key=([0-9a-z]{32})/);if(!d||!d[1])return u({errmsg:"没有获得匹配的密钥"});u(d[1])}),n=setTimeout(()=>{u({errmsg:"获取授权超时"})},10*1e3)}),o=document.createElement("iframe");o.src=r,o.style.display="none",document.body.appendChild(o);function a(){o.remove(),n&&(clearTimeout(n),n=null)}const s=await i;return a(),s}async function Xx(){const e=await Kx();if(typeof e=="object"&&"errmsg"in e){vt(e.errmsg);return}const t=e;return Ze.accessKey=t,vt("获取成功"),t}function Yx(){Ze.accessKey="",vt("已删除 access_key")}const Uh="https://api.bilibili.com",Kh="https://app.bilibili.com",pa=Ee.create({baseURL:Uh});pa.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 ma=Ee.create({adapter:bn});ma.interceptors.request.use(function(e){return e.params={appkey:Gh,access_key:Ze.accessKey||"",...e.params},e},function(e){return Promise.reject(e)}),ma.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 Zx(){var t;const e=(t=document.cookie.match(/bili_jct=([0-9a-fA-F]{32})/))==null?void 0:t[1];if(!e)throw vt("找不到 csrf token, 请检查是否登录"),new Error("找不到 csrf token, 请检查是否登录");return e}const Wi=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Xh=new Set,Jx=(e,t,r,n)=>{typeof process=="object"&&process&&typeof process.emitWarning=="function"?process.emitWarning(e,t,r,n):console.error(`[${r}] ${t}: ${e}`)},Qx=e=>!Xh.has(e),Pr=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),Yh=e=>Pr(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?va:null:null;class va extends Array{constructor(t){super(t),this.fill(0)}}const ri=class{constructor(t,r){ze(this,"heap");ze(this,"length");if(!C(ri,ti))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(t),this.length=0}static create(t){const r=Yh(t);if(!r)return[];Y(ri,ti,!0);const n=new ri(t,r);return Y(ri,ti,!1),n}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}};let ba=ri;ti=new WeakMap,ie(ba,ti,!1);const Wu=class{constructor(t){ie(this,go);ie(this,ps);ie(this,ar);ie(this,sr);ie(this,vo);ie(this,oi);ie(this,ai);ie(this,ye);ie(this,bo);ie(this,an);ie(this,Rt,void 0);ie(this,_t,void 0);ie(this,ir,void 0);ie(this,Ft,void 0);ie(this,ni,void 0);ze(this,"ttl");ze(this,"ttlResolution");ze(this,"ttlAutopurge");ze(this,"updateAgeOnGet");ze(this,"updateAgeOnHas");ze(this,"allowStale");ze(this,"noDisposeOnSet");ze(this,"noUpdateTTL");ze(this,"maxEntrySize");ze(this,"sizeCalculation");ze(this,"noDeleteOnFetchRejection");ze(this,"noDeleteOnStaleGet");ze(this,"allowStaleOnFetchAbort");ze(this,"allowStaleOnFetchRejection");ze(this,"ignoreFetchAbort");ie(this,He,void 0);ie(this,Lt,void 0);ie(this,Ve,void 0);ie(this,Ce,void 0);ie(this,Q,void 0);ie(this,ct,void 0);ie(this,Et,void 0);ie(this,it,void 0);ie(this,Xe,void 0);ie(this,Nt,void 0);ie(this,Qe,void 0);ie(this,Cr,void 0);ie(this,xr,void 0);ie(this,It,void 0);ie(this,or,void 0);ie(this,Nr,void 0);ie(this,ht,void 0);ie(this,nn,()=>{});ie(this,_r,()=>{});ie(this,po,()=>{});ie(this,Ot,()=>!1);ie(this,on,t=>{});ie(this,ii,(t,r,n)=>{});ie(this,mo,(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:c,dispose:l,disposeAfter:u,noDisposeOnSet:f,noUpdateTTL:d,maxSize:g=0,maxEntrySize:v=0,sizeCalculation:h,fetchMethod:p,noDeleteOnFetchRejection:b,noDeleteOnStaleGet:P,allowStaleOnFetchRejection:E,allowStaleOnFetchAbort:O,ignoreFetchAbort:S}=t;if(r!==0&&!Pr(r))throw new TypeError("max option must be a nonnegative integer");const y=r?Yh(r):Array;if(!y)throw new Error("invalid max value: "+r);if(Y(this,Rt,r),Y(this,_t,g),this.maxEntrySize=v||C(this,_t),this.sizeCalculation=h,this.sizeCalculation){if(!C(this,_t)&&!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(Y(this,ni,p),Y(this,Nr,!!p),Y(this,Ve,new Map),Y(this,Ce,new Array(r).fill(void 0)),Y(this,Q,new Array(r).fill(void 0)),Y(this,ct,new y(r)),Y(this,Et,new y(r)),Y(this,it,0),Y(this,Xe,0),Y(this,Nt,ba.create(r)),Y(this,He,0),Y(this,Lt,0),typeof l=="function"&&Y(this,ir,l),typeof u=="function"?(Y(this,Ft,u),Y(this,Qe,[])):(Y(this,Ft,void 0),Y(this,Qe,void 0)),Y(this,or,!!C(this,ir)),Y(this,ht,!!C(this,Ft)),this.noDisposeOnSet=!!f,this.noUpdateTTL=!!d,this.noDeleteOnFetchRejection=!!b,this.allowStaleOnFetchRejection=!!E,this.allowStaleOnFetchAbort=!!O,this.ignoreFetchAbort=!!S,this.maxEntrySize!==0){if(C(this,_t)!==0&&!Pr(C(this,_t)))throw new TypeError("maxSize must be a positive integer if specified");if(!Pr(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");U(this,ps,mv).call(this)}if(this.allowStale=!!c,this.noDeleteOnStaleGet=!!P,this.updateAgeOnGet=!!a,this.updateAgeOnHas=!!s,this.ttlResolution=Pr(i)||i===0?i:1,this.ttlAutopurge=!!o,this.ttl=n||0,this.ttl){if(!Pr(this.ttl))throw new TypeError("ttl must be a positive integer if specified");U(this,go,af).call(this)}if(C(this,Rt)===0&&this.ttl===0&&C(this,_t)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!C(this,Rt)&&!C(this,_t)){const _="LRU_CACHE_UNBOUNDED";Qx(_)&&(Xh.add(_),Jx("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",_,Wu))}}static unsafeExposeInternals(t){return{starts:C(t,xr),ttls:C(t,It),sizes:C(t,Cr),keyMap:C(t,Ve),keyList:C(t,Ce),valList:C(t,Q),next:C(t,ct),prev:C(t,Et),get head(){return C(t,it)},get tail(){return C(t,Xe)},free:C(t,Nt),isBackgroundFetch:r=>{var n;return U(n=t,ye,$e).call(n,r)},backgroundFetch:(r,n,i,o)=>{var a;return U(a=t,ai,Ms).call(a,r,n,i,o)},moveToTail:r=>{var n;return U(n=t,an,$o).call(n,r)},indexes:r=>{var n;return U(n=t,ar,Dr).call(n,r)},rindexes:r=>{var n;return U(n=t,sr,zr).call(n,r)},isStale:r=>{var n;return C(n=t,Ot).call(n,r)}}}get max(){return C(this,Rt)}get maxSize(){return C(this,_t)}get calculatedSize(){return C(this,Lt)}get size(){return C(this,He)}get fetchMethod(){return C(this,ni)}get dispose(){return C(this,ir)}get disposeAfter(){return C(this,Ft)}getRemainingTTL(t){return C(this,Ve).has(t)?1/0:0}*entries(){for(const t of U(this,ar,Dr).call(this))C(this,Q)[t]!==void 0&&C(this,Ce)[t]!==void 0&&!U(this,ye,$e).call(this,C(this,Q)[t])&&(yield[C(this,Ce)[t],C(this,Q)[t]])}*rentries(){for(const t of U(this,sr,zr).call(this))C(this,Q)[t]!==void 0&&C(this,Ce)[t]!==void 0&&!U(this,ye,$e).call(this,C(this,Q)[t])&&(yield[C(this,Ce)[t],C(this,Q)[t]])}*keys(){for(const t of U(this,ar,Dr).call(this)){const r=C(this,Ce)[t];r!==void 0&&!U(this,ye,$e).call(this,C(this,Q)[t])&&(yield r)}}*rkeys(){for(const t of U(this,sr,zr).call(this)){const r=C(this,Ce)[t];r!==void 0&&!U(this,ye,$e).call(this,C(this,Q)[t])&&(yield r)}}*values(){for(const t of U(this,ar,Dr).call(this))C(this,Q)[t]!==void 0&&!U(this,ye,$e).call(this,C(this,Q)[t])&&(yield C(this,Q)[t])}*rvalues(){for(const t of U(this,sr,zr).call(this))C(this,Q)[t]!==void 0&&!U(this,ye,$e).call(this,C(this,Q)[t])&&(yield C(this,Q)[t])}[Symbol.iterator](){return this.entries()}find(t,r={}){for(const n of U(this,ar,Dr).call(this)){const i=C(this,Q)[n],o=U(this,ye,$e).call(this,i)?i.__staleWhileFetching:i;if(o!==void 0&&t(o,C(this,Ce)[n],this))return this.get(C(this,Ce)[n],r)}}forEach(t,r=this){for(const n of U(this,ar,Dr).call(this)){const i=C(this,Q)[n],o=U(this,ye,$e).call(this,i)?i.__staleWhileFetching:i;o!==void 0&&t.call(r,o,C(this,Ce)[n],this)}}rforEach(t,r=this){for(const n of U(this,sr,zr).call(this)){const i=C(this,Q)[n],o=U(this,ye,$e).call(this,i)?i.__staleWhileFetching:i;o!==void 0&&t.call(r,o,C(this,Ce)[n],this)}}purgeStale(){let t=!1;for(const r of U(this,sr,zr).call(this,{allowStale:!0}))C(this,Ot).call(this,r)&&(this.delete(C(this,Ce)[r]),t=!0);return t}dump(){const t=[];for(const r of U(this,ar,Dr).call(this,{allowStale:!0})){const n=C(this,Ce)[r],i=C(this,Q)[r],o=U(this,ye,$e).call(this,i)?i.__staleWhileFetching:i;if(o===void 0||n===void 0)continue;const a={value:o};if(C(this,It)&&C(this,xr)){a.ttl=C(this,It)[r];const s=Wi.now()-C(this,xr)[r];a.start=Math.floor(Date.now()-s)}C(this,Cr)&&(a.size=C(this,Cr)[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=Wi.now()-i}this.set(r,n.value,n)}}set(t,r,n={}){var d,g,v;const{ttl:i=this.ttl,start:o,noDisposeOnSet:a=this.noDisposeOnSet,sizeCalculation:s=this.sizeCalculation,status:c}=n;let{noUpdateTTL:l=this.noUpdateTTL}=n;const u=C(this,mo).call(this,t,r,n.size||0,s);if(this.maxEntrySize&&u>this.maxEntrySize)return c&&(c.set="miss",c.maxEntrySizeExceeded=!0),this.delete(t),this;let f=C(this,He)===0?void 0:C(this,Ve).get(t);if(f===void 0)f=C(this,He)===0?C(this,Xe):C(this,Nt).length!==0?C(this,Nt).pop():C(this,He)===C(this,Rt)?U(this,oi,As).call(this,!1):C(this,He),C(this,Ce)[f]=t,C(this,Q)[f]=r,C(this,Ve).set(t,f),C(this,ct)[C(this,Xe)]=f,C(this,Et)[f]=C(this,Xe),Y(this,Xe,f),ks(this,He)._++,C(this,ii).call(this,f,u,c),c&&(c.set="add"),l=!1;else{U(this,an,$o).call(this,f);const h=C(this,Q)[f];if(r!==h){if(C(this,Nr)&&U(this,ye,$e).call(this,h)?h.__abortController.abort(new Error("replaced")):a||(C(this,or)&&((d=C(this,ir))==null||d.call(this,h,t,"set")),C(this,ht)&&((g=C(this,Qe))==null||g.push([h,t,"set"]))),C(this,on).call(this,f),C(this,ii).call(this,f,u,c),C(this,Q)[f]=r,c){c.set="replace";const p=h&&U(this,ye,$e).call(this,h)?h.__staleWhileFetching:h;p!==void 0&&(c.oldValue=p)}}else c&&(c.set="update")}if(i!==0&&!C(this,It)&&U(this,go,af).call(this),C(this,It)&&(l||C(this,po).call(this,f,i,o),c&&C(this,_r).call(this,c,f)),!a&&C(this,ht)&&C(this,Qe)){const h=C(this,Qe);let p;for(;p=h==null?void 0:h.shift();)(v=C(this,Ft))==null||v.call(this,...p)}return this}pop(){var t;try{for(;C(this,He);){const r=C(this,Q)[C(this,it)];if(U(this,oi,As).call(this,!0),U(this,ye,$e).call(this,r)){if(r.__staleWhileFetching)return r.__staleWhileFetching}else if(r!==void 0)return r}}finally{if(C(this,ht)&&C(this,Qe)){const r=C(this,Qe);let n;for(;n=r==null?void 0:r.shift();)(t=C(this,Ft))==null||t.call(this,...n)}}}has(t,r={}){const{updateAgeOnHas:n=this.updateAgeOnHas,status:i}=r,o=C(this,Ve).get(t);if(o!==void 0){const a=C(this,Q)[o];if(U(this,ye,$e).call(this,a)&&a.__staleWhileFetching===void 0)return!1;if(C(this,Ot).call(this,o))i&&(i.has="stale",C(this,_r).call(this,i,o));else return n&&C(this,nn).call(this,o),i&&(i.has="hit",C(this,_r).call(this,i,o)),!0}else i&&(i.has="miss");return!1}peek(t,r={}){const{allowStale:n=this.allowStale}=r,i=C(this,Ve).get(t);if(i!==void 0&&(n||!C(this,Ot).call(this,i))){const o=C(this,Q)[i];return U(this,ye,$e).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:c=0,sizeCalculation:l=this.sizeCalculation,noUpdateTTL:u=this.noUpdateTTL,noDeleteOnFetchRejection:f=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:d=this.allowStaleOnFetchRejection,ignoreFetchAbort:g=this.ignoreFetchAbort,allowStaleOnFetchAbort:v=this.allowStaleOnFetchAbort,context:h,forceRefresh:p=!1,status:b,signal:P}=r;if(!C(this,Nr))return b&&(b.fetch="get"),this.get(t,{allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:o,status:b});const E={allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:o,ttl:a,noDisposeOnSet:s,size:c,sizeCalculation:l,noUpdateTTL:u,noDeleteOnFetchRejection:f,allowStaleOnFetchRejection:d,allowStaleOnFetchAbort:v,ignoreFetchAbort:g,status:b,signal:P};let O=C(this,Ve).get(t);if(O===void 0){b&&(b.fetch="miss");const S=U(this,ai,Ms).call(this,t,O,E,h);return S.__returned=S}else{const S=C(this,Q)[O];if(U(this,ye,$e).call(this,S)){const A=n&&S.__staleWhileFetching!==void 0;return b&&(b.fetch="inflight",A&&(b.returnedStale=!0)),A?S.__staleWhileFetching:S.__returned=S}const y=C(this,Ot).call(this,O);if(!p&&!y)return b&&(b.fetch="hit"),U(this,an,$o).call(this,O),i&&C(this,nn).call(this,O),b&&C(this,_r).call(this,b,O),S;const _=U(this,ai,Ms).call(this,t,O,E,h),R=_.__staleWhileFetching!==void 0&&n;return b&&(b.fetch=y?"stale":"refresh",R&&y&&(b.returnedStale=!0)),R?_.__staleWhileFetching:_.__returned=_}}get(t,r={}){const{allowStale:n=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:o=this.noDeleteOnStaleGet,status:a}=r,s=C(this,Ve).get(t);if(s!==void 0){const c=C(this,Q)[s],l=U(this,ye,$e).call(this,c);return a&&C(this,_r).call(this,a,s),C(this,Ot).call(this,s)?(a&&(a.get="stale"),l?(a&&n&&c.__staleWhileFetching!==void 0&&(a.returnedStale=!0),n?c.__staleWhileFetching:void 0):(o||this.delete(t),a&&n&&(a.returnedStale=!0),n?c:void 0)):(a&&(a.get="hit"),l?c.__staleWhileFetching:(U(this,an,$o).call(this,s),i&&C(this,nn).call(this,s),c))}else a&&(a.get="miss")}delete(t){var n,i,o,a;let r=!1;if(C(this,He)!==0){const s=C(this,Ve).get(t);if(s!==void 0)if(r=!0,C(this,He)===1)this.clear();else{C(this,on).call(this,s);const c=C(this,Q)[s];U(this,ye,$e).call(this,c)?c.__abortController.abort(new Error("deleted")):(C(this,or)||C(this,ht))&&(C(this,or)&&((n=C(this,ir))==null||n.call(this,c,t,"delete")),C(this,ht)&&((i=C(this,Qe))==null||i.push([c,t,"delete"]))),C(this,Ve).delete(t),C(this,Ce)[s]=void 0,C(this,Q)[s]=void 0,s===C(this,Xe)?Y(this,Xe,C(this,Et)[s]):s===C(this,it)?Y(this,it,C(this,ct)[s]):(C(this,ct)[C(this,Et)[s]]=C(this,ct)[s],C(this,Et)[C(this,ct)[s]]=C(this,Et)[s]),ks(this,He)._--,C(this,Nt).push(s)}}if(C(this,ht)&&((o=C(this,Qe))!=null&&o.length)){const s=C(this,Qe);let c;for(;c=s==null?void 0:s.shift();)(a=C(this,Ft))==null||a.call(this,...c)}return r}clear(){var t,r,n;for(const i of U(this,sr,zr).call(this,{allowStale:!0})){const o=C(this,Q)[i];if(U(this,ye,$e).call(this,o))o.__abortController.abort(new Error("deleted"));else{const a=C(this,Ce)[i];C(this,or)&&((t=C(this,ir))==null||t.call(this,o,a,"delete")),C(this,ht)&&((r=C(this,Qe))==null||r.push([o,a,"delete"]))}}if(C(this,Ve).clear(),C(this,Q).fill(void 0),C(this,Ce).fill(void 0),C(this,It)&&C(this,xr)&&(C(this,It).fill(0),C(this,xr).fill(0)),C(this,Cr)&&C(this,Cr).fill(0),Y(this,it,0),Y(this,Xe,0),C(this,Nt).length=0,Y(this,Lt,0),Y(this,He,0),C(this,ht)&&C(this,Qe)){const i=C(this,Qe);let o;for(;o=i==null?void 0:i.shift();)(n=C(this,Ft))==null||n.call(this,...o)}}};let Uc=Wu;Rt=new WeakMap,_t=new WeakMap,ir=new WeakMap,Ft=new WeakMap,ni=new WeakMap,He=new WeakMap,Lt=new WeakMap,Ve=new WeakMap,Ce=new WeakMap,Q=new WeakMap,ct=new WeakMap,Et=new WeakMap,it=new WeakMap,Xe=new WeakMap,Nt=new WeakMap,Qe=new WeakMap,Cr=new WeakMap,xr=new WeakMap,It=new WeakMap,or=new WeakMap,Nr=new WeakMap,ht=new WeakMap,go=new WeakSet,af=function(){const t=new va(C(this,Rt)),r=new va(C(this,Rt));Y(this,It,t),Y(this,xr,r),Y(this,po,(o,a,s=Wi.now())=>{if(r[o]=a!==0?s:0,t[o]=a,a!==0&&this.ttlAutopurge){const c=setTimeout(()=>{C(this,Ot).call(this,o)&&this.delete(C(this,Ce)[o])},a+1);c.unref&&c.unref()}}),Y(this,nn,o=>{r[o]=t[o]!==0?Wi.now():0}),Y(this,_r,(o,a)=>{if(t[a]){const s=t[a],c=r[a];o.ttl=s,o.start=c,o.now=n||i(),o.remainingTTL=o.now+s-c}});let n=0;const i=()=>{const o=Wi.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=C(this,Ve).get(o);return a===void 0?0:t[a]===0||r[a]===0?1/0:r[a]+t[a]-(n||i())},Y(this,Ot,o=>t[o]!==0&&r[o]!==0&&(n||i())-r[o]>t[o])},nn=new WeakMap,_r=new WeakMap,po=new WeakMap,Ot=new WeakMap,ps=new WeakSet,mv=function(){const t=new va(C(this,Rt));Y(this,Lt,0),Y(this,Cr,t),Y(this,on,r=>{Y(this,Lt,C(this,Lt)-t[r]),t[r]=0}),Y(this,mo,(r,n,i,o)=>{if(U(this,ye,$e).call(this,n))return 0;if(!Pr(i))if(o){if(typeof o!="function")throw new TypeError("sizeCalculation must be a function");if(i=o(n,r),!Pr(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}),Y(this,ii,(r,n,i)=>{if(t[r]=n,C(this,_t)){const o=C(this,_t)-t[r];for(;C(this,Lt)>o;)U(this,oi,As).call(this,!0)}Y(this,Lt,C(this,Lt)+t[r]),i&&(i.entrySize=n,i.totalCalculatedSize=C(this,Lt))})},on=new WeakMap,ii=new WeakMap,mo=new WeakMap,ar=new WeakSet,Dr=function*({allowStale:t=this.allowStale}={}){if(C(this,He))for(let r=C(this,Xe);!(!U(this,vo,sf).call(this,r)||((t||!C(this,Ot).call(this,r))&&(yield r),r===C(this,it)));)r=C(this,Et)[r]},sr=new WeakSet,zr=function*({allowStale:t=this.allowStale}={}){if(C(this,He))for(let r=C(this,it);!(!U(this,vo,sf).call(this,r)||((t||!C(this,Ot).call(this,r))&&(yield r),r===C(this,Xe)));)r=C(this,ct)[r]},vo=new WeakSet,sf=function(t){return t!==void 0&&C(this,Ve).get(C(this,Ce)[t])===t},oi=new WeakSet,As=function(t){var o,a;const r=C(this,it),n=C(this,Ce)[r],i=C(this,Q)[r];return C(this,Nr)&&U(this,ye,$e).call(this,i)?i.__abortController.abort(new Error("evicted")):(C(this,or)||C(this,ht))&&(C(this,or)&&((o=C(this,ir))==null||o.call(this,i,n,"evict")),C(this,ht)&&((a=C(this,Qe))==null||a.push([i,n,"evict"]))),C(this,on).call(this,r),t&&(C(this,Ce)[r]=void 0,C(this,Q)[r]=void 0,C(this,Nt).push(r)),C(this,He)===1?(Y(this,it,Y(this,Xe,0)),C(this,Nt).length=0):Y(this,it,C(this,ct)[r]),C(this,Ve).delete(n),ks(this,He)._--,r},ai=new WeakSet,Ms=function(t,r,n,i){const o=r===void 0?void 0:C(this,Q)[r];if(U(this,ye,$e).call(this,o))return o;const a=new AbortController,{signal:s}=n;s==null||s.addEventListener("abort",()=>a.abort(s.reason),{signal:a.signal});const c={signal:a.signal,options:n,context:i},l=(h,p=!1)=>{const{aborted:b}=a.signal,P=n.ignoreFetchAbort&&h!==void 0;if(n.status&&(b&&!p?(n.status.fetchAborted=!0,n.status.fetchError=a.signal.reason,P&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),b&&!P&&!p)return f(a.signal.reason);const E=g;return C(this,Q)[r]===g&&(h===void 0?E.__staleWhileFetching?C(this,Q)[r]=E.__staleWhileFetching:this.delete(t):(n.status&&(n.status.fetchUpdated=!0),this.set(t,h,c.options))),h},u=h=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=h),f(h)),f=h=>{const{aborted:p}=a.signal,b=p&&n.allowStaleOnFetchAbort,P=b||n.allowStaleOnFetchRejection,E=P||n.noDeleteOnFetchRejection,O=g;if(C(this,Q)[r]===g&&(!E||O.__staleWhileFetching===void 0?this.delete(t):b||(C(this,Q)[r]=O.__staleWhileFetching)),P)return n.status&&O.__staleWhileFetching!==void 0&&(n.status.returnedStale=!0),O.__staleWhileFetching;if(O.__returned===O)throw h},d=(h,p)=>{var P;const b=(P=C(this,ni))==null?void 0:P.call(this,t,o,c);b&&b instanceof Promise&&b.then(E=>h(E),p),a.signal.addEventListener("abort",()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(h(),n.allowStaleOnFetchAbort&&(h=E=>l(E,!0)))})};n.status&&(n.status.fetchDispatched=!0);const g=new Promise(d).then(l,u),v=Object.assign(g,{__abortController:a,__staleWhileFetching:o,__returned:void 0});return r===void 0?(this.set(t,v,{...c.options,status:void 0}),r=C(this,Ve).get(t)):C(this,Q)[r]=v,v},ye=new WeakSet,$e=function(t){if(!C(this,Nr))return!1;const r=t;return!!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof AbortController},bo=new WeakSet,cf=function(t,r){C(this,Et)[r]=t,C(this,ct)[t]=r},an=new WeakSet,$o=function(t){t!==C(this,Xe)&&(t===C(this,it)?Y(this,it,C(this,ct)[t]):U(this,bo,cf).call(this,C(this,Et)[t],C(this,ct)[t]),U(this,bo,cf).call(this,C(this,Xe),t),Y(this,Xe,t))};const e_=Uc;async function t_(e){return(await pa.get("/pvideo",{params:{aid:e}})).data.data}async function r_(e){return[]}const Kc=new e_({max:200});async function n_(e){if(Kc.has(e))return Kc.get(e);const[t,r]=await Promise.all([t_(e),r_()]);return Kc.set(e,{pvideoData:t,dmData:r}),{pvideoData:t,dmData:r}}function Zh(e){return async function(r){const n=new FormData;n.append("aid",r),n.append("csrf",Zx());const o=(await pa.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||vt((o==null?void 0:o.message)||"出错了"),a}}const i_=Zh("add"),o_=Zh("del"),Jh=e=>{const t={dislike:"/x/feed/dislike",cancel:"/x/feed/dislike/cancel"}[e];return async function(r,n){const o=(await ma.get(Kh+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"}},a_=Jh("dislike"),s_=Jh("cancel"),Pt={modal:"_modal_1rloz_1",titleDesc:"_title-desc_1rloz_4",reasonList:"_reason-list_1rloz_8",reason:"_reason_1rloz_8",active:"_active_1rloz_29",reasonNo:"_reason-no_1rloz_33",tipsContainer:"_tips-container_1rloz_47",tips:"_tips_1rloz_47"},ya=Ux();function c_(){return En(ya)}function l_(e){const t=c_();if(e)return t.get(e)}function u_({show:e,onHide:t,item:r}){const[n,i]=$.useState(!1),o=Pe(async g=>{if(!r)return;let v=!1,h=null;try{i(!0),v=await a_(r,g.id)}catch(p){h=p}finally{i(!1)}if(h)return console.error(h.stack||h),Vh();v?vt("已标记不想看"):qh(),v&&(ya.set(r.param,{...g}),t())}),a=$.useMemo(()=>{var g;return((g=r==null?void 0:r.three_point)==null?void 0:g.dislike_reasons)||[]},[r]),s=()=>!!e&&!!r,c=["1","2","3","4","5","6"];rt(c,g=>{if(!s()||!c.includes(g.key))return;const v=Number(g.key)-1;u(v);const h=document.querySelectorAll(`.${Pt.reason}`)[v]||null;h==null||h.click()});const[l,u]=$.useState(a.length-1);Wx(()=>{u(a.length-1)},[a]);const f=g=>()=>{if(!s())return;const v=l+g;v<0||v>a.length-1||u(v)};rt("leftarrow",f(-1)),rt("rightarrow",f(1)),rt("uparrow",f(-2)),rt("downarrow",f(2)),rt("enter",g=>{var v;s()&&(l<0||l>a.length-1||(g.preventDefault(),g.stopImmediatePropagation(),(v=document.querySelector(`.${Pt.reason}.${Pt.active}`))==null||v.click()))});const d=$.useMemo(()=>{var g;return((g=a[l])==null?void 0:g.name)||""},[a,l]);return V(qc,{show:e,onHide:t,clsModal:Pt.modal,hideWhenMaskOnClick:!0,hideWhenEsc:!0,children:[V("div",{className:At.modalHeader,children:[V("div",{className:At.modalTitle,children:["我不想看",N("span",{className:Pt.titleDesc,children:"(选择后将减少相似内容推荐)"})]}),N("div",{className:"space",style:{flex:1}}),N(Gc,{onClick:t})]}),V("div",{className:At.modalBody,children:[N("div",{className:Pt.reasonList,children:a.map((g,v)=>V("button",{className:Z(Pt.reason,{[Pt.active]:v===l}),"data-id":g.id,onClick:()=>{u(v),o(g)},disabled:n,children:[N("span",{className:Pt.reasonNo,children:v+1}),g.name]},g.id))}),V("div",{className:Pt.tipsContainer,children:[V("div",{className:Pt.tips,children:[N(Gr,{name:"Info",size:15,style:{marginRight:5}}),"使用删除键打开弹框, 数字键选择, Esc 关闭"]}),d&&V("div",{className:Pt.tips,children:[N(Gr,{name:"Info",size:15,style:{marginRight:5}}),"已选择「",d,"」, 回车键提交"]})]})]})]})}const wa={show:!1,onHide:eg,item:null},Qh=Mi({value:wa.show}),f_=function(){return En(Qh).value};function eg(){setTimeout(()=>{tg({show:!1,item:null})})}function tg(e){Object.assign(wa,e),Qh.value=wa.show,d_().render(N(u_,{...wa,onHide:eg}))}let Xc;function d_(){if(!Xc){const e=document.createElement("div");e.classList.add("show-dislike-container"),document.body.appendChild(e),Xc=ia(e)}return Xc}function h_(e){e!=null&&e.param&&ya.has(e.param)||tg({show:!0,item:e})}function g_(e){if(!e)return"00:00";const t=Math.trunc(e/3600);e-=t*3600;const r=Math.trunc(e/60);e-=r*60;const i=[t,r,e];return i[0]===0&&i.shift(),i.map(a=>PS(a.toString(),2,"0")).join(":")}function Yc(e){if(!e)return"";if(e<=9999)return e.toString();let t=(e/1e4).toFixed(1);return t=t.replace(/\.0$/,""),`${t}万`}const Be={biliVideoCard:"_bili-video-card_mqmiz_1",imageWrapper:"_image-wrapper_mqmiz_4",previewCardWrapper:"_preview-card-wrapper_mqmiz_8",previewCardInner:"_preview-card-inner_mqmiz_21",watchLater:"_watch-later_mqmiz_25",badge:"_badge_mqmiz_28",recommendReason:"_recommend-reason_mqmiz_36",bangumiDesc:"_bangumi-desc_mqmiz_51",btnDislike:"_btn-dislike_mqmiz_54",btnDislikeIcon:"_btn-dislike-icon_mqmiz_69",btnDislikeTip:"_btn-dislike-tip_mqmiz_76",dislikedWrapper:"_disliked-wrapper_mqmiz_91",dislikeContentCover:"_dislike-content-cover_mqmiz_105",dislikeContentCoverInner:"_dislike-content-cover-inner_mqmiz_111",dislikeIcon:"_dislike-icon_mqmiz_122",dislikeReason:"_dislike-reason_mqmiz_125",dislikeDesc:"_dislike-desc_mqmiz_129",dislikeContentAction:"_dislike-content-action_mqmiz_133",skeletonActive:"_skeleton-active_mqmiz_150",antSkeletonLoading:"_ant-skeleton-loading_mqmiz_1"};function Zc(e,t){return isNaN(e)?t:e}function p_({className:e,videoDuration:t,pvideo:r,enterCursorState:n}){const i=$.useRef(null),o=xx(i),a={videoDuration:t,pvideo:r,cursorState:o,elWidth:Zc(o.elementW,n.width),elHeight:Zc(o.elementH,n.height),relativeX:Zc(o.elementX,n.relativeX)};return N("div",{ref:i,className:Z(Be.previewCardWrapper,e),children:r?N(m_,{...a}):!1})}function m_({videoDuration:e,pvideo:t,elWidth:r,elHeight:n,relativeX:i}){var y;let o=0,a=0;r&&i&&!isNaN(i)&&!isNaN(r)&&(o=i/r,o<0&&(o=0),o>1&&(o=1),a=Math.floor((e||0)*o));let s=$.useMemo(()=>{const _=(t==null?void 0:t.index)||[];let M=b_(_,a);return M!==-1?M:a>_[_.length-1]?(M=Math.floor(_.length*o)-1,M<0&&(M=0),M):0},[t,a]);const{img_x_len:c,img_y_len:l,img_x_size:u,img_y_size:f}=t,d=l*c;s=s+1;const g=Math.floor(s/d),v=s-g*d,h=((y=t.image)==null?void 0:y[g])||"",p=Math.floor(v/c)+1,b=v-(p-1)*c,P=r*c,E=n*l,O=(p-1)*n,S=(b-1)*r;return N("div",{className:Be.previewCardInner,style:{backgroundColor:"black",backgroundImage:`url(${h})`,backgroundPosition:`-${S}px -${O}px`,backgroundSize:`${P}px ${E}px`},children:N(v_,{progress:o})})}function v_({progress:e}){return N("div",{className:"track",style:{position:"absolute",bottom:0,left:0,backgroundColor:"#eee",width:"100%",height:2},children:N("div",{className:"bar",style:{backgroundColor:"#fa6a9d",height:"100%",width:`${e*100}%`}})})}function b_(e,t){let r=0,n=e.length-1,i=-1;for(;r<=n;){const s=Math.floor((r+n)/2),c=e[s];if(t===c)return s;c<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 y_=Fh().format("YYYY"),w_=e=>{if(!e)return"";const t=Fh.unix(e);return t.format("YYYY")===y_?t.format("M-D"):t.format("YY-M-D")},S_=e=>(e||"").replace(/^http:\/\//,"https://"),Jc=$.memo($.forwardRef(function({style:t,className:r,item:n,loading:i,active:o,...a},s){i=i??!n;const c=V("div",{className:Z("bili-video-card__skeleton",{hide:!i,[Be.skeletonActive]:i}),children:[N("div",{className:"bili-video-card__skeleton--cover"}),N("div",{className:"bili-video-card__skeleton--info",children:V("div",{className:"bili-video-card__skeleton--right",children:[N("p",{className:"bili-video-card__skeleton--text"}),N("p",{className:"bili-video-card__skeleton--text short"}),N("p",{className:"bili-video-card__skeleton--light"})]})})]}),l=l_((n==null?void 0:n.api)==="app"&&n.param),u=$.useRef(null),f=$.useRef(null);return $.useImperativeHandle(s,()=>({async onCancelDislike(){var d;await((d=u.current)==null?void 0:d.onCancelDislike())},async onToggleWatchLater(){var d;await((d=f.current)==null?void 0:d.onToggleWatchLater())},onTriggerDislike(){var d;(d=f.current)==null||d.onTriggerDislike()}}),[u,f]),V("div",{style:t,className:Z("bili-video-card",Be.biliVideoCard,r),"data-report":"partition_recommend.content",...a,children:[c,!i&&n&&(l?N(C_,{ref:u,item:n,dislikedReason:l}):N(x_,{ref:f,item:n,active:o}))]})})),C_=$.memo($.forwardRef(function({dislikedReason:t,item:r},n){const i=Pe(async()=>{if(!(t!=null&&t.id))return;let o=!1,a=null;try{o=await s_(r,t.id)}catch(s){a=s}if(a)return console.error(a.stack||a),Vh();o?vt("已撤销"):qh(),o&&ya.delete(r.param)});return $.useImperativeHandle(n,()=>({onCancelDislike:i}),[]),V("div",{className:Z(Be.dislikedWrapper),children:[N("div",{className:Be.dislikeContentCover,children:V("div",{className:Be.dislikeContentCoverInner,children:[N(Gr,{name:"DistraughtFace",size:32,className:Be.dislikeIcon}),N("div",{className:Be.dislikeReason,children:t==null?void 0:t.name}),N("div",{className:Be.dislikeDesc,children:(t==null?void 0:t.toast)||"将减少此类内容推荐"})]})}),N("div",{className:Be.dislikeContentAction,children:V("button",{onClick:i,children:[N(Gr,{name:"Return",size:"16",style:{marginRight:4,marginTop:-2}}),"撤销"]})})]})})),x_=$.memo($.forwardRef(function({item:t,active:r=!1},n){var sn,si,ci;const i=$.useRef(null),[o,a]=$.useState(()=>({width:0,height:0,relativeX:0}));ua("mouseenter",he=>{var De;const ce=(De=i.current)==null?void 0:De.getBoundingClientRect();if(!ce)return;const{width:jt,height:Ir,x:cr}=ce;a({width:jt,height:Ir,relativeX:he.pageX-window.pageXOffset-cr})},{target:i});const s=Wc(i),c=$.useRef(null),l=Wc(c),[u,f]=$.useState(!1),{accessKey:d}=$r(),g=!!d;$.useImperativeHandle(n,()=>({onToggleWatchLater:le,onTriggerDislike:Oe}),[]);const v=t.api==="pc",h=t.api==="app",p=String(v?t.id:t.param),b=v?t.bvid:"",P=t.goto,E=v?t.stat.view:void 0,O=v?t.stat.like:void 0,S=t.title,y=v?t.pic:t.cover,_=v?t.pubdate:void 0,M=(v?t.duration:(sn=t.player_args)==null?void 0:sn.duration)||0,R=v?t.owner.name:t.args.up_name;v&&t.owner.face;const A=v?t.owner.mid:t.args.up_id,I=void 0,k=v?void 0:t.badge,w=v?void 0:((si=t.desc_button)==null?void 0:si.text)||"",x=v?(ci=t.rcmd_reason)==null?void 0:ci.content:t.rcmd_reason,T=$.useMemo(()=>w_(_),[_]),F=$.useMemo(()=>S_(y),[y]),[L,j]=$.useState(null),[z,W]=$.useState(!1),q=Pe(async()=>{if(!L&&!z)try{W(!0);const he=await n_(p);j(he)}finally{W(!1)}});$.useEffect(()=>{s&&q()},[s]);const[H,B]=$.useState(!1),le=Pe(async he=>{if(he==null||he.preventDefault(),H)return;B(!0);const ce=u?o_:i_;let jt=!1;try{jt=await ce(p)}finally{B(!1)}jt&&f(Ir=>!Ir)}),te=$.useRef(null),qe=Wc(te),Oe=Pe(he=>{he==null||he.stopPropagation(),he==null||he.preventDefault(),h&&h_(t)}),ke=t.goto==="bangumi",ee=t.goto==="av",be=v?ee&&b?`/video/${b}`:t.uri:ee?`/video/av${t.param}`:t.uri,Me=$.useMemo(()=>g_(M),[M]),Ge=$.useMemo(()=>Yc(E),[E]),X=$.useMemo(()=>Yc(O),[O]),ue=$.useMemo(()=>Yc(I),[I]),Ie=v?X:ue,je=Pe(he=>{if(!Ze.openInIINAWhenRightClick)return;const ce=new URL(be,location.href).href,jt=`iina://open?url=${encodeURIComponent(ce)}`;window.open(jt,"_self"),he.preventDefault()}),se=({text:he,iconSvgName:ce})=>V("span",{className:"bili-video-card__stats--item",children:[N("svg",{className:"bili-video-card__stats--icon",children:N("use",{xlinkHref:ce})}),N("span",{className:"bili-video-card__stats--text",children:he})]}),re={play:"#widget-video-play-count",danmaku:"#widget-video-danmaku",like:"#widget-agree",bangumiFollow:"#widget-agree"},we={1:"play",2:"like",3:"danmaku",4:"bangumiFollow"},et=he=>{const ce=we[he]||we[1];return re[ce]};return V("div",{className:"bili-video-card__wrap __scale-wrap",onContextMenu:je,children:[N("a",{href:be,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:V("div",{className:"bili-video-card__image __scale-player-wrap",ref:i,children:[V("div",{className:Z("bili-video-card__image--wrap",Be.imageWrapper),children:[V("picture",{className:"v-img bili-video-card__cover",children:[N("source",{srcSet:`${F}@672w_378h_1c_!web-home-common-cover.avif`,type:"image/avif"}),N("source",{srcSet:`${F}@672w_378h_1c_!web-home-common-cover.webp`,type:"image/webp"}),N("img",{src:`${F}@672w_378h_1c_!web-home-common-cover`,alt:S,loading:"eager"})]}),s&&N(p_,{videoDuration:M,pvideo:L==null?void 0:L.pvideoData,enterCursorState:o}),V("div",{className:`bili-watch-later ${Be.watchLater}`,style:{display:s||r?"flex":"none"},ref:c,onClick:le,children:[N("svg",{className:"bili-watch-later__icon",children:N("use",{xlinkHref:u?"#widget-watch-save":"#widget-watch-later"})}),N("span",{className:"bili-watch-later__tip",style:{display:l?"block":"none"},children:u?"移除":"稍后再看"})]}),h&&g&&V("div",{ref:te,className:Be.btnDislike,onClick:Oe,style:{display:s?"flex":"none"},children:[N("svg",{className:Be.btnDislikeIcon,children:N("use",{xlinkHref:"#widget-close"})}),N("span",{className:Be.btnDislikeTip,style:{display:qe?"block":"none"},children:"我不想看"})]})]}),N("div",{className:"bili-video-card__mask",children:V("div",{className:"bili-video-card__stats",children:[N("div",{className:"bili-video-card__stats--left",children:v?V(lr,{children:[se({text:Ge,iconSvgName:re.play}),se({text:P==="av"?X:Ie,iconSvgName:re.like})]}):V(lr,{children:[se({iconSvgName:et(t.cover_left_icon_1),text:t.cover_left_text_1}),se({iconSvgName:et(t.cover_left_icon_2),text:t.cover_left_text_2})]})}),N("span",{className:"bili-video-card__stats__duration",children:ee&&Me})]})})]})}),N("div",{className:"bili-video-card__info __scale-disable",children:V("div",{className:"bili-video-card__info--right",children:[N("a",{href:be,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:N("h3",{className:"bili-video-card__info--tit",title:S,children:S})}),V("p",{className:"bili-video-card__info--bottom",children:[ee&&V("a",{className:"bili-video-card__info--owner",href:`//space.bilibili.com/${A}`,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:[x?N("span",{className:Be.recommendReason,children:x}):N("svg",{className:"bili-video-card__info--owner__up",children:N("use",{xlinkHref:"#widget-up"})}),N("span",{className:"bili-video-card__info--author",children:R}),T&&V("span",{className:"bili-video-card__info--date",children:["· ",T]})]}),ke&&V("a",{className:"bili-video-card__info--owner",href:be,target:"_blank",children:[N("span",{className:Be.badge,children:k||""}),N("span",{className:Be.bangumiDesc,children:w||""})]})]})]})})]})})),rg="bilibili-app-recommend";var Hi={},__={get exports(){return Hi},set exports(e){Hi=e}},Sa={},E_={get exports(){return Sa},set exports(e){Sa=e}},kn={},O_={get exports(){return kn},set exports(e){kn=e}},Fe=O_.exports={},Yt,Zt;function Qc(){throw new Error("setTimeout has not been defined")}function el(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Yt=setTimeout:Yt=Qc}catch{Yt=Qc}try{typeof clearTimeout=="function"?Zt=clearTimeout:Zt=el}catch{Zt=el}})();function ng(e){if(Yt===setTimeout)return setTimeout(e,0);if((Yt===Qc||!Yt)&&setTimeout)return Yt=setTimeout,setTimeout(e,0);try{return Yt(e,0)}catch{try{return Yt.call(null,e,0)}catch{return Yt.call(this,e,0)}}}function $_(e){if(Zt===clearTimeout)return clearTimeout(e);if((Zt===el||!Zt)&&clearTimeout)return Zt=clearTimeout,clearTimeout(e);try{return Zt(e)}catch{try{return Zt.call(null,e)}catch{return Zt.call(this,e)}}}var gr=[],An=!1,Kr,Ca=-1;function P_(){!An||!Kr||(An=!1,Kr.length?gr=Kr.concat(gr):Ca=-1,gr.length&&ig())}function ig(){if(!An){var e=ng(P_);An=!0;for(var t=gr.length;t;){for(Kr=gr,gr=[];++Ca<t;)Kr&&Kr[Ca].run();Ca=-1,t=gr.length}Kr=null,An=!1,$_(e)}}Fe.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];gr.push(new og(e,t)),gr.length===1&&!An&&ng(ig)};function og(e,t){this.fun=e,this.array=t}og.prototype.run=function(){this.fun.apply(null,this.array)},Fe.title="browser",Fe.browser=!0,Fe.env={},Fe.argv=[],Fe.version="",Fe.versions={};function pr(){}Fe.on=pr,Fe.addListener=pr,Fe.once=pr,Fe.off=pr,Fe.removeListener=pr,Fe.removeAllListeners=pr,Fe.emit=pr,Fe.prependListener=pr,Fe.prependOnceListener=pr,Fe.listeners=function(e){return[]},Fe.binding=function(e){throw new Error("process.binding is not supported")},Fe.cwd=function(){return"/"},Fe.chdir=function(e){throw new Error("process.chdir is not supported")},Fe.umask=function(){return 0};var tl;typeof Object.create=="function"?tl=function(t,r){t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:tl=function(t,r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t};const ag=tl;var T_=/%[sdj%]/g;function Mn(e){if(!qi(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(Jt(arguments[r]));return t.join(" ")}for(var r=1,n=arguments,i=n.length,o=String(e).replace(T_,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])Vi(a)||!Xr(a)?o+=" "+a:o+=" "+Jt(a);return o}function rl(e,t){if(Qt(global.process))return function(){return rl(e,t).apply(this,arguments)};if(kn.noDeprecation===!0)return e;var r=!1;function n(){if(!r){if(kn.throwDeprecation)throw new Error(t);kn.traceDeprecation?console.trace(t):console.error(t),r=!0}return e.apply(this,arguments)}return n}var xa={},nl;function sg(e){if(Qt(nl)&&(nl=kn.env.NODE_DEBUG||""),e=e.toUpperCase(),!xa[e])if(new RegExp("\\b"+e+"\\b","i").test(nl)){var t=0;xa[e]=function(){var r=Mn.apply(null,arguments);console.error("%s %d: %s",e,t,r)}}else xa[e]=function(){};return xa[e]}function Jt(e,t){var r={seen:[],stylize:A_};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),Ea(t)?r.showHidden=t:t&&ul(r,t),Qt(r.showHidden)&&(r.showHidden=!1),Qt(r.depth)&&(r.depth=2),Qt(r.colors)&&(r.colors=!1),Qt(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=k_),_a(r,e,r.depth)}Jt.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]},Jt.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function k_(e,t){var r=Jt.styles[t];return r?"\x1B["+Jt.colors[r][0]+"m"+e+"\x1B["+Jt.colors[r][1]+"m":e}function A_(e,t){return e}function M_(e){var t={};return e.forEach(function(r,n){t[r]=!0}),t}function _a(e,t,r){if(e.customInspect&&t&&Ki(t.inspect)&&t.inspect!==Jt&&!(t.constructor&&t.constructor.prototype===t)){var n=t.inspect(r,e);return qi(n)||(n=_a(e,n,r)),n}var i=R_(e,t);if(i)return i;var o=Object.keys(t),a=M_(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),Ui(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return il(t);if(o.length===0){if(Ki(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(Gi(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(Oa(t))return e.stylize(Date.prototype.toString.call(t),"date");if(Ui(t))return il(t)}var c="",l=!1,u=["{","}"];if(al(t)&&(l=!0,u=["[","]"]),Ki(t)){var f=t.name?": "+t.name:"";c=" [Function"+f+"]"}if(Gi(t)&&(c=" "+RegExp.prototype.toString.call(t)),Oa(t)&&(c=" "+Date.prototype.toUTCString.call(t)),Ui(t)&&(c=" "+il(t)),o.length===0&&(!l||t.length==0))return u[0]+c+u[1];if(r<0)return Gi(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var d;return l?d=F_(e,t,r,a,o):d=o.map(function(g){return ol(e,t,r,a,g,l)}),e.seen.pop(),L_(d,c,u)}function R_(e,t){if(Qt(t))return e.stylize("undefined","undefined");if(qi(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(sl(t))return e.stylize(""+t,"number");if(Ea(t))return e.stylize(""+t,"boolean");if(Vi(t))return e.stylize("null","null")}function il(e){return"["+Error.prototype.toString.call(e)+"]"}function F_(e,t,r,n,i){for(var o=[],a=0,s=t.length;a<s;++a)hg(t,String(a))?o.push(ol(e,t,r,n,String(a),!0)):o.push("");return i.forEach(function(c){c.match(/^\d+$/)||o.push(ol(e,t,r,n,c,!0))}),o}function ol(e,t,r,n,i,o){var a,s,c;if(c=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]},c.get?c.set?s=e.stylize("[Getter/Setter]","special"):s=e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),hg(n,i)||(a="["+i+"]"),s||(e.seen.indexOf(c.value)<0?(Vi(r)?s=_a(e,c.value,null):s=_a(e,c.value,r-1),s.indexOf(` `)>-1&&(o?s=s.split(` `).map(function(l){return" "+l}).join(` `).substr(2):s=` `+s.split(` `).map(function(l){return" "+l}).join(` `))):s=e.stylize("[Circular]","special")),Qt(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 L_(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 al(e){return Array.isArray(e)}function Ea(e){return typeof e=="boolean"}function Vi(e){return e===null}function cg(e){return e==null}function sl(e){return typeof e=="number"}function qi(e){return typeof e=="string"}function lg(e){return typeof e=="symbol"}function Qt(e){return e===void 0}function Gi(e){return Xr(e)&&cl(e)==="[object RegExp]"}function Xr(e){return typeof e=="object"&&e!==null}function Oa(e){return Xr(e)&&cl(e)==="[object Date]"}function Ui(e){return Xr(e)&&(cl(e)==="[object Error]"||e instanceof Error)}function Ki(e){return typeof e=="function"}function ug(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}function fg(e){return Buffer.isBuffer(e)}function cl(e){return Object.prototype.toString.call(e)}function ll(e){return e<10?"0"+e.toString(10):e.toString(10)}var N_=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function I_(){var e=new Date,t=[ll(e.getHours()),ll(e.getMinutes()),ll(e.getSeconds())].join(":");return[e.getDate(),N_[e.getMonth()],t].join(" ")}function dg(){console.log("%s - %s",I_(),Mn.apply(null,arguments))}function ul(e,t){if(!t||!Xr(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}function hg(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var j_=Uv(Object.freeze(Object.defineProperty({__proto__:null,_extend:ul,debuglog:sg,default:{inherits:ag,_extend:ul,log:dg,isBuffer:fg,isPrimitive:ug,isFunction:Ki,isError:Ui,isDate:Oa,isObject:Xr,isRegExp:Gi,isUndefined:Qt,isSymbol:lg,isString:qi,isNumber:sl,isNullOrUndefined:cg,isNull:Vi,isBoolean:Ea,isArray:al,inspect:Jt,deprecate:rl,format:Mn,debuglog:sg},deprecate:rl,format:Mn,inherits:ag,inspect:Jt,isArray:al,isBoolean:Ea,isBuffer:fg,isDate:Oa,isError:Ui,isFunction:Ki,isNull:Vi,isNullOrUndefined:cg,isNumber:sl,isObject:Xr,isPrimitive:ug,isRegExp:Gi,isString:qi,isSymbol:lg,isUndefined:Qt,log:dg},Symbol.toStringTag,{value:"Module"}))).format;function D_(){(typeof AbortController>"u"||typeof AbortSignal>"u")&&console.error("[promise.timeout] need global AbortController & AbortSingal")}function z_(e,t){return function(){var r=this,n=[].slice.call(arguments);D_();var i=new AbortController;return n.push(i.signal),new Promise(function(o,a){var s=setTimeout(function(){var c=new gg(t);a(c),i.abort()},t);Promise.resolve(e.apply(r,n)).then(function(c){clearTimeout(s),o(c)},function(c){clearTimeout(s),a(c)})})}}let gg=class vv extends Error{constructor(t){super(),this.timeout=t,this.message=j_("timeout of %sms exceed",t),Error.captureStackTrace(this,vv)}};E_.exports=z_,Sa.TimeoutError=gg;const pg=Sa,B_=pg.TimeoutError;__.exports=function(t,r){const n=t;r=r||{};const i=r.times||5,o=r.timeout;o&&(t=pg(t,o));const a=r.onerror;return async function(){const s=this,c=[].slice.call(arguments),l=new Array(i);for(let u=0;u<i;u++){let f,d;try{f=await t.apply(s,c)}catch(g){d=g}if(!d)return f;if(d instanceof TypeError)throw d;if(d instanceof W_)throw d.originalError;l[u]=d,a&&a(d,u)}throw new mg({times:i,timeout:o,fn:n,errors:l})}};class mg 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 W_ 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 H_=Hi.RetryError=mg;Hi.TimeoutError=B_;class fl extends Error{constructor(t){super(),Error.captureStackTrace(this,fl),this.json=t,this.message=t.message||JSON.stringify(t)}}async function V_(){var n;const t=(await ma.get(Kh+"/x/v2/feed/index",{responseType:"json",params:{build:"1",mobi_app:"android",idx:(Date.now()/1e3).toFixed(0)+"0"+(Math.random()*10).toFixed(0)}})).data;if(!t.data){if(t.code===-663)throw new fl(t);return vt(`${rg}: 未知错误, 请联系开发者 code=${t.code} message=${t.message||""}`,5e3),[]}return((n=t==null?void 0:t.data)==null?void 0:n.items)||[]}const q_=Hi(V_,{times:5,timeout:2e3,onerror(e,t){console.info("[%s] tryGetRecommend onerror: index=%s",rg,t,e)}});async function vg(){try{return await q_()}catch(e){if(e instanceof H_){console.error(e.errors);const t=[Mn("请求出错, 已重试%s次:",e.times),...e.errors.map((r,n)=>Mn(" %s) %s",n+1,r.message)),"","请重新获取 access_key 后重试~"].join(` `);vt(t,5e3)}throw e}}async function bg(e){let t=[];const r=async()=>{t=(await Promise.all(new Array(e).fill(0).map(()=>vg()))).flat()},n=async()=>{for(let i=1;i<=e;i++)t=t.concat(await vg())};return await(Ze.useParallelRequest?r:n)(),t=qd(t,i=>i.param),t.map(i=>({...i,api:"app",uniqId:i.param+"-"+crypto.randomUUID()}))}async function G_(){return bg(2)}async function yg(e){const t=e.page++;return(await pa.get("/x/web-interface/index/top/rcmd",{baseURL:Uh,withCredentials:!0,params:{fresh_type:3,version:1,ps:14,fresh_idx:t,fresh_idx_1h:t,homepage_ver:1}})).data.data.item}async function wg(e,t){let r=[];const n=async()=>{r=(await Promise.all(new Array(e).fill(0).map(()=>yg(t)))).flat()},i=async()=>{for(let o=1;o<=e;o++)r=r.concat(await yg(t))};return await(Ze.useParallelRequest?n:i)(),r=qd(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"}))}async function U_(e){return wg(1,e)}async function Sg(e,t){return Ze.usePcDesktopApi?wg(e,t):bg(e)}async function K_(e){return Ze.usePcDesktopApi?U_(e):G_()}var ot={},X_={get exports(){return ot},set exports(e){ot=e}},Y_="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Z_=Y_,J_=Z_;function Cg(){}function xg(){}xg.resetWarningCache=Cg;var Q_=function(){function e(n,i,o,a,s,c){if(c!==J_){var l=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 l.name="Invariant Violation",l}}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:xg,resetWarningCache:Cg};return r.PropTypes=r,r};X_.exports=Q_();class dl extends $.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:c,pageStart:l,ref:u,threshold:f,useCapture:d,useWindow:g,getScrollParent:v,...h}=t;h.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))),$.createElement(n,h,p)}}ze(dl,"propTypes",{children:ot.node.isRequired,element:ot.node,hasMore:ot.bool,initialLoad:ot.bool,isReverse:ot.bool,loader:ot.node,loadMore:ot.func.isRequired,pageStart:ot.number,ref:ot.func,getScrollParent:ot.func,threshold:ot.number,useCapture:ot.bool,useWindow:ot.bool}),ze(dl,"defaultProps",{element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null});const hl="_video-grid_14t5i_9",_g="_limit-two-lines_14t5i_19",gl="_internal-testing_14t5i_43",eE="_limit-one-line_14t5i_50",Eg="_narrow-mode_14t5i_71",GA={videoGrid:hl,limitTwoLines:_g,internalTesting:gl,limitOneLine:eE,narrowMode:Eg};function tE({enabled:e,refresh:t,minIndex:r=0,maxIndex:n,containerRef:i,getScrollerRect:o,changeScrollY:a,videoCardRefs:s}){const[c,l]=$.useState(null),u=Pe(()=>{var y;if(!e)return!1;const S=(((y=document.activeElement)==null?void 0:y.tagName)||"").toLowerCase();return!(["input","textarea"].includes(S)||document.querySelector(".center-search__bar.is-focus"))}),f=Pe(()=>{var _;if(c===null||!i.current)return!1;const S=o(),y=(_=i.current.querySelector(`.${Rn.card}.${Rn.cardActive}`))==null?void 0:_.getBoundingClientRect();return!(!S||!y||y.top-S.top<-(S.height+y.height)||y.top-S.top>S.height*2+y.height)}),d=S=>y=>{if(!u())return;y==null||y.preventDefault();const _=f()?c+S:v();if(_<r){P(r);return}if(_>n){P(n);return}l(_),P(_)};rt("leftarrow",d(-1),{exactMatch:!0}),rt("rightarrow",d(1),{exactMatch:!0}),rt("uparrow",d(-O()),{exactMatch:!0}),rt("downarrow",d(O()),{exactMatch:!0});const g=()=>{u()&&l(null)};rt("esc",g),rt("enter",()=>{!u()||typeof c!="number"||E(c)}),rt("backspace",()=>{var S;!u()||typeof c!="number"||(S=s[c])==null||S.onTriggerDislike()}),rt("r",()=>{u()&&t()},{exactMatch:!0}),rt(["s","w"],()=>{var S;!u()||typeof c!="number"||(S=s[c])==null||S.onToggleWatchLater()},{exactMatch:!0});function v(){const S=o();if(!S)return 0;const y=p();for(let _=0;_<y.length;_++)if(y[_].getBoundingClientRect().top>=S.top)return _;return 0}const h=`.${Rn.card}`;function p(){var S;return[...((S=i.current)==null?void 0:S.querySelectorAll(h))||[]]}function b(S){return p()[S]}function P(S){var R;const y=b(S);(R=y==null?void 0:y.scrollIntoViewIfNeeded)==null||R.call(y,!1);const _=o(),M=y.getBoundingClientRect();if(!(!_||!M)){if(M.top<=_.top){const A=-(_.top-M.top+10);a==null||a({offset:A});return}if(_.bottom-M.bottom<10){const A=10-(_.bottom-M.bottom);a==null||a({offset:A});return}}}function E(S){const y=b(S);if(!y)return;const _=y.querySelector(".bili-video-card__wrap > a");_==null||_.click()}function O(){if(Ze.useNarrowMode)return 2;let S=Og.get(window.innerWidth);if(S)return S;const y=i.current;if(!y)return 0;const _=window.getComputedStyle(y);return _.display!=="grid"?0:(S=_.gridTemplateColumns.split(" ").length,Og.set(window.innerWidth,S),S)}return{activeIndex:c,clearActiveIndex:g}}const Og=new Map,Rn={loader:Lc` text-align: center; line-height: 60px; font-size: 120%; `,card:Lc` 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:Lc` border-color: #fb7299; border-radius: 6px; overflow: hidden; `},$g=$.forwardRef(({infiteScrollUseWindow:e,shortcutEnabled:t,onScrollToTop:r,className:n,scrollerRef:i},o)=>{const[a,s]=$.useState([]),[c,l]=$.useState(!1);$.useImperativeHandle(o,()=>({refresh:f}),[]);const u=$.useMemo(()=>({page:1}),[]),f=Pe(async()=>{await(r==null?void 0:r());try{E(),l(!0),u.page=1,s(await Sg(2,u)),E()}finally{l(!1)}}),d=Pe(async()=>{const S=await Sg(2,u);s(y=>[...y,...S])}),{useNarrowMode:g}=$r(),v=$.useRef(null),h=Pe(()=>{var S;if(e){const y=ch+50;return new DOMRect(0,y,window.innerWidth,window.innerHeight-y)}else return(S=i==null?void 0:i.current)==null?void 0:S.getBoundingClientRect()}),p=f_(),b=$.useMemo(()=>new Array(a.length).fill(void 0),[a.length]),{activeIndex:P,clearActiveIndex:E}=tE({enabled:t&&!p,refresh:f,maxIndex:a.length-1,containerRef:v,getScrollerRect:h,videoCardRefs:b,changeScrollY:e?function({offset:S,absolute:y}){const _=document.documentElement;if(typeof S=="number"){_.scrollTop+=S;return}if(typeof y=="number"){_.scrollTop=y;return}}:void 0}),O=Ri();return N(dl,{pageStart:0,loadMore:d,hasMore:!0,useWindow:e,threshold:window.innerHeight,style:{minHeight:"100%"},loader:N("div",{className:Rn.loader,children:"加载中..."},0),children:N("div",{ref:v,className:Z(hl,{[gl]:O},{[Eg]:g},n),children:a.map((S,y)=>{const _=y===P;return N(Jc,{ref:M=>b[y]=M,className:Z(Rn.card,{[Rn.cardActive]:_}),loading:c,item:S,active:_},S.uniqId)})})})});function er(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pg(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,n.key,n)}}function tr(e,t,r){return t&&Pg(e.prototype,t),r&&Pg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function pl(e,t){return pl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},pl(e,t)}function $a(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&&pl(e,t)}function Pa(e){return Pa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Pa(e)}function rE(){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 Ae(e){return Ae=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},Ae(e)}function Ta(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nE(e,t){if(t&&(Ae(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ta(e)}function ka(e){var t=rE();return function(){var n=Pa(e),i;if(t){var o=Pa(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return nE(this,i)}}function ml(){return ml=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},ml.apply(this,arguments)}function Fn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[];return $.Children.forEach(e,function(n){n==null&&!t.keepEmpty||(Array.isArray(n)?r=r.concat(Fn(n)):wi.isFragment(n)&&n.props?r=r.concat(Fn(n.props.children,t)):r.push(n))}),r}var Tg={};function iE(e,t){}function oE(e,t,r){!t&&!Tg[r]&&(e(!1,r),Tg[r]=!0)}function rr(e,t){oE(iE,e,t)}function Ln(e){return Ln=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},Ln(e)}function aE(e,t){if(Ln(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ln(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kg(e){var t=aE(e,"string");return Ln(t)==="symbol"?t:String(t)}function sE(e,t,r){return t=kg(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ag(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 Mg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ag(Object(r),!0).forEach(function(n){sE(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ag(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vl(e,t,r){var n=m.useRef({});return(!("value"in n.current)||r(n.current.condition,t))&&(n.current.value=e(),n.current.condition=t),n.current.value}function bl(e,t){typeof e=="function"?e(t):Ae(e)==="object"&&e&&"current"in e&&(e.current=t)}function Xi(){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){bl(o,i)})}}function Rg(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return vl(function(){return Xi.apply(void 0,t)},t,function(n,i){return n.length===i.length&&n.every(function(o,a){return o===i[a]})})}function Yi(e){var t,r,n=wi.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 Aa(e){return e instanceof HTMLElement||e instanceof SVGElement}function yl(e){return Aa(e)?e:e instanceof $.Component?fe.findDOMNode(e):null}var Tr=new Map;function cE(e){e.forEach(function(t){var r,n=t.target;(r=Tr.get(n))===null||r===void 0||r.forEach(function(i){return i(n)})})}var Fg=new Bx(cE);function lE(e,t){Tr.has(e)||(Tr.set(e,new Set),Fg.observe(e)),Tr.get(e).add(t)}function uE(e,t){Tr.has(e)&&(Tr.get(e).delete(t),Tr.get(e).size||(Fg.unobserve(e),Tr.delete(e)))}function fE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lg(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,kg(n.key),n)}}function dE(e,t,r){return t&&Lg(e.prototype,t),r&&Lg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function wl(e,t){return wl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},wl(e,t)}function hE(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&&wl(e,t)}function Ma(e){return Ma=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ma(e)}function gE(){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 pE(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mE(e,t){if(t&&(Ln(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pE(e)}function vE(e){var t=gE();return function(){var n=Ma(e),i;if(t){var o=Ma(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return mE(this,i)}}var bE=function(e){hE(r,e);var t=vE(r);function r(){return fE(this,r),t.apply(this,arguments)}return dE(r,[{key:"render",value:function(){return this.props.children}}]),r}(m.Component),Sl=m.createContext(null);function yE(e){var t=e.children,r=e.onBatchResize,n=m.useRef(0),i=m.useRef([]),o=m.useContext(Sl),a=m.useCallback(function(s,c,l){n.current+=1;var u=n.current;i.current.push({size:s,element:c,data:l}),Promise.resolve().then(function(){u===n.current&&(r==null||r(i.current),i.current=[])}),o==null||o(s,c,l)},[r,o]);return m.createElement(Sl.Provider,{value:a},t)}function wE(e,t){var r=e.children,n=e.disabled,i=m.useRef(null),o=m.useRef(null),a=m.useContext(Sl),s=typeof r=="function",c=s?r(i):r,l=m.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&m.isValidElement(c)&&Yi(c),f=u?c.ref:null,d=m.useMemo(function(){return Xi(f,i)},[f,i]),g=function(){return yl(i.current)||yl(o.current)};m.useImperativeHandle(t,function(){return g()});var v=m.useRef(e);v.current=e;var h=m.useCallback(function(p){var b=v.current,P=b.onResize,E=b.data,O=p.getBoundingClientRect(),S=O.width,y=O.height,_=p.offsetWidth,M=p.offsetHeight,R=Math.floor(S),A=Math.floor(y);if(l.current.width!==R||l.current.height!==A||l.current.offsetWidth!==_||l.current.offsetHeight!==M){var I={width:R,height:A,offsetWidth:_,offsetHeight:M};l.current=I;var k=_===Math.round(S)?S:_,w=M===Math.round(y)?y:M,x=Mg(Mg({},I),{},{offsetWidth:k,offsetHeight:w});a==null||a(x,p,E),P&&Promise.resolve().then(function(){P(x,p)})}},[]);return m.useEffect(function(){var p=g();return p&&!n&&lE(p,h),function(){return uE(p,h)}},[i.current,n]),m.createElement(bE,{ref:o},u?m.cloneElement(c,{ref:d}):c)}var SE=m.forwardRef(wE),CE="rc-observer-key";function xE(e,t){var r=e.children,n=typeof r=="function"?[r]:Fn(r);return n.map(function(i,o){var a=(i==null?void 0:i.key)||"".concat(CE,"-").concat(o);return m.createElement(SE,ml({},e,{key:a,ref:o===0?t:void 0}),i)})}var Cl=m.forwardRef(xE);Cl.Collection=yE;function oe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ng(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function D(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ng(Object(r),!0).forEach(function(n){oe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ng(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ig(e,t){var r=D({},e);return Array.isArray(t)&&t.forEach(function(n){delete r[n]}),r}function xl(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(e){if(Array.isArray(e))return xl(e)}function jg(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _l(e,t){if(e){if(typeof e=="string")return xl(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 xl(e,t)}}function EE(){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 J(e){return _E(e)||jg(e)||_l(e)||EE()}function El(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 OE(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 nr(e,t){if(e==null)return{};var r=OE(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 $E(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,c=n.has(o);if(rr(!c,"Warning: There may be circular references"),c)return!1;if(o===a)return!0;if(r&&s>1)return!1;n.add(o);var l=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],l))return!1;return!0}if(o&&a&&Ae(o)==="object"&&Ae(a)==="object"){var f=Object.keys(o);return f.length!==Object.keys(a).length?!1:f.every(function(d){return i(o[d],a[d],l)})}return!1}return i(e,t)}var PE=function(){function e(){er(this,e),oe(this,"cache",new Map)}return tr(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}(),Ol="data-token-hash",Yr="data-css-hash",Zi="__cssinjs_instance__",Ra=Math.random().toString(12).slice(2);function TE(){if(typeof document<"u"&&document.head&&document.body){var e=document.body.querySelectorAll("style[".concat(Yr,"]"))||[],t=document.head.firstChild;Array.from(e).forEach(function(n){n[Zi]=n[Zi]||Ra,document.head.insertBefore(n,t)});var r={};Array.from(document.querySelectorAll("style[".concat(Yr,"]"))).forEach(function(n){var i=n.getAttribute(Yr);if(r[i]){if(n[Zi]===Ra){var o;(o=n.parentNode)===null||o===void 0||o.removeChild(n)}}else r[i]=!0})}return new PE}var Dg=m.createContext({hashPriority:"low",cache:TE(),defaultCache:!0});function zg(e){if(Array.isArray(e))return e}function kE(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],i=!0,o=!1,a,s;try{for(r=r.call(e);!(i=(a=r.next()).done)&&(n.push(a.value),!(t&&n.length===t));i=!0);}catch(c){o=!0,s=c}finally{try{!i&&r.return!=null&&r.return()}finally{if(o)throw s}}return n}}function Bg(){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 K(e,t){return zg(e)||kE(e,t)||_l(e,t)||Bg()}function Wg(e,t,r,n){var i=m.useContext(Dg),o=i.cache,a=[e].concat(J(t));return m.useMemo(function(){o.update(a,function(s){var c=s||[],l=K(c,2),u=l[0],f=u===void 0?0:u,d=l[1],g=d,v=g||r();return[f+1,v]})},[a.join("_")]),m.useEffect(function(){return function(){o.update(a,function(s){var c=s||[],l=K(c,2),u=l[0],f=u===void 0?0:u,d=l[1],g=f-1;return g===0?(n==null||n(d,!1),null):[f-1,d]})}},a),o.get(a)[1]}function bt(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function AE(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 Hg="data-rc-order",ME="rc-util-key",$l=new Map;function Vg(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):ME}function Fa(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function RE(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function qg(e){return Array.from(($l.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Gg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!bt())return null;var r=t.csp,n=t.prepend,i=document.createElement("style");i.setAttribute(Hg,RE(n)),r!=null&&r.nonce&&(i.nonce=r==null?void 0:r.nonce),i.innerHTML=e;var o=Fa(t),a=o.firstChild;if(n){if(n==="queue"){var s=qg(o).filter(function(c){return["prepend","prependQueue"].includes(c.getAttribute(Hg))});if(s.length)return o.insertBefore(i,s[s.length-1].nextSibling),i}o.insertBefore(i,a)}else o.appendChild(i);return i}function Ug(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Fa(t);return qg(r).find(function(n){return n.getAttribute(Vg(t))===e})}function La(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Ug(e,t);if(r){var n=Fa(t);n.removeChild(r)}}function FE(e,t){var r=$l.get(e);if(!r||!AE(document,r)){var n=Gg("",t),i=n.parentNode;$l.set(e,i),e.removeChild(n)}}function Nn(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=Fa(r);FE(n,r);var i=Ug(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 c=Gg(e,r);return c.setAttribute(Vg(r),t),c}function Na(e){var t="";return Object.keys(e).forEach(function(r){var n=e[r];t+=r,n&&Ae(n)==="object"?t+=Na(n):t+=n}),t}function LE(e,t){return El("".concat(t,"_").concat(Na(e)))}var Ji="layer-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),Kg="903px";function NE(e,t){if(bt()){var r;Nn(e,Ji);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===Kg;return(r=n.parentNode)===null||r===void 0||r.removeChild(n),La(Ji),i}return!1}var Pl=void 0;function IE(){return Pl===void 0&&(Pl=NE("@layer ".concat(Ji," { .").concat(Ji," { width: ").concat(Kg,"!important; } }"),function(e){e.className=Ji})),Pl}var jE={},DE="css",Zr=new Map;function zE(e){Zr.set(e,(Zr.get(e)||0)+1)}function BE(e){if(typeof document<"u"){var t=document.querySelectorAll("style[".concat(Ol,'="').concat(e,'"]'));t.forEach(function(r){if(r[Zi]===Ra){var n;(n=r.parentNode)===null||n===void 0||n.removeChild(r)}})}}function WE(e){Zr.set(e,(Zr.get(e)||0)-1);var t=Array.from(Zr.keys()),r=t.filter(function(n){var i=Zr.get(n)||0;return i<=0});r.length<t.length&&r.forEach(function(n){BE(n),Zr.delete(n)})}function HE(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?jE:o,s=r.formatToken,c=m.useMemo(function(){return Object.assign.apply(Object,[{}].concat(J(t)))},[t]),l=m.useMemo(function(){return Na(c)},[c]),u=m.useMemo(function(){return Na(a)},[a]),f=Wg("token",[i,e.id,l,u],function(){var d=e.getDerivativeToken(c),g=D(D({},d),a);s&&(g=s(g));var v=LE(g,i);g._tokenKey=v,zE(v);var h="".concat(DE,"-").concat(El(v));return g._hashId=h,[g,h]},function(d){WE(d[0]._tokenKey)});return f}var VE={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},Xg=bt(),qE="_skip_check_";function Yg(e){var t=Br(pf(e),bf);return t.replace(/\{%%%\:[^;];}/g,";")}function GE(e){return Ae(e)==="object"&&e&&qE in e}function UE(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,c=a.trim().split(/\s+/),l=c[0]||"",u=((s=l.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return l="".concat(u).concat(i).concat(l.slice(u.length)),[l].concat(J(c.slice(1))).join(" ")});return o.join(",")}var KE=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,c=r.layer;r.path;var l=r.hashPriority,u=r.transformers,f=u===void 0?[]:u;r.linters;var d="",g={};function v(E){var O=E.getName(s);if(!g[O]){var S=e(E.style,r,{root:!1,parentSelectors:a}),y=K(S,1),_=y[0];g[O]="@keyframes ".concat(E.getName(s)).concat(_)}}function h(E){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return E.forEach(function(S){Array.isArray(S)?h(S,O):S&&O.push(S)}),O}var p=h(Array.isArray(t)?t:[t]);if(p.forEach(function(E){var O=typeof E=="string"&&!i?{}:E;if(typeof O=="string")d+="".concat(O,` `);else if(O._keyframe)v(O);else{var S=f.reduce(function(y,_){var M;return(_==null||(M=_.visit)===null||M===void 0?void 0:M.call(_,y))||y},O);Object.keys(S).forEach(function(y){var _=S[y];if(Ae(_)==="object"&&_&&(y!=="animationName"||!_._keyframe)&&!GE(_)){var M=!1,R=y.trim(),A=!1;(i||o)&&s?R.startsWith("@")?M=!0:R=UE(y,s,l):i&&!s&&(R==="&"||R==="")&&(R="",A=!0);var I=e(_,r,{root:A,injectHash:M,parentSelectors:[].concat(J(a),[R])}),k=K(I,2),w=k[0],x=k[1];g=D(D({},g),x),d+="".concat(R).concat(w)}else{var T,F=(T=_==null?void 0:_.value)!==null&&T!==void 0?T:_,L=y.replace(/[A-Z]/g,function(z){return"-".concat(z.toLowerCase())}),j=F;!VE[y]&&typeof j=="number"&&j!==0&&(j="".concat(j,"px")),y==="animationName"&&_!==null&&_!==void 0&&_._keyframe&&(v(_),j=_.getName(s)),d+="".concat(L,":").concat(j,";")}})}}),!i)d="{".concat(d,"}");else if(c&&IE()){var b=c.split(","),P=b[b.length-1].trim();d="@layer ".concat(P," {").concat(d,"}"),b.length>1&&(d="@layer ".concat(c,"{%%%:%}").concat(d))}return[d,g]};function XE(e,t){return El("".concat(e.join("%")).concat(t))}function YE(){return null}function Tl(e,t){var r=e.token,n=e.path,i=e.hashId,o=e.layer,a=m.useContext(Dg),s=a.autoClear;a.mock;var c=a.defaultCache,l=a.hashPriority,u=a.container,f=a.ssrInline,d=a.transformers,g=a.linters,v=r._tokenKey,h=[v].concat(J(n)),p=Xg,b=Wg("style",h,function(){var y=t(),_=KE(y,{hashId:i,hashPriority:l,layer:o,path:n.join("-"),transformers:d,linters:g}),M=K(_,2),R=M[0],A=M[1],I=Yg(R),k=XE(h,I);if(p){var w=Nn(I,k,{mark:Yr,prepend:"queue",attachTo:u});w[Zi]=Ra,w.setAttribute(Ol,v),Object.keys(A).forEach(function(x){Nn(Yg(A[x]),"_effect-".concat(x),{mark:Yr,prepend:"queue",attachTo:u})})}return[I,v,k]},function(y,_){var M=K(y,3),R=M[2];(_||s)&&Xg&&La(R,{mark:Yr})}),P=K(b,3),E=P[0],O=P[1],S=P[2];return function(y){var _;if(!f||p||!c)_=m.createElement(YE,null);else{var M;_=m.createElement("style",Vt({},(M={},oe(M,Ol,O),oe(M,Yr,S),M),{dangerouslySetInnerHTML:{__html:E}}))}return m.createElement(m.Fragment,null,_,y)}}var dt=function(){function e(t,r){er(this,e),oe(this,"name",void 0),oe(this,"style",void 0),oe(this,"_keyframe",!0),this.name=t,this.style=r}return tr(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 ZE(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 kl=function(){function e(){er(this,e),oe(this,"cache",void 0),oe(this,"keys",void 0),oe(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return tr(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 c,l;a=(c=a)===null||c===void 0||(l=c.map)===null||l===void 0?void 0:l.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(l,u){var f=K(l,2),d=f[1];return i.internalGet(u)[1]<d?[u,i.internalGet(u)[1]]:l},[this.keys[0],this.cacheCallTimes]),a=K(o,1),s=a[0];this.delete(s)}this.keys.push(r)}var c=this.cache;r.forEach(function(l,u){if(u===r.length-1)c.set(l,{value:[n,i.cacheCallTimes++]});else{var f=c.get(l);f?f.map||(f.map=new Map):c.set(l,{map:new Map}),c=c.get(l).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!ZE(n,r)}),this.deleteByPath(this.cache,r)}}]),e}();oe(kl,"MAX_CACHE_SIZE",20),oe(kl,"MAX_CACHE_OFFSET",5);var Zg=0,JE=function(){function e(t){er(this,e),oe(this,"derivatives",void 0),oe(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Zg,t.length===0&&(t.length>0,void 0),Zg+=1}return tr(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(n,i){return i(r,n)},void 0)}}]),e}(),Al=new kl;function Jg(e){var t=Array.isArray(e)?e:[e];return Al.has(t)||Al.set(t,new JE(t)),Al.get(t)}function In(e){return e.notSplit=!0,e}In(["borderTop","borderBottom"]),In(["borderTop"]),In(["borderBottom"]),In(["borderLeft","borderRight"]),In(["borderLeft"]),In(["borderRight"]);var QE=$.createContext({});const Ml=QE;var Jr="RC_FORM_INTERNAL_HOOKS",ve=function(){rr(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},jn=m.createContext({getFieldValue:ve,getFieldsValue:ve,getFieldError:ve,getFieldWarning:ve,getFieldsError:ve,isFieldsTouched:ve,isFieldTouched:ve,isFieldValidating:ve,isFieldsValidating:ve,resetFields:ve,setFields:ve,setFieldValue:ve,setFieldsValue:ve,validateFields:ve,submit:ve,getInternalHooks:function(){return ve(),{dispatch:ve,initEntityValue:ve,registerField:ve,useSubscribe:ve,setInitialValues:ve,destroyForm:ve,setCallbacks:ve,registerWatch:ve,getFields:ve,setValidateMessages:ve,setPreserve:ve,getInitialValue:ve}}});function Rl(e){return e==null?[]:Array.isArray(e)?e:[e]}function yt(){yt=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(k,w,x){k[w]=x.value},i=typeof Symbol=="function"?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(k,w,x){return Object.defineProperty(k,w,{value:x,enumerable:!0,configurable:!0,writable:!0}),k[w]}try{c({},"")}catch{c=function(x,T,F){return x[T]=F}}function l(k,w,x,T){var F=w&&w.prototype instanceof d?w:d,L=Object.create(F.prototype),j=new R(T||[]);return n(L,"_invoke",{value:S(k,x,j)}),L}function u(k,w,x){try{return{type:"normal",arg:k.call(w,x)}}catch(T){return{type:"throw",arg:T}}}e.wrap=l;var f={};function d(){}function g(){}function v(){}var h={};c(h,o,function(){return this});var p=Object.getPrototypeOf,b=p&&p(p(A([])));b&&b!==t&&r.call(b,o)&&(h=b);var P=v.prototype=d.prototype=Object.create(h);function E(k){["next","throw","return"].forEach(function(w){c(k,w,function(x){return this._invoke(w,x)})})}function O(k,w){function x(F,L,j,z){var W=u(k[F],k,L);if(W.type!=="throw"){var q=W.arg,H=q.value;return H&&Ae(H)=="object"&&r.call(H,"__await")?w.resolve(H.__await).then(function(B){x("next",B,j,z)},function(B){x("throw",B,j,z)}):w.resolve(H).then(function(B){q.value=B,j(q)},function(B){return x("throw",B,j,z)})}z(W.arg)}var T;n(this,"_invoke",{value:function(L,j){function z(){return new w(function(W,q){x(L,j,W,q)})}return T=T?T.then(z,z):z()}})}function S(k,w,x){var T="suspendedStart";return function(F,L){if(T==="executing")throw new Error("Generator is already running");if(T==="completed"){if(F==="throw")throw L;return I()}for(x.method=F,x.arg=L;;){var j=x.delegate;if(j){var z=y(j,x);if(z){if(z===f)continue;return z}}if(x.method==="next")x.sent=x._sent=x.arg;else if(x.method==="throw"){if(T==="suspendedStart")throw T="completed",x.arg;x.dispatchException(x.arg)}else x.method==="return"&&x.abrupt("return",x.arg);T="executing";var W=u(k,w,x);if(W.type==="normal"){if(T=x.done?"completed":"suspendedYield",W.arg===f)continue;return{value:W.arg,done:x.done}}W.type==="throw"&&(T="completed",x.method="throw",x.arg=W.arg)}}}function y(k,w){var x=k.iterator[w.method];if(x===void 0){if(w.delegate=null,w.method==="throw"){if(k.iterator.return&&(w.method="return",w.arg=void 0,y(k,w),w.method==="throw"))return f;w.method="throw",w.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var T=u(x,k.iterator,w.arg);if(T.type==="throw")return w.method="throw",w.arg=T.arg,w.delegate=null,f;var F=T.arg;return F?F.done?(w[k.resultName]=F.value,w.next=k.nextLoc,w.method!=="return"&&(w.method="next",w.arg=void 0),w.delegate=null,f):F:(w.method="throw",w.arg=new TypeError("iterator result is not an object"),w.delegate=null,f)}function _(k){var w={tryLoc:k[0]};1 in k&&(w.catchLoc=k[1]),2 in k&&(w.finallyLoc=k[2],w.afterLoc=k[3]),this.tryEntries.push(w)}function M(k){var w=k.completion||{};w.type="normal",delete w.arg,k.completion=w}function R(k){this.tryEntries=[{tryLoc:"root"}],k.forEach(_,this),this.reset(!0)}function A(k){if(k){var w=k[o];if(w)return w.call(k);if(typeof k.next=="function")return k;if(!isNaN(k.length)){var x=-1,T=function F(){for(;++x<k.length;)if(r.call(k,x))return F.value=k[x],F.done=!1,F;return F.value=void 0,F.done=!0,F};return T.next=T}}return{next:I}}function I(){return{value:void 0,done:!0}}return g.prototype=v,n(P,"constructor",{value:v,configurable:!0}),n(v,"constructor",{value:g,configurable:!0}),g.displayName=c(v,s,"GeneratorFunction"),e.isGeneratorFunction=function(k){var w=typeof k=="function"&&k.constructor;return!!w&&(w===g||(w.displayName||w.name)==="GeneratorFunction")},e.mark=function(k){return Object.setPrototypeOf?Object.setPrototypeOf(k,v):(k.__proto__=v,c(k,s,"GeneratorFunction")),k.prototype=Object.create(P),k},e.awrap=function(k){return{__await:k}},E(O.prototype),c(O.prototype,a,function(){return this}),e.AsyncIterator=O,e.async=function(k,w,x,T,F){F===void 0&&(F=Promise);var L=new O(l(k,w,x,T),F);return e.isGeneratorFunction(w)?L:L.next().then(function(j){return j.done?j.value:L.next()})},E(P),c(P,s,"Generator"),c(P,o,function(){return this}),c(P,"toString",function(){return"[object Generator]"}),e.keys=function(k){var w=Object(k),x=[];for(var T in w)x.push(T);return x.reverse(),function F(){for(;x.length;){var L=x.pop();if(L in w)return F.value=L,F.done=!1,F}return F.done=!0,F}},e.values=A,R.prototype={constructor:R,reset:function(w){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(M),!w)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 w=this.tryEntries[0].completion;if(w.type==="throw")throw w.arg;return this.rval},dispatchException:function(w){if(this.done)throw w;var x=this;function T(q,H){return j.type="throw",j.arg=w,x.next=q,H&&(x.method="next",x.arg=void 0),!!H}for(var F=this.tryEntries.length-1;F>=0;--F){var L=this.tryEntries[F],j=L.completion;if(L.tryLoc==="root")return T("end");if(L.tryLoc<=this.prev){var z=r.call(L,"catchLoc"),W=r.call(L,"finallyLoc");if(z&&W){if(this.prev<L.catchLoc)return T(L.catchLoc,!0);if(this.prev<L.finallyLoc)return T(L.finallyLoc)}else if(z){if(this.prev<L.catchLoc)return T(L.catchLoc,!0)}else{if(!W)throw new Error("try statement without catch or finally");if(this.prev<L.finallyLoc)return T(L.finallyLoc)}}}},abrupt:function(w,x){for(var T=this.tryEntries.length-1;T>=0;--T){var F=this.tryEntries[T];if(F.tryLoc<=this.prev&&r.call(F,"finallyLoc")&&this.prev<F.finallyLoc){var L=F;break}}L&&(w==="break"||w==="continue")&&L.tryLoc<=x&&x<=L.finallyLoc&&(L=null);var j=L?L.completion:{};return j.type=w,j.arg=x,L?(this.method="next",this.next=L.finallyLoc,f):this.complete(j)},complete:function(w,x){if(w.type==="throw")throw w.arg;return w.type==="break"||w.type==="continue"?this.next=w.arg:w.type==="return"?(this.rval=this.arg=w.arg,this.method="return",this.next="end"):w.type==="normal"&&x&&(this.next=x),f},finish:function(w){for(var x=this.tryEntries.length-1;x>=0;--x){var T=this.tryEntries[x];if(T.finallyLoc===w)return this.complete(T.completion,T.afterLoc),M(T),f}},catch:function(w){for(var x=this.tryEntries.length-1;x>=0;--x){var T=this.tryEntries[x];if(T.tryLoc===w){var F=T.completion;if(F.type==="throw"){var L=F.arg;M(T)}return L}}throw new Error("illegal catch attempt")},delegateYield:function(w,x,T){return this.delegate={iterator:A(w),resultName:x,nextLoc:T},this.method==="next"&&(this.arg=void 0),f}},e}function Qg(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(l){r(l);return}s.done?t(c):Promise.resolve(c).then(n,i)}function Dn(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function a(c){Qg(o,n,i,a,s,"next",c)}function s(c){Qg(o,n,i,a,s,"throw",c)}a(void 0)})}}function Qr(){return Qr=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},Qr.apply(this,arguments)}function eO(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Qi(e,t)}function Fl(e){return Fl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Fl(e)}function Qi(e,t){return Qi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Qi(e,t)}function tO(){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 Ia(e,t,r){return tO()?Ia=Reflect.construct.bind():Ia=function(i,o,a){var s=[null];s.push.apply(s,o);var c=Function.bind.apply(i,s),l=new c;return a&&Qi(l,a.prototype),l},Ia.apply(null,arguments)}function rO(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Ll(e){var t=typeof Map=="function"?new Map:void 0;return Ll=function(n){if(n===null||!rO(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 Ia(n,arguments,Fl(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Qi(i,n)},Ll(e)}var nO=/%[sdj%]/g,iO=function(){};typeof process<"u"&&process.env;function Nl(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 wt(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(nO,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 oO(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function We(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||oO(t)&&typeof e=="string"&&!e)}function aO(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 ep(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 sO(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,e[r]||[])}),t}var tp=function(e){eO(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}(Ll(Error));function cO(e,t,r,n,i){if(t.first){var o=new Promise(function(d,g){var v=function(b){return n(b),b.length?g(new tp(b,Nl(b))):d(i)},h=sO(e);ep(h,r,v)});return o.catch(function(d){return d}),o}var a=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),c=s.length,l=0,u=[],f=new Promise(function(d,g){var v=function(p){if(u.push.apply(u,p),l++,l===c)return n(u),u.length?g(new tp(u,Nl(u))):d(i)};s.length||(n(u),d(i)),s.forEach(function(h){var p=e[h];a.indexOf(h)!==-1?ep(p,r,v):aO(p,r,v)})});return f.catch(function(d){return d}),f}function lO(e){return!!(e&&e.message!==void 0)}function uO(e,t){for(var r=e,n=0;n<t.length;n++){if(r==null)return r;r=r[t[n]]}return r}function rp(e,t){return function(r){var n;return e.fullFields?n=uO(t,e.fullFields):n=t[r.field||e.fullField],lO(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 np(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]=Qr({},e[r],n):e[r]=n}}return e}var ip=function(t,r,n,i,o,a){t.required&&(!n.hasOwnProperty(t.field)||We(r,a||t.type))&&i.push(wt(o.messages.required,t.fullField))},fO=function(t,r,n,i,o){(/^\s+$/.test(r)||r==="")&&i.push(wt(o.messages.whitespace,t.fullField))},ja,dO=function(){if(ja)return ja;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+"$"),c=function(O){return O&&O.exact?o:new RegExp("(?:"+t(O)+r+t(O)+")|(?:"+t(O)+i+t(O)+")","g")};c.v4=function(E){return E&&E.exact?a:new RegExp(""+t(E)+r+t(E),"g")},c.v6=function(E){return E&&E.exact?s:new RegExp(""+t(E)+i+t(E),"g")};var l="(?:(?:[a-z]+:)?//)",u="(?:\\S+(?::\\S*)?@)?",f=c.v4().source,d=c.v6().source,g="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",h="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",p="(?::\\d{2,5})?",b='(?:[/?#][^\\s"]*)?',P="(?:"+l+"|www\\.)"+u+"(?:localhost|"+f+"|"+d+"|"+g+v+h+")"+p+b;return ja=new RegExp("(?:^"+P+"$)","i"),ja},op={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},eo={integer:function(t){return eo.number(t)&&parseInt(t,10)===t},float:function(t){return eo.number(t)&&!eo.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"&&!eo.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(op.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(dO())},hex:function(t){return typeof t=="string"&&!!t.match(op.hex)}},hO=function(t,r,n,i,o){if(t.required&&r===void 0){ip(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?eo[s](r)||i.push(wt(o.messages.types[s],t.fullField,t.type)):s&&typeof r!==t.type&&i.push(wt(o.messages.types[s],t.fullField,t.type))},gO=function(t,r,n,i,o){var a=typeof t.len=="number",s=typeof t.min=="number",c=typeof t.max=="number",l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=r,f=null,d=typeof r=="number",g=typeof r=="string",v=Array.isArray(r);if(d?f="number":g?f="string":v&&(f="array"),!f)return!1;v&&(u=r.length),g&&(u=r.replace(l,"_").length),a?u!==t.len&&i.push(wt(o.messages[f].len,t.fullField,t.len)):s&&!c&&u<t.min?i.push(wt(o.messages[f].min,t.fullField,t.min)):c&&!s&&u>t.max?i.push(wt(o.messages[f].max,t.fullField,t.max)):s&&c&&(u<t.min||u>t.max)&&i.push(wt(o.messages[f].range,t.fullField,t.min,t.max))},zn="enum",pO=function(t,r,n,i,o){t[zn]=Array.isArray(t[zn])?t[zn]:[],t[zn].indexOf(r)===-1&&i.push(wt(o.messages[zn],t.fullField,t[zn].join(", ")))},mO=function(t,r,n,i,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||i.push(wt(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(wt(o.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},ae={required:ip,whitespace:fO,type:hO,range:gO,enum:pO,pattern:mO},vO=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(We(r,"string")&&!t.required)return n();ae.required(t,r,i,a,o,"string"),We(r,"string")||(ae.type(t,r,i,a,o),ae.range(t,r,i,a,o),ae.pattern(t,r,i,a,o),t.whitespace===!0&&ae.whitespace(t,r,i,a,o))}n(a)},bO=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(We(r)&&!t.required)return n();ae.required(t,r,i,a,o),r!==void 0&&ae.type(t,r,i,a,o)}n(a)},yO=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),We(r)&&!t.required)return n();ae.required(t,r,i,a,o),r!==void 0&&(ae.type(t,r,i,a,o),ae.range(t,r,i,a,o))}n(a)},wO=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(We(r)&&!t.required)return n();ae.required(t,r,i,a,o),r!==void 0&&ae.type(t,r,i,a,o)}n(a)},SO=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(We(r)&&!t.required)return n();ae.required(t,r,i,a,o),We(r)||ae.type(t,r,i,a,o)}n(a)},CO=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(We(r)&&!t.required)return n();ae.required(t,r,i,a,o),r!==void 0&&(ae.type(t,r,i,a,o),ae.range(t,r,i,a,o))}n(a)},xO=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(We(r)&&!t.required)return n();ae.required(t,r,i,a,o),r!==void 0&&(ae.type(t,r,i,a,o),ae.range(t,r,i,a,o))}n(a)},_O=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();ae.required(t,r,i,a,o,"array"),r!=null&&(ae.type(t,r,i,a,o),ae.range(t,r,i,a,o))}n(a)},EO=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(We(r)&&!t.required)return n();ae.required(t,r,i,a,o),r!==void 0&&ae.type(t,r,i,a,o)}n(a)},OO="enum",$O=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(We(r)&&!t.required)return n();ae.required(t,r,i,a,o),r!==void 0&&ae[OO](t,r,i,a,o)}n(a)},PO=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(We(r,"string")&&!t.required)return n();ae.required(t,r,i,a,o),We(r,"string")||ae.pattern(t,r,i,a,o)}n(a)},TO=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(We(r,"date")&&!t.required)return n();if(ae.required(t,r,i,a,o),!We(r,"date")){var c;r instanceof Date?c=r:c=new Date(r),ae.type(t,c,i,a,o),c&&ae.range(t,c.getTime(),i,a,o)}}n(a)},kO=function(t,r,n,i,o){var a=[],s=Array.isArray(r)?"array":typeof r;ae.required(t,r,i,a,o,s),n(a)},Il=function(t,r,n,i,o){var a=t.type,s=[],c=t.required||!t.required&&i.hasOwnProperty(t.field);if(c){if(We(r,a)&&!t.required)return n();ae.required(t,r,i,s,o,a),We(r,a)||ae.type(t,r,i,s,o)}n(s)},AO=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(We(r)&&!t.required)return n();ae.required(t,r,i,a,o)}n(a)},to={string:vO,method:bO,number:yO,boolean:wO,regexp:SO,integer:CO,float:xO,array:_O,object:EO,enum:$O,pattern:PO,date:TO,url:Il,hex:Il,email:Il,required:kO,any:AO};function jl(){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 Dl=jl(),ro=function(){function e(r){this.rules=null,this._messages=Dl,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=np(jl(),n)),this._messages},t.validate=function(n,i,o){var a=this;i===void 0&&(i={}),o===void 0&&(o=function(){});var s=n,c=i,l=o;if(typeof c=="function"&&(l=c,c={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,s),Promise.resolve(s);function u(h){var p=[],b={};function P(O){if(Array.isArray(O)){var S;p=(S=p).concat.apply(S,O)}else p.push(O)}for(var E=0;E<h.length;E++)P(h[E]);p.length?(b=Nl(p),l(p,b)):l(null,s)}if(c.messages){var f=this.messages();f===Dl&&(f=jl()),np(f,c.messages),c.messages=f}else c.messages=this.messages();var d={},g=c.keys||Object.keys(this.rules);g.forEach(function(h){var p=a.rules[h],b=s[h];p.forEach(function(P){var E=P;typeof E.transform=="function"&&(s===n&&(s=Qr({},s)),b=s[h]=E.transform(b)),typeof E=="function"?E={validator:E}:E=Qr({},E),E.validator=a.getValidationMethod(E),E.validator&&(E.field=h,E.fullField=E.fullField||h,E.type=a.getType(E),d[h]=d[h]||[],d[h].push({rule:E,value:b,source:s,field:h}))})});var v={};return cO(d,c,function(h,p){var b=h.rule,P=(b.type==="object"||b.type==="array")&&(typeof b.fields=="object"||typeof b.defaultField=="object");P=P&&(b.required||!b.required&&h.value),b.field=h.field;function E(y,_){return Qr({},_,{fullField:b.fullField+"."+y,fullFields:b.fullFields?[].concat(b.fullFields,[y]):[y]})}function O(y){y===void 0&&(y=[]);var _=Array.isArray(y)?y:[y];!c.suppressWarning&&_.length&&e.warning("async-validator:",_),_.length&&b.message!==void 0&&(_=[].concat(b.message));var M=_.map(rp(b,s));if(c.first&&M.length)return v[b.field]=1,p(M);if(!P)p(M);else{if(b.required&&!h.value)return b.message!==void 0?M=[].concat(b.message).map(rp(b,s)):c.error&&(M=[c.error(b,wt(c.messages.required,b.field))]),p(M);var R={};b.defaultField&&Object.keys(h.value).map(function(k){R[k]=b.defaultField}),R=Qr({},R,h.rule.fields);var A={};Object.keys(R).forEach(function(k){var w=R[k],x=Array.isArray(w)?w:[w];A[k]=x.map(E.bind(null,k))});var I=new e(A);I.messages(c.messages),h.rule.options&&(h.rule.options.messages=c.messages,h.rule.options.error=c.error),I.validate(h.value,h.rule.options||c,function(k){var w=[];M&&M.length&&w.push.apply(w,M),k&&k.length&&w.push.apply(w,k),p(w.length?w:null)})}}var S;if(b.asyncValidator)S=b.asyncValidator(b,h.value,O,h.source,c);else if(b.validator){try{S=b.validator(b,h.value,O,h.source,c)}catch(y){console.error==null||console.error(y),c.suppressValidatorError||setTimeout(function(){throw y},0),O(y.message)}S===!0?O():S===!1?O(typeof b.message=="function"?b.message(b.fullField||b.field):b.message||(b.fullField||b.field)+" fails"):S instanceof Array?O(S):S instanceof Error&&O(S.message)}S&&S.then&&S.then(function(){return O()},function(y){return O(y)})},function(h){u(h)},s)},t.getType=function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!to.hasOwnProperty(n.type))throw new Error(wt("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"?to.required:to[this.getType(n)]||void 0},e}();ro.register=function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");to[t]=r},ro.warning=iO,ro.messages=Dl,ro.validators=to;var St="'${name}' is not a valid ${type}",ap={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:St,method:St,array:St,object:St,number:St,date:St,boolean:St,integer:St,float:St,regexp:St,email:St,url:St,hex:St},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 sp(e,t){for(var r=e,n=0;n<t.length;n+=1){if(r==null)return;r=r[t[n]]}return r}function MO(e){return zg(e)||jg(e)||_l(e)||Bg()}function cp(e,t,r,n){if(!t.length)return r;var i=MO(t),o=i[0],a=i.slice(1),s;return!e&&typeof o=="number"?s=[]:Array.isArray(e)?s=J(e):s=D({},e),n&&r===void 0&&a.length===1?delete s[o][a[0]]:s[o]=cp(s[o],a,r,n),s}function RO(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&n&&r===void 0&&!sp(e,t.slice(0,-1))?e:cp(e,t,r,n)}function Da(e){return Array.isArray(e)?LO(e):Ae(e)==="object"&&e!==null?FO(e):e}function FO(e){if(Object.getPrototypeOf(e)===Object.prototype){var t={};for(var r in e)t[r]=Da(e[r]);return t}return e}function LO(e){return e.map(function(t){return Da(t)})}function Le(e){return Rl(e)}function kr(e,t){var r=sp(e,t);return r}function Ar(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=RO(e,t,r,n);return i}function lp(e,t){var r={};return t.forEach(function(n){var i=kr(e,n);r=Ar(r,n,i)}),r}function no(e,t){return e&&e.some(function(r){return dp(r,t)})}function up(e){return Ae(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function fp(e,t){var r=Array.isArray(e)?J(e):D({},e);return t&&Object.keys(t).forEach(function(n){var i=r[n],o=t[n],a=up(i)&&up(o);r[n]=a?fp(i,o||{}):Da(o)}),r}function io(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 fp(i,o)},e)}function dp(e,t){return!e||!t||e.length!==t.length?!1:e.every(function(r,n){return t[n]===r})}function NO(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Ae(e)!=="object"||Ae(t)!=="object")return!1;var r=Object.keys(e),n=Object.keys(t),i=new Set([].concat(r,n));return J(i).every(function(o){var a=e[o],s=t[o];return typeof a=="function"&&typeof s=="function"?!0:a===s})}function IO(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Ae(t.target)==="object"&&e in t.target?t.target[e]:t}function hp(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(J(e.slice(0,r)),[i],J(e.slice(r,t)),J(e.slice(t+1,n))):o<0?[].concat(J(e.slice(0,t)),J(e.slice(t+1,r+1)),[i],J(e.slice(r+1,n))):e}var jO=ro;function DO(e,t){return e.replace(/\$\{\w+\}/g,function(r){var n=r.slice(2,-1);return t[n]})}var gp="CODE_LOGIC_ERROR";function zl(e,t,r,n,i){return Bl.apply(this,arguments)}function Bl(){return Bl=Dn(yt().mark(function e(t,r,n,i,o){var a,s,c,l,u,f,d,g,v;return yt().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return a=D({},n),delete a.ruleIndex,a.validator&&(s=a.validator,a.validator=function(){try{return s.apply(void 0,arguments)}catch(b){return console.error(b),Promise.reject(gp)}}),c=null,a&&a.type==="array"&&a.defaultField&&(c=a.defaultField,delete a.defaultField),l=new jO(oe({},t,[a])),u=io({},ap,i.validateMessages),l.messages(u),f=[],p.prev=9,p.next=12,Promise.resolve(l.validate(oe({},t,r),D({},i)));case 12:p.next=17;break;case 14:p.prev=14,p.t0=p.catch(9),p.t0.errors&&(f=p.t0.errors.map(function(b,P){var E=b.message,O=E===gp?u.default:E;return m.isValidElement(O)?m.cloneElement(O,{key:"error_".concat(P)}):O}));case 17:if(!(!f.length&&c)){p.next=22;break}return p.next=20,Promise.all(r.map(function(b,P){return zl("".concat(t,".").concat(P),b,c,i,o)}));case 20:return d=p.sent,p.abrupt("return",d.reduce(function(b,P){return[].concat(J(b),J(P))},[]));case 22:return g=D(D({},n),{},{name:t,enum:(n.enum||[]).join(", ")},o),v=f.map(function(b){return typeof b=="string"?DO(b,g):b}),p.abrupt("return",v);case 25:case"end":return p.stop()}},e,null,[[9,14]])})),Bl.apply(this,arguments)}function zO(e,t,r,n,i,o){var a=e.join("."),s=r.map(function(u,f){var d=u.validator,g=D(D({},u),{},{ruleIndex:f});return d&&(g.validator=function(v,h,p){var b=!1,P=function(){for(var S=arguments.length,y=new Array(S),_=0;_<S;_++)y[_]=arguments[_];Promise.resolve().then(function(){rr(!b,"Your validator function has already return a promise. `callback` will be ignored."),b||p.apply(void 0,y)})},E=d(v,h,P);b=E&&typeof E.then=="function"&&typeof E.catch=="function",rr(b,"`callback` is deprecated. Please return a promise instead."),b&&E.then(function(){p()}).catch(function(O){p(O||" ")})}),g}).sort(function(u,f){var d=u.warningOnly,g=u.ruleIndex,v=f.warningOnly,h=f.ruleIndex;return!!d==!!v?g-h:d?1:-1}),c;if(i===!0)c=new Promise(function(){var u=Dn(yt().mark(function f(d,g){var v,h,p;return yt().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:v=0;case 1:if(!(v<s.length)){P.next=12;break}return h=s[v],P.next=5,zl(a,t,h,n,o);case 5:if(p=P.sent,!p.length){P.next=9;break}return g([{errors:p,rule:h}]),P.abrupt("return");case 9:v+=1,P.next=1;break;case 12:d([]);case 13:case"end":return P.stop()}},f)}));return function(f,d){return u.apply(this,arguments)}}());else{var l=s.map(function(u){return zl(a,t,u,n,o).then(function(f){return{errors:f,rule:u}})});c=(i?WO(l):BO(l)).then(function(u){return Promise.reject(u)})}return c.catch(function(u){return u}),c}function BO(e){return Wl.apply(this,arguments)}function Wl(){return Wl=Dn(yt().mark(function e(t){return yt().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,J(i));return a}));case 1:case"end":return n.stop()}},e)})),Wl.apply(this,arguments)}function WO(e){return Hl.apply(this,arguments)}function Hl(){return Hl=Dn(yt().mark(function e(t){var r;return yt().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)})),Hl.apply(this,arguments)}var HO=["name"],Tt=[];function pp(e,t,r,n,i,o){return typeof e=="function"?e(t,r,"source"in o?{source:o.source}:{}):n!==i}var Vl=function(e){$a(r,e);var t=ka(r);function r(n){var i;if(er(this,r),i=t.call(this,n),i.state={resetCount:0},i.cancelRegisterFunc=null,i.mounted=!1,i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.prevValidating=void 0,i.errors=Tt,i.warnings=Tt,i.cancelRegister=function(){var c=i.props,l=c.preserve,u=c.isListField,f=c.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(u,l,Le(f)),i.cancelRegisterFunc=null},i.getNamePath=function(){var c=i.props,l=c.name,u=c.fieldContext,f=u.prefixName,d=f===void 0?[]:f;return l!==void 0?[].concat(J(d),J(l)):[]},i.getRules=function(){var c=i.props,l=c.rules,u=l===void 0?[]:l,f=c.fieldContext;return u.map(function(d){return typeof d=="function"?d(f):d})},i.refresh=function(){i.mounted&&i.setState(function(c){var l=c.resetCount;return{resetCount:l+1}})},i.triggerMetaEvent=function(c){var l=i.props.onMetaChange;l==null||l(D(D({},i.getMeta()),{},{destroy:c}))},i.onStoreChange=function(c,l,u){var f=i.props,d=f.shouldUpdate,g=f.dependencies,v=g===void 0?[]:g,h=f.onReset,p=u.store,b=i.getNamePath(),P=i.getValue(c),E=i.getValue(p),O=l&&no(l,b);switch(u.type==="valueUpdate"&&u.source==="external"&&P!==E&&(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=Tt,i.warnings=Tt,i.triggerMetaEvent()),u.type){case"reset":if(!l||O){i.touched=!1,i.dirty=!1,i.validatePromise=null,i.errors=Tt,i.warnings=Tt,i.triggerMetaEvent(),h==null||h(),i.refresh();return}break;case"remove":{if(d){i.reRender();return}break}case"setField":{if(O){var S=u.data;"touched"in S&&(i.touched=S.touched),"validating"in S&&!("originRCField"in S)&&(i.validatePromise=S.validating?Promise.resolve([]):null),"errors"in S&&(i.errors=S.errors||Tt),"warnings"in S&&(i.warnings=S.warnings||Tt),i.dirty=!0,i.triggerMetaEvent(),i.reRender();return}if(d&&!b.length&&pp(d,c,p,P,E,u)){i.reRender();return}break}case"dependenciesUpdate":{var y=v.map(Le);if(y.some(function(_){return no(u.relatedFields,_)})){i.reRender();return}break}default:if(O||(!v.length||b.length||d)&&pp(d,c,p,P,E,u)){i.reRender();return}break}d===!0&&i.reRender()},i.validateRules=function(c){var l=i.getNamePath(),u=i.getValue(),f=Promise.resolve().then(function(){if(!i.mounted)return[];var d=i.props,g=d.validateFirst,v=g===void 0?!1:g,h=d.messageVariables,p=c||{},b=p.triggerName,P=i.getRules();b&&(P=P.filter(function(O){return O}).filter(function(O){var S=O.validateTrigger;if(!S)return!0;var y=Rl(S);return y.includes(b)}));var E=zO(l,u,P,c,v,h);return E.catch(function(O){return O}).then(function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Tt;if(i.validatePromise===f){var S;i.validatePromise=null;var y=[],_=[];(S=O.forEach)===null||S===void 0||S.call(O,function(M){var R=M.rule.warningOnly,A=M.errors,I=A===void 0?Tt:A;R?_.push.apply(_,J(I)):y.push.apply(y,J(I))}),i.errors=y,i.warnings=_,i.triggerMetaEvent(),i.reRender()}}),E});return i.validatePromise=f,i.dirty=!0,i.errors=Tt,i.warnings=Tt,i.triggerMetaEvent(),i.reRender(),f},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 c=i.props.fieldContext,l=c.getInternalHooks(Jr),u=l.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 c={touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:i.validatePromise===null};return c},i.getOnlyChild=function(c){if(typeof c=="function"){var l=i.getMeta();return D(D({},i.getOnlyChild(c(i.getControlled(),l,i.props.fieldContext))),{},{isFunction:!0})}var u=Fn(c);return u.length!==1||!m.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}},i.getValue=function(c){var l=i.props.fieldContext.getFieldsValue,u=i.getNamePath();return kr(c||l(!0),u)},i.getControlled=function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=i.props,u=l.trigger,f=l.validateTrigger,d=l.getValueFromEvent,g=l.normalize,v=l.valuePropName,h=l.getValueProps,p=l.fieldContext,b=f!==void 0?f:p.validateTrigger,P=i.getNamePath(),E=p.getInternalHooks,O=p.getFieldsValue,S=E(Jr),y=S.dispatch,_=i.getValue(),M=h||function(k){return oe({},v,k)},R=c[u],A=D(D({},c),M(_));A[u]=function(){i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var k,w=arguments.length,x=new Array(w),T=0;T<w;T++)x[T]=arguments[T];d?k=d.apply(void 0,x):k=IO.apply(void 0,[v].concat(x)),g&&(k=g(k,_,O(!0))),y({type:"updateValue",namePath:P,value:k}),R&&R.apply(void 0,x)};var I=Rl(b||[]);return I.forEach(function(k){var w=A[k];A[k]=function(){w&&w.apply(void 0,arguments);var x=i.props.rules;x&&x.length&&y({type:"validateField",namePath:P,triggerName:k})}}),A},n.fieldContext){var o=n.fieldContext.getInternalHooks,a=o(Jr),s=a.initEntityValue;s(Ta(i))}return i}return tr(r,[{key:"componentDidMount",value:function(){var i=this.props,o=i.shouldUpdate,a=i.fieldContext;if(this.mounted=!0,a){var s=a.getInternalHooks,c=s(Jr),l=c.registerField;this.cancelRegisterFunc=l(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,c=a.isFunction,l;return c?l=s:m.isValidElement(s)?l=m.cloneElement(s,this.getControlled(s.props)):(rr(!s,"`children` of Field is not validate ReactElement."),l=s),m.createElement(m.Fragment,{key:i},l)}}]),r}(m.Component);Vl.contextType=jn,Vl.defaultProps={trigger:"onChange",valuePropName:"value"};function mp(e){var t=e.name,r=nr(e,HO),n=m.useContext(jn),i=t!==void 0?Le(t):void 0,o="keep";return r.isListField||(o="_".concat((i||[]).join("_"))),m.createElement(Vl,Vt({key:o,name:i},r,{fieldContext:n}))}var VO=m.createContext(null),qO=function(t){var r=t.name,n=t.initialValue,i=t.children,o=t.rules,a=t.validateTrigger,s=m.useContext(jn),c=m.useRef({keys:[],id:0}),l=c.current,u=m.useMemo(function(){var v=Le(s.prefixName)||[];return[].concat(J(v),J(Le(r)))},[s.prefixName,r]),f=m.useMemo(function(){return D(D({},s),{},{prefixName:u})},[s,u]),d=m.useMemo(function(){return{getKey:function(h){var p=u.length,b=h[p];return[l.keys[b],h.slice(p+1)]}}},[u]);if(typeof i!="function")return rr(!1,"Form.List only accepts function as children."),null;var g=function(h,p,b){var P=b.source;return P==="internal"?!1:h!==p};return m.createElement(VO.Provider,{value:d},m.createElement(jn.Provider,{value:f},m.createElement(mp,{name:[],shouldUpdate:g,rules:o,validateTrigger:a,initialValue:n,isList:!0},function(v,h){var p=v.value,b=p===void 0?[]:p,P=v.onChange,E=s.getFieldValue,O=function(){var M=E(u||[]);return M||[]},S={add:function(M,R){var A=O();R>=0&&R<=A.length?(l.keys=[].concat(J(l.keys.slice(0,R)),[l.id],J(l.keys.slice(R))),P([].concat(J(A.slice(0,R)),[M],J(A.slice(R))))):(l.keys=[].concat(J(l.keys),[l.id]),P([].concat(J(A),[M]))),l.id+=1},remove:function(M){var R=O(),A=new Set(Array.isArray(M)?M:[M]);A.size<=0||(l.keys=l.keys.filter(function(I,k){return!A.has(k)}),P(R.filter(function(I,k){return!A.has(k)})))},move:function(M,R){if(M!==R){var A=O();M<0||M>=A.length||R<0||R>=A.length||(l.keys=hp(l.keys,M,R),P(hp(A,M,R)))}}},y=b||[];return Array.isArray(y)||(y=[]),i(y.map(function(_,M){var R=l.keys[M];return R===void 0&&(l.keys[M]=l.id,R=l.keys[M],l.id+=1),{name:M,key:R,isListField:!0}}),S,h)})))};function GO(e){var t=!1,r=e.length,n=[];return e.length?new Promise(function(i,o){e.forEach(function(a,s){a.catch(function(c){return t=!0,c}).then(function(c){r-=1,n[s]=c,!(r>0)&&(t&&o(n),i(n))})})}):Promise.resolve([])}var vp="__@field_split__";function ql(e){return e.map(function(t){return"".concat(Ae(t),":").concat(t)}).join(vp)}var Bn=function(){function e(){er(this,e),this.kvs=new Map}return tr(e,[{key:"set",value:function(r,n){this.kvs.set(ql(r),n)}},{key:"get",value:function(r){return this.kvs.get(ql(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(ql(r))}},{key:"map",value:function(r){return J(this.kvs.entries()).map(function(n){var i=K(n,2),o=i[0],a=i[1],s=o.split(vp);return r({key:s.map(function(c){var l=c.match(/^([^:]*):(.*)$/),u=K(l,3),f=u[1],d=u[2];return f==="number"?Number(d):d}),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}(),UO=["name","errors"],KO=tr(function e(t){var r=this;er(this,e),this.formHooked=!1,this.forceRootUpdate=void 0,this.subscribable=!0,this.store={},this.fieldEntities=[],this.initialValues={},this.callbacks={},this.validateMessages=null,this.preserve=null,this.lastValidatePromise=null,this.getForm=function(){return{getFieldValue:r.getFieldValue,getFieldsValue:r.getFieldsValue,getFieldError:r.getFieldError,getFieldWarning:r.getFieldWarning,getFieldsError:r.getFieldsError,isFieldsTouched:r.isFieldsTouched,isFieldTouched:r.isFieldTouched,isFieldValidating:r.isFieldValidating,isFieldsValidating:r.isFieldsValidating,resetFields:r.resetFields,setFields:r.setFields,setFieldValue:r.setFieldValue,setFieldsValue:r.setFieldsValue,validateFields:r.validateFields,submit:r.submit,_init:!0,getInternalHooks:r.getInternalHooks}},this.getInternalHooks=function(n){return n===Jr?(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}):(rr(!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=io({},n,r.store);(o=r.prevWithoutPreserves)===null||o===void 0||o.map(function(s){var c=s.key;a=Ar(a,c,kr(n,c))}),r.prevWithoutPreserves=null,r.updateStore(a)}},this.destroyForm=function(){var n=new Bn;r.getFieldEntities(!0).forEach(function(i){r.isMergedPreserve(i.isPreserve())||n.set(i.getNamePath(),!0)}),r.prevWithoutPreserves=n},this.getInitialValue=function(n){var i=kr(r.initialValues,n);return n.length?Da(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();r.watchList.forEach(function(o){o(i,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 Bn;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=Le(o);return i.get(a)||{INVALIDATE_NAME_PATH:Le(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 c,l="INVALIDATE_NAME_PATH"in s?s.INVALIDATE_NAME_PATH:s.getNamePath();if(!(!n&&(!((c=s.isListField)===null||c===void 0)&&c.call(s))))if(!i)a.push(l);else{var u="getMeta"in s?s.getMeta():null;i(u)&&a.push(l)}}),lp(r.store,a.map(Le))},this.getFieldValue=function(n){r.warningUnhooked();var i=Le(n);return kr(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:Le(n[a]),errors:[],warnings:[]}})},this.getFieldError=function(n){r.warningUnhooked();var i=Le(n),o=r.getFieldsError([i])[0];return o.errors},this.getFieldWarning=function(n){r.warningUnhooked();var i=Le(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],c,l=!1;i.length===0?c=null:i.length===1?Array.isArray(a)?(c=a.map(Le),l=!1):(c=null,l=a):(c=a.map(Le),l=s);var u=r.getFieldEntities(!0),f=function(p){return p.isFieldTouched()};if(!c)return l?u.every(f):u.some(f);var d=new Bn;c.forEach(function(h){d.set(h,[])}),u.forEach(function(h){var p=h.getNamePath();c.forEach(function(b){b.every(function(P,E){return p[E]===P})&&d.update(b,function(P){return[].concat(J(P),[h])})})});var g=function(p){return p.some(f)},v=d.map(function(h){var p=h.value;return p});return l?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(Le);return i.some(function(a){var s=a.getNamePath();return no(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 Bn,o=r.getFieldEntities(!0);o.forEach(function(c){var l=c.props.initialValue,u=c.getNamePath();if(l!==void 0){var f=i.get(u)||new Set;f.add({entity:c,value:l}),i.set(u,f)}});var a=function(l){l.forEach(function(u){var f=u.props.initialValue;if(f!==void 0){var d=u.getNamePath(),g=r.getInitialValue(d);if(g!==void 0)rr(!1,"Form already set 'initialValues' with path '".concat(d.join("."),"'. Field can not overwrite it."));else{var v=i.get(d);if(v&&v.size>1)rr(!1,"Multiple Field with path '".concat(d.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(v){var h=r.getFieldValue(d);(!n.skipExist||h===void 0)&&r.updateStore(Ar(r.store,d,J(v)[0].value))}}}})},s;n.entities?s=n.entities:n.namePathList?(s=[],n.namePathList.forEach(function(c){var l=i.get(c);if(l){var u;(u=s).push.apply(u,J(J(l).map(function(f){return f.entity})))}})):s=o,a(s)},this.resetFields=function(n){r.warningUnhooked();var i=r.store;if(!n){r.updateStore(io({},r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(i,null,{type:"reset"}),r.notifyWatch();return}var o=n.map(Le);o.forEach(function(a){var s=r.getInitialValue(a);r.updateStore(Ar(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;a.errors;var c=nr(a,UO),l=Le(s);o.push(l),"value"in c&&r.updateStore(Ar(r.store,l,c.value)),r.notifyObservers(i,[l],{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(),c=D(D({},s),{},{name:a,value:r.getFieldValue(a)});return Object.defineProperty(c,"originRCField",{value:!0}),c});return i},this.initEntityValue=function(n){var i=n.props.initialValue;if(i!==void 0){var o=n.getNamePath(),a=kr(r.store,o);a===void 0&&r.updateStore(Ar(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 c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.fieldEntities=r.fieldEntities.filter(function(f){return f!==n}),!r.isMergedPreserve(s)&&(!a||c.length>1)){var l=a?void 0:r.getInitialValue(i);if(i.length&&r.getFieldValue(i)!==l&&r.fieldEntities.every(function(f){return!dp(f.getNamePath(),i)})){var u=r.store;r.updateStore(Ar(u,i,l,!0)),r.notifyObservers(u,[i],{type:"remove"}),r.triggerDependenciesUpdate(u,i)}}r.notifyWatch([i])}},this.dispatch=function(n){switch(n.type){case"updateValue":{var i=n.namePath,o=n.value;r.updateValue(i,o);break}case"validateField":{var a=n.namePath,s=n.triggerName;r.validateFields([a],{triggerName:s});break}}},this.notifyObservers=function(n,i,o){if(r.subscribable){var a=D(D({},o),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(s){var c=s.onStoreChange;c(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(J(o))}),o},this.updateValue=function(n,i){var o=Le(n),a=r.store;r.updateStore(Ar(r.store,o,i)),r.notifyObservers(a,[o],{type:"valueUpdate",source:"internal"}),r.notifyWatch([o]);var s=r.triggerDependenciesUpdate(a,o),c=r.callbacks.onValuesChange;if(c){var l=lp(r.store,[o]);c(l,r.getFieldsValue())}r.triggerOnFieldsChange([o].concat(J(s)))},this.setFieldsValue=function(n){r.warningUnhooked();var i=r.store;if(n){var o=io(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 Bn;r.getFieldEntities().forEach(function(c){var l=c.props.dependencies;(l||[]).forEach(function(u){var f=Le(u);a.update(f,function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return d.add(c),d})})});var s=function c(l){var u=a.get(l)||new Set;u.forEach(function(f){if(!i.has(f)){i.add(f);var d=f.getNamePath();f.isFieldDirty()&&d.length&&(o.push(d),c(d))}})};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 Bn;i.forEach(function(l){var u=l.name,f=l.errors;s.set(u,f)}),a.forEach(function(l){l.errors=s.get(l.name)||l.errors})}var c=a.filter(function(l){var u=l.name;return no(n,u)});o(c,a)}},this.validateFields=function(n,i){r.warningUnhooked();var o=!!n,a=o?n.map(Le):[],s=[];r.getFieldEntities(!0).forEach(function(u){if(o||a.push(u.getNamePath()),i!=null&&i.recursive&&o){var f=u.getNamePath();f.every(function(v,h){return n[h]===v||n[h]===void 0})&&a.push(f)}if(!(!u.props.rules||!u.props.rules.length)){var d=u.getNamePath();if(!o||no(a,d)){var g=u.validateRules(D({validateMessages:D(D({},ap),r.validateMessages)},i));s.push(g.then(function(){return{name:d,errors:[],warnings:[]}}).catch(function(v){var h,p=[],b=[];return(h=v.forEach)===null||h===void 0||h.call(v,function(P){var E=P.rule.warningOnly,O=P.errors;E?b.push.apply(b,J(O)):p.push.apply(p,J(O))}),p.length?Promise.reject({name:d,errors:p,warnings:b}):{name:d,errors:p,warnings:b}}))}}});var c=GO(s);r.lastValidatePromise=c,c.catch(function(u){return u}).then(function(u){var f=u.map(function(d){var g=d.name;return g});r.notifyObservers(r.store,f,{type:"validateFinish"}),r.triggerOnFieldsChange(f,u)});var l=c.then(function(){return r.lastValidatePromise===c?Promise.resolve(r.getFieldsValue(a)):Promise.reject([])}).catch(function(u){var f=u.filter(function(d){return d&&d.errors.length});return Promise.reject({values:r.getFieldsValue(a),errorFields:f,outOfDate:r.lastValidatePromise!==c})});return l.catch(function(u){return u}),l},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 bp(e){var t=m.useRef(),r=m.useState({}),n=K(r,2),i=n[1];if(!t.current)if(e)t.current=e;else{var o=function(){i({})},a=new KO(o);t.current=a.getForm()}return[t.current]}var Gl=m.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),yp=function(t){var r=t.validateMessages,n=t.onFormChange,i=t.onFormFinish,o=t.children,a=m.useContext(Gl),s=m.useRef({});return m.createElement(Gl.Provider,{value:D(D({},a),{},{validateMessages:D(D({},a.validateMessages),r),triggerFormChange:function(l,u){n&&n(l,{changedFields:u,forms:s.current}),a.triggerFormChange(l,u)},triggerFormFinish:function(l,u){i&&i(l,{values:u,forms:s.current}),a.triggerFormFinish(l,u)},registerForm:function(l,u){l&&(s.current=D(D({},s.current),{},oe({},l,u))),a.registerForm(l,u)},unregisterForm:function(l){var u=D({},s.current);delete u[l],s.current=u,a.unregisterForm(l)}})},o)},XO=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],YO=function(t,r){var n=t.name,i=t.initialValues,o=t.fields,a=t.form,s=t.preserve,c=t.children,l=t.component,u=l===void 0?"form":l,f=t.validateMessages,d=t.validateTrigger,g=d===void 0?"onChange":d,v=t.onValuesChange,h=t.onFieldsChange,p=t.onFinish,b=t.onFinishFailed,P=nr(t,XO),E=m.useContext(Gl),O=bp(a),S=K(O,1),y=S[0],_=y.getInternalHooks(Jr),M=_.useSubscribe,R=_.setInitialValues,A=_.setCallbacks,I=_.setValidateMessages,k=_.setPreserve,w=_.destroyForm;m.useImperativeHandle(r,function(){return y}),m.useEffect(function(){return E.registerForm(n,y),function(){E.unregisterForm(n)}},[E,y,n]),I(D(D({},E.validateMessages),f)),A({onValuesChange:v,onFieldsChange:function(H){if(E.triggerFormChange(n,H),h){for(var B=arguments.length,le=new Array(B>1?B-1:0),te=1;te<B;te++)le[te-1]=arguments[te];h.apply(void 0,[H].concat(le))}},onFinish:function(H){E.triggerFormFinish(n,H),p&&p(H)},onFinishFailed:b}),k(s);var x=m.useRef(null);R(i,!x.current),x.current||(x.current=!0),m.useEffect(function(){return w},[]);var T,F=typeof c=="function";if(F){var L=y.getFieldsValue(!0);T=c(L,y)}else T=c;M(!F);var j=m.useRef();m.useEffect(function(){NO(j.current||[],o||[])||y.setFields(o||[]),j.current=o},[o,y]);var z=m.useMemo(function(){return D(D({},y),{},{validateTrigger:g})},[y,g]),W=m.createElement(jn.Provider,{value:z},T);return u===!1?W:m.createElement(u,Vt({},P,{onSubmit:function(H){H.preventDefault(),H.stopPropagation(),y.submit()},onReset:function(H){var B;H.preventDefault(),y.resetFields(),(B=P.onReset)===null||B===void 0||B.call(P,H)}}),W)};function wp(e){try{return JSON.stringify(e)}catch{return Math.random()}}function ZO(){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=$.useState(),s=K(a,2),c=s[0],l=s[1],u=$.useMemo(function(){return wp(c)},[c]),f=$.useRef(u);f.current=u;var d=$.useContext(jn),g=o||d,v=g&&g._init,h=Le(i),p=$.useRef(h);return p.current=h,$.useEffect(function(){if(v){var b=g.getFieldsValue,P=g.getInternalHooks,E=P(Jr),O=E.registerWatch,S=O(function(_){var M=kr(_,p.current),R=wp(M);f.current!==R&&(f.current=R,l(M))}),y=kr(b(),p.current);return l(y),S}},[v]),c}var JO=m.forwardRef(YO),oo=JO;oo.FormProvider=yp,oo.Field=mp,oo.List=qO,oo.useForm=bp,oo.useWatch=ZO;const QO={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 e$={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 Sp={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Cp={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"]},e$),timePickerLocale:Object.assign({},Sp)},Ct="${label} is not a valid ${type}",Ul={locale:"en",Pagination:QO,DatePicker:Cp,TimePicker:Sp,Calendar:Cp,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:Ct,method:Ct,array:Ct,object:Ct,number:Ct,date:Ct,boolean:Ct,integer:Ct,float:Ct,regexp:Ct,email:Ct,url:Ct,hex:Ct},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"}};let Kl=Object.assign({},Ul.Modal);function xp(e){e?Kl=Object.assign(Object.assign({},Kl),e):Kl=Object.assign({},Ul.Modal)}const _p=$.createContext(void 0),t$="internalMark",r$=e=>{const{locale:t={},children:r,_ANT_MARK__:n}=e;m.useEffect(()=>(xp(t&&t.Modal),()=>{xp()}),[t]);const i=m.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return m.createElement(_p.Provider,{value:i},r)},n$="5.3.2",za=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function Je(e,t){i$(e)&&(e="100%");var r=o$(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 Ba(e){return Math.min(1,Math.max(0,e))}function i$(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function o$(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Ep(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Wa(e){return e<=1?"".concat(Number(e)*100,"%"):e}function en(e){return e.length===1?"0"+e:String(e)}function a$(e,t,r){return{r:Je(e,255)*255,g:Je(t,255)*255,b:Je(r,255)*255}}function Op(e,t,r){e=Je(e,255),t=Je(t,255),r=Je(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 c=n-i;switch(a=s>.5?c/(2-n-i):c/(n+i),n){case e:o=(t-r)/c+(t<r?6:0);break;case t:o=(r-e)/c+2;break;case r:o=(e-t)/c+4;break}o/=6}return{h:o,s:a,l:s}}function Xl(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 s$(e,t,r){var n,i,o;if(e=Je(e,360),t=Je(t,100),r=Je(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=Xl(s,a,e+1/3),i=Xl(s,a,e),o=Xl(s,a,e-1/3)}return{r:n*255,g:i*255,b:o*255}}function Yl(e,t,r){e=Je(e,255),t=Je(t,255),r=Je(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),o=0,a=n,s=n-i,c=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:c,v:a}}function c$(e,t,r){e=Je(e,360)*6,t=Je(t,100),r=Je(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),c=n%6,l=[r,a,o,o,s,r][c],u=[s,r,r,a,o,o][c],f=[o,o,s,r,r,a][c];return{r:l*255,g:u*255,b:f*255}}function Zl(e,t,r,n){var i=[en(Math.round(e).toString(16)),en(Math.round(t).toString(16)),en(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 l$(e,t,r,n,i){var o=[en(Math.round(e).toString(16)),en(Math.round(t).toString(16)),en(Math.round(r).toString(16)),en(u$(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 u$(e){return Math.round(parseFloat(e)*255).toString(16)}function $p(e){return xt(e)/255}function xt(e){return parseInt(e,16)}function f$(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Jl={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 Wn(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=g$(e)),typeof e=="object"&&(mr(e.r)&&mr(e.g)&&mr(e.b)?(t=a$(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):mr(e.h)&&mr(e.s)&&mr(e.v)?(n=Wa(e.s),i=Wa(e.v),t=c$(e.h,n,i),a=!0,s="hsv"):mr(e.h)&&mr(e.s)&&mr(e.l)&&(n=Wa(e.s),o=Wa(e.l),t=s$(e.h,n,o),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=Ep(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 d$="[-\\+]?\\d+%?",h$="[-\\+]?\\d*\\.\\d+%?",Mr="(?:".concat(h$,")|(?:").concat(d$,")"),Ql="[\\s|\\(]+(".concat(Mr,")[,|\\s]+(").concat(Mr,")[,|\\s]+(").concat(Mr,")\\s*\\)?"),eu="[\\s|\\(]+(".concat(Mr,")[,|\\s]+(").concat(Mr,")[,|\\s]+(").concat(Mr,")[,|\\s]+(").concat(Mr,")\\s*\\)?"),Mt={CSS_UNIT:new RegExp(Mr),rgb:new RegExp("rgb"+Ql),rgba:new RegExp("rgba"+eu),hsl:new RegExp("hsl"+Ql),hsla:new RegExp("hsla"+eu),hsv:new RegExp("hsv"+Ql),hsva:new RegExp("hsva"+eu),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 g$(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Jl[e])e=Jl[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=Mt.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=Mt.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=Mt.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=Mt.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=Mt.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=Mt.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=Mt.hex8.exec(e),r?{r:xt(r[1]),g:xt(r[2]),b:xt(r[3]),a:$p(r[4]),format:t?"name":"hex8"}:(r=Mt.hex6.exec(e),r?{r:xt(r[1]),g:xt(r[2]),b:xt(r[3]),format:t?"name":"hex"}:(r=Mt.hex4.exec(e),r?{r:xt(r[1]+r[1]),g:xt(r[2]+r[2]),b:xt(r[3]+r[3]),a:$p(r[4]+r[4]),format:t?"name":"hex8"}:(r=Mt.hex3.exec(e),r?{r:xt(r[1]+r[1]),g:xt(r[2]+r[2]),b:xt(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function mr(e){return!!Mt.CSS_UNIT.exec(String(e))}var at=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=f$(t)),this.originalInput=t;var i=Wn(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=Ep(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=Yl(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=Yl(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=Op(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=Op(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),Zl(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),l$(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(Je(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(Je(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="#"+Zl(this.r,this.g,this.b,!1),r=0,n=Object.entries(Jl);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=Ba(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=Ba(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=Ba(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=Ba(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}(),Ha=2,Pp=.16,p$=.05,m$=.05,v$=.15,Tp=5,kp=4,b$=[{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 Ap(e){var t=e.r,r=e.g,n=e.b,i=Yl(t,r,n);return{h:i.h*360,s:i.s,v:i.v}}function Va(e){var t=e.r,r=e.g,n=e.b;return"#".concat(Zl(t,r,n,!1))}function y$(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 Mp(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-Ha*t:Math.round(e.h)+Ha*t:n=r?Math.round(e.h)+Ha*t:Math.round(e.h)-Ha*t,n<0?n+=360:n>=360&&(n-=360),n}function Rp(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-Pp*t:t===kp?n=e.s+Pp:n=e.s+p$*t,n>1&&(n=1),r&&t===Tp&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2))}function Fp(e,t,r){var n;return r?n=e.v+m$*t:n=e.v-v$*t,n>1&&(n=1),Number(n.toFixed(2))}function vr(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=Wn(e),i=Tp;i>0;i-=1){var o=Ap(n),a=Va(Wn({h:Mp(o,i,!0),s:Rp(o,i,!0),v:Fp(o,i,!0)}));r.push(a)}r.push(Va(n));for(var s=1;s<=kp;s+=1){var c=Ap(n),l=Va(Wn({h:Mp(c,s),s:Rp(c,s),v:Fp(c,s)}));r.push(l)}return t.theme==="dark"?b$.map(function(u){var f=u.index,d=u.opacity,g=Va(y$(Wn(t.backgroundColor||"#141414"),Wn(r[f]),d*100));return g}):r}var tu={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"},ru={},nu={};Object.keys(tu).forEach(function(e){ru[e]=vr(tu[e]),ru[e].primary=ru[e][5],nu[e]=vr(tu[e],{theme:"dark",backgroundColor:"#141414"}),nu[e].primary=nu[e][5]});const Lp=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function w$(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 iu={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"},qa=Object.assign(Object.assign({},iu),{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 Np(e,t){let{generateColorPalettes:r,generateNeutralColorPalettes:n}=t;const{colorSuccess:i,colorWarning:o,colorError:a,colorInfo:s,colorPrimary:c,colorBgBase:l,colorTextBase:u}=e,f=r(c),d=r(i),g=r(o),v=r(a),h=r(s),p=n(l,u);return Object.assign(Object.assign({},p),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:v[1],colorErrorBgHover:v[2],colorErrorBorder:v[3],colorErrorBorderHover:v[4],colorErrorHover:v[5],colorError:v[6],colorErrorActive:v[7],colorErrorTextHover:v[8],colorErrorText:v[9],colorErrorTextActive:v[10],colorWarningBg:g[1],colorWarningBgHover:g[2],colorWarningBorder:g[3],colorWarningBorderHover:g[4],colorWarningHover:g[4],colorWarning:g[6],colorWarningActive:g[7],colorWarningTextHover:g[8],colorWarningText:g[9],colorWarningTextActive:g[10],colorInfoBg:h[1],colorInfoBgHover:h[2],colorInfoBorder:h[3],colorInfoBorderHover:h[4],colorInfoHover:h[4],colorInfo:h[6],colorInfoActive:h[7],colorInfoTextHover:h[8],colorInfoText:h[9],colorInfoTextActive:h[10],colorBgMask:new at("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const S$=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}};function C$(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},S$(n))}const br=(e,t)=>new at(e).setAlpha(t).toRgbString(),ao=(e,t)=>new at(e).darken(t).toHexString(),x$=e=>{const t=vr(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]}},_$=(e,t)=>{const r=e||"#fff",n=t||"#000";return{colorBgBase:r,colorTextBase:n,colorText:br(n,.88),colorTextSecondary:br(n,.65),colorTextTertiary:br(n,.45),colorTextQuaternary:br(n,.25),colorFill:br(n,.15),colorFillSecondary:br(n,.06),colorFillTertiary:br(n,.04),colorFillQuaternary:br(n,.02),colorBgLayout:ao(r,4),colorBgContainer:ao(r,0),colorBgElevated:ao(r,0),colorBgSpotlight:br(n,.85),colorBorder:ao(r,15),colorBorderSecondary:ao(r,6)}};function E$(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 Ip=e=>{const t=E$(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]}};function Ga(e){const t=Object.keys(iu).map(r=>{const n=vr(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),Np(e,{generateColorPalettes:x$,generateNeutralColorPalettes:_$})),Ip(e.fontSize)),w$(e)),Lp(e)),C$(e))}function ou(e){return e>=0&&e<=255}function Ua(e,t){const{r,g:n,b:i,a:o}=new at(e).toRgb();if(o<1)return e;const{r:a,g:s,b:c}=new at(t).toRgb();for(let l=.01;l<=1;l+=.01){const u=Math.round((r-a*(1-l))/l),f=Math.round((n-s*(1-l))/l),d=Math.round((i-c*(1-l))/l);if(ou(u)&&ou(f)&&ou(d))return new at({r:u,g:f,b:d,a:Math.round(l*100)/100}).toRgbString()}return new at({r,g:n,b:i,a:1}).toRgbString()}var O$=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 $$(e){const{override:t}=e,r=O$(e,["override"]),n=Object.assign({},t);Object.keys(qa).forEach(d=>{delete n[d]});const i=Object.assign(Object.assign({},r),n),o=480,a=576,s=768,c=992,l=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:Ua(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:Ua(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:Ua(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:Ua(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:c-1,screenLG:c,screenLGMin:c,screenLGMax:l-1,screenXL:l,screenXLMin:l,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:` 0 1px 2px -2px ${new at("rgba(0, 0, 0, 0.16)").toRgbString()}, 0 3px 6px 0 ${new at("rgba(0, 0, 0, 0.12)").toRgbString()}, 0 5px 12px 4px ${new at("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)}function P$(e,t){return za.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 T$=(e,t,r,n,i)=>{const o=e/2,a=0,s=o,c=r*1/Math.sqrt(2),l=o-r*(1-1/Math.sqrt(2)),u=o-t*(1/Math.sqrt(2)),f=r*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),d=2*o-u,g=f,v=2*o-c,h=l,p=2*o-a,b=s,P=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 ${c} ${l} L ${u} ${f} A ${t} ${t} 0 0 1 ${d} ${g} L ${v} ${h} A ${r} ${r} 0 0 0 ${p} ${b} Z')`,content:'""'},"&::after":{content:'""',position:"absolute",width:P,height:P,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"}}},tn=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),k$=()=>({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"}}),A$=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"}}}),M$=(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"}}}}},Ka=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),R$=e=>({"&:focus-visible":Object.assign({},Ka(e))}),jp="anticon",F$=(e,t)=>t||(e?`ant-${e}`:"ant"),nt=m.createContext({getPrefixCls:F$,iconPrefixCls:jp});function Hn(e,t,r){return n=>{const[i,o,a]=Ya(),{getPrefixCls:s,iconPrefixCls:c}=$.useContext(nt),l=s();return Tl({theme:i,token:o,hashId:a,path:["Shared",l]},()=>[{"&":A$(o)}]),[Tl({theme:i,token:o,hashId:a,path:[e,n,c]},()=>{const{token:u,flush:f}=N$(o),d=typeof r=="function"?r(u):r,g=Object.assign(Object.assign({},d),o[e]),v=`.${n}`,h=Rr(u,{componentCls:v,prefixCls:n,iconCls:`.${c}`,antCls:`.${l}`},g),p=t(h,{hashId:a,prefixCls:n,rootPrefixCls:l,iconPrefixCls:c,overrideComponentToken:o[e]});return f(e,g),[M$(o,n),p]}),a]}}const Dp=typeof CSSINJS_STATISTIC<"u";let au=!0;function Rr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!Dp)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 L$(){}function N$(e){let t,r=e,n=L$;return Dp&&(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}}const I$=Jg(Ga),Xa={token:qa,hashed:!0},zp=$.createContext(Xa);function Ya(){const{token:e,hashed:t,theme:r,components:n}=$.useContext(zp),i=`${n$}-${t||""}`,o=r||I$,[a,s]=HE(o,[qa,e],{salt:i,override:Object.assign({override:e},n),formatToken:$$});return[o,a,t?s:""]}const j$=`-ant-${Date.now()}-${Math.random()}`;function D$(e,t){const r={},n=(a,s)=>{let c=a.clone();return c=(s==null?void 0:s(c))||c,c.toRgbString()},i=(a,s)=>{const c=new at(a),l=vr(c.toRgbString());r[`${s}-color`]=n(c),r[`${s}-color-disabled`]=l[1],r[`${s}-color-hover`]=l[4],r[`${s}-color-active`]=l[6],r[`${s}-color-outline`]=c.clone().setAlpha(.2).toRgbString(),r[`${s}-color-deprecated-bg`]=l[0],r[`${s}-color-deprecated-border`]=l[2]};if(t.primaryColor){i(t.primaryColor,"primary");const a=new at(t.primaryColor),s=vr(a.toRgbString());s.forEach((l,u)=>{r[`primary-${u+1}`]=l}),r["primary-color-deprecated-l-35"]=n(a,l=>l.lighten(35)),r["primary-color-deprecated-l-20"]=n(a,l=>l.lighten(20)),r["primary-color-deprecated-t-20"]=n(a,l=>l.tint(20)),r["primary-color-deprecated-t-50"]=n(a,l=>l.tint(50)),r["primary-color-deprecated-f-12"]=n(a,l=>l.setAlpha(l.getAlpha()*.12));const c=new at(s[0]);r["primary-color-active-deprecated-f-30"]=n(c,l=>l.setAlpha(l.getAlpha()*.3)),r["primary-color-active-deprecated-d-02"]=n(c,l=>l.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 z$(e,t){const r=D$(e,t);bt()&&Nn(r,`${j$}-dynamic-theme`)}const su=m.createContext(!1),B$=e=>{let{children:t,disabled:r}=e;const n=m.useContext(su);return m.createElement(su.Provider,{value:r??n},t)},Za=su,cu=m.createContext(void 0),W$=e=>{let{children:t,size:r}=e;const n=m.useContext(cu);return m.createElement(cu.Provider,{value:r||n},t)},so=cu;function H$(){const e=$.useContext(Za),t=$.useContext(so);return{componentDisabled:e,componentSize:t}}function V$(e,t){const r=e||{},n=r.inherit===!1||!t?Xa:t;return vl(()=>{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,c)=>{const l=a[c];return!$E(s,l,!0)}))}const q$=e=>{const[t,r]=Ya();return Tl({theme:t,token:r,hashId:"",path:["ant-design-icons",e]},()=>[{[`.${e}`]:Object.assign(Object.assign({},k$()),{[`.${e} .${e}-icon`]:{display:"block"}})}])};var G$=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 U$=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select"],K$="ant";let Bp;function X$(){return Bp||K$}const Y$=e=>{let{prefixCls:t,iconPrefixCls:r,theme:n}=e;t!==void 0&&(Bp=t),n&&z$(X$(),n)},Z$=e=>{const{children:t,csp:r,autoInsertSpaceInButton:n,form:i,locale:o,componentSize:a,direction:s,space:c,virtual:l,dropdownMatchSelectWidth:u,legacyLocale:f,parentContext:d,iconPrefixCls:g,theme:v,componentDisabled:h}=e,p=m.useCallback((w,x)=>{const{prefixCls:T}=e;if(x)return x;const F=T||d.getPrefixCls("");return w?`${F}-${w}`:F},[d.getPrefixCls,e.prefixCls]),b=g||d.iconPrefixCls||jp,P=b!==d.iconPrefixCls,E=r||d.csp,O=q$(b),S=V$(v,d.theme),y={csp:E,autoInsertSpaceInButton:n,locale:o||f,direction:s,space:c,virtual:l,dropdownMatchSelectWidth:u,getPrefixCls:p,iconPrefixCls:b,theme:S},_=Object.assign({},d);Object.keys(y).forEach(w=>{y[w]!==void 0&&(_[w]=y[w])}),U$.forEach(w=>{const x=e[w];x&&(_[w]=x)});const M=vl(()=>_,_,(w,x)=>{const T=Object.keys(w),F=Object.keys(x);return T.length!==F.length||T.some(L=>w[L]!==x[L])}),R=m.useMemo(()=>({prefixCls:b,csp:E}),[b,E]);let A=P?O(t):t;const I=m.useMemo(()=>{var w,x,T;return io({},((w=Ul.Form)===null||w===void 0?void 0:w.defaultValidateMessages)||{},((T=(x=M.locale)===null||x===void 0?void 0:x.Form)===null||T===void 0?void 0:T.defaultValidateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[M,i==null?void 0:i.validateMessages]);Object.keys(I).length>0&&(A=m.createElement(yp,{validateMessages:I},t)),o&&(A=m.createElement(r$,{locale:o,_ANT_MARK__:t$},A)),(b||E)&&(A=m.createElement(Ml.Provider,{value:R},A)),a&&(A=m.createElement(W$,{size:a},A));const k=m.useMemo(()=>{const w=S||{},{algorithm:x,token:T}=w,F=G$(w,["algorithm","token"]),L=x&&(!Array.isArray(x)||x.length>0)?Jg(x):void 0;return Object.assign(Object.assign({},F),{theme:L,token:Object.assign(Object.assign({},qa),T)})},[S]);return v&&(A=m.createElement(zp.Provider,{value:k},A)),h!==void 0&&(A=m.createElement(B$,{disabled:h},A)),m.createElement(nt.Provider,{value:M},A)},Vn=e=>{const t=m.useContext(nt),r=m.useContext(_p);return m.createElement(Z$,Object.assign({parentContext:t,legacyLocale:r},e))};Vn.ConfigContext=nt,Vn.SizeContext=so,Vn.config=Y$,Vn.useConfig=H$,Object.defineProperty(Vn,"SizeContext",{get:()=>so});const J$=Vn;var Wp=function(t){return+setTimeout(t,16)},Hp=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(Wp=function(t){return window.requestAnimationFrame(t)},Hp=function(t){return window.cancelAnimationFrame(t)});var Vp=0,lu=new Map;function qp(e){lu.delete(e)}var co=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Vp+=1;var n=Vp;function i(o){if(o===0)qp(n),t();else{var a=Wp(function(){i(o-1)});lu.set(n,a)}}return i(r),n};co.cancel=function(e){var t=lu.get(e);return qp(t),Hp(t)};function Q$(e,t){rr(e,"[@ant-design/icons] ".concat(t))}function Gp(e){return Ae(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Ae(e.icon)==="object"||typeof e.icon=="function")}function Up(){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 uu(e,t,r){return r?$.createElement(e.tag,D(D({key:t},Up(e.attrs)),r),(e.children||[]).map(function(n,i){return uu(n,"".concat(t,"-").concat(e.tag,"-").concat(i))})):$.createElement(e.tag,D({key:t},Up(e.attrs)),(e.children||[]).map(function(n,i){return uu(n,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function Kp(e){return vr(e)[0]}function Xp(e){return e?Array.isArray(e)?e:[e]:[]}var eP=` .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); } } `,tP=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:eP,r=$.useContext(Ml),n=r.csp,i=r.prefixCls,o=t;i&&(o=o.replace(/anticon/g,i)),$.useEffect(function(){Nn(o,"@ant-design-icons",{prepend:!0,csp:n})},[])},rP=["icon","className","onClick","style","primaryColor","secondaryColor"],lo={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function nP(e){var t=e.primaryColor,r=e.secondaryColor;lo.primaryColor=t,lo.secondaryColor=r||Kp(t),lo.calculated=!!r}function iP(){return D({},lo)}var Ja=function(t){var r=t.icon,n=t.className,i=t.onClick,o=t.style,a=t.primaryColor,s=t.secondaryColor,c=nr(t,rP),l=lo;if(a&&(l={primaryColor:a,secondaryColor:s||Kp(a)}),tP(),Q$(Gp(r),"icon should be icon definiton, but got ".concat(r)),!Gp(r))return null;var u=r;return u&&typeof u.icon=="function"&&(u=D(D({},u),{},{icon:u.icon(l.primaryColor,l.secondaryColor)})),uu(u.icon,"svg-".concat(u.name),D({className:n,onClick:i,style:o,"data-icon":u.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c))};Ja.displayName="IconReact",Ja.getTwoToneColors=iP,Ja.setTwoToneColors=nP;const fu=Ja;function Yp(e){var t=Xp(e),r=K(t,2),n=r[0],i=r[1];return fu.setTwoToneColors({primaryColor:n,secondaryColor:i})}function oP(){var e=fu.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var aP=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Yp("#1890ff");var Qa=m.forwardRef(function(e,t){var r,n=e.className,i=e.icon,o=e.spin,a=e.rotate,s=e.tabIndex,c=e.onClick,l=e.twoToneColor,u=nr(e,aP),f=m.useContext(Ml),d=f.prefixCls,g=d===void 0?"anticon":d,v=f.rootClassName,h=Z(v,g,(r={},oe(r,"".concat(g,"-").concat(i.name),!!i.name),oe(r,"".concat(g,"-spin"),!!o||i.name==="loading"),r),n),p=s;p===void 0&&c&&(p=-1);var b=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,P=Xp(l),E=K(P,2),O=E[0],S=E[1];return m.createElement("span",D(D({role:"img","aria-label":i.name},u),{},{ref:t,tabIndex:p,onClick:c,className:h}),m.createElement(fu,{icon:i,primaryColor:O,secondaryColor:S,style:b}))});Qa.displayName="AntdIcon",Qa.getTwoToneColor=oP,Qa.setTwoToneColor=Yp;const sP=Qa;function Zp(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 cP(e,t){var r={animationend:Zp("Animation","AnimationEnd"),transitionend:Zp("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var lP=cP(bt(),typeof window<"u"?window:{}),Jp={};if(bt()){var uP=document.createElement("div");Jp=uP.style}var es={};function Qp(e){if(es[e])return es[e];var t=lP[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 Jp)return es[e]=t[o],es[e]}return""}var em=Qp("animationend"),tm=Qp("transitionend"),rm=!!(em&&tm),nm=em||"animationend",im=tm||"transitionend";function om(e,t){if(!e)return null;if(Ae(e)==="object"){var r=t.replace(/-\w/g,function(n){return n[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(t)}var qn="none",ts="appear",rs="enter",ns="leave",am="none",yr="prepare",Gn="start",Un="active",du="end";function Kn(e){var t=m.useRef(!1),r=m.useState(e),n=K(r,2),i=n[0],o=n[1];m.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function a(s,c){c&&t.current||o(s)}return[i,a]}const fP=function(){var e=m.useRef(null);function t(){co.cancel(e.current)}function r(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var o=co(function(){i<=1?n({isCanceled:function(){return o!==e.current}}):r(n,i-1)});e.current=o}return m.useEffect(function(){return function(){t()}},[]),[r,t]};var sm=bt()?$.useLayoutEffect:$.useEffect,cm=[yr,Gn,Un,du],lm=!1,dP=!0;function um(e){return e===Un||e===du}const hP=function(e,t){var r=Kn(am),n=K(r,2),i=n[0],o=n[1],a=fP(),s=K(a,2),c=s[0],l=s[1];function u(){o(yr,!0)}return sm(function(){if(i!==am&&i!==du){var f=cm.indexOf(i),d=cm[f+1],g=t(i);g===lm?o(d,!0):c(function(v){function h(){v.isCanceled()||o(d,!0)}g===!0?h():Promise.resolve(g).then(h)})}},[e,i]),m.useEffect(function(){return function(){l()}},[]),[u,i]},gP=function(e){var t=$.useRef(),r=$.useRef(e);r.current=e;var n=m.useCallback(function(a){r.current(a)},[]);function i(a){a&&(a.removeEventListener(im,n),a.removeEventListener(nm,n))}function o(a){t.current&&t.current!==a&&i(t.current),a&&a!==t.current&&(a.addEventListener(im,n),a.addEventListener(nm,n),t.current=a)}return m.useEffect(function(){return function(){i(t.current)}},[]),[o,i]};function pP(e,t,r,n){var i=n.motionEnter,o=i===void 0?!0:i,a=n.motionAppear,s=a===void 0?!0:a,c=n.motionLeave,l=c===void 0?!0:c,u=n.motionDeadline,f=n.motionLeaveImmediately,d=n.onAppearPrepare,g=n.onEnterPrepare,v=n.onLeavePrepare,h=n.onAppearStart,p=n.onEnterStart,b=n.onLeaveStart,P=n.onAppearActive,E=n.onEnterActive,O=n.onLeaveActive,S=n.onAppearEnd,y=n.onEnterEnd,_=n.onLeaveEnd,M=n.onVisibleChanged,R=Kn(),A=K(R,2),I=A[0],k=A[1],w=Kn(qn),x=K(w,2),T=x[0],F=x[1],L=Kn(null),j=K(L,2),z=j[0],W=j[1],q=$.useRef(!1),H=$.useRef(null);function B(){return r()}var le=$.useRef(!1);function te(se){var re=B();if(!(se&&!se.deadline&&se.target!==re)){var we=le.current,et;T===ts&&we?et=S==null?void 0:S(re,se):T===rs&&we?et=y==null?void 0:y(re,se):T===ns&&we&&(et=_==null?void 0:_(re,se)),T!==qn&&we&&et!==!1&&(F(qn,!0),W(null,!0))}}var qe=gP(te),Oe=K(qe,1),ke=Oe[0],ee=m.useMemo(function(){var se,re,we;switch(T){case ts:return se={},oe(se,yr,d),oe(se,Gn,h),oe(se,Un,P),se;case rs:return re={},oe(re,yr,g),oe(re,Gn,p),oe(re,Un,E),re;case ns:return we={},oe(we,yr,v),oe(we,Gn,b),oe(we,Un,O),we;default:return{}}},[T]),be=hP(T,function(se){if(se===yr){var re=ee[yr];return re?re(B()):lm}if(X in ee){var we;W(((we=ee[X])===null||we===void 0?void 0:we.call(ee,B(),null))||null)}return X===Un&&(ke(B()),u>0&&(clearTimeout(H.current),H.current=setTimeout(function(){te({deadline:!0})},u))),dP}),Me=K(be,2),Ge=Me[0],X=Me[1],ue=um(X);le.current=ue,sm(function(){k(t);var se=q.current;if(q.current=!0,!!e){var re;!se&&t&&s&&(re=ts),se&&t&&o&&(re=rs),(se&&!t&&l||!se&&f&&!t&&l)&&(re=ns),re&&(F(re),Ge())}},[t]),$.useEffect(function(){(T===ts&&!s||T===rs&&!o||T===ns&&!l)&&F(qn)},[s,o,l]),$.useEffect(function(){return function(){q.current=!1,clearTimeout(H.current)}},[]);var Ie=m.useRef(!1);$.useEffect(function(){I&&(Ie.current=!0),I!==void 0&&T===qn&&((Ie.current||I)&&(M==null||M(I)),Ie.current=!0)},[I,T]);var je=z;return ee[yr]&&X===Gn&&(je=D({transition:"none"},je)),[T,X,je,I??t]}var mP=function(e){$a(r,e);var t=ka(r);function r(){return er(this,r),t.apply(this,arguments)}return tr(r,[{key:"render",value:function(){return this.props.children}}]),r}(m.Component);function vP(e){var t=e;Ae(e)==="object"&&(t=e.transitionSupport);function r(i){return!!(i.motionName&&t)}var n=m.forwardRef(function(i,o){var a=i.visible,s=a===void 0?!0:a,c=i.removeOnLeave,l=c===void 0?!0:c,u=i.forceRender,f=i.children,d=i.motionName,g=i.leavedClassName,v=i.eventProps,h=r(i),p=$.useRef(),b=$.useRef();function P(){try{return p.current instanceof HTMLElement?p.current:yl(b.current)}catch{return null}}var E=pP(h,s,P,i),O=K(E,4),S=O[0],y=O[1],_=O[2],M=O[3],R=m.useRef(M);M&&(R.current=!0);var A=m.useCallback(function(L){p.current=L,bl(o,L)},[o]),I,k=D(D({},v),{},{visible:s});if(!f)I=null;else if(S===qn||!r(i))M?I=f(D({},k),A):!l&&R.current&&g?I=f(D(D({},k),{},{className:g}),A):u||!l&&!g?I=f(D(D({},k),{},{style:{display:"none"}}),A):I=null;else{var w,x;y===yr?x="prepare":um(y)?x="active":y===Gn&&(x="start"),I=f(D(D({},k),{},{className:Z(om(d,S),(w={},oe(w,om(d,"".concat(S,"-").concat(x)),x),oe(w,d,typeof d=="string"),w)),style:_}),A)}if(m.isValidElement(I)&&Yi(I)){var T=I,F=T.ref;F||(I=m.cloneElement(I,{ref:A}))}return m.createElement(mP,{ref:b},I)});return n.displayName="CSSMotion",n}const uo=vP(rm);var hu="add",gu="keep",pu="remove",mu="removed";function bP(e){var t;return e&&Ae(e)==="object"&&"key"in e?t=e:t={key:e},D(D({},t),{},{key:String(t.key)})}function vu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(bP)}function yP(){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=vu(e),a=vu(t);o.forEach(function(l){for(var u=!1,f=n;f<i;f+=1){var d=a[f];if(d.key===l.key){n<f&&(r=r.concat(a.slice(n,f).map(function(g){return D(D({},g),{},{status:hu})})),n=f),r.push(D(D({},d),{},{status:gu})),n+=1,u=!0;break}}u||r.push(D(D({},l),{},{status:pu}))}),n<i&&(r=r.concat(a.slice(n).map(function(l){return D(D({},l),{},{status:hu})})));var s={};r.forEach(function(l){var u=l.key;s[u]=(s[u]||0)+1});var c=Object.keys(s).filter(function(l){return s[l]>1});return c.forEach(function(l){r=r.filter(function(u){var f=u.key,d=u.status;return f!==l||d!==pu}),r.forEach(function(u){u.key===l&&(u.status=gu)})}),r}var wP=["component","children","onVisibleChanged","onAllRemoved"],SP=["status"],CP=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function xP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:uo,r=function(n){$a(o,n);var i=ka(o);function o(){var a;er(this,o);for(var s=arguments.length,c=new Array(s),l=0;l<s;l++)c[l]=arguments[l];return a=i.call.apply(i,[this].concat(c)),oe(Ta(a),"state",{keyEntities:[]}),oe(Ta(a),"removeKey",function(u){var f=a.state.keyEntities,d=f.map(function(g){return g.key!==u?g:D(D({},g),{},{status:mu})});return a.setState({keyEntities:d}),d.filter(function(g){var v=g.status;return v!==mu}).length}),a}return tr(o,[{key:"render",value:function(){var s=this,c=this.state.keyEntities,l=this.props,u=l.component,f=l.children,d=l.onVisibleChanged,g=l.onAllRemoved,v=nr(l,wP),h=u||m.Fragment,p={};return CP.forEach(function(b){p[b]=v[b],delete v[b]}),delete v.keys,m.createElement(h,v,c.map(function(b){var P=b.status,E=nr(b,SP),O=P===hu||P===gu;return m.createElement(t,Vt({},p,{key:E.key,visible:O,eventProps:E,onVisibleChanged:function(y){if(d==null||d(y,{key:E.key}),!y){var _=s.removeKey(E.key);_===0&&g&&g()}}}),f)}))}}],[{key:"getDerivedStateFromProps",value:function(s,c){var l=s.keys,u=c.keyEntities,f=vu(l),d=yP(u,f);return{keyEntities:d.filter(function(g){var v=u.find(function(h){var p=h.key;return g.key===p});return!(v&&v.status===mu&&g.status===pu)})}}}]),o}(m.Component);return oe(r,"defaultProps",{component:"div"}),r}xP(rm);function _P(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:bu}=m;function fm(e){return e&&bu(e)&&e.type===m.Fragment}function EP(e,t,r){return bu(e)?m.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t}function is(e,t){return EP(e,e,t)}function wr(e){var t=m.useRef();t.current=e;var r=m.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 OP={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 $P=OP;var dm=function(t,r){return m.createElement(sP,D(D({},t),{},{ref:r,icon:$P}))};dm.displayName="LoadingOutlined";const hm=m.forwardRef(dm);var fo=D({},bv),PP=fo.version,TP=fo.render,kP=fo.unmountComponentAtNode,os;try{var AP=Number((PP||"").split(".")[0]);AP>=18&&(os=fo.createRoot)}catch{}function gm(e){var t=fo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Ae(t)==="object"&&(t.usingClientEntryPoint=e)}var as="__rc_react_root__";function MP(e,t){gm(!0);var r=t[as]||os(t);gm(!1),r.render(e),t[as]=r}function RP(e,t){TP(e,t)}function FP(e,t){if(os){MP(e,t);return}RP(e,t)}function LP(e){return yu.apply(this,arguments)}function yu(){return yu=Dn(yt().mark(function e(t){return yt().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.resolve().then(function(){var i;(i=t[as])===null||i===void 0||i.unmount(),delete t[as]}));case 1:case"end":return n.stop()}},e)})),yu.apply(this,arguments)}function NP(e){kP(e)}function IP(e){return wu.apply(this,arguments)}function wu(){return wu=Dn(yt().mark(function e(t){return yt().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(os===void 0){n.next=2;break}return n.abrupt("return",LP(t));case 2:NP(t);case 3:case"end":return n.stop()}},e)})),wu.apply(this,arguments)}const jP=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},DP=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"}}}}},pm=Hn("Space",e=>[DP(e),jP(e)]);var mm=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 Su=m.createContext(null),zP=(e,t)=>{const r=m.useContext(Su),n=m.useMemo(()=>{if(!r)return"";const{compactDirection:i,isFirstItem:o,isLastItem:a}=r,s=i==="vertical"?"-vertical-":"-";return Z({[`${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}},BP=e=>{var{children:t}=e,r=mm(e,["children"]);return m.createElement(Su.Provider,{value:r},t)},WP=e=>{const{getPrefixCls:t,direction:r}=m.useContext(nt),{size:n="middle",direction:i,block:o,prefixCls:a,className:s,rootClassName:c,children:l}=e,u=mm(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=t("space-compact",a),[d,g]=pm(f),v=Z(f,g,{[`${f}-rtl`]:r==="rtl",[`${f}-block`]:o,[`${f}-vertical`]:i==="vertical"},s,c),h=m.useContext(Su),p=Fn(l),b=m.useMemo(()=>p.map((P,E)=>{const O=P&&P.key||`${f}-item-${E}`;return m.createElement(BP,{key:O,compactSize:n,compactDirection:i,isFirstItem:E===0&&(!h||(h==null?void 0:h.isFirstItem)),isLastItem:E===p.length-1&&(!h||(h==null?void 0:h.isLastItem))},P)}),[n,p,h]);return p.length===0?null:d(m.createElement("div",Object.assign({className:v},u),b))},vm=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},HP=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}}}}},VP=Hn("Wave",e=>[HP(e)]);function qP(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 Cu(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&qP(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function GP(e){const{borderTopColor:t,borderColor:r,backgroundColor:n}=getComputedStyle(e);return Cu(t)?t:Cu(r)?r:Cu(n)?n:null}function xu(e){return Number.isNaN(e)?0:e}const UP=e=>{const{className:t,target:r}=e,n=m.useRef(null),[i,o]=m.useState(null),[a,s]=m.useState([]),[c,l]=m.useState(0),[u,f]=m.useState(0),[d,g]=m.useState(0),[v,h]=m.useState(0),[p,b]=m.useState(!1),P={left:c,top:u,width:d,height:v,borderRadius:a.map(O=>`${O}px`).join(" ")};i&&(P["--wave-color"]=i);function E(){const O=getComputedStyle(r);o(GP(r));const S=O.position==="static",{borderLeftWidth:y,borderTopWidth:_}=O;l(S?r.offsetLeft:xu(-parseFloat(y))),f(S?r.offsetTop:xu(-parseFloat(_))),g(r.offsetWidth),h(r.offsetHeight);const{borderTopLeftRadius:M,borderTopRightRadius:R,borderBottomLeftRadius:A,borderBottomRightRadius:I}=O;s([M,R,I,A].map(k=>xu(parseFloat(k))))}return m.useEffect(()=>{if(r){const O=co(()=>{E(),b(!0)});let S;return typeof ResizeObserver<"u"&&(S=new ResizeObserver(E),S.observe(r)),()=>{co.cancel(O),S==null||S.disconnect()}}},[]),p?m.createElement(uo,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(O,S)=>{var y;if(S.deadline||S.propertyName==="opacity"){const _=(y=n.current)===null||y===void 0?void 0:y.parentElement;IP(_).then(()=>{var M;(M=_.parentElement)===null||M===void 0||M.removeChild(_)})}return!1}},O=>{let{className:S}=O;return m.createElement("div",{ref:n,className:Z(t,S),style:P})}):null};function KP(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),FP(m.createElement(UP,{target:e,className:t}),r)}function XP(e,t){function r(){const n=e.current;KP(n,t)}return r}const YP=e=>{const{children:t,disabled:r}=e,{getPrefixCls:n}=$.useContext(nt),i=$.useRef(null),o=n("wave"),[,a]=VP(o),s=XP(i,Z(o,a));if($.useEffect(()=>{const l=i.current;if(!l||l.nodeType!==1||r)return;const u=f=>{f.target.tagName==="INPUT"||!vm(f.target)||!l.getAttribute||l.getAttribute("disabled")||l.disabled||l.className.includes("disabled")||l.className.includes("-leave")||s()};return l.addEventListener("click",u,!0),()=>{l.removeEventListener("click",u,!0)}},[r]),!$.isValidElement(t))return t??null;const c=Yi(t)?Xi(t.ref,i):i;return is(t,{ref:c})};var ZP=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 bm=m.createContext(void 0),JP=e=>{const{getPrefixCls:t,direction:r}=m.useContext(nt),{prefixCls:n,size:i,className:o}=e,a=ZP(e,["prefixCls","size","className"]),s=t("btn-group",n),[,,c]=Ya();let l="";switch(i){case"large":l="lg";break;case"small":l="sm";break}const u=Z(s,{[`${s}-${l}`]:l,[`${s}-rtl`]:r==="rtl"},o,c);return m.createElement(bm.Provider,{value:i},m.createElement("div",Object.assign({},a,{className:u})))},ym=/^[\u4e00-\u9fa5]{2}$/,_u=ym.test.bind(ym);function QP(e){return typeof e=="string"}function Eu(e){return e==="text"||e==="link"}function e2(e,t){if(e==null)return;const r=t?" ":"";return typeof e!="string"&&typeof e!="number"&&QP(e.type)&&_u(e.props.children)?is(e,{children:e.props.children.split("").join(r)}):typeof e=="string"?_u(e)?$.createElement("span",null,e.split("").join(r)):$.createElement("span",null,e):fm(e)?$.createElement("span",null,e):e}function t2(e,t){let r=!1;const n=[];return $.Children.forEach(e,i=>{const o=typeof i,a=o==="string"||o==="number";if(r&&a){const s=n.length-1,c=n[s];n[s]=`${c}${i}`}else n.push(i);r=a}),$.Children.map(n,i=>e2(i,t))}const Ou=()=>({width:0,opacity:0,transform:"scale(0)"}),$u=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),r2=e=>{let{prefixCls:t,loading:r,existIcon:n}=e;const i=!!r;return n?$.createElement("span",{className:`${t}-loading-icon`},$.createElement(hm,null)):$.createElement(uo,{visible:i,motionName:`${t}-loading-icon-motion`,removeOnLeave:!0,onAppearStart:Ou,onAppearActive:$u,onEnterStart:Ou,onEnterActive:$u,onLeaveStart:$u,onLeaveActive:Ou},(o,a)=>{let{className:s,style:c}=o;return $.createElement("span",{className:`${t}-loading-icon`,style:c,ref:a},$.createElement(hm,{className:s}))})},wm=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),n2=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}},wm(`${t}-primary`,i),wm(`${t}-danger`,o)]}};function i2(e,t,r){const{focusElCls:n,focus:i,borderElCls:o}=r,a=o?"> *":"",s=["hover",i?"focus":null,"active"].filter(Boolean).map(c=>`&:${c} ${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 o2(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 a2(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({},i2(e,n,t)),o2(r,n,t))}}function s2(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function c2(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 l2(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},s2(e,t)),c2(e.componentCls,t))}}const u2=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({},R$(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:'""'}}}}}}},Sr=(e,t)=>({"&:not(:disabled)":{"&:hover":e,"&:active":t}}),f2=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),d2=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"}),ss=(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"},Sr(Object.assign({backgroundColor:"transparent"},o),Object.assign({backgroundColor:"transparent"},a))),{"&:disabled":{cursor:"not-allowed",color:n||void 0,borderColor:i||void 0}})}),Tu=e=>({"&:disabled":Object.assign({},Pu(e))}),Sm=e=>Object.assign({},Tu(e)),cs=e=>({"&:disabled":{cursor:"not-allowed",color:e.colorTextDisabled}}),Cm=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Sm(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),Sr({color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),ss(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},Sr({color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),ss(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),Tu(e))}),h2=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Sm(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),Sr({color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),ss(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}`},Sr({backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),ss(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Tu(e))}),g2=e=>Object.assign(Object.assign({},Cm(e)),{borderStyle:"dashed"}),p2=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},Sr({color:e.colorLinkHover},{color:e.colorLinkActive})),cs(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Sr({color:e.colorErrorHover},{color:e.colorErrorActive})),cs(e))}),m2=e=>Object.assign(Object.assign(Object.assign({},Sr({color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),cs(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},cs(e)),Sr({color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),v2=e=>Object.assign(Object.assign({},Pu(e)),{[`&${e.componentCls}:hover`]:Object.assign({},Pu(e))}),b2=e=>{const{componentCls:t}=e;return{[`${t}-default`]:Cm(e),[`${t}-primary`]:h2(e),[`${t}-dashed`]:g2(e),[`${t}-link`]:p2(e),[`${t}-text`]:m2(e),[`${t}-disabled`]:v2(e)}},ku=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:c,buttonPaddingHorizontal:l}=e,u=Math.max(0,(i-o*a)/2-s),f=l-s,d=`${r}-icon-only`;return[{[`${r}${t}`]:{fontSize:o,height:i,padding:`${u}px ${f}px`,borderRadius:c,[`&${d}`]:{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(${d}) ${r}-loading-icon > ${n}`]:{marginInlineEnd:e.marginXS}}},{[`${r}${r}-circle${t}`]:f2(e)},{[`${r}${r}-round${t}`]:d2(e)}]},y2=e=>ku(e),w2=e=>{const t=Rr(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM});return ku(t,`${e.componentCls}-sm`)},S2=e=>{const t=Rr(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG});return ku(t,`${e.componentCls}-lg`)},C2=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},x2=Hn("Button",e=>{const{controlTmpOutline:t,paddingContentHorizontal:r}=e,n=Rr(e,{colorOutlineDefault:t,buttonPaddingHorizontal:r});return[u2(n),w2(n),y2(n),S2(n),C2(n),b2(n),n2(n),a2(e),l2(e)]});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};function E2(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 O2=(e,t)=>{const{loading:r=!1,prefixCls:n,type:i="default",danger:o,shape:a="default",size:s,disabled:c,className:l,rootClassName:u,children:f,icon:d,ghost:g=!1,block:v=!1,htmlType:h="button"}=e,p=_2(e,["loading","prefixCls","type","danger","shape","size","disabled","className","rootClassName","children","icon","ghost","block","htmlType"]),{getPrefixCls:b,autoInsertSpaceInButton:P,direction:E}=m.useContext(nt),O=b("btn",n),[S,y]=x2(O),_=m.useContext(so),M=m.useContext(Za),R=c??M,A=m.useContext(bm),I=m.useMemo(()=>E2(r),[r]),[k,w]=m.useState(I.loading),[x,T]=m.useState(!1),F=t||m.createRef(),L=()=>m.Children.count(f)===1&&!d&&!Eu(i),j=()=>{if(!F||!F.current||P===!1)return;const X=F.current.textContent;L()&&_u(X)?x||T(!0):x&&T(!1)};m.useEffect(()=>{let X=null;I.delay>0?X=window.setTimeout(()=>{X=null,w(!0)},I.delay):w(I.loading);function ue(){X&&(window.clearTimeout(X),X=null)}return ue},[I]),m.useEffect(j,[F]);const z=X=>{const{onClick:ue}=e;if(k||R){X.preventDefault();return}ue==null||ue(X)},W=P!==!1,{compactSize:q,compactItemClassnames:H}=zP(O,E),B={large:"lg",small:"sm",middle:void 0},le=q||A||s||_,te=le&&B[le]||"",qe=k?"loading":d,Oe=Ig(p,["navigate"]),ke=Oe.href!==void 0&&R,ee=Z(O,y,{[`${O}-${a}`]:a!=="default"&&a,[`${O}-${i}`]:i,[`${O}-${te}`]:te,[`${O}-icon-only`]:!f&&f!==0&&!!qe,[`${O}-background-ghost`]:g&&!Eu(i),[`${O}-loading`]:k,[`${O}-two-chinese-chars`]:x&&W&&!k,[`${O}-block`]:v,[`${O}-dangerous`]:!!o,[`${O}-rtl`]:E==="rtl",[`${O}-disabled`]:ke},H,l,u),be=d&&!k?d:m.createElement(r2,{existIcon:!!d,prefixCls:O,loading:!!k}),Me=f||f===0?t2(f,L()&&W):null;if(Oe.href!==void 0)return S(m.createElement("a",Object.assign({},Oe,{className:ee,onClick:z,ref:F}),be,Me));let Ge=m.createElement("button",Object.assign({},p,{type:h,className:ee,onClick:z,disabled:R,ref:F}),be,Me);return Eu(i)||(Ge=m.createElement(YP,{disabled:!!k},Ge)),S(Ge)},Au=m.forwardRef(O2);Au.Group=JP,Au.__ANT_BUTTON=!0;const Xn=Au,$2=(e,t,r)=>r!==void 0?r:`${e}-${t}`;var xm=m.createContext(null),st=bt()?m.useLayoutEffect:m.useEffect,_m=function(t,r){var n=m.useRef(!0);st(function(){if(!n.current)return t()},r),st(function(){return n.current=!1,function(){n.current=!0}},[])},Em=[];function P2(e,t){var r=m.useState(function(){if(!bt())return null;var v=document.createElement("div");return v}),n=K(r,1),i=n[0],o=m.useRef(!1),a=m.useContext(xm),s=m.useState(Em),c=K(s,2),l=c[0],u=c[1],f=a||(o.current?void 0:function(v){u(function(h){var p=[v].concat(J(h));return p})});function d(){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 st(function(){return e?a?a(d):d():g(),g},[e]),st(function(){l.length&&(l.forEach(function(v){return v()}),u(Em))},[l]),[i,f]}var Mu;function T2(e){if(typeof document>"u")return 0;if(e||Mu===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),Mu=i-o}return Mu}function k2(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var A2="rc-util-locker-".concat(Date.now()),Om=0;function M2(e){var t=!!e,r=m.useState(function(){return Om+=1,"".concat(A2,"_").concat(Om)}),n=K(r,1),i=n[0];st(function(){if(t){var o=T2(),a=k2();Nn(` html body { overflow-y: hidden; `.concat(a?"width: calc(100% - ".concat(o,"px);"):"",` }`),i)}else La(i);return function(){La(i)}},[t,i])}var $m=!1;function R2(e){return typeof e=="boolean"&&($m=e),$m}var Pm=function(t){return t===!1?!1:!bt()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},Tm=m.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,c=m.useState(r),l=K(c,2),u=l[0],f=l[1],d=u||r;m.useEffect(function(){(a||r)&&f(r)},[r,a]);var g=m.useState(function(){return Pm(i)}),v=K(g,2),h=v[0],p=v[1];m.useEffect(function(){var I=Pm(i);p(I??null)});var b=P2(d&&!h),P=K(b,2),E=P[0],O=P[1],S=h??E;M2(n&&r&&bt()&&(S===E||S===document.body));var y=null;if(s&&Yi(s)&&t){var _=s;y=_.ref}var M=Rg(y,t);if(!d||!bt()||h===void 0)return null;var R=S===!1||R2(),A=s;return t&&(A=m.cloneElement(s,{ref:M})),m.createElement(xm.Provider,{value:O},R?A:fe.createPortal(A,S))});function F2(){var e=D({},m);return e.useId}var km=0;function L2(e){var t=m.useState("ssr-id"),r=K(t,2),n=r[0],i=r[1],o=F2(),a=o==null?void 0:o();return m.useEffect(function(){if(!o){var s=km;km+=1,i("rc_unique_".concat(s))}},[]),e||a||n}const Am=m.createContext({}),N2=()=>bt()&&window.document.documentElement;let ls;const I2=()=>{if(!N2())return!1;if(ls!==void 0)return ls;const e=document.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e),ls=e.scrollHeight===1,document.body.removeChild(e),ls},j2=e=>({animationDuration:e,animationFillMode:"both"}),D2=e=>({animationDuration:e,animationFillMode:"both"}),z2=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({},j2(n)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},D2(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"}}},B2=new dt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),W2=new dt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Mm=new dt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Rm=new dt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),H2=new dt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),V2=new dt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),q2=new dt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),G2=new dt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),U2=new dt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),K2=new dt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),X2=new dt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Y2=new dt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),Z2={zoom:{inKeyframes:B2,outKeyframes:W2},"zoom-big":{inKeyframes:Mm,outKeyframes:Rm},"zoom-big-fast":{inKeyframes:Mm,outKeyframes:Rm},"zoom-left":{inKeyframes:q2,outKeyframes:G2},"zoom-right":{inKeyframes:U2,outKeyframes:K2},"zoom-up":{inKeyframes:H2,outKeyframes:V2},"zoom-down":{inKeyframes:X2,outKeyframes:Y2}},J2=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:i,outKeyframes:o}=Z2[t];return[z2(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 Ru(e){return e!==void 0}function Fm(e,t){var r=t||{},n=r.defaultValue,i=r.value,o=r.onChange,a=r.postState,s=Kn(function(){return Ru(i)?i:Ru(n)?typeof n=="function"?n():n:typeof e=="function"?e():e}),c=K(s,2),l=c[0],u=c[1],f=i!==void 0?i:l,d=a?a(f):f,g=wr(o),v=Kn([f]),h=K(v,2),p=h[0],b=h[1];_m(function(){var E=p[0];l!==E&&g(l,E)},[p]),_m(function(){Ru(i)||u(i)},[i]);var P=wr(function(E,O){u(E,O),b([f],O)});return[d,P]}const Q2=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 Lm=m.createContext(null);function Nm(e){return e?Array.isArray(e)?e:[e]:[]}function eT(e,t,r,n){return m.useMemo(function(){var i=Nm(r??t),o=Nm(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 tT(){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 rT(e,t,r,n){for(var i=r.points,o=Object.keys(e),a=0;a<o.length;a+=1){var s,c=o[a];if(tT((s=e[c])===null||s===void 0?void 0:s.points,i,n))return"".concat(t,"-placement-").concat(c)}return""}function Im(e,t,r,n){return t||(r?{motionName:"".concat(e,"-").concat(r)}:n?{motionName:n}:null)}function us(e){return e.ownerDocument.defaultView}function Fu(e){for(var t=[],r=e==null?void 0:e.parentElement,n=["hidden","scroll","auto"];r;){var i=us(r).getComputedStyle(r),o=i.overflowX,a=i.overflowY;(n.includes(o)||n.includes(a))&&t.push(r),r=r.parentElement}return t}function fs(e){return Number.isNaN(e)?1:e}function jm(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Yn(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 Fr(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 nT(e,t,r,n,i,o,a){var s=m.useState({ready:!1,offsetX:0,offsetY:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[n]||{}}),c=K(s,2),l=c[0],u=c[1],f=m.useRef(0),d=m.useMemo(function(){return t?Fu(t):[]},[t]),g=wr(function(){if(t&&r&&e){let vn=function(lt,Ue){var Bt=lt+W,_o=Ue+z,hi=Math.max(lt,B.left),Eo=Math.max(Ue,B.top),Oo=Math.min(Bt,B.right),gi=Math.min(_o,B.bottom);return(Oo-hi)*(gi-Eo)};var p=t,b=p.style.left,P=p.style.top,E=p.ownerDocument,O=us(p),S=D(D({},i[n]),o);p.style.left="0",p.style.top="0";var y;if(Array.isArray(r))y={x:r[0],y:r[1],width:0,height:0};else{var _=r.getBoundingClientRect();y={x:_.x,y:_.y,width:_.width,height:_.height}}var M=p.getBoundingClientRect(),R=O.getComputedStyle(p),A=R.width,I=R.height,k=E.documentElement,w=k.clientWidth,x=k.clientHeight,T=k.scrollWidth,F=k.scrollHeight,L=k.scrollTop,j=k.scrollLeft,z=M.height,W=M.width,q=y.height,H=y.width,B=S.htmlRegion==="scroll"?{left:-j,top:-L,right:T-j,bottom:F-L}:{left:0,top:0,right:w,bottom:x};(d||[]).forEach(function(lt){if(!(lt instanceof HTMLBodyElement)){var Ue=lt.getBoundingClientRect(),Bt=lt.offsetHeight,_o=lt.clientHeight,hi=lt.offsetWidth,Eo=lt.clientWidth,Oo=fs(Math.round(Ue.width/hi*1e3)/1e3),gi=fs(Math.round(Ue.height/Bt*1e3)/1e3),Qu=(hi-Eo)*Oo,ef=(Bt-_o)*gi,tf=Ue.x+Ue.width-Qu,xs=Ue.y+Ue.height-ef;B.left=Math.max(B.left,Ue.left),B.top=Math.max(B.top,Ue.top),B.right=Math.min(B.right,tf),B.bottom=Math.min(B.bottom,xs)}}),p.style.left=b,p.style.top=P;var le=fs(Math.round(W/parseFloat(A)*1e3)/1e3),te=fs(Math.round(z/parseFloat(I)*1e3)/1e3);if(le===0||te===0||Aa(r)&&!vm(r))return;var qe=S.offset,Oe=S.targetOffset,ke=qe||[],ee=K(ke,2),be=ee[0],Me=be===void 0?0:be,Ge=ee[1],X=Ge===void 0?0:Ge,ue=Oe||[],Ie=K(ue,2),je=Ie[0],se=je===void 0?0:je,re=Ie[1],we=re===void 0?0:re;y.x+=se,y.y+=we;var et=S.points||[],sn=K(et,2),si=sn[0],ci=sn[1],he=jm(ci),ce=jm(si),jt=Yn(y,he),Ir=Yn(M,ce),cr=D({},S),De=jt.x-Ir.x+Me,xe=jt.y-Ir.y+X,li=vn(De,xe),ms=Yn(y,["t","l"]),cn=Yn(M,["t","l"]),$t=Yn(y,["b","r"]),Er=Yn(M,["b","r"]),ui=S.overflow||{},Hu=ui.adjustX,Vu=ui.adjustY,vs=ui.shiftX,yo=ui.shiftY,bs=function(Ue){return typeof Ue=="boolean"?Ue:Ue>=0},ln=M.y+xe,gt=ln+z,ys=bs(Vu),un=ce[0]===he[0];if(ys&&ce[0]==="t"&>>B.bottom){var fn=xe;un?fn-=z-q:fn=ms.y-Er.y-X,vn(De,fn)>li&&(xe=fn,cr.points=[Fr(ce,0),Fr(he,0)])}if(ys&&ce[0]==="b"&&ln<B.top){var dn=xe;un?dn+=z-q:dn=$t.y-cn.y-X,vn(De,dn)>li&&(xe=dn,cr.points=[Fr(ce,0),Fr(he,0)])}var hn=M.x+De,Dt=hn+W,ws=bs(Hu),wo=ce[1]===he[1];if(ws&&ce[1]==="l"&&Dt>B.right){var gn=De;wo?gn-=W-H:gn=ms.x-Er.x-Me,vn(gn,xe)>li&&(De=gn,cr.points=[Fr(ce,1),Fr(he,1)])}if(ws&&ce[1]==="r"&&hn<B.left){var pn=De;wo?pn+=W-H:pn=$t.x-cn.x-Me,vn(pn,xe)>li&&(De=pn,cr.points=[Fr(ce,1),Fr(he,1)])}var jr=vs===!0?0:vs;typeof jr=="number"&&(hn<B.left&&(De-=hn-B.left,y.x+H<B.left+jr&&(De+=y.x-B.left+H-jr)),Dt>B.right&&(De-=Dt-B.right,y.x>B.right-jr&&(De+=y.x-B.right+jr)));var mn=yo===!0?0:yo;typeof mn=="number"&&(ln<B.top&&(xe-=ln-B.top,y.y+q<B.top+mn&&(xe+=y.y-B.top+q-mn)),gt>B.bottom&&(xe-=gt-B.bottom,y.y>B.bottom-mn&&(xe+=y.y-B.bottom+mn)));var fi=M.x+De,So=fi+W,di=M.y+xe,qu=di+z,Co=y.x,Ss=Co+H,Cs=y.y,xo=Cs+q,Gu=Math.max(fi,Co),zt=Math.min(So,Ss),Uu=(Gu+zt)/2,Ku=Uu-fi,Xu=Math.max(di,Cs),Yu=Math.min(qu,xo),Zu=(Xu+Yu)/2,Ju=Zu-di;a==null||a(t,cr),u({ready:!0,offsetX:De/le,offsetY:xe/te,arrowX:Ku/le,arrowY:Ju/te,scaleX:le,scaleY:te,align:cr})}}),v=function(){f.current+=1;var b=f.current;Promise.resolve().then(function(){f.current===b&&g()})},h=function(){u(function(b){return D(D({},b),{},{ready:!1})})};return st(h,[n]),st(function(){e||h()},[e]),[l.ready,l.offsetX,l.offsetY,l.arrowX,l.arrowY,l.scaleX,l.scaleY,l.align,v]}function iT(e,t,r,n){st(function(){if(e&&t&&r){let u=function(){n()};var i=t,o=r,a=Fu(i),s=Fu(o),c=us(o),l=new Set([c].concat(J(a),J(s)));return l.forEach(function(f){f.addEventListener("scroll",u,{passive:!0})}),c.addEventListener("resize",u,{passive:!0}),n(),function(){l.forEach(function(f){f.removeEventListener("scroll",u),c.removeEventListener("resize",u)})}}},[e,t,r])}function oT(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=m.useRef();if(!r||!r.points)return null;var c={position:"absolute"};if(r.autoArrow!==!1){var l=r.points[0],u=r.points[1],f=l[0],d=l[1],g=u[0],v=u[1];f===g||!["t","b"].includes(f)?c.top=a:f==="t"?c.top=0:c.bottom=0,d===v||!["l","r"].includes(d)?c.left=i:d==="l"?c.left=0:c.right=0}return m.createElement("div",{ref:s,className:"".concat(t,"-arrow"),style:c})}function aT(e){var t=e.prefixCls,r=e.open,n=e.zIndex,i=e.mask,o=e.motion;return i?React.createElement(uo,Vt({},o,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(a){var s=a.className;return React.createElement("div",{style:{zIndex:n},className:Z("".concat(t,"-mask"),s)})}):null}var sT=m.forwardRef(function(e,t){var r=e.popup,n=e.className,i=e.prefixCls,o=e.style,a=e.target,s=e.onVisibleChanged,c=e.open,l=e.keepDom,u=e.onClick,f=e.mask,d=e.arrow,g=e.align,v=e.arrowX,h=e.arrowY,p=e.motion,b=e.maskMotion,P=e.forceRender,E=e.getPopupContainer,O=e.autoDestroy,S=e.portal,y=e.zIndex,_=e.onMouseEnter,M=e.onMouseLeave,R=e.ready,A=e.offsetX,I=e.offsetY,k=e.onAlign,w=e.onPrepare,x=e.stretch,T=e.targetWidth,F=e.targetHeight,L=typeof r=="function"?r():r,j=c||l,z=(E==null?void 0:E.length)>0,W=m.useState(!E||!z),q=K(W,2),H=q[0],B=q[1];if(st(function(){!H&&z&&a&&B(!0)},[H,z,a]),!H)return null;var le=R||!c?{left:A,top:I}:{left:"-1000vw",top:"-1000vh"},te={};return x&&(x.includes("height")&&F?te.height=F:x.includes("minHeight")&&F&&(te.minHeight=F),x.includes("width")&&T?te.width=T:x.includes("minWidth")&&T&&(te.minWidth=T)),c||(te.pointerEvents="none"),m.createElement(S,{open:P||j,getContainer:E&&function(){return E(a)},autoDestroy:O},m.createElement(aT,{prefixCls:i,open:c,zIndex:y,mask:f,motion:b}),m.createElement(Cl,{onResize:k,disabled:!c},function(qe){return m.createElement(uo,Vt({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:P,leavedClassName:"".concat(i,"-hidden")},p,{onAppearPrepare:w,onEnterPrepare:w,visible:c,onVisibleChanged:function(ke){var ee;p==null||(ee=p.onVisibleChanged)===null||ee===void 0||ee.call(p,ke),s(ke)}}),function(Oe,ke){var ee=Oe.className,be=Oe.style,Me=Z(i,ee,n);return m.createElement("div",{ref:Xi(qe,t,ke),className:Me,style:D(D(D(D({},le),te),be),{},{boxSizing:"border-box",zIndex:y},o),onMouseEnter:_,onMouseLeave:M,onClick:u},d&&m.createElement(oT,{prefixCls:i,align:g,arrowX:v,arrowY:h}),L)})}))}),cT=m.forwardRef(function(e,t){var r=e.children,n=e.getTriggerDOMNode,i=Yi(r),o=m.useCallback(function(s){bl(t,n?n(s):s)},[n]),a=Rg(o,r.ref);return i?m.cloneElement(r,{ref:a}):r}),lT=["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 uT(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Tm,t=m.forwardRef(function(r,n){var i=r.prefixCls,o=i===void 0?"rc-trigger-popup":i,a=r.children,s=r.action,c=s===void 0?"hover":s,l=r.showAction,u=r.hideAction,f=r.popupVisible,d=r.defaultPopupVisible,g=r.onPopupVisibleChange,v=r.afterPopupVisibleChange,h=r.mouseEnterDelay,p=r.mouseLeaveDelay,b=p===void 0?.1:p,P=r.focusDelay,E=r.blurDelay,O=r.mask,S=r.maskClosable,y=S===void 0?!0:S,_=r.getPopupContainer,M=r.forceRender,R=r.autoDestroy,A=r.destroyPopupOnHide,I=r.popup,k=r.popupClassName,w=r.popupStyle,x=r.popupPlacement,T=r.builtinPlacements,F=T===void 0?{}:T,L=r.popupAlign,j=r.zIndex,z=r.stretch,W=r.getPopupClassNameFromAlign,q=r.alignPoint,H=r.onPopupClick,B=r.onPopupAlign,le=r.arrow,te=r.popupMotion,qe=r.maskMotion,Oe=r.popupTransitionName,ke=r.popupAnimation,ee=r.maskTransitionName,be=r.maskAnimation,Me=r.className,Ge=r.getTriggerDOMNode,X=nr(r,lT),ue=R||A||!1,Ie=m.useState(!1),je=K(Ie,2),se=je[0],re=je[1];st(function(){re(Q2())},[]);var we=m.useRef({}),et=m.useContext(Lm),sn=m.useMemo(function(){return{registerSubPopup:function(ne,me){we.current[ne]=me,et==null||et.registerSubPopup(ne,me)}}},[et]),si=L2(),ci=m.useState(null),he=K(ci,2),ce=he[0],jt=he[1],Ir=wr(function(G){Aa(G)&&ce!==G&&jt(G),et==null||et.registerSubPopup(si,G)}),cr=m.useState(null),De=K(cr,2),xe=De[0],li=De[1],ms=wr(function(G){Aa(G)&&xe!==G&&li(G)}),cn=m.Children.only(a),$t=(cn==null?void 0:cn.props)||{},Er={},ui=wr(function(G){var ne,me,_e=xe;return(_e==null?void 0:_e.contains(G))||(_e==null||(ne=_e.getRootNode())===null||ne===void 0?void 0:ne.host)===G||G===_e||(ce==null?void 0:ce.contains(G))||(ce==null||(me=ce.getRootNode())===null||me===void 0?void 0:me.host)===G||G===ce||Object.values(we.current).some(function(Re){return Re.contains(G)||G===Re})}),Hu=Im(o,te,ke,Oe),Vu=Im(o,qe,be,ee),vs=m.useState(d||!1),yo=K(vs,2),bs=yo[0],ln=yo[1],gt=f??bs,ys=wr(function(G){f===void 0&&ln(G)});st(function(){ln(f||!1)},[f]);var un=m.useRef(gt);un.current=gt;var fn=wr(function(G){gt!==G&&(ys(G),g==null||g(G))}),dn=m.useRef(),hn=function(){clearTimeout(dn.current)},Dt=function(ne){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;hn(),me===0?fn(ne):dn.current=setTimeout(function(){fn(ne)},me*1e3)};m.useEffect(function(){return hn},[]);var ws=m.useState(!1),wo=K(ws,2),gn=wo[0],pn=wo[1],jr=m.useRef(!0);st(function(){(!jr.current||gt)&&pn(!0),jr.current=!0},[gt]);var mn=m.useState(null),fi=K(mn,2),So=fi[0],di=fi[1],qu=m.useState([0,0]),Co=K(qu,2),Ss=Co[0],Cs=Co[1],xo=function(ne){Cs([ne.clientX,ne.clientY])},Gu=nT(gt,ce,q?Ss:xe,x,F,L,B),zt=K(Gu,9),Uu=zt[0],Ku=zt[1],Xu=zt[2],Yu=zt[3],Zu=zt[4],Ju=zt[5],vn=zt[6],lt=zt[7],Ue=zt[8],Bt=wr(function(){gn||Ue()});iT(gt,xe,ce,Bt),st(function(){Bt()},[Ss]),st(function(){gt&&!(F!=null&&F[x])&&Bt()},[JSON.stringify(L)]);var _o=m.useMemo(function(){var G=rT(F,o,lt,q);return Z(G,W==null?void 0:W(lt))},[lt,W,F,o,q]);m.useImperativeHandle(n,function(){return{forceAlign:Bt}});var hi=function(ne){pn(!1),Ue(),v==null||v(ne)},Eo=function(){return new Promise(function(ne){di(function(){return ne})})};st(function(){So&&(Ue(),So(),di(null))},[So]);var Oo=m.useState(0),gi=K(Oo,2),Qu=gi[0],ef=gi[1],tf=m.useState(0),xs=K(tf,2),kk=xs[0],Ak=xs[1],Mk=function(ne,me){if(Bt(),z){var _e=me.getBoundingClientRect();ef(_e.width),Ak(_e.height)}},Rk=eT(se,c,l,u),uv=K(Rk,2),_s=uv[0],Es=uv[1],Os=function(ne,me,_e,Re){Er[ne]=function(Ps){var pi;Re==null||Re(Ps),Dt(me,_e);for(var nf=arguments.length,pv=new Array(nf>1?nf-1:0),Ts=1;Ts<nf;Ts++)pv[Ts-1]=arguments[Ts];(pi=$t[ne])===null||pi===void 0||pi.call.apply(pi,[$t,Ps].concat(pv))}},fv=_s.has("click"),$s=Es.has("click")||Es.has("contextMenu");(fv||$s)&&(Er.onClick=function(G){var ne;un.current&&$s?Dt(!1):!un.current&&fv&&(xo(G),Dt(!0));for(var me=arguments.length,_e=new Array(me>1?me-1:0),Re=1;Re<me;Re++)_e[Re-1]=arguments[Re];(ne=$t.onClick)===null||ne===void 0||ne.call.apply(ne,[$t,G].concat(_e))}),m.useEffect(function(){if($s&&ce&&(!O||y)){var G=function(Ps){var pi=Ps.target;un.current&&!ui(pi)&&Dt(!1)},ne=us(ce),me=xe==null?void 0:xe.getRootNode();ne.addEventListener("click",G);var _e=me&&me!==xe.ownerDocument;return _e&&me.addEventListener("click",G),function(){ne.removeEventListener("click",G),_e&&me.removeEventListener("click",G)}}},[$s,xe,ce,O,y]);var Fk=_s.has("hover"),Lk=Es.has("hover"),dv,hv;Fk&&(Os("onMouseEnter",!0,h,function(G){xo(G)}),dv=function(){Dt(!0,h)},q&&(Er.onMouseMove=function(G){var ne;(ne=$t.onMouseMove)===null||ne===void 0||ne.call($t,G)})),Lk&&(Os("onMouseLeave",!1,b),hv=function(){Dt(!1,b)}),_s.has("focus")&&Os("onFocus",!0,P),Es.has("focus")&&Os("onBlur",!1,E),_s.has("contextMenu")&&(Er.onContextMenu=function(G){var ne;xo(G),Dt(!0),G.preventDefault();for(var me=arguments.length,_e=new Array(me>1?me-1:0),Re=1;Re<me;Re++)_e[Re-1]=arguments[Re];(ne=$t.onContextMenu)===null||ne===void 0||ne.call.apply(ne,[$t,G].concat(_e))}),Me&&(Er.className=Z($t.className,Me));var rf=D(D({},$t),Er),gv={},Nk=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Nk.forEach(function(G){X[G]&&(gv[G]=function(){for(var ne,me=arguments.length,_e=new Array(me),Re=0;Re<me;Re++)_e[Re]=arguments[Re];(ne=rf[G])===null||ne===void 0||ne.call.apply(ne,[rf].concat(_e)),X[G].apply(X,_e)})});var Ik=m.cloneElement(cn,D(D({},rf),gv));return m.createElement(m.Fragment,null,m.createElement(Cl,{disabled:!gt,ref:ms,onResize:Mk},m.createElement(cT,{getTriggerDOMNode:Ge},Ik)),m.createElement(Lm.Provider,{value:sn},m.createElement(sT,{portal:e,ref:Ir,prefixCls:o,popup:I,className:Z(k,_o),style:w,target:xe,onMouseEnter:dv,onMouseLeave:hv,zIndex:j,open:gt,keepDom:gn,onClick:H,mask:O,motion:Hu,maskMotion:Vu,onVisibleChanged:hi,onPrepare:Eo,forceRender:M,autoDestroy:ue,getPopupContainer:_,align:lt,arrow:le,ready:Uu,offsetX:Ku,offsetY:Xu,arrowX:Yu,arrowY:Zu,onAlign:Bt,stretch:z,targetWidth:Qu/Ju,targetHeight:kk/vn})))});return t}const fT=uT(Tm);var Zn={shiftX:64,adjustY:1},Jn={adjustX:1,shiftY:!0},kt=[0,0],dT={left:{points:["cr","cl"],overflow:Jn,offset:[-4,0],targetOffset:kt},right:{points:["cl","cr"],overflow:Jn,offset:[4,0],targetOffset:kt},top:{points:["bc","tc"],overflow:Zn,offset:[0,-4],targetOffset:kt},bottom:{points:["tc","bc"],overflow:Zn,offset:[0,4],targetOffset:kt},topLeft:{points:["bl","tl"],overflow:Zn,offset:[0,-4],targetOffset:kt},leftTop:{points:["tr","tl"],overflow:Jn,offset:[-4,0],targetOffset:kt},topRight:{points:["br","tr"],overflow:Zn,offset:[0,-4],targetOffset:kt},rightTop:{points:["tl","tr"],overflow:Jn,offset:[4,0],targetOffset:kt},bottomRight:{points:["tr","br"],overflow:Zn,offset:[0,4],targetOffset:kt},rightBottom:{points:["bl","br"],overflow:Jn,offset:[4,0],targetOffset:kt},bottomLeft:{points:["tl","bl"],overflow:Zn,offset:[0,4],targetOffset:kt},leftBottom:{points:["br","bl"],overflow:Jn,offset:[-4,0],targetOffset:kt}};function Dm(e){var t=e.children,r=e.prefixCls,n=e.id,i=e.overlayInnerStyle,o=e.className,a=e.style;return m.createElement("div",{className:Z("".concat(r,"-content"),o),style:a},m.createElement("div",{className:"".concat(r,"-inner"),id:n,role:"tooltip",style:i},typeof t=="function"?t():t))}var hT=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],gT=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,c=t.mouseLeaveDelay,l=c===void 0?.1:c,u=t.overlayStyle,f=t.prefixCls,d=f===void 0?"rc-tooltip":f,g=t.children,v=t.onVisibleChange,h=t.afterVisibleChange,p=t.transitionName,b=t.animation,P=t.motion,E=t.placement,O=E===void 0?"right":E,S=t.align,y=S===void 0?{}:S,_=t.destroyTooltipOnHide,M=_===void 0?!1:_,R=t.defaultVisible,A=t.getTooltipContainer,I=t.overlayInnerStyle;t.arrowContent;var k=t.overlay,w=t.id,x=t.showArrow,T=x===void 0?!0:x,F=nr(t,hT),L=$.useRef(null);$.useImperativeHandle(r,function(){return L.current});var j=D({},F);"visible"in t&&(j.popupVisible=t.visible);var z=function(){return m.createElement(Dm,{key:"content",prefixCls:d,id:w,overlayInnerStyle:I},k)};return m.createElement(fT,Vt({popupClassName:n,prefixCls:d,popup:z,action:o,builtinPlacements:dT,popupPlacement:O,ref:L,popupAlign:y,getPopupContainer:A,onPopupVisibleChange:v,afterPopupVisibleChange:h,popupTransitionName:p,popupAnimation:b,popupMotion:P,defaultPopupVisible:R,autoDestroy:M,mouseLeaveDelay:l,popupStyle:u,mouseEnterDelay:s,arrow:T},j),g)};const pT=$.forwardRef(gT),Lr=(e,t)=>new at(e).setAlpha(t).toRgbString(),Qn=(e,t)=>new at(e).lighten(t).toHexString(),mT=e=>{const t=vr(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]}},vT=(e,t)=>{const r=e||"#000",n=t||"#fff";return{colorBgBase:r,colorTextBase:n,colorText:Lr(n,.85),colorTextSecondary:Lr(n,.65),colorTextTertiary:Lr(n,.45),colorTextQuaternary:Lr(n,.25),colorFill:Lr(n,.18),colorFillSecondary:Lr(n,.12),colorFillTertiary:Lr(n,.08),colorFillQuaternary:Lr(n,.04),colorBgElevated:Qn(r,12),colorBgContainer:Qn(r,8),colorBgLayout:Qn(r,0),colorBgSpotlight:Qn(r,26),colorBorder:Qn(r,26),colorBorderSecondary:Qn(r,19)}},bT=(e,t)=>{const r=Object.keys(iu).map(i=>{const o=vr(e[i],{theme:"dark"});return new Array(10).fill(1).reduce((a,s,c)=>(a[`${i}-${c+1}`]=o[c],a[`${i}${c+1}`]=o[c],a),{})}).reduce((i,o)=>(i=Object.assign(Object.assign({},i),o),i),{}),n=t??Ga(e);return Object.assign(Object.assign(Object.assign({},n),r),Np(e,{generateColorPalettes:mT,generateNeutralColorPalettes:vT}))};function yT(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 wT=(e,t)=>{const r=t??Ga(e),n=r.fontSizeSM,i=r.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},r),yT(t??e)),Ip(n)),{controlHeight:i}),Lp(Object.assign(Object.assign({},r),{controlHeight:i})))};function ST(){const[e,t,r]=Ya();return{theme:e,token:t,hashId:r}}const Lu={defaultConfig:Xa,defaultSeed:Xa.token,useToken:ST,defaultAlgorithm:Ga,darkAlgorithm:bT,compactAlgorithm:wT},zm=8;function Bm(e){const t=zm,{contentRadius:r,limitVerticalRadius:n}=e,i=r>12?r+2:12;return{dropdownArrowOffset:i,dropdownArrowOffsetVertical:n?t:i}}function ds(e,t){return e?t:{}}function CT(e,t){const{componentCls:r,sizePopupArrow:n,borderRadiusXS:i,borderRadiusOuter:o,boxShadowPopoverArrow:a}=e,{colorBg:s,contentRadius:c=e.borderRadiusLG,limitVerticalRadius:l,arrowDistance:u=0,arrowPlacement:f={left:!0,right:!0,top:!0,bottom:!0}}=t,{dropdownArrowOffsetVertical:d,dropdownArrowOffset:g}=Bm({contentRadius:c,limitVerticalRadius:l});return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},T$(n,i,o,s,a)),{"&:before":{background:s}})]},ds(!!f.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}}})),ds(!!f.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}}})),ds(!!f.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:d},[`&-placement-leftBottom ${r}-arrow`]:{bottom:d}})),ds(!!f.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:d},[`&-placement-rightBottom ${r}-arrow`]:{bottom:d}}))}}function xT(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 Wm={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"]}},_T={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"]}},ET=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function OT(e){const{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:n,offset:i,borderRadius:o}=e,a=t/2,s={};return Object.keys(Wm).forEach(c=>{const l=n&&_T[c]||Wm[c],u=Object.assign(Object.assign({},l),{offset:[0,0]});switch(s[c]=u,ET.has(c)&&(u.autoArrow=!1),c){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 f=Bm({contentRadius:o,limitVerticalRadius:!0});if(n)switch(c){case"topLeft":case"bottomLeft":u.offset[0]=-f.dropdownArrowOffset-a;break;case"topRight":case"bottomRight":u.offset[0]=f.dropdownArrowOffset+a;break;case"leftTop":case"rightTop":u.offset[1]=-f.dropdownArrowOffset-a;break;case"leftBottom":case"rightBottom":u.offset[1]=f.dropdownArrowOffset+a;break}u.overflow=xT(c,f,t,r)}),s}const $T=e=>{const{componentCls:t,tooltipMaxWidth:r,tooltipColor:n,tooltipBg:i,tooltipBorderRadius:o,zIndexPopup:a,controlHeight:s,boxShadowSecondary:c,paddingSM:l,paddingXS:u,tooltipRadiusOuter:f}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},tn(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:`${l/2}px ${u}px`,color:n,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:o,boxShadow:c},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(o,zm)}},[`${t}-content`]:{position:"relative"}}),P$(e,(d,g)=>{let{darkColor:v}=g;return{[`&${t}-${d}`]:{[`${t}-inner`]:{backgroundColor:v},[`${t}-arrow`]:{"--antd-arrow-background-color":v}}}})),{"&-rtl":{direction:"rtl"}})},CT(Rr(e,{borderRadiusOuter:f}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:o,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},Hm=(e,t)=>Hn("Tooltip",n=>{if(t===!1)return[];const{borderRadius:i,colorTextLightSolid:o,colorBgDefault:a,borderRadiusOuter:s}=n,c=Rr(n,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:i,tooltipBg:a,tooltipRadiusOuter:s>4?4:s});return[$T(c),J2(n,"zoom-big-fast")]},n=>{let{zIndexPopupBase:i,colorBgSpotlight:o}=n;return{zIndexPopup:i+70,colorBgDefault:o}})(e),PT=za.map(e=>`${e}-inverse`);function TT(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(J(PT),J(za)).includes(e):za.includes(e)}function Vm(e,t){const r=TT(t),n=Z({[`${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 kT(e){const{prefixCls:t,className:r,placement:n="top",title:i,color:o,overlayInnerStyle:a}=e,{getPrefixCls:s}=m.useContext(nt),c=s("tooltip",t),[l,u]=Hm(c,!0),f=Vm(c,o),d=Object.assign(Object.assign({},a),f.overlayStyle),g=f.arrowStyle;return l(m.createElement("div",{className:Z(u,c,`${c}-pure`,`${c}-placement-${n}`,r,f.className),style:g},m.createElement("div",{className:`${c}-arrow`}),m.createElement(Dm,Object.assign({},e,{className:u,prefixCls:c,overlayInnerStyle:d}),i)))}var AT=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:MT}=Lu,RT=(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 FT(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}=RT(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=is(e,{style:a,className:null});return m.createElement("span",{style:o,className:Z(e.props.className,`${t}-disabled-compatible-wrapper`)},s)}return e}const qm=m.forwardRef((e,t)=>{var r,n;const{prefixCls:i,openClassName:o,getTooltipContainer:a,overlayClassName:s,color:c,overlayInnerStyle:l,children:u,afterOpenChange:f,afterVisibleChange:d,destroyTooltipOnHide:g,arrow:v=!0}=e,h=!!v,{token:p}=MT(),{getPopupContainer:b,getPrefixCls:P,direction:E}=m.useContext(nt),O=m.useRef(null),S=()=>{var X;(X=O.current)===null||X===void 0||X.forceAlign()};m.useImperativeHandle(t,()=>({forceAlign:S,forcePopupAlign:()=>{S()}}));const[y,_]=Fm(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),M=()=>{const{title:X,overlay:ue}=e;return!X&&!ue&&X!==0},R=X=>{var ue,Ie;_(M()?!1:X),M()||((ue=e.onOpenChange)===null||ue===void 0||ue.call(e,X),(Ie=e.onVisibleChange)===null||Ie===void 0||Ie.call(e,X))},A=()=>{var X,ue;const{builtinPlacements:Ie,arrowPointAtCenter:je=!1,autoAdjustOverflow:se=!0}=e;let re=je;return typeof v=="object"&&(re=(ue=(X=v.pointAtCenter)!==null&&X!==void 0?X:v.arrowPointAtCenter)!==null&&ue!==void 0?ue:je),Ie||OT({arrowPointAtCenter:re,autoAdjustOverflow:se,arrowWidth:h?p.sizePopupArrow:0,borderRadius:p.borderRadius,offset:p.marginXXS})},I=(X,ue)=>{const Ie=A(),je=Object.keys(Ie).find(se=>{var re,we;return Ie[se].points[0]===((re=ue.points)===null||re===void 0?void 0:re[0])&&Ie[se].points[1]===((we=ue.points)===null||we===void 0?void 0:we[1])});if(je){const se=X.getBoundingClientRect(),re={top:"50%",left:"50%"};/top|Bottom/.test(je)?re.top=`${se.height-ue.offset[1]}px`:/Top|bottom/.test(je)&&(re.top=`${-ue.offset[1]}px`),/left|Right/.test(je)?re.left=`${se.width-ue.offset[0]}px`:/right|Left/.test(je)&&(re.left=`${-ue.offset[0]}px`),X.style.transformOrigin=`${re.left} ${re.top}`}},k=()=>{const{title:X,overlay:ue}=e;return X===0?X:ue||X||""},{getPopupContainer:w,placement:x="top",mouseEnterDelay:T=.1,mouseLeaveDelay:F=.1,overlayStyle:L,rootClassName:j}=e,z=AT(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),W=P("tooltip",i),q=P(),H=e["data-popover-inject"];let B=y;!("open"in e)&&!("visible"in e)&&M()&&(B=!1);const le=FT(bu(u)&&!fm(u)?u:m.createElement("span",null,u),W),te=le.props,qe=!te.className||typeof te.className=="string"?Z(te.className,{[o||`${W}-open`]:!0}):te.className,[Oe,ke]=Hm(W,!H),ee=Vm(W,c),be=Object.assign(Object.assign({},l),ee.overlayStyle),Me=ee.arrowStyle,Ge=Z(s,{[`${W}-rtl`]:E==="rtl"},ee.className,j,ke);return Oe(m.createElement(pT,Object.assign({},z,{showArrow:h,placement:x,mouseEnterDelay:T,mouseLeaveDelay:F,prefixCls:W,overlayClassName:Ge,overlayStyle:Object.assign(Object.assign({},Me),L),getTooltipContainer:w||a||b,ref:O,builtinPlacements:A(),overlay:k(),visible:B,onVisibleChange:R,afterVisibleChange:f??d,onPopupAlign:I,overlayInnerStyle:be,arrowContent:m.createElement("span",{className:`${W}-arrow-content`}),motion:{motionName:$2(q,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!g}),B?is(le,{className:qe}):le))});qm._InternalPanelDoNotUseOrYouWillBeFired=kT;const LT=qm,NT=()=>{const[e,t]=m.useState(!1);return m.useEffect(()=>{t(I2())},[]),e};function IT(e){let{className:t,direction:r,index:n,marginDirection:i,children:o,split:a,wrap:s}=e;const{horizontalSize:c,verticalSize:l,latestIndex:u,supportFlexGap:f}=m.useContext(Gm);let d={};return f||(r==="vertical"?n<u&&(d={marginBottom:c/(a?2:1)}):d=Object.assign(Object.assign({},n<u&&{[i]:c/(a?2:1)}),s&&{paddingBottom:l})),o==null?null:m.createElement(m.Fragment,null,m.createElement("div",{className:t,style:d},o),n<u&&a&&m.createElement("span",{className:`${t}-split`,style:d},a))}var jT=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 Gm=m.createContext({latestIndex:0,horizontalSize:0,verticalSize:0,supportFlexGap:!1}),DT={small:8,middle:16,large:24};function zT(e){return typeof e=="string"?DT[e]:e||0}const Um=e=>{const{getPrefixCls:t,space:r,direction:n}=m.useContext(nt),{size:i=(r==null?void 0:r.size)||"small",align:o,className:a,rootClassName:s,children:c,direction:l="horizontal",prefixCls:u,split:f,style:d,wrap:g=!1}=e,v=jT(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap"]),h=NT(),[p,b]=m.useMemo(()=>(Array.isArray(i)?i:[i,i]).map(x=>zT(x)),[i]),P=Fn(c,{keepEmpty:!0}),E=o===void 0&&l==="horizontal"?"center":o,O=t("space",u),[S,y]=pm(O),_=Z(O,y,`${O}-${l}`,{[`${O}-rtl`]:n==="rtl",[`${O}-align-${E}`]:E},a,s),M=`${O}-item`,R=n==="rtl"?"marginLeft":"marginRight";let A=0;const I=P.map((x,T)=>{x!=null&&(A=T);const F=x&&x.key||`${M}-${T}`;return m.createElement(IT,{className:M,key:F,direction:l,index:T,marginDirection:R,split:f,wrap:g},x)}),k=m.useMemo(()=>({horizontalSize:p,verticalSize:b,latestIndex:A,supportFlexGap:h}),[p,b,A,h]);if(P.length===0)return null;const w={};return g&&(w.flexWrap="wrap",h||(w.marginBottom=-b)),h&&(w.columnGap=p,w.rowGap=b),S(m.createElement("div",Object.assign({className:_,style:Object.assign(Object.assign({},w),d)},v),m.createElement(Gm.Provider,{value:k},I)))};Um.Compact=WP;const Km=Um,Xm=m.createContext(null),BT=Xm.Provider,Ym=m.createContext(null),WT=Ym.Provider;var Nu=function(e){$a(r,e);var t=ka(r);function r(n){var i;er(this,r),i=t.call(this,n),i.handleChange=function(a){var s=i.props,c=s.disabled,l=s.onChange;c||("checked"in i.props||i.setState({checked:a.target.checked}),l&&l({target:D(D({},i.props),{},{checked:a.target.checked}),stopPropagation:function(){a.stopPropagation()},preventDefault:function(){a.preventDefault()},nativeEvent:a.nativeEvent}))},i.saveInput=function(a){i.input=a};var o="checked"in n?n.checked:n.defaultChecked;return i.state={checked:o},i}return tr(r,[{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"render",value:function(){var i,o=this.props,a=o.prefixCls,s=o.className,c=o.style,l=o.name,u=o.id,f=o.type,d=o.disabled,g=o.readOnly,v=o.tabIndex,h=o.onClick,p=o.onFocus,b=o.onBlur,P=o.onKeyDown,E=o.onKeyPress,O=o.onKeyUp,S=o.autoFocus,y=o.value,_=o.required,M=nr(o,["prefixCls","className","style","name","id","type","disabled","readOnly","tabIndex","onClick","onFocus","onBlur","onKeyDown","onKeyPress","onKeyUp","autoFocus","value","required"]),R=Object.keys(M).reduce(function(k,w){return(w.substr(0,5)==="aria-"||w.substr(0,5)==="data-"||w==="role")&&(k[w]=M[w]),k},{}),A=this.state.checked,I=Z(a,s,(i={},oe(i,"".concat(a,"-checked"),A),oe(i,"".concat(a,"-disabled"),d),i));return $.createElement("span",{className:I,style:c},$.createElement("input",Vt({name:l,id:u,type:f,required:_,readOnly:g,disabled:d,tabIndex:v,className:"".concat(a,"-input"),checked:!!A,onClick:h,onFocus:p,onBlur:b,onKeyUp:O,onKeyDown:P,onKeyPress:E,onChange:this.handleChange,autoFocus:S,ref:this.saveInput,value:y},R)),$.createElement("span",{className:"".concat(a,"-inner")}))}}],[{key:"getDerivedStateFromProps",value:function(i,o){return"checked"in i?D(D({},o),{},{checked:i.checked}):null}}]),r}($.Component);Nu.defaultProps={prefixCls:"rc-checkbox",className:"",style:{},type:"checkbox",defaultChecked:!1,onFocus:function(){},onBlur:function(){},onChange:function(){},onKeyDown:function(){},onKeyPress:function(){},onKeyUp:function(){}};const HT=new dt("antRadioEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),VT=e=>{const{componentCls:t,antCls:r}=e,n=`${t}-group`;return{[n]:Object.assign(Object.assign({},tn(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"}})}},qT=e=>{const{componentCls:t,radioWrapperMarginRight:r,radioCheckedColor:n,radioSize:i,motionDurationSlow:o,motionDurationMid:a,motionEaseInOut:s,motionEaseInOutCirc:c,radioButtonBg:l,colorBorder:u,lineWidth:f,radioDotSize:d,colorBgContainerDisabled:g,colorTextDisabled:v,paddingXS:h,radioDotDisabledColor:p,lineType:b,radioDotDisabledSize:P,wireframe:E,colorWhite:O}=e,S=`${t}-inner`;return{[`${t}-wrapper`]:Object.assign(Object.assign({},tn(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:`${f}px ${b} ${n}`,borderRadius:"50%",visibility:"hidden",animationName:HT,animationDuration:o,animationTimingFunction:s,animationFillMode:"both",content:'""'},[t]:Object.assign(Object.assign({},tn(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center"}),[`${t}-wrapper:hover &, &:hover ${S}`]:{borderColor:n},[`${t}-input:focus-visible + ${S}`]:Object.assign({},Ka(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:E?n:O,borderBlockStart:0,borderInlineStart:0,borderRadius:i,transform:"scale(0)",opacity:0,transition:`all ${o} ${c}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:i,height:i,backgroundColor:l,borderColor:u,borderStyle:"solid",borderWidth:f,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`]:{[S]:{borderColor:n,backgroundColor:E?l:n,"&::after":{transform:`scale(${d/i})`,opacity:1,transition:`all ${o} ${c}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[S]:{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`]:{[S]:{"&::after":{transform:`scale(${P/i})`}}}},[`span${t} + *`]:{paddingInlineStart:h,paddingInlineEnd:h}})}},GT=e=>{const{radioButtonColor:t,controlHeight:r,componentCls:n,lineWidth:i,lineType:o,colorBorder:a,motionDurationSlow:s,motionDurationMid:c,radioButtonPaddingHorizontal:l,fontSize:u,radioButtonBg:f,fontSizeLG:d,controlHeightLG:g,controlHeightSM:v,paddingXS:h,borderRadius:p,borderRadiusSM:b,borderRadiusLG:P,radioCheckedColor:E,radioButtonCheckedBg:O,radioButtonHoverColor:S,radioButtonActiveColor:y,radioSolidCheckedColor:_,colorTextDisabled:M,colorBgContainerDisabled:R,radioDisabledButtonCheckedColor:A,radioDisabledButtonCheckedBg:I}=e;return{[`${n}-button-wrapper`]:{position:"relative",display:"inline-block",height:r,margin:0,paddingInline:l,paddingBlock:0,color:t,fontSize:u,lineHeight:`${r-i*2}px`,background:f,border:`${i}px ${o} ${a}`,borderBlockStartWidth:i+.02,borderInlineStartWidth:0,borderInlineEndWidth:i,cursor:"pointer",transition:[`color ${c}`,`background ${c}`,`border-color ${c}`,`box-shadow ${c}`].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:d,lineHeight:`${g-i*2}px`,"&:first-child":{borderStartStartRadius:P,borderEndStartRadius:P},"&:last-child":{borderStartEndRadius:P,borderEndEndRadius:P}},[`${n}-group-small &`]:{height:v,paddingInline:h-i,paddingBlock:0,lineHeight:`${v-i*2}px`,"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},"&:hover":{position:"relative",color:E},"&:has(:focus-visible)":Object.assign({},Ka(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:E,background:O,borderColor:E,"&::before":{backgroundColor:E},"&:first-child":{borderColor:E},"&:hover":{color:S,borderColor:S,"&::before":{backgroundColor:S}},"&:active":{color:y,borderColor:y,"&::before":{backgroundColor:y}}},[`${n}-group-solid &-checked:not(${n}-button-wrapper-disabled)`]:{color:_,background:E,borderColor:E,"&:hover":{color:_,background:S,borderColor:S},"&:active":{color:_,background:y,borderColor:y}},"&-disabled":{color:M,backgroundColor:R,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:M,backgroundColor:R,borderColor:a}},[`&-disabled${n}-button-wrapper-checked`]:{color:A,backgroundColor:I,borderColor:a,boxShadow:"none"}}}},Zm=Hn("Radio",e=>{const{padding:t,lineWidth:r,controlItemBgActiveDisabled:n,colorTextDisabled:i,colorBgContainer:o,fontSizeLG:a,controlOutline:s,colorPrimaryHover:c,colorPrimaryActive:l,colorText:u,colorPrimary:f,marginXS:d,controlOutlineWidth:g,colorTextLightSolid:v,wireframe:h}=e,p=`0 0 0 ${g}px ${s}`,b=p,P=a,E=4,O=P-E*2,S=h?O:P-(E+r)*2,y=f,_=u,M=c,R=l,A=t-r,w=Rr(e,{radioFocusShadow:p,radioButtonFocusShadow:b,radioSize:P,radioDotSize:S,radioDotDisabledSize:O,radioCheckedColor:y,radioDotDisabledColor:i,radioSolidCheckedColor:v,radioButtonBg:o,radioButtonCheckedBg:o,radioButtonColor:_,radioButtonHoverColor:M,radioButtonActiveColor:R,radioButtonPaddingHorizontal:A,radioDisabledButtonCheckedBg:n,radioDisabledButtonCheckedColor:i,radioWrapperMarginRight:d});return[VT(w),qT(w),GT(w)]});var UT=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 KT=(e,t)=>{var r,n;const i=m.useContext(Xm),o=m.useContext(Ym),{getPrefixCls:a,direction:s}=m.useContext(nt),c=m.useRef(),l=Xi(t,c),{isFormItemInput:u}=m.useContext(Am),f=R=>{var A,I;(A=e.onChange)===null||A===void 0||A.call(e,R),(I=i==null?void 0:i.onChange)===null||I===void 0||I.call(i,R)},{prefixCls:d,className:g,rootClassName:v,children:h,style:p}=e,b=UT(e,["prefixCls","className","rootClassName","children","style"]),P=a("radio",d),E=((i==null?void 0:i.optionType)||o)==="button"?`${P}-button`:P,[O,S]=Zm(P),y=Object.assign({},b),_=m.useContext(Za);i&&(y.name=i.name,y.onChange=f,y.checked=e.value===i.value,y.disabled=(r=y.disabled)!==null&&r!==void 0?r:i.disabled),y.disabled=(n=y.disabled)!==null&&n!==void 0?n:_;const M=Z(`${E}-wrapper`,{[`${E}-wrapper-checked`]:y.checked,[`${E}-wrapper-disabled`]:y.disabled,[`${E}-wrapper-rtl`]:s==="rtl",[`${E}-wrapper-in-form-item`]:u},g,v,S);return O(m.createElement("label",{className:M,style:p,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},m.createElement(Nu,Object.assign({},y,{type:"radio",prefixCls:E,ref:l})),h!==void 0?m.createElement("span",null,h):null))},hs=m.forwardRef(KT),XT=m.forwardRef((e,t)=>{const{getPrefixCls:r,direction:n}=m.useContext(nt),i=m.useContext(so),[o,a]=Fm(e.defaultValue,{value:e.value}),s=w=>{const x=o,T=w.target.value;"value"in e||a(T);const{onChange:F}=e;F&&T!==x&&F(w)},{prefixCls:c,className:l,rootClassName:u,options:f,buttonStyle:d="outline",disabled:g,children:v,size:h,style:p,id:b,onMouseEnter:P,onMouseLeave:E,onFocus:O,onBlur:S}=e,y=r("radio",c),_=`${y}-group`,[M,R]=Zm(y);let A=v;f&&f.length>0&&(A=f.map(w=>typeof w=="string"||typeof w=="number"?m.createElement(hs,{key:w.toString(),prefixCls:y,disabled:g,value:w,checked:o===w},w):m.createElement(hs,{key:`radio-group-value-options-${w.value}`,prefixCls:y,disabled:w.disabled||g,value:w.value,checked:o===w.value,style:w.style},w.label)));const I=h||i,k=Z(_,`${_}-${d}`,{[`${_}-${I}`]:I,[`${_}-rtl`]:n==="rtl"},l,u,R);return M(m.createElement("div",Object.assign({},_P(e),{className:k,style:p,onMouseEnter:P,onMouseLeave:E,onFocus:O,onBlur:S,id:b,ref:t}),m.createElement(BT,{value:{onChange:s,value:o,disabled:e.disabled,name:e.name,optionType:e.optionType}},A)))}),YT=m.memo(XT);var ZT=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 JT=(e,t)=>{const{getPrefixCls:r}=m.useContext(nt),{prefixCls:n}=e,i=ZT(e,["prefixCls"]),o=r("radio",n);return m.createElement(WT,{value:"button"},m.createElement(hs,Object.assign({prefixCls:o},i,{type:"radio",ref:t})))},QT=m.forwardRef(JT),gs=hs;gs.Button=QT,gs.Group=YT,gs.__ANT_RADIO=!0;const Iu=gs,ek=new dt("antCheckboxEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),tk=e=>{const{checkboxCls:t}=e,r=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},tn(e)),{display:"inline-flex"}),[r]:Object.assign(Object.assign({},tn(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({},tn(e)),{top:"0.2em",position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,width:"100%",height:"100%",cursor:"pointer",opacity:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},Ka(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:ek,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 rk(e,t){const r=Rr(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[tk(r)]}const Jm=Hn("Checkbox",(e,t)=>{let{prefixCls:r}=t;return[rk(r,e)]});var nk=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 Qm=m.createContext(null),ik=(e,t)=>{var{defaultValue:r,children:n,options:i=[],prefixCls:o,className:a,rootClassName:s,style:c,onChange:l}=e,u=nk(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]);const{getPrefixCls:f,direction:d}=m.useContext(nt),[g,v]=m.useState(u.value||r||[]),[h,p]=m.useState([]);m.useEffect(()=>{"value"in u&&v(u.value||[])},[u.value]);const b=()=>i.map(k=>typeof k=="string"||typeof k=="number"?{label:k,value:k}:k),P=k=>{p(w=>w.filter(x=>x!==k))},E=k=>{p(w=>[].concat(J(w),[k]))},O=k=>{const w=g.indexOf(k.value),x=J(g);w===-1?x.push(k.value):x.splice(w,1),"value"in u||v(x);const T=b();l==null||l(x.filter(F=>h.includes(F)).sort((F,L)=>{const j=T.findIndex(W=>W.value===F),z=T.findIndex(W=>W.value===L);return j-z}))},S=f("checkbox",o),y=`${S}-group`,[_,M]=Jm(S),R=Ig(u,["value","disabled"]);i&&i.length>0&&(n=b().map(k=>m.createElement(ev,{prefixCls:S,key:k.value.toString(),disabled:"disabled"in k?k.disabled:u.disabled,value:k.value,checked:g.includes(k.value),onChange:k.onChange,className:`${y}-item`,style:k.style},k.label)));const A={toggleOption:O,value:g,disabled:u.disabled,name:u.name,registerValue:E,cancelValue:P},I=Z(y,{[`${y}-rtl`]:d==="rtl"},a,s,M);return _(m.createElement("div",Object.assign({className:I,style:c},R,{ref:t}),m.createElement(Qm.Provider,{value:A},n)))},ok=m.forwardRef(ik),ak=m.memo(ok);var sk=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 ck=(e,t)=>{var r,{prefixCls:n,className:i,rootClassName:o,children:a,indeterminate:s=!1,style:c,onMouseEnter:l,onMouseLeave:u,skipGroup:f=!1,disabled:d}=e,g=sk(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]);const{getPrefixCls:v,direction:h}=m.useContext(nt),p=m.useContext(Qm),{isFormItemInput:b}=m.useContext(Am),P=m.useContext(Za),E=(r=(p==null?void 0:p.disabled)||d)!==null&&r!==void 0?r:P,O=m.useRef(g.value);m.useEffect(()=>{p==null||p.registerValue(g.value)},[]),m.useEffect(()=>{if(!f)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 S=v("checkbox",n),[y,_]=Jm(S),M=Object.assign({},g);p&&!f&&(M.onChange=function(){g.onChange&&g.onChange.apply(g,arguments),p.toggleOption&&p.toggleOption({label:a,value:g.value})},M.name=p.name,M.checked=p.value.includes(g.value));const R=Z({[`${S}-wrapper`]:!0,[`${S}-rtl`]:h==="rtl",[`${S}-wrapper-checked`]:M.checked,[`${S}-wrapper-disabled`]:E,[`${S}-wrapper-in-form-item`]:b},i,o,_),A=Z({[`${S}-indeterminate`]:s},_),I=s?"mixed":void 0;return y(m.createElement("label",{className:R,style:c,onMouseEnter:l,onMouseLeave:u},m.createElement(Nu,Object.assign({"aria-checked":I},M,{prefixCls:S,className:A,disabled:E,ref:t})),a!==void 0&&m.createElement("span",null,a)))},ev=m.forwardRef(ck),ju=ev;ju.Group=ak,ju.__ANT_CHECKBOX=!0;const lk=ju,tv=N(Xn,{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 rv({style:e,className:t}){const{runAsync:r,loading:n}=Ah(Xx,{manual:!0}),{accessKey:i}=$r(),o=$.useRef(null),a=Pe(async()=>{var l;await r()&&((l=o.current)==null||l.set(!1))});return N(Km,{size:"small",style:e,className:t,children:i?V(lr,{children:[N(Xn,{onClick:()=>a(),disabled:n,children:N("span",{children:"重新获取 access_key"})}),N(Xn,{onClick:Yx,children:N("span",{children:"删除 access_key"})})]}):V(lr,{children:[tv,N(Xn,{onClick:a,disabled:n,size:"middle",children:N("span",{children:"获取 access_key"})})]})})}function rn({configKey:e,label:t,className:r,extraAction:n,tooltip:i}){const a=!!$r()[e],s=$.useCallback(l=>{const u=l.target.checked;rh({[e]:u}),n==null||n(u)},[]);let c=t||e;return i&&(c=N(LT,{title:i,zIndex:11100,children:c})),N(lk,{className:r,checked:a,onChange:s,children:c})}var uk={name:"1qkltea",styles:"margin-left:5px"};const fk=function(){const e=uk;return V(lr,{children:[N(rn,{configKey:"initialShowMore",label:"自动查看更多",css:e}),N(rn,{configKey:"useNarrowMode",label:"启用居中模式",css:e})]})},Te={configIcon:"_config-icon_1d50l_1",settingsGroup:"_settings-group_1d50l_6",settingsGroupTitle:"_settings-group-title_1d50l_9",settingsGroupContent:"_settings-group-content_1d50l_12",row:"_row_1d50l_18",check:"_check_1d50l_26"};async function nv(){vt("即将刷新网页"),await On(500),location.reload()}function dk(){if(window.confirm("确定?"))return sC(),nv()}function hk({show:e,onHide:t}){const{pureRecommend:r,usePcDesktopApi:n}=$r();return V(qc,{show:e,onHide:t,hideWhenMaskOnClick:!0,hideWhenEsc:!0,children:[V("div",{className:At.modalHeader,children:[V("div",{className:At.modalTitle,children:[N(Gr,{name:"Config",className:Te.configIcon}),"设置项"]}),N("div",{className:"space",style:{flex:1}}),N(Gc,{onClick:t})]}),V("main",{className:At.modalBody,children:[V("div",{className:Te.settingsGroup,children:[N("div",{className:Te.settingsGroupTitle,children:"接口切换"}),V("div",{className:Z(Te.settingsGroupContent),children:[V(Iu.Group,{buttonStyle:"solid",value:n?"desktop":"app",onChange:i=>{const o=i.target.value;Ze.usePcDesktopApi=o==="desktop"},children:[N(Iu.Button,{value:"desktop",children:"使用桌面端接口"}),N(Iu.Button,{value:"app",children:"使用 App 端接口"})]}),!n&&N("div",{className:Te.row,style:{marginTop:5},children:N(rv,{})})]})]}),V("div",{className:Te.settingsGroup,children:[N("div",{className:Te.settingsGroupTitle,children:"开关"}),V("div",{className:Z(Te.settingsGroupContent,Te.row),children:[N(rn,{configKey:"pureRecommend",label:"开启纯推荐模式",tooltip:V(lr,{children:["首页只保留推荐",N("br",{}),"P.S 需要刷新网页~"]}),className:Te.check,extraAction:nv}),N(rn,{configKey:"initialShowMore",label:"自动查看更多",tooltip:"打开首页时默认打开推荐弹框",className:Te.check,extraAction:i=>{i&&vt("已开启自动查看更多: 下次打开首页时将直接展示推荐弹框")}}),N(rn,{configKey:"useNarrowMode",label:"启用居中模式",tooltip:"居中两列",className:Te.check}),N(rn,{configKey:"useParallelRequest",label:"批量请求时使用并行",tooltip:V(lr,{children:["并行快但可能有重复",N("br",{}),"推荐视频大量重复时关闭这个试试~"]}),className:Te.check})]})]}),V("div",{className:Te.settingsGroup,children:[N("div",{className:Te.settingsGroupTitle,children:"高级"}),V("div",{className:Z(Te.settingsGroupContent),children:[N("div",{className:Te.row,children:N(Xn,{onClick:dk,danger:!0,children:"恢复默认设置"})}),N("div",{className:Te.row,style:{marginTop:10},children:N(rn,{configKey:"openInIINAWhenRightClick",label:"右键在 IINA 中打开",className:Te.check})})]})]}),V("div",{className:Te.settingsGroup,children:[N("div",{className:Te.settingsGroupTitle,children:"帮助"}),N("div",{className:Z(Te.settingsGroupContent),children:N("div",{className:Te.row,children:V(Km,{size:"small",children:[N(Xn,{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:"查看可用的快捷键"}),tv]})})})]})]})]})}var Du={};Object.defineProperty(Du,"__esModule",{value:!0});var iv=Du.useSticky=void 0;const zu=$;function gk(){const e=(0,zu.useRef)(null),[t,r]=(0,zu.useState)(!1);return(0,zu.useEffect)(()=>{function n(){if(!e.current)return;const i=e.current.getBoundingClientRect().top,o=parseInt(getComputedStyle(e.current).top),a=i<=o;a&&!t?r(!0):!a&&t&&r(!1)}return n(),document.addEventListener("scroll",n),window.addEventListener("resize",n),window.addEventListener("orientationchange",n),()=>{document.removeEventListener("scroll",n),window.removeEventListener("resize",n),window.removeEventListener("orientationchange",n)}},[t]),[e,t]}iv=Du.useSticky=gk;const ov={expandBtn:"_expand-btn_wdzp9_1",expanded:"_expanded_wdzp9_12"},pk=$.forwardRef(function({children:t},r){const[n,i]=Mh(!1);$.useImperativeHandle(r,()=>i,[i]);const o=N("button",{className:Z("primary-btn",ov.expandBtn),onClick:i.toggle,children:N("svg",{className:Z({[ov.expanded]:n}),children:N("use",{xlinkHref:"#widget-arrow"})})});return V(lr,{children:[o,n&&t]})}),ho={modalMask:"_modal-mask_juq7d_1",narrowMode:"_narrow-mode_juq7d_1",modal:"_modal_juq7d_1",modalHeader:"_modal-header_juq7d_21",modalBody:"_modal-body_juq7d_22",btnRefresh:"_btn-refresh_juq7d_25"},mk=$.memo(function({show:t,onHide:r}){const n=$.useRef(null),i=$.useRef(null),{useNarrowMode:o}=$r(),a=$.useMemo(()=>({[ho.narrowMode]:o}),[o]),s=Pe(()=>{var l;return(l=i.current)==null?void 0:l.refresh()}),c=Pe(()=>{n.current&&(n.current.scrollTop=0)});return V(qc,{show:t,onHide:r,clsModalMask:Z(a),clsModal:Z(ho.modal,a),children:[V("div",{className:Z(At.modalHeader,ho.modalHeader),children:[N("div",{className:At.modalTitle,children:"推荐"}),N("div",{className:"space",style:{flex:1}}),N(pk,{children:N(fk,{})}),V("button",{className:`primary-btn roll-btn ${ho.btnRefresh}`,onClick:s,children:[N("svg",{children:N("use",{xlinkHref:"#widget-roll"})}),N("span",{children:"换一换"})]}),N(Gc,{onClick:r})]}),N("div",{className:Z(At.modalBody,ho.modalBody),ref:n,children:N($g,{ref:i,shortcutEnabled:t,onScrollToTop:c,infiteScrollUseWindow:!1,scrollerRef:n})})]})}),av={btn:$n` padding: 0; width: 31px; height: 31px; border-radius: 50%; `,icon:$n` svg { width: 14px; height: 14px; } `},ei=Mi({modalFeedVisible:Ze.initialShowMore,modalConfigVisible:!1}),vk=function(){return En(ei)},bk=()=>{ei.modalFeedVisible=!0},yk=()=>{ei.modalFeedVisible=!1},wk=()=>{ei.modalConfigVisible=!0},Sk=()=>{ei.modalConfigVisible=!1};function sv({onRefresh:e}){const{accessKey:t,pureRecommend:r,usePcDesktopApi:n}=$r(),{modalFeedVisible:i,modalConfigVisible:o}=En(ei),[a,s]=iv();return V(lr,{children:[V("div",{ref:a,className:"area-header",css:[$n` margin-bottom: 0; height: 50px; `,r&&$n` position: sticky; top: ${ch}px; z-index: 1000; `,r&&s&&$n` background-color: var(--bg1_float); box-shadow: 0 2px 4px rgb(0 0 0 / 8%); `,"",""],children:[V("div",{className:"left",children:[N("a",{id:"影视",className:"the-world area-anchor","data-id":"25"}),N("svg",{className:"icon",children:N("use",{xlinkHref:"#channel-cinephile"})}),N("a",{className:"title",href:"#",children:N("span",{children:"推荐"})})]}),V("div",{className:"right",children:[!n&&!t&&N(rv,{style:{marginLeft:5}}),N("button",{className:"primary-btn",css:av.btn,onClick:wk,children:N(Gr,{name:"Config",css:av.icon})}),V("button",{className:"primary-btn roll-btn",onClick:e,children:[N("svg",{style:{transform:"rotate(0deg)"},children:N("use",{xlinkHref:"#widget-roll"})}),N("span",{children:"换一换"})]}),!r&&V("button",{className:"primary-btn see-more",onClick:bk,children:[N("span",{children:"查看更多"}),N("svg",{children:N("use",{xlinkHref:"#widget-arrow"})})]})]})]}),N(mk,{show:i,onHide:yk}),N(hk,{show:o,onHide:Sk})]})}const Ck={grid:$n` /* card=299 col-gap=20 */ width: ${299*2+20}px; margin: 0 auto; `};function xk(){const{useNarrowMode:e}=$r(),{modalFeedVisible:t}=vk(),r=$.useRef(null),n=Pe(()=>{var o;return(o=r.current)==null?void 0:o.refresh()}),i=Pe(()=>{document.documentElement.scrollTop=0});return V("section",{"data-area":"推荐",children:[N(sv,{onRefresh:n}),N($g,{ref:r,css:[e&&Ck.grid,"",""],shortcutEnabled:!t,infiteScrollUseWindow:!0,onScrollToTop:i})]})}function _k(){const e=$.useMemo(()=>new Array(20).fill(0).map(()=>crypto.randomUUID()),[]),t=Ri(),r=$.useMemo(()=>({page:1}),[]),{data:n,loading:i,error:o,refresh:a}=Ah(()=>K_(r));return o&&console.error(o.stack||o),V("section",{"data-area":"推荐",children:[N(sv,{onRefresh:a}),N("div",{className:Z(hl,_g,{[gl]:t}),style:{marginBottom:t?30:0},children:i||o?e.map(s=>N(Jc,{},s)):n.map(s=>N(Jc,{item:s},s.uniqId))})]})}const Ek=10*1e3,Ok=200;async function cv(e,t){let r=[];const n=()=>{r=Array.from(document.querySelectorAll(e))};n();const i=performance.now();for(;!r.length&&performance.now()-i<Ek;)await On(Ok),n();if(!r.length){console.log("[bilibili-app-recommend]: tryAction timeout, selector = %s",e);return}for(const o of r)await Promise.resolve(t(o))}function Bu(e){return cv(e,t=>t.remove())}function lv({children:e}){const t=Cc();return N(J$,{theme:{algorithm:t?Lu.darkAlgorithm:Lu.defaultAlgorithm,token:{colorPrimary:"#ff6699"}},children:e})}(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 $k()})();async function $k(){return Bu(".adblock-tips"),cv("html.gray",e=>e.classList.remove("gray")),Ze.pureRecommend?Tk():Pk()}async function Pk(){const t=Date.now()+1e4;let r=null;for(;;){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(Ri()&&document.querySelector(".bili-feed4-layout")){r=o=>{var a;return(a=document.querySelector(".bili-feed4-layout"))==null?void 0:a.insertAdjacentElement("afterbegin",o)};break}if(Date.now()>t)break;await On(200)}if(!r){console.error("[bilibili-app-recommend]: init fail");return}const n=document.createElement("section");r(n),ia(n).render(N(lv,{children:N(_k,{})}))}async function Tk(){var i,o;Ri()?((i=document.querySelector(".bili-feed4 .bili-feed4-layout"))==null||i.remove(),Bu(".bili-feed4 .header-channel")):((o=document.querySelector(".bili-layout"))==null||o.remove(),Bu(".bili-footer"));const e=document.createElement("div");e.classList.add(Ri()?"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),ia(r).render(N(lv,{children:N(xk,{})}))}})(React,ReactDOM,axios,axiosGmxhrAdapter);