(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9893,1322],{6423:function(Pe,Ce,s){"use strict";s.d(Ce,{ZP:function(){return qn}});var N=s(24793),M=s(97183),I=s(96156),j=s(55507),A=s(92137),Z=s(81253),le=s(84305),fe=s(75901),se=s(28481),p=s(28991),l=s(85893),he=s(78775),O=s(56725),C=s(67294),W=s(12044);function ve(P,e){var o=typeof P.pageName=="string"?P.title:e;(0,C.useEffect)(function(){(0,W.Z)()&&o&&(document.title=o)},[P.title,o])}var q=ve,X=s(27754),be=s(94184),ee=s.n(be),F=s(97435),te=s(21770),ce=s(29405),ge=s(38069),de=s(80430),xe=s.n(de),De=s(7700),Qe=s(83832),Le=s(57338),$=s(25084),G=s(57186);function y(){var P=(0,C.useState)([]),e=(0,se.Z)(P,2),o=e[0],a=e[1];return{flatMenuKeys:o,setFlatMenuKeys:a}}var v=(0,G.f)(y),u=v,R=s(30887),w=s(28682),J=s(1351),k=s(76629),H=s(71748),ne=s(33860),ae=s(85061),me=s(5991),Me=s(6610),ze=s(91321),Pt=s(16165),Nt=function(e){if(!e||!e.startsWith("http"))return!1;try{var o=new URL(e);return!!o}catch(a){return!1}},Ne=Nt;function Ge(P){return/\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(P)}var at=Ge,it={navTheme:"dark",layout:"side",contentWidth:"Fluid",fixedHeader:!1,fixSiderbar:!1,headerHeight:48,iconfontUrl:"",primaryColor:"#1890ff",splitMenus:!1},ke=it,vt=function P(e){return(e||[]).reduce(function(o,a){if(a.key&&o.push(a.key),a.routes){var m=o.concat(P(a.routes)||[]);return m}return o},[])},ht={daybreak:"#1890ff",dust:"#F5222D",volcano:"#FA541C",sunset:"#FAAD14",cyan:"#13C2C2",green:"#52C41A",geekblue:"#2F54EB",purple:"#722ED1"};function wt(P){return P&&ht[P]?ht[P]:P}function Ve(P){return P.map(function(e){var o=e.children||e.routes,a=(0,p.Z)({},e);if(!a.name||a.hideInMenu)return null;if(a&&(a==null?void 0:a.routes)){if(!a.hideChildrenInMenu&&o.some(function(m){return m&&m.name&&!m.hideInMenu}))return(0,p.Z)((0,p.Z)({},e),{},{children:Ve(o),routes:Ve(o)});delete a.routes,delete a.children}return a}).filter(function(e){return e})}var Lt=s(43361),Je=(0,ze.Z)({scriptUrl:ke.iconfontUrl}),_e=function(e){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"icon-";if(typeof e=="string"&&e!==""){if(Ne(e)||at(e))return(0,l.jsx)(Pt.Z,{component:function(){return(0,l.jsx)("img",{src:e,alt:"icon",className:"ant-pro-sider-menu-icon"})}});if(e.startsWith(o))return(0,l.jsx)(Je,{type:e})}return e},yt=(0,me.Z)(function P(e){var o=this;(0,Me.Z)(this,P),this.props=void 0,this.getNavMenuItems=function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],m=arguments.length>1?arguments[1]:void 0;return a.map(function(h){return o.getSubMenuOrItem(h,m)}).filter(function(h){return h})},this.getSubMenuOrItem=function(a,m){var h=(a==null?void 0:a.children)||(a==null?void 0:a.routes);if(Array.isArray(h)&&h.length>0){var g=o.getIntlName(a),b=o.props,S=b.subMenuItemRender,D=b.prefixCls,V=b.menu,U=b.iconPrefixes,B=a.icon?(0,l.jsxs)("span",{className:"".concat(D,"-menu-item"),title:g,children:[!m&&_e(a.icon,U),(0,l.jsx)("span",{className:"".concat(D,"-menu-item-title"),children:g})]}):(0,l.jsx)("span",{className:"".concat(D,"-menu-item"),title:g,children:g}),Y=S?S((0,p.Z)((0,p.Z)({},a),{},{isUrl:!1}),B,o.props):B;return{type:(V==null?void 0:V.type)==="group"?"group":void 0,label:Y,children:o.getNavMenuItems(h,!0),onTitleClick:a.onTitleClick,key:a.key||a.path}}return{label:o.getMenuItemPath(a,m),title:o.getIntlName(a),key:a.key||a.path,disabled:a.disabled,onClick:function(ue){var oe;Ne(a==null?void 0:a.path)&&window.open(a.path),(oe=a.onTitleClick)===null||oe===void 0||oe.call(a,ue)}}},this.getIntlName=function(a){var m=a.name,h=a.locale,g=o.props,b=g.menu,S=g.formatMessage;return h&&(b==null?void 0:b.locale)!==!1?S==null?void 0:S({id:h,defaultMessage:m}):m},this.getMenuItemPath=function(a,m){var h=o.conversionPath(a.path||"/"),g=o.props,b=g.location,S=b===void 0?{pathname:"/"}:b,D=g.isMobile,V=g.onCollapse,U=g.menuItemRender,B=g.iconPrefixes,Y=o.getIntlName(a),Q=o.props.prefixCls,ue=m?null:_e(a.icon,B),oe=Ne(h),Re=(0,l.jsxs)("span",{className:ee()("".concat(Q,"-menu-item"),(0,I.Z)({},"".concat(Q,"-menu-item-link"),oe)),children:[ue,(0,l.jsx)("span",{className:"".concat(Q,"-menu-item-title"),children:Y})]});if(U){var re=(0,p.Z)((0,p.Z)({},a),{},{isUrl:oe,itemPath:h,isMobile:D,replace:h===S.pathname,onClick:function(){oe&&window.open(h),V&&V(!0)},children:void 0});return U(re,Re,o.props)}return Re},this.conversionPath=function(a){return a&&a.indexOf("http")===0?a:"/".concat(a||"").replace(/\/+/g,"/")},this.props=e}),Qt=function(e,o){var a=o.layout,m=o.collapsed,h={};return e&&!m&&["side","mix"].includes(a||"mix")&&(h={openKeys:e}),h},ot=function(e){var o=e.theme,a=e.mode,m=e.className,h=e.handleOpenChange,g=e.style,b=e.menuData,S=e.menu,D=e.matchMenuKeys,V=e.iconfontUrl,U=e.collapsed,B=e.selectedKeys,Y=e.onSelect,Q=e.openKeys,ue=(0,C.useRef)([]),oe=u.useContainer(),Re=oe.flatMenuKeys,re=(0,O.Z)(S==null?void 0:S.defaultOpenAll),Be=(0,se.Z)(re,2),Fe=Be[0],Ye=Be[1],Te=(0,O.Z)(function(){return(S==null?void 0:S.defaultOpenAll)?vt(b)||[]:Q===!1?!1:[]},{value:Q===!1?void 0:Q,onChange:h}),ut=(0,se.Z)(Te,2),We=ut[0],pe=ut[1],ct=(0,O.Z)([],{value:B,onChange:Y?function(mt){Y&&mt&&Y(mt)}:void 0}),et=(0,se.Z)(ct,2),tt=et[0],nt=et[1];(0,C.useEffect)(function(){(S==null?void 0:S.defaultOpenAll)||Q===!1||Re.length||D&&(pe(D),nt(D))},[D.join("-")]),(0,C.useEffect)(function(){V&&(Je=(0,ze.Z)({scriptUrl:V}))},[V]),(0,C.useEffect)(function(){if(D.join("-")!==(tt||[]).join("-")&&nt(D),!Fe&&Q!==!1&&D.join("-")!==(We||[]).join("-")){var mt=D;(S==null?void 0:S.autoClose)===!1&&(mt=Array.from(new Set([].concat((0,ae.Z)(D),(0,ae.Z)(We||[]))))),pe(mt)}else(S==null?void 0:S.ignoreFlatMenu)&&Fe?pe(vt(b)):Re.length>0&&Ye(!1)},[D.join("-"),U]);var Ct=(0,C.useMemo)(function(){return Qt(We,e)},[We&&We.join(","),e.layout,e.collapsed]),bt=(0,C.useState)(function(){return new yt(e)}),Mt=(0,se.Z)(bt,1),rt=Mt[0];if(S==null?void 0:S.loading)return(0,l.jsx)("div",{style:(a==null?void 0:a.includes("inline"))?{padding:24}:{marginTop:16},children:(0,l.jsx)(ne.Z,{active:!0,title:!1,paragraph:{rows:(a==null?void 0:a.includes("inline"))?6:1}})});var ft=ee()(m,{"top-nav-menu":a==="horizontal"});rt.props=e,e.openKeys===!1&&!e.handleOpenChange&&(ue.current=D);var $e=e.postMenuData?e.postMenuData(b):b;return $e&&($e==null?void 0:$e.length)<1?null:(0,C.createElement)(w.Z,(0,p.Z)((0,p.Z)({},Ct),{},{key:"Menu",mode:a,items:rt.getNavMenuItems($e,!1),inlineIndent:16,defaultOpenKeys:ue.current,theme:o,selectedKeys:tt,style:g,className:ft,onOpenChange:pe},e.menuProps))};ot.defaultProps={postMenuData:function(e){return e||[]}};var lt=ot,At=M.Z.Sider,Ft=function(e){return typeof e=="string"?(0,l.jsx)("img",{src:e,alt:"logo"}):typeof e=="function"?e():e},pt=function(e){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"menuHeaderRender",a=e.logo,m=e.title,h=e.layout,g=e[o||""];if(g===!1)return null;var b=Ft(a),S=(0,l.jsx)("h1",{children:m!=null?m:"Ant Design Pro"});return g?g(b,e.collapsed?null:S,e):h==="mix"&&o==="menuHeaderRender"?null:(0,l.jsxs)("a",{children:[b,e.collapsed?null:S]})},Ht=function(e){return e?(0,l.jsx)(J.Z,{}):(0,l.jsx)(k.Z,{})},Jt=function(e){var o,a=e.collapsed,m=e.fixSiderbar,h=e.menuFooterRender,g=e.onCollapse,b=e.theme,S=e.siderWidth,D=e.isMobile,V=e.onMenuHeaderClick,U=e.breakpoint,B=U===void 0?"lg":U,Y=e.style,Q=e.layout,ue=e.menuExtraRender,oe=ue===void 0?!1:ue,Re=e.collapsedButtonRender,re=Re===void 0?Ht:Re,Be=e.links,Fe=e.menuContentRender,Ye=e.prefixCls,Te=e.onOpenChange,ut=e.headerHeight,We=e.logoStyle,pe="".concat(Ye,"-sider"),ct=u.useContainer(),et=ct.flatMenuKeys,tt=ee()("".concat(pe),(o={},(0,I.Z)(o,"".concat(pe,"-fixed"),m),(0,I.Z)(o,"".concat(pe,"-layout-").concat(Q),Q&&!D),(0,I.Z)(o,"".concat(pe,"-light"),b!=="dark"),o)),nt=pt(e),Ct=oe&&oe(e),bt=Fe!==!1&&et&&(0,C.createElement)(lt,(0,p.Z)((0,p.Z)({},e),{},{key:"base-menu",mode:"inline",handleOpenChange:Te,style:{width:"100%"},className:"".concat(pe,"-menu")})),Mt=Fe?Fe(e,bt):bt,rt=(Be||[]).map(function(ft,$e){return{className:"".concat(pe,"-link"),label:ft,key:$e}});return re&&!D&&rt.push({className:"".concat(pe,"-collapsed-button"),title:!1,key:"collapsed",onClick:function(){g&&g(!a)},label:re(a)}),(0,l.jsxs)(l.Fragment,{children:[m&&(0,l.jsx)("div",{style:(0,p.Z)({width:a?48:S,overflow:"hidden",flex:"0 0 ".concat(a?48:S,"px"),maxWidth:a?48:S,minWidth:a?48:S,transition:"background-color 0.3s, min-width 0.3s, max-width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"},Y)}),(0,l.jsxs)(At,{collapsible:!0,trigger:null,collapsed:a,breakpoint:B===!1?void 0:B,onCollapse:function($e){D||g==null||g($e)},collapsedWidth:48,style:(0,p.Z)({overflow:"hidden",paddingTop:Q==="mix"&&!D?ut:void 0},Y),width:S,theme:b,className:tt,children:[nt&&(0,l.jsx)("div",{className:ee()("".concat(pe,"-logo"),(0,I.Z)({},"".concat(pe,"-collapsed"),a)),onClick:Q!=="mix"?V:void 0,id:"logo",style:We,children:nt}),Ct&&(0,l.jsx)("div",{className:"".concat(pe,"-extra ").concat(!nt&&"".concat(pe,"-extra-no-logo")),children:Ct}),(0,l.jsx)("div",{style:{flex:1,overflowY:"auto",overflowX:"hidden"},children:Mt}),(0,l.jsx)("div",{className:"".concat(pe,"-links"),children:(0,l.jsx)(w.Z,{theme:b,inlineIndent:16,className:"".concat(pe,"-link-menu"),selectedKeys:[],openKeys:[],mode:"inline",items:rt})}),h&&(0,l.jsx)("div",{className:ee()("".concat(pe,"-footer"),(0,I.Z)({},"".concat(pe,"-footer-collapsed"),!a)),children:h(e)})]})]})},xt=Jt,_t=function(e){var o=e.isMobile,a=e.menuData,m=e.siderWidth,h=e.collapsed,g=e.onCollapse,b=e.style,S=e.className,D=e.hide,V=e.getContainer,U=e.prefixCls,B=e.matchMenuKeys,Y=u.useContainer(),Q=Y.setFlatMenuKeys;(0,C.useEffect)(function(){if(!(!a||a.length<1)){var oe=(0,X.kv)(a);Q(Object.keys(oe))}},[B.join("-")]),(0,C.useEffect)(function(){o===!0&&(g==null||g(!0))},[o]);var ue=(0,F.Z)(e,["className","style"]);return D?null:o?(0,l.jsx)($.Z,{visible:!h,placement:"left",className:ee()("".concat(U,"-drawer-sider"),S),onClose:function(){return g==null?void 0:g(!0)},style:(0,p.Z)({padding:0,height:"100vh"},b),getContainer:V,width:m,bodyStyle:{height:"100vh",padding:0,display:"flex",flexDirection:"row"},children:(0,l.jsx)(xt,(0,p.Z)((0,p.Z)({},ue),{},{className:ee()("".concat(U,"-sider"),S),collapsed:o?!1:h,splitMenus:!1}))}):(0,l.jsx)(xt,(0,p.Z)((0,p.Z)({className:ee()("".concat(U,"-sider"),S)},ue),{},{style:b}))},Bt=_t,Wt=s(63485),ye=s(16254),qe=s.n(ye),Se=function(e,o,a){if(a){var m=(0,ae.Z)(a.keys()).find(function(g){return qe()(g).test(e)});if(m)return a.get(m)}if(o){var h=Object.keys(o).find(function(g){return qe()(g).test(e)});if(h)return o[h]}return{path:""}},st=function(e,o){var a=e.pathname,m=a===void 0?"/":a,h=e.breadcrumb,g=e.breadcrumbMap,b=e.formatMessage,S=e.title,D=e.menu,V=D===void 0?{locale:!1}:D,U=o?"":S||"",B=Se(m,h,g);if(!B)return{title:U,id:"",pageName:U};var Y=B.name;return V.locale!==!1&&B.locale&&b&&(Y=b({id:B.locale||"",defaultMessage:B.name})),Y?o||!S?{title:Y,id:B.locale||"",pageName:Y}:{title:"".concat(Y," - ").concat(S),id:B.locale||"",pageName:Y}:{title:U,id:B.locale||"",pageName:U}},$t=function(e,o){return st(e,o).title},Zn=null,qt=s(10379),zt=s(54070),en=s(10178),Ke=s(48717),Kt=s(17212),tn=["rightContentRender","prefixCls"],nn=function(e){var o=e.rightContentRender,a=e.prefixCls,m=(0,Z.Z)(e,tn),h=(0,C.useState)("auto"),g=(0,se.Z)(h,2),b=g[0],S=g[1],D=(0,en.Z)(function(){var V=(0,A.Z)((0,j.Z)().mark(function U(B){return(0,j.Z)().wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:S(B);case 1:case"end":return Q.stop()}},U)}));return function(U){return V.apply(this,arguments)}}(),160);return(0,l.jsx)("div",{className:"".concat(a,"-right-content"),style:{minWidth:b},children:(0,l.jsx)("div",{style:{paddingRight:8},children:(0,l.jsx)(Ke.Z,{onResize:function(U){var B=U.width;D.run(B)},children:o&&(0,l.jsx)("div",{className:"".concat(a,"-right-content-resize"),children:o((0,p.Z)((0,p.Z)({},m),{},{rightContentSize:b}))})})})})},rn=function(e){var o=(0,C.useRef)(null),a=e.theme,m=e.onMenuHeaderClick,h=e.contentWidth,g=e.rightContentRender,b=e.className,S=e.style,D=e.headerContentRender,V=e.layout,U="".concat(e.prefixCls||"ant-pro","-top-nav-header"),B=pt((0,p.Z)((0,p.Z)({},e),{},{collapsed:!1}),V==="mix"?"headerTitleRender":void 0),Y=ee()(U,b,{light:a==="light"}),Q=(0,l.jsx)(lt,(0,p.Z)((0,p.Z)({},e),e.menuProps)),ue=D?D==null?void 0:D(e,Q):Q;return(0,l.jsx)("div",{className:Y,style:S,children:(0,l.jsxs)("div",{ref:o,className:"".concat(U,"-main ").concat(h==="Fixed"?"wide":""),children:[B&&(0,l.jsx)("div",{className:"".concat(U,"-main-left"),onClick:m,children:(0,l.jsx)("div",{className:"".concat(U,"-logo"),id:"logo",children:B},"logo")}),(0,l.jsx)("div",{style:{flex:1},className:"".concat(U,"-menu"),children:ue}),g&&(0,l.jsx)(nn,(0,p.Z)({rightContentRender:g,prefixCls:U},e))]})})},Ut=rn,Rn=s(17124),an=function(e,o){return e===!1?null:e?e(o,null):o},on=function(e){var o=e.isMobile,a=e.logo,m=e.collapsed,h=e.onCollapse,g=e.collapsedButtonRender,b=g===void 0?Ht:g,S=e.rightContentRender,D=e.menuHeaderRender,V=e.onMenuHeaderClick,U=e.className,B=e.style,Y=e.layout,Q=e.children,ue=e.headerTheme,oe=ue===void 0?"dark":ue,Re=e.splitMenus,re=e.menuData,Be=e.prefixCls,Fe=(0,C.useContext)(fe.ZP.ConfigContext),Ye=Fe.direction,Te="".concat(Be,"-global-header"),ut=ee()(U,Te,(0,I.Z)({},"".concat(Te,"-layout-").concat(Y),Y&&oe==="dark"));if(Y==="mix"&&!o&&Re){var We=(re||[]).map(function(tt){return(0,p.Z)((0,p.Z)({},tt),{},{children:void 0,routes:void 0})}),pe=Ve(We);return(0,l.jsx)(Ut,(0,p.Z)((0,p.Z)({mode:"horizontal"},e),{},{splitMenus:!1,menuData:pe,theme:oe}))}var ct=ee()("".concat(Te,"-logo"),(0,I.Z)({},"".concat(Te,"-logo-rtl"),Ye==="rtl")),et=(0,l.jsx)("span",{className:ct,children:(0,l.jsx)("a",{children:Ft(a)})},"logo");return(0,l.jsxs)("div",{className:ut,style:(0,p.Z)({},B),children:[o&&an(D,et),o&&b&&(0,l.jsx)("span",{className:"".concat(Te,"-collapsed-button"),onClick:function(){h&&h(!m)},children:b(m)}),Y==="mix"&&!o&&(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:ct,onClick:V,children:pt((0,p.Z)((0,p.Z)({},e),{},{collapsed:!1}),"headerTitleRender")})}),(0,l.jsx)("div",{style:{flex:1},children:Q}),S&&S(e)]})},ln=on,sn=s(2828),gt=M.Z.Header,un=function(P){(0,qt.Z)(o,P);var e=(0,zt.Z)(o);function o(){var a;(0,Me.Z)(this,o);for(var m=arguments.length,h=new Array(m),g=0;g