(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[792],{41465:function(we,Te,m){"use strict";m.d(Te,{Z:function(){return Gn}});var u=m(75782),re=m(50959),le=m(76171),Ze=m(91600),z=m(24572),v=m(58733),te=m(84875),ve=m.n(te),g=(0,re.createContext)({}),he=g,$e=m(26143),pe=m(36914),I=m(31105),G=2,h=.16,M=.05,b=.05,w=.15,ue=5,X=4,P=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function x(p){var B=p.r,K=p.g,H=p.b,oe=(0,pe.py)(B,K,H);return{h:oe.h*360,s:oe.s,v:oe.v}}function A(p){var B=p.r,K=p.g,H=p.b;return"#".concat((0,pe.vq)(B,K,H,!1))}function O(p,B,K){var H=K/100,oe={r:(B.r-p.r)*H+p.r,g:(B.g-p.g)*H+p.g,b:(B.b-p.b)*H+p.b};return oe}function V(p,B,K){var H;return Math.round(p.h)>=60&&Math.round(p.h)<=240?H=K?Math.round(p.h)-G*B:Math.round(p.h)+G*B:H=K?Math.round(p.h)+G*B:Math.round(p.h)-G*B,H<0?H+=360:H>=360&&(H-=360),H}function Q(p,B,K){if(p.h===0&&p.s===0)return p.s;var H;return K?H=p.s-h*B:B===X?H=p.s+h:H=p.s+M*B,H>1&&(H=1),K&&B===ue&&H>.1&&(H=.1),H<.06&&(H=.06),Number(H.toFixed(2))}function xe(p,B,K){var H;return K?H=p.v+b*B:H=p.v-w*B,H>1&&(H=1),Number(H.toFixed(2))}function ce(p){for(var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},K=[],H=(0,I.uA)(p),oe=ue;oe>0;oe-=1){var Qe=x(H),Ye=A((0,I.uA)({h:V(Qe,oe,!0),s:Q(Qe,oe,!0),v:xe(Qe,oe,!0)}));K.push(Ye)}K.push(A(H));for(var Je=1;Je<=X;Je+=1){var tn=x(H),dn=A((0,I.uA)({h:V(tn,Je),s:Q(tn,Je),v:xe(tn,Je)}));K.push(dn)}return B.theme==="dark"?P.map(function(De){var Pn=De.index,bn=De.opacity,ke=A(O((0,I.uA)(B.backgroundColor||"#141414"),(0,I.uA)(K[Pn]),bn*100));return ke}):K}var ge={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},de={},k={};Object.keys(ge).forEach(function(p){de[p]=ce(ge[p]),de[p].primary=de[p][5],k[p]=ce(ge[p],{theme:"dark",backgroundColor:"#141414"}),k[p].primary=k[p][5]});var Le=de.red,ze=de.volcano,on=de.gold,Ne=de.orange,ln=de.yellow,en=de.lime,nn=de.green,fn=de.cyan,zn=de.blue,it=de.geekblue,lt=de.purple,bt=de.magenta,Xt=de.grey,St=m(60829),Zt=m(40150);function Mt(p,B){(0,St.ZP)(p,"[@ant-design/icons] ".concat(B))}function ut(p){return(0,$e.Z)(p)==="object"&&typeof p.name=="string"&&typeof p.theme=="string"&&((0,$e.Z)(p.icon)==="object"||typeof p.icon=="function")}function Tn(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(p).reduce(function(B,K){var H=p[K];switch(K){case"class":B.className=H,delete B.class;break;default:B[K]=H}return B},{})}function mn(p,B,K){return K?re.createElement(p.tag,(0,u.Z)((0,u.Z)({key:B},Tn(p.attrs)),K),(p.children||[]).map(function(H,oe){return mn(H,"".concat(B,"-").concat(p.tag,"-").concat(oe))})):re.createElement(p.tag,(0,u.Z)({key:B},Tn(p.attrs)),(p.children||[]).map(function(H,oe){return mn(H,"".concat(B,"-").concat(p.tag,"-").concat(oe))}))}function Kn(p){return ce(p)[0]}function dt(p){return p?Array.isArray(p)?p:[p]:[]}var Rn={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},Cn=`
.anticon {
  display: inline-block;
  color: inherit;
  font-style: normal;
  line-height: 0;
  text-align: center;
  text-transform: none;
  vertical-align: -0.125em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.anticon > * {
  line-height: 1;
}

.anticon svg {
  display: inline-block;
}

.anticon::before {
  display: none;
}

.anticon .anticon-icon {
  display: block;
}

.anticon[tabindex] {
  cursor: pointer;
}

.anticon-spin::before,
.anticon-spin {
  display: inline-block;
  -webkit-animation: loadingCircle 1s infinite linear;
  animation: loadingCircle 1s infinite linear;
}

@-webkit-keyframes loadingCircle {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes loadingCircle {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
`,ct=function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Cn,K=(0,re.useContext)(he),H=K.csp;(0,re.useEffect)(function(){(0,Zt.hq)(B,"@ant-design-icons",{prepend:!0,csp:H})},[])},$t=["icon","className","onClick","style","primaryColor","secondaryColor"],un={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function It(p){var B=p.primaryColor,K=p.secondaryColor;un.primaryColor=B,un.secondaryColor=K||Kn(B),un.calculated=!!K}function Tt(){return(0,u.Z)({},un)}var hn=function(B){var K=B.icon,H=B.className,oe=B.onClick,Qe=B.style,Ye=B.primaryColor,Je=B.secondaryColor,tn=(0,v.Z)(B,$t),dn=un;if(Ye&&(dn={primaryColor:Ye,secondaryColor:Je||Kn(Ye)}),ct(),Mt(ut(K),"icon should be icon definiton, but got ".concat(K)),!ut(K))return null;var De=K;return De&&typeof De.icon=="function"&&(De=(0,u.Z)((0,u.Z)({},De),{},{icon:De.icon(dn.primaryColor,dn.secondaryColor)})),mn(De.icon,"svg-".concat(De.name),(0,u.Z)({className:H,onClick:oe,style:Qe,"data-icon":De.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},tn))};hn.displayName="IconReact",hn.getTwoToneColors=Tt,hn.setTwoToneColors=It;var Un=hn;function st(p){var B=dt(p),K=(0,Ze.Z)(B,2),H=K[0],oe=K[1];return Un.setTwoToneColors({primaryColor:H,secondaryColor:oe})}function vt(){var p=Un.getTwoToneColors();return p.calculated?[p.primaryColor,p.secondaryColor]:p.primaryColor}var Ie=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];st("#1890ff");var _n=re.forwardRef(function(p,B){var K,H=p.className,oe=p.icon,Qe=p.spin,Ye=p.rotate,Je=p.tabIndex,tn=p.onClick,dn=p.twoToneColor,De=(0,v.Z)(p,Ie),Pn=re.useContext(he),bn=Pn.prefixCls,ke=bn===void 0?"anticon":bn,Rt=Pn.rootClassName,_t=ve()(Rt,ke,(K={},(0,z.Z)(K,"".concat(ke,"-").concat(oe.name),!!oe.name),(0,z.Z)(K,"".concat(ke,"-spin"),!!Qe||oe.name==="loading"),K),H),Xn=Je;Xn===void 0&&tn&&(Xn=-1);var Pt=Ye?{msTransform:"rotate(".concat(Ye,"deg)"),transform:"rotate(".concat(Ye,"deg)")}:void 0,wt=dt(dn),ft=(0,Ze.Z)(wt,2),Ke=ft[0],Sn=ft[1];return re.createElement("span",(0,u.Z)((0,u.Z)({role:"img","aria-label":oe.name},De),{},{ref:B,tabIndex:Xn,onClick:tn,className:_t}),re.createElement(Un,{icon:oe,primaryColor:Ke,secondaryColor:Sn,style:Pt}))});_n.displayName="AntdIcon",_n.getTwoToneColor=vt,_n.setTwoToneColor=st;var Oe=_n,gn=function(B,K){return re.createElement(Oe,(0,u.Z)((0,u.Z)({},B),{},{ref:K,icon:le.Z}))};gn.displayName="LogoutOutlined";var Gn=re.forwardRef(gn)},59953:function(we,Te,m){"use strict";m.d(Te,{f:function(){return No}});var u=m(24572),re=m(99932),le=m(78450),Ze=m(58733),z=m(91600),v=m(75782),te=m(35276),ve=m(95027),g=m(50959),he=m(37063);function $e(t,e){var n=typeof t.pageName=="string"?t.title:e;(0,g.useEffect)(function(){(0,he.j)()&&n&&(document.title=n)},[t.title,n])}var pe=m(6866);function I(t,e){return e>>>t|e<<32-t}function G(t,e,n){return t&e^~t&n}function h(t,e,n){return t&e^t&n^e&n}function M(t){return I(2,t)^I(13,t)^I(22,t)}function b(t){return I(6,t)^I(11,t)^I(25,t)}function w(t){return I(7,t)^I(18,t)^t>>>3}function ue(t){return I(17,t)^I(19,t)^t>>>10}function X(t,e){return t[e&15]+=ue(t[e+14&15])+t[e+9&15]+w(t[e+1&15])}var P=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],x,A,O,V="0123456789abcdef";function Q(t,e){var n=(t&65535)+(e&65535),r=(t>>16)+(e>>16)+(n>>16);return r<<16|n&65535}function xe(){x=new Array(8),A=new Array(2),O=new Array(64),A[0]=A[1]=0,x[0]=1779033703,x[1]=3144134277,x[2]=1013904242,x[3]=2773480762,x[4]=1359893119,x[5]=2600822924,x[6]=528734635,x[7]=1541459225}function ce(){var t,e,n,r,a,i,o,l,s,c,f=new Array(16);t=x[0],e=x[1],n=x[2],r=x[3],a=x[4],i=x[5],o=x[6],l=x[7];for(var Z=0;Z<16;Z++)f[Z]=O[(Z<<2)+3]|O[(Z<<2)+2]<<8|O[(Z<<2)+1]<<16|O[Z<<2]<<24;for(var S=0;S<64;S++)s=l+b(a)+G(a,i,o)+P[S],S<16?s+=f[S]:s+=X(f,S),c=M(t)+h(t,e,n),l=o,o=i,i=a,a=Q(r,s),r=n,n=e,e=t,t=Q(s,c);x[0]+=t,x[1]+=e,x[2]+=n,x[3]+=r,x[4]+=a,x[5]+=i,x[6]+=o,x[7]+=l}function ge(t,e){var n,r,a=0;r=A[0]>>3&63;var i=e&63;for((A[0]+=e<<3)<e<<3&&A[1]++,A[1]+=e>>29,n=0;n+63<e;n+=64){for(var o=r;o<64;o++)O[o]=t.charCodeAt(a++);ce(),r=0}for(var l=0;l<i;l++)O[l]=t.charCodeAt(a++)}function de(){var t=A[0]>>3&63;if(O[t++]=128,t<=56)for(var e=t;e<56;e++)O[e]=0;else{for(var n=t;n<64;n++)O[n]=0;ce();for(var r=0;r<56;r++)O[r]=0}O[56]=A[1]>>>24&255,O[57]=A[1]>>>16&255,O[58]=A[1]>>>8&255,O[59]=A[1]&255,O[60]=A[0]>>>24&255,O[61]=A[0]>>>16&255,O[62]=A[0]>>>8&255,O[63]=A[0]&255,ce()}function k(){for(var t=0,e=new Array(32),n=0;n<8;n++)e[t++]=x[n]>>>24&255,e[t++]=x[n]>>>16&255,e[t++]=x[n]>>>8&255,e[t++]=x[n]&255;return e}function Le(){for(var t=new String,e=0;e<8;e++)for(var n=28;n>=0;n-=4)t+=V.charAt(x[e]>>>n&15);return t}function ze(t){return xe(),ge(t,t.length),de(),Le()}var on=ze;function Ne(t){return Ne=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ne(t)}var ln=["pro_layout_parentKeys","children","icon","flatMenu","indexRoute","routes"];function en(t,e){return zn(t)||fn(t,e)||un(t,e)||nn()}function nn(){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 fn(t,e){var n=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],a=!0,i=!1,o,l;try{for(n=n.call(t);!(a=(o=n.next()).done)&&(r.push(o.value),!(e&&r.length===e));a=!0);}catch(s){i=!0,l=s}finally{try{!a&&n.return!=null&&n.return()}finally{if(i)throw l}}return r}}function zn(t){if(Array.isArray(t))return t}function it(t,e){var n=typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=un(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(c){throw c},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,l;return{s:function(){n=n.call(t)},n:function(){var c=n.next();return i=c.done,c},e:function(c){o=!0,l=c},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(o)throw l}}}}function lt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function bt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Xt(t,e,n){return e&&bt(t.prototype,e),n&&bt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function St(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Rn(t,e)}function Zt(t){var e=Kn();return function(){var r=Cn(t),a;if(e){var i=Cn(this).constructor;a=Reflect.construct(r,arguments,i)}else a=r.apply(this,arguments);return Mt(this,a)}}function Mt(t,e){if(e&&(Ne(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ut(t)}function ut(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Tn(t){var e=typeof Map=="function"?new Map:void 0;return Tn=function(r){if(r===null||!dt(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(r))return e.get(r);e.set(r,a)}function a(){return mn(r,arguments,Cn(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Rn(a,r)},Tn(t)}function mn(t,e,n){return Kn()?mn=Reflect.construct.bind():mn=function(a,i,o){var l=[null];l.push.apply(l,i);var s=Function.bind.apply(a,l),c=new s;return o&&Rn(c,o.prototype),c},mn.apply(null,arguments)}function Kn(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function dt(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Rn(t,e){return Rn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Rn(t,e)}function Cn(t){return Cn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Cn(t)}function ct(t){return Tt(t)||It(t)||un(t)||$t()}function $t(){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 un(t,e){if(t){if(typeof t=="string")return hn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hn(t,e)}}function It(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Tt(t){if(Array.isArray(t))return hn(t)}function hn(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Un(t,e){if(t==null)return{};var n=st(t,e),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)r=i[a],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function st(t,e){if(t==null)return{};var n={},r=Object.keys(t),a,i;for(i=0;i<r.length;i++)a=r[i],!(e.indexOf(a)>=0)&&(n[a]=t[a]);return n}function vt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function Ie(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?vt(Object(n),!0).forEach(function(r){_n(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vt(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function _n(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Oe="routes";function gn(t){return t.split("?")[0].split("#")[0]}var Gn=function(e){if(!e.startsWith("http"))return!1;try{var n=new URL(e);return!!n}catch(r){return!1}},p=function(e){var n=e.path;if(!n||n==="/")try{return"/".concat(on(JSON.stringify(e)))}catch(r){}return n&&gn(n)},B=function(e,n){var r=e.name,a=e.locale;return"locale"in e&&a===!1||!r?!1:e.locale||"".concat(n,".").concat(r)},K=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"/";return e.endsWith("/*")?e.replace("/*","/"):(e||n).startsWith("/")||Gn(e)?e:"/".concat(n,"/").concat(e).replace(/\/\//g,"/").replace(/\/\//g,"/")},H=function(e,n){var r=e.menu,a=r===void 0?{}:r,i=e.indexRoute,o=e.path,l=o===void 0?"":o,s=e.children||[],c=a.name,f=c===void 0?e.name:c,Z=a.icon,S=Z===void 0?e.icon:Z,_=a.hideChildren,U=_===void 0?e.hideChildren:_,N=a.flatMenu,j=N===void 0?e.flatMenu:N,E=i&&Object.keys(i).join(",")!=="redirect"?[Ie({path:l,menu:a},i)].concat(s||[]):s,D=Ie({},e);if(f&&(D.name=f),S&&(D.icon=S),E&&E.length){if(U)return delete D.children,D;var F=Qe(Ie(Ie({},n),{},{data:E}),e);if(j)return F;delete D[Oe]}return D},oe=function(e){return Array.isArray(e)&&e.length>0};function Qe(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{path:"/"},n=t.data,r=t.formatMessage,a=t.parentName,i=t.locale;return!n||!Array.isArray(n)?[]:n.filter(function(o){return o?oe(o.children)||o.path||o.originPath||o.layout?!0:(o.redirect||o.unaccessible,!1):!1}).filter(function(o){var l,s;return!(o==null||(l=o.menu)===null||l===void 0)&&l.name||o!=null&&o.flatMenu||!(o==null||(s=o.menu)===null||s===void 0)&&s.flatMenu?!0:o.menu!==!1}).map(function(o){var l=Ie(Ie({},o),{},{path:o.path||o.originPath});return!l.children&&l[Oe]&&(l.children=l[Oe],delete l[Oe]),l.unaccessible&&delete l.name,l.path==="*"&&(l.path="."),l.path==="/*"&&(l.path="."),!l.path&&l.originPath&&(l.path=l.originPath),l}).map(function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{path:"/"},l=o.children||o[Oe]||[],s=K(o.path,e?e.path:"/"),c=o.name,f=B(o,a||"menu"),Z=f!==!1&&i!==!1&&r&&f?r({id:f,defaultMessage:c}):c,S=e.pro_layout_parentKeys,_=S===void 0?[]:S,U=e.children,N=e.icon,j=e.flatMenu,E=e.indexRoute,D=e.routes,F=Un(e,ln),C=new Set([].concat(ct(_),ct(o.parentKeys||[])));e.key&&C.add(e.key);var $=Ie(Ie(Ie({},F),{},{menu:void 0},o),{},{path:s,locale:f,key:o.key||p(Ie(Ie({},o),{},{path:s})),pro_layout_parentKeys:Array.from(C).filter(function(R){return R&&R!=="/"})});if(Z?$.name=Z:delete $.name,$.menu===void 0&&delete $.menu,oe(l)){var W=Qe(Ie(Ie({},t),{},{data:l,parentName:f||""}),$);oe(W)&&($.children=W)}return H($,t)}).flat(1)}var Ye=function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.filter(function(n){return n&&(n.name||oe(n.children))&&!n.hideInMenu&&!n.redirect}).map(function(n){var r=Ie({},n),a=r.children||n[Oe]||[];if(delete r[Oe],oe(a)&&!r.hideChildrenInMenu&&a.some(function(o){return o&&!!o.name})){var i=t(a);if(i.length)return Ie(Ie({},r),{},{children:i})}return Ie({},n)}).filter(function(n){return n})},Je=function(t){St(n,t);var e=Zt(n);function n(){return lt(this,n),e.apply(this,arguments)}return Xt(n,[{key:"get",value:function(a){var i;try{var o=it(this.entries()),l;try{for(o.s();!(l=o.n()).done;){var s=en(l.value,2),c=s[0],f=s[1],Z=gn(c);if(!Gn(c)&&(0,pe.Bo)(Z,[]).test(a)){i=f;break}}}catch(S){o.e(S)}finally{o.f()}}catch(S){i=void 0}return i}}]),n}(Tn(Map)),tn=function(e){var n=new Je,r=function a(i,o){i.forEach(function(l){var s=l.children||l[Oe]||[];oe(s)&&a(s,l);var c=K(l.path,o?o.path:"/");n.set(gn(c),l)})};return r(e),n},dn=function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(function(n){var r=n.children||n[Oe];if(oe(r)){var a=t(r);if(a.length)return Ie({},n)}var i=Ie({},n);return delete i[Oe],delete i.children,i}).filter(function(n){return n})},De=function(e,n,r,a){var i=Qe({data:e,formatMessage:r,locale:n}),o=a?dn(i):Ye(i),l=tn(i);return{breadcrumb:l,menuData:o}},Pn=De;function bn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function ke(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?bn(Object(n),!0).forEach(function(r){Rt(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):bn(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Rt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var _t=function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n={};return e.forEach(function(r){var a=ke({},r);if(!(!a||!a.key)){!a.children&&a[Oe]&&(a.children=a[Oe],delete a[Oe]);var i=a.children||[];n[gn(a.path||a.key||"/")]=ke({},a),n[a.key||a.path||"/"]=ke({},a),i&&(n=ke(ke({},n),t(i)))}}),n},Xn=_t,Pt=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;return e.filter(function(a){if(a==="/"&&n==="/")return!0;if(a!=="/"&&a!=="/*"&&a&&!Gn(a)){var i=gn(a);try{if(r&&(0,pe.Bo)("".concat(i)).test(n)||(0,pe.Bo)("".concat(i),[]).test(n)||(0,pe.Bo)("".concat(i,"/(.*)")).test(n))return!0}catch(o){}}return!1}).sort(function(a,i){return a===n?10:i===n?-10:a.substr(1).split("/").length-i.substr(1).split("/").length})},wt=function(e,n,r,a){var i=Xn(n),o=Object.keys(i),l=Pt(o,e||"/",a);return!l||l.length<1?[]:(r||(l=[l[l.length-1]]),l.map(function(s){var c=i[s]||{pro_layout_parentKeys:"",key:""},f=new Map,Z=(c.pro_layout_parentKeys||[]).map(function(S){return f.has(S)?null:(f.set(S,!0),i[S])}).filter(function(S){return S});return c.key&&Z.push(c),Z}).flat(1))},ft=wt,Ke=m(50554),Sn=m(24538),Br=m(84875),ie=m.n(Br),Vt=m(71770),Nr=m(60829),Qt=m(94083);function Or(t,e){return Fr(t)||Wr(t,e)||Hr(t,e)||Dr()}function Dr(){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 Hr(t,e){if(t){if(typeof t=="string")return Yt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Yt(t,e)}}function Yt(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Wr(t,e){var n=t&&(typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"]);if(n!=null){var r=[],a=!0,i=!1,o,l;try{for(n=n.call(t);!(a=(o=n.next()).done)&&(r.push(o.value),!(e&&r.length===e));a=!0);}catch(s){i=!0,l=s}finally{try{!a&&n.return!=null&&n.return()}finally{if(i)throw l}}return r}}function Fr(t){if(Array.isArray(t))return t}function wn(t){var e=typeof window=="undefined",n=(0,g.useState)(function(){return e?!1:window.matchMedia(t).matches}),r=Or(n,2),a=r[0],i=r[1];return(0,g.useLayoutEffect)(function(){if(!e){var o=window.matchMedia(t),l=function(c){return i(c.matches)};return o.addListener(l),function(){return o.removeListener(l)}}},[t]),a}function zr(t,e){return Xr(t)||Gr(t,e)||Ur(t,e)||Kr()}function Kr(){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 Ur(t,e){if(t){if(typeof t=="string")return Jt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Jt(t,e)}}function Jt(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Gr(t,e){var n=t&&(typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"]);if(n!=null){var r=[],a=!0,i=!1,o,l;try{for(n=n.call(t);!(a=(o=n.next()).done)&&(r.push(o.value),!(e&&r.length===e));a=!0);}catch(s){i=!0,l=s}finally{try{!a&&n.return!=null&&n.return()}finally{if(i)throw l}}return r}}function Xr(t){if(Array.isArray(t))return t}var yn={xs:{maxWidth:575,matchMedia:"(max-width: 575px)"},sm:{minWidth:576,maxWidth:767,matchMedia:"(min-width: 576px) and (max-width: 767px)"},md:{minWidth:768,maxWidth:991,matchMedia:"(min-width: 768px) and (max-width: 991px)"},lg:{minWidth:992,maxWidth:1199,matchMedia:"(min-width: 992px) and (max-width: 1199px)"},xl:{minWidth:1200,maxWidth:1599,matchMedia:"(min-width: 1200px) and (max-width: 1599px)"},xxl:{minWidth:1600,matchMedia:"(min-width: 1600px)"}},Vr=function(){var e="md";if(typeof window=="undefined")return e;var n=Object.keys(yn).find(function(r){var a=yn[r].matchMedia;return!!window.matchMedia(a).matches});return e=n,e},Qr=function(){var e=wn(yn.md.matchMedia),n=wn(yn.lg.matchMedia),r=wn(yn.xxl.matchMedia),a=wn(yn.xl.matchMedia),i=wn(yn.sm.matchMedia),o=wn(yn.xs.matchMedia),l=(0,g.useState)(Vr()),s=zr(l,2),c=s[0],f=s[1];return(0,g.useEffect)(function(){if(r){f("xxl");return}if(a){f("xl");return}if(n){f("lg");return}if(e){f("md");return}if(i){f("sm");return}if(o){f("xs");return}f("md")},[e,n,r,a,i,o]),c},Yr=Qr,d=m(11527),Jr=function(){return(0,d.jsxs)("svg",{width:"1em",height:"1em",viewBox:"0 0 200 200",children:[(0,d.jsxs)("defs",{children:[(0,d.jsxs)("linearGradient",{x1:"62.1023273%",y1:"0%",x2:"108.19718%",y2:"37.8635764%",id:"linearGradient-1",children:[(0,d.jsx)("stop",{stopColor:"#4285EB",offset:"0%"}),(0,d.jsx)("stop",{stopColor:"#2EC7FF",offset:"100%"})]}),(0,d.jsxs)("linearGradient",{x1:"69.644116%",y1:"0%",x2:"54.0428975%",y2:"108.456714%",id:"linearGradient-2",children:[(0,d.jsx)("stop",{stopColor:"#29CDFF",offset:"0%"}),(0,d.jsx)("stop",{stopColor:"#148EFF",offset:"37.8600687%"}),(0,d.jsx)("stop",{stopColor:"#0A60FF",offset:"100%"})]}),(0,d.jsxs)("linearGradient",{x1:"69.6908165%",y1:"-12.9743587%",x2:"16.7228981%",y2:"117.391248%",id:"linearGradient-3",children:[(0,d.jsx)("stop",{stopColor:"#FA816E",offset:"0%"}),(0,d.jsx)("stop",{stopColor:"#F74A5C",offset:"41.472606%"}),(0,d.jsx)("stop",{stopColor:"#F51D2C",offset:"100%"})]}),(0,d.jsxs)("linearGradient",{x1:"68.1279872%",y1:"-35.6905737%",x2:"30.4400914%",y2:"114.942679%",id:"linearGradient-4",children:[(0,d.jsx)("stop",{stopColor:"#FA8E7D",offset:"0%"}),(0,d.jsx)("stop",{stopColor:"#F74A5C",offset:"51.2635191%"}),(0,d.jsx)("stop",{stopColor:"#F51D2C",offset:"100%"})]})]}),(0,d.jsx)("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd",children:(0,d.jsx)("g",{transform:"translate(-20.000000, -20.000000)",children:(0,d.jsx)("g",{transform:"translate(20.000000, 20.000000)",children:(0,d.jsxs)("g",{children:[(0,d.jsxs)("g",{fillRule:"nonzero",children:[(0,d.jsxs)("g",{children:[(0,d.jsx)("path",{d:"M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z",fill:"url(#linearGradient-1)"}),(0,d.jsx)("path",{d:"M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z",fill:"url(#linearGradient-2)"})]}),(0,d.jsx)("path",{d:"M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z",fill:"url(#linearGradient-3)"})]}),(0,d.jsx)("ellipse",{fill:"url(#linearGradient-4)",cx:"100.519339",cy:"100.436681",rx:"23.6001926",ry:"23.580786"})]})})})})]})},kr=m(73521),Fe=m(43447),qr=function(e){var n,r,a,i,o,l,s,c;return(0,u.Z)({},"".concat(e.proComponentsCls,"-layout"),(0,u.Z)({},"".concat(e.antCls,"-layout-header").concat(e.componentCls),{height:(e==null||(n=e.layout)===null||n===void 0||(r=n.header)===null||r===void 0?void 0:r.heightLayoutHeader)||56,lineHeight:"".concat((e==null||(a=e.layout)===null||a===void 0||(i=a.header)===null||i===void 0?void 0:i.heightLayoutHeader)||56,"px"),zIndex:19,width:"100%",paddingBlock:0,paddingInline:0,borderBlockEnd:"1px solid ".concat(e.colorSplit),backgroundColor:(e==null||(o=e.layout)===null||o===void 0||(l=o.header)===null||l===void 0?void 0:l.colorBgHeader)||"rgba(255, 255, 255, 0.4)",WebkitBackdropFilter:"blur(8px)",backdropFilter:"blur(8px)",transition:"background-color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)","&-fixed-header":{position:"fixed",insetBlockStart:0,width:"100%",zIndex:100,insetInlineEnd:0},"&-fixed-header-scroll":{backgroundColor:(e==null||(s=e.layout)===null||s===void 0||(c=s.header)===null||c===void 0?void 0:c.colorBgScrollHeader)||"rgba(255, 255, 255, 0.8)"},"&-header-actions":{display:"flex",alignItems:"center",fontSize:"16",cursor:"pointer","& &-item":{paddingBlock:0,paddingInline:8,"&:hover":{color:e.colorText}}},"&-header-realDark":{boxShadow:"0 2px 8px 0 rgba(0, 0, 0, 65%)"},"&-header-actions-header-action":{transition:"width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"}}))};function ea(t){return(0,Fe.Xj)("ProLayoutHeader",function(e){var n=(0,v.Z)((0,v.Z)({},e),{},{componentCls:".".concat(t)});return[qr(n)]})}var Vn=m(41201),Ue=m(45645),na={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"},ta=na,ra=m(26087),aa=function(e,n){return g.createElement(ra.Z,(0,Ue.Z)((0,Ue.Z)({},e),{},{ref:n,icon:ta}))},oa=g.forwardRef(aa),kt=m(56234),ia=m(11608),la=function(){return(0,d.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:(0,d.jsx)("path",{d:"M0 0h3v3H0V0zm4.5 0h3v3h-3V0zM9 0h3v3H9V0zM0 4.5h3v3H0v-3zm4.503 0h3v3h-3v-3zM9 4.5h3v3H9v-3zM0 9h3v3H0V9zm4.503 0h3v3h-3V9zM9 9h3v3H9V9z"})})},ua=function t(e){var n=e.appList,r=e.baseClassName,a=e.hashId,i=e.itemClick;return(0,d.jsx)("div",{className:"".concat(r,"-content ").concat(a),children:(0,d.jsx)("ul",{className:"".concat(r,"-content-list ").concat(a),children:n==null?void 0:n.map(function(o,l){var s;return o!=null&&(s=o.children)!==null&&s!==void 0&&s.length?(0,d.jsxs)("div",{className:"".concat(r,"-content-list-item-group ").concat(a),children:[(0,d.jsx)("div",{className:"".concat(r,"-content-list-item-group-title ").concat(a),children:o.title}),(0,d.jsx)(t,{hashId:a,itemClick:i,appList:o==null?void 0:o.children,baseClassName:r})]},l):(0,d.jsx)("li",{className:"".concat(r,"-content-list-item ").concat(a),children:(0,d.jsxs)("a",{href:i?"javascript:;":o.url,onClick:function(){return i==null?void 0:i(o)},target:o.target,rel:"noreferrer",children:[Et(o.icon),(0,d.jsxs)("div",{children:[(0,d.jsx)("div",{children:o.title}),o.desc?(0,d.jsx)("span",{children:o.desc}):null]})]})},l)})})})},jt=function(e){if(!e||!e.startsWith("http"))return!1;try{var n=new URL(e);return!!n}catch(r){return!1}},da=function(e,n){if(e&&typeof e=="string"&&jt(e))return(0,d.jsx)("img",{src:e,alt:"logo"});if(typeof e=="function")return e();if(e&&typeof e=="string")return(0,d.jsx)("div",{id:"avatarLogo",children:e});if(!e&&n&&typeof n=="string"){var r=n.substring(0,1);return(0,d.jsx)("div",{id:"avatarLogo",children:r})}return e},ca=function t(e){var n=e.appList,r=e.baseClassName,a=e.hashId,i=e.itemClick;return(0,d.jsx)("div",{className:"".concat(r,"-content ").concat(a),children:(0,d.jsx)("ul",{className:"".concat(r,"-content-list ").concat(a),children:n==null?void 0:n.map(function(o,l){var s;return o!=null&&(s=o.children)!==null&&s!==void 0&&s.length?(0,d.jsxs)("div",{className:"".concat(r,"-content-list-item-group ").concat(a),children:[(0,d.jsx)("div",{className:"".concat(r,"-content-list-item-group-title ").concat(a),children:o.title}),(0,d.jsx)(t,{hashId:a,itemClick:i,appList:o==null?void 0:o.children,baseClassName:r})]},l):(0,d.jsx)("li",{className:"".concat(r,"-content-list-item ").concat(a),children:(0,d.jsxs)("a",{href:i?"javascript:;":o.url,onClick:function(){return i==null?void 0:i(o)},target:o.target,rel:"noreferrer",children:[da(o.icon,o.title),(0,d.jsx)("div",{children:(0,d.jsx)("div",{children:o.title})})]})},l)})})})},sa=function(e){return{"&-content":{maxHeight:"calc(100vh - 48px)",overflow:"auto","&-list":{boxSizing:"content-box",maxWidth:656,marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none","&-item":{position:"relative",display:"inline-block",width:328,height:72,paddingInline:16,paddingBlock:16,verticalAlign:"top",listStyleType:"none",transition:"transform 0.2s cubic-bezier(0.333, 0, 0, 1)",borderRadius:e.borderRadius,"&-group":{marginBottom:16,"&-title":{margin:"16px 0 8px 12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginTop:12}}},"&:hover":{backgroundColor:e.colorBgTextHover},"* div":Fe.Wf===null||Fe.Wf===void 0?void 0:(0,Fe.Wf)(e),a:{display:"flex",height:"100%",fontSize:12,textDecoration:"none","& > img":{width:40,height:40},"& > div":{marginInlineStart:14,color:e.colorTextHeading,fontSize:14,lineHeight:"22px",whiteSpace:"nowrap",textOverflow:"ellipsis"},"& > div > span":{color:e.colorTextSecondary,fontSize:12,lineHeight:"20px"}}}}}}},va=function(e){return{"&-content":{maxHeight:"calc(100vh - 48px)",overflow:"auto","&-list":{boxSizing:"border-box",maxWidth:376,marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none","&-item":{position:"relative",display:"inline-block",width:104,height:104,marginBlock:8,marginInline:8,paddingInline:24,paddingBlock:24,verticalAlign:"top",listStyleType:"none",transition:"transform 0.2s cubic-bezier(0.333, 0, 0, 1)",borderRadius:e.borderRadius,"&-group":{marginBottom:16,"&-title":{margin:"16px 0 8px 12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginTop:12}}},"&:hover":{backgroundColor:e.colorBgTextHover},a:{display:"flex",flexDirection:"column",alignItems:"center",height:"100%",fontSize:12,textDecoration:"none","& > #avatarLogo":{width:40,height:40,margin:"0 auto",color:e.colorPrimary,fontSize:22,lineHeight:"40px",textAlign:"center",backgroundImage:"linear-gradient(180deg, #E8F0FB 0%, #F6F8FC 100%)",borderRadius:e.borderRadius},"& > img":{width:40,height:40},"& > div":{marginBlockStart:5,marginInlineStart:0,color:e.colorTextHeading,fontSize:14,lineHeight:"22px",whiteSpace:"nowrap",textOverflow:"ellipsis"},"& > div > span":{color:e.colorTextSecondary,fontSize:12,lineHeight:"20px"}}}}}}},fa=function(e){var n,r,a,i,o;return(0,u.Z)({},e.componentCls,{"&-icon":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingInline:4,paddingBlock:0,fontSize:14,lineHeight:"14px",height:28,width:28,cursor:"pointer",color:e==null||(n=e.layout)===null||n===void 0?void 0:n.colorTextAppListIcon,"&:hover":{color:e==null||(r=e.layout)===null||r===void 0?void 0:r.colorTextAppListIconHover,backgroundColor:e==null||(a=e.layout)===null||a===void 0?void 0:a.colorBgAppListIconHover},"&-active":{color:e==null||(i=e.layout)===null||i===void 0?void 0:i.colorTextAppListIconHover,backgroundColor:e==null||(o=e.layout)===null||o===void 0?void 0:o.colorBgAppListIconHover}},"&-item-title":{marginInlineStart:"16px",marginInlineEnd:"8px",marginBlockStart:0,marginBlockEnd:"12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginBlockStart:12}},"&-popover":(0,u.Z)({},"".concat(e.antCls,"-popover-arrow"),{display:"none"}),"&-simple":va(e),"&-default":sa(e)})};function ma(t){return(0,Fe.Xj)("AppsLogoComponents",function(e){var n=(0,v.Z)((0,v.Z)({},e),{},{componentCls:".".concat(t)});return[fa(n)]})}var Et=function(e){return typeof e=="string"?(0,d.jsx)("img",{width:"auto",height:22,src:e,alt:"logo"}):typeof e=="function"?e():e},Lt=function(e){var n,r=e.appList,a=e.prefixCls,i=a===void 0?"ant-pro":a,o=e.itemClick,l=g.useRef(null),s=g.useRef(null),c="".concat(i,"-layout-apps"),f=ma(c),Z=f.wrapSSR,S=f.hashId,_=(0,g.useState)(!1),U=(0,z.Z)(_,2),N=U[0],j=U[1],E=function($){o==null||o($,s)},D=(0,g.useMemo)(function(){var C=r==null?void 0:r.some(function($){return!($!=null&&$.desc)});return C?(0,d.jsx)(ca,{hashId:S,appList:r,itemClick:o?E:void 0,baseClassName:"".concat(c,"-simple")}):(0,d.jsx)(ua,{hashId:S,appList:r,itemClick:o?E:void 0,baseClassName:"".concat(c,"-default")})},[r,c,S]);if(!(e!=null&&(n=e.appList)!==null&&n!==void 0&&n.length))return null;var F=(0,kt.X)(void 0,function(C){return j(C)});return Z((0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{ref:l,onClick:function($){$.stopPropagation(),$.preventDefault()}}),(0,d.jsx)(ia.Z,(0,v.Z)((0,v.Z)({placement:"bottomRight",trigger:["click"],zIndex:9999,arrow:!1},F),{},{overlayClassName:"".concat(c,"-popover ").concat(S),content:D,getPopupContainer:function(){return l.current||document.body},children:(0,d.jsx)("span",{ref:s,onClick:function($){$.stopPropagation()},className:ie()("".concat(c,"-icon"),S,(0,u.Z)({},"".concat(c,"-icon-active"),N)),children:(0,d.jsx)(la,{})})}))]}))},qt=m(63538),ha=m(68243),er=m(59529);function ga(){return(0,d.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:(0,d.jsx)("path",{d:"M6.432 7.967a.448.448 0 01-.318.133h-.228a.46.46 0 01-.318-.133L2.488 4.85a.305.305 0 010-.43l.427-.43a.293.293 0 01.42 0L6 6.687l2.665-2.699a.299.299 0 01.426 0l.42.431a.305.305 0 010 .43L6.432 7.967z"})})}var ya=function(e){var n,r,a,i,o,l;return(0,u.Z)({},e.componentCls,{position:"absolute",insetBlockStart:"18px",zIndex:"101",width:"24px",height:"24px",fontSize:["14px","16px"],textAlign:"center",borderRadius:"40px",insetInlineEnd:"-13px",transition:"transform 0.3s",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",color:e==null||(n=e.layout)===null||n===void 0||(r=n.sider)===null||r===void 0?void 0:r.colorTextCollapsedButton,backgroundColor:e==null||(a=e.layout)===null||a===void 0||(i=a.sider)===null||i===void 0?void 0:i.colorBgCollapsedButton,boxShadow:"0 2px 8px -2px rgba(0,0,0,0.05), 0 1px 4px -1px rgba(25,15,15,0.07), 0 0 1px 0 rgba(0,0,0,0.08)","&:hover":{color:e==null||(o=e.layout)===null||o===void 0||(l=o.sider)===null||l===void 0?void 0:l.colorTextCollapsedButtonHover,boxShadow:"0 4px 16px -4px rgba(0,0,0,0.05), 0 2px 8px -2px rgba(25,15,15,0.07), 0 1px 2px 0 rgba(0,0,0,0.08)"},".anticon":{fontSize:"14px"},"& > svg":{transition:"transform  0.3s",transform:"rotate(90deg)"},"&-collapsed":{"& > svg":{transform:"rotate(-90deg)"}}})};function pa(t){return(0,Fe.Xj)("SiderMenuCollapsedIcon",function(e){var n=(0,v.Z)((0,v.Z)({},e),{},{componentCls:".".concat(t)});return[ya(n)]})}var xa=["isMobile","collapsed"],Ca=function(e){var n,r=e.isMobile,a=e.collapsed,i=(0,Ze.Z)(e,xa),o=pa(e.className),l=o.wrapSSR,s=o.hashId;return r&&a?null:l((0,d.jsx)("div",(0,v.Z)((0,v.Z)({},i),{},{className:ie()(e.className,s,(n={},(0,u.Z)(n,"".concat(e.className,"-collapsed"),a),(0,u.Z)(n,"".concat(e.className,"-is-mobile"),r),n)),children:(0,d.jsx)(ga,{})})))},mt=m(49544),ba=m(49962),Sa=m(40936),nr=m(18216),Za=m(58457),Ma=m(5980),ht=m(73736),$a=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],tr=g.forwardRef(function(t,e){var n=t.className,r=t.component,a=t.viewBox,i=t.spin,o=t.rotate,l=t.tabIndex,s=t.onClick,c=t.children,f=(0,nr.Z)(t,$a);(0,ht.Kp)(Boolean(r||c),"Should have `component` prop or `children`."),(0,ht.C3)();var Z=g.useContext(Ma.Z),S=Z.prefixCls,_=S===void 0?"anticon":S,U=Z.rootClassName,N=ie()(U,_,n),j=ie()((0,Za.Z)({},"".concat(_,"-spin"),!!i)),E=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,D=(0,Ue.Z)((0,Ue.Z)({},ht.vD),{},{className:j,style:E,viewBox:a});a||delete D.viewBox;var F=function(){return r?g.createElement(r,(0,Ue.Z)({},D),c):c?((0,ht.Kp)(Boolean(a)||g.Children.count(c)===1&&g.isValidElement(c)&&g.Children.only(c).type==="use","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),g.createElement("svg",(0,Ue.Z)((0,Ue.Z)({},D),{},{viewBox:a}),c)):null},C=l;return C===void 0&&s&&(C=-1),g.createElement("span",(0,Ue.Z)((0,Ue.Z)({role:"img"},f),{},{ref:e,tabIndex:C,onClick:s,className:N}),F())});tr.displayName="AntdIcon";var Ia=tr,Ta=["type","children"],rr=new Set;function Ra(t){return Boolean(typeof t=="string"&&t.length&&!rr.has(t))}function gt(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=t[e];if(Ra(n)){var r=document.createElement("script");r.setAttribute("src",n),r.setAttribute("data-namespace",n),t.length>e+1&&(r.onload=function(){gt(t,e+1)},r.onerror=function(){gt(t,e+1)}),rr.add(n),document.body.appendChild(r)}}function ar(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.scriptUrl,n=t.extraCommonProps,r=n===void 0?{}:n;e&&typeof document!="undefined"&&typeof window!="undefined"&&typeof document.createElement=="function"&&(Array.isArray(e)?gt(e.reverse()):gt([e]));var a=g.forwardRef(function(i,o){var l=i.type,s=i.children,c=(0,nr.Z)(i,Ta),f=null;return i.type&&(f=g.createElement("use",{xlinkHref:"#".concat(l)})),s&&(f=s),g.createElement(Ia,(0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({},r),c),{},{ref:o}),f)});return a.displayName="Iconfont",a}function _a(t){return/\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(t)}var Pa=m(37454),or=m(40315),wa=function(e,n){var r,a,i,o,l,s,c,f=n.includes("horizontal")?(r=e.layout)===null||r===void 0?void 0:r.header:(a=e.layout)===null||a===void 0?void 0:a.sider;return(0,u.Z)({},"".concat(e.componentCls),(c={background:"transparent",color:f==null?void 0:f.colorTextMenu,border:"none"},(0,u.Z)(c,"".concat(e.componentCls,"-menu-item"),{transition:"none !important"}),(0,u.Z)(c,"".concat(e.componentCls,"-submenu-has-icon"),(0,u.Z)({},"> ".concat(e.antCls,"-menu-sub"),{paddingInlineStart:10})),(0,u.Z)(c,"".concat(e.antCls,"-menu-title-content"),{width:"100%",height:"100%",display:"inline-flex"}),(0,u.Z)(c,"".concat(e.antCls,"-menu-title-content"),{"&:first-child":{width:"100%"}}),(0,u.Z)(c,"&&-collapsed",(i={},(0,u.Z)(i,"".concat(e.antCls,`-menu-item, 
        `).concat(e.antCls,"-menu-item-group > ").concat(e.antCls,"-menu-item-group-list > ").concat(e.antCls,`-menu-item, 
        `).concat(e.antCls,"-menu-item-group > ").concat(e.antCls,"-menu-item-group-list > ").concat(e.antCls,"-menu-submenu > ").concat(e.antCls,`-menu-submenu-title, 
        `).concat(e.antCls,"-menu-submenu > ").concat(e.antCls,"-menu-submenu-title"),{paddingInline:"0 !important",marginBlock:"4px !important"}),(0,u.Z)(i,"".concat(e.antCls,"-menu-item-group > ").concat(e.antCls,"-menu-item-group-list > ").concat(e.antCls,"-menu-submenu-selected > ").concat(e.antCls,`-menu-submenu-title, 
        `).concat(e.antCls,"-menu-submenu-selected > ").concat(e.antCls,"-menu-submenu-title"),{backgroundColor:f==null?void 0:f.colorBgMenuItemSelected,borderRadius:e.borderRadiusLG}),(0,u.Z)(i,"".concat(e.componentCls,"-group"),(0,u.Z)({},"".concat(e.antCls,"-menu-item-group-title"),{paddingInline:0})),i)),(0,u.Z)(c,"".concat(e.componentCls,"-item-icon"),{height:"14px",width:"14px",opacity:"0.85",lineHeight:"14px","> span.anticon":{lineHeight:"14px!important",height:"14px"}}),(0,u.Z)(c,"& &-item-title",(s={display:"flex",flexDirection:"row",alignItems:"center",gap:8,"&-collapsed":(o={flexDirection:"column",justifyContent:"center",minWidth:40,height:40},(0,u.Z)(o,"".concat(e.componentCls,"-item-icon"),{height:"16px",width:"16px",lineHeight:"16px !important",".anticon":{lineHeight:"16px",height:"16px"}}),(0,u.Z)(o,"".concat(e.componentCls,"-item-text"),{maxWidth:"100%"}),(0,u.Z)(o,"".concat(e.componentCls,"-item-text-has-icon"),{display:"none !important"}),o)},(0,u.Z)(s,"&".concat(e.componentCls,"-group-item-title"),{gap:4,height:18,overflow:"hidden"}),(0,u.Z)(s,"&".concat(e.componentCls,"-item-collapsed-show-title"),(0,u.Z)({lineHeight:"16px",height:"48px"},"&".concat(e.componentCls,"-item-title-collapsed"),(l={display:"flex"},(0,u.Z)(l,"".concat(e.componentCls,"-item-icon"),{height:"16px",width:"16px",lineHeight:"16px !important",".anticon":{lineHeight:"16px",height:"16px"}}),(0,u.Z)(l,"".concat(e.componentCls,"-item-text"),{opacity:"1 !important",display:"inline !important",textAlign:"center",fontSize:12,height:12,lineHeight:"12px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"100%",margin:0,padding:0,marginBlockStart:4}),l))),s)),(0,u.Z)(c,"&-group",(0,u.Z)({},"".concat(e.antCls,"-menu-item-group-title"),{fontSize:12,color:e.colorTextLabel,".anticon":{marginInlineEnd:8}})),(0,u.Z)(c,"&-group-divider",{color:e.colorTextSecondary,fontSize:12,lineHeight:20}),c))};function ja(t,e){return(0,Fe.Xj)("ProLayoutBaseMenu"+e,function(n){var r=(0,v.Z)((0,v.Z)({},n),{},{componentCls:".".concat(t)});return[wa(r,e||"inline")]})}var ir=ar({scriptUrl:or.h.iconfontUrl}),lr=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"icon-",r=arguments.length>2?arguments[2]:void 0;if(typeof e=="string"&&e!==""){if(jt(e)||_a(e))return(0,d.jsx)("img",{width:16,src:e,alt:"icon",className:r},e);if(e.startsWith(n))return(0,d.jsx)(ir,{type:e})}return e},ur=function(e){if(e&&typeof e=="string"){var n=e.substring(0,1).toUpperCase();return n}return null},Ea=(0,ba.Z)(function t(e){var n=this;(0,Sa.Z)(this,t),(0,u.Z)(this,"props",void 0),(0,u.Z)(this,"getNavMenuItems",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],a=arguments.length>1?arguments[1]:void 0;return r.map(function(i){return n.getSubMenuOrItem(i,a)}).filter(function(i){return i}).flat(1)}),(0,u.Z)(this,"getSubMenuOrItem",function(r,a){var i=n.props,o=i.subMenuItemRender,l=i.baseClassName,s=i.prefixCls,c=i.collapsed,f=i.menu,Z=i.iconPrefixes,S=i.layout,_=(f==null?void 0:f.type)==="group"&&S!=="top",U=n.props.token,N=n.getIntlName(r),j=(r==null?void 0:r.children)||(r==null?void 0:r.routes),E=_&&a===0?"group":void 0;if(Array.isArray(j)&&j.length>0){var D,F,C,$,W,R,ee,Y,J=a===0||_&&a===1,T=lr(r.icon,Z,"".concat(l,"-icon ").concat((D=n.props)===null||D===void 0?void 0:D.hashId)),q=c&&J?ur(N):null,ae=(0,d.jsxs)("div",{className:ie()("".concat(l,"-item-title"),(F=n.props)===null||F===void 0?void 0:F.hashId,(C={},(0,u.Z)(C,"".concat(l,"-item-title-collapsed"),c),(0,u.Z)(C,"".concat(l,"-group-item-title"),E==="group"),(0,u.Z)(C,"".concat(l,"-item-collapsed-show-title"),(f==null?void 0:f.collapsedShowTitle)&&c),C)),children:[E==="group"&&c?null:J&&T?(0,d.jsx)("span",{className:"".concat(l,"-item-icon ").concat(($=n.props)===null||$===void 0?void 0:$.hashId),children:T}):q,(0,d.jsx)("span",{className:ie()("".concat(l,"-item-text"),(W=n.props)===null||W===void 0?void 0:W.hashId,(0,u.Z)({},"".concat(l,"-item-text-has-icon"),E!=="group"&&J&&(T||q))),children:N})]}),ne=o?o((0,v.Z)((0,v.Z)({},r),{},{isUrl:!1}),ae,n.props):ae,se=n.getNavMenuItems(j,a+1);return _&&a===0&&n.props.collapsed&&!f.collapsedShowGroupTitle?se:[{type:E,key:r.key||r.path,label:ne,onClick:_?void 0:r.onTitleClick,children:se,className:ie()((R={},(0,u.Z)(R,"".concat(l,"-group"),E==="group"),(0,u.Z)(R,"".concat(l,"-submenu"),E!=="group"),(0,u.Z)(R,"".concat(l,"-submenu-has-icon"),E!=="group"&&J&&T),R))},_&&a===0?{type:"divider",prefixCls:s,className:"".concat(l,"-divider"),key:(r.key||r.path)+"-group-divider",style:{padding:0,borderBlockEnd:0,margin:n.props.collapsed?"4px":"6px 16px",marginBlockStart:n.props.collapsed?4:8,borderColor:U==null||(ee=U.layout)===null||ee===void 0||(Y=ee.sider)===null||Y===void 0?void 0:Y.colorMenuItemDivider}}:void 0].filter(Boolean)}return{className:"".concat(l,"-menu-item"),disabled:r.disabled,key:r.key||r.path,onClick:r.onTitleClick,label:n.getMenuItemPath(r,a)}}),(0,u.Z)(this,"getIntlName",function(r){var a=r.name,i=r.locale,o=n.props,l=o.menu,s=o.formatMessage;return i&&(l==null?void 0:l.locale)!==!1?s==null?void 0:s({id:i,defaultMessage:a}):a}),(0,u.Z)(this,"getMenuItemPath",function(r,a){var i,o,l,s,c,f=n.conversionPath(r.path||"/"),Z=n.props,S=Z.location,_=S===void 0?{pathname:"/"}:S,U=Z.isMobile,N=Z.onCollapse,j=Z.menuItemRender,E=Z.iconPrefixes,D=n.getIntlName(r),F=n.props,C=F.baseClassName,$=F.menu,W=F.collapsed,R=($==null?void 0:$.type)==="group",ee=a===0||R&&a===1,Y=ee?lr(r.icon,E,"".concat(C,"-icon ").concat((i=n.props)===null||i===void 0?void 0:i.hashId)):null,J=W&&ee?ur(D):null,T=(0,d.jsxs)("div",{className:ie()("".concat(C,"-item-title"),(o=n.props)===null||o===void 0?void 0:o.hashId,(l={},(0,u.Z)(l,"".concat(C,"-item-title-collapsed"),W),(0,u.Z)(l,"".concat(C,"-item-collapsed-show-title"),($==null?void 0:$.collapsedShowTitle)&&W),l)),children:[(0,d.jsx)("span",{className:"".concat(C,"-item-icon ").concat((s=n.props)===null||s===void 0?void 0:s.hashId),style:{display:J===null&&!Y?"none":""},children:Y||(0,d.jsx)("span",{className:"anticon",children:J})}),(0,d.jsx)("span",{className:ie()("".concat(C,"-item-text"),(c=n.props)===null||c===void 0?void 0:c.hashId,(0,u.Z)({},"".concat(C,"-item-text-has-icon"),ee&&(Y||J))),children:D})]},f),q=jt(f);if(q){var ae,ne,se,L;T=(0,d.jsxs)("span",{onClick:function(){var ye,fe;(ye=window)===null||ye===void 0||(fe=ye.open)===null||fe===void 0||fe.call(ye,f,"_blank")},className:ie()("".concat(C,"-item-title"),(ae=n.props)===null||ae===void 0?void 0:ae.hashId,(ne={},(0,u.Z)(ne,"".concat(C,"-item-title-collapsed"),W),(0,u.Z)(ne,"".concat(C,"-item-link"),!0),(0,u.Z)(ne,"".concat(C,"-item-collapsed-show-title"),($==null?void 0:$.collapsedShowTitle)&&W),ne)),children:[(0,d.jsx)("span",{className:"".concat(C,"-item-icon ").concat((se=n.props)===null||se===void 0?void 0:se.hashId),style:{display:J===null&&!Y?"none":""},children:Y||(0,d.jsx)("span",{className:"anticon",children:J})}),(0,d.jsx)("span",{className:ie()("".concat(C,"-item-text"),(L=n.props)===null||L===void 0?void 0:L.hashId,(0,u.Z)({},"".concat(C,"-item-text-has-icon"),ee&&(Y||J))),children:D})]},f)}if(j){var Ce=(0,v.Z)((0,v.Z)({},r),{},{isUrl:q,itemPath:f,isMobile:U,replace:f===_.pathname,onClick:function(){return N&&N(!0)},children:void 0});return j(Ce,T,n.props)}return T}),(0,u.Z)(this,"conversionPath",function(r){return r&&r.indexOf("http")===0?r:"/".concat(r||"").replace(/\/+/g,"/")}),this.props=e}),La=function(e,n){var r=n.layout,a=n.collapsed,i={};return e&&!a&&["side","mix"].includes(r||"mix")&&(i={openKeys:e}),i},dr=function(e){var n,r=e.mode,a=e.className,i=e.handleOpenChange,o=e.style,l=e.menuData,s=e.prefixCls,c=e.menu,f=e.matchMenuKeys,Z=e.iconfontUrl,S=e.selectedKeys,_=e.onSelect,U=e.menuRenderType,N=e.openKeys,j=(0,g.useContext)(te.L_),E=j.dark,D=j.token,F="".concat(s,"-base-menu-").concat(r),C=(0,g.useRef)([]),$=(0,ve.Z)(c==null?void 0:c.defaultOpenAll),W=(0,z.Z)($,2),R=W[0],ee=W[1],Y=(0,ve.Z)(function(){return c!=null&&c.defaultOpenAll?(0,Vn.O7)(l)||[]:N===!1?!1:[]},{value:N===!1?void 0:N,onChange:i}),J=(0,z.Z)(Y,2),T=J[0],q=J[1],ae=(0,ve.Z)([],{value:S,onChange:_?function(Re){_&&Re&&_(Re)}:void 0}),ne=(0,z.Z)(ae,2),se=ne[0],L=ne[1];(0,g.useEffect)(function(){c!=null&&c.defaultOpenAll||N===!1||f&&(q(f),L(f))},[f.join("-")]),(0,g.useEffect)(function(){Z&&(ir=ar({scriptUrl:Z}))},[Z]),(0,g.useEffect)(function(){if(f.join("-")!==(se||[]).join("-")&&L(f),!R&&N!==!1&&f.join("-")!==(T||[]).join("-")){var Re=f;(c==null?void 0:c.autoClose)===!1&&(Re=Array.from(new Set([].concat((0,mt.Z)(f),(0,mt.Z)(T||[]))))),q(Re)}else c!=null&&c.ignoreFlatMenu&&R?q((0,Vn.O7)(l)):ee(!1)},[f.join("-")]);var Ce=(0,g.useMemo)(function(){return La(T,e)},[T&&T.join(","),e.layout,e.collapsed]),je=ja(F,r),ye=je.wrapSSR,fe=je.hashId,_e=(0,g.useMemo)(function(){return new Ea((0,v.Z)((0,v.Z)({},e),{},{token:D,menuRenderType:U,baseClassName:F,hashId:fe}))},[e,D,U,F,fe]);if(c!=null&&c.loading)return(0,d.jsx)("div",{style:r!=null&&r.includes("inline")?{padding:24}:{marginBlockStart:16},children:(0,d.jsx)(Pa.Z,{active:!0,title:!1,paragraph:{rows:r!=null&&r.includes("inline")?6:1}})});e.openKeys===!1&&!e.handleOpenChange&&(C.current=f);var Ee=e.postMenuData?e.postMenuData(l):l;return Ee&&(Ee==null?void 0:Ee.length)<1?null:ye((0,g.createElement)(er.Z,(0,v.Z)((0,v.Z)({},Ce),{},{key:"Menu",mode:r,inlineIndent:16,defaultOpenKeys:C.current,theme:E?"dark":"light",selectedKeys:se,style:(0,v.Z)({backgroundColor:"transparent",border:"none"},o),className:ie()(a,fe,F,(n={},(0,u.Z)(n,"".concat(F,"-horizontal"),r==="horizontal"),(0,u.Z)(n,"".concat(F,"-collapsed"),e.collapsed),n)),items:_e.getNavMenuItems(Ee,0),onOpenChange:function(He){e.collapsed||q(He)}},e.menuProps)))};function Aa(t,e){var n=e.stylish,r=e.proLayoutCollapsedWidth;return(0,Fe.Xj)("ProLayoutSiderMenuStylish",function(a){var i=(0,v.Z)((0,v.Z)({},a),{},{componentCls:".".concat(t),proLayoutCollapsedWidth:r});return n?[(0,u.Z)({},"div".concat(a.proComponentsCls,"-layout"),(0,u.Z)({},"".concat(i.componentCls),n==null?void 0:n(i)))]:[]})}var Ba=["title","render"],Na=Sn.Z.Sider,At=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"menuHeaderRender",r=e.logo,a=e.title,i=e.layout,o=e[n||""];if(o===!1)return null;var l=Et(r),s=(0,d.jsx)("h1",{children:a!=null?a:"Ant Design Pro"});return o?o(l,e.collapsed?null:s,e):e.isMobile?null:i==="mix"&&n==="menuHeaderRender"?!1:e.collapsed?(0,d.jsx)("a",{children:l},"title"):(0,d.jsxs)("a",{children:[l,s]},"title")},cr=function(e){var n,r,a=e.collapsed,i=e.originCollapsed,o=e.fixSiderbar,l=e.menuFooterRender,s=e.onCollapse,c=e.theme,f=e.siderWidth,Z=e.isMobile,S=e.onMenuHeaderClick,_=e.breakpoint,U=_===void 0?"lg":_,N=e.style,j=e.layout,E=e.menuExtraRender,D=E===void 0?!1:E,F=e.links,C=e.menuContentRender,$=e.collapsedButtonRender,W=e.prefixCls,R=e.avatarProps,ee=e.rightContentRender,Y=e.actionsRender,J=e.onOpenChange,T=e.stylish,q=e.logoStyle,ae=(0,g.useContext)(te.L_),ne=ae.hashId,se=(0,g.useMemo)(function(){return!(Z||j==="mix")},[Z,j]),L="".concat(W,"-sider"),Ce=64,je=Aa("".concat(L,".").concat(L,"-stylish"),{stylish:T,proLayoutCollapsedWidth:Ce}),ye=ie()("".concat(L),ne,(n={},(0,u.Z)(n,"".concat(L,"-fixed"),o),(0,u.Z)(n,"".concat(L,"-fixed-mix"),j==="mix"&&!Z&&o),(0,u.Z)(n,"".concat(L,"-collapsed"),e.collapsed),(0,u.Z)(n,"".concat(L,"-layout-").concat(j),j&&!Z),(0,u.Z)(n,"".concat(L,"-light"),c!=="dark"),(0,u.Z)(n,"".concat(L,"-mix"),j==="mix"&&!Z),(0,u.Z)(n,"".concat(L,"-stylish"),!!T),n)),fe=At(e),_e=D&&D(e),Ee=(0,g.useMemo)(function(){return C!==!1&&(0,g.createElement)(dr,(0,v.Z)((0,v.Z)({},e),{},{key:"base-menu",mode:"inline",handleOpenChange:J,style:{width:"100%"},className:"".concat(L,"-menu ").concat(ne)}))},[L,ne,C,J,e]),Re=(F||[]).map(function(Pe,Ae){return{className:"".concat(L,"-link"),label:Pe,key:Ae}}),He=(0,g.useMemo)(function(){return C?C(e,Ee):Ee},[C,Ee,e]),We=(0,g.useMemo)(function(){if(!R)return null;var Pe=R.title,Ae=R.render,qe=(0,Ze.Z)(R,Ba),rn=(0,d.jsxs)("div",{className:"".concat(L,"-actions-avatar"),children:[(0,d.jsx)(qt.C,(0,v.Z)({size:28},qe)),R.title&&!a&&(0,d.jsx)("span",{children:Pe})]});return Ae?Ae(R,rn):rn},[R,L,a]),Ge=(0,g.useMemo)(function(){return Y?(0,d.jsx)(ha.Z,{align:"center",size:4,direction:a?"vertical":"horizontal",className:ie()(["".concat(L,"-actions-list"),a&&"".concat(L,"-actions-list-collapsed"),ne]),children:Y==null?void 0:Y(e).map(function(Pe,Ae){return(0,d.jsx)("div",{className:"".concat(L,"-actions-list-item ").concat(ne),children:Pe},Ae)})}):null},[Y,L,a]),Xe=(0,g.useMemo)(function(){return(0,d.jsx)(Lt,{itemClick:e.itemClick,appList:e.appList,prefixCls:e.prefixCls})},[e.appList,e.prefixCls]),be=(0,g.useMemo)(function(){if($===!1)return null;var Pe=(0,d.jsx)(Ca,{isMobile:Z,collapsed:i,className:"".concat(L,"-collapsed-button"),onClick:function(){s==null||s(!i)}});return $?$(a,Pe):Pe},[$,Z,i,L,a,s]),cn=(0,g.useMemo)(function(){return!We&&!Ge?null:(0,d.jsxs)("div",{className:ie()("".concat(L,"-actions"),ne,a&&"".concat(L,"-actions-collapsed")),children:[We,Ge]})},[Ge,We,L,a,ne]),Ve=(0,g.useMemo)(function(){var Pe;return e!=null&&(Pe=e.menu)!==null&&Pe!==void 0&&Pe.hideMenuWhenCollapsed&&a?"".concat(L,"-hide-menu-collapsed"):null},[L,a,e==null||(r=e.menu)===null||r===void 0?void 0:r.hideMenuWhenCollapsed]),Se=l&&(l==null?void 0:l(e)),sn=(0,d.jsxs)(d.Fragment,{children:[fe&&(0,d.jsxs)("div",{className:ie()([ie()("".concat(L,"-logo"),ne,(0,u.Z)({},"".concat(L,"-logo-collapsed"),a))]),onClick:se?S:void 0,id:"logo",style:q,children:[fe,Xe]}),_e&&(0,d.jsx)("div",{className:ie()(["".concat(L,"-extra"),!fe&&"".concat(L,"-extra-no-logo"),ne]),children:_e}),(0,d.jsx)("div",{style:{flex:1,overflowY:"auto",overflowX:"hidden"},children:He}),F?(0,d.jsx)("div",{className:"".concat(L,"-links ").concat(ne),children:(0,d.jsx)(er.Z,{inlineIndent:16,className:"".concat(L,"-link-menu ").concat(ne),selectedKeys:[],openKeys:[],theme:c,mode:"inline",items:Re})}):null,se&&(0,d.jsxs)(d.Fragment,{children:[cn,!Ge&&ee?(0,d.jsx)("div",{className:ie()("".concat(L,"-actions"),ne,(0,u.Z)({},"".concat(L,"-actions-collapsed"),a)),children:ee==null?void 0:ee(e)}):null]}),Se&&(0,d.jsx)("div",{className:ie()(["".concat(L,"-footer"),ne,(0,u.Z)({},"".concat(L,"-footer-collapsed"),a)]),children:Se})]});return je.wrapSSR((0,d.jsxs)(d.Fragment,{children:[o&&!Z&&!Ve&&(0,d.jsx)("div",{style:(0,v.Z)({width:a?Ce:f,overflow:"hidden",flex:"0 0 ".concat(a?Ce:f,"px"),maxWidth:a?Ce:f,minWidth:a?Ce:f,transition:"all 0.2s ease 0s"},N)}),(0,d.jsxs)(Na,{collapsible:!0,trigger:null,collapsed:a,breakpoint:U===!1?void 0:U,onCollapse:function(Ae){Z||s==null||s(Ae)},collapsedWidth:Ce,style:N,theme:c,width:f,className:ie()(ye,ne,Ve),children:[Ve?(0,d.jsx)("div",{className:"".concat(L,"-hide-when-collapsed ").concat(ne),style:{height:"100%",width:"100%",opacity:Ve?0:1},children:sn}):sn,be]})]}))},Oa=m(57939),Da=m(71860),Ha=function(e){var n,r,a,i,o,l;return(0,u.Z)({},e.componentCls,{"&-header-actions":{display:"flex",height:"100%","&-item":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingBlock:0,paddingInline:2,color:e==null||(n=e.layout)===null||n===void 0||(r=n.header)===null||r===void 0?void 0:r.colorTextRightActionsItem,fontSize:"16px",cursor:"pointer",borderRadius:e.borderRadius,"> *":{paddingInline:6,paddingBlock:6,borderRadius:e.borderRadius,"&:hover":{backgroundColor:e==null||(a=e.layout)===null||a===void 0||(i=a.header)===null||i===void 0?void 0:i.colorBgRightActionsItemHover}}},"&-avatar":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingInlineStart:e.padding,paddingInlineEnd:e.padding,cursor:"pointer",color:e.colorTextSecondary,"> div":{height:"44px",color:e.colorTextSecondary,paddingInline:8,paddingBlock:8,cursor:"pointer",display:"flex",alignItems:"center",lineHeight:"44px",borderRadius:e.borderRadius,"&:hover":{backgroundColor:e==null||(o=e.layout)===null||o===void 0||(l=o.header)===null||l===void 0?void 0:l.colorBgRightActionsItemHover}}}}})};function Wa(t){return(0,Fe.Xj)("ProLayoutRightContent",function(e){var n=(0,v.Z)((0,v.Z)({},e),{},{componentCls:".".concat(t)});return[Ha(n)]})}var Fa=["rightContentRender","avatarProps","actionsRender","headerContentRender"],za=["title","render"],sr=function(e){var n=e.rightContentRender,r=e.avatarProps,a=e.actionsRender,i=e.headerContentRender,o=(0,Ze.Z)(e,Fa),l=(0,g.useContext)(Ke.ZP.ConfigContext),s=l.getPrefixCls,c="".concat(s(),"-pro-global-header"),f=Wa(c),Z=f.wrapSSR,S=f.hashId,_=(0,g.useState)("auto"),U=(0,z.Z)(_,2),N=U[0],j=U[1],E=(0,g.useMemo)(function(){if(!r)return null;var $=r.title,W=r.render,R=(0,Ze.Z)(r,za),ee=[(0,g.createElement)(qt.C,(0,v.Z)((0,v.Z)({},R),{},{size:28,key:"avatar"})),$?(0,d.jsx)("span",{style:{marginInlineStart:8},children:$},"name"):void 0];return W?W(r,(0,d.jsx)("div",{children:ee})):(0,d.jsx)("div",{children:ee})},[r]),D=a||E?function($){var W=a&&(a==null?void 0:a($));return!W&&!E?null:(Array.isArray(W)||(W=[W]),Z((0,d.jsxs)("div",{className:"".concat(c,"-header-actions ").concat(S),children:[W.filter(Boolean).map(function(R,ee){var Y=!1;if(g.isValidElement(R)){var J;Y=!!(R!=null&&(J=R.props)!==null&&J!==void 0&&J["aria-hidden"])}return(0,d.jsx)("div",{className:ie()("".concat(c,"-header-actions-item ").concat(S),(0,u.Z)({},"".concat(c,"-header-actions-hover"),!Y)),children:R},ee)}),E&&(0,d.jsx)("span",{className:"".concat(c,"-header-actions-avatar ").concat(S),children:E})]})))}:void 0,F=(0,Oa.D)(function(){var $=(0,le.Z)((0,re.Z)().mark(function W(R){return(0,re.Z)().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:j(R);case 1:case"end":return Y.stop()}},W)}));return function(W){return $.apply(this,arguments)}}(),160),C=D||n;return(0,d.jsx)("div",{className:"".concat(c,"-right-content ").concat(S),style:{minWidth:N,height:"100%"},children:(0,d.jsx)("div",{style:{height:"100%"},children:(0,d.jsx)(Da.Z,{onResize:function(W){var R=W.width;F.run(R)},children:C?(0,d.jsx)("div",{style:{display:"flex",alignItems:"center",height:"100%",justifyContent:"flex-end"},children:C((0,v.Z)((0,v.Z)({},o),{},{rightContentSize:N}))}):null})})})},Ka=function(e){var n,r,a,i;return(0,u.Z)({},e.componentCls,{position:"relative",width:"100%",height:"100%",backgroundColor:"transparent",".anticon":{color:"inherit"},"&-main":{display:"flex",height:"100%",paddingInlineStart:"16px","&-left":(0,u.Z)({display:"flex",alignItems:"center"},"".concat(e.proComponentsCls,"-layout-apps-icon"),{marginInlineEnd:16,marginInlineStart:-8})},"&-wide":{maxWidth:1152,margin:"0 auto"},"&-logo":{position:"relative",display:"flex",height:"100%",alignItems:"center",overflow:"hidden","> *:first-child":{display:"flex",alignItems:"center",minHeight:"22px",fontSize:"22px"},"> *:first-child > img":{display:"inline-block",height:"32px",verticalAlign:"middle"},"> *:first-child > h1":{display:"inline-block",marginBlock:0,marginInline:0,lineHeight:"24px",marginInlineStart:6,fontWeight:"600",fontSize:"16px",color:e==null||(n=e.layout)===null||n===void 0||(r=n.header)===null||r===void 0?void 0:r.colorHeaderTitle,verticalAlign:"top"}},"&-menu":{minWidth:0,display:"flex",alignItems:"center",paddingInline:6,paddingBlock:6,lineHeight:"".concat(Math.max(((e==null||(a=e.layout)===null||a===void 0||(i=a.header)===null||i===void 0?void 0:i.heightLayoutHeader)||56)-12,40),"px")}})};function Ua(t){return(0,Fe.Xj)("ProLayoutTopNavHeader",function(e){var n=(0,v.Z)((0,v.Z)({},e),{},{componentCls:".".concat(t)});return[Ka(n)]})}var vr=function(e){var n,r,a,i,o,l,s,c,f,Z,S,_,U=(0,g.useRef)(null),N=e.onMenuHeaderClick,j=e.contentWidth,E=e.rightContentRender,D=e.className,F=e.style,C=e.headerContentRender,$=e.layout,W=e.actionsRender,R=(0,g.useContext)(Ke.ZP.ConfigContext),ee=R.getPrefixCls,Y=(0,g.useContext)(te.L_),J=Y.dark,T=Y.token,q="".concat(e.prefixCls||ee("pro"),"-top-nav-header"),ae=Ua(q),ne=ae.wrapSSR,se=ae.hashId,L=void 0;e.menuHeaderRender!==void 0?L="menuHeaderRender":($==="mix"||$==="top")&&(L="headerTitleRender");var Ce=At((0,v.Z)((0,v.Z)({},e),{},{collapsed:!1}),L),je=(0,g.useMemo)(function(){var ye,fe=(0,d.jsx)(dr,(0,v.Z)((0,v.Z)((0,v.Z)({theme:J?"dark":"light"},e),{},{className:"".concat(q,"-base-menu ").concat(se)},e.menuProps),{},{style:(0,v.Z)({width:"100%"},(ye=e.menuProps)===null||ye===void 0?void 0:ye.style),collapsed:!1,menuRenderType:"header",mode:"horizontal"}));return C?C(e,fe):fe},[T==null||(n=T.layout)===null||n===void 0||(r=n.header)===null||r===void 0?void 0:r.colorBgHeader,T==null||(a=T.layout)===null||a===void 0||(i=a.header)===null||i===void 0?void 0:i.colorBgMenuItemSelected,T==null||(o=T.layout)===null||o===void 0||(l=o.header)===null||l===void 0?void 0:l.colorBgMenuItemHover,T==null||(s=T.layout)===null||s===void 0||(c=s.header)===null||c===void 0?void 0:c.colorTextMenu,T==null||(f=T.layout)===null||f===void 0||(Z=f.header)===null||Z===void 0?void 0:Z.colorTextMenuActive,T==null||(S=T.layout)===null||S===void 0||(_=S.header)===null||_===void 0?void 0:_.colorTextMenuSelected,T==null?void 0:T.colorBgTextHover,T==null?void 0:T.colorTextSecondary,T==null?void 0:T.colorText,T==null?void 0:T.colorTextBase,e,q,se,C]);return ne((0,d.jsx)("div",{className:ie()(q,se,D,(0,u.Z)({},"".concat(q,"-light"),!0)),style:F,children:(0,d.jsxs)("div",{ref:U,className:ie()("".concat(q,"-main"),se,(0,u.Z)({},"".concat(q,"-wide"),j==="Fixed")),children:[Ce&&(0,d.jsxs)("div",{className:ie()("".concat(q,"-main-left ").concat(se)),onClick:N,children:[(0,d.jsx)(Lt,(0,v.Z)({},e)),(0,d.jsx)("div",{className:"".concat(q,"-logo ").concat(se),id:"logo",children:Ce},"logo")]}),(0,d.jsx)("div",{style:{flex:1},className:"".concat(q,"-menu ").concat(se),children:je}),(E||W||e.avatarProps)&&(0,d.jsx)(sr,(0,v.Z)((0,v.Z)({rightContentRender:E},e),{},{prefixCls:q}))]})}))},Ga=function(e){var n,r,a,i,o,l,s;return(0,u.Z)({},e.componentCls,(s={position:"relative",background:"transparent",display:"flex",alignItems:"center",marginBlock:0,marginInline:16,height:((n=e.layout)===null||n===void 0||(r=n.header)===null||r===void 0?void 0:r.heightLayoutHeader)||56,boxSizing:"border-box","> a":{height:"100%"}},(0,u.Z)(s,"".concat(e.proComponentsCls,"-layout-apps-icon"),{marginInlineEnd:16}),(0,u.Z)(s,"&-collapsed-button",{minHeight:"22px",color:e==null||(a=e.layout)===null||a===void 0||(i=a.header)===null||i===void 0?void 0:i.colorHeaderTitle,fontSize:"18px",marginInlineEnd:"16px"}),(0,u.Z)(s,"&-logo",{position:"relative",marginInlineEnd:"16px",a:{display:"flex",alignItems:"center",height:"100%",minHeight:"22px",fontSize:"20px"},img:{height:"28px"},h1:{height:"32px",marginBlock:0,marginInline:0,marginInlineStart:8,fontWeight:"600",color:((o=e.layout)===null||o===void 0||(l=o.header)===null||l===void 0?void 0:l.colorHeaderTitle)||e.colorTextHeading,fontSize:"18px",lineHeight:"32px"},"&-mix":{display:"flex",alignItems:"center"}}),(0,u.Z)(s,"&-logo-mobile",{minWidth:"24px",marginInlineEnd:0}),s))};function Xa(t){return(0,Fe.Xj)("ProLayoutGlobalHeader",function(e){var n=(0,v.Z)((0,v.Z)({},e),{},{componentCls:".".concat(t)});return[Ga(n)]})}var Va=function(e,n){return e===!1?null:e?e(n,null):n},Qa=function(e){var n,r=e.isMobile,a=e.logo,i=e.collapsed,o=e.onCollapse,l=e.rightContentRender,s=e.menuHeaderRender,c=e.onMenuHeaderClick,f=e.className,Z=e.style,S=e.layout,_=e.children,U=e.splitMenus,N=e.menuData,j=e.prefixCls,E=(0,g.useContext)(Ke.ZP.ConfigContext),D=E.getPrefixCls,F=E.direction,C="".concat(j||D("pro"),"-global-header"),$=Xa(C),W=$.wrapSSR,R=$.hashId,ee=ie()(f,C,R);if(S==="mix"&&!r&&U){var Y=(N||[]).map(function(ae){return(0,v.Z)((0,v.Z)({},ae),{},{children:void 0,routes:void 0})}),J=(0,Vn.QX)(Y);return(0,d.jsx)(vr,(0,v.Z)((0,v.Z)({mode:"horizontal"},e),{},{splitMenus:!1,menuData:J}))}var T=ie()("".concat(C,"-logo"),R,(n={},(0,u.Z)(n,"".concat(C,"-logo-rtl"),F==="rtl"),(0,u.Z)(n,"".concat(C,"-logo-mix"),S==="mix"),(0,u.Z)(n,"".concat(C,"-logo-mobile"),r),n)),q=(0,d.jsx)("span",{className:T,children:(0,d.jsx)("a",{children:Et(a)})},"logo");return W((0,d.jsxs)("div",{className:ee,style:(0,v.Z)({},Z),children:[r&&(0,d.jsx)("span",{className:"".concat(C,"-collapsed-button ").concat(R),onClick:function(){o==null||o(!i)},children:(0,d.jsx)(oa,{})}),r&&Va(s,q),S==="mix"&&!r&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Lt,(0,v.Z)({},e)),(0,d.jsx)("div",{className:T,onClick:c,children:At((0,v.Z)((0,v.Z)({},e),{},{collapsed:!1}),"headerTitleRender")})]}),(0,d.jsx)("div",{style:{flex:1},children:_}),(l||e.actionsRender||e.avatarProps)&&(0,d.jsx)(sr,(0,v.Z)({rightContentRender:l},e))]}))};function Ya(t,e){var n=e.stylish,r=e.proLayoutCollapsedWidth;return(0,Fe.Xj)("ProLayoutHeaderStylish",function(a){var i=(0,v.Z)((0,v.Z)({},a),{},{componentCls:".".concat(t),proLayoutCollapsedWidth:r});return n?[(0,u.Z)({},"div".concat(a.proComponentsCls,"-layout"),(0,u.Z)({},"".concat(i.componentCls),n==null?void 0:n(i)))]:[]})}var fr=Sn.Z.Header,Ja=function(e){var n,r,a,i,o,l,s,c=e.isMobile,f=e.fixedHeader,Z=e.className,S=e.style,_=e.collapsed,U=e.prefixCls,N=e.onCollapse,j=e.layout,E=e.headerRender,D=e.headerContentRender,F=(0,g.useContext)(te.L_),C=F.token,$=(0,g.useContext)(Ke.ZP.ConfigContext),W=(0,g.useState)(!1),R=(0,z.Z)(W,2),ee=R[0],Y=R[1],J=f||j==="mix",T=(0,g.useCallback)(function(){var ye=j==="top",fe=(0,Vn.QX)(e.menuData||[]),_e=(0,d.jsx)(Qa,(0,v.Z)((0,v.Z)({onCollapse:N},e),{},{menuData:fe,children:D&&D(e,null)}));return ye&&!c&&(_e=(0,d.jsx)(vr,(0,v.Z)((0,v.Z)({mode:"horizontal",onCollapse:N},e),{},{menuData:fe}))),E&&typeof E=="function"?E(e,_e):_e},[D,E,c,j,N,e]);(0,g.useEffect)(function(){var ye,fe=($==null||(ye=$.getTargetContainer)===null||ye===void 0?void 0:ye.call($))||document.body,_e=function(){var Re,He,We=fe.scrollTop;return We>((C==null||(Re=C.layout)===null||Re===void 0||(He=Re.header)===null||He===void 0?void 0:He.heightLayoutHeader)||56)&&!We?(Y(!0),!0):(We&&Y(!1),!1)};if(J&&typeof window!="undefined")return fe.addEventListener("scroll",_e,{passive:!0}),function(){fe.removeEventListener("scroll",_e)}},[C==null||(n=C.layout)===null||n===void 0||(r=n.header)===null||r===void 0?void 0:r.heightLayoutHeader,J]);var q=j==="top",ae="".concat(U,"-layout-header"),ne=ea(ae),se=ne.wrapSSR,L=ne.hashId,Ce=Ya("".concat(ae,".").concat(ae,"-stylish"),{proLayoutCollapsedWidth:64,stylish:e.stylish}),je=ie()(Z,L,ae,(a={},(0,u.Z)(a,"".concat(ae,"-fixed-header"),J),(0,u.Z)(a,"".concat(ae,"-fixed-header-scroll"),ee),(0,u.Z)(a,"".concat(ae,"-mix"),j==="mix"),(0,u.Z)(a,"".concat(ae,"-fixed-header-action"),!_),(0,u.Z)(a,"".concat(ae,"-top-menu"),q),(0,u.Z)(a,"".concat(ae,"-header"),!0),(0,u.Z)(a,"".concat(ae,"-stylish"),!!e.stylish),a));return j==="side"&&!c?null:Ce.wrapSSR(se((0,d.jsx)(d.Fragment,{children:(0,d.jsxs)(Ke.ZP,{theme:{hashed:(0,te.nu)(),components:{Layout:{colorBgHeader:"transparent",colorBgBody:"transparent"}}},children:[J&&(0,d.jsx)(fr,{style:(0,v.Z)({height:(C==null||(i=C.layout)===null||i===void 0||(o=i.header)===null||o===void 0?void 0:o.heightLayoutHeader)||56,lineHeight:"".concat((C==null||(l=C.layout)===null||l===void 0||(s=l.header)===null||s===void 0?void 0:s.heightLayoutHeader)||56,"px"),backgroundColor:"transparent",zIndex:19},S)}),(0,d.jsx)(fr,{className:je,style:S,children:T()})]})})))},ka=m(79693),qa=m(9829),eo=m(28405),no=new eo.E4("antBadgeLoadingCircle",{"0%":{display:"none",opacity:0},"80%":{display:"none",opacity:0},"100%":{display:"unset",opacity:1}}),to=function(e){var n,r,a,i,o,l,s,c,f,Z,S,_,U,N,j,E,D,F,C,$,W,R,ee,Y,J,T,q;return(0,u.Z)({},"".concat(e.proComponentsCls,"-layout"),(q={},(0,u.Z)(q,e.componentCls,(R={position:"relative",background:((n=e.layout)===null||n===void 0||(r=n.sider)===null||r===void 0?void 0:r.colorMenuBackground)||"transparent",boxSizing:"border-box","&-menu":{position:"relative",zIndex:10,minHeight:"100%"}},(0,u.Z)(R,"".concat(e.antCls,"-layout-sider-children"),{position:"relative",display:"flex",flexDirection:"column",height:"100%",paddingInline:(a=e.layout)===null||a===void 0||(i=a.sider)===null||i===void 0?void 0:i.paddingInlineLayoutMenu,paddingBlock:(o=e.layout)===null||o===void 0||(l=o.sider)===null||l===void 0?void 0:l.paddingBlockLayoutMenu,borderInlineEnd:"1px solid ".concat(e.colorSplit),marginInlineEnd:-1}),(0,u.Z)(R,"".concat(e.antCls,"-menu"),(f={},(0,u.Z)(f,"".concat(e.antCls,"-menu-item-group-title"),{fontSize:e.fontSizeSM,paddingBottom:4}),(0,u.Z)(f,"".concat(e.antCls,"-menu-item:hover"),{color:e==null||(s=e.layout)===null||s===void 0||(c=s.sider)===null||c===void 0?void 0:c.colorTextMenuItemHover}),f)),(0,u.Z)(R,"&-logo",{position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between",paddingInline:12,paddingBlock:16,color:(Z=e.layout)===null||Z===void 0||(S=Z.sider)===null||S===void 0?void 0:S.colorTextMenu,cursor:"pointer",borderBlockEnd:"1px solid ".concat((_=e.layout)===null||_===void 0||(U=_.sider)===null||U===void 0?void 0:U.colorMenuItemDivider),"> a":{display:"flex",alignItems:"center",justifyContent:"center",minHeight:22,fontSize:22,"> img":{display:"inline-block",height:22,verticalAlign:"middle"},"> h1":{display:"inline-block",height:22,marginBlock:0,marginInlineEnd:0,marginInlineStart:6,color:(N=e.layout)===null||N===void 0||(j=N.sider)===null||j===void 0?void 0:j.colorTextMenuTitle,fontWeight:600,fontSize:16,lineHeight:"22px",verticalAlign:"middle"}},"&-collapsed":(0,u.Z)({flexDirection:"column-reverse",margin:0,padding:12},"".concat(e.proComponentsCls,"-layout-apps-icon"),{marginBlockEnd:8,fontSize:16,transition:"font-size 0.2s ease-in-out,color 0.2s ease-in-out"})}),(0,u.Z)(R,"&-actions",{display:"flex",alignItems:"center",justifyContent:"space-between",marginBlock:4,marginInline:0,color:(E=e.layout)===null||E===void 0||(D=E.sider)===null||D===void 0?void 0:D.colorTextMenu,"&-collapsed":{flexDirection:"column-reverse",paddingBlock:0,paddingInline:8,fontSize:16,transition:"font-size 0.3s ease-in-out"},"&-list":{color:(F=e.layout)===null||F===void 0||(C=F.sider)===null||C===void 0?void 0:C.colorTextMenuSecondary,"&-collapsed":{marginBlockEnd:8,animationName:"none"},"&-item":{paddingInline:6,paddingBlock:6,lineHeight:"16px",fontSize:16,cursor:"pointer",borderRadius:e.borderRadius,"&:hover":{background:e.colorBgTextHover}}},"&-avatar":{fontSize:14,paddingInline:8,paddingBlock:8,display:"flex",alignItems:"center",gap:8,borderRadius:e.borderRadius,"& *":{cursor:"pointer"},"&:hover":{background:e.colorBgTextHover}}}),(0,u.Z)(R,"&-hide-menu-collapsed",{insetInlineStart:"-".concat(e.proLayoutCollapsedWidth-12,"px"),position:"absolute"}),(0,u.Z)(R,"&-extra",{marginBlockEnd:16,marginBlock:0,marginInline:16,"&-no-logo":{marginBlockStart:16}}),(0,u.Z)(R,"&-links",{width:"100%",ul:{height:"auto"}}),(0,u.Z)(R,"&-link-menu",{border:"none",boxShadow:"none",background:"transparent"}),(0,u.Z)(R,"&-footer",{color:($=e.layout)===null||$===void 0||(W=$.sider)===null||W===void 0?void 0:W.colorTextMenuSecondary,paddingBlockEnd:16,fontSize:e.fontSize,animationName:no,animationDuration:".3s",animationTimingFunction:"ease"}),R)),(0,u.Z)(q,"".concat(e.componentCls).concat(e.componentCls,"-fixed"),{position:"fixed",insetBlockStart:0,insetInlineStart:0,zIndex:"100",height:"100%","&-mix":{height:"calc(100% - ".concat((e==null||(ee=e.layout)===null||ee===void 0||(Y=ee.header)===null||Y===void 0?void 0:Y.heightLayoutHeader)||56,"px)"),insetBlockStart:"".concat((e==null||(J=e.layout)===null||J===void 0||(T=J.header)===null||T===void 0?void 0:T.heightLayoutHeader)||56,"px")}}),q))};function ro(t,e){var n=e.proLayoutCollapsedWidth;return(0,Fe.Xj)("ProLayoutSiderMenu",function(r){var a=(0,v.Z)((0,v.Z)({},r),{},{componentCls:".".concat(t),proLayoutCollapsedWidth:n});return[to(a)]})}var mr=function(e){var n,r,a=e.isMobile,i=e.siderWidth,o=e.collapsed,l=e.onCollapse,s=e.style,c=e.className,f=e.hide,Z=e.getContainer,S=Z===void 0?!1:Z,_=e.prefixCls,U=(0,g.useContext)(te.L_),N=U.token;(0,g.useEffect)(function(){a===!0&&(l==null||l(!0))},[a]);var j=(0,Vt.Z)(e,["className","style"]),E=g.useContext(Ke.ZP.ConfigContext),D=E.direction,F=ro("".concat(_,"-sider"),{proLayoutCollapsedWidth:64}),C=F.wrapSSR,$=F.hashId,W=ie()("".concat(_,"-sider"),c,$);if(f)return null;var R=(0,kt.X)(!o,function(){return l==null?void 0:l(!0)});return C(a?(0,d.jsx)(qa.Z,(0,v.Z)((0,v.Z)({placement:D==="rtl"?"right":"left",className:ie()("".concat(_,"-drawer-sider"),c)},R),{},{style:(0,v.Z)({padding:0,height:"100vh"},s),onClose:function(){l==null||l(!0)},maskClosable:!0,closable:!1,getContainer:S,width:i,bodyStyle:{height:"100vh",padding:0,display:"flex",flexDirection:"row",backgroundColor:N==null||(n=N.layout)===null||n===void 0||(r=n.sider)===null||r===void 0?void 0:r.colorMenuBackground},children:(0,d.jsx)(cr,(0,v.Z)((0,v.Z)({},j),{},{isMobile:!0,className:W,collapsed:a?!1:o,splitMenus:!1,originCollapsed:o}))})):(0,d.jsx)(cr,(0,v.Z)((0,v.Z)({className:W,originCollapsed:o},j),{},{style:s})))},hr=m(43507),ao=m(58809),Bt=m.n(ao),oo=function(e,n,r){if(r){var a=(0,mt.Z)(r.keys()).find(function(o){return Bt()(o).test(e)});if(a)return r.get(a)}if(n){var i=Object.keys(n).find(function(o){return Bt()(o).test(e)});if(i)return n[i]}return{path:""}},Nt=function(e,n){var r=e.pathname,a=r===void 0?"/":r,i=e.breadcrumb,o=e.breadcrumbMap,l=e.formatMessage,s=e.title,c=e.menu,f=c===void 0?{locale:!1}:c,Z=n?"":s||"",S=oo(a,i,o);if(!S)return{title:Z,id:"",pageName:Z};var _=S.name;return f.locale!==!1&&S.locale&&l&&(_=l({id:S.locale||"",defaultMessage:S.name})),_?n||!s?{title:_,id:S.locale||"",pageName:_}:{title:"".concat(_," - ").concat(s),id:S.locale||"",pageName:_}:{title:Z,id:S.locale||"",pageName:Z}},ii=function(e,n){return Nt(e,n).title},io=m(40364),yt=m(2765),Ot=m(14224),lo=function(){var e,n;return typeof Ot=="undefined"?yt.Z:((e=Ot)===null||Ot===void 0||(n={NODE_ENV:"production",PUBLIC_PATH:"/admin/"})===null||n===void 0?void 0:n.ANTD_VERSION)||yt.Z},uo=function(e){var n,r,a,i,o,l,s,c,f,Z,S,_,U,N,j,E,D,F,C,$,W,R,ee,Y,J,T,q,ae,ne,se,L,Ce,je,ye,fe,_e,Ee,Re,He,We,Ge,Xe,be,cn,Ve,Se,sn,Pe,Ae,qe,rn,Me,jn,Qn,Zn,me,En,Mn,Ln,An,pn,$n,Yn,Bn,Jn,Nn,kn,On,Dn,vn,In;return(n=lo())!==null&&n!==void 0&&n.startsWith("5")?{}:(In={},(0,u.Z)(In,e.componentCls,(Mn={width:"100%",height:"100%"},(0,u.Z)(Mn,"".concat(e.proComponentsCls,"-base-menu"),(be={color:e==null||(r=e.layout)===null||r===void 0||(a=r.sider)===null||a===void 0?void 0:a.colorTextMenu},(0,u.Z)(be,"".concat(e.antCls,"-menu-sub"),{backgroundColor:"transparent!important",color:e==null||(i=e.layout)===null||i===void 0||(o=i.sider)===null||o===void 0?void 0:o.colorTextMenu}),(0,u.Z)(be,"& ".concat(e.antCls,"-layout"),{backgroundColor:"transparent",width:"100%"}),(0,u.Z)(be,"".concat(e.antCls,"-menu-submenu-expand-icon, ").concat(e.antCls,"-menu-submenu-arrow"),{color:"inherit"}),(0,u.Z)(be,"&".concat(e.antCls,"-menu"),(c={color:e==null||(l=e.layout)===null||l===void 0||(s=l.sider)===null||s===void 0?void 0:s.colorTextMenu},(0,u.Z)(c,"".concat(e.antCls,"-menu-item"),{"*":{transition:"none !important"}}),(0,u.Z)(c,"".concat(e.antCls,"-menu-item a"),{color:"inherit"}),c)),(0,u.Z)(be,"&".concat(e.antCls,"-menu-inline"),(0,u.Z)({},"".concat(e.antCls,"-menu-selected::after,").concat(e.antCls,"-menu-item-selected::after"),{display:"none"})),(0,u.Z)(be,"".concat(e.antCls,"-menu-sub ").concat(e.antCls,"-menu-inline"),{backgroundColor:"transparent!important"}),(0,u.Z)(be,"".concat(e.antCls,`-menu-item:active, 
        `).concat(e.antCls,"-menu-submenu-title:active"),{backgroundColor:"transparent!important"}),(0,u.Z)(be,"&".concat(e.antCls,"-menu-light"),(0,u.Z)({},"".concat(e.antCls,`-menu-item:hover, 
            `).concat(e.antCls,`-menu-item-active,
            `).concat(e.antCls,`-menu-submenu-active, 
            `).concat(e.antCls,"-menu-submenu-title:hover"),(0,u.Z)({color:e==null||(f=e.layout)===null||f===void 0||(Z=f.sider)===null||Z===void 0?void 0:Z.colorTextMenuActive,borderRadius:e.borderRadius},"".concat(e.antCls,"-menu-submenu-arrow"),{color:e==null||(S=e.layout)===null||S===void 0||(_=S.sider)===null||_===void 0?void 0:_.colorTextMenuActive}))),(0,u.Z)(be,"&".concat(e.antCls,"-menu:not(").concat(e.antCls,"-menu-horizontal)"),(W={},(0,u.Z)(W,"".concat(e.antCls,"-menu-item-selected"),{backgroundColor:e==null||(U=e.layout)===null||U===void 0||(N=U.sider)===null||N===void 0?void 0:N.colorBgMenuItemSelected,borderRadius:e.borderRadius}),(0,u.Z)(W,"".concat(e.antCls,`-menu-item:hover, 
            `).concat(e.antCls,`-menu-item-active,
            `).concat(e.antCls,"-menu-submenu-title:hover"),(0,u.Z)({color:e==null||(j=e.layout)===null||j===void 0||(E=j.sider)===null||E===void 0?void 0:E.colorTextMenuActive,borderRadius:e.borderRadius,backgroundColor:"".concat(e==null||(D=e.layout)===null||D===void 0||(F=D.header)===null||F===void 0?void 0:F.colorBgMenuItemHover," !important")},"".concat(e.antCls,"-menu-submenu-arrow"),{color:e==null||(C=e.layout)===null||C===void 0||($=C.sider)===null||$===void 0?void 0:$.colorTextMenuActive})),W)),(0,u.Z)(be,"".concat(e.antCls,"-menu-item-selected"),{color:e==null||(R=e.layout)===null||R===void 0||(ee=R.sider)===null||ee===void 0?void 0:ee.colorTextMenuSelected}),(0,u.Z)(be,"".concat(e.antCls,"-menu-submenu-selected"),{color:e==null||(Y=e.layout)===null||Y===void 0||(J=Y.sider)===null||J===void 0?void 0:J.colorTextMenuSelected}),(0,u.Z)(be,"&".concat(e.antCls,"-menu:not(").concat(e.antCls,"-menu-inline) ").concat(e.antCls,"-menu-submenu-open"),{color:e==null||(T=e.layout)===null||T===void 0||(q=T.sider)===null||q===void 0?void 0:q.colorTextMenuSelected}),(0,u.Z)(be,"&".concat(e.antCls,"-menu-vertical"),(0,u.Z)({},"".concat(e.antCls,"-menu-submenu-selected"),{borderRadius:e.borderRadius,color:e==null||(ae=e.layout)===null||ae===void 0||(ne=ae.sider)===null||ne===void 0?void 0:ne.colorTextMenuSelected})),(0,u.Z)(be,"".concat(e.antCls,"-menu-submenu:hover > ").concat(e.antCls,"-menu-submenu-title > ").concat(e.antCls,"-menu-submenu-arrow"),{color:e==null||(se=e.layout)===null||se===void 0||(L=se.sider)===null||L===void 0?void 0:L.colorTextMenuActive}),(0,u.Z)(be,"&".concat(e.antCls,"-menu-horizontal"),(Xe={},(0,u.Z)(Xe,"".concat(e.antCls,`-menu-item:hover,
          `).concat(e.antCls,`-menu-submenu:hover,
          `).concat(e.antCls,`-menu-item-active,
          `).concat(e.antCls,"-menu-submenu-active"),{borderRadius:4,transition:"none",color:e==null||(Ce=e.layout)===null||Ce===void 0||(je=Ce.header)===null||je===void 0?void 0:je.colorTextMenuActive,backgroundColor:"".concat(e==null||(ye=e.layout)===null||ye===void 0||(fe=ye.header)===null||fe===void 0?void 0:fe.colorBgMenuItemHover," !important")}),(0,u.Z)(Xe,"".concat(e.antCls,`-menu-item-open,
          `).concat(e.antCls,`-menu-submenu-open,
          `).concat(e.antCls,`-menu-item-selected,
          `).concat(e.antCls,"-menu-submenu-selected"),(0,u.Z)({backgroundColor:e==null||(_e=e.layout)===null||_e===void 0||(Ee=_e.header)===null||Ee===void 0?void 0:Ee.colorBgMenuItemSelected,borderRadius:e.borderRadius,transition:"none",color:"".concat(e==null||(Re=e.layout)===null||Re===void 0||(He=Re.header)===null||He===void 0?void 0:He.colorTextMenuSelected," !important")},"".concat(e.antCls,"-menu-submenu-arrow"),{color:"".concat(e==null||(We=e.layout)===null||We===void 0||(Ge=We.header)===null||Ge===void 0?void 0:Ge.colorTextMenuSelected," !important")})),(0,u.Z)(Xe,"> ".concat(e.antCls,"-menu-item, > ").concat(e.antCls,"-menu-submenu"),{paddingInline:16,marginInline:4}),(0,u.Z)(Xe,"> ".concat(e.antCls,"-menu-item::after, > ").concat(e.antCls,"-menu-submenu::after"),{display:"none"}),Xe)),be)),(0,u.Z)(Mn,"".concat(e.proComponentsCls,"-top-nav-header-base-menu"),(En={},(0,u.Z)(En,"&".concat(e.antCls,"-menu"),(0,u.Z)({color:e==null||(cn=e.layout)===null||cn===void 0||(Ve=cn.header)===null||Ve===void 0?void 0:Ve.colorTextMenu},"".concat(e.antCls,"-menu-item a"),{color:"inherit"})),(0,u.Z)(En,"&".concat(e.antCls,"-menu-light"),(me={},(0,u.Z)(me,"".concat(e.antCls,`-menu-item:hover, 
            `).concat(e.antCls,`-menu-item-active,
            `).concat(e.antCls,`-menu-submenu-active, 
            `).concat(e.antCls,"-menu-submenu-title:hover"),(0,u.Z)({color:e==null||(Se=e.layout)===null||Se===void 0||(sn=Se.header)===null||sn===void 0?void 0:sn.colorTextMenuActive,borderRadius:e.borderRadius,transition:"none",backgroundColor:e==null||(Pe=e.layout)===null||Pe===void 0||(Ae=Pe.header)===null||Ae===void 0?void 0:Ae.colorBgMenuItemSelected},"".concat(e.antCls,"-menu-submenu-arrow"),{color:e==null||(qe=e.layout)===null||qe===void 0||(rn=qe.header)===null||rn===void 0?void 0:rn.colorTextMenuActive})),(0,u.Z)(me,"".concat(e.antCls,"-menu-item-selected"),{color:e==null||(Me=e.layout)===null||Me===void 0||(jn=Me.header)===null||jn===void 0?void 0:jn.colorTextMenuSelected,borderRadius:e.borderRadius,backgroundColor:e==null||(Qn=e.layout)===null||Qn===void 0||(Zn=Qn.header)===null||Zn===void 0?void 0:Zn.colorBgMenuItemSelected}),me)),En)),Mn)),(0,u.Z)(In,"".concat(e.antCls,"-menu-sub").concat(e.antCls,"-menu-inline"),{backgroundColor:"transparent!important"}),(0,u.Z)(In,"".concat(e.antCls,"-menu-submenu-popup"),(vn={backgroundColor:"rgba(255, 255, 255, 0.42)","-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)"},(0,u.Z)(vn,"".concat(e.antCls,"-menu"),(0,u.Z)({background:"transparent !important",backgroundColor:"transparent !important"},"".concat(e.antCls,`-menu-item:active, 
        `).concat(e.antCls,"-menu-submenu-title:active"),{backgroundColor:"transparent!important"})),(0,u.Z)(vn,"".concat(e.antCls,"-menu-item-selected"),{color:e==null||(Ln=e.layout)===null||Ln===void 0||(An=Ln.sider)===null||An===void 0?void 0:An.colorTextMenuSelected}),(0,u.Z)(vn,"".concat(e.antCls,"-menu-submenu-selected"),{color:e==null||(pn=e.layout)===null||pn===void 0||($n=pn.sider)===null||$n===void 0?void 0:$n.colorTextMenuSelected}),(0,u.Z)(vn,"".concat(e.antCls,"-menu:not(").concat(e.antCls,"-menu-horizontal)"),(Dn={},(0,u.Z)(Dn,"".concat(e.antCls,"-menu-item-selected"),{backgroundColor:"rgba(0, 0, 0, 0.04)",borderRadius:e.borderRadius,color:e==null||(Yn=e.layout)===null||Yn===void 0||(Bn=Yn.sider)===null||Bn===void 0?void 0:Bn.colorTextMenuSelected}),(0,u.Z)(Dn,"".concat(e.antCls,`-menu-item:hover, 
          `).concat(e.antCls,`-menu-item-active,
          `).concat(e.antCls,"-menu-submenu-title:hover"),(0,u.Z)({color:e==null||(Jn=e.layout)===null||Jn===void 0||(Nn=Jn.sider)===null||Nn===void 0?void 0:Nn.colorTextMenuActive,borderRadius:e.borderRadius},"".concat(e.antCls,"-menu-submenu-arrow"),{color:e==null||(kn=e.layout)===null||kn===void 0||(On=kn.sider)===null||On===void 0?void 0:On.colorTextMenuActive})),Dn)),vn)),In)},co=function(e){var n,r,a,i,o,l,s,c,f;return f={},(0,u.Z)(f,"".concat(e.antCls,"-layout"),{backgroundColor:"transparent !important"}),(0,u.Z)(f,e.componentCls,(c={},(0,u.Z)(c,"& ".concat(e.antCls,"-layout"),{display:"flex",backgroundColor:"transparent",width:"100%"}),(0,u.Z)(c,"".concat(e.componentCls,"-content"),{display:"flex",flexDirection:"column",width:"100%",backgroundColor:(e==null||(n=e.layout)===null||n===void 0||(r=n.pageContainer)===null||r===void 0?void 0:r.colorBgPageContainer)||"transparent",position:"relative",paddingBlock:e==null||(a=e.layout)===null||a===void 0||(i=a.pageContainer)===null||i===void 0?void 0:i.paddingBlockPageContainerContent,paddingInline:e==null||(o=e.layout)===null||o===void 0||(l=o.pageContainer)===null||l===void 0?void 0:l.paddingInlinePageContainerContent,"&-has-page-container":{padding:0}}),(0,u.Z)(c,"".concat(e.componentCls,"-container"),{width:"100%",display:"flex",flexDirection:"column",minWidth:0,minHeight:0,backgroundColor:"transparent"}),(0,u.Z)(c,"".concat(e.componentCls,"-bg-list"),{pointerEvents:"none",position:"fixed",overflow:"hidden",insetBlockStart:0,insetInlineStart:0,zIndex:0,height:"100%",width:"100%",background:e==null||(s=e.layout)===null||s===void 0?void 0:s.bgLayout}),c)),(0,u.Z)(f,"".concat(e.antCls,"-menu-submenu-popup"),{backgroundColor:"rgba(255, 255, 255, 0.42)","-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)"}),f};function so(t){return(0,Fe.Xj)("ProLayout",function(e){var n=(0,v.Z)((0,v.Z)({},e),{},{componentCls:".".concat(t)});return[co(n),uo(n)]})}var vo=m(11817);function fo(t){if(!t||t==="/")return["/"];var e=t.split("/").filter(function(n){return n});return e.map(function(n,r){return"/".concat(e.slice(0,r+1).join("/"))})}var Dt=m(14224),mo=function(){var e,n;return typeof Dt=="undefined"?yt.Z:((e=Dt)===null||Dt===void 0||(n={NODE_ENV:"production",PUBLIC_PATH:"/admin/"})===null||n===void 0?void 0:n.ANTD_VERSION)||yt.Z},ho=function(e,n,r){var a=e,i=a.breadcrumbName,o=a.title,l=a.path,s=r.indexOf(e)===r.length-1;return s?(0,d.jsx)("span",{children:o||i}):(0,d.jsx)("span",{onClick:l?function(){location.href=l}:void 0,children:o||i})},go=function(e,n){var r=n.formatMessage,a=n.menu;return e.locale&&r&&(a==null?void 0:a.locale)!==!1?r({id:e.locale,defaultMessage:e.name}):e.name},yo=function(e,n){var r=e.get(n);if(!r){var a=Array.from(e.keys())||[],i=a.find(function(o){return Bt()(o.replace("?","")).test(n)});i&&(r=e.get(i))}return r||{path:""}},po=function(e){var n=e.location,r=e.breadcrumbMap;return{location:n,breadcrumbMap:r}},xo=function(e,n,r){var a=fo(e==null?void 0:e.pathname),i=a.map(function(o){var l=yo(n,o),s=go(l,r),c=l.hideInBreadcrumb;return s&&!c?{linkPath:o,breadcrumbName:s,title:s,component:l.component}:{linkPath:"",breadcrumbName:"",title:""}}).filter(function(o){return o&&o.linkPath});return i},Co=function(e){var n=po(e),r=n.location,a=n.breadcrumbMap;return r&&r.pathname&&a?xo(r,a,e):[]},bo=function(e,n){var r=e.breadcrumbRender,a=e.itemRender,i=n.breadcrumbProps||{},o=i.minLength,l=o===void 0?2:o,s=Co(e),c=function(S){for(var _=a||ho,U=arguments.length,N=new Array(U>1?U-1:0),j=1;j<U;j++)N[j-1]=arguments[j];return _==null?void 0:_.apply(void 0,[(0,v.Z)((0,v.Z)({},S),{},{path:S.linkPath||S.path})].concat(N))},f=s;return r&&(f=r(f||[])||void 0),(f&&f.length<l||r===!1)&&(f=void 0),(0,vo.n)(mo(),"5.3.0")>-1?{items:f,itemRender:c}:{routes:f,itemRender:c}};function So(t){return(0,mt.Z)(t).reduce(function(e,n){var r=(0,z.Z)(n,2),a=r[0],i=r[1];return e[a]=i,e},{})}var Zo=function t(e,n,r,a){var i=Pn(e,(n==null?void 0:n.locale)||!1,r,!0),o=i.menuData,l=i.breadcrumb;return a?t(a(o),n,r,void 0):{breadcrumb:So(l),breadcrumbMap:l,menuData:o}},Mo=m(26143),$o=m(87837),Io=function(e){var n=(0,g.useState)({}),r=(0,z.Z)(n,2),a=r[0],i=r[1];return(0,g.useEffect)(function(){i((0,$o.Y)({layout:(0,Mo.Z)(e.layout)!=="object"?e.layout:void 0,navTheme:e.navTheme,menuRender:e.menuRender,footerRender:e.footerRender,menuHeaderRender:e.menuHeaderRender,headerRender:e.headerRender,fixSiderbar:e.fixSiderbar}))},[e.layout,e.navTheme,e.menuRender,e.footerRender,e.menuHeaderRender,e.headerRender,e.fixSiderbar]),a},To=m(80407),Ro=function(e){var n,r=(0,g.useContext)(te.L_),a=r.hashId,i=e.style,o=e.prefixCls,l=e.children,s=e.hasPageContainer,c=s===void 0?0:s,f=ie()("".concat(o,"-content"),a,(n={},(0,u.Z)(n,"".concat(o,"-has-header"),e.hasHeader),(0,u.Z)(n,"".concat(o,"-content-has-page-container"),c>0),n)),Z=e.ErrorBoundary||To.S;return e.ErrorBoundary===!1?(0,d.jsx)(Sn.Z.Content,{className:f,style:i,children:l}):(0,d.jsx)(Z,{children:(0,d.jsx)(Sn.Z.Content,{className:f,style:i,children:l})})},_o=["id","defaultMessage"],Po=["fixSiderbar","navTheme","layout"],gr=0,wo=function(e,n){var r;return e.headerRender===!1||e.pure?null:(0,d.jsx)(Ja,(0,v.Z)((0,v.Z)({matchMenuKeys:n},e),{},{stylish:(r=e.stylish)===null||r===void 0?void 0:r.header}))},jo=function(e){return e.footerRender===!1||e.pure?null:e.footerRender?e.footerRender((0,v.Z)({},e),(0,d.jsx)(kr.q,{})):null},Eo=function(e,n){var r,a=e.layout,i=e.isMobile,o=e.selectedKeys,l=e.openKeys,s=e.splitMenus,c=e.suppressSiderWhenMenuEmpty,f=e.menuRender;if(e.menuRender===!1||e.pure)return null;var Z=e.menuData;if(s&&(l!==!1||a==="mix")&&!i){var S=o||n,_=(0,z.Z)(S,1),U=_[0];if(U){var N,j;Z=((N=e.menuData)===null||N===void 0||(j=N.find(function(C){return C.key===U}))===null||j===void 0?void 0:j.children)||[]}else Z=[]}var E=(0,Vn.QX)(Z||[]);if(E&&(E==null?void 0:E.length)<1&&(s||c))return null;if(a==="top"&&!i){var D;return(0,d.jsx)(mr,(0,v.Z)((0,v.Z)({matchMenuKeys:n},e),{},{hide:!0,stylish:(D=e.stylish)===null||D===void 0?void 0:D.sider}))}var F=(0,d.jsx)(mr,(0,v.Z)((0,v.Z)({matchMenuKeys:n},e),{},{menuData:E,stylish:(r=e.stylish)===null||r===void 0?void 0:r.sider}));return f?f(e,F):F},Lo=function(e,n){var r=n.pageTitleRender,a=Nt(e);if(r===!1)return{title:n.title||"",id:"",pageName:""};if(r){var i=r(e,a.title,a);if(typeof i=="string")return Nt((0,v.Z)((0,v.Z)({},a),{},{title:i}));(0,Nr.ZP)(typeof i=="string","pro-layout: renderPageTitle return value should be a string")}return a},Ao=function(e,n,r){return e?n?60:r:0},Bo=function(e){var n,r,a,i,o,l,s,c,f,Z,S,_,U,N,j,E,D,F,C,$,W,R,ee,Y,J,T,q,ae,ne,se,L,Ce,je,ye,fe,_e,Ee,Re,He,We,Ge,Xe,be,cn,Ve,Se=e||{},sn=Se.children,Pe=Se.onCollapse,Ae=Se.location,qe=Ae===void 0?{pathname:"/"}:Ae,rn=Se.contentStyle,Me=Se.route,jn=Se.defaultCollapsed,Qn=Se.style,Zn=Se.siderWidth,me=Se.menu,En=Se.siderMenuType,Mn=Se.isChildrenLayout,Ln=Se.menuDataRender,An=Se.actionRef,pn=Se.bgLayoutImgList,$n=Se.formatMessage,Yn=Se.loading,Bn=(0,g.useMemo)(function(){return Zn||(e.layout==="mix"?215:256)},[e.layout,Zn]),Jn=(0,g.useContext)(Ke.ZP.ConfigContext),Nn=(n=e.prefixCls)!==null&&n!==void 0?n:Jn.getPrefixCls("pro"),kn=(0,ve.Z)(!1,{value:me==null?void 0:me.loading,onChange:me==null?void 0:me.onLoadingChange}),On=(0,z.Z)(kn,2),Dn=On[0],vn=On[1],In=(0,g.useState)(function(){return gr+=1,"pro-layout-".concat(gr)}),Oo=(0,z.Z)(In,1),Do=Oo[0],Ht=(0,g.useCallback)(function(Be){var xn=Be.id,Ct=Be.defaultMessage,at=(0,Ze.Z)(Be,_o);if($n)return $n((0,v.Z)({id:xn,defaultMessage:Ct},at));var ot=(0,io.e)();return ot[xn]?ot[xn]:Ct},[$n]),yr=(0,Qt.ZP)([Do,me==null?void 0:me.params],function(){var Be=(0,le.Z)((0,re.Z)().mark(function xn(Ct){var at,ot,Lr,Ar;return(0,re.Z)().wrap(function(Fn){for(;;)switch(Fn.prev=Fn.next){case 0:return ot=(0,z.Z)(Ct,2),Lr=ot[1],vn(!0),Fn.next=4,me==null||(at=me.request)===null||at===void 0?void 0:at.call(me,Lr||{},(Me==null?void 0:Me.children)||(Me==null?void 0:Me.routes)||[]);case 4:return Ar=Fn.sent,vn(!1),Fn.abrupt("return",Ar);case 7:case"end":return Fn.stop()}},xn)}));return function(xn){return Be.apply(this,arguments)}}(),{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),pr=yr.data,Ho=yr.mutate,Wo=(0,Qt.kY)(),xr=Wo.cache;(0,g.useEffect)(function(){return function(){xr instanceof Map&&xr.clear()}},[]);var Fo=(0,g.useMemo)(function(){return Zo(pr||(Me==null?void 0:Me.children)||(Me==null?void 0:Me.routes)||[],me,Ht,Ln)},[Ht,me,Ln,pr,Me==null?void 0:Me.children,Me==null?void 0:Me.routes]),Wt=Fo||{},Cr=Wt.breadcrumb,zo=Cr===void 0?{}:Cr,br=Wt.breadcrumbMap,Sr=Wt.menuData,qn=Sr===void 0?[]:Sr;An&&me!==null&&me!==void 0&&me.request&&(An.current={reload:function(){Ho()}});var et=(0,g.useMemo)(function(){return ft(qe.pathname||"/",qn||[],!0)},[qe.pathname,qn]),Ft=(0,g.useMemo)(function(){return Array.from(new Set(et.map(function(Be){return Be.key||Be.path||""})))},[et]),Zr=et[et.length-1]||{},Mr=Io(Zr),pt=(0,v.Z)((0,v.Z)({},e),Mr),Ko=pt.fixSiderbar,li=pt.navTheme,nt=pt.layout,Uo=(0,Ze.Z)(pt,Po),tt=Yr(),Hn=(tt==="sm"||tt==="xs")&&!e.disableMobile,Go=nt!=="top"&&!Hn,Xo=(0,ve.Z)(function(){return jn!==void 0?jn:(0,te.nu)()===!1?!1:!!(Hn||tt==="md")},{value:e.collapsed,onChange:Pe}),$r=(0,z.Z)(Xo,2),rt=$r[0],Ir=$r[1],Wn=(0,Vt.Z)((0,v.Z)((0,v.Z)((0,v.Z)({prefixCls:Nn},e),{},{siderWidth:Bn},Mr),{},{formatMessage:Ht,breadcrumb:zo,menu:(0,v.Z)((0,v.Z)({},me),{},{type:En||(me==null?void 0:me.type),loading:Dn}),layout:nt}),["className","style","breadcrumbRender"]),zt=Lo((0,v.Z)((0,v.Z)({pathname:qe.pathname},Wn),{},{breadcrumbMap:br}),e),Vo=bo((0,v.Z)((0,v.Z)({},Wn),{},{breadcrumbRender:e.breadcrumbRender,breadcrumbMap:br}),e),xt=Eo((0,v.Z)((0,v.Z)({},Wn),{},{menuData:qn,onCollapse:Ir,isMobile:Hn,collapsed:rt}),Ft),Kt=wo((0,v.Z)((0,v.Z)({},Wn),{},{children:null,hasSiderMenu:!!xt,menuData:qn,isMobile:Hn,collapsed:rt,onCollapse:Ir}),Ft),Tr=jo((0,v.Z)({isMobile:Hn,collapsed:rt},Wn)),Qo=(0,g.useContext)(hr.X),Yo=Qo.isChildrenLayout,Ut=Mn!==void 0?Mn:Yo,an="".concat(Nn,"-layout"),Rr=so(an),Jo=Rr.wrapSSR,Gt=Rr.hashId,ko=ie()(e.className,Gt,"ant-design-pro",an,(r={},(0,u.Z)(r,"screen-".concat(tt),tt),(0,u.Z)(r,"".concat(an,"-top-menu"),nt==="top"),(0,u.Z)(r,"".concat(an,"-is-children"),Ut),(0,u.Z)(r,"".concat(an,"-fix-siderbar"),Ko),(0,u.Z)(r,"".concat(an,"-").concat(nt),nt),r)),qo=Ao(!!Go,rt,Bn),_r={position:"relative"};(Ut||rn&&rn.minHeight)&&(_r.minHeight=0),(0,g.useEffect)(function(){var Be;(Be=e.onPageChange)===null||Be===void 0||Be.call(e,e.location)},[qe.pathname,(a=qe.pathname)===null||a===void 0?void 0:a.search]);var ei=(0,g.useState)(!1),Pr=(0,z.Z)(ei,2),wr=Pr[0],ni=Pr[1],ti=(0,g.useState)(0),jr=(0,z.Z)(ti,2),Er=jr[0],ri=jr[1];$e(zt,e.title||!1);var ai=(0,g.useMemo)(function(){return pn&&pn.length>0?pn.map(function(Be,xn){return(0,d.jsx)("img",{src:Be.src,style:(0,v.Z)({position:"absolute"},Be)},xn)}):null},[pn]),oi=(0,g.useContext)(te.L_),y=oi.token;return Jo((0,d.jsx)(hr.X.Provider,{value:(0,v.Z)((0,v.Z)({},Wn),{},{breadcrumb:Vo,menuData:qn,isMobile:Hn,collapsed:rt,hasPageContainer:Er,setHasPageContainer:ri,isChildrenLayout:!0,title:zt.pageName,hasSiderMenu:!!xt,hasHeader:!!Kt,siderWidth:qo,hasFooter:!!Tr,hasFooterToolbar:wr,setHasFooterToolbar:ni,pageTitleInfo:zt,matchMenus:et,matchMenuKeys:Ft,currentMenu:Zr}),children:e.pure?(0,d.jsx)(d.Fragment,{children:sn}):(0,d.jsxs)("div",{className:ko,children:[(0,d.jsx)("div",{className:ie()("".concat(an,"-bg-list"),Gt),children:ai}),(0,d.jsxs)(Sn.Z,{style:(0,v.Z)({minHeight:"100%",flexDirection:xt?"row":void 0},Qn),children:[(0,d.jsx)(Ke.ZP,{theme:{hashed:(0,te.nu)(),components:{Menu:{colorItemBg:(y==null||(i=y.layout)===null||i===void 0||(o=i.sider)===null||o===void 0?void 0:o.colorMenuBackground)||"transparent",colorSubItemBg:(y==null||(l=y.layout)===null||l===void 0||(s=l.sider)===null||s===void 0?void 0:s.colorMenuBackground)||"transparent",radiusItem:4,controlHeightLG:(y==null||(c=y.layout)===null||c===void 0||(f=c.sider)===null||f===void 0?void 0:f.menuHeight)||(y==null?void 0:y.controlHeightLG),colorItemBgSelected:(y==null||(Z=y.layout)===null||Z===void 0||(S=Z.sider)===null||S===void 0?void 0:S.colorBgMenuItemSelected)||(y==null?void 0:y.colorBgTextHover),colorItemBgActive:(y==null||(_=y.layout)===null||_===void 0||(U=_.sider)===null||U===void 0?void 0:U.colorBgMenuItemHover)||(y==null?void 0:y.colorBgTextHover),colorItemBgSelectedHorizontal:(y==null||(N=y.layout)===null||N===void 0||(j=N.sider)===null||j===void 0?void 0:j.colorBgMenuItemSelected)||(y==null?void 0:y.colorBgTextHover),colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemText:(y==null||(E=y.layout)===null||E===void 0||(D=E.sider)===null||D===void 0?void 0:D.colorTextMenu)||(y==null?void 0:y.colorTextSecondary),colorItemTextHover:(y==null||(F=y.layout)===null||F===void 0||(C=F.sider)===null||C===void 0?void 0:C.colorTextMenuActive)||"rgba(0, 0, 0, 0.85)",colorItemTextSelected:(y==null||($=y.layout)===null||$===void 0||(W=$.sider)===null||W===void 0?void 0:W.colorTextMenuSelected)||"rgba(0, 0, 0, 1)",colorBgElevated:(y==null||(R=y.layout)===null||R===void 0||(ee=R.sider)===null||ee===void 0?void 0:ee.colorBgMenuItemCollapsedElevated)||"#fff"}}},children:xt}),(0,d.jsxs)("div",{style:_r,className:"".concat(an,"-container ").concat(Gt),children:[(0,d.jsx)(Ke.ZP,{theme:{hashed:(0,te.nu)(),components:{Layout:{colorBgHeader:"transparent",colorBgBody:"transparent"},Menu:{colorItemBg:(y==null||(Y=y.layout)===null||Y===void 0||(J=Y.header)===null||J===void 0?void 0:J.colorBgHeader)||"transparent",colorSubItemBg:(y==null||(T=y.layout)===null||T===void 0||(q=T.header)===null||q===void 0?void 0:q.colorBgHeader)||"transparent",radiusItem:4,colorItemBgSelected:(y==null||(ae=y.layout)===null||ae===void 0||(ne=ae.header)===null||ne===void 0?void 0:ne.colorBgMenuItemSelected)||(y==null?void 0:y.colorBgTextHover),colorItemBgActive:(y==null||(se=y.layout)===null||se===void 0||(L=se.header)===null||L===void 0?void 0:L.colorBgMenuItemHover)||(y==null?void 0:y.colorBgTextHover),colorItemBgSelectedHorizontal:(y==null||(Ce=y.layout)===null||Ce===void 0||(je=Ce.header)===null||je===void 0?void 0:je.colorBgMenuItemSelected)||(y==null?void 0:y.colorBgTextHover),colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemText:(y==null||(ye=y.layout)===null||ye===void 0||(fe=ye.header)===null||fe===void 0?void 0:fe.colorTextMenu)||(y==null?void 0:y.colorTextSecondary),colorItemTextHoverHorizontal:(y==null||(_e=y.layout)===null||_e===void 0||(Ee=_e.header)===null||Ee===void 0?void 0:Ee.colorTextMenuActive)||(y==null?void 0:y.colorText),colorItemTextSelectedHorizontal:(y==null||(Re=y.layout)===null||Re===void 0||(He=Re.header)===null||He===void 0?void 0:He.colorTextMenuSelected)||(y==null?void 0:y.colorTextBase),colorItemTextHover:(y==null||(We=y.layout)===null||We===void 0||(Ge=We.header)===null||Ge===void 0?void 0:Ge.colorTextMenuActive)||"rgba(0, 0, 0, 0.85)",colorItemTextSelected:(y==null||(Xe=y.layout)===null||Xe===void 0||(be=Xe.header)===null||be===void 0?void 0:be.colorTextMenuSelected)||"rgba(0, 0, 0, 1)"}}},children:Kt}),(0,d.jsx)(Ro,(0,v.Z)((0,v.Z)({hasPageContainer:Er,isChildrenLayout:Ut},Uo),{},{hasHeader:!!Kt,prefixCls:an,style:rn,children:Yn?(0,d.jsx)(ka.S,{}):sn})),Tr,wr&&(0,d.jsx)("div",{className:"".concat(an,"-has-footer"),style:{height:64,marginBlockStart:y==null||(cn=y.layout)===null||cn===void 0||(Ve=cn.pageContainer)===null||Ve===void 0?void 0:Ve.paddingBlockPageContainerContent}})]})]})]})}))},No=function(e){var n=e.colorPrimary,r=e.navTheme!==void 0?{dark:e.navTheme==="realDark"}:{};return(0,d.jsx)(Ke.ZP,{theme:n?{token:{colorPrimary:n}}:void 0,children:(0,d.jsx)(te._Y,(0,v.Z)((0,v.Z)({autoClearCache:!0},r),{},{token:e.token,prefixCls:e.prefixCls,children:(0,d.jsx)(Bo,(0,v.Z)((0,v.Z)({logo:(0,d.jsx)(Jr,{})},or.h),{},{location:(0,he.j)()?window.location:void 0},e))}))})}},79693:function(we,Te,m){"use strict";m.d(Te,{S:function(){return te}});var u=m(75782),re=m(58733),le=m(86981),Ze=m(50959),z=m(11527),v=["isLoading","pastDelay","timedOut","error","retry"],te=function(g){var he=g.isLoading,$e=g.pastDelay,pe=g.timedOut,I=g.error,G=g.retry,h=(0,re.Z)(g,v);return(0,z.jsx)("div",{style:{paddingBlockStart:100,textAlign:"center"},children:(0,z.jsx)(le.Z,(0,u.Z)({size:"large"},h))})}},43507:function(we,Te,m){"use strict";m.d(Te,{X:function(){return re}});var u=m(50959),re=(0,u.createContext)({})},80407:function(we,Te,m){"use strict";m.d(Te,{S:function(){return he}});var u=m(40936),re=m(49962),le=m(60790),Ze=m(39027),z=m(76614),v=m(24572),te=m(28630),ve=m(50959),g=m(11527),he=function($e){(0,Ze.Z)(I,$e);var pe=(0,z.Z)(I);function I(){var G;(0,u.Z)(this,I);for(var h=arguments.length,M=new Array(h),b=0;b<h;b++)M[b]=arguments[b];return G=pe.call.apply(pe,[this].concat(M)),(0,v.Z)((0,le.Z)(G),"state",{hasError:!1,errorInfo:""}),G}return(0,re.Z)(I,[{key:"componentDidCatch",value:function(h,M){console.log(h,M)}},{key:"render",value:function(){return this.state.hasError?(0,g.jsx)(te.ZP,{status:"error",title:"Something went wrong.",extra:this.state.errorInfo}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(h){return{hasError:!0,errorInfo:h.message}}}]),I}(ve.Component)},57939:function(we,Te,m){"use strict";m.d(Te,{D:function(){return z}});var u=m(99932),re=m(78450),le=m(50959),Ze=m(88938);function z(v,te){var ve=(0,Ze.J)(v),g=(0,le.useRef)(),he=(0,le.useCallback)(function(){g.current&&(clearTimeout(g.current),g.current=null)},[]),$e=(0,le.useCallback)((0,re.Z)((0,u.Z)().mark(function pe(){var I,G,h,M=arguments;return(0,u.Z)().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:for(I=M.length,G=new Array(I),h=0;h<I;h++)G[h]=M[h];if(!(te===0||te===void 0)){w.next=3;break}return w.abrupt("return",ve.apply(void 0,G));case 3:return he(),w.abrupt("return",new Promise(function(ue){g.current=setTimeout((0,re.Z)((0,u.Z)().mark(function X(){return(0,u.Z)().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.t0=ue,x.next=3,ve.apply(void 0,G);case 3:return x.t1=x.sent,(0,x.t0)(x.t1),x.abrupt("return");case 6:case"end":return x.stop()}},X)})),te)}));case 5:case"end":return w.stop()}},pe)})),[ve,he,te]);return(0,le.useEffect)(function(){return he},[he]),{run:$e,cancel:he}}},88938:function(we,Te,m){"use strict";m.d(Te,{J:function(){return le}});var u=m(49544),re=m(50959),le=function(z){var v=(0,re.useRef)(null);return v.current=z,(0,re.useCallback)(function(){for(var te,ve=arguments.length,g=new Array(ve),he=0;he<ve;he++)g[he]=arguments[he];return(te=v.current)===null||te===void 0?void 0:te.call.apply(te,[v].concat((0,u.Z)(g)))},[])}},6866:function(we,Te){var m;function u(h){return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},u(h)}m={value:!0},Te.Bo=m=m=m=m=m=m=void 0;function re(h){for(var M=[],b=0;b<h.length;){var w=h[b];if(w==="*"||w==="+"||w==="?"){M.push({type:"MODIFIER",index:b,value:h[b++]});continue}if(w==="\\"){M.push({type:"ESCAPED_CHAR",index:b++,value:h[b++]});continue}if(w==="{"){M.push({type:"OPEN",index:b,value:h[b++]});continue}if(w==="}"){M.push({type:"CLOSE",index:b,value:h[b++]});continue}if(w===":"){for(var ue="",X=b+1;X<h.length;){var P=h.charCodeAt(X);if(P>=48&&P<=57||P>=65&&P<=90||P>=97&&P<=122||P===95){ue+=h[X++];continue}break}if(!ue)throw new TypeError("Missing parameter name at "+b);M.push({type:"NAME",index:b,value:ue}),b=X;continue}if(w==="("){var x=1,A="",X=b+1;if(h[X]==="?")throw new TypeError('Pattern cannot start with "?" at '+X);for(;X<h.length;){if(h[X]==="\\"){A+=h[X++]+h[X++];continue}if(h[X]===")"){if(x--,x===0){X++;break}}else if(h[X]==="("&&(x++,h[X+1]!=="?"))throw new TypeError("Capturing groups are not allowed at "+X);A+=h[X++]}if(x)throw new TypeError("Unbalanced pattern at "+b);if(!A)throw new TypeError("Missing pattern at "+b);M.push({type:"PATTERN",index:b,value:A}),b=X;continue}M.push({type:"CHAR",index:b,value:h[b++]})}return M.push({type:"END",index:b,value:""}),M}function le(h,M){M===void 0&&(M={});for(var b=re(h),w=M.prefixes,ue=w===void 0?"./":w,X="[^"+ve(M.delimiter||"/#?")+"]+?",P=[],x=0,A=0,O="",V=function(nn){if(A<b.length&&b[A].type===nn)return b[A++].value},Q=function(nn){var fn=V(nn);if(fn!==void 0)return fn;var zn=b[A],it=zn.type,lt=zn.index;throw new TypeError("Unexpected "+it+" at "+lt+", expected "+nn)},xe=function(){for(var nn="",fn;fn=V("CHAR")||V("ESCAPED_CHAR");)nn+=fn;return nn};A<b.length;){var ce=V("CHAR"),ge=V("NAME"),de=V("PATTERN");if(ge||de){var k=ce||"";ue.indexOf(k)===-1&&(O+=k,k=""),O&&(P.push(O),O=""),P.push({name:ge||x++,prefix:k,suffix:"",pattern:de||X,modifier:V("MODIFIER")||""});continue}var Le=ce||V("ESCAPED_CHAR");if(Le){O+=Le;continue}O&&(P.push(O),O="");var ze=V("OPEN");if(ze){var k=xe(),on=V("NAME")||"",Ne=V("PATTERN")||"",ln=xe();Q("CLOSE"),P.push({name:on||(Ne?x++:""),pattern:on&&!Ne?X:Ne,prefix:k,suffix:ln,modifier:V("MODIFIER")||""});continue}Q("END")}return P}m=le;function Ze(h,M){return z(le(h,M),M)}m=Ze;function z(h,M){M===void 0&&(M={});var b=g(M),w=M.encode,ue=w===void 0?function(A){return A}:w,X=M.validate,P=X===void 0?!0:X,x=h.map(function(A){if(u(A)==="object")return new RegExp("^(?:"+A.pattern+")$",b)});return function(A){for(var O="",V=0;V<h.length;V++){var Q=h[V];if(typeof Q=="string"){O+=Q;continue}var xe=A?A[Q.name]:void 0,ce=Q.modifier==="?"||Q.modifier==="*",ge=Q.modifier==="*"||Q.modifier==="+";if(Array.isArray(xe)){if(!ge)throw new TypeError('Expected "'+Q.name+'" to not repeat, but got an array');if(xe.length===0){if(ce)continue;throw new TypeError('Expected "'+Q.name+'" to not be empty')}for(var de=0;de<xe.length;de++){var k=ue(xe[de],Q);if(P&&!x[V].test(k))throw new TypeError('Expected all "'+Q.name+'" to match "'+Q.pattern+'", but got "'+k+'"');O+=Q.prefix+k+Q.suffix}continue}if(typeof xe=="string"||typeof xe=="number"){var k=ue(String(xe),Q);if(P&&!x[V].test(k))throw new TypeError('Expected "'+Q.name+'" to match "'+Q.pattern+'", but got "'+k+'"');O+=Q.prefix+k+Q.suffix;continue}if(!ce){var Le=ge?"an array":"a string";throw new TypeError('Expected "'+Q.name+'" to be '+Le)}}return O}}m=z;function v(h,M){var b=[],w=G(h,b,M);return te(w,b,M)}m=v;function te(h,M,b){b===void 0&&(b={});var w=b.decode,ue=w===void 0?function(X){return X}:w;return function(X){var P=h.exec(X);if(!P)return!1;for(var x=P[0],A=P.index,O=Object.create(null),V=function(ce){if(P[ce]===void 0)return"continue";var ge=M[ce-1];ge.modifier==="*"||ge.modifier==="+"?O[ge.name]=P[ce].split(ge.prefix+ge.suffix).map(function(de){return ue(de,ge)}):O[ge.name]=ue(P[ce],ge)},Q=1;Q<P.length;Q++)V(Q);return{path:x,index:A,params:O}}}m=te;function ve(h){return h.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function g(h){return h&&h.sensitive?"":"i"}function he(h,M){if(!M)return h;var b=h.source.match(/\((?!\?)/g);if(b)for(var w=0;w<b.length;w++)M.push({name:w,prefix:"",suffix:"",modifier:"",pattern:""});return h}function $e(h,M,b){var w=h.map(function(ue){return G(ue,M,b).source});return new RegExp("(?:"+w.join("|")+")",g(b))}function pe(h,M,b){return I(le(h,b),M,b)}function I(h,M,b){b===void 0&&(b={});for(var w=b.strict,ue=w===void 0?!1:w,X=b.start,P=X===void 0?!0:X,x=b.end,A=x===void 0?!0:x,O=b.encode,V=O===void 0?function(en){return en}:O,Q="["+ve(b.endsWith||"")+"]|$",xe="["+ve(b.delimiter||"/#?")+"]",ce=P?"^":"",ge=0,de=h;ge<de.length;ge++){var k=de[ge];if(typeof k=="string")ce+=ve(V(k));else{var Le=ve(V(k.prefix)),ze=ve(V(k.suffix));if(k.pattern)if(M&&M.push(k),Le||ze)if(k.modifier==="+"||k.modifier==="*"){var on=k.modifier==="*"?"?":"";ce+="(?:"+Le+"((?:"+k.pattern+")(?:"+ze+Le+"(?:"+k.pattern+"))*)"+ze+")"+on}else ce+="(?:"+Le+"("+k.pattern+")"+ze+")"+k.modifier;else ce+="("+k.pattern+")"+k.modifier;else ce+="(?:"+Le+ze+")"+k.modifier}}if(A)ue||(ce+=xe+"?"),ce+=b.endsWith?"(?="+Q+")":"$";else{var Ne=h[h.length-1],ln=typeof Ne=="string"?xe.indexOf(Ne[Ne.length-1])>-1:Ne===void 0;ue||(ce+="(?:"+xe+"(?="+Q+"))?"),ln||(ce+="(?="+xe+"|"+Q+")")}return new RegExp(ce,g(b))}m=I;function G(h,M,b){return h instanceof RegExp?he(h,M):Array.isArray(h)?$e(h,M,b):pe(h,M,b)}Te.Bo=G},58809:function(we){we.exports=pe,we.exports.parse=re,we.exports.compile=le,we.exports.tokensToFunction=Ze,we.exports.tokensToRegExp=$e;var Te="/",m="./",u=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g");function re(I,G){for(var h=[],M=0,b=0,w="",ue=G&&G.delimiter||Te,X=G&&G.delimiters||m,P=!1,x;(x=u.exec(I))!==null;){var A=x[0],O=x[1],V=x.index;if(w+=I.slice(b,V),b=V+A.length,O){w+=O[1],P=!0;continue}var Q="",xe=I[b],ce=x[2],ge=x[3],de=x[4],k=x[5];if(!P&&w.length){var Le=w.length-1;X.indexOf(w[Le])>-1&&(Q=w[Le],w=w.slice(0,Le))}w&&(h.push(w),w="",P=!1);var ze=Q!==""&&xe!==void 0&&xe!==Q,on=k==="+"||k==="*",Ne=k==="?"||k==="*",ln=Q||ue,en=ge||de;h.push({name:ce||M++,prefix:Q,delimiter:ln,optional:Ne,repeat:on,partial:ze,pattern:en?v(en):"[^"+z(ln)+"]+?"})}return(w||b<I.length)&&h.push(w+I.substr(b)),h}function le(I,G){return Ze(re(I,G))}function Ze(I){for(var G=new Array(I.length),h=0;h<I.length;h++)typeof I[h]=="object"&&(G[h]=new RegExp("^(?:"+I[h].pattern+")$"));return function(M,b){for(var w="",ue=b&&b.encode||encodeURIComponent,X=0;X<I.length;X++){var P=I[X];if(typeof P=="string"){w+=P;continue}var x=M?M[P.name]:void 0,A;if(Array.isArray(x)){if(!P.repeat)throw new TypeError('Expected "'+P.name+'" to not repeat, but got array');if(x.length===0){if(P.optional)continue;throw new TypeError('Expected "'+P.name+'" to not be empty')}for(var O=0;O<x.length;O++){if(A=ue(x[O],P),!G[X].test(A))throw new TypeError('Expected all "'+P.name+'" to match "'+P.pattern+'"');w+=(O===0?P.prefix:P.delimiter)+A}continue}if(typeof x=="string"||typeof x=="number"||typeof x=="boolean"){if(A=ue(String(x),P),!G[X].test(A))throw new TypeError('Expected "'+P.name+'" to match "'+P.pattern+'", but got "'+A+'"');w+=P.prefix+A;continue}if(P.optional){P.partial&&(w+=P.prefix);continue}throw new TypeError('Expected "'+P.name+'" to be '+(P.repeat?"an array":"a string"))}return w}}function z(I){return I.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function v(I){return I.replace(/([=!:$/()])/g,"\\$1")}function te(I){return I&&I.sensitive?"":"i"}function ve(I,G){if(!G)return I;var h=I.source.match(/\((?!\?)/g);if(h)for(var M=0;M<h.length;M++)G.push({name:M,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,pattern:null});return I}function g(I,G,h){for(var M=[],b=0;b<I.length;b++)M.push(pe(I[b],G,h).source);return new RegExp("(?:"+M.join("|")+")",te(h))}function he(I,G,h){return $e(re(I,h),G,h)}function $e(I,G,h){h=h||{};for(var M=h.strict,b=h.start!==!1,w=h.end!==!1,ue=z(h.delimiter||Te),X=h.delimiters||m,P=[].concat(h.endsWith||[]).map(z).concat("$").join("|"),x=b?"^":"",A=I.length===0,O=0;O<I.length;O++){var V=I[O];if(typeof V=="string")x+=z(V),A=O===I.length-1&&X.indexOf(V[V.length-1])>-1;else{var Q=V.repeat?"(?:"+V.pattern+")(?:"+z(V.delimiter)+"(?:"+V.pattern+"))*":V.pattern;G&&G.push(V),V.optional?V.partial?x+=z(V.prefix)+"("+Q+")?":x+="(?:"+z(V.prefix)+"("+Q+"))?":x+=z(V.prefix)+"("+Q+")"}}return w?(M||(x+="(?:"+ue+")?"),x+=P==="$"?"$":"(?="+P+")"):(M||(x+="(?:"+ue+"(?="+P+"))?"),A||(x+="(?="+ue+"|"+P+")")),new RegExp(x,te(h))}function pe(I,G,h){return I instanceof RegExp?ve(I,G):Array.isArray(I)?g(I,G,h):he(I,G,h)}},54689:function(we,Te,m){var u=m(41442);function re(le,Ze){var z=typeof Symbol!="undefined"&&le[Symbol.iterator]||le["@@iterator"];if(!z){if(Array.isArray(le)||(z=u(le))||Ze&&le&&typeof le.length=="number"){z&&(le=z);var v=0,te=function(){};return{s:te,n:function(){return v>=le.length?{done:!0}:{done:!1,value:le[v++]}},e:function(pe){throw pe},f:te}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ve=!0,g=!1,he;return{s:function(){z=z.call(le)},n:function(){var pe=z.next();return ve=pe.done,pe},e:function(pe){g=!0,he=pe},f:function(){try{!ve&&z.return!=null&&z.return()}finally{if(g)throw he}}}}we.exports=re,we.exports.__esModule=!0,we.exports.default=we.exports}}]);
