Some checks failed
Node CI / build (14.x, macOS-latest) (push) Has been cancelled
Node CI / build (14.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (14.x, windows-latest) (push) Has been cancelled
Node CI / build (16.x, macOS-latest) (push) Has been cancelled
Node CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (16.x, windows-latest) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
coverage CI / build (push) Has been cancelled
Node pnpm CI / build (16.x, macOS-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, windows-latest) (push) Has been cancelled
82 lines
120 KiB
JavaScript
82 lines
120 KiB
JavaScript
!(function(){var St=(P,B)=>(B=Symbol[P])?B:Symbol.for("Symbol."+P),lo=P=>{throw TypeError(P)};var uo=function(P,B){this[0]=P,this[1]=B};var Zt=P=>{var B=P[St("asyncIterator")],u=!1,o,p={};return B==null?(B=P[St("iterator")](),o=w=>p[w]=L=>B[w](L)):(B=B.call(P),o=w=>p[w]=L=>{if(u){if(u=!1,w==="throw")throw L;return L}return u=!0,{done:!1,value:new uo(new Promise(M=>{var d=B[w](L);d instanceof Object||lo("Object expected"),M(d)}),1)}}),p[St("iterator")]=()=>p,o("next"),"throw"in B?o("throw"):p.throw=w=>{throw w},"return"in B&&o("return"),p};(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[4808],{85040:function(P,B,u){"use strict";u.d(B,{f:function(){return Ua}});var o=u(4942),p=u(55850),w=u(15861),L=u(91),M=u(97685),d=u(1413),D=u(6376),F=u(21770),m=u(67294);function ae(r){var e=typeof window=="undefined",n=(0,m.useState)(function(){return e?!1:window.matchMedia(r).matches}),t=(0,M.Z)(n,2),a=t[0],l=t[1];return(0,m.useLayoutEffect)(function(){if(!e){var i=window.matchMedia(r),s=function(v){return l(v.matches)};return i.addListener(s),function(){return i.removeListener(s)}}},[r]),a}var ue={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)"}},Ie=function(){var e=void 0;if(typeof window=="undefined")return e;var n=Object.keys(ue).find(function(t){var a=ue[t].matchMedia;return!!window.matchMedia(a).matches});return e=n,e},ge=function(){var e=ae(ue.md.matchMedia),n=ae(ue.lg.matchMedia),t=ae(ue.xxl.matchMedia),a=ae(ue.xl.matchMedia),l=ae(ue.sm.matchMedia),i=ae(ue.xs.matchMedia),s=(0,m.useState)(Ie()),f=(0,M.Z)(s,2),v=f[0],h=f[1];return(0,m.useEffect)(function(){if(t){h("xxl");return}if(a){h("xl");return}if(n){h("lg");return}if(e){h("md");return}if(l){h("sm");return}if(i){h("xs");return}h("md")},[e,n,t,a,l,i]),v},fe=u(12044);function j(r,e){var n=typeof r.pageName=="string"?r.title:e;(0,m.useEffect)(function(){(0,fe.j)()&&n&&(document.title=n)},[r.title,n])}var H=u(1977),E=u(73177);function te(r){if((0,H.n)((0,E.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,d.Z)({},r);return Object.keys(e).forEach(function(t){n[t]!==void 0&&(n[e[t]]=n[t],delete n[t])}),n}var ve=u(47930);function q(r,e){return e>>>r|e<<32-r}function ce(r,e,n){return r&e^~r&n}function se(r,e,n){return r&e^r&n^e&n}function de(r){return q(2,r)^q(13,r)^q(22,r)}function I(r){return q(6,r)^q(11,r)^q(25,r)}function y(r){return q(7,r)^q(18,r)^r>>>3}function g(r){return q(17,r)^q(19,r)^r>>>10}function G(r,e){return r[e&15]+=g(r[e+14&15])+r[e+9&15]+y(r[e+1&15])}var N=[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],C,A,T,pe="0123456789abcdef";function Ce(r,e){var n=(r&65535)+(e&65535),t=(r>>16)+(e>>16)+(n>>16);return t<<16|n&65535}function Ee(){C=new Array(8),A=new Array(2),T=new Array(64),A[0]=A[1]=0,C[0]=1779033703,C[1]=3144134277,C[2]=1013904242,C[3]=2773480762,C[4]=1359893119,C[5]=2600822924,C[6]=528734635,C[7]=1541459225}function Se(){var r,e,n,t,a,l,i,s,f,v,h=new Array(16);r=C[0],e=C[1],n=C[2],t=C[3],a=C[4],l=C[5],i=C[6],s=C[7];for(var R=0;R<16;R++)h[R]=T[(R<<2)+3]|T[(R<<2)+2]<<8|T[(R<<2)+1]<<16|T[R<<2]<<24;for(var Z=0;Z<64;Z++)f=s+I(a)+ce(a,l,i)+N[Z],Z<16?f+=h[Z]:f+=G(h,Z),v=de(r)+se(r,e,n),s=i,i=l,l=a,a=Ce(t,f),t=n,n=e,e=r,r=Ce(f,v);C[0]+=r,C[1]+=e,C[2]+=n,C[3]+=t,C[4]+=a,C[5]+=l,C[6]+=i,C[7]+=s}function Be(r,e){var n,t,a=0;t=A[0]>>3&63;var l=e&63;for((A[0]+=e<<3)<e<<3&&A[1]++,A[1]+=e>>29,n=0;n+63<e;n+=64){for(var i=t;i<64;i++)T[i]=r.charCodeAt(a++);Se(),t=0}for(var s=0;s<l;s++)T[s]=r.charCodeAt(a++)}function we(){var r=A[0]>>3&63;if(T[r++]=128,r<=56)for(var e=r;e<56;e++)T[e]=0;else{for(var n=r;n<64;n++)T[n]=0;Se();for(var t=0;t<56;t++)T[t]=0}T[56]=A[1]>>>24&255,T[57]=A[1]>>>16&255,T[58]=A[1]>>>8&255,T[59]=A[1]&255,T[60]=A[0]>>>24&255,T[61]=A[0]>>>16&255,T[62]=A[0]>>>8&255,T[63]=A[0]&255,Se()}function De(){for(var r=0,e=new Array(32),n=0;n<8;n++)e[r++]=C[n]>>>24&255,e[r++]=C[n]>>>16&255,e[r++]=C[n]>>>8&255,e[r++]=C[n]&255;return e}function _e(){for(var r=new String,e=0;e<8;e++)for(var n=28;n>=0;n-=4)r+=pe.charAt(C[e]>>>n&15);return r}function an(r){return Ee(),Be(r,r.length),we(),_e()}var Dn=an;function fn(r){"@babel/helpers - typeof";return fn=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},fn(r)}var Mt=["pro_layout_parentKeys","children","icon","flatMenu","indexRoute","routes"];function It(r,e){return et(r)||qn(r,e)||mn(r,e)||Yn()}function Yn(){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 qn(r,e){var n=r==null?null:typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(n!=null){var t=[],a=!0,l=!1,i,s;try{for(n=n.call(r);!(a=(i=n.next()).done)&&(t.push(i.value),!(e&&t.length===e));a=!0);}catch(f){l=!0,s=f}finally{try{!a&&n.return!=null&&n.return()}finally{if(l)throw s}}return t}}function et(r){if(Array.isArray(r))return r}function nt(r,e){var n=typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(!n){if(Array.isArray(r)||(n=mn(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(v){throw v},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 l=!0,i=!1,s;return{s:function(){n=n.call(r)},n:function(){var v=n.next();return l=v.done,v},e:function(v){i=!0,s=v},f:function(){try{!l&&n.return!=null&&n.return()}finally{if(i)throw s}}}}function tt(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function Zn(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 Hn(r,e,n){return e&&Zn(r.prototype,e),n&&Zn(r,n),Object.defineProperty(r,"prototype",{writable:!1}),r}function Mn(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&&ln(r,e)}function $n(r){var e=zn();return function(){var t=un(r),a;if(e){var l=un(this).constructor;a=Reflect.construct(t,arguments,l)}else a=t.apply(this,arguments);return Wn(this,a)}}function Wn(r,e){if(e&&(fn(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Tt(r)}function Tt(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function In(r){var e=typeof Map=="function"?new Map:void 0;return In=function(t){if(t===null||!on(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 vn(t,arguments,un(this).constructor)}return a.prototype=Object.create(t.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),ln(a,t)},In(r)}function vn(r,e,n){return zn()?vn=Reflect.construct.bind():vn=function(a,l,i){var s=[null];s.push.apply(s,l);var f=Function.bind.apply(a,s),v=new f;return i&&ln(v,i.prototype),v},vn.apply(null,arguments)}function zn(){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 on(r){return Function.toString.call(r).indexOf("[native code]")!==-1}function ln(r,e){return ln=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,a){return t.__proto__=a,t},ln(r,e)}function un(r){return un=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},un(r)}function cn(r){return at(r)||rt(r)||mn(r)||Tn()}function Tn(){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 mn(r,e){if(r){if(typeof r=="string")return qe(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 qe(r,e)}}function rt(r){if(typeof Symbol!="undefined"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}function at(r){if(Array.isArray(r))return qe(r)}function qe(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 ot(r,e){if(r==null)return{};var n=it(r,e),t,a;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(r);for(a=0;a<l.length;a++)t=l[a],!(e.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(r,t)&&(n[t]=r[t])}return n}function it(r,e){if(r==null)return{};var n={},t=Object.keys(r),a,l;for(l=0;l<t.length;l++)a=t[l],!(e.indexOf(a)>=0)&&(n[a]=r[a]);return n}function _n(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 Te(r){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?_n(Object(n),!0).forEach(function(t){b(r,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):_n(Object(n)).forEach(function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(n,t))})}return r}function b(r,e,n){return e in r?Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n,r}var $="routes";function re(r){return r.split("?")[0].split("#")[0]}var V=function(e){if(!e.startsWith("http"))return!1;try{var n=new URL(e);return!!n}catch(t){return!1}},Ze=function(e){var n=e.path;if(!n||n==="/")try{return"/".concat(Dn(JSON.stringify(e)))}catch(t){}return n&&re(n)},ke=function(e,n){var t=e.name,a=e.locale;return"locale"in e&&a===!1||!t?!1:e.locale||"".concat(n,".").concat(t)},Xe=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("/")||V(e)?e:"/".concat(n,"/").concat(e).replace(/\/\//g,"/").replace(/\/\//g,"/")},Fe=function(e,n){var t=e.menu,a=t===void 0?{}:t,l=e.indexRoute,i=e.path,s=i===void 0?"":i,f=e.children||[],v=a.name,h=v===void 0?e.name:v,R=a.icon,Z=R===void 0?e.icon:R,W=a.hideChildren,X=W===void 0?e.hideChildren:W,k=a.flatMenu,z=k===void 0?e.flatMenu:k,ee=l&&Object.keys(l).join(",")!=="redirect"?[Te({path:s,menu:a},l)].concat(f||[]):f,Y=Te({},e);if(h&&(Y.name=h),Z&&(Y.icon=Z),ee&&ee.length){if(X)return delete Y.children,Y;var ne=Ge(Te(Te({},n),{},{data:ee}),e);if(z)return ne;delete Y[$]}return Y},He=function(e){return Array.isArray(e)&&e.length>0};function Ge(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{path:"/"},n=r.data,t=r.formatMessage,a=r.parentName,l=r.locale;return!n||!Array.isArray(n)?[]:n.filter(function(i){return i?He(i.children)||i.path||i.originPath||i.layout?!0:(i.redirect||i.unaccessible,!1):!1}).filter(function(i){var s,f;return!(i==null||(s=i.menu)===null||s===void 0)&&s.name||i!=null&&i.flatMenu||!(i==null||(f=i.menu)===null||f===void 0)&&f.flatMenu?!0:i.menu!==!1}).map(function(i){var s=Te(Te({},i),{},{path:i.path||i.originPath});return!s.children&&s[$]&&(s.children=s[$],delete s[$]),s.unaccessible&&delete s.name,s.path==="*"&&(s.path="."),s.path==="/*"&&(s.path="."),!s.path&&s.originPath&&(s.path=s.originPath),s}).map(function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{path:"/"},s=i.children||i[$]||[],f=Xe(i.path,e?e.path:"/"),v=i.name,h=ke(i,a||"menu"),R=h!==!1&&l!==!1&&t&&h?t({id:h,defaultMessage:v}):v,Z=e.pro_layout_parentKeys,W=Z===void 0?[]:Z,X=e.children,k=e.icon,z=e.flatMenu,ee=e.indexRoute,Y=e.routes,ne=ot(e,Mt),K=new Set([].concat(cn(W),cn(i.parentKeys||[])));e.key&&K.add(e.key);var J=Te(Te(Te({},ne),{},{menu:void 0},i),{},{path:f,locale:h,key:i.key||Ze(Te(Te({},i),{},{path:f})),pro_layout_parentKeys:Array.from(K).filter(function(_){return _&&_!=="/"})});if(R?J.name=R:delete J.name,J.menu===void 0&&delete J.menu,He(s)){var S=Ge(Te(Te({},r),{},{data:s,parentName:h||""}),J);He(S)&&(J.children=S)}return Fe(J,r)}).flat(1)}var Le=function r(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.filter(function(n){return n&&(n.name||He(n.children))&&!n.hideInMenu&&!n.redirect}).map(function(n){var t=Te({},n),a=t.children||n[$]||[];if(delete t[$],He(a)&&!t.hideChildrenInMenu&&a.some(function(i){return i&&!!i.name})){var l=r(a);if(l.length)return Te(Te({},t),{},{children:l})}return Te({},n)}).filter(function(n){return n})},hn=function(r){Mn(n,r);var e=$n(n);function n(){return tt(this,n),e.apply(this,arguments)}return Hn(n,[{key:"get",value:function(a){var l;try{var i=nt(this.entries()),s;try{for(i.s();!(s=i.n()).done;){var f=It(s.value,2),v=f[0],h=f[1],R=re(v);if(!V(v)&&(0,ve.Bo)(R,[]).test(a)){l=h;break}}}catch(Z){i.e(Z)}finally{i.f()}}catch(Z){l=void 0}return l}}]),n}(In(Map)),sn=function(e){var n=new hn,t=function a(l,i){l.forEach(function(s){var f=s.children||s[$]||[];He(f)&&a(f,s);var v=Xe(s.path,i?i.path:"/");n.set(re(v),s)})};return t(e),n},Rn=function r(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(function(n){var t=n.children||n[$];if(He(t)){var a=r(t);if(a.length)return Te({},n)}var l=Te({},n);return delete l[$],delete l.children,l}).filter(function(n){return n})},lt=function(e,n,t,a){var l=Ge({data:e,formatMessage:t,locale:n}),i=a?Rn(l):Le(l),s=sn(l);return{breadcrumb:s,menuData:i}},jn=lt;function Fn(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 dn(r){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Fn(Object(n),!0).forEach(function(t){Un(r,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):Fn(Object(n)).forEach(function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(n,t))})}return r}function Un(r,e,n){return e in r?Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n,r}var ut=function r(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n={};return e.forEach(function(t){var a=dn({},t);if(!(!a||!a.key)){!a.children&&a[$]&&(a.children=a[$],delete a[$]);var l=a.children||[];n[re(a.path||a.key||"/")]=dn({},a),n[a.key||a.path||"/"]=dn({},a),l&&(n=dn(dn({},n),r(l)))}}),n},ct=ut,ur=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&&!V(a)){var l=re(a);try{if(t&&(0,ve.Bo)("".concat(l)).test(n)||(0,ve.Bo)("".concat(l),[]).test(n)||(0,ve.Bo)("".concat(l,"/(.*)")).test(n))return!0}catch(i){}}return!1}).sort(function(a,l){return a===n?10:l===n?-10:a.substr(1).split("/").length-l.substr(1).split("/").length})},cr=function(e,n,t,a){var l=ct(n),i=Object.keys(l),s=ur(i,e||"/",a);return!s||s.length<1?[]:(t||(s=[s[s.length-1]]),s.map(function(f){var v=l[f]||{pro_layout_parentKeys:"",key:""},h=new Map,R=(v.pro_layout_parentKeys||[]).map(function(Z){return h.has(Z)?null:(h.set(Z,!0),l[Z])}).filter(function(Z){return Z});return v.key&&R.push(v),R}).flat(1))},sr=cr,Je=u(21532),gn=u(26058),dr=u(93967),me=u.n(dr),Rt=u(98423),fr=u(80334),vr=u(5068),mr=u(25269),hr=u(78164),c=u(85893),gr=function(e){var n=(0,m.useContext)(D.L_),t=n.hashId,a=e.style,l=e.prefixCls,i=e.children,s=e.hasPageContainer,f=s===void 0?0:s,v=me()("".concat(l,"-content"),t,(0,o.Z)((0,o.Z)({},"".concat(l,"-has-header"),e.hasHeader),"".concat(l,"-content-has-page-container"),f>0)),h=e.ErrorBoundary||hr.S;return e.ErrorBoundary===!1?(0,c.jsx)(gn.Z.Content,{className:v,style:a,children:i}):(0,c.jsx)(h,{children:(0,c.jsx)(gn.Z.Content,{className:v,style:a,children:i})})},pr=function(){return(0,c.jsxs)("svg",{width:"1em",height:"1em",viewBox:"0 0 200 200",children:[(0,c.jsxs)("defs",{children:[(0,c.jsxs)("linearGradient",{x1:"62.1023273%",y1:"0%",x2:"108.19718%",y2:"37.8635764%",id:"linearGradient-1",children:[(0,c.jsx)("stop",{stopColor:"#4285EB",offset:"0%"}),(0,c.jsx)("stop",{stopColor:"#2EC7FF",offset:"100%"})]}),(0,c.jsxs)("linearGradient",{x1:"69.644116%",y1:"0%",x2:"54.0428975%",y2:"108.456714%",id:"linearGradient-2",children:[(0,c.jsx)("stop",{stopColor:"#29CDFF",offset:"0%"}),(0,c.jsx)("stop",{stopColor:"#148EFF",offset:"37.8600687%"}),(0,c.jsx)("stop",{stopColor:"#0A60FF",offset:"100%"})]}),(0,c.jsxs)("linearGradient",{x1:"69.6908165%",y1:"-12.9743587%",x2:"16.7228981%",y2:"117.391248%",id:"linearGradient-3",children:[(0,c.jsx)("stop",{stopColor:"#FA816E",offset:"0%"}),(0,c.jsx)("stop",{stopColor:"#F74A5C",offset:"41.472606%"}),(0,c.jsx)("stop",{stopColor:"#F51D2C",offset:"100%"})]}),(0,c.jsxs)("linearGradient",{x1:"68.1279872%",y1:"-35.6905737%",x2:"30.4400914%",y2:"114.942679%",id:"linearGradient-4",children:[(0,c.jsx)("stop",{stopColor:"#FA8E7D",offset:"0%"}),(0,c.jsx)("stop",{stopColor:"#F74A5C",offset:"51.2635191%"}),(0,c.jsx)("stop",{stopColor:"#F51D2C",offset:"100%"})]})]}),(0,c.jsx)("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd",children:(0,c.jsx)("g",{transform:"translate(-20.000000, -20.000000)",children:(0,c.jsx)("g",{transform:"translate(20.000000, 20.000000)",children:(0,c.jsxs)("g",{children:[(0,c.jsxs)("g",{fillRule:"nonzero",children:[(0,c.jsxs)("g",{children:[(0,c.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,c.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,c.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,c.jsx)("ellipse",{fill:"url(#linearGradient-4)",cx:"100.519339",cy:"100.436681",rx:"23.6001926",ry:"23.580786"})]})})})})]})},yr=u(33197),Pn=u(62812),xr=u(60532),Cr=u(55241),br=function(){return(0,c.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:(0,c.jsx)("path",{d:"M0 0h3v3H0V0zm4.5 0h3v3h-3V0zM9 0h3v3H9V0zM0 4.5h3v3H0v-3zm4.503 0h3v3h-3v-3zM9 4.5h3v3H9v-3zM0 9h3v3H0V9zm4.503 0h3v3h-3V9zM9 9h3v3H9V9z"})})},Sr=function r(e){var n=e.appList,t=e.baseClassName,a=e.hashId,l=e.itemClick;return(0,c.jsx)("div",{className:"".concat(t,"-content ").concat(a).trim(),children:(0,c.jsx)("ul",{className:"".concat(t,"-content-list ").concat(a).trim(),children:n==null?void 0:n.map(function(i,s){var f;return i!=null&&(f=i.children)!==null&&f!==void 0&&f.length?(0,c.jsxs)("div",{className:"".concat(t,"-content-list-item-group ").concat(a).trim(),children:[(0,c.jsx)("div",{className:"".concat(t,"-content-list-item-group-title ").concat(a).trim(),children:i.title}),(0,c.jsx)(r,{hashId:a,itemClick:l,appList:i==null?void 0:i.children,baseClassName:t})]},s):(0,c.jsx)("li",{className:"".concat(t,"-content-list-item ").concat(a).trim(),onClick:function(h){h.stopPropagation(),l==null||l(i)},children:(0,c.jsxs)("a",{href:l?void 0:i.url,target:i.target,rel:"noreferrer",children:[dt(i.icon),(0,c.jsxs)("div",{children:[(0,c.jsx)("div",{children:i.title}),i.desc?(0,c.jsx)("span",{children:i.desc}):null]})]})},s)})})})},st=function(e){if(!e||!e.startsWith("http"))return!1;try{var n=new URL(e);return!!n}catch(t){return!1}},Zr=function(e,n){if(e&&typeof e=="string"&&st(e))return(0,c.jsx)("img",{src:e,alt:"logo"});if(typeof e=="function")return e();if(e&&typeof e=="string")return(0,c.jsx)("div",{id:"avatarLogo",children:e});if(!e&&n&&typeof n=="string"){var t=n.substring(0,1);return(0,c.jsx)("div",{id:"avatarLogo",children:t})}return e},Mr=function r(e){var n=e.appList,t=e.baseClassName,a=e.hashId,l=e.itemClick;return(0,c.jsx)("div",{className:"".concat(t,"-content ").concat(a).trim(),children:(0,c.jsx)("ul",{className:"".concat(t,"-content-list ").concat(a).trim(),children:n==null?void 0:n.map(function(i,s){var f;return i!=null&&(f=i.children)!==null&&f!==void 0&&f.length?(0,c.jsxs)("div",{className:"".concat(t,"-content-list-item-group ").concat(a).trim(),children:[(0,c.jsx)("div",{className:"".concat(t,"-content-list-item-group-title ").concat(a).trim(),children:i.title}),(0,c.jsx)(r,{hashId:a,itemClick:l,appList:i==null?void 0:i.children,baseClassName:t})]},s):(0,c.jsx)("li",{className:"".concat(t,"-content-list-item ").concat(a).trim(),onClick:function(h){h.stopPropagation(),l==null||l(i)},children:(0,c.jsxs)("a",{href:l?"javascript:;":i.url,target:i.target,rel:"noreferrer",children:[Zr(i.icon,i.title),(0,c.jsx)("div",{children:(0,c.jsx)("div",{children:i.title})})]})},s)})})})},$e=u(64847),Ir=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":$e.Wf===null||$e.Wf===void 0?void 0:(0,$e.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"}}}}}}},Tr=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"}}}}}}},Rr=function(e){var n,t,a,l,i;return(0,o.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:(l=e.layout)===null||l===void 0?void 0:l.colorTextAppListIconHover,backgroundColor:(i=e.layout)===null||i===void 0?void 0:i.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,o.Z)({},"".concat(e.antCls,"-popover-arrow"),{display:"none"}),"&-simple":Tr(e),"&-default":Ir(e)})};function jr(r){return(0,$e.Xj)("AppsLogoComponents",function(e){var n=(0,d.Z)((0,d.Z)({},e),{},{componentCls:".".concat(r)});return[Rr(n)]})}var dt=function(e){return typeof e=="string"?(0,c.jsx)("img",{width:"auto",height:22,src:e,alt:"logo"}):typeof e=="function"?e():e},ft=function(e){var n,t=e.appList,a=e.appListRender,l=e.prefixCls,i=l===void 0?"ant-pro":l,s=e.onItemClick,f=m.useRef(null),v=m.useRef(null),h="".concat(i,"-layout-apps"),R=jr(h),Z=R.wrapSSR,W=R.hashId,X=(0,m.useState)(!1),k=(0,M.Z)(X,2),z=k[0],ee=k[1],Y=function(_){s==null||s(_,v)},ne=(0,m.useMemo)(function(){var S=t==null?void 0:t.some(function(_){return!(_!=null&&_.desc)});return S?(0,c.jsx)(Mr,{hashId:W,appList:t,itemClick:s?Y:void 0,baseClassName:"".concat(h,"-simple")}):(0,c.jsx)(Sr,{hashId:W,appList:t,itemClick:s?Y:void 0,baseClassName:"".concat(h,"-default")})},[t,h,W]);if(!(e!=null&&(n=e.appList)!==null&&n!==void 0&&n.length))return null;var K=a?a(e==null?void 0:e.appList,ne):ne,J=(0,E.X)(void 0,function(S){return ee(S)});return Z((0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{ref:f,onClick:function(_){_.stopPropagation(),_.preventDefault()}}),(0,c.jsx)(Cr.Z,(0,d.Z)((0,d.Z)({placement:"bottomRight",trigger:["click"],zIndex:9999,arrow:!1},J),{},{overlayClassName:"".concat(h,"-popover ").concat(W).trim(),content:K,getPopupContainer:function(){return f.current||document.body},children:(0,c.jsx)("span",{ref:v,onClick:function(_){_.stopPropagation()},className:me()("".concat(h,"-icon"),W,(0,o.Z)({},"".concat(h,"-icon-active"),z)),children:(0,c.jsx)(br,{})})}))]}))},jt=u(68997),Pr=u(78957),Pt=u(50136);function wr(){return(0,c.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:(0,c.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 Er=function(e){var n,t,a;return(0,o.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 Br(r){return(0,$e.Xj)("SiderMenuCollapsedIcon",function(e){var n=(0,d.Z)((0,d.Z)({},e),{},{componentCls:".".concat(r)});return[Er(n)]})}var Lr=["isMobile","collapsed"],Ar=function(e){var n=e.isMobile,t=e.collapsed,a=(0,L.Z)(e,Lr),l=Br(e.className),i=l.wrapSSR,s=l.hashId;return n&&t?null:i((0,c.jsx)("div",(0,d.Z)((0,d.Z)({},a),{},{className:me()(e.className,s,(0,o.Z)((0,o.Z)({},"".concat(e.className,"-collapsed"),t),"".concat(e.className,"-is-mobile"),n)),children:(0,c.jsx)(wr,{})})))},Kn=u(74902),Nr=u(43144),Or=u(15671),wt=u(91321);function Dr(r){return/\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(r)}var Hr=u(83062),$r=u(48054),Et=u(14192),Wr=function(e,n){var t,a,l=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,d.Z)((0,d.Z)((0,o.Z)({},"".concat(e.componentCls),(0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)({background:"transparent",color:l==null?void 0:l.colorTextMenu,border:"none"},"".concat(e.componentCls,"-menu-item"),{transition:"none !important"}),"".concat(e.componentCls,"-submenu-has-icon"),(0,o.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,o.Z)((0,o.Z)((0,o.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:l==null?void 0:l.colorBgMenuItemSelected,borderRadius:e.borderRadiusLG}),"".concat(e.componentCls,"-group"),(0,o.Z)({},"".concat(e.antCls,"-menu-item-group-title"),{paddingInline:0}))),"&-item-title",(0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.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,o.Z)((0,o.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,o.Z)({lineHeight:"16px",gap:0},"&".concat(e.componentCls,"-item-title-collapsed"),(0,o.Z)((0,o.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,o.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,o.Z)({},"".concat(e.antCls,"-menu-submenu").concat(e.antCls,"-menu-submenu-popup"),(0,o.Z)({},"".concat(e.componentCls,"-item-title"),{alignItems:"flex-start"}))),{},(0,o.Z)({},"".concat(e.antCls,"-menu-submenu-popup"),{backgroundColor:"rgba(255, 255, 255, 0.42)","-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)"}))};function zr(r,e){return(0,$e.Xj)("ProLayoutBaseMenu"+e,function(n){var t=(0,d.Z)((0,d.Z)({},n),{},{componentCls:".".concat(r)});return[Wr(t,e||"inline")]})}var Bt=function(e){var n=(0,m.useState)(e.collapsed),t=(0,M.Z)(n,2),a=t[0],l=t[1],i=(0,m.useState)(!1),s=(0,M.Z)(i,2),f=s[0],v=s[1];return(0,m.useEffect)(function(){v(!1),setTimeout(function(){l(e.collapsed)},400)},[e.collapsed]),e.disable?e.children:(0,c.jsx)(Hr.Z,{title:e.title,open:a&&e.collapsed?f:!1,placement:"right",onOpenChange:v,children:e.children})},Lt=(0,wt.Z)({scriptUrl:Et.h.iconfontUrl}),At=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(st(e)||Dr(e))return(0,c.jsx)("img",{width:16,src:e,alt:"icon",className:t},e);if(e.startsWith(n))return(0,c.jsx)(Lt,{type:e})}return e},Nt=function(e){if(e&&typeof e=="string"){var n=e.substring(0,1).toUpperCase();return n}return null},_r=(0,Nr.Z)(function r(e){var n=this;(0,Or.Z)(this,r),(0,o.Z)(this,"props",void 0),(0,o.Z)(this,"getNavMenuItems",function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],a=arguments.length>1?arguments[1]:void 0,l=arguments.length>2?arguments[2]:void 0;return t.map(function(i){return n.getSubMenuOrItem(i,a,l)}).filter(function(i){return i}).flat(1)}),(0,o.Z)(this,"getSubMenuOrItem",function(t,a,l){var i=n.props,s=i.subMenuItemRender,f=i.baseClassName,v=i.prefixCls,h=i.collapsed,R=i.menu,Z=i.iconPrefixes,W=i.layout,X=(R==null?void 0:R.type)==="group"&&W!=="top",k=n.props.token,z=n.getIntlName(t),ee=(t==null?void 0:t.children)||(t==null?void 0:t.routes),Y=X&&a===0?"group":void 0;if(Array.isArray(ee)&&ee.length>0){var ne,K,J,S,_,ie=a===0||X&&a===1,Q=At(t.icon,Z,"".concat(f,"-icon ").concat((ne=n.props)===null||ne===void 0?void 0:ne.hashId)),U=h&&ie?Nt(z):null,he=(0,c.jsxs)("div",{className:me()("".concat(f,"-item-title"),(K=n.props)===null||K===void 0?void 0:K.hashId,(0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)({},"".concat(f,"-item-title-collapsed"),h),"".concat(f,"-item-title-collapsed-level-").concat(l),h),"".concat(f,"-group-item-title"),Y==="group"),"".concat(f,"-item-collapsed-show-title"),(R==null?void 0:R.collapsedShowTitle)&&h)),children:[Y==="group"&&h?null:ie&&Q?(0,c.jsx)("span",{className:"".concat(f,"-item-icon ").concat((J=n.props)===null||J===void 0?void 0:J.hashId).trim(),children:Q}):U,(0,c.jsx)("span",{className:me()("".concat(f,"-item-text"),(S=n.props)===null||S===void 0?void 0:S.hashId,(0,o.Z)({},"".concat(f,"-item-text-has-icon"),Y!=="group"&&ie&&(Q||U))),children:z})]}),be=s?s((0,d.Z)((0,d.Z)({},t),{},{isUrl:!1}),he,n.props):he;if(X&&a===0&&n.props.collapsed&&!R.collapsedShowGroupTitle)return n.getNavMenuItems(ee,a+1,a);var x=n.getNavMenuItems(ee,a+1,X&&a===0&&n.props.collapsed?a:a+1);return[{type:Y,key:t.key||t.path,label:be,onClick:X?void 0:t.onTitleClick,children:x,className:me()((0,o.Z)((0,o.Z)((0,o.Z)({},"".concat(f,"-group"),Y==="group"),"".concat(f,"-submenu"),Y!=="group"),"".concat(f,"-submenu-has-icon"),Y!=="group"&&ie&&Q))},X&&a===0?{type:"divider",prefixCls:v,className:"".concat(f,"-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:k==null||(_=k.layout)===null||_===void 0||(_=_.sider)===null||_===void 0?void 0:_.colorMenuItemDivider}}:void 0].filter(Boolean)}return{className:"".concat(f,"-menu-item"),disabled:t.disabled,key:t.key||t.path,onClick:t.onTitleClick,label:n.getMenuItemPath(t,a,l)}}),(0,o.Z)(this,"getIntlName",function(t){var a=t.name,l=t.locale,i=n.props,s=i.menu,f=i.formatMessage,v=a;return l&&(s==null?void 0:s.locale)!==!1&&(v=f==null?void 0:f({id:l,defaultMessage:a})),n.props.menuTextRender?n.props.menuTextRender(t,v,n.props):v}),(0,o.Z)(this,"getMenuItemPath",function(t,a,l){var i,s,f,v,h=n.conversionPath(t.path||"/"),R=n.props,Z=R.location,W=Z===void 0?{pathname:"/"}:Z,X=R.isMobile,k=R.onCollapse,z=R.menuItemRender,ee=R.iconPrefixes,Y=n.getIntlName(t),ne=n.props,K=ne.baseClassName,J=ne.menu,S=ne.collapsed,_=(J==null?void 0:J.type)==="group",ie=a===0||_&&a===1,Q=ie?At(t.icon,ee,"".concat(K,"-icon ").concat((i=n.props)===null||i===void 0?void 0:i.hashId)):null,U=S&&ie?Nt(Y):null,he=(0,c.jsxs)("div",{className:me()("".concat(K,"-item-title"),(s=n.props)===null||s===void 0?void 0:s.hashId,(0,o.Z)((0,o.Z)((0,o.Z)({},"".concat(K,"-item-title-collapsed"),S),"".concat(K,"-item-title-collapsed-level-").concat(l),S),"".concat(K,"-item-collapsed-show-title"),(J==null?void 0:J.collapsedShowTitle)&&S)),children:[(0,c.jsx)("span",{className:"".concat(K,"-item-icon ").concat((f=n.props)===null||f===void 0?void 0:f.hashId).trim(),style:{display:U===null&&!Q?"none":""},children:Q||(0,c.jsx)("span",{className:"anticon",children:U})}),(0,c.jsx)("span",{className:me()("".concat(K,"-item-text"),(v=n.props)===null||v===void 0?void 0:v.hashId,(0,o.Z)({},"".concat(K,"-item-text-has-icon"),ie&&(Q||U))),children:Y})]},h),be=st(h);if(be){var x,Me,O;he=(0,c.jsxs)("span",{onClick:function(){var Re,xe;(Re=window)===null||Re===void 0||(xe=Re.open)===null||xe===void 0||xe.call(Re,h,"_blank")},className:me()("".concat(K,"-item-title"),(x=n.props)===null||x===void 0?void 0:x.hashId,(0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)({},"".concat(K,"-item-title-collapsed"),S),"".concat(K,"-item-title-collapsed-level-").concat(l),S),"".concat(K,"-item-link"),!0),"".concat(K,"-item-collapsed-show-title"),(J==null?void 0:J.collapsedShowTitle)&&S)),children:[(0,c.jsx)("span",{className:"".concat(K,"-item-icon ").concat((Me=n.props)===null||Me===void 0?void 0:Me.hashId).trim(),style:{display:U===null&&!Q?"none":""},children:Q||(0,c.jsx)("span",{className:"anticon",children:U})}),(0,c.jsx)("span",{className:me()("".concat(K,"-item-text"),(O=n.props)===null||O===void 0?void 0:O.hashId,(0,o.Z)({},"".concat(K,"-item-text-has-icon"),ie&&(Q||U))),children:Y})]},h)}if(z){var le=(0,d.Z)((0,d.Z)({},t),{},{isUrl:be,itemPath:h,isMobile:X,replace:h===W.pathname,onClick:function(){return k&&k(!0)},children:void 0});return a===0?(0,c.jsx)(Bt,{collapsed:S,title:Y,disable:t.disabledTooltip,children:z(le,he,n.props)}):z(le,he,n.props)}return a===0?(0,c.jsx)(Bt,{collapsed:S,title:Y,disable:t.disabledTooltip,children:he}):he}),(0,o.Z)(this,"conversionPath",function(t){return t&&t.indexOf("http")===0?t:"/".concat(t||"").replace(/\/+/g,"/")}),this.props=e}),Fr=function(e,n){var t=n.layout,a=n.collapsed,l={};return e&&!a&&["side","mix"].includes(t||"mix")&&(l={openKeys:e}),l},Ot=function(e){var n=e.mode,t=e.className,a=e.handleOpenChange,l=e.style,i=e.menuData,s=e.prefixCls,f=e.menu,v=e.matchMenuKeys,h=e.iconfontUrl,R=e.selectedKeys,Z=e.onSelect,W=e.menuRenderType,X=e.openKeys,k=(0,m.useContext)(D.L_),z=k.dark,ee=k.token,Y="".concat(s,"-base-menu-").concat(n),ne=(0,m.useRef)([]),K=(0,F.Z)(f==null?void 0:f.defaultOpenAll),J=(0,M.Z)(K,2),S=J[0],_=J[1],ie=(0,F.Z)(function(){return f!=null&&f.defaultOpenAll?(0,Pn.O7)(i)||[]:X===!1?!1:[]},{value:X===!1?void 0:X,onChange:a}),Q=(0,M.Z)(ie,2),U=Q[0],he=Q[1],be=(0,F.Z)([],{value:R,onChange:Z?function(Pe){Z&&Pe&&Z(Pe)}:void 0}),x=(0,M.Z)(be,2),Me=x[0],O=x[1];(0,m.useEffect)(function(){f!=null&&f.defaultOpenAll||X===!1||v&&(he(v),O(v))},[v.join("-")]),(0,m.useEffect)(function(){h&&(Lt=(0,wt.Z)({scriptUrl:h}))},[h]),(0,m.useEffect)(function(){if(v.join("-")!==(Me||[]).join("-")&&O(v),!S&&X!==!1&&v.join("-")!==(U||[]).join("-")){var Pe=v;(f==null?void 0:f.autoClose)===!1&&(Pe=Array.from(new Set([].concat((0,Kn.Z)(v),(0,Kn.Z)(U||[]))))),he(Pe)}else f!=null&&f.ignoreFlatMenu&&S?he((0,Pn.O7)(i)):_(!1)},[v.join("-")]);var le=(0,m.useMemo)(function(){return Fr(U,e)},[U&&U.join(","),e.layout,e.collapsed]),ye=zr(Y,n),Re=ye.wrapSSR,xe=ye.hashId,Ae=(0,m.useMemo)(function(){return new _r((0,d.Z)((0,d.Z)({},e),{},{token:ee,menuRenderType:W,baseClassName:Y,hashId:xe}))},[e,ee,W,Y,xe]);if(f!=null&&f.loading)return(0,c.jsx)("div",{style:n!=null&&n.includes("inline")?{padding:24}:{marginBlockStart:16},children:(0,c.jsx)($r.Z,{active:!0,title:!1,paragraph:{rows:n!=null&&n.includes("inline")?6:1}})});e.openKeys===!1&&!e.handleOpenChange&&(ne.current=v);var je=e.postMenuData?e.postMenuData(i):i;return je&&(je==null?void 0:je.length)<1?null:Re((0,m.createElement)(Pt.Z,(0,d.Z)((0,d.Z)({},le),{},{_internalDisableMenuItemTitleTooltip:!0,key:"Menu",mode:n,inlineIndent:16,defaultOpenKeys:ne.current,theme:z?"dark":"light",selectedKeys:Me,style:(0,d.Z)({backgroundColor:"transparent",border:"none"},l),className:me()(t,xe,Y,(0,o.Z)((0,o.Z)({},"".concat(Y,"-horizontal"),n==="horizontal"),"".concat(Y,"-collapsed"),e.collapsed)),items:Ae.getNavMenuItems(je,0,0),onOpenChange:function(Ue){e.collapsed||he(Ue)}},e.menuProps)))};function Ur(r,e){var n=e.stylish,t=e.proLayoutCollapsedWidth;return(0,$e.Xj)("ProLayoutSiderMenuStylish",function(a){var l=(0,d.Z)((0,d.Z)({},a),{},{componentCls:".".concat(r),proLayoutCollapsedWidth:t});return n?[(0,o.Z)({},"div".concat(a.proComponentsCls,"-layout"),(0,o.Z)({},"".concat(l.componentCls),n==null?void 0:n(l)))]:[]})}var Kr=["title","render"],kr=m.memo(function(r){return(0,c.jsx)(c.Fragment,{children:r.children})}),Gr=gn.Z.Sider,Dt=gn.Z._InternalSiderContext,Vr=Dt===void 0?{Provider:kr}:Dt,vt=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"menuHeaderRender",t=e.logo,a=e.title,l=e.layout,i=e[n];if(i===!1)return null;var s=dt(t),f=(0,c.jsx)("h1",{children:a!=null?a:"Ant Design Pro"});return i?i(s,e.collapsed?null:f,e):e.isMobile?null:l==="mix"&&n==="menuHeaderRender"?!1:e.collapsed?(0,c.jsx)("a",{children:s},"title"):(0,c.jsxs)("a",{children:[s,f]},"title")},Ht=function(e){var n,t=e.collapsed,a=e.originCollapsed,l=e.fixSiderbar,i=e.menuFooterRender,s=e.onCollapse,f=e.theme,v=e.siderWidth,h=e.isMobile,R=e.onMenuHeaderClick,Z=e.breakpoint,W=Z===void 0?"lg":Z,X=e.style,k=e.layout,z=e.menuExtraRender,ee=z===void 0?!1:z,Y=e.links,ne=e.menuContentRender,K=e.collapsedButtonRender,J=e.prefixCls,S=e.avatarProps,_=e.rightContentRender,ie=e.actionsRender,Q=e.onOpenChange,U=e.stylish,he=e.logoStyle,be=(0,m.useContext)(D.L_),x=be.hashId,Me=(0,m.useMemo)(function(){return!(h||k==="mix")},[h,k]),O="".concat(J,"-sider"),le=64,ye=Ur("".concat(O,".").concat(O,"-stylish"),{stylish:U,proLayoutCollapsedWidth:le}),Re=me()("".concat(O),x,(0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)({},"".concat(O,"-fixed"),l),"".concat(O,"-fixed-mix"),k==="mix"&&!h&&l),"".concat(O,"-collapsed"),e.collapsed),"".concat(O,"-layout-").concat(k),k&&!h),"".concat(O,"-light"),f!=="dark"),"".concat(O,"-mix"),k==="mix"&&!h),"".concat(O,"-stylish"),!!U)),xe=vt(e),Ae=ee&&ee(e),je=(0,m.useMemo)(function(){return ne!==!1&&(0,m.createElement)(Ot,(0,d.Z)((0,d.Z)({},e),{},{key:"base-menu",mode:t&&!h?"vertical":"inline",handleOpenChange:Q,style:{width:"100%"},className:"".concat(O,"-menu ").concat(x).trim()}))},[O,x,ne,Q,e]),Pe=(Y||[]).map(function(Ne,Ve){return{className:"".concat(O,"-link"),label:Ne,key:Ve}}),Ue=(0,m.useMemo)(function(){return ne?ne(e,je):je},[ne,je,e]),We=(0,m.useMemo)(function(){if(!S)return null;var Ne=S.title,Ve=S.render,Ke=(0,L.Z)(S,Kr),Vn=(0,c.jsxs)("div",{className:"".concat(O,"-actions-avatar"),children:[Ke!=null&&Ke.src||Ke!=null&&Ke.srcSet||Ke.icon||Ke.children?(0,c.jsx)(jt.Z,(0,d.Z)({size:28},Ke)):null,S.title&&!t&&(0,c.jsx)("span",{children:Ne})]});return Ve?Ve(S,Vn,e):Vn},[S,O,t]),ze=(0,m.useMemo)(function(){return ie?(0,c.jsx)(Pr.Z,{align:"center",size:4,direction:t?"vertical":"horizontal",className:me()(["".concat(O,"-actions-list"),t&&"".concat(O,"-actions-list-collapsed"),x]),children:[ie==null?void 0:ie(e)].flat(1).map(function(Ne,Ve){return(0,c.jsx)("div",{className:"".concat(O,"-actions-list-item ").concat(x).trim(),children:Ne},Ve)})}):null},[ie,O,t]),Qe=(0,m.useMemo)(function(){return(0,c.jsx)(ft,{onItemClick:e.itemClick,appListRender:e.appListRender,appList:e.appList,prefixCls:e.prefixCls})},[e.appList,e.appListRender,e.prefixCls]),en=(0,m.useMemo)(function(){if(K===!1)return null;var Ne=(0,c.jsx)(Ar,{isMobile:h,collapsed:a,className:"".concat(O,"-collapsed-button"),onClick:function(){s==null||s(!a)}});return K?K(t,Ne):Ne},[K,h,a,O,t,s]),nn=(0,m.useMemo)(function(){return!We&&!ze?null:(0,c.jsxs)("div",{className:me()("".concat(O,"-actions"),x,t&&"".concat(O,"-actions-collapsed")),children:[We,ze]})},[ze,We,O,t,x]),tn=(0,m.useMemo)(function(){var Ne;return e!=null&&(Ne=e.menu)!==null&&Ne!==void 0&&Ne.hideMenuWhenCollapsed&&t?"".concat(O,"-hide-menu-collapsed"):null},[O,t,e==null||(n=e.menu)===null||n===void 0?void 0:n.hideMenuWhenCollapsed]),wn=i&&(i==null?void 0:i(e)),Gn=(0,c.jsxs)(c.Fragment,{children:[xe&&(0,c.jsxs)("div",{className:me()([me()("".concat(O,"-logo"),x,(0,o.Z)({},"".concat(O,"-logo-collapsed"),t))]),onClick:Me?R:void 0,id:"logo",style:he,children:[xe,Qe]}),Ae&&(0,c.jsx)("div",{className:me()(["".concat(O,"-extra"),!xe&&"".concat(O,"-extra-no-logo"),x]),children:Ae}),(0,c.jsx)("div",{style:{flex:1,overflowY:"auto",overflowX:"hidden"},children:Ue}),(0,c.jsxs)(Vr.Provider,{value:{},children:[Y?(0,c.jsx)("div",{className:"".concat(O,"-links ").concat(x).trim(),children:(0,c.jsx)(Pt.Z,{inlineIndent:16,className:"".concat(O,"-link-menu ").concat(x).trim(),selectedKeys:[],openKeys:[],theme:f,mode:"inline",items:Pe})}):null,Me&&(0,c.jsxs)(c.Fragment,{children:[nn,!ze&&_?(0,c.jsx)("div",{className:me()("".concat(O,"-actions"),x,(0,o.Z)({},"".concat(O,"-actions-collapsed"),t)),children:_==null?void 0:_(e)}):null]}),wn&&(0,c.jsx)("div",{className:me()(["".concat(O,"-footer"),x,(0,o.Z)({},"".concat(O,"-footer-collapsed"),t)]),children:wn})]})]});return ye.wrapSSR((0,c.jsxs)(c.Fragment,{children:[l&&!h&&!tn&&(0,c.jsx)("div",{style:(0,d.Z)({width:t?le:v,overflow:"hidden",flex:"0 0 ".concat(t?le:v,"px"),maxWidth:t?le:v,minWidth:t?le:v,transition:"all 0.2s ease 0s"},X)}),(0,c.jsxs)(Gr,{collapsible:!0,trigger:null,collapsed:t,breakpoint:W===!1?void 0:W,onCollapse:function(Ve){h||s==null||s(Ve)},collapsedWidth:le,style:X,theme:f,width:v,className:me()(Re,x,tn),children:[tn?(0,c.jsx)("div",{className:"".concat(O,"-hide-when-collapsed ").concat(x).trim(),style:{height:"100%",width:"100%",opacity:tn?0:1},children:Gn}):Gn,en]})]}))},Xr=u(10178),Jr=u(9220),Qr=function(e){var n,t,a,l,i;return(0,o.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:(l=e.layout)===null||l===void 0||(l=l.header)===null||l===void 0?void 0:l.colorTextRightActionsItem,paddingInline:8,paddingBlock:8,cursor:"pointer",display:"flex",alignItems:"center",lineHeight:"44px",borderRadius:e.borderRadius,"&:hover":{backgroundColor:(i=e.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorBgRightActionsItemHover}}}}})};function Yr(r){return(0,$e.Xj)("ProLayoutRightContent",function(e){var n=(0,d.Z)((0,d.Z)({},e),{},{componentCls:".".concat(r)});return[Qr(n)]})}var qr=["rightContentRender","avatarProps","actionsRender","headerContentRender"],ea=["title","render"],$t=function(e){var n=e.rightContentRender,t=e.avatarProps,a=e.actionsRender,l=e.headerContentRender,i=(0,L.Z)(e,qr),s=(0,m.useContext)(Je.ZP.ConfigContext),f=s.getPrefixCls,v="".concat(f(),"-pro-global-header"),h=Yr(v),R=h.wrapSSR,Z=h.hashId,W=(0,m.useState)("auto"),X=(0,M.Z)(W,2),k=X[0],z=X[1],ee=(0,m.useMemo)(function(){if(!t)return null;var J=t.title,S=t.render,_=(0,L.Z)(t,ea),ie=[_!=null&&_.src||_!=null&&_.srcSet||_.icon||_.children?(0,m.createElement)(jt.Z,(0,d.Z)((0,d.Z)({},_),{},{size:28,key:"avatar"})):null,J?(0,c.jsx)("span",{style:{marginInlineStart:8},children:J},"name"):void 0];return S?S(t,(0,c.jsx)("div",{children:ie}),i):(0,c.jsx)("div",{children:ie})},[t]),Y=a||ee?function(J){var S=a&&(a==null?void 0:a(J));return!S&&!ee?null:Array.isArray(S)?R((0,c.jsxs)("div",{className:"".concat(v,"-header-actions ").concat(Z).trim(),children:[S.filter(Boolean).map(function(_,ie){var Q=!1;if(m.isValidElement(_)){var U;Q=!!(_!=null&&(U=_.props)!==null&&U!==void 0&&U["aria-hidden"])}return(0,c.jsx)("div",{className:me()("".concat(v,"-header-actions-item ").concat(Z),(0,o.Z)({},"".concat(v,"-header-actions-hover"),!Q)),children:_},ie)}),ee&&(0,c.jsx)("span",{className:"".concat(v,"-header-actions-avatar ").concat(Z).trim(),children:ee})]})):R((0,c.jsxs)("div",{className:"".concat(v,"-header-actions ").concat(Z).trim(),children:[S,ee&&(0,c.jsx)("span",{className:"".concat(v,"-header-actions-avatar ").concat(Z).trim(),children:ee})]}))}:void 0,ne=(0,Xr.D)(function(){var J=(0,w.Z)((0,p.Z)().mark(function S(_){return(0,p.Z)().wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:z(_);case 1:case"end":return Q.stop()}},S)}));return function(S){return J.apply(this,arguments)}}(),160),K=Y||n;return(0,c.jsx)("div",{className:"".concat(v,"-right-content ").concat(Z).trim(),style:{minWidth:k,height:"100%"},children:(0,c.jsx)("div",{style:{height:"100%"},children:(0,c.jsx)(Jr.Z,{onResize:function(S){var _=S.width;ne.run(_)},children:K?(0,c.jsx)("div",{style:{display:"flex",alignItems:"center",height:"100%",justifyContent:"flex-end"},children:K((0,d.Z)((0,d.Z)({},i),{},{rightContentSize:k}))}):null})})})},na=function(e){var n,t;return(0,o.Z)({},e.componentCls,{position:"relative",width:"100%",height:"100%",backgroundColor:"transparent",".anticon":{color:"inherit"},"&-main":{display:"flex",height:"100%",paddingInlineStart:"16px","&-left":(0,o.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 ta(r){return(0,$e.Xj)("ProLayoutTopNavHeader",function(e){var n=(0,d.Z)((0,d.Z)({},e),{},{componentCls:".".concat(r)});return[na(n)]})}var Wt=function(e){var n,t,a,l,i,s,f,v=(0,m.useRef)(null),h=e.onMenuHeaderClick,R=e.contentWidth,Z=e.rightContentRender,W=e.className,X=e.style,k=e.headerContentRender,z=e.layout,ee=e.actionsRender,Y=(0,m.useContext)(Je.ZP.ConfigContext),ne=Y.getPrefixCls,K=(0,m.useContext)(D.L_),J=K.dark,S="".concat(e.prefixCls||ne("pro"),"-top-nav-header"),_=ta(S),ie=_.wrapSSR,Q=_.hashId,U=void 0;e.menuHeaderRender!==void 0?U="menuHeaderRender":(z==="mix"||z==="top")&&(U="headerTitleRender");var he=vt((0,d.Z)((0,d.Z)({},e),{},{collapsed:!1}),U),be=(0,m.useContext)(D.L_),x=be.token,Me=(0,m.useMemo)(function(){var O,le,ye,Re,xe,Ae,je,Pe,Ue,We,ze,Qe,en,nn=(0,c.jsx)(Je.ZP,{theme:{hashed:(0,D.nu)(),components:{Layout:{headerBg:"transparent",bodyBg:"transparent"},Menu:(0,d.Z)({},te({colorItemBg:((O=x.layout)===null||O===void 0||(O=O.header)===null||O===void 0?void 0:O.colorBgHeader)||"transparent",colorSubItemBg:((le=x.layout)===null||le===void 0||(le=le.header)===null||le===void 0?void 0:le.colorBgHeader)||"transparent",radiusItem:x.borderRadius,colorItemBgSelected:((ye=x.layout)===null||ye===void 0||(ye=ye.header)===null||ye===void 0?void 0:ye.colorBgMenuItemSelected)||(x==null?void 0:x.colorBgTextHover),itemHoverBg:((Re=x.layout)===null||Re===void 0||(Re=Re.header)===null||Re===void 0?void 0:Re.colorBgMenuItemHover)||(x==null?void 0:x.colorBgTextHover),colorItemBgSelectedHorizontal:((xe=x.layout)===null||xe===void 0||(xe=xe.header)===null||xe===void 0?void 0:xe.colorBgMenuItemSelected)||(x==null?void 0:x.colorBgTextHover),colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemText:((Ae=x.layout)===null||Ae===void 0||(Ae=Ae.header)===null||Ae===void 0?void 0:Ae.colorTextMenu)||(x==null?void 0:x.colorTextSecondary),colorItemTextHoverHorizontal:((je=x.layout)===null||je===void 0||(je=je.header)===null||je===void 0?void 0:je.colorTextMenuActive)||(x==null?void 0:x.colorText),colorItemTextSelectedHorizontal:((Pe=x.layout)===null||Pe===void 0||(Pe=Pe.header)===null||Pe===void 0?void 0:Pe.colorTextMenuSelected)||(x==null?void 0:x.colorTextBase),horizontalItemBorderRadius:4,colorItemTextHover:((Ue=x.layout)===null||Ue===void 0||(Ue=Ue.header)===null||Ue===void 0?void 0:Ue.colorTextMenuActive)||"rgba(0, 0, 0, 0.85)",horizontalItemHoverBg:((We=x.layout)===null||We===void 0||(We=We.header)===null||We===void 0?void 0:We.colorBgMenuItemHover)||"rgba(0, 0, 0, 0.04)",colorItemTextSelected:((ze=x.layout)===null||ze===void 0||(ze=ze.header)===null||ze===void 0?void 0:ze.colorTextMenuSelected)||"rgba(0, 0, 0, 1)",popupBg:x==null?void 0:x.colorBgElevated,subMenuItemBg:x==null?void 0:x.colorBgElevated,darkSubMenuItemBg:"transparent",darkPopupBg:x==null?void 0:x.colorBgElevated}))},token:{colorBgElevated:((Qe=x.layout)===null||Qe===void 0||(Qe=Qe.header)===null||Qe===void 0?void 0:Qe.colorBgHeader)||"transparent"}},children:(0,c.jsx)(Ot,(0,d.Z)((0,d.Z)((0,d.Z)({theme:J?"dark":"light"},e),{},{className:"".concat(S,"-base-menu ").concat(Q).trim()},e.menuProps),{},{style:(0,d.Z)({width:"100%"},(en=e.menuProps)===null||en===void 0?void 0:en.style),collapsed:!1,menuRenderType:"header",mode:"horizontal"}))});return k?k(e,nn):nn},[(n=x.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorBgHeader,(t=x.layout)===null||t===void 0||(t=t.header)===null||t===void 0?void 0:t.colorBgMenuItemSelected,(a=x.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorBgMenuItemHover,(l=x.layout)===null||l===void 0||(l=l.header)===null||l===void 0?void 0:l.colorTextMenu,(i=x.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorTextMenuActive,(s=x.layout)===null||s===void 0||(s=s.header)===null||s===void 0?void 0:s.colorTextMenuSelected,(f=x.layout)===null||f===void 0||(f=f.header)===null||f===void 0?void 0:f.colorBgMenuElevated,x.borderRadius,x==null?void 0:x.colorBgTextHover,x==null?void 0:x.colorTextSecondary,x==null?void 0:x.colorText,x==null?void 0:x.colorTextBase,x.colorBgElevated,J,e,S,Q,k]);return ie((0,c.jsx)("div",{className:me()(S,Q,W,(0,o.Z)({},"".concat(S,"-light"),!0)),style:X,children:(0,c.jsxs)("div",{ref:v,className:me()("".concat(S,"-main"),Q,(0,o.Z)({},"".concat(S,"-wide"),R==="Fixed"&&z==="top")),children:[he&&(0,c.jsxs)("div",{className:me()("".concat(S,"-main-left ").concat(Q)),onClick:h,children:[(0,c.jsx)(ft,(0,d.Z)({},e)),(0,c.jsx)("div",{className:"".concat(S,"-logo ").concat(Q).trim(),id:"logo",children:he},"logo")]}),(0,c.jsx)("div",{style:{flex:1},className:"".concat(S,"-menu ").concat(Q).trim(),children:Me}),(Z||ee||e.avatarProps)&&(0,c.jsx)($t,(0,d.Z)((0,d.Z)({rightContentRender:Z},e),{},{prefixCls:S}))]})}))},ra=function(e){var n,t,a;return(0,o.Z)({},e.componentCls,(0,o.Z)((0,o.Z)((0,o.Z)((0,o.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 aa(r){return(0,$e.Xj)("ProLayoutGlobalHeader",function(e){var n=(0,d.Z)((0,d.Z)({},e),{},{componentCls:".".concat(r)});return[ra(n)]})}var oa=function(e,n){return e===!1?null:e?e(n,null):n},ia=function(e){var n=e.isMobile,t=e.logo,a=e.collapsed,l=e.onCollapse,i=e.rightContentRender,s=e.menuHeaderRender,f=e.onMenuHeaderClick,v=e.className,h=e.style,R=e.layout,Z=e.children,W=e.splitMenus,X=e.menuData,k=e.prefixCls,z=(0,m.useContext)(Je.ZP.ConfigContext),ee=z.getPrefixCls,Y=z.direction,ne="".concat(k||ee("pro"),"-global-header"),K=aa(ne),J=K.wrapSSR,S=K.hashId,_=me()(v,ne,S);if(R==="mix"&&!n&&W){var ie=(X||[]).map(function(be){return(0,d.Z)((0,d.Z)({},be),{},{children:void 0,routes:void 0})}),Q=(0,Pn.QX)(ie);return(0,c.jsx)(Wt,(0,d.Z)((0,d.Z)({mode:"horizontal"},e),{},{splitMenus:!1,menuData:Q}))}var U=me()("".concat(ne,"-logo"),S,(0,o.Z)((0,o.Z)((0,o.Z)({},"".concat(ne,"-logo-rtl"),Y==="rtl"),"".concat(ne,"-logo-mix"),R==="mix"),"".concat(ne,"-logo-mobile"),n)),he=(0,c.jsx)("span",{className:U,children:(0,c.jsx)("a",{children:dt(t)})},"logo");return J((0,c.jsxs)("div",{className:_,style:(0,d.Z)({},h),children:[n&&(0,c.jsx)("span",{className:"".concat(ne,"-collapsed-button ").concat(S).trim(),onClick:function(){l==null||l(!a)},children:(0,c.jsx)(xr.Z,{})}),n&&oa(s,he),R==="mix"&&!n&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(ft,(0,d.Z)({},e)),(0,c.jsx)("div",{className:U,onClick:f,children:vt((0,d.Z)((0,d.Z)({},e),{},{collapsed:!1}),"headerTitleRender")})]}),(0,c.jsx)("div",{style:{flex:1},children:Z}),(i||e.actionsRender||e.avatarProps)&&(0,c.jsx)($t,(0,d.Z)({rightContentRender:i},e))]}))},la=function(e){var n,t,a,l;return(0,o.Z)({},"".concat(e.proComponentsCls,"-layout"),(0,o.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:((l=e.layout)===null||l===void 0||(l=l.header)===null||l===void 0?void 0:l.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 ua(r){return(0,$e.Xj)("ProLayoutHeader",function(e){var n=(0,d.Z)((0,d.Z)({},e),{},{componentCls:".".concat(r)});return[la(n)]})}function ca(r,e){var n=e.stylish,t=e.proLayoutCollapsedWidth;return(0,$e.Xj)("ProLayoutHeaderStylish",function(a){var l=(0,d.Z)((0,d.Z)({},a),{},{componentCls:".".concat(r),proLayoutCollapsedWidth:t});return n?[(0,o.Z)({},"div".concat(a.proComponentsCls,"-layout"),(0,o.Z)({},"".concat(l.componentCls),n==null?void 0:n(l)))]:[]})}var zt=gn.Z.Header,sa=function(e){var n,t,a,l=e.isMobile,i=e.fixedHeader,s=e.className,f=e.style,v=e.collapsed,h=e.prefixCls,R=e.onCollapse,Z=e.layout,W=e.headerRender,X=e.headerContentRender,k=(0,m.useContext)(D.L_),z=k.token,ee=(0,m.useContext)(Je.ZP.ConfigContext),Y=(0,m.useState)(!1),ne=(0,M.Z)(Y,2),K=ne[0],J=ne[1],S=i||Z==="mix",_=(0,m.useCallback)(function(){var O=Z==="top",le=(0,Pn.QX)(e.menuData||[]),ye=(0,c.jsx)(ia,(0,d.Z)((0,d.Z)({onCollapse:R},e),{},{menuData:le,children:X&&X(e,null)}));return O&&!l&&(ye=(0,c.jsx)(Wt,(0,d.Z)((0,d.Z)({mode:"horizontal",onCollapse:R},e),{},{menuData:le}))),W&&typeof W=="function"?W(e,ye):ye},[X,W,l,Z,R,e]);(0,m.useEffect)(function(){var O,le=(ee==null||(O=ee.getTargetContainer)===null||O===void 0?void 0:O.call(ee))||document.body,ye=function(){var xe,Ae=le.scrollTop;return Ae>(((xe=z.layout)===null||xe===void 0||(xe=xe.header)===null||xe===void 0?void 0:xe.heightLayoutHeader)||56)&&!K?(J(!0),!0):(K&&J(!1),!1)};if(S&&typeof window!="undefined")return le.addEventListener("scroll",ye,{passive:!0}),function(){le.removeEventListener("scroll",ye)}},[(n=z.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader,S,K]);var ie=Z==="top",Q="".concat(h,"-layout-header"),U=ua(Q),he=U.wrapSSR,be=U.hashId,x=ca("".concat(Q,".").concat(Q,"-stylish"),{proLayoutCollapsedWidth:64,stylish:e.stylish}),Me=me()(s,be,Q,(0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)({},"".concat(Q,"-fixed-header"),S),"".concat(Q,"-fixed-header-scroll"),K),"".concat(Q,"-mix"),Z==="mix"),"".concat(Q,"-fixed-header-action"),!v),"".concat(Q,"-top-menu"),ie),"".concat(Q,"-header"),!0),"".concat(Q,"-stylish"),!!e.stylish));return Z==="side"&&!l?null:x.wrapSSR(he((0,c.jsx)(c.Fragment,{children:(0,c.jsxs)(Je.ZP,{theme:{hashed:(0,D.nu)(),components:{Layout:{headerBg:"transparent",bodyBg:"transparent"}}},children:[S&&(0,c.jsx)(zt,{style:(0,d.Z)({height:((t=z.layout)===null||t===void 0||(t=t.header)===null||t===void 0?void 0:t.heightLayoutHeader)||56,lineHeight:"".concat(((a=z.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.heightLayoutHeader)||56,"px"),backgroundColor:"transparent",zIndex:19},f)}),(0,c.jsx)(zt,{className:Me,style:f,children:_()})]})})))},da=u(83832),fa=u(85265),va=u(11568),_t=new va.E4("antBadgeLoadingCircle",{"0%":{display:"none",opacity:0,overflow:"hidden"},"80%":{overflow:"hidden"},"100%":{display:"unset",opacity:1}}),ma=function(e){var n,t,a,l,i,s,f,v,h,R,Z,W;return(0,o.Z)({},"".concat(e.proComponentsCls,"-layout"),(0,o.Z)((0,o.Z)((0,o.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,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.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,o.Z)((0,o.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:(l=e.layout)===null||l===void 0||(l=l.sider)===null||l===void 0?void 0:l.colorTextMenuItemHover})),"&-logo",{position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between",paddingInline:12,paddingBlock:16,color:(i=e.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.colorTextMenu,cursor:"pointer",borderBlockEnd:"1px solid ".concat((s=e.layout)===null||s===void 0||(s=s.sider)===null||s===void 0?void 0:s.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:(f=e.layout)===null||f===void 0||(f=f.sider)===null||f===void 0?void 0:f.colorTextMenuTitle,animationName:_t,animationDuration:".4s",animationTimingFunction:"ease",fontWeight:600,fontSize:16,lineHeight:"22px",verticalAlign:"middle"}},"&-collapsed":(0,o.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:(v=e.layout)===null||v===void 0||(v=v.sider)===null||v===void 0?void 0:v.colorTextMenu,"&-collapsed":{flexDirection:"column-reverse",paddingBlock:0,paddingInline:8,fontSize:16,transition:"font-size 0.3s ease-in-out"},"&-list":{color:(h=e.layout)===null||h===void 0||(h=h.sider)===null||h===void 0?void 0:h.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:(R=e.layout)===null||R===void 0||(R=R.sider)===null||R===void 0?void 0:R.colorTextMenuSecondary,paddingBlockEnd:16,fontSize:e.fontSize,animationName:_t,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(((Z=e.layout)===null||Z===void 0||(Z=Z.header)===null||Z===void 0?void 0:Z.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,$e.Xj)("ProLayoutSiderMenu",function(t){var a=(0,d.Z)((0,d.Z)({},t),{},{componentCls:".".concat(r),proLayoutCollapsedWidth:n});return[ma(a)]})}var Ft=function(e){var n,t=e.isMobile,a=e.siderWidth,l=e.collapsed,i=e.onCollapse,s=e.style,f=e.className,v=e.hide,h=e.prefixCls,R=e.getContainer,Z=(0,m.useContext)(D.L_),W=Z.token;(0,m.useEffect)(function(){t===!0&&(i==null||i(!0))},[t]);var X=(0,Rt.Z)(e,["className","style"]),k=m.useContext(Je.ZP.ConfigContext),z=k.direction,ee=ha("".concat(h,"-sider"),{proLayoutCollapsedWidth:64}),Y=ee.wrapSSR,ne=ee.hashId,K=me()("".concat(h,"-sider"),f,ne);if(v)return null;var J=(0,E.X)(!l,function(){return i==null?void 0:i(!0)});return Y(t?(0,c.jsx)(fa.Z,(0,d.Z)((0,d.Z)({placement:z==="rtl"?"right":"left",className:me()("".concat(h,"-drawer-sider"),f)},J),{},{style:(0,d.Z)({padding:0,height:"100vh"},s),onClose:function(){i==null||i(!0)},maskClosable:!0,closable:!1,getContainer:R||!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,c.jsx)(Ht,(0,d.Z)((0,d.Z)({},X),{},{isMobile:!0,className:K,collapsed:t?!1:l,splitMenus:!1,originCollapsed:l}))})):(0,c.jsx)(Ht,(0,d.Z)((0,d.Z)({className:K,originCollapsed:l},X),{},{style:s})))},Ut=u(76509),mt=u(16305),ga=function(e,n,t){if(t){var a=(0,Kn.Z)(t.keys()).find(function(i){try{return i.startsWith("http")?!1:(0,mt.EQ)(i)(e)}catch(s){return console.log("key",i,s),!1}});if(a)return t.get(a)}if(n){var l=Object.keys(n).find(function(i){try{return i!=null&&i.startsWith("http")?!1:(0,mt.EQ)(i)(e)}catch(s){return console.log("key",i,s),!1}});if(l)return n[l]}return{path:""}},ht=function(e,n){var t=e.pathname,a=t===void 0?"/":t,l=e.breadcrumb,i=e.breadcrumbMap,s=e.formatMessage,f=e.title,v=e.menu,h=v===void 0?{locale:!1}:v,R=n?"":f||"",Z=ga(a,l,i);if(!Z)return{title:R,id:"",pageName:R};var W=Z.name;return h.locale!==!1&&Z.locale&&s&&(W=s({id:Z.locale||"",defaultMessage:Z.name})),W?n||!f?{title:W,id:Z.locale||"",pageName:W}:{title:"".concat(W," - ").concat(f),id:Z.locale||"",pageName:W}:{title:R,id:Z.locale||"",pageName:R}},co=function(e,n){return ht(e,n).title},pa=u(52676),kn=u(67159),pn=u(34155),ya=function(){var e;return typeof pn=="undefined"?kn.Z:((e=pn)===null||pn===void 0||(pn={NODE_ENV:"production",PUBLIC_PATH:"/shihezi/"})===null||pn===void 0?void 0:pn.ANTD_VERSION)||kn.Z},xa=function(e){var n,t,a,l,i,s,f,v,h,R,Z,W,X,k,z,ee,Y,ne,K,J,S,_,ie,Q,U,he,be,x,Me,O,le,ye;return(n=ya())!==null&&n!==void 0&&n.startsWith("5")?{}:(0,o.Z)((0,o.Z)((0,o.Z)({},e.componentCls,(0,o.Z)((0,o.Z)({width:"100%",height:"100%"},"".concat(e.proComponentsCls,"-base-menu"),(S={color:(t=e.layout)===null||t===void 0||(t=t.sider)===null||t===void 0?void 0:t.colorTextMenu},(0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)(S,"".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,o.Z)((0,o.Z)({color:(l=e.layout)===null||l===void 0||(l=l.sider)===null||l===void 0?void 0:l.colorTextMenu},"".concat(e.antCls,"-menu-item"),{"*":{transition:"none !important"}}),"".concat(e.antCls,"-menu-item a"),{color:"inherit"})),"&".concat(e.antCls,"-menu-inline"),(0,o.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,o.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,o.Z)({color:(i=e.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.colorTextMenuActive,borderRadius:e.borderRadius},"".concat(e.antCls,"-menu-submenu-arrow"),{color:(s=e.layout)===null||s===void 0||(s=s.sider)===null||s===void 0?void 0:s.colorTextMenuActive}))),"&".concat(e.antCls,"-menu:not(").concat(e.antCls,"-menu-horizontal)"),(0,o.Z)((0,o.Z)({},"".concat(e.antCls,"-menu-item-selected"),{backgroundColor:(f=e.layout)===null||f===void 0||(f=f.sider)===null||f===void 0?void 0:f.colorBgMenuItemSelected,borderRadius:e.borderRadius}),"".concat(e.antCls,`-menu-item:hover,
|
|
`).concat(e.antCls,`-menu-item-active,
|
|
`).concat(e.antCls,"-menu-submenu-title:hover"),(0,o.Z)({color:(v=e.layout)===null||v===void 0||(v=v.sider)===null||v===void 0?void 0:v.colorTextMenuActive,borderRadius:e.borderRadius,backgroundColor:"".concat((h=e.layout)===null||h===void 0||(h=h.header)===null||h===void 0?void 0:h.colorBgMenuItemHover," !important")},"".concat(e.antCls,"-menu-submenu-arrow"),{color:(R=e.layout)===null||R===void 0||(R=R.sider)===null||R===void 0?void 0:R.colorTextMenuActive}))),"".concat(e.antCls,"-menu-item-selected"),{color:(Z=e.layout)===null||Z===void 0||(Z=Z.sider)===null||Z===void 0?void 0:Z.colorTextMenuSelected}),(0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)(S,"".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:(X=e.layout)===null||X===void 0||(X=X.sider)===null||X===void 0?void 0:X.colorTextMenuSelected}),"&".concat(e.antCls,"-menu-vertical"),(0,o.Z)({},"".concat(e.antCls,"-menu-submenu-selected"),{borderRadius:e.borderRadius,color:(k=e.layout)===null||k===void 0||(k=k.sider)===null||k===void 0?void 0:k.colorTextMenuSelected})),"".concat(e.antCls,"-menu-submenu:hover > ").concat(e.antCls,"-menu-submenu-title > ").concat(e.antCls,"-menu-submenu-arrow"),{color:(z=e.layout)===null||z===void 0||(z=z.sider)===null||z===void 0?void 0:z.colorTextMenuActive}),"&".concat(e.antCls,"-menu-horizontal"),(0,o.Z)((0,o.Z)((0,o.Z)((0,o.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:(ee=e.layout)===null||ee===void 0||(ee=ee.header)===null||ee===void 0?void 0:ee.colorTextMenuActive,backgroundColor:"".concat((Y=e.layout)===null||Y===void 0||(Y=Y.header)===null||Y===void 0?void 0:Y.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,o.Z)({backgroundColor:(ne=e.layout)===null||ne===void 0||(ne=ne.header)===null||ne===void 0?void 0:ne.colorBgMenuItemSelected,borderRadius:e.borderRadius,transition:"none",color:"".concat((K=e.layout)===null||K===void 0||(K=K.header)===null||K===void 0?void 0:K.colorTextMenuSelected," !important")},"".concat(e.antCls,"-menu-submenu-arrow"),{color:"".concat((J=e.layout)===null||J===void 0||(J=J.header)===null||J===void 0?void 0:J.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,o.Z)((0,o.Z)({},"&".concat(e.antCls,"-menu"),(0,o.Z)({color:(_=e.layout)===null||_===void 0||(_=_.header)===null||_===void 0?void 0:_.colorTextMenu},"".concat(e.antCls,"-menu-item a"),{color:"inherit"})),"&".concat(e.antCls,"-menu-light"),(0,o.Z)((0,o.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,o.Z)({color:(ie=e.layout)===null||ie===void 0||(ie=ie.header)===null||ie===void 0?void 0:ie.colorTextMenuActive,borderRadius:e.borderRadius,transition:"none",backgroundColor:(Q=e.layout)===null||Q===void 0||(Q=Q.header)===null||Q===void 0?void 0:Q.colorBgMenuItemSelected},"".concat(e.antCls,"-menu-submenu-arrow"),{color:(U=e.layout)===null||U===void 0||(U=U.header)===null||U===void 0?void 0:U.colorTextMenuActive})),"".concat(e.antCls,"-menu-item-selected"),{color:(he=e.layout)===null||he===void 0||(he=he.header)===null||he===void 0?void 0:he.colorTextMenuSelected,borderRadius:e.borderRadius,backgroundColor:(be=e.layout)===null||be===void 0||(be=be.header)===null||be===void 0?void 0:be.colorBgMenuItemSelected})))),"".concat(e.antCls,"-menu-sub").concat(e.antCls,"-menu-inline"),{backgroundColor:"transparent!important"}),"".concat(e.antCls,"-menu-submenu-popup"),(0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)({backgroundColor:"rgba(255, 255, 255, 0.42)","-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)"},"".concat(e.antCls,"-menu"),(0,o.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:(x=e.layout)===null||x===void 0||(x=x.sider)===null||x===void 0?void 0:x.colorTextMenuSelected}),"".concat(e.antCls,"-menu-submenu-selected"),{color:(Me=e.layout)===null||Me===void 0||(Me=Me.sider)===null||Me===void 0?void 0:Me.colorTextMenuSelected}),"".concat(e.antCls,"-menu:not(").concat(e.antCls,"-menu-horizontal)"),(0,o.Z)((0,o.Z)({},"".concat(e.antCls,"-menu-item-selected"),{backgroundColor:"rgba(0, 0, 0, 0.04)",borderRadius:e.borderRadius,color:(O=e.layout)===null||O===void 0||(O=O.sider)===null||O===void 0?void 0:O.colorTextMenuSelected}),"".concat(e.antCls,`-menu-item:hover,
|
|
`).concat(e.antCls,`-menu-item-active,
|
|
`).concat(e.antCls,"-menu-submenu-title:hover"),(0,o.Z)({color:(le=e.layout)===null||le===void 0||(le=le.sider)===null||le===void 0?void 0:le.colorTextMenuActive,borderRadius:e.borderRadius},"".concat(e.antCls,"-menu-submenu-arrow"),{color:(ye=e.layout)===null||ye===void 0||(ye=ye.sider)===null||ye===void 0?void 0:ye.colorTextMenuActive}))))},Ca=function(e){var n,t,a,l;return(0,o.Z)((0,o.Z)({},"".concat(e.antCls,"-layout"),{backgroundColor:"transparent !important"}),e.componentCls,(0,o.Z)((0,o.Z)((0,o.Z)((0,o.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:(l=e.layout)===null||l===void 0?void 0:l.bgLayout}))};function ba(r){return(0,$e.Xj)("ProLayout",function(e){var n=(0,d.Z)((0,d.Z)({},e),{},{componentCls:".".concat(r)});return[Ca(n),xa(n)]})}function Sa(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 yn=u(34155),Za=function(){var e;return typeof yn=="undefined"?kn.Z:((e=yn)===null||yn===void 0||(yn={NODE_ENV:"production",PUBLIC_PATH:"/shihezi/"})===null||yn===void 0?void 0:yn.ANTD_VERSION)||kn.Z},Ma=function(e,n,t){var a=e,l=a.breadcrumbName,i=a.title,s=a.path,f=t.findIndex(function(v){return v.linkPath===e.path})===t.length-1;return f?(0,c.jsx)("span",{children:i||l}):(0,c.jsx)("span",{onClick:s?function(){return location.href=s}:void 0,children:i||l})},Ia=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},Ta=function(e,n){var t=e.get(n);if(!t){var a=Array.from(e.keys())||[],l=a.find(function(i){try{return i!=null&&i.startsWith("http")?!1:(0,mt.EQ)(i.replace("?",""))(n)}catch(s){return console.log("path",i,s),!1}});l&&(t=e.get(l))}return t||{path:""}},Ra=function(e){var n=e.location,t=e.breadcrumbMap;return{location:n,breadcrumbMap:t}},ja=function(e,n,t){var a=Sa(e==null?void 0:e.pathname),l=a.map(function(i){var s=Ta(n,i),f=Ia(s,t),v=s.hideInBreadcrumb;return f&&!v?{linkPath:i,breadcrumbName:f,title:f,component:s.component}:{linkPath:"",breadcrumbName:"",title:""}}).filter(function(i){return i&&i.linkPath});return l},Pa=function(e){var n=Ra(e),t=n.location,a=n.breadcrumbMap;return t&&t.pathname&&a?ja(t,a,e):[]},wa=function(e,n){var t=e.breadcrumbRender,a=e.itemRender,l=n.breadcrumbProps||{},i=l.minLength,s=i===void 0?2:i,f=Pa(e),v=function(Z){for(var W=a||Ma,X=arguments.length,k=new Array(X>1?X-1:0),z=1;z<X;z++)k[z-1]=arguments[z];return W==null?void 0:W.apply(void 0,[(0,d.Z)((0,d.Z)({},Z),{},{path:Z.linkPath||Z.path})].concat(k))},h=f;return t&&(h=t(h||[])||void 0),(h&&h.length<s||t===!1)&&(h=void 0),(0,H.n)(Za(),"5.3.0")>-1?{items:h,itemRender:v}:{routes:h,itemRender:v}};function Ea(r){return(0,Kn.Z)(r).reduce(function(e,n){var t=(0,M.Z)(n,2),a=t[0],l=t[1];return e[a]=l,e},{})}var Ba=function r(e,n,t,a){var l=jn(e,(n==null?void 0:n.locale)||!1,t,!0),i=l.menuData,s=l.breadcrumb;return a?r(a(i),n,t,void 0):{breadcrumb:Ea(s),breadcrumbMap:s,menuData:i}},La=u(71002),Aa=u(51812),Na=function(e){var n=(0,m.useState)({}),t=(0,M.Z)(n,2),a=t[0],l=t[1];return(0,m.useEffect)(function(){l((0,Aa.Y)({layout:(0,La.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},Oa=["id","defaultMessage"],Da=["fixSiderbar","navTheme","layout"],Kt=0,Ha=function(e,n){var t;return e.headerRender===!1||e.pure?null:(0,c.jsx)(sa,(0,d.Z)((0,d.Z)({matchMenuKeys:n},e),{},{stylish:(t=e.stylish)===null||t===void 0?void 0:t.header}))},$a=function(e){return e.footerRender===!1||e.pure?null:e.footerRender?e.footerRender((0,d.Z)({},e),(0,c.jsx)(yr.q,{})):null},Wa=function(e,n){var t,a=e.layout,l=e.isMobile,i=e.selectedKeys,s=e.openKeys,f=e.splitMenus,v=e.suppressSiderWhenMenuEmpty,h=e.menuRender;if(e.menuRender===!1||e.pure)return null;var R=e.menuData;if(f&&(s!==!1||a==="mix")&&!l){var Z=i||n,W=(0,M.Z)(Z,1),X=W[0];if(X){var k;R=((k=e.menuData)===null||k===void 0||(k=k.find(function(ne){return ne.key===X}))===null||k===void 0?void 0:k.children)||[]}else R=[]}var z=(0,Pn.QX)(R||[]);if(z&&(z==null?void 0:z.length)<1&&(f||v))return null;if(a==="top"&&!l){var ee;return(0,c.jsx)(Ft,(0,d.Z)((0,d.Z)({matchMenuKeys:n},e),{},{hide:!0,stylish:(ee=e.stylish)===null||ee===void 0?void 0:ee.sider}))}var Y=(0,c.jsx)(Ft,(0,d.Z)((0,d.Z)({matchMenuKeys:n},e),{},{menuData:z,stylish:(t=e.stylish)===null||t===void 0?void 0:t.sider}));return h?h(e,Y):Y},za=function(e,n){var t=n.pageTitleRender,a=ht(e);if(t===!1)return{title:n.title||"",id:"",pageName:""};if(t){var l=t(e,a.title,a);if(typeof l=="string")return ht((0,d.Z)((0,d.Z)({},a),{},{title:l}));(0,fr.ZP)(typeof l=="string","pro-layout: renderPageTitle return value should be a string")}return a},_a=function(e,n,t){return e?n?64:t:0},Fa=function(e){var n,t,a,l,i,s,f,v,h,R,Z,W,X,k,z=e||{},ee=z.children,Y=z.onCollapse,ne=z.location,K=ne===void 0?{pathname:"/"}:ne,J=z.contentStyle,S=z.route,_=z.defaultCollapsed,ie=z.style,Q=z.siderWidth,U=z.menu,he=z.siderMenuType,be=z.isChildrenLayout,x=z.menuDataRender,Me=z.actionRef,O=z.bgLayoutImgList,le=z.formatMessage,ye=z.loading,Re=(0,m.useMemo)(function(){return Q||(e.layout==="mix"?215:256)},[e.layout,Q]),xe=(0,m.useContext)(Je.ZP.ConfigContext),Ae=(n=e.prefixCls)!==null&&n!==void 0?n:xe.getPrefixCls("pro"),je=(0,F.Z)(!1,{value:U==null?void 0:U.loading,onChange:U==null?void 0:U.onLoadingChange}),Pe=(0,M.Z)(je,2),Ue=Pe[0],We=Pe[1],ze=(0,m.useState)(function(){return Kt+=1,"pro-layout-".concat(Kt)}),Qe=(0,M.Z)(ze,1),en=Qe[0],nn=(0,m.useCallback)(function(Oe){var rn=Oe.id,Qn=Oe.defaultMessage,Nn=(0,L.Z)(Oe,Oa);if(le)return le((0,d.Z)({id:rn,defaultMessage:Qn},Nn));var On=(0,pa.e)();return On[rn]?On[rn]:Qn},[le]),tn=(0,vr.ZP)([en,U==null?void 0:U.params],function(){var Oe=(0,w.Z)((0,p.Z)().mark(function rn(Qn){var Nn,On,ir,lr;return(0,p.Z)().wrap(function(Sn){for(;;)switch(Sn.prev=Sn.next){case 0:return On=(0,M.Z)(Qn,2),ir=On[1],We(!0),Sn.next=4,U==null||(Nn=U.request)===null||Nn===void 0?void 0:Nn.call(U,ir||{},(S==null?void 0:S.children)||(S==null?void 0:S.routes)||[]);case 4:return lr=Sn.sent,We(!1),Sn.abrupt("return",lr);case 7:case"end":return Sn.stop()}},rn)}));return function(rn){return Oe.apply(this,arguments)}}(),{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),wn=tn.data,Gn=tn.mutate,Ne=tn.isLoading;(0,m.useEffect)(function(){We(Ne)},[Ne]);var Ve=(0,mr.kY)(),Ke=Ve.cache;(0,m.useEffect)(function(){return function(){Ke instanceof Map&&Ke.delete(en)}},[]);var Vn=(0,m.useMemo)(function(){return Ba(wn||(S==null?void 0:S.children)||(S==null?void 0:S.routes)||[],U,nn,x)},[nn,U,x,wn,S==null?void 0:S.children,S==null?void 0:S.routes]),gt=Vn||{},Ka=gt.breadcrumb,kt=gt.breadcrumbMap,Gt=gt.menuData,En=Gt===void 0?[]:Gt;Me&&U!==null&&U!==void 0&&U.request&&(Me.current={reload:function(){Gn()}});var Bn=(0,m.useMemo)(function(){return sr(K.pathname||"/",En||[],!0)},[K.pathname,En]),pt=(0,m.useMemo)(function(){return Array.from(new Set(Bn.map(function(Oe){return Oe.key||Oe.path||""})))},[Bn]),Vt=Bn[Bn.length-1]||{},Xt=Na(Vt),Xn=(0,d.Z)((0,d.Z)({},e),Xt),ka=Xn.fixSiderbar,so=Xn.navTheme,Ln=Xn.layout,Ga=(0,L.Z)(Xn,Da),xn=ge(),Cn=(0,m.useMemo)(function(){return(xn==="sm"||xn==="xs")&&!e.disableMobile},[xn,e.disableMobile]),Va=Ln!=="top"&&!Cn,Xa=(0,F.Z)(function(){return _!==void 0?_:!!(Cn||xn==="md")},{value:e.collapsed,onChange:Y}),Jt=(0,M.Z)(Xa,2),An=Jt[0],Qt=Jt[1],bn=(0,Rt.Z)((0,d.Z)((0,d.Z)((0,d.Z)({prefixCls:Ae},e),{},{siderWidth:Re},Xt),{},{formatMessage:nn,breadcrumb:Ka,menu:(0,d.Z)((0,d.Z)({},U),{},{type:he||(U==null?void 0:U.type),loading:Ue}),layout:Ln}),["className","style","breadcrumbRender"]),yt=za((0,d.Z)((0,d.Z)({pathname:K.pathname},bn),{},{breadcrumbMap:kt}),e),Ja=wa((0,d.Z)((0,d.Z)({},bn),{},{breadcrumbRender:e.breadcrumbRender,breadcrumbMap:kt}),e),Jn=Wa((0,d.Z)((0,d.Z)({},bn),{},{menuData:En,onCollapse:Qt,isMobile:Cn,collapsed:An}),pt),xt=Ha((0,d.Z)((0,d.Z)({},bn),{},{children:null,hasSiderMenu:!!Jn,menuData:En,isMobile:Cn,collapsed:An,onCollapse:Qt}),pt),Yt=$a((0,d.Z)({isMobile:Cn,collapsed:An},bn)),Qa=(0,m.useContext)(Ut.X),Ya=Qa.isChildrenLayout,Ct=be!==void 0?be:Ya,Ye="".concat(Ae,"-layout"),qt=ba(Ye),qa=qt.wrapSSR,bt=qt.hashId,eo=me()(e.className,bt,"ant-design-pro",Ye,(0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)({},"screen-".concat(xn),xn),"".concat(Ye,"-top-menu"),Ln==="top"),"".concat(Ye,"-is-children"),Ct),"".concat(Ye,"-fix-siderbar"),ka),"".concat(Ye,"-").concat(Ln),Ln)),no=_a(!!Va,An,Re),er={position:"relative"};(Ct||J&&J.minHeight)&&(er.minHeight=0),(0,m.useEffect)(function(){var Oe;(Oe=e.onPageChange)===null||Oe===void 0||Oe.call(e,e.location)},[K.pathname,(t=K.pathname)===null||t===void 0?void 0:t.search]);var to=(0,m.useState)(!1),nr=(0,M.Z)(to,2),tr=nr[0],ro=nr[1],ao=(0,m.useState)(0),rr=(0,M.Z)(ao,2),ar=rr[0],oo=rr[1];j(yt,e.title||!1);var io=(0,m.useContext)(D.L_),oe=io.token,or=(0,m.useMemo)(function(){return O&&O.length>0?O==null?void 0:O.map(function(Oe,rn){return(0,c.jsx)("img",{src:Oe.src,style:(0,d.Z)({position:"absolute"},Oe)},rn)}):null},[O]);return qa((0,c.jsx)(Ut.X.Provider,{value:(0,d.Z)((0,d.Z)({},bn),{},{breadcrumb:Ja,menuData:En,isMobile:Cn,collapsed:An,hasPageContainer:ar,setHasPageContainer:oo,isChildrenLayout:!0,title:yt.pageName,hasSiderMenu:!!Jn,hasHeader:!!xt,siderWidth:no,hasFooter:!!Yt,hasFooterToolbar:tr,setHasFooterToolbar:ro,pageTitleInfo:yt,matchMenus:Bn,matchMenuKeys:pt,currentMenu:Vt}),children:e.pure?(0,c.jsx)(c.Fragment,{children:ee}):(0,c.jsxs)("div",{className:eo,children:[or||(a=oe.layout)!==null&&a!==void 0&&a.bgLayout?(0,c.jsx)("div",{className:me()("".concat(Ye,"-bg-list"),bt),children:or}):null,(0,c.jsxs)(gn.Z,{style:(0,d.Z)({minHeight:"100%",flexDirection:Jn?"row":void 0},ie),children:[(0,c.jsx)(Je.ZP,{theme:{hashed:(0,D.nu)(),token:{controlHeightLG:((l=oe.layout)===null||l===void 0||(l=l.sider)===null||l===void 0?void 0:l.menuHeight)||(oe==null?void 0:oe.controlHeightLG)},components:{Menu:te({colorItemBg:((i=oe.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.colorMenuBackground)||"transparent",colorSubItemBg:((s=oe.layout)===null||s===void 0||(s=s.sider)===null||s===void 0?void 0:s.colorMenuBackground)||"transparent",radiusItem:oe.borderRadius,colorItemBgSelected:((f=oe.layout)===null||f===void 0||(f=f.sider)===null||f===void 0?void 0:f.colorBgMenuItemSelected)||(oe==null?void 0:oe.colorBgTextHover),colorItemBgHover:((v=oe.layout)===null||v===void 0||(v=v.sider)===null||v===void 0?void 0:v.colorBgMenuItemHover)||(oe==null?void 0:oe.colorBgTextHover),colorItemBgActive:((h=oe.layout)===null||h===void 0||(h=h.sider)===null||h===void 0?void 0:h.colorBgMenuItemActive)||(oe==null?void 0:oe.colorBgTextActive),colorItemBgSelectedHorizontal:((R=oe.layout)===null||R===void 0||(R=R.sider)===null||R===void 0?void 0:R.colorBgMenuItemSelected)||(oe==null?void 0:oe.colorBgTextHover),colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemText:((Z=oe.layout)===null||Z===void 0||(Z=Z.sider)===null||Z===void 0?void 0:Z.colorTextMenu)||(oe==null?void 0:oe.colorTextSecondary),colorItemTextHover:((W=oe.layout)===null||W===void 0||(W=W.sider)===null||W===void 0?void 0:W.colorTextMenuItemHover)||"rgba(0, 0, 0, 0.85)",colorItemTextSelected:((X=oe.layout)===null||X===void 0||(X=X.sider)===null||X===void 0?void 0:X.colorTextMenuSelected)||"rgba(0, 0, 0, 1)",popupBg:oe==null?void 0:oe.colorBgElevated,subMenuItemBg:oe==null?void 0:oe.colorBgElevated,darkSubMenuItemBg:"transparent",darkPopupBg:oe==null?void 0:oe.colorBgElevated})}},children:Jn}),(0,c.jsxs)("div",{style:er,className:"".concat(Ye,"-container ").concat(bt).trim(),children:[xt,(0,c.jsx)(gr,(0,d.Z)((0,d.Z)({hasPageContainer:ar,isChildrenLayout:Ct},Ga),{},{hasHeader:!!xt,prefixCls:Ye,style:J,children:ye?(0,c.jsx)(da.S,{}):ee})),Yt,tr&&(0,c.jsx)("div",{className:"".concat(Ye,"-has-footer"),style:{height:64,marginBlockStart:(k=oe.layout)===null||k===void 0||(k=k.pageContainer)===null||k===void 0?void 0:k.paddingBlockPageContainerContent}})]})]})]})}))},Ua=function(e){var n=e.colorPrimary,t=e.navTheme!==void 0?{dark:e.navTheme==="realDark"}:{};return(0,c.jsx)(Je.ZP,{theme:n?{token:{colorPrimary:n}}:void 0,children:(0,c.jsx)(D._Y,(0,d.Z)((0,d.Z)({},t),{},{token:e.token,prefixCls:e.prefixCls,children:(0,c.jsx)(Fa,(0,d.Z)((0,d.Z)({logo:(0,c.jsx)(pr,{})},Et.h),{},{location:(0,fe.j)()?window.location:void 0},e))}))})}},83832:function(P,B,u){"use strict";u.d(B,{S:function(){return D}});var o=u(1413),p=u(91),w=u(74330),L=u(67294),M=u(85893),d=["isLoading","pastDelay","timedOut","error","retry"],D=function(m){var ae=m.isLoading,ue=m.pastDelay,Ie=m.timedOut,ge=m.error,fe=m.retry,j=(0,p.Z)(m,d);return(0,M.jsx)("div",{style:{paddingBlockStart:100,textAlign:"center"},children:(0,M.jsx)(w.Z,(0,o.Z)({size:"large"},j))})}},76509:function(P,B,u){"use strict";u.d(B,{X:function(){return p}});var o=u(67294),p=(0,o.createContext)({})},78164:function(P,B,u){"use strict";u.d(B,{S:function(){return ae}});var o=u(15671),p=u(43144),w=u(97326),L=u(60136),M=u(29388),d=u(4942),D=u(59720),F=u(67294),m=u(85893),ae=function(ue){(0,L.Z)(ge,ue);var Ie=(0,M.Z)(ge);function ge(){var fe;(0,o.Z)(this,ge);for(var j=arguments.length,H=new Array(j),E=0;E<j;E++)H[E]=arguments[E];return fe=Ie.call.apply(Ie,[this].concat(H)),(0,d.Z)((0,w.Z)(fe),"state",{hasError:!1,errorInfo:""}),fe}return(0,p.Z)(ge,[{key:"componentDidCatch",value:function(j,H){console.log(j,H)}},{key:"render",value:function(){return this.state.hasError?(0,m.jsx)(D.ZP,{status:"error",title:"Something went wrong.",extra:this.state.errorInfo}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(j){return{hasError:!0,errorInfo:j.message}}}]),ge}(F.Component)},10178:function(P,B,u){"use strict";u.d(B,{D:function(){return M}});var o=u(55850),p=u(15861),w=u(67294),L=u(48171);function M(d,D){var F=(0,L.J)(d),m=(0,w.useRef)(),ae=(0,w.useCallback)(function(){m.current&&(clearTimeout(m.current),m.current=null)},[]),ue=(0,w.useCallback)((0,p.Z)((0,o.Z)().mark(function Ie(){var ge,fe,j,H=arguments;return(0,o.Z)().wrap(function(te){for(;;)switch(te.prev=te.next){case 0:for(ge=H.length,fe=new Array(ge),j=0;j<ge;j++)fe[j]=H[j];if(!(D===0||D===void 0)){te.next=3;break}return te.abrupt("return",F.apply(void 0,fe));case 3:return ae(),te.abrupt("return",new Promise(function(ve){m.current=setTimeout((0,p.Z)((0,o.Z)().mark(function q(){return(0,o.Z)().wrap(function(se){for(;;)switch(se.prev=se.next){case 0:return se.t0=ve,se.next=3,F.apply(void 0,fe);case 3:return se.t1=se.sent,(0,se.t0)(se.t1),se.abrupt("return");case 6:case"end":return se.stop()}},q)})),D)}));case 5:case"end":return te.stop()}},Ie)})),[F,ae,D]);return(0,w.useEffect)(function(){return ae},[ae]),{run:ue,cancel:ae}}},48171:function(P,B,u){"use strict";u.d(B,{J:function(){return w}});var o=u(74902),p=u(67294),w=function(M){var d=(0,p.useRef)(null);return d.current=M,(0,p.useCallback)(function(){for(var D,F=arguments.length,m=new Array(F),ae=0;ae<F;ae++)m[ae]=arguments[ae];return(D=d.current)===null||D===void 0?void 0:D.call.apply(D,[d].concat((0,o.Z)(m)))},[])}},55650:function(P,B,u){"use strict";u.d(B,{Z:function(){return Te}});var o=u(1413),p=u(67294),w=u(70391),L=u(97685),M=u(4942),d=u(91),D=u(93967),F=u.n(D),m=(0,p.createContext)({}),ae=m,ue=u(71002),Ie=u(86500),ge=u(1350),fe=2,j=.16,H=.05,E=.05,te=.15,ve=5,q=4,ce=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function se(b){var $=b.r,re=b.g,V=b.b,Ze=(0,Ie.py)($,re,V);return{h:Ze.h*360,s:Ze.s,v:Ze.v}}function de(b){var $=b.r,re=b.g,V=b.b;return"#".concat((0,Ie.vq)($,re,V,!1))}function I(b,$,re){var V=re/100,Ze={r:($.r-b.r)*V+b.r,g:($.g-b.g)*V+b.g,b:($.b-b.b)*V+b.b};return Ze}function y(b,$,re){var V;return Math.round(b.h)>=60&&Math.round(b.h)<=240?V=re?Math.round(b.h)-fe*$:Math.round(b.h)+fe*$:V=re?Math.round(b.h)+fe*$:Math.round(b.h)-fe*$,V<0?V+=360:V>=360&&(V-=360),V}function g(b,$,re){if(b.h===0&&b.s===0)return b.s;var V;return re?V=b.s-j*$:$===q?V=b.s+j:V=b.s+H*$,V>1&&(V=1),re&&$===ve&&V>.1&&(V=.1),V<.06&&(V=.06),Number(V.toFixed(2))}function G(b,$,re){var V;return re?V=b.v+E*$:V=b.v-te*$,V>1&&(V=1),Number(V.toFixed(2))}function N(b){for(var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},re=[],V=(0,ge.uA)(b),Ze=ve;Ze>0;Ze-=1){var ke=se(V),Xe=de((0,ge.uA)({h:y(ke,Ze,!0),s:g(ke,Ze,!0),v:G(ke,Ze,!0)}));re.push(Xe)}re.push(de(V));for(var Fe=1;Fe<=q;Fe+=1){var He=se(V),Ge=de((0,ge.uA)({h:y(He,Fe),s:g(He,Fe),v:G(He,Fe)}));re.push(Ge)}return $.theme==="dark"?ce.map(function(Le){var hn=Le.index,sn=Le.opacity,Rn=de(I((0,ge.uA)($.backgroundColor||"#141414"),(0,ge.uA)(re[hn]),sn*100));return Rn}):re}var C={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},A={},T={};Object.keys(C).forEach(function(b){A[b]=N(C[b]),A[b].primary=A[b][5],T[b]=N(C[b],{theme:"dark",backgroundColor:"#141414"}),T[b].primary=T[b][5]});var pe=A.red,Ce=A.volcano,Ee=A.gold,Se=A.orange,Be=A.yellow,we=A.lime,De=A.green,_e=A.cyan,an=A.blue,Dn=A.geekblue,fn=A.purple,Mt=A.magenta,It=A.grey,Yn=u(80334),qn=u(44958),et=u(68929),nt=u.n(et);function tt(b,$){(0,Yn.ZP)(b,"[@ant-design/icons] ".concat($))}function Zn(b){return(0,ue.Z)(b)==="object"&&typeof b.name=="string"&&typeof b.theme=="string"&&((0,ue.Z)(b.icon)==="object"||typeof b.icon=="function")}function Hn(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(b).reduce(function($,re){var V=b[re];switch(re){case"class":$.className=V,delete $.class;break;default:delete $[re],$[nt()(re)]=V}return $},{})}function Mn(b,$,re){return re?p.createElement(b.tag,(0,o.Z)((0,o.Z)({key:$},Hn(b.attrs)),re),(b.children||[]).map(function(V,Ze){return Mn(V,"".concat($,"-").concat(b.tag,"-").concat(Ze))})):p.createElement(b.tag,(0,o.Z)({key:$},Hn(b.attrs)),(b.children||[]).map(function(V,Ze){return Mn(V,"".concat($,"-").concat(b.tag,"-").concat(Ze))}))}function $n(b){return N(b)[0]}function Wn(b){return b?Array.isArray(b)?b:[b]:[]}var Tt={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},In=`
|
|
.anticon {
|
|
display: inline-flex;
|
|
alignItems: center;
|
|
color: inherit;
|
|
font-style: normal;
|
|
line-height: 0;
|
|
text-align: center;
|
|
text-transform: none;
|
|
vertical-align: -0.125em;
|
|
text-rendering: optimizeLegibility;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
.anticon > * {
|
|
line-height: 1;
|
|
}
|
|
|
|
.anticon svg {
|
|
display: inline-block;
|
|
}
|
|
|
|
.anticon::before {
|
|
display: none;
|
|
}
|
|
|
|
.anticon .anticon-icon {
|
|
display: block;
|
|
}
|
|
|
|
.anticon[tabindex] {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.anticon-spin::before,
|
|
.anticon-spin {
|
|
display: inline-block;
|
|
-webkit-animation: loadingCircle 1s infinite linear;
|
|
animation: loadingCircle 1s infinite linear;
|
|
}
|
|
|
|
@-webkit-keyframes loadingCircle {
|
|
100% {
|
|
-webkit-transform: rotate(360deg);
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
@keyframes loadingCircle {
|
|
100% {
|
|
-webkit-transform: rotate(360deg);
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
`,vn=function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:In,re=(0,p.useContext)(ae),V=re.csp;(0,p.useEffect)(function(){(0,qn.hq)($,"@ant-design-icons",{prepend:!0,csp:V})},[])},zn=["icon","className","onClick","style","primaryColor","secondaryColor"],on={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function ln(b){var $=b.primaryColor,re=b.secondaryColor;on.primaryColor=$,on.secondaryColor=re||$n($),on.calculated=!!re}function un(){return(0,o.Z)({},on)}var cn=function($){var re=$.icon,V=$.className,Ze=$.onClick,ke=$.style,Xe=$.primaryColor,Fe=$.secondaryColor,He=(0,d.Z)($,zn),Ge=on;if(Xe&&(Ge={primaryColor:Xe,secondaryColor:Fe||$n(Xe)}),vn(),tt(Zn(re),"icon should be icon definiton, but got ".concat(re)),!Zn(re))return null;var Le=re;return Le&&typeof Le.icon=="function"&&(Le=(0,o.Z)((0,o.Z)({},Le),{},{icon:Le.icon(Ge.primaryColor,Ge.secondaryColor)})),Mn(Le.icon,"svg-".concat(Le.name),(0,o.Z)({className:V,onClick:Ze,style:ke,"data-icon":Le.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},He))};cn.displayName="IconReact",cn.getTwoToneColors=un,cn.setTwoToneColors=ln;var Tn=cn;function mn(b){var $=Wn(b),re=(0,L.Z)($,2),V=re[0],Ze=re[1];return Tn.setTwoToneColors({primaryColor:V,secondaryColor:Ze})}function rt(){var b=Tn.getTwoToneColors();return b.calculated?[b.primaryColor,b.secondaryColor]:b.primaryColor}var at=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];mn("#1890ff");var qe=p.forwardRef(function(b,$){var re=b.className,V=b.icon,Ze=b.spin,ke=b.rotate,Xe=b.tabIndex,Fe=b.onClick,He=b.twoToneColor,Ge=(0,d.Z)(b,at),Le=p.useContext(ae),hn=Le.prefixCls,sn=hn===void 0?"anticon":hn,Rn=Le.rootClassName,lt=F()(Rn,sn,(0,M.Z)((0,M.Z)({},"".concat(sn,"-").concat(V.name),!!V.name),"".concat(sn,"-spin"),!!Ze||V.name==="loading"),re),jn=Xe;jn===void 0&&Fe&&(jn=-1);var Fn=ke?{msTransform:"rotate(".concat(ke,"deg)"),transform:"rotate(".concat(ke,"deg)")}:void 0,dn=Wn(He),Un=(0,L.Z)(dn,2),ut=Un[0],ct=Un[1];return p.createElement("span",(0,o.Z)((0,o.Z)({role:"img","aria-label":V.name},Ge),{},{ref:$,tabIndex:jn,onClick:Fe,className:lt}),p.createElement(Tn,{icon:V,primaryColor:ut,secondaryColor:ct,style:Fn}))});qe.displayName="AntdIcon",qe.getTwoToneColor=rt,qe.setTwoToneColor=mn;var ot=qe,it=function($,re){return p.createElement(ot,(0,o.Z)((0,o.Z)({},$),{},{ref:re,icon:w.Z}))},_n=p.forwardRef(it),Te=_n},47930:function(P,B){var u;function o(j){"@babel/helpers - typeof";return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(H){return typeof H}:function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H},o(j)}u={value:!0},B.Bo=u=u=u=u=u=u=void 0;function p(j){for(var H=[],E=0;E<j.length;){var te=j[E];if(te==="*"||te==="+"||te==="?"){H.push({type:"MODIFIER",index:E,value:j[E++]});continue}if(te==="\\"){H.push({type:"ESCAPED_CHAR",index:E++,value:j[E++]});continue}if(te==="{"){H.push({type:"OPEN",index:E,value:j[E++]});continue}if(te==="}"){H.push({type:"CLOSE",index:E,value:j[E++]});continue}if(te===":"){for(var ve="",q=E+1;q<j.length;){var ce=j.charCodeAt(q);if(ce>=48&&ce<=57||ce>=65&&ce<=90||ce>=97&&ce<=122||ce===95){ve+=j[q++];continue}break}if(!ve)throw new TypeError("Missing parameter name at "+E);H.push({type:"NAME",index:E,value:ve}),E=q;continue}if(te==="("){var se=1,de="",q=E+1;if(j[q]==="?")throw new TypeError('Pattern cannot start with "?" at '+q);for(;q<j.length;){if(j[q]==="\\"){de+=j[q++]+j[q++];continue}if(j[q]===")"){if(se--,se===0){q++;break}}else if(j[q]==="("&&(se++,j[q+1]!=="?"))throw new TypeError("Capturing groups are not allowed at "+q);de+=j[q++]}if(se)throw new TypeError("Unbalanced pattern at "+E);if(!de)throw new TypeError("Missing pattern at "+E);H.push({type:"PATTERN",index:E,value:de}),E=q;continue}H.push({type:"CHAR",index:E,value:j[E++]})}return H.push({type:"END",index:E,value:""}),H}function w(j,H){H===void 0&&(H={});for(var E=p(j),te=H.prefixes,ve=te===void 0?"./":te,q="[^"+F(H.delimiter||"/#?")+"]+?",ce=[],se=0,de=0,I="",y=function(De){if(de<E.length&&E[de].type===De)return E[de++].value},g=function(De){var _e=y(De);if(_e!==void 0)return _e;var an=E[de],Dn=an.type,fn=an.index;throw new TypeError("Unexpected "+Dn+" at "+fn+", expected "+De)},G=function(){for(var De="",_e;_e=y("CHAR")||y("ESCAPED_CHAR");)De+=_e;return De};de<E.length;){var N=y("CHAR"),C=y("NAME"),A=y("PATTERN");if(C||A){var T=N||"";ve.indexOf(T)===-1&&(I+=T,T=""),I&&(ce.push(I),I=""),ce.push({name:C||se++,prefix:T,suffix:"",pattern:A||q,modifier:y("MODIFIER")||""});continue}var pe=N||y("ESCAPED_CHAR");if(pe){I+=pe;continue}I&&(ce.push(I),I="");var Ce=y("OPEN");if(Ce){var T=G(),Ee=y("NAME")||"",Se=y("PATTERN")||"",Be=G();g("CLOSE"),ce.push({name:Ee||(Se?se++:""),pattern:Ee&&!Se?q:Se,prefix:T,suffix:Be,modifier:y("MODIFIER")||""});continue}g("END")}return ce}u=w;function L(j,H){return M(w(j,H),H)}u=L;function M(j,H){H===void 0&&(H={});var E=m(H),te=H.encode,ve=te===void 0?function(de){return de}:te,q=H.validate,ce=q===void 0?!0:q,se=j.map(function(de){if(o(de)==="object")return new RegExp("^(?:"+de.pattern+")$",E)});return function(de){for(var I="",y=0;y<j.length;y++){var g=j[y];if(typeof g=="string"){I+=g;continue}var G=de?de[g.name]:void 0,N=g.modifier==="?"||g.modifier==="*",C=g.modifier==="*"||g.modifier==="+";if(Array.isArray(G)){if(!C)throw new TypeError('Expected "'+g.name+'" to not repeat, but got an array');if(G.length===0){if(N)continue;throw new TypeError('Expected "'+g.name+'" to not be empty')}for(var A=0;A<G.length;A++){var T=ve(G[A],g);if(ce&&!se[y].test(T))throw new TypeError('Expected all "'+g.name+'" to match "'+g.pattern+'", but got "'+T+'"');I+=g.prefix+T+g.suffix}continue}if(typeof G=="string"||typeof G=="number"){var T=ve(String(G),g);if(ce&&!se[y].test(T))throw new TypeError('Expected "'+g.name+'" to match "'+g.pattern+'", but got "'+T+'"');I+=g.prefix+T+g.suffix;continue}if(!N){var pe=C?"an array":"a string";throw new TypeError('Expected "'+g.name+'" to be '+pe)}}return I}}u=M;function d(j,H){var E=[],te=fe(j,E,H);return D(te,E,H)}u=d;function D(j,H,E){E===void 0&&(E={});var te=E.decode,ve=te===void 0?function(q){return q}:te;return function(q){var ce=j.exec(q);if(!ce)return!1;for(var se=ce[0],de=ce.index,I=Object.create(null),y=function(N){if(ce[N]===void 0)return"continue";var C=H[N-1];C.modifier==="*"||C.modifier==="+"?I[C.name]=ce[N].split(C.prefix+C.suffix).map(function(A){return ve(A,C)}):I[C.name]=ve(ce[N],C)},g=1;g<ce.length;g++)y(g);return{path:se,index:de,params:I}}}u=D;function F(j){return j.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function m(j){return j&&j.sensitive?"":"i"}function ae(j,H){if(!H)return j;var E=j.source.match(/\((?!\?)/g);if(E)for(var te=0;te<E.length;te++)H.push({name:te,prefix:"",suffix:"",modifier:"",pattern:""});return j}function ue(j,H,E){var te=j.map(function(ve){return fe(ve,H,E).source});return new RegExp("(?:"+te.join("|")+")",m(E))}function Ie(j,H,E){return ge(w(j,E),H,E)}function ge(j,H,E){E===void 0&&(E={});for(var te=E.strict,ve=te===void 0?!1:te,q=E.start,ce=q===void 0?!0:q,se=E.end,de=se===void 0?!0:se,I=E.encode,y=I===void 0?function(we){return we}:I,g="["+F(E.endsWith||"")+"]|$",G="["+F(E.delimiter||"/#?")+"]",N=ce?"^":"",C=0,A=j;C<A.length;C++){var T=A[C];if(typeof T=="string")N+=F(y(T));else{var pe=F(y(T.prefix)),Ce=F(y(T.suffix));if(T.pattern)if(H&&H.push(T),pe||Ce)if(T.modifier==="+"||T.modifier==="*"){var Ee=T.modifier==="*"?"?":"";N+="(?:"+pe+"((?:"+T.pattern+")(?:"+Ce+pe+"(?:"+T.pattern+"))*)"+Ce+")"+Ee}else N+="(?:"+pe+"("+T.pattern+")"+Ce+")"+T.modifier;else N+="("+T.pattern+")"+T.modifier;else N+="(?:"+pe+Ce+")"+T.modifier}}if(de)ve||(N+=G+"?"),N+=E.endsWith?"(?="+g+")":"$";else{var Se=j[j.length-1],Be=typeof Se=="string"?G.indexOf(Se[Se.length-1])>-1:Se===void 0;ve||(N+="(?:"+G+"(?="+g+"))?"),Be||(N+="(?="+G+"|"+g+")")}return new RegExp(N,m(E))}u=ge;function fe(j,H,E){return j instanceof RegExp?ae(j,H):Array.isArray(j)?ue(j,H,E):Ie(j,H,E)}B.Bo=fe},62705:function(P,B,u){var o=u(55639),p=o.Symbol;P.exports=p},29932:function(P){function B(u,o){for(var p=-1,w=u==null?0:u.length,L=Array(w);++p<w;)L[p]=o(u[p],p,u);return L}P.exports=B},62663:function(P){function B(u,o,p,w){var L=-1,M=u==null?0:u.length;for(w&&M&&(p=u[++L]);++L<M;)p=o(p,u[L],L,u);return p}P.exports=B},44286:function(P){function B(u){return u.split("")}P.exports=B},49029:function(P){var B=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function u(o){return o.match(B)||[]}P.exports=u},44239:function(P,B,u){var o=u(62705),p=u(89607),w=u(2333),L="[object Null]",M="[object Undefined]",d=o?o.toStringTag:void 0;function D(F){return F==null?F===void 0?M:L:d&&d in Object(F)?p(F):w(F)}P.exports=D},18674:function(P){function B(u){return function(o){return u==null?void 0:u[o]}}P.exports=B},14259:function(P){function B(u,o,p){var w=-1,L=u.length;o<0&&(o=-o>L?0:L+o),p=p>L?L:p,p<0&&(p+=L),L=o>p?0:p-o>>>0,o>>>=0;for(var M=Array(L);++w<L;)M[w]=u[w+o];return M}P.exports=B},80531:function(P,B,u){var o=u(62705),p=u(29932),w=u(1469),L=u(33448),M=1/0,d=o?o.prototype:void 0,D=d?d.toString:void 0;function F(m){if(typeof m=="string")return m;if(w(m))return p(m,F)+"";if(L(m))return D?D.call(m):"";var ae=m+"";return ae=="0"&&1/m==-M?"-0":ae}P.exports=F},40180:function(P,B,u){var o=u(14259);function p(w,L,M){var d=w.length;return M=M===void 0?d:M,!L&&M>=d?w:o(w,L,M)}P.exports=p},98805:function(P,B,u){var o=u(40180),p=u(62689),w=u(83140),L=u(79833);function M(d){return function(D){D=L(D);var F=p(D)?w(D):void 0,m=F?F[0]:D.charAt(0),ae=F?o(F,1).join(""):D.slice(1);return m[d]()+ae}}P.exports=M},35393:function(P,B,u){var o=u(62663),p=u(53816),w=u(4348),L="['\u2019]",M=RegExp(L,"g");function d(D){return function(F){return o(w(p(F).replace(M,"")),D,"")}}P.exports=d},69389:function(P,B,u){var o=u(18674),p={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},w=o(p);P.exports=w},31957:function(P,B,u){var o=typeof u.g=="object"&&u.g&&u.g.Object===Object&&u.g;P.exports=o},89607:function(P,B,u){var o=u(62705),p=Object.prototype,w=p.hasOwnProperty,L=p.toString,M=o?o.toStringTag:void 0;function d(D){var F=w.call(D,M),m=D[M];try{D[M]=void 0;var ae=!0}catch(Ie){}var ue=L.call(D);return ae&&(F?D[M]=m:delete D[M]),ue}P.exports=d},62689:function(P){var B="\\ud800-\\udfff",u="\\u0300-\\u036f",o="\\ufe20-\\ufe2f",p="\\u20d0-\\u20ff",w=u+o+p,L="\\ufe0e\\ufe0f",M="\\u200d",d=RegExp("["+M+B+w+L+"]");function D(F){return d.test(F)}P.exports=D},93157:function(P){var B=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function u(o){return B.test(o)}P.exports=u},2333:function(P){var B=Object.prototype,u=B.toString;function o(p){return u.call(p)}P.exports=o},55639:function(P,B,u){var o=u(31957),p=typeof self=="object"&&self&&self.Object===Object&&self,w=o||p||Function("return this")();P.exports=w},83140:function(P,B,u){var o=u(44286),p=u(62689),w=u(676);function L(M){return p(M)?w(M):o(M)}P.exports=L},676:function(P){var B="\\ud800-\\udfff",u="\\u0300-\\u036f",o="\\ufe20-\\ufe2f",p="\\u20d0-\\u20ff",w=u+o+p,L="\\ufe0e\\ufe0f",M="["+B+"]",d="["+w+"]",D="\\ud83c[\\udffb-\\udfff]",F="(?:"+d+"|"+D+")",m="[^"+B+"]",ae="(?:\\ud83c[\\udde6-\\uddff]){2}",ue="[\\ud800-\\udbff][\\udc00-\\udfff]",Ie="\\u200d",ge=F+"?",fe="["+L+"]?",j="(?:"+Ie+"(?:"+[m,ae,ue].join("|")+")"+fe+ge+")*",H=fe+ge+j,E="(?:"+[m+d+"?",d,ae,ue,M].join("|")+")",te=RegExp(D+"(?="+D+")|"+E+H,"g");function ve(q){return q.match(te)||[]}P.exports=ve},2757:function(P){var B="\\ud800-\\udfff",u="\\u0300-\\u036f",o="\\ufe20-\\ufe2f",p="\\u20d0-\\u20ff",w=u+o+p,L="\\u2700-\\u27bf",M="a-z\\xdf-\\xf6\\xf8-\\xff",d="\\xac\\xb1\\xd7\\xf7",D="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",F="\\u2000-\\u206f",m=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ae="A-Z\\xc0-\\xd6\\xd8-\\xde",ue="\\ufe0e\\ufe0f",Ie=d+D+F+m,ge="['\u2019]",fe="["+Ie+"]",j="["+w+"]",H="\\d+",E="["+L+"]",te="["+M+"]",ve="[^"+B+Ie+H+L+M+ae+"]",q="\\ud83c[\\udffb-\\udfff]",ce="(?:"+j+"|"+q+")",se="[^"+B+"]",de="(?:\\ud83c[\\udde6-\\uddff]){2}",I="[\\ud800-\\udbff][\\udc00-\\udfff]",y="["+ae+"]",g="\\u200d",G="(?:"+te+"|"+ve+")",N="(?:"+y+"|"+ve+")",C="(?:"+ge+"(?:d|ll|m|re|s|t|ve))?",A="(?:"+ge+"(?:D|LL|M|RE|S|T|VE))?",T=ce+"?",pe="["+ue+"]?",Ce="(?:"+g+"(?:"+[se,de,I].join("|")+")"+pe+T+")*",Ee="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Se="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Be=pe+T+Ce,we="(?:"+[E,de,I].join("|")+")"+Be,De=RegExp([y+"?"+te+"+"+C+"(?="+[fe,y,"$"].join("|")+")",N+"+"+A+"(?="+[fe,y+G,"$"].join("|")+")",y+"?"+G+"+"+C,y+"+"+A,Se,Ee,H,we].join("|"),"g");function _e(an){return an.match(De)||[]}P.exports=_e},68929:function(P,B,u){var o=u(48403),p=u(35393),w=p(function(L,M,d){return M=M.toLowerCase(),L+(d?o(M):M)});P.exports=w},48403:function(P,B,u){var o=u(79833),p=u(11700);function w(L){return p(o(L).toLowerCase())}P.exports=w},53816:function(P,B,u){var o=u(69389),p=u(79833),w=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,L="\\u0300-\\u036f",M="\\ufe20-\\ufe2f",d="\\u20d0-\\u20ff",D=L+M+d,F="["+D+"]",m=RegExp(F,"g");function ae(ue){return ue=p(ue),ue&&ue.replace(w,o).replace(m,"")}P.exports=ae},1469:function(P){var B=Array.isArray;P.exports=B},37005:function(P){function B(u){return u!=null&&typeof u=="object"}P.exports=B},33448:function(P,B,u){var o=u(44239),p=u(37005),w="[object Symbol]";function L(M){return typeof M=="symbol"||p(M)&&o(M)==w}P.exports=L},79833:function(P,B,u){var o=u(80531);function p(w){return w==null?"":o(w)}P.exports=p},11700:function(P,B,u){var o=u(98805),p=o("toUpperCase");P.exports=p},4348:function(P,B,u){var o=u(49029),p=u(93157),w=u(79833),L=u(2757);function M(d,D,F){return d=w(d),D=F?void 0:D,D===void 0?p(d)?L(d):o(d):d.match(D)||[]}P.exports=M},16305:function(P,B){"use strict";var u;u={value:!0},u=void 0,u=Ie,u=ge,B.EQ=H,u=E,u=ce;const o="/",p=I=>I,w=/^[$_\p{ID_Start}]$/u,L=/^[$\u200c\u200d\p{ID_Continue}]$/u,M="https://git.new/pathToRegexpError",d={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function D(I){return I.replace(/[{}()\[\]+?!:*]/g,"\\$&")}function F(I){return I.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}function*m(I){const y=[...I];let g=0;function G(){let N="";if(w.test(y[++g]))for(N+=y[g];L.test(y[++g]);)N+=y[g];else if(y[g]==='"'){let C=g;for(;g<y.length;){if(y[++g]==='"'){g++,C=0;break}y[g]==="\\"?N+=y[++g]:N+=y[g]}if(C)throw new TypeError(`Unterminated quote at ${C}: ${M}`)}if(!N)throw new TypeError(`Missing parameter name at ${g}: ${M}`);return N}for(;g<y.length;){const N=y[g],C=d[N];if(C)yield{type:C,index:g++,value:N};else if(N==="\\")yield{type:"ESCAPED",index:g++,value:y[g++]};else if(N===":"){const A=G();yield{type:"PARAM",index:g,value:A}}else if(N==="*"){const A=G();yield{type:"WILDCARD",index:g,value:A}}else yield{type:"CHAR",index:g,value:y[g++]}}return{type:"END",index:g,value:""}}class ae{constructor(y){this.tokens=y}peek(){if(!this._peek){const y=this.tokens.next();this._peek=y.value}return this._peek}tryConsume(y){const g=this.peek();if(g.type===y)return this._peek=void 0,g.value}consume(y){const g=this.tryConsume(y);if(g!==void 0)return g;const{type:G,index:N}=this.peek();throw new TypeError(`Unexpected ${G} at ${N}, expected ${y}: ${M}`)}text(){let y="",g;for(;g=this.tryConsume("CHAR")||this.tryConsume("ESCAPED");)y+=g;return y}}class ue{constructor(y){this.tokens=y}}u=ue;function Ie(I,y={}){const{encodePath:g=p}=y,G=new ae(m(I));function N(A){const T=[];for(;;){const pe=G.text();pe&&T.push({type:"text",value:g(pe)});const Ce=G.tryConsume("PARAM");if(Ce){T.push({type:"param",name:Ce});continue}const Ee=G.tryConsume("WILDCARD");if(Ee){T.push({type:"wildcard",name:Ee});continue}if(G.tryConsume("{")){T.push({type:"group",tokens:N("}")});continue}return G.consume(A),T}}const C=N("END");return new ue(C)}function ge(I,y={}){const{encode:g=encodeURIComponent,delimiter:G=o}=y,N=I instanceof ue?I:Ie(I,y),C=fe(N.tokens,G,g);return function(T={}){const[pe,...Ce]=C(T);if(Ce.length)throw new TypeError(`Missing parameters: ${Ce.join(", ")}`);return pe}}function fe(I,y,g){const G=I.map(N=>j(N,y,g));return N=>{const C=[""];for(const A of G){const[T,...pe]=A(N);C[0]+=T,C.push(...pe)}return C}}function j(I,y,g){if(I.type==="text")return()=>[I.value];if(I.type==="group"){const N=fe(I.tokens,y,g);return C=>{const[A,...T]=N(C);return T.length?[""]:[A]}}const G=g||p;return I.type==="wildcard"&&g!==!1?N=>{const C=N[I.name];if(C==null)return["",I.name];if(!Array.isArray(C)||C.length===0)throw new TypeError(`Expected "${I.name}" to be a non-empty array`);return[C.map((A,T)=>{if(typeof A!="string")throw new TypeError(`Expected "${I.name}/${T}" to be a string`);return G(A)}).join(y)]}:N=>{const C=N[I.name];if(C==null)return["",I.name];if(typeof C!="string")throw new TypeError(`Expected "${I.name}" to be a string`);return[G(C)]}}function H(I,y={}){const{decode:g=decodeURIComponent,delimiter:G=o}=y,{regexp:N,keys:C}=E(I,y),A=C.map(T=>g===!1?p:T.type==="param"?g:pe=>pe.split(G).map(g));return function(pe){const Ce=N.exec(pe);if(!Ce)return!1;const Ee=Ce[0],Se=Object.create(null);for(let Be=1;Be<Ce.length;Be++){if(Ce[Be]===void 0)continue;const we=C[Be-1],De=A[Be-1];Se[we.name]=De(Ce[Be])}return{path:Ee,params:Se}}}function E(I,y={}){const{delimiter:g=o,end:G=!0,sensitive:N=!1,trailing:C=!0}=y,A=[],T=[],pe=N?"":"i",Ee=(Array.isArray(I)?I:[I]).map(we=>we instanceof ue?we:Ie(we,y));for(const{tokens:we}of Ee)for(const De of te(we,0,[])){const _e=ve(De,g,A);T.push(_e)}let Se=`^(?:${T.join("|")})`;return C&&(Se+=`(?:${F(g)}$)?`),Se+=G?"$":`(?=${F(g)}|$)`,{regexp:new RegExp(Se,pe),keys:A}}function*te(I,y,g){if(y===I.length)return yield g;const G=I[y];if(G.type==="group"){const N=g.slice();for(const C of te(G.tokens,0,N))yield*Zt(te(I,y+1,C))}else g.push(G);yield*Zt(te(I,y+1,g))}function ve(I,y,g){let G="",N="",C=!0;for(let A=0;A<I.length;A++){const T=I[A];if(T.type==="text"){G+=F(T.value),N+=T.value,C||(C=T.value.includes(y));continue}if(T.type==="param"||T.type==="wildcard"){if(!C&&!N)throw new TypeError(`Missing text after "${T.name}": ${M}`);T.type==="param"?G+=`(${q(y,C?"":N)}+)`:G+="([\\s\\S]+)",g.push(T),N="",C=!1;continue}}return G}function q(I,y){return y.length<2?I.length<2?`[^${F(I+y)}]`:`(?:(?!${F(I)})[^${F(y)}])`:I.length<2?`(?:(?!${F(y)})[^${F(I)}])`:`(?:(?!${F(y)}|${F(I)})[\\s\\S])`}function ce(I){return I.tokens.map(function y(g,G,N){if(g.type==="text")return D(g.value);if(g.type==="group")return`{${g.tokens.map(y).join("")}}`;const A=se(g.name)&&de(N[G+1])?g.name:JSON.stringify(g.name);if(g.type==="param")return`:${A}`;if(g.type==="wildcard")return`*${A}`;throw new TypeError(`Unexpected token: ${g}`)}).join("")}function se(I){const[y,...g]=I;return w.test(y)?g.every(G=>L.test(G)):!1}function de(I){return(I==null?void 0:I.type)!=="text"?!0:!L.test(I.value[0])}}}]);
|
|
}()); |