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.
26 lines
110 KiB
26 lines
110 KiB
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[3006],{13403:function(wt,de,u){u.r(de),u.d(de,{default:function(){return Q}});var d=u(67294),f={flex_box_center:"flex_box_center___usTTt",flex_space_between:"flex_space_between___pQ1uH",flex_box_vertical_center:"flex_box_vertical_center___jvY_p",flex_box_center_end:"flex_box_center_end___mLLAC",flex_box_column:"flex_box_column___B1SWi",wrap:"wrap___Ga64a",left:"left___MLf1O",menu:"menu___FpsmH",home:"home___iI7sm",info:"info___P474B",right:"right___Ttby6"},R=u(68508),W=u(35973),C=u(70583),A=u(33170),V="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABQCAYAAACpv3NFAAAAAXNSR0IArs4c6QAABmRJREFUeF7tXHtQVHUU/s7dBw9lAUGBJR18QE7YmJWZaYpZo9Vio0jamFpj4jhaVpaNr4Zeko42aY2OmI7o+BpDA8WGGpOmfDXjKx1TVNQUFFQUebN772nuMiqLwMBy7zJLv/vXAuecPeebc77vt3sPl1DnYmYyJpybrBDGg/EECJ3BLNW18brXRAoYN0A4LjG2OtKj04iI79VB916Yx53vY7crqQAP9LoiW5QwHTQZDNNqtvc8qbo5ATAmnhsqy5wNsE+LYnmtMVUbDDTCsT36dwpOvBB4R5ZzAe7itfW4lTgVBRkMMSSNzV3ICn/uVgwvdyKJPiVKyD0K5n5eXot76RMdI0o4WwpGR/cieLkXoYxozNn7kuDl5biVvgBAdIAYAcEBggTdos924iRUQKiAUAGhAkIF2gmhu1WGUAGhAkIFhAoIFXCLPtuJU5uqwBdvhCCogwGz1hVBUdoG0TYBwNdMSHs3HInPBTirzjpShvHfXEN5leen0eMAhAcZkDE3Ev17+aKkXIZdBkItBhzLq4JtUT6u3ZY92goeBaBvlA92zbPikRAT8q7XwLaoADUOxp4FkYixmnH1lh2vfpWPk5drPAaCxwCIf7oDNn8QgQ6+Ev44XYExSwpwq7R28IM7Stg5x4ohsf4orVTw+tICZB+v8AgIHgFg9qhgLJ4YCkkibMgpwdRVhbA7XOszGYF1M8IxYYgFssyY+UMRVv9SojsIugJgNACrksIw5cVAMDPmb76Fr3cUN1nUZ+NDsDAxxGmzNKMYczbc1BUE3QBQ2/rHj6wY9rg/KqoVTFpxHTsOlbkUM6yPn/PnfacqXX4/Kc6CNdPDYDIS0g+WYuKK66iq0UchdAEgOsKE3fMiEW01o6DYgVEp+TiaV+1SZNJLgfh+au0d+ZlripD6q2u7x/Xxw445Vuc54XBuJUalFODGXe0VQnMA1MTTP7YiuGOttMWnFDhBuHdJErBscmfMsgW7ALJ8923MTrvhciDqHWlG1vxIdA8z4WJhrUKcyddWITQFYMpwC1Ym1bbuT4fL8Obya6ioftC6AX4Stn4YgZef7NDgXP98tNx5IFKV4N7V2WJA5lwrBsT44U657FSPnHoj0xqS0AwAi7+EMyuiEB5sxJKdxZi76Sa4zthGdTE6x+Kxrk1v4Zy+Uu08EF0qetA16slx43vhSBgYgP3/VOL5BVdaU7OLr2YAqFHV011sVzPW77vr8iaDevti5yeRzhNfc66bd2WMXpyP/WeqXMznjumEtXtLUFSiHRdoCkBDxU0eZsHqaWEwm+4vpDUHA9TYGdNWFyKtHpjNcm6BkW4AEAEpE0IxZ3SnFqTzsGlD49SqgPWcdQHA34ew6f0IvPaMNps3GX+VYcK3roSqFQi6AHBsWTf0jfLVKkdnnBOXqtBv9r+axlSD6QKAkh6jeaJqQCkhV/O4HgdAURiORkhc/eygfmBq7GoXAKzbW4J3VhY2WOPaGWF4+4VAAYDogEYQECPQHkhQcIAgwf+BCpRu6tWolG3IuYsZa4oa/PvKpC6YONTSqG/AhPPecRDSPEsdA+pyEtQxX81DCwDEioxYkRErMvrcctGcrvQJKEhQkKAgQUGCggT14VfviCpUQKiAUAGhAkIFPM7XROoGxUECzgAcwUB/MLp7PA+9bo42WAjhMkHaJUmc2Tc4OudIKtnr2pkTzsU6CDZmJR6gZ8HcvHWSVqKmowwSg/gIEWUaDJxp3/boiebmGjDpakhFWeUrTIqNQSPA3PgNw+YGbcROYwCoGsS/EVGGr9F3V8XWbgWtzA9PJbHpRHHeEEWRbUywgbnxr5zdeDOiMblVrXyA0k0iyiJCZqifJbtwY3i5G3k028WccLG3A/Z4BmwABrVqVAg16mN0DoF5QLMzUA0JZwmUKUmGzAWxPQ4kJ1Ob/L+HJfFKp3K5ciQDKiAjAQ5qUR2go2Qce2G4rMhZTXYBkQzmg+o8m4yGjOptPbVf1WhZ5g9ZxyWz8c9T5wcrrMQzO7uj6TUVIlkCjXauYxjG5toUhVMBRNyPTCgHKFsCZ/qbA7JKt1j1XdtuJQD13X3GXYixO1QS5XgwD1YfmfagNiqRgOlyesyW+/soycksffn3haEM7kGgvKhIPnD+u2jXDWeNk/RUuKC3LgaVlspxzHJPkuhi146mPZfWd3duYf4HFXjVlDenBVgAAAAASUVORK5CYII=",X=(Oe,ue,Ce)=>new Promise((Ae,G)=>{var S=ut=>{try{Mt(Ce.next(ut))}catch(Pt){G(Pt)}},Be=ut=>{try{Mt(Ce.throw(ut))}catch(Pt){G(Pt)}},Mt=ut=>ut.done?Ae(ut.value):Promise.resolve(ut.value).then(S,Be);Mt((Ce=Ce.apply(Oe,ue)).next())});const{SubMenu:r}=R.default,L=({user:Oe,globalSetting:ue,engineering:Ce,dispatch:Ae})=>{const G=(0,W.useLocation)(),[S,Be]=d.useState(["1","2","3","4"]),[Mt,ut]=d.useState([]),{showMenu:Pt,matrixVerify:ae}=Ce;(0,d.useEffect)(()=>{(G==null?void 0:G.pathname)==="/engineering"&&W.history.replace("/engineering/navigation"),document.title="\u5DE5\u7A0B\u8BA4\u8BC1"},[G==null?void 0:G.pathname]),(0,d.useEffect)(()=>{document.title="\u5DE5\u7A0B\u8BA4\u8BC1"}),(0,d.useEffect)(()=>{const{filterOpenKeys:Z,filterSelectedKeys:fe}=J();console.log(J()),ut(fe)},[G==null?void 0:G.pathname]),(0,d.useEffect)(()=>{function Z(){return X(this,null,function*(){const fe=yield(0,A.ZP)("/api/ec_major_schools/1/ec_years/has_logged.json",{method:"get",params:{tab_module_type:"engineering"}});console.log(fe),fe!=null&&fe.un_purchased&&Ae({type:"globalSetting/setActionTabs",payload:{key:"\u91C7\u8D2D\u63D0\u793A"}})})}Z()},[]);const M=[{title:"\u4E13\u4E1A\u8BBE\u7F6E",key:"1",icon:d.createElement("i",{className:"iconfont icon-zhuanyeshezhi"}),children:[{title:"\u57F9\u517B\u65B9\u6848",key:"/engineering/training/program",icon:d.createElement("i",{className:"iconfont icon-peiyangfangan font14"})},{title:"\u57F9\u517B\u76EE\u6807",key:"/engineering/training/objectives",icon:d.createElement("i",{className:"iconfont icon-peiyangmubiao font14"})},{title:"\u6559\u5E08\u4FE1\u606F",key:"/engineering/teacherList",icon:d.createElement("i",{className:"iconfont icon-jiaoshiliebiao font14"})},{title:"\u5B66\u751F\u4FE1\u606F",key:"/engineering/studentList",icon:d.createElement("i",{className:"iconfont icon-xueshengliebiao font14"})}]},{title:"\u6BD5\u4E1A\u8981\u6C42",key:"2",icon:d.createElement("i",{className:"iconfont icon-biyeyaoqiu"}),children:[{title:"\u6BD5\u4E1A\u6307\u6807",key:"/engineering/graduated/index",icon:d.createElement("i",{className:"iconfont icon-biyezhibiao font14"})},{title:"\u6BD5\u4E1A\u77E9\u9635",key:"/engineering/graduated/matrix",icon:d.createElement("i",{className:"iconfont icon-biyejuzhen font14"})}]},{title:"\u8BFE\u7A0B\u4F53\u7CFB",key:"3",icon:d.createElement("i",{className:"iconfont icon-kechengtixi"}),children:[{title:"\u8BFE\u7A0B\u5217\u8868",key:"/engineering/course/list",icon:d.createElement("i",{className:"iconfont icon-kechengliebiao font14"})},{title:"\u8BFE\u7A0B\u8BBE\u7F6E",key:"/engineering/course/setting",icon:d.createElement("i",{className:"iconfont icon-kechengshezhi font14"})},{title:"\u8BFE\u7A0B\u77E9\u9635",key:"/engineering/course/matrix",icon:d.createElement("i",{className:"iconfont icon-kechengjuzhen font14"})}]},{title:"\u8FBE\u6210\u8BC4\u4EF7",key:"4",icon:d.createElement("i",{className:"iconfont icon-dachengpinggu"}),children:[{title:"\u8BFE\u7A0B\u8BC4\u4EF7",key:"/engineering/evaluate/course",icon:d.createElement("i",{className:"iconfont icon-kechengpingjia font14"})},{title:"\u6307\u6807\u8BC4\u4EF7",key:"/engineering/evaluate/norm",icon:d.createElement("i",{className:"iconfont icon-zhibiaopingjia font14"})},{title:"\u6587\u6863\u751F\u6210",key:"/engineering/evaluate/document",icon:d.createElement("i",{className:"iconfont icon-wendangshengcheng font14"})}]}],J=()=>{var Z;const fe=G==null?void 0:G.pathname;let Se=[],nt=[];for(let Ue=0;Ue<M.length;Ue++)if((Z=M[Ue].children)!=null&&Z.length){for(let Rt=0;Rt<M[Ue].children.length;Rt++)if(fe.includes(M[Ue].children[Rt].key))return Se=[M[Ue].key],nt=[M[Ue].children[Rt].key],{filterOpenKeys:Se,filterSelectedKeys:nt}}return{filterOpenKeys:Se,filterSelectedKeys:nt}},_=Z=>{console.log(S,Z,44),Be(Z)},F=Z=>{var fe;const Se=()=>{W.history.push(Z)};ae!=null&&ae.key?(0,C.t)(Se,`\u6BD5\u4E1A\u8981\u6C42\u6307\u6807\u70B9\u5B58\u5728\u6CA1\u6709\u5173\u8054${((fe=ae==null?void 0:ae.params)==null?void 0:fe.tab)==="1"?"\u57F9\u517B\u76EE\u6807":"\u901A\u7528\u6807\u51C6"}\uFF0C\u786E\u5B9A\u662F\u5426\u79BB\u5F00\u5F53\u524D\u9875\u9762\uFF1F`):Se()};return d.createElement("div",{className:f.wrap},Pt&&(G==null?void 0:G.pathname)!=="/exam"&&d.createElement("div",{className:f.left},d.createElement("aside",{onClick:()=>F("/engineering/navigation"),className:f.home},d.createElement("div",{className:"mr15"},d.createElement("img",{width:32,src:V})),d.createElement("div",{className:f.info},d.createElement("div",null,"\u8BA4\u8BC1\u5BFC\u822A"),d.createElement("div",null,"CERTIFICATION"))),d.createElement(R.default,{mode:"inline",selectedKeys:Mt,openKeys:S,onOpenChange:_,inlineIndent:15,className:f.menu,expandIcon:Z=>Z.isOpen?d.createElement("span",{style:{visibility:"hidden"},className:"icon-xiala3 custom-icon"}):d.createElement("span",{style:{visibility:"hidden"},className:"icon-xiala2 custom-icon"})},M.map(Z=>{var fe;if(!Z.isMenu)return d.createElement(r,{key:Z.key,icon:Z.icon,title:Z.title},Z.children&&((fe=Z.children)==null?void 0:fe.map(Se=>d.createElement(R.default.Item,{key:Se.key},d.createElement("aside",{onClick:()=>F(Se.key)},d.createElement("span",{className:"mr15"},Se==null?void 0:Se.icon),Se.title)))))}))),d.createElement("div",{className:f.right},d.createElement(W.Outlet,null)))};var Q=(0,W.connect)(({globalSetting:Oe,user:ue,engineering:Ce})=>({user:ue,globalSetting:Oe,engineering:Ce}))(L)},19249:function(wt,de,u){u.d(de,{D:function(){return Mt},Z:function(){return ae}});var d=u(87462),f=u(67294),R={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=R,C=u(44327),A=function(J,_){return f.createElement(C.Z,(0,d.Z)({},J,{ref:_,icon:W}))},V=f.forwardRef(A),X=u(55007),r=u(79269),L=u(94184),Q=u.n(L),Oe=u(10366),Ce=M=>!isNaN(parseFloat(M))&&isFinite(M),Ae=u(53124),G=u(84321),S=function(M,J){var _={};for(var F in M)Object.prototype.hasOwnProperty.call(M,F)&&J.indexOf(F)<0&&(_[F]=M[F]);if(M!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Z=0,F=Object.getOwnPropertySymbols(M);Z<F.length;Z++)J.indexOf(F[Z])<0&&Object.prototype.propertyIsEnumerable.call(M,F[Z])&&(_[F[Z]]=M[F[Z]]);return _};const Be={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},Mt=f.createContext({}),ut=(()=>{let M=0;return function(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return M+=1,`${J}${M}`}})();var ae=f.forwardRef((M,J)=>{const{prefixCls:_,className:F,trigger:Z,children:fe,defaultCollapsed:Se=!1,theme:nt="dark",style:Ue={},collapsible:Rt=!1,reverseArrow:st=!1,width:dn=200,collapsedWidth:_t=80,zeroWidthTriggerStyle:Nn,breakpoint:Ct,onCollapse:zt,onBreakpoint:Ft}=M,Cn=S(M,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:fn}=(0,f.useContext)(G.Gs),[At,vn]=(0,f.useState)("collapsed"in M?M.collapsed:Se),[mn,Fn]=(0,f.useState)(!1);(0,f.useEffect)(()=>{"collapsed"in M&&vn(M.collapsed)},[M.collapsed]);const Sn=(pe,m)=>{"collapsed"in M||vn(pe),zt==null||zt(pe,m)},ur=(0,f.useRef)();ur.current=pe=>{Fn(pe.matches),Ft==null||Ft(pe.matches),At!==pe.matches&&Sn(pe.matches,"responsive")},(0,f.useEffect)(()=>{function pe(c){return ur.current(c)}let m;if(typeof window!="undefined"){const{matchMedia:c}=window;if(c&&Ct&&Ct in Be){m=c(`(max-width: ${Be[Ct]})`);try{m.addEventListener("change",pe)}catch(s){m.addListener(pe)}pe(m)}}return()=>{try{m==null||m.removeEventListener("change",pe)}catch(c){m==null||m.removeListener(pe)}}},[Ct]),(0,f.useEffect)(()=>{const pe=ut("ant-sider-");return fn.addSider(pe),()=>fn.removeSider(pe)},[]);const In=()=>{Sn(!At,"clickTrigger")},{getPrefixCls:nr}=(0,f.useContext)(Ae.E_),sr=()=>{const pe=nr("layout-sider",_),m=(0,Oe.Z)(Cn,["collapsed"]),c=At?_t:dn,s=Ce(c)?`${c}px`:String(c),h=parseFloat(String(_t||0))===0?f.createElement("span",{onClick:In,className:Q()(`${pe}-zero-width-trigger`,`${pe}-zero-width-trigger-${st?"right":"left"}`),style:Nn},Z||f.createElement(V,null)):null,k={expanded:st?f.createElement(r.Z,null):f.createElement(X.Z,null),collapsed:st?f.createElement(X.Z,null):f.createElement(r.Z,null)}[At?"collapsed":"expanded"],Y=Z!==null?h||f.createElement("div",{className:`${pe}-trigger`,onClick:In,style:{width:s}},Z||k):null,se=Object.assign(Object.assign({},Ue),{flex:`0 0 ${s}`,maxWidth:s,minWidth:s,width:s}),ve=Q()(pe,`${pe}-${nt}`,{[`${pe}-collapsed`]:!!At,[`${pe}-has-trigger`]:Rt&&Z!==null&&!h,[`${pe}-below`]:!!mn,[`${pe}-zero-width`]:parseFloat(s)===0},F);return f.createElement("aside",Object.assign({className:ve},m,{style:se,ref:J}),f.createElement("div",{className:`${pe}-children`},fe),Rt||mn&&h?Y:null)},En=f.useMemo(()=>({siderCollapsed:At}),[At]);return f.createElement(Mt.Provider,{value:En},sr())})},84321:function(wt,de,u){u.d(de,{VY:function(){return ut},$_:function(){return Mt},h4:function(){return Be},Gs:function(){return ue},ZP:function(){return Pt}});var d=u(74902),f=u(94184),R=u.n(f),W=u(10366),C=u(67294),A=u(53124),V=u(67968),r=ae=>{const{componentCls:M,bodyBg:J,lightSiderBg:_,lightTriggerBg:F,lightTriggerColor:Z}=ae;return{[`${M}-sider-light`]:{background:_,[`${M}-sider-trigger`]:{color:Z,background:F},[`${M}-sider-zero-width-trigger`]:{color:Z,background:F,border:`1px solid ${J}`,borderInlineStart:0}}}};const L=ae=>{const{antCls:M,componentCls:J,colorText:_,triggerColor:F,footerBg:Z,triggerBg:fe,headerHeight:Se,headerPadding:nt,headerColor:Ue,footerPadding:Rt,triggerHeight:st,zeroTriggerHeight:dn,zeroTriggerWidth:_t,motionDurationMid:Nn,motionDurationSlow:Ct,fontSize:zt,borderRadius:Ft,bodyBg:Cn,headerBg:fn,siderBg:At}=ae;return{[J]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Cn,"&, *":{boxSizing:"border-box"},[`&${J}-has-sider`]:{flexDirection:"row",[`> ${J}, > ${J}-content`]:{width:0}},[`${J}-header, &${J}-footer`]:{flex:"0 0 auto"},[`${J}-sider`]:{position:"relative",minWidth:0,background:At,transition:`all ${Nn}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${M}-menu${M}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:st},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:st,color:F,lineHeight:`${st}px`,textAlign:"center",background:fe,cursor:"pointer",transition:`all ${Nn}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Se,insetInlineEnd:-_t,zIndex:1,width:_t,height:dn,color:F,fontSize:ae.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:At,borderStartStartRadius:0,borderStartEndRadius:Ft,borderEndEndRadius:Ft,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Ct} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Ct}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-_t,borderStartStartRadius:Ft,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Ft}}}}},r(ae)),{"&-rtl":{direction:"rtl"}}),[`${J}-header`]:{height:Se,padding:nt,color:Ue,lineHeight:`${Se}px`,background:fn,[`${M}-menu`]:{lineHeight:"inherit"}},[`${J}-footer`]:{padding:Rt,color:_,fontSize:zt,background:Z},[`${J}-content`]:{flex:"auto",minHeight:0}}};var Q=(0,V.Z)("Layout",ae=>[L(ae)],ae=>{const{colorBgLayout:M,controlHeight:J,controlHeightLG:_,colorText:F,controlHeightSM:Z,marginXXS:fe,colorTextLightSolid:Se,colorBgContainer:nt}=ae,Ue=_*1.25;return{colorBgHeader:"#001529",colorBgBody:M,colorBgTrigger:"#002140",bodyBg:M,headerBg:"#001529",headerHeight:J*2,headerPadding:`0 ${Ue}px`,headerColor:F,footerPadding:`${Z}px ${Ue}px`,footerBg:M,siderBg:"#001529",triggerHeight:_+fe*2,triggerBg:"#002140",triggerColor:Se,zeroTriggerWidth:_,zeroTriggerHeight:_,lightSiderBg:nt,lightTriggerBg:nt,lightTriggerColor:F}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Oe=function(ae,M){var J={};for(var _ in ae)Object.prototype.hasOwnProperty.call(ae,_)&&M.indexOf(_)<0&&(J[_]=ae[_]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var F=0,_=Object.getOwnPropertySymbols(ae);F<_.length;F++)M.indexOf(_[F])<0&&Object.prototype.propertyIsEnumerable.call(ae,_[F])&&(J[_[F]]=ae[_[F]]);return J};const ue=C.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function Ce(ae){let{suffixCls:M,tagName:J,displayName:_}=ae;return F=>C.forwardRef((fe,Se)=>C.createElement(F,Object.assign({ref:Se,suffixCls:M,tagName:J},fe)))}const Ae=C.forwardRef((ae,M)=>{const{prefixCls:J,suffixCls:_,className:F,tagName:Z}=ae,fe=Oe(ae,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Se}=C.useContext(A.E_),nt=Se("layout",J),[Ue,Rt]=Q(nt),st=_?`${nt}-${_}`:nt;return Ue(C.createElement(Z,Object.assign({className:R()(J||st,F,Rt),ref:M},fe)))}),G=C.forwardRef((ae,M)=>{const{direction:J}=C.useContext(A.E_),[_,F]=C.useState([]),{prefixCls:Z,className:fe,rootClassName:Se,children:nt,hasSider:Ue,tagName:Rt,style:st}=ae,dn=Oe(ae,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),_t=(0,W.Z)(dn,["suffixCls"]),{getPrefixCls:Nn,layout:Ct}=C.useContext(A.E_),zt=Nn("layout",Z),[Ft,Cn]=Q(zt),fn=R()(zt,{[`${zt}-has-sider`]:typeof Ue=="boolean"?Ue:_.length>0,[`${zt}-rtl`]:J==="rtl"},Ct==null?void 0:Ct.className,fe,Se,Cn),At=C.useMemo(()=>({siderHook:{addSider:vn=>{F(mn=>[].concat((0,d.Z)(mn),[vn]))},removeSider:vn=>{F(mn=>mn.filter(Fn=>Fn!==vn))}}}),[]);return Ft(C.createElement(ue.Provider,{value:At},C.createElement(Rt,Object.assign({ref:M,className:fn,style:Object.assign(Object.assign({},Ct==null?void 0:Ct.style),st)},_t),nt)))}),S=Ce({tagName:"div",displayName:"Layout"})(G),Be=Ce({suffixCls:"header",tagName:"header",displayName:"Header"})(Ae),Mt=Ce({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(Ae),ut=Ce({suffixCls:"content",tagName:"main",displayName:"Content"})(Ae);var Pt=S},76529:function(wt,de,u){u.d(de,{J:function(){return A}});var d=u(67294),f=u(4173),R=u(60276),W=function(V,X){var r={};for(var L in V)Object.prototype.hasOwnProperty.call(V,L)&&X.indexOf(L)<0&&(r[L]=V[L]);if(V!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Q=0,L=Object.getOwnPropertySymbols(V);Q<L.length;Q++)X.indexOf(L[Q])<0&&Object.prototype.propertyIsEnumerable.call(V,L[Q])&&(r[L[Q]]=V[L[Q]]);return r};const C=d.createContext(null),A=d.forwardRef((V,X)=>{const{children:r}=V,L=W(V,["children"]),Q=d.useContext(C),Oe=d.useMemo(()=>Object.assign(Object.assign({},Q),L),[Q,L.prefixCls,L.mode,L.selectable]);return d.createElement(C.Provider,{value:Oe},d.createElement(f.BR,null,(0,R.supportNodeRef)(r)?d.cloneElement(r,{ref:X}):r))});de.Z=C},68508:function(wt,de,u){u.d(de,{default:function(){return pe}});var d=u(52073),f=u(67294),R=u(19249),W=u(94184),C=u.n(W),A=u(53124),V=function(m,c){var s={};for(var h in m)Object.prototype.hasOwnProperty.call(m,h)&&c.indexOf(h)<0&&(s[h]=m[h]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var g=0,h=Object.getOwnPropertySymbols(m);g<h.length;g++)c.indexOf(h[g])<0&&Object.prototype.propertyIsEnumerable.call(m,h[g])&&(s[h[g]]=m[h[g]]);return s},r=m=>{const{prefixCls:c,className:s,dashed:h}=m,g=V(m,["prefixCls","className","dashed"]),{getPrefixCls:B}=f.useContext(A.E_),k=B("menu",c),Y=C()({[`${k}-item-divider-dashed`]:!!h},s);return f.createElement(d.iz,Object.assign({className:Y},g))},L=u(37419),Q=u(10366),Oe=u(83062),ue=u(96159),Ae=(0,f.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),S=m=>{var c;const{className:s,children:h,icon:g,title:B,danger:k}=m,{prefixCls:Y,firstLevel:se,direction:ve,disableMenuItemTitleTooltip:Ve,inlineCollapsed:be}=f.useContext(Ae),rt=Dt=>{const Ut=f.createElement("span",{className:`${Y}-title-content`},h);return(!g||(0,ue.l$)(h)&&h.type==="span")&&h&&Dt&&se&&typeof h=="string"?f.createElement("div",{className:`${Y}-inline-collapsed-noicon`},h.charAt(0)):Ut},{siderCollapsed:ct}=f.useContext(R.D);let He=B;typeof B=="undefined"?He=se?h:"":B===!1&&(He="");const ce={title:He};!ct&&!be&&(ce.title=null,ce.open=!1);const Le=(0,L.Z)(h).length;let Qe=f.createElement(d.ck,Object.assign({},(0,Q.Z)(m,["title","icon","danger"]),{className:C()({[`${Y}-item-danger`]:k,[`${Y}-item-only-child`]:(g?Le+1:Le)===1},s),title:typeof B=="string"?B:void 0}),(0,ue.Tm)(g,{className:C()((0,ue.l$)(g)?(c=g.props)===null||c===void 0?void 0:c.className:"",`${Y}-item-icon`)}),rt(be));return Ve||(Qe=f.createElement(Oe.Z,Object.assign({},ce,{placement:ve==="rtl"?"left":"right",overlayClassName:`${Y}-inline-collapsed-tooltip`}),Qe)),Qe},Mt=m=>{var c;const{popupClassName:s,icon:h,title:g,theme:B}=m,k=f.useContext(Ae),{prefixCls:Y,inlineCollapsed:se,theme:ve}=k,Ve=(0,d.Xl)();let be;if(!h)be=se&&!Ve.length&&g&&typeof g=="string"?f.createElement("div",{className:`${Y}-inline-collapsed-noicon`},g.charAt(0)):f.createElement("span",{className:`${Y}-title-content`},g);else{const ct=(0,ue.l$)(g)&&g.type==="span";be=f.createElement(f.Fragment,null,(0,ue.Tm)(h,{className:C()((0,ue.l$)(h)?(c=h.props)===null||c===void 0?void 0:c.className:"",`${Y}-item-icon`)}),ct?g:f.createElement("span",{className:`${Y}-title-content`},g))}const rt=f.useMemo(()=>Object.assign(Object.assign({},k),{firstLevel:!1}),[k]);return f.createElement(Ae.Provider,{value:rt},f.createElement(d.Wd,Object.assign({},(0,Q.Z)(m,["icon"]),{title:be,popupClassName:C()(Y,s,`${Y}-${B||ve}`)})))},ut=u(64582),Pt=u(60276),ae=u(33603),M=u(76529),J=function(m,c){var s={};for(var h in m)Object.prototype.hasOwnProperty.call(m,h)&&c.indexOf(h)<0&&(s[h]=m[h]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var g=0,h=Object.getOwnPropertySymbols(m);g<h.length;g++)c.indexOf(h[g])<0&&Object.prototype.propertyIsEnumerable.call(m,h[g])&&(s[h[g]]=m[h[g]]);return s};function _(m){return(m||[]).map((c,s)=>{if(c&&typeof c=="object"){const h=c,{label:g,children:B,key:k,type:Y}=h,se=J(h,["label","children","key","type"]),ve=k!=null?k:`tmp-${s}`;return B||Y==="group"?Y==="group"?f.createElement(d.BW,Object.assign({key:ve},se,{title:g}),_(B)):f.createElement(Mt,Object.assign({key:ve},se,{title:g}),_(B)):Y==="divider"?f.createElement(r,Object.assign({key:ve},se)):f.createElement(S,Object.assign({key:ve},se),g)}return null}).filter(c=>c)}function F(m){return f.useMemo(()=>m&&_(m),[m])}var Z=u(84780),fe=u(14747),Se=u(33507),nt=u(67771),Ue=u(50438),Rt=u(67968),st=u(45503),_t=m=>{const{componentCls:c,motionDurationSlow:s,horizontalLineHeight:h,colorSplit:g,lineWidth:B,lineType:k,itemPaddingInline:Y}=m;return{[`${c}-horizontal`]:{lineHeight:h,border:0,borderBottom:`${B}px ${k} ${g}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${c}-item, ${c}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Y},[`> ${c}-item:hover,
|
|
> ${c}-item-active,
|
|
> ${c}-submenu ${c}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${c}-item, ${c}-submenu-title`]:{transition:[`border-color ${s}`,`background ${s}`].join(",")},[`${c}-submenu-arrow`]:{display:"none"}}}},Ct=m=>{let{componentCls:c,menuArrowOffset:s}=m;return{[`${c}-rtl`]:{direction:"rtl"},[`${c}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${c}-rtl${c}-vertical,
|
|
${c}-submenu-rtl ${c}-vertical`]:{[`${c}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${s})`},"&::after":{transform:`rotate(45deg) translateY(${s})`}}}}};const zt=m=>Object.assign({},(0,fe.oN)(m));var Cn=(m,c)=>{const{componentCls:s,itemColor:h,itemSelectedColor:g,groupTitleColor:B,itemBg:k,subMenuItemBg:Y,itemSelectedBg:se,activeBarHeight:ve,activeBarWidth:Ve,activeBarBorderWidth:be,motionDurationSlow:rt,motionEaseInOut:ct,motionEaseOut:He,itemPaddingInline:ce,motionDurationMid:Le,itemHoverColor:Qe,lineType:Dt,colorSplit:Ut,itemDisabledColor:qt,dangerItemColor:Un,dangerItemHoverColor:gn,dangerItemSelectedColor:en,dangerItemActiveBg:gt,dangerItemSelectedBg:kt,itemHoverBg:$n,itemActiveBg:hn,menuSubMenuBg:Vn,horizontalItemSelectedColor:xn,horizontalItemSelectedBg:Gn,horizontalItemBorderRadius:An,horizontalItemHoverBg:yn,popupBg:cr}=m;return{[`${s}-${c}, ${s}-${c} > ${s}`]:{color:h,background:k,[`&${s}-root:focus-visible`]:Object.assign({},zt(m)),[`${s}-item-group-title`]:{color:B},[`${s}-submenu-selected`]:{[`> ${s}-submenu-title`]:{color:g}},[`${s}-item-disabled, ${s}-submenu-disabled`]:{color:`${qt} !important`},[`${s}-item:not(${s}-item-selected):not(${s}-submenu-selected)`]:{[`&:hover, > ${s}-submenu-title:hover`]:{color:Qe}},[`&:not(${s}-horizontal)`]:{[`${s}-item:not(${s}-item-selected)`]:{"&:hover":{backgroundColor:$n},"&:active":{backgroundColor:hn}},[`${s}-submenu-title`]:{"&:hover":{backgroundColor:$n},"&:active":{backgroundColor:hn}}},[`${s}-item-danger`]:{color:Un,[`&${s}-item:hover`]:{[`&:not(${s}-item-selected):not(${s}-submenu-selected)`]:{color:gn}},[`&${s}-item:active`]:{background:gt}},[`${s}-item a`]:{"&, &:hover":{color:"inherit"}},[`${s}-item-selected`]:{color:g,[`&${s}-item-danger`]:{color:en},"a, a:hover":{color:"inherit"}},[`& ${s}-item-selected`]:{backgroundColor:se,[`&${s}-item-danger`]:{backgroundColor:kt}},[`${s}-item, ${s}-submenu-title`]:{[`&:not(${s}-item-disabled):focus-visible`]:Object.assign({},zt(m))},[`&${s}-submenu > ${s}`]:{backgroundColor:Vn},[`&${s}-popup > ${s}`]:{backgroundColor:cr},[`&${s}-horizontal`]:Object.assign(Object.assign({},c==="dark"?{borderBottom:0}:{}),{[`> ${s}-item, > ${s}-submenu`]:{top:be,marginTop:-be,marginBottom:0,borderRadius:An,"&::after":{position:"absolute",insetInline:ce,bottom:0,borderBottom:`${ve}px solid transparent`,transition:`border-color ${rt} ${ct}`,content:'""'},"&:hover, &-active, &-open":{background:yn,"&::after":{borderBottomWidth:ve,borderBottomColor:xn}},"&-selected":{color:xn,backgroundColor:Gn,"&:hover":{backgroundColor:Gn},"&::after":{borderBottomWidth:ve,borderBottomColor:xn}}}}),[`&${s}-root`]:{[`&${s}-inline, &${s}-vertical`]:{borderInlineEnd:`${be}px ${Dt} ${Ut}`}},[`&${s}-inline`]:{[`${s}-sub${s}-inline`]:{background:Y},[`${s}-item, ${s}-submenu-title`]:be&&Ve?{width:`calc(100% + ${be}px)`}:{},[`${s}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Ve}px solid ${g}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Le} ${He}`,`opacity ${Le} ${He}`].join(","),content:'""'},[`&${s}-item-danger`]:{"&::after":{borderInlineEndColor:en}}},[`${s}-selected, ${s}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Le} ${ct}`,`opacity ${Le} ${ct}`].join(",")}}}}}};const fn=m=>{const{componentCls:c,itemHeight:s,itemMarginInline:h,padding:g,menuArrowSize:B,marginXS:k,itemMarginBlock:Y}=m,se=g+B+k;return{[`${c}-item`]:{position:"relative",overflow:"hidden"},[`${c}-item, ${c}-submenu-title`]:{height:s,lineHeight:`${s}px`,paddingInline:g,overflow:"hidden",textOverflow:"ellipsis",marginInline:h,marginBlock:Y,width:`calc(100% - ${h*2}px)`},[`> ${c}-item,
|
|
> ${c}-submenu > ${c}-submenu-title`]:{height:s,lineHeight:`${s}px`},[`${c}-item-group-list ${c}-submenu-title,
|
|
${c}-submenu-title`]:{paddingInlineEnd:se}}};var vn=m=>{const{componentCls:c,iconCls:s,itemHeight:h,colorTextLightSolid:g,dropdownWidth:B,controlHeightLG:k,motionDurationMid:Y,motionEaseOut:se,paddingXL:ve,itemMarginInline:Ve,fontSizeLG:be,motionDurationSlow:rt,paddingXS:ct,boxShadowSecondary:He,collapsedWidth:ce,collapsedIconSize:Le}=m,Qe={height:h,lineHeight:`${h}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[c]:{"&-inline, &-vertical":Object.assign({[`&${c}-root`]:{boxShadow:"none"}},fn(m))},[`${c}-submenu-popup`]:{[`${c}-vertical`]:Object.assign(Object.assign({},fn(m)),{boxShadow:He})}},{[`${c}-submenu-popup ${c}-vertical${c}-sub`]:{minWidth:B,maxHeight:`calc(100vh - ${k*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${c}-inline`]:{width:"100%",[`&${c}-root`]:{[`${c}-item, ${c}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${rt}`,`background ${rt}`,`padding ${Y} ${se}`].join(","),[`> ${c}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${c}-sub${c}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${c}-submenu > ${c}-submenu-title`]:Qe,[`& ${c}-item-group-title`]:{paddingInlineStart:ve}},[`${c}-item`]:Qe}},{[`${c}-inline-collapsed`]:{width:ce,[`&${c}-root`]:{[`${c}-item, ${c}-submenu ${c}-submenu-title`]:{[`> ${c}-inline-collapsed-noicon`]:{fontSize:be,textAlign:"center"}}},[`> ${c}-item,
|
|
> ${c}-item-group > ${c}-item-group-list > ${c}-item,
|
|
> ${c}-item-group > ${c}-item-group-list > ${c}-submenu > ${c}-submenu-title,
|
|
> ${c}-submenu > ${c}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${be/2}px - ${Ve}px)`,textOverflow:"clip",[`
|
|
${c}-submenu-arrow,
|
|
${c}-submenu-expand-icon
|
|
`]:{opacity:0},[`${c}-item-icon, ${s}`]:{margin:0,fontSize:Le,lineHeight:`${h}px`,"+ span":{display:"inline-block",opacity:0}}},[`${c}-item-icon, ${s}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${c}-item-icon, ${s}`]:{display:"none"},"a, a:hover":{color:g}},[`${c}-item-group-title`]:Object.assign(Object.assign({},fe.vS),{paddingInline:ct})}}]};const mn=m=>{const{componentCls:c,motionDurationSlow:s,motionDurationMid:h,motionEaseInOut:g,motionEaseOut:B,iconCls:k,iconSize:Y,iconMarginInlineEnd:se}=m;return{[`${c}-item, ${c}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${s}`,`background ${s}`,`padding ${s} ${g}`].join(","),[`${c}-item-icon, ${k}`]:{minWidth:Y,fontSize:Y,transition:[`font-size ${h} ${B}`,`margin ${s} ${g}`,`color ${s}`].join(","),"+ span":{marginInlineStart:se,opacity:1,transition:[`opacity ${s} ${g}`,`margin ${s}`,`color ${s}`].join(",")}},[`${c}-item-icon`]:Object.assign({},(0,fe.Ro)()),[`&${c}-item-only-child`]:{[`> ${k}, > ${c}-item-icon`]:{marginInlineEnd:0}}},[`${c}-item-disabled, ${c}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${c}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Fn=m=>{const{componentCls:c,motionDurationSlow:s,motionEaseInOut:h,borderRadius:g,menuArrowSize:B,menuArrowOffset:k}=m;return{[`${c}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:m.margin,width:B,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${s} ${h}, opacity ${s}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:B*.6,height:B*.15,backgroundColor:"currentcolor",borderRadius:g,transition:[`background ${s} ${h}`,`transform ${s} ${h}`,`top ${s} ${h}`,`color ${s} ${h}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${k})`},"&::after":{transform:`rotate(-45deg) translateY(${k})`}}}}},Sn=m=>{const{antCls:c,componentCls:s,fontSize:h,motionDurationSlow:g,motionDurationMid:B,motionEaseInOut:k,paddingXS:Y,padding:se,colorSplit:ve,lineWidth:Ve,zIndexPopup:be,borderRadiusLG:rt,subMenuItemBorderRadius:ct,menuArrowSize:He,menuArrowOffset:ce,lineType:Le,menuPanelMaskInset:Qe,groupTitleLineHeight:Dt,groupTitleFontSize:Ut}=m;return[{"":{[`${s}`]:Object.assign(Object.assign({},(0,fe.dF)()),{"&-hidden":{display:"none"}})},[`${s}-submenu-hidden`]:{display:"none"}},{[s]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,fe.Wf)(m)),(0,fe.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:h,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${g} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${s}-item`]:{flex:"none"}},[`${s}-item, ${s}-submenu, ${s}-submenu-title`]:{borderRadius:m.itemBorderRadius},[`${s}-item-group-title`]:{padding:`${Y}px ${se}px`,fontSize:Ut,lineHeight:Dt,transition:`all ${g}`},[`&-horizontal ${s}-submenu`]:{transition:[`border-color ${g} ${k}`,`background ${g} ${k}`].join(",")},[`${s}-submenu, ${s}-submenu-inline`]:{transition:[`border-color ${g} ${k}`,`background ${g} ${k}`,`padding ${B} ${k}`].join(",")},[`${s}-submenu ${s}-sub`]:{cursor:"initial",transition:[`background ${g} ${k}`,`padding ${g} ${k}`].join(",")},[`${s}-title-content`]:{transition:`color ${g}`},[`${s}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${s}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:ve,borderStyle:Le,borderWidth:0,borderTopWidth:Ve,marginBlock:Ve,padding:0,"&-dashed":{borderStyle:"dashed"}}}),mn(m)),{[`${s}-item-group`]:{[`${s}-item-group-list`]:{margin:0,padding:0,[`${s}-item, ${s}-submenu-title`]:{paddingInline:`${h*2}px ${se}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:be,borderRadius:rt,boxShadow:"none",transformOrigin:"0 0",[`&${s}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Qe}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Qe},"\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},[`> ${s}`]:Object.assign(Object.assign(Object.assign({borderRadius:rt},mn(m)),Fn(m)),{[`${s}-item, ${s}-submenu > ${s}-submenu-title`]:{borderRadius:ct},[`${s}-submenu-title::after`]:{transition:`transform ${g} ${k}`}})}}),Fn(m)),{[`&-inline-collapsed ${s}-submenu-arrow,
|
|
&-inline ${s}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${ce})`},"&::after":{transform:`rotate(45deg) translateX(-${ce})`}},[`${s}-submenu-open${s}-submenu-inline > ${s}-submenu-title > ${s}-submenu-arrow`]:{transform:`translateY(-${He*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${ce})`},"&::before":{transform:`rotate(45deg) translateX(${ce})`}}})},{[`${c}-layout-header`]:{[s]:{lineHeight:"inherit"}}}]};var ur=(m,c)=>(0,Rt.Z)("Menu",h=>{if(c===!1)return[];const{colorBgElevated:g,colorPrimary:B,colorTextLightSolid:k,controlHeightLG:Y,fontSize:se,darkItemColor:ve,darkDangerItemColor:Ve,darkItemBg:be,darkSubMenuItemBg:rt,darkItemSelectedColor:ct,darkItemSelectedBg:He,darkDangerItemSelectedBg:ce,darkItemHoverBg:Le,darkGroupTitleColor:Qe,darkItemHoverColor:Dt,darkItemDisabledColor:Ut,darkDangerItemHoverColor:qt,darkDangerItemSelectedColor:Un,darkDangerItemActiveBg:gn}=h,en=se/7*5,gt=(0,st.TS)(h,{menuArrowSize:en,menuHorizontalHeight:Y*1.15,menuArrowOffset:`${en*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:g}),kt=(0,st.TS)(gt,{itemColor:ve,itemHoverColor:Dt,groupTitleColor:Qe,itemSelectedColor:ct,itemBg:be,popupBg:be,subMenuItemBg:rt,itemActiveBg:"transparent",itemSelectedBg:He,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Le,itemDisabledColor:Ut,dangerItemColor:Ve,dangerItemHoverColor:qt,dangerItemSelectedColor:Un,dangerItemActiveBg:gn,dangerItemSelectedBg:ce,menuSubMenuBg:rt,horizontalItemSelectedColor:k,horizontalItemSelectedBg:B});return[Sn(gt),_t(gt),vn(gt),Cn(gt,"light"),Cn(kt,"dark"),Ct(gt),(0,Se.Z)(gt),(0,nt.oN)(gt,"slide-up"),(0,nt.oN)(gt,"slide-down"),(0,Ue._y)(gt,"zoom-big")]},h=>{const{colorPrimary:g,colorError:B,colorTextDisabled:k,colorErrorBg:Y,colorText:se,colorTextDescription:ve,colorBgContainer:Ve,colorFillAlter:be,colorFillContent:rt,lineWidth:ct,lineWidthBold:He,controlItemBgActive:ce,colorBgTextHover:Le,controlHeightLG:Qe,lineHeight:Dt,colorBgElevated:Ut,marginXXS:qt,padding:Un,fontSize:gn,controlHeightSM:en,fontSizeLG:gt,colorTextLightSolid:kt,colorErrorHover:$n}=h,hn=new Z.C(kt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:h.zIndexPopupBase+50,radiusItem:h.borderRadiusLG,itemBorderRadius:h.borderRadiusLG,radiusSubMenuItem:h.borderRadiusSM,subMenuItemBorderRadius:h.borderRadiusSM,colorItemText:se,itemColor:se,colorItemTextHover:se,itemHoverColor:se,colorItemTextHoverHorizontal:g,horizontalItemHoverColor:g,colorGroupTitle:ve,groupTitleColor:ve,colorItemTextSelected:g,itemSelectedColor:g,colorItemTextSelectedHorizontal:g,horizontalItemSelectedColor:g,colorItemBg:Ve,itemBg:Ve,colorItemBgHover:Le,itemHoverBg:Le,colorItemBgActive:rt,itemActiveBg:ce,colorSubItemBg:be,subMenuItemBg:be,colorItemBgSelected:ce,itemSelectedBg:ce,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:He,activeBarHeight:He,colorActiveBarBorderSize:ct,activeBarBorderWidth:ct,colorItemTextDisabled:k,itemDisabledColor:k,colorDangerItemText:B,dangerItemColor:B,colorDangerItemTextHover:B,dangerItemHoverColor:B,colorDangerItemTextSelected:B,dangerItemSelectedColor:B,colorDangerItemBgActive:Y,dangerItemActiveBg:Y,colorDangerItemBgSelected:Y,dangerItemSelectedBg:Y,itemMarginInline:h.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Qe,groupTitleLineHeight:Dt,collapsedWidth:Qe*2,popupBg:Ut,itemMarginBlock:qt,itemPaddingInline:Un,horizontalLineHeight:`${Qe*1.15}px`,iconSize:gn,iconMarginInlineEnd:en-gn,collapsedIconSize:gt,groupTitleFontSize:gn,darkItemDisabledColor:new Z.C(kt).setAlpha(.25).toRgbString(),darkItemColor:hn,darkDangerItemColor:B,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:kt,darkItemSelectedBg:g,darkDangerItemSelectedBg:B,darkItemHoverBg:"transparent",darkGroupTitleColor:hn,darkItemHoverColor:kt,darkDangerItemHoverColor:$n,darkDangerItemSelectedColor:kt,darkDangerItemActiveBg:B}},{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),In=function(m,c){var s={};for(var h in m)Object.prototype.hasOwnProperty.call(m,h)&&c.indexOf(h)<0&&(s[h]=m[h]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var g=0,h=Object.getOwnPropertySymbols(m);g<h.length;g++)c.indexOf(h[g])<0&&Object.prototype.propertyIsEnumerable.call(m,h[g])&&(s[h[g]]=m[h[g]]);return s},sr=(0,f.forwardRef)((m,c)=>{var s,h;const g=f.useContext(M.Z),B=g||{},{getPrefixCls:k,getPopupContainer:Y,direction:se,menu:ve}=f.useContext(A.E_),Ve=k(),{prefixCls:be,className:rt,style:ct,theme:He="light",expandIcon:ce,_internalDisableMenuItemTitleTooltip:Le,inlineCollapsed:Qe,siderCollapsed:Dt,items:Ut,children:qt,rootClassName:Un,mode:gn,selectable:en,onClick:gt,overflowedIndicatorPopupClassName:kt}=m,$n=In(m,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),hn=(0,Q.Z)($n,["collapsedWidth"]),Vn=F(Ut)||qt;(s=B.validator)===null||s===void 0||s.call(B,{mode:gn});const xn=(0,Pt.useEvent)(function(){var Dn;gt==null||gt.apply(void 0,arguments),(Dn=B.onClick)===null||Dn===void 0||Dn.call(B)}),Gn=B.mode||gn,An=en!=null?en:B.selectable,yn=f.useMemo(()=>Dt!==void 0?Dt:Qe,[Qe,Dt]),cr={horizontal:{motionName:`${Ve}-slide-up`},inline:(0,ae.Z)(Ve),other:{motionName:`${Ve}-zoom-big`}},wn=k("menu",be||B.prefixCls),[Gr,Yr]=ur(wn,!g),Lr=C()(`${wn}-${He}`,ve==null?void 0:ve.className,rt);let Yn;if(typeof ce=="function")Yn=ce;else if(ce===null||ce===!1)Yn=null;else if(B.expandIcon===null||B.expandIcon===!1)Yn=null;else{const Dn=ce!=null?ce:B.expandIcon;Yn=(0,ue.Tm)(Dn,{className:C()(`${wn}-submenu-expand-icon`,(0,ue.l$)(Dn)?(h=Dn.props)===null||h===void 0?void 0:h.className:"")})}const Xr=f.useMemo(()=>({prefixCls:wn,inlineCollapsed:yn||!1,direction:se,firstLevel:!0,theme:He,mode:Gn,disableMenuItemTitleTooltip:Le}),[wn,yn,se,Le,He]);return Gr(f.createElement(M.Z.Provider,{value:null},f.createElement(Ae.Provider,{value:Xr},f.createElement(d.ZP,Object.assign({getPopupContainer:Y,overflowedIndicator:f.createElement(ut.Z,null),overflowedIndicatorPopupClassName:C()(wn,`${wn}-${He}`,kt),mode:Gn,selectable:An,onClick:xn},hn,{inlineCollapsed:yn,style:Object.assign(Object.assign({},ve==null?void 0:ve.style),ct),className:Lr,prefixCls:wn,direction:se,defaultMotions:cr,expandIcon:Yn,ref:c,rootClassName:C()(Un,Yr)}),Vn))))});const En=(0,f.forwardRef)((m,c)=>{const s=(0,f.useRef)(null),h=f.useContext(R.D);return(0,f.useImperativeHandle)(c,()=>({menu:s.current,focus:g=>{var B;(B=s.current)===null||B===void 0||B.focus(g)}})),f.createElement(sr,Object.assign({ref:s},m,h))});En.Item=S,En.SubMenu=Mt,En.Divider=r,En.ItemGroup=d.BW;var pe=En},33507:function(wt,de){const u=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`}}});de.Z=u},67771:function(wt,de,u){u.d(de,{Qt:function(){return C},Uw:function(){return W},fJ:function(){return R},ly:function(){return A},oN:function(){return Oe}});var d=u(45930),f=u(93590);const R=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}}),C=new d.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),A=new d.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),V=new d.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),X=new d.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),r=new d.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),L=new d.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Q={"slide-up":{inKeyframes:R,outKeyframes:W},"slide-down":{inKeyframes:C,outKeyframes:A},"slide-left":{inKeyframes:V,outKeyframes:X},"slide-right":{inKeyframes:r,outKeyframes:L}},Oe=(ue,Ce)=>{const{antCls:Ae}=ue,G=`${Ae}-${Ce}`,{inKeyframes:S,outKeyframes:Be}=Q[Ce];return[(0,f.R)(G,S,Be,ue.motionDurationMid),{[`
|
|
${G}-enter,
|
|
${G}-appear
|
|
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:ue.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${G}-leave`]:{animationTimingFunction:ue.motionEaseInQuint}}]}},64582:function(wt,de,u){u.d(de,{Z:function(){return V}});var d=u(87462),f=u(67294),R={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=R,C=u(44327),A=function(r,L){return f.createElement(C.Z,(0,d.Z)({},r,{ref:L,icon:W}))},V=f.forwardRef(A)},55007:function(wt,de,u){u.d(de,{Z:function(){return V}});var d=u(87462),f=u(67294),R={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=R,C=u(44327),A=function(r,L){return f.createElement(C.Z,(0,d.Z)({},r,{ref:L,icon:W}))},V=f.forwardRef(A)},79269:function(wt,de,u){u.d(de,{Z:function(){return V}});var d=u(87462),f=u(67294),R={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=R,C=u(44327),A=function(r,L){return f.createElement(C.Z,(0,d.Z)({},r,{ref:L,icon:W}))},V=f.forwardRef(A)},52073:function(wt,de,u){u.d(de,{iz:function(){return vo},ck:function(){return Ir},BW:function(){return fo},sN:function(){return Ir},Wd:function(){return Kr},ZP:function(){return rl},Xl:function(){return be}});var d=u(87462),f=u(4942),R=u(1413),W=u(74902),C=u(97685),A=u(45987),V=u(94184),X=u.n(V),r=u(67294),L=u.t(r,2),Q=u(48555);function Oe(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var ue=Oe()?r.useLayoutEffect:r.useEffect,Ce=function(t,n){var o=r.useRef(!0);ue(function(){return t(o.current)},n),ue(function(){return o.current=!1,function(){o.current=!0}},[])},Ae=function(t,n){Ce(function(o){if(!o)return t()},n)},G=Ce,S=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Be=void 0;function Mt(e,t){var n=e.prefixCls,o=e.invalidate,a=e.item,l=e.renderItem,i=e.responsive,v=e.responsiveDisabled,y=e.registerSize,p=e.itemKey,w=e.className,E=e.style,D=e.children,$=e.display,I=e.order,T=e.component,N=T===void 0?"div":T,H=(0,A.Z)(e,S),P=i&&!$;function x(q){y(p,q)}r.useEffect(function(){return function(){x(null)}},[]);var b=l&&a!==Be?l(a):D,j;o||(j={opacity:P?0:1,height:P?0:Be,overflowY:P?"hidden":Be,order:i?I:Be,pointerEvents:P?"none":Be,position:P?"absolute":Be});var U={};P&&(U["aria-hidden"]=!0);var le=r.createElement(N,(0,d.Z)({className:X()(!o&&n,w),style:(0,R.Z)((0,R.Z)({},j),E)},U,H,{ref:t}),b);return i&&(le=r.createElement(Q.Z,{onResize:function(Ne){var te=Ne.offsetWidth;x(te)},disabled:v},le)),le}var ut=r.forwardRef(Mt);ut.displayName="Item";var Pt=ut;function ae(e){var t=r.useRef();t.current=e;var n=r.useCallback(function(){for(var o,a=arguments.length,l=new Array(a),i=0;i<a;i++)l[i]=arguments[i];return(o=t.current)===null||o===void 0?void 0:o.call.apply(o,[t].concat(l))},[]);return n}var M=u(73935),J=function(t){return+setTimeout(t,16)},_=function(t){return clearTimeout(t)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(J=function(t){return window.requestAnimationFrame(t)},_=function(t){return window.cancelAnimationFrame(t)});var F=0,Z=new Map;function fe(e){Z.delete(e)}var Se=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;F+=1;var o=F;function a(l){if(l===0)fe(o),t();else{var i=J(function(){a(l-1)});Z.set(o,i)}}return a(n),o};Se.cancel=function(e){var t=Z.get(e);return fe(t),_(t)};var nt=Se;function Ue(e){if(typeof MessageChannel=="undefined")nt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function Rt(){var e=r.useRef(null),t=function(o){e.current||(e.current=[],Ue(function(){(0,M.unstable_batchedUpdates)(function(){e.current.forEach(function(a){a()}),e.current=null})})),e.current.push(o)};return t}function st(e,t){var n=r.useState(t),o=(0,C.Z)(n,2),a=o[0],l=o[1],i=ae(function(v){e(function(){l(v)})});return[a,i]}var dn=r.createContext(null),_t=["component"],Nn=["className"],Ct=["className"],zt=function(t,n){var o=r.useContext(dn);if(!o){var a=t.component,l=a===void 0?"div":a,i=(0,A.Z)(t,_t);return r.createElement(l,(0,d.Z)({},i,{ref:n}))}var v=o.className,y=(0,A.Z)(o,Nn),p=t.className,w=(0,A.Z)(t,Ct);return r.createElement(dn.Provider,{value:null},r.createElement(Pt,(0,d.Z)({ref:n,className:X()(v,p)},y,w)))},Ft=r.forwardRef(zt);Ft.displayName="RawItem";var Cn=Ft,fn=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],At="responsive",vn="invalidate";function mn(e){return"+ ".concat(e.length," ...")}function Fn(e,t){var n=e.prefixCls,o=n===void 0?"rc-overflow":n,a=e.data,l=a===void 0?[]:a,i=e.renderItem,v=e.renderRawItem,y=e.itemKey,p=e.itemWidth,w=p===void 0?10:p,E=e.ssr,D=e.style,$=e.className,I=e.maxCount,T=e.renderRest,N=e.renderRawRest,H=e.suffix,P=e.component,x=P===void 0?"div":P,b=e.itemComponent,j=e.onVisibleChange,U=(0,A.Z)(e,fn),le=E==="full",q=Rt(),Ne=st(q,null),te=(0,C.Z)(Ne,2),Ee=te[0],he=te[1],me=Ee||0,$e=st(q,new Map),ne=(0,C.Z)($e,2),ie=ne[0],z=ne[1],ze=st(q,0),ge=(0,C.Z)(ze,2),We=ge[0],Kt=ge[1],ot=st(q,0),Ot=(0,C.Z)(ot,2),yt=Ot[0],dt=Ot[1],Ge=st(q,0),Ie=(0,C.Z)(Ge,2),xe=Ie[0],at=Ie[1],ft=(0,r.useState)(null),ke=(0,C.Z)(ft,2),it=ke[0],lt=ke[1],vt=(0,r.useState)(null),Zt=(0,C.Z)(vt,2),Fe=Zt[0],Ht=Zt[1],re=r.useMemo(function(){return Fe===null&&le?Number.MAX_SAFE_INTEGER:Fe||0},[Fe,Ee]),tn=(0,r.useState)(!1),St=(0,C.Z)(tn,2),Bt=St[0],Vt=St[1],Je="".concat(o,"-item"),Pn=Math.max(We,yt),Gt=I===At,De=l.length&&Gt,pn=I===vn,mt=De||typeof I=="number"&&l.length>I,je=(0,r.useMemo)(function(){var K=l;return De?Ee===null&&le?K=l:K=l.slice(0,Math.min(l.length,me/w)):typeof I=="number"&&(K=l.slice(0,I)),K},[l,w,Ee,I,De]),Yt=(0,r.useMemo)(function(){return De?l.slice(re+1):l.slice(je.length)},[l,je,De,re]),_e=(0,r.useCallback)(function(K,ee){var Te;return typeof y=="function"?y(K):(Te=y&&(K==null?void 0:K[y]))!==null&&Te!==void 0?Te:ee},[y]),nn=(0,r.useCallback)(i||function(K){return K},[i]);function qe(K,ee,Te){Fe===K&&(ee===void 0||ee===it)||(Ht(K),Te||(Vt(K<l.length-1),j==null||j(K)),ee!==void 0&<(ee))}function rn(K,ee){he(ee.clientWidth)}function It(K,ee){z(function(Te){var $t=new Map(Te);return ee===null?$t.delete(K):$t.set(K,ee),$t})}function Ke(K,ee){dt(ee),Kt(yt)}function Ye(K,ee){at(ee)}function Wt(K){return ie.get(_e(je[K],K))}G(function(){if(me&&typeof Pn=="number"&&je){var K=xe,ee=je.length,Te=ee-1;if(!ee){qe(0,null);return}for(var $t=0;$t<ee;$t+=1){var Xe=Wt($t);if(le&&(Xe=Xe||0),Xe===void 0){qe($t-1,void 0,!0);break}if(K+=Xe,Te===0&&K<=me||$t===Te-1&&K+Wt(Te)<=me){qe(Te,null);break}else if(K+Pn>me){qe($t-1,K-Xe-xe+yt);break}}H&&Wt(0)+xe>me&<(null)}},[me,ie,yt,xe,_e,je]);var Et=Bt&&!!Yt.length,bn={};it!==null&&De&&(bn={position:"absolute",left:it,top:0});var on={prefixCls:Je,responsive:De,component:b,invalidate:pn},Xt=v?function(K,ee){var Te=_e(K,ee);return r.createElement(dn.Provider,{key:Te,value:(0,R.Z)((0,R.Z)({},on),{},{order:ee,item:K,itemKey:Te,registerSize:It,display:ee<=re})},v(K,ee))}:function(K,ee){var Te=_e(K,ee);return r.createElement(Pt,(0,d.Z)({},on,{order:ee,key:Te,item:K,renderItem:nn,itemKey:Te,registerSize:It,display:ee<=re}))},we,Me={order:Et?re:Number.MAX_SAFE_INTEGER,className:"".concat(Je,"-rest"),registerSize:Ke,display:Et};if(N)N&&(we=r.createElement(dn.Provider,{value:(0,R.Z)((0,R.Z)({},on),Me)},N(Yt)));else{var Pe=T||mn;we=r.createElement(Pt,(0,d.Z)({},on,Me),typeof Pe=="function"?Pe(Yt):Pe)}var an=r.createElement(x,(0,d.Z)({className:X()(!pn&&o,$),style:D,ref:t},U),je.map(Xt),mt?we:null,H&&r.createElement(Pt,(0,d.Z)({},on,{responsive:Gt,responsiveDisabled:!De,order:re,className:"".concat(Je,"-suffix"),registerSize:Ye,display:!0,style:bn}),H));return Gt&&(an=r.createElement(Q.Z,{onResize:rn,disabled:!De},an)),an}var Sn=r.forwardRef(Fn);Sn.displayName="Overflow",Sn.Item=Cn,Sn.RESPONSIVE=At,Sn.INVALIDATE=vn;var ur=Sn,In=ur,nr=u(21770),sr=u(80334),En=u(91881),pe=r.createContext(null);function m(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function c(e){var t=r.useContext(pe);return m(t,e)}var s=u(56982),h=["children","locked"],g=r.createContext(null);function B(e,t){var n=(0,R.Z)({},e);return Object.keys(t).forEach(function(o){var a=t[o];a!==void 0&&(n[o]=a)}),n}function k(e){var t=e.children,n=e.locked,o=(0,A.Z)(e,h),a=r.useContext(g),l=(0,s.Z)(function(){return B(a,o)},[a,o],function(i,v){return!n&&(i[0]!==v[0]||!(0,En.Z)(i[1],v[1],!0))});return r.createElement(g.Provider,{value:l},t)}var Y=[],se=r.createContext(null);function ve(){return r.useContext(se)}var Ve=r.createContext(Y);function be(e){var t=r.useContext(Ve);return r.useMemo(function(){return e!==void 0?[].concat((0,W.Z)(t),[e]):t},[t,e])}var rt=r.createContext(null),ct=r.createContext({}),He=ct,ce=u(15105),Le=u(75164),Qe=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,o=t.height;if(n||o)return!0}if(e.getBoundingClientRect){var a=e.getBoundingClientRect(),l=a.width,i=a.height;if(l||i)return!0}}return!1};function Dt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Qe(e)){var n=e.nodeName.toLowerCase(),o=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),a=e.getAttribute("tabindex"),l=Number(a),i=null;return a&&!Number.isNaN(l)?i=l:o&&i===null&&(i=0),o&&e.disabled&&(i=null),i!==null&&(i>=0||t&&i<0)}return!1}function Ut(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=(0,W.Z)(e.querySelectorAll("*")).filter(function(o){return Dt(o,t)});return Dt(e,t)&&n.unshift(e),n}var qt=null;function Un(){qt=document.activeElement}function gn(){qt=null}function en(){if(qt)try{qt.focus()}catch(e){}}function gt(e,t){if(t.keyCode===9){var n=Ut(e),o=n[t.shiftKey?0:n.length-1],a=o===document.activeElement||e===document.activeElement;if(a){var l=n[t.shiftKey?n.length-1:0];l.focus(),t.preventDefault()}}}var kt=ce.Z.LEFT,$n=ce.Z.RIGHT,hn=ce.Z.UP,Vn=ce.Z.DOWN,xn=ce.Z.ENTER,Gn=ce.Z.ESC,An=ce.Z.HOME,yn=ce.Z.END,cr=[hn,Vn,kt,$n];function wn(e,t,n,o){var a,l,i,v,y="prev",p="next",w="children",E="parent";if(e==="inline"&&o===xn)return{inlineTrigger:!0};var D=(a={},(0,f.Z)(a,hn,y),(0,f.Z)(a,Vn,p),a),$=(l={},(0,f.Z)(l,kt,n?p:y),(0,f.Z)(l,$n,n?y:p),(0,f.Z)(l,Vn,w),(0,f.Z)(l,xn,w),l),I=(i={},(0,f.Z)(i,hn,y),(0,f.Z)(i,Vn,p),(0,f.Z)(i,xn,w),(0,f.Z)(i,Gn,E),(0,f.Z)(i,kt,n?w:E),(0,f.Z)(i,$n,n?E:w),i),T={inline:D,horizontal:$,vertical:I,inlineSub:D,horizontalSub:I,verticalSub:I},N=(v=T["".concat(e).concat(t?"":"Sub")])===null||v===void 0?void 0:v[o];switch(N){case y:return{offset:-1,sibling:!0};case p:return{offset:1,sibling:!0};case E:return{offset:-1,sibling:!1};case w:return{offset:1,sibling:!1};default:return null}}function Gr(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function Yr(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function Lr(e,t){var n=Ut(e,!0);return n.filter(function(o){return t.has(o)})}function Yn(e,t,n){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var a=Lr(e,t),l=a.length,i=a.findIndex(function(v){return n===v});return o<0?i===-1?i=l-1:i-=1:o>0&&(i+=1),i=(i+l)%l,a[i]}function Xr(e,t,n,o,a,l,i,v,y,p){var w=r.useRef(),E=r.useRef();E.current=t;var D=function(){Le.Z.cancel(w.current)};return r.useEffect(function(){return function(){D()}},[]),function($){var I=$.which;if([].concat(cr,[xn,Gn,An,yn]).includes(I)){var T,N,H,P=function(){T=new Set,N=new Map,H=new Map;var ne=l();return ne.forEach(function(ie){var z=document.querySelector("[data-menu-id='".concat(m(o,ie),"']"));z&&(T.add(z),H.set(z,ie),N.set(ie,z))}),T};P();var x=N.get(t),b=Yr(x,T),j=H.get(b),U=wn(e,i(j,!0).length===1,n,I);if(!U&&I!==An&&I!==yn)return;(cr.includes(I)||[An,yn].includes(I))&&$.preventDefault();var le=function(ne){if(ne){var ie=ne,z=ne.querySelector("a");z!=null&&z.getAttribute("href")&&(ie=z);var ze=H.get(ne);v(ze),D(),w.current=(0,Le.Z)(function(){E.current===ze&&ie.focus()})}};if([An,yn].includes(I)||U.sibling||!b){var q;!b||e==="inline"?q=a.current:q=Gr(b);var Ne,te=Lr(q,T);I===An?Ne=te[0]:I===yn?Ne=te[te.length-1]:Ne=Yn(q,T,b,U.offset),le(Ne)}else if(U.inlineTrigger)y(j);else if(U.offset>0)y(j,!0),D(),w.current=(0,Le.Z)(function(){P();var $e=b.getAttribute("aria-controls"),ne=document.getElementById($e),ie=Yn(ne,T);le(ie)},5);else if(U.offset<0){var Ee=i(j,!0),he=Ee[Ee.length-2],me=N.get(he);y(he,!1),le(me)}}p==null||p($)}}function Dn(e){Promise.resolve().then(e)}var Qr="__RC_UTIL_PATH_SPLIT__",So=function(t){return t.join(Qr)},ca=function(t){return t.split(Qr)},Jr="rc-menu-more";function da(){var e=r.useState({}),t=(0,C.Z)(e,2),n=t[1],o=(0,r.useRef)(new Map),a=(0,r.useRef)(new Map),l=r.useState([]),i=(0,C.Z)(l,2),v=i[0],y=i[1],p=(0,r.useRef)(0),w=(0,r.useRef)(!1),E=function(){w.current||n({})},D=(0,r.useCallback)(function(x,b){var j=So(b);a.current.set(j,x),o.current.set(x,j),p.current+=1;var U=p.current;Dn(function(){U===p.current&&E()})},[]),$=(0,r.useCallback)(function(x,b){var j=So(b);a.current.delete(j),o.current.delete(x)},[]),I=(0,r.useCallback)(function(x){y(x)},[]),T=(0,r.useCallback)(function(x,b){var j=o.current.get(x)||"",U=ca(j);return b&&v.includes(U[0])&&U.unshift(Jr),U},[v]),N=(0,r.useCallback)(function(x,b){return x.some(function(j){var U=T(j,!0);return U.includes(b)})},[T]),H=function(){var b=(0,W.Z)(o.current.keys());return v.length&&b.push(Jr),b},P=(0,r.useCallback)(function(x){var b="".concat(o.current.get(x)).concat(Qr),j=new Set;return(0,W.Z)(a.current.keys()).forEach(function(U){U.startsWith(b)&&j.add(a.current.get(U))}),j},[]);return r.useEffect(function(){return function(){w.current=!0}},[]),{registerPath:D,unregisterPath:$,refreshOverflowKeys:I,isSubPathKey:N,getKeyPath:T,getKeys:H,getSubPathKeys:P}}function Sr(e){var t=r.useRef(e);t.current=e;var n=r.useCallback(function(){for(var o,a=arguments.length,l=new Array(a),i=0;i<a;i++)l[i]=arguments[i];return(o=t.current)===null||o===void 0?void 0:o.call.apply(o,[t].concat(l))},[]);return e?n:void 0}var fa=Math.random().toFixed(5).toString().slice(2),Io=0;function va(e){var t=(0,nr.Z)(e,{value:e}),n=(0,C.Z)(t,2),o=n[0],a=n[1];return r.useEffect(function(){Io+=1;var l="".concat(fa,"-").concat(Io);a("rc-menu-uuid-".concat(l))},[]),o}var ma=u(15671),ga=u(43144),ha=u(60136),ya=u(51630),Eo=u(98423),_r=u(42550);function $o(e,t,n,o){var a=r.useContext(g),l=a.activeKey,i=a.onActive,v=a.onInactive,y={active:l===e};return t||(y.onMouseEnter=function(p){n==null||n({key:e,domEvent:p}),i(e)},y.onMouseLeave=function(p){o==null||o({key:e,domEvent:p}),v(e)}),y}function xo(e){var t=r.useContext(g),n=t.mode,o=t.rtl,a=t.inlineIndent;if(n!=="inline")return null;var l=e;return o?{paddingRight:l*a}:{paddingLeft:l*a}}function wo(e){var t=e.icon,n=e.props,o=e.children,a;return t===null||t===!1?null:(typeof t=="function"?a=r.createElement(t,(0,R.Z)({},n)):typeof t!="boolean"&&(a=t),a||o||null)}var pa=["item"];function zr(e){var t=e.item,n=(0,A.Z)(e,pa);return Object.defineProperty(n,"item",{get:function(){return(0,sr.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var ba=["title","attribute","elementRef"],Ca=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Sa=["active"],Ia=function(e){(0,ha.Z)(n,e);var t=(0,ya.Z)(n);function n(){return(0,ma.Z)(this,n),t.apply(this,arguments)}return(0,ga.Z)(n,[{key:"render",value:function(){var a=this.props,l=a.title,i=a.attribute,v=a.elementRef,y=(0,A.Z)(a,ba),p=(0,Eo.Z)(y,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,sr.ZP)(!i,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),r.createElement(In.Item,(0,d.Z)({},i,{title:typeof l=="string"?l:void 0},p,{ref:v}))}}]),n}(r.Component),Ea=r.forwardRef(function(e,t){var n,o=e.style,a=e.className,l=e.eventKey,i=e.warnKey,v=e.disabled,y=e.itemIcon,p=e.children,w=e.role,E=e.onMouseEnter,D=e.onMouseLeave,$=e.onClick,I=e.onKeyDown,T=e.onFocus,N=(0,A.Z)(e,Ca),H=c(l),P=r.useContext(g),x=P.prefixCls,b=P.onItemClick,j=P.disabled,U=P.overflowDisabled,le=P.itemIcon,q=P.selectedKeys,Ne=P.onActive,te=r.useContext(He),Ee=te._internalRenderMenuItem,he="".concat(x,"-item"),me=r.useRef(),$e=r.useRef(),ne=j||v,ie=(0,_r.x1)(t,$e),z=be(l),ze=function(ke){return{key:l,keyPath:(0,W.Z)(z).reverse(),item:me.current,domEvent:ke}},ge=y||le,We=$o(l,ne,E,D),Kt=We.active,ot=(0,A.Z)(We,Sa),Ot=q.includes(l),yt=xo(z.length),dt=function(ke){if(!ne){var it=ze(ke);$==null||$(zr(it)),b(it)}},Ge=function(ke){if(I==null||I(ke),ke.which===ce.Z.ENTER){var it=ze(ke);$==null||$(zr(it)),b(it)}},Ie=function(ke){Ne(l),T==null||T(ke)},xe={};e.role==="option"&&(xe["aria-selected"]=Ot);var at=r.createElement(Ia,(0,d.Z)({ref:me,elementRef:ie,role:w===null?"none":w||"menuitem",tabIndex:v?null:-1,"data-menu-id":U&&H?null:H},N,ot,xe,{component:"li","aria-disabled":v,style:(0,R.Z)((0,R.Z)({},yt),o),className:X()(he,(n={},(0,f.Z)(n,"".concat(he,"-active"),Kt),(0,f.Z)(n,"".concat(he,"-selected"),Ot),(0,f.Z)(n,"".concat(he,"-disabled"),ne),n),a),onClick:dt,onKeyDown:Ge,onFocus:Ie}),p,r.createElement(wo,{props:(0,R.Z)((0,R.Z)({},e),{},{isSelected:Ot}),icon:ge}));return Ee&&(at=Ee(at,e,{selected:Ot})),at});function $a(e,t){var n=e.eventKey,o=ve(),a=be(n);return r.useEffect(function(){if(o)return o.registerPath(n,a),function(){o.unregisterPath(n,a)}},[a]),o?null:r.createElement(Ea,(0,d.Z)({},e,{ref:t}))}var Ir=r.forwardRef($a),xa=["className","children"],wa=function(t,n){var o=t.className,a=t.children,l=(0,A.Z)(t,xa),i=r.useContext(g),v=i.prefixCls,y=i.mode,p=i.rtl;return r.createElement("ul",(0,d.Z)({className:X()(v,p&&"".concat(v,"-rtl"),"".concat(v,"-sub"),"".concat(v,"-").concat(y==="inline"?"inline":"vertical"),o),role:"menu"},l,{"data-menu-list":!0,ref:n}),a)},Mo=r.forwardRef(wa);Mo.displayName="SubMenuList";var Po=Mo,Ma=u(50344);function qr(e,t){return(0,Ma.Z)(e).map(function(n,o){if(r.isValidElement(n)){var a,l,i=n.key,v=(a=(l=n.props)===null||l===void 0?void 0:l.eventKey)!==null&&a!==void 0?a:i,y=v==null;y&&(v="tmp_key-".concat([].concat((0,W.Z)(t),[o]).join("-")));var p={key:v,eventKey:v};return r.cloneElement(n,p)}return n})}function Er(e){"@babel/helpers - typeof";return Er=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Er(e)}function Pa(e,t){if(Er(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t||"default");if(Er(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ra(e){var t=Pa(e,"string");return Er(t)=="symbol"?t:t+""}function Oa(e,t,n){return(t=Ra(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ro(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,o)}return n}function jt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ro(Object(n),!0).forEach(function(o){Oa(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ro(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function Ba(e){if(Array.isArray(e))return e}function Na(e,t){var n=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var o,a,l,i,v=[],y=!0,p=!1;try{if(l=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;y=!1}else for(;!(y=(o=l.call(n)).done)&&(v.push(o.value),v.length!==t);y=!0);}catch(w){p=!0,a=w}finally{try{if(!y&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(p)throw a}}return v}}function eo(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function Oo(e,t){if(e){if(typeof e=="string")return eo(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?eo(e,t):void 0}}function Aa(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ht(e,t){return Ba(e)||Na(e,t)||Oo(e,t)||Aa()}function Da(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.includes(o))continue;n[o]=e[o]}return n}function Ta(e,t){if(e==null)return{};var n,o,a=Da(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)n=l[o],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var kr=u(98924),Za=r.createContext(null),Bo=Za,to=u(8410),No=[];function La(e,t){var n=r.useState(function(){if(!(0,kr.Z)())return null;var I=document.createElement("div");return I}),o=(0,C.Z)(n,1),a=o[0],l=r.useRef(!1),i=r.useContext(Bo),v=r.useState(No),y=(0,C.Z)(v,2),p=y[0],w=y[1],E=i||(l.current?void 0:function(I){w(function(T){var N=[I].concat((0,W.Z)(T));return N})});function D(){a.parentElement||document.body.appendChild(a),l.current=!0}function $(){var I;(I=a.parentElement)===null||I===void 0||I.removeChild(a),l.current=!1}return(0,to.Z)(function(){return e?i?i(D):D():$(),$},[e]),(0,to.Z)(function(){p.length&&(p.forEach(function(I){return I()}),w(No))},[p]),[a,E]}var no=u(48981),za=u(74204);function ka(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var ja="rc-util-locker-".concat(Date.now()),Ao=0;function Ka(e){var t=!!e,n=r.useState(function(){return Ao+=1,"".concat(ja,"_").concat(Ao)}),o=(0,C.Z)(n,1),a=o[0];(0,to.Z)(function(){if(t){var l=(0,za.o)(document.body).width,i=ka();(0,no.hq)(`
|
|
html body {
|
|
overflow-y: hidden;
|
|
`.concat(i?"width: calc(100% - ".concat(l,"px);"):"",`
|
|
}`),a)}else(0,no.jL)(a);return function(){(0,no.jL)(a)}},[t,a])}var Do=!1;function Ha(e){return typeof e=="boolean"&&(Do=e),Do}var To=function(t){return t===!1?!1:!(0,kr.Z)()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},Wa=r.forwardRef(function(e,t){var n=e.open,o=e.autoLock,a=e.getContainer,l=e.debug,i=e.autoDestroy,v=i===void 0?!0:i,y=e.children,p=r.useState(n),w=(0,C.Z)(p,2),E=w[0],D=w[1],$=E||n;r.useEffect(function(){(v||n)&&D(n)},[n,v]);var I=r.useState(function(){return To(a)}),T=(0,C.Z)(I,2),N=T[0],H=T[1];r.useEffect(function(){var he=To(a);H(he!=null?he:null)});var P=La($&&!N,l),x=(0,C.Z)(P,2),b=x[0],j=x[1],U=N!=null?N:b;Ka(o&&n&&(0,kr.Z)()&&(U===b||U===document.body));var le=null;if(y&&(0,_r.Yr)(y)&&t){var q=y;le=q.ref}var Ne=(0,_r.x1)(le,t);if(!$||!(0,kr.Z)()||N===void 0)return null;var te=U===!1||Ha(),Ee=y;return t&&(Ee=r.cloneElement(y,{ref:Ne})),r.createElement(Bo.Provider,{value:j},te?Ee:(0,M.createPortal)(Ee,U))}),Fa=Wa,Zo=Fa;function $r(e){return e instanceof HTMLElement||e instanceof SVGElement}function Ua(e){return e&&_typeof(e)==="object"&&$r(e.nativeElement)?e.nativeElement:$r(e)?e:null}function ol(e){var t=Ua(e);if(t)return t;if(e instanceof React.Component){var n;return(n=ReactDOM.findDOMNode)===null||n===void 0?void 0:n.call(ReactDOM,e)}return null}function Lo(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function Va(e){return Lo(e)instanceof ShadowRoot}function ro(e){return Va(e)?Lo(e):null}function rr(e){var t=r.useRef();t.current=e;var n=r.useCallback(function(){for(var o,a=arguments.length,l=new Array(a),i=0;i<a;i++)l[i]=arguments[i];return(o=t.current)===null||o===void 0?void 0:o.call.apply(o,[t].concat(l))},[]);return n}function Ga(e){if(Array.isArray(e))return e}function Ya(e,t){var n=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var o,a,l,i,v=[],y=!0,p=!1;try{if(l=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;y=!1}else for(;!(y=(o=l.call(n)).done)&&(v.push(o.value),v.length!==t);y=!0);}catch(w){p=!0,a=w}finally{try{if(!y&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(p)throw a}}return v}}function zo(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function Xa(e,t){if(e){if(typeof e=="string")return zo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zo(e,t)}}function Qa(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ja(e,t){return Ga(e)||Ya(e,t)||Xa(e,t)||Qa()}function or(e){"@babel/helpers - typeof";return or=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},or(e)}function _a(e,t){if(or(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t||"default");if(or(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qa(e){var t=_a(e,"string");return or(t)==="symbol"?t:String(t)}function ei(e,t,n){return t=qa(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ko(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,o)}return n}function ti(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ko(Object(n),!0).forEach(function(o){ei(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ko(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function ni(){var e=ti({},L);return e.useId}var jo=0;function al(){}var Ko=ni(),ri=Ko?function(t){var n=Ko();return t||n}:function(t){var n=r.useState("ssr-id"),o=Ja(n,2),a=o[0],l=o[1];return r.useEffect(function(){var i=jo;jo+=1,l("rc_unique_".concat(i))},[]),t||a};function oi(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Ho=oi()?r.useLayoutEffect:r.useEffect,Wo=function(t,n){var o=r.useRef(!0);Ho(function(){return t(o.current)},n),Ho(function(){return o.current=!1,function(){o.current=!0}},[])},il=function(t,n){Wo(function(o){if(!o)return t()},n)},Mn=Wo,ai=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};function jr(){return jr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},jr.apply(null,arguments)}var oo=u(62874),ao=u(8399);function ii(e,t,n){var o=r.useRef({});return(!("value"in o.current)||n(o.current.condition,t))&&(o.current.value=e(),o.current.condition=t),o.current.value}var li=Symbol.for("react.element"),ui=Symbol.for("react.transitional.element"),si=Symbol.for("react.fragment");function ci(e){return e&&or(e)==="object"&&(e.$$typeof===li||e.$$typeof===ui)&&e.type===si}var Fo=function(t,n){typeof t=="function"?t(n):or(t)==="object"&&t&&"current"in t&&(t.current=n)},Uo=function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];var a=n.filter(Boolean);return a.length<=1?a[0]:function(l){n.forEach(function(i){Fo(i,l)})}},di=function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return ii(function(){return Uo.apply(void 0,n)},n,function(a,l){return a.length!==l.length||a.every(function(i,v){return i!==l[v]})})},Vo=function(t){var n,o;if(!t)return!1;if(io(t)&&t.props.propertyIsEnumerable("ref"))return!0;var a=(0,ao.isMemo)(t)?t.type.type:t.type;return!(typeof a=="function"&&!((n=a.prototype)!==null&&n!==void 0&&n.render)&&a.$$typeof!==ao.ForwardRef||typeof t=="function"&&!((o=t.prototype)!==null&&o!==void 0&&o.render)&&t.$$typeof!==ao.ForwardRef)};function io(e){return(0,r.isValidElement)(e)&&!ci(e)}var ll=function(t){return io(t)&&Vo(t)},ul=function(t){if(t&&io(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null};function fi(e){var t=e.prefixCls,n=e.align,o=e.arrow,a=e.arrowPos,l=o||{},i=l.className,v=l.content,y=a.x,p=y===void 0?0:y,w=a.y,E=w===void 0?0:w,D=r.useRef();if(!n||!n.points)return null;var $={position:"absolute"};if(n.autoArrow!==!1){var I=n.points[0],T=n.points[1],N=I[0],H=I[1],P=T[0],x=T[1];N===P||!["t","b"].includes(N)?$.top=E:N==="t"?$.top=0:$.bottom=0,H===x||!["l","r"].includes(H)?$.left=p:H==="l"?$.left=0:$.right=0}return r.createElement("div",{ref:D,className:X()("".concat(t,"-arrow"),i),style:$},v)}function vi(e){var t=e.prefixCls,n=e.open,o=e.zIndex,a=e.mask,l=e.motion;return a?r.createElement(oo.Z,jr({},l,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(i){var v=i.className;return r.createElement("div",{style:{zIndex:o},className:X()("".concat(t,"-mask"),v)})}):null}var mi=r.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),gi=mi,hi=r.forwardRef(function(e,t){var n=e.popup,o=e.className,a=e.prefixCls,l=e.style,i=e.target,v=e.onVisibleChanged,y=e.open,p=e.keepDom,w=e.fresh,E=e.onClick,D=e.mask,$=e.arrow,I=e.arrowPos,T=e.align,N=e.motion,H=e.maskMotion,P=e.forceRender,x=e.getPopupContainer,b=e.autoDestroy,j=e.portal,U=e.zIndex,le=e.onMouseEnter,q=e.onMouseLeave,Ne=e.onPointerEnter,te=e.ready,Ee=e.offsetX,he=e.offsetY,me=e.offsetR,$e=e.offsetB,ne=e.onAlign,ie=e.onPrepare,z=e.stretch,ze=e.targetWidth,ge=e.targetHeight,We=typeof n=="function"?n():n,Kt=y||p,ot=(x==null?void 0:x.length)>0,Ot=r.useState(!x||!ot),yt=ht(Ot,2),dt=yt[0],Ge=yt[1];if(Mn(function(){!dt&&ot&&i&&Ge(!0)},[dt,ot,i]),!dt)return null;var Ie="auto",xe={left:"-1000vw",top:"-1000vh",right:Ie,bottom:Ie};if(te||!y){var at,ft=T.points,ke=T.dynamicInset||((at=T._experimental)===null||at===void 0?void 0:at.dynamicInset),it=ke&&ft[0][1]==="r",lt=ke&&ft[0][0]==="b";it?(xe.right=me,xe.left=Ie):(xe.left=Ee,xe.right=Ie),lt?(xe.bottom=$e,xe.top=Ie):(xe.top=he,xe.bottom=Ie)}var vt={};return z&&(z.includes("height")&&ge?vt.height=ge:z.includes("minHeight")&&ge&&(vt.minHeight=ge),z.includes("width")&&ze?vt.width=ze:z.includes("minWidth")&&ze&&(vt.minWidth=ze)),y||(vt.pointerEvents="none"),r.createElement(j,{open:P||Kt,getContainer:x&&function(){return x(i)},autoDestroy:b},r.createElement(vi,{prefixCls:a,open:y,zIndex:U,mask:D,motion:H}),r.createElement(Q.Z,{onResize:ne,disabled:!y},function(Zt){return r.createElement(oo.Z,jr({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:P,leavedClassName:"".concat(a,"-hidden")},N,{onAppearPrepare:ie,onEnterPrepare:ie,visible:y,onVisibleChanged:function(Ht){var re;N==null||(re=N.onVisibleChanged)===null||re===void 0||re.call(N,Ht),v(Ht)}}),function(Fe,Ht){var re=Fe.className,tn=Fe.style,St=X()(a,re,o);return r.createElement("div",{ref:Uo(Zt,t,Ht),className:St,style:jt(jt(jt(jt({"--arrow-x":"".concat(I.x||0,"px"),"--arrow-y":"".concat(I.y||0,"px")},xe),vt),tn),{},{boxSizing:"border-box",zIndex:U},l),onMouseEnter:le,onMouseLeave:q,onPointerEnter:Ne,onClick:E},$&&r.createElement(fi,{prefixCls:a,arrow:$,arrowPos:I,align:T}),r.createElement(gi,{cache:!y&&!w},We))})}))}),yi=hi,pi=r.forwardRef(function(e,t){var n=e.children,o=e.getTriggerDOMNode,a=Vo(n),l=r.useCallback(function(v){Fo(t,o?o(v):v)},[o]),i=di(l,n.ref);return a?r.cloneElement(n,{ref:i}):n}),bi=pi,Ci=r.createContext(null),Go=Ci;function Yo(e){return e?Array.isArray(e)?e:[e]:[]}function Si(e,t,n,o){return r.useMemo(function(){var a=Yo(n!=null?n:t),l=Yo(o!=null?o:t),i=new Set(a),v=new Set(l);return e&&(i.has("hover")&&(i.delete("hover"),i.add("click")),v.has("hover")&&(v.delete("hover"),v.add("click"))),[i,v]},[e,t,n,o])}var Ii=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,o=t.height;if(n||o)return!0}if(e.getBoundingClientRect){var a=e.getBoundingClientRect(),l=a.width,i=a.height;if(l||i)return!0}}return!1};function Ei(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function $i(e,t,n,o){for(var a=n.points,l=Object.keys(e),i=0;i<l.length;i+=1){var v,y=l[i];if(Ei((v=e[y])===null||v===void 0?void 0:v.points,a,o))return"".concat(t,"-placement-").concat(y)}return""}function Xo(e,t,n,o){return t||(n?{motionName:"".concat(e,"-").concat(n)}:o?{motionName:o}:null)}function xr(e){return e.ownerDocument.defaultView}function lo(e){for(var t=[],n=e==null?void 0:e.parentElement,o=["hidden","scroll","clip","auto"];n;){var a=xr(n).getComputedStyle(n),l=a.overflowX,i=a.overflowY,v=a.overflow;[l,i,v].some(function(y){return o.includes(y)})&&t.push(n),n=n.parentElement}return t}function wr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Mr(e){return wr(parseFloat(e),0)}function Qo(e,t){var n=jt({},e);return(t||[]).forEach(function(o){if(!(o instanceof HTMLBodyElement||o instanceof HTMLHtmlElement)){var a=xr(o).getComputedStyle(o),l=a.overflow,i=a.overflowClipMargin,v=a.borderTopWidth,y=a.borderBottomWidth,p=a.borderLeftWidth,w=a.borderRightWidth,E=o.getBoundingClientRect(),D=o.offsetHeight,$=o.clientHeight,I=o.offsetWidth,T=o.clientWidth,N=Mr(v),H=Mr(y),P=Mr(p),x=Mr(w),b=wr(Math.round(E.width/I*1e3)/1e3),j=wr(Math.round(E.height/D*1e3)/1e3),U=(I-T-P-x)*b,le=(D-$-N-H)*j,q=N*j,Ne=H*j,te=P*b,Ee=x*b,he=0,me=0;if(l==="clip"){var $e=Mr(i);he=$e*b,me=$e*j}var ne=E.x+te-he,ie=E.y+q-me,z=ne+E.width+2*he-te-Ee-U,ze=ie+E.height+2*me-q-Ne-le;n.left=Math.max(n.left,ne),n.top=Math.max(n.top,ie),n.right=Math.min(n.right,z),n.bottom=Math.min(n.bottom,ze)}}),n}function Jo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),o=n.match(/^(.*)\%$/);return o?e*(parseFloat(o[1])/100):parseFloat(n)}function _o(e,t){var n=t||[],o=ht(n,2),a=o[0],l=o[1];return[Jo(e.width,a),Jo(e.height,l)]}function qo(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function dr(e,t){var n=t[0],o=t[1],a,l;return n==="t"?l=e.y:n==="b"?l=e.y+e.height:l=e.y+e.height/2,o==="l"?a=e.x:o==="r"?a=e.x+e.width:a=e.x+e.width/2,{x:a,y:l}}function Xn(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(o,a){return a===t?n[o]||"c":o}).join("")}function xi(e,t,n,o,a,l,i){var v=r.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[o]||{}}),y=ht(v,2),p=y[0],w=y[1],E=r.useRef(0),D=r.useMemo(function(){return t?lo(t):[]},[t]),$=r.useRef({}),I=function(){$.current={}};e||I();var T=rr(function(){if(t&&n&&e){let cn=function(Wn,lr){var br=arguments.length>2&&arguments[2]!==void 0?arguments[2]:tn,Cr=ge.x+Wn,Tr=ge.y+lr,Zr=Cr+xe,Fr=Tr+Ie,ho=Math.max(Cr,br.left),yo=Math.max(Tr,br.top),po=Math.min(Zr,br.right),bo=Math.min(Fr,br.bottom);return Math.max(0,(po-ho)*(bo-yo))},Wr=function(){Rn=ge.y+Me,ln=Rn+Ie,Lt=ge.x+we,Zn=Lt+xe};var P,x,b=t,j=b.ownerDocument,U=xr(b),le=U.getComputedStyle(b),q=le.width,Ne=le.height,te=le.position,Ee=b.style.left,he=b.style.top,me=b.style.right,$e=b.style.bottom,ne=jt(jt({},a[o]),l),ie=j.createElement("div");(P=b.parentElement)===null||P===void 0||P.appendChild(ie),ie.style.left="".concat(b.offsetLeft,"px"),ie.style.top="".concat(b.offsetTop,"px"),ie.style.position=te,ie.style.height="".concat(b.offsetHeight,"px"),ie.style.width="".concat(b.offsetWidth,"px"),b.style.left="0",b.style.top="0",b.style.right="auto",b.style.bottom="auto";var z;if(Array.isArray(n))z={x:n[0],y:n[1],width:0,height:0};else{var ze=n.getBoundingClientRect();z={x:ze.x,y:ze.y,width:ze.width,height:ze.height}}var ge=b.getBoundingClientRect(),We=j.documentElement,Kt=We.clientWidth,ot=We.clientHeight,Ot=We.scrollWidth,yt=We.scrollHeight,dt=We.scrollTop,Ge=We.scrollLeft,Ie=ge.height,xe=ge.width,at=z.height,ft=z.width,ke={left:0,top:0,right:Kt,bottom:ot},it={left:-Ge,top:-dt,right:Ot-Ge,bottom:yt-dt},lt=ne.htmlRegion,vt="visible",Zt="visibleFirst";lt!=="scroll"&<!==Zt&&(lt=vt);var Fe=lt===Zt,Ht=Qo(it,D),re=Qo(ke,D),tn=lt===vt?re:Ht,St=Fe?re:tn;b.style.left="auto",b.style.top="auto",b.style.right="0",b.style.bottom="0";var Bt=b.getBoundingClientRect();b.style.left=Ee,b.style.top=he,b.style.right=me,b.style.bottom=$e,(x=b.parentElement)===null||x===void 0||x.removeChild(ie);var Vt=wr(Math.round(xe/parseFloat(q)*1e3)/1e3),Je=wr(Math.round(Ie/parseFloat(Ne)*1e3)/1e3);if(Vt===0||Je===0||$r(n)&&!Ii(n))return;var Pn=ne.offset,Gt=ne.targetOffset,De=_o(ge,Pn),pn=ht(De,2),mt=pn[0],je=pn[1],Yt=_o(z,Gt),_e=ht(Yt,2),nn=_e[0],qe=_e[1];z.x-=nn,z.y-=qe;var rn=ne.points||[],It=ht(rn,2),Ke=It[0],Ye=It[1],Wt=qo(Ye),Et=qo(Ke),bn=dr(z,Wt),on=dr(ge,Et),Xt=jt({},ne),we=bn.x-on.x+mt,Me=bn.y-on.y+je,Pe=cn(we,Me),an=cn(we,Me,re),K=dr(z,["t","l"]),ee=dr(ge,["t","l"]),Te=dr(z,["b","r"]),$t=dr(ge,["b","r"]),Xe=ne.overflow||{},Rr=Xe.adjustX,vr=Xe.adjustY,Qn=Xe.shiftX,Jn=Xe.shiftY,Tn=function(lr){return typeof lr=="boolean"?lr:lr>=0},Rn,ln,Lt,Zn;Wr();var _n=Tn(vr),ar=Et[0]===Wt[0];if(_n&&Et[0]==="t"&&(ln>St.bottom||$.current.bt)){var On=Me;ar?On-=Ie-at:On=K.y-$t.y-je;var Ln=cn(we,On),Or=cn(we,On,re);Ln>Pe||Ln===Pe&&(!Fe||Or>=an)?($.current.bt=!0,Me=On,je=-je,Xt.points=[Xn(Et,0),Xn(Wt,0)]):$.current.bt=!1}if(_n&&Et[0]==="b"&&(Rn<St.top||$.current.tb)){var pt=Me;ar?pt+=Ie-at:pt=Te.y-ee.y-je;var mr=cn(we,pt),Br=cn(we,pt,re);mr>Pe||mr===Pe&&(!Fe||Br>=an)?($.current.tb=!0,Me=pt,je=-je,Xt.points=[Xn(Et,0),Xn(Wt,0)]):$.current.tb=!1}var gr=Tn(Rr),ir=Et[1]===Wt[1];if(gr&&Et[1]==="l"&&(Zn>St.right||$.current.rl)){var Jt=we;ir?Jt-=xe-ft:Jt=K.x-$t.x-mt;var qn=cn(Jt,Me),Nr=cn(Jt,Me,re);qn>Pe||qn===Pe&&(!Fe||Nr>=an)?($.current.rl=!0,we=Jt,mt=-mt,Xt.points=[Xn(Et,1),Xn(Wt,1)]):$.current.rl=!1}if(gr&&Et[1]==="r"&&(Lt<St.left||$.current.lr)){var zn=we;ir?zn+=xe-ft:zn=Te.x-ee.x-mt;var hr=cn(zn,Me),kn=cn(zn,Me,re);hr>Pe||hr===Pe&&(!Fe||kn>=an)?($.current.lr=!0,we=zn,mt=-mt,Xt.points=[Xn(Et,1),Xn(Wt,1)]):$.current.lr=!1}Wr();var Qt=Qn===!0?0:Qn;typeof Qt=="number"&&(Lt<re.left&&(we-=Lt-re.left-mt,z.x+ft<re.left+Qt&&(we+=z.x-re.left+ft-Qt)),Zn>re.right&&(we-=Zn-re.right-mt,z.x>re.right-Qt&&(we+=z.x-re.right+Qt)));var jn=Jn===!0?0:Jn;typeof jn=="number"&&(Rn<re.top&&(Me-=Rn-re.top-je,z.y+at<re.top+jn&&(Me+=z.y-re.top+at-jn)),ln>re.bottom&&(Me-=ln-re.bottom-je,z.y>re.bottom-jn&&(Me+=z.y-re.bottom+jn)));var er=ge.x+we,tr=er+xe,un=ge.y+Me,yr=un+Ie,Kn=z.x,Bn=Kn+ft,pr=z.y,Ar=pr+at,Ze=Math.max(er,Kn),ye=Math.min(tr,Bn),Re=(Ze+ye)/2,xt=Re-er,Nt=Math.max(un,pr),sn=Math.min(yr,Ar),Hn=(Nt+sn)/2,Dr=Hn-un;i==null||i(t,Xt);var Hr=Bt.right-ge.x-(we+ge.width),go=Bt.bottom-ge.y-(Me+ge.height);w({ready:!0,offsetX:we/Vt,offsetY:Me/Je,offsetR:Hr/Vt,offsetB:go/Je,arrowX:xt/Vt,arrowY:Dr/Je,scaleX:Vt,scaleY:Je,align:Xt})}}),N=function(){E.current+=1;var x=E.current;Promise.resolve().then(function(){E.current===x&&T()})},H=function(){w(function(x){return jt(jt({},x),{},{ready:!1})})};return Mn(H,[o]),Mn(function(){e||H()},[e]),[p.ready,p.offsetX,p.offsetY,p.offsetR,p.offsetB,p.arrowX,p.arrowY,p.scaleX,p.scaleY,p.align,N]}function wi(e){if(Array.isArray(e))return eo(e)}function Mi(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Pi(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ea(e){return wi(e)||Mi(e)||Oo(e)||Pi()}function Ri(e,t,n,o,a){Mn(function(){if(e&&t&&n){let E=function(){o(),a()};var l=t,i=n,v=lo(l),y=lo(i),p=xr(i),w=new Set([p].concat(ea(v),ea(y)));return w.forEach(function(D){D.addEventListener("scroll",E,{passive:!0})}),p.addEventListener("resize",E,{passive:!0}),o(),function(){w.forEach(function(D){D.removeEventListener("scroll",E),p.removeEventListener("resize",E)})}}},[e,t,n])}var uo={},Oi=[],Bi=function(t){Oi.push(t)};function Ni(e,t){if(0)var n}function Ai(e,t){if(0)var n}function Di(){uo={}}function ta(e,t,n){!t&&!uo[n]&&(e(!1,n),uo[n]=!0)}function so(e,t){ta(Ni,e,t)}function Ti(e,t){ta(Ai,e,t)}so.preMessage=Bi,so.resetWarned=Di,so.noteOnce=Ti;var sl=null,na=function(t){return+setTimeout(t,16)},ra=function(t){return clearTimeout(t)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(na=function(t){return window.requestAnimationFrame(t)},ra=function(t){return window.cancelAnimationFrame(t)});var oa=0,co=new Map;function aa(e){co.delete(e)}var ia=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;oa+=1;var o=oa;function a(l){if(l===0)aa(o),t();else{var i=na(function(){a(l-1)});co.set(o,i)}}return a(n),o};ia.cancel=function(e){var t=co.get(e);return aa(e),ra(t)};var la=ia;function Zi(e,t,n,o,a,l,i,v){var y=r.useRef(e),p=r.useRef(!1);y.current!==e&&(p.current=!0,y.current=e),r.useEffect(function(){var w=la(function(){p.current=!1});return function(){la.cancel(w)}},[e]),r.useEffect(function(){if(t&&o&&(!a||l)){var w=function(){var te=!1,Ee=function($e){var ne=$e.target;te=i(ne)},he=function($e){var ne=$e.target;!p.current&&y.current&&!te&&!i(ne)&&v(!1)};return[Ee,he]},E=w(),D=ht(E,2),$=D[0],I=D[1],T=w(),N=ht(T,2),H=N[0],P=N[1],x=xr(o);x.addEventListener("mousedown",$,!0),x.addEventListener("click",I,!0),x.addEventListener("contextmenu",I,!0);var b=ro(n);if(b&&(b.addEventListener("mousedown",H,!0),b.addEventListener("click",P,!0),b.addEventListener("contextmenu",P,!0)),0)var j,U,le,q;return function(){x.removeEventListener("mousedown",$,!0),x.removeEventListener("click",I,!0),x.removeEventListener("contextmenu",I,!0),b&&(b.removeEventListener("mousedown",H,!0),b.removeEventListener("click",P,!0),b.removeEventListener("contextmenu",P,!0))}}},[t,n,o,a,l])}var Li=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function zi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Zo,t=r.forwardRef(function(n,o){var a=n.prefixCls,l=a===void 0?"rc-trigger-popup":a,i=n.children,v=n.action,y=v===void 0?"hover":v,p=n.showAction,w=n.hideAction,E=n.popupVisible,D=n.defaultPopupVisible,$=n.onPopupVisibleChange,I=n.afterPopupVisibleChange,T=n.mouseEnterDelay,N=n.mouseLeaveDelay,H=N===void 0?.1:N,P=n.focusDelay,x=n.blurDelay,b=n.mask,j=n.maskClosable,U=j===void 0?!0:j,le=n.getPopupContainer,q=n.forceRender,Ne=n.autoDestroy,te=n.destroyPopupOnHide,Ee=n.popup,he=n.popupClassName,me=n.popupStyle,$e=n.popupPlacement,ne=n.builtinPlacements,ie=ne===void 0?{}:ne,z=n.popupAlign,ze=n.zIndex,ge=n.stretch,We=n.getPopupClassNameFromAlign,Kt=n.fresh,ot=n.alignPoint,Ot=n.onPopupClick,yt=n.onPopupAlign,dt=n.arrow,Ge=n.popupMotion,Ie=n.maskMotion,xe=n.popupTransitionName,at=n.popupAnimation,ft=n.maskTransitionName,ke=n.maskAnimation,it=n.className,lt=n.getTriggerDOMNode,vt=Ta(n,Li),Zt=Ne||te||!1,Fe=r.useState(!1),Ht=ht(Fe,2),re=Ht[0],tn=Ht[1];Mn(function(){tn(ai())},[]);var St=r.useRef({}),Bt=r.useContext(Go),Vt=r.useMemo(function(){return{registerSubPopup:function(oe,et){St.current[oe]=et,Bt==null||Bt.registerSubPopup(oe,et)}}},[Bt]),Je=ri(),Pn=r.useState(null),Gt=ht(Pn,2),De=Gt[0],pn=Gt[1],mt=rr(function(O){$r(O)&&De!==O&&pn(O),Bt==null||Bt.registerSubPopup(Je,O)}),je=r.useState(null),Yt=ht(je,2),_e=Yt[0],nn=Yt[1],qe=r.useRef(null),rn=rr(function(O){$r(O)&&_e!==O&&(nn(O),qe.current=O)}),It=r.Children.only(i),Ke=(It==null?void 0:It.props)||{},Ye={},Wt=rr(function(O){var oe,et,bt=_e;return(bt==null?void 0:bt.contains(O))||((oe=ro(bt))===null||oe===void 0?void 0:oe.host)===O||O===bt||(De==null?void 0:De.contains(O))||((et=ro(De))===null||et===void 0?void 0:et.host)===O||O===De||Object.values(St.current).some(function(tt){return(tt==null?void 0:tt.contains(O))||O===tt})}),Et=Xo(l,Ge,at,xe),bn=Xo(l,Ie,ke,ft),on=r.useState(D||!1),Xt=ht(on,2),we=Xt[0],Me=Xt[1],Pe=E!=null?E:we,an=rr(function(O){E===void 0&&Me(O)});Mn(function(){Me(E||!1)},[E]);var K=r.useRef(Pe);K.current=Pe;var ee=rr(function(O){(0,M.flushSync)(function(){Pe!==O&&(an(O),$==null||$(O))})}),Te=r.useRef(),$t=function(){clearTimeout(Te.current)},Xe=function(oe){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;$t(),et===0?ee(oe):Te.current=setTimeout(function(){ee(oe)},et*1e3)};r.useEffect(function(){return $t},[]);var Rr=r.useState(!1),vr=ht(Rr,2),Qn=vr[0],Jn=vr[1];Mn(function(O){(!O||Pe)&&Jn(!0)},[Pe]);var Tn=r.useState(null),Rn=ht(Tn,2),ln=Rn[0],Lt=Rn[1],Zn=r.useState([0,0]),_n=ht(Zn,2),ar=_n[0],On=_n[1],Ln=function(oe){On([oe.clientX,oe.clientY])},Or=xi(Pe,De,ot?ar:_e,$e,ie,z,yt),pt=ht(Or,11),mr=pt[0],Br=pt[1],gr=pt[2],ir=pt[3],Jt=pt[4],qn=pt[5],Nr=pt[6],zn=pt[7],hr=pt[8],kn=pt[9],Qt=pt[10],jn=Si(re,y,p,w),er=ht(jn,2),tr=er[0],un=er[1],yr=tr.has("click"),Kn=un.has("click")||un.has("contextMenu"),Bn=rr(function(){Qn||Qt()}),pr=function(){K.current&&ot&&Kn&&Xe(!1)};Ri(Pe,_e,De,Bn,pr),Mn(function(){Bn()},[ar,$e]),Mn(function(){Pe&&!(ie!=null&&ie[$e])&&Bn()},[JSON.stringify(z)]);var Ar=r.useMemo(function(){var O=$i(ie,l,kn,ot);return X()(O,We==null?void 0:We(kn))},[kn,We,ie,l,ot]);r.useImperativeHandle(o,function(){return{nativeElement:qe.current,forceAlign:Bn}});var Ze=r.useState(0),ye=ht(Ze,2),Re=ye[0],xt=ye[1],Nt=r.useState(0),sn=ht(Nt,2),Hn=sn[0],Dr=sn[1],Hr=function(){if(ge&&_e){var oe=_e.getBoundingClientRect();xt(oe.width),Dr(oe.height)}},go=function(){Hr(),Bn()},cn=function(oe){Jn(!1),Qt(),I==null||I(oe)},Wr=function(){return new Promise(function(oe){Hr(),Lt(function(){return oe})})};Mn(function(){ln&&(Qt(),ln(),Lt(null))},[ln]);function Wn(O,oe,et,bt){Ye[O]=function(tt){var Ur;bt==null||bt(tt),Xe(oe,et);for(var Co=arguments.length,sa=new Array(Co>1?Co-1:0),Vr=1;Vr<Co;Vr++)sa[Vr-1]=arguments[Vr];(Ur=Ke[O])===null||Ur===void 0||Ur.call.apply(Ur,[Ke,tt].concat(sa))}}(yr||Kn)&&(Ye.onClick=function(O){var oe;K.current&&Kn?Xe(!1):!K.current&&yr&&(Ln(O),Xe(!0));for(var et=arguments.length,bt=new Array(et>1?et-1:0),tt=1;tt<et;tt++)bt[tt-1]=arguments[tt];(oe=Ke.onClick)===null||oe===void 0||oe.call.apply(oe,[Ke,O].concat(bt))}),Zi(Pe,Kn,_e,De,b,U,Wt,Xe);var lr=tr.has("hover"),br=un.has("hover"),Cr,Tr;lr&&(Wn("onMouseEnter",!0,T,function(O){Ln(O)}),Wn("onPointerEnter",!0,T,function(O){Ln(O)}),Cr=function(){(Pe||Qn)&&Xe(!0,T)},ot&&(Ye.onMouseMove=function(O){var oe;(oe=Ke.onMouseMove)===null||oe===void 0||oe.call(Ke,O)})),br&&(Wn("onMouseLeave",!1,H),Wn("onPointerLeave",!1,H),Tr=function(){Xe(!1,H)}),tr.has("focus")&&Wn("onFocus",!0,P),un.has("focus")&&Wn("onBlur",!1,x),tr.has("contextMenu")&&(Ye.onContextMenu=function(O){var oe;K.current&&un.has("contextMenu")?Xe(!1):(Ln(O),Xe(!0)),O.preventDefault();for(var et=arguments.length,bt=new Array(et>1?et-1:0),tt=1;tt<et;tt++)bt[tt-1]=arguments[tt];(oe=Ke.onContextMenu)===null||oe===void 0||oe.call.apply(oe,[Ke,O].concat(bt))}),it&&(Ye.className=X()(Ke.className,it));var Zr=jt(jt({},Ke),Ye),Fr={},ho=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];ho.forEach(function(O){vt[O]&&(Fr[O]=function(){for(var oe,et=arguments.length,bt=new Array(et),tt=0;tt<et;tt++)bt[tt]=arguments[tt];(oe=Zr[O])===null||oe===void 0||oe.call.apply(oe,[Zr].concat(bt)),vt[O].apply(vt,bt)})});var yo=r.cloneElement(It,jt(jt({},Zr),Fr)),po={x:qn,y:Nr},bo=dt?jt({},dt!==!0?dt:{}):null;return r.createElement(r.Fragment,null,r.createElement(Q.Z,{disabled:!Pe,ref:rn,onResize:go},r.createElement(bi,{getTriggerDOMNode:lt},yo)),r.createElement(Go.Provider,{value:Vt},r.createElement(yi,{portal:e,ref:mt,prefixCls:l,popup:Ee,className:X()(he,Ar),style:me,target:_e,onMouseEnter:Cr,onMouseLeave:Tr,onPointerEnter:Cr,zIndex:ze,open:Pe,keepDom:Qn,fresh:Kt,onClick:Ot,mask:b,motion:Et,maskMotion:bn,onVisibleChanged:cn,onPrepare:Wr,forceRender:q,autoDestroy:Zt,getPopupContainer:le,align:kn,arrow:bo,arrowPos:po,ready:mr,offsetX:Br,offsetY:gr,offsetR:ir,offsetB:Jt,onAlign:Bn,stretch:ge,targetWidth:Re/zn,targetHeight:Hn/hr})))});return t}var ki=zi(Zo),Tt={adjustX:1,adjustY:1},ji={topLeft:{points:["bl","tl"],overflow:Tt},topRight:{points:["br","tr"],overflow:Tt},bottomLeft:{points:["tl","bl"],overflow:Tt},bottomRight:{points:["tr","br"],overflow:Tt},leftTop:{points:["tr","tl"],overflow:Tt},leftBottom:{points:["br","bl"],overflow:Tt},rightTop:{points:["tl","tr"],overflow:Tt},rightBottom:{points:["bl","br"],overflow:Tt}},Ki={topLeft:{points:["bl","tl"],overflow:Tt},topRight:{points:["br","tr"],overflow:Tt},bottomLeft:{points:["tl","bl"],overflow:Tt},bottomRight:{points:["tr","br"],overflow:Tt},rightTop:{points:["tr","tl"],overflow:Tt},rightBottom:{points:["br","bl"],overflow:Tt},leftTop:{points:["tl","tr"],overflow:Tt},leftBottom:{points:["bl","br"],overflow:Tt}},cl=null;function ua(e,t,n){if(t)return t;if(n)return n[e]||n.other}var Hi={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Wi(e){var t=e.prefixCls,n=e.visible,o=e.children,a=e.popup,l=e.popupStyle,i=e.popupClassName,v=e.popupOffset,y=e.disabled,p=e.mode,w=e.onVisibleChange,E=r.useContext(g),D=E.getPopupContainer,$=E.rtl,I=E.subMenuOpenDelay,T=E.subMenuCloseDelay,N=E.builtinPlacements,H=E.triggerSubMenuAction,P=E.forceSubMenuRender,x=E.rootClassName,b=E.motion,j=E.defaultMotions,U=r.useState(!1),le=(0,C.Z)(U,2),q=le[0],Ne=le[1],te=$?(0,R.Z)((0,R.Z)({},Ki),N):(0,R.Z)((0,R.Z)({},ji),N),Ee=Hi[p],he=ua(p,b,j),me=r.useRef(he);p!=="inline"&&(me.current=he);var $e=(0,R.Z)((0,R.Z)({},me.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),ne=r.useRef();return r.useEffect(function(){return ne.current=(0,Le.Z)(function(){Ne(n)}),function(){Le.Z.cancel(ne.current)}},[n]),r.createElement(ki,{prefixCls:t,popupClassName:X()("".concat(t,"-popup"),(0,f.Z)({},"".concat(t,"-rtl"),$),i,x),stretch:p==="horizontal"?"minWidth":null,getPopupContainer:D,builtinPlacements:te,popupPlacement:Ee,popupVisible:q,popup:a,popupStyle:l,popupAlign:v&&{offset:v},action:y?[]:[H],mouseEnterDelay:I,mouseLeaveDelay:T,onPopupVisibleChange:w,forceRender:P,popupMotion:$e,fresh:!0},o)}function Fi(e){var t=e.id,n=e.open,o=e.keyPath,a=e.children,l="inline",i=r.useContext(g),v=i.prefixCls,y=i.forceSubMenuRender,p=i.motion,w=i.defaultMotions,E=i.mode,D=r.useRef(!1);D.current=E===l;var $=r.useState(!D.current),I=(0,C.Z)($,2),T=I[0],N=I[1],H=D.current?n:!1;r.useEffect(function(){D.current&&N(!1)},[E]);var P=(0,R.Z)({},ua(l,p,w));o.length>1&&(P.motionAppear=!1);var x=P.onVisibleChanged;return P.onVisibleChanged=function(b){return!D.current&&!b&&N(!0),x==null?void 0:x(b)},T?null:r.createElement(k,{mode:l,locked:!D.current},r.createElement(oo.Z,(0,d.Z)({visible:H},P,{forceRender:y,removeOnLeave:!1,leavedClassName:"".concat(v,"-hidden")}),function(b){var j=b.className,U=b.style;return r.createElement(Po,{id:t,className:j,style:U},a)}))}var Ui=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Vi=["active"],Gi=function(t){var n,o=t.style,a=t.className,l=t.title,i=t.eventKey,v=t.warnKey,y=t.disabled,p=t.internalPopupClose,w=t.children,E=t.itemIcon,D=t.expandIcon,$=t.popupClassName,I=t.popupOffset,T=t.popupStyle,N=t.onClick,H=t.onMouseEnter,P=t.onMouseLeave,x=t.onTitleClick,b=t.onTitleMouseEnter,j=t.onTitleMouseLeave,U=(0,A.Z)(t,Ui),le=c(i),q=r.useContext(g),Ne=q.prefixCls,te=q.mode,Ee=q.openKeys,he=q.disabled,me=q.overflowDisabled,$e=q.activeKey,ne=q.selectedKeys,ie=q.itemIcon,z=q.expandIcon,ze=q.onItemClick,ge=q.onOpenChange,We=q.onActive,Kt=r.useContext(He),ot=Kt._internalRenderSubMenuItem,Ot=r.useContext(rt),yt=Ot.isSubPathKey,dt=be(),Ge="".concat(Ne,"-submenu"),Ie=he||y,xe=r.useRef(),at=r.useRef(),ft=E!=null?E:ie,ke=D!=null?D:z,it=Ee.includes(i),lt=!me&&it,vt=yt(ne,i),Zt=$o(i,Ie,b,j),Fe=Zt.active,Ht=(0,A.Z)(Zt,Vi),re=r.useState(!1),tn=(0,C.Z)(re,2),St=tn[0],Bt=tn[1],Vt=function(Ye){Ie||Bt(Ye)},Je=function(Ye){Vt(!0),H==null||H({key:i,domEvent:Ye})},Pn=function(Ye){Vt(!1),P==null||P({key:i,domEvent:Ye})},Gt=r.useMemo(function(){return Fe||(te!=="inline"?St||yt([$e],i):!1)},[te,Fe,$e,St,i,yt]),De=xo(dt.length),pn=function(Ye){Ie||(x==null||x({key:i,domEvent:Ye}),te==="inline"&&ge(i,!it))},mt=Sr(function(Ke){N==null||N(zr(Ke)),ze(Ke)}),je=function(Ye){te!=="inline"&&ge(i,Ye)},Yt=function(){We(i)},_e=le&&"".concat(le,"-popup"),nn=r.createElement("div",(0,d.Z)({role:"menuitem",style:De,className:"".concat(Ge,"-title"),tabIndex:Ie?null:-1,ref:xe,title:typeof l=="string"?l:null,"data-menu-id":me&&le?null:le,"aria-expanded":lt,"aria-haspopup":!0,"aria-controls":_e,"aria-disabled":Ie,onClick:pn,onFocus:Yt},Ht),l,r.createElement(wo,{icon:te!=="horizontal"?ke:void 0,props:(0,R.Z)((0,R.Z)({},t),{},{isOpen:lt,isSubMenu:!0})},r.createElement("i",{className:"".concat(Ge,"-arrow")}))),qe=r.useRef(te);if(te!=="inline"&&dt.length>1?qe.current="vertical":qe.current=te,!me){var rn=qe.current;nn=r.createElement(Wi,{mode:rn,prefixCls:Ge,visible:!p&<&&te!=="inline",popupClassName:$,popupOffset:I,popupStyle:T,popup:r.createElement(k,{mode:rn==="horizontal"?"vertical":rn},r.createElement(Po,{id:_e,ref:at},w)),disabled:Ie,onVisibleChange:je},nn)}var It=r.createElement(In.Item,(0,d.Z)({role:"none"},U,{component:"li",style:o,className:X()(Ge,"".concat(Ge,"-").concat(te),a,(n={},(0,f.Z)(n,"".concat(Ge,"-open"),lt),(0,f.Z)(n,"".concat(Ge,"-active"),Gt),(0,f.Z)(n,"".concat(Ge,"-selected"),vt),(0,f.Z)(n,"".concat(Ge,"-disabled"),Ie),n)),onMouseEnter:Je,onMouseLeave:Pn}),nn,!me&&r.createElement(Fi,{id:_e,open:lt,keyPath:dt},w));return ot&&(It=ot(It,t,{selected:vt,active:Gt,open:lt,disabled:Ie})),r.createElement(k,{onItemClick:mt,mode:te==="horizontal"?"vertical":te,itemIcon:ft,expandIcon:ke},It)};function Kr(e){var t=e.eventKey,n=e.children,o=be(t),a=qr(n,o),l=ve();r.useEffect(function(){if(l)return l.registerPath(t,o),function(){l.unregisterPath(t,o)}},[o]);var i;return l?i=a:i=r.createElement(Gi,e,a),r.createElement(Ve.Provider,{value:o},i)}var Yi=u(71002),Xi=["className","title","eventKey","children"],Qi=["children"],Ji=function(t){var n=t.className,o=t.title,a=t.eventKey,l=t.children,i=(0,A.Z)(t,Xi),v=r.useContext(g),y=v.prefixCls,p="".concat(y,"-item-group");return r.createElement("li",(0,d.Z)({role:"presentation"},i,{onClick:function(E){return E.stopPropagation()},className:X()(p,n)}),r.createElement("div",{role:"presentation",className:"".concat(p,"-title"),title:typeof o=="string"?o:void 0},o),r.createElement("ul",{role:"group",className:"".concat(p,"-list")},l))};function fo(e){var t=e.children,n=(0,A.Z)(e,Qi),o=be(n.eventKey),a=qr(t,o),l=ve();return l?a:r.createElement(Ji,(0,Eo.Z)(n,["warnKey"]),a)}function vo(e){var t=e.className,n=e.style,o=r.useContext(g),a=o.prefixCls,l=ve();return l?null:r.createElement("li",{role:"separator",className:X()("".concat(a,"-item-divider"),t),style:n})}var _i=["label","children","key","type"];function mo(e){return(e||[]).map(function(t,n){if(t&&(0,Yi.Z)(t)==="object"){var o=t,a=o.label,l=o.children,i=o.key,v=o.type,y=(0,A.Z)(o,_i),p=i!=null?i:"tmp-".concat(n);return l||v==="group"?v==="group"?r.createElement(fo,(0,d.Z)({key:p},y,{title:a}),mo(l)):r.createElement(Kr,(0,d.Z)({key:p},y,{title:a}),mo(l)):v==="divider"?r.createElement(vo,(0,d.Z)({key:p},y)):r.createElement(Ir,(0,d.Z)({key:p},y),a)}return null}).filter(function(t){return t})}function qi(e,t,n){var o=e;return t&&(o=mo(t)),qr(o,n)}var el=["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"],fr=[],tl=r.forwardRef(function(e,t){var n,o,a=e,l=a.prefixCls,i=l===void 0?"rc-menu":l,v=a.rootClassName,y=a.style,p=a.className,w=a.tabIndex,E=w===void 0?0:w,D=a.items,$=a.children,I=a.direction,T=a.id,N=a.mode,H=N===void 0?"vertical":N,P=a.inlineCollapsed,x=a.disabled,b=a.disabledOverflow,j=a.subMenuOpenDelay,U=j===void 0?.1:j,le=a.subMenuCloseDelay,q=le===void 0?.1:le,Ne=a.forceSubMenuRender,te=a.defaultOpenKeys,Ee=a.openKeys,he=a.activeKey,me=a.defaultActiveFirst,$e=a.selectable,ne=$e===void 0?!0:$e,ie=a.multiple,z=ie===void 0?!1:ie,ze=a.defaultSelectedKeys,ge=a.selectedKeys,We=a.onSelect,Kt=a.onDeselect,ot=a.inlineIndent,Ot=ot===void 0?24:ot,yt=a.motion,dt=a.defaultMotions,Ge=a.triggerSubMenuAction,Ie=Ge===void 0?"hover":Ge,xe=a.builtinPlacements,at=a.itemIcon,ft=a.expandIcon,ke=a.overflowedIndicator,it=ke===void 0?"...":ke,lt=a.overflowedIndicatorPopupClassName,vt=a.getPopupContainer,Zt=a.onClick,Fe=a.onOpenChange,Ht=a.onKeyDown,re=a.openAnimation,tn=a.openTransitionName,St=a._internalRenderMenuItem,Bt=a._internalRenderSubMenuItem,Vt=(0,A.Z)(a,el),Je=r.useMemo(function(){return qi($,D,fr)},[$,D]),Pn=r.useState(!1),Gt=(0,C.Z)(Pn,2),De=Gt[0],pn=Gt[1],mt=r.useRef(),je=va(T),Yt=I==="rtl",_e=(0,nr.Z)(te,{value:Ee,postState:function(ye){return ye||fr}}),nn=(0,C.Z)(_e,2),qe=nn[0],rn=nn[1],It=function(ye){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function xt(){rn(ye),Fe==null||Fe(ye)}Re?(0,M.flushSync)(xt):xt()},Ke=r.useState(qe),Ye=(0,C.Z)(Ke,2),Wt=Ye[0],Et=Ye[1],bn=r.useRef(!1),on=r.useMemo(function(){return(H==="inline"||H==="vertical")&&P?["vertical",P]:[H,!1]},[H,P]),Xt=(0,C.Z)(on,2),we=Xt[0],Me=Xt[1],Pe=we==="inline",an=r.useState(we),K=(0,C.Z)(an,2),ee=K[0],Te=K[1],$t=r.useState(Me),Xe=(0,C.Z)($t,2),Rr=Xe[0],vr=Xe[1];r.useEffect(function(){Te(we),vr(Me),bn.current&&(Pe?rn(Wt):It(fr))},[we,Me]);var Qn=r.useState(0),Jn=(0,C.Z)(Qn,2),Tn=Jn[0],Rn=Jn[1],ln=Tn>=Je.length-1||ee!=="horizontal"||b;r.useEffect(function(){Pe&&Et(qe)},[qe]),r.useEffect(function(){return bn.current=!0,function(){bn.current=!1}},[]);var Lt=da(),Zn=Lt.registerPath,_n=Lt.unregisterPath,ar=Lt.refreshOverflowKeys,On=Lt.isSubPathKey,Ln=Lt.getKeyPath,Or=Lt.getKeys,pt=Lt.getSubPathKeys,mr=r.useMemo(function(){return{registerPath:Zn,unregisterPath:_n}},[Zn,_n]),Br=r.useMemo(function(){return{isSubPathKey:On}},[On]);r.useEffect(function(){ar(ln?fr:Je.slice(Tn+1).map(function(Ze){return Ze.key}))},[Tn,ln]);var gr=(0,nr.Z)(he||me&&((n=Je[0])===null||n===void 0?void 0:n.key),{value:he}),ir=(0,C.Z)(gr,2),Jt=ir[0],qn=ir[1],Nr=Sr(function(Ze){qn(Ze)}),zn=Sr(function(){qn(void 0)});(0,r.useImperativeHandle)(t,function(){return{list:mt.current,focus:function(ye){var Re,xt=Jt!=null?Jt:(Re=Je.find(function(Dr){return!Dr.props.disabled}))===null||Re===void 0?void 0:Re.key;if(xt){var Nt,sn,Hn;(Nt=mt.current)===null||Nt===void 0||(sn=Nt.querySelector("li[data-menu-id='".concat(m(je,xt),"']")))===null||sn===void 0||(Hn=sn.focus)===null||Hn===void 0||Hn.call(sn,ye)}}}});var hr=(0,nr.Z)(ze||[],{value:ge,postState:function(ye){return Array.isArray(ye)?ye:ye==null?fr:[ye]}}),kn=(0,C.Z)(hr,2),Qt=kn[0],jn=kn[1],er=function(ye){if(ne){var Re=ye.key,xt=Qt.includes(Re),Nt;z?xt?Nt=Qt.filter(function(Hn){return Hn!==Re}):Nt=[].concat((0,W.Z)(Qt),[Re]):Nt=[Re],jn(Nt);var sn=(0,R.Z)((0,R.Z)({},ye),{},{selectedKeys:Nt});xt?Kt==null||Kt(sn):We==null||We(sn)}!z&&qe.length&&ee!=="inline"&&It(fr)},tr=Sr(function(Ze){Zt==null||Zt(zr(Ze)),er(Ze)}),un=Sr(function(Ze,ye){var Re=qe.filter(function(Nt){return Nt!==Ze});if(ye)Re.push(Ze);else if(ee!=="inline"){var xt=pt(Ze);Re=Re.filter(function(Nt){return!xt.has(Nt)})}(0,En.Z)(qe,Re,!0)||It(Re,!0)}),yr=function(ye,Re){var xt=Re!=null?Re:!qe.includes(ye);un(ye,xt)},Kn=Xr(ee,Jt,Yt,je,mt,Or,Ln,qn,yr,Ht);r.useEffect(function(){pn(!0)},[]);var Bn=r.useMemo(function(){return{_internalRenderMenuItem:St,_internalRenderSubMenuItem:Bt}},[St,Bt]),pr=ee!=="horizontal"||b?Je:Je.map(function(Ze,ye){return r.createElement(k,{key:Ze.key,overflowDisabled:ye>Tn},Ze)}),Ar=r.createElement(In,(0,d.Z)({id:T,ref:mt,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:Ir,className:X()(i,"".concat(i,"-root"),"".concat(i,"-").concat(ee),p,(o={},(0,f.Z)(o,"".concat(i,"-inline-collapsed"),Rr),(0,f.Z)(o,"".concat(i,"-rtl"),Yt),o),v),dir:I,style:y,role:"menu",tabIndex:E,data:pr,renderRawItem:function(ye){return ye},renderRawRest:function(ye){var Re=ye.length,xt=Re?Je.slice(-Re):null;return r.createElement(Kr,{eventKey:Jr,title:it,disabled:ln,internalPopupClose:Re===0,popupClassName:lt},xt)},maxCount:ee!=="horizontal"||b?In.INVALIDATE:In.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(ye){Rn(ye)},onKeyDown:Kn},Vt));return r.createElement(He.Provider,{value:Bn},r.createElement(pe.Provider,{value:je},r.createElement(k,{prefixCls:i,rootClassName:v,mode:ee,openKeys:qe,rtl:Yt,disabled:x,motion:De?yt:null,defaultMotions:De?dt:null,activeKey:Jt,onActive:Nr,onInactive:zn,selectedKeys:Qt,inlineIndent:Ot,subMenuOpenDelay:U,subMenuCloseDelay:q,forceSubMenuRender:Ne,builtinPlacements:xe,triggerSubMenuAction:Ie,getPopupContainer:vt,itemIcon:at,expandIcon:ft,onItemClick:tr,onOpenChange:un},r.createElement(rt.Provider,{value:Br},Ar),r.createElement("div",{style:{display:"none"},"aria-hidden":!0},r.createElement(se.Provider,{value:mr},Je)))))}),nl=tl,Pr=nl;Pr.Item=Ir,Pr.SubMenu=Kr,Pr.ItemGroup=fo,Pr.Divider=vo;var rl=Pr},99962:function(wt,de){var u;var d=Symbol.for("react.element"),f=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),W=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),A=Symbol.for("react.provider"),V=Symbol.for("react.context"),X=Symbol.for("react.server_context"),r=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),Q=Symbol.for("react.suspense_list"),Oe=Symbol.for("react.memo"),ue=Symbol.for("react.lazy"),Ce=Symbol.for("react.offscreen"),Ae;Ae=Symbol.for("react.module.reference");function G(S){if(typeof S=="object"&&S!==null){var Be=S.$$typeof;switch(Be){case d:switch(S=S.type,S){case R:case C:case W:case L:case Q:return S;default:switch(S=S&&S.$$typeof,S){case X:case V:case r:case ue:case Oe:case A:return S;default:return Be}}case f:return Be}}}u=V,u=A,u=d,de.ForwardRef=r,u=R,u=ue,u=Oe,u=f,u=C,u=W,u=L,u=Q,u=function(){return!1},u=function(){return!1},u=function(S){return G(S)===V},u=function(S){return G(S)===A},u=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===d},u=function(S){return G(S)===r},u=function(S){return G(S)===R},u=function(S){return G(S)===ue},de.isMemo=function(S){return G(S)===Oe},u=function(S){return G(S)===f},u=function(S){return G(S)===C},u=function(S){return G(S)===W},u=function(S){return G(S)===L},u=function(S){return G(S)===Q},u=function(S){return typeof S=="string"||typeof S=="function"||S===R||S===C||S===W||S===L||S===Q||S===Ce||typeof S=="object"&&S!==null&&(S.$$typeof===ue||S.$$typeof===Oe||S.$$typeof===A||S.$$typeof===V||S.$$typeof===r||S.$$typeof===Ae||S.getModuleId!==void 0)},u=G},8399:function(wt,de,u){wt.exports=u(99962)},66680:function(wt,de,u){u.d(de,{Z:function(){return f}});var d=u(67294);function f(R){var W=d.useRef();W.current=R;var C=d.useCallback(function(){for(var A,V=arguments.length,X=new Array(V),r=0;r<V;r++)X[r]=arguments[r];return(A=W.current)===null||A===void 0?void 0:A.call.apply(A,[W].concat(X))},[]);return C}},21770:function(wt,de,u){u.d(de,{Z:function(){return A}});var d=u(97685),f=u(66680),R=u(8410),W=u(63896);function C(V){return V!==void 0}function A(V,X){var r=X||{},L=r.defaultValue,Q=r.value,Oe=r.onChange,ue=r.postState,Ce=(0,W.Z)(function(){return C(Q)?Q:C(L)?typeof L=="function"?L():L:typeof V=="function"?V():V}),Ae=(0,d.Z)(Ce,2),G=Ae[0],S=Ae[1],Be=Q!==void 0?Q:G,Mt=ue?ue(Be):Be,ut=(0,f.Z)(Oe),Pt=(0,W.Z)([Be]),ae=(0,d.Z)(Pt,2),M=ae[0],J=ae[1];(0,R.o)(function(){var F=M[0];G!==F&&ut(G,F)},[M]),(0,R.o)(function(){C(Q)||S(Q)},[Q]);var _=(0,f.Z)(function(F,Z){S(F,Z),J([Be],Z)});return[Mt,_]}},91881:function(wt,de,u){var d=u(71002),f=u(80334);function R(W,C){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,V=new Set;function X(r,L){var Q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Oe=V.has(r);if((0,f.ZP)(!Oe,"Warning: There may be circular references"),Oe)return!1;if(r===L)return!0;if(A&&Q>1)return!1;V.add(r);var ue=Q+1;if(Array.isArray(r)){if(!Array.isArray(L)||r.length!==L.length)return!1;for(var Ce=0;Ce<r.length;Ce++)if(!X(r[Ce],L[Ce],ue))return!1;return!0}if(r&&L&&(0,d.Z)(r)==="object"&&(0,d.Z)(L)==="object"){var Ae=Object.keys(r);return Ae.length!==Object.keys(L).length?!1:Ae.every(function(G){return X(r[G],L[G],ue)})}return!1}return X(W,C)}de.Z=R},98423:function(wt,de,u){u.d(de,{Z:function(){return f}});var d=u(1413);function f(R,W){var C=(0,d.Z)({},R);return Array.isArray(W)&&W.forEach(function(A){delete C[A]}),C}}}]);
|