From 66d94f7e81fab73e8555a97f11548e2f9a9632a8 Mon Sep 17 00:00:00 2001 From: cnwhy Date: Thu, 27 Jun 2024 09:47:22 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20go-gost/?= =?UTF-8?q?gost-ui@bb9c354f6745eb830ac465c5b682ba259f29b122=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/Manage-45bbb409.js | 508 ++++++++++++++++++ assets/Manage-505d70f1.css | 1 - assets/Manage-b7c7bc0e.js | 508 ------------------ assets/{antd-af73db0d.js => antd-b4989dd4.js} | 106 ++-- assets/en-d8bb208f.js | 1 + assets/en-e998d6f7.js | 1 - ...{index-ff416fa7.css => index-1e88fa5c.css} | 2 +- .../{index-f9140a0f.js => index-b95f859d.js} | 4 +- assets/zh-c566da85.js | 1 - assets/zh-fac22c27.js | 1 + index.html | 6 +- 11 files changed, 569 insertions(+), 570 deletions(-) create mode 100644 assets/Manage-45bbb409.js delete mode 100644 assets/Manage-505d70f1.css delete mode 100644 assets/Manage-b7c7bc0e.js rename assets/{antd-af73db0d.js => antd-b4989dd4.js} (87%) create mode 100644 assets/en-d8bb208f.js delete mode 100644 assets/en-e998d6f7.js rename assets/{index-ff416fa7.css => index-1e88fa5c.css} (85%) rename assets/{index-f9140a0f.js => index-b95f859d.js} (98%) delete mode 100644 assets/zh-c566da85.js create mode 100644 assets/zh-fac22c27.js diff --git a/assets/Manage-45bbb409.js b/assets/Manage-45bbb409.js new file mode 100644 index 0000000..cb703a8 --- /dev/null +++ b/assets/Manage-45bbb409.js @@ -0,0 +1,508 @@ +import{g as Ot,u as G,a as At,j as r,c as Ut,b as Re,C as Fe,d as re,e as E,A as $t,L as St,f as It,q as _t,h as Ne,i as it,k as ge,l as Et,m as Ft,s as Nt,n as Vt,T as zt,o as Bt,p as Mt}from"./index-b95f859d.js";import{r as g,A as oe,_ as ie,f as pe,k as je,I as Ve,d as Y,M as ze,B as F,F as ue,l as at,S as R,n as Rt,Z as Dt,o as Pt,p as Ht,h as Jt,j as Wt,T as qt,q as Zt,s as Gt,E as Qt,u as Xt,P as Yt,D as Kt,v as Ct,w as en,x as tn,y as fe,z as J,G as nn,C as $,L as ve,R as we,H as sn,J as ln,K as rn,N as Te}from"./antd-b4989dd4.js";var on={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"};const an=on;var cn=function(n,s){return g.createElement(oe,ie({},n,{ref:s,icon:an}))},un=g.forwardRef(cn);const ct=un;var dn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M391 240.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L200 146.3a8.03 8.03 0 00-11.3 0l-42.4 42.3a8.03 8.03 0 000 11.3L280 333.6l-43.9 43.9a8.01 8.01 0 004.7 13.6L401 410c5.1.6 9.5-3.7 8.9-8.9L391 240.9zm10.1 373.2L240.8 633c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L146.3 824a8.03 8.03 0 000 11.3l42.4 42.3c3.1 3.1 8.2 3.1 11.3 0L333.7 744l43.7 43.7A8.01 8.01 0 00391 783l18.9-160.1c.6-5.1-3.7-9.4-8.8-8.8zm221.8-204.2L783.2 391c6.6-.8 9.4-8.9 4.7-13.6L744 333.6 877.7 200c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.3a8.03 8.03 0 00-11.3 0L690.3 279.9l-43.7-43.7a8.01 8.01 0 00-13.6 4.7L614.1 401c-.6 5.2 3.7 9.5 8.8 8.9zM744 690.4l43.9-43.9a8.01 8.01 0 00-4.7-13.6L623 614c-5.1-.6-9.5 3.7-8.9 8.9L633 783.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L824 877.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L744 690.4z"}}]},name:"fullscreen-exit",theme:"outlined"};const fn=dn;var mn=function(n,s){return g.createElement(oe,ie({},n,{ref:s,icon:fn}))},pn=g.forwardRef(mn);const hn=pn;var gn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M290 236.4l43.9-43.9a8.01 8.01 0 00-4.7-13.6L169 160c-5.1-.6-9.5 3.7-8.9 8.9L179 329.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L370 423.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L290 236.4zm352.7 187.3c3.1 3.1 8.2 3.1 11.3 0l133.7-133.6 43.7 43.7a8.01 8.01 0 0013.6-4.7L863.9 169c.6-5.1-3.7-9.5-8.9-8.9L694.8 179c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L600.3 370a8.03 8.03 0 000 11.3l42.4 42.4zM845 694.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L654 600.3a8.03 8.03 0 00-11.3 0l-42.4 42.3a8.03 8.03 0 000 11.3L734 787.6l-43.9 43.9a8.01 8.01 0 004.7 13.6L855 864c5.1.6 9.5-3.7 8.9-8.9L845 694.9zm-463.7-94.6a8.03 8.03 0 00-11.3 0L236.3 733.9l-43.7-43.7a8.01 8.01 0 00-13.6 4.7L160.1 855c-.6 5.1 3.7 9.5 8.9 8.9L329.2 845c6.6-.8 9.4-8.9 4.7-13.6L290 787.6 423.7 654c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.4z"}}]},name:"fullscreen",theme:"outlined"};const bn=gn;var yn=function(n,s){return g.createElement(oe,ie({},n,{ref:s,icon:bn}))},kn=g.forwardRef(yn);const jn=kn;var xn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"};const vn=xn;var wn=function(n,s){return g.createElement(oe,ie({},n,{ref:s,icon:vn}))},Tn=g.forwardRef(wn);const Ln=Tn;var On={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"};const An=On;var Un=function(n,s){return g.createElement(oe,ie({},n,{ref:s,icon:An}))},$n=g.forwardRef(Un);const Sn=$n;var In={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372 0-89 31.3-170.8 83.5-234.8l523.3 523.3C682.8 852.7 601 884 512 884zm288.5-137.2L277.2 223.5C341.2 171.3 423 140 512 140c205.4 0 372 166.6 372 372 0 89-31.3 170.8-83.5 234.8z"}}]},name:"stop",theme:"outlined"};const _n=In;var En=function(n,s){return g.createElement(oe,ie({},n,{ref:s,icon:_n}))},Fn=g.forwardRef(En);const Nn=Fn;function ut(e,n=!1){const s=e.length;let t=0,l="",o=0,c=16,i=0,a=0,f=0,u=0,p=0;function j(m,x){let d=0,y=0;for(;d=48&&b<=57)y=y*16+b-48;else if(b>=65&&b<=70)y=y*16+b-65+10;else if(b>=97&&b<=102)y=y*16+b-97+10;else break;t++,d++}return d=s){m+=e.substring(x,t),p=2;break}const d=e.charCodeAt(t);if(d===34){m+=e.substring(x,t),t++;break}if(d===92){if(m+=e.substring(x,t),t++,t>=s){p=2;break}switch(e.charCodeAt(t++)){case 34:m+='"';break;case 92:m+="\\";break;case 47:m+="/";break;case 98:m+="\b";break;case 102:m+="\f";break;case 110:m+=` +`;break;case 114:m+="\r";break;case 116:m+=" ";break;case 117:const b=j(4,!0);b>=0?m+=String.fromCharCode(b):p=4;break;default:p=5}x=t;continue}if(d>=0&&d<=31)if(de(d)){m+=e.substring(x,t),p=2;break}else p=6;t++}return m}function v(){if(l="",p=0,o=t,a=i,u=f,t>=s)return o=s,c=17;let m=e.charCodeAt(t);if(Le(m)){do t++,l+=String.fromCharCode(m),m=e.charCodeAt(t);while(Le(m));return c=15}if(de(m))return t++,l+=String.fromCharCode(m),m===13&&e.charCodeAt(t)===10&&(t++,l+=` +`),i++,f=t,c=14;switch(m){case 123:return t++,c=1;case 125:return t++,c=2;case 91:return t++,c=3;case 93:return t++,c=4;case 58:return t++,c=6;case 44:return t++,c=5;case 34:return t++,l=k(),c=10;case 47:const x=t-1;if(e.charCodeAt(t+1)===47){for(t+=2;t=12&&m<=15);return m}return{setPosition:T,getPosition:()=>t,scan:n?A:v,getToken:()=>c,getTokenValue:()=>l,getTokenOffset:()=>o,getTokenLength:()=>t-o,getTokenStartLine:()=>a,getTokenStartCharacter:()=>o-u,getTokenError:()=>p}}function Le(e){return e===32||e===9}function de(e){return e===10||e===13}function te(e){return e>=48&&e<=57}var De;(function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"})(De||(De={}));const M=new Array(20).fill(0).map((e,n)=>" ".repeat(n)),ne=200,Pe={" ":{"\n":new Array(ne).fill(0).map((e,n)=>` +`+" ".repeat(n)),"\r":new Array(ne).fill(0).map((e,n)=>"\r"+" ".repeat(n)),"\r\n":new Array(ne).fill(0).map((e,n)=>`\r +`+" ".repeat(n))}," ":{"\n":new Array(ne).fill(0).map((e,n)=>` +`+" ".repeat(n)),"\r":new Array(ne).fill(0).map((e,n)=>"\r"+" ".repeat(n)),"\r\n":new Array(ne).fill(0).map((e,n)=>`\r +`+" ".repeat(n))}},Vn=[` +`,"\r",`\r +`];function dt(e,n,s){let t,l,o,c,i;if(n){for(c=n.offset,i=c+n.length,o=c;o>0&&!xe(e,o-1);)o--;let d=i;for(;d1)return se(a,u)+se(j,t+p);const d=j.length*(t+p);return!f||d>Pe[T][a].length?a+se(j,t+p):d<=0?a:Pe[T][a][d]}function L(){let d=h.scan();for(u=0;d===15||d===14;)d===14&&s.keepLines?u+=1:d===14&&(u=1),d=h.scan();return k=d===16||h.getTokenError()!==0,d}const A=[];function m(d,y,b){!k&&(!n||yc)&&e.substring(y,b)!==d&&A.push({offset:y,length:b-y,content:d})}let x=L();if(s.keepLines&&u>0&&m(se(a,u),0,0),x!==17){let d=h.getTokenOffset()+o,y=j.length*t<20&&s.insertSpaces?M[j.length*t]:se(j,t);m(y,o,d)}for(;x!==17;){let d=h.getTokenOffset()+h.getTokenLength()+o,y=L(),b="",U=!1;for(;u===0&&(y===12||y===13);){let Q=h.getTokenOffset()+o;m(M[1],d,Q),d=h.getTokenOffset()+h.getTokenLength()+o,U=y===12,b=U?v():"",y=L()}if(y===2)x!==1&&p--,s.keepLines&&u>0||!s.keepLines&&x!==1?b=v():s.keepLines&&(b=M[1]);else if(y===4)x!==3&&p--,s.keepLines&&u>0||!s.keepLines&&x!==3?b=v():s.keepLines&&(b=M[1]);else{switch(x){case 3:case 1:p++,s.keepLines&&u>0||!s.keepLines?b=v():b=M[1];break;case 5:s.keepLines&&u>0||!s.keepLines?b=v():b=M[1];break;case 12:b=v();break;case 13:u>0?b=v():U||(b=M[1]);break;case 6:s.keepLines&&u>0?b=v():U||(b=M[1]);break;case 10:s.keepLines&&u>0?b=v():y===6&&!U&&(b="");break;case 7:case 8:case 9:case 11:case 2:case 4:s.keepLines&&u>0?b=v():(y===12||y===13)&&!U?b=M[1]:y!==5&&y!==17&&(k=!0);break;case 16:k=!0;break}u>0&&(y===12||y===13)&&(b=v())}y===17&&(s.keepLines&&u>0?b=v():b=s.insertFinalNewline?a:"");const _=h.getTokenOffset()+o;m(b,d,_),x=y}return A}function se(e,n){let s="";for(let t=0;t{const a={};c(a),o.push(l),l=a,t=null},onObjectProperty:a=>{t=a},onObjectEnd:()=>{l=o.pop()},onArrayBegin:()=>{const a=[];c(a),o.push(l),l=a,t=null},onArrayEnd:()=>{l=o.pop()},onLiteralValue:c,onError:(a,f,u)=>{n.push({error:a,offset:f,length:u})}},s),l[0]}function ft(e,n=[],s=he.DEFAULT){let t={type:"array",offset:-1,length:-1,children:[],parent:void 0};function l(a){t.type==="property"&&(t.length=a-t.offset,t=t.parent)}function o(a){return t.children.push(a),a}mt(e,{onObjectBegin:a=>{t=o({type:"object",offset:a,length:-1,parent:t,children:[]})},onObjectProperty:(a,f,u)=>{t=o({type:"property",offset:f,length:-1,parent:t,children:[]}),t.children.push({type:"string",value:a,offset:f,length:u,parent:t})},onObjectEnd:(a,f)=>{l(a+f),t.length=a+f-t.offset,t=t.parent,l(a+f)},onArrayBegin:(a,f)=>{t=o({type:"array",offset:a,length:-1,parent:t,children:[]})},onArrayEnd:(a,f)=>{t.length=a+f-t.offset,t=t.parent,l(a+f)},onLiteralValue:(a,f,u)=>{o({type:Rn(a),offset:f,length:u,parent:t,value:a}),l(f+u)},onSeparator:(a,f,u)=>{t.type==="property"&&(a===":"?t.colonOffset=f:a===","&&l(f))},onError:(a,f,u)=>{n.push({error:a,offset:f,length:u})}},s);const i=t.children[0];return i&&delete i.parent,i}function Ue(e,n){if(!e)return;let s=e;for(let t of n)if(typeof t=="string"){if(s.type!=="object"||!Array.isArray(s.children))return;let l=!1;for(const o of s.children)if(Array.isArray(o.children)&&o.children[0].value===t&&o.children.length===2){s=o.children[1],l=!0;break}if(!l)return}else{const l=t;if(s.type!=="array"||l<0||!Array.isArray(s.children)||l>=s.children.length)return;s=s.children[l]}return s}function mt(e,n,s=he.DEFAULT){const t=ut(e,!1),l=[];function o(w){return w?()=>w(t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter()):()=>!0}function c(w){return w?()=>w(t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter(),()=>l.slice()):()=>!0}function i(w){return w?O=>w(O,t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter()):()=>!0}function a(w){return w?O=>w(O,t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter(),()=>l.slice()):()=>!0}const f=c(n.onObjectBegin),u=a(n.onObjectProperty),p=o(n.onObjectEnd),j=c(n.onArrayBegin),T=o(n.onArrayEnd),h=a(n.onLiteralValue),k=i(n.onSeparator),v=o(n.onComment),L=i(n.onError),A=s&&s.disallowComments,m=s&&s.allowTrailingComma;function x(){for(;;){const w=t.scan();switch(t.getTokenError()){case 4:d(14);break;case 5:d(15);break;case 3:d(13);break;case 1:A||d(11);break;case 2:d(12);break;case 6:d(16);break}switch(w){case 12:case 13:A?d(10):v();break;case 16:d(1);break;case 15:case 14:break;default:return w}}}function d(w,O=[],q=[]){if(L(w),O.length+q.length>0){let B=t.getToken();for(;B!==17;){if(O.indexOf(B)!==-1){x();break}else if(q.indexOf(B)!==-1)break;B=x()}}}function y(w){const O=t.getTokenValue();return w?h(O):(u(O),l.push(O)),x(),!0}function b(){switch(t.getToken()){case 11:const w=t.getTokenValue();let O=Number(w);isNaN(O)&&(d(2),O=0),h(O);break;case 7:h(null);break;case 8:h(!0);break;case 9:h(!1);break;default:return!1}return x(),!0}function U(){return t.getToken()!==10?(d(3,[],[2,5]),!1):(y(!1),t.getToken()===6?(k(":"),x(),S()||d(4,[],[2,5])):d(5,[],[2,5]),l.pop(),!0)}function _(){f(),x();let w=!1;for(;t.getToken()!==2&&t.getToken()!==17;){if(t.getToken()===5){if(w||d(4,[],[]),k(","),x(),t.getToken()===2&&m)break}else w&&d(6,[],[]);U()||d(4,[],[2,5]),w=!0}return p(),t.getToken()!==2?d(7,[2],[]):x(),!0}function Q(){j(),x();let w=!0,O=!1;for(;t.getToken()!==4&&t.getToken()!==17;){if(t.getToken()===5){if(O||d(4,[],[]),k(","),x(),t.getToken()===4&&m)break}else O&&d(6,[],[]);w?(l.push(0),w=!1):l[l.length-1]++,S()||d(4,[],[4,5]),O=!0}return T(),w||l.pop(),t.getToken()!==4?d(8,[4],[]):x(),!0}function S(){switch(t.getToken()){case 3:return Q();case 1:return _();case 10:return y(!0);default:return b()}}return x(),t.getToken()===17?s.allowEmptyContent?!0:(d(4,[],[]),!1):S()?(t.getToken()!==17&&d(9,[],[]),!0):(d(4,[],[]),!1)}function Rn(e){switch(typeof e){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":{if(e){if(Array.isArray(e))return"array"}else return"null";return"object"}default:return"null"}}function Dn(e,n,s,t){const l=n.slice(),c=ft(e,[]);let i,a;for(;l.length>0&&(a=l.pop(),i=Ue(c,l),i===void 0&&s!==void 0);)typeof a=="string"?s={[a]:s}:s=[s];if(i)if(i.type==="object"&&typeof a=="string"&&Array.isArray(i.children)){const f=Ue(i,[a]);if(f!==void 0)if(s===void 0){if(!f.parent)throw new Error("Malformed AST");const u=i.children.indexOf(f.parent);let p,j=f.parent.offset+f.parent.length;if(u>0){let T=i.children[u-1];p=T.offset+T.length}else p=i.offset+1,i.children.length>1&&(j=i.children[1].offset);return ee(e,{offset:p,length:j-p,content:""},t)}else return ee(e,{offset:f.offset,length:f.length,content:JSON.stringify(s)},t);else{if(s===void 0)return[];const u=`${JSON.stringify(a)}: ${JSON.stringify(s)}`,p=t.getInsertionIndex?t.getInsertionIndex(i.children.map(T=>T.children[0].value)):i.children.length;let j;if(p>0){let T=i.children[p-1];j={offset:T.offset+T.length,length:0,content:","+u}}else i.children.length===0?j={offset:i.offset+1,length:0,content:u}:j={offset:i.offset+1,length:0,content:u+","};return ee(e,j,t)}}else if(i.type==="array"&&typeof a=="number"&&Array.isArray(i.children)){const f=a;if(f===-1){const u=`${JSON.stringify(s)}`;let p;if(i.children.length===0)p={offset:i.offset+1,length:0,content:u};else{const j=i.children[i.children.length-1];p={offset:j.offset+j.length,length:0,content:","+u}}return ee(e,p,t)}else if(s===void 0&&i.children.length>=0){const u=a,p=i.children[u];let j;if(i.children.length===1)j={offset:i.offset+1,length:i.length-2,content:""};else if(i.children.length-1===u){let T=i.children[u-1],h=T.offset+T.length,k=i.offset+i.length;j={offset:h,length:k-2-h,content:""}}else j={offset:p.offset,length:i.children[u+1].offset-p.offset,content:""};return ee(e,j,t)}else if(s!==void 0){let u;const p=`${JSON.stringify(s)}`;if(!t.isArrayInsertion&&i.children.length>a){const j=i.children[a];u={offset:j.offset,length:j.length,content:p}}else if(i.children.length===0||a===0)u={offset:i.offset+1,length:0,content:i.children.length===0?p:p+","};else{const j=a>i.children.length?i.children.length:a,T=i.children[j-1];u={offset:T.offset+T.length,length:0,content:","+p}}return ee(e,u,t)}else throw new Error(`Can not ${s===void 0?"remove":t.isArrayInsertion?"insert":"modify"} Array index ${f} as length is not sufficient`)}else throw new Error(`Can not add ${typeof a!="number"?"index":"property"} to parent of type ${i.type}`);else{if(s===void 0)throw new Error("Can not delete in empty document");return ee(e,{offset:c?c.offset:0,length:c?c.length:0,content:JSON.stringify(s)},t)}}function ee(e,n,s){if(!s.formattingOptions)return[n];let t=$e(e,n),l=n.offset,o=n.offset+n.content.length;if(n.length===0||n.content.length===0){for(;l>0&&!xe(t,l-1);)l--;for(;o=0;a--){const f=c[a];t=$e(t,f),l=Math.min(l,f.offset),o=Math.max(o,f.offset+f.length),o+=f.content.length-f.length}const i=e.length-(t.length-o)-l;return[{offset:l,length:i,content:t.substring(l,o)}]}function $e(e,n){return e.substring(0,n.offset)+n.content+e.substring(n.offset+n.length)}var He;(function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"})(He||(He={}));var Je;(function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"})(Je||(Je={}));const Pn=Mn,Hn=ft,Jn=Ue;var We;(function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"})(We||(We={}));function Wn(e,n,s){return dt(e,n,s)}function ye(e,n,s,t){return Dn(e,n,s,t)}function Be(e,n){let s=n.slice(0).sort((l,o)=>{const c=l.offset-o.offset;return c===0?l.length-o.length:c}),t=e.length;for(let l=s.length-1;l>=0;l--){let o=s[l];if(o.offset+o.length<=t)e=$e(e,o);else throw new Error("Overlapping edit");t=o.offset}return e}const qn=["_id_","_key_","_type_"],Se=e=>JSON.stringify(e,null,4),me=e=>{const n={...e};for(const s of qn)delete n[s];return Se(n)},Zn=e=>Be(e,Wn(e,void 0,{tabSize:4,insertSpaces:!0})),K=e=>{const n=[],s=Pn(e,n,{allowTrailingComma:!0});if(n.length)throw console.error(n),n[0];return s},Gn=(e,n)=>{const s=[],t=ye.bind(null,e);return n.forEach(({path:l,value:o,options:c},i)=>{l=Array.isArray(l)?l:l.split("."),s.push(...t(l,o,c||{}))}),Be(e,s)},Qn=(e,n)=>{const s=URL.createObjectURL(new Blob([e])),t=document.createElement("a");t.download=n,t.href=s,t.click(),URL.revokeObjectURL(s)};function Ie(e,n,s){const t=e!==void 0,l=n!==void 0,[o,c]=g.useState(t?e:l?n:s),i=g.useRef({value:o,setValue:f=>{let u;typeof f=="function"?u=f(i.current.value):u=f,i.current.value=u,c(u)}});return[g.useMemo(()=>{const u=e!==void 0?e:o;return i.current.value=u,u},[e,o]),i.current.setValue]}const Xn={zh:"zh-cn",en:""};(function(){const e=window.require;if(e){const n=Ot();e.config({"vs/nls":{availableLanguages:{"*":Xn[n.resolvedLanguage]??""}}})}window.monacoIsReady=new Promise((n,s)=>{if(!e)return s("Not loaded monaco loader.js");e(["vs/editor/editor.main"],function(){n(monaco)})})})();monacoIsReady.then(()=>{monaco.languages.json.jsonDefaults.setDiagnosticsOptions({allowComments:!0,trailingCommas:"warning",validate:!0})});const Yn={minimap:{enabled:!1},automaticLayout:!0},Kn=(e,n)=>{const{onChange:s,options:t,height:l,className:o,theme:c,style:i}=e,{t:a}=G(),[f,u]=Ie(e.language,"javascript"),[p,j]=Ie(e.value,e.defaultValue,""),[T,h]=g.useState(!1),k=g.useRef(null),v=g.useRef(null),L=g.useRef({}),A=At(),m=g.useMemo(()=>c||(A?"vs-dark":"vs"),[c,A]);return pe.useImperativeHandle(n,()=>v.current),pe.useImperativeHandle(L,()=>({onChange:s}),[s]),g.useEffect(()=>{monacoIsReady.then(()=>{h(!0)})},[]),g.useEffect(()=>{if(T&&k.current){const x=k.current;let d;return monacoIsReady.then(()=>{d=v.current=monaco.editor.create(x,{value:p,language:f,theme:m,...Yn,...t}),d.onDidChangeModelContent(function(y){var U,_;const b=d.getValue();j(b),(_=(U=L.current)==null?void 0:U.onChange)==null||_.call(U,b)}),d.addCommand(monaco.KeyMod.Alt|monaco.KeyCode.KeyX,y=>{var b;(b=d.getAction("my-autoWrap-toggle"))==null||b.run()}),d.addAction({id:"my-autoWrap-toggle",label:a("msg.wordWrap"),keybindings:[monaco.KeyMod.Alt|monaco.KeyCode.KeyZ],run:function(y,b){const U=y.getOption(monaco.editor.EditorOption.wordWrap);y.updateOptions({wordWrap:U==="on"?"off":"on"})}})}),()=>{var y;(y=d==null?void 0:d.dispose)==null||y.call(d)}}},[T]),g.useEffect(()=>{if(v.current){const x=v.current;p!=x.getValue()&&x.executeEdits(null,[{range:x.getModel().getFullModelRange(),text:p,forceMoveMarkers:!1}])}},[p]),T?r.jsx("div",{className:je(o),style:{height:l||"100%",minHeight:0,minWidth:0,boxSizing:"border-box",...i},ref:k}):r.jsx(Ve.TextArea,{style:{height:l||"100%"},className:je(o),value:p,onChange:x=>{var y,b;const d=x.target.value;j(d),(b=(y=L.current)==null?void 0:y.onChange)==null||b.call(y,d)}})},pt=pe.forwardRef(Kn),Cn=e=>{const{onFinish:n,trigger:s,open:t,onOpenChange:l,modalProps:o,title:c,width:i,formRef:a,children:f,isFull:u,...p}=e,[j,T]=Ie(t,!1),[h]=Y.useForm(),k=g.useCallback(()=>{var m;T(!1),l==null||l(!1),(m=o==null?void 0:o.onCancel)==null||m.call(o,{})},[l]),v=g.useCallback(()=>{var m;h.resetFields(),(m=o==null?void 0:o.afterClose)==null||m.call(o)},[h,o]),L=g.useMemo(()=>async function(m){await(n==null?void 0:n.apply(null,[m]))===!0&&k()},[n,k]),A=g.useMemo(()=>{const m=je(o==null?void 0:o.className,{"full-modal":u});return{...o,className:m,onCancel:k,onOk:()=>{h.submit()},afterClose:v,open:j,title:c,width:i}},[v,h,o,k,j,c,i,u]);return g.useEffect(()=>{if(!a)return;switch(typeof a){case"function":a(h);break;case"object":a.current=h;break}},[h,a]),r.jsxs(r.Fragment,{children:[r.jsx(ze,{...A,children:r.jsx(Y,{form:h,onFinish:L,...p,children:f})}),s&&pe.cloneElement(s,{onClick:()=>{T(!0)}})]})};let be;const es=new Uint8Array(16);function ts(){if(!be&&(be=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!be))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return be(es)}const I=[];for(let e=0;e<256;++e)I.push((e+256).toString(16).slice(1));function ns(e,n=0){return I[e[n+0]]+I[e[n+1]]+I[e[n+2]]+I[e[n+3]]+"-"+I[e[n+4]]+I[e[n+5]]+"-"+I[e[n+6]]+I[e[n+7]]+"-"+I[e[n+8]]+I[e[n+9]]+"-"+I[e[n+10]]+I[e[n+11]]+I[e[n+12]]+I[e[n+13]]+I[e[n+14]]+I[e[n+15]]}const ss=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),qe={randomUUID:ss};function ls(e,n,s){if(qe.randomUUID&&!n&&!e)return qe.randomUUID();e=e||{};const t=e.random||(e.rng||ts)();if(t[6]=t[6]&15|64,t[8]=t[8]&63|128,n){s=s||0;for(let l=0;l<16;++l)n[s+l]=t[l];return n}return ns(t)}const ht=e=>{const{children:n,label:s,...t}=e,{json:l,cli:o}=e,c=ls();if(n)return{key:c,...t,label:Re(s),children:n.map(ht)};if(l)return{key:c,...t,label:Re(s),title:o}},le=e=>{const{templates:n,modalProps:s,...t}=e,{t:l}=G(),o=g.useRef(),c=g.useRef(null),[i,a]=g.useState(!1),f=T=>{var k,v,L;let h=T;if((k=e.initialValues)!=null&&k.value){const A=K(e.initialValues.value);h=A.name?Gn(T,[{path:"name",value:A.name}]):T}h=Zn(h),(v=o.current)==null||v.setFieldValue("value",h),(L=o.current)==null||L.validateFields()},u=g.useMemo(()=>n==null?void 0:n.map(ht),[n]),p=g.useCallback(T=>{var h,k;(k=(h=c.current)==null?void 0:h.getAction(T))==null||k.run()},[]),j=n==null?void 0:n.length;return r.jsx(r.Fragment,{children:r.jsx(Cn,{...t,isFull:i,formRef:o,modalProps:{destroyOnClose:!0,maskClosable:!1,...s,footer:(T,{OkBtn:h,CancelBtn:k})=>r.jsxs(r.Fragment,{children:[r.jsx(F,{onClick:()=>{var v;return(v=o.current)==null?void 0:v.resetFields()},children:l("base.cmd.reset")}),r.jsx(k,{}),r.jsx(h,{})]})},children:r.jsxs(ue,{style:{height:"100%"},vertical:!0,children:[r.jsxs(ue,{style:{paddingBottom:5},justify:"space-between",align:"center",children:[r.jsx(ue,{gap:"small",children:j?r.jsx(at,{menu:{items:u,onClick:function(T){var v;const k=(v=T.keyPath.reverse().reduce((L,A)=>{var m;if(Array.isArray(L))return L==null?void 0:L.find(x=>x.key===A);if(L.children)return(m=L.children)==null?void 0:m.find(x=>x.key===A)},u))==null?void 0:v.json;k&&f(k)}},children:r.jsx(F,{type:"link",size:"small",children:r.jsxs(R,{children:[l("terms.template"),r.jsx(Rt,{})]})})}):null}),r.jsx(ue,{gap:"small",children:r.jsxs(R.Compact,{size:"small",children:[r.jsx(F,{icon:r.jsx(Dt,{}),onClick:()=>p("editor.action.fontZoomOut")}),r.jsx(F,{icon:r.jsx(Pt,{}),onClick:()=>p("editor.action.fontZoomIn")}),r.jsx(F,{icon:i?r.jsx(hn,{}):r.jsx(jn,{}),onClick:()=>a(T=>!T)})]})})]}),r.jsx(ue,{flex:"100%",vertical:!0,children:r.jsx(Y.Item,{noStyle:!0,name:"value",children:r.jsx(pt,{ref:c,className:"g-boder",height:i?"100%":300,language:"json",options:{minimap:{enabled:!1}}})})}),r.jsx(Y.Item,{className:"form-only-error",name:"value",rules:[{required:!0,message:l("msg.require")},{validator:(T,h)=>new Promise((k,v)=>{h&&K(h),k(null)}).catch(k=>{throw console.error(k),new Error(l("msg.formatError",{name:"JSON"}))})}]})]})})})};le.show=e=>{const{onOpenChange:n,open:s,...t}=e;let l;const o=document.createDocumentFragment(),c=Ut.createRoot(o);function i({...f}){clearTimeout(l);const u=Ht();l=setTimeout(()=>{document.body.append(o),c.render(r.jsx(Jt,{theme:u.getTheme(),children:r.jsx(le,{...f})}))},100)}function a(){c.unmount(),document.body.removeChild(o)}i({...t,open:!0,onOpenChange:f=>{!f&&a()}})};const gt=`{ + "services": [ + { + "name": "service-0", + "addr": ":8080", + // "interface": "eth0", + // "admission": "admission-0", + // "bypass": "bypass-0", + // "resolver": "resolver-0", + // "hosts": "hosts-0", + "handler": { + "type": "auto", + // "auth": { + // "username": "gost", + // "password": "gost" + // }, + // "auther": "auther-0", + // "retries": 1, + // "chain": "chain-0", + // "metadata": { + // "bar": "baz", + // "foo": "bar" + // } + }, + "listener": { + "type": "tcp", + // "auth": { + // "username": "user", + // "password": "pass" + // }, + // "auther": "auther-0", + // "chain": "chain-0", + // "tls": { + // "certFile": "cert.pem", + // "keyFile": "key.pem", + // "caFile": "ca.pem" + // }, + // "metadata": { + // "abc": "xyz", + // "def": 456 + // } + }, + // "forwarder": { + // "nodes": [ + // { + // "name": "target-0", + // "addr": "192.168.1.1:1234" + // }, + // { + // "name": "target-1", + // "addr": "192.168.1.2:2345" + // } + // ], + // "selector": { + // "strategy": "round", + // "maxFails": 1, + // "failTimeout": 30 + // } + // } + } + ], + "chains": [ + { + "name": "chain-0", + // "selector": { + // "strategy": "round", + // "maxFails": 1, + // "failTimeout": 30 + // }, + "hops": [ + { + "name": "hop-0", + // "interface": "192.168.1.2", + // "selector": { + // "strategy": "rand", + // "maxFails": 3, + // "failTimeout": 60 + // }, + // "bypass": "bypass-0", + "nodes": [ + { + "name": "node-0", + "addr": ":1080", + // "interface": "eth1", + // "bypass": "bypass-0", + "connector": { + "type": "socks5", + "auth": { + "username": "user", + "password": "pass" + }, + // "metadata": { + // "foo": "bar" + // } + }, + "dialer": { + "type": "tcp", + // "auth": { + // "username": "user", + // "password": "pass" + // }, + // "tls": { + // "caFile": "ca.pem", + // "secure": true, + // "serverName": "example.com" + // }, + // "metadata": { + // "bar": "baz" + // } + } + } + ] + } + ] + } + ], + "authers": [ + { + "name": "auther-0", + "auths": [ + { + "username": "user1", + "password": "pass1" + }, + { + "username": "user2", + "password": "pass2" + } + ] + } + ], + "admissions": [ + { + "name": "admission-0", + "whitelist": false, + "matchers": [ + "127.0.0.1", + "192.168.0.0/16" + ] + } + ], + "bypasses": [ + { + "name": "bypass-0", + "whitelist": false, + "matchers": [ + "*.example.com", + ".example.org", + "0.0.0.0/8" + ] + } + ], + "resolvers": [ + { + "name": "resolver-0", + "nameservers": [ + { + "addr": "udp://8.8.8.8:53", + "chain": "chain-0", + "prefer": "ipv4", + "clientIP": "1.2.3.4", + "ttl": 60, + "timeout": 30 + }, + { + "addr": "tcp://1.1.1.1:53" + }, + { + "addr": "tls://1.1.1.1:853" + }, + { + "addr": "https://1.0.0.1/dns-query", + "hostname": "cloudflare-dns.com" + } + ] + } + ], + "hosts": [ + { + "name": "hosts-0", + "mappings": [ + { + "ip": "127.0.0.1", + "hostname": "localhost" + }, + { + "ip": "192.168.1.10", + "hostname": "foo.mydomain.org", + "aliases": [ + "foo" + ] + }, + { + "ip": "192.168.1.13", + "hostname": "bar.mydomain.org", + "aliases": [ + "bar", + "baz" + ] + } + ] + } + ], + "tls": { + "certFile": "cert.pem", + "keyFile": "key.pem", + "caFile": "ca.pem" + }, + "log": { + "output": "stderr", + "level": "debug", + "format": "json", + "rotation": { + "maxSize": 100, + "maxAge": 10, + "maxBackups": 3, + "localTime": false, + "compress": false + } + }, + "profiling": { + "addr": ":6060", + "enabled": true + }, + "api": { + "addr": ":18080", + "pathPrefix": "/api", + "accesslog": true, + "auth": { + "username": "user", + "password": "password" + }, + "auther": "auther-0" + }, + "metrics": { + "addr": ":9000", + "path": "/metrics" + } +}`,rs={en:"Default",zh:"默认"},os={admissions:"https://gost.run/concepts/admission/",authers:"https://gost.run/concepts/auth/",bypasses:"https://gost.run/concepts/bypass/",chains:"https://gost.run/concepts/chain/",hops:"https://gost.run/concepts/hop/",hosts:"https://gost.run/concepts/hosts/",ingresses:"https://gost.run/concepts/ingress/",observers:"https://gost.run/concepts/observer/",resolvers:"https://gost.run/concepts/resolver/",limiters:"https://gost.run/concepts/limiter/",rlimiter:"https://gost.run/concepts/limiter/",climiter:"https://gost.run/concepts/limiter/",routers:"https://gost.run/concepts/router/",sds:"https://gost.run/concepts/sd/",services:"https://gost.run/concepts/service/"},is=[],Ze=Hn(gt,is,{allowTrailingComma:!0}),as=e=>{if(!Ze)return;const n=Jn(Ze,[e,0]);if(n){const{offset:s,length:t}=n;return gt.substring(s,s+t)}},N=(e,n=rs)=>{const s=as(e),t=os[e],l="// "+t+` +`;let o;return s&&(o={label:n,json:l+s}),{def:o,docUrl:t,_docUrl:l}},cs=e=>`{ + "name": "${e}-0", + "file": { + "path": "/path/to/file" + } + }`,us=(e,n)=>`{ + "name": "${e}-0", + "redis": { + "addr": "127.0.0.1:6379", + "db": "1", + "password": "123456", + ${n?`"type": "${n}",`:""} + "key": "gost:${e}-0" + } + }`,ds=e=>`{ + "name": "${e}-0", + "http": { + "url": "http://127.0.0.1:8000", + "timeout": "10s" + } + }`,bt=e=>`{ + "name": "${e}-0", + "plugin": { + "type": "grpc", + // "type": "http", + "addr": "127.0.0.1:8000", + "token": "gost", + // "tls": {} + } + }`,W=(e,n="",s)=>{const t=n?`// ${n} +`:"";return[{label:"File",json:t+cs(e)},{label:"Redis",json:t+us(e,s==null?void 0:s.redisType)},{label:"HTTP",json:t+ds(e)},{label:"Plugin",json:t+bt(e)}]},{def:Ge,docUrl:fs,_docUrl:ms}=N("admissions"),ps=[Ge||{label:{zh:"内联",en:"Inline"},json:ms+` + { + "name": "admission-0", + "matchers": [ + "127.0.0.1", + "192.168.0.0/16", + "example.com" + ] + }`},...W("admission",fs)],{def:hs,docUrl:gs}=N("authers"),bs=[hs,...W("auther",gs)],{def:ys,docUrl:hl,_docUrl:ks}=N("chains"),js=[ys,{label:{zh:"典型转发链",en:"Typical"},cli:"",json:ks+` +{ + "name": "chain-0", + "hops": [ + { + "name": "hop-0", + "nodes": [ + { + "name": "node-0", + "addr": "proxy.xxx.com:1080", + "connector": { + "type": "socks5", + "auth": { + "username": "username", + "password": "password" + } + }, + "dialer": { + "type": "tcp", + "tls": { + "serverName": "proxy.xxx.com" + } + } + } + ] + } + ] +} + `}],{def:Qe,docUrl:xs,_docUrl:vs}=N("bypasses"),ws=[Qe||{label:{zh:"内联",en:"Inline"},json:vs+` + { + "name": "bypass-0", + "matchers": [ + "127.0.0.1", + "172.10.0.0/16", + "localhost", + "*.example.com", + ".example.org" + ] + }`},...W("bypass",xs)],{def:Xe,docUrl:Ts,_docUrl:Ls}=N("hops"),Os=[Xe||{label:{zh:"内联",en:"Inline"},json:Ls+` + { + "name": "hop-0", + "nodes": [ + { + "name": "node-0", + "addr": ":8888", + "connector": { + "type": "http" + }, + "dialer": { + "type": "tcp" + } + }, + { + "name": "node-1", + "addr": ":9999", + "connector": { + "type": "socks5" + }, + "dialer": { + "type": "tcp" + } + } + ] + }`},...W("hop",Ts)],{def:Ye,docUrl:As,_docUrl:Us}=N("hosts"),$s=[Ye||{label:{zh:"内联",en:"Inline"},json:Us+` +{ + "name": "hosts-0", + "mappings": [ + { + "ip": "127.0.0.1", + "hostname": "example.com" + }, + { + "ip": "2001:db8::1", + "hostname": "example.com" + } + ] +}`},...W("hosts",As)],{def:Ke,docUrl:Ss,_docUrl:Is}=N("ingresses"),_s=[Ke||{label:{zh:"内联",en:"Inline"},json:Is+`{ + "name": "ingress-0", + "rules": [ + { + "hostname": "example.com", + "endpoint": "4d21094e-b74c-4916-86c1-d9fa36ea677b" + }, + { + "hostname": "example.org", + "endpoint": "ac74d9dd-3125-442a-a7c1-f9e49e05faca" + } + ] + }`},...W("ingress",Ss,{redisType:"hash"})],{def:Ce,docUrl:Es,_docUrl:Fs}=N("routers"),Ns=[Ce||{label:{zh:"内联",en:"Inline"},json:Fs+` + { + "name": "router-0", + "routes": [ + { + "net": "192.168.1.0/24", + "gateway": "192.168.123.2" + }, + { + "net": "172.10.0.0/16", + "gateway": "192.168.123.3" + } + ] + }`},...W("router",Es)],{def:Vs,docUrl:gl,_docUrl:ke}=N("services"),P=(e,n,s)=>{let t=ke+` + { + "name": "service-0", + "addr": ":1080", + "handler": { + "type": "${e}", + // "auth": { + // "username": "user", + // "password": "password" + // } + }, + "listener": { + "type": "${n}" + } + }`;if(s){const l=ye(t,["metadata"],s,{});l.push(...ye(t,["handler","metadata"],s,{})),l.push(...ye(t,["listener","metadata"],s,{})),t=Be(t,l)}return t},zs=[Vs,{label:{zh:"端口转发",en:"Port Forwarding"},cli:"-L tcp://:80/:8080",json:ke+` + { + "name": "service-0", + "addr": ":80", + "handler": { + "type": "tcp" + }, + "listener": { + "type": "tcp" + }, + "forwarder": { + "nodes": [ + { + "name": "target-0", + "addr": ":8080" + } + ] + } + }`},{label:{zh:"反向代理",en:"Reverse Proxy"},cli:"",json:ke+` + { + "name": "service-0", + "addr": ":80", + "handler": { + "type": "tcp", + "metadata": { + "sniffing": "true" + } + }, + "listener": { + "type": "tcp" + }, + "forwarder": { + "nodes": [ + { + "name": "target-1", + "addr": "www.baidu.com:80", + // "host": "myhost.com", + // "path": "/" + "http": { + "host": "www.baidu.com" + } + } + ] + } + }`},{label:{zh:"代理服务",en:"Proxy Service"},children:[{label:"http",children:[{label:"http",json:P("http","tcp")},{label:"https(http+tsl)",json:P("http","tls")},{label:"http+wss",json:P("http","wss")},{label:"http2",json:P("http2","http2")}]},{label:"relay",children:[{label:"relay+tcp",json:P("relay","tcp")},{label:"relay+tls",json:P("relay","tls")},{label:"relay+wss",json:P("relay","tls")}]},{label:"socks",children:[{label:"socks4",json:P("socks","tcp")},{label:"socks5",json:P("socks5","tcp")},{label:"socks5(udp)",json:P("socks5","tcp",{udp:"true"})},{label:"socks5+tls",json:P("socks5","tls",{notls:"true"})}]}]},{label:{zh:"代理转发",en:"Porxy Forwarding"},cli:"-L socks5://:1080 -F socks5://xxx.com:1080",json:ke+` + { + "name": "service-0", + "addr": ":1080", + "handler": { + "type": "socks5", + "chain": "chain-0" + }, + "listener": { + "type": "tcp" + } + }`}],{def:et,docUrl:Bs,_docUrl:Ms}=N("climiter"),Rs=[et||{label:{zh:"内联",en:"Inline"},json:Ms+` + { + "name": "climiter-0", + "limits": [ + "$ 1000", + "$$ 100", + "192.168.1.1 10" + ] + }`},...W("climiter",Bs,{redisType:"set"})],{def:tt,docUrl:Ds,_docUrl:Ps}=N("limiters"),Hs=[tt||{label:{zh:"内联",en:"Inline"},json:Ps+` + { + "name": "limiter-0", + "limits": [ + "$ 100MB 100MB", + "$$ 10MB", + "192.168.1.1 512KB 1MB", + "192.168.0.0/16 1MB 5MB" + ] + }`},...W("limiters",Ds,{redisType:"set"})],{def:nt,docUrl:Js,_docUrl:Ws}=N("rlimiter"),qs=[nt||{label:{zh:"内联",en:"Inline"},json:Ws+` + { + "name": "rlimiter-0", + "limits": [ + "$ 100", + "$$ 10", + "192.168.1.1 50", + "192.168.0.0/16 5" + ] + }`},...W("rlimiter",Js,{redisType:"set"})],{def:Zs,docUrl:bl,_docUrl:Gs}=N("resolvers"),Qs=[Zs,{label:"Plugin",json:Gs+bt("resolver")}],{def:st,docUrl:yl,_docUrl:Xs}=N("sds"),Ys=[st||{label:"HTTP Plugin",json:Xs+` + // https://gost.run/concepts/sd/ + { + "name": "sd-0", + "plugin": { + "type": "http", + "addr": "http://127.0.0.1:8000/sd", + // "token": "gost", + // "tls": {} + } + }`}],{def:lt,docUrl:kl,_docUrl:Ks}=N("observers"),Cs=[lt||{label:"Plugin",json:Ks+` + { + "name": "observer-0", + "plugin": { + "type": "grpc", + // "type": "http", + "addr": "127.0.0.1:8000", + "token": "gost", + // "tls": {} + } + }`}],el={admissions:ps,authers:bs,bypasses:ws,chains:js,climiters:Rs,limiters:Hs,rlimiters:qs,hops:Os,hosts:$s,ingresses:_s,resolvers:Qs,routers:Ns,sds:Ys,observers:Cs,services:zs},yt=e=>{const{name:n}=e;return g.useMemo(()=>el[n],[n])},kt=e=>{const{name:n,localApi:s,gostConfig:t,localConfig:l}=e,o=g.useMemo(()=>(t==null?void 0:t[n])||[],[t,n]),c=g.useMemo(()=>s?(l==null?void 0:l[n])||[]:[],[l,n,s]),i=g.useMemo(()=>[...o,...c],[o,c]);return{dataList:o,dataSource:i}},Oe=le.show,ae=pe.createContext({}),rt=(e,n,s)=>JSON.stringify(n),tl=(e,n)=>{var s,t;return((t=(s=e==null?void 0:e.name)==null?void 0:s.toLowerCase())==null?void 0:t.indexOf(n))!==-1},nl=e=>{const{name:n,title:s,api:t,localApi:l,keyName:o,rowKey:c="name",keyword:i,renderConfig:a=rt,filter:f=tl}=e,{t:u}=G(),{localList:p,comm:j}=g.useContext(Fe),{gostConfig:T,localConfig:h}=g.useContext(re),{dataList:k,dataSource:v}=kt({localApi:l,name:o,gostConfig:T,localConfig:h}),L=yt({name:o});Wt.useApp();const{deleteValue:A,updateValue:m,disable:x,enable:d,updateLocal:y,deleteLocal:b,addValue:U}=j,_=g.useRef({dataList:k,dataSource:v});g.useImperativeHandle(_,()=>({dataList:k,dataSource:v}),[k,v]);const Q=g.useMemo(()=>i?v.filter(S=>f(S,i)):v,[v,f,i]);return g.useEffect(()=>{function S({path:w,record:O}){const{dataList:q,dataSource:B}=_.current,Z=q.includes(O),D=O.name,X=w.split(","),wt=X.reduce((C,ce)=>C==null?void 0:C[ce],O),Tt=C=>{let ce=O;X.forEach((Me,Lt)=>{Lt===X.length-1?ce[Me]=C:ce=ce[Me]})};Oe({title:u("base.cmd.edit"),initialValues:{value:me(wt)},onFinish:async C=>(Tt(K(C.value)),Z?await m(D,O):await y(D,O),!0)})}return E.on(`edit:${n}`,S),()=>{E.off(`edit:${n}`,S)}},[n,u,y,m]),r.jsx("div",{style:{height:348,overflow:"auto"},children:r.jsx(qt,{rowKey:S=>S._id_||S.name,scroll:{y:290},size:"small",dataSource:Q,columns:[{title:u("base.form.name"),dataIndex:c,ellipsis:!0,width:100},{title:u("base.form.details"),ellipsis:!0,render:(S,w,O)=>{const B=k.includes(w)?D=>m(w.name,D||w):D=>y(w.name,D||w);let Z;try{Z=a(S,w,O)}catch{Z=rt(S,w)}return r.jsx(ae.Provider,{value:{update:B},children:Z})}},{title:u("base.cmd.controls"),width:l?120:90,align:"right",dataIndex:c,render:(S,w,O)=>{const q=k.includes(w),B={...w};return delete B.status,r.jsxs(R,{size:2,children:[l?q?r.jsx(F,{title:u("base.cmd.disable"),icon:r.jsx(ct,{style:{color:Zt.primary}}),type:"link",size:"small",onClick:async()=>{await x(w)}}):r.jsx(F,{title:u("base.cmd.enabled"),type:"link",icon:r.jsx(Nn,{style:{color:Gt.primary}}),size:"small",onClick:async()=>{await d(w)}}):null,r.jsx(F,{title:u("base.cmd.edit"),icon:r.jsx(Qt,{}),type:"link",size:"small",onClick:()=>{Oe({title:u("title.edit",{name:S||""}),templates:L,initialValues:{value:me(B)},onFinish:async Z=>{const{value:D}=Z,X=K(D);return q?await m(w.name,X):await y(w.name,{...B,...X}),!0}})}}),r.jsx(F,{title:u("base.cmd.copy"),icon:r.jsx(Xt,{}),type:"link",size:"small",onClick:()=>{Oe({title:u("title.copied",{name:S||""}),templates:L,initialValues:{value:me(B)},onFinish:async Z=>{const{value:D}=Z,X=K(D);return await j.addValue(X),!0}})}}),r.jsx(Yt,{title:u("text.warn"),description:u("text.deleteing"),onConfirm:()=>{q?A(w):b(w)},children:r.jsx(F,{title:u("base.cmd.del"),icon:r.jsx(Kt,{}),type:"link",size:"small"})})]})}}],pagination:!1})})},sl=e=>{const{t:n}=G(),{keyName:s,title:t}=e,{comm:l}=g.useContext(Fe),o=yt({name:s}),c={title:n("title.add",{name:t}),templates:o,onFinish:async i=>{const{value:a}=i,f=K(a);return await l.addValue(f),!0}};return r.jsx(F,{icon:r.jsx(Ct,{}),size:"small",onClick:()=>{le.show(c)}})},V=e=>({keyName:e,api:$t[e],localApi:St[e],rowKey:"name"}),ll=[{name:"admission",title:"准入控制器(Admission)",subTitle:"准入控制器",...V("admissions")},{name:"auther",title:"认证器(Auther)",subTitle:"认证器",...V("authers")},{name:"bypass",title:"分流器(Bypass)",subTitle:"分流器",...V("bypasses")},{name:"chain",title:"转发链(Chain)",subTitle:"转发链",...V("chains")},{name:"climiter",title:"并发连接数限制",subTitle:"",...V("climiters")},{name:"limiter",title:"流量速率限制",subTitle:"",...V("limiters")},{name:"rlimiter",title:"请求速率限制",subTitle:"",...V("rlimiters")},{name:"hop",title:"跳跃点(Hop)",subTitle:"跳跃点",...V("hops")},{name:"host",title:"主机映射器(Hosts)",subTitle:"主机映射器",...V("hosts")},{name:"ingress",title:"Ingress",subTitle:"Ingress",...V("ingresses")},{name:"resolver",title:"域名解析器(Resolver)",subTitle:"域名解析器",...V("resolvers")},{name:"service",title:"服务(Service)",subTitle:"服务",...V("services")},{name:"sd",title:"服务发现(SD)",subTitle:"服务发现",...V("sds")},{name:"observer",title:"观测器(Observer)",subTitle:"观测器",...V("observers")}],rl=e=>ll.find(n=>n.name===e),_e=e=>{const{boxShadow:n,className:s,...t}=e,l=je(s,{"antd-cord-boxShadow":n});return r.jsx(en,{className:l,...t})},z=e=>{const{t:n}=G(),{title:s,subTitle:t,name:l,keyName:o,api:c,boxShadow:i=!0,bordered:a=!1,rowKey:f="name",renderConfig:u,localApi:p,filter:j}=g.useMemo(()=>({...rl(e.module||""),title:n(`modules.${e.module}.title`),subTitle:n(`modules.${e.module}.subTitle`),...e}),[e,n]),[T,h]=g.useState(""),k={title:t||"",keyword:T,name:l,api:c,keyName:o,rowKey:f,localApi:p,renderConfig:u,filter:j},{gostConfig:v,localConfig:L}=g.useContext(re),{dataSource:A}=kt({localApi:p,name:o,gostConfig:v,localConfig:L}),m=g.useMemo(()=>{const x=async d=>{await c.post(d)};return{updateValue:async(d,y,b=!0)=>{await c.put(d,y),b&&E.emit("apiUpdate",!0)},deleteValue:async(d,y=!0)=>{await c.delete(d.name),y&&E.emit("apiUpdate",!0)},addValue:async(d,y=!0)=>{let b=d.name||`${l}-0`;const U=()=>A==null?void 0:A.find(_=>_.name===b);if(U()&&!await new Promise((Q,S)=>{ze.confirm({title:n("msg.invalidName"),content:n("msg.autofixName"),zIndex:2e3,onOk:()=>Q(!0),onCancel:()=>Q(!1)})}))throw!1;for(;U();)b=b.replace(/\d*$/,_=>String(_==""?"-0":Number(_)+1));await x({...d,name:b}),d.name!==b&&tn.info({description:n("msg.fixName",{name:b}),message:n("msg.autofix")}),y&&E.emit("apiUpdate",!0)},disable:async d=>{p&&(await c.delete(d.name),await p.add(d),E.emit("update",!0))},enable:async d=>{p&&(await c.post(d),await p.delete(d.name),E.emit("update",!0))},updateLocal:async(d,y)=>{p&&(await p.put(d,{...y,name:d}),E.emit("localUpdate"))},deleteLocal:async d=>{p&&(await p.delete(d.name),E.emit("localUpdate"))}}},[c,A,p,l,n]);return g.useEffect(()=>It(l,m),[m,l]),r.jsx(Fe.Provider,{value:{name:l,comm:m},children:r.jsx(_e,{boxShadow:i,bordered:a,title:s,extra:r.jsxs(R,{children:[r.jsx(Ve.Search,{allowClear:!0,onChange:x=>{const d=x.target.value;h(d)},size:"small"}),r.jsx(sl,{...k})]}),children:r.jsx(nl,{...k})})})},ol=e=>{var i,a,f;const{name:n,addr:s}=e,t=(i=e.connector)==null?void 0:i.type,l=(a=e.dialer)==null?void 0:a.type,o=((f=e.connector)==null?void 0:f.metadata)||e.metadata,c=o?_t.stringify(o):"";return r.jsxs(R,{children:[(t||l)&&r.jsx(J,{color:"#87d068",children:`${t}${l?"+"+l:""}`}),r.jsx(J,{color:"green",children:s}),c&&r.jsx(J,{color:"purple",title:"_metadata",children:"metadata"})]})};function Ee({node:e,upjson:n}){const{t:s}=G(),{name:t}=e,{update:l}=g.useContext(ae),o=g.useMemo(()=>n?{className:"editor-json",onDoubleClick:()=>{le.show({title:s("base.cmd.edit"),initialValues:{value:me(e)},onFinish:async c=>(n(K(c.value)),l(),!0)})}}:{},[e,s,l,n]);return r.jsx(fe,{color:"#ddffbf",title:r.jsx(ol,{...e}),children:r.jsx(J,{bordered:!1,color:"green",title:s("text.doubleClickEdit"),...o,children:t})})}const jt=e=>{var c;let n=e,s=!1;const{gostConfig:t,localConfig:l}=g.useContext(re);if(!n.nodes){const i=[...(t==null?void 0:t.hops)||[],...(l==null?void 0:l.hops)||[]].find(a=>a.name===n.name);i&&(s=!0,n=i)}const{nodes:o}=n;if(!o||(o==null?void 0:o.length)<=0)return`[${e.name}(noNodes)]`;if(s){const i=(c=t==null?void 0:t.hops)==null?void 0:c.includes(n),a=n.name;return r.jsx(ae.Provider,{value:{update:async f=>{const u=await Ne("hop");return(i?j=>u.updateValue(a,j||n):j=>u.updateLocal(a,j||n))(f)}},children:r.jsx(R,{size:5,children:o.map((f,u)=>r.jsx(Ee,{node:f,upjson:p=>o[u]=p},u))})})}return r.jsx(R,{size:5,children:o.map((i,a)=>r.jsx(Ee,{node:i,upjson:f=>o[a]=f},i.name+a))})};function il(e){const{update:n}=g.useContext(ae),{t:s}=G();return r.jsx(R,{size:5,children:e.hops.map((t,l)=>{const o=r.jsx(jt,{...t});return r.jsx(fe,{title:o,color:"#c7e7ff",arrow:!1,children:r.jsx(J,{bordered:!1,color:"blue",className:"editor-json",title:s("text.doubleClickEdit"),onDoubleClick:()=>{le.show({title:s("base.cmd.edit"),initialValues:{value:me(t)},onFinish:async c=>(e.hops[l]=K(c.value),n(),!0)})},children:t.name})},t.name+l)}).reduce((t,l,o)=>(t.length>0&&t.push(r.jsx(nn,{style:{color:"blue",fontSize:12}},"_sp_"+o)),t.push(l),t),[])})}function xt(e){const{hops:n}=e;return r.jsx(il,{hops:n,root:e})}const al=e=>{g.useContext(re);const n={module:"chain",renderConfig:(s,t,l)=>r.jsx(xt,{...t})};return r.jsx(z,{...n})},vt=(e,n)=>{const{gostConfig:s,localConfig:t}=g.useContext(re),l=g.useMemo(()=>{var i;return(i=s==null?void 0:s[n])==null?void 0:i.find(a=>a.name===e)},[s,e,n]),o=g.useMemo(()=>{var i;return(i=t==null?void 0:t[n])==null?void 0:i.find(a=>a.name===e)},[t,e,n]);return[l??o,!!l]},cl=e=>{const[n,s]=vt(e.hop,"hops");let t=e,l=!1;(!t.nodes||t.nodes.length===0)&&(t=n,l=!!n);const{nodes:o}=t;if(!o||(o==null?void 0:o.length)<=0)return`[${e.name}(noNodes)]`;const c=r.jsx(R,{size:5,children:o.map((i,a)=>r.jsx(Ee,{node:i,upjson:f=>o[a]=f},i.name+a))});if(l){const i=t.name;return r.jsx(ae.Provider,{value:{update:async a=>{const f=await Ne("hop");return(s?p=>f.updateValue(i,p||t):p=>f.updateLocal(i,p||t))(a)}},children:c})}return c},ot=e=>{const[n,s]=vt(e.chainName,"chains");if(!n)return"[no chain]";const t=e.chainName;return r.jsx(ae.Provider,{value:{update:async l=>{const o=await Ne("chain");return(s?i=>o.updateValue(t,i||n):i=>o.updateLocal(t,i||n))(l)}},children:r.jsx(xt,{...n})})},ul=e=>{const{name:n,addr:s,handler:t,listener:l,forwarder:o}=e,{t:c}=G(),i=g.useMemo(()=>{const a=t==null?void 0:t.type,f=l==null?void 0:l.type;return a===f?a:`${a}+${f}`},[t,l]);return r.jsxs(R,{children:[r.jsx(J,{color:"#87d068",children:i}),r.jsx(J,{color:"green",children:s}),t.chain&&r.jsx(fe,{title:r.jsx(ot,{chainName:t.chain}),color:"#c7e7ff",arrow:!1,children:r.jsx(J,{children:c("modules.chain.subTitle")})}),l.chain&&r.jsx(fe,{title:r.jsx(ot,{chainName:l.chain}),color:"#fff0d7",arrow:!1,children:r.jsx(J,{color:"orange",children:c("terms.key0")})}),o&&r.jsx(fe,{title:r.jsx(cl,{...o}),color:"#c7e7ff",arrow:!1,children:r.jsx(J,{children:c("terms.forwarder")})})]})},dl=e=>{const{colSpan:n}=e;it();const s={module:"service",renderConfig:(t,l,o)=>r.jsx(ul,{...l}),filter:(t,l)=>{const{name:o,addr:c,handler:i,listener:a}=t;function f(u){const p=u==null?void 0:u.toLowerCase();return p?p.indexOf(l)!==-1:!1}return f(o)||f(c)||f(i==null?void 0:i.type)||f(a==null?void 0:a.type)}};return r.jsx($,{...n,xxl:16,children:r.jsx(z,{...s})})},fl=e=>r.jsx(z,{module:"hop",renderConfig:(n,s,t)=>r.jsx(jt,{...s})}),H={xs:24,sm:24,md:12,lg:12,xl:12,xxl:8},Ae={sm:24,xxl:8},jl=()=>{const{isLoading:e}=g.useContext(re),n=ge(),{t:s}=G(),t=it(),[l,o]=g.useState(!1),[c,i]=g.useState(!1),[a,f]=g.useState(!0),[u,p]=g.useState([]),j=g.useRef({});g.useEffect(()=>{Et().then(h=>h.sort((k,v)=>{const L=k.time||0;return(v.time||0)-L})).then(h=>p(h.map(k=>({key:k.addr,label:r.jsx("a",{href:`./?use=${k.addr}`,children:k.addr})}))))},[n.addr]),g.useEffect(()=>{Ft().then(v=>{v&&E.emit("update",!1)});const h=j.current.onSave=async()=>{try{i(!0);const{saveFormat:v,savePath:L}=ge.get()||{};await Nt(v,L),f(!0)}finally{i(!1)}},k=(v=!1)=>{var L;if(v&&f(!1),!(!((L=ge.get())!=null&&L.autoSave)||!v))return h()};return E.on("update",k),E.on("apiUpdate",k),()=>{E.off("update",k),E.off("apiUpdate",k)}},[]);const T=g.useMemo(()=>{const h=[];return u.length&&(h.push({key:"2",label:s("manage.cmd.switch"),children:u}),h.push({type:"divider"})),h.push({key:"new",label:s("manage.cmd.new"),onClick:()=>{window.open(location.href,void 0,"noopener")}}),h},[u,s]);return r.jsxs(ve,{style:{height:"100vh",overflow:"hidden"},children:[r.jsxs(ve.Header,{style:{color:"#FFF",paddingInline:20},children:[r.jsxs(we,{align:"middle",justify:"space-between",wrap:!1,children:[r.jsx($,{color:"",children:r.jsx(F,{type:"link",loading:e,icon:r.jsx(sn,{}),onClick:async()=>{E.emit("update")},children:s("manage.cmd.reload")})}),r.jsx($,{children:n.addr}),r.jsx($,{children:r.jsxs(R,{children:[r.jsxs(R.Compact,{children:[r.jsx(F,{icon:a?r.jsx(ct,{}):r.jsx(Ln,{}),loading:c,onClick:()=>{var h,k;return(k=(h=j.current)==null?void 0:h.onSave)==null?void 0:k.call(h)},children:s("manage.cmd.save")}),r.jsx(F,{icon:r.jsx(Sn,{}),onClick:()=>o(!0)})]}),r.jsx(F,{icon:r.jsx(ln,{}),onClick:()=>{Qn(Se(t),"gost.json")},children:s("manage.cmd.download")}),r.jsx(at.Button,{menu:{activeKey:n.addr,items:T},onClick:Vt,children:s("manage.cmd.logout")}),r.jsx(zt,{}),r.jsx(Bt,{})]})})]}),r.jsx(ze,{destroyOnClose:!0,open:l,onCancel:()=>o(!1),footer:!1,children:r.jsxs(Y,{initialValues:n,layout:"horizontal",labelCol:{span:4},onValuesChange:(h,k)=>{Object.assign(n,h),ge.set(n),n.isLocal&&Mt(n.addr,n)},children:[r.jsx(Y.Item,{name:"autoSave",label:s("manage.label.autoSave"),valuePropName:"checked",children:r.jsx(rn,{})}),r.jsx(Y.Item,{name:"saveFormat",label:s("manage.label.format"),initialValue:"json",children:r.jsxs(Te.Group,{optionType:"button",buttonStyle:"solid",children:[r.jsx(Te,{value:"json",children:"json"}),r.jsx(Te,{value:"yaml",children:"yaml"})]})}),r.jsx(Y.Item,{name:"savePath",label:s("manage.label.path"),trigger:"onChange",children:r.jsx(Ve,{placeholder:s("placeholder.savePath")})})]})})]}),r.jsx(ve.Content,{style:{height:"100%",padding:16,boxSizing:"border-box",overflow:"auto"},children:r.jsxs(we,{gutter:[16,16],children:[r.jsx(dl,{colSpan:H}),r.jsx($,{...H,children:r.jsx(al,{})}),r.jsx($,{...H,children:r.jsx(fl,{})}),r.jsx($,{...H,children:r.jsx(z,{module:"auther"})}),r.jsx($,{...H,children:r.jsx(z,{module:"admission"})}),r.jsx($,{...H,children:r.jsx(z,{module:"bypass"})}),r.jsx($,{...H,children:r.jsx(z,{module:"host"})}),r.jsx($,{...H,children:r.jsx(z,{module:"ingress"})}),r.jsx($,{...H,children:r.jsx(z,{module:"resolver"})}),r.jsx($,{...H,children:r.jsx(z,{module:"sd"})}),r.jsx($,{...H,children:r.jsx(z,{module:"observer"})}),r.jsx($,{span:24,children:r.jsx(_e,{boxShadow:!0,title:s("manage.label.limit"),children:r.jsxs(we,{gutter:[16,16],children:[r.jsx($,{...Ae,children:r.jsx(z,{module:"limiter",bordered:!0,boxShadow:!1})}),r.jsx($,{...Ae,children:r.jsx(z,{module:"rlimiter",bordered:!0,boxShadow:!1})}),r.jsx($,{...Ae,children:r.jsx(z,{module:"climiter",bordered:!0,boxShadow:!1})})]})})}),r.jsx($,{span:24,children:r.jsx(_e,{boxShadow:!0,title:s("manage.label.allConfig"),styles:{body:{padding:20}},children:r.jsx(pt,{className:"g-boder",value:Se(t),height:500,language:"json",options:{minimap:{enabled:!1},readOnly:!0}})})})]})})]})};export{jl as default}; diff --git a/assets/Manage-505d70f1.css b/assets/Manage-505d70f1.css deleted file mode 100644 index cfe0c3e..0000000 --- a/assets/Manage-505d70f1.css +++ /dev/null @@ -1 +0,0 @@ -.template-box{padding-bottom:5px;width:100%;overflow:auto} diff --git a/assets/Manage-b7c7bc0e.js b/assets/Manage-b7c7bc0e.js deleted file mode 100644 index aa0a496..0000000 --- a/assets/Manage-b7c7bc0e.js +++ /dev/null @@ -1,508 +0,0 @@ -import{g as wt,u as G,a as vt,j as r,b as fe,c as xt,C as Ne,d as le,e as I,A as Tt,L as Ot,f as Lt,q as At,h as Ee,i as lt,k as me,l as $t,m as Ut,s as St,n as _t,T as It,o as Nt,p as Et}from"./index-f9140a0f.js";import{r as y,A as be,_ as ye,f as ue,k as Oe,I as Ve,d as C,M as ze,S as z,l as Le,B as M,n as Vt,o as zt,h as Bt,j as Ft,T as Mt,p as Rt,q as Pt,E as Dt,s as Ht,P as Jt,D as Wt,u as qt,v as Gt,w as Qt,x as ae,y as H,z as Xt,C as U,L as ke,R as je,G as Zt,H as Yt,J as Kt,K as we}from"./antd-af73db0d.js";var Ct={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"};const en=Ct;var tn=function(n,s){return y.createElement(be,ye({},n,{ref:s,icon:en}))},nn=y.forwardRef(tn);const rt=nn;var sn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"};const ln=sn;var rn=function(n,s){return y.createElement(be,ye({},n,{ref:s,icon:ln}))},on=y.forwardRef(rn);const an=on;var cn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"};const un=cn;var dn=function(n,s){return y.createElement(be,ye({},n,{ref:s,icon:un}))},fn=y.forwardRef(dn);const mn=fn;var pn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372 0-89 31.3-170.8 83.5-234.8l523.3 523.3C682.8 852.7 601 884 512 884zm288.5-137.2L277.2 223.5C341.2 171.3 423 140 512 140c205.4 0 372 166.6 372 372 0 89-31.3 170.8-83.5 234.8z"}}]},name:"stop",theme:"outlined"};const hn=pn;var gn=function(n,s){return y.createElement(be,ye({},n,{ref:s,icon:hn}))},bn=y.forwardRef(gn);const yn=bn;function ot(e,n=!1){const s=e.length;let t=0,l="",o=0,d=16,i=0,a=0,u=0,c=0,m=0;function b(h,v){let f=0,g=0;for(;f=48&&p<=57)g=g*16+p-48;else if(p>=65&&p<=70)g=g*16+p-65+10;else if(p>=97&&p<=102)g=g*16+p-97+10;else break;t++,f++}return f=s){h+=e.substring(v,t),m=2;break}const f=e.charCodeAt(t);if(f===34){h+=e.substring(v,t),t++;break}if(f===92){if(h+=e.substring(v,t),t++,t>=s){m=2;break}switch(e.charCodeAt(t++)){case 34:h+='"';break;case 92:h+="\\";break;case 47:h+="/";break;case 98:h+="\b";break;case 102:h+="\f";break;case 110:h+=` -`;break;case 114:h+="\r";break;case 116:h+=" ";break;case 117:const p=b(4,!0);p>=0?h+=String.fromCharCode(p):m=4;break;default:m=5}v=t;continue}if(f>=0&&f<=31)if(ie(f)){h+=e.substring(v,t),m=2;break}else m=6;t++}return h}function T(){if(l="",m=0,o=t,a=i,c=u,t>=s)return o=s,d=17;let h=e.charCodeAt(t);if(ve(h)){do t++,l+=String.fromCharCode(h),h=e.charCodeAt(t);while(ve(h));return d=15}if(ie(h))return t++,l+=String.fromCharCode(h),h===13&&e.charCodeAt(t)===10&&(t++,l+=` -`),i++,u=t,d=14;switch(h){case 123:return t++,d=1;case 125:return t++,d=2;case 91:return t++,d=3;case 93:return t++,d=4;case 58:return t++,d=6;case 44:return t++,d=5;case 34:return t++,l=x(),d=10;case 47:const v=t-1;if(e.charCodeAt(t+1)===47){for(t+=2;t=12&&h<=15);return h}return{setPosition:w,getPosition:()=>t,scan:n?L:T,getToken:()=>d,getTokenValue:()=>l,getTokenOffset:()=>o,getTokenLength:()=>t-o,getTokenStartLine:()=>a,getTokenStartCharacter:()=>o-c,getTokenError:()=>m}}function ve(e){return e===32||e===9}function ie(e){return e===10||e===13}function ee(e){return e>=48&&e<=57}var Me;(function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"})(Me||(Me={}));const F=new Array(20).fill(0).map((e,n)=>" ".repeat(n)),te=200,Re={" ":{"\n":new Array(te).fill(0).map((e,n)=>` -`+" ".repeat(n)),"\r":new Array(te).fill(0).map((e,n)=>"\r"+" ".repeat(n)),"\r\n":new Array(te).fill(0).map((e,n)=>`\r -`+" ".repeat(n))}," ":{"\n":new Array(te).fill(0).map((e,n)=>` -`+" ".repeat(n)),"\r":new Array(te).fill(0).map((e,n)=>"\r"+" ".repeat(n)),"\r\n":new Array(te).fill(0).map((e,n)=>`\r -`+" ".repeat(n))}},kn=[` -`,"\r",`\r -`];function it(e,n,s){let t,l,o,d,i;if(n){for(d=n.offset,i=d+n.length,o=d;o>0&&!ge(e,o-1);)o--;let f=i;for(;f1)return ne(a,c)+ne(b,t+m);const f=b.length*(t+m);return!u||f>Re[w][a].length?a+ne(b,t+m):f<=0?a:Re[w][a][f]}function A(){let f=k.scan();for(c=0;f===15||f===14;)f===14&&s.keepLines?c+=1:f===14&&(c=1),f=k.scan();return x=f===16||k.getTokenError()!==0,f}const L=[];function h(f,g,p){!x&&(!n||gd)&&e.substring(g,p)!==f&&L.push({offset:g,length:p-g,content:f})}let v=A();if(s.keepLines&&c>0&&h(ne(a,c),0,0),v!==17){let f=k.getTokenOffset()+o,g=b.length*t<20&&s.insertSpaces?F[b.length*t]:ne(b,t);h(g,o,f)}for(;v!==17;){let f=k.getTokenOffset()+k.getTokenLength()+o,g=A(),p="",$=!1;for(;c===0&&(g===12||g===13);){let Q=k.getTokenOffset()+o;h(F[1],f,Q),f=k.getTokenOffset()+k.getTokenLength()+o,$=g===12,p=$?T():"",g=A()}if(g===2)v!==1&&m--,s.keepLines&&c>0||!s.keepLines&&v!==1?p=T():s.keepLines&&(p=F[1]);else if(g===4)v!==3&&m--,s.keepLines&&c>0||!s.keepLines&&v!==3?p=T():s.keepLines&&(p=F[1]);else{switch(v){case 3:case 1:m++,s.keepLines&&c>0||!s.keepLines?p=T():p=F[1];break;case 5:s.keepLines&&c>0||!s.keepLines?p=T():p=F[1];break;case 12:p=T();break;case 13:c>0?p=T():$||(p=F[1]);break;case 6:s.keepLines&&c>0?p=T():$||(p=F[1]);break;case 10:s.keepLines&&c>0?p=T():g===6&&!$&&(p="");break;case 7:case 8:case 9:case 11:case 2:case 4:s.keepLines&&c>0?p=T():(g===12||g===13)&&!$?p=F[1]:g!==5&&g!==17&&(x=!0);break;case 16:x=!0;break}c>0&&(g===12||g===13)&&(p=T())}g===17&&(s.keepLines&&c>0?p=T():p=s.insertFinalNewline?a:"");const _=k.getTokenOffset()+o;h(p,f,_),v=g}return L}function ne(e,n){let s="";for(let t=0;t{const a={};d(a),o.push(l),l=a,t=null},onObjectProperty:a=>{t=a},onObjectEnd:()=>{l=o.pop()},onArrayBegin:()=>{const a=[];d(a),o.push(l),l=a,t=null},onArrayEnd:()=>{l=o.pop()},onLiteralValue:d,onError:(a,u,c)=>{n.push({error:a,offset:u,length:c})}},s),l[0]}function at(e,n=[],s=de.DEFAULT){let t={type:"array",offset:-1,length:-1,children:[],parent:void 0};function l(a){t.type==="property"&&(t.length=a-t.offset,t=t.parent)}function o(a){return t.children.push(a),a}ct(e,{onObjectBegin:a=>{t=o({type:"object",offset:a,length:-1,parent:t,children:[]})},onObjectProperty:(a,u,c)=>{t=o({type:"property",offset:u,length:-1,parent:t,children:[]}),t.children.push({type:"string",value:a,offset:u,length:c,parent:t})},onObjectEnd:(a,u)=>{l(a+u),t.length=a+u-t.offset,t=t.parent,l(a+u)},onArrayBegin:(a,u)=>{t=o({type:"array",offset:a,length:-1,parent:t,children:[]})},onArrayEnd:(a,u)=>{t.length=a+u-t.offset,t=t.parent,l(a+u)},onLiteralValue:(a,u,c)=>{o({type:xn(a),offset:u,length:c,parent:t,value:a}),l(u+c)},onSeparator:(a,u,c)=>{t.type==="property"&&(a===":"?t.colonOffset=u:a===","&&l(u))},onError:(a,u,c)=>{n.push({error:a,offset:u,length:c})}},s);const i=t.children[0];return i&&delete i.parent,i}function Ae(e,n){if(!e)return;let s=e;for(let t of n)if(typeof t=="string"){if(s.type!=="object"||!Array.isArray(s.children))return;let l=!1;for(const o of s.children)if(Array.isArray(o.children)&&o.children[0].value===t&&o.children.length===2){s=o.children[1],l=!0;break}if(!l)return}else{const l=t;if(s.type!=="array"||l<0||!Array.isArray(s.children)||l>=s.children.length)return;s=s.children[l]}return s}function ct(e,n,s=de.DEFAULT){const t=ot(e,!1),l=[];function o(j){return j?()=>j(t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter()):()=>!0}function d(j){return j?()=>j(t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter(),()=>l.slice()):()=>!0}function i(j){return j?O=>j(O,t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter()):()=>!0}function a(j){return j?O=>j(O,t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter(),()=>l.slice()):()=>!0}const u=d(n.onObjectBegin),c=a(n.onObjectProperty),m=o(n.onObjectEnd),b=d(n.onArrayBegin),w=o(n.onArrayEnd),k=a(n.onLiteralValue),x=i(n.onSeparator),T=o(n.onComment),A=i(n.onError),L=s&&s.disallowComments,h=s&&s.allowTrailingComma;function v(){for(;;){const j=t.scan();switch(t.getTokenError()){case 4:f(14);break;case 5:f(15);break;case 3:f(13);break;case 1:L||f(11);break;case 2:f(12);break;case 6:f(16);break}switch(j){case 12:case 13:L?f(10):T();break;case 16:f(1);break;case 15:case 14:break;default:return j}}}function f(j,O=[],W=[]){if(A(j),O.length+W.length>0){let B=t.getToken();for(;B!==17;){if(O.indexOf(B)!==-1){v();break}else if(W.indexOf(B)!==-1)break;B=v()}}}function g(j){const O=t.getTokenValue();return j?k(O):(c(O),l.push(O)),v(),!0}function p(){switch(t.getToken()){case 11:const j=t.getTokenValue();let O=Number(j);isNaN(O)&&(f(2),O=0),k(O);break;case 7:k(null);break;case 8:k(!0);break;case 9:k(!1);break;default:return!1}return v(),!0}function $(){return t.getToken()!==10?(f(3,[],[2,5]),!1):(g(!1),t.getToken()===6?(x(":"),v(),S()||f(4,[],[2,5])):f(5,[],[2,5]),l.pop(),!0)}function _(){u(),v();let j=!1;for(;t.getToken()!==2&&t.getToken()!==17;){if(t.getToken()===5){if(j||f(4,[],[]),x(","),v(),t.getToken()===2&&h)break}else j&&f(6,[],[]);$()||f(4,[],[2,5]),j=!0}return m(),t.getToken()!==2?f(7,[2],[]):v(),!0}function Q(){b(),v();let j=!0,O=!1;for(;t.getToken()!==4&&t.getToken()!==17;){if(t.getToken()===5){if(O||f(4,[],[]),x(","),v(),t.getToken()===4&&h)break}else O&&f(6,[],[]);j?(l.push(0),j=!1):l[l.length-1]++,S()||f(4,[],[4,5]),O=!0}return w(),j||l.pop(),t.getToken()!==4?f(8,[4],[]):v(),!0}function S(){switch(t.getToken()){case 3:return Q();case 1:return _();case 10:return g(!0);default:return p()}}return v(),t.getToken()===17?s.allowEmptyContent?!0:(f(4,[],[]),!1):S()?(t.getToken()!==17&&f(9,[],[]),!0):(f(4,[],[]),!1)}function xn(e){switch(typeof e){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":{if(e){if(Array.isArray(e))return"array"}else return"null";return"object"}default:return"null"}}function Tn(e,n,s,t){const l=n.slice(),d=at(e,[]);let i,a;for(;l.length>0&&(a=l.pop(),i=Ae(d,l),i===void 0&&s!==void 0);)typeof a=="string"?s={[a]:s}:s=[s];if(i)if(i.type==="object"&&typeof a=="string"&&Array.isArray(i.children)){const u=Ae(i,[a]);if(u!==void 0)if(s===void 0){if(!u.parent)throw new Error("Malformed AST");const c=i.children.indexOf(u.parent);let m,b=u.parent.offset+u.parent.length;if(c>0){let w=i.children[c-1];m=w.offset+w.length}else m=i.offset+1,i.children.length>1&&(b=i.children[1].offset);return K(e,{offset:m,length:b-m,content:""},t)}else return K(e,{offset:u.offset,length:u.length,content:JSON.stringify(s)},t);else{if(s===void 0)return[];const c=`${JSON.stringify(a)}: ${JSON.stringify(s)}`,m=t.getInsertionIndex?t.getInsertionIndex(i.children.map(w=>w.children[0].value)):i.children.length;let b;if(m>0){let w=i.children[m-1];b={offset:w.offset+w.length,length:0,content:","+c}}else i.children.length===0?b={offset:i.offset+1,length:0,content:c}:b={offset:i.offset+1,length:0,content:c+","};return K(e,b,t)}}else if(i.type==="array"&&typeof a=="number"&&Array.isArray(i.children)){const u=a;if(u===-1){const c=`${JSON.stringify(s)}`;let m;if(i.children.length===0)m={offset:i.offset+1,length:0,content:c};else{const b=i.children[i.children.length-1];m={offset:b.offset+b.length,length:0,content:","+c}}return K(e,m,t)}else if(s===void 0&&i.children.length>=0){const c=a,m=i.children[c];let b;if(i.children.length===1)b={offset:i.offset+1,length:i.length-2,content:""};else if(i.children.length-1===c){let w=i.children[c-1],k=w.offset+w.length,x=i.offset+i.length;b={offset:k,length:x-2-k,content:""}}else b={offset:m.offset,length:i.children[c+1].offset-m.offset,content:""};return K(e,b,t)}else if(s!==void 0){let c;const m=`${JSON.stringify(s)}`;if(!t.isArrayInsertion&&i.children.length>a){const b=i.children[a];c={offset:b.offset,length:b.length,content:m}}else if(i.children.length===0||a===0)c={offset:i.offset+1,length:0,content:i.children.length===0?m:m+","};else{const b=a>i.children.length?i.children.length:a,w=i.children[b-1];c={offset:w.offset+w.length,length:0,content:","+m}}return K(e,c,t)}else throw new Error(`Can not ${s===void 0?"remove":t.isArrayInsertion?"insert":"modify"} Array index ${u} as length is not sufficient`)}else throw new Error(`Can not add ${typeof a!="number"?"index":"property"} to parent of type ${i.type}`);else{if(s===void 0)throw new Error("Can not delete in empty document");return K(e,{offset:d?d.offset:0,length:d?d.length:0,content:JSON.stringify(s)},t)}}function K(e,n,s){if(!s.formattingOptions)return[n];let t=$e(e,n),l=n.offset,o=n.offset+n.content.length;if(n.length===0||n.content.length===0){for(;l>0&&!ge(t,l-1);)l--;for(;o=0;a--){const u=d[a];t=$e(t,u),l=Math.min(l,u.offset),o=Math.max(o,u.offset+u.length),o+=u.content.length-u.length}const i=e.length-(t.length-o)-l;return[{offset:l,length:i,content:t.substring(l,o)}]}function $e(e,n){return e.substring(0,n.offset)+n.content+e.substring(n.offset+n.length)}var Pe;(function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"})(Pe||(Pe={}));var De;(function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"})(De||(De={}));const On=vn,Ln=at,An=Ae;var He;(function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"})(He||(He={}));function $n(e,n,s){return it(e,n,s)}function pe(e,n,s,t){return Tn(e,n,s,t)}function Be(e,n){let s=n.slice(0).sort((l,o)=>{const d=l.offset-o.offset;return d===0?l.length-o.length:d}),t=e.length;for(let l=s.length-1;l>=0;l--){let o=s[l];if(o.offset+o.length<=t)e=$e(e,o);else throw new Error("Overlapping edit");t=o.offset}return e}const Un=["_id_","_key_","_type_"],Ue=e=>JSON.stringify(e,null,4),ce=e=>{const n={...e};for(const s of Un)delete n[s];return Ue(n)},Sn=e=>Be(e,$n(e,void 0,{tabSize:4,insertSpaces:!0})),Z=e=>{const n=[],s=On(e,n,{allowTrailingComma:!0});if(n.length)throw console.error(n),n[0];return s},_n=(e,n)=>{const s=[],t=pe.bind(null,e);return n.forEach(({path:l,value:o,options:d},i)=>{l=Array.isArray(l)?l:l.split("."),s.push(...t(l,o,d||{}))}),Be(e,s)},In=(e,n)=>{const s=URL.createObjectURL(new Blob([e])),t=document.createElement("a");t.download=n,t.href=s,t.click(),URL.revokeObjectURL(s)};function Se(e,n,s){const t=e!==void 0,l=n!==void 0,[o,d]=y.useState(t?e:l?n:s),i=y.useRef({value:o,setValue:u=>{let c;typeof u=="function"?c=u(i.current.value):c=u,i.current.value=c,d(c)}});return[y.useMemo(()=>{const c=e!==void 0?e:o;return i.current.value=c,c},[e,o]),i.current.setValue]}const Nn={zh:"zh-cn",en:""};(function(){const e=window.require;if(e){const n=wt();e.config({"vs/nls":{availableLanguages:{"*":Nn[n.resolvedLanguage]??""}}})}window.monacoIsReady=new Promise((n,s)=>{if(!e)return s("Not loaded monaco loader.js");e(["vs/editor/editor.main"],function(){n(monaco)})})})();monacoIsReady.then(()=>{monaco.languages.json.jsonDefaults.setDiagnosticsOptions({allowComments:!0,trailingCommas:"warning",validate:!0})});const En={minimap:{enabled:!1},automaticLayout:!0},Vn=(e,n)=>{const{onChange:s,options:t,height:l,className:o,theme:d,style:i}=e,{t:a}=G(),[u,c]=Se(e.language,"javascript"),[m,b]=Se(e.value,e.defaultValue,""),[w,k]=y.useState(!1),x=y.useRef(null),T=y.useRef(null),A=y.useRef({}),L=vt(),h=y.useMemo(()=>d||(L?"vs-dark":"vs"),[d,L]);return ue.useImperativeHandle(n,()=>T.current),ue.useImperativeHandle(A,()=>({onChange:s}),[s]),y.useEffect(()=>{monacoIsReady.then(()=>{k(!0)})},[]),y.useEffect(()=>{if(w&&x.current){const v=x.current;let f;return monacoIsReady.then(()=>{f=T.current=monaco.editor.create(v,{value:m,language:u,theme:h,...En,...t}),f.onDidChangeModelContent(function(g){var $,_;const p=f.getValue();b(p),(_=($=A.current)==null?void 0:$.onChange)==null||_.call($,p)}),f.addCommand(monaco.KeyMod.Alt|monaco.KeyCode.KeyX,g=>{var p;(p=f.getAction("my-autoWrap-toggle"))==null||p.run()}),f.addAction({id:"my-autoWrap-toggle",label:a("msg.wordWrap"),keybindings:[monaco.KeyMod.Alt|monaco.KeyCode.KeyZ],run:function(g,p){const $=g.getOption(monaco.editor.EditorOption.wordWrap);g.updateOptions({wordWrap:$==="on"?"off":"on"})}})}),()=>{var g;(g=f==null?void 0:f.dispose)==null||g.call(f)}}},[w]),y.useEffect(()=>{T.current&&m!=T.current.getValue()&&T.current.setValue(m)},[m]),w?r.jsx("div",{className:Oe(o),style:{height:l||"100%",minHeight:0,minWidth:0,boxSizing:"border-box",...i},ref:x}):r.jsx(Ve.TextArea,{style:{height:l||"100%"},className:Oe(o),value:m,onChange:v=>{var g,p;const f=v.target.value;b(f),(p=(g=A.current)==null?void 0:g.onChange)==null||p.call(g,f)}})},ut=ue.forwardRef(Vn),zn=e=>{const{onFinish:n,trigger:s,open:t,onOpenChange:l,modalProps:o,title:d,width:i,formRef:a,children:u,...c}=e,[m,b]=Se(t,!1),[w]=C.useForm(),k=y.useCallback(()=>{var L;b(!1),l==null||l(!1),(L=o==null?void 0:o.onCancel)==null||L.call(o,{})},[l]),x=y.useCallback(()=>{var L;w.resetFields(),(L=o==null?void 0:o.afterClose)==null||L.call(o)},[w,o]),T=y.useMemo(()=>async function(L){await(n==null?void 0:n.apply(null,[L]))===!0&&k()},[n,k]),A=y.useMemo(()=>({...o,onCancel:k,onOk:()=>{w.submit()},afterClose:x,open:m,title:d,width:i}),[x,w,o,k,m,d,i]);return y.useEffect(()=>{if(!a)return;switch(typeof a){case"function":a(w);break;case"object":a.current=w;break}},[w,a]),r.jsxs(r.Fragment,{children:[r.jsx(ze,{...A,children:r.jsx(C,{form:w,onFinish:T,...c,children:u})}),s&&ue.cloneElement(s,{onClick:()=>{b(!0)}})]})};const se=e=>{const{templates:n,modalProps:s,...t}=e,{t:l}=G(),o=y.useRef(),d=u=>{var m,b,w;let c=u;if((m=e.initialValues)!=null&&m.value){const k=Z(e.initialValues.value);c=k.name?_n(u,[{path:"name",value:k.name}]):u}c=Sn(c),(b=o.current)==null||b.setFieldValue("value",c),(w=o.current)==null||w.validateFields()},i=u=>{const{children:c,...m}=u,{json:b,cli:w}=u;if(c)return{...m,children:c.map(i)};if(b){const{label:k}=m;return{...m,label:fe(k),title:w,onClick:()=>d(b)}}},a=n==null?void 0:n.length;return r.jsx(r.Fragment,{children:r.jsxs(zn,{...t,formRef:o,modalProps:{destroyOnClose:!0,maskClosable:!1,...s},children:[a?r.jsxs(z,{size:"small",className:"template-box scroll-small",children:[r.jsxs("span",{children:[l("terms.template"),":"]}),n.map((u,c)=>{var m;if((m=u.children)!=null&&m.length){const b={items:u.children.map(i)};return u.json?r.jsx(Le.Button,{size:"small",onClick:()=>d(u.json),menu:b,children:fe(u.label)},c):r.jsx(Le,{menu:b,children:r.jsx(M,{size:"small",children:r.jsxs(z,{children:[fe(u.label),r.jsx(Vt,{})]})})},c)}else return u.json?r.jsx(M,{size:"small",title:u.cli,onClick:()=>d(u.json),children:r.jsx(z,{children:fe(u.label)})},c):null})]}):null,r.jsx(C.Item,{name:"value",rules:[{required:!0,message:l("msg.require")},{validator:(u,c)=>new Promise((m,b)=>{c&&Z(c),m(null)}).catch(m=>{throw console.error(m),new Error(l("msg.formatError",{name:"JSON"}))})}],children:r.jsx(ut,{className:"g-boder",height:300,language:"json",options:{minimap:{enabled:!1}}})})]})})};se.show=e=>{const{onOpenChange:n,open:s,...t}=e;let l;const o=document.createDocumentFragment(),d=xt.createRoot(o);function i({...u}){clearTimeout(l);const c=zt();l=setTimeout(()=>{document.body.append(o),d.render(r.jsx(Bt,{theme:c.getTheme(),children:r.jsx(se,{...u})}))},100)}function a(){d.unmount(),document.body.removeChild(o)}i({...t,open:!0,onOpenChange:u=>{!u&&a()}})};const dt=`{ - "services": [ - { - "name": "service-0", - "addr": ":8080", - // "interface": "eth0", - // "admission": "admission-0", - // "bypass": "bypass-0", - // "resolver": "resolver-0", - // "hosts": "hosts-0", - "handler": { - "type": "auto", - // "auth": { - // "username": "gost", - // "password": "gost" - // }, - // "auther": "auther-0", - // "retries": 1, - // "chain": "chain-0", - // "metadata": { - // "bar": "baz", - // "foo": "bar" - // } - }, - "listener": { - "type": "tcp", - // "auth": { - // "username": "user", - // "password": "pass" - // }, - // "auther": "auther-0", - // "chain": "chain-0", - // "tls": { - // "certFile": "cert.pem", - // "keyFile": "key.pem", - // "caFile": "ca.pem" - // }, - // "metadata": { - // "abc": "xyz", - // "def": 456 - // } - }, - // "forwarder": { - // "nodes": [ - // { - // "name": "target-0", - // "addr": "192.168.1.1:1234" - // }, - // { - // "name": "target-1", - // "addr": "192.168.1.2:2345" - // } - // ], - // "selector": { - // "strategy": "round", - // "maxFails": 1, - // "failTimeout": 30 - // } - // } - } - ], - "chains": [ - { - "name": "chain-0", - // "selector": { - // "strategy": "round", - // "maxFails": 1, - // "failTimeout": 30 - // }, - "hops": [ - { - "name": "hop-0", - // "interface": "192.168.1.2", - // "selector": { - // "strategy": "rand", - // "maxFails": 3, - // "failTimeout": 60 - // }, - // "bypass": "bypass-0", - "nodes": [ - { - "name": "node-0", - "addr": ":1080", - // "interface": "eth1", - // "bypass": "bypass-0", - "connector": { - "type": "socks5", - "auth": { - "username": "user", - "password": "pass" - }, - // "metadata": { - // "foo": "bar" - // } - }, - "dialer": { - "type": "tcp", - // "auth": { - // "username": "user", - // "password": "pass" - // }, - // "tls": { - // "caFile": "ca.pem", - // "secure": true, - // "serverName": "example.com" - // }, - // "metadata": { - // "bar": "baz" - // } - } - } - ] - } - ] - } - ], - "authers": [ - { - "name": "auther-0", - "auths": [ - { - "username": "user1", - "password": "pass1" - }, - { - "username": "user2", - "password": "pass2" - } - ] - } - ], - "admissions": [ - { - "name": "admission-0", - "whitelist": false, - "matchers": [ - "127.0.0.1", - "192.168.0.0/16" - ] - } - ], - "bypasses": [ - { - "name": "bypass-0", - "whitelist": false, - "matchers": [ - "*.example.com", - ".example.org", - "0.0.0.0/8" - ] - } - ], - "resolvers": [ - { - "name": "resolver-0", - "nameservers": [ - { - "addr": "udp://8.8.8.8:53", - "chain": "chain-0", - "prefer": "ipv4", - "clientIP": "1.2.3.4", - "ttl": 60, - "timeout": 30 - }, - { - "addr": "tcp://1.1.1.1:53" - }, - { - "addr": "tls://1.1.1.1:853" - }, - { - "addr": "https://1.0.0.1/dns-query", - "hostname": "cloudflare-dns.com" - } - ] - } - ], - "hosts": [ - { - "name": "hosts-0", - "mappings": [ - { - "ip": "127.0.0.1", - "hostname": "localhost" - }, - { - "ip": "192.168.1.10", - "hostname": "foo.mydomain.org", - "aliases": [ - "foo" - ] - }, - { - "ip": "192.168.1.13", - "hostname": "bar.mydomain.org", - "aliases": [ - "bar", - "baz" - ] - } - ] - } - ], - "tls": { - "certFile": "cert.pem", - "keyFile": "key.pem", - "caFile": "ca.pem" - }, - "log": { - "output": "stderr", - "level": "debug", - "format": "json", - "rotation": { - "maxSize": 100, - "maxAge": 10, - "maxBackups": 3, - "localTime": false, - "compress": false - } - }, - "profiling": { - "addr": ":6060", - "enabled": true - }, - "api": { - "addr": ":18080", - "pathPrefix": "/api", - "accesslog": true, - "auth": { - "username": "user", - "password": "password" - }, - "auther": "auther-0" - }, - "metrics": { - "addr": ":9000", - "path": "/metrics" - } -}`,Bn={en:"Default",zh:"默认"},Fn={admissions:"https://gost.run/concepts/admission/",authers:"https://gost.run/concepts/auth/",bypasses:"https://gost.run/concepts/bypass/",chains:"https://gost.run/concepts/chain/",hops:"https://gost.run/concepts/hop/",hosts:"https://gost.run/concepts/hosts/",ingresses:"https://gost.run/concepts/ingress/",observers:"https://gost.run/concepts/observer/",resolvers:"https://gost.run/concepts/resolver/",limiters:"https://gost.run/concepts/limiter/",rlimiter:"https://gost.run/concepts/limiter/",climiter:"https://gost.run/concepts/limiter/",routers:"https://gost.run/concepts/router/",sds:"https://gost.run/concepts/sd/",services:"https://gost.run/concepts/service/"},Mn=[],Je=Ln(dt,Mn,{allowTrailingComma:!0}),Rn=e=>{if(!Je)return;const n=An(Je,[e,0]);if(n){const{offset:s,length:t}=n;return dt.substring(s,s+t)}},N=(e,n=Bn)=>{const s=Rn(e),t=Fn[e],l="// "+t+` -`;let o;return s&&(o={label:n,json:l+s}),{def:o,docUrl:t,_docUrl:l}},Pn=e=>`{ - "name": "${e}-0", - "file": { - "path": "/path/to/file" - } - }`,Dn=(e,n)=>`{ - "name": "${e}-0", - "redis": { - "addr": "127.0.0.1:6379", - "db": "1", - "password": "123456", - ${n?`"type": "${n}",`:""} - "key": "gost:${e}-0" - } - }`,Hn=e=>`{ - "name": "${e}-0", - "http": { - "url": "http://127.0.0.1:8000", - "timeout": "10s" - } - }`,ft=e=>`{ - "name": "${e}-0", - "plugin": { - "type": "grpc", - // "type": "http", - "addr": "127.0.0.1:8000", - "token": "gost", - // "tls": {} - } - }`,J=(e,n="",s)=>{const t=n?`// ${n} -`:"";return[{label:"File",json:t+Pn(e)},{label:"Redis",json:t+Dn(e,s==null?void 0:s.redisType)},{label:"HTTP",json:t+Hn(e)},{label:"Plugin",json:t+ft(e)}]},{def:We,docUrl:Jn,_docUrl:Wn}=N("admissions"),qn=[We||{label:{zh:"内联",en:"Inline"},json:Wn+` - { - "name": "admission-0", - "matchers": [ - "127.0.0.1", - "192.168.0.0/16", - "example.com" - ] - }`},...J("admission",Jn)],{def:Gn,docUrl:Qn}=N("authers"),Xn=[Gn,...J("auther",Qn)],{def:Zn,docUrl:Gs,_docUrl:Yn}=N("chains"),Kn=[Zn,{label:{zh:"典型转发链",en:"Typical"},cli:"",json:Yn+` -{ - "name": "chain-0", - "hops": [ - { - "name": "hop-0", - "nodes": [ - { - "name": "node-0", - "addr": "proxy.xxx.com:1080", - "connector": { - "type": "socks5", - "auth": { - "username": "username", - "password": "password" - } - }, - "dialer": { - "type": "tcp", - "tls": { - "serverName": "proxy.xxx.com" - } - } - } - ] - } - ] -} - `}],{def:qe,docUrl:Cn,_docUrl:es}=N("bypasses"),ts=[qe||{label:{zh:"内联",en:"Inline"},json:es+` - { - "name": "bypass-0", - "matchers": [ - "127.0.0.1", - "172.10.0.0/16", - "localhost", - "*.example.com", - ".example.org" - ] - }`},...J("bypass",Cn)],{def:Ge,docUrl:ns,_docUrl:ss}=N("hops"),ls=[Ge||{label:{zh:"内联",en:"Inline"},json:ss+` - { - "name": "hop-0", - "nodes": [ - { - "name": "node-0", - "addr": ":8888", - "connector": { - "type": "http" - }, - "dialer": { - "type": "tcp" - } - }, - { - "name": "node-1", - "addr": ":9999", - "connector": { - "type": "socks5" - }, - "dialer": { - "type": "tcp" - } - } - ] - }`},...J("hop",ns)],{def:Qe,docUrl:rs,_docUrl:os}=N("hosts"),is=[Qe||{label:{zh:"内联",en:"Inline"},json:os+` -{ - "name": "hosts-0", - "mappings": [ - { - "ip": "127.0.0.1", - "hostname": "example.com" - }, - { - "ip": "2001:db8::1", - "hostname": "example.com" - } - ] -}`},...J("hosts",rs)],{def:Xe,docUrl:as,_docUrl:cs}=N("ingresses"),us=[Xe||{label:{zh:"内联",en:"Inline"},json:cs+`{ - "name": "ingress-0", - "rules": [ - { - "hostname": "example.com", - "endpoint": "4d21094e-b74c-4916-86c1-d9fa36ea677b" - }, - { - "hostname": "example.org", - "endpoint": "ac74d9dd-3125-442a-a7c1-f9e49e05faca" - } - ] - }`},...J("ingress",as,{redisType:"hash"})],{def:Ze,docUrl:ds,_docUrl:fs}=N("routers"),ms=[Ze||{label:{zh:"内联",en:"Inline"},json:fs+` - { - "name": "router-0", - "routes": [ - { - "net": "192.168.1.0/24", - "gateway": "192.168.123.2" - }, - { - "net": "172.10.0.0/16", - "gateway": "192.168.123.3" - } - ] - }`},...J("router",ds)],{def:ps,docUrl:Qs,_docUrl:he}=N("services"),P=(e,n,s)=>{let t=he+` - { - "name": "service-0", - "addr": ":1080", - "handler": { - "type": "${e}", - // "auth": { - // "username": "user", - // "password": "password" - // } - }, - "listener": { - "type": "${n}" - } - }`;if(s){const l=pe(t,["metadata"],s,{});l.push(...pe(t,["handler","metadata"],s,{})),l.push(...pe(t,["listener","metadata"],s,{})),t=Be(t,l)}return t},hs=[ps,{label:{zh:"端口转发",en:"Port Forwarding"},cli:"-L tcp://:80/:8080",json:he+` - { - "name": "service-0", - "addr": ":80", - "handler": { - "type": "tcp" - }, - "listener": { - "type": "tcp" - }, - "forwarder": { - "nodes": [ - { - "name": "target-0", - "addr": ":8080" - } - ] - } - }`},{label:{zh:"反向代理",en:"Reverse Proxy"},cli:"",json:he+` - { - "name": "service-0", - "addr": ":80", - "handler": { - "type": "tcp", - "metadata": { - "sniffing": "true" - } - }, - "listener": { - "type": "tcp" - }, - "forwarder": { - "nodes": [ - { - "name": "target-1", - "addr": "www.baidu.com:80", - // "host": "myhost.com", - // "path": "/" - "http": { - "host": "www.baidu.com" - } - } - ] - } - }`},{label:{zh:"代理服务",en:"Proxy Service"},children:[{label:"http",children:[{label:"http",json:P("http","tcp")},{label:"https(http+tsl)",json:P("http","tls")},{label:"http+wss",json:P("http","wss")},{label:"http2",json:P("http2","http2")}]},{label:"relay",children:[{label:"relay+tcp",json:P("relay","tcp")},{label:"relay+tls",json:P("relay","tls")},{label:"relay+wss",json:P("relay","tls")}]},{label:"socks",children:[{label:"socks4",json:P("socks","tcp")},{label:"socks5",json:P("socks5","tcp")},{label:"socks5(udp)",json:P("socks5","tcp",{udp:"true"})},{label:"socks5+tls",json:P("socks5","tls",{notls:"true"})}]}]},{label:{zh:"代理转发",en:"Porxy Forwarding"},cli:"-L socks5://:1080 -F socks5://xxx.com:1080",json:he+` - { - "name": "service-0", - "addr": ":1080", - "handler": { - "type": "socks5", - "chain": "chain-0" - }, - "listener": { - "type": "tcp" - } - }`}],{def:Ye,docUrl:gs,_docUrl:bs}=N("climiter"),ys=[Ye||{label:{zh:"内联",en:"Inline"},json:bs+` - { - "name": "climiter-0", - "limits": [ - "$ 1000", - "$$ 100", - "192.168.1.1 10" - ] - }`},...J("climiter",gs,{redisType:"set"})],{def:Ke,docUrl:ks,_docUrl:js}=N("limiters"),ws=[Ke||{label:{zh:"内联",en:"Inline"},json:js+` - { - "name": "limiter-0", - "limits": [ - "$ 100MB 100MB", - "$$ 10MB", - "192.168.1.1 512KB 1MB", - "192.168.0.0/16 1MB 5MB" - ] - }`},...J("limiters",ks,{redisType:"set"})],{def:Ce,docUrl:vs,_docUrl:xs}=N("rlimiter"),Ts=[Ce||{label:{zh:"内联",en:"Inline"},json:xs+` - { - "name": "rlimiter-0", - "limits": [ - "$ 100", - "$$ 10", - "192.168.1.1 50", - "192.168.0.0/16 5" - ] - }`},...J("rlimiter",vs,{redisType:"set"})],{def:Os,docUrl:Xs,_docUrl:Ls}=N("resolvers"),As=[Os,{label:"Plugin",json:Ls+ft("resolver")}],{def:et,docUrl:Zs,_docUrl:$s}=N("sds"),Us=[et||{label:"HTTP Plugin",json:$s+` - // https://gost.run/concepts/sd/ - { - "name": "sd-0", - "plugin": { - "type": "http", - "addr": "http://127.0.0.1:8000/sd", - // "token": "gost", - // "tls": {} - } - }`}],{def:tt,docUrl:Ys,_docUrl:Ss}=N("observers"),_s=[tt||{label:"Plugin",json:Ss+` - { - "name": "observer-0", - "plugin": { - "type": "grpc", - // "type": "http", - "addr": "127.0.0.1:8000", - "token": "gost", - // "tls": {} - } - }`}],Is={admissions:qn,authers:Xn,bypasses:ts,chains:Kn,climiters:ys,limiters:ws,rlimiters:Ts,hops:ls,hosts:is,ingresses:us,resolvers:As,routers:ms,sds:Us,observers:_s,services:hs},mt=e=>{const{name:n}=e;return y.useMemo(()=>Is[n],[n])},pt=e=>{const{name:n,localApi:s,gostConfig:t,localConfig:l}=e,o=y.useMemo(()=>(t==null?void 0:t[n])||[],[t,n]),d=y.useMemo(()=>s?(l==null?void 0:l[n])||[]:[],[l,n,s]),i=y.useMemo(()=>[...o,...d],[o,d]);return{dataList:o,dataSource:i}},xe=se.show,re=ue.createContext({}),nt=(e,n,s)=>JSON.stringify(n),Ns=(e,n)=>{var s,t;return((t=(s=e==null?void 0:e.name)==null?void 0:s.toLowerCase())==null?void 0:t.indexOf(n))!==-1},Es=e=>{const{name:n,title:s,api:t,localApi:l,keyName:o,rowKey:d="name",keyword:i,renderConfig:a=nt,filter:u=Ns}=e,{t:c}=G(),{localList:m,comm:b}=y.useContext(Ne),{gostConfig:w,localConfig:k}=y.useContext(le),{dataList:x,dataSource:T}=pt({localApi:l,name:o,gostConfig:w,localConfig:k}),A=mt({name:o});Ft.useApp();const{deleteValue:L,updateValue:h,disable:v,enable:f,updateLocal:g,deleteLocal:p,addValue:$}=b,_=y.useRef({dataList:x,dataSource:T});y.useImperativeHandle(_,()=>({dataList:x,dataSource:T}),[x,T]);const Q=y.useMemo(()=>i?T.filter(S=>u(S,i)):T,[T,u,i]);return y.useEffect(()=>{function S({path:j,record:O}){const{dataList:W,dataSource:B}=_.current,q=W.includes(O),R=O.name,X=j.split(","),yt=X.reduce((Y,oe)=>Y==null?void 0:Y[oe],O),kt=Y=>{let oe=O;X.forEach((Fe,jt)=>{jt===X.length-1?oe[Fe]=Y:oe=oe[Fe]})};xe({title:c("base.cmd.edit"),initialValues:{value:ce(yt)},onFinish:async Y=>(kt(Z(Y.value)),q?await h(R,O):await g(R,O),!0)})}return I.on(`edit:${n}`,S),()=>{I.off(`edit:${n}`,S)}},[n,c,g,h]),r.jsx("div",{style:{height:348,overflow:"auto"},children:r.jsx(Mt,{rowKey:S=>S._id_||S.name,scroll:{y:290},size:"small",dataSource:Q,columns:[{title:c("base.form.name"),dataIndex:d,ellipsis:!0,width:100},{title:c("base.form.details"),ellipsis:!0,render:(S,j,O)=>{const B=x.includes(j)?R=>h(j.name,R||j):R=>g(j.name,R||j);let q;try{q=a(S,j,O)}catch{q=nt(S,j)}return r.jsx(re.Provider,{value:{update:B},children:q})}},{title:c("base.cmd.controls"),width:l?120:90,align:"right",dataIndex:d,render:(S,j,O)=>{const W=x.includes(j),B={...j};return delete B.status,r.jsxs(z,{size:2,children:[l?W?r.jsx(M,{title:c("base.cmd.disable"),icon:r.jsx(rt,{style:{color:Rt.primary}}),type:"link",size:"small",onClick:async()=>{await v(j)}}):r.jsx(M,{title:c("base.cmd.enabled"),type:"link",icon:r.jsx(yn,{style:{color:Pt.primary}}),size:"small",onClick:async()=>{await f(j)}}):null,r.jsx(M,{title:c("base.cmd.edit"),icon:r.jsx(Dt,{}),type:"link",size:"small",onClick:()=>{xe({title:c("title.edit",{name:S||""}),templates:A,initialValues:{value:ce(B)},onFinish:async q=>{const{value:R}=q,X=Z(R);return W?await h(j.name,X):await g(j.name,{...B,...X}),!0}})}}),r.jsx(M,{title:c("base.cmd.copy"),icon:r.jsx(Ht,{}),type:"link",size:"small",onClick:()=>{xe({title:c("title.copied",{name:S||""}),templates:A,initialValues:{value:ce(B)},onFinish:async q=>{const{value:R}=q,X=Z(R);return await b.addValue(X),!0}})}}),r.jsx(Jt,{title:c("text.warn"),description:c("text.deleteing"),onConfirm:()=>{W?L(j):p(j)},children:r.jsx(M,{title:c("base.cmd.del"),icon:r.jsx(Wt,{}),type:"link",size:"small"})})]})}}],pagination:!1})})},Vs=e=>{const{t:n}=G(),{keyName:s,title:t}=e,{comm:l}=y.useContext(Ne),o=mt({name:s}),d={title:n("title.add",{name:t}),templates:o,onFinish:async i=>{const{value:a}=i,u=Z(a);return await l.addValue(u),!0}};return r.jsx(M,{icon:r.jsx(qt,{}),size:"small",onClick:()=>{se.show(d)}})},E=e=>({keyName:e,api:Tt[e],localApi:Ot[e],rowKey:"name"}),zs=[{name:"admission",title:"准入控制器(Admission)",subTitle:"准入控制器",...E("admissions")},{name:"auther",title:"认证器(Auther)",subTitle:"认证器",...E("authers")},{name:"bypass",title:"分流器(Bypass)",subTitle:"分流器",...E("bypasses")},{name:"chain",title:"转发链(Chain)",subTitle:"转发链",...E("chains")},{name:"climiter",title:"并发连接数限制",subTitle:"",...E("climiters")},{name:"limiter",title:"流量速率限制",subTitle:"",...E("limiters")},{name:"rlimiter",title:"请求速率限制",subTitle:"",...E("rlimiters")},{name:"hop",title:"跳跃点(Hop)",subTitle:"跳跃点",...E("hops")},{name:"host",title:"主机映射器(Hosts)",subTitle:"主机映射器",...E("hosts")},{name:"ingress",title:"Ingress",subTitle:"Ingress",...E("ingresses")},{name:"resolver",title:"域名解析器(Resolver)",subTitle:"域名解析器",...E("resolvers")},{name:"service",title:"服务(Service)",subTitle:"服务",...E("services")},{name:"sd",title:"服务发现(SD)",subTitle:"服务发现",...E("sds")},{name:"observer",title:"观测器(Observer)",subTitle:"观测器",...E("observers")}],Bs=e=>zs.find(n=>n.name===e),_e=e=>{const{boxShadow:n,className:s,...t}=e,l=Oe(s,{"antd-cord-boxShadow":n});return r.jsx(Gt,{className:l,...t})},V=e=>{const{t:n}=G(),{title:s,subTitle:t,name:l,keyName:o,api:d,boxShadow:i=!0,bordered:a=!1,rowKey:u="name",renderConfig:c,localApi:m,filter:b}=y.useMemo(()=>({...Bs(e.module||""),title:n(`modules.${e.module}.title`),subTitle:n(`modules.${e.module}.subTitle`),...e}),[e,n]),[w,k]=y.useState(""),x={title:t||"",keyword:w,name:l,api:d,keyName:o,rowKey:u,localApi:m,renderConfig:c,filter:b},{gostConfig:T,localConfig:A}=y.useContext(le),{dataSource:L}=pt({localApi:m,name:o,gostConfig:T,localConfig:A}),h=y.useMemo(()=>{const v=async f=>{await d.post(f)};return{updateValue:async(f,g,p=!0)=>{await d.put(f,g),p&&I.emit("apiUpdate",!0)},deleteValue:async(f,g=!0)=>{await d.delete(f.name),g&&I.emit("apiUpdate",!0)},addValue:async(f,g=!0)=>{let p=f.name||`${l}-0`;const $=()=>L==null?void 0:L.find(_=>_.name===p);if($()&&!await new Promise((Q,S)=>{ze.confirm({title:n("msg.invalidName"),content:n("msg.autofixName"),zIndex:2e3,onOk:()=>Q(!0),onCancel:()=>Q(!1)})}))throw!1;for(;$();)p=p.replace(/\d*$/,_=>String(_==""?"-0":Number(_)+1));await v({...f,name:p}),f.name!==p&&Qt.info({description:n("msg.fixName",{name:p}),message:n("msg.autofix")}),g&&I.emit("apiUpdate",!0)},disable:async f=>{m&&(await d.delete(f.name),await m.add(f),I.emit("update",!0))},enable:async f=>{m&&(await d.post(f),await m.delete(f.name),I.emit("update",!0))},updateLocal:async(f,g)=>{m&&(await m.put(f,{...g,name:f}),I.emit("localUpdate"))},deleteLocal:async f=>{m&&(await m.delete(f.name),I.emit("localUpdate"))}}},[d,L,m,l,n]);return y.useEffect(()=>Lt(l,h),[h,l]),r.jsx(Ne.Provider,{value:{name:l,comm:h},children:r.jsx(_e,{boxShadow:i,bordered:a,title:s,extra:r.jsxs(z,{children:[r.jsx(Ve.Search,{allowClear:!0,onChange:v=>{const f=v.target.value;k(f)},size:"small"}),r.jsx(Vs,{...x})]}),children:r.jsx(Es,{...x})})})},Fs=e=>{var i,a,u;const{name:n,addr:s}=e,t=(i=e.connector)==null?void 0:i.type,l=(a=e.dialer)==null?void 0:a.type,o=((u=e.connector)==null?void 0:u.metadata)||e.metadata,d=o?At.stringify(o):"";return r.jsxs(z,{children:[(t||l)&&r.jsx(H,{color:"#87d068",children:`${t}${l?"+"+l:""}`}),r.jsx(H,{color:"green",children:s}),d&&r.jsx(H,{color:"purple",title:"_metadata",children:"metadata"})]})};function Ie({node:e,upjson:n}){const{t:s}=G(),{name:t}=e,{update:l}=y.useContext(re),o=y.useMemo(()=>n?{className:"editor-json",onDoubleClick:()=>{se.show({title:s("base.cmd.edit"),initialValues:{value:ce(e)},onFinish:async d=>(n(Z(d.value)),l(),!0)})}}:{},[e,s,l,n]);return r.jsx(ae,{color:"#ddffbf",title:r.jsx(Fs,{...e}),children:r.jsx(H,{bordered:!1,color:"green",title:s("text.doubleClickEdit"),...o,children:t})})}const ht=e=>{var d;let n=e,s=!1;const{gostConfig:t,localConfig:l}=y.useContext(le);if(!n.nodes){const i=[...(t==null?void 0:t.hops)||[],...(l==null?void 0:l.hops)||[]].find(a=>a.name===n.name);i&&(s=!0,n=i)}const{nodes:o}=n;if(!o||(o==null?void 0:o.length)<=0)return`[${e.name}(noNodes)]`;if(s){const i=(d=t==null?void 0:t.hops)==null?void 0:d.includes(n),a=n.name;return r.jsx(re.Provider,{value:{update:async u=>{const c=await Ee("hop");return(i?b=>c.updateValue(a,b||n):b=>c.updateLocal(a,b||n))(u)}},children:r.jsx(z,{size:5,children:o.map((u,c)=>r.jsx(Ie,{node:u,upjson:m=>o[c]=m},c))})})}return r.jsx(z,{size:5,children:o.map((i,a)=>r.jsx(Ie,{node:i,upjson:u=>o[a]=u},i.name+a))})};function Ms(e){const{update:n}=y.useContext(re),{t:s}=G();return r.jsx(z,{size:5,children:e.hops.map((t,l)=>{const o=r.jsx(ht,{...t});return r.jsx(ae,{title:o,color:"#c7e7ff",arrow:!1,children:r.jsx(H,{bordered:!1,color:"blue",className:"editor-json",title:s("text.doubleClickEdit"),onDoubleClick:()=>{se.show({title:s("base.cmd.edit"),initialValues:{value:ce(t)},onFinish:async d=>(e.hops[l]=Z(d.value),n(),!0)})},children:t.name})},t.name+l)}).reduce((t,l,o)=>(t.length>0&&t.push(r.jsx(Xt,{style:{color:"blue",fontSize:12}},"_sp_"+o)),t.push(l),t),[])})}function gt(e){const{hops:n}=e;return r.jsx(Ms,{hops:n,root:e})}const Rs=e=>{y.useContext(le);const n={module:"chain",renderConfig:(s,t,l)=>r.jsx(gt,{...t})};return r.jsx(V,{...n})},bt=(e,n)=>{const{gostConfig:s,localConfig:t}=y.useContext(le),l=y.useMemo(()=>{var i;return(i=s==null?void 0:s[n])==null?void 0:i.find(a=>a.name===e)},[s,e,n]),o=y.useMemo(()=>{var i;return(i=t==null?void 0:t[n])==null?void 0:i.find(a=>a.name===e)},[t,e,n]);return[l??o,!!l]},Ps=e=>{const[n,s]=bt(e.hop,"hops");let t=e,l=!1;(!t.nodes||t.nodes.length===0)&&(t=n,l=!!n);const{nodes:o}=t;if(!o||(o==null?void 0:o.length)<=0)return`[${e.name}(noNodes)]`;const d=r.jsx(z,{size:5,children:o.map((i,a)=>r.jsx(Ie,{node:i,upjson:u=>o[a]=u},i.name+a))});if(l){const i=t.name;return r.jsx(re.Provider,{value:{update:async a=>{const u=await Ee("hop");return(s?m=>u.updateValue(i,m||t):m=>u.updateLocal(i,m||t))(a)}},children:d})}return d},st=e=>{const[n,s]=bt(e.chainName,"chains");if(!n)return"[no chain]";const t=e.chainName;return r.jsx(re.Provider,{value:{update:async l=>{const o=await Ee("chain");return(s?i=>o.updateValue(t,i||n):i=>o.updateLocal(t,i||n))(l)}},children:r.jsx(gt,{...n})})},Ds=e=>{const{name:n,addr:s,handler:t,listener:l,forwarder:o}=e,{t:d}=G(),i=y.useMemo(()=>{const a=t==null?void 0:t.type,u=l==null?void 0:l.type;return a===u?a:`${a}+${u}`},[t,l]);return r.jsxs(z,{children:[r.jsx(H,{color:"#87d068",children:i}),r.jsx(H,{color:"green",children:s}),t.chain&&r.jsx(ae,{title:r.jsx(st,{chainName:t.chain}),color:"#c7e7ff",arrow:!1,children:r.jsx(H,{children:d("modules.chain.subTitle")})}),l.chain&&r.jsx(ae,{title:r.jsx(st,{chainName:l.chain}),color:"#fff0d7",arrow:!1,children:r.jsx(H,{color:"orange",children:d("terms.key0")})}),o&&r.jsx(ae,{title:r.jsx(Ps,{...o}),color:"#c7e7ff",arrow:!1,children:r.jsx(H,{children:d("terms.forwarder")})})]})},Hs=e=>{const{colSpan:n}=e;lt();const s={module:"service",renderConfig:(t,l,o)=>r.jsx(Ds,{...l}),filter:(t,l)=>{const{name:o,addr:d,handler:i,listener:a}=t;function u(c){const m=c==null?void 0:c.toLowerCase();return m?m.indexOf(l)!==-1:!1}return u(o)||u(d)||u(i==null?void 0:i.type)||u(a==null?void 0:a.type)}};return r.jsx(U,{...n,xxl:16,children:r.jsx(V,{...s})})},Js=e=>r.jsx(V,{module:"hop",renderConfig:(n,s,t)=>r.jsx(ht,{...s})}),D={xs:24,sm:24,md:12,lg:12,xl:12,xxl:8},Te={sm:24,xxl:8},Ks=()=>{const{isLoading:e}=y.useContext(le),n=me(),{t:s}=G(),t=lt(),[l,o]=y.useState(!1),[d,i]=y.useState(!1),[a,u]=y.useState(!0),[c,m]=y.useState([]),b=y.useRef({});y.useEffect(()=>{$t().then(k=>k.sort((x,T)=>{const A=x.time||0;return(T.time||0)-A})).then(k=>m(k.map(x=>({key:x.addr,label:r.jsx("a",{href:`./?use=${x.addr}`,children:x.addr})}))))},[n.addr]),y.useEffect(()=>{Ut().then(T=>{T&&I.emit("update",!1)});const k=b.current.onSave=async()=>{try{i(!0);const{saveFormat:T,savePath:A}=me.get()||{};await St(T,A),u(!0)}finally{i(!1)}},x=(T=!1)=>{var A;if(T&&u(!1),!(!((A=me.get())!=null&&A.autoSave)||!T))return k()};return I.on("update",x),I.on("apiUpdate",x),()=>{I.off("update",x),I.off("apiUpdate",x)}},[]);const w=y.useMemo(()=>{const k=[];return c.length&&(k.push({key:"2",label:s("manage.cmd.switch"),children:c}),k.push({type:"divider"})),k.push({key:"new",label:s("manage.cmd.new"),onClick:()=>{window.open(location.href,void 0,"noopener")}}),k},[c,s]);return r.jsxs(ke,{style:{height:"100vh",overflow:"hidden"},children:[r.jsxs(ke.Header,{style:{color:"#FFF",paddingInline:20},children:[r.jsxs(je,{align:"middle",justify:"space-between",wrap:!1,children:[r.jsx(U,{color:"",children:r.jsx(M,{type:"link",loading:e,icon:r.jsx(Zt,{}),onClick:async()=>{I.emit("update")},children:s("manage.cmd.reload")})}),r.jsx(U,{children:n.addr}),r.jsx(U,{children:r.jsxs(z,{children:[r.jsxs(z.Compact,{children:[r.jsx(M,{icon:a?r.jsx(rt,{}):r.jsx(an,{}),loading:d,onClick:()=>{var k,x;return(x=(k=b.current)==null?void 0:k.onSave)==null?void 0:x.call(k)},children:s("manage.cmd.save")}),r.jsx(M,{icon:r.jsx(mn,{}),onClick:()=>o(!0)})]}),r.jsx(M,{icon:r.jsx(Yt,{}),onClick:()=>{In(Ue(t),"gost.json")},children:s("manage.cmd.download")}),r.jsx(Le.Button,{menu:{activeKey:n.addr,items:w},onClick:_t,children:s("manage.cmd.logout")}),r.jsx(It,{}),r.jsx(Nt,{})]})})]}),r.jsx(ze,{destroyOnClose:!0,open:l,onCancel:()=>o(!1),footer:!1,children:r.jsxs(C,{initialValues:n,layout:"horizontal",labelCol:{span:4},onValuesChange:(k,x)=>{Object.assign(n,k),me.set(n),n.isLocal&&Et(n.addr,n)},children:[r.jsx(C.Item,{name:"autoSave",label:s("manage.label.autoSave"),valuePropName:"checked",children:r.jsx(Kt,{})}),r.jsx(C.Item,{name:"saveFormat",label:s("manage.label.format"),initialValue:"json",children:r.jsxs(we.Group,{optionType:"button",buttonStyle:"solid",children:[r.jsx(we,{value:"json",children:"json"}),r.jsx(we,{value:"yaml",children:"yaml"})]})}),r.jsx(C.Item,{name:"savePath",label:s("manage.label.path"),trigger:"onChange",children:r.jsx(Ve,{placeholder:s("placeholder.savePath")})})]})})]}),r.jsx(ke.Content,{style:{height:"100%",padding:16,boxSizing:"border-box",overflow:"auto"},children:r.jsxs(je,{gutter:[16,16],children:[r.jsx(Hs,{colSpan:D}),r.jsx(U,{...D,children:r.jsx(Rs,{})}),r.jsx(U,{...D,children:r.jsx(Js,{})}),r.jsx(U,{...D,children:r.jsx(V,{module:"auther"})}),r.jsx(U,{...D,children:r.jsx(V,{module:"admission"})}),r.jsx(U,{...D,children:r.jsx(V,{module:"bypass"})}),r.jsx(U,{...D,children:r.jsx(V,{module:"host"})}),r.jsx(U,{...D,children:r.jsx(V,{module:"ingress"})}),r.jsx(U,{...D,children:r.jsx(V,{module:"resolver"})}),r.jsx(U,{...D,children:r.jsx(V,{module:"sd"})}),r.jsx(U,{...D,children:r.jsx(V,{module:"observer"})}),r.jsx(U,{span:24,children:r.jsx(_e,{boxShadow:!0,title:s("manage.label.limit"),children:r.jsxs(je,{gutter:[16,16],children:[r.jsx(U,{...Te,children:r.jsx(V,{module:"limiter",bordered:!0,boxShadow:!1})}),r.jsx(U,{...Te,children:r.jsx(V,{module:"rlimiter",bordered:!0,boxShadow:!1})}),r.jsx(U,{...Te,children:r.jsx(V,{module:"climiter",bordered:!0,boxShadow:!1})})]})})}),r.jsx(U,{span:24,children:r.jsx(_e,{boxShadow:!0,title:s("manage.label.allConfig"),styles:{body:{padding:20}},children:r.jsx(ut,{className:"g-boder",value:Ue(t),height:500,language:"json",options:{minimap:{enabled:!1},readOnly:!0}})})})]})})]})};export{Ks as default}; diff --git a/assets/antd-af73db0d.js b/assets/antd-b4989dd4.js similarity index 87% rename from assets/antd-af73db0d.js rename to assets/antd-b4989dd4.js index d966faf..f6bd67a 100644 --- a/assets/antd-af73db0d.js +++ b/assets/antd-b4989dd4.js @@ -1,4 +1,4 @@ -function WS(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var OU=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function tv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function IU(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var GS={exports:{}},wt={};/** +function WS(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var zU=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function tv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function jU(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var GS={exports:{}},Et={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ function WS(e,t){for(var n=0;n>>1,F=N[B];if(0>>1;Bo(U,j))reo(Z,U)?(N[B]=Z,N[re]=j,B=re):(N[B]=U,N[X]=j,B=X);else if(reo(Z,j))N[B]=Z,N[re]=j,B=re;else break e}}return k}function o(N,k){var j=N.sortIndex-k.sortIndex;return j!==0?j:N.id-k.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}var c=[],u=[],d=1,f=null,m=3,g=!1,y=!1,h=!1,C=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(N){for(var k=n(u);k!==null;){if(k.callback===null)r(u);else if(k.startTime<=N)r(u),k.sortIndex=k.expirationTime,t(c,k);else break;k=n(u)}}function S(N){if(h=!1,b(N),!y)if(n(c)!==null)y=!0,z($);else{var k=n(u);k!==null&&P(S,k.startTime-N)}}function $(N,k){y=!1,h&&(h=!1,p(O),O=-1),g=!0;var j=m;try{for(b(k),f=n(c);f!==null&&(!(f.expirationTime>k)||N&&!T());){var B=f.callback;if(typeof B=="function"){f.callback=null,m=f.priorityLevel;var F=B(f.expirationTime<=k);k=e.unstable_now(),typeof F=="function"?f.callback=F:f===n(c)&&r(c),b(k)}else r(c);f=n(c)}if(f!==null)var K=!0;else{var X=n(u);X!==null&&P(S,X.startTime-k),K=!1}return K}finally{f=null,m=j,g=!1}}var x=!1,w=null,O=-1,E=5,I=-1;function T(){return!(e.unstable_now()-IN||125B?(N.sortIndex=j,t(u,N),n(c)===null&&N===n(u)&&(h?(p(O),O=-1):h=!0,P(S,j-B))):(N.sortIndex=F,t(c,N),y||g||(y=!0,z($))),N},e.unstable_shouldYield=T,e.unstable_wrapCallback=function(N){var k=m;return function(){var j=m;m=k;try{return N.apply(this,arguments)}finally{m=j}}}})(nx);tx.exports=nx;var D2=tx.exports;/** + */(function(e){function t(N,k){var j=N.length;N.push(k);e:for(;0>>1,F=N[B];if(0>>1;Bo(U,j))reo(Z,U)?(N[B]=Z,N[re]=j,B=re):(N[B]=U,N[X]=j,B=X);else if(reo(Z,j))N[B]=Z,N[re]=j,B=re;else break e}}return k}function o(N,k){var j=N.sortIndex-k.sortIndex;return j!==0?j:N.id-k.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}var c=[],u=[],d=1,f=null,m=3,g=!1,y=!1,h=!1,C=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(N){for(var k=n(u);k!==null;){if(k.callback===null)r(u);else if(k.startTime<=N)r(u),k.sortIndex=k.expirationTime,t(c,k);else break;k=n(u)}}function S(N){if(h=!1,b(N),!y)if(n(c)!==null)y=!0,z($);else{var k=n(u);k!==null&&P(S,k.startTime-N)}}function $(N,k){y=!1,h&&(h=!1,p(O),O=-1),g=!0;var j=m;try{for(b(k),f=n(c);f!==null&&(!(f.expirationTime>k)||N&&!T());){var B=f.callback;if(typeof B=="function"){f.callback=null,m=f.priorityLevel;var F=B(f.expirationTime<=k);k=e.unstable_now(),typeof F=="function"?f.callback=F:f===n(c)&&r(c),b(k)}else r(c);f=n(c)}if(f!==null)var K=!0;else{var X=n(u);X!==null&&P(S,X.startTime-k),K=!1}return K}finally{f=null,m=j,g=!1}}var x=!1,w=null,O=-1,E=5,I=-1;function T(){return!(e.unstable_now()-IN||125B?(N.sortIndex=j,t(u,N),n(c)===null&&N===n(u)&&(h?(p(O),O=-1):h=!0,P(S,j-B))):(N.sortIndex=F,t(c,N),y||g||(y=!0,z($))),N},e.unstable_shouldYield=T,e.unstable_wrapCallback=function(N){var k=m;return function(){var j=m;m=k;try{return N.apply(this,arguments)}finally{m=j}}}})(n1);t1.exports=n1;var D2=t1.exports;/** * @license React * react-dom.production.min.js * @@ -22,14 +22,14 @@ function WS(e,t){for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Qm=Object.prototype.hasOwnProperty,B2=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,R0={},N0={};function F2(e){return Qm.call(N0,e)?!0:Qm.call(R0,e)?!1:B2.test(e)?N0[e]=!0:(R0[e]=!0,!1)}function A2(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function H2(e,t,n,r){if(t===null||typeof t>"u"||A2(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Jn(e,t,n,r,o,a,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var _n={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){_n[e]=new Jn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];_n[t]=new Jn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){_n[e]=new Jn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){_n[e]=new Jn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){_n[e]=new Jn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){_n[e]=new Jn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){_n[e]=new Jn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){_n[e]=new Jn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){_n[e]=new Jn(e,5,!1,e.toLowerCase(),null,!1,!1)});var iv=/[\-:]([a-z])/g;function lv(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(iv,lv);_n[t]=new Jn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(iv,lv);_n[t]=new Jn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(iv,lv);_n[t]=new Jn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){_n[e]=new Jn(e,1,!1,e.toLowerCase(),null,!1,!1)});_n.xlinkHref=new Jn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){_n[e]=new Jn(e,1,!1,e.toLowerCase(),null,!0,!0)});function sv(e,t,n,r){var o=_n.hasOwnProperty(t)?_n[t]:null;(o!==null?o.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Qm=Object.prototype.hasOwnProperty,B2=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,R0={},N0={};function F2(e){return Qm.call(N0,e)?!0:Qm.call(R0,e)?!1:B2.test(e)?N0[e]=!0:(R0[e]=!0,!1)}function A2(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function H2(e,t,n,r){if(t===null||typeof t>"u"||A2(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Jn(e,t,n,r,o,a,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var _n={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){_n[e]=new Jn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];_n[t]=new Jn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){_n[e]=new Jn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){_n[e]=new Jn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){_n[e]=new Jn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){_n[e]=new Jn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){_n[e]=new Jn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){_n[e]=new Jn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){_n[e]=new Jn(e,5,!1,e.toLowerCase(),null,!1,!1)});var iv=/[\-:]([a-z])/g;function lv(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(iv,lv);_n[t]=new Jn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(iv,lv);_n[t]=new Jn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(iv,lv);_n[t]=new Jn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){_n[e]=new Jn(e,1,!1,e.toLowerCase(),null,!1,!1)});_n.xlinkHref=new Jn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){_n[e]=new Jn(e,1,!1,e.toLowerCase(),null,!0,!0)});function sv(e,t,n,r){var o=_n.hasOwnProperty(t)?_n[t]:null;(o!==null?o.type!==0:r||!(2l||o[i]!==a[l]){var c=` -`+o[i].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=i&&0<=l);break}}}finally{Bf=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Al(e):""}function V2(e){switch(e.tag){case 5:return Al(e.type);case 16:return Al("Lazy");case 13:return Al("Suspense");case 19:return Al("SuspenseList");case 0:case 2:case 15:return e=Ff(e.type,!1),e;case 11:return e=Ff(e.type.render,!1),e;case 1:return e=Ff(e.type,!0),e;default:return""}}function tg(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case xi:return"Fragment";case Si:return"Portal";case Zm:return"Profiler";case cv:return"StrictMode";case Jm:return"Suspense";case eg:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ix:return(e.displayName||"Context")+".Consumer";case ax:return(e._context.displayName||"Context")+".Provider";case uv:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case dv:return t=e.displayName||null,t!==null?t:tg(e.type)||"Memo";case Uo:t=e._payload,e=e._init;try{return tg(e(t))}catch{}}return null}function K2(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return tg(t);case 8:return t===cv?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function fa(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function sx(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function W2(e){var t=sx(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,a.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Sc(e){e._valueTracker||(e._valueTracker=W2(e))}function cx(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=sx(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Iu(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ng(e,t){var n=t.checked;return on({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function M0(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=fa(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ux(e,t){t=t.checked,t!=null&&sv(e,"checked",t,!1)}function rg(e,t){ux(e,t);var n=fa(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?og(e,t.type,n):t.hasOwnProperty("defaultValue")&&og(e,t.type,fa(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function _0(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function og(e,t,n){(t!=="number"||Iu(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Hl=Array.isArray;function Li(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=xc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function fs(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ul={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},G2=["Webkit","ms","Moz","O"];Object.keys(Ul).forEach(function(e){G2.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ul[t]=Ul[e]})});function gx(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ul.hasOwnProperty(e)&&Ul[e]?(""+t).trim():t+"px"}function px(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=gx(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var U2=on({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function lg(e,t){if(t){if(U2[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Ie(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Ie(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Ie(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Ie(62))}}function sg(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var cg=null;function fv(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ug=null,ki=null,Di=null;function L0(e){if(e=Ys(e)){if(typeof ug!="function")throw Error(Ie(280));var t=e.stateNode;t&&(t=Nd(t),ug(e.stateNode,e.type,t))}}function vx(e){ki?Di?Di.push(e):Di=[e]:ki=e}function hx(){if(ki){var e=ki,t=Di;if(Di=ki=null,L0(e),t)for(e=0;e>>=0,e===0?32:31-(oP(e)/aP|0)|0}var $c=64,wc=4194304;function Vl(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Tu(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=n&268435455;if(i!==0){var l=i&~o;l!==0?r=Vl(l):(a&=i,a!==0&&(r=Vl(a)))}else i=n&~o,i!==0?r=Vl(i):a!==0&&(r=Vl(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,a=t&-t,o>=a||o===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function qs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Yr(t),e[t]=n}function cP(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Xl),W0=String.fromCharCode(32),G0=!1;function kx(e,t){switch(e){case"keyup":return kP.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Dx(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var $i=!1;function BP(e,t){switch(e){case"compositionend":return Dx(t);case"keypress":return t.which!==32?null:(G0=!0,W0);case"textInput":return e=t.data,e===W0&&G0?null:e;default:return null}}function FP(e,t){if($i)return e==="compositionend"||!Cv&&kx(e,t)?(e=jx(),ru=hv=Zo=null,$i=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Y0(n)}}function Hx(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Hx(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Vx(){for(var e=window,t=Iu();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Iu(e.document)}return t}function Sv(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function XP(e){var t=Vx(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Hx(n.ownerDocument.documentElement,n)){if(r!==null&&Sv(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=r.end===void 0?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=Q0(n,a);var i=Q0(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,wi=null,vg=null,Ql=null,hg=!1;function Z0(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;hg||wi==null||wi!==Iu(r)||(r=wi,"selectionStart"in r&&Sv(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ql&&ys(Ql,r)||(Ql=r,r=zu(vg,"onSelect"),0Ii||(e.current=$g[Ii],$g[Ii]=null,Ii--)}function Vt(e,t){Ii++,$g[Ii]=e.current,e.current=t}var ma={},Hn=ba(ma),rr=ba(!1),Ha=ma;function qi(e,t){var n=e.type.contextTypes;if(!n)return ma;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},a;for(a in n)o[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function or(e){return e=e.childContextTypes,e!=null}function Lu(){Gt(rr),Gt(Hn)}function ay(e,t,n){if(Hn.current!==ma)throw Error(Ie(168));Vt(Hn,t),Vt(rr,n)}function Zx(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(Ie(108,K2(e)||"Unknown",o));return on({},n,r)}function ku(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ma,Ha=Hn.current,Vt(Hn,e),Vt(rr,rr.current),!0}function iy(e,t,n){var r=e.stateNode;if(!r)throw Error(Ie(169));n?(e=Zx(e,t,Ha),r.__reactInternalMemoizedMergedChildContext=e,Gt(rr),Gt(Hn),Vt(Hn,e)):Gt(rr),Vt(rr,n)}var So=null,Td=!1,em=!1;function Jx(e){So===null?So=[e]:So.push(e)}function lR(e){Td=!0,Jx(e)}function Ca(){if(!em&&So!==null){em=!0;var e=0,t=jt;try{var n=So;for(jt=1;e>=i,o-=i,$o=1<<32-Yr(t)+o|n<O?(E=w,w=null):E=w.sibling;var I=m(p,w,b[O],S);if(I===null){w===null&&(w=E);break}e&&w&&I.alternate===null&&t(p,w),v=a(I,v,O),x===null?$=I:x.sibling=I,x=I,w=E}if(O===b.length)return n(p,w),Qt&&wa(p,O),$;if(w===null){for(;OO?(E=w,w=null):E=w.sibling;var T=m(p,w,I.value,S);if(T===null){w===null&&(w=E);break}e&&w&&T.alternate===null&&t(p,w),v=a(T,v,O),x===null?$=T:x.sibling=T,x=T,w=E}if(I.done)return n(p,w),Qt&&wa(p,O),$;if(w===null){for(;!I.done;O++,I=b.next())I=f(p,I.value,S),I!==null&&(v=a(I,v,O),x===null?$=I:x.sibling=I,x=I);return Qt&&wa(p,O),$}for(w=r(p,w);!I.done;O++,I=b.next())I=g(w,p,O,I.value,S),I!==null&&(e&&I.alternate!==null&&w.delete(I.key===null?O:I.key),v=a(I,v,O),x===null?$=I:x.sibling=I,x=I);return e&&w.forEach(function(_){return t(p,_)}),Qt&&wa(p,O),$}function C(p,v,b,S){if(typeof b=="object"&&b!==null&&b.type===xi&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Cc:e:{for(var $=b.key,x=v;x!==null;){if(x.key===$){if($=b.type,$===xi){if(x.tag===7){n(p,x.sibling),v=o(x,b.props.children),v.return=p,p=v;break e}}else if(x.elementType===$||typeof $=="object"&&$!==null&&$.$$typeof===Uo&&my($)===x.type){n(p,x.sibling),v=o(x,b.props),v.ref=Tl(p,x,b),v.return=p,p=v;break e}n(p,x);break}else t(p,x);x=x.sibling}b.type===xi?(v=Ba(b.props.children,p.mode,S,b.key),v.return=p,p=v):(S=du(b.type,b.key,b.props,null,p.mode,S),S.ref=Tl(p,v,b),S.return=p,p=S)}return i(p);case Si:e:{for(x=b.key;v!==null;){if(v.key===x)if(v.tag===4&&v.stateNode.containerInfo===b.containerInfo&&v.stateNode.implementation===b.implementation){n(p,v.sibling),v=o(v,b.children||[]),v.return=p,p=v;break e}else{n(p,v);break}else t(p,v);v=v.sibling}v=sm(b,p.mode,S),v.return=p,p=v}return i(p);case Uo:return x=b._init,C(p,v,x(b._payload),S)}if(Hl(b))return y(p,v,b,S);if(Ol(b))return h(p,v,b,S);Tc(p,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,v!==null&&v.tag===6?(n(p,v.sibling),v=o(v,b),v.return=p,p=v):(n(p,v),v=lm(b,p.mode,S),v.return=p,p=v),i(p)):n(p,v)}return C}var Yi=l1(!0),s1=l1(!1),Qs={},uo=ba(Qs),xs=ba(Qs),$s=ba(Qs);function Ma(e){if(e===Qs)throw Error(Ie(174));return e}function Nv(e,t){switch(Vt($s,t),Vt(xs,e),Vt(uo,Qs),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ig(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ig(t,e)}Gt(uo),Vt(uo,t)}function Qi(){Gt(uo),Gt(xs),Gt($s)}function c1(e){Ma($s.current);var t=Ma(uo.current),n=ig(t,e.type);t!==n&&(Vt(xs,e),Vt(uo,n))}function Tv(e){xs.current===e&&(Gt(uo),Gt(xs))}var nn=ba(0);function Vu(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var tm=[];function Mv(){for(var e=0;en?n:4,e(!0);var r=nm.transition;nm.transition={};try{e(!1),t()}finally{jt=n,nm.transition=r}}function E1(){return Lr().memoizedState}function dR(e,t,n){var r=ca(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},O1(e))I1(t,n);else if(n=r1(e,t,n,r),n!==null){var o=Un();Qr(n,e,r,o),P1(n,t,r)}}function fR(e,t,n){var r=ca(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(O1(e))I1(t,o);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var i=t.lastRenderedState,l=a(i,n);if(o.hasEagerState=!0,o.eagerState=l,eo(l,i)){var c=t.interleaved;c===null?(o.next=o,Pv(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch{}finally{}n=r1(e,t,o,r),n!==null&&(o=Un(),Qr(n,e,r,o),P1(n,t,r))}}function O1(e){var t=e.alternate;return e===rn||t!==null&&t===rn}function I1(e,t){Zl=Ku=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function P1(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,gv(e,n)}}var Wu={readContext:jr,useCallback:Dn,useContext:Dn,useEffect:Dn,useImperativeHandle:Dn,useInsertionEffect:Dn,useLayoutEffect:Dn,useMemo:Dn,useReducer:Dn,useRef:Dn,useState:Dn,useDebugValue:Dn,useDeferredValue:Dn,useTransition:Dn,useMutableSource:Dn,useSyncExternalStore:Dn,useId:Dn,unstable_isNewReconciler:!1},mR={readContext:jr,useCallback:function(e,t){return lo().memoizedState=[e,t===void 0?null:t],e},useContext:jr,useEffect:py,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,lu(4194308,4,C1.bind(null,t,e),n)},useLayoutEffect:function(e,t){return lu(4194308,4,e,t)},useInsertionEffect:function(e,t){return lu(4,2,e,t)},useMemo:function(e,t){var n=lo();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=lo();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=dR.bind(null,rn,e),[r.memoizedState,e]},useRef:function(e){var t=lo();return e={current:e},t.memoizedState=e},useState:gy,useDebugValue:kv,useDeferredValue:function(e){return lo().memoizedState=e},useTransition:function(){var e=gy(!1),t=e[0];return e=uR.bind(null,e[1]),lo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=rn,o=lo();if(Qt){if(n===void 0)throw Error(Ie(407));n=n()}else{if(n=t(),On===null)throw Error(Ie(349));Ka&30||f1(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,py(g1.bind(null,r,a,e),[e]),r.flags|=2048,Os(9,m1.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=lo(),t=On.identifierPrefix;if(Qt){var n=wo,r=$o;n=(r&~(1<<32-Yr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ws++,0")&&(c=c.replace("",e.displayName)),c}while(1<=i&&0<=l);break}}}finally{Bf=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Al(e):""}function V2(e){switch(e.tag){case 5:return Al(e.type);case 16:return Al("Lazy");case 13:return Al("Suspense");case 19:return Al("SuspenseList");case 0:case 2:case 15:return e=Ff(e.type,!1),e;case 11:return e=Ff(e.type.render,!1),e;case 1:return e=Ff(e.type,!0),e;default:return""}}function tg(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case xi:return"Fragment";case Si:return"Portal";case Zm:return"Profiler";case cv:return"StrictMode";case Jm:return"Suspense";case eg:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case i1:return(e.displayName||"Context")+".Consumer";case a1:return(e._context.displayName||"Context")+".Provider";case uv:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case dv:return t=e.displayName||null,t!==null?t:tg(e.type)||"Memo";case Uo:t=e._payload,e=e._init;try{return tg(e(t))}catch{}}return null}function K2(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return tg(t);case 8:return t===cv?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function fa(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function s1(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function W2(e){var t=s1(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,a.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Sc(e){e._valueTracker||(e._valueTracker=W2(e))}function c1(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=s1(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Iu(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ng(e,t){var n=t.checked;return on({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function M0(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=fa(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function u1(e,t){t=t.checked,t!=null&&sv(e,"checked",t,!1)}function rg(e,t){u1(e,t);var n=fa(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?og(e,t.type,n):t.hasOwnProperty("defaultValue")&&og(e,t.type,fa(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function _0(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function og(e,t,n){(t!=="number"||Iu(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Hl=Array.isArray;function Li(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=xc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function fs(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ul={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},G2=["Webkit","ms","Moz","O"];Object.keys(Ul).forEach(function(e){G2.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ul[t]=Ul[e]})});function g1(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ul.hasOwnProperty(e)&&Ul[e]?(""+t).trim():t+"px"}function p1(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=g1(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var U2=on({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function lg(e,t){if(t){if(U2[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Ie(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Ie(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Ie(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Ie(62))}}function sg(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var cg=null;function fv(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ug=null,ki=null,Di=null;function L0(e){if(e=Ys(e)){if(typeof ug!="function")throw Error(Ie(280));var t=e.stateNode;t&&(t=Nd(t),ug(e.stateNode,e.type,t))}}function v1(e){ki?Di?Di.push(e):Di=[e]:ki=e}function h1(){if(ki){var e=ki,t=Di;if(Di=ki=null,L0(e),t)for(e=0;e>>=0,e===0?32:31-(oP(e)/aP|0)|0}var $c=64,wc=4194304;function Vl(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Tu(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=n&268435455;if(i!==0){var l=i&~o;l!==0?r=Vl(l):(a&=i,a!==0&&(r=Vl(a)))}else i=n&~o,i!==0?r=Vl(i):a!==0&&(r=Vl(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,a=t&-t,o>=a||o===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function qs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Yr(t),e[t]=n}function cP(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Xl),W0=String.fromCharCode(32),G0=!1;function k1(e,t){switch(e){case"keyup":return kP.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function D1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var $i=!1;function BP(e,t){switch(e){case"compositionend":return D1(t);case"keypress":return t.which!==32?null:(G0=!0,W0);case"textInput":return e=t.data,e===W0&&G0?null:e;default:return null}}function FP(e,t){if($i)return e==="compositionend"||!Cv&&k1(e,t)?(e=j1(),ru=hv=Zo=null,$i=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Y0(n)}}function H1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?H1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function V1(){for(var e=window,t=Iu();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Iu(e.document)}return t}function Sv(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function XP(e){var t=V1(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&H1(n.ownerDocument.documentElement,n)){if(r!==null&&Sv(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=r.end===void 0?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=Q0(n,a);var i=Q0(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,wi=null,vg=null,Ql=null,hg=!1;function Z0(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;hg||wi==null||wi!==Iu(r)||(r=wi,"selectionStart"in r&&Sv(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ql&&ys(Ql,r)||(Ql=r,r=zu(vg,"onSelect"),0Ii||(e.current=$g[Ii],$g[Ii]=null,Ii--)}function Vt(e,t){Ii++,$g[Ii]=e.current,e.current=t}var ma={},Hn=ba(ma),rr=ba(!1),Ha=ma;function qi(e,t){var n=e.type.contextTypes;if(!n)return ma;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},a;for(a in n)o[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function or(e){return e=e.childContextTypes,e!=null}function Lu(){Gt(rr),Gt(Hn)}function ay(e,t,n){if(Hn.current!==ma)throw Error(Ie(168));Vt(Hn,t),Vt(rr,n)}function Z1(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(Ie(108,K2(e)||"Unknown",o));return on({},n,r)}function ku(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ma,Ha=Hn.current,Vt(Hn,e),Vt(rr,rr.current),!0}function iy(e,t,n){var r=e.stateNode;if(!r)throw Error(Ie(169));n?(e=Z1(e,t,Ha),r.__reactInternalMemoizedMergedChildContext=e,Gt(rr),Gt(Hn),Vt(Hn,e)):Gt(rr),Vt(rr,n)}var So=null,Td=!1,em=!1;function J1(e){So===null?So=[e]:So.push(e)}function lR(e){Td=!0,J1(e)}function Ca(){if(!em&&So!==null){em=!0;var e=0,t=jt;try{var n=So;for(jt=1;e>=i,o-=i,$o=1<<32-Yr(t)+o|n<O?(E=w,w=null):E=w.sibling;var I=m(p,w,b[O],S);if(I===null){w===null&&(w=E);break}e&&w&&I.alternate===null&&t(p,w),v=a(I,v,O),x===null?$=I:x.sibling=I,x=I,w=E}if(O===b.length)return n(p,w),Qt&&wa(p,O),$;if(w===null){for(;OO?(E=w,w=null):E=w.sibling;var T=m(p,w,I.value,S);if(T===null){w===null&&(w=E);break}e&&w&&T.alternate===null&&t(p,w),v=a(T,v,O),x===null?$=T:x.sibling=T,x=T,w=E}if(I.done)return n(p,w),Qt&&wa(p,O),$;if(w===null){for(;!I.done;O++,I=b.next())I=f(p,I.value,S),I!==null&&(v=a(I,v,O),x===null?$=I:x.sibling=I,x=I);return Qt&&wa(p,O),$}for(w=r(p,w);!I.done;O++,I=b.next())I=g(w,p,O,I.value,S),I!==null&&(e&&I.alternate!==null&&w.delete(I.key===null?O:I.key),v=a(I,v,O),x===null?$=I:x.sibling=I,x=I);return e&&w.forEach(function(_){return t(p,_)}),Qt&&wa(p,O),$}function C(p,v,b,S){if(typeof b=="object"&&b!==null&&b.type===xi&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Cc:e:{for(var $=b.key,x=v;x!==null;){if(x.key===$){if($=b.type,$===xi){if(x.tag===7){n(p,x.sibling),v=o(x,b.props.children),v.return=p,p=v;break e}}else if(x.elementType===$||typeof $=="object"&&$!==null&&$.$$typeof===Uo&&my($)===x.type){n(p,x.sibling),v=o(x,b.props),v.ref=Tl(p,x,b),v.return=p,p=v;break e}n(p,x);break}else t(p,x);x=x.sibling}b.type===xi?(v=Ba(b.props.children,p.mode,S,b.key),v.return=p,p=v):(S=du(b.type,b.key,b.props,null,p.mode,S),S.ref=Tl(p,v,b),S.return=p,p=S)}return i(p);case Si:e:{for(x=b.key;v!==null;){if(v.key===x)if(v.tag===4&&v.stateNode.containerInfo===b.containerInfo&&v.stateNode.implementation===b.implementation){n(p,v.sibling),v=o(v,b.children||[]),v.return=p,p=v;break e}else{n(p,v);break}else t(p,v);v=v.sibling}v=sm(b,p.mode,S),v.return=p,p=v}return i(p);case Uo:return x=b._init,C(p,v,x(b._payload),S)}if(Hl(b))return y(p,v,b,S);if(Ol(b))return h(p,v,b,S);Tc(p,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,v!==null&&v.tag===6?(n(p,v.sibling),v=o(v,b),v.return=p,p=v):(n(p,v),v=lm(b,p.mode,S),v.return=p,p=v),i(p)):n(p,v)}return C}var Yi=lx(!0),sx=lx(!1),Qs={},uo=ba(Qs),xs=ba(Qs),$s=ba(Qs);function Ma(e){if(e===Qs)throw Error(Ie(174));return e}function Nv(e,t){switch(Vt($s,t),Vt(xs,e),Vt(uo,Qs),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ig(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ig(t,e)}Gt(uo),Vt(uo,t)}function Qi(){Gt(uo),Gt(xs),Gt($s)}function cx(e){Ma($s.current);var t=Ma(uo.current),n=ig(t,e.type);t!==n&&(Vt(xs,e),Vt(uo,n))}function Tv(e){xs.current===e&&(Gt(uo),Gt(xs))}var nn=ba(0);function Vu(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var tm=[];function Mv(){for(var e=0;en?n:4,e(!0);var r=nm.transition;nm.transition={};try{e(!1),t()}finally{jt=n,nm.transition=r}}function Ex(){return Lr().memoizedState}function dR(e,t,n){var r=ca(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ox(e))Ix(t,n);else if(n=rx(e,t,n,r),n!==null){var o=Un();Qr(n,e,r,o),Px(n,t,r)}}function fR(e,t,n){var r=ca(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ox(e))Ix(t,o);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var i=t.lastRenderedState,l=a(i,n);if(o.hasEagerState=!0,o.eagerState=l,eo(l,i)){var c=t.interleaved;c===null?(o.next=o,Pv(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch{}finally{}n=rx(e,t,o,r),n!==null&&(o=Un(),Qr(n,e,r,o),Px(n,t,r))}}function Ox(e){var t=e.alternate;return e===rn||t!==null&&t===rn}function Ix(e,t){Zl=Ku=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Px(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,gv(e,n)}}var Wu={readContext:jr,useCallback:Dn,useContext:Dn,useEffect:Dn,useImperativeHandle:Dn,useInsertionEffect:Dn,useLayoutEffect:Dn,useMemo:Dn,useReducer:Dn,useRef:Dn,useState:Dn,useDebugValue:Dn,useDeferredValue:Dn,useTransition:Dn,useMutableSource:Dn,useSyncExternalStore:Dn,useId:Dn,unstable_isNewReconciler:!1},mR={readContext:jr,useCallback:function(e,t){return lo().memoizedState=[e,t===void 0?null:t],e},useContext:jr,useEffect:py,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,lu(4194308,4,Cx.bind(null,t,e),n)},useLayoutEffect:function(e,t){return lu(4194308,4,e,t)},useInsertionEffect:function(e,t){return lu(4,2,e,t)},useMemo:function(e,t){var n=lo();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=lo();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=dR.bind(null,rn,e),[r.memoizedState,e]},useRef:function(e){var t=lo();return e={current:e},t.memoizedState=e},useState:gy,useDebugValue:kv,useDeferredValue:function(e){return lo().memoizedState=e},useTransition:function(){var e=gy(!1),t=e[0];return e=uR.bind(null,e[1]),lo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=rn,o=lo();if(Qt){if(n===void 0)throw Error(Ie(407));n=n()}else{if(n=t(),On===null)throw Error(Ie(349));Ka&30||fx(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,py(gx.bind(null,r,a,e),[e]),r.flags|=2048,Os(9,mx.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=lo(),t=On.identifierPrefix;if(Qt){var n=wo,r=$o;n=(r&~(1<<32-Yr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ws++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[so]=t,e[Ss]=r,k1(e,t,!1,!1),t.stateNode=e;e:{switch(i=sg(n,r),n){case"dialog":Wt("cancel",e),Wt("close",e),o=r;break;case"iframe":case"object":case"embed":Wt("load",e),o=r;break;case"video":case"audio":for(o=0;oJi&&(t.flags|=128,r=!0,Ml(a,!1),t.lanes=4194304)}else{if(!r)if(e=Vu(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ml(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!Qt)return Bn(t),null}else 2*fn()-a.renderingStartTime>Ji&&n!==1073741824&&(t.flags|=128,r=!0,Ml(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(n=a.last,n!==null?n.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=fn(),t.sibling=null,n=nn.current,Vt(nn,r?n&1|2:n&1),t):(Bn(t),null);case 22:case 23:return Vv(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?vr&1073741824&&(Bn(t),t.subtreeFlags&6&&(t.flags|=8192)):Bn(t),null;case 24:return null;case 25:return null}throw Error(Ie(156,t.tag))}function SR(e,t){switch($v(t),t.tag){case 1:return or(t.type)&&Lu(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Qi(),Gt(rr),Gt(Hn),Mv(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Tv(t),null;case 13:if(Gt(nn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Ie(340));Xi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Gt(nn),null;case 4:return Qi(),null;case 10:return Iv(t.type._context),null;case 22:case 23:return Vv(),null;case 24:return null;default:return null}}var _c=!1,An=!1,xR=typeof WeakSet=="function"?WeakSet:Set,Ke=null;function Ti(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){cn(e,t,r)}else n.current=null}function jg(e,t,n){try{n()}catch(r){cn(e,t,r)}}var wy=!1;function $R(e,t){if(yg=Mu,e=Vx(),Sv(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var i=0,l=-1,c=-1,u=0,d=0,f=e,m=null;t:for(;;){for(var g;f!==n||o!==0&&f.nodeType!==3||(l=i+o),f!==a||r!==0&&f.nodeType!==3||(c=i+r),f.nodeType===3&&(i+=f.nodeValue.length),(g=f.firstChild)!==null;)m=f,f=g;for(;;){if(f===e)break t;if(m===n&&++u===o&&(l=i),m===a&&++d===r&&(c=i),(g=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=g}n=l===-1||c===-1?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(bg={focusedElem:e,selectionRange:n},Mu=!1,Ke=t;Ke!==null;)if(t=Ke,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ke=e;else for(;Ke!==null;){t=Ke;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var h=y.memoizedProps,C=y.memoizedState,p=t.stateNode,v=p.getSnapshotBeforeUpdate(t.elementType===t.type?h:Kr(t.type,h),C);p.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Ie(163))}}catch(S){cn(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,Ke=e;break}Ke=t.return}return y=wy,wy=!1,y}function Jl(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,a!==void 0&&jg(t,n,a)}o=o.next}while(o!==r)}}function zd(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Lg(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function F1(e){var t=e.alternate;t!==null&&(e.alternate=null,F1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[so],delete t[Ss],delete t[xg],delete t[aR],delete t[iR])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function A1(e){return e.tag===5||e.tag===3||e.tag===4}function Ey(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||A1(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function kg(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ju));else if(r!==4&&(e=e.child,e!==null))for(kg(e,t,n),e=e.sibling;e!==null;)kg(e,t,n),e=e.sibling}function Dg(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Dg(e,t,n),e=e.sibling;e!==null;)Dg(e,t,n),e=e.sibling}var Nn=null,Wr=!1;function Ko(e,t,n){for(n=n.child;n!==null;)H1(e,t,n),n=n.sibling}function H1(e,t,n){if(co&&typeof co.onCommitFiberUnmount=="function")try{co.onCommitFiberUnmount(Od,n)}catch{}switch(n.tag){case 5:An||Ti(n,t);case 6:var r=Nn,o=Wr;Nn=null,Ko(e,t,n),Nn=r,Wr=o,Nn!==null&&(Wr?(e=Nn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Nn.removeChild(n.stateNode));break;case 18:Nn!==null&&(Wr?(e=Nn,n=n.stateNode,e.nodeType===8?Jf(e.parentNode,n):e.nodeType===1&&Jf(e,n),vs(e)):Jf(Nn,n.stateNode));break;case 4:r=Nn,o=Wr,Nn=n.stateNode.containerInfo,Wr=!0,Ko(e,t,n),Nn=r,Wr=o;break;case 0:case 11:case 14:case 15:if(!An&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,i!==void 0&&(a&2||a&4)&&jg(n,t,i),o=o.next}while(o!==r)}Ko(e,t,n);break;case 1:if(!An&&(Ti(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){cn(n,t,l)}Ko(e,t,n);break;case 21:Ko(e,t,n);break;case 22:n.mode&1?(An=(r=An)||n.memoizedState!==null,Ko(e,t,n),An=r):Ko(e,t,n);break;default:Ko(e,t,n)}}function Oy(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new xR),t.forEach(function(r){var o=MR.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Hr(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=i),r&=~a}if(r=o,r=fn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ER(r/1960))-r,10e?16:e,Jo===null)var r=!1;else{if(e=Jo,Jo=null,qu=0,Nt&6)throw Error(Ie(331));var o=Nt;for(Nt|=4,Ke=e.current;Ke!==null;){var a=Ke,i=a.child;if(Ke.flags&16){var l=a.deletions;if(l!==null){for(var c=0;cfn()-Av?Da(e,0):Fv|=n),ar(e,t)}function Y1(e,t){t===0&&(e.mode&1?(t=wc,wc<<=1,!(wc&130023424)&&(wc=4194304)):t=1);var n=Un();e=Ro(e,t),e!==null&&(qs(e,t,n),ar(e,n))}function TR(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Y1(e,n)}function MR(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Ie(314))}r!==null&&r.delete(t),Y1(e,n)}var Q1;Q1=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||rr.current)nr=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return nr=!1,bR(e,t,n);nr=!!(e.flags&131072)}else nr=!1,Qt&&t.flags&1048576&&e1(t,Bu,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;su(e,t),e=t.pendingProps;var o=qi(t,Hn.current);Fi(t,n),o=zv(null,t,r,e,o,n);var a=jv();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,or(r)?(a=!0,ku(t)):a=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Rv(t),o.updater=Md,t.stateNode=o,o._reactInternals=t,Pg(t,r,e,n),t=Tg(null,t,r,!0,a,n)):(t.tag=0,Qt&&a&&xv(t),Gn(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(su(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=zR(r),e=Kr(r,e),o){case 0:t=Ng(null,t,r,e,n);break e;case 1:t=Sy(null,t,r,e,n);break e;case 11:t=by(null,t,r,e,n);break e;case 14:t=Cy(null,t,r,Kr(r.type,e),n);break e}throw Error(Ie(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Kr(r,o),Ng(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Kr(r,o),Sy(e,t,r,o,n);case 3:e:{if(z1(t),e===null)throw Error(Ie(387));r=t.pendingProps,a=t.memoizedState,o=a.element,o1(e,t),Hu(t,r,null,n);var i=t.memoizedState;if(r=i.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){o=Zi(Error(Ie(423)),t),t=xy(e,t,r,n,o);break e}else if(r!==o){o=Zi(Error(Ie(424)),t),t=xy(e,t,r,n,o);break e}else for(yr=ia(t.stateNode.containerInfo.firstChild),Sr=t,Qt=!0,Xr=null,n=s1(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Xi(),r===o){t=No(e,t,n);break e}Gn(e,t,r,n)}t=t.child}return t;case 5:return c1(t),e===null&&Eg(t),r=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,i=o.children,Cg(r,o)?i=null:a!==null&&Cg(r,a)&&(t.flags|=32),_1(e,t),Gn(e,t,i,n),t.child;case 6:return e===null&&Eg(t),null;case 13:return j1(e,t,n);case 4:return Nv(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Yi(t,null,r,n):Gn(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Kr(r,o),by(e,t,r,o,n);case 7:return Gn(e,t,t.pendingProps,n),t.child;case 8:return Gn(e,t,t.pendingProps.children,n),t.child;case 12:return Gn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value,Vt(Fu,r._currentValue),r._currentValue=i,a!==null)if(eo(a.value,i)){if(a.children===o.children&&!rr.current){t=No(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var l=a.dependencies;if(l!==null){i=a.child;for(var c=l.firstContext;c!==null;){if(c.context===r){if(a.tag===1){c=Eo(-1,n&-n),c.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}a.lanes|=n,c=a.alternate,c!==null&&(c.lanes|=n),Og(a.return,n,t),l.lanes|=n;break}c=c.next}}else if(a.tag===10)i=a.type===t.type?null:a.child;else if(a.tag===18){if(i=a.return,i===null)throw Error(Ie(341));i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Og(i,n,t),i=a.sibling}else i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===t){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}Gn(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Fi(t,n),o=jr(o),r=r(o),t.flags|=1,Gn(e,t,r,n),t.child;case 14:return r=t.type,o=Kr(r,t.pendingProps),o=Kr(r.type,o),Cy(e,t,r,o,n);case 15:return T1(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Kr(r,o),su(e,t),t.tag=1,or(r)?(e=!0,ku(t)):e=!1,Fi(t,n),i1(t,r,o),Pg(t,r,o,n),Tg(null,t,r,!0,e,n);case 19:return L1(e,t,n);case 22:return M1(e,t,n)}throw Error(Ie(156,t.tag))};function Z1(e,t){return wx(e,t)}function _R(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function _r(e,t,n,r){return new _R(e,t,n,r)}function Wv(e){return e=e.prototype,!(!e||!e.isReactComponent)}function zR(e){if(typeof e=="function")return Wv(e)?1:0;if(e!=null){if(e=e.$$typeof,e===uv)return 11;if(e===dv)return 14}return 2}function ua(e,t){var n=e.alternate;return n===null?(n=_r(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function du(e,t,n,r,o,a){var i=2;if(r=e,typeof e=="function")Wv(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case xi:return Ba(n.children,o,a,t);case cv:i=8,o|=8;break;case Zm:return e=_r(12,n,t,o|2),e.elementType=Zm,e.lanes=a,e;case Jm:return e=_r(13,n,t,o),e.elementType=Jm,e.lanes=a,e;case eg:return e=_r(19,n,t,o),e.elementType=eg,e.lanes=a,e;case lx:return Ld(n,o,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ax:i=10;break e;case ix:i=9;break e;case uv:i=11;break e;case dv:i=14;break e;case Uo:i=16,r=null;break e}throw Error(Ie(130,e==null?e:typeof e,""))}return t=_r(i,n,t,o),t.elementType=e,t.type=r,t.lanes=a,t}function Ba(e,t,n,r){return e=_r(7,e,r,t),e.lanes=n,e}function Ld(e,t,n,r){return e=_r(22,e,r,t),e.elementType=lx,e.lanes=n,e.stateNode={isHidden:!1},e}function lm(e,t,n){return e=_r(6,e,null,t),e.lanes=n,e}function sm(e,t,n){return t=_r(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function jR(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Hf(0),this.expirationTimes=Hf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Hf(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Gv(e,t,n,r,o,a,i,l,c){return e=new jR(e,t,n,l,c),t===1?(t=1,a===!0&&(t|=8)):t=0,a=_r(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Rv(a),e}function LR(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n$)}catch(e){console.error(e)}}n$(),ex.exports=$r;var To=ex.exports;const Qu=tv(To),AR=WS({__proto__:null,default:Qu},[To]);var r$={exports:{}};/*! +`+a.stack}return{value:e,source:t,stack:o,digest:null}}function am(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Rg(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var vR=typeof WeakMap=="function"?WeakMap:Map;function Rx(e,t,n){n=Eo(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Uu||(Uu=!0,Bg=r),Rg(e,t)},n}function Nx(e,t,n){n=Eo(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Rg(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(n.callback=function(){Rg(e,t),typeof r!="function"&&(sa===null?sa=new Set([this]):sa.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function vy(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new vR;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=NR.bind(null,e,t,n),t.then(e,e))}function hy(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function yy(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Eo(-1,1),t.tag=2,la(n,t,1))),n.lanes|=1),e)}var hR=Do.ReactCurrentOwner,nr=!1;function Gn(e,t,n,r){t.child=e===null?sx(t,null,n,r):Yi(t,e.child,n,r)}function by(e,t,n,r,o){n=n.render;var a=t.ref;return Fi(t,o),r=zv(e,t,n,r,a,o),n=jv(),e!==null&&!nr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,No(e,t,o)):(Qt&&n&&xv(t),t.flags|=1,Gn(e,t,r,o),t.child)}function Cy(e,t,n,r,o){if(e===null){var a=n.type;return typeof a=="function"&&!Wv(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,Tx(e,t,a,r,o)):(e=du(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&o)){var i=a.memoizedProps;if(n=n.compare,n=n!==null?n:ys,n(i,r)&&e.ref===t.ref)return No(e,t,o)}return t.flags|=1,e=ua(a,r),e.ref=t.ref,e.return=t,t.child=e}function Tx(e,t,n,r,o){if(e!==null){var a=e.memoizedProps;if(ys(a,r)&&e.ref===t.ref)if(nr=!1,t.pendingProps=r=a,(e.lanes&o)!==0)e.flags&131072&&(nr=!0);else return t.lanes=e.lanes,No(e,t,o)}return Ng(e,t,n,r,o)}function Mx(e,t,n){var r=t.pendingProps,o=r.children,a=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Vt(Mi,vr),vr|=n;else{if(!(n&1073741824))return e=a!==null?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Vt(Mi,vr),vr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a!==null?a.baseLanes:n,Vt(Mi,vr),vr|=r}else a!==null?(r=a.baseLanes|n,t.memoizedState=null):r=n,Vt(Mi,vr),vr|=r;return Gn(e,t,o,n),t.child}function _x(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ng(e,t,n,r,o){var a=or(n)?Ha:Hn.current;return a=qi(t,a),Fi(t,o),n=zv(e,t,n,r,a,o),r=jv(),e!==null&&!nr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,No(e,t,o)):(Qt&&r&&xv(t),t.flags|=1,Gn(e,t,n,o),t.child)}function Sy(e,t,n,r,o){if(or(n)){var a=!0;ku(t)}else a=!1;if(Fi(t,o),t.stateNode===null)su(e,t),ix(t,n,r),Pg(t,n,r,o),r=!0;else if(e===null){var i=t.stateNode,l=t.memoizedProps;i.props=l;var c=i.context,u=n.contextType;typeof u=="object"&&u!==null?u=jr(u):(u=or(n)?Ha:Hn.current,u=qi(t,u));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function";f||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==r||c!==u)&&fy(t,i,r,u),qo=!1;var m=t.memoizedState;i.state=m,Hu(t,r,i,o),c=t.memoizedState,l!==r||m!==c||rr.current||qo?(typeof d=="function"&&(Ig(t,n,d,r),c=t.memoizedState),(l=qo||dy(t,n,l,r,m,c,u))?(f||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),i.props=r,i.state=c,i.context=u,r=l):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,ox(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Kr(t.type,l),i.props=u,f=t.pendingProps,m=i.context,c=n.contextType,typeof c=="object"&&c!==null?c=jr(c):(c=or(n)?Ha:Hn.current,c=qi(t,c));var g=n.getDerivedStateFromProps;(d=typeof g=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==f||m!==c)&&fy(t,i,r,c),qo=!1,m=t.memoizedState,i.state=m,Hu(t,r,i,o);var y=t.memoizedState;l!==f||m!==y||rr.current||qo?(typeof g=="function"&&(Ig(t,n,g,r),y=t.memoizedState),(u=qo||dy(t,n,u,r,m,y,c)||!1)?(d||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,y,c),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,y,c)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),i.props=r,i.state=y,i.context=c,r=u):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return Tg(e,t,n,r,a,o)}function Tg(e,t,n,r,o,a){_x(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return o&&iy(t,n,!1),No(e,t,a);r=t.stateNode,hR.current=t;var l=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=Yi(t,e.child,null,a),t.child=Yi(t,null,l,a)):Gn(e,t,l,a),t.memoizedState=r.state,o&&iy(t,n,!0),t.child}function zx(e){var t=e.stateNode;t.pendingContext?ay(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ay(e,t.context,!1),Nv(e,t.containerInfo)}function xy(e,t,n,r,o){return Xi(),wv(o),t.flags|=256,Gn(e,t,n,r),t.child}var Mg={dehydrated:null,treeContext:null,retryLane:0};function _g(e){return{baseLanes:e,cachePool:null,transitions:null}}function jx(e,t,n){var r=t.pendingProps,o=nn.current,a=!1,i=(t.flags&128)!==0,l;if((l=i)||(l=e!==null&&e.memoizedState===null?!1:(o&2)!==0),l?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Vt(nn,o&1),e===null)return Eg(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=r.children,e=r.fallback,a?(r=t.mode,a=t.child,i={mode:"hidden",children:i},!(r&1)&&a!==null?(a.childLanes=0,a.pendingProps=i):a=Ld(i,r,0,null),e=Ba(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=_g(n),t.memoizedState=Mg,e):Dv(t,i));if(o=e.memoizedState,o!==null&&(l=o.dehydrated,l!==null))return yR(e,t,i,r,l,o,n);if(a){a=r.fallback,i=t.mode,o=e.child,l=o.sibling;var c={mode:"hidden",children:r.children};return!(i&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=ua(o,c),r.subtreeFlags=o.subtreeFlags&14680064),l!==null?a=ua(l,a):(a=Ba(a,i,n,null),a.flags|=2),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,i=e.child.memoizedState,i=i===null?_g(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},a.memoizedState=i,a.childLanes=e.childLanes&~n,t.memoizedState=Mg,r}return a=e.child,e=a.sibling,r=ua(a,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Dv(e,t){return t=Ld({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Mc(e,t,n,r){return r!==null&&wv(r),Yi(t,e.child,null,n),e=Dv(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function yR(e,t,n,r,o,a,i){if(n)return t.flags&256?(t.flags&=-257,r=am(Error(Ie(422))),Mc(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=Ld({mode:"visible",children:r.children},o,0,null),a=Ba(a,o,i,null),a.flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,t.mode&1&&Yi(t,e.child,null,i),t.child.memoizedState=_g(i),t.memoizedState=Mg,a);if(!(t.mode&1))return Mc(e,t,i,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,a=Error(Ie(419)),r=am(a,r,void 0),Mc(e,t,i,r)}if(l=(i&e.childLanes)!==0,nr||l){if(r=On,r!==null){switch(i&-i){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|i)?0:o,o!==0&&o!==a.retryLane&&(a.retryLane=o,Ro(e,o),Qr(r,e,o,-1))}return Kv(),r=am(Error(Ie(421))),Mc(e,t,i,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=TR.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,yr=ia(o.nextSibling),Sr=t,Qt=!0,Xr=null,e!==null&&(Tr[Mr++]=$o,Tr[Mr++]=wo,Tr[Mr++]=Va,$o=e.id,wo=e.overflow,Va=t),t=Dv(t,r.children),t.flags|=4096,t)}function $y(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Og(e.return,t,n)}function im(e,t,n,r,o){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o)}function Lx(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(Gn(e,t,r.children,n),r=nn.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&$y(e,n,t);else if(e.tag===19)$y(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Vt(nn,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Vu(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),im(t,!1,o,n,a);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Vu(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}im(t,!0,n,null,a);break;case"together":im(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function su(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function No(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Wa|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Ie(153));if(t.child!==null){for(e=t.child,n=ua(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ua(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function bR(e,t,n){switch(t.tag){case 3:zx(t),Xi();break;case 5:cx(t);break;case 1:or(t.type)&&ku(t);break;case 4:Nv(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Vt(Fu,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Vt(nn,nn.current&1),t.flags|=128,null):n&t.child.childLanes?jx(e,t,n):(Vt(nn,nn.current&1),e=No(e,t,n),e!==null?e.sibling:null);Vt(nn,nn.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Lx(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Vt(nn,nn.current),r)break;return null;case 22:case 23:return t.lanes=0,Mx(e,t,n)}return No(e,t,n)}var kx,zg,Dx,Bx;kx=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};zg=function(){};Dx=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Ma(uo.current);var a=null;switch(n){case"input":o=ng(e,o),r=ng(e,r),a=[];break;case"select":o=on({},o,{value:void 0}),r=on({},r,{value:void 0}),a=[];break;case"textarea":o=ag(e,o),r=ag(e,r),a=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ju)}lg(n,r);var i;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var l=o[u];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(ds.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var c=r[u];if(l=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(c!=null||l!=null))if(u==="style")if(l){for(i in l)!l.hasOwnProperty(i)||c&&c.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in c)c.hasOwnProperty(i)&&l[i]!==c[i]&&(n||(n={}),n[i]=c[i])}else n||(a||(a=[]),a.push(u,n)),n=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,l=l?l.__html:void 0,c!=null&&l!==c&&(a=a||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(a=a||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(ds.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&Wt("scroll",e),a||l===c||(a=[])):(a=a||[]).push(u,c))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}};Bx=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ml(e,t){if(!Qt)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Bn(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function CR(e,t,n){var r=t.pendingProps;switch($v(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Bn(t),null;case 1:return or(t.type)&&Lu(),Bn(t),null;case 3:return r=t.stateNode,Qi(),Gt(rr),Gt(Hn),Mv(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Nc(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Xr!==null&&(Hg(Xr),Xr=null))),zg(e,t),Bn(t),null;case 5:Tv(t);var o=Ma($s.current);if(n=t.type,e!==null&&t.stateNode!=null)Dx(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Ie(166));return Bn(t),null}if(e=Ma(uo.current),Nc(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[so]=t,r[Ss]=a,e=(t.mode&1)!==0,n){case"dialog":Wt("cancel",r),Wt("close",r);break;case"iframe":case"object":case"embed":Wt("load",r);break;case"video":case"audio":for(o=0;o<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[so]=t,e[Ss]=r,kx(e,t,!1,!1),t.stateNode=e;e:{switch(i=sg(n,r),n){case"dialog":Wt("cancel",e),Wt("close",e),o=r;break;case"iframe":case"object":case"embed":Wt("load",e),o=r;break;case"video":case"audio":for(o=0;oJi&&(t.flags|=128,r=!0,Ml(a,!1),t.lanes=4194304)}else{if(!r)if(e=Vu(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ml(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!Qt)return Bn(t),null}else 2*fn()-a.renderingStartTime>Ji&&n!==1073741824&&(t.flags|=128,r=!0,Ml(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(n=a.last,n!==null?n.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=fn(),t.sibling=null,n=nn.current,Vt(nn,r?n&1|2:n&1),t):(Bn(t),null);case 22:case 23:return Vv(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?vr&1073741824&&(Bn(t),t.subtreeFlags&6&&(t.flags|=8192)):Bn(t),null;case 24:return null;case 25:return null}throw Error(Ie(156,t.tag))}function SR(e,t){switch($v(t),t.tag){case 1:return or(t.type)&&Lu(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Qi(),Gt(rr),Gt(Hn),Mv(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Tv(t),null;case 13:if(Gt(nn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Ie(340));Xi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Gt(nn),null;case 4:return Qi(),null;case 10:return Iv(t.type._context),null;case 22:case 23:return Vv(),null;case 24:return null;default:return null}}var _c=!1,An=!1,xR=typeof WeakSet=="function"?WeakSet:Set,Ke=null;function Ti(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){cn(e,t,r)}else n.current=null}function jg(e,t,n){try{n()}catch(r){cn(e,t,r)}}var wy=!1;function $R(e,t){if(yg=Mu,e=V1(),Sv(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var i=0,l=-1,c=-1,u=0,d=0,f=e,m=null;t:for(;;){for(var g;f!==n||o!==0&&f.nodeType!==3||(l=i+o),f!==a||r!==0&&f.nodeType!==3||(c=i+r),f.nodeType===3&&(i+=f.nodeValue.length),(g=f.firstChild)!==null;)m=f,f=g;for(;;){if(f===e)break t;if(m===n&&++u===o&&(l=i),m===a&&++d===r&&(c=i),(g=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=g}n=l===-1||c===-1?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(bg={focusedElem:e,selectionRange:n},Mu=!1,Ke=t;Ke!==null;)if(t=Ke,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ke=e;else for(;Ke!==null;){t=Ke;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var h=y.memoizedProps,C=y.memoizedState,p=t.stateNode,v=p.getSnapshotBeforeUpdate(t.elementType===t.type?h:Kr(t.type,h),C);p.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Ie(163))}}catch(S){cn(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,Ke=e;break}Ke=t.return}return y=wy,wy=!1,y}function Jl(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,a!==void 0&&jg(t,n,a)}o=o.next}while(o!==r)}}function zd(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Lg(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Fx(e){var t=e.alternate;t!==null&&(e.alternate=null,Fx(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[so],delete t[Ss],delete t[xg],delete t[aR],delete t[iR])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Ax(e){return e.tag===5||e.tag===3||e.tag===4}function Ey(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ax(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function kg(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ju));else if(r!==4&&(e=e.child,e!==null))for(kg(e,t,n),e=e.sibling;e!==null;)kg(e,t,n),e=e.sibling}function Dg(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Dg(e,t,n),e=e.sibling;e!==null;)Dg(e,t,n),e=e.sibling}var Nn=null,Wr=!1;function Ko(e,t,n){for(n=n.child;n!==null;)Hx(e,t,n),n=n.sibling}function Hx(e,t,n){if(co&&typeof co.onCommitFiberUnmount=="function")try{co.onCommitFiberUnmount(Od,n)}catch{}switch(n.tag){case 5:An||Ti(n,t);case 6:var r=Nn,o=Wr;Nn=null,Ko(e,t,n),Nn=r,Wr=o,Nn!==null&&(Wr?(e=Nn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Nn.removeChild(n.stateNode));break;case 18:Nn!==null&&(Wr?(e=Nn,n=n.stateNode,e.nodeType===8?Jf(e.parentNode,n):e.nodeType===1&&Jf(e,n),vs(e)):Jf(Nn,n.stateNode));break;case 4:r=Nn,o=Wr,Nn=n.stateNode.containerInfo,Wr=!0,Ko(e,t,n),Nn=r,Wr=o;break;case 0:case 11:case 14:case 15:if(!An&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,i!==void 0&&(a&2||a&4)&&jg(n,t,i),o=o.next}while(o!==r)}Ko(e,t,n);break;case 1:if(!An&&(Ti(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){cn(n,t,l)}Ko(e,t,n);break;case 21:Ko(e,t,n);break;case 22:n.mode&1?(An=(r=An)||n.memoizedState!==null,Ko(e,t,n),An=r):Ko(e,t,n);break;default:Ko(e,t,n)}}function Oy(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new xR),t.forEach(function(r){var o=MR.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Hr(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=i),r&=~a}if(r=o,r=fn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ER(r/1960))-r,10e?16:e,Jo===null)var r=!1;else{if(e=Jo,Jo=null,qu=0,Nt&6)throw Error(Ie(331));var o=Nt;for(Nt|=4,Ke=e.current;Ke!==null;){var a=Ke,i=a.child;if(Ke.flags&16){var l=a.deletions;if(l!==null){for(var c=0;cfn()-Av?Da(e,0):Fv|=n),ar(e,t)}function Yx(e,t){t===0&&(e.mode&1?(t=wc,wc<<=1,!(wc&130023424)&&(wc=4194304)):t=1);var n=Un();e=Ro(e,t),e!==null&&(qs(e,t,n),ar(e,n))}function TR(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Yx(e,n)}function MR(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Ie(314))}r!==null&&r.delete(t),Yx(e,n)}var Qx;Qx=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||rr.current)nr=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return nr=!1,bR(e,t,n);nr=!!(e.flags&131072)}else nr=!1,Qt&&t.flags&1048576&&ex(t,Bu,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;su(e,t),e=t.pendingProps;var o=qi(t,Hn.current);Fi(t,n),o=zv(null,t,r,e,o,n);var a=jv();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,or(r)?(a=!0,ku(t)):a=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Rv(t),o.updater=Md,t.stateNode=o,o._reactInternals=t,Pg(t,r,e,n),t=Tg(null,t,r,!0,a,n)):(t.tag=0,Qt&&a&&xv(t),Gn(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(su(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=zR(r),e=Kr(r,e),o){case 0:t=Ng(null,t,r,e,n);break e;case 1:t=Sy(null,t,r,e,n);break e;case 11:t=by(null,t,r,e,n);break e;case 14:t=Cy(null,t,r,Kr(r.type,e),n);break e}throw Error(Ie(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Kr(r,o),Ng(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Kr(r,o),Sy(e,t,r,o,n);case 3:e:{if(zx(t),e===null)throw Error(Ie(387));r=t.pendingProps,a=t.memoizedState,o=a.element,ox(e,t),Hu(t,r,null,n);var i=t.memoizedState;if(r=i.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){o=Zi(Error(Ie(423)),t),t=xy(e,t,r,n,o);break e}else if(r!==o){o=Zi(Error(Ie(424)),t),t=xy(e,t,r,n,o);break e}else for(yr=ia(t.stateNode.containerInfo.firstChild),Sr=t,Qt=!0,Xr=null,n=sx(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Xi(),r===o){t=No(e,t,n);break e}Gn(e,t,r,n)}t=t.child}return t;case 5:return cx(t),e===null&&Eg(t),r=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,i=o.children,Cg(r,o)?i=null:a!==null&&Cg(r,a)&&(t.flags|=32),_x(e,t),Gn(e,t,i,n),t.child;case 6:return e===null&&Eg(t),null;case 13:return jx(e,t,n);case 4:return Nv(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Yi(t,null,r,n):Gn(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Kr(r,o),by(e,t,r,o,n);case 7:return Gn(e,t,t.pendingProps,n),t.child;case 8:return Gn(e,t,t.pendingProps.children,n),t.child;case 12:return Gn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value,Vt(Fu,r._currentValue),r._currentValue=i,a!==null)if(eo(a.value,i)){if(a.children===o.children&&!rr.current){t=No(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var l=a.dependencies;if(l!==null){i=a.child;for(var c=l.firstContext;c!==null;){if(c.context===r){if(a.tag===1){c=Eo(-1,n&-n),c.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}a.lanes|=n,c=a.alternate,c!==null&&(c.lanes|=n),Og(a.return,n,t),l.lanes|=n;break}c=c.next}}else if(a.tag===10)i=a.type===t.type?null:a.child;else if(a.tag===18){if(i=a.return,i===null)throw Error(Ie(341));i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Og(i,n,t),i=a.sibling}else i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===t){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}Gn(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Fi(t,n),o=jr(o),r=r(o),t.flags|=1,Gn(e,t,r,n),t.child;case 14:return r=t.type,o=Kr(r,t.pendingProps),o=Kr(r.type,o),Cy(e,t,r,o,n);case 15:return Tx(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Kr(r,o),su(e,t),t.tag=1,or(r)?(e=!0,ku(t)):e=!1,Fi(t,n),ix(t,r,o),Pg(t,r,o,n),Tg(null,t,r,!0,e,n);case 19:return Lx(e,t,n);case 22:return Mx(e,t,n)}throw Error(Ie(156,t.tag))};function Zx(e,t){return w1(e,t)}function _R(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function _r(e,t,n,r){return new _R(e,t,n,r)}function Wv(e){return e=e.prototype,!(!e||!e.isReactComponent)}function zR(e){if(typeof e=="function")return Wv(e)?1:0;if(e!=null){if(e=e.$$typeof,e===uv)return 11;if(e===dv)return 14}return 2}function ua(e,t){var n=e.alternate;return n===null?(n=_r(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function du(e,t,n,r,o,a){var i=2;if(r=e,typeof e=="function")Wv(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case xi:return Ba(n.children,o,a,t);case cv:i=8,o|=8;break;case Zm:return e=_r(12,n,t,o|2),e.elementType=Zm,e.lanes=a,e;case Jm:return e=_r(13,n,t,o),e.elementType=Jm,e.lanes=a,e;case eg:return e=_r(19,n,t,o),e.elementType=eg,e.lanes=a,e;case l1:return Ld(n,o,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case a1:i=10;break e;case i1:i=9;break e;case uv:i=11;break e;case dv:i=14;break e;case Uo:i=16,r=null;break e}throw Error(Ie(130,e==null?e:typeof e,""))}return t=_r(i,n,t,o),t.elementType=e,t.type=r,t.lanes=a,t}function Ba(e,t,n,r){return e=_r(7,e,r,t),e.lanes=n,e}function Ld(e,t,n,r){return e=_r(22,e,r,t),e.elementType=l1,e.lanes=n,e.stateNode={isHidden:!1},e}function lm(e,t,n){return e=_r(6,e,null,t),e.lanes=n,e}function sm(e,t,n){return t=_r(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function jR(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Hf(0),this.expirationTimes=Hf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Hf(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Gv(e,t,n,r,o,a,i,l,c){return e=new jR(e,t,n,l,c),t===1?(t=1,a===!0&&(t|=8)):t=0,a=_r(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Rv(a),e}function LR(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n$)}catch(e){console.error(e)}}n$(),e1.exports=$r;var To=e1.exports;const Qu=tv(To),AR=WS({__proto__:null,default:Qu},[To]);var r$={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames @@ -42,10 +42,10 @@ Error generating stack: `+a.message+` * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Yv=Symbol.for("react.element"),Qv=Symbol.for("react.portal"),Ad=Symbol.for("react.fragment"),Hd=Symbol.for("react.strict_mode"),Vd=Symbol.for("react.profiler"),Kd=Symbol.for("react.provider"),Wd=Symbol.for("react.context"),VR=Symbol.for("react.server_context"),Gd=Symbol.for("react.forward_ref"),Ud=Symbol.for("react.suspense"),qd=Symbol.for("react.suspense_list"),Xd=Symbol.for("react.memo"),Yd=Symbol.for("react.lazy"),KR=Symbol.for("react.offscreen"),a$;a$=Symbol.for("react.module.reference");function Dr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Yv:switch(e=e.type,e){case Ad:case Vd:case Hd:case Ud:case qd:return e;default:switch(e=e&&e.$$typeof,e){case VR:case Wd:case Gd:case Yd:case Xd:case Kd:return e;default:return t}}case Qv:return t}}}Lt.ContextConsumer=Wd;Lt.ContextProvider=Kd;Lt.Element=Yv;Lt.ForwardRef=Gd;Lt.Fragment=Ad;Lt.Lazy=Yd;Lt.Memo=Xd;Lt.Portal=Qv;Lt.Profiler=Vd;Lt.StrictMode=Hd;Lt.Suspense=Ud;Lt.SuspenseList=qd;Lt.isAsyncMode=function(){return!1};Lt.isConcurrentMode=function(){return!1};Lt.isContextConsumer=function(e){return Dr(e)===Wd};Lt.isContextProvider=function(e){return Dr(e)===Kd};Lt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Yv};Lt.isForwardRef=function(e){return Dr(e)===Gd};Lt.isFragment=function(e){return Dr(e)===Ad};Lt.isLazy=function(e){return Dr(e)===Yd};Lt.isMemo=function(e){return Dr(e)===Xd};Lt.isPortal=function(e){return Dr(e)===Qv};Lt.isProfiler=function(e){return Dr(e)===Vd};Lt.isStrictMode=function(e){return Dr(e)===Hd};Lt.isSuspense=function(e){return Dr(e)===Ud};Lt.isSuspenseList=function(e){return Dr(e)===qd};Lt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Ad||e===Vd||e===Hd||e===Ud||e===qd||e===KR||typeof e=="object"&&e!==null&&(e.$$typeof===Yd||e.$$typeof===Xd||e.$$typeof===Kd||e.$$typeof===Wd||e.$$typeof===Gd||e.$$typeof===a$||e.getModuleId!==void 0)};Lt.typeOf=Dr;o$.exports=Lt;var ns=o$.exports;function lr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return G.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(lr(r)):ns.isFragment(r)&&r.props?n=n.concat(lr(r.props.children,t)):n.push(r))}),n}var Vg={},WR=function(t){};function GR(e,t){}function UR(e,t){}function qR(){Vg={}}function i$(e,t,n){!t&&!Vg[n]&&(e(!1,n),Vg[n]=!0)}function Zt(e,t){i$(GR,e,t)}function XR(e,t){i$(UR,e,t)}Zt.preMessage=WR;Zt.resetWarned=qR;Zt.noteOnce=XR;function at(e){"@babel/helpers - typeof";return at=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},at(e)}function YR(e,t){if(at(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(at(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function l$(e){var t=YR(e,"string");return at(t)=="symbol"?t:t+""}function D(e,t,n){return t=l$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function A(e){for(var t=1;t0},e.prototype.connect_=function(){!Wg||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),oN?(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(){!Wg||!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 n=t.propertyName,r=n===void 0?"":n,o=rN.some(function(a){return!!~r.indexOf(a)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),c$=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof el(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new mN(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 el(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.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(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new gN(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),d$=typeof WeakMap<"u"?new WeakMap:new s$,f$=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 n=aN.getInstance(),r=new pN(t,n,this);d$.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){f$.prototype[e]=function(){var t;return(t=d$.get(this))[e].apply(t,arguments)}});var vN=function(){return typeof Ju.ResizeObserver<"u"?Ju.ResizeObserver:f$}(),ea=new Map;function hN(e){e.forEach(function(t){var n,r=t.target;(n=ea.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var m$=new vN(hN);function yN(e,t){ea.has(e)||(ea.set(e,new Set),m$.observe(e)),ea.get(e).add(t)}function bN(e,t){ea.has(e)&&(ea.get(e).delete(t),ea.get(e).size||(m$.unobserve(e),ea.delete(e)))}function jn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ly(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:1;ky+=1;var r=ky;function o(a){if(a===0)y$(r),t();else{var i=v$(function(){o(a-1)});eh.set(r,i)}}return o(n),r};It.cancel=function(e){var t=eh.get(e);return y$(e),h$(t)};function b$(e){if(Array.isArray(e))return e}function IN(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){u=!0,o=d}finally{try{if(!c&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}function C$(){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 ue(e){return EN(e)||p$(e)||Jv(e)||ON()}var v$=function(t){return+setTimeout(t,16)},h$=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(v$=function(t){return window.requestAnimationFrame(t)},h$=function(t){return window.cancelAnimationFrame(t)});var ky=0,eh=new Map;function y$(e){eh.delete(e)}var Pt=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ky+=1;var r=ky;function o(a){if(a===0)y$(r),t();else{var i=v$(function(){o(a-1)});eh.set(r,i)}}return o(n),r};Pt.cancel=function(e){var t=eh.get(e);return y$(e),h$(t)};function b$(e){if(Array.isArray(e))return e}function IN(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){u=!0,o=d}finally{try{if(!c&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}function C$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Q(e,t){return b$(e)||IN(e,t)||Jv(e,t)||C$()}function td(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function zn(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function qg(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var Dy="data-rc-order",By="data-rc-priority",PN="rc-util-key",Xg=new Map;function S$(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):PN}function Zd(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function RN(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function th(e){return Array.from((Xg.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function x$(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!zn())return null;var n=t.csp,r=t.prepend,o=t.priority,a=o===void 0?0:o,i=RN(r),l=i==="prependQueue",c=document.createElement("style");c.setAttribute(Dy,i),l&&a&&c.setAttribute(By,"".concat(a)),n!=null&&n.nonce&&(c.nonce=n==null?void 0:n.nonce),c.innerHTML=e;var u=Zd(t),d=u.firstChild;if(r){if(l){var f=(t.styles||th(u)).filter(function(m){if(!["prepend","prependQueue"].includes(m.getAttribute(Dy)))return!1;var g=Number(m.getAttribute(By)||0);return a>=g});if(f.length)return u.insertBefore(c,f[f.length-1].nextSibling),c}u.insertBefore(c,d)}else u.appendChild(c);return c}function $$(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Zd(t);return(t.styles||th(n)).find(function(r){return r.getAttribute(S$(t))===e})}function Rs(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=$$(e,t);if(n){var r=Zd(t);r.removeChild(n)}}function NN(e,t){var n=Xg.get(e);if(!n||!qg(document,n)){var r=x$("",t),o=r.parentNode;Xg.set(e,o),e.removeChild(r)}}function Oo(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Zd(n),o=th(r),a=A(A({},n),{},{styles:o});NN(r,a);var i=$$(t,a);if(i){var l,c;if((l=a.csp)!==null&&l!==void 0&&l.nonce&&i.nonce!==((c=a.csp)===null||c===void 0?void 0:c.nonce)){var u;i.nonce=(u=a.csp)===null||u===void 0?void 0:u.nonce}return i.innerHTML!==e&&(i.innerHTML=e),i}var d=x$(e,a);return d.setAttribute(S$(a),t),d}function TN(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a=0)&&(n[o]=e[o]);return n}function tt(e,t){if(e==null)return{};var n=TN(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function mo(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(a,i){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=r.has(a);if(Zt(!c,"Warning: There may be circular references"),c)return!1;if(a===i)return!0;if(n&&l>1)return!1;r.add(a);var u=l+1;if(Array.isArray(a)){if(!Array.isArray(i)||a.length!==i.length)return!1;for(var d=0;d1&&arguments[1]!==void 0?arguments[1]:!1,i={map:this.cache};return n.forEach(function(l){if(!i)i=void 0;else{var c;i=(c=i)===null||c===void 0||(c=c.map)===null||c===void 0?void 0:c.get(l)}}),(r=i)!==null&&r!==void 0&&r.value&&a&&(i.value[1]=this.cacheCallTimes++),(o=i)===null||o===void 0?void 0:o.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var o=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var a=this.keys.reduce(function(u,d){var f=Q(u,2),m=f[1];return o.internalGet(d)[1]0,void 0),Fy+=1}return Ln(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),cm=new nh;function Ns(e){var t=Array.isArray(e)?e:[e];return cm.has(t)||cm.set(t,new w$(t)),cm.get(t)}var kN=new WeakMap,um={};function DN(e,t){for(var n=kN,r=0;r3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(a)return e;var i=A(A({},o),{},(r={},D(r,nl,t),D(r,Zr,n),r)),l=Object.keys(i).map(function(c){var u=i[c];return u?"".concat(c,'="').concat(u,'"'):null}).filter(function(c){return c}).join(" ");return"")}var E$=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},BN=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(o){var a=Q(o,2),i=a[0],l=a[1];return"".concat(i,":").concat(l,";")}).join(""),"}"):""},O$=function(t,n,r){var o={},a={};return Object.entries(t).forEach(function(i){var l,c,u=Q(i,2),d=u[0],f=u[1];if(r!=null&&(l=r.preserve)!==null&&l!==void 0&&l[d])a[d]=f;else if((typeof f=="string"||typeof f=="number")&&!(r!=null&&(c=r.ignore)!==null&&c!==void 0&&c[d])){var m,g=E$(d,r==null?void 0:r.prefix);o[g]=typeof f=="number"&&!(r!=null&&(m=r.unitless)!==null&&m!==void 0&&m[d])?"".concat(f,"px"):String(f),a[d]="var(".concat(g,")")}}),[a,BN(o,n,{scope:r==null?void 0:r.scope})]},Vy=zn()?s.useLayoutEffect:s.useEffect,Mt=function(t,n){var r=s.useRef(!0);Vy(function(){return t(r.current)},n),Vy(function(){return r.current=!1,function(){r.current=!0}},[])},Zg=function(t,n){Mt(function(r){if(!r)return t()},n)},FN=A({},Ed),Ky=FN.useInsertionEffect,AN=function(t,n,r){s.useMemo(t,r),Mt(function(){return n(!0)},r)},HN=Ky?function(e,t,n){return Ky(function(){return e(),t()},n)}:AN;const VN=HN;var KN=A({},Ed),WN=KN.useInsertionEffect,GN=function(t){var n=[],r=!1;function o(a){r||n.push(a)}return s.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(a){return a()})}},t),o},UN=function(){return function(t){t()}},qN=typeof WN<"u"?GN:UN;const XN=qN;function rh(e,t,n,r,o){var a=s.useContext(Jd),i=a.cache,l=[e].concat(ue(t)),c=Yg(l),u=XN([c]),d=function(y){i.opUpdate(c,function(h){var C=h||[void 0,void 0],p=Q(C,2),v=p[0],b=v===void 0?0:v,S=p[1],$=S,x=$||n(),w=[b,x];return y?y(w):w})};s.useMemo(function(){d()},[c]);var f=i.opGet(c),m=f[1];return VN(function(){o==null||o(m)},function(g){return d(function(y){var h=Q(y,2),C=h[0],p=h[1];return g&&C===0&&(o==null||o(m)),[C+1,p]}),function(){i.opUpdate(c,function(y){var h=y||[],C=Q(h,2),p=C[0],v=p===void 0?0:p,b=C[1],S=v-1;return S===0?(u(function(){(g||!i.opGet(c))&&(r==null||r(b,!1))}),null):[v-1,b]})}},[c]),m}var YN={},QN="css",Pa=new Map;function ZN(e){Pa.set(e,(Pa.get(e)||0)+1)}function JN(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(nl,'="').concat(e,'"]'));n.forEach(function(r){if(r[ta]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var eT=0;function tT(e,t){Pa.set(e,(Pa.get(e)||0)-1);var n=Array.from(Pa.keys()),r=n.filter(function(o){var a=Pa.get(o)||0;return a<=0});n.length-r.length>eT&&r.forEach(function(o){JN(o,t),Pa.delete(o)})}var I$=function(t,n,r,o){var a=r.getDerivativeToken(t),i=A(A({},a),n);return o&&(i=o(i)),i},P$="token";function nT(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=s.useContext(Jd),o=r.cache.instanceId,a=r.container,i=n.salt,l=i===void 0?"":i,c=n.override,u=c===void 0?YN:c,d=n.formatToken,f=n.getComputedToken,m=n.cssVar,g=DN(function(){return Object.assign.apply(Object,[{}].concat(ue(t)))},t),y=os(g),h=os(u),C=m?os(m):"",p=rh(P$,[l,e.id,y,h,C],function(){var v,b=f?f(g,u,e):I$(g,u,e,d),S=A({},b),$="";if(m){var x=O$(b,m.key,{prefix:m.prefix,ignore:m.ignore,unitless:m.unitless,preserve:m.preserve}),w=Q(x,2);b=w[0],$=w[1]}var O=Hy(b,l);b._tokenKey=O,S._tokenKey=Hy(S,l);var E=(v=m==null?void 0:m.key)!==null&&v!==void 0?v:O;b._themeKey=E,ZN(E);var I="".concat(QN,"-").concat(td(O));return b._hashId=I,[b,I,S,$,(m==null?void 0:m.key)||""]},function(v){tT(v[0]._themeKey,o)},function(v){var b=Q(v,4),S=b[0],$=b[3];if(m&&$){var x=Oo($,td("css-variables-".concat(S._themeKey)),{mark:Zr,prepend:"queue",attachTo:a,priority:-999});x[ta]=o,x.setAttribute(nl,S._themeKey)}});return p}var rT=function(t,n,r){var o=Q(t,5),a=o[2],i=o[3],l=o[4],c=r||{},u=c.plain;if(!i)return null;var d=a._tokenKey,f=-999,m={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},g=nd(i,l,d,m,u);return[f,d,g]},oT={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},R$="comm",N$="rule",T$="decl",aT="@import",iT="@keyframes",lT="@layer",M$=Math.abs,oh=String.fromCharCode;function _$(e){return e.trim()}function fu(e,t,n){return e.replace(t,n)}function sT(e,t,n){return e.indexOf(t,n)}function Ts(e,t){return e.charCodeAt(t)|0}function Ms(e,t,n){return e.slice(t,n)}function xo(e){return e.length}function cT(e){return e.length}function Lc(e,t){return t.push(e),e}var ef=1,rl=1,z$=0,kr=0,yn=0,dl="";function ah(e,t,n,r,o,a,i,l){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:ef,column:rl,length:i,return:"",siblings:l}}function uT(){return yn}function dT(){return yn=kr>0?Ts(dl,--kr):0,rl--,yn===10&&(rl=1,ef--),yn}function Jr(){return yn=kr2||Jg(yn)>3?"":" "}function pT(e,t){for(;--t&&Jr()&&!(yn<48||yn>102||yn>57&&yn<65||yn>70&&yn<97););return tf(e,mu()+(t<6&&Fa()==32&&Jr()==32))}function ep(e){for(;Jr();)switch(yn){case e:return kr;case 34:case 39:e!==34&&e!==39&&ep(yn);break;case 40:e===41&&ep(e);break;case 92:Jr();break}return kr}function vT(e,t){for(;Jr()&&e+yn!==47+10;)if(e+yn===42+42&&Fa()===47)break;return"/*"+tf(t,kr-1)+"*"+oh(e===47?e:Jr())}function hT(e){for(;!Jg(Fa());)Jr();return tf(e,kr)}function yT(e){return mT(gu("",null,null,null,[""],e=fT(e),0,[0],e))}function gu(e,t,n,r,o,a,i,l,c){for(var u=0,d=0,f=i,m=0,g=0,y=0,h=1,C=1,p=1,v=0,b="",S=o,$=a,x=r,w=b;C;)switch(y=v,v=Jr()){case 40:if(y!=108&&Ts(w,f-1)==58){sT(w+=fu(dm(v),"&","&\f"),"&\f",M$(u?l[u-1]:0))!=-1&&(p=-1);break}case 34:case 39:case 91:w+=dm(v);break;case 9:case 10:case 13:case 32:w+=gT(y);break;case 92:w+=pT(mu()-1,7);continue;case 47:switch(Fa()){case 42:case 47:Lc(bT(vT(Jr(),mu()),t,n,c),c);break;default:w+="/"}break;case 123*h:l[u++]=xo(w)*p;case 125*h:case 59:case 0:switch(v){case 0:case 125:C=0;case 59+d:p==-1&&(w=fu(w,/\f/g,"")),g>0&&xo(w)-f&&Lc(g>32?Gy(w+";",r,n,f-1,c):Gy(fu(w," ","")+";",r,n,f-2,c),c);break;case 59:w+=";";default:if(Lc(x=Wy(w,t,n,u,d,o,l,b,S=[],$=[],f,a),a),v===123)if(d===0)gu(w,t,x,x,S,a,f,l,$);else switch(m===99&&Ts(w,3)===110?100:m){case 100:case 108:case 109:case 115:gu(e,x,x,r&&Lc(Wy(e,x,x,0,0,o,l,b,o,S=[],f,$),$),o,$,f,l,r?S:$);break;default:gu(w,x,x,x,[""],$,0,l,$)}}u=d=g=0,h=p=1,b=w="",f=i;break;case 58:f=1+xo(w),g=y;default:if(h<1){if(v==123)--h;else if(v==125&&h++==0&&dT()==125)continue}switch(w+=oh(v),v*h){case 38:p=d>0?1:(w+="\f",-1);break;case 44:l[u++]=(xo(w)-1)*p,p=1;break;case 64:Fa()===45&&(w+=dm(Jr())),m=Fa(),d=f=xo(b=w+=hT(mu())),v++;break;case 45:y===45&&xo(w)==2&&(h=0)}}return a}function Wy(e,t,n,r,o,a,i,l,c,u,d,f){for(var m=o-1,g=o===0?a:[""],y=cT(g),h=0,C=0,p=0;h0?g[v]+" "+b:fu(b,/&\f/g,g[v])))&&(c[p++]=S);return ah(e,t,n,o===0?N$:l,c,u,d,f)}function bT(e,t,n,r){return ah(e,t,n,R$,oh(uT()),Ms(e,2,-2),0,r)}function Gy(e,t,n,r,o){return ah(e,t,n,T$,Ms(e,0,r),Ms(e,r+1,-1),r,o)}function tp(e,t){for(var n="",r=0;r1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,a=r.injectHash,i=r.parentSelectors,l=n.hashId,c=n.layer;n.path;var u=n.hashPriority,d=n.transformers,f=d===void 0?[]:d;n.linters;var m="",g={};function y(p){var v=p.getName(l);if(!g[v]){var b=e(p.style,n,{root:!1,parentSelectors:i}),S=Q(b,1),$=S[0];g[v]="@keyframes ".concat(p.getName(l)).concat($)}}function h(p){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return p.forEach(function(b){Array.isArray(b)?h(b,v):b&&v.push(b)}),v}var C=h(Array.isArray(t)?t:[t]);return C.forEach(function(p){var v=typeof p=="string"&&!o?{}:p;if(typeof v=="string")m+="".concat(v,` `);else if(v._keyframe)y(v);else{var b=f.reduce(function(S,$){var x;return($==null||(x=$.visit)===null||x===void 0?void 0:x.call($,S))||S},v);Object.keys(b).forEach(function(S){var $=b[S];if(at($)==="object"&&$&&(S!=="animationName"||!$._keyframe)&&!ET($)){var x=!1,w=S.trim(),O=!1;(o||a)&&l?w.startsWith("@")?x=!0:w=OT(S,l,u):o&&!l&&(w==="&"||w==="")&&(w="",O=!0);var E=e($,n,{root:O,injectHash:x,parentSelectors:[].concat(ue(i),[w])}),I=Q(E,2),T=I[0],_=I[1];g=A(A({},g),_),m+="".concat(w).concat(T)}else{let L=function(z,P){var N=z.replace(/[A-Z]/g,function(j){return"-".concat(j.toLowerCase())}),k=P;!oT[z]&&typeof k=="number"&&k!==0&&(k="".concat(k,"px")),z==="animationName"&&P!==null&&P!==void 0&&P._keyframe&&(y(P),k=P.getName(l)),m+="".concat(N,":").concat(k,";")};var R,M=(R=$==null?void 0:$.value)!==null&&R!==void 0?R:$;at($)==="object"&&$!==null&&$!==void 0&&$[k$]&&Array.isArray(M)?M.forEach(function(z){L(S,z)}):L(S,M)}})}}),o?c&&(m="@layer ".concat(c.name," {").concat(m,"}"),c.dependencies&&(g["@layer ".concat(c.name)]=c.dependencies.map(function(p){return"@layer ".concat(p,", ").concat(c.name,";")}).join(` -`))):m="{".concat(m,"}"),[m,g]};function D$(e,t){return td("".concat(e.join("%")).concat(t))}function PT(){return null}var B$="style";function np(e,t){var n=e.token,r=e.path,o=e.hashId,a=e.layer,i=e.nonce,l=e.clientOnly,c=e.order,u=c===void 0?0:c,d=s.useContext(Jd),f=d.autoClear;d.mock;var m=d.defaultCache,g=d.hashPriority,y=d.container,h=d.ssrInline,C=d.transformers,p=d.linters,v=d.cache,b=d.layer,S=n._tokenKey,$=[S];b&&$.push("layer"),$.push.apply($,ue(r));var x=Qg,w=rh(B$,$,function(){var _=$.join("|");if(xT(_)){var R=$T(_),M=Q(R,2),L=M[0],z=M[1];if(L)return[L,S,z,{},l,u]}var P=t(),N=IT(P,{hashId:o,hashPriority:g,layer:b?a:void 0,path:r.join("-"),transformers:C,linters:p}),k=Q(N,2),j=k[0],B=k[1],F=pu(j),K=D$($,F);return[F,S,K,B,l,u]},function(_,R){var M=Q(_,3),L=M[2];(R||f)&&Qg&&Rs(L,{mark:Zr})},function(_){var R=Q(_,4),M=R[0];R[1];var L=R[2],z=R[3];if(x&&M!==j$){var P={mark:Zr,prepend:b?!1:"queue",attachTo:y,priority:u},N=typeof i=="function"?i():i;N&&(P.csp={nonce:N});var k=[],j=[];Object.keys(z).forEach(function(F){F.startsWith("@layer")?k.push(F):j.push(F)}),k.forEach(function(F){Oo(pu(z[F]),"_layer-".concat(F),A(A({},P),{},{prepend:!0}))});var B=Oo(M,L,P);B[ta]=v.instanceId,B.setAttribute(nl,S),j.forEach(function(F){Oo(pu(z[F]),"_effect-".concat(F),P)})}}),O=Q(w,3),E=O[0],I=O[1],T=O[2];return function(_){var R;if(!h||x||!m)R=s.createElement(PT,null);else{var M;R=s.createElement("style",ce({},(M={},D(M,nl,I),D(M,Zr,T),M),{dangerouslySetInnerHTML:{__html:E}}))}return s.createElement(s.Fragment,null,R,_)}}var RT=function(t,n,r){var o=Q(t,6),a=o[0],i=o[1],l=o[2],c=o[3],u=o[4],d=o[5],f=r||{},m=f.plain;if(u)return null;var g=a,y={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return g=nd(a,i,l,y,m),c&&Object.keys(c).forEach(function(h){if(!n[h]){n[h]=!0;var C=pu(c[h]),p=nd(C,i,"_effect-".concat(h),y,m);h.startsWith("@layer")?g=p+g:g+=p}}),[d,l,g]},F$="cssVar",NT=function(t,n){var r=t.key,o=t.prefix,a=t.unitless,i=t.ignore,l=t.token,c=t.scope,u=c===void 0?"":c,d=s.useContext(Jd),f=d.cache.instanceId,m=d.container,g=l._tokenKey,y=[].concat(ue(t.path),[r,u,g]),h=rh(F$,y,function(){var C=n(),p=O$(C,r,{prefix:o,unitless:a,ignore:i,scope:u}),v=Q(p,2),b=v[0],S=v[1],$=D$(y,S);return[b,S,$,r]},function(C){var p=Q(C,3),v=p[2];Qg&&Rs(v,{mark:Zr})},function(C){var p=Q(C,3),v=p[1],b=p[2];if(v){var S=Oo(v,b,{mark:Zr,prepend:"queue",attachTo:m,priority:-999});S[ta]=f,S.setAttribute(nl,r)}});return h},TT=function(t,n,r){var o=Q(t,4),a=o[1],i=o[2],l=o[3],c=r||{},u=c.plain;if(!a)return null;var d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},m=nd(a,l,i,f,u);return[d,i,m]},zl;zl={},D(zl,B$,RT),D(zl,P$,rT),D(zl,F$,TT);var yt=function(){function e(t,n){jn(this,e),D(this,"name",void 0),D(this,"style",void 0),D(this,"_keyframe",!0),this.name=t,this.style=n}return Ln(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function li(e){return e.notSplit=!0,e}li(["borderTop","borderBottom"]),li(["borderTop"]),li(["borderBottom"]),li(["borderLeft","borderRight"]),li(["borderLeft"]),li(["borderRight"]);var MT=s.createContext({});const ih=MT;function A$(e){return b$(e)||p$(e)||Jv(e)||C$()}function br(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!br(e,t.slice(0,-1))?e:H$(e,t,n,r)}function _T(e){return at(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function qy(e){return Array.isArray(e)?[]:{}}var zT=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function _i(){for(var e=arguments.length,t=new Array(e),n=0;n{const e=()=>{};return e.deprecated=jT,e},V$=s.createContext(void 0);var K$={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"},kT={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 DT={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},W$=DT,BT={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"]},kT),timePickerLocale:Object.assign({},W$)},Xy=BT,mr="${label} is not a valid ${type}",FT={locale:"en",Pagination:K$,DatePicker:Xy,TimePicker:W$,Calendar:Xy,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",collapse:"Collapse"},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:mr,method:mr,array:mr,object:mr,number:mr,date:mr,boolean:mr,integer:mr,float:mr,regexp:mr,email:mr,url:mr,hex:mr},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",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty"}},go=FT;let vu=Object.assign({},go.Modal),hu=[];const Yy=()=>hu.reduce((e,t)=>Object.assign(Object.assign({},e),t),go.Modal);function AT(e){if(e){const t=Object.assign({},e);return hu.push(t),vu=Yy(),()=>{hu=hu.filter(n=>n!==t),vu=Yy()}}vu=Object.assign({},go.Modal)}function G$(){return vu}const HT=s.createContext(void 0),lh=HT,VT=(e,t)=>{const n=s.useContext(lh),r=s.useMemo(()=>{var a;const i=t||go[e],l=(a=n==null?void 0:n[e])!==null&&a!==void 0?a:{};return Object.assign(Object.assign({},typeof i=="function"?i():i),l||{})},[e,t,n]),o=s.useMemo(()=>{const a=n==null?void 0:n.locale;return n!=null&&n.exist&&!a?go.locale:a},[n]);return[r,o]},ei=VT,KT="internalMark",WT=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;s.useEffect(()=>AT(t&&t.Modal),[t]);const o=s.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return s.createElement(lh.Provider,{value:o},n)},GT=WT;function Mn(e,t){UT(e)&&(e="100%");var n=qT(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function kc(e){return Math.min(1,Math.max(0,e))}function UT(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function qT(e){return typeof e=="string"&&e.indexOf("%")!==-1}function U$(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Dc(e){return e<=1?"".concat(Number(e)*100,"%"):e}function _a(e){return e.length===1?"0"+e:String(e)}function XT(e,t,n){return{r:Mn(e,255)*255,g:Mn(t,255)*255,b:Mn(n,255)*255}}function Qy(e,t,n){e=Mn(e,255),t=Mn(t,255),n=Mn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a=0,i=0,l=(r+o)/2;if(r===o)i=0,a=0;else{var c=r-o;switch(i=l>.5?c/(2-r-o):c/(r+o),r){case e:a=(t-n)/c+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function YT(e,t,n){var r,o,a;if(e=Mn(e,360),t=Mn(t,100),n=Mn(n,100),t===0)o=n,a=n,r=n;else{var i=n<.5?n*(1+t):n+t-n*t,l=2*n-i;r=fm(l,i,e+1/3),o=fm(l,i,e),a=fm(l,i,e-1/3)}return{r:r*255,g:o*255,b:a*255}}function rp(e,t,n){e=Mn(e,255),t=Mn(t,255),n=Mn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a=0,i=r,l=r-o,c=r===0?0:l/r;if(r===o)a=0;else{switch(r){case e:a=(t-n)/l+(t>16,g:(e&65280)>>8,b:e&255}}var ap={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 bi(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,a=null,i=!1,l=!1;return typeof e=="string"&&(e=rM(e)),typeof e=="object"&&(vo(e.r)&&vo(e.g)&&vo(e.b)?(t=XT(e.r,e.g,e.b),i=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):vo(e.h)&&vo(e.s)&&vo(e.v)?(r=Dc(e.s),o=Dc(e.v),t=QT(e.h,r,o),i=!0,l="hsv"):vo(e.h)&&vo(e.s)&&vo(e.l)&&(r=Dc(e.s),a=Dc(e.l),t=YT(e.h,r,a),i=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=U$(n),{ok:i,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var tM="[-\\+]?\\d+%?",nM="[-\\+]?\\d*\\.\\d+%?",na="(?:".concat(nM,")|(?:").concat(tM,")"),mm="[\\s|\\(]+(".concat(na,")[,|\\s]+(").concat(na,")[,|\\s]+(").concat(na,")\\s*\\)?"),gm="[\\s|\\(]+(".concat(na,")[,|\\s]+(").concat(na,")[,|\\s]+(").concat(na,")[,|\\s]+(").concat(na,")\\s*\\)?"),Vr={CSS_UNIT:new RegExp(na),rgb:new RegExp("rgb"+mm),rgba:new RegExp("rgba"+gm),hsl:new RegExp("hsl"+mm),hsla:new RegExp("hsla"+gm),hsv:new RegExp("hsv"+mm),hsva:new RegExp("hsva"+gm),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 rM(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(ap[e])e=ap[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Vr.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Vr.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Vr.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Vr.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Vr.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Vr.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Vr.hex8.exec(e),n?{r:pr(n[1]),g:pr(n[2]),b:pr(n[3]),a:Zy(n[4]),format:t?"name":"hex8"}:(n=Vr.hex6.exec(e),n?{r:pr(n[1]),g:pr(n[2]),b:pr(n[3]),format:t?"name":"hex"}:(n=Vr.hex4.exec(e),n?{r:pr(n[1]+n[1]),g:pr(n[2]+n[2]),b:pr(n[3]+n[3]),a:Zy(n[4]+n[4]),format:t?"name":"hex8"}:(n=Vr.hex3.exec(e),n?{r:pr(n[1]+n[1]),g:pr(n[2]+n[2]),b:pr(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function vo(e){return!!Vr.CSS_UNIT.exec(String(e))}var Dt=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=eM(t)),this.originalInput=t;var o=bi(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,o,a=t.r/255,i=t.g/255,l=t.b/255;return a<=.03928?n=a/12.92:n=Math.pow((a+.055)/1.055,2.4),i<=.03928?r=i/12.92:r=Math.pow((i+.055)/1.055,2.4),l<=.03928?o=l/12.92:o=Math.pow((l+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=U$(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=rp(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=rp(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Qy(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=Qy(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),op(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),ZT(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(Mn(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(Mn(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+op(this.r,this.g,this.b,!1),n=0,r=Object.entries(ap);n=0,a=!n&&o&&(t.startsWith("hex")||t==="name");return a?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=kc(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=kc(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=kc(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=kc(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),a=n/100,i={r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a};return new e(i)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,a=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(new e(r));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,a=n.v,i=[],l=1/t;t--;)i.push(new e({h:r,s:o,v:a})),a=(a+l)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],a=360/t,i=1;i=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Bc*t:Math.round(e.h)+Bc*t:r=n?Math.round(e.h)+Bc*t:Math.round(e.h)-Bc*t,r<0?r+=360:r>=360&&(r-=360),r}function nb(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Jy*t:t===X$?r=e.s+Jy:r=e.s+oM*t,r>1&&(r=1),n&&t===q$&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function rb(e,t,n){var r;return n?r=e.v+aM*t:r=e.v-iM*t,r>1&&(r=1),Number(r.toFixed(2))}function Mo(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=bi(e),o=q$;o>0;o-=1){var a=eb(r),i=Fc(bi({h:tb(a,o,!0),s:nb(a,o,!0),v:rb(a,o,!0)}));n.push(i)}n.push(Fc(r));for(var l=1;l<=X$;l+=1){var c=eb(r),u=Fc(bi({h:tb(c,l),s:nb(c,l),v:rb(c,l)}));n.push(u)}return t.theme==="dark"?lM.map(function(d){var f=d.index,m=d.opacity,g=Fc(sM(bi(t.backgroundColor||"#141414"),bi(n[f]),m*100));return g}):n}var pm={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"},Hi={},vm={};Object.keys(pm).forEach(function(e){Hi[e]=Mo(pm[e]),Hi[e].primary=Hi[e][5],vm[e]=Mo(pm[e],{theme:"dark",backgroundColor:"#141414"}),vm[e].primary=vm[e][5]});var PU=Hi.red,RU=Hi.green,cM=Hi.blue;const sh={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"},uM=Object.assign(Object.assign({},sh),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, +`))):m="{".concat(m,"}"),[m,g]};function D$(e,t){return td("".concat(e.join("%")).concat(t))}function PT(){return null}var B$="style";function np(e,t){var n=e.token,r=e.path,o=e.hashId,a=e.layer,i=e.nonce,l=e.clientOnly,c=e.order,u=c===void 0?0:c,d=s.useContext(Jd),f=d.autoClear;d.mock;var m=d.defaultCache,g=d.hashPriority,y=d.container,h=d.ssrInline,C=d.transformers,p=d.linters,v=d.cache,b=d.layer,S=n._tokenKey,$=[S];b&&$.push("layer"),$.push.apply($,ue(r));var x=Qg,w=rh(B$,$,function(){var _=$.join("|");if(xT(_)){var R=$T(_),M=Q(R,2),L=M[0],z=M[1];if(L)return[L,S,z,{},l,u]}var P=t(),N=IT(P,{hashId:o,hashPriority:g,layer:b?a:void 0,path:r.join("-"),transformers:C,linters:p}),k=Q(N,2),j=k[0],B=k[1],F=pu(j),K=D$($,F);return[F,S,K,B,l,u]},function(_,R){var M=Q(_,3),L=M[2];(R||f)&&Qg&&Rs(L,{mark:Zr})},function(_){var R=Q(_,4),M=R[0];R[1];var L=R[2],z=R[3];if(x&&M!==j$){var P={mark:Zr,prepend:b?!1:"queue",attachTo:y,priority:u},N=typeof i=="function"?i():i;N&&(P.csp={nonce:N});var k=[],j=[];Object.keys(z).forEach(function(F){F.startsWith("@layer")?k.push(F):j.push(F)}),k.forEach(function(F){Oo(pu(z[F]),"_layer-".concat(F),A(A({},P),{},{prepend:!0}))});var B=Oo(M,L,P);B[ta]=v.instanceId,B.setAttribute(nl,S),j.forEach(function(F){Oo(pu(z[F]),"_effect-".concat(F),P)})}}),O=Q(w,3),E=O[0],I=O[1],T=O[2];return function(_){var R;if(!h||x||!m)R=s.createElement(PT,null);else{var M;R=s.createElement("style",ce({},(M={},D(M,nl,I),D(M,Zr,T),M),{dangerouslySetInnerHTML:{__html:E}}))}return s.createElement(s.Fragment,null,R,_)}}var RT=function(t,n,r){var o=Q(t,6),a=o[0],i=o[1],l=o[2],c=o[3],u=o[4],d=o[5],f=r||{},m=f.plain;if(u)return null;var g=a,y={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return g=nd(a,i,l,y,m),c&&Object.keys(c).forEach(function(h){if(!n[h]){n[h]=!0;var C=pu(c[h]),p=nd(C,i,"_effect-".concat(h),y,m);h.startsWith("@layer")?g=p+g:g+=p}}),[d,l,g]},F$="cssVar",NT=function(t,n){var r=t.key,o=t.prefix,a=t.unitless,i=t.ignore,l=t.token,c=t.scope,u=c===void 0?"":c,d=s.useContext(Jd),f=d.cache.instanceId,m=d.container,g=l._tokenKey,y=[].concat(ue(t.path),[r,u,g]),h=rh(F$,y,function(){var C=n(),p=O$(C,r,{prefix:o,unitless:a,ignore:i,scope:u}),v=Q(p,2),b=v[0],S=v[1],$=D$(y,S);return[b,S,$,r]},function(C){var p=Q(C,3),v=p[2];Qg&&Rs(v,{mark:Zr})},function(C){var p=Q(C,3),v=p[1],b=p[2];if(v){var S=Oo(v,b,{mark:Zr,prepend:"queue",attachTo:m,priority:-999});S[ta]=f,S.setAttribute(nl,r)}});return h},TT=function(t,n,r){var o=Q(t,4),a=o[1],i=o[2],l=o[3],c=r||{},u=c.plain;if(!a)return null;var d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},m=nd(a,l,i,f,u);return[d,i,m]},zl;zl={},D(zl,B$,RT),D(zl,P$,rT),D(zl,F$,TT);var yt=function(){function e(t,n){jn(this,e),D(this,"name",void 0),D(this,"style",void 0),D(this,"_keyframe",!0),this.name=t,this.style=n}return Ln(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function li(e){return e.notSplit=!0,e}li(["borderTop","borderBottom"]),li(["borderTop"]),li(["borderBottom"]),li(["borderLeft","borderRight"]),li(["borderLeft"]),li(["borderRight"]);var MT=s.createContext({});const ih=MT;function A$(e){return b$(e)||p$(e)||Jv(e)||C$()}function br(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!br(e,t.slice(0,-1))?e:H$(e,t,n,r)}function _T(e){return at(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function qy(e){return Array.isArray(e)?[]:{}}var zT=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function _i(){for(var e=arguments.length,t=new Array(e),n=0;n{const e=()=>{};return e.deprecated=jT,e},V$=s.createContext(void 0);var K$={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"},kT={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 DT={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},W$=DT,BT={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"]},kT),timePickerLocale:Object.assign({},W$)},Xy=BT,mr="${label} is not a valid ${type}",FT={locale:"en",Pagination:K$,DatePicker:Xy,TimePicker:W$,Calendar:Xy,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",collapse:"Collapse"},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:mr,method:mr,array:mr,object:mr,number:mr,date:mr,boolean:mr,integer:mr,float:mr,regexp:mr,email:mr,url:mr,hex:mr},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",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty"}},go=FT;let vu=Object.assign({},go.Modal),hu=[];const Yy=()=>hu.reduce((e,t)=>Object.assign(Object.assign({},e),t),go.Modal);function AT(e){if(e){const t=Object.assign({},e);return hu.push(t),vu=Yy(),()=>{hu=hu.filter(n=>n!==t),vu=Yy()}}vu=Object.assign({},go.Modal)}function G$(){return vu}const HT=s.createContext(void 0),lh=HT,VT=(e,t)=>{const n=s.useContext(lh),r=s.useMemo(()=>{var a;const i=t||go[e],l=(a=n==null?void 0:n[e])!==null&&a!==void 0?a:{};return Object.assign(Object.assign({},typeof i=="function"?i():i),l||{})},[e,t,n]),o=s.useMemo(()=>{const a=n==null?void 0:n.locale;return n!=null&&n.exist&&!a?go.locale:a},[n]);return[r,o]},ei=VT,KT="internalMark",WT=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;s.useEffect(()=>AT(t&&t.Modal),[t]);const o=s.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return s.createElement(lh.Provider,{value:o},n)},GT=WT;function Mn(e,t){UT(e)&&(e="100%");var n=qT(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function kc(e){return Math.min(1,Math.max(0,e))}function UT(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function qT(e){return typeof e=="string"&&e.indexOf("%")!==-1}function U$(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Dc(e){return e<=1?"".concat(Number(e)*100,"%"):e}function _a(e){return e.length===1?"0"+e:String(e)}function XT(e,t,n){return{r:Mn(e,255)*255,g:Mn(t,255)*255,b:Mn(n,255)*255}}function Qy(e,t,n){e=Mn(e,255),t=Mn(t,255),n=Mn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a=0,i=0,l=(r+o)/2;if(r===o)i=0,a=0;else{var c=r-o;switch(i=l>.5?c/(2-r-o):c/(r+o),r){case e:a=(t-n)/c+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function YT(e,t,n){var r,o,a;if(e=Mn(e,360),t=Mn(t,100),n=Mn(n,100),t===0)o=n,a=n,r=n;else{var i=n<.5?n*(1+t):n+t-n*t,l=2*n-i;r=fm(l,i,e+1/3),o=fm(l,i,e),a=fm(l,i,e-1/3)}return{r:r*255,g:o*255,b:a*255}}function rp(e,t,n){e=Mn(e,255),t=Mn(t,255),n=Mn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a=0,i=r,l=r-o,c=r===0?0:l/r;if(r===o)a=0;else{switch(r){case e:a=(t-n)/l+(t>16,g:(e&65280)>>8,b:e&255}}var ap={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 bi(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,a=null,i=!1,l=!1;return typeof e=="string"&&(e=rM(e)),typeof e=="object"&&(vo(e.r)&&vo(e.g)&&vo(e.b)?(t=XT(e.r,e.g,e.b),i=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):vo(e.h)&&vo(e.s)&&vo(e.v)?(r=Dc(e.s),o=Dc(e.v),t=QT(e.h,r,o),i=!0,l="hsv"):vo(e.h)&&vo(e.s)&&vo(e.l)&&(r=Dc(e.s),a=Dc(e.l),t=YT(e.h,r,a),i=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=U$(n),{ok:i,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var tM="[-\\+]?\\d+%?",nM="[-\\+]?\\d*\\.\\d+%?",na="(?:".concat(nM,")|(?:").concat(tM,")"),mm="[\\s|\\(]+(".concat(na,")[,|\\s]+(").concat(na,")[,|\\s]+(").concat(na,")\\s*\\)?"),gm="[\\s|\\(]+(".concat(na,")[,|\\s]+(").concat(na,")[,|\\s]+(").concat(na,")[,|\\s]+(").concat(na,")\\s*\\)?"),Vr={CSS_UNIT:new RegExp(na),rgb:new RegExp("rgb"+mm),rgba:new RegExp("rgba"+gm),hsl:new RegExp("hsl"+mm),hsla:new RegExp("hsla"+gm),hsv:new RegExp("hsv"+mm),hsva:new RegExp("hsva"+gm),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 rM(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(ap[e])e=ap[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Vr.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Vr.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Vr.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Vr.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Vr.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Vr.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Vr.hex8.exec(e),n?{r:pr(n[1]),g:pr(n[2]),b:pr(n[3]),a:Zy(n[4]),format:t?"name":"hex8"}:(n=Vr.hex6.exec(e),n?{r:pr(n[1]),g:pr(n[2]),b:pr(n[3]),format:t?"name":"hex"}:(n=Vr.hex4.exec(e),n?{r:pr(n[1]+n[1]),g:pr(n[2]+n[2]),b:pr(n[3]+n[3]),a:Zy(n[4]+n[4]),format:t?"name":"hex8"}:(n=Vr.hex3.exec(e),n?{r:pr(n[1]+n[1]),g:pr(n[2]+n[2]),b:pr(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function vo(e){return!!Vr.CSS_UNIT.exec(String(e))}var Dt=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=eM(t)),this.originalInput=t;var o=bi(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,o,a=t.r/255,i=t.g/255,l=t.b/255;return a<=.03928?n=a/12.92:n=Math.pow((a+.055)/1.055,2.4),i<=.03928?r=i/12.92:r=Math.pow((i+.055)/1.055,2.4),l<=.03928?o=l/12.92:o=Math.pow((l+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=U$(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=rp(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=rp(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Qy(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=Qy(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),op(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),ZT(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(Mn(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(Mn(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+op(this.r,this.g,this.b,!1),n=0,r=Object.entries(ap);n=0,a=!n&&o&&(t.startsWith("hex")||t==="name");return a?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=kc(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=kc(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=kc(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=kc(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),a=n/100,i={r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a};return new e(i)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,a=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(new e(r));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,a=n.v,i=[],l=1/t;t--;)i.push(new e({h:r,s:o,v:a})),a=(a+l)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],a=360/t,i=1;i=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Bc*t:Math.round(e.h)+Bc*t:r=n?Math.round(e.h)+Bc*t:Math.round(e.h)-Bc*t,r<0?r+=360:r>=360&&(r-=360),r}function nb(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Jy*t:t===X$?r=e.s+Jy:r=e.s+oM*t,r>1&&(r=1),n&&t===q$&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function rb(e,t,n){var r;return n?r=e.v+aM*t:r=e.v-iM*t,r>1&&(r=1),Number(r.toFixed(2))}function Mo(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=bi(e),o=q$;o>0;o-=1){var a=eb(r),i=Fc(bi({h:tb(a,o,!0),s:nb(a,o,!0),v:rb(a,o,!0)}));n.push(i)}n.push(Fc(r));for(var l=1;l<=X$;l+=1){var c=eb(r),u=Fc(bi({h:tb(c,l),s:nb(c,l),v:rb(c,l)}));n.push(u)}return t.theme==="dark"?lM.map(function(d){var f=d.index,m=d.opacity,g=Fc(sM(bi(t.backgroundColor||"#141414"),bi(n[f]),m*100));return g}):n}var pm={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"},Hi={},vm={};Object.keys(pm).forEach(function(e){Hi[e]=Mo(pm[e]),Hi[e].primary=Hi[e][5],vm[e]=Mo(pm[e],{theme:"dark",backgroundColor:"#141414"}),vm[e].primary=vm[e][5]});var LU=Hi.red,kU=Hi.green,cM=Hi.blue;const sh={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"},uM=Object.assign(Object.assign({},sh),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),ol=uM;function Y$(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:a,colorError:i,colorInfo:l,colorPrimary:c,colorBgBase:u,colorTextBase:d}=e,f=n(c),m=n(o),g=n(a),y=n(i),h=n(l),C=r(u,d),p=e.colorLink||e.colorInfo,v=n(p);return Object.assign(Object.assign({},C),{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:m[1],colorSuccessBgHover:m[2],colorSuccessBorder:m[3],colorSuccessBorderHover:m[4],colorSuccessHover:m[4],colorSuccess:m[6],colorSuccessActive:m[7],colorSuccessTextHover:m[8],colorSuccessText:m[9],colorSuccessTextActive:m[10],colorErrorBg:y[1],colorErrorBgHover:y[2],colorErrorBorder:y[3],colorErrorBorderHover:y[4],colorErrorHover:y[5],colorError:y[6],colorErrorActive:y[7],colorErrorTextHover:y[8],colorErrorText:y[9],colorErrorTextActive:y[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],colorLinkHover:v[4],colorLink:v[6],colorLinkActive:v[7],colorBgMask:new Dt("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const dM=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}},fM=dM;function mM(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:o+1},fM(r))}const gM=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},Q$=gM;function yu(e){return(e+8)/e}function pM(e){const t=new Array(10).fill(null).map((n,r)=>{const o=r-1,a=e*Math.pow(2.71828,o/5),i=r>1?Math.floor(a):Math.ceil(a);return Math.floor(i/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:yu(n)}))}const vM=e=>{const t=pM(e),n=t.map(d=>d.size),r=t.map(d=>d.lineHeight),o=n[1],a=n[0],i=n[2],l=r[1],c=r[0],u=r[2];return{fontSizeSM:a,fontSize:o,fontSizeLG:i,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:u,lineHeightSM:c,fontHeight:Math.round(l*o),fontHeightLG:Math.round(u*i),fontHeightSM:Math.round(c*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}},Z$=vM;function hM(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const ho=(e,t)=>new Dt(e).setAlpha(t).toRgbString(),jl=(e,t)=>new Dt(e).darken(t).toHexString(),yM=e=>{const t=Mo(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]}},bM=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:ho(r,.88),colorTextSecondary:ho(r,.65),colorTextTertiary:ho(r,.45),colorTextQuaternary:ho(r,.25),colorFill:ho(r,.15),colorFillSecondary:ho(r,.06),colorFillTertiary:ho(r,.04),colorFillQuaternary:ho(r,.02),colorBgLayout:jl(n,4),colorBgContainer:jl(n,0),colorBgElevated:jl(n,0),colorBgSpotlight:ho(r,.85),colorBgBlur:"transparent",colorBorder:jl(n,15),colorBorderSecondary:jl(n,6)}};function Zs(e){const t=Object.keys(sh).map(n=>{const r=Mo(e[n]);return new Array(10).fill(1).reduce((o,a,i)=>(o[`${n}-${i+1}`]=r[i],o[`${n}${i+1}`]=r[i],o),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),Y$(e,{generateColorPalettes:yM,generateNeutralColorPalettes:bM})),Z$(e.fontSize)),hM(e)),Q$(e)),mM(e))}const J$=Ns(Zs),_s={token:ol,override:{override:ol},hashed:!0},ew=G.createContext(_s),ch="anticon",CM=(e,t)=>t||(e?`ant-${e}`:"ant"),je=s.createContext({getPrefixCls:CM,iconPrefixCls:ch}),SM=`-ant-${Date.now()}-${Math.random()}`;function xM(e,t){const n={},r=(i,l)=>{let c=i.clone();return c=(l==null?void 0:l(c))||c,c.toRgbString()},o=(i,l)=>{const c=new Dt(i),u=Mo(c.toRgbString());n[`${l}-color`]=r(c),n[`${l}-color-disabled`]=u[1],n[`${l}-color-hover`]=u[4],n[`${l}-color-active`]=u[6],n[`${l}-color-outline`]=c.clone().setAlpha(.2).toRgbString(),n[`${l}-color-deprecated-bg`]=u[0],n[`${l}-color-deprecated-border`]=u[2]};if(t.primaryColor){o(t.primaryColor,"primary");const i=new Dt(t.primaryColor),l=Mo(i.toRgbString());l.forEach((u,d)=>{n[`primary-${d+1}`]=u}),n["primary-color-deprecated-l-35"]=r(i,u=>u.lighten(35)),n["primary-color-deprecated-l-20"]=r(i,u=>u.lighten(20)),n["primary-color-deprecated-t-20"]=r(i,u=>u.tint(20)),n["primary-color-deprecated-t-50"]=r(i,u=>u.tint(50)),n["primary-color-deprecated-f-12"]=r(i,u=>u.setAlpha(u.getAlpha()*.12));const c=new Dt(l[0]);n["primary-color-active-deprecated-f-30"]=r(c,u=>u.setAlpha(u.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(c,u=>u.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),` :root { @@ -84,7 +84,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho 0 -6px 16px 0 rgba(0, 0, 0, 0.08), 0 -3px 6px -4px rgba(0, 0, 0, 0.12), 0 -9px 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var ob=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const r=n.getDerivativeToken(e),{override:o}=t,a=ob(t,["override"]);let i=Object.assign(Object.assign({},r),{override:o});return i=dh(i),a&&Object.entries(a).forEach(l=>{let[c,u]=l;const{theme:d}=u,f=ob(u,["theme"]);let m=f;d&&(m=rw(Object.assign(Object.assign({},i),f),{override:f},d)),i[c]=m}),i};function mn(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=G.useContext(ew),a=`${OM}-${t||""}`,i=n||J$,[l,c,u]=nT(i,[ol,e],{salt:a,override:r,getComputedToken:rw,formatToken:dh,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:tw,ignore:nw,preserve:PM}});return[i,u,t?c:"",l,o]}function ow(e,t,n){return t=tl(t),g$(e,Zv()?Reflect.construct(t,n||[],tl(e).constructor):t.apply(e,n))}let RM=Ln(function e(){jn(this,e)});const aw=RM,iw="CALC_UNIT";function ym(e){return typeof e=="number"?`${e}${iw}`:e}let NM=function(e){function t(n){var r;return jn(this,t),r=ow(this,t),r.result="",n instanceof t?r.result=`(${n.result})`:typeof n=="number"?r.result=ym(n):typeof n=="string"&&(r.result=n),r}return Bo(t,e),Ln(t,[{key:"add",value:function(r){return r instanceof t?this.result=`${this.result} + ${r.getResult()}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} + ${ym(r)}`),this.lowPriority=!0,this}},{key:"sub",value:function(r){return r instanceof t?this.result=`${this.result} - ${r.getResult()}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} - ${ym(r)}`),this.lowPriority=!0,this}},{key:"mul",value:function(r){return this.lowPriority&&(this.result=`(${this.result})`),r instanceof t?this.result=`${this.result} * ${r.getResult(!0)}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} * ${r}`),this.lowPriority=!1,this}},{key:"div",value:function(r){return this.lowPriority&&(this.result=`(${this.result})`),r instanceof t?this.result=`${this.result} / ${r.getResult(!0)}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} / ${r}`),this.lowPriority=!1,this}},{key:"getResult",value:function(r){return this.lowPriority||r?`(${this.result})`:this.result}},{key:"equal",value:function(r){const{unit:o=!0}=r||{},a=new RegExp(`${iw}`,"g");return this.result=this.result.replace(a,o?"px":""),typeof this.lowPriority<"u"?`calc(${this.result})`:this.result}}])}(aw),TM=function(e){function t(n){var r;return jn(this,t),r=ow(this,t),r.result=0,n instanceof t?r.result=n.result:typeof n=="number"&&(r.result=n),r}return Bo(t,e),Ln(t,[{key:"add",value:function(r){return r instanceof t?this.result+=r.result:typeof r=="number"&&(this.result+=r),this}},{key:"sub",value:function(r){return r instanceof t?this.result-=r.result:typeof r=="number"&&(this.result-=r),this}},{key:"mul",value:function(r){return r instanceof t?this.result*=r.result:typeof r=="number"&&(this.result*=r),this}},{key:"div",value:function(r){return r instanceof t?this.result/=r.result:typeof r=="number"&&(this.result/=r),this}},{key:"equal",value:function(){return this.result}}])}(aw);const MM=e=>{const t=e==="css"?NM:TM;return n=>new t(n)},_M=MM;function Ft(e){var t=s.useRef();t.current=e;var n=s.useCallback(function(){for(var r,o=arguments.length,a=new Array(o),i=0;i({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),ga={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},zt=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},nf=()=>({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"}}),_o=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),jM=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),LM=(e,t,n)=>{const{fontFamily:r,fontSize:o}=e,a=`[class^="${t}"], [class*=" ${t}"]`;return{[n?`.${n}`:a]:{fontFamily:r,fontSize:o,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[a]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},pa=e=>({outline:`${H(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),zo=e=>({"&:focus-visible":Object.assign({},pa(e))});function kM(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var t=arguments.length,n=new Array(t),r=0;rH(o)).join(",")})`},min:function(){for(var t=arguments.length,n=new Array(t),r=0;rH(o)).join(",")})`}}}const lw=typeof CSSINJS_STATISTIC<"u";let sp=!0;function bt(){for(var e=arguments.length,t=new Array(e),n=0;n{Object.keys(o).forEach(i=>{Object.defineProperty(r,i,{configurable:!0,enumerable:!0,get:()=>o[i]})})}),sp=!0,r}const ab={};function DM(){}const BM=e=>{let t,n=e,r=DM;return lw&&typeof Proxy<"u"&&(t=new Set,n=new Proxy(e,{get(o,a){return sp&&t.add(a),o[a]}}),r=(o,a)=>{var i;ab[o]={global:Array.from(t),component:Object.assign(Object.assign({},(i=ab[o])===null||i===void 0?void 0:i.component),a)}}),{token:n,keys:t,flush:r}},FM=(e,t)=>{const[n,r]=mn();return np({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},nf()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},sw=FM,cw=(e,t,n)=>{var r;return typeof n=="function"?n(bt(t,(r=t[e])!==null&&r!==void 0?r:{})):n??{}},uw=(e,t,n,r)=>{const o=Object.assign({},t[e]);if(r!=null&&r.deprecatedTokens){const{deprecatedTokens:i}=r;i.forEach(l=>{let[c,u]=l;var d;(o!=null&&o[c]||o!=null&&o[u])&&((d=o[u])!==null&&d!==void 0||(o[u]=o==null?void 0:o[c]))})}const a=Object.assign(Object.assign({},n),o);return Object.keys(a).forEach(i=>{a[i]===t[i]&&delete a[i]}),a},AM=(e,t)=>`${[t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`;function fh(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=Array.isArray(e)?e:[e,e],[a]=o,i=o.join("-");return function(l){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:l;const[u,d,f,m,g]=mn(),{getPrefixCls:y,iconPrefixCls:h,csp:C}=s.useContext(je),p=y(),v=g?"css":"js",b=_M(v),{max:S,min:$}=kM(v),x={theme:u,token:m,hashId:f,nonce:()=>C==null?void 0:C.nonce,clientOnly:r.clientOnly,order:r.order||-999};return np(Object.assign(Object.assign({},x),{clientOnly:!1,path:["Shared",p]}),()=>[{"&":jM(m)}]),sw(h,C),[np(Object.assign(Object.assign({},x),{path:[i,l,h]}),()=>{if(r.injectStyle===!1)return[];const{token:O,flush:E}=BM(m),I=cw(a,d,n),T=`.${l}`,_=uw(a,d,I,{deprecatedTokens:r.deprecatedTokens});g&&Object.keys(I).forEach(L=>{I[L]=`var(${E$(L,AM(a,g.prefix))})`});const R=bt(O,{componentCls:T,prefixCls:l,iconCls:`.${h}`,antCls:`.${p}`,calc:b,max:S,min:$},g?I:_),M=t(R,{hashId:f,prefixCls:l,rootPrefixCls:p,iconPrefixCls:h});return E(a,_),[r.resetStyle===!1?null:LM(R,l,c),M]}),f]}}const ti=(e,t,n,r)=>{const o=fh(e,t,n,Object.assign({resetStyle:!1,order:-998},r));return i=>{let{prefixCls:l,rootCls:c=l}=i;return o(l,c),null}},HM=(e,t,n)=>{function r(u){return`${e}${u.slice(0,1).toUpperCase()}${u.slice(1)}`}const{unitless:o={},injectStyle:a=!0}=n??{},i={[r("zIndexPopup")]:!0};Object.keys(o).forEach(u=>{i[r(u)]=o[u]});const l=u=>{let{rootCls:d,cssVar:f}=u;const[,m]=mn();return NT({path:[e],prefix:f.prefix,key:f==null?void 0:f.key,unitless:Object.assign(Object.assign({},tw),i),ignore:nw,token:m,scope:d},()=>{const g=cw(e,m,t),y=uw(e,m,g,{deprecatedTokens:n==null?void 0:n.deprecatedTokens});return Object.keys(g).forEach(h=>{y[r(h)]=y[h],delete y[h]}),y}),null};return u=>{const[,,,,d]=mn();return[f=>a&&d?G.createElement(G.Fragment,null,G.createElement(l,{rootCls:u,cssVar:d,component:e}),f):f,d==null?void 0:d.key]}},_t=(e,t,n,r)=>{const o=fh(e,t,n,r),a=HM(Array.isArray(e)?e[0]:e,n,r);return function(i){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:i;const[,c]=o(i,l),[u,d]=a(l);return[u,c,d]}};function dw(e,t){return zs.reduce((n,r)=>{const o=e[`${r}1`],a=e[`${r}3`],i=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:a,darkColor:i,textColor:l}))},{})}const VM=Object.assign({},Ed),{useId:ib}=VM,KM=()=>"",WM=typeof ib>"u"?KM:ib,GM=WM;function UM(e,t,n){var r;Fo();const o=e||{},a=o.inherit===!1||!t?Object.assign(Object.assign({},_s),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:_s.hashed,cssVar:t==null?void 0:t.cssVar}):t,i=GM();return Za(()=>{var l,c;if(!e)return t;const u=Object.assign({},a.components);Object.keys(e.components||{}).forEach(m=>{u[m]=Object.assign(Object.assign({},u[m]),e.components[m])});const d=`css-var-${i.replace(/:/g,"")}`,f=((l=o.cssVar)!==null&&l!==void 0?l:a.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof a.cssVar=="object"?a.cssVar:{}),typeof o.cssVar=="object"?o.cssVar:{}),{key:typeof o.cssVar=="object"&&((c=o.cssVar)===null||c===void 0?void 0:c.key)||d});return Object.assign(Object.assign(Object.assign({},a),o),{token:Object.assign(Object.assign({},a.token),o.token),components:u,cssVar:f})},[o,a],(l,c)=>l.some((u,d)=>{const f=c[d];return!mo(u,f,!0)}))}var qM=["children"],fw=s.createContext({});function XM(e){var t=e.children,n=tt(e,qM);return s.createElement(fw.Provider,{value:n},t)}var YM=function(e){Bo(n,e);var t=Ja(n);function n(){return jn(this,n),t.apply(this,arguments)}return Ln(n,[{key:"render",value:function(){return this.props.children}}]),n}(s.Component),Oa="none",Hc="appear",Vc="enter",Kc="leave",lb="none",Ur="prepare",zi="start",ji="active",mh="end",mw="prepared";function sb(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function QM(e,t){var n={animationend:sb("Animation","AnimationEnd"),transitionend:sb("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var ZM=QM(zn(),typeof window<"u"?window:{}),gw={};if(zn()){var JM=document.createElement("div");gw=JM.style}var Wc={};function pw(e){if(Wc[e])return Wc[e];var t=ZM[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o1&&arguments[1]!==void 0?arguments[1]:2;t();var a=It(function(){o<=1?r({isCanceled:function(){return a!==e.current}}):n(r,o-1)});e.current=a}return s.useEffect(function(){return function(){t()}},[]),[n,t]};var n_=[Ur,zi,ji,mh],r_=[Ur,mw],Cw=!1,o_=!0;function Sw(e){return e===ji||e===mh}const a_=function(e,t,n){var r=da(lb),o=Q(r,2),a=o[0],i=o[1],l=t_(),c=Q(l,2),u=c[0],d=c[1];function f(){i(Ur,!0)}var m=t?r_:n_;return bw(function(){if(a!==lb&&a!==mh){var g=m.indexOf(a),y=m[g+1],h=n(a);h===Cw?i(y,!0):y&&u(function(C){function p(){C.isCanceled()||i(y,!0)}h===!0?p():Promise.resolve(h).then(p)})}},[e,a]),s.useEffect(function(){return function(){d()}},[]),[f,a]};function i_(e,t,n,r){var o=r.motionEnter,a=o===void 0?!0:o,i=r.motionAppear,l=i===void 0?!0:i,c=r.motionLeave,u=c===void 0?!0:c,d=r.motionDeadline,f=r.motionLeaveImmediately,m=r.onAppearPrepare,g=r.onEnterPrepare,y=r.onLeavePrepare,h=r.onAppearStart,C=r.onEnterStart,p=r.onLeaveStart,v=r.onAppearActive,b=r.onEnterActive,S=r.onLeaveActive,$=r.onAppearEnd,x=r.onEnterEnd,w=r.onLeaveEnd,O=r.onVisibleChanged,E=da(),I=Q(E,2),T=I[0],_=I[1],R=da(Oa),M=Q(R,2),L=M[0],z=M[1],P=da(null),N=Q(P,2),k=N[0],j=N[1],B=s.useRef(!1),F=s.useRef(null);function K(){return n()}var X=s.useRef(!1);function U(){z(Oa,!0),j(null,!0)}function re(ae){var ie=K();if(!(ae&&!ae.deadline&&ae.target!==ie)){var pe=X.current,me;L===Hc&&pe?me=$==null?void 0:$(ie,ae):L===Vc&&pe?me=x==null?void 0:x(ie,ae):L===Kc&&pe&&(me=w==null?void 0:w(ie,ae)),L!==Oa&&pe&&me!==!1&&U()}}var Z=e_(re),ne=Q(Z,1),le=ne[0],ee=function(ie){var pe,me,ge;switch(ie){case Hc:return pe={},D(pe,Ur,m),D(pe,zi,h),D(pe,ji,v),pe;case Vc:return me={},D(me,Ur,g),D(me,zi,C),D(me,ji,b),me;case Kc:return ge={},D(ge,Ur,y),D(ge,zi,p),D(ge,ji,S),ge;default:return{}}},q=s.useMemo(function(){return ee(L)},[L]),te=a_(L,!e,function(ae){if(ae===Ur){var ie=q[Ur];return ie?ie(K()):Cw}if(Y in q){var pe;j(((pe=q[Y])===null||pe===void 0?void 0:pe.call(q,K(),null))||null)}return Y===ji&&(le(K()),d>0&&(clearTimeout(F.current),F.current=setTimeout(function(){re({deadline:!0})},d))),Y===mw&&U(),o_}),J=Q(te,2),W=J[0],Y=J[1],de=Sw(Y);X.current=de,bw(function(){_(t);var ae=B.current;B.current=!0;var ie;!ae&&t&&l&&(ie=Hc),ae&&t&&a&&(ie=Vc),(ae&&!t&&u||!ae&&f&&!t&&u)&&(ie=Kc);var pe=ee(ie);ie&&(e||pe[Ur])?(z(ie),W()):z(Oa)},[t]),s.useEffect(function(){(L===Hc&&!l||L===Vc&&!a||L===Kc&&!u)&&z(Oa)},[l,a,u]),s.useEffect(function(){return function(){B.current=!1,clearTimeout(F.current)}},[]);var oe=s.useRef(!1);s.useEffect(function(){T&&(oe.current=!0),T!==void 0&&L===Oa&&((oe.current||T)&&(O==null||O(T)),oe.current=!0)},[T,L]);var se=k;return q[Ur]&&Y===zi&&(se=A({transition:"none"},se)),[L,Y,se,T??t]}function l_(e){var t=e;at(e)==="object"&&(t=e.transitionSupport);function n(o,a){return!!(o.motionName&&t&&a!==!1)}var r=s.forwardRef(function(o,a){var i=o.visible,l=i===void 0?!0:i,c=o.removeOnLeave,u=c===void 0?!0:c,d=o.forceRender,f=o.children,m=o.motionName,g=o.leavedClassName,y=o.eventProps,h=s.useContext(fw),C=h.motion,p=n(o,C),v=s.useRef(),b=s.useRef();function S(){try{return v.current instanceof HTMLElement?v.current:rs(b.current)}catch{return null}}var $=i_(p,l,S,o),x=Q($,4),w=x[0],O=x[1],E=x[2],I=x[3],T=s.useRef(I);I&&(T.current=!0);var _=s.useCallback(function(j){v.current=j,Ps(a,j)},[a]),R,M=A(A({},y),{},{visible:l});if(!f)R=null;else if(w===Oa)I?R=f(A({},M),_):!u&&T.current&&g?R=f(A(A({},M),{},{className:g}),_):d||!u&&!g?R=f(A(A({},M),{},{style:{display:"none"}}),_):R=null;else{var L,z;O===Ur?z="prepare":Sw(O)?z="active":O===zi&&(z="start");var P=db(m,"".concat(w,"-").concat(z));R=f(A(A({},M),{},{className:V(db(m,w),(L={},D(L,P,P&&z),D(L,m,typeof m=="string"),L)),style:E}),_)}if(s.isValidElement(R)&&to(R)){var N=R,k=N.ref;k||(R=s.cloneElement(R,{ref:_}))}return s.createElement(YM,{ref:b},R)});return r.displayName="CSSMotion",r}const ro=l_(yw);var cp="add",up="keep",dp="remove",Cm="removed";function s_(e){var t;return e&&at(e)==="object"&&"key"in e?t=e:t={key:e},A(A({},t),{},{key:String(t.key)})}function fp(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(s_)}function c_(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,o=t.length,a=fp(e),i=fp(t);a.forEach(function(u){for(var d=!1,f=r;f1});return c.forEach(function(u){n=n.filter(function(d){var f=d.key,m=d.status;return f!==u||m!==dp}),n.forEach(function(d){d.key===u&&(d.status=up)})}),n}var u_=["component","children","onVisibleChanged","onAllRemoved"],d_=["status"],f_=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function m_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ro,n=function(r){Bo(a,r);var o=Ja(a);function a(){var i;jn(this,a);for(var l=arguments.length,c=new Array(l),u=0;unull;var v_=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);ot.endsWith("Color"))}const S_=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(rd=t),n!==void 0&&($w=n),"holderRender"in e&&(Ew=o),r&&(C_(r)?$M(bu(),r):ww=r)},ec=()=>({getPrefixCls:(e,t)=>t||(e?`${bu()}-${e}`:bu()),getIconPrefixCls:b_,getRootPrefixCls:()=>rd||bu(),getTheme:()=>ww,holderRender:Ew}),x_=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:a,form:i,locale:l,componentSize:c,direction:u,space:d,virtual:f,dropdownMatchSelectWidth:m,popupMatchSelectWidth:g,popupOverflow:y,legacyLocale:h,parentContext:C,iconPrefixCls:p,theme:v,componentDisabled:b,segmented:S,statistic:$,spin:x,calendar:w,carousel:O,cascader:E,collapse:I,typography:T,checkbox:_,descriptions:R,divider:M,drawer:L,skeleton:z,steps:P,image:N,layout:k,list:j,mentions:B,modal:F,progress:K,result:X,slider:U,breadcrumb:re,menu:Z,pagination:ne,input:le,textArea:ee,empty:q,badge:te,radio:J,rate:W,switch:Y,transfer:de,avatar:oe,message:se,tag:ae,table:ie,card:pe,tabs:me,timeline:ge,timePicker:ve,upload:$e,notification:we,tree:We,colorPicker:_e,datePicker:Se,rangePicker:Ce,flex:Oe,wave:ke,dropdown:Ze,warning:He,tour:Ve,floatButtonGroup:it}=e,Je=s.useCallback((xe,ze)=>{const{prefixCls:rt}=e;if(ze)return ze;const ye=rt||C.getPrefixCls("");return xe?`${ye}-${xe}`:ye},[C.getPrefixCls,e.prefixCls]),Ae=p||C.iconPrefixCls||ch,lt=n||C.csp;sw(Ae,lt);const ut=UM(v,C.theme,{prefixCls:Je("")}),St={csp:lt,autoInsertSpaceInButton:r,alert:o,anchor:a,locale:l||h,direction:u,space:d,virtual:f,popupMatchSelectWidth:g??m,popupOverflow:y,getPrefixCls:Je,iconPrefixCls:Ae,theme:ut,segmented:S,statistic:$,spin:x,calendar:w,carousel:O,cascader:E,collapse:I,typography:T,checkbox:_,descriptions:R,divider:M,drawer:L,skeleton:z,steps:P,image:N,input:le,textArea:ee,layout:k,list:j,mentions:B,modal:F,progress:K,result:X,slider:U,breadcrumb:re,menu:Z,pagination:ne,empty:q,badge:te,radio:J,rate:W,switch:Y,transfer:de,avatar:oe,message:se,tag:ae,table:ie,card:pe,tabs:me,timeline:ge,timePicker:ve,upload:$e,notification:we,tree:We,colorPicker:_e,datePicker:Se,rangePicker:Ce,flex:Oe,wave:ke,dropdown:Ze,warning:He,tour:Ve,floatButtonGroup:it},st=Object.assign({},C);Object.keys(St).forEach(xe=>{St[xe]!==void 0&&(st[xe]=St[xe])}),h_.forEach(xe=>{const ze=e[xe];ze&&(st[xe]=ze)});const vt=Za(()=>st,st,(xe,ze)=>{const rt=Object.keys(xe),ye=Object.keys(ze);return rt.length!==ye.length||rt.some(Re=>xe[Re]!==ze[Re])}),nt=s.useMemo(()=>({prefixCls:Ae,csp:lt}),[Ae,lt]);let Me=s.createElement(s.Fragment,null,s.createElement(p_,{dropdownMatchSelectWidth:m}),t);const Xe=s.useMemo(()=>{var xe,ze,rt,ye;return _i(((xe=go.Form)===null||xe===void 0?void 0:xe.defaultValidateMessages)||{},((rt=(ze=vt.locale)===null||ze===void 0?void 0:ze.Form)===null||rt===void 0?void 0:rt.defaultValidateMessages)||{},((ye=vt.form)===null||ye===void 0?void 0:ye.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[vt,i==null?void 0:i.validateMessages]);Object.keys(Xe).length>0&&(Me=s.createElement(V$.Provider,{value:Xe},Me)),l&&(Me=s.createElement(GT,{locale:l,_ANT_MARK__:KT},Me)),(Ae||lt)&&(Me=s.createElement(ih.Provider,{value:nt},Me)),c&&(Me=s.createElement(wM,{size:c},Me)),Me=s.createElement(g_,null,Me);const De=s.useMemo(()=>{const xe=ut||{},{algorithm:ze,token:rt,components:ye,cssVar:Re}=xe,Pe=v_(xe,["algorithm","token","components","cssVar"]),Ge=ze&&(!Array.isArray(ze)||ze.length>0)?Ns(ze):J$,ot={};Object.entries(ye||{}).forEach(Et=>{let[Be,Ee]=Et;const be=Object.assign({},Ee);"algorithm"in be&&(be.algorithm===!0?be.theme=Ge:(Array.isArray(be.algorithm)||typeof be.algorithm=="function")&&(be.theme=Ns(be.algorithm)),delete be.algorithm),ot[Be]=be});const et=Object.assign(Object.assign({},ol),rt);return Object.assign(Object.assign({},Pe),{theme:Ge,token:et,components:ot,override:Object.assign({override:et},ot),cssVar:Re})},[ut]);return v&&(Me=s.createElement(ew.Provider,{value:De},Me)),vt.warning&&(Me=s.createElement(LT.Provider,{value:vt.warning},Me)),b!==void 0&&(Me=s.createElement(uh,{disabled:b},Me)),s.createElement(je.Provider,{value:vt},Me)},fl=e=>{const t=s.useContext(je),n=s.useContext(lh);return s.createElement(x_,Object.assign({parentContext:t,legacyLocale:n},e))};fl.ConfigContext=je;fl.SizeContext=Js;fl.config=S_;fl.useConfig=EM;Object.defineProperty(fl,"SizeContext",{get:()=>Js});const tc=fl;var $_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};const w_=$_;function Ow(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function E_(e){return Ow(e)instanceof ShadowRoot}function od(e){return E_(e)?Ow(e):null}function O_(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function I_(e,t){Zt(e,"[@ant-design/icons] ".concat(t))}function fb(e){return at(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(at(e.icon)==="object"||typeof e.icon=="function")}function mb(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[O_(n)]=r}return t},{})}function mp(e,t,n){return n?G.createElement(e.tag,A(A({key:t},mb(e.attrs)),n),(e.children||[]).map(function(r,o){return mp(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):G.createElement(e.tag,A({key:t},mb(e.attrs)),(e.children||[]).map(function(r,o){return mp(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function Iw(e){return Mo(e)[0]}function Pw(e){return e?Array.isArray(e)?e:[e]:[]}var P_=` + `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var ob=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const r=n.getDerivativeToken(e),{override:o}=t,a=ob(t,["override"]);let i=Object.assign(Object.assign({},r),{override:o});return i=dh(i),a&&Object.entries(a).forEach(l=>{let[c,u]=l;const{theme:d}=u,f=ob(u,["theme"]);let m=f;d&&(m=rw(Object.assign(Object.assign({},i),f),{override:f},d)),i[c]=m}),i};function mn(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=G.useContext(ew),a=`${OM}-${t||""}`,i=n||J$,[l,c,u]=nT(i,[ol,e],{salt:a,override:r,getComputedToken:rw,formatToken:dh,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:tw,ignore:nw,preserve:PM}});return[i,u,t?c:"",l,o]}function ow(e,t,n){return t=tl(t),g$(e,Zv()?Reflect.construct(t,n||[],tl(e).constructor):t.apply(e,n))}let RM=Ln(function e(){jn(this,e)});const aw=RM,iw="CALC_UNIT";function ym(e){return typeof e=="number"?`${e}${iw}`:e}let NM=function(e){function t(n){var r;return jn(this,t),r=ow(this,t),r.result="",n instanceof t?r.result=`(${n.result})`:typeof n=="number"?r.result=ym(n):typeof n=="string"&&(r.result=n),r}return Bo(t,e),Ln(t,[{key:"add",value:function(r){return r instanceof t?this.result=`${this.result} + ${r.getResult()}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} + ${ym(r)}`),this.lowPriority=!0,this}},{key:"sub",value:function(r){return r instanceof t?this.result=`${this.result} - ${r.getResult()}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} - ${ym(r)}`),this.lowPriority=!0,this}},{key:"mul",value:function(r){return this.lowPriority&&(this.result=`(${this.result})`),r instanceof t?this.result=`${this.result} * ${r.getResult(!0)}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} * ${r}`),this.lowPriority=!1,this}},{key:"div",value:function(r){return this.lowPriority&&(this.result=`(${this.result})`),r instanceof t?this.result=`${this.result} / ${r.getResult(!0)}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} / ${r}`),this.lowPriority=!1,this}},{key:"getResult",value:function(r){return this.lowPriority||r?`(${this.result})`:this.result}},{key:"equal",value:function(r){const{unit:o=!0}=r||{},a=new RegExp(`${iw}`,"g");return this.result=this.result.replace(a,o?"px":""),typeof this.lowPriority<"u"?`calc(${this.result})`:this.result}}])}(aw),TM=function(e){function t(n){var r;return jn(this,t),r=ow(this,t),r.result=0,n instanceof t?r.result=n.result:typeof n=="number"&&(r.result=n),r}return Bo(t,e),Ln(t,[{key:"add",value:function(r){return r instanceof t?this.result+=r.result:typeof r=="number"&&(this.result+=r),this}},{key:"sub",value:function(r){return r instanceof t?this.result-=r.result:typeof r=="number"&&(this.result-=r),this}},{key:"mul",value:function(r){return r instanceof t?this.result*=r.result:typeof r=="number"&&(this.result*=r),this}},{key:"div",value:function(r){return r instanceof t?this.result/=r.result:typeof r=="number"&&(this.result/=r),this}},{key:"equal",value:function(){return this.result}}])}(aw);const MM=e=>{const t=e==="css"?NM:TM;return n=>new t(n)},_M=MM;function Ft(e){var t=s.useRef();t.current=e;var n=s.useCallback(function(){for(var r,o=arguments.length,a=new Array(o),i=0;i({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),ga={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},zt=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},nf=()=>({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"}}),_o=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),jM=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),LM=(e,t,n)=>{const{fontFamily:r,fontSize:o}=e,a=`[class^="${t}"], [class*=" ${t}"]`;return{[n?`.${n}`:a]:{fontFamily:r,fontSize:o,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[a]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},pa=e=>({outline:`${H(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),zo=e=>({"&:focus-visible":Object.assign({},pa(e))});function kM(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var t=arguments.length,n=new Array(t),r=0;rH(o)).join(",")})`},min:function(){for(var t=arguments.length,n=new Array(t),r=0;rH(o)).join(",")})`}}}const lw=typeof CSSINJS_STATISTIC<"u";let sp=!0;function bt(){for(var e=arguments.length,t=new Array(e),n=0;n{Object.keys(o).forEach(i=>{Object.defineProperty(r,i,{configurable:!0,enumerable:!0,get:()=>o[i]})})}),sp=!0,r}const ab={};function DM(){}const BM=e=>{let t,n=e,r=DM;return lw&&typeof Proxy<"u"&&(t=new Set,n=new Proxy(e,{get(o,a){return sp&&t.add(a),o[a]}}),r=(o,a)=>{var i;ab[o]={global:Array.from(t),component:Object.assign(Object.assign({},(i=ab[o])===null||i===void 0?void 0:i.component),a)}}),{token:n,keys:t,flush:r}},FM=(e,t)=>{const[n,r]=mn();return np({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},nf()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},sw=FM,cw=(e,t,n)=>{var r;return typeof n=="function"?n(bt(t,(r=t[e])!==null&&r!==void 0?r:{})):n??{}},uw=(e,t,n,r)=>{const o=Object.assign({},t[e]);if(r!=null&&r.deprecatedTokens){const{deprecatedTokens:i}=r;i.forEach(l=>{let[c,u]=l;var d;(o!=null&&o[c]||o!=null&&o[u])&&((d=o[u])!==null&&d!==void 0||(o[u]=o==null?void 0:o[c]))})}const a=Object.assign(Object.assign({},n),o);return Object.keys(a).forEach(i=>{a[i]===t[i]&&delete a[i]}),a},AM=(e,t)=>`${[t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`;function fh(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=Array.isArray(e)?e:[e,e],[a]=o,i=o.join("-");return function(l){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:l;const[u,d,f,m,g]=mn(),{getPrefixCls:y,iconPrefixCls:h,csp:C}=s.useContext(je),p=y(),v=g?"css":"js",b=_M(v),{max:S,min:$}=kM(v),x={theme:u,token:m,hashId:f,nonce:()=>C==null?void 0:C.nonce,clientOnly:r.clientOnly,order:r.order||-999};return np(Object.assign(Object.assign({},x),{clientOnly:!1,path:["Shared",p]}),()=>[{"&":jM(m)}]),sw(h,C),[np(Object.assign(Object.assign({},x),{path:[i,l,h]}),()=>{if(r.injectStyle===!1)return[];const{token:O,flush:E}=BM(m),I=cw(a,d,n),T=`.${l}`,_=uw(a,d,I,{deprecatedTokens:r.deprecatedTokens});g&&Object.keys(I).forEach(L=>{I[L]=`var(${E$(L,AM(a,g.prefix))})`});const R=bt(O,{componentCls:T,prefixCls:l,iconCls:`.${h}`,antCls:`.${p}`,calc:b,max:S,min:$},g?I:_),M=t(R,{hashId:f,prefixCls:l,rootPrefixCls:p,iconPrefixCls:h});return E(a,_),[r.resetStyle===!1?null:LM(R,l,c),M]}),f]}}const ti=(e,t,n,r)=>{const o=fh(e,t,n,Object.assign({resetStyle:!1,order:-998},r));return i=>{let{prefixCls:l,rootCls:c=l}=i;return o(l,c),null}},HM=(e,t,n)=>{function r(u){return`${e}${u.slice(0,1).toUpperCase()}${u.slice(1)}`}const{unitless:o={},injectStyle:a=!0}=n??{},i={[r("zIndexPopup")]:!0};Object.keys(o).forEach(u=>{i[r(u)]=o[u]});const l=u=>{let{rootCls:d,cssVar:f}=u;const[,m]=mn();return NT({path:[e],prefix:f.prefix,key:f==null?void 0:f.key,unitless:Object.assign(Object.assign({},tw),i),ignore:nw,token:m,scope:d},()=>{const g=cw(e,m,t),y=uw(e,m,g,{deprecatedTokens:n==null?void 0:n.deprecatedTokens});return Object.keys(g).forEach(h=>{y[r(h)]=y[h],delete y[h]}),y}),null};return u=>{const[,,,,d]=mn();return[f=>a&&d?G.createElement(G.Fragment,null,G.createElement(l,{rootCls:u,cssVar:d,component:e}),f):f,d==null?void 0:d.key]}},_t=(e,t,n,r)=>{const o=fh(e,t,n,r),a=HM(Array.isArray(e)?e[0]:e,n,r);return function(i){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:i;const[,c]=o(i,l),[u,d]=a(l);return[u,c,d]}};function dw(e,t){return zs.reduce((n,r)=>{const o=e[`${r}1`],a=e[`${r}3`],i=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:a,darkColor:i,textColor:l}))},{})}const VM=Object.assign({},Ed),{useId:ib}=VM,KM=()=>"",WM=typeof ib>"u"?KM:ib,GM=WM;function UM(e,t,n){var r;Fo();const o=e||{},a=o.inherit===!1||!t?Object.assign(Object.assign({},_s),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:_s.hashed,cssVar:t==null?void 0:t.cssVar}):t,i=GM();return Za(()=>{var l,c;if(!e)return t;const u=Object.assign({},a.components);Object.keys(e.components||{}).forEach(m=>{u[m]=Object.assign(Object.assign({},u[m]),e.components[m])});const d=`css-var-${i.replace(/:/g,"")}`,f=((l=o.cssVar)!==null&&l!==void 0?l:a.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof a.cssVar=="object"?a.cssVar:{}),typeof o.cssVar=="object"?o.cssVar:{}),{key:typeof o.cssVar=="object"&&((c=o.cssVar)===null||c===void 0?void 0:c.key)||d});return Object.assign(Object.assign(Object.assign({},a),o),{token:Object.assign(Object.assign({},a.token),o.token),components:u,cssVar:f})},[o,a],(l,c)=>l.some((u,d)=>{const f=c[d];return!mo(u,f,!0)}))}var qM=["children"],fw=s.createContext({});function XM(e){var t=e.children,n=tt(e,qM);return s.createElement(fw.Provider,{value:n},t)}var YM=function(e){Bo(n,e);var t=Ja(n);function n(){return jn(this,n),t.apply(this,arguments)}return Ln(n,[{key:"render",value:function(){return this.props.children}}]),n}(s.Component),Oa="none",Hc="appear",Vc="enter",Kc="leave",lb="none",Ur="prepare",zi="start",ji="active",mh="end",mw="prepared";function sb(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function QM(e,t){var n={animationend:sb("Animation","AnimationEnd"),transitionend:sb("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var ZM=QM(zn(),typeof window<"u"?window:{}),gw={};if(zn()){var JM=document.createElement("div");gw=JM.style}var Wc={};function pw(e){if(Wc[e])return Wc[e];var t=ZM[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o1&&arguments[1]!==void 0?arguments[1]:2;t();var a=Pt(function(){o<=1?r({isCanceled:function(){return a!==e.current}}):n(r,o-1)});e.current=a}return s.useEffect(function(){return function(){t()}},[]),[n,t]};var n_=[Ur,zi,ji,mh],r_=[Ur,mw],Cw=!1,o_=!0;function Sw(e){return e===ji||e===mh}const a_=function(e,t,n){var r=da(lb),o=Q(r,2),a=o[0],i=o[1],l=t_(),c=Q(l,2),u=c[0],d=c[1];function f(){i(Ur,!0)}var m=t?r_:n_;return bw(function(){if(a!==lb&&a!==mh){var g=m.indexOf(a),y=m[g+1],h=n(a);h===Cw?i(y,!0):y&&u(function(C){function p(){C.isCanceled()||i(y,!0)}h===!0?p():Promise.resolve(h).then(p)})}},[e,a]),s.useEffect(function(){return function(){d()}},[]),[f,a]};function i_(e,t,n,r){var o=r.motionEnter,a=o===void 0?!0:o,i=r.motionAppear,l=i===void 0?!0:i,c=r.motionLeave,u=c===void 0?!0:c,d=r.motionDeadline,f=r.motionLeaveImmediately,m=r.onAppearPrepare,g=r.onEnterPrepare,y=r.onLeavePrepare,h=r.onAppearStart,C=r.onEnterStart,p=r.onLeaveStart,v=r.onAppearActive,b=r.onEnterActive,S=r.onLeaveActive,$=r.onAppearEnd,x=r.onEnterEnd,w=r.onLeaveEnd,O=r.onVisibleChanged,E=da(),I=Q(E,2),T=I[0],_=I[1],R=da(Oa),M=Q(R,2),L=M[0],z=M[1],P=da(null),N=Q(P,2),k=N[0],j=N[1],B=s.useRef(!1),F=s.useRef(null);function K(){return n()}var X=s.useRef(!1);function U(){z(Oa,!0),j(null,!0)}function re(ae){var ie=K();if(!(ae&&!ae.deadline&&ae.target!==ie)){var pe=X.current,me;L===Hc&&pe?me=$==null?void 0:$(ie,ae):L===Vc&&pe?me=x==null?void 0:x(ie,ae):L===Kc&&pe&&(me=w==null?void 0:w(ie,ae)),L!==Oa&&pe&&me!==!1&&U()}}var Z=e_(re),ne=Q(Z,1),le=ne[0],ee=function(ie){var pe,me,ge;switch(ie){case Hc:return pe={},D(pe,Ur,m),D(pe,zi,h),D(pe,ji,v),pe;case Vc:return me={},D(me,Ur,g),D(me,zi,C),D(me,ji,b),me;case Kc:return ge={},D(ge,Ur,y),D(ge,zi,p),D(ge,ji,S),ge;default:return{}}},q=s.useMemo(function(){return ee(L)},[L]),te=a_(L,!e,function(ae){if(ae===Ur){var ie=q[Ur];return ie?ie(K()):Cw}if(Y in q){var pe;j(((pe=q[Y])===null||pe===void 0?void 0:pe.call(q,K(),null))||null)}return Y===ji&&(le(K()),d>0&&(clearTimeout(F.current),F.current=setTimeout(function(){re({deadline:!0})},d))),Y===mw&&U(),o_}),J=Q(te,2),W=J[0],Y=J[1],de=Sw(Y);X.current=de,bw(function(){_(t);var ae=B.current;B.current=!0;var ie;!ae&&t&&l&&(ie=Hc),ae&&t&&a&&(ie=Vc),(ae&&!t&&u||!ae&&f&&!t&&u)&&(ie=Kc);var pe=ee(ie);ie&&(e||pe[Ur])?(z(ie),W()):z(Oa)},[t]),s.useEffect(function(){(L===Hc&&!l||L===Vc&&!a||L===Kc&&!u)&&z(Oa)},[l,a,u]),s.useEffect(function(){return function(){B.current=!1,clearTimeout(F.current)}},[]);var oe=s.useRef(!1);s.useEffect(function(){T&&(oe.current=!0),T!==void 0&&L===Oa&&((oe.current||T)&&(O==null||O(T)),oe.current=!0)},[T,L]);var se=k;return q[Ur]&&Y===zi&&(se=A({transition:"none"},se)),[L,Y,se,T??t]}function l_(e){var t=e;at(e)==="object"&&(t=e.transitionSupport);function n(o,a){return!!(o.motionName&&t&&a!==!1)}var r=s.forwardRef(function(o,a){var i=o.visible,l=i===void 0?!0:i,c=o.removeOnLeave,u=c===void 0?!0:c,d=o.forceRender,f=o.children,m=o.motionName,g=o.leavedClassName,y=o.eventProps,h=s.useContext(fw),C=h.motion,p=n(o,C),v=s.useRef(),b=s.useRef();function S(){try{return v.current instanceof HTMLElement?v.current:rs(b.current)}catch{return null}}var $=i_(p,l,S,o),x=Q($,4),w=x[0],O=x[1],E=x[2],I=x[3],T=s.useRef(I);I&&(T.current=!0);var _=s.useCallback(function(j){v.current=j,Ps(a,j)},[a]),R,M=A(A({},y),{},{visible:l});if(!f)R=null;else if(w===Oa)I?R=f(A({},M),_):!u&&T.current&&g?R=f(A(A({},M),{},{className:g}),_):d||!u&&!g?R=f(A(A({},M),{},{style:{display:"none"}}),_):R=null;else{var L,z;O===Ur?z="prepare":Sw(O)?z="active":O===zi&&(z="start");var P=db(m,"".concat(w,"-").concat(z));R=f(A(A({},M),{},{className:V(db(m,w),(L={},D(L,P,P&&z),D(L,m,typeof m=="string"),L)),style:E}),_)}if(s.isValidElement(R)&&to(R)){var N=R,k=N.ref;k||(R=s.cloneElement(R,{ref:_}))}return s.createElement(YM,{ref:b},R)});return r.displayName="CSSMotion",r}const ro=l_(yw);var cp="add",up="keep",dp="remove",Cm="removed";function s_(e){var t;return e&&at(e)==="object"&&"key"in e?t=e:t={key:e},A(A({},t),{},{key:String(t.key)})}function fp(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(s_)}function c_(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,o=t.length,a=fp(e),i=fp(t);a.forEach(function(u){for(var d=!1,f=r;f1});return c.forEach(function(u){n=n.filter(function(d){var f=d.key,m=d.status;return f!==u||m!==dp}),n.forEach(function(d){d.key===u&&(d.status=up)})}),n}var u_=["component","children","onVisibleChanged","onAllRemoved"],d_=["status"],f_=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function m_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ro,n=function(r){Bo(a,r);var o=Ja(a);function a(){var i;jn(this,a);for(var l=arguments.length,c=new Array(l),u=0;unull;var v_=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);ot.endsWith("Color"))}const S_=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(rd=t),n!==void 0&&($w=n),"holderRender"in e&&(Ew=o),r&&(C_(r)?$M(bu(),r):ww=r)},ec=()=>({getPrefixCls:(e,t)=>t||(e?`${bu()}-${e}`:bu()),getIconPrefixCls:b_,getRootPrefixCls:()=>rd||bu(),getTheme:()=>ww,holderRender:Ew}),x_=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:a,form:i,locale:l,componentSize:c,direction:u,space:d,virtual:f,dropdownMatchSelectWidth:m,popupMatchSelectWidth:g,popupOverflow:y,legacyLocale:h,parentContext:C,iconPrefixCls:p,theme:v,componentDisabled:b,segmented:S,statistic:$,spin:x,calendar:w,carousel:O,cascader:E,collapse:I,typography:T,checkbox:_,descriptions:R,divider:M,drawer:L,skeleton:z,steps:P,image:N,layout:k,list:j,mentions:B,modal:F,progress:K,result:X,slider:U,breadcrumb:re,menu:Z,pagination:ne,input:le,textArea:ee,empty:q,badge:te,radio:J,rate:W,switch:Y,transfer:de,avatar:oe,message:se,tag:ae,table:ie,card:pe,tabs:me,timeline:ge,timePicker:ve,upload:$e,notification:we,tree:We,colorPicker:_e,datePicker:Se,rangePicker:Ce,flex:Oe,wave:ke,dropdown:Ze,warning:He,tour:Ve,floatButtonGroup:it}=e,Je=s.useCallback((xe,ze)=>{const{prefixCls:rt}=e;if(ze)return ze;const ye=rt||C.getPrefixCls("");return xe?`${ye}-${xe}`:ye},[C.getPrefixCls,e.prefixCls]),Ae=p||C.iconPrefixCls||ch,lt=n||C.csp;sw(Ae,lt);const ut=UM(v,C.theme,{prefixCls:Je("")}),St={csp:lt,autoInsertSpaceInButton:r,alert:o,anchor:a,locale:l||h,direction:u,space:d,virtual:f,popupMatchSelectWidth:g??m,popupOverflow:y,getPrefixCls:Je,iconPrefixCls:Ae,theme:ut,segmented:S,statistic:$,spin:x,calendar:w,carousel:O,cascader:E,collapse:I,typography:T,checkbox:_,descriptions:R,divider:M,drawer:L,skeleton:z,steps:P,image:N,input:le,textArea:ee,layout:k,list:j,mentions:B,modal:F,progress:K,result:X,slider:U,breadcrumb:re,menu:Z,pagination:ne,empty:q,badge:te,radio:J,rate:W,switch:Y,transfer:de,avatar:oe,message:se,tag:ae,table:ie,card:pe,tabs:me,timeline:ge,timePicker:ve,upload:$e,notification:we,tree:We,colorPicker:_e,datePicker:Se,rangePicker:Ce,flex:Oe,wave:ke,dropdown:Ze,warning:He,tour:Ve,floatButtonGroup:it},st=Object.assign({},C);Object.keys(St).forEach(xe=>{St[xe]!==void 0&&(st[xe]=St[xe])}),h_.forEach(xe=>{const ze=e[xe];ze&&(st[xe]=ze)});const vt=Za(()=>st,st,(xe,ze)=>{const rt=Object.keys(xe),ye=Object.keys(ze);return rt.length!==ye.length||rt.some(Re=>xe[Re]!==ze[Re])}),nt=s.useMemo(()=>({prefixCls:Ae,csp:lt}),[Ae,lt]);let Me=s.createElement(s.Fragment,null,s.createElement(p_,{dropdownMatchSelectWidth:m}),t);const Xe=s.useMemo(()=>{var xe,ze,rt,ye;return _i(((xe=go.Form)===null||xe===void 0?void 0:xe.defaultValidateMessages)||{},((rt=(ze=vt.locale)===null||ze===void 0?void 0:ze.Form)===null||rt===void 0?void 0:rt.defaultValidateMessages)||{},((ye=vt.form)===null||ye===void 0?void 0:ye.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[vt,i==null?void 0:i.validateMessages]);Object.keys(Xe).length>0&&(Me=s.createElement(V$.Provider,{value:Xe},Me)),l&&(Me=s.createElement(GT,{locale:l,_ANT_MARK__:KT},Me)),(Ae||lt)&&(Me=s.createElement(ih.Provider,{value:nt},Me)),c&&(Me=s.createElement(wM,{size:c},Me)),Me=s.createElement(g_,null,Me);const De=s.useMemo(()=>{const xe=ut||{},{algorithm:ze,token:rt,components:ye,cssVar:Re}=xe,Pe=v_(xe,["algorithm","token","components","cssVar"]),Ge=ze&&(!Array.isArray(ze)||ze.length>0)?Ns(ze):J$,ot={};Object.entries(ye||{}).forEach(Ot=>{let[Be,Ee]=Ot;const be=Object.assign({},Ee);"algorithm"in be&&(be.algorithm===!0?be.theme=Ge:(Array.isArray(be.algorithm)||typeof be.algorithm=="function")&&(be.theme=Ns(be.algorithm)),delete be.algorithm),ot[Be]=be});const et=Object.assign(Object.assign({},ol),rt);return Object.assign(Object.assign({},Pe),{theme:Ge,token:et,components:ot,override:Object.assign({override:et},ot),cssVar:Re})},[ut]);return v&&(Me=s.createElement(ew.Provider,{value:De},Me)),vt.warning&&(Me=s.createElement(LT.Provider,{value:vt.warning},Me)),b!==void 0&&(Me=s.createElement(uh,{disabled:b},Me)),s.createElement(je.Provider,{value:vt},Me)},fl=e=>{const t=s.useContext(je),n=s.useContext(lh);return s.createElement(x_,Object.assign({parentContext:t,legacyLocale:n},e))};fl.ConfigContext=je;fl.SizeContext=Js;fl.config=S_;fl.useConfig=EM;Object.defineProperty(fl,"SizeContext",{get:()=>Js});const tc=fl;var $_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};const w_=$_;function Ow(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function E_(e){return Ow(e)instanceof ShadowRoot}function od(e){return E_(e)?Ow(e):null}function O_(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function I_(e,t){Zt(e,"[@ant-design/icons] ".concat(t))}function fb(e){return at(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(at(e.icon)==="object"||typeof e.icon=="function")}function mb(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[O_(n)]=r}return t},{})}function mp(e,t,n){return n?G.createElement(e.tag,A(A({key:t},mb(e.attrs)),n),(e.children||[]).map(function(r,o){return mp(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):G.createElement(e.tag,A({key:t},mb(e.attrs)),(e.children||[]).map(function(r,o){return mp(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function Iw(e){return Mo(e)[0]}function Pw(e){return e?Array.isArray(e)?e:[e]:[]}var P_=` .anticon { display: inline-flex; alignItems: center; @@ -139,7 +139,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho transform: rotate(360deg); } } -`,R_=function(t){var n=s.useContext(ih),r=n.csp,o=n.prefixCls,a=P_;o&&(a=a.replace(/anticon/g,o)),s.useEffect(function(){var i=t.current,l=od(i);Oo(a,"@ant-design-icons",{prepend:!0,csp:r,attachTo:l})},[])},N_=["icon","className","onClick","style","primaryColor","secondaryColor"],as={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function T_(e){var t=e.primaryColor,n=e.secondaryColor;as.primaryColor=t,as.secondaryColor=n||Iw(t),as.calculated=!!n}function M_(){return A({},as)}var rf=function(t){var n=t.icon,r=t.className,o=t.onClick,a=t.style,i=t.primaryColor,l=t.secondaryColor,c=tt(t,N_),u=s.useRef(),d=as;if(i&&(d={primaryColor:i,secondaryColor:l||Iw(i)}),R_(u),I_(fb(n),"icon should be icon definiton, but got ".concat(n)),!fb(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=A(A({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),mp(f.icon,"svg-".concat(f.name),A(A({className:r,onClick:o,style:a,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:u}))};rf.displayName="IconReact";rf.getTwoToneColors=M_;rf.setTwoToneColors=T_;const gh=rf;function Rw(e){var t=Pw(e),n=Q(t,2),r=n[0],o=n[1];return gh.setTwoToneColors({primaryColor:r,secondaryColor:o})}function __(){var e=gh.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var z_=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Rw(cM.primary);var of=s.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,a=e.rotate,i=e.tabIndex,l=e.onClick,c=e.twoToneColor,u=tt(e,z_),d=s.useContext(ih),f=d.prefixCls,m=f===void 0?"anticon":f,g=d.rootClassName,y=V(g,m,D(D({},"".concat(m,"-").concat(r.name),!!r.name),"".concat(m,"-spin"),!!o||r.name==="loading"),n),h=i;h===void 0&&l&&(h=-1);var C=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,p=Pw(c),v=Q(p,2),b=v[0],S=v[1];return s.createElement("span",ce({role:"img","aria-label":r.name},u,{ref:t,tabIndex:h,onClick:l,className:y}),s.createElement(gh,{icon:r,primaryColor:b,secondaryColor:S,style:C}))});of.displayName="AntdIcon";of.getTwoToneColor=__;of.setTwoToneColor=Rw;const Pt=of;var j_=function(t,n){return s.createElement(Pt,ce({},t,{ref:n,icon:w_}))},L_=s.forwardRef(j_);const af=L_;var k_={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};const D_=k_;var B_=function(t,n){return s.createElement(Pt,ce({},t,{ref:n,icon:D_}))},F_=s.forwardRef(B_);const ml=F_;var A_={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};const H_=A_;var V_=function(t,n){return s.createElement(Pt,ce({},t,{ref:n,icon:H_}))},K_=s.forwardRef(V_);const ni=K_;var W_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};const G_=W_;var U_=function(t,n){return s.createElement(Pt,ce({},t,{ref:n,icon:G_}))},q_=s.forwardRef(U_);const gl=q_;var X_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};const Y_=X_;var Q_=function(t,n){return s.createElement(Pt,ce({},t,{ref:n,icon:Y_}))},Z_=s.forwardRef(Q_);const ph=Z_;var J_=`accept acceptCharset accessKey action allowFullScreen allowTransparency +`,R_=function(t){var n=s.useContext(ih),r=n.csp,o=n.prefixCls,a=P_;o&&(a=a.replace(/anticon/g,o)),s.useEffect(function(){var i=t.current,l=od(i);Oo(a,"@ant-design-icons",{prepend:!0,csp:r,attachTo:l})},[])},N_=["icon","className","onClick","style","primaryColor","secondaryColor"],as={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function T_(e){var t=e.primaryColor,n=e.secondaryColor;as.primaryColor=t,as.secondaryColor=n||Iw(t),as.calculated=!!n}function M_(){return A({},as)}var rf=function(t){var n=t.icon,r=t.className,o=t.onClick,a=t.style,i=t.primaryColor,l=t.secondaryColor,c=tt(t,N_),u=s.useRef(),d=as;if(i&&(d={primaryColor:i,secondaryColor:l||Iw(i)}),R_(u),I_(fb(n),"icon should be icon definiton, but got ".concat(n)),!fb(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=A(A({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),mp(f.icon,"svg-".concat(f.name),A(A({className:r,onClick:o,style:a,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:u}))};rf.displayName="IconReact";rf.getTwoToneColors=M_;rf.setTwoToneColors=T_;const gh=rf;function Rw(e){var t=Pw(e),n=Q(t,2),r=n[0],o=n[1];return gh.setTwoToneColors({primaryColor:r,secondaryColor:o})}function __(){var e=gh.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var z_=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Rw(cM.primary);var of=s.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,a=e.rotate,i=e.tabIndex,l=e.onClick,c=e.twoToneColor,u=tt(e,z_),d=s.useContext(ih),f=d.prefixCls,m=f===void 0?"anticon":f,g=d.rootClassName,y=V(g,m,D(D({},"".concat(m,"-").concat(r.name),!!r.name),"".concat(m,"-spin"),!!o||r.name==="loading"),n),h=i;h===void 0&&l&&(h=-1);var C=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,p=Pw(c),v=Q(p,2),b=v[0],S=v[1];return s.createElement("span",ce({role:"img","aria-label":r.name},u,{ref:t,tabIndex:h,onClick:l,className:y}),s.createElement(gh,{icon:r,primaryColor:b,secondaryColor:S,style:C}))});of.displayName="AntdIcon";of.getTwoToneColor=__;of.setTwoToneColor=Rw;const $t=of;var j_=function(t,n){return s.createElement($t,ce({},t,{ref:n,icon:w_}))},L_=s.forwardRef(j_);const af=L_;var k_={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};const D_=k_;var B_=function(t,n){return s.createElement($t,ce({},t,{ref:n,icon:D_}))},F_=s.forwardRef(B_);const ml=F_;var A_={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};const H_=A_;var V_=function(t,n){return s.createElement($t,ce({},t,{ref:n,icon:H_}))},K_=s.forwardRef(V_);const ni=K_;var W_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};const G_=W_;var U_=function(t,n){return s.createElement($t,ce({},t,{ref:n,icon:G_}))},q_=s.forwardRef(U_);const gl=q_;var X_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};const Y_=X_;var Q_=function(t,n){return s.createElement($t,ce({},t,{ref:n,icon:Y_}))},Z_=s.forwardRef(Q_);const ph=Z_;var J_=`accept acceptCharset accessKey action allowFullScreen allowTransparency alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge charSet checked classID className colSpan cols content contentEditable contextMenu controls coords crossOrigin data dateTime default defer dir disabled download draggable @@ -150,28 +150,28 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho optimum pattern placeholder poster preload radioGroup readOnly rel required reversed role rowSpan rows sandbox scope scoped scrolling seamless selected shape size sizes span spellCheck src srcDoc srcLang srcSet start step style - summary tabIndex target title type useMap value width wmode wrap`,ez=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown + summary tabIndex target title type useMap value width wmode wrap`,e4=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata - onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,tz="".concat(J_," ").concat(ez).split(/[\s\n]+/),nz="aria-",rz="data-";function gb(e,t){return e.indexOf(t)===0}function qn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=A({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||gb(o,nz))||n.data&&gb(o,rz)||n.attr&&tz.includes(o))&&(r[o]=e[o])}),r}function Nw(e){return e&&G.isValidElement(e)&&e.type===G.Fragment}const Tw=(e,t,n)=>G.isValidElement(e)?G.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function Xn(e,t){return Tw(e,e,t)}const pb=e=>typeof e=="object"&&e!=null&&e.nodeType===1,vb=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Sm=(e,t)=>{if(e.clientHeight{const o=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!o&&(o.clientHeightat||a>e&&i=t&&l>=n?a-e-r:i>t&&ln?i-t+o:0,oz=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},hb=(e,t)=>{var n,r,o,a;if(typeof document>"u")return[];const{scrollMode:i,block:l,inline:c,boundary:u,skipOverflowHiddenElements:d}=t,f=typeof u=="function"?u:z=>z!==u;if(!pb(e))throw new TypeError("Invalid target");const m=document.scrollingElement||document.documentElement,g=[];let y=e;for(;pb(y)&&f(y);){if(y=oz(y),y===m){g.push(y);break}y!=null&&y===document.body&&Sm(y)&&!Sm(document.documentElement)||y!=null&&Sm(y,d)&&g.push(y)}const h=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,C=(a=(o=window.visualViewport)==null?void 0:o.height)!=null?a:innerHeight,{scrollX:p,scrollY:v}=window,{height:b,width:S,top:$,right:x,bottom:w,left:O}=e.getBoundingClientRect(),{top:E,right:I,bottom:T,left:_}=(z=>{const P=window.getComputedStyle(z);return{top:parseFloat(P.scrollMarginTop)||0,right:parseFloat(P.scrollMarginRight)||0,bottom:parseFloat(P.scrollMarginBottom)||0,left:parseFloat(P.scrollMarginLeft)||0}})(e);let R=l==="start"||l==="nearest"?$-E:l==="end"?w+T:$+b/2-E+T,M=c==="center"?O+S/2-_+I:c==="end"?x+I:O-_;const L=[];for(let z=0;z=0&&O>=0&&w<=C&&x<=h&&$>=j&&w<=F&&O>=K&&x<=B)return L;const X=getComputedStyle(P),U=parseInt(X.borderLeftWidth,10),re=parseInt(X.borderTopWidth,10),Z=parseInt(X.borderRightWidth,10),ne=parseInt(X.borderBottomWidth,10);let le=0,ee=0;const q="offsetWidth"in P?P.offsetWidth-P.clientWidth-U-Z:0,te="offsetHeight"in P?P.offsetHeight-P.clientHeight-re-ne:0,J="offsetWidth"in P?P.offsetWidth===0?0:k/P.offsetWidth:0,W="offsetHeight"in P?P.offsetHeight===0?0:N/P.offsetHeight:0;if(m===P)le=l==="start"?R:l==="end"?R-C:l==="nearest"?Gc(v,v+C,C,re,ne,v+R,v+R+b,b):R-C/2,ee=c==="start"?M:c==="center"?M-h/2:c==="end"?M-h:Gc(p,p+h,h,U,Z,p+M,p+M+S,S),le=Math.max(0,le+v),ee=Math.max(0,ee+p);else{le=l==="start"?R-j-re:l==="end"?R-F+ne+te:l==="nearest"?Gc(j,F,N,re,ne+te,R,R+b,b):R-(j+N/2)+te/2,ee=c==="start"?M-K-U:c==="center"?M-(K+k/2)+q/2:c==="end"?M-B+Z+q:Gc(K,B,k,U,Z+q,M,M+S,S);const{scrollLeft:Y,scrollTop:de}=P;le=W===0?0:Math.max(0,Math.min(de+le/W,P.scrollHeight-N/W+te)),ee=J===0?0:Math.max(0,Math.min(Y+ee/J,P.scrollWidth-k/J+q)),R+=de-le,M+=Y-ee}L.push({el:P,top:le,left:ee})}return L},az=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function iz(e,t){if(!e.isConnected||!(o=>{let a=o;for(;a&&a.parentNode;){if(a.parentNode===document)return!0;a=a.parentNode instanceof ShadowRoot?a.parentNode.host:a.parentNode}return!1})(e))return;const n=(o=>{const a=window.getComputedStyle(o);return{top:parseFloat(a.scrollMarginTop)||0,right:parseFloat(a.scrollMarginRight)||0,bottom:parseFloat(a.scrollMarginBottom)||0,left:parseFloat(a.scrollMarginLeft)||0}})(e);if((o=>typeof o=="object"&&typeof o.behavior=="function")(t))return t.behavior(hb(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:a,left:i}of hb(e,az(t))){const l=a-n.top+n.bottom,c=i-n.left+n.right;o.scroll({top:l,left:c,behavior:r})}}function gp(e){return e!=null&&e===e.window}function lz(e,t){var n,r;if(typeof window>"u")return 0;const o=t?"scrollTop":"scrollLeft";let a=0;return gp(e)?a=e[t?"pageYOffset":"pageXOffset"]:e instanceof Document?a=e.documentElement[o]:(e instanceof HTMLElement||e)&&(a=e[o]),e&&!gp(e)&&typeof a!="number"&&(a=(r=((n=e.ownerDocument)!==null&&n!==void 0?n:e).documentElement)===null||r===void 0?void 0:r[o]),a}function sz(e,t,n,r){const o=n-t;return e/=r/2,e<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}function cz(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:n=()=>window,callback:r,duration:o=450}=t,a=n(),i=lz(a,!0),l=Date.now(),c=()=>{const d=Date.now()-l,f=sz(d>o?o:d,i,e,o);gp(a)?a.scrollTo(window.pageXOffset,f):a instanceof Document||a.constructor.name==="HTMLDocument"?a.documentElement.scrollTop=f:a.scrollTop=f,d{const[,,,,t]=mn();return t?`${e}-css-var`:""},gn=uz;var fe={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=fe.F1&&n<=fe.F12)return!1;switch(n){case fe.ALT:case fe.CAPS_LOCK:case fe.CONTEXT_MENU:case fe.CTRL:case fe.DOWN:case fe.END:case fe.ESC:case fe.HOME:case fe.INSERT:case fe.LEFT:case fe.MAC_FF_META:case fe.META:case fe.NUMLOCK:case fe.NUM_CENTER:case fe.PAGE_DOWN:case fe.PAGE_UP:case fe.PAUSE:case fe.PRINT_SCREEN:case fe.RIGHT:case fe.SHIFT:case fe.UP:case fe.WIN_KEY:case fe.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=fe.ZERO&&t<=fe.NINE||t>=fe.NUM_ZERO&&t<=fe.NUM_MULTIPLY||t>=fe.A&&t<=fe.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case fe.SPACE:case fe.QUESTION_MARK:case fe.NUM_PLUS:case fe.NUM_MINUS:case fe.NUM_PERIOD:case fe.NUM_DIVISION:case fe.SEMICOLON:case fe.DASH:case fe.EQUALS:case fe.COMMA:case fe.PERIOD:case fe.SLASH:case fe.APOSTROPHE:case fe.SINGLE_QUOTE:case fe.OPEN_SQUARE_BRACKET:case fe.BACKSLASH:case fe.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},vh=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.className,a=e.duration,i=a===void 0?4.5:a,l=e.eventKey,c=e.content,u=e.closable,d=e.closeIcon,f=d===void 0?"x":d,m=e.props,g=e.onClick,y=e.onNoticeClose,h=e.times,C=e.hovering,p=s.useState(!1),v=Q(p,2),b=v[0],S=v[1],$=C||b,x=function(){y(l)},w=function(_){(_.key==="Enter"||_.code==="Enter"||_.keyCode===fe.ENTER)&&x()};s.useEffect(function(){if(!$&&i>0){var T=setTimeout(function(){x()},i*1e3);return function(){clearTimeout(T)}}},[i,$,h]);var O=s.useMemo(function(){return at(u)==="object"&&u!==null?u:u?{closeIcon:f}:{}},[u,f]),E=qn(O,!0),I="".concat(n,"-notice");return s.createElement("div",ce({},m,{ref:t,className:V(I,o,D({},"".concat(I,"-closable"),u)),style:r,onMouseEnter:function(_){var R;S(!0),m==null||(R=m.onMouseEnter)===null||R===void 0||R.call(m,_)},onMouseLeave:function(_){var R;S(!1),m==null||(R=m.onMouseLeave)===null||R===void 0||R.call(m,_)},onClick:g}),s.createElement("div",{className:"".concat(I,"-content")},c),u&&s.createElement("a",ce({tabIndex:0,className:"".concat(I,"-close"),onKeyDown:w,"aria-label":"Close"},E,{onClick:function(_){_.preventDefault(),_.stopPropagation(),x()}}),O.closeIcon))}),Mw=G.createContext({}),_w=function(t){var n=t.children,r=t.classNames;return G.createElement(Mw.Provider,{value:{classNames:r}},n)},yb=8,bb=3,Cb=16,dz=function(t){var n={offset:yb,threshold:bb,gap:Cb};if(t&&at(t)==="object"){var r,o,a;n.offset=(r=t.offset)!==null&&r!==void 0?r:yb,n.threshold=(o=t.threshold)!==null&&o!==void 0?o:bb,n.gap=(a=t.gap)!==null&&a!==void 0?a:Cb}return[!!t,n]},fz=["className","style","classNames","styles"],mz=function(t){var n=t.configList,r=t.placement,o=t.prefixCls,a=t.className,i=t.style,l=t.motion,c=t.onAllNoticeRemoved,u=t.onNoticeClose,d=t.stack,f=s.useContext(Mw),m=f.classNames,g=s.useRef({}),y=s.useState(null),h=Q(y,2),C=h[0],p=h[1],v=s.useState([]),b=Q(v,2),S=b[0],$=b[1],x=n.map(function(z){return{config:z,key:String(z.key)}}),w=dz(d),O=Q(w,2),E=O[0],I=O[1],T=I.offset,_=I.threshold,R=I.gap,M=E&&(S.length>0||x.length<=_),L=typeof l=="function"?l(r):l;return s.useEffect(function(){E&&S.length>1&&$(function(z){return z.filter(function(P){return x.some(function(N){var k=N.key;return P===k})})})},[S,x,E]),s.useEffect(function(){var z;if(E&&g.current[(z=x[x.length-1])===null||z===void 0?void 0:z.key]){var P;p(g.current[(P=x[x.length-1])===null||P===void 0?void 0:P.key])}},[x,E]),G.createElement(xw,ce({key:r,className:V(o,"".concat(o,"-").concat(r),m==null?void 0:m.list,a,D(D({},"".concat(o,"-stack"),!!E),"".concat(o,"-stack-expanded"),M)),style:i,keys:x,motionAppear:!0},L,{onAllRemoved:function(){c(r)}}),function(z,P){var N=z.config,k=z.className,j=z.style,B=z.index,F=N,K=F.key,X=F.times,U=String(K),re=N,Z=re.className,ne=re.style,le=re.classNames,ee=re.styles,q=tt(re,fz),te=x.findIndex(function(ve){return ve.key===U}),J={};if(E){var W=x.length-1-(te>-1?te:B-1),Y=r==="top"||r==="bottom"?"-50%":"0";if(W>0){var de,oe,se;J.height=M?(de=g.current[U])===null||de===void 0?void 0:de.offsetHeight:C==null?void 0:C.offsetHeight;for(var ae=0,ie=0;ie-1?g.current[U]=$e:delete g.current[U]},prefixCls:o,classNames:le,styles:ee,className:V(Z,m==null?void 0:m.notice),style:ne,times:X,key:K,eventKey:K,onNoticeClose:u,hovering:E&&S.length>0})))})},gz=s.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,o=e.container,a=e.motion,i=e.maxCount,l=e.className,c=e.style,u=e.onAllRemoved,d=e.stack,f=e.renderNotifications,m=s.useState([]),g=Q(m,2),y=g[0],h=g[1],C=function(E){var I,T=y.find(function(_){return _.key===E});T==null||(I=T.onClose)===null||I===void 0||I.call(T),h(function(_){return _.filter(function(R){return R.key!==E})})};s.useImperativeHandle(t,function(){return{open:function(E){h(function(I){var T=ue(I),_=T.findIndex(function(L){return L.key===E.key}),R=A({},E);if(_>=0){var M;R.times=(((M=I[_])===null||M===void 0?void 0:M.times)||0)+1,T[_]=R}else R.times=0,T.push(R);return i>0&&T.length>i&&(T=T.slice(-i)),T})},close:function(E){C(E)},destroy:function(){h([])}}});var p=s.useState({}),v=Q(p,2),b=v[0],S=v[1];s.useEffect(function(){var O={};y.forEach(function(E){var I=E.placement,T=I===void 0?"topRight":I;T&&(O[T]=O[T]||[],O[T].push(E))}),Object.keys(b).forEach(function(E){O[E]=O[E]||[]}),S(O)},[y]);var $=function(E){S(function(I){var T=A({},I),_=T[E]||[];return _.length||delete T[E],T})},x=s.useRef(!1);if(s.useEffect(function(){Object.keys(b).length>0?x.current=!0:x.current&&(u==null||u(),x.current=!1)},[b]),!o)return null;var w=Object.keys(b);return To.createPortal(s.createElement(s.Fragment,null,w.map(function(O){var E=b[O],I=s.createElement(mz,{key:O,configList:E,placement:O,prefixCls:r,className:l==null?void 0:l(O),style:c==null?void 0:c(O),motion:a,onNoticeClose:C,onAllNoticeRemoved:$,stack:d});return f?f(I,{prefixCls:r,key:O}):I})),o)}),pz=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],vz=function(){return document.body},Sb=0;function hz(){for(var e={},t=arguments.length,n=new Array(t),r=0;r0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?vz:t,r=e.motion,o=e.prefixCls,a=e.maxCount,i=e.className,l=e.style,c=e.onAllRemoved,u=e.stack,d=e.renderNotifications,f=tt(e,pz),m=s.useState(),g=Q(m,2),y=g[0],h=g[1],C=s.useRef(),p=s.createElement(gz,{container:y,ref:C,prefixCls:o,motion:r,maxCount:a,className:i,style:l,onAllRemoved:c,stack:u,renderNotifications:d}),v=s.useState([]),b=Q(v,2),S=b[0],$=b[1],x=s.useMemo(function(){return{open:function(O){var E=hz(f,O);(E.key===null||E.key===void 0)&&(E.key="rc-notification-".concat(Sb),Sb+=1),$(function(I){return[].concat(ue(I),[{type:"open",config:E}])})},close:function(O){$(function(E){return[].concat(ue(E),[{type:"close",key:O}])})},destroy:function(){$(function(O){return[].concat(ue(O),[{type:"destroy"}])})}}},[]);return s.useEffect(function(){h(n())}),s.useEffect(function(){C.current&&S.length&&(S.forEach(function(w){switch(w.type){case"open":C.current.open(w.config);break;case"close":C.current.close(w.key);break;case"destroy":C.current.destroy();break}}),$(function(w){return w.filter(function(O){return!S.includes(O)})}))},[S]),[x,p]}var yz={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 bz=yz;var Cz=function(t,n){return s.createElement(Pt,ce({},t,{ref:n,icon:bz}))},Sz=s.forwardRef(Cz);const pl=Sz,xz=G.createContext(void 0),lf=xz,Ia=100,$z=10,sf=Ia*$z,jw={Modal:Ia,Drawer:Ia,Popover:Ia,Popconfirm:Ia,Tooltip:Ia,Tour:Ia},wz={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function Ez(e){return e in jw}function nc(e,t){const[,n]=mn(),r=G.useContext(lf),o=Ez(e);if(t!==void 0)return[t,t];let a=r??0;return o?(a+=(r?0:n.zIndexPopupBase)+jw[e],a=Math.min(a,n.zIndexPopupBase+sf)):a+=wz[e],[r===void 0?t:a,a]}const Oz=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:a,colorError:i,colorWarning:l,colorInfo:c,fontSizeLG:u,motionEaseInOutCirc:d,motionDurationSlow:f,marginXS:m,paddingXS:g,borderRadiusLG:y,zIndexPopup:h,contentPadding:C,contentBg:p}=e,v=`${t}-notice`,b=new yt("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:g,transform:"translateY(0)",opacity:1}}),S=new yt("MessageMoveOut",{"0%":{maxHeight:e.height,padding:g,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),$={padding:g,textAlign:"center",[`${t}-custom-content > ${n}`]:{verticalAlign:"text-bottom",marginInlineEnd:m,fontSize:u},[`${v}-content`]:{display:"inline-block",padding:C,background:p,borderRadius:y,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:a},[`${t}-error > ${n}`]:{color:i},[`${t}-warning > ${n}`]:{color:l},[`${t}-info > ${n}, + onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,t4="".concat(J_," ").concat(e4).split(/[\s\n]+/),n4="aria-",r4="data-";function gb(e,t){return e.indexOf(t)===0}function qn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=A({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||gb(o,n4))||n.data&&gb(o,r4)||n.attr&&t4.includes(o))&&(r[o]=e[o])}),r}function Nw(e){return e&&G.isValidElement(e)&&e.type===G.Fragment}const Tw=(e,t,n)=>G.isValidElement(e)?G.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function Xn(e,t){return Tw(e,e,t)}const pb=e=>typeof e=="object"&&e!=null&&e.nodeType===1,vb=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Sm=(e,t)=>{if(e.clientHeight{const o=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!o&&(o.clientHeightat||a>e&&i=t&&l>=n?a-e-r:i>t&&ln?i-t+o:0,o4=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},hb=(e,t)=>{var n,r,o,a;if(typeof document>"u")return[];const{scrollMode:i,block:l,inline:c,boundary:u,skipOverflowHiddenElements:d}=t,f=typeof u=="function"?u:z=>z!==u;if(!pb(e))throw new TypeError("Invalid target");const m=document.scrollingElement||document.documentElement,g=[];let y=e;for(;pb(y)&&f(y);){if(y=o4(y),y===m){g.push(y);break}y!=null&&y===document.body&&Sm(y)&&!Sm(document.documentElement)||y!=null&&Sm(y,d)&&g.push(y)}const h=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,C=(a=(o=window.visualViewport)==null?void 0:o.height)!=null?a:innerHeight,{scrollX:p,scrollY:v}=window,{height:b,width:S,top:$,right:x,bottom:w,left:O}=e.getBoundingClientRect(),{top:E,right:I,bottom:T,left:_}=(z=>{const P=window.getComputedStyle(z);return{top:parseFloat(P.scrollMarginTop)||0,right:parseFloat(P.scrollMarginRight)||0,bottom:parseFloat(P.scrollMarginBottom)||0,left:parseFloat(P.scrollMarginLeft)||0}})(e);let R=l==="start"||l==="nearest"?$-E:l==="end"?w+T:$+b/2-E+T,M=c==="center"?O+S/2-_+I:c==="end"?x+I:O-_;const L=[];for(let z=0;z=0&&O>=0&&w<=C&&x<=h&&$>=j&&w<=F&&O>=K&&x<=B)return L;const X=getComputedStyle(P),U=parseInt(X.borderLeftWidth,10),re=parseInt(X.borderTopWidth,10),Z=parseInt(X.borderRightWidth,10),ne=parseInt(X.borderBottomWidth,10);let le=0,ee=0;const q="offsetWidth"in P?P.offsetWidth-P.clientWidth-U-Z:0,te="offsetHeight"in P?P.offsetHeight-P.clientHeight-re-ne:0,J="offsetWidth"in P?P.offsetWidth===0?0:k/P.offsetWidth:0,W="offsetHeight"in P?P.offsetHeight===0?0:N/P.offsetHeight:0;if(m===P)le=l==="start"?R:l==="end"?R-C:l==="nearest"?Gc(v,v+C,C,re,ne,v+R,v+R+b,b):R-C/2,ee=c==="start"?M:c==="center"?M-h/2:c==="end"?M-h:Gc(p,p+h,h,U,Z,p+M,p+M+S,S),le=Math.max(0,le+v),ee=Math.max(0,ee+p);else{le=l==="start"?R-j-re:l==="end"?R-F+ne+te:l==="nearest"?Gc(j,F,N,re,ne+te,R,R+b,b):R-(j+N/2)+te/2,ee=c==="start"?M-K-U:c==="center"?M-(K+k/2)+q/2:c==="end"?M-B+Z+q:Gc(K,B,k,U,Z+q,M,M+S,S);const{scrollLeft:Y,scrollTop:de}=P;le=W===0?0:Math.max(0,Math.min(de+le/W,P.scrollHeight-N/W+te)),ee=J===0?0:Math.max(0,Math.min(Y+ee/J,P.scrollWidth-k/J+q)),R+=de-le,M+=Y-ee}L.push({el:P,top:le,left:ee})}return L},a4=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function i4(e,t){if(!e.isConnected||!(o=>{let a=o;for(;a&&a.parentNode;){if(a.parentNode===document)return!0;a=a.parentNode instanceof ShadowRoot?a.parentNode.host:a.parentNode}return!1})(e))return;const n=(o=>{const a=window.getComputedStyle(o);return{top:parseFloat(a.scrollMarginTop)||0,right:parseFloat(a.scrollMarginRight)||0,bottom:parseFloat(a.scrollMarginBottom)||0,left:parseFloat(a.scrollMarginLeft)||0}})(e);if((o=>typeof o=="object"&&typeof o.behavior=="function")(t))return t.behavior(hb(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:a,left:i}of hb(e,a4(t))){const l=a-n.top+n.bottom,c=i-n.left+n.right;o.scroll({top:l,left:c,behavior:r})}}function gp(e){return e!=null&&e===e.window}function l4(e,t){var n,r;if(typeof window>"u")return 0;const o=t?"scrollTop":"scrollLeft";let a=0;return gp(e)?a=e[t?"pageYOffset":"pageXOffset"]:e instanceof Document?a=e.documentElement[o]:(e instanceof HTMLElement||e)&&(a=e[o]),e&&!gp(e)&&typeof a!="number"&&(a=(r=((n=e.ownerDocument)!==null&&n!==void 0?n:e).documentElement)===null||r===void 0?void 0:r[o]),a}function s4(e,t,n,r){const o=n-t;return e/=r/2,e<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}function c4(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:n=()=>window,callback:r,duration:o=450}=t,a=n(),i=l4(a,!0),l=Date.now(),c=()=>{const d=Date.now()-l,f=s4(d>o?o:d,i,e,o);gp(a)?a.scrollTo(window.pageXOffset,f):a instanceof Document||a.constructor.name==="HTMLDocument"?a.documentElement.scrollTop=f:a.scrollTop=f,d{const[,,,,t]=mn();return t?`${e}-css-var`:""},gn=u4;var fe={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=fe.F1&&n<=fe.F12)return!1;switch(n){case fe.ALT:case fe.CAPS_LOCK:case fe.CONTEXT_MENU:case fe.CTRL:case fe.DOWN:case fe.END:case fe.ESC:case fe.HOME:case fe.INSERT:case fe.LEFT:case fe.MAC_FF_META:case fe.META:case fe.NUMLOCK:case fe.NUM_CENTER:case fe.PAGE_DOWN:case fe.PAGE_UP:case fe.PAUSE:case fe.PRINT_SCREEN:case fe.RIGHT:case fe.SHIFT:case fe.UP:case fe.WIN_KEY:case fe.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=fe.ZERO&&t<=fe.NINE||t>=fe.NUM_ZERO&&t<=fe.NUM_MULTIPLY||t>=fe.A&&t<=fe.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case fe.SPACE:case fe.QUESTION_MARK:case fe.NUM_PLUS:case fe.NUM_MINUS:case fe.NUM_PERIOD:case fe.NUM_DIVISION:case fe.SEMICOLON:case fe.DASH:case fe.EQUALS:case fe.COMMA:case fe.PERIOD:case fe.SLASH:case fe.APOSTROPHE:case fe.SINGLE_QUOTE:case fe.OPEN_SQUARE_BRACKET:case fe.BACKSLASH:case fe.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},vh=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.className,a=e.duration,i=a===void 0?4.5:a,l=e.eventKey,c=e.content,u=e.closable,d=e.closeIcon,f=d===void 0?"x":d,m=e.props,g=e.onClick,y=e.onNoticeClose,h=e.times,C=e.hovering,p=s.useState(!1),v=Q(p,2),b=v[0],S=v[1],$=C||b,x=function(){y(l)},w=function(_){(_.key==="Enter"||_.code==="Enter"||_.keyCode===fe.ENTER)&&x()};s.useEffect(function(){if(!$&&i>0){var T=setTimeout(function(){x()},i*1e3);return function(){clearTimeout(T)}}},[i,$,h]);var O=s.useMemo(function(){return at(u)==="object"&&u!==null?u:u?{closeIcon:f}:{}},[u,f]),E=qn(O,!0),I="".concat(n,"-notice");return s.createElement("div",ce({},m,{ref:t,className:V(I,o,D({},"".concat(I,"-closable"),u)),style:r,onMouseEnter:function(_){var R;S(!0),m==null||(R=m.onMouseEnter)===null||R===void 0||R.call(m,_)},onMouseLeave:function(_){var R;S(!1),m==null||(R=m.onMouseLeave)===null||R===void 0||R.call(m,_)},onClick:g}),s.createElement("div",{className:"".concat(I,"-content")},c),u&&s.createElement("a",ce({tabIndex:0,className:"".concat(I,"-close"),onKeyDown:w,"aria-label":"Close"},E,{onClick:function(_){_.preventDefault(),_.stopPropagation(),x()}}),O.closeIcon))}),Mw=G.createContext({}),_w=function(t){var n=t.children,r=t.classNames;return G.createElement(Mw.Provider,{value:{classNames:r}},n)},yb=8,bb=3,Cb=16,d4=function(t){var n={offset:yb,threshold:bb,gap:Cb};if(t&&at(t)==="object"){var r,o,a;n.offset=(r=t.offset)!==null&&r!==void 0?r:yb,n.threshold=(o=t.threshold)!==null&&o!==void 0?o:bb,n.gap=(a=t.gap)!==null&&a!==void 0?a:Cb}return[!!t,n]},f4=["className","style","classNames","styles"],m4=function(t){var n=t.configList,r=t.placement,o=t.prefixCls,a=t.className,i=t.style,l=t.motion,c=t.onAllNoticeRemoved,u=t.onNoticeClose,d=t.stack,f=s.useContext(Mw),m=f.classNames,g=s.useRef({}),y=s.useState(null),h=Q(y,2),C=h[0],p=h[1],v=s.useState([]),b=Q(v,2),S=b[0],$=b[1],x=n.map(function(z){return{config:z,key:String(z.key)}}),w=d4(d),O=Q(w,2),E=O[0],I=O[1],T=I.offset,_=I.threshold,R=I.gap,M=E&&(S.length>0||x.length<=_),L=typeof l=="function"?l(r):l;return s.useEffect(function(){E&&S.length>1&&$(function(z){return z.filter(function(P){return x.some(function(N){var k=N.key;return P===k})})})},[S,x,E]),s.useEffect(function(){var z;if(E&&g.current[(z=x[x.length-1])===null||z===void 0?void 0:z.key]){var P;p(g.current[(P=x[x.length-1])===null||P===void 0?void 0:P.key])}},[x,E]),G.createElement(xw,ce({key:r,className:V(o,"".concat(o,"-").concat(r),m==null?void 0:m.list,a,D(D({},"".concat(o,"-stack"),!!E),"".concat(o,"-stack-expanded"),M)),style:i,keys:x,motionAppear:!0},L,{onAllRemoved:function(){c(r)}}),function(z,P){var N=z.config,k=z.className,j=z.style,B=z.index,F=N,K=F.key,X=F.times,U=String(K),re=N,Z=re.className,ne=re.style,le=re.classNames,ee=re.styles,q=tt(re,f4),te=x.findIndex(function(ve){return ve.key===U}),J={};if(E){var W=x.length-1-(te>-1?te:B-1),Y=r==="top"||r==="bottom"?"-50%":"0";if(W>0){var de,oe,se;J.height=M?(de=g.current[U])===null||de===void 0?void 0:de.offsetHeight:C==null?void 0:C.offsetHeight;for(var ae=0,ie=0;ie-1?g.current[U]=$e:delete g.current[U]},prefixCls:o,classNames:le,styles:ee,className:V(Z,m==null?void 0:m.notice),style:ne,times:X,key:K,eventKey:K,onNoticeClose:u,hovering:E&&S.length>0})))})},g4=s.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,o=e.container,a=e.motion,i=e.maxCount,l=e.className,c=e.style,u=e.onAllRemoved,d=e.stack,f=e.renderNotifications,m=s.useState([]),g=Q(m,2),y=g[0],h=g[1],C=function(E){var I,T=y.find(function(_){return _.key===E});T==null||(I=T.onClose)===null||I===void 0||I.call(T),h(function(_){return _.filter(function(R){return R.key!==E})})};s.useImperativeHandle(t,function(){return{open:function(E){h(function(I){var T=ue(I),_=T.findIndex(function(L){return L.key===E.key}),R=A({},E);if(_>=0){var M;R.times=(((M=I[_])===null||M===void 0?void 0:M.times)||0)+1,T[_]=R}else R.times=0,T.push(R);return i>0&&T.length>i&&(T=T.slice(-i)),T})},close:function(E){C(E)},destroy:function(){h([])}}});var p=s.useState({}),v=Q(p,2),b=v[0],S=v[1];s.useEffect(function(){var O={};y.forEach(function(E){var I=E.placement,T=I===void 0?"topRight":I;T&&(O[T]=O[T]||[],O[T].push(E))}),Object.keys(b).forEach(function(E){O[E]=O[E]||[]}),S(O)},[y]);var $=function(E){S(function(I){var T=A({},I),_=T[E]||[];return _.length||delete T[E],T})},x=s.useRef(!1);if(s.useEffect(function(){Object.keys(b).length>0?x.current=!0:x.current&&(u==null||u(),x.current=!1)},[b]),!o)return null;var w=Object.keys(b);return To.createPortal(s.createElement(s.Fragment,null,w.map(function(O){var E=b[O],I=s.createElement(m4,{key:O,configList:E,placement:O,prefixCls:r,className:l==null?void 0:l(O),style:c==null?void 0:c(O),motion:a,onNoticeClose:C,onAllNoticeRemoved:$,stack:d});return f?f(I,{prefixCls:r,key:O}):I})),o)}),p4=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],v4=function(){return document.body},Sb=0;function h4(){for(var e={},t=arguments.length,n=new Array(t),r=0;r0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?v4:t,r=e.motion,o=e.prefixCls,a=e.maxCount,i=e.className,l=e.style,c=e.onAllRemoved,u=e.stack,d=e.renderNotifications,f=tt(e,p4),m=s.useState(),g=Q(m,2),y=g[0],h=g[1],C=s.useRef(),p=s.createElement(g4,{container:y,ref:C,prefixCls:o,motion:r,maxCount:a,className:i,style:l,onAllRemoved:c,stack:u,renderNotifications:d}),v=s.useState([]),b=Q(v,2),S=b[0],$=b[1],x=s.useMemo(function(){return{open:function(O){var E=h4(f,O);(E.key===null||E.key===void 0)&&(E.key="rc-notification-".concat(Sb),Sb+=1),$(function(I){return[].concat(ue(I),[{type:"open",config:E}])})},close:function(O){$(function(E){return[].concat(ue(E),[{type:"close",key:O}])})},destroy:function(){$(function(O){return[].concat(ue(O),[{type:"destroy"}])})}}},[]);return s.useEffect(function(){h(n())}),s.useEffect(function(){C.current&&S.length&&(S.forEach(function(w){switch(w.type){case"open":C.current.open(w.config);break;case"close":C.current.close(w.key);break;case"destroy":C.current.destroy();break}}),$(function(w){return w.filter(function(O){return!S.includes(O)})}))},[S]),[x,p]}var y4={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 b4=y4;var C4=function(t,n){return s.createElement($t,ce({},t,{ref:n,icon:b4}))},S4=s.forwardRef(C4);const pl=S4,x4=G.createContext(void 0),lf=x4,Ia=100,$4=10,sf=Ia*$4,jw={Modal:Ia,Drawer:Ia,Popover:Ia,Popconfirm:Ia,Tooltip:Ia,Tour:Ia},w4={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function E4(e){return e in jw}function nc(e,t){const[,n]=mn(),r=G.useContext(lf),o=E4(e);if(t!==void 0)return[t,t];let a=r??0;return o?(a+=(r?0:n.zIndexPopupBase)+jw[e],a=Math.min(a,n.zIndexPopupBase+sf)):a+=w4[e],[r===void 0?t:a,a]}const O4=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:a,colorError:i,colorWarning:l,colorInfo:c,fontSizeLG:u,motionEaseInOutCirc:d,motionDurationSlow:f,marginXS:m,paddingXS:g,borderRadiusLG:y,zIndexPopup:h,contentPadding:C,contentBg:p}=e,v=`${t}-notice`,b=new yt("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:g,transform:"translateY(0)",opacity:1}}),S=new yt("MessageMoveOut",{"0%":{maxHeight:e.height,padding:g,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),$={padding:g,textAlign:"center",[`${t}-custom-content > ${n}`]:{verticalAlign:"text-bottom",marginInlineEnd:m,fontSize:u},[`${v}-content`]:{display:"inline-block",padding:C,background:p,borderRadius:y,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:a},[`${t}-error > ${n}`]:{color:i},[`${t}-warning > ${n}`]:{color:l},[`${t}-info > ${n}, ${t}-loading > ${n}`]:{color:c}};return[{[t]:Object.assign(Object.assign({},zt(e)),{color:o,position:"fixed",top:m,width:"100%",pointerEvents:"none",zIndex:h,[`${t}-move-up`]:{animationFillMode:"forwards"},[` ${t}-move-up-appear, ${t}-move-up-enter `]:{animationName:b,animationDuration:f,animationPlayState:"paused",animationTimingFunction:d},[` ${t}-move-up-appear${t}-move-up-appear-active, ${t}-move-up-enter${t}-move-up-enter-active - `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:S,animationDuration:f,animationPlayState:"paused",animationTimingFunction:d},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${v}-wrapper`]:Object.assign({},$)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},$),{padding:0,textAlign:"start"})}]},Iz=e=>({zIndexPopup:e.zIndexPopupBase+sf+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),Lw=_t("Message",e=>{const t=bt(e,{height:150});return[Oz(t)]},Iz);var Pz=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{let{prefixCls:t,type:n,icon:r,children:o}=e;return s.createElement("div",{className:V(`${t}-custom-content`,`${t}-${n}`)},r||Rz[n],s.createElement("span",null,o))},Nz=e=>{const{prefixCls:t,className:n,type:r,icon:o,content:a}=e,i=Pz(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:l}=s.useContext(je),c=t||l("message"),u=gn(c),[d,f,m]=Lw(c,u);return d(s.createElement(vh,Object.assign({},i,{prefixCls:c,className:V(n,f,`${c}-notice-pure-panel`,m,u),eventKey:"pure",duration:null,content:s.createElement(kw,{prefixCls:c,type:r,icon:o},a)})))},Tz=Nz;function Mz(e,t){return{motionName:t??`${e}-move-up`}}function hh(e){let t;const n=new Promise(o=>{t=e(()=>{o(!0)})}),r=()=>{t==null||t()};return r.then=(o,a)=>n.then(o,a),r.promise=n,r}var _z=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{let{children:t,prefixCls:n}=e;const r=gn(n),[o,a,i]=Lw(n,r);return o(s.createElement(_w,{classNames:{list:V(a,i,r)}},t))},kz=(e,t)=>{let{prefixCls:n,key:r}=t;return s.createElement(Lz,{prefixCls:n,key:r},e)},Dz=s.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:a,duration:i=jz,rtl:l,transitionName:c,onAllRemoved:u}=e,{getPrefixCls:d,getPopupContainer:f,message:m,direction:g}=s.useContext(je),y=r||d("message"),h=()=>({left:"50%",transform:"translateX(-50%)",top:n??zz}),C=()=>V({[`${y}-rtl`]:l??g==="rtl"}),p=()=>Mz(y,c),v=s.createElement("span",{className:`${y}-close-x`},s.createElement(ni,{className:`${y}-close-icon`})),[b,S]=zw({prefixCls:y,style:h,className:C,motion:p,closable:!1,closeIcon:v,duration:i,getContainer:()=>(o==null?void 0:o())||(f==null?void 0:f())||document.body,maxCount:a,onAllRemoved:u,renderNotifications:kz});return s.useImperativeHandle(t,()=>Object.assign(Object.assign({},b),{prefixCls:y,message:m})),S});let xb=0;function Dw(e){const t=s.useRef(null);return Fo(),[s.useMemo(()=>{const r=c=>{var u;(u=t.current)===null||u===void 0||u.close(c)},o=c=>{if(!t.current){const x=()=>{};return x.then=()=>{},x}const{open:u,prefixCls:d,message:f}=t.current,m=`${d}-notice`,{content:g,icon:y,type:h,key:C,className:p,style:v,onClose:b}=c,S=_z(c,["content","icon","type","key","className","style","onClose"]);let $=C;return $==null&&(xb+=1,$=`antd-message-${xb}`),hh(x=>(u(Object.assign(Object.assign({},S),{key:$,content:s.createElement(kw,{prefixCls:d,type:h,icon:y},g),placement:"top",className:V(h&&`${m}-${h}`,p,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),v),onClose:()=>{b==null||b(),x()}})),()=>{r($)}))},i={open:o,destroy:c=>{var u;c!==void 0?r(c):(u=t.current)===null||u===void 0||u.destroy()}};return["info","success","warning","error","loading"].forEach(c=>{const u=(d,f,m)=>{let g;d&&typeof d=="object"&&"content"in d?g=d:g={content:d};let y,h;typeof f=="function"?h=f:(y=f,h=m);const C=Object.assign(Object.assign({onClose:h,duration:y},g),{type:c});return o(C)};i[c]=u}),i},[]),s.createElement(Dz,Object.assign({key:"message-holder"},e,{ref:t}))]}function Bw(e){return Dw(e)}function Bz(){const[e,t]=s.useState([]),n=s.useCallback(r=>(t(o=>[].concat(ue(o),[r])),()=>{t(o=>o.filter(a=>a!==r))}),[]);return[e,n]}function Yn(){Yn=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(z,P,N){z[P]=N.value},a=typeof Symbol=="function"?Symbol:{},i=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function u(z,P,N){return Object.defineProperty(z,P,{value:N,enumerable:!0,configurable:!0,writable:!0}),z[P]}try{u({},"")}catch{u=function(N,k,j){return N[k]=j}}function d(z,P,N,k){var j=P&&P.prototype instanceof p?P:p,B=Object.create(j.prototype),F=new M(k||[]);return o(B,"_invoke",{value:I(z,N,F)}),B}function f(z,P,N){try{return{type:"normal",arg:z.call(P,N)}}catch(k){return{type:"throw",arg:k}}}t.wrap=d;var m="suspendedStart",g="suspendedYield",y="executing",h="completed",C={};function p(){}function v(){}function b(){}var S={};u(S,i,function(){return this});var $=Object.getPrototypeOf,x=$&&$($(L([])));x&&x!==n&&r.call(x,i)&&(S=x);var w=b.prototype=p.prototype=Object.create(S);function O(z){["next","throw","return"].forEach(function(P){u(z,P,function(N){return this._invoke(P,N)})})}function E(z,P){function N(j,B,F,K){var X=f(z[j],z,B);if(X.type!=="throw"){var U=X.arg,re=U.value;return re&&at(re)=="object"&&r.call(re,"__await")?P.resolve(re.__await).then(function(Z){N("next",Z,F,K)},function(Z){N("throw",Z,F,K)}):P.resolve(re).then(function(Z){U.value=Z,F(U)},function(Z){return N("throw",Z,F,K)})}K(X.arg)}var k;o(this,"_invoke",{value:function(B,F){function K(){return new P(function(X,U){N(B,F,X,U)})}return k=k?k.then(K,K):K()}})}function I(z,P,N){var k=m;return function(j,B){if(k===y)throw Error("Generator is already running");if(k===h){if(j==="throw")throw B;return{value:e,done:!0}}for(N.method=j,N.arg=B;;){var F=N.delegate;if(F){var K=T(F,N);if(K){if(K===C)continue;return K}}if(N.method==="next")N.sent=N._sent=N.arg;else if(N.method==="throw"){if(k===m)throw k=h,N.arg;N.dispatchException(N.arg)}else N.method==="return"&&N.abrupt("return",N.arg);k=y;var X=f(z,P,N);if(X.type==="normal"){if(k=N.done?h:g,X.arg===C)continue;return{value:X.arg,done:N.done}}X.type==="throw"&&(k=h,N.method="throw",N.arg=X.arg)}}}function T(z,P){var N=P.method,k=z.iterator[N];if(k===e)return P.delegate=null,N==="throw"&&z.iterator.return&&(P.method="return",P.arg=e,T(z,P),P.method==="throw")||N!=="return"&&(P.method="throw",P.arg=new TypeError("The iterator does not provide a '"+N+"' method")),C;var j=f(k,z.iterator,P.arg);if(j.type==="throw")return P.method="throw",P.arg=j.arg,P.delegate=null,C;var B=j.arg;return B?B.done?(P[z.resultName]=B.value,P.next=z.nextLoc,P.method!=="return"&&(P.method="next",P.arg=e),P.delegate=null,C):B:(P.method="throw",P.arg=new TypeError("iterator result is not an object"),P.delegate=null,C)}function _(z){var P={tryLoc:z[0]};1 in z&&(P.catchLoc=z[1]),2 in z&&(P.finallyLoc=z[2],P.afterLoc=z[3]),this.tryEntries.push(P)}function R(z){var P=z.completion||{};P.type="normal",delete P.arg,z.completion=P}function M(z){this.tryEntries=[{tryLoc:"root"}],z.forEach(_,this),this.reset(!0)}function L(z){if(z||z===""){var P=z[i];if(P)return P.call(z);if(typeof z.next=="function")return z;if(!isNaN(z.length)){var N=-1,k=function j(){for(;++N=0;--j){var B=this.tryEntries[j],F=B.completion;if(B.tryLoc==="root")return k("end");if(B.tryLoc<=this.prev){var K=r.call(B,"catchLoc"),X=r.call(B,"finallyLoc");if(K&&X){if(this.prev=0;--k){var j=this.tryEntries[k];if(j.tryLoc<=this.prev&&r.call(j,"finallyLoc")&&this.prev=0;--N){var k=this.tryEntries[N];if(k.finallyLoc===P)return this.complete(k.completion,k.afterLoc),R(k),C}},catch:function(P){for(var N=this.tryEntries.length-1;N>=0;--N){var k=this.tryEntries[N];if(k.tryLoc===P){var j=k.completion;if(j.type==="throw"){var B=j.arg;R(k)}return B}}throw Error("illegal catch attempt")},delegateYield:function(P,N,k){return this.delegate={iterator:L(P),resultName:N,nextLoc:k},this.method==="next"&&(this.arg=e),C}},t}function $b(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(u){n(u);return}l.done?t(c):Promise.resolve(c).then(r,o)}function ri(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(c){$b(a,r,o,i,l,"next",c)}function l(c){$b(a,r,o,i,l,"throw",c)}i(void 0)})}}var rc=A({},AR),Fz=rc.version,Az=rc.render,Hz=rc.unmountComponentAtNode,cf;try{var Vz=Number((Fz||"").split(".")[0]);Vz>=18&&(cf=rc.createRoot)}catch{}function wb(e){var t=rc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&at(t)==="object"&&(t.usingClientEntryPoint=e)}var ad="__rc_react_root__";function Kz(e,t){wb(!0);var n=t[ad]||cf(t);wb(!1),n.render(e),t[ad]=n}function Wz(e,t){Az(e,t)}function uf(e,t){if(cf){Kz(e,t);return}Wz(e,t)}function Gz(e){return pp.apply(this,arguments)}function pp(){return pp=ri(Yn().mark(function e(t){return Yn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[ad])===null||o===void 0||o.unmount(),delete t[ad]}));case 1:case"end":return r.stop()}},e)})),pp.apply(this,arguments)}function Uz(e){Hz(e)}function Fw(e){return vp.apply(this,arguments)}function vp(){return vp=ri(Yn().mark(function e(t){return Yn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(cf===void 0){r.next=2;break}return r.abrupt("return",Gz(t));case 2:Uz(t);case 3:case"end":return r.stop()}},e)})),vp.apply(this,arguments)}const xm=()=>({height:0,opacity:0}),Eb=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},qz=e=>({height:e?e.offsetHeight:0}),$m=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",Xz=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:xm,onEnterStart:xm,onAppearActive:Eb,onEnterActive:Eb,onLeaveStart:qz,onLeaveActive:xm,onAppearEnd:$m,onEnterEnd:$m,onLeaveEnd:$m,motionDeadline:500}},va=(e,t,n)=>n!==void 0?n:`${e}-${t}`,id=Xz,oc=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),a=o.width,i=o.height;if(a||i)return!0}}return!1},Yz=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},Qz=fh("Wave",e=>[Yz(e)]),df="ant-wave-target";function Zz(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 wm(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&Zz(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function Jz(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return wm(t)?t:wm(n)?n:wm(r)?r:null}function Em(e){return Number.isNaN(e)?0:e}const e4=e=>{const{className:t,target:n,component:r}=e,o=s.useRef(null),[a,i]=s.useState(null),[l,c]=s.useState([]),[u,d]=s.useState(0),[f,m]=s.useState(0),[g,y]=s.useState(0),[h,C]=s.useState(0),[p,v]=s.useState(!1),b={left:u,top:f,width:g,height:h,borderRadius:l.map(x=>`${x}px`).join(" ")};a&&(b["--wave-color"]=a);function S(){const x=getComputedStyle(n);i(Jz(n));const w=x.position==="static",{borderLeftWidth:O,borderTopWidth:E}=x;d(w?n.offsetLeft:Em(-parseFloat(O))),m(w?n.offsetTop:Em(-parseFloat(E))),y(n.offsetWidth),C(n.offsetHeight);const{borderTopLeftRadius:I,borderTopRightRadius:T,borderBottomLeftRadius:_,borderBottomRightRadius:R}=x;c([I,T,R,_].map(M=>Em(parseFloat(M))))}if(s.useEffect(()=>{if(n){const x=It(()=>{S(),v(!0)});let w;return typeof ResizeObserver<"u"&&(w=new ResizeObserver(S),w.observe(n)),()=>{It.cancel(x),w==null||w.disconnect()}}},[]),!p)return null;const $=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(df));return s.createElement(ro,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(x,w)=>{var O;if(w.deadline||w.propertyName==="opacity"){const E=(O=o.current)===null||O===void 0?void 0:O.parentElement;Fw(E).then(()=>{E==null||E.remove()})}return!1}},x=>{let{className:w}=x;return s.createElement("div",{ref:o,className:V(t,{"wave-quick":$},w),style:b})})},t4=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e==null||e.insertBefore(o,e==null?void 0:e.firstChild),uf(s.createElement(e4,Object.assign({},t,{target:e})),o)},n4=t4,r4=(e,t,n)=>{const{wave:r}=s.useContext(je),[,o,a]=mn(),i=Ft(u=>{const d=e.current;if(r!=null&&r.disabled||!d)return;const f=d.querySelector(`.${df}`)||d,{showEffect:m}=r||{};(m||n4)(f,{className:t,token:o,component:n,event:u,hashId:a})}),l=s.useRef();return u=>{It.cancel(l.current),l.current=It(()=>{i(u)})}},o4=r4,a4=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=s.useContext(je),a=s.useRef(null),i=o("wave"),[,l]=Qz(i),c=o4(a,V(i,l),r);if(G.useEffect(()=>{const d=a.current;if(!d||d.nodeType!==1||n)return;const f=m=>{!oc(m.target)||!d.getAttribute||d.getAttribute("disabled")||d.disabled||d.className.includes("disabled")||d.className.includes("-leave")||c(m)};return d.addEventListener("click",f,!0),()=>{d.removeEventListener("click",f,!0)}},[n]),!G.isValidElement(t))return t??null;const u=to(t)?Br(t.ref,a):a;return Xn(t,{ref:u})},ac=a4,i4=e=>{const t=G.useContext(Js);return G.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},sr=i4,l4=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},s4=l4,c4=e=>{const{componentCls:t,antCls:n}=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"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},u4=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},Aw=_t("Space",e=>{const t=bt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[c4(t),u4(t),s4(t)]},()=>({}),{resetStyle:!1});var Hw=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const n=s.useContext(ff),r=s.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:a,isLastItem:i}=n,l=o==="vertical"?"-vertical-":"-";return V(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:a,[`${e}-compact${l}last-item`]:i,[`${e}-compact${l}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},js=e=>{let{children:t}=e;return s.createElement(ff.Provider,{value:null},t)},d4=e=>{var{children:t}=e,n=Hw(e,["children"]);return s.createElement(ff.Provider,{value:n},t)},f4=e=>{const{getPrefixCls:t,direction:n}=s.useContext(je),{size:r,direction:o,block:a,prefixCls:i,className:l,rootClassName:c,children:u}=e,d=Hw(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=sr(b=>r??b),m=t("space-compact",i),[g,y]=Aw(m),h=V(m,y,{[`${m}-rtl`]:n==="rtl",[`${m}-block`]:a,[`${m}-vertical`]:o==="vertical"},l,c),C=s.useContext(ff),p=lr(u),v=s.useMemo(()=>p.map((b,S)=>{const $=b&&b.key||`${m}-item-${S}`;return s.createElement(d4,{key:$,compactSize:f,compactDirection:o,isFirstItem:S===0&&(!C||(C==null?void 0:C.isFirstItem)),isLastItem:S===p.length-1&&(!C||(C==null?void 0:C.isLastItem))},b)}),[r,p,C]);return p.length===0?null:g(s.createElement("div",Object.assign({className:h},d),v))},m4=f4;var g4=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:t,direction:n}=s.useContext(je),{prefixCls:r,size:o,className:a}=e,i=g4(e,["prefixCls","size","className"]),l=t("btn-group",r),[,,c]=mn();let u="";switch(o){case"large":u="lg";break;case"small":u="sm";break}const d=V(l,{[`${l}-${u}`]:u,[`${l}-rtl`]:n==="rtl"},a,c);return s.createElement(Vw.Provider,{value:o},s.createElement("div",Object.assign({},i,{className:d})))},v4=p4,Ob=/^[\u4e00-\u9fa5]{2}$/,hp=Ob.test.bind(Ob);function yh(e){return e==="danger"?{danger:!0}:{type:e}}function Ib(e){return typeof e=="string"}function Om(e){return e==="text"||e==="link"}function h4(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&Ib(e.type)&&hp(e.props.children)?Xn(e,{children:e.props.children.split("").join(n)}):Ib(e)?hp(e)?G.createElement("span",null,e.split("").join(n)):G.createElement("span",null,e):Nw(e)?G.createElement("span",null,e):e}function y4(e,t){let n=!1;const r=[];return G.Children.forEach(e,o=>{const a=typeof o,i=a==="string"||a==="number";if(n&&i){const l=r.length-1,c=r[l];r[l]=`${c}${o}`}else r.push(o);n=i}),G.Children.map(r,o=>h4(o,t))}const b4=s.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:a}=e,i=V(`${a}-icon`,n);return G.createElement("span",{ref:t,className:i,style:r},o)}),Kw=b4,Pb=s.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:o,iconClassName:a}=e;const i=V(`${n}-loading-icon`,r);return G.createElement(Kw,{prefixCls:n,className:i,style:o,ref:t},G.createElement(pl,{className:a}))}),Im=()=>({width:0,opacity:0,transform:"scale(0)"}),Pm=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),C4=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:a}=e,i=!!n;return r?G.createElement(Pb,{prefixCls:t,className:o,style:a}):G.createElement(ro,{visible:i,motionName:`${t}-loading-icon-motion`,motionLeave:i,removeOnLeave:!0,onAppearStart:Im,onAppearActive:Pm,onEnterStart:Im,onEnterActive:Pm,onLeaveStart:Pm,onLeaveActive:Im},(l,c)=>{let{className:u,style:d}=l;return G.createElement(Pb,{prefixCls:t,className:o,style:Object.assign(Object.assign({},a),d),ref:c,iconClassName:u})})},S4=C4,Rb=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),x4=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:a}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},Rb(`${t}-primary`,o),Rb(`${t}-danger`,a)]}},$4=x4,Ww=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return bt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},Gw=e=>{var t,n,r,o,a,i;const l=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,c=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,u=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,d=(o=e.contentLineHeight)!==null&&o!==void 0?o:yu(l),f=(a=e.contentLineHeightSM)!==null&&a!==void 0?a:yu(c),m=(i=e.contentLineHeightLG)!==null&&i!==void 0?i:yu(u);return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,contentFontSize:l,contentFontSizeSM:c,contentFontSizeLG:u,contentLineHeight:d,contentLineHeightSM:f,contentLineHeightLG:m,paddingBlock:Math.max((e.controlHeight-l*d)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-c*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-u*m)/2-e.lineWidth,0)}},w4=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${H(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:0},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},[`&:not(${t}-icon-only) > ${t}-icon`]:{[`&${t}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},zo(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&-icon-only${t}-compact-item`]:{flex:"none"}}}},jo=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),E4=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),O4=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),I4=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Ls=(e,t,n,r,o,a,i,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},jo(e,Object.assign({background:t},i),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:a||void 0}})}),bh=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},I4(e))}),Uw=e=>Object.assign({},bh(e)),ld=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),qw=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Uw(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),jo(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Ls(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},jo(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Ls(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),bh(e))}),P4=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Uw(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),jo(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),Ls(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({background:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},jo(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),Ls(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),bh(e))}),R4=e=>Object.assign(Object.assign({},qw(e)),{borderStyle:"dashed"}),N4=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},jo(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),ld(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},jo(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),ld(e))}),T4=e=>Object.assign(Object.assign(Object.assign({},jo(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),ld(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},ld(e)),jo(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBg}))}),M4=e=>{const{componentCls:t}=e;return{[`${t}-default`]:qw(e),[`${t}-primary`]:P4(e),[`${t}-dashed`]:R4(e),[`${t}-link`]:N4(e),[`${t}-text`]:T4(e),[`${t}-ghost`]:Ls(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},Ch=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,lineHeight:a,borderRadius:i,buttonPaddingHorizontal:l,iconCls:c,buttonPaddingVertical:u}=e,d=`${n}-icon-only`;return[{[`${t}`]:{fontSize:o,lineHeight:a,height:r,padding:`${H(u)} ${H(l)}`,borderRadius:i,[`&${d}`]:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:r,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},[c]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:E4(e)},{[`${n}${n}-round${t}`]:O4(e)}]},_4=e=>{const t=bt(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return Ch(t,e.componentCls)},z4=e=>{const t=bt(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Ch(t,`${e.componentCls}-sm`)},j4=e=>{const t=bt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Ch(t,`${e.componentCls}-lg`)},L4=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},k4=_t("Button",e=>{const t=Ww(e);return[w4(t),_4(t),z4(t),j4(t),L4(t),M4(t),$4(t)]},Gw,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function D4(e,t,n){const{focusElCls:r,focus:o,borderElCls:a}=n,i=a?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map(c=>`&:${c} ${i}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${i}`]:{zIndex:0}})}}function B4(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Sh(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},D4(e,r,t)),B4(n,r,t))}}function F4(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function A4(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 H4(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},F4(e,t)),A4(e.componentCls,t))}}const V4=e=>{const{componentCls:t,calc:n}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${H(e.lineWidth)} * 2)`,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:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${H(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},K4=ti(["Button","compact"],e=>{const t=Ww(e);return[Sh(t),H4(t),V4(t)]},Gw);var W4=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,r;const{loading:o=!1,prefixCls:a,type:i,danger:l,shape:c="default",size:u,styles:d,disabled:f,className:m,rootClassName:g,children:y,icon:h,ghost:C=!1,block:p=!1,htmlType:v="button",classNames:b,style:S={}}=e,$=W4(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),x=i||"default",{getPrefixCls:w,autoInsertSpaceInButton:O,direction:E,button:I}=s.useContext(je),T=w("btn",a),[_,R,M]=k4(T),L=s.useContext(Ao),z=f??L,P=s.useContext(Vw),N=s.useMemo(()=>G4(o),[o]),[k,j]=s.useState(N.loading),[B,F]=s.useState(!1),X=Br(t,s.createRef()),U=s.Children.count(y)===1&&!h&&!Om(x);s.useEffect(()=>{let me=null;N.delay>0?me=setTimeout(()=>{me=null,j(!0)},N.delay):j(N.loading);function ge(){me&&(clearTimeout(me),me=null)}return ge},[N]),s.useEffect(()=>{if(!X||!X.current||O===!1)return;const me=X.current.textContent;U&&hp(me)?B||F(!0):B&&F(!1)},[X]);const re=me=>{const{onClick:ge}=e;if(k||z){me.preventDefault();return}ge==null||ge(me)},Z=O!==!1,{compactSize:ne,compactItemClassnames:le}=ic(T,E),ee={large:"lg",small:"sm",middle:void 0},q=sr(me=>{var ge,ve;return(ve=(ge=u??ne)!==null&&ge!==void 0?ge:P)!==null&&ve!==void 0?ve:me}),te=q&&ee[q]||"",J=k?"loading":h,W=Kt($,["navigate"]),Y=V(T,R,M,{[`${T}-${c}`]:c!=="default"&&c,[`${T}-${x}`]:x,[`${T}-${te}`]:te,[`${T}-icon-only`]:!y&&y!==0&&!!J,[`${T}-background-ghost`]:C&&!Om(x),[`${T}-loading`]:k,[`${T}-two-chinese-chars`]:B&&Z&&!k,[`${T}-block`]:p,[`${T}-dangerous`]:!!l,[`${T}-rtl`]:E==="rtl"},le,m,g,I==null?void 0:I.className),de=Object.assign(Object.assign({},I==null?void 0:I.style),S),oe=V(b==null?void 0:b.icon,(n=I==null?void 0:I.classNames)===null||n===void 0?void 0:n.icon),se=Object.assign(Object.assign({},(d==null?void 0:d.icon)||{}),((r=I==null?void 0:I.styles)===null||r===void 0?void 0:r.icon)||{}),ae=h&&!k?G.createElement(Kw,{prefixCls:T,className:oe,style:se},h):G.createElement(S4,{existIcon:!!h,prefixCls:T,loading:!!k}),ie=y||y===0?y4(y,U&&Z):null;if(W.href!==void 0)return _(G.createElement("a",Object.assign({},W,{className:V(Y,{[`${T}-disabled`]:z}),href:z?void 0:W.href,style:de,onClick:re,ref:X,tabIndex:z?-1:0}),ae,ie));let pe=G.createElement("button",Object.assign({},$,{type:v,className:Y,style:de,onClick:re,disabled:z,ref:X}),ae,ie,!!le&&G.createElement(K4,{key:"compact",prefixCls:T}));return Om(x)||(pe=G.createElement(ac,{component:"Button",disabled:!!k},pe)),_(pe)}),xh=U4;xh.Group=v4;xh.__ANT_BUTTON=!0;const Lo=xh;function Nb(e){return!!(e&&e.then)}const q4=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:a,autoFocus:i,emitEvent:l,isSilent:c,quitOnNullishReturnValue:u,actionFn:d}=e,f=s.useRef(!1),m=s.useRef(null),[g,y]=da(!1),h=function(){a==null||a.apply(void 0,arguments)};s.useEffect(()=>{let v=null;return i&&(v=setTimeout(()=>{var b;(b=m.current)===null||b===void 0||b.focus()})),()=>{v&&clearTimeout(v)}},[]);const C=v=>{Nb(v)&&(y(!0),v.then(function(){y(!1,!0),h.apply(void 0,arguments),f.current=!1},b=>{if(y(!1,!0),f.current=!1,!(c!=null&&c()))return Promise.reject(b)}))},p=v=>{if(f.current)return;if(f.current=!0,!d){h();return}let b;if(l){if(b=d(v),u&&!Nb(b)){f.current=!1,h(v);return}}else if(d.length)b=d(a),f.current=!1;else if(b=d(),!b){h();return}C(b)};return s.createElement(Lo,Object.assign({},yh(t),{onClick:p,loading:g,prefixCls:r},o,{ref:m}),n)},$h=q4,lc=G.createContext({}),{Provider:Xw}=lc,X4=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:a,close:i,onCancel:l,onConfirm:c}=s.useContext(lc);return o?G.createElement($h,{isSilent:r,actionFn:l,close:function(){i==null||i.apply(void 0,arguments),c==null||c(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${a}-btn`},n):null},Tb=X4,Y4=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:a,okType:i,onConfirm:l,onOk:c}=s.useContext(lc);return G.createElement($h,{isSilent:n,type:i||"primary",actionFn:c,close:function(){t==null||t.apply(void 0,arguments),l==null||l(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${o}-btn`},a)},Mb=Y4;var Yw=s.createContext(null),_b=[];function Q4(e,t){var n=s.useState(function(){if(!zn())return null;var y=document.createElement("div");return y}),r=Q(n,1),o=r[0],a=s.useRef(!1),i=s.useContext(Yw),l=s.useState(_b),c=Q(l,2),u=c[0],d=c[1],f=i||(a.current?void 0:function(y){d(function(h){var C=[y].concat(ue(h));return C})});function m(){o.parentElement||document.body.appendChild(o),a.current=!0}function g(){var y;(y=o.parentElement)===null||y===void 0||y.removeChild(o),a.current=!1}return Mt(function(){return e?i?i(m):m():g(),g},[e]),Mt(function(){u.length&&(u.forEach(function(y){return y()}),d(_b))},[u]),[o,f]}var Rm;function Qw(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var o,a;if(e){var i=getComputedStyle(e);r.scrollbarColor=i.scrollbarColor,r.scrollbarWidth=i.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(l.width,10),u=parseInt(l.height,10);try{var d=c?"width: ".concat(l.width,";"):"",f=u?"height: ".concat(l.height,";"):"";Oo(` + `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:S,animationDuration:f,animationPlayState:"paused",animationTimingFunction:d},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${v}-wrapper`]:Object.assign({},$)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},$),{padding:0,textAlign:"start"})}]},I4=e=>({zIndexPopup:e.zIndexPopupBase+sf+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),Lw=_t("Message",e=>{const t=bt(e,{height:150});return[O4(t)]},I4);var P4=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{let{prefixCls:t,type:n,icon:r,children:o}=e;return s.createElement("div",{className:V(`${t}-custom-content`,`${t}-${n}`)},r||R4[n],s.createElement("span",null,o))},N4=e=>{const{prefixCls:t,className:n,type:r,icon:o,content:a}=e,i=P4(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:l}=s.useContext(je),c=t||l("message"),u=gn(c),[d,f,m]=Lw(c,u);return d(s.createElement(vh,Object.assign({},i,{prefixCls:c,className:V(n,f,`${c}-notice-pure-panel`,m,u),eventKey:"pure",duration:null,content:s.createElement(kw,{prefixCls:c,type:r,icon:o},a)})))},T4=N4;function M4(e,t){return{motionName:t??`${e}-move-up`}}function hh(e){let t;const n=new Promise(o=>{t=e(()=>{o(!0)})}),r=()=>{t==null||t()};return r.then=(o,a)=>n.then(o,a),r.promise=n,r}var _4=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{let{children:t,prefixCls:n}=e;const r=gn(n),[o,a,i]=Lw(n,r);return o(s.createElement(_w,{classNames:{list:V(a,i,r)}},t))},k4=(e,t)=>{let{prefixCls:n,key:r}=t;return s.createElement(L4,{prefixCls:n,key:r},e)},D4=s.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:a,duration:i=j4,rtl:l,transitionName:c,onAllRemoved:u}=e,{getPrefixCls:d,getPopupContainer:f,message:m,direction:g}=s.useContext(je),y=r||d("message"),h=()=>({left:"50%",transform:"translateX(-50%)",top:n??z4}),C=()=>V({[`${y}-rtl`]:l??g==="rtl"}),p=()=>M4(y,c),v=s.createElement("span",{className:`${y}-close-x`},s.createElement(ni,{className:`${y}-close-icon`})),[b,S]=zw({prefixCls:y,style:h,className:C,motion:p,closable:!1,closeIcon:v,duration:i,getContainer:()=>(o==null?void 0:o())||(f==null?void 0:f())||document.body,maxCount:a,onAllRemoved:u,renderNotifications:k4});return s.useImperativeHandle(t,()=>Object.assign(Object.assign({},b),{prefixCls:y,message:m})),S});let xb=0;function Dw(e){const t=s.useRef(null);return Fo(),[s.useMemo(()=>{const r=c=>{var u;(u=t.current)===null||u===void 0||u.close(c)},o=c=>{if(!t.current){const x=()=>{};return x.then=()=>{},x}const{open:u,prefixCls:d,message:f}=t.current,m=`${d}-notice`,{content:g,icon:y,type:h,key:C,className:p,style:v,onClose:b}=c,S=_4(c,["content","icon","type","key","className","style","onClose"]);let $=C;return $==null&&(xb+=1,$=`antd-message-${xb}`),hh(x=>(u(Object.assign(Object.assign({},S),{key:$,content:s.createElement(kw,{prefixCls:d,type:h,icon:y},g),placement:"top",className:V(h&&`${m}-${h}`,p,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),v),onClose:()=>{b==null||b(),x()}})),()=>{r($)}))},i={open:o,destroy:c=>{var u;c!==void 0?r(c):(u=t.current)===null||u===void 0||u.destroy()}};return["info","success","warning","error","loading"].forEach(c=>{const u=(d,f,m)=>{let g;d&&typeof d=="object"&&"content"in d?g=d:g={content:d};let y,h;typeof f=="function"?h=f:(y=f,h=m);const C=Object.assign(Object.assign({onClose:h,duration:y},g),{type:c});return o(C)};i[c]=u}),i},[]),s.createElement(D4,Object.assign({key:"message-holder"},e,{ref:t}))]}function Bw(e){return Dw(e)}function B4(){const[e,t]=s.useState([]),n=s.useCallback(r=>(t(o=>[].concat(ue(o),[r])),()=>{t(o=>o.filter(a=>a!==r))}),[]);return[e,n]}function Yn(){Yn=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(z,P,N){z[P]=N.value},a=typeof Symbol=="function"?Symbol:{},i=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function u(z,P,N){return Object.defineProperty(z,P,{value:N,enumerable:!0,configurable:!0,writable:!0}),z[P]}try{u({},"")}catch{u=function(N,k,j){return N[k]=j}}function d(z,P,N,k){var j=P&&P.prototype instanceof p?P:p,B=Object.create(j.prototype),F=new M(k||[]);return o(B,"_invoke",{value:I(z,N,F)}),B}function f(z,P,N){try{return{type:"normal",arg:z.call(P,N)}}catch(k){return{type:"throw",arg:k}}}t.wrap=d;var m="suspendedStart",g="suspendedYield",y="executing",h="completed",C={};function p(){}function v(){}function b(){}var S={};u(S,i,function(){return this});var $=Object.getPrototypeOf,x=$&&$($(L([])));x&&x!==n&&r.call(x,i)&&(S=x);var w=b.prototype=p.prototype=Object.create(S);function O(z){["next","throw","return"].forEach(function(P){u(z,P,function(N){return this._invoke(P,N)})})}function E(z,P){function N(j,B,F,K){var X=f(z[j],z,B);if(X.type!=="throw"){var U=X.arg,re=U.value;return re&&at(re)=="object"&&r.call(re,"__await")?P.resolve(re.__await).then(function(Z){N("next",Z,F,K)},function(Z){N("throw",Z,F,K)}):P.resolve(re).then(function(Z){U.value=Z,F(U)},function(Z){return N("throw",Z,F,K)})}K(X.arg)}var k;o(this,"_invoke",{value:function(B,F){function K(){return new P(function(X,U){N(B,F,X,U)})}return k=k?k.then(K,K):K()}})}function I(z,P,N){var k=m;return function(j,B){if(k===y)throw Error("Generator is already running");if(k===h){if(j==="throw")throw B;return{value:e,done:!0}}for(N.method=j,N.arg=B;;){var F=N.delegate;if(F){var K=T(F,N);if(K){if(K===C)continue;return K}}if(N.method==="next")N.sent=N._sent=N.arg;else if(N.method==="throw"){if(k===m)throw k=h,N.arg;N.dispatchException(N.arg)}else N.method==="return"&&N.abrupt("return",N.arg);k=y;var X=f(z,P,N);if(X.type==="normal"){if(k=N.done?h:g,X.arg===C)continue;return{value:X.arg,done:N.done}}X.type==="throw"&&(k=h,N.method="throw",N.arg=X.arg)}}}function T(z,P){var N=P.method,k=z.iterator[N];if(k===e)return P.delegate=null,N==="throw"&&z.iterator.return&&(P.method="return",P.arg=e,T(z,P),P.method==="throw")||N!=="return"&&(P.method="throw",P.arg=new TypeError("The iterator does not provide a '"+N+"' method")),C;var j=f(k,z.iterator,P.arg);if(j.type==="throw")return P.method="throw",P.arg=j.arg,P.delegate=null,C;var B=j.arg;return B?B.done?(P[z.resultName]=B.value,P.next=z.nextLoc,P.method!=="return"&&(P.method="next",P.arg=e),P.delegate=null,C):B:(P.method="throw",P.arg=new TypeError("iterator result is not an object"),P.delegate=null,C)}function _(z){var P={tryLoc:z[0]};1 in z&&(P.catchLoc=z[1]),2 in z&&(P.finallyLoc=z[2],P.afterLoc=z[3]),this.tryEntries.push(P)}function R(z){var P=z.completion||{};P.type="normal",delete P.arg,z.completion=P}function M(z){this.tryEntries=[{tryLoc:"root"}],z.forEach(_,this),this.reset(!0)}function L(z){if(z||z===""){var P=z[i];if(P)return P.call(z);if(typeof z.next=="function")return z;if(!isNaN(z.length)){var N=-1,k=function j(){for(;++N=0;--j){var B=this.tryEntries[j],F=B.completion;if(B.tryLoc==="root")return k("end");if(B.tryLoc<=this.prev){var K=r.call(B,"catchLoc"),X=r.call(B,"finallyLoc");if(K&&X){if(this.prev=0;--k){var j=this.tryEntries[k];if(j.tryLoc<=this.prev&&r.call(j,"finallyLoc")&&this.prev=0;--N){var k=this.tryEntries[N];if(k.finallyLoc===P)return this.complete(k.completion,k.afterLoc),R(k),C}},catch:function(P){for(var N=this.tryEntries.length-1;N>=0;--N){var k=this.tryEntries[N];if(k.tryLoc===P){var j=k.completion;if(j.type==="throw"){var B=j.arg;R(k)}return B}}throw Error("illegal catch attempt")},delegateYield:function(P,N,k){return this.delegate={iterator:L(P),resultName:N,nextLoc:k},this.method==="next"&&(this.arg=e),C}},t}function $b(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(u){n(u);return}l.done?t(c):Promise.resolve(c).then(r,o)}function ri(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(c){$b(a,r,o,i,l,"next",c)}function l(c){$b(a,r,o,i,l,"throw",c)}i(void 0)})}}var rc=A({},AR),F4=rc.version,A4=rc.render,H4=rc.unmountComponentAtNode,cf;try{var V4=Number((F4||"").split(".")[0]);V4>=18&&(cf=rc.createRoot)}catch{}function wb(e){var t=rc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&at(t)==="object"&&(t.usingClientEntryPoint=e)}var ad="__rc_react_root__";function K4(e,t){wb(!0);var n=t[ad]||cf(t);wb(!1),n.render(e),t[ad]=n}function W4(e,t){A4(e,t)}function uf(e,t){if(cf){K4(e,t);return}W4(e,t)}function G4(e){return pp.apply(this,arguments)}function pp(){return pp=ri(Yn().mark(function e(t){return Yn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[ad])===null||o===void 0||o.unmount(),delete t[ad]}));case 1:case"end":return r.stop()}},e)})),pp.apply(this,arguments)}function U4(e){H4(e)}function Fw(e){return vp.apply(this,arguments)}function vp(){return vp=ri(Yn().mark(function e(t){return Yn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(cf===void 0){r.next=2;break}return r.abrupt("return",G4(t));case 2:U4(t);case 3:case"end":return r.stop()}},e)})),vp.apply(this,arguments)}const xm=()=>({height:0,opacity:0}),Eb=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},q4=e=>({height:e?e.offsetHeight:0}),$m=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",X4=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:xm,onEnterStart:xm,onAppearActive:Eb,onEnterActive:Eb,onLeaveStart:q4,onLeaveActive:xm,onAppearEnd:$m,onEnterEnd:$m,onLeaveEnd:$m,motionDeadline:500}},va=(e,t,n)=>n!==void 0?n:`${e}-${t}`,id=X4,oc=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),a=o.width,i=o.height;if(a||i)return!0}}return!1},Y4=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},Q4=fh("Wave",e=>[Y4(e)]),df="ant-wave-target";function Z4(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 wm(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&Z4(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function J4(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return wm(t)?t:wm(n)?n:wm(r)?r:null}function Em(e){return Number.isNaN(e)?0:e}const ez=e=>{const{className:t,target:n,component:r}=e,o=s.useRef(null),[a,i]=s.useState(null),[l,c]=s.useState([]),[u,d]=s.useState(0),[f,m]=s.useState(0),[g,y]=s.useState(0),[h,C]=s.useState(0),[p,v]=s.useState(!1),b={left:u,top:f,width:g,height:h,borderRadius:l.map(x=>`${x}px`).join(" ")};a&&(b["--wave-color"]=a);function S(){const x=getComputedStyle(n);i(J4(n));const w=x.position==="static",{borderLeftWidth:O,borderTopWidth:E}=x;d(w?n.offsetLeft:Em(-parseFloat(O))),m(w?n.offsetTop:Em(-parseFloat(E))),y(n.offsetWidth),C(n.offsetHeight);const{borderTopLeftRadius:I,borderTopRightRadius:T,borderBottomLeftRadius:_,borderBottomRightRadius:R}=x;c([I,T,R,_].map(M=>Em(parseFloat(M))))}if(s.useEffect(()=>{if(n){const x=Pt(()=>{S(),v(!0)});let w;return typeof ResizeObserver<"u"&&(w=new ResizeObserver(S),w.observe(n)),()=>{Pt.cancel(x),w==null||w.disconnect()}}},[]),!p)return null;const $=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(df));return s.createElement(ro,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(x,w)=>{var O;if(w.deadline||w.propertyName==="opacity"){const E=(O=o.current)===null||O===void 0?void 0:O.parentElement;Fw(E).then(()=>{E==null||E.remove()})}return!1}},x=>{let{className:w}=x;return s.createElement("div",{ref:o,className:V(t,{"wave-quick":$},w),style:b})})},tz=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e==null||e.insertBefore(o,e==null?void 0:e.firstChild),uf(s.createElement(ez,Object.assign({},t,{target:e})),o)},nz=tz,rz=(e,t,n)=>{const{wave:r}=s.useContext(je),[,o,a]=mn(),i=Ft(u=>{const d=e.current;if(r!=null&&r.disabled||!d)return;const f=d.querySelector(`.${df}`)||d,{showEffect:m}=r||{};(m||nz)(f,{className:t,token:o,component:n,event:u,hashId:a})}),l=s.useRef();return u=>{Pt.cancel(l.current),l.current=Pt(()=>{i(u)})}},oz=rz,az=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=s.useContext(je),a=s.useRef(null),i=o("wave"),[,l]=Q4(i),c=oz(a,V(i,l),r);if(G.useEffect(()=>{const d=a.current;if(!d||d.nodeType!==1||n)return;const f=m=>{!oc(m.target)||!d.getAttribute||d.getAttribute("disabled")||d.disabled||d.className.includes("disabled")||d.className.includes("-leave")||c(m)};return d.addEventListener("click",f,!0),()=>{d.removeEventListener("click",f,!0)}},[n]),!G.isValidElement(t))return t??null;const u=to(t)?Br(t.ref,a):a;return Xn(t,{ref:u})},ac=az,iz=e=>{const t=G.useContext(Js);return G.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},sr=iz,lz=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},sz=lz,cz=e=>{const{componentCls:t,antCls:n}=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"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},uz=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},Aw=_t("Space",e=>{const t=bt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[cz(t),uz(t),sz(t)]},()=>({}),{resetStyle:!1});var Hw=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const n=s.useContext(ff),r=s.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:a,isLastItem:i}=n,l=o==="vertical"?"-vertical-":"-";return V(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:a,[`${e}-compact${l}last-item`]:i,[`${e}-compact${l}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},js=e=>{let{children:t}=e;return s.createElement(ff.Provider,{value:null},t)},dz=e=>{var{children:t}=e,n=Hw(e,["children"]);return s.createElement(ff.Provider,{value:n},t)},fz=e=>{const{getPrefixCls:t,direction:n}=s.useContext(je),{size:r,direction:o,block:a,prefixCls:i,className:l,rootClassName:c,children:u}=e,d=Hw(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=sr(b=>r??b),m=t("space-compact",i),[g,y]=Aw(m),h=V(m,y,{[`${m}-rtl`]:n==="rtl",[`${m}-block`]:a,[`${m}-vertical`]:o==="vertical"},l,c),C=s.useContext(ff),p=lr(u),v=s.useMemo(()=>p.map((b,S)=>{const $=b&&b.key||`${m}-item-${S}`;return s.createElement(dz,{key:$,compactSize:f,compactDirection:o,isFirstItem:S===0&&(!C||(C==null?void 0:C.isFirstItem)),isLastItem:S===p.length-1&&(!C||(C==null?void 0:C.isLastItem))},b)}),[r,p,C]);return p.length===0?null:g(s.createElement("div",Object.assign({className:h},d),v))},mz=fz;var gz=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:t,direction:n}=s.useContext(je),{prefixCls:r,size:o,className:a}=e,i=gz(e,["prefixCls","size","className"]),l=t("btn-group",r),[,,c]=mn();let u="";switch(o){case"large":u="lg";break;case"small":u="sm";break}const d=V(l,{[`${l}-${u}`]:u,[`${l}-rtl`]:n==="rtl"},a,c);return s.createElement(Vw.Provider,{value:o},s.createElement("div",Object.assign({},i,{className:d})))},vz=pz,Ob=/^[\u4e00-\u9fa5]{2}$/,hp=Ob.test.bind(Ob);function yh(e){return e==="danger"?{danger:!0}:{type:e}}function Ib(e){return typeof e=="string"}function Om(e){return e==="text"||e==="link"}function hz(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&Ib(e.type)&&hp(e.props.children)?Xn(e,{children:e.props.children.split("").join(n)}):Ib(e)?hp(e)?G.createElement("span",null,e.split("").join(n)):G.createElement("span",null,e):Nw(e)?G.createElement("span",null,e):e}function yz(e,t){let n=!1;const r=[];return G.Children.forEach(e,o=>{const a=typeof o,i=a==="string"||a==="number";if(n&&i){const l=r.length-1,c=r[l];r[l]=`${c}${o}`}else r.push(o);n=i}),G.Children.map(r,o=>hz(o,t))}const bz=s.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:a}=e,i=V(`${a}-icon`,n);return G.createElement("span",{ref:t,className:i,style:r},o)}),Kw=bz,Pb=s.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:o,iconClassName:a}=e;const i=V(`${n}-loading-icon`,r);return G.createElement(Kw,{prefixCls:n,className:i,style:o,ref:t},G.createElement(pl,{className:a}))}),Im=()=>({width:0,opacity:0,transform:"scale(0)"}),Pm=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),Cz=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:a}=e,i=!!n;return r?G.createElement(Pb,{prefixCls:t,className:o,style:a}):G.createElement(ro,{visible:i,motionName:`${t}-loading-icon-motion`,motionLeave:i,removeOnLeave:!0,onAppearStart:Im,onAppearActive:Pm,onEnterStart:Im,onEnterActive:Pm,onLeaveStart:Pm,onLeaveActive:Im},(l,c)=>{let{className:u,style:d}=l;return G.createElement(Pb,{prefixCls:t,className:o,style:Object.assign(Object.assign({},a),d),ref:c,iconClassName:u})})},Sz=Cz,Rb=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),xz=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:a}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},Rb(`${t}-primary`,o),Rb(`${t}-danger`,a)]}},$z=xz,Ww=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return bt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},Gw=e=>{var t,n,r,o,a,i;const l=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,c=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,u=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,d=(o=e.contentLineHeight)!==null&&o!==void 0?o:yu(l),f=(a=e.contentLineHeightSM)!==null&&a!==void 0?a:yu(c),m=(i=e.contentLineHeightLG)!==null&&i!==void 0?i:yu(u);return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,contentFontSize:l,contentFontSizeSM:c,contentFontSizeLG:u,contentLineHeight:d,contentLineHeightSM:f,contentLineHeightLG:m,paddingBlock:Math.max((e.controlHeight-l*d)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-c*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-u*m)/2-e.lineWidth,0)}},wz=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${H(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:0},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},[`&:not(${t}-icon-only) > ${t}-icon`]:{[`&${t}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},zo(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&-icon-only${t}-compact-item`]:{flex:"none"}}}},jo=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),Ez=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),Oz=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),Iz=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Ls=(e,t,n,r,o,a,i,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},jo(e,Object.assign({background:t},i),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:a||void 0}})}),bh=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},Iz(e))}),Uw=e=>Object.assign({},bh(e)),ld=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),qw=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Uw(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),jo(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Ls(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},jo(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Ls(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),bh(e))}),Pz=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Uw(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),jo(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),Ls(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({background:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},jo(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),Ls(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),bh(e))}),Rz=e=>Object.assign(Object.assign({},qw(e)),{borderStyle:"dashed"}),Nz=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},jo(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),ld(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},jo(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),ld(e))}),Tz=e=>Object.assign(Object.assign(Object.assign({},jo(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),ld(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},ld(e)),jo(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBg}))}),Mz=e=>{const{componentCls:t}=e;return{[`${t}-default`]:qw(e),[`${t}-primary`]:Pz(e),[`${t}-dashed`]:Rz(e),[`${t}-link`]:Nz(e),[`${t}-text`]:Tz(e),[`${t}-ghost`]:Ls(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},Ch=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,lineHeight:a,borderRadius:i,buttonPaddingHorizontal:l,iconCls:c,buttonPaddingVertical:u}=e,d=`${n}-icon-only`;return[{[`${t}`]:{fontSize:o,lineHeight:a,height:r,padding:`${H(u)} ${H(l)}`,borderRadius:i,[`&${d}`]:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:r,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},[c]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:Ez(e)},{[`${n}${n}-round${t}`]:Oz(e)}]},_z=e=>{const t=bt(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return Ch(t,e.componentCls)},zz=e=>{const t=bt(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Ch(t,`${e.componentCls}-sm`)},jz=e=>{const t=bt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Ch(t,`${e.componentCls}-lg`)},Lz=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},kz=_t("Button",e=>{const t=Ww(e);return[wz(t),_z(t),zz(t),jz(t),Lz(t),Mz(t),$z(t)]},Gw,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Dz(e,t,n){const{focusElCls:r,focus:o,borderElCls:a}=n,i=a?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map(c=>`&:${c} ${i}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${i}`]:{zIndex:0}})}}function Bz(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Sh(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},Dz(e,r,t)),Bz(n,r,t))}}function Fz(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function Az(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 Hz(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},Fz(e,t)),Az(e.componentCls,t))}}const Vz=e=>{const{componentCls:t,calc:n}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${H(e.lineWidth)} * 2)`,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:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${H(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},Kz=ti(["Button","compact"],e=>{const t=Ww(e);return[Sh(t),Hz(t),Vz(t)]},Gw);var Wz=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,r;const{loading:o=!1,prefixCls:a,type:i,danger:l,shape:c="default",size:u,styles:d,disabled:f,className:m,rootClassName:g,children:y,icon:h,ghost:C=!1,block:p=!1,htmlType:v="button",classNames:b,style:S={}}=e,$=Wz(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),x=i||"default",{getPrefixCls:w,autoInsertSpaceInButton:O,direction:E,button:I}=s.useContext(je),T=w("btn",a),[_,R,M]=kz(T),L=s.useContext(Ao),z=f??L,P=s.useContext(Vw),N=s.useMemo(()=>Gz(o),[o]),[k,j]=s.useState(N.loading),[B,F]=s.useState(!1),X=Br(t,s.createRef()),U=s.Children.count(y)===1&&!h&&!Om(x);s.useEffect(()=>{let me=null;N.delay>0?me=setTimeout(()=>{me=null,j(!0)},N.delay):j(N.loading);function ge(){me&&(clearTimeout(me),me=null)}return ge},[N]),s.useEffect(()=>{if(!X||!X.current||O===!1)return;const me=X.current.textContent;U&&hp(me)?B||F(!0):B&&F(!1)},[X]);const re=me=>{const{onClick:ge}=e;if(k||z){me.preventDefault();return}ge==null||ge(me)},Z=O!==!1,{compactSize:ne,compactItemClassnames:le}=ic(T,E),ee={large:"lg",small:"sm",middle:void 0},q=sr(me=>{var ge,ve;return(ve=(ge=u??ne)!==null&&ge!==void 0?ge:P)!==null&&ve!==void 0?ve:me}),te=q&&ee[q]||"",J=k?"loading":h,W=Kt($,["navigate"]),Y=V(T,R,M,{[`${T}-${c}`]:c!=="default"&&c,[`${T}-${x}`]:x,[`${T}-${te}`]:te,[`${T}-icon-only`]:!y&&y!==0&&!!J,[`${T}-background-ghost`]:C&&!Om(x),[`${T}-loading`]:k,[`${T}-two-chinese-chars`]:B&&Z&&!k,[`${T}-block`]:p,[`${T}-dangerous`]:!!l,[`${T}-rtl`]:E==="rtl"},le,m,g,I==null?void 0:I.className),de=Object.assign(Object.assign({},I==null?void 0:I.style),S),oe=V(b==null?void 0:b.icon,(n=I==null?void 0:I.classNames)===null||n===void 0?void 0:n.icon),se=Object.assign(Object.assign({},(d==null?void 0:d.icon)||{}),((r=I==null?void 0:I.styles)===null||r===void 0?void 0:r.icon)||{}),ae=h&&!k?G.createElement(Kw,{prefixCls:T,className:oe,style:se},h):G.createElement(Sz,{existIcon:!!h,prefixCls:T,loading:!!k}),ie=y||y===0?yz(y,U&&Z):null;if(W.href!==void 0)return _(G.createElement("a",Object.assign({},W,{className:V(Y,{[`${T}-disabled`]:z}),href:z?void 0:W.href,style:de,onClick:re,ref:X,tabIndex:z?-1:0}),ae,ie));let pe=G.createElement("button",Object.assign({},$,{type:v,className:Y,style:de,onClick:re,disabled:z,ref:X}),ae,ie,!!le&&G.createElement(Kz,{key:"compact",prefixCls:T}));return Om(x)||(pe=G.createElement(ac,{component:"Button",disabled:!!k},pe)),_(pe)}),xh=Uz;xh.Group=vz;xh.__ANT_BUTTON=!0;const Lo=xh;function Nb(e){return!!(e&&e.then)}const qz=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:a,autoFocus:i,emitEvent:l,isSilent:c,quitOnNullishReturnValue:u,actionFn:d}=e,f=s.useRef(!1),m=s.useRef(null),[g,y]=da(!1),h=function(){a==null||a.apply(void 0,arguments)};s.useEffect(()=>{let v=null;return i&&(v=setTimeout(()=>{var b;(b=m.current)===null||b===void 0||b.focus()})),()=>{v&&clearTimeout(v)}},[]);const C=v=>{Nb(v)&&(y(!0),v.then(function(){y(!1,!0),h.apply(void 0,arguments),f.current=!1},b=>{if(y(!1,!0),f.current=!1,!(c!=null&&c()))return Promise.reject(b)}))},p=v=>{if(f.current)return;if(f.current=!0,!d){h();return}let b;if(l){if(b=d(v),u&&!Nb(b)){f.current=!1,h(v);return}}else if(d.length)b=d(a),f.current=!1;else if(b=d(),!b){h();return}C(b)};return s.createElement(Lo,Object.assign({},yh(t),{onClick:p,loading:g,prefixCls:r},o,{ref:m}),n)},$h=qz,lc=G.createContext({}),{Provider:Xw}=lc,Xz=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:a,close:i,onCancel:l,onConfirm:c}=s.useContext(lc);return o?G.createElement($h,{isSilent:r,actionFn:l,close:function(){i==null||i.apply(void 0,arguments),c==null||c(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${a}-btn`},n):null},Tb=Xz,Yz=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:a,okType:i,onConfirm:l,onOk:c}=s.useContext(lc);return G.createElement($h,{isSilent:n,type:i||"primary",actionFn:c,close:function(){t==null||t.apply(void 0,arguments),l==null||l(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${o}-btn`},a)},Mb=Yz;var Yw=s.createContext(null),_b=[];function Qz(e,t){var n=s.useState(function(){if(!zn())return null;var y=document.createElement("div");return y}),r=Q(n,1),o=r[0],a=s.useRef(!1),i=s.useContext(Yw),l=s.useState(_b),c=Q(l,2),u=c[0],d=c[1],f=i||(a.current?void 0:function(y){d(function(h){var C=[y].concat(ue(h));return C})});function m(){o.parentElement||document.body.appendChild(o),a.current=!0}function g(){var y;(y=o.parentElement)===null||y===void 0||y.removeChild(o),a.current=!1}return Mt(function(){return e?i?i(m):m():g(),g},[e]),Mt(function(){u.length&&(u.forEach(function(y){return y()}),d(_b))},[u]),[o,f]}var Rm;function Qw(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var o,a;if(e){var i=getComputedStyle(e);r.scrollbarColor=i.scrollbarColor,r.scrollbarWidth=i.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(l.width,10),u=parseInt(l.height,10);try{var d=c?"width: ".concat(l.width,";"):"",f=u?"height: ".concat(l.height,";"):"";Oo(` #`.concat(t,`::-webkit-scrollbar { `).concat(d,` `).concat(f,` -}`),t)}catch(y){console.error(y),o=c,a=u}}document.body.appendChild(n);var m=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,g=e&&a&&!isNaN(a)?a:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Rs(t),{width:m,height:g}}function zb(e){return typeof document>"u"?0:((e||Rm===void 0)&&(Rm=Qw()),Rm.width)}function yp(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:Qw(e)}function Z4(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var J4="rc-util-locker-".concat(Date.now()),jb=0;function ej(e){var t=!!e,n=s.useState(function(){return jb+=1,"".concat(J4,"_").concat(jb)}),r=Q(n,1),o=r[0];Mt(function(){if(t){var a=yp(document.body).width,i=Z4();Oo(` +}`),t)}catch(y){console.error(y),o=c,a=u}}document.body.appendChild(n);var m=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,g=e&&a&&!isNaN(a)?a:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Rs(t),{width:m,height:g}}function zb(e){return typeof document>"u"?0:((e||Rm===void 0)&&(Rm=Qw()),Rm.width)}function yp(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:Qw(e)}function Zz(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Jz="rc-util-locker-".concat(Date.now()),jb=0;function e3(e){var t=!!e,n=s.useState(function(){return jb+=1,"".concat(Jz,"_").concat(jb)}),r=Q(n,1),o=r[0];Mt(function(){if(t){var a=yp(document.body).width,i=Zz();Oo(` html body { overflow-y: hidden; `.concat(i?"width: calc(100% - ".concat(a,"px);"):"",` -}`),o)}else Rs(o);return function(){Rs(o)}},[t,o])}var Lb=!1;function tj(e){return typeof e=="boolean"&&(Lb=e),Lb}var kb=function(t){return t===!1?!1:!zn()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},wh=s.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer;e.debug;var a=e.autoDestroy,i=a===void 0?!0:a,l=e.children,c=s.useState(n),u=Q(c,2),d=u[0],f=u[1],m=d||n;s.useEffect(function(){(i||n)&&f(n)},[n,i]);var g=s.useState(function(){return kb(o)}),y=Q(g,2),h=y[0],C=y[1];s.useEffect(function(){var T=kb(o);C(T??null)});var p=Q4(m&&!h),v=Q(p,2),b=v[0],S=v[1],$=h??b;ej(r&&n&&zn()&&($===b||$===document.body));var x=null;if(l&&to(l)&&t){var w=l;x=w.ref}var O=Sa(x,t);if(!m||!zn()||h===void 0)return null;var E=$===!1||tj(),I=l;return t&&(I=s.cloneElement(l,{ref:O})),s.createElement(Yw.Provider,{value:S},E?I:To.createPortal(I,$))}),Zw=s.createContext({});function nj(){var e=A({},Ed);return e.useId}var Db=0,Bb=nj();const Jw=Bb?function(t){var n=Bb();return t||n}:function(t){var n=s.useState("ssr-id"),r=Q(n,2),o=r[0],a=r[1];return s.useEffect(function(){var i=Db;Db+=1,a("rc_unique_".concat(i))},[]),t||o};function Fb(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function Ab(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var o=e.document;n=o.documentElement[r],typeof n!="number"&&(n=o.body[r])}return n}function rj(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=Ab(o),n.top+=Ab(o,!0),n}const oj=s.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var Hb={width:0,height:0,overflow:"hidden",outline:"none"},aj={outline:"none"},eE=G.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,a=e.title,i=e.ariaId,l=e.footer,c=e.closable,u=e.closeIcon,d=e.onClose,f=e.children,m=e.bodyStyle,g=e.bodyProps,y=e.modalRender,h=e.onMouseDown,C=e.onMouseUp,p=e.holderRef,v=e.visible,b=e.forceRender,S=e.width,$=e.height,x=e.classNames,w=e.styles,O=G.useContext(Zw),E=O.panel,I=Sa(p,E),T=s.useRef(),_=s.useRef(),R=s.useRef();G.useImperativeHandle(t,function(){return{focus:function(){var F;(F=R.current)===null||F===void 0||F.focus()},changeActive:function(F){var K=document,X=K.activeElement;F&&X===_.current?T.current.focus():!F&&X===T.current&&_.current.focus()}}});var M={};S!==void 0&&(M.width=S),$!==void 0&&(M.height=$);var L;l&&(L=G.createElement("div",{className:V("".concat(n,"-footer"),x==null?void 0:x.footer),style:A({},w==null?void 0:w.footer)},l));var z;a&&(z=G.createElement("div",{className:V("".concat(n,"-header"),x==null?void 0:x.header),style:A({},w==null?void 0:w.header)},G.createElement("div",{className:"".concat(n,"-title"),id:i},a)));var P=s.useMemo(function(){return at(c)==="object"&&c!==null?c:c?{closeIcon:u??G.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[c,u]),N=qn(P,!0),k;c&&(k=G.createElement("button",ce({type:"button",onClick:d,"aria-label":"Close"},N,{className:"".concat(n,"-close")}),P.closeIcon));var j=G.createElement("div",{className:V("".concat(n,"-content"),x==null?void 0:x.content),style:w==null?void 0:w.content},k,z,G.createElement("div",ce({className:V("".concat(n,"-body"),x==null?void 0:x.body),style:A(A({},m),w==null?void 0:w.body)},g),f),L);return G.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":a?i:null,"aria-modal":"true",ref:I,style:A(A({},o),M),className:V(n,r),onMouseDown:h,onMouseUp:C},G.createElement("div",{tabIndex:0,ref:T,style:Hb,"aria-hidden":"true"}),G.createElement("div",{ref:R,tabIndex:-1,style:aj},G.createElement(oj,{shouldUpdate:v||b},y?y(j):j)),G.createElement("div",{tabIndex:0,ref:_,style:Hb,"aria-hidden":"true"}))}),tE=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,o=e.style,a=e.className,i=e.visible,l=e.forceRender,c=e.destroyOnClose,u=e.motionName,d=e.ariaId,f=e.onVisibleChanged,m=e.mousePosition,g=s.useRef(),y=s.useState(),h=Q(y,2),C=h[0],p=h[1],v={};C&&(v.transformOrigin=C);function b(){var S=rj(g.current);p(m?"".concat(m.x-S.left,"px ").concat(m.y-S.top,"px"):"")}return s.createElement(ro,{visible:i,onVisibleChanged:f,onAppearPrepare:b,onEnterPrepare:b,forceRender:l,motionName:u,removeOnLeave:c,ref:g},function(S,$){var x=S.className,w=S.style;return s.createElement(eE,ce({},e,{ref:t,title:r,ariaId:d,prefixCls:n,holderRef:$,style:A(A(A({},w),o),v),className:V(a,x)}))})});tE.displayName="Content";function ij(e){var t=e.prefixCls,n=e.style,r=e.visible,o=e.maskProps,a=e.motionName,i=e.className;return s.createElement(ro,{key:"mask",visible:r,motionName:a,leavedClassName:"".concat(t,"-mask-hidden")},function(l,c){var u=l.className,d=l.style;return s.createElement("div",ce({ref:c,style:A(A({},d),n),className:V("".concat(t,"-mask"),u,i)},o))})}function lj(e){var t=e.prefixCls,n=t===void 0?"rc-dialog":t,r=e.zIndex,o=e.visible,a=o===void 0?!1:o,i=e.keyboard,l=i===void 0?!0:i,c=e.focusTriggerAfterClose,u=c===void 0?!0:c,d=e.wrapStyle,f=e.wrapClassName,m=e.wrapProps,g=e.onClose,y=e.afterOpenChange,h=e.afterClose,C=e.transitionName,p=e.animation,v=e.closable,b=v===void 0?!0:v,S=e.mask,$=S===void 0?!0:S,x=e.maskTransitionName,w=e.maskAnimation,O=e.maskClosable,E=O===void 0?!0:O,I=e.maskStyle,T=e.maskProps,_=e.rootClassName,R=e.classNames,M=e.styles,L=s.useRef(),z=s.useRef(),P=s.useRef(),N=s.useState(a),k=Q(N,2),j=k[0],B=k[1],F=Jw();function K(){qg(z.current,document.activeElement)||(L.current=document.activeElement)}function X(){if(!qg(z.current,document.activeElement)){var J;(J=P.current)===null||J===void 0||J.focus()}}function U(J){if(J)X();else{if(B(!1),$&&L.current&&u){try{L.current.focus({preventScroll:!0})}catch{}L.current=null}j&&(h==null||h())}y==null||y(J)}function re(J){g==null||g(J)}var Z=s.useRef(!1),ne=s.useRef(),le=function(){clearTimeout(ne.current),Z.current=!0},ee=function(){ne.current=setTimeout(function(){Z.current=!1})},q=null;E&&(q=function(W){Z.current?Z.current=!1:z.current===W.target&&re(W)});function te(J){if(l&&J.keyCode===fe.ESC){J.stopPropagation(),re(J);return}a&&J.keyCode===fe.TAB&&P.current.changeActive(!J.shiftKey)}return s.useEffect(function(){a&&(B(!0),K())},[a]),s.useEffect(function(){return function(){clearTimeout(ne.current)}},[]),s.createElement("div",ce({className:V("".concat(n,"-root"),_)},qn(e,{data:!0})),s.createElement(ij,{prefixCls:n,visible:$&&a,motionName:Fb(n,x,w),style:A(A({zIndex:r},I),M==null?void 0:M.mask),maskProps:T,className:R==null?void 0:R.mask}),s.createElement("div",ce({tabIndex:-1,onKeyDown:te,className:V("".concat(n,"-wrap"),f,R==null?void 0:R.wrapper),ref:z,onClick:q,style:A(A(A({zIndex:r},d),M==null?void 0:M.wrapper),{},{display:j?null:"none"})},m),s.createElement(tE,ce({},e,{onMouseDown:le,onMouseUp:ee,ref:P,closable:b,ariaId:F,prefixCls:n,visible:a&&j,onClose:re,onVisibleChanged:U,motionName:Fb(n,C,p)}))))}var nE=function(t){var n=t.visible,r=t.getContainer,o=t.forceRender,a=t.destroyOnClose,i=a===void 0?!1:a,l=t.afterClose,c=t.panelRef,u=s.useState(n),d=Q(u,2),f=d[0],m=d[1],g=s.useMemo(function(){return{panel:c}},[c]);return s.useEffect(function(){n&&m(!0)},[n]),!o&&i&&!f?null:s.createElement(Zw.Provider,{value:g},s.createElement(wh,{open:n||o||f,autoDestroy:!1,getContainer:r,autoLock:n||f},s.createElement(lj,ce({},t,{destroyOnClose:i,afterClose:function(){l==null||l(),m(!1)}}))))};nE.displayName="Dialog";function sd(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function Vb(e){const{closable:t,closeIcon:n}=e||{};return G.useMemo(()=>{if(!t&&(t===!1||n===!1||n===null))return!1;if(t===void 0&&n===void 0)return null;let r={closeIcon:typeof n!="boolean"&&n!==null?n:void 0};return t&&typeof t=="object"&&(r=Object.assign(Object.assign({},r),t)),r},[t,n])}function Kb(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r{o&&Object.keys(o).forEach(a=>{o[a]!==void 0&&(e[a]=o[a])})}),e}const sj={};function rE(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:sj;const r=Vb(e),o=Vb(t),a=G.useMemo(()=>Object.assign({closeIcon:G.createElement(ni,null)},n),[n]),i=G.useMemo(()=>r===!1?!1:r?Kb(a,o,r):o===!1?!1:o?Kb(a,o):a.closable?a:!1,[r,o,a]);return G.useMemo(()=>{if(i===!1)return[!1,null];const{closeIconRender:l}=a,{closeIcon:c}=i;let u=c;if(u!=null){l&&(u=l(c));const d=qn(i,!0);Object.keys(d).length&&(u=G.isValidElement(u)?G.cloneElement(u,d):G.createElement("span",Object.assign({},d),u))}return[!0,u]},[i,a])}var oE=function(t){if(zn()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(o){return o in r.style})}return!1},cj=function(t,n){if(!oE(t))return!1;var r=document.createElement("div"),o=r.style[t];return r.style[t]=n,r.style[t]!==o};function uj(e,t){return!Array.isArray(e)&&t!==void 0?cj(e,t):oE(e)}const dj=()=>zn()&&window.document.documentElement;var za="RC_FORM_INTERNAL_HOOKS",kt=function(){Zt(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Ua=s.createContext({getFieldValue:kt,getFieldsValue:kt,getFieldError:kt,getFieldWarning:kt,getFieldsError:kt,isFieldsTouched:kt,isFieldTouched:kt,isFieldValidating:kt,isFieldsValidating:kt,resetFields:kt,setFields:kt,setFieldValue:kt,setFieldsValue:kt,validateFields:kt,submit:kt,getInternalHooks:function(){return kt(),{dispatch:kt,initEntityValue:kt,registerField:kt,useSubscribe:kt,setInitialValues:kt,destroyForm:kt,setCallbacks:kt,registerWatch:kt,getFields:kt,setValidateMessages:kt,setPreserve:kt,getInitialValue:kt}}}),ks=s.createContext(null);function bp(e){return e==null?[]:Array.isArray(e)?e:[e]}function fj(e){return e&&!!e._init}function ja(){return ja=Object.assign?Object.assign.bind():function(e){for(var t=1;t"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 Cu(e,t,n){return gj()?Cu=Reflect.construct.bind():Cu=function(o,a,i){var l=[null];l.push.apply(l,a);var c=Function.bind.apply(o,l),u=new c;return i&&Ds(u,i.prototype),u},Cu.apply(null,arguments)}function pj(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Sp(e){var t=typeof Map=="function"?new Map:void 0;return Sp=function(r){if(r===null||!pj(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return Cu(r,arguments,Cp(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Ds(o,r)},Sp(e)}var vj=/%[sdj%]/g,hj=function(){};typeof process<"u"&&process.env;function xp(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function Cr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=a)return l;switch(l){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return l}});return i}return e}function yj(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function $n(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||yj(t)&&typeof e=="string"&&!e)}function bj(e,t,n){var r=[],o=0,a=e.length;function i(l){r.push.apply(r,l||[]),o++,o===a&&n(r)}e.forEach(function(l){t(l,i)})}function Wb(e,t,n){var r=0,o=e.length;function a(i){if(i&&i.length){n(i);return}var l=r;r=r+1,l{if(!t&&(t===!1||n===!1||n===null))return!1;if(t===void 0&&n===void 0)return null;let r={closeIcon:typeof n!="boolean"&&n!==null?n:void 0};return t&&typeof t=="object"&&(r=Object.assign(Object.assign({},r),t)),r},[t,n])}function Kb(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r{o&&Object.keys(o).forEach(a=>{o[a]!==void 0&&(e[a]=o[a])})}),e}const s3={};function rE(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:s3;const r=Vb(e),o=Vb(t),a=G.useMemo(()=>Object.assign({closeIcon:G.createElement(ni,null)},n),[n]),i=G.useMemo(()=>r===!1?!1:r?Kb(a,o,r):o===!1?!1:o?Kb(a,o):a.closable?a:!1,[r,o,a]);return G.useMemo(()=>{if(i===!1)return[!1,null];const{closeIconRender:l}=a,{closeIcon:c}=i;let u=c;if(u!=null){l&&(u=l(c));const d=qn(i,!0);Object.keys(d).length&&(u=G.isValidElement(u)?G.cloneElement(u,d):G.createElement("span",Object.assign({},d),u))}return[!0,u]},[i,a])}var oE=function(t){if(zn()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(o){return o in r.style})}return!1},c3=function(t,n){if(!oE(t))return!1;var r=document.createElement("div"),o=r.style[t];return r.style[t]=n,r.style[t]!==o};function u3(e,t){return!Array.isArray(e)&&t!==void 0?c3(e,t):oE(e)}const d3=()=>zn()&&window.document.documentElement;var za="RC_FORM_INTERNAL_HOOKS",kt=function(){Zt(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Ua=s.createContext({getFieldValue:kt,getFieldsValue:kt,getFieldError:kt,getFieldWarning:kt,getFieldsError:kt,isFieldsTouched:kt,isFieldTouched:kt,isFieldValidating:kt,isFieldsValidating:kt,resetFields:kt,setFields:kt,setFieldValue:kt,setFieldsValue:kt,validateFields:kt,submit:kt,getInternalHooks:function(){return kt(),{dispatch:kt,initEntityValue:kt,registerField:kt,useSubscribe:kt,setInitialValues:kt,destroyForm:kt,setCallbacks:kt,registerWatch:kt,getFields:kt,setValidateMessages:kt,setPreserve:kt,getInitialValue:kt}}}),ks=s.createContext(null);function bp(e){return e==null?[]:Array.isArray(e)?e:[e]}function f3(e){return e&&!!e._init}function ja(){return ja=Object.assign?Object.assign.bind():function(e){for(var t=1;t"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 Cu(e,t,n){return g3()?Cu=Reflect.construct.bind():Cu=function(o,a,i){var l=[null];l.push.apply(l,a);var c=Function.bind.apply(o,l),u=new c;return i&&Ds(u,i.prototype),u},Cu.apply(null,arguments)}function p3(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Sp(e){var t=typeof Map=="function"?new Map:void 0;return Sp=function(r){if(r===null||!p3(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return Cu(r,arguments,Cp(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Ds(o,r)},Sp(e)}var v3=/%[sdj%]/g,h3=function(){};typeof process<"u"&&process.env;function xp(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function Cr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=a)return l;switch(l){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return l}});return i}return e}function y3(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function $n(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||y3(t)&&typeof e=="string"&&!e)}function b3(e,t,n){var r=[],o=0,a=e.length;function i(l){r.push.apply(r,l||[]),o++,o===a&&n(r)}e.forEach(function(l){t(l,i)})}function Wb(e,t,n){var r=0,o=e.length;function a(i){if(i&&i.length){n(i);return}var l=r;r=r+1,l()\[\]\\.,;:\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},Wl={integer:function(t){return Wl.number(t)&&parseInt(t,10)===t},float:function(t){return Wl.number(t)&&!Wl.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"&&!Wl.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Xb.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Ej())},hex:function(t){return typeof t=="string"&&!!t.match(Xb.hex)}},Oj=function(t,n,r,o,a){if(t.required&&n===void 0){aE(t,n,r,o,a);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;i.indexOf(l)>-1?Wl[l](n)||o.push(Cr(a.messages.types[l],t.fullField,t.type)):l&&typeof n!==t.type&&o.push(Cr(a.messages.types[l],t.fullField,t.type))},Ij=function(t,n,r,o,a){var i=typeof t.len=="number",l=typeof t.min=="number",c=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,f=null,m=typeof n=="number",g=typeof n=="string",y=Array.isArray(n);if(m?f="number":g?f="string":y&&(f="array"),!f)return!1;y&&(d=n.length),g&&(d=n.replace(u,"_").length),i?d!==t.len&&o.push(Cr(a.messages[f].len,t.fullField,t.len)):l&&!c&&dt.max?o.push(Cr(a.messages[f].max,t.fullField,t.max)):l&&c&&(dt.max)&&o.push(Cr(a.messages[f].range,t.fullField,t.min,t.max))},si="enum",Pj=function(t,n,r,o,a){t[si]=Array.isArray(t[si])?t[si]:[],t[si].indexOf(n)===-1&&o.push(Cr(a.messages[si],t.fullField,t[si].join(", ")))},Rj=function(t,n,r,o,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(Cr(a.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(n)||o.push(Cr(a.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},$t={required:aE,whitespace:wj,type:Oj,range:Ij,enum:Pj,pattern:Rj},Nj=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if($n(n,"string")&&!t.required)return r();$t.required(t,n,o,i,a,"string"),$n(n,"string")||($t.type(t,n,o,i,a),$t.range(t,n,o,i,a),$t.pattern(t,n,o,i,a),t.whitespace===!0&&$t.whitespace(t,n,o,i,a))}r(i)},Tj=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if($n(n)&&!t.required)return r();$t.required(t,n,o,i,a),n!==void 0&&$t.type(t,n,o,i,a)}r(i)},Mj=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),$n(n)&&!t.required)return r();$t.required(t,n,o,i,a),n!==void 0&&($t.type(t,n,o,i,a),$t.range(t,n,o,i,a))}r(i)},_j=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if($n(n)&&!t.required)return r();$t.required(t,n,o,i,a),n!==void 0&&$t.type(t,n,o,i,a)}r(i)},zj=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if($n(n)&&!t.required)return r();$t.required(t,n,o,i,a),$n(n)||$t.type(t,n,o,i,a)}r(i)},jj=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if($n(n)&&!t.required)return r();$t.required(t,n,o,i,a),n!==void 0&&($t.type(t,n,o,i,a),$t.range(t,n,o,i,a))}r(i)},Lj=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if($n(n)&&!t.required)return r();$t.required(t,n,o,i,a),n!==void 0&&($t.type(t,n,o,i,a),$t.range(t,n,o,i,a))}r(i)},kj=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return r();$t.required(t,n,o,i,a,"array"),n!=null&&($t.type(t,n,o,i,a),$t.range(t,n,o,i,a))}r(i)},Dj=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if($n(n)&&!t.required)return r();$t.required(t,n,o,i,a),n!==void 0&&$t.type(t,n,o,i,a)}r(i)},Bj="enum",Fj=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if($n(n)&&!t.required)return r();$t.required(t,n,o,i,a),n!==void 0&&$t[Bj](t,n,o,i,a)}r(i)},Aj=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if($n(n,"string")&&!t.required)return r();$t.required(t,n,o,i,a),$n(n,"string")||$t.pattern(t,n,o,i,a)}r(i)},Hj=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if($n(n,"date")&&!t.required)return r();if($t.required(t,n,o,i,a),!$n(n,"date")){var c;n instanceof Date?c=n:c=new Date(n),$t.type(t,c,o,i,a),c&&$t.range(t,c.getTime(),o,i,a)}}r(i)},Vj=function(t,n,r,o,a){var i=[],l=Array.isArray(n)?"array":typeof n;$t.required(t,n,o,i,a,l),r(i)},Nm=function(t,n,r,o,a){var i=t.type,l=[],c=t.required||!t.required&&o.hasOwnProperty(t.field);if(c){if($n(n,i)&&!t.required)return r();$t.required(t,n,o,l,a,i),$n(n,i)||$t.type(t,n,o,l,a)}r(l)},Kj=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if($n(n)&&!t.required)return r();$t.required(t,n,o,i,a)}r(i)},is={string:Nj,method:Tj,number:Mj,boolean:_j,regexp:zj,integer:jj,float:Lj,array:kj,object:Dj,enum:Fj,pattern:Aj,date:Hj,url:Nm,hex:Nm,email:Nm,required:Vj,any:Kj};function $p(){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 wp=$p(),sc=function(){function e(n){this.rules=null,this._messages=wp,this.define(n)}var t=e.prototype;return t.define=function(r){var o=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(a){var i=r[a];o.rules[a]=Array.isArray(i)?i:[i]})},t.messages=function(r){return r&&(this._messages=qb($p(),r)),this._messages},t.validate=function(r,o,a){var i=this;o===void 0&&(o={}),a===void 0&&(a=function(){});var l=r,c=o,u=a;if(typeof c=="function"&&(u=c,c={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,l),Promise.resolve(l);function d(h){var C=[],p={};function v(S){if(Array.isArray(S)){var $;C=($=C).concat.apply($,S)}else C.push(S)}for(var b=0;b2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return lE(t,r,n)})}function lE(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,o){return e[o]===r})}function Xj(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||at(e)!=="object"||at(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return ue(o).every(function(a){var i=e[a],l=t[a];return typeof i=="function"&&typeof l=="function"?!0:i===l})}function Yj(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&at(t.target)==="object"&&e in t.target?t.target[e]:t}function Jb(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],a=t-n;return a>0?[].concat(ue(e.slice(0,n)),[o],ue(e.slice(n,t)),ue(e.slice(t+1,r))):a<0?[].concat(ue(e.slice(0,t)),ue(e.slice(t+1,n+1)),[o],ue(e.slice(n+1,r))):e}var Qj=["name"],Ir=[];function eC(e,t,n,r,o,a){return typeof e=="function"?e(t,n,"source"in a?{source:a.source}:{}):r!==o}var Eh=function(e){Bo(n,e);var t=Ja(n);function n(r){var o;if(jn(this,n),o=t.call(this,r),D(he(o),"state",{resetCount:0}),D(he(o),"cancelRegisterFunc",null),D(he(o),"mounted",!1),D(he(o),"touched",!1),D(he(o),"dirty",!1),D(he(o),"validatePromise",void 0),D(he(o),"prevValidating",void 0),D(he(o),"errors",Ir),D(he(o),"warnings",Ir),D(he(o),"cancelRegister",function(){var c=o.props,u=c.preserve,d=c.isListField,f=c.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(d,u,dn(f)),o.cancelRegisterFunc=null}),D(he(o),"getNamePath",function(){var c=o.props,u=c.name,d=c.fieldContext,f=d.prefixName,m=f===void 0?[]:f;return u!==void 0?[].concat(ue(m),ue(u)):[]}),D(he(o),"getRules",function(){var c=o.props,u=c.rules,d=u===void 0?[]:u,f=c.fieldContext;return d.map(function(m){return typeof m=="function"?m(f):m})}),D(he(o),"refresh",function(){o.mounted&&o.setState(function(c){var u=c.resetCount;return{resetCount:u+1}})}),D(he(o),"metaCache",null),D(he(o),"triggerMetaEvent",function(c){var u=o.props.onMetaChange;if(u){var d=A(A({},o.getMeta()),{},{destroy:c});mo(o.metaCache,d)||u(d),o.metaCache=d}else o.metaCache=null}),D(he(o),"onStoreChange",function(c,u,d){var f=o.props,m=f.shouldUpdate,g=f.dependencies,y=g===void 0?[]:g,h=f.onReset,C=d.store,p=o.getNamePath(),v=o.getValue(c),b=o.getValue(C),S=u&&Vi(u,p);switch(d.type==="valueUpdate"&&d.source==="external"&&!mo(v,b)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=Ir,o.warnings=Ir,o.triggerMetaEvent()),d.type){case"reset":if(!u||S){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=Ir,o.warnings=Ir,o.triggerMetaEvent(),h==null||h(),o.refresh();return}break;case"remove":{if(m){o.reRender();return}break}case"setField":{var $=d.data;if(S){"touched"in $&&(o.touched=$.touched),"validating"in $&&!("originRCField"in $)&&(o.validatePromise=$.validating?Promise.resolve([]):null),"errors"in $&&(o.errors=$.errors||Ir),"warnings"in $&&(o.warnings=$.warnings||Ir),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in $&&Vi(u,p,!0)){o.reRender();return}if(m&&!p.length&&eC(m,c,C,v,b,d)){o.reRender();return}break}case"dependenciesUpdate":{var x=y.map(dn);if(x.some(function(w){return Vi(d.relatedFields,w)})){o.reRender();return}break}default:if(S||(!y.length||p.length||m)&&eC(m,c,C,v,b,d)){o.reRender();return}break}m===!0&&o.reRender()}),D(he(o),"validateRules",function(c){var u=o.getNamePath(),d=o.getValue(),f=c||{},m=f.triggerName,g=f.validateOnly,y=g===void 0?!1:g,h=Promise.resolve().then(ri(Yn().mark(function C(){var p,v,b,S,$,x,w;return Yn().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(o.mounted){E.next=2;break}return E.abrupt("return",[]);case 2:if(p=o.props,v=p.validateFirst,b=v===void 0?!1:v,S=p.messageVariables,$=p.validateDebounce,x=o.getRules(),m&&(x=x.filter(function(I){return I}).filter(function(I){var T=I.validateTrigger;if(!T)return!0;var _=bp(T);return _.includes(m)})),!($&&m)){E.next=10;break}return E.next=8,new Promise(function(I){setTimeout(I,$)});case 8:if(o.validatePromise===h){E.next=10;break}return E.abrupt("return",[]);case 10:return w=Gj(u,d,x,c,b,S),w.catch(function(I){return I}).then(function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ir;if(o.validatePromise===h){var T;o.validatePromise=null;var _=[],R=[];(T=I.forEach)===null||T===void 0||T.call(I,function(M){var L=M.rule.warningOnly,z=M.errors,P=z===void 0?Ir:z;L?R.push.apply(R,ue(P)):_.push.apply(_,ue(P))}),o.errors=_,o.warnings=R,o.triggerMetaEvent(),o.reRender()}}),E.abrupt("return",w);case 13:case"end":return E.stop()}},C)})));return y||(o.validatePromise=h,o.dirty=!0,o.errors=Ir,o.warnings=Ir,o.triggerMetaEvent(),o.reRender()),h}),D(he(o),"isFieldValidating",function(){return!!o.validatePromise}),D(he(o),"isFieldTouched",function(){return o.touched}),D(he(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var c=o.props.fieldContext,u=c.getInternalHooks(za),d=u.getInitialValue;return d(o.getNamePath())!==void 0}),D(he(o),"getErrors",function(){return o.errors}),D(he(o),"getWarnings",function(){return o.warnings}),D(he(o),"isListField",function(){return o.props.isListField}),D(he(o),"isList",function(){return o.props.isList}),D(he(o),"isPreserve",function(){return o.props.preserve}),D(he(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var c={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return c}),D(he(o),"getOnlyChild",function(c){if(typeof c=="function"){var u=o.getMeta();return A(A({},o.getOnlyChild(c(o.getControlled(),u,o.props.fieldContext))),{},{isFunction:!0})}var d=lr(c);return d.length!==1||!s.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),D(he(o),"getValue",function(c){var u=o.props.fieldContext.getFieldsValue,d=o.getNamePath();return br(c||u(!0),d)}),D(he(o),"getControlled",function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=o.props,d=u.name,f=u.trigger,m=u.validateTrigger,g=u.getValueFromEvent,y=u.normalize,h=u.valuePropName,C=u.getValueProps,p=u.fieldContext,v=m!==void 0?m:p.validateTrigger,b=o.getNamePath(),S=p.getInternalHooks,$=p.getFieldsValue,x=S(za),w=x.dispatch,O=o.getValue(),E=C||function(M){return D({},h,M)},I=c[f],T=d!==void 0?E(O):{},_=A(A({},c),T);_[f]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var M,L=arguments.length,z=new Array(L),P=0;P=0&&I<=T.length?(d.keys=[].concat(ue(d.keys.slice(0,I)),[d.id],ue(d.keys.slice(I))),b([].concat(ue(T.slice(0,I)),[E],ue(T.slice(I))))):(d.keys=[].concat(ue(d.keys),[d.id]),b([].concat(ue(T),[E]))),d.id+=1},remove:function(E){var I=$(),T=new Set(Array.isArray(E)?E:[E]);T.size<=0||(d.keys=d.keys.filter(function(_,R){return!T.has(R)}),b(I.filter(function(_,R){return!T.has(R)})))},move:function(E,I){if(E!==I){var T=$();E<0||E>=T.length||I<0||I>=T.length||(d.keys=Jb(d.keys,E,I),b(Jb(T,E,I)))}}},w=v||[];return Array.isArray(w)||(w=[]),r(w.map(function(O,E){var I=d.keys[E];return I===void 0&&(d.keys[E]=d.id,I=d.keys[E],d.id+=1),{name:E,key:I,isListField:!0}}),x,C)})))}function Zj(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,a){e.forEach(function(i,l){i.catch(function(c){return t=!0,c}).then(function(c){n-=1,r[l]=c,!(n>0)&&(t&&a(r),o(r))})})}):Promise.resolve([])}var cE="__@field_split__";function Tm(e){return e.map(function(t){return"".concat(at(t),":").concat(t)}).join(cE)}var ci=function(){function e(){jn(this,e),D(this,"kvs",new Map)}return Ln(e,[{key:"set",value:function(n,r){this.kvs.set(Tm(n),r)}},{key:"get",value:function(n){return this.kvs.get(Tm(n))}},{key:"update",value:function(n,r){var o=this.get(n),a=r(o);a?this.set(n,a):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(Tm(n))}},{key:"map",value:function(n){return ue(this.kvs.entries()).map(function(r){var o=Q(r,2),a=o[0],i=o[1],l=a.split(cE);return n({key:l.map(function(c){var u=c.match(/^([^:]*):(.*)$/),d=Q(u,3),f=d[1],m=d[2];return f==="number"?Number(m):m}),value:i})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,a=r.value;return n[o.join(".")]=a,null}),n}}]),e}(),Jj=["name"],eL=Ln(function e(t){var n=this;jn(this,e),D(this,"formHooked",!1),D(this,"forceRootUpdate",void 0),D(this,"subscribable",!0),D(this,"store",{}),D(this,"fieldEntities",[]),D(this,"initialValues",{}),D(this,"callbacks",{}),D(this,"validateMessages",null),D(this,"preserve",null),D(this,"lastValidatePromise",null),D(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),D(this,"getInternalHooks",function(r){return r===za?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(Zt(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),D(this,"useSubscribe",function(r){n.subscribable=r}),D(this,"prevWithoutPreserves",null),D(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var a,i=_i(r,n.store);(a=n.prevWithoutPreserves)===null||a===void 0||a.map(function(l){var c=l.key;i=Gr(i,c,br(r,c))}),n.prevWithoutPreserves=null,n.updateStore(i)}}),D(this,"destroyForm",function(){var r=new ci;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||r.set(o.getNamePath(),!0)}),n.prevWithoutPreserves=r}),D(this,"getInitialValue",function(r){var o=br(n.initialValues,r);return r.length?_i(o):o}),D(this,"setCallbacks",function(r){n.callbacks=r}),D(this,"setValidateMessages",function(r){n.validateMessages=r}),D(this,"setPreserve",function(r){n.preserve=r}),D(this,"watchList",[]),D(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r})}}),D(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue(),a=n.getFieldsValue(!0);n.watchList.forEach(function(i){i(o,a,r)})}}),D(this,"timeoutId",null),D(this,"warningUnhooked",function(){}),D(this,"updateStore",function(r){n.store=r}),D(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(o){return o.getNamePath().length}):n.fieldEntities}),D(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new ci;return n.getFieldEntities(r).forEach(function(a){var i=a.getNamePath();o.set(i,a)}),o}),D(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(a){var i=dn(a);return o.get(i)||{INVALIDATE_NAME_PATH:dn(a)}})}),D(this,"getFieldsValue",function(r,o){n.warningUnhooked();var a,i,l;if(r===!0||Array.isArray(r)?(a=r,i=o):r&&at(r)==="object"&&(l=r.strict,i=r.filter),a===!0&&!i)return n.store;var c=n.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null),u=[];return c.forEach(function(d){var f,m,g="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(l){var y,h;if((y=(h=d).isList)!==null&&y!==void 0&&y.call(h))return}else if(!a&&(f=(m=d).isListField)!==null&&f!==void 0&&f.call(m))return;if(!i)u.push(g);else{var C="getMeta"in d?d.getMeta():null;i(C)&&u.push(g)}}),Zb(n.store,u.map(dn))}),D(this,"getFieldValue",function(r){n.warningUnhooked();var o=dn(r);return br(n.store,o)}),D(this,"getFieldsError",function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(a,i){return a&&!("INVALIDATE_NAME_PATH"in a)?{name:a.getNamePath(),errors:a.getErrors(),warnings:a.getWarnings()}:{name:dn(r[i]),errors:[],warnings:[]}})}),D(this,"getFieldError",function(r){n.warningUnhooked();var o=dn(r),a=n.getFieldsError([o])[0];return a.errors}),D(this,"getFieldWarning",function(r){n.warningUnhooked();var o=dn(r),a=n.getFieldsError([o])[0];return a.warnings}),D(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),a=0;a0&&arguments[0]!==void 0?arguments[0]:{},o=new ci,a=n.getFieldEntities(!0);a.forEach(function(c){var u=c.props.initialValue,d=c.getNamePath();if(u!==void 0){var f=o.get(d)||new Set;f.add({entity:c,value:u}),o.set(d,f)}});var i=function(u){u.forEach(function(d){var f=d.props.initialValue;if(f!==void 0){var m=d.getNamePath(),g=n.getInitialValue(m);if(g!==void 0)Zt(!1,"Form already set 'initialValues' with path '".concat(m.join("."),"'. Field can not overwrite it."));else{var y=o.get(m);if(y&&y.size>1)Zt(!1,"Multiple Field with path '".concat(m.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(y){var h=n.getFieldValue(m),C=d.isListField();!C&&(!r.skipExist||h===void 0)&&n.updateStore(Gr(n.store,m,ue(y)[0].value))}}}})},l;r.entities?l=r.entities:r.namePathList?(l=[],r.namePathList.forEach(function(c){var u=o.get(c);if(u){var d;(d=l).push.apply(d,ue(ue(u).map(function(f){return f.entity})))}})):l=a,i(l)}),D(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(_i(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var a=r.map(dn);a.forEach(function(i){var l=n.getInitialValue(i);n.updateStore(Gr(n.store,i,l))}),n.resetWithFieldInitialValue({namePathList:a}),n.notifyObservers(o,a,{type:"reset"}),n.notifyWatch(a)}),D(this,"setFields",function(r){n.warningUnhooked();var o=n.store,a=[];r.forEach(function(i){var l=i.name,c=tt(i,Jj),u=dn(l);a.push(u),"value"in c&&n.updateStore(Gr(n.store,u,c.value)),n.notifyObservers(o,[u],{type:"setField",data:i})}),n.notifyWatch(a)}),D(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(a){var i=a.getNamePath(),l=a.getMeta(),c=A(A({},l),{},{name:i,value:n.getFieldValue(i)});return Object.defineProperty(c,"originRCField",{value:!0}),c});return o}),D(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var a=r.getNamePath(),i=br(n.store,a);i===void 0&&n.updateStore(Gr(n.store,a,o))}}),D(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o??!0}),D(this,"registerField",function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var a=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(a,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(i,l){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(l)&&(!i||c.length>1)){var u=i?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==u&&n.fieldEntities.every(function(f){return!lE(f.getNamePath(),o)})){var d=n.store;n.updateStore(Gr(d,o,u,!0)),n.notifyObservers(d,[o],{type:"remove"}),n.triggerDependenciesUpdate(d,o)}}n.notifyWatch([o])}}),D(this,"dispatch",function(r){switch(r.type){case"updateValue":{var o=r.namePath,a=r.value;n.updateValue(o,a);break}case"validateField":{var i=r.namePath,l=r.triggerName;n.validateFields([i],{triggerName:l});break}}}),D(this,"notifyObservers",function(r,o,a){if(n.subscribable){var i=A(A({},a),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(l){var c=l.onStoreChange;c(r,o,i)})}else n.forceRootUpdate()}),D(this,"triggerDependenciesUpdate",function(r,o){var a=n.getDependencyChildrenFields(o);return a.length&&n.validateFields(a),n.notifyObservers(r,a,{type:"dependenciesUpdate",relatedFields:[o].concat(ue(a))}),a}),D(this,"updateValue",function(r,o){var a=dn(r),i=n.store;n.updateStore(Gr(n.store,a,o)),n.notifyObservers(i,[a],{type:"valueUpdate",source:"internal"}),n.notifyWatch([a]);var l=n.triggerDependenciesUpdate(i,a),c=n.callbacks.onValuesChange;if(c){var u=Zb(n.store,[a]);c(u,n.getFieldsValue())}n.triggerOnFieldsChange([a].concat(ue(l)))}),D(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var a=_i(n.store,r);n.updateStore(a)}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),D(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o}])}),D(this,"getDependencyChildrenFields",function(r){var o=new Set,a=[],i=new ci;n.getFieldEntities().forEach(function(c){var u=c.props.dependencies;(u||[]).forEach(function(d){var f=dn(d);i.update(f,function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return m.add(c),m})})});var l=function c(u){var d=i.get(u)||new Set;d.forEach(function(f){if(!o.has(f)){o.add(f);var m=f.getNamePath();f.isFieldDirty()&&m.length&&(a.push(m),c(m))}})};return l(r),a}),D(this,"triggerOnFieldsChange",function(r,o){var a=n.callbacks.onFieldsChange;if(a){var i=n.getFields();if(o){var l=new ci;o.forEach(function(u){var d=u.name,f=u.errors;l.set(d,f)}),i.forEach(function(u){u.errors=l.get(u.name)||u.errors})}var c=i.filter(function(u){var d=u.name;return Vi(r,d)});c.length&&a(c,i)}}),D(this,"validateFields",function(r,o){n.warningUnhooked();var a,i;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(a=r,i=o):i=r;var l=!!a,c=l?a.map(dn):[],u=[],d=String(Date.now()),f=new Set,m=i||{},g=m.recursive,y=m.dirty;n.getFieldEntities(!0).forEach(function(v){if(l||c.push(v.getNamePath()),!(!v.props.rules||!v.props.rules.length)&&!(y&&!v.isFieldDirty())){var b=v.getNamePath();if(f.add(b.join(d)),!l||Vi(c,b,g)){var S=v.validateRules(A({validateMessages:A(A({},iE),n.validateMessages)},i));u.push(S.then(function(){return{name:b,errors:[],warnings:[]}}).catch(function($){var x,w=[],O=[];return(x=$.forEach)===null||x===void 0||x.call($,function(E){var I=E.rule.warningOnly,T=E.errors;I?O.push.apply(O,ue(T)):w.push.apply(w,ue(T))}),w.length?Promise.reject({name:b,errors:w,warnings:O}):{name:b,errors:w,warnings:O}}))}}});var h=Zj(u);n.lastValidatePromise=h,h.catch(function(v){return v}).then(function(v){var b=v.map(function(S){var $=S.name;return $});n.notifyObservers(n.store,b,{type:"validateFinish"}),n.triggerOnFieldsChange(b,v)});var C=h.then(function(){return n.lastValidatePromise===h?Promise.resolve(n.getFieldsValue(c)):Promise.reject([])}).catch(function(v){var b=v.filter(function(S){return S&&S.errors.length});return Promise.reject({values:n.getFieldsValue(c),errorFields:b,outOfDate:n.lastValidatePromise!==h})});C.catch(function(v){return v});var p=c.filter(function(v){return f.has(v.join(d))});return n.triggerOnFieldsChange(p),C}),D(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r)}catch(a){console.error(a)}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r)})}),this.forceRootUpdate=t});function Ih(e){var t=s.useRef(),n=s.useState({}),r=Q(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var a=function(){o({})},i=new eL(a);t.current=i.getForm()}return[t.current]}var Rp=s.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),uE=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,a=t.children,i=s.useContext(Rp),l=s.useRef({});return s.createElement(Rp.Provider,{value:A(A({},i),{},{validateMessages:A(A({},i.validateMessages),n),triggerFormChange:function(u,d){r&&r(u,{changedFields:d,forms:l.current}),i.triggerFormChange(u,d)},triggerFormFinish:function(u,d){o&&o(u,{values:d,forms:l.current}),i.triggerFormFinish(u,d)},registerForm:function(u,d){u&&(l.current=A(A({},l.current),{},D({},u,d))),i.registerForm(u,d)},unregisterForm:function(u){var d=A({},l.current);delete d[u],l.current=d,i.unregisterForm(u)}})},a)},tL=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],nL=function(t,n){var r=t.name,o=t.initialValues,a=t.fields,i=t.form,l=t.preserve,c=t.children,u=t.component,d=u===void 0?"form":u,f=t.validateMessages,m=t.validateTrigger,g=m===void 0?"onChange":m,y=t.onValuesChange,h=t.onFieldsChange,C=t.onFinish,p=t.onFinishFailed,v=tt(t,tL),b=s.useContext(Rp),S=Ih(i),$=Q(S,1),x=$[0],w=x.getInternalHooks(za),O=w.useSubscribe,E=w.setInitialValues,I=w.setCallbacks,T=w.setValidateMessages,_=w.setPreserve,R=w.destroyForm;s.useImperativeHandle(n,function(){return x}),s.useEffect(function(){return b.registerForm(r,x),function(){b.unregisterForm(r)}},[b,x,r]),T(A(A({},b.validateMessages),f)),I({onValuesChange:y,onFieldsChange:function(F){if(b.triggerFormChange(r,F),h){for(var K=arguments.length,X=new Array(K>1?K-1:0),U=1;U{}}),fE=s.createContext(null),mE=e=>{const t=Kt(e,["prefixCls"]);return s.createElement(uE,Object.assign({},t))},Ph=s.createContext({prefixCls:""}),Qn=s.createContext({}),Np=e=>{let{children:t,status:n,override:r}=e;const o=s.useContext(Qn),a=s.useMemo(()=>{const i=Object.assign({},o);return r&&delete i.isFormItemInput,n&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[n,r,o]);return s.createElement(Qn.Provider,{value:a},t)},gE=s.createContext(void 0);function nC(){}const oL=s.createContext({add:nC,remove:nC});function aL(e){const t=s.useContext(oL),n=s.useRef();return Ft(o=>{if(o){const a=e?o.querySelector(e):o;t.add(a),n.current=a}else t.remove(n.current)})}const iL=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=s.useContext(lc);return G.createElement(Lo,Object.assign({onClick:n},e),t)},rC=iL,lL=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=s.useContext(lc);return G.createElement(Lo,Object.assign({},yh(n),{loading:e,onClick:o},t),r)},oC=lL;function pE(e,t){return G.createElement("span",{className:`${e}-close-x`},t||G.createElement(ni,{className:`${e}-close-icon`}))}const vE=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:a,onCancel:i,okButtonProps:l,cancelButtonProps:c,footer:u}=e,[d]=ei("Modal",G$()),f=t||(d==null?void 0:d.okText),m=r||(d==null?void 0:d.cancelText),g={confirmLoading:o,okButtonProps:l,cancelButtonProps:c,okTextLocale:f,cancelTextLocale:m,okType:n,onOk:a,onCancel:i},y=G.useMemo(()=>g,ue(Object.values(g)));let h;return typeof u=="function"||typeof u>"u"?(h=G.createElement(G.Fragment,null,G.createElement(rC,null),G.createElement(oC,null)),typeof u=="function"&&(h=u(h,{OkBtn:oC,CancelBtn:rC})),h=G.createElement(Xw,{value:y},h)):h=u,G.createElement(uh,{disabled:!1},h)},sL=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, +`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),a=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),i=new RegExp("^"+n+"$"),l=new RegExp("^"+o+"$"),c=function(S){return S&&S.exact?a:new RegExp("(?:"+t(S)+n+t(S)+")|(?:"+t(S)+o+t(S)+")","g")};c.v4=function(b){return b&&b.exact?i:new RegExp(""+t(b)+n+t(b),"g")},c.v6=function(b){return b&&b.exact?l:new RegExp(""+t(b)+o+t(b),"g")};var u="(?:(?:[a-z]+:)?//)",d="(?:\\S+(?::\\S*)?@)?",f=c.v4().source,m=c.v6().source,g="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",y="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",h="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",C="(?::\\d{2,5})?",p='(?:[/?#][^\\s"]*)?',v="(?:"+u+"|www\\.)"+d+"(?:localhost|"+f+"|"+m+"|"+g+y+h+")"+C+p;return Uc=new RegExp("(?:^"+v+"$)","i"),Uc},Xb={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},Wl={integer:function(t){return Wl.number(t)&&parseInt(t,10)===t},float:function(t){return Wl.number(t)&&!Wl.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"&&!Wl.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Xb.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(E3())},hex:function(t){return typeof t=="string"&&!!t.match(Xb.hex)}},O3=function(t,n,r,o,a){if(t.required&&n===void 0){aE(t,n,r,o,a);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;i.indexOf(l)>-1?Wl[l](n)||o.push(Cr(a.messages.types[l],t.fullField,t.type)):l&&typeof n!==t.type&&o.push(Cr(a.messages.types[l],t.fullField,t.type))},I3=function(t,n,r,o,a){var i=typeof t.len=="number",l=typeof t.min=="number",c=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,f=null,m=typeof n=="number",g=typeof n=="string",y=Array.isArray(n);if(m?f="number":g?f="string":y&&(f="array"),!f)return!1;y&&(d=n.length),g&&(d=n.replace(u,"_").length),i?d!==t.len&&o.push(Cr(a.messages[f].len,t.fullField,t.len)):l&&!c&&dt.max?o.push(Cr(a.messages[f].max,t.fullField,t.max)):l&&c&&(dt.max)&&o.push(Cr(a.messages[f].range,t.fullField,t.min,t.max))},si="enum",P3=function(t,n,r,o,a){t[si]=Array.isArray(t[si])?t[si]:[],t[si].indexOf(n)===-1&&o.push(Cr(a.messages[si],t.fullField,t[si].join(", ")))},R3=function(t,n,r,o,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(Cr(a.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(n)||o.push(Cr(a.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},wt={required:aE,whitespace:w3,type:O3,range:I3,enum:P3,pattern:R3},N3=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if($n(n,"string")&&!t.required)return r();wt.required(t,n,o,i,a,"string"),$n(n,"string")||(wt.type(t,n,o,i,a),wt.range(t,n,o,i,a),wt.pattern(t,n,o,i,a),t.whitespace===!0&&wt.whitespace(t,n,o,i,a))}r(i)},T3=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if($n(n)&&!t.required)return r();wt.required(t,n,o,i,a),n!==void 0&&wt.type(t,n,o,i,a)}r(i)},M3=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),$n(n)&&!t.required)return r();wt.required(t,n,o,i,a),n!==void 0&&(wt.type(t,n,o,i,a),wt.range(t,n,o,i,a))}r(i)},_3=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if($n(n)&&!t.required)return r();wt.required(t,n,o,i,a),n!==void 0&&wt.type(t,n,o,i,a)}r(i)},z3=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if($n(n)&&!t.required)return r();wt.required(t,n,o,i,a),$n(n)||wt.type(t,n,o,i,a)}r(i)},j3=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if($n(n)&&!t.required)return r();wt.required(t,n,o,i,a),n!==void 0&&(wt.type(t,n,o,i,a),wt.range(t,n,o,i,a))}r(i)},L3=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if($n(n)&&!t.required)return r();wt.required(t,n,o,i,a),n!==void 0&&(wt.type(t,n,o,i,a),wt.range(t,n,o,i,a))}r(i)},k3=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return r();wt.required(t,n,o,i,a,"array"),n!=null&&(wt.type(t,n,o,i,a),wt.range(t,n,o,i,a))}r(i)},D3=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if($n(n)&&!t.required)return r();wt.required(t,n,o,i,a),n!==void 0&&wt.type(t,n,o,i,a)}r(i)},B3="enum",F3=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if($n(n)&&!t.required)return r();wt.required(t,n,o,i,a),n!==void 0&&wt[B3](t,n,o,i,a)}r(i)},A3=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if($n(n,"string")&&!t.required)return r();wt.required(t,n,o,i,a),$n(n,"string")||wt.pattern(t,n,o,i,a)}r(i)},H3=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if($n(n,"date")&&!t.required)return r();if(wt.required(t,n,o,i,a),!$n(n,"date")){var c;n instanceof Date?c=n:c=new Date(n),wt.type(t,c,o,i,a),c&&wt.range(t,c.getTime(),o,i,a)}}r(i)},V3=function(t,n,r,o,a){var i=[],l=Array.isArray(n)?"array":typeof n;wt.required(t,n,o,i,a,l),r(i)},Nm=function(t,n,r,o,a){var i=t.type,l=[],c=t.required||!t.required&&o.hasOwnProperty(t.field);if(c){if($n(n,i)&&!t.required)return r();wt.required(t,n,o,l,a,i),$n(n,i)||wt.type(t,n,o,l,a)}r(l)},K3=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if($n(n)&&!t.required)return r();wt.required(t,n,o,i,a)}r(i)},is={string:N3,method:T3,number:M3,boolean:_3,regexp:z3,integer:j3,float:L3,array:k3,object:D3,enum:F3,pattern:A3,date:H3,url:Nm,hex:Nm,email:Nm,required:V3,any:K3};function $p(){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 wp=$p(),sc=function(){function e(n){this.rules=null,this._messages=wp,this.define(n)}var t=e.prototype;return t.define=function(r){var o=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(a){var i=r[a];o.rules[a]=Array.isArray(i)?i:[i]})},t.messages=function(r){return r&&(this._messages=qb($p(),r)),this._messages},t.validate=function(r,o,a){var i=this;o===void 0&&(o={}),a===void 0&&(a=function(){});var l=r,c=o,u=a;if(typeof c=="function"&&(u=c,c={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,l),Promise.resolve(l);function d(h){var C=[],p={};function v(S){if(Array.isArray(S)){var $;C=($=C).concat.apply($,S)}else C.push(S)}for(var b=0;b2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return lE(t,r,n)})}function lE(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,o){return e[o]===r})}function X3(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||at(e)!=="object"||at(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return ue(o).every(function(a){var i=e[a],l=t[a];return typeof i=="function"&&typeof l=="function"?!0:i===l})}function Y3(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&at(t.target)==="object"&&e in t.target?t.target[e]:t}function Jb(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],a=t-n;return a>0?[].concat(ue(e.slice(0,n)),[o],ue(e.slice(n,t)),ue(e.slice(t+1,r))):a<0?[].concat(ue(e.slice(0,t)),ue(e.slice(t+1,n+1)),[o],ue(e.slice(n+1,r))):e}var Q3=["name"],Ir=[];function eC(e,t,n,r,o,a){return typeof e=="function"?e(t,n,"source"in a?{source:a.source}:{}):r!==o}var Eh=function(e){Bo(n,e);var t=Ja(n);function n(r){var o;if(jn(this,n),o=t.call(this,r),D(he(o),"state",{resetCount:0}),D(he(o),"cancelRegisterFunc",null),D(he(o),"mounted",!1),D(he(o),"touched",!1),D(he(o),"dirty",!1),D(he(o),"validatePromise",void 0),D(he(o),"prevValidating",void 0),D(he(o),"errors",Ir),D(he(o),"warnings",Ir),D(he(o),"cancelRegister",function(){var c=o.props,u=c.preserve,d=c.isListField,f=c.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(d,u,dn(f)),o.cancelRegisterFunc=null}),D(he(o),"getNamePath",function(){var c=o.props,u=c.name,d=c.fieldContext,f=d.prefixName,m=f===void 0?[]:f;return u!==void 0?[].concat(ue(m),ue(u)):[]}),D(he(o),"getRules",function(){var c=o.props,u=c.rules,d=u===void 0?[]:u,f=c.fieldContext;return d.map(function(m){return typeof m=="function"?m(f):m})}),D(he(o),"refresh",function(){o.mounted&&o.setState(function(c){var u=c.resetCount;return{resetCount:u+1}})}),D(he(o),"metaCache",null),D(he(o),"triggerMetaEvent",function(c){var u=o.props.onMetaChange;if(u){var d=A(A({},o.getMeta()),{},{destroy:c});mo(o.metaCache,d)||u(d),o.metaCache=d}else o.metaCache=null}),D(he(o),"onStoreChange",function(c,u,d){var f=o.props,m=f.shouldUpdate,g=f.dependencies,y=g===void 0?[]:g,h=f.onReset,C=d.store,p=o.getNamePath(),v=o.getValue(c),b=o.getValue(C),S=u&&Vi(u,p);switch(d.type==="valueUpdate"&&d.source==="external"&&!mo(v,b)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=Ir,o.warnings=Ir,o.triggerMetaEvent()),d.type){case"reset":if(!u||S){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=Ir,o.warnings=Ir,o.triggerMetaEvent(),h==null||h(),o.refresh();return}break;case"remove":{if(m){o.reRender();return}break}case"setField":{var $=d.data;if(S){"touched"in $&&(o.touched=$.touched),"validating"in $&&!("originRCField"in $)&&(o.validatePromise=$.validating?Promise.resolve([]):null),"errors"in $&&(o.errors=$.errors||Ir),"warnings"in $&&(o.warnings=$.warnings||Ir),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in $&&Vi(u,p,!0)){o.reRender();return}if(m&&!p.length&&eC(m,c,C,v,b,d)){o.reRender();return}break}case"dependenciesUpdate":{var x=y.map(dn);if(x.some(function(w){return Vi(d.relatedFields,w)})){o.reRender();return}break}default:if(S||(!y.length||p.length||m)&&eC(m,c,C,v,b,d)){o.reRender();return}break}m===!0&&o.reRender()}),D(he(o),"validateRules",function(c){var u=o.getNamePath(),d=o.getValue(),f=c||{},m=f.triggerName,g=f.validateOnly,y=g===void 0?!1:g,h=Promise.resolve().then(ri(Yn().mark(function C(){var p,v,b,S,$,x,w;return Yn().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(o.mounted){E.next=2;break}return E.abrupt("return",[]);case 2:if(p=o.props,v=p.validateFirst,b=v===void 0?!1:v,S=p.messageVariables,$=p.validateDebounce,x=o.getRules(),m&&(x=x.filter(function(I){return I}).filter(function(I){var T=I.validateTrigger;if(!T)return!0;var _=bp(T);return _.includes(m)})),!($&&m)){E.next=10;break}return E.next=8,new Promise(function(I){setTimeout(I,$)});case 8:if(o.validatePromise===h){E.next=10;break}return E.abrupt("return",[]);case 10:return w=G3(u,d,x,c,b,S),w.catch(function(I){return I}).then(function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ir;if(o.validatePromise===h){var T;o.validatePromise=null;var _=[],R=[];(T=I.forEach)===null||T===void 0||T.call(I,function(M){var L=M.rule.warningOnly,z=M.errors,P=z===void 0?Ir:z;L?R.push.apply(R,ue(P)):_.push.apply(_,ue(P))}),o.errors=_,o.warnings=R,o.triggerMetaEvent(),o.reRender()}}),E.abrupt("return",w);case 13:case"end":return E.stop()}},C)})));return y||(o.validatePromise=h,o.dirty=!0,o.errors=Ir,o.warnings=Ir,o.triggerMetaEvent(),o.reRender()),h}),D(he(o),"isFieldValidating",function(){return!!o.validatePromise}),D(he(o),"isFieldTouched",function(){return o.touched}),D(he(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var c=o.props.fieldContext,u=c.getInternalHooks(za),d=u.getInitialValue;return d(o.getNamePath())!==void 0}),D(he(o),"getErrors",function(){return o.errors}),D(he(o),"getWarnings",function(){return o.warnings}),D(he(o),"isListField",function(){return o.props.isListField}),D(he(o),"isList",function(){return o.props.isList}),D(he(o),"isPreserve",function(){return o.props.preserve}),D(he(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var c={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return c}),D(he(o),"getOnlyChild",function(c){if(typeof c=="function"){var u=o.getMeta();return A(A({},o.getOnlyChild(c(o.getControlled(),u,o.props.fieldContext))),{},{isFunction:!0})}var d=lr(c);return d.length!==1||!s.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),D(he(o),"getValue",function(c){var u=o.props.fieldContext.getFieldsValue,d=o.getNamePath();return br(c||u(!0),d)}),D(he(o),"getControlled",function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=o.props,d=u.name,f=u.trigger,m=u.validateTrigger,g=u.getValueFromEvent,y=u.normalize,h=u.valuePropName,C=u.getValueProps,p=u.fieldContext,v=m!==void 0?m:p.validateTrigger,b=o.getNamePath(),S=p.getInternalHooks,$=p.getFieldsValue,x=S(za),w=x.dispatch,O=o.getValue(),E=C||function(M){return D({},h,M)},I=c[f],T=d!==void 0?E(O):{},_=A(A({},c),T);_[f]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var M,L=arguments.length,z=new Array(L),P=0;P=0&&I<=T.length?(d.keys=[].concat(ue(d.keys.slice(0,I)),[d.id],ue(d.keys.slice(I))),b([].concat(ue(T.slice(0,I)),[E],ue(T.slice(I))))):(d.keys=[].concat(ue(d.keys),[d.id]),b([].concat(ue(T),[E]))),d.id+=1},remove:function(E){var I=$(),T=new Set(Array.isArray(E)?E:[E]);T.size<=0||(d.keys=d.keys.filter(function(_,R){return!T.has(R)}),b(I.filter(function(_,R){return!T.has(R)})))},move:function(E,I){if(E!==I){var T=$();E<0||E>=T.length||I<0||I>=T.length||(d.keys=Jb(d.keys,E,I),b(Jb(T,E,I)))}}},w=v||[];return Array.isArray(w)||(w=[]),r(w.map(function(O,E){var I=d.keys[E];return I===void 0&&(d.keys[E]=d.id,I=d.keys[E],d.id+=1),{name:E,key:I,isListField:!0}}),x,C)})))}function Z3(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,a){e.forEach(function(i,l){i.catch(function(c){return t=!0,c}).then(function(c){n-=1,r[l]=c,!(n>0)&&(t&&a(r),o(r))})})}):Promise.resolve([])}var cE="__@field_split__";function Tm(e){return e.map(function(t){return"".concat(at(t),":").concat(t)}).join(cE)}var ci=function(){function e(){jn(this,e),D(this,"kvs",new Map)}return Ln(e,[{key:"set",value:function(n,r){this.kvs.set(Tm(n),r)}},{key:"get",value:function(n){return this.kvs.get(Tm(n))}},{key:"update",value:function(n,r){var o=this.get(n),a=r(o);a?this.set(n,a):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(Tm(n))}},{key:"map",value:function(n){return ue(this.kvs.entries()).map(function(r){var o=Q(r,2),a=o[0],i=o[1],l=a.split(cE);return n({key:l.map(function(c){var u=c.match(/^([^:]*):(.*)$/),d=Q(u,3),f=d[1],m=d[2];return f==="number"?Number(m):m}),value:i})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,a=r.value;return n[o.join(".")]=a,null}),n}}]),e}(),J3=["name"],ej=Ln(function e(t){var n=this;jn(this,e),D(this,"formHooked",!1),D(this,"forceRootUpdate",void 0),D(this,"subscribable",!0),D(this,"store",{}),D(this,"fieldEntities",[]),D(this,"initialValues",{}),D(this,"callbacks",{}),D(this,"validateMessages",null),D(this,"preserve",null),D(this,"lastValidatePromise",null),D(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),D(this,"getInternalHooks",function(r){return r===za?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(Zt(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),D(this,"useSubscribe",function(r){n.subscribable=r}),D(this,"prevWithoutPreserves",null),D(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var a,i=_i(r,n.store);(a=n.prevWithoutPreserves)===null||a===void 0||a.map(function(l){var c=l.key;i=Gr(i,c,br(r,c))}),n.prevWithoutPreserves=null,n.updateStore(i)}}),D(this,"destroyForm",function(){var r=new ci;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||r.set(o.getNamePath(),!0)}),n.prevWithoutPreserves=r}),D(this,"getInitialValue",function(r){var o=br(n.initialValues,r);return r.length?_i(o):o}),D(this,"setCallbacks",function(r){n.callbacks=r}),D(this,"setValidateMessages",function(r){n.validateMessages=r}),D(this,"setPreserve",function(r){n.preserve=r}),D(this,"watchList",[]),D(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r})}}),D(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue(),a=n.getFieldsValue(!0);n.watchList.forEach(function(i){i(o,a,r)})}}),D(this,"timeoutId",null),D(this,"warningUnhooked",function(){}),D(this,"updateStore",function(r){n.store=r}),D(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(o){return o.getNamePath().length}):n.fieldEntities}),D(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new ci;return n.getFieldEntities(r).forEach(function(a){var i=a.getNamePath();o.set(i,a)}),o}),D(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(a){var i=dn(a);return o.get(i)||{INVALIDATE_NAME_PATH:dn(a)}})}),D(this,"getFieldsValue",function(r,o){n.warningUnhooked();var a,i,l;if(r===!0||Array.isArray(r)?(a=r,i=o):r&&at(r)==="object"&&(l=r.strict,i=r.filter),a===!0&&!i)return n.store;var c=n.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null),u=[];return c.forEach(function(d){var f,m,g="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(l){var y,h;if((y=(h=d).isList)!==null&&y!==void 0&&y.call(h))return}else if(!a&&(f=(m=d).isListField)!==null&&f!==void 0&&f.call(m))return;if(!i)u.push(g);else{var C="getMeta"in d?d.getMeta():null;i(C)&&u.push(g)}}),Zb(n.store,u.map(dn))}),D(this,"getFieldValue",function(r){n.warningUnhooked();var o=dn(r);return br(n.store,o)}),D(this,"getFieldsError",function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(a,i){return a&&!("INVALIDATE_NAME_PATH"in a)?{name:a.getNamePath(),errors:a.getErrors(),warnings:a.getWarnings()}:{name:dn(r[i]),errors:[],warnings:[]}})}),D(this,"getFieldError",function(r){n.warningUnhooked();var o=dn(r),a=n.getFieldsError([o])[0];return a.errors}),D(this,"getFieldWarning",function(r){n.warningUnhooked();var o=dn(r),a=n.getFieldsError([o])[0];return a.warnings}),D(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),a=0;a0&&arguments[0]!==void 0?arguments[0]:{},o=new ci,a=n.getFieldEntities(!0);a.forEach(function(c){var u=c.props.initialValue,d=c.getNamePath();if(u!==void 0){var f=o.get(d)||new Set;f.add({entity:c,value:u}),o.set(d,f)}});var i=function(u){u.forEach(function(d){var f=d.props.initialValue;if(f!==void 0){var m=d.getNamePath(),g=n.getInitialValue(m);if(g!==void 0)Zt(!1,"Form already set 'initialValues' with path '".concat(m.join("."),"'. Field can not overwrite it."));else{var y=o.get(m);if(y&&y.size>1)Zt(!1,"Multiple Field with path '".concat(m.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(y){var h=n.getFieldValue(m),C=d.isListField();!C&&(!r.skipExist||h===void 0)&&n.updateStore(Gr(n.store,m,ue(y)[0].value))}}}})},l;r.entities?l=r.entities:r.namePathList?(l=[],r.namePathList.forEach(function(c){var u=o.get(c);if(u){var d;(d=l).push.apply(d,ue(ue(u).map(function(f){return f.entity})))}})):l=a,i(l)}),D(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(_i(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var a=r.map(dn);a.forEach(function(i){var l=n.getInitialValue(i);n.updateStore(Gr(n.store,i,l))}),n.resetWithFieldInitialValue({namePathList:a}),n.notifyObservers(o,a,{type:"reset"}),n.notifyWatch(a)}),D(this,"setFields",function(r){n.warningUnhooked();var o=n.store,a=[];r.forEach(function(i){var l=i.name,c=tt(i,J3),u=dn(l);a.push(u),"value"in c&&n.updateStore(Gr(n.store,u,c.value)),n.notifyObservers(o,[u],{type:"setField",data:i})}),n.notifyWatch(a)}),D(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(a){var i=a.getNamePath(),l=a.getMeta(),c=A(A({},l),{},{name:i,value:n.getFieldValue(i)});return Object.defineProperty(c,"originRCField",{value:!0}),c});return o}),D(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var a=r.getNamePath(),i=br(n.store,a);i===void 0&&n.updateStore(Gr(n.store,a,o))}}),D(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o??!0}),D(this,"registerField",function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var a=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(a,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(i,l){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(l)&&(!i||c.length>1)){var u=i?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==u&&n.fieldEntities.every(function(f){return!lE(f.getNamePath(),o)})){var d=n.store;n.updateStore(Gr(d,o,u,!0)),n.notifyObservers(d,[o],{type:"remove"}),n.triggerDependenciesUpdate(d,o)}}n.notifyWatch([o])}}),D(this,"dispatch",function(r){switch(r.type){case"updateValue":{var o=r.namePath,a=r.value;n.updateValue(o,a);break}case"validateField":{var i=r.namePath,l=r.triggerName;n.validateFields([i],{triggerName:l});break}}}),D(this,"notifyObservers",function(r,o,a){if(n.subscribable){var i=A(A({},a),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(l){var c=l.onStoreChange;c(r,o,i)})}else n.forceRootUpdate()}),D(this,"triggerDependenciesUpdate",function(r,o){var a=n.getDependencyChildrenFields(o);return a.length&&n.validateFields(a),n.notifyObservers(r,a,{type:"dependenciesUpdate",relatedFields:[o].concat(ue(a))}),a}),D(this,"updateValue",function(r,o){var a=dn(r),i=n.store;n.updateStore(Gr(n.store,a,o)),n.notifyObservers(i,[a],{type:"valueUpdate",source:"internal"}),n.notifyWatch([a]);var l=n.triggerDependenciesUpdate(i,a),c=n.callbacks.onValuesChange;if(c){var u=Zb(n.store,[a]);c(u,n.getFieldsValue())}n.triggerOnFieldsChange([a].concat(ue(l)))}),D(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var a=_i(n.store,r);n.updateStore(a)}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),D(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o}])}),D(this,"getDependencyChildrenFields",function(r){var o=new Set,a=[],i=new ci;n.getFieldEntities().forEach(function(c){var u=c.props.dependencies;(u||[]).forEach(function(d){var f=dn(d);i.update(f,function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return m.add(c),m})})});var l=function c(u){var d=i.get(u)||new Set;d.forEach(function(f){if(!o.has(f)){o.add(f);var m=f.getNamePath();f.isFieldDirty()&&m.length&&(a.push(m),c(m))}})};return l(r),a}),D(this,"triggerOnFieldsChange",function(r,o){var a=n.callbacks.onFieldsChange;if(a){var i=n.getFields();if(o){var l=new ci;o.forEach(function(u){var d=u.name,f=u.errors;l.set(d,f)}),i.forEach(function(u){u.errors=l.get(u.name)||u.errors})}var c=i.filter(function(u){var d=u.name;return Vi(r,d)});c.length&&a(c,i)}}),D(this,"validateFields",function(r,o){n.warningUnhooked();var a,i;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(a=r,i=o):i=r;var l=!!a,c=l?a.map(dn):[],u=[],d=String(Date.now()),f=new Set,m=i||{},g=m.recursive,y=m.dirty;n.getFieldEntities(!0).forEach(function(v){if(l||c.push(v.getNamePath()),!(!v.props.rules||!v.props.rules.length)&&!(y&&!v.isFieldDirty())){var b=v.getNamePath();if(f.add(b.join(d)),!l||Vi(c,b,g)){var S=v.validateRules(A({validateMessages:A(A({},iE),n.validateMessages)},i));u.push(S.then(function(){return{name:b,errors:[],warnings:[]}}).catch(function($){var x,w=[],O=[];return(x=$.forEach)===null||x===void 0||x.call($,function(E){var I=E.rule.warningOnly,T=E.errors;I?O.push.apply(O,ue(T)):w.push.apply(w,ue(T))}),w.length?Promise.reject({name:b,errors:w,warnings:O}):{name:b,errors:w,warnings:O}}))}}});var h=Z3(u);n.lastValidatePromise=h,h.catch(function(v){return v}).then(function(v){var b=v.map(function(S){var $=S.name;return $});n.notifyObservers(n.store,b,{type:"validateFinish"}),n.triggerOnFieldsChange(b,v)});var C=h.then(function(){return n.lastValidatePromise===h?Promise.resolve(n.getFieldsValue(c)):Promise.reject([])}).catch(function(v){var b=v.filter(function(S){return S&&S.errors.length});return Promise.reject({values:n.getFieldsValue(c),errorFields:b,outOfDate:n.lastValidatePromise!==h})});C.catch(function(v){return v});var p=c.filter(function(v){return f.has(v.join(d))});return n.triggerOnFieldsChange(p),C}),D(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r)}catch(a){console.error(a)}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r)})}),this.forceRootUpdate=t});function Ih(e){var t=s.useRef(),n=s.useState({}),r=Q(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var a=function(){o({})},i=new ej(a);t.current=i.getForm()}return[t.current]}var Rp=s.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),uE=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,a=t.children,i=s.useContext(Rp),l=s.useRef({});return s.createElement(Rp.Provider,{value:A(A({},i),{},{validateMessages:A(A({},i.validateMessages),n),triggerFormChange:function(u,d){r&&r(u,{changedFields:d,forms:l.current}),i.triggerFormChange(u,d)},triggerFormFinish:function(u,d){o&&o(u,{values:d,forms:l.current}),i.triggerFormFinish(u,d)},registerForm:function(u,d){u&&(l.current=A(A({},l.current),{},D({},u,d))),i.registerForm(u,d)},unregisterForm:function(u){var d=A({},l.current);delete d[u],l.current=d,i.unregisterForm(u)}})},a)},tj=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],nj=function(t,n){var r=t.name,o=t.initialValues,a=t.fields,i=t.form,l=t.preserve,c=t.children,u=t.component,d=u===void 0?"form":u,f=t.validateMessages,m=t.validateTrigger,g=m===void 0?"onChange":m,y=t.onValuesChange,h=t.onFieldsChange,C=t.onFinish,p=t.onFinishFailed,v=tt(t,tj),b=s.useContext(Rp),S=Ih(i),$=Q(S,1),x=$[0],w=x.getInternalHooks(za),O=w.useSubscribe,E=w.setInitialValues,I=w.setCallbacks,T=w.setValidateMessages,_=w.setPreserve,R=w.destroyForm;s.useImperativeHandle(n,function(){return x}),s.useEffect(function(){return b.registerForm(r,x),function(){b.unregisterForm(r)}},[b,x,r]),T(A(A({},b.validateMessages),f)),I({onValuesChange:y,onFieldsChange:function(F){if(b.triggerFormChange(r,F),h){for(var K=arguments.length,X=new Array(K>1?K-1:0),U=1;U{}}),fE=s.createContext(null),mE=e=>{const t=Kt(e,["prefixCls"]);return s.createElement(uE,Object.assign({},t))},Ph=s.createContext({prefixCls:""}),Qn=s.createContext({}),Np=e=>{let{children:t,status:n,override:r}=e;const o=s.useContext(Qn),a=s.useMemo(()=>{const i=Object.assign({},o);return r&&delete i.isFormItemInput,n&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[n,r,o]);return s.createElement(Qn.Provider,{value:a},t)},gE=s.createContext(void 0);function nC(){}const oj=s.createContext({add:nC,remove:nC});function aj(e){const t=s.useContext(oj),n=s.useRef();return Ft(o=>{if(o){const a=e?o.querySelector(e):o;t.add(a),n.current=a}else t.remove(n.current)})}const ij=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=s.useContext(lc);return G.createElement(Lo,Object.assign({onClick:n},e),t)},rC=ij,lj=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=s.useContext(lc);return G.createElement(Lo,Object.assign({},yh(n),{loading:e,onClick:o},t),r)},oC=lj;function pE(e,t){return G.createElement("span",{className:`${e}-close-x`},t||G.createElement(ni,{className:`${e}-close-icon`}))}const vE=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:a,onCancel:i,okButtonProps:l,cancelButtonProps:c,footer:u}=e,[d]=ei("Modal",G$()),f=t||(d==null?void 0:d.okText),m=r||(d==null?void 0:d.cancelText),g={confirmLoading:o,okButtonProps:l,cancelButtonProps:c,okTextLocale:f,cancelTextLocale:m,okType:n,onOk:a,onCancel:i},y=G.useMemo(()=>g,ue(Object.values(g)));let h;return typeof u=="function"||typeof u>"u"?(h=G.createElement(G.Fragment,null,G.createElement(rC,null),G.createElement(oC,null)),typeof u=="function"&&(h=u(h,{OkBtn:oC,CancelBtn:rC})),h=G.createElement(Xw,{value:y},h)):h=u,G.createElement(uh,{disabled:!1},h)},sj=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, - opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),Rh=sL,cL=e=>({animationDuration:e,animationFillMode:"both"}),uL=e=>({animationDuration:e,animationFillMode:"both"}),mf=function(e,t,n,r){const a=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` + opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),Rh=sj,cj=e=>({animationDuration:e,animationFillMode:"both"}),uj=e=>({animationDuration:e,animationFillMode:"both"}),mf=function(e,t,n,r){const a=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` ${a}${e}-enter, ${a}${e}-appear - `]:Object.assign(Object.assign({},cL(r)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},uL(r)),{animationPlayState:"paused"}),[` + `]:Object.assign(Object.assign({},cj(r)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},uj(r)),{animationPlayState:"paused"}),[` ${a}${e}-enter${e}-enter-active, ${a}${e}-appear${e}-appear-active - `]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},dL=new yt("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),fL=new yt("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),mL=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[mf(r,dL,fL,e.motionDurationMid,t),{[` + `]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},dj=new yt("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),fj=new yt("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),mj=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[mf(r,dj,fj,e.motionDurationMid,t),{[` ${o}${r}-enter, ${o}${r}-appear - `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},gL=new yt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),pL=new yt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),vL=new yt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),hL=new yt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),yL=new yt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),bL=new yt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),CL=new yt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),SL=new yt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),xL={"move-up":{inKeyframes:CL,outKeyframes:SL},"move-down":{inKeyframes:gL,outKeyframes:pL},"move-left":{inKeyframes:vL,outKeyframes:hL},"move-right":{inKeyframes:yL,outKeyframes:bL}},cd=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=xL[t];return[mf(r,o,a,e.motionDurationMid),{[` + `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},gj=new yt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),pj=new yt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),vj=new yt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),hj=new yt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),yj=new yt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),bj=new yt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Cj=new yt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Sj=new yt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),xj={"move-up":{inKeyframes:Cj,outKeyframes:Sj},"move-down":{inKeyframes:gj,outKeyframes:pj},"move-left":{inKeyframes:vj,outKeyframes:hj},"move-right":{inKeyframes:yj,outKeyframes:bj}},cd=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=xj[t];return[mf(r,o,a,e.motionDurationMid),{[` ${r}-enter, ${r}-appear - `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Nh=new yt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Th=new yt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Mh=new yt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),_h=new yt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),$L=new yt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),wL=new yt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),EL=new yt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),OL=new yt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),IL={"slide-up":{inKeyframes:Nh,outKeyframes:Th},"slide-down":{inKeyframes:Mh,outKeyframes:_h},"slide-left":{inKeyframes:$L,outKeyframes:wL},"slide-right":{inKeyframes:EL,outKeyframes:OL}},ha=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=IL[t];return[mf(r,o,a,e.motionDurationMid),{[` + `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Nh=new yt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Th=new yt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Mh=new yt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),_h=new yt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),$j=new yt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),wj=new yt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Ej=new yt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Oj=new yt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Ij={"slide-up":{inKeyframes:Nh,outKeyframes:Th},"slide-down":{inKeyframes:Mh,outKeyframes:_h},"slide-left":{inKeyframes:$j,outKeyframes:wj},"slide-right":{inKeyframes:Ej,outKeyframes:Oj}},ha=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=Ij[t];return[mf(r,o,a,e.motionDurationMid),{[` ${r}-enter, ${r}-appear - `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},zh=new yt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),PL=new yt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),aC=new yt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),iC=new yt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),RL=new yt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),NL=new yt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),TL=new yt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),ML=new yt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),_L=new yt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),zL=new yt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),jL=new yt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),LL=new yt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),kL={zoom:{inKeyframes:zh,outKeyframes:PL},"zoom-big":{inKeyframes:aC,outKeyframes:iC},"zoom-big-fast":{inKeyframes:aC,outKeyframes:iC},"zoom-left":{inKeyframes:TL,outKeyframes:ML},"zoom-right":{inKeyframes:_L,outKeyframes:zL},"zoom-up":{inKeyframes:RL,outKeyframes:NL},"zoom-down":{inKeyframes:jL,outKeyframes:LL}},cc=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=kL[t];return[mf(r,o,a,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[` + `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},zh=new yt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Pj=new yt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),aC=new yt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),iC=new yt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Rj=new yt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Nj=new yt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Tj=new yt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),Mj=new yt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),_j=new yt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),zj=new yt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),jj=new yt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Lj=new yt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),kj={zoom:{inKeyframes:zh,outKeyframes:Pj},"zoom-big":{inKeyframes:aC,outKeyframes:iC},"zoom-big-fast":{inKeyframes:aC,outKeyframes:iC},"zoom-left":{inKeyframes:Tj,outKeyframes:Mj},"zoom-right":{inKeyframes:_j,outKeyframes:zj},"zoom-up":{inKeyframes:Rj,outKeyframes:Nj},"zoom-down":{inKeyframes:jj,outKeyframes:Lj}},cc=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=kj[t];return[mf(r,o,a,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[` ${r}-enter, ${r}-appear - `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};function lC(e){return{position:e,inset:0}}const DL=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},lC("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},lC("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:mL(e)}]},BL=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${H(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},zt(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${H(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${H(e.modalCloseBtnSize)}`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},zo(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${H(e.borderRadiusLG)} ${H(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content, + `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};function lC(e){return{position:e,inset:0}}const Dj=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},lC("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},lC("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:mj(e)}]},Bj=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${H(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},zt(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${H(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${H(e.modalCloseBtnSize)}`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},zo(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${H(e.borderRadiusLG)} ${H(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content, ${t}-body, - ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},FL=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},hE=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return bt(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},yE=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${H(e.paddingMD)} ${H(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${H(e.padding)} ${H(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${H(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${H(e.paddingXS)} ${H(e.padding)}`:0,footerBorderTop:e.wireframe?`${H(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${H(e.borderRadiusLG)} ${H(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${H(e.padding*2)} ${H(e.padding*2)} ${H(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),bE=_t("Modal",e=>{const t=hE(e);return[BL(t),FL(t),DL(t),cc(t,"zoom")]},yE,{unitless:{titleLineHeight:!0}});var AL=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{Tp={x:e.pageX,y:e.pageY},setTimeout(()=>{Tp=null},100)};dj()&&document.documentElement.addEventListener("click",HL,!0);const VL=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:o,modal:a}=s.useContext(je),i=j=>{const{onCancel:B}=e;B==null||B(j)},l=j=>{const{onOk:B}=e;B==null||B(j)},{prefixCls:c,className:u,rootClassName:d,open:f,wrapClassName:m,centered:g,getContainer:y,focusTriggerAfterClose:h=!0,style:C,visible:p,width:v=520,footer:b,classNames:S,styles:$}=e,x=AL(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles"]),w=r("modal",c),O=r(),E=gn(w),[I,T,_]=bE(w,E),R=V(m,{[`${w}-centered`]:!!g,[`${w}-wrap-rtl`]:o==="rtl"}),M=b!==null&&s.createElement(vE,Object.assign({},e,{onOk:l,onCancel:i})),[L,z]=rE(sd(e),sd(a),{closable:!0,closeIcon:s.createElement(ni,{className:`${w}-close-icon`}),closeIconRender:j=>pE(w,j)}),P=aL(`.${w}-content`),[N,k]=nc("Modal",x.zIndex);return I(s.createElement(js,null,s.createElement(Np,{status:!0,override:!0},s.createElement(lf.Provider,{value:k},s.createElement(nE,Object.assign({width:v},x,{zIndex:N,getContainer:y===void 0?n:y,prefixCls:w,rootClassName:V(T,d,_,E),footer:M,visible:f??p,mousePosition:(t=x.mousePosition)!==null&&t!==void 0?t:Tp,onClose:i,closable:L,closeIcon:z,focusTriggerAfterClose:h,transitionName:va(O,"zoom",e.transitionName),maskTransitionName:va(O,"fade",e.maskTransitionName),className:V(T,u,a==null?void 0:a.className),style:Object.assign(Object.assign({},a==null?void 0:a.style),C),classNames:Object.assign(Object.assign(Object.assign({},a==null?void 0:a.classNames),S),{wrapper:V(R,S==null?void 0:S.wrapper)}),styles:Object.assign(Object.assign({},a==null?void 0:a.styles),$),panelRef:P}))))))},CE=VL,KL=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:a,lineHeight:i,modalTitleHeight:l,fontHeight:c,confirmBodyPadding:u}=e,d=`${t}-confirm`;return{[d]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${d}-body-wrapper`]:Object.assign({},_o()),[`&${t} ${t}-body`]:{padding:u},[`${d}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(c).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(l).sub(o).equal()).div(2).equal()}},[`${d}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS},[`${e.iconCls} + ${d}-paragraph`]:{maxWidth:`calc(100% - ${H(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${d}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${d}-content`]:{color:e.colorText,fontSize:a,lineHeight:i},[`${d}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${d}-error ${d}-body > ${e.iconCls}`]:{color:e.colorError},[`${d}-warning ${d}-body > ${e.iconCls}, - ${d}-confirm ${d}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${d}-info ${d}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${d}-success ${d}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},WL=ti(["Modal","confirm"],e=>{const t=hE(e);return[KL(t)]},yE,{order:-1e3});var GL=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);ov,ue(Object.values(v))),S=s.createElement(s.Fragment,null,s.createElement(Tb,null),s.createElement(Mb,null)),$=e.title!==void 0&&e.title!==null,x=`${a}-body`;return s.createElement("div",{className:`${a}-body-wrapper`},s.createElement("div",{className:V(x,{[`${x}-has-title`]:$})},f,s.createElement("div",{className:`${a}-paragraph`},$&&s.createElement("span",{className:`${a}-title`},e.title),s.createElement("div",{className:`${a}-content`},e.content))),c===void 0||typeof c=="function"?s.createElement(Xw,{value:b},s.createElement("div",{className:`${a}-btns`},typeof c=="function"?c(S,{OkBtn:Mb,CancelBtn:Tb}):S)):c,s.createElement(WL,{prefixCls:t}))}const UL=e=>{const{close:t,zIndex:n,afterClose:r,open:o,keyboard:a,centered:i,getContainer:l,maskStyle:c,direction:u,prefixCls:d,wrapClassName:f,rootPrefixCls:m,bodyStyle:g,closable:y=!1,closeIcon:h,modalRender:C,focusTriggerAfterClose:p,onConfirm:v,styles:b}=e,S=`${d}-confirm`,$=e.width||416,x=e.style||{},w=e.mask===void 0?!0:e.mask,O=e.maskClosable===void 0?!1:e.maskClosable,E=V(S,`${S}-${e.type}`,{[`${S}-rtl`]:u==="rtl"},e.className),[,I]=mn(),T=s.useMemo(()=>n!==void 0?n:I.zIndexPopupBase+sf,[n,I]);return s.createElement(CE,{prefixCls:d,className:E,wrapClassName:V({[`${S}-centered`]:!!e.centered},f),onCancel:()=>{t==null||t({triggerCancel:!0}),v==null||v(!1)},open:o,title:"",footer:null,transitionName:va(m||"","zoom",e.transitionName),maskTransitionName:va(m||"","fade",e.maskTransitionName),mask:w,maskClosable:O,style:x,styles:Object.assign({body:g,mask:c},b),width:$,zIndex:T,afterClose:r,keyboard:a,centered:i,getContainer:l,closable:y,closeIcon:h,modalRender:C,focusTriggerAfterClose:p},s.createElement(SE,Object.assign({},e,{confirmPrefixCls:S})))},xE=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return s.createElement(tc,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},s.createElement(UL,Object.assign({},e)))},qL=[],La=qL;let $E="";function wE(){return $E}const XL=e=>{var t,n;const{prefixCls:r,getContainer:o,direction:a}=e,i=G$(),l=s.useContext(je),c=wE()||l.getPrefixCls(),u=r||`${c}-modal`;let d=o;return d===!1&&(d=void 0),G.createElement(xE,Object.assign({},e,{rootPrefixCls:c,prefixCls:u,iconPrefixCls:l.iconPrefixCls,theme:l.theme,direction:a??l.direction,locale:(n=(t=l.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:i,getContainer:d}))};function uc(e){const t=ec(),n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:l,open:!0}),o;function a(){for(var u=arguments.length,d=new Array(u),f=0;fg&&g.triggerCancel);e.onCancel&&m&&e.onCancel.apply(e,[()=>{}].concat(ue(d.slice(1))));for(let g=0;g{const d=t.getPrefixCls(void 0,wE()),f=t.getIconPrefixCls(),m=t.getTheme(),g=G.createElement(XL,Object.assign({},u));uf(G.createElement(tc,{prefixCls:d,iconPrefixCls:f,theme:m},t.holderRender?t.holderRender(g):g),n)})}function l(){for(var u=arguments.length,d=new Array(u),f=0;f{typeof e.afterClose=="function"&&e.afterClose(),a.apply(this,d)}}),r.visible&&delete r.visible,i(r)}function c(u){typeof u=="function"?r=u(r):r=Object.assign(Object.assign({},r),u),i(r)}return i(r),La.push(l),{destroy:l,update:c}}function EE(e){return Object.assign(Object.assign({},e),{type:"warning"})}function OE(e){return Object.assign(Object.assign({},e),{type:"info"})}function IE(e){return Object.assign(Object.assign({},e),{type:"success"})}function PE(e){return Object.assign(Object.assign({},e),{type:"error"})}function RE(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function YL(e){let{rootPrefixCls:t}=e;$E=t}var QL=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,{afterClose:r,config:o}=e,a=QL(e,["afterClose","config"]);const[i,l]=s.useState(!0),[c,u]=s.useState(o),{direction:d,getPrefixCls:f}=s.useContext(je),m=f("modal"),g=f(),y=()=>{var v;r(),(v=c.afterClose)===null||v===void 0||v.call(c)},h=function(){l(!1);for(var v=arguments.length,b=new Array(v),S=0;Sx&&x.triggerCancel);c.onCancel&&$&&c.onCancel.apply(c,[()=>{}].concat(ue(b.slice(1))))};s.useImperativeHandle(t,()=>({destroy:h,update:v=>{u(b=>Object.assign(Object.assign({},b),v))}}));const C=(n=c.okCancel)!==null&&n!==void 0?n:c.type==="confirm",[p]=ei("Modal",go.Modal);return s.createElement(xE,Object.assign({prefixCls:m,rootPrefixCls:g},c,{close:h,open:i,afterClose:y,okText:c.okText||(C?p==null?void 0:p.okText:p==null?void 0:p.justOkText),direction:c.direction||d,cancelText:c.cancelText||(p==null?void 0:p.cancelText)},a))},JL=s.forwardRef(ZL);let sC=0;const ek=s.memo(s.forwardRef((e,t)=>{const[n,r]=Bz();return s.useImperativeHandle(t,()=>({patchElement:r}),[]),s.createElement(s.Fragment,null,n)}));function NE(){const e=s.useRef(null),[t,n]=s.useState([]);s.useEffect(()=>{t.length&&(ue(t).forEach(i=>{i()}),n([]))},[t]);const r=s.useCallback(a=>function(l){var c;sC+=1;const u=s.createRef();let d;const f=new Promise(C=>{d=C});let m=!1,g;const y=s.createElement(JL,{key:`modal-${sC}`,config:a(l),ref:u,afterClose:()=>{g==null||g()},isSilent:()=>m,onConfirm:C=>{d(C)}});return g=(c=e.current)===null||c===void 0?void 0:c.patchElement(y),g&&La.push(g),{destroy:()=>{function C(){var p;(p=u.current)===null||p===void 0||p.destroy()}u.current?C():n(p=>[].concat(ue(p),[C]))},update:C=>{function p(){var v;(v=u.current)===null||v===void 0||v.update(C)}u.current?p():n(v=>[].concat(ue(v),[p]))},then:C=>(m=!0,f.then(C))}},[]);return[s.useMemo(()=>({info:r(OE),success:r(IE),error:r(PE),warning:r(EE),confirm:r(RE)}),[]),s.createElement(ek,{key:"modal-holder",ref:e})]}const tk=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,o=`${t}-notice`,a=new yt("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),i=new yt("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),l=new yt("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),c=new yt("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[o]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[o]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:c}}}}},nk=tk,rk=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],ok={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},ak=(e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[ok[t]]:{value:0,_skip_check_:!0}}}}},ik=e=>{const t={};for(let n=1;n ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},lk=e=>{const t={};for(let n=1;n{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},ik(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},lk(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},rk.map(n=>ak(e,n)).reduce((n,r)=>Object.assign(Object.assign({},n),r),{}))},ck=sk,TE=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:a,borderRadiusLG:i,colorSuccess:l,colorInfo:c,colorWarning:u,colorError:d,colorTextHeading:f,notificationBg:m,notificationPadding:g,notificationMarginEdge:y,fontSize:h,lineHeight:C,width:p,notificationIconSize:v,colorText:b}=e,S=`${n}-notice`;return{position:"relative",marginBottom:a,marginInlineStart:"auto",background:m,borderRadius:i,boxShadow:r,[S]:{padding:g,width:p,maxWidth:`calc(100vw - ${H(e.calc(y).mul(2).equal())})`,overflow:"hidden",lineHeight:C,wordWrap:"break-word"},[`${S}-message`]:{marginBottom:e.marginXS,color:f,fontSize:o,lineHeight:e.lineHeightLG},[`${S}-description`]:{fontSize:h,color:b},[`${S}-closable ${S}-message`]:{paddingInlineEnd:e.paddingLG},[`${S}-with-icon ${S}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(v).equal(),fontSize:o},[`${S}-with-icon ${S}-description`]:{marginInlineStart:e.calc(e.marginSM).add(v).equal(),fontSize:h},[`${S}-icon`]:{position:"absolute",fontSize:v,lineHeight:1,[`&-success${t}`]:{color:l},[`&-info${t}`]:{color:c},[`&-warning${t}`]:{color:u},[`&-error${t}`]:{color:d}},[`${S}-close`]:Object.assign({position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},zo(e)),[`${S}-btn`]:{float:"right",marginTop:e.marginSM}}},uk=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:o,motionEaseInOut:a}=e,i=`${t}-notice`,l=new yt("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},zt(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:a,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:a,animationFillMode:"both",animationDuration:o,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:l,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${i}-btn`]:{float:"left"}}})},{[t]:{[`${i}-wrapper`]:Object.assign({},TE(e))}}]},ME=e=>({zIndexPopup:e.zIndexPopupBase+sf+50,width:384}),_E=e=>{const t=e.paddingMD,n=e.paddingLG;return bt(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${H(e.paddingMD)} ${H(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3})},zE=_t("Notification",e=>{const t=_E(e);return[uk(t),nk(t),ck(t)]},ME),dk=ti(["Notification","PurePanel"],e=>{const t=`${e.componentCls}-notice`,n=_E(e);return{[`${t}-pure-panel`]:Object.assign(Object.assign({},TE(n)),{width:n.width,maxWidth:`calc(100vw - ${H(e.calc(n.notificationMarginEdge).mul(2).equal())})`,margin:0})}},ME);var fk=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,icon:n,type:r,message:o,description:a,btn:i,role:l="alert"}=e;let c=null;return n?c=s.createElement("span",{className:`${t}-icon`},n):r&&(c=s.createElement(mk[r]||null,{className:V(`${t}-icon`,`${t}-icon-${r}`)})),s.createElement("div",{className:V({[`${t}-with-icon`]:c}),role:l},c,s.createElement("div",{className:`${t}-message`},o),s.createElement("div",{className:`${t}-description`},a),i&&s.createElement("div",{className:`${t}-btn`},i))},gk=e=>{const{prefixCls:t,className:n,icon:r,type:o,message:a,description:i,btn:l,closable:c=!0,closeIcon:u,className:d}=e,f=fk(e,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon","className"]),{getPrefixCls:m}=s.useContext(je),g=t||m("notification"),y=`${g}-notice`,h=gn(g),[C,p,v]=zE(g,h);return C(s.createElement("div",{className:V(`${y}-pure-panel`,p,n,v,h)},s.createElement(dk,{prefixCls:g}),s.createElement(vh,Object.assign({},f,{prefixCls:g,eventKey:"pure",duration:null,closable:c,className:V({notificationClassName:d}),closeIcon:jh(g,u),content:s.createElement(jE,{prefixCls:y,icon:r,type:o,message:a,description:i,btn:l})}))))},pk=gk;function vk(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n};break}return r}function hk(e){return{motionName:`${e}-fade`}}var yk=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{let{children:t,prefixCls:n}=e;const r=gn(n),[o,a,i]=zE(n,r);return o(G.createElement(_w,{classNames:{list:V(a,i,r)}},t))},xk=(e,t)=>{let{prefixCls:n,key:r}=t;return G.createElement(Sk,{prefixCls:n,key:r},e)},$k=G.forwardRef((e,t)=>{const{top:n,bottom:r,prefixCls:o,getContainer:a,maxCount:i,rtl:l,onAllRemoved:c,stack:u,duration:d}=e,{getPrefixCls:f,getPopupContainer:m,notification:g,direction:y}=s.useContext(je),[,h]=mn(),C=o||f("notification"),p=x=>vk(x,n??cC,r??cC),v=()=>V({[`${C}-rtl`]:l??y==="rtl"}),b=()=>hk(C),[S,$]=zw({prefixCls:C,style:p,className:v,motion:b,closable:!0,closeIcon:jh(C),duration:d??bk,getContainer:()=>(a==null?void 0:a())||(m==null?void 0:m())||document.body,maxCount:i,onAllRemoved:c,renderNotifications:xk,stack:u===!1?!1:{threshold:typeof u=="object"?u==null?void 0:u.threshold:void 0,offset:8,gap:h.margin}});return G.useImperativeHandle(t,()=>Object.assign(Object.assign({},S),{prefixCls:C,notification:g})),$});function LE(e){const t=G.useRef(null);return Fo(),[G.useMemo(()=>{const r=l=>{var c;if(!t.current)return;const{open:u,prefixCls:d,notification:f}=t.current,m=`${d}-notice`,{message:g,description:y,icon:h,type:C,btn:p,className:v,style:b,role:S="alert",closeIcon:$,closable:x}=l,w=yk(l,["message","description","icon","type","btn","className","style","role","closeIcon","closable"]),O=jh(m,typeof $<"u"?$:f==null?void 0:f.closeIcon);return u(Object.assign(Object.assign({placement:(c=e==null?void 0:e.placement)!==null&&c!==void 0?c:Ck},w),{content:G.createElement(jE,{prefixCls:m,icon:h,type:C,message:g,description:y,btn:p,role:S}),className:V(C&&`${m}-${C}`,v,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),b),closeIcon:O,closable:x??!!O}))},a={open:r,destroy:l=>{var c,u;l!==void 0?(c=t.current)===null||c===void 0||c.close(l):(u=t.current)===null||u===void 0||u.destroy()}};return["success","info","warning","error"].forEach(l=>{a[l]=c=>r(Object.assign(Object.assign({},c),{type:l}))}),a},[]),G.createElement($k,Object.assign({key:"notification-holder"},e,{ref:t}))]}function kE(e){return LE(e)}const ud=G.createContext({}),wk=G.createContext({message:{},notification:{},modal:{}}),DE=wk,Ek=e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:o,fontFamily:a}=e;return{[t]:{color:n,fontSize:r,lineHeight:o,fontFamily:a}}},Ok=()=>({}),Ik=_t("App",Ek,Ok),Pk=()=>G.useContext(DE),BE=e=>{const{prefixCls:t,children:n,className:r,rootClassName:o,message:a,notification:i,style:l,component:c="div"}=e,{getPrefixCls:u}=s.useContext(je),d=u("app",t),[f,m,g]=Ik(d),y=V(m,d,r,o,g),h=s.useContext(ud),C=G.useMemo(()=>({message:Object.assign(Object.assign({},h.message),a),notification:Object.assign(Object.assign({},h.notification),i)}),[a,i,h.message,h.notification]),[p,v]=Bw(C.message),[b,S]=kE(C.notification),[$,x]=NE(),w=G.useMemo(()=>({message:p,notification:b,modal:$}),[p,b,$]),O=c===!1?G.Fragment:c,E={className:y,style:l};return f(G.createElement(DE.Provider,{value:w},G.createElement(ud.Provider,{value:C},G.createElement(O,Object.assign({},c===!1?void 0:E),x,v,S,n))))};BE.useApp=Pk;const NU=BE;function FE(e){return t=>s.createElement(tc,{theme:{token:{motion:!1,zIndexPopupBase:0}}},s.createElement(e,Object.assign({},t)))}const AE=(e,t,n,r)=>FE(a=>{const{prefixCls:i,style:l}=a,c=s.useRef(null),[u,d]=s.useState(0),[f,m]=s.useState(0),[g,y]=Jt(!1,{value:a.open}),{getPrefixCls:h}=s.useContext(je),C=h(t||"select",i);s.useEffect(()=>{if(y(!0),typeof ResizeObserver<"u"){const b=new ResizeObserver($=>{const x=$[0].target;d(x.offsetHeight+8),m(x.offsetWidth)}),S=setInterval(()=>{var $;const x=n?`.${n(C)}`:`.${C}-dropdown`,w=($=c.current)===null||$===void 0?void 0:$.querySelector(x);w&&(clearInterval(S),b.observe(w))},10);return()=>{clearInterval(S),b.disconnect()}}},[]);let p=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},l),{margin:0}),open:g,visible:g,getPopupContainer:()=>c.current});r&&(p=r(p));const v={paddingBottom:u,position:"relative",minWidth:f};return s.createElement("div",{ref:c,style:v},s.createElement(e,Object.assign({},p)))}),Lh=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 gf=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,a=t.children,i=t.onMouseDown,l=t.onClick,c=typeof r=="function"?r(o):r;return s.createElement("span",{className:n,onMouseDown:function(d){d.preventDefault(),i==null||i(d)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:l,"aria-hidden":!0},c!==void 0?c:s.createElement("span",{className:V(n.split(/\s+/).map(function(u){return"".concat(u,"-icon")}))},a))},Rk=function(t,n,r,o,a){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,l=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,u=G.useMemo(function(){if(at(o)==="object")return o.clearIcon;if(a)return a},[o,a]),d=G.useMemo(function(){return!!(!i&&o&&(r.length||l)&&!(c==="combobox"&&l===""))},[o,i,r.length,l,c]);return{allowClear:d,clearIcon:G.createElement(gf,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:u},"×")}},HE=s.createContext(null);function Nk(){return s.useContext(HE)}function Tk(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=s.useState(!1),n=Q(t,2),r=n[0],o=n[1],a=s.useRef(null),i=function(){window.clearTimeout(a.current)};s.useEffect(function(){return i},[]);var l=function(u,d){i(),a.current=window.setTimeout(function(){o(u),d&&d()},e)};return[r,l,i]}function VE(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=s.useRef(null),n=s.useRef(null);s.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(o){(o||t.current===null)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function Mk(e,t,n,r){var o=s.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},s.useEffect(function(){function a(i){var l;if(!((l=o.current)!==null&&l!==void 0&&l.customizedTrigger)){var c=i.target;c.shadowRoot&&i.composed&&(c=i.composedPath()[0]||c),o.current.open&&e().filter(function(u){return u}).every(function(u){return!u.contains(c)&&u!==c})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",a),function(){return window.removeEventListener("mousedown",a)}},[])}function _k(e){return![fe.ESC,fe.SHIFT,fe.BACKSPACE,fe.TAB,fe.WIN_KEY,fe.ALT,fe.META,fe.WIN_KEY_RIGHT,fe.CTRL,fe.SEMICOLON,fe.EQUALS,fe.CAPS_LOCK,fe.CONTEXT_MENU,fe.F1,fe.F2,fe.F3,fe.F4,fe.F5,fe.F6,fe.F7,fe.F8,fe.F9,fe.F10,fe.F11,fe.F12].includes(e)}var zk=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],ui=void 0;function jk(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,a=e.renderItem,i=e.responsive,l=e.responsiveDisabled,c=e.registerSize,u=e.itemKey,d=e.className,f=e.style,m=e.children,g=e.display,y=e.order,h=e.component,C=h===void 0?"div":h,p=tt(e,zk),v=i&&!g;function b(O){c(u,O)}s.useEffect(function(){return function(){b(null)}},[]);var S=a&&o!==ui?a(o):m,$;r||($={opacity:v?0:1,height:v?0:ui,overflowY:v?"hidden":ui,order:i?y:ui,pointerEvents:v?"none":ui,position:v?"absolute":ui});var x={};v&&(x["aria-hidden"]=!0);var w=s.createElement(C,ce({className:V(!r&&n,d),style:A(A({},$),f)},x,p,{ref:t}),S);return i&&(w=s.createElement(ir,{onResize:function(E){var I=E.offsetWidth;b(I)},disabled:l},w)),w}var ls=s.forwardRef(jk);ls.displayName="Item";function Lk(e){if(typeof MessageChannel>"u")It(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function kk(){var e=s.useRef(null),t=function(r){e.current||(e.current=[],Lk(function(){To.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(r)};return t}function Ll(e,t){var n=s.useState(t),r=Q(n,2),o=r[0],a=r[1],i=Ft(function(l){e(function(){a(l)})});return[o,i]}var dd=G.createContext(null),Dk=["component"],Bk=["className"],Fk=["className"],Ak=function(t,n){var r=s.useContext(dd);if(!r){var o=t.component,a=o===void 0?"div":o,i=tt(t,Dk);return s.createElement(a,ce({},i,{ref:n}))}var l=r.className,c=tt(r,Bk),u=t.className,d=tt(t,Fk);return s.createElement(dd.Provider,{value:null},s.createElement(ls,ce({ref:n,className:V(l,u)},c,d)))},KE=s.forwardRef(Ak);KE.displayName="RawItem";var Hk=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],WE="responsive",GE="invalidate";function Vk(e){return"+ ".concat(e.length," ...")}function Kk(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,a=o===void 0?[]:o,i=e.renderItem,l=e.renderRawItem,c=e.itemKey,u=e.itemWidth,d=u===void 0?10:u,f=e.ssr,m=e.style,g=e.className,y=e.maxCount,h=e.renderRest,C=e.renderRawRest,p=e.suffix,v=e.component,b=v===void 0?"div":v,S=e.itemComponent,$=e.onVisibleChange,x=tt(e,Hk),w=f==="full",O=kk(),E=Ll(O,null),I=Q(E,2),T=I[0],_=I[1],R=T||0,M=Ll(O,new Map),L=Q(M,2),z=L[0],P=L[1],N=Ll(O,0),k=Q(N,2),j=k[0],B=k[1],F=Ll(O,0),K=Q(F,2),X=K[0],U=K[1],re=Ll(O,0),Z=Q(re,2),ne=Z[0],le=Z[1],ee=s.useState(null),q=Q(ee,2),te=q[0],J=q[1],W=s.useState(null),Y=Q(W,2),de=Y[0],oe=Y[1],se=s.useMemo(function(){return de===null&&w?Number.MAX_SAFE_INTEGER:de||0},[de,T]),ae=s.useState(!1),ie=Q(ae,2),pe=ie[0],me=ie[1],ge="".concat(r,"-item"),ve=Math.max(j,X),$e=y===WE,we=a.length&&$e,We=y===GE,_e=we||typeof y=="number"&&a.length>y,Se=s.useMemo(function(){var De=a;return we?T===null&&w?De=a:De=a.slice(0,Math.min(a.length,R/d)):typeof y=="number"&&(De=a.slice(0,y)),De},[a,d,T,y,we]),Ce=s.useMemo(function(){return we?a.slice(se+1):a.slice(Se.length)},[a,Se,we,se]),Oe=s.useCallback(function(De,xe){var ze;return typeof c=="function"?c(De):(ze=c&&(De==null?void 0:De[c]))!==null&&ze!==void 0?ze:xe},[c]),ke=s.useCallback(i||function(De){return De},[i]);function Ze(De,xe,ze){de===De&&(xe===void 0||xe===te)||(oe(De),ze||(me(DeR){Ze(rt-1,De-ye-ne+X);break}}p&&Ae(0)+ne>R&&J(null)}},[R,z,X,ne,Oe,Se]);var lt=pe&&!!Ce.length,ut={};te!==null&&we&&(ut={position:"absolute",left:te,top:0});var St={prefixCls:ge,responsive:we,component:S,invalidate:We},st=l?function(De,xe){var ze=Oe(De,xe);return s.createElement(dd.Provider,{key:ze,value:A(A({},St),{},{order:xe,item:De,itemKey:ze,registerSize:Ve,display:xe<=se})},l(De,xe))}:function(De,xe){var ze=Oe(De,xe);return s.createElement(ls,ce({},St,{order:xe,key:ze,item:De,renderItem:ke,itemKey:ze,registerSize:Ve,display:xe<=se}))},vt,nt={order:lt?se:Number.MAX_SAFE_INTEGER,className:"".concat(ge,"-rest"),registerSize:it,display:lt};if(C)C&&(vt=s.createElement(dd.Provider,{value:A(A({},St),nt)},C(Ce)));else{var Me=h||Vk;vt=s.createElement(ls,ce({},St,nt),typeof Me=="function"?Me(Ce):Me)}var Xe=s.createElement(b,ce({className:V(!We&&r,g),style:m,ref:t},x),Se.map(st),_e?vt:null,p&&s.createElement(ls,ce({},St,{responsive:$e,responsiveDisabled:!we,order:se,className:"".concat(ge,"-suffix"),registerSize:Je,display:!0,style:ut}),p));return $e&&(Xe=s.createElement(ir,{onResize:He,disabled:!we},Xe)),Xe}var fo=s.forwardRef(Kk);fo.displayName="Overflow";fo.Item=KE;fo.RESPONSIVE=WE;fo.INVALIDATE=GE;var Wk=function(t,n){var r,o=t.prefixCls,a=t.id,i=t.inputElement,l=t.disabled,c=t.tabIndex,u=t.autoFocus,d=t.autoComplete,f=t.editable,m=t.activeDescendantId,g=t.value,y=t.maxLength,h=t.onKeyDown,C=t.onMouseDown,p=t.onChange,v=t.onPaste,b=t.onCompositionStart,S=t.onCompositionEnd,$=t.open,x=t.attrs,w=i||s.createElement("input",null),O=w,E=O.ref,I=O.props,T=I.onKeyDown,_=I.onChange,R=I.onMouseDown,M=I.onCompositionStart,L=I.onCompositionEnd,z=I.style;return"maxLength"in w.props,w=s.cloneElement(w,A(A(A({type:"search"},I),{},{id:a,ref:Br(n,E),disabled:l,tabIndex:c,autoComplete:d||"off",autoFocus:u,className:V("".concat(o,"-selection-search-input"),(r=w)===null||r===void 0||(r=r.props)===null||r===void 0?void 0:r.className),role:"combobox","aria-expanded":$||!1,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":$?m:void 0},x),{},{value:f?g:"",maxLength:y,readOnly:!f,unselectable:f?null:"on",style:A(A({},z),{},{opacity:f?null:0}),onKeyDown:function(N){h(N),T&&T(N)},onMouseDown:function(N){C(N),R&&R(N)},onChange:function(N){p(N),_&&_(N)},onCompositionStart:function(N){b(N),M&&M(N)},onCompositionEnd:function(N){S(N),L&&L(N)},onPaste:v})),w},UE=s.forwardRef(Wk);function qE(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var Gk=typeof window<"u"&&window.document&&window.document.documentElement,Uk=Gk;function qk(e){return e!=null}function Xk(e){return!e&&e!==0}function uC(e){return["string","number"].includes(at(e))}function XE(e){var t=void 0;return e&&(uC(e.title)?t=e.title.toString():uC(e.label)&&(t=e.label.toString())),t}function Yk(e,t){Uk?s.useLayoutEffect(e,t):s.useEffect(e,t)}function Qk(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var dC=function(t){t.preventDefault(),t.stopPropagation()},Zk=function(t){var n=t.id,r=t.prefixCls,o=t.values,a=t.open,i=t.searchValue,l=t.autoClearSearchValue,c=t.inputRef,u=t.placeholder,d=t.disabled,f=t.mode,m=t.showSearch,g=t.autoFocus,y=t.autoComplete,h=t.activeDescendantId,C=t.tabIndex,p=t.removeIcon,v=t.maxTagCount,b=t.maxTagTextLength,S=t.maxTagPlaceholder,$=S===void 0?function(J){return"+ ".concat(J.length," ...")}:S,x=t.tagRender,w=t.onToggleOpen,O=t.onRemove,E=t.onInputChange,I=t.onInputPaste,T=t.onInputKeyDown,_=t.onInputMouseDown,R=t.onInputCompositionStart,M=t.onInputCompositionEnd,L=s.useRef(null),z=s.useState(0),P=Q(z,2),N=P[0],k=P[1],j=s.useState(!1),B=Q(j,2),F=B[0],K=B[1],X="".concat(r,"-selection"),U=a||f==="multiple"&&l===!1||f==="tags"?i:"",re=f==="tags"||f==="multiple"&&l===!1||m&&(a||F);Yk(function(){k(L.current.scrollWidth)},[U]);var Z=function(W,Y,de,oe,se){return s.createElement("span",{title:XE(W),className:V("".concat(X,"-item"),D({},"".concat(X,"-item-disabled"),de))},s.createElement("span",{className:"".concat(X,"-item-content")},Y),oe&&s.createElement(gf,{className:"".concat(X,"-item-remove"),onMouseDown:dC,onClick:se,customizeIcon:p},"×"))},ne=function(W,Y,de,oe,se){var ae=function(pe){dC(pe),w(!a)};return s.createElement("span",{onMouseDown:ae},x({label:Y,value:W,disabled:de,closable:oe,onClose:se}))},le=function(W){var Y=W.disabled,de=W.label,oe=W.value,se=!d&&!Y,ae=de;if(typeof b=="number"&&(typeof de=="string"||typeof de=="number")){var ie=String(ae);ie.length>b&&(ae="".concat(ie.slice(0,b),"..."))}var pe=function(ge){ge&&ge.stopPropagation(),O(W)};return typeof x=="function"?ne(oe,ae,Y,se,pe):Z(W,ae,Y,se,pe)},ee=function(W){var Y=typeof $=="function"?$(W):$;return Z({title:Y},Y,!1)},q=s.createElement("div",{className:"".concat(X,"-search"),style:{width:N},onFocus:function(){K(!0)},onBlur:function(){K(!1)}},s.createElement(UE,{ref:c,open:a,prefixCls:r,id:n,inputElement:null,disabled:d,autoFocus:g,autoComplete:y,editable:re,activeDescendantId:h,value:U,onKeyDown:T,onMouseDown:_,onChange:E,onPaste:I,onCompositionStart:R,onCompositionEnd:M,tabIndex:C,attrs:qn(t,!0)}),s.createElement("span",{ref:L,className:"".concat(X,"-search-mirror"),"aria-hidden":!0},U," ")),te=s.createElement(fo,{prefixCls:"".concat(X,"-overflow"),data:o,renderItem:le,renderRest:ee,suffix:q,itemKey:Qk,maxCount:v});return s.createElement(s.Fragment,null,te,!o.length&&!U&&s.createElement("span",{className:"".concat(X,"-placeholder")},u))},Jk=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,a=t.inputRef,i=t.disabled,l=t.autoFocus,c=t.autoComplete,u=t.activeDescendantId,d=t.mode,f=t.open,m=t.values,g=t.placeholder,y=t.tabIndex,h=t.showSearch,C=t.searchValue,p=t.activeValue,v=t.maxLength,b=t.onInputKeyDown,S=t.onInputMouseDown,$=t.onInputChange,x=t.onInputPaste,w=t.onInputCompositionStart,O=t.onInputCompositionEnd,E=t.title,I=s.useState(!1),T=Q(I,2),_=T[0],R=T[1],M=d==="combobox",L=M||h,z=m[0],P=C||"";M&&p&&!_&&(P=p),s.useEffect(function(){M&&R(!1)},[M,p]);var N=d!=="combobox"&&!f&&!h?!1:!!P,k=E===void 0?XE(z):E,j=s.useMemo(function(){return z?null:s.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:N?{visibility:"hidden"}:void 0},g)},[z,N,g,r]);return s.createElement(s.Fragment,null,s.createElement("span",{className:"".concat(r,"-selection-search")},s.createElement(UE,{ref:a,prefixCls:r,id:o,open:f,inputElement:n,disabled:i,autoFocus:l,autoComplete:c,editable:L,activeDescendantId:u,value:P,onKeyDown:b,onMouseDown:S,onChange:function(F){R(!0),$(F)},onPaste:x,onCompositionStart:w,onCompositionEnd:O,tabIndex:y,attrs:qn(t,!0),maxLength:M?v:void 0})),!M&&z?s.createElement("span",{className:"".concat(r,"-selection-item"),title:k,style:N?{visibility:"hidden"}:void 0},z.label):null,j)},e3=function(t,n){var r=s.useRef(null),o=s.useRef(!1),a=t.prefixCls,i=t.open,l=t.mode,c=t.showSearch,u=t.tokenWithEnter,d=t.autoClearSearchValue,f=t.onSearch,m=t.onSearchSubmit,g=t.onToggleOpen,y=t.onInputKeyDown,h=t.domRef;s.useImperativeHandle(n,function(){return{focus:function(P){r.current.focus(P)},blur:function(){r.current.blur()}}});var C=VE(0),p=Q(C,2),v=p[0],b=p[1],S=function(P){var N=P.which;(N===fe.UP||N===fe.DOWN)&&P.preventDefault(),y&&y(P),N===fe.ENTER&&l==="tags"&&!o.current&&!i&&(m==null||m(P.target.value)),_k(N)&&g(!0)},$=function(){b(!0)},x=s.useRef(null),w=function(P){f(P,!0,o.current)!==!1&&g(!0)},O=function(){o.current=!0},E=function(P){o.current=!1,l!=="combobox"&&w(P.target.value)},I=function(P){var N=P.target.value;if(u&&x.current&&/[\r\n]/.test(x.current)){var k=x.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");N=N.replace(k,x.current)}x.current=null,w(N)},T=function(P){var N=P.clipboardData,k=N==null?void 0:N.getData("text");x.current=k||""},_=function(P){var N=P.target;if(N!==r.current){var k=document.body.style.msTouchAction!==void 0;k?setTimeout(function(){r.current.focus()}):r.current.focus()}},R=function(P){var N=v();P.target!==r.current&&!N&&l!=="combobox"&&P.preventDefault(),(l!=="combobox"&&(!c||!N)||!i)&&(i&&d!==!1&&f("",!0,!1),g())},M={inputRef:r,onInputKeyDown:S,onInputMouseDown:$,onInputChange:I,onInputPaste:T,onInputCompositionStart:O,onInputCompositionEnd:E},L=l==="multiple"||l==="tags"?s.createElement(Zk,ce({},t,M)):s.createElement(Jk,ce({},t,M));return s.createElement("div",{ref:h,className:"".concat(a,"-selector"),onClick:_,onMouseDown:R},L)},t3=s.forwardRef(e3);function n3(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,a=r||{},i=a.className,l=a.content,c=o.x,u=c===void 0?0:c,d=o.y,f=d===void 0?0:d,m=s.useRef();if(!n||!n.points)return null;var g={position:"absolute"};if(n.autoArrow!==!1){var y=n.points[0],h=n.points[1],C=y[0],p=y[1],v=h[0],b=h[1];C===v||!["t","b"].includes(C)?g.top=f:C==="t"?g.top=0:g.bottom=0,p===b||!["l","r"].includes(p)?g.left=u:p==="l"?g.left=0:g.right=0}return s.createElement("div",{ref:m,className:V("".concat(t,"-arrow"),i),style:g},l)}function r3(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,a=e.motion;return o?s.createElement(ro,ce({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(i){var l=i.className;return s.createElement("div",{style:{zIndex:r},className:V("".concat(t,"-mask"),l)})}):null}var o3=s.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),a3=s.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,a=e.style,i=e.target,l=e.onVisibleChanged,c=e.open,u=e.keepDom,d=e.fresh,f=e.onClick,m=e.mask,g=e.arrow,y=e.arrowPos,h=e.align,C=e.motion,p=e.maskMotion,v=e.forceRender,b=e.getPopupContainer,S=e.autoDestroy,$=e.portal,x=e.zIndex,w=e.onMouseEnter,O=e.onMouseLeave,E=e.onPointerEnter,I=e.ready,T=e.offsetX,_=e.offsetY,R=e.offsetR,M=e.offsetB,L=e.onAlign,z=e.onPrepare,P=e.stretch,N=e.targetWidth,k=e.targetHeight,j=typeof n=="function"?n():n,B=c||u,F=(b==null?void 0:b.length)>0,K=s.useState(!b||!F),X=Q(K,2),U=X[0],re=X[1];if(Mt(function(){!U&&F&&i&&re(!0)},[U,F,i]),!U)return null;var Z="auto",ne={left:"-1000vw",top:"-1000vh",right:Z,bottom:Z};if(I||!c){var le,ee=h.points,q=h.dynamicInset||((le=h._experimental)===null||le===void 0?void 0:le.dynamicInset),te=q&&ee[0][1]==="r",J=q&&ee[0][0]==="b";te?(ne.right=R,ne.left=Z):(ne.left=T,ne.right=Z),J?(ne.bottom=M,ne.top=Z):(ne.top=_,ne.bottom=Z)}var W={};return P&&(P.includes("height")&&k?W.height=k:P.includes("minHeight")&&k&&(W.minHeight=k),P.includes("width")&&N?W.width=N:P.includes("minWidth")&&N&&(W.minWidth=N)),c||(W.pointerEvents="none"),s.createElement($,{open:v||B,getContainer:b&&function(){return b(i)},autoDestroy:S},s.createElement(r3,{prefixCls:o,open:c,zIndex:x,mask:m,motion:p}),s.createElement(ir,{onResize:L,disabled:!c},function(Y){return s.createElement(ro,ce({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:v,leavedClassName:"".concat(o,"-hidden")},C,{onAppearPrepare:z,onEnterPrepare:z,visible:c,onVisibleChanged:function(oe){var se;C==null||(se=C.onVisibleChanged)===null||se===void 0||se.call(C,oe),l(oe)}}),function(de,oe){var se=de.className,ae=de.style,ie=V(o,se,r);return s.createElement("div",{ref:Br(Y,t,oe),className:ie,style:A(A(A(A({"--arrow-x":"".concat(y.x||0,"px"),"--arrow-y":"".concat(y.y||0,"px")},ne),W),ae),{},{boxSizing:"border-box",zIndex:x},a),onMouseEnter:w,onMouseLeave:O,onPointerEnter:E,onClick:f},g&&s.createElement(n3,{prefixCls:o,arrow:g,arrowPos:y,align:h}),s.createElement(o3,{cache:!c&&!d},j))})}))}),i3=s.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=to(n),a=s.useCallback(function(l){Ps(t,r?r(l):l)},[r]),i=Sa(a,n.ref);return o?s.cloneElement(n,{ref:i}):n}),fC=s.createContext(null);function mC(e){return e?Array.isArray(e)?e:[e]:[]}function l3(e,t,n,r){return s.useMemo(function(){var o=mC(n??t),a=mC(r??t),i=new Set(o),l=new Set(a);return e&&(i.has("hover")&&(i.delete("hover"),i.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[i,l]},[e,t,n,r])}function s3(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function c3(e,t,n,r){for(var o=n.points,a=Object.keys(e),i=0;i1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function kl(e){return Bs(parseFloat(e),0)}function pC(e,t){var n=A({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=dc(r).getComputedStyle(r),a=o.overflow,i=o.overflowClipMargin,l=o.borderTopWidth,c=o.borderBottomWidth,u=o.borderLeftWidth,d=o.borderRightWidth,f=r.getBoundingClientRect(),m=r.offsetHeight,g=r.clientHeight,y=r.offsetWidth,h=r.clientWidth,C=kl(l),p=kl(c),v=kl(u),b=kl(d),S=Bs(Math.round(f.width/y*1e3)/1e3),$=Bs(Math.round(f.height/m*1e3)/1e3),x=(y-h-v-b)*S,w=(m-g-C-p)*$,O=C*$,E=p*$,I=v*S,T=b*S,_=0,R=0;if(a==="clip"){var M=kl(i);_=M*S,R=M*$}var L=f.x+I-_,z=f.y+O-R,P=L+f.width+2*_-I-T-x,N=z+f.height+2*R-O-E-w;n.left=Math.max(n.left,L),n.top=Math.max(n.top,z),n.right=Math.min(n.right,P),n.bottom=Math.min(n.bottom,N)}}),n}function vC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function hC(e,t){var n=t||[],r=Q(n,2),o=r[0],a=r[1];return[vC(e.width,o),vC(e.height,a)]}function yC(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function di(e,t){var n=t[0],r=t[1],o,a;return n==="t"?a=e.y:n==="b"?a=e.y+e.height:a=e.y+e.height/2,r==="l"?o=e.x:r==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:a}}function Wo(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,o){return o===t?n[r]||"c":r}).join("")}function u3(e,t,n,r,o,a,i){var l=s.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),c=Q(l,2),u=c[0],d=c[1],f=s.useRef(0),m=s.useMemo(function(){return t?Mp(t):[]},[t]),g=s.useRef({}),y=function(){g.current={}};e||y();var h=Ft(function(){if(t&&n&&e){let Wn=function(pt,dt){var Xt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ie,Rn=j.x+pt,Yt=j.y+dt,Ar=Rn+le,fr=Yt+ne,Or=Math.max(Rn,Xt.left),po=Math.max(Yt,Xt.top),xa=Math.min(Ar,Xt.right),jf=Math.min(fr,Xt.bottom);return Math.max(0,(xa-Or)*(jf-po))},ai=function(){Be=j.y+Me,Ee=Be+ne,be=j.x+nt,Ue=be+le};var v,b,S=t,$=S.ownerDocument,x=dc(S),w=x.getComputedStyle(S),O=w.width,E=w.height,I=w.position,T=S.style.left,_=S.style.top,R=S.style.right,M=S.style.bottom,L=S.style.overflow,z=A(A({},o[r]),a),P=$.createElement("div");(v=S.parentElement)===null||v===void 0||v.appendChild(P),P.style.left="".concat(S.offsetLeft,"px"),P.style.top="".concat(S.offsetTop,"px"),P.style.position=I,P.style.height="".concat(S.offsetHeight,"px"),P.style.width="".concat(S.offsetWidth,"px"),S.style.left="0",S.style.top="0",S.style.right="auto",S.style.bottom="auto",S.style.overflow="hidden";var N;if(Array.isArray(n))N={x:n[0],y:n[1],width:0,height:0};else{var k=n.getBoundingClientRect();N={x:k.x,y:k.y,width:k.width,height:k.height}}var j=S.getBoundingClientRect(),B=$.documentElement,F=B.clientWidth,K=B.clientHeight,X=B.scrollWidth,U=B.scrollHeight,re=B.scrollTop,Z=B.scrollLeft,ne=j.height,le=j.width,ee=N.height,q=N.width,te={left:0,top:0,right:F,bottom:K},J={left:-Z,top:-re,right:X-Z,bottom:U-re},W=z.htmlRegion,Y="visible",de="visibleFirst";W!=="scroll"&&W!==de&&(W=Y);var oe=W===de,se=pC(J,m),ae=pC(te,m),ie=W===Y?ae:se,pe=oe?ae:ie;S.style.left="auto",S.style.top="auto",S.style.right="0",S.style.bottom="0";var me=S.getBoundingClientRect();S.style.left=T,S.style.top=_,S.style.right=R,S.style.bottom=M,S.style.overflow=L,(b=S.parentElement)===null||b===void 0||b.removeChild(P);var ge=Bs(Math.round(le/parseFloat(O)*1e3)/1e3),ve=Bs(Math.round(ne/parseFloat(E)*1e3)/1e3);if(ge===0||ve===0||Zu(n)&&!oc(n))return;var $e=z.offset,we=z.targetOffset,We=hC(j,$e),_e=Q(We,2),Se=_e[0],Ce=_e[1],Oe=hC(N,we),ke=Q(Oe,2),Ze=ke[0],He=ke[1];N.x-=Ze,N.y-=He;var Ve=z.points||[],it=Q(Ve,2),Je=it[0],Ae=it[1],lt=yC(Ae),ut=yC(Je),St=di(N,lt),st=di(j,ut),vt=A({},z),nt=St.x-st.x+Se,Me=St.y-st.y+Ce,Xe=Wn(nt,Me),De=Wn(nt,Me,ae),xe=di(N,["t","l"]),ze=di(j,["t","l"]),rt=di(N,["b","r"]),ye=di(j,["b","r"]),Re=z.overflow||{},Pe=Re.adjustX,Ge=Re.adjustY,ot=Re.shiftX,et=Re.shiftY,Et=function(dt){return typeof dt=="boolean"?dt:dt>=0},Be,Ee,be,Ue;ai();var Ne=Et(Ge),Te=ut[0]===lt[0];if(Ne&&ut[0]==="t"&&(Ee>pe.bottom||g.current.bt)){var Fe=Me;Te?Fe-=ne-ee:Fe=xe.y-ye.y-Ce;var ct=Wn(nt,Fe),xt=Wn(nt,Fe,ae);ct>Xe||ct===Xe&&(!oe||xt>=De)?(g.current.bt=!0,Me=Fe,Ce=-Ce,vt.points=[Wo(ut,0),Wo(lt,0)]):g.current.bt=!1}if(Ne&&ut[0]==="b"&&(BeXe||gt===Xe&&(!oe||en>=De)?(g.current.tb=!0,Me=Ut,Ce=-Ce,vt.points=[Wo(ut,0),Wo(lt,0)]):g.current.tb=!1}var tn=Et(Pe),pn=ut[1]===lt[1];if(tn&&ut[1]==="l"&&(Ue>pe.right||g.current.rl)){var At=nt;pn?At-=le-q:At=xe.x-ye.x-Se;var Kn=Wn(At,Me),kn=Wn(At,Me,ae);Kn>Xe||Kn===Xe&&(!oe||kn>=De)?(g.current.rl=!0,nt=At,Se=-Se,vt.points=[Wo(ut,1),Wo(lt,1)]):g.current.rl=!1}if(tn&&ut[1]==="r"&&(beXe||mt===Xe&&(!oe||Ot>=De)?(g.current.lr=!0,nt=Qe,Se=-Se,vt.points=[Wo(ut,1),Wo(lt,1)]):g.current.lr=!1}ai();var Bt=ot===!0?0:ot;typeof Bt=="number"&&(beae.right&&(nt-=Ue-ae.right-Se,N.x>ae.right-Bt&&(nt+=N.x-ae.right+Bt)));var un=et===!0?0:et;typeof un=="number"&&(Beae.bottom&&(Me-=Ee-ae.bottom-Ce,N.y>ae.bottom-un&&(Me+=N.y-ae.bottom+un)));var Er=j.x+nt,Fr=Er+le,er=j.y+Me,ur=er+ne,Rt=N.x,ht=Rt+q,Le=N.y,qe=Le+ee,Ct=Math.max(Er,Rt),Ht=Math.min(Fr,ht),Tt=(Ct+Ht)/2,qt=Tt-Er,vn=Math.max(er,Le),In=Math.min(ur,qe),an=(vn+In)/2,wn=an-er;i==null||i(t,vt);var Pn=me.right-j.x-(nt+j.width),dr=me.bottom-j.y-(Me+j.height);d({ready:!0,offsetX:nt/ge,offsetY:Me/ve,offsetR:Pn/ge,offsetB:dr/ve,arrowX:qt/ge,arrowY:wn/ve,scaleX:ge,scaleY:ve,align:vt})}}),C=function(){f.current+=1;var b=f.current;Promise.resolve().then(function(){f.current===b&&h()})},p=function(){d(function(b){return A(A({},b),{},{ready:!1})})};return Mt(p,[r]),Mt(function(){e||p()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,C]}function d3(e,t,n,r,o){Mt(function(){if(e&&t&&n){let f=function(){r(),o()};var a=t,i=n,l=Mp(a),c=Mp(i),u=dc(i),d=new Set([u].concat(ue(l),ue(c)));return d.forEach(function(m){m.addEventListener("scroll",f,{passive:!0})}),u.addEventListener("resize",f,{passive:!0}),r(),function(){d.forEach(function(m){m.removeEventListener("scroll",f),u.removeEventListener("resize",f)})}}},[e,t,n])}function f3(e,t,n,r,o,a,i,l){var c=s.useRef(e);c.current=e,s.useEffect(function(){if(t&&r&&(!o||a)){var u=function(g){var y=g.target;c.current&&!i(y)&&l(!1)},d=dc(r);d.addEventListener("mousedown",u,!0),d.addEventListener("contextmenu",u,!0);var f=od(n);return f&&(f.addEventListener("mousedown",u,!0),f.addEventListener("contextmenu",u,!0)),function(){d.removeEventListener("mousedown",u,!0),d.removeEventListener("contextmenu",u,!0),f&&(f.removeEventListener("mousedown",u,!0),f.removeEventListener("contextmenu",u,!0))}}},[t,n,r,o,a])}var m3=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function g3(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:wh,t=s.forwardRef(function(n,r){var o=n.prefixCls,a=o===void 0?"rc-trigger-popup":o,i=n.children,l=n.action,c=l===void 0?"hover":l,u=n.showAction,d=n.hideAction,f=n.popupVisible,m=n.defaultPopupVisible,g=n.onPopupVisibleChange,y=n.afterPopupVisibleChange,h=n.mouseEnterDelay,C=n.mouseLeaveDelay,p=C===void 0?.1:C,v=n.focusDelay,b=n.blurDelay,S=n.mask,$=n.maskClosable,x=$===void 0?!0:$,w=n.getPopupContainer,O=n.forceRender,E=n.autoDestroy,I=n.destroyPopupOnHide,T=n.popup,_=n.popupClassName,R=n.popupStyle,M=n.popupPlacement,L=n.builtinPlacements,z=L===void 0?{}:L,P=n.popupAlign,N=n.zIndex,k=n.stretch,j=n.getPopupClassNameFromAlign,B=n.fresh,F=n.alignPoint,K=n.onPopupClick,X=n.onPopupAlign,U=n.arrow,re=n.popupMotion,Z=n.maskMotion,ne=n.popupTransitionName,le=n.popupAnimation,ee=n.maskTransitionName,q=n.maskAnimation,te=n.className,J=n.getTriggerDOMNode,W=tt(n,m3),Y=E||I||!1,de=s.useState(!1),oe=Q(de,2),se=oe[0],ae=oe[1];Mt(function(){ae(Lh())},[]);var ie=s.useRef({}),pe=s.useContext(fC),me=s.useMemo(function(){return{registerSubPopup:function(ft,ln){ie.current[ft]=ln,pe==null||pe.registerSubPopup(ft,ln)}}},[pe]),ge=Jw(),ve=s.useState(null),$e=Q(ve,2),we=$e[0],We=$e[1],_e=s.useRef(null),Se=Ft(function(Ye){_e.current=Ye,Zu(Ye)&&we!==Ye&&We(Ye),pe==null||pe.registerSubPopup(ge,Ye)}),Ce=s.useState(null),Oe=Q(Ce,2),ke=Oe[0],Ze=Oe[1],He=s.useRef(null),Ve=Ft(function(Ye){Zu(Ye)&&ke!==Ye&&(Ze(Ye),He.current=Ye)}),it=s.Children.only(i),Je=(it==null?void 0:it.props)||{},Ae={},lt=Ft(function(Ye){var ft,ln,Cn=ke;return(Cn==null?void 0:Cn.contains(Ye))||((ft=od(Cn))===null||ft===void 0?void 0:ft.host)===Ye||Ye===Cn||(we==null?void 0:we.contains(Ye))||((ln=od(we))===null||ln===void 0?void 0:ln.host)===Ye||Ye===we||Object.values(ie.current).some(function(sn){return(sn==null?void 0:sn.contains(Ye))||Ye===sn})}),ut=gC(a,re,le,ne),St=gC(a,Z,q,ee),st=s.useState(m||!1),vt=Q(st,2),nt=vt[0],Me=vt[1],Xe=f??nt,De=Ft(function(Ye){f===void 0&&Me(Ye)});Mt(function(){Me(f||!1)},[f]);var xe=s.useRef(Xe);xe.current=Xe;var ze=s.useRef([]);ze.current=[];var rt=Ft(function(Ye){var ft;De(Ye),((ft=ze.current[ze.current.length-1])!==null&&ft!==void 0?ft:Xe)!==Ye&&(ze.current.push(Ye),g==null||g(Ye))}),ye=s.useRef(),Re=function(){clearTimeout(ye.current)},Pe=function(ft){var ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Re(),ln===0?rt(ft):ye.current=setTimeout(function(){rt(ft)},ln*1e3)};s.useEffect(function(){return Re},[]);var Ge=s.useState(!1),ot=Q(Ge,2),et=ot[0],Et=ot[1];Mt(function(Ye){(!Ye||Xe)&&Et(!0)},[Xe]);var Be=s.useState(null),Ee=Q(Be,2),be=Ee[0],Ue=Ee[1],Ne=s.useState([0,0]),Te=Q(Ne,2),Fe=Te[0],ct=Te[1],xt=function(ft){ct([ft.clientX,ft.clientY])},Ut=u3(Xe,we,F?Fe:ke,M,z,P,X),gt=Q(Ut,11),en=gt[0],tn=gt[1],pn=gt[2],At=gt[3],Kn=gt[4],kn=gt[5],Qe=gt[6],mt=gt[7],Ot=gt[8],Bt=gt[9],un=gt[10],Er=l3(se,c,u,d),Fr=Q(Er,2),er=Fr[0],ur=Fr[1],Rt=er.has("click"),ht=ur.has("click")||ur.has("contextMenu"),Le=Ft(function(){et||un()}),qe=function(){xe.current&&F&&ht&&Pe(!1)};d3(Xe,ke,we,Le,qe),Mt(function(){Le()},[Fe,M]),Mt(function(){Xe&&!(z!=null&&z[M])&&Le()},[JSON.stringify(P)]);var Ct=s.useMemo(function(){var Ye=c3(z,a,Bt,F);return V(Ye,j==null?void 0:j(Bt))},[Bt,j,z,a,F]);s.useImperativeHandle(r,function(){return{nativeElement:He.current,popupElement:_e.current,forceAlign:Le}});var Ht=s.useState(0),Tt=Q(Ht,2),qt=Tt[0],vn=Tt[1],In=s.useState(0),an=Q(In,2),wn=an[0],Pn=an[1],dr=function(){if(k&&ke){var ft=ke.getBoundingClientRect();vn(ft.width),Pn(ft.height)}},Wn=function(){dr(),Le()},ai=function(ft){Et(!1),un(),y==null||y(ft)},pt=function(){return new Promise(function(ft){dr(),Ue(function(){return ft})})};Mt(function(){be&&(un(),be(),Ue(null))},[be]);function dt(Ye,ft,ln,Cn){Ae[Ye]=function(sn){var hc;Cn==null||Cn(sn),Pe(ft,ln);for(var Lf=arguments.length,E0=new Array(Lf>1?Lf-1:0),yc=1;yc1?ln-1:0),sn=1;sn1?ln-1:0),sn=1;sn1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],a=YE(n,!1),i=a.label,l=a.value,c=a.options,u=a.groupLabel;function d(f,m){Array.isArray(f)&&f.forEach(function(g){if(m||!(c in g)){var y=g[l];o.push({key:bC(g,o.length),groupOption:m,data:g,label:g[i],value:y})}else{var h=g[u];h===void 0&&r&&(h=g.label),o.push({key:bC(g,o.length),group:!0,data:g,label:h}),d(g[c],!0)}})}return d(e,!1),o}function zp(e){var t=A({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Zt(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var C3=function(t,n,r){if(!n||!n.length)return null;var o=!1,a=function l(c,u){var d=A$(u),f=d[0],m=d.slice(1);if(!f)return[c];var g=c.split(f);return o=o||g.length>1,g.reduce(function(y,h){return[].concat(ue(y),ue(l(h,m)))},[]).filter(Boolean)},i=a(t,n);return o?typeof r<"u"?i.slice(0,r):i:null},kh=s.createContext(null),S3=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],x3=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],jp=function(t){return t==="tags"||t==="multiple"},$3=s.forwardRef(function(e,t){var n,r=e.id,o=e.prefixCls,a=e.className,i=e.showSearch,l=e.tagRender,c=e.direction,u=e.omitDomProps,d=e.displayValues,f=e.onDisplayValuesChange,m=e.emptyOptions,g=e.notFoundContent,y=g===void 0?"Not Found":g,h=e.onClear,C=e.mode,p=e.disabled,v=e.loading,b=e.getInputElement,S=e.getRawInputElement,$=e.open,x=e.defaultOpen,w=e.onDropdownVisibleChange,O=e.activeValue,E=e.onActiveValueChange,I=e.activeDescendantId,T=e.searchValue,_=e.autoClearSearchValue,R=e.onSearch,M=e.onSearchSplit,L=e.tokenSeparators,z=e.allowClear,P=e.suffixIcon,N=e.clearIcon,k=e.OptionList,j=e.animation,B=e.transitionName,F=e.dropdownStyle,K=e.dropdownClassName,X=e.dropdownMatchSelectWidth,U=e.dropdownRender,re=e.dropdownAlign,Z=e.placement,ne=e.builtinPlacements,le=e.getPopupContainer,ee=e.showAction,q=ee===void 0?[]:ee,te=e.onFocus,J=e.onBlur,W=e.onKeyUp,Y=e.onKeyDown,de=e.onMouseDown,oe=tt(e,S3),se=jp(C),ae=(i!==void 0?i:se)||C==="combobox",ie=A({},oe);x3.forEach(function(Le){delete ie[Le]}),u==null||u.forEach(function(Le){delete ie[Le]});var pe=s.useState(!1),me=Q(pe,2),ge=me[0],ve=me[1];s.useEffect(function(){ve(Lh())},[]);var $e=s.useRef(null),we=s.useRef(null),We=s.useRef(null),_e=s.useRef(null),Se=s.useRef(null),Ce=s.useRef(!1),Oe=Tk(),ke=Q(Oe,3),Ze=ke[0],He=ke[1],Ve=ke[2];s.useImperativeHandle(t,function(){var Le,qe;return{focus:(Le=_e.current)===null||Le===void 0?void 0:Le.focus,blur:(qe=_e.current)===null||qe===void 0?void 0:qe.blur,scrollTo:function(Ht){var Tt;return(Tt=Se.current)===null||Tt===void 0?void 0:Tt.scrollTo(Ht)}}});var it=s.useMemo(function(){var Le;if(C!=="combobox")return T;var qe=(Le=d[0])===null||Le===void 0?void 0:Le.value;return typeof qe=="string"||typeof qe=="number"?String(qe):""},[T,C,d]),Je=C==="combobox"&&typeof b=="function"&&b()||null,Ae=typeof S=="function"&&S(),lt=Sa(we,Ae==null||(n=Ae.props)===null||n===void 0?void 0:n.ref),ut=s.useState(!1),St=Q(ut,2),st=St[0],vt=St[1];Mt(function(){vt(!0)},[]);var nt=Jt(!1,{defaultValue:x,value:$}),Me=Q(nt,2),Xe=Me[0],De=Me[1],xe=st?Xe:!1,ze=!y&&m;(p||ze&&xe&&C==="combobox")&&(xe=!1);var rt=ze?!1:xe,ye=s.useCallback(function(Le){var qe=Le!==void 0?Le:!xe;p||(De(qe),xe!==qe&&(w==null||w(qe)))},[p,xe,De,w]),Re=s.useMemo(function(){return(L||[]).some(function(Le){return[` + ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},Fj=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},hE=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return bt(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},yE=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${H(e.paddingMD)} ${H(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${H(e.padding)} ${H(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${H(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${H(e.paddingXS)} ${H(e.padding)}`:0,footerBorderTop:e.wireframe?`${H(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${H(e.borderRadiusLG)} ${H(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${H(e.padding*2)} ${H(e.padding*2)} ${H(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),bE=_t("Modal",e=>{const t=hE(e);return[Bj(t),Fj(t),Dj(t),cc(t,"zoom")]},yE,{unitless:{titleLineHeight:!0}});var Aj=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{Tp={x:e.pageX,y:e.pageY},setTimeout(()=>{Tp=null},100)};d3()&&document.documentElement.addEventListener("click",Hj,!0);const Vj=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:o,modal:a}=s.useContext(je),i=j=>{const{onCancel:B}=e;B==null||B(j)},l=j=>{const{onOk:B}=e;B==null||B(j)},{prefixCls:c,className:u,rootClassName:d,open:f,wrapClassName:m,centered:g,getContainer:y,focusTriggerAfterClose:h=!0,style:C,visible:p,width:v=520,footer:b,classNames:S,styles:$}=e,x=Aj(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles"]),w=r("modal",c),O=r(),E=gn(w),[I,T,_]=bE(w,E),R=V(m,{[`${w}-centered`]:!!g,[`${w}-wrap-rtl`]:o==="rtl"}),M=b!==null&&s.createElement(vE,Object.assign({},e,{onOk:l,onCancel:i})),[L,z]=rE(sd(e),sd(a),{closable:!0,closeIcon:s.createElement(ni,{className:`${w}-close-icon`}),closeIconRender:j=>pE(w,j)}),P=aj(`.${w}-content`),[N,k]=nc("Modal",x.zIndex);return I(s.createElement(js,null,s.createElement(Np,{status:!0,override:!0},s.createElement(lf.Provider,{value:k},s.createElement(nE,Object.assign({width:v},x,{zIndex:N,getContainer:y===void 0?n:y,prefixCls:w,rootClassName:V(T,d,_,E),footer:M,visible:f??p,mousePosition:(t=x.mousePosition)!==null&&t!==void 0?t:Tp,onClose:i,closable:L,closeIcon:z,focusTriggerAfterClose:h,transitionName:va(O,"zoom",e.transitionName),maskTransitionName:va(O,"fade",e.maskTransitionName),className:V(T,u,a==null?void 0:a.className),style:Object.assign(Object.assign({},a==null?void 0:a.style),C),classNames:Object.assign(Object.assign(Object.assign({},a==null?void 0:a.classNames),S),{wrapper:V(R,S==null?void 0:S.wrapper)}),styles:Object.assign(Object.assign({},a==null?void 0:a.styles),$),panelRef:P}))))))},CE=Vj,Kj=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:a,lineHeight:i,modalTitleHeight:l,fontHeight:c,confirmBodyPadding:u}=e,d=`${t}-confirm`;return{[d]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${d}-body-wrapper`]:Object.assign({},_o()),[`&${t} ${t}-body`]:{padding:u},[`${d}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(c).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(l).sub(o).equal()).div(2).equal()}},[`${d}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS},[`${e.iconCls} + ${d}-paragraph`]:{maxWidth:`calc(100% - ${H(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${d}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${d}-content`]:{color:e.colorText,fontSize:a,lineHeight:i},[`${d}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${d}-error ${d}-body > ${e.iconCls}`]:{color:e.colorError},[`${d}-warning ${d}-body > ${e.iconCls}, + ${d}-confirm ${d}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${d}-info ${d}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${d}-success ${d}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},Wj=ti(["Modal","confirm"],e=>{const t=hE(e);return[Kj(t)]},yE,{order:-1e3});var Gj=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);ov,ue(Object.values(v))),S=s.createElement(s.Fragment,null,s.createElement(Tb,null),s.createElement(Mb,null)),$=e.title!==void 0&&e.title!==null,x=`${a}-body`;return s.createElement("div",{className:`${a}-body-wrapper`},s.createElement("div",{className:V(x,{[`${x}-has-title`]:$})},f,s.createElement("div",{className:`${a}-paragraph`},$&&s.createElement("span",{className:`${a}-title`},e.title),s.createElement("div",{className:`${a}-content`},e.content))),c===void 0||typeof c=="function"?s.createElement(Xw,{value:b},s.createElement("div",{className:`${a}-btns`},typeof c=="function"?c(S,{OkBtn:Mb,CancelBtn:Tb}):S)):c,s.createElement(Wj,{prefixCls:t}))}const Uj=e=>{const{close:t,zIndex:n,afterClose:r,open:o,keyboard:a,centered:i,getContainer:l,maskStyle:c,direction:u,prefixCls:d,wrapClassName:f,rootPrefixCls:m,bodyStyle:g,closable:y=!1,closeIcon:h,modalRender:C,focusTriggerAfterClose:p,onConfirm:v,styles:b}=e,S=`${d}-confirm`,$=e.width||416,x=e.style||{},w=e.mask===void 0?!0:e.mask,O=e.maskClosable===void 0?!1:e.maskClosable,E=V(S,`${S}-${e.type}`,{[`${S}-rtl`]:u==="rtl"},e.className),[,I]=mn(),T=s.useMemo(()=>n!==void 0?n:I.zIndexPopupBase+sf,[n,I]);return s.createElement(CE,{prefixCls:d,className:E,wrapClassName:V({[`${S}-centered`]:!!e.centered},f),onCancel:()=>{t==null||t({triggerCancel:!0}),v==null||v(!1)},open:o,title:"",footer:null,transitionName:va(m||"","zoom",e.transitionName),maskTransitionName:va(m||"","fade",e.maskTransitionName),mask:w,maskClosable:O,style:x,styles:Object.assign({body:g,mask:c},b),width:$,zIndex:T,afterClose:r,keyboard:a,centered:i,getContainer:l,closable:y,closeIcon:h,modalRender:C,focusTriggerAfterClose:p},s.createElement(SE,Object.assign({},e,{confirmPrefixCls:S})))},xE=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return s.createElement(tc,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},s.createElement(Uj,Object.assign({},e)))},qj=[],La=qj;let $E="";function wE(){return $E}const Xj=e=>{var t,n;const{prefixCls:r,getContainer:o,direction:a}=e,i=G$(),l=s.useContext(je),c=wE()||l.getPrefixCls(),u=r||`${c}-modal`;let d=o;return d===!1&&(d=void 0),G.createElement(xE,Object.assign({},e,{rootPrefixCls:c,prefixCls:u,iconPrefixCls:l.iconPrefixCls,theme:l.theme,direction:a??l.direction,locale:(n=(t=l.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:i,getContainer:d}))};function uc(e){const t=ec(),n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:l,open:!0}),o;function a(){for(var u=arguments.length,d=new Array(u),f=0;fg&&g.triggerCancel);e.onCancel&&m&&e.onCancel.apply(e,[()=>{}].concat(ue(d.slice(1))));for(let g=0;g{const d=t.getPrefixCls(void 0,wE()),f=t.getIconPrefixCls(),m=t.getTheme(),g=G.createElement(Xj,Object.assign({},u));uf(G.createElement(tc,{prefixCls:d,iconPrefixCls:f,theme:m},t.holderRender?t.holderRender(g):g),n)})}function l(){for(var u=arguments.length,d=new Array(u),f=0;f{typeof e.afterClose=="function"&&e.afterClose(),a.apply(this,d)}}),r.visible&&delete r.visible,i(r)}function c(u){typeof u=="function"?r=u(r):r=Object.assign(Object.assign({},r),u),i(r)}return i(r),La.push(l),{destroy:l,update:c}}function EE(e){return Object.assign(Object.assign({},e),{type:"warning"})}function OE(e){return Object.assign(Object.assign({},e),{type:"info"})}function IE(e){return Object.assign(Object.assign({},e),{type:"success"})}function PE(e){return Object.assign(Object.assign({},e),{type:"error"})}function RE(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function Yj(e){let{rootPrefixCls:t}=e;$E=t}var Qj=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,{afterClose:r,config:o}=e,a=Qj(e,["afterClose","config"]);const[i,l]=s.useState(!0),[c,u]=s.useState(o),{direction:d,getPrefixCls:f}=s.useContext(je),m=f("modal"),g=f(),y=()=>{var v;r(),(v=c.afterClose)===null||v===void 0||v.call(c)},h=function(){l(!1);for(var v=arguments.length,b=new Array(v),S=0;Sx&&x.triggerCancel);c.onCancel&&$&&c.onCancel.apply(c,[()=>{}].concat(ue(b.slice(1))))};s.useImperativeHandle(t,()=>({destroy:h,update:v=>{u(b=>Object.assign(Object.assign({},b),v))}}));const C=(n=c.okCancel)!==null&&n!==void 0?n:c.type==="confirm",[p]=ei("Modal",go.Modal);return s.createElement(xE,Object.assign({prefixCls:m,rootPrefixCls:g},c,{close:h,open:i,afterClose:y,okText:c.okText||(C?p==null?void 0:p.okText:p==null?void 0:p.justOkText),direction:c.direction||d,cancelText:c.cancelText||(p==null?void 0:p.cancelText)},a))},Jj=s.forwardRef(Zj);let sC=0;const eL=s.memo(s.forwardRef((e,t)=>{const[n,r]=B4();return s.useImperativeHandle(t,()=>({patchElement:r}),[]),s.createElement(s.Fragment,null,n)}));function NE(){const e=s.useRef(null),[t,n]=s.useState([]);s.useEffect(()=>{t.length&&(ue(t).forEach(i=>{i()}),n([]))},[t]);const r=s.useCallback(a=>function(l){var c;sC+=1;const u=s.createRef();let d;const f=new Promise(C=>{d=C});let m=!1,g;const y=s.createElement(Jj,{key:`modal-${sC}`,config:a(l),ref:u,afterClose:()=>{g==null||g()},isSilent:()=>m,onConfirm:C=>{d(C)}});return g=(c=e.current)===null||c===void 0?void 0:c.patchElement(y),g&&La.push(g),{destroy:()=>{function C(){var p;(p=u.current)===null||p===void 0||p.destroy()}u.current?C():n(p=>[].concat(ue(p),[C]))},update:C=>{function p(){var v;(v=u.current)===null||v===void 0||v.update(C)}u.current?p():n(v=>[].concat(ue(v),[p]))},then:C=>(m=!0,f.then(C))}},[]);return[s.useMemo(()=>({info:r(OE),success:r(IE),error:r(PE),warning:r(EE),confirm:r(RE)}),[]),s.createElement(eL,{key:"modal-holder",ref:e})]}const tL=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,o=`${t}-notice`,a=new yt("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),i=new yt("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),l=new yt("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),c=new yt("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[o]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[o]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:c}}}}},nL=tL,rL=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],oL={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},aL=(e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[oL[t]]:{value:0,_skip_check_:!0}}}}},iL=e=>{const t={};for(let n=1;n ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},lL=e=>{const t={};for(let n=1;n{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},iL(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},lL(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},rL.map(n=>aL(e,n)).reduce((n,r)=>Object.assign(Object.assign({},n),r),{}))},cL=sL,TE=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:a,borderRadiusLG:i,colorSuccess:l,colorInfo:c,colorWarning:u,colorError:d,colorTextHeading:f,notificationBg:m,notificationPadding:g,notificationMarginEdge:y,fontSize:h,lineHeight:C,width:p,notificationIconSize:v,colorText:b}=e,S=`${n}-notice`;return{position:"relative",marginBottom:a,marginInlineStart:"auto",background:m,borderRadius:i,boxShadow:r,[S]:{padding:g,width:p,maxWidth:`calc(100vw - ${H(e.calc(y).mul(2).equal())})`,overflow:"hidden",lineHeight:C,wordWrap:"break-word"},[`${S}-message`]:{marginBottom:e.marginXS,color:f,fontSize:o,lineHeight:e.lineHeightLG},[`${S}-description`]:{fontSize:h,color:b},[`${S}-closable ${S}-message`]:{paddingInlineEnd:e.paddingLG},[`${S}-with-icon ${S}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(v).equal(),fontSize:o},[`${S}-with-icon ${S}-description`]:{marginInlineStart:e.calc(e.marginSM).add(v).equal(),fontSize:h},[`${S}-icon`]:{position:"absolute",fontSize:v,lineHeight:1,[`&-success${t}`]:{color:l},[`&-info${t}`]:{color:c},[`&-warning${t}`]:{color:u},[`&-error${t}`]:{color:d}},[`${S}-close`]:Object.assign({position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},zo(e)),[`${S}-btn`]:{float:"right",marginTop:e.marginSM}}},uL=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:o,motionEaseInOut:a}=e,i=`${t}-notice`,l=new yt("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},zt(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:a,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:a,animationFillMode:"both",animationDuration:o,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:l,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${i}-btn`]:{float:"left"}}})},{[t]:{[`${i}-wrapper`]:Object.assign({},TE(e))}}]},ME=e=>({zIndexPopup:e.zIndexPopupBase+sf+50,width:384}),_E=e=>{const t=e.paddingMD,n=e.paddingLG;return bt(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${H(e.paddingMD)} ${H(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3})},zE=_t("Notification",e=>{const t=_E(e);return[uL(t),nL(t),cL(t)]},ME),dL=ti(["Notification","PurePanel"],e=>{const t=`${e.componentCls}-notice`,n=_E(e);return{[`${t}-pure-panel`]:Object.assign(Object.assign({},TE(n)),{width:n.width,maxWidth:`calc(100vw - ${H(e.calc(n.notificationMarginEdge).mul(2).equal())})`,margin:0})}},ME);var fL=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,icon:n,type:r,message:o,description:a,btn:i,role:l="alert"}=e;let c=null;return n?c=s.createElement("span",{className:`${t}-icon`},n):r&&(c=s.createElement(mL[r]||null,{className:V(`${t}-icon`,`${t}-icon-${r}`)})),s.createElement("div",{className:V({[`${t}-with-icon`]:c}),role:l},c,s.createElement("div",{className:`${t}-message`},o),s.createElement("div",{className:`${t}-description`},a),i&&s.createElement("div",{className:`${t}-btn`},i))},gL=e=>{const{prefixCls:t,className:n,icon:r,type:o,message:a,description:i,btn:l,closable:c=!0,closeIcon:u,className:d}=e,f=fL(e,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon","className"]),{getPrefixCls:m}=s.useContext(je),g=t||m("notification"),y=`${g}-notice`,h=gn(g),[C,p,v]=zE(g,h);return C(s.createElement("div",{className:V(`${y}-pure-panel`,p,n,v,h)},s.createElement(dL,{prefixCls:g}),s.createElement(vh,Object.assign({},f,{prefixCls:g,eventKey:"pure",duration:null,closable:c,className:V({notificationClassName:d}),closeIcon:jh(g,u),content:s.createElement(jE,{prefixCls:y,icon:r,type:o,message:a,description:i,btn:l})}))))},pL=gL;function vL(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n};break}return r}function hL(e){return{motionName:`${e}-fade`}}var yL=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{let{children:t,prefixCls:n}=e;const r=gn(n),[o,a,i]=zE(n,r);return o(G.createElement(_w,{classNames:{list:V(a,i,r)}},t))},xL=(e,t)=>{let{prefixCls:n,key:r}=t;return G.createElement(SL,{prefixCls:n,key:r},e)},$L=G.forwardRef((e,t)=>{const{top:n,bottom:r,prefixCls:o,getContainer:a,maxCount:i,rtl:l,onAllRemoved:c,stack:u,duration:d}=e,{getPrefixCls:f,getPopupContainer:m,notification:g,direction:y}=s.useContext(je),[,h]=mn(),C=o||f("notification"),p=x=>vL(x,n??cC,r??cC),v=()=>V({[`${C}-rtl`]:l??y==="rtl"}),b=()=>hL(C),[S,$]=zw({prefixCls:C,style:p,className:v,motion:b,closable:!0,closeIcon:jh(C),duration:d??bL,getContainer:()=>(a==null?void 0:a())||(m==null?void 0:m())||document.body,maxCount:i,onAllRemoved:c,renderNotifications:xL,stack:u===!1?!1:{threshold:typeof u=="object"?u==null?void 0:u.threshold:void 0,offset:8,gap:h.margin}});return G.useImperativeHandle(t,()=>Object.assign(Object.assign({},S),{prefixCls:C,notification:g})),$});function LE(e){const t=G.useRef(null);return Fo(),[G.useMemo(()=>{const r=l=>{var c;if(!t.current)return;const{open:u,prefixCls:d,notification:f}=t.current,m=`${d}-notice`,{message:g,description:y,icon:h,type:C,btn:p,className:v,style:b,role:S="alert",closeIcon:$,closable:x}=l,w=yL(l,["message","description","icon","type","btn","className","style","role","closeIcon","closable"]),O=jh(m,typeof $<"u"?$:f==null?void 0:f.closeIcon);return u(Object.assign(Object.assign({placement:(c=e==null?void 0:e.placement)!==null&&c!==void 0?c:CL},w),{content:G.createElement(jE,{prefixCls:m,icon:h,type:C,message:g,description:y,btn:p,role:S}),className:V(C&&`${m}-${C}`,v,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),b),closeIcon:O,closable:x??!!O}))},a={open:r,destroy:l=>{var c,u;l!==void 0?(c=t.current)===null||c===void 0||c.close(l):(u=t.current)===null||u===void 0||u.destroy()}};return["success","info","warning","error"].forEach(l=>{a[l]=c=>r(Object.assign(Object.assign({},c),{type:l}))}),a},[]),G.createElement($L,Object.assign({key:"notification-holder"},e,{ref:t}))]}function kE(e){return LE(e)}const ud=G.createContext({}),wL=G.createContext({message:{},notification:{},modal:{}}),DE=wL,EL=e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:o,fontFamily:a}=e;return{[t]:{color:n,fontSize:r,lineHeight:o,fontFamily:a}}},OL=()=>({}),IL=_t("App",EL,OL),PL=()=>G.useContext(DE),BE=e=>{const{prefixCls:t,children:n,className:r,rootClassName:o,message:a,notification:i,style:l,component:c="div"}=e,{getPrefixCls:u}=s.useContext(je),d=u("app",t),[f,m,g]=IL(d),y=V(m,d,r,o,g),h=s.useContext(ud),C=G.useMemo(()=>({message:Object.assign(Object.assign({},h.message),a),notification:Object.assign(Object.assign({},h.notification),i)}),[a,i,h.message,h.notification]),[p,v]=Bw(C.message),[b,S]=kE(C.notification),[$,x]=NE(),w=G.useMemo(()=>({message:p,notification:b,modal:$}),[p,b,$]),O=c===!1?G.Fragment:c,E={className:y,style:l};return f(G.createElement(DE.Provider,{value:w},G.createElement(ud.Provider,{value:C},G.createElement(O,Object.assign({},c===!1?void 0:E),x,v,S,n))))};BE.useApp=PL;const DU=BE;function FE(e){return t=>s.createElement(tc,{theme:{token:{motion:!1,zIndexPopupBase:0}}},s.createElement(e,Object.assign({},t)))}const AE=(e,t,n,r)=>FE(a=>{const{prefixCls:i,style:l}=a,c=s.useRef(null),[u,d]=s.useState(0),[f,m]=s.useState(0),[g,y]=Jt(!1,{value:a.open}),{getPrefixCls:h}=s.useContext(je),C=h(t||"select",i);s.useEffect(()=>{if(y(!0),typeof ResizeObserver<"u"){const b=new ResizeObserver($=>{const x=$[0].target;d(x.offsetHeight+8),m(x.offsetWidth)}),S=setInterval(()=>{var $;const x=n?`.${n(C)}`:`.${C}-dropdown`,w=($=c.current)===null||$===void 0?void 0:$.querySelector(x);w&&(clearInterval(S),b.observe(w))},10);return()=>{clearInterval(S),b.disconnect()}}},[]);let p=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},l),{margin:0}),open:g,visible:g,getPopupContainer:()=>c.current});r&&(p=r(p));const v={paddingBottom:u,position:"relative",minWidth:f};return s.createElement("div",{ref:c,style:v},s.createElement(e,Object.assign({},p)))}),Lh=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 gf=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,a=t.children,i=t.onMouseDown,l=t.onClick,c=typeof r=="function"?r(o):r;return s.createElement("span",{className:n,onMouseDown:function(d){d.preventDefault(),i==null||i(d)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:l,"aria-hidden":!0},c!==void 0?c:s.createElement("span",{className:V(n.split(/\s+/).map(function(u){return"".concat(u,"-icon")}))},a))},RL=function(t,n,r,o,a){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,l=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,u=G.useMemo(function(){if(at(o)==="object")return o.clearIcon;if(a)return a},[o,a]),d=G.useMemo(function(){return!!(!i&&o&&(r.length||l)&&!(c==="combobox"&&l===""))},[o,i,r.length,l,c]);return{allowClear:d,clearIcon:G.createElement(gf,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:u},"×")}},HE=s.createContext(null);function NL(){return s.useContext(HE)}function TL(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=s.useState(!1),n=Q(t,2),r=n[0],o=n[1],a=s.useRef(null),i=function(){window.clearTimeout(a.current)};s.useEffect(function(){return i},[]);var l=function(u,d){i(),a.current=window.setTimeout(function(){o(u),d&&d()},e)};return[r,l,i]}function VE(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=s.useRef(null),n=s.useRef(null);s.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(o){(o||t.current===null)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function ML(e,t,n,r){var o=s.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},s.useEffect(function(){function a(i){var l;if(!((l=o.current)!==null&&l!==void 0&&l.customizedTrigger)){var c=i.target;c.shadowRoot&&i.composed&&(c=i.composedPath()[0]||c),o.current.open&&e().filter(function(u){return u}).every(function(u){return!u.contains(c)&&u!==c})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",a),function(){return window.removeEventListener("mousedown",a)}},[])}function _L(e){return![fe.ESC,fe.SHIFT,fe.BACKSPACE,fe.TAB,fe.WIN_KEY,fe.ALT,fe.META,fe.WIN_KEY_RIGHT,fe.CTRL,fe.SEMICOLON,fe.EQUALS,fe.CAPS_LOCK,fe.CONTEXT_MENU,fe.F1,fe.F2,fe.F3,fe.F4,fe.F5,fe.F6,fe.F7,fe.F8,fe.F9,fe.F10,fe.F11,fe.F12].includes(e)}var zL=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],ui=void 0;function jL(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,a=e.renderItem,i=e.responsive,l=e.responsiveDisabled,c=e.registerSize,u=e.itemKey,d=e.className,f=e.style,m=e.children,g=e.display,y=e.order,h=e.component,C=h===void 0?"div":h,p=tt(e,zL),v=i&&!g;function b(O){c(u,O)}s.useEffect(function(){return function(){b(null)}},[]);var S=a&&o!==ui?a(o):m,$;r||($={opacity:v?0:1,height:v?0:ui,overflowY:v?"hidden":ui,order:i?y:ui,pointerEvents:v?"none":ui,position:v?"absolute":ui});var x={};v&&(x["aria-hidden"]=!0);var w=s.createElement(C,ce({className:V(!r&&n,d),style:A(A({},$),f)},x,p,{ref:t}),S);return i&&(w=s.createElement(ir,{onResize:function(E){var I=E.offsetWidth;b(I)},disabled:l},w)),w}var ls=s.forwardRef(jL);ls.displayName="Item";function LL(e){if(typeof MessageChannel>"u")Pt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function kL(){var e=s.useRef(null),t=function(r){e.current||(e.current=[],LL(function(){To.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(r)};return t}function Ll(e,t){var n=s.useState(t),r=Q(n,2),o=r[0],a=r[1],i=Ft(function(l){e(function(){a(l)})});return[o,i]}var dd=G.createContext(null),DL=["component"],BL=["className"],FL=["className"],AL=function(t,n){var r=s.useContext(dd);if(!r){var o=t.component,a=o===void 0?"div":o,i=tt(t,DL);return s.createElement(a,ce({},i,{ref:n}))}var l=r.className,c=tt(r,BL),u=t.className,d=tt(t,FL);return s.createElement(dd.Provider,{value:null},s.createElement(ls,ce({ref:n,className:V(l,u)},c,d)))},KE=s.forwardRef(AL);KE.displayName="RawItem";var HL=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],WE="responsive",GE="invalidate";function VL(e){return"+ ".concat(e.length," ...")}function KL(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,a=o===void 0?[]:o,i=e.renderItem,l=e.renderRawItem,c=e.itemKey,u=e.itemWidth,d=u===void 0?10:u,f=e.ssr,m=e.style,g=e.className,y=e.maxCount,h=e.renderRest,C=e.renderRawRest,p=e.suffix,v=e.component,b=v===void 0?"div":v,S=e.itemComponent,$=e.onVisibleChange,x=tt(e,HL),w=f==="full",O=kL(),E=Ll(O,null),I=Q(E,2),T=I[0],_=I[1],R=T||0,M=Ll(O,new Map),L=Q(M,2),z=L[0],P=L[1],N=Ll(O,0),k=Q(N,2),j=k[0],B=k[1],F=Ll(O,0),K=Q(F,2),X=K[0],U=K[1],re=Ll(O,0),Z=Q(re,2),ne=Z[0],le=Z[1],ee=s.useState(null),q=Q(ee,2),te=q[0],J=q[1],W=s.useState(null),Y=Q(W,2),de=Y[0],oe=Y[1],se=s.useMemo(function(){return de===null&&w?Number.MAX_SAFE_INTEGER:de||0},[de,T]),ae=s.useState(!1),ie=Q(ae,2),pe=ie[0],me=ie[1],ge="".concat(r,"-item"),ve=Math.max(j,X),$e=y===WE,we=a.length&&$e,We=y===GE,_e=we||typeof y=="number"&&a.length>y,Se=s.useMemo(function(){var De=a;return we?T===null&&w?De=a:De=a.slice(0,Math.min(a.length,R/d)):typeof y=="number"&&(De=a.slice(0,y)),De},[a,d,T,y,we]),Ce=s.useMemo(function(){return we?a.slice(se+1):a.slice(Se.length)},[a,Se,we,se]),Oe=s.useCallback(function(De,xe){var ze;return typeof c=="function"?c(De):(ze=c&&(De==null?void 0:De[c]))!==null&&ze!==void 0?ze:xe},[c]),ke=s.useCallback(i||function(De){return De},[i]);function Ze(De,xe,ze){de===De&&(xe===void 0||xe===te)||(oe(De),ze||(me(DeR){Ze(rt-1,De-ye-ne+X);break}}p&&Ae(0)+ne>R&&J(null)}},[R,z,X,ne,Oe,Se]);var lt=pe&&!!Ce.length,ut={};te!==null&&we&&(ut={position:"absolute",left:te,top:0});var St={prefixCls:ge,responsive:we,component:S,invalidate:We},st=l?function(De,xe){var ze=Oe(De,xe);return s.createElement(dd.Provider,{key:ze,value:A(A({},St),{},{order:xe,item:De,itemKey:ze,registerSize:Ve,display:xe<=se})},l(De,xe))}:function(De,xe){var ze=Oe(De,xe);return s.createElement(ls,ce({},St,{order:xe,key:ze,item:De,renderItem:ke,itemKey:ze,registerSize:Ve,display:xe<=se}))},vt,nt={order:lt?se:Number.MAX_SAFE_INTEGER,className:"".concat(ge,"-rest"),registerSize:it,display:lt};if(C)C&&(vt=s.createElement(dd.Provider,{value:A(A({},St),nt)},C(Ce)));else{var Me=h||VL;vt=s.createElement(ls,ce({},St,nt),typeof Me=="function"?Me(Ce):Me)}var Xe=s.createElement(b,ce({className:V(!We&&r,g),style:m,ref:t},x),Se.map(st),_e?vt:null,p&&s.createElement(ls,ce({},St,{responsive:$e,responsiveDisabled:!we,order:se,className:"".concat(ge,"-suffix"),registerSize:Je,display:!0,style:ut}),p));return $e&&(Xe=s.createElement(ir,{onResize:He,disabled:!we},Xe)),Xe}var fo=s.forwardRef(KL);fo.displayName="Overflow";fo.Item=KE;fo.RESPONSIVE=WE;fo.INVALIDATE=GE;var WL=function(t,n){var r,o=t.prefixCls,a=t.id,i=t.inputElement,l=t.disabled,c=t.tabIndex,u=t.autoFocus,d=t.autoComplete,f=t.editable,m=t.activeDescendantId,g=t.value,y=t.maxLength,h=t.onKeyDown,C=t.onMouseDown,p=t.onChange,v=t.onPaste,b=t.onCompositionStart,S=t.onCompositionEnd,$=t.open,x=t.attrs,w=i||s.createElement("input",null),O=w,E=O.ref,I=O.props,T=I.onKeyDown,_=I.onChange,R=I.onMouseDown,M=I.onCompositionStart,L=I.onCompositionEnd,z=I.style;return"maxLength"in w.props,w=s.cloneElement(w,A(A(A({type:"search"},I),{},{id:a,ref:Br(n,E),disabled:l,tabIndex:c,autoComplete:d||"off",autoFocus:u,className:V("".concat(o,"-selection-search-input"),(r=w)===null||r===void 0||(r=r.props)===null||r===void 0?void 0:r.className),role:"combobox","aria-expanded":$||!1,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":$?m:void 0},x),{},{value:f?g:"",maxLength:y,readOnly:!f,unselectable:f?null:"on",style:A(A({},z),{},{opacity:f?null:0}),onKeyDown:function(N){h(N),T&&T(N)},onMouseDown:function(N){C(N),R&&R(N)},onChange:function(N){p(N),_&&_(N)},onCompositionStart:function(N){b(N),M&&M(N)},onCompositionEnd:function(N){S(N),L&&L(N)},onPaste:v})),w},UE=s.forwardRef(WL);function qE(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var GL=typeof window<"u"&&window.document&&window.document.documentElement,UL=GL;function qL(e){return e!=null}function XL(e){return!e&&e!==0}function uC(e){return["string","number"].includes(at(e))}function XE(e){var t=void 0;return e&&(uC(e.title)?t=e.title.toString():uC(e.label)&&(t=e.label.toString())),t}function YL(e,t){UL?s.useLayoutEffect(e,t):s.useEffect(e,t)}function QL(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var dC=function(t){t.preventDefault(),t.stopPropagation()},ZL=function(t){var n=t.id,r=t.prefixCls,o=t.values,a=t.open,i=t.searchValue,l=t.autoClearSearchValue,c=t.inputRef,u=t.placeholder,d=t.disabled,f=t.mode,m=t.showSearch,g=t.autoFocus,y=t.autoComplete,h=t.activeDescendantId,C=t.tabIndex,p=t.removeIcon,v=t.maxTagCount,b=t.maxTagTextLength,S=t.maxTagPlaceholder,$=S===void 0?function(J){return"+ ".concat(J.length," ...")}:S,x=t.tagRender,w=t.onToggleOpen,O=t.onRemove,E=t.onInputChange,I=t.onInputPaste,T=t.onInputKeyDown,_=t.onInputMouseDown,R=t.onInputCompositionStart,M=t.onInputCompositionEnd,L=s.useRef(null),z=s.useState(0),P=Q(z,2),N=P[0],k=P[1],j=s.useState(!1),B=Q(j,2),F=B[0],K=B[1],X="".concat(r,"-selection"),U=a||f==="multiple"&&l===!1||f==="tags"?i:"",re=f==="tags"||f==="multiple"&&l===!1||m&&(a||F);YL(function(){k(L.current.scrollWidth)},[U]);var Z=function(W,Y,de,oe,se){return s.createElement("span",{title:XE(W),className:V("".concat(X,"-item"),D({},"".concat(X,"-item-disabled"),de))},s.createElement("span",{className:"".concat(X,"-item-content")},Y),oe&&s.createElement(gf,{className:"".concat(X,"-item-remove"),onMouseDown:dC,onClick:se,customizeIcon:p},"×"))},ne=function(W,Y,de,oe,se){var ae=function(pe){dC(pe),w(!a)};return s.createElement("span",{onMouseDown:ae},x({label:Y,value:W,disabled:de,closable:oe,onClose:se}))},le=function(W){var Y=W.disabled,de=W.label,oe=W.value,se=!d&&!Y,ae=de;if(typeof b=="number"&&(typeof de=="string"||typeof de=="number")){var ie=String(ae);ie.length>b&&(ae="".concat(ie.slice(0,b),"..."))}var pe=function(ge){ge&&ge.stopPropagation(),O(W)};return typeof x=="function"?ne(oe,ae,Y,se,pe):Z(W,ae,Y,se,pe)},ee=function(W){var Y=typeof $=="function"?$(W):$;return Z({title:Y},Y,!1)},q=s.createElement("div",{className:"".concat(X,"-search"),style:{width:N},onFocus:function(){K(!0)},onBlur:function(){K(!1)}},s.createElement(UE,{ref:c,open:a,prefixCls:r,id:n,inputElement:null,disabled:d,autoFocus:g,autoComplete:y,editable:re,activeDescendantId:h,value:U,onKeyDown:T,onMouseDown:_,onChange:E,onPaste:I,onCompositionStart:R,onCompositionEnd:M,tabIndex:C,attrs:qn(t,!0)}),s.createElement("span",{ref:L,className:"".concat(X,"-search-mirror"),"aria-hidden":!0},U," ")),te=s.createElement(fo,{prefixCls:"".concat(X,"-overflow"),data:o,renderItem:le,renderRest:ee,suffix:q,itemKey:QL,maxCount:v});return s.createElement(s.Fragment,null,te,!o.length&&!U&&s.createElement("span",{className:"".concat(X,"-placeholder")},u))},JL=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,a=t.inputRef,i=t.disabled,l=t.autoFocus,c=t.autoComplete,u=t.activeDescendantId,d=t.mode,f=t.open,m=t.values,g=t.placeholder,y=t.tabIndex,h=t.showSearch,C=t.searchValue,p=t.activeValue,v=t.maxLength,b=t.onInputKeyDown,S=t.onInputMouseDown,$=t.onInputChange,x=t.onInputPaste,w=t.onInputCompositionStart,O=t.onInputCompositionEnd,E=t.title,I=s.useState(!1),T=Q(I,2),_=T[0],R=T[1],M=d==="combobox",L=M||h,z=m[0],P=C||"";M&&p&&!_&&(P=p),s.useEffect(function(){M&&R(!1)},[M,p]);var N=d!=="combobox"&&!f&&!h?!1:!!P,k=E===void 0?XE(z):E,j=s.useMemo(function(){return z?null:s.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:N?{visibility:"hidden"}:void 0},g)},[z,N,g,r]);return s.createElement(s.Fragment,null,s.createElement("span",{className:"".concat(r,"-selection-search")},s.createElement(UE,{ref:a,prefixCls:r,id:o,open:f,inputElement:n,disabled:i,autoFocus:l,autoComplete:c,editable:L,activeDescendantId:u,value:P,onKeyDown:b,onMouseDown:S,onChange:function(F){R(!0),$(F)},onPaste:x,onCompositionStart:w,onCompositionEnd:O,tabIndex:y,attrs:qn(t,!0),maxLength:M?v:void 0})),!M&&z?s.createElement("span",{className:"".concat(r,"-selection-item"),title:k,style:N?{visibility:"hidden"}:void 0},z.label):null,j)},ek=function(t,n){var r=s.useRef(null),o=s.useRef(!1),a=t.prefixCls,i=t.open,l=t.mode,c=t.showSearch,u=t.tokenWithEnter,d=t.autoClearSearchValue,f=t.onSearch,m=t.onSearchSubmit,g=t.onToggleOpen,y=t.onInputKeyDown,h=t.domRef;s.useImperativeHandle(n,function(){return{focus:function(P){r.current.focus(P)},blur:function(){r.current.blur()}}});var C=VE(0),p=Q(C,2),v=p[0],b=p[1],S=function(P){var N=P.which;(N===fe.UP||N===fe.DOWN)&&P.preventDefault(),y&&y(P),N===fe.ENTER&&l==="tags"&&!o.current&&!i&&(m==null||m(P.target.value)),_L(N)&&g(!0)},$=function(){b(!0)},x=s.useRef(null),w=function(P){f(P,!0,o.current)!==!1&&g(!0)},O=function(){o.current=!0},E=function(P){o.current=!1,l!=="combobox"&&w(P.target.value)},I=function(P){var N=P.target.value;if(u&&x.current&&/[\r\n]/.test(x.current)){var k=x.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");N=N.replace(k,x.current)}x.current=null,w(N)},T=function(P){var N=P.clipboardData,k=N==null?void 0:N.getData("text");x.current=k||""},_=function(P){var N=P.target;if(N!==r.current){var k=document.body.style.msTouchAction!==void 0;k?setTimeout(function(){r.current.focus()}):r.current.focus()}},R=function(P){var N=v();P.target!==r.current&&!N&&l!=="combobox"&&P.preventDefault(),(l!=="combobox"&&(!c||!N)||!i)&&(i&&d!==!1&&f("",!0,!1),g())},M={inputRef:r,onInputKeyDown:S,onInputMouseDown:$,onInputChange:I,onInputPaste:T,onInputCompositionStart:O,onInputCompositionEnd:E},L=l==="multiple"||l==="tags"?s.createElement(ZL,ce({},t,M)):s.createElement(JL,ce({},t,M));return s.createElement("div",{ref:h,className:"".concat(a,"-selector"),onClick:_,onMouseDown:R},L)},tk=s.forwardRef(ek);function nk(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,a=r||{},i=a.className,l=a.content,c=o.x,u=c===void 0?0:c,d=o.y,f=d===void 0?0:d,m=s.useRef();if(!n||!n.points)return null;var g={position:"absolute"};if(n.autoArrow!==!1){var y=n.points[0],h=n.points[1],C=y[0],p=y[1],v=h[0],b=h[1];C===v||!["t","b"].includes(C)?g.top=f:C==="t"?g.top=0:g.bottom=0,p===b||!["l","r"].includes(p)?g.left=u:p==="l"?g.left=0:g.right=0}return s.createElement("div",{ref:m,className:V("".concat(t,"-arrow"),i),style:g},l)}function rk(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,a=e.motion;return o?s.createElement(ro,ce({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(i){var l=i.className;return s.createElement("div",{style:{zIndex:r},className:V("".concat(t,"-mask"),l)})}):null}var ok=s.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),ak=s.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,a=e.style,i=e.target,l=e.onVisibleChanged,c=e.open,u=e.keepDom,d=e.fresh,f=e.onClick,m=e.mask,g=e.arrow,y=e.arrowPos,h=e.align,C=e.motion,p=e.maskMotion,v=e.forceRender,b=e.getPopupContainer,S=e.autoDestroy,$=e.portal,x=e.zIndex,w=e.onMouseEnter,O=e.onMouseLeave,E=e.onPointerEnter,I=e.ready,T=e.offsetX,_=e.offsetY,R=e.offsetR,M=e.offsetB,L=e.onAlign,z=e.onPrepare,P=e.stretch,N=e.targetWidth,k=e.targetHeight,j=typeof n=="function"?n():n,B=c||u,F=(b==null?void 0:b.length)>0,K=s.useState(!b||!F),X=Q(K,2),U=X[0],re=X[1];if(Mt(function(){!U&&F&&i&&re(!0)},[U,F,i]),!U)return null;var Z="auto",ne={left:"-1000vw",top:"-1000vh",right:Z,bottom:Z};if(I||!c){var le,ee=h.points,q=h.dynamicInset||((le=h._experimental)===null||le===void 0?void 0:le.dynamicInset),te=q&&ee[0][1]==="r",J=q&&ee[0][0]==="b";te?(ne.right=R,ne.left=Z):(ne.left=T,ne.right=Z),J?(ne.bottom=M,ne.top=Z):(ne.top=_,ne.bottom=Z)}var W={};return P&&(P.includes("height")&&k?W.height=k:P.includes("minHeight")&&k&&(W.minHeight=k),P.includes("width")&&N?W.width=N:P.includes("minWidth")&&N&&(W.minWidth=N)),c||(W.pointerEvents="none"),s.createElement($,{open:v||B,getContainer:b&&function(){return b(i)},autoDestroy:S},s.createElement(rk,{prefixCls:o,open:c,zIndex:x,mask:m,motion:p}),s.createElement(ir,{onResize:L,disabled:!c},function(Y){return s.createElement(ro,ce({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:v,leavedClassName:"".concat(o,"-hidden")},C,{onAppearPrepare:z,onEnterPrepare:z,visible:c,onVisibleChanged:function(oe){var se;C==null||(se=C.onVisibleChanged)===null||se===void 0||se.call(C,oe),l(oe)}}),function(de,oe){var se=de.className,ae=de.style,ie=V(o,se,r);return s.createElement("div",{ref:Br(Y,t,oe),className:ie,style:A(A(A(A({"--arrow-x":"".concat(y.x||0,"px"),"--arrow-y":"".concat(y.y||0,"px")},ne),W),ae),{},{boxSizing:"border-box",zIndex:x},a),onMouseEnter:w,onMouseLeave:O,onPointerEnter:E,onClick:f},g&&s.createElement(nk,{prefixCls:o,arrow:g,arrowPos:y,align:h}),s.createElement(ok,{cache:!c&&!d},j))})}))}),ik=s.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=to(n),a=s.useCallback(function(l){Ps(t,r?r(l):l)},[r]),i=Sa(a,n.ref);return o?s.cloneElement(n,{ref:i}):n}),fC=s.createContext(null);function mC(e){return e?Array.isArray(e)?e:[e]:[]}function lk(e,t,n,r){return s.useMemo(function(){var o=mC(n??t),a=mC(r??t),i=new Set(o),l=new Set(a);return e&&(i.has("hover")&&(i.delete("hover"),i.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[i,l]},[e,t,n,r])}function sk(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function ck(e,t,n,r){for(var o=n.points,a=Object.keys(e),i=0;i1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function kl(e){return Bs(parseFloat(e),0)}function pC(e,t){var n=A({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=dc(r).getComputedStyle(r),a=o.overflow,i=o.overflowClipMargin,l=o.borderTopWidth,c=o.borderBottomWidth,u=o.borderLeftWidth,d=o.borderRightWidth,f=r.getBoundingClientRect(),m=r.offsetHeight,g=r.clientHeight,y=r.offsetWidth,h=r.clientWidth,C=kl(l),p=kl(c),v=kl(u),b=kl(d),S=Bs(Math.round(f.width/y*1e3)/1e3),$=Bs(Math.round(f.height/m*1e3)/1e3),x=(y-h-v-b)*S,w=(m-g-C-p)*$,O=C*$,E=p*$,I=v*S,T=b*S,_=0,R=0;if(a==="clip"){var M=kl(i);_=M*S,R=M*$}var L=f.x+I-_,z=f.y+O-R,P=L+f.width+2*_-I-T-x,N=z+f.height+2*R-O-E-w;n.left=Math.max(n.left,L),n.top=Math.max(n.top,z),n.right=Math.min(n.right,P),n.bottom=Math.min(n.bottom,N)}}),n}function vC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function hC(e,t){var n=t||[],r=Q(n,2),o=r[0],a=r[1];return[vC(e.width,o),vC(e.height,a)]}function yC(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function di(e,t){var n=t[0],r=t[1],o,a;return n==="t"?a=e.y:n==="b"?a=e.y+e.height:a=e.y+e.height/2,r==="l"?o=e.x:r==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:a}}function Wo(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,o){return o===t?n[r]||"c":r}).join("")}function uk(e,t,n,r,o,a,i){var l=s.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),c=Q(l,2),u=c[0],d=c[1],f=s.useRef(0),m=s.useMemo(function(){return t?Mp(t):[]},[t]),g=s.useRef({}),y=function(){g.current={}};e||y();var h=Ft(function(){if(t&&n&&e){let Wn=function(pt,dt){var Xt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ie,Rn=j.x+pt,Yt=j.y+dt,Ar=Rn+le,fr=Yt+ne,Or=Math.max(Rn,Xt.left),po=Math.max(Yt,Xt.top),xa=Math.min(Ar,Xt.right),jf=Math.min(fr,Xt.bottom);return Math.max(0,(xa-Or)*(jf-po))},ai=function(){Be=j.y+Me,Ee=Be+ne,be=j.x+nt,Ue=be+le};var v,b,S=t,$=S.ownerDocument,x=dc(S),w=x.getComputedStyle(S),O=w.width,E=w.height,I=w.position,T=S.style.left,_=S.style.top,R=S.style.right,M=S.style.bottom,L=S.style.overflow,z=A(A({},o[r]),a),P=$.createElement("div");(v=S.parentElement)===null||v===void 0||v.appendChild(P),P.style.left="".concat(S.offsetLeft,"px"),P.style.top="".concat(S.offsetTop,"px"),P.style.position=I,P.style.height="".concat(S.offsetHeight,"px"),P.style.width="".concat(S.offsetWidth,"px"),S.style.left="0",S.style.top="0",S.style.right="auto",S.style.bottom="auto",S.style.overflow="hidden";var N;if(Array.isArray(n))N={x:n[0],y:n[1],width:0,height:0};else{var k=n.getBoundingClientRect();N={x:k.x,y:k.y,width:k.width,height:k.height}}var j=S.getBoundingClientRect(),B=$.documentElement,F=B.clientWidth,K=B.clientHeight,X=B.scrollWidth,U=B.scrollHeight,re=B.scrollTop,Z=B.scrollLeft,ne=j.height,le=j.width,ee=N.height,q=N.width,te={left:0,top:0,right:F,bottom:K},J={left:-Z,top:-re,right:X-Z,bottom:U-re},W=z.htmlRegion,Y="visible",de="visibleFirst";W!=="scroll"&&W!==de&&(W=Y);var oe=W===de,se=pC(J,m),ae=pC(te,m),ie=W===Y?ae:se,pe=oe?ae:ie;S.style.left="auto",S.style.top="auto",S.style.right="0",S.style.bottom="0";var me=S.getBoundingClientRect();S.style.left=T,S.style.top=_,S.style.right=R,S.style.bottom=M,S.style.overflow=L,(b=S.parentElement)===null||b===void 0||b.removeChild(P);var ge=Bs(Math.round(le/parseFloat(O)*1e3)/1e3),ve=Bs(Math.round(ne/parseFloat(E)*1e3)/1e3);if(ge===0||ve===0||Zu(n)&&!oc(n))return;var $e=z.offset,we=z.targetOffset,We=hC(j,$e),_e=Q(We,2),Se=_e[0],Ce=_e[1],Oe=hC(N,we),ke=Q(Oe,2),Ze=ke[0],He=ke[1];N.x-=Ze,N.y-=He;var Ve=z.points||[],it=Q(Ve,2),Je=it[0],Ae=it[1],lt=yC(Ae),ut=yC(Je),St=di(N,lt),st=di(j,ut),vt=A({},z),nt=St.x-st.x+Se,Me=St.y-st.y+Ce,Xe=Wn(nt,Me),De=Wn(nt,Me,ae),xe=di(N,["t","l"]),ze=di(j,["t","l"]),rt=di(N,["b","r"]),ye=di(j,["b","r"]),Re=z.overflow||{},Pe=Re.adjustX,Ge=Re.adjustY,ot=Re.shiftX,et=Re.shiftY,Ot=function(dt){return typeof dt=="boolean"?dt:dt>=0},Be,Ee,be,Ue;ai();var Ne=Ot(Ge),Te=ut[0]===lt[0];if(Ne&&ut[0]==="t"&&(Ee>pe.bottom||g.current.bt)){var Fe=Me;Te?Fe-=ne-ee:Fe=xe.y-ye.y-Ce;var ct=Wn(nt,Fe),xt=Wn(nt,Fe,ae);ct>Xe||ct===Xe&&(!oe||xt>=De)?(g.current.bt=!0,Me=Fe,Ce=-Ce,vt.points=[Wo(ut,0),Wo(lt,0)]):g.current.bt=!1}if(Ne&&ut[0]==="b"&&(BeXe||gt===Xe&&(!oe||en>=De)?(g.current.tb=!0,Me=Ut,Ce=-Ce,vt.points=[Wo(ut,0),Wo(lt,0)]):g.current.tb=!1}var tn=Ot(Pe),pn=ut[1]===lt[1];if(tn&&ut[1]==="l"&&(Ue>pe.right||g.current.rl)){var At=nt;pn?At-=le-q:At=xe.x-ye.x-Se;var Kn=Wn(At,Me),kn=Wn(At,Me,ae);Kn>Xe||Kn===Xe&&(!oe||kn>=De)?(g.current.rl=!0,nt=At,Se=-Se,vt.points=[Wo(ut,1),Wo(lt,1)]):g.current.rl=!1}if(tn&&ut[1]==="r"&&(beXe||mt===Xe&&(!oe||It>=De)?(g.current.lr=!0,nt=Qe,Se=-Se,vt.points=[Wo(ut,1),Wo(lt,1)]):g.current.lr=!1}ai();var Bt=ot===!0?0:ot;typeof Bt=="number"&&(beae.right&&(nt-=Ue-ae.right-Se,N.x>ae.right-Bt&&(nt+=N.x-ae.right+Bt)));var un=et===!0?0:et;typeof un=="number"&&(Beae.bottom&&(Me-=Ee-ae.bottom-Ce,N.y>ae.bottom-un&&(Me+=N.y-ae.bottom+un)));var Er=j.x+nt,Fr=Er+le,er=j.y+Me,ur=er+ne,Rt=N.x,ht=Rt+q,Le=N.y,qe=Le+ee,Ct=Math.max(Er,Rt),Ht=Math.min(Fr,ht),Tt=(Ct+Ht)/2,qt=Tt-Er,vn=Math.max(er,Le),In=Math.min(ur,qe),an=(vn+In)/2,wn=an-er;i==null||i(t,vt);var Pn=me.right-j.x-(nt+j.width),dr=me.bottom-j.y-(Me+j.height);d({ready:!0,offsetX:nt/ge,offsetY:Me/ve,offsetR:Pn/ge,offsetB:dr/ve,arrowX:qt/ge,arrowY:wn/ve,scaleX:ge,scaleY:ve,align:vt})}}),C=function(){f.current+=1;var b=f.current;Promise.resolve().then(function(){f.current===b&&h()})},p=function(){d(function(b){return A(A({},b),{},{ready:!1})})};return Mt(p,[r]),Mt(function(){e||p()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,C]}function dk(e,t,n,r,o){Mt(function(){if(e&&t&&n){let f=function(){r(),o()};var a=t,i=n,l=Mp(a),c=Mp(i),u=dc(i),d=new Set([u].concat(ue(l),ue(c)));return d.forEach(function(m){m.addEventListener("scroll",f,{passive:!0})}),u.addEventListener("resize",f,{passive:!0}),r(),function(){d.forEach(function(m){m.removeEventListener("scroll",f),u.removeEventListener("resize",f)})}}},[e,t,n])}function fk(e,t,n,r,o,a,i,l){var c=s.useRef(e);c.current=e,s.useEffect(function(){if(t&&r&&(!o||a)){var u=function(g){var y=g.target;c.current&&!i(y)&&l(!1)},d=dc(r);d.addEventListener("mousedown",u,!0),d.addEventListener("contextmenu",u,!0);var f=od(n);return f&&(f.addEventListener("mousedown",u,!0),f.addEventListener("contextmenu",u,!0)),function(){d.removeEventListener("mousedown",u,!0),d.removeEventListener("contextmenu",u,!0),f&&(f.removeEventListener("mousedown",u,!0),f.removeEventListener("contextmenu",u,!0))}}},[t,n,r,o,a])}var mk=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function gk(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:wh,t=s.forwardRef(function(n,r){var o=n.prefixCls,a=o===void 0?"rc-trigger-popup":o,i=n.children,l=n.action,c=l===void 0?"hover":l,u=n.showAction,d=n.hideAction,f=n.popupVisible,m=n.defaultPopupVisible,g=n.onPopupVisibleChange,y=n.afterPopupVisibleChange,h=n.mouseEnterDelay,C=n.mouseLeaveDelay,p=C===void 0?.1:C,v=n.focusDelay,b=n.blurDelay,S=n.mask,$=n.maskClosable,x=$===void 0?!0:$,w=n.getPopupContainer,O=n.forceRender,E=n.autoDestroy,I=n.destroyPopupOnHide,T=n.popup,_=n.popupClassName,R=n.popupStyle,M=n.popupPlacement,L=n.builtinPlacements,z=L===void 0?{}:L,P=n.popupAlign,N=n.zIndex,k=n.stretch,j=n.getPopupClassNameFromAlign,B=n.fresh,F=n.alignPoint,K=n.onPopupClick,X=n.onPopupAlign,U=n.arrow,re=n.popupMotion,Z=n.maskMotion,ne=n.popupTransitionName,le=n.popupAnimation,ee=n.maskTransitionName,q=n.maskAnimation,te=n.className,J=n.getTriggerDOMNode,W=tt(n,mk),Y=E||I||!1,de=s.useState(!1),oe=Q(de,2),se=oe[0],ae=oe[1];Mt(function(){ae(Lh())},[]);var ie=s.useRef({}),pe=s.useContext(fC),me=s.useMemo(function(){return{registerSubPopup:function(ft,ln){ie.current[ft]=ln,pe==null||pe.registerSubPopup(ft,ln)}}},[pe]),ge=Jw(),ve=s.useState(null),$e=Q(ve,2),we=$e[0],We=$e[1],_e=s.useRef(null),Se=Ft(function(Ye){_e.current=Ye,Zu(Ye)&&we!==Ye&&We(Ye),pe==null||pe.registerSubPopup(ge,Ye)}),Ce=s.useState(null),Oe=Q(Ce,2),ke=Oe[0],Ze=Oe[1],He=s.useRef(null),Ve=Ft(function(Ye){Zu(Ye)&&ke!==Ye&&(Ze(Ye),He.current=Ye)}),it=s.Children.only(i),Je=(it==null?void 0:it.props)||{},Ae={},lt=Ft(function(Ye){var ft,ln,Cn=ke;return(Cn==null?void 0:Cn.contains(Ye))||((ft=od(Cn))===null||ft===void 0?void 0:ft.host)===Ye||Ye===Cn||(we==null?void 0:we.contains(Ye))||((ln=od(we))===null||ln===void 0?void 0:ln.host)===Ye||Ye===we||Object.values(ie.current).some(function(sn){return(sn==null?void 0:sn.contains(Ye))||Ye===sn})}),ut=gC(a,re,le,ne),St=gC(a,Z,q,ee),st=s.useState(m||!1),vt=Q(st,2),nt=vt[0],Me=vt[1],Xe=f??nt,De=Ft(function(Ye){f===void 0&&Me(Ye)});Mt(function(){Me(f||!1)},[f]);var xe=s.useRef(Xe);xe.current=Xe;var ze=s.useRef([]);ze.current=[];var rt=Ft(function(Ye){var ft;De(Ye),((ft=ze.current[ze.current.length-1])!==null&&ft!==void 0?ft:Xe)!==Ye&&(ze.current.push(Ye),g==null||g(Ye))}),ye=s.useRef(),Re=function(){clearTimeout(ye.current)},Pe=function(ft){var ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Re(),ln===0?rt(ft):ye.current=setTimeout(function(){rt(ft)},ln*1e3)};s.useEffect(function(){return Re},[]);var Ge=s.useState(!1),ot=Q(Ge,2),et=ot[0],Ot=ot[1];Mt(function(Ye){(!Ye||Xe)&&Ot(!0)},[Xe]);var Be=s.useState(null),Ee=Q(Be,2),be=Ee[0],Ue=Ee[1],Ne=s.useState([0,0]),Te=Q(Ne,2),Fe=Te[0],ct=Te[1],xt=function(ft){ct([ft.clientX,ft.clientY])},Ut=uk(Xe,we,F?Fe:ke,M,z,P,X),gt=Q(Ut,11),en=gt[0],tn=gt[1],pn=gt[2],At=gt[3],Kn=gt[4],kn=gt[5],Qe=gt[6],mt=gt[7],It=gt[8],Bt=gt[9],un=gt[10],Er=lk(se,c,u,d),Fr=Q(Er,2),er=Fr[0],ur=Fr[1],Rt=er.has("click"),ht=ur.has("click")||ur.has("contextMenu"),Le=Ft(function(){et||un()}),qe=function(){xe.current&&F&&ht&&Pe(!1)};dk(Xe,ke,we,Le,qe),Mt(function(){Le()},[Fe,M]),Mt(function(){Xe&&!(z!=null&&z[M])&&Le()},[JSON.stringify(P)]);var Ct=s.useMemo(function(){var Ye=ck(z,a,Bt,F);return V(Ye,j==null?void 0:j(Bt))},[Bt,j,z,a,F]);s.useImperativeHandle(r,function(){return{nativeElement:He.current,popupElement:_e.current,forceAlign:Le}});var Ht=s.useState(0),Tt=Q(Ht,2),qt=Tt[0],vn=Tt[1],In=s.useState(0),an=Q(In,2),wn=an[0],Pn=an[1],dr=function(){if(k&&ke){var ft=ke.getBoundingClientRect();vn(ft.width),Pn(ft.height)}},Wn=function(){dr(),Le()},ai=function(ft){Ot(!1),un(),y==null||y(ft)},pt=function(){return new Promise(function(ft){dr(),Ue(function(){return ft})})};Mt(function(){be&&(un(),be(),Ue(null))},[be]);function dt(Ye,ft,ln,Cn){Ae[Ye]=function(sn){var hc;Cn==null||Cn(sn),Pe(ft,ln);for(var Lf=arguments.length,E0=new Array(Lf>1?Lf-1:0),yc=1;yc1?ln-1:0),sn=1;sn1?ln-1:0),sn=1;sn1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],a=YE(n,!1),i=a.label,l=a.value,c=a.options,u=a.groupLabel;function d(f,m){Array.isArray(f)&&f.forEach(function(g){if(m||!(c in g)){var y=g[l];o.push({key:bC(g,o.length),groupOption:m,data:g,label:g[i],value:y})}else{var h=g[u];h===void 0&&r&&(h=g.label),o.push({key:bC(g,o.length),group:!0,data:g,label:h}),d(g[c],!0)}})}return d(e,!1),o}function zp(e){var t=A({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Zt(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var Ck=function(t,n,r){if(!n||!n.length)return null;var o=!1,a=function l(c,u){var d=A$(u),f=d[0],m=d.slice(1);if(!f)return[c];var g=c.split(f);return o=o||g.length>1,g.reduce(function(y,h){return[].concat(ue(y),ue(l(h,m)))},[]).filter(Boolean)},i=a(t,n);return o?typeof r<"u"?i.slice(0,r):i:null},kh=s.createContext(null),Sk=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],xk=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],jp=function(t){return t==="tags"||t==="multiple"},$k=s.forwardRef(function(e,t){var n,r=e.id,o=e.prefixCls,a=e.className,i=e.showSearch,l=e.tagRender,c=e.direction,u=e.omitDomProps,d=e.displayValues,f=e.onDisplayValuesChange,m=e.emptyOptions,g=e.notFoundContent,y=g===void 0?"Not Found":g,h=e.onClear,C=e.mode,p=e.disabled,v=e.loading,b=e.getInputElement,S=e.getRawInputElement,$=e.open,x=e.defaultOpen,w=e.onDropdownVisibleChange,O=e.activeValue,E=e.onActiveValueChange,I=e.activeDescendantId,T=e.searchValue,_=e.autoClearSearchValue,R=e.onSearch,M=e.onSearchSplit,L=e.tokenSeparators,z=e.allowClear,P=e.suffixIcon,N=e.clearIcon,k=e.OptionList,j=e.animation,B=e.transitionName,F=e.dropdownStyle,K=e.dropdownClassName,X=e.dropdownMatchSelectWidth,U=e.dropdownRender,re=e.dropdownAlign,Z=e.placement,ne=e.builtinPlacements,le=e.getPopupContainer,ee=e.showAction,q=ee===void 0?[]:ee,te=e.onFocus,J=e.onBlur,W=e.onKeyUp,Y=e.onKeyDown,de=e.onMouseDown,oe=tt(e,Sk),se=jp(C),ae=(i!==void 0?i:se)||C==="combobox",ie=A({},oe);xk.forEach(function(Le){delete ie[Le]}),u==null||u.forEach(function(Le){delete ie[Le]});var pe=s.useState(!1),me=Q(pe,2),ge=me[0],ve=me[1];s.useEffect(function(){ve(Lh())},[]);var $e=s.useRef(null),we=s.useRef(null),We=s.useRef(null),_e=s.useRef(null),Se=s.useRef(null),Ce=s.useRef(!1),Oe=TL(),ke=Q(Oe,3),Ze=ke[0],He=ke[1],Ve=ke[2];s.useImperativeHandle(t,function(){var Le,qe;return{focus:(Le=_e.current)===null||Le===void 0?void 0:Le.focus,blur:(qe=_e.current)===null||qe===void 0?void 0:qe.blur,scrollTo:function(Ht){var Tt;return(Tt=Se.current)===null||Tt===void 0?void 0:Tt.scrollTo(Ht)}}});var it=s.useMemo(function(){var Le;if(C!=="combobox")return T;var qe=(Le=d[0])===null||Le===void 0?void 0:Le.value;return typeof qe=="string"||typeof qe=="number"?String(qe):""},[T,C,d]),Je=C==="combobox"&&typeof b=="function"&&b()||null,Ae=typeof S=="function"&&S(),lt=Sa(we,Ae==null||(n=Ae.props)===null||n===void 0?void 0:n.ref),ut=s.useState(!1),St=Q(ut,2),st=St[0],vt=St[1];Mt(function(){vt(!0)},[]);var nt=Jt(!1,{defaultValue:x,value:$}),Me=Q(nt,2),Xe=Me[0],De=Me[1],xe=st?Xe:!1,ze=!y&&m;(p||ze&&xe&&C==="combobox")&&(xe=!1);var rt=ze?!1:xe,ye=s.useCallback(function(Le){var qe=Le!==void 0?Le:!xe;p||(De(qe),xe!==qe&&(w==null||w(qe)))},[p,xe,De,w]),Re=s.useMemo(function(){return(L||[]).some(function(Le){return[` `,`\r -`].includes(Le)})},[L]),Pe=s.useContext(kh)||{},Ge=Pe.maxCount,ot=Pe.rawValues,et=function(qe,Ct,Ht){if(!(se&&_p(Ge)&&(ot==null?void 0:ot.size)>=Ge)){var Tt=!0,qt=qe;E==null||E(null);var vn=C3(qe,L,_p(Ge)?Ge-ot.size:void 0),In=Ht?null:vn;return C!=="combobox"&&In&&(qt="",M==null||M(In),ye(!1),Tt=!1),R&&it!==qt&&R(qt,{source:Ct?"typing":"effect"}),Tt}},Et=function(qe){!qe||!qe.trim()||R(qe,{source:"submit"})};s.useEffect(function(){!xe&&!se&&C!=="combobox"&&et("",!1,!1)},[xe]),s.useEffect(function(){Xe&&p&&De(!1),p&&!Ce.current&&He(!1)},[p]);var Be=VE(),Ee=Q(Be,2),be=Ee[0],Ue=Ee[1],Ne=function(qe){var Ct=be(),Ht=qe.which;if(Ht===fe.ENTER&&(C!=="combobox"&&qe.preventDefault(),xe||ye(!0)),Ue(!!it),Ht===fe.BACKSPACE&&!Ct&&se&&!it&&d.length){for(var Tt=ue(d),qt=null,vn=Tt.length-1;vn>=0;vn-=1){var In=Tt[vn];if(!In.disabled){Tt.splice(vn,1),qt=In;break}}qt&&f(Tt,{type:"remove",values:[qt]})}for(var an=arguments.length,wn=new Array(an>1?an-1:0),Pn=1;Pn1?Ct-1:0),Tt=1;Tt1?vn-1:0),an=1;an0&&arguments[0]!==void 0?arguments[0]:!1;d();var y=function(){l.current.forEach(function(C,p){if(C&&C.offsetParent){var v=rs(C),b=v.offsetHeight;c.current.get(p)!==b&&c.current.set(p,v.offsetHeight)}}),i(function(C){return C+1})};g?y():u.current=It(y)}function m(g,y){var h=e(g),C=l.current.get(h);y?(l.current.set(h,y),f()):l.current.delete(h),!C!=!y&&(y?t==null||t(g):n==null||n(g))}return s.useEffect(function(){return d},[]),[m,f,c.current,a]}var P3=10;function R3(e,t,n,r,o,a,i,l){var c=s.useRef(),u=s.useState(null),d=Q(u,2),f=d[0],m=d[1];return Mt(function(){if(f&&f.times=0;M-=1){var L=o(t[M]),z=n.get(L);if(z===void 0){v=!0;break}if(R-=z,R<=0)break}switch($){case"top":S=w-C;break;case"bottom":S=O-p+C;break;default:{var P=e.current.scrollTop,N=P+p;wN&&(b="bottom")}}S!==null&&i(S),S!==f.lastTop&&(v=!0)}v&&m(A(A({},f),{},{times:f.times+1,targetAlign:b,lastTop:S}))}},[f,e.current]),function(g){if(g==null){l();return}if(It.cancel(c.current),typeof g=="number")i(g);else if(g&&at(g)==="object"){var y,h=g.align;"index"in g?y=g.index:y=t.findIndex(function(v){return o(v)===g.key});var C=g.offset,p=C===void 0?0:C;m({times:0,index:y,offset:p,originAlign:h})}}}function N3(e,t,n){var r=e.length,o=t.length,a,i;if(r===0&&o===0)return null;r"u"?"undefined":at(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const ZE=function(e,t){var n=s.useRef(!1),r=s.useRef(null);function o(){clearTimeout(r.current),n.current=!0,r.current=setTimeout(function(){n.current=!1},50)}var a=s.useRef({top:e,bottom:t});return a.current.top=e,a.current.bottom=t,function(i){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,c=i<0&&a.current.top||i>0&&a.current.bottom;return l&&c?(clearTimeout(r.current),n.current=!1):(!c||n.current)&&o(),!n.current&&c}};function M3(e,t,n,r,o){var a=s.useRef(0),i=s.useRef(null),l=s.useRef(null),c=s.useRef(!1),u=ZE(t,n);function d(C,p){It.cancel(i.current),a.current+=p,l.current=p,!u(p)&&(xC||C.preventDefault(),i.current=It(function(){var v=c.current?10:1;o(a.current*v),a.current=0}))}function f(C,p){o(p,!0),xC||C.preventDefault()}var m=s.useRef(null),g=s.useRef(null);function y(C){if(e){It.cancel(g.current),g.current=It(function(){m.current=null},2);var p=C.deltaX,v=C.deltaY,b=C.shiftKey,S=p,$=v;(m.current==="sx"||!m.current&&b&&v&&!p)&&(S=v,$=0,m.current="sx");var x=Math.abs(S),w=Math.abs($);m.current===null&&(m.current=r&&x>w?"x":"y"),m.current==="y"?d(C,$):f(C,S)}}function h(C){e&&(c.current=C.detail===l.current)}return[y,h]}var _3=14/15;function z3(e,t,n){var r=s.useRef(!1),o=s.useRef(0),a=s.useRef(null),i=s.useRef(null),l,c=function(m){if(r.current){var g=Math.ceil(m.touches[0].pageY),y=o.current-g;o.current=g,n(y)&&m.preventDefault(),clearInterval(i.current),i.current=setInterval(function(){y*=_3,(!n(y,!0)||Math.abs(y)<=.1)&&clearInterval(i.current)},16)}},u=function(){r.current=!1,l()},d=function(m){l(),m.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(m.touches[0].pageY),a.current=m.target,a.current.addEventListener("touchmove",c),a.current.addEventListener("touchend",u))};l=function(){a.current&&(a.current.removeEventListener("touchmove",c),a.current.removeEventListener("touchend",u))},Mt(function(){return e&&t.current.addEventListener("touchstart",d),function(){var f;(f=t.current)===null||f===void 0||f.removeEventListener("touchstart",d),l(),clearInterval(i.current)}},[e])}var j3=20;function $C(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,j3),Math.floor(n)}function L3(e,t,n,r){var o=s.useMemo(function(){return[new Map,[]]},[e,n.id,r]),a=Q(o,2),i=a[0],l=a[1],c=function(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d,m=i.get(d),g=i.get(f);if(m===void 0||g===void 0)for(var y=e.length,h=l.length;ha||!!h),T=y==="rtl",_=V(r,D({},"".concat(r,"-rtl"),T),o),R=d||D3,M=s.useRef(),L=s.useRef(),z=s.useState(0),P=Q(z,2),N=P[0],k=P[1],j=s.useState(0),B=Q(j,2),F=B[0],K=B[1],X=s.useState(!1),U=Q(X,2),re=U[0],Z=U[1],ne=function(){Z(!0)},le=function(){Z(!1)},ee=s.useCallback(function(Ne){return typeof m=="function"?m(Ne):Ne==null?void 0:Ne[m]},[m]),q={getKey:ee};function te(Ne){k(function(Te){var Fe;typeof Ne=="function"?Fe=Ne(Te):Fe=Ne;var ct=ut(Fe);return M.current.scrollTop=ct,ct})}var J=s.useRef({start:0,end:R.length}),W=s.useRef(),Y=T3(R,ee),de=Q(Y,1),oe=de[0];W.current=oe;var se=I3(ee,null,null),ae=Q(se,4),ie=ae[0],pe=ae[1],me=ae[2],ge=ae[3],ve=s.useMemo(function(){if(!E)return{scrollHeight:void 0,start:0,end:R.length-1,offset:void 0};if(!I){var Ne;return{scrollHeight:((Ne=L.current)===null||Ne===void 0?void 0:Ne.offsetHeight)||0,start:0,end:R.length-1,offset:void 0}}for(var Te=0,Fe,ct,xt,Ut=R.length,gt=0;gt=N&&Fe===void 0&&(Fe=gt,ct=Te),At>N+a&&xt===void 0&&(xt=gt),Te=At}return Fe===void 0&&(Fe=0,ct=0,xt=Math.ceil(a/i)),xt===void 0&&(xt=R.length-1),xt=Math.min(xt+1,R.length-1),{scrollHeight:Te,start:Fe,end:xt,offset:ct}},[I,E,N,R,ge,a]),$e=ve.scrollHeight,we=ve.start,We=ve.end,_e=ve.offset;J.current.start=we,J.current.end=We;var Se=s.useState({width:0,height:a}),Ce=Q(Se,2),Oe=Ce[0],ke=Ce[1],Ze=function(Te){ke({width:Te.width||Te.offsetWidth,height:Te.height||Te.offsetHeight})},He=s.useRef(),Ve=s.useRef(),it=s.useMemo(function(){return $C(Oe.width,h)},[Oe.width,h]),Je=s.useMemo(function(){return $C(Oe.height,$e)},[Oe.height,$e]),Ae=$e-a,lt=s.useRef(Ae);lt.current=Ae;function ut(Ne){var Te=Ne;return Number.isNaN(lt.current)||(Te=Math.min(Te,lt.current)),Te=Math.max(Te,0),Te}var St=N<=0,st=N>=Ae,vt=ZE(St,st),nt=function(){return{x:T?-F:F,y:N}},Me=s.useRef(nt()),Xe=Ft(function(){if(b){var Ne=nt();(Me.current.x!==Ne.x||Me.current.y!==Ne.y)&&(b(Ne),Me.current=Ne)}});function De(Ne,Te){var Fe=Ne;Te?(To.flushSync(function(){K(Fe)}),Xe()):te(Fe)}function xe(Ne){var Te=Ne.currentTarget.scrollTop;Te!==N&&te(Te),v==null||v(Ne),Xe()}var ze=function(Te){var Fe=Te,ct=h-Oe.width;return Fe=Math.max(Fe,0),Fe=Math.min(Fe,ct),Fe},rt=Ft(function(Ne,Te){Te?(To.flushSync(function(){K(function(Fe){var ct=Fe+(T?-Ne:Ne);return ze(ct)})}),Xe()):te(function(Fe){var ct=Fe+Ne;return ct})}),ye=M3(E,St,st,!!h,rt),Re=Q(ye,2),Pe=Re[0],Ge=Re[1];z3(E,M,function(Ne,Te){return vt(Ne,Te)?!1:(Pe({preventDefault:function(){},deltaY:Ne}),!0)}),Mt(function(){function Ne(Fe){E&&Fe.preventDefault()}var Te=M.current;return Te.addEventListener("wheel",Pe),Te.addEventListener("DOMMouseScroll",Ge),Te.addEventListener("MozMousePixelScroll",Ne),function(){Te.removeEventListener("wheel",Pe),Te.removeEventListener("DOMMouseScroll",Ge),Te.removeEventListener("MozMousePixelScroll",Ne)}},[E]),Mt(function(){h&&K(function(Ne){return ze(Ne)})},[Oe.width,h]);var ot=function(){var Te,Fe;(Te=He.current)===null||Te===void 0||Te.delayHidden(),(Fe=Ve.current)===null||Fe===void 0||Fe.delayHidden()},et=R3(M,R,me,i,ee,function(){return pe(!0)},te,ot);s.useImperativeHandle(t,function(){return{getScrollInfo:nt,scrollTo:function(Te){function Fe(ct){return ct&&at(ct)==="object"&&("left"in ct||"top"in ct)}Fe(Te)?(Te.left!==void 0&&K(ze(Te.left)),et(Te.top)):et(Te)}}}),Mt(function(){if(S){var Ne=R.slice(we,We+1);S(Ne,R)}},[we,We,R]);var Et=L3(R,ee,me,i),Be=x==null?void 0:x({start:we,end:We,virtual:I,offsetX:F,offsetY:_e,rtl:T,getSize:Et}),Ee=E3(R,we,We,h,ie,f,q),be=null;a&&(be=A(D({},c?"height":"maxHeight",a),B3),E&&(be.overflowY="hidden",h&&(be.overflowX="hidden"),re&&(be.pointerEvents="none")));var Ue={};return T&&(Ue.dir="rtl"),s.createElement("div",ce({style:A(A({},u),{},{position:"relative"}),className:_},Ue,O),s.createElement(ir,{onResize:Ze},s.createElement(p,{className:"".concat(r,"-holder"),style:be,ref:M,onScroll:xe,onMouseEnter:ot},s.createElement(QE,{prefixCls:r,height:$e,offsetX:F,offsetY:_e,scrollWidth:h,onInnerResize:pe,ref:L,innerProps:$,rtl:T,extra:Be},Ee))),I&&$e>a&&s.createElement(SC,{ref:He,prefixCls:r,scrollOffset:N,scrollRange:$e,rtl:T,onScroll:De,onStartMove:ne,onStopMove:le,spinSize:Je,containerSize:Oe.height,style:w==null?void 0:w.verticalScrollBar,thumbStyle:w==null?void 0:w.verticalScrollBarThumb}),I&&h>Oe.width&&s.createElement(SC,{ref:Ve,prefixCls:r,scrollOffset:F,scrollRange:h,rtl:T,onScroll:De,onStartMove:ne,onStopMove:le,spinSize:it,containerSize:Oe.width,horizontal:!0,style:w==null?void 0:w.horizontalScrollBar,thumbStyle:w==null?void 0:w.horizontalScrollBarThumb}))}var vf=s.forwardRef(F3);vf.displayName="List";function A3(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var H3=["disabled","title","children","style","className"];function wC(e){return typeof e=="string"||typeof e=="number"}var V3=function(t,n){var r=Nk(),o=r.prefixCls,a=r.id,i=r.open,l=r.multiple,c=r.mode,u=r.searchValue,d=r.toggleOpen,f=r.notFoundContent,m=r.onPopupScroll,g=s.useContext(kh),y=g.maxCount,h=g.flattenOptions,C=g.onActiveValue,p=g.defaultActiveFirstOption,v=g.onSelect,b=g.menuItemSelectedIcon,S=g.rawValues,$=g.fieldNames,x=g.virtual,w=g.direction,O=g.listHeight,E=g.listItemHeight,I=g.optionRender,T="".concat(o,"-item"),_=Za(function(){return h},[i,h],function(ee,q){return q[0]&&ee[1]!==q[1]}),R=s.useRef(null),M=s.useMemo(function(){return l&&_p(y)&&(S==null?void 0:S.size)>=y},[l,y,S==null?void 0:S.size]),L=function(q){q.preventDefault()},z=function(q){var te;(te=R.current)===null||te===void 0||te.scrollTo(typeof q=="number"?{index:q}:q)},P=function(q){for(var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,J=_.length,W=0;W1&&arguments[1]!==void 0?arguments[1]:!1;B(q);var J={source:te?"keyboard":"mouse"},W=_[q];if(!W){C(null,-1,J);return}C(W.value,q,J)};s.useEffect(function(){F(p!==!1?P(0):-1)},[_.length,u]);var K=s.useCallback(function(ee){return S.has(ee)&&c!=="combobox"},[c,ue(S).toString(),S.size]);s.useEffect(function(){var ee=setTimeout(function(){if(!l&&i&&S.size===1){var te=Array.from(S)[0],J=_.findIndex(function(W){var Y=W.data;return Y.value===te});J!==-1&&(F(J),z(J))}});if(i){var q;(q=R.current)===null||q===void 0||q.scrollTo(void 0)}return function(){return clearTimeout(ee)}},[i,u]);var X=function(q){q!==void 0&&v(q,{selected:!S.has(q)}),l||d(!1)};if(s.useImperativeHandle(n,function(){return{onKeyDown:function(q){var te=q.which,J=q.ctrlKey;switch(te){case fe.N:case fe.P:case fe.UP:case fe.DOWN:{var W=0;if(te===fe.UP?W=-1:te===fe.DOWN?W=1:A3()&&J&&(te===fe.N?W=1:te===fe.P&&(W=-1)),W!==0){var Y=P(j+W,W);z(Y),F(Y,!0)}break}case fe.ENTER:{var de,oe=_[j];oe&&!(oe!=null&&(de=oe.data)!==null&&de!==void 0&&de.disabled)&&!M?X(oe.value):X(void 0),i&&q.preventDefault();break}case fe.ESC:d(!1),i&&q.stopPropagation()}},onKeyUp:function(){},scrollTo:function(q){z(q)}}}),_.length===0)return s.createElement("div",{role:"listbox",id:"".concat(a,"_list"),className:"".concat(T,"-empty"),onMouseDown:L},f);var U=Object.keys($).map(function(ee){return $[ee]}),re=function(q){return q.label};function Z(ee,q){var te=ee.group;return{role:te?"presentation":"option",id:"".concat(a,"_list_").concat(q)}}var ne=function(q){var te=_[q];if(!te)return null;var J=te.data||{},W=J.value,Y=te.group,de=qn(J,!0),oe=re(te);return te?s.createElement("div",ce({"aria-label":typeof oe=="string"&&!Y?oe:null},de,{key:q},Z(te,q),{"aria-selected":K(W)}),W):null},le={role:"listbox",id:"".concat(a,"_list")};return s.createElement(s.Fragment,null,x&&s.createElement("div",ce({},le,{style:{height:0,width:0,overflow:"hidden"}}),ne(j-1),ne(j),ne(j+1)),s.createElement(vf,{itemKey:"key",ref:R,data:_,height:O,itemHeight:E,fullHeight:!1,onMouseDown:L,onScroll:m,virtual:x,direction:w,innerProps:x?null:le},function(ee,q){var te=ee.group,J=ee.groupOption,W=ee.data,Y=ee.label,de=ee.value,oe=W.key;if(te){var se,ae=(se=W.title)!==null&&se!==void 0?se:wC(Y)?Y.toString():void 0;return s.createElement("div",{className:V(T,"".concat(T,"-group"),W.className),title:ae},Y!==void 0?Y:oe)}var ie=W.disabled,pe=W.title;W.children;var me=W.style,ge=W.className,ve=tt(W,H3),$e=Kt(ve,U),we=K(de),We=ie||!we&&M,_e="".concat(T,"-option"),Se=V(T,_e,ge,D(D(D(D({},"".concat(_e,"-grouped"),J),"".concat(_e,"-active"),j===q&&!We),"".concat(_e,"-disabled"),We),"".concat(_e,"-selected"),we)),Ce=re(ee),Oe=!b||typeof b=="function"||we,ke=typeof Ce=="number"?Ce:Ce||de,Ze=wC(ke)?ke.toString():void 0;return pe!==void 0&&(Ze=pe),s.createElement("div",ce({},qn($e),x?{}:Z(ee,q),{"aria-selected":we,className:Se,title:Ze,onMouseMove:function(){j===q||We||F(q)},onClick:function(){We||X(de)},style:me}),s.createElement("div",{className:"".concat(_e,"-content")},typeof I=="function"?I(ee,{index:q}):ke),s.isValidElement(b)||we,Oe&&s.createElement(gf,{className:"".concat(T,"-option-state"),customizeIcon:b,customizeIconProps:{value:de,disabled:We,isSelected:we}},we?"✓":null))}))},K3=s.forwardRef(V3);const W3=function(e,t){var n=s.useRef({values:new Map,options:new Map}),r=s.useMemo(function(){var a=n.current,i=a.values,l=a.options,c=e.map(function(f){if(f.label===void 0){var m;return A(A({},f),{},{label:(m=i.get(f.value))===null||m===void 0?void 0:m.label})}return f}),u=new Map,d=new Map;return c.forEach(function(f){u.set(f.value,f),d.set(f.value,t.get(f.value)||l.get(f.value))}),n.current.values=u,n.current.options=d,c},[e,t]),o=s.useCallback(function(a){return t.get(a)||n.current.options.get(a)},[t]);return[r,o]};function Mm(e,t){return qE(e).join("").toUpperCase().includes(t)}const G3=function(e,t,n,r,o){return s.useMemo(function(){if(!n||r===!1)return e;var a=t.options,i=t.label,l=t.value,c=[],u=typeof r=="function",d=n.toUpperCase(),f=u?r:function(g,y){return o?Mm(y[o],d):y[a]?Mm(y[i!=="children"?i:"label"],d):Mm(y[l],d)},m=u?function(g){return zp(g)}:function(g){return g};return e.forEach(function(g){if(g[a]){var y=f(n,m(g));if(y)c.push(g);else{var h=g[a].filter(function(C){return f(n,m(C))});h.length&&c.push(A(A({},g),{},D({},a,h)))}return}f(n,m(g))&&c.push(g)}),c},[e,r,o,n,t])};var EC=0,U3=zn();function q3(){var e;return U3?(e=EC,EC+=1):e="TEST_OR_SSR",e}function X3(e){var t=s.useState(),n=Q(t,2),r=n[0],o=n[1];return s.useEffect(function(){o("rc_select_".concat(q3()))},[]),e||r}var Y3=["children","value"],Q3=["children"];function Z3(e){var t=e,n=t.key,r=t.props,o=r.children,a=r.value,i=tt(r,Y3);return A({key:n,value:a!==void 0?a:n,children:o},i)}function JE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return lr(e).map(function(n,r){if(!s.isValidElement(n)||!n.type)return null;var o=n,a=o.type.isSelectOptGroup,i=o.key,l=o.props,c=l.children,u=tt(l,Q3);return t||!a?Z3(n):A(A({key:"__RC_SELECT_GRP__".concat(i===null?r:i,"__"),label:i},u),{},{options:JE(c)})}).filter(function(n){return n})}var J3=function(t,n,r,o,a){return s.useMemo(function(){var i=t,l=!t;l&&(i=JE(n));var c=new Map,u=new Map,d=function(g,y,h){h&&typeof h=="string"&&g.set(y[h],y)},f=function m(g){for(var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,h=0;h2&&arguments[2]!==void 0?arguments[2]:{},Ge=Pe.source,ot=Ge===void 0?"keyboard":Ge;st(Re),i&&r==="combobox"&&ye!==null&&ot==="keyboard"&&Ae(String(ye))},[i,r]),Me=function(Re,Pe,Ge){var ot=function(){var ct,xt=$e(Re);return[k?{label:xt==null?void 0:xt[Z.label],value:Re,key:(ct=xt==null?void 0:xt.key)!==null&&ct!==void 0?ct:Re}:Re,zp(xt)]};if(Pe&&g){var et=ot(),Et=Q(et,2),Be=Et[0],Ee=Et[1];g(Be,Ee)}else if(!Pe&&y&&Ge!=="clear"){var be=ot(),Ue=Q(be,2),Ne=Ue[0],Te=Ue[1];y(Ne,Te)}},Xe=OC(function(ye,Re){var Pe,Ge=X?Re.selected:!0;Ge?Pe=X?[].concat(ue(ve),[ye]):[ye]:Pe=ve.filter(function(ot){return ot.value!==ye}),He(Pe),Me(ye,Ge),r==="combobox"?Ae(""):(!jp||m)&&(q(""),Ae(""))}),De=function(Re,Pe){He(Re);var Ge=Pe.type,ot=Pe.values;(Ge==="remove"||Ge==="clear")&&ot.forEach(function(et){Me(et.value,!1,Ge)})},xe=function(Re,Pe){if(q(Re),Ae(null),Pe.source==="submit"){var Ge=(Re||"").trim();if(Ge){var ot=Array.from(new Set([].concat(ue(We),[Ge])));He(ot),Me(Ge,!0),q("")}return}Pe.source!=="blur"&&(r==="combobox"&&He(Re),d==null||d(Re))},ze=function(Re){var Pe=Re;r!=="tags"&&(Pe=Re.map(function(ot){var et=W.get(ot);return et==null?void 0:et.value}).filter(function(ot){return ot!==void 0}));var Ge=Array.from(new Set([].concat(ue(We),ue(Pe))));He(Ge),Ge.forEach(function(ot){Me(ot,!0)})},rt=s.useMemo(function(){var ye=I!==!1&&C!==!1;return A(A({},te),{},{flattenOptions:Ze,onActiveValue:nt,defaultActiveFirstOption:vt,onSelect:Xe,menuItemSelectedIcon:E,rawValues:We,fieldNames:Z,virtual:ye,direction:T,listHeight:R,listItemHeight:L,childrenAsData:U,maxCount:B,optionRender:x})},[B,te,Ze,nt,vt,Xe,E,We,Z,I,C,T,R,L,U,x]);return s.createElement(kh.Provider,{value:rt},s.createElement($3,ce({},F,{id:K,prefixCls:a,ref:t,omitDomProps:tD,mode:r,displayValues:we,onDisplayValuesChange:De,direction:T,searchValue:ee,onSearch:xe,autoClearSearchValue:m,onSearchSplit:ze,dropdownMatchSelectWidth:C,OptionList:K3,emptyOptions:!Ze.length,activeValue:Je,activeDescendantId:"".concat(K,"_list_").concat(St)})))}),Fh=rD;Fh.Option=Bh;Fh.OptGroup=Dh;function fd(e,t,n){return V({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const hf=(e,t)=>t||e,oD=()=>{const[,e]=mn(),n=new Dt(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return s.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},s.createElement("g",{fill:"none",fillRule:"evenodd"},s.createElement("g",{transform:"translate(24 31.67)"},s.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),s.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),s.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),s.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),s.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),s.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),s.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},s.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),s.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},aD=oD,iD=()=>{const[,e]=mn(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:a,shadowColor:i,contentColor:l}=s.useMemo(()=>({borderColor:new Dt(t).onBackground(o).toHexShortString(),shadowColor:new Dt(n).onBackground(o).toHexShortString(),contentColor:new Dt(r).onBackground(o).toHexShortString()}),[t,n,r,o]);return s.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},s.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},s.createElement("ellipse",{fill:i,cx:"32",cy:"33",rx:"32",ry:"7"}),s.createElement("g",{fillRule:"nonzero",stroke:a},s.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),s.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:l}))))},lD=iD,sD=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:a,lineHeight:i}=e;return{[t]:{marginInline:r,fontSize:a,lineHeight:i,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},cD=_t("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=bt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[sD(o)]});var uD=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var{className:t,rootClassName:n,prefixCls:r,image:o=eO,description:a,children:i,imageStyle:l,style:c}=e,u=uD(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:d,direction:f,empty:m}=s.useContext(je),g=d("empty",r),[y,h,C]=cD(g),[p]=ei("Empty"),v=typeof a<"u"?a:p==null?void 0:p.description,b=typeof v=="string"?v:"empty";let S=null;return typeof o=="string"?S=s.createElement("img",{alt:b,src:o}):S=o,y(s.createElement("div",Object.assign({className:V(h,C,g,m==null?void 0:m.className,{[`${g}-normal`]:o===tO,[`${g}-rtl`]:f==="rtl"},t,n),style:Object.assign(Object.assign({},m==null?void 0:m.style),c)},u),s.createElement("div",{className:`${g}-image`,style:l},S),v&&s.createElement("div",{className:`${g}-description`},v),i&&s.createElement("div",{className:`${g}-footer`},i)))};Ah.PRESENTED_IMAGE_DEFAULT=eO;Ah.PRESENTED_IMAGE_SIMPLE=tO;const Ra=Ah,dD=e=>{const{componentName:t}=e,{getPrefixCls:n}=s.useContext(je),r=n("empty");switch(t){case"Table":case"List":return G.createElement(Ra,{image:Ra.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return G.createElement(Ra,{image:Ra.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return G.createElement(Ra,null)}},nO=dD,fD=["outlined","borderless","filled"],mD=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0;const n=s.useContext(gE);let r;typeof e<"u"?r=e:t===!1?r="borderless":r=n??"outlined";const o=fD.includes(r);return[r,o]},Hh=mD,gD=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function pD(e,t){return e||gD(t)}const IC=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},vD=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,i=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},zt(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[` +`].includes(Le)})},[L]),Pe=s.useContext(kh)||{},Ge=Pe.maxCount,ot=Pe.rawValues,et=function(qe,Ct,Ht){if(!(se&&_p(Ge)&&(ot==null?void 0:ot.size)>=Ge)){var Tt=!0,qt=qe;E==null||E(null);var vn=Ck(qe,L,_p(Ge)?Ge-ot.size:void 0),In=Ht?null:vn;return C!=="combobox"&&In&&(qt="",M==null||M(In),ye(!1),Tt=!1),R&&it!==qt&&R(qt,{source:Ct?"typing":"effect"}),Tt}},Ot=function(qe){!qe||!qe.trim()||R(qe,{source:"submit"})};s.useEffect(function(){!xe&&!se&&C!=="combobox"&&et("",!1,!1)},[xe]),s.useEffect(function(){Xe&&p&&De(!1),p&&!Ce.current&&He(!1)},[p]);var Be=VE(),Ee=Q(Be,2),be=Ee[0],Ue=Ee[1],Ne=function(qe){var Ct=be(),Ht=qe.which;if(Ht===fe.ENTER&&(C!=="combobox"&&qe.preventDefault(),xe||ye(!0)),Ue(!!it),Ht===fe.BACKSPACE&&!Ct&&se&&!it&&d.length){for(var Tt=ue(d),qt=null,vn=Tt.length-1;vn>=0;vn-=1){var In=Tt[vn];if(!In.disabled){Tt.splice(vn,1),qt=In;break}}qt&&f(Tt,{type:"remove",values:[qt]})}for(var an=arguments.length,wn=new Array(an>1?an-1:0),Pn=1;Pn1?Ct-1:0),Tt=1;Tt1?vn-1:0),an=1;an0&&arguments[0]!==void 0?arguments[0]:!1;d();var y=function(){l.current.forEach(function(C,p){if(C&&C.offsetParent){var v=rs(C),b=v.offsetHeight;c.current.get(p)!==b&&c.current.set(p,v.offsetHeight)}}),i(function(C){return C+1})};g?y():u.current=Pt(y)}function m(g,y){var h=e(g),C=l.current.get(h);y?(l.current.set(h,y),f()):l.current.delete(h),!C!=!y&&(y?t==null||t(g):n==null||n(g))}return s.useEffect(function(){return d},[]),[m,f,c.current,a]}var Pk=10;function Rk(e,t,n,r,o,a,i,l){var c=s.useRef(),u=s.useState(null),d=Q(u,2),f=d[0],m=d[1];return Mt(function(){if(f&&f.times=0;M-=1){var L=o(t[M]),z=n.get(L);if(z===void 0){v=!0;break}if(R-=z,R<=0)break}switch($){case"top":S=w-C;break;case"bottom":S=O-p+C;break;default:{var P=e.current.scrollTop,N=P+p;wN&&(b="bottom")}}S!==null&&i(S),S!==f.lastTop&&(v=!0)}v&&m(A(A({},f),{},{times:f.times+1,targetAlign:b,lastTop:S}))}},[f,e.current]),function(g){if(g==null){l();return}if(Pt.cancel(c.current),typeof g=="number")i(g);else if(g&&at(g)==="object"){var y,h=g.align;"index"in g?y=g.index:y=t.findIndex(function(v){return o(v)===g.key});var C=g.offset,p=C===void 0?0:C;m({times:0,index:y,offset:p,originAlign:h})}}}function Nk(e,t,n){var r=e.length,o=t.length,a,i;if(r===0&&o===0)return null;r"u"?"undefined":at(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const ZE=function(e,t){var n=s.useRef(!1),r=s.useRef(null);function o(){clearTimeout(r.current),n.current=!0,r.current=setTimeout(function(){n.current=!1},50)}var a=s.useRef({top:e,bottom:t});return a.current.top=e,a.current.bottom=t,function(i){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,c=i<0&&a.current.top||i>0&&a.current.bottom;return l&&c?(clearTimeout(r.current),n.current=!1):(!c||n.current)&&o(),!n.current&&c}};function Mk(e,t,n,r,o){var a=s.useRef(0),i=s.useRef(null),l=s.useRef(null),c=s.useRef(!1),u=ZE(t,n);function d(C,p){Pt.cancel(i.current),a.current+=p,l.current=p,!u(p)&&(xC||C.preventDefault(),i.current=Pt(function(){var v=c.current?10:1;o(a.current*v),a.current=0}))}function f(C,p){o(p,!0),xC||C.preventDefault()}var m=s.useRef(null),g=s.useRef(null);function y(C){if(e){Pt.cancel(g.current),g.current=Pt(function(){m.current=null},2);var p=C.deltaX,v=C.deltaY,b=C.shiftKey,S=p,$=v;(m.current==="sx"||!m.current&&b&&v&&!p)&&(S=v,$=0,m.current="sx");var x=Math.abs(S),w=Math.abs($);m.current===null&&(m.current=r&&x>w?"x":"y"),m.current==="y"?d(C,$):f(C,S)}}function h(C){e&&(c.current=C.detail===l.current)}return[y,h]}var _k=14/15;function zk(e,t,n){var r=s.useRef(!1),o=s.useRef(0),a=s.useRef(null),i=s.useRef(null),l,c=function(m){if(r.current){var g=Math.ceil(m.touches[0].pageY),y=o.current-g;o.current=g,n(y)&&m.preventDefault(),clearInterval(i.current),i.current=setInterval(function(){y*=_k,(!n(y,!0)||Math.abs(y)<=.1)&&clearInterval(i.current)},16)}},u=function(){r.current=!1,l()},d=function(m){l(),m.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(m.touches[0].pageY),a.current=m.target,a.current.addEventListener("touchmove",c),a.current.addEventListener("touchend",u))};l=function(){a.current&&(a.current.removeEventListener("touchmove",c),a.current.removeEventListener("touchend",u))},Mt(function(){return e&&t.current.addEventListener("touchstart",d),function(){var f;(f=t.current)===null||f===void 0||f.removeEventListener("touchstart",d),l(),clearInterval(i.current)}},[e])}var jk=20;function $C(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,jk),Math.floor(n)}function Lk(e,t,n,r){var o=s.useMemo(function(){return[new Map,[]]},[e,n.id,r]),a=Q(o,2),i=a[0],l=a[1],c=function(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d,m=i.get(d),g=i.get(f);if(m===void 0||g===void 0)for(var y=e.length,h=l.length;ha||!!h),T=y==="rtl",_=V(r,D({},"".concat(r,"-rtl"),T),o),R=d||Dk,M=s.useRef(),L=s.useRef(),z=s.useState(0),P=Q(z,2),N=P[0],k=P[1],j=s.useState(0),B=Q(j,2),F=B[0],K=B[1],X=s.useState(!1),U=Q(X,2),re=U[0],Z=U[1],ne=function(){Z(!0)},le=function(){Z(!1)},ee=s.useCallback(function(Ne){return typeof m=="function"?m(Ne):Ne==null?void 0:Ne[m]},[m]),q={getKey:ee};function te(Ne){k(function(Te){var Fe;typeof Ne=="function"?Fe=Ne(Te):Fe=Ne;var ct=ut(Fe);return M.current.scrollTop=ct,ct})}var J=s.useRef({start:0,end:R.length}),W=s.useRef(),Y=Tk(R,ee),de=Q(Y,1),oe=de[0];W.current=oe;var se=Ik(ee,null,null),ae=Q(se,4),ie=ae[0],pe=ae[1],me=ae[2],ge=ae[3],ve=s.useMemo(function(){if(!E)return{scrollHeight:void 0,start:0,end:R.length-1,offset:void 0};if(!I){var Ne;return{scrollHeight:((Ne=L.current)===null||Ne===void 0?void 0:Ne.offsetHeight)||0,start:0,end:R.length-1,offset:void 0}}for(var Te=0,Fe,ct,xt,Ut=R.length,gt=0;gt=N&&Fe===void 0&&(Fe=gt,ct=Te),At>N+a&&xt===void 0&&(xt=gt),Te=At}return Fe===void 0&&(Fe=0,ct=0,xt=Math.ceil(a/i)),xt===void 0&&(xt=R.length-1),xt=Math.min(xt+1,R.length-1),{scrollHeight:Te,start:Fe,end:xt,offset:ct}},[I,E,N,R,ge,a]),$e=ve.scrollHeight,we=ve.start,We=ve.end,_e=ve.offset;J.current.start=we,J.current.end=We;var Se=s.useState({width:0,height:a}),Ce=Q(Se,2),Oe=Ce[0],ke=Ce[1],Ze=function(Te){ke({width:Te.width||Te.offsetWidth,height:Te.height||Te.offsetHeight})},He=s.useRef(),Ve=s.useRef(),it=s.useMemo(function(){return $C(Oe.width,h)},[Oe.width,h]),Je=s.useMemo(function(){return $C(Oe.height,$e)},[Oe.height,$e]),Ae=$e-a,lt=s.useRef(Ae);lt.current=Ae;function ut(Ne){var Te=Ne;return Number.isNaN(lt.current)||(Te=Math.min(Te,lt.current)),Te=Math.max(Te,0),Te}var St=N<=0,st=N>=Ae,vt=ZE(St,st),nt=function(){return{x:T?-F:F,y:N}},Me=s.useRef(nt()),Xe=Ft(function(){if(b){var Ne=nt();(Me.current.x!==Ne.x||Me.current.y!==Ne.y)&&(b(Ne),Me.current=Ne)}});function De(Ne,Te){var Fe=Ne;Te?(To.flushSync(function(){K(Fe)}),Xe()):te(Fe)}function xe(Ne){var Te=Ne.currentTarget.scrollTop;Te!==N&&te(Te),v==null||v(Ne),Xe()}var ze=function(Te){var Fe=Te,ct=h-Oe.width;return Fe=Math.max(Fe,0),Fe=Math.min(Fe,ct),Fe},rt=Ft(function(Ne,Te){Te?(To.flushSync(function(){K(function(Fe){var ct=Fe+(T?-Ne:Ne);return ze(ct)})}),Xe()):te(function(Fe){var ct=Fe+Ne;return ct})}),ye=Mk(E,St,st,!!h,rt),Re=Q(ye,2),Pe=Re[0],Ge=Re[1];zk(E,M,function(Ne,Te){return vt(Ne,Te)?!1:(Pe({preventDefault:function(){},deltaY:Ne}),!0)}),Mt(function(){function Ne(Fe){E&&Fe.preventDefault()}var Te=M.current;return Te.addEventListener("wheel",Pe),Te.addEventListener("DOMMouseScroll",Ge),Te.addEventListener("MozMousePixelScroll",Ne),function(){Te.removeEventListener("wheel",Pe),Te.removeEventListener("DOMMouseScroll",Ge),Te.removeEventListener("MozMousePixelScroll",Ne)}},[E]),Mt(function(){h&&K(function(Ne){return ze(Ne)})},[Oe.width,h]);var ot=function(){var Te,Fe;(Te=He.current)===null||Te===void 0||Te.delayHidden(),(Fe=Ve.current)===null||Fe===void 0||Fe.delayHidden()},et=Rk(M,R,me,i,ee,function(){return pe(!0)},te,ot);s.useImperativeHandle(t,function(){return{getScrollInfo:nt,scrollTo:function(Te){function Fe(ct){return ct&&at(ct)==="object"&&("left"in ct||"top"in ct)}Fe(Te)?(Te.left!==void 0&&K(ze(Te.left)),et(Te.top)):et(Te)}}}),Mt(function(){if(S){var Ne=R.slice(we,We+1);S(Ne,R)}},[we,We,R]);var Ot=Lk(R,ee,me,i),Be=x==null?void 0:x({start:we,end:We,virtual:I,offsetX:F,offsetY:_e,rtl:T,getSize:Ot}),Ee=Ek(R,we,We,h,ie,f,q),be=null;a&&(be=A(D({},c?"height":"maxHeight",a),Bk),E&&(be.overflowY="hidden",h&&(be.overflowX="hidden"),re&&(be.pointerEvents="none")));var Ue={};return T&&(Ue.dir="rtl"),s.createElement("div",ce({style:A(A({},u),{},{position:"relative"}),className:_},Ue,O),s.createElement(ir,{onResize:Ze},s.createElement(p,{className:"".concat(r,"-holder"),style:be,ref:M,onScroll:xe,onMouseEnter:ot},s.createElement(QE,{prefixCls:r,height:$e,offsetX:F,offsetY:_e,scrollWidth:h,onInnerResize:pe,ref:L,innerProps:$,rtl:T,extra:Be},Ee))),I&&$e>a&&s.createElement(SC,{ref:He,prefixCls:r,scrollOffset:N,scrollRange:$e,rtl:T,onScroll:De,onStartMove:ne,onStopMove:le,spinSize:Je,containerSize:Oe.height,style:w==null?void 0:w.verticalScrollBar,thumbStyle:w==null?void 0:w.verticalScrollBarThumb}),I&&h>Oe.width&&s.createElement(SC,{ref:Ve,prefixCls:r,scrollOffset:F,scrollRange:h,rtl:T,onScroll:De,onStartMove:ne,onStopMove:le,spinSize:it,containerSize:Oe.width,horizontal:!0,style:w==null?void 0:w.horizontalScrollBar,thumbStyle:w==null?void 0:w.horizontalScrollBarThumb}))}var vf=s.forwardRef(Fk);vf.displayName="List";function Ak(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Hk=["disabled","title","children","style","className"];function wC(e){return typeof e=="string"||typeof e=="number"}var Vk=function(t,n){var r=NL(),o=r.prefixCls,a=r.id,i=r.open,l=r.multiple,c=r.mode,u=r.searchValue,d=r.toggleOpen,f=r.notFoundContent,m=r.onPopupScroll,g=s.useContext(kh),y=g.maxCount,h=g.flattenOptions,C=g.onActiveValue,p=g.defaultActiveFirstOption,v=g.onSelect,b=g.menuItemSelectedIcon,S=g.rawValues,$=g.fieldNames,x=g.virtual,w=g.direction,O=g.listHeight,E=g.listItemHeight,I=g.optionRender,T="".concat(o,"-item"),_=Za(function(){return h},[i,h],function(ee,q){return q[0]&&ee[1]!==q[1]}),R=s.useRef(null),M=s.useMemo(function(){return l&&_p(y)&&(S==null?void 0:S.size)>=y},[l,y,S==null?void 0:S.size]),L=function(q){q.preventDefault()},z=function(q){var te;(te=R.current)===null||te===void 0||te.scrollTo(typeof q=="number"?{index:q}:q)},P=function(q){for(var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,J=_.length,W=0;W1&&arguments[1]!==void 0?arguments[1]:!1;B(q);var J={source:te?"keyboard":"mouse"},W=_[q];if(!W){C(null,-1,J);return}C(W.value,q,J)};s.useEffect(function(){F(p!==!1?P(0):-1)},[_.length,u]);var K=s.useCallback(function(ee){return S.has(ee)&&c!=="combobox"},[c,ue(S).toString(),S.size]);s.useEffect(function(){var ee=setTimeout(function(){if(!l&&i&&S.size===1){var te=Array.from(S)[0],J=_.findIndex(function(W){var Y=W.data;return Y.value===te});J!==-1&&(F(J),z(J))}});if(i){var q;(q=R.current)===null||q===void 0||q.scrollTo(void 0)}return function(){return clearTimeout(ee)}},[i,u]);var X=function(q){q!==void 0&&v(q,{selected:!S.has(q)}),l||d(!1)};if(s.useImperativeHandle(n,function(){return{onKeyDown:function(q){var te=q.which,J=q.ctrlKey;switch(te){case fe.N:case fe.P:case fe.UP:case fe.DOWN:{var W=0;if(te===fe.UP?W=-1:te===fe.DOWN?W=1:Ak()&&J&&(te===fe.N?W=1:te===fe.P&&(W=-1)),W!==0){var Y=P(j+W,W);z(Y),F(Y,!0)}break}case fe.ENTER:{var de,oe=_[j];oe&&!(oe!=null&&(de=oe.data)!==null&&de!==void 0&&de.disabled)&&!M?X(oe.value):X(void 0),i&&q.preventDefault();break}case fe.ESC:d(!1),i&&q.stopPropagation()}},onKeyUp:function(){},scrollTo:function(q){z(q)}}}),_.length===0)return s.createElement("div",{role:"listbox",id:"".concat(a,"_list"),className:"".concat(T,"-empty"),onMouseDown:L},f);var U=Object.keys($).map(function(ee){return $[ee]}),re=function(q){return q.label};function Z(ee,q){var te=ee.group;return{role:te?"presentation":"option",id:"".concat(a,"_list_").concat(q)}}var ne=function(q){var te=_[q];if(!te)return null;var J=te.data||{},W=J.value,Y=te.group,de=qn(J,!0),oe=re(te);return te?s.createElement("div",ce({"aria-label":typeof oe=="string"&&!Y?oe:null},de,{key:q},Z(te,q),{"aria-selected":K(W)}),W):null},le={role:"listbox",id:"".concat(a,"_list")};return s.createElement(s.Fragment,null,x&&s.createElement("div",ce({},le,{style:{height:0,width:0,overflow:"hidden"}}),ne(j-1),ne(j),ne(j+1)),s.createElement(vf,{itemKey:"key",ref:R,data:_,height:O,itemHeight:E,fullHeight:!1,onMouseDown:L,onScroll:m,virtual:x,direction:w,innerProps:x?null:le},function(ee,q){var te=ee.group,J=ee.groupOption,W=ee.data,Y=ee.label,de=ee.value,oe=W.key;if(te){var se,ae=(se=W.title)!==null&&se!==void 0?se:wC(Y)?Y.toString():void 0;return s.createElement("div",{className:V(T,"".concat(T,"-group"),W.className),title:ae},Y!==void 0?Y:oe)}var ie=W.disabled,pe=W.title;W.children;var me=W.style,ge=W.className,ve=tt(W,Hk),$e=Kt(ve,U),we=K(de),We=ie||!we&&M,_e="".concat(T,"-option"),Se=V(T,_e,ge,D(D(D(D({},"".concat(_e,"-grouped"),J),"".concat(_e,"-active"),j===q&&!We),"".concat(_e,"-disabled"),We),"".concat(_e,"-selected"),we)),Ce=re(ee),Oe=!b||typeof b=="function"||we,ke=typeof Ce=="number"?Ce:Ce||de,Ze=wC(ke)?ke.toString():void 0;return pe!==void 0&&(Ze=pe),s.createElement("div",ce({},qn($e),x?{}:Z(ee,q),{"aria-selected":we,className:Se,title:Ze,onMouseMove:function(){j===q||We||F(q)},onClick:function(){We||X(de)},style:me}),s.createElement("div",{className:"".concat(_e,"-content")},typeof I=="function"?I(ee,{index:q}):ke),s.isValidElement(b)||we,Oe&&s.createElement(gf,{className:"".concat(T,"-option-state"),customizeIcon:b,customizeIconProps:{value:de,disabled:We,isSelected:we}},we?"✓":null))}))},Kk=s.forwardRef(Vk);const Wk=function(e,t){var n=s.useRef({values:new Map,options:new Map}),r=s.useMemo(function(){var a=n.current,i=a.values,l=a.options,c=e.map(function(f){if(f.label===void 0){var m;return A(A({},f),{},{label:(m=i.get(f.value))===null||m===void 0?void 0:m.label})}return f}),u=new Map,d=new Map;return c.forEach(function(f){u.set(f.value,f),d.set(f.value,t.get(f.value)||l.get(f.value))}),n.current.values=u,n.current.options=d,c},[e,t]),o=s.useCallback(function(a){return t.get(a)||n.current.options.get(a)},[t]);return[r,o]};function Mm(e,t){return qE(e).join("").toUpperCase().includes(t)}const Gk=function(e,t,n,r,o){return s.useMemo(function(){if(!n||r===!1)return e;var a=t.options,i=t.label,l=t.value,c=[],u=typeof r=="function",d=n.toUpperCase(),f=u?r:function(g,y){return o?Mm(y[o],d):y[a]?Mm(y[i!=="children"?i:"label"],d):Mm(y[l],d)},m=u?function(g){return zp(g)}:function(g){return g};return e.forEach(function(g){if(g[a]){var y=f(n,m(g));if(y)c.push(g);else{var h=g[a].filter(function(C){return f(n,m(C))});h.length&&c.push(A(A({},g),{},D({},a,h)))}return}f(n,m(g))&&c.push(g)}),c},[e,r,o,n,t])};var EC=0,Uk=zn();function qk(){var e;return Uk?(e=EC,EC+=1):e="TEST_OR_SSR",e}function Xk(e){var t=s.useState(),n=Q(t,2),r=n[0],o=n[1];return s.useEffect(function(){o("rc_select_".concat(qk()))},[]),e||r}var Yk=["children","value"],Qk=["children"];function Zk(e){var t=e,n=t.key,r=t.props,o=r.children,a=r.value,i=tt(r,Yk);return A({key:n,value:a!==void 0?a:n,children:o},i)}function JE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return lr(e).map(function(n,r){if(!s.isValidElement(n)||!n.type)return null;var o=n,a=o.type.isSelectOptGroup,i=o.key,l=o.props,c=l.children,u=tt(l,Qk);return t||!a?Zk(n):A(A({key:"__RC_SELECT_GRP__".concat(i===null?r:i,"__"),label:i},u),{},{options:JE(c)})}).filter(function(n){return n})}var Jk=function(t,n,r,o,a){return s.useMemo(function(){var i=t,l=!t;l&&(i=JE(n));var c=new Map,u=new Map,d=function(g,y,h){h&&typeof h=="string"&&g.set(y[h],y)},f=function m(g){for(var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,h=0;h2&&arguments[2]!==void 0?arguments[2]:{},Ge=Pe.source,ot=Ge===void 0?"keyboard":Ge;st(Re),i&&r==="combobox"&&ye!==null&&ot==="keyboard"&&Ae(String(ye))},[i,r]),Me=function(Re,Pe,Ge){var ot=function(){var ct,xt=$e(Re);return[k?{label:xt==null?void 0:xt[Z.label],value:Re,key:(ct=xt==null?void 0:xt.key)!==null&&ct!==void 0?ct:Re}:Re,zp(xt)]};if(Pe&&g){var et=ot(),Ot=Q(et,2),Be=Ot[0],Ee=Ot[1];g(Be,Ee)}else if(!Pe&&y&&Ge!=="clear"){var be=ot(),Ue=Q(be,2),Ne=Ue[0],Te=Ue[1];y(Ne,Te)}},Xe=OC(function(ye,Re){var Pe,Ge=X?Re.selected:!0;Ge?Pe=X?[].concat(ue(ve),[ye]):[ye]:Pe=ve.filter(function(ot){return ot.value!==ye}),He(Pe),Me(ye,Ge),r==="combobox"?Ae(""):(!jp||m)&&(q(""),Ae(""))}),De=function(Re,Pe){He(Re);var Ge=Pe.type,ot=Pe.values;(Ge==="remove"||Ge==="clear")&&ot.forEach(function(et){Me(et.value,!1,Ge)})},xe=function(Re,Pe){if(q(Re),Ae(null),Pe.source==="submit"){var Ge=(Re||"").trim();if(Ge){var ot=Array.from(new Set([].concat(ue(We),[Ge])));He(ot),Me(Ge,!0),q("")}return}Pe.source!=="blur"&&(r==="combobox"&&He(Re),d==null||d(Re))},ze=function(Re){var Pe=Re;r!=="tags"&&(Pe=Re.map(function(ot){var et=W.get(ot);return et==null?void 0:et.value}).filter(function(ot){return ot!==void 0}));var Ge=Array.from(new Set([].concat(ue(We),ue(Pe))));He(Ge),Ge.forEach(function(ot){Me(ot,!0)})},rt=s.useMemo(function(){var ye=I!==!1&&C!==!1;return A(A({},te),{},{flattenOptions:Ze,onActiveValue:nt,defaultActiveFirstOption:vt,onSelect:Xe,menuItemSelectedIcon:E,rawValues:We,fieldNames:Z,virtual:ye,direction:T,listHeight:R,listItemHeight:L,childrenAsData:U,maxCount:B,optionRender:x})},[B,te,Ze,nt,vt,Xe,E,We,Z,I,C,T,R,L,U,x]);return s.createElement(kh.Provider,{value:rt},s.createElement($k,ce({},F,{id:K,prefixCls:a,ref:t,omitDomProps:tD,mode:r,displayValues:we,onDisplayValuesChange:De,direction:T,searchValue:ee,onSearch:xe,autoClearSearchValue:m,onSearchSplit:ze,dropdownMatchSelectWidth:C,OptionList:Kk,emptyOptions:!Ze.length,activeValue:Je,activeDescendantId:"".concat(K,"_list_").concat(St)})))}),Fh=rD;Fh.Option=Bh;Fh.OptGroup=Dh;function fd(e,t,n){return V({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const hf=(e,t)=>t||e,oD=()=>{const[,e]=mn(),n=new Dt(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return s.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},s.createElement("g",{fill:"none",fillRule:"evenodd"},s.createElement("g",{transform:"translate(24 31.67)"},s.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),s.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),s.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),s.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),s.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),s.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),s.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},s.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),s.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},aD=oD,iD=()=>{const[,e]=mn(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:a,shadowColor:i,contentColor:l}=s.useMemo(()=>({borderColor:new Dt(t).onBackground(o).toHexShortString(),shadowColor:new Dt(n).onBackground(o).toHexShortString(),contentColor:new Dt(r).onBackground(o).toHexShortString()}),[t,n,r,o]);return s.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},s.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},s.createElement("ellipse",{fill:i,cx:"32",cy:"33",rx:"32",ry:"7"}),s.createElement("g",{fillRule:"nonzero",stroke:a},s.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),s.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:l}))))},lD=iD,sD=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:a,lineHeight:i}=e;return{[t]:{marginInline:r,fontSize:a,lineHeight:i,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},cD=_t("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=bt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[sD(o)]});var uD=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var{className:t,rootClassName:n,prefixCls:r,image:o=eO,description:a,children:i,imageStyle:l,style:c}=e,u=uD(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:d,direction:f,empty:m}=s.useContext(je),g=d("empty",r),[y,h,C]=cD(g),[p]=ei("Empty"),v=typeof a<"u"?a:p==null?void 0:p.description,b=typeof v=="string"?v:"empty";let S=null;return typeof o=="string"?S=s.createElement("img",{alt:b,src:o}):S=o,y(s.createElement("div",Object.assign({className:V(h,C,g,m==null?void 0:m.className,{[`${g}-normal`]:o===tO,[`${g}-rtl`]:f==="rtl"},t,n),style:Object.assign(Object.assign({},m==null?void 0:m.style),c)},u),s.createElement("div",{className:`${g}-image`,style:l},S),v&&s.createElement("div",{className:`${g}-description`},v),i&&s.createElement("div",{className:`${g}-footer`},i)))};Ah.PRESENTED_IMAGE_DEFAULT=eO;Ah.PRESENTED_IMAGE_SIMPLE=tO;const Ra=Ah,dD=e=>{const{componentName:t}=e,{getPrefixCls:n}=s.useContext(je),r=n("empty");switch(t){case"Table":case"List":return G.createElement(Ra,{image:Ra.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return G.createElement(Ra,{image:Ra.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return G.createElement(Ra,null)}},nO=dD,fD=["outlined","borderless","filled"],mD=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0;const n=s.useContext(gE);let r;typeof e<"u"?r=e:t===!1?r="borderless":r=n??"outlined";const o=fD.includes(r);return[r,o]},Hh=mD,gD=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function pD(e,t){return e||gD(t)}const IC=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},vD=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,i=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},zt(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[` ${o}${l}bottomLeft, ${a}${l}bottomLeft `]:{animationName:Nh},[` @@ -230,19 +230,19 @@ html body { `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${H(r)}`,[`${n}-selection-search-input`]:{height:a},"&:after":{lineHeight:H(a)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${H(r)}`,"&:after":{display:"none"}}}}}}}function wD(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[zm(e),zm(bt(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${H(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[` &${t}-show-arrow ${t}-selection-item, &${t}-show-arrow ${t}-selection-placeholder - `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},zm(bt(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const ED=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlHeightSM:o,controlHeightLG:a,paddingXXS:i,controlPaddingHorizontal:l,zIndexPopupBase:c,colorText:u,fontWeightStrong:d,controlItemBgActive:f,controlItemBgHover:m,colorBgContainer:g,colorFillSecondary:y,colorBgContainerDisabled:h,colorTextDisabled:C}=e,p=r-i*2,v=o-i*2,b=a-i*2;return{zIndexPopup:c+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:f,optionActiveBg:m,optionPadding:`${(r-t*n)/2}px ${l}px`,optionFontSize:t,optionLineHeight:n,optionHeight:r,selectorBg:g,clearBg:g,singleItemHeightLG:a,multipleItemBg:y,multipleItemBorderColor:"transparent",multipleItemHeight:p,multipleItemHeightSM:v,multipleItemHeightLG:b,multipleSelectorBgDisabled:h,multipleItemColorDisabled:C,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25)}},rO=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${H(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${H(o)} ${t.activeShadowColor}`,outline:0}}}},PC=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},rO(e,t))}),OD=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},rO(e,{borderColor:e.colorBorder,hoverBorderHover:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadowColor:e.controlOutline})),PC(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeShadowColor:e.colorErrorOutline})),PC(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeShadowColor:e.colorWarningOutline})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${H(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),oO=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${H(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},RC=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},oO(e,t))}),ID=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},oO(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary,color:e.colorText})),RC(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),RC(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${H(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),PD=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",borderColor:"transparent"},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${H(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}),RD=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},OD(e)),ID(e)),PD(e))}),ND=RD,TD=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},MD=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},_D=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return{[n]:Object.assign(Object.assign({},zt(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},TD(e)),MD(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},ga),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},ga),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},nf()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${n}-clear`]:{opacity:1},[`${n}-arrow:not(:last-child)`]:{opacity:0}}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}},zD=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},_D(e),wD(e),$D(e),hD(e),{[`${t}-rtl`]:{direction:"rtl"}},Sh(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},jD=_t("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=bt(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[zD(r),ND(r)]},ED,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var LD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};const kD=LD;var DD=function(t,n){return s.createElement(Pt,ce({},t,{ref:n,icon:kD}))},BD=s.forwardRef(DD);const FD=BD;var AD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};const HD=AD;var VD=function(t,n){return s.createElement(Pt,ce({},t,{ref:n,icon:HD}))},KD=s.forwardRef(VD);const aO=KD;var WD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};const GD=WD;var UD=function(t,n){return s.createElement(Pt,ce({},t,{ref:n,icon:GD}))},qD=s.forwardRef(UD);const Vh=qD;function XD(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:a,multiple:i,hasFeedback:l,prefixCls:c,showSuffixIcon:u,feedbackIcon:d,showArrow:f,componentName:m}=e;const g=n??s.createElement(ml,null),y=v=>t===null&&!l&&!f?null:s.createElement(s.Fragment,null,u!==!1&&v,l&&d);let h=null;if(t!==void 0)h=y(t);else if(a)h=y(s.createElement(pl,{spin:!0}));else{const v=`${c}-suffix`;h=b=>{let{open:S,showSearch:$}=b;return y(S&&$?s.createElement(Vh,{className:v}):s.createElement(aO,{className:v}))}}let C=null;r!==void 0?C=r:i?C=s.createElement(FD,null):C=null;let p=null;return o!==void 0?p=o:p=s.createElement(ni,null),{clearIcon:g,suffixIcon:h,itemIcon:C,removeIcon:p}}function YD(e,t){return t!==void 0?t:e!==null}var QD=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n;const{prefixCls:r,bordered:o,className:a,rootClassName:i,getPopupContainer:l,popupClassName:c,dropdownClassName:u,listHeight:d=256,placement:f,listItemHeight:m,size:g,disabled:y,notFoundContent:h,status:C,builtinPlacements:p,dropdownMatchSelectWidth:v,popupMatchSelectWidth:b,direction:S,style:$,allowClear:x,variant:w,dropdownStyle:O,transitionName:E,tagRender:I,maxCount:T}=e,_=QD(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount"]),{getPopupContainer:R,getPrefixCls:M,renderEmpty:L,direction:z,virtual:P,popupMatchSelectWidth:N,popupOverflow:k,select:j}=s.useContext(je),[,B]=mn(),F=m??(B==null?void 0:B.controlHeight),K=M("select",r),X=M(),U=S??z,{compactSize:re,compactItemClassnames:Z}=ic(K,U),[ne,le]=Hh(w,o),ee=gn(K),[q,te,J]=jD(K,ee),W=s.useMemo(()=>{const{mode:Je}=e;if(Je!=="combobox")return Je===iO?"combobox":Je},[e.mode]),Y=W==="multiple"||W==="tags",de=YD(e.suffixIcon,e.showArrow),oe=(n=b??v)!==null&&n!==void 0?n:N,{status:se,hasFeedback:ae,isFormItemInput:ie,feedbackIcon:pe}=s.useContext(Qn),me=hf(se,C);let ge;h!==void 0?ge=h:W==="combobox"?ge=null:ge=(L==null?void 0:L("Select"))||s.createElement(nO,{componentName:"Select"});const{suffixIcon:ve,itemIcon:$e,removeIcon:we,clearIcon:We}=XD(Object.assign(Object.assign({},_),{multiple:Y,hasFeedback:ae,feedbackIcon:pe,showSuffixIcon:de,prefixCls:K,componentName:"Select"})),_e=x===!0?{clearIcon:We}:x,Se=Kt(_,["suffixIcon","itemIcon"]),Ce=V(c||u,{[`${K}-dropdown-${U}`]:U==="rtl"},i,J,ee,te),Oe=sr(Je=>{var Ae;return(Ae=g??re)!==null&&Ae!==void 0?Ae:Je}),ke=s.useContext(Ao),Ze=y??ke,He=V({[`${K}-lg`]:Oe==="large",[`${K}-sm`]:Oe==="small",[`${K}-rtl`]:U==="rtl",[`${K}-${ne}`]:le,[`${K}-in-form-item`]:ie},fd(K,me,ae),Z,j==null?void 0:j.className,a,i,J,ee,te),Ve=s.useMemo(()=>f!==void 0?f:U==="rtl"?"bottomRight":"bottomLeft",[f,U]),[it]=nc("SelectLike",O==null?void 0:O.zIndex);return q(s.createElement(Fh,Object.assign({ref:t,virtual:P,showSearch:j==null?void 0:j.showSearch},Se,{style:Object.assign(Object.assign({},j==null?void 0:j.style),$),dropdownMatchSelectWidth:oe,transitionName:va(X,"slide-up",E),builtinPlacements:pD(p,k),listHeight:d,listItemHeight:F,mode:W,prefixCls:K,placement:Ve,direction:U,suffixIcon:ve,menuItemSelectedIcon:$e,removeIcon:we,allowClear:_e,notFoundContent:ge,className:He,getPopupContainer:l||R,dropdownClassName:Ce,disabled:Ze,dropdownStyle:Object.assign(Object.assign({},O),{zIndex:it}),maxCount:Y?T:void 0,tagRender:Y?I:void 0})))},hl=s.forwardRef(ZD),JD=AE(hl);hl.SECRET_COMBOBOX_MODE_DO_NOT_USE=iO;hl.Option=Bh;hl.OptGroup=Dh;hl._InternalPanelDoNotUseOrYouWillBeFired=JD;const yf=hl,Fs=["xxl","xl","lg","md","sm","xs"],eB=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),tB=e=>{const t=e,n=[].concat(Fs).reverse();return n.forEach((r,o)=>{const a=r.toUpperCase(),i=`screen${a}Min`,l=`screen${a}`;if(!(t[i]<=t[l]))throw new Error(`${i}<=${l} fails : !(${t[i]}<=${t[l]})`);if(o{const n=new Map;let r=-1,o={};return{matchHandlers:{},dispatch(a){return o=a,n.forEach(i=>i(o)),n.size>=1},subscribe(a){return n.size||this.register(),r+=1,n.set(r,a),a(o),r},unsubscribe(a){n.delete(a),n.size||this.unregister()},unregister(){Object.keys(t).forEach(a=>{const i=t[a],l=this.matchHandlers[i];l==null||l.mql.removeListener(l==null?void 0:l.listener)}),n.clear()},register(){Object.keys(t).forEach(a=>{const i=t[a],l=u=>{let{matches:d}=u;this.dispatch(Object.assign(Object.assign({},o),{[a]:d}))},c=window.matchMedia(i);c.addListener(l),this.matchHandlers[i]={mql:c,listener:l},l(c)})},responsiveMap:t}},[e])}function sO(){const[,e]=s.useReducer(t=>t+1,0);return e}function cO(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=s.useRef({}),n=sO(),r=lO();return Mt(()=>{const o=r.subscribe(a=>{t.current=a,e&&n()});return()=>r.unsubscribe(o)},[]),t.current}const al=e=>e?typeof e=="function"?e():e:null;function Kh(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,a=e.className,i=e.style;return s.createElement("div",{className:V("".concat(n,"-content"),a),style:i},s.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var fi={shiftX:64,adjustY:1},mi={adjustX:1,shiftY:!0},Pr=[0,0],nB={left:{points:["cr","cl"],overflow:mi,offset:[-4,0],targetOffset:Pr},right:{points:["cl","cr"],overflow:mi,offset:[4,0],targetOffset:Pr},top:{points:["bc","tc"],overflow:fi,offset:[0,-4],targetOffset:Pr},bottom:{points:["tc","bc"],overflow:fi,offset:[0,4],targetOffset:Pr},topLeft:{points:["bl","tl"],overflow:fi,offset:[0,-4],targetOffset:Pr},leftTop:{points:["tr","tl"],overflow:mi,offset:[-4,0],targetOffset:Pr},topRight:{points:["br","tr"],overflow:fi,offset:[0,-4],targetOffset:Pr},rightTop:{points:["tl","tr"],overflow:mi,offset:[4,0],targetOffset:Pr},bottomRight:{points:["tr","br"],overflow:fi,offset:[0,4],targetOffset:Pr},rightBottom:{points:["bl","br"],overflow:mi,offset:[4,0],targetOffset:Pr},bottomLeft:{points:["tl","bl"],overflow:fi,offset:[0,4],targetOffset:Pr},leftBottom:{points:["br","bl"],overflow:mi,offset:[-4,0],targetOffset:Pr}},rB=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],oB=function(t,n){var r=t.overlayClassName,o=t.trigger,a=o===void 0?["hover"]:o,i=t.mouseEnterDelay,l=i===void 0?0:i,c=t.mouseLeaveDelay,u=c===void 0?.1:c,d=t.overlayStyle,f=t.prefixCls,m=f===void 0?"rc-tooltip":f,g=t.children,y=t.onVisibleChange,h=t.afterVisibleChange,C=t.transitionName,p=t.animation,v=t.motion,b=t.placement,S=b===void 0?"right":b,$=t.align,x=$===void 0?{}:$,w=t.destroyTooltipOnHide,O=w===void 0?!1:w,E=t.defaultVisible,I=t.getTooltipContainer,T=t.overlayInnerStyle;t.arrowContent;var _=t.overlay,R=t.id,M=t.showArrow,L=M===void 0?!0:M,z=tt(t,rB),P=s.useRef(null);s.useImperativeHandle(n,function(){return P.current});var N=A({},z);"visible"in t&&(N.popupVisible=t.visible);var k=function(){return s.createElement(Kh,{key:"content",prefixCls:m,id:R,overlayInnerStyle:T},_)};return s.createElement(pf,ce({popupClassName:r,prefixCls:m,popup:k,action:a,builtinPlacements:nB,popupPlacement:S,ref:P,popupAlign:x,getPopupContainer:I,onPopupVisibleChange:y,afterPopupVisibleChange:h,popupTransitionName:C,popupAnimation:p,popupMotion:v,defaultPopupVisible:E,autoDestroy:O,mouseLeaveDelay:u,popupStyle:d,mouseEnterDelay:l,arrow:L},N),g)};const aB=s.forwardRef(oB);function Wh(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,a=0,i=o,l=r*1/Math.sqrt(2),c=o-r*(1-1/Math.sqrt(2)),u=o-n*(1/Math.sqrt(2)),d=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),f=2*o-u,m=d,g=2*o-l,y=c,h=2*o-a,C=i,p=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),v=r*(Math.sqrt(2)-1),b=`polygon(${v}px 100%, 50% ${v}px, ${2*o-v}px 100%, ${v}px 100%)`,S=`path('M ${a} ${i} A ${r} ${r} 0 0 0 ${l} ${c} L ${u} ${d} A ${n} ${n} 0 0 1 ${f} ${m} L ${g} ${y} A ${r} ${r} 0 0 0 ${h} ${C} Z')`;return{arrowShadowWidth:p,arrowPath:S,arrowPolygon:b}}const iB=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:a,arrowShadowWidth:i,borderRadiusXS:l,calc:c}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${H(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},uO=8;function bf(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?uO:r}}function qc(e,t){return e?t:{}}function Gh(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:a,arrowOffsetHorizontal:i}=e,{arrowDistance:l=0,arrowPlacement:c={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},iB(e,t,o)),{"&:before":{background:t}})]},qc(!!c.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:l,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:i}},[`&-placement-topRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}})),qc(!!c.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:l,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:i}},[`&-placement-bottomRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}})),qc(!!c.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},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:a},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:a}})),qc(!!c.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},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:a},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:a}}))}}function lB(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},a={};switch(e){case"top":case"bottom":a.shiftX=t.arrowOffsetHorizontal*2+n,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=t.arrowOffsetVertical*2+n,a.shiftX=!0,a.adjustX=!0;break}const i=Object.assign(Object.assign({},a),o);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}const NC={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"]}},sB={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"]}},cB=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function dO(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:a,visibleFirst:i}=e,l=t/2,c={};return Object.keys(NC).forEach(u=>{const d=r&&sB[u]||NC[u],f=Object.assign(Object.assign({},d),{offset:[0,0],dynamicInset:!0});switch(c[u]=f,cB.has(u)&&(f.autoArrow=!1),u){case"top":case"topLeft":case"topRight":f.offset[1]=-l-o;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=l+o;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-l-o;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=l+o;break}const m=bf({contentRadius:a,limitVerticalRadius:!0});if(r)switch(u){case"topLeft":case"bottomLeft":f.offset[0]=-m.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":f.offset[0]=m.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":f.offset[1]=-m.arrowOffsetHorizontal-l;break;case"leftBottom":case"rightBottom":f.offset[1]=m.arrowOffsetHorizontal+l;break}f.overflow=lB(u,m,t,n),i&&(f.htmlRegion="visibleFirst")}),c}const uB=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:a,zIndexPopup:i,controlHeight:l,boxShadowSecondary:c,paddingSM:u,paddingXS:d}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},zt(e)),{position:"absolute",zIndex:i,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:l,minHeight:l,padding:`${H(e.calc(u).div(2).equal())} ${H(d)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:a,boxShadow:c,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(a,uO)}},[`${t}-content`]:{position:"relative"}}),dw(e,(f,m)=>{let{darkColor:g}=m;return{[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:g},[`${t}-arrow`]:{"--antd-arrow-background-color":g}}}})),{"&-rtl":{direction:"rtl"}})},Gh(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},dB=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},bf({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Wh(bt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),fO=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return _t("Tooltip",r=>{const{borderRadius:o,colorTextLightSolid:a,colorBgSpotlight:i}=r,l=bt(r,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:o,tooltipBg:i});return[uB(l),cc(r,"zoom-big-fast")]},dB,{resetStyle:!1,injectStyle:t})(e)},fB=zs.map(e=>`${e}-inverse`),mB=["success","processing","error","default","warning"];function mO(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(ue(fB),ue(zs)).includes(e):zs.includes(e)}function gB(e){return mB.includes(e)}function gO(e,t){const n=mO(t),r=V({[`${e}-${t}`]:t&&n}),o={},a={};return t&&!n&&(o.background=t,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:a}}const pB=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:a,overlayInnerStyle:i}=e,{getPrefixCls:l}=s.useContext(je),c=l("tooltip",t),[u,d,f]=fO(c),m=gO(c,a),g=m.arrowStyle,y=Object.assign(Object.assign({},i),m.overlayStyle),h=V(d,f,c,`${c}-pure`,`${c}-placement-${r}`,n,m.className);return u(s.createElement("div",{className:h,style:g},s.createElement("div",{className:`${c}-arrow`}),s.createElement(Kh,Object.assign({},e,{className:d,prefixCls:c,overlayInnerStyle:y}),o)))},vB=pB;var hB=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,r;const{prefixCls:o,openClassName:a,getTooltipContainer:i,overlayClassName:l,color:c,overlayInnerStyle:u,children:d,afterOpenChange:f,afterVisibleChange:m,destroyTooltipOnHide:g,arrow:y=!0,title:h,overlay:C,builtinPlacements:p,arrowPointAtCenter:v=!1,autoAdjustOverflow:b=!0}=e,S=!!y,[,$]=mn(),{getPopupContainer:x,getPrefixCls:w,direction:O}=s.useContext(je),E=Fo(),I=s.useRef(null),T=()=>{var ge;(ge=I.current)===null||ge===void 0||ge.forceAlign()};s.useImperativeHandle(t,()=>({forceAlign:T,forcePopupAlign:()=>{E.deprecated(!1,"forcePopupAlign","forceAlign"),T()}}));const[_,R]=Jt(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),M=!h&&!C&&h!==0,L=ge=>{var ve,$e;R(M?!1:ge),M||((ve=e.onOpenChange)===null||ve===void 0||ve.call(e,ge),($e=e.onVisibleChange)===null||$e===void 0||$e.call(e,ge))},z=s.useMemo(()=>{var ge,ve;let $e=v;return typeof y=="object"&&($e=(ve=(ge=y.pointAtCenter)!==null&&ge!==void 0?ge:y.arrowPointAtCenter)!==null&&ve!==void 0?ve:v),p||dO({arrowPointAtCenter:$e,autoAdjustOverflow:b,arrowWidth:S?$.sizePopupArrow:0,borderRadius:$.borderRadius,offset:$.marginXXS,visibleFirst:!0})},[v,y,p,$]),P=s.useMemo(()=>h===0?h:C||h||"",[C,h]),N=s.createElement(js,null,typeof P=="function"?P():P),{getPopupContainer:k,placement:j="top",mouseEnterDelay:B=.1,mouseLeaveDelay:F=.1,overlayStyle:K,rootClassName:X}=e,U=hB(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),re=w("tooltip",o),Z=w(),ne=e["data-popover-inject"];let le=_;!("open"in e)&&!("visible"in e)&&M&&(le=!1);const ee=s.isValidElement(d)&&!Nw(d)?d:s.createElement("span",null,d),q=ee.props,te=!q.className||typeof q.className=="string"?V(q.className,a||`${re}-open`):q.className,[J,W,Y]=fO(re,!ne),de=gO(re,c),oe=de.arrowStyle,se=Object.assign(Object.assign({},u),de.overlayStyle),ae=V(l,{[`${re}-rtl`]:O==="rtl"},de.className,X,W,Y),[ie,pe]=nc("Tooltip",U.zIndex),me=s.createElement(aB,Object.assign({},U,{zIndex:ie,showArrow:S,placement:j,mouseEnterDelay:B,mouseLeaveDelay:F,prefixCls:re,overlayClassName:ae,overlayStyle:Object.assign(Object.assign({},oe),K),getTooltipContainer:k||i||x,ref:I,builtinPlacements:z,overlay:N,visible:le,onVisibleChange:L,afterVisibleChange:f??m,overlayInnerStyle:se,arrowContent:s.createElement("span",{className:`${re}-arrow-content`}),motion:{motionName:va(Z,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!g}),le?Xn(ee,{className:te}):ee);return J(s.createElement(lf.Provider,{value:pe},me))}),pO=yB;pO._InternalPanelDoNotUseOrYouWillBeFired=vB;const As=pO,bB=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:a,boxShadowSecondary:i,colorTextHeading:l,borderRadiusLG:c,zIndexPopup:u,titleMarginBottom:d,colorBgElevated:f,popoverBg:m,titleBorderBottom:g,innerContentPadding:y,titlePadding:h}=e;return[{[t]:Object.assign(Object.assign({},zt(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":f,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:m,backgroundClip:"padding-box",borderRadius:c,boxShadow:i,padding:a},[`${t}-title`]:{minWidth:r,marginBottom:d,color:l,fontWeight:o,borderBottom:g,padding:h},[`${t}-inner-content`]:{color:n,padding:y}})},Gh(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},CB=e=>{const{componentCls:t}=e;return{[t]:zs.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},SB=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:a,zIndexPopupBase:i,borderRadiusLG:l,marginXS:c,lineType:u,colorSplit:d,paddingSM:f}=e,m=n-r,g=m/2,y=m/2-t,h=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:i+30},Wh(e)),bf({contentRadius:l,limitVerticalRadius:!0})),{innerPadding:a?0:12,titleMarginBottom:a?0:c,titlePadding:a?`${g}px ${h}px ${y}px`:0,titleBorderBottom:a?`${t}px ${u} ${d}`:"none",innerContentPadding:a?`${f}px ${h}px`:0})},vO=_t("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=bt(e,{popoverBg:t,popoverColor:n});return[bB(r),CB(r),cc(r,"zoom-big")]},SB,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var xB=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o!t&&!n?null:s.createElement(s.Fragment,null,t&&s.createElement("div",{className:`${e}-title`},al(t)),s.createElement("div",{className:`${e}-inner-content`},al(n))),wB=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:a="top",title:i,content:l,children:c}=e;return s.createElement("div",{className:V(t,n,`${n}-pure`,`${n}-placement-${a}`,r),style:o},s.createElement("div",{className:`${n}-arrow`}),s.createElement(Kh,Object.assign({},e,{className:t,prefixCls:n}),c||$B(n,i,l)))},EB=e=>{const{prefixCls:t,className:n}=e,r=xB(e,["prefixCls","className"]),{getPrefixCls:o}=s.useContext(je),a=o("popover",t),[i,l,c]=vO(a);return i(s.createElement(wB,Object.assign({},r,{prefixCls:a,hashId:l,className:V(n,c)})))},hO=EB;var OB=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{let{title:t,content:n,prefixCls:r}=e;return s.createElement(s.Fragment,null,t&&s.createElement("div",{className:`${r}-title`},al(t)),s.createElement("div",{className:`${r}-inner-content`},al(n)))},PB=s.forwardRef((e,t)=>{var n;const{prefixCls:r,title:o,content:a,overlayClassName:i,placement:l="top",trigger:c="hover",children:u,mouseEnterDelay:d=.1,mouseLeaveDelay:f=.1,onOpenChange:m,overlayStyle:g={}}=e,y=OB(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle"]),{getPrefixCls:h}=s.useContext(je),C=h("popover",r),[p,v,b]=vO(C),S=h(),$=V(i,v,b),[x,w]=Jt(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible}),O=(T,_)=>{w(T,!0),m==null||m(T,_)},E=T=>{T.keyCode===fe.ESC&&O(!1,T)},I=T=>{O(T)};return p(s.createElement(As,Object.assign({placement:l,trigger:c,mouseEnterDelay:d,mouseLeaveDelay:f,overlayStyle:g},y,{prefixCls:C,overlayClassName:$,ref:t,open:x,onOpenChange:I,overlay:o||a?s.createElement(IB,{prefixCls:C,title:o,content:a}):null,transitionName:va(S,"zoom-big",y.transitionName),"data-popover-inject":!0}),Xn(u,{onKeyDown:T=>{var _,R;s.isValidElement(u)&&((R=u==null?void 0:(_=u.props).onKeyDown)===null||R===void 0||R.call(_,T)),E(T)}})))}),yO=PB;yO._InternalPanelDoNotUseOrYouWillBeFired=hO;const RB=yO;var NB={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};const TB=NB;var MB=function(t,n){return s.createElement(Pt,ce({},t,{ref:n,icon:TB}))},_B=s.forwardRef(MB);const Hs=_B;var zB=fe.ESC,jB=fe.TAB;function LB(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,a=e.overlayRef,i=s.useRef(!1),l=function(){if(t){var f,m;(f=n.current)===null||f===void 0||(m=f.focus)===null||m===void 0||m.call(f),r==null||r(!1)}},c=function(){var f;return(f=a.current)!==null&&f!==void 0&&f.focus?(a.current.focus(),i.current=!0,!0):!1},u=function(f){switch(f.keyCode){case zB:l();break;case jB:{var m=!1;i.current||(m=c()),m?f.preventDefault():l();break}}};s.useEffect(function(){return t?(window.addEventListener("keydown",u),o&&It(c,3),function(){window.removeEventListener("keydown",u),i.current=!1}):function(){i.current=!1}},[t])}var kB=s.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,a=s.useMemo(function(){var l;return typeof n=="function"?l=n():l=n,l},[n]),i=Br(t,a==null?void 0:a.ref);return G.createElement(G.Fragment,null,r&&G.createElement("div",{className:"".concat(o,"-arrow")}),G.cloneElement(a,{ref:to(a)?i:void 0}))}),gi={adjustX:1,adjustY:1},pi=[0,0],DB={topLeft:{points:["bl","tl"],overflow:gi,offset:[0,-4],targetOffset:pi},top:{points:["bc","tc"],overflow:gi,offset:[0,-4],targetOffset:pi},topRight:{points:["br","tr"],overflow:gi,offset:[0,-4],targetOffset:pi},bottomLeft:{points:["tl","bl"],overflow:gi,offset:[0,4],targetOffset:pi},bottom:{points:["tc","bc"],overflow:gi,offset:[0,4],targetOffset:pi},bottomRight:{points:["tr","br"],overflow:gi,offset:[0,4],targetOffset:pi}},BB=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function FB(e,t){var n,r=e.arrow,o=r===void 0?!1:r,a=e.prefixCls,i=a===void 0?"rc-dropdown":a,l=e.transitionName,c=e.animation,u=e.align,d=e.placement,f=d===void 0?"bottomLeft":d,m=e.placements,g=m===void 0?DB:m,y=e.getPopupContainer,h=e.showAction,C=e.hideAction,p=e.overlayClassName,v=e.overlayStyle,b=e.visible,S=e.trigger,$=S===void 0?["hover"]:S,x=e.autoFocus,w=e.overlay,O=e.children,E=e.onVisibleChange,I=tt(e,BB),T=G.useState(),_=Q(T,2),R=_[0],M=_[1],L="visible"in e?b:R,z=G.useRef(null),P=G.useRef(null),N=G.useRef(null);G.useImperativeHandle(t,function(){return z.current});var k=function(ne){M(ne),E==null||E(ne)};LB({visible:L,triggerRef:N,onVisibleChange:k,autoFocus:x,overlayRef:P});var j=function(ne){var le=e.onOverlayClick;M(!1),le&&le(ne)},B=function(){return G.createElement(kB,{ref:P,overlay:w,prefixCls:i,arrow:o})},F=function(){return typeof w=="function"?B:B()},K=function(){var ne=e.minOverlayWidthMatchTrigger,le=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?ne:!le},X=function(){var ne=e.openClassName;return ne!==void 0?ne:"".concat(i,"-open")},U=G.cloneElement(O,{className:V((n=O.props)===null||n===void 0?void 0:n.className,L&&X()),ref:to(O)?Br(N,O.ref):void 0}),re=C;return!re&&$.indexOf("contextMenu")!==-1&&(re=["click"]),G.createElement(pf,ce({builtinPlacements:g},I,{prefixCls:i,ref:z,popupClassName:V(p,D({},"".concat(i,"-show-arrow"),o)),popupStyle:v,action:$,showAction:h,hideAction:re,popupPlacement:f,popupAlign:u,popupTransitionName:l,popupAnimation:c,popupVisible:L,stretch:K()?"minWidth":"",popup:F(),onPopupVisibleChange:k,onPopupClick:j,getPopupContainer:y}),U)}const bO=G.forwardRef(FB);var CO=s.createContext(null);function SO(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function xO(e){var t=s.useContext(CO);return SO(t,e)}var AB=["children","locked"],no=s.createContext(null);function HB(e,t){var n=A({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o)}),n}function Vs(e){var t=e.children,n=e.locked,r=tt(e,AB),o=s.useContext(no),a=Za(function(){return HB(o,r)},[o,r],function(i,l){return!n&&(i[0]!==l[0]||!mo(i[1],l[1],!0))});return s.createElement(no.Provider,{value:a},t)}var VB=[],$O=s.createContext(null);function Cf(){return s.useContext($O)}var wO=s.createContext(VB);function yl(e){var t=s.useContext(wO);return s.useMemo(function(){return e!==void 0?[].concat(ue(t),[e]):t},[t,e])}var EO=s.createContext(null),Uh=s.createContext({});function TC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(oc(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),a=Number(o),i=null;return o&&!Number.isNaN(a)?i=a:r&&i===null&&(i=0),r&&e.disabled&&(i=null),i!==null&&(i>=0||t&&i<0)}return!1}function KB(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=ue(e.querySelectorAll("*")).filter(function(r){return TC(r,t)});return TC(e,t)&&n.unshift(e),n}var Lp=fe.LEFT,kp=fe.RIGHT,Dp=fe.UP,Su=fe.DOWN,xu=fe.ENTER,OO=fe.ESC,Dl=fe.HOME,Bl=fe.END,MC=[Dp,Su,Lp,kp];function WB(e,t,n,r){var o,a="prev",i="next",l="children",c="parent";if(e==="inline"&&r===xu)return{inlineTrigger:!0};var u=D(D({},Dp,a),Su,i),d=D(D(D(D({},Lp,n?i:a),kp,n?a:i),Su,l),xu,l),f=D(D(D(D(D(D({},Dp,a),Su,i),xu,l),OO,c),Lp,n?l:c),kp,n?c:l),m={inline:u,horizontal:d,vertical:f,inlineSub:u,horizontalSub:f,verticalSub:f},g=(o=m["".concat(e).concat(t?"":"Sub")])===null||o===void 0?void 0:o[r];switch(g){case a:return{offset:-1,sibling:!0};case i:return{offset:1,sibling:!0};case c:return{offset:-1,sibling:!1};case l:return{offset:1,sibling:!1};default:return null}}function GB(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function UB(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function qh(e,t){var n=KB(e,!0);return n.filter(function(r){return t.has(r)})}function _C(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=qh(e,t),a=o.length,i=o.findIndex(function(l){return n===l});return r<0?i===-1?i=a-1:i-=1:r>0&&(i+=1),i=(i+a)%a,o[i]}var Bp=function(t,n){var r=new Set,o=new Map,a=new Map;return t.forEach(function(i){var l=document.querySelector("[data-menu-id='".concat(SO(n,i),"']"));l&&(r.add(l),a.set(l,i),o.set(i,l))}),{elements:r,key2element:o,element2key:a}};function qB(e,t,n,r,o,a,i,l,c,u){var d=s.useRef(),f=s.useRef();f.current=t;var m=function(){It.cancel(d.current)};return s.useEffect(function(){return function(){m()}},[]),function(g){var y=g.which;if([].concat(MC,[xu,OO,Dl,Bl]).includes(y)){var h=a(),C=Bp(h,r),p=C,v=p.elements,b=p.key2element,S=p.element2key,$=b.get(t),x=UB($,v),w=S.get(x),O=WB(e,i(w,!0).length===1,n,y);if(!O&&y!==Dl&&y!==Bl)return;(MC.includes(y)||[Dl,Bl].includes(y))&&g.preventDefault();var E=function(P){if(P){var N=P,k=P.querySelector("a");k!=null&&k.getAttribute("href")&&(N=k);var j=S.get(P);l(j),m(),d.current=It(function(){f.current===j&&N.focus()})}};if([Dl,Bl].includes(y)||O.sibling||!x){var I;!x||e==="inline"?I=o.current:I=GB(x);var T,_=qh(I,v);y===Dl?T=_[0]:y===Bl?T=_[_.length-1]:T=_C(I,v,x,O.offset),E(T)}else if(O.inlineTrigger)c(w);else if(O.offset>0)c(w,!0),m(),d.current=It(function(){C=Bp(h,r);var z=x.getAttribute("aria-controls"),P=document.getElementById(z),N=_C(P,C.elements);E(N)},5);else if(O.offset<0){var R=i(w,!0),M=R[R.length-2],L=b.get(M);c(M,!1),E(L)}}u==null||u(g)}}function XB(e){Promise.resolve().then(e)}var Xh="__RC_UTIL_PATH_SPLIT__",zC=function(t){return t.join(Xh)},YB=function(t){return t.split(Xh)},Fp="rc-menu-more";function QB(){var e=s.useState({}),t=Q(e,2),n=t[1],r=s.useRef(new Map),o=s.useRef(new Map),a=s.useState([]),i=Q(a,2),l=i[0],c=i[1],u=s.useRef(0),d=s.useRef(!1),f=function(){d.current||n({})},m=s.useCallback(function(b,S){var $=zC(S);o.current.set($,b),r.current.set(b,$),u.current+=1;var x=u.current;XB(function(){x===u.current&&f()})},[]),g=s.useCallback(function(b,S){var $=zC(S);o.current.delete($),r.current.delete(b)},[]),y=s.useCallback(function(b){c(b)},[]),h=s.useCallback(function(b,S){var $=r.current.get(b)||"",x=YB($);return S&&l.includes(x[0])&&x.unshift(Fp),x},[l]),C=s.useCallback(function(b,S){return b.some(function($){var x=h($,!0);return x.includes(S)})},[h]),p=function(){var S=ue(r.current.keys());return l.length&&S.push(Fp),S},v=s.useCallback(function(b){var S="".concat(r.current.get(b)).concat(Xh),$=new Set;return ue(o.current.keys()).forEach(function(x){x.startsWith(S)&&$.add(o.current.get(x))}),$},[]);return s.useEffect(function(){return function(){d.current=!0}},[]),{registerPath:m,unregisterPath:g,refreshOverflowKeys:y,isSubPathKey:C,getKeyPath:h,getKeys:p,getSubPathKeys:v}}function Gl(e){var t=s.useRef(e);t.current=e;var n=s.useCallback(function(){for(var r,o=arguments.length,a=new Array(o),i=0;i1&&(v.motionAppear=!1);var b=v.onVisibleChanged;return v.onVisibleChanged=function(S){return!m.current&&!S&&C(!0),b==null?void 0:b(S)},h?null:s.createElement(Vs,{mode:a,locked:!m.current},s.createElement(ro,ce({visible:p},v,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),function(S){var $=S.className,x=S.style;return s.createElement(Yh,{id:t,className:$,style:x},o)}))}var gF=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],pF=["active"],vF=function(t){var n=t.style,r=t.className,o=t.title,a=t.eventKey;t.warnKey;var i=t.disabled,l=t.internalPopupClose,c=t.children,u=t.itemIcon,d=t.expandIcon,f=t.popupClassName,m=t.popupOffset,g=t.popupStyle,y=t.onClick,h=t.onMouseEnter,C=t.onMouseLeave,p=t.onTitleClick,v=t.onTitleMouseEnter,b=t.onTitleMouseLeave,S=tt(t,gF),$=xO(a),x=s.useContext(no),w=x.prefixCls,O=x.mode,E=x.openKeys,I=x.disabled,T=x.overflowDisabled,_=x.activeKey,R=x.selectedKeys,M=x.itemIcon,L=x.expandIcon,z=x.onItemClick,P=x.onOpenChange,N=x.onActive,k=s.useContext(Uh),j=k._internalRenderSubMenuItem,B=s.useContext(EO),F=B.isSubPathKey,K=yl(),X="".concat(w,"-submenu"),U=I||i,re=s.useRef(),Z=s.useRef(),ne=u??M,le=d??L,ee=E.includes(a),q=!T&&ee,te=F(R,a),J=IO(a,U,v,b),W=J.active,Y=tt(J,pF),de=s.useState(!1),oe=Q(de,2),se=oe[0],ae=oe[1],ie=function(Ve){U||ae(Ve)},pe=function(Ve){ie(!0),h==null||h({key:a,domEvent:Ve})},me=function(Ve){ie(!1),C==null||C({key:a,domEvent:Ve})},ge=s.useMemo(function(){return W||(O!=="inline"?se||F([_],a):!1)},[O,W,_,se,a,F]),ve=PO(K.length),$e=function(Ve){U||(p==null||p({key:a,domEvent:Ve}),O==="inline"&&P(a,!ee))},we=Gl(function(He){y==null||y(gd(He)),z(He)}),We=function(Ve){O!=="inline"&&P(a,Ve)},_e=function(){N(a)},Se=$&&"".concat($,"-popup"),Ce=s.createElement("div",ce({role:"menuitem",style:ve,className:"".concat(X,"-title"),tabIndex:U?null:-1,ref:re,title:typeof o=="string"?o:null,"data-menu-id":T&&$?null:$,"aria-expanded":q,"aria-haspopup":!0,"aria-controls":Se,"aria-disabled":U,onClick:$e,onFocus:_e},Y),o,s.createElement(RO,{icon:O!=="horizontal"?le:void 0,props:A(A({},t),{},{isOpen:q,isSubMenu:!0})},s.createElement("i",{className:"".concat(X,"-arrow")}))),Oe=s.useRef(O);if(O!=="inline"&&K.length>1?Oe.current="vertical":Oe.current=O,!T){var ke=Oe.current;Ce=s.createElement(fF,{mode:ke,prefixCls:X,visible:!l&&q&&O!=="inline",popupClassName:f,popupOffset:m,popupStyle:g,popup:s.createElement(Vs,{mode:ke==="horizontal"?"vertical":ke},s.createElement(Yh,{id:Se,ref:Z},c)),disabled:U,onVisibleChange:We},Ce)}var Ze=s.createElement(fo.Item,ce({role:"none"},S,{component:"li",style:n,className:V(X,"".concat(X,"-").concat(O),r,D(D(D(D({},"".concat(X,"-open"),q),"".concat(X,"-active"),ge),"".concat(X,"-selected"),te),"".concat(X,"-disabled"),U)),onMouseEnter:pe,onMouseLeave:me}),Ce,!T&&s.createElement(mF,{id:Se,open:q,keyPath:K},c));return j&&(Ze=j(Ze,t,{selected:te,active:ge,open:q,disabled:U})),s.createElement(Vs,{onItemClick:we,mode:O==="horizontal"?"vertical":O,itemIcon:ne,expandIcon:le},Ze)};function Sf(e){var t=e.eventKey,n=e.children,r=yl(t),o=Qh(n,r),a=Cf();s.useEffect(function(){if(a)return a.registerPath(t,r),function(){a.unregisterPath(t,r)}},[r]);var i;return a?i=o:i=s.createElement(vF,e,o),s.createElement(wO.Provider,{value:r},i)}var hF=["className","title","eventKey","children"],yF=["children"],bF=function(t){var n=t.className,r=t.title;t.eventKey;var o=t.children,a=tt(t,hF),i=s.useContext(no),l=i.prefixCls,c="".concat(l,"-item-group");return s.createElement("li",ce({role:"presentation"},a,{onClick:function(d){return d.stopPropagation()},className:V(c,n)}),s.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:typeof r=="string"?r:void 0},r),s.createElement("ul",{role:"group",className:"".concat(c,"-list")},o))};function xf(e){var t=e.children,n=tt(e,yF),r=yl(n.eventKey),o=Qh(t,r),a=Cf();return a?o:s.createElement(bF,Kt(n,["warnKey"]),o)}function Zh(e){var t=e.className,n=e.style,r=s.useContext(no),o=r.prefixCls,a=Cf();return a?null:s.createElement("li",{role:"separator",className:V("".concat(o,"-item-divider"),t),style:n})}var CF=["label","children","key","type"];function Ap(e){return(e||[]).map(function(t,n){if(t&&at(t)==="object"){var r=t,o=r.label,a=r.children,i=r.key,l=r.type,c=tt(r,CF),u=i??"tmp-".concat(n);return a||l==="group"?l==="group"?s.createElement(xf,ce({key:u},c,{title:o}),Ap(a)):s.createElement(Sf,ce({key:u},c,{title:o}),Ap(a)):l==="divider"?s.createElement(Zh,ce({key:u},c)):s.createElement(fc,ce({key:u},c),o)}return null}).filter(function(t){return t})}function SF(e,t,n){var r=e;return t&&(r=Ap(t)),Qh(r,n)}var xF=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],vi=[],$F=s.forwardRef(function(e,t){var n,r=e,o=r.prefixCls,a=o===void 0?"rc-menu":o,i=r.rootClassName,l=r.style,c=r.className,u=r.tabIndex,d=u===void 0?0:u,f=r.items,m=r.children,g=r.direction,y=r.id,h=r.mode,C=h===void 0?"vertical":h,p=r.inlineCollapsed,v=r.disabled,b=r.disabledOverflow,S=r.subMenuOpenDelay,$=S===void 0?.1:S,x=r.subMenuCloseDelay,w=x===void 0?.1:x,O=r.forceSubMenuRender,E=r.defaultOpenKeys,I=r.openKeys,T=r.activeKey,_=r.defaultActiveFirst,R=r.selectable,M=R===void 0?!0:R,L=r.multiple,z=L===void 0?!1:L,P=r.defaultSelectedKeys,N=r.selectedKeys,k=r.onSelect,j=r.onDeselect,B=r.inlineIndent,F=B===void 0?24:B,K=r.motion,X=r.defaultMotions,U=r.triggerSubMenuAction,re=U===void 0?"hover":U,Z=r.builtinPlacements,ne=r.itemIcon,le=r.expandIcon,ee=r.overflowedIndicator,q=ee===void 0?"...":ee,te=r.overflowedIndicatorPopupClassName,J=r.getPopupContainer,W=r.onClick,Y=r.onOpenChange,de=r.onKeyDown;r.openAnimation,r.openTransitionName;var oe=r._internalRenderMenuItem,se=r._internalRenderSubMenuItem,ae=tt(r,xF),ie=s.useMemo(function(){return SF(m,f,vi)},[m,f]),pe=s.useState(!1),me=Q(pe,2),ge=me[0],ve=me[1],$e=s.useRef(),we=JB(y),We=g==="rtl",_e=Jt(E,{value:I,postState:function(ht){return ht||vi}}),Se=Q(_e,2),Ce=Se[0],Oe=Se[1],ke=function(ht){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function qe(){Oe(ht),Y==null||Y(ht)}Le?To.flushSync(qe):qe()},Ze=s.useState(Ce),He=Q(Ze,2),Ve=He[0],it=He[1],Je=s.useRef(!1),Ae=s.useMemo(function(){return(C==="inline"||C==="vertical")&&p?["vertical",p]:[C,!1]},[C,p]),lt=Q(Ae,2),ut=lt[0],St=lt[1],st=ut==="inline",vt=s.useState(ut),nt=Q(vt,2),Me=nt[0],Xe=nt[1],De=s.useState(St),xe=Q(De,2),ze=xe[0],rt=xe[1];s.useEffect(function(){Xe(ut),rt(St),Je.current&&(st?Oe(Ve):ke(vi))},[ut,St]);var ye=s.useState(0),Re=Q(ye,2),Pe=Re[0],Ge=Re[1],ot=Pe>=ie.length-1||Me!=="horizontal"||b;s.useEffect(function(){st&&it(Ce)},[Ce]),s.useEffect(function(){return Je.current=!0,function(){Je.current=!1}},[]);var et=QB(),Et=et.registerPath,Be=et.unregisterPath,Ee=et.refreshOverflowKeys,be=et.isSubPathKey,Ue=et.getKeyPath,Ne=et.getKeys,Te=et.getSubPathKeys,Fe=s.useMemo(function(){return{registerPath:Et,unregisterPath:Be}},[Et,Be]),ct=s.useMemo(function(){return{isSubPathKey:be}},[be]);s.useEffect(function(){Ee(ot?vi:ie.slice(Pe+1).map(function(Rt){return Rt.key}))},[Pe,ot]);var xt=Jt(T||_&&((n=ie[0])===null||n===void 0?void 0:n.key),{value:T}),Ut=Q(xt,2),gt=Ut[0],en=Ut[1],tn=Gl(function(Rt){en(Rt)}),pn=Gl(function(){en(void 0)});s.useImperativeHandle(t,function(){return{list:$e.current,focus:function(ht){var Le,qe=Ne(),Ct=Bp(qe,we),Ht=Ct.elements,Tt=Ct.key2element,qt=Ct.element2key,vn=qh($e.current,Ht),In=gt??(vn[0]?qt.get(vn[0]):(Le=ie.find(function(Pn){return!Pn.props.disabled}))===null||Le===void 0?void 0:Le.key),an=Tt.get(In);if(In&&an){var wn;an==null||(wn=an.focus)===null||wn===void 0||wn.call(an,ht)}}}});var At=Jt(P||[],{value:N,postState:function(ht){return Array.isArray(ht)?ht:ht==null?vi:[ht]}}),Kn=Q(At,2),kn=Kn[0],Qe=Kn[1],mt=function(ht){if(M){var Le=ht.key,qe=kn.includes(Le),Ct;z?qe?Ct=kn.filter(function(Tt){return Tt!==Le}):Ct=[].concat(ue(kn),[Le]):Ct=[Le],Qe(Ct);var Ht=A(A({},ht),{},{selectedKeys:Ct});qe?j==null||j(Ht):k==null||k(Ht)}!z&&Ce.length&&Me!=="inline"&&ke(vi)},Ot=Gl(function(Rt){W==null||W(gd(Rt)),mt(Rt)}),Bt=Gl(function(Rt,ht){var Le=Ce.filter(function(Ct){return Ct!==Rt});if(ht)Le.push(Rt);else if(Me!=="inline"){var qe=Te(Rt);Le=Le.filter(function(Ct){return!qe.has(Ct)})}mo(Ce,Le,!0)||ke(Le,!0)}),un=function(ht,Le){var qe=Le??!Ce.includes(ht);Bt(ht,qe)},Er=qB(Me,gt,We,we,$e,Ne,Ue,en,un,de);s.useEffect(function(){ve(!0)},[]);var Fr=s.useMemo(function(){return{_internalRenderMenuItem:oe,_internalRenderSubMenuItem:se}},[oe,se]),er=Me!=="horizontal"||b?ie:ie.map(function(Rt,ht){return s.createElement(Vs,{key:Rt.key,overflowDisabled:ht>Pe},Rt)}),ur=s.createElement(fo,ce({id:y,ref:$e,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:fc,className:V(a,"".concat(a,"-root"),"".concat(a,"-").concat(Me),c,D(D({},"".concat(a,"-inline-collapsed"),ze),"".concat(a,"-rtl"),We),i),dir:g,style:l,role:"menu",tabIndex:d,data:er,renderRawItem:function(ht){return ht},renderRawRest:function(ht){var Le=ht.length,qe=Le?ie.slice(-Le):null;return s.createElement(Sf,{eventKey:Fp,title:q,disabled:ot,internalPopupClose:Le===0,popupClassName:te},qe)},maxCount:Me!=="horizontal"||b?fo.INVALIDATE:fo.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(ht){Ge(ht)},onKeyDown:Er},ae));return s.createElement(Uh.Provider,{value:Fr},s.createElement(CO.Provider,{value:we},s.createElement(Vs,{prefixCls:a,rootClassName:i,mode:Me,openKeys:Ce,rtl:We,disabled:v,motion:ge?K:null,defaultMotions:ge?X:null,activeKey:gt,onActive:tn,onInactive:pn,selectedKeys:kn,inlineIndent:F,subMenuOpenDelay:$,subMenuCloseDelay:w,forceSubMenuRender:O,builtinPlacements:Z,triggerSubMenuAction:re,getPopupContainer:J,itemIcon:ne,expandIcon:le,onItemClick:Ot,onOpenChange:Bt},s.createElement(EO.Provider,{value:ct},ur),s.createElement("div",{style:{display:"none"},"aria-hidden":!0},s.createElement($O.Provider,{value:Fe},ie)))))}),bl=$F;bl.Item=fc;bl.SubMenu=Sf;bl.ItemGroup=xf;bl.Divider=Zh;var wF={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};const EF=wF;var OF=function(t,n){return s.createElement(Pt,ce({},t,{ref:n,icon:EF}))},IF=s.forwardRef(OF);const PF=IF;var RF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};const NF=RF;var TF=function(t,n){return s.createElement(Pt,ce({},t,{ref:n,icon:NF}))},MF=s.forwardRef(TF);const pd=MF,_F=e=>!isNaN(parseFloat(e))&&isFinite(e),zF=_F,TO=s.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var jF=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),kF=s.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:o,children:a,defaultCollapsed:i=!1,theme:l="dark",style:c={},collapsible:u=!1,reverseArrow:d=!1,width:f=200,collapsedWidth:m=80,zeroWidthTriggerStyle:g,breakpoint:y,onCollapse:h,onBreakpoint:C}=e,p=jF(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:v}=s.useContext(TO),[b,S]=s.useState("collapsed"in e?e.collapsed:i),[$,x]=s.useState(!1);s.useEffect(()=>{"collapsed"in e&&S(e.collapsed)},[e.collapsed]);const w=(R,M)=>{"collapsed"in e||S(R),h==null||h(R,M)},O=s.useRef();O.current=R=>{x(R.matches),C==null||C(R.matches),b!==R.matches&&w(R.matches,"responsive")},s.useEffect(()=>{function R(L){return O.current(L)}let M;if(typeof window<"u"){const{matchMedia:L}=window;if(L&&y&&y in LC){M=L(`screen and (max-width: ${LC[y]})`);try{M.addEventListener("change",R)}catch{M.addListener(R)}R(M)}}return()=>{try{M==null||M.removeEventListener("change",R)}catch{M==null||M.removeListener(R)}}},[y]),s.useEffect(()=>{const R=LF("ant-sider-");return v.addSider(R),()=>v.removeSider(R)},[]);const E=()=>{w(!b,"clickTrigger")},{getPrefixCls:I}=s.useContext(je),T=()=>{const R=I("layout-sider",n),M=Kt(p,["collapsed"]),L=b?m:f,z=zF(L)?`${L}px`:String(L),P=parseFloat(String(m||0))===0?s.createElement("span",{onClick:E,className:V(`${R}-zero-width-trigger`,`${R}-zero-width-trigger-${d?"right":"left"}`),style:g},o||s.createElement(PF,null)):null,j={expanded:d?s.createElement(Hs,null):s.createElement(pd,null),collapsed:d?s.createElement(pd,null):s.createElement(Hs,null)}[b?"collapsed":"expanded"],B=o!==null?P||s.createElement("div",{className:`${R}-trigger`,onClick:E,style:{width:z}},o||j):null,F=Object.assign(Object.assign({},c),{flex:`0 0 ${z}`,maxWidth:z,minWidth:z,width:z}),K=V(R,`${R}-${l}`,{[`${R}-collapsed`]:!!b,[`${R}-has-trigger`]:u&&o!==null&&!P,[`${R}-below`]:!!$,[`${R}-zero-width`]:parseFloat(z)===0},r);return s.createElement("aside",Object.assign({className:K},M,{style:F,ref:t}),s.createElement("div",{className:`${R}-children`},a),u||$&&P?B:null)},_=s.useMemo(()=>({siderCollapsed:b}),[b]);return s.createElement($f.Provider,{value:_},T())}),MO=kF;var DF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};const BF=DF;var FF=function(t,n){return s.createElement(Pt,ce({},t,{ref:n,icon:BF}))},AF=s.forwardRef(FF);const Jh=AF;var HF=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,className:n,dashed:r}=e,o=HF(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=s.useContext(je),i=a("menu",t),l=V({[`${i}-item-divider-dashed`]:!!r},n);return s.createElement(Zh,Object.assign({className:l},o))},_O=VF,KF=s.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),vd=KF,WF=e=>{var t;const{className:n,children:r,icon:o,title:a,danger:i}=e,{prefixCls:l,firstLevel:c,direction:u,disableMenuItemTitleTooltip:d,inlineCollapsed:f}=s.useContext(vd),m=v=>{const b=s.createElement("span",{className:`${l}-title-content`},r);return(!o||s.isValidElement(r)&&r.type==="span")&&r&&v&&c&&typeof r=="string"?s.createElement("div",{className:`${l}-inline-collapsed-noicon`},r.charAt(0)):b},{siderCollapsed:g}=s.useContext($f);let y=a;typeof a>"u"?y=c?r:"":a===!1&&(y="");const h={title:y};!g&&!f&&(h.title=null,h.open=!1);const C=lr(r).length;let p=s.createElement(fc,Object.assign({},Kt(e,["title","icon","danger"]),{className:V({[`${l}-item-danger`]:i,[`${l}-item-only-child`]:(o?C+1:C)===1},n),title:typeof a=="string"?a:void 0}),Xn(o,{className:V(s.isValidElement(o)?(t=o.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),m(f));return d||(p=s.createElement(As,Object.assign({},h,{placement:u==="rtl"?"left":"right",overlayClassName:`${l}-inline-collapsed-tooltip`}),p)),p},zO=WF,GF=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:a}=e,i=s.useContext(vd),{prefixCls:l,inlineCollapsed:c,theme:u}=i,d=yl();let f;if(!r)f=c&&!d.length&&o&&typeof o=="string"?s.createElement("div",{className:`${l}-inline-collapsed-noicon`},o.charAt(0)):s.createElement("span",{className:`${l}-title-content`},o);else{const y=s.isValidElement(o)&&o.type==="span";f=s.createElement(s.Fragment,null,Xn(r,{className:V(s.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),y?o:s.createElement("span",{className:`${l}-title-content`},o))}const m=s.useMemo(()=>Object.assign(Object.assign({},i),{firstLevel:!1}),[i]),[g]=nc("Menu");return s.createElement(vd.Provider,{value:m},s.createElement(Sf,Object.assign({},Kt(e,["icon"]),{title:f,popupClassName:V(l,n,`${l}-${a||u}`),popupStyle:{zIndex:g}})))},jO=GF;var UF=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{if(t&&typeof t=="object"){const r=t,{label:o,children:a,key:i,type:l}=r,c=UF(r,["label","children","key","type"]),u=i??`tmp-${n}`;return a||l==="group"?l==="group"?s.createElement(xf,Object.assign({key:u},c,{title:o}),Hp(a)):s.createElement(jO,Object.assign({key:u},c,{title:o}),Hp(a)):l==="divider"?s.createElement(_O,Object.assign({key:u},c)):s.createElement(zO,Object.assign({key:u},c),o)}return null}).filter(t=>t)}function qF(e){return s.useMemo(()=>e&&Hp(e),[e])}var XF=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{children:n}=e,r=XF(e,["children"]),o=s.useContext(hd),a=s.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable,r.rootClassName]),i=QR(n),l=Sa(t,i?n.ref:null);return s.createElement(hd.Provider,{value:a},s.createElement(js,null,i?s.cloneElement(n,{ref:l}):n))}),YF=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:a,lineType:i,itemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${H(a)} ${i} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover, + `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},zm(bt(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const ED=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlHeightSM:o,controlHeightLG:a,paddingXXS:i,controlPaddingHorizontal:l,zIndexPopupBase:c,colorText:u,fontWeightStrong:d,controlItemBgActive:f,controlItemBgHover:m,colorBgContainer:g,colorFillSecondary:y,colorBgContainerDisabled:h,colorTextDisabled:C}=e,p=r-i*2,v=o-i*2,b=a-i*2;return{zIndexPopup:c+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:f,optionActiveBg:m,optionPadding:`${(r-t*n)/2}px ${l}px`,optionFontSize:t,optionLineHeight:n,optionHeight:r,selectorBg:g,clearBg:g,singleItemHeightLG:a,multipleItemBg:y,multipleItemBorderColor:"transparent",multipleItemHeight:p,multipleItemHeightSM:v,multipleItemHeightLG:b,multipleSelectorBgDisabled:h,multipleItemColorDisabled:C,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25)}},rO=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${H(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${H(o)} ${t.activeShadowColor}`,outline:0}}}},PC=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},rO(e,t))}),OD=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},rO(e,{borderColor:e.colorBorder,hoverBorderHover:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadowColor:e.controlOutline})),PC(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeShadowColor:e.colorErrorOutline})),PC(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeShadowColor:e.colorWarningOutline})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${H(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),oO=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${H(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},RC=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},oO(e,t))}),ID=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},oO(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary,color:e.colorText})),RC(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),RC(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${H(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),PD=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",borderColor:"transparent"},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${H(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}),RD=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},OD(e)),ID(e)),PD(e))}),ND=RD,TD=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},MD=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},_D=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return{[n]:Object.assign(Object.assign({},zt(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},TD(e)),MD(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},ga),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},ga),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},nf()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${n}-clear`]:{opacity:1},[`${n}-arrow:not(:last-child)`]:{opacity:0}}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}},zD=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},_D(e),wD(e),$D(e),hD(e),{[`${t}-rtl`]:{direction:"rtl"}},Sh(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},jD=_t("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=bt(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[zD(r),ND(r)]},ED,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var LD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};const kD=LD;var DD=function(t,n){return s.createElement($t,ce({},t,{ref:n,icon:kD}))},BD=s.forwardRef(DD);const FD=BD;var AD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};const HD=AD;var VD=function(t,n){return s.createElement($t,ce({},t,{ref:n,icon:HD}))},KD=s.forwardRef(VD);const aO=KD;var WD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};const GD=WD;var UD=function(t,n){return s.createElement($t,ce({},t,{ref:n,icon:GD}))},qD=s.forwardRef(UD);const Vh=qD;function XD(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:a,multiple:i,hasFeedback:l,prefixCls:c,showSuffixIcon:u,feedbackIcon:d,showArrow:f,componentName:m}=e;const g=n??s.createElement(ml,null),y=v=>t===null&&!l&&!f?null:s.createElement(s.Fragment,null,u!==!1&&v,l&&d);let h=null;if(t!==void 0)h=y(t);else if(a)h=y(s.createElement(pl,{spin:!0}));else{const v=`${c}-suffix`;h=b=>{let{open:S,showSearch:$}=b;return y(S&&$?s.createElement(Vh,{className:v}):s.createElement(aO,{className:v}))}}let C=null;r!==void 0?C=r:i?C=s.createElement(FD,null):C=null;let p=null;return o!==void 0?p=o:p=s.createElement(ni,null),{clearIcon:g,suffixIcon:h,itemIcon:C,removeIcon:p}}function YD(e,t){return t!==void 0?t:e!==null}var QD=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n;const{prefixCls:r,bordered:o,className:a,rootClassName:i,getPopupContainer:l,popupClassName:c,dropdownClassName:u,listHeight:d=256,placement:f,listItemHeight:m,size:g,disabled:y,notFoundContent:h,status:C,builtinPlacements:p,dropdownMatchSelectWidth:v,popupMatchSelectWidth:b,direction:S,style:$,allowClear:x,variant:w,dropdownStyle:O,transitionName:E,tagRender:I,maxCount:T}=e,_=QD(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount"]),{getPopupContainer:R,getPrefixCls:M,renderEmpty:L,direction:z,virtual:P,popupMatchSelectWidth:N,popupOverflow:k,select:j}=s.useContext(je),[,B]=mn(),F=m??(B==null?void 0:B.controlHeight),K=M("select",r),X=M(),U=S??z,{compactSize:re,compactItemClassnames:Z}=ic(K,U),[ne,le]=Hh(w,o),ee=gn(K),[q,te,J]=jD(K,ee),W=s.useMemo(()=>{const{mode:Je}=e;if(Je!=="combobox")return Je===iO?"combobox":Je},[e.mode]),Y=W==="multiple"||W==="tags",de=YD(e.suffixIcon,e.showArrow),oe=(n=b??v)!==null&&n!==void 0?n:N,{status:se,hasFeedback:ae,isFormItemInput:ie,feedbackIcon:pe}=s.useContext(Qn),me=hf(se,C);let ge;h!==void 0?ge=h:W==="combobox"?ge=null:ge=(L==null?void 0:L("Select"))||s.createElement(nO,{componentName:"Select"});const{suffixIcon:ve,itemIcon:$e,removeIcon:we,clearIcon:We}=XD(Object.assign(Object.assign({},_),{multiple:Y,hasFeedback:ae,feedbackIcon:pe,showSuffixIcon:de,prefixCls:K,componentName:"Select"})),_e=x===!0?{clearIcon:We}:x,Se=Kt(_,["suffixIcon","itemIcon"]),Ce=V(c||u,{[`${K}-dropdown-${U}`]:U==="rtl"},i,J,ee,te),Oe=sr(Je=>{var Ae;return(Ae=g??re)!==null&&Ae!==void 0?Ae:Je}),ke=s.useContext(Ao),Ze=y??ke,He=V({[`${K}-lg`]:Oe==="large",[`${K}-sm`]:Oe==="small",[`${K}-rtl`]:U==="rtl",[`${K}-${ne}`]:le,[`${K}-in-form-item`]:ie},fd(K,me,ae),Z,j==null?void 0:j.className,a,i,J,ee,te),Ve=s.useMemo(()=>f!==void 0?f:U==="rtl"?"bottomRight":"bottomLeft",[f,U]),[it]=nc("SelectLike",O==null?void 0:O.zIndex);return q(s.createElement(Fh,Object.assign({ref:t,virtual:P,showSearch:j==null?void 0:j.showSearch},Se,{style:Object.assign(Object.assign({},j==null?void 0:j.style),$),dropdownMatchSelectWidth:oe,transitionName:va(X,"slide-up",E),builtinPlacements:pD(p,k),listHeight:d,listItemHeight:F,mode:W,prefixCls:K,placement:Ve,direction:U,suffixIcon:ve,menuItemSelectedIcon:$e,removeIcon:we,allowClear:_e,notFoundContent:ge,className:He,getPopupContainer:l||R,dropdownClassName:Ce,disabled:Ze,dropdownStyle:Object.assign(Object.assign({},O),{zIndex:it}),maxCount:Y?T:void 0,tagRender:Y?I:void 0})))},hl=s.forwardRef(ZD),JD=AE(hl);hl.SECRET_COMBOBOX_MODE_DO_NOT_USE=iO;hl.Option=Bh;hl.OptGroup=Dh;hl._InternalPanelDoNotUseOrYouWillBeFired=JD;const yf=hl,Fs=["xxl","xl","lg","md","sm","xs"],e6=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),t6=e=>{const t=e,n=[].concat(Fs).reverse();return n.forEach((r,o)=>{const a=r.toUpperCase(),i=`screen${a}Min`,l=`screen${a}`;if(!(t[i]<=t[l]))throw new Error(`${i}<=${l} fails : !(${t[i]}<=${t[l]})`);if(o{const n=new Map;let r=-1,o={};return{matchHandlers:{},dispatch(a){return o=a,n.forEach(i=>i(o)),n.size>=1},subscribe(a){return n.size||this.register(),r+=1,n.set(r,a),a(o),r},unsubscribe(a){n.delete(a),n.size||this.unregister()},unregister(){Object.keys(t).forEach(a=>{const i=t[a],l=this.matchHandlers[i];l==null||l.mql.removeListener(l==null?void 0:l.listener)}),n.clear()},register(){Object.keys(t).forEach(a=>{const i=t[a],l=u=>{let{matches:d}=u;this.dispatch(Object.assign(Object.assign({},o),{[a]:d}))},c=window.matchMedia(i);c.addListener(l),this.matchHandlers[i]={mql:c,listener:l},l(c)})},responsiveMap:t}},[e])}function sO(){const[,e]=s.useReducer(t=>t+1,0);return e}function cO(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=s.useRef({}),n=sO(),r=lO();return Mt(()=>{const o=r.subscribe(a=>{t.current=a,e&&n()});return()=>r.unsubscribe(o)},[]),t.current}const al=e=>e?typeof e=="function"?e():e:null;function Kh(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,a=e.className,i=e.style;return s.createElement("div",{className:V("".concat(n,"-content"),a),style:i},s.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var fi={shiftX:64,adjustY:1},mi={adjustX:1,shiftY:!0},Pr=[0,0],n6={left:{points:["cr","cl"],overflow:mi,offset:[-4,0],targetOffset:Pr},right:{points:["cl","cr"],overflow:mi,offset:[4,0],targetOffset:Pr},top:{points:["bc","tc"],overflow:fi,offset:[0,-4],targetOffset:Pr},bottom:{points:["tc","bc"],overflow:fi,offset:[0,4],targetOffset:Pr},topLeft:{points:["bl","tl"],overflow:fi,offset:[0,-4],targetOffset:Pr},leftTop:{points:["tr","tl"],overflow:mi,offset:[-4,0],targetOffset:Pr},topRight:{points:["br","tr"],overflow:fi,offset:[0,-4],targetOffset:Pr},rightTop:{points:["tl","tr"],overflow:mi,offset:[4,0],targetOffset:Pr},bottomRight:{points:["tr","br"],overflow:fi,offset:[0,4],targetOffset:Pr},rightBottom:{points:["bl","br"],overflow:mi,offset:[4,0],targetOffset:Pr},bottomLeft:{points:["tl","bl"],overflow:fi,offset:[0,4],targetOffset:Pr},leftBottom:{points:["br","bl"],overflow:mi,offset:[-4,0],targetOffset:Pr}},r6=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],o6=function(t,n){var r=t.overlayClassName,o=t.trigger,a=o===void 0?["hover"]:o,i=t.mouseEnterDelay,l=i===void 0?0:i,c=t.mouseLeaveDelay,u=c===void 0?.1:c,d=t.overlayStyle,f=t.prefixCls,m=f===void 0?"rc-tooltip":f,g=t.children,y=t.onVisibleChange,h=t.afterVisibleChange,C=t.transitionName,p=t.animation,v=t.motion,b=t.placement,S=b===void 0?"right":b,$=t.align,x=$===void 0?{}:$,w=t.destroyTooltipOnHide,O=w===void 0?!1:w,E=t.defaultVisible,I=t.getTooltipContainer,T=t.overlayInnerStyle;t.arrowContent;var _=t.overlay,R=t.id,M=t.showArrow,L=M===void 0?!0:M,z=tt(t,r6),P=s.useRef(null);s.useImperativeHandle(n,function(){return P.current});var N=A({},z);"visible"in t&&(N.popupVisible=t.visible);var k=function(){return s.createElement(Kh,{key:"content",prefixCls:m,id:R,overlayInnerStyle:T},_)};return s.createElement(pf,ce({popupClassName:r,prefixCls:m,popup:k,action:a,builtinPlacements:n6,popupPlacement:S,ref:P,popupAlign:x,getPopupContainer:I,onPopupVisibleChange:y,afterPopupVisibleChange:h,popupTransitionName:C,popupAnimation:p,popupMotion:v,defaultPopupVisible:E,autoDestroy:O,mouseLeaveDelay:u,popupStyle:d,mouseEnterDelay:l,arrow:L},N),g)};const a6=s.forwardRef(o6);function Wh(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,a=0,i=o,l=r*1/Math.sqrt(2),c=o-r*(1-1/Math.sqrt(2)),u=o-n*(1/Math.sqrt(2)),d=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),f=2*o-u,m=d,g=2*o-l,y=c,h=2*o-a,C=i,p=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),v=r*(Math.sqrt(2)-1),b=`polygon(${v}px 100%, 50% ${v}px, ${2*o-v}px 100%, ${v}px 100%)`,S=`path('M ${a} ${i} A ${r} ${r} 0 0 0 ${l} ${c} L ${u} ${d} A ${n} ${n} 0 0 1 ${f} ${m} L ${g} ${y} A ${r} ${r} 0 0 0 ${h} ${C} Z')`;return{arrowShadowWidth:p,arrowPath:S,arrowPolygon:b}}const i6=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:a,arrowShadowWidth:i,borderRadiusXS:l,calc:c}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${H(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},uO=8;function bf(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?uO:r}}function qc(e,t){return e?t:{}}function Gh(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:a,arrowOffsetHorizontal:i}=e,{arrowDistance:l=0,arrowPlacement:c={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},i6(e,t,o)),{"&:before":{background:t}})]},qc(!!c.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:l,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:i}},[`&-placement-topRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}})),qc(!!c.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:l,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:i}},[`&-placement-bottomRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}})),qc(!!c.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},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:a},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:a}})),qc(!!c.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},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:a},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:a}}))}}function l6(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},a={};switch(e){case"top":case"bottom":a.shiftX=t.arrowOffsetHorizontal*2+n,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=t.arrowOffsetVertical*2+n,a.shiftX=!0,a.adjustX=!0;break}const i=Object.assign(Object.assign({},a),o);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}const NC={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"]}},s6={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"]}},c6=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function dO(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:a,visibleFirst:i}=e,l=t/2,c={};return Object.keys(NC).forEach(u=>{const d=r&&s6[u]||NC[u],f=Object.assign(Object.assign({},d),{offset:[0,0],dynamicInset:!0});switch(c[u]=f,c6.has(u)&&(f.autoArrow=!1),u){case"top":case"topLeft":case"topRight":f.offset[1]=-l-o;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=l+o;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-l-o;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=l+o;break}const m=bf({contentRadius:a,limitVerticalRadius:!0});if(r)switch(u){case"topLeft":case"bottomLeft":f.offset[0]=-m.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":f.offset[0]=m.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":f.offset[1]=-m.arrowOffsetHorizontal-l;break;case"leftBottom":case"rightBottom":f.offset[1]=m.arrowOffsetHorizontal+l;break}f.overflow=l6(u,m,t,n),i&&(f.htmlRegion="visibleFirst")}),c}const u6=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:a,zIndexPopup:i,controlHeight:l,boxShadowSecondary:c,paddingSM:u,paddingXS:d}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},zt(e)),{position:"absolute",zIndex:i,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:l,minHeight:l,padding:`${H(e.calc(u).div(2).equal())} ${H(d)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:a,boxShadow:c,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(a,uO)}},[`${t}-content`]:{position:"relative"}}),dw(e,(f,m)=>{let{darkColor:g}=m;return{[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:g},[`${t}-arrow`]:{"--antd-arrow-background-color":g}}}})),{"&-rtl":{direction:"rtl"}})},Gh(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},d6=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},bf({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Wh(bt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),fO=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return _t("Tooltip",r=>{const{borderRadius:o,colorTextLightSolid:a,colorBgSpotlight:i}=r,l=bt(r,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:o,tooltipBg:i});return[u6(l),cc(r,"zoom-big-fast")]},d6,{resetStyle:!1,injectStyle:t})(e)},f6=zs.map(e=>`${e}-inverse`),m6=["success","processing","error","default","warning"];function mO(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(ue(f6),ue(zs)).includes(e):zs.includes(e)}function g6(e){return m6.includes(e)}function gO(e,t){const n=mO(t),r=V({[`${e}-${t}`]:t&&n}),o={},a={};return t&&!n&&(o.background=t,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:a}}const p6=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:a,overlayInnerStyle:i}=e,{getPrefixCls:l}=s.useContext(je),c=l("tooltip",t),[u,d,f]=fO(c),m=gO(c,a),g=m.arrowStyle,y=Object.assign(Object.assign({},i),m.overlayStyle),h=V(d,f,c,`${c}-pure`,`${c}-placement-${r}`,n,m.className);return u(s.createElement("div",{className:h,style:g},s.createElement("div",{className:`${c}-arrow`}),s.createElement(Kh,Object.assign({},e,{className:d,prefixCls:c,overlayInnerStyle:y}),o)))},v6=p6;var h6=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,r;const{prefixCls:o,openClassName:a,getTooltipContainer:i,overlayClassName:l,color:c,overlayInnerStyle:u,children:d,afterOpenChange:f,afterVisibleChange:m,destroyTooltipOnHide:g,arrow:y=!0,title:h,overlay:C,builtinPlacements:p,arrowPointAtCenter:v=!1,autoAdjustOverflow:b=!0}=e,S=!!y,[,$]=mn(),{getPopupContainer:x,getPrefixCls:w,direction:O}=s.useContext(je),E=Fo(),I=s.useRef(null),T=()=>{var ge;(ge=I.current)===null||ge===void 0||ge.forceAlign()};s.useImperativeHandle(t,()=>({forceAlign:T,forcePopupAlign:()=>{E.deprecated(!1,"forcePopupAlign","forceAlign"),T()}}));const[_,R]=Jt(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),M=!h&&!C&&h!==0,L=ge=>{var ve,$e;R(M?!1:ge),M||((ve=e.onOpenChange)===null||ve===void 0||ve.call(e,ge),($e=e.onVisibleChange)===null||$e===void 0||$e.call(e,ge))},z=s.useMemo(()=>{var ge,ve;let $e=v;return typeof y=="object"&&($e=(ve=(ge=y.pointAtCenter)!==null&&ge!==void 0?ge:y.arrowPointAtCenter)!==null&&ve!==void 0?ve:v),p||dO({arrowPointAtCenter:$e,autoAdjustOverflow:b,arrowWidth:S?$.sizePopupArrow:0,borderRadius:$.borderRadius,offset:$.marginXXS,visibleFirst:!0})},[v,y,p,$]),P=s.useMemo(()=>h===0?h:C||h||"",[C,h]),N=s.createElement(js,null,typeof P=="function"?P():P),{getPopupContainer:k,placement:j="top",mouseEnterDelay:B=.1,mouseLeaveDelay:F=.1,overlayStyle:K,rootClassName:X}=e,U=h6(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),re=w("tooltip",o),Z=w(),ne=e["data-popover-inject"];let le=_;!("open"in e)&&!("visible"in e)&&M&&(le=!1);const ee=s.isValidElement(d)&&!Nw(d)?d:s.createElement("span",null,d),q=ee.props,te=!q.className||typeof q.className=="string"?V(q.className,a||`${re}-open`):q.className,[J,W,Y]=fO(re,!ne),de=gO(re,c),oe=de.arrowStyle,se=Object.assign(Object.assign({},u),de.overlayStyle),ae=V(l,{[`${re}-rtl`]:O==="rtl"},de.className,X,W,Y),[ie,pe]=nc("Tooltip",U.zIndex),me=s.createElement(a6,Object.assign({},U,{zIndex:ie,showArrow:S,placement:j,mouseEnterDelay:B,mouseLeaveDelay:F,prefixCls:re,overlayClassName:ae,overlayStyle:Object.assign(Object.assign({},oe),K),getTooltipContainer:k||i||x,ref:I,builtinPlacements:z,overlay:N,visible:le,onVisibleChange:L,afterVisibleChange:f??m,overlayInnerStyle:se,arrowContent:s.createElement("span",{className:`${re}-arrow-content`}),motion:{motionName:va(Z,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!g}),le?Xn(ee,{className:te}):ee);return J(s.createElement(lf.Provider,{value:pe},me))}),pO=y6;pO._InternalPanelDoNotUseOrYouWillBeFired=v6;const As=pO,b6=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:a,boxShadowSecondary:i,colorTextHeading:l,borderRadiusLG:c,zIndexPopup:u,titleMarginBottom:d,colorBgElevated:f,popoverBg:m,titleBorderBottom:g,innerContentPadding:y,titlePadding:h}=e;return[{[t]:Object.assign(Object.assign({},zt(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":f,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:m,backgroundClip:"padding-box",borderRadius:c,boxShadow:i,padding:a},[`${t}-title`]:{minWidth:r,marginBottom:d,color:l,fontWeight:o,borderBottom:g,padding:h},[`${t}-inner-content`]:{color:n,padding:y}})},Gh(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},C6=e=>{const{componentCls:t}=e;return{[t]:zs.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},S6=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:a,zIndexPopupBase:i,borderRadiusLG:l,marginXS:c,lineType:u,colorSplit:d,paddingSM:f}=e,m=n-r,g=m/2,y=m/2-t,h=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:i+30},Wh(e)),bf({contentRadius:l,limitVerticalRadius:!0})),{innerPadding:a?0:12,titleMarginBottom:a?0:c,titlePadding:a?`${g}px ${h}px ${y}px`:0,titleBorderBottom:a?`${t}px ${u} ${d}`:"none",innerContentPadding:a?`${f}px ${h}px`:0})},vO=_t("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=bt(e,{popoverBg:t,popoverColor:n});return[b6(r),C6(r),cc(r,"zoom-big")]},S6,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var x6=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o!t&&!n?null:s.createElement(s.Fragment,null,t&&s.createElement("div",{className:`${e}-title`},al(t)),s.createElement("div",{className:`${e}-inner-content`},al(n))),w6=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:a="top",title:i,content:l,children:c}=e;return s.createElement("div",{className:V(t,n,`${n}-pure`,`${n}-placement-${a}`,r),style:o},s.createElement("div",{className:`${n}-arrow`}),s.createElement(Kh,Object.assign({},e,{className:t,prefixCls:n}),c||$6(n,i,l)))},E6=e=>{const{prefixCls:t,className:n}=e,r=x6(e,["prefixCls","className"]),{getPrefixCls:o}=s.useContext(je),a=o("popover",t),[i,l,c]=vO(a);return i(s.createElement(w6,Object.assign({},r,{prefixCls:a,hashId:l,className:V(n,c)})))},hO=E6;var O6=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{let{title:t,content:n,prefixCls:r}=e;return s.createElement(s.Fragment,null,t&&s.createElement("div",{className:`${r}-title`},al(t)),s.createElement("div",{className:`${r}-inner-content`},al(n)))},P6=s.forwardRef((e,t)=>{var n;const{prefixCls:r,title:o,content:a,overlayClassName:i,placement:l="top",trigger:c="hover",children:u,mouseEnterDelay:d=.1,mouseLeaveDelay:f=.1,onOpenChange:m,overlayStyle:g={}}=e,y=O6(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle"]),{getPrefixCls:h}=s.useContext(je),C=h("popover",r),[p,v,b]=vO(C),S=h(),$=V(i,v,b),[x,w]=Jt(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible}),O=(T,_)=>{w(T,!0),m==null||m(T,_)},E=T=>{T.keyCode===fe.ESC&&O(!1,T)},I=T=>{O(T)};return p(s.createElement(As,Object.assign({placement:l,trigger:c,mouseEnterDelay:d,mouseLeaveDelay:f,overlayStyle:g},y,{prefixCls:C,overlayClassName:$,ref:t,open:x,onOpenChange:I,overlay:o||a?s.createElement(I6,{prefixCls:C,title:o,content:a}):null,transitionName:va(S,"zoom-big",y.transitionName),"data-popover-inject":!0}),Xn(u,{onKeyDown:T=>{var _,R;s.isValidElement(u)&&((R=u==null?void 0:(_=u.props).onKeyDown)===null||R===void 0||R.call(_,T)),E(T)}})))}),yO=P6;yO._InternalPanelDoNotUseOrYouWillBeFired=hO;const R6=yO;var N6={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};const T6=N6;var M6=function(t,n){return s.createElement($t,ce({},t,{ref:n,icon:T6}))},_6=s.forwardRef(M6);const Hs=_6;var z6=fe.ESC,j6=fe.TAB;function L6(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,a=e.overlayRef,i=s.useRef(!1),l=function(){if(t){var f,m;(f=n.current)===null||f===void 0||(m=f.focus)===null||m===void 0||m.call(f),r==null||r(!1)}},c=function(){var f;return(f=a.current)!==null&&f!==void 0&&f.focus?(a.current.focus(),i.current=!0,!0):!1},u=function(f){switch(f.keyCode){case z6:l();break;case j6:{var m=!1;i.current||(m=c()),m?f.preventDefault():l();break}}};s.useEffect(function(){return t?(window.addEventListener("keydown",u),o&&Pt(c,3),function(){window.removeEventListener("keydown",u),i.current=!1}):function(){i.current=!1}},[t])}var k6=s.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,a=s.useMemo(function(){var l;return typeof n=="function"?l=n():l=n,l},[n]),i=Br(t,a==null?void 0:a.ref);return G.createElement(G.Fragment,null,r&&G.createElement("div",{className:"".concat(o,"-arrow")}),G.cloneElement(a,{ref:to(a)?i:void 0}))}),gi={adjustX:1,adjustY:1},pi=[0,0],D6={topLeft:{points:["bl","tl"],overflow:gi,offset:[0,-4],targetOffset:pi},top:{points:["bc","tc"],overflow:gi,offset:[0,-4],targetOffset:pi},topRight:{points:["br","tr"],overflow:gi,offset:[0,-4],targetOffset:pi},bottomLeft:{points:["tl","bl"],overflow:gi,offset:[0,4],targetOffset:pi},bottom:{points:["tc","bc"],overflow:gi,offset:[0,4],targetOffset:pi},bottomRight:{points:["tr","br"],overflow:gi,offset:[0,4],targetOffset:pi}},B6=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function F6(e,t){var n,r=e.arrow,o=r===void 0?!1:r,a=e.prefixCls,i=a===void 0?"rc-dropdown":a,l=e.transitionName,c=e.animation,u=e.align,d=e.placement,f=d===void 0?"bottomLeft":d,m=e.placements,g=m===void 0?D6:m,y=e.getPopupContainer,h=e.showAction,C=e.hideAction,p=e.overlayClassName,v=e.overlayStyle,b=e.visible,S=e.trigger,$=S===void 0?["hover"]:S,x=e.autoFocus,w=e.overlay,O=e.children,E=e.onVisibleChange,I=tt(e,B6),T=G.useState(),_=Q(T,2),R=_[0],M=_[1],L="visible"in e?b:R,z=G.useRef(null),P=G.useRef(null),N=G.useRef(null);G.useImperativeHandle(t,function(){return z.current});var k=function(ne){M(ne),E==null||E(ne)};L6({visible:L,triggerRef:N,onVisibleChange:k,autoFocus:x,overlayRef:P});var j=function(ne){var le=e.onOverlayClick;M(!1),le&&le(ne)},B=function(){return G.createElement(k6,{ref:P,overlay:w,prefixCls:i,arrow:o})},F=function(){return typeof w=="function"?B:B()},K=function(){var ne=e.minOverlayWidthMatchTrigger,le=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?ne:!le},X=function(){var ne=e.openClassName;return ne!==void 0?ne:"".concat(i,"-open")},U=G.cloneElement(O,{className:V((n=O.props)===null||n===void 0?void 0:n.className,L&&X()),ref:to(O)?Br(N,O.ref):void 0}),re=C;return!re&&$.indexOf("contextMenu")!==-1&&(re=["click"]),G.createElement(pf,ce({builtinPlacements:g},I,{prefixCls:i,ref:z,popupClassName:V(p,D({},"".concat(i,"-show-arrow"),o)),popupStyle:v,action:$,showAction:h,hideAction:re,popupPlacement:f,popupAlign:u,popupTransitionName:l,popupAnimation:c,popupVisible:L,stretch:K()?"minWidth":"",popup:F(),onPopupVisibleChange:k,onPopupClick:j,getPopupContainer:y}),U)}const bO=G.forwardRef(F6);var CO=s.createContext(null);function SO(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function xO(e){var t=s.useContext(CO);return SO(t,e)}var A6=["children","locked"],no=s.createContext(null);function H6(e,t){var n=A({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o)}),n}function Vs(e){var t=e.children,n=e.locked,r=tt(e,A6),o=s.useContext(no),a=Za(function(){return H6(o,r)},[o,r],function(i,l){return!n&&(i[0]!==l[0]||!mo(i[1],l[1],!0))});return s.createElement(no.Provider,{value:a},t)}var V6=[],$O=s.createContext(null);function Cf(){return s.useContext($O)}var wO=s.createContext(V6);function yl(e){var t=s.useContext(wO);return s.useMemo(function(){return e!==void 0?[].concat(ue(t),[e]):t},[t,e])}var EO=s.createContext(null),Uh=s.createContext({});function TC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(oc(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),a=Number(o),i=null;return o&&!Number.isNaN(a)?i=a:r&&i===null&&(i=0),r&&e.disabled&&(i=null),i!==null&&(i>=0||t&&i<0)}return!1}function K6(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=ue(e.querySelectorAll("*")).filter(function(r){return TC(r,t)});return TC(e,t)&&n.unshift(e),n}var Lp=fe.LEFT,kp=fe.RIGHT,Dp=fe.UP,Su=fe.DOWN,xu=fe.ENTER,OO=fe.ESC,Dl=fe.HOME,Bl=fe.END,MC=[Dp,Su,Lp,kp];function W6(e,t,n,r){var o,a="prev",i="next",l="children",c="parent";if(e==="inline"&&r===xu)return{inlineTrigger:!0};var u=D(D({},Dp,a),Su,i),d=D(D(D(D({},Lp,n?i:a),kp,n?a:i),Su,l),xu,l),f=D(D(D(D(D(D({},Dp,a),Su,i),xu,l),OO,c),Lp,n?l:c),kp,n?c:l),m={inline:u,horizontal:d,vertical:f,inlineSub:u,horizontalSub:f,verticalSub:f},g=(o=m["".concat(e).concat(t?"":"Sub")])===null||o===void 0?void 0:o[r];switch(g){case a:return{offset:-1,sibling:!0};case i:return{offset:1,sibling:!0};case c:return{offset:-1,sibling:!1};case l:return{offset:1,sibling:!1};default:return null}}function G6(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function U6(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function qh(e,t){var n=K6(e,!0);return n.filter(function(r){return t.has(r)})}function _C(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=qh(e,t),a=o.length,i=o.findIndex(function(l){return n===l});return r<0?i===-1?i=a-1:i-=1:r>0&&(i+=1),i=(i+a)%a,o[i]}var Bp=function(t,n){var r=new Set,o=new Map,a=new Map;return t.forEach(function(i){var l=document.querySelector("[data-menu-id='".concat(SO(n,i),"']"));l&&(r.add(l),a.set(l,i),o.set(i,l))}),{elements:r,key2element:o,element2key:a}};function q6(e,t,n,r,o,a,i,l,c,u){var d=s.useRef(),f=s.useRef();f.current=t;var m=function(){Pt.cancel(d.current)};return s.useEffect(function(){return function(){m()}},[]),function(g){var y=g.which;if([].concat(MC,[xu,OO,Dl,Bl]).includes(y)){var h=a(),C=Bp(h,r),p=C,v=p.elements,b=p.key2element,S=p.element2key,$=b.get(t),x=U6($,v),w=S.get(x),O=W6(e,i(w,!0).length===1,n,y);if(!O&&y!==Dl&&y!==Bl)return;(MC.includes(y)||[Dl,Bl].includes(y))&&g.preventDefault();var E=function(P){if(P){var N=P,k=P.querySelector("a");k!=null&&k.getAttribute("href")&&(N=k);var j=S.get(P);l(j),m(),d.current=Pt(function(){f.current===j&&N.focus()})}};if([Dl,Bl].includes(y)||O.sibling||!x){var I;!x||e==="inline"?I=o.current:I=G6(x);var T,_=qh(I,v);y===Dl?T=_[0]:y===Bl?T=_[_.length-1]:T=_C(I,v,x,O.offset),E(T)}else if(O.inlineTrigger)c(w);else if(O.offset>0)c(w,!0),m(),d.current=Pt(function(){C=Bp(h,r);var z=x.getAttribute("aria-controls"),P=document.getElementById(z),N=_C(P,C.elements);E(N)},5);else if(O.offset<0){var R=i(w,!0),M=R[R.length-2],L=b.get(M);c(M,!1),E(L)}}u==null||u(g)}}function X6(e){Promise.resolve().then(e)}var Xh="__RC_UTIL_PATH_SPLIT__",zC=function(t){return t.join(Xh)},Y6=function(t){return t.split(Xh)},Fp="rc-menu-more";function Q6(){var e=s.useState({}),t=Q(e,2),n=t[1],r=s.useRef(new Map),o=s.useRef(new Map),a=s.useState([]),i=Q(a,2),l=i[0],c=i[1],u=s.useRef(0),d=s.useRef(!1),f=function(){d.current||n({})},m=s.useCallback(function(b,S){var $=zC(S);o.current.set($,b),r.current.set(b,$),u.current+=1;var x=u.current;X6(function(){x===u.current&&f()})},[]),g=s.useCallback(function(b,S){var $=zC(S);o.current.delete($),r.current.delete(b)},[]),y=s.useCallback(function(b){c(b)},[]),h=s.useCallback(function(b,S){var $=r.current.get(b)||"",x=Y6($);return S&&l.includes(x[0])&&x.unshift(Fp),x},[l]),C=s.useCallback(function(b,S){return b.some(function($){var x=h($,!0);return x.includes(S)})},[h]),p=function(){var S=ue(r.current.keys());return l.length&&S.push(Fp),S},v=s.useCallback(function(b){var S="".concat(r.current.get(b)).concat(Xh),$=new Set;return ue(o.current.keys()).forEach(function(x){x.startsWith(S)&&$.add(o.current.get(x))}),$},[]);return s.useEffect(function(){return function(){d.current=!0}},[]),{registerPath:m,unregisterPath:g,refreshOverflowKeys:y,isSubPathKey:C,getKeyPath:h,getKeys:p,getSubPathKeys:v}}function Gl(e){var t=s.useRef(e);t.current=e;var n=s.useCallback(function(){for(var r,o=arguments.length,a=new Array(o),i=0;i1&&(v.motionAppear=!1);var b=v.onVisibleChanged;return v.onVisibleChanged=function(S){return!m.current&&!S&&C(!0),b==null?void 0:b(S)},h?null:s.createElement(Vs,{mode:a,locked:!m.current},s.createElement(ro,ce({visible:p},v,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),function(S){var $=S.className,x=S.style;return s.createElement(Yh,{id:t,className:$,style:x},o)}))}var gB=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],pB=["active"],vB=function(t){var n=t.style,r=t.className,o=t.title,a=t.eventKey;t.warnKey;var i=t.disabled,l=t.internalPopupClose,c=t.children,u=t.itemIcon,d=t.expandIcon,f=t.popupClassName,m=t.popupOffset,g=t.popupStyle,y=t.onClick,h=t.onMouseEnter,C=t.onMouseLeave,p=t.onTitleClick,v=t.onTitleMouseEnter,b=t.onTitleMouseLeave,S=tt(t,gB),$=xO(a),x=s.useContext(no),w=x.prefixCls,O=x.mode,E=x.openKeys,I=x.disabled,T=x.overflowDisabled,_=x.activeKey,R=x.selectedKeys,M=x.itemIcon,L=x.expandIcon,z=x.onItemClick,P=x.onOpenChange,N=x.onActive,k=s.useContext(Uh),j=k._internalRenderSubMenuItem,B=s.useContext(EO),F=B.isSubPathKey,K=yl(),X="".concat(w,"-submenu"),U=I||i,re=s.useRef(),Z=s.useRef(),ne=u??M,le=d??L,ee=E.includes(a),q=!T&&ee,te=F(R,a),J=IO(a,U,v,b),W=J.active,Y=tt(J,pB),de=s.useState(!1),oe=Q(de,2),se=oe[0],ae=oe[1],ie=function(Ve){U||ae(Ve)},pe=function(Ve){ie(!0),h==null||h({key:a,domEvent:Ve})},me=function(Ve){ie(!1),C==null||C({key:a,domEvent:Ve})},ge=s.useMemo(function(){return W||(O!=="inline"?se||F([_],a):!1)},[O,W,_,se,a,F]),ve=PO(K.length),$e=function(Ve){U||(p==null||p({key:a,domEvent:Ve}),O==="inline"&&P(a,!ee))},we=Gl(function(He){y==null||y(gd(He)),z(He)}),We=function(Ve){O!=="inline"&&P(a,Ve)},_e=function(){N(a)},Se=$&&"".concat($,"-popup"),Ce=s.createElement("div",ce({role:"menuitem",style:ve,className:"".concat(X,"-title"),tabIndex:U?null:-1,ref:re,title:typeof o=="string"?o:null,"data-menu-id":T&&$?null:$,"aria-expanded":q,"aria-haspopup":!0,"aria-controls":Se,"aria-disabled":U,onClick:$e,onFocus:_e},Y),o,s.createElement(RO,{icon:O!=="horizontal"?le:void 0,props:A(A({},t),{},{isOpen:q,isSubMenu:!0})},s.createElement("i",{className:"".concat(X,"-arrow")}))),Oe=s.useRef(O);if(O!=="inline"&&K.length>1?Oe.current="vertical":Oe.current=O,!T){var ke=Oe.current;Ce=s.createElement(fB,{mode:ke,prefixCls:X,visible:!l&&q&&O!=="inline",popupClassName:f,popupOffset:m,popupStyle:g,popup:s.createElement(Vs,{mode:ke==="horizontal"?"vertical":ke},s.createElement(Yh,{id:Se,ref:Z},c)),disabled:U,onVisibleChange:We},Ce)}var Ze=s.createElement(fo.Item,ce({role:"none"},S,{component:"li",style:n,className:V(X,"".concat(X,"-").concat(O),r,D(D(D(D({},"".concat(X,"-open"),q),"".concat(X,"-active"),ge),"".concat(X,"-selected"),te),"".concat(X,"-disabled"),U)),onMouseEnter:pe,onMouseLeave:me}),Ce,!T&&s.createElement(mB,{id:Se,open:q,keyPath:K},c));return j&&(Ze=j(Ze,t,{selected:te,active:ge,open:q,disabled:U})),s.createElement(Vs,{onItemClick:we,mode:O==="horizontal"?"vertical":O,itemIcon:ne,expandIcon:le},Ze)};function Sf(e){var t=e.eventKey,n=e.children,r=yl(t),o=Qh(n,r),a=Cf();s.useEffect(function(){if(a)return a.registerPath(t,r),function(){a.unregisterPath(t,r)}},[r]);var i;return a?i=o:i=s.createElement(vB,e,o),s.createElement(wO.Provider,{value:r},i)}var hB=["className","title","eventKey","children"],yB=["children"],bB=function(t){var n=t.className,r=t.title;t.eventKey;var o=t.children,a=tt(t,hB),i=s.useContext(no),l=i.prefixCls,c="".concat(l,"-item-group");return s.createElement("li",ce({role:"presentation"},a,{onClick:function(d){return d.stopPropagation()},className:V(c,n)}),s.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:typeof r=="string"?r:void 0},r),s.createElement("ul",{role:"group",className:"".concat(c,"-list")},o))};function xf(e){var t=e.children,n=tt(e,yB),r=yl(n.eventKey),o=Qh(t,r),a=Cf();return a?o:s.createElement(bB,Kt(n,["warnKey"]),o)}function Zh(e){var t=e.className,n=e.style,r=s.useContext(no),o=r.prefixCls,a=Cf();return a?null:s.createElement("li",{role:"separator",className:V("".concat(o,"-item-divider"),t),style:n})}var CB=["label","children","key","type"];function Ap(e){return(e||[]).map(function(t,n){if(t&&at(t)==="object"){var r=t,o=r.label,a=r.children,i=r.key,l=r.type,c=tt(r,CB),u=i??"tmp-".concat(n);return a||l==="group"?l==="group"?s.createElement(xf,ce({key:u},c,{title:o}),Ap(a)):s.createElement(Sf,ce({key:u},c,{title:o}),Ap(a)):l==="divider"?s.createElement(Zh,ce({key:u},c)):s.createElement(fc,ce({key:u},c),o)}return null}).filter(function(t){return t})}function SB(e,t,n){var r=e;return t&&(r=Ap(t)),Qh(r,n)}var xB=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],vi=[],$B=s.forwardRef(function(e,t){var n,r=e,o=r.prefixCls,a=o===void 0?"rc-menu":o,i=r.rootClassName,l=r.style,c=r.className,u=r.tabIndex,d=u===void 0?0:u,f=r.items,m=r.children,g=r.direction,y=r.id,h=r.mode,C=h===void 0?"vertical":h,p=r.inlineCollapsed,v=r.disabled,b=r.disabledOverflow,S=r.subMenuOpenDelay,$=S===void 0?.1:S,x=r.subMenuCloseDelay,w=x===void 0?.1:x,O=r.forceSubMenuRender,E=r.defaultOpenKeys,I=r.openKeys,T=r.activeKey,_=r.defaultActiveFirst,R=r.selectable,M=R===void 0?!0:R,L=r.multiple,z=L===void 0?!1:L,P=r.defaultSelectedKeys,N=r.selectedKeys,k=r.onSelect,j=r.onDeselect,B=r.inlineIndent,F=B===void 0?24:B,K=r.motion,X=r.defaultMotions,U=r.triggerSubMenuAction,re=U===void 0?"hover":U,Z=r.builtinPlacements,ne=r.itemIcon,le=r.expandIcon,ee=r.overflowedIndicator,q=ee===void 0?"...":ee,te=r.overflowedIndicatorPopupClassName,J=r.getPopupContainer,W=r.onClick,Y=r.onOpenChange,de=r.onKeyDown;r.openAnimation,r.openTransitionName;var oe=r._internalRenderMenuItem,se=r._internalRenderSubMenuItem,ae=tt(r,xB),ie=s.useMemo(function(){return SB(m,f,vi)},[m,f]),pe=s.useState(!1),me=Q(pe,2),ge=me[0],ve=me[1],$e=s.useRef(),we=J6(y),We=g==="rtl",_e=Jt(E,{value:I,postState:function(ht){return ht||vi}}),Se=Q(_e,2),Ce=Se[0],Oe=Se[1],ke=function(ht){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function qe(){Oe(ht),Y==null||Y(ht)}Le?To.flushSync(qe):qe()},Ze=s.useState(Ce),He=Q(Ze,2),Ve=He[0],it=He[1],Je=s.useRef(!1),Ae=s.useMemo(function(){return(C==="inline"||C==="vertical")&&p?["vertical",p]:[C,!1]},[C,p]),lt=Q(Ae,2),ut=lt[0],St=lt[1],st=ut==="inline",vt=s.useState(ut),nt=Q(vt,2),Me=nt[0],Xe=nt[1],De=s.useState(St),xe=Q(De,2),ze=xe[0],rt=xe[1];s.useEffect(function(){Xe(ut),rt(St),Je.current&&(st?Oe(Ve):ke(vi))},[ut,St]);var ye=s.useState(0),Re=Q(ye,2),Pe=Re[0],Ge=Re[1],ot=Pe>=ie.length-1||Me!=="horizontal"||b;s.useEffect(function(){st&&it(Ce)},[Ce]),s.useEffect(function(){return Je.current=!0,function(){Je.current=!1}},[]);var et=Q6(),Ot=et.registerPath,Be=et.unregisterPath,Ee=et.refreshOverflowKeys,be=et.isSubPathKey,Ue=et.getKeyPath,Ne=et.getKeys,Te=et.getSubPathKeys,Fe=s.useMemo(function(){return{registerPath:Ot,unregisterPath:Be}},[Ot,Be]),ct=s.useMemo(function(){return{isSubPathKey:be}},[be]);s.useEffect(function(){Ee(ot?vi:ie.slice(Pe+1).map(function(Rt){return Rt.key}))},[Pe,ot]);var xt=Jt(T||_&&((n=ie[0])===null||n===void 0?void 0:n.key),{value:T}),Ut=Q(xt,2),gt=Ut[0],en=Ut[1],tn=Gl(function(Rt){en(Rt)}),pn=Gl(function(){en(void 0)});s.useImperativeHandle(t,function(){return{list:$e.current,focus:function(ht){var Le,qe=Ne(),Ct=Bp(qe,we),Ht=Ct.elements,Tt=Ct.key2element,qt=Ct.element2key,vn=qh($e.current,Ht),In=gt??(vn[0]?qt.get(vn[0]):(Le=ie.find(function(Pn){return!Pn.props.disabled}))===null||Le===void 0?void 0:Le.key),an=Tt.get(In);if(In&&an){var wn;an==null||(wn=an.focus)===null||wn===void 0||wn.call(an,ht)}}}});var At=Jt(P||[],{value:N,postState:function(ht){return Array.isArray(ht)?ht:ht==null?vi:[ht]}}),Kn=Q(At,2),kn=Kn[0],Qe=Kn[1],mt=function(ht){if(M){var Le=ht.key,qe=kn.includes(Le),Ct;z?qe?Ct=kn.filter(function(Tt){return Tt!==Le}):Ct=[].concat(ue(kn),[Le]):Ct=[Le],Qe(Ct);var Ht=A(A({},ht),{},{selectedKeys:Ct});qe?j==null||j(Ht):k==null||k(Ht)}!z&&Ce.length&&Me!=="inline"&&ke(vi)},It=Gl(function(Rt){W==null||W(gd(Rt)),mt(Rt)}),Bt=Gl(function(Rt,ht){var Le=Ce.filter(function(Ct){return Ct!==Rt});if(ht)Le.push(Rt);else if(Me!=="inline"){var qe=Te(Rt);Le=Le.filter(function(Ct){return!qe.has(Ct)})}mo(Ce,Le,!0)||ke(Le,!0)}),un=function(ht,Le){var qe=Le??!Ce.includes(ht);Bt(ht,qe)},Er=q6(Me,gt,We,we,$e,Ne,Ue,en,un,de);s.useEffect(function(){ve(!0)},[]);var Fr=s.useMemo(function(){return{_internalRenderMenuItem:oe,_internalRenderSubMenuItem:se}},[oe,se]),er=Me!=="horizontal"||b?ie:ie.map(function(Rt,ht){return s.createElement(Vs,{key:Rt.key,overflowDisabled:ht>Pe},Rt)}),ur=s.createElement(fo,ce({id:y,ref:$e,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:fc,className:V(a,"".concat(a,"-root"),"".concat(a,"-").concat(Me),c,D(D({},"".concat(a,"-inline-collapsed"),ze),"".concat(a,"-rtl"),We),i),dir:g,style:l,role:"menu",tabIndex:d,data:er,renderRawItem:function(ht){return ht},renderRawRest:function(ht){var Le=ht.length,qe=Le?ie.slice(-Le):null;return s.createElement(Sf,{eventKey:Fp,title:q,disabled:ot,internalPopupClose:Le===0,popupClassName:te},qe)},maxCount:Me!=="horizontal"||b?fo.INVALIDATE:fo.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(ht){Ge(ht)},onKeyDown:Er},ae));return s.createElement(Uh.Provider,{value:Fr},s.createElement(CO.Provider,{value:we},s.createElement(Vs,{prefixCls:a,rootClassName:i,mode:Me,openKeys:Ce,rtl:We,disabled:v,motion:ge?K:null,defaultMotions:ge?X:null,activeKey:gt,onActive:tn,onInactive:pn,selectedKeys:kn,inlineIndent:F,subMenuOpenDelay:$,subMenuCloseDelay:w,forceSubMenuRender:O,builtinPlacements:Z,triggerSubMenuAction:re,getPopupContainer:J,itemIcon:ne,expandIcon:le,onItemClick:It,onOpenChange:Bt},s.createElement(EO.Provider,{value:ct},ur),s.createElement("div",{style:{display:"none"},"aria-hidden":!0},s.createElement($O.Provider,{value:Fe},ie)))))}),bl=$B;bl.Item=fc;bl.SubMenu=Sf;bl.ItemGroup=xf;bl.Divider=Zh;var wB={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};const EB=wB;var OB=function(t,n){return s.createElement($t,ce({},t,{ref:n,icon:EB}))},IB=s.forwardRef(OB);const PB=IB;var RB={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};const NB=RB;var TB=function(t,n){return s.createElement($t,ce({},t,{ref:n,icon:NB}))},MB=s.forwardRef(TB);const pd=MB,_B=e=>!isNaN(parseFloat(e))&&isFinite(e),zB=_B,TO=s.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var jB=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),kB=s.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:o,children:a,defaultCollapsed:i=!1,theme:l="dark",style:c={},collapsible:u=!1,reverseArrow:d=!1,width:f=200,collapsedWidth:m=80,zeroWidthTriggerStyle:g,breakpoint:y,onCollapse:h,onBreakpoint:C}=e,p=jB(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:v}=s.useContext(TO),[b,S]=s.useState("collapsed"in e?e.collapsed:i),[$,x]=s.useState(!1);s.useEffect(()=>{"collapsed"in e&&S(e.collapsed)},[e.collapsed]);const w=(R,M)=>{"collapsed"in e||S(R),h==null||h(R,M)},O=s.useRef();O.current=R=>{x(R.matches),C==null||C(R.matches),b!==R.matches&&w(R.matches,"responsive")},s.useEffect(()=>{function R(L){return O.current(L)}let M;if(typeof window<"u"){const{matchMedia:L}=window;if(L&&y&&y in LC){M=L(`screen and (max-width: ${LC[y]})`);try{M.addEventListener("change",R)}catch{M.addListener(R)}R(M)}}return()=>{try{M==null||M.removeEventListener("change",R)}catch{M==null||M.removeListener(R)}}},[y]),s.useEffect(()=>{const R=LB("ant-sider-");return v.addSider(R),()=>v.removeSider(R)},[]);const E=()=>{w(!b,"clickTrigger")},{getPrefixCls:I}=s.useContext(je),T=()=>{const R=I("layout-sider",n),M=Kt(p,["collapsed"]),L=b?m:f,z=zB(L)?`${L}px`:String(L),P=parseFloat(String(m||0))===0?s.createElement("span",{onClick:E,className:V(`${R}-zero-width-trigger`,`${R}-zero-width-trigger-${d?"right":"left"}`),style:g},o||s.createElement(PB,null)):null,j={expanded:d?s.createElement(Hs,null):s.createElement(pd,null),collapsed:d?s.createElement(pd,null):s.createElement(Hs,null)}[b?"collapsed":"expanded"],B=o!==null?P||s.createElement("div",{className:`${R}-trigger`,onClick:E,style:{width:z}},o||j):null,F=Object.assign(Object.assign({},c),{flex:`0 0 ${z}`,maxWidth:z,minWidth:z,width:z}),K=V(R,`${R}-${l}`,{[`${R}-collapsed`]:!!b,[`${R}-has-trigger`]:u&&o!==null&&!P,[`${R}-below`]:!!$,[`${R}-zero-width`]:parseFloat(z)===0},r);return s.createElement("aside",Object.assign({className:K},M,{style:F,ref:t}),s.createElement("div",{className:`${R}-children`},a),u||$&&P?B:null)},_=s.useMemo(()=>({siderCollapsed:b}),[b]);return s.createElement($f.Provider,{value:_},T())}),MO=kB;var DB={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};const BB=DB;var FB=function(t,n){return s.createElement($t,ce({},t,{ref:n,icon:BB}))},AB=s.forwardRef(FB);const Jh=AB;var HB=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,className:n,dashed:r}=e,o=HB(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=s.useContext(je),i=a("menu",t),l=V({[`${i}-item-divider-dashed`]:!!r},n);return s.createElement(Zh,Object.assign({className:l},o))},_O=VB,KB=s.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),vd=KB,WB=e=>{var t;const{className:n,children:r,icon:o,title:a,danger:i}=e,{prefixCls:l,firstLevel:c,direction:u,disableMenuItemTitleTooltip:d,inlineCollapsed:f}=s.useContext(vd),m=v=>{const b=s.createElement("span",{className:`${l}-title-content`},r);return(!o||s.isValidElement(r)&&r.type==="span")&&r&&v&&c&&typeof r=="string"?s.createElement("div",{className:`${l}-inline-collapsed-noicon`},r.charAt(0)):b},{siderCollapsed:g}=s.useContext($f);let y=a;typeof a>"u"?y=c?r:"":a===!1&&(y="");const h={title:y};!g&&!f&&(h.title=null,h.open=!1);const C=lr(r).length;let p=s.createElement(fc,Object.assign({},Kt(e,["title","icon","danger"]),{className:V({[`${l}-item-danger`]:i,[`${l}-item-only-child`]:(o?C+1:C)===1},n),title:typeof a=="string"?a:void 0}),Xn(o,{className:V(s.isValidElement(o)?(t=o.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),m(f));return d||(p=s.createElement(As,Object.assign({},h,{placement:u==="rtl"?"left":"right",overlayClassName:`${l}-inline-collapsed-tooltip`}),p)),p},zO=WB,GB=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:a}=e,i=s.useContext(vd),{prefixCls:l,inlineCollapsed:c,theme:u}=i,d=yl();let f;if(!r)f=c&&!d.length&&o&&typeof o=="string"?s.createElement("div",{className:`${l}-inline-collapsed-noicon`},o.charAt(0)):s.createElement("span",{className:`${l}-title-content`},o);else{const y=s.isValidElement(o)&&o.type==="span";f=s.createElement(s.Fragment,null,Xn(r,{className:V(s.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),y?o:s.createElement("span",{className:`${l}-title-content`},o))}const m=s.useMemo(()=>Object.assign(Object.assign({},i),{firstLevel:!1}),[i]),[g]=nc("Menu");return s.createElement(vd.Provider,{value:m},s.createElement(Sf,Object.assign({},Kt(e,["icon"]),{title:f,popupClassName:V(l,n,`${l}-${a||u}`),popupStyle:{zIndex:g}})))},jO=GB;var UB=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{if(t&&typeof t=="object"){const r=t,{label:o,children:a,key:i,type:l}=r,c=UB(r,["label","children","key","type"]),u=i??`tmp-${n}`;return a||l==="group"?l==="group"?s.createElement(xf,Object.assign({key:u},c,{title:o}),Hp(a)):s.createElement(jO,Object.assign({key:u},c,{title:o}),Hp(a)):l==="divider"?s.createElement(_O,Object.assign({key:u},c)):s.createElement(zO,Object.assign({key:u},c),o)}return null}).filter(t=>t)}function qB(e){return s.useMemo(()=>e&&Hp(e),[e])}var XB=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{children:n}=e,r=XB(e,["children"]),o=s.useContext(hd),a=s.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable,r.rootClassName]),i=QR(n),l=Sa(t,i?n.ref:null);return s.createElement(hd.Provider,{value:a},s.createElement(js,null,i?s.cloneElement(n,{ref:l}):n))}),YB=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:a,lineType:i,itemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${H(a)} ${i} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover, > ${t}-item-active, - > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},QF=YF,ZF=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical, - ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${H(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${H(n)})`}}}}},JF=ZF,kC=e=>Object.assign({},pa(e)),e6=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:a,itemBg:i,subMenuItemBg:l,itemSelectedBg:c,activeBarHeight:u,activeBarWidth:d,activeBarBorderWidth:f,motionDurationSlow:m,motionEaseInOut:g,motionEaseOut:y,itemPaddingInline:h,motionDurationMid:C,itemHoverColor:p,lineType:v,colorSplit:b,itemDisabledColor:S,dangerItemColor:$,dangerItemHoverColor:x,dangerItemSelectedColor:w,dangerItemActiveBg:O,dangerItemSelectedBg:E,popupBg:I,itemHoverBg:T,itemActiveBg:_,menuSubMenuBg:R,horizontalItemSelectedColor:M,horizontalItemSelectedBg:L,horizontalItemBorderRadius:z,horizontalItemHoverBg:P}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:i,[`&${n}-root:focus-visible`]:Object.assign({},kC(e)),[`${n}-item-group-title`]:{color:a},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},kC(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${S} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:p}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:T},"&:active":{backgroundColor:_}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:T},"&:active":{backgroundColor:_}}},[`${n}-item-danger`]:{color:$,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:x}},[`&${n}-item:active`]:{background:O}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:w},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:E}},[`&${n}-submenu > ${n}`]:{backgroundColor:R},[`&${n}-popup > ${n}`]:{backgroundColor:I},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:I},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:f,marginTop:e.calc(f).mul(-1).equal(),marginBottom:0,borderRadius:z,"&::after":{position:"absolute",insetInline:h,bottom:0,borderBottom:`${H(u)} solid transparent`,transition:`border-color ${m} ${g}`,content:'""'},"&:hover, &-active, &-open":{background:P,"&::after":{borderBottomWidth:u,borderBottomColor:M}},"&-selected":{color:M,backgroundColor:L,"&:hover":{backgroundColor:L},"&::after":{borderBottomWidth:u,borderBottomColor:M}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${H(f)} ${v} ${b}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${H(d)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${C} ${y}`,`opacity ${C} ${y}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:w}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${C} ${g}`,`opacity ${C} ${g}`].join(",")}}}}}},DC=e6,BC=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:a,marginXS:i,itemMarginBlock:l,itemWidth:c}=e,u=e.calc(a).add(o).add(i).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:H(n),paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:c},[`> ${t}-item, + > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},QB=YB,ZB=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical, + ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${H(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${H(n)})`}}}}},JB=ZB,kC=e=>Object.assign({},pa(e)),e8=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:a,itemBg:i,subMenuItemBg:l,itemSelectedBg:c,activeBarHeight:u,activeBarWidth:d,activeBarBorderWidth:f,motionDurationSlow:m,motionEaseInOut:g,motionEaseOut:y,itemPaddingInline:h,motionDurationMid:C,itemHoverColor:p,lineType:v,colorSplit:b,itemDisabledColor:S,dangerItemColor:$,dangerItemHoverColor:x,dangerItemSelectedColor:w,dangerItemActiveBg:O,dangerItemSelectedBg:E,popupBg:I,itemHoverBg:T,itemActiveBg:_,menuSubMenuBg:R,horizontalItemSelectedColor:M,horizontalItemSelectedBg:L,horizontalItemBorderRadius:z,horizontalItemHoverBg:P}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:i,[`&${n}-root:focus-visible`]:Object.assign({},kC(e)),[`${n}-item-group-title`]:{color:a},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},kC(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${S} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:p}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:T},"&:active":{backgroundColor:_}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:T},"&:active":{backgroundColor:_}}},[`${n}-item-danger`]:{color:$,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:x}},[`&${n}-item:active`]:{background:O}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:w},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:E}},[`&${n}-submenu > ${n}`]:{backgroundColor:R},[`&${n}-popup > ${n}`]:{backgroundColor:I},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:I},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:f,marginTop:e.calc(f).mul(-1).equal(),marginBottom:0,borderRadius:z,"&::after":{position:"absolute",insetInline:h,bottom:0,borderBottom:`${H(u)} solid transparent`,transition:`border-color ${m} ${g}`,content:'""'},"&:hover, &-active, &-open":{background:P,"&::after":{borderBottomWidth:u,borderBottomColor:M}},"&-selected":{color:M,backgroundColor:L,"&:hover":{backgroundColor:L},"&::after":{borderBottomWidth:u,borderBottomColor:M}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${H(f)} ${v} ${b}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${H(d)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${C} ${y}`,`opacity ${C} ${y}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:w}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${C} ${g}`,`opacity ${C} ${g}`].join(",")}}}}}},DC=e8,BC=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:a,marginXS:i,itemMarginBlock:l,itemWidth:c}=e,u=e.calc(a).add(o).add(i).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:H(n),paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:c},[`> ${t}-item, > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:H(n)},[`${t}-item-group-list ${t}-submenu-title, - ${t}-submenu-title`]:{paddingInlineEnd:u}}},t6=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:a,controlHeightLG:i,motionDurationMid:l,motionEaseOut:c,paddingXL:u,itemMarginInline:d,fontSizeLG:f,motionDurationSlow:m,paddingXS:g,boxShadowSecondary:y,collapsedWidth:h,collapsedIconSize:C}=e,p={height:r,lineHeight:H(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},BC(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},BC(e)),{boxShadow:y})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${H(e.calc(i).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${m}`,`background ${m}`,`padding ${l} ${c}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:p,[`& ${t}-item-group-title`]:{paddingInlineStart:u}},[`${t}-item`]:p}},{[`${t}-inline-collapsed`]:{width:h,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:f,textAlign:"center"}}},[`> ${t}-item, + ${t}-submenu-title`]:{paddingInlineEnd:u}}},t8=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:a,controlHeightLG:i,motionDurationMid:l,motionEaseOut:c,paddingXL:u,itemMarginInline:d,fontSizeLG:f,motionDurationSlow:m,paddingXS:g,boxShadowSecondary:y,collapsedWidth:h,collapsedIconSize:C}=e,p={height:r,lineHeight:H(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},BC(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},BC(e)),{boxShadow:y})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${H(e.calc(i).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${m}`,`background ${m}`,`padding ${l} ${c}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:p,[`& ${t}-item-group-title`]:{paddingInlineStart:u}},[`${t}-item`]:p}},{[`${t}-inline-collapsed`]:{width:h,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:f,textAlign:"center"}}},[`> ${t}-item, > ${t}-item-group > ${t}-item-group-list > ${t}-item, > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title, > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${H(e.calc(f).div(2).equal())} - ${H(d)})`,textOverflow:"clip",[` ${t}-submenu-arrow, ${t}-submenu-expand-icon - `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:C,lineHeight:H(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},ga),{paddingInline:g})}}]},n6=t6,FC=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:a,iconCls:i,iconSize:l,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding ${n} ${o}`].join(","),[`${t}-item-icon, ${i}`]:{minWidth:l,fontSize:l,transition:[`font-size ${r} ${a}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},nf()),[`&${t}-item-only-child`]:{[`> ${i}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},AC=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:a,menuArrowOffset:i}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:a,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(a).mul(.6).equal(),height:e.calc(a).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${H(e.calc(i).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${H(i)})`}}}}},r6=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:a,motionEaseInOut:i,paddingXS:l,padding:c,colorSplit:u,lineWidth:d,zIndexPopup:f,borderRadiusLG:m,subMenuItemBorderRadius:g,menuArrowSize:y,menuArrowOffset:h,lineType:C,groupTitleLineHeight:p,groupTitleFontSize:v}=e;return[{"":{[`${n}`]:Object.assign(Object.assign({},_o()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},zt(e)),_o()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${H(l)} ${H(c)}`,fontSize:v,lineHeight:p,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${i}`,`background ${o} ${i}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${i}`,`background ${o} ${i}`,`padding ${a} ${i}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${i}`,`padding ${o} ${i}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`,[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:u,borderStyle:C,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),FC(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${H(e.calc(r).mul(2).equal())} ${H(c)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:f,borderRadius:m,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:m},FC(e)),AC(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:g},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${i}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),AC(e)),{[`&-inline-collapsed ${n}-submenu-arrow, - &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${H(h)})`},"&::after":{transform:`rotate(45deg) translateX(${H(e.calc(h).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${H(e.calc(y).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${H(e.calc(h).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${H(h)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},o6=e=>{var t,n,r;const{colorPrimary:o,colorError:a,colorTextDisabled:i,colorErrorBg:l,colorText:c,colorTextDescription:u,colorBgContainer:d,colorFillAlter:f,colorFillContent:m,lineWidth:g,lineWidthBold:y,controlItemBgActive:h,colorBgTextHover:C,controlHeightLG:p,lineHeight:v,colorBgElevated:b,marginXXS:S,padding:$,fontSize:x,controlHeightSM:w,fontSizeLG:O,colorTextLightSolid:E,colorErrorHover:I}=e,T=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,_=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:g,R=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,M=new Dt(E).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:c,itemColor:c,colorItemTextHover:c,itemHoverColor:c,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:u,groupTitleColor:u,colorItemTextSelected:o,itemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:d,itemBg:d,colorItemBgHover:C,itemHoverBg:C,colorItemBgActive:m,itemActiveBg:h,colorSubItemBg:f,subMenuItemBg:f,colorItemBgSelected:h,itemSelectedBg:h,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:T,colorActiveBarHeight:y,activeBarHeight:y,colorActiveBarBorderSize:g,activeBarBorderWidth:_,colorItemTextDisabled:i,itemDisabledColor:i,colorDangerItemText:a,dangerItemColor:a,colorDangerItemTextHover:a,dangerItemHoverColor:a,colorDangerItemTextSelected:a,dangerItemSelectedColor:a,colorDangerItemBgActive:l,dangerItemActiveBg:l,colorDangerItemBgSelected:l,dangerItemSelectedBg:l,itemMarginInline:R,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:p,groupTitleLineHeight:v,collapsedWidth:p*2,popupBg:b,itemMarginBlock:S,itemPaddingInline:$,horizontalLineHeight:`${p*1.15}px`,iconSize:x,iconMarginInlineEnd:w-x,collapsedIconSize:O,groupTitleFontSize:x,darkItemDisabledColor:new Dt(E).setAlpha(.25).toRgbString(),darkItemColor:M,darkDangerItemColor:a,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:E,darkItemSelectedBg:o,darkDangerItemSelectedBg:a,darkItemHoverBg:"transparent",darkGroupTitleColor:M,darkItemHoverColor:E,darkDangerItemHoverColor:I,darkDangerItemSelectedColor:E,darkDangerItemActiveBg:a,itemWidth:T?`calc(100% + ${_}px)`:`calc(100% - ${R*2}px)`}},a6=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return _t("Menu",o=>{const{colorBgElevated:a,controlHeightLG:i,fontSize:l,darkItemColor:c,darkDangerItemColor:u,darkItemBg:d,darkSubMenuItemBg:f,darkItemSelectedColor:m,darkItemSelectedBg:g,darkDangerItemSelectedBg:y,darkItemHoverBg:h,darkGroupTitleColor:C,darkItemHoverColor:p,darkItemDisabledColor:v,darkDangerItemHoverColor:b,darkDangerItemSelectedColor:S,darkDangerItemActiveBg:$,popupBg:x,darkPopupBg:w}=o,O=o.calc(l).div(7).mul(5).equal(),E=bt(o,{menuArrowSize:O,menuHorizontalHeight:o.calc(i).mul(1.15).equal(),menuArrowOffset:o.calc(O).mul(.25).equal(),menuSubMenuBg:a,calc:o.calc,popupBg:x}),I=bt(E,{itemColor:c,itemHoverColor:p,groupTitleColor:C,itemSelectedColor:m,itemBg:d,popupBg:w,subMenuItemBg:f,itemActiveBg:"transparent",itemSelectedBg:g,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:h,itemDisabledColor:v,dangerItemColor:u,dangerItemHoverColor:b,dangerItemSelectedColor:S,dangerItemActiveBg:$,dangerItemSelectedBg:y,menuSubMenuBg:f,horizontalItemSelectedColor:m,horizontalItemSelectedBg:g});return[r6(E),QF(E),n6(E),DC(E,"light"),DC(I,"dark"),JF(E),Rh(E),ha(E,"slide-up"),ha(E,"slide-down"),cc(E,"zoom-big")]},o6,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}})(e,t)};var i6=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n;const r=s.useContext(hd),o=r||{},{getPrefixCls:a,getPopupContainer:i,direction:l,menu:c}=s.useContext(je),u=a(),{prefixCls:d,className:f,style:m,theme:g="light",expandIcon:y,_internalDisableMenuItemTitleTooltip:h,inlineCollapsed:C,siderCollapsed:p,items:v,children:b,rootClassName:S,mode:$,selectable:x,onClick:w,overflowedIndicatorPopupClassName:O}=e,E=i6(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),I=Kt(E,["collapsedWidth"]),T=qF(v)||b;(n=o.validator)===null||n===void 0||n.call(o,{mode:$});const _=Ft(function(){var U;w==null||w.apply(void 0,arguments),(U=o.onClick)===null||U===void 0||U.call(o)}),R=o.mode||$,M=x??o.selectable,L=s.useMemo(()=>p!==void 0?p:C,[C,p]),z={horizontal:{motionName:`${u}-slide-up`},inline:id(u),other:{motionName:`${u}-zoom-big`}},P=a("menu",d||o.prefixCls),N=gn(P),[k,j,B]=a6(P,N,!r),F=V(`${P}-${g}`,c==null?void 0:c.className,f),K=s.useMemo(()=>{var U,re;if(typeof y=="function"||jm(y))return y||null;if(typeof o.expandIcon=="function"||jm(o.expandIcon))return o.expandIcon||null;if(typeof(c==null?void 0:c.expandIcon)=="function"||jm(c==null?void 0:c.expandIcon))return(c==null?void 0:c.expandIcon)||null;const Z=(U=y??(o==null?void 0:o.expandIcon))!==null&&U!==void 0?U:c==null?void 0:c.expandIcon;return Xn(Z,{className:V(`${P}-submenu-expand-icon`,s.isValidElement(Z)?(re=Z.props)===null||re===void 0?void 0:re.className:void 0)})},[y,o==null?void 0:o.expandIcon,c==null?void 0:c.expandIcon,P]),X=s.useMemo(()=>({prefixCls:P,inlineCollapsed:L||!1,direction:l,firstLevel:!0,theme:g,mode:R,disableMenuItemTitleTooltip:h}),[P,L,l,h,g]);return k(s.createElement(hd.Provider,{value:null},s.createElement(vd.Provider,{value:X},s.createElement(bl,Object.assign({getPopupContainer:i,overflowedIndicator:s.createElement(Jh,null),overflowedIndicatorPopupClassName:V(P,`${P}-${g}`,O),mode:R,selectable:M,onClick:_},I,{inlineCollapsed:L,style:Object.assign(Object.assign({},c==null?void 0:c.style),m),className:F,prefixCls:P,direction:l,defaultMotions:z,expandIcon:K,ref:t,rootClassName:V(S,j,o.rootClassName,B,N)}),T))))}),s6=l6,mc=s.forwardRef((e,t)=>{const n=s.useRef(null),r=s.useContext($f);return s.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{var a;(a=n.current)===null||a===void 0||a.focus(o)}})),s.createElement(s6,Object.assign({ref:n},e,r))});mc.Item=zO;mc.SubMenu=jO;mc.Divider=_O;mc.ItemGroup=xf;const kO=mc,c6=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,a=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},u6=c6,d6=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:a,antCls:i,iconCls:l,motionDurationMid:c,paddingBlock:u,fontSize:d,dropdownEdgeChildPadding:f,colorTextDisabled:m,fontSizeIcon:g,controlPaddingHorizontal:y,colorBgElevated:h}=e;return[{[t]:Object.assign(Object.assign({},zt(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(a).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${i}-btn`]:{[`& > ${l}-down, & > ${i}-btn-icon > ${l}-down`]:{fontSize:g}},[`${t}-wrap`]:{position:"relative",[`${i}-btn > ${l}-down`]:{fontSize:g},[`${l}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${l}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomLeft, + `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:C,lineHeight:H(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},ga),{paddingInline:g})}}]},n8=t8,FC=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:a,iconCls:i,iconSize:l,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding ${n} ${o}`].join(","),[`${t}-item-icon, ${i}`]:{minWidth:l,fontSize:l,transition:[`font-size ${r} ${a}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},nf()),[`&${t}-item-only-child`]:{[`> ${i}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},AC=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:a,menuArrowOffset:i}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:a,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(a).mul(.6).equal(),height:e.calc(a).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${H(e.calc(i).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${H(i)})`}}}}},r8=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:a,motionEaseInOut:i,paddingXS:l,padding:c,colorSplit:u,lineWidth:d,zIndexPopup:f,borderRadiusLG:m,subMenuItemBorderRadius:g,menuArrowSize:y,menuArrowOffset:h,lineType:C,groupTitleLineHeight:p,groupTitleFontSize:v}=e;return[{"":{[`${n}`]:Object.assign(Object.assign({},_o()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},zt(e)),_o()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${H(l)} ${H(c)}`,fontSize:v,lineHeight:p,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${i}`,`background ${o} ${i}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${i}`,`background ${o} ${i}`,`padding ${a} ${i}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${i}`,`padding ${o} ${i}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`,[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:u,borderStyle:C,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),FC(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${H(e.calc(r).mul(2).equal())} ${H(c)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:f,borderRadius:m,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:m},FC(e)),AC(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:g},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${i}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),AC(e)),{[`&-inline-collapsed ${n}-submenu-arrow, + &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${H(h)})`},"&::after":{transform:`rotate(45deg) translateX(${H(e.calc(h).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${H(e.calc(y).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${H(e.calc(h).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${H(h)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},o8=e=>{var t,n,r;const{colorPrimary:o,colorError:a,colorTextDisabled:i,colorErrorBg:l,colorText:c,colorTextDescription:u,colorBgContainer:d,colorFillAlter:f,colorFillContent:m,lineWidth:g,lineWidthBold:y,controlItemBgActive:h,colorBgTextHover:C,controlHeightLG:p,lineHeight:v,colorBgElevated:b,marginXXS:S,padding:$,fontSize:x,controlHeightSM:w,fontSizeLG:O,colorTextLightSolid:E,colorErrorHover:I}=e,T=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,_=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:g,R=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,M=new Dt(E).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:c,itemColor:c,colorItemTextHover:c,itemHoverColor:c,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:u,groupTitleColor:u,colorItemTextSelected:o,itemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:d,itemBg:d,colorItemBgHover:C,itemHoverBg:C,colorItemBgActive:m,itemActiveBg:h,colorSubItemBg:f,subMenuItemBg:f,colorItemBgSelected:h,itemSelectedBg:h,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:T,colorActiveBarHeight:y,activeBarHeight:y,colorActiveBarBorderSize:g,activeBarBorderWidth:_,colorItemTextDisabled:i,itemDisabledColor:i,colorDangerItemText:a,dangerItemColor:a,colorDangerItemTextHover:a,dangerItemHoverColor:a,colorDangerItemTextSelected:a,dangerItemSelectedColor:a,colorDangerItemBgActive:l,dangerItemActiveBg:l,colorDangerItemBgSelected:l,dangerItemSelectedBg:l,itemMarginInline:R,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:p,groupTitleLineHeight:v,collapsedWidth:p*2,popupBg:b,itemMarginBlock:S,itemPaddingInline:$,horizontalLineHeight:`${p*1.15}px`,iconSize:x,iconMarginInlineEnd:w-x,collapsedIconSize:O,groupTitleFontSize:x,darkItemDisabledColor:new Dt(E).setAlpha(.25).toRgbString(),darkItemColor:M,darkDangerItemColor:a,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:E,darkItemSelectedBg:o,darkDangerItemSelectedBg:a,darkItemHoverBg:"transparent",darkGroupTitleColor:M,darkItemHoverColor:E,darkDangerItemHoverColor:I,darkDangerItemSelectedColor:E,darkDangerItemActiveBg:a,itemWidth:T?`calc(100% + ${_}px)`:`calc(100% - ${R*2}px)`}},a8=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return _t("Menu",o=>{const{colorBgElevated:a,controlHeightLG:i,fontSize:l,darkItemColor:c,darkDangerItemColor:u,darkItemBg:d,darkSubMenuItemBg:f,darkItemSelectedColor:m,darkItemSelectedBg:g,darkDangerItemSelectedBg:y,darkItemHoverBg:h,darkGroupTitleColor:C,darkItemHoverColor:p,darkItemDisabledColor:v,darkDangerItemHoverColor:b,darkDangerItemSelectedColor:S,darkDangerItemActiveBg:$,popupBg:x,darkPopupBg:w}=o,O=o.calc(l).div(7).mul(5).equal(),E=bt(o,{menuArrowSize:O,menuHorizontalHeight:o.calc(i).mul(1.15).equal(),menuArrowOffset:o.calc(O).mul(.25).equal(),menuSubMenuBg:a,calc:o.calc,popupBg:x}),I=bt(E,{itemColor:c,itemHoverColor:p,groupTitleColor:C,itemSelectedColor:m,itemBg:d,popupBg:w,subMenuItemBg:f,itemActiveBg:"transparent",itemSelectedBg:g,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:h,itemDisabledColor:v,dangerItemColor:u,dangerItemHoverColor:b,dangerItemSelectedColor:S,dangerItemActiveBg:$,dangerItemSelectedBg:y,menuSubMenuBg:f,horizontalItemSelectedColor:m,horizontalItemSelectedBg:g});return[r8(E),QB(E),n8(E),DC(E,"light"),DC(I,"dark"),JB(E),Rh(E),ha(E,"slide-up"),ha(E,"slide-down"),cc(E,"zoom-big")]},o8,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}})(e,t)};var i8=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n;const r=s.useContext(hd),o=r||{},{getPrefixCls:a,getPopupContainer:i,direction:l,menu:c}=s.useContext(je),u=a(),{prefixCls:d,className:f,style:m,theme:g="light",expandIcon:y,_internalDisableMenuItemTitleTooltip:h,inlineCollapsed:C,siderCollapsed:p,items:v,children:b,rootClassName:S,mode:$,selectable:x,onClick:w,overflowedIndicatorPopupClassName:O}=e,E=i8(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),I=Kt(E,["collapsedWidth"]),T=qB(v)||b;(n=o.validator)===null||n===void 0||n.call(o,{mode:$});const _=Ft(function(){var U;w==null||w.apply(void 0,arguments),(U=o.onClick)===null||U===void 0||U.call(o)}),R=o.mode||$,M=x??o.selectable,L=s.useMemo(()=>p!==void 0?p:C,[C,p]),z={horizontal:{motionName:`${u}-slide-up`},inline:id(u),other:{motionName:`${u}-zoom-big`}},P=a("menu",d||o.prefixCls),N=gn(P),[k,j,B]=a8(P,N,!r),F=V(`${P}-${g}`,c==null?void 0:c.className,f),K=s.useMemo(()=>{var U,re;if(typeof y=="function"||jm(y))return y||null;if(typeof o.expandIcon=="function"||jm(o.expandIcon))return o.expandIcon||null;if(typeof(c==null?void 0:c.expandIcon)=="function"||jm(c==null?void 0:c.expandIcon))return(c==null?void 0:c.expandIcon)||null;const Z=(U=y??(o==null?void 0:o.expandIcon))!==null&&U!==void 0?U:c==null?void 0:c.expandIcon;return Xn(Z,{className:V(`${P}-submenu-expand-icon`,s.isValidElement(Z)?(re=Z.props)===null||re===void 0?void 0:re.className:void 0)})},[y,o==null?void 0:o.expandIcon,c==null?void 0:c.expandIcon,P]),X=s.useMemo(()=>({prefixCls:P,inlineCollapsed:L||!1,direction:l,firstLevel:!0,theme:g,mode:R,disableMenuItemTitleTooltip:h}),[P,L,l,h,g]);return k(s.createElement(hd.Provider,{value:null},s.createElement(vd.Provider,{value:X},s.createElement(bl,Object.assign({getPopupContainer:i,overflowedIndicator:s.createElement(Jh,null),overflowedIndicatorPopupClassName:V(P,`${P}-${g}`,O),mode:R,selectable:M,onClick:_},I,{inlineCollapsed:L,style:Object.assign(Object.assign({},c==null?void 0:c.style),m),className:F,prefixCls:P,direction:l,defaultMotions:z,expandIcon:K,ref:t,rootClassName:V(S,j,o.rootClassName,B,N)}),T))))}),s8=l8,mc=s.forwardRef((e,t)=>{const n=s.useRef(null),r=s.useContext($f);return s.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{var a;(a=n.current)===null||a===void 0||a.focus(o)}})),s.createElement(s8,Object.assign({ref:n},e,r))});mc.Item=zO;mc.SubMenu=jO;mc.Divider=_O;mc.ItemGroup=xf;const kO=mc,c8=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,a=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},u8=c8,d8=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:a,antCls:i,iconCls:l,motionDurationMid:c,paddingBlock:u,fontSize:d,dropdownEdgeChildPadding:f,colorTextDisabled:m,fontSizeIcon:g,controlPaddingHorizontal:y,colorBgElevated:h}=e;return[{[t]:Object.assign(Object.assign({},zt(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(a).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${i}-btn`]:{[`& > ${l}-down, & > ${i}-btn-icon > ${l}-down`]:{fontSize:g}},[`${t}-wrap`]:{position:"relative",[`${i}-btn > ${l}-down`]:{fontSize:g},[`${l}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${l}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomLeft, &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomLeft, &${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottom, &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottom, @@ -256,8 +256,8 @@ html body { &${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottom, &${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Th},[`&${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topLeft, &${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-top, - &${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topRight`]:{animationName:_h}})},Gh(e,h,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:{[n]:Object.assign(Object.assign({padding:f,listStyleType:"none",backgroundColor:h,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},zo(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${H(u)} ${H(y)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:d,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${H(u)} ${H(y)}`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},zo(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:m,cursor:"not-allowed","&:hover":{color:m,backgroundColor:h,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${H(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:g,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${H(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(y).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:m,backgroundColor:h,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[ha(e,"slide-up"),ha(e,"slide-down"),cd(e,"move-up"),cd(e,"move-down"),cc(e,"zoom-big")]]},f6=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},bf({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),Wh(e)),m6=_t("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,a=bt(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[d6(a),u6(a)]},f6),e0=e=>{const{menu:t,arrow:n,prefixCls:r,children:o,trigger:a,disabled:i,dropdownRender:l,getPopupContainer:c,overlayClassName:u,rootClassName:d,overlayStyle:f,open:m,onOpenChange:g,visible:y,onVisibleChange:h,mouseEnterDelay:C=.15,mouseLeaveDelay:p=.1,autoAdjustOverflow:v=!0,placement:b="",overlay:S,transitionName:$}=e,{getPopupContainer:x,getPrefixCls:w,direction:O,dropdown:E}=s.useContext(je);Fo();const I=s.useMemo(()=>{const te=w();return $!==void 0?$:b.includes("top")?`${te}-slide-down`:`${te}-slide-up`},[w,b,$]),T=s.useMemo(()=>b?b.includes("Center")?b.slice(0,b.indexOf("Center")):b:O==="rtl"?"bottomRight":"bottomLeft",[b,O]),_=w("dropdown",r),R=gn(_),[M,L,z]=m6(_,R),[,P]=mn(),N=s.Children.only(o),k=Xn(N,{className:V(`${_}-trigger`,{[`${_}-rtl`]:O==="rtl"},N.props.className),disabled:i}),j=i?[]:a;let B;j&&j.includes("contextMenu")&&(B=!0);const[F,K]=Jt(!1,{value:m??y}),X=Ft(te=>{g==null||g(te,{source:"trigger"}),h==null||h(te),K(te)}),U=V(u,d,L,z,R,E==null?void 0:E.className,{[`${_}-rtl`]:O==="rtl"}),re=dO({arrowPointAtCenter:typeof n=="object"&&n.pointAtCenter,autoAdjustOverflow:v,offset:P.marginXXS,arrowWidth:n?P.sizePopupArrow:0,borderRadius:P.borderRadius}),Z=s.useCallback(()=>{t!=null&&t.selectable&&(t!=null&&t.multiple)||(g==null||g(!1,{source:"menu"}),K(!1))},[t==null?void 0:t.selectable,t==null?void 0:t.multiple]),ne=()=>{let te;return t!=null&&t.items?te=s.createElement(kO,Object.assign({},t)):typeof S=="function"?te=S():te=S,l&&(te=l(te)),te=s.Children.only(typeof te=="string"?s.createElement("span",null,te):te),s.createElement(LO,{prefixCls:`${_}-menu`,rootClassName:V(z,R),expandIcon:s.createElement("span",{className:`${_}-menu-submenu-arrow`},s.createElement(Hs,{className:`${_}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Z,validator:J=>{}},te)},[le,ee]=nc("Dropdown",f==null?void 0:f.zIndex);let q=s.createElement(bO,Object.assign({alignPoint:B},Kt(e,["rootClassName"]),{mouseEnterDelay:C,mouseLeaveDelay:p,visible:F,builtinPlacements:re,arrow:!!n,overlayClassName:U,prefixCls:_,getPopupContainer:c||x,transitionName:I,trigger:j,overlay:ne,placement:T,onVisibleChange:X,overlayStyle:Object.assign(Object.assign(Object.assign({},E==null?void 0:E.style),f),{zIndex:le})}),k);return le&&(q=s.createElement(lf.Provider,{value:ee},q)),M(q)};function g6(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const p6=AE(e0,"dropdown",e=>e,g6),v6=e=>s.createElement(p6,Object.assign({},e),s.createElement("span",null));e0._InternalPanelDoNotUseOrYouWillBeFired=v6;const DO=e0,BO=s.createContext(null),h6=BO.Provider,FO=s.createContext(null),y6=FO.Provider;var b6=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],AO=s.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,o=e.className,a=e.style,i=e.checked,l=e.disabled,c=e.defaultChecked,u=c===void 0?!1:c,d=e.type,f=d===void 0?"checkbox":d,m=e.title,g=e.onChange,y=tt(e,b6),h=s.useRef(null),C=Jt(u,{value:i}),p=Q(C,2),v=p[0],b=p[1];s.useImperativeHandle(t,function(){return{focus:function(w){var O;(O=h.current)===null||O===void 0||O.focus(w)},blur:function(){var w;(w=h.current)===null||w===void 0||w.blur()},input:h.current}});var S=V(r,o,D(D({},"".concat(r,"-checked"),v),"".concat(r,"-disabled"),l)),$=function(w){l||("checked"in e||b(w.target.checked),g==null||g({target:A(A({},e),{},{type:f,checked:w.target.checked}),stopPropagation:function(){w.stopPropagation()},preventDefault:function(){w.preventDefault()},nativeEvent:w.nativeEvent}))};return s.createElement("span",{className:S,title:m,style:a},s.createElement("input",ce({},y,{className:"".concat(r,"-input"),ref:h,onChange:$,disabled:l,checked:!!v,type:f})),s.createElement("span",{className:"".concat(r,"-inner")}))});const C6=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},zt(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},S6=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:a,motionDurationMid:i,motionEaseInOutCirc:l,colorBgContainer:c,colorBorder:u,lineWidth:d,colorBgContainerDisabled:f,colorTextDisabled:m,paddingXS:g,dotColorDisabled:y,lineType:h,radioColor:C,radioBgColor:p,calc:v}=e,b=`${t}-inner`,S=4,$=v(o).sub(v(S).mul(2)),x=v(1).mul(o).equal();return{[`${t}-wrapper`]:Object.assign(Object.assign({},zt(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${H(d)} ${h} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},zt(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &, - &:hover ${b}`]:{borderColor:r},[`${t}-input:focus-visible + ${b}`]:Object.assign({},pa(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:x,height:x,marginBlockStart:v(1).mul(o).div(-2).equal(),marginInlineStart:v(1).mul(o).div(-2).equal(),backgroundColor:C,borderBlockStart:0,borderInlineStart:0,borderRadius:x,transform:"scale(0)",opacity:0,transition:`all ${a} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:x,height:x,backgroundColor:c,borderColor:u,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${i}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[b]:{borderColor:r,backgroundColor:p,"&::after":{transform:`scale(${e.calc(e.dotSize).div(o).equal()})`,opacity:1,transition:`all ${a} ${l}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[b]:{backgroundColor:f,borderColor:u,cursor:"not-allowed","&::after":{backgroundColor:y}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:m,cursor:"not-allowed"},[`&${t}-checked`]:{[b]:{"&::after":{transform:`scale(${v($).div(o).equal({unit:!1})})`}}}},[`span${t} + *`]:{paddingInlineStart:g,paddingInlineEnd:g}})}},x6=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:a,colorBorder:i,motionDurationSlow:l,motionDurationMid:c,buttonPaddingInline:u,fontSize:d,buttonBg:f,fontSizeLG:m,controlHeightLG:g,controlHeightSM:y,paddingXS:h,borderRadius:C,borderRadiusSM:p,borderRadiusLG:v,buttonCheckedBg:b,buttonSolidCheckedColor:S,colorTextDisabled:$,colorBgContainerDisabled:x,buttonCheckedBgDisabled:w,buttonCheckedColorDisabled:O,colorPrimary:E,colorPrimaryHover:I,colorPrimaryActive:T,buttonSolidCheckedBg:_,buttonSolidCheckedHoverBg:R,buttonSolidCheckedActiveBg:M,calc:L}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:u,paddingBlock:0,color:t,fontSize:d,lineHeight:H(L(n).sub(L(o).mul(2)).equal()),background:f,border:`${H(o)} ${a} ${i}`,borderBlockStartWidth:L(o).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${c}`,`background ${c}`,`box-shadow ${c}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:L(o).mul(-1).equal(),insetInlineStart:L(o).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:i,transition:`background-color ${l}`,content:'""'}},"&:first-child":{borderInlineStart:`${H(o)} ${a} ${i}`,borderStartStartRadius:C,borderEndStartRadius:C},"&:last-child":{borderStartEndRadius:C,borderEndEndRadius:C},"&:first-child:last-child":{borderRadius:C},[`${r}-group-large &`]:{height:g,fontSize:m,lineHeight:H(L(g).sub(L(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v}},[`${r}-group-small &`]:{height:y,paddingInline:L(h).sub(o).equal(),paddingBlock:0,lineHeight:H(L(y).sub(L(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:p,borderEndStartRadius:p},"&:last-child":{borderStartEndRadius:p,borderEndEndRadius:p}},"&:hover":{position:"relative",color:E},"&:has(:focus-visible)":Object.assign({},pa(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:E,background:b,borderColor:E,"&::before":{backgroundColor:E},"&:first-child":{borderColor:E},"&:hover":{color:I,borderColor:I,"&::before":{backgroundColor:I}},"&:active":{color:T,borderColor:T,"&::before":{backgroundColor:T}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:S,background:_,borderColor:_,"&:hover":{color:S,background:R,borderColor:R},"&:active":{color:S,background:M,borderColor:M}},"&-disabled":{color:$,backgroundColor:x,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:$,backgroundColor:x,borderColor:i}},[`&-disabled${r}-button-wrapper-checked`]:{color:O,backgroundColor:w,borderColor:i,boxShadow:"none"}}}},$6=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:a,colorText:i,colorBgContainer:l,colorTextDisabled:c,controlItemBgActiveDisabled:u,colorTextLightSolid:d,colorPrimary:f,colorPrimaryHover:m,colorPrimaryActive:g,colorWhite:y}=e,h=4,C=a,p=t?C-h*2:C-(h+o)*2;return{radioSize:C,dotSize:p,dotColorDisabled:c,buttonSolidCheckedColor:d,buttonSolidCheckedBg:f,buttonSolidCheckedHoverBg:m,buttonSolidCheckedActiveBg:g,buttonBg:l,buttonCheckedBg:l,buttonColor:i,buttonCheckedBgDisabled:u,buttonCheckedColorDisabled:c,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r,radioColor:t?f:y,radioBgColor:t?l:f}},HO=_t("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${H(n)} ${t}`,a=bt(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[C6(a),S6(a),x6(a)]},$6,{unitless:{radioSize:!0,dotSize:!0}});var w6=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,r;const o=s.useContext(BO),a=s.useContext(FO),{getPrefixCls:i,direction:l,radio:c}=s.useContext(je),u=s.useRef(null),d=Br(t,u),{isFormItemInput:f}=s.useContext(Qn),m=M=>{var L,z;(L=e.onChange)===null||L===void 0||L.call(e,M),(z=o==null?void 0:o.onChange)===null||z===void 0||z.call(o,M)},{prefixCls:g,className:y,rootClassName:h,children:C,style:p,title:v}=e,b=w6(e,["prefixCls","className","rootClassName","children","style","title"]),S=i("radio",g),$=((o==null?void 0:o.optionType)||a)==="button",x=$?`${S}-button`:S,w=gn(S),[O,E,I]=HO(S,w),T=Object.assign({},b),_=s.useContext(Ao);o&&(T.name=o.name,T.onChange=m,T.checked=e.value===o.value,T.disabled=(n=T.disabled)!==null&&n!==void 0?n:o.disabled),T.disabled=(r=T.disabled)!==null&&r!==void 0?r:_;const R=V(`${x}-wrapper`,{[`${x}-wrapper-checked`]:T.checked,[`${x}-wrapper-disabled`]:T.disabled,[`${x}-wrapper-rtl`]:l==="rtl",[`${x}-wrapper-in-form-item`]:f},c==null?void 0:c.className,y,h,E,I,w);return O(s.createElement(ac,{component:"Radio",disabled:T.disabled},s.createElement("label",{className:R,style:Object.assign(Object.assign({},c==null?void 0:c.style),p),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:v},s.createElement(AO,Object.assign({},T,{className:V(T.className,!$&&df),type:"radio",prefixCls:x,ref:d})),C!==void 0?s.createElement("span",null,C):null)))},O6=s.forwardRef(E6),yd=O6,I6=s.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=s.useContext(je),[o,a]=Jt(e.defaultValue,{value:e.value}),i=M=>{const L=o,z=M.target.value;"value"in e||a(z);const{onChange:P}=e;P&&z!==L&&P(M)},{prefixCls:l,className:c,rootClassName:u,options:d,buttonStyle:f="outline",disabled:m,children:g,size:y,style:h,id:C,onMouseEnter:p,onMouseLeave:v,onFocus:b,onBlur:S}=e,$=n("radio",l),x=`${$}-group`,w=gn($),[O,E,I]=HO($,w);let T=g;d&&d.length>0&&(T=d.map(M=>typeof M=="string"||typeof M=="number"?s.createElement(yd,{key:M.toString(),prefixCls:$,disabled:m,value:M,checked:o===M},M):s.createElement(yd,{key:`radio-group-value-options-${M.value}`,prefixCls:$,disabled:M.disabled||m,value:M.value,checked:o===M.value,title:M.title,style:M.style,id:M.id,required:M.required},M.label)));const _=sr(y),R=V(x,`${x}-${f}`,{[`${x}-${_}`]:_,[`${x}-rtl`]:r==="rtl"},c,u,E,I,w);return O(s.createElement("div",Object.assign({},qn(e,{aria:!0,data:!0}),{className:R,style:h,onMouseEnter:p,onMouseLeave:v,onFocus:b,onBlur:S,id:C,ref:t}),s.createElement(h6,{value:{onChange:i,value:o,disabled:e.disabled,name:e.name,optionType:e.optionType}},T)))}),P6=s.memo(I6);var R6=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:n}=s.useContext(je),{prefixCls:r}=e,o=R6(e,["prefixCls"]),a=n("radio",r);return s.createElement(y6,{value:"button"},s.createElement(yd,Object.assign({prefixCls:a},o,{type:"radio",ref:t})))},T6=s.forwardRef(N6),wf=yd;wf.Button=T6;wf.Group=P6;wf.__ANT_RADIO=!0;const VO=wf;function t0(e){return bt(e,{inputAffixPadding:e.paddingXXS})}const n0=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:a,controlHeightLG:i,fontSizeLG:l,lineHeightLG:c,paddingSM:u,controlPaddingHorizontalSM:d,controlPaddingHorizontal:f,colorFillAlter:m,colorPrimaryHover:g,colorPrimary:y,controlOutlineWidth:h,controlOutline:C,colorErrorOutline:p,colorWarningOutline:v,colorBgContainer:b}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((a-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((i-l*c)/2*10)/10-o,paddingInline:u-o,paddingInlineSM:d-o,paddingInlineLG:f-o,addonBg:m,activeBorderColor:y,hoverBorderColor:g,activeShadow:`0 0 0 ${h}px ${C}`,errorActiveShadow:`0 0 0 ${h}px ${p}`,warningActiveShadow:`0 0 0 ${h}px ${v}`,hoverBg:b,activeBg:b,inputFontSize:n,inputFontSizeLG:l,inputFontSizeSM:n}},M6=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Ef=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},M6(bt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),r0=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),HC=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},r0(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),_6=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},r0(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Ef(e))}),HC(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),HC(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),VC=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),z6=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${H(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},VC(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),VC(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Ef(e))}})}),j6=(e,t)=>({"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled}},t)}),KO=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t==null?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),KC=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},KO(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),L6=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},KO(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Ef(e))}),KC(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),KC(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),WC=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),k6=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${H(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${H(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},WC(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),WC(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${H(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${H(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${H(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${H(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${H(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${H(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),D6=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),WO=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${H(t)} ${H(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},o0=e=>({padding:`${H(e.paddingBlockSM)} ${H(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),a0=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${H(e.paddingBlock)} ${H(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},D6(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},WO(e)),"&-sm":Object.assign({},o0(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),B6=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},WO(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},o0(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${H(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${H(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${H(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${H(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${H(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[`${t}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},_o()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[` + &${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topRight`]:{animationName:_h}})},Gh(e,h,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:{[n]:Object.assign(Object.assign({padding:f,listStyleType:"none",backgroundColor:h,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},zo(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${H(u)} ${H(y)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:d,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${H(u)} ${H(y)}`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},zo(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:m,cursor:"not-allowed","&:hover":{color:m,backgroundColor:h,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${H(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:g,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${H(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(y).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:m,backgroundColor:h,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[ha(e,"slide-up"),ha(e,"slide-down"),cd(e,"move-up"),cd(e,"move-down"),cc(e,"zoom-big")]]},f8=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},bf({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),Wh(e)),m8=_t("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,a=bt(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[d8(a),u8(a)]},f8),e0=e=>{const{menu:t,arrow:n,prefixCls:r,children:o,trigger:a,disabled:i,dropdownRender:l,getPopupContainer:c,overlayClassName:u,rootClassName:d,overlayStyle:f,open:m,onOpenChange:g,visible:y,onVisibleChange:h,mouseEnterDelay:C=.15,mouseLeaveDelay:p=.1,autoAdjustOverflow:v=!0,placement:b="",overlay:S,transitionName:$}=e,{getPopupContainer:x,getPrefixCls:w,direction:O,dropdown:E}=s.useContext(je);Fo();const I=s.useMemo(()=>{const te=w();return $!==void 0?$:b.includes("top")?`${te}-slide-down`:`${te}-slide-up`},[w,b,$]),T=s.useMemo(()=>b?b.includes("Center")?b.slice(0,b.indexOf("Center")):b:O==="rtl"?"bottomRight":"bottomLeft",[b,O]),_=w("dropdown",r),R=gn(_),[M,L,z]=m8(_,R),[,P]=mn(),N=s.Children.only(o),k=Xn(N,{className:V(`${_}-trigger`,{[`${_}-rtl`]:O==="rtl"},N.props.className),disabled:i}),j=i?[]:a;let B;j&&j.includes("contextMenu")&&(B=!0);const[F,K]=Jt(!1,{value:m??y}),X=Ft(te=>{g==null||g(te,{source:"trigger"}),h==null||h(te),K(te)}),U=V(u,d,L,z,R,E==null?void 0:E.className,{[`${_}-rtl`]:O==="rtl"}),re=dO({arrowPointAtCenter:typeof n=="object"&&n.pointAtCenter,autoAdjustOverflow:v,offset:P.marginXXS,arrowWidth:n?P.sizePopupArrow:0,borderRadius:P.borderRadius}),Z=s.useCallback(()=>{t!=null&&t.selectable&&(t!=null&&t.multiple)||(g==null||g(!1,{source:"menu"}),K(!1))},[t==null?void 0:t.selectable,t==null?void 0:t.multiple]),ne=()=>{let te;return t!=null&&t.items?te=s.createElement(kO,Object.assign({},t)):typeof S=="function"?te=S():te=S,l&&(te=l(te)),te=s.Children.only(typeof te=="string"?s.createElement("span",null,te):te),s.createElement(LO,{prefixCls:`${_}-menu`,rootClassName:V(z,R),expandIcon:s.createElement("span",{className:`${_}-menu-submenu-arrow`},s.createElement(Hs,{className:`${_}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Z,validator:J=>{}},te)},[le,ee]=nc("Dropdown",f==null?void 0:f.zIndex);let q=s.createElement(bO,Object.assign({alignPoint:B},Kt(e,["rootClassName"]),{mouseEnterDelay:C,mouseLeaveDelay:p,visible:F,builtinPlacements:re,arrow:!!n,overlayClassName:U,prefixCls:_,getPopupContainer:c||x,transitionName:I,trigger:j,overlay:ne,placement:T,onVisibleChange:X,overlayStyle:Object.assign(Object.assign(Object.assign({},E==null?void 0:E.style),f),{zIndex:le})}),k);return le&&(q=s.createElement(lf.Provider,{value:ee},q)),M(q)};function g8(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const p8=AE(e0,"dropdown",e=>e,g8),v8=e=>s.createElement(p8,Object.assign({},e),s.createElement("span",null));e0._InternalPanelDoNotUseOrYouWillBeFired=v8;const DO=e0,BO=s.createContext(null),h8=BO.Provider,FO=s.createContext(null),y8=FO.Provider;var b8=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],AO=s.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,o=e.className,a=e.style,i=e.checked,l=e.disabled,c=e.defaultChecked,u=c===void 0?!1:c,d=e.type,f=d===void 0?"checkbox":d,m=e.title,g=e.onChange,y=tt(e,b8),h=s.useRef(null),C=Jt(u,{value:i}),p=Q(C,2),v=p[0],b=p[1];s.useImperativeHandle(t,function(){return{focus:function(w){var O;(O=h.current)===null||O===void 0||O.focus(w)},blur:function(){var w;(w=h.current)===null||w===void 0||w.blur()},input:h.current}});var S=V(r,o,D(D({},"".concat(r,"-checked"),v),"".concat(r,"-disabled"),l)),$=function(w){l||("checked"in e||b(w.target.checked),g==null||g({target:A(A({},e),{},{type:f,checked:w.target.checked}),stopPropagation:function(){w.stopPropagation()},preventDefault:function(){w.preventDefault()},nativeEvent:w.nativeEvent}))};return s.createElement("span",{className:S,title:m,style:a},s.createElement("input",ce({},y,{className:"".concat(r,"-input"),ref:h,onChange:$,disabled:l,checked:!!v,type:f})),s.createElement("span",{className:"".concat(r,"-inner")}))});const C8=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},zt(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},S8=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:a,motionDurationMid:i,motionEaseInOutCirc:l,colorBgContainer:c,colorBorder:u,lineWidth:d,colorBgContainerDisabled:f,colorTextDisabled:m,paddingXS:g,dotColorDisabled:y,lineType:h,radioColor:C,radioBgColor:p,calc:v}=e,b=`${t}-inner`,S=4,$=v(o).sub(v(S).mul(2)),x=v(1).mul(o).equal();return{[`${t}-wrapper`]:Object.assign(Object.assign({},zt(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${H(d)} ${h} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},zt(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &, + &:hover ${b}`]:{borderColor:r},[`${t}-input:focus-visible + ${b}`]:Object.assign({},pa(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:x,height:x,marginBlockStart:v(1).mul(o).div(-2).equal(),marginInlineStart:v(1).mul(o).div(-2).equal(),backgroundColor:C,borderBlockStart:0,borderInlineStart:0,borderRadius:x,transform:"scale(0)",opacity:0,transition:`all ${a} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:x,height:x,backgroundColor:c,borderColor:u,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${i}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[b]:{borderColor:r,backgroundColor:p,"&::after":{transform:`scale(${e.calc(e.dotSize).div(o).equal()})`,opacity:1,transition:`all ${a} ${l}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[b]:{backgroundColor:f,borderColor:u,cursor:"not-allowed","&::after":{backgroundColor:y}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:m,cursor:"not-allowed"},[`&${t}-checked`]:{[b]:{"&::after":{transform:`scale(${v($).div(o).equal({unit:!1})})`}}}},[`span${t} + *`]:{paddingInlineStart:g,paddingInlineEnd:g}})}},x8=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:a,colorBorder:i,motionDurationSlow:l,motionDurationMid:c,buttonPaddingInline:u,fontSize:d,buttonBg:f,fontSizeLG:m,controlHeightLG:g,controlHeightSM:y,paddingXS:h,borderRadius:C,borderRadiusSM:p,borderRadiusLG:v,buttonCheckedBg:b,buttonSolidCheckedColor:S,colorTextDisabled:$,colorBgContainerDisabled:x,buttonCheckedBgDisabled:w,buttonCheckedColorDisabled:O,colorPrimary:E,colorPrimaryHover:I,colorPrimaryActive:T,buttonSolidCheckedBg:_,buttonSolidCheckedHoverBg:R,buttonSolidCheckedActiveBg:M,calc:L}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:u,paddingBlock:0,color:t,fontSize:d,lineHeight:H(L(n).sub(L(o).mul(2)).equal()),background:f,border:`${H(o)} ${a} ${i}`,borderBlockStartWidth:L(o).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${c}`,`background ${c}`,`box-shadow ${c}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:L(o).mul(-1).equal(),insetInlineStart:L(o).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:i,transition:`background-color ${l}`,content:'""'}},"&:first-child":{borderInlineStart:`${H(o)} ${a} ${i}`,borderStartStartRadius:C,borderEndStartRadius:C},"&:last-child":{borderStartEndRadius:C,borderEndEndRadius:C},"&:first-child:last-child":{borderRadius:C},[`${r}-group-large &`]:{height:g,fontSize:m,lineHeight:H(L(g).sub(L(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v}},[`${r}-group-small &`]:{height:y,paddingInline:L(h).sub(o).equal(),paddingBlock:0,lineHeight:H(L(y).sub(L(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:p,borderEndStartRadius:p},"&:last-child":{borderStartEndRadius:p,borderEndEndRadius:p}},"&:hover":{position:"relative",color:E},"&:has(:focus-visible)":Object.assign({},pa(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:E,background:b,borderColor:E,"&::before":{backgroundColor:E},"&:first-child":{borderColor:E},"&:hover":{color:I,borderColor:I,"&::before":{backgroundColor:I}},"&:active":{color:T,borderColor:T,"&::before":{backgroundColor:T}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:S,background:_,borderColor:_,"&:hover":{color:S,background:R,borderColor:R},"&:active":{color:S,background:M,borderColor:M}},"&-disabled":{color:$,backgroundColor:x,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:$,backgroundColor:x,borderColor:i}},[`&-disabled${r}-button-wrapper-checked`]:{color:O,backgroundColor:w,borderColor:i,boxShadow:"none"}}}},$8=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:a,colorText:i,colorBgContainer:l,colorTextDisabled:c,controlItemBgActiveDisabled:u,colorTextLightSolid:d,colorPrimary:f,colorPrimaryHover:m,colorPrimaryActive:g,colorWhite:y}=e,h=4,C=a,p=t?C-h*2:C-(h+o)*2;return{radioSize:C,dotSize:p,dotColorDisabled:c,buttonSolidCheckedColor:d,buttonSolidCheckedBg:f,buttonSolidCheckedHoverBg:m,buttonSolidCheckedActiveBg:g,buttonBg:l,buttonCheckedBg:l,buttonColor:i,buttonCheckedBgDisabled:u,buttonCheckedColorDisabled:c,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r,radioColor:t?f:y,radioBgColor:t?l:f}},HO=_t("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${H(n)} ${t}`,a=bt(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[C8(a),S8(a),x8(a)]},$8,{unitless:{radioSize:!0,dotSize:!0}});var w8=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,r;const o=s.useContext(BO),a=s.useContext(FO),{getPrefixCls:i,direction:l,radio:c}=s.useContext(je),u=s.useRef(null),d=Br(t,u),{isFormItemInput:f}=s.useContext(Qn),m=M=>{var L,z;(L=e.onChange)===null||L===void 0||L.call(e,M),(z=o==null?void 0:o.onChange)===null||z===void 0||z.call(o,M)},{prefixCls:g,className:y,rootClassName:h,children:C,style:p,title:v}=e,b=w8(e,["prefixCls","className","rootClassName","children","style","title"]),S=i("radio",g),$=((o==null?void 0:o.optionType)||a)==="button",x=$?`${S}-button`:S,w=gn(S),[O,E,I]=HO(S,w),T=Object.assign({},b),_=s.useContext(Ao);o&&(T.name=o.name,T.onChange=m,T.checked=e.value===o.value,T.disabled=(n=T.disabled)!==null&&n!==void 0?n:o.disabled),T.disabled=(r=T.disabled)!==null&&r!==void 0?r:_;const R=V(`${x}-wrapper`,{[`${x}-wrapper-checked`]:T.checked,[`${x}-wrapper-disabled`]:T.disabled,[`${x}-wrapper-rtl`]:l==="rtl",[`${x}-wrapper-in-form-item`]:f},c==null?void 0:c.className,y,h,E,I,w);return O(s.createElement(ac,{component:"Radio",disabled:T.disabled},s.createElement("label",{className:R,style:Object.assign(Object.assign({},c==null?void 0:c.style),p),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:v},s.createElement(AO,Object.assign({},T,{className:V(T.className,!$&&df),type:"radio",prefixCls:x,ref:d})),C!==void 0?s.createElement("span",null,C):null)))},O8=s.forwardRef(E8),yd=O8,I8=s.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=s.useContext(je),[o,a]=Jt(e.defaultValue,{value:e.value}),i=M=>{const L=o,z=M.target.value;"value"in e||a(z);const{onChange:P}=e;P&&z!==L&&P(M)},{prefixCls:l,className:c,rootClassName:u,options:d,buttonStyle:f="outline",disabled:m,children:g,size:y,style:h,id:C,onMouseEnter:p,onMouseLeave:v,onFocus:b,onBlur:S}=e,$=n("radio",l),x=`${$}-group`,w=gn($),[O,E,I]=HO($,w);let T=g;d&&d.length>0&&(T=d.map(M=>typeof M=="string"||typeof M=="number"?s.createElement(yd,{key:M.toString(),prefixCls:$,disabled:m,value:M,checked:o===M},M):s.createElement(yd,{key:`radio-group-value-options-${M.value}`,prefixCls:$,disabled:M.disabled||m,value:M.value,checked:o===M.value,title:M.title,style:M.style,id:M.id,required:M.required},M.label)));const _=sr(y),R=V(x,`${x}-${f}`,{[`${x}-${_}`]:_,[`${x}-rtl`]:r==="rtl"},c,u,E,I,w);return O(s.createElement("div",Object.assign({},qn(e,{aria:!0,data:!0}),{className:R,style:h,onMouseEnter:p,onMouseLeave:v,onFocus:b,onBlur:S,id:C,ref:t}),s.createElement(h8,{value:{onChange:i,value:o,disabled:e.disabled,name:e.name,optionType:e.optionType}},T)))}),P8=s.memo(I8);var R8=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:n}=s.useContext(je),{prefixCls:r}=e,o=R8(e,["prefixCls"]),a=n("radio",r);return s.createElement(y8,{value:"button"},s.createElement(yd,Object.assign({prefixCls:a},o,{type:"radio",ref:t})))},T8=s.forwardRef(N8),wf=yd;wf.Button=T8;wf.Group=P8;wf.__ANT_RADIO=!0;const VO=wf;function t0(e){return bt(e,{inputAffixPadding:e.paddingXXS})}const n0=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:a,controlHeightLG:i,fontSizeLG:l,lineHeightLG:c,paddingSM:u,controlPaddingHorizontalSM:d,controlPaddingHorizontal:f,colorFillAlter:m,colorPrimaryHover:g,colorPrimary:y,controlOutlineWidth:h,controlOutline:C,colorErrorOutline:p,colorWarningOutline:v,colorBgContainer:b}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((a-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((i-l*c)/2*10)/10-o,paddingInline:u-o,paddingInlineSM:d-o,paddingInlineLG:f-o,addonBg:m,activeBorderColor:y,hoverBorderColor:g,activeShadow:`0 0 0 ${h}px ${C}`,errorActiveShadow:`0 0 0 ${h}px ${p}`,warningActiveShadow:`0 0 0 ${h}px ${v}`,hoverBg:b,activeBg:b,inputFontSize:n,inputFontSizeLG:l,inputFontSizeSM:n}},M8=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Ef=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},M8(bt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),r0=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),HC=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},r0(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),_8=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},r0(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Ef(e))}),HC(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),HC(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),VC=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),z8=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${H(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},VC(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),VC(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Ef(e))}})}),j8=(e,t)=>({"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled}},t)}),KO=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t==null?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),KC=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},KO(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),L8=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},KO(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Ef(e))}),KC(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),KC(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),WC=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),k8=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${H(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${H(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},WC(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),WC(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${H(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${H(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${H(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${H(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${H(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${H(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),D8=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),WO=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${H(t)} ${H(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},o0=e=>({padding:`${H(e.paddingBlockSM)} ${H(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),a0=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${H(e.paddingBlock)} ${H(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},D8(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},WO(e)),"&-sm":Object.assign({},o0(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),B8=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},WO(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},o0(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${H(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${H(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${H(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${H(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${H(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[`${t}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},_o()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[` & > ${t}-affix-wrapper, & > ${t}-number-affix-wrapper, & > ${n}-picker-range @@ -270,18 +270,18 @@ html body { & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child, & > ${n}-select:last-child > ${n}-select-selector, & > ${n}-cascader-picker:last-child ${t}, - & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},F6=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,a=16,i=o(n).sub(o(r).mul(2)).sub(a).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},zt(e)),a0(e)),_6(e)),L6(e)),j6(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},A6=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${H(e.inputAffixPadding)}`}}}},H6=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:a,colorIconHover:i,iconCls:l}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign({},a0(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),A6(e)),{[`${l}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:i}}})}},V6=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},zt(e)),B6(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},z6(e)),k6(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}}})})}},K6=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal({unit:!1})},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button, + & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},F8=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,a=16,i=o(n).sub(o(r).mul(2)).sub(a).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},zt(e)),a0(e)),_8(e)),L8(e)),j8(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},A8=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${H(e.inputAffixPadding)}`}}}},H8=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:a,colorIconHover:i,iconCls:l}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign({},a0(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),A8(e)),{[`${l}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:i}}})}},V8=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},zt(e)),B8(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},z8(e)),k8(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}}})})}},K8=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal({unit:!1})},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button, > ${t}, - ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},W6=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${r}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},G6=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},i0=_t("Input",e=>{const t=bt(e,t0(e));return[F6(t),W6(t),H6(t),V6(t),K6(t),G6(t),Sh(t)]},n0),U6=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:a}=e,i=V({[`${t}-lg`]:o==="large",[`${t}-sm`]:o==="small"}),l=V({[`${t}-circle`]:a==="circle",[`${t}-square`]:a==="square",[`${t}-round`]:a==="round"}),c=s.useMemo(()=>typeof o=="number"?{width:o,height:o,lineHeight:`${o}px`}:{},[o]);return s.createElement("span",{className:V(t,i,l,n),style:Object.assign(Object.assign({},c),r)})},Of=U6,q6=new yt("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),If=e=>({height:e,lineHeight:H(e)}),Ki=e=>Object.assign({width:e},If(e)),X6=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:q6,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Lm=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},If(e)),Y6=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:a}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},Ki(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},Ki(o)),[`${t}${t}-sm`]:Object.assign({},Ki(a))}},Q6=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:a,gradientFromColor:i,calc:l}=e;return{[`${r}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:n},Lm(t,l)),[`${r}-lg`]:Object.assign({},Lm(o,l)),[`${r}-sm`]:Object.assign({},Lm(a,l))}},GC=e=>Object.assign({width:e},If(e)),Z6=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:a}=e;return{[`${t}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:r,borderRadius:o},GC(a(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},GC(n)),{maxWidth:a(n).mul(4).equal(),maxHeight:a(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},km=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},Dm=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},If(e)),J6=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:a,gradientFromColor:i,calc:l}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:t,width:l(r).mul(2).equal(),minWidth:l(r).mul(2).equal()},Dm(r,l))},km(e,r,n)),{[`${n}-lg`]:Object.assign({},Dm(o,l))}),km(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},Dm(a,l))}),km(e,a,`${n}-sm`))},eA=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:a,skeletonInputCls:i,skeletonImageCls:l,controlHeight:c,controlHeightLG:u,controlHeightSM:d,gradientFromColor:f,padding:m,marginSM:g,borderRadius:y,titleHeight:h,blockRadius:C,paragraphLiHeight:p,controlHeightXS:v,paragraphMarginTop:b}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:m,verticalAlign:"top",[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},Ki(c)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},Ki(u)),[`${n}-sm`]:Object.assign({},Ki(d))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${r}`]:{width:"100%",height:h,background:f,borderRadius:C,[`+ ${o}`]:{marginBlockStart:d}},[`${o}`]:{padding:0,"> li":{width:"100%",height:p,listStyle:"none",background:f,borderRadius:C,"+ li":{marginBlockStart:v}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:y}}},[`${t}-with-avatar ${t}-content`]:{[`${r}`]:{marginBlockStart:g,[`+ ${o}`]:{marginBlockStart:b}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},J6(e)),Y6(e)),Q6(e)),Z6(e)),[`${t}${t}-block`]:{width:"100%",[`${a}`]:{width:"100%"},[`${i}`]:{width:"100%"}},[`${t}${t}-active`]:{[` + ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},W8=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${r}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},G8=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},i0=_t("Input",e=>{const t=bt(e,t0(e));return[F8(t),W8(t),H8(t),V8(t),K8(t),G8(t),Sh(t)]},n0),U8=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:a}=e,i=V({[`${t}-lg`]:o==="large",[`${t}-sm`]:o==="small"}),l=V({[`${t}-circle`]:a==="circle",[`${t}-square`]:a==="square",[`${t}-round`]:a==="round"}),c=s.useMemo(()=>typeof o=="number"?{width:o,height:o,lineHeight:`${o}px`}:{},[o]);return s.createElement("span",{className:V(t,i,l,n),style:Object.assign(Object.assign({},c),r)})},Of=U8,q8=new yt("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),If=e=>({height:e,lineHeight:H(e)}),Ki=e=>Object.assign({width:e},If(e)),X8=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:q8,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Lm=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},If(e)),Y8=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:a}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},Ki(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},Ki(o)),[`${t}${t}-sm`]:Object.assign({},Ki(a))}},Q8=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:a,gradientFromColor:i,calc:l}=e;return{[`${r}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:n},Lm(t,l)),[`${r}-lg`]:Object.assign({},Lm(o,l)),[`${r}-sm`]:Object.assign({},Lm(a,l))}},GC=e=>Object.assign({width:e},If(e)),Z8=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:a}=e;return{[`${t}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:r,borderRadius:o},GC(a(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},GC(n)),{maxWidth:a(n).mul(4).equal(),maxHeight:a(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},km=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},Dm=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},If(e)),J8=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:a,gradientFromColor:i,calc:l}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:t,width:l(r).mul(2).equal(),minWidth:l(r).mul(2).equal()},Dm(r,l))},km(e,r,n)),{[`${n}-lg`]:Object.assign({},Dm(o,l))}),km(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},Dm(a,l))}),km(e,a,`${n}-sm`))},eF=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:a,skeletonInputCls:i,skeletonImageCls:l,controlHeight:c,controlHeightLG:u,controlHeightSM:d,gradientFromColor:f,padding:m,marginSM:g,borderRadius:y,titleHeight:h,blockRadius:C,paragraphLiHeight:p,controlHeightXS:v,paragraphMarginTop:b}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:m,verticalAlign:"top",[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},Ki(c)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},Ki(u)),[`${n}-sm`]:Object.assign({},Ki(d))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${r}`]:{width:"100%",height:h,background:f,borderRadius:C,[`+ ${o}`]:{marginBlockStart:d}},[`${o}`]:{padding:0,"> li":{width:"100%",height:p,listStyle:"none",background:f,borderRadius:C,"+ li":{marginBlockStart:v}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:y}}},[`${t}-with-avatar ${t}-content`]:{[`${r}`]:{marginBlockStart:g,[`+ ${o}`]:{marginBlockStart:b}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},J8(e)),Y8(e)),Q8(e)),Z8(e)),[`${t}${t}-block`]:{width:"100%",[`${a}`]:{width:"100%"},[`${i}`]:{width:"100%"}},[`${t}${t}-active`]:{[` ${r}, ${o} > li, ${n}, ${a}, ${i}, ${l} - `]:Object.assign({},X6(e))}}},tA=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,o=n;return{color:r,colorGradientEnd:o,gradientFromColor:r,gradientToColor:o,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},Cl=_t("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=bt(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[eA(r)]},tA,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),nA=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:a="circle",size:i="default"}=e,{getPrefixCls:l}=s.useContext(je),c=l("skeleton",t),[u,d,f]=Cl(c),m=Kt(e,["prefixCls","className"]),g=V(c,`${c}-element`,{[`${c}-active`]:o},n,r,d,f);return u(s.createElement("div",{className:g},s.createElement(Of,Object.assign({prefixCls:`${c}-avatar`,shape:a,size:i},m))))},rA=nA,oA=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:a=!1,size:i="default"}=e,{getPrefixCls:l}=s.useContext(je),c=l("skeleton",t),[u,d,f]=Cl(c),m=Kt(e,["prefixCls"]),g=V(c,`${c}-element`,{[`${c}-active`]:o,[`${c}-block`]:a},n,r,d,f);return u(s.createElement("div",{className:g},s.createElement(Of,Object.assign({prefixCls:`${c}-button`,size:i},m))))},aA=oA,iA="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",lA=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:a}=e,{getPrefixCls:i}=s.useContext(je),l=i("skeleton",t),[c,u,d]=Cl(l),f=V(l,`${l}-element`,{[`${l}-active`]:a},n,r,u,d);return c(s.createElement("div",{className:f},s.createElement("div",{className:V(`${l}-image`,n),style:o},s.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${l}-image-svg`},s.createElement("path",{d:iA,className:`${l}-image-path`})))))},sA=lA,cA=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:a,size:i="default"}=e,{getPrefixCls:l}=s.useContext(je),c=l("skeleton",t),[u,d,f]=Cl(c),m=Kt(e,["prefixCls"]),g=V(c,`${c}-element`,{[`${c}-active`]:o,[`${c}-block`]:a},n,r,d,f);return u(s.createElement("div",{className:g},s.createElement(Of,Object.assign({prefixCls:`${c}-input`,size:i},m))))},uA=cA;var dA={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"};const fA=dA;var mA=function(t,n){return s.createElement(Pt,ce({},t,{ref:n,icon:fA}))},gA=s.forwardRef(mA);const pA=gA,vA=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:a,children:i}=e,{getPrefixCls:l}=s.useContext(je),c=l("skeleton",t),[u,d,f]=Cl(c),m=V(c,`${c}-element`,{[`${c}-active`]:a},d,n,r,f),g=i??s.createElement(pA,null);return u(s.createElement("div",{className:m},s.createElement("div",{className:V(`${c}-image`,n),style:o},g)))},hA=vA,yA=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},bA=e=>{const{prefixCls:t,className:n,style:r,rows:o}=e,a=ue(Array(o)).map((i,l)=>s.createElement("li",{key:l,style:{width:yA(l,e)}}));return s.createElement("ul",{className:V(t,n),style:r},a)},CA=bA,SA=e=>{let{prefixCls:t,className:n,width:r,style:o}=e;return s.createElement("h3",{className:V(t,n),style:Object.assign({width:r},o)})},xA=SA;function Bm(e){return e&&typeof e=="object"?e:{}}function $A(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function wA(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function EA(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const Sl=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,style:a,children:i,avatar:l=!1,title:c=!0,paragraph:u=!0,active:d,round:f}=e,{getPrefixCls:m,direction:g,skeleton:y}=s.useContext(je),h=m("skeleton",t),[C,p,v]=Cl(h);if(n||!("loading"in e)){const b=!!l,S=!!c,$=!!u;let x;if(b){const E=Object.assign(Object.assign({prefixCls:`${h}-avatar`},$A(S,$)),Bm(l));x=s.createElement("div",{className:`${h}-header`},s.createElement(Of,Object.assign({},E)))}let w;if(S||$){let E;if(S){const T=Object.assign(Object.assign({prefixCls:`${h}-title`},wA(b,$)),Bm(c));E=s.createElement(xA,Object.assign({},T))}let I;if($){const T=Object.assign(Object.assign({prefixCls:`${h}-paragraph`},EA(b,S)),Bm(u));I=s.createElement(CA,Object.assign({},T))}w=s.createElement("div",{className:`${h}-content`},E,I)}const O=V(h,{[`${h}-with-avatar`]:b,[`${h}-active`]:d,[`${h}-rtl`]:g==="rtl",[`${h}-round`]:f},y==null?void 0:y.className,r,o,p,v);return C(s.createElement("div",{className:O,style:Object.assign(Object.assign({},y==null?void 0:y.style),a)},x,w))}return i??null};Sl.Button=aA;Sl.Avatar=rA;Sl.Input=uA;Sl.Image=sA;Sl.Node=hA;const OA=Sl;var IA={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};const PA=IA;var RA=function(t,n){return s.createElement(Pt,ce({},t,{ref:n,icon:PA}))},NA=s.forwardRef(RA);const TA=NA,Pf=s.createContext(null);var MA=function(t){var n=t.activeTabOffset,r=t.horizontal,o=t.rtl,a=t.indicator,i=a===void 0?{}:a,l=i.size,c=i.align,u=c===void 0?"center":c,d=s.useState(),f=Q(d,2),m=f[0],g=f[1],y=s.useRef(),h=G.useCallback(function(p){return typeof l=="function"?l(p):typeof l=="number"?l:p},[l]);function C(){It.cancel(y.current)}return s.useEffect(function(){var p={};if(n)if(r){p.width=h(n.width);var v=o?"right":"left";u==="start"&&(p[v]=n[v]),u==="center"&&(p[v]=n[v]+n.width/2,p.transform=o?"translateX(50%)":"translateX(-50%)"),u==="end"&&(p[v]=n[v]+n.width,p.transform="translateX(-100%)")}else p.height=h(n.height),u==="start"&&(p.top=n.top),u==="center"&&(p.top=n.top+n.height/2,p.transform="translateY(-50%)"),u==="end"&&(p.top=n.top+n.height,p.transform="translateY(-100%)");return C(),y.current=It(function(){g(p)}),C},[n,r,o,u,h]),{style:m}},UC={width:0,height:0,left:0,top:0};function _A(e,t,n){return s.useMemo(function(){for(var r,o=new Map,a=t.get((r=e[0])===null||r===void 0?void 0:r.key)||UC,i=a.left+a.width,l=0;lM?(_=I,x.current="x"):(_=T,x.current="y"),t(-_,-_)&&E.preventDefault()}var O=s.useRef(null);O.current={onTouchStart:b,onTouchMove:S,onTouchEnd:$,onWheel:w},s.useEffect(function(){function E(R){O.current.onTouchStart(R)}function I(R){O.current.onTouchMove(R)}function T(R){O.current.onTouchEnd(R)}function _(R){O.current.onWheel(R)}return document.addEventListener("touchmove",I,{passive:!1}),document.addEventListener("touchend",T,{passive:!1}),e.current.addEventListener("touchstart",E,{passive:!1}),e.current.addEventListener("wheel",_),function(){document.removeEventListener("touchmove",I),document.removeEventListener("touchend",T)}},[])}function GO(e){var t=s.useState(0),n=Q(t,2),r=n[0],o=n[1],a=s.useRef(0),i=s.useRef();return i.current=e,Zg(function(){var l;(l=i.current)===null||l===void 0||l.call(i)},[r]),function(){a.current===r&&(a.current+=1,o(a.current))}}function LA(e){var t=s.useRef([]),n=s.useState({}),r=Q(n,2),o=r[1],a=s.useRef(typeof e=="function"?e():e),i=GO(function(){var c=a.current;t.current.forEach(function(u){c=u(c)}),t.current=[],a.current=c,o({})});function l(c){t.current.push(c),i()}return[a.current,l]}var QC={width:0,height:0,left:0,top:0,right:0};function kA(e,t,n,r,o,a,i){var l=i.tabs,c=i.tabPosition,u=i.rtl,d,f,m;return["top","bottom"].includes(c)?(d="width",f=u?"right":"left",m=Math.abs(n)):(d="height",f="top",m=-n),s.useMemo(function(){if(!l.length)return[0,0];for(var g=l.length,y=g,h=0;hm+t){y=h-1;break}}for(var p=0,v=g-1;v>=0;v-=1){var b=e.get(l[v].key)||QC;if(b[f]=y?[0,0]:[p,y]},[e,t,r,o,a,m,c,l.map(function(g){return g.key}).join("_"),u])}function ZC(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var DA="TABS_DQ";function UO(e){return String(e).replace(/"/g,DA)}function qO(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var XO=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,a=e.style;return!r||r.showAdd===!1?null:s.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(o==null?void 0:o.addAriaLabel)||"Add tab",onClick:function(l){r.onEdit("add",{event:l})}},r.addIcon||"+")}),JC=s.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var a,i={};return at(o)==="object"&&!s.isValidElement(o)?i=o:i.right=o,n==="right"&&(a=i.right),n==="left"&&(a=i.left),a?s.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},a):null}),BA=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,a=e.locale,i=e.mobile,l=e.moreIcon,c=l===void 0?"More":l,u=e.moreTransitionName,d=e.style,f=e.className,m=e.editable,g=e.tabBarGutter,y=e.rtl,h=e.removeAriaLabel,C=e.onTabClick,p=e.getPopupContainer,v=e.popupClassName,b=s.useState(!1),S=Q(b,2),$=S[0],x=S[1],w=s.useState(null),O=Q(w,2),E=O[0],I=O[1],T="".concat(r,"-more-popup"),_="".concat(n,"-dropdown"),R=E!==null?"".concat(T,"-").concat(E):null,M=a==null?void 0:a.dropdownAriaLabel;function L(F,K){F.preventDefault(),F.stopPropagation(),m.onEdit("remove",{key:K,event:F})}var z=s.createElement(bl,{onClick:function(K){var X=K.key,U=K.domEvent;C(X,U),x(!1)},prefixCls:"".concat(_,"-menu"),id:T,tabIndex:-1,role:"listbox","aria-activedescendant":R,selectedKeys:[E],"aria-label":M!==void 0?M:"expanded dropdown"},o.map(function(F){var K=F.closable,X=F.disabled,U=F.closeIcon,re=F.key,Z=F.label,ne=qO(K,U,m,X);return s.createElement(fc,{key:re,id:"".concat(T,"-").concat(re),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(re),disabled:X},s.createElement("span",null,Z),ne&&s.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:"".concat(_,"-menu-item-remove"),onClick:function(ee){ee.stopPropagation(),L(ee,re)}},U||m.removeIcon||"×"))}));function P(F){for(var K=o.filter(function(ne){return!ne.disabled}),X=K.findIndex(function(ne){return ne.key===E})||0,U=K.length,re=0;rebe?"left":"right"})}),R=Q(_,2),M=R[0],L=R[1],z=qC(0,function(Ee,be){!T&&h&&h({direction:Ee>be?"top":"bottom"})}),P=Q(z,2),N=P[0],k=P[1],j=s.useState([0,0]),B=Q(j,2),F=B[0],K=B[1],X=s.useState([0,0]),U=Q(X,2),re=U[0],Z=U[1],ne=s.useState([0,0]),le=Q(ne,2),ee=le[0],q=le[1],te=s.useState([0,0]),J=Q(te,2),W=J[0],Y=J[1],de=LA(new Map),oe=Q(de,2),se=oe[0],ae=oe[1],ie=_A(b,se,re[0]),pe=Xc(F,T),me=Xc(re,T),ge=Xc(ee,T),ve=Xc(W,T),$e=peSe?Se:Ee}var Oe=s.useRef(null),ke=s.useState(),Ze=Q(ke,2),He=Ze[0],Ve=Ze[1];function it(){Ve(Date.now())}function Je(){Oe.current&&clearTimeout(Oe.current)}jA(w,function(Ee,be){function Ue(Ne,Te){Ne(function(Fe){var ct=Ce(Fe+Te);return ct})}return $e?(T?Ue(L,Ee):Ue(k,be),Je(),it(),!0):!1}),s.useEffect(function(){return Je(),He&&(Oe.current=setTimeout(function(){Ve(0)},100)),Je},[He]);var Ae=kA(ie,we,T?M:N,me,ge,ve,A(A({},e),{},{tabs:b})),lt=Q(Ae,2),ut=lt[0],St=lt[1],st=Ft(function(){var Ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i,be=ie.get(Ee)||{width:0,height:0,left:0,right:0,top:0};if(T){var Ue=M;l?be.rightM+we&&(Ue=be.right+be.width-we):be.left<-M?Ue=-be.left:be.left+be.width>-M+we&&(Ue=-(be.left+be.width-we)),k(0),L(Ce(Ue))}else{var Ne=N;be.top<-N?Ne=-be.top:be.top+be.height>-N+we&&(Ne=-(be.top+be.height-we)),L(0),k(Ce(Ne))}}),vt={};f==="top"||f==="bottom"?vt[l?"marginRight":"marginLeft"]=m:vt.marginTop=m;var nt=b.map(function(Ee,be){var Ue=Ee.key;return s.createElement(AA,{id:o,prefixCls:v,key:Ue,tab:Ee,style:be===0?void 0:vt,closable:Ee.closable,editable:u,active:Ue===i,renderWrapper:g,removeAriaLabel:d==null?void 0:d.removeAriaLabel,onClick:function(Te){y(Ue,Te)},onFocus:function(){st(Ue),it(),w.current&&(l||(w.current.scrollLeft=0),w.current.scrollTop=0)}})}),Me=function(){return ae(function(){var be,Ue=new Map,Ne=(be=O.current)===null||be===void 0?void 0:be.getBoundingClientRect();return b.forEach(function(Te){var Fe,ct=Te.key,xt=(Fe=O.current)===null||Fe===void 0?void 0:Fe.querySelector('[data-node-key="'.concat(UO(ct),'"]'));if(xt){var Ut=HA(xt,Ne),gt=Q(Ut,4),en=gt[0],tn=gt[1],pn=gt[2],At=gt[3];Ue.set(ct,{width:en,height:tn,left:pn,top:At})}}),Ue})};s.useEffect(function(){Me()},[b.map(function(Ee){return Ee.key}).join("_")]);var Xe=GO(function(){var Ee=hi(S),be=hi($),Ue=hi(x);K([Ee[0]-be[0]-Ue[0],Ee[1]-be[1]-Ue[1]]);var Ne=hi(I);q(Ne);var Te=hi(E);Y(Te);var Fe=hi(O);Z([Fe[0]-Ne[0],Fe[1]-Ne[1]]),Me()}),De=b.slice(0,ut),xe=b.slice(St+1),ze=[].concat(ue(De),ue(xe)),rt=ie.get(i),ye=MA({activeTabOffset:rt,horizontal:T,indicator:C,rtl:l}),Re=ye.style;s.useEffect(function(){st()},[i,_e,Se,ZC(rt),ZC(ie),T]),s.useEffect(function(){Xe()},[l]);var Pe=!!ze.length,Ge="".concat(v,"-nav-wrap"),ot,et,Et,Be;return T?l?(et=M>0,ot=M!==Se):(ot=M<0,et=M!==_e):(Et=N<0,Be=N!==_e),s.createElement(ir,{onResize:Xe},s.createElement("div",{ref:Sa(t,S),role:"tablist",className:V("".concat(v,"-nav"),n),style:r,onKeyDown:function(){it()}},s.createElement(JC,{ref:$,position:"left",extra:c,prefixCls:v}),s.createElement(ir,{onResize:Xe},s.createElement("div",{className:V(Ge,D(D(D(D({},"".concat(Ge,"-ping-left"),ot),"".concat(Ge,"-ping-right"),et),"".concat(Ge,"-ping-top"),Et),"".concat(Ge,"-ping-bottom"),Be)),ref:w},s.createElement(ir,{onResize:Xe},s.createElement("div",{ref:O,className:"".concat(v,"-nav-list"),style:{transform:"translate(".concat(M,"px, ").concat(N,"px)"),transition:He?"none":void 0}},nt,s.createElement(XO,{ref:I,prefixCls:v,locale:d,editable:u,style:A(A({},nt.length===0?void 0:vt),{},{visibility:Pe?"hidden":null})}),s.createElement("div",{className:V("".concat(v,"-ink-bar"),D({},"".concat(v,"-ink-bar-animated"),a.inkBar)),style:Re}))))),s.createElement(FA,ce({},e,{removeAriaLabel:d==null?void 0:d.removeAriaLabel,ref:E,prefixCls:v,tabs:ze,className:!Pe&&We,tabMoving:!!He})),s.createElement(JC,{ref:x,position:"right",extra:c,prefixCls:v})))}),YO=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,a=e.id,i=e.active,l=e.tabKey,c=e.children;return s.createElement("div",{id:a&&"".concat(a,"-panel-").concat(l),role:"tabpanel",tabIndex:i?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(l),"aria-hidden":!i,style:o,className:V(n,i&&"".concat(n,"-active"),r),ref:t},c)}),VA=["renderTabBar"],KA=["label","key"],WA=function(t){var n=t.renderTabBar,r=tt(t,VA),o=s.useContext(Pf),a=o.tabs;if(n){var i=A(A({},r),{},{panes:a.map(function(l){var c=l.label,u=l.key,d=tt(l,KA);return s.createElement(YO,ce({tab:c,key:u,tabKey:u},d))})});return n(i,eS)}return s.createElement(eS,r)},GA=["key","forceRender","style","className","destroyInactiveTabPane"],UA=function(t){var n=t.id,r=t.activeKey,o=t.animated,a=t.tabPosition,i=t.destroyInactiveTabPane,l=s.useContext(Pf),c=l.prefixCls,u=l.tabs,d=o.tabPane,f="".concat(c,"-tabpane");return s.createElement("div",{className:V("".concat(c,"-content-holder"))},s.createElement("div",{className:V("".concat(c,"-content"),"".concat(c,"-content-").concat(a),D({},"".concat(c,"-content-animated"),d))},u.map(function(m){var g=m.key,y=m.forceRender,h=m.style,C=m.className,p=m.destroyInactiveTabPane,v=tt(m,GA),b=g===r;return s.createElement(ro,ce({key:g,visible:b,forceRender:y,removeOnLeave:!!(i||p),leavedClassName:"".concat(f,"-hidden")},o.tabPaneMotion),function(S,$){var x=S.style,w=S.className;return s.createElement(YO,ce({},v,{prefixCls:f,id:n,tabKey:g,animated:d,active:b,style:A(A({},h),x),className:V(C,w),ref:$}))})})))};function qA(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=A({inkBar:!0},at(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var XA=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],tS=0,YA=s.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,o=r===void 0?"rc-tabs":r,a=e.className,i=e.items,l=e.direction,c=e.activeKey,u=e.defaultActiveKey,d=e.editable,f=e.animated,m=e.tabPosition,g=m===void 0?"top":m,y=e.tabBarGutter,h=e.tabBarStyle,C=e.tabBarExtraContent,p=e.locale,v=e.moreIcon,b=e.moreTransitionName,S=e.destroyInactiveTabPane,$=e.renderTabBar,x=e.onChange,w=e.onTabClick,O=e.onTabScroll,E=e.getPopupContainer,I=e.popupClassName,T=e.indicator,_=tt(e,XA),R=s.useMemo(function(){return(i||[]).filter(function(Y){return Y&&at(Y)==="object"&&"key"in Y})},[i]),M=l==="rtl",L=qA(f),z=s.useState(!1),P=Q(z,2),N=P[0],k=P[1];s.useEffect(function(){k(Lh())},[]);var j=Jt(function(){var Y;return(Y=R[0])===null||Y===void 0?void 0:Y.key},{value:c,defaultValue:u}),B=Q(j,2),F=B[0],K=B[1],X=s.useState(function(){return R.findIndex(function(Y){return Y.key===F})}),U=Q(X,2),re=U[0],Z=U[1];s.useEffect(function(){var Y=R.findIndex(function(oe){return oe.key===F});if(Y===-1){var de;Y=Math.max(0,Math.min(re,R.length-1)),K((de=R[Y])===null||de===void 0?void 0:de.key)}Z(Y)},[R.map(function(Y){return Y.key}).join("_"),F,re]);var ne=Jt(null,{value:n}),le=Q(ne,2),ee=le[0],q=le[1];s.useEffect(function(){n||(q("rc-tabs-".concat(tS)),tS+=1)},[]);function te(Y,de){w==null||w(Y,de);var oe=Y!==F;K(Y),oe&&(x==null||x(Y))}var J={id:ee,activeKey:F,animated:L,tabPosition:g,rtl:M,mobile:N},W=A(A({},J),{},{editable:d,locale:p,moreIcon:v,moreTransitionName:b,tabBarGutter:y,onTabClick:te,onTabScroll:O,extra:C,style:h,panes:null,getPopupContainer:E,popupClassName:I,indicator:T});return s.createElement(Pf.Provider,{value:{tabs:R,prefixCls:o}},s.createElement("div",ce({ref:t,id:n,className:V(o,"".concat(o,"-").concat(g),D(D(D({},"".concat(o,"-mobile"),N),"".concat(o,"-editable"),d),"".concat(o,"-rtl"),M),a)},_),s.createElement(WA,ce({},W,{renderTabBar:$})),s.createElement(UA,ce({destroyInactiveTabPane:S},J,{animated:L}))))});const QA={motionAppear:!1,motionEnter:!0,motionLeave:!0};function ZA(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},QA),{motionName:va(e,"switch")})),n}var JA=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);ot)}function t5(e,t){if(e)return e;const n=lr(t).map(r=>{if(s.isValidElement(r)){const{key:o,props:a}=r,i=a||{},{tab:l}=i,c=JA(i,["tab"]);return Object.assign(Object.assign({key:String(o)},c),{label:l})}return null});return e5(n)}const n5=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[ha(e,"slide-up"),ha(e,"slide-down")]]},r5=n5,o5=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:a,itemSelectedColor:i}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${H(e.lineWidth)} ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:i,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:H(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${H(e.borderRadiusLG)} ${H(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${H(e.borderRadiusLG)} ${H(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:H(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${H(e.borderRadiusLG)} 0 0 ${H(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${H(e.borderRadiusLG)} ${H(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},a5=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},zt(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${H(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},ga),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${H(e.paddingXXS)} ${H(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},i5=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:a,verticalItemMargin:i,calc:l}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${H(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, + `]:Object.assign({},X8(e))}}},tF=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,o=n;return{color:r,colorGradientEnd:o,gradientFromColor:r,gradientToColor:o,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},Cl=_t("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=bt(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[eF(r)]},tF,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),nF=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:a="circle",size:i="default"}=e,{getPrefixCls:l}=s.useContext(je),c=l("skeleton",t),[u,d,f]=Cl(c),m=Kt(e,["prefixCls","className"]),g=V(c,`${c}-element`,{[`${c}-active`]:o},n,r,d,f);return u(s.createElement("div",{className:g},s.createElement(Of,Object.assign({prefixCls:`${c}-avatar`,shape:a,size:i},m))))},rF=nF,oF=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:a=!1,size:i="default"}=e,{getPrefixCls:l}=s.useContext(je),c=l("skeleton",t),[u,d,f]=Cl(c),m=Kt(e,["prefixCls"]),g=V(c,`${c}-element`,{[`${c}-active`]:o,[`${c}-block`]:a},n,r,d,f);return u(s.createElement("div",{className:g},s.createElement(Of,Object.assign({prefixCls:`${c}-button`,size:i},m))))},aF=oF,iF="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",lF=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:a}=e,{getPrefixCls:i}=s.useContext(je),l=i("skeleton",t),[c,u,d]=Cl(l),f=V(l,`${l}-element`,{[`${l}-active`]:a},n,r,u,d);return c(s.createElement("div",{className:f},s.createElement("div",{className:V(`${l}-image`,n),style:o},s.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${l}-image-svg`},s.createElement("path",{d:iF,className:`${l}-image-path`})))))},sF=lF,cF=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:a,size:i="default"}=e,{getPrefixCls:l}=s.useContext(je),c=l("skeleton",t),[u,d,f]=Cl(c),m=Kt(e,["prefixCls"]),g=V(c,`${c}-element`,{[`${c}-active`]:o,[`${c}-block`]:a},n,r,d,f);return u(s.createElement("div",{className:g},s.createElement(Of,Object.assign({prefixCls:`${c}-input`,size:i},m))))},uF=cF;var dF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"};const fF=dF;var mF=function(t,n){return s.createElement($t,ce({},t,{ref:n,icon:fF}))},gF=s.forwardRef(mF);const pF=gF,vF=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:a,children:i}=e,{getPrefixCls:l}=s.useContext(je),c=l("skeleton",t),[u,d,f]=Cl(c),m=V(c,`${c}-element`,{[`${c}-active`]:a},d,n,r,f),g=i??s.createElement(pF,null);return u(s.createElement("div",{className:m},s.createElement("div",{className:V(`${c}-image`,n),style:o},g)))},hF=vF,yF=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},bF=e=>{const{prefixCls:t,className:n,style:r,rows:o}=e,a=ue(Array(o)).map((i,l)=>s.createElement("li",{key:l,style:{width:yF(l,e)}}));return s.createElement("ul",{className:V(t,n),style:r},a)},CF=bF,SF=e=>{let{prefixCls:t,className:n,width:r,style:o}=e;return s.createElement("h3",{className:V(t,n),style:Object.assign({width:r},o)})},xF=SF;function Bm(e){return e&&typeof e=="object"?e:{}}function $F(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function wF(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function EF(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const Sl=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,style:a,children:i,avatar:l=!1,title:c=!0,paragraph:u=!0,active:d,round:f}=e,{getPrefixCls:m,direction:g,skeleton:y}=s.useContext(je),h=m("skeleton",t),[C,p,v]=Cl(h);if(n||!("loading"in e)){const b=!!l,S=!!c,$=!!u;let x;if(b){const E=Object.assign(Object.assign({prefixCls:`${h}-avatar`},$F(S,$)),Bm(l));x=s.createElement("div",{className:`${h}-header`},s.createElement(Of,Object.assign({},E)))}let w;if(S||$){let E;if(S){const T=Object.assign(Object.assign({prefixCls:`${h}-title`},wF(b,$)),Bm(c));E=s.createElement(xF,Object.assign({},T))}let I;if($){const T=Object.assign(Object.assign({prefixCls:`${h}-paragraph`},EF(b,S)),Bm(u));I=s.createElement(CF,Object.assign({},T))}w=s.createElement("div",{className:`${h}-content`},E,I)}const O=V(h,{[`${h}-with-avatar`]:b,[`${h}-active`]:d,[`${h}-rtl`]:g==="rtl",[`${h}-round`]:f},y==null?void 0:y.className,r,o,p,v);return C(s.createElement("div",{className:O,style:Object.assign(Object.assign({},y==null?void 0:y.style),a)},x,w))}return i??null};Sl.Button=aF;Sl.Avatar=rF;Sl.Input=uF;Sl.Image=sF;Sl.Node=hF;const OF=Sl;var IF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};const PF=IF;var RF=function(t,n){return s.createElement($t,ce({},t,{ref:n,icon:PF}))},NF=s.forwardRef(RF);const TF=NF,Pf=s.createContext(null);var MF=function(t){var n=t.activeTabOffset,r=t.horizontal,o=t.rtl,a=t.indicator,i=a===void 0?{}:a,l=i.size,c=i.align,u=c===void 0?"center":c,d=s.useState(),f=Q(d,2),m=f[0],g=f[1],y=s.useRef(),h=G.useCallback(function(p){return typeof l=="function"?l(p):typeof l=="number"?l:p},[l]);function C(){Pt.cancel(y.current)}return s.useEffect(function(){var p={};if(n)if(r){p.width=h(n.width);var v=o?"right":"left";u==="start"&&(p[v]=n[v]),u==="center"&&(p[v]=n[v]+n.width/2,p.transform=o?"translateX(50%)":"translateX(-50%)"),u==="end"&&(p[v]=n[v]+n.width,p.transform="translateX(-100%)")}else p.height=h(n.height),u==="start"&&(p.top=n.top),u==="center"&&(p.top=n.top+n.height/2,p.transform="translateY(-50%)"),u==="end"&&(p.top=n.top+n.height,p.transform="translateY(-100%)");return C(),y.current=Pt(function(){g(p)}),C},[n,r,o,u,h]),{style:m}},UC={width:0,height:0,left:0,top:0};function _F(e,t,n){return s.useMemo(function(){for(var r,o=new Map,a=t.get((r=e[0])===null||r===void 0?void 0:r.key)||UC,i=a.left+a.width,l=0;lM?(_=I,x.current="x"):(_=T,x.current="y"),t(-_,-_)&&E.preventDefault()}var O=s.useRef(null);O.current={onTouchStart:b,onTouchMove:S,onTouchEnd:$,onWheel:w},s.useEffect(function(){function E(R){O.current.onTouchStart(R)}function I(R){O.current.onTouchMove(R)}function T(R){O.current.onTouchEnd(R)}function _(R){O.current.onWheel(R)}return document.addEventListener("touchmove",I,{passive:!1}),document.addEventListener("touchend",T,{passive:!1}),e.current.addEventListener("touchstart",E,{passive:!1}),e.current.addEventListener("wheel",_),function(){document.removeEventListener("touchmove",I),document.removeEventListener("touchend",T)}},[])}function GO(e){var t=s.useState(0),n=Q(t,2),r=n[0],o=n[1],a=s.useRef(0),i=s.useRef();return i.current=e,Zg(function(){var l;(l=i.current)===null||l===void 0||l.call(i)},[r]),function(){a.current===r&&(a.current+=1,o(a.current))}}function LF(e){var t=s.useRef([]),n=s.useState({}),r=Q(n,2),o=r[1],a=s.useRef(typeof e=="function"?e():e),i=GO(function(){var c=a.current;t.current.forEach(function(u){c=u(c)}),t.current=[],a.current=c,o({})});function l(c){t.current.push(c),i()}return[a.current,l]}var QC={width:0,height:0,left:0,top:0,right:0};function kF(e,t,n,r,o,a,i){var l=i.tabs,c=i.tabPosition,u=i.rtl,d,f,m;return["top","bottom"].includes(c)?(d="width",f=u?"right":"left",m=Math.abs(n)):(d="height",f="top",m=-n),s.useMemo(function(){if(!l.length)return[0,0];for(var g=l.length,y=g,h=0;hm+t){y=h-1;break}}for(var p=0,v=g-1;v>=0;v-=1){var b=e.get(l[v].key)||QC;if(b[f]=y?[0,0]:[p,y]},[e,t,r,o,a,m,c,l.map(function(g){return g.key}).join("_"),u])}function ZC(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var DF="TABS_DQ";function UO(e){return String(e).replace(/"/g,DF)}function qO(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var XO=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,a=e.style;return!r||r.showAdd===!1?null:s.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(o==null?void 0:o.addAriaLabel)||"Add tab",onClick:function(l){r.onEdit("add",{event:l})}},r.addIcon||"+")}),JC=s.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var a,i={};return at(o)==="object"&&!s.isValidElement(o)?i=o:i.right=o,n==="right"&&(a=i.right),n==="left"&&(a=i.left),a?s.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},a):null}),BF=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,a=e.locale,i=e.mobile,l=e.moreIcon,c=l===void 0?"More":l,u=e.moreTransitionName,d=e.style,f=e.className,m=e.editable,g=e.tabBarGutter,y=e.rtl,h=e.removeAriaLabel,C=e.onTabClick,p=e.getPopupContainer,v=e.popupClassName,b=s.useState(!1),S=Q(b,2),$=S[0],x=S[1],w=s.useState(null),O=Q(w,2),E=O[0],I=O[1],T="".concat(r,"-more-popup"),_="".concat(n,"-dropdown"),R=E!==null?"".concat(T,"-").concat(E):null,M=a==null?void 0:a.dropdownAriaLabel;function L(F,K){F.preventDefault(),F.stopPropagation(),m.onEdit("remove",{key:K,event:F})}var z=s.createElement(bl,{onClick:function(K){var X=K.key,U=K.domEvent;C(X,U),x(!1)},prefixCls:"".concat(_,"-menu"),id:T,tabIndex:-1,role:"listbox","aria-activedescendant":R,selectedKeys:[E],"aria-label":M!==void 0?M:"expanded dropdown"},o.map(function(F){var K=F.closable,X=F.disabled,U=F.closeIcon,re=F.key,Z=F.label,ne=qO(K,U,m,X);return s.createElement(fc,{key:re,id:"".concat(T,"-").concat(re),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(re),disabled:X},s.createElement("span",null,Z),ne&&s.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:"".concat(_,"-menu-item-remove"),onClick:function(ee){ee.stopPropagation(),L(ee,re)}},U||m.removeIcon||"×"))}));function P(F){for(var K=o.filter(function(ne){return!ne.disabled}),X=K.findIndex(function(ne){return ne.key===E})||0,U=K.length,re=0;rebe?"left":"right"})}),R=Q(_,2),M=R[0],L=R[1],z=qC(0,function(Ee,be){!T&&h&&h({direction:Ee>be?"top":"bottom"})}),P=Q(z,2),N=P[0],k=P[1],j=s.useState([0,0]),B=Q(j,2),F=B[0],K=B[1],X=s.useState([0,0]),U=Q(X,2),re=U[0],Z=U[1],ne=s.useState([0,0]),le=Q(ne,2),ee=le[0],q=le[1],te=s.useState([0,0]),J=Q(te,2),W=J[0],Y=J[1],de=LF(new Map),oe=Q(de,2),se=oe[0],ae=oe[1],ie=_F(b,se,re[0]),pe=Xc(F,T),me=Xc(re,T),ge=Xc(ee,T),ve=Xc(W,T),$e=peSe?Se:Ee}var Oe=s.useRef(null),ke=s.useState(),Ze=Q(ke,2),He=Ze[0],Ve=Ze[1];function it(){Ve(Date.now())}function Je(){Oe.current&&clearTimeout(Oe.current)}jF(w,function(Ee,be){function Ue(Ne,Te){Ne(function(Fe){var ct=Ce(Fe+Te);return ct})}return $e?(T?Ue(L,Ee):Ue(k,be),Je(),it(),!0):!1}),s.useEffect(function(){return Je(),He&&(Oe.current=setTimeout(function(){Ve(0)},100)),Je},[He]);var Ae=kF(ie,we,T?M:N,me,ge,ve,A(A({},e),{},{tabs:b})),lt=Q(Ae,2),ut=lt[0],St=lt[1],st=Ft(function(){var Ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i,be=ie.get(Ee)||{width:0,height:0,left:0,right:0,top:0};if(T){var Ue=M;l?be.rightM+we&&(Ue=be.right+be.width-we):be.left<-M?Ue=-be.left:be.left+be.width>-M+we&&(Ue=-(be.left+be.width-we)),k(0),L(Ce(Ue))}else{var Ne=N;be.top<-N?Ne=-be.top:be.top+be.height>-N+we&&(Ne=-(be.top+be.height-we)),L(0),k(Ce(Ne))}}),vt={};f==="top"||f==="bottom"?vt[l?"marginRight":"marginLeft"]=m:vt.marginTop=m;var nt=b.map(function(Ee,be){var Ue=Ee.key;return s.createElement(AF,{id:o,prefixCls:v,key:Ue,tab:Ee,style:be===0?void 0:vt,closable:Ee.closable,editable:u,active:Ue===i,renderWrapper:g,removeAriaLabel:d==null?void 0:d.removeAriaLabel,onClick:function(Te){y(Ue,Te)},onFocus:function(){st(Ue),it(),w.current&&(l||(w.current.scrollLeft=0),w.current.scrollTop=0)}})}),Me=function(){return ae(function(){var be,Ue=new Map,Ne=(be=O.current)===null||be===void 0?void 0:be.getBoundingClientRect();return b.forEach(function(Te){var Fe,ct=Te.key,xt=(Fe=O.current)===null||Fe===void 0?void 0:Fe.querySelector('[data-node-key="'.concat(UO(ct),'"]'));if(xt){var Ut=HF(xt,Ne),gt=Q(Ut,4),en=gt[0],tn=gt[1],pn=gt[2],At=gt[3];Ue.set(ct,{width:en,height:tn,left:pn,top:At})}}),Ue})};s.useEffect(function(){Me()},[b.map(function(Ee){return Ee.key}).join("_")]);var Xe=GO(function(){var Ee=hi(S),be=hi($),Ue=hi(x);K([Ee[0]-be[0]-Ue[0],Ee[1]-be[1]-Ue[1]]);var Ne=hi(I);q(Ne);var Te=hi(E);Y(Te);var Fe=hi(O);Z([Fe[0]-Ne[0],Fe[1]-Ne[1]]),Me()}),De=b.slice(0,ut),xe=b.slice(St+1),ze=[].concat(ue(De),ue(xe)),rt=ie.get(i),ye=MF({activeTabOffset:rt,horizontal:T,indicator:C,rtl:l}),Re=ye.style;s.useEffect(function(){st()},[i,_e,Se,ZC(rt),ZC(ie),T]),s.useEffect(function(){Xe()},[l]);var Pe=!!ze.length,Ge="".concat(v,"-nav-wrap"),ot,et,Ot,Be;return T?l?(et=M>0,ot=M!==Se):(ot=M<0,et=M!==_e):(Ot=N<0,Be=N!==_e),s.createElement(ir,{onResize:Xe},s.createElement("div",{ref:Sa(t,S),role:"tablist",className:V("".concat(v,"-nav"),n),style:r,onKeyDown:function(){it()}},s.createElement(JC,{ref:$,position:"left",extra:c,prefixCls:v}),s.createElement(ir,{onResize:Xe},s.createElement("div",{className:V(Ge,D(D(D(D({},"".concat(Ge,"-ping-left"),ot),"".concat(Ge,"-ping-right"),et),"".concat(Ge,"-ping-top"),Ot),"".concat(Ge,"-ping-bottom"),Be)),ref:w},s.createElement(ir,{onResize:Xe},s.createElement("div",{ref:O,className:"".concat(v,"-nav-list"),style:{transform:"translate(".concat(M,"px, ").concat(N,"px)"),transition:He?"none":void 0}},nt,s.createElement(XO,{ref:I,prefixCls:v,locale:d,editable:u,style:A(A({},nt.length===0?void 0:vt),{},{visibility:Pe?"hidden":null})}),s.createElement("div",{className:V("".concat(v,"-ink-bar"),D({},"".concat(v,"-ink-bar-animated"),a.inkBar)),style:Re}))))),s.createElement(FF,ce({},e,{removeAriaLabel:d==null?void 0:d.removeAriaLabel,ref:E,prefixCls:v,tabs:ze,className:!Pe&&We,tabMoving:!!He})),s.createElement(JC,{ref:x,position:"right",extra:c,prefixCls:v})))}),YO=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,a=e.id,i=e.active,l=e.tabKey,c=e.children;return s.createElement("div",{id:a&&"".concat(a,"-panel-").concat(l),role:"tabpanel",tabIndex:i?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(l),"aria-hidden":!i,style:o,className:V(n,i&&"".concat(n,"-active"),r),ref:t},c)}),VF=["renderTabBar"],KF=["label","key"],WF=function(t){var n=t.renderTabBar,r=tt(t,VF),o=s.useContext(Pf),a=o.tabs;if(n){var i=A(A({},r),{},{panes:a.map(function(l){var c=l.label,u=l.key,d=tt(l,KF);return s.createElement(YO,ce({tab:c,key:u,tabKey:u},d))})});return n(i,eS)}return s.createElement(eS,r)},GF=["key","forceRender","style","className","destroyInactiveTabPane"],UF=function(t){var n=t.id,r=t.activeKey,o=t.animated,a=t.tabPosition,i=t.destroyInactiveTabPane,l=s.useContext(Pf),c=l.prefixCls,u=l.tabs,d=o.tabPane,f="".concat(c,"-tabpane");return s.createElement("div",{className:V("".concat(c,"-content-holder"))},s.createElement("div",{className:V("".concat(c,"-content"),"".concat(c,"-content-").concat(a),D({},"".concat(c,"-content-animated"),d))},u.map(function(m){var g=m.key,y=m.forceRender,h=m.style,C=m.className,p=m.destroyInactiveTabPane,v=tt(m,GF),b=g===r;return s.createElement(ro,ce({key:g,visible:b,forceRender:y,removeOnLeave:!!(i||p),leavedClassName:"".concat(f,"-hidden")},o.tabPaneMotion),function(S,$){var x=S.style,w=S.className;return s.createElement(YO,ce({},v,{prefixCls:f,id:n,tabKey:g,animated:d,active:b,style:A(A({},h),x),className:V(C,w),ref:$}))})})))};function qF(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=A({inkBar:!0},at(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var XF=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],tS=0,YF=s.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,o=r===void 0?"rc-tabs":r,a=e.className,i=e.items,l=e.direction,c=e.activeKey,u=e.defaultActiveKey,d=e.editable,f=e.animated,m=e.tabPosition,g=m===void 0?"top":m,y=e.tabBarGutter,h=e.tabBarStyle,C=e.tabBarExtraContent,p=e.locale,v=e.moreIcon,b=e.moreTransitionName,S=e.destroyInactiveTabPane,$=e.renderTabBar,x=e.onChange,w=e.onTabClick,O=e.onTabScroll,E=e.getPopupContainer,I=e.popupClassName,T=e.indicator,_=tt(e,XF),R=s.useMemo(function(){return(i||[]).filter(function(Y){return Y&&at(Y)==="object"&&"key"in Y})},[i]),M=l==="rtl",L=qF(f),z=s.useState(!1),P=Q(z,2),N=P[0],k=P[1];s.useEffect(function(){k(Lh())},[]);var j=Jt(function(){var Y;return(Y=R[0])===null||Y===void 0?void 0:Y.key},{value:c,defaultValue:u}),B=Q(j,2),F=B[0],K=B[1],X=s.useState(function(){return R.findIndex(function(Y){return Y.key===F})}),U=Q(X,2),re=U[0],Z=U[1];s.useEffect(function(){var Y=R.findIndex(function(oe){return oe.key===F});if(Y===-1){var de;Y=Math.max(0,Math.min(re,R.length-1)),K((de=R[Y])===null||de===void 0?void 0:de.key)}Z(Y)},[R.map(function(Y){return Y.key}).join("_"),F,re]);var ne=Jt(null,{value:n}),le=Q(ne,2),ee=le[0],q=le[1];s.useEffect(function(){n||(q("rc-tabs-".concat(tS)),tS+=1)},[]);function te(Y,de){w==null||w(Y,de);var oe=Y!==F;K(Y),oe&&(x==null||x(Y))}var J={id:ee,activeKey:F,animated:L,tabPosition:g,rtl:M,mobile:N},W=A(A({},J),{},{editable:d,locale:p,moreIcon:v,moreTransitionName:b,tabBarGutter:y,onTabClick:te,onTabScroll:O,extra:C,style:h,panes:null,getPopupContainer:E,popupClassName:I,indicator:T});return s.createElement(Pf.Provider,{value:{tabs:R,prefixCls:o}},s.createElement("div",ce({ref:t,id:n,className:V(o,"".concat(o,"-").concat(g),D(D(D({},"".concat(o,"-mobile"),N),"".concat(o,"-editable"),d),"".concat(o,"-rtl"),M),a)},_),s.createElement(WF,ce({},W,{renderTabBar:$})),s.createElement(UF,ce({destroyInactiveTabPane:S},J,{animated:L}))))});const QF={motionAppear:!1,motionEnter:!0,motionLeave:!0};function ZF(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},QF),{motionName:va(e,"switch")})),n}var JF=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);ot)}function t5(e,t){if(e)return e;const n=lr(t).map(r=>{if(s.isValidElement(r)){const{key:o,props:a}=r,i=a||{},{tab:l}=i,c=JF(i,["tab"]);return Object.assign(Object.assign({key:String(o)},c),{label:l})}return null});return e5(n)}const n5=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[ha(e,"slide-up"),ha(e,"slide-down")]]},r5=n5,o5=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:a,itemSelectedColor:i}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${H(e.lineWidth)} ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:i,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:H(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${H(e.borderRadiusLG)} ${H(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${H(e.borderRadiusLG)} ${H(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:H(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${H(e.borderRadiusLG)} 0 0 ${H(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${H(e.borderRadiusLG)} ${H(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},a5=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},zt(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${H(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},ga),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${H(e.paddingXXS)} ${H(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},i5=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:a,verticalItemMargin:i,calc:l}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${H(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav, - > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:a,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:i},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:H(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${H(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${H(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},l5=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:a}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${H(e.borderRadius)} ${H(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${H(e.borderRadius)} ${H(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${H(e.borderRadius)} ${H(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${H(e.borderRadius)} 0 0 ${H(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},s5=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:a,horizontalItemPadding:i,itemSelectedColor:l,itemColor:c}=e,u=`${t}-tab`;return{[u]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:i,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},zo(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${u}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${u}-active ${u}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${u}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${u}-disabled ${u}-btn, &${u}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${u}-remove ${o}`]:{margin:0},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${u} + ${u}`]:{margin:{_skip_check_:!0,value:a}}}},c5=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:a}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:H(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:H(e.marginXS)},marginLeft:{_skip_check_:!0,value:H(a(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},u5=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:a,itemActiveColor:i,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},zt(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${H(e.paddingXS)}`,background:"transparent",border:`${H(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${H(e.borderRadiusLG)} ${H(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:a},"&:active, &:focus:not(:focus-visible)":{color:i}},zo(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),s5(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},d5=e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},f5=_t("Tabs",e=>{const t=bt(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${H(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${H(e.horizontalItemGutter)}`});return[l5(t),c5(t),i5(t),a5(t),o5(t),u5(t),r5(t)]},d5),m5=()=>null,g5=m5;var p5=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var t,n,r,o,a,i,l,c;const{type:u,className:d,rootClassName:f,size:m,onEdit:g,hideAdd:y,centered:h,addIcon:C,removeIcon:p,moreIcon:v,popupClassName:b,children:S,items:$,animated:x,style:w,indicatorSize:O,indicator:E}=e,I=p5(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:T}=I,{direction:_,tabs:R,getPrefixCls:M,getPopupContainer:L}=s.useContext(je),z=M("tabs",T),P=gn(z),[N,k,j]=f5(z,P);let B;u==="editable-card"&&(B={onEdit:(ne,le)=>{let{key:ee,event:q}=le;g==null||g(ne==="add"?q:ee,ne)},removeIcon:(t=p??(R==null?void 0:R.removeIcon))!==null&&t!==void 0?t:s.createElement(ni,null),addIcon:(C??(R==null?void 0:R.addIcon))||s.createElement(TA,null),showAdd:y!==!0});const F=M(),K=sr(m),X=t5($,S),U=ZA(z,x),re=Object.assign(Object.assign({},R==null?void 0:R.style),w),Z={align:(n=E==null?void 0:E.align)!==null&&n!==void 0?n:(r=R==null?void 0:R.indicator)===null||r===void 0?void 0:r.align,size:(l=(a=(o=E==null?void 0:E.size)!==null&&o!==void 0?o:O)!==null&&a!==void 0?a:(i=R==null?void 0:R.indicator)===null||i===void 0?void 0:i.size)!==null&&l!==void 0?l:R==null?void 0:R.indicatorSize};return N(s.createElement(YA,Object.assign({direction:_,getPopupContainer:L,moreTransitionName:`${F}-slide-up`},I,{items:X,className:V({[`${z}-${K}`]:K,[`${z}-card`]:["card","editable-card"].includes(u),[`${z}-editable-card`]:u==="editable-card",[`${z}-centered`]:h},R==null?void 0:R.className,d,f,k,j,P),popupClassName:V(b,k,j,P),style:re,editable:B,moreIcon:(c=v??(R==null?void 0:R.moreIcon))!==null&&c!==void 0?c:s.createElement(Jh,null),prefixCls:z,animated:U,indicator:Z})))};QO.TabPane=g5;const v5=QO;var h5=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var{prefixCls:t,className:n,hoverable:r=!0}=e,o=h5(e,["prefixCls","className","hoverable"]);const{getPrefixCls:a}=s.useContext(je),i=a("card",t),l=V(`${i}-grid`,n,{[`${i}-grid-hoverable`]:r});return s.createElement("div",Object.assign({},o,{className:l}))},ZO=y5,b5=e=>{const{antCls:t,componentCls:n,headerHeight:r,cardPaddingBase:o,tabsMarginBottom:a}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${H(o)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${H(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${H(e.borderRadiusLG)} ${H(e.borderRadiusLG)} 0 0`},_o()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},ga),{[` + > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:a,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:i},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:H(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${H(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${H(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},l5=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:a}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${H(e.borderRadius)} ${H(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${H(e.borderRadius)} ${H(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${H(e.borderRadius)} ${H(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${H(e.borderRadius)} 0 0 ${H(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},s5=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:a,horizontalItemPadding:i,itemSelectedColor:l,itemColor:c}=e,u=`${t}-tab`;return{[u]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:i,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},zo(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${u}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${u}-active ${u}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${u}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${u}-disabled ${u}-btn, &${u}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${u}-remove ${o}`]:{margin:0},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${u} + ${u}`]:{margin:{_skip_check_:!0,value:a}}}},c5=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:a}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:H(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:H(e.marginXS)},marginLeft:{_skip_check_:!0,value:H(a(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},u5=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:a,itemActiveColor:i,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},zt(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${H(e.paddingXS)}`,background:"transparent",border:`${H(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${H(e.borderRadiusLG)} ${H(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:a},"&:active, &:focus:not(:focus-visible)":{color:i}},zo(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),s5(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},d5=e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},f5=_t("Tabs",e=>{const t=bt(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${H(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${H(e.horizontalItemGutter)}`});return[l5(t),c5(t),i5(t),a5(t),o5(t),u5(t),r5(t)]},d5),m5=()=>null,g5=m5;var p5=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var t,n,r,o,a,i,l,c;const{type:u,className:d,rootClassName:f,size:m,onEdit:g,hideAdd:y,centered:h,addIcon:C,removeIcon:p,moreIcon:v,popupClassName:b,children:S,items:$,animated:x,style:w,indicatorSize:O,indicator:E}=e,I=p5(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:T}=I,{direction:_,tabs:R,getPrefixCls:M,getPopupContainer:L}=s.useContext(je),z=M("tabs",T),P=gn(z),[N,k,j]=f5(z,P);let B;u==="editable-card"&&(B={onEdit:(ne,le)=>{let{key:ee,event:q}=le;g==null||g(ne==="add"?q:ee,ne)},removeIcon:(t=p??(R==null?void 0:R.removeIcon))!==null&&t!==void 0?t:s.createElement(ni,null),addIcon:(C??(R==null?void 0:R.addIcon))||s.createElement(TF,null),showAdd:y!==!0});const F=M(),K=sr(m),X=t5($,S),U=ZF(z,x),re=Object.assign(Object.assign({},R==null?void 0:R.style),w),Z={align:(n=E==null?void 0:E.align)!==null&&n!==void 0?n:(r=R==null?void 0:R.indicator)===null||r===void 0?void 0:r.align,size:(l=(a=(o=E==null?void 0:E.size)!==null&&o!==void 0?o:O)!==null&&a!==void 0?a:(i=R==null?void 0:R.indicator)===null||i===void 0?void 0:i.size)!==null&&l!==void 0?l:R==null?void 0:R.indicatorSize};return N(s.createElement(YF,Object.assign({direction:_,getPopupContainer:L,moreTransitionName:`${F}-slide-up`},I,{items:X,className:V({[`${z}-${K}`]:K,[`${z}-card`]:["card","editable-card"].includes(u),[`${z}-editable-card`]:u==="editable-card",[`${z}-centered`]:h},R==null?void 0:R.className,d,f,k,j,P),popupClassName:V(b,k,j,P),style:re,editable:B,moreIcon:(c=v??(R==null?void 0:R.moreIcon))!==null&&c!==void 0?c:s.createElement(Jh,null),prefixCls:z,animated:U,indicator:Z})))};QO.TabPane=g5;const v5=QO;var h5=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var{prefixCls:t,className:n,hoverable:r=!0}=e,o=h5(e,["prefixCls","className","hoverable"]);const{getPrefixCls:a}=s.useContext(je),i=a("card",t),l=V(`${i}-grid`,n,{[`${i}-grid-hoverable`]:r});return s.createElement("div",Object.assign({},o,{className:l}))},ZO=y5,b5=e=>{const{antCls:t,componentCls:n,headerHeight:r,cardPaddingBase:o,tabsMarginBottom:a}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${H(o)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${H(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${H(e.borderRadiusLG)} ${H(e.borderRadiusLG)} 0 0`},_o()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},ga),{[` > ${n}-typography, > ${n}-typography-edit-content `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:a,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${H(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},C5=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:o}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:` @@ -290,13 +290,13 @@ html body { ${H(o)} ${H(o)} 0 0 ${n}, ${H(o)} 0 0 0 ${n} inset, 0 ${H(o)} 0 0 ${n} inset; - `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},S5=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:o,colorBorderSecondary:a,actionsBg:i}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:i,borderTop:`${H(e.lineWidth)} ${e.lineType} ${a}`,display:"flex",borderRadius:`0 0 ${H(e.borderRadiusLG)} ${H(e.borderRadiusLG)}`},_o()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:H(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:o,lineHeight:H(e.calc(o).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${H(e.lineWidth)} ${e.lineType} ${a}`}}})},x5=e=>Object.assign(Object.assign({margin:`${H(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},_o()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},ga),"&-description":{color:e.colorTextDescription}}),$5=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:r}=e;return{[`${t}-head`]:{padding:`0 ${H(n)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${H(e.padding)} ${H(n)}`}}},w5=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},E5=e=>{const{antCls:t,componentCls:n,cardShadow:r,cardHeadPadding:o,colorBorderSecondary:a,boxShadowTertiary:i,cardPaddingBase:l,extraColor:c}=e;return{[n]:Object.assign(Object.assign({},zt(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${n}-bordered)`]:{boxShadow:i},[`${n}-head`]:b5(e),[`${n}-extra`]:{marginInlineStart:"auto",color:c,fontWeight:"normal",fontSize:e.fontSize},[`${n}-body`]:Object.assign({padding:l,borderRadius:` 0 0 ${H(e.borderRadiusLG)} ${H(e.borderRadiusLG)}`},_o()),[`${n}-grid`]:C5(e),[`${n}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${t}-image-mask`]:{borderRadius:`${H(e.borderRadiusLG)} ${H(e.borderRadiusLG)} 0 0`}},[`${n}-actions`]:S5(e),[`${n}-meta`]:x5(e)}),[`${n}-bordered`]:{border:`${H(e.lineWidth)} ${e.lineType} ${a}`,[`${n}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${n}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:r}},[`${n}-contain-grid`]:{borderRadius:`${H(e.borderRadiusLG)} ${H(e.borderRadiusLG)} 0 0 `,[`${n}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${n}-loading) ${n}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${n}-contain-tabs`]:{[`> ${n}-head`]:{minHeight:0,[`${n}-head-title, ${n}-extra`]:{paddingTop:o}}},[`${n}-type-inner`]:$5(e),[`${n}-loading`]:w5(e),[`${n}-rtl`]:{direction:"rtl"}}},O5=e=>{const{componentCls:t,cardPaddingSM:n,headerHeightSM:r,headerFontSizeSM:o}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${H(n)}`,fontSize:o,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},I5=e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText}),P5=_t("Card",e=>{const t=bt(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[E5(t),O5(t)]},I5);var nS=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return s.createElement("ul",{className:t,style:r},n.map((o,a)=>{const i=`action-${a}`;return s.createElement("li",{style:{width:`${100/n.length}%`},key:i},s.createElement("span",null,o))}))},N5=s.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:a,extra:i,headStyle:l={},bodyStyle:c={},title:u,loading:d,bordered:f=!0,size:m,type:g,cover:y,actions:h,tabList:C,children:p,activeTabKey:v,defaultActiveTabKey:b,tabBarExtraContent:S,hoverable:$,tabProps:x={},classNames:w,styles:O}=e,E=nS(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:I,direction:T,card:_}=s.useContext(je),R=se=>{var ae;(ae=e.onTabChange)===null||ae===void 0||ae.call(e,se)},M=se=>{var ae;return V((ae=_==null?void 0:_.classNames)===null||ae===void 0?void 0:ae[se],w==null?void 0:w[se])},L=se=>{var ae;return Object.assign(Object.assign({},(ae=_==null?void 0:_.styles)===null||ae===void 0?void 0:ae[se]),O==null?void 0:O[se])},z=s.useMemo(()=>{let se=!1;return s.Children.forEach(p,ae=>{ae&&ae.type&&ae.type===ZO&&(se=!0)}),se},[p]),P=I("card",n),[N,k,j]=P5(P),B=s.createElement(OA,{loading:!0,active:!0,paragraph:{rows:4},title:!1},p),F=v!==void 0,K=Object.assign(Object.assign({},x),{[F?"activeKey":"defaultActiveKey"]:F?v:b,tabBarExtraContent:S});let X;const U=sr(m),re=!U||U==="default"?"large":U,Z=C?s.createElement(v5,Object.assign({size:re},K,{className:`${P}-head-tabs`,onChange:R,items:C.map(se=>{var{tab:ae}=se,ie=nS(se,["tab"]);return Object.assign({label:ae},ie)})})):null;if(u||i||Z){const se=V(`${P}-head`,M("header")),ae=V(`${P}-head-title`,M("title")),ie=V(`${P}-extra`,M("extra")),pe=Object.assign(Object.assign({},l),L("header"));X=s.createElement("div",{className:se,style:pe},s.createElement("div",{className:`${P}-head-wrapper`},u&&s.createElement("div",{className:ae,style:L("title")},u),i&&s.createElement("div",{className:ie,style:L("extra")},i)),Z)}const ne=V(`${P}-cover`,M("cover")),le=y?s.createElement("div",{className:ne,style:L("cover")},y):null,ee=V(`${P}-body`,M("body")),q=Object.assign(Object.assign({},c),L("body")),te=s.createElement("div",{className:ee,style:q},d?B:p),J=V(`${P}-actions`,M("actions")),W=h&&h.length?s.createElement(R5,{actionClasses:J,actionStyle:L("actions"),actions:h}):null,Y=Kt(E,["onTabChange"]),de=V(P,_==null?void 0:_.className,{[`${P}-loading`]:d,[`${P}-bordered`]:f,[`${P}-hoverable`]:$,[`${P}-contain-grid`]:z,[`${P}-contain-tabs`]:C&&C.length,[`${P}-${U}`]:U,[`${P}-type-${g}`]:!!g,[`${P}-rtl`]:T==="rtl"},r,o,k,j),oe=Object.assign(Object.assign({},_==null?void 0:_.style),a);return N(s.createElement("div",Object.assign({ref:t},Y,{className:de,style:oe}),X,le,te,W))}),T5=N5;var M5=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,className:n,avatar:r,title:o,description:a}=e,i=M5(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:l}=s.useContext(je),c=l("card",t),u=V(`${c}-meta`,n),d=r?s.createElement("div",{className:`${c}-meta-avatar`},r):null,f=o?s.createElement("div",{className:`${c}-meta-title`},o):null,m=a?s.createElement("div",{className:`${c}-meta-description`},a):null,g=f||m?s.createElement("div",{className:`${c}-meta-detail`},f,m):null;return s.createElement("div",Object.assign({},i,{className:u}),d,g)},z5=_5,l0=T5;l0.Grid=ZO;l0.Meta=z5;const TU=l0;function j5(e,t,n){var r=n||{},o=r.noTrailing,a=o===void 0?!1:o,i=r.noLeading,l=i===void 0?!1:i,c=r.debounceMode,u=c===void 0?void 0:c,d,f=!1,m=0;function g(){d&&clearTimeout(d)}function y(C){var p=C||{},v=p.upcomingOnly,b=v===void 0?!1:v;g(),f=!b}function h(){for(var C=arguments.length,p=new Array(C),v=0;ve?l?(m=Date.now(),a||(d=setTimeout(u?x:$,e))):$():a!==!0&&(d=setTimeout(u?x:$,u===void 0?e-S:e))}return h.cancel=y,h}function L5(e,t,n){var r=n||{},o=r.atBegin,a=o===void 0?!1:o;return j5(e,t,{debounceMode:a!==!1})}function hr(e,t){return e[t]}var k5=["children"];function JO(e,t){return"".concat(e,"-").concat(t)}function D5(e){return e&&e.type&&e.type.isTreeNode}function gc(e,t){return e??t}function il(e){var t=e||{},n=t.title,r=t._title,o=t.key,a=t.children,i=n||"title";return{title:i,_title:r||[i],key:o||"key",children:a||"children"}}function eI(e){function t(n){var r=lr(n);return r.map(function(o){if(!D5(o))return Zt(!o,"Tree/TreeNode can only accept TreeNode as children."),null;var a=o.key,i=o.props,l=i.children,c=tt(i,k5),u=A({key:a},c),d=t(l);return d.length&&(u.children=d),u}).filter(function(o){return o})}return t(e)}function Fm(e,t,n){var r=il(n),o=r._title,a=r.key,i=r.children,l=new Set(t===!0?[]:t),c=[];function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return d.map(function(m,g){for(var y=JO(f?f.pos:"0",g),h=gc(m[a],y),C,p=0;p1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,o=t.onProcessFinished,a=t.externalGetKey,i=t.childrenPropName,l=t.fieldNames,c=arguments.length>2?arguments[2]:void 0,u=a||c,d={},f={},m={posEntities:d,keyEntities:f};return n&&(m=n(m)||m),B5(e,function(g){var y=g.node,h=g.index,C=g.pos,p=g.key,v=g.parentPos,b=g.level,S=g.nodes,$={node:y,nodes:S,index:h,key:p,pos:C,level:b},x=gc(p,C);d[C]=$,f[x]=$,$.parent=d[v],$.parent&&($.parent.children=$.parent.children||[],$.parent.children.push($)),r&&r($,m)},{externalGetKey:u,childrenPropName:i,fieldNames:l}),o&&o(m),m}function ss(e,t){var n=t.expandedKeys,r=t.selectedKeys,o=t.loadedKeys,a=t.loadingKeys,i=t.checkedKeys,l=t.halfCheckedKeys,c=t.dragOverNodeKey,u=t.dropPosition,d=t.keyEntities,f=hr(d,e),m={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:o.indexOf(e)!==-1,loading:a.indexOf(e)!==-1,checked:i.indexOf(e)!==-1,halfChecked:l.indexOf(e)!==-1,pos:String(f?f.pos:""),dragOver:c===e&&u===0,dragOverGapTop:c===e&&u===-1,dragOverGapBottom:c===e&&u===1};return m}function hn(e){var t=e.data,n=e.expanded,r=e.selected,o=e.checked,a=e.loaded,i=e.loading,l=e.halfChecked,c=e.dragOver,u=e.dragOverGapTop,d=e.dragOverGapBottom,f=e.pos,m=e.active,g=e.eventKey,y=A(A({},t),{},{expanded:n,selected:r,checked:o,loaded:a,loading:i,halfChecked:l,dragOver:c,dragOverGapTop:u,dragOverGapBottom:d,pos:f,active:m,key:g});return"props"in y||Object.defineProperty(y,"props",{get:function(){return Zt(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),y}function tI(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function F5(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!!(n||r)||o===!1}function A5(e,t,n,r){for(var o=new Set(e),a=new Set,i=0;i<=n;i+=1){var l=t.get(i)||new Set;l.forEach(function(f){var m=f.key,g=f.node,y=f.children,h=y===void 0?[]:y;o.has(m)&&!r(g)&&h.filter(function(C){return!r(C.node)}).forEach(function(C){o.add(C.key)})})}for(var c=new Set,u=n;u>=0;u-=1){var d=t.get(u)||new Set;d.forEach(function(f){var m=f.parent,g=f.node;if(!(r(g)||!f.parent||c.has(f.parent.key))){if(r(f.parent.node)){c.add(m.key);return}var y=!0,h=!1;(m.children||[]).filter(function(C){return!r(C.node)}).forEach(function(C){var p=C.key,v=o.has(p);y&&!v&&(y=!1),!h&&(v||a.has(p))&&(h=!0)}),y&&o.add(m.key),h&&a.add(m.key),c.add(m.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(tI(a,o))}}function H5(e,t,n,r,o){for(var a=new Set(e),i=new Set(t),l=0;l<=r;l+=1){var c=n.get(l)||new Set;c.forEach(function(m){var g=m.key,y=m.node,h=m.children,C=h===void 0?[]:h;!a.has(g)&&!i.has(g)&&!o(y)&&C.filter(function(p){return!o(p.node)}).forEach(function(p){a.delete(p.key)})})}i=new Set;for(var u=new Set,d=r;d>=0;d-=1){var f=n.get(d)||new Set;f.forEach(function(m){var g=m.parent,y=m.node;if(!(o(y)||!m.parent||u.has(m.parent.key))){if(o(m.parent.node)){u.add(g.key);return}var h=!0,C=!1;(g.children||[]).filter(function(p){return!o(p.node)}).forEach(function(p){var v=p.key,b=a.has(v);h&&!b&&(h=!1),!C&&(b||i.has(v))&&(C=!0)}),h||a.delete(g.key),C&&i.add(g.key),u.add(g.key)}})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(tI(i,a))}}function Wi(e,t,n,r){var o=[],a;r?a=r:a=F5;var i=new Set(e.filter(function(d){var f=!!hr(n,d);return f||o.push(d),f})),l=new Map,c=0;Object.keys(n).forEach(function(d){var f=n[d],m=f.level,g=l.get(m);g||(g=new Set,l.set(m,g)),g.add(f),c=Math.max(c,m)}),Zt(!o.length,"Tree missing follow keys: ".concat(o.slice(0,100).map(function(d){return"'".concat(d,"'")}).join(", ")));var u;return t===!0?u=A5(i,l,c,a):u=H5(i,t.halfCheckedKeys,l,c,a),u}const V5=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},zt(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},zt(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},zt(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},pa(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${H(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${H(e.lineWidthBold)} 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}})},{[` + `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},S5=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:o,colorBorderSecondary:a,actionsBg:i}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:i,borderTop:`${H(e.lineWidth)} ${e.lineType} ${a}`,display:"flex",borderRadius:`0 0 ${H(e.borderRadiusLG)} ${H(e.borderRadiusLG)}`},_o()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:H(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:o,lineHeight:H(e.calc(o).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${H(e.lineWidth)} ${e.lineType} ${a}`}}})},x5=e=>Object.assign(Object.assign({margin:`${H(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},_o()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},ga),"&-description":{color:e.colorTextDescription}}),$5=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:r}=e;return{[`${t}-head`]:{padding:`0 ${H(n)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${H(e.padding)} ${H(n)}`}}},w5=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},E5=e=>{const{antCls:t,componentCls:n,cardShadow:r,cardHeadPadding:o,colorBorderSecondary:a,boxShadowTertiary:i,cardPaddingBase:l,extraColor:c}=e;return{[n]:Object.assign(Object.assign({},zt(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${n}-bordered)`]:{boxShadow:i},[`${n}-head`]:b5(e),[`${n}-extra`]:{marginInlineStart:"auto",color:c,fontWeight:"normal",fontSize:e.fontSize},[`${n}-body`]:Object.assign({padding:l,borderRadius:` 0 0 ${H(e.borderRadiusLG)} ${H(e.borderRadiusLG)}`},_o()),[`${n}-grid`]:C5(e),[`${n}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${t}-image-mask`]:{borderRadius:`${H(e.borderRadiusLG)} ${H(e.borderRadiusLG)} 0 0`}},[`${n}-actions`]:S5(e),[`${n}-meta`]:x5(e)}),[`${n}-bordered`]:{border:`${H(e.lineWidth)} ${e.lineType} ${a}`,[`${n}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${n}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:r}},[`${n}-contain-grid`]:{borderRadius:`${H(e.borderRadiusLG)} ${H(e.borderRadiusLG)} 0 0 `,[`${n}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${n}-loading) ${n}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${n}-contain-tabs`]:{[`> ${n}-head`]:{minHeight:0,[`${n}-head-title, ${n}-extra`]:{paddingTop:o}}},[`${n}-type-inner`]:$5(e),[`${n}-loading`]:w5(e),[`${n}-rtl`]:{direction:"rtl"}}},O5=e=>{const{componentCls:t,cardPaddingSM:n,headerHeightSM:r,headerFontSizeSM:o}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${H(n)}`,fontSize:o,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},I5=e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText}),P5=_t("Card",e=>{const t=bt(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[E5(t),O5(t)]},I5);var nS=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return s.createElement("ul",{className:t,style:r},n.map((o,a)=>{const i=`action-${a}`;return s.createElement("li",{style:{width:`${100/n.length}%`},key:i},s.createElement("span",null,o))}))},N5=s.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:a,extra:i,headStyle:l={},bodyStyle:c={},title:u,loading:d,bordered:f=!0,size:m,type:g,cover:y,actions:h,tabList:C,children:p,activeTabKey:v,defaultActiveTabKey:b,tabBarExtraContent:S,hoverable:$,tabProps:x={},classNames:w,styles:O}=e,E=nS(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:I,direction:T,card:_}=s.useContext(je),R=se=>{var ae;(ae=e.onTabChange)===null||ae===void 0||ae.call(e,se)},M=se=>{var ae;return V((ae=_==null?void 0:_.classNames)===null||ae===void 0?void 0:ae[se],w==null?void 0:w[se])},L=se=>{var ae;return Object.assign(Object.assign({},(ae=_==null?void 0:_.styles)===null||ae===void 0?void 0:ae[se]),O==null?void 0:O[se])},z=s.useMemo(()=>{let se=!1;return s.Children.forEach(p,ae=>{ae&&ae.type&&ae.type===ZO&&(se=!0)}),se},[p]),P=I("card",n),[N,k,j]=P5(P),B=s.createElement(OF,{loading:!0,active:!0,paragraph:{rows:4},title:!1},p),F=v!==void 0,K=Object.assign(Object.assign({},x),{[F?"activeKey":"defaultActiveKey"]:F?v:b,tabBarExtraContent:S});let X;const U=sr(m),re=!U||U==="default"?"large":U,Z=C?s.createElement(v5,Object.assign({size:re},K,{className:`${P}-head-tabs`,onChange:R,items:C.map(se=>{var{tab:ae}=se,ie=nS(se,["tab"]);return Object.assign({label:ae},ie)})})):null;if(u||i||Z){const se=V(`${P}-head`,M("header")),ae=V(`${P}-head-title`,M("title")),ie=V(`${P}-extra`,M("extra")),pe=Object.assign(Object.assign({},l),L("header"));X=s.createElement("div",{className:se,style:pe},s.createElement("div",{className:`${P}-head-wrapper`},u&&s.createElement("div",{className:ae,style:L("title")},u),i&&s.createElement("div",{className:ie,style:L("extra")},i)),Z)}const ne=V(`${P}-cover`,M("cover")),le=y?s.createElement("div",{className:ne,style:L("cover")},y):null,ee=V(`${P}-body`,M("body")),q=Object.assign(Object.assign({},c),L("body")),te=s.createElement("div",{className:ee,style:q},d?B:p),J=V(`${P}-actions`,M("actions")),W=h&&h.length?s.createElement(R5,{actionClasses:J,actionStyle:L("actions"),actions:h}):null,Y=Kt(E,["onTabChange"]),de=V(P,_==null?void 0:_.className,{[`${P}-loading`]:d,[`${P}-bordered`]:f,[`${P}-hoverable`]:$,[`${P}-contain-grid`]:z,[`${P}-contain-tabs`]:C&&C.length,[`${P}-${U}`]:U,[`${P}-type-${g}`]:!!g,[`${P}-rtl`]:T==="rtl"},r,o,k,j),oe=Object.assign(Object.assign({},_==null?void 0:_.style),a);return N(s.createElement("div",Object.assign({ref:t},Y,{className:de,style:oe}),X,le,te,W))}),T5=N5;var M5=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,className:n,avatar:r,title:o,description:a}=e,i=M5(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:l}=s.useContext(je),c=l("card",t),u=V(`${c}-meta`,n),d=r?s.createElement("div",{className:`${c}-meta-avatar`},r):null,f=o?s.createElement("div",{className:`${c}-meta-title`},o):null,m=a?s.createElement("div",{className:`${c}-meta-description`},a):null,g=f||m?s.createElement("div",{className:`${c}-meta-detail`},f,m):null;return s.createElement("div",Object.assign({},i,{className:u}),d,g)},z5=_5,l0=T5;l0.Grid=ZO;l0.Meta=z5;const BU=l0;function j5(e,t,n){var r=n||{},o=r.noTrailing,a=o===void 0?!1:o,i=r.noLeading,l=i===void 0?!1:i,c=r.debounceMode,u=c===void 0?void 0:c,d,f=!1,m=0;function g(){d&&clearTimeout(d)}function y(C){var p=C||{},v=p.upcomingOnly,b=v===void 0?!1:v;g(),f=!b}function h(){for(var C=arguments.length,p=new Array(C),v=0;ve?l?(m=Date.now(),a||(d=setTimeout(u?x:$,e))):$():a!==!0&&(d=setTimeout(u?x:$,u===void 0?e-S:e))}return h.cancel=y,h}function L5(e,t,n){var r=n||{},o=r.atBegin,a=o===void 0?!1:o;return j5(e,t,{debounceMode:a!==!1})}function hr(e,t){return e[t]}var k5=["children"];function JO(e,t){return"".concat(e,"-").concat(t)}function D5(e){return e&&e.type&&e.type.isTreeNode}function gc(e,t){return e??t}function il(e){var t=e||{},n=t.title,r=t._title,o=t.key,a=t.children,i=n||"title";return{title:i,_title:r||[i],key:o||"key",children:a||"children"}}function eI(e){function t(n){var r=lr(n);return r.map(function(o){if(!D5(o))return Zt(!o,"Tree/TreeNode can only accept TreeNode as children."),null;var a=o.key,i=o.props,l=i.children,c=tt(i,k5),u=A({key:a},c),d=t(l);return d.length&&(u.children=d),u}).filter(function(o){return o})}return t(e)}function Fm(e,t,n){var r=il(n),o=r._title,a=r.key,i=r.children,l=new Set(t===!0?[]:t),c=[];function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return d.map(function(m,g){for(var y=JO(f?f.pos:"0",g),h=gc(m[a],y),C,p=0;p1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,o=t.onProcessFinished,a=t.externalGetKey,i=t.childrenPropName,l=t.fieldNames,c=arguments.length>2?arguments[2]:void 0,u=a||c,d={},f={},m={posEntities:d,keyEntities:f};return n&&(m=n(m)||m),B5(e,function(g){var y=g.node,h=g.index,C=g.pos,p=g.key,v=g.parentPos,b=g.level,S=g.nodes,$={node:y,nodes:S,index:h,key:p,pos:C,level:b},x=gc(p,C);d[C]=$,f[x]=$,$.parent=d[v],$.parent&&($.parent.children=$.parent.children||[],$.parent.children.push($)),r&&r($,m)},{externalGetKey:u,childrenPropName:i,fieldNames:l}),o&&o(m),m}function ss(e,t){var n=t.expandedKeys,r=t.selectedKeys,o=t.loadedKeys,a=t.loadingKeys,i=t.checkedKeys,l=t.halfCheckedKeys,c=t.dragOverNodeKey,u=t.dropPosition,d=t.keyEntities,f=hr(d,e),m={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:o.indexOf(e)!==-1,loading:a.indexOf(e)!==-1,checked:i.indexOf(e)!==-1,halfChecked:l.indexOf(e)!==-1,pos:String(f?f.pos:""),dragOver:c===e&&u===0,dragOverGapTop:c===e&&u===-1,dragOverGapBottom:c===e&&u===1};return m}function hn(e){var t=e.data,n=e.expanded,r=e.selected,o=e.checked,a=e.loaded,i=e.loading,l=e.halfChecked,c=e.dragOver,u=e.dragOverGapTop,d=e.dragOverGapBottom,f=e.pos,m=e.active,g=e.eventKey,y=A(A({},t),{},{expanded:n,selected:r,checked:o,loaded:a,loading:i,halfChecked:l,dragOver:c,dragOverGapTop:u,dragOverGapBottom:d,pos:f,active:m,key:g});return"props"in y||Object.defineProperty(y,"props",{get:function(){return Zt(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),y}function tI(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function F5(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!!(n||r)||o===!1}function A5(e,t,n,r){for(var o=new Set(e),a=new Set,i=0;i<=n;i+=1){var l=t.get(i)||new Set;l.forEach(function(f){var m=f.key,g=f.node,y=f.children,h=y===void 0?[]:y;o.has(m)&&!r(g)&&h.filter(function(C){return!r(C.node)}).forEach(function(C){o.add(C.key)})})}for(var c=new Set,u=n;u>=0;u-=1){var d=t.get(u)||new Set;d.forEach(function(f){var m=f.parent,g=f.node;if(!(r(g)||!f.parent||c.has(f.parent.key))){if(r(f.parent.node)){c.add(m.key);return}var y=!0,h=!1;(m.children||[]).filter(function(C){return!r(C.node)}).forEach(function(C){var p=C.key,v=o.has(p);y&&!v&&(y=!1),!h&&(v||a.has(p))&&(h=!0)}),y&&o.add(m.key),h&&a.add(m.key),c.add(m.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(tI(a,o))}}function H5(e,t,n,r,o){for(var a=new Set(e),i=new Set(t),l=0;l<=r;l+=1){var c=n.get(l)||new Set;c.forEach(function(m){var g=m.key,y=m.node,h=m.children,C=h===void 0?[]:h;!a.has(g)&&!i.has(g)&&!o(y)&&C.filter(function(p){return!o(p.node)}).forEach(function(p){a.delete(p.key)})})}i=new Set;for(var u=new Set,d=r;d>=0;d-=1){var f=n.get(d)||new Set;f.forEach(function(m){var g=m.parent,y=m.node;if(!(o(y)||!m.parent||u.has(m.parent.key))){if(o(m.parent.node)){u.add(g.key);return}var h=!0,C=!1;(g.children||[]).filter(function(p){return!o(p.node)}).forEach(function(p){var v=p.key,b=a.has(v);h&&!b&&(h=!1),!C&&(b||i.has(v))&&(C=!0)}),h||a.delete(g.key),C&&i.add(g.key),u.add(g.key)}})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(tI(i,a))}}function Wi(e,t,n,r){var o=[],a;r?a=r:a=F5;var i=new Set(e.filter(function(d){var f=!!hr(n,d);return f||o.push(d),f})),l=new Map,c=0;Object.keys(n).forEach(function(d){var f=n[d],m=f.level,g=l.get(m);g||(g=new Set,l.set(m,g)),g.add(f),c=Math.max(c,m)}),Zt(!o.length,"Tree missing follow keys: ".concat(o.slice(0,100).map(function(d){return"'".concat(d,"'")}).join(", ")));var u;return t===!0?u=A5(i,l,c,a):u=H5(i,t.halfCheckedKeys,l,c,a),u}const V5=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},zt(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},zt(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},zt(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},pa(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${H(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${H(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[` ${n}:not(${n}-disabled), ${t}:not(${t}-disabled) `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[` ${n}-checked:not(${n}-disabled), ${t}-checked:not(${t}-disabled) - `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function nI(e,t){const n=bt(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[V5(n)]}const rI=_t("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[nI(n,e)]}),K5=G.createContext(null),oI=K5;var W5=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n;const{prefixCls:r,className:o,rootClassName:a,children:i,indeterminate:l=!1,style:c,onMouseEnter:u,onMouseLeave:d,skipGroup:f=!1,disabled:m}=e,g=W5(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:y,direction:h,checkbox:C}=s.useContext(je),p=s.useContext(oI),{isFormItemInput:v}=s.useContext(Qn),b=s.useContext(Ao),S=(n=(p==null?void 0:p.disabled)||m)!==null&&n!==void 0?n:b,$=s.useRef(g.value);s.useEffect(()=>{p==null||p.registerValue(g.value)},[]),s.useEffect(()=>{if(!f)return g.value!==$.current&&(p==null||p.cancelValue($.current),p==null||p.registerValue(g.value),$.current=g.value),()=>p==null?void 0:p.cancelValue(g.value)},[g.value]);const x=y("checkbox",r),w=gn(x),[O,E,I]=rI(x,w),T=Object.assign({},g);p&&!f&&(T.onChange=function(){g.onChange&&g.onChange.apply(g,arguments),p.toggleOption&&p.toggleOption({label:i,value:g.value})},T.name=p.name,T.checked=p.value.includes(g.value));const _=V(`${x}-wrapper`,{[`${x}-rtl`]:h==="rtl",[`${x}-wrapper-checked`]:T.checked,[`${x}-wrapper-disabled`]:S,[`${x}-wrapper-in-form-item`]:v},C==null?void 0:C.className,o,a,I,w,E),R=V({[`${x}-indeterminate`]:l},df,E),M=l?"mixed":void 0;return O(s.createElement(ac,{component:"Checkbox",disabled:S},s.createElement("label",{className:_,style:Object.assign(Object.assign({},C==null?void 0:C.style),c),onMouseEnter:u,onMouseLeave:d},s.createElement(AO,Object.assign({"aria-checked":M},T,{prefixCls:x,className:R,disabled:S,ref:t})),i!==void 0&&s.createElement("span",null,i))))},U5=s.forwardRef(G5),aI=U5;var q5=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{defaultValue:n,children:r,options:o=[],prefixCls:a,className:i,rootClassName:l,style:c,onChange:u}=e,d=q5(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:m}=s.useContext(je),[g,y]=s.useState(d.value||n||[]),[h,C]=s.useState([]);s.useEffect(()=>{"value"in d&&y(d.value||[])},[d.value]);const p=s.useMemo(()=>o.map(L=>typeof L=="string"||typeof L=="number"?{label:L,value:L}:L),[o]),v=L=>{C(z=>z.filter(P=>P!==L))},b=L=>{C(z=>[].concat(ue(z),[L]))},S=L=>{const z=g.indexOf(L.value),P=ue(g);z===-1?P.push(L.value):P.splice(z,1),"value"in d||y(P),u==null||u(P.filter(N=>h.includes(N)).sort((N,k)=>{const j=p.findIndex(F=>F.value===N),B=p.findIndex(F=>F.value===k);return j-B}))},$=f("checkbox",a),x=`${$}-group`,w=gn($),[O,E,I]=rI($,w),T=Kt(d,["value","disabled"]),_=o.length?p.map(L=>s.createElement(aI,{prefixCls:$,key:L.value.toString(),disabled:"disabled"in L?L.disabled:d.disabled,value:L.value,checked:g.includes(L.value),onChange:L.onChange,className:`${x}-item`,style:L.style,title:L.title,id:L.id,required:L.required},L.label)):r,R={toggleOption:S,value:g,disabled:d.disabled,name:d.name,registerValue:b,cancelValue:v},M=V(x,{[`${x}-rtl`]:m==="rtl"},i,l,I,w,E);return O(s.createElement("div",Object.assign({className:M,style:c},T,{ref:t}),s.createElement(oI.Provider,{value:R},_)))}),Y5=X5,c0=aI;c0.Group=Y5;c0.__ANT_CHECKBOX=!0;const bd=c0,Q5=s.createContext({}),iI=Q5,Z5=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},J5=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},e8=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=e,a={};for(let i=o;i>=0;i--)i===0?(a[`${r}${t}-${i}`]={display:"none"},a[`${r}-push-${i}`]={insetInlineStart:"auto"},a[`${r}-pull-${i}`]={insetInlineEnd:"auto"},a[`${r}${t}-push-${i}`]={insetInlineStart:"auto"},a[`${r}${t}-pull-${i}`]={insetInlineEnd:"auto"},a[`${r}${t}-offset-${i}`]={marginInlineStart:0},a[`${r}${t}-order-${i}`]={order:0}):(a[`${r}${t}-${i}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${i/o*100}%`,maxWidth:`${i/o*100}%`}],a[`${r}${t}-push-${i}`]={insetInlineStart:`${i/o*100}%`},a[`${r}${t}-pull-${i}`]={insetInlineEnd:`${i/o*100}%`},a[`${r}${t}-offset-${i}`]={marginInlineStart:`${i/o*100}%`},a[`${r}${t}-order-${i}`]={order:i});return a[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},a},Vp=(e,t)=>e8(e,t),t8=(e,t,n)=>({[`@media (min-width: ${H(t)})`]:Object.assign({},Vp(e,n))}),n8=()=>({}),r8=()=>({}),o8=_t("Grid",Z5,n8),a8=_t("Grid",e=>{const t=bt(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[J5(t),Vp(t,""),Vp(t,"-xs"),Object.keys(n).map(r=>t8(t,n[r],r)).reduce((r,o)=>Object.assign(Object.assign({},r),o),{})]},r8);var i8=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:n,direction:r}=s.useContext(je),{gutter:o,wrap:a}=s.useContext(iI),{prefixCls:i,span:l,order:c,offset:u,push:d,pull:f,className:m,children:g,flex:y,style:h}=e,C=i8(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),p=n("col",i),[v,b,S]=a8(p),$={};let x={};l8.forEach(E=>{let I={};const T=e[E];typeof T=="number"?I.span=T:typeof T=="object"&&(I=T||{}),delete C[E],x=Object.assign(Object.assign({},x),{[`${p}-${E}-${I.span}`]:I.span!==void 0,[`${p}-${E}-order-${I.order}`]:I.order||I.order===0,[`${p}-${E}-offset-${I.offset}`]:I.offset||I.offset===0,[`${p}-${E}-push-${I.push}`]:I.push||I.push===0,[`${p}-${E}-pull-${I.pull}`]:I.pull||I.pull===0,[`${p}-rtl`]:r==="rtl"}),I.flex&&(x[`${p}-${E}-flex`]=!0,$[`--${p}-${E}-flex`]=rS(I.flex))});const w=V(p,{[`${p}-${l}`]:l!==void 0,[`${p}-order-${c}`]:c,[`${p}-offset-${u}`]:u,[`${p}-push-${d}`]:d,[`${p}-pull-${f}`]:f},m,x,b,S),O={};if(o&&o[0]>0){const E=o[0]/2;O.paddingLeft=E,O.paddingRight=E}return y&&(O.flex=rS(y),a===!1&&!O.minWidth&&(O.minWidth=0)),v(s.createElement("div",Object.assign({},C,{style:Object.assign(Object.assign(Object.assign({},O),h),$),className:w,ref:t}),g))}),lI=s8;var c8=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{if(typeof e=="string"&&r(e),typeof e=="object")for(let a=0;a{o()},[JSON.stringify(e),t]),n}const u8=s.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:o,className:a,style:i,children:l,gutter:c=0,wrap:u}=e,d=c8(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:m}=s.useContext(je),[g,y]=s.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[h,C]=s.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),p=oS(o,h),v=oS(r,h),b=s.useRef(c),S=lO();s.useEffect(()=>{const P=S.subscribe(N=>{C(N);const k=b.current||0;(!Array.isArray(k)&&typeof k=="object"||Array.isArray(k)&&(typeof k[0]=="object"||typeof k[1]=="object"))&&y(N)});return()=>S.unsubscribe(P)},[]);const $=()=>{const P=[void 0,void 0];return(Array.isArray(c)?c:[c,void 0]).forEach((k,j)=>{if(typeof k=="object")for(let B=0;B0?I[0]/-2:void 0;R&&(_.marginLeft=R,_.marginRight=R);const[M,L]=I;_.rowGap=L;const z=s.useMemo(()=>({gutter:[M,L],wrap:u}),[M,L,u]);return w(s.createElement(iI.Provider,{value:z},s.createElement("div",Object.assign({},d,{className:T,style:Object.assign(Object.assign({},_),i),ref:t}),l)))}),d8=u8;function f8(e){return!!(e.addonBefore||e.addonAfter)}function m8(e){return!!(e.prefix||e.suffix||e.allowClear)}function aS(e,t,n){var r=t.cloneNode(!0),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),o}function Cd(e,t,n,r){if(n){var o=t;if(t.type==="click"){o=aS(t,e,""),n(o);return}if(e.type!=="file"&&r!==void 0){o=aS(t,e,r),n(o);return}n(o)}}function g8(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var o=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}var sI=function(t){var n,r,o=t.inputElement,a=t.children,i=t.prefixCls,l=t.prefix,c=t.suffix,u=t.addonBefore,d=t.addonAfter,f=t.className,m=t.style,g=t.disabled,y=t.readOnly,h=t.focused,C=t.triggerFocus,p=t.allowClear,v=t.value,b=t.handleReset,S=t.hidden,$=t.classes,x=t.classNames,w=t.dataAttrs,O=t.styles,E=t.components,I=a??o,T=(E==null?void 0:E.affixWrapper)||"span",_=(E==null?void 0:E.groupWrapper)||"span",R=(E==null?void 0:E.wrapper)||"span",M=(E==null?void 0:E.groupAddon)||"span",L=s.useRef(null),z=function(W){var Y;(Y=L.current)!==null&&Y!==void 0&&Y.contains(W.target)&&(C==null||C())},P=m8(t),N=s.cloneElement(I,{value:v,className:V(I.props.className,!P&&(x==null?void 0:x.variant))||null});if(P){var k,j=null;if(p){var B,F=!g&&!y&&v,K="".concat(i,"-clear-icon"),X=at(p)==="object"&&p!==null&&p!==void 0&&p.clearIcon?p.clearIcon:"✖";j=G.createElement("span",{onClick:b,onMouseDown:function(W){return W.preventDefault()},className:V(K,(B={},D(B,"".concat(K,"-hidden"),!F),D(B,"".concat(K,"-has-suffix"),!!c),B)),role:"button",tabIndex:-1},X)}var U="".concat(i,"-affix-wrapper"),re=V(U,(k={},D(k,"".concat(i,"-disabled"),g),D(k,"".concat(U,"-disabled"),g),D(k,"".concat(U,"-focused"),h),D(k,"".concat(U,"-readonly"),y),D(k,"".concat(U,"-input-with-clear-btn"),c&&p&&v),k),$==null?void 0:$.affixWrapper,x==null?void 0:x.affixWrapper,x==null?void 0:x.variant),Z=(c||p)&&G.createElement("span",{className:V("".concat(i,"-suffix"),x==null?void 0:x.suffix),style:O==null?void 0:O.suffix},j,c);N=G.createElement(T,ce({className:re,style:O==null?void 0:O.affixWrapper,onClick:z},w==null?void 0:w.affixWrapper,{ref:L}),l&&G.createElement("span",{className:V("".concat(i,"-prefix"),x==null?void 0:x.prefix),style:O==null?void 0:O.prefix},l),N,Z)}if(f8(t)){var ne="".concat(i,"-group"),le="".concat(ne,"-addon"),ee="".concat(ne,"-wrapper"),q=V("".concat(i,"-wrapper"),ne,$==null?void 0:$.wrapper,x==null?void 0:x.wrapper),te=V(ee,D({},"".concat(ee,"-disabled"),g),$==null?void 0:$.group,x==null?void 0:x.groupWrapper);N=G.createElement(_,{className:te},G.createElement(R,{className:q},u&&G.createElement(M,{className:le},u),N,d&&G.createElement(M,{className:le},d)))}return G.cloneElement(N,{className:V((n=N.props)===null||n===void 0?void 0:n.className,f)||null,style:A(A({},(r=N.props)===null||r===void 0?void 0:r.style),m),hidden:S})},p8=["show"];function cI(e,t){return s.useMemo(function(){var n={};t&&(n.show=at(t)==="object"&&t.formatter?t.formatter:!!t),n=A(A({},n),e);var r=n,o=r.show,a=tt(r,p8);return A(A({},a),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:a.strategy||function(i){return i.length}})},[e,t])}var v8=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],h8=s.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,a=e.onBlur,i=e.onPressEnter,l=e.onKeyDown,c=e.prefixCls,u=c===void 0?"rc-input":c,d=e.disabled,f=e.htmlSize,m=e.className,g=e.maxLength,y=e.suffix,h=e.showCount,C=e.count,p=e.type,v=p===void 0?"text":p,b=e.classes,S=e.classNames,$=e.styles,x=e.onCompositionStart,w=e.onCompositionEnd,O=tt(e,v8),E=s.useState(!1),I=Q(E,2),T=I[0],_=I[1],R=s.useRef(!1),M=s.useRef(null),L=function(ie){M.current&&g8(M.current,ie)},z=Jt(e.defaultValue,{value:e.value}),P=Q(z,2),N=P[0],k=P[1],j=N==null?"":String(N),B=s.useState(null),F=Q(B,2),K=F[0],X=F[1],U=cI(C,h),re=U.max||g,Z=U.strategy(j),ne=!!re&&Z>re;s.useImperativeHandle(t,function(){return{focus:L,blur:function(){var ie;(ie=M.current)===null||ie===void 0||ie.blur()},setSelectionRange:function(ie,pe,me){var ge;(ge=M.current)===null||ge===void 0||ge.setSelectionRange(ie,pe,me)},select:function(){var ie;(ie=M.current)===null||ie===void 0||ie.select()},input:M.current}}),s.useEffect(function(){_(function(ae){return ae&&d?!1:ae})},[d]);var le=function(ie,pe,me){var ge=pe;if(!R.current&&U.exceedFormatter&&U.max&&U.strategy(pe)>U.max){if(ge=U.exceedFormatter(pe,{max:U.max}),pe!==ge){var ve,$e;X([((ve=M.current)===null||ve===void 0?void 0:ve.selectionStart)||0,(($e=M.current)===null||$e===void 0?void 0:$e.selectionEnd)||0])}}else if(me.source==="compositionEnd")return;k(ge),M.current&&Cd(M.current,ie,r,ge)};s.useEffect(function(){if(K){var ae;(ae=M.current)===null||ae===void 0||ae.setSelectionRange.apply(ae,ue(K))}},[K]);var ee=function(ie){le(ie,ie.target.value,{source:"change"})},q=function(ie){R.current=!1,le(ie,ie.currentTarget.value,{source:"compositionEnd"}),w==null||w(ie)},te=function(ie){i&&ie.key==="Enter"&&i(ie),l==null||l(ie)},J=function(ie){_(!0),o==null||o(ie)},W=function(ie){_(!1),a==null||a(ie)},Y=function(ie){k(""),L(),M.current&&Cd(M.current,ie,r)},de=ne&&"".concat(u,"-out-of-range"),oe=function(){var ie=Kt(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames"]);return G.createElement("input",ce({autoComplete:n},ie,{onChange:ee,onFocus:J,onBlur:W,onKeyDown:te,className:V(u,D({},"".concat(u,"-disabled"),d),S==null?void 0:S.input),style:$==null?void 0:$.input,ref:M,size:f,type:v,onCompositionStart:function(me){R.current=!0,x==null||x(me)},onCompositionEnd:q}))},se=function(){var ie=Number(re)>0;if(y||U.show){var pe=U.showFormatter?U.showFormatter({value:j,count:Z,maxLength:re}):"".concat(Z).concat(ie?" / ".concat(re):"");return G.createElement(G.Fragment,null,U.show&&G.createElement("span",{className:V("".concat(u,"-show-count-suffix"),D({},"".concat(u,"-show-count-has-suffix"),!!y),S==null?void 0:S.count),style:A({},$==null?void 0:$.count)},pe),y)}return null};return G.createElement(sI,ce({},O,{prefixCls:u,className:V(m,de),handleReset:Y,value:j,focused:T,triggerFocus:L,suffix:se(),disabled:d,classes:b,classNames:S,styles:$}),oe())});const y8=e=>{const{getPrefixCls:t,direction:n}=s.useContext(je),{prefixCls:r,className:o}=e,a=t("input-group",r),i=t("input"),[l,c]=i0(i),u=V(a,{[`${a}-lg`]:e.size==="large",[`${a}-sm`]:e.size==="small",[`${a}-compact`]:e.compact,[`${a}-rtl`]:n==="rtl"},c,o),d=s.useContext(Qn),f=s.useMemo(()=>Object.assign(Object.assign({},d),{isFormItemInput:!1}),[d]);return l(s.createElement("span",{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},s.createElement(Qn.Provider,{value:f},e.children)))},b8=y8,C8=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:G.createElement(ml,null)}),t},uI=C8;function dI(e,t){const n=s.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,a,i,l;!((o=e.current)===null||o===void 0)&&o.input&&((a=e.current)===null||a===void 0?void 0:a.input.getAttribute("type"))==="password"&&(!((i=e.current)===null||i===void 0)&&i.input.hasAttribute("value"))&&((l=e.current)===null||l===void 0||l.input.removeAttribute("value"))}))};return s.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o)})),[]),r}function S8(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var x8=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n;const{prefixCls:r,bordered:o=!0,status:a,size:i,disabled:l,onBlur:c,onFocus:u,suffix:d,allowClear:f,addonAfter:m,addonBefore:g,className:y,style:h,styles:C,rootClassName:p,onChange:v,classNames:b,variant:S}=e,$=x8(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:x,direction:w,input:O}=G.useContext(je),E=x("input",r),I=s.useRef(null),T=gn(E),[_,R,M]=i0(E,T),{compactSize:L,compactItemClassnames:z}=ic(E,w),P=sr(J=>{var W;return(W=i??L)!==null&&W!==void 0?W:J}),N=G.useContext(Ao),k=l??N,{status:j,hasFeedback:B,feedbackIcon:F}=s.useContext(Qn),K=hf(j,a),X=S8(e)||!!B;s.useRef(X);const U=dI(I,!0),re=J=>{U(),c==null||c(J)},Z=J=>{U(),u==null||u(J)},ne=J=>{U(),v==null||v(J)},le=(B||d)&&G.createElement(G.Fragment,null,d,B&&F),ee=uI(f??(O==null?void 0:O.allowClear)),[q,te]=Hh(S,o);return _(G.createElement(h8,Object.assign({ref:Br(t,I),prefixCls:E,autoComplete:O==null?void 0:O.autoComplete},$,{disabled:k,onBlur:re,onFocus:Z,style:Object.assign(Object.assign({},O==null?void 0:O.style),h),styles:Object.assign(Object.assign({},O==null?void 0:O.styles),C),suffix:le,allowClear:ee,className:V(y,p,M,T,z,O==null?void 0:O.className),onChange:ne,addonAfter:m&&G.createElement(js,null,G.createElement(Np,{override:!0,status:!0},m)),addonBefore:g&&G.createElement(js,null,G.createElement(Np,{override:!0,status:!0},g)),classNames:Object.assign(Object.assign(Object.assign({},b),O==null?void 0:O.classNames),{input:V({[`${E}-sm`]:P==="small",[`${E}-lg`]:P==="large",[`${E}-rtl`]:w==="rtl"},b==null?void 0:b.input,(n=O==null?void 0:O.classNames)===null||n===void 0?void 0:n.input,R),variant:V({[`${E}-${q}`]:te},fd(E,K)),affixWrapper:V({[`${E}-affix-wrapper-sm`]:P==="small",[`${E}-affix-wrapper-lg`]:P==="large",[`${E}-affix-wrapper-rtl`]:w==="rtl"},R),wrapper:V({[`${E}-group-rtl`]:w==="rtl"},R),groupWrapper:V({[`${E}-group-wrapper-sm`]:P==="small",[`${E}-group-wrapper-lg`]:P==="large",[`${E}-group-wrapper-rtl`]:w==="rtl",[`${E}-group-wrapper-${q}`]:te},fd(`${E}-group-wrapper`,K,B),R)})})))}),Rf=w8,E8=e=>{const{componentCls:t,paddingXS:n}=e;return{[`${t}`]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},O8=_t(["Input","OTP"],e=>{const t=bt(e,t0(e));return[E8(t)]},n0);var I8=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{value:n,onChange:r,onActiveChange:o,index:a}=e,i=I8(e,["value","onChange","onActiveChange","index"]),l=m=>{r(a,m.target.value)},c=s.useRef(null);s.useImperativeHandle(t,()=>c.current);const u=()=>{It(()=>{var m;const g=(m=c.current)===null||m===void 0?void 0:m.input;document.activeElement===g&&g&&g.select()})},d=m=>{let{key:g}=m;g==="ArrowLeft"?o(a-1):g==="ArrowRight"&&o(a+1),u()},f=m=>{m.key==="Backspace"&&!n&&o(a-1),u()};return s.createElement(Rf,Object.assign({},i,{ref:c,value:n,onInput:l,onFocus:u,onKeyDown:d,onKeyUp:f,onMouseDown:u,onMouseUp:u}))}),R8=P8;var N8=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,length:r=6,size:o,defaultValue:a,value:i,onChange:l,formatter:c,variant:u,disabled:d,status:f,autoFocus:m}=e,g=N8(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus"]),{getPrefixCls:y,direction:h}=s.useContext(je),C=y("otp",n),p=qn(g,{aria:!0,data:!0,attr:!0}),v=gn(C),[b,S,$]=O8(C,v),x=sr(j=>o??j),w=s.useContext(Qn),O=hf(w.status,f),E=s.useMemo(()=>Object.assign(Object.assign({},w),{status:O,hasFeedback:!1,feedbackIcon:null}),[w,O]),I=s.useRef(null),T=s.useRef({});s.useImperativeHandle(t,()=>({focus:()=>{var j;(j=T.current[0])===null||j===void 0||j.focus()},blur:()=>{var j;for(let B=0;Bc?c(j):j,[R,M]=s.useState(Yc(_(a||"")));s.useEffect(()=>{i!==void 0&&M(Yc(i))},[i]);const L=Ft(j=>{M(j),l&&j.length===r&&j.every(B=>B)&&j.some((B,F)=>R[F]!==B)&&l(j.join(""))}),z=Ft((j,B)=>{let F=ue(R);for(let X=0;X=0&&!F[X];X-=1)F.pop();const K=_(F.map(X=>X||" ").join(""));return F=Yc(K).map((X,U)=>X===" "&&!F[U]?F[U]:X),F}),P=(j,B)=>{var F;const K=z(j,B),X=Math.min(j+B.length,r-1);X!==j&&((F=T.current[X])===null||F===void 0||F.focus()),L(K)},N=j=>{var B;(B=T.current[j])===null||B===void 0||B.focus()},k={variant:u,disabled:d,status:O};return b(s.createElement("div",Object.assign({},p,{ref:I,className:V(C,{[`${C}-sm`]:x==="small",[`${C}-lg`]:x==="large",[`${C}-rtl`]:h==="rtl"},$,S)}),s.createElement(Qn.Provider,{value:E},new Array(r).fill(0).map((j,B)=>{const F=`otp-${B}`,K=R[B]||"";return s.createElement(R8,Object.assign({ref:X=>{T.current[B]=X},key:F,index:B,size:x,htmlSize:1,className:`${C}-input`,onChange:P,value:K,onActiveChange:N,autoFocus:B===0&&m},k))}))))}),M8=T8;var _8={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};const z8=_8;var j8=function(t,n){return s.createElement(Pt,ce({},t,{ref:n,icon:z8}))},L8=s.forwardRef(j8);const k8=L8;var D8={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};const B8=D8;var F8=function(t,n){return s.createElement(Pt,ce({},t,{ref:n,icon:B8}))},A8=s.forwardRef(F8);const H8=A8;var V8=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);oe?s.createElement(H8,null):s.createElement(k8,null),W8={click:"onClick",hover:"onMouseOver"},G8=s.forwardRef((e,t)=>{const{visibilityToggle:n=!0}=e,r=typeof n=="object"&&n.visible!==void 0,[o,a]=s.useState(()=>r?n.visible:!1),i=s.useRef(null);s.useEffect(()=>{r&&a(n.visible)},[r,n]);const l=dI(i),c=()=>{const{disabled:$}=e;$||(o&&l(),a(x=>{var w;const O=!x;return typeof n=="object"&&((w=n.onVisibleChange)===null||w===void 0||w.call(n,O)),O}))},u=$=>{const{action:x="click",iconRender:w=K8}=e,O=W8[x]||"",E=w(o),I={[O]:c,className:`${$}-icon`,key:"passwordIcon",onMouseDown:T=>{T.preventDefault()},onMouseUp:T=>{T.preventDefault()}};return s.cloneElement(s.isValidElement(E)?E:s.createElement("span",null,E),I)},{className:d,prefixCls:f,inputPrefixCls:m,size:g}=e,y=V8(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:h}=s.useContext(je),C=h("input",m),p=h("input-password",f),v=n&&u(p),b=V(p,d,{[`${p}-${g}`]:!!g}),S=Object.assign(Object.assign({},Kt(y,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:b,prefixCls:C,suffix:v});return g&&(S.size=g),s.createElement(Rf,Object.assign({ref:Br(t,i)},S))}),U8=G8;var q8=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,inputPrefixCls:r,className:o,size:a,suffix:i,enterButton:l=!1,addonAfter:c,loading:u,disabled:d,onSearch:f,onChange:m,onCompositionStart:g,onCompositionEnd:y}=e,h=q8(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:C,direction:p}=s.useContext(je),v=s.useRef(!1),b=C("input-search",n),S=C("input",r),{compactSize:$}=ic(b,p),x=sr(j=>{var B;return(B=a??$)!==null&&B!==void 0?B:j}),w=s.useRef(null),O=j=>{j&&j.target&&j.type==="click"&&f&&f(j.target.value,j,{source:"clear"}),m&&m(j)},E=j=>{var B;document.activeElement===((B=w.current)===null||B===void 0?void 0:B.input)&&j.preventDefault()},I=j=>{var B,F;f&&f((F=(B=w.current)===null||B===void 0?void 0:B.input)===null||F===void 0?void 0:F.value,j,{source:"input"})},T=j=>{v.current||u||I(j)},_=typeof l=="boolean"?s.createElement(Vh,null):null,R=`${b}-button`;let M;const L=l||{},z=L.type&&L.type.__ANT_BUTTON===!0;z||L.type==="button"?M=Xn(L,Object.assign({onMouseDown:E,onClick:j=>{var B,F;(F=(B=L==null?void 0:L.props)===null||B===void 0?void 0:B.onClick)===null||F===void 0||F.call(B,j),I(j)},key:"enterButton"},z?{className:R,size:x}:{})):M=s.createElement(Lo,{className:R,type:l?"primary":void 0,size:x,disabled:d,key:"enterButton",onMouseDown:E,onClick:I,loading:u,icon:_},l),c&&(M=[M,Xn(c,{key:"addonAfter"})]);const P=V(b,{[`${b}-rtl`]:p==="rtl",[`${b}-${x}`]:!!x,[`${b}-with-button`]:!!l},o),N=j=>{v.current=!0,g==null||g(j)},k=j=>{v.current=!1,y==null||y(j)};return s.createElement(Rf,Object.assign({ref:Br(w,t),onPressEnter:T},h,{size:x,onCompositionStart:N,onCompositionEnd:k,prefixCls:S,addonAfter:M,suffix:i,onChange:O,className:P,disabled:d}))}),Y8=X8;var Q8=` + `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function nI(e,t){const n=bt(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[V5(n)]}const rI=_t("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[nI(n,e)]}),K5=G.createContext(null),oI=K5;var W5=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n;const{prefixCls:r,className:o,rootClassName:a,children:i,indeterminate:l=!1,style:c,onMouseEnter:u,onMouseLeave:d,skipGroup:f=!1,disabled:m}=e,g=W5(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:y,direction:h,checkbox:C}=s.useContext(je),p=s.useContext(oI),{isFormItemInput:v}=s.useContext(Qn),b=s.useContext(Ao),S=(n=(p==null?void 0:p.disabled)||m)!==null&&n!==void 0?n:b,$=s.useRef(g.value);s.useEffect(()=>{p==null||p.registerValue(g.value)},[]),s.useEffect(()=>{if(!f)return g.value!==$.current&&(p==null||p.cancelValue($.current),p==null||p.registerValue(g.value),$.current=g.value),()=>p==null?void 0:p.cancelValue(g.value)},[g.value]);const x=y("checkbox",r),w=gn(x),[O,E,I]=rI(x,w),T=Object.assign({},g);p&&!f&&(T.onChange=function(){g.onChange&&g.onChange.apply(g,arguments),p.toggleOption&&p.toggleOption({label:i,value:g.value})},T.name=p.name,T.checked=p.value.includes(g.value));const _=V(`${x}-wrapper`,{[`${x}-rtl`]:h==="rtl",[`${x}-wrapper-checked`]:T.checked,[`${x}-wrapper-disabled`]:S,[`${x}-wrapper-in-form-item`]:v},C==null?void 0:C.className,o,a,I,w,E),R=V({[`${x}-indeterminate`]:l},df,E),M=l?"mixed":void 0;return O(s.createElement(ac,{component:"Checkbox",disabled:S},s.createElement("label",{className:_,style:Object.assign(Object.assign({},C==null?void 0:C.style),c),onMouseEnter:u,onMouseLeave:d},s.createElement(AO,Object.assign({"aria-checked":M},T,{prefixCls:x,className:R,disabled:S,ref:t})),i!==void 0&&s.createElement("span",null,i))))},U5=s.forwardRef(G5),aI=U5;var q5=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{defaultValue:n,children:r,options:o=[],prefixCls:a,className:i,rootClassName:l,style:c,onChange:u}=e,d=q5(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:m}=s.useContext(je),[g,y]=s.useState(d.value||n||[]),[h,C]=s.useState([]);s.useEffect(()=>{"value"in d&&y(d.value||[])},[d.value]);const p=s.useMemo(()=>o.map(L=>typeof L=="string"||typeof L=="number"?{label:L,value:L}:L),[o]),v=L=>{C(z=>z.filter(P=>P!==L))},b=L=>{C(z=>[].concat(ue(z),[L]))},S=L=>{const z=g.indexOf(L.value),P=ue(g);z===-1?P.push(L.value):P.splice(z,1),"value"in d||y(P),u==null||u(P.filter(N=>h.includes(N)).sort((N,k)=>{const j=p.findIndex(F=>F.value===N),B=p.findIndex(F=>F.value===k);return j-B}))},$=f("checkbox",a),x=`${$}-group`,w=gn($),[O,E,I]=rI($,w),T=Kt(d,["value","disabled"]),_=o.length?p.map(L=>s.createElement(aI,{prefixCls:$,key:L.value.toString(),disabled:"disabled"in L?L.disabled:d.disabled,value:L.value,checked:g.includes(L.value),onChange:L.onChange,className:`${x}-item`,style:L.style,title:L.title,id:L.id,required:L.required},L.label)):r,R={toggleOption:S,value:g,disabled:d.disabled,name:d.name,registerValue:b,cancelValue:v},M=V(x,{[`${x}-rtl`]:m==="rtl"},i,l,I,w,E);return O(s.createElement("div",Object.assign({className:M,style:c},T,{ref:t}),s.createElement(oI.Provider,{value:R},_)))}),Y5=X5,c0=aI;c0.Group=Y5;c0.__ANT_CHECKBOX=!0;const bd=c0,Q5=s.createContext({}),iI=Q5,Z5=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},J5=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},eA=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=e,a={};for(let i=o;i>=0;i--)i===0?(a[`${r}${t}-${i}`]={display:"none"},a[`${r}-push-${i}`]={insetInlineStart:"auto"},a[`${r}-pull-${i}`]={insetInlineEnd:"auto"},a[`${r}${t}-push-${i}`]={insetInlineStart:"auto"},a[`${r}${t}-pull-${i}`]={insetInlineEnd:"auto"},a[`${r}${t}-offset-${i}`]={marginInlineStart:0},a[`${r}${t}-order-${i}`]={order:0}):(a[`${r}${t}-${i}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${i/o*100}%`,maxWidth:`${i/o*100}%`}],a[`${r}${t}-push-${i}`]={insetInlineStart:`${i/o*100}%`},a[`${r}${t}-pull-${i}`]={insetInlineEnd:`${i/o*100}%`},a[`${r}${t}-offset-${i}`]={marginInlineStart:`${i/o*100}%`},a[`${r}${t}-order-${i}`]={order:i});return a[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},a},Vp=(e,t)=>eA(e,t),tA=(e,t,n)=>({[`@media (min-width: ${H(t)})`]:Object.assign({},Vp(e,n))}),nA=()=>({}),rA=()=>({}),oA=_t("Grid",Z5,nA),aA=_t("Grid",e=>{const t=bt(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[J5(t),Vp(t,""),Vp(t,"-xs"),Object.keys(n).map(r=>tA(t,n[r],r)).reduce((r,o)=>Object.assign(Object.assign({},r),o),{})]},rA);var iA=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:n,direction:r}=s.useContext(je),{gutter:o,wrap:a}=s.useContext(iI),{prefixCls:i,span:l,order:c,offset:u,push:d,pull:f,className:m,children:g,flex:y,style:h}=e,C=iA(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),p=n("col",i),[v,b,S]=aA(p),$={};let x={};lA.forEach(E=>{let I={};const T=e[E];typeof T=="number"?I.span=T:typeof T=="object"&&(I=T||{}),delete C[E],x=Object.assign(Object.assign({},x),{[`${p}-${E}-${I.span}`]:I.span!==void 0,[`${p}-${E}-order-${I.order}`]:I.order||I.order===0,[`${p}-${E}-offset-${I.offset}`]:I.offset||I.offset===0,[`${p}-${E}-push-${I.push}`]:I.push||I.push===0,[`${p}-${E}-pull-${I.pull}`]:I.pull||I.pull===0,[`${p}-rtl`]:r==="rtl"}),I.flex&&(x[`${p}-${E}-flex`]=!0,$[`--${p}-${E}-flex`]=rS(I.flex))});const w=V(p,{[`${p}-${l}`]:l!==void 0,[`${p}-order-${c}`]:c,[`${p}-offset-${u}`]:u,[`${p}-push-${d}`]:d,[`${p}-pull-${f}`]:f},m,x,b,S),O={};if(o&&o[0]>0){const E=o[0]/2;O.paddingLeft=E,O.paddingRight=E}return y&&(O.flex=rS(y),a===!1&&!O.minWidth&&(O.minWidth=0)),v(s.createElement("div",Object.assign({},C,{style:Object.assign(Object.assign(Object.assign({},O),h),$),className:w,ref:t}),g))}),lI=sA;var cA=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{if(typeof e=="string"&&r(e),typeof e=="object")for(let a=0;a{o()},[JSON.stringify(e),t]),n}const uA=s.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:o,className:a,style:i,children:l,gutter:c=0,wrap:u}=e,d=cA(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:m}=s.useContext(je),[g,y]=s.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[h,C]=s.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),p=oS(o,h),v=oS(r,h),b=s.useRef(c),S=lO();s.useEffect(()=>{const P=S.subscribe(N=>{C(N);const k=b.current||0;(!Array.isArray(k)&&typeof k=="object"||Array.isArray(k)&&(typeof k[0]=="object"||typeof k[1]=="object"))&&y(N)});return()=>S.unsubscribe(P)},[]);const $=()=>{const P=[void 0,void 0];return(Array.isArray(c)?c:[c,void 0]).forEach((k,j)=>{if(typeof k=="object")for(let B=0;B0?I[0]/-2:void 0;R&&(_.marginLeft=R,_.marginRight=R);const[M,L]=I;_.rowGap=L;const z=s.useMemo(()=>({gutter:[M,L],wrap:u}),[M,L,u]);return w(s.createElement(iI.Provider,{value:z},s.createElement("div",Object.assign({},d,{className:T,style:Object.assign(Object.assign({},_),i),ref:t}),l)))}),dA=uA;function fA(e){return!!(e.addonBefore||e.addonAfter)}function mA(e){return!!(e.prefix||e.suffix||e.allowClear)}function aS(e,t,n){var r=t.cloneNode(!0),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),o}function Cd(e,t,n,r){if(n){var o=t;if(t.type==="click"){o=aS(t,e,""),n(o);return}if(e.type!=="file"&&r!==void 0){o=aS(t,e,r),n(o);return}n(o)}}function gA(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var o=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}var sI=function(t){var n,r,o=t.inputElement,a=t.children,i=t.prefixCls,l=t.prefix,c=t.suffix,u=t.addonBefore,d=t.addonAfter,f=t.className,m=t.style,g=t.disabled,y=t.readOnly,h=t.focused,C=t.triggerFocus,p=t.allowClear,v=t.value,b=t.handleReset,S=t.hidden,$=t.classes,x=t.classNames,w=t.dataAttrs,O=t.styles,E=t.components,I=a??o,T=(E==null?void 0:E.affixWrapper)||"span",_=(E==null?void 0:E.groupWrapper)||"span",R=(E==null?void 0:E.wrapper)||"span",M=(E==null?void 0:E.groupAddon)||"span",L=s.useRef(null),z=function(W){var Y;(Y=L.current)!==null&&Y!==void 0&&Y.contains(W.target)&&(C==null||C())},P=mA(t),N=s.cloneElement(I,{value:v,className:V(I.props.className,!P&&(x==null?void 0:x.variant))||null});if(P){var k,j=null;if(p){var B,F=!g&&!y&&v,K="".concat(i,"-clear-icon"),X=at(p)==="object"&&p!==null&&p!==void 0&&p.clearIcon?p.clearIcon:"✖";j=G.createElement("span",{onClick:b,onMouseDown:function(W){return W.preventDefault()},className:V(K,(B={},D(B,"".concat(K,"-hidden"),!F),D(B,"".concat(K,"-has-suffix"),!!c),B)),role:"button",tabIndex:-1},X)}var U="".concat(i,"-affix-wrapper"),re=V(U,(k={},D(k,"".concat(i,"-disabled"),g),D(k,"".concat(U,"-disabled"),g),D(k,"".concat(U,"-focused"),h),D(k,"".concat(U,"-readonly"),y),D(k,"".concat(U,"-input-with-clear-btn"),c&&p&&v),k),$==null?void 0:$.affixWrapper,x==null?void 0:x.affixWrapper,x==null?void 0:x.variant),Z=(c||p)&&G.createElement("span",{className:V("".concat(i,"-suffix"),x==null?void 0:x.suffix),style:O==null?void 0:O.suffix},j,c);N=G.createElement(T,ce({className:re,style:O==null?void 0:O.affixWrapper,onClick:z},w==null?void 0:w.affixWrapper,{ref:L}),l&&G.createElement("span",{className:V("".concat(i,"-prefix"),x==null?void 0:x.prefix),style:O==null?void 0:O.prefix},l),N,Z)}if(fA(t)){var ne="".concat(i,"-group"),le="".concat(ne,"-addon"),ee="".concat(ne,"-wrapper"),q=V("".concat(i,"-wrapper"),ne,$==null?void 0:$.wrapper,x==null?void 0:x.wrapper),te=V(ee,D({},"".concat(ee,"-disabled"),g),$==null?void 0:$.group,x==null?void 0:x.groupWrapper);N=G.createElement(_,{className:te},G.createElement(R,{className:q},u&&G.createElement(M,{className:le},u),N,d&&G.createElement(M,{className:le},d)))}return G.cloneElement(N,{className:V((n=N.props)===null||n===void 0?void 0:n.className,f)||null,style:A(A({},(r=N.props)===null||r===void 0?void 0:r.style),m),hidden:S})},pA=["show"];function cI(e,t){return s.useMemo(function(){var n={};t&&(n.show=at(t)==="object"&&t.formatter?t.formatter:!!t),n=A(A({},n),e);var r=n,o=r.show,a=tt(r,pA);return A(A({},a),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:a.strategy||function(i){return i.length}})},[e,t])}var vA=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],hA=s.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,a=e.onBlur,i=e.onPressEnter,l=e.onKeyDown,c=e.prefixCls,u=c===void 0?"rc-input":c,d=e.disabled,f=e.htmlSize,m=e.className,g=e.maxLength,y=e.suffix,h=e.showCount,C=e.count,p=e.type,v=p===void 0?"text":p,b=e.classes,S=e.classNames,$=e.styles,x=e.onCompositionStart,w=e.onCompositionEnd,O=tt(e,vA),E=s.useState(!1),I=Q(E,2),T=I[0],_=I[1],R=s.useRef(!1),M=s.useRef(null),L=function(ie){M.current&&gA(M.current,ie)},z=Jt(e.defaultValue,{value:e.value}),P=Q(z,2),N=P[0],k=P[1],j=N==null?"":String(N),B=s.useState(null),F=Q(B,2),K=F[0],X=F[1],U=cI(C,h),re=U.max||g,Z=U.strategy(j),ne=!!re&&Z>re;s.useImperativeHandle(t,function(){return{focus:L,blur:function(){var ie;(ie=M.current)===null||ie===void 0||ie.blur()},setSelectionRange:function(ie,pe,me){var ge;(ge=M.current)===null||ge===void 0||ge.setSelectionRange(ie,pe,me)},select:function(){var ie;(ie=M.current)===null||ie===void 0||ie.select()},input:M.current}}),s.useEffect(function(){_(function(ae){return ae&&d?!1:ae})},[d]);var le=function(ie,pe,me){var ge=pe;if(!R.current&&U.exceedFormatter&&U.max&&U.strategy(pe)>U.max){if(ge=U.exceedFormatter(pe,{max:U.max}),pe!==ge){var ve,$e;X([((ve=M.current)===null||ve===void 0?void 0:ve.selectionStart)||0,(($e=M.current)===null||$e===void 0?void 0:$e.selectionEnd)||0])}}else if(me.source==="compositionEnd")return;k(ge),M.current&&Cd(M.current,ie,r,ge)};s.useEffect(function(){if(K){var ae;(ae=M.current)===null||ae===void 0||ae.setSelectionRange.apply(ae,ue(K))}},[K]);var ee=function(ie){le(ie,ie.target.value,{source:"change"})},q=function(ie){R.current=!1,le(ie,ie.currentTarget.value,{source:"compositionEnd"}),w==null||w(ie)},te=function(ie){i&&ie.key==="Enter"&&i(ie),l==null||l(ie)},J=function(ie){_(!0),o==null||o(ie)},W=function(ie){_(!1),a==null||a(ie)},Y=function(ie){k(""),L(),M.current&&Cd(M.current,ie,r)},de=ne&&"".concat(u,"-out-of-range"),oe=function(){var ie=Kt(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames"]);return G.createElement("input",ce({autoComplete:n},ie,{onChange:ee,onFocus:J,onBlur:W,onKeyDown:te,className:V(u,D({},"".concat(u,"-disabled"),d),S==null?void 0:S.input),style:$==null?void 0:$.input,ref:M,size:f,type:v,onCompositionStart:function(me){R.current=!0,x==null||x(me)},onCompositionEnd:q}))},se=function(){var ie=Number(re)>0;if(y||U.show){var pe=U.showFormatter?U.showFormatter({value:j,count:Z,maxLength:re}):"".concat(Z).concat(ie?" / ".concat(re):"");return G.createElement(G.Fragment,null,U.show&&G.createElement("span",{className:V("".concat(u,"-show-count-suffix"),D({},"".concat(u,"-show-count-has-suffix"),!!y),S==null?void 0:S.count),style:A({},$==null?void 0:$.count)},pe),y)}return null};return G.createElement(sI,ce({},O,{prefixCls:u,className:V(m,de),handleReset:Y,value:j,focused:T,triggerFocus:L,suffix:se(),disabled:d,classes:b,classNames:S,styles:$}),oe())});const yA=e=>{const{getPrefixCls:t,direction:n}=s.useContext(je),{prefixCls:r,className:o}=e,a=t("input-group",r),i=t("input"),[l,c]=i0(i),u=V(a,{[`${a}-lg`]:e.size==="large",[`${a}-sm`]:e.size==="small",[`${a}-compact`]:e.compact,[`${a}-rtl`]:n==="rtl"},c,o),d=s.useContext(Qn),f=s.useMemo(()=>Object.assign(Object.assign({},d),{isFormItemInput:!1}),[d]);return l(s.createElement("span",{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},s.createElement(Qn.Provider,{value:f},e.children)))},bA=yA,CA=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:G.createElement(ml,null)}),t},uI=CA;function dI(e,t){const n=s.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,a,i,l;!((o=e.current)===null||o===void 0)&&o.input&&((a=e.current)===null||a===void 0?void 0:a.input.getAttribute("type"))==="password"&&(!((i=e.current)===null||i===void 0)&&i.input.hasAttribute("value"))&&((l=e.current)===null||l===void 0||l.input.removeAttribute("value"))}))};return s.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o)})),[]),r}function SA(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var xA=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n;const{prefixCls:r,bordered:o=!0,status:a,size:i,disabled:l,onBlur:c,onFocus:u,suffix:d,allowClear:f,addonAfter:m,addonBefore:g,className:y,style:h,styles:C,rootClassName:p,onChange:v,classNames:b,variant:S}=e,$=xA(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:x,direction:w,input:O}=G.useContext(je),E=x("input",r),I=s.useRef(null),T=gn(E),[_,R,M]=i0(E,T),{compactSize:L,compactItemClassnames:z}=ic(E,w),P=sr(J=>{var W;return(W=i??L)!==null&&W!==void 0?W:J}),N=G.useContext(Ao),k=l??N,{status:j,hasFeedback:B,feedbackIcon:F}=s.useContext(Qn),K=hf(j,a),X=SA(e)||!!B;s.useRef(X);const U=dI(I,!0),re=J=>{U(),c==null||c(J)},Z=J=>{U(),u==null||u(J)},ne=J=>{U(),v==null||v(J)},le=(B||d)&&G.createElement(G.Fragment,null,d,B&&F),ee=uI(f??(O==null?void 0:O.allowClear)),[q,te]=Hh(S,o);return _(G.createElement(hA,Object.assign({ref:Br(t,I),prefixCls:E,autoComplete:O==null?void 0:O.autoComplete},$,{disabled:k,onBlur:re,onFocus:Z,style:Object.assign(Object.assign({},O==null?void 0:O.style),h),styles:Object.assign(Object.assign({},O==null?void 0:O.styles),C),suffix:le,allowClear:ee,className:V(y,p,M,T,z,O==null?void 0:O.className),onChange:ne,addonAfter:m&&G.createElement(js,null,G.createElement(Np,{override:!0,status:!0},m)),addonBefore:g&&G.createElement(js,null,G.createElement(Np,{override:!0,status:!0},g)),classNames:Object.assign(Object.assign(Object.assign({},b),O==null?void 0:O.classNames),{input:V({[`${E}-sm`]:P==="small",[`${E}-lg`]:P==="large",[`${E}-rtl`]:w==="rtl"},b==null?void 0:b.input,(n=O==null?void 0:O.classNames)===null||n===void 0?void 0:n.input,R),variant:V({[`${E}-${q}`]:te},fd(E,K)),affixWrapper:V({[`${E}-affix-wrapper-sm`]:P==="small",[`${E}-affix-wrapper-lg`]:P==="large",[`${E}-affix-wrapper-rtl`]:w==="rtl"},R),wrapper:V({[`${E}-group-rtl`]:w==="rtl"},R),groupWrapper:V({[`${E}-group-wrapper-sm`]:P==="small",[`${E}-group-wrapper-lg`]:P==="large",[`${E}-group-wrapper-rtl`]:w==="rtl",[`${E}-group-wrapper-${q}`]:te},fd(`${E}-group-wrapper`,K,B),R)})})))}),Rf=wA,EA=e=>{const{componentCls:t,paddingXS:n}=e;return{[`${t}`]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},OA=_t(["Input","OTP"],e=>{const t=bt(e,t0(e));return[EA(t)]},n0);var IA=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{value:n,onChange:r,onActiveChange:o,index:a}=e,i=IA(e,["value","onChange","onActiveChange","index"]),l=m=>{r(a,m.target.value)},c=s.useRef(null);s.useImperativeHandle(t,()=>c.current);const u=()=>{Pt(()=>{var m;const g=(m=c.current)===null||m===void 0?void 0:m.input;document.activeElement===g&&g&&g.select()})},d=m=>{let{key:g}=m;g==="ArrowLeft"?o(a-1):g==="ArrowRight"&&o(a+1),u()},f=m=>{m.key==="Backspace"&&!n&&o(a-1),u()};return s.createElement(Rf,Object.assign({},i,{ref:c,value:n,onInput:l,onFocus:u,onKeyDown:d,onKeyUp:f,onMouseDown:u,onMouseUp:u}))}),RA=PA;var NA=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,length:r=6,size:o,defaultValue:a,value:i,onChange:l,formatter:c,variant:u,disabled:d,status:f,autoFocus:m}=e,g=NA(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus"]),{getPrefixCls:y,direction:h}=s.useContext(je),C=y("otp",n),p=qn(g,{aria:!0,data:!0,attr:!0}),v=gn(C),[b,S,$]=OA(C,v),x=sr(j=>o??j),w=s.useContext(Qn),O=hf(w.status,f),E=s.useMemo(()=>Object.assign(Object.assign({},w),{status:O,hasFeedback:!1,feedbackIcon:null}),[w,O]),I=s.useRef(null),T=s.useRef({});s.useImperativeHandle(t,()=>({focus:()=>{var j;(j=T.current[0])===null||j===void 0||j.focus()},blur:()=>{var j;for(let B=0;Bc?c(j):j,[R,M]=s.useState(Yc(_(a||"")));s.useEffect(()=>{i!==void 0&&M(Yc(i))},[i]);const L=Ft(j=>{M(j),l&&j.length===r&&j.every(B=>B)&&j.some((B,F)=>R[F]!==B)&&l(j.join(""))}),z=Ft((j,B)=>{let F=ue(R);for(let X=0;X=0&&!F[X];X-=1)F.pop();const K=_(F.map(X=>X||" ").join(""));return F=Yc(K).map((X,U)=>X===" "&&!F[U]?F[U]:X),F}),P=(j,B)=>{var F;const K=z(j,B),X=Math.min(j+B.length,r-1);X!==j&&((F=T.current[X])===null||F===void 0||F.focus()),L(K)},N=j=>{var B;(B=T.current[j])===null||B===void 0||B.focus()},k={variant:u,disabled:d,status:O};return b(s.createElement("div",Object.assign({},p,{ref:I,className:V(C,{[`${C}-sm`]:x==="small",[`${C}-lg`]:x==="large",[`${C}-rtl`]:h==="rtl"},$,S)}),s.createElement(Qn.Provider,{value:E},new Array(r).fill(0).map((j,B)=>{const F=`otp-${B}`,K=R[B]||"";return s.createElement(RA,Object.assign({ref:X=>{T.current[B]=X},key:F,index:B,size:x,htmlSize:1,className:`${C}-input`,onChange:P,value:K,onActiveChange:N,autoFocus:B===0&&m},k))}))))}),MA=TA;var _A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};const zA=_A;var jA=function(t,n){return s.createElement($t,ce({},t,{ref:n,icon:zA}))},LA=s.forwardRef(jA);const kA=LA;var DA={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};const BA=DA;var FA=function(t,n){return s.createElement($t,ce({},t,{ref:n,icon:BA}))},AA=s.forwardRef(FA);const HA=AA;var VA=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);oe?s.createElement(HA,null):s.createElement(kA,null),WA={click:"onClick",hover:"onMouseOver"},GA=s.forwardRef((e,t)=>{const{visibilityToggle:n=!0}=e,r=typeof n=="object"&&n.visible!==void 0,[o,a]=s.useState(()=>r?n.visible:!1),i=s.useRef(null);s.useEffect(()=>{r&&a(n.visible)},[r,n]);const l=dI(i),c=()=>{const{disabled:$}=e;$||(o&&l(),a(x=>{var w;const O=!x;return typeof n=="object"&&((w=n.onVisibleChange)===null||w===void 0||w.call(n,O)),O}))},u=$=>{const{action:x="click",iconRender:w=KA}=e,O=WA[x]||"",E=w(o),I={[O]:c,className:`${$}-icon`,key:"passwordIcon",onMouseDown:T=>{T.preventDefault()},onMouseUp:T=>{T.preventDefault()}};return s.cloneElement(s.isValidElement(E)?E:s.createElement("span",null,E),I)},{className:d,prefixCls:f,inputPrefixCls:m,size:g}=e,y=VA(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:h}=s.useContext(je),C=h("input",m),p=h("input-password",f),v=n&&u(p),b=V(p,d,{[`${p}-${g}`]:!!g}),S=Object.assign(Object.assign({},Kt(y,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:b,prefixCls:C,suffix:v});return g&&(S.size=g),s.createElement(Rf,Object.assign({ref:Br(t,i)},S))}),UA=GA;var qA=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,inputPrefixCls:r,className:o,size:a,suffix:i,enterButton:l=!1,addonAfter:c,loading:u,disabled:d,onSearch:f,onChange:m,onCompositionStart:g,onCompositionEnd:y}=e,h=qA(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:C,direction:p}=s.useContext(je),v=s.useRef(!1),b=C("input-search",n),S=C("input",r),{compactSize:$}=ic(b,p),x=sr(j=>{var B;return(B=a??$)!==null&&B!==void 0?B:j}),w=s.useRef(null),O=j=>{j&&j.target&&j.type==="click"&&f&&f(j.target.value,j,{source:"clear"}),m&&m(j)},E=j=>{var B;document.activeElement===((B=w.current)===null||B===void 0?void 0:B.input)&&j.preventDefault()},I=j=>{var B,F;f&&f((F=(B=w.current)===null||B===void 0?void 0:B.input)===null||F===void 0?void 0:F.value,j,{source:"input"})},T=j=>{v.current||u||I(j)},_=typeof l=="boolean"?s.createElement(Vh,null):null,R=`${b}-button`;let M;const L=l||{},z=L.type&&L.type.__ANT_BUTTON===!0;z||L.type==="button"?M=Xn(L,Object.assign({onMouseDown:E,onClick:j=>{var B,F;(F=(B=L==null?void 0:L.props)===null||B===void 0?void 0:B.onClick)===null||F===void 0||F.call(B,j),I(j)},key:"enterButton"},z?{className:R,size:x}:{})):M=s.createElement(Lo,{className:R,type:l?"primary":void 0,size:x,disabled:d,key:"enterButton",onMouseDown:E,onClick:I,loading:u,icon:_},l),c&&(M=[M,Xn(c,{key:"addonAfter"})]);const P=V(b,{[`${b}-rtl`]:p==="rtl",[`${b}-${x}`]:!!x,[`${b}-with-button`]:!!l},o),N=j=>{v.current=!0,g==null||g(j)},k=j=>{v.current=!1,y==null||y(j)};return s.createElement(Rf,Object.assign({ref:Br(w,t),onPressEnter:T},h,{size:x,onCompositionStart:N,onCompositionEnd:k,prefixCls:S,addonAfter:M,suffix:i,onChange:O,className:P,disabled:d}))}),YA=XA;var QA=` min-height:0 !important; max-height:none !important; height:0 !important; @@ -307,19 +307,19 @@ html body { top:0 !important; right:0 !important; pointer-events: none !important; -`,Z8=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],Am={},Rr;function J8(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Am[n])return Am[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),a=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l=Z8.map(function(u){return"".concat(u,":").concat(r.getPropertyValue(u))}).join(";"),c={sizingStyle:l,paddingSize:a,borderSize:i,boxSizing:o};return t&&n&&(Am[n]=c),c}function eH(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Rr||(Rr=document.createElement("textarea"),Rr.setAttribute("tab-index","-1"),Rr.setAttribute("aria-hidden","true"),document.body.appendChild(Rr)),e.getAttribute("wrap")?Rr.setAttribute("wrap",e.getAttribute("wrap")):Rr.removeAttribute("wrap");var o=J8(e,t),a=o.paddingSize,i=o.borderSize,l=o.boxSizing,c=o.sizingStyle;Rr.setAttribute("style","".concat(c,";").concat(Q8)),Rr.value=e.value||e.placeholder||"";var u=void 0,d=void 0,f,m=Rr.scrollHeight;if(l==="border-box"?m+=i:l==="content-box"&&(m-=a),n!==null||r!==null){Rr.value=" ";var g=Rr.scrollHeight-a;n!==null&&(u=g*n,l==="border-box"&&(u=u+a+i),m=Math.max(u,m)),r!==null&&(d=g*r,l==="border-box"&&(d=d+a+i),f=m>d?"":"hidden",m=Math.min(d,m))}var y={height:m,overflowY:f,resize:"none"};return u&&(y.minHeight=u),d&&(y.maxHeight=d),y}var tH=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Hm=0,Vm=1,Km=2,nH=s.forwardRef(function(e,t){var n=e,r=n.prefixCls;n.onPressEnter;var o=n.defaultValue,a=n.value,i=n.autoSize,l=n.onResize,c=n.className,u=n.style,d=n.disabled,f=n.onChange;n.onInternalAutoSize;var m=tt(n,tH),g=Jt(o,{value:a,postState:function(X){return X??""}}),y=Q(g,2),h=y[0],C=y[1],p=function(X){C(X.target.value),f==null||f(X)},v=s.useRef();s.useImperativeHandle(t,function(){return{textArea:v.current}});var b=s.useMemo(function(){return i&&at(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),S=Q(b,2),$=S[0],x=S[1],w=!!i,O=function(){try{if(document.activeElement===v.current){var X=v.current,U=X.selectionStart,re=X.selectionEnd,Z=X.scrollTop;v.current.setSelectionRange(U,re),v.current.scrollTop=Z}}catch{}},E=s.useState(Km),I=Q(E,2),T=I[0],_=I[1],R=s.useState(),M=Q(R,2),L=M[0],z=M[1],P=function(){_(Hm)};Mt(function(){w&&P()},[a,$,x,w]),Mt(function(){if(T===Hm)_(Vm);else if(T===Vm){var K=eH(v.current,!1,$,x);_(Km),z(K)}else O()},[T]);var N=s.useRef(),k=function(){It.cancel(N.current)},j=function(X){T===Km&&(l==null||l(X),i&&(k(),N.current=It(function(){P()})))};s.useEffect(function(){return k},[]);var B=w?L:null,F=A(A({},u),B);return(T===Hm||T===Vm)&&(F.overflowY="hidden",F.overflowX="hidden"),s.createElement(ir,{onResize:j,disabled:!(i||l)},s.createElement("textarea",ce({},m,{ref:v,style:F,className:V(r,c,D({},"".concat(r,"-disabled"),d)),disabled:d,value:h,onChange:p})))}),rH=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],oH=G.forwardRef(function(e,t){var n,r,o=e.defaultValue,a=e.value,i=e.onFocus,l=e.onBlur,c=e.onChange,u=e.allowClear,d=e.maxLength,f=e.onCompositionStart,m=e.onCompositionEnd,g=e.suffix,y=e.prefixCls,h=y===void 0?"rc-textarea":y,C=e.showCount,p=e.count,v=e.className,b=e.style,S=e.disabled,$=e.hidden,x=e.classNames,w=e.styles,O=e.onResize,E=tt(e,rH),I=Jt(o,{value:a,defaultValue:o}),T=Q(I,2),_=T[0],R=T[1],M=_==null?"":String(_),L=G.useState(!1),z=Q(L,2),P=z[0],N=z[1],k=G.useRef(!1),j=G.useState(null),B=Q(j,2),F=B[0],K=B[1],X=s.useRef(null),U=function(){var Se;return(Se=X.current)===null||Se===void 0?void 0:Se.textArea},re=function(){U().focus()};s.useImperativeHandle(t,function(){return{resizableTextArea:X.current,focus:re,blur:function(){U().blur()}}}),s.useEffect(function(){N(function(_e){return!S&&_e})},[S]);var Z=G.useState(null),ne=Q(Z,2),le=ne[0],ee=ne[1];G.useEffect(function(){if(le){var _e;(_e=U()).setSelectionRange.apply(_e,ue(le))}},[le]);var q=cI(p,C),te=(n=q.max)!==null&&n!==void 0?n:d,J=Number(te)>0,W=q.strategy(M),Y=!!te&&W>te,de=function(Se,Ce){var Oe=Ce;!k.current&&q.exceedFormatter&&q.max&&q.strategy(Ce)>q.max&&(Oe=q.exceedFormatter(Ce,{max:q.max}),Ce!==Oe&&ee([U().selectionStart||0,U().selectionEnd||0])),R(Oe),Cd(Se.currentTarget,Se,c,Oe)},oe=function(Se){k.current=!0,f==null||f(Se)},se=function(Se){k.current=!1,de(Se,Se.currentTarget.value),m==null||m(Se)},ae=function(Se){de(Se,Se.target.value)},ie=function(Se){var Ce=E.onPressEnter,Oe=E.onKeyDown;Se.key==="Enter"&&Ce&&Ce(Se),Oe==null||Oe(Se)},pe=function(Se){N(!0),i==null||i(Se)},me=function(Se){N(!1),l==null||l(Se)},ge=function(Se){R(""),re(),Cd(U(),Se,c)},ve=g,$e;q.show&&(q.showFormatter?$e=q.showFormatter({value:M,count:W,maxLength:te}):$e="".concat(W).concat(J?" / ".concat(te):""),ve=G.createElement(G.Fragment,null,ve,G.createElement("span",{className:V("".concat(h,"-data-count"),x==null?void 0:x.count),style:w==null?void 0:w.count},$e)));var we=function(Se){var Ce;O==null||O(Se),(Ce=U())!==null&&Ce!==void 0&&Ce.style.height&&K(!0)},We=!E.autoSize&&!C&&!u;return G.createElement(sI,{value:M,allowClear:u,handleReset:ge,suffix:ve,prefixCls:h,classNames:A(A({},x),{},{affixWrapper:V(x==null?void 0:x.affixWrapper,(r={},D(r,"".concat(h,"-show-count"),C),D(r,"".concat(h,"-textarea-allow-clear"),u),r))}),disabled:S,focused:P,className:V(v,Y&&"".concat(h,"-out-of-range")),style:A(A({},b),F&&!We?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof $e=="string"?$e:void 0}},hidden:$},G.createElement(nH,ce({},E,{maxLength:d,onKeyDown:ie,onChange:ae,onFocus:pe,onBlur:me,onCompositionStart:oe,onCompositionEnd:se,className:V(x==null?void 0:x.textarea),style:A(A({},w==null?void 0:w.textarea),{},{resize:b==null?void 0:b.resize}),disabled:S,prefixCls:h,onResize:we,ref:X})))}),aH=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,r;const{prefixCls:o,bordered:a=!0,size:i,disabled:l,status:c,allowClear:u,classNames:d,rootClassName:f,className:m,style:g,styles:y,variant:h}=e,C=aH(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:p,direction:v,textArea:b}=s.useContext(je),S=sr(i),$=s.useContext(Ao),x=l??$,{status:w,hasFeedback:O,feedbackIcon:E}=s.useContext(Qn),I=hf(w,c),T=s.useRef(null);s.useImperativeHandle(t,()=>{var j;return{resizableTextArea:(j=T.current)===null||j===void 0?void 0:j.resizableTextArea,focus:B=>{var F,K;$8((K=(F=T.current)===null||F===void 0?void 0:F.resizableTextArea)===null||K===void 0?void 0:K.textArea,B)},blur:()=>{var B;return(B=T.current)===null||B===void 0?void 0:B.blur()}}});const _=p("input",o),R=gn(_),[M,L,z]=i0(_,R),[P,N]=Hh(h,a),k=uI(u??(b==null?void 0:b.allowClear));return M(s.createElement(oH,Object.assign({autoComplete:b==null?void 0:b.autoComplete},C,{style:Object.assign(Object.assign({},b==null?void 0:b.style),g),styles:Object.assign(Object.assign({},b==null?void 0:b.styles),y),disabled:x,allowClear:k,className:V(z,R,m,f,b==null?void 0:b.className),classNames:Object.assign(Object.assign(Object.assign({},d),b==null?void 0:b.classNames),{textarea:V({[`${_}-sm`]:S==="small",[`${_}-lg`]:S==="large"},L,d==null?void 0:d.textarea,(n=b==null?void 0:b.classNames)===null||n===void 0?void 0:n.textarea),variant:V({[`${_}-${P}`]:N},fd(_,I)),affixWrapper:V(`${_}-textarea-affix-wrapper`,{[`${_}-affix-wrapper-rtl`]:v==="rtl",[`${_}-affix-wrapper-sm`]:S==="small",[`${_}-affix-wrapper-lg`]:S==="large",[`${_}-textarea-show-count`]:e.showCount||((r=e.count)===null||r===void 0?void 0:r.show)},L)}),prefixCls:_,suffix:O&&s.createElement("span",{className:`${_}-textarea-suffix`},E),ref:T})))}),lH=iH,xl=Rf;xl.Group=b8;xl.Search=Y8;xl.TextArea=lH;xl.Password=U8;xl.OTP=M8;const sH=xl;function Sd(e){return["small","middle","large"].includes(e)}function iS(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const fI=G.createContext({latestIndex:0}),cH=fI.Provider,uH=e=>{let{className:t,index:n,children:r,split:o,style:a}=e;const{latestIndex:i}=s.useContext(fI);return r==null?null:s.createElement(s.Fragment,null,s.createElement("div",{className:t,style:a},r),n{var n,r;const{getPrefixCls:o,space:a,direction:i}=s.useContext(je),{size:l=(a==null?void 0:a.size)||"small",align:c,className:u,rootClassName:d,children:f,direction:m="horizontal",prefixCls:g,split:y,style:h,wrap:C=!1,classNames:p,styles:v}=e,b=fH(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[S,$]=Array.isArray(l)?l:[l,l],x=Sd($),w=Sd(S),O=iS($),E=iS(S),I=lr(f,{keepEmpty:!0}),T=c===void 0&&m==="horizontal"?"center":c,_=o("space",g),[R,M,L]=Aw(_),z=V(_,a==null?void 0:a.className,M,`${_}-${m}`,{[`${_}-rtl`]:i==="rtl",[`${_}-align-${T}`]:T,[`${_}-gap-row-${$}`]:x,[`${_}-gap-col-${S}`]:w},u,d,L),P=V(`${_}-item`,(n=p==null?void 0:p.item)!==null&&n!==void 0?n:(r=a==null?void 0:a.classNames)===null||r===void 0?void 0:r.item);let N=0;const k=I.map((F,K)=>{var X,U;F!=null&&(N=K);const re=F&&F.key||`${P}-${K}`;return s.createElement(dH,{className:P,key:re,index:K,split:y,style:(X=v==null?void 0:v.item)!==null&&X!==void 0?X:(U=a==null?void 0:a.styles)===null||U===void 0?void 0:U.item},F)}),j=s.useMemo(()=>({latestIndex:N}),[N]);if(I.length===0)return null;const B={};return C&&(B.flexWrap="wrap"),!w&&E&&(B.columnGap=S),!x&&O&&(B.rowGap=$),R(s.createElement("div",Object.assign({ref:t,className:z,style:Object.assign(Object.assign(Object.assign({},B),a==null?void 0:a.style),h)},b),s.createElement(cH,{value:j},k)))}),mI=mH;mI.Compact=m4;const gH=mI;var pH=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{getPopupContainer:t,getPrefixCls:n,direction:r}=s.useContext(je),{prefixCls:o,type:a="default",danger:i,disabled:l,loading:c,onClick:u,htmlType:d,children:f,className:m,menu:g,arrow:y,autoFocus:h,overlay:C,trigger:p,align:v,open:b,onOpenChange:S,placement:$,getPopupContainer:x,href:w,icon:O=s.createElement(Jh,null),title:E,buttonsRender:I=ne=>ne,mouseEnterDelay:T,mouseLeaveDelay:_,overlayClassName:R,overlayStyle:M,destroyPopupOnHide:L,dropdownRender:z}=e,P=pH(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),N=n("dropdown",o),k=`${N}-button`,j={menu:g,arrow:y,autoFocus:h,align:v,disabled:l,trigger:l?[]:p,onOpenChange:S,getPopupContainer:x||t,mouseEnterDelay:T,mouseLeaveDelay:_,overlayClassName:R,overlayStyle:M,destroyPopupOnHide:L,dropdownRender:z},{compactSize:B,compactItemClassnames:F}=ic(N,r),K=V(k,F,m);"overlay"in e&&(j.overlay=C),"open"in e&&(j.open=b),"placement"in e?j.placement=$:j.placement=r==="rtl"?"bottomLeft":"bottomRight";const X=s.createElement(Lo,{type:a,danger:i,disabled:l,loading:c,onClick:u,htmlType:d,href:w,title:E},f),U=s.createElement(Lo,{type:a,danger:i,icon:O}),[re,Z]=I([X,U]);return s.createElement(gH.Compact,Object.assign({className:K,size:B,block:!0},P),re,s.createElement(DO,Object.assign({},j),Z))};gI.__ANT_BUTTON=!0;const vH=gI,pI=DO;pI.Button=vH;const vI=pI,hI=["wrap","nowrap","wrap-reverse"],yI=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],bI=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],hH=(e,t)=>{const n={};return hI.forEach(r=>{n[`${e}-wrap-${r}`]=t.wrap===r}),n},yH=(e,t)=>{const n={};return bI.forEach(r=>{n[`${e}-align-${r}`]=t.align===r}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},bH=(e,t)=>{const n={};return yI.forEach(r=>{n[`${e}-justify-${r}`]=t.justify===r}),n};function CH(e,t){return V(Object.assign(Object.assign(Object.assign({},hH(e,t)),yH(e,t)),bH(e,t)))}const SH=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},xH=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},$H=e=>{const{componentCls:t}=e,n={};return hI.forEach(r=>{n[`${t}-wrap-${r}`]={flexWrap:r}}),n},wH=e=>{const{componentCls:t}=e,n={};return bI.forEach(r=>{n[`${t}-align-${r}`]={alignItems:r}}),n},EH=e=>{const{componentCls:t}=e,n={};return yI.forEach(r=>{n[`${t}-justify-${r}`]={justifyContent:r}}),n},OH=()=>({}),IH=_t("Flex",e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,o=bt(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[SH(o),xH(o),$H(o),wH(o),EH(o)]},OH,{resetStyle:!1});var PH=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,rootClassName:r,className:o,style:a,flex:i,gap:l,children:c,vertical:u=!1,component:d="div"}=e,f=PH(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:m,direction:g,getPrefixCls:y}=G.useContext(je),h=y("flex",n),[C,p,v]=IH(h),b=u??(m==null?void 0:m.vertical),S=V(o,r,m==null?void 0:m.className,h,p,v,CH(h,e),{[`${h}-rtl`]:g==="rtl",[`${h}-gap-${l}`]:Sd(l),[`${h}-vertical`]:b}),$=Object.assign(Object.assign({},m==null?void 0:m.style),a);return i&&($.flex=i),l&&!Sd(l)&&($.gap=l),C(G.createElement(d,Object.assign({ref:t,className:S,style:$},Kt(f,["justify","wrap","align"])),c))}),MU=RH;function xd(e){const[t,n]=s.useState(e);return s.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const NH=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut}, +`,ZA=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],Am={},Rr;function JA(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Am[n])return Am[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),a=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l=ZA.map(function(u){return"".concat(u,":").concat(r.getPropertyValue(u))}).join(";"),c={sizingStyle:l,paddingSize:a,borderSize:i,boxSizing:o};return t&&n&&(Am[n]=c),c}function eH(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Rr||(Rr=document.createElement("textarea"),Rr.setAttribute("tab-index","-1"),Rr.setAttribute("aria-hidden","true"),document.body.appendChild(Rr)),e.getAttribute("wrap")?Rr.setAttribute("wrap",e.getAttribute("wrap")):Rr.removeAttribute("wrap");var o=JA(e,t),a=o.paddingSize,i=o.borderSize,l=o.boxSizing,c=o.sizingStyle;Rr.setAttribute("style","".concat(c,";").concat(QA)),Rr.value=e.value||e.placeholder||"";var u=void 0,d=void 0,f,m=Rr.scrollHeight;if(l==="border-box"?m+=i:l==="content-box"&&(m-=a),n!==null||r!==null){Rr.value=" ";var g=Rr.scrollHeight-a;n!==null&&(u=g*n,l==="border-box"&&(u=u+a+i),m=Math.max(u,m)),r!==null&&(d=g*r,l==="border-box"&&(d=d+a+i),f=m>d?"":"hidden",m=Math.min(d,m))}var y={height:m,overflowY:f,resize:"none"};return u&&(y.minHeight=u),d&&(y.maxHeight=d),y}var tH=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Hm=0,Vm=1,Km=2,nH=s.forwardRef(function(e,t){var n=e,r=n.prefixCls;n.onPressEnter;var o=n.defaultValue,a=n.value,i=n.autoSize,l=n.onResize,c=n.className,u=n.style,d=n.disabled,f=n.onChange;n.onInternalAutoSize;var m=tt(n,tH),g=Jt(o,{value:a,postState:function(X){return X??""}}),y=Q(g,2),h=y[0],C=y[1],p=function(X){C(X.target.value),f==null||f(X)},v=s.useRef();s.useImperativeHandle(t,function(){return{textArea:v.current}});var b=s.useMemo(function(){return i&&at(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),S=Q(b,2),$=S[0],x=S[1],w=!!i,O=function(){try{if(document.activeElement===v.current){var X=v.current,U=X.selectionStart,re=X.selectionEnd,Z=X.scrollTop;v.current.setSelectionRange(U,re),v.current.scrollTop=Z}}catch{}},E=s.useState(Km),I=Q(E,2),T=I[0],_=I[1],R=s.useState(),M=Q(R,2),L=M[0],z=M[1],P=function(){_(Hm)};Mt(function(){w&&P()},[a,$,x,w]),Mt(function(){if(T===Hm)_(Vm);else if(T===Vm){var K=eH(v.current,!1,$,x);_(Km),z(K)}else O()},[T]);var N=s.useRef(),k=function(){Pt.cancel(N.current)},j=function(X){T===Km&&(l==null||l(X),i&&(k(),N.current=Pt(function(){P()})))};s.useEffect(function(){return k},[]);var B=w?L:null,F=A(A({},u),B);return(T===Hm||T===Vm)&&(F.overflowY="hidden",F.overflowX="hidden"),s.createElement(ir,{onResize:j,disabled:!(i||l)},s.createElement("textarea",ce({},m,{ref:v,style:F,className:V(r,c,D({},"".concat(r,"-disabled"),d)),disabled:d,value:h,onChange:p})))}),rH=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],oH=G.forwardRef(function(e,t){var n,r,o=e.defaultValue,a=e.value,i=e.onFocus,l=e.onBlur,c=e.onChange,u=e.allowClear,d=e.maxLength,f=e.onCompositionStart,m=e.onCompositionEnd,g=e.suffix,y=e.prefixCls,h=y===void 0?"rc-textarea":y,C=e.showCount,p=e.count,v=e.className,b=e.style,S=e.disabled,$=e.hidden,x=e.classNames,w=e.styles,O=e.onResize,E=tt(e,rH),I=Jt(o,{value:a,defaultValue:o}),T=Q(I,2),_=T[0],R=T[1],M=_==null?"":String(_),L=G.useState(!1),z=Q(L,2),P=z[0],N=z[1],k=G.useRef(!1),j=G.useState(null),B=Q(j,2),F=B[0],K=B[1],X=s.useRef(null),U=function(){var Se;return(Se=X.current)===null||Se===void 0?void 0:Se.textArea},re=function(){U().focus()};s.useImperativeHandle(t,function(){return{resizableTextArea:X.current,focus:re,blur:function(){U().blur()}}}),s.useEffect(function(){N(function(_e){return!S&&_e})},[S]);var Z=G.useState(null),ne=Q(Z,2),le=ne[0],ee=ne[1];G.useEffect(function(){if(le){var _e;(_e=U()).setSelectionRange.apply(_e,ue(le))}},[le]);var q=cI(p,C),te=(n=q.max)!==null&&n!==void 0?n:d,J=Number(te)>0,W=q.strategy(M),Y=!!te&&W>te,de=function(Se,Ce){var Oe=Ce;!k.current&&q.exceedFormatter&&q.max&&q.strategy(Ce)>q.max&&(Oe=q.exceedFormatter(Ce,{max:q.max}),Ce!==Oe&&ee([U().selectionStart||0,U().selectionEnd||0])),R(Oe),Cd(Se.currentTarget,Se,c,Oe)},oe=function(Se){k.current=!0,f==null||f(Se)},se=function(Se){k.current=!1,de(Se,Se.currentTarget.value),m==null||m(Se)},ae=function(Se){de(Se,Se.target.value)},ie=function(Se){var Ce=E.onPressEnter,Oe=E.onKeyDown;Se.key==="Enter"&&Ce&&Ce(Se),Oe==null||Oe(Se)},pe=function(Se){N(!0),i==null||i(Se)},me=function(Se){N(!1),l==null||l(Se)},ge=function(Se){R(""),re(),Cd(U(),Se,c)},ve=g,$e;q.show&&(q.showFormatter?$e=q.showFormatter({value:M,count:W,maxLength:te}):$e="".concat(W).concat(J?" / ".concat(te):""),ve=G.createElement(G.Fragment,null,ve,G.createElement("span",{className:V("".concat(h,"-data-count"),x==null?void 0:x.count),style:w==null?void 0:w.count},$e)));var we=function(Se){var Ce;O==null||O(Se),(Ce=U())!==null&&Ce!==void 0&&Ce.style.height&&K(!0)},We=!E.autoSize&&!C&&!u;return G.createElement(sI,{value:M,allowClear:u,handleReset:ge,suffix:ve,prefixCls:h,classNames:A(A({},x),{},{affixWrapper:V(x==null?void 0:x.affixWrapper,(r={},D(r,"".concat(h,"-show-count"),C),D(r,"".concat(h,"-textarea-allow-clear"),u),r))}),disabled:S,focused:P,className:V(v,Y&&"".concat(h,"-out-of-range")),style:A(A({},b),F&&!We?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof $e=="string"?$e:void 0}},hidden:$},G.createElement(nH,ce({},E,{maxLength:d,onKeyDown:ie,onChange:ae,onFocus:pe,onBlur:me,onCompositionStart:oe,onCompositionEnd:se,className:V(x==null?void 0:x.textarea),style:A(A({},w==null?void 0:w.textarea),{},{resize:b==null?void 0:b.resize}),disabled:S,prefixCls:h,onResize:we,ref:X})))}),aH=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,r;const{prefixCls:o,bordered:a=!0,size:i,disabled:l,status:c,allowClear:u,classNames:d,rootClassName:f,className:m,style:g,styles:y,variant:h}=e,C=aH(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:p,direction:v,textArea:b}=s.useContext(je),S=sr(i),$=s.useContext(Ao),x=l??$,{status:w,hasFeedback:O,feedbackIcon:E}=s.useContext(Qn),I=hf(w,c),T=s.useRef(null);s.useImperativeHandle(t,()=>{var j;return{resizableTextArea:(j=T.current)===null||j===void 0?void 0:j.resizableTextArea,focus:B=>{var F,K;$A((K=(F=T.current)===null||F===void 0?void 0:F.resizableTextArea)===null||K===void 0?void 0:K.textArea,B)},blur:()=>{var B;return(B=T.current)===null||B===void 0?void 0:B.blur()}}});const _=p("input",o),R=gn(_),[M,L,z]=i0(_,R),[P,N]=Hh(h,a),k=uI(u??(b==null?void 0:b.allowClear));return M(s.createElement(oH,Object.assign({autoComplete:b==null?void 0:b.autoComplete},C,{style:Object.assign(Object.assign({},b==null?void 0:b.style),g),styles:Object.assign(Object.assign({},b==null?void 0:b.styles),y),disabled:x,allowClear:k,className:V(z,R,m,f,b==null?void 0:b.className),classNames:Object.assign(Object.assign(Object.assign({},d),b==null?void 0:b.classNames),{textarea:V({[`${_}-sm`]:S==="small",[`${_}-lg`]:S==="large"},L,d==null?void 0:d.textarea,(n=b==null?void 0:b.classNames)===null||n===void 0?void 0:n.textarea),variant:V({[`${_}-${P}`]:N},fd(_,I)),affixWrapper:V(`${_}-textarea-affix-wrapper`,{[`${_}-affix-wrapper-rtl`]:v==="rtl",[`${_}-affix-wrapper-sm`]:S==="small",[`${_}-affix-wrapper-lg`]:S==="large",[`${_}-textarea-show-count`]:e.showCount||((r=e.count)===null||r===void 0?void 0:r.show)},L)}),prefixCls:_,suffix:O&&s.createElement("span",{className:`${_}-textarea-suffix`},E),ref:T})))}),lH=iH,xl=Rf;xl.Group=bA;xl.Search=YA;xl.TextArea=lH;xl.Password=UA;xl.OTP=MA;const sH=xl;function Sd(e){return["small","middle","large"].includes(e)}function iS(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const fI=G.createContext({latestIndex:0}),cH=fI.Provider,uH=e=>{let{className:t,index:n,children:r,split:o,style:a}=e;const{latestIndex:i}=s.useContext(fI);return r==null?null:s.createElement(s.Fragment,null,s.createElement("div",{className:t,style:a},r),n{var n,r;const{getPrefixCls:o,space:a,direction:i}=s.useContext(je),{size:l=(a==null?void 0:a.size)||"small",align:c,className:u,rootClassName:d,children:f,direction:m="horizontal",prefixCls:g,split:y,style:h,wrap:C=!1,classNames:p,styles:v}=e,b=fH(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[S,$]=Array.isArray(l)?l:[l,l],x=Sd($),w=Sd(S),O=iS($),E=iS(S),I=lr(f,{keepEmpty:!0}),T=c===void 0&&m==="horizontal"?"center":c,_=o("space",g),[R,M,L]=Aw(_),z=V(_,a==null?void 0:a.className,M,`${_}-${m}`,{[`${_}-rtl`]:i==="rtl",[`${_}-align-${T}`]:T,[`${_}-gap-row-${$}`]:x,[`${_}-gap-col-${S}`]:w},u,d,L),P=V(`${_}-item`,(n=p==null?void 0:p.item)!==null&&n!==void 0?n:(r=a==null?void 0:a.classNames)===null||r===void 0?void 0:r.item);let N=0;const k=I.map((F,K)=>{var X,U;F!=null&&(N=K);const re=F&&F.key||`${P}-${K}`;return s.createElement(dH,{className:P,key:re,index:K,split:y,style:(X=v==null?void 0:v.item)!==null&&X!==void 0?X:(U=a==null?void 0:a.styles)===null||U===void 0?void 0:U.item},F)}),j=s.useMemo(()=>({latestIndex:N}),[N]);if(I.length===0)return null;const B={};return C&&(B.flexWrap="wrap"),!w&&E&&(B.columnGap=S),!x&&O&&(B.rowGap=$),R(s.createElement("div",Object.assign({ref:t,className:z,style:Object.assign(Object.assign(Object.assign({},B),a==null?void 0:a.style),h)},b),s.createElement(cH,{value:j},k)))}),mI=mH;mI.Compact=mz;const gH=mI;var pH=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{getPopupContainer:t,getPrefixCls:n,direction:r}=s.useContext(je),{prefixCls:o,type:a="default",danger:i,disabled:l,loading:c,onClick:u,htmlType:d,children:f,className:m,menu:g,arrow:y,autoFocus:h,overlay:C,trigger:p,align:v,open:b,onOpenChange:S,placement:$,getPopupContainer:x,href:w,icon:O=s.createElement(Jh,null),title:E,buttonsRender:I=ne=>ne,mouseEnterDelay:T,mouseLeaveDelay:_,overlayClassName:R,overlayStyle:M,destroyPopupOnHide:L,dropdownRender:z}=e,P=pH(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),N=n("dropdown",o),k=`${N}-button`,j={menu:g,arrow:y,autoFocus:h,align:v,disabled:l,trigger:l?[]:p,onOpenChange:S,getPopupContainer:x||t,mouseEnterDelay:T,mouseLeaveDelay:_,overlayClassName:R,overlayStyle:M,destroyPopupOnHide:L,dropdownRender:z},{compactSize:B,compactItemClassnames:F}=ic(N,r),K=V(k,F,m);"overlay"in e&&(j.overlay=C),"open"in e&&(j.open=b),"placement"in e?j.placement=$:j.placement=r==="rtl"?"bottomLeft":"bottomRight";const X=s.createElement(Lo,{type:a,danger:i,disabled:l,loading:c,onClick:u,htmlType:d,href:w,title:E},f),U=s.createElement(Lo,{type:a,danger:i,icon:O}),[re,Z]=I([X,U]);return s.createElement(gH.Compact,Object.assign({className:K,size:B,block:!0},P),re,s.createElement(DO,Object.assign({},j),Z))};gI.__ANT_BUTTON=!0;const vH=gI,pI=DO;pI.Button=vH;const vI=pI,hI=["wrap","nowrap","wrap-reverse"],yI=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],bI=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],hH=(e,t)=>{const n={};return hI.forEach(r=>{n[`${e}-wrap-${r}`]=t.wrap===r}),n},yH=(e,t)=>{const n={};return bI.forEach(r=>{n[`${e}-align-${r}`]=t.align===r}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},bH=(e,t)=>{const n={};return yI.forEach(r=>{n[`${e}-justify-${r}`]=t.justify===r}),n};function CH(e,t){return V(Object.assign(Object.assign(Object.assign({},hH(e,t)),yH(e,t)),bH(e,t)))}const SH=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},xH=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},$H=e=>{const{componentCls:t}=e,n={};return hI.forEach(r=>{n[`${t}-wrap-${r}`]={flexWrap:r}}),n},wH=e=>{const{componentCls:t}=e,n={};return bI.forEach(r=>{n[`${t}-align-${r}`]={alignItems:r}}),n},EH=e=>{const{componentCls:t}=e,n={};return yI.forEach(r=>{n[`${t}-justify-${r}`]={justifyContent:r}}),n},OH=()=>({}),IH=_t("Flex",e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,o=bt(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[SH(o),xH(o),$H(o),wH(o),EH(o)]},OH,{resetStyle:!1});var PH=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,rootClassName:r,className:o,style:a,flex:i,gap:l,children:c,vertical:u=!1,component:d="div"}=e,f=PH(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:m,direction:g,getPrefixCls:y}=G.useContext(je),h=y("flex",n),[C,p,v]=IH(h),b=u??(m==null?void 0:m.vertical),S=V(o,r,m==null?void 0:m.className,h,p,v,CH(h,e),{[`${h}-rtl`]:g==="rtl",[`${h}-gap-${l}`]:Sd(l),[`${h}-vertical`]:b}),$=Object.assign(Object.assign({},m==null?void 0:m.style),a);return i&&($.flex=i),l&&!Sd(l)&&($.gap=l),C(G.createElement(d,Object.assign({ref:t,className:S,style:$},Kt(f,["justify","wrap","align"])),c))}),FU=RH;function xd(e){const[t,n]=s.useState(e);return s.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const NH=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}, transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},TH=NH,MH=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${H(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${H(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),lS=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},_H=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},zt(e)),MH(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},lS(e,e.controlHeightSM)),"&-large":Object.assign({},lS(e,e.controlHeightLG))})}},zH=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:o,labelRequiredMarkColor:a,labelColor:i,labelFontSize:l,labelHeight:c,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:d,itemMarginBottom:f}=e;return{[t]:Object.assign(Object.assign({},zt(e)),{marginBottom:f,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, &-hidden.${o}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:c,color:i,fontSize:l,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:a,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:u,marginInlineEnd:d},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${o}-col-'"]):not([class*="' ${o}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:zh,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},jH=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},LH=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${n}-label, > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},Ci=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),kH=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:Ci(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},DH=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${t}-vertical`]:{[n]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${t}-item-control`]:{width:"100%"}}},[`${t}-vertical ${n}-label, .${r}-col-24${n}-label, - .${r}-col-xl-24${n}-label`]:Ci(e),[`@media (max-width: ${H(e.screenXSMax)})`]:[kH(e),{[t]:{[`.${r}-col-xs-24${n}-label`]:Ci(e)}}],[`@media (max-width: ${H(e.screenSMMax)})`]:{[t]:{[`.${r}-col-sm-24${n}-label`]:Ci(e)}},[`@media (max-width: ${H(e.screenMDMax)})`]:{[t]:{[`.${r}-col-md-24${n}-label`]:Ci(e)}},[`@media (max-width: ${H(e.screenLGMax)})`]:{[t]:{[`.${r}-col-lg-24${n}-label`]:Ci(e)}}}},BH=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0}),CI=(e,t)=>bt(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),u0=_t("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=CI(e,n);return[_H(r),zH(r),TH(r),jH(r),LH(r),DH(r),Rh(r),zh]},BH,{order:-1e3}),sS=[];function Wm(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const FH=e=>{let{help:t,helpStatus:n,errors:r=sS,warnings:o=sS,className:a,fieldId:i,onVisibleChanged:l}=e;const{prefixCls:c}=s.useContext(Ph),u=`${c}-item-explain`,d=gn(c),[f,m,g]=u0(c,d),y=s.useMemo(()=>id(c),[c]),h=xd(r),C=xd(o),p=s.useMemo(()=>t!=null?[Wm(t,"help",n)]:[].concat(ue(h.map((b,S)=>Wm(b,"error","error",S))),ue(C.map((b,S)=>Wm(b,"warning","warning",S)))),[t,n,h,C]),v={};return i&&(v.id=`${i}_help`),f(s.createElement(ro,{motionDeadline:y.motionDeadline,motionName:`${c}-show-help`,visible:!!p.length,onVisibleChanged:l},b=>{const{className:S,style:$}=b;return s.createElement("div",Object.assign({},v,{className:V(u,S,g,d,a,m),style:$,role:"alert"}),s.createElement(xw,Object.assign({keys:p},id(c),{motionName:`${c}-show-help-item`,component:!1}),x=>{const{key:w,error:O,errorStatus:E,className:I,style:T}=x;return s.createElement("div",{key:w,className:V(I,{[`${u}-${E}`]:E}),style:T},O)}))}))},SI=FH,AH=["parentNode"],HH="form_item";function cs(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function xI(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:AH.includes(n)?`${HH}_${n}`:n}function $I(e,t,n,r,o,a){let i=r;return a!==void 0?i=a:n.validating?i="validating":e.length?i="error":t.length?i="warning":(n.touched||o&&n.validated)&&(i="success"),i}function cS(e){return cs(e).join("_")}function wI(e){const[t]=Ih(),n=s.useRef({}),r=s.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:o=>a=>{const i=cS(o);a?n.current[i]=a:delete n.current[i]}},scrollToField:function(o){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=cs(o),l=xI(i,r.__INTERNAL__.name),c=l?document.getElementById(l):null;c&&iz(c,Object.assign({scrollMode:"if-needed",block:"nearest"},a))},getFieldInstance:o=>{const a=cS(o);return n.current[a]}}),[e,t]);return[r]}var VH=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const n=s.useContext(Ao),{getPrefixCls:r,direction:o,form:a}=s.useContext(je),{prefixCls:i,className:l,rootClassName:c,size:u,disabled:d=n,form:f,colon:m,labelAlign:g,labelWrap:y,labelCol:h,wrapperCol:C,hideRequiredMark:p,layout:v="horizontal",scrollToFirstError:b,requiredMark:S,onFinishFailed:$,name:x,style:w,feedbackIcons:O,variant:E}=e,I=VH(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),T=sr(u),_=s.useContext(V$),R=s.useMemo(()=>S!==void 0?S:p?!1:a&&a.requiredMark!==void 0?a.requiredMark:!0,[p,S,a]),M=m??(a==null?void 0:a.colon),L=r("form",i),z=gn(L),[P,N,k]=u0(L,z),j=V(L,`${L}-${v}`,{[`${L}-hide-required-mark`]:R===!1,[`${L}-rtl`]:o==="rtl",[`${L}-${T}`]:T},k,z,N,a==null?void 0:a.className,l,c),[B]=wI(f),{__INTERNAL__:F}=B;F.name=x;const K=s.useMemo(()=>({name:x,labelAlign:g,labelCol:h,labelWrap:y,wrapperCol:C,vertical:v==="vertical",colon:M,requiredMark:R,itemRef:F.itemRef,form:B,feedbackIcons:O}),[x,g,h,C,v,M,R,B,O]);s.useImperativeHandle(t,()=>B);const X=(re,Z)=>{if(re){let ne={block:"nearest"};typeof re=="object"&&(ne=re),B.scrollToField(Z,ne)}},U=re=>{if($==null||$(re),re.errorFields.length){const Z=re.errorFields[0].name;if(b!==void 0){X(b,Z);return}a&&a.scrollToFirstError!==void 0&&X(a.scrollToFirstError,Z)}};return P(s.createElement(gE.Provider,{value:E},s.createElement(uh,{disabled:d},s.createElement(Js.Provider,{value:T},s.createElement(mE,{validateMessages:_},s.createElement(ko.Provider,{value:K},s.createElement(vl,Object.assign({id:x},I,{name:x,onFinishFailed:U,form:B,style:Object.assign(Object.assign({},a==null?void 0:a.style),w),className:j}))))))))},WH=s.forwardRef(KH),GH=WH;function UH(e){if(typeof e=="function")return e;const t=lr(e);return t.length<=1?t[0]:t}const EI=()=>{const{status:e,errors:t=[],warnings:n=[]}=s.useContext(Qn);return{status:e,errors:t,warnings:n}};EI.Context=Qn;const qH=EI;function XH(e){const[t,n]=s.useState(e),r=s.useRef(null),o=s.useRef([]),a=s.useRef(!1);s.useEffect(()=>(a.current=!1,()=>{a.current=!0,It.cancel(r.current),r.current=null}),[]);function i(l){a.current||(r.current===null&&(o.current=[],r.current=It(()=>{r.current=null,n(c=>{let u=c;return o.current.forEach(d=>{u=d(u)}),u})})),o.current.push(l))}return[t,i]}function YH(){const{itemRef:e}=s.useContext(ko),t=s.useRef({});function n(r,o){const a=o&&typeof o=="object"&&o.ref,i=r.join("_");return(t.current.name!==i||t.current.originRef!==a)&&(t.current.name=i,t.current.originRef=a,t.current.ref=Br(e(r),a)),t.current.ref}return n}const QH=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},ZH=ti(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=CI(e,n);return[QH(r)]}),JH=e=>{const{prefixCls:t,status:n,wrapperCol:r,children:o,errors:a,warnings:i,_internalItemRender:l,extra:c,help:u,fieldId:d,marginBottom:f,onErrorVisibleChanged:m}=e,g=`${t}-item`,y=s.useContext(ko),h=r||y.wrapperCol||{},C=V(`${g}-control`,h.className),p=s.useMemo(()=>Object.assign({},y),[y]);delete p.labelCol,delete p.wrapperCol;const v=s.createElement("div",{className:`${g}-control-input`},s.createElement("div",{className:`${g}-control-input-content`},o)),b=s.useMemo(()=>({prefixCls:t,status:n}),[t,n]),S=f!==null||a.length||i.length?s.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},s.createElement(Ph.Provider,{value:b},s.createElement(SI,{fieldId:d,errors:a,warnings:i,help:u,helpStatus:n,className:`${g}-explain-connected`,onVisibleChanged:m})),!!f&&s.createElement("div",{style:{width:0,height:f}})):null,$={};d&&($.id=`${d}_extra`);const x=c?s.createElement("div",Object.assign({},$,{className:`${g}-extra`}),c):null,w=l&&l.mark==="pro_table_render"&&l.render?l.render(e,{input:v,errorList:S,extra:x}):s.createElement(s.Fragment,null,v,S,x);return s.createElement(ko.Provider,{value:p},s.createElement(lI,Object.assign({},h,{className:C}),w),s.createElement(ZH,{prefixCls:t}))},e7=JH;var t7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};const n7=t7;var r7=function(t,n){return s.createElement(Pt,ce({},t,{ref:n,icon:n7}))},o7=s.forwardRef(r7);const a7=o7;var i7=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{let{prefixCls:t,label:n,htmlFor:r,labelCol:o,labelAlign:a,colon:i,required:l,requiredMark:c,tooltip:u}=e;var d;const[f]=ei("Form"),{vertical:m,labelAlign:g,labelCol:y,labelWrap:h,colon:C}=s.useContext(ko);if(!n)return null;const p=o||y||{},v=a||g,b=`${t}-item-label`,S=V(b,v==="left"&&`${b}-left`,p.className,{[`${b}-wrap`]:!!h});let $=n;const x=i===!0||C!==!1&&i!==!1;x&&!m&&typeof n=="string"&&n.trim()!==""&&($=n.replace(/[:|:]\s*$/,""));const O=l7(u);if(O){const{icon:_=s.createElement(a7,null)}=O,R=i7(O,["icon"]),M=s.createElement(As,Object.assign({},R),s.cloneElement(_,{className:`${t}-item-tooltip`,title:"",onClick:L=>{L.preventDefault()},tabIndex:null}));$=s.createElement(s.Fragment,null,$,M)}const E=c==="optional",I=typeof c=="function";I?$=c($,{required:!!l}):E&&!l&&($=s.createElement(s.Fragment,null,$,s.createElement("span",{className:`${t}-item-optional`,title:""},(f==null?void 0:f.optional)||((d=go.Form)===null||d===void 0?void 0:d.optional))));const T=V({[`${t}-item-required`]:l,[`${t}-item-required-mark-optional`]:E||I,[`${t}-item-no-colon`]:!x});return s.createElement(lI,Object.assign({},p,{className:S}),s.createElement("label",{htmlFor:r,className:T,title:typeof n=="string"?n:""},$))},c7=s7,u7={success:af,warning:gl,error:ml,validating:pl};function OI(e){let{children:t,errors:n,warnings:r,hasFeedback:o,validateStatus:a,prefixCls:i,meta:l,noStyle:c}=e;const u=`${i}-item`,{feedbackIcons:d}=s.useContext(ko),f=$I(n,r,l,null,!!o,a),{isFormItemInput:m,status:g,hasFeedback:y,feedbackIcon:h}=s.useContext(Qn),C=s.useMemo(()=>{var p;let v;if(o){const S=o!==!0&&o.icons||d,$=f&&((p=S==null?void 0:S({status:f,errors:n,warnings:r}))===null||p===void 0?void 0:p[f]),x=f&&u7[f];v=$!==!1&&x?s.createElement("span",{className:V(`${u}-feedback-icon`,`${u}-feedback-icon-${f}`)},$||s.createElement(x,null)):null}const b={status:f||"",errors:n,warnings:r,hasFeedback:!!o,feedbackIcon:v,isFormItemInput:!0};return c&&(b.status=(f??g)||"",b.isFormItemInput=m,b.hasFeedback=!!(o??y),b.feedbackIcon=o!==void 0?b.feedbackIcon:h),b},[f,o,c,m,g]);return s.createElement(Qn.Provider,{value:C},t)}var d7=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{if(O&&S.current){const z=getComputedStyle(S.current);T(parseInt(z.marginBottom,10))}},[O,E]);const _=z=>{z||T(null)},M=function(){let z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const P=z?$:u.errors,N=z?x:u.warnings;return $I(P,N,u,"",!!d,c)}(),L=V(v,n,r,{[`${v}-with-help`]:w||$.length||x.length,[`${v}-has-feedback`]:M&&d,[`${v}-has-success`]:M==="success",[`${v}-has-warning`]:M==="warning",[`${v}-has-error`]:M==="error",[`${v}-is-validating`]:M==="validating",[`${v}-hidden`]:f});return s.createElement("div",{className:L,style:o,ref:S},s.createElement(d8,Object.assign({className:`${v}-row`},Kt(p,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),s.createElement(c7,Object.assign({htmlFor:g},e,{requiredMark:b,required:y??h,prefixCls:t})),s.createElement(e7,Object.assign({},e,u,{errors:$,warnings:x,prefixCls:t,status:M,help:a,marginBottom:I,onErrorVisibleChanged:_}),s.createElement(fE.Provider,{value:C},s.createElement(OI,{prefixCls:t,meta:u,errors:u.errors,warnings:u.warnings,hasFeedback:d,validateStatus:M},m)))),!!I&&s.createElement("div",{className:`${v}-margin-offset`,style:{marginBottom:-I}}))}const m7="__SPLIT__";function g7(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(o=>{const a=e[o],i=t[o];return a===i||typeof a=="function"||typeof i=="function"})}const p7=s.memo(e=>{let{children:t}=e;return t},(e,t)=>g7(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function uS(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function v7(e){const{name:t,noStyle:n,className:r,dependencies:o,prefixCls:a,shouldUpdate:i,rules:l,children:c,required:u,label:d,messageVariables:f,trigger:m="onChange",validateTrigger:g,hidden:y,help:h}=e,{getPrefixCls:C}=s.useContext(je),{name:p}=s.useContext(ko),v=UH(c),b=typeof v=="function",S=s.useContext(fE),{validateTrigger:$}=s.useContext(Ua),x=g!==void 0?g:$,w=t!=null,O=C("form",a),E=gn(O),[I,T,_]=u0(O,E);Fo();const R=s.useContext(ks),M=s.useRef(),[L,z]=XH({}),[P,N]=da(()=>uS()),k=re=>{const Z=R==null?void 0:R.getKey(re.name);if(N(re.destroy?uS():re,!0),n&&h!==!1&&S){let ne=re.name;if(re.destroy)ne=M.current||ne;else if(Z!==void 0){const[le,ee]=Z;ne=[le].concat(ue(ee)),M.current=ne}S(re,ne)}},j=(re,Z)=>{z(ne=>{const le=Object.assign({},ne),q=[].concat(ue(re.name.slice(0,-1)),ue(Z)).join(m7);return re.destroy?delete le[q]:le[q]=re,le})},[B,F]=s.useMemo(()=>{const re=ue(P.errors),Z=ue(P.warnings);return Object.values(L).forEach(ne=>{re.push.apply(re,ue(ne.errors||[])),Z.push.apply(Z,ue(ne.warnings||[]))}),[re,Z]},[L,P.errors,P.warnings]),K=YH();function X(re,Z,ne){return n&&!y?s.createElement(OI,{prefixCls:O,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:P,errors:B,warnings:F,noStyle:!0},re):s.createElement(f7,Object.assign({key:"row"},e,{className:V(r,_,E,T),prefixCls:O,fieldId:Z,isRequired:ne,errors:B,warnings:F,meta:P,onSubItemMetaChange:j}),re)}if(!w&&!b&&!o)return I(X(v));let U={};return typeof d=="string"?U.label=d:t&&(U.label=String(t)),f&&(U=Object.assign(Object.assign({},U),f)),I(s.createElement(Oh,Object.assign({},e,{messageVariables:U,trigger:m,validateTrigger:x,onMetaChange:k}),(re,Z,ne)=>{const le=cs(t).length&&Z?Z.name:[],ee=xI(le,p),q=u!==void 0?u:!!(l&&l.some(W=>{if(W&&typeof W=="object"&&W.required&&!W.warningOnly)return!0;if(typeof W=="function"){const Y=W(ne);return Y&&Y.required&&!Y.warningOnly}return!1})),te=Object.assign({},re);let J=null;if(Array.isArray(v)&&w)J=v;else if(!(b&&(!(i||o)||w))){if(!(o&&!b&&!w))if(s.isValidElement(v)){const W=Object.assign(Object.assign({},v.props),te);if(W.id||(W.id=ee),h||B.length>0||F.length>0||e.extra){const oe=[];(h||B.length>0)&&oe.push(`${ee}_help`),e.extra&&oe.push(`${ee}_extra`),W["aria-describedby"]=oe.join(" ")}B.length>0&&(W["aria-invalid"]="true"),q&&(W["aria-required"]="true"),to(v)&&(W.ref=K(le,v)),new Set([].concat(ue(cs(m)),ue(cs(x)))).forEach(oe=>{W[oe]=function(){for(var se,ae,ie,pe,me,ge=arguments.length,ve=new Array(ge),$e=0;$e{var{prefixCls:t,children:n}=e,r=y7(e,["prefixCls","children"]);const{getPrefixCls:o}=s.useContext(je),a=o("form",t),i=s.useMemo(()=>({prefixCls:a,status:"error"}),[a]);return s.createElement(sE,Object.assign({},r),(l,c,u)=>s.createElement(Ph.Provider,{value:i},n(l.map(d=>Object.assign(Object.assign({},d),{fieldKey:d.key})),c,{errors:u.errors,warnings:u.warnings})))},C7=b7;function S7(){const{form:e}=s.useContext(ko);return e}const Ho=GH;Ho.Item=h7;Ho.List=C7;Ho.ErrorList=SI;Ho.useForm=wI;Ho.useFormInstance=S7;Ho.useWatch=dE;Ho.Provider=mE;Ho.create=()=>{};const _U=Ho;function dS(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function Qc(e,t,n,r){var o=Qu.unstable_batchedUpdates?function(i){Qu.unstable_batchedUpdates(n,i)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,o,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,o,r)}}}function x7(e,t,n){return typeof n=="boolean"?n:e.length?!0:lr(t).some(o=>o.type===MO)}const $7=e=>{const{componentCls:t,bodyBg:n,lightSiderBg:r,lightTriggerBg:o,lightTriggerColor:a}=e;return{[`${t}-sider-light`]:{background:r,[`${t}-sider-trigger`]:{color:a,background:o},[`${t}-sider-zero-width-trigger`]:{color:a,background:o,border:`1px solid ${n}`,borderInlineStart:0}}}},w7=$7,E7=e=>{const{antCls:t,componentCls:n,colorText:r,triggerColor:o,footerBg:a,triggerBg:i,headerHeight:l,headerPadding:c,headerColor:u,footerPadding:d,triggerHeight:f,zeroTriggerHeight:m,zeroTriggerWidth:g,motionDurationMid:y,motionDurationSlow:h,fontSize:C,borderRadius:p,bodyBg:v,headerBg:b,siderBg:S}=e;return{[n]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:v,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},[`${n}-sider`]:{position:"relative",minWidth:0,background:S,transition:`all ${y}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${t}-menu${t}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:f},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:f,color:o,lineHeight:H(f),textAlign:"center",background:i,cursor:"pointer",transition:`all ${y}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:l,insetInlineEnd:e.calc(g).mul(-1).equal(),zIndex:1,width:g,height:m,color:o,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:S,borderStartStartRadius:0,borderStartEndRadius:p,borderEndEndRadius:p,borderEndStartRadius:0,cursor:"pointer",transition:`background ${h} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${h}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(g).mul(-1).equal(),borderStartStartRadius:p,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:p}}}}},w7(e)),{"&-rtl":{direction:"rtl"}}),[`${n}-header`]:{height:l,padding:c,color:u,lineHeight:H(l),background:b,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:d,color:r,fontSize:C,background:a},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},O7=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:o,controlHeightSM:a,marginXXS:i,colorTextLightSolid:l,colorBgContainer:c}=e,u=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${u}px`,headerColor:o,footerPadding:`${a}px ${u}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+i*2,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:o}},PI=_t("Layout",e=>[E7(e)],O7,{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]});var RI=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);os.forwardRef((i,l)=>s.createElement(o,Object.assign({ref:l,suffixCls:t,tagName:n},i)))}const d0=s.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:o,tagName:a}=e,i=RI(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:l}=s.useContext(je),c=l("layout",n),[u,d,f]=PI(c),m=r?`${c}-${r}`:c;return u(s.createElement(a,Object.assign({className:V(n||m,o,d,f),ref:t},i)))}),I7=s.forwardRef((e,t)=>{const{direction:n}=s.useContext(je),[r,o]=s.useState([]),{prefixCls:a,className:i,rootClassName:l,children:c,hasSider:u,tagName:d,style:f}=e,m=RI(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),g=Kt(m,["suffixCls"]),{getPrefixCls:y,layout:h}=s.useContext(je),C=y("layout",a),p=x7(r,c,u),[v,b,S]=PI(C),$=V(C,{[`${C}-has-sider`]:p,[`${C}-rtl`]:n==="rtl"},h==null?void 0:h.className,i,l,b,S),x=s.useMemo(()=>({siderHook:{addSider:w=>{o(O=>[].concat(ue(O),[w]))},removeSider:w=>{o(O=>O.filter(E=>E!==w))}}}),[]);return v(s.createElement(TO.Provider,{value:x},s.createElement(d,Object.assign({ref:t,className:$,style:Object.assign(Object.assign({},h==null?void 0:h.style),f)},g),c)))}),P7=Nf({tagName:"div",displayName:"Layout"})(I7),R7=Nf({suffixCls:"header",tagName:"header",displayName:"Header"})(d0),N7=Nf({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(d0),T7=Nf({suffixCls:"content",tagName:"main",displayName:"Content"})(d0),M7=P7,$l=M7;$l.Header=R7;$l.Footer=N7;$l.Content=T7;$l.Sider=MO;$l._InternalSiderContext=$f;const zU=$l,_7=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{const o=n[r];o!==void 0&&(e[r]=o)})}return e},z7=_7;var j7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};const L7=j7;var k7=function(t,n){return s.createElement(Pt,ce({},t,{ref:n,icon:L7}))},D7=s.forwardRef(k7);const fS=D7;var B7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};const F7=B7;var A7=function(t,n){return s.createElement(Pt,ce({},t,{ref:n,icon:F7}))},H7=s.forwardRef(A7);const mS=H7;var V7={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},K7=["10","20","50","100"],W7=function(t){var n=t.pageSizeOptions,r=n===void 0?K7:n,o=t.locale,a=t.changeSize,i=t.pageSize,l=t.goButton,c=t.quickGo,u=t.rootPrefixCls,d=t.selectComponentClass,f=t.selectPrefixCls,m=t.disabled,g=t.buildOptionText,y=G.useState(""),h=Q(y,2),C=h[0],p=h[1],v=function(){return!C||Number.isNaN(C)?void 0:Number(C)},b=typeof g=="function"?g:function(M){return"".concat(M," ").concat(o.items_per_page)},S=function(L){a==null||a(Number(L))},$=function(L){p(L.target.value)},x=function(L){l||C===""||(p(""),!(L.relatedTarget&&(L.relatedTarget.className.indexOf("".concat(u,"-item-link"))>=0||L.relatedTarget.className.indexOf("".concat(u,"-item"))>=0))&&(c==null||c(v())))},w=function(L){C!==""&&(L.keyCode===fe.ENTER||L.type==="click")&&(p(""),c==null||c(v()))},O=function(){return r.some(function(L){return L.toString()===i.toString()})?r:r.concat([i.toString()]).sort(function(L,z){var P=Number.isNaN(Number(L))?0:Number(L),N=Number.isNaN(Number(z))?0:Number(z);return P-N})},E="".concat(u,"-options");if(!a&&!c)return null;var I=null,T=null,_=null;if(a&&d){var R=O().map(function(M,L){return G.createElement(d.Option,{key:L,value:M.toString()},b(M))});I=G.createElement(d,{disabled:m,prefixCls:f,showSearch:!1,className:"".concat(E,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(i||r[0]).toString(),onChange:S,getPopupContainer:function(L){return L.parentNode},"aria-label":o.page_size,defaultOpen:!1},R)}return c&&(l&&(_=typeof l=="boolean"?G.createElement("button",{type:"button",onClick:w,onKeyUp:w,disabled:m,className:"".concat(E,"-quick-jumper-button")},o.jump_to_confirm):G.createElement("span",{onClick:w,onKeyUp:w},l)),T=G.createElement("div",{className:"".concat(E,"-quick-jumper")},o.jump_to,G.createElement("input",{disabled:m,type:"text",value:C,onChange:$,onKeyUp:w,onBlur:x,"aria-label":o.page}),o.page,_)),G.createElement("li",{className:E},I,T)},Fl=function(t){var n,r=t.rootPrefixCls,o=t.page,a=t.active,i=t.className,l=t.showTitle,c=t.onClick,u=t.onKeyPress,d=t.itemRender,f="".concat(r,"-item"),m=V(f,"".concat(f,"-").concat(o),(n={},D(n,"".concat(f,"-active"),a),D(n,"".concat(f,"-disabled"),!o),n),i),g=function(){c(o)},y=function(p){u(p,c,o)},h=d(o,"page",G.createElement("a",{rel:"nofollow"},o));return h?G.createElement("li",{title:l?String(o):null,className:m,onClick:g,onKeyDown:y,tabIndex:0},h):null},G7=function(t,n,r){return r};function gS(){}function pS(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function $a(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var U7=function(t){var n,r=t.prefixCls,o=r===void 0?"rc-pagination":r,a=t.selectPrefixCls,i=a===void 0?"rc-select":a,l=t.className,c=t.selectComponentClass,u=t.current,d=t.defaultCurrent,f=d===void 0?1:d,m=t.total,g=m===void 0?0:m,y=t.pageSize,h=t.defaultPageSize,C=h===void 0?10:h,p=t.onChange,v=p===void 0?gS:p,b=t.hideOnSinglePage,S=t.showPrevNextJumpers,$=S===void 0?!0:S,x=t.showQuickJumper,w=t.showLessItems,O=t.showTitle,E=O===void 0?!0:O,I=t.onShowSizeChange,T=I===void 0?gS:I,_=t.locale,R=_===void 0?V7:_,M=t.style,L=t.totalBoundaryShowSizeChanger,z=L===void 0?50:L,P=t.disabled,N=t.simple,k=t.showTotal,j=t.showSizeChanger,B=t.pageSizeOptions,F=t.itemRender,K=F===void 0?G7:F,X=t.jumpPrevIcon,U=t.jumpNextIcon,re=t.prevIcon,Z=t.nextIcon,ne=G.useRef(null),le=Jt(10,{value:y,defaultValue:C}),ee=Q(le,2),q=ee[0],te=ee[1],J=Jt(1,{value:u,defaultValue:f,postState:function(mt){return Math.max(1,Math.min(mt,$a(void 0,q,g)))}}),W=Q(J,2),Y=W[0],de=W[1],oe=G.useState(Y),se=Q(oe,2),ae=se[0],ie=se[1];s.useEffect(function(){ie(Y)},[Y]);var pe=Math.max(1,Y-(w?3:5)),me=Math.min($a(void 0,q,g),Y+(w?3:5));function ge(Qe,mt){var Ot=Qe||G.createElement("button",{type:"button","aria-label":mt,className:"".concat(o,"-item-link")});return typeof Qe=="function"&&(Ot=G.createElement(Qe,A({},t))),Ot}function ve(Qe){var mt=Qe.target.value,Ot=$a(void 0,q,g),Bt;return mt===""?Bt=mt:Number.isNaN(Number(mt))?Bt=ae:mt>=Ot?Bt=Ot:Bt=Number(mt),Bt}function $e(Qe){return pS(Qe)&&Qe!==Y&&pS(g)&&g>0}var we=g>q?x:!1;function We(Qe){(Qe.keyCode===fe.UP||Qe.keyCode===fe.DOWN)&&Qe.preventDefault()}function _e(Qe){var mt=ve(Qe);switch(mt!==ae&&ie(mt),Qe.keyCode){case fe.ENTER:Oe(mt);break;case fe.UP:Oe(mt-1);break;case fe.DOWN:Oe(mt+1);break}}function Se(Qe){Oe(ve(Qe))}function Ce(Qe){var mt=$a(Qe,q,g),Ot=Y>mt&&mt!==0?mt:Y;te(Qe),ie(Ot),T==null||T(Y,Qe),de(Ot),v==null||v(Ot,Qe)}function Oe(Qe){if($e(Qe)&&!P){var mt=$a(void 0,q,g),Ot=Qe;return Qe>mt?Ot=mt:Qe<1&&(Ot=1),Ot!==ae&&ie(Ot),de(Ot),v==null||v(Ot,q),Ot}return Y}var ke=Y>1,Ze=Y<$a(void 0,q,g),He=j??g>z;function Ve(){ke&&Oe(Y-1)}function it(){Ze&&Oe(Y+1)}function Je(){Oe(pe)}function Ae(){Oe(me)}function lt(Qe,mt){if(Qe.key==="Enter"||Qe.charCode===fe.ENTER||Qe.keyCode===fe.ENTER){for(var Ot=arguments.length,Bt=new Array(Ot>2?Ot-2:0),un=2;ung?g:Y*q])),rt=null,ye=$a(void 0,q,g);if(b&&g<=q)return null;var Re=[],Pe={rootPrefixCls:o,onClick:Oe,onKeyPress:lt,showTitle:E,itemRender:K,page:-1},Ge=Y-1>0?Y-1:0,ot=Y+1=Ee*2&&Y!==1+2&&(Re[0]=G.cloneElement(Re[0],{className:V("".concat(o,"-item-after-jump-prev"),Re[0].props.className)}),Re.unshift(De)),ye-Y>=Ee*2&&Y!==ye-2){var gt=Re[Re.length-1];Re[Re.length-1]=G.cloneElement(gt,{className:V("".concat(o,"-item-before-jump-next"),gt.props.className)}),Re.push(rt)}ct!==1&&Re.unshift(G.createElement(Fl,ce({},Pe,{key:1,page:1}))),xt!==ye&&Re.push(G.createElement(Fl,ce({},Pe,{key:ye,page:ye})))}var en=nt(Ge);if(en){var tn=!ke||!ye;en=G.createElement("li",{title:E?R.prev_page:null,onClick:Ve,tabIndex:tn?null:0,onKeyDown:ut,className:V("".concat(o,"-prev"),D({},"".concat(o,"-disabled"),tn)),"aria-disabled":tn},en)}var pn=Me(ot);if(pn){var At,Kn;N?(At=!Ze,Kn=ke?0:null):(At=!Ze||!ye,Kn=At?null:0),pn=G.createElement("li",{title:E?R.next_page:null,onClick:it,tabIndex:Kn,onKeyDown:St,className:V("".concat(o,"-next"),D({},"".concat(o,"-disabled"),At)),"aria-disabled":At},pn)}var kn=V(o,l,(n={},D(n,"".concat(o,"-simple"),N),D(n,"".concat(o,"-disabled"),P),n));return G.createElement("ul",ce({className:kn,style:M,ref:ne},xe),ze,en,N?Be:Re,pn,G.createElement(W7,{locale:R,rootPrefixCls:o,disabled:P,selectComponentClass:c,selectPrefixCls:i,changeSize:He?Ce:null,pageSize:q,pageSizeOptions:B,quickGo:we?Oe:null,goButton:Et}))};const NI=e=>s.createElement(yf,Object.assign({},e,{showSearch:!0,size:"small"})),TI=e=>s.createElement(yf,Object.assign({},e,{showSearch:!0,size:"middle"}));NI.Option=yf.Option;TI.Option=yf.Option;const q7=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},X7=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:H(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:H(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:H(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[` + .${r}-col-xl-24${n}-label`]:Ci(e),[`@media (max-width: ${H(e.screenXSMax)})`]:[kH(e),{[t]:{[`.${r}-col-xs-24${n}-label`]:Ci(e)}}],[`@media (max-width: ${H(e.screenSMMax)})`]:{[t]:{[`.${r}-col-sm-24${n}-label`]:Ci(e)}},[`@media (max-width: ${H(e.screenMDMax)})`]:{[t]:{[`.${r}-col-md-24${n}-label`]:Ci(e)}},[`@media (max-width: ${H(e.screenLGMax)})`]:{[t]:{[`.${r}-col-lg-24${n}-label`]:Ci(e)}}}},BH=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0}),CI=(e,t)=>bt(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),u0=_t("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=CI(e,n);return[_H(r),zH(r),TH(r),jH(r),LH(r),DH(r),Rh(r),zh]},BH,{order:-1e3}),sS=[];function Wm(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const FH=e=>{let{help:t,helpStatus:n,errors:r=sS,warnings:o=sS,className:a,fieldId:i,onVisibleChanged:l}=e;const{prefixCls:c}=s.useContext(Ph),u=`${c}-item-explain`,d=gn(c),[f,m,g]=u0(c,d),y=s.useMemo(()=>id(c),[c]),h=xd(r),C=xd(o),p=s.useMemo(()=>t!=null?[Wm(t,"help",n)]:[].concat(ue(h.map((b,S)=>Wm(b,"error","error",S))),ue(C.map((b,S)=>Wm(b,"warning","warning",S)))),[t,n,h,C]),v={};return i&&(v.id=`${i}_help`),f(s.createElement(ro,{motionDeadline:y.motionDeadline,motionName:`${c}-show-help`,visible:!!p.length,onVisibleChanged:l},b=>{const{className:S,style:$}=b;return s.createElement("div",Object.assign({},v,{className:V(u,S,g,d,a,m),style:$,role:"alert"}),s.createElement(xw,Object.assign({keys:p},id(c),{motionName:`${c}-show-help-item`,component:!1}),x=>{const{key:w,error:O,errorStatus:E,className:I,style:T}=x;return s.createElement("div",{key:w,className:V(I,{[`${u}-${E}`]:E}),style:T},O)}))}))},SI=FH,AH=["parentNode"],HH="form_item";function cs(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function xI(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:AH.includes(n)?`${HH}_${n}`:n}function $I(e,t,n,r,o,a){let i=r;return a!==void 0?i=a:n.validating?i="validating":e.length?i="error":t.length?i="warning":(n.touched||o&&n.validated)&&(i="success"),i}function cS(e){return cs(e).join("_")}function wI(e){const[t]=Ih(),n=s.useRef({}),r=s.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:o=>a=>{const i=cS(o);a?n.current[i]=a:delete n.current[i]}},scrollToField:function(o){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=cs(o),l=xI(i,r.__INTERNAL__.name),c=l?document.getElementById(l):null;c&&i4(c,Object.assign({scrollMode:"if-needed",block:"nearest"},a))},getFieldInstance:o=>{const a=cS(o);return n.current[a]}}),[e,t]);return[r]}var VH=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const n=s.useContext(Ao),{getPrefixCls:r,direction:o,form:a}=s.useContext(je),{prefixCls:i,className:l,rootClassName:c,size:u,disabled:d=n,form:f,colon:m,labelAlign:g,labelWrap:y,labelCol:h,wrapperCol:C,hideRequiredMark:p,layout:v="horizontal",scrollToFirstError:b,requiredMark:S,onFinishFailed:$,name:x,style:w,feedbackIcons:O,variant:E}=e,I=VH(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),T=sr(u),_=s.useContext(V$),R=s.useMemo(()=>S!==void 0?S:p?!1:a&&a.requiredMark!==void 0?a.requiredMark:!0,[p,S,a]),M=m??(a==null?void 0:a.colon),L=r("form",i),z=gn(L),[P,N,k]=u0(L,z),j=V(L,`${L}-${v}`,{[`${L}-hide-required-mark`]:R===!1,[`${L}-rtl`]:o==="rtl",[`${L}-${T}`]:T},k,z,N,a==null?void 0:a.className,l,c),[B]=wI(f),{__INTERNAL__:F}=B;F.name=x;const K=s.useMemo(()=>({name:x,labelAlign:g,labelCol:h,labelWrap:y,wrapperCol:C,vertical:v==="vertical",colon:M,requiredMark:R,itemRef:F.itemRef,form:B,feedbackIcons:O}),[x,g,h,C,v,M,R,B,O]);s.useImperativeHandle(t,()=>B);const X=(re,Z)=>{if(re){let ne={block:"nearest"};typeof re=="object"&&(ne=re),B.scrollToField(Z,ne)}},U=re=>{if($==null||$(re),re.errorFields.length){const Z=re.errorFields[0].name;if(b!==void 0){X(b,Z);return}a&&a.scrollToFirstError!==void 0&&X(a.scrollToFirstError,Z)}};return P(s.createElement(gE.Provider,{value:E},s.createElement(uh,{disabled:d},s.createElement(Js.Provider,{value:T},s.createElement(mE,{validateMessages:_},s.createElement(ko.Provider,{value:K},s.createElement(vl,Object.assign({id:x},I,{name:x,onFinishFailed:U,form:B,style:Object.assign(Object.assign({},a==null?void 0:a.style),w),className:j}))))))))},WH=s.forwardRef(KH),GH=WH;function UH(e){if(typeof e=="function")return e;const t=lr(e);return t.length<=1?t[0]:t}const EI=()=>{const{status:e,errors:t=[],warnings:n=[]}=s.useContext(Qn);return{status:e,errors:t,warnings:n}};EI.Context=Qn;const qH=EI;function XH(e){const[t,n]=s.useState(e),r=s.useRef(null),o=s.useRef([]),a=s.useRef(!1);s.useEffect(()=>(a.current=!1,()=>{a.current=!0,Pt.cancel(r.current),r.current=null}),[]);function i(l){a.current||(r.current===null&&(o.current=[],r.current=Pt(()=>{r.current=null,n(c=>{let u=c;return o.current.forEach(d=>{u=d(u)}),u})})),o.current.push(l))}return[t,i]}function YH(){const{itemRef:e}=s.useContext(ko),t=s.useRef({});function n(r,o){const a=o&&typeof o=="object"&&o.ref,i=r.join("_");return(t.current.name!==i||t.current.originRef!==a)&&(t.current.name=i,t.current.originRef=a,t.current.ref=Br(e(r),a)),t.current.ref}return n}const QH=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},ZH=ti(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=CI(e,n);return[QH(r)]}),JH=e=>{const{prefixCls:t,status:n,wrapperCol:r,children:o,errors:a,warnings:i,_internalItemRender:l,extra:c,help:u,fieldId:d,marginBottom:f,onErrorVisibleChanged:m}=e,g=`${t}-item`,y=s.useContext(ko),h=r||y.wrapperCol||{},C=V(`${g}-control`,h.className),p=s.useMemo(()=>Object.assign({},y),[y]);delete p.labelCol,delete p.wrapperCol;const v=s.createElement("div",{className:`${g}-control-input`},s.createElement("div",{className:`${g}-control-input-content`},o)),b=s.useMemo(()=>({prefixCls:t,status:n}),[t,n]),S=f!==null||a.length||i.length?s.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},s.createElement(Ph.Provider,{value:b},s.createElement(SI,{fieldId:d,errors:a,warnings:i,help:u,helpStatus:n,className:`${g}-explain-connected`,onVisibleChanged:m})),!!f&&s.createElement("div",{style:{width:0,height:f}})):null,$={};d&&($.id=`${d}_extra`);const x=c?s.createElement("div",Object.assign({},$,{className:`${g}-extra`}),c):null,w=l&&l.mark==="pro_table_render"&&l.render?l.render(e,{input:v,errorList:S,extra:x}):s.createElement(s.Fragment,null,v,S,x);return s.createElement(ko.Provider,{value:p},s.createElement(lI,Object.assign({},h,{className:C}),w),s.createElement(ZH,{prefixCls:t}))},e7=JH;var t7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};const n7=t7;var r7=function(t,n){return s.createElement($t,ce({},t,{ref:n,icon:n7}))},o7=s.forwardRef(r7);const a7=o7;var i7=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{let{prefixCls:t,label:n,htmlFor:r,labelCol:o,labelAlign:a,colon:i,required:l,requiredMark:c,tooltip:u}=e;var d;const[f]=ei("Form"),{vertical:m,labelAlign:g,labelCol:y,labelWrap:h,colon:C}=s.useContext(ko);if(!n)return null;const p=o||y||{},v=a||g,b=`${t}-item-label`,S=V(b,v==="left"&&`${b}-left`,p.className,{[`${b}-wrap`]:!!h});let $=n;const x=i===!0||C!==!1&&i!==!1;x&&!m&&typeof n=="string"&&n.trim()!==""&&($=n.replace(/[:|:]\s*$/,""));const O=l7(u);if(O){const{icon:_=s.createElement(a7,null)}=O,R=i7(O,["icon"]),M=s.createElement(As,Object.assign({},R),s.cloneElement(_,{className:`${t}-item-tooltip`,title:"",onClick:L=>{L.preventDefault()},tabIndex:null}));$=s.createElement(s.Fragment,null,$,M)}const E=c==="optional",I=typeof c=="function";I?$=c($,{required:!!l}):E&&!l&&($=s.createElement(s.Fragment,null,$,s.createElement("span",{className:`${t}-item-optional`,title:""},(f==null?void 0:f.optional)||((d=go.Form)===null||d===void 0?void 0:d.optional))));const T=V({[`${t}-item-required`]:l,[`${t}-item-required-mark-optional`]:E||I,[`${t}-item-no-colon`]:!x});return s.createElement(lI,Object.assign({},p,{className:S}),s.createElement("label",{htmlFor:r,className:T,title:typeof n=="string"?n:""},$))},c7=s7,u7={success:af,warning:gl,error:ml,validating:pl};function OI(e){let{children:t,errors:n,warnings:r,hasFeedback:o,validateStatus:a,prefixCls:i,meta:l,noStyle:c}=e;const u=`${i}-item`,{feedbackIcons:d}=s.useContext(ko),f=$I(n,r,l,null,!!o,a),{isFormItemInput:m,status:g,hasFeedback:y,feedbackIcon:h}=s.useContext(Qn),C=s.useMemo(()=>{var p;let v;if(o){const S=o!==!0&&o.icons||d,$=f&&((p=S==null?void 0:S({status:f,errors:n,warnings:r}))===null||p===void 0?void 0:p[f]),x=f&&u7[f];v=$!==!1&&x?s.createElement("span",{className:V(`${u}-feedback-icon`,`${u}-feedback-icon-${f}`)},$||s.createElement(x,null)):null}const b={status:f||"",errors:n,warnings:r,hasFeedback:!!o,feedbackIcon:v,isFormItemInput:!0};return c&&(b.status=(f??g)||"",b.isFormItemInput=m,b.hasFeedback=!!(o??y),b.feedbackIcon=o!==void 0?b.feedbackIcon:h),b},[f,o,c,m,g]);return s.createElement(Qn.Provider,{value:C},t)}var d7=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{if(O&&S.current){const z=getComputedStyle(S.current);T(parseInt(z.marginBottom,10))}},[O,E]);const _=z=>{z||T(null)},M=function(){let z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const P=z?$:u.errors,N=z?x:u.warnings;return $I(P,N,u,"",!!d,c)}(),L=V(v,n,r,{[`${v}-with-help`]:w||$.length||x.length,[`${v}-has-feedback`]:M&&d,[`${v}-has-success`]:M==="success",[`${v}-has-warning`]:M==="warning",[`${v}-has-error`]:M==="error",[`${v}-is-validating`]:M==="validating",[`${v}-hidden`]:f});return s.createElement("div",{className:L,style:o,ref:S},s.createElement(dA,Object.assign({className:`${v}-row`},Kt(p,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),s.createElement(c7,Object.assign({htmlFor:g},e,{requiredMark:b,required:y??h,prefixCls:t})),s.createElement(e7,Object.assign({},e,u,{errors:$,warnings:x,prefixCls:t,status:M,help:a,marginBottom:I,onErrorVisibleChanged:_}),s.createElement(fE.Provider,{value:C},s.createElement(OI,{prefixCls:t,meta:u,errors:u.errors,warnings:u.warnings,hasFeedback:d,validateStatus:M},m)))),!!I&&s.createElement("div",{className:`${v}-margin-offset`,style:{marginBottom:-I}}))}const m7="__SPLIT__";function g7(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(o=>{const a=e[o],i=t[o];return a===i||typeof a=="function"||typeof i=="function"})}const p7=s.memo(e=>{let{children:t}=e;return t},(e,t)=>g7(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function uS(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function v7(e){const{name:t,noStyle:n,className:r,dependencies:o,prefixCls:a,shouldUpdate:i,rules:l,children:c,required:u,label:d,messageVariables:f,trigger:m="onChange",validateTrigger:g,hidden:y,help:h}=e,{getPrefixCls:C}=s.useContext(je),{name:p}=s.useContext(ko),v=UH(c),b=typeof v=="function",S=s.useContext(fE),{validateTrigger:$}=s.useContext(Ua),x=g!==void 0?g:$,w=t!=null,O=C("form",a),E=gn(O),[I,T,_]=u0(O,E);Fo();const R=s.useContext(ks),M=s.useRef(),[L,z]=XH({}),[P,N]=da(()=>uS()),k=re=>{const Z=R==null?void 0:R.getKey(re.name);if(N(re.destroy?uS():re,!0),n&&h!==!1&&S){let ne=re.name;if(re.destroy)ne=M.current||ne;else if(Z!==void 0){const[le,ee]=Z;ne=[le].concat(ue(ee)),M.current=ne}S(re,ne)}},j=(re,Z)=>{z(ne=>{const le=Object.assign({},ne),q=[].concat(ue(re.name.slice(0,-1)),ue(Z)).join(m7);return re.destroy?delete le[q]:le[q]=re,le})},[B,F]=s.useMemo(()=>{const re=ue(P.errors),Z=ue(P.warnings);return Object.values(L).forEach(ne=>{re.push.apply(re,ue(ne.errors||[])),Z.push.apply(Z,ue(ne.warnings||[]))}),[re,Z]},[L,P.errors,P.warnings]),K=YH();function X(re,Z,ne){return n&&!y?s.createElement(OI,{prefixCls:O,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:P,errors:B,warnings:F,noStyle:!0},re):s.createElement(f7,Object.assign({key:"row"},e,{className:V(r,_,E,T),prefixCls:O,fieldId:Z,isRequired:ne,errors:B,warnings:F,meta:P,onSubItemMetaChange:j}),re)}if(!w&&!b&&!o)return I(X(v));let U={};return typeof d=="string"?U.label=d:t&&(U.label=String(t)),f&&(U=Object.assign(Object.assign({},U),f)),I(s.createElement(Oh,Object.assign({},e,{messageVariables:U,trigger:m,validateTrigger:x,onMetaChange:k}),(re,Z,ne)=>{const le=cs(t).length&&Z?Z.name:[],ee=xI(le,p),q=u!==void 0?u:!!(l&&l.some(W=>{if(W&&typeof W=="object"&&W.required&&!W.warningOnly)return!0;if(typeof W=="function"){const Y=W(ne);return Y&&Y.required&&!Y.warningOnly}return!1})),te=Object.assign({},re);let J=null;if(Array.isArray(v)&&w)J=v;else if(!(b&&(!(i||o)||w))){if(!(o&&!b&&!w))if(s.isValidElement(v)){const W=Object.assign(Object.assign({},v.props),te);if(W.id||(W.id=ee),h||B.length>0||F.length>0||e.extra){const oe=[];(h||B.length>0)&&oe.push(`${ee}_help`),e.extra&&oe.push(`${ee}_extra`),W["aria-describedby"]=oe.join(" ")}B.length>0&&(W["aria-invalid"]="true"),q&&(W["aria-required"]="true"),to(v)&&(W.ref=K(le,v)),new Set([].concat(ue(cs(m)),ue(cs(x)))).forEach(oe=>{W[oe]=function(){for(var se,ae,ie,pe,me,ge=arguments.length,ve=new Array(ge),$e=0;$e{var{prefixCls:t,children:n}=e,r=y7(e,["prefixCls","children"]);const{getPrefixCls:o}=s.useContext(je),a=o("form",t),i=s.useMemo(()=>({prefixCls:a,status:"error"}),[a]);return s.createElement(sE,Object.assign({},r),(l,c,u)=>s.createElement(Ph.Provider,{value:i},n(l.map(d=>Object.assign(Object.assign({},d),{fieldKey:d.key})),c,{errors:u.errors,warnings:u.warnings})))},C7=b7;function S7(){const{form:e}=s.useContext(ko);return e}const Ho=GH;Ho.Item=h7;Ho.List=C7;Ho.ErrorList=SI;Ho.useForm=wI;Ho.useFormInstance=S7;Ho.useWatch=dE;Ho.Provider=mE;Ho.create=()=>{};const AU=Ho;function dS(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function Qc(e,t,n,r){var o=Qu.unstable_batchedUpdates?function(i){Qu.unstable_batchedUpdates(n,i)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,o,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,o,r)}}}var x7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"};const $7=x7;var w7=function(t,n){return s.createElement($t,ce({},t,{ref:n,icon:$7}))},E7=s.forwardRef(w7);const HU=E7;var O7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"};const I7=O7;var P7=function(t,n){return s.createElement($t,ce({},t,{ref:n,icon:I7}))},R7=s.forwardRef(P7);const VU=R7;function N7(e,t,n){return typeof n=="boolean"?n:e.length?!0:lr(t).some(o=>o.type===MO)}const T7=e=>{const{componentCls:t,bodyBg:n,lightSiderBg:r,lightTriggerBg:o,lightTriggerColor:a}=e;return{[`${t}-sider-light`]:{background:r,[`${t}-sider-trigger`]:{color:a,background:o},[`${t}-sider-zero-width-trigger`]:{color:a,background:o,border:`1px solid ${n}`,borderInlineStart:0}}}},M7=T7,_7=e=>{const{antCls:t,componentCls:n,colorText:r,triggerColor:o,footerBg:a,triggerBg:i,headerHeight:l,headerPadding:c,headerColor:u,footerPadding:d,triggerHeight:f,zeroTriggerHeight:m,zeroTriggerWidth:g,motionDurationMid:y,motionDurationSlow:h,fontSize:C,borderRadius:p,bodyBg:v,headerBg:b,siderBg:S}=e;return{[n]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:v,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},[`${n}-sider`]:{position:"relative",minWidth:0,background:S,transition:`all ${y}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${t}-menu${t}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:f},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:f,color:o,lineHeight:H(f),textAlign:"center",background:i,cursor:"pointer",transition:`all ${y}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:l,insetInlineEnd:e.calc(g).mul(-1).equal(),zIndex:1,width:g,height:m,color:o,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:S,borderStartStartRadius:0,borderStartEndRadius:p,borderEndEndRadius:p,borderEndStartRadius:0,cursor:"pointer",transition:`background ${h} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${h}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(g).mul(-1).equal(),borderStartStartRadius:p,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:p}}}}},M7(e)),{"&-rtl":{direction:"rtl"}}),[`${n}-header`]:{height:l,padding:c,color:u,lineHeight:H(l),background:b,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:d,color:r,fontSize:C,background:a},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},z7=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:o,controlHeightSM:a,marginXXS:i,colorTextLightSolid:l,colorBgContainer:c}=e,u=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${u}px`,headerColor:o,footerPadding:`${a}px ${u}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+i*2,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:o}},PI=_t("Layout",e=>[_7(e)],z7,{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]});var RI=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);os.forwardRef((i,l)=>s.createElement(o,Object.assign({ref:l,suffixCls:t,tagName:n},i)))}const d0=s.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:o,tagName:a}=e,i=RI(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:l}=s.useContext(je),c=l("layout",n),[u,d,f]=PI(c),m=r?`${c}-${r}`:c;return u(s.createElement(a,Object.assign({className:V(n||m,o,d,f),ref:t},i)))}),j7=s.forwardRef((e,t)=>{const{direction:n}=s.useContext(je),[r,o]=s.useState([]),{prefixCls:a,className:i,rootClassName:l,children:c,hasSider:u,tagName:d,style:f}=e,m=RI(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),g=Kt(m,["suffixCls"]),{getPrefixCls:y,layout:h}=s.useContext(je),C=y("layout",a),p=N7(r,c,u),[v,b,S]=PI(C),$=V(C,{[`${C}-has-sider`]:p,[`${C}-rtl`]:n==="rtl"},h==null?void 0:h.className,i,l,b,S),x=s.useMemo(()=>({siderHook:{addSider:w=>{o(O=>[].concat(ue(O),[w]))},removeSider:w=>{o(O=>O.filter(E=>E!==w))}}}),[]);return v(s.createElement(TO.Provider,{value:x},s.createElement(d,Object.assign({ref:t,className:$,style:Object.assign(Object.assign({},h==null?void 0:h.style),f)},g),c)))}),L7=Nf({tagName:"div",displayName:"Layout"})(j7),k7=Nf({suffixCls:"header",tagName:"header",displayName:"Header"})(d0),D7=Nf({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(d0),B7=Nf({suffixCls:"content",tagName:"main",displayName:"Content"})(d0),F7=L7,$l=F7;$l.Header=k7;$l.Footer=D7;$l.Content=B7;$l.Sider=MO;$l._InternalSiderContext=$f;const KU=$l,A7=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{const o=n[r];o!==void 0&&(e[r]=o)})}return e},H7=A7;var V7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};const K7=V7;var W7=function(t,n){return s.createElement($t,ce({},t,{ref:n,icon:K7}))},G7=s.forwardRef(W7);const fS=G7;var U7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};const q7=U7;var X7=function(t,n){return s.createElement($t,ce({},t,{ref:n,icon:q7}))},Y7=s.forwardRef(X7);const mS=Y7;var Q7={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},Z7=["10","20","50","100"],J7=function(t){var n=t.pageSizeOptions,r=n===void 0?Z7:n,o=t.locale,a=t.changeSize,i=t.pageSize,l=t.goButton,c=t.quickGo,u=t.rootPrefixCls,d=t.selectComponentClass,f=t.selectPrefixCls,m=t.disabled,g=t.buildOptionText,y=G.useState(""),h=Q(y,2),C=h[0],p=h[1],v=function(){return!C||Number.isNaN(C)?void 0:Number(C)},b=typeof g=="function"?g:function(M){return"".concat(M," ").concat(o.items_per_page)},S=function(L){a==null||a(Number(L))},$=function(L){p(L.target.value)},x=function(L){l||C===""||(p(""),!(L.relatedTarget&&(L.relatedTarget.className.indexOf("".concat(u,"-item-link"))>=0||L.relatedTarget.className.indexOf("".concat(u,"-item"))>=0))&&(c==null||c(v())))},w=function(L){C!==""&&(L.keyCode===fe.ENTER||L.type==="click")&&(p(""),c==null||c(v()))},O=function(){return r.some(function(L){return L.toString()===i.toString()})?r:r.concat([i.toString()]).sort(function(L,z){var P=Number.isNaN(Number(L))?0:Number(L),N=Number.isNaN(Number(z))?0:Number(z);return P-N})},E="".concat(u,"-options");if(!a&&!c)return null;var I=null,T=null,_=null;if(a&&d){var R=O().map(function(M,L){return G.createElement(d.Option,{key:L,value:M.toString()},b(M))});I=G.createElement(d,{disabled:m,prefixCls:f,showSearch:!1,className:"".concat(E,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(i||r[0]).toString(),onChange:S,getPopupContainer:function(L){return L.parentNode},"aria-label":o.page_size,defaultOpen:!1},R)}return c&&(l&&(_=typeof l=="boolean"?G.createElement("button",{type:"button",onClick:w,onKeyUp:w,disabled:m,className:"".concat(E,"-quick-jumper-button")},o.jump_to_confirm):G.createElement("span",{onClick:w,onKeyUp:w},l)),T=G.createElement("div",{className:"".concat(E,"-quick-jumper")},o.jump_to,G.createElement("input",{disabled:m,type:"text",value:C,onChange:$,onKeyUp:w,onBlur:x,"aria-label":o.page}),o.page,_)),G.createElement("li",{className:E},I,T)},Fl=function(t){var n,r=t.rootPrefixCls,o=t.page,a=t.active,i=t.className,l=t.showTitle,c=t.onClick,u=t.onKeyPress,d=t.itemRender,f="".concat(r,"-item"),m=V(f,"".concat(f,"-").concat(o),(n={},D(n,"".concat(f,"-active"),a),D(n,"".concat(f,"-disabled"),!o),n),i),g=function(){c(o)},y=function(p){u(p,c,o)},h=d(o,"page",G.createElement("a",{rel:"nofollow"},o));return h?G.createElement("li",{title:l?String(o):null,className:m,onClick:g,onKeyDown:y,tabIndex:0},h):null},e9=function(t,n,r){return r};function gS(){}function pS(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function $a(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var t9=function(t){var n,r=t.prefixCls,o=r===void 0?"rc-pagination":r,a=t.selectPrefixCls,i=a===void 0?"rc-select":a,l=t.className,c=t.selectComponentClass,u=t.current,d=t.defaultCurrent,f=d===void 0?1:d,m=t.total,g=m===void 0?0:m,y=t.pageSize,h=t.defaultPageSize,C=h===void 0?10:h,p=t.onChange,v=p===void 0?gS:p,b=t.hideOnSinglePage,S=t.showPrevNextJumpers,$=S===void 0?!0:S,x=t.showQuickJumper,w=t.showLessItems,O=t.showTitle,E=O===void 0?!0:O,I=t.onShowSizeChange,T=I===void 0?gS:I,_=t.locale,R=_===void 0?Q7:_,M=t.style,L=t.totalBoundaryShowSizeChanger,z=L===void 0?50:L,P=t.disabled,N=t.simple,k=t.showTotal,j=t.showSizeChanger,B=t.pageSizeOptions,F=t.itemRender,K=F===void 0?e9:F,X=t.jumpPrevIcon,U=t.jumpNextIcon,re=t.prevIcon,Z=t.nextIcon,ne=G.useRef(null),le=Jt(10,{value:y,defaultValue:C}),ee=Q(le,2),q=ee[0],te=ee[1],J=Jt(1,{value:u,defaultValue:f,postState:function(mt){return Math.max(1,Math.min(mt,$a(void 0,q,g)))}}),W=Q(J,2),Y=W[0],de=W[1],oe=G.useState(Y),se=Q(oe,2),ae=se[0],ie=se[1];s.useEffect(function(){ie(Y)},[Y]);var pe=Math.max(1,Y-(w?3:5)),me=Math.min($a(void 0,q,g),Y+(w?3:5));function ge(Qe,mt){var It=Qe||G.createElement("button",{type:"button","aria-label":mt,className:"".concat(o,"-item-link")});return typeof Qe=="function"&&(It=G.createElement(Qe,A({},t))),It}function ve(Qe){var mt=Qe.target.value,It=$a(void 0,q,g),Bt;return mt===""?Bt=mt:Number.isNaN(Number(mt))?Bt=ae:mt>=It?Bt=It:Bt=Number(mt),Bt}function $e(Qe){return pS(Qe)&&Qe!==Y&&pS(g)&&g>0}var we=g>q?x:!1;function We(Qe){(Qe.keyCode===fe.UP||Qe.keyCode===fe.DOWN)&&Qe.preventDefault()}function _e(Qe){var mt=ve(Qe);switch(mt!==ae&&ie(mt),Qe.keyCode){case fe.ENTER:Oe(mt);break;case fe.UP:Oe(mt-1);break;case fe.DOWN:Oe(mt+1);break}}function Se(Qe){Oe(ve(Qe))}function Ce(Qe){var mt=$a(Qe,q,g),It=Y>mt&&mt!==0?mt:Y;te(Qe),ie(It),T==null||T(Y,Qe),de(It),v==null||v(It,Qe)}function Oe(Qe){if($e(Qe)&&!P){var mt=$a(void 0,q,g),It=Qe;return Qe>mt?It=mt:Qe<1&&(It=1),It!==ae&&ie(It),de(It),v==null||v(It,q),It}return Y}var ke=Y>1,Ze=Y<$a(void 0,q,g),He=j??g>z;function Ve(){ke&&Oe(Y-1)}function it(){Ze&&Oe(Y+1)}function Je(){Oe(pe)}function Ae(){Oe(me)}function lt(Qe,mt){if(Qe.key==="Enter"||Qe.charCode===fe.ENTER||Qe.keyCode===fe.ENTER){for(var It=arguments.length,Bt=new Array(It>2?It-2:0),un=2;ung?g:Y*q])),rt=null,ye=$a(void 0,q,g);if(b&&g<=q)return null;var Re=[],Pe={rootPrefixCls:o,onClick:Oe,onKeyPress:lt,showTitle:E,itemRender:K,page:-1},Ge=Y-1>0?Y-1:0,ot=Y+1=Ee*2&&Y!==1+2&&(Re[0]=G.cloneElement(Re[0],{className:V("".concat(o,"-item-after-jump-prev"),Re[0].props.className)}),Re.unshift(De)),ye-Y>=Ee*2&&Y!==ye-2){var gt=Re[Re.length-1];Re[Re.length-1]=G.cloneElement(gt,{className:V("".concat(o,"-item-before-jump-next"),gt.props.className)}),Re.push(rt)}ct!==1&&Re.unshift(G.createElement(Fl,ce({},Pe,{key:1,page:1}))),xt!==ye&&Re.push(G.createElement(Fl,ce({},Pe,{key:ye,page:ye})))}var en=nt(Ge);if(en){var tn=!ke||!ye;en=G.createElement("li",{title:E?R.prev_page:null,onClick:Ve,tabIndex:tn?null:0,onKeyDown:ut,className:V("".concat(o,"-prev"),D({},"".concat(o,"-disabled"),tn)),"aria-disabled":tn},en)}var pn=Me(ot);if(pn){var At,Kn;N?(At=!Ze,Kn=ke?0:null):(At=!Ze||!ye,Kn=At?null:0),pn=G.createElement("li",{title:E?R.next_page:null,onClick:it,tabIndex:Kn,onKeyDown:St,className:V("".concat(o,"-next"),D({},"".concat(o,"-disabled"),At)),"aria-disabled":At},pn)}var kn=V(o,l,(n={},D(n,"".concat(o,"-simple"),N),D(n,"".concat(o,"-disabled"),P),n));return G.createElement("ul",ce({className:kn,style:M,ref:ne},xe),ze,en,N?Be:Re,pn,G.createElement(J7,{locale:R,rootPrefixCls:o,disabled:P,selectComponentClass:c,selectPrefixCls:i,changeSize:He?Ce:null,pageSize:q,pageSizeOptions:B,quickGo:we?Oe:null,goButton:Ot}))};const NI=e=>s.createElement(yf,Object.assign({},e,{showSearch:!0,size:"small"})),TI=e=>s.createElement(yf,Object.assign({},e,{showSearch:!0,size:"middle"}));NI.Option=yf.Option;TI.Option=yf.Option;const n9=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},r9=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:H(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:H(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:H(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[` &${t}-mini ${t}-prev ${t}-item-link, &${t}-mini ${t}-next ${t}-item-link - `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:H(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:H(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:H(e.itemSizeSM),input:Object.assign(Object.assign({},o0(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},Y7=e=>{const{componentCls:t}=e;return{[` + `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:H(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:H(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:H(e.itemSizeSM),input:Object.assign(Object.assign({},o0(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},o9=e=>{const{componentCls:t}=e;return{[` &${t}-simple ${t}-prev, &${t}-simple ${t}-next - `]:{height:e.itemSizeSM,lineHeight:H(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:H(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${H(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${H(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${H(e.inputOutlineOffset)} 0 ${H(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},Q7=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[` + `]:{height:e.itemSizeSM,lineHeight:H(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:H(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${H(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${H(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${H(e.inputOutlineOffset)} 0 ${H(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},a9=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[` ${t}-prev, ${t}-jump-prev, ${t}-jump-next @@ -328,7 +328,7 @@ html body { ${t}-next, ${t}-jump-prev, ${t}-jump-next - `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:`${H(e.itemSize)}`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${H(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:H(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},a0(e)),r0(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},Ef(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},Z7=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:H(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${H(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${H(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},J7=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},zt(e)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:H(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),Z7(e)),Q7(e)),Y7(e)),X7(e)),q7(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},e9=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},zo(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},pa(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},pa(e))}}}},MI=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},n0(e)),_I=e=>bt(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},t0(e)),t9=_t("Pagination",e=>{const t=_I(e);return[J7(t),e9(t)]},MI),n9=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${H(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},r9=ti(["Pagination","bordered"],e=>{const t=_I(e);return[n9(t)]},MI);var o9=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,selectPrefixCls:n,className:r,rootClassName:o,style:a,size:i,locale:l,selectComponentClass:c,responsive:u,showSizeChanger:d}=e,f=o9(e,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:m}=cO(u),[,g]=mn(),{getPrefixCls:y,direction:h,pagination:C={}}=s.useContext(je),p=y("pagination",t),[v,b,S]=t9(p),$=d??C.showSizeChanger,x=s.useMemo(()=>{const M=s.createElement("span",{className:`${p}-item-ellipsis`},"•••"),L=s.createElement("button",{className:`${p}-item-link`,type:"button",tabIndex:-1},h==="rtl"?s.createElement(Hs,null):s.createElement(pd,null)),z=s.createElement("button",{className:`${p}-item-link`,type:"button",tabIndex:-1},h==="rtl"?s.createElement(pd,null):s.createElement(Hs,null)),P=s.createElement("a",{className:`${p}-item-link`},s.createElement("div",{className:`${p}-item-container`},h==="rtl"?s.createElement(mS,{className:`${p}-item-link-icon`}):s.createElement(fS,{className:`${p}-item-link-icon`}),M)),N=s.createElement("a",{className:`${p}-item-link`},s.createElement("div",{className:`${p}-item-container`},h==="rtl"?s.createElement(fS,{className:`${p}-item-link-icon`}):s.createElement(mS,{className:`${p}-item-link-icon`}),M));return{prevIcon:L,nextIcon:z,jumpPrevIcon:P,jumpNextIcon:N}},[h,p]),[w]=ei("Pagination",K$),O=Object.assign(Object.assign({},w),l),E=sr(i),I=E==="small"||!!(m&&!E&&u),T=y("select",n),_=V({[`${p}-mini`]:I,[`${p}-rtl`]:h==="rtl",[`${p}-bordered`]:g.wireframe},C==null?void 0:C.className,r,o,b,S),R=Object.assign(Object.assign({},C==null?void 0:C.style),a);return v(s.createElement(s.Fragment,null,g.wireframe&&s.createElement(r9,{prefixCls:p}),s.createElement(U7,Object.assign({},x,f,{style:R,prefixCls:p,selectPrefixCls:T,className:_,selectComponentClass:c||(I?NI:TI),locale:O,showSizeChanger:$}))))},i9=a9,l9=new yt("antSpinMove",{to:{opacity:1}}),s9=new yt("antRotate",{to:{transform:"rotate(405deg)"}}),c9=e=>{const{componentCls:t,calc:n}=e;return{[`${t}`]:Object.assign(Object.assign({},zt(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[`${t}-dot ${t}-dot-item`]:{backgroundColor:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),backgroundColor:e.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:l9,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:s9,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${t}-dot`]:{fontSize:e.dotSizeSM,i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{fontSize:e.dotSizeLG,i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},u9=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},d9=_t("Spin",e=>{const t=bt(e,{spinDotDefault:e.colorTextDescription});return[c9(t)]},u9);var f9=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,spinning:n=!0,delay:r=0,className:o,rootClassName:a,size:i="default",tip:l,wrapperClassName:c,style:u,children:d,fullscreen:f=!1}=e,m=f9(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen"]),{getPrefixCls:g}=s.useContext(je),y=g("spin",t),[h,C,p]=d9(y),[v,b]=s.useState(()=>n&&!g9(n,r));s.useEffect(()=>{if(n){const _=L5(r,()=>{b(!0)});return _(),()=>{var R;(R=_==null?void 0:_.cancel)===null||R===void 0||R.call(_)}}b(!1)},[r,n]);const S=s.useMemo(()=>typeof d<"u"&&!f,[d,f]),{direction:$,spin:x}=s.useContext(je),w=V(y,x==null?void 0:x.className,{[`${y}-sm`]:i==="small",[`${y}-lg`]:i==="large",[`${y}-spinning`]:v,[`${y}-show-text`]:!!l,[`${y}-fullscreen`]:f,[`${y}-fullscreen-show`]:f&&v,[`${y}-rtl`]:$==="rtl"},o,a,C,p),O=V(`${y}-container`,{[`${y}-blur`]:v}),E=Kt(m,["indicator"]),I=Object.assign(Object.assign({},x==null?void 0:x.style),u),T=s.createElement("div",Object.assign({},E,{style:I,className:w,"aria-live":"polite","aria-busy":v}),m9(y,e),l&&(S||f)?s.createElement("div",{className:`${y}-text`},l):null);return h(S?s.createElement("div",Object.assign({},E,{className:V(`${y}-nested-loading`,c,C,p)}),v&&s.createElement("div",{key:"loading"},T),s.createElement("div",{className:O,key:"container"},d)):T)};zI.setDefaultIndicator=e=>{wu=e};const p9=zI;let Nr=null,ka=e=>e(),Ks=[],Ws={};function vS(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=Ws,a=(e==null?void 0:e())||document.body;return{getContainer:()=>a,duration:t,rtl:n,maxCount:r,top:o}}const v9=G.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:o}=s.useContext(je),a=Ws.prefixCls||o("message"),i=s.useContext(ud),[l,c]=Dw(Object.assign(Object.assign(Object.assign({},n),{prefixCls:a}),i.message));return G.useImperativeHandle(t,()=>{const u=Object.assign({},l);return Object.keys(u).forEach(d=>{u[d]=function(){return r(),l[d].apply(l,arguments)}}),{instance:u,sync:r}}),c}),h9=G.forwardRef((e,t)=>{const[n,r]=G.useState(vS),o=()=>{r(vS)};G.useEffect(o,[]);const a=ec(),i=a.getRootPrefixCls(),l=a.getIconPrefixCls(),c=a.getTheme(),u=G.createElement(v9,{ref:t,sync:o,messageConfig:n});return G.createElement(tc,{prefixCls:i,iconPrefixCls:l,theme:c},a.holderRender?a.holderRender(u):u)});function Tf(){if(!Nr){const e=document.createDocumentFragment(),t={fragment:e};Nr=t,ka(()=>{uf(G.createElement(h9,{ref:n=>{const{instance:r,sync:o}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=o,Tf())})}}),e)});return}Nr.instance&&(Ks.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{ka(()=>{const r=Nr.instance.open(Object.assign(Object.assign({},Ws),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":ka(()=>{Nr==null||Nr.instance.destroy(e.key)});break;default:ka(()=>{var r;const o=(r=Nr.instance)[t].apply(r,ue(e.args));o==null||o.then(e.resolve),e.setCloseFn(o)})}}),Ks=[])}function y9(e){Ws=Object.assign(Object.assign({},Ws),e),ka(()=>{var t;(t=Nr==null?void 0:Nr.sync)===null||t===void 0||t.call(Nr)})}function b9(e){const t=hh(n=>{let r;const o={type:"open",config:e,resolve:n,setCloseFn:a=>{r=a}};return Ks.push(o),()=>{r?ka(()=>{r()}):o.skipped=!0}});return Tf(),t}function C9(e,t){ec();const n=hh(r=>{let o;const a={type:e,args:t,resolve:r,setCloseFn:i=>{o=i}};return Ks.push(a),()=>{o?ka(()=>{o()}):a.skipped=!0}});return Tf(),n}const S9=e=>{Ks.push({type:"destroy",key:e}),Tf()},x9=["success","info","warning","error","loading"],$9={open:b9,destroy:S9,config:y9,useMessage:Bw,_InternalPanelDoNotUseOrYouWillBeFired:Tz},jI=$9;x9.forEach(e=>{jI[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:a,title:i,children:l,footer:c}=e,u=w9(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:d}=s.useContext(je),f=d(),m=t||d("modal"),g=gn(f),[y,h,C]=bE(m,g),p=`${m}-confirm`;let v={};return a?v={closable:o??!1,title:"",footer:"",children:s.createElement(SE,Object.assign({},e,{prefixCls:m,confirmPrefixCls:p,rootPrefixCls:f,content:l}))}:v={closable:o??!0,title:i,footer:c!==null&&s.createElement(vE,Object.assign({},e)),children:l},y(s.createElement(eE,Object.assign({prefixCls:m,className:V(h,`${m}-pure-panel`,a&&p,a&&`${p}-${a}`,n,C,g)},u,{closeIcon:pE(m,r),closable:o},v)))},O9=FE(E9);function LI(e){return uc(EE(e))}const oo=CE;oo.useModal=NE;oo.info=function(t){return uc(OE(t))};oo.success=function(t){return uc(IE(t))};oo.error=function(t){return uc(PE(t))};oo.warning=LI;oo.warn=LI;oo.confirm=function(t){return uc(RE(t))};oo.destroyAll=function(){for(;La.length;){const t=La.pop();t&&t()}};oo.config=YL;oo._InternalPanelDoNotUseOrYouWillBeFired=O9;const LU=oo;let qr=null,Eu=e=>e(),$d=[],Gs={};function hS(){const{getContainer:e,rtl:t,maxCount:n,top:r,bottom:o}=Gs,a=(e==null?void 0:e())||document.body;return{getContainer:()=>a,rtl:t,maxCount:n,top:r,bottom:o}}const I9=G.forwardRef((e,t)=>{const{notificationConfig:n,sync:r}=e,{getPrefixCls:o}=s.useContext(je),a=Gs.prefixCls||o("notification"),i=s.useContext(ud),[l,c]=LE(Object.assign(Object.assign(Object.assign({},n),{prefixCls:a}),i.notification));return G.useEffect(r,[]),G.useImperativeHandle(t,()=>{const u=Object.assign({},l);return Object.keys(u).forEach(d=>{u[d]=function(){return r(),l[d].apply(l,arguments)}}),{instance:u,sync:r}}),c}),P9=G.forwardRef((e,t)=>{const[n,r]=G.useState(hS),o=()=>{r(hS)};G.useEffect(o,[]);const a=ec(),i=a.getRootPrefixCls(),l=a.getIconPrefixCls(),c=a.getTheme(),u=G.createElement(I9,{ref:t,sync:o,notificationConfig:n});return G.createElement(tc,{prefixCls:i,iconPrefixCls:l,theme:c},a.holderRender?a.holderRender(u):u)});function f0(){if(!qr){const e=document.createDocumentFragment(),t={fragment:e};qr=t,Eu(()=>{uf(G.createElement(P9,{ref:n=>{const{instance:r,sync:o}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=o,f0())})}}),e)});return}qr.instance&&($d.forEach(e=>{switch(e.type){case"open":{Eu(()=>{qr.instance.open(Object.assign(Object.assign({},Gs),e.config))});break}case"destroy":Eu(()=>{qr==null||qr.instance.destroy(e.key)});break}}),$d=[])}function R9(e){Gs=Object.assign(Object.assign({},Gs),e),Eu(()=>{var t;(t=qr==null?void 0:qr.sync)===null||t===void 0||t.call(qr)})}function kI(e){ec(),$d.push({type:"open",config:e}),f0()}const N9=e=>{$d.push({type:"destroy",key:e}),f0()},T9=["success","info","warning","error"],M9={open:kI,destroy:N9,config:R9,useNotification:kE,_InternalPanelDoNotUseOrYouWillBeFired:pk},DI=M9;T9.forEach(e=>{DI[e]=t=>kI(Object.assign(Object.assign({},t),{type:e}))});const kU=DI,_9=e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:o,colorText:a,colorWarning:i,marginXXS:l,marginXS:c,fontSize:u,fontWeightStrong:d,colorTextHeading:f}=e;return{[t]:{zIndex:o,[`&${r}-popover`]:{fontSize:u},[`${t}-message`]:{marginBottom:c,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:i,fontSize:u,lineHeight:1,marginInlineEnd:c},[`${t}-title`]:{fontWeight:d,color:f,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:l,color:a}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:c}}}}},z9=e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},BI=_t("Popconfirm",e=>_9(e),z9,{resetStyle:!1});var j9=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:o,description:a,cancelText:i,okText:l,okType:c="primary",icon:u=s.createElement(gl,null),showCancel:d=!0,close:f,onConfirm:m,onCancel:g,onPopupClick:y}=e,{getPrefixCls:h}=s.useContext(je),[C]=ei("Popconfirm",go.Popconfirm),p=al(o),v=al(a);return s.createElement("div",{className:`${t}-inner-content`,onClick:y},s.createElement("div",{className:`${t}-message`},u&&s.createElement("span",{className:`${t}-message-icon`},u),s.createElement("div",{className:`${t}-message-text`},p&&s.createElement("div",{className:V(`${t}-title`)},p),v&&s.createElement("div",{className:`${t}-description`},v))),s.createElement("div",{className:`${t}-buttons`},d&&s.createElement(Lo,Object.assign({onClick:g,size:"small"},r),i||(C==null?void 0:C.cancelText)),s.createElement($h,{buttonProps:Object.assign(Object.assign({size:"small"},yh(c)),n),actionFn:m,close:f,prefixCls:h("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},l||(C==null?void 0:C.okText))))},L9=e=>{const{prefixCls:t,placement:n,className:r,style:o}=e,a=j9(e,["prefixCls","placement","className","style"]),{getPrefixCls:i}=s.useContext(je),l=i("popconfirm",t),[c]=BI(l);return c(s.createElement(hO,{placement:n,className:V(l,r),style:o,content:s.createElement(FI,Object.assign({prefixCls:l},a))}))},k9=L9;var D9=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,r;const{prefixCls:o,placement:a="top",trigger:i="click",okType:l="primary",icon:c=s.createElement(gl,null),children:u,overlayClassName:d,onOpenChange:f,onVisibleChange:m}=e,g=D9(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:y}=s.useContext(je),[h,C]=Jt(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),p=(E,I)=>{C(E,!0),m==null||m(E),f==null||f(E,I)},v=E=>{p(!1,E)},b=E=>{var I;return(I=e.onConfirm)===null||I===void 0?void 0:I.call(globalThis,E)},S=E=>{var I;p(!1,E),(I=e.onCancel)===null||I===void 0||I.call(globalThis,E)},$=(E,I)=>{const{disabled:T=!1}=e;T||p(E,I)},x=y("popconfirm",o),w=V(x,d),[O]=BI(x);return O(s.createElement(RB,Object.assign({},Kt(g,["title"]),{trigger:i,placement:a,onOpenChange:$,open:h,ref:t,overlayClassName:w,content:s.createElement(FI,Object.assign({okType:l,icon:c},e,{prefixCls:x,close:v,onConfirm:b,onCancel:S})),"data-popover-inject":!0}),u))}),AI=B9;AI._InternalPanelDoNotUseOrYouWillBeFired=k9;const DU=AI;var F9={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"};const A9=F9;var H9=function(t,n){return s.createElement(Pt,ce({},t,{ref:n,icon:A9}))},V9=s.forwardRef(H9);const BU=V9;var K9=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],HI=s.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-switch":r,a=e.className,i=e.checked,l=e.defaultChecked,c=e.disabled,u=e.loadingIcon,d=e.checkedChildren,f=e.unCheckedChildren,m=e.onClick,g=e.onChange,y=e.onKeyDown,h=tt(e,K9),C=Jt(!1,{value:i,defaultValue:l}),p=Q(C,2),v=p[0],b=p[1];function S(O,E){var I=v;return c||(I=O,b(I),g==null||g(I,E)),I}function $(O){O.which===fe.LEFT?S(!1,O):O.which===fe.RIGHT&&S(!0,O),y==null||y(O)}function x(O){var E=S(!v,O);m==null||m(E,O)}var w=V(o,a,(n={},D(n,"".concat(o,"-checked"),v),D(n,"".concat(o,"-disabled"),c),n));return s.createElement("button",ce({},h,{type:"button",role:"switch","aria-checked":v,disabled:c,className:w,ref:t,onKeyDown:$,onClick:x}),u,s.createElement("span",{className:"".concat(o,"-inner")},s.createElement("span",{className:"".concat(o,"-inner-checked")},d),s.createElement("span",{className:"".concat(o,"-inner-unchecked")},f)))});HI.displayName="Switch";const W9=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:a,innerMaxMarginSM:i,handleSizeSM:l,calc:c}=e,u=`${t}-inner`,d=H(c(l).add(c(r).mul(2)).equal()),f=H(c(i).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:H(n),[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${u}-checked`]:{marginInlineStart:`calc(-100% + ${d} - ${f})`,marginInlineEnd:`calc(100% - ${d} + ${f})`},[`${u}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:l,height:l},[`${t}-loading-icon`]:{top:c(c(l).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${u}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${u}-unchecked`]:{marginInlineStart:`calc(100% - ${d} + ${f})`,marginInlineEnd:`calc(-100% + ${d} - ${f})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${H(c(l).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${u}`]:{[`${u}-unchecked`]:{marginInlineStart:c(e.marginXXS).div(2).equal(),marginInlineEnd:c(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${u}`]:{[`${u}-checked`]:{marginInlineStart:c(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:c(e.marginXXS).div(2).equal()}}}}}}},G9=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},U9=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:o,handleSize:a,calc:i}=e,l=`${t}-handle`;return{[t]:{[l]:{position:"absolute",top:n,insetInlineStart:n,width:a,height:a,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:i(a).div(2).equal(),boxShadow:o,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${l}`]:{insetInlineStart:`calc(100% - ${H(i(a).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${l}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${l}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},q9=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:a,handleSize:i,calc:l}=e,c=`${t}-inner`,u=H(l(i).add(l(r).mul(2)).equal()),d=H(l(a).mul(2).equal());return{[t]:{[c]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:a,paddingInlineEnd:o,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${c}-checked, ${c}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none"},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${c}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${c}`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(r).mul(2).equal(),marginInlineEnd:l(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(r).mul(-1).mul(2).equal(),marginInlineEnd:l(r).mul(2).equal()}}}}}},X9=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},zt(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:`${H(n)}`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),zo(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},Y9=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,a=t*n,i=r/2,l=2,c=a-l*2,u=i-l*2;return{trackHeight:a,trackHeightSM:i,trackMinWidth:c*2+l*4,trackMinWidthSM:u*2+l*2,trackPadding:l,handleBg:o,handleSize:c,handleSizeSM:u,handleShadow:`0 2px 4px 0 ${new Dt("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:c/2,innerMaxMargin:c+l+l*2,innerMinMarginSM:u/2,innerMaxMarginSM:u+l+l*2}},Q9=_t("Switch",e=>{const t=bt(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[X9(t),q9(t),U9(t),G9(t),W9(t)]},Y9);var Z9=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,size:r,disabled:o,loading:a,className:i,rootClassName:l,style:c,checked:u,value:d,defaultChecked:f,defaultValue:m,onChange:g}=e,y=Z9(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[h,C]=Jt(!1,{value:u??d,defaultValue:f??m}),{getPrefixCls:p,direction:v,switch:b}=s.useContext(je),S=s.useContext(Ao),$=(o??S)||a,x=p("switch",n),w=s.createElement("div",{className:`${x}-handle`},a&&s.createElement(pl,{className:`${x}-loading-icon`})),[O,E,I]=Q9(x),T=sr(r),_=V(b==null?void 0:b.className,{[`${x}-small`]:T==="small",[`${x}-loading`]:a,[`${x}-rtl`]:v==="rtl"},i,l,E,I),R=Object.assign(Object.assign({},b==null?void 0:b.style),c),M=function(){C(arguments.length<=0?void 0:arguments[0]),g==null||g.apply(void 0,arguments)};return O(s.createElement(ac,{component:"Switch"},s.createElement(HI,Object.assign({},y,{checked:h,onChange:M,prefixCls:x,className:_,style:R,disabled:$,ref:t,loadingIcon:w}))))}),VI=J9;VI.__ANT_SWITCH=!0;const FU=VI;var Xo={},pc="rc-table-internal-hook";function m0(e){var t=s.createContext(void 0),n=function(o){var a=o.value,i=o.children,l=s.useRef(a);l.current=a;var c=s.useState(function(){return{getValue:function(){return l.current},listeners:new Set}}),u=Q(c,1),d=u[0];return Mt(function(){To.unstable_batchedUpdates(function(){d.listeners.forEach(function(f){f(a)})})},[a]),s.createElement(t.Provider,{value:d},i)};return{Context:t,Provider:n,defaultValue:e}}function Vn(e,t){var n=Ft(typeof t=="function"?t:function(f){if(t===void 0)return f;if(!Array.isArray(t))return f[t];var m={};return t.forEach(function(g){m[g]=f[g]}),m}),r=s.useContext(e==null?void 0:e.Context),o=r||{},a=o.listeners,i=o.getValue,l=s.useRef();l.current=n(r?i():e==null?void 0:e.defaultValue);var c=s.useState({}),u=Q(c,2),d=u[1];return Mt(function(){if(!r)return;function f(m){var g=n(m);mo(l.current,g,!0)||d({})}return a.add(f),function(){a.delete(f)}},[r]),l.current}function eV(){var e=s.createContext(null);function t(){return s.useContext(e)}function n(o,a){var i=to(o),l=function(u,d){var f=i?{ref:d}:{},m=s.useRef(0),g=s.useRef(u),y=t();return y!==null?s.createElement(o,ce({},u,f)):((!a||a(g.current,u))&&(m.current+=1),g.current=u,s.createElement(e.Provider,{value:m.current},s.createElement(o,ce({},u,f))))};return i?s.forwardRef(l):l}function r(o,a){var i=to(o),l=function(u,d){var f=i?{ref:d}:{};return t(),s.createElement(o,ce({},u,f))};return i?s.memo(s.forwardRef(l),a):s.memo(l,a)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var g0=eV(),KI=g0.makeImmutable,wl=g0.responseImmutable,tV=g0.useImmutableMark,cr=m0(),WI=s.createContext({renderWithProps:!1}),nV="RC_TABLE_KEY";function rV(e){return e==null?[]:Array.isArray(e)?e:[e]}function Mf(e){var t=[],n={};return e.forEach(function(r){for(var o=r||{},a=o.key,i=o.dataIndex,l=a||rV(i).join("-")||nV;n[l];)l="".concat(l,"_next");n[l]=!0,t.push(l)}),t}function Kp(e){return e!=null}function oV(e){return e&&at(e)==="object"&&!Array.isArray(e)&&!s.isValidElement(e)}function aV(e,t,n,r,o,a){var i=s.useContext(WI),l=tV(),c=Za(function(){if(Kp(r))return[r];var u=t==null||t===""?[]:Array.isArray(t)?t:[t],d=br(e,u),f=d,m=void 0;if(o){var g=o(d,e,n);oV(g)?(f=g.children,m=g.props,i.renderWithProps=!0):f=g}return[f,m]},[l,e,r,t,o,n],function(u,d){if(a){var f=Q(u,2),m=f[1],g=Q(d,2),y=g[1];return a(y,m)}return i.renderWithProps?!0:!mo(u,d,!0)});return c}function iV(e,t,n,r){var o=e+t-1;return e<=r&&o>=n}function lV(e,t){return Vn(cr,function(n){var r=iV(e,t||1,n.hoverStartRow,n.hoverEndRow);return[r,n.onHover]})}var sV=function(t){var n=t.ellipsis,r=t.rowType,o=t.children,a,i=n===!0?{showTitle:!0}:n;return i&&(i.showTitle||r==="header")&&(typeof o=="string"||typeof o=="number"?a=o.toString():s.isValidElement(o)&&typeof o.props.children=="string"&&(a=o.props.children)),a};function cV(e){var t,n,r,o,a,i,l,c,u=e.component,d=e.children,f=e.ellipsis,m=e.scope,g=e.prefixCls,y=e.className,h=e.align,C=e.record,p=e.render,v=e.dataIndex,b=e.renderIndex,S=e.shouldCellUpdate,$=e.index,x=e.rowType,w=e.colSpan,O=e.rowSpan,E=e.fixLeft,I=e.fixRight,T=e.firstFixLeft,_=e.lastFixLeft,R=e.firstFixRight,M=e.lastFixRight,L=e.appendNode,z=e.additionalProps,P=z===void 0?{}:z,N=e.isSticky,k="".concat(g,"-cell"),j=Vn(cr,["supportSticky","allColumnsFixedLeft","rowHoverable"]),B=j.supportSticky,F=j.allColumnsFixedLeft,K=j.rowHoverable,X=aV(C,v,b,d,p,S),U=Q(X,2),re=U[0],Z=U[1],ne={},le=typeof E=="number"&&B,ee=typeof I=="number"&&B;le&&(ne.position="sticky",ne.left=E),ee&&(ne.position="sticky",ne.right=I);var q=(t=(n=(r=Z==null?void 0:Z.colSpan)!==null&&r!==void 0?r:P.colSpan)!==null&&n!==void 0?n:w)!==null&&t!==void 0?t:1,te=(o=(a=(i=Z==null?void 0:Z.rowSpan)!==null&&i!==void 0?i:P.rowSpan)!==null&&a!==void 0?a:O)!==null&&o!==void 0?o:1,J=lV($,te),W=Q(J,2),Y=W[0],de=W[1],oe=Ft(function(ve){var $e;C&&de($,$+te-1),P==null||($e=P.onMouseEnter)===null||$e===void 0||$e.call(P,ve)}),se=Ft(function(ve){var $e;C&&de(-1,-1),P==null||($e=P.onMouseLeave)===null||$e===void 0||$e.call(P,ve)});if(q===0||te===0)return null;var ae=(l=P.title)!==null&&l!==void 0?l:sV({rowType:x,ellipsis:f,children:re}),ie=V(k,y,(c={},D(D(D(D(D(D(D(D(D(D(c,"".concat(k,"-fix-left"),le&&B),"".concat(k,"-fix-left-first"),T&&B),"".concat(k,"-fix-left-last"),_&&B),"".concat(k,"-fix-left-all"),_&&F&&B),"".concat(k,"-fix-right"),ee&&B),"".concat(k,"-fix-right-first"),R&&B),"".concat(k,"-fix-right-last"),M&&B),"".concat(k,"-ellipsis"),f),"".concat(k,"-with-append"),L),"".concat(k,"-fix-sticky"),(le||ee)&&N&&B),D(c,"".concat(k,"-row-hover"),!Z&&Y)),P.className,Z==null?void 0:Z.className),pe={};h&&(pe.textAlign=h);var me=A(A(A(A({},ne),P.style),pe),Z==null?void 0:Z.style),ge=re;return at(ge)==="object"&&!Array.isArray(ge)&&!s.isValidElement(ge)&&(ge=null),f&&(_||R)&&(ge=s.createElement("span",{className:"".concat(k,"-content")},ge)),s.createElement(u,ce({},Z,P,{className:ie,style:me,title:ae,scope:m,onMouseEnter:K?oe:void 0,onMouseLeave:K?se:void 0,colSpan:q!==1?q:null,rowSpan:te!==1?te:null}),L,ge)}const oi=s.memo(cV);function p0(e,t,n,r,o){var a=n[e]||{},i=n[t]||{},l,c;a.fixed==="left"?l=r.left[o==="rtl"?t:e]:i.fixed==="right"&&(c=r.right[o==="rtl"?e:t]);var u=!1,d=!1,f=!1,m=!1,g=n[t+1],y=n[e-1],h=g&&g.fixed===void 0||y&&y.fixed===void 0||n.every(function(S){return S.fixed==="left"});if(o==="rtl"){if(l!==void 0){var C=y&&y.fixed==="left";m=!C&&h}else if(c!==void 0){var p=g&&g.fixed==="right";f=!p&&h}}else if(l!==void 0){var v=g&&g.fixed==="left";u=!v&&h}else if(c!==void 0){var b=y&&y.fixed==="right";d=!b&&h}return{fixLeft:l,fixRight:c,lastFixLeft:u,firstFixRight:d,lastFixRight:f,firstFixLeft:m,isSticky:r.isSticky}}var GI=s.createContext({});function uV(e){var t=e.className,n=e.index,r=e.children,o=e.colSpan,a=o===void 0?1:o,i=e.rowSpan,l=e.align,c=Vn(cr,["prefixCls","direction"]),u=c.prefixCls,d=c.direction,f=s.useContext(GI),m=f.scrollColumnIndex,g=f.stickyOffsets,y=f.flattenColumns,h=n+a-1,C=h+1===m?a+1:a,p=p0(n,n+C-1,y,g,d);return s.createElement(oi,ce({className:t,index:n,component:"td",prefixCls:u,record:null,dataIndex:null,align:l,colSpan:C,rowSpan:i,render:function(){return r}},p))}var dV=["children"];function fV(e){var t=e.children,n=tt(e,dV);return s.createElement("tr",n,t)}function _f(e){var t=e.children;return t}_f.Row=fV;_f.Cell=uV;function mV(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,o=Vn(cr,"prefixCls"),a=r.length-1,i=r[a],l=s.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:i!=null&&i.scrollbar?a:null}},[i,r,a,n]);return s.createElement(GI.Provider,{value:l},s.createElement("tfoot",{className:"".concat(o,"-summary")},t))}const Zc=wl(mV);var UI=_f;function gV(e){return null}function pV(e){return null}function qI(e,t,n,r,o,a,i){e.push({record:t,indent:n,index:i});var l=a(t),c=o==null?void 0:o.has(l);if(t&&Array.isArray(t[r])&&c)for(var u=0;u1?T-1:0),R=1;R=1?$:""),style:A(A({},n),p==null?void 0:p.style)}),y.map(function(E,I){var T=E.render,_=E.dataIndex,R=E.className,M=ZI(m,E,I,c,o),L=M.key,z=M.fixedInfo,P=M.appendCellNode,N=M.additionalCellProps;return s.createElement(oi,ce({className:R,ellipsis:E.ellipsis,align:E.align,scope:E.rowScope,component:E.rowScope?f:d,prefixCls:g,key:L,record:r,index:o,renderIndex:a,dataIndex:_,render:T,shouldCellUpdate:E.shouldCellUpdate},z,{appendNode:P,additionalProps:N}))})),w;if(b&&(S.current||v)){var O=C(r,o,c+1,v);w=s.createElement(QI,{expanded:v,className:V("".concat(g,"-expanded-row"),"".concat(g,"-expanded-row-level-").concat(c+1),$),prefixCls:g,component:u,cellComponent:d,colSpan:y.length,isEmpty:!1},O)}return s.createElement(s.Fragment,null,x,w)}const hV=wl(vV);function yV(e){var t=e.columnKey,n=e.onColumnResize,r=s.useRef();return s.useEffect(function(){r.current&&n(t,r.current.offsetWidth)},[]),s.createElement(ir,{data:t},s.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},s.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function bV(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize;return s.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0}},s.createElement(ir.Collection,{onBatchResize:function(a){a.forEach(function(i){var l=i.data,c=i.size;r(l,c.offsetWidth)})}},n.map(function(o){return s.createElement(yV,{key:o,columnKey:o,onColumnResize:r})})))}function CV(e){var t=e.data,n=e.measureColumnWidth,r=Vn(cr,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),o=r.prefixCls,a=r.getComponent,i=r.onColumnResize,l=r.flattenColumns,c=r.getRowKey,u=r.expandedKeys,d=r.childrenColumnName,f=r.emptyNode,m=XI(t,d,u,c),g=s.useRef({renderWithProps:!1}),y=a(["body","wrapper"],"tbody"),h=a(["body","row"],"tr"),C=a(["body","cell"],"td"),p=a(["body","cell"],"th"),v;t.length?v=m.map(function(S,$){var x=S.record,w=S.indent,O=S.index,E=c(x,$);return s.createElement(hV,{key:E,rowKey:E,record:x,index:$,renderIndex:O,rowComponent:h,cellComponent:C,scopeCellComponent:p,getRowKey:c,indent:w})}):v=s.createElement(QI,{expanded:!0,className:"".concat(o,"-placeholder"),prefixCls:o,component:h,cellComponent:C,colSpan:l.length,isEmpty:!0},f);var b=Mf(l);return s.createElement(WI.Provider,{value:g.current},s.createElement(y,{className:"".concat(o,"-tbody")},n&&s.createElement(bV,{prefixCls:o,columnsKey:b,onColumnResize:i}),v))}const SV=wl(CV);var xV=["expandable"],us="RC_TABLE_INTERNAL_COL_DEFINE";function $V(e){var t=e.expandable,n=tt(e,xV),r;return"expandable"in e?r=A(A({},n),t):r=n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}var wV=["columnType"];function JI(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,o=[],a=r||n.length,i=!1,l=a-1;l>=0;l-=1){var c=t[l],u=n&&n[l],d=u&&u[us];if(c||d||i){var f=d||{};f.columnType;var m=tt(f,wV);o.unshift(s.createElement("col",ce({key:l,style:{width:c}},m))),i=!0}}return s.createElement("colgroup",null,o)}var EV=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function OV(e,t){return s.useMemo(function(){for(var n=[],r=0;r1?"colgroup":"col":null,ellipsis:C.ellipsis,align:C.align,component:i,prefixCls:d,key:g[h]},p,{additionalProps:v,rowType:"header"}))}))};function RV(e){var t=[];function n(i,l){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[c]=t[c]||[];var u=l,d=i.filter(Boolean).map(function(f){var m={key:f.key,className:f.className||"",children:f.title,column:f,colStart:u},g=1,y=f.children;return y&&y.length>0&&(g=n(y,u,c+1).reduce(function(h,C){return h+C},0),m.hasSubColumns=!0),"colSpan"in f&&(g=f.colSpan),"rowSpan"in f&&(m.rowSpan=f.rowSpan),m.colSpan=g,m.colEnd=m.colStart+g-1,t[c].push(m),u+=g,g});return d}n(e,0);for(var r=t.length,o=function(l){t[l].forEach(function(c){!("rowSpan"in c)&&!c.hasSubColumns&&(c.rowSpan=r-l)})},a=0;a1&&arguments[1]!==void 0?arguments[1]:"";return typeof t=="number"?t:t.endsWith("%")?e*parseFloat(t)/100:null}function TV(e,t,n){return s.useMemo(function(){if(t&&t>0){var r=0,o=0;e.forEach(function(m){var g=CS(t,m.width);g?r+=g:o+=1});var a=Math.max(t,n),i=Math.max(a-r,o),l=o,c=i/o,u=0,d=e.map(function(m){var g=A({},m),y=CS(t,g.width);if(y)g.width=y;else{var h=Math.floor(c);g.width=l===1?i:h,i-=h,l-=1}return u+=g.width,g});if(u0?A(A({},t),{},{children:e2(n)}):t})}function Wp(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(n){return n&&at(n)==="object"}).reduce(function(n,r,o){var a=r.fixed,i=a===!0?"left":a,l="".concat(t,"-").concat(o),c=r.children;return c&&c.length>0?[].concat(ue(n),ue(Wp(c,l).map(function(u){return A({fixed:i},u)}))):[].concat(ue(n),[A(A({key:l},r),{},{fixed:i})])},[])}function zV(e){return e.map(function(t){var n=t.fixed,r=tt(t,_V),o=n;return n==="left"?o="right":n==="right"&&(o="left"),A({fixed:o},r)})}function jV(e,t){var n=e.prefixCls,r=e.columns,o=e.children,a=e.expandable,i=e.expandedKeys,l=e.columnTitle,c=e.getRowKey,u=e.onTriggerExpand,d=e.expandIcon,f=e.rowExpandable,m=e.expandIconColumnIndex,g=e.direction,y=e.expandRowByClick,h=e.columnWidth,C=e.fixed,p=e.scrollWidth,v=e.clientWidth,b=s.useMemo(function(){var _=r||v0(o)||[];return e2(_.slice())},[r,o]),S=s.useMemo(function(){if(a){var _=b.slice();if(!_.includes(Xo)){var R=m||0;R>=0&&_.splice(R,0,Xo)}var M=_.indexOf(Xo);_=_.filter(function(N,k){return N!==Xo||k===M});var L=b[M],z;(C==="left"||C)&&!m?z="left":(C==="right"||C)&&m===b.length?z="right":z=L?L.fixed:null;var P=D(D(D(D(D(D({},us,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",l),"fixed",z),"className","".concat(n,"-row-expand-icon-cell")),"width",h),"render",function(k,j,B){var F=c(j,B),K=i.has(F),X=f?f(j):!0,U=d({prefixCls:n,expanded:K,expandable:X,record:j,onExpand:u});return y?s.createElement("span",{onClick:function(Z){return Z.stopPropagation()}},U):U});return _.map(function(N){return N===Xo?P:N})}return b.filter(function(N){return N!==Xo})},[a,b,c,i,d,g]),$=s.useMemo(function(){var _=S;return t&&(_=t(_)),_.length||(_=[{render:function(){return null}}]),_},[t,S,g]),x=s.useMemo(function(){return g==="rtl"?zV(Wp($)):Wp($)},[$,g,p]),w=s.useMemo(function(){for(var _=-1,R=x.length-1;R>=0;R-=1){var M=x[R].fixed;if(M==="left"||M===!0){_=R;break}}if(_>=0)for(var L=0;L<=_;L+=1){var z=x[L].fixed;if(z!=="left"&&z!==!0)return!0}var P=x.findIndex(function(j){var B=j.fixed;return B==="right"});if(P>=0)for(var N=P;N=f&&(N=f-m),i({scrollLeft:N/f*(d+2)}),v.current.x=M.pageX},T=function(){w.current=It(function(){if(a.current){var M=dS(a.current).top,L=M+a.current.offsetHeight,z=c===window?document.documentElement.scrollTop+window.innerHeight:dS(c).top+c.clientHeight;L-zb()<=z||M>=z-l?p(function(P){return A(A({},P),{},{isHiddenScrollBar:!0})}):p(function(P){return A(A({},P),{},{isHiddenScrollBar:!1})})}})},_=function(M){p(function(L){return A(A({},L),{},{scrollLeft:M/d*f||0})})};return s.useImperativeHandle(n,function(){return{setScrollLeft:_,checkScrollBarVisible:T}}),s.useEffect(function(){var R=Qc(document.body,"mouseup",O,!1),M=Qc(document.body,"mousemove",I,!1);return T(),function(){R.remove(),M.remove()}},[m,$]),s.useEffect(function(){var R=Qc(c,"scroll",T,!1),M=Qc(window,"resize",T,!1);return function(){R.remove(),M.remove()}},[c]),s.useEffect(function(){C.isHiddenScrollBar||p(function(R){var M=a.current;return M?A(A({},R),{},{scrollLeft:M.scrollLeft/M.scrollWidth*M.clientWidth}):R})},[C.isHiddenScrollBar]),d<=f||!m||C.isHiddenScrollBar?null:s.createElement("div",{style:{height:zb(),width:f,bottom:l},className:"".concat(u,"-sticky-scroll")},s.createElement("div",{onMouseDown:E,ref:g,className:V("".concat(u,"-sticky-scroll-bar"),D({},"".concat(u,"-sticky-scroll-bar-active"),$)),style:{width:"".concat(m,"px"),transform:"translate3d(".concat(C.scrollLeft,"px, 0, 0)")}}))};const WV=s.forwardRef(KV);var n2="rc-table",GV=[],UV={};function qV(){return"No Data"}function XV(e,t){var n=A({rowKey:"key",prefixCls:n2,emptyText:qV},e),r=n.prefixCls,o=n.className,a=n.rowClassName,i=n.style,l=n.data,c=n.rowKey,u=n.scroll,d=n.tableLayout,f=n.direction,m=n.title,g=n.footer,y=n.summary,h=n.caption,C=n.id,p=n.showHeader,v=n.components,b=n.emptyText,S=n.onRow,$=n.onHeaderRow,x=n.onScroll,w=n.internalHooks,O=n.transformColumns,E=n.internalRefs,I=n.tailor,T=n.getContainerWidth,_=n.sticky,R=n.rowHoverable,M=R===void 0?!0:R,L=l||GV,z=!!L.length,P=w===pc,N=s.useCallback(function(pt,dt){return br(v,pt)||dt},[v]),k=s.useMemo(function(){return typeof c=="function"?c:function(pt){var dt=pt&&pt[c];return dt}},[c]),j=N(["body"]),B=AV(),F=Q(B,3),K=F[0],X=F[1],U=F[2],re=DV(n,L,k),Z=Q(re,6),ne=Z[0],le=Z[1],ee=Z[2],q=Z[3],te=Z[4],J=Z[5],W=u==null?void 0:u.x,Y=s.useState(0),de=Q(Y,2),oe=de[0],se=de[1],ae=jV(A(A(A({},n),ne),{},{expandable:!!ne.expandedRowRender,columnTitle:ne.columnTitle,expandedKeys:ee,getRowKey:k,onTriggerExpand:J,expandIcon:q,expandIconColumnIndex:ne.expandIconColumnIndex,direction:f,scrollWidth:P&&I&&typeof W=="number"?W:null,clientWidth:oe}),P?O:null),ie=Q(ae,4),pe=ie[0],me=ie[1],ge=ie[2],ve=ie[3],$e=ge??W,we=s.useMemo(function(){return{columns:pe,flattenColumns:me}},[pe,me]),We=s.useRef(),_e=s.useRef(),Se=s.useRef(),Ce=s.useRef();s.useImperativeHandle(t,function(){return{nativeElement:We.current,scrollTo:function(dt){var Xt;if(Se.current instanceof HTMLElement){var Rn=dt.index,Yt=dt.top,Ar=dt.key;if(Yt){var fr;(fr=Se.current)===null||fr===void 0||fr.scrollTo({top:Yt})}else{var Or,po=Ar??k(L[Rn]);(Or=Se.current.querySelector('[data-row-key="'.concat(po,'"]')))===null||Or===void 0||Or.scrollIntoView()}}else(Xt=Se.current)!==null&&Xt!==void 0&&Xt.scrollTo&&Se.current.scrollTo(dt)}}});var Oe=s.useRef(),ke=s.useState(!1),Ze=Q(ke,2),He=Ze[0],Ve=Ze[1],it=s.useState(!1),Je=Q(it,2),Ae=Je[0],lt=Je[1],ut=t2(new Map),St=Q(ut,2),st=St[0],vt=St[1],nt=Mf(me),Me=nt.map(function(pt){return st.get(pt)}),Xe=s.useMemo(function(){return Me},[Me.join("_")]),De=VV(Xe,me,f),xe=u&&Kp(u.y),ze=u&&Kp($e)||!!ne.fixed,rt=ze&&me.some(function(pt){var dt=pt.fixed;return dt}),ye=s.useRef(),Re=HV(_,r),Pe=Re.isSticky,Ge=Re.offsetHeader,ot=Re.offsetSummary,et=Re.offsetScroll,Et=Re.stickyClassName,Be=Re.container,Ee=s.useMemo(function(){return y==null?void 0:y(L)},[y,L]),be=(xe||Pe)&&s.isValidElement(Ee)&&Ee.type===_f&&Ee.props.fixed,Ue,Ne,Te;xe&&(Ne={overflowY:"scroll",maxHeight:u.y}),ze&&(Ue={overflowX:"auto"},xe||(Ne={overflowY:"hidden"}),Te={width:$e===!0?"auto":$e,minWidth:"100%"});var Fe=s.useCallback(function(pt,dt){oc(We.current)&&vt(function(Xt){if(Xt.get(pt)!==dt){var Rn=new Map(Xt);return Rn.set(pt,dt),Rn}return Xt})},[]),ct=FV(null),xt=Q(ct,2),Ut=xt[0],gt=xt[1];function en(pt,dt){dt&&(typeof dt=="function"?dt(pt):dt.scrollLeft!==pt&&(dt.scrollLeft=pt,dt.scrollLeft!==pt&&setTimeout(function(){dt.scrollLeft=pt},0)))}var tn=Ft(function(pt){var dt=pt.currentTarget,Xt=pt.scrollLeft,Rn=f==="rtl",Yt=typeof Xt=="number"?Xt:dt.scrollLeft,Ar=dt||UV;if(!gt()||gt()===Ar){var fr;Ut(Ar),en(Yt,_e.current),en(Yt,Se.current),en(Yt,Oe.current),en(Yt,(fr=ye.current)===null||fr===void 0?void 0:fr.setScrollLeft)}var Or=dt||_e.current;if(Or){var po=Or.scrollWidth,xa=Or.clientWidth;if(po===xa){Ve(!1),lt(!1);return}Rn?(Ve(-Yt0)):(Ve(Yt>0),lt(Yt1?C-M:0,z=A(A(A({},O),u),{},{flex:"0 0 ".concat(M,"px"),width:"".concat(M,"px"),marginRight:L,pointerEvents:"auto"}),P=s.useMemo(function(){return f?_<=1:I===0||_===0||_>1},[_,I,f]);P?z.visibility="hidden":f&&(z.height=m==null?void 0:m(_));var N=P?function(){return null}:g,k={};return(_===0||I===0)&&(k.rowSpan=1,k.colSpan=1),s.createElement(oi,ce({className:V(h,d),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:i,prefixCls:t.prefixCls,key:S,record:c,index:a,renderIndex:l,dataIndex:y,render:N,shouldCellUpdate:n.shouldCellUpdate},$,{appendNode:x,additionalProps:A(A({},w),{},{style:z},k)}))}var JV=["data","index","className","rowKey","style","extra","getHeight"],eK=s.forwardRef(function(e,t){var n=e.data,r=e.index,o=e.className,a=e.rowKey,i=e.style,l=e.extra,c=e.getHeight,u=tt(e,JV),d=n.record,f=n.indent,m=n.index,g=Vn(cr,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),y=g.scrollX,h=g.flattenColumns,C=g.prefixCls,p=g.fixColumn,v=g.componentWidth,b=Vn(h0,["getComponent"]),S=b.getComponent,$=YI(d,a,r,f),x=S(["body","row"],"div"),w=S(["body","cell"],"div"),O=$.rowSupportExpand,E=$.expanded,I=$.rowProps,T=$.expandedRowRender,_=$.expandedRowClassName,R;if(O&&E){var M=T(d,r,f+1,E),L=_==null?void 0:_(d,r,f),z={};p&&(z={style:D({},"--virtual-width","".concat(v,"px"))});var P="".concat(C,"-expanded-row-cell");R=s.createElement(x,{className:V("".concat(C,"-expanded-row"),"".concat(C,"-expanded-row-level-").concat(f+1),L)},s.createElement(oi,{component:w,prefixCls:C,className:V(P,D({},"".concat(P,"-fixed"),p)),additionalProps:z},M))}var N=A(A({},i),{},{width:y});l&&(N.position="absolute",N.pointerEvents="none");var k=s.createElement(x,ce({},I,u,{"data-row-key":a,ref:O?null:t,className:V(o,"".concat(C,"-row"),I==null?void 0:I.className,D({},"".concat(C,"-row-extra"),l)),style:A(A({},N),I==null?void 0:I.style)}),h.map(function(j,B){return s.createElement(ZV,{key:B,component:w,rowInfo:$,column:j,colIndex:B,indent:f,index:r,renderIndex:m,record:d,inverse:l,getHeight:c})}));return O?s.createElement("div",{ref:t},k,R):k}),$S=wl(eK),tK=s.forwardRef(function(e,t){var n=e.data,r=e.onScroll,o=Vn(cr,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),a=o.flattenColumns,i=o.onColumnResize,l=o.getRowKey,c=o.expandedKeys,u=o.prefixCls,d=o.childrenColumnName,f=o.emptyNode,m=o.scrollX,g=Vn(h0),y=g.sticky,h=g.scrollY,C=g.listItemHeight,p=g.getComponent,v=g.onScroll,b=s.useRef(),S=XI(n,d,c,l),$=s.useMemo(function(){var z=0;return a.map(function(P){var N=P.width,k=P.key;return z+=N,[k,N,z]})},[a]),x=s.useMemo(function(){return $.map(function(z){return z[2]})},[$]);s.useEffect(function(){$.forEach(function(z){var P=Q(z,2),N=P[0],k=P[1];i(N,k)})},[$]),s.useImperativeHandle(t,function(){var z={scrollTo:function(N){var k;(k=b.current)===null||k===void 0||k.scrollTo(N)}};return Object.defineProperty(z,"scrollLeft",{get:function(){var N;return((N=b.current)===null||N===void 0?void 0:N.getScrollInfo().x)||0},set:function(N){var k;(k=b.current)===null||k===void 0||k.scrollTo({left:N})}}),z});var w=function(P,N){var k,j=(k=S[N])===null||k===void 0?void 0:k.record,B=P.onCell;if(B){var F,K=B(j,N);return(F=K==null?void 0:K.rowSpan)!==null&&F!==void 0?F:1}return 1},O=function(P){var N=P.start,k=P.end,j=P.getSize,B=P.offsetY;if(k<0)return null;for(var F=a.filter(function(W){return w(W,N)===0}),K=N,X=function(Y){if(F=F.filter(function(de){return w(de,Y)===0}),!F.length)return K=Y,1},U=N;U>=0&&!X(U);U-=1);for(var re=a.filter(function(W){return w(W,k)!==1}),Z=k,ne=function(Y){if(re=re.filter(function(de){return w(de,Y)!==1}),!re.length)return Z=Math.max(Y-1,k),1},le=k;le1})&&ee.push(Y)},te=K;te<=Z;te+=1)q(te);var J=ee.map(function(W){var Y=S[W],de=l(Y.record,W),oe=function(ie){var pe=W+ie-1,me=l(S[pe].record,pe),ge=j(de,me);return ge.bottom-ge.top},se=j(de);return s.createElement($S,{key:W,data:Y,rowKey:de,index:W,style:{top:-B+se.top},extra:!0,getHeight:oe})});return J},E=s.useMemo(function(){return{columnsOffset:x}},[x]),I="".concat(u,"-tbody"),T=p(["body","wrapper"]),_=p(["body","row"],"div"),R=p(["body","cell"],"div"),M;if(S.length){var L={};y&&(L.position="sticky",L.bottom=0,at(y)==="object"&&y.offsetScroll&&(L.bottom=y.offsetScroll)),M=s.createElement(vf,{fullHeight:!1,ref:b,prefixCls:"".concat(I,"-virtual"),styles:{horizontalScrollBar:L},className:I,height:h,itemHeight:C||24,data:S,itemKey:function(P){return l(P.record)},component:T,scrollWidth:m,onVirtualScroll:function(P){var N=P.x;r({scrollLeft:N})},onScroll:v,extraRender:O},function(z,P,N){var k=l(z.record,P);return s.createElement($S,ce({data:z,rowKey:k,index:P},N))})}else M=s.createElement(_,{className:V("".concat(u,"-placeholder"))},s.createElement(oi,{component:R,prefixCls:u},f));return s.createElement(o2.Provider,{value:E},M)}),nK=wl(tK),rK=function(t,n){var r=n.ref,o=n.onScroll;return s.createElement(nK,{ref:r,data:t,onScroll:o})};function oK(e,t){var n=e.columns,r=e.scroll,o=e.sticky,a=e.prefixCls,i=a===void 0?n2:a,l=e.className,c=e.listItemHeight,u=e.components,d=e.onScroll,f=r||{},m=f.x,g=f.y;typeof m!="number"&&(m=1),typeof g!="number"&&(g=500);var y=Ft(function(p,v){return br(u,p)||v}),h=Ft(d),C=s.useMemo(function(){return{sticky:o,scrollY:g,listItemHeight:c,getComponent:y,onScroll:h}},[o,g,c,y,h]);return s.createElement(h0.Provider,{value:C},s.createElement(El,ce({},e,{className:V(l,"".concat(i,"-virtual")),scroll:A(A({},r),{},{x:m}),components:A(A({},u),{},{body:rK}),columns:n,internalHooks:pc,tailor:!0,ref:t})))}var aK=s.forwardRef(oK);function a2(e){return KI(aK,e)}a2();function iK(e){return null}function lK(e){return null}var y0=s.createContext(null),sK=function(t){for(var n=t.prefixCls,r=t.level,o=t.isStart,a=t.isEnd,i="".concat(n,"-indent-unit"),l=[],c=0;c=0&&n.splice(r,1),n}function bo(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function b0(e){return e.split("-")}function mK(e,t){var n=[],r=hr(t,e);function o(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];a.forEach(function(i){var l=i.key,c=i.children;n.push(l),o(c)})}return o(r.children),n}function gK(e){if(e.parent){var t=b0(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function pK(e){var t=b0(e.pos);return Number(t[t.length-1])===0}function OS(e,t,n,r,o,a,i,l,c,u){var d,f=e.clientX,m=e.clientY,g=e.target.getBoundingClientRect(),y=g.top,h=g.height,C=(u==="rtl"?-1:1)*(((o==null?void 0:o.x)||0)-f),p=(C-12)/r,v=c.filter(function(z){var P;return(P=l[z])===null||P===void 0||(P=P.children)===null||P===void 0?void 0:P.length}),b=hr(l,n.props.eventKey);if(m-1.5?a({dragNode:R,dropNode:M,dropPosition:1})?I=1:L=!1:a({dragNode:R,dropNode:M,dropPosition:0})?I=0:a({dragNode:R,dropNode:M,dropPosition:1})?I=1:L=!1:a({dragNode:R,dropNode:M,dropPosition:1})?I=1:L=!1,{dropPosition:I,dropLevelOffset:T,dropTargetKey:b.key,dropTargetPos:b.pos,dragOverNodeKey:E,dropContainerKey:I===0?null:((d=b.parent)===null||d===void 0?void 0:d.key)||null,dropAllowed:L}}function IS(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function Gm(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(at(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return Zt(!1,"`checkedKeys` is not an array or an object"),null;return t}function Gp(e,t){var n=new Set;function r(o){if(!n.has(o)){var a=hr(t,o);if(a){n.add(o);var i=a.parent,l=a.node;l.disabled||i&&r(i.key)}}}return(e||[]).forEach(function(o){r(o)}),ue(n)}function vK(e){const[t,n]=s.useState(null);return[s.useCallback((a,i,l)=>{const c=t??a,u=Math.min(c||0,a),d=Math.max(c||0,a),f=i.slice(u,d+1).map(y=>e(y)),m=f.some(y=>!l.has(y)),g=[];return f.forEach(y=>{m?(l.has(y)||g.push(y),l.add(y)):(l.delete(y),g.push(y))}),n(m?d:null),g},[t]),a=>{n(a)}]}const Go={},Up="SELECT_ALL",qp="SELECT_INVERT",Xp="SELECT_NONE",PS=[],i2=(e,t)=>{let n=[];return(t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&(n=[].concat(ue(n),ue(i2(e,r[e]))))}),n},hK=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:o,getCheckboxProps:a,onChange:i,onSelect:l,onSelectAll:c,onSelectInvert:u,onSelectNone:d,onSelectMultiple:f,columnWidth:m,type:g,selections:y,fixed:h,renderCell:C,hideSelectAll:p,checkStrictly:v=!0}=t||{},{prefixCls:b,data:S,pageData:$,getRecordByKey:x,getRowKey:w,expandType:O,childrenColumnName:E,locale:I,getPopupContainer:T}=e,_=Fo(),[R,M]=vK(q=>q),[L,z]=Jt(r||o||PS,{value:r}),P=s.useRef(new Map),N=s.useCallback(q=>{if(n){const te=new Map;q.forEach(J=>{let W=x(J);!W&&P.current.has(J)&&(W=P.current.get(J)),te.set(J,W)}),P.current=te}},[x,n]);s.useEffect(()=>{N(L)},[L]);const{keyEntities:k}=s.useMemo(()=>{if(v)return{keyEntities:null};let q=S;if(n){const te=new Set(S.map((W,Y)=>w(W,Y))),J=Array.from(P.current).reduce((W,Y)=>{let[de,oe]=Y;return te.has(de)?W:W.concat(oe)},[]);q=[].concat(ue(q),ue(J))}return s0(q,{externalGetKey:w,childrenPropName:E})},[S,w,v,E,n]),j=s.useMemo(()=>i2(E,$),[E,$]),B=s.useMemo(()=>{const q=new Map;return j.forEach((te,J)=>{const W=w(te,J),Y=(a?a(te):null)||{};q.set(W,Y)}),q},[j,w,a]),F=s.useCallback(q=>{var te;return!!(!((te=B.get(w(q)))===null||te===void 0)&&te.disabled)},[B,w]),[K,X]=s.useMemo(()=>{if(v)return[L||[],[]];const{checkedKeys:q,halfCheckedKeys:te}=Wi(L,!0,k,F);return[q||[],te]},[L,v,k,F]),U=s.useMemo(()=>{const q=g==="radio"?K.slice(0,1):K;return new Set(q)},[K,g]),re=s.useMemo(()=>g==="radio"?new Set:new Set(X),[X,g]);s.useEffect(()=>{t||z(PS)},[!!t]);const Z=s.useCallback((q,te)=>{let J,W;N(q),n?(J=q,W=q.map(Y=>P.current.get(Y))):(J=[],W=[],q.forEach(Y=>{const de=x(Y);de!==void 0&&(J.push(Y),W.push(de))})),z(J),i==null||i(J,W,{type:te})},[z,x,i,n]),ne=s.useCallback((q,te,J,W)=>{if(l){const Y=J.map(de=>x(de));l(x(q),te,Y,W)}Z(J,"single")},[l,x,Z]),le=s.useMemo(()=>!y||p?null:(y===!0?[Up,qp,Xp]:y).map(te=>te===Up?{key:"all",text:I.selectionAll,onSelect(){Z(S.map((J,W)=>w(J,W)).filter(J=>{const W=B.get(J);return!(W!=null&&W.disabled)||U.has(J)}),"all")}}:te===qp?{key:"invert",text:I.selectInvert,onSelect(){const J=new Set(U);$.forEach((Y,de)=>{const oe=w(Y,de),se=B.get(oe);se!=null&&se.disabled||(J.has(oe)?J.delete(oe):J.add(oe))});const W=Array.from(J);u&&(_.deprecated(!1,"onSelectInvert","onChange"),u(W)),Z(W,"invert")}}:te===Xp?{key:"none",text:I.selectNone,onSelect(){d==null||d(),Z(Array.from(U).filter(J=>{const W=B.get(J);return W==null?void 0:W.disabled}),"none")}}:te).map(te=>Object.assign(Object.assign({},te),{onSelect:function(){for(var J,W,Y=arguments.length,de=new Array(Y),oe=0;oe{var te;if(!t)return q.filter(Ce=>Ce!==Go);let J=ue(q);const W=new Set(U),Y=j.map(w).filter(Ce=>!B.get(Ce).disabled),de=Y.every(Ce=>W.has(Ce)),oe=Y.some(Ce=>W.has(Ce)),se=()=>{const Ce=[];de?Y.forEach(ke=>{W.delete(ke),Ce.push(ke)}):Y.forEach(ke=>{W.has(ke)||(W.add(ke),Ce.push(ke))});const Oe=Array.from(W);c==null||c(!de,Oe.map(ke=>x(ke)),Ce.map(ke=>x(ke))),Z(Oe,"all"),M(null)};let ae,ie;if(g!=="radio"){let Ce;if(le){const Ve={getPopupContainer:T,items:le.map((it,Je)=>{const{key:Ae,text:lt,onSelect:ut}=it;return{key:Ae??Je,onClick:()=>{ut==null||ut(Y)},label:lt}})};Ce=s.createElement("div",{className:`${b}-selection-extra`},s.createElement(vI,{menu:Ve,getPopupContainer:T},s.createElement("span",null,s.createElement(aO,null))))}const Oe=j.map((Ve,it)=>{const Je=w(Ve,it),Ae=B.get(Je)||{};return Object.assign({checked:W.has(Je)},Ae)}).filter(Ve=>{let{disabled:it}=Ve;return it}),ke=!!Oe.length&&Oe.length===j.length,Ze=ke&&Oe.every(Ve=>{let{checked:it}=Ve;return it}),He=ke&&Oe.some(Ve=>{let{checked:it}=Ve;return it});ie=s.createElement(bd,{checked:ke?Ze:!!j.length&&de,indeterminate:ke?!Ze&&He:!de&&oe,onChange:se,disabled:j.length===0||ke,"aria-label":Ce?"Custom selection":"Select all",skipGroup:!0}),ae=!p&&s.createElement("div",{className:`${b}-selection`},ie,Ce)}let pe;g==="radio"?pe=(Ce,Oe,ke)=>{const Ze=w(Oe,ke),He=W.has(Ze);return{node:s.createElement(VO,Object.assign({},B.get(Ze),{checked:He,onClick:Ve=>Ve.stopPropagation(),onChange:Ve=>{W.has(Ze)||ne(Ze,!0,[Ze],Ve.nativeEvent)}})),checked:He}}:pe=(Ce,Oe,ke)=>{var Ze;const He=w(Oe,ke),Ve=W.has(He),it=re.has(He),Je=B.get(He);let Ae;return O==="nest"?Ae=it:Ae=(Ze=Je==null?void 0:Je.indeterminate)!==null&&Ze!==void 0?Ze:it,{node:s.createElement(bd,Object.assign({},Je,{indeterminate:Ae,checked:Ve,skipGroup:!0,onClick:lt=>lt.stopPropagation(),onChange:lt=>{let{nativeEvent:ut}=lt;const{shiftKey:St}=ut,st=Y.findIndex(nt=>nt===He),vt=K.some(nt=>Y.includes(nt));if(St&&v&&vt){const nt=R(st,Y,W),Me=Array.from(W);f==null||f(!Ve,Me.map(Xe=>x(Xe)),nt.map(Xe=>x(Xe))),Z(Me,"multiple")}else{const nt=K;if(v){const Me=Ve?io(nt,He):bo(nt,He);ne(He,!Ve,Me,ut)}else{const Me=Wi([].concat(ue(nt),[He]),!0,k,F),{checkedKeys:Xe,halfCheckedKeys:De}=Me;let xe=Xe;if(Ve){const ze=new Set(Xe);ze.delete(He),xe=Wi(Array.from(ze),{checked:!1,halfCheckedKeys:De},k,F).checkedKeys}ne(He,!Ve,xe,ut)}}M(Ve?null:st)}})),checked:Ve}};const me=(Ce,Oe,ke)=>{const{node:Ze,checked:He}=pe(Ce,Oe,ke);return C?C(He,Oe,ke,Ze):Ze};if(!J.includes(Go))if(J.findIndex(Ce=>{var Oe;return((Oe=Ce[us])===null||Oe===void 0?void 0:Oe.columnType)==="EXPAND_COLUMN"})===0){const[Ce,...Oe]=J;J=[Ce,Go].concat(ue(Oe))}else J=[Go].concat(ue(J));const ge=J.indexOf(Go);J=J.filter((Ce,Oe)=>Ce!==Go||Oe===ge);const ve=J[ge-1],$e=J[ge+1];let we=h;we===void 0&&(($e==null?void 0:$e.fixed)!==void 0?we=$e.fixed:(ve==null?void 0:ve.fixed)!==void 0&&(we=ve.fixed)),we&&ve&&((te=ve[us])===null||te===void 0?void 0:te.columnType)==="EXPAND_COLUMN"&&ve.fixed===void 0&&(ve.fixed=we);const We=V(`${b}-selection-col`,{[`${b}-selection-col-with-dropdown`]:y&&g==="checkbox"}),_e=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(ie):t.columnTitle:ae,Se={fixed:we,width:m,className:`${b}-selection-column`,title:_e(),render:me,onCell:t.onCell,[us]:{className:We}};return J.map(Ce=>Ce===Go?Se:Ce)},[w,j,t,K,U,re,m,le,O,B,f,ne,F]),U]};function yK(e,t){return e._antProxy=e._antProxy||{},Object.keys(t).forEach(n=>{if(!(n in e._antProxy)){const r=e[n];e._antProxy[n]=r,e[n]=t[n]}}),e}function bK(e,t){return s.useImperativeHandle(e,()=>{const n=t(),{nativeElement:r}=n;return typeof Proxy<"u"?new Proxy(r,{get(o,a){return n[a]?n[a]:Reflect.get(o,a)}}):yK(r,n)})}function CK(e){return function(n){let{prefixCls:r,onExpand:o,record:a,expanded:i,expandable:l}=n;const c=`${r}-row-expand-icon`;return s.createElement("button",{type:"button",onClick:u=>{o(a,u),u.stopPropagation()},className:V(c,{[`${c}-spaced`]:!l,[`${c}-expanded`]:l&&i,[`${c}-collapsed`]:l&&!i}),"aria-label":i?e.collapse:e.expand,"aria-expanded":i})}}function SK(e){return(n,r)=>{const o=n.querySelector(`.${e}-container`);let a=r;if(o){const i=getComputedStyle(o),l=parseInt(i.borderLeftWidth,10),c=parseInt(i.borderRightWidth,10);a=r-l-c}return a}}function qa(e,t){return"key"in e&&e.key!==void 0&&e.key!==null?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t}function vc(e,t){return t?`${t}-${e}`:`${e}`}function zf(e,t){return typeof e=="function"?e(t):e}function xK(e,t){const n=zf(e,t);return Object.prototype.toString.call(n)==="[object Object]"?"":n}var $K={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"};const wK=$K;var EK=function(t,n){return s.createElement(Pt,ce({},t,{ref:n,icon:wK}))},OK=s.forwardRef(EK);const IK=OK;function PK(e){const t=s.useRef(e),n=sO();return[()=>t.current,r=>{t.current=r,n()}]}function RK(e){var t=e.dropPosition,n=e.dropLevelOffset,r=e.indent,o={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:o.top=0,o.left=-n*r;break;case 1:o.bottom=0,o.left=-n*r;break;case 0:o.bottom=0,o.left=r;break}return s.createElement("div",{style:o})}function l2(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function NK(e,t){var n=s.useState(!1),r=Q(n,2),o=r[0],a=r[1];Mt(function(){if(o)return e(),function(){t()}},[o]),Mt(function(){return a(!0),function(){a(!1)}},[])}var TK=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],s2=function(t,n){var r=t.className,o=t.style,a=t.motion,i=t.motionNodes,l=t.motionType,c=t.onMotionStart,u=t.onMotionEnd,d=t.active,f=t.treeNodeRequiredProps,m=tt(t,TK),g=s.useState(!0),y=Q(g,2),h=y[0],C=y[1],p=s.useContext(y0),v=p.prefixCls,b=i&&l!=="hide";Mt(function(){i&&b!==h&&C(b)},[i]);var S=function(){i&&c()},$=s.useRef(!1),x=function(){i&&!$.current&&($.current=!0,u())};NK(S,x);var w=function(E){b===E&&x()};return i?s.createElement(ro,ce({ref:n,visible:h},a,{motionAppear:l==="show",onVisibleChanged:w}),function(O,E){var I=O.className,T=O.style;return s.createElement("div",{ref:E,className:V("".concat(v,"-treenode-motion"),I),style:T},i.map(function(_){var R=Object.assign({},(l2(_.data),_.data)),M=_.title,L=_.key,z=_.isStart,P=_.isEnd;delete R.children;var N=ss(L,f);return s.createElement(ll,ce({},R,N,{title:M,active:d,data:_.data,key:L,isStart:z,isEnd:P}))}))}):s.createElement(ll,ce({domRef:n,className:r,style:o},m,{active:d}))};s2.displayName="MotionTreeNode";var MK=s.forwardRef(s2);function _K(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function o(a,i){var l=new Map;a.forEach(function(u){l.set(u,!0)});var c=i.filter(function(u){return!l.has(u)});return c.length===1?c[0]:null}return n ").concat(t);return t}var u2=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var o=e.expandedKeys,a=e.selectedKeys,i=e.checkedKeys,l=e.loadedKeys,c=e.loadingKeys,u=e.halfCheckedKeys,d=e.keyEntities,f=e.disabled,m=e.dragging,g=e.dragOverNodeKey,y=e.dropPosition,h=e.motion,C=e.height,p=e.itemHeight,v=e.virtual,b=e.focusable,S=e.activeItem,$=e.focused,x=e.tabIndex,w=e.onKeyDown,O=e.onFocus,E=e.onBlur,I=e.onActiveChange,T=e.onListChangeStart,_=e.onListChangeEnd,R=tt(e,zK),M=s.useRef(null),L=s.useRef(null);s.useImperativeHandle(t,function(){return{scrollTo:function(pe){M.current.scrollTo(pe)},getIndentWidth:function(){return L.current.offsetWidth}}});var z=s.useState(o),P=Q(z,2),N=P[0],k=P[1],j=s.useState(r),B=Q(j,2),F=B[0],K=B[1],X=s.useState(r),U=Q(X,2),re=U[0],Z=U[1],ne=s.useState([]),le=Q(ne,2),ee=le[0],q=le[1],te=s.useState(null),J=Q(te,2),W=J[0],Y=J[1],de=s.useRef(r);de.current=r;function oe(){var ie=de.current;K(ie),Z(ie),q([]),Y(null),_()}Mt(function(){k(o);var ie=_K(N,o);if(ie.key!==null)if(ie.add){var pe=F.findIndex(function(We){var _e=We.key;return _e===ie.key}),me=MS(RS(F,r,ie.key),v,C,p),ge=F.slice();ge.splice(pe+1,0,TS),Z(ge),q(me),Y("show")}else{var ve=r.findIndex(function(We){var _e=We.key;return _e===ie.key}),$e=MS(RS(r,F,ie.key),v,C,p),we=r.slice();we.splice(ve+1,0,TS),Z(we),q($e),Y("hide")}else F!==r&&(K(r),Z(r))},[o,r]),s.useEffect(function(){m||oe()},[m]);var se=h?re:r,ae={expandedKeys:o,selectedKeys:a,loadedKeys:l,loadingKeys:c,checkedKeys:i,halfCheckedKeys:u,dragOverNodeKey:g,dropPosition:y,keyEntities:d};return s.createElement(s.Fragment,null,$&&S&&s.createElement("span",{style:NS,"aria-live":"assertive"},LK(S)),s.createElement("div",null,s.createElement("input",{style:NS,disabled:b===!1||f,tabIndex:b!==!1?x:null,onKeyDown:w,onFocus:O,onBlur:E,value:"",onChange:jK,"aria-label":"for screen reader"})),s.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},s.createElement("div",{className:"".concat(n,"-indent")},s.createElement("div",{ref:L,className:"".concat(n,"-indent-unit")}))),s.createElement(vf,ce({},R,{data:se,itemKey:_S,height:C,fullHeight:!1,virtual:v,itemHeight:p,prefixCls:"".concat(n,"-list"),ref:M,onVisibleChange:function(pe,me){var ge=new Set(pe),ve=me.filter(function($e){return!ge.has($e)});ve.some(function($e){return _S($e)===Xa})&&oe()}}),function(ie){var pe=ie.pos,me=Object.assign({},(l2(ie.data),ie.data)),ge=ie.title,ve=ie.key,$e=ie.isStart,we=ie.isEnd,We=gc(ve,pe);delete me.key,delete me.children;var _e=ss(We,ae);return s.createElement(MK,ce({},me,_e,{title:ge,active:!!S&&ve===S.key,pos:pe,data:ie.data,isStart:$e,isEnd:we,motion:h,motionNodes:ve===Xa?ee:null,motionType:W,onMotionStart:T,onMotionEnd:oe,treeNodeRequiredProps:ae,onMouseMove:function(){I(null)}}))}))});u2.displayName="NodeList";var kK=10,C0=function(e){Bo(n,e);var t=Ja(n);function n(){var r;jn(this,n);for(var o=arguments.length,a=new Array(o),i=0;i2&&arguments[2]!==void 0?arguments[2]:!1,f=r.state,m=f.dragChildrenKeys,g=f.dropPosition,y=f.dropTargetKey,h=f.dropTargetPos,C=f.dropAllowed;if(C){var p=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),y!==null){var v=A(A({},ss(y,r.getTreeNodeRequiredProps())),{},{active:((u=r.getActiveItem())===null||u===void 0?void 0:u.key)===y,data:hr(r.state.keyEntities,y).node}),b=m.indexOf(y)!==-1;Zt(!b,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var S=b0(h),$={event:l,node:hn(v),dragNode:r.dragNode?hn(r.dragNode.props):null,dragNodesKeys:[r.dragNode.props.eventKey].concat(m),dropToGap:g!==0,dropPosition:g+Number(S[S.length-1])};d||p==null||p($),r.dragNode=null}}}),D(he(r),"cleanDragState",function(){var l=r.state.draggingNodeKey;l!==null&&r.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),r.dragStartMousePosition=null,r.currentMouseOverDroppableNodeKey=null}),D(he(r),"triggerExpandActionExpand",function(l,c){var u=r.state,d=u.expandedKeys,f=u.flattenNodes,m=c.expanded,g=c.key,y=c.isLeaf;if(!(y||l.shiftKey||l.metaKey||l.ctrlKey)){var h=f.filter(function(p){return p.key===g})[0],C=hn(A(A({},ss(g,r.getTreeNodeRequiredProps())),{},{data:h.data}));r.setExpandedKeys(m?io(d,g):bo(d,g)),r.onNodeExpand(l,C)}}),D(he(r),"onNodeClick",function(l,c){var u=r.props,d=u.onClick,f=u.expandAction;f==="click"&&r.triggerExpandActionExpand(l,c),d==null||d(l,c)}),D(he(r),"onNodeDoubleClick",function(l,c){var u=r.props,d=u.onDoubleClick,f=u.expandAction;f==="doubleClick"&&r.triggerExpandActionExpand(l,c),d==null||d(l,c)}),D(he(r),"onNodeSelect",function(l,c){var u=r.state.selectedKeys,d=r.state,f=d.keyEntities,m=d.fieldNames,g=r.props,y=g.onSelect,h=g.multiple,C=c.selected,p=c[m.key],v=!C;v?h?u=bo(u,p):u=[p]:u=io(u,p);var b=u.map(function(S){var $=hr(f,S);return $?$.node:null}).filter(function(S){return S});r.setUncontrolledState({selectedKeys:u}),y==null||y(u,{event:"select",selected:v,node:c,selectedNodes:b,nativeEvent:l.nativeEvent})}),D(he(r),"onNodeCheck",function(l,c,u){var d=r.state,f=d.keyEntities,m=d.checkedKeys,g=d.halfCheckedKeys,y=r.props,h=y.checkStrictly,C=y.onCheck,p=c.key,v,b={event:"check",node:c,checked:u,nativeEvent:l.nativeEvent};if(h){var S=u?bo(m,p):io(m,p),$=io(g,p);v={checked:S,halfChecked:$},b.checkedNodes=S.map(function(T){return hr(f,T)}).filter(function(T){return T}).map(function(T){return T.node}),r.setUncontrolledState({checkedKeys:S})}else{var x=Wi([].concat(ue(m),[p]),!0,f),w=x.checkedKeys,O=x.halfCheckedKeys;if(!u){var E=new Set(w);E.delete(p);var I=Wi(Array.from(E),{checked:!1,halfCheckedKeys:O},f);w=I.checkedKeys,O=I.halfCheckedKeys}v=w,b.checkedNodes=[],b.checkedNodesPositions=[],b.halfCheckedKeys=O,w.forEach(function(T){var _=hr(f,T);if(_){var R=_.node,M=_.pos;b.checkedNodes.push(R),b.checkedNodesPositions.push({node:R,pos:M})}}),r.setUncontrolledState({checkedKeys:w},!1,{halfCheckedKeys:O})}C==null||C(v,b)}),D(he(r),"onNodeLoad",function(l){var c=l.key,u=new Promise(function(d,f){r.setState(function(m){var g=m.loadedKeys,y=g===void 0?[]:g,h=m.loadingKeys,C=h===void 0?[]:h,p=r.props,v=p.loadData,b=p.onLoad;if(!v||y.indexOf(c)!==-1||C.indexOf(c)!==-1)return null;var S=v(l);return S.then(function(){var $=r.state.loadedKeys,x=bo($,c);b==null||b(x,{event:"load",node:l}),r.setUncontrolledState({loadedKeys:x}),r.setState(function(w){return{loadingKeys:io(w.loadingKeys,c)}}),d()}).catch(function($){if(r.setState(function(w){return{loadingKeys:io(w.loadingKeys,c)}}),r.loadingRetryTimes[c]=(r.loadingRetryTimes[c]||0)+1,r.loadingRetryTimes[c]>=kK){var x=r.state.loadedKeys;Zt(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:bo(x,c)}),d()}f($)}),{loadingKeys:bo(C,c)}})});return u.catch(function(){}),u}),D(he(r),"onNodeMouseEnter",function(l,c){var u=r.props.onMouseEnter;u==null||u({event:l,node:c})}),D(he(r),"onNodeMouseLeave",function(l,c){var u=r.props.onMouseLeave;u==null||u({event:l,node:c})}),D(he(r),"onNodeContextMenu",function(l,c){var u=r.props.onRightClick;u&&(l.preventDefault(),u({event:l,node:c}))}),D(he(r),"onFocus",function(){var l=r.props.onFocus;r.setState({focused:!0});for(var c=arguments.length,u=new Array(c),d=0;d1&&arguments[1]!==void 0?arguments[1]:!1,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var d=!1,f=!0,m={};Object.keys(l).forEach(function(g){if(g in r.props){f=!1;return}d=!0,m[g]=l[g]}),d&&(!c||f)&&r.setState(A(A({},m),u))}}),D(he(r),"scrollTo",function(l){r.listRef.current.scrollTo(l)}),r}return Ln(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var o=this.props,a=o.activeKey,i=o.itemScrollOffset,l=i===void 0?0:i;a!==void 0&&a!==this.state.activeKey&&(this.setState({activeKey:a}),a!==null&&this.scrollTo({key:a,offset:l}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var o=this.state,a=o.focused,i=o.flattenNodes,l=o.keyEntities,c=o.draggingNodeKey,u=o.activeKey,d=o.dropLevelOffset,f=o.dropContainerKey,m=o.dropTargetKey,g=o.dropPosition,y=o.dragOverNodeKey,h=o.indent,C=this.props,p=C.prefixCls,v=C.className,b=C.style,S=C.showLine,$=C.focusable,x=C.tabIndex,w=x===void 0?0:x,O=C.selectable,E=C.showIcon,I=C.icon,T=C.switcherIcon,_=C.draggable,R=C.checkable,M=C.checkStrictly,L=C.disabled,z=C.motion,P=C.loadData,N=C.filterTreeNode,k=C.height,j=C.itemHeight,B=C.virtual,F=C.titleRender,K=C.dropIndicatorRender,X=C.onContextMenu,U=C.onScroll,re=C.direction,Z=C.rootClassName,ne=C.rootStyle,le=qn(this.props,{aria:!0,data:!0}),ee;return _&&(at(_)==="object"?ee=_:typeof _=="function"?ee={nodeDraggable:_}:ee={}),s.createElement(y0.Provider,{value:{prefixCls:p,selectable:O,showIcon:E,icon:I,switcherIcon:T,draggable:ee,draggingNodeKey:c,checkable:R,checkStrictly:M,disabled:L,keyEntities:l,dropLevelOffset:d,dropContainerKey:f,dropTargetKey:m,dropPosition:g,dragOverNodeKey:y,indent:h,direction:re,dropIndicatorRender:K,loadData:P,filterTreeNode:N,titleRender:F,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},s.createElement("div",{role:"tree",className:V(p,v,Z,D(D(D({},"".concat(p,"-show-line"),S),"".concat(p,"-focused"),a),"".concat(p,"-active-focused"),u!==null)),style:ne},s.createElement(u2,ce({ref:this.listRef,prefixCls:p,style:b,data:i,disabled:L,selectable:O,checkable:!!R,motion:z,dragging:c!==null,height:k,itemHeight:j,virtual:B,focusable:$,focused:a,tabIndex:w,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:X,onScroll:U},this.getTreeNodeRequiredProps(),le))))}}],[{key:"getDerivedStateFromProps",value:function(o,a){var i=a.prevProps,l={prevProps:o};function c(x){return!i&&x in o||i&&i[x]!==o[x]}var u,d=a.fieldNames;if(c("fieldNames")&&(d=il(o.fieldNames),l.fieldNames=d),c("treeData")?u=o.treeData:c("children")&&(Zt(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),u=eI(o.children)),u){l.treeData=u;var f=s0(u,{fieldNames:d});l.keyEntities=A(D({},Xa,c2),f.keyEntities)}var m=l.keyEntities||a.keyEntities;if(c("expandedKeys")||i&&c("autoExpandParent"))l.expandedKeys=o.autoExpandParent||!i&&o.defaultExpandParent?Gp(o.expandedKeys,m):o.expandedKeys;else if(!i&&o.defaultExpandAll){var g=A({},m);delete g[Xa],l.expandedKeys=Object.keys(g).map(function(x){return g[x].key})}else!i&&o.defaultExpandedKeys&&(l.expandedKeys=o.autoExpandParent||o.defaultExpandParent?Gp(o.defaultExpandedKeys,m):o.defaultExpandedKeys);if(l.expandedKeys||delete l.expandedKeys,u||l.expandedKeys){var y=Fm(u||a.treeData,l.expandedKeys||a.expandedKeys,d);l.flattenNodes=y}if(o.selectable&&(c("selectedKeys")?l.selectedKeys=IS(o.selectedKeys,o):!i&&o.defaultSelectedKeys&&(l.selectedKeys=IS(o.defaultSelectedKeys,o))),o.checkable){var h;if(c("checkedKeys")?h=Gm(o.checkedKeys)||{}:!i&&o.defaultCheckedKeys?h=Gm(o.defaultCheckedKeys)||{}:u&&(h=Gm(o.checkedKeys)||{checkedKeys:a.checkedKeys,halfCheckedKeys:a.halfCheckedKeys}),h){var C=h,p=C.checkedKeys,v=p===void 0?[]:p,b=C.halfCheckedKeys,S=b===void 0?[]:b;if(!o.checkStrictly){var $=Wi(v,!0,m);v=$.checkedKeys,S=$.halfCheckedKeys}l.checkedKeys=v,l.halfCheckedKeys=S}}return c("loadedKeys")&&(l.loadedKeys=o.loadedKeys),l}}]),n}(s.Component);D(C0,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:RK,allowDrop:function(){return!0},expandAction:!1});D(C0,"TreeNode",ll);var DK={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"};const BK=DK;var FK=function(t,n){return s.createElement(Pt,ce({},t,{ref:n,icon:BK}))},AK=s.forwardRef(FK);const d2=AK;var HK={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"};const VK=HK;var KK=function(t,n){return s.createElement(Pt,ce({},t,{ref:n,icon:VK}))},WK=s.forwardRef(KK);const GK=WK;var UK={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"};const qK=UK;var XK=function(t,n){return s.createElement(Pt,ce({},t,{ref:n,icon:qK}))},YK=s.forwardRef(XK);const QK=YK;var ZK={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"};const JK=ZK;var eW=function(t,n){return s.createElement(Pt,ce({},t,{ref:n,icon:JK}))},tW=s.forwardRef(eW);const nW=tW,rW=new yt("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),oW=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),aW=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${H(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),iW=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:o,titleHeight:a,nodeSelectedBg:i,nodeHoverBg:l}=t,c=t.paddingXS;return{[n]:Object.assign(Object.assign({},zt(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${n}-rtl`]:{[`${n}-switcher`]:{"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},pa(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:o,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:rW,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${r}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${H(o)} 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:a,lineHeight:`${H(a)}`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${r}:hover &`]:{opacity:.45}},[`&${r}-disabled`]:{[`${n}-draggable-icon`]:{visibility:"hidden"}}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:a}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher`]:Object.assign(Object.assign({},oW(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:a,margin:0,lineHeight:`${H(a)}`,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,borderRadius:t.borderRadius,"&-noop":{cursor:"unset"},[`&:not(${n}-switcher-noop):hover`]:{backgroundColor:t.colorBgTextHover},"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(a).div(2).equal()).mul(.8).equal(),height:t.calc(a).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-checkbox`]:{top:"initial",marginInlineEnd:c,alignSelf:"flex-start",marginTop:t.marginXXS},[`${n}-node-content-wrapper, ${n}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:a,margin:0,padding:`0 ${H(t.calc(t.paddingXS).div(2).equal())}`,color:"inherit",lineHeight:`${H(a)}`,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:l},[`&${n}-node-selected`]:{backgroundColor:i},[`${n}-iconEle`]:{display:"inline-block",width:a,height:a,lineHeight:`${H(a)}`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}-node-content-wrapper`]:Object.assign({lineHeight:`${H(a)}`,userSelect:"none"},aW(e,t)),[`${r}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${t.colorPrimary}`}},"&-show-line":{[`${n}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last`]:{[`${n}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${H(t.calc(a).div(2).equal())} !important`}}}}})}},lW=e=>{const{treeCls:t,treeNodeCls:n,treeNodePadding:r,directoryNodeSelectedBg:o,directoryNodeSelectedColor:a}=e;return{[`${t}${t}-directory`]:{[n]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:r,insetInlineStart:0,transition:`background-color ${e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${e.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${t}-node-selected`]:{color:a,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:o},[`${t}-switcher`]:{color:a},[`${t}-node-content-wrapper`]:{color:a,background:"transparent"}}}}}},sW=(e,t)=>{const n=`.${e}`,r=`${n}-treenode`,o=t.calc(t.paddingXS).div(2).equal(),a=bt(t,{treeCls:n,treeNodeCls:r,treeNodePadding:o});return[iW(e,a),lW(a)]},cW=e=>{const{controlHeightSM:t}=e;return{titleHeight:t,nodeHoverBg:e.controlItemBgHover,nodeSelectedBg:e.controlItemBgActive}},uW=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},cW(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})},dW=_t("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:nI(`${n}-checkbox`,e)},sW(n,e),Rh(e)]},uW),zS=4;function fW(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:o,direction:a="ltr"}=e,i=a==="ltr"?"left":"right",l=a==="ltr"?"right":"left",c={[i]:-n*o+zS,[l]:0};switch(t){case-1:c.top=-3;break;case 1:c.bottom=-3;break;default:c.bottom=-3,c[i]=o+zS;break}return G.createElement("div",{style:c,className:`${r}-drop-indicator`})}var mW={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"};const gW=mW;var pW=function(t,n){return s.createElement(Pt,ce({},t,{ref:n,icon:gW}))},vW=s.forwardRef(pW);const hW=vW;var yW={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"};const bW=yW;var CW=function(t,n){return s.createElement(Pt,ce({},t,{ref:n,icon:bW}))},SW=s.forwardRef(CW);const xW=SW;var $W={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"};const wW=$W;var EW=function(t,n){return s.createElement(Pt,ce({},t,{ref:n,icon:wW}))},OW=s.forwardRef(EW);const IW=OW,PW=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:o}=e,{isLeaf:a,expanded:i,loading:l}=r;if(l)return s.createElement(pl,{className:`${t}-switcher-loading-icon`});let c;if(o&&typeof o=="object"&&(c=o.showLeafIcon),a){if(!o)return null;if(typeof c!="boolean"&&c){const f=typeof c=="function"?c(r):c,m=`${t}-switcher-line-custom-icon`;return s.isValidElement(f)?Xn(f,{className:V(f.props.className||"",m)}):f}return c?s.createElement(d2,{className:`${t}-switcher-line-icon`}):s.createElement("span",{className:`${t}-switcher-leaf-line`})}const u=`${t}-switcher-icon`,d=typeof n=="function"?n(r):n;return s.isValidElement(d)?Xn(d,{className:V(d.props.className||"",u)}):d!==void 0?d:o?i?s.createElement(xW,{className:`${t}-switcher-line-icon`}):s.createElement(IW,{className:`${t}-switcher-line-icon`}):s.createElement(hW,{className:u})},RW=PW,NW=G.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:o,virtual:a,tree:i}=G.useContext(je),{prefixCls:l,className:c,showIcon:u=!1,showLine:d,switcherIcon:f,blockNode:m=!1,children:g,checkable:y=!1,selectable:h=!0,draggable:C,motion:p,style:v}=e,b=r("tree",l),S=r(),$=p??Object.assign(Object.assign({},id(S)),{motionAppear:!1}),x=Object.assign(Object.assign({},e),{checkable:y,selectable:h,showIcon:u,motion:$,blockNode:m,showLine:!!d,dropIndicatorRender:fW}),[w,O,E]=dW(b),[,I]=mn(),T=I.paddingXS/2+(((n=I.Tree)===null||n===void 0?void 0:n.titleHeight)||I.controlHeightSM),_=G.useMemo(()=>{if(!C)return!1;let M={};switch(typeof C){case"function":M.nodeDraggable=C;break;case"object":M=Object.assign({},C);break}return M.icon!==!1&&(M.icon=M.icon||G.createElement(nW,null)),M},[C]),R=M=>G.createElement(RW,{prefixCls:b,switcherIcon:f,treeNodeProps:M,showLine:d});return w(G.createElement(C0,Object.assign({itemHeight:T,ref:t,virtual:a},x,{style:Object.assign(Object.assign({},i==null?void 0:i.style),v),prefixCls:b,className:V({[`${b}-icon-hide`]:!u,[`${b}-block-node`]:m,[`${b}-unselectable`]:!h,[`${b}-rtl`]:o==="rtl"},i==null?void 0:i.className,c,O,E),direction:o,checkable:y&&G.createElement("span",{className:`${b}-checkbox-inner`}),selectable:h,switcherIcon:R,draggable:_}),g))}),f2=NW,jS=0,Um=1,LS=2;function S0(e,t,n){const{key:r,children:o}=n;function a(i){const l=i[r],c=i[o];t(l,i)!==!1&&S0(c||[],t,n)}e.forEach(a)}function TW(e){let{treeData:t,expandedKeys:n,startKey:r,endKey:o,fieldNames:a}=e;const i=[];let l=jS;if(r&&r===o)return[r];if(!r||!o)return[];function c(u){return u===r||u===o}return S0(t,u=>{if(l===LS)return!1;if(c(u)){if(i.push(u),l===jS)l=Um;else if(l===Um)return l=LS,!1}else l===Um&&i.push(u);return n.includes(u)},il(a)),i}function qm(e,t,n){const r=ue(t),o=[];return S0(e,(a,i)=>{const l=r.indexOf(a);return l!==-1&&(o.push(i),r.splice(l,1)),!!r.length},il(n)),o}var kS=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:o}=e,a=kS(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const i=s.useRef(),l=s.useRef(),c=()=>{const{keyEntities:O}=s0(DS(a));let E;return n?E=Object.keys(O):r?E=Gp(a.expandedKeys||o||[],O):E=a.expandedKeys||o||[],E},[u,d]=s.useState(a.selectedKeys||a.defaultSelectedKeys||[]),[f,m]=s.useState(()=>c());s.useEffect(()=>{"selectedKeys"in a&&d(a.selectedKeys)},[a.selectedKeys]),s.useEffect(()=>{"expandedKeys"in a&&m(a.expandedKeys)},[a.expandedKeys]);const g=(O,E)=>{var I;return"expandedKeys"in a||m(O),(I=a.onExpand)===null||I===void 0?void 0:I.call(a,O,E)},y=(O,E)=>{var I;const{multiple:T,fieldNames:_}=a,{node:R,nativeEvent:M}=E,{key:L=""}=R,z=DS(a),P=Object.assign(Object.assign({},E),{selected:!0}),N=(M==null?void 0:M.ctrlKey)||(M==null?void 0:M.metaKey),k=M==null?void 0:M.shiftKey;let j;T&&N?(j=O,i.current=L,l.current=j,P.selectedNodes=qm(z,j,_)):T&&k?(j=Array.from(new Set([].concat(ue(l.current||[]),ue(TW({treeData:z,expandedKeys:f,startKey:L,endKey:i.current,fieldNames:_}))))),P.selectedNodes=qm(z,j,_)):(j=[L],i.current=L,l.current=j,P.selectedNodes=qm(z,j,_)),(I=a.onSelect)===null||I===void 0||I.call(a,j,P),"selectedKeys"in a||d(j)},{getPrefixCls:h,direction:C}=s.useContext(je),{prefixCls:p,className:v,showIcon:b=!0,expandAction:S="click"}=a,$=kS(a,["prefixCls","className","showIcon","expandAction"]),x=h("tree",p),w=V(`${x}-directory`,{[`${x}-directory-rtl`]:C==="rtl"},v);return s.createElement(f2,Object.assign({icon:MW,ref:t,blockNode:!0},$,{showIcon:b,expandAction:S,prefixCls:x,className:w,expandedKeys:f,selectedKeys:u,onSelect:y,onExpand:g}))},zW=s.forwardRef(_W),jW=zW,x0=f2;x0.DirectoryTree=jW;x0.TreeNode=ll;const LW=x0;function BS(e){let{value:t,onChange:n,filterSearch:r,tablePrefixCls:o,locale:a}=e;return r?s.createElement("div",{className:`${o}-filter-dropdown-search`},s.createElement(sH,{prefix:s.createElement(Vh,null),placeholder:a.filterSearchPlaceholder,onChange:n,value:t,htmlSize:1,className:`${o}-filter-dropdown-search-input`})):null}const kW=e=>{const{keyCode:t}=e;t===fe.ENTER&&e.stopPropagation()},DW=s.forwardRef((e,t)=>s.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:kW,ref:t},e.children)),BW=DW;function Gi(e){let t=[];return(e||[]).forEach(n=>{let{value:r,children:o}=n;t.push(r),o&&(t=[].concat(ue(t),ue(Gi(o))))}),t}function FW(e){return e.some(t=>{let{children:n}=t;return n})}function m2(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function g2(e){let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:o,searchValue:a,filterSearch:i}=e;return t.map((l,c)=>{const u=String(l.value);if(l.children)return{key:u||c,label:l.text,popupClassName:`${n}-dropdown-submenu`,children:g2({filters:l.children,prefixCls:n,filteredKeys:r,filterMultiple:o,searchValue:a,filterSearch:i})};const d=o?bd:VO,f={key:l.value!==void 0?u:c,label:s.createElement(s.Fragment,null,s.createElement(d,{checked:r.includes(u)}),s.createElement("span",null,l.text))};return a.trim()?typeof i=="function"?i(a,l)?f:null:m2(a,l.text)?f:null:f})}function Xm(e){return e||[]}function AW(e){var t,n;const{tablePrefixCls:r,prefixCls:o,column:a,dropdownPrefixCls:i,columnKey:l,filterOnClose:c,filterMultiple:u,filterMode:d="menu",filterSearch:f=!1,filterState:m,triggerFilter:g,locale:y,children:h,getPopupContainer:C,rootClassName:p}=e,{filterDropdownOpen:v,onFilterDropdownOpenChange:b,filterResetToDefaultFilteredValue:S,defaultFilteredValue:$,filterDropdownVisible:x,onFilterDropdownVisibleChange:w}=a,[O,E]=s.useState(!1),I=!!(m&&(!((t=m.filteredKeys)===null||t===void 0)&&t.length||m.forceFiltered)),T=oe=>{E(oe),b==null||b(oe),w==null||w(oe)},_=(n=v??x)!==null&&n!==void 0?n:O,R=m==null?void 0:m.filteredKeys,[M,L]=PK(Xm(R)),z=oe=>{let{selectedKeys:se}=oe;L(se)},P=(oe,se)=>{let{node:ae,checked:ie}=se;z(u?{selectedKeys:oe}:{selectedKeys:ie&&ae.key?[ae.key]:[]})};s.useEffect(()=>{O&&z({selectedKeys:Xm(R)})},[R]);const[N,k]=s.useState([]),j=oe=>{k(oe)},[B,F]=s.useState(""),K=oe=>{const{value:se}=oe.target;F(se)};s.useEffect(()=>{O||F("")},[O]);const X=oe=>{const se=oe&&oe.length?oe:null;if(se===null&&(!m||!m.filteredKeys)||mo(se,m==null?void 0:m.filteredKeys,!0))return null;g({column:a,key:l,filteredKeys:se})},U=()=>{T(!1),X(M())},re=function(){let{confirm:oe,closeDropdown:se}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};oe&&X([]),se&&T(!1),F(""),L(S?($||[]).map(ae=>String(ae)):[])},Z=function(){let{closeDropdown:oe}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};oe&&T(!1),X(M())},ne=(oe,se)=>{se.source==="trigger"&&(oe&&R!==void 0&&L(Xm(R)),T(oe),!oe&&!a.filterDropdown&&c&&U())},le=V({[`${i}-menu-without-submenu`]:!FW(a.filters||[])}),ee=oe=>{if(oe.target.checked){const se=Gi(a==null?void 0:a.filters).map(ae=>String(ae));L(se)}else L([])},q=oe=>{let{filters:se}=oe;return(se||[]).map((ae,ie)=>{const pe=String(ae.value),me={title:ae.text,key:ae.value!==void 0?pe:String(ie)};return ae.children&&(me.children=q({filters:ae.children})),me})},te=oe=>{var se;return Object.assign(Object.assign({},oe),{text:oe.title,value:oe.key,children:((se=oe.children)===null||se===void 0?void 0:se.map(ae=>te(ae)))||[]})};let J;if(typeof a.filterDropdown=="function")J=a.filterDropdown({prefixCls:`${i}-custom`,setSelectedKeys:oe=>z({selectedKeys:oe}),selectedKeys:M(),confirm:Z,clearFilters:re,filters:a.filters,visible:_,close:()=>{T(!1)}});else if(a.filterDropdown)J=a.filterDropdown;else{const oe=M()||[],se=()=>{const ie=s.createElement(Ra,{image:Ra.PRESENTED_IMAGE_SIMPLE,description:y.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}});if((a.filters||[]).length===0)return ie;if(d==="tree")return s.createElement(s.Fragment,null,s.createElement(BS,{filterSearch:f,value:B,onChange:K,tablePrefixCls:r,locale:y}),s.createElement("div",{className:`${r}-filter-dropdown-tree`},u?s.createElement(bd,{checked:oe.length===Gi(a.filters).length,indeterminate:oe.length>0&&oe.lengthtypeof f=="function"?f(B,te(ge)):m2(B,ge.title):void 0})));const pe=g2({filters:a.filters||[],filterSearch:f,prefixCls:o,filteredKeys:M(),filterMultiple:u,searchValue:B}),me=pe.every(ge=>ge===null);return s.createElement(s.Fragment,null,s.createElement(BS,{filterSearch:f,value:B,onChange:K,tablePrefixCls:r,locale:y}),me?ie:s.createElement(kO,{selectable:!0,multiple:u,prefixCls:`${i}-menu`,className:le,onSelect:z,onDeselect:z,selectedKeys:oe,getPopupContainer:C,openKeys:N,onOpenChange:j,items:pe}))},ae=()=>S?mo(($||[]).map(ie=>String(ie)),oe,!0):oe.length===0;J=s.createElement(s.Fragment,null,se(),s.createElement("div",{className:`${o}-dropdown-btns`},s.createElement(Lo,{type:"link",size:"small",disabled:ae(),onClick:()=>re()},y.filterReset),s.createElement(Lo,{type:"primary",size:"small",onClick:U},y.filterConfirm)))}a.filterDropdown&&(J=s.createElement(LO,{selectable:void 0},J));const W=()=>s.createElement(BW,{className:`${o}-dropdown`},J);let Y;typeof a.filterIcon=="function"?Y=a.filterIcon(I):a.filterIcon?Y=a.filterIcon:Y=s.createElement(IK,null);const{direction:de}=s.useContext(je);return s.createElement("div",{className:`${o}-column`},s.createElement("span",{className:`${r}-column-title`},h),s.createElement(vI,{dropdownRender:W,trigger:["click"],open:_,onOpenChange:ne,getPopupContainer:C,placement:de==="rtl"?"bottomLeft":"bottomRight",rootClassName:p},s.createElement("span",{role:"button",tabIndex:-1,className:V(`${o}-trigger`,{active:I}),onClick:oe=>{oe.stopPropagation()}},Y)))}function Qp(e,t,n){let r=[];return(e||[]).forEach((o,a)=>{var i;const l=vc(a,n);if(o.filters||"filterDropdown"in o||"onFilter"in o)if("filteredValue"in o){let c=o.filteredValue;"filterDropdown"in o||(c=(i=c==null?void 0:c.map(String))!==null&&i!==void 0?i:c),r.push({column:o,key:qa(o,l),filteredKeys:c,forceFiltered:o.filtered})}else r.push({column:o,key:qa(o,l),filteredKeys:t&&o.defaultFilteredValue?o.defaultFilteredValue:void 0,forceFiltered:o.filtered});"children"in o&&(r=[].concat(ue(r),ue(Qp(o.children,t,l))))}),r}function p2(e,t,n,r,o,a,i,l,c){return n.map((u,d)=>{const f=vc(d,l),{filterOnClose:m=!0,filterMultiple:g=!0,filterMode:y,filterSearch:h}=u;let C=u;if(C.filters||C.filterDropdown){const p=qa(C,f),v=r.find(b=>{let{key:S}=b;return p===S});C=Object.assign(Object.assign({},C),{title:b=>s.createElement(AW,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:C,columnKey:p,filterState:v,filterOnClose:m,filterMultiple:g,filterMode:y,filterSearch:h,triggerFilter:a,locale:o,getPopupContainer:i,rootClassName:c},zf(u.title,b))})}return"children"in C&&(C=Object.assign(Object.assign({},C),{children:p2(e,t,C.children,r,o,a,i,f,c)})),C})}function FS(e){const t={};return e.forEach(n=>{let{key:r,filteredKeys:o,column:a}=n;const i=r,{filters:l,filterDropdown:c}=a;if(c)t[i]=o||null;else if(Array.isArray(o)){const u=Gi(l);t[i]=u.filter(d=>o.includes(String(d)))}else t[i]=null}),t}function Zp(e,t,n){return t.reduce((r,o)=>{const{column:{onFilter:a,filters:i},filteredKeys:l}=o;return a&&l&&l.length?r.map(c=>Object.assign({},c)).filter(c=>l.some(u=>{const d=Gi(i),f=d.findIndex(g=>String(g)===String(u)),m=f!==-1?d[f]:u;return c[n]&&(c[n]=Zp(c[n],t,n)),a(m,c)})):r},e)}const v2=e=>e.flatMap(t=>"children"in t?[t].concat(ue(v2(t.children||[]))):[t]);function HW(e){let{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:o,getPopupContainer:a,locale:i,rootClassName:l}=e;Fo();const c=s.useMemo(()=>v2(r||[]),[r]),[u,d]=s.useState(()=>Qp(c,!0)),f=s.useMemo(()=>{const h=Qp(c,!1);if(h.length===0)return h;let C=!0;if(h.forEach(p=>{let{filteredKeys:v}=p;v!==void 0&&(C=!1)}),C){const p=(c||[]).map((v,b)=>qa(v,vc(b)));return u.filter(v=>{let{key:b}=v;return p.includes(b)}).map(v=>{const b=c[p.findIndex(S=>S===v.key)];return Object.assign(Object.assign({},v),{column:Object.assign(Object.assign({},v.column),b),forceFiltered:b.filtered})})}return h},[c,u]),m=s.useMemo(()=>FS(f),[f]),g=h=>{const C=f.filter(p=>{let{key:v}=p;return v!==h.key});C.push(h),d(C),o(FS(C),C)};return[h=>p2(t,n,h,f,i,g,a,void 0,l),f,m]}function VW(e,t,n){const r=s.useRef({});function o(a){if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let l=function(c){c.forEach((u,d)=>{const f=n(u,d);i.set(f,u),u&&typeof u=="object"&&t in u&&l(u[t]||[])})};const i=new Map;l(e),r.current={data:e,childrenColumnName:t,kvMap:i,getRowKey:n}}return r.current.kvMap.get(a)}return[o]}var KW=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const a=e[o];typeof a!="function"&&(n[o]=a)}),n}function GW(e,t,n){const r=n&&typeof n=="object"?n:{},{total:o=0}=r,a=KW(r,["total"]),[i,l]=s.useState(()=>({current:"defaultCurrent"in a?a.defaultCurrent:1,pageSize:"defaultPageSize"in a?a.defaultPageSize:h2})),c=z7(i,a,{total:o>0?o:e}),u=Math.ceil((o||e)/c.pageSize);c.current>u&&(c.current=u||1);const d=(m,g)=>{l({current:m??1,pageSize:g||c.pageSize})},f=(m,g)=>{var y;n&&((y=n.onChange)===null||y===void 0||y.call(n,m,g)),d(m,g),t(m,g||(c==null?void 0:c.pageSize))};return n===!1?[{},()=>{}]:[Object.assign(Object.assign({},c),{onChange:f}),d]}var UW={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"};const qW=UW;var XW=function(t,n){return s.createElement(Pt,ce({},t,{ref:n,icon:qW}))},YW=s.forwardRef(XW);const QW=YW;var ZW={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"};const JW=ZW;var eG=function(t,n){return s.createElement(Pt,ce({},t,{ref:n,icon:JW}))},tG=s.forwardRef(eG);const nG=tG,Ou="ascend",Ym="descend";function wd(e){return typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1}function AS(e){return typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1}function rG(e,t){return t?e[e.indexOf(t)+1]:e[0]}function Jp(e,t,n){let r=[];function o(a,i){r.push({column:a,key:qa(a,i),multiplePriority:wd(a),sortOrder:a.sortOrder})}return(e||[]).forEach((a,i)=>{const l=vc(i,n);a.children?("sortOrder"in a&&o(a,l),r=[].concat(ue(r),ue(Jp(a.children,t,l)))):a.sorter&&("sortOrder"in a?o(a,l):t&&a.defaultSortOrder&&r.push({column:a,key:qa(a,l),multiplePriority:wd(a),sortOrder:a.defaultSortOrder}))}),r}function y2(e,t,n,r,o,a,i,l){return(t||[]).map((c,u)=>{const d=vc(u,l);let f=c;if(f.sorter){const m=f.sortDirections||o,g=f.showSorterTooltip===void 0?i:f.showSorterTooltip,y=qa(f,d),h=n.find(O=>{let{key:E}=O;return E===y}),C=h?h.sortOrder:null,p=rG(m,C);let v;if(c.sortIcon)v=c.sortIcon({sortOrder:C});else{const O=m.includes(Ou)&&s.createElement(nG,{className:V(`${e}-column-sorter-up`,{active:C===Ou})}),E=m.includes(Ym)&&s.createElement(QW,{className:V(`${e}-column-sorter-down`,{active:C===Ym})});v=s.createElement("span",{className:V(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(O&&E)})},s.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},O,E))}const{cancelSort:b,triggerAsc:S,triggerDesc:$}=a||{};let x=b;p===Ym?x=$:p===Ou&&(x=S);const w=typeof g=="object"?Object.assign({title:x},g):{title:x};f=Object.assign(Object.assign({},f),{className:V(f.className,{[`${e}-column-sort`]:C}),title:O=>{const E=`${e}-column-sorters`,I=s.createElement("span",{className:`${e}-column-title`},zf(c.title,O)),T=s.createElement("div",{className:E},I,v);return g?typeof g!="boolean"&&(g==null?void 0:g.target)==="sorter-icon"?s.createElement("div",{className:`${E} ${e}-column-sorters-tooltip-target-sorter`},I,s.createElement(As,Object.assign({},w),v)):s.createElement(As,Object.assign({},w),T):T},onHeaderCell:O=>{const E=c.onHeaderCell&&c.onHeaderCell(O)||{},I=E.onClick,T=E.onKeyDown;E.onClick=M=>{r({column:c,key:y,sortOrder:p,multiplePriority:wd(c)}),I==null||I(M)},E.onKeyDown=M=>{M.keyCode===fe.ENTER&&(r({column:c,key:y,sortOrder:p,multiplePriority:wd(c)}),T==null||T(M))};const _=xK(c.title,{}),R=_==null?void 0:_.toString();return C?E["aria-sort"]=C==="ascend"?"ascending":"descending":E["aria-label"]=R||"",E.className=V(E.className,`${e}-column-has-sorters`),E.tabIndex=0,c.ellipsis&&(E.title=(_??"").toString()),E}})}return"children"in f&&(f=Object.assign(Object.assign({},f),{children:y2(e,f.children,n,r,o,a,i,d)})),f})}const HS=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},VS=e=>{const t=e.filter(n=>{let{sortOrder:r}=n;return r}).map(HS);if(t.length===0&&e.length){const n=e.length-1;return Object.assign(Object.assign({},HS(e[n])),{column:void 0})}return t.length<=1?t[0]||{}:t};function ev(e,t,n){const r=t.slice().sort((i,l)=>l.multiplePriority-i.multiplePriority),o=e.slice(),a=r.filter(i=>{let{column:{sorter:l},sortOrder:c}=i;return AS(l)&&c});return a.length?o.sort((i,l)=>{for(let c=0;c{const l=i[n];return l?Object.assign(Object.assign({},i),{[n]:ev(l,t,n)}):i}):o}function oG(e){let{prefixCls:t,mergedColumns:n,onSorterChange:r,sortDirections:o,tableLocale:a,showSorterTooltip:i}=e;const[l,c]=s.useState(Jp(n,!0)),u=s.useMemo(()=>{let y=!0;const h=Jp(n,!1);if(!h.length)return l;const C=[];function p(b){y?C.push(b):C.push(Object.assign(Object.assign({},b),{sortOrder:null}))}let v=null;return h.forEach(b=>{v===null?(p(b),b.sortOrder&&(b.multiplePriority===!1?y=!1:v=!0)):(v&&b.multiplePriority!==!1||(y=!1),p(b))}),C},[n,l]),d=s.useMemo(()=>{const y=u.map(h=>{let{column:C,sortOrder:p}=h;return{column:C,order:p}});return{sortColumns:y,sortColumn:y[0]&&y[0].column,sortOrder:y[0]&&y[0].order}},[u]),f=y=>{let h;y.multiplePriority===!1||!u.length||u[0].multiplePriority===!1?h=[y]:h=[].concat(ue(u.filter(C=>{let{key:p}=C;return p!==y.key})),[y]),c(h),r(VS(h),h)};return[y=>y2(t,y,u,f,o,a,i),u,d,()=>VS(u)]}function b2(e,t){return e.map(n=>{const r=Object.assign({},n);return r.title=zf(n.title,t),"children"in r&&(r.children=b2(r.children,t)),r})}function aG(e){return[s.useCallback(n=>b2(n,e),[e])]}const iG=r2((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),lG=a2((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),sG=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:o,tableHeaderBg:a,tablePaddingVertical:i,tablePaddingHorizontal:l,calc:c}=e,u=`${H(n)} ${r} ${o}`,d=(f,m,g)=>({[`&${t}-${f}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${H(c(m).mul(-1).equal())} + `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:`${H(e.itemSize)}`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${H(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:H(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},a0(e)),r0(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},Ef(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},i9=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:H(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${H(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${H(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},l9=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},zt(e)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:H(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),i9(e)),a9(e)),o9(e)),r9(e)),n9(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},s9=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},zo(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},pa(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},pa(e))}}}},MI=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},n0(e)),_I=e=>bt(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},t0(e)),c9=_t("Pagination",e=>{const t=_I(e);return[l9(t),s9(t)]},MI),u9=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${H(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},d9=ti(["Pagination","bordered"],e=>{const t=_I(e);return[u9(t)]},MI);var f9=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,selectPrefixCls:n,className:r,rootClassName:o,style:a,size:i,locale:l,selectComponentClass:c,responsive:u,showSizeChanger:d}=e,f=f9(e,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:m}=cO(u),[,g]=mn(),{getPrefixCls:y,direction:h,pagination:C={}}=s.useContext(je),p=y("pagination",t),[v,b,S]=c9(p),$=d??C.showSizeChanger,x=s.useMemo(()=>{const M=s.createElement("span",{className:`${p}-item-ellipsis`},"•••"),L=s.createElement("button",{className:`${p}-item-link`,type:"button",tabIndex:-1},h==="rtl"?s.createElement(Hs,null):s.createElement(pd,null)),z=s.createElement("button",{className:`${p}-item-link`,type:"button",tabIndex:-1},h==="rtl"?s.createElement(pd,null):s.createElement(Hs,null)),P=s.createElement("a",{className:`${p}-item-link`},s.createElement("div",{className:`${p}-item-container`},h==="rtl"?s.createElement(mS,{className:`${p}-item-link-icon`}):s.createElement(fS,{className:`${p}-item-link-icon`}),M)),N=s.createElement("a",{className:`${p}-item-link`},s.createElement("div",{className:`${p}-item-container`},h==="rtl"?s.createElement(fS,{className:`${p}-item-link-icon`}):s.createElement(mS,{className:`${p}-item-link-icon`}),M));return{prevIcon:L,nextIcon:z,jumpPrevIcon:P,jumpNextIcon:N}},[h,p]),[w]=ei("Pagination",K$),O=Object.assign(Object.assign({},w),l),E=sr(i),I=E==="small"||!!(m&&!E&&u),T=y("select",n),_=V({[`${p}-mini`]:I,[`${p}-rtl`]:h==="rtl",[`${p}-bordered`]:g.wireframe},C==null?void 0:C.className,r,o,b,S),R=Object.assign(Object.assign({},C==null?void 0:C.style),a);return v(s.createElement(s.Fragment,null,g.wireframe&&s.createElement(d9,{prefixCls:p}),s.createElement(t9,Object.assign({},x,f,{style:R,prefixCls:p,selectPrefixCls:T,className:_,selectComponentClass:c||(I?NI:TI),locale:O,showSizeChanger:$}))))},g9=m9,p9=new yt("antSpinMove",{to:{opacity:1}}),v9=new yt("antRotate",{to:{transform:"rotate(405deg)"}}),h9=e=>{const{componentCls:t,calc:n}=e;return{[`${t}`]:Object.assign(Object.assign({},zt(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[`${t}-dot ${t}-dot-item`]:{backgroundColor:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),backgroundColor:e.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:p9,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:v9,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${t}-dot`]:{fontSize:e.dotSizeSM,i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{fontSize:e.dotSizeLG,i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},y9=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},b9=_t("Spin",e=>{const t=bt(e,{spinDotDefault:e.colorTextDescription});return[h9(t)]},y9);var C9=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,spinning:n=!0,delay:r=0,className:o,rootClassName:a,size:i="default",tip:l,wrapperClassName:c,style:u,children:d,fullscreen:f=!1}=e,m=C9(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen"]),{getPrefixCls:g}=s.useContext(je),y=g("spin",t),[h,C,p]=b9(y),[v,b]=s.useState(()=>n&&!x9(n,r));s.useEffect(()=>{if(n){const _=L5(r,()=>{b(!0)});return _(),()=>{var R;(R=_==null?void 0:_.cancel)===null||R===void 0||R.call(_)}}b(!1)},[r,n]);const S=s.useMemo(()=>typeof d<"u"&&!f,[d,f]),{direction:$,spin:x}=s.useContext(je),w=V(y,x==null?void 0:x.className,{[`${y}-sm`]:i==="small",[`${y}-lg`]:i==="large",[`${y}-spinning`]:v,[`${y}-show-text`]:!!l,[`${y}-fullscreen`]:f,[`${y}-fullscreen-show`]:f&&v,[`${y}-rtl`]:$==="rtl"},o,a,C,p),O=V(`${y}-container`,{[`${y}-blur`]:v}),E=Kt(m,["indicator"]),I=Object.assign(Object.assign({},x==null?void 0:x.style),u),T=s.createElement("div",Object.assign({},E,{style:I,className:w,"aria-live":"polite","aria-busy":v}),S9(y,e),l&&(S||f)?s.createElement("div",{className:`${y}-text`},l):null);return h(S?s.createElement("div",Object.assign({},E,{className:V(`${y}-nested-loading`,c,C,p)}),v&&s.createElement("div",{key:"loading"},T),s.createElement("div",{className:O,key:"container"},d)):T)};zI.setDefaultIndicator=e=>{wu=e};const $9=zI;let Nr=null,ka=e=>e(),Ks=[],Ws={};function vS(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=Ws,a=(e==null?void 0:e())||document.body;return{getContainer:()=>a,duration:t,rtl:n,maxCount:r,top:o}}const w9=G.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:o}=s.useContext(je),a=Ws.prefixCls||o("message"),i=s.useContext(ud),[l,c]=Dw(Object.assign(Object.assign(Object.assign({},n),{prefixCls:a}),i.message));return G.useImperativeHandle(t,()=>{const u=Object.assign({},l);return Object.keys(u).forEach(d=>{u[d]=function(){return r(),l[d].apply(l,arguments)}}),{instance:u,sync:r}}),c}),E9=G.forwardRef((e,t)=>{const[n,r]=G.useState(vS),o=()=>{r(vS)};G.useEffect(o,[]);const a=ec(),i=a.getRootPrefixCls(),l=a.getIconPrefixCls(),c=a.getTheme(),u=G.createElement(w9,{ref:t,sync:o,messageConfig:n});return G.createElement(tc,{prefixCls:i,iconPrefixCls:l,theme:c},a.holderRender?a.holderRender(u):u)});function Tf(){if(!Nr){const e=document.createDocumentFragment(),t={fragment:e};Nr=t,ka(()=>{uf(G.createElement(E9,{ref:n=>{const{instance:r,sync:o}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=o,Tf())})}}),e)});return}Nr.instance&&(Ks.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{ka(()=>{const r=Nr.instance.open(Object.assign(Object.assign({},Ws),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":ka(()=>{Nr==null||Nr.instance.destroy(e.key)});break;default:ka(()=>{var r;const o=(r=Nr.instance)[t].apply(r,ue(e.args));o==null||o.then(e.resolve),e.setCloseFn(o)})}}),Ks=[])}function O9(e){Ws=Object.assign(Object.assign({},Ws),e),ka(()=>{var t;(t=Nr==null?void 0:Nr.sync)===null||t===void 0||t.call(Nr)})}function I9(e){const t=hh(n=>{let r;const o={type:"open",config:e,resolve:n,setCloseFn:a=>{r=a}};return Ks.push(o),()=>{r?ka(()=>{r()}):o.skipped=!0}});return Tf(),t}function P9(e,t){ec();const n=hh(r=>{let o;const a={type:e,args:t,resolve:r,setCloseFn:i=>{o=i}};return Ks.push(a),()=>{o?ka(()=>{o()}):a.skipped=!0}});return Tf(),n}const R9=e=>{Ks.push({type:"destroy",key:e}),Tf()},N9=["success","info","warning","error","loading"],T9={open:I9,destroy:R9,config:O9,useMessage:Bw,_InternalPanelDoNotUseOrYouWillBeFired:T4},jI=T9;N9.forEach(e=>{jI[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:a,title:i,children:l,footer:c}=e,u=M9(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:d}=s.useContext(je),f=d(),m=t||d("modal"),g=gn(f),[y,h,C]=bE(m,g),p=`${m}-confirm`;let v={};return a?v={closable:o??!1,title:"",footer:"",children:s.createElement(SE,Object.assign({},e,{prefixCls:m,confirmPrefixCls:p,rootPrefixCls:f,content:l}))}:v={closable:o??!0,title:i,footer:c!==null&&s.createElement(vE,Object.assign({},e)),children:l},y(s.createElement(eE,Object.assign({prefixCls:m,className:V(h,`${m}-pure-panel`,a&&p,a&&`${p}-${a}`,n,C,g)},u,{closeIcon:pE(m,r),closable:o},v)))},z9=FE(_9);function LI(e){return uc(EE(e))}const oo=CE;oo.useModal=NE;oo.info=function(t){return uc(OE(t))};oo.success=function(t){return uc(IE(t))};oo.error=function(t){return uc(PE(t))};oo.warning=LI;oo.warn=LI;oo.confirm=function(t){return uc(RE(t))};oo.destroyAll=function(){for(;La.length;){const t=La.pop();t&&t()}};oo.config=Yj;oo._InternalPanelDoNotUseOrYouWillBeFired=z9;const GU=oo;let qr=null,Eu=e=>e(),$d=[],Gs={};function hS(){const{getContainer:e,rtl:t,maxCount:n,top:r,bottom:o}=Gs,a=(e==null?void 0:e())||document.body;return{getContainer:()=>a,rtl:t,maxCount:n,top:r,bottom:o}}const j9=G.forwardRef((e,t)=>{const{notificationConfig:n,sync:r}=e,{getPrefixCls:o}=s.useContext(je),a=Gs.prefixCls||o("notification"),i=s.useContext(ud),[l,c]=LE(Object.assign(Object.assign(Object.assign({},n),{prefixCls:a}),i.notification));return G.useEffect(r,[]),G.useImperativeHandle(t,()=>{const u=Object.assign({},l);return Object.keys(u).forEach(d=>{u[d]=function(){return r(),l[d].apply(l,arguments)}}),{instance:u,sync:r}}),c}),L9=G.forwardRef((e,t)=>{const[n,r]=G.useState(hS),o=()=>{r(hS)};G.useEffect(o,[]);const a=ec(),i=a.getRootPrefixCls(),l=a.getIconPrefixCls(),c=a.getTheme(),u=G.createElement(j9,{ref:t,sync:o,notificationConfig:n});return G.createElement(tc,{prefixCls:i,iconPrefixCls:l,theme:c},a.holderRender?a.holderRender(u):u)});function f0(){if(!qr){const e=document.createDocumentFragment(),t={fragment:e};qr=t,Eu(()=>{uf(G.createElement(L9,{ref:n=>{const{instance:r,sync:o}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=o,f0())})}}),e)});return}qr.instance&&($d.forEach(e=>{switch(e.type){case"open":{Eu(()=>{qr.instance.open(Object.assign(Object.assign({},Gs),e.config))});break}case"destroy":Eu(()=>{qr==null||qr.instance.destroy(e.key)});break}}),$d=[])}function k9(e){Gs=Object.assign(Object.assign({},Gs),e),Eu(()=>{var t;(t=qr==null?void 0:qr.sync)===null||t===void 0||t.call(qr)})}function kI(e){ec(),$d.push({type:"open",config:e}),f0()}const D9=e=>{$d.push({type:"destroy",key:e}),f0()},B9=["success","info","warning","error"],F9={open:kI,destroy:D9,config:k9,useNotification:kE,_InternalPanelDoNotUseOrYouWillBeFired:pL},DI=F9;B9.forEach(e=>{DI[e]=t=>kI(Object.assign(Object.assign({},t),{type:e}))});const UU=DI,A9=e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:o,colorText:a,colorWarning:i,marginXXS:l,marginXS:c,fontSize:u,fontWeightStrong:d,colorTextHeading:f}=e;return{[t]:{zIndex:o,[`&${r}-popover`]:{fontSize:u},[`${t}-message`]:{marginBottom:c,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:i,fontSize:u,lineHeight:1,marginInlineEnd:c},[`${t}-title`]:{fontWeight:d,color:f,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:l,color:a}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:c}}}}},H9=e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},BI=_t("Popconfirm",e=>A9(e),H9,{resetStyle:!1});var V9=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:o,description:a,cancelText:i,okText:l,okType:c="primary",icon:u=s.createElement(gl,null),showCancel:d=!0,close:f,onConfirm:m,onCancel:g,onPopupClick:y}=e,{getPrefixCls:h}=s.useContext(je),[C]=ei("Popconfirm",go.Popconfirm),p=al(o),v=al(a);return s.createElement("div",{className:`${t}-inner-content`,onClick:y},s.createElement("div",{className:`${t}-message`},u&&s.createElement("span",{className:`${t}-message-icon`},u),s.createElement("div",{className:`${t}-message-text`},p&&s.createElement("div",{className:V(`${t}-title`)},p),v&&s.createElement("div",{className:`${t}-description`},v))),s.createElement("div",{className:`${t}-buttons`},d&&s.createElement(Lo,Object.assign({onClick:g,size:"small"},r),i||(C==null?void 0:C.cancelText)),s.createElement($h,{buttonProps:Object.assign(Object.assign({size:"small"},yh(c)),n),actionFn:m,close:f,prefixCls:h("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},l||(C==null?void 0:C.okText))))},K9=e=>{const{prefixCls:t,placement:n,className:r,style:o}=e,a=V9(e,["prefixCls","placement","className","style"]),{getPrefixCls:i}=s.useContext(je),l=i("popconfirm",t),[c]=BI(l);return c(s.createElement(hO,{placement:n,className:V(l,r),style:o,content:s.createElement(FI,Object.assign({prefixCls:l},a))}))},W9=K9;var G9=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var n,r;const{prefixCls:o,placement:a="top",trigger:i="click",okType:l="primary",icon:c=s.createElement(gl,null),children:u,overlayClassName:d,onOpenChange:f,onVisibleChange:m}=e,g=G9(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:y}=s.useContext(je),[h,C]=Jt(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),p=(E,I)=>{C(E,!0),m==null||m(E),f==null||f(E,I)},v=E=>{p(!1,E)},b=E=>{var I;return(I=e.onConfirm)===null||I===void 0?void 0:I.call(globalThis,E)},S=E=>{var I;p(!1,E),(I=e.onCancel)===null||I===void 0||I.call(globalThis,E)},$=(E,I)=>{const{disabled:T=!1}=e;T||p(E,I)},x=y("popconfirm",o),w=V(x,d),[O]=BI(x);return O(s.createElement(R6,Object.assign({},Kt(g,["title"]),{trigger:i,placement:a,onOpenChange:$,open:h,ref:t,overlayClassName:w,content:s.createElement(FI,Object.assign({okType:l,icon:c},e,{prefixCls:x,close:v,onConfirm:b,onCancel:S})),"data-popover-inject":!0}),u))}),AI=U9;AI._InternalPanelDoNotUseOrYouWillBeFired=W9;const qU=AI;var q9={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"};const X9=q9;var Y9=function(t,n){return s.createElement($t,ce({},t,{ref:n,icon:X9}))},Q9=s.forwardRef(Y9);const XU=Q9;var Z9=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],HI=s.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-switch":r,a=e.className,i=e.checked,l=e.defaultChecked,c=e.disabled,u=e.loadingIcon,d=e.checkedChildren,f=e.unCheckedChildren,m=e.onClick,g=e.onChange,y=e.onKeyDown,h=tt(e,Z9),C=Jt(!1,{value:i,defaultValue:l}),p=Q(C,2),v=p[0],b=p[1];function S(O,E){var I=v;return c||(I=O,b(I),g==null||g(I,E)),I}function $(O){O.which===fe.LEFT?S(!1,O):O.which===fe.RIGHT&&S(!0,O),y==null||y(O)}function x(O){var E=S(!v,O);m==null||m(E,O)}var w=V(o,a,(n={},D(n,"".concat(o,"-checked"),v),D(n,"".concat(o,"-disabled"),c),n));return s.createElement("button",ce({},h,{type:"button",role:"switch","aria-checked":v,disabled:c,className:w,ref:t,onKeyDown:$,onClick:x}),u,s.createElement("span",{className:"".concat(o,"-inner")},s.createElement("span",{className:"".concat(o,"-inner-checked")},d),s.createElement("span",{className:"".concat(o,"-inner-unchecked")},f)))});HI.displayName="Switch";const J9=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:a,innerMaxMarginSM:i,handleSizeSM:l,calc:c}=e,u=`${t}-inner`,d=H(c(l).add(c(r).mul(2)).equal()),f=H(c(i).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:H(n),[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${u}-checked`]:{marginInlineStart:`calc(-100% + ${d} - ${f})`,marginInlineEnd:`calc(100% - ${d} + ${f})`},[`${u}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:l,height:l},[`${t}-loading-icon`]:{top:c(c(l).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${u}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${u}-unchecked`]:{marginInlineStart:`calc(100% - ${d} + ${f})`,marginInlineEnd:`calc(-100% + ${d} - ${f})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${H(c(l).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${u}`]:{[`${u}-unchecked`]:{marginInlineStart:c(e.marginXXS).div(2).equal(),marginInlineEnd:c(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${u}`]:{[`${u}-checked`]:{marginInlineStart:c(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:c(e.marginXXS).div(2).equal()}}}}}}},eV=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},tV=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:o,handleSize:a,calc:i}=e,l=`${t}-handle`;return{[t]:{[l]:{position:"absolute",top:n,insetInlineStart:n,width:a,height:a,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:i(a).div(2).equal(),boxShadow:o,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${l}`]:{insetInlineStart:`calc(100% - ${H(i(a).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${l}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${l}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},nV=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:a,handleSize:i,calc:l}=e,c=`${t}-inner`,u=H(l(i).add(l(r).mul(2)).equal()),d=H(l(a).mul(2).equal());return{[t]:{[c]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:a,paddingInlineEnd:o,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${c}-checked, ${c}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none"},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${c}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${c}`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(r).mul(2).equal(),marginInlineEnd:l(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(r).mul(-1).mul(2).equal(),marginInlineEnd:l(r).mul(2).equal()}}}}}},rV=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},zt(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:`${H(n)}`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),zo(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},oV=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,a=t*n,i=r/2,l=2,c=a-l*2,u=i-l*2;return{trackHeight:a,trackHeightSM:i,trackMinWidth:c*2+l*4,trackMinWidthSM:u*2+l*2,trackPadding:l,handleBg:o,handleSize:c,handleSizeSM:u,handleShadow:`0 2px 4px 0 ${new Dt("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:c/2,innerMaxMargin:c+l+l*2,innerMinMarginSM:u/2,innerMaxMarginSM:u+l+l*2}},aV=_t("Switch",e=>{const t=bt(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[rV(t),nV(t),tV(t),eV(t),J9(t)]},oV);var iV=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,size:r,disabled:o,loading:a,className:i,rootClassName:l,style:c,checked:u,value:d,defaultChecked:f,defaultValue:m,onChange:g}=e,y=iV(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[h,C]=Jt(!1,{value:u??d,defaultValue:f??m}),{getPrefixCls:p,direction:v,switch:b}=s.useContext(je),S=s.useContext(Ao),$=(o??S)||a,x=p("switch",n),w=s.createElement("div",{className:`${x}-handle`},a&&s.createElement(pl,{className:`${x}-loading-icon`})),[O,E,I]=aV(x),T=sr(r),_=V(b==null?void 0:b.className,{[`${x}-small`]:T==="small",[`${x}-loading`]:a,[`${x}-rtl`]:v==="rtl"},i,l,E,I),R=Object.assign(Object.assign({},b==null?void 0:b.style),c),M=function(){C(arguments.length<=0?void 0:arguments[0]),g==null||g.apply(void 0,arguments)};return O(s.createElement(ac,{component:"Switch"},s.createElement(HI,Object.assign({},y,{checked:h,onChange:M,prefixCls:x,className:_,style:R,disabled:$,ref:t,loadingIcon:w}))))}),VI=lV;VI.__ANT_SWITCH=!0;const YU=VI;var Xo={},pc="rc-table-internal-hook";function m0(e){var t=s.createContext(void 0),n=function(o){var a=o.value,i=o.children,l=s.useRef(a);l.current=a;var c=s.useState(function(){return{getValue:function(){return l.current},listeners:new Set}}),u=Q(c,1),d=u[0];return Mt(function(){To.unstable_batchedUpdates(function(){d.listeners.forEach(function(f){f(a)})})},[a]),s.createElement(t.Provider,{value:d},i)};return{Context:t,Provider:n,defaultValue:e}}function Vn(e,t){var n=Ft(typeof t=="function"?t:function(f){if(t===void 0)return f;if(!Array.isArray(t))return f[t];var m={};return t.forEach(function(g){m[g]=f[g]}),m}),r=s.useContext(e==null?void 0:e.Context),o=r||{},a=o.listeners,i=o.getValue,l=s.useRef();l.current=n(r?i():e==null?void 0:e.defaultValue);var c=s.useState({}),u=Q(c,2),d=u[1];return Mt(function(){if(!r)return;function f(m){var g=n(m);mo(l.current,g,!0)||d({})}return a.add(f),function(){a.delete(f)}},[r]),l.current}function sV(){var e=s.createContext(null);function t(){return s.useContext(e)}function n(o,a){var i=to(o),l=function(u,d){var f=i?{ref:d}:{},m=s.useRef(0),g=s.useRef(u),y=t();return y!==null?s.createElement(o,ce({},u,f)):((!a||a(g.current,u))&&(m.current+=1),g.current=u,s.createElement(e.Provider,{value:m.current},s.createElement(o,ce({},u,f))))};return i?s.forwardRef(l):l}function r(o,a){var i=to(o),l=function(u,d){var f=i?{ref:d}:{};return t(),s.createElement(o,ce({},u,f))};return i?s.memo(s.forwardRef(l),a):s.memo(l,a)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var g0=sV(),KI=g0.makeImmutable,wl=g0.responseImmutable,cV=g0.useImmutableMark,cr=m0(),WI=s.createContext({renderWithProps:!1}),uV="RC_TABLE_KEY";function dV(e){return e==null?[]:Array.isArray(e)?e:[e]}function Mf(e){var t=[],n={};return e.forEach(function(r){for(var o=r||{},a=o.key,i=o.dataIndex,l=a||dV(i).join("-")||uV;n[l];)l="".concat(l,"_next");n[l]=!0,t.push(l)}),t}function Kp(e){return e!=null}function fV(e){return e&&at(e)==="object"&&!Array.isArray(e)&&!s.isValidElement(e)}function mV(e,t,n,r,o,a){var i=s.useContext(WI),l=cV(),c=Za(function(){if(Kp(r))return[r];var u=t==null||t===""?[]:Array.isArray(t)?t:[t],d=br(e,u),f=d,m=void 0;if(o){var g=o(d,e,n);fV(g)?(f=g.children,m=g.props,i.renderWithProps=!0):f=g}return[f,m]},[l,e,r,t,o,n],function(u,d){if(a){var f=Q(u,2),m=f[1],g=Q(d,2),y=g[1];return a(y,m)}return i.renderWithProps?!0:!mo(u,d,!0)});return c}function gV(e,t,n,r){var o=e+t-1;return e<=r&&o>=n}function pV(e,t){return Vn(cr,function(n){var r=gV(e,t||1,n.hoverStartRow,n.hoverEndRow);return[r,n.onHover]})}var vV=function(t){var n=t.ellipsis,r=t.rowType,o=t.children,a,i=n===!0?{showTitle:!0}:n;return i&&(i.showTitle||r==="header")&&(typeof o=="string"||typeof o=="number"?a=o.toString():s.isValidElement(o)&&typeof o.props.children=="string"&&(a=o.props.children)),a};function hV(e){var t,n,r,o,a,i,l,c,u=e.component,d=e.children,f=e.ellipsis,m=e.scope,g=e.prefixCls,y=e.className,h=e.align,C=e.record,p=e.render,v=e.dataIndex,b=e.renderIndex,S=e.shouldCellUpdate,$=e.index,x=e.rowType,w=e.colSpan,O=e.rowSpan,E=e.fixLeft,I=e.fixRight,T=e.firstFixLeft,_=e.lastFixLeft,R=e.firstFixRight,M=e.lastFixRight,L=e.appendNode,z=e.additionalProps,P=z===void 0?{}:z,N=e.isSticky,k="".concat(g,"-cell"),j=Vn(cr,["supportSticky","allColumnsFixedLeft","rowHoverable"]),B=j.supportSticky,F=j.allColumnsFixedLeft,K=j.rowHoverable,X=mV(C,v,b,d,p,S),U=Q(X,2),re=U[0],Z=U[1],ne={},le=typeof E=="number"&&B,ee=typeof I=="number"&&B;le&&(ne.position="sticky",ne.left=E),ee&&(ne.position="sticky",ne.right=I);var q=(t=(n=(r=Z==null?void 0:Z.colSpan)!==null&&r!==void 0?r:P.colSpan)!==null&&n!==void 0?n:w)!==null&&t!==void 0?t:1,te=(o=(a=(i=Z==null?void 0:Z.rowSpan)!==null&&i!==void 0?i:P.rowSpan)!==null&&a!==void 0?a:O)!==null&&o!==void 0?o:1,J=pV($,te),W=Q(J,2),Y=W[0],de=W[1],oe=Ft(function(ve){var $e;C&&de($,$+te-1),P==null||($e=P.onMouseEnter)===null||$e===void 0||$e.call(P,ve)}),se=Ft(function(ve){var $e;C&&de(-1,-1),P==null||($e=P.onMouseLeave)===null||$e===void 0||$e.call(P,ve)});if(q===0||te===0)return null;var ae=(l=P.title)!==null&&l!==void 0?l:vV({rowType:x,ellipsis:f,children:re}),ie=V(k,y,(c={},D(D(D(D(D(D(D(D(D(D(c,"".concat(k,"-fix-left"),le&&B),"".concat(k,"-fix-left-first"),T&&B),"".concat(k,"-fix-left-last"),_&&B),"".concat(k,"-fix-left-all"),_&&F&&B),"".concat(k,"-fix-right"),ee&&B),"".concat(k,"-fix-right-first"),R&&B),"".concat(k,"-fix-right-last"),M&&B),"".concat(k,"-ellipsis"),f),"".concat(k,"-with-append"),L),"".concat(k,"-fix-sticky"),(le||ee)&&N&&B),D(c,"".concat(k,"-row-hover"),!Z&&Y)),P.className,Z==null?void 0:Z.className),pe={};h&&(pe.textAlign=h);var me=A(A(A(A({},ne),P.style),pe),Z==null?void 0:Z.style),ge=re;return at(ge)==="object"&&!Array.isArray(ge)&&!s.isValidElement(ge)&&(ge=null),f&&(_||R)&&(ge=s.createElement("span",{className:"".concat(k,"-content")},ge)),s.createElement(u,ce({},Z,P,{className:ie,style:me,title:ae,scope:m,onMouseEnter:K?oe:void 0,onMouseLeave:K?se:void 0,colSpan:q!==1?q:null,rowSpan:te!==1?te:null}),L,ge)}const oi=s.memo(hV);function p0(e,t,n,r,o){var a=n[e]||{},i=n[t]||{},l,c;a.fixed==="left"?l=r.left[o==="rtl"?t:e]:i.fixed==="right"&&(c=r.right[o==="rtl"?e:t]);var u=!1,d=!1,f=!1,m=!1,g=n[t+1],y=n[e-1],h=g&&g.fixed===void 0||y&&y.fixed===void 0||n.every(function(S){return S.fixed==="left"});if(o==="rtl"){if(l!==void 0){var C=y&&y.fixed==="left";m=!C&&h}else if(c!==void 0){var p=g&&g.fixed==="right";f=!p&&h}}else if(l!==void 0){var v=g&&g.fixed==="left";u=!v&&h}else if(c!==void 0){var b=y&&y.fixed==="right";d=!b&&h}return{fixLeft:l,fixRight:c,lastFixLeft:u,firstFixRight:d,lastFixRight:f,firstFixLeft:m,isSticky:r.isSticky}}var GI=s.createContext({});function yV(e){var t=e.className,n=e.index,r=e.children,o=e.colSpan,a=o===void 0?1:o,i=e.rowSpan,l=e.align,c=Vn(cr,["prefixCls","direction"]),u=c.prefixCls,d=c.direction,f=s.useContext(GI),m=f.scrollColumnIndex,g=f.stickyOffsets,y=f.flattenColumns,h=n+a-1,C=h+1===m?a+1:a,p=p0(n,n+C-1,y,g,d);return s.createElement(oi,ce({className:t,index:n,component:"td",prefixCls:u,record:null,dataIndex:null,align:l,colSpan:C,rowSpan:i,render:function(){return r}},p))}var bV=["children"];function CV(e){var t=e.children,n=tt(e,bV);return s.createElement("tr",n,t)}function _f(e){var t=e.children;return t}_f.Row=CV;_f.Cell=yV;function SV(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,o=Vn(cr,"prefixCls"),a=r.length-1,i=r[a],l=s.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:i!=null&&i.scrollbar?a:null}},[i,r,a,n]);return s.createElement(GI.Provider,{value:l},s.createElement("tfoot",{className:"".concat(o,"-summary")},t))}const Zc=wl(SV);var UI=_f;function xV(e){return null}function $V(e){return null}function qI(e,t,n,r,o,a,i){e.push({record:t,indent:n,index:i});var l=a(t),c=o==null?void 0:o.has(l);if(t&&Array.isArray(t[r])&&c)for(var u=0;u1?T-1:0),R=1;R=1?$:""),style:A(A({},n),p==null?void 0:p.style)}),y.map(function(E,I){var T=E.render,_=E.dataIndex,R=E.className,M=ZI(m,E,I,c,o),L=M.key,z=M.fixedInfo,P=M.appendCellNode,N=M.additionalCellProps;return s.createElement(oi,ce({className:R,ellipsis:E.ellipsis,align:E.align,scope:E.rowScope,component:E.rowScope?f:d,prefixCls:g,key:L,record:r,index:o,renderIndex:a,dataIndex:_,render:T,shouldCellUpdate:E.shouldCellUpdate},z,{appendNode:P,additionalProps:N}))})),w;if(b&&(S.current||v)){var O=C(r,o,c+1,v);w=s.createElement(QI,{expanded:v,className:V("".concat(g,"-expanded-row"),"".concat(g,"-expanded-row-level-").concat(c+1),$),prefixCls:g,component:u,cellComponent:d,colSpan:y.length,isEmpty:!1},O)}return s.createElement(s.Fragment,null,x,w)}const EV=wl(wV);function OV(e){var t=e.columnKey,n=e.onColumnResize,r=s.useRef();return s.useEffect(function(){r.current&&n(t,r.current.offsetWidth)},[]),s.createElement(ir,{data:t},s.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},s.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function IV(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize;return s.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0}},s.createElement(ir.Collection,{onBatchResize:function(a){a.forEach(function(i){var l=i.data,c=i.size;r(l,c.offsetWidth)})}},n.map(function(o){return s.createElement(OV,{key:o,columnKey:o,onColumnResize:r})})))}function PV(e){var t=e.data,n=e.measureColumnWidth,r=Vn(cr,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),o=r.prefixCls,a=r.getComponent,i=r.onColumnResize,l=r.flattenColumns,c=r.getRowKey,u=r.expandedKeys,d=r.childrenColumnName,f=r.emptyNode,m=XI(t,d,u,c),g=s.useRef({renderWithProps:!1}),y=a(["body","wrapper"],"tbody"),h=a(["body","row"],"tr"),C=a(["body","cell"],"td"),p=a(["body","cell"],"th"),v;t.length?v=m.map(function(S,$){var x=S.record,w=S.indent,O=S.index,E=c(x,$);return s.createElement(EV,{key:E,rowKey:E,record:x,index:$,renderIndex:O,rowComponent:h,cellComponent:C,scopeCellComponent:p,getRowKey:c,indent:w})}):v=s.createElement(QI,{expanded:!0,className:"".concat(o,"-placeholder"),prefixCls:o,component:h,cellComponent:C,colSpan:l.length,isEmpty:!0},f);var b=Mf(l);return s.createElement(WI.Provider,{value:g.current},s.createElement(y,{className:"".concat(o,"-tbody")},n&&s.createElement(IV,{prefixCls:o,columnsKey:b,onColumnResize:i}),v))}const RV=wl(PV);var NV=["expandable"],us="RC_TABLE_INTERNAL_COL_DEFINE";function TV(e){var t=e.expandable,n=tt(e,NV),r;return"expandable"in e?r=A(A({},n),t):r=n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}var MV=["columnType"];function JI(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,o=[],a=r||n.length,i=!1,l=a-1;l>=0;l-=1){var c=t[l],u=n&&n[l],d=u&&u[us];if(c||d||i){var f=d||{};f.columnType;var m=tt(f,MV);o.unshift(s.createElement("col",ce({key:l,style:{width:c}},m))),i=!0}}return s.createElement("colgroup",null,o)}var _V=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function zV(e,t){return s.useMemo(function(){for(var n=[],r=0;r1?"colgroup":"col":null,ellipsis:C.ellipsis,align:C.align,component:i,prefixCls:d,key:g[h]},p,{additionalProps:v,rowType:"header"}))}))};function kV(e){var t=[];function n(i,l){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[c]=t[c]||[];var u=l,d=i.filter(Boolean).map(function(f){var m={key:f.key,className:f.className||"",children:f.title,column:f,colStart:u},g=1,y=f.children;return y&&y.length>0&&(g=n(y,u,c+1).reduce(function(h,C){return h+C},0),m.hasSubColumns=!0),"colSpan"in f&&(g=f.colSpan),"rowSpan"in f&&(m.rowSpan=f.rowSpan),m.colSpan=g,m.colEnd=m.colStart+g-1,t[c].push(m),u+=g,g});return d}n(e,0);for(var r=t.length,o=function(l){t[l].forEach(function(c){!("rowSpan"in c)&&!c.hasSubColumns&&(c.rowSpan=r-l)})},a=0;a1&&arguments[1]!==void 0?arguments[1]:"";return typeof t=="number"?t:t.endsWith("%")?e*parseFloat(t)/100:null}function BV(e,t,n){return s.useMemo(function(){if(t&&t>0){var r=0,o=0;e.forEach(function(m){var g=CS(t,m.width);g?r+=g:o+=1});var a=Math.max(t,n),i=Math.max(a-r,o),l=o,c=i/o,u=0,d=e.map(function(m){var g=A({},m),y=CS(t,g.width);if(y)g.width=y;else{var h=Math.floor(c);g.width=l===1?i:h,i-=h,l-=1}return u+=g.width,g});if(u0?A(A({},t),{},{children:e2(n)}):t})}function Wp(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(n){return n&&at(n)==="object"}).reduce(function(n,r,o){var a=r.fixed,i=a===!0?"left":a,l="".concat(t,"-").concat(o),c=r.children;return c&&c.length>0?[].concat(ue(n),ue(Wp(c,l).map(function(u){return A({fixed:i},u)}))):[].concat(ue(n),[A(A({key:l},r),{},{fixed:i})])},[])}function HV(e){return e.map(function(t){var n=t.fixed,r=tt(t,AV),o=n;return n==="left"?o="right":n==="right"&&(o="left"),A({fixed:o},r)})}function VV(e,t){var n=e.prefixCls,r=e.columns,o=e.children,a=e.expandable,i=e.expandedKeys,l=e.columnTitle,c=e.getRowKey,u=e.onTriggerExpand,d=e.expandIcon,f=e.rowExpandable,m=e.expandIconColumnIndex,g=e.direction,y=e.expandRowByClick,h=e.columnWidth,C=e.fixed,p=e.scrollWidth,v=e.clientWidth,b=s.useMemo(function(){var _=r||v0(o)||[];return e2(_.slice())},[r,o]),S=s.useMemo(function(){if(a){var _=b.slice();if(!_.includes(Xo)){var R=m||0;R>=0&&_.splice(R,0,Xo)}var M=_.indexOf(Xo);_=_.filter(function(N,k){return N!==Xo||k===M});var L=b[M],z;(C==="left"||C)&&!m?z="left":(C==="right"||C)&&m===b.length?z="right":z=L?L.fixed:null;var P=D(D(D(D(D(D({},us,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",l),"fixed",z),"className","".concat(n,"-row-expand-icon-cell")),"width",h),"render",function(k,j,B){var F=c(j,B),K=i.has(F),X=f?f(j):!0,U=d({prefixCls:n,expanded:K,expandable:X,record:j,onExpand:u});return y?s.createElement("span",{onClick:function(Z){return Z.stopPropagation()}},U):U});return _.map(function(N){return N===Xo?P:N})}return b.filter(function(N){return N!==Xo})},[a,b,c,i,d,g]),$=s.useMemo(function(){var _=S;return t&&(_=t(_)),_.length||(_=[{render:function(){return null}}]),_},[t,S,g]),x=s.useMemo(function(){return g==="rtl"?HV(Wp($)):Wp($)},[$,g,p]),w=s.useMemo(function(){for(var _=-1,R=x.length-1;R>=0;R-=1){var M=x[R].fixed;if(M==="left"||M===!0){_=R;break}}if(_>=0)for(var L=0;L<=_;L+=1){var z=x[L].fixed;if(z!=="left"&&z!==!0)return!0}var P=x.findIndex(function(j){var B=j.fixed;return B==="right"});if(P>=0)for(var N=P;N=f&&(N=f-m),i({scrollLeft:N/f*(d+2)}),v.current.x=M.pageX},T=function(){w.current=Pt(function(){if(a.current){var M=dS(a.current).top,L=M+a.current.offsetHeight,z=c===window?document.documentElement.scrollTop+window.innerHeight:dS(c).top+c.clientHeight;L-zb()<=z||M>=z-l?p(function(P){return A(A({},P),{},{isHiddenScrollBar:!0})}):p(function(P){return A(A({},P),{},{isHiddenScrollBar:!1})})}})},_=function(M){p(function(L){return A(A({},L),{},{scrollLeft:M/d*f||0})})};return s.useImperativeHandle(n,function(){return{setScrollLeft:_,checkScrollBarVisible:T}}),s.useEffect(function(){var R=Qc(document.body,"mouseup",O,!1),M=Qc(document.body,"mousemove",I,!1);return T(),function(){R.remove(),M.remove()}},[m,$]),s.useEffect(function(){var R=Qc(c,"scroll",T,!1),M=Qc(window,"resize",T,!1);return function(){R.remove(),M.remove()}},[c]),s.useEffect(function(){C.isHiddenScrollBar||p(function(R){var M=a.current;return M?A(A({},R),{},{scrollLeft:M.scrollLeft/M.scrollWidth*M.clientWidth}):R})},[C.isHiddenScrollBar]),d<=f||!m||C.isHiddenScrollBar?null:s.createElement("div",{style:{height:zb(),width:f,bottom:l},className:"".concat(u,"-sticky-scroll")},s.createElement("div",{onMouseDown:E,ref:g,className:V("".concat(u,"-sticky-scroll-bar"),D({},"".concat(u,"-sticky-scroll-bar-active"),$)),style:{width:"".concat(m,"px"),transform:"translate3d(".concat(C.scrollLeft,"px, 0, 0)")}}))};const JV=s.forwardRef(ZV);var n2="rc-table",eK=[],tK={};function nK(){return"No Data"}function rK(e,t){var n=A({rowKey:"key",prefixCls:n2,emptyText:nK},e),r=n.prefixCls,o=n.className,a=n.rowClassName,i=n.style,l=n.data,c=n.rowKey,u=n.scroll,d=n.tableLayout,f=n.direction,m=n.title,g=n.footer,y=n.summary,h=n.caption,C=n.id,p=n.showHeader,v=n.components,b=n.emptyText,S=n.onRow,$=n.onHeaderRow,x=n.onScroll,w=n.internalHooks,O=n.transformColumns,E=n.internalRefs,I=n.tailor,T=n.getContainerWidth,_=n.sticky,R=n.rowHoverable,M=R===void 0?!0:R,L=l||eK,z=!!L.length,P=w===pc,N=s.useCallback(function(pt,dt){return br(v,pt)||dt},[v]),k=s.useMemo(function(){return typeof c=="function"?c:function(pt){var dt=pt&&pt[c];return dt}},[c]),j=N(["body"]),B=XV(),F=Q(B,3),K=F[0],X=F[1],U=F[2],re=GV(n,L,k),Z=Q(re,6),ne=Z[0],le=Z[1],ee=Z[2],q=Z[3],te=Z[4],J=Z[5],W=u==null?void 0:u.x,Y=s.useState(0),de=Q(Y,2),oe=de[0],se=de[1],ae=VV(A(A(A({},n),ne),{},{expandable:!!ne.expandedRowRender,columnTitle:ne.columnTitle,expandedKeys:ee,getRowKey:k,onTriggerExpand:J,expandIcon:q,expandIconColumnIndex:ne.expandIconColumnIndex,direction:f,scrollWidth:P&&I&&typeof W=="number"?W:null,clientWidth:oe}),P?O:null),ie=Q(ae,4),pe=ie[0],me=ie[1],ge=ie[2],ve=ie[3],$e=ge??W,we=s.useMemo(function(){return{columns:pe,flattenColumns:me}},[pe,me]),We=s.useRef(),_e=s.useRef(),Se=s.useRef(),Ce=s.useRef();s.useImperativeHandle(t,function(){return{nativeElement:We.current,scrollTo:function(dt){var Xt;if(Se.current instanceof HTMLElement){var Rn=dt.index,Yt=dt.top,Ar=dt.key;if(Yt){var fr;(fr=Se.current)===null||fr===void 0||fr.scrollTo({top:Yt})}else{var Or,po=Ar??k(L[Rn]);(Or=Se.current.querySelector('[data-row-key="'.concat(po,'"]')))===null||Or===void 0||Or.scrollIntoView()}}else(Xt=Se.current)!==null&&Xt!==void 0&&Xt.scrollTo&&Se.current.scrollTo(dt)}}});var Oe=s.useRef(),ke=s.useState(!1),Ze=Q(ke,2),He=Ze[0],Ve=Ze[1],it=s.useState(!1),Je=Q(it,2),Ae=Je[0],lt=Je[1],ut=t2(new Map),St=Q(ut,2),st=St[0],vt=St[1],nt=Mf(me),Me=nt.map(function(pt){return st.get(pt)}),Xe=s.useMemo(function(){return Me},[Me.join("_")]),De=QV(Xe,me,f),xe=u&&Kp(u.y),ze=u&&Kp($e)||!!ne.fixed,rt=ze&&me.some(function(pt){var dt=pt.fixed;return dt}),ye=s.useRef(),Re=YV(_,r),Pe=Re.isSticky,Ge=Re.offsetHeader,ot=Re.offsetSummary,et=Re.offsetScroll,Ot=Re.stickyClassName,Be=Re.container,Ee=s.useMemo(function(){return y==null?void 0:y(L)},[y,L]),be=(xe||Pe)&&s.isValidElement(Ee)&&Ee.type===_f&&Ee.props.fixed,Ue,Ne,Te;xe&&(Ne={overflowY:"scroll",maxHeight:u.y}),ze&&(Ue={overflowX:"auto"},xe||(Ne={overflowY:"hidden"}),Te={width:$e===!0?"auto":$e,minWidth:"100%"});var Fe=s.useCallback(function(pt,dt){oc(We.current)&&vt(function(Xt){if(Xt.get(pt)!==dt){var Rn=new Map(Xt);return Rn.set(pt,dt),Rn}return Xt})},[]),ct=qV(null),xt=Q(ct,2),Ut=xt[0],gt=xt[1];function en(pt,dt){dt&&(typeof dt=="function"?dt(pt):dt.scrollLeft!==pt&&(dt.scrollLeft=pt,dt.scrollLeft!==pt&&setTimeout(function(){dt.scrollLeft=pt},0)))}var tn=Ft(function(pt){var dt=pt.currentTarget,Xt=pt.scrollLeft,Rn=f==="rtl",Yt=typeof Xt=="number"?Xt:dt.scrollLeft,Ar=dt||tK;if(!gt()||gt()===Ar){var fr;Ut(Ar),en(Yt,_e.current),en(Yt,Se.current),en(Yt,Oe.current),en(Yt,(fr=ye.current)===null||fr===void 0?void 0:fr.setScrollLeft)}var Or=dt||_e.current;if(Or){var po=Or.scrollWidth,xa=Or.clientWidth;if(po===xa){Ve(!1),lt(!1);return}Rn?(Ve(-Yt0)):(Ve(Yt>0),lt(Yt1?C-M:0,z=A(A(A({},O),u),{},{flex:"0 0 ".concat(M,"px"),width:"".concat(M,"px"),marginRight:L,pointerEvents:"auto"}),P=s.useMemo(function(){return f?_<=1:I===0||_===0||_>1},[_,I,f]);P?z.visibility="hidden":f&&(z.height=m==null?void 0:m(_));var N=P?function(){return null}:g,k={};return(_===0||I===0)&&(k.rowSpan=1,k.colSpan=1),s.createElement(oi,ce({className:V(h,d),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:i,prefixCls:t.prefixCls,key:S,record:c,index:a,renderIndex:l,dataIndex:y,render:N,shouldCellUpdate:n.shouldCellUpdate},$,{appendNode:x,additionalProps:A(A({},w),{},{style:z},k)}))}var lK=["data","index","className","rowKey","style","extra","getHeight"],sK=s.forwardRef(function(e,t){var n=e.data,r=e.index,o=e.className,a=e.rowKey,i=e.style,l=e.extra,c=e.getHeight,u=tt(e,lK),d=n.record,f=n.indent,m=n.index,g=Vn(cr,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),y=g.scrollX,h=g.flattenColumns,C=g.prefixCls,p=g.fixColumn,v=g.componentWidth,b=Vn(h0,["getComponent"]),S=b.getComponent,$=YI(d,a,r,f),x=S(["body","row"],"div"),w=S(["body","cell"],"div"),O=$.rowSupportExpand,E=$.expanded,I=$.rowProps,T=$.expandedRowRender,_=$.expandedRowClassName,R;if(O&&E){var M=T(d,r,f+1,E),L=_==null?void 0:_(d,r,f),z={};p&&(z={style:D({},"--virtual-width","".concat(v,"px"))});var P="".concat(C,"-expanded-row-cell");R=s.createElement(x,{className:V("".concat(C,"-expanded-row"),"".concat(C,"-expanded-row-level-").concat(f+1),L)},s.createElement(oi,{component:w,prefixCls:C,className:V(P,D({},"".concat(P,"-fixed"),p)),additionalProps:z},M))}var N=A(A({},i),{},{width:y});l&&(N.position="absolute",N.pointerEvents="none");var k=s.createElement(x,ce({},I,u,{"data-row-key":a,ref:O?null:t,className:V(o,"".concat(C,"-row"),I==null?void 0:I.className,D({},"".concat(C,"-row-extra"),l)),style:A(A({},N),I==null?void 0:I.style)}),h.map(function(j,B){return s.createElement(iK,{key:B,component:w,rowInfo:$,column:j,colIndex:B,indent:f,index:r,renderIndex:m,record:d,inverse:l,getHeight:c})}));return O?s.createElement("div",{ref:t},k,R):k}),$S=wl(sK),cK=s.forwardRef(function(e,t){var n=e.data,r=e.onScroll,o=Vn(cr,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),a=o.flattenColumns,i=o.onColumnResize,l=o.getRowKey,c=o.expandedKeys,u=o.prefixCls,d=o.childrenColumnName,f=o.emptyNode,m=o.scrollX,g=Vn(h0),y=g.sticky,h=g.scrollY,C=g.listItemHeight,p=g.getComponent,v=g.onScroll,b=s.useRef(),S=XI(n,d,c,l),$=s.useMemo(function(){var z=0;return a.map(function(P){var N=P.width,k=P.key;return z+=N,[k,N,z]})},[a]),x=s.useMemo(function(){return $.map(function(z){return z[2]})},[$]);s.useEffect(function(){$.forEach(function(z){var P=Q(z,2),N=P[0],k=P[1];i(N,k)})},[$]),s.useImperativeHandle(t,function(){var z={scrollTo:function(N){var k;(k=b.current)===null||k===void 0||k.scrollTo(N)}};return Object.defineProperty(z,"scrollLeft",{get:function(){var N;return((N=b.current)===null||N===void 0?void 0:N.getScrollInfo().x)||0},set:function(N){var k;(k=b.current)===null||k===void 0||k.scrollTo({left:N})}}),z});var w=function(P,N){var k,j=(k=S[N])===null||k===void 0?void 0:k.record,B=P.onCell;if(B){var F,K=B(j,N);return(F=K==null?void 0:K.rowSpan)!==null&&F!==void 0?F:1}return 1},O=function(P){var N=P.start,k=P.end,j=P.getSize,B=P.offsetY;if(k<0)return null;for(var F=a.filter(function(W){return w(W,N)===0}),K=N,X=function(Y){if(F=F.filter(function(de){return w(de,Y)===0}),!F.length)return K=Y,1},U=N;U>=0&&!X(U);U-=1);for(var re=a.filter(function(W){return w(W,k)!==1}),Z=k,ne=function(Y){if(re=re.filter(function(de){return w(de,Y)!==1}),!re.length)return Z=Math.max(Y-1,k),1},le=k;le1})&&ee.push(Y)},te=K;te<=Z;te+=1)q(te);var J=ee.map(function(W){var Y=S[W],de=l(Y.record,W),oe=function(ie){var pe=W+ie-1,me=l(S[pe].record,pe),ge=j(de,me);return ge.bottom-ge.top},se=j(de);return s.createElement($S,{key:W,data:Y,rowKey:de,index:W,style:{top:-B+se.top},extra:!0,getHeight:oe})});return J},E=s.useMemo(function(){return{columnsOffset:x}},[x]),I="".concat(u,"-tbody"),T=p(["body","wrapper"]),_=p(["body","row"],"div"),R=p(["body","cell"],"div"),M;if(S.length){var L={};y&&(L.position="sticky",L.bottom=0,at(y)==="object"&&y.offsetScroll&&(L.bottom=y.offsetScroll)),M=s.createElement(vf,{fullHeight:!1,ref:b,prefixCls:"".concat(I,"-virtual"),styles:{horizontalScrollBar:L},className:I,height:h,itemHeight:C||24,data:S,itemKey:function(P){return l(P.record)},component:T,scrollWidth:m,onVirtualScroll:function(P){var N=P.x;r({scrollLeft:N})},onScroll:v,extraRender:O},function(z,P,N){var k=l(z.record,P);return s.createElement($S,ce({data:z,rowKey:k,index:P},N))})}else M=s.createElement(_,{className:V("".concat(u,"-placeholder"))},s.createElement(oi,{component:R,prefixCls:u},f));return s.createElement(o2.Provider,{value:E},M)}),uK=wl(cK),dK=function(t,n){var r=n.ref,o=n.onScroll;return s.createElement(uK,{ref:r,data:t,onScroll:o})};function fK(e,t){var n=e.columns,r=e.scroll,o=e.sticky,a=e.prefixCls,i=a===void 0?n2:a,l=e.className,c=e.listItemHeight,u=e.components,d=e.onScroll,f=r||{},m=f.x,g=f.y;typeof m!="number"&&(m=1),typeof g!="number"&&(g=500);var y=Ft(function(p,v){return br(u,p)||v}),h=Ft(d),C=s.useMemo(function(){return{sticky:o,scrollY:g,listItemHeight:c,getComponent:y,onScroll:h}},[o,g,c,y,h]);return s.createElement(h0.Provider,{value:C},s.createElement(El,ce({},e,{className:V(l,"".concat(i,"-virtual")),scroll:A(A({},r),{},{x:m}),components:A(A({},u),{},{body:dK}),columns:n,internalHooks:pc,tailor:!0,ref:t})))}var mK=s.forwardRef(fK);function a2(e){return KI(mK,e)}a2();function gK(e){return null}function pK(e){return null}var y0=s.createContext(null),vK=function(t){for(var n=t.prefixCls,r=t.level,o=t.isStart,a=t.isEnd,i="".concat(n,"-indent-unit"),l=[],c=0;c=0&&n.splice(r,1),n}function bo(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function b0(e){return e.split("-")}function SK(e,t){var n=[],r=hr(t,e);function o(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];a.forEach(function(i){var l=i.key,c=i.children;n.push(l),o(c)})}return o(r.children),n}function xK(e){if(e.parent){var t=b0(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function $K(e){var t=b0(e.pos);return Number(t[t.length-1])===0}function OS(e,t,n,r,o,a,i,l,c,u){var d,f=e.clientX,m=e.clientY,g=e.target.getBoundingClientRect(),y=g.top,h=g.height,C=(u==="rtl"?-1:1)*(((o==null?void 0:o.x)||0)-f),p=(C-12)/r,v=c.filter(function(z){var P;return(P=l[z])===null||P===void 0||(P=P.children)===null||P===void 0?void 0:P.length}),b=hr(l,n.props.eventKey);if(m-1.5?a({dragNode:R,dropNode:M,dropPosition:1})?I=1:L=!1:a({dragNode:R,dropNode:M,dropPosition:0})?I=0:a({dragNode:R,dropNode:M,dropPosition:1})?I=1:L=!1:a({dragNode:R,dropNode:M,dropPosition:1})?I=1:L=!1,{dropPosition:I,dropLevelOffset:T,dropTargetKey:b.key,dropTargetPos:b.pos,dragOverNodeKey:E,dropContainerKey:I===0?null:((d=b.parent)===null||d===void 0?void 0:d.key)||null,dropAllowed:L}}function IS(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function Gm(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(at(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return Zt(!1,"`checkedKeys` is not an array or an object"),null;return t}function Gp(e,t){var n=new Set;function r(o){if(!n.has(o)){var a=hr(t,o);if(a){n.add(o);var i=a.parent,l=a.node;l.disabled||i&&r(i.key)}}}return(e||[]).forEach(function(o){r(o)}),ue(n)}function wK(e){const[t,n]=s.useState(null);return[s.useCallback((a,i,l)=>{const c=t??a,u=Math.min(c||0,a),d=Math.max(c||0,a),f=i.slice(u,d+1).map(y=>e(y)),m=f.some(y=>!l.has(y)),g=[];return f.forEach(y=>{m?(l.has(y)||g.push(y),l.add(y)):(l.delete(y),g.push(y))}),n(m?d:null),g},[t]),a=>{n(a)}]}const Go={},Up="SELECT_ALL",qp="SELECT_INVERT",Xp="SELECT_NONE",PS=[],i2=(e,t)=>{let n=[];return(t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&(n=[].concat(ue(n),ue(i2(e,r[e]))))}),n},EK=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:o,getCheckboxProps:a,onChange:i,onSelect:l,onSelectAll:c,onSelectInvert:u,onSelectNone:d,onSelectMultiple:f,columnWidth:m,type:g,selections:y,fixed:h,renderCell:C,hideSelectAll:p,checkStrictly:v=!0}=t||{},{prefixCls:b,data:S,pageData:$,getRecordByKey:x,getRowKey:w,expandType:O,childrenColumnName:E,locale:I,getPopupContainer:T}=e,_=Fo(),[R,M]=wK(q=>q),[L,z]=Jt(r||o||PS,{value:r}),P=s.useRef(new Map),N=s.useCallback(q=>{if(n){const te=new Map;q.forEach(J=>{let W=x(J);!W&&P.current.has(J)&&(W=P.current.get(J)),te.set(J,W)}),P.current=te}},[x,n]);s.useEffect(()=>{N(L)},[L]);const{keyEntities:k}=s.useMemo(()=>{if(v)return{keyEntities:null};let q=S;if(n){const te=new Set(S.map((W,Y)=>w(W,Y))),J=Array.from(P.current).reduce((W,Y)=>{let[de,oe]=Y;return te.has(de)?W:W.concat(oe)},[]);q=[].concat(ue(q),ue(J))}return s0(q,{externalGetKey:w,childrenPropName:E})},[S,w,v,E,n]),j=s.useMemo(()=>i2(E,$),[E,$]),B=s.useMemo(()=>{const q=new Map;return j.forEach((te,J)=>{const W=w(te,J),Y=(a?a(te):null)||{};q.set(W,Y)}),q},[j,w,a]),F=s.useCallback(q=>{var te;return!!(!((te=B.get(w(q)))===null||te===void 0)&&te.disabled)},[B,w]),[K,X]=s.useMemo(()=>{if(v)return[L||[],[]];const{checkedKeys:q,halfCheckedKeys:te}=Wi(L,!0,k,F);return[q||[],te]},[L,v,k,F]),U=s.useMemo(()=>{const q=g==="radio"?K.slice(0,1):K;return new Set(q)},[K,g]),re=s.useMemo(()=>g==="radio"?new Set:new Set(X),[X,g]);s.useEffect(()=>{t||z(PS)},[!!t]);const Z=s.useCallback((q,te)=>{let J,W;N(q),n?(J=q,W=q.map(Y=>P.current.get(Y))):(J=[],W=[],q.forEach(Y=>{const de=x(Y);de!==void 0&&(J.push(Y),W.push(de))})),z(J),i==null||i(J,W,{type:te})},[z,x,i,n]),ne=s.useCallback((q,te,J,W)=>{if(l){const Y=J.map(de=>x(de));l(x(q),te,Y,W)}Z(J,"single")},[l,x,Z]),le=s.useMemo(()=>!y||p?null:(y===!0?[Up,qp,Xp]:y).map(te=>te===Up?{key:"all",text:I.selectionAll,onSelect(){Z(S.map((J,W)=>w(J,W)).filter(J=>{const W=B.get(J);return!(W!=null&&W.disabled)||U.has(J)}),"all")}}:te===qp?{key:"invert",text:I.selectInvert,onSelect(){const J=new Set(U);$.forEach((Y,de)=>{const oe=w(Y,de),se=B.get(oe);se!=null&&se.disabled||(J.has(oe)?J.delete(oe):J.add(oe))});const W=Array.from(J);u&&(_.deprecated(!1,"onSelectInvert","onChange"),u(W)),Z(W,"invert")}}:te===Xp?{key:"none",text:I.selectNone,onSelect(){d==null||d(),Z(Array.from(U).filter(J=>{const W=B.get(J);return W==null?void 0:W.disabled}),"none")}}:te).map(te=>Object.assign(Object.assign({},te),{onSelect:function(){for(var J,W,Y=arguments.length,de=new Array(Y),oe=0;oe{var te;if(!t)return q.filter(Ce=>Ce!==Go);let J=ue(q);const W=new Set(U),Y=j.map(w).filter(Ce=>!B.get(Ce).disabled),de=Y.every(Ce=>W.has(Ce)),oe=Y.some(Ce=>W.has(Ce)),se=()=>{const Ce=[];de?Y.forEach(ke=>{W.delete(ke),Ce.push(ke)}):Y.forEach(ke=>{W.has(ke)||(W.add(ke),Ce.push(ke))});const Oe=Array.from(W);c==null||c(!de,Oe.map(ke=>x(ke)),Ce.map(ke=>x(ke))),Z(Oe,"all"),M(null)};let ae,ie;if(g!=="radio"){let Ce;if(le){const Ve={getPopupContainer:T,items:le.map((it,Je)=>{const{key:Ae,text:lt,onSelect:ut}=it;return{key:Ae??Je,onClick:()=>{ut==null||ut(Y)},label:lt}})};Ce=s.createElement("div",{className:`${b}-selection-extra`},s.createElement(vI,{menu:Ve,getPopupContainer:T},s.createElement("span",null,s.createElement(aO,null))))}const Oe=j.map((Ve,it)=>{const Je=w(Ve,it),Ae=B.get(Je)||{};return Object.assign({checked:W.has(Je)},Ae)}).filter(Ve=>{let{disabled:it}=Ve;return it}),ke=!!Oe.length&&Oe.length===j.length,Ze=ke&&Oe.every(Ve=>{let{checked:it}=Ve;return it}),He=ke&&Oe.some(Ve=>{let{checked:it}=Ve;return it});ie=s.createElement(bd,{checked:ke?Ze:!!j.length&&de,indeterminate:ke?!Ze&&He:!de&&oe,onChange:se,disabled:j.length===0||ke,"aria-label":Ce?"Custom selection":"Select all",skipGroup:!0}),ae=!p&&s.createElement("div",{className:`${b}-selection`},ie,Ce)}let pe;g==="radio"?pe=(Ce,Oe,ke)=>{const Ze=w(Oe,ke),He=W.has(Ze);return{node:s.createElement(VO,Object.assign({},B.get(Ze),{checked:He,onClick:Ve=>Ve.stopPropagation(),onChange:Ve=>{W.has(Ze)||ne(Ze,!0,[Ze],Ve.nativeEvent)}})),checked:He}}:pe=(Ce,Oe,ke)=>{var Ze;const He=w(Oe,ke),Ve=W.has(He),it=re.has(He),Je=B.get(He);let Ae;return O==="nest"?Ae=it:Ae=(Ze=Je==null?void 0:Je.indeterminate)!==null&&Ze!==void 0?Ze:it,{node:s.createElement(bd,Object.assign({},Je,{indeterminate:Ae,checked:Ve,skipGroup:!0,onClick:lt=>lt.stopPropagation(),onChange:lt=>{let{nativeEvent:ut}=lt;const{shiftKey:St}=ut,st=Y.findIndex(nt=>nt===He),vt=K.some(nt=>Y.includes(nt));if(St&&v&&vt){const nt=R(st,Y,W),Me=Array.from(W);f==null||f(!Ve,Me.map(Xe=>x(Xe)),nt.map(Xe=>x(Xe))),Z(Me,"multiple")}else{const nt=K;if(v){const Me=Ve?io(nt,He):bo(nt,He);ne(He,!Ve,Me,ut)}else{const Me=Wi([].concat(ue(nt),[He]),!0,k,F),{checkedKeys:Xe,halfCheckedKeys:De}=Me;let xe=Xe;if(Ve){const ze=new Set(Xe);ze.delete(He),xe=Wi(Array.from(ze),{checked:!1,halfCheckedKeys:De},k,F).checkedKeys}ne(He,!Ve,xe,ut)}}M(Ve?null:st)}})),checked:Ve}};const me=(Ce,Oe,ke)=>{const{node:Ze,checked:He}=pe(Ce,Oe,ke);return C?C(He,Oe,ke,Ze):Ze};if(!J.includes(Go))if(J.findIndex(Ce=>{var Oe;return((Oe=Ce[us])===null||Oe===void 0?void 0:Oe.columnType)==="EXPAND_COLUMN"})===0){const[Ce,...Oe]=J;J=[Ce,Go].concat(ue(Oe))}else J=[Go].concat(ue(J));const ge=J.indexOf(Go);J=J.filter((Ce,Oe)=>Ce!==Go||Oe===ge);const ve=J[ge-1],$e=J[ge+1];let we=h;we===void 0&&(($e==null?void 0:$e.fixed)!==void 0?we=$e.fixed:(ve==null?void 0:ve.fixed)!==void 0&&(we=ve.fixed)),we&&ve&&((te=ve[us])===null||te===void 0?void 0:te.columnType)==="EXPAND_COLUMN"&&ve.fixed===void 0&&(ve.fixed=we);const We=V(`${b}-selection-col`,{[`${b}-selection-col-with-dropdown`]:y&&g==="checkbox"}),_e=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(ie):t.columnTitle:ae,Se={fixed:we,width:m,className:`${b}-selection-column`,title:_e(),render:me,onCell:t.onCell,[us]:{className:We}};return J.map(Ce=>Ce===Go?Se:Ce)},[w,j,t,K,U,re,m,le,O,B,f,ne,F]),U]};function OK(e,t){return e._antProxy=e._antProxy||{},Object.keys(t).forEach(n=>{if(!(n in e._antProxy)){const r=e[n];e._antProxy[n]=r,e[n]=t[n]}}),e}function IK(e,t){return s.useImperativeHandle(e,()=>{const n=t(),{nativeElement:r}=n;return typeof Proxy<"u"?new Proxy(r,{get(o,a){return n[a]?n[a]:Reflect.get(o,a)}}):OK(r,n)})}function PK(e){return function(n){let{prefixCls:r,onExpand:o,record:a,expanded:i,expandable:l}=n;const c=`${r}-row-expand-icon`;return s.createElement("button",{type:"button",onClick:u=>{o(a,u),u.stopPropagation()},className:V(c,{[`${c}-spaced`]:!l,[`${c}-expanded`]:l&&i,[`${c}-collapsed`]:l&&!i}),"aria-label":i?e.collapse:e.expand,"aria-expanded":i})}}function RK(e){return(n,r)=>{const o=n.querySelector(`.${e}-container`);let a=r;if(o){const i=getComputedStyle(o),l=parseInt(i.borderLeftWidth,10),c=parseInt(i.borderRightWidth,10);a=r-l-c}return a}}function qa(e,t){return"key"in e&&e.key!==void 0&&e.key!==null?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t}function vc(e,t){return t?`${t}-${e}`:`${e}`}function zf(e,t){return typeof e=="function"?e(t):e}function NK(e,t){const n=zf(e,t);return Object.prototype.toString.call(n)==="[object Object]"?"":n}var TK={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"};const MK=TK;var _K=function(t,n){return s.createElement($t,ce({},t,{ref:n,icon:MK}))},zK=s.forwardRef(_K);const jK=zK;function LK(e){const t=s.useRef(e),n=sO();return[()=>t.current,r=>{t.current=r,n()}]}function kK(e){var t=e.dropPosition,n=e.dropLevelOffset,r=e.indent,o={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:o.top=0,o.left=-n*r;break;case 1:o.bottom=0,o.left=-n*r;break;case 0:o.bottom=0,o.left=r;break}return s.createElement("div",{style:o})}function l2(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function DK(e,t){var n=s.useState(!1),r=Q(n,2),o=r[0],a=r[1];Mt(function(){if(o)return e(),function(){t()}},[o]),Mt(function(){return a(!0),function(){a(!1)}},[])}var BK=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],s2=function(t,n){var r=t.className,o=t.style,a=t.motion,i=t.motionNodes,l=t.motionType,c=t.onMotionStart,u=t.onMotionEnd,d=t.active,f=t.treeNodeRequiredProps,m=tt(t,BK),g=s.useState(!0),y=Q(g,2),h=y[0],C=y[1],p=s.useContext(y0),v=p.prefixCls,b=i&&l!=="hide";Mt(function(){i&&b!==h&&C(b)},[i]);var S=function(){i&&c()},$=s.useRef(!1),x=function(){i&&!$.current&&($.current=!0,u())};DK(S,x);var w=function(E){b===E&&x()};return i?s.createElement(ro,ce({ref:n,visible:h},a,{motionAppear:l==="show",onVisibleChanged:w}),function(O,E){var I=O.className,T=O.style;return s.createElement("div",{ref:E,className:V("".concat(v,"-treenode-motion"),I),style:T},i.map(function(_){var R=Object.assign({},(l2(_.data),_.data)),M=_.title,L=_.key,z=_.isStart,P=_.isEnd;delete R.children;var N=ss(L,f);return s.createElement(ll,ce({},R,N,{title:M,active:d,data:_.data,key:L,isStart:z,isEnd:P}))}))}):s.createElement(ll,ce({domRef:n,className:r,style:o},m,{active:d}))};s2.displayName="MotionTreeNode";var FK=s.forwardRef(s2);function AK(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function o(a,i){var l=new Map;a.forEach(function(u){l.set(u,!0)});var c=i.filter(function(u){return!l.has(u)});return c.length===1?c[0]:null}return n ").concat(t);return t}var u2=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var o=e.expandedKeys,a=e.selectedKeys,i=e.checkedKeys,l=e.loadedKeys,c=e.loadingKeys,u=e.halfCheckedKeys,d=e.keyEntities,f=e.disabled,m=e.dragging,g=e.dragOverNodeKey,y=e.dropPosition,h=e.motion,C=e.height,p=e.itemHeight,v=e.virtual,b=e.focusable,S=e.activeItem,$=e.focused,x=e.tabIndex,w=e.onKeyDown,O=e.onFocus,E=e.onBlur,I=e.onActiveChange,T=e.onListChangeStart,_=e.onListChangeEnd,R=tt(e,HK),M=s.useRef(null),L=s.useRef(null);s.useImperativeHandle(t,function(){return{scrollTo:function(pe){M.current.scrollTo(pe)},getIndentWidth:function(){return L.current.offsetWidth}}});var z=s.useState(o),P=Q(z,2),N=P[0],k=P[1],j=s.useState(r),B=Q(j,2),F=B[0],K=B[1],X=s.useState(r),U=Q(X,2),re=U[0],Z=U[1],ne=s.useState([]),le=Q(ne,2),ee=le[0],q=le[1],te=s.useState(null),J=Q(te,2),W=J[0],Y=J[1],de=s.useRef(r);de.current=r;function oe(){var ie=de.current;K(ie),Z(ie),q([]),Y(null),_()}Mt(function(){k(o);var ie=AK(N,o);if(ie.key!==null)if(ie.add){var pe=F.findIndex(function(We){var _e=We.key;return _e===ie.key}),me=MS(RS(F,r,ie.key),v,C,p),ge=F.slice();ge.splice(pe+1,0,TS),Z(ge),q(me),Y("show")}else{var ve=r.findIndex(function(We){var _e=We.key;return _e===ie.key}),$e=MS(RS(r,F,ie.key),v,C,p),we=r.slice();we.splice(ve+1,0,TS),Z(we),q($e),Y("hide")}else F!==r&&(K(r),Z(r))},[o,r]),s.useEffect(function(){m||oe()},[m]);var se=h?re:r,ae={expandedKeys:o,selectedKeys:a,loadedKeys:l,loadingKeys:c,checkedKeys:i,halfCheckedKeys:u,dragOverNodeKey:g,dropPosition:y,keyEntities:d};return s.createElement(s.Fragment,null,$&&S&&s.createElement("span",{style:NS,"aria-live":"assertive"},KK(S)),s.createElement("div",null,s.createElement("input",{style:NS,disabled:b===!1||f,tabIndex:b!==!1?x:null,onKeyDown:w,onFocus:O,onBlur:E,value:"",onChange:VK,"aria-label":"for screen reader"})),s.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},s.createElement("div",{className:"".concat(n,"-indent")},s.createElement("div",{ref:L,className:"".concat(n,"-indent-unit")}))),s.createElement(vf,ce({},R,{data:se,itemKey:_S,height:C,fullHeight:!1,virtual:v,itemHeight:p,prefixCls:"".concat(n,"-list"),ref:M,onVisibleChange:function(pe,me){var ge=new Set(pe),ve=me.filter(function($e){return!ge.has($e)});ve.some(function($e){return _S($e)===Xa})&&oe()}}),function(ie){var pe=ie.pos,me=Object.assign({},(l2(ie.data),ie.data)),ge=ie.title,ve=ie.key,$e=ie.isStart,we=ie.isEnd,We=gc(ve,pe);delete me.key,delete me.children;var _e=ss(We,ae);return s.createElement(FK,ce({},me,_e,{title:ge,active:!!S&&ve===S.key,pos:pe,data:ie.data,isStart:$e,isEnd:we,motion:h,motionNodes:ve===Xa?ee:null,motionType:W,onMotionStart:T,onMotionEnd:oe,treeNodeRequiredProps:ae,onMouseMove:function(){I(null)}}))}))});u2.displayName="NodeList";var WK=10,C0=function(e){Bo(n,e);var t=Ja(n);function n(){var r;jn(this,n);for(var o=arguments.length,a=new Array(o),i=0;i2&&arguments[2]!==void 0?arguments[2]:!1,f=r.state,m=f.dragChildrenKeys,g=f.dropPosition,y=f.dropTargetKey,h=f.dropTargetPos,C=f.dropAllowed;if(C){var p=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),y!==null){var v=A(A({},ss(y,r.getTreeNodeRequiredProps())),{},{active:((u=r.getActiveItem())===null||u===void 0?void 0:u.key)===y,data:hr(r.state.keyEntities,y).node}),b=m.indexOf(y)!==-1;Zt(!b,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var S=b0(h),$={event:l,node:hn(v),dragNode:r.dragNode?hn(r.dragNode.props):null,dragNodesKeys:[r.dragNode.props.eventKey].concat(m),dropToGap:g!==0,dropPosition:g+Number(S[S.length-1])};d||p==null||p($),r.dragNode=null}}}),D(he(r),"cleanDragState",function(){var l=r.state.draggingNodeKey;l!==null&&r.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),r.dragStartMousePosition=null,r.currentMouseOverDroppableNodeKey=null}),D(he(r),"triggerExpandActionExpand",function(l,c){var u=r.state,d=u.expandedKeys,f=u.flattenNodes,m=c.expanded,g=c.key,y=c.isLeaf;if(!(y||l.shiftKey||l.metaKey||l.ctrlKey)){var h=f.filter(function(p){return p.key===g})[0],C=hn(A(A({},ss(g,r.getTreeNodeRequiredProps())),{},{data:h.data}));r.setExpandedKeys(m?io(d,g):bo(d,g)),r.onNodeExpand(l,C)}}),D(he(r),"onNodeClick",function(l,c){var u=r.props,d=u.onClick,f=u.expandAction;f==="click"&&r.triggerExpandActionExpand(l,c),d==null||d(l,c)}),D(he(r),"onNodeDoubleClick",function(l,c){var u=r.props,d=u.onDoubleClick,f=u.expandAction;f==="doubleClick"&&r.triggerExpandActionExpand(l,c),d==null||d(l,c)}),D(he(r),"onNodeSelect",function(l,c){var u=r.state.selectedKeys,d=r.state,f=d.keyEntities,m=d.fieldNames,g=r.props,y=g.onSelect,h=g.multiple,C=c.selected,p=c[m.key],v=!C;v?h?u=bo(u,p):u=[p]:u=io(u,p);var b=u.map(function(S){var $=hr(f,S);return $?$.node:null}).filter(function(S){return S});r.setUncontrolledState({selectedKeys:u}),y==null||y(u,{event:"select",selected:v,node:c,selectedNodes:b,nativeEvent:l.nativeEvent})}),D(he(r),"onNodeCheck",function(l,c,u){var d=r.state,f=d.keyEntities,m=d.checkedKeys,g=d.halfCheckedKeys,y=r.props,h=y.checkStrictly,C=y.onCheck,p=c.key,v,b={event:"check",node:c,checked:u,nativeEvent:l.nativeEvent};if(h){var S=u?bo(m,p):io(m,p),$=io(g,p);v={checked:S,halfChecked:$},b.checkedNodes=S.map(function(T){return hr(f,T)}).filter(function(T){return T}).map(function(T){return T.node}),r.setUncontrolledState({checkedKeys:S})}else{var x=Wi([].concat(ue(m),[p]),!0,f),w=x.checkedKeys,O=x.halfCheckedKeys;if(!u){var E=new Set(w);E.delete(p);var I=Wi(Array.from(E),{checked:!1,halfCheckedKeys:O},f);w=I.checkedKeys,O=I.halfCheckedKeys}v=w,b.checkedNodes=[],b.checkedNodesPositions=[],b.halfCheckedKeys=O,w.forEach(function(T){var _=hr(f,T);if(_){var R=_.node,M=_.pos;b.checkedNodes.push(R),b.checkedNodesPositions.push({node:R,pos:M})}}),r.setUncontrolledState({checkedKeys:w},!1,{halfCheckedKeys:O})}C==null||C(v,b)}),D(he(r),"onNodeLoad",function(l){var c=l.key,u=new Promise(function(d,f){r.setState(function(m){var g=m.loadedKeys,y=g===void 0?[]:g,h=m.loadingKeys,C=h===void 0?[]:h,p=r.props,v=p.loadData,b=p.onLoad;if(!v||y.indexOf(c)!==-1||C.indexOf(c)!==-1)return null;var S=v(l);return S.then(function(){var $=r.state.loadedKeys,x=bo($,c);b==null||b(x,{event:"load",node:l}),r.setUncontrolledState({loadedKeys:x}),r.setState(function(w){return{loadingKeys:io(w.loadingKeys,c)}}),d()}).catch(function($){if(r.setState(function(w){return{loadingKeys:io(w.loadingKeys,c)}}),r.loadingRetryTimes[c]=(r.loadingRetryTimes[c]||0)+1,r.loadingRetryTimes[c]>=WK){var x=r.state.loadedKeys;Zt(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:bo(x,c)}),d()}f($)}),{loadingKeys:bo(C,c)}})});return u.catch(function(){}),u}),D(he(r),"onNodeMouseEnter",function(l,c){var u=r.props.onMouseEnter;u==null||u({event:l,node:c})}),D(he(r),"onNodeMouseLeave",function(l,c){var u=r.props.onMouseLeave;u==null||u({event:l,node:c})}),D(he(r),"onNodeContextMenu",function(l,c){var u=r.props.onRightClick;u&&(l.preventDefault(),u({event:l,node:c}))}),D(he(r),"onFocus",function(){var l=r.props.onFocus;r.setState({focused:!0});for(var c=arguments.length,u=new Array(c),d=0;d1&&arguments[1]!==void 0?arguments[1]:!1,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var d=!1,f=!0,m={};Object.keys(l).forEach(function(g){if(g in r.props){f=!1;return}d=!0,m[g]=l[g]}),d&&(!c||f)&&r.setState(A(A({},m),u))}}),D(he(r),"scrollTo",function(l){r.listRef.current.scrollTo(l)}),r}return Ln(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var o=this.props,a=o.activeKey,i=o.itemScrollOffset,l=i===void 0?0:i;a!==void 0&&a!==this.state.activeKey&&(this.setState({activeKey:a}),a!==null&&this.scrollTo({key:a,offset:l}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var o=this.state,a=o.focused,i=o.flattenNodes,l=o.keyEntities,c=o.draggingNodeKey,u=o.activeKey,d=o.dropLevelOffset,f=o.dropContainerKey,m=o.dropTargetKey,g=o.dropPosition,y=o.dragOverNodeKey,h=o.indent,C=this.props,p=C.prefixCls,v=C.className,b=C.style,S=C.showLine,$=C.focusable,x=C.tabIndex,w=x===void 0?0:x,O=C.selectable,E=C.showIcon,I=C.icon,T=C.switcherIcon,_=C.draggable,R=C.checkable,M=C.checkStrictly,L=C.disabled,z=C.motion,P=C.loadData,N=C.filterTreeNode,k=C.height,j=C.itemHeight,B=C.virtual,F=C.titleRender,K=C.dropIndicatorRender,X=C.onContextMenu,U=C.onScroll,re=C.direction,Z=C.rootClassName,ne=C.rootStyle,le=qn(this.props,{aria:!0,data:!0}),ee;return _&&(at(_)==="object"?ee=_:typeof _=="function"?ee={nodeDraggable:_}:ee={}),s.createElement(y0.Provider,{value:{prefixCls:p,selectable:O,showIcon:E,icon:I,switcherIcon:T,draggable:ee,draggingNodeKey:c,checkable:R,checkStrictly:M,disabled:L,keyEntities:l,dropLevelOffset:d,dropContainerKey:f,dropTargetKey:m,dropPosition:g,dragOverNodeKey:y,indent:h,direction:re,dropIndicatorRender:K,loadData:P,filterTreeNode:N,titleRender:F,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},s.createElement("div",{role:"tree",className:V(p,v,Z,D(D(D({},"".concat(p,"-show-line"),S),"".concat(p,"-focused"),a),"".concat(p,"-active-focused"),u!==null)),style:ne},s.createElement(u2,ce({ref:this.listRef,prefixCls:p,style:b,data:i,disabled:L,selectable:O,checkable:!!R,motion:z,dragging:c!==null,height:k,itemHeight:j,virtual:B,focusable:$,focused:a,tabIndex:w,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:X,onScroll:U},this.getTreeNodeRequiredProps(),le))))}}],[{key:"getDerivedStateFromProps",value:function(o,a){var i=a.prevProps,l={prevProps:o};function c(x){return!i&&x in o||i&&i[x]!==o[x]}var u,d=a.fieldNames;if(c("fieldNames")&&(d=il(o.fieldNames),l.fieldNames=d),c("treeData")?u=o.treeData:c("children")&&(Zt(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),u=eI(o.children)),u){l.treeData=u;var f=s0(u,{fieldNames:d});l.keyEntities=A(D({},Xa,c2),f.keyEntities)}var m=l.keyEntities||a.keyEntities;if(c("expandedKeys")||i&&c("autoExpandParent"))l.expandedKeys=o.autoExpandParent||!i&&o.defaultExpandParent?Gp(o.expandedKeys,m):o.expandedKeys;else if(!i&&o.defaultExpandAll){var g=A({},m);delete g[Xa],l.expandedKeys=Object.keys(g).map(function(x){return g[x].key})}else!i&&o.defaultExpandedKeys&&(l.expandedKeys=o.autoExpandParent||o.defaultExpandParent?Gp(o.defaultExpandedKeys,m):o.defaultExpandedKeys);if(l.expandedKeys||delete l.expandedKeys,u||l.expandedKeys){var y=Fm(u||a.treeData,l.expandedKeys||a.expandedKeys,d);l.flattenNodes=y}if(o.selectable&&(c("selectedKeys")?l.selectedKeys=IS(o.selectedKeys,o):!i&&o.defaultSelectedKeys&&(l.selectedKeys=IS(o.defaultSelectedKeys,o))),o.checkable){var h;if(c("checkedKeys")?h=Gm(o.checkedKeys)||{}:!i&&o.defaultCheckedKeys?h=Gm(o.defaultCheckedKeys)||{}:u&&(h=Gm(o.checkedKeys)||{checkedKeys:a.checkedKeys,halfCheckedKeys:a.halfCheckedKeys}),h){var C=h,p=C.checkedKeys,v=p===void 0?[]:p,b=C.halfCheckedKeys,S=b===void 0?[]:b;if(!o.checkStrictly){var $=Wi(v,!0,m);v=$.checkedKeys,S=$.halfCheckedKeys}l.checkedKeys=v,l.halfCheckedKeys=S}}return c("loadedKeys")&&(l.loadedKeys=o.loadedKeys),l}}]),n}(s.Component);D(C0,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:kK,allowDrop:function(){return!0},expandAction:!1});D(C0,"TreeNode",ll);var GK={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"};const UK=GK;var qK=function(t,n){return s.createElement($t,ce({},t,{ref:n,icon:UK}))},XK=s.forwardRef(qK);const d2=XK;var YK={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"};const QK=YK;var ZK=function(t,n){return s.createElement($t,ce({},t,{ref:n,icon:QK}))},JK=s.forwardRef(ZK);const eW=JK;var tW={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"};const nW=tW;var rW=function(t,n){return s.createElement($t,ce({},t,{ref:n,icon:nW}))},oW=s.forwardRef(rW);const aW=oW;var iW={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"};const lW=iW;var sW=function(t,n){return s.createElement($t,ce({},t,{ref:n,icon:lW}))},cW=s.forwardRef(sW);const uW=cW,dW=new yt("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),fW=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),mW=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${H(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),gW=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:o,titleHeight:a,nodeSelectedBg:i,nodeHoverBg:l}=t,c=t.paddingXS;return{[n]:Object.assign(Object.assign({},zt(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${n}-rtl`]:{[`${n}-switcher`]:{"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},pa(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:o,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:dW,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${r}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${H(o)} 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:a,lineHeight:`${H(a)}`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${r}:hover &`]:{opacity:.45}},[`&${r}-disabled`]:{[`${n}-draggable-icon`]:{visibility:"hidden"}}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:a}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher`]:Object.assign(Object.assign({},fW(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:a,margin:0,lineHeight:`${H(a)}`,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,borderRadius:t.borderRadius,"&-noop":{cursor:"unset"},[`&:not(${n}-switcher-noop):hover`]:{backgroundColor:t.colorBgTextHover},"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(a).div(2).equal()).mul(.8).equal(),height:t.calc(a).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-checkbox`]:{top:"initial",marginInlineEnd:c,alignSelf:"flex-start",marginTop:t.marginXXS},[`${n}-node-content-wrapper, ${n}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:a,margin:0,padding:`0 ${H(t.calc(t.paddingXS).div(2).equal())}`,color:"inherit",lineHeight:`${H(a)}`,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:l},[`&${n}-node-selected`]:{backgroundColor:i},[`${n}-iconEle`]:{display:"inline-block",width:a,height:a,lineHeight:`${H(a)}`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}-node-content-wrapper`]:Object.assign({lineHeight:`${H(a)}`,userSelect:"none"},mW(e,t)),[`${r}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${t.colorPrimary}`}},"&-show-line":{[`${n}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last`]:{[`${n}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${H(t.calc(a).div(2).equal())} !important`}}}}})}},pW=e=>{const{treeCls:t,treeNodeCls:n,treeNodePadding:r,directoryNodeSelectedBg:o,directoryNodeSelectedColor:a}=e;return{[`${t}${t}-directory`]:{[n]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:r,insetInlineStart:0,transition:`background-color ${e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${e.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${t}-node-selected`]:{color:a,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:o},[`${t}-switcher`]:{color:a},[`${t}-node-content-wrapper`]:{color:a,background:"transparent"}}}}}},vW=(e,t)=>{const n=`.${e}`,r=`${n}-treenode`,o=t.calc(t.paddingXS).div(2).equal(),a=bt(t,{treeCls:n,treeNodeCls:r,treeNodePadding:o});return[gW(e,a),pW(a)]},hW=e=>{const{controlHeightSM:t}=e;return{titleHeight:t,nodeHoverBg:e.controlItemBgHover,nodeSelectedBg:e.controlItemBgActive}},yW=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},hW(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})},bW=_t("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:nI(`${n}-checkbox`,e)},vW(n,e),Rh(e)]},yW),zS=4;function CW(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:o,direction:a="ltr"}=e,i=a==="ltr"?"left":"right",l=a==="ltr"?"right":"left",c={[i]:-n*o+zS,[l]:0};switch(t){case-1:c.top=-3;break;case 1:c.bottom=-3;break;default:c.bottom=-3,c[i]=o+zS;break}return G.createElement("div",{style:c,className:`${r}-drop-indicator`})}var SW={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"};const xW=SW;var $W=function(t,n){return s.createElement($t,ce({},t,{ref:n,icon:xW}))},wW=s.forwardRef($W);const EW=wW;var OW={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"};const IW=OW;var PW=function(t,n){return s.createElement($t,ce({},t,{ref:n,icon:IW}))},RW=s.forwardRef(PW);const NW=RW;var TW={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"};const MW=TW;var _W=function(t,n){return s.createElement($t,ce({},t,{ref:n,icon:MW}))},zW=s.forwardRef(_W);const jW=zW,LW=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:o}=e,{isLeaf:a,expanded:i,loading:l}=r;if(l)return s.createElement(pl,{className:`${t}-switcher-loading-icon`});let c;if(o&&typeof o=="object"&&(c=o.showLeafIcon),a){if(!o)return null;if(typeof c!="boolean"&&c){const f=typeof c=="function"?c(r):c,m=`${t}-switcher-line-custom-icon`;return s.isValidElement(f)?Xn(f,{className:V(f.props.className||"",m)}):f}return c?s.createElement(d2,{className:`${t}-switcher-line-icon`}):s.createElement("span",{className:`${t}-switcher-leaf-line`})}const u=`${t}-switcher-icon`,d=typeof n=="function"?n(r):n;return s.isValidElement(d)?Xn(d,{className:V(d.props.className||"",u)}):d!==void 0?d:o?i?s.createElement(NW,{className:`${t}-switcher-line-icon`}):s.createElement(jW,{className:`${t}-switcher-line-icon`}):s.createElement(EW,{className:u})},kW=LW,DW=G.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:o,virtual:a,tree:i}=G.useContext(je),{prefixCls:l,className:c,showIcon:u=!1,showLine:d,switcherIcon:f,blockNode:m=!1,children:g,checkable:y=!1,selectable:h=!0,draggable:C,motion:p,style:v}=e,b=r("tree",l),S=r(),$=p??Object.assign(Object.assign({},id(S)),{motionAppear:!1}),x=Object.assign(Object.assign({},e),{checkable:y,selectable:h,showIcon:u,motion:$,blockNode:m,showLine:!!d,dropIndicatorRender:CW}),[w,O,E]=bW(b),[,I]=mn(),T=I.paddingXS/2+(((n=I.Tree)===null||n===void 0?void 0:n.titleHeight)||I.controlHeightSM),_=G.useMemo(()=>{if(!C)return!1;let M={};switch(typeof C){case"function":M.nodeDraggable=C;break;case"object":M=Object.assign({},C);break}return M.icon!==!1&&(M.icon=M.icon||G.createElement(uW,null)),M},[C]),R=M=>G.createElement(kW,{prefixCls:b,switcherIcon:f,treeNodeProps:M,showLine:d});return w(G.createElement(C0,Object.assign({itemHeight:T,ref:t,virtual:a},x,{style:Object.assign(Object.assign({},i==null?void 0:i.style),v),prefixCls:b,className:V({[`${b}-icon-hide`]:!u,[`${b}-block-node`]:m,[`${b}-unselectable`]:!h,[`${b}-rtl`]:o==="rtl"},i==null?void 0:i.className,c,O,E),direction:o,checkable:y&&G.createElement("span",{className:`${b}-checkbox-inner`}),selectable:h,switcherIcon:R,draggable:_}),g))}),f2=DW,jS=0,Um=1,LS=2;function S0(e,t,n){const{key:r,children:o}=n;function a(i){const l=i[r],c=i[o];t(l,i)!==!1&&S0(c||[],t,n)}e.forEach(a)}function BW(e){let{treeData:t,expandedKeys:n,startKey:r,endKey:o,fieldNames:a}=e;const i=[];let l=jS;if(r&&r===o)return[r];if(!r||!o)return[];function c(u){return u===r||u===o}return S0(t,u=>{if(l===LS)return!1;if(c(u)){if(i.push(u),l===jS)l=Um;else if(l===Um)return l=LS,!1}else l===Um&&i.push(u);return n.includes(u)},il(a)),i}function qm(e,t,n){const r=ue(t),o=[];return S0(e,(a,i)=>{const l=r.indexOf(a);return l!==-1&&(o.push(i),r.splice(l,1)),!!r.length},il(n)),o}var kS=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:o}=e,a=kS(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const i=s.useRef(),l=s.useRef(),c=()=>{const{keyEntities:O}=s0(DS(a));let E;return n?E=Object.keys(O):r?E=Gp(a.expandedKeys||o||[],O):E=a.expandedKeys||o||[],E},[u,d]=s.useState(a.selectedKeys||a.defaultSelectedKeys||[]),[f,m]=s.useState(()=>c());s.useEffect(()=>{"selectedKeys"in a&&d(a.selectedKeys)},[a.selectedKeys]),s.useEffect(()=>{"expandedKeys"in a&&m(a.expandedKeys)},[a.expandedKeys]);const g=(O,E)=>{var I;return"expandedKeys"in a||m(O),(I=a.onExpand)===null||I===void 0?void 0:I.call(a,O,E)},y=(O,E)=>{var I;const{multiple:T,fieldNames:_}=a,{node:R,nativeEvent:M}=E,{key:L=""}=R,z=DS(a),P=Object.assign(Object.assign({},E),{selected:!0}),N=(M==null?void 0:M.ctrlKey)||(M==null?void 0:M.metaKey),k=M==null?void 0:M.shiftKey;let j;T&&N?(j=O,i.current=L,l.current=j,P.selectedNodes=qm(z,j,_)):T&&k?(j=Array.from(new Set([].concat(ue(l.current||[]),ue(BW({treeData:z,expandedKeys:f,startKey:L,endKey:i.current,fieldNames:_}))))),P.selectedNodes=qm(z,j,_)):(j=[L],i.current=L,l.current=j,P.selectedNodes=qm(z,j,_)),(I=a.onSelect)===null||I===void 0||I.call(a,j,P),"selectedKeys"in a||d(j)},{getPrefixCls:h,direction:C}=s.useContext(je),{prefixCls:p,className:v,showIcon:b=!0,expandAction:S="click"}=a,$=kS(a,["prefixCls","className","showIcon","expandAction"]),x=h("tree",p),w=V(`${x}-directory`,{[`${x}-directory-rtl`]:C==="rtl"},v);return s.createElement(f2,Object.assign({icon:FW,ref:t,blockNode:!0},$,{showIcon:b,expandAction:S,prefixCls:x,className:w,expandedKeys:f,selectedKeys:u,onSelect:y,onExpand:g}))},HW=s.forwardRef(AW),VW=HW,x0=f2;x0.DirectoryTree=VW;x0.TreeNode=ll;const KW=x0;function BS(e){let{value:t,onChange:n,filterSearch:r,tablePrefixCls:o,locale:a}=e;return r?s.createElement("div",{className:`${o}-filter-dropdown-search`},s.createElement(sH,{prefix:s.createElement(Vh,null),placeholder:a.filterSearchPlaceholder,onChange:n,value:t,htmlSize:1,className:`${o}-filter-dropdown-search-input`})):null}const WW=e=>{const{keyCode:t}=e;t===fe.ENTER&&e.stopPropagation()},GW=s.forwardRef((e,t)=>s.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:WW,ref:t},e.children)),UW=GW;function Gi(e){let t=[];return(e||[]).forEach(n=>{let{value:r,children:o}=n;t.push(r),o&&(t=[].concat(ue(t),ue(Gi(o))))}),t}function qW(e){return e.some(t=>{let{children:n}=t;return n})}function m2(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function g2(e){let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:o,searchValue:a,filterSearch:i}=e;return t.map((l,c)=>{const u=String(l.value);if(l.children)return{key:u||c,label:l.text,popupClassName:`${n}-dropdown-submenu`,children:g2({filters:l.children,prefixCls:n,filteredKeys:r,filterMultiple:o,searchValue:a,filterSearch:i})};const d=o?bd:VO,f={key:l.value!==void 0?u:c,label:s.createElement(s.Fragment,null,s.createElement(d,{checked:r.includes(u)}),s.createElement("span",null,l.text))};return a.trim()?typeof i=="function"?i(a,l)?f:null:m2(a,l.text)?f:null:f})}function Xm(e){return e||[]}function XW(e){var t,n;const{tablePrefixCls:r,prefixCls:o,column:a,dropdownPrefixCls:i,columnKey:l,filterOnClose:c,filterMultiple:u,filterMode:d="menu",filterSearch:f=!1,filterState:m,triggerFilter:g,locale:y,children:h,getPopupContainer:C,rootClassName:p}=e,{filterDropdownOpen:v,onFilterDropdownOpenChange:b,filterResetToDefaultFilteredValue:S,defaultFilteredValue:$,filterDropdownVisible:x,onFilterDropdownVisibleChange:w}=a,[O,E]=s.useState(!1),I=!!(m&&(!((t=m.filteredKeys)===null||t===void 0)&&t.length||m.forceFiltered)),T=oe=>{E(oe),b==null||b(oe),w==null||w(oe)},_=(n=v??x)!==null&&n!==void 0?n:O,R=m==null?void 0:m.filteredKeys,[M,L]=LK(Xm(R)),z=oe=>{let{selectedKeys:se}=oe;L(se)},P=(oe,se)=>{let{node:ae,checked:ie}=se;z(u?{selectedKeys:oe}:{selectedKeys:ie&&ae.key?[ae.key]:[]})};s.useEffect(()=>{O&&z({selectedKeys:Xm(R)})},[R]);const[N,k]=s.useState([]),j=oe=>{k(oe)},[B,F]=s.useState(""),K=oe=>{const{value:se}=oe.target;F(se)};s.useEffect(()=>{O||F("")},[O]);const X=oe=>{const se=oe&&oe.length?oe:null;if(se===null&&(!m||!m.filteredKeys)||mo(se,m==null?void 0:m.filteredKeys,!0))return null;g({column:a,key:l,filteredKeys:se})},U=()=>{T(!1),X(M())},re=function(){let{confirm:oe,closeDropdown:se}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};oe&&X([]),se&&T(!1),F(""),L(S?($||[]).map(ae=>String(ae)):[])},Z=function(){let{closeDropdown:oe}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};oe&&T(!1),X(M())},ne=(oe,se)=>{se.source==="trigger"&&(oe&&R!==void 0&&L(Xm(R)),T(oe),!oe&&!a.filterDropdown&&c&&U())},le=V({[`${i}-menu-without-submenu`]:!qW(a.filters||[])}),ee=oe=>{if(oe.target.checked){const se=Gi(a==null?void 0:a.filters).map(ae=>String(ae));L(se)}else L([])},q=oe=>{let{filters:se}=oe;return(se||[]).map((ae,ie)=>{const pe=String(ae.value),me={title:ae.text,key:ae.value!==void 0?pe:String(ie)};return ae.children&&(me.children=q({filters:ae.children})),me})},te=oe=>{var se;return Object.assign(Object.assign({},oe),{text:oe.title,value:oe.key,children:((se=oe.children)===null||se===void 0?void 0:se.map(ae=>te(ae)))||[]})};let J;if(typeof a.filterDropdown=="function")J=a.filterDropdown({prefixCls:`${i}-custom`,setSelectedKeys:oe=>z({selectedKeys:oe}),selectedKeys:M(),confirm:Z,clearFilters:re,filters:a.filters,visible:_,close:()=>{T(!1)}});else if(a.filterDropdown)J=a.filterDropdown;else{const oe=M()||[],se=()=>{const ie=s.createElement(Ra,{image:Ra.PRESENTED_IMAGE_SIMPLE,description:y.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}});if((a.filters||[]).length===0)return ie;if(d==="tree")return s.createElement(s.Fragment,null,s.createElement(BS,{filterSearch:f,value:B,onChange:K,tablePrefixCls:r,locale:y}),s.createElement("div",{className:`${r}-filter-dropdown-tree`},u?s.createElement(bd,{checked:oe.length===Gi(a.filters).length,indeterminate:oe.length>0&&oe.lengthtypeof f=="function"?f(B,te(ge)):m2(B,ge.title):void 0})));const pe=g2({filters:a.filters||[],filterSearch:f,prefixCls:o,filteredKeys:M(),filterMultiple:u,searchValue:B}),me=pe.every(ge=>ge===null);return s.createElement(s.Fragment,null,s.createElement(BS,{filterSearch:f,value:B,onChange:K,tablePrefixCls:r,locale:y}),me?ie:s.createElement(kO,{selectable:!0,multiple:u,prefixCls:`${i}-menu`,className:le,onSelect:z,onDeselect:z,selectedKeys:oe,getPopupContainer:C,openKeys:N,onOpenChange:j,items:pe}))},ae=()=>S?mo(($||[]).map(ie=>String(ie)),oe,!0):oe.length===0;J=s.createElement(s.Fragment,null,se(),s.createElement("div",{className:`${o}-dropdown-btns`},s.createElement(Lo,{type:"link",size:"small",disabled:ae(),onClick:()=>re()},y.filterReset),s.createElement(Lo,{type:"primary",size:"small",onClick:U},y.filterConfirm)))}a.filterDropdown&&(J=s.createElement(LO,{selectable:void 0},J));const W=()=>s.createElement(UW,{className:`${o}-dropdown`},J);let Y;typeof a.filterIcon=="function"?Y=a.filterIcon(I):a.filterIcon?Y=a.filterIcon:Y=s.createElement(jK,null);const{direction:de}=s.useContext(je);return s.createElement("div",{className:`${o}-column`},s.createElement("span",{className:`${r}-column-title`},h),s.createElement(vI,{dropdownRender:W,trigger:["click"],open:_,onOpenChange:ne,getPopupContainer:C,placement:de==="rtl"?"bottomLeft":"bottomRight",rootClassName:p},s.createElement("span",{role:"button",tabIndex:-1,className:V(`${o}-trigger`,{active:I}),onClick:oe=>{oe.stopPropagation()}},Y)))}function Qp(e,t,n){let r=[];return(e||[]).forEach((o,a)=>{var i;const l=vc(a,n);if(o.filters||"filterDropdown"in o||"onFilter"in o)if("filteredValue"in o){let c=o.filteredValue;"filterDropdown"in o||(c=(i=c==null?void 0:c.map(String))!==null&&i!==void 0?i:c),r.push({column:o,key:qa(o,l),filteredKeys:c,forceFiltered:o.filtered})}else r.push({column:o,key:qa(o,l),filteredKeys:t&&o.defaultFilteredValue?o.defaultFilteredValue:void 0,forceFiltered:o.filtered});"children"in o&&(r=[].concat(ue(r),ue(Qp(o.children,t,l))))}),r}function p2(e,t,n,r,o,a,i,l,c){return n.map((u,d)=>{const f=vc(d,l),{filterOnClose:m=!0,filterMultiple:g=!0,filterMode:y,filterSearch:h}=u;let C=u;if(C.filters||C.filterDropdown){const p=qa(C,f),v=r.find(b=>{let{key:S}=b;return p===S});C=Object.assign(Object.assign({},C),{title:b=>s.createElement(XW,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:C,columnKey:p,filterState:v,filterOnClose:m,filterMultiple:g,filterMode:y,filterSearch:h,triggerFilter:a,locale:o,getPopupContainer:i,rootClassName:c},zf(u.title,b))})}return"children"in C&&(C=Object.assign(Object.assign({},C),{children:p2(e,t,C.children,r,o,a,i,f,c)})),C})}function FS(e){const t={};return e.forEach(n=>{let{key:r,filteredKeys:o,column:a}=n;const i=r,{filters:l,filterDropdown:c}=a;if(c)t[i]=o||null;else if(Array.isArray(o)){const u=Gi(l);t[i]=u.filter(d=>o.includes(String(d)))}else t[i]=null}),t}function Zp(e,t,n){return t.reduce((r,o)=>{const{column:{onFilter:a,filters:i},filteredKeys:l}=o;return a&&l&&l.length?r.map(c=>Object.assign({},c)).filter(c=>l.some(u=>{const d=Gi(i),f=d.findIndex(g=>String(g)===String(u)),m=f!==-1?d[f]:u;return c[n]&&(c[n]=Zp(c[n],t,n)),a(m,c)})):r},e)}const v2=e=>e.flatMap(t=>"children"in t?[t].concat(ue(v2(t.children||[]))):[t]);function YW(e){let{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:o,getPopupContainer:a,locale:i,rootClassName:l}=e;Fo();const c=s.useMemo(()=>v2(r||[]),[r]),[u,d]=s.useState(()=>Qp(c,!0)),f=s.useMemo(()=>{const h=Qp(c,!1);if(h.length===0)return h;let C=!0;if(h.forEach(p=>{let{filteredKeys:v}=p;v!==void 0&&(C=!1)}),C){const p=(c||[]).map((v,b)=>qa(v,vc(b)));return u.filter(v=>{let{key:b}=v;return p.includes(b)}).map(v=>{const b=c[p.findIndex(S=>S===v.key)];return Object.assign(Object.assign({},v),{column:Object.assign(Object.assign({},v.column),b),forceFiltered:b.filtered})})}return h},[c,u]),m=s.useMemo(()=>FS(f),[f]),g=h=>{const C=f.filter(p=>{let{key:v}=p;return v!==h.key});C.push(h),d(C),o(FS(C),C)};return[h=>p2(t,n,h,f,i,g,a,void 0,l),f,m]}function QW(e,t,n){const r=s.useRef({});function o(a){if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let l=function(c){c.forEach((u,d)=>{const f=n(u,d);i.set(f,u),u&&typeof u=="object"&&t in u&&l(u[t]||[])})};const i=new Map;l(e),r.current={data:e,childrenColumnName:t,kvMap:i,getRowKey:n}}return r.current.kvMap.get(a)}return[o]}var ZW=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const a=e[o];typeof a!="function"&&(n[o]=a)}),n}function eG(e,t,n){const r=n&&typeof n=="object"?n:{},{total:o=0}=r,a=ZW(r,["total"]),[i,l]=s.useState(()=>({current:"defaultCurrent"in a?a.defaultCurrent:1,pageSize:"defaultPageSize"in a?a.defaultPageSize:h2})),c=H7(i,a,{total:o>0?o:e}),u=Math.ceil((o||e)/c.pageSize);c.current>u&&(c.current=u||1);const d=(m,g)=>{l({current:m??1,pageSize:g||c.pageSize})},f=(m,g)=>{var y;n&&((y=n.onChange)===null||y===void 0||y.call(n,m,g)),d(m,g),t(m,g||(c==null?void 0:c.pageSize))};return n===!1?[{},()=>{}]:[Object.assign(Object.assign({},c),{onChange:f}),d]}var tG={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"};const nG=tG;var rG=function(t,n){return s.createElement($t,ce({},t,{ref:n,icon:nG}))},oG=s.forwardRef(rG);const aG=oG;var iG={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"};const lG=iG;var sG=function(t,n){return s.createElement($t,ce({},t,{ref:n,icon:lG}))},cG=s.forwardRef(sG);const uG=cG,Ou="ascend",Ym="descend";function wd(e){return typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1}function AS(e){return typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1}function dG(e,t){return t?e[e.indexOf(t)+1]:e[0]}function Jp(e,t,n){let r=[];function o(a,i){r.push({column:a,key:qa(a,i),multiplePriority:wd(a),sortOrder:a.sortOrder})}return(e||[]).forEach((a,i)=>{const l=vc(i,n);a.children?("sortOrder"in a&&o(a,l),r=[].concat(ue(r),ue(Jp(a.children,t,l)))):a.sorter&&("sortOrder"in a?o(a,l):t&&a.defaultSortOrder&&r.push({column:a,key:qa(a,l),multiplePriority:wd(a),sortOrder:a.defaultSortOrder}))}),r}function y2(e,t,n,r,o,a,i,l){return(t||[]).map((c,u)=>{const d=vc(u,l);let f=c;if(f.sorter){const m=f.sortDirections||o,g=f.showSorterTooltip===void 0?i:f.showSorterTooltip,y=qa(f,d),h=n.find(O=>{let{key:E}=O;return E===y}),C=h?h.sortOrder:null,p=dG(m,C);let v;if(c.sortIcon)v=c.sortIcon({sortOrder:C});else{const O=m.includes(Ou)&&s.createElement(uG,{className:V(`${e}-column-sorter-up`,{active:C===Ou})}),E=m.includes(Ym)&&s.createElement(aG,{className:V(`${e}-column-sorter-down`,{active:C===Ym})});v=s.createElement("span",{className:V(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(O&&E)})},s.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},O,E))}const{cancelSort:b,triggerAsc:S,triggerDesc:$}=a||{};let x=b;p===Ym?x=$:p===Ou&&(x=S);const w=typeof g=="object"?Object.assign({title:x},g):{title:x};f=Object.assign(Object.assign({},f),{className:V(f.className,{[`${e}-column-sort`]:C}),title:O=>{const E=`${e}-column-sorters`,I=s.createElement("span",{className:`${e}-column-title`},zf(c.title,O)),T=s.createElement("div",{className:E},I,v);return g?typeof g!="boolean"&&(g==null?void 0:g.target)==="sorter-icon"?s.createElement("div",{className:`${E} ${e}-column-sorters-tooltip-target-sorter`},I,s.createElement(As,Object.assign({},w),v)):s.createElement(As,Object.assign({},w),T):T},onHeaderCell:O=>{const E=c.onHeaderCell&&c.onHeaderCell(O)||{},I=E.onClick,T=E.onKeyDown;E.onClick=M=>{r({column:c,key:y,sortOrder:p,multiplePriority:wd(c)}),I==null||I(M)},E.onKeyDown=M=>{M.keyCode===fe.ENTER&&(r({column:c,key:y,sortOrder:p,multiplePriority:wd(c)}),T==null||T(M))};const _=NK(c.title,{}),R=_==null?void 0:_.toString();return C?E["aria-sort"]=C==="ascend"?"ascending":"descending":E["aria-label"]=R||"",E.className=V(E.className,`${e}-column-has-sorters`),E.tabIndex=0,c.ellipsis&&(E.title=(_??"").toString()),E}})}return"children"in f&&(f=Object.assign(Object.assign({},f),{children:y2(e,f.children,n,r,o,a,i,d)})),f})}const HS=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},VS=e=>{const t=e.filter(n=>{let{sortOrder:r}=n;return r}).map(HS);if(t.length===0&&e.length){const n=e.length-1;return Object.assign(Object.assign({},HS(e[n])),{column:void 0})}return t.length<=1?t[0]||{}:t};function ev(e,t,n){const r=t.slice().sort((i,l)=>l.multiplePriority-i.multiplePriority),o=e.slice(),a=r.filter(i=>{let{column:{sorter:l},sortOrder:c}=i;return AS(l)&&c});return a.length?o.sort((i,l)=>{for(let c=0;c{const l=i[n];return l?Object.assign(Object.assign({},i),{[n]:ev(l,t,n)}):i}):o}function fG(e){let{prefixCls:t,mergedColumns:n,onSorterChange:r,sortDirections:o,tableLocale:a,showSorterTooltip:i}=e;const[l,c]=s.useState(Jp(n,!0)),u=s.useMemo(()=>{let y=!0;const h=Jp(n,!1);if(!h.length)return l;const C=[];function p(b){y?C.push(b):C.push(Object.assign(Object.assign({},b),{sortOrder:null}))}let v=null;return h.forEach(b=>{v===null?(p(b),b.sortOrder&&(b.multiplePriority===!1?y=!1:v=!0)):(v&&b.multiplePriority!==!1||(y=!1),p(b))}),C},[n,l]),d=s.useMemo(()=>{const y=u.map(h=>{let{column:C,sortOrder:p}=h;return{column:C,order:p}});return{sortColumns:y,sortColumn:y[0]&&y[0].column,sortOrder:y[0]&&y[0].order}},[u]),f=y=>{let h;y.multiplePriority===!1||!u.length||u[0].multiplePriority===!1?h=[y]:h=[].concat(ue(u.filter(C=>{let{key:p}=C;return p!==y.key})),[y]),c(h),r(VS(h),h)};return[y=>y2(t,y,u,f,o,a,i),u,d,()=>VS(u)]}function b2(e,t){return e.map(n=>{const r=Object.assign({},n);return r.title=zf(n.title,t),"children"in r&&(r.children=b2(r.children,t)),r})}function mG(e){return[s.useCallback(n=>b2(n,e),[e])]}const gG=r2((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),pG=a2((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),vG=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:o,tableHeaderBg:a,tablePaddingVertical:i,tablePaddingHorizontal:l,calc:c}=e,u=`${H(n)} ${r} ${o}`,d=(f,m,g)=>({[`&${t}-${f}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${H(c(m).mul(-1).equal())} ${H(c(c(g).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:u,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:u,borderTop:u,[` > ${t}-content, > ${t}-header, @@ -337,10 +337,10 @@ html body { `]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:u},"> thead":{"> tr:not(:last-child) > th":{borderBottom:u},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:u}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${H(c(i).mul(-1).equal())} ${H(c(c(l).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:u,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[` > tr${t}-expanded-row, > tr${t}-placeholder - `]:{"> th, > td":{borderInlineEnd:0}}}}}},d("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),d("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:u,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${H(n)} 0 ${H(n)} ${a}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:u}}}},cG=sG,uG=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},ga),{wordBreak:"keep-all",[` + `]:{"> th, > td":{borderInlineEnd:0}}}}}},d("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),d("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:u,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${H(n)} 0 ${H(n)} ${a}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:u}}}},hG=vG,yG=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},ga),{wordBreak:"keep-all",[` &${t}-cell-fix-left-last, &${t}-cell-fix-right-first - `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},dG=uG,fG=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},mG=fG,gG=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:o,paddingXS:a,lineType:i,tableBorderColor:l,tableExpandIconBg:c,tableExpandColumnWidth:u,borderRadius:d,tablePaddingVertical:f,tablePaddingHorizontal:m,tableExpandedRowBg:g,paddingXXS:y,expandIconMarginTop:h,expandIconSize:C,expandIconHalfInner:p,expandIconScale:v,calc:b}=e,S=`${H(o)} ${i} ${l}`,$=b(y).sub(o).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:u},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},zM(e)),{position:"relative",float:"left",boxSizing:"border-box",width:C,height:C,padding:0,color:"inherit",lineHeight:H(C),background:c,border:S,borderRadius:d,transform:`scale(${v})`,transition:`all ${r}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:p,insetInlineEnd:$,insetInlineStart:$,height:o},"&::after":{top:$,bottom:$,insetInlineStart:p,width:o,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:h,marginInlineEnd:a},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:g}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${H(b(f).mul(-1).equal())} ${H(b(m).mul(-1).equal())}`,padding:`${H(f)} ${H(m)}`}}}},pG=gG,vG=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:o,tableFilterDropdownSearchWidth:a,paddingXXS:i,paddingXS:l,colorText:c,lineWidth:u,lineType:d,tableBorderColor:f,headerIconColor:m,fontSizeSM:g,tablePaddingHorizontal:y,borderRadius:h,motionDurationSlow:C,colorTextDescription:p,colorPrimary:v,tableHeaderFilterActiveBg:b,colorTextDisabled:S,tableFilterDropdownBg:$,tableFilterDropdownHeight:x,controlItemBgHover:w,controlItemBgActive:O,boxShadowSecondary:E,filterDropdownMenuBg:I,calc:T}=e,_=`${n}-dropdown`,R=`${t}-filter-dropdown`,M=`${n}-tree`,L=`${H(u)} ${d} ${f}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:T(i).mul(-1).equal(),marginInline:`${H(i)} ${H(T(y).div(2).mul(-1).equal())}`,padding:`0 ${H(i)}`,color:m,fontSize:g,borderRadius:h,cursor:"pointer",transition:`all ${C}`,"&:hover":{color:p,background:b},"&.active":{color:v}}}},{[`${n}-dropdown`]:{[R]:Object.assign(Object.assign({},zt(e)),{minWidth:o,backgroundColor:$,borderRadius:h,boxShadow:E,overflow:"hidden",[`${_}-menu`]:{maxHeight:x,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:I,"&:empty::after":{display:"block",padding:`${H(l)} 0`,color:S,fontSize:g,textAlign:"center",content:'"Not Found"'}},[`${R}-tree`]:{paddingBlock:`${H(l)} 0`,paddingInline:l,[M]:{padding:0},[`${M}-treenode ${M}-node-content-wrapper:hover`]:{backgroundColor:w},[`${M}-treenode-checkbox-checked ${M}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:O}}},[`${R}-search`]:{padding:l,borderBottom:L,"&-input":{input:{minWidth:a},[r]:{color:S}}},[`${R}-checkall`]:{width:"100%",marginBottom:i,marginInlineStart:i},[`${R}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${H(T(l).sub(u).equal())} ${H(l)}`,overflow:"hidden",borderTop:L}})}},{[`${n}-dropdown ${R}, ${R}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:l,color:c},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},hG=vG,yG=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:o,zIndexTableFixed:a,tableBg:i,zIndexTableSticky:l,calc:c}=e,u=r;return{[`${t}-wrapper`]:{[` + `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},bG=yG,CG=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},SG=CG,xG=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:o,paddingXS:a,lineType:i,tableBorderColor:l,tableExpandIconBg:c,tableExpandColumnWidth:u,borderRadius:d,tablePaddingVertical:f,tablePaddingHorizontal:m,tableExpandedRowBg:g,paddingXXS:y,expandIconMarginTop:h,expandIconSize:C,expandIconHalfInner:p,expandIconScale:v,calc:b}=e,S=`${H(o)} ${i} ${l}`,$=b(y).sub(o).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:u},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},zM(e)),{position:"relative",float:"left",boxSizing:"border-box",width:C,height:C,padding:0,color:"inherit",lineHeight:H(C),background:c,border:S,borderRadius:d,transform:`scale(${v})`,transition:`all ${r}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:p,insetInlineEnd:$,insetInlineStart:$,height:o},"&::after":{top:$,bottom:$,insetInlineStart:p,width:o,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:h,marginInlineEnd:a},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:g}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${H(b(f).mul(-1).equal())} ${H(b(m).mul(-1).equal())}`,padding:`${H(f)} ${H(m)}`}}}},$G=xG,wG=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:o,tableFilterDropdownSearchWidth:a,paddingXXS:i,paddingXS:l,colorText:c,lineWidth:u,lineType:d,tableBorderColor:f,headerIconColor:m,fontSizeSM:g,tablePaddingHorizontal:y,borderRadius:h,motionDurationSlow:C,colorTextDescription:p,colorPrimary:v,tableHeaderFilterActiveBg:b,colorTextDisabled:S,tableFilterDropdownBg:$,tableFilterDropdownHeight:x,controlItemBgHover:w,controlItemBgActive:O,boxShadowSecondary:E,filterDropdownMenuBg:I,calc:T}=e,_=`${n}-dropdown`,R=`${t}-filter-dropdown`,M=`${n}-tree`,L=`${H(u)} ${d} ${f}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:T(i).mul(-1).equal(),marginInline:`${H(i)} ${H(T(y).div(2).mul(-1).equal())}`,padding:`0 ${H(i)}`,color:m,fontSize:g,borderRadius:h,cursor:"pointer",transition:`all ${C}`,"&:hover":{color:p,background:b},"&.active":{color:v}}}},{[`${n}-dropdown`]:{[R]:Object.assign(Object.assign({},zt(e)),{minWidth:o,backgroundColor:$,borderRadius:h,boxShadow:E,overflow:"hidden",[`${_}-menu`]:{maxHeight:x,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:I,"&:empty::after":{display:"block",padding:`${H(l)} 0`,color:S,fontSize:g,textAlign:"center",content:'"Not Found"'}},[`${R}-tree`]:{paddingBlock:`${H(l)} 0`,paddingInline:l,[M]:{padding:0},[`${M}-treenode ${M}-node-content-wrapper:hover`]:{backgroundColor:w},[`${M}-treenode-checkbox-checked ${M}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:O}}},[`${R}-search`]:{padding:l,borderBottom:L,"&-input":{input:{minWidth:a},[r]:{color:S}}},[`${R}-checkall`]:{width:"100%",marginBottom:i,marginInlineStart:i},[`${R}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${H(T(l).sub(u).equal())} ${H(l)}`,overflow:"hidden",borderTop:L}})}},{[`${n}-dropdown ${R}, ${R}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:l,color:c},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},EG=wG,OG=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:o,zIndexTableFixed:a,tableBg:i,zIndexTableSticky:l,calc:c}=e,u=r;return{[`${t}-wrapper`]:{[` ${t}-cell-fix-left, ${t}-cell-fix-right `]:{position:"sticky !important",zIndex:a,background:i},[` @@ -360,11 +360,11 @@ html body { ${t}-cell-fix-left-last::after, ${t}-cell-fix-right-first::after, ${t}-cell-fix-right-last::after - `]:{boxShadow:"none"}}}}},bG=yG,CG=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${H(r)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},SG=CG,xG=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${H(n)} ${H(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${H(n)} ${H(n)}`}}}}},$G=xG,wG=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},EG=wG,OG=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:o,padding:a,paddingXS:i,headerIconColor:l,headerIconHoverColor:c,tableSelectionColumnWidth:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:f,tableRowHoverBg:m,tablePaddingHorizontal:g,calc:y}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:u,[`&${t}-selection-col-with-dropdown`]:{width:y(u).add(o).add(y(a).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:y(u).add(y(i).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:y(u).add(o).add(y(a).div(4)).add(y(i).mul(2)).equal()}},[` + `]:{boxShadow:"none"}}}}},IG=OG,PG=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${H(r)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},RG=PG,NG=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${H(n)} ${H(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${H(n)} ${H(n)}`}}}}},TG=NG,MG=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},_G=MG,zG=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:o,padding:a,paddingXS:i,headerIconColor:l,headerIconHoverColor:c,tableSelectionColumnWidth:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:f,tableRowHoverBg:m,tablePaddingHorizontal:g,calc:y}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:u,[`&${t}-selection-col-with-dropdown`]:{width:y(u).add(o).add(y(a).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:y(u).add(y(i).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:y(u).add(o).add(y(a).div(4)).add(y(i).mul(2)).equal()}},[` table tr th${t}-selection-column, table tr td${t}-selection-column, ${t}-selection-column - `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:e.zIndexTableFixed+1},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:H(y(g).div(4).equal()),[r]:{color:l,fontSize:o,verticalAlign:"baseline","&:hover":{color:c}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:d,"&-row-hover":{background:f}}},[`> ${t}-cell-row-hover`]:{background:m}}}}}},IG=OG,PG=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,o=(a,i,l,c)=>({[`${t}${t}-${a}`]:{fontSize:c,[` + `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:e.zIndexTableFixed+1},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:H(y(g).div(4).equal()),[r]:{color:l,fontSize:o,verticalAlign:"baseline","&:hover":{color:c}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:d,"&-row-hover":{background:f}}},[`> ${t}-cell-row-hover`]:{background:m}}}}}},jG=zG,LG=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,o=(a,i,l,c)=>({[`${t}${t}-${a}`]:{fontSize:c,[` ${t}-title, ${t}-footer, ${t}-cell, @@ -373,10 +373,10 @@ html body { ${t}-tbody > tr > td, tfoot > tr > th, tfoot > tr > td - `]:{padding:`${H(i)} ${H(l)}`},[`${t}-filter-trigger`]:{marginInlineEnd:H(r(l).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${H(r(i).mul(-1).equal())} ${H(r(l).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:H(r(i).mul(-1).equal()),marginInline:`${H(r(n).sub(l).equal())} ${H(r(l).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:H(r(l).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},o("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),o("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},RG=PG,NG=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:o,headerIconHoverColor:a}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[` + `]:{padding:`${H(i)} ${H(l)}`},[`${t}-filter-trigger`]:{marginInlineEnd:H(r(l).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${H(r(i).mul(-1).equal())} ${H(r(l).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:H(r(i).mul(-1).equal()),marginInline:`${H(r(n).sub(l).equal())} ${H(r(l).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:H(r(l).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},o("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),o("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},kG=LG,DG=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:o,headerIconHoverColor:a}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[` &${t}-cell-fix-left:hover, &${t}-cell-fix-right:hover - `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:n,color:o,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:a}}}},TG=NG,MG=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:o,tableScrollThumbSize:a,tableScrollBg:i,zIndexTableSticky:l,stickyScrollBarBorderRadius:c,lineWidth:u,lineType:d,tableBorderColor:f}=e,m=`${H(u)} ${d} ${f}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:l,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${H(a)} !important`,zIndex:l,display:"flex",alignItems:"center",background:i,borderTop:m,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:a,backgroundColor:r,borderRadius:c,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:o}}}}}}},_G=MG,zG=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:o}=e,a=`${H(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:a}}},[`div${t}-summary`]:{boxShadow:`0 ${H(o(n).mul(-1).equal())} 0 ${r}`}}}},KS=zG,jG=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:o,tableBorderColor:a,calc:i}=e,l=`${H(r)} ${o} ${a}`,c=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-row:not(tr)`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${t}-cell`]:{borderBottom:l,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${c}${c}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${H(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:l,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:l,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:i(r).mul(-1).equal(),borderInlineStart:l}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:l,borderBottom:l}}}}}},LG=jG,kG=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:o,tableExpandColumnWidth:a,lineWidth:i,lineType:l,tableBorderColor:c,tableFontSize:u,tableBg:d,tableRadius:f,tableHeaderTextColor:m,motionDurationMid:g,tableHeaderBg:y,tableHeaderCellSplitColor:h,tableFooterTextColor:C,tableFooterBg:p,calc:v}=e,b=`${H(i)} ${l} ${c}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},_o()),{[t]:Object.assign(Object.assign({},zt(e)),{fontSize:u,background:d,borderRadius:`${H(f)} ${H(f)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${H(f)} ${H(f)} 0 0`,borderCollapse:"separate",borderSpacing:0},[` + `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:n,color:o,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:a}}}},BG=DG,FG=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:o,tableScrollThumbSize:a,tableScrollBg:i,zIndexTableSticky:l,stickyScrollBarBorderRadius:c,lineWidth:u,lineType:d,tableBorderColor:f}=e,m=`${H(u)} ${d} ${f}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:l,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${H(a)} !important`,zIndex:l,display:"flex",alignItems:"center",background:i,borderTop:m,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:a,backgroundColor:r,borderRadius:c,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:o}}}}}}},AG=FG,HG=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:o}=e,a=`${H(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:a}}},[`div${t}-summary`]:{boxShadow:`0 ${H(o(n).mul(-1).equal())} 0 ${r}`}}}},KS=HG,VG=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:o,tableBorderColor:a,calc:i}=e,l=`${H(r)} ${o} ${a}`,c=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-row:not(tr)`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${t}-cell`]:{borderBottom:l,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${c}${c}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${H(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:l,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:l,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:i(r).mul(-1).equal(),borderInlineStart:l}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:l,borderBottom:l}}}}}},KG=VG,WG=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:o,tableExpandColumnWidth:a,lineWidth:i,lineType:l,tableBorderColor:c,tableFontSize:u,tableBg:d,tableRadius:f,tableHeaderTextColor:m,motionDurationMid:g,tableHeaderBg:y,tableHeaderCellSplitColor:h,tableFooterTextColor:C,tableFooterBg:p,calc:v}=e,b=`${H(i)} ${l} ${c}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},_o()),{[t]:Object.assign(Object.assign({},zt(e)),{fontSize:u,background:d,borderRadius:`${H(f)} ${H(f)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${H(f)} ${H(f)} 0 0`,borderCollapse:"separate",borderSpacing:0},[` ${t}-cell, ${t}-thead > tr > th, ${t}-tbody > tr > th, @@ -387,4 +387,4 @@ html body { > ${t}-wrapper:only-child, > ${t}-expanded-row-fixed > ${t}-wrapper:only-child `]:{[t]:{marginBlock:H(v(r).mul(-1).equal()),marginInline:`${H(v(a).sub(o).equal())} - ${H(v(o).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:m,fontWeight:n,textAlign:"start",background:y,borderBottom:b,transition:`background ${g} ease`}}},[`${t}-footer`]:{padding:`${H(r)} ${H(o)}`,color:C,background:p}})}},DG=e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:o,colorFillContent:a,controlItemBgActive:i,controlItemBgActiveHover:l,padding:c,paddingSM:u,paddingXS:d,colorBorderSecondary:f,borderRadiusLG:m,controlHeight:g,colorTextPlaceholder:y,fontSize:h,fontSizeSM:C,lineHeight:p,lineWidth:v,colorIcon:b,colorIconHover:S,opacityLoading:$,controlInteractiveSize:x}=e,w=new Dt(o).onBackground(n).toHexShortString(),O=new Dt(a).onBackground(n).toHexShortString(),E=new Dt(t).onBackground(n).toHexShortString(),I=new Dt(b),T=new Dt(S),_=x/2-v,R=_*2+v*3;return{headerBg:E,headerColor:r,headerSortActiveBg:w,headerSortHoverBg:O,bodySortBg:E,rowHoverBg:E,rowSelectedBg:i,rowSelectedHoverBg:l,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:u,cellPaddingInlineMD:d,cellPaddingBlockSM:d,cellPaddingInlineSM:d,borderColor:f,headerBorderRadius:m,footerBg:E,footerColor:r,cellFontSize:h,cellFontSizeMD:h,cellFontSizeSM:h,headerSplitColor:f,fixedHeaderSortActiveBg:w,headerFilterHoverBg:a,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:g,stickyScrollBarBg:y,stickyScrollBarBorderRadius:100,expandIconMarginTop:(h*p-v*3)/2-Math.ceil((C*1.4-v*3)/2),headerIconColor:I.clone().setAlpha(I.getAlpha()*$).toRgbString(),headerIconHoverColor:T.clone().setAlpha(T.getAlpha()*$).toRgbString(),expandIconHalfInner:_,expandIconSize:R,expandIconScale:x/R}},BG=_t("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:o,headerBg:a,headerColor:i,headerSortActiveBg:l,headerSortHoverBg:c,bodySortBg:u,rowHoverBg:d,rowSelectedBg:f,rowSelectedHoverBg:m,rowExpandedBg:g,cellPaddingBlock:y,cellPaddingInline:h,cellPaddingBlockMD:C,cellPaddingInlineMD:p,cellPaddingBlockSM:v,cellPaddingInlineSM:b,borderColor:S,footerBg:$,footerColor:x,headerBorderRadius:w,cellFontSize:O,cellFontSizeMD:E,cellFontSizeSM:I,headerSplitColor:T,fixedHeaderSortActiveBg:_,headerFilterHoverBg:R,filterDropdownBg:M,expandIconBg:L,selectionColumnWidth:z,stickyScrollBarBg:P,calc:N}=e,k=2,j=bt(e,{tableFontSize:O,tableBg:r,tableRadius:w,tablePaddingVertical:y,tablePaddingHorizontal:h,tablePaddingVerticalMiddle:C,tablePaddingHorizontalMiddle:p,tablePaddingVerticalSmall:v,tablePaddingHorizontalSmall:b,tableBorderColor:S,tableHeaderTextColor:i,tableHeaderBg:a,tableFooterTextColor:x,tableFooterBg:$,tableHeaderCellSplitColor:T,tableHeaderSortBg:l,tableHeaderSortHoverBg:c,tableBodySortBg:u,tableFixedHeaderSortActiveBg:_,tableHeaderFilterActiveBg:R,tableFilterDropdownBg:M,tableRowHoverBg:d,tableSelectedRowBg:f,tableSelectedRowHoverBg:m,zIndexTableFixed:k,zIndexTableSticky:k+1,tableFontSizeMiddle:E,tableFontSizeSmall:I,tableSelectionColumnWidth:z,tableExpandIconBg:L,tableExpandColumnWidth:N(o).add(N(e.padding).mul(2)).equal(),tableExpandedRowBg:g,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:P,tableScrollThumbBgHover:t,tableScrollBg:n});return[kG(j),SG(j),KS(j),TG(j),hG(j),cG(j),$G(j),pG(j),KS(j),mG(j),IG(j),bG(j),_G(j),dG(j),RG(j),EG(j),LG(j)]},DG,{unitless:{expandIconScale:!0}}),FG=[],AG=(e,t)=>{var n,r;const{prefixCls:o,className:a,rootClassName:i,style:l,size:c,bordered:u,dropdownPrefixCls:d,dataSource:f,pagination:m,rowSelection:g,rowKey:y="key",rowClassName:h,columns:C,children:p,childrenColumnName:v,onChange:b,getPopupContainer:S,loading:$,expandIcon:x,expandable:w,expandedRowRender:O,expandIconColumnIndex:E,indentSize:I,scroll:T,sortDirections:_,locale:R,showSorterTooltip:M={target:"full-header"},virtual:L}=e;Fo();const z=s.useMemo(()=>C||v0(p),[C,p]),P=s.useMemo(()=>z.some(Be=>Be.responsive),[z]),N=cO(P),k=s.useMemo(()=>{const Be=new Set(Object.keys(N).filter(Ee=>N[Ee]));return z.filter(Ee=>!Ee.responsive||Ee.responsive.some(be=>Be.has(be)))},[z,N]),j=Kt(e,["className","style","columns"]),{locale:B=go,direction:F,table:K,renderEmpty:X,getPrefixCls:U,getPopupContainer:re}=s.useContext(je),Z=sr(c),ne=Object.assign(Object.assign({},B.Table),R),le=f||FG,ee=U("table",o),q=U("dropdown",d),[,te]=mn(),J=gn(ee),[W,Y,de]=BG(ee,J),oe=Object.assign(Object.assign({childrenColumnName:v,expandIconColumnIndex:E},w),{expandIcon:(n=w==null?void 0:w.expandIcon)!==null&&n!==void 0?n:(r=K==null?void 0:K.expandable)===null||r===void 0?void 0:r.expandIcon}),{childrenColumnName:se="children"}=oe,ae=s.useMemo(()=>le.some(Be=>Be==null?void 0:Be[se])?"nest":O||w&&w.expandedRowRender?"row":null,[le]),ie={body:s.useRef()},pe=SK(ee),me=s.useRef(null),ge=s.useRef(null);bK(t,()=>Object.assign(Object.assign({},ge.current),{nativeElement:me.current}));const ve=s.useMemo(()=>typeof y=="function"?y:Be=>Be==null?void 0:Be[y],[y]),[$e]=VW(le,se,ve),we={},We=function(Be,Ee){let be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Ue,Ne,Te;const Fe=Object.assign(Object.assign({},we),Be);be&&((Ue=we.resetPagination)===null||Ue===void 0||Ue.call(we),!((Ne=Fe.pagination)===null||Ne===void 0)&&Ne.current&&(Fe.pagination.current=1),m&&m.onChange&&m.onChange(1,(Te=Fe.pagination)===null||Te===void 0?void 0:Te.pageSize)),T&&T.scrollToFirstRowOnChange!==!1&&ie.body.current&&cz(0,{getContainer:()=>ie.body.current}),b==null||b(Fe.pagination,Fe.filters,Fe.sorter,{currentDataSource:Zp(ev(le,Fe.sorterStates,se),Fe.filterStates,se),action:Ee})},_e=(Be,Ee)=>{We({sorter:Be,sorterStates:Ee},"sort",!1)},[Se,Ce,Oe,ke]=oG({prefixCls:ee,mergedColumns:k,onSorterChange:_e,sortDirections:_||["ascend","descend"],tableLocale:ne,showSorterTooltip:M}),Ze=s.useMemo(()=>ev(le,Ce,se),[le,Ce]);we.sorter=ke(),we.sorterStates=Ce;const He=(Be,Ee)=>{We({filters:Be,filterStates:Ee},"filter",!0)},[Ve,it,Je]=HW({prefixCls:ee,locale:ne,dropdownPrefixCls:q,mergedColumns:k,onFilterChange:He,getPopupContainer:S||re,rootClassName:V(i,J)}),Ae=Zp(Ze,it,se);we.filters=Je,we.filterStates=it;const lt=s.useMemo(()=>{const Be={};return Object.keys(Je).forEach(Ee=>{Je[Ee]!==null&&(Be[Ee]=Je[Ee])}),Object.assign(Object.assign({},Oe),{filters:Be})},[Oe,Je]),[ut]=aG(lt),St=(Be,Ee)=>{We({pagination:Object.assign(Object.assign({},we.pagination),{current:Be,pageSize:Ee})},"paginate")},[st,vt]=GW(Ae.length,St,m);we.pagination=m===!1?{}:WW(st,m),we.resetPagination=vt;const nt=s.useMemo(()=>{if(m===!1||!st.pageSize)return Ae;const{current:Be=1,total:Ee,pageSize:be=h2}=st;return Ae.lengthbe?Ae.slice((Be-1)*be,Be*be):Ae:Ae.slice((Be-1)*be,Be*be)},[!!m,Ae,st&&st.current,st&&st.pageSize,st&&st.total]),[Me,Xe]=hK({prefixCls:ee,data:Ae,pageData:nt,getRowKey:ve,getRecordByKey:$e,expandType:ae,childrenColumnName:se,locale:ne,getPopupContainer:S||re},g),De=(Be,Ee,be)=>{let Ue;return typeof h=="function"?Ue=V(h(Be,Ee,be)):Ue=V(h),V({[`${ee}-row-selected`]:Xe.has(ve(Be,Ee))},Ue)};oe.__PARENT_RENDER_ICON__=oe.expandIcon,oe.expandIcon=oe.expandIcon||x||CK(ne),ae==="nest"&&oe.expandIconColumnIndex===void 0?oe.expandIconColumnIndex=g?1:0:oe.expandIconColumnIndex>0&&g&&(oe.expandIconColumnIndex-=1),typeof oe.indentSize!="number"&&(oe.indentSize=typeof I=="number"?I:15);const xe=s.useCallback(Be=>ut(Me(Ve(Se(Be)))),[Se,Ve,Me]);let ze,rt;if(m!==!1&&(st!=null&&st.total)){let Be;st.size?Be=st.size:Be=Z==="small"||Z==="middle"?"small":void 0;const Ee=Ne=>s.createElement(i9,Object.assign({},st,{className:V(`${ee}-pagination ${ee}-pagination-${Ne}`,st.className),size:Be})),be=F==="rtl"?"left":"right",{position:Ue}=st;if(Ue!==null&&Array.isArray(Ue)){const Ne=Ue.find(ct=>ct.includes("top")),Te=Ue.find(ct=>ct.includes("bottom")),Fe=Ue.every(ct=>`${ct}`=="none");!Ne&&!Te&&!Fe&&(rt=Ee(be)),Ne&&(ze=Ee(Ne.toLowerCase().replace("top",""))),Te&&(rt=Ee(Te.toLowerCase().replace("bottom","")))}else rt=Ee(be)}let ye;typeof $=="boolean"?ye={spinning:$}:typeof $=="object"&&(ye=Object.assign({spinning:!0},$));const Re=V(de,J,`${ee}-wrapper`,K==null?void 0:K.className,{[`${ee}-wrapper-rtl`]:F==="rtl"},a,i,Y),Pe=Object.assign(Object.assign({},K==null?void 0:K.style),l),Ge=R&&R.emptyText||(X==null?void 0:X("Table"))||s.createElement(nO,{componentName:"Table"}),ot=L?lG:iG,et={},Et=s.useMemo(()=>{const{fontSize:Be,lineHeight:Ee,padding:be,paddingXS:Ue,paddingSM:Ne}=te,Te=Math.floor(Be*Ee);switch(Z){case"large":return be*2+Te;case"small":return Ue*2+Te;default:return Ne*2+Te}},[te,Z]);return L&&(et.listItemHeight=Et),W(s.createElement("div",{ref:me,className:Re,style:Pe},s.createElement(p9,Object.assign({spinning:!1},ye),ze,s.createElement(ot,Object.assign({},et,j,{ref:ge,columns:k,direction:F,expandable:oe,prefixCls:ee,className:V({[`${ee}-middle`]:Z==="middle",[`${ee}-small`]:Z==="small",[`${ee}-bordered`]:u,[`${ee}-empty`]:le.length===0},de,J,Y),data:nt,rowKey:ve,rowClassName:De,emptyText:Ge,internalHooks:pc,internalRefs:ie,transformColumns:xe,getContainerWidth:pe})),rt)))},HG=s.forwardRef(AG),VG=(e,t)=>{const n=s.useRef(0);return n.current+=1,s.createElement(HG,Object.assign({},e,{ref:t,_renderTimes:n.current}))},Vo=s.forwardRef(VG);Vo.SELECTION_COLUMN=Go;Vo.EXPAND_COLUMN=Xo;Vo.SELECTION_ALL=Up;Vo.SELECTION_INVERT=qp;Vo.SELECTION_NONE=Xp;Vo.Column=iK;Vo.ColumnGroup=lK;Vo.Summary=UI;const AU=Vo,KG=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o,calc:a}=e,i=a(r).sub(n).equal(),l=a(t).sub(n).equal();return{[o]:Object.assign(Object.assign({},zt(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${H(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:l,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:i}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},$0=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return bt(e,{tagFontSize:o,tagLineHeight:H(r(e.lineHeightSM).mul(o).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},w0=e=>({defaultBg:new Dt(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),C2=_t("Tag",e=>{const t=$0(e);return KG(t)},w0);var WG=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,style:r,className:o,checked:a,onChange:i,onClick:l}=e,c=WG(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:u,tag:d}=s.useContext(je),f=p=>{i==null||i(!a),l==null||l(p)},m=u("tag",n),[g,y,h]=C2(m),C=V(m,`${m}-checkable`,{[`${m}-checkable-checked`]:a},d==null?void 0:d.className,o,y,h);return g(s.createElement("span",Object.assign({},c,{ref:t,style:Object.assign(Object.assign({},r),d==null?void 0:d.style),className:C,onClick:f})))}),UG=GG,qG=e=>dw(e,(t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:a,darkColor:i}=n;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:r,background:a,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:i,borderColor:i},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),XG=ti(["Tag","preset"],e=>{const t=$0(e);return qG(t)},w0);function YG(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const Jc=(e,t,n)=>{const r=YG(n);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},QG=ti(["Tag","status"],e=>{const t=$0(e);return[Jc(t,"success","Success"),Jc(t,"processing","Info"),Jc(t,"error","Error"),Jc(t,"warning","Warning")]},w0);var ZG=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,className:r,rootClassName:o,style:a,children:i,icon:l,color:c,onClose:u,bordered:d=!0,visible:f}=e,m=ZG(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:g,direction:y,tag:h}=s.useContext(je),[C,p]=s.useState(!0),v=Kt(m,["closeIcon","closable"]);s.useEffect(()=>{f!==void 0&&p(f)},[f]);const b=mO(c),S=gB(c),$=b||S,x=Object.assign(Object.assign({backgroundColor:c&&!$?c:void 0},h==null?void 0:h.style),a),w=g("tag",n),[O,E,I]=C2(w),T=V(w,h==null?void 0:h.className,{[`${w}-${c}`]:$,[`${w}-has-color`]:c&&!$,[`${w}-hidden`]:!C,[`${w}-rtl`]:y==="rtl",[`${w}-borderless`]:!d},r,o,E,I),_=N=>{N.stopPropagation(),u==null||u(N),!N.defaultPrevented&&p(!1)},[,R]=rE(sd(e),sd(h),{closable:!1,closeIconRender:N=>{const k=s.createElement("span",{className:`${w}-close-icon`,onClick:_},N);return Tw(N,k,j=>({onClick:B=>{var F;(F=j==null?void 0:j.onClick)===null||F===void 0||F.call(j,B),_(B)},className:V(j==null?void 0:j.className,`${w}-close-icon`)}))}}),M=typeof m.onClick=="function"||i&&i.type==="a",L=l||null,z=L?s.createElement(s.Fragment,null,L,i&&s.createElement("span",null,i)):i,P=s.createElement("span",Object.assign({},v,{ref:t,className:T,style:x}),z,R,b&&s.createElement(XG,{key:"preset",prefixCls:w}),S&&s.createElement(QG,{key:"status",prefixCls:w}));return O(M?s.createElement(ac,{component:"Tag"},P):P)}),S2=JG;S2.CheckableTag=UG;const HU=S2,eU=e=>{const t=e!=null&&e.algorithm?Ns(e.algorithm):Ns(Zs),n=Object.assign(Object.assign({},ol),e==null?void 0:e.token);return I$(n,{override:e==null?void 0:e.token},t,dh)},tU=eU;function nU(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}const rU=(e,t)=>{const n=t??Zs(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),nU(t??e)),Z$(r)),{controlHeight:o}),Q$(Object.assign(Object.assign({},n),{controlHeight:o})))},oU=rU,yo=(e,t)=>new Dt(e).setAlpha(t).toRgbString(),yi=(e,t)=>new Dt(e).lighten(t).toHexString(),aU=e=>{const t=Mo(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]}},iU=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:yo(r,.85),colorTextSecondary:yo(r,.65),colorTextTertiary:yo(r,.45),colorTextQuaternary:yo(r,.25),colorFill:yo(r,.18),colorFillSecondary:yo(r,.12),colorFillTertiary:yo(r,.08),colorFillQuaternary:yo(r,.04),colorBgElevated:yi(n,12),colorBgContainer:yi(n,8),colorBgLayout:yi(n,0),colorBgSpotlight:yi(n,26),colorBgBlur:yo(r,.04),colorBorder:yi(n,26),colorBorderSecondary:yi(n,19)}},lU=(e,t)=>{const n=Object.keys(sh).map(o=>{const a=Mo(e[o],{theme:"dark"});return new Array(10).fill(1).reduce((i,l,c)=>(i[`${o}-${c+1}`]=a[c],i[`${o}${c+1}`]=a[c],i),{})}).reduce((o,a)=>(o=Object.assign(Object.assign({},o),a),o),{}),r=t??Zs(e);return Object.assign(Object.assign(Object.assign({},r),n),Y$(e,{generateColorPalettes:aU,generateNeutralColorPalettes:iU}))},sU=lU;function cU(){const[e,t,n]=mn();return{theme:e,token:t,hashId:n}}const VU={defaultConfig:_s,defaultSeed:_s.token,useToken:cU,defaultAlgorithm:Zs,darkAlgorithm:sU,compactAlgorithm:oU,getDesignToken:tU};var uU={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};const dU=uU;var fU=function(t,n){return s.createElement(Pt,ce({},t,{ref:n,icon:dU}))},mU=s.forwardRef(fU);const KU=mU;var gU={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};const pU=gU;var vU=function(t,n){return s.createElement(Pt,ce({},t,{ref:n,icon:pU}))},hU=s.forwardRef(vU);const WU=hU;var yU={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};const bU=yU;var CU=function(t,n){return s.createElement(Pt,ce({},t,{ref:n,icon:bU}))},SU=s.forwardRef(CU);const GU=SU;var xU={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};const $U=xU;var wU=function(t,n){return s.createElement(Pt,ce({},t,{ref:n,icon:$U}))},EU=s.forwardRef(wU);const UU=EU;export{Pt as A,Lo as B,lI as C,KU as D,WU as E,MU as F,BU as G,UU as H,sH as I,FU as J,VO as K,zU as L,LU as M,DU as P,d8 as R,gH as S,AU as T,ce as _,To as a,tv as b,OU as c,_U as d,bd as e,G as f,IU as g,tc as h,p9 as i,NU as j,V as k,vI as l,jU as m,aO as n,ec as o,RU as p,PU as q,s as r,GU as s,VU as t,TA as u,TU as v,kU as w,As as x,HU as y,Hs as z}; + ${H(v(o).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:m,fontWeight:n,textAlign:"start",background:y,borderBottom:b,transition:`background ${g} ease`}}},[`${t}-footer`]:{padding:`${H(r)} ${H(o)}`,color:C,background:p}})}},GG=e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:o,colorFillContent:a,controlItemBgActive:i,controlItemBgActiveHover:l,padding:c,paddingSM:u,paddingXS:d,colorBorderSecondary:f,borderRadiusLG:m,controlHeight:g,colorTextPlaceholder:y,fontSize:h,fontSizeSM:C,lineHeight:p,lineWidth:v,colorIcon:b,colorIconHover:S,opacityLoading:$,controlInteractiveSize:x}=e,w=new Dt(o).onBackground(n).toHexShortString(),O=new Dt(a).onBackground(n).toHexShortString(),E=new Dt(t).onBackground(n).toHexShortString(),I=new Dt(b),T=new Dt(S),_=x/2-v,R=_*2+v*3;return{headerBg:E,headerColor:r,headerSortActiveBg:w,headerSortHoverBg:O,bodySortBg:E,rowHoverBg:E,rowSelectedBg:i,rowSelectedHoverBg:l,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:u,cellPaddingInlineMD:d,cellPaddingBlockSM:d,cellPaddingInlineSM:d,borderColor:f,headerBorderRadius:m,footerBg:E,footerColor:r,cellFontSize:h,cellFontSizeMD:h,cellFontSizeSM:h,headerSplitColor:f,fixedHeaderSortActiveBg:w,headerFilterHoverBg:a,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:g,stickyScrollBarBg:y,stickyScrollBarBorderRadius:100,expandIconMarginTop:(h*p-v*3)/2-Math.ceil((C*1.4-v*3)/2),headerIconColor:I.clone().setAlpha(I.getAlpha()*$).toRgbString(),headerIconHoverColor:T.clone().setAlpha(T.getAlpha()*$).toRgbString(),expandIconHalfInner:_,expandIconSize:R,expandIconScale:x/R}},UG=_t("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:o,headerBg:a,headerColor:i,headerSortActiveBg:l,headerSortHoverBg:c,bodySortBg:u,rowHoverBg:d,rowSelectedBg:f,rowSelectedHoverBg:m,rowExpandedBg:g,cellPaddingBlock:y,cellPaddingInline:h,cellPaddingBlockMD:C,cellPaddingInlineMD:p,cellPaddingBlockSM:v,cellPaddingInlineSM:b,borderColor:S,footerBg:$,footerColor:x,headerBorderRadius:w,cellFontSize:O,cellFontSizeMD:E,cellFontSizeSM:I,headerSplitColor:T,fixedHeaderSortActiveBg:_,headerFilterHoverBg:R,filterDropdownBg:M,expandIconBg:L,selectionColumnWidth:z,stickyScrollBarBg:P,calc:N}=e,k=2,j=bt(e,{tableFontSize:O,tableBg:r,tableRadius:w,tablePaddingVertical:y,tablePaddingHorizontal:h,tablePaddingVerticalMiddle:C,tablePaddingHorizontalMiddle:p,tablePaddingVerticalSmall:v,tablePaddingHorizontalSmall:b,tableBorderColor:S,tableHeaderTextColor:i,tableHeaderBg:a,tableFooterTextColor:x,tableFooterBg:$,tableHeaderCellSplitColor:T,tableHeaderSortBg:l,tableHeaderSortHoverBg:c,tableBodySortBg:u,tableFixedHeaderSortActiveBg:_,tableHeaderFilterActiveBg:R,tableFilterDropdownBg:M,tableRowHoverBg:d,tableSelectedRowBg:f,tableSelectedRowHoverBg:m,zIndexTableFixed:k,zIndexTableSticky:k+1,tableFontSizeMiddle:E,tableFontSizeSmall:I,tableSelectionColumnWidth:z,tableExpandIconBg:L,tableExpandColumnWidth:N(o).add(N(e.padding).mul(2)).equal(),tableExpandedRowBg:g,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:P,tableScrollThumbBgHover:t,tableScrollBg:n});return[WG(j),RG(j),KS(j),BG(j),EG(j),hG(j),TG(j),$G(j),KS(j),SG(j),jG(j),IG(j),AG(j),bG(j),kG(j),_G(j),KG(j)]},GG,{unitless:{expandIconScale:!0}}),qG=[],XG=(e,t)=>{var n,r;const{prefixCls:o,className:a,rootClassName:i,style:l,size:c,bordered:u,dropdownPrefixCls:d,dataSource:f,pagination:m,rowSelection:g,rowKey:y="key",rowClassName:h,columns:C,children:p,childrenColumnName:v,onChange:b,getPopupContainer:S,loading:$,expandIcon:x,expandable:w,expandedRowRender:O,expandIconColumnIndex:E,indentSize:I,scroll:T,sortDirections:_,locale:R,showSorterTooltip:M={target:"full-header"},virtual:L}=e;Fo();const z=s.useMemo(()=>C||v0(p),[C,p]),P=s.useMemo(()=>z.some(Be=>Be.responsive),[z]),N=cO(P),k=s.useMemo(()=>{const Be=new Set(Object.keys(N).filter(Ee=>N[Ee]));return z.filter(Ee=>!Ee.responsive||Ee.responsive.some(be=>Be.has(be)))},[z,N]),j=Kt(e,["className","style","columns"]),{locale:B=go,direction:F,table:K,renderEmpty:X,getPrefixCls:U,getPopupContainer:re}=s.useContext(je),Z=sr(c),ne=Object.assign(Object.assign({},B.Table),R),le=f||qG,ee=U("table",o),q=U("dropdown",d),[,te]=mn(),J=gn(ee),[W,Y,de]=UG(ee,J),oe=Object.assign(Object.assign({childrenColumnName:v,expandIconColumnIndex:E},w),{expandIcon:(n=w==null?void 0:w.expandIcon)!==null&&n!==void 0?n:(r=K==null?void 0:K.expandable)===null||r===void 0?void 0:r.expandIcon}),{childrenColumnName:se="children"}=oe,ae=s.useMemo(()=>le.some(Be=>Be==null?void 0:Be[se])?"nest":O||w&&w.expandedRowRender?"row":null,[le]),ie={body:s.useRef()},pe=RK(ee),me=s.useRef(null),ge=s.useRef(null);IK(t,()=>Object.assign(Object.assign({},ge.current),{nativeElement:me.current}));const ve=s.useMemo(()=>typeof y=="function"?y:Be=>Be==null?void 0:Be[y],[y]),[$e]=QW(le,se,ve),we={},We=function(Be,Ee){let be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Ue,Ne,Te;const Fe=Object.assign(Object.assign({},we),Be);be&&((Ue=we.resetPagination)===null||Ue===void 0||Ue.call(we),!((Ne=Fe.pagination)===null||Ne===void 0)&&Ne.current&&(Fe.pagination.current=1),m&&m.onChange&&m.onChange(1,(Te=Fe.pagination)===null||Te===void 0?void 0:Te.pageSize)),T&&T.scrollToFirstRowOnChange!==!1&&ie.body.current&&c4(0,{getContainer:()=>ie.body.current}),b==null||b(Fe.pagination,Fe.filters,Fe.sorter,{currentDataSource:Zp(ev(le,Fe.sorterStates,se),Fe.filterStates,se),action:Ee})},_e=(Be,Ee)=>{We({sorter:Be,sorterStates:Ee},"sort",!1)},[Se,Ce,Oe,ke]=fG({prefixCls:ee,mergedColumns:k,onSorterChange:_e,sortDirections:_||["ascend","descend"],tableLocale:ne,showSorterTooltip:M}),Ze=s.useMemo(()=>ev(le,Ce,se),[le,Ce]);we.sorter=ke(),we.sorterStates=Ce;const He=(Be,Ee)=>{We({filters:Be,filterStates:Ee},"filter",!0)},[Ve,it,Je]=YW({prefixCls:ee,locale:ne,dropdownPrefixCls:q,mergedColumns:k,onFilterChange:He,getPopupContainer:S||re,rootClassName:V(i,J)}),Ae=Zp(Ze,it,se);we.filters=Je,we.filterStates=it;const lt=s.useMemo(()=>{const Be={};return Object.keys(Je).forEach(Ee=>{Je[Ee]!==null&&(Be[Ee]=Je[Ee])}),Object.assign(Object.assign({},Oe),{filters:Be})},[Oe,Je]),[ut]=mG(lt),St=(Be,Ee)=>{We({pagination:Object.assign(Object.assign({},we.pagination),{current:Be,pageSize:Ee})},"paginate")},[st,vt]=eG(Ae.length,St,m);we.pagination=m===!1?{}:JW(st,m),we.resetPagination=vt;const nt=s.useMemo(()=>{if(m===!1||!st.pageSize)return Ae;const{current:Be=1,total:Ee,pageSize:be=h2}=st;return Ae.lengthbe?Ae.slice((Be-1)*be,Be*be):Ae:Ae.slice((Be-1)*be,Be*be)},[!!m,Ae,st&&st.current,st&&st.pageSize,st&&st.total]),[Me,Xe]=EK({prefixCls:ee,data:Ae,pageData:nt,getRowKey:ve,getRecordByKey:$e,expandType:ae,childrenColumnName:se,locale:ne,getPopupContainer:S||re},g),De=(Be,Ee,be)=>{let Ue;return typeof h=="function"?Ue=V(h(Be,Ee,be)):Ue=V(h),V({[`${ee}-row-selected`]:Xe.has(ve(Be,Ee))},Ue)};oe.__PARENT_RENDER_ICON__=oe.expandIcon,oe.expandIcon=oe.expandIcon||x||PK(ne),ae==="nest"&&oe.expandIconColumnIndex===void 0?oe.expandIconColumnIndex=g?1:0:oe.expandIconColumnIndex>0&&g&&(oe.expandIconColumnIndex-=1),typeof oe.indentSize!="number"&&(oe.indentSize=typeof I=="number"?I:15);const xe=s.useCallback(Be=>ut(Me(Ve(Se(Be)))),[Se,Ve,Me]);let ze,rt;if(m!==!1&&(st!=null&&st.total)){let Be;st.size?Be=st.size:Be=Z==="small"||Z==="middle"?"small":void 0;const Ee=Ne=>s.createElement(g9,Object.assign({},st,{className:V(`${ee}-pagination ${ee}-pagination-${Ne}`,st.className),size:Be})),be=F==="rtl"?"left":"right",{position:Ue}=st;if(Ue!==null&&Array.isArray(Ue)){const Ne=Ue.find(ct=>ct.includes("top")),Te=Ue.find(ct=>ct.includes("bottom")),Fe=Ue.every(ct=>`${ct}`=="none");!Ne&&!Te&&!Fe&&(rt=Ee(be)),Ne&&(ze=Ee(Ne.toLowerCase().replace("top",""))),Te&&(rt=Ee(Te.toLowerCase().replace("bottom","")))}else rt=Ee(be)}let ye;typeof $=="boolean"?ye={spinning:$}:typeof $=="object"&&(ye=Object.assign({spinning:!0},$));const Re=V(de,J,`${ee}-wrapper`,K==null?void 0:K.className,{[`${ee}-wrapper-rtl`]:F==="rtl"},a,i,Y),Pe=Object.assign(Object.assign({},K==null?void 0:K.style),l),Ge=R&&R.emptyText||(X==null?void 0:X("Table"))||s.createElement(nO,{componentName:"Table"}),ot=L?pG:gG,et={},Ot=s.useMemo(()=>{const{fontSize:Be,lineHeight:Ee,padding:be,paddingXS:Ue,paddingSM:Ne}=te,Te=Math.floor(Be*Ee);switch(Z){case"large":return be*2+Te;case"small":return Ue*2+Te;default:return Ne*2+Te}},[te,Z]);return L&&(et.listItemHeight=Ot),W(s.createElement("div",{ref:me,className:Re,style:Pe},s.createElement($9,Object.assign({spinning:!1},ye),ze,s.createElement(ot,Object.assign({},et,j,{ref:ge,columns:k,direction:F,expandable:oe,prefixCls:ee,className:V({[`${ee}-middle`]:Z==="middle",[`${ee}-small`]:Z==="small",[`${ee}-bordered`]:u,[`${ee}-empty`]:le.length===0},de,J,Y),data:nt,rowKey:ve,rowClassName:De,emptyText:Ge,internalHooks:pc,internalRefs:ie,transformColumns:xe,getContainerWidth:pe})),rt)))},YG=s.forwardRef(XG),QG=(e,t)=>{const n=s.useRef(0);return n.current+=1,s.createElement(YG,Object.assign({},e,{ref:t,_renderTimes:n.current}))},Vo=s.forwardRef(QG);Vo.SELECTION_COLUMN=Go;Vo.EXPAND_COLUMN=Xo;Vo.SELECTION_ALL=Up;Vo.SELECTION_INVERT=qp;Vo.SELECTION_NONE=Xp;Vo.Column=gK;Vo.ColumnGroup=pK;Vo.Summary=UI;const QU=Vo,ZG=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o,calc:a}=e,i=a(r).sub(n).equal(),l=a(t).sub(n).equal();return{[o]:Object.assign(Object.assign({},zt(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${H(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:l,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:i}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},$0=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return bt(e,{tagFontSize:o,tagLineHeight:H(r(e.lineHeightSM).mul(o).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},w0=e=>({defaultBg:new Dt(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),C2=_t("Tag",e=>{const t=$0(e);return ZG(t)},w0);var JG=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,style:r,className:o,checked:a,onChange:i,onClick:l}=e,c=JG(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:u,tag:d}=s.useContext(je),f=p=>{i==null||i(!a),l==null||l(p)},m=u("tag",n),[g,y,h]=C2(m),C=V(m,`${m}-checkable`,{[`${m}-checkable-checked`]:a},d==null?void 0:d.className,o,y,h);return g(s.createElement("span",Object.assign({},c,{ref:t,style:Object.assign(Object.assign({},r),d==null?void 0:d.style),className:C,onClick:f})))}),tU=eU,nU=e=>dw(e,(t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:a,darkColor:i}=n;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:r,background:a,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:i,borderColor:i},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),rU=ti(["Tag","preset"],e=>{const t=$0(e);return nU(t)},w0);function oU(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const Jc=(e,t,n)=>{const r=oU(n);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},aU=ti(["Tag","status"],e=>{const t=$0(e);return[Jc(t,"success","Success"),Jc(t,"processing","Info"),Jc(t,"error","Error"),Jc(t,"warning","Warning")]},w0);var iU=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,className:r,rootClassName:o,style:a,children:i,icon:l,color:c,onClose:u,bordered:d=!0,visible:f}=e,m=iU(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:g,direction:y,tag:h}=s.useContext(je),[C,p]=s.useState(!0),v=Kt(m,["closeIcon","closable"]);s.useEffect(()=>{f!==void 0&&p(f)},[f]);const b=mO(c),S=g6(c),$=b||S,x=Object.assign(Object.assign({backgroundColor:c&&!$?c:void 0},h==null?void 0:h.style),a),w=g("tag",n),[O,E,I]=C2(w),T=V(w,h==null?void 0:h.className,{[`${w}-${c}`]:$,[`${w}-has-color`]:c&&!$,[`${w}-hidden`]:!C,[`${w}-rtl`]:y==="rtl",[`${w}-borderless`]:!d},r,o,E,I),_=N=>{N.stopPropagation(),u==null||u(N),!N.defaultPrevented&&p(!1)},[,R]=rE(sd(e),sd(h),{closable:!1,closeIconRender:N=>{const k=s.createElement("span",{className:`${w}-close-icon`,onClick:_},N);return Tw(N,k,j=>({onClick:B=>{var F;(F=j==null?void 0:j.onClick)===null||F===void 0||F.call(j,B),_(B)},className:V(j==null?void 0:j.className,`${w}-close-icon`)}))}}),M=typeof m.onClick=="function"||i&&i.type==="a",L=l||null,z=L?s.createElement(s.Fragment,null,L,i&&s.createElement("span",null,i)):i,P=s.createElement("span",Object.assign({},v,{ref:t,className:T,style:x}),z,R,b&&s.createElement(rU,{key:"preset",prefixCls:w}),S&&s.createElement(aU,{key:"status",prefixCls:w}));return O(M?s.createElement(ac,{component:"Tag"},P):P)}),S2=lU;S2.CheckableTag=tU;const ZU=S2,sU=e=>{const t=e!=null&&e.algorithm?Ns(e.algorithm):Ns(Zs),n=Object.assign(Object.assign({},ol),e==null?void 0:e.token);return I$(n,{override:e==null?void 0:e.token},t,dh)},cU=sU;function uU(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}const dU=(e,t)=>{const n=t??Zs(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),uU(t??e)),Z$(r)),{controlHeight:o}),Q$(Object.assign(Object.assign({},n),{controlHeight:o})))},fU=dU,yo=(e,t)=>new Dt(e).setAlpha(t).toRgbString(),yi=(e,t)=>new Dt(e).lighten(t).toHexString(),mU=e=>{const t=Mo(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]}},gU=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:yo(r,.85),colorTextSecondary:yo(r,.65),colorTextTertiary:yo(r,.45),colorTextQuaternary:yo(r,.25),colorFill:yo(r,.18),colorFillSecondary:yo(r,.12),colorFillTertiary:yo(r,.08),colorFillQuaternary:yo(r,.04),colorBgElevated:yi(n,12),colorBgContainer:yi(n,8),colorBgLayout:yi(n,0),colorBgSpotlight:yi(n,26),colorBgBlur:yo(r,.04),colorBorder:yi(n,26),colorBorderSecondary:yi(n,19)}},pU=(e,t)=>{const n=Object.keys(sh).map(o=>{const a=Mo(e[o],{theme:"dark"});return new Array(10).fill(1).reduce((i,l,c)=>(i[`${o}-${c+1}`]=a[c],i[`${o}${c+1}`]=a[c],i),{})}).reduce((o,a)=>(o=Object.assign(Object.assign({},o),a),o),{}),r=t??Zs(e);return Object.assign(Object.assign(Object.assign({},r),n),Y$(e,{generateColorPalettes:mU,generateNeutralColorPalettes:gU}))},vU=pU;function hU(){const[e,t,n]=mn();return{theme:e,token:t,hashId:n}}const JU={defaultConfig:_s,defaultSeed:_s.token,useToken:hU,defaultAlgorithm:Zs,darkAlgorithm:vU,compactAlgorithm:fU,getDesignToken:cU};var yU={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};const bU=yU;var CU=function(t,n){return s.createElement($t,ce({},t,{ref:n,icon:bU}))},SU=s.forwardRef(CU);const eq=SU;var xU={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};const $U=xU;var wU=function(t,n){return s.createElement($t,ce({},t,{ref:n,icon:$U}))},EU=s.forwardRef(wU);const tq=EU;var OU={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};const IU=OU;var PU=function(t,n){return s.createElement($t,ce({},t,{ref:n,icon:IU}))},RU=s.forwardRef(PU);const nq=RU;var NU={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};const TU=NU;var MU=function(t,n){return s.createElement($t,ce({},t,{ref:n,icon:TU}))},_U=s.forwardRef(MU);const rq=_U;export{$t as A,Lo as B,lI as C,eq as D,tq as E,FU as F,Hs as G,XU as H,sH as I,rq as J,YU as K,KU as L,GU as M,VO as N,qU as P,dA as R,gH as S,QU as T,VU as Z,ce as _,To as a,tv as b,zU as c,AU as d,bd as e,G as f,jU as g,tc as h,$9 as i,DU as j,V as k,vI as l,WU as m,aO as n,HU as o,ec as p,kU as q,s as r,LU as s,JU as t,nq as u,TF as v,BU as w,UU as x,As as y,ZU as z}; diff --git a/assets/en-d8bb208f.js b/assets/en-d8bb208f.js new file mode 100644 index 0000000..9862ee9 --- /dev/null +++ b/assets/en-d8bb208f.js @@ -0,0 +1 @@ +const e="English",t={title:"GOST API Manage",description:"Connecting to API Services",form:{username:"Username",password:"Password",local:"Save to local",name:"Name",details:"Details"},cmd:{connect:"Connect",controls:"Operation",enabled:"Enabled",disable:"Disable",copy:"Copy",edit:"Edit",del:"Delete",reset:"Reset"}},i={warn:"Warning",deleteing:"Are you sure you want to delete?",doubleClickEdit:"Double click to modify"},o={admission:{title:"Admission",subTitle:"admission"},auther:{title:"Auther",subTitle:"auther"},bypass:{title:"Bypass",subTitle:"bypass"},chain:{title:"Chain",subTitle:"chain"},climiter:{title:"climiter",subTitle:"climiter"},limiter:{title:"limiter",subTitle:"limiter"},rlimiter:{title:"rlimiter",subTitle:"rlimiter"},hop:{title:"Hop",subTitle:"hop"},host:{title:"Hosts",subTitle:"hosts"},ingress:{title:"Ingress",subTitle:"Ingress"},resolver:{title:"Resolver",subTitle:"resolver"},service:{title:"Service",subTitle:"service"},sd:{title:"SD",subTitle:"SD"},observer:{title:"Observer",subTitle:"observer"}},a={baseURL:{required:"BaseURL cannot be empty"},require:"Can not be empty!",success:"Success!",unknown:"Unknown error!",connectionFailed:"Connection failed!",wordWrap:"Word Wrap",invalidName:"Invalid name",autofixName:"Whether to automatically assign a name?",autofix:"Autofix Reminder",fixName:"Reassign name to {{name}}",formatError:"{{name}}Format error!"},s={baseURL:"API baseURL",savePath:"By default, it is saved to the context directory."},l={quickConnect:"Quick Connect"},n={cmd:{reload:"Reload Config",save:"Save to server",download:"Download Config",logout:"Logout",switch:"Switch Services",new:"Connect to new Services"},label:{autoSave:"Autosave",format:"Format",path:"Save path",limit:"Speed and current limit",allConfig:"All Config JSON"}},r={edit:"Edit {{name}}",add:"Add {{name}}",copied:"Copied from {{name}}"},c={default:"Default",inline:"Inline"},m={template:"Template",forwarder:"Forwarder",key0:"Remote Port Forwarding"},d={language:e,base:t,text:i,modules:o,msg:a,placeholder:s,home:l,manage:n,title:r,template:c,terms:m};export{t as base,d as default,l as home,e as language,n as manage,o as modules,a as msg,s as placeholder,c as template,m as terms,i as text,r as title}; diff --git a/assets/en-e998d6f7.js b/assets/en-e998d6f7.js deleted file mode 100644 index 4a827b3..0000000 --- a/assets/en-e998d6f7.js +++ /dev/null @@ -1 +0,0 @@ -const e="English",t={title:"GOST API Manage",description:"Connecting to API Services",form:{username:"Username",password:"Password",local:"Save to local",name:"Name",details:"Details"},cmd:{connect:"Connect",controls:"Operation",enabled:"Enabled",disable:"Disable",copy:"Copy",edit:"Edit",del:"Delete"}},i={warn:"Warning",deleteing:"Are you sure you want to delete?",doubleClickEdit:"Double click to modify"},o={admission:{title:"Admission",subTitle:"admission"},auther:{title:"Auther",subTitle:"auther"},bypass:{title:"Bypass",subTitle:"bypass"},chain:{title:"Chain",subTitle:"chain"},climiter:{title:"climiter",subTitle:"climiter"},limiter:{title:"limiter",subTitle:"limiter"},rlimiter:{title:"rlimiter",subTitle:"rlimiter"},hop:{title:"Hop",subTitle:"hop"},host:{title:"Hosts",subTitle:"hosts"},ingress:{title:"Ingress",subTitle:"Ingress"},resolver:{title:"Resolver",subTitle:"resolver"},service:{title:"Service",subTitle:"service"},sd:{title:"SD",subTitle:"SD"},observer:{title:"Observer",subTitle:"observer"}},a={baseURL:{required:"BaseURL cannot be empty"},require:"Can not be empty!",success:"Success!",unknown:"Unknown error!",connectionFailed:"Connection failed!",wordWrap:"Word Wrap",invalidName:"Invalid name",autofixName:"Whether to automatically assign a name?",autofix:"Autofix Reminder",fixName:"Reassign name to {{name}}",formatError:"{{name}}Format error!"},s={baseURL:"API baseURL",savePath:"By default, it is saved to the context directory."},l={quickConnect:"Quick Connect"},n={cmd:{reload:"Reload Config",save:"Save to server",download:"Download Config",logout:"Logout",switch:"Switch Services",new:"Connect to new Services"},label:{autoSave:"Autosave",format:"Format",path:"Save path",limit:"Speed and current limit",allConfig:"All Config JSON"}},r={edit:"Edit {{name}}",add:"Add {{name}}",copied:"Copied from {{name}}"},c={default:"Default",inline:"Inline"},m={template:"Template",forwarder:"Forwarder",key0:"Remote Port Forwarding"},d={language:e,base:t,text:i,modules:o,msg:a,placeholder:s,home:l,manage:n,title:r,template:c,terms:m};export{t as base,d as default,l as home,e as language,n as manage,o as modules,a as msg,s as placeholder,c as template,m as terms,i as text,r as title}; diff --git a/assets/index-ff416fa7.css b/assets/index-1e88fa5c.css similarity index 85% rename from assets/index-ff416fa7.css rename to assets/index-1e88fa5c.css index 34fbad7..831fcfa 100644 --- a/assets/index-ff416fa7.css +++ b/assets/index-1e88fa5c.css @@ -1 +1 @@ -body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh;align-items:stretch}#root{width:100%}.g-boder{border:1px solid #ccc;border-radius:5px;overflow:hidden}:root.theme-dark .g-boder{border:1px solid #333}.home-form{width:380px;max-width:100%;box-sizing:border-box;padding:0 15px;margin:0 auto}.home-form h1{text-align:center;font-size:30px;margin:.5em 0 0}.home-form h2{text-align:center;font-size:16px;opacity:.8;padding:0 0 1em;margin:0;font-weight:400}:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;font-synthesis:none;background-color:#fff;transition:all .5s;--scroll-track-color: #e6e6e6;--scroll-thumb-color: #b3b3b3;--scroll-hover-color: #808080;--scroll-active-color: #333333;--shadow-color: #000}:root.theme-dark{color-scheme:dark;color:#ffffffde;background-color:#242424;--scroll-track-color: #3e3e3e;--scroll-thumb-color: #717171;--scroll-hover-color: #a3a3a3;--scroll-active-color: #f0f0f0;--shadow-color: #FFF}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}*::-webkit-scrollbar{width:6px;height:6px}*::-webkit-scrollbar-track-piece{background-color:var(--scroll-track-color);border-radius:3px}*::-webkit-scrollbar-thumb{background-color:var(--scroll-thumb-color);border-radius:3px}*::-webkit-scrollbar-thumb:hover{background-color:var(--scroll-hover-color)}*::-webkit-scrollbar-thumb:active{background-color:var(--scroll-active-color)}*:hover::-webkit-scrollbar{width:6px;height:6px}*.scroll-auto-hide::-webkit-scrollbar{width:0;height:0}.scroll-small::-webkit-scrollbar{width:4px;height:4px}.scroll-small::-webkit-scrollbar-track-piece{background-color:var(--scroll-track-color);border-radius:2px}.scroll-small::-webkit-scrollbar-thumb{background-color:var(--scroll-thumb-color);border-radius:2px}.scroll-small::-webkit-scrollbar-thumb:hover{background-color:var(--scroll-hover-color)}.scroll-small::-webkit-scrollbar-thumb:active{background-color:var(--scroll-active-color)}.scroll-small:hover::-webkit-scrollbar{width:4px;height:4px}.scroll-small.scroll-auto-hide::-webkit-scrollbar{width:0;height:0}.ant-table-body{scrollbar-width:auto;scrollbar-color:auto}.ant-space-item>.ant-tag{margin-inline-end:inherit}.ant-tag.editor-json{cursor:pointer}.antd-cord-boxShadow{box-shadow:0 1px 2px -2px #00000029,0 3px 6px #0000001f,0 5px 12px 4px #00000017;border-color:transparent} +body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh;align-items:stretch}#root{width:100%}.g-boder{border:1px solid #ccc;border-radius:5px;overflow:hidden}:root.theme-dark .g-boder{border:1px solid #333}.home-form{width:380px;max-width:100%;box-sizing:border-box;padding:0 15px;margin:0 auto}.home-form h1{text-align:center;font-size:30px;margin:.5em 0 0}.home-form h2{text-align:center;font-size:16px;opacity:.8;padding:0 0 1em;margin:0;font-weight:400}:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;font-synthesis:none;background-color:#fff;transition:all .5s;--scroll-track-color: #e6e6e6;--scroll-thumb-color: #b3b3b3;--scroll-hover-color: #808080;--scroll-active-color: #333333;--shadow-color: #000}:root.theme-dark{color-scheme:dark;color:#ffffffde;background-color:#242424;--scroll-track-color: #3e3e3e;--scroll-thumb-color: #717171;--scroll-hover-color: #a3a3a3;--scroll-active-color: #f0f0f0;--shadow-color: #FFF}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}*::-webkit-scrollbar{width:6px;height:6px}*::-webkit-scrollbar-track-piece{background-color:var(--scroll-track-color);border-radius:3px}*::-webkit-scrollbar-thumb{background-color:var(--scroll-thumb-color);border-radius:3px}*::-webkit-scrollbar-thumb:hover{background-color:var(--scroll-hover-color)}*::-webkit-scrollbar-thumb:active{background-color:var(--scroll-active-color)}*:hover::-webkit-scrollbar{width:6px;height:6px}*.scroll-auto-hide::-webkit-scrollbar{width:0;height:0}.scroll-small::-webkit-scrollbar{width:4px;height:4px}.scroll-small::-webkit-scrollbar-track-piece{background-color:var(--scroll-track-color);border-radius:2px}.scroll-small::-webkit-scrollbar-thumb{background-color:var(--scroll-thumb-color);border-radius:2px}.scroll-small::-webkit-scrollbar-thumb:hover{background-color:var(--scroll-hover-color)}.scroll-small::-webkit-scrollbar-thumb:active{background-color:var(--scroll-active-color)}.scroll-small:hover::-webkit-scrollbar{width:4px;height:4px}.scroll-small.scroll-auto-hide::-webkit-scrollbar{width:0;height:0}.ant-table-body{scrollbar-width:auto;scrollbar-color:auto}.ant-space-item>.ant-tag{margin-inline-end:inherit}.ant-tag.editor-json{cursor:pointer}.antd-cord-boxShadow{box-shadow:0 1px 2px -2px #00000029,0 3px 6px #0000001f,0 5px 12px 4px #00000017;border-color:transparent}.ant-form-item.form-only-error .ant-form-item-control-input{min-height:0}.ant-modal.full-modal .ant-modal-content{position:fixed;left:10px;top:10px;right:10px;bottom:10px;display:flex;flex-direction:column}.ant-modal.full-modal .ant-modal-content .ant-modal-body{flex:1 100%}.ant-modal.full-modal .ant-modal-content .ant-modal-body>form{height:100%} diff --git a/assets/index-f9140a0f.js b/assets/index-b95f859d.js similarity index 98% rename from assets/index-f9140a0f.js rename to assets/index-b95f859d.js index 7d70e4a..5f2f480 100644 --- a/assets/index-f9140a0f.js +++ b/assets/index-b95f859d.js @@ -1,4 +1,4 @@ -var qi=Object.defineProperty;var Wi=(t,e,r)=>e in t?qi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var X=(t,e,r)=>(Wi(t,typeof e!="symbol"?e+"":e,r),r);import{r as O,a as Ji,g as Gi,c as Yi,b as Vr,m as vr,A as Ye,_ as Qe,S as So,R as Qi,C as Xi,F as Zi,D as es,B as Kr,d as we,I as Qt,e as ts,f as Ct,h as dt,t as rs,i as fn,j as ns}from"./antd-af73db0d.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();var wo={exports:{}},Nt={};/** +var qi=Object.defineProperty;var Wi=(t,e,r)=>e in t?qi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var X=(t,e,r)=>(Wi(t,typeof e!="symbol"?e+"":e,r),r);import{r as O,a as Ji,g as Gi,c as Yi,b as Vr,m as vr,A as Ye,_ as Qe,S as So,R as Qi,C as Xi,F as Zi,D as es,B as Kr,d as we,I as Qt,e as ts,f as Ct,h as dt,t as rs,i as fn,j as ns}from"./antd-b4989dd4.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();var wo={exports:{}},Nt={};/** * @license React * react-jsx-runtime.production.min.js * @@ -14,4 +14,4 @@ var qi=Object.defineProperty;var Wi=(t,e,r)=>e in t?qi(t,e,{enumerable:!0,config `+i):n.stack=i}throw n}}_request(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=Re(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&Or.assertOptions(n,{silentJSONParsing:ue.transitional(ue.boolean),forcedJSONParsing:ue.transitional(ue.boolean),clarifyTimeoutError:ue.transitional(ue.boolean)},!1),o!=null&&(h.isFunction(o)?r.paramsSerializer={serialize:o}:Or.assertOptions(o,{encode:ue.function,serialize:ue.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=i&&h.merge(i.common,i[r.method]);i&&h.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),r.headers=ae.concat(s,i);const a=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(r)===!1||(l=l&&g.synchronous,a.unshift(g.fulfilled,g.rejected))});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let c,d=0,f;if(!l){const p=[En.bind(this),void 0];for(p.unshift.apply(p,a),p.push.apply(p,u),f=p.length,c=Promise.resolve(r);d{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{n.subscribe(a),i=a}).then(o);return s.cancel=function(){n.unsubscribe(i)},s},e(function(i,s,a){n.reason||(n.reason=new Ze(i,s,a),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}static source(){let e;return{token:new Qr(function(o){e=o}),cancel:e}}}const Na=Qr;function _a(t){return function(r){return t.apply(null,r)}}function Ia(t){return h.isObject(t)&&t.isAxiosError===!0}const Er={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Er).forEach(([t,e])=>{Er[e]=t});const Ta=Er;function Xo(t){const e=new yt(t),r=_o(yt.prototype.request,e);return h.extend(r,yt.prototype,e,{allOwnKeys:!0}),h.extend(r,e,null,{allOwnKeys:!0}),r.create=function(o){return Xo(Re(t,o))},r}const N=Xo(Gr);N.Axios=yt;N.CanceledError=Ze;N.CancelToken=Na;N.isCancel=Jo;N.VERSION=Qo;N.toFormData=Ft;N.AxiosError=$;N.Cancel=N.CanceledError;N.all=function(e){return Promise.all(e)};N.spread=_a;N.isAxiosError=Ia;N.mergeConfig=Re;N.AxiosHeaders=ae;N.formToJSON=t=>Wo(h.isHTMLForm(t)?new FormData(t):t);N.getAdapter=Yo.getAdapter;N.HttpStatusCode=Ta;N.default=N;const Zo=N;var ka=Error,Da=EvalError,Fa=RangeError,ja=ReferenceError,ei=SyntaxError,et=TypeError,Ma=URIError,Ba=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;e[r]=o;for(r in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(e,r);if(s.value!==o||s.enumerable!==!0)return!1}return!0},Ln=typeof Symbol<"u"&&Symbol,Ua=Ba,za=function(){return typeof Ln!="function"||typeof Symbol!="function"||typeof Ln("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Ua()},rr={__proto__:null,foo:{}},Va=Object,Ka=function(){return{__proto__:rr}.foo===rr.foo&&!(rr instanceof Va)},Ha="Function.prototype.bind called on incompatible ",qa=Object.prototype.toString,Wa=Math.max,Ja="[object Function]",$n=function(e,r){for(var n=[],o=0;o"u"||!I?A:I(Uint8Array),ye={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?A:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?A:ArrayBuffer,"%ArrayIteratorPrototype%":xe&&I?I([][Symbol.iterator]()):A,"%AsyncFromSyncIteratorPrototype%":A,"%AsyncFunction%":Ae,"%AsyncGenerator%":Ae,"%AsyncGeneratorFunction%":Ae,"%AsyncIteratorPrototype%":Ae,"%Atomics%":typeof Atomics>"u"?A:Atomics,"%BigInt%":typeof BigInt>"u"?A:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?A:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?A:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?A:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":nl,"%eval%":eval,"%EvalError%":ol,"%Float32Array%":typeof Float32Array>"u"?A:Float32Array,"%Float64Array%":typeof Float64Array>"u"?A:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?A:FinalizationRegistry,"%Function%":ti,"%GeneratorFunction%":Ae,"%Int8Array%":typeof Int8Array>"u"?A:Int8Array,"%Int16Array%":typeof Int16Array>"u"?A:Int16Array,"%Int32Array%":typeof Int32Array>"u"?A:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":xe&&I?I(I([][Symbol.iterator]())):A,"%JSON%":typeof JSON=="object"?JSON:A,"%Map%":typeof Map>"u"?A:Map,"%MapIteratorPrototype%":typeof Map>"u"||!xe||!I?A:I(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?A:Promise,"%Proxy%":typeof Proxy>"u"?A:Proxy,"%RangeError%":il,"%ReferenceError%":sl,"%Reflect%":typeof Reflect>"u"?A:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?A:Set,"%SetIteratorPrototype%":typeof Set>"u"||!xe||!I?A:I(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?A:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":xe&&I?I(""[Symbol.iterator]()):A,"%Symbol%":xe?Symbol:A,"%SyntaxError%":Ce,"%ThrowTypeError%":ll,"%TypedArray%":cl,"%TypeError%":$e,"%Uint8Array%":typeof Uint8Array>"u"?A:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?A:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?A:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?A:Uint32Array,"%URIError%":al,"%WeakMap%":typeof WeakMap>"u"?A:WeakMap,"%WeakRef%":typeof WeakRef>"u"?A:WeakRef,"%WeakSet%":typeof WeakSet>"u"?A:WeakSet};if(I)try{null.error}catch(t){var fl=I(I(t));ye["%Error.prototype%"]=fl}var dl=function t(e){var r;if(e==="%AsyncFunction%")r=nr("async function () {}");else if(e==="%GeneratorFunction%")r=nr("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=nr("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var o=t("%AsyncGenerator%");o&&I&&(r=I(o.prototype))}return ye[e]=r,r},Rn={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},tt=Xr,wt=rl,pl=tt.call(Function.call,Array.prototype.concat),hl=tt.call(Function.apply,Array.prototype.splice),Cn=tt.call(Function.call,String.prototype.replace),xt=tt.call(Function.call,String.prototype.slice),gl=tt.call(Function.call,RegExp.prototype.exec),ml=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,yl=/\\(\\)?/g,vl=function(e){var r=xt(e,0,1),n=xt(e,-1);if(r==="%"&&n!=="%")throw new Ce("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Ce("invalid intrinsic syntax, expected opening `%`");var o=[];return Cn(e,ml,function(i,s,a,l){o[o.length]=a?Cn(l,yl,"$1"):s||i}),o},bl=function(e,r){var n=e,o;if(wt(Rn,n)&&(o=Rn[n],n="%"+o[0]+"%"),wt(ye,n)){var i=ye[n];if(i===Ae&&(i=dl(n)),typeof i>"u"&&!r)throw new $e("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:i}}throw new Ce("intrinsic "+e+" does not exist!")},Te=function(e,r){if(typeof e!="string"||e.length===0)throw new $e("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new $e('"allowMissing" argument must be a boolean');if(gl(/^%?[^%]*%?$/,e)===null)throw new Ce("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=vl(e),o=n.length>0?n[0]:"",i=bl("%"+o+"%",r),s=i.name,a=i.value,l=!1,u=i.alias;u&&(o=u[0],hl(n,pl([0,1],u)));for(var c=1,d=!0;c=n.length){var g=me(a,f);d=!!g,d&&"get"in g&&!("originalValue"in g.get)?a=g.get:a=a[f]}else d=wt(a,f),a=a[f];d&&!l&&(ye[s]=a)}}return a},ri={exports:{}},ir,Nn;function Zr(){if(Nn)return ir;Nn=1;var t=Te,e=t("%Object.defineProperty%",!0)||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return ir=e,ir}var Sl=Te,vt=Sl("%Object.getOwnPropertyDescriptor%",!0);if(vt)try{vt([],"length")}catch{vt=null}var ni=vt,_n=Zr(),wl=ei,Oe=et,In=ni,xl=function(e,r,n){if(!e||typeof e!="object"&&typeof e!="function")throw new Oe("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new Oe("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Oe("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Oe("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Oe("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Oe("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,a=arguments.length>6?arguments[6]:!1,l=!!In&&In(e,r);if(_n)_n(e,r,{configurable:s===null&&l?l.configurable:!s,enumerable:o===null&&l?l.enumerable:!o,value:n,writable:i===null&&l?l.writable:!i});else if(a||!o&&!i&&!s)e[r]=n;else throw new wl("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Pr=Zr(),oi=function(){return!!Pr};oi.hasArrayLengthDefineBug=function(){if(!Pr)return null;try{return Pr([],"length",{value:1}).length!==1}catch{return!0}};var Ol=oi,El=Te,Tn=xl,Pl=Ol(),kn=ni,Dn=et,Al=El("%Math.floor%"),Ll=function(e,r){if(typeof e!="function")throw new Dn("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||Al(r)!==r)throw new Dn("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],o=!0,i=!0;if("length"in e&&kn){var s=kn(e,"length");s&&!s.configurable&&(o=!1),s&&!s.writable&&(i=!1)}return(o||i||!n)&&(Pl?Tn(e,"length",r,!0,!0):Tn(e,"length",r)),e};(function(t){var e=Xr,r=Te,n=Ll,o=et,i=r("%Function.prototype.apply%"),s=r("%Function.prototype.call%"),a=r("%Reflect.apply%",!0)||e.call(s,i),l=Zr(),u=r("%Math.max%");t.exports=function(f){if(typeof f!="function")throw new o("a function is required");var y=a(e,s,arguments);return n(y,1+u(0,f.length-(arguments.length-1)),!0)};var c=function(){return a(e,i,arguments)};l?l(t.exports,"apply",{value:c}):t.exports.apply=c})(ri);var $l=ri.exports,ii=Te,si=$l,Rl=si(ii("String.prototype.indexOf")),Cl=function(e,r){var n=ii(e,!!r);return typeof n=="function"&&Rl(e,".prototype.")>-1?si(n):n};const Nl={},_l=Object.freeze(Object.defineProperty({__proto__:null,default:Nl},Symbol.toStringTag,{value:"Module"})),Il=Gi(_l);var en=typeof Map=="function"&&Map.prototype,sr=Object.getOwnPropertyDescriptor&&en?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Ot=en&&sr&&typeof sr.get=="function"?sr.get:null,Fn=en&&Map.prototype.forEach,tn=typeof Set=="function"&&Set.prototype,ar=Object.getOwnPropertyDescriptor&&tn?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Et=tn&&ar&&typeof ar.get=="function"?ar.get:null,jn=tn&&Set.prototype.forEach,Tl=typeof WeakMap=="function"&&WeakMap.prototype,Ke=Tl?WeakMap.prototype.has:null,kl=typeof WeakSet=="function"&&WeakSet.prototype,He=kl?WeakSet.prototype.has:null,Dl=typeof WeakRef=="function"&&WeakRef.prototype,Mn=Dl?WeakRef.prototype.deref:null,Fl=Boolean.prototype.valueOf,jl=Object.prototype.toString,Ml=Function.prototype.toString,Bl=String.prototype.match,rn=String.prototype.slice,de=String.prototype.replace,Ul=String.prototype.toUpperCase,Bn=String.prototype.toLowerCase,ai=RegExp.prototype.test,Un=Array.prototype.concat,te=Array.prototype.join,zl=Array.prototype.slice,zn=Math.floor,Ar=typeof BigInt=="function"?BigInt.prototype.valueOf:null,lr=Object.getOwnPropertySymbols,Lr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Ne=typeof Symbol=="function"&&typeof Symbol.iterator=="object",D=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Ne||"symbol")?Symbol.toStringTag:null,li=Object.prototype.propertyIsEnumerable,Vn=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function Kn(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||ai.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-zn(-t):zn(t);if(n!==t){var o=String(n),i=rn.call(e,o.length+1);return de.call(o,r,"$&_")+"."+de.call(de.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return de.call(e,r,"$&_")}var $r=Il,Hn=$r.custom,qn=ci(Hn)?Hn:null,Vl=function t(e,r,n,o){var i=r||{};if(ce(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ce(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=ce(i,"customInspect")?i.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ce(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ce(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=i.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return di(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var l=String(e);return a?Kn(e,l):l}if(typeof e=="bigint"){var u=String(e)+"n";return a?Kn(e,u):u}var c=typeof i.depth>"u"?5:i.depth;if(typeof n>"u"&&(n=0),n>=c&&c>0&&typeof e=="object")return Rr(e)?"[Array]":"[Object]";var d=au(i,n);if(typeof o>"u")o=[];else if(fi(o,e)>=0)return"[Circular]";function f(H,V,K){if(V&&(o=zl.call(o),o.push(V)),K){var Y={depth:i.depth};return ce(i,"quoteStyle")&&(Y.quoteStyle=i.quoteStyle),t(H,Y,n+1,o)}return t(H,i,n+1,o)}if(typeof e=="function"&&!Wn(e)){var y=Xl(e),p=st(e,f);return"[Function"+(y?": "+y:" (anonymous)")+"]"+(p.length>0?" { "+te.call(p,", ")+" }":"")}if(ci(e)){var g=Ne?de.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Lr.call(e);return typeof e=="object"&&!Ne?Me(g):g}if(ou(e)){for(var m="<"+Bn.call(String(e.nodeName)),v=e.attributes||[],b=0;b",m}if(Rr(e)){if(e.length===0)return"[]";var S=st(e,f);return d&&!su(S)?"["+Cr(S,d)+"]":"[ "+te.call(S,", ")+" ]"}if(ql(e)){var w=st(e,f);return!("cause"in Error.prototype)&&"cause"in e&&!li.call(e,"cause")?"{ ["+String(e)+"] "+te.call(Un.call("[cause]: "+f(e.cause),w),", ")+" }":w.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+te.call(w,", ")+" }"}if(typeof e=="object"&&s){if(qn&&typeof e[qn]=="function"&&$r)return $r(e,{depth:c-n});if(s!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(Zl(e)){var L=[];return Fn&&Fn.call(e,function(H,V){L.push(f(V,e,!0)+" => "+f(H,e))}),Jn("Map",Ot.call(e),L,d)}if(ru(e)){var P=[];return jn&&jn.call(e,function(H){P.push(f(H,e))}),Jn("Set",Et.call(e),P,d)}if(eu(e))return ur("WeakMap");if(nu(e))return ur("WeakSet");if(tu(e))return ur("WeakRef");if(Jl(e))return Me(f(Number(e)));if(Yl(e))return Me(f(Ar.call(e)));if(Gl(e))return Me(Fl.call(e));if(Wl(e))return Me(f(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(e===Yi)return"{ [object globalThis] }";if(!Hl(e)&&!Wn(e)){var E=st(e,f),M=Vn?Vn(e)===Object.prototype:e instanceof Object||e.constructor===Object,B=e instanceof Object?"":"null prototype",U=!M&&D&&Object(e)===e&&D in e?rn.call(pe(e),8,-1):B?"Object":"",z=M||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",he=z+(U||B?"["+te.call(Un.call([],U||[],B||[]),": ")+"] ":"");return E.length===0?he+"{}":d?he+"{"+Cr(E,d)+"}":he+"{ "+te.call(E,", ")+" }"}return String(e)};function ui(t,e,r){var n=(r.quoteStyle||e)==="double"?'"':"'";return n+t+n}function Kl(t){return de.call(String(t),/"/g,""")}function Rr(t){return pe(t)==="[object Array]"&&(!D||!(typeof t=="object"&&D in t))}function Hl(t){return pe(t)==="[object Date]"&&(!D||!(typeof t=="object"&&D in t))}function Wn(t){return pe(t)==="[object RegExp]"&&(!D||!(typeof t=="object"&&D in t))}function ql(t){return pe(t)==="[object Error]"&&(!D||!(typeof t=="object"&&D in t))}function Wl(t){return pe(t)==="[object String]"&&(!D||!(typeof t=="object"&&D in t))}function Jl(t){return pe(t)==="[object Number]"&&(!D||!(typeof t=="object"&&D in t))}function Gl(t){return pe(t)==="[object Boolean]"&&(!D||!(typeof t=="object"&&D in t))}function ci(t){if(Ne)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!Lr)return!1;try{return Lr.call(t),!0}catch{}return!1}function Yl(t){if(!t||typeof t!="object"||!Ar)return!1;try{return Ar.call(t),!0}catch{}return!1}var Ql=Object.prototype.hasOwnProperty||function(t){return t in this};function ce(t,e){return Ql.call(t,e)}function pe(t){return jl.call(t)}function Xl(t){if(t.name)return t.name;var e=Bl.call(Ml.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function fi(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;re.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return di(rn.call(t,0,e.maxStringLength),e)+n}var o=de.call(de.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,iu);return ui(o,"single",e)}function iu(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+Ul.call(e.toString(16))}function Me(t){return"Object("+t+")"}function ur(t){return t+" { ? }"}function Jn(t,e,r,n){var o=n?Cr(r,n):te.call(r,", ");return t+" ("+e+") {"+o+"}"}function su(t){for(var e=0;e=0)return!1;return!0}function au(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=te.call(Array(t.indent+1)," ");else return null;return{base:r,prev:te.call(Array(e+1),r)}}function Cr(t,e){if(t.length===0)return"";var r=` `+e.prev+e.base;return r+te.call(t,","+r)+` -`+e.prev}function st(t,e){var r=Rr(t),n=[];if(r){n.length=t.length;for(var o=0;o1;){var r=e.pop(),n=r.obj[r.prop];if(ge(n)){for(var o=[],i=0;i=dr?s.slice(l,l+dr):s,c=[],d=0;d=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||i===xu.RFC1738&&(f===40||f===41)){c[c.length]=u.charAt(d);continue}if(f<128){c[c.length]=Z[f];continue}if(f<2048){c[c.length]=Z[192|f>>6]+Z[128|f&63];continue}if(f<55296||f>=57344){c[c.length]=Z[224|f>>12]+Z[128|f>>6&63]+Z[128|f&63];continue}d+=1,f=65536+((f&1023)<<10|u.charCodeAt(d)&1023),c[c.length]=Z[240|f>>18]+Z[128|f>>12&63]+Z[128|f>>6&63]+Z[128|f&63]}a+=c.join("")}return a},$u=function(e){for(var r=[{obj:{o:e},prop:"o"}],n=[],o=0;o"u"&&(L=0)}if(typeof c=="function"?S=c(r,S):S instanceof Date?S=y(S):n==="comma"&&ee(S)&&(S=bt.maybeMap(S,function(ie){return ie instanceof Date?y(ie):ie})),S===null){if(s)return u&&!m?u(r,_.encoder,v,"key",p):r;S=""}if(Du(S)||bt.isBuffer(S)){if(u){var M=m?r:u(r,_.encoder,v,"key",p);return[g(M)+"="+g(u(S,_.encoder,v,"value",p))]}return[g(r)+"="+g(String(S))]}var B=[];if(typeof S>"u")return B;var U;if(n==="comma"&&ee(S))m&&u&&(S=bt.maybeMap(S,u)),U=[{value:S.length>0?S.join(",")||null:void 0}];else if(ee(c))U=c;else{var z=Object.keys(S);U=d?z.sort(d):z}var he=l?r.replace(/\./g,"%2E"):r,H=o&&ee(S)&&S.length===1?he+"[]":he;if(i&&ee(S)&&S.length===0)return H+"[]";for(var V=0;V"u"?e.encodeDotInKeys===!0?!0:_.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:_.addQueryPrefix,allowDots:a,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:_.allowEmptyArrays,arrayFormat:s,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:_.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?_.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:_.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:_.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:_.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:_.encodeValuesOnly,filter:i,format:n,formatter:o,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:_.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:_.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:_.strictNullHandling}},Mu=function(t,e){var r=t,n=ju(e),o,i;typeof n.filter=="function"?(i=n.filter,r=i("",r)):ee(n.filter)&&(i=n.filter,o=i);var s=[];if(typeof r!="object"||r===null)return"";var a=yi[n.arrayFormat],l=a==="comma"&&n.commaRoundTrip;o||(o=Object.keys(r)),n.sort&&o.sort(n.sort);for(var u=mi(),c=0;c0?y+f:""},_e=gi,Nr=Object.prototype.hasOwnProperty,Bu=Array.isArray,C={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:_e.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Uu=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},bi=function(t,e){return t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1?t.split(","):t},zu="utf8=%26%2310003%3B",Vu="utf8=%E2%9C%93",Ku=function(e,r){var n={__proto__:null},o=r.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=r.parameterLimit===1/0?void 0:r.parameterLimit,s=o.split(r.delimiter,i),a=-1,l,u=r.charset;if(r.charsetSentinel)for(l=0;l-1&&(p=Bu(p)?[p]:p);var g=Nr.call(n,y);g&&r.duplicates==="combine"?n[y]=_e.combine(n[y],p):(!g||r.duplicates==="last")&&(n[y]=p)}return n},Hu=function(t,e,r,n){for(var o=n?e:bi(e,r),i=t.length-1;i>=0;--i){var s,a=t[i];if(a==="[]"&&r.parseArrays)s=r.allowEmptyArrays&&o===""?[]:[].concat(o);else{s=r.plainObjects?Object.create(null):{};var l=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a,u=r.decodeDotInKeys?l.replace(/%2E/g,"."):l,c=parseInt(u,10);!r.parseArrays&&u===""?s={0:o}:!isNaN(c)&&a!==u&&String(c)===u&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(s=[],s[c]=o):u!=="__proto__"&&(s[u]=o)}o=s}return o},qu=function(e,r,n,o){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,l=n.depth>0&&s.exec(i),u=l?i.slice(0,l.index):i,c=[];if(u){if(!n.plainObjects&&Nr.call(Object.prototype,u)&&!n.allowPrototypes)return;c.push(u)}for(var d=0;n.depth>0&&(l=a.exec(i))!==null&&d"u"?C.charset:e.charset,n=typeof e.duplicates>"u"?C.duplicates:e.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var o=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:C.allowDots:!!e.allowDots;return{allowDots:o,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:C.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:C.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:C.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:C.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:C.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:C.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:C.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:C.decoder,delimiter:typeof e.delimiter=="string"||_e.isRegExp(e.delimiter)?e.delimiter:C.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:C.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:C.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:C.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:C.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:C.strictNullHandling}},Ju=function(t,e){var r=Wu(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof t=="string"?Ku(t,r):t,o=r.plainObjects?Object.create(null):{},i=Object.keys(n),s=0;s1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,r)}init(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=e||ec,this.options=r,this.debug=r.debug}log(){for(var e=arguments.length,r=new Array(e),n=0;n{this.observers[n]||(this.observers[n]=new Map);const o=this.observers[n].get(r)||0;this.observers[n].set(r,o+1)}),this}off(e,r){if(this.observers[e]){if(!r){delete this.observers[e];return}this.observers[e].delete(r)}}emit(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o{let[a,l]=s;for(let u=0;u{let[a,l]=s;for(let u=0;u{t=n,e=o});return r.resolve=t,r.reject=e,r}function Yn(t){return t==null?"":""+t}function tc(t,e,r){t.forEach(n=>{e[n]&&(r[n]=e[n])})}const rc=/###/g;function We(t,e,r){function n(a){return a&&a.indexOf("###")>-1?a.replace(rc,"."):a}function o(){return!t||typeof t=="string"}const i=typeof e!="string"?e:e.split(".");let s=0;for(;s":">",'"':""","'":"'","/":"/"};function sc(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,e=>ic[e]):t}class ac{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const r=this.regExpMap.get(e);if(r!==void 0)return r;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}const lc=[" ",",","?","!",";"],uc=new ac(20);function cc(t,e,r){e=e||"",r=r||"";const n=lc.filter(s=>e.indexOf(s)<0&&r.indexOf(s)<0);if(n.length===0)return!0;const o=uc.getRegExp(`(${n.map(s=>s==="?"?"\\?":s).join("|")})`);let i=!o.test(t);if(!i){const s=t.indexOf(r);s>0&&!o.test(t.substring(0,s))&&(i=!0)}return i}function _r(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!t)return;if(t[e])return t[e];const n=e.split(r);let o=t;for(let i=0;i-1&&l0?t.replace("_","-"):t}class Xn extends Mt{constructor(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const r=this.options.ns.indexOf(e);r>-1&&this.options.ns.splice(r,1)}getResource(e,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,s=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.indexOf(".")>-1?a=e.split("."):(a=[e,r],n&&(Array.isArray(n)?a.push(...n):typeof n=="string"&&i?a.push(...n.split(i)):a.push(n)));const l=At(this.data,a);return!l&&!r&&!n&&e.indexOf(".")>-1&&(e=a[0],r=a[1],n=a.slice(2).join(".")),l||!s||typeof n!="string"?l:_r(this.data&&this.data[e]&&this.data[e][r],n,i)}addResource(e,r,n,o){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let a=[e,r];n&&(a=a.concat(s?n.split(s):n)),e.indexOf(".")>-1&&(a=e.split("."),o=r,r=a[1]),this.addNamespaces(r),Qn(this.data,a,o),i.silent||this.emit("added",e,r,n,o)}addResources(e,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const i in n)(typeof n[i]=="string"||Array.isArray(n[i]))&&this.addResource(e,r,i,n[i],{silent:!0});o.silent||this.emit("added",e,r,n)}addResourceBundle(e,r,n,o,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},a=[e,r];e.indexOf(".")>-1&&(a=e.split("."),o=n,n=r,r=a[1]),this.addNamespaces(r);let l=At(this.data,a)||{};s.skipCopy||(n=JSON.parse(JSON.stringify(n))),o?Si(l,n,i):l={...l,...n},Qn(this.data,a,l),s.silent||this.emit("added",e,r,n)}removeResourceBundle(e,r){this.hasResourceBundle(e,r)&&delete this.data[e][r],this.removeNamespaces(r),this.emit("removed",e,r)}hasResourceBundle(e,r){return this.getResource(e,r)!==void 0}getResourceBundle(e,r){return r||(r=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(e,r)}:this.getResource(e,r)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const r=this.getDataByLanguage(e);return!!(r&&Object.keys(r)||[]).find(o=>r[o]&&Object.keys(r[o]).length>0)}toJSON(){return this.data}}var wi={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,r,n,o){return t.forEach(i=>{this.processors[i]&&(e=this.processors[i].process(e,r,n,o))}),e}};const Zn={};class $t extends Mt{constructor(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),tc(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=ne.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;const n=this.resolve(e,r);return n&&n.res!==void 0}extractFromKey(e,r){let n=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;n===void 0&&(n=":");const o=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let i=r.ns||this.options.defaultNS||[];const s=n&&e.indexOf(n)>-1,a=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!cc(e,n,o);if(s&&!a){const l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:i};const u=e.split(n);(n!==o||n===o&&this.options.ns.indexOf(u[0])>-1)&&(i=u.shift()),e=u.join(o)}return typeof i=="string"&&(i=[i]),{key:e,namespaces:i}}translate(e,r,n){if(typeof r!="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),typeof r=="object"&&(r={...r}),r||(r={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const o=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,i=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:s,namespaces:a}=this.extractFromKey(e[e.length-1],r),l=a[a.length-1],u=r.lng||this.language,c=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(c){const w=r.nsSeparator||this.options.nsSeparator;return o?{res:`${l}${w}${s}`,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:`${l}${w}${s}`}return o?{res:s,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:s}const d=this.resolve(e,r);let f=d&&d.res;const y=d&&d.usedKey||s,p=d&&d.exactUsedKey||s,g=Object.prototype.toString.apply(f),m=["[object Number]","[object Function]","[object RegExp]"],v=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject;if(b&&f&&(typeof f!="string"&&typeof f!="boolean"&&typeof f!="number")&&m.indexOf(g)<0&&!(typeof v=="string"&&Array.isArray(f))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const w=this.options.returnedObjectHandler?this.options.returnedObjectHandler(y,f,{...r,ns:a}):`key '${s} (${this.language})' returned an object instead of string.`;return o?(d.res=w,d.usedParams=this.getUsedParamsDetails(r),d):w}if(i){const w=Array.isArray(f),L=w?[]:{},P=w?p:y;for(const E in f)if(Object.prototype.hasOwnProperty.call(f,E)){const M=`${P}${i}${E}`;L[E]=this.translate(M,{...r,joinArrays:!1,ns:a}),L[E]===M&&(L[E]=f[E])}f=L}}else if(b&&typeof v=="string"&&Array.isArray(f))f=f.join(v),f&&(f=this.extendTranslation(f,e,r,n));else{let w=!1,L=!1;const P=r.count!==void 0&&typeof r.count!="string",E=$t.hasDefaultValue(r),M=P?this.pluralResolver.getSuffix(u,r.count,r):"",B=r.ordinal&&P?this.pluralResolver.getSuffix(u,r.count,{ordinal:!1}):"",U=P&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),z=U&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${M}`]||r[`defaultValue${B}`]||r.defaultValue;!this.isValidLookup(f)&&E&&(w=!0,f=z),this.isValidLookup(f)||(L=!0,f=s);const H=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&L?void 0:f,V=E&&z!==f&&this.options.updateMissing;if(L||w||V){if(this.logger.log(V?"updateKey":"missingKey",u,l,s,V?z:f),i){const F=this.resolve(s,{...r,keySeparator:!1});F&&F.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let K=[];const Y=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Y&&Y[0])for(let F=0;F{const cn=E&&ie!==f?ie:H;this.options.missingKeyHandler?this.options.missingKeyHandler(F,l,Q,cn,V,r):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(F,l,Q,cn,V,r),this.emit("missingKey",F,l,Q,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&P?K.forEach(F=>{const Q=this.pluralResolver.getSuffixes(F,r);U&&r[`defaultValue${this.options.pluralSeparator}zero`]&&Q.indexOf(`${this.options.pluralSeparator}zero`)<0&&Q.push(`${this.options.pluralSeparator}zero`),Q.forEach(ie=>{Se([F],s+ie,r[`defaultValue${ie}`]||z)})}):Se(K,s,z))}f=this.extendTranslation(f,e,r,d,n),L&&f===s&&this.options.appendNamespaceToMissingKey&&(f=`${l}:${s}`),(L||w)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${s}`:s,w?f:void 0):f=this.options.parseMissingKeyHandler(f))}return o?(d.res=f,d.usedParams=this.getUsedParamsDetails(r),d):f}extendTranslation(e,r,n,o,i){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const u=typeof e=="string"&&(n&&n.interpolation&&n.interpolation.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(u){const f=e.match(this.interpolator.nestingRegexp);c=f&&f.length}let d=n.replace&&typeof n.replace!="string"?n.replace:n;if(this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),e=this.interpolator.interpolate(e,d,n.lng||this.language,n),u){const f=e.match(this.interpolator.nestingRegexp),y=f&&f.length;c1&&arguments[1]!==void 0?arguments[1]:{},n,o,i,s,a;return typeof e=="string"&&(e=[e]),e.forEach(l=>{if(this.isValidLookup(n))return;const u=this.extractFromKey(l,r),c=u.key;o=c;let d=u.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const f=r.count!==void 0&&typeof r.count!="string",y=f&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),p=r.context!==void 0&&(typeof r.context=="string"||typeof r.context=="number")&&r.context!=="",g=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);d.forEach(m=>{this.isValidLookup(n)||(a=m,!Zn[`${g[0]}-${m}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(Zn[`${g[0]}-${m}`]=!0,this.logger.warn(`key "${o}" for languages "${g.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),g.forEach(v=>{if(this.isValidLookup(n))return;s=v;const b=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(b,c,v,m,r);else{let w;f&&(w=this.pluralResolver.getSuffix(v,r.count,r));const L=`${this.options.pluralSeparator}zero`,P=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(f&&(b.push(c+w),r.ordinal&&w.indexOf(P)===0&&b.push(c+w.replace(P,this.options.pluralSeparator)),y&&b.push(c+L)),p){const E=`${c}${this.options.contextSeparator}${r.context}`;b.push(E),f&&(b.push(E+w),r.ordinal&&w.indexOf(P)===0&&b.push(E+w.replace(P,this.options.pluralSeparator)),y&&b.push(E+L))}}let S;for(;S=b.pop();)this.isValidLookup(n)||(i=S,n=this.getResource(v,m,S,r))}))})}),{res:n,usedKey:o,exactUsedKey:i,usedLng:s,usedNS:a}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,r,n,o):this.resourceStore.getResource(e,r,n,o)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&typeof e.replace!="string";let o=n?e.replace:e;if(n&&typeof e.count<"u"&&(o.count=e.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!n){o={...o};for(const i of r)delete o[i]}return o}static hasDefaultValue(e){const r="defaultValue";for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&r===n.substring(0,r.length)&&e[n]!==void 0)return!0;return!1}}function hr(t){return t.charAt(0).toUpperCase()+t.slice(1)}class eo{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ne.create("languageUtils")}getScriptPartFromCode(e){if(e=Lt(e),!e||e.indexOf("-")<0)return null;const r=e.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(e){if(e=Lt(e),!e||e.indexOf("-")<0)return e;const r=e.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(e){if(typeof e=="string"&&e.indexOf("-")>-1){const r=["hans","hant","latn","cyrl","cans","mong","arab"];let n=e.split("-");return this.options.lowerCaseLng?n=n.map(o=>o.toLowerCase()):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=hr(n[1].toLowerCase()))):n.length===3&&(n[0]=n[0].toLowerCase(),n[1].length===2&&(n[1]=n[1].toUpperCase()),n[0]!=="sgn"&&n[2].length===2&&(n[2]=n[2].toUpperCase()),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=hr(n[1].toLowerCase())),r.indexOf(n[2].toLowerCase())>-1&&(n[2]=hr(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let r;return e.forEach(n=>{if(r)return;const o=this.formatLanguageCode(n);(!this.options.supportedLngs||this.isSupportedCode(o))&&(r=o)}),!r&&this.options.supportedLngs&&e.forEach(n=>{if(r)return;const o=this.getLanguagePartFromCode(n);if(this.isSupportedCode(o))return r=o;r=this.options.supportedLngs.find(i=>{if(i===o)return i;if(!(i.indexOf("-")<0&&o.indexOf("-")<0)&&(i.indexOf("-")>0&&o.indexOf("-")<0&&i.substring(0,i.indexOf("-"))===o||i.indexOf(o)===0&&o.length>1))return i})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(e,r){if(!e)return[];if(typeof e=="function"&&(e=e(r)),typeof e=="string"&&(e=[e]),Array.isArray(e))return e;if(!r)return e.default||[];let n=e[r];return n||(n=e[this.getScriptPartFromCode(r)]),n||(n=e[this.formatLanguageCode(r)]),n||(n=e[this.getLanguagePartFromCode(r)]),n||(n=e.default),n||[]}toResolveHierarchy(e,r){const n=this.getFallbackCodes(r||this.options.fallbackLng||[],e),o=[],i=s=>{s&&(this.isSupportedCode(s)?o.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))};return typeof e=="string"&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(e))):typeof e=="string"&&i(this.formatLanguageCode(e)),n.forEach(s=>{o.indexOf(s)<0&&i(this.formatLanguageCode(s))}),o}}let fc=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],dc={1:function(t){return+(t>1)},2:function(t){return+(t!=1)},3:function(t){return 0},4:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},5:function(t){return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},6:function(t){return t==1?0:t>=2&&t<=4?1:2},7:function(t){return t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},8:function(t){return t==1?0:t==2?1:t!=8&&t!=11?2:3},9:function(t){return+(t>=2)},10:function(t){return t==1?0:t==2?1:t<7?2:t<11?3:4},11:function(t){return t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3},12:function(t){return+(t%10!=1||t%100==11)},13:function(t){return+(t!==0)},14:function(t){return t==1?0:t==2?1:t==3?2:3},15:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2},16:function(t){return t%10==1&&t%100!=11?0:t!==0?1:2},17:function(t){return t==1||t%10==1&&t%100!=11?0:1},18:function(t){return t==0?0:t==1?1:2},19:function(t){return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3},20:function(t){return t==1?0:t==0||t%100>0&&t%100<20?1:2},21:function(t){return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0},22:function(t){return t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3}};const pc=["v1","v2","v3"],hc=["v4"],to={zero:0,one:1,two:2,few:3,many:4,other:5};function gc(){const t={};return fc.forEach(e=>{e.lngs.forEach(r=>{t[r]={numbers:e.nr,plurals:dc[e.fc]}})}),t}class mc{constructor(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=r,this.logger=ne.create("pluralResolver"),(!this.options.compatibilityJSON||hc.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=gc()}addRule(e,r){this.rules[e]=r}getRule(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Lt(e==="dev"?"en":e),{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.getRule(e,r);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,n).map(o=>`${r}${o}`)}getSuffixes(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.getRule(e,r);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((o,i)=>to[o]-to[i]).map(o=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o}`):n.numbers.map(o=>this.getSuffix(e,o,r)):[]}getSuffix(e,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=this.getRule(e,n);return o?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o.select(r)}`:this.getSuffixRetroCompatible(o,r):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,r){const n=e.noAbs?e.plurals(r):e.plurals(Math.abs(r));let o=e.numbers[n];this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));const i=()=>this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString();return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?`_plural_${o.toString()}`:i():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1?i():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!pc.includes(this.options.compatibilityJSON)}}function ro(t,e,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=oc(t,e,r);return!i&&o&&typeof r=="string"&&(i=_r(t,r,n),i===void 0&&(i=_r(e,r,n))),i}class yc{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ne.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(r=>r),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:r,escapeValue:n,useRawValueToEscape:o,prefix:i,prefixEscaped:s,suffix:a,suffixEscaped:l,formatSeparator:u,unescapeSuffix:c,unescapePrefix:d,nestingPrefix:f,nestingPrefixEscaped:y,nestingSuffix:p,nestingSuffixEscaped:g,nestingOptionsSeparator:m,maxReplaces:v,alwaysFormat:b}=e.interpolation;this.escape=r!==void 0?r:sc,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=i?Ee(i):s||"{{",this.suffix=a?Ee(a):l||"}}",this.formatSeparator=u||",",this.unescapePrefix=c?"":d||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=f?Ee(f):y||Ee("$t("),this.nestingSuffix=p?Ee(p):g||Ee(")"),this.nestingOptionsSeparator=m||",",this.maxReplaces=v||1e3,this.alwaysFormat=b!==void 0?b:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(r,n)=>r&&r.source===n?(r.lastIndex=0,r):new RegExp(n,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,r,n,o){let i,s,a;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(p){return p.replace(/\$/g,"$$$$")}const c=p=>{if(p.indexOf(this.formatSeparator)<0){const b=ro(r,l,p,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(b,void 0,n,{...o,...r,interpolationkey:p}):b}const g=p.split(this.formatSeparator),m=g.shift().trim(),v=g.join(this.formatSeparator).trim();return this.format(ro(r,l,m,this.options.keySeparator,this.options.ignoreJSONStructure),v,n,{...o,...r,interpolationkey:m})};this.resetRegExp();const d=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,f=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:p=>u(p)},{regex:this.regexp,safeValue:p=>this.escapeValue?u(this.escape(p)):u(p)}].forEach(p=>{for(a=0;i=p.regex.exec(e);){const g=i[1].trim();if(s=c(g),s===void 0)if(typeof d=="function"){const v=d(e,i,o);s=typeof v=="string"?v:""}else if(o&&Object.prototype.hasOwnProperty.call(o,g))s="";else if(f){s=i[0];continue}else this.logger.warn(`missed to pass in variable ${g} for interpolating ${e}`),s="";else typeof s!="string"&&!this.useRawValueToEscape&&(s=Yn(s));const m=p.safeValue(s);if(e=e.replace(i[0],m),f?(p.regex.lastIndex+=s.length,p.regex.lastIndex-=i[0].length):p.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),e}nest(e,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,i,s;function a(l,u){const c=this.nestingOptionsSeparator;if(l.indexOf(c)<0)return l;const d=l.split(new RegExp(`${c}[ ]*{`));let f=`{${d[1]}`;l=d[0],f=this.interpolate(f,s);const y=f.match(/'/g),p=f.match(/"/g);(y&&y.length%2===0&&!p||p.length%2!==0)&&(f=f.replace(/'/g,'"'));try{s=JSON.parse(f),u&&(s={...u,...s})}catch(g){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,g),`${l}${c}${f}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,l}for(;o=this.nestingRegexp.exec(e);){let l=[];s={...n},s=s.replace&&typeof s.replace!="string"?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let u=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){const c=o[1].split(this.formatSeparator).map(d=>d.trim());o[1]=c.shift(),l=c,u=!0}if(i=r(a.call(this,o[1].trim(),s),s),i&&o[0]===e&&typeof i!="string")return i;typeof i!="string"&&(i=Yn(i)),i||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${e}`),i=""),u&&(i=l.reduce((c,d)=>this.format(c,d,n.lng,{...n,interpolationkey:o[1].trim()}),i.trim())),e=e.replace(o[0],i),this.regexp.lastIndex=0}return e}}function vc(t){let e=t.toLowerCase().trim();const r={};if(t.indexOf("(")>-1){const n=t.split("(");e=n[0].toLowerCase().trim();const o=n[1].substring(0,n[1].length-1);e==="currency"&&o.indexOf(":")<0?r.currency||(r.currency=o.trim()):e==="relativetime"&&o.indexOf(":")<0?r.range||(r.range=o.trim()):o.split(";").forEach(s=>{if(s){const[a,...l]=s.split(":"),u=l.join(":").trim().replace(/^'+|'+$/g,""),c=a.trim();r[c]||(r[c]=u),u==="false"&&(r[c]=!1),u==="true"&&(r[c]=!0),isNaN(u)||(r[c]=parseInt(u,10))}})}return{formatName:e,formatOptions:r}}function Pe(t){const e={};return function(n,o,i){const s=o+JSON.stringify(i);let a=e[s];return a||(a=t(Lt(o),i),e[s]=a),a(n)}}class bc{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ne.create("formatter"),this.options=e,this.formats={number:Pe((r,n)=>{const o=new Intl.NumberFormat(r,{...n});return i=>o.format(i)}),currency:Pe((r,n)=>{const o=new Intl.NumberFormat(r,{...n,style:"currency"});return i=>o.format(i)}),datetime:Pe((r,n)=>{const o=new Intl.DateTimeFormat(r,{...n});return i=>o.format(i)}),relativetime:Pe((r,n)=>{const o=new Intl.RelativeTimeFormat(r,{...n});return i=>o.format(i,n.range||"day")}),list:Pe((r,n)=>{const o=new Intl.ListFormat(r,{...n});return i=>o.format(i)})},this.init(e)}init(e){const n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}add(e,r){this.formats[e.toLowerCase().trim()]=r}addCached(e,r){this.formats[e.toLowerCase().trim()]=Pe(r)}format(e,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return r.split(this.formatSeparator).reduce((a,l)=>{const{formatName:u,formatOptions:c}=vc(l);if(this.formats[u]){let d=a;try{const f=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},y=f.locale||f.lng||o.locale||o.lng||n;d=this.formats[u](a,y,{...c,...o,...f})}catch(f){this.logger.warn(f)}return d}else this.logger.warn(`there was no format function for ${u}`);return a},e)}}function Sc(t,e){t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)}class wc extends Mt{constructor(e,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=r,this.services=n,this.languageUtils=n.languageUtils,this.options=o,this.logger=ne.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,o.backend,o)}queueLoad(e,r,n,o){const i={},s={},a={},l={};return e.forEach(u=>{let c=!0;r.forEach(d=>{const f=`${u}|${d}`;!n.reload&&this.store.hasResourceBundle(u,d)?this.state[f]=2:this.state[f]<0||(this.state[f]===1?s[f]===void 0&&(s[f]=!0):(this.state[f]=1,c=!1,s[f]===void 0&&(s[f]=!0),i[f]===void 0&&(i[f]=!0),l[d]===void 0&&(l[d]=!0)))}),c||(a[u]=!0)}),(Object.keys(i).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(i),pending:Object.keys(s),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(l)}}loaded(e,r,n){const o=e.split("|"),i=o[0],s=o[1];r&&this.emit("failedLoading",i,s,r),n&&this.store.addResourceBundle(i,s,n,void 0,void 0,{skipCopy:!0}),this.state[e]=r?-1:2;const a={};this.queue.forEach(l=>{nc(l.loaded,[i],s),Sc(l,e),r&&l.errors.push(r),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(u=>{a[u]||(a[u]={});const c=l.loaded[u];c.length&&c.forEach(d=>{a[u][d]===void 0&&(a[u][d]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(l=>!l.done)}read(e,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!e.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:r,fcName:n,tried:o,wait:i,callback:s});return}this.readingCalls++;const a=(u,c)=>{if(this.readingCalls--,this.waitingReads.length>0){const d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(u&&c&&o{this.read.call(this,e,r,n,o+1,i*2,s)},i);return}s(u,c)},l=this.backend[n].bind(this.backend);if(l.length===2){try{const u=l(e,r);u&&typeof u.then=="function"?u.then(c=>a(null,c)).catch(a):a(null,u)}catch(u){a(u)}return}return l(e,r,a)}prepareLoading(e,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();typeof e=="string"&&(e=this.languageUtils.toResolveHierarchy(e)),typeof r=="string"&&(r=[r]);const i=this.queueLoad(e,r,n,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach(s=>{this.loadOne(s)})}load(e,r,n){this.prepareLoading(e,r,{},n)}reload(e,r,n){this.prepareLoading(e,r,{reload:!0},n)}loadOne(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const n=e.split("|"),o=n[0],i=n[1];this.read(o,i,"read",void 0,void 0,(s,a)=>{s&&this.logger.warn(`${r}loading namespace ${i} for language ${o} failed`,s),!s&&a&&this.logger.log(`${r}loaded namespace ${i} for language ${o}`,a),this.loaded(e,s,a)})}saveMissing(e,r,n,o,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)){this.logger.warn(`did not save key "${n}" as the namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(n==null||n==="")){if(this.backend&&this.backend.create){const l={...s,isUpdate:i},u=this.backend.create.bind(this.backend);if(u.length<6)try{let c;u.length===5?c=u(e,r,n,o,l):c=u(e,r,n,o),c&&typeof c.then=="function"?c.then(d=>a(null,d)).catch(a):a(null,c)}catch(c){a(c)}else u(e,r,n,o,a,l)}!e||!e[0]||this.store.addResource(e[0],r,n,o)}}}function no(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){let r={};if(typeof e[1]=="object"&&(r=e[1]),typeof e[1]=="string"&&(r.defaultValue=e[1]),typeof e[2]=="string"&&(r.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(o=>{r[o]=n[o]})}return r},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function oo(t){return typeof t.ns=="string"&&(t.ns=[t.ns]),typeof t.fallbackLng=="string"&&(t.fallbackLng=[t.fallbackLng]),typeof t.fallbackNS=="string"&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function ut(){}function xc(t){Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(r=>{typeof t[r]=="function"&&(t[r]=t[r].bind(t))})}class Ge extends Mt{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(super(),this.options=oo(e),this.services={},this.logger=ne,this.modules={external:[]},xc(this),r&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,r),this;setTimeout(()=>{this.init(e,r)},0)}}init(){var e=this;let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof r=="function"&&(n=r,r={}),!r.defaultNS&&r.defaultNS!==!1&&r.ns&&(typeof r.ns=="string"?r.defaultNS=r.ns:r.ns.indexOf("translation")<0&&(r.defaultNS=r.ns[0]));const o=no();this.options={...o,...this.options,...oo(r)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...o.interpolation,...this.options.interpolation}),r.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=r.keySeparator),r.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=r.nsSeparator);function i(c){return c?typeof c=="function"?new c:c:null}if(!this.options.isClone){this.modules.logger?ne.init(i(this.modules.logger),this.options):ne.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:typeof Intl<"u"&&(c=bc);const d=new eo(this.options);this.store=new Xn(this.options.resources,this.options);const f=this.services;f.logger=ne,f.resourceStore=this.store,f.languageUtils=d,f.pluralResolver=new mc(d,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(f.formatter=i(c),f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new yc(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new wc(i(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",function(y){for(var p=arguments.length,g=new Array(p>1?p-1:0),m=1;m1?p-1:0),m=1;m{y.init&&y.init(this)})}if(this.format=this.options.interpolation.format,n||(n=ut),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(c=>{this[c]=function(){return e.store[c](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=function(){return e.store[c](...arguments),e}});const l=Be(),u=()=>{const c=(d,f)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(f),n(d,f)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),l}loadResources(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ut;const o=typeof e=="string"?e:this.language;if(typeof e=="function"&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(o&&o.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();const i=[],s=a=>{if(!a||a==="cimode")return;this.services.languageUtils.toResolveHierarchy(a).forEach(u=>{u!=="cimode"&&i.indexOf(u)<0&&i.push(u)})};o?s(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>s(l)),this.options.preload&&this.options.preload.forEach(a=>s(a)),this.services.backendConnector.load(i,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(a)})}else n(null)}reloadResources(e,r,n){const o=Be();return e||(e=this.languages),r||(r=this.options.ns),n||(n=ut),this.services.backendConnector.reload(e,r,i=>{o.resolve(),n(i)}),o}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&wi.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(let r=0;r-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}changeLanguage(e,r){var n=this;this.isLanguageChangingTo=e;const o=Be();this.emit("languageChanging",e);const i=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},s=(l,u)=>{u?(i(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,o.resolve(function(){return n.t(...arguments)}),r&&r(l,function(){return n.t(...arguments)})},a=l=>{!e&&!l&&this.services.languageDetector&&(l=[]);const u=typeof l=="string"?l:this.services.languageUtils.getBestMatchFromCodes(l);u&&(this.language||i(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,c=>{s(c,u)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),o}getFixedT(e,r,n){var o=this;const i=function(s,a){let l;if(typeof a!="object"){for(var u=arguments.length,c=new Array(u>2?u-2:0),d=2;d`${l.keyPrefix}${f}${p}`):y=l.keyPrefix?`${l.keyPrefix}${f}${s}`:s,o.t(y,l)};return typeof e=="string"?i.lng=e:i.lngs=e,i.ns=r,i.keyPrefix=n,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=r.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const s=(a,l)=>{const u=this.services.backendConnector.state[`${a}|${l}`];return u===-1||u===2};if(r.precheck){const a=r.precheck(this,s);if(a!==void 0)return a}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(n,e)&&(!o||s(i,e)))}loadNamespaces(e,r){const n=Be();return this.options.ns?(typeof e=="string"&&(e=[e]),e.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{n.resolve(),r&&r(o)}),n):(r&&r(),Promise.resolve())}loadLanguages(e,r){const n=Be();typeof e=="string"&&(e=[e]);const o=this.options.preload||[],i=e.filter(s=>o.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return i.length?(this.options.preload=o.concat(i),this.loadResources(s=>{n.resolve(),r&&r(s)}),n):(r&&r(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],n=this.services&&this.services.languageUtils||new eo(no());return r.indexOf(n.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new Ge(e,r)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ut;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const o={...this.options,...e,isClone:!0},i=new Ge(o);return(e.debug!==void 0||e.prefix!==void 0)&&(i.logger=i.logger.clone(e)),["store","services","language"].forEach(a=>{i[a]=this[a]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},n&&(i.store=new Xn(this.store.data,o),i.services.resourceStore=i.store),i.translator=new $t(i.services,o),i.translator.on("*",function(a){for(var l=arguments.length,u=new Array(l>1?l-1:0),c=1;ct.split(",").map((e,r)=>{e=e.trim();const n=e.replace(/([&*]|\+\+)/g,""),o=/^\[/.test(n)?n.match(/^\[(.*)\]$/)[1].split("+"):n;return kr(n,o,/\&/.test(e),/\*/.test(e),/\+\+/.test(e),Array.isArray(o),r===0)});function Pc(t,e,r,n){const o=t.db.createObjectStore(e,r.keyPath?{keyPath:r.keyPath,autoIncrement:r.auto}:{autoIncrement:r.auto});return n.forEach(i=>Tr(o,i)),o}function Tr(t,e){t.createIndex(e.name,e.keyPath,{unique:e.unique,multiEntry:e.multi})}function kr(t,e,r,n,o,i,s){return{name:t,keyPath:e,unique:r,multi:n,auto:o,compound:i,src:(r&&!s?"&":"")+(n?"*":"")+(o?"++":"")+xi(e)}}function Oi(t,e,r){return{name:t,primKey:e,indexes:r,mappedClass:null,idxByName:Ac(r,n=>[n.name,n])}}function Ei(t,e){const r={};return[...t.objectStoreNames].forEach(o=>{const i=e.objectStore(o);let s=i.keyPath;const a=kr(xi(s),s||"",!1,!1,!!i.autoIncrement,s&&typeof s!="string",!0),l=[];for(let c=0;c0||a.add.length>0||a.change.length>0)&&n.change.push(a)}}}return n}function Ac(t,e){return t.reduce((r,n,o)=>{var i=e(n,o);return i&&(r[i[0]]=i[1]),r},{})}function io(t,e,r,n){const o=Ei(e,r),i={};return Object.keys(t).forEach(a=>{const[l,...u]=Ec(t[a]);i[a]=Oi(a,l,u)}),Pi(o,i,n)}function Lc(t,e,r){t.add.forEach(n=>{Pc(r,n[0],n[1].primKey,n[1].indexes)}),t.change.forEach(n=>{if(n.recreate)throw"Not yet support for changing primary key";{const o=r.objectStore(n.name);n.add.forEach(i=>Tr(o,i)),n.change.forEach(i=>{o.deleteIndex(i.name),Tr(o,i)}),n.del.forEach(i=>o.deleteIndex(i))}}),t.del.forEach(n=>{e.deleteObjectStore(n)})}function $c(t){const e=new Map;return{idbOpen:async(o,{store:i,incrementalUpdate:s}={})=>{if(!o||typeof o!="string")return Promise.reject(new TypeError("dbName must be a string"));let a=e.get(o);if(a)try{return await c(await a)}catch(f){if(e.delete(o),!(f instanceof Error&&Object.prototype.toString.call(f)==="[object DOMException]"&&f.message.indexOf("The database connection is closing.")!==-1))return Promise.reject(f)}let l=d();return e.set(o,l),l.catch(()=>{l===e.get(o)&&e.delete(o)}),l;function u(f,y){const p=function(g){var v,b,S;const m=io(g,f,y,s);return!((v=m.add)!=null&&v.length||(b=m.change)!=null&&b.length||(S=m.del)!=null&&S.length)};switch(typeof i){case"string":{const[g,m]=i.split("|");return p({[g]:m||"++"})}case"function":try{return typeof i.call(this,f,y)!="function"}catch(g){throw g}case"object":if(i)return p(i);default:return!0}}function c(f){if(u(f,f.objectStoreNames.length?f.transaction([...f.objectStoreNames],"readonly"):void 0))return Promise.resolve(f);{let y=f.version+1;return d(y)}}function d(f){return new Promise((y,p)=>{let g=t.indexedDB.open(o,f);g.onerror=function(m){p(this.error)},g.onupgradeneeded=function(m){var S,w,L;const v=this.result,b=this.transaction;try{switch(typeof i){case"function":{const P=()=>i.call(this,v,b),E=()=>Ei(v,b);let M,B=E();for(;typeof(M=P())=="function";){M.call(this,v,b,m);const U=E(),z=Pi(B,U,!1);if(B=U,!((S=z.add)!=null&&S.length||(w=z.change)!=null&&w.length||(L=z.del)!=null&&L.length))throw new Error('Parameter "store" contradicts "upgradeneeded"')}break}case"string":case"object":{let P;if(typeof i=="string"){const[M,B]=i.split("|");P={[M]:B||"++"}}else P=i;const E=io(P,v,b,s);Lc(E,v,b);break}default:if(!u.call(this,v,b))throw new TypeError('Missing or wrong type of "upgradeneeded" parameter')}}catch(P){console.error(P),b.abort(),v.close(),p(P)}},g.onsuccess=function(m){const v=this.result;v.onversionchange=function(){v.close(),e.delete(o)},v.onclose=function(){e.delete(o)},e.set(o,v);try{y(c(v))}catch(b){p(b)}},g.onblocked=function(m){var b;let v=e.get(o);v&&((b=v==null?void 0:v.close)==null||b.call(v))}})}},idbDelete:o=>new Promise((i,s)=>{let a=t.indexedDB.deleteDatabase(o);a.onerror=function(l){s(this.error)},a.onsuccess=function(l){i(null)}})}}const Rc=$c(window),{idbOpen:Ai,idbDelete:dp}=Rc,Cc=(t,e)=>e.some(r=>t instanceof r);let so,ao;function Nc(){return so||(so=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function _c(){return ao||(ao=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Li=new WeakMap,Dr=new WeakMap,$i=new WeakMap,gr=new WeakMap,sn=new WeakMap;function Ic(t){const e=new Promise((r,n)=>{const o=()=>{t.removeEventListener("success",i),t.removeEventListener("error",s)},i=()=>{r(le(t.result)),o()},s=()=>{n(t.error),o()};t.addEventListener("success",i),t.addEventListener("error",s)});return e.then(r=>{r instanceof IDBCursor&&Li.set(r,t)}).catch(()=>{}),sn.set(e,t),e}function Tc(t){if(Dr.has(t))return;const e=new Promise((r,n)=>{const o=()=>{t.removeEventListener("complete",i),t.removeEventListener("error",s),t.removeEventListener("abort",s)},i=()=>{r(),o()},s=()=>{n(t.error||new DOMException("AbortError","AbortError")),o()};t.addEventListener("complete",i),t.addEventListener("error",s),t.addEventListener("abort",s)});Dr.set(t,e)}let Fr={get(t,e,r){if(t instanceof IDBTransaction){if(e==="done")return Dr.get(t);if(e==="objectStoreNames")return t.objectStoreNames||$i.get(t);if(e==="store")return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return le(t[e])},set(t,e,r){return t[e]=r,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function kc(t){Fr=t(Fr)}function Dc(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...r){const n=t.call(mr(this),e,...r);return $i.set(n,e.sort?e.sort():[e]),le(n)}:_c().includes(t)?function(...e){return t.apply(mr(this),e),le(Li.get(this))}:function(...e){return le(t.apply(mr(this),e))}}function Fc(t){return typeof t=="function"?Dc(t):(t instanceof IDBTransaction&&Tc(t),Cc(t,Nc())?new Proxy(t,Fr):t)}function le(t){if(t instanceof IDBRequest)return Ic(t);if(gr.has(t))return gr.get(t);const e=Fc(t);return e!==t&&(gr.set(t,e),sn.set(e,t)),e}const mr=t=>sn.get(t);function jc(t,e,{blocked:r,upgrade:n,blocking:o,terminated:i}={}){const s=indexedDB.open(t,e),a=le(s);return n&&s.addEventListener("upgradeneeded",l=>{n(le(s.result),l.oldVersion,l.newVersion,le(s.transaction),l)}),r&&s.addEventListener("blocked",l=>r(l.oldVersion,l.newVersion,l)),a.then(l=>{i&&l.addEventListener("close",()=>i()),o&&l.addEventListener("versionchange",u=>o(u.oldVersion,u.newVersion,u))}).catch(()=>{}),a}const Mc=["get","getKey","getAll","getAllKeys","count"],Bc=["put","add","delete","clear"],yr=new Map;function lo(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(yr.get(e))return yr.get(e);const r=e.replace(/FromIndex$/,""),n=e!==r,o=Bc.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(o||Mc.includes(r)))return;const i=async function(s,...a){const l=this.transaction(s,o?"readwrite":"readonly");let u=l.store;return n&&(u=u.index(a.shift())),(await Promise.all([u[r](...a),o&&l.done]))[0]};return yr.set(e,i),i}kc(t=>({...t,get:(e,r,n)=>lo(e,r)||t.get(e,r,n),has:(e,r)=>!!lo(e,r)||t.has(e,r)}));const jr="GOST-UI",an=async t=>le(await Ai(jr,{store:t})),Uc=async t=>{const e=await Ai(jr),r=e.version+1;e.close(),jc(jr,r,{upgrade:(n,o,i,s,a)=>{t(s)}})},fe="localCache",Ue="savedServer";class J{constructor(e){X(this,"dsName",fe);X(this,"type");X(this,"_getIdb",()=>an(`${this.dsName}|++_id_,_key_,_type_,[_type_+_key_],[name+_type_+_key_]`));X(this,"_getTransaction",async()=>{const r=(await this._getIdb()).transaction(this.dsName,"readwrite"),n=r.objectStore(this.dsName);return{transaction:r,store:n}});X(this,"getList",async()=>(await this._getIdb()).getAllFromIndex(this.dsName,"[_type_+_key_]",IDBKeyRange.only([this.type,this.key])));X(this,"get",async e=>(await this._getIdb()).getFromIndex(this.dsName,"[name+_type_+_key_]",IDBKeyRange.only([e,this.type,this.key])));X(this,"add",async e=>{await(await this._getIdb()).add(this.dsName,{...e,_key_:this.key,_type_:this.type})});X(this,"put",async(e,r)=>{if(r._id_)await(await this._getIdb()).put(this.dsName,r);else{const{transaction:n,store:o}=await this._getTransaction(),i=await o.index("[name+_type_+_key_]").get(IDBKeyRange.only([e,this.type,this.key]));return r._id_=i._id_,await o.put({...i,...r,_id_:i._id_}),n.done}});X(this,"delete",async e=>{const{transaction:r,store:n}=await this._getTransaction(),o=await n.index("[name+_type_+_key_]").get(IDBKeyRange.only([e,this.type,this.key]));return await n.delete(o._id_),r.done});this.type=e}get key(){var e;return(e=un())==null?void 0:e.addr}}const zc=new J("admissions"),Vc=new J("authers"),Kc=new J("bypasses"),Hc=new J("chains"),qc=new J("climiters"),Wc=new J("limiters"),Jc=new J("rlimiters"),Gc=new J("hops"),Yc=new J("hosts"),Qc=new J("ingresses"),Xc=new J("resolvers"),Zc=new J("services");class De{static _getIdb(){return an({[Ue]:"addr",[fe]:"++_id_,_key_"})}static async getAllServer(){return(await this._getIdb()).getAll(Ue)}static async getServer(e){return(await this._getIdb()).get(Ue,e)}static async setServer(e){await(await this._getIdb()).put(Ue,e)}static async deleteServer(e,r=!1){await(await this._getIdb()).delete(Ue,e),r&&await this.deleteCacheConfig(e)}static async deleteCacheConfig(e){const o=await(await this._getIdb()).transaction([fe],"readwrite").objectStore(fe),i=await o.index("_key_").getAllKeys(IDBKeyRange.only(e));await o.delete(i)}static async getAllCacheConfig(e){const r=await this._getIdb();return e?r.getAllFromIndex(fe,"_key_",IDBKeyRange.only(e)):r.getAll(fe)}}const ef=async()=>{const t=await an(`${fe}|++_id_`),e=t.objectStoreNames,r=/^services-/,n="services",o=[...e].filter(s=>r.test(s)),i=t.transaction(e,"readwrite");for(const s of o){const a=await i.objectStore(s).getAll();let l=decodeURIComponent(s.replace(/^services-/,""));/^(https?:)?\/\//.test(l)?/^\/\//.test(l)&&(l=`${location.protocol}`+l):l=`${location.protocol}//`+l,a.length>0&&await a.map(u=>i.objectStore(fe).add({...u,_type_:n,_key_:l})),await i.objectStore(s).clear()}return await i.done,o.length&&Uc(s=>{const a=[...s.objectStoreNames],l=/^services-/;[...a.filter(c=>l.test(c)),"services","localConfigStore"].forEach(c=>{a.includes(c)&&s.db.deleteObjectStore(c)})}),o.length>0},pp=Object.freeze(Object.defineProperty({__proto__:null,GostCommit:J,ServerComm:De,admissions:zc,authers:Vc,bypasses:Kc,chains:Hc,climiters:qc,fixOldCacheConfig:ef,hops:Gc,hosts:Yc,ingresses:Qc,limiters:Wc,resolvers:Xc,rlimiters:Jc,services:Zc},Symbol.toStringTag,{value:"Module"}));function Ri(t,e,r=null){const n=t.getItem(e);if(n==null)return r;try{return JSON.parse(n)}catch(o){return console.error(o),r}}function Ci(t,e,r){if(r==null)return t.removeItem(e);t.setItem(e,JSON.stringify(r))}const tf=Ri.bind(null,sessionStorage),Ni=Ci.bind(null,sessionStorage),rf=Ri.bind(null,localStorage),nf=Ci.bind(null,localStorage),ln="__GOST_SERVER__",of="__USE_SERVER__",uo="__SETTINGS__",Rt=Zu.parse(location.search,{ignoreQueryPrefix:!0});Rt.use&&(Ni(ln,null),window[of]=Rt.use);let co=tf(ln);const ve=It(function(){return co},function(e){co=e,Ni(ln,e)}),ct=It(),ft=It(),Mr=It(rf.bind(null,uo,{}),nf.bind(null,uo)),un=()=>ve.get(),sf=async()=>{if(Rt.use){const e=Rt.use;window.history.replaceState(null,"",location.pathname);const r=await af(e);if(r){r.isLocal=!0,await Ii(r),r.time=Date.now(),ki(e,r);return}else Ti()}const t=un();if(t){await _i(t);return}},_i=async t=>{const e=t.addr.replace(/\/+$/,"");return Zo.get(e+"/config",{auth:t.auth}).catch(r=>{throw"verify error"})},Ii=async(t,e)=>{try{await _i(t),e?(t.isLocal=!0,ve.set(t),await ki(t.addr,t)):ve.set(t)}catch(r){throw r==="verify error"&&(Ti(),vr.error((r==null?void 0:r.message)||Ir("msg.connectionFailed"))),r}},Ti=async()=>{ve.set(null)},ki=async(t,e)=>De.setServer({...e,isLocal:!0,time:Date.now()}),af=async t=>De.getServer(t),lf=async t=>De.deleteServer(t),uf=async()=>De.getAllServer(),be=Zo.create();be.interceptors.request.use(t=>{const e=un();return t.baseURL=e==null?void 0:e.addr,t.auth=e==null?void 0:e.auth,t});be.interceptors.response.use(t=>{var e;return t.config.method!=="get"&&!((e=t.config)!=null&&e.noMsg)&&vr.success(Ir("msg.success")),t.data?t.data:t},t=>{var n,o;const{response:e}=t||{};let r=t.message||Ir("msg.unknown");throw(n=e==null?void 0:e.data)!=null&&n.msg&&(r=(o=e==null?void 0:e.data)==null?void 0:o.msg),vr.error(r),t});const k={config:"/config",admissions:"/config/admissions",authers:"/config/authers",bypasses:"/config/bypasses",chains:"/config/chains",climiters:"/config/climiters",limiters:"/config/limiters",rlimiters:"/config/rlimiters",hops:"/config/hops",hosts:"/config/hosts",ingresses:"/config/ingresses",observers:"/config/observers",resolvers:"/config/resolvers",sds:"/config/sds",services:"/config/services"},j=t=>({post:e=>be.post(t,e),put:(e,r)=>be.put(`${t}/${e}`,r),delete:e=>be.delete(`${t}/${e}`)}),cf=j(k.admissions),ff=j(k.authers),df=j(k.bypasses),pf=j(k.chains),hf=j(k.climiters),gf=j(k.limiters),mf=j(k.rlimiters),yf=j(k.hops),vf=j(k.hosts),bf=j(k.ingresses),Sf=j(k.resolvers),wf=j(k.services),xf=j(k.sds),Of=j(k.observers),Br=t=>be.get(k.config),Ef=(t="json",e)=>be.post(k.config,null,{params:{format:t,path:e},noMsg:!0}),hp=Object.freeze(Object.defineProperty({__proto__:null,admissions:cf,apis:k,authers:ff,bypasses:df,chains:pf,climiters:hf,getConfig:Br,getRESTfulApi:j,hops:yf,hosts:vf,ingresses:bf,limiters:gf,observers:Of,resolvers:Sf,rlimiters:mf,saveCofnig:Ef,sds:xf,services:wf},Symbol.toStringTag,{value:"Module"}));var Pf={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z"}}]},name:"global",theme:"outlined"};const Af=Pf;var Lf=function(e,r){return O.createElement(Ye,Qe({},e,{ref:r,icon:Af}))},$f=O.forwardRef(Lf);const Rf=$f;var Cf={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"};const Nf=Cf;var _f=function(e,r){return O.createElement(Ye,Qe({},e,{ref:r,icon:Nf}))},If=O.forwardRef(_f);const Tf=If;var kf={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M489.5 111.66c30.65-1.8 45.98 36.44 22.58 56.33A243.35 243.35 0 00426 354c0 134.76 109.24 244 244 244 72.58 0 139.9-31.83 186.01-86.08 19.87-23.38 58.07-8.1 56.34 22.53C900.4 745.82 725.15 912 512.5 912 291.31 912 112 732.69 112 511.5c0-211.39 164.29-386.02 374.2-399.65l.2-.01zm-81.15 79.75l-4.11 1.36C271.1 237.94 176 364.09 176 511.5 176 697.34 326.66 848 512.5 848c148.28 0 274.94-96.2 319.45-230.41l.63-1.93-.11.07a307.06 307.06 0 01-159.73 46.26L670 662c-170.1 0-308-137.9-308-308 0-58.6 16.48-114.54 46.27-162.47z"}}]},name:"moon",theme:"outlined"};const Df=kf;var Ff=function(e,r){return O.createElement(Ye,Qe({},e,{ref:r,icon:Df}))},jf=O.forwardRef(Ff);const Mf=jf;var Bf={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M548 818v126a16 16 0 01-16 16h-40a16 16 0 01-16-16V818c15.85 1.64 27.84 2.46 36 2.46 8.15 0 20.16-.82 36-2.46m205.25-115.66l89.1 89.1a16 16 0 010 22.62l-28.29 28.29a16 16 0 01-22.62 0l-89.1-89.1c12.37-10.04 21.43-17.95 27.2-23.71 5.76-5.77 13.67-14.84 23.71-27.2m-482.5 0c10.04 12.36 17.95 21.43 23.71 27.2 5.77 5.76 14.84 13.67 27.2 23.71l-89.1 89.1a16 16 0 01-22.62 0l-28.29-28.29a16 16 0 010-22.63zM512 278c129.24 0 234 104.77 234 234S641.24 746 512 746 278 641.24 278 512s104.77-234 234-234m0 72c-89.47 0-162 72.53-162 162s72.53 162 162 162 162-72.53 162-162-72.53-162-162-162M206 476c-1.64 15.85-2.46 27.84-2.46 36 0 8.15.82 20.16 2.46 36H80a16 16 0 01-16-16v-40a16 16 0 0116-16zm738 0a16 16 0 0116 16v40a16 16 0 01-16 16H818c1.64-15.85 2.46-27.84 2.46-36 0-8.15-.82-20.16-2.46-36zM814.06 180.65l28.29 28.29a16 16 0 010 22.63l-89.1 89.09c-10.04-12.37-17.95-21.43-23.71-27.2-5.77-5.76-14.84-13.67-27.2-23.71l89.1-89.1a16 16 0 0122.62 0m-581.5 0l89.1 89.1c-12.37 10.04-21.43 17.95-27.2 23.71-5.76 5.77-13.67 14.84-23.71 27.2l-89.1-89.1a16 16 0 010-22.62l28.29-28.29a16 16 0 0122.62 0M532 64a16 16 0 0116 16v126c-15.85-1.64-27.84-2.46-36-2.46-8.15 0-20.16.82-36 2.46V80a16 16 0 0116-16z"}}]},name:"sun",theme:"outlined"};const Uf=Bf;var zf=function(e,r){return O.createElement(Ye,Qe({},e,{ref:r,icon:Uf}))},Vf=O.forwardRef(zf);const Kf=Vf;var Hf={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"};const qf=Hf;var Wf=function(e,r){return O.createElement(Ye,Qe({},e,{ref:r,icon:qf}))},Jf=O.forwardRef(Wf);const Gf=Jf;function Yf(){if(console&&console.warn){for(var t=arguments.length,e=new Array(t),r=0;r()=>{if(t.isInitialized)e();else{const r=()=>{setTimeout(()=>{t.off("initialized",r)},0),e()};t.on("initialized",r)}};function po(t,e,r){t.loadNamespaces(e,Di(t,r))}function ho(t,e,r,n){typeof r=="string"&&(r=[r]),r.forEach(o=>{t.options.ns.indexOf(o)<0&&t.options.ns.push(o)}),t.loadLanguages(e,Di(t,n))}function Qf(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=e.languages[0],o=e.options?e.options.fallbackLng:!1,i=e.languages[e.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const s=(a,l)=>{const u=e.services.backendConnector.state[`${a}|${l}`];return u===-1||u===2};return r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&e.services.backendConnector.backend&&e.isLanguageChangingTo&&!s(e.isLanguageChangingTo,t)?!1:!!(e.hasResourceBundle(n,t)||!e.services.backendConnector.backend||e.options.resources&&!e.options.partialBundledLanguages||s(n,t)&&(!o||s(i,t)))}function Xf(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!e.languages||!e.languages.length?(Ur("i18n.languages were undefined or empty",e.languages),!0):e.options.ignoreJSONStructure!==void 0?e.hasLoadedNamespace(t,{lng:r.lng,precheck:(o,i)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&o.services.backendConnector.backend&&o.isLanguageChangingTo&&!i(o.isLanguageChangingTo,t))return!1}}):Qf(t,e,r)}const Zf=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,ed={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},td=t=>ed[t],rd=t=>t.replace(Zf,td);let zr={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:rd};function nd(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};zr={...zr,...t}}function od(){return zr}let Fi;function id(t){Fi=t}function sd(){return Fi}const ad={type:"3rdParty",init(t){nd(t.options.react),id(t)}},ld=O.createContext();class ud{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(r=>{this.usedNamespaces[r]||(this.usedNamespaces[r]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const cd=(t,e)=>{const r=O.useRef();return O.useEffect(()=>{r.current=e?r.current:t},[t,e]),r.current};function ji(t,e,r,n){return t.getFixedT(e,r,n)}function fd(t,e,r,n){return O.useCallback(ji(t,e,r,n),[t,e,r,n])}function Bt(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:r}=e,{i18n:n,defaultNS:o}=O.useContext(ld)||{},i=r||n||sd();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new ud),!i){Ur("You will need to pass in an i18next instance by using initReactI18next");const w=(P,E)=>typeof E=="string"?E:E&&typeof E=="object"&&typeof E.defaultValue=="string"?E.defaultValue:Array.isArray(P)?P[P.length-1]:P,L=[w,{},!1];return L.t=w,L.i18n={},L.ready=!1,L}i.options.react&&i.options.react.wait!==void 0&&Ur("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const s={...od(),...i.options.react,...e},{useSuspense:a,keyPrefix:l}=s;let u=t||o||i.options&&i.options.defaultNS;u=typeof u=="string"?[u]:u||["translation"],i.reportNamespaces.addUsedNamespaces&&i.reportNamespaces.addUsedNamespaces(u);const c=(i.isInitialized||i.initializedStoreOnce)&&u.every(w=>Xf(w,i,s)),d=fd(i,e.lng||null,s.nsMode==="fallback"?u:u[0],l),f=()=>d,y=()=>ji(i,e.lng||null,s.nsMode==="fallback"?u:u[0],l),[p,g]=O.useState(f);let m=u.join();e.lng&&(m=`${e.lng}${m}`);const v=cd(m),b=O.useRef(!0);O.useEffect(()=>{const{bindI18n:w,bindI18nStore:L}=s;b.current=!0,!c&&!a&&(e.lng?ho(i,e.lng,u,()=>{b.current&&g(y)}):po(i,u,()=>{b.current&&g(y)})),c&&v&&v!==m&&b.current&&g(y);function P(){b.current&&g(y)}return w&&i&&i.on(w,P),L&&i&&i.store.on(L,P),()=>{b.current=!1,w&&i&&w.split(" ").forEach(E=>i.off(E,P)),L&&i&&L.split(" ").forEach(E=>i.store.off(E,P))}},[i,m]),O.useEffect(()=>{b.current&&c&&g(f)},[i,l,c]);const S=[p,i,c];if(S.t=p,S.i18n=i,S.ready=c,c||!c&&!a)return S;throw new Promise(w=>{e.lng?ho(i,e.lng,u,()=>w()):po(i,u,()=>w())})}const dd=()=>{const{t}=Bt(),[e,r]=O.useState(),n=O.useCallback(async()=>uf().then(o=>o.sort((i,s)=>{const a=i.time||0;return(s.time||0)-a})).then(o=>r(o)),[]);return O.useEffect(()=>{n()},[]),x.jsx(x.Fragment,{children:e&&(e==null?void 0:e.length)>0?x.jsxs(So,{direction:"vertical",style:{display:"flex"},children:[x.jsx("div",{children:t("home.quickConnect")}),x.jsx(Qi,{gutter:10,children:e.map(o=>x.jsx(Xi,{span:12,title:o.addr,style:{overflow:"hidden",textOverflow:"ellipsis"},children:x.jsxs(Zi,{gap:5,style:{overflow:"hidden"},children:[x.jsx("a",{style:{overflow:"hidden",textOverflow:"ellipsis",flex:"auto"},href:`?use=${o.addr}`,children:o.addr}),x.jsx(es,{style:{color:"red"},onClick:async()=>{await lf(o.addr),n()}})]})},o.addr))})]}):null})},pd=()=>{const[t,e]=O.useState(window.matchMedia("(prefers-color-scheme: dark)").matches);return O.useEffect(()=>{const r=window.matchMedia("(prefers-color-scheme: dark)"),n=o=>{e(o.matches)};return r.addEventListener("change",n),()=>{r.removeEventListener("change",n)}},[]),t},Mi=()=>{const t=pd(),{theme:e}=Mr();return O.useMemo(()=>!e||e==="system"?t:e==="dark",[e,t])},hd=t=>{const e=Mr(),r=Mi(),n=r?x.jsx(Mf,{}):x.jsx(Kf,{});return x.jsx(Kr,{shape:"circle",icon:n,...t,onClick:()=>{const o={...e};o.theme=r?"light":"dark",Mr.set(o)}})},gd=t=>{const{i18n:e}=Bt(),[r,n]=O.useState(!1);return window.i18n=e,x.jsx(Kr,{loading:r,shape:"circle",...t,onClick:()=>{n(!0),e.changeLanguage(e.resolvedLanguage==="en"?"zh-cn":"en").finally(()=>n(!1))},children:r?"":e.resolvedLanguage==="en"?"中":"En"})},md=()=>{const{t,i18n:e}=Bt();return x.jsxs(x.Fragment,{children:[x.jsxs(we,{className:"home-form",size:"large",layout:"horizontal",initialValues:{baseURL:"http://",save:!0},onFinish:r=>{let n=r.baseURL;return/^(https?:)?\/\//.test(n)?/^\/\//.test(n)&&(n=`${location.protocol}`+n):n=`${location.protocol}//`+n,Ii({addr:n,auth:{username:r.username,password:r.password}},r.save)},children:[x.jsx("h1",{children:t("base.title")}),x.jsx("h2",{children:t("base.description")}),x.jsx(we.Item,{name:"baseURL",rules:[{required:!0,message:t("msg.baseURL.required")},{validator(r,n,o){n==="http://"&&o(t("msg.baseURL.required")),o()}}],children:x.jsx(Qt,{placeholder:t("placeholder.baseURL"),prefix:x.jsx(Rf,{className:"prefixIcon"})})}),x.jsx(we.Item,{name:"username",children:x.jsx(Qt,{placeholder:"username",prefix:x.jsx(Gf,{className:"prefixIcon"})})}),x.jsx(we.Item,{name:"password",children:x.jsx(Qt.Password,{placeholder:"password",prefix:x.jsx(Tf,{className:"prefixIcon"})})}),x.jsx(we.Item,{name:"save",valuePropName:"checked",children:x.jsx(ts,{children:t("base.form.local")})}),x.jsx(we.Item,{noStyle:!0,style:{marginBottom:"1em"},children:x.jsx(Kr,{block:!0,type:"primary",htmlType:"submit",children:t("base.cmd.connect")})}),x.jsx(dd,{})]}),x.jsx("div",{style:{position:"absolute",top:"1em",right:"1em"},children:x.jsxs(So,{children:[x.jsx(hd,{}),x.jsx(gd,{})]})})]})};const se=new No.EventEmitter;var Ut={},Bi={exports:{}};(function(t){function e(r){return r&&r.__esModule?r:{default:r}}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})(Bi);var Fe=Bi.exports,zt={};Object.defineProperty(zt,"__esModule",{value:!0});zt.default=void 0;var yd={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"};zt.default=yd;var Vt={},rt={},Kt={};Object.defineProperty(Kt,"__esModule",{value:!0});Kt.default=void 0;var vd={locale:"zh_CN",yearFormat:"YYYY年",cellDateFormat:"D",cellMeridiemFormat:"A",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪"};Kt.default=vd;var nt={};Object.defineProperty(nt,"__esModule",{value:!0});nt.default=void 0;const bd={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};nt.default=bd;var Ui=Fe.default;Object.defineProperty(rt,"__esModule",{value:!0});rt.default=void 0;var Sd=Ui(Kt),wd=Ui(nt);const zi={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},Sd.default),timePickerLocale:Object.assign({},wd.default)};zi.lang.ok="确定";rt.default=zi;var xd=Fe.default;Object.defineProperty(Vt,"__esModule",{value:!0});Vt.default=void 0;var Od=xd(rt);Vt.default=Od.default;var Ht=Fe.default;Object.defineProperty(Ut,"__esModule",{value:!0});Ut.default=void 0;var Ed=Ht(zt),Pd=Ht(Vt),Ad=Ht(rt),Ld=Ht(nt);const q="${label}不是一个有效的${type}",$d={locale:"zh-cn",Pagination:Ed.default,DatePicker:Ad.default,TimePicker:Ld.default,Calendar:Pd.default,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckall:"全选",filterSearchPlaceholder:"在筛选项中搜索",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:q,method:q,array:q,object:q,number:q,date:q,boolean:q,integer:q,float:q,regexp:q,email:q,url:q,hex:q},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码过期",refresh:"点击刷新",scanned:"已扫描"},ColorPicker:{presetEmpty:"暂无"}};Ut.default=$d;var Rd=Ut;const go=Vr(Rd);var qt={},Wt={};Object.defineProperty(Wt,"__esModule",{value:!0});Wt.default=void 0;var Cd={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"};Wt.default=Cd;var Jt={},ot={},Gt={};Object.defineProperty(Gt,"__esModule",{value:!0});Gt.default=void 0;var Nd={locale:"en_GB",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"Select time",dateSelect:"Select date",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"D/M/YYYY",dayFormat:"D",dateTimeFormat:"D/M/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"};Gt.default=Nd;var it={};Object.defineProperty(it,"__esModule",{value:!0});it.default=void 0;const _d={placeholder:"Select time"};it.default=_d;var Vi=Fe.default;Object.defineProperty(ot,"__esModule",{value:!0});ot.default=void 0;var Id=Vi(Gt),Td=Vi(it);const kd={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"]},Id.default),timePickerLocale:Object.assign({},Td.default)};ot.default=kd;var Dd=Fe.default;Object.defineProperty(Jt,"__esModule",{value:!0});Jt.default=void 0;var Fd=Dd(ot);Jt.default=Fd.default;var Yt=Fe.default;Object.defineProperty(qt,"__esModule",{value:!0});qt.default=void 0;var jd=Yt(Wt),Md=Yt(Jt),Bd=Yt(ot),Ud=Yt(it);const W="${label} is not a valid ${type}",zd={locale:"en-gb",Pagination:jd.default,DatePicker:Bd.default,TimePicker:Ud.default,Calendar:Md.default,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"},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"},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:W,method:W,array:W,object:W,number:W,date:W,boolean:W,integer:W,float:W,regexp:W,email:W,url:W,hex:W},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"}};qt.default=zd;var Vd=qt;const Kd=Vr(Vd),Hd=Ct.createContext({}),gp=Ct.createContext({localList:[],name:""}),mp=(t,e)=>{const r=`${t}:getComm`,n=o=>{o(e)};return se.on(r,n),()=>{se.off(r,n)}},yp=t=>new Promise((e,r)=>{const n=`${t}:getComm`;se.emit(n,e)}),qd=(t,e)=>{const r=t[e];return r?typeof r=="function"?r():Promise.resolve(r):new Promise((n,o)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(o.bind(null,new Error("Unknown variable dynamic import: "+e)))})},{slice:Wd,forEach:Jd}=[];function Gd(t){return Jd.call(Wd.call(arguments,1),e=>{if(e)for(const r in e)t[r]===void 0&&(t[r]=e[r])}),t}const mo=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Yd=(t,e,r)=>{const n=r||{};n.path=n.path||"/";const o=encodeURIComponent(e);let i=`${t}=${o}`;if(n.maxAge>0){const s=n.maxAge-0;if(Number.isNaN(s))throw new Error("maxAge should be a Number");i+=`; Max-Age=${Math.floor(s)}`}if(n.domain){if(!mo.test(n.domain))throw new TypeError("option domain is invalid");i+=`; Domain=${n.domain}`}if(n.path){if(!mo.test(n.path))throw new TypeError("option path is invalid");i+=`; Path=${n.path}`}if(n.expires){if(typeof n.expires.toUTCString!="function")throw new TypeError("option expires is invalid");i+=`; Expires=${n.expires.toUTCString()}`}if(n.httpOnly&&(i+="; HttpOnly"),n.secure&&(i+="; Secure"),n.sameSite)switch(typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite){case!0:i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"strict":i+="; SameSite=Strict";break;case"none":i+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return i},yo={create(t,e,r,n){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};r&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+r*60*1e3)),n&&(o.domain=n),document.cookie=Yd(t,encodeURIComponent(e),o)},read(t){const e=`${t}=`,r=document.cookie.split(";");for(let n=0;n-1&&(o=window.location.hash.substring(window.location.hash.indexOf("?")));const s=o.substring(1).split("&");for(let a=0;a0&&s[a].substring(0,l)===e&&(r=s[a].substring(l+1))}}return r}};let ze=null;const vo=()=>{if(ze!==null)return ze;try{ze=window!=="undefined"&&window.localStorage!==null;const t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{ze=!1}return ze};var Zd={name:"localStorage",lookup(t){let{lookupLocalStorage:e}=t;if(e&&vo())return window.localStorage.getItem(e)||void 0},cacheUserLanguage(t,e){let{lookupLocalStorage:r}=e;r&&vo()&&window.localStorage.setItem(r,t)}};let Ve=null;const bo=()=>{if(Ve!==null)return Ve;try{Ve=window!=="undefined"&&window.sessionStorage!==null;const t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{Ve=!1}return Ve};var ep={name:"sessionStorage",lookup(t){let{lookupSessionStorage:e}=t;if(e&&bo())return window.sessionStorage.getItem(e)||void 0},cacheUserLanguage(t,e){let{lookupSessionStorage:r}=e;r&&bo()&&window.sessionStorage.setItem(r,t)}},tp={name:"navigator",lookup(t){const e=[];if(typeof navigator<"u"){const{languages:r,userLanguage:n,language:o}=navigator;if(r)for(let i=0;i0?e:void 0}},rp={name:"htmlTag",lookup(t){let{htmlTag:e}=t,r;const n=e||(typeof document<"u"?document.documentElement:null);return n&&typeof n.getAttribute=="function"&&(r=n.getAttribute("lang")),r}},np={name:"path",lookup(t){var o;let{lookupFromPathIndex:e}=t;if(typeof window>"u")return;const r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(r)?(o=r[typeof e=="number"?e:0])==null?void 0:o.replace("/",""):void 0}},op={name:"subdomain",lookup(t){var o,i;let{lookupFromSubdomainIndex:e}=t;const r=typeof e=="number"?e+1:1,n=typeof window<"u"&&((i=(o=window.location)==null?void 0:o.hostname)==null?void 0:i.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i));if(n)return n[r]}};function ip(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:t=>t}}class Ki{constructor(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(e,r)}init(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=e||{languageUtils:{}},this.options=Gd(r,this.options||{},ip()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=o=>o.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(Qd),this.addDetector(Xd),this.addDetector(Zd),this.addDetector(ep),this.addDetector(tp),this.addDetector(rp),this.addDetector(np),this.addDetector(op)}addDetector(e){return this.detectors[e.name]=e,this}detect(e){e||(e=this.options.order);let r=[];return e.forEach(n=>{if(this.detectors[n]){let o=this.detectors[n].lookup(this.options);o&&typeof o=="string"&&(o=[o]),o&&(r=r.concat(o))}}),r=r.map(n=>this.options.convertDetectedLanguage(n)),this.services.languageUtils.getBestMatchFromCodes?r:r.length>0?r[0]:null}cacheUserLanguage(e,r){r||(r=this.options.caches),r&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||r.forEach(n=>{this.detectors[n]&&this.detectors[n].cacheUserLanguage(e,this.options)}))}}Ki.type="languageDetector";var sp=function(e){return{type:"backend",init:function(n,o,i){},read:function(n,o,i){if(typeof e=="function"){if(e.length<3){try{var s=e(n,o);s&&typeof s.then=="function"?s.then(function(a){return i(null,a&&a.default||a)}).catch(i):i(null,s)}catch(a){i(a)}return}e(n,o,i);return}i(null,e&&e[n]&&e[n][o])}}};const Hi="en";T.use(Ki).use(ad).use(sp((t,e)=>qd(Object.assign({"../i18n/en.json":()=>pt(()=>import("./en-e998d6f7.js"),[],import.meta.url),"../i18n/languages.json":()=>pt(()=>import("./languages-a578aa29.js"),[],import.meta.url),"../i18n/zh.json":()=>pt(()=>import("./zh-c566da85.js"),[],import.meta.url)}),`../i18n/${t}.json`))).init({debug:!1,fallbackLng:Hi,interpolation:{escapeValue:!1}});function vp(t){if(typeof t=="string"||O.isValidElement(t))return t;const e=T.resolvedLanguage;return t[e]||t[Hi]||""}const ap=Ct.lazy(()=>pt(()=>import("./Manage-b7c7bc0e.js"),["./Manage-b7c7bc0e.js","./antd-af73db0d.js","./Manage-505d70f1.css"],import.meta.url)),lp=t=>{const{locale:e,theme:r}=O.useContext(dt.ConfigContext);return O.useLayoutEffect(()=>{dt.config({theme:r,holderRender:n=>x.jsx(dt,{theme:r,children:n})})},[e,r]),x.jsx(ns,{children:t.children})};function up(){const t=ve(),{t:e,i18n:r}=Bt(),n=ct(),o=ft(),i=Mi(),[s,a]=O.useState(!1),[l,u]=O.useState(!1),[c,d]=O.useState(!1),[f,y]=O.useState(go),p=O.useMemo(()=>l||c,[l,c]),g=O.useRef({update:async()=>{var m;try{u(!0),d(!0);const[v,b]=await Promise.all([Br(),g.current.updateLocalConfig((m=ve.get())==null?void 0:m.addr)]);return ct.set(v),ft.set(b),[v,b]}finally{u(!1),d(!1)}},updateLocalConfig:async m=>{try{m||ft.set(null),d(!0);const v=await De.getAllCacheConfig(m),b={};return v.forEach(S=>{const{_type_:w}=S;(b[w]?b[w]:b[w]=[]).push(S)}),b}finally{d(!1)}},defaultTitle:document.title});return O.useEffect(()=>{sf().then(()=>a(!0));const m=async()=>ct.set(await Br()),v=async()=>{var S;return ft.set(await g.current.updateLocalConfig((S=ve.get())==null?void 0:S.addr))},b=g.current.update;return se.on("apiUpdate",m),se.on("localUpdate",v),se.on("update",b),()=>{se.off("apiUpdate",m),se.off("localUpdate",v),se.off("update",b)}},[]),O.useEffect(()=>{t?g.current.update().then(([m])=>{ct.set(m),document.title=t.addr.replace(/^(https?:)?\/\//,"")}):document.title=g.current.defaultTitle},[t]),O.useEffect(()=>{var m,v;i?(document.documentElement.classList.add("theme-dark"),(m=window==null?void 0:window.monaco)==null||m.editor.setTheme("vs-dark")):(document.documentElement.classList.remove("theme-dark"),(v=window==null?void 0:window.monaco)==null||v.editor.setTheme("vs"))},[i]),O.useEffect(()=>{const m=r.resolvedLanguage;y(m==="zh"?go:Kd)},[r.resolvedLanguage]),x.jsx(Hd.Provider,{value:{gostConfig:n,localConfig:o,isLoading:p},children:x.jsx(dt,{theme:{algorithm:i?rs.darkAlgorithm:void 0},locale:f,children:x.jsx(lp,{children:x.jsx(Ct.Suspense,{fallback:x.jsx(fn,{fullscreen:!0,size:"large"}),children:s?t?x.jsx(ap,{}):x.jsx(md,{}):x.jsx(fn,{fullscreen:!0,size:"large"})})})})})}br.createRoot(document.getElementById("root")).render(x.jsx(up,{}));export{hp as A,gp as C,pp as L,hd as T,Mi as a,vp as b,br as c,Hd as d,se as e,mp as f,sd as g,yp as h,ct as i,x as j,ve as k,uf as l,ef as m,Ti as n,gd as o,ki as p,Zu as q,Ef as s,Bt as u}; +`+e.prev}function st(t,e){var r=Rr(t),n=[];if(r){n.length=t.length;for(var o=0;o1;){var r=e.pop(),n=r.obj[r.prop];if(ge(n)){for(var o=[],i=0;i=dr?s.slice(l,l+dr):s,c=[],d=0;d=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||i===xu.RFC1738&&(f===40||f===41)){c[c.length]=u.charAt(d);continue}if(f<128){c[c.length]=Z[f];continue}if(f<2048){c[c.length]=Z[192|f>>6]+Z[128|f&63];continue}if(f<55296||f>=57344){c[c.length]=Z[224|f>>12]+Z[128|f>>6&63]+Z[128|f&63];continue}d+=1,f=65536+((f&1023)<<10|u.charCodeAt(d)&1023),c[c.length]=Z[240|f>>18]+Z[128|f>>12&63]+Z[128|f>>6&63]+Z[128|f&63]}a+=c.join("")}return a},$u=function(e){for(var r=[{obj:{o:e},prop:"o"}],n=[],o=0;o"u"&&(L=0)}if(typeof c=="function"?S=c(r,S):S instanceof Date?S=y(S):n==="comma"&&ee(S)&&(S=bt.maybeMap(S,function(ie){return ie instanceof Date?y(ie):ie})),S===null){if(s)return u&&!m?u(r,_.encoder,v,"key",p):r;S=""}if(Du(S)||bt.isBuffer(S)){if(u){var M=m?r:u(r,_.encoder,v,"key",p);return[g(M)+"="+g(u(S,_.encoder,v,"value",p))]}return[g(r)+"="+g(String(S))]}var B=[];if(typeof S>"u")return B;var U;if(n==="comma"&&ee(S))m&&u&&(S=bt.maybeMap(S,u)),U=[{value:S.length>0?S.join(",")||null:void 0}];else if(ee(c))U=c;else{var z=Object.keys(S);U=d?z.sort(d):z}var he=l?r.replace(/\./g,"%2E"):r,H=o&&ee(S)&&S.length===1?he+"[]":he;if(i&&ee(S)&&S.length===0)return H+"[]";for(var V=0;V"u"?e.encodeDotInKeys===!0?!0:_.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:_.addQueryPrefix,allowDots:a,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:_.allowEmptyArrays,arrayFormat:s,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:_.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?_.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:_.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:_.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:_.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:_.encodeValuesOnly,filter:i,format:n,formatter:o,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:_.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:_.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:_.strictNullHandling}},Mu=function(t,e){var r=t,n=ju(e),o,i;typeof n.filter=="function"?(i=n.filter,r=i("",r)):ee(n.filter)&&(i=n.filter,o=i);var s=[];if(typeof r!="object"||r===null)return"";var a=yi[n.arrayFormat],l=a==="comma"&&n.commaRoundTrip;o||(o=Object.keys(r)),n.sort&&o.sort(n.sort);for(var u=mi(),c=0;c0?y+f:""},_e=gi,Nr=Object.prototype.hasOwnProperty,Bu=Array.isArray,C={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:_e.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Uu=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},bi=function(t,e){return t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1?t.split(","):t},zu="utf8=%26%2310003%3B",Vu="utf8=%E2%9C%93",Ku=function(e,r){var n={__proto__:null},o=r.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=r.parameterLimit===1/0?void 0:r.parameterLimit,s=o.split(r.delimiter,i),a=-1,l,u=r.charset;if(r.charsetSentinel)for(l=0;l-1&&(p=Bu(p)?[p]:p);var g=Nr.call(n,y);g&&r.duplicates==="combine"?n[y]=_e.combine(n[y],p):(!g||r.duplicates==="last")&&(n[y]=p)}return n},Hu=function(t,e,r,n){for(var o=n?e:bi(e,r),i=t.length-1;i>=0;--i){var s,a=t[i];if(a==="[]"&&r.parseArrays)s=r.allowEmptyArrays&&o===""?[]:[].concat(o);else{s=r.plainObjects?Object.create(null):{};var l=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a,u=r.decodeDotInKeys?l.replace(/%2E/g,"."):l,c=parseInt(u,10);!r.parseArrays&&u===""?s={0:o}:!isNaN(c)&&a!==u&&String(c)===u&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(s=[],s[c]=o):u!=="__proto__"&&(s[u]=o)}o=s}return o},qu=function(e,r,n,o){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,l=n.depth>0&&s.exec(i),u=l?i.slice(0,l.index):i,c=[];if(u){if(!n.plainObjects&&Nr.call(Object.prototype,u)&&!n.allowPrototypes)return;c.push(u)}for(var d=0;n.depth>0&&(l=a.exec(i))!==null&&d"u"?C.charset:e.charset,n=typeof e.duplicates>"u"?C.duplicates:e.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var o=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:C.allowDots:!!e.allowDots;return{allowDots:o,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:C.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:C.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:C.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:C.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:C.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:C.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:C.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:C.decoder,delimiter:typeof e.delimiter=="string"||_e.isRegExp(e.delimiter)?e.delimiter:C.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:C.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:C.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:C.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:C.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:C.strictNullHandling}},Ju=function(t,e){var r=Wu(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof t=="string"?Ku(t,r):t,o=r.plainObjects?Object.create(null):{},i=Object.keys(n),s=0;s1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,r)}init(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=e||ec,this.options=r,this.debug=r.debug}log(){for(var e=arguments.length,r=new Array(e),n=0;n{this.observers[n]||(this.observers[n]=new Map);const o=this.observers[n].get(r)||0;this.observers[n].set(r,o+1)}),this}off(e,r){if(this.observers[e]){if(!r){delete this.observers[e];return}this.observers[e].delete(r)}}emit(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o{let[a,l]=s;for(let u=0;u{let[a,l]=s;for(let u=0;u{t=n,e=o});return r.resolve=t,r.reject=e,r}function Yn(t){return t==null?"":""+t}function tc(t,e,r){t.forEach(n=>{e[n]&&(r[n]=e[n])})}const rc=/###/g;function We(t,e,r){function n(a){return a&&a.indexOf("###")>-1?a.replace(rc,"."):a}function o(){return!t||typeof t=="string"}const i=typeof e!="string"?e:e.split(".");let s=0;for(;s":">",'"':""","'":"'","/":"/"};function sc(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,e=>ic[e]):t}class ac{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const r=this.regExpMap.get(e);if(r!==void 0)return r;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}const lc=[" ",",","?","!",";"],uc=new ac(20);function cc(t,e,r){e=e||"",r=r||"";const n=lc.filter(s=>e.indexOf(s)<0&&r.indexOf(s)<0);if(n.length===0)return!0;const o=uc.getRegExp(`(${n.map(s=>s==="?"?"\\?":s).join("|")})`);let i=!o.test(t);if(!i){const s=t.indexOf(r);s>0&&!o.test(t.substring(0,s))&&(i=!0)}return i}function _r(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!t)return;if(t[e])return t[e];const n=e.split(r);let o=t;for(let i=0;i-1&&l0?t.replace("_","-"):t}class Xn extends Mt{constructor(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const r=this.options.ns.indexOf(e);r>-1&&this.options.ns.splice(r,1)}getResource(e,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,s=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.indexOf(".")>-1?a=e.split("."):(a=[e,r],n&&(Array.isArray(n)?a.push(...n):typeof n=="string"&&i?a.push(...n.split(i)):a.push(n)));const l=At(this.data,a);return!l&&!r&&!n&&e.indexOf(".")>-1&&(e=a[0],r=a[1],n=a.slice(2).join(".")),l||!s||typeof n!="string"?l:_r(this.data&&this.data[e]&&this.data[e][r],n,i)}addResource(e,r,n,o){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let a=[e,r];n&&(a=a.concat(s?n.split(s):n)),e.indexOf(".")>-1&&(a=e.split("."),o=r,r=a[1]),this.addNamespaces(r),Qn(this.data,a,o),i.silent||this.emit("added",e,r,n,o)}addResources(e,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const i in n)(typeof n[i]=="string"||Array.isArray(n[i]))&&this.addResource(e,r,i,n[i],{silent:!0});o.silent||this.emit("added",e,r,n)}addResourceBundle(e,r,n,o,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},a=[e,r];e.indexOf(".")>-1&&(a=e.split("."),o=n,n=r,r=a[1]),this.addNamespaces(r);let l=At(this.data,a)||{};s.skipCopy||(n=JSON.parse(JSON.stringify(n))),o?Si(l,n,i):l={...l,...n},Qn(this.data,a,l),s.silent||this.emit("added",e,r,n)}removeResourceBundle(e,r){this.hasResourceBundle(e,r)&&delete this.data[e][r],this.removeNamespaces(r),this.emit("removed",e,r)}hasResourceBundle(e,r){return this.getResource(e,r)!==void 0}getResourceBundle(e,r){return r||(r=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(e,r)}:this.getResource(e,r)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const r=this.getDataByLanguage(e);return!!(r&&Object.keys(r)||[]).find(o=>r[o]&&Object.keys(r[o]).length>0)}toJSON(){return this.data}}var wi={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,r,n,o){return t.forEach(i=>{this.processors[i]&&(e=this.processors[i].process(e,r,n,o))}),e}};const Zn={};class $t extends Mt{constructor(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),tc(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=ne.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;const n=this.resolve(e,r);return n&&n.res!==void 0}extractFromKey(e,r){let n=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;n===void 0&&(n=":");const o=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let i=r.ns||this.options.defaultNS||[];const s=n&&e.indexOf(n)>-1,a=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!cc(e,n,o);if(s&&!a){const l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:i};const u=e.split(n);(n!==o||n===o&&this.options.ns.indexOf(u[0])>-1)&&(i=u.shift()),e=u.join(o)}return typeof i=="string"&&(i=[i]),{key:e,namespaces:i}}translate(e,r,n){if(typeof r!="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),typeof r=="object"&&(r={...r}),r||(r={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const o=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,i=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:s,namespaces:a}=this.extractFromKey(e[e.length-1],r),l=a[a.length-1],u=r.lng||this.language,c=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(c){const w=r.nsSeparator||this.options.nsSeparator;return o?{res:`${l}${w}${s}`,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:`${l}${w}${s}`}return o?{res:s,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:s}const d=this.resolve(e,r);let f=d&&d.res;const y=d&&d.usedKey||s,p=d&&d.exactUsedKey||s,g=Object.prototype.toString.apply(f),m=["[object Number]","[object Function]","[object RegExp]"],v=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject;if(b&&f&&(typeof f!="string"&&typeof f!="boolean"&&typeof f!="number")&&m.indexOf(g)<0&&!(typeof v=="string"&&Array.isArray(f))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const w=this.options.returnedObjectHandler?this.options.returnedObjectHandler(y,f,{...r,ns:a}):`key '${s} (${this.language})' returned an object instead of string.`;return o?(d.res=w,d.usedParams=this.getUsedParamsDetails(r),d):w}if(i){const w=Array.isArray(f),L=w?[]:{},P=w?p:y;for(const E in f)if(Object.prototype.hasOwnProperty.call(f,E)){const M=`${P}${i}${E}`;L[E]=this.translate(M,{...r,joinArrays:!1,ns:a}),L[E]===M&&(L[E]=f[E])}f=L}}else if(b&&typeof v=="string"&&Array.isArray(f))f=f.join(v),f&&(f=this.extendTranslation(f,e,r,n));else{let w=!1,L=!1;const P=r.count!==void 0&&typeof r.count!="string",E=$t.hasDefaultValue(r),M=P?this.pluralResolver.getSuffix(u,r.count,r):"",B=r.ordinal&&P?this.pluralResolver.getSuffix(u,r.count,{ordinal:!1}):"",U=P&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),z=U&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${M}`]||r[`defaultValue${B}`]||r.defaultValue;!this.isValidLookup(f)&&E&&(w=!0,f=z),this.isValidLookup(f)||(L=!0,f=s);const H=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&L?void 0:f,V=E&&z!==f&&this.options.updateMissing;if(L||w||V){if(this.logger.log(V?"updateKey":"missingKey",u,l,s,V?z:f),i){const F=this.resolve(s,{...r,keySeparator:!1});F&&F.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let K=[];const Y=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Y&&Y[0])for(let F=0;F{const cn=E&&ie!==f?ie:H;this.options.missingKeyHandler?this.options.missingKeyHandler(F,l,Q,cn,V,r):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(F,l,Q,cn,V,r),this.emit("missingKey",F,l,Q,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&P?K.forEach(F=>{const Q=this.pluralResolver.getSuffixes(F,r);U&&r[`defaultValue${this.options.pluralSeparator}zero`]&&Q.indexOf(`${this.options.pluralSeparator}zero`)<0&&Q.push(`${this.options.pluralSeparator}zero`),Q.forEach(ie=>{Se([F],s+ie,r[`defaultValue${ie}`]||z)})}):Se(K,s,z))}f=this.extendTranslation(f,e,r,d,n),L&&f===s&&this.options.appendNamespaceToMissingKey&&(f=`${l}:${s}`),(L||w)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${s}`:s,w?f:void 0):f=this.options.parseMissingKeyHandler(f))}return o?(d.res=f,d.usedParams=this.getUsedParamsDetails(r),d):f}extendTranslation(e,r,n,o,i){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const u=typeof e=="string"&&(n&&n.interpolation&&n.interpolation.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(u){const f=e.match(this.interpolator.nestingRegexp);c=f&&f.length}let d=n.replace&&typeof n.replace!="string"?n.replace:n;if(this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),e=this.interpolator.interpolate(e,d,n.lng||this.language,n),u){const f=e.match(this.interpolator.nestingRegexp),y=f&&f.length;c1&&arguments[1]!==void 0?arguments[1]:{},n,o,i,s,a;return typeof e=="string"&&(e=[e]),e.forEach(l=>{if(this.isValidLookup(n))return;const u=this.extractFromKey(l,r),c=u.key;o=c;let d=u.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const f=r.count!==void 0&&typeof r.count!="string",y=f&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),p=r.context!==void 0&&(typeof r.context=="string"||typeof r.context=="number")&&r.context!=="",g=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);d.forEach(m=>{this.isValidLookup(n)||(a=m,!Zn[`${g[0]}-${m}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(Zn[`${g[0]}-${m}`]=!0,this.logger.warn(`key "${o}" for languages "${g.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),g.forEach(v=>{if(this.isValidLookup(n))return;s=v;const b=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(b,c,v,m,r);else{let w;f&&(w=this.pluralResolver.getSuffix(v,r.count,r));const L=`${this.options.pluralSeparator}zero`,P=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(f&&(b.push(c+w),r.ordinal&&w.indexOf(P)===0&&b.push(c+w.replace(P,this.options.pluralSeparator)),y&&b.push(c+L)),p){const E=`${c}${this.options.contextSeparator}${r.context}`;b.push(E),f&&(b.push(E+w),r.ordinal&&w.indexOf(P)===0&&b.push(E+w.replace(P,this.options.pluralSeparator)),y&&b.push(E+L))}}let S;for(;S=b.pop();)this.isValidLookup(n)||(i=S,n=this.getResource(v,m,S,r))}))})}),{res:n,usedKey:o,exactUsedKey:i,usedLng:s,usedNS:a}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,r,n,o):this.resourceStore.getResource(e,r,n,o)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&typeof e.replace!="string";let o=n?e.replace:e;if(n&&typeof e.count<"u"&&(o.count=e.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!n){o={...o};for(const i of r)delete o[i]}return o}static hasDefaultValue(e){const r="defaultValue";for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&r===n.substring(0,r.length)&&e[n]!==void 0)return!0;return!1}}function hr(t){return t.charAt(0).toUpperCase()+t.slice(1)}class eo{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ne.create("languageUtils")}getScriptPartFromCode(e){if(e=Lt(e),!e||e.indexOf("-")<0)return null;const r=e.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(e){if(e=Lt(e),!e||e.indexOf("-")<0)return e;const r=e.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(e){if(typeof e=="string"&&e.indexOf("-")>-1){const r=["hans","hant","latn","cyrl","cans","mong","arab"];let n=e.split("-");return this.options.lowerCaseLng?n=n.map(o=>o.toLowerCase()):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=hr(n[1].toLowerCase()))):n.length===3&&(n[0]=n[0].toLowerCase(),n[1].length===2&&(n[1]=n[1].toUpperCase()),n[0]!=="sgn"&&n[2].length===2&&(n[2]=n[2].toUpperCase()),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=hr(n[1].toLowerCase())),r.indexOf(n[2].toLowerCase())>-1&&(n[2]=hr(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let r;return e.forEach(n=>{if(r)return;const o=this.formatLanguageCode(n);(!this.options.supportedLngs||this.isSupportedCode(o))&&(r=o)}),!r&&this.options.supportedLngs&&e.forEach(n=>{if(r)return;const o=this.getLanguagePartFromCode(n);if(this.isSupportedCode(o))return r=o;r=this.options.supportedLngs.find(i=>{if(i===o)return i;if(!(i.indexOf("-")<0&&o.indexOf("-")<0)&&(i.indexOf("-")>0&&o.indexOf("-")<0&&i.substring(0,i.indexOf("-"))===o||i.indexOf(o)===0&&o.length>1))return i})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(e,r){if(!e)return[];if(typeof e=="function"&&(e=e(r)),typeof e=="string"&&(e=[e]),Array.isArray(e))return e;if(!r)return e.default||[];let n=e[r];return n||(n=e[this.getScriptPartFromCode(r)]),n||(n=e[this.formatLanguageCode(r)]),n||(n=e[this.getLanguagePartFromCode(r)]),n||(n=e.default),n||[]}toResolveHierarchy(e,r){const n=this.getFallbackCodes(r||this.options.fallbackLng||[],e),o=[],i=s=>{s&&(this.isSupportedCode(s)?o.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))};return typeof e=="string"&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(e))):typeof e=="string"&&i(this.formatLanguageCode(e)),n.forEach(s=>{o.indexOf(s)<0&&i(this.formatLanguageCode(s))}),o}}let fc=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],dc={1:function(t){return+(t>1)},2:function(t){return+(t!=1)},3:function(t){return 0},4:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},5:function(t){return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},6:function(t){return t==1?0:t>=2&&t<=4?1:2},7:function(t){return t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},8:function(t){return t==1?0:t==2?1:t!=8&&t!=11?2:3},9:function(t){return+(t>=2)},10:function(t){return t==1?0:t==2?1:t<7?2:t<11?3:4},11:function(t){return t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3},12:function(t){return+(t%10!=1||t%100==11)},13:function(t){return+(t!==0)},14:function(t){return t==1?0:t==2?1:t==3?2:3},15:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2},16:function(t){return t%10==1&&t%100!=11?0:t!==0?1:2},17:function(t){return t==1||t%10==1&&t%100!=11?0:1},18:function(t){return t==0?0:t==1?1:2},19:function(t){return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3},20:function(t){return t==1?0:t==0||t%100>0&&t%100<20?1:2},21:function(t){return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0},22:function(t){return t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3}};const pc=["v1","v2","v3"],hc=["v4"],to={zero:0,one:1,two:2,few:3,many:4,other:5};function gc(){const t={};return fc.forEach(e=>{e.lngs.forEach(r=>{t[r]={numbers:e.nr,plurals:dc[e.fc]}})}),t}class mc{constructor(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=r,this.logger=ne.create("pluralResolver"),(!this.options.compatibilityJSON||hc.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=gc()}addRule(e,r){this.rules[e]=r}getRule(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Lt(e==="dev"?"en":e),{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.getRule(e,r);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,n).map(o=>`${r}${o}`)}getSuffixes(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.getRule(e,r);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((o,i)=>to[o]-to[i]).map(o=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o}`):n.numbers.map(o=>this.getSuffix(e,o,r)):[]}getSuffix(e,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=this.getRule(e,n);return o?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o.select(r)}`:this.getSuffixRetroCompatible(o,r):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,r){const n=e.noAbs?e.plurals(r):e.plurals(Math.abs(r));let o=e.numbers[n];this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));const i=()=>this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString();return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?`_plural_${o.toString()}`:i():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1?i():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!pc.includes(this.options.compatibilityJSON)}}function ro(t,e,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=oc(t,e,r);return!i&&o&&typeof r=="string"&&(i=_r(t,r,n),i===void 0&&(i=_r(e,r,n))),i}class yc{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ne.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(r=>r),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:r,escapeValue:n,useRawValueToEscape:o,prefix:i,prefixEscaped:s,suffix:a,suffixEscaped:l,formatSeparator:u,unescapeSuffix:c,unescapePrefix:d,nestingPrefix:f,nestingPrefixEscaped:y,nestingSuffix:p,nestingSuffixEscaped:g,nestingOptionsSeparator:m,maxReplaces:v,alwaysFormat:b}=e.interpolation;this.escape=r!==void 0?r:sc,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=i?Ee(i):s||"{{",this.suffix=a?Ee(a):l||"}}",this.formatSeparator=u||",",this.unescapePrefix=c?"":d||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=f?Ee(f):y||Ee("$t("),this.nestingSuffix=p?Ee(p):g||Ee(")"),this.nestingOptionsSeparator=m||",",this.maxReplaces=v||1e3,this.alwaysFormat=b!==void 0?b:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(r,n)=>r&&r.source===n?(r.lastIndex=0,r):new RegExp(n,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,r,n,o){let i,s,a;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(p){return p.replace(/\$/g,"$$$$")}const c=p=>{if(p.indexOf(this.formatSeparator)<0){const b=ro(r,l,p,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(b,void 0,n,{...o,...r,interpolationkey:p}):b}const g=p.split(this.formatSeparator),m=g.shift().trim(),v=g.join(this.formatSeparator).trim();return this.format(ro(r,l,m,this.options.keySeparator,this.options.ignoreJSONStructure),v,n,{...o,...r,interpolationkey:m})};this.resetRegExp();const d=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,f=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:p=>u(p)},{regex:this.regexp,safeValue:p=>this.escapeValue?u(this.escape(p)):u(p)}].forEach(p=>{for(a=0;i=p.regex.exec(e);){const g=i[1].trim();if(s=c(g),s===void 0)if(typeof d=="function"){const v=d(e,i,o);s=typeof v=="string"?v:""}else if(o&&Object.prototype.hasOwnProperty.call(o,g))s="";else if(f){s=i[0];continue}else this.logger.warn(`missed to pass in variable ${g} for interpolating ${e}`),s="";else typeof s!="string"&&!this.useRawValueToEscape&&(s=Yn(s));const m=p.safeValue(s);if(e=e.replace(i[0],m),f?(p.regex.lastIndex+=s.length,p.regex.lastIndex-=i[0].length):p.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),e}nest(e,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,i,s;function a(l,u){const c=this.nestingOptionsSeparator;if(l.indexOf(c)<0)return l;const d=l.split(new RegExp(`${c}[ ]*{`));let f=`{${d[1]}`;l=d[0],f=this.interpolate(f,s);const y=f.match(/'/g),p=f.match(/"/g);(y&&y.length%2===0&&!p||p.length%2!==0)&&(f=f.replace(/'/g,'"'));try{s=JSON.parse(f),u&&(s={...u,...s})}catch(g){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,g),`${l}${c}${f}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,l}for(;o=this.nestingRegexp.exec(e);){let l=[];s={...n},s=s.replace&&typeof s.replace!="string"?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let u=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){const c=o[1].split(this.formatSeparator).map(d=>d.trim());o[1]=c.shift(),l=c,u=!0}if(i=r(a.call(this,o[1].trim(),s),s),i&&o[0]===e&&typeof i!="string")return i;typeof i!="string"&&(i=Yn(i)),i||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${e}`),i=""),u&&(i=l.reduce((c,d)=>this.format(c,d,n.lng,{...n,interpolationkey:o[1].trim()}),i.trim())),e=e.replace(o[0],i),this.regexp.lastIndex=0}return e}}function vc(t){let e=t.toLowerCase().trim();const r={};if(t.indexOf("(")>-1){const n=t.split("(");e=n[0].toLowerCase().trim();const o=n[1].substring(0,n[1].length-1);e==="currency"&&o.indexOf(":")<0?r.currency||(r.currency=o.trim()):e==="relativetime"&&o.indexOf(":")<0?r.range||(r.range=o.trim()):o.split(";").forEach(s=>{if(s){const[a,...l]=s.split(":"),u=l.join(":").trim().replace(/^'+|'+$/g,""),c=a.trim();r[c]||(r[c]=u),u==="false"&&(r[c]=!1),u==="true"&&(r[c]=!0),isNaN(u)||(r[c]=parseInt(u,10))}})}return{formatName:e,formatOptions:r}}function Pe(t){const e={};return function(n,o,i){const s=o+JSON.stringify(i);let a=e[s];return a||(a=t(Lt(o),i),e[s]=a),a(n)}}class bc{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ne.create("formatter"),this.options=e,this.formats={number:Pe((r,n)=>{const o=new Intl.NumberFormat(r,{...n});return i=>o.format(i)}),currency:Pe((r,n)=>{const o=new Intl.NumberFormat(r,{...n,style:"currency"});return i=>o.format(i)}),datetime:Pe((r,n)=>{const o=new Intl.DateTimeFormat(r,{...n});return i=>o.format(i)}),relativetime:Pe((r,n)=>{const o=new Intl.RelativeTimeFormat(r,{...n});return i=>o.format(i,n.range||"day")}),list:Pe((r,n)=>{const o=new Intl.ListFormat(r,{...n});return i=>o.format(i)})},this.init(e)}init(e){const n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}add(e,r){this.formats[e.toLowerCase().trim()]=r}addCached(e,r){this.formats[e.toLowerCase().trim()]=Pe(r)}format(e,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return r.split(this.formatSeparator).reduce((a,l)=>{const{formatName:u,formatOptions:c}=vc(l);if(this.formats[u]){let d=a;try{const f=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},y=f.locale||f.lng||o.locale||o.lng||n;d=this.formats[u](a,y,{...c,...o,...f})}catch(f){this.logger.warn(f)}return d}else this.logger.warn(`there was no format function for ${u}`);return a},e)}}function Sc(t,e){t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)}class wc extends Mt{constructor(e,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=r,this.services=n,this.languageUtils=n.languageUtils,this.options=o,this.logger=ne.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,o.backend,o)}queueLoad(e,r,n,o){const i={},s={},a={},l={};return e.forEach(u=>{let c=!0;r.forEach(d=>{const f=`${u}|${d}`;!n.reload&&this.store.hasResourceBundle(u,d)?this.state[f]=2:this.state[f]<0||(this.state[f]===1?s[f]===void 0&&(s[f]=!0):(this.state[f]=1,c=!1,s[f]===void 0&&(s[f]=!0),i[f]===void 0&&(i[f]=!0),l[d]===void 0&&(l[d]=!0)))}),c||(a[u]=!0)}),(Object.keys(i).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(i),pending:Object.keys(s),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(l)}}loaded(e,r,n){const o=e.split("|"),i=o[0],s=o[1];r&&this.emit("failedLoading",i,s,r),n&&this.store.addResourceBundle(i,s,n,void 0,void 0,{skipCopy:!0}),this.state[e]=r?-1:2;const a={};this.queue.forEach(l=>{nc(l.loaded,[i],s),Sc(l,e),r&&l.errors.push(r),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(u=>{a[u]||(a[u]={});const c=l.loaded[u];c.length&&c.forEach(d=>{a[u][d]===void 0&&(a[u][d]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(l=>!l.done)}read(e,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!e.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:r,fcName:n,tried:o,wait:i,callback:s});return}this.readingCalls++;const a=(u,c)=>{if(this.readingCalls--,this.waitingReads.length>0){const d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(u&&c&&o{this.read.call(this,e,r,n,o+1,i*2,s)},i);return}s(u,c)},l=this.backend[n].bind(this.backend);if(l.length===2){try{const u=l(e,r);u&&typeof u.then=="function"?u.then(c=>a(null,c)).catch(a):a(null,u)}catch(u){a(u)}return}return l(e,r,a)}prepareLoading(e,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();typeof e=="string"&&(e=this.languageUtils.toResolveHierarchy(e)),typeof r=="string"&&(r=[r]);const i=this.queueLoad(e,r,n,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach(s=>{this.loadOne(s)})}load(e,r,n){this.prepareLoading(e,r,{},n)}reload(e,r,n){this.prepareLoading(e,r,{reload:!0},n)}loadOne(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const n=e.split("|"),o=n[0],i=n[1];this.read(o,i,"read",void 0,void 0,(s,a)=>{s&&this.logger.warn(`${r}loading namespace ${i} for language ${o} failed`,s),!s&&a&&this.logger.log(`${r}loaded namespace ${i} for language ${o}`,a),this.loaded(e,s,a)})}saveMissing(e,r,n,o,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)){this.logger.warn(`did not save key "${n}" as the namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(n==null||n==="")){if(this.backend&&this.backend.create){const l={...s,isUpdate:i},u=this.backend.create.bind(this.backend);if(u.length<6)try{let c;u.length===5?c=u(e,r,n,o,l):c=u(e,r,n,o),c&&typeof c.then=="function"?c.then(d=>a(null,d)).catch(a):a(null,c)}catch(c){a(c)}else u(e,r,n,o,a,l)}!e||!e[0]||this.store.addResource(e[0],r,n,o)}}}function no(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){let r={};if(typeof e[1]=="object"&&(r=e[1]),typeof e[1]=="string"&&(r.defaultValue=e[1]),typeof e[2]=="string"&&(r.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(o=>{r[o]=n[o]})}return r},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function oo(t){return typeof t.ns=="string"&&(t.ns=[t.ns]),typeof t.fallbackLng=="string"&&(t.fallbackLng=[t.fallbackLng]),typeof t.fallbackNS=="string"&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function ut(){}function xc(t){Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(r=>{typeof t[r]=="function"&&(t[r]=t[r].bind(t))})}class Ge extends Mt{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(super(),this.options=oo(e),this.services={},this.logger=ne,this.modules={external:[]},xc(this),r&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,r),this;setTimeout(()=>{this.init(e,r)},0)}}init(){var e=this;let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof r=="function"&&(n=r,r={}),!r.defaultNS&&r.defaultNS!==!1&&r.ns&&(typeof r.ns=="string"?r.defaultNS=r.ns:r.ns.indexOf("translation")<0&&(r.defaultNS=r.ns[0]));const o=no();this.options={...o,...this.options,...oo(r)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...o.interpolation,...this.options.interpolation}),r.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=r.keySeparator),r.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=r.nsSeparator);function i(c){return c?typeof c=="function"?new c:c:null}if(!this.options.isClone){this.modules.logger?ne.init(i(this.modules.logger),this.options):ne.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:typeof Intl<"u"&&(c=bc);const d=new eo(this.options);this.store=new Xn(this.options.resources,this.options);const f=this.services;f.logger=ne,f.resourceStore=this.store,f.languageUtils=d,f.pluralResolver=new mc(d,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(f.formatter=i(c),f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new yc(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new wc(i(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",function(y){for(var p=arguments.length,g=new Array(p>1?p-1:0),m=1;m1?p-1:0),m=1;m{y.init&&y.init(this)})}if(this.format=this.options.interpolation.format,n||(n=ut),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(c=>{this[c]=function(){return e.store[c](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=function(){return e.store[c](...arguments),e}});const l=Be(),u=()=>{const c=(d,f)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(f),n(d,f)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),l}loadResources(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ut;const o=typeof e=="string"?e:this.language;if(typeof e=="function"&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(o&&o.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();const i=[],s=a=>{if(!a||a==="cimode")return;this.services.languageUtils.toResolveHierarchy(a).forEach(u=>{u!=="cimode"&&i.indexOf(u)<0&&i.push(u)})};o?s(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>s(l)),this.options.preload&&this.options.preload.forEach(a=>s(a)),this.services.backendConnector.load(i,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(a)})}else n(null)}reloadResources(e,r,n){const o=Be();return e||(e=this.languages),r||(r=this.options.ns),n||(n=ut),this.services.backendConnector.reload(e,r,i=>{o.resolve(),n(i)}),o}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&wi.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(let r=0;r-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}changeLanguage(e,r){var n=this;this.isLanguageChangingTo=e;const o=Be();this.emit("languageChanging",e);const i=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},s=(l,u)=>{u?(i(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,o.resolve(function(){return n.t(...arguments)}),r&&r(l,function(){return n.t(...arguments)})},a=l=>{!e&&!l&&this.services.languageDetector&&(l=[]);const u=typeof l=="string"?l:this.services.languageUtils.getBestMatchFromCodes(l);u&&(this.language||i(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,c=>{s(c,u)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),o}getFixedT(e,r,n){var o=this;const i=function(s,a){let l;if(typeof a!="object"){for(var u=arguments.length,c=new Array(u>2?u-2:0),d=2;d`${l.keyPrefix}${f}${p}`):y=l.keyPrefix?`${l.keyPrefix}${f}${s}`:s,o.t(y,l)};return typeof e=="string"?i.lng=e:i.lngs=e,i.ns=r,i.keyPrefix=n,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=r.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const s=(a,l)=>{const u=this.services.backendConnector.state[`${a}|${l}`];return u===-1||u===2};if(r.precheck){const a=r.precheck(this,s);if(a!==void 0)return a}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(n,e)&&(!o||s(i,e)))}loadNamespaces(e,r){const n=Be();return this.options.ns?(typeof e=="string"&&(e=[e]),e.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{n.resolve(),r&&r(o)}),n):(r&&r(),Promise.resolve())}loadLanguages(e,r){const n=Be();typeof e=="string"&&(e=[e]);const o=this.options.preload||[],i=e.filter(s=>o.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return i.length?(this.options.preload=o.concat(i),this.loadResources(s=>{n.resolve(),r&&r(s)}),n):(r&&r(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],n=this.services&&this.services.languageUtils||new eo(no());return r.indexOf(n.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new Ge(e,r)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ut;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const o={...this.options,...e,isClone:!0},i=new Ge(o);return(e.debug!==void 0||e.prefix!==void 0)&&(i.logger=i.logger.clone(e)),["store","services","language"].forEach(a=>{i[a]=this[a]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},n&&(i.store=new Xn(this.store.data,o),i.services.resourceStore=i.store),i.translator=new $t(i.services,o),i.translator.on("*",function(a){for(var l=arguments.length,u=new Array(l>1?l-1:0),c=1;ct.split(",").map((e,r)=>{e=e.trim();const n=e.replace(/([&*]|\+\+)/g,""),o=/^\[/.test(n)?n.match(/^\[(.*)\]$/)[1].split("+"):n;return kr(n,o,/\&/.test(e),/\*/.test(e),/\+\+/.test(e),Array.isArray(o),r===0)});function Pc(t,e,r,n){const o=t.db.createObjectStore(e,r.keyPath?{keyPath:r.keyPath,autoIncrement:r.auto}:{autoIncrement:r.auto});return n.forEach(i=>Tr(o,i)),o}function Tr(t,e){t.createIndex(e.name,e.keyPath,{unique:e.unique,multiEntry:e.multi})}function kr(t,e,r,n,o,i,s){return{name:t,keyPath:e,unique:r,multi:n,auto:o,compound:i,src:(r&&!s?"&":"")+(n?"*":"")+(o?"++":"")+xi(e)}}function Oi(t,e,r){return{name:t,primKey:e,indexes:r,mappedClass:null,idxByName:Ac(r,n=>[n.name,n])}}function Ei(t,e){const r={};return[...t.objectStoreNames].forEach(o=>{const i=e.objectStore(o);let s=i.keyPath;const a=kr(xi(s),s||"",!1,!1,!!i.autoIncrement,s&&typeof s!="string",!0),l=[];for(let c=0;c0||a.add.length>0||a.change.length>0)&&n.change.push(a)}}}return n}function Ac(t,e){return t.reduce((r,n,o)=>{var i=e(n,o);return i&&(r[i[0]]=i[1]),r},{})}function io(t,e,r,n){const o=Ei(e,r),i={};return Object.keys(t).forEach(a=>{const[l,...u]=Ec(t[a]);i[a]=Oi(a,l,u)}),Pi(o,i,n)}function Lc(t,e,r){t.add.forEach(n=>{Pc(r,n[0],n[1].primKey,n[1].indexes)}),t.change.forEach(n=>{if(n.recreate)throw"Not yet support for changing primary key";{const o=r.objectStore(n.name);n.add.forEach(i=>Tr(o,i)),n.change.forEach(i=>{o.deleteIndex(i.name),Tr(o,i)}),n.del.forEach(i=>o.deleteIndex(i))}}),t.del.forEach(n=>{e.deleteObjectStore(n)})}function $c(t){const e=new Map;return{idbOpen:async(o,{store:i,incrementalUpdate:s}={})=>{if(!o||typeof o!="string")return Promise.reject(new TypeError("dbName must be a string"));let a=e.get(o);if(a)try{return await c(await a)}catch(f){if(e.delete(o),!(f instanceof Error&&Object.prototype.toString.call(f)==="[object DOMException]"&&f.message.indexOf("The database connection is closing.")!==-1))return Promise.reject(f)}let l=d();return e.set(o,l),l.catch(()=>{l===e.get(o)&&e.delete(o)}),l;function u(f,y){const p=function(g){var v,b,S;const m=io(g,f,y,s);return!((v=m.add)!=null&&v.length||(b=m.change)!=null&&b.length||(S=m.del)!=null&&S.length)};switch(typeof i){case"string":{const[g,m]=i.split("|");return p({[g]:m||"++"})}case"function":try{return typeof i.call(this,f,y)!="function"}catch(g){throw g}case"object":if(i)return p(i);default:return!0}}function c(f){if(u(f,f.objectStoreNames.length?f.transaction([...f.objectStoreNames],"readonly"):void 0))return Promise.resolve(f);{let y=f.version+1;return d(y)}}function d(f){return new Promise((y,p)=>{let g=t.indexedDB.open(o,f);g.onerror=function(m){p(this.error)},g.onupgradeneeded=function(m){var S,w,L;const v=this.result,b=this.transaction;try{switch(typeof i){case"function":{const P=()=>i.call(this,v,b),E=()=>Ei(v,b);let M,B=E();for(;typeof(M=P())=="function";){M.call(this,v,b,m);const U=E(),z=Pi(B,U,!1);if(B=U,!((S=z.add)!=null&&S.length||(w=z.change)!=null&&w.length||(L=z.del)!=null&&L.length))throw new Error('Parameter "store" contradicts "upgradeneeded"')}break}case"string":case"object":{let P;if(typeof i=="string"){const[M,B]=i.split("|");P={[M]:B||"++"}}else P=i;const E=io(P,v,b,s);Lc(E,v,b);break}default:if(!u.call(this,v,b))throw new TypeError('Missing or wrong type of "upgradeneeded" parameter')}}catch(P){console.error(P),b.abort(),v.close(),p(P)}},g.onsuccess=function(m){const v=this.result;v.onversionchange=function(){v.close(),e.delete(o)},v.onclose=function(){e.delete(o)},e.set(o,v);try{y(c(v))}catch(b){p(b)}},g.onblocked=function(m){var b;let v=e.get(o);v&&((b=v==null?void 0:v.close)==null||b.call(v))}})}},idbDelete:o=>new Promise((i,s)=>{let a=t.indexedDB.deleteDatabase(o);a.onerror=function(l){s(this.error)},a.onsuccess=function(l){i(null)}})}}const Rc=$c(window),{idbOpen:Ai,idbDelete:dp}=Rc,Cc=(t,e)=>e.some(r=>t instanceof r);let so,ao;function Nc(){return so||(so=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function _c(){return ao||(ao=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Li=new WeakMap,Dr=new WeakMap,$i=new WeakMap,gr=new WeakMap,sn=new WeakMap;function Ic(t){const e=new Promise((r,n)=>{const o=()=>{t.removeEventListener("success",i),t.removeEventListener("error",s)},i=()=>{r(le(t.result)),o()},s=()=>{n(t.error),o()};t.addEventListener("success",i),t.addEventListener("error",s)});return e.then(r=>{r instanceof IDBCursor&&Li.set(r,t)}).catch(()=>{}),sn.set(e,t),e}function Tc(t){if(Dr.has(t))return;const e=new Promise((r,n)=>{const o=()=>{t.removeEventListener("complete",i),t.removeEventListener("error",s),t.removeEventListener("abort",s)},i=()=>{r(),o()},s=()=>{n(t.error||new DOMException("AbortError","AbortError")),o()};t.addEventListener("complete",i),t.addEventListener("error",s),t.addEventListener("abort",s)});Dr.set(t,e)}let Fr={get(t,e,r){if(t instanceof IDBTransaction){if(e==="done")return Dr.get(t);if(e==="objectStoreNames")return t.objectStoreNames||$i.get(t);if(e==="store")return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return le(t[e])},set(t,e,r){return t[e]=r,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function kc(t){Fr=t(Fr)}function Dc(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...r){const n=t.call(mr(this),e,...r);return $i.set(n,e.sort?e.sort():[e]),le(n)}:_c().includes(t)?function(...e){return t.apply(mr(this),e),le(Li.get(this))}:function(...e){return le(t.apply(mr(this),e))}}function Fc(t){return typeof t=="function"?Dc(t):(t instanceof IDBTransaction&&Tc(t),Cc(t,Nc())?new Proxy(t,Fr):t)}function le(t){if(t instanceof IDBRequest)return Ic(t);if(gr.has(t))return gr.get(t);const e=Fc(t);return e!==t&&(gr.set(t,e),sn.set(e,t)),e}const mr=t=>sn.get(t);function jc(t,e,{blocked:r,upgrade:n,blocking:o,terminated:i}={}){const s=indexedDB.open(t,e),a=le(s);return n&&s.addEventListener("upgradeneeded",l=>{n(le(s.result),l.oldVersion,l.newVersion,le(s.transaction),l)}),r&&s.addEventListener("blocked",l=>r(l.oldVersion,l.newVersion,l)),a.then(l=>{i&&l.addEventListener("close",()=>i()),o&&l.addEventListener("versionchange",u=>o(u.oldVersion,u.newVersion,u))}).catch(()=>{}),a}const Mc=["get","getKey","getAll","getAllKeys","count"],Bc=["put","add","delete","clear"],yr=new Map;function lo(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(yr.get(e))return yr.get(e);const r=e.replace(/FromIndex$/,""),n=e!==r,o=Bc.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(o||Mc.includes(r)))return;const i=async function(s,...a){const l=this.transaction(s,o?"readwrite":"readonly");let u=l.store;return n&&(u=u.index(a.shift())),(await Promise.all([u[r](...a),o&&l.done]))[0]};return yr.set(e,i),i}kc(t=>({...t,get:(e,r,n)=>lo(e,r)||t.get(e,r,n),has:(e,r)=>!!lo(e,r)||t.has(e,r)}));const jr="GOST-UI",an=async t=>le(await Ai(jr,{store:t})),Uc=async t=>{const e=await Ai(jr),r=e.version+1;e.close(),jc(jr,r,{upgrade:(n,o,i,s,a)=>{t(s)}})},fe="localCache",Ue="savedServer";class J{constructor(e){X(this,"dsName",fe);X(this,"type");X(this,"_getIdb",()=>an(`${this.dsName}|++_id_,_key_,_type_,[_type_+_key_],[name+_type_+_key_]`));X(this,"_getTransaction",async()=>{const r=(await this._getIdb()).transaction(this.dsName,"readwrite"),n=r.objectStore(this.dsName);return{transaction:r,store:n}});X(this,"getList",async()=>(await this._getIdb()).getAllFromIndex(this.dsName,"[_type_+_key_]",IDBKeyRange.only([this.type,this.key])));X(this,"get",async e=>(await this._getIdb()).getFromIndex(this.dsName,"[name+_type_+_key_]",IDBKeyRange.only([e,this.type,this.key])));X(this,"add",async e=>{await(await this._getIdb()).add(this.dsName,{...e,_key_:this.key,_type_:this.type})});X(this,"put",async(e,r)=>{if(r._id_)await(await this._getIdb()).put(this.dsName,r);else{const{transaction:n,store:o}=await this._getTransaction(),i=await o.index("[name+_type_+_key_]").get(IDBKeyRange.only([e,this.type,this.key]));return r._id_=i._id_,await o.put({...i,...r,_id_:i._id_}),n.done}});X(this,"delete",async e=>{const{transaction:r,store:n}=await this._getTransaction(),o=await n.index("[name+_type_+_key_]").get(IDBKeyRange.only([e,this.type,this.key]));return await n.delete(o._id_),r.done});this.type=e}get key(){var e;return(e=un())==null?void 0:e.addr}}const zc=new J("admissions"),Vc=new J("authers"),Kc=new J("bypasses"),Hc=new J("chains"),qc=new J("climiters"),Wc=new J("limiters"),Jc=new J("rlimiters"),Gc=new J("hops"),Yc=new J("hosts"),Qc=new J("ingresses"),Xc=new J("resolvers"),Zc=new J("services");class De{static _getIdb(){return an({[Ue]:"addr",[fe]:"++_id_,_key_"})}static async getAllServer(){return(await this._getIdb()).getAll(Ue)}static async getServer(e){return(await this._getIdb()).get(Ue,e)}static async setServer(e){await(await this._getIdb()).put(Ue,e)}static async deleteServer(e,r=!1){await(await this._getIdb()).delete(Ue,e),r&&await this.deleteCacheConfig(e)}static async deleteCacheConfig(e){const o=await(await this._getIdb()).transaction([fe],"readwrite").objectStore(fe),i=await o.index("_key_").getAllKeys(IDBKeyRange.only(e));await o.delete(i)}static async getAllCacheConfig(e){const r=await this._getIdb();return e?r.getAllFromIndex(fe,"_key_",IDBKeyRange.only(e)):r.getAll(fe)}}const ef=async()=>{const t=await an(`${fe}|++_id_`),e=t.objectStoreNames,r=/^services-/,n="services",o=[...e].filter(s=>r.test(s)),i=t.transaction(e,"readwrite");for(const s of o){const a=await i.objectStore(s).getAll();let l=decodeURIComponent(s.replace(/^services-/,""));/^(https?:)?\/\//.test(l)?/^\/\//.test(l)&&(l=`${location.protocol}`+l):l=`${location.protocol}//`+l,a.length>0&&await a.map(u=>i.objectStore(fe).add({...u,_type_:n,_key_:l})),await i.objectStore(s).clear()}return await i.done,o.length&&Uc(s=>{const a=[...s.objectStoreNames],l=/^services-/;[...a.filter(c=>l.test(c)),"services","localConfigStore"].forEach(c=>{a.includes(c)&&s.db.deleteObjectStore(c)})}),o.length>0},pp=Object.freeze(Object.defineProperty({__proto__:null,GostCommit:J,ServerComm:De,admissions:zc,authers:Vc,bypasses:Kc,chains:Hc,climiters:qc,fixOldCacheConfig:ef,hops:Gc,hosts:Yc,ingresses:Qc,limiters:Wc,resolvers:Xc,rlimiters:Jc,services:Zc},Symbol.toStringTag,{value:"Module"}));function Ri(t,e,r=null){const n=t.getItem(e);if(n==null)return r;try{return JSON.parse(n)}catch(o){return console.error(o),r}}function Ci(t,e,r){if(r==null)return t.removeItem(e);t.setItem(e,JSON.stringify(r))}const tf=Ri.bind(null,sessionStorage),Ni=Ci.bind(null,sessionStorage),rf=Ri.bind(null,localStorage),nf=Ci.bind(null,localStorage),ln="__GOST_SERVER__",of="__USE_SERVER__",uo="__SETTINGS__",Rt=Zu.parse(location.search,{ignoreQueryPrefix:!0});Rt.use&&(Ni(ln,null),window[of]=Rt.use);let co=tf(ln);const ve=It(function(){return co},function(e){co=e,Ni(ln,e)}),ct=It(),ft=It(),Mr=It(rf.bind(null,uo,{}),nf.bind(null,uo)),un=()=>ve.get(),sf=async()=>{if(Rt.use){const e=Rt.use;window.history.replaceState(null,"",location.pathname);const r=await af(e);if(r){r.isLocal=!0,await Ii(r),r.time=Date.now(),ki(e,r);return}else Ti()}const t=un();if(t){await _i(t);return}},_i=async t=>{const e=t.addr.replace(/\/+$/,"");return Zo.get(e+"/config",{auth:t.auth}).catch(r=>{throw"verify error"})},Ii=async(t,e)=>{try{await _i(t),e?(t.isLocal=!0,ve.set(t),await ki(t.addr,t)):ve.set(t)}catch(r){throw r==="verify error"&&(Ti(),vr.error((r==null?void 0:r.message)||Ir("msg.connectionFailed"))),r}},Ti=async()=>{ve.set(null)},ki=async(t,e)=>De.setServer({...e,isLocal:!0,time:Date.now()}),af=async t=>De.getServer(t),lf=async t=>De.deleteServer(t),uf=async()=>De.getAllServer(),be=Zo.create();be.interceptors.request.use(t=>{const e=un();return t.baseURL=e==null?void 0:e.addr,t.auth=e==null?void 0:e.auth,t});be.interceptors.response.use(t=>{var e;return t.config.method!=="get"&&!((e=t.config)!=null&&e.noMsg)&&vr.success(Ir("msg.success")),t.data?t.data:t},t=>{var n,o;const{response:e}=t||{};let r=t.message||Ir("msg.unknown");throw(n=e==null?void 0:e.data)!=null&&n.msg&&(r=(o=e==null?void 0:e.data)==null?void 0:o.msg),vr.error(r),t});const k={config:"/config",admissions:"/config/admissions",authers:"/config/authers",bypasses:"/config/bypasses",chains:"/config/chains",climiters:"/config/climiters",limiters:"/config/limiters",rlimiters:"/config/rlimiters",hops:"/config/hops",hosts:"/config/hosts",ingresses:"/config/ingresses",observers:"/config/observers",resolvers:"/config/resolvers",sds:"/config/sds",services:"/config/services"},j=t=>({post:e=>be.post(t,e),put:(e,r)=>be.put(`${t}/${e}`,r),delete:e=>be.delete(`${t}/${e}`)}),cf=j(k.admissions),ff=j(k.authers),df=j(k.bypasses),pf=j(k.chains),hf=j(k.climiters),gf=j(k.limiters),mf=j(k.rlimiters),yf=j(k.hops),vf=j(k.hosts),bf=j(k.ingresses),Sf=j(k.resolvers),wf=j(k.services),xf=j(k.sds),Of=j(k.observers),Br=t=>be.get(k.config),Ef=(t="json",e)=>be.post(k.config,null,{params:{format:t,path:e},noMsg:!0}),hp=Object.freeze(Object.defineProperty({__proto__:null,admissions:cf,apis:k,authers:ff,bypasses:df,chains:pf,climiters:hf,getConfig:Br,getRESTfulApi:j,hops:yf,hosts:vf,ingresses:bf,limiters:gf,observers:Of,resolvers:Sf,rlimiters:mf,saveCofnig:Ef,sds:xf,services:wf},Symbol.toStringTag,{value:"Module"}));var Pf={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z"}}]},name:"global",theme:"outlined"};const Af=Pf;var Lf=function(e,r){return O.createElement(Ye,Qe({},e,{ref:r,icon:Af}))},$f=O.forwardRef(Lf);const Rf=$f;var Cf={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"};const Nf=Cf;var _f=function(e,r){return O.createElement(Ye,Qe({},e,{ref:r,icon:Nf}))},If=O.forwardRef(_f);const Tf=If;var kf={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M489.5 111.66c30.65-1.8 45.98 36.44 22.58 56.33A243.35 243.35 0 00426 354c0 134.76 109.24 244 244 244 72.58 0 139.9-31.83 186.01-86.08 19.87-23.38 58.07-8.1 56.34 22.53C900.4 745.82 725.15 912 512.5 912 291.31 912 112 732.69 112 511.5c0-211.39 164.29-386.02 374.2-399.65l.2-.01zm-81.15 79.75l-4.11 1.36C271.1 237.94 176 364.09 176 511.5 176 697.34 326.66 848 512.5 848c148.28 0 274.94-96.2 319.45-230.41l.63-1.93-.11.07a307.06 307.06 0 01-159.73 46.26L670 662c-170.1 0-308-137.9-308-308 0-58.6 16.48-114.54 46.27-162.47z"}}]},name:"moon",theme:"outlined"};const Df=kf;var Ff=function(e,r){return O.createElement(Ye,Qe({},e,{ref:r,icon:Df}))},jf=O.forwardRef(Ff);const Mf=jf;var Bf={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M548 818v126a16 16 0 01-16 16h-40a16 16 0 01-16-16V818c15.85 1.64 27.84 2.46 36 2.46 8.15 0 20.16-.82 36-2.46m205.25-115.66l89.1 89.1a16 16 0 010 22.62l-28.29 28.29a16 16 0 01-22.62 0l-89.1-89.1c12.37-10.04 21.43-17.95 27.2-23.71 5.76-5.77 13.67-14.84 23.71-27.2m-482.5 0c10.04 12.36 17.95 21.43 23.71 27.2 5.77 5.76 14.84 13.67 27.2 23.71l-89.1 89.1a16 16 0 01-22.62 0l-28.29-28.29a16 16 0 010-22.63zM512 278c129.24 0 234 104.77 234 234S641.24 746 512 746 278 641.24 278 512s104.77-234 234-234m0 72c-89.47 0-162 72.53-162 162s72.53 162 162 162 162-72.53 162-162-72.53-162-162-162M206 476c-1.64 15.85-2.46 27.84-2.46 36 0 8.15.82 20.16 2.46 36H80a16 16 0 01-16-16v-40a16 16 0 0116-16zm738 0a16 16 0 0116 16v40a16 16 0 01-16 16H818c1.64-15.85 2.46-27.84 2.46-36 0-8.15-.82-20.16-2.46-36zM814.06 180.65l28.29 28.29a16 16 0 010 22.63l-89.1 89.09c-10.04-12.37-17.95-21.43-23.71-27.2-5.77-5.76-14.84-13.67-27.2-23.71l89.1-89.1a16 16 0 0122.62 0m-581.5 0l89.1 89.1c-12.37 10.04-21.43 17.95-27.2 23.71-5.76 5.77-13.67 14.84-23.71 27.2l-89.1-89.1a16 16 0 010-22.62l28.29-28.29a16 16 0 0122.62 0M532 64a16 16 0 0116 16v126c-15.85-1.64-27.84-2.46-36-2.46-8.15 0-20.16.82-36 2.46V80a16 16 0 0116-16z"}}]},name:"sun",theme:"outlined"};const Uf=Bf;var zf=function(e,r){return O.createElement(Ye,Qe({},e,{ref:r,icon:Uf}))},Vf=O.forwardRef(zf);const Kf=Vf;var Hf={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"};const qf=Hf;var Wf=function(e,r){return O.createElement(Ye,Qe({},e,{ref:r,icon:qf}))},Jf=O.forwardRef(Wf);const Gf=Jf;function Yf(){if(console&&console.warn){for(var t=arguments.length,e=new Array(t),r=0;r()=>{if(t.isInitialized)e();else{const r=()=>{setTimeout(()=>{t.off("initialized",r)},0),e()};t.on("initialized",r)}};function po(t,e,r){t.loadNamespaces(e,Di(t,r))}function ho(t,e,r,n){typeof r=="string"&&(r=[r]),r.forEach(o=>{t.options.ns.indexOf(o)<0&&t.options.ns.push(o)}),t.loadLanguages(e,Di(t,n))}function Qf(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=e.languages[0],o=e.options?e.options.fallbackLng:!1,i=e.languages[e.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const s=(a,l)=>{const u=e.services.backendConnector.state[`${a}|${l}`];return u===-1||u===2};return r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&e.services.backendConnector.backend&&e.isLanguageChangingTo&&!s(e.isLanguageChangingTo,t)?!1:!!(e.hasResourceBundle(n,t)||!e.services.backendConnector.backend||e.options.resources&&!e.options.partialBundledLanguages||s(n,t)&&(!o||s(i,t)))}function Xf(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!e.languages||!e.languages.length?(Ur("i18n.languages were undefined or empty",e.languages),!0):e.options.ignoreJSONStructure!==void 0?e.hasLoadedNamespace(t,{lng:r.lng,precheck:(o,i)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&o.services.backendConnector.backend&&o.isLanguageChangingTo&&!i(o.isLanguageChangingTo,t))return!1}}):Qf(t,e,r)}const Zf=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,ed={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},td=t=>ed[t],rd=t=>t.replace(Zf,td);let zr={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:rd};function nd(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};zr={...zr,...t}}function od(){return zr}let Fi;function id(t){Fi=t}function sd(){return Fi}const ad={type:"3rdParty",init(t){nd(t.options.react),id(t)}},ld=O.createContext();class ud{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(r=>{this.usedNamespaces[r]||(this.usedNamespaces[r]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const cd=(t,e)=>{const r=O.useRef();return O.useEffect(()=>{r.current=e?r.current:t},[t,e]),r.current};function ji(t,e,r,n){return t.getFixedT(e,r,n)}function fd(t,e,r,n){return O.useCallback(ji(t,e,r,n),[t,e,r,n])}function Bt(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:r}=e,{i18n:n,defaultNS:o}=O.useContext(ld)||{},i=r||n||sd();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new ud),!i){Ur("You will need to pass in an i18next instance by using initReactI18next");const w=(P,E)=>typeof E=="string"?E:E&&typeof E=="object"&&typeof E.defaultValue=="string"?E.defaultValue:Array.isArray(P)?P[P.length-1]:P,L=[w,{},!1];return L.t=w,L.i18n={},L.ready=!1,L}i.options.react&&i.options.react.wait!==void 0&&Ur("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const s={...od(),...i.options.react,...e},{useSuspense:a,keyPrefix:l}=s;let u=t||o||i.options&&i.options.defaultNS;u=typeof u=="string"?[u]:u||["translation"],i.reportNamespaces.addUsedNamespaces&&i.reportNamespaces.addUsedNamespaces(u);const c=(i.isInitialized||i.initializedStoreOnce)&&u.every(w=>Xf(w,i,s)),d=fd(i,e.lng||null,s.nsMode==="fallback"?u:u[0],l),f=()=>d,y=()=>ji(i,e.lng||null,s.nsMode==="fallback"?u:u[0],l),[p,g]=O.useState(f);let m=u.join();e.lng&&(m=`${e.lng}${m}`);const v=cd(m),b=O.useRef(!0);O.useEffect(()=>{const{bindI18n:w,bindI18nStore:L}=s;b.current=!0,!c&&!a&&(e.lng?ho(i,e.lng,u,()=>{b.current&&g(y)}):po(i,u,()=>{b.current&&g(y)})),c&&v&&v!==m&&b.current&&g(y);function P(){b.current&&g(y)}return w&&i&&i.on(w,P),L&&i&&i.store.on(L,P),()=>{b.current=!1,w&&i&&w.split(" ").forEach(E=>i.off(E,P)),L&&i&&L.split(" ").forEach(E=>i.store.off(E,P))}},[i,m]),O.useEffect(()=>{b.current&&c&&g(f)},[i,l,c]);const S=[p,i,c];if(S.t=p,S.i18n=i,S.ready=c,c||!c&&!a)return S;throw new Promise(w=>{e.lng?ho(i,e.lng,u,()=>w()):po(i,u,()=>w())})}const dd=()=>{const{t}=Bt(),[e,r]=O.useState(),n=O.useCallback(async()=>uf().then(o=>o.sort((i,s)=>{const a=i.time||0;return(s.time||0)-a})).then(o=>r(o)),[]);return O.useEffect(()=>{n()},[]),x.jsx(x.Fragment,{children:e&&(e==null?void 0:e.length)>0?x.jsxs(So,{direction:"vertical",style:{display:"flex"},children:[x.jsx("div",{children:t("home.quickConnect")}),x.jsx(Qi,{gutter:10,children:e.map(o=>x.jsx(Xi,{span:12,title:o.addr,style:{overflow:"hidden",textOverflow:"ellipsis"},children:x.jsxs(Zi,{gap:5,style:{overflow:"hidden"},children:[x.jsx("a",{style:{overflow:"hidden",textOverflow:"ellipsis",flex:"auto"},href:`?use=${o.addr}`,children:o.addr}),x.jsx(es,{style:{color:"red"},onClick:async()=>{await lf(o.addr),n()}})]})},o.addr))})]}):null})},pd=()=>{const[t,e]=O.useState(window.matchMedia("(prefers-color-scheme: dark)").matches);return O.useEffect(()=>{const r=window.matchMedia("(prefers-color-scheme: dark)"),n=o=>{e(o.matches)};return r.addEventListener("change",n),()=>{r.removeEventListener("change",n)}},[]),t},Mi=()=>{const t=pd(),{theme:e}=Mr();return O.useMemo(()=>!e||e==="system"?t:e==="dark",[e,t])},hd=t=>{const e=Mr(),r=Mi(),n=r?x.jsx(Mf,{}):x.jsx(Kf,{});return x.jsx(Kr,{shape:"circle",icon:n,...t,onClick:()=>{const o={...e};o.theme=r?"light":"dark",Mr.set(o)}})},gd=t=>{const{i18n:e}=Bt(),[r,n]=O.useState(!1);return window.i18n=e,x.jsx(Kr,{loading:r,shape:"circle",...t,onClick:()=>{n(!0),e.changeLanguage(e.resolvedLanguage==="en"?"zh-cn":"en").finally(()=>n(!1))},children:r?"":e.resolvedLanguage==="en"?"中":"En"})},md=()=>{const{t,i18n:e}=Bt();return x.jsxs(x.Fragment,{children:[x.jsxs(we,{className:"home-form",size:"large",layout:"horizontal",initialValues:{baseURL:"http://",save:!0},onFinish:r=>{let n=r.baseURL;return/^(https?:)?\/\//.test(n)?/^\/\//.test(n)&&(n=`${location.protocol}`+n):n=`${location.protocol}//`+n,Ii({addr:n,auth:{username:r.username,password:r.password}},r.save)},children:[x.jsx("h1",{children:t("base.title")}),x.jsx("h2",{children:t("base.description")}),x.jsx(we.Item,{name:"baseURL",rules:[{required:!0,message:t("msg.baseURL.required")},{validator(r,n,o){n==="http://"&&o(t("msg.baseURL.required")),o()}}],children:x.jsx(Qt,{placeholder:t("placeholder.baseURL"),prefix:x.jsx(Rf,{className:"prefixIcon"})})}),x.jsx(we.Item,{name:"username",children:x.jsx(Qt,{placeholder:"username",prefix:x.jsx(Gf,{className:"prefixIcon"})})}),x.jsx(we.Item,{name:"password",children:x.jsx(Qt.Password,{placeholder:"password",prefix:x.jsx(Tf,{className:"prefixIcon"})})}),x.jsx(we.Item,{name:"save",valuePropName:"checked",children:x.jsx(ts,{children:t("base.form.local")})}),x.jsx(we.Item,{noStyle:!0,style:{marginBottom:"1em"},children:x.jsx(Kr,{block:!0,type:"primary",htmlType:"submit",children:t("base.cmd.connect")})}),x.jsx(dd,{})]}),x.jsx("div",{style:{position:"absolute",top:"1em",right:"1em"},children:x.jsxs(So,{children:[x.jsx(hd,{}),x.jsx(gd,{})]})})]})};const se=new No.EventEmitter;var Ut={},Bi={exports:{}};(function(t){function e(r){return r&&r.__esModule?r:{default:r}}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})(Bi);var Fe=Bi.exports,zt={};Object.defineProperty(zt,"__esModule",{value:!0});zt.default=void 0;var yd={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"};zt.default=yd;var Vt={},rt={},Kt={};Object.defineProperty(Kt,"__esModule",{value:!0});Kt.default=void 0;var vd={locale:"zh_CN",yearFormat:"YYYY年",cellDateFormat:"D",cellMeridiemFormat:"A",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪"};Kt.default=vd;var nt={};Object.defineProperty(nt,"__esModule",{value:!0});nt.default=void 0;const bd={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};nt.default=bd;var Ui=Fe.default;Object.defineProperty(rt,"__esModule",{value:!0});rt.default=void 0;var Sd=Ui(Kt),wd=Ui(nt);const zi={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},Sd.default),timePickerLocale:Object.assign({},wd.default)};zi.lang.ok="确定";rt.default=zi;var xd=Fe.default;Object.defineProperty(Vt,"__esModule",{value:!0});Vt.default=void 0;var Od=xd(rt);Vt.default=Od.default;var Ht=Fe.default;Object.defineProperty(Ut,"__esModule",{value:!0});Ut.default=void 0;var Ed=Ht(zt),Pd=Ht(Vt),Ad=Ht(rt),Ld=Ht(nt);const q="${label}不是一个有效的${type}",$d={locale:"zh-cn",Pagination:Ed.default,DatePicker:Ad.default,TimePicker:Ld.default,Calendar:Pd.default,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckall:"全选",filterSearchPlaceholder:"在筛选项中搜索",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:q,method:q,array:q,object:q,number:q,date:q,boolean:q,integer:q,float:q,regexp:q,email:q,url:q,hex:q},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码过期",refresh:"点击刷新",scanned:"已扫描"},ColorPicker:{presetEmpty:"暂无"}};Ut.default=$d;var Rd=Ut;const go=Vr(Rd);var qt={},Wt={};Object.defineProperty(Wt,"__esModule",{value:!0});Wt.default=void 0;var Cd={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"};Wt.default=Cd;var Jt={},ot={},Gt={};Object.defineProperty(Gt,"__esModule",{value:!0});Gt.default=void 0;var Nd={locale:"en_GB",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"Select time",dateSelect:"Select date",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"D/M/YYYY",dayFormat:"D",dateTimeFormat:"D/M/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"};Gt.default=Nd;var it={};Object.defineProperty(it,"__esModule",{value:!0});it.default=void 0;const _d={placeholder:"Select time"};it.default=_d;var Vi=Fe.default;Object.defineProperty(ot,"__esModule",{value:!0});ot.default=void 0;var Id=Vi(Gt),Td=Vi(it);const kd={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"]},Id.default),timePickerLocale:Object.assign({},Td.default)};ot.default=kd;var Dd=Fe.default;Object.defineProperty(Jt,"__esModule",{value:!0});Jt.default=void 0;var Fd=Dd(ot);Jt.default=Fd.default;var Yt=Fe.default;Object.defineProperty(qt,"__esModule",{value:!0});qt.default=void 0;var jd=Yt(Wt),Md=Yt(Jt),Bd=Yt(ot),Ud=Yt(it);const W="${label} is not a valid ${type}",zd={locale:"en-gb",Pagination:jd.default,DatePicker:Bd.default,TimePicker:Ud.default,Calendar:Md.default,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"},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"},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:W,method:W,array:W,object:W,number:W,date:W,boolean:W,integer:W,float:W,regexp:W,email:W,url:W,hex:W},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"}};qt.default=zd;var Vd=qt;const Kd=Vr(Vd),Hd=Ct.createContext({}),gp=Ct.createContext({localList:[],name:""}),mp=(t,e)=>{const r=`${t}:getComm`,n=o=>{o(e)};return se.on(r,n),()=>{se.off(r,n)}},yp=t=>new Promise((e,r)=>{const n=`${t}:getComm`;se.emit(n,e)}),qd=(t,e)=>{const r=t[e];return r?typeof r=="function"?r():Promise.resolve(r):new Promise((n,o)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(o.bind(null,new Error("Unknown variable dynamic import: "+e)))})},{slice:Wd,forEach:Jd}=[];function Gd(t){return Jd.call(Wd.call(arguments,1),e=>{if(e)for(const r in e)t[r]===void 0&&(t[r]=e[r])}),t}const mo=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Yd=(t,e,r)=>{const n=r||{};n.path=n.path||"/";const o=encodeURIComponent(e);let i=`${t}=${o}`;if(n.maxAge>0){const s=n.maxAge-0;if(Number.isNaN(s))throw new Error("maxAge should be a Number");i+=`; Max-Age=${Math.floor(s)}`}if(n.domain){if(!mo.test(n.domain))throw new TypeError("option domain is invalid");i+=`; Domain=${n.domain}`}if(n.path){if(!mo.test(n.path))throw new TypeError("option path is invalid");i+=`; Path=${n.path}`}if(n.expires){if(typeof n.expires.toUTCString!="function")throw new TypeError("option expires is invalid");i+=`; Expires=${n.expires.toUTCString()}`}if(n.httpOnly&&(i+="; HttpOnly"),n.secure&&(i+="; Secure"),n.sameSite)switch(typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite){case!0:i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"strict":i+="; SameSite=Strict";break;case"none":i+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return i},yo={create(t,e,r,n){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};r&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+r*60*1e3)),n&&(o.domain=n),document.cookie=Yd(t,encodeURIComponent(e),o)},read(t){const e=`${t}=`,r=document.cookie.split(";");for(let n=0;n-1&&(o=window.location.hash.substring(window.location.hash.indexOf("?")));const s=o.substring(1).split("&");for(let a=0;a0&&s[a].substring(0,l)===e&&(r=s[a].substring(l+1))}}return r}};let ze=null;const vo=()=>{if(ze!==null)return ze;try{ze=window!=="undefined"&&window.localStorage!==null;const t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{ze=!1}return ze};var Zd={name:"localStorage",lookup(t){let{lookupLocalStorage:e}=t;if(e&&vo())return window.localStorage.getItem(e)||void 0},cacheUserLanguage(t,e){let{lookupLocalStorage:r}=e;r&&vo()&&window.localStorage.setItem(r,t)}};let Ve=null;const bo=()=>{if(Ve!==null)return Ve;try{Ve=window!=="undefined"&&window.sessionStorage!==null;const t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{Ve=!1}return Ve};var ep={name:"sessionStorage",lookup(t){let{lookupSessionStorage:e}=t;if(e&&bo())return window.sessionStorage.getItem(e)||void 0},cacheUserLanguage(t,e){let{lookupSessionStorage:r}=e;r&&bo()&&window.sessionStorage.setItem(r,t)}},tp={name:"navigator",lookup(t){const e=[];if(typeof navigator<"u"){const{languages:r,userLanguage:n,language:o}=navigator;if(r)for(let i=0;i0?e:void 0}},rp={name:"htmlTag",lookup(t){let{htmlTag:e}=t,r;const n=e||(typeof document<"u"?document.documentElement:null);return n&&typeof n.getAttribute=="function"&&(r=n.getAttribute("lang")),r}},np={name:"path",lookup(t){var o;let{lookupFromPathIndex:e}=t;if(typeof window>"u")return;const r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(r)?(o=r[typeof e=="number"?e:0])==null?void 0:o.replace("/",""):void 0}},op={name:"subdomain",lookup(t){var o,i;let{lookupFromSubdomainIndex:e}=t;const r=typeof e=="number"?e+1:1,n=typeof window<"u"&&((i=(o=window.location)==null?void 0:o.hostname)==null?void 0:i.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i));if(n)return n[r]}};function ip(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:t=>t}}class Ki{constructor(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(e,r)}init(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=e||{languageUtils:{}},this.options=Gd(r,this.options||{},ip()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=o=>o.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(Qd),this.addDetector(Xd),this.addDetector(Zd),this.addDetector(ep),this.addDetector(tp),this.addDetector(rp),this.addDetector(np),this.addDetector(op)}addDetector(e){return this.detectors[e.name]=e,this}detect(e){e||(e=this.options.order);let r=[];return e.forEach(n=>{if(this.detectors[n]){let o=this.detectors[n].lookup(this.options);o&&typeof o=="string"&&(o=[o]),o&&(r=r.concat(o))}}),r=r.map(n=>this.options.convertDetectedLanguage(n)),this.services.languageUtils.getBestMatchFromCodes?r:r.length>0?r[0]:null}cacheUserLanguage(e,r){r||(r=this.options.caches),r&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||r.forEach(n=>{this.detectors[n]&&this.detectors[n].cacheUserLanguage(e,this.options)}))}}Ki.type="languageDetector";var sp=function(e){return{type:"backend",init:function(n,o,i){},read:function(n,o,i){if(typeof e=="function"){if(e.length<3){try{var s=e(n,o);s&&typeof s.then=="function"?s.then(function(a){return i(null,a&&a.default||a)}).catch(i):i(null,s)}catch(a){i(a)}return}e(n,o,i);return}i(null,e&&e[n]&&e[n][o])}}};const Hi="en";T.use(Ki).use(ad).use(sp((t,e)=>qd(Object.assign({"../i18n/en.json":()=>pt(()=>import("./en-d8bb208f.js"),[],import.meta.url),"../i18n/languages.json":()=>pt(()=>import("./languages-a578aa29.js"),[],import.meta.url),"../i18n/zh.json":()=>pt(()=>import("./zh-fac22c27.js"),[],import.meta.url)}),`../i18n/${t}.json`))).init({debug:!1,fallbackLng:Hi,interpolation:{escapeValue:!1}});function vp(t){if(typeof t=="string"||O.isValidElement(t))return t;const e=T.resolvedLanguage;return t[e]||t[Hi]||""}const ap=Ct.lazy(()=>pt(()=>import("./Manage-45bbb409.js"),["./Manage-45bbb409.js","./antd-b4989dd4.js"],import.meta.url)),lp=t=>{const{locale:e,theme:r}=O.useContext(dt.ConfigContext);return O.useLayoutEffect(()=>{dt.config({theme:r,holderRender:n=>x.jsx(dt,{theme:r,children:n})})},[e,r]),x.jsx(ns,{children:t.children})};function up(){const t=ve(),{t:e,i18n:r}=Bt(),n=ct(),o=ft(),i=Mi(),[s,a]=O.useState(!1),[l,u]=O.useState(!1),[c,d]=O.useState(!1),[f,y]=O.useState(go),p=O.useMemo(()=>l||c,[l,c]),g=O.useRef({update:async()=>{var m;try{u(!0),d(!0);const[v,b]=await Promise.all([Br(),g.current.updateLocalConfig((m=ve.get())==null?void 0:m.addr)]);return ct.set(v),ft.set(b),[v,b]}finally{u(!1),d(!1)}},updateLocalConfig:async m=>{try{m||ft.set(null),d(!0);const v=await De.getAllCacheConfig(m),b={};return v.forEach(S=>{const{_type_:w}=S;(b[w]?b[w]:b[w]=[]).push(S)}),b}finally{d(!1)}},defaultTitle:document.title});return O.useEffect(()=>{sf().then(()=>a(!0));const m=async()=>ct.set(await Br()),v=async()=>{var S;return ft.set(await g.current.updateLocalConfig((S=ve.get())==null?void 0:S.addr))},b=g.current.update;return se.on("apiUpdate",m),se.on("localUpdate",v),se.on("update",b),()=>{se.off("apiUpdate",m),se.off("localUpdate",v),se.off("update",b)}},[]),O.useEffect(()=>{t?g.current.update().then(([m])=>{ct.set(m),document.title=t.addr.replace(/^(https?:)?\/\//,"")}):document.title=g.current.defaultTitle},[t]),O.useEffect(()=>{var m,v;i?(document.documentElement.classList.add("theme-dark"),(m=window==null?void 0:window.monaco)==null||m.editor.setTheme("vs-dark")):(document.documentElement.classList.remove("theme-dark"),(v=window==null?void 0:window.monaco)==null||v.editor.setTheme("vs"))},[i]),O.useEffect(()=>{const m=r.resolvedLanguage;y(m==="zh"?go:Kd)},[r.resolvedLanguage]),x.jsx(Hd.Provider,{value:{gostConfig:n,localConfig:o,isLoading:p},children:x.jsx(dt,{theme:{algorithm:i?rs.darkAlgorithm:void 0},locale:f,children:x.jsx(lp,{children:x.jsx(Ct.Suspense,{fallback:x.jsx(fn,{fullscreen:!0,size:"large"}),children:s?t?x.jsx(ap,{}):x.jsx(md,{}):x.jsx(fn,{fullscreen:!0,size:"large"})})})})})}br.createRoot(document.getElementById("root")).render(x.jsx(up,{}));export{hp as A,gp as C,pp as L,hd as T,Mi as a,vp as b,br as c,Hd as d,se as e,mp as f,sd as g,yp as h,ct as i,x as j,ve as k,uf as l,ef as m,Ti as n,gd as o,ki as p,Zu as q,Ef as s,Bt as u}; diff --git a/assets/zh-c566da85.js b/assets/zh-c566da85.js deleted file mode 100644 index e3c5d0f..0000000 --- a/assets/zh-c566da85.js +++ /dev/null @@ -1 +0,0 @@ -const e="简体中文",t={title:"GOST API Manage",description:"连接API服务",form:{username:"用户名",password:"密码",local:"保存到本地",name:"名称",details:"详情"},cmd:{connect:"连接",controls:"操作",enabled:"启用",disable:"禁用",copy:"复制",edit:"修改",del:"删除"}},s={warn:"警告",deleteing:"确定要删除吗?",doubleClickEdit:"双击修改"},i={admission:{title:"准入控制器(Admission)",subTitle:"准入控制器"},auther:{title:"认证器(Auther)",subTitle:"认证器"},bypass:{title:"分流器(Bypass)",subTitle:"分流器"},chain:{title:"转发链(Chain)",subTitle:"转发链"},climiter:{title:"并发连接数限制",subTitle:""},limiter:{title:"流量速率限制",subTitle:""},rlimiter:{title:"请求速率限制",subTitle:""},hop:{title:"跳跃点(Hop)",subTitle:"跳跃点"},host:{title:"主机映射器(Hosts)",subTitle:"主机映射器"},ingress:{title:"Ingress",subTitle:"Ingress"},resolver:{title:"域名解析器(Resolver)",subTitle:"域名解析器"},service:{title:"服务(Service)",subTitle:"服务"},sd:{title:"服务发现(SD)",subTitle:"服务发现"},observer:{title:"观测器(Observer)",subTitle:"观测器"}},l={baseURL:{required:"请输入API地址"},require:"不能为空!",success:"操作成功!",unknown:"出现未知错误!",connectionFailed:"连接失败!",wordWrap:"自动换行",invalidName:"name无效",autofixName:"是否自动分配name?",autofix:"自动修正提醒",fixName:"新分配 name 为 {{name}}",formatError:"{{name}}格式错误!"},a={baseURL:"API baseURL",savePath:"默认保存到上下文目录"},o={quickConnect:"快速连接"},n={cmd:{reload:"刷新配置",save:"保存到服务器",download:"下载当前配置",logout:"退出",switch:"切换服务",new:"连接新服务"},label:{autoSave:"自动保存",format:"格式",path:"保存路径",limit:"限速限流",allConfig:"完整配置"}},r={edit:"修改 {{name}}",add:"添加 {{name}}",copied:"复制自 {{name}}"},m={default:"默认",inline:"内联"},c={template:"模板",forwarder:"转发/反代",key0:"远程端口转发"},d={language:e,base:t,text:s,modules:i,msg:l,placeholder:a,home:o,manage:n,title:r,template:m,terms:c};export{t as base,d as default,o as home,e as language,n as manage,i as modules,l as msg,a as placeholder,m as template,c as terms,s as text,r as title}; diff --git a/assets/zh-fac22c27.js b/assets/zh-fac22c27.js new file mode 100644 index 0000000..059b83c --- /dev/null +++ b/assets/zh-fac22c27.js @@ -0,0 +1 @@ +const e="简体中文",t={title:"GOST API Manage",description:"连接API服务",form:{username:"用户名",password:"密码",local:"保存到本地",name:"名称",details:"详情"},cmd:{connect:"连接",controls:"操作",enabled:"启用",disable:"禁用",copy:"复制",edit:"修改",del:"删除",reset:"重置"}},s={warn:"警告",deleteing:"确定要删除吗?",doubleClickEdit:"双击修改"},i={admission:{title:"准入控制器(Admission)",subTitle:"准入控制器"},auther:{title:"认证器(Auther)",subTitle:"认证器"},bypass:{title:"分流器(Bypass)",subTitle:"分流器"},chain:{title:"转发链(Chain)",subTitle:"转发链"},climiter:{title:"并发连接数限制",subTitle:""},limiter:{title:"流量速率限制",subTitle:""},rlimiter:{title:"请求速率限制",subTitle:""},hop:{title:"跳跃点(Hop)",subTitle:"跳跃点"},host:{title:"主机映射器(Hosts)",subTitle:"主机映射器"},ingress:{title:"Ingress",subTitle:"Ingress"},resolver:{title:"域名解析器(Resolver)",subTitle:"域名解析器"},service:{title:"服务(Service)",subTitle:"服务"},sd:{title:"服务发现(SD)",subTitle:"服务发现"},observer:{title:"观测器(Observer)",subTitle:"观测器"}},l={baseURL:{required:"请输入API地址"},require:"不能为空!",success:"操作成功!",unknown:"出现未知错误!",connectionFailed:"连接失败!",wordWrap:"自动换行",invalidName:"name无效",autofixName:"是否自动分配name?",autofix:"自动修正提醒",fixName:"新分配 name 为 {{name}}",formatError:"{{name}}格式错误!"},a={baseURL:"API baseURL",savePath:"默认保存到上下文目录"},o={quickConnect:"快速连接"},n={cmd:{reload:"刷新配置",save:"保存到服务器",download:"下载当前配置",logout:"退出",switch:"切换服务",new:"连接新服务"},label:{autoSave:"自动保存",format:"格式",path:"保存路径",limit:"限速限流",allConfig:"完整配置"}},r={edit:"修改 {{name}}",add:"添加 {{name}}",copied:"复制自 {{name}}"},m={default:"默认",inline:"内联"},c={template:"模板",forwarder:"转发/反代",key0:"远程端口转发"},d={language:e,base:t,text:s,modules:i,msg:l,placeholder:a,home:o,manage:n,title:r,template:m,terms:c};export{t as base,d as default,o as home,e as language,n as manage,i as modules,l as msg,a as placeholder,m as template,c as terms,s as text,r as title}; diff --git a/index.html b/index.html index aafc554..9126125 100644 --- a/index.html +++ b/index.html @@ -12,9 +12,9 @@ require.config({ paths: { vs: document.getElementById("nonaco").src.replace(/\/loader\.js/,'') } }); })(); - - - + + +