You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
101 KiB
47 lines
101 KiB
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[921],{27812:function(et,se,t){t.d(se,{Z:function(){return q}});var d=t(92413),s=t(59301),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},W=b,v=t(7657),G=function(z,K){return s.createElement(v.Z,(0,d.Z)({},z,{ref:K,icon:W}))},F=s.forwardRef(G),q=F},84105:function(et,se,t){t.d(se,{Z:function(){return q}});var d=t(92413),s=t(59301),b={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"},W=b,v=t(7657),G=function(z,K){return s.createElement(v.Z,(0,d.Z)({},z,{ref:K,icon:W}))},F=s.forwardRef(G),q=F},18785:function(et,se,t){t.d(se,{Z:function(){return q}});var d=t(92413),s=t(59301),b={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"},W=b,v=t(7657),G=function(z,K){return s.createElement(v.Z,(0,d.Z)({},z,{ref:K,icon:W}))},F=s.forwardRef(G),q=F},33853:function(et,se,t){t.d(se,{Z:function(){return q}});var d=t(92413),s=t(59301),b={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"},W=b,v=t(7657),G=function(z,K){return s.createElement(v.Z,(0,d.Z)({},z,{ref:K,icon:W}))},F=s.forwardRef(G),q=F},38819:function(et,se,t){t.d(se,{Z:function(){return q}});var d=t(92413),s=t(59301),b={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"},W=b,v=t(7657),G=function(z,K){return s.createElement(v.Z,(0,d.Z)({},z,{ref:K,icon:W}))},F=s.forwardRef(G),q=F},17933:function(et,se,t){t.r(se),t.d(se,{default:function(){return Me}});var d=t(59301),s=t(89070),b=t(66104),W=t(95237),v=t(43604),G=t(61621),F=t(27812),q=t(23954),T={flex_box_center:"flex_box_center___aDZ0y",flex_space_between:"flex_space_between___YgV77",flex_box_vertical_center:"flex_box_vertical_center___RiXOn",flex_box_center_end:"flex_box_center_end___leo_X",flex_box_column:"flex_box_column___yVux9",title:"title___eoGRP",wrap:"wrap___sXyah",code:"code___NIt6L",error:"error___p_cW8"},z=t(99064),K=Object.defineProperty,D=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,ue=(k,ne,w)=>ne in k?K(k,ne,{enumerable:!0,configurable:!0,writable:!0,value:w}):k[ne]=w,pe=(k,ne)=>{for(var w in ne||(ne={}))n.call(ne,w)&&ue(k,w,ne[w]);if(D)for(var w of D(ne))Y.call(ne,w)&&ue(k,w,ne[w]);return k},he=(k,ne,w)=>new Promise((Q,O)=>{var C=j=>{try{B(w.next(j))}catch(le){O(le)}},A=j=>{try{B(w.throw(j))}catch(le){O(le)}},B=j=>j.done?Q(j.value):Promise.resolve(j.value).then(C,A);B((w=w.apply(k,ne)).next())});const M=({exercise:k,user:ne,dispatch:w})=>{var Q,O;const C=(Q=window.location.pathname)==null?void 0:Q.includes("exercise"),A=C?"exercise":"shixun_homework",B=(0,s.useParams)(),[j]=(0,s.useSearchParams)(),{userInfo:le}=ne,oe=j.get("name"),Ce=j.get("rule_id"),Pe=j.get("uuid"),u=j.get("language"),P=j.get("rowNumber"),Z=j.get("issueId"),[c,S]=(0,d.useState)({}),[X,L]=(0,d.useState)({value:"",language:u.toLowerCase(),theme:"vs",options:{readOnly:!0},errorContent:"",errorLine:parseInt(P)}),[H,J]=(0,d.useState)(!0);(0,d.useEffect)(()=>{ve()},[]);const ve=()=>he(void 0,null,function*(){var ce,de,ye;J(!0);const xe=yield(0,z.ZP)("/api/code_analyses_detail/code_detail.json",{method:"get",params:{rule_id:Ce,uuid:Pe,issue_id:Z}});if(xe.status===0){X.value=(de=(ce=xe.data)==null?void 0:ce.codes)==null?void 0:de.map(ge=>ge.code).join(`
|
|
`);const Se=document.createElement("div");Se.innerHTML=X.value,X.value=Se.innerText,X.errorContent=(ye=xe==null?void 0:xe.data)==null?void 0:ye.errMessage,L(pe({},X)),S(xe.data)}J(!1)});return d.createElement("section",{className:"edu-container"},d.createElement("section",{className:"animated fadeIn"},d.createElement("aside",{className:"mt10"},le&&d.createElement(b.Z,{separator:">"},d.createElement(b.Z.Item,null,d.createElement(s.Link,{to:`/classrooms/${B.coursesId}/${A}`},(O=le==null?void 0:le.course)==null?void 0:O.course_name)),d.createElement(b.Z.Item,null,d.createElement(s.Link,{to:`/classrooms/${B.coursesId}/${A}`},C?"\u8003\u8BD5":"\u5B9E\u8BAD","\u5217\u8868")),d.createElement(b.Z.Item,null,d.createElement(s.Link,{to:`/classrooms/${B.coursesId}/${A}/${B==null?void 0:B.exerciseId}/detail`},C?"\u8BD5\u5377":"\u4F5C\u4E1A","\u8BE6\u60C5")),d.createElement(b.Z.Item,null,oe))),d.createElement("aside",{className:[T.title,"mt20"].join(" ")},d.createElement(W.Z,{style:{width:"100%"}},d.createElement(v.Z,{flex:"1",style:{lineHeight:"24px"}},d.createElement(s.Link,{to:`/classrooms/${B.coursesId}/${A}/${B.exerciseId}/analysis/${B.studentId}`},d.createElement(F.Z,{className:"font16 c-black"})),d.createElement("strong",{className:"font20 ml5"},"\u4EE3\u7801\u8BE6\u60C5"))))),d.createElement("section",{className:T.wrap},d.createElement(G.Z,{loading:H,active:!0,paragraph:{rows:5}},d.createElement("div",{className:T.title},c==null?void 0:c.title),d.createElement("div",{className:T.code},d.createElement(q.ZP,pe({},X))),d.createElement("div",{className:T.error,dangerouslySetInnerHTML:{__html:(c==null?void 0:c.example)||""}}))))};var Me=(0,s.connect)(({exercise:k,user:ne})=>({exercise:k,user:ne}))(M)},66104:function(et,se,t){t.d(se,{Z:function(){return Pe}});var d=t(92310),s=t.n(d),b=t(11592),W=t(26112),v=t(59301),G=t(92343),F=t(36355),q=t(84105),T=t(91857);const z=u=>{let{children:P}=u;const{getPrefixCls:Z}=v.useContext(F.E_),c=Z("breadcrumb");return v.createElement("li",{className:`${c}-separator`,"aria-hidden":"true"},P===""?P:P||"/")};z.__ANT_BREADCRUMB_SEPARATOR=!0;var K=z,D=function(u,P){var Z={};for(var c in u)Object.prototype.hasOwnProperty.call(u,c)&&P.indexOf(c)<0&&(Z[c]=u[c]);if(u!=null&&typeof Object.getOwnPropertySymbols=="function")for(var S=0,c=Object.getOwnPropertySymbols(u);S<c.length;S++)P.indexOf(c[S])<0&&Object.prototype.propertyIsEnumerable.call(u,c[S])&&(Z[c[S]]=u[c[S]]);return Z};function n(u,P){if(u.title===void 0||u.title===null)return null;const Z=Object.keys(P).join("|");return typeof u.title=="object"?u.title:String(u.title).replace(new RegExp(`:(${Z})`,"g"),(c,S)=>P[S]||c)}function Y(u,P,Z,c){if(Z==null)return null;const{className:S,onClick:X}=P,L=D(P,["className","onClick"]),H=Object.assign(Object.assign({},(0,W.Z)(L,{data:!0,aria:!0})),{onClick:X});return c!==void 0?v.createElement("a",Object.assign({},H,{className:s()(`${u}-link`,S),href:c}),Z):v.createElement("span",Object.assign({},H,{className:s()(`${u}-link`,S)}),Z)}function ue(u,P){return(c,S,X,L,H)=>{if(P)return P(c,S,X,L);const J=n(c,S);return Y(u,c,J,H)}}var pe=function(u,P){var Z={};for(var c in u)Object.prototype.hasOwnProperty.call(u,c)&&P.indexOf(c)<0&&(Z[c]=u[c]);if(u!=null&&typeof Object.getOwnPropertySymbols=="function")for(var S=0,c=Object.getOwnPropertySymbols(u);S<c.length;S++)P.indexOf(c[S])<0&&Object.prototype.propertyIsEnumerable.call(u,c[S])&&(Z[c[S]]=u[c[S]]);return Z};const he=u=>{const{prefixCls:P,separator:Z="/",children:c,menu:S,overlay:X,dropdownProps:L,href:H}=u,ve=(ce=>{if(S||X){const de=Object.assign({},L);if(S){const ye=S||{},{items:xe}=ye,Se=pe(ye,["items"]);de.menu=Object.assign(Object.assign({},Se),{items:xe==null?void 0:xe.map((ge,Te)=>{var{key:Re,title:Le,label:Oe,path:m}=ge,i=pe(ge,["key","title","label","path"]);let e=Oe!=null?Oe:Le;return m&&(e=v.createElement("a",{href:`${H}${m}`},e)),Object.assign(Object.assign({},i),{key:Re!=null?Re:Te,label:e})})})}else X&&(de.overlay=X);return v.createElement(T.Z,Object.assign({placement:"bottom"},de),v.createElement("span",{className:`${P}-overlay-link`},ce,v.createElement(q.Z,null)))}return ce})(c);return ve!=null?v.createElement(v.Fragment,null,v.createElement("li",null,ve),Z&&v.createElement(K,null,Z)):null},M=u=>{const{prefixCls:P,children:Z,href:c}=u,S=pe(u,["prefixCls","children","href"]),{getPrefixCls:X}=v.useContext(F.E_),L=X("breadcrumb",P);return v.createElement(he,Object.assign({},S,{prefixCls:L}),Y(L,S,Z,c))};M.__ANT_BREADCRUMB_ITEM=!0;var Me=M,k=t(17313),ne=t(83116),w=t(37613);const Q=u=>{const{componentCls:P,iconCls:Z}=u;return{[P]:Object.assign(Object.assign({},(0,k.Wf)(u)),{color:u.itemColor,fontSize:u.fontSize,[Z]:{fontSize:u.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:u.linkColor,transition:`color ${u.motionDurationMid}`,padding:`0 ${u.paddingXXS}px`,borderRadius:u.borderRadiusSM,height:u.lineHeight*u.fontSize,display:"inline-block",marginInline:-u.marginXXS,"&:hover":{color:u.linkHoverColor,backgroundColor:u.colorBgTextHover}},(0,k.Qy)(u)),"li:last-child":{color:u.lastItemColor},[`${P}-separator`]:{marginInline:u.separatorMargin,color:u.separatorColor},[`${P}-link`]:{[`
|
|
> ${Z} + span,
|
|
> ${Z} + a
|
|
`]:{marginInlineStart:u.marginXXS}},[`${P}-overlay-link`]:{borderRadius:u.borderRadiusSM,height:u.lineHeight*u.fontSize,display:"inline-block",padding:`0 ${u.paddingXXS}px`,marginInline:-u.marginXXS,[`> ${Z}`]:{marginInlineStart:u.marginXXS,fontSize:u.fontSizeIcon},"&:hover":{color:u.linkHoverColor,backgroundColor:u.colorBgTextHover,a:{color:u.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${u.componentCls}-rtl`]:{direction:"rtl"}})}};var O=(0,ne.Z)("Breadcrumb",u=>{const P=(0,w.TS)(u,{});return[Q(P)]},u=>({itemColor:u.colorTextDescription,lastItemColor:u.colorText,iconFontSize:u.fontSize,linkColor:u.colorTextDescription,linkHoverColor:u.colorText,separatorColor:u.colorTextDescription,separatorMargin:u.marginXS})),C=function(u,P){var Z={};for(var c in u)Object.prototype.hasOwnProperty.call(u,c)&&P.indexOf(c)<0&&(Z[c]=u[c]);if(u!=null&&typeof Object.getOwnPropertySymbols=="function")for(var S=0,c=Object.getOwnPropertySymbols(u);S<c.length;S++)P.indexOf(c[S])<0&&Object.prototype.propertyIsEnumerable.call(u,c[S])&&(Z[c[S]]=u[c[S]]);return Z};function A(u){const{breadcrumbName:P,children:Z}=u,c=C(u,["breadcrumbName","children"]),S=Object.assign({title:P},c);return Z&&(S.menu={items:Z.map(X=>{var{breadcrumbName:L}=X,H=C(X,["breadcrumbName"]);return Object.assign(Object.assign({},H),{title:L})})}),S}function B(u,P){return(0,v.useMemo)(()=>u||(P?P.map(A):null),[u,P])}var j=function(u,P){var Z={};for(var c in u)Object.prototype.hasOwnProperty.call(u,c)&&P.indexOf(c)<0&&(Z[c]=u[c]);if(u!=null&&typeof Object.getOwnPropertySymbols=="function")for(var S=0,c=Object.getOwnPropertySymbols(u);S<c.length;S++)P.indexOf(c[S])<0&&Object.prototype.propertyIsEnumerable.call(u,c[S])&&(Z[c[S]]=u[c[S]]);return Z};const le=(u,P)=>{if(P===void 0)return P;let Z=(P||"").replace(/^\//,"");return Object.keys(u).forEach(c=>{Z=Z.replace(`:${c}`,u[c])}),Z},oe=u=>{const{prefixCls:P,separator:Z="/",style:c,className:S,rootClassName:X,routes:L,items:H,children:J,itemRender:ve,params:ce={}}=u,de=j(u,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:ye,direction:xe,breadcrumb:Se}=v.useContext(F.E_);let ge;const Te=ye("breadcrumb",P),[Re,Le]=O(Te),Oe=B(H,L),m=ue(Te,ve);if(Oe&&Oe.length>0){const r=[],o=H||L;ge=Oe.map((g,h)=>{const{path:x,key:R,type:N,menu:$,overlay:V,onClick:_,className:me,separator:ae,dropdownProps:ie}=g,ee=le(ce,x);ee!==void 0&&r.push(ee);const te=R!=null?R:h;if(N==="separator")return v.createElement(K,{key:te},ae);const Ne={},Ge=h===Oe.length-1;$?Ne.menu=$:V&&(Ne.overlay=V);let{href:Fe}=g;return r.length&&ee!==void 0&&(Fe=`#/${r.join("/")}`),v.createElement(he,Object.assign({key:te},Ne,(0,W.Z)(g,{data:!0,aria:!0}),{className:me,dropdownProps:ie,href:Fe,separator:Ge?"":Z,onClick:_,prefixCls:Te}),m(g,ce,o,r,Fe))})}else if(J){const r=(0,b.Z)(J).length;ge=(0,b.Z)(J).map((o,g)=>{if(!o)return o;const h=g===r-1;return(0,G.Tm)(o,{separator:h?"":Z,key:g})})}const i=s()(Te,Se==null?void 0:Se.className,{[`${Te}-rtl`]:xe==="rtl"},S,X,Le),e=Object.assign(Object.assign({},Se==null?void 0:Se.style),c);return Re(v.createElement("nav",Object.assign({className:i,style:e},de),v.createElement("ol",null,ge)))};oe.Item=Me,oe.Separator=K;var Ce=oe,Pe=Ce},91857:function(et,se,t){var d=t(59301),s=t(38819),b=t(92310),W=t.n(b),v=t(31561),G=t(70425),F=t(18929),q=t(2738),T=t(79676),z=t(53487),K=t(92343),D=t(36355),n=t(20834),Y=t(40875),ue=t(88088),pe=t(47211);const he=null,M=w=>{const{menu:Q,arrow:O,prefixCls:C,children:A,trigger:B,disabled:j,dropdownRender:le,getPopupContainer:oe,overlayClassName:Ce,rootClassName:Pe,open:u,onOpenChange:P,visible:Z,onVisibleChange:c,mouseEnterDelay:S=.15,mouseLeaveDelay:X=.1,autoAdjustOverflow:L=!0,placement:H="",overlay:J,transitionName:ve}=w,{getPopupContainer:ce,getPrefixCls:de,direction:ye}=d.useContext(D.E_),xe=d.useMemo(()=>{const $=de();return ve!==void 0?ve:H.includes("top")?`${$}-slide-down`:`${$}-slide-up`},[de,H,ve]),Se=d.useMemo(()=>H?H.includes("Center")?H.slice(0,H.indexOf("Center")):H:ye==="rtl"?"bottomRight":"bottomLeft",[H,ye]),ge=de("dropdown",C),[Te,Re]=(0,pe.Z)(ge),[,Le]=(0,ue.Z)(),Oe=d.Children.only(A),m=(0,K.Tm)(Oe,{className:W()(`${ge}-trigger`,{[`${ge}-rtl`]:ye==="rtl"},Oe.props.className),disabled:j}),i=j?[]:B;let e;i&&i.includes("contextMenu")&&(e=!0);const[r,o]=(0,F.Z)(!1,{value:u!=null?u:Z}),g=(0,G.useEvent)($=>{P==null||P($),c==null||c($),o($)}),h=W()(Ce,Pe,Re,{[`${ge}-rtl`]:ye==="rtl"}),x=(0,T.Z)({arrowPointAtCenter:typeof O=="object"&&O.pointAtCenter,autoAdjustOverflow:L,offset:Le.marginXXS,arrowWidth:O?Le.sizePopupArrow:0,borderRadius:Le.borderRadius}),R=d.useCallback(()=>{o(!1)},[]),N=()=>{let $;return Q!=null&&Q.items?$=d.createElement(n.default,Object.assign({},Q)):typeof J=="function"?$=J():$=J,le&&($=le($)),$=d.Children.only(typeof $=="string"?d.createElement("span",null,$):$),d.createElement(Y.J,{prefixCls:`${ge}-menu`,expandIcon:d.createElement("span",{className:`${ge}-menu-submenu-arrow`},d.createElement(s.Z,{className:`${ge}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:R,validator:V=>{let{mode:_}=V}},$)};return Te(d.createElement(v.Z,Object.assign({alignPoint:e},(0,q.Z)(w,["rootClassName"]),{mouseEnterDelay:S,mouseLeaveDelay:X,visible:r,builtinPlacements:x,arrow:!!O,overlayClassName:h,prefixCls:ge,getPopupContainer:oe||ce,transitionName:xe,trigger:i,overlay:N,placement:Se,onVisibleChange:g}),m))};function Me(w){return Object.assign(Object.assign({},w),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const k=(0,z.Z)(M,"dropdown",w=>w,Me),ne=w=>d.createElement(k,Object.assign({},w),d.createElement("span",null));M._InternalPanelDoNotUseOrYouWillBeFired=ne,se.Z=M},47211:function(et,se,t){t.d(se,{Z:function(){return K}});var d=t(17313),s=t(13826),b=t(92899),W=t(29878),v=t(19447),G=t(83116),F=t(37613),T=D=>{const{componentCls:n,menuCls:Y,colorError:ue,colorTextLightSolid:pe}=D,he=`${Y}-item`;return{[`${n}, ${n}-menu-submenu`]:{[`${Y} ${he}`]:{[`&${he}-danger:not(${he}-disabled)`]:{color:ue,"&:hover":{color:pe,backgroundColor:ue}}}}}};const z=D=>{const{componentCls:n,menuCls:Y,zIndexPopup:ue,dropdownArrowDistance:pe,sizePopupArrow:he,antCls:M,iconCls:Me,motionDurationMid:k,dropdownPaddingVertical:ne,fontSize:w,dropdownEdgeChildPadding:Q,colorTextDisabled:O,fontSizeIcon:C,controlPaddingHorizontal:A,colorBgElevated:B}=D;return[{[n]:Object.assign(Object.assign({},(0,d.Wf)(D)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:ue,display:"block","&::before":{position:"absolute",insetBlock:-pe+he/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${M}-btn`]:{[`& > ${Me}-down, & > ${M}-btn-icon > ${Me}-down`]:{fontSize:C}},[`${n}-wrap`]:{position:"relative",[`${M}-btn > ${Me}-down`]:{fontSize:C},[`${Me}-down::before`]:{transition:`transform ${k}`}},[`${n}-wrap-open`]:{[`${Me}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${M}-slide-down-enter${M}-slide-down-enter-active${n}-placement-bottomLeft,
|
|
&${M}-slide-down-appear${M}-slide-down-appear-active${n}-placement-bottomLeft,
|
|
&${M}-slide-down-enter${M}-slide-down-enter-active${n}-placement-bottom,
|
|
&${M}-slide-down-appear${M}-slide-down-appear-active${n}-placement-bottom,
|
|
&${M}-slide-down-enter${M}-slide-down-enter-active${n}-placement-bottomRight,
|
|
&${M}-slide-down-appear${M}-slide-down-appear-active${n}-placement-bottomRight`]:{animationName:s.fJ},[`&${M}-slide-up-enter${M}-slide-up-enter-active${n}-placement-topLeft,
|
|
&${M}-slide-up-appear${M}-slide-up-appear-active${n}-placement-topLeft,
|
|
&${M}-slide-up-enter${M}-slide-up-enter-active${n}-placement-top,
|
|
&${M}-slide-up-appear${M}-slide-up-appear-active${n}-placement-top,
|
|
&${M}-slide-up-enter${M}-slide-up-enter-active${n}-placement-topRight,
|
|
&${M}-slide-up-appear${M}-slide-up-appear-active${n}-placement-topRight`]:{animationName:s.Qt},[`&${M}-slide-down-leave${M}-slide-down-leave-active${n}-placement-bottomLeft,
|
|
&${M}-slide-down-leave${M}-slide-down-leave-active${n}-placement-bottom,
|
|
&${M}-slide-down-leave${M}-slide-down-leave-active${n}-placement-bottomRight`]:{animationName:s.Uw},[`&${M}-slide-up-leave${M}-slide-up-leave-active${n}-placement-topLeft,
|
|
&${M}-slide-up-leave${M}-slide-up-leave-active${n}-placement-top,
|
|
&${M}-slide-up-leave${M}-slide-up-leave-active${n}-placement-topRight`]:{animationName:s.ly}})},(0,v.ZP)(D,{colorBg:B,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${n} ${Y}`]:{position:"relative",margin:0},[`${Y}-submenu-popup`]:{position:"absolute",zIndex:ue,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${n}, ${n}-menu-submenu`]:{[Y]:Object.assign(Object.assign({padding:Q,listStyleType:"none",backgroundColor:B,backgroundClip:"padding-box",borderRadius:D.borderRadiusLG,outline:"none",boxShadow:D.boxShadowSecondary},(0,d.Qy)(D)),{[`${Y}-item-group-title`]:{padding:`${ne}px ${A}px`,color:D.colorTextDescription,transition:`all ${k}`},[`${Y}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${Y}-item-icon`]:{minWidth:w,marginInlineEnd:D.marginXS,fontSize:D.fontSizeSM},[`${Y}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${k}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${Y}-item, ${Y}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ne}px ${A}px`,color:D.colorText,fontWeight:"normal",fontSize:w,lineHeight:D.lineHeight,cursor:"pointer",transition:`all ${k}`,borderRadius:D.borderRadiusSM,"&:hover, &-active":{backgroundColor:D.controlItemBgHover}},(0,d.Qy)(D)),{"&-selected":{color:D.colorPrimary,backgroundColor:D.controlItemBgActive,"&:hover, &-active":{backgroundColor:D.controlItemBgActiveHover}},"&-disabled":{color:O,cursor:"not-allowed","&:hover":{color:O,backgroundColor:B,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${D.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:D.colorSplit},[`${n}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:D.paddingXS,[`${n}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:D.colorTextDescription,fontSize:C,fontStyle:"normal"}}}),[`${Y}-item-group-list`]:{margin:`0 ${D.marginXS}px`,padding:0,listStyle:"none"},[`${Y}-submenu-title`]:{paddingInlineEnd:A+D.fontSizeSM},[`${Y}-submenu-vertical`]:{position:"relative"},[`${Y}-submenu${Y}-submenu-disabled ${n}-menu-submenu-title`]:{[`&, ${n}-menu-submenu-arrow-icon`]:{color:O,backgroundColor:B,cursor:"not-allowed"}},[`${Y}-submenu-selected ${n}-menu-submenu-title`]:{color:D.colorPrimary}})}},[(0,s.oN)(D,"slide-up"),(0,s.oN)(D,"slide-down"),(0,b.Fm)(D,"move-up"),(0,b.Fm)(D,"move-down"),(0,W._y)(D,"zoom-big")]]};var K=(0,G.Z)("Dropdown",(D,n)=>{let{rootPrefixCls:Y}=n;const{marginXXS:ue,sizePopupArrow:pe,controlHeight:he,fontSize:M,lineHeight:Me,paddingXXS:k,componentCls:ne,borderRadiusLG:w}=D,Q=(he-M*Me)/2,{dropdownArrowOffset:O}=(0,v.fS)({contentRadius:w}),C=(0,F.TS)(D,{menuCls:`${ne}-menu`,rootPrefixCls:Y,dropdownArrowDistance:pe/2+ue,dropdownArrowOffset:O,dropdownPaddingVertical:Q,dropdownEdgeChildPadding:k});return[z(C),T(C)]},D=>({zIndexPopup:D.zIndexPopupBase+50}))},45818:function(et,se,t){t.d(se,{D:function(){return k},Z:function(){return Q}});var d=t(92413),s=t(59301),b={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"},W=b,v=t(7657),G=function(C,A){return s.createElement(v.Z,(0,d.Z)({},C,{ref:A,icon:W}))},F=s.forwardRef(G),q=F,T=t(33853),z=t(38819),K=t(92310),D=t.n(K),n=t(2738),ue=O=>!isNaN(parseFloat(O))&&isFinite(O),pe=t(36355),he=t(84966),M=function(O,C){var A={};for(var B in O)Object.prototype.hasOwnProperty.call(O,B)&&C.indexOf(B)<0&&(A[B]=O[B]);if(O!=null&&typeof Object.getOwnPropertySymbols=="function")for(var j=0,B=Object.getOwnPropertySymbols(O);j<B.length;j++)C.indexOf(B[j])<0&&Object.prototype.propertyIsEnumerable.call(O,B[j])&&(A[B[j]]=O[B[j]]);return A};const Me={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},k=s.createContext({}),ne=(()=>{let O=0;return function(){let C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return O+=1,`${C}${O}`}})();var Q=s.forwardRef((O,C)=>{const{prefixCls:A,className:B,trigger:j,children:le,defaultCollapsed:oe=!1,theme:Ce="dark",style:Pe={},collapsible:u=!1,reverseArrow:P=!1,width:Z=200,collapsedWidth:c=80,zeroWidthTriggerStyle:S,breakpoint:X,onCollapse:L,onBreakpoint:H}=O,J=M(O,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:ve}=(0,s.useContext)(he.Gs),[ce,de]=(0,s.useState)("collapsed"in O?O.collapsed:oe),[ye,xe]=(0,s.useState)(!1);(0,s.useEffect)(()=>{"collapsed"in O&&de(O.collapsed)},[O.collapsed]);const Se=(m,i)=>{"collapsed"in O||de(m),L==null||L(m,i)},ge=(0,s.useRef)();ge.current=m=>{xe(m.matches),H==null||H(m.matches),ce!==m.matches&&Se(m.matches,"responsive")},(0,s.useEffect)(()=>{function m(e){return ge.current(e)}let i;if(typeof window!="undefined"){const{matchMedia:e}=window;if(e&&X&&X in Me){i=e(`(max-width: ${Me[X]})`);try{i.addEventListener("change",m)}catch(r){i.addListener(m)}m(i)}}return()=>{try{i==null||i.removeEventListener("change",m)}catch(e){i==null||i.removeListener(m)}}},[X]),(0,s.useEffect)(()=>{const m=ne("ant-sider-");return ve.addSider(m),()=>ve.removeSider(m)},[]);const Te=()=>{Se(!ce,"clickTrigger")},{getPrefixCls:Re}=(0,s.useContext)(pe.E_),Le=()=>{const m=Re("layout-sider",A),i=(0,n.Z)(J,["collapsed"]),e=ce?c:Z,r=ue(e)?`${e}px`:String(e),o=parseFloat(String(c||0))===0?s.createElement("span",{onClick:Te,className:D()(`${m}-zero-width-trigger`,`${m}-zero-width-trigger-${P?"right":"left"}`),style:S},j||s.createElement(q,null)):null,x={expanded:P?s.createElement(z.Z,null):s.createElement(T.Z,null),collapsed:P?s.createElement(T.Z,null):s.createElement(z.Z,null)}[ce?"collapsed":"expanded"],R=j!==null?o||s.createElement("div",{className:`${m}-trigger`,onClick:Te,style:{width:r}},j||x):null,N=Object.assign(Object.assign({},Pe),{flex:`0 0 ${r}`,maxWidth:r,minWidth:r,width:r}),$=D()(m,`${m}-${Ce}`,{[`${m}-collapsed`]:!!ce,[`${m}-has-trigger`]:u&&j!==null&&!o,[`${m}-below`]:!!ye,[`${m}-zero-width`]:parseFloat(r)===0},B);return s.createElement("aside",Object.assign({className:$},i,{style:N,ref:C}),s.createElement("div",{className:`${m}-children`},le),u||ye&&o?R:null)},Oe=s.useMemo(()=>({siderCollapsed:ce}),[ce]);return s.createElement(k.Provider,{value:Oe},Le())})},84966:function(et,se,t){t.d(se,{VY:function(){return k},$_:function(){return Me},h4:function(){return M},Gs:function(){return n},ZP:function(){return ne}});var d=t(26407),s=t(92310),b=t.n(s),W=t(2738),v=t(59301),G=t(36355),F=t(83116),T=w=>{const{componentCls:Q,bodyBg:O,lightSiderBg:C,lightTriggerBg:A,lightTriggerColor:B}=w;return{[`${Q}-sider-light`]:{background:C,[`${Q}-sider-trigger`]:{color:B,background:A},[`${Q}-sider-zero-width-trigger`]:{color:B,background:A,border:`1px solid ${O}`,borderInlineStart:0}}}};const z=w=>{const{antCls:Q,componentCls:O,colorText:C,triggerColor:A,footerBg:B,triggerBg:j,headerHeight:le,headerPadding:oe,headerColor:Ce,footerPadding:Pe,triggerHeight:u,zeroTriggerHeight:P,zeroTriggerWidth:Z,motionDurationMid:c,motionDurationSlow:S,fontSize:X,borderRadius:L,bodyBg:H,headerBg:J,siderBg:ve}=w;return{[O]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:H,"&, *":{boxSizing:"border-box"},[`&${O}-has-sider`]:{flexDirection:"row",[`> ${O}, > ${O}-content`]:{width:0}},[`${O}-header, &${O}-footer`]:{flex:"0 0 auto"},[`${O}-sider`]:{position:"relative",minWidth:0,background:ve,transition:`all ${c}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${Q}-menu${Q}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:u},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:u,color:A,lineHeight:`${u}px`,textAlign:"center",background:j,cursor:"pointer",transition:`all ${c}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:le,insetInlineEnd:-Z,zIndex:1,width:Z,height:P,color:A,fontSize:w.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:ve,borderStartStartRadius:0,borderStartEndRadius:L,borderEndEndRadius:L,borderEndStartRadius:0,cursor:"pointer",transition:`background ${S} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${S}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Z,borderStartStartRadius:L,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:L}}}}},T(w)),{"&-rtl":{direction:"rtl"}}),[`${O}-header`]:{height:le,padding:oe,color:Ce,lineHeight:`${le}px`,background:J,[`${Q}-menu`]:{lineHeight:"inherit"}},[`${O}-footer`]:{padding:Pe,color:C,fontSize:X,background:B},[`${O}-content`]:{flex:"auto",minHeight:0}}};var K=(0,F.Z)("Layout",w=>[z(w)],w=>{const{colorBgLayout:Q,controlHeight:O,controlHeightLG:C,colorText:A,controlHeightSM:B,marginXXS:j,colorTextLightSolid:le,colorBgContainer:oe}=w,Ce=C*1.25;return{colorBgHeader:"#001529",colorBgBody:Q,colorBgTrigger:"#002140",bodyBg:Q,headerBg:"#001529",headerHeight:O*2,headerPadding:`0 ${Ce}px`,headerColor:A,footerPadding:`${B}px ${Ce}px`,footerBg:Q,siderBg:"#001529",triggerHeight:C+j*2,triggerBg:"#002140",triggerColor:le,zeroTriggerWidth:C,zeroTriggerHeight:C,lightSiderBg:oe,lightTriggerBg:oe,lightTriggerColor:A}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),D=function(w,Q){var O={};for(var C in w)Object.prototype.hasOwnProperty.call(w,C)&&Q.indexOf(C)<0&&(O[C]=w[C]);if(w!=null&&typeof Object.getOwnPropertySymbols=="function")for(var A=0,C=Object.getOwnPropertySymbols(w);A<C.length;A++)Q.indexOf(C[A])<0&&Object.prototype.propertyIsEnumerable.call(w,C[A])&&(O[C[A]]=w[C[A]]);return O};const n=v.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function Y(w){let{suffixCls:Q,tagName:O,displayName:C}=w;return A=>v.forwardRef((j,le)=>v.createElement(A,Object.assign({ref:le,suffixCls:Q,tagName:O},j)))}const ue=v.forwardRef((w,Q)=>{const{prefixCls:O,suffixCls:C,className:A,tagName:B}=w,j=D(w,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:le}=v.useContext(G.E_),oe=le("layout",O),[Ce,Pe]=K(oe),u=C?`${oe}-${C}`:oe;return Ce(v.createElement(B,Object.assign({className:b()(O||u,A,Pe),ref:Q},j)))}),pe=v.forwardRef((w,Q)=>{const{direction:O}=v.useContext(G.E_),[C,A]=v.useState([]),{prefixCls:B,className:j,rootClassName:le,children:oe,hasSider:Ce,tagName:Pe,style:u}=w,P=D(w,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Z=(0,W.Z)(P,["suffixCls"]),{getPrefixCls:c,layout:S}=v.useContext(G.E_),X=c("layout",B),[L,H]=K(X),J=b()(X,{[`${X}-has-sider`]:typeof Ce=="boolean"?Ce:C.length>0,[`${X}-rtl`]:O==="rtl"},S==null?void 0:S.className,j,le,H),ve=v.useMemo(()=>({siderHook:{addSider:ce=>{A(de=>[].concat((0,d.Z)(de),[ce]))},removeSider:ce=>{A(de=>de.filter(ye=>ye!==ce))}}}),[]);return L(v.createElement(n.Provider,{value:ve},v.createElement(Pe,Object.assign({ref:Q,className:J,style:Object.assign(Object.assign({},S==null?void 0:S.style),u)},Z),oe)))}),he=Y({tagName:"div",displayName:"Layout"})(pe),M=Y({suffixCls:"header",tagName:"header",displayName:"Header"})(ue),Me=Y({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(ue),k=Y({suffixCls:"content",tagName:"main",displayName:"Content"})(ue);var ne=he},40875:function(et,se,t){t.d(se,{J:function(){return G}});var d=t(59301),s=t(33234),b=t(70425),W=function(F,q){var T={};for(var z in F)Object.prototype.hasOwnProperty.call(F,z)&&q.indexOf(z)<0&&(T[z]=F[z]);if(F!=null&&typeof Object.getOwnPropertySymbols=="function")for(var K=0,z=Object.getOwnPropertySymbols(F);K<z.length;K++)q.indexOf(z[K])<0&&Object.prototype.propertyIsEnumerable.call(F,z[K])&&(T[z[K]]=F[z[K]]);return T};const v=d.createContext(null),G=d.forwardRef((F,q)=>{const{children:T}=F,z=W(F,["children"]),K=d.useContext(v),D=d.useMemo(()=>Object.assign(Object.assign({},K),z),[K,z.prefixCls,z.mode,z.selectable]);return d.createElement(v.Provider,{value:D},d.createElement(s.BR,null,(0,b.supportNodeRef)(T)?d.cloneElement(T,{ref:q}):T))});se.Z=v},20834:function(et,se,t){t.d(se,{default:function(){return Oe}});var d=t(15285),s=t(59301),b=t(45818),W=t(92310),v=t.n(W),G=t(36355),F=function(m,i){var e={};for(var r in m)Object.prototype.hasOwnProperty.call(m,r)&&i.indexOf(r)<0&&(e[r]=m[r]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(m);o<r.length;o++)i.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(m,r[o])&&(e[r[o]]=m[r[o]]);return e},T=m=>{const{prefixCls:i,className:e,dashed:r}=m,o=F(m,["prefixCls","className","dashed"]),{getPrefixCls:g}=s.useContext(G.E_),h=g("menu",i),x=v()({[`${h}-item-divider-dashed`]:!!r},e);return s.createElement(d.iz,Object.assign({className:x},o))},z=t(11592),K=t(2738),D=t(6848),n=t(92343),ue=(0,s.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),he=m=>{var i;const{className:e,children:r,icon:o,title:g,danger:h}=m,{prefixCls:x,firstLevel:R,direction:N,disableMenuItemTitleTooltip:$,inlineCollapsed:V}=s.useContext(ue),_=Ne=>{const Ge=s.createElement("span",{className:`${x}-title-content`},r);return(!o||(0,n.l$)(r)&&r.type==="span")&&r&&Ne&&R&&typeof r=="string"?s.createElement("div",{className:`${x}-inline-collapsed-noicon`},r.charAt(0)):Ge},{siderCollapsed:me}=s.useContext(b.D);let ae=g;typeof g=="undefined"?ae=R?r:"":g===!1&&(ae="");const ie={title:ae};!me&&!V&&(ie.title=null,ie.open=!1);const ee=(0,z.Z)(r).length;let te=s.createElement(d.ck,Object.assign({},(0,K.Z)(m,["title","icon","danger"]),{className:v()({[`${x}-item-danger`]:h,[`${x}-item-only-child`]:(o?ee+1:ee)===1},e),title:typeof g=="string"?g:void 0}),(0,n.Tm)(o,{className:v()((0,n.l$)(o)?(i=o.props)===null||i===void 0?void 0:i.className:"",`${x}-item-icon`)}),_(V));return $||(te=s.createElement(D.Z,Object.assign({},ie,{placement:N==="rtl"?"left":"right",overlayClassName:`${x}-inline-collapsed-tooltip`}),te)),te},Me=m=>{var i;const{popupClassName:e,icon:r,title:o,theme:g}=m,h=s.useContext(ue),{prefixCls:x,inlineCollapsed:R,theme:N}=h,$=(0,d.Xl)();let V;if(!r)V=R&&!$.length&&o&&typeof o=="string"?s.createElement("div",{className:`${x}-inline-collapsed-noicon`},o.charAt(0)):s.createElement("span",{className:`${x}-title-content`},o);else{const me=(0,n.l$)(o)&&o.type==="span";V=s.createElement(s.Fragment,null,(0,n.Tm)(r,{className:v()((0,n.l$)(r)?(i=r.props)===null||i===void 0?void 0:i.className:"",`${x}-item-icon`)}),me?o:s.createElement("span",{className:`${x}-title-content`},o))}const _=s.useMemo(()=>Object.assign(Object.assign({},h),{firstLevel:!1}),[h]);return s.createElement(ue.Provider,{value:_},s.createElement(d.Wd,Object.assign({},(0,K.Z)(m,["icon"]),{title:V,popupClassName:v()(x,e,`${x}-${g||N}`)})))},k=t(18785),ne=t(70425),w=t(62892),Q=t(40875),O=function(m,i){var e={};for(var r in m)Object.prototype.hasOwnProperty.call(m,r)&&i.indexOf(r)<0&&(e[r]=m[r]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(m);o<r.length;o++)i.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(m,r[o])&&(e[r[o]]=m[r[o]]);return e};function C(m){return(m||[]).map((i,e)=>{if(i&&typeof i=="object"){const r=i,{label:o,children:g,key:h,type:x}=r,R=O(r,["label","children","key","type"]),N=h!=null?h:`tmp-${e}`;return g||x==="group"?x==="group"?s.createElement(d.BW,Object.assign({key:N},R,{title:o}),C(g)):s.createElement(Me,Object.assign({key:N},R,{title:o}),C(g)):x==="divider"?s.createElement(T,Object.assign({key:N},R)):s.createElement(he,Object.assign({key:N},R),o)}return null}).filter(i=>i)}function A(m){return s.useMemo(()=>m&&C(m),[m])}var B=t(64993),j=t(17313),le=t(8378),oe=t(13826),Ce=t(29878),Pe=t(83116),u=t(37613),Z=m=>{const{componentCls:i,motionDurationSlow:e,horizontalLineHeight:r,colorSplit:o,lineWidth:g,lineType:h,itemPaddingInline:x}=m;return{[`${i}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${g}px ${h} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${i}-item, ${i}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:x},[`> ${i}-item:hover,
|
|
> ${i}-item-active,
|
|
> ${i}-submenu ${i}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${i}-item, ${i}-submenu-title`]:{transition:[`border-color ${e}`,`background ${e}`].join(",")},[`${i}-submenu-arrow`]:{display:"none"}}}},S=m=>{let{componentCls:i,menuArrowOffset:e}=m;return{[`${i}-rtl`]:{direction:"rtl"},[`${i}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${i}-rtl${i}-vertical,
|
|
${i}-submenu-rtl ${i}-vertical`]:{[`${i}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${e})`},"&::after":{transform:`rotate(45deg) translateY(${e})`}}}}};const X=m=>Object.assign({},(0,j.oN)(m));var H=(m,i)=>{const{componentCls:e,itemColor:r,itemSelectedColor:o,groupTitleColor:g,itemBg:h,subMenuItemBg:x,itemSelectedBg:R,activeBarHeight:N,activeBarWidth:$,activeBarBorderWidth:V,motionDurationSlow:_,motionEaseInOut:me,motionEaseOut:ae,itemPaddingInline:ie,motionDurationMid:ee,itemHoverColor:te,lineType:Ne,colorSplit:Ge,itemDisabledColor:Fe,dangerItemColor:tt,dangerItemHoverColor:Ye,dangerItemSelectedColor:Qe,dangerItemActiveBg:Be,dangerItemSelectedBg:nt,itemHoverBg:at,itemActiveBg:rt,menuSubMenuBg:St,horizontalItemSelectedColor:Dt,horizontalItemSelectedBg:Mt,horizontalItemBorderRadius:mt,horizontalItemHoverBg:wt,popupBg:Ft}=m;return{[`${e}-${i}, ${e}-${i} > ${e}`]:{color:r,background:h,[`&${e}-root:focus-visible`]:Object.assign({},X(m)),[`${e}-item-group-title`]:{color:g},[`${e}-submenu-selected`]:{[`> ${e}-submenu-title`]:{color:o}},[`${e}-item-disabled, ${e}-submenu-disabled`]:{color:`${Fe} !important`},[`${e}-item:not(${e}-item-selected):not(${e}-submenu-selected)`]:{[`&:hover, > ${e}-submenu-title:hover`]:{color:te}},[`&:not(${e}-horizontal)`]:{[`${e}-item:not(${e}-item-selected)`]:{"&:hover":{backgroundColor:at},"&:active":{backgroundColor:rt}},[`${e}-submenu-title`]:{"&:hover":{backgroundColor:at},"&:active":{backgroundColor:rt}}},[`${e}-item-danger`]:{color:tt,[`&${e}-item:hover`]:{[`&:not(${e}-item-selected):not(${e}-submenu-selected)`]:{color:Ye}},[`&${e}-item:active`]:{background:Be}},[`${e}-item a`]:{"&, &:hover":{color:"inherit"}},[`${e}-item-selected`]:{color:o,[`&${e}-item-danger`]:{color:Qe},"a, a:hover":{color:"inherit"}},[`& ${e}-item-selected`]:{backgroundColor:R,[`&${e}-item-danger`]:{backgroundColor:nt}},[`${e}-item, ${e}-submenu-title`]:{[`&:not(${e}-item-disabled):focus-visible`]:Object.assign({},X(m))},[`&${e}-submenu > ${e}`]:{backgroundColor:St},[`&${e}-popup > ${e}`]:{backgroundColor:Ft},[`&${e}-horizontal`]:Object.assign(Object.assign({},i==="dark"?{borderBottom:0}:{}),{[`> ${e}-item, > ${e}-submenu`]:{top:V,marginTop:-V,marginBottom:0,borderRadius:mt,"&::after":{position:"absolute",insetInline:ie,bottom:0,borderBottom:`${N}px solid transparent`,transition:`border-color ${_} ${me}`,content:'""'},"&:hover, &-active, &-open":{background:wt,"&::after":{borderBottomWidth:N,borderBottomColor:Dt}},"&-selected":{color:Dt,backgroundColor:Mt,"&:hover":{backgroundColor:Mt},"&::after":{borderBottomWidth:N,borderBottomColor:Dt}}}}),[`&${e}-root`]:{[`&${e}-inline, &${e}-vertical`]:{borderInlineEnd:`${V}px ${Ne} ${Ge}`}},[`&${e}-inline`]:{[`${e}-sub${e}-inline`]:{background:x},[`${e}-item, ${e}-submenu-title`]:V&&$?{width:`calc(100% + ${V}px)`}:{},[`${e}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${$}px solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${ee} ${ae}`,`opacity ${ee} ${ae}`].join(","),content:'""'},[`&${e}-item-danger`]:{"&::after":{borderInlineEndColor:Qe}}},[`${e}-selected, ${e}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${ee} ${me}`,`opacity ${ee} ${me}`].join(",")}}}}}};const J=m=>{const{componentCls:i,itemHeight:e,itemMarginInline:r,padding:o,menuArrowSize:g,marginXS:h,itemMarginBlock:x}=m,R=o+g+h;return{[`${i}-item`]:{position:"relative",overflow:"hidden"},[`${i}-item, ${i}-submenu-title`]:{height:e,lineHeight:`${e}px`,paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:x,width:`calc(100% - ${r*2}px)`},[`> ${i}-item,
|
|
> ${i}-submenu > ${i}-submenu-title`]:{height:e,lineHeight:`${e}px`},[`${i}-item-group-list ${i}-submenu-title,
|
|
${i}-submenu-title`]:{paddingInlineEnd:R}}};var ce=m=>{const{componentCls:i,iconCls:e,itemHeight:r,colorTextLightSolid:o,dropdownWidth:g,controlHeightLG:h,motionDurationMid:x,motionEaseOut:R,paddingXL:N,itemMarginInline:$,fontSizeLG:V,motionDurationSlow:_,paddingXS:me,boxShadowSecondary:ae,collapsedWidth:ie,collapsedIconSize:ee}=m,te={height:r,lineHeight:`${r}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[i]:{"&-inline, &-vertical":Object.assign({[`&${i}-root`]:{boxShadow:"none"}},J(m))},[`${i}-submenu-popup`]:{[`${i}-vertical`]:Object.assign(Object.assign({},J(m)),{boxShadow:ae})}},{[`${i}-submenu-popup ${i}-vertical${i}-sub`]:{minWidth:g,maxHeight:`calc(100vh - ${h*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${i}-inline`]:{width:"100%",[`&${i}-root`]:{[`${i}-item, ${i}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${_}`,`background ${_}`,`padding ${x} ${R}`].join(","),[`> ${i}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${i}-sub${i}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${i}-submenu > ${i}-submenu-title`]:te,[`& ${i}-item-group-title`]:{paddingInlineStart:N}},[`${i}-item`]:te}},{[`${i}-inline-collapsed`]:{width:ie,[`&${i}-root`]:{[`${i}-item, ${i}-submenu ${i}-submenu-title`]:{[`> ${i}-inline-collapsed-noicon`]:{fontSize:V,textAlign:"center"}}},[`> ${i}-item,
|
|
> ${i}-item-group > ${i}-item-group-list > ${i}-item,
|
|
> ${i}-item-group > ${i}-item-group-list > ${i}-submenu > ${i}-submenu-title,
|
|
> ${i}-submenu > ${i}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${V/2}px - ${$}px)`,textOverflow:"clip",[`
|
|
${i}-submenu-arrow,
|
|
${i}-submenu-expand-icon
|
|
`]:{opacity:0},[`${i}-item-icon, ${e}`]:{margin:0,fontSize:ee,lineHeight:`${r}px`,"+ span":{display:"inline-block",opacity:0}}},[`${i}-item-icon, ${e}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${i}-item-icon, ${e}`]:{display:"none"},"a, a:hover":{color:o}},[`${i}-item-group-title`]:Object.assign(Object.assign({},j.vS),{paddingInline:me})}}]};const de=m=>{const{componentCls:i,motionDurationSlow:e,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:g,iconCls:h,iconSize:x,iconMarginInlineEnd:R}=m;return{[`${i}-item, ${i}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${e}`,`background ${e}`,`padding ${e} ${o}`].join(","),[`${i}-item-icon, ${h}`]:{minWidth:x,fontSize:x,transition:[`font-size ${r} ${g}`,`margin ${e} ${o}`,`color ${e}`].join(","),"+ span":{marginInlineStart:R,opacity:1,transition:[`opacity ${e} ${o}`,`margin ${e}`,`color ${e}`].join(",")}},[`${i}-item-icon`]:Object.assign({},(0,j.Ro)()),[`&${i}-item-only-child`]:{[`> ${h}, > ${i}-item-icon`]:{marginInlineEnd:0}}},[`${i}-item-disabled, ${i}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${i}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},ye=m=>{const{componentCls:i,motionDurationSlow:e,motionEaseInOut:r,borderRadius:o,menuArrowSize:g,menuArrowOffset:h}=m;return{[`${i}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:m.margin,width:g,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${e} ${r}, opacity ${e}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:g*.6,height:g*.15,backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${e} ${r}`,`transform ${e} ${r}`,`top ${e} ${r}`,`color ${e} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${h})`},"&::after":{transform:`rotate(-45deg) translateY(${h})`}}}}},xe=m=>{const{antCls:i,componentCls:e,fontSize:r,motionDurationSlow:o,motionDurationMid:g,motionEaseInOut:h,paddingXS:x,padding:R,colorSplit:N,lineWidth:$,zIndexPopup:V,borderRadiusLG:_,subMenuItemBorderRadius:me,menuArrowSize:ae,menuArrowOffset:ie,lineType:ee,menuPanelMaskInset:te,groupTitleLineHeight:Ne,groupTitleFontSize:Ge}=m;return[{"":{[`${e}`]:Object.assign(Object.assign({},(0,j.dF)()),{"&-hidden":{display:"none"}})},[`${e}-submenu-hidden`]:{display:"none"}},{[e]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,j.Wf)(m)),(0,j.dF)()),{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",[`${e}-item`]:{flex:"none"}},[`${e}-item, ${e}-submenu, ${e}-submenu-title`]:{borderRadius:m.itemBorderRadius},[`${e}-item-group-title`]:{padding:`${x}px ${R}px`,fontSize:Ge,lineHeight:Ne,transition:`all ${o}`},[`&-horizontal ${e}-submenu`]:{transition:[`border-color ${o} ${h}`,`background ${o} ${h}`].join(",")},[`${e}-submenu, ${e}-submenu-inline`]:{transition:[`border-color ${o} ${h}`,`background ${o} ${h}`,`padding ${g} ${h}`].join(",")},[`${e}-submenu ${e}-sub`]:{cursor:"initial",transition:[`background ${o} ${h}`,`padding ${o} ${h}`].join(",")},[`${e}-title-content`]:{transition:`color ${o}`},[`${e}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${e}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:N,borderStyle:ee,borderWidth:0,borderTopWidth:$,marginBlock:$,padding:0,"&-dashed":{borderStyle:"dashed"}}}),de(m)),{[`${e}-item-group`]:{[`${e}-item-group-list`]:{margin:0,padding:0,[`${e}-item, ${e}-submenu-title`]:{paddingInline:`${r*2}px ${R}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:V,borderRadius:_,boxShadow:"none",transformOrigin:"0 0",[`&${e}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${te}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:te},"\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:m.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:m.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:m.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:m.paddingXS},[`> ${e}`]:Object.assign(Object.assign(Object.assign({borderRadius:_},de(m)),ye(m)),{[`${e}-item, ${e}-submenu > ${e}-submenu-title`]:{borderRadius:me},[`${e}-submenu-title::after`]:{transition:`transform ${o} ${h}`}})}}),ye(m)),{[`&-inline-collapsed ${e}-submenu-arrow,
|
|
&-inline ${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${ie})`},"&::after":{transform:`rotate(45deg) translateX(-${ie})`}},[`${e}-submenu-open${e}-submenu-inline > ${e}-submenu-title > ${e}-submenu-arrow`]:{transform:`translateY(-${ae*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${ie})`},"&::before":{transform:`rotate(45deg) translateX(${ie})`}}})},{[`${i}-layout-header`]:{[e]:{lineHeight:"inherit"}}}]};var Se=(m,i)=>(0,Pe.Z)("Menu",r=>{if(i===!1)return[];const{colorBgElevated:o,colorPrimary:g,colorTextLightSolid:h,controlHeightLG:x,fontSize:R,darkItemColor:N,darkDangerItemColor:$,darkItemBg:V,darkSubMenuItemBg:_,darkItemSelectedColor:me,darkItemSelectedBg:ae,darkDangerItemSelectedBg:ie,darkItemHoverBg:ee,darkGroupTitleColor:te,darkItemHoverColor:Ne,darkItemDisabledColor:Ge,darkDangerItemHoverColor:Fe,darkDangerItemSelectedColor:tt,darkDangerItemActiveBg:Ye}=r,Qe=R/7*5,Be=(0,u.TS)(r,{menuArrowSize:Qe,menuHorizontalHeight:x*1.15,menuArrowOffset:`${Qe*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:o}),nt=(0,u.TS)(Be,{itemColor:N,itemHoverColor:Ne,groupTitleColor:te,itemSelectedColor:me,itemBg:V,popupBg:V,subMenuItemBg:_,itemActiveBg:"transparent",itemSelectedBg:ae,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:ee,itemDisabledColor:Ge,dangerItemColor:$,dangerItemHoverColor:Fe,dangerItemSelectedColor:tt,dangerItemActiveBg:Ye,dangerItemSelectedBg:ie,menuSubMenuBg:_,horizontalItemSelectedColor:h,horizontalItemSelectedBg:g});return[xe(Be),Z(Be),ce(Be),H(Be,"light"),H(nt,"dark"),S(Be),(0,le.Z)(Be),(0,oe.oN)(Be,"slide-up"),(0,oe.oN)(Be,"slide-down"),(0,Ce._y)(Be,"zoom-big")]},r=>{const{colorPrimary:o,colorError:g,colorTextDisabled:h,colorErrorBg:x,colorText:R,colorTextDescription:N,colorBgContainer:$,colorFillAlter:V,colorFillContent:_,lineWidth:me,lineWidthBold:ae,controlItemBgActive:ie,colorBgTextHover:ee,controlHeightLG:te,lineHeight:Ne,colorBgElevated:Ge,marginXXS:Fe,padding:tt,fontSize:Ye,controlHeightSM:Qe,fontSizeLG:Be,colorTextLightSolid:nt,colorErrorHover:at}=r,rt=new B.C(nt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:r.zIndexPopupBase+50,radiusItem:r.borderRadiusLG,itemBorderRadius:r.borderRadiusLG,radiusSubMenuItem:r.borderRadiusSM,subMenuItemBorderRadius:r.borderRadiusSM,colorItemText:R,itemColor:R,colorItemTextHover:R,itemHoverColor:R,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:N,groupTitleColor:N,colorItemTextSelected:o,itemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:$,itemBg:$,colorItemBgHover:ee,itemHoverBg:ee,colorItemBgActive:_,itemActiveBg:ie,colorSubItemBg:V,subMenuItemBg:V,colorItemBgSelected:ie,itemSelectedBg:ie,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:ae,activeBarHeight:ae,colorActiveBarBorderSize:me,activeBarBorderWidth:me,colorItemTextDisabled:h,itemDisabledColor:h,colorDangerItemText:g,dangerItemColor:g,colorDangerItemTextHover:g,dangerItemHoverColor:g,colorDangerItemTextSelected:g,dangerItemSelectedColor:g,colorDangerItemBgActive:x,dangerItemActiveBg:x,colorDangerItemBgSelected:x,dangerItemSelectedBg:x,itemMarginInline:r.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:te,groupTitleLineHeight:Ne,collapsedWidth:te*2,popupBg:Ge,itemMarginBlock:Fe,itemPaddingInline:tt,horizontalLineHeight:`${te*1.15}px`,iconSize:Ye,iconMarginInlineEnd:Qe-Ye,collapsedIconSize:Be,groupTitleFontSize:Ye,darkItemDisabledColor:new B.C(nt).setAlpha(.25).toRgbString(),darkItemColor:rt,darkDangerItemColor:g,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:nt,darkItemSelectedBg:o,darkDangerItemSelectedBg:g,darkItemHoverBg:"transparent",darkGroupTitleColor:rt,darkItemHoverColor:nt,darkDangerItemHoverColor:at,darkDangerItemSelectedColor:nt,darkDangerItemActiveBg:g}},{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"]]})(m),ge=function(m,i){var e={};for(var r in m)Object.prototype.hasOwnProperty.call(m,r)&&i.indexOf(r)<0&&(e[r]=m[r]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(m);o<r.length;o++)i.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(m,r[o])&&(e[r[o]]=m[r[o]]);return e},Re=(0,s.forwardRef)((m,i)=>{var e,r;const o=s.useContext(Q.Z),g=o||{},{getPrefixCls:h,getPopupContainer:x,direction:R,menu:N}=s.useContext(G.E_),$=h(),{prefixCls:V,className:_,style:me,theme:ae="light",expandIcon:ie,_internalDisableMenuItemTitleTooltip:ee,inlineCollapsed:te,siderCollapsed:Ne,items:Ge,children:Fe,rootClassName:tt,mode:Ye,selectable:Qe,onClick:Be,overflowedIndicatorPopupClassName:nt}=m,at=ge(m,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),rt=(0,K.Z)(at,["collapsedWidth"]),St=A(Ge)||Fe;(e=g.validator)===null||e===void 0||e.call(g,{mode:Ye});const Dt=(0,ne.useEvent)(function(){var It;Be==null||Be.apply(void 0,arguments),(It=g.onClick)===null||It===void 0||It.call(g)}),Mt=g.mode||Ye,mt=Qe!=null?Qe:g.selectable,wt=s.useMemo(()=>Ne!==void 0?Ne:te,[te,Ne]),Ft={horizontal:{motionName:`${$}-slide-up`},inline:(0,w.Z)($),other:{motionName:`${$}-zoom-big`}},ct=h("menu",V||g.prefixCls),[Tt,mn]=Se(ct,!o),pt=v()(`${ct}-${ae}`,N==null?void 0:N.className,_);let jt;if(typeof ie=="function")jt=ie;else if(ie===null||ie===!1)jt=null;else if(g.expandIcon===null||g.expandIcon===!1)jt=null;else{const It=ie!=null?ie:g.expandIcon;jt=(0,n.Tm)(It,{className:v()(`${ct}-submenu-expand-icon`,(0,n.l$)(It)?(r=It.props)===null||r===void 0?void 0:r.className:"")})}const Je=s.useMemo(()=>({prefixCls:ct,inlineCollapsed:wt||!1,direction:R,firstLevel:!0,theme:ae,mode:Mt,disableMenuItemTitleTooltip:ee}),[ct,wt,R,ee,ae]);return Tt(s.createElement(Q.Z.Provider,{value:null},s.createElement(ue.Provider,{value:Je},s.createElement(d.ZP,Object.assign({getPopupContainer:x,overflowedIndicator:s.createElement(k.Z,null),overflowedIndicatorPopupClassName:v()(ct,`${ct}-${ae}`,nt),mode:Mt,selectable:mt,onClick:Dt},rt,{inlineCollapsed:wt,style:Object.assign(Object.assign({},N==null?void 0:N.style),me),className:pt,prefixCls:ct,direction:R,defaultMotions:Ft,expandIcon:jt,ref:i,rootClassName:v()(tt,mn)}),St))))});const Le=(0,s.forwardRef)((m,i)=>{const e=(0,s.useRef)(null),r=s.useContext(b.D);return(0,s.useImperativeHandle)(i,()=>({menu:e.current,focus:o=>{var g;(g=e.current)===null||g===void 0||g.focus(o)}})),s.createElement(Re,Object.assign({ref:e},m,r))});Le.Item=he,Le.SubMenu=Me,Le.Divider=T,Le.ItemGroup=d.BW;var Oe=Le},61621:function(et,se,t){t.d(se,{Z:function(){return i}});var d=t(92310),s=t.n(d),b=t(59301),W=t(36355),v=t(2738),F=e=>{const{prefixCls:r,className:o,style:g,size:h,shape:x}=e,R=s()({[`${r}-lg`]:h==="large",[`${r}-sm`]:h==="small"}),N=s()({[`${r}-circle`]:x==="circle",[`${r}-square`]:x==="square",[`${r}-round`]:x==="round"}),$=b.useMemo(()=>typeof h=="number"?{width:h,height:h,lineHeight:`${h}px`}:{},[h]);return b.createElement("span",{className:s()(r,R,N,o),style:Object.assign(Object.assign({},$),g)})},q=t(93083),T=t(83116),z=t(37613);const K=new q.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),D=e=>({height:e,lineHeight:`${e}px`}),n=e=>Object.assign({width:e},D(e)),Y=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:K,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),ue=e=>Object.assign({width:e*5,minWidth:e*5},D(e)),pe=e=>{const{skeletonAvatarCls:r,gradientFromColor:o,controlHeight:g,controlHeightLG:h,controlHeightSM:x}=e;return{[`${r}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:o},n(g)),[`${r}${r}-circle`]:{borderRadius:"50%"},[`${r}${r}-lg`]:Object.assign({},n(h)),[`${r}${r}-sm`]:Object.assign({},n(x))}},he=e=>{const{controlHeight:r,borderRadiusSM:o,skeletonInputCls:g,controlHeightLG:h,controlHeightSM:x,gradientFromColor:R}=e;return{[`${g}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:R,borderRadius:o},ue(r)),[`${g}-lg`]:Object.assign({},ue(h)),[`${g}-sm`]:Object.assign({},ue(x))}},M=e=>Object.assign({width:e},D(e)),Me=e=>{const{skeletonImageCls:r,imageSizeBase:o,gradientFromColor:g,borderRadiusSM:h}=e;return{[`${r}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:g,borderRadius:h},M(o*2)),{[`${r}-path`]:{fill:"#bfbfbf"},[`${r}-svg`]:Object.assign(Object.assign({},M(o)),{maxWidth:o*4,maxHeight:o*4}),[`${r}-svg${r}-svg-circle`]:{borderRadius:"50%"}}),[`${r}${r}-circle`]:{borderRadius:"50%"}}},k=(e,r,o)=>{const{skeletonButtonCls:g}=e;return{[`${o}${g}-circle`]:{width:r,minWidth:r,borderRadius:"50%"},[`${o}${g}-round`]:{borderRadius:r}}},ne=e=>Object.assign({width:e*2,minWidth:e*2},D(e)),w=e=>{const{borderRadiusSM:r,skeletonButtonCls:o,controlHeight:g,controlHeightLG:h,controlHeightSM:x,gradientFromColor:R}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${o}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:R,borderRadius:r,width:g*2,minWidth:g*2},ne(g))},k(e,g,o)),{[`${o}-lg`]:Object.assign({},ne(h))}),k(e,h,`${o}-lg`)),{[`${o}-sm`]:Object.assign({},ne(x))}),k(e,x,`${o}-sm`))},Q=e=>{const{componentCls:r,skeletonAvatarCls:o,skeletonTitleCls:g,skeletonParagraphCls:h,skeletonButtonCls:x,skeletonInputCls:R,skeletonImageCls:N,controlHeight:$,controlHeightLG:V,controlHeightSM:_,gradientFromColor:me,padding:ae,marginSM:ie,borderRadius:ee,titleHeight:te,blockRadius:Ne,paragraphLiHeight:Ge,controlHeightXS:Fe,paragraphMarginTop:tt}=e;return{[`${r}`]:{display:"table",width:"100%",[`${r}-header`]:{display:"table-cell",paddingInlineEnd:ae,verticalAlign:"top",[`${o}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:me},n($)),[`${o}-circle`]:{borderRadius:"50%"},[`${o}-lg`]:Object.assign({},n(V)),[`${o}-sm`]:Object.assign({},n(_))},[`${r}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${g}`]:{width:"100%",height:te,background:me,borderRadius:Ne,[`+ ${h}`]:{marginBlockStart:_}},[`${h}`]:{padding:0,"> li":{width:"100%",height:Ge,listStyle:"none",background:me,borderRadius:Ne,"+ li":{marginBlockStart:Fe}}},[`${h}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${r}-content`]:{[`${g}, ${h} > li`]:{borderRadius:ee}}},[`${r}-with-avatar ${r}-content`]:{[`${g}`]:{marginBlockStart:ie,[`+ ${h}`]:{marginBlockStart:tt}}},[`${r}${r}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},w(e)),pe(e)),he(e)),Me(e)),[`${r}${r}-block`]:{width:"100%",[`${x}`]:{width:"100%"},[`${R}`]:{width:"100%"}},[`${r}${r}-active`]:{[`
|
|
${g},
|
|
${h} > li,
|
|
${o},
|
|
${x},
|
|
${R},
|
|
${N}
|
|
`]:Object.assign({},Y(e))}}};var O=(0,T.Z)("Skeleton",e=>{const{componentCls:r}=e,o=(0,z.TS)(e,{skeletonAvatarCls:`${r}-avatar`,skeletonTitleCls:`${r}-title`,skeletonParagraphCls:`${r}-paragraph`,skeletonButtonCls:`${r}-button`,skeletonInputCls:`${r}-input`,skeletonImageCls:`${r}-image`,imageSizeBase:e.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Q(o)]},e=>{const{colorFillContent:r,colorFill:o}=e,g=r,h=o;return{color:g,colorGradientEnd:h,gradientFromColor:g,gradientToColor:h,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),A=e=>{const{prefixCls:r,className:o,rootClassName:g,active:h,shape:x="circle",size:R="default"}=e,{getPrefixCls:N}=b.useContext(W.E_),$=N("skeleton",r),[V,_]=O($),me=(0,v.Z)(e,["prefixCls","className"]),ae=s()($,`${$}-element`,{[`${$}-active`]:h},o,g,_);return V(b.createElement("div",{className:ae},b.createElement(F,Object.assign({prefixCls:`${$}-avatar`,shape:x,size:R},me))))},j=e=>{const{prefixCls:r,className:o,rootClassName:g,active:h,block:x=!1,size:R="default"}=e,{getPrefixCls:N}=b.useContext(W.E_),$=N("skeleton",r),[V,_]=O($),me=(0,v.Z)(e,["prefixCls"]),ae=s()($,`${$}-element`,{[`${$}-active`]:h,[`${$}-block`]:x},o,g,_);return V(b.createElement("div",{className:ae},b.createElement(F,Object.assign({prefixCls:`${$}-button`,size:R},me))))};const le="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";var Ce=e=>{const{prefixCls:r,className:o,rootClassName:g,style:h,active:x}=e,{getPrefixCls:R}=b.useContext(W.E_),N=R("skeleton",r),[$,V]=O(N),_=s()(N,`${N}-element`,{[`${N}-active`]:x},o,g,V);return $(b.createElement("div",{className:_},b.createElement("div",{className:s()(`${N}-image`,o),style:h},b.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${N}-image-svg`},b.createElement("path",{d:le,className:`${N}-image-path`})))))},u=e=>{const{prefixCls:r,className:o,rootClassName:g,active:h,block:x,size:R="default"}=e,{getPrefixCls:N}=b.useContext(W.E_),$=N("skeleton",r),[V,_]=O($),me=(0,v.Z)(e,["prefixCls"]),ae=s()($,`${$}-element`,{[`${$}-active`]:h,[`${$}-block`]:x},o,g,_);return V(b.createElement("div",{className:ae},b.createElement(F,Object.assign({prefixCls:`${$}-input`,size:R},me))))},P=t(92413),Z={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"},c=Z,S=t(7657),X=function(r,o){return b.createElement(S.Z,(0,P.Z)({},r,{ref:o,icon:c}))},L=b.forwardRef(X),H=L,ve=e=>{const{prefixCls:r,className:o,rootClassName:g,style:h,active:x,children:R}=e,{getPrefixCls:N}=b.useContext(W.E_),$=N("skeleton",r),[V,_]=O($),me=s()($,`${$}-element`,{[`${$}-active`]:x},_,o,g),ae=R!=null?R:b.createElement(H,null);return V(b.createElement("div",{className:me},b.createElement("div",{className:s()(`${$}-image`,o),style:h},ae)))},ce=t(26407),ye=e=>{const r=N=>{const{width:$,rows:V=2}=e;if(Array.isArray($))return $[N];if(V-1===N)return $},{prefixCls:o,className:g,style:h,rows:x}=e,R=(0,ce.Z)(Array(x)).map((N,$)=>b.createElement("li",{key:$,style:{width:r($)}}));return b.createElement("ul",{className:s()(o,g),style:h},R)},Se=e=>{let{prefixCls:r,className:o,width:g,style:h}=e;return b.createElement("h3",{className:s()(r,o),style:Object.assign({width:g},h)})};function ge(e){return e&&typeof e=="object"?e:{}}function Te(e,r){return e&&!r?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Re(e,r){return!e&&r?{width:"38%"}:e&&r?{width:"50%"}:{}}function Le(e,r){const o={};return(!e||!r)&&(o.width="61%"),!e&&r?o.rows=3:o.rows=2,o}const Oe=e=>{const{prefixCls:r,loading:o,className:g,rootClassName:h,style:x,children:R,avatar:N=!1,title:$=!0,paragraph:V=!0,active:_,round:me}=e,{getPrefixCls:ae,direction:ie,skeleton:ee}=b.useContext(W.E_),te=ae("skeleton",r),[Ne,Ge]=O(te);if(o||!("loading"in e)){const Fe=!!N,tt=!!$,Ye=!!V;let Qe;if(Fe){const at=Object.assign(Object.assign({prefixCls:`${te}-avatar`},Te(tt,Ye)),ge(N));Qe=b.createElement("div",{className:`${te}-header`},b.createElement(F,Object.assign({},at)))}let Be;if(tt||Ye){let at;if(tt){const St=Object.assign(Object.assign({prefixCls:`${te}-title`},Re(Fe,Ye)),ge($));at=b.createElement(Se,Object.assign({},St))}let rt;if(Ye){const St=Object.assign(Object.assign({prefixCls:`${te}-paragraph`},Le(Fe,tt)),ge(V));rt=b.createElement(ye,Object.assign({},St))}Be=b.createElement("div",{className:`${te}-content`},at,rt)}const nt=s()(te,{[`${te}-with-avatar`]:Fe,[`${te}-active`]:_,[`${te}-rtl`]:ie==="rtl",[`${te}-round`]:me},ee==null?void 0:ee.className,g,h,Ge);return Ne(b.createElement("div",{className:nt,style:Object.assign(Object.assign({},ee==null?void 0:ee.style),x)},Qe,Be))}return typeof R!="undefined"?R:null};Oe.Button=j,Oe.Avatar=A,Oe.Input=u,Oe.Image=Ce,Oe.Node=ve;var m=Oe,i=m},8378:function(et,se){const t=d=>({[d.componentCls]:{[`${d.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${d.motionDurationMid} ${d.motionEaseInOut},
|
|
opacity ${d.motionDurationMid} ${d.motionEaseInOut} !important`}},[`${d.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${d.motionDurationMid} ${d.motionEaseInOut},
|
|
opacity ${d.motionDurationMid} ${d.motionEaseInOut} !important`}}});se.Z=t},92899:function(et,se,t){t.d(se,{Fm:function(){return D}});var d=t(93083),s=t(95406);const b=new d.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),W=new d.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),v=new d.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),G=new d.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),F=new d.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),q=new d.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),T=new d.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),z=new d.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),K={"move-up":{inKeyframes:T,outKeyframes:z},"move-down":{inKeyframes:b,outKeyframes:W},"move-left":{inKeyframes:v,outKeyframes:G},"move-right":{inKeyframes:F,outKeyframes:q}},D=(n,Y)=>{const{antCls:ue}=n,pe=`${ue}-${Y}`,{inKeyframes:he,outKeyframes:M}=K[Y];return[(0,s.R)(pe,he,M,n.motionDurationMid),{[`
|
|
${pe}-enter,
|
|
${pe}-appear
|
|
`]:{opacity:0,animationTimingFunction:n.motionEaseOutCirc},[`${pe}-leave`]:{animationTimingFunction:n.motionEaseInOutCirc}}]}},13826:function(et,se,t){t.d(se,{Qt:function(){return v},Uw:function(){return W},fJ:function(){return b},ly:function(){return G},oN:function(){return D}});var d=t(93083),s=t(95406);const b=new d.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),W=new d.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),v=new d.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),G=new d.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),F=new d.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),q=new d.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),T=new d.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),z=new d.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),K={"slide-up":{inKeyframes:b,outKeyframes:W},"slide-down":{inKeyframes:v,outKeyframes:G},"slide-left":{inKeyframes:F,outKeyframes:q},"slide-right":{inKeyframes:T,outKeyframes:z}},D=(n,Y)=>{const{antCls:ue}=n,pe=`${ue}-${Y}`,{inKeyframes:he,outKeyframes:M}=K[Y];return[(0,s.R)(pe,he,M,n.motionDurationMid),{[`
|
|
${pe}-enter,
|
|
${pe}-appear
|
|
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:n.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${pe}-leave`]:{animationTimingFunction:n.motionEaseInQuint}}]}},31561:function(et,se,t){t.d(se,{Z:function(){return O}});var d=t(92413),s=t(400),b=t(33606),W=t(37061),v=t(35593),G=t(92310),F=t.n(G),q=t(8654),T=t(59301),z=t(10228),K=t(16089),D=z.Z.ESC,n=z.Z.TAB;function Y(C){var A=C.visible,B=C.triggerRef,j=C.onVisibleChange,le=C.autoFocus,oe=C.overlayRef,Ce=T.useRef(!1),Pe=function(){if(A){var c,S;(c=B.current)===null||c===void 0||(S=c.focus)===null||S===void 0||S.call(c),j==null||j(!1)}},u=function(){var c;return(c=oe.current)!==null&&c!==void 0&&c.focus?(oe.current.focus(),Ce.current=!0,!0):!1},P=function(c){switch(c.keyCode){case D:Pe();break;case n:{var S=!1;Ce.current||(S=u()),S?c.preventDefault():Pe();break}}};T.useEffect(function(){return A?(window.addEventListener("keydown",P),le&&(0,K.Z)(u,3),function(){window.removeEventListener("keydown",P),Ce.current=!1}):function(){Ce.current=!1}},[A])}var ue=(0,T.forwardRef)(function(C,A){var B=C.overlay,j=C.arrow,le=C.prefixCls,oe=(0,T.useMemo)(function(){var Pe;return typeof B=="function"?Pe=B():Pe=B,Pe},[B]),Ce=(0,q.sQ)(A,oe==null?void 0:oe.ref);return T.createElement(T.Fragment,null,j&&T.createElement("div",{className:"".concat(le,"-arrow")}),T.cloneElement(oe,{ref:(0,q.Yr)(oe)?Ce:void 0}))}),pe=ue,he={adjustX:1,adjustY:1},M=[0,0],Me={topLeft:{points:["bl","tl"],overflow:he,offset:[0,-4],targetOffset:M},top:{points:["bc","tc"],overflow:he,offset:[0,-4],targetOffset:M},topRight:{points:["br","tr"],overflow:he,offset:[0,-4],targetOffset:M},bottomLeft:{points:["tl","bl"],overflow:he,offset:[0,4],targetOffset:M},bottom:{points:["tc","bc"],overflow:he,offset:[0,4],targetOffset:M},bottomRight:{points:["tr","br"],overflow:he,offset:[0,4],targetOffset:M}},k=Me,ne=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function w(C,A){var B,j=C.arrow,le=j===void 0?!1:j,oe=C.prefixCls,Ce=oe===void 0?"rc-dropdown":oe,Pe=C.transitionName,u=C.animation,P=C.align,Z=C.placement,c=Z===void 0?"bottomLeft":Z,S=C.placements,X=S===void 0?k:S,L=C.getPopupContainer,H=C.showAction,J=C.hideAction,ve=C.overlayClassName,ce=C.overlayStyle,de=C.visible,ye=C.trigger,xe=ye===void 0?["hover"]:ye,Se=C.autoFocus,ge=C.overlay,Te=C.children,Re=C.onVisibleChange,Le=(0,W.Z)(C,ne),Oe=T.useState(),m=(0,b.Z)(Oe,2),i=m[0],e=m[1],r="visible"in C?de:i,o=T.useRef(null),g=T.useRef(null),h=T.useRef(null);T.useImperativeHandle(A,function(){return o.current});var x=function(ee){e(ee),Re==null||Re(ee)};Y({visible:r,triggerRef:h,onVisibleChange:x,autoFocus:Se,overlayRef:g});var R=function(ee){var te=C.onOverlayClick;e(!1),te&&te(ee)},N=function(){return T.createElement(pe,{ref:g,overlay:ge,prefixCls:Ce,arrow:le})},$=function(){return typeof ge=="function"?N:N()},V=function(){var ee=C.minOverlayWidthMatchTrigger,te=C.alignPoint;return"minOverlayWidthMatchTrigger"in C?ee:!te},_=function(){var ee=C.openClassName;return ee!==void 0?ee:"".concat(Ce,"-open")},me=T.cloneElement(Te,{className:F()((B=Te.props)===null||B===void 0?void 0:B.className,r&&_()),ref:(0,q.Yr)(Te)?(0,q.sQ)(h,Te.ref):void 0}),ae=J;return!ae&&xe.indexOf("contextMenu")!==-1&&(ae=["click"]),T.createElement(v.Z,(0,d.Z)({builtinPlacements:X},Le,{prefixCls:Ce,ref:o,popupClassName:F()(ve,(0,s.Z)({},"".concat(Ce,"-show-arrow"),le)),popupStyle:ce,action:xe,showAction:H,hideAction:ae,popupPlacement:c,popupAlign:P,popupTransitionName:Pe,popupAnimation:u,popupVisible:r,stretch:V()?"minWidth":"",popup:$(),onPopupVisibleChange:x,onPopupClick:R,getPopupContainer:L}),me)}var Q=T.forwardRef(w),O=Q},15285:function(et,se,t){t.d(se,{iz:function(){return Xt},ck:function(){return mt},BW:function(){return pn},sN:function(){return mt},Wd:function(){return rn},ZP:function(){return fe},Xl:function(){return B}});var d=t(92413),s=t(400),b=t(33708),W=t(26407),v=t(33606),G=t(37061),F=t(92310),q=t.n(F),T=t(11780),z=t(18929),K=t(13697),D=t(48736),n=t(59301),Y=t(4676),ue=n.createContext(null);function pe(a,l){return a===void 0?null:"".concat(a,"-").concat(l)}function he(a){var l=n.useContext(ue);return pe(l,a)}var M=t(80547),Me=["children","locked"],k=n.createContext(null);function ne(a,l){var p=(0,b.Z)({},a);return Object.keys(l).forEach(function(y){var f=l[y];f!==void 0&&(p[y]=f)}),p}function w(a){var l=a.children,p=a.locked,y=(0,G.Z)(a,Me),f=n.useContext(k),E=(0,M.Z)(function(){return ne(f,y)},[f,y],function(I,U){return!p&&(I[0]!==U[0]||!(0,K.Z)(I[1],U[1],!0))});return n.createElement(k.Provider,{value:E},l)}var Q=[],O=n.createContext(null);function C(){return n.useContext(O)}var A=n.createContext(Q);function B(a){var l=n.useContext(A);return n.useMemo(function(){return a!==void 0?[].concat((0,W.Z)(l),[a]):l},[l,a])}var j=n.createContext(null),le=n.createContext({}),oe=le,Ce=t(29194);function Pe(a){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,Ce.Z)(a)){var p=a.nodeName.toLowerCase(),y=["input","select","textarea","button"].includes(p)||a.isContentEditable||p==="a"&&!!a.getAttribute("href"),f=a.getAttribute("tabindex"),E=Number(f),I=null;return f&&!Number.isNaN(E)?I=E:y&&I===null&&(I=0),y&&a.disabled&&(I=null),I!==null&&(I>=0||l&&I<0)}return!1}function u(a){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,p=(0,W.Z)(a.querySelectorAll("*")).filter(function(y){return Pe(y,l)});return Pe(a,l)&&p.unshift(a),p}var P=null;function Z(){P=document.activeElement}function c(){P=null}function S(){if(P)try{P.focus()}catch(a){}}function X(a,l){if(l.keyCode===9){var p=u(a),y=p[l.shiftKey?0:p.length-1],f=y===document.activeElement||a===document.activeElement;if(f){var E=p[l.shiftKey?p.length-1:0];E.focus(),l.preventDefault()}}}var L=t(10228),H=t(16089),J=L.Z.LEFT,ve=L.Z.RIGHT,ce=L.Z.UP,de=L.Z.DOWN,ye=L.Z.ENTER,xe=L.Z.ESC,Se=L.Z.HOME,ge=L.Z.END,Te=[ce,de,J,ve];function Re(a,l,p,y){var f,E,I,U,be="prev",re="next",je="children",$e="parent";if(a==="inline"&&y===ye)return{inlineTrigger:!0};var ze=(f={},(0,s.Z)(f,ce,be),(0,s.Z)(f,de,re),f),Ke=(E={},(0,s.Z)(E,J,p?re:be),(0,s.Z)(E,ve,p?be:re),(0,s.Z)(E,de,je),(0,s.Z)(E,ye,je),E),we=(I={},(0,s.Z)(I,ce,be),(0,s.Z)(I,de,re),(0,s.Z)(I,ye,je),(0,s.Z)(I,xe,$e),(0,s.Z)(I,J,p?je:$e),(0,s.Z)(I,ve,p?$e:je),I),_e={inline:ze,horizontal:Ke,vertical:we,inlineSub:ze,horizontalSub:we,verticalSub:we},Ve=(U=_e["".concat(a).concat(l?"":"Sub")])===null||U===void 0?void 0:U[y];switch(Ve){case be:return{offset:-1,sibling:!0};case re:return{offset:1,sibling:!0};case $e:return{offset:-1,sibling:!1};case je:return{offset:1,sibling:!1};default:return null}}function Le(a){for(var l=a;l;){if(l.getAttribute("data-menu-list"))return l;l=l.parentElement}return null}function Oe(a,l){for(var p=a||document.activeElement;p;){if(l.has(p))return p;p=p.parentElement}return null}function m(a,l){var p=u(a,!0);return p.filter(function(y){return l.has(y)})}function i(a,l,p){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!a)return null;var f=m(a,l),E=f.length,I=f.findIndex(function(U){return p===U});return y<0?I===-1?I=E-1:I-=1:y>0&&(I+=1),I=(I+E)%E,f[I]}var e=function(l,p){var y=new Set,f=new Map,E=new Map;return l.forEach(function(I){var U=document.querySelector("[data-menu-id='".concat(pe(p,I),"']"));U&&(y.add(U),E.set(U,I),f.set(I,U))}),{elements:y,key2element:f,element2key:E}};function r(a,l,p,y,f,E,I,U,be,re){var je=n.useRef(),$e=n.useRef();$e.current=l;var ze=function(){H.Z.cancel(je.current)};return n.useEffect(function(){return function(){ze()}},[]),function(Ke){var we=Ke.which;if([].concat(Te,[ye,xe,Se,ge]).includes(we)){var _e=E(),Ve=e(_e,y),qe=Ve,Ze=qe.elements,Ee=qe.key2element,Ie=qe.element2key,We=Ee.get(l),Ae=Oe(We,Ze),ot=Ie.get(Ae),He=Re(a,I(ot,!0).length===1,p,we);if(!He&&we!==Se&&we!==ge)return;(Te.includes(we)||[Se,ge].includes(we))&&Ke.preventDefault();var Ot=function(ut){if(ut){var Et=ut,Pt=ut.querySelector("a");Pt!=null&&Pt.getAttribute("href")&&(Et=Pt);var Rt=Ie.get(ut);U(Rt),ze(),je.current=(0,H.Z)(function(){$e.current===Rt&&Et.focus()})}};if([Se,ge].includes(we)||He.sibling||!Ae){var Xe;!Ae||a==="inline"?Xe=f.current:Xe=Le(Ae);var ft,it=m(Xe,Ze);we===Se?ft=it[0]:we===ge?ft=it[it.length-1]:ft=i(Xe,Ze,Ae,He.offset),Ot(ft)}else if(He.inlineTrigger)be(ot);else if(He.offset>0)be(ot,!0),ze(),je.current=(0,H.Z)(function(){Ve=e(_e,y);var zt=Ae.getAttribute("aria-controls"),ut=document.getElementById(zt),Et=i(ut,Ve.elements);Ot(Et)},5);else if(He.offset<0){var lt=I(ot,!0),ht=lt[lt.length-2],bt=Ee.get(ht);be(ht,!1),Ot(bt)}}re==null||re(Ke)}}function o(a){Promise.resolve().then(a)}var g="__RC_UTIL_PATH_SPLIT__",h=function(l){return l.join(g)},x=function(l){return l.split(g)},R="rc-menu-more";function N(){var a=n.useState({}),l=(0,v.Z)(a,2),p=l[1],y=(0,n.useRef)(new Map),f=(0,n.useRef)(new Map),E=n.useState([]),I=(0,v.Z)(E,2),U=I[0],be=I[1],re=(0,n.useRef)(0),je=(0,n.useRef)(!1),$e=function(){je.current||p({})},ze=(0,n.useCallback)(function(Ee,Ie){var We=h(Ie);f.current.set(We,Ee),y.current.set(Ee,We),re.current+=1;var Ae=re.current;o(function(){Ae===re.current&&$e()})},[]),Ke=(0,n.useCallback)(function(Ee,Ie){var We=h(Ie);f.current.delete(We),y.current.delete(Ee)},[]),we=(0,n.useCallback)(function(Ee){be(Ee)},[]),_e=(0,n.useCallback)(function(Ee,Ie){var We=y.current.get(Ee)||"",Ae=x(We);return Ie&&U.includes(Ae[0])&&Ae.unshift(R),Ae},[U]),Ve=(0,n.useCallback)(function(Ee,Ie){return Ee.some(function(We){var Ae=_e(We,!0);return Ae.includes(Ie)})},[_e]),qe=function(){var Ie=(0,W.Z)(y.current.keys());return U.length&&Ie.push(R),Ie},Ze=(0,n.useCallback)(function(Ee){var Ie="".concat(y.current.get(Ee)).concat(g),We=new Set;return(0,W.Z)(f.current.keys()).forEach(function(Ae){Ae.startsWith(Ie)&&We.add(f.current.get(Ae))}),We},[]);return n.useEffect(function(){return function(){je.current=!0}},[]),{registerPath:ze,unregisterPath:Ke,refreshOverflowKeys:we,isSubPathKey:Ve,getKeyPath:_e,getKeys:qe,getSubPathKeys:Ze}}function $(a){var l=n.useRef(a);l.current=a;var p=n.useCallback(function(){for(var y,f=arguments.length,E=new Array(f),I=0;I<f;I++)E[I]=arguments[I];return(y=l.current)===null||y===void 0?void 0:y.call.apply(y,[l].concat(E))},[]);return a?p:void 0}var V=Math.random().toFixed(5).toString().slice(2),_=0;function me(a){var l=(0,z.Z)(a,{value:a}),p=(0,v.Z)(l,2),y=p[0],f=p[1];return n.useEffect(function(){_+=1;var E="".concat(V,"-").concat(_);f("rc-menu-uuid-".concat(E))},[]),y}var ae=t(6909),ie=t(4771),ee=t(9427),te=t(25440),Ne=t(2738),Ge=t(8654);function Fe(a,l,p,y){var f=n.useContext(k),E=f.activeKey,I=f.onActive,U=f.onInactive,be={active:E===a};return l||(be.onMouseEnter=function(re){p==null||p({key:a,domEvent:re}),I(a)},be.onMouseLeave=function(re){y==null||y({key:a,domEvent:re}),U(a)}),be}function tt(a){var l=n.useContext(k),p=l.mode,y=l.rtl,f=l.inlineIndent;if(p!=="inline")return null;var E=a;return y?{paddingRight:E*f}:{paddingLeft:E*f}}function Ye(a){var l=a.icon,p=a.props,y=a.children,f;return l===null||l===!1?null:(typeof l=="function"?f=n.createElement(l,(0,b.Z)({},p)):typeof l!="boolean"&&(f=l),f||y||null)}var Qe=["item"];function Be(a){var l=a.item,p=(0,G.Z)(a,Qe);return Object.defineProperty(p,"item",{get:function(){return(0,D.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),l}}),p}var nt=["title","attribute","elementRef"],at=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],rt=["active"],St=function(a){(0,ee.Z)(p,a);var l=(0,te.Z)(p);function p(){return(0,ae.Z)(this,p),l.apply(this,arguments)}return(0,ie.Z)(p,[{key:"render",value:function(){var f=this.props,E=f.title,I=f.attribute,U=f.elementRef,be=(0,G.Z)(f,nt),re=(0,Ne.Z)(be,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,D.ZP)(!I,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),n.createElement(T.Z.Item,(0,d.Z)({},I,{title:typeof E=="string"?E:void 0},re,{ref:U}))}}]),p}(n.Component),Dt=n.forwardRef(function(a,l){var p,y=a.style,f=a.className,E=a.eventKey,I=a.warnKey,U=a.disabled,be=a.itemIcon,re=a.children,je=a.role,$e=a.onMouseEnter,ze=a.onMouseLeave,Ke=a.onClick,we=a.onKeyDown,_e=a.onFocus,Ve=(0,G.Z)(a,at),qe=he(E),Ze=n.useContext(k),Ee=Ze.prefixCls,Ie=Ze.onItemClick,We=Ze.disabled,Ae=Ze.overflowDisabled,ot=Ze.itemIcon,He=Ze.selectedKeys,Ot=Ze.onActive,Xe=n.useContext(oe),ft=Xe._internalRenderMenuItem,it="".concat(Ee,"-item"),lt=n.useRef(),ht=n.useRef(),bt=We||U,zt=(0,Ge.x1)(l,ht),ut=B(E),Et=function(st){return{key:E,keyPath:(0,W.Z)(ut).reverse(),item:lt.current,domEvent:st}},Pt=be||ot,Rt=Fe(E,bt,$e,ze),Ut=Rt.active,Gt=(0,G.Z)(Rt,rt),Ht=He.includes(E),Yt=tt(ut.length),Qt=function(st){if(!bt){var Nt=Et(st);Ke==null||Ke(Be(Nt)),Ie(Nt)}},dt=function(st){if(we==null||we(st),st.which===L.Z.ENTER){var Nt=Et(st);Ke==null||Ke(Be(Nt)),Ie(Nt)}},Ct=function(st){Ot(E),_e==null||_e(st)},ln={};a.role==="option"&&(ln["aria-selected"]=Ht);var Jt=n.createElement(St,(0,d.Z)({ref:lt,elementRef:zt,role:je===null?"none":je||"menuitem",tabIndex:U?null:-1,"data-menu-id":Ae&&qe?null:qe},Ve,Gt,ln,{component:"li","aria-disabled":U,style:(0,b.Z)((0,b.Z)({},Yt),y),className:q()(it,(p={},(0,s.Z)(p,"".concat(it,"-active"),Ut),(0,s.Z)(p,"".concat(it,"-selected"),Ht),(0,s.Z)(p,"".concat(it,"-disabled"),bt),p),f),onClick:Qt,onKeyDown:dt,onFocus:Ct}),re,n.createElement(Ye,{props:(0,b.Z)((0,b.Z)({},a),{},{isSelected:Ht}),icon:Pt}));return ft&&(Jt=ft(Jt,a,{selected:Ht})),Jt});function Mt(a,l){var p=a.eventKey,y=C(),f=B(p);return n.useEffect(function(){if(y)return y.registerPath(p,f),function(){y.unregisterPath(p,f)}},[f]),y?null:n.createElement(Dt,(0,d.Z)({},a,{ref:l}))}var mt=n.forwardRef(Mt),wt=["className","children"],Ft=function(l,p){var y=l.className,f=l.children,E=(0,G.Z)(l,wt),I=n.useContext(k),U=I.prefixCls,be=I.mode,re=I.rtl;return n.createElement("ul",(0,d.Z)({className:q()(U,re&&"".concat(U,"-rtl"),"".concat(U,"-sub"),"".concat(U,"-").concat(be==="inline"?"inline":"vertical"),y),role:"menu"},E,{"data-menu-list":!0,ref:p}),f)},ct=n.forwardRef(Ft);ct.displayName="SubMenuList";var Tt=ct,mn=t(11592);function pt(a,l){return(0,mn.Z)(a).map(function(p,y){if(n.isValidElement(p)){var f,E,I=p.key,U=(f=(E=p.props)===null||E===void 0?void 0:E.eventKey)!==null&&f!==void 0?f:I,be=U==null;be&&(U="tmp_key-".concat([].concat((0,W.Z)(l),[y]).join("-")));var re={key:U,eventKey:U};return n.cloneElement(p,re)}return p})}var jt=t(35593),Je={adjustX:1,adjustY:1},It={topLeft:{points:["bl","tl"],overflow:Je},topRight:{points:["br","tr"],overflow:Je},bottomLeft:{points:["tl","bl"],overflow:Je},bottomRight:{points:["tr","br"],overflow:Je},leftTop:{points:["tr","tl"],overflow:Je},leftBottom:{points:["br","bl"],overflow:Je},rightTop:{points:["tl","tr"],overflow:Je},rightBottom:{points:["bl","br"],overflow:Je}},An={topLeft:{points:["bl","tl"],overflow:Je},topRight:{points:["br","tr"],overflow:Je},bottomLeft:{points:["tl","bl"],overflow:Je},bottomRight:{points:["tr","br"],overflow:Je},rightTop:{points:["tr","tl"],overflow:Je},rightBottom:{points:["br","bl"],overflow:Je},leftTop:{points:["tl","tr"],overflow:Je},leftBottom:{points:["bl","br"],overflow:Je}},On=null;function fn(a,l,p){if(l)return l;if(p)return p[a]||p.other}var vn={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function xt(a){var l=a.prefixCls,p=a.visible,y=a.children,f=a.popup,E=a.popupStyle,I=a.popupClassName,U=a.popupOffset,be=a.disabled,re=a.mode,je=a.onVisibleChange,$e=n.useContext(k),ze=$e.getPopupContainer,Ke=$e.rtl,we=$e.subMenuOpenDelay,_e=$e.subMenuCloseDelay,Ve=$e.builtinPlacements,qe=$e.triggerSubMenuAction,Ze=$e.forceSubMenuRender,Ee=$e.rootClassName,Ie=$e.motion,We=$e.defaultMotions,Ae=n.useState(!1),ot=(0,v.Z)(Ae,2),He=ot[0],Ot=ot[1],Xe=Ke?(0,b.Z)((0,b.Z)({},An),Ve):(0,b.Z)((0,b.Z)({},It),Ve),ft=vn[re],it=fn(re,Ie,We),lt=n.useRef(it);re!=="inline"&&(lt.current=it);var ht=(0,b.Z)((0,b.Z)({},lt.current),{},{leavedClassName:"".concat(l,"-hidden"),removeOnLeave:!1,motionAppear:!0}),bt=n.useRef();return n.useEffect(function(){return bt.current=(0,H.Z)(function(){Ot(p)}),function(){H.Z.cancel(bt.current)}},[p]),n.createElement(jt.Z,{prefixCls:l,popupClassName:q()("".concat(l,"-popup"),(0,s.Z)({},"".concat(l,"-rtl"),Ke),I,Ee),stretch:re==="horizontal"?"minWidth":null,getPopupContainer:ze,builtinPlacements:Xe,popupPlacement:ft,popupVisible:He,popup:f,popupStyle:E,popupAlign:U&&{offset:U},action:be?[]:[qe],mouseEnterDelay:we,mouseLeaveDelay:_e,onPopupVisibleChange:je,forceRender:Ze,popupMotion:ht,fresh:!0},y)}var En=t(77900);function Ln(a){var l=a.id,p=a.open,y=a.keyPath,f=a.children,E="inline",I=n.useContext(k),U=I.prefixCls,be=I.forceSubMenuRender,re=I.motion,je=I.defaultMotions,$e=I.mode,ze=n.useRef(!1);ze.current=$e===E;var Ke=n.useState(!ze.current),we=(0,v.Z)(Ke,2),_e=we[0],Ve=we[1],qe=ze.current?p:!1;n.useEffect(function(){ze.current&&Ve(!1)},[$e]);var Ze=(0,b.Z)({},fn(E,re,je));y.length>1&&(Ze.motionAppear=!1);var Ee=Ze.onVisibleChanged;return Ze.onVisibleChanged=function(Ie){return!ze.current&&!Ie&&Ve(!0),Ee==null?void 0:Ee(Ie)},_e?null:n.createElement(w,{mode:E,locked:!ze.current},n.createElement(En.default,(0,d.Z)({visible:qe},Ze,{forceRender:be,removeOnLeave:!1,leavedClassName:"".concat(U,"-hidden")}),function(Ie){var We=Ie.className,Ae=Ie.style;return n.createElement(Tt,{id:l,className:We,style:Ae},f)}))}var At=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],gn=["active"],nn=function(l){var p,y=l.style,f=l.className,E=l.title,I=l.eventKey,U=l.warnKey,be=l.disabled,re=l.internalPopupClose,je=l.children,$e=l.itemIcon,ze=l.expandIcon,Ke=l.popupClassName,we=l.popupOffset,_e=l.popupStyle,Ve=l.onClick,qe=l.onMouseEnter,Ze=l.onMouseLeave,Ee=l.onTitleClick,Ie=l.onTitleMouseEnter,We=l.onTitleMouseLeave,Ae=(0,G.Z)(l,At),ot=he(I),He=n.useContext(k),Ot=He.prefixCls,Xe=He.mode,ft=He.openKeys,it=He.disabled,lt=He.overflowDisabled,ht=He.activeKey,bt=He.selectedKeys,zt=He.itemIcon,ut=He.expandIcon,Et=He.onItemClick,Pt=He.onOpenChange,Rt=He.onActive,Ut=n.useContext(oe),Gt=Ut._internalRenderSubMenuItem,Ht=n.useContext(j),Yt=Ht.isSubPathKey,Qt=B(),dt="".concat(Ot,"-submenu"),Ct=it||be,ln=n.useRef(),Jt=n.useRef(),_t=$e!=null?$e:zt,st=ze!=null?ze:ut,Nt=ft.includes(I),Wt=!lt&&Nt,Mn=Yt(bt,I),sn=Fe(I,Ct,Ie,We),qt=sn.active,kn=(0,G.Z)(sn,gn),qn=n.useState(!1),Fn=(0,v.Z)(qn,2),bn=Fn[0],wn=Fn[1],Nn=function($t){Ct||wn($t)},Bt=function($t){Nn(!0),qe==null||qe({key:I,domEvent:$t})},Xn=function($t){Nn(!1),Ze==null||Ze({key:I,domEvent:$t})},Cn=n.useMemo(function(){return qt||(Xe!=="inline"?bn||Yt([ht],I):!1)},[Xe,qt,ht,bn,I,Yt]),Bn=tt(Qt.length),Vn=function($t){Ct||(Ee==null||Ee({key:I,domEvent:$t}),Xe==="inline"&&Pt(I,!Nt))},cn=$(function(Zt){Ve==null||Ve(Be(Zt)),Et(Zt)}),yn=function($t){Xe!=="inline"&&Pt(I,$t)},$n=function(){Rt(I)},Sn=ot&&"".concat(ot,"-popup"),un=n.createElement("div",(0,d.Z)({role:"menuitem",style:Bn,className:"".concat(dt,"-title"),tabIndex:Ct?null:-1,ref:ln,title:typeof E=="string"?E:null,"data-menu-id":lt&&ot?null:ot,"aria-expanded":Wt,"aria-haspopup":!0,"aria-controls":Sn,"aria-disabled":Ct,onClick:Vn,onFocus:$n},kn),E,n.createElement(Ye,{icon:Xe!=="horizontal"?st:void 0,props:(0,b.Z)((0,b.Z)({},l),{},{isOpen:Wt,isSubMenu:!0})},n.createElement("i",{className:"".concat(dt,"-arrow")}))),yt=n.useRef(Xe);if(Xe!=="inline"&&Qt.length>1?yt.current="vertical":yt.current=Xe,!lt){var dn=yt.current;un=n.createElement(xt,{mode:dn,prefixCls:dt,visible:!re&&Wt&&Xe!=="inline",popupClassName:Ke,popupOffset:we,popupStyle:_e,popup:n.createElement(w,{mode:dn==="horizontal"?"vertical":dn},n.createElement(Tt,{id:Sn,ref:Jt},je)),disabled:Ct,onVisibleChange:yn},un)}var en=n.createElement(T.Z.Item,(0,d.Z)({role:"none"},Ae,{component:"li",style:y,className:q()(dt,"".concat(dt,"-").concat(Xe),f,(p={},(0,s.Z)(p,"".concat(dt,"-open"),Wt),(0,s.Z)(p,"".concat(dt,"-active"),Cn),(0,s.Z)(p,"".concat(dt,"-selected"),Mn),(0,s.Z)(p,"".concat(dt,"-disabled"),Ct),p)),onMouseEnter:Bt,onMouseLeave:Xn}),un,!lt&&n.createElement(Ln,{id:Sn,open:Wt,keyPath:Qt},je));return Gt&&(en=Gt(en,l,{selected:Mn,active:Cn,open:Wt,disabled:Ct})),n.createElement(w,{onItemClick:cn,mode:Xe==="horizontal"?"vertical":Xe,itemIcon:_t,expandIcon:st},en)};function rn(a){var l=a.eventKey,p=a.children,y=B(l),f=pt(p,y),E=C();n.useEffect(function(){if(E)return E.registerPath(l,y),function(){E.unregisterPath(l,y)}},[y]);var I;return E?I=f:I=n.createElement(nn,a,f),n.createElement(A.Provider,{value:y},I)}var on=t(39559),zn=["className","title","eventKey","children"],Pn=["children"],Kn=function(l){var p=l.className,y=l.title,f=l.eventKey,E=l.children,I=(0,G.Z)(l,zn),U=n.useContext(k),be=U.prefixCls,re="".concat(be,"-item-group");return n.createElement("li",(0,d.Z)({role:"presentation"},I,{onClick:function($e){return $e.stopPropagation()},className:q()(re,p)}),n.createElement("div",{role:"presentation",className:"".concat(re,"-title"),title:typeof y=="string"?y:void 0},y),n.createElement("ul",{role:"group",className:"".concat(re,"-list")},E))};function pn(a){var l=a.children,p=(0,G.Z)(a,Pn),y=B(p.eventKey),f=pt(l,y),E=C();return E?f:n.createElement(Kn,(0,Ne.Z)(p,["warnKey"]),f)}function Xt(a){var l=a.className,p=a.style,y=n.useContext(k),f=y.prefixCls,E=C();return E?null:n.createElement("li",{role:"separator",className:q()("".concat(f,"-item-divider"),l),style:p})}var Rn=["label","children","key","type"];function an(a){return(a||[]).map(function(l,p){if(l&&(0,on.Z)(l)==="object"){var y=l,f=y.label,E=y.children,I=y.key,U=y.type,be=(0,G.Z)(y,Rn),re=I!=null?I:"tmp-".concat(p);return E||U==="group"?U==="group"?n.createElement(pn,(0,d.Z)({key:re},be,{title:f}),an(E)):n.createElement(rn,(0,d.Z)({key:re},be,{title:f}),an(E)):U==="divider"?n.createElement(Xt,(0,d.Z)({key:re},be)):n.createElement(mt,(0,d.Z)({key:re},be),f)}return null}).filter(function(l){return l})}function Vt(a,l,p){var y=a;return l&&(y=an(l)),pt(y,p)}var Hn=["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"],Lt=[],hn=n.forwardRef(function(a,l){var p,y,f=a,E=f.prefixCls,I=E===void 0?"rc-menu":E,U=f.rootClassName,be=f.style,re=f.className,je=f.tabIndex,$e=je===void 0?0:je,ze=f.items,Ke=f.children,we=f.direction,_e=f.id,Ve=f.mode,qe=Ve===void 0?"vertical":Ve,Ze=f.inlineCollapsed,Ee=f.disabled,Ie=f.disabledOverflow,We=f.subMenuOpenDelay,Ae=We===void 0?.1:We,ot=f.subMenuCloseDelay,He=ot===void 0?.1:ot,Ot=f.forceSubMenuRender,Xe=f.defaultOpenKeys,ft=f.openKeys,it=f.activeKey,lt=f.defaultActiveFirst,ht=f.selectable,bt=ht===void 0?!0:ht,zt=f.multiple,ut=zt===void 0?!1:zt,Et=f.defaultSelectedKeys,Pt=f.selectedKeys,Rt=f.onSelect,Ut=f.onDeselect,Gt=f.inlineIndent,Ht=Gt===void 0?24:Gt,Yt=f.motion,Qt=f.defaultMotions,dt=f.triggerSubMenuAction,Ct=dt===void 0?"hover":dt,ln=f.builtinPlacements,Jt=f.itemIcon,_t=f.expandIcon,st=f.overflowedIndicator,Nt=st===void 0?"...":st,Wt=f.overflowedIndicatorPopupClassName,Mn=f.getPopupContainer,sn=f.onClick,qt=f.onOpenChange,kn=f.onKeyDown,qn=f.openAnimation,Fn=f.openTransitionName,bn=f._internalRenderMenuItem,wn=f._internalRenderSubMenuItem,Nn=(0,G.Z)(f,Hn),Bt=n.useMemo(function(){return Vt(Ke,ze,Lt)},[Ke,ze]),Xn=n.useState(!1),Cn=(0,v.Z)(Xn,2),Bn=Cn[0],Vn=Cn[1],cn=n.useRef(),yn=me(_e),$n=we==="rtl",Sn=(0,z.Z)(Xe,{value:ft,postState:function(De){return De||Lt}}),un=(0,v.Z)(Sn,2),yt=un[0],dn=un[1],en=function(De){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function vt(){dn(De),qt==null||qt(De)}ke?(0,Y.flushSync)(vt):vt()},Zt=n.useState(yt),$t=(0,v.Z)(Zt,2),vr=$t[0],gr=$t[1],Un=n.useRef(!1),pr=n.useMemo(function(){return(qe==="inline"||qe==="vertical")&&Ze?["vertical",Ze]:[qe,!1]},[qe,Ze]),er=(0,v.Z)(pr,2),Zn=er[0],Gn=er[1],tr=Zn==="inline",hr=n.useState(Zn),nr=(0,v.Z)(hr,2),kt=nr[0],br=nr[1],Cr=n.useState(Gn),rr=(0,v.Z)(Cr,2),yr=rr[0],$r=rr[1];n.useEffect(function(){br(Zn),$r(Gn),Un.current&&(tr?dn(vr):en(Lt))},[Zn,Gn]);var Sr=n.useState(0),or=(0,v.Z)(Sr,2),Dn=or[0],Ir=or[1],Yn=Dn>=Bt.length-1||kt!=="horizontal"||Ie;n.useEffect(function(){tr&&gr(yt)},[yt]),n.useEffect(function(){return Un.current=!0,function(){Un.current=!1}},[]);var tn=N(),ar=tn.registerPath,ir=tn.unregisterPath,xr=tn.refreshOverflowKeys,lr=tn.isSubPathKey,Or=tn.getKeyPath,sr=tn.getKeys,Er=tn.getSubPathKeys,Pr=n.useMemo(function(){return{registerPath:ar,unregisterPath:ir}},[ar,ir]),Rr=n.useMemo(function(){return{isSubPathKey:lr}},[lr]);n.useEffect(function(){xr(Yn?Lt:Bt.slice(Dn+1).map(function(Ue){return Ue.key}))},[Dn,Yn]);var Mr=(0,z.Z)(it||lt&&((p=Bt[0])===null||p===void 0?void 0:p.key),{value:it}),cr=(0,v.Z)(Mr,2),In=cr[0],Qn=cr[1],wr=$(function(Ue){Qn(Ue)}),Nr=$(function(){Qn(void 0)});(0,n.useImperativeHandle)(l,function(){return{list:cn.current,focus:function(De){var ke,vt=sr(),gt=e(vt,yn),jn=gt.elements,Jn=gt.key2element,Hr=gt.element2key,mr=m(cn.current,jn),fr=In!=null?In:mr[0]?Hr.get(mr[0]):(ke=Bt.find(function(Wr){return!Wr.props.disabled}))===null||ke===void 0?void 0:ke.key,xn=Jn.get(fr);if(fr&&xn){var _n;xn==null||(_n=xn.focus)===null||_n===void 0||_n.call(xn,De)}}}});var Br=(0,z.Z)(Et||[],{value:Pt,postState:function(De){return Array.isArray(De)?De:De==null?Lt:[De]}}),ur=(0,v.Z)(Br,2),Tn=ur[0],Zr=ur[1],Dr=function(De){if(bt){var ke=De.key,vt=Tn.includes(ke),gt;ut?vt?gt=Tn.filter(function(Jn){return Jn!==ke}):gt=[].concat((0,W.Z)(Tn),[ke]):gt=[ke],Zr(gt);var jn=(0,b.Z)((0,b.Z)({},De),{},{selectedKeys:gt});vt?Ut==null||Ut(jn):Rt==null||Rt(jn)}!ut&&yt.length&&kt!=="inline"&&en(Lt)},Tr=$(function(Ue){sn==null||sn(Be(Ue)),Dr(Ue)}),dr=$(function(Ue,De){var ke=yt.filter(function(gt){return gt!==Ue});if(De)ke.push(Ue);else if(kt!=="inline"){var vt=Er(Ue);ke=ke.filter(function(gt){return!vt.has(gt)})}(0,K.Z)(yt,ke,!0)||en(ke,!0)}),jr=function(De,ke){var vt=ke!=null?ke:!yt.includes(De);dr(De,vt)},Ar=r(kt,In,$n,yn,cn,sr,Or,Qn,jr,kn);n.useEffect(function(){Vn(!0)},[]);var Lr=n.useMemo(function(){return{_internalRenderMenuItem:bn,_internalRenderSubMenuItem:wn}},[bn,wn]),zr=kt!=="horizontal"||Ie?Bt:Bt.map(function(Ue,De){return n.createElement(w,{key:Ue.key,overflowDisabled:De>Dn},Ue)}),Kr=n.createElement(T.Z,(0,d.Z)({id:_e,ref:cn,prefixCls:"".concat(I,"-overflow"),component:"ul",itemComponent:mt,className:q()(I,"".concat(I,"-root"),"".concat(I,"-").concat(kt),re,(y={},(0,s.Z)(y,"".concat(I,"-inline-collapsed"),yr),(0,s.Z)(y,"".concat(I,"-rtl"),$n),y),U),dir:we,style:be,role:"menu",tabIndex:$e,data:zr,renderRawItem:function(De){return De},renderRawRest:function(De){var ke=De.length,vt=ke?Bt.slice(-ke):null;return n.createElement(rn,{eventKey:R,title:Nt,disabled:Yn,internalPopupClose:ke===0,popupClassName:Wt},vt)},maxCount:kt!=="horizontal"||Ie?T.Z.INVALIDATE:T.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(De){Ir(De)},onKeyDown:Ar},Nn));return n.createElement(oe.Provider,{value:Lr},n.createElement(ue.Provider,{value:yn},n.createElement(w,{prefixCls:I,rootClassName:U,mode:kt,openKeys:yt,rtl:$n,disabled:Ee,motion:Bn?Yt:null,defaultMotions:Bn?Qt:null,activeKey:In,onActive:wr,onInactive:Nr,selectedKeys:Tn,inlineIndent:Ht,subMenuOpenDelay:Ae,subMenuCloseDelay:He,forceSubMenuRender:Ot,builtinPlacements:ln,triggerSubMenuAction:Ct,getPopupContainer:Mn,itemIcon:Jt,expandIcon:_t,onItemClick:Tr,onOpenChange:dr},n.createElement(j.Provider,{value:Rr},Kr),n.createElement("div",{style:{display:"none"},"aria-hidden":!0},n.createElement(O.Provider,{value:Pr},Bt)))))}),Wn=hn,Kt=Wn;Kt.Item=mt,Kt.SubMenu=rn,Kt.ItemGroup=pn,Kt.Divider=Xt;var fe=Kt},11780:function(et,se,t){t.d(se,{Z:function(){return Z}});var d=t(92413),s=t(33708),b=t(33606),W=t(37061),v=t(59301),G=t(92310),F=t.n(G),q=t(29301),T=t(34280),z=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],K=void 0;function D(c,S){var X=c.prefixCls,L=c.invalidate,H=c.item,J=c.renderItem,ve=c.responsive,ce=c.responsiveDisabled,de=c.registerSize,ye=c.itemKey,xe=c.className,Se=c.style,ge=c.children,Te=c.display,Re=c.order,Le=c.component,Oe=Le===void 0?"div":Le,m=(0,W.Z)(c,z),i=ve&&!Te;function e(x){de(ye,x)}v.useEffect(function(){return function(){e(null)}},[]);var r=J&&H!==K?J(H,{index:Re}):ge,o;L||(o={opacity:i?0:1,height:i?0:K,overflowY:i?"hidden":K,order:ve?Re:K,pointerEvents:i?"none":K,position:i?"absolute":K});var g={};i&&(g["aria-hidden"]=!0);var h=v.createElement(Oe,(0,d.Z)({className:F()(!L&&X,xe),style:(0,s.Z)((0,s.Z)({},o),Se)},g,m,{ref:S}),r);return ve&&(h=v.createElement(q.Z,{onResize:function(R){var N=R.offsetWidth;e(N)},disabled:ce},h)),h}var n=v.forwardRef(D);n.displayName="Item";var Y=n,ue=t(6089),pe=t(4676),he=t(16089);function M(c){if(typeof MessageChannel=="undefined")(0,he.Z)(c);else{var S=new MessageChannel;S.port1.onmessage=function(){return c()},S.port2.postMessage(void 0)}}function Me(){var c=v.useRef(null),S=function(L){c.current||(c.current=[],M(function(){(0,pe.unstable_batchedUpdates)(function(){c.current.forEach(function(H){H()}),c.current=null})})),c.current.push(L)};return S}function k(c,S){var X=v.useState(S),L=(0,b.Z)(X,2),H=L[0],J=L[1],ve=(0,ue.Z)(function(ce){c(function(){J(ce)})});return[H,ve]}var ne=v.createContext(null),w=["component"],Q=["className"],O=["className"],C=function(S,X){var L=v.useContext(ne);if(!L){var H=S.component,J=H===void 0?"div":H,ve=(0,W.Z)(S,w);return v.createElement(J,(0,d.Z)({},ve,{ref:X}))}var ce=L.className,de=(0,W.Z)(L,Q),ye=S.className,xe=(0,W.Z)(S,O);return v.createElement(ne.Provider,{value:null},v.createElement(Y,(0,d.Z)({ref:X,className:F()(ce,ye)},de,xe)))},A=v.forwardRef(C);A.displayName="RawItem";var B=A,j=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],le="responsive",oe="invalidate";function Ce(c){return"+ ".concat(c.length," ...")}function Pe(c,S){var X=c.prefixCls,L=X===void 0?"rc-overflow":X,H=c.data,J=H===void 0?[]:H,ve=c.renderItem,ce=c.renderRawItem,de=c.itemKey,ye=c.itemWidth,xe=ye===void 0?10:ye,Se=c.ssr,ge=c.style,Te=c.className,Re=c.maxCount,Le=c.renderRest,Oe=c.renderRawRest,m=c.suffix,i=c.component,e=i===void 0?"div":i,r=c.itemComponent,o=c.onVisibleChange,g=(0,W.Z)(c,j),h=Se==="full",x=Me(),R=k(x,null),N=(0,b.Z)(R,2),$=N[0],V=N[1],_=$||0,me=k(x,new Map),ae=(0,b.Z)(me,2),ie=ae[0],ee=ae[1],te=k(x,0),Ne=(0,b.Z)(te,2),Ge=Ne[0],Fe=Ne[1],tt=k(x,0),Ye=(0,b.Z)(tt,2),Qe=Ye[0],Be=Ye[1],nt=k(x,0),at=(0,b.Z)(nt,2),rt=at[0],St=at[1],Dt=(0,v.useState)(null),Mt=(0,b.Z)(Dt,2),mt=Mt[0],wt=Mt[1],Ft=(0,v.useState)(null),ct=(0,b.Z)(Ft,2),Tt=ct[0],mn=ct[1],pt=v.useMemo(function(){return Tt===null&&h?Number.MAX_SAFE_INTEGER:Tt||0},[Tt,$]),jt=(0,v.useState)(!1),Je=(0,b.Z)(jt,2),It=Je[0],An=Je[1],On="".concat(L,"-item"),fn=Math.max(Ge,Qe),vn=Re===le,xt=J.length&&vn,En=Re===oe,Ln=xt||typeof Re=="number"&&J.length>Re,At=(0,v.useMemo)(function(){var fe=J;return xt?$===null&&h?fe=J:fe=J.slice(0,Math.min(J.length,_/xe)):typeof Re=="number"&&(fe=J.slice(0,Re)),fe},[J,xe,$,Re,xt]),gn=(0,v.useMemo)(function(){return xt?J.slice(pt+1):J.slice(At.length)},[J,At,xt,pt]),nn=(0,v.useCallback)(function(fe,a){var l;return typeof de=="function"?de(fe):(l=de&&(fe==null?void 0:fe[de]))!==null&&l!==void 0?l:a},[de]),rn=(0,v.useCallback)(ve||function(fe){return fe},[ve]);function on(fe,a,l){Tt===fe&&(a===void 0||a===mt)||(mn(fe),l||(An(fe<J.length-1),o==null||o(fe)),a!==void 0&&wt(a))}function zn(fe,a){V(a.clientWidth)}function Pn(fe,a){ee(function(l){var p=new Map(l);return a===null?p.delete(fe):p.set(fe,a),p})}function Kn(fe,a){Be(a),Fe(Qe)}function pn(fe,a){St(a)}function Xt(fe){return ie.get(nn(At[fe],fe))}(0,T.Z)(function(){if(_&&typeof fn=="number"&&At){var fe=rt,a=At.length,l=a-1;if(!a){on(0,null);return}for(var p=0;p<a;p+=1){var y=Xt(p);if(h&&(y=y||0),y===void 0){on(p-1,void 0,!0);break}if(fe+=y,l===0&&fe<=_||p===l-1&&fe+Xt(l)<=_){on(l,null);break}else if(fe+fn>_){on(p-1,fe-y-rt+Qe);break}}m&&Xt(0)+rt>_&&wt(null)}},[_,ie,Qe,rt,nn,At]);var Rn=It&&!!gn.length,an={};mt!==null&&xt&&(an={position:"absolute",left:mt,top:0});var Vt={prefixCls:On,responsive:xt,component:r,invalidate:En},Hn=ce?function(fe,a){var l=nn(fe,a);return v.createElement(ne.Provider,{key:l,value:(0,s.Z)((0,s.Z)({},Vt),{},{order:a,item:fe,itemKey:l,registerSize:Pn,display:a<=pt})},ce(fe,a))}:function(fe,a){var l=nn(fe,a);return v.createElement(Y,(0,d.Z)({},Vt,{order:a,key:l,item:fe,renderItem:rn,itemKey:l,registerSize:Pn,display:a<=pt}))},Lt={order:Rn?pt:Number.MAX_SAFE_INTEGER,className:"".concat(On,"-rest"),registerSize:Kn,display:Rn},hn=Le||Ce,Wn=Oe?v.createElement(ne.Provider,{value:(0,s.Z)((0,s.Z)({},Vt),Lt)},Oe(gn)):v.createElement(Y,(0,d.Z)({},Vt,Lt),typeof hn=="function"?hn(gn):hn),Kt=v.createElement(e,(0,d.Z)({className:F()(!En&&L,Te),style:ge,ref:S},g),At.map(Hn),Ln?Wn:null,m&&v.createElement(Y,(0,d.Z)({},Vt,{responsive:vn,responsiveDisabled:!xt,order:pt,className:"".concat(On,"-suffix"),registerSize:pn,display:!0,style:an}),m));return vn?v.createElement(q.Z,{onResize:zn,disabled:!xt},Kt):Kt}var u=v.forwardRef(Pe);u.displayName="Overflow",u.Item=B,u.RESPONSIVE=le,u.INVALIDATE=oe;var P=u,Z=P}}]);
|