28 lines
108 KiB
JavaScript
28 lines
108 KiB
JavaScript
var kn=(se,ee)=>(ee=Symbol[se])?ee:Symbol.for("Symbol."+se),To=se=>{throw TypeError(se)};var jo=function(se,ee){this[0]=se,this[1]=ee};var Gn=se=>{var ee=se[kn("asyncIterator")],x=!1,l,Q={};return ee==null?(ee=se[kn("iterator")](),l=V=>Q[V]=le=>ee[V](le)):(ee=ee.call(se),l=V=>Q[V]=le=>{if(x){if(x=!1,V==="throw")throw le;return le}return x=!0,{done:!1,value:new jo(new Promise(U=>{var v=ee[V](le);v instanceof Object||To("Object expected"),U(v)}),1)}}),Q[kn("iterator")]=()=>Q,l("next"),"throw"in ee?l("throw"):Q.throw=V=>{throw V},"return"in ee&&l("return"),Q};(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[409],{15757:function(se,ee,x){"use strict";x.d(ee,{f:function(){return so}});var l=x(4942),Q=x(74165),V=x(15861),le=x(91),U=x(97685),v=x(1413),te=x(89451),ve=x(21770),m=x(67294);function me(r){var e=typeof window=="undefined",n=(0,m.useState)(function(){return e?!1:window.matchMedia(r).matches}),t=(0,U.Z)(n,2),a=t[0],i=t[1];return(0,m.useLayoutEffect)(function(){if(!e){var o=window.matchMedia(r),c=function(s){return i(s.matches)};return o.addListener(c),function(){return o.removeListener(c)}}},[r]),a}var fe={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)"}},Te=function(){var e=void 0;if(typeof window=="undefined")return e;var n=Object.keys(fe).find(function(t){var a=fe[t].matchMedia;return!!window.matchMedia(a).matches});return e=n,e},$e=function(){var e=me(fe.md.matchMedia),n=me(fe.lg.matchMedia),t=me(fe.xxl.matchMedia),a=me(fe.xl.matchMedia),i=me(fe.sm.matchMedia),o=me(fe.xs.matchMedia),c=(0,m.useState)(Te()),d=(0,U.Z)(c,2),s=d[0],f=d[1];return(0,m.useEffect)(function(){if(t){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,t,a,i,o]),s},He=x(12044);function N(r,e){var n=typeof r.pageName=="string"?r.title:e;(0,m.useEffect)(function(){(0,He.j)()&&n&&(document.title=n)},[r.title,n])}var _=x(1977),j=x(73177);function Y(r){if((0,_.n)((0,j.b)(),"5.6.0")<0)return r;var e={colorGroupTitle:"groupTitleColor",radiusItem:"itemBorderRadius",radiusSubMenuItem:"subMenuItemBorderRadius",colorItemText:"itemColor",colorItemTextHover:"itemHoverColor",colorItemTextHoverHorizontal:"horizontalItemHoverColor",colorItemTextSelected:"itemSelectedColor",colorItemTextSelectedHorizontal:"horizontalItemSelectedColor",colorItemTextDisabled:"itemDisabledColor",colorDangerItemText:"dangerItemColor",colorDangerItemTextHover:"dangerItemHoverColor",colorDangerItemTextSelected:"dangerItemSelectedColor",colorDangerItemBgActive:"dangerItemActiveBg",colorDangerItemBgSelected:"dangerItemSelectedBg",colorItemBg:"itemBg",colorItemBgHover:"itemHoverBg",colorSubItemBg:"subMenuItemBg",colorItemBgActive:"itemActiveBg",colorItemBgSelected:"itemSelectedBg",colorItemBgSelectedHorizontal:"horizontalItemSelectedBg",colorActiveBarWidth:"activeBarWidth",colorActiveBarHeight:"activeBarHeight",colorActiveBarBorderSize:"activeBarBorderWidth"},n=(0,v.Z)({},r);return Object.keys(e).forEach(function(t){n[t]!==void 0&&(n[e[t]]=n[t],delete n[t])}),n}var ce=x(90743);function K(r,e){return e>>>r|e<<32-r}function J(r,e,n){return r&e^~r&n}function he(r,e,n){return r&e^r&n^e&n}function oe(r){return K(2,r)^K(13,r)^K(22,r)}function Z(r){return K(6,r)^K(11,r)^K(25,r)}function C(r){return K(7,r)^K(18,r)^r>>>3}function h(r){return K(17,r)^K(19,r)^r>>>10}function E(r,e){return r[e&15]+=h(r[e+14&15])+r[e+9&15]+C(r[e+1&15])}var R=[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],S,F,I,ue="0123456789abcdef";function Ce(r,e){var n=(r&65535)+(e&65535),t=(r>>16)+(e>>16)+(n>>16);return t<<16|n&65535}function Pe(){S=new Array(8),F=new Array(2),I=new Array(64),F[0]=F[1]=0,S[0]=1779033703,S[1]=3144134277,S[2]=1013904242,S[3]=2773480762,S[4]=1359893119,S[5]=2600822924,S[6]=528734635,S[7]=1541459225}function Ie(){var r,e,n,t,a,i,o,c,d,s,f=new Array(16);r=S[0],e=S[1],n=S[2],t=S[3],a=S[4],i=S[5],o=S[6],c=S[7];for(var b=0;b<16;b++)f[b]=I[(b<<2)+3]|I[(b<<2)+2]<<8|I[(b<<2)+1]<<16|I[b<<2]<<24;for(var g=0;g<64;g++)d=c+Z(a)+J(a,i,o)+R[g],g<16?d+=f[g]:d+=E(f,g),s=oe(r)+he(r,e,n),c=o,o=i,i=a,a=Ce(t,d),t=n,n=e,e=r,r=Ce(d,s);S[0]+=r,S[1]+=e,S[2]+=n,S[3]+=t,S[4]+=a,S[5]+=i,S[6]+=o,S[7]+=c}function De(r,e){var n,t,a=0;t=F[0]>>3&63;var i=e&63;for((F[0]+=e<<3)<e<<3&&F[1]++,F[1]+=e>>29,n=0;n+63<e;n+=64){for(var o=t;o<64;o++)I[o]=r.charCodeAt(a++);Ie(),t=0}for(var c=0;c<i;c++)I[c]=r.charCodeAt(a++)}function Le(){var r=F[0]>>3&63;if(I[r++]=128,r<=56)for(var e=r;e<56;e++)I[e]=0;else{for(var n=r;n<64;n++)I[n]=0;Ie();for(var t=0;t<56;t++)I[t]=0}I[56]=F[1]>>>24&255,I[57]=F[1]>>>16&255,I[58]=F[1]>>>8&255,I[59]=F[1]&255,I[60]=F[0]>>>24&255,I[61]=F[0]>>>16&255,I[62]=F[0]>>>8&255,I[63]=F[0]&255,Ie()}function be(){for(var r=0,e=new Array(32),n=0;n<8;n++)e[r++]=S[n]>>>24&255,e[r++]=S[n]>>>16&255,e[r++]=S[n]>>>8&255,e[r++]=S[n]&255;return e}function Fe(){for(var r=new String,e=0;e<8;e++)for(var n=28;n>=0;n-=4)r+=ue.charAt(S[e]>>>n&15);return r}function Xe(r){return Pe(),De(r,r.length),Le(),Fe()}var Oe=Xe;function Ve(r){"@babel/helpers - typeof";return Ve=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},Ve(r)}var Tn=["pro_layout_parentKeys","children","icon","flatMenu","indexRoute","routes"];function _t(r,e){return Ft(r)||Wt(r,e)||Bn(r,e)||zt()}function zt(){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 Wt(r,e){var n=r==null?null:typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(n!=null){var t=[],a=!0,i=!1,o,c;try{for(n=n.call(r);!(a=(o=n.next()).done)&&(t.push(o.value),!(e&&t.length===e));a=!0);}catch(d){i=!0,c=d}finally{try{!a&&n.return!=null&&n.return()}finally{if(i)throw c}}return t}}function Ft(r){if(Array.isArray(r))return r}function Kt(r,e){var n=typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(!n){if(Array.isArray(r)||(n=Bn(r))||e&&r&&typeof r.length=="number"){n&&(r=n);var t=0,a=function(){};return{s:a,n:function(){return t>=r.length?{done:!0}:{done:!1,value:r[t++]}},e:function(s){throw s},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,c;return{s:function(){n=n.call(r)},n:function(){var s=n.next();return i=s.done,s},e:function(s){o=!0,c=s},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(o)throw c}}}}function Ut(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function Xn(r,e){for(var n=0;n<e.length;n++){var t=e[n];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(r,t.key,t)}}function kt(r,e,n){return e&&Xn(r.prototype,e),n&&Xn(r,n),Object.defineProperty(r,"prototype",{writable:!1}),r}function Gt(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&an(r,e)}function Xt(r){var e=Vn();return function(){var t=on(r),a;if(e){var i=on(this).constructor;a=Reflect.construct(t,arguments,i)}else a=t.apply(this,arguments);return Vt(this,a)}}function Vt(r,e){if(e&&(Ve(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Qt(r)}function Qt(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function jn(r){var e=typeof Map=="function"?new Map:void 0;return jn=function(t){if(t===null||!Yt(t))return t;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(t))return e.get(t);e.set(t,a)}function a(){return pn(t,arguments,on(this).constructor)}return a.prototype=Object.create(t.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),an(a,t)},jn(r)}function pn(r,e,n){return Vn()?pn=Reflect.construct.bind():pn=function(a,i,o){var c=[null];c.push.apply(c,i);var d=Function.bind.apply(a,c),s=new d;return o&&an(s,o.prototype),s},pn.apply(null,arguments)}function Vn(){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(r){return!1}}function Yt(r){return Function.toString.call(r).indexOf("[native code]")!==-1}function an(r,e){return an=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,a){return t.__proto__=a,t},an(r,e)}function on(r){return on=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},on(r)}function Qn(r){return er(r)||qt(r)||Bn(r)||Jt()}function Jt(){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 Bn(r,e){if(r){if(typeof r=="string")return Pn(r,e);var n=Object.prototype.toString.call(r).slice(8,-1);if(n==="Object"&&r.constructor&&(n=r.constructor.name),n==="Map"||n==="Set")return Array.from(r);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Pn(r,e)}}function qt(r){if(typeof Symbol!="undefined"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}function er(r){if(Array.isArray(r))return Pn(r)}function Pn(r,e){(e==null||e>r.length)&&(e=r.length);for(var n=0,t=new Array(e);n<e;n++)t[n]=r[n];return t}function nr(r,e){if(r==null)return{};var n=tr(r,e),t,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);for(a=0;a<i.length;a++)t=i[a],!(e.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(r,t)&&(n[t]=r[t])}return n}function tr(r,e){if(r==null)return{};var n={},t=Object.keys(r),a,i;for(i=0;i<t.length;i++)a=t[i],!(e.indexOf(a)>=0)&&(n[a]=r[a]);return n}function Yn(r,e){var n=Object.keys(r);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(r);e&&(t=t.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),n.push.apply(n,t)}return n}function ge(r){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Yn(Object(n),!0).forEach(function(t){rr(r,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):Yn(Object(n)).forEach(function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(n,t))})}return r}function rr(r,e,n){return e in r?Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n,r}var je="routes";function ln(r){return r.split("?")[0].split("#")[0]}var Ln=function(e){if(!e.startsWith("http"))return!1;try{var n=new URL(e);return!!n}catch(t){return!1}},ar=function(e){var n=e.path;if(!n||n==="/")try{return"/".concat(Oe(JSON.stringify(e)))}catch(t){}return n&&ln(n)},or=function(e,n){var t=e.name,a=e.locale;return"locale"in e&&a===!1||!t?!1:e.locale||"".concat(n,".").concat(t)},Jn=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("/")||Ln(e)?e:"/".concat(n,"/").concat(e).replace(/\/\//g,"/").replace(/\/\//g,"/")},ir=function(e,n){var t=e.menu,a=t===void 0?{}:t,i=e.indexRoute,o=e.path,c=o===void 0?"":o,d=e.children||[],s=a.name,f=s===void 0?e.name:s,b=a.icon,g=b===void 0?e.icon:b,w=a.hideChildren,H=w===void 0?e.hideChildren:w,P=a.flatMenu,M=P===void 0?e.flatMenu:P,z=i&&Object.keys(i).join(",")!=="redirect"?[ge({path:c,menu:a},i)].concat(d||[]):d,D=ge({},e);if(f&&(D.name=f),g&&(D.icon=g),z&&z.length){if(H)return delete D.children,D;var W=En(ge(ge({},n),{},{data:z}),e);if(M)return W;delete D[je]}return D},Qe=function(e){return Array.isArray(e)&&e.length>0};function En(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{path:"/"},n=r.data,t=r.formatMessage,a=r.parentName,i=r.locale;return!n||!Array.isArray(n)?[]:n.filter(function(o){return o?Qe(o.children)||o.path||o.originPath||o.layout?!0:(o.redirect||o.unaccessible,!1):!1}).filter(function(o){var c,d;return!(o==null||(c=o.menu)===null||c===void 0)&&c.name||o!=null&&o.flatMenu||!(o==null||(d=o.menu)===null||d===void 0)&&d.flatMenu?!0:o.menu!==!1}).map(function(o){var c=ge(ge({},o),{},{path:o.path||o.originPath});return!c.children&&c[je]&&(c.children=c[je],delete c[je]),c.unaccessible&&delete c.name,c.path==="*"&&(c.path="."),c.path==="/*"&&(c.path="."),!c.path&&c.originPath&&(c.path=c.originPath),c}).map(function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{path:"/"},c=o.children||o[je]||[],d=Jn(o.path,e?e.path:"/"),s=o.name,f=or(o,a||"menu"),b=f!==!1&&i!==!1&&t&&f?t({id:f,defaultMessage:s}):s,g=e.pro_layout_parentKeys,w=g===void 0?[]:g,H=e.children,P=e.icon,M=e.flatMenu,z=e.indexRoute,D=e.routes,W=nr(e,Tn),L=new Set([].concat(Qn(w),Qn(o.parentKeys||[])));e.key&&L.add(e.key);var $=ge(ge(ge({},W),{},{menu:void 0},o),{},{path:d,locale:f,key:o.key||ar(ge(ge({},o),{},{path:d})),pro_layout_parentKeys:Array.from(L).filter(function(B){return B&&B!=="/"})});if(b?$.name=b:delete $.name,$.menu===void 0&&delete $.menu,Qe(c)){var y=En(ge(ge({},r),{},{data:c,parentName:f||""}),$);Qe(y)&&($.children=y)}return ir($,r)}).flat(1)}var lr=function r(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.filter(function(n){return n&&(n.name||Qe(n.children))&&!n.hideInMenu&&!n.redirect}).map(function(n){var t=ge({},n),a=t.children||n[je]||[];if(delete t[je],Qe(a)&&!t.hideChildrenInMenu&&a.some(function(o){return o&&!!o.name})){var i=r(a);if(i.length)return ge(ge({},t),{},{children:i})}return ge({},n)}).filter(function(n){return n})},ur=function(r){Gt(n,r);var e=Xt(n);function n(){return Ut(this,n),e.apply(this,arguments)}return kt(n,[{key:"get",value:function(a){var i;try{var o=Kt(this.entries()),c;try{for(o.s();!(c=o.n()).done;){var d=_t(c.value,2),s=d[0],f=d[1],b=ln(s);if(!Ln(s)&&(0,ce.Bo)(b,[]).test(a)){i=f;break}}}catch(g){o.e(g)}finally{o.f()}}catch(g){i=void 0}return i}}]),n}(jn(Map)),cr=function(e){var n=new ur,t=function a(i,o){i.forEach(function(c){var d=c.children||c[je]||[];Qe(d)&&a(d,c);var s=Jn(c.path,o?o.path:"/");n.set(ln(s),c)})};return t(e),n},dr=function r(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(function(n){var t=n.children||n[je];if(Qe(t)){var a=r(t);if(a.length)return ge({},n)}var i=ge({},n);return delete i[je],delete i.children,i}).filter(function(n){return n})},sr=function(e,n,t,a){var i=En({data:e,formatMessage:t,locale:n}),o=a?dr(i):lr(i),c=cr(i);return{breadcrumb:c,menuData:o}},vr=sr;function qn(r,e){var n=Object.keys(r);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(r);e&&(t=t.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),n.push.apply(n,t)}return n}function un(r){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?qn(Object(n),!0).forEach(function(t){fr(r,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):qn(Object(n)).forEach(function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(n,t))})}return r}function fr(r,e,n){return e in r?Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n,r}var mr=function r(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n={};return e.forEach(function(t){var a=un({},t);if(!(!a||!a.key)){!a.children&&a[je]&&(a.children=a[je],delete a[je]);var i=a.children||[];n[ln(a.path||a.key||"/")]=un({},a),n[a.key||a.path||"/"]=un({},a),i&&(n=un(un({},n),r(i)))}}),n},hr=mr,gr=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0;return e.filter(function(a){if(a==="/"&&n==="/")return!0;if(a!=="/"&&a!=="/*"&&a&&!Ln(a)){var i=ln(a);try{if(t&&(0,ce.Bo)("".concat(i)).test(n)||(0,ce.Bo)("".concat(i),[]).test(n)||(0,ce.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})},pr=function(e,n,t,a){var i=hr(n),o=Object.keys(i),c=gr(o,e||"/",a);return!c||c.length<1?[]:(t||(c=[c[c.length-1]]),c.map(function(d){var s=i[d]||{pro_layout_parentKeys:"",key:""},f=new Map,b=(s.pro_layout_parentKeys||[]).map(function(g){return f.has(g)?null:(f.set(g,!0),i[g])}).filter(function(g){return g});return s.key&&b.push(s),b}).flat(1))},yr=pr,_e=x(91269),Ye=x(26058),xr=x(93967),q=x.n(xr),et=x(97435),Cr=x(80334),nt=x(81758),tt=x(15671),rt=x(43144),br=x(97326),Sr=x(60136),Zr=x(29388),Mr=x(29905),u=x(85893),Ir=function(r){(0,Sr.Z)(n,r);var e=(0,Zr.Z)(n);function n(){var t;(0,tt.Z)(this,n);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return t=e.call.apply(e,[this].concat(i)),(0,l.Z)((0,br.Z)(t),"state",{hasError:!1,errorInfo:""}),t}return(0,rt.Z)(n,[{key:"componentDidCatch",value:function(a,i){console.log(a,i)}},{key:"render",value:function(){return this.state.hasError?(0,u.jsx)(Mr.ZP,{status:"error",title:"Something went wrong.",extra:this.state.errorInfo}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(a){return{hasError:!0,errorInfo:a.message}}}]),n}(m.Component),Rr=function(e){var n=(0,m.useContext)(te.L_),t=n.hashId,a=e.style,i=e.prefixCls,o=e.children,c=e.hasPageContainer,d=c===void 0?0:c,s=q()("".concat(i,"-content"),t,(0,l.Z)((0,l.Z)({},"".concat(i,"-has-header"),e.hasHeader),"".concat(i,"-content-has-page-container"),d>0)),f=e.ErrorBoundary||Ir;return e.ErrorBoundary===!1?(0,u.jsx)(Ye.Z.Content,{className:s,style:a,children:o}):(0,u.jsx)(f,{children:(0,u.jsx)(Ye.Z.Content,{className:s,style:a,children:o})})},wr=function(){return(0,u.jsxs)("svg",{width:"1em",height:"1em",viewBox:"0 0 200 200",children:[(0,u.jsxs)("defs",{children:[(0,u.jsxs)("linearGradient",{x1:"62.1023273%",y1:"0%",x2:"108.19718%",y2:"37.8635764%",id:"linearGradient-1",children:[(0,u.jsx)("stop",{stopColor:"#4285EB",offset:"0%"}),(0,u.jsx)("stop",{stopColor:"#2EC7FF",offset:"100%"})]}),(0,u.jsxs)("linearGradient",{x1:"69.644116%",y1:"0%",x2:"54.0428975%",y2:"108.456714%",id:"linearGradient-2",children:[(0,u.jsx)("stop",{stopColor:"#29CDFF",offset:"0%"}),(0,u.jsx)("stop",{stopColor:"#148EFF",offset:"37.8600687%"}),(0,u.jsx)("stop",{stopColor:"#0A60FF",offset:"100%"})]}),(0,u.jsxs)("linearGradient",{x1:"69.6908165%",y1:"-12.9743587%",x2:"16.7228981%",y2:"117.391248%",id:"linearGradient-3",children:[(0,u.jsx)("stop",{stopColor:"#FA816E",offset:"0%"}),(0,u.jsx)("stop",{stopColor:"#F74A5C",offset:"41.472606%"}),(0,u.jsx)("stop",{stopColor:"#F51D2C",offset:"100%"})]}),(0,u.jsxs)("linearGradient",{x1:"68.1279872%",y1:"-35.6905737%",x2:"30.4400914%",y2:"114.942679%",id:"linearGradient-4",children:[(0,u.jsx)("stop",{stopColor:"#FA8E7D",offset:"0%"}),(0,u.jsx)("stop",{stopColor:"#F74A5C",offset:"51.2635191%"}),(0,u.jsx)("stop",{stopColor:"#F51D2C",offset:"100%"})]})]}),(0,u.jsx)("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd",children:(0,u.jsx)("g",{transform:"translate(-20.000000, -20.000000)",children:(0,u.jsx)("g",{transform:"translate(20.000000, 20.000000)",children:(0,u.jsxs)("g",{children:[(0,u.jsxs)("g",{fillRule:"nonzero",children:[(0,u.jsxs)("g",{children:[(0,u.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,u.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,u.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,u.jsx)("ellipse",{fill:"url(#linearGradient-4)",cx:"100.519339",cy:"100.436681",rx:"23.6001926",ry:"23.580786"})]})})})})]})},Tr=x(87909),cn=x(62812),yn=x(87462),jr={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"},Br=jr,Pr=x(65555),Lr=function(e,n){return m.createElement(Pr.Z,(0,yn.Z)({},e,{ref:n,icon:Br}))},Er=m.forwardRef(Lr),Nr=Er,Hr=x(74627),Ar=function(){return(0,u.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:(0,u.jsx)("path",{d:"M0 0h3v3H0V0zm4.5 0h3v3h-3V0zM9 0h3v3H9V0zM0 4.5h3v3H0v-3zm4.503 0h3v3h-3v-3zM9 4.5h3v3H9v-3zM0 9h3v3H0V9zm4.503 0h3v3h-3V9zM9 9h3v3H9V9z"})})},$r=function r(e){var n=e.appList,t=e.baseClassName,a=e.hashId,i=e.itemClick;return(0,u.jsx)("div",{className:"".concat(t,"-content ").concat(a).trim(),children:(0,u.jsx)("ul",{className:"".concat(t,"-content-list ").concat(a).trim(),children:n==null?void 0:n.map(function(o,c){var d;return o!=null&&(d=o.children)!==null&&d!==void 0&&d.length?(0,u.jsxs)("div",{className:"".concat(t,"-content-list-item-group ").concat(a).trim(),children:[(0,u.jsx)("div",{className:"".concat(t,"-content-list-item-group-title ").concat(a).trim(),children:o.title}),(0,u.jsx)(r,{hashId:a,itemClick:i,appList:o==null?void 0:o.children,baseClassName:t})]},c):(0,u.jsx)("li",{className:"".concat(t,"-content-list-item ").concat(a).trim(),onClick:function(f){f.stopPropagation(),i==null||i(o)},children:(0,u.jsxs)("a",{href:i?void 0:o.url,target:o.target,rel:"noreferrer",children:[Hn(o.icon),(0,u.jsxs)("div",{children:[(0,u.jsx)("div",{children:o.title}),o.desc?(0,u.jsx)("span",{children:o.desc}):null]})]})},c)})})})},Nn=function(e){if(!e||!e.startsWith("http"))return!1;try{var n=new URL(e);return!!n}catch(t){return!1}},Dr=function(e,n){if(e&&typeof e=="string"&&Nn(e))return(0,u.jsx)("img",{src:e,alt:"logo"});if(typeof e=="function")return e();if(e&&typeof e=="string")return(0,u.jsx)("div",{id:"avatarLogo",children:e});if(!e&&n&&typeof n=="string"){var t=n.substring(0,1);return(0,u.jsx)("div",{id:"avatarLogo",children:t})}return e},Or=function r(e){var n=e.appList,t=e.baseClassName,a=e.hashId,i=e.itemClick;return(0,u.jsx)("div",{className:"".concat(t,"-content ").concat(a).trim(),children:(0,u.jsx)("ul",{className:"".concat(t,"-content-list ").concat(a).trim(),children:n==null?void 0:n.map(function(o,c){var d;return o!=null&&(d=o.children)!==null&&d!==void 0&&d.length?(0,u.jsxs)("div",{className:"".concat(t,"-content-list-item-group ").concat(a).trim(),children:[(0,u.jsx)("div",{className:"".concat(t,"-content-list-item-group-title ").concat(a).trim(),children:o.title}),(0,u.jsx)(r,{hashId:a,itemClick:i,appList:o==null?void 0:o.children,baseClassName:t})]},c):(0,u.jsx)("li",{className:"".concat(t,"-content-list-item ").concat(a).trim(),onClick:function(f){f.stopPropagation(),i==null||i(o)},children:(0,u.jsxs)("a",{href:i?"javascript:;":o.url,target:o.target,rel:"noreferrer",children:[Dr(o.icon,o.title),(0,u.jsx)("div",{children:(0,u.jsx)("div",{children:o.title})})]})},c)})})})},Re=x(98082),_r=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":Re.Wf===null||Re.Wf===void 0?void 0:(0,Re.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"}}}}}}},zr=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"}}}}}}},Wr=function(e){var n,t,a,i,o;return(0,l.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:(n=e.layout)===null||n===void 0?void 0:n.colorTextAppListIcon,borderRadius:e.borderRadius,"&:hover":{color:(t=e.layout)===null||t===void 0?void 0:t.colorTextAppListIconHover,backgroundColor:(a=e.layout)===null||a===void 0?void 0:a.colorBgAppListIconHover},"&-active":{color:(i=e.layout)===null||i===void 0?void 0:i.colorTextAppListIconHover,backgroundColor:(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,l.Z)({},"".concat(e.antCls,"-popover-arrow"),{display:"none"}),"&-simple":zr(e),"&-default":_r(e)})};function Fr(r){return(0,Re.Xj)("AppsLogoComponents",function(e){var n=(0,v.Z)((0,v.Z)({},e),{},{componentCls:".".concat(r)});return[Wr(n)]})}var Hn=function(e){return typeof e=="string"?(0,u.jsx)("img",{width:"auto",height:22,src:e,alt:"logo"}):typeof e=="function"?e():e},An=function(e){var n,t=e.appList,a=e.appListRender,i=e.prefixCls,o=i===void 0?"ant-pro":i,c=e.onItemClick,d=m.useRef(null),s=m.useRef(null),f="".concat(o,"-layout-apps"),b=Fr(f),g=b.wrapSSR,w=b.hashId,H=(0,m.useState)(!1),P=(0,U.Z)(H,2),M=P[0],z=P[1],D=function(B){c==null||c(B,s)},W=(0,m.useMemo)(function(){var y=t==null?void 0:t.some(function(B){return!(B!=null&&B.desc)});return y?(0,u.jsx)(Or,{hashId:w,appList:t,itemClick:c?D:void 0,baseClassName:"".concat(f,"-simple")}):(0,u.jsx)($r,{hashId:w,appList:t,itemClick:c?D:void 0,baseClassName:"".concat(f,"-default")})},[t,f,w]);if(!(e!=null&&(n=e.appList)!==null&&n!==void 0&&n.length))return null;var L=a?a(e==null?void 0:e.appList,W):W,$=(0,j.X)(void 0,function(y){return z(y)});return g((0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{ref:d,onClick:function(B){B.stopPropagation(),B.preventDefault()}}),(0,u.jsx)(Hr.Z,(0,v.Z)((0,v.Z)({placement:"bottomRight",trigger:["click"],zIndex:9999,arrow:!1},$),{},{overlayClassName:"".concat(f,"-popover ").concat(w).trim(),content:L,getPopupContainer:function(){return d.current||document.body},children:(0,u.jsx)("span",{ref:s,onClick:function(B){B.stopPropagation()},className:q()("".concat(f,"-icon"),w,(0,l.Z)({},"".concat(f,"-icon-active"),M)),children:(0,u.jsx)(Ar,{})})}))]}))},at=x(7134),Kr=x(78957),ot=x(82669);function Ur(){return(0,u.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:(0,u.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 kr=function(e){var n,t,a;return(0,l.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:(n=e.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.colorTextCollapsedButton,backgroundColor:(t=e.layout)===null||t===void 0||(t=t.sider)===null||t===void 0?void 0:t.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:(a=e.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.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 Gr(r){return(0,Re.Xj)("SiderMenuCollapsedIcon",function(e){var n=(0,v.Z)((0,v.Z)({},e),{},{componentCls:".".concat(r)});return[kr(n)]})}var Xr=["isMobile","collapsed"],Vr=function(e){var n=e.isMobile,t=e.collapsed,a=(0,le.Z)(e,Xr),i=Gr(e.className),o=i.wrapSSR,c=i.hashId;return n&&t?null:o((0,u.jsx)("div",(0,v.Z)((0,v.Z)({},a),{},{className:q()(e.className,c,(0,l.Z)((0,l.Z)({},"".concat(e.className,"-collapsed"),t),"".concat(e.className,"-is-mobile"),n)),children:(0,u.jsx)(Ur,{})})))},xn=x(74902),Qr=x(42550),Yr=x(2446),Cn=x(14004),Jr=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],it=m.forwardRef(function(r,e){var n=r.className,t=r.component,a=r.viewBox,i=r.spin,o=r.rotate,c=r.tabIndex,d=r.onClick,s=r.children,f=(0,le.Z)(r,Jr),b=m.useRef(),g=(0,Qr.x1)(b,e);(0,Cn.Kp)(!!(t||s),"Should have `component` prop or `children`."),(0,Cn.C3)(b);var w=m.useContext(Yr.Z),H=w.prefixCls,P=H===void 0?"anticon":H,M=w.rootClassName,z=q()(M,P,(0,l.Z)({},"".concat(P,"-spin"),!!i&&!!t),n),D=q()((0,l.Z)({},"".concat(P,"-spin"),!!i)),W=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,L=(0,v.Z)((0,v.Z)({},Cn.vD),{},{className:D,style:W,viewBox:a});a||delete L.viewBox;var $=function(){return t?m.createElement(t,L,s):s?((0,Cn.Kp)(!!a||m.Children.count(s)===1&&m.isValidElement(s)&&m.Children.only(s).type==="use","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),m.createElement("svg",(0,yn.Z)({},L,{viewBox:a}),s)):null},y=c;return y===void 0&&d&&(y=-1),m.createElement("span",(0,yn.Z)({role:"img"},f,{ref:g,tabIndex:y,onClick:d,className:z}),$())});it.displayName="AntdIcon";var qr=it,ea=["type","children"],lt=new Set;function na(r){return!!(typeof r=="string"&&r.length&&!lt.has(r))}function bn(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=r[e];if(na(n)){var t=document.createElement("script");t.setAttribute("src",n),t.setAttribute("data-namespace",n),r.length>e+1&&(t.onload=function(){bn(r,e+1)},t.onerror=function(){bn(r,e+1)}),lt.add(n),document.body.appendChild(t)}}function ut(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=r.scriptUrl,n=r.extraCommonProps,t=n===void 0?{}:n;e&&typeof document!="undefined"&&typeof window!="undefined"&&typeof document.createElement=="function"&&(Array.isArray(e)?bn(e.reverse()):bn([e]));var a=m.forwardRef(function(i,o){var c=i.type,d=i.children,s=(0,le.Z)(i,ea),f=null;return i.type&&(f=m.createElement("use",{xlinkHref:"#".concat(c)})),d&&(f=d),m.createElement(qr,(0,yn.Z)({},t,s,{ref:o}),f)});return a.displayName="Iconfont",a}function ta(r){return/\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(r)}var ra=x(83062),aa=x(48054),ct=x(14192),oa=function(e,n){var t,a,i=n.includes("horizontal")?(t=e.layout)===null||t===void 0?void 0:t.header:(a=e.layout)===null||a===void 0?void 0:a.sider;return(0,v.Z)((0,v.Z)((0,l.Z)({},"".concat(e.componentCls),(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({background:"transparent",color:i==null?void 0:i.colorTextMenu,border:"none"},"".concat(e.componentCls,"-menu-item"),{transition:"none !important"}),"".concat(e.componentCls,"-submenu-has-icon"),(0,l.Z)({},"> ".concat(e.antCls,"-menu-sub"),{paddingInlineStart:10})),"".concat(e.antCls,"-menu-title-content"),{width:"100%",height:"100%",display:"inline-flex"}),"".concat(e.antCls,"-menu-title-content"),{"&:first-child":{width:"100%"}}),"".concat(e.componentCls,"-item-icon"),{display:"flex",alignItems:"center"}),"&&-collapsed",(0,l.Z)((0,l.Z)((0,l.Z)({},"".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"}),"".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:i==null?void 0:i.colorBgMenuItemSelected,borderRadius:e.borderRadiusLG}),"".concat(e.componentCls,"-group"),(0,l.Z)({},"".concat(e.antCls,"-menu-item-group-title"),{paddingInline:0}))),"&-item-title",(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({display:"flex",flexDirection:"row",alignItems:"center",gap:e.marginXS},"".concat(e.componentCls,"-item-text"),{maxWidth:"100%",textOverflow:"ellipsis",overflow:"hidden",wordBreak:"break-all",whiteSpace:"nowrap"}),"&-collapsed",(0,l.Z)((0,l.Z)({minWidth:40,height:40},"".concat(e.componentCls,"-item-icon"),{height:"16px",width:"16px",lineHeight:"16px !important",".anticon":{lineHeight:"16px !important",height:"16px"}}),"".concat(e.componentCls,"-item-text-has-icon"),{display:"none !important"})),"&-collapsed-level-0",{flexDirection:"column",justifyContent:"center"}),"&".concat(e.componentCls,"-group-item-title"),{gap:e.marginXS,height:18,overflow:"hidden"}),"&".concat(e.componentCls,"-item-collapsed-show-title"),(0,l.Z)({lineHeight:"16px",gap:0},"&".concat(e.componentCls,"-item-title-collapsed"),(0,l.Z)((0,l.Z)({display:"flex"},"".concat(e.componentCls,"-item-icon"),{height:"16px",width:"16px",lineHeight:"16px !important",".anticon":{lineHeight:"16px!important",height:"16px"}}),"".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})))),"&-group",(0,l.Z)({},"".concat(e.antCls,"-menu-item-group-title"),{fontSize:12,color:e.colorTextLabel,".anticon":{marginInlineEnd:8}})),"&-group-divider",{color:e.colorTextSecondary,fontSize:12,lineHeight:20})),n.includes("horizontal")?{}:(0,l.Z)({},"".concat(e.antCls,"-menu-submenu").concat(e.antCls,"-menu-submenu-popup"),(0,l.Z)({},"".concat(e.componentCls,"-item-title"),{alignItems:"flex-start"}))),{},(0,l.Z)({},"".concat(e.antCls,"-menu-submenu-popup"),{backgroundColor:"rgba(255, 255, 255, 0.42)","-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)"}))};function ia(r,e){return(0,Re.Xj)("ProLayoutBaseMenu"+e,function(n){var t=(0,v.Z)((0,v.Z)({},n),{},{componentCls:".".concat(r)});return[oa(t,e||"inline")]})}var dt=function(e){var n=(0,m.useState)(e.collapsed),t=(0,U.Z)(n,2),a=t[0],i=t[1],o=(0,m.useState)(!1),c=(0,U.Z)(o,2),d=c[0],s=c[1];return(0,m.useEffect)(function(){s(!1),setTimeout(function(){i(e.collapsed)},400)},[e.collapsed]),e.disable?e.children:(0,u.jsx)(ra.Z,{title:e.title,open:a&&e.collapsed?d:!1,placement:"right",onOpenChange:s,children:e.children})},st=ut({scriptUrl:ct.h.iconfontUrl}),vt=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"icon-",t=arguments.length>2?arguments[2]:void 0;if(typeof e=="string"&&e!==""){if(Nn(e)||ta(e))return(0,u.jsx)("img",{width:16,src:e,alt:"icon",className:t},e);if(e.startsWith(n))return(0,u.jsx)(st,{type:e})}return e},ft=function(e){if(e&&typeof e=="string"){var n=e.substring(0,1).toUpperCase();return n}return null},la=(0,rt.Z)(function r(e){var n=this;(0,tt.Z)(this,r),(0,l.Z)(this,"props",void 0),(0,l.Z)(this,"getNavMenuItems",function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],a=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0;return t.map(function(o){return n.getSubMenuOrItem(o,a,i)}).filter(function(o){return o}).flat(1)}),(0,l.Z)(this,"getSubMenuOrItem",function(t,a,i){var o=n.props,c=o.subMenuItemRender,d=o.baseClassName,s=o.prefixCls,f=o.collapsed,b=o.menu,g=o.iconPrefixes,w=o.layout,H=(b==null?void 0:b.type)==="group"&&w!=="top",P=n.props.token,M=n.getIntlName(t),z=(t==null?void 0:t.children)||(t==null?void 0:t.routes),D=H&&a===0?"group":void 0;if(Array.isArray(z)&&z.length>0){var W,L,$,y,B,G=a===0||H&&a===1,O=vt(t.icon,g,"".concat(d,"-icon ").concat((W=n.props)===null||W===void 0?void 0:W.hashId)),A=f&&G?ft(M):null,ne=(0,u.jsxs)("div",{className:q()("".concat(d,"-item-title"),(L=n.props)===null||L===void 0?void 0:L.hashId,(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({},"".concat(d,"-item-title-collapsed"),f),"".concat(d,"-item-title-collapsed-level-").concat(i),f),"".concat(d,"-group-item-title"),D==="group"),"".concat(d,"-item-collapsed-show-title"),(b==null?void 0:b.collapsedShowTitle)&&f)),children:[D==="group"&&f?null:G&&O?(0,u.jsx)("span",{className:"".concat(d,"-item-icon ").concat(($=n.props)===null||$===void 0?void 0:$.hashId).trim(),children:O}):A,(0,u.jsx)("span",{className:q()("".concat(d,"-item-text"),(y=n.props)===null||y===void 0?void 0:y.hashId,(0,l.Z)({},"".concat(d,"-item-text-has-icon"),D!=="group"&&G&&(O||A))),children:M})]}),ie=c?c((0,v.Z)((0,v.Z)({},t),{},{isUrl:!1}),ne,n.props):ne;if(H&&a===0&&n.props.collapsed&&!b.collapsedShowGroupTitle)return n.getNavMenuItems(z,a+1,a);var p=n.getNavMenuItems(z,a+1,H&&a===0&&n.props.collapsed?a:a+1);return[{type:D,key:t.key||t.path,label:ie,onClick:H?void 0:t.onTitleClick,children:p,className:q()((0,l.Z)((0,l.Z)((0,l.Z)({},"".concat(d,"-group"),D==="group"),"".concat(d,"-submenu"),D!=="group"),"".concat(d,"-submenu-has-icon"),D!=="group"&&G&&O))},H&&a===0?{type:"divider",prefixCls:s,className:"".concat(d,"-divider"),key:(t.key||t.path)+"-group-divider",style:{padding:0,borderBlockEnd:0,margin:n.props.collapsed?"4px":"6px 16px",marginBlockStart:n.props.collapsed?4:8,borderColor:P==null||(B=P.layout)===null||B===void 0||(B=B.sider)===null||B===void 0?void 0:B.colorMenuItemDivider}}:void 0].filter(Boolean)}return{className:"".concat(d,"-menu-item"),disabled:t.disabled,key:t.key||t.path,onClick:t.onTitleClick,label:n.getMenuItemPath(t,a,i)}}),(0,l.Z)(this,"getIntlName",function(t){var a=t.name,i=t.locale,o=n.props,c=o.menu,d=o.formatMessage,s=a;return i&&(c==null?void 0:c.locale)!==!1&&(s=d==null?void 0:d({id:i,defaultMessage:a})),n.props.menuTextRender?n.props.menuTextRender(t,s,n.props):s}),(0,l.Z)(this,"getMenuItemPath",function(t,a,i){var o,c,d,s,f=n.conversionPath(t.path||"/"),b=n.props,g=b.location,w=g===void 0?{pathname:"/"}:g,H=b.isMobile,P=b.onCollapse,M=b.menuItemRender,z=b.iconPrefixes,D=n.getIntlName(t),W=n.props,L=W.baseClassName,$=W.menu,y=W.collapsed,B=($==null?void 0:$.type)==="group",G=a===0||B&&a===1,O=G?vt(t.icon,z,"".concat(L,"-icon ").concat((o=n.props)===null||o===void 0?void 0:o.hashId)):null,A=y&&G?ft(D):null,ne=(0,u.jsxs)("div",{className:q()("".concat(L,"-item-title"),(c=n.props)===null||c===void 0?void 0:c.hashId,(0,l.Z)((0,l.Z)((0,l.Z)({},"".concat(L,"-item-title-collapsed"),y),"".concat(L,"-item-title-collapsed-level-").concat(i),y),"".concat(L,"-item-collapsed-show-title"),($==null?void 0:$.collapsedShowTitle)&&y)),children:[(0,u.jsx)("span",{className:"".concat(L,"-item-icon ").concat((d=n.props)===null||d===void 0?void 0:d.hashId).trim(),style:{display:A===null&&!O?"none":""},children:O||(0,u.jsx)("span",{className:"anticon",children:A})}),(0,u.jsx)("span",{className:q()("".concat(L,"-item-text"),(s=n.props)===null||s===void 0?void 0:s.hashId,(0,l.Z)({},"".concat(L,"-item-text-has-icon"),G&&(O||A))),children:D})]},f),ie=Nn(f);if(ie){var p,de,T;ne=(0,u.jsxs)("span",{onClick:function(){var pe,ae;(pe=window)===null||pe===void 0||(ae=pe.open)===null||ae===void 0||ae.call(pe,f,"_blank")},className:q()("".concat(L,"-item-title"),(p=n.props)===null||p===void 0?void 0:p.hashId,(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({},"".concat(L,"-item-title-collapsed"),y),"".concat(L,"-item-title-collapsed-level-").concat(i),y),"".concat(L,"-item-link"),!0),"".concat(L,"-item-collapsed-show-title"),($==null?void 0:$.collapsedShowTitle)&&y)),children:[(0,u.jsx)("span",{className:"".concat(L,"-item-icon ").concat((de=n.props)===null||de===void 0?void 0:de.hashId).trim(),style:{display:A===null&&!O?"none":""},children:O||(0,u.jsx)("span",{className:"anticon",children:A})}),(0,u.jsx)("span",{className:q()("".concat(L,"-item-text"),(T=n.props)===null||T===void 0?void 0:T.hashId,(0,l.Z)({},"".concat(L,"-item-text-has-icon"),G&&(O||A))),children:D})]},f)}if(M){var X=(0,v.Z)((0,v.Z)({},t),{},{isUrl:ie,itemPath:f,isMobile:H,replace:f===w.pathname,onClick:function(){return P&&P(!0)},children:void 0});return a===0?(0,u.jsx)(dt,{collapsed:y,title:D,disable:t.disabledTooltip,children:M(X,ne,n.props)}):M(X,ne,n.props)}return a===0?(0,u.jsx)(dt,{collapsed:y,title:D,disable:t.disabledTooltip,children:ne}):ne}),(0,l.Z)(this,"conversionPath",function(t){return t&&t.indexOf("http")===0?t:"/".concat(t||"").replace(/\/+/g,"/")}),this.props=e}),ua=function(e,n){var t=n.layout,a=n.collapsed,i={};return e&&!a&&["side","mix"].includes(t||"mix")&&(i={openKeys:e}),i},mt=function(e){var n=e.mode,t=e.className,a=e.handleOpenChange,i=e.style,o=e.menuData,c=e.prefixCls,d=e.menu,s=e.matchMenuKeys,f=e.iconfontUrl,b=e.selectedKeys,g=e.onSelect,w=e.menuRenderType,H=e.openKeys,P=(0,m.useContext)(te.L_),M=P.dark,z=P.token,D="".concat(c,"-base-menu-").concat(n),W=(0,m.useRef)([]),L=(0,ve.Z)(d==null?void 0:d.defaultOpenAll),$=(0,U.Z)(L,2),y=$[0],B=$[1],G=(0,ve.Z)(function(){return d!=null&&d.defaultOpenAll?(0,cn.O7)(o)||[]:H===!1?!1:[]},{value:H===!1?void 0:H,onChange:a}),O=(0,U.Z)(G,2),A=O[0],ne=O[1],ie=(0,ve.Z)([],{value:b,onChange:g?function(xe){g&&xe&&g(xe)}:void 0}),p=(0,U.Z)(ie,2),de=p[0],T=p[1];(0,m.useEffect)(function(){d!=null&&d.defaultOpenAll||H===!1||s&&(ne(s),T(s))},[s.join("-")]),(0,m.useEffect)(function(){f&&(st=ut({scriptUrl:f}))},[f]),(0,m.useEffect)(function(){if(s.join("-")!==(de||[]).join("-")&&T(s),!y&&H!==!1&&s.join("-")!==(A||[]).join("-")){var xe=s;(d==null?void 0:d.autoClose)===!1&&(xe=Array.from(new Set([].concat((0,xn.Z)(s),(0,xn.Z)(A||[]))))),ne(xe)}else d!=null&&d.ignoreFlatMenu&&y?ne((0,cn.O7)(o)):B(!1)},[s.join("-")]);var X=(0,m.useMemo)(function(){return ua(A,e)},[A&&A.join(","),e.layout,e.collapsed]),re=ia(D,n),pe=re.wrapSSR,ae=re.hashId,Se=(0,m.useMemo)(function(){return new la((0,v.Z)((0,v.Z)({},e),{},{token:z,menuRenderType:w,baseClassName:D,hashId:ae}))},[e,z,w,D,ae]);if(d!=null&&d.loading)return(0,u.jsx)("div",{style:n!=null&&n.includes("inline")?{padding:24}:{marginBlockStart:16},children:(0,u.jsx)(aa.Z,{active:!0,title:!1,paragraph:{rows:n!=null&&n.includes("inline")?6:1}})});e.openKeys===!1&&!e.handleOpenChange&&(W.current=s);var ye=e.postMenuData?e.postMenuData(o):o;return ye&&(ye==null?void 0:ye.length)<1?null:pe((0,m.createElement)(ot.Z,(0,v.Z)((0,v.Z)({},X),{},{_internalDisableMenuItemTitleTooltip:!0,key:"Menu",mode:n,inlineIndent:16,defaultOpenKeys:W.current,theme:M?"dark":"light",selectedKeys:de,style:(0,v.Z)({backgroundColor:"transparent",border:"none"},i),className:q()(t,ae,D,(0,l.Z)((0,l.Z)({},"".concat(D,"-horizontal"),n==="horizontal"),"".concat(D,"-collapsed"),e.collapsed)),items:Se.getNavMenuItems(ye,0,0),onOpenChange:function(Ee){e.collapsed||ne(Ee)}},e.menuProps)))};function ca(r,e){var n=e.stylish,t=e.proLayoutCollapsedWidth;return(0,Re.Xj)("ProLayoutSiderMenuStylish",function(a){var i=(0,v.Z)((0,v.Z)({},a),{},{componentCls:".".concat(r),proLayoutCollapsedWidth:t});return n?[(0,l.Z)({},"div".concat(a.proComponentsCls,"-layout"),(0,l.Z)({},"".concat(i.componentCls),n==null?void 0:n(i)))]:[]})}var da=["title","render"],sa=m.memo(function(r){return(0,u.jsx)(u.Fragment,{children:r.children})}),va=Ye.Z.Sider,ht=Ye.Z._InternalSiderContext,fa=ht===void 0?{Provider:sa}:ht,$n=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"menuHeaderRender",t=e.logo,a=e.title,i=e.layout,o=e[n];if(o===!1)return null;var c=Hn(t),d=(0,u.jsx)("h1",{children:a!=null?a:"Ant Design Pro"});return o?o(c,e.collapsed?null:d,e):e.isMobile?null:i==="mix"&&n==="menuHeaderRender"?!1:e.collapsed?(0,u.jsx)("a",{children:c},"title"):(0,u.jsxs)("a",{children:[c,d]},"title")},gt=function(e){var n,t=e.collapsed,a=e.originCollapsed,i=e.fixSiderbar,o=e.menuFooterRender,c=e.onCollapse,d=e.theme,s=e.siderWidth,f=e.isMobile,b=e.onMenuHeaderClick,g=e.breakpoint,w=g===void 0?"lg":g,H=e.style,P=e.layout,M=e.menuExtraRender,z=M===void 0?!1:M,D=e.links,W=e.menuContentRender,L=e.collapsedButtonRender,$=e.prefixCls,y=e.avatarProps,B=e.rightContentRender,G=e.actionsRender,O=e.onOpenChange,A=e.stylish,ne=e.logoStyle,ie=(0,m.useContext)(te.L_),p=ie.hashId,de=(0,m.useMemo)(function(){return!(f||P==="mix")},[f,P]),T="".concat($,"-sider"),X=64,re=ca("".concat(T,".").concat(T,"-stylish"),{stylish:A,proLayoutCollapsedWidth:X}),pe=q()("".concat(T),p,(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({},"".concat(T,"-fixed"),i),"".concat(T,"-fixed-mix"),P==="mix"&&!f&&i),"".concat(T,"-collapsed"),e.collapsed),"".concat(T,"-layout-").concat(P),P&&!f),"".concat(T,"-light"),d!=="dark"),"".concat(T,"-mix"),P==="mix"&&!f),"".concat(T,"-stylish"),!!A)),ae=$n(e),Se=z&&z(e),ye=(0,m.useMemo)(function(){return W!==!1&&(0,m.createElement)(mt,(0,v.Z)((0,v.Z)({},e),{},{key:"base-menu",mode:t&&!f?"vertical":"inline",handleOpenChange:O,style:{width:"100%"},className:"".concat(T,"-menu ").concat(p).trim()}))},[T,p,W,O,e]),xe=(D||[]).map(function(Ze,Ae){return{className:"".concat(T,"-link"),label:Ze,key:Ae}}),Ee=(0,m.useMemo)(function(){return W?W(e,ye):ye},[W,ye,e]),we=(0,m.useMemo)(function(){if(!y)return null;var Ze=y.title,Ae=y.render,Ne=(0,le.Z)(y,da),Mn=(0,u.jsxs)("div",{className:"".concat(T,"-actions-avatar"),children:[Ne!=null&&Ne.src||Ne!=null&&Ne.srcSet||Ne.icon||Ne.children?(0,u.jsx)(at.C,(0,v.Z)({size:28},Ne)):null,y.title&&!t&&(0,u.jsx)("span",{children:Ze})]});return Ae?Ae(y,Mn,e):Mn},[y,T,t]),Be=(0,m.useMemo)(function(){return G?(0,u.jsx)(Kr.Z,{align:"center",size:4,direction:t?"vertical":"horizontal",className:q()(["".concat(T,"-actions-list"),t&&"".concat(T,"-actions-list-collapsed"),p]),children:[G==null?void 0:G(e)].flat(1).map(function(Ze,Ae){return(0,u.jsx)("div",{className:"".concat(T,"-actions-list-item ").concat(p).trim(),children:Ze},Ae)})}):null},[G,T,t]),ze=(0,m.useMemo)(function(){return(0,u.jsx)(An,{onItemClick:e.itemClick,appListRender:e.appListRender,appList:e.appList,prefixCls:e.prefixCls})},[e.appList,e.appListRender,e.prefixCls]),Ke=(0,m.useMemo)(function(){if(L===!1)return null;var Ze=(0,u.jsx)(Vr,{isMobile:f,collapsed:a,className:"".concat(T,"-collapsed-button"),onClick:function(){c==null||c(!a)}});return L?L(t,Ze):Ze},[L,f,a,T,t,c]),Ue=(0,m.useMemo)(function(){return!we&&!Be?null:(0,u.jsxs)("div",{className:q()("".concat(T,"-actions"),p,t&&"".concat(T,"-actions-collapsed")),children:[we,Be]})},[Be,we,T,t,p]),ke=(0,m.useMemo)(function(){var Ze;return e!=null&&(Ze=e.menu)!==null&&Ze!==void 0&&Ze.hideMenuWhenCollapsed&&t?"".concat(T,"-hide-menu-collapsed"):null},[T,t,e==null||(n=e.menu)===null||n===void 0?void 0:n.hideMenuWhenCollapsed]),dn=o&&(o==null?void 0:o(e)),Zn=(0,u.jsxs)(u.Fragment,{children:[ae&&(0,u.jsxs)("div",{className:q()([q()("".concat(T,"-logo"),p,(0,l.Z)({},"".concat(T,"-logo-collapsed"),t))]),onClick:de?b:void 0,id:"logo",style:ne,children:[ae,ze]}),Se&&(0,u.jsx)("div",{className:q()(["".concat(T,"-extra"),!ae&&"".concat(T,"-extra-no-logo"),p]),children:Se}),(0,u.jsx)("div",{style:{flex:1,overflowY:"auto",overflowX:"hidden"},children:Ee}),(0,u.jsxs)(fa.Provider,{value:{},children:[D?(0,u.jsx)("div",{className:"".concat(T,"-links ").concat(p).trim(),children:(0,u.jsx)(ot.Z,{inlineIndent:16,className:"".concat(T,"-link-menu ").concat(p).trim(),selectedKeys:[],openKeys:[],theme:d,mode:"inline",items:xe})}):null,de&&(0,u.jsxs)(u.Fragment,{children:[Ue,!Be&&B?(0,u.jsx)("div",{className:q()("".concat(T,"-actions"),p,(0,l.Z)({},"".concat(T,"-actions-collapsed"),t)),children:B==null?void 0:B(e)}):null]}),dn&&(0,u.jsx)("div",{className:q()(["".concat(T,"-footer"),p,(0,l.Z)({},"".concat(T,"-footer-collapsed"),t)]),children:dn})]})]});return re.wrapSSR((0,u.jsxs)(u.Fragment,{children:[i&&!f&&!ke&&(0,u.jsx)("div",{style:(0,v.Z)({width:t?X:s,overflow:"hidden",flex:"0 0 ".concat(t?X:s,"px"),maxWidth:t?X:s,minWidth:t?X:s,transition:"all 0.2s ease 0s"},H)}),(0,u.jsxs)(va,{collapsible:!0,trigger:null,collapsed:t,breakpoint:w===!1?void 0:w,onCollapse:function(Ae){f||c==null||c(Ae)},collapsedWidth:X,style:H,theme:d,width:s,className:q()(pe,p,ke),children:[ke?(0,u.jsx)("div",{className:"".concat(T,"-hide-when-collapsed ").concat(p).trim(),style:{height:"100%",width:"100%",opacity:ke?0:1},children:Zn}):Zn,Ke]})]}))},ma=x(48171);function ha(r,e){var n=(0,ma.J)(r),t=(0,m.useRef)(),a=(0,m.useCallback)(function(){t.current&&(clearTimeout(t.current),t.current=null)},[]),i=(0,m.useCallback)((0,V.Z)((0,Q.Z)().mark(function o(){var c,d,s,f=arguments;return(0,Q.Z)().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:for(c=f.length,d=new Array(c),s=0;s<c;s++)d[s]=f[s];if(!(e===0||e===void 0)){g.next=3;break}return g.abrupt("return",n.apply(void 0,d));case 3:return a(),g.abrupt("return",new Promise(function(w){t.current=setTimeout((0,V.Z)((0,Q.Z)().mark(function H(){return(0,Q.Z)().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.t0=w,M.next=3,n.apply(void 0,d);case 3:return M.t1=M.sent,(0,M.t0)(M.t1),M.abrupt("return");case 6:case"end":return M.stop()}},H)})),e)}));case 5:case"end":return g.stop()}},o)})),[n,a,e]);return(0,m.useEffect)(function(){return a},[a]),{run:i,cancel:a}}var ga=x(9220),pa=function(e){var n,t,a,i,o;return(0,l.Z)({},e.componentCls,{"&-header-actions":{display:"flex",height:"100%",alignItems:"center","&-item":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingBlock:0,paddingInline:2,color:(n=e.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorTextRightActionsItem,fontSize:"16px",cursor:"pointer",borderRadius:e.borderRadius,"> *":{paddingInline:6,paddingBlock:6,borderRadius:e.borderRadius,"&:hover":{backgroundColor:(t=e.layout)===null||t===void 0||(t=t.header)===null||t===void 0?void 0:t.colorBgRightActionsItemHover}}},"&-avatar":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingInlineStart:e.padding,paddingInlineEnd:e.padding,cursor:"pointer",color:(a=e.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorTextRightActionsItem,"> div":{height:"44px",color:(i=e.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorTextRightActionsItem,paddingInline:8,paddingBlock:8,cursor:"pointer",display:"flex",alignItems:"center",lineHeight:"44px",borderRadius:e.borderRadius,"&:hover":{backgroundColor:(o=e.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorBgRightActionsItemHover}}}}})};function ya(r){return(0,Re.Xj)("ProLayoutRightContent",function(e){var n=(0,v.Z)((0,v.Z)({},e),{},{componentCls:".".concat(r)});return[pa(n)]})}var xa=["rightContentRender","avatarProps","actionsRender","headerContentRender"],Ca=["title","render"],pt=function(e){var n=e.rightContentRender,t=e.avatarProps,a=e.actionsRender,i=e.headerContentRender,o=(0,le.Z)(e,xa),c=(0,m.useContext)(_e.ZP.ConfigContext),d=c.getPrefixCls,s="".concat(d(),"-pro-global-header"),f=ya(s),b=f.wrapSSR,g=f.hashId,w=(0,m.useState)("auto"),H=(0,U.Z)(w,2),P=H[0],M=H[1],z=(0,m.useMemo)(function(){if(!t)return null;var $=t.title,y=t.render,B=(0,le.Z)(t,Ca),G=[B!=null&&B.src||B!=null&&B.srcSet||B.icon||B.children?(0,m.createElement)(at.C,(0,v.Z)((0,v.Z)({},B),{},{size:28,key:"avatar"})):null,$?(0,u.jsx)("span",{style:{marginInlineStart:8},children:$},"name"):void 0];return y?y(t,(0,u.jsx)("div",{children:G}),o):(0,u.jsx)("div",{children:G})},[t]),D=a||z?function($){var y=a&&(a==null?void 0:a($));return!y&&!z?null:Array.isArray(y)?b((0,u.jsxs)("div",{className:"".concat(s,"-header-actions ").concat(g).trim(),children:[y.filter(Boolean).map(function(B,G){var O=!1;if(m.isValidElement(B)){var A;O=!!(B!=null&&(A=B.props)!==null&&A!==void 0&&A["aria-hidden"])}return(0,u.jsx)("div",{className:q()("".concat(s,"-header-actions-item ").concat(g),(0,l.Z)({},"".concat(s,"-header-actions-hover"),!O)),children:B},G)}),z&&(0,u.jsx)("span",{className:"".concat(s,"-header-actions-avatar ").concat(g).trim(),children:z})]})):b((0,u.jsxs)("div",{className:"".concat(s,"-header-actions ").concat(g).trim(),children:[y,z&&(0,u.jsx)("span",{className:"".concat(s,"-header-actions-avatar ").concat(g).trim(),children:z})]}))}:void 0,W=ha(function(){var $=(0,V.Z)((0,Q.Z)().mark(function y(B){return(0,Q.Z)().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:M(B);case 1:case"end":return O.stop()}},y)}));return function(y){return $.apply(this,arguments)}}(),160),L=D||n;return(0,u.jsx)("div",{className:"".concat(s,"-right-content ").concat(g).trim(),style:{minWidth:P,height:"100%"},children:(0,u.jsx)("div",{style:{height:"100%"},children:(0,u.jsx)(ga.Z,{onResize:function(y){var B=y.width;W.run(B)},children:L?(0,u.jsx)("div",{style:{display:"flex",alignItems:"center",height:"100%",justifyContent:"flex-end"},children:L((0,v.Z)((0,v.Z)({},o),{},{rightContentSize:P}))}):null})})})},ba=function(e){var n,t;return(0,l.Z)({},e.componentCls,{position:"relative",width:"100%",height:"100%",backgroundColor:"transparent",".anticon":{color:"inherit"},"&-main":{display:"flex",height:"100%",paddingInlineStart:"16px","&-left":(0,l.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:(n=e.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorHeaderTitle,verticalAlign:"top"}},"&-menu":{minWidth:0,display:"flex",alignItems:"center",paddingInline:6,paddingBlock:6,lineHeight:"".concat(Math.max((((t=e.layout)===null||t===void 0||(t=t.header)===null||t===void 0?void 0:t.heightLayoutHeader)||56)-12,40),"px")}})};function Sa(r){return(0,Re.Xj)("ProLayoutTopNavHeader",function(e){var n=(0,v.Z)((0,v.Z)({},e),{},{componentCls:".".concat(r)});return[ba(n)]})}var yt=function(e){var n,t,a,i,o,c,d,s=(0,m.useRef)(null),f=e.onMenuHeaderClick,b=e.contentWidth,g=e.rightContentRender,w=e.className,H=e.style,P=e.headerContentRender,M=e.layout,z=e.actionsRender,D=(0,m.useContext)(_e.ZP.ConfigContext),W=D.getPrefixCls,L=(0,m.useContext)(te.L_),$=L.dark,y="".concat(e.prefixCls||W("pro"),"-top-nav-header"),B=Sa(y),G=B.wrapSSR,O=B.hashId,A=void 0;e.menuHeaderRender!==void 0?A="menuHeaderRender":(M==="mix"||M==="top")&&(A="headerTitleRender");var ne=$n((0,v.Z)((0,v.Z)({},e),{},{collapsed:!1}),A),ie=(0,m.useContext)(te.L_),p=ie.token,de=(0,m.useMemo)(function(){var T,X,re,pe,ae,Se,ye,xe,Ee,we,Be,ze,Ke,Ue=(0,u.jsx)(_e.ZP,{theme:{hashed:(0,te.nu)(),components:{Layout:{headerBg:"transparent",bodyBg:"transparent"},Menu:(0,v.Z)({},Y({colorItemBg:((T=p.layout)===null||T===void 0||(T=T.header)===null||T===void 0?void 0:T.colorBgHeader)||"transparent",colorSubItemBg:((X=p.layout)===null||X===void 0||(X=X.header)===null||X===void 0?void 0:X.colorBgHeader)||"transparent",radiusItem:p.borderRadius,colorItemBgSelected:((re=p.layout)===null||re===void 0||(re=re.header)===null||re===void 0?void 0:re.colorBgMenuItemSelected)||(p==null?void 0:p.colorBgTextHover),itemHoverBg:((pe=p.layout)===null||pe===void 0||(pe=pe.header)===null||pe===void 0?void 0:pe.colorBgMenuItemHover)||(p==null?void 0:p.colorBgTextHover),colorItemBgSelectedHorizontal:((ae=p.layout)===null||ae===void 0||(ae=ae.header)===null||ae===void 0?void 0:ae.colorBgMenuItemSelected)||(p==null?void 0:p.colorBgTextHover),colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemText:((Se=p.layout)===null||Se===void 0||(Se=Se.header)===null||Se===void 0?void 0:Se.colorTextMenu)||(p==null?void 0:p.colorTextSecondary),colorItemTextHoverHorizontal:((ye=p.layout)===null||ye===void 0||(ye=ye.header)===null||ye===void 0?void 0:ye.colorTextMenuActive)||(p==null?void 0:p.colorText),colorItemTextSelectedHorizontal:((xe=p.layout)===null||xe===void 0||(xe=xe.header)===null||xe===void 0?void 0:xe.colorTextMenuSelected)||(p==null?void 0:p.colorTextBase),horizontalItemBorderRadius:4,colorItemTextHover:((Ee=p.layout)===null||Ee===void 0||(Ee=Ee.header)===null||Ee===void 0?void 0:Ee.colorTextMenuActive)||"rgba(0, 0, 0, 0.85)",horizontalItemHoverBg:((we=p.layout)===null||we===void 0||(we=we.header)===null||we===void 0?void 0:we.colorBgMenuItemHover)||"rgba(0, 0, 0, 0.04)",colorItemTextSelected:((Be=p.layout)===null||Be===void 0||(Be=Be.header)===null||Be===void 0?void 0:Be.colorTextMenuSelected)||"rgba(0, 0, 0, 1)",popupBg:p==null?void 0:p.colorBgElevated,subMenuItemBg:p==null?void 0:p.colorBgElevated,darkSubMenuItemBg:"transparent",darkPopupBg:p==null?void 0:p.colorBgElevated}))},token:{colorBgElevated:((ze=p.layout)===null||ze===void 0||(ze=ze.header)===null||ze===void 0?void 0:ze.colorBgHeader)||"transparent"}},children:(0,u.jsx)(mt,(0,v.Z)((0,v.Z)((0,v.Z)({theme:$?"dark":"light"},e),{},{className:"".concat(y,"-base-menu ").concat(O).trim()},e.menuProps),{},{style:(0,v.Z)({width:"100%"},(Ke=e.menuProps)===null||Ke===void 0?void 0:Ke.style),collapsed:!1,menuRenderType:"header",mode:"horizontal"}))});return P?P(e,Ue):Ue},[(n=p.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorBgHeader,(t=p.layout)===null||t===void 0||(t=t.header)===null||t===void 0?void 0:t.colorBgMenuItemSelected,(a=p.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorBgMenuItemHover,(i=p.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorTextMenu,(o=p.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorTextMenuActive,(c=p.layout)===null||c===void 0||(c=c.header)===null||c===void 0?void 0:c.colorTextMenuSelected,(d=p.layout)===null||d===void 0||(d=d.header)===null||d===void 0?void 0:d.colorBgMenuElevated,p.borderRadius,p==null?void 0:p.colorBgTextHover,p==null?void 0:p.colorTextSecondary,p==null?void 0:p.colorText,p==null?void 0:p.colorTextBase,p.colorBgElevated,$,e,y,O,P]);return G((0,u.jsx)("div",{className:q()(y,O,w,(0,l.Z)({},"".concat(y,"-light"),!0)),style:H,children:(0,u.jsxs)("div",{ref:s,className:q()("".concat(y,"-main"),O,(0,l.Z)({},"".concat(y,"-wide"),b==="Fixed"&&M==="top")),children:[ne&&(0,u.jsxs)("div",{className:q()("".concat(y,"-main-left ").concat(O)),onClick:f,children:[(0,u.jsx)(An,(0,v.Z)({},e)),(0,u.jsx)("div",{className:"".concat(y,"-logo ").concat(O).trim(),id:"logo",children:ne},"logo")]}),(0,u.jsx)("div",{style:{flex:1},className:"".concat(y,"-menu ").concat(O).trim(),children:de}),(g||z||e.avatarProps)&&(0,u.jsx)(pt,(0,v.Z)((0,v.Z)({rightContentRender:g},e),{},{prefixCls:y}))]})}))},Za=function(e){var n,t,a;return(0,l.Z)({},e.componentCls,(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({position:"relative",background:"transparent",display:"flex",alignItems:"center",marginBlock:0,marginInline:16,height:((n=e.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader)||56,boxSizing:"border-box","> a":{height:"100%"}},"".concat(e.proComponentsCls,"-layout-apps-icon"),{marginInlineEnd:16}),"&-collapsed-button",{minHeight:"22px",color:(t=e.layout)===null||t===void 0||(t=t.header)===null||t===void 0?void 0:t.colorHeaderTitle,fontSize:"18px",marginInlineEnd:"16px"}),"&-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:((a=e.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorHeaderTitle)||e.colorTextHeading,fontSize:"18px",lineHeight:"32px"},"&-mix":{display:"flex",alignItems:"center"}}),"&-logo-mobile",{minWidth:"24px",marginInlineEnd:0}))};function Ma(r){return(0,Re.Xj)("ProLayoutGlobalHeader",function(e){var n=(0,v.Z)((0,v.Z)({},e),{},{componentCls:".".concat(r)});return[Za(n)]})}var Ia=function(e,n){return e===!1?null:e?e(n,null):n},Ra=function(e){var n=e.isMobile,t=e.logo,a=e.collapsed,i=e.onCollapse,o=e.rightContentRender,c=e.menuHeaderRender,d=e.onMenuHeaderClick,s=e.className,f=e.style,b=e.layout,g=e.children,w=e.splitMenus,H=e.menuData,P=e.prefixCls,M=(0,m.useContext)(_e.ZP.ConfigContext),z=M.getPrefixCls,D=M.direction,W="".concat(P||z("pro"),"-global-header"),L=Ma(W),$=L.wrapSSR,y=L.hashId,B=q()(s,W,y);if(b==="mix"&&!n&&w){var G=(H||[]).map(function(ie){return(0,v.Z)((0,v.Z)({},ie),{},{children:void 0,routes:void 0})}),O=(0,cn.QX)(G);return(0,u.jsx)(yt,(0,v.Z)((0,v.Z)({mode:"horizontal"},e),{},{splitMenus:!1,menuData:O}))}var A=q()("".concat(W,"-logo"),y,(0,l.Z)((0,l.Z)((0,l.Z)({},"".concat(W,"-logo-rtl"),D==="rtl"),"".concat(W,"-logo-mix"),b==="mix"),"".concat(W,"-logo-mobile"),n)),ne=(0,u.jsx)("span",{className:A,children:(0,u.jsx)("a",{children:Hn(t)})},"logo");return $((0,u.jsxs)("div",{className:B,style:(0,v.Z)({},f),children:[n&&(0,u.jsx)("span",{className:"".concat(W,"-collapsed-button ").concat(y).trim(),onClick:function(){i==null||i(!a)},children:(0,u.jsx)(Nr,{})}),n&&Ia(c,ne),b==="mix"&&!n&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(An,(0,v.Z)({},e)),(0,u.jsx)("div",{className:A,onClick:d,children:$n((0,v.Z)((0,v.Z)({},e),{},{collapsed:!1}),"headerTitleRender")})]}),(0,u.jsx)("div",{style:{flex:1},children:g}),(o||e.actionsRender||e.avatarProps)&&(0,u.jsx)(pt,(0,v.Z)({rightContentRender:o},e))]}))},wa=function(e){var n,t,a,i;return(0,l.Z)({},"".concat(e.proComponentsCls,"-layout"),(0,l.Z)({},"".concat(e.antCls,"-layout-header").concat(e.componentCls),{height:((n=e.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader)||56,lineHeight:"".concat(((t=e.layout)===null||t===void 0||(t=t.header)===null||t===void 0?void 0:t.heightLayoutHeader)||56,"px"),zIndex:19,width:"100%",paddingBlock:0,paddingInline:0,borderBlockEnd:"1px solid ".concat(e.colorSplit),backgroundColor:((a=e.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.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:((i=e.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.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 Ta(r){return(0,Re.Xj)("ProLayoutHeader",function(e){var n=(0,v.Z)((0,v.Z)({},e),{},{componentCls:".".concat(r)});return[wa(n)]})}function ja(r,e){var n=e.stylish,t=e.proLayoutCollapsedWidth;return(0,Re.Xj)("ProLayoutHeaderStylish",function(a){var i=(0,v.Z)((0,v.Z)({},a),{},{componentCls:".".concat(r),proLayoutCollapsedWidth:t});return n?[(0,l.Z)({},"div".concat(a.proComponentsCls,"-layout"),(0,l.Z)({},"".concat(i.componentCls),n==null?void 0:n(i)))]:[]})}var xt=Ye.Z.Header,Ba=function(e){var n,t,a,i=e.isMobile,o=e.fixedHeader,c=e.className,d=e.style,s=e.collapsed,f=e.prefixCls,b=e.onCollapse,g=e.layout,w=e.headerRender,H=e.headerContentRender,P=(0,m.useContext)(te.L_),M=P.token,z=(0,m.useContext)(_e.ZP.ConfigContext),D=(0,m.useState)(!1),W=(0,U.Z)(D,2),L=W[0],$=W[1],y=o||g==="mix",B=(0,m.useCallback)(function(){var T=g==="top",X=(0,cn.QX)(e.menuData||[]),re=(0,u.jsx)(Ra,(0,v.Z)((0,v.Z)({onCollapse:b},e),{},{menuData:X,children:H&&H(e,null)}));return T&&!i&&(re=(0,u.jsx)(yt,(0,v.Z)((0,v.Z)({mode:"horizontal",onCollapse:b},e),{},{menuData:X}))),w&&typeof w=="function"?w(e,re):re},[H,w,i,g,b,e]);(0,m.useEffect)(function(){var T,X=(z==null||(T=z.getTargetContainer)===null||T===void 0?void 0:T.call(z))||document.body,re=function(){var ae,Se=X.scrollTop;return Se>(((ae=M.layout)===null||ae===void 0||(ae=ae.header)===null||ae===void 0?void 0:ae.heightLayoutHeader)||56)&&!L?($(!0),!0):(L&&$(!1),!1)};if(y&&typeof window!="undefined")return X.addEventListener("scroll",re,{passive:!0}),function(){X.removeEventListener("scroll",re)}},[(n=M.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader,y,L]);var G=g==="top",O="".concat(f,"-layout-header"),A=Ta(O),ne=A.wrapSSR,ie=A.hashId,p=ja("".concat(O,".").concat(O,"-stylish"),{proLayoutCollapsedWidth:64,stylish:e.stylish}),de=q()(c,ie,O,(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({},"".concat(O,"-fixed-header"),y),"".concat(O,"-fixed-header-scroll"),L),"".concat(O,"-mix"),g==="mix"),"".concat(O,"-fixed-header-action"),!s),"".concat(O,"-top-menu"),G),"".concat(O,"-header"),!0),"".concat(O,"-stylish"),!!e.stylish));return g==="side"&&!i?null:p.wrapSSR(ne((0,u.jsx)(u.Fragment,{children:(0,u.jsxs)(_e.ZP,{theme:{hashed:(0,te.nu)(),components:{Layout:{headerBg:"transparent",bodyBg:"transparent"}}},children:[y&&(0,u.jsx)(xt,{style:(0,v.Z)({height:((t=M.layout)===null||t===void 0||(t=t.header)===null||t===void 0?void 0:t.heightLayoutHeader)||56,lineHeight:"".concat(((a=M.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.heightLayoutHeader)||56,"px"),backgroundColor:"transparent",zIndex:19},d)}),(0,u.jsx)(xt,{className:de,style:d,children:B()})]})})))},Pa=x(83832),La=x(16988),Ea=x(11568),Ct=new Ea.E4("antBadgeLoadingCircle",{"0%":{display:"none",opacity:0,overflow:"hidden"},"80%":{overflow:"hidden"},"100%":{display:"unset",opacity:1}}),Na=function(e){var n,t,a,i,o,c,d,s,f,b,g,w;return(0,l.Z)({},"".concat(e.proComponentsCls,"-layout"),(0,l.Z)((0,l.Z)((0,l.Z)({},"".concat(e.antCls,"-layout-sider").concat(e.componentCls),{background:((n=e.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.colorMenuBackground)||"transparent"}),e.componentCls,(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({position:"relative",boxSizing:"border-box","&-menu":{position:"relative",zIndex:10,minHeight:"100%"}},"& ".concat(e.antCls,"-layout-sider-children"),{position:"relative",display:"flex",flexDirection:"column",height:"100%",paddingInline:(t=e.layout)===null||t===void 0||(t=t.sider)===null||t===void 0?void 0:t.paddingInlineLayoutMenu,paddingBlock:(a=e.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.paddingBlockLayoutMenu,borderInlineEnd:"1px solid ".concat(e.colorSplit),marginInlineEnd:-1}),"".concat(e.antCls,"-menu"),(0,l.Z)((0,l.Z)({},"".concat(e.antCls,"-menu-item-group-title"),{fontSize:e.fontSizeSM,paddingBottom:4}),"".concat(e.antCls,"-menu-item:not(").concat(e.antCls,"-menu-item-selected):hover"),{color:(i=e.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.colorTextMenuItemHover})),"&-logo",{position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between",paddingInline:12,paddingBlock:16,color:(o=e.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.colorTextMenu,cursor:"pointer",borderBlockEnd:"1px solid ".concat((c=e.layout)===null||c===void 0||(c=c.sider)===null||c===void 0?void 0:c.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:(d=e.layout)===null||d===void 0||(d=d.sider)===null||d===void 0?void 0:d.colorTextMenuTitle,animationName:Ct,animationDuration:".4s",animationTimingFunction:"ease",fontWeight:600,fontSize:16,lineHeight:"22px",verticalAlign:"middle"}},"&-collapsed":(0,l.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"})}),"&-actions",{display:"flex",alignItems:"center",justifyContent:"space-between",marginBlock:4,marginInline:0,color:(s=e.layout)===null||s===void 0||(s=s.sider)===null||s===void 0?void 0:s.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||(f=f.sider)===null||f===void 0?void 0:f.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:e.marginXS,borderRadius:e.borderRadius,"& *":{cursor:"pointer"},"&:hover":{background:e.colorBgTextHover}}}),"&-hide-menu-collapsed",{insetInlineStart:"-".concat(e.proLayoutCollapsedWidth-12,"px"),position:"absolute"}),"&-extra",{marginBlockEnd:16,marginBlock:0,marginInline:16,"&-no-logo":{marginBlockStart:16}}),"&-links",{width:"100%",ul:{height:"auto"}}),"&-link-menu",{border:"none",boxShadow:"none",background:"transparent"}),"&-footer",{color:(b=e.layout)===null||b===void 0||(b=b.sider)===null||b===void 0?void 0:b.colorTextMenuSecondary,paddingBlockEnd:16,fontSize:e.fontSize,animationName:Ct,animationDuration:".4s",animationTimingFunction:"ease"})),"".concat(e.componentCls).concat(e.componentCls,"-fixed"),{position:"fixed",insetBlockStart:0,insetInlineStart:0,zIndex:"100",height:"100%","&-mix":{height:"calc(100% - ".concat(((g=e.layout)===null||g===void 0||(g=g.header)===null||g===void 0?void 0:g.heightLayoutHeader)||56,"px)"),insetBlockStart:"".concat(((w=e.layout)===null||w===void 0||(w=w.header)===null||w===void 0?void 0:w.heightLayoutHeader)||56,"px")}}))};function Ha(r,e){var n=e.proLayoutCollapsedWidth;return(0,Re.Xj)("ProLayoutSiderMenu",function(t){var a=(0,v.Z)((0,v.Z)({},t),{},{componentCls:".".concat(r),proLayoutCollapsedWidth:n});return[Na(a)]})}var bt=function(e){var n,t=e.isMobile,a=e.siderWidth,i=e.collapsed,o=e.onCollapse,c=e.style,d=e.className,s=e.hide,f=e.prefixCls,b=e.getContainer,g=(0,m.useContext)(te.L_),w=g.token;(0,m.useEffect)(function(){t===!0&&(o==null||o(!0))},[t]);var H=(0,et.Z)(e,["className","style"]),P=m.useContext(_e.ZP.ConfigContext),M=P.direction,z=Ha("".concat(f,"-sider"),{proLayoutCollapsedWidth:64}),D=z.wrapSSR,W=z.hashId,L=q()("".concat(f,"-sider"),d,W);if(s)return null;var $=(0,j.X)(!i,function(){return o==null?void 0:o(!0)});return D(t?(0,u.jsx)(La.Z,(0,v.Z)((0,v.Z)({placement:M==="rtl"?"right":"left",className:q()("".concat(f,"-drawer-sider"),d)},$),{},{style:(0,v.Z)({padding:0,height:"100vh"},c),onClose:function(){o==null||o(!0)},maskClosable:!0,closable:!1,getContainer:b||!1,width:a,styles:{body:{height:"100vh",padding:0,display:"flex",flexDirection:"row",backgroundColor:(n=w.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.colorMenuBackground}},children:(0,u.jsx)(gt,(0,v.Z)((0,v.Z)({},H),{},{isMobile:!0,className:L,collapsed:t?!1:i,splitMenus:!1,originCollapsed:i}))})):(0,u.jsx)(gt,(0,v.Z)((0,v.Z)({className:L,originCollapsed:i},H),{},{style:c})))},St=x(76509),Dn=x(16305),Aa=function(e,n,t){if(t){var a=(0,xn.Z)(t.keys()).find(function(o){try{return o.startsWith("http")?!1:(0,Dn.match)(o)(e)}catch(c){return console.log("key",o,c),!1}});if(a)return t.get(a)}if(n){var i=Object.keys(n).find(function(o){try{return o!=null&&o.startsWith("http")?!1:(0,Dn.match)(o)(e)}catch(c){return console.log("key",o,c),!1}});if(i)return n[i]}return{path:""}},On=function(e,n){var t=e.pathname,a=t===void 0?"/":t,i=e.breadcrumb,o=e.breadcrumbMap,c=e.formatMessage,d=e.title,s=e.menu,f=s===void 0?{locale:!1}:s,b=n?"":d||"",g=Aa(a,i,o);if(!g)return{title:b,id:"",pageName:b};var w=g.name;return f.locale!==!1&&g.locale&&c&&(w=c({id:g.locale||"",defaultMessage:g.name})),w?n||!d?{title:w,id:g.locale||"",pageName:w}:{title:"".concat(w," - ").concat(d),id:g.locale||"",pageName:w}:{title:b,id:g.locale||"",pageName:b}},Bo=function(e,n){return On(e,n).title},$a=x(52676),Sn=x(67159),Je=x(34155),Da=function(){var e;return typeof Je=="undefined"?Sn.Z:((e=Je)===null||Je===void 0||(Je={NODE_ENV:"production",PUBLIC_PATH:"/"})===null||Je===void 0?void 0:Je.ANTD_VERSION)||Sn.Z},Oa=function(e){var n,t,a,i,o,c,d,s,f,b,g,w,H,P,M,z,D,W,L,$,y,B,G,O,A,ne,ie,p,de,T,X,re;return(n=Da())!==null&&n!==void 0&&n.startsWith("5")?{}:(0,l.Z)((0,l.Z)((0,l.Z)({},e.componentCls,(0,l.Z)((0,l.Z)({width:"100%",height:"100%"},"".concat(e.proComponentsCls,"-base-menu"),(y={color:(t=e.layout)===null||t===void 0||(t=t.sider)===null||t===void 0?void 0:t.colorTextMenu},(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)(y,"".concat(e.antCls,"-menu-sub"),{backgroundColor:"transparent!important",color:(a=e.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.colorTextMenu}),"& ".concat(e.antCls,"-layout"),{backgroundColor:"transparent",width:"100%"}),"".concat(e.antCls,"-menu-submenu-expand-icon, ").concat(e.antCls,"-menu-submenu-arrow"),{color:"inherit"}),"&".concat(e.antCls,"-menu"),(0,l.Z)((0,l.Z)({color:(i=e.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.colorTextMenu},"".concat(e.antCls,"-menu-item"),{"*":{transition:"none !important"}}),"".concat(e.antCls,"-menu-item a"),{color:"inherit"})),"&".concat(e.antCls,"-menu-inline"),(0,l.Z)({},"".concat(e.antCls,"-menu-selected::after,").concat(e.antCls,"-menu-item-selected::after"),{display:"none"})),"".concat(e.antCls,"-menu-sub ").concat(e.antCls,"-menu-inline"),{backgroundColor:"transparent!important"}),"".concat(e.antCls,`-menu-item:active,
|
|
`).concat(e.antCls,"-menu-submenu-title:active"),{backgroundColor:"transparent!important"}),"&".concat(e.antCls,"-menu-light"),(0,l.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,l.Z)({color:(o=e.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.colorTextMenuActive,borderRadius:e.borderRadius},"".concat(e.antCls,"-menu-submenu-arrow"),{color:(c=e.layout)===null||c===void 0||(c=c.sider)===null||c===void 0?void 0:c.colorTextMenuActive}))),"&".concat(e.antCls,"-menu:not(").concat(e.antCls,"-menu-horizontal)"),(0,l.Z)((0,l.Z)({},"".concat(e.antCls,"-menu-item-selected"),{backgroundColor:(d=e.layout)===null||d===void 0||(d=d.sider)===null||d===void 0?void 0:d.colorBgMenuItemSelected,borderRadius:e.borderRadius}),"".concat(e.antCls,`-menu-item:hover,
|
|
`).concat(e.antCls,`-menu-item-active,
|
|
`).concat(e.antCls,"-menu-submenu-title:hover"),(0,l.Z)({color:(s=e.layout)===null||s===void 0||(s=s.sider)===null||s===void 0?void 0:s.colorTextMenuActive,borderRadius:e.borderRadius,backgroundColor:"".concat((f=e.layout)===null||f===void 0||(f=f.header)===null||f===void 0?void 0:f.colorBgMenuItemHover," !important")},"".concat(e.antCls,"-menu-submenu-arrow"),{color:(b=e.layout)===null||b===void 0||(b=b.sider)===null||b===void 0?void 0:b.colorTextMenuActive}))),"".concat(e.antCls,"-menu-item-selected"),{color:(g=e.layout)===null||g===void 0||(g=g.sider)===null||g===void 0?void 0:g.colorTextMenuSelected}),(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)(y,"".concat(e.antCls,"-menu-submenu-selected"),{color:(w=e.layout)===null||w===void 0||(w=w.sider)===null||w===void 0?void 0:w.colorTextMenuSelected}),"&".concat(e.antCls,"-menu:not(").concat(e.antCls,"-menu-inline) ").concat(e.antCls,"-menu-submenu-open"),{color:(H=e.layout)===null||H===void 0||(H=H.sider)===null||H===void 0?void 0:H.colorTextMenuSelected}),"&".concat(e.antCls,"-menu-vertical"),(0,l.Z)({},"".concat(e.antCls,"-menu-submenu-selected"),{borderRadius:e.borderRadius,color:(P=e.layout)===null||P===void 0||(P=P.sider)===null||P===void 0?void 0:P.colorTextMenuSelected})),"".concat(e.antCls,"-menu-submenu:hover > ").concat(e.antCls,"-menu-submenu-title > ").concat(e.antCls,"-menu-submenu-arrow"),{color:(M=e.layout)===null||M===void 0||(M=M.sider)===null||M===void 0?void 0:M.colorTextMenuActive}),"&".concat(e.antCls,"-menu-horizontal"),(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({},"".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:(z=e.layout)===null||z===void 0||(z=z.header)===null||z===void 0?void 0:z.colorTextMenuActive,backgroundColor:"".concat((D=e.layout)===null||D===void 0||(D=D.header)===null||D===void 0?void 0:D.colorBgMenuItemHover," !important")}),"".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,l.Z)({backgroundColor:(W=e.layout)===null||W===void 0||(W=W.header)===null||W===void 0?void 0:W.colorBgMenuItemSelected,borderRadius:e.borderRadius,transition:"none",color:"".concat((L=e.layout)===null||L===void 0||(L=L.header)===null||L===void 0?void 0:L.colorTextMenuSelected," !important")},"".concat(e.antCls,"-menu-submenu-arrow"),{color:"".concat(($=e.layout)===null||$===void 0||($=$.header)===null||$===void 0?void 0:$.colorTextMenuSelected," !important")})),"> ".concat(e.antCls,"-menu-item, > ").concat(e.antCls,"-menu-submenu"),{paddingInline:16,marginInline:4}),"> ".concat(e.antCls,"-menu-item::after, > ").concat(e.antCls,"-menu-submenu::after"),{display:"none"})))),"".concat(e.proComponentsCls,"-top-nav-header-base-menu"),(0,l.Z)((0,l.Z)({},"&".concat(e.antCls,"-menu"),(0,l.Z)({color:(B=e.layout)===null||B===void 0||(B=B.header)===null||B===void 0?void 0:B.colorTextMenu},"".concat(e.antCls,"-menu-item a"),{color:"inherit"})),"&".concat(e.antCls,"-menu-light"),(0,l.Z)((0,l.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,l.Z)({color:(G=e.layout)===null||G===void 0||(G=G.header)===null||G===void 0?void 0:G.colorTextMenuActive,borderRadius:e.borderRadius,transition:"none",backgroundColor:(O=e.layout)===null||O===void 0||(O=O.header)===null||O===void 0?void 0:O.colorBgMenuItemSelected},"".concat(e.antCls,"-menu-submenu-arrow"),{color:(A=e.layout)===null||A===void 0||(A=A.header)===null||A===void 0?void 0:A.colorTextMenuActive})),"".concat(e.antCls,"-menu-item-selected"),{color:(ne=e.layout)===null||ne===void 0||(ne=ne.header)===null||ne===void 0?void 0:ne.colorTextMenuSelected,borderRadius:e.borderRadius,backgroundColor:(ie=e.layout)===null||ie===void 0||(ie=ie.header)===null||ie===void 0?void 0:ie.colorBgMenuItemSelected})))),"".concat(e.antCls,"-menu-sub").concat(e.antCls,"-menu-inline"),{backgroundColor:"transparent!important"}),"".concat(e.antCls,"-menu-submenu-popup"),(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({backgroundColor:"rgba(255, 255, 255, 0.42)","-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)"},"".concat(e.antCls,"-menu"),(0,l.Z)({background:"transparent !important",backgroundColor:"transparent !important"},"".concat(e.antCls,`-menu-item:active,
|
|
`).concat(e.antCls,"-menu-submenu-title:active"),{backgroundColor:"transparent!important"})),"".concat(e.antCls,"-menu-item-selected"),{color:(p=e.layout)===null||p===void 0||(p=p.sider)===null||p===void 0?void 0:p.colorTextMenuSelected}),"".concat(e.antCls,"-menu-submenu-selected"),{color:(de=e.layout)===null||de===void 0||(de=de.sider)===null||de===void 0?void 0:de.colorTextMenuSelected}),"".concat(e.antCls,"-menu:not(").concat(e.antCls,"-menu-horizontal)"),(0,l.Z)((0,l.Z)({},"".concat(e.antCls,"-menu-item-selected"),{backgroundColor:"rgba(0, 0, 0, 0.04)",borderRadius:e.borderRadius,color:(T=e.layout)===null||T===void 0||(T=T.sider)===null||T===void 0?void 0:T.colorTextMenuSelected}),"".concat(e.antCls,`-menu-item:hover,
|
|
`).concat(e.antCls,`-menu-item-active,
|
|
`).concat(e.antCls,"-menu-submenu-title:hover"),(0,l.Z)({color:(X=e.layout)===null||X===void 0||(X=X.sider)===null||X===void 0?void 0:X.colorTextMenuActive,borderRadius:e.borderRadius},"".concat(e.antCls,"-menu-submenu-arrow"),{color:(re=e.layout)===null||re===void 0||(re=re.sider)===null||re===void 0?void 0:re.colorTextMenuActive}))))},_a=function(e){var n,t,a,i;return(0,l.Z)((0,l.Z)({},"".concat(e.antCls,"-layout"),{backgroundColor:"transparent !important"}),e.componentCls,(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({},"& ".concat(e.antCls,"-layout"),{display:"flex",backgroundColor:"transparent",width:"100%"}),"".concat(e.componentCls,"-content"),{display:"flex",flexDirection:"column",width:"100%",backgroundColor:((n=e.layout)===null||n===void 0||(n=n.pageContainer)===null||n===void 0?void 0:n.colorBgPageContainer)||"transparent",position:"relative",paddingBlock:(t=e.layout)===null||t===void 0||(t=t.pageContainer)===null||t===void 0?void 0:t.paddingBlockPageContainerContent,paddingInline:(a=e.layout)===null||a===void 0||(a=a.pageContainer)===null||a===void 0?void 0:a.paddingInlinePageContainerContent,"&-has-page-container":{padding:0}}),"".concat(e.componentCls,"-container"),{width:"100%",display:"flex",flexDirection:"column",minWidth:0,minHeight:0,backgroundColor:"transparent"}),"".concat(e.componentCls,"-bg-list"),{pointerEvents:"none",position:"fixed",overflow:"hidden",insetBlockStart:0,insetInlineStart:0,zIndex:0,height:"100%",width:"100%",background:(i=e.layout)===null||i===void 0?void 0:i.bgLayout}))};function za(r){return(0,Re.Xj)("ProLayout",function(e){var n=(0,v.Z)((0,v.Z)({},e),{},{componentCls:".".concat(r)});return[_a(n),Oa(n)]})}function Wa(r){if(!r||r==="/")return["/"];var e=r.split("/").filter(function(n){return n});return e.map(function(n,t){return"/".concat(e.slice(0,t+1).join("/"))})}var qe=x(34155),Fa=function(){var e;return typeof qe=="undefined"?Sn.Z:((e=qe)===null||qe===void 0||(qe={NODE_ENV:"production",PUBLIC_PATH:"/"})===null||qe===void 0?void 0:qe.ANTD_VERSION)||Sn.Z},Ka=function(e,n,t){var a=e,i=a.breadcrumbName,o=a.title,c=a.path,d=t.findIndex(function(s){return s.linkPath===e.path})===t.length-1;return d?(0,u.jsx)("span",{children:o||i}):(0,u.jsx)("span",{onClick:c?function(){return location.href=c}:void 0,children:o||i})},Ua=function(e,n){var t=n.formatMessage,a=n.menu;return e.locale&&t&&(a==null?void 0:a.locale)!==!1?t({id:e.locale,defaultMessage:e.name}):e.name},ka=function(e,n){var t=e.get(n);if(!t){var a=Array.from(e.keys())||[],i=a.find(function(o){try{return o!=null&&o.startsWith("http")?!1:(0,Dn.match)(o.replace("?",""))(n)}catch(c){return console.log("path",o,c),!1}});i&&(t=e.get(i))}return t||{path:""}},Ga=function(e){var n=e.location,t=e.breadcrumbMap;return{location:n,breadcrumbMap:t}},Xa=function(e,n,t){var a=Wa(e==null?void 0:e.pathname),i=a.map(function(o){var c=ka(n,o),d=Ua(c,t),s=c.hideInBreadcrumb;return d&&!s?{linkPath:o,breadcrumbName:d,title:d,component:c.component}:{linkPath:"",breadcrumbName:"",title:""}}).filter(function(o){return o&&o.linkPath});return i},Va=function(e){var n=Ga(e),t=n.location,a=n.breadcrumbMap;return t&&t.pathname&&a?Xa(t,a,e):[]},Qa=function(e,n){var t=e.breadcrumbRender,a=e.itemRender,i=n.breadcrumbProps||{},o=i.minLength,c=o===void 0?2:o,d=Va(e),s=function(g){for(var w=a||Ka,H=arguments.length,P=new Array(H>1?H-1:0),M=1;M<H;M++)P[M-1]=arguments[M];return w==null?void 0:w.apply(void 0,[(0,v.Z)((0,v.Z)({},g),{},{path:g.linkPath||g.path})].concat(P))},f=d;return t&&(f=t(f||[])||void 0),(f&&f.length<c||t===!1)&&(f=void 0),(0,_.n)(Fa(),"5.3.0")>-1?{items:f,itemRender:s}:{routes:f,itemRender:s}};function Ya(r){return(0,xn.Z)(r).reduce(function(e,n){var t=(0,U.Z)(n,2),a=t[0],i=t[1];return e[a]=i,e},{})}var Ja=function r(e,n,t,a){var i=vr(e,(n==null?void 0:n.locale)||!1,t,!0),o=i.menuData,c=i.breadcrumb;return a?r(a(o),n,t,void 0):{breadcrumb:Ya(c),breadcrumbMap:c,menuData:o}},qa=x(71002),eo=x(51812),no=function(e){var n=(0,m.useState)({}),t=(0,U.Z)(n,2),a=t[0],i=t[1];return(0,m.useEffect)(function(){i((0,eo.Y)({layout:(0,qa.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=["id","defaultMessage"],ro=["fixSiderbar","navTheme","layout"],Zt=0,ao=function(e,n){var t;return e.headerRender===!1||e.pure?null:(0,u.jsx)(Ba,(0,v.Z)((0,v.Z)({matchMenuKeys:n},e),{},{stylish:(t=e.stylish)===null||t===void 0?void 0:t.header}))},oo=function(e){return e.footerRender===!1||e.pure?null:e.footerRender?e.footerRender((0,v.Z)({},e),(0,u.jsx)(Tr.q,{})):null},io=function(e,n){var t,a=e.layout,i=e.isMobile,o=e.selectedKeys,c=e.openKeys,d=e.splitMenus,s=e.suppressSiderWhenMenuEmpty,f=e.menuRender;if(e.menuRender===!1||e.pure)return null;var b=e.menuData;if(d&&(c!==!1||a==="mix")&&!i){var g=o||n,w=(0,U.Z)(g,1),H=w[0];if(H){var P;b=((P=e.menuData)===null||P===void 0||(P=P.find(function(W){return W.key===H}))===null||P===void 0?void 0:P.children)||[]}else b=[]}var M=(0,cn.QX)(b||[]);if(M&&(M==null?void 0:M.length)<1&&(d||s))return null;if(a==="top"&&!i){var z;return(0,u.jsx)(bt,(0,v.Z)((0,v.Z)({matchMenuKeys:n},e),{},{hide:!0,stylish:(z=e.stylish)===null||z===void 0?void 0:z.sider}))}var D=(0,u.jsx)(bt,(0,v.Z)((0,v.Z)({matchMenuKeys:n},e),{},{menuData:M,stylish:(t=e.stylish)===null||t===void 0?void 0:t.sider}));return f?f(e,D):D},lo=function(e,n){var t=n.pageTitleRender,a=On(e);if(t===!1)return{title:n.title||"",id:"",pageName:""};if(t){var i=t(e,a.title,a);if(typeof i=="string")return On((0,v.Z)((0,v.Z)({},a),{},{title:i}));(0,Cr.ZP)(typeof i=="string","pro-layout: renderPageTitle return value should be a string")}return a},uo=function(e,n,t){return e?n?64:t:0},co=function(e){var n,t,a,i,o,c,d,s,f,b,g,w,H,P,M=e||{},z=M.children,D=M.onCollapse,W=M.location,L=W===void 0?{pathname:"/"}:W,$=M.contentStyle,y=M.route,B=M.defaultCollapsed,G=M.style,O=M.siderWidth,A=M.menu,ne=M.siderMenuType,ie=M.isChildrenLayout,p=M.menuDataRender,de=M.actionRef,T=M.bgLayoutImgList,X=M.formatMessage,re=M.loading,pe=(0,m.useMemo)(function(){return O||(e.layout==="mix"?215:256)},[e.layout,O]),ae=(0,m.useContext)(_e.ZP.ConfigContext),Se=(n=e.prefixCls)!==null&&n!==void 0?n:ae.getPrefixCls("pro"),ye=(0,ve.Z)(!1,{value:A==null?void 0:A.loading,onChange:A==null?void 0:A.onLoadingChange}),xe=(0,U.Z)(ye,2),Ee=xe[0],we=xe[1],Be=(0,m.useState)(function(){return Zt+=1,"pro-layout-".concat(Zt)}),ze=(0,U.Z)(Be,1),Ke=ze[0],Ue=(0,m.useCallback)(function(Me){var Ge=Me.id,wn=Me.defaultMessage,hn=(0,le.Z)(Me,to);if(X)return X((0,v.Z)({id:Ge,defaultMessage:wn},hn));var gn=(0,$a.e)();return gn[Ge]?gn[Ge]:wn},[X]),ke=(0,nt.ZP)([Ke,A==null?void 0:A.params],function(){var Me=(0,V.Z)((0,Q.Z)().mark(function Ge(wn){var hn,gn,Dt,Ot;return(0,Q.Z)().wrap(function(rn){for(;;)switch(rn.prev=rn.next){case 0:return gn=(0,U.Z)(wn,2),Dt=gn[1],we(!0),rn.next=4,A==null||(hn=A.request)===null||hn===void 0?void 0:hn.call(A,Dt||{},(y==null?void 0:y.children)||(y==null?void 0:y.routes)||[]);case 4:return Ot=rn.sent,we(!1),rn.abrupt("return",Ot);case 7:case"end":return rn.stop()}},Ge)}));return function(Ge){return Me.apply(this,arguments)}}(),{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),dn=ke.data,Zn=ke.mutate,Ze=ke.isLoading;(0,m.useEffect)(function(){we(Ze)},[Ze]);var Ae=(0,nt.kY)(),Ne=Ae.cache;(0,m.useEffect)(function(){return function(){Ne instanceof Map&&Ne.delete(Ke)}},[]);var Mn=(0,m.useMemo)(function(){return Ja(dn||(y==null?void 0:y.children)||(y==null?void 0:y.routes)||[],A,Ue,p)},[Ue,A,p,dn,y==null?void 0:y.children,y==null?void 0:y.routes]),_n=Mn||{},vo=_n.breadcrumb,Mt=_n.breadcrumbMap,It=_n.menuData,sn=It===void 0?[]:It;de&&A!==null&&A!==void 0&&A.request&&(de.current={reload:function(){Zn()}});var vn=(0,m.useMemo)(function(){return yr(L.pathname||"/",sn||[],!0)},[L.pathname,sn]),zn=(0,m.useMemo)(function(){return Array.from(new Set(vn.map(function(Me){return Me.key||Me.path||""})))},[vn]),Rt=vn[vn.length-1]||{},wt=no(Rt),In=(0,v.Z)((0,v.Z)({},e),wt),fo=In.fixSiderbar,Po=In.navTheme,fn=In.layout,mo=(0,le.Z)(In,ro),en=$e(),nn=(0,m.useMemo)(function(){return(en==="sm"||en==="xs")&&!e.disableMobile},[en,e.disableMobile]),ho=fn!=="top"&&!nn,go=(0,ve.Z)(function(){return B!==void 0?B:!!(nn||en==="md")},{value:e.collapsed,onChange:D}),Tt=(0,U.Z)(go,2),mn=Tt[0],jt=Tt[1],tn=(0,et.Z)((0,v.Z)((0,v.Z)((0,v.Z)({prefixCls:Se},e),{},{siderWidth:pe},wt),{},{formatMessage:Ue,breadcrumb:vo,menu:(0,v.Z)((0,v.Z)({},A),{},{type:ne||(A==null?void 0:A.type),loading:Ee}),layout:fn}),["className","style","breadcrumbRender"]),Wn=lo((0,v.Z)((0,v.Z)({pathname:L.pathname},tn),{},{breadcrumbMap:Mt}),e),po=Qa((0,v.Z)((0,v.Z)({},tn),{},{breadcrumbRender:e.breadcrumbRender,breadcrumbMap:Mt}),e),Rn=io((0,v.Z)((0,v.Z)({},tn),{},{menuData:sn,onCollapse:jt,isMobile:nn,collapsed:mn}),zn),Fn=ao((0,v.Z)((0,v.Z)({},tn),{},{children:null,hasSiderMenu:!!Rn,menuData:sn,isMobile:nn,collapsed:mn,onCollapse:jt}),zn),Bt=oo((0,v.Z)({isMobile:nn,collapsed:mn},tn)),yo=(0,m.useContext)(St.X),xo=yo.isChildrenLayout,Kn=ie!==void 0?ie:xo,We="".concat(Se,"-layout"),Pt=za(We),Co=Pt.wrapSSR,Un=Pt.hashId,bo=q()(e.className,Un,"ant-design-pro",We,(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({},"screen-".concat(en),en),"".concat(We,"-top-menu"),fn==="top"),"".concat(We,"-is-children"),Kn),"".concat(We,"-fix-siderbar"),fo),"".concat(We,"-").concat(fn),fn)),So=uo(!!ho,mn,pe),Lt={position:"relative"};(Kn||$&&$.minHeight)&&(Lt.minHeight=0),(0,m.useEffect)(function(){var Me;(Me=e.onPageChange)===null||Me===void 0||Me.call(e,e.location)},[L.pathname,(t=L.pathname)===null||t===void 0?void 0:t.search]);var Zo=(0,m.useState)(!1),Et=(0,U.Z)(Zo,2),Nt=Et[0],Mo=Et[1],Io=(0,m.useState)(0),Ht=(0,U.Z)(Io,2),At=Ht[0],Ro=Ht[1];N(Wn,e.title||!1);var wo=(0,m.useContext)(te.L_),k=wo.token,$t=(0,m.useMemo)(function(){return T&&T.length>0?T==null?void 0:T.map(function(Me,Ge){return(0,u.jsx)("img",{src:Me.src,style:(0,v.Z)({position:"absolute"},Me)},Ge)}):null},[T]);return Co((0,u.jsx)(St.X.Provider,{value:(0,v.Z)((0,v.Z)({},tn),{},{breadcrumb:po,menuData:sn,isMobile:nn,collapsed:mn,hasPageContainer:At,setHasPageContainer:Ro,isChildrenLayout:!0,title:Wn.pageName,hasSiderMenu:!!Rn,hasHeader:!!Fn,siderWidth:So,hasFooter:!!Bt,hasFooterToolbar:Nt,setHasFooterToolbar:Mo,pageTitleInfo:Wn,matchMenus:vn,matchMenuKeys:zn,currentMenu:Rt}),children:e.pure?(0,u.jsx)(u.Fragment,{children:z}):(0,u.jsxs)("div",{className:bo,children:[$t||(a=k.layout)!==null&&a!==void 0&&a.bgLayout?(0,u.jsx)("div",{className:q()("".concat(We,"-bg-list"),Un),children:$t}):null,(0,u.jsxs)(Ye.Z,{style:(0,v.Z)({minHeight:"100%",flexDirection:Rn?"row":void 0},G),children:[(0,u.jsx)(_e.ZP,{theme:{hashed:(0,te.nu)(),token:{controlHeightLG:((i=k.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.menuHeight)||(k==null?void 0:k.controlHeightLG)},components:{Menu:Y({colorItemBg:((o=k.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.colorMenuBackground)||"transparent",colorSubItemBg:((c=k.layout)===null||c===void 0||(c=c.sider)===null||c===void 0?void 0:c.colorMenuBackground)||"transparent",radiusItem:k.borderRadius,colorItemBgSelected:((d=k.layout)===null||d===void 0||(d=d.sider)===null||d===void 0?void 0:d.colorBgMenuItemSelected)||(k==null?void 0:k.colorBgTextHover),colorItemBgHover:((s=k.layout)===null||s===void 0||(s=s.sider)===null||s===void 0?void 0:s.colorBgMenuItemHover)||(k==null?void 0:k.colorBgTextHover),colorItemBgActive:((f=k.layout)===null||f===void 0||(f=f.sider)===null||f===void 0?void 0:f.colorBgMenuItemActive)||(k==null?void 0:k.colorBgTextActive),colorItemBgSelectedHorizontal:((b=k.layout)===null||b===void 0||(b=b.sider)===null||b===void 0?void 0:b.colorBgMenuItemSelected)||(k==null?void 0:k.colorBgTextHover),colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemText:((g=k.layout)===null||g===void 0||(g=g.sider)===null||g===void 0?void 0:g.colorTextMenu)||(k==null?void 0:k.colorTextSecondary),colorItemTextHover:((w=k.layout)===null||w===void 0||(w=w.sider)===null||w===void 0?void 0:w.colorTextMenuItemHover)||"rgba(0, 0, 0, 0.85)",colorItemTextSelected:((H=k.layout)===null||H===void 0||(H=H.sider)===null||H===void 0?void 0:H.colorTextMenuSelected)||"rgba(0, 0, 0, 1)",popupBg:k==null?void 0:k.colorBgElevated,subMenuItemBg:k==null?void 0:k.colorBgElevated,darkSubMenuItemBg:"transparent",darkPopupBg:k==null?void 0:k.colorBgElevated})}},children:Rn}),(0,u.jsxs)("div",{style:Lt,className:"".concat(We,"-container ").concat(Un).trim(),children:[Fn,(0,u.jsx)(Rr,(0,v.Z)((0,v.Z)({hasPageContainer:At,isChildrenLayout:Kn},mo),{},{hasHeader:!!Fn,prefixCls:We,style:$,children:re?(0,u.jsx)(Pa.S,{}):z})),Bt,Nt&&(0,u.jsx)("div",{className:"".concat(We,"-has-footer"),style:{height:64,marginBlockStart:(P=k.layout)===null||P===void 0||(P=P.pageContainer)===null||P===void 0?void 0:P.paddingBlockPageContainerContent}})]})]})]})}))},so=function(e){var n=e.colorPrimary,t=e.navTheme!==void 0?{dark:e.navTheme==="realDark"}:{};return(0,u.jsx)(_e.ZP,{theme:n?{token:{colorPrimary:n}}:void 0,children:(0,u.jsx)(te._Y,(0,v.Z)((0,v.Z)({},t),{},{token:e.token,prefixCls:e.prefixCls,children:(0,u.jsx)(co,(0,v.Z)((0,v.Z)({logo:(0,u.jsx)(wr,{})},ct.h),{},{location:(0,He.j)()?window.location:void 0},e))}))})}},83832:function(se,ee,x){"use strict";x.d(ee,{S:function(){return te}});var l=x(1413),Q=x(91),V=x(74330),le=x(67294),U=x(85893),v=["isLoading","pastDelay","timedOut","error","retry"],te=function(m){var me=m.isLoading,fe=m.pastDelay,Te=m.timedOut,$e=m.error,He=m.retry,N=(0,Q.Z)(m,v);return(0,U.jsx)("div",{style:{paddingBlockStart:100,textAlign:"center"},children:(0,U.jsx)(V.Z,(0,l.Z)({size:"large"},N))})}},76509:function(se,ee,x){"use strict";x.d(ee,{X:function(){return Q}});var l=x(67294),Q=(0,l.createContext)({})},90743:function(se,ee){var x;function l(N){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},l(N)}x={value:!0},ee.Bo=x=x=x=x=x=x=void 0;function Q(N){for(var _=[],j=0;j<N.length;){var Y=N[j];if(Y==="*"||Y==="+"||Y==="?"){_.push({type:"MODIFIER",index:j,value:N[j++]});continue}if(Y==="\\"){_.push({type:"ESCAPED_CHAR",index:j++,value:N[j++]});continue}if(Y==="{"){_.push({type:"OPEN",index:j,value:N[j++]});continue}if(Y==="}"){_.push({type:"CLOSE",index:j,value:N[j++]});continue}if(Y===":"){for(var ce="",K=j+1;K<N.length;){var J=N.charCodeAt(K);if(J>=48&&J<=57||J>=65&&J<=90||J>=97&&J<=122||J===95){ce+=N[K++];continue}break}if(!ce)throw new TypeError("Missing parameter name at "+j);_.push({type:"NAME",index:j,value:ce}),j=K;continue}if(Y==="("){var he=1,oe="",K=j+1;if(N[K]==="?")throw new TypeError('Pattern cannot start with "?" at '+K);for(;K<N.length;){if(N[K]==="\\"){oe+=N[K++]+N[K++];continue}if(N[K]===")"){if(he--,he===0){K++;break}}else if(N[K]==="("&&(he++,N[K+1]!=="?"))throw new TypeError("Capturing groups are not allowed at "+K);oe+=N[K++]}if(he)throw new TypeError("Unbalanced pattern at "+j);if(!oe)throw new TypeError("Missing pattern at "+j);_.push({type:"PATTERN",index:j,value:oe}),j=K;continue}_.push({type:"CHAR",index:j,value:N[j++]})}return _.push({type:"END",index:j,value:""}),_}function V(N,_){_===void 0&&(_={});for(var j=Q(N),Y=_.prefixes,ce=Y===void 0?"./":Y,K="[^"+ve(_.delimiter||"/#?")+"]+?",J=[],he=0,oe=0,Z="",C=function(be){if(oe<j.length&&j[oe].type===be)return j[oe++].value},h=function(be){var Fe=C(be);if(Fe!==void 0)return Fe;var Xe=j[oe],Oe=Xe.type,Ve=Xe.index;throw new TypeError("Unexpected "+Oe+" at "+Ve+", expected "+be)},E=function(){for(var be="",Fe;Fe=C("CHAR")||C("ESCAPED_CHAR");)be+=Fe;return be};oe<j.length;){var R=C("CHAR"),S=C("NAME"),F=C("PATTERN");if(S||F){var I=R||"";ce.indexOf(I)===-1&&(Z+=I,I=""),Z&&(J.push(Z),Z=""),J.push({name:S||he++,prefix:I,suffix:"",pattern:F||K,modifier:C("MODIFIER")||""});continue}var ue=R||C("ESCAPED_CHAR");if(ue){Z+=ue;continue}Z&&(J.push(Z),Z="");var Ce=C("OPEN");if(Ce){var I=E(),Pe=C("NAME")||"",Ie=C("PATTERN")||"",De=E();h("CLOSE"),J.push({name:Pe||(Ie?he++:""),pattern:Pe&&!Ie?K:Ie,prefix:I,suffix:De,modifier:C("MODIFIER")||""});continue}h("END")}return J}x=V;function le(N,_){return U(V(N,_),_)}x=le;function U(N,_){_===void 0&&(_={});var j=m(_),Y=_.encode,ce=Y===void 0?function(oe){return oe}:Y,K=_.validate,J=K===void 0?!0:K,he=N.map(function(oe){if(l(oe)==="object")return new RegExp("^(?:"+oe.pattern+")$",j)});return function(oe){for(var Z="",C=0;C<N.length;C++){var h=N[C];if(typeof h=="string"){Z+=h;continue}var E=oe?oe[h.name]:void 0,R=h.modifier==="?"||h.modifier==="*",S=h.modifier==="*"||h.modifier==="+";if(Array.isArray(E)){if(!S)throw new TypeError('Expected "'+h.name+'" to not repeat, but got an array');if(E.length===0){if(R)continue;throw new TypeError('Expected "'+h.name+'" to not be empty')}for(var F=0;F<E.length;F++){var I=ce(E[F],h);if(J&&!he[C].test(I))throw new TypeError('Expected all "'+h.name+'" to match "'+h.pattern+'", but got "'+I+'"');Z+=h.prefix+I+h.suffix}continue}if(typeof E=="string"||typeof E=="number"){var I=ce(String(E),h);if(J&&!he[C].test(I))throw new TypeError('Expected "'+h.name+'" to match "'+h.pattern+'", but got "'+I+'"');Z+=h.prefix+I+h.suffix;continue}if(!R){var ue=S?"an array":"a string";throw new TypeError('Expected "'+h.name+'" to be '+ue)}}return Z}}x=U;function v(N,_){var j=[],Y=He(N,j,_);return te(Y,j,_)}x=v;function te(N,_,j){j===void 0&&(j={});var Y=j.decode,ce=Y===void 0?function(K){return K}:Y;return function(K){var J=N.exec(K);if(!J)return!1;for(var he=J[0],oe=J.index,Z=Object.create(null),C=function(R){if(J[R]===void 0)return"continue";var S=_[R-1];S.modifier==="*"||S.modifier==="+"?Z[S.name]=J[R].split(S.prefix+S.suffix).map(function(F){return ce(F,S)}):Z[S.name]=ce(J[R],S)},h=1;h<J.length;h++)C(h);return{path:he,index:oe,params:Z}}}x=te;function ve(N){return N.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function m(N){return N&&N.sensitive?"":"i"}function me(N,_){if(!_)return N;var j=N.source.match(/\((?!\?)/g);if(j)for(var Y=0;Y<j.length;Y++)_.push({name:Y,prefix:"",suffix:"",modifier:"",pattern:""});return N}function fe(N,_,j){var Y=N.map(function(ce){return He(ce,_,j).source});return new RegExp("(?:"+Y.join("|")+")",m(j))}function Te(N,_,j){return $e(V(N,j),_,j)}function $e(N,_,j){j===void 0&&(j={});for(var Y=j.strict,ce=Y===void 0?!1:Y,K=j.start,J=K===void 0?!0:K,he=j.end,oe=he===void 0?!0:he,Z=j.encode,C=Z===void 0?function(Le){return Le}:Z,h="["+ve(j.endsWith||"")+"]|$",E="["+ve(j.delimiter||"/#?")+"]",R=J?"^":"",S=0,F=N;S<F.length;S++){var I=F[S];if(typeof I=="string")R+=ve(C(I));else{var ue=ve(C(I.prefix)),Ce=ve(C(I.suffix));if(I.pattern)if(_&&_.push(I),ue||Ce)if(I.modifier==="+"||I.modifier==="*"){var Pe=I.modifier==="*"?"?":"";R+="(?:"+ue+"((?:"+I.pattern+")(?:"+Ce+ue+"(?:"+I.pattern+"))*)"+Ce+")"+Pe}else R+="(?:"+ue+"("+I.pattern+")"+Ce+")"+I.modifier;else R+="("+I.pattern+")"+I.modifier;else R+="(?:"+ue+Ce+")"+I.modifier}}if(oe)ce||(R+=E+"?"),R+=j.endsWith?"(?="+h+")":"$";else{var Ie=N[N.length-1],De=typeof Ie=="string"?E.indexOf(Ie[Ie.length-1])>-1:Ie===void 0;ce||(R+="(?:"+E+"(?="+h+"))?"),De||(R+="(?="+E+"|"+h+")")}return new RegExp(R,m(j))}x=$e;function He(N,_,j){return N instanceof RegExp?me(N,_):Array.isArray(N)?fe(N,_,j):Te(N,_,j)}ee.Bo=He},48171:function(se,ee,x){"use strict";x.d(ee,{J:function(){return V}});var l=x(74902),Q=x(67294),V=function(U){var v=(0,Q.useRef)(null);return v.current=U,(0,Q.useCallback)(function(){for(var te,ve=arguments.length,m=new Array(ve),me=0;me<ve;me++)m[me]=arguments[me];return(te=v.current)===null||te===void 0?void 0:te.call.apply(te,[v].concat((0,l.Z)(m)))},[])}},16305:function(se,ee){"use strict";var x=this&&this.__classPrivateFieldGet||function(Z,C,h,E){if(h==="a"&&!E)throw new TypeError("Private accessor was defined without a getter");if(typeof C=="function"?Z!==C||!E:!C.has(Z))throw new TypeError("Cannot read private member from an object whose class did not declare it");return h==="m"?E:h==="a"?E.call(Z):E?E.value:C.get(Z)},l=this&&this.__classPrivateFieldSet||function(Z,C,h,E,R){if(E==="m")throw new TypeError("Private method is not writable");if(E==="a"&&!R)throw new TypeError("Private accessor was defined without a setter");if(typeof C=="function"?Z!==C||!R:!C.has(Z))throw new TypeError("Cannot write private member to an object whose class did not declare it");return E==="a"?R.call(Z,h):R?R.value=h:C.set(Z,h),h},Q;Object.defineProperty(ee,"__esModule",{value:!0}),ee.TokenData=void 0,ee.parse=He,ee.compile=_,ee.match=K;const V="/",le=Z=>Z,U=/^[$_\p{ID_Start}]$/u,v=/^[$\u200c\u200d\p{ID_Continue}]$/u,te="https://git.new/pathToRegexpError",ve={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function m(Z){return Z.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}function me(Z){return Z.sensitive?"s":"is"}function*fe(Z){const C=[...Z];let h=0;function E(){let R="";if(U.test(C[++h]))for(R+=C[h];v.test(C[++h]);)R+=C[h];else if(C[h]==='"'){let S=h;for(;h<C.length;){if(C[++h]==='"'){h++,S=0;break}C[h]==="\\"?R+=C[++h]:R+=C[h]}if(S)throw new TypeError(`Unterminated quote at ${S}: ${te}`)}if(!R)throw new TypeError(`Missing parameter name at ${h}: ${te}`);return R}for(;h<C.length;){const R=C[h],S=ve[R];if(S)yield{type:S,index:h++,value:R};else if(R==="\\")yield{type:"ESCAPED",index:h++,value:C[h++]};else if(R===":"){const F=E();yield{type:"PARAM",index:h,value:F}}else if(R==="*"){const F=E();yield{type:"WILDCARD",index:h,value:F}}else yield{type:"CHAR",index:h,value:C[h++]}}return{type:"END",index:h,value:""}}class Te{constructor(C){this.tokens=C,Q.set(this,void 0)}peek(){if(!x(this,Q,"f")){const C=this.tokens.next();l(this,Q,C.value,"f")}return x(this,Q,"f")}tryConsume(C){const h=this.peek();if(h.type===C)return l(this,Q,void 0,"f"),h.value}consume(C){const h=this.tryConsume(C);if(h!==void 0)return h;const{type:E,index:R}=this.peek();throw new TypeError(`Unexpected ${E} at ${R}, expected ${C}: ${te}`)}text(){let C="",h;for(;h=this.tryConsume("CHAR")||this.tryConsume("ESCAPED");)C+=h;return C}}Q=new WeakMap;class $e{constructor(C){this.tokens=C}}ee.TokenData=$e;function He(Z,C={}){const{encodePath:h=le}=C,E=new Te(fe(Z));function R(F){const I=[];for(;;){const ue=E.text();ue&&I.push({type:"text",value:h(ue)});const Ce=E.tryConsume("PARAM");if(Ce){I.push({type:"param",name:Ce});continue}const Pe=E.tryConsume("WILDCARD");if(Pe){I.push({type:"wildcard",name:Pe});continue}if(E.tryConsume("{")){I.push({type:"group",tokens:R("}")});continue}return E.consume(F),I}}const S=R("END");return new $e(S)}function N(Z,C){const{encode:h=encodeURIComponent,delimiter:E=V}=C,R=j(Z.tokens,E,h);return function(F={}){const[I,...ue]=R(F);if(ue.length)throw new TypeError(`Missing parameters: ${ue.join(", ")}`);return I}}function _(Z,C={}){return N(Z instanceof $e?Z:He(Z,C),C)}function j(Z,C,h){const E=Z.map(R=>Y(R,C,h));return R=>{const S=[""];for(const F of E){const[I,...ue]=F(R);S[0]+=I,S.push(...ue)}return S}}function Y(Z,C,h){if(Z.type==="text")return()=>[Z.value];if(Z.type==="group"){const R=j(Z.tokens,C,h);return S=>{const[F,...I]=R(S);return I.length?[""]:[F]}}const E=h||le;return Z.type==="wildcard"&&h!==!1?R=>{const S=R[Z.name];if(S==null)return["",Z.name];if(!Array.isArray(S)||S.length===0)throw new TypeError(`Expected "${Z.name}" to be a non-empty array`);return[S.map((F,I)=>{if(typeof F!="string")throw new TypeError(`Expected "${Z.name}/${I}" to be a string`);return E(F)}).join(C)]}:R=>{const S=R[Z.name];if(S==null)return["",Z.name];if(typeof S!="string")throw new TypeError(`Expected "${Z.name}" to be a string`);return[E(S)]}}function ce(Z,C={}){const{decode:h=decodeURIComponent,delimiter:E=V,end:R=!0,trailing:S=!0}=C,F=me(C),I=[],ue=[];for(const{tokens:De}of Z)for(const Le of J(De,0,[])){const be=he(Le,E,ue);I.push(be)}let Ce=`^(?:${I.join("|")})`;S&&(Ce+=`(?:${m(E)}$)?`),Ce+=R?"$":`(?=${m(E)}|$)`;const Pe=new RegExp(Ce,F),Ie=ue.map(De=>h===!1?le:De.type==="param"?h:Le=>Le.split(E).map(h));return Object.assign(function(Le){const be=Pe.exec(Le);if(!be)return!1;const{0:Fe}=be,Xe=Object.create(null);for(let Oe=1;Oe<be.length;Oe++){if(be[Oe]===void 0)continue;const Ve=ue[Oe-1],Tn=Ie[Oe-1];Xe[Ve.name]=Tn(be[Oe])}return{path:Fe,params:Xe}},{re:Pe})}function K(Z,C={}){const E=(Array.isArray(Z)?Z:[Z]).map(R=>R instanceof $e?R:He(R,C));return ce(E,C)}function*J(Z,C,h){if(C===Z.length)return yield h;const E=Z[C];if(E.type==="group"){const R=h.slice();for(const S of J(E.tokens,0,R))yield*Gn(J(Z,C+1,S))}else h.push(E);yield*Gn(J(Z,C+1,h))}function he(Z,C,h){let E="",R="",S=!0;for(let F=0;F<Z.length;F++){const I=Z[F];if(I.type==="text"){E+=m(I.value),R=I.value,S||(S=I.value.includes(C));continue}if(I.type==="param"||I.type==="wildcard"){if(!S&&!R)throw new TypeError(`Missing text after "${I.name}": ${te}`);I.type==="param"?E+=`(${oe(C,S?"":R)}+)`:E+="(.+)",h.push(I),R="",S=!1;continue}}return E}function oe(Z,C){const h=[Z,C].filter(Boolean);return h.every(R=>R.length===1)?`[^${m(h.join(""))}]`:`(?:(?!${h.map(m).join("|")}).)`}},64599:function(se,ee,x){var l=x(96263);function Q(V,le){var U=typeof Symbol!="undefined"&&V[Symbol.iterator]||V["@@iterator"];if(!U){if(Array.isArray(V)||(U=l(V))||le&&V&&typeof V.length=="number"){U&&(V=U);var v=0,te=function(){};return{s:te,n:function(){return v>=V.length?{done:!0}:{done:!1,value:V[v++]}},e:function(Te){throw Te},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,m=!1,me;return{s:function(){U=U.call(V)},n:function(){var Te=U.next();return ve=Te.done,Te},e:function(Te){m=!0,me=Te},f:function(){try{!ve&&U.return!=null&&U.return()}finally{if(m)throw me}}}}se.exports=Q,se.exports.__esModule=!0,se.exports.default=se.exports}}]);
|