@adminui-dev/antd-layout 1.4.8 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -17,6 +17,6 @@
17
17
  * This source code is licensed under the MIT license found in the
18
18
  * LICENSE file in the root directory of this source tree.
19
19
  */
20
- "production"===process.env.NODE_ENV?x.exports=function(){if(m)return f;m=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(n,r,t){var o=null;if(void 0!==t&&(o=""+t),void 0!==r.key&&(o=""+r.key),"key"in r)for(var i in t={},r)"key"!==i&&(t[i]=r[i]);else t=r;return r=t.ref,{$$typeof:e,type:n,key:o,ref:void 0!==r?r:null,props:t}}return f.Fragment=n,f.jsx=r,f.jsxs=r,f}():x.exports=(p||(p=1,"production"!==process.env.NODE_ENV&&function(){function n(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===C?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case h:return"Fragment";case f:return"Profiler";case x:return"StrictMode";case _:return"Suspense";case j:return"SuspenseList";case S:return"Activity"}if("object"==typeof e)switch("number"==typeof e.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case p:return"Portal";case b:return e.displayName||"Context";case y:return(e._context.displayName||"Context")+".Consumer";case v:var r=e.render;return(e=e.displayName)||(e=""!==(e=r.displayName||r.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case k:return null!==(r=e.displayName||null)?r:n(e.type)||"Memo";case w:r=e._payload,e=e._init;try{return n(e(r))}catch(e){}}return null}function r(e){return""+e}function t(e){try{r(e);var n=!1}catch(e){n=!0}if(n){var t=(n=console).error,o="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(n,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",o),r(e)}}function o(e){if(e===h)return"<>";if("object"==typeof e&&null!==e&&e.$$typeof===w)return"<...>";try{var r=n(e);return r?"<"+r+">":"<...>"}catch(e){return"<...>"}}function i(){return Error("react-stack-top-frame")}function a(){var e=n(this.type);return T[e]||(T[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),void 0!==(e=this.props.ref)?e:null}function l(e,r,o,i,l,d){var u,p=r.children;if(void 0!==p)if(i)if(M(p)){for(i=0;i<p.length;i++)s(p[i]);Object.freeze&&Object.freeze(p)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else s(p);if(I.call(r,"key")){p=n(e);var h=Object.keys(r).filter(function(e){return"key"!==e});i=0<h.length?"{key: someKey, "+h.join(": ..., ")+": ...}":"{key: someKey}",F[p+i]||(h=0<h.length?"{"+h.join(": ..., ")+": ...}":"{}",console.error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',i,p,h,p),F[p+i]=!0)}if(p=null,void 0!==o&&(t(o),p=""+o),function(e){if(I.call(e,"key")){var n=Object.getOwnPropertyDescriptor(e,"key").get;if(n&&n.isReactWarning)return!1}return void 0!==e.key}(r)&&(t(r.key),p=""+r.key),"key"in r)for(var x in o={},r)"key"!==x&&(o[x]=r[x]);else o=r;return p&&function(e,n){function r(){c||(c=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",n))}r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}(o,"function"==typeof e?e.displayName||e.name||"Unknown":e),function(e,n,r,t,o,i){var l=r.ref;return e={$$typeof:m,type:e,key:n,props:r,_owner:t},null!==(void 0!==l?l:null)?Object.defineProperty(e,"ref",{enumerable:!1,get:a}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:o}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(e,p,o,null===(u=B.A)?null:u.getOwner(),l,d)}function s(e){d(e)?e._store&&(e._store.validated=1):"object"==typeof e&&null!==e&&e.$$typeof===w&&("fulfilled"===e._payload.status?d(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function d(e){return"object"==typeof e&&null!==e&&e.$$typeof===m}var c,u=e,m=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),b=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),C=Symbol.for("react.client.reference"),B=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=Object.prototype.hasOwnProperty,M=Array.isArray,P=console.createTask?console.createTask:function(){return null},T={},N=(u={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(u,i)(),z=P(o(i)),F={};g.Fragment=h,g.jsx=function(e,n,r){var t=1e4>B.recentlyCreatedOwnerStacks++;return l(e,n,r,!1,t?Error("react-stack-top-frame"):N,t?P(o(e)):z)},g.jsxs=function(e,n,r){var t=1e4>B.recentlyCreatedOwnerStacks++;return l(e,n,r,!0,t?Error("react-stack-top-frame"):N,t?P(o(e)):z)}}()),g);var y=x.exports;function b(e,n){void 0===n&&(n={});var r=n.insertAt;if(e&&"undefined"!=typeof document){var t=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===r&&t.firstChild?t.insertBefore(o,t.firstChild):t.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}b("@layer base {\r\n html, body {\r\n padding: 0;\r\n margin: 0;\r\n border: 0;\r\n width: 100%; \r\n height: 100%;\r\n }\r\n #root { \r\n text-align: initial;\r\n width: 100%;\r\n height:100%\r\n } \r\n}\r\n*, *:before, *:after {\r\n box-sizing: border-box;\r\n}\r\n.Layout-module_rootBox__3JHjy {\r\n text-rendering: optimizeLegibility;\r\n -webkit-font-smoothing: antialiased;\r\n -moz-osx-font-smoothing: grayscale;\r\n text-align: initial;\r\n width: 100%;\r\n min-height: 100%;\r\n}\r\n.Layout-module_rootBackground__j3UVG {\r\n box-sizing: border-box; \r\n pointer-events: none;\r\n inset-block-start:0;\r\n inset-inline-start:0; \r\n width: 100%; \r\n min-width: 100vw;\r\n height:100%;\r\n min-height: 100vh;\r\n overflow: hidden;\r\n position: fixed;\r\n z-index: 0;\r\n}\r\n.Layout-module_rootBackground__j3UVG>div{\r\n width:100%;\r\n height: 100%;\r\n overflow: hidden;\r\n}\r\n.Layout-module_rootLayout__jVEEF {\r\n position: relative;\r\n z-index: 1;\r\n box-sizing: border-box; \r\n width: 100%;\r\n min-height: 100%;\r\n display: flex; \r\n flex-flow: row;\r\n background-color: transparent;\r\n container-type: inline-size;\r\n}\r\n\r\n.Layout-module_mainLayout__6W9W9 {\r\n box-sizing: border-box; \r\n display: flex;\r\n flex-flow: column; \r\n width: 100%;\r\n min-width: 0px;\r\n min-height: 100vh;\r\n}\r\n");const v=Symbol("LayoutAside"),_=Symbol("LayoutContent"),j=Symbol("LayoutHeader"),k=Symbol("LayoutBackground"),w={headerHeight:50,asideWidth:260,layoutType:"leftMenu",collapsedPosition:"bottom",avatarPosition:"rightTop",theme:"system",visibleBreadcrumbIcon:"none",primaryColor:"#417ffb"},S=e.createContext({setLayoutConfig:()=>{},setLocale:()=>{}}),C=e.createContext({locale:"en-US",languages:[],layoutConfig:{},themeSkinMap:{system:[],custom:[]}}),B=()=>e.useContext(C);function I(e){return y.jsx("div",{className:"Layout-module_rootBackground__j3UVG",children:y.jsx(y.Fragment,{children:e.children})})}function M(e){return y.jsx(y.Fragment,{children:e.children})}function P(e){return y.jsx(y.Fragment,{children:e.children})}function T(e){return y.jsx(y.Fragment,{children:e.children})}I.displayName="LayoutBackground",I.role=k,M.displayName="LayoutContent",M.role=_,P.displayName="LayoutAside",P.role=v,T.displayName="LayoutHeader",T.role=j;function N(n){let r=null,t=null,o=null,i=null;e.Children.forEach(n.children,e=>{const n=e.type.role;n===j?r=e:n===_?t=e:n===v?o=e:n===k&&(i=e)});const a=n.style||n.styles?.root;return y.jsx(y.Fragment,{children:y.jsxs("div",{ref:n.ref,className:"layout-module_rootBox__Y8bEx",style:a,children:[i,y.jsxs("div",{className:"layout-module_rootLayout__TePvr",children:[o,y.jsxs("div",{className:"layout-module_mainLayout__a8Tb9",style:{...n.styles?.main},children:[r,t]})]})]})})}function z(n){const r=!!document.fullscreenElement,[t,o]=e.useState(r),i=()=>{o(!!document.fullscreenElement)},a=e=>{"F11"===e.code&&(e.preventDefault(),l())};e.useEffect(()=>(document.addEventListener("fullscreenchange",i),document.addEventListener("keydown",a,!0),()=>{document.removeEventListener("fullscreenchange",i),document.removeEventListener("keydown",a)}),[]);const l=()=>{t?document.exitFullscreen():document.documentElement.requestFullscreen()};if(!n.buttons||n.buttons.length<2)return y.jsx(y.Fragment,{});const[s,d]=n.buttons,c=t?s:d;return e.cloneElement(c,{onClick:e=>{console.log(e),l()}})}b("@layer base {\r\n html, body {\r\n padding: 0;\r\n margin: 0;\r\n border: 0;\r\n width: 100%; \r\n height: 100%;\r\n }\r\n #root { \r\n text-align: initial;\r\n width: 100%;\r\n height:100%\r\n } \r\n}\r\n*, *:before, *:after {\r\n box-sizing: border-box;\r\n}\r\n.layout-module_rootBox__Y8bEx {\r\n text-rendering: optimizeLegibility;\r\n -webkit-font-smoothing: antialiased;\r\n -moz-osx-font-smoothing: grayscale;\r\n text-align: initial;\r\n width: 100%;\r\n min-height: 100%;\r\n}\r\n.layout-module_rootBackground__vEs6e {\r\n box-sizing: border-box; \r\n pointer-events: none;\r\n inset-block-start:0;\r\n inset-inline-start:0; \r\n width: 100%; \r\n min-width: 100vw;\r\n height:100%;\r\n min-height: 100vh;\r\n overflow: hidden;\r\n position: fixed;\r\n z-index: 0;\r\n}\r\n.layout-module_rootBackground__vEs6e>div{\r\n width:100%;\r\n height: 100%;\r\n overflow: hidden;\r\n}\r\n.layout-module_rootLayout__TePvr {\r\n position: relative;\r\n z-index: 1;\r\n box-sizing: border-box; \r\n width: 100%;\r\n min-height: 100%;\r\n display: flex; \r\n flex-flow: row;\r\n background-color: transparent;\r\n container-type: inline-size;\r\n}\r\n\r\n.layout-module_mainLayout__a8Tb9 {\r\n box-sizing: border-box; \r\n display: flex;\r\n flex-flow: column; \r\n width: 100%;\r\n min-width: 0px;\r\n min-height: 100vh;\r\n}\r\n"),N.Aside=P,N.Content=M,N.Header=T,N.Background=I;const F=e=>({r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16),a:9===e.length?(parseInt(e.slice(7,9),16)/255).toFixed(2):1}),L=(e,n)=>{const{r:r,g:t,b:o,a:i}=F(e);return`rgba(${r}, ${t}, ${o}, ${n??i})`};function E(e,n){void 0===n&&(n={});var r=n.insertAt;if(e&&"undefined"!=typeof document){var t=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===r&&t.firstChild?t.insertBefore(o,t.firstChild):t.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}E("@layer adminui-layout { \r\n :root{\r\n --pageload-bar-color:#222222;\r\n } \r\n #root {\r\n padding: 0;\r\n margin: 0;\r\n border: 0;\r\n width: 100%;\r\n height: 100%;\r\n }\r\n}\r\n/** Menu icon automatic compact mode */\r\n.adminui-menu-icon {\r\n font-size: var(--adminui-menu-icon-size);\r\n width: var(--adminui-menu-icon-size);\r\n height: var(--adminui-menu-icon-size); \r\n}\r\n.adminui-btn-icon {\r\n display: flex;\r\n justify-items: center;\r\n align-items: center;\r\n}\r\n.adminui-menu .adminui-menu-title-content-with-extra {\r\n width: auto;\r\n}\r\n.adminui-menu .adminui-menu-title-content-with-extra .adminui-menu-item-extra {\r\n display: inline-flex;\r\n}");var O="index-module_headerLayout__rv59v",A="index-module_headerLayoutSticky__6uFCj",R="index-module_headerLayoutFixed__t5Hmo",H="index-module_headerLayoutBox__h0fIt",W="index-module_headerMenu__WHmJN",$="index-module_headerTitle__jGbCX",D="index-module_headerBrandBox__U2J16",K="index-module_toolbarPanel__Pp8PS",G="index-module_toolbarItem__RkaXd",V="index-module_toolbarAvatarItem__p6TXY",U="index-module_siderBaseStyle__zg1FM",X="index-module_siderMask__cCjMh",q="index-module_siderContentBox__dGgRe",Y="index-module_siderContentItem__kl3cR",J="index-module_collapsedTrack__LoJ3V",Z="index-module_collapsedTrackButton__m33XS",Q="index-module_brandPanel__2GRgq",ee="index-module_labelBox__dX8fY",ne="index-module_brandNodeBox__W-iM6",re="index-module_brandMobilePanel__m1Diu",te="index-module_largeBrandPanel__pLn--",oe="index-module_title__SbfFY",ie="index-module_largeBrandCollPanel__nsGKB",ae="index-module_avatarPanel__fFvCS",le="index-module_collapsedMobile__Yu8F4",se="index-module_collapsedContainer__23dQh",de="index-module_breadcrumbBox__w3MOx",ce="index-module_breadcrumbFirstIcon__9zEmW",ue="index-module_breadcrumbAllIcon__HYkKa",me="index-module_containerBox__pv0qs",pe="index-module_containerHeader__p8V0W",he="index-module_contentHeaderMenu__zSoS7",xe="index-module_containerHeaderToolbar__pGsCN",fe="index-module_round__WoVxM";function ge(e){const{size:n=16}=e;return h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:h.jsx("path",{d:"m15 18-6-6 6-6"})})}function ye(e){const{size:n=16}=e;return h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:h.jsx("path",{d:"m9 18 6-6-6-6"})})}function be(e){const{size:n=16}=e;return h.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[h.jsx("path",{d:"M21 5H11"}),h.jsx("path",{d:"M21 12H11"}),h.jsx("path",{d:"M21 19H11"}),h.jsx("path",{d:"m7 8-4 4 4 4"})]})}function ve(e){const{size:n=16}=e;return h.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[h.jsx("path",{d:"M21 5H11"}),h.jsx("path",{d:"M21 12H11"}),h.jsx("path",{d:"M21 19H11"}),h.jsx("path",{d:"m3 8 4 4-4 4"})]})}function _e(e){const{size:n=16}=e;return h.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[h.jsx("path",{d:"m7 15 5 5 5-5"}),h.jsx("path",{d:"m7 9 5-5 5 5"})]})}function je(e){const{size:n=16}=e;return h.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[h.jsx("path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"}),h.jsx("circle",{cx:"12",cy:"7",r:"4"})]})}function ke(e){const{size:n=16}=e;return h.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[h.jsx("path",{d:"M8 3v3a2 2 0 0 1-2 2H3"}),h.jsx("path",{d:"M21 8h-3a2 2 0 0 1-2-2V3"}),h.jsx("path",{d:"M3 16h3a2 2 0 0 1 2 2v3"}),h.jsx("path",{d:"M16 21v-3a2 2 0 0 1 2-2h3"})]})}function we(e){const{size:n=16}=e;return h.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[h.jsx("path",{d:"M8 3H5a2 2 0 0 0-2 2v3"}),h.jsx("path",{d:"M21 8V5a2 2 0 0 0-2-2h-3"}),h.jsx("path",{d:"M3 16v3a2 2 0 0 0 2 2h3"}),h.jsx("path",{d:"M16 21h3a2 2 0 0 0 2-2v-3"})]})}function Se(n){const[r,t]=e.useState(!1),{hasChild:o,...i}=n;e.useEffect(()=>{if(n.src)if("string"==typeof n.src){const e=new Image;e.src=n.src,e.onload=()=>t(!0),e.onerror=()=>t(!0)}else t(!0)},[n.src]);const a={...n.style,transition:"opacity 0.3s ease-out",opacity:r?1:0,display:"flex",justifyItems:"center",alignItems:"center"},l=h.jsx("img",{...i});return n.hasChild?l:h.jsx("div",{style:a,children:l})}E('@layer base { \r\n\r\n :root { \r\n --sb-track-color: transparent;\r\n --sb-thumb-color: #ccc;\r\n --sb-thumb-hover: #b3b3b3;\r\n --sb-html-track-color: rgb(250,250,250);\r\n color-scheme: light;\r\n }\r\n\r\n * {\r\n box-sizing: border-box;\r\n scrollbar-width: thin;\r\n scrollbar-color: var(--sb-thumb-color) var(--sb-track-color);\r\n }\r\n\r\n html {\r\n scrollbar-color: var(--sb-thumb-color) var(--sb-html-track-color);\r\n }\r\n \r\n @media (prefers-color-scheme: dark) {\r\n :root {\r\n --sb-track-color: transparent;\r\n --sb-thumb-color: #383838;\r\n --sb-thumb-hover: rgb(49, 49, 49);\r\n --sb-html-track-color: rgb(20,20,20);\r\n color-scheme: dark;\r\n }\r\n }\r\n\r\n :root[style="color-scheme: dark;"],\r\n :root[class="dark"] { \r\n --sb-track-color: transparent;\r\n --sb-thumb-color: #383838;\r\n --sb-thumb-hover: rgb(49, 49, 49); \r\n --sb-html-track-color: rgb(20,20,20); \r\n color-scheme: dark; \r\n }\r\n\r\n ::-webkit-scrollbar {\r\n width: 8px;\r\n height: 8px;\r\n background-color: transparent;\r\n } \r\n\r\n ::-webkit-scrollbar-track {\r\n background-color: var(--sb-track-color);\r\n border-radius: 10px;\r\n }\r\n\r\n ::-webkit-scrollbar-thumb {\r\n background-color: var(--sb-thumb-color);\r\n border-radius: 10px; \r\n border: 2px solid var(--sb-track-color);\r\n }\r\n ::-webkit-scrollbar-thumb:hover {\r\n background-color: var(--sb-thumb-hover);\r\n } \r\n}\r\n/** header */\r\n.index-module_headerLayout__rv59v {\r\n box-sizing: border-box;\r\n min-width: 100%;\r\n padding-block: 0;\r\n padding-inline: 0; \r\n transition: opacity var(--adminui-motion-duration-mid), padding var(--adminui-motion-duration-mid), width var(--adminui-motion-duration-mid);\r\n}\r\n\r\n.index-module_headerLayoutSticky__6uFCj {\r\n position: sticky;\r\n width: 100%;\r\n z-index: 100;\r\n top:0;\r\n}\r\n.index-module_headerLayoutFixed__t5Hmo {\r\n position: fixed;\r\n width: 100%;\r\n z-index: 100;\r\n inset-block-start: 0;\r\n inset-inline-end: 0;\r\n}\r\n.index-module_headerLayoutBox__h0fIt {\r\n display: flex;\r\n flex-flow: row;\r\n justify-content: space-between;\r\n align-items: center;\r\n}\r\n.index-module_headerMenu__WHmJN {\r\n border:0px;\r\n background-color: transparent;\r\n flex:1;\r\n height: 100%;\r\n min-width: 0px;\r\n}\r\n.index-module_headerTitle__jGbCX {\r\n white-space: nowrap;\r\n text-overflow: ellipsis;\r\n}\r\n.index-module_headerBrandBox__U2J16 {\r\n width: auto; \r\n}\r\n\r\n.index-module_layoutBlur__GpCPx { \r\n transform: translateZ(0);\r\n backdrop-filter: blur(8px);\r\n}\r\n\r\n.index-module_toolbarPanel__Pp8PS {\r\n display: flex;\r\n justify-content: end;\r\n align-items: center;\r\n}\r\n.index-module_toolbarPanel__Pp8PS .index-module_toolbarItem__RkaXd {\r\n display: flex;\r\n justify-content: end;\r\n align-items: center;\r\n}\r\n.index-module_toolbarAvatarItem__p6TXY {\r\n display: flex;\r\n align-items: center;\r\n padding-inline: var(--adminui-padding-xs); \r\n gap: 8px;\r\n cursor: pointer;\r\n}\r\n.index-module_toolbarAvatarItem__p6TXY span {\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n min-width: 0;\r\n max-width: 100px;\r\n}\r\n\r\n/** sider */\r\n.index-module_siderBaseStyle__zg1FM {\r\n background:\'transparent\'; \r\n padding-bottom: 0px; \r\n z-index: 10;\r\n transition: opacity var(--adminui-motion-duration-mid), padding var(--adminui-motion-duration-mid), width var(--adminui-motion-duration-mid); \r\n}\r\n\r\n.index-module_siderMask__cCjMh {\r\n overflow: hidden;\r\n transition:background-color 0.3s, min-width 0.3s, max-width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)\r\n}\r\n.index-module_siderContentBox__dGgRe {\r\n display: flex;\r\n flex-flow: column;\r\n align-items: center;\r\n width: 100%;\r\n min-height: 0px;\r\n transition: opacity var(--adminui-motion-duration-mid), padding var(--adminui-motion-duration-mid), width var(--adminui-motion-duration-mid); \r\n}\r\n\r\n.index-module_siderContentItem__kl3cR { \r\n display: flex; \r\n align-items: center;\r\n width: 100%; \r\n min-height: 0px;\r\n transition: opacity var(--adminui-motion-duration-mid), padding var(--adminui-motion-duration-mid), width var(--adminui-motion-duration-mid); \r\n}\r\n.index-module_siderContentItem__kl3cR>div{\r\n display: flex; \r\n align-items: center;\r\n opacity: 1;\r\n transition: opacity var(--adminui-motion-duration-mid), padding var(--adminui-motion-duration-mid), width var(--adminui-motion-duration-mid); \r\n}\r\n\r\n.index-module_collapsedTrack__LoJ3V {\r\n display: flex;\r\n flex-flow: column;\r\n justify-content: center;\r\n align-items: center; \r\n position: absolute;\r\n top:0px;\r\n bottom:0px;\r\n right:-14px;\r\n cursor: pointer;\r\n}\r\n.index-module_collapsedTrack__LoJ3V .index-module_collapsedTrackButton__m33XS {\r\n width: 14px;\r\n height: 36px;\r\n border-top-right-radius: 4px;\r\n border-bottom-right-radius: 4px;\r\n display: flex;\r\n flex-flow: column;\r\n justify-content: center;\r\n align-items: center; \r\n opacity: 0; \r\n transition: opacity var(--adminui-motion-duration-mid), padding var(--adminui-motion-duration-mid), width var(--adminui-motion-duration-mid); \r\n\r\n}\r\n.index-module_collapsedTrack__LoJ3V:hover .index-module_collapsedTrackButton__m33XS {\r\n opacity: 1;\r\n}\r\n\r\n/** brand */ \r\n.index-module_brandPanel__2GRgq {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n padding:var(--adminui-margin-xxs);\r\n}\r\n.index-module_brandPanel__2GRgq button {\r\n display: flex;\r\n width: 100%;\r\n align-items: center;\r\n opacity: 1;\r\n padding-inline: var(--adminui-padding-xs); \r\n transition: all 0.3s;\r\n\r\n}\r\n.index-module_brandPanel__2GRgq a {\r\n display: flex;\r\n width: 100%;\r\n height: 100%;\r\n align-items: center;\r\n opacity: 1;\r\n color:inherit; \r\n transition: all 0.3s; \r\n padding-inline: var(--adminui-padding-xs);\r\n border-radius: var(--adminui-border-radius-lg);\r\n}\r\n\r\n.index-module_brandPanel__2GRgq a:hover{\r\n background-color: var(--adminui-control-item-bg-hover);\r\n}\r\n.index-module_brandPanel__2GRgq a:active{\r\n background-color: var(--adminui-control-item-bg-active);\r\n}\r\n\r\n.index-module_brandPanel__2GRgq h4{\r\n margin:0px;\r\n padding:0px;\r\n line-height: 1rem;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n min-width: 0;\r\n}\r\n.index-module_brandPanel__2GRgq span {\r\n margin:0px; \r\n line-height: 1rem;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n min-width: 0;\r\n}\r\n\r\n.index-module_brandPanel__2GRgq .index-module_labelBox__dX8fY {\r\n width: 100%; \r\n display:flex;\r\n flex-flow:column;\r\n justify-content:space-between;\r\n transition: opacity var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out), padding var(--adminui-motion-duration-mid) var(--adminui-motion-ease-in-out);\r\n}\r\n.index-module_brandNodeBox__W-iM6 {\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n color:var(--adminui-color-primary);\r\n transition: opacity var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out), width var(--adminui-motion-duration-mid) var(--adminui-motion-ease-in-out);\r\n}\r\n\r\n.index-module_brandMobilePanel__m1Diu {\r\n opacity: 0;\r\n width: 0px;\r\n overflow: hidden;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n height: 100%;\r\n gap: 8px;\r\n transition: opacity var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out), width var(--adminui-motion-duration-mid) var(--adminui-motion-ease-in-out),padding var(--adminui-motion-duration-mid) var(--adminui-motion-ease-in-out);\r\n}\r\n.index-module_brandMobilePanel__m1Diu a {\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n}\r\n.index-module_largeBrandPanel__pLn-- {\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n flex-flow: column;\r\n gap: 2px;\r\n padding: var(--adminui-padding-lg); \r\n}\r\n\r\n.index-module_largeBrandPanel__pLn-- img {\r\n transition: width var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out); \r\n}\r\n.index-module_largeBrandPanel__pLn--\x3ediv{\r\n opacity: 1;\r\n text-align: center;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n flex-flow: column; \r\n overflow: hidden;\r\n width: 100%;\r\n transition: opacity var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out), height var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out);\r\n}\r\n.index-module_largeBrandPanel__pLn-- span {\r\n font-size: large;\r\n width: 100%;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n min-width: 0;\r\n}\r\n.index-module_largeBrandPanel__pLn-- span.index-module_title__SbfFY {\r\n font-size: small;\r\n color:var(--adminui-color-text-tertiary);\r\n}\r\n.index-module_largeBrandCollPanel__nsGKB {\r\n padding: var(--adminui-margin-xxs);\r\n}\r\n.index-module_largeBrandCollPanel__nsGKB a {\r\n opacity: 1;\r\n color:inherit; \r\n padding: var(--adminui-padding-xs);\r\n border-radius: var(--adminui-border-radius-lg);\r\n}\r\n.index-module_largeBrandCollPanel__nsGKB a:hover{\r\n background-color: var(--adminui-control-item-bg-hover);\r\n}\r\n.index-module_largeBrandCollPanel__nsGKB a:active{\r\n background-color: var(--adminui-control-item-bg-active);\r\n}\r\n/** avatar */\r\n.index-module_avatarPanel__fFvCS {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n padding:var(--adminui-margin-xxs);\r\n}\r\n.index-module_avatarPanel__fFvCS a {\r\n display: flex;\r\n width: 100%;\r\n height: 100%;\r\n align-items: center;\r\n opacity: 1;\r\n color:inherit; \r\n transition: all 0.3s;\r\n padding-inline: var(--adminui-padding-xs);\r\n border-radius: var(--adminui-border-radius-lg);\r\n}\r\n\r\n.index-module_avatarPanel__fFvCS a:hover{\r\n background-color: var(--adminui-control-item-bg-hover);\r\n}\r\n.index-module_avatarPanel__fFvCS a:active{\r\n background-color: var(--adminui-control-item-bg-active);\r\n}\r\n\r\n.index-module_avatarPanel__fFvCS h4{\r\n width: 90%;\r\n margin:0px;\r\n padding:0px;\r\n line-height: 1rem;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n min-width: 0;\r\n}\r\n.index-module_avatarPanel__fFvCS span {\r\n width: 90%;\r\n margin:0px; \r\n line-height: 1rem;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n min-width: 0;\r\n}\r\n\r\n.index-module_avatarPanel__fFvCS .index-module_labelBox__dX8fY {\r\n width: 100%;\r\n display:flex;\r\n flex-flow:column;\r\n justify-content:space-between;\r\n transition: opacity var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out);\r\n}\r\n\r\n.index-module_collapsedMobile__Yu8F4 { \r\n display: none;\r\n justify-content: center;\r\n align-items: center;\r\n}\r\n.index-module_collapsedContainer__23dQh {\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n}\r\n.index-module_breadcrumbBox__w3MOx li .adminui-breadcrumb-link{\r\n display: flex;\r\n align-items: center;\r\n gap:var(--adminui-margin-xxs);\r\n}\r\n\r\n.index-module_breadcrumbBox__w3MOx li .adminui-breadcrumb-link>span[role="img"],\r\n.index-module_breadcrumbBox__w3MOx li .adminui-breadcrumb-link>svg{\r\n display: none;\r\n}\r\n.index-module_breadcrumbFirstIcon__9zEmW li:first-of-type .adminui-breadcrumb-link>span[role="img"],\r\n.index-module_breadcrumbFirstIcon__9zEmW li:first-of-type .adminui-breadcrumb-link>svg\r\n{\r\n display: inline-flex;\r\n}\r\n.index-module_breadcrumbAllIcon__HYkKa li .adminui-breadcrumb-link>span[role="img"],\r\n.index-module_breadcrumbAllIcon__HYkKa li .adminui-breadcrumb-link>svg{\r\n display: inline-flex;\r\n}\r\n\r\n/** container */\r\n.index-module_containerBox__pv0qs {\r\n box-sizing: border-box;\r\n background-color: transparent;\r\n display: flex;\r\n flex-flow: column;\r\n flex:auto;\r\n}\r\n\r\n.index-module_containerBox__pv0qs>footer{\r\n display: flex;\r\n flex-flow: column;\r\n align-items: center;\r\n justify-content: center;\r\n width: 100%;\r\n color:var(--adminui-color-text-description);\r\n padding:var(--adminui-padding);\r\n}\r\n.index-module_containerBox__pv0qs>footer>div{\r\n text-align: center;\r\n}\r\n.index-module_containerHeader__p8V0W {\r\n display: flex;\r\n justify-content:flex-start;\r\n align-items: center;\r\n padding-block-end: var(--adminui-padding-xs);\r\n}\r\n.index-module_containerHeaderCollapsed__XGlnh {\r\n display: flex;\r\n gap:6px;\r\n align-items: center;\r\n}\r\n.index-module_contentHeaderMenu__zSoS7 {\r\n display: flex;\r\n flex-flow: column;\r\n justify-content: center;\r\n padding-inline-start: var(--adminui-padding-xs);\r\n gap:var(--adminui-margin-xs);\r\n}\r\n.index-module_contentHeaderMenu__zSoS7>h3{\r\n box-sizing: border-box;\r\n line-height: var(--adminui-line-height);\r\n margin:0px;\r\n padding:0px;\r\n}\r\n.index-module_containerHeaderToolbar__pGsCN {\r\n flex:1;\r\n display: flex;\r\n justify-content: flex-end; \r\n align-items: center;\r\n}\r\n\r\n/** antd(adminui) */\r\n.index-module_headerLayout__rv59v .adminui-layout-header{\r\n padding-inline: 0px;\r\n}\r\n.index-module_headerLayout__rv59v .adminui-btn,\r\n.index-module_siderBaseStyle__zg1FM .adminui-btn{\r\n font-size: inherit;\r\n}\r\n.index-module_headerLayoutBox__h0fIt.index-module_round__WoVxM .adminui-menu-horizontal >.adminui-menu-item::after, \r\n.index-module_headerLayoutBox__h0fIt.index-module_round__WoVxM .adminui-menu-horizontal >.adminui-menu-submenu::after { \r\n border-radius: 4px;\r\n}\r\n\r\n.index-module_siderBaseStyle__zg1FM .adminui-layout-sider-trigger{\r\n position: absolute; \r\n top:0; \r\n right:0;\r\n height:100%;\r\n}\r\n.index-module_siderBaseStyle__zg1FM .adminui-layout-sider-children {\r\n display: flex;\r\n flex-flow: column;\r\n margin-top: 0px;\r\n padding-top: 0px;\r\n\r\n}\r\n\r\n@container (max-width: 576px) { \r\n .index-module_headerLayout__rv59v .adminui-layout-header {\r\n padding-inline-start: var(--adminui-padding-xs);\r\n }\r\n .index-module_headerMenu__WHmJN {\r\n justify-content: end;\r\n max-width: 80px;\r\n } \r\n .index-module_headerBrandBox__U2J16 {\r\n display: none;\r\n }\r\n .index-module_siderMask__cCjMh {\r\n display: none;\r\n }\r\n .index-module_brandMobilePanel__m1Diu {\r\n opacity: 1; \r\n padding-inline: var(--adminui-padding-xs);\r\n justify-content: flex-start;\r\n flex:1;\r\n }\r\n .index-module_largeBrandPanel__pLn-- {\r\n display: none;\r\n }\r\n .index-module_collapsedMobile__Yu8F4 {\r\n display: flex;\r\n }\r\n .index-module_collapsedContainer__23dQh {\r\n display: none;\r\n }\r\n .index-module_collapsedTrack__LoJ3V {\r\n visibility: collapse;\r\n }\r\n .index-module_toolbarPanel__Pp8PS *[data-adminui-role="desk-toolbar"] {\r\n display: none;\r\n }\r\n .index-module_toolbarAvatarItem__p6TXY span {\r\n display: none;\r\n }\r\n}\r\n');const Ce=e.createContext({collapsed:!1,headerHeight:50,containerBackground:"transparent",flattenMenuMap:{},setCollapsed:()=>{}}),Be=e.createContext({close:()=>{}}),Ie=e.createContext({close:()=>{}}),Me=Symbol("AsideFooter"),Pe=Symbol("AsideHeader"),Te=Symbol("AsideContentItems"),Ne=Symbol("AsideContentItem"),ze=Symbol("ContentFooter"),Fe=Symbol("AvatarPopoverContent"),Le=Symbol("BrandPopoverContent"),Ee=Symbol("SoltContent"),Oe=Symbol("ToolbarExtraItems"),Ae=()=>e.useContext(Ce),Re=()=>Ae().collapsed,He=()=>t.useOutletContext(),We=()=>Be,$e=()=>Ie;function De(n){const{icon:r,size:t}=n;return e.isValidElement(r)?e.cloneElement(r,{size:t,style:{fontSize:t-2+"px",...n.style}}):r}const{useToken:Ke}=n.theme;function Ge(r){const{collapsed:t,iconSize:o,hideTitle:i}=r,{layoutConfig:a}=B(),{token:l}=Ke(),{layoutIcons:s,brandPopoverContent:d}=Ae(),[c,u]=e.useState(!1),m=$e(),p=a.compact?"16px":"20px";let x={justifyContent:"flex-start",paddingInline:a.compact?l.paddingXXS:l.paddingXS,height:"40px",gap:(a.compact?6:8)+"px"},f={height:`${a.headerHeight}px`},g={boxSizing:"border-box",display:"flex",flex:"1",gap:"6px",width:"100%",textAlign:"left",alignItems:"center"};a.flated&&(x={...x,paddingInline:l.padding,height:"100%"},f={...f,padding:"0px"});const{brandInfo:y}=a;t?x={...x,paddingInline:`calc(50% - calc(${p} / 2))`}:g={...g,overflow:"hidden"};let b=h.jsx(h.Fragment,{});y?.logo&&(b="string"==typeof y.logo?h.jsx(Se,{style:{width:p,minWidth:p},src:y.logo,alt:y.name}):h.jsx("div",{className:ne,style:{width:p,minWidth:p},children:y.logo}));const v=s?.itemMoreIcon||h.jsx(_e,{}),_=h.jsx(n.Button,{type:"text",style:x,iconPlacement:"end",icon:d?h.jsx(De,{icon:v,size:o||14,style:{opacity:t?"0":"1"}}):void 0,children:h.jsxs("div",{style:g,children:[b,h.jsxs("div",{className:ee,style:{opacity:t?"0":"1"},children:[h.jsx("h4",{children:y?.name}),i?void 0:h.jsx("span",{style:{color:l.colorTextSecondary},children:y?.title})]})]})});return h.jsx("div",{className:Q,style:f,children:d?h.jsx(m.Provider,{value:{close:()=>{u(!1)},record:y},children:h.jsx(n.Popover,{open:c,onOpenChange:u,placement:"rightTop",content:d,children:_})}):_})}function Ve(r){const{collapsed:t,iconSize:o,hideTitle:i}=r,{layoutConfig:a}=B(),{layoutIcons:l,brandPopoverContent:s}=Ae(),{token:d}=Ke(),[c,u]=e.useState(!1),m=$e(),p=a.compact?"16px":"20px";let x={justifyContent:"flex-start",gap:(a.compact?6:8)+"px"},f={height:`${a.headerHeight}px`},g={boxSizing:"border-box",display:"flex",flex:"1",gap:"6px",width:"100%",alignItems:"center"};a.flated&&(x={...x,paddingInline:d.padding},f={...f,padding:"0px"});const{brandInfo:y}=a;t?x={...x,paddingInline:`calc(50% - calc(${p} / 2))`}:g={...g,overflow:"hidden"};let b=h.jsx(h.Fragment,{});y?.logo&&(b="string"==typeof y.logo?h.jsx(Se,{style:{width:p,minWidth:p},src:y.logo,alt:y.name}):h.jsx("div",{className:ne,style:{width:p,minWidth:p},children:y.logo}));const v=l?.itemMoreIcon||h.jsx(_e,{}),_=s?{}:{href:y?.url},j=h.jsxs("a",{..._,style:x,children:[h.jsxs("div",{style:g,children:[b,h.jsxs("div",{className:ee,style:{opacity:t?"0":"1"},children:[h.jsx("h4",{style:{width:"90%"},children:y?.name}),i?void 0:h.jsx("span",{style:{color:d.colorTextSecondary,width:"90%"},children:y?.title})]})]}),s?h.jsx("div",{style:{opacity:t?"0":"1",display:"flex",placeItems:"center"},children:h.jsx(De,{icon:v,size:o||14})}):h.jsx(h.Fragment,{})]});return h.jsx("div",{className:Q,style:f,children:s?h.jsx(m.Provider,{value:{close:()=>{u(!1)},record:y},children:h.jsx(n.Popover,{open:c,onOpenChange:u,placement:"rightTop",content:s,children:j})}):j})}function Ue(r){const{layoutConfig:t}=B(),{brandPopoverContent:o}=Ae(),[i,a]=e.useState(!1),l=$e(),s=t.compact?"16px":"20px",{brandInfo:d}=t;let c=h.jsx(h.Fragment,{});d?.logo&&(c="string"==typeof d.logo?h.jsx(Se,{style:{width:s},src:d.logo,alt:d.name}):h.jsx("div",{className:ne,style:{width:s},children:d.logo}));let u=o?h.jsx(l.Provider,{value:{close:()=>{a(!1)},record:d},children:h.jsx(n.Popover,{open:i,onOpenChange:a,content:o,placement:"rightTop",children:h.jsx("a",{children:c})})}):h.jsx("a",{href:d?.url,children:c});return h.jsxs("div",{className:re,style:r.style,children:[u,h.jsx("div",{className:$,children:r.children})]})}function Xe(r){const{collapsed:t}=r,{brandPopoverContent:o}=Ae(),{layoutConfig:i}=B(),[a,l]=e.useState(!1),s=$e(),d=t?i.compact?"16px":"20px":i.compact?"56px":"64px",{brandInfo:c}=i,u={opacity:t?"0":"1",height:t?"0px":"auto"};let m=h.jsx(h.Fragment,{});if(!c)return h.jsx(h.Fragment,{});let p=[te];t&&p.push(ie),c?.logo&&(m="string"==typeof c.logo?h.jsx(Se,{style:{width:d},src:c.logo,alt:c.name}):h.jsx("div",{className:ne,style:{width:d},children:c.logo}));let x=o?h.jsx(s.Provider,{value:{close:()=>{l(!1)},record:c},children:h.jsx(n.Popover,{open:a,onOpenChange:l,content:o,placement:"rightTop",children:h.jsx("a",{children:m})})}):h.jsx("a",{href:c?.url,children:m});return h.jsxs("div",{className:p.join(" "),children:[x,h.jsxs("div",{style:u,children:[h.jsx("span",{children:c?.name}),c.title?h.jsx("span",{className:oe,children:c?.title}):h.jsx(h.Fragment,{})]})]})}function qe(e){return h.jsx("div",{style:{...e.style},children:e.children})}qe.displayName="BrandPopoverContent",qe.role=Le;const{useToken:Ye}=n.theme;function Je(r){const{collapsed:t,iconSize:o}=r,{layoutConfig:i}=B(),{layoutIcons:a,avatarPopoverContent:l}=Ae(),[s,d]=e.useState(!1),c=We(),{token:u}=Ye(),m=i.compact?"20px":"24px";let p={justifyContent:"flex-start",gap:(i.compact?6:8)+"px"},x={height:`${i.headerHeight}px`},f={boxSizing:"border-box",display:"flex",flex:"1",gap:"6px",width:"100%",alignItems:"center"};i.flated&&(p={...p,paddingInline:u.padding,margin:"0px",height:"100%"},x={...x,padding:"0px"});const{userInfo:g}=i;t?p={...p,paddingInline:`calc(50% - calc(${m} / 2))`}:f={...f,overflow:"hidden"};let y=h.jsx(h.Fragment,{});g?.avatar&&(y="string"==typeof g.avatar?h.jsx(Se,{style:{width:m,borderRadius:"999px"},src:g.avatar,alt:g.uid}):g.avatar);const b=a?.itemMoreIcon||h.jsx(_e,{}),v=h.jsx("div",{className:ae,style:x,children:h.jsxs("a",{style:p,children:[h.jsxs("div",{style:f,children:[y,h.jsxs("div",{className:ee,style:{opacity:t?"0":"1"},children:[h.jsx("h4",{children:g?.uid}),g?.title?void 0:h.jsx("span",{style:{color:u.colorTextSecondary},children:g?.title})]})]}),l?h.jsx("div",{style:{opacity:t?"0":"1",display:"flex",placeItems:"center"},children:h.jsx(De,{icon:b,size:o||14})}):h.jsx(h.Fragment,{})]})});return l?h.jsx(c.Provider,{value:{close:()=>d(!1),record:g},children:h.jsx(n.Popover,{open:s,onOpenChange:d,placement:"right",content:l,children:v})}):v}function Ze(r){const{iconSize:t=14}=r,{layoutConfig:o}=B(),{userInfo:i}=o,{avatarPopoverContent:a}=Ae(),[l,s]=e.useState(!1),d=We();let c=h.jsx(je,{});const u=t+4,m={width:`${u}px`,height:`${u}px`,overflow:"hidden",display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer"};i?.avatar&&(c="string"==typeof i.avatar?h.jsx(Se,{style:{width:u,borderRadius:"999px"},src:i.avatar,alt:i.uid}):i.avatar);const p=h.jsxs("div",{className:V,children:[h.jsx("div",{style:m,children:c}),h.jsx("span",{children:i?.uid})]});return a?h.jsx(d.Provider,{value:{close:()=>s(!1),record:i},children:h.jsx(n.Popover,{open:l,onOpenChange:s,placement:"left",content:a,children:p})}):h.jsx(h.Fragment,{children:p})}function Qe(e){return h.jsx("div",{style:{...e.style},children:e.children})}Qe.displayName="AvatarPopoverContent",Qe.role=Fe;const{useToken:en}=n.theme;function nn(e){const{token:r}=en(),{layoutIcons:t,toolbarExtraItems:o}=Ae(),i=r.Menu?.iconSize||16,[a,l]=t?.fullScreenIcons?.slice(0,2)||[h.jsx(we,{}),h.jsx(ke,{})],s=h.jsx(De,{icon:a,size:i}),d=h.jsx(De,{icon:l,size:i});return h.jsxs("div",{className:K,children:[e.showAvatar?h.jsxs("div",{className:G,children:[h.jsx(Ze,{iconSize:i+4}),h.jsx(n.Divider,{"data-adminui-role":"desk-toolbar",orientation:"vertical"})]}):h.jsx(h.Fragment,{}),o,h.jsx("div",{className:G,"data-adminui-role":"desk-toolbar",children:h.jsx(z,{buttons:[h.jsx(n.Button,{icon:d,type:"text"},"minimize"),h.jsx(n.Button,{icon:s,type:"text"},"maximize")]})})]})}function rn(e){const n=h.jsx("div",{className:G,"data-adminui-role":"desk-toolbar",children:e.children});return e?h.jsx(h.Fragment,{children:n}):h.jsx(h.Fragment,{})}rn.displayName="ToolbarExtraItems",rn.role=Oe;const{useToken:tn}=n.theme;function on(e){const{style:n}=e,{collapsed:r,setCollapsed:t,layoutIcons:o}=Ae(),i={display:"flex",justifyContent:"flex-end",alignItems:"center",width:"100%",height:n?.width,backgroundColor:"transparent"},a={display:"flex",width:n?.width,height:"100%",cursor:"pointer",justifyContent:"center",alignItems:"center"},[l,s]=o?.collapsedIcons?.slice(0,2)||[h.jsx(ye,{}),h.jsx(ge,{})];return h.jsx("div",{style:i,children:h.jsx("div",{style:a,onClick:()=>{t(!r)},children:r?l:s})})}function an(e){const{style:n,offset:r=0,top:t}=e,{collapsed:o,setCollapsed:i,layoutIcons:a}=Ae(),{token:l}=tn();let s={right:"-14px"},d={backgroundColor:n?.backgroundColor,border:`solid 1px ${l.colorBorderSecondary}`};t&&(s={...s,right:"-12px",display:"initial"},d={...d,width:"24px",height:"24px",borderRadius:"12px",transform:`translateY(${r+10}px)`});const[c,u]=a?.collapsedIcons?.slice(0,2)||[h.jsx(ye,{}),h.jsx(ge,{})];return h.jsx("div",{className:J,style:s,onClick:()=>{i(!o)},children:h.jsx("div",{style:d,className:Z,children:o?c:u})})}function ln(e){const{collapsed:r,setCollapsed:t,layoutIcons:o}=Ae(),[i,a]=o?.mobileAsideIcons?.slice(0,2)||[h.jsx(ve,{}),h.jsx(be,{})];return h.jsx("div",{className:le,children:h.jsx(n.Button,{type:"text",style:{cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center",...e.style},icon:r?i:a,onClick:()=>{t(!r)}})})}function sn(e){const{collapsed:r,setCollapsed:t,layoutIcons:o}=Ae(),[i,a]=o?.mobileAsideIcons?.slice(0,2)||[h.jsx(ve,{}),h.jsx(be,{})];return h.jsx("div",{className:se,children:h.jsx(n.Button,{type:"text",style:{cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center",...e.style},icon:r?i:a,onClick:()=>{t(!r)}})})}const{Header:dn}=n.Layout,{useToken:cn}=n.theme;function un(e){const{layoutConfig:r}=B(),{token:o,theme:i}=cn(),a=t.useNavigate(),l=r.headerTransparent||r.headerBlur?L(o.colorBorderSecondary,.6):o.colorBorderSecondary,s=r.hideBorder?"0px":"1px solid "+l,d=r.flated&&"headMenu"==r.layoutType||1==i.id?"dark":"light",c=r.flated&&"headMenu"==r.layoutType?"dark":"light",u=r.flated&&"headMenu"==r.layoutType?o.colorPrimary:o.colorBgContainer,m={height:e.height+"px",lineHeight:e.height+"px"};let p=h.jsx(h.Fragment,{}),x={...m,borderBottom:s,backgroundColor:r.headerTransparent?"transparent":u};r.headerBlur&&(x={...x,backgroundColor:L(u,.6),transform:"translateZ(0)",backdropFilter:"blur(8px)"});let f={...m,fontSize:o.Menu?.iconSize,backgroundColor:"transparent",flex:"none"},g=[O],y=h.jsx(h.Fragment,{});"headMenu"==r.layoutType?(p=h.jsx("div",{style:m}),x={...x,paddingInlineEnd:o.paddingXS+"px"},y=h.jsx("div",{className:D,style:{width:r?.asideWidth+"px"},children:h.jsx(Ge,{collapsed:!1,iconSize:o.Menu?.iconSize,hideTitle:!0})}),g.push(R)):(x={...x,paddingInline:o.paddingXS+"px"},g.push(A));let b=h.jsx(Ue,{children:e.title}),v=h.jsx(ln,{iconSize:r.compact?12:14});const _=[H];r.flated||_.push(fe);let j="dark"==d?[n.theme.darkAlgorithm]:[n.theme.defaultAlgorithm];return r.noneHeader?h.jsx(h.Fragment,{}):h.jsxs(h.Fragment,{children:[p,h.jsx(n.ConfigProvider,{theme:{algorithm:j},children:h.jsx(n.Layout,{className:g.join(" "),style:f,children:h.jsxs(dn,{className:_.join(" "),style:x,children:[v,y,b,h.jsx(n.Menu,{onClick:e=>{a(e.key)},defaultSelectedKeys:e.selectedKeys,selectedKeys:e.selectedKeys,mode:"horizontal",theme:c,classNames:{root:W},items:e.menuData||[]}),h.jsx(nn,{showAvatar:"rightTop"==r.avatarPosition})]})})})]})}const{Sider:mn}=n.Layout,{useToken:pn}=n.theme,{useBreakpoint:hn}=n.Grid;function xn(r){const o=e.useRef([]);o.current=r.openerKeys||[];const[i,a]=e.useState(r.openerKeys),{layoutConfig:l}=B(),{asideWidth:s}=l,d=r.headerHeight,{collapsed:c,setCollapsed:u}=Ae(),{token:m,theme:p}=pn(),x=t.useNavigate(),f=hn().xs?0:d,g=l.headerTransparent||l.headerBlur?L(m.colorBorderSecondary,.6):m.colorBorderSecondary,y=l.hideBorder||0==f&&c?"0px":"1px solid "+g,b=l.noneHeader&&"leftMenu"==l.layoutType,v=l.containerMargin||0,_="headMenu"==l.layoutType||0==f?r.headerHeight:0,j="headMenu"==l.layoutType||0==f?"calc(100% - "+r.headerHeight+"px)":"100%";let k={width:`${l.asideWidth}px`,height:`${j}`,insetBlockStart:_+"px",maxWidth:`${l.asideWidth}px`,minWidth:`${l.asideWidth}px`,borderRight:y,boxShadow:f>0?"none":m.boxShadowTertiary,position:"fixed",margin:b?v/2:"0px",transition:"width 0.3s, min-width 0.3s, max-width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"},w={overflow:"auto",flex:1};const S=m.Menu?.iconSize,C=1==p.id?"dark":"light",I=C;let M=0,P=h.jsx(h.Fragment,{});"leftMenu"==l.layoutType&&(M=l.headerHeight||0,P=l.largeBrand?h.jsx(Xe,{collapsed:c,iconSize:S}):h.jsx(Ve,{collapsed:c,iconSize:S,hideTitle:!0}));const T=m.colorBgContainer;k={...k,backgroundColor:l.asideTransparent&&f>0?"transparent":T},l.asideBlur&&(k={...k,backgroundColor:L(T,.6),transform:"translateZ(0)",backdropFilter:"blur(8px)"}),c&&(w={...w,overflow:"hidden"});let N=[U],z=h.jsx(h.Fragment,{});switch(l.collapsedPosition){case"bottom":z=h.jsx(on,{iconSize:S,style:{backgroundColor:T,width:`${d}px`,borderRight:y}});break;case"center":z=h.jsx(an,{iconSize:12,flated:l.flated,offset:M,style:{backgroundColor:T}});break;case"top":z=l.noneHeader?h.jsx(h.Fragment,{}):h.jsx(an,{iconSize:12,top:!0,flated:l.flated,offset:M,style:{backgroundColor:T}})}let F=r.menuData||[];return l.asideMenuGroup&&F.forEach(e=>{e.children&&(e.type="group")}),h.jsxs(h.Fragment,{children:[h.jsx("div",{style:{width:c?d:s,flex:`0 0 ${c?d:s}px`,maxWidth:c?d:s,minWidth:c?d:s,transition:"background-color 0.3s, min-width 0.3s, max-width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"},className:X}),h.jsxs(mn,{width:s,className:N.join(" "),style:k,theme:I,collapsedWidth:f,collapsible:!0,trigger:null,breakpoint:"md",collapsed:c,onCollapse:u,children:[f>0?P:h.jsx(h.Fragment,{}),r.header,h.jsx("div",{style:w,children:h.jsx(n.Menu,{onClick:e=>{0==f&&u(!0),x(e.key)},onOpenChange:e=>{a(e)},style:{border:"0",background:"transparent",position:"relative",minHeight:"100%"},mode:l.asideMenuInline?"inline":"vertical",selectedKeys:r.selectedKeys,openKeys:c?void 0:i,defaultSelectedKeys:r.selectedKeys,defaultOpenKeys:o.current,theme:C,items:F})}),r.footer,"leftBottom"==l.avatarPosition?h.jsx(Je,{collapsed:c,iconSize:S}):h.jsx(h.Fragment,{}),z]})]})}const fn=e=>e.reduce((e,n)=>{const{children:r,...t}=n;return e[t.path]=t,r&&Object.assign(e,fn(r)),e},{});function gn(e,n){let r=[],t=[];return e.forEach(e=>{e.key==n[1]&&(t=e.children??[]);const o={...e,children:void 0};r.push(o)}),{rootMenuItems:r,childrenMenuItems:t}}const yn=e=>{let n=[];if(!(null==e||e.length<=0))return e.forEach(e=>{let r=_n(e);r.children=yn(e.children),n.push(r)}),n},bn=(e,n)=>{if(e)return e.map(e=>{const r=vn(e,n),t={...e,label:r};return e.children&&(t.children=bn(e.children,n)),t})},vn=(e,n)=>((e,n,r,t)=>{if(t){const o="menu"+e.replaceAll("/",".");return t.formatMessage({id:o,defaultMessage:r||n})}return r||n})(e.path||"",e.name,e.label,n),_n=e=>({key:e.path||e.name,label:e.label||e.name,icon:e.icon,extra:e.extra,title:e.label});function jn(e){const n="/"===e?"/":e.replace(/\/+$/,"");if("/"===n)return["/"];const r=n.split("/").filter(Boolean),t=["/"];let o="";for(const e of r)o+=`/${e}`,t.push(o);return t}function kn(e){const n=e.length;if(0===n)return[[],[]];if(1===n)return[[e[0]],[]];const r=[e[1]],t=new Array(n-2);for(let r=1;r<n;r++)t[r-1]=e[r];return[r,t]}function wn(e,n){if(n)return!e.endsWith("/")&&e.length>1&&(e+="/"),n.map(n=>{const r=function(e,n){let r=n.path||n.name;r?.startsWith("/")&&(r=r.slice(1));r?.startsWith("./")&&(r=r.slice(2));let t=e+r,o={name:t,path:t,label:n.label,originalPath:t,extra:Sn(n.extra),icon:Sn(n.icon)};return o}(e,n);return n.children&&(r.children=wn(r.path,n.children)),r})}const Sn=n=>e.isValidElement(n)?n:"function"==typeof n||"object"==typeof n?e.createElement(n):null,{useToken:Cn}=n.theme;function Bn(n){const{layoutConfig:o,themeSkin:i}=B(),a=r.useIntl(),{token:l}=Cn(),[s,d]=e.useState(!1),c={backgroundColor:l.colorBgLayout};let u=o.headerHeight||56;o.compact&&(u-=4);const m=o.disabledLocale?n.menuData:bn(n.menuData,a),p=m&&m?.length>0?m[0].children:[],x=fn(m||[]),f=yn(p),g=t.useMatches(),y=g.map(e=>e.pathname),b=g[g.length-1];let v=[],_=[],j=[],k=[];if("leftMenu"==o.layoutType?(k=f||[],_=y):(j=f||[],v=y),o.splitMenu){const[e,n]=kn(y),{rootMenuItems:r,childrenMenuItems:t}=gn(f,y);"leftMenu"==o.layoutType?(k=r,j=t,_=e,v=n):(k=t,j=r,v=e,_=n)}const w=e.useMemo(()=>o.asideBlur||o.headerBlur?L(l.colorBgContainer,.6):l.colorBgContainer,[o.asideBlur,o.headerBlur,l.colorBgContainer]),S=e.Children.toArray(n.children),C=S.find(n=>e.isValidElement(n)&&n.type.role===Me),I=S.find(n=>e.isValidElement(n)&&n.type.role===Pe),M=S.find(n=>e.isValidElement(n)&&n.type.role===ze),P=S.find(n=>e.isValidElement(n)&&n.type.role===Fe),T=S.find(n=>e.isValidElement(n)&&n.type.role===Le),z=S.find(n=>e.isValidElement(n)&&n.type.role===Ee),F=S.find(n=>e.isValidElement(n)&&n.type.role===Oe),E=Ce,O=e.useMemo(()=>({collapsed:s,headerHeight:u,layoutIcons:n.layoutIcons,avatarPopoverContent:P,brandPopoverContent:T,toolbarExtraItems:F,containerBackground:w,flattenMenuMap:x,setCollapsed:d}),[s,u,n.layoutIcons,x,w]),A=o.hideAsideMenuDataEmpty&&k.length<=0&&"headMenu"==o.layoutType,R=x[b.pathname].label||"";return document.title=R,h.jsxs(h.Fragment,{children:[h.jsx(E,{value:O,children:h.jsxs(N,{...n,style:c,children:[h.jsx(N.Aside,{children:A?h.jsx(h.Fragment,{}):h.jsx(xn,{headerHeight:u,header:C,footer:I,menuData:k,selectedKeys:_,openerKeys:_})}),h.jsx(N.Header,{children:h.jsx(un,{height:u,menuData:j,selectedKeys:v,title:R})}),h.jsx(N.Content,{children:h.jsx(t.Outlet,{context:{title:R,footer:M}})}),h.jsx(N.Background,{children:i?i.backgroundContent:h.jsx(h.Fragment,{})})]})}),z]})}const In="#417ffb",Mn=e=>i.generate(e),Pn=()=>Mn("#000000"),Tn=()=>Mn("#FFFFFF"),Nn=e=>{let{layoutConfig:n}=B();return n.asideBlur||n.headerBlur?L(e,.6):e},zn=e=>({backgroundColor:Nn(e),transform:"translateZ(0)",backdropFilter:"blur(8px)"});function Fn(e){const n=Re(),{layoutConfig:r}=B(),t=r.compact?"16px":"20px";let o={justifyContent:"flex-start",paddingInline:r.compact?"14px":"16px",marginInline:"4px",marginBlock:"4px",gap:(r.compact?6:8)+"px"};return n&&(o={...o,paddingInline:`calc(50% - calc(${t} / 2))`}),!e.icon&&n?h.jsx(h.Fragment,{}):h.jsxs("div",{className:Y,style:o,children:[h.jsx("div",{children:e.icon}),h.jsx("div",{style:{opacity:n?"0":"1"},children:e.children})]})}function Ln(e){return h.jsx(h.Fragment,{children:e.children})}function En(e){return h.jsx("div",{className:q,children:e.children})}function On(e){return h.jsx("div",{className:q,children:e.children})}Ln.displayName="AsideContentItems",Fn.displayName="AsideContentItem",On.displayName="AsideHeaderContent",On.Items=Ln,On.Item=Fn,En.displayName="AsideFooterContent",En.Items=Ln,En.Item=Fn,En.role=Pe,On.role=Me,Ln.role=Te,Fn.role=Ne;const An="adminui-default-config",Rn=e=>({f:n=>{const{id:r,defaultMessage:t}=n;return e?e.formatMessage({id:r,defaultMessage:t}):t||r.split(".").pop()},t:(n,r)=>e?e.formatMessage({id:n,defaultMessage:r}):r||n.split(".").pop()}),Hn=e=>{e||(e=An);const n=window.localStorage.getItem(e);try{if(n)return JSON.parse(n)}catch(e){console.error(e)}},Wn=(e,n)=>{n||(n=An);const{brandInfo:r,userInfo:t,...o}=e,i=JSON.stringify(o);window.localStorage.setItem(n,i)},$n=(e,n)=>{let r={...e};if(n){const e=n.theme.length<2?n.theme[0]:r.theme;let t=r.brandInfo||{title:"antd-layout",name:"warden.vip"};r={...r,...n.layoutConfig,theme:e,brandInfo:{...t,logo:n.logo}}}return r};function Dn(e){const r=t.useMatches(),{flattenMenuMap:o}=Ae(),{layoutConfig:i}=B(),a=[];r.forEach((e,n)=>{const r=o[e.pathname],t=r?r.label:"";a.push({path:e.pathname,title:t,icon:r.icon})});let l=[de];return"first"==i.visibleBreadcrumbIcon?l.push(ce):"all"==i.visibleBreadcrumbIcon&&l.push(ue),h.jsx(n.Breadcrumb,{classNames:{root:l.join(" ")},style:e.style,items:a,itemRender:Kn})}function Kn(e,n,r,o){return e?.path===r[r.length-1]?.path?h.jsxs("span",{className:"adminui-breadcrumb-link",children:[e.icon,e.title]}):h.jsxs(t.Link,{className:"adminui-breadcrumb-link",to:"/"+o[o.length-1],children:[e.icon,e.title]})}const{useToken:Gn}=n.theme,{useBreakpoint:Vn}=n.Grid;const Un=e=>h.jsx("div",{...e,children:e.children});function Xn({children:e}){return h.jsx(h.Fragment,{children:e})}Un.displayName="ContentFooter",Un.role=ze,Xn.displayName="SoltContent",Xn.role=Ee;const qn="adminui-locale",Yn=Pn(),Jn=Tn(),Zn=(e,n)=>{let r;return Object.entries(n).forEach(([n,t])=>{t.forEach(n=>{n.name==e&&(r=n)})}),r};function Qn(o){const a=t.useMatches(),{pathname:l}=a[0],s={...w,...o.layoutConfig,...o.disabledStorageConfig?{}:Hn(l)};let d=o.themeSkins||[];const c=e.useMemo(()=>(e=>{let n={system:[],custom:[]};return e.forEach(e=>{"system"==e.skinType?n.system.push(e):n.custom.push(e)}),n})(d),[d]),u=o.locale||localStorage.getItem(qn)||s.locale||"en-US",m=o.menuData?wn("/",[o.menuData]):[],[p,x]=e.useState(()=>{if(s.skinName){const e=Zn(s.skinName,c);return $n(s,e)}return s}),[f,g]=e.useState(u),y=C,b=S;let v=o.localeMessages||{};const _=e.useMemo(()=>(e=>{let n=[];return Object.entries(e).forEach(([e,r])=>{n.push({name:r.name,locale:e,flag:r.flag})}),n})(v),[v]),j=e=>{localStorage.setItem(qn,e),g(e)};document.documentElement.style.setProperty("--pageload-bar-color",p.primaryColor),e.useEffect(()=>{const e=window.document.documentElement;if(e.classList.remove("light","dark"),"system"===p.theme){const n=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";return void e.classList.add(n)}e.classList.add(p.theme)},[p.theme]);const k=e.useMemo(()=>{if(p.skinName)return Zn(p.skinName,c)},[d,p.skinName]),B="system"==(I=p.theme)?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":I;var I;const M=e=>{x(e),o.disabledStorageConfig||Wn(e,l)},P=e.useMemo(()=>({layoutConfig:p,locale:f,languages:_,themeSkin:k,themeSkinMap:c}),[_,f,_,c,k,p]),T=e.useMemo(()=>({setLayoutConfig:M,setLocale:j}),[]),N=v[f]||v["en-US"],z=["he","ar","fa","ku"].filter(e=>f.startsWith(e)).length?"rtl":"ltr";let F="dark"===B?[n.theme.darkAlgorithm]:[n.theme.defaultAlgorithm],L=p.menuIconSize||14;const E=p.menuIconSize?.1*(L-10)+10:10;p.compact&&(F.push(n.theme.compactAlgorithm),L-=2);const O="dark"===B?Jn:Yn,A="dark"===B?Yn:Jn,R=i.generate(p.primaryColor||In);let H={darkSubMenuItemBg:"transparent",subMenuItemBg:"transparent",iconSize:L,fontSize:L,itemMarginInline:p.flated?0:4,iconMarginInlineEnd:E,activeBarHeight:p.compact?2:4,darkPopupBg:Yn[4]};if(p.menuItemSelectColor&&"default"!=p.menuItemSelectColor){const e="invert"==p.menuItemSelectColor;H={...H,itemActiveBg:e?O[0]:R[1],itemSelectedBg:e?O[3]:p.primaryColor,itemSelectedColor:e?A[2]:Jn[2]}}const W={algorithm:F,token:{colorPrimary:p.primaryColor,borderRadius:p.flated?0:6},components:{Menu:H,Layout:{siderBg:"transparent",triggerBg:"transparent",lightSiderBg:"transparent",lightTriggerBg:"transparent"}}};return h.jsx(y.Provider,{value:P,children:h.jsx(b.Provider,{value:T,children:h.jsx(n.ConfigProvider,{theme:W,locale:N?.antdLocale,direction:z,modal:{mask:{blur:!1}},drawer:{mask:{blur:!1}},prefixCls:"adminui",children:h.jsx(n.App,{style:{height:"100%",width:"100%"},children:h.jsx(r.IntlProvider,{locale:f,messages:N?.messages,children:h.jsx(Bn,{menuData:m,layoutIcons:o.layoutIcons,children:o.children})})})})})})}Qn.AsideHeader=On,Qn.AsideFooter=En,Qn.Footer=Un,Qn.AvatarPopoverContent=Qe,Qn.BrandPopoverContent=qe,Qn.SoltContent=Xn,Qn.HeaderToolbarExtra=rn;var er={exports:{}};
20
+ "production"===process.env.NODE_ENV?x.exports=function(){if(m)return f;m=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(n,r,t){var o=null;if(void 0!==t&&(o=""+t),void 0!==r.key&&(o=""+r.key),"key"in r)for(var i in t={},r)"key"!==i&&(t[i]=r[i]);else t=r;return r=t.ref,{$$typeof:e,type:n,key:o,ref:void 0!==r?r:null,props:t}}return f.Fragment=n,f.jsx=r,f.jsxs=r,f}():x.exports=(p||(p=1,"production"!==process.env.NODE_ENV&&function(){function n(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===C?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case h:return"Fragment";case f:return"Profiler";case x:return"StrictMode";case _:return"Suspense";case j:return"SuspenseList";case S:return"Activity"}if("object"==typeof e)switch("number"==typeof e.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case p:return"Portal";case b:return e.displayName||"Context";case y:return(e._context.displayName||"Context")+".Consumer";case v:var r=e.render;return(e=e.displayName)||(e=""!==(e=r.displayName||r.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case k:return null!==(r=e.displayName||null)?r:n(e.type)||"Memo";case w:r=e._payload,e=e._init;try{return n(e(r))}catch(e){}}return null}function r(e){return""+e}function t(e){try{r(e);var n=!1}catch(e){n=!0}if(n){var t=(n=console).error,o="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(n,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",o),r(e)}}function o(e){if(e===h)return"<>";if("object"==typeof e&&null!==e&&e.$$typeof===w)return"<...>";try{var r=n(e);return r?"<"+r+">":"<...>"}catch(e){return"<...>"}}function i(){return Error("react-stack-top-frame")}function a(){var e=n(this.type);return T[e]||(T[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),void 0!==(e=this.props.ref)?e:null}function l(e,r,o,i,l,d){var u,p=r.children;if(void 0!==p)if(i)if(M(p)){for(i=0;i<p.length;i++)s(p[i]);Object.freeze&&Object.freeze(p)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else s(p);if(I.call(r,"key")){p=n(e);var h=Object.keys(r).filter(function(e){return"key"!==e});i=0<h.length?"{key: someKey, "+h.join(": ..., ")+": ...}":"{key: someKey}",F[p+i]||(h=0<h.length?"{"+h.join(": ..., ")+": ...}":"{}",console.error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',i,p,h,p),F[p+i]=!0)}if(p=null,void 0!==o&&(t(o),p=""+o),function(e){if(I.call(e,"key")){var n=Object.getOwnPropertyDescriptor(e,"key").get;if(n&&n.isReactWarning)return!1}return void 0!==e.key}(r)&&(t(r.key),p=""+r.key),"key"in r)for(var x in o={},r)"key"!==x&&(o[x]=r[x]);else o=r;return p&&function(e,n){function r(){c||(c=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",n))}r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}(o,"function"==typeof e?e.displayName||e.name||"Unknown":e),function(e,n,r,t,o,i){var l=r.ref;return e={$$typeof:m,type:e,key:n,props:r,_owner:t},null!==(void 0!==l?l:null)?Object.defineProperty(e,"ref",{enumerable:!1,get:a}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:o}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(e,p,o,null===(u=B.A)?null:u.getOwner(),l,d)}function s(e){d(e)?e._store&&(e._store.validated=1):"object"==typeof e&&null!==e&&e.$$typeof===w&&("fulfilled"===e._payload.status?d(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function d(e){return"object"==typeof e&&null!==e&&e.$$typeof===m}var c,u=e,m=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),b=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),C=Symbol.for("react.client.reference"),B=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=Object.prototype.hasOwnProperty,M=Array.isArray,P=console.createTask?console.createTask:function(){return null},T={},N=(u={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(u,i)(),z=P(o(i)),F={};g.Fragment=h,g.jsx=function(e,n,r){var t=1e4>B.recentlyCreatedOwnerStacks++;return l(e,n,r,!1,t?Error("react-stack-top-frame"):N,t?P(o(e)):z)},g.jsxs=function(e,n,r){var t=1e4>B.recentlyCreatedOwnerStacks++;return l(e,n,r,!0,t?Error("react-stack-top-frame"):N,t?P(o(e)):z)}}()),g);var y=x.exports;function b(e,n){void 0===n&&(n={});var r=n.insertAt;if(e&&"undefined"!=typeof document){var t=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===r&&t.firstChild?t.insertBefore(o,t.firstChild):t.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}b("@layer base {\r\n html, body {\r\n padding: 0;\r\n margin: 0;\r\n border: 0;\r\n width: 100%; \r\n height: 100%;\r\n }\r\n #root { \r\n text-align: initial;\r\n width: 100%;\r\n height:100%\r\n } \r\n}\r\n*, *:before, *:after {\r\n box-sizing: border-box;\r\n}\r\n.Layout-module_rootBox__3JHjy {\r\n text-rendering: optimizeLegibility;\r\n -webkit-font-smoothing: antialiased;\r\n -moz-osx-font-smoothing: grayscale;\r\n text-align: initial;\r\n width: 100%;\r\n min-height: 100%;\r\n}\r\n.Layout-module_rootBackground__j3UVG {\r\n box-sizing: border-box; \r\n pointer-events: none;\r\n inset-block-start:0;\r\n inset-inline-start:0; \r\n width: 100%; \r\n min-width: 100vw;\r\n height:100%;\r\n min-height: 100vh;\r\n overflow: hidden;\r\n position: fixed;\r\n z-index: 0;\r\n}\r\n.Layout-module_rootBackground__j3UVG>div{\r\n width:100%;\r\n height: 100%;\r\n overflow: hidden;\r\n}\r\n.Layout-module_rootLayout__jVEEF {\r\n position: relative;\r\n z-index: 1;\r\n box-sizing: border-box; \r\n width: 100%;\r\n min-height: 100%;\r\n display: flex; \r\n flex-flow: row;\r\n background-color: transparent;\r\n container-type: inline-size;\r\n}\r\n\r\n.Layout-module_mainLayout__6W9W9 {\r\n box-sizing: border-box; \r\n display: flex;\r\n flex-flow: column; \r\n width: 100%;\r\n min-width: 0px;\r\n min-height: 100vh;\r\n}\r\n");const v=Symbol("LayoutAside"),_=Symbol("LayoutContent"),j=Symbol("LayoutHeader"),k=Symbol("LayoutBackground"),w={headerHeight:50,asideWidth:260,layoutType:"leftMenu",collapsedPosition:"bottom",avatarPosition:"rightTop",theme:"system",visibleBreadcrumbIcon:"none",primaryColor:"#417ffb"},S=e.createContext({setLayoutConfig:()=>{},setLocale:()=>{}}),C=e.createContext({locale:"en-US",languages:[],layoutConfig:{},themeSkinMap:{system:[],custom:[]}}),B=()=>e.useContext(C);function I(e){return y.jsx("div",{className:"Layout-module_rootBackground__j3UVG",children:y.jsx(y.Fragment,{children:e.children})})}function M(e){return y.jsx(y.Fragment,{children:e.children})}function P(e){return y.jsx(y.Fragment,{children:e.children})}function T(e){return y.jsx(y.Fragment,{children:e.children})}I.displayName="LayoutBackground",I.role=k,M.displayName="LayoutContent",M.role=_,P.displayName="LayoutAside",P.role=v,T.displayName="LayoutHeader",T.role=j;function N(n){let r=null,t=null,o=null,i=null;e.Children.forEach(n.children,e=>{const n=e.type.role;n===j?r=e:n===_?t=e:n===v?o=e:n===k&&(i=e)});const a=n.style||n.styles?.root;return y.jsx(y.Fragment,{children:y.jsxs("div",{ref:n.ref,className:"layout-module_rootBox__Y8bEx",style:a,children:[i,y.jsxs("div",{className:"layout-module_rootLayout__TePvr",children:[o,y.jsxs("div",{className:"layout-module_mainLayout__a8Tb9",style:{...n.styles?.main},children:[r,t]})]})]})})}function z(n){const r=!!document.fullscreenElement,[t,o]=e.useState(r),i=()=>{o(!!document.fullscreenElement)},a=e=>{"F11"===e.code&&(e.preventDefault(),l())};e.useEffect(()=>(document.addEventListener("fullscreenchange",i),document.addEventListener("keydown",a,!0),()=>{document.removeEventListener("fullscreenchange",i),document.removeEventListener("keydown",a)}),[]);const l=()=>{t?document.exitFullscreen():document.documentElement.requestFullscreen()};if(!n.buttons||n.buttons.length<2)return y.jsx(y.Fragment,{});const[s,d]=n.buttons,c=t?s:d;return e.cloneElement(c,{onClick:e=>{console.log(e),l()}})}b("@layer base {\r\n html, body {\r\n padding: 0;\r\n margin: 0;\r\n border: 0;\r\n width: 100%; \r\n height: 100%;\r\n }\r\n #root { \r\n text-align: initial;\r\n width: 100%;\r\n height:100%\r\n } \r\n}\r\n*, *:before, *:after {\r\n box-sizing: border-box;\r\n}\r\n.layout-module_rootBox__Y8bEx {\r\n text-rendering: optimizeLegibility;\r\n -webkit-font-smoothing: antialiased;\r\n -moz-osx-font-smoothing: grayscale;\r\n text-align: initial;\r\n width: 100%;\r\n min-height: 100%;\r\n}\r\n.layout-module_rootBackground__vEs6e {\r\n box-sizing: border-box; \r\n pointer-events: none;\r\n inset-block-start:0;\r\n inset-inline-start:0; \r\n width: 100%; \r\n min-width: 100vw;\r\n height:100%;\r\n min-height: 100vh;\r\n overflow: hidden;\r\n position: fixed;\r\n z-index: 0;\r\n}\r\n.layout-module_rootBackground__vEs6e>div{\r\n width:100%;\r\n height: 100%;\r\n overflow: hidden;\r\n}\r\n.layout-module_rootLayout__TePvr {\r\n position: relative;\r\n z-index: 1;\r\n box-sizing: border-box; \r\n width: 100%;\r\n min-height: 100%;\r\n display: flex; \r\n flex-flow: row;\r\n background-color: transparent;\r\n container-type: inline-size;\r\n}\r\n\r\n.layout-module_mainLayout__a8Tb9 {\r\n box-sizing: border-box; \r\n display: flex;\r\n flex-flow: column; \r\n width: 100%;\r\n min-width: 0px;\r\n min-height: 100vh;\r\n}\r\n"),N.Aside=P,N.Content=M,N.Header=T,N.Background=I;const F=e=>({r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16),a:9===e.length?(parseInt(e.slice(7,9),16)/255).toFixed(2):1}),L=(e,n)=>{const{r:r,g:t,b:o,a:i}=F(e);return`rgba(${r}, ${t}, ${o}, ${n??i})`};function E(e,n){void 0===n&&(n={});var r=n.insertAt;if(e&&"undefined"!=typeof document){var t=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===r&&t.firstChild?t.insertBefore(o,t.firstChild):t.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}E("@layer adminui-layout { \r\n :root{\r\n --pageload-bar-color:#222222;\r\n } \r\n #root {\r\n padding: 0;\r\n margin: 0;\r\n border: 0;\r\n width: 100%;\r\n height: 100%;\r\n }\r\n}\r\n/** Menu icon automatic compact mode */\r\n.adminui-menu-icon {\r\n font-size: var(--adminui-menu-icon-size);\r\n width: var(--adminui-menu-icon-size);\r\n height: var(--adminui-menu-icon-size); \r\n}\r\n.adminui-btn-icon {\r\n display: flex;\r\n justify-items: center;\r\n align-items: center;\r\n}\r\n.adminui-menu .adminui-menu-title-content-with-extra {\r\n width: auto;\r\n}\r\n.adminui-menu .adminui-menu-title-content-with-extra .adminui-menu-item-extra {\r\n display: inline-flex;\r\n}");var O="index-module_headerLayout__rv59v",A="index-module_headerLayoutSticky__6uFCj",R="index-module_headerLayoutFixed__t5Hmo",H="index-module_headerLayoutBox__h0fIt",W="index-module_headerMenu__WHmJN",$="index-module_headerTitle__jGbCX",D="index-module_headerBrandBox__U2J16",K="index-module_toolbarPanel__Pp8PS",G="index-module_toolbarItem__RkaXd",V="index-module_toolbarAvatarItem__p6TXY",U="index-module_siderBaseStyle__zg1FM",X="index-module_siderMask__cCjMh",q="index-module_siderContentBox__dGgRe",Y="index-module_siderContentItem__kl3cR",J="index-module_collapsedTrack__LoJ3V",Z="index-module_collapsedTrackButton__m33XS",Q="index-module_brandPanel__2GRgq",ee="index-module_labelBox__dX8fY",ne="index-module_brandNodeBox__W-iM6",re="index-module_brandMobilePanel__m1Diu",te="index-module_largeBrandPanel__pLn--",oe="index-module_title__SbfFY",ie="index-module_largeBrandCollPanel__nsGKB",ae="index-module_avatarPanel__fFvCS",le="index-module_collapsedMobile__Yu8F4",se="index-module_collapsedContainer__23dQh",de="index-module_breadcrumbBox__w3MOx",ce="index-module_breadcrumbFirstIcon__9zEmW",ue="index-module_breadcrumbAllIcon__HYkKa",me="index-module_containerBox__pv0qs",pe="index-module_containerHeader__p8V0W",he="index-module_contentHeaderMenu__zSoS7",xe="index-module_containerHeaderToolbar__pGsCN",fe="index-module_round__WoVxM";function ge(e){const{size:n=16}=e;return h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:h.jsx("path",{d:"m15 18-6-6 6-6"})})}function ye(e){const{size:n=16}=e;return h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:h.jsx("path",{d:"m9 18 6-6-6-6"})})}function be(e){const{size:n=16}=e;return h.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[h.jsx("path",{d:"M21 5H11"}),h.jsx("path",{d:"M21 12H11"}),h.jsx("path",{d:"M21 19H11"}),h.jsx("path",{d:"m7 8-4 4 4 4"})]})}function ve(e){const{size:n=16}=e;return h.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[h.jsx("path",{d:"M21 5H11"}),h.jsx("path",{d:"M21 12H11"}),h.jsx("path",{d:"M21 19H11"}),h.jsx("path",{d:"m3 8 4 4-4 4"})]})}function _e(e){const{size:n=16}=e;return h.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[h.jsx("path",{d:"m7 15 5 5 5-5"}),h.jsx("path",{d:"m7 9 5-5 5 5"})]})}function je(e){const{size:n=16}=e;return h.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[h.jsx("path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"}),h.jsx("circle",{cx:"12",cy:"7",r:"4"})]})}function ke(e){const{size:n=16}=e;return h.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[h.jsx("path",{d:"M8 3v3a2 2 0 0 1-2 2H3"}),h.jsx("path",{d:"M21 8h-3a2 2 0 0 1-2-2V3"}),h.jsx("path",{d:"M3 16h3a2 2 0 0 1 2 2v3"}),h.jsx("path",{d:"M16 21v-3a2 2 0 0 1 2-2h3"})]})}function we(e){const{size:n=16}=e;return h.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[h.jsx("path",{d:"M8 3H5a2 2 0 0 0-2 2v3"}),h.jsx("path",{d:"M21 8V5a2 2 0 0 0-2-2h-3"}),h.jsx("path",{d:"M3 16v3a2 2 0 0 0 2 2h3"}),h.jsx("path",{d:"M16 21h3a2 2 0 0 0 2-2v-3"})]})}function Se(n){const[r,t]=e.useState(!1),{hasChild:o,...i}=n;e.useEffect(()=>{if(n.src)if("string"==typeof n.src){const e=new Image;e.src=n.src,e.onload=()=>t(!0),e.onerror=()=>t(!0)}else t(!0)},[n.src]);const a={...n.style,transition:"opacity 0.3s ease-out",opacity:r?1:0,display:"flex",justifyItems:"center",alignItems:"center"},l=h.jsx("img",{...i});return n.hasChild?l:h.jsx("div",{style:a,children:l})}E('@layer base { \r\n\r\n :root { \r\n --sb-track-color: transparent;\r\n --sb-thumb-color: #ccc;\r\n --sb-thumb-hover: #b3b3b3;\r\n --sb-html-track-color: rgb(250,250,250);\r\n color-scheme: light;\r\n }\r\n\r\n * {\r\n box-sizing: border-box;\r\n scrollbar-width: thin;\r\n scrollbar-color: var(--sb-thumb-color) var(--sb-track-color);\r\n }\r\n\r\n html {\r\n scrollbar-color: var(--sb-thumb-color) var(--sb-html-track-color);\r\n }\r\n \r\n @media (prefers-color-scheme: dark) {\r\n :root {\r\n --sb-track-color: transparent;\r\n --sb-thumb-color: #383838;\r\n --sb-thumb-hover: rgb(49, 49, 49);\r\n --sb-html-track-color: rgb(20,20,20);\r\n color-scheme: dark;\r\n }\r\n }\r\n\r\n :root[style="color-scheme: dark;"],\r\n :root[class="dark"] { \r\n --sb-track-color: transparent;\r\n --sb-thumb-color: #383838;\r\n --sb-thumb-hover: rgb(49, 49, 49); \r\n --sb-html-track-color: rgb(20,20,20); \r\n color-scheme: dark; \r\n }\r\n\r\n ::-webkit-scrollbar {\r\n width: 8px;\r\n height: 8px;\r\n background-color: transparent;\r\n } \r\n\r\n ::-webkit-scrollbar-track {\r\n background-color: var(--sb-track-color);\r\n border-radius: 10px;\r\n }\r\n\r\n ::-webkit-scrollbar-thumb {\r\n background-color: var(--sb-thumb-color);\r\n border-radius: 10px; \r\n border: 2px solid var(--sb-track-color);\r\n }\r\n ::-webkit-scrollbar-thumb:hover {\r\n background-color: var(--sb-thumb-hover);\r\n } \r\n}\r\n/** header */\r\n.index-module_headerLayout__rv59v {\r\n box-sizing: border-box;\r\n min-width: 100%;\r\n padding-block: 0;\r\n padding-inline: 0; \r\n transition: opacity var(--adminui-motion-duration-mid), padding var(--adminui-motion-duration-mid), width var(--adminui-motion-duration-mid);\r\n}\r\n\r\n.index-module_headerLayoutSticky__6uFCj {\r\n position: sticky;\r\n width: 100%;\r\n z-index: 100;\r\n top:0;\r\n}\r\n.index-module_headerLayoutFixed__t5Hmo {\r\n position: fixed;\r\n width: 100%;\r\n z-index: 100;\r\n inset-block-start: 0;\r\n inset-inline-end: 0;\r\n}\r\n.index-module_headerLayoutBox__h0fIt {\r\n display: flex;\r\n flex-flow: row;\r\n justify-content: space-between;\r\n align-items: center;\r\n}\r\n.index-module_headerMenu__WHmJN {\r\n border:0px;\r\n background-color: transparent;\r\n flex:1;\r\n height: 100%;\r\n min-width: 0px;\r\n}\r\n.index-module_headerTitle__jGbCX {\r\n white-space: nowrap;\r\n text-overflow: ellipsis;\r\n}\r\n.index-module_headerBrandBox__U2J16 {\r\n width: auto; \r\n}\r\n\r\n.index-module_layoutBlur__GpCPx { \r\n transform: translateZ(0);\r\n backdrop-filter: blur(8px);\r\n}\r\n\r\n.index-module_toolbarPanel__Pp8PS {\r\n display: flex;\r\n justify-content: end;\r\n align-items: center;\r\n}\r\n.index-module_toolbarPanel__Pp8PS .index-module_toolbarItem__RkaXd {\r\n display: flex;\r\n justify-content: end;\r\n align-items: center;\r\n}\r\n.index-module_toolbarAvatarItem__p6TXY {\r\n display: flex;\r\n align-items: center;\r\n padding-inline: var(--adminui-padding-xs); \r\n gap: 8px;\r\n cursor: pointer;\r\n}\r\n.index-module_toolbarAvatarItem__p6TXY span {\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n min-width: 0;\r\n max-width: 100px;\r\n}\r\n\r\n/** sider */\r\n.index-module_siderBaseStyle__zg1FM {\r\n background:\'transparent\'; \r\n padding-bottom: 0px; \r\n z-index: 10;\r\n transition: opacity var(--adminui-motion-duration-mid), padding var(--adminui-motion-duration-mid), width var(--adminui-motion-duration-mid); \r\n}\r\n\r\n.index-module_siderMask__cCjMh {\r\n overflow: hidden;\r\n transition:background-color 0.3s, min-width 0.3s, max-width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)\r\n}\r\n.index-module_siderContentBox__dGgRe {\r\n display: flex;\r\n flex-flow: column;\r\n align-items: center;\r\n width: 100%;\r\n min-height: 0px;\r\n transition: opacity var(--adminui-motion-duration-mid), padding var(--adminui-motion-duration-mid), width var(--adminui-motion-duration-mid); \r\n}\r\n\r\n.index-module_siderContentItem__kl3cR { \r\n display: flex; \r\n align-items: center;\r\n width: 100%; \r\n min-height: 0px;\r\n transition: opacity var(--adminui-motion-duration-mid), padding var(--adminui-motion-duration-mid), width var(--adminui-motion-duration-mid); \r\n}\r\n.index-module_siderContentItem__kl3cR>div{\r\n display: flex; \r\n align-items: center;\r\n opacity: 1;\r\n transition: opacity var(--adminui-motion-duration-mid), padding var(--adminui-motion-duration-mid), width var(--adminui-motion-duration-mid); \r\n}\r\n\r\n.index-module_collapsedTrack__LoJ3V {\r\n display: flex;\r\n flex-flow: column;\r\n justify-content: center;\r\n align-items: center; \r\n position: absolute;\r\n top:0px;\r\n bottom:0px;\r\n right:-14px;\r\n cursor: pointer;\r\n}\r\n.index-module_collapsedTrack__LoJ3V .index-module_collapsedTrackButton__m33XS {\r\n width: 14px;\r\n height: 36px;\r\n border-top-right-radius: 4px;\r\n border-bottom-right-radius: 4px;\r\n display: flex;\r\n flex-flow: column;\r\n justify-content: center;\r\n align-items: center; \r\n opacity: 0; \r\n transition: opacity var(--adminui-motion-duration-mid), padding var(--adminui-motion-duration-mid), width var(--adminui-motion-duration-mid); \r\n\r\n}\r\n.index-module_collapsedTrack__LoJ3V:hover .index-module_collapsedTrackButton__m33XS {\r\n opacity: 1;\r\n}\r\n\r\n/** brand */ \r\n.index-module_brandPanel__2GRgq {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n padding:var(--adminui-margin-xxs);\r\n}\r\n.index-module_brandPanel__2GRgq button {\r\n display: flex;\r\n width: 100%;\r\n align-items: center;\r\n opacity: 1;\r\n padding-inline: var(--adminui-padding-xs); \r\n transition: all 0.3s;\r\n\r\n}\r\n.index-module_brandPanel__2GRgq a {\r\n display: flex;\r\n width: 100%;\r\n height: 100%;\r\n align-items: center;\r\n opacity: 1;\r\n color:inherit; \r\n transition: all 0.3s; \r\n padding-inline: var(--adminui-padding-xs);\r\n border-radius: var(--adminui-border-radius-lg);\r\n}\r\n\r\n.index-module_brandPanel__2GRgq a:hover{\r\n background-color: var(--adminui-control-item-bg-hover);\r\n}\r\n.index-module_brandPanel__2GRgq a:active{\r\n background-color: var(--adminui-control-item-bg-active);\r\n}\r\n\r\n.index-module_brandPanel__2GRgq h4{\r\n margin:0px;\r\n padding:0px;\r\n line-height: 1rem;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n min-width: 0;\r\n}\r\n.index-module_brandPanel__2GRgq span {\r\n margin:0px; \r\n line-height: 1rem;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n min-width: 0;\r\n}\r\n\r\n.index-module_brandPanel__2GRgq .index-module_labelBox__dX8fY {\r\n width: 100%; \r\n display:flex;\r\n flex-flow:column;\r\n justify-content:space-between;\r\n transition: opacity var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out), padding var(--adminui-motion-duration-mid) var(--adminui-motion-ease-in-out);\r\n}\r\n.index-module_brandNodeBox__W-iM6 {\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n color:var(--adminui-color-primary);\r\n transition: opacity var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out), width var(--adminui-motion-duration-mid) var(--adminui-motion-ease-in-out);\r\n}\r\n\r\n.index-module_brandMobilePanel__m1Diu {\r\n opacity: 0;\r\n width: 0px;\r\n overflow: hidden;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n height: 100%;\r\n gap: 8px;\r\n transition: opacity var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out), width var(--adminui-motion-duration-mid) var(--adminui-motion-ease-in-out),padding var(--adminui-motion-duration-mid) var(--adminui-motion-ease-in-out);\r\n}\r\n.index-module_brandMobilePanel__m1Diu a {\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n}\r\n.index-module_largeBrandPanel__pLn-- {\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n flex-flow: column;\r\n gap: 2px;\r\n padding: var(--adminui-padding-lg); \r\n}\r\n\r\n.index-module_largeBrandPanel__pLn-- img {\r\n transition: width var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out); \r\n}\r\n.index-module_largeBrandPanel__pLn--\x3ediv{\r\n opacity: 1;\r\n text-align: center;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n flex-flow: column; \r\n overflow: hidden;\r\n width: 100%;\r\n transition: opacity var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out), height var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out);\r\n}\r\n.index-module_largeBrandPanel__pLn-- span {\r\n font-size: large;\r\n width: 100%;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n min-width: 0;\r\n}\r\n.index-module_largeBrandPanel__pLn-- span.index-module_title__SbfFY {\r\n font-size: small;\r\n color:var(--adminui-color-text-tertiary);\r\n}\r\n.index-module_largeBrandCollPanel__nsGKB {\r\n padding: var(--adminui-margin-xxs);\r\n}\r\n.index-module_largeBrandCollPanel__nsGKB a {\r\n opacity: 1;\r\n color:inherit; \r\n padding: var(--adminui-padding-xs);\r\n border-radius: var(--adminui-border-radius-lg);\r\n}\r\n.index-module_largeBrandCollPanel__nsGKB a:hover{\r\n background-color: var(--adminui-control-item-bg-hover);\r\n}\r\n.index-module_largeBrandCollPanel__nsGKB a:active{\r\n background-color: var(--adminui-control-item-bg-active);\r\n}\r\n/** avatar */\r\n.index-module_avatarPanel__fFvCS {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n padding:var(--adminui-margin-xxs);\r\n}\r\n.index-module_avatarPanel__fFvCS a {\r\n display: flex;\r\n width: 100%;\r\n height: 100%;\r\n align-items: center;\r\n opacity: 1;\r\n color:inherit; \r\n transition: all 0.3s;\r\n padding-inline: var(--adminui-padding-xs);\r\n border-radius: var(--adminui-border-radius-lg);\r\n}\r\n\r\n.index-module_avatarPanel__fFvCS a:hover{\r\n background-color: var(--adminui-control-item-bg-hover);\r\n}\r\n.index-module_avatarPanel__fFvCS a:active{\r\n background-color: var(--adminui-control-item-bg-active);\r\n}\r\n\r\n.index-module_avatarPanel__fFvCS h4{\r\n width: 90%;\r\n margin:0px;\r\n padding:0px;\r\n line-height: 1rem;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n min-width: 0;\r\n}\r\n.index-module_avatarPanel__fFvCS span {\r\n width: 90%;\r\n margin:0px; \r\n line-height: 1rem;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n min-width: 0;\r\n}\r\n\r\n.index-module_avatarPanel__fFvCS .index-module_labelBox__dX8fY {\r\n width: 100%;\r\n display:flex;\r\n flex-flow:column;\r\n justify-content:space-between;\r\n transition: opacity var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out);\r\n}\r\n\r\n.index-module_collapsedMobile__Yu8F4 { \r\n display: none;\r\n justify-content: center;\r\n align-items: center;\r\n}\r\n.index-module_collapsedContainer__23dQh {\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n}\r\n.index-module_breadcrumbBox__w3MOx li .adminui-breadcrumb-link{\r\n display: flex;\r\n align-items: center;\r\n gap:var(--adminui-margin-xxs);\r\n}\r\n\r\n.index-module_breadcrumbBox__w3MOx li .adminui-breadcrumb-link>span[role="img"],\r\n.index-module_breadcrumbBox__w3MOx li .adminui-breadcrumb-link>svg{\r\n display: none;\r\n}\r\n.index-module_breadcrumbFirstIcon__9zEmW li:first-of-type .adminui-breadcrumb-link>span[role="img"],\r\n.index-module_breadcrumbFirstIcon__9zEmW li:first-of-type .adminui-breadcrumb-link>svg\r\n{\r\n display: inline-flex;\r\n}\r\n.index-module_breadcrumbAllIcon__HYkKa li .adminui-breadcrumb-link>span[role="img"],\r\n.index-module_breadcrumbAllIcon__HYkKa li .adminui-breadcrumb-link>svg{\r\n display: inline-flex;\r\n}\r\n\r\n/** container */\r\n.index-module_containerBox__pv0qs {\r\n box-sizing: border-box;\r\n background-color: transparent;\r\n display: flex;\r\n flex-flow: column;\r\n flex:auto;\r\n}\r\n\r\n.index-module_containerBox__pv0qs>footer{\r\n display: flex;\r\n flex-flow: column;\r\n align-items: center;\r\n justify-content: center;\r\n width: 100%;\r\n color:var(--adminui-color-text-description);\r\n padding:var(--adminui-padding);\r\n}\r\n.index-module_containerBox__pv0qs>footer>div{\r\n text-align: center;\r\n}\r\n.index-module_containerHeader__p8V0W {\r\n display: flex;\r\n justify-content:flex-start;\r\n align-items: center;\r\n padding-block-end: var(--adminui-padding-xs);\r\n}\r\n.index-module_containerHeaderCollapsed__XGlnh {\r\n display: flex;\r\n gap:6px;\r\n align-items: center;\r\n}\r\n.index-module_contentHeaderMenu__zSoS7 {\r\n display: flex;\r\n flex-flow: column;\r\n justify-content: center;\r\n padding-inline-start: var(--adminui-padding-xs);\r\n gap:var(--adminui-margin-xs);\r\n}\r\n.index-module_contentHeaderMenu__zSoS7>h3{\r\n box-sizing: border-box;\r\n line-height: var(--adminui-line-height);\r\n margin:0px;\r\n padding:0px;\r\n}\r\n.index-module_containerHeaderToolbar__pGsCN {\r\n flex:1;\r\n display: flex;\r\n justify-content: flex-end; \r\n align-items: center;\r\n}\r\n\r\n/** antd(adminui) */\r\n.index-module_headerLayout__rv59v .adminui-layout-header{\r\n padding-inline: 0px;\r\n}\r\n.index-module_headerLayout__rv59v .adminui-btn,\r\n.index-module_siderBaseStyle__zg1FM .adminui-btn{\r\n font-size: inherit;\r\n}\r\n.index-module_headerLayoutBox__h0fIt.index-module_round__WoVxM .adminui-menu-horizontal >.adminui-menu-item::after, \r\n.index-module_headerLayoutBox__h0fIt.index-module_round__WoVxM .adminui-menu-horizontal >.adminui-menu-submenu::after { \r\n border-radius: 4px;\r\n}\r\n\r\n.index-module_siderBaseStyle__zg1FM .adminui-layout-sider-trigger{\r\n position: absolute; \r\n top:0; \r\n right:0;\r\n height:100%;\r\n}\r\n.index-module_siderBaseStyle__zg1FM .adminui-layout-sider-children {\r\n display: flex;\r\n flex-flow: column;\r\n margin-top: 0px;\r\n padding-top: 0px;\r\n\r\n}\r\n\r\n@container (max-width: 576px) { \r\n .index-module_headerLayout__rv59v .adminui-layout-header {\r\n padding-inline-start: var(--adminui-padding-xs);\r\n }\r\n .index-module_headerMenu__WHmJN {\r\n justify-content: end;\r\n max-width: 80px;\r\n } \r\n .index-module_headerBrandBox__U2J16 {\r\n display: none;\r\n }\r\n .index-module_siderMask__cCjMh {\r\n display: none;\r\n }\r\n .index-module_brandMobilePanel__m1Diu {\r\n opacity: 1; \r\n padding-inline: var(--adminui-padding-xs);\r\n justify-content: flex-start;\r\n flex:1;\r\n }\r\n .index-module_largeBrandPanel__pLn-- {\r\n display: none;\r\n }\r\n .index-module_collapsedMobile__Yu8F4 {\r\n display: flex;\r\n }\r\n .index-module_collapsedContainer__23dQh {\r\n display: none;\r\n }\r\n .index-module_collapsedTrack__LoJ3V {\r\n visibility: collapse;\r\n }\r\n .index-module_toolbarPanel__Pp8PS *[data-adminui-role="desk-toolbar"] {\r\n display: none;\r\n }\r\n .index-module_toolbarAvatarItem__p6TXY span {\r\n display: none;\r\n }\r\n}\r\n');const Ce=e.createContext({collapsed:!1,headerHeight:50,containerBackground:"transparent",flattenMenuMap:{},setCollapsed:()=>{}}),Be=e.createContext({close:()=>{}}),Ie=e.createContext({close:()=>{}}),Me=Symbol("AsideFooter"),Pe=Symbol("AsideHeader"),Te=Symbol("AsideContentItems"),Ne=Symbol("AsideContentItem"),ze=Symbol("ContentFooter"),Fe=Symbol("AvatarPopoverContent"),Le=Symbol("BrandPopoverContent"),Ee=Symbol("SoltContent"),Oe=Symbol("ToolbarExtraItems"),Ae=()=>e.useContext(Ce),Re=()=>Ae().collapsed,He=()=>t.useOutletContext(),We=()=>Be,$e=()=>Ie;function De(n){const{icon:r,size:t}=n;return e.isValidElement(r)?e.cloneElement(r,{size:t,style:{fontSize:t-2+"px",...n.style}}):r}const{useToken:Ke}=n.theme;function Ge(r){const{collapsed:t,iconSize:o,hideTitle:i}=r,{layoutConfig:a}=B(),{token:l}=Ke(),{layoutIcons:s,brandPopoverContent:d}=Ae(),[c,u]=e.useState(!1),m=$e(),p=a.compact?"16px":"20px";let x={justifyContent:"flex-start",paddingInline:a.compact?l.paddingXXS:l.paddingXS,height:"40px",gap:(a.compact?6:8)+"px"},f={height:`${a.headerHeight}px`},g={boxSizing:"border-box",display:"flex",flex:"1",gap:"6px",width:"100%",textAlign:"left",alignItems:"center"};a.flated&&(x={...x,paddingInline:l.padding,height:"100%"},f={...f,padding:"0px"});const{brandInfo:y}=a;t?x={...x,paddingInline:`calc(50% - calc(${p} / 2))`}:g={...g,overflow:"hidden"};let b=h.jsx(h.Fragment,{});y?.logo&&(b="string"==typeof y.logo?h.jsx(Se,{style:{width:p,minWidth:p},src:y.logo,alt:y.name}):h.jsx("div",{className:ne,style:{width:p,minWidth:p},children:y.logo}));const v=s?.itemMoreIcon||h.jsx(_e,{}),_=h.jsx(n.Button,{type:"text",style:x,iconPlacement:"end",icon:d?h.jsx(De,{icon:v,size:o||14,style:{opacity:t?"0":"1"}}):void 0,children:h.jsxs("div",{style:g,children:[b,h.jsxs("div",{className:ee,style:{opacity:t?"0":"1"},children:[h.jsx("h4",{children:y?.name}),i?void 0:h.jsx("span",{style:{color:l.colorTextSecondary},children:y?.title})]})]})});return h.jsx("div",{className:Q,style:f,children:d?h.jsx(m.Provider,{value:{close:()=>{u(!1)},record:y},children:h.jsx(n.Popover,{open:c,onOpenChange:u,placement:"rightTop",content:d,children:_})}):_})}function Ve(r){const{collapsed:t,iconSize:o,hideTitle:i}=r,{layoutConfig:a}=B(),{layoutIcons:l,brandPopoverContent:s}=Ae(),{token:d}=Ke(),[c,u]=e.useState(!1),m=$e(),p=a.compact?"16px":"20px";let x={justifyContent:"flex-start",gap:(a.compact?6:8)+"px"},f={height:`${a.headerHeight}px`},g={boxSizing:"border-box",display:"flex",flex:"1",gap:"6px",width:"100%",alignItems:"center"};a.flated&&(x={...x,paddingInline:d.padding},f={...f,padding:"0px"});const{brandInfo:y}=a;t?x={...x,paddingInline:`calc(50% - calc(${p} / 2))`}:g={...g,overflow:"hidden"};let b=h.jsx(h.Fragment,{});y?.logo&&(b="string"==typeof y.logo?h.jsx(Se,{style:{width:p,minWidth:p},src:y.logo,alt:y.name}):h.jsx("div",{className:ne,style:{width:p,minWidth:p},children:y.logo}));const v=l?.itemMoreIcon||h.jsx(_e,{}),_=s?{}:{href:y?.url},j=h.jsxs("a",{..._,style:x,children:[h.jsxs("div",{style:g,children:[b,h.jsxs("div",{className:ee,style:{opacity:t?"0":"1"},children:[h.jsx("h4",{style:{width:"90%"},children:y?.name}),i?void 0:h.jsx("span",{style:{color:d.colorTextSecondary,width:"90%"},children:y?.title})]})]}),s?h.jsx("div",{style:{opacity:t?"0":"1",display:"flex",placeItems:"center"},children:h.jsx(De,{icon:v,size:o||14})}):h.jsx(h.Fragment,{})]});return h.jsx("div",{className:Q,style:f,children:s?h.jsx(m.Provider,{value:{close:()=>{u(!1)},record:y},children:h.jsx(n.Popover,{open:c,onOpenChange:u,placement:"rightTop",content:s,children:j})}):j})}function Ue(r){const{layoutConfig:t}=B(),{brandPopoverContent:o}=Ae(),[i,a]=e.useState(!1),l=$e(),s=t.compact?"16px":"20px",{brandInfo:d}=t;let c=h.jsx(h.Fragment,{});d?.logo&&(c="string"==typeof d.logo?h.jsx(Se,{style:{width:s},src:d.logo,alt:d.name}):h.jsx("div",{className:ne,style:{width:s},children:d.logo}));let u=o?h.jsx(l.Provider,{value:{close:()=>{a(!1)},record:d},children:h.jsx(n.Popover,{open:i,onOpenChange:a,content:o,placement:"rightTop",children:h.jsx("a",{children:c})})}):h.jsx("a",{href:d?.url,children:c});return h.jsxs("div",{className:re,style:r.style,children:[u,h.jsx("div",{className:$,children:r.children})]})}function Xe(r){const{collapsed:t}=r,{brandPopoverContent:o}=Ae(),{layoutConfig:i}=B(),[a,l]=e.useState(!1),s=$e(),d=t?i.compact?"16px":"20px":i.compact?"56px":"64px",{brandInfo:c}=i,u={opacity:t?"0":"1",height:t?"0px":"auto"};let m=h.jsx(h.Fragment,{});if(!c)return h.jsx(h.Fragment,{});let p=[te];t&&p.push(ie),c?.logo&&(m="string"==typeof c.logo?h.jsx(Se,{style:{width:d},src:c.logo,alt:c.name}):h.jsx("div",{className:ne,style:{width:d},children:c.logo}));let x=o?h.jsx(s.Provider,{value:{close:()=>{l(!1)},record:c},children:h.jsx(n.Popover,{open:a,onOpenChange:l,content:o,placement:"rightTop",children:h.jsx("a",{children:m})})}):h.jsx("a",{href:c?.url,children:m});return h.jsxs("div",{className:p.join(" "),children:[x,h.jsxs("div",{style:u,children:[h.jsx("span",{children:c?.name}),c.title?h.jsx("span",{className:oe,children:c?.title}):h.jsx(h.Fragment,{})]})]})}function qe(e){return h.jsx("div",{style:{...e.style},children:e.children})}qe.displayName="BrandPopoverContent",qe.role=Le;const{useToken:Ye}=n.theme;function Je(r){const{collapsed:t,iconSize:o}=r,{layoutConfig:i}=B(),{layoutIcons:a,avatarPopoverContent:l}=Ae(),[s,d]=e.useState(!1),c=We(),{token:u}=Ye(),m=i.compact?"20px":"24px";let p={justifyContent:"flex-start",gap:(i.compact?6:8)+"px"},x={height:`${i.headerHeight}px`},f={boxSizing:"border-box",display:"flex",flex:"1",gap:"6px",width:"100%",alignItems:"center"};i.flated&&(p={...p,paddingInline:u.padding,margin:"0px",height:"100%"},x={...x,padding:"0px"});const{userInfo:g}=i;t?p={...p,paddingInline:`calc(50% - calc(${m} / 2))`}:f={...f,overflow:"hidden"};let y=h.jsx(h.Fragment,{});g?.avatar&&(y="string"==typeof g.avatar?h.jsx(Se,{style:{width:m,borderRadius:"999px"},src:g.avatar,alt:g.uid}):g.avatar);const b=a?.itemMoreIcon||h.jsx(_e,{}),v=h.jsx("div",{className:ae,style:x,children:h.jsxs("a",{style:p,children:[h.jsxs("div",{style:f,children:[y,h.jsxs("div",{className:ee,style:{opacity:t?"0":"1"},children:[h.jsx("h4",{children:g?.uid}),g?.title?void 0:h.jsx("span",{style:{color:u.colorTextSecondary},children:g?.title})]})]}),l?h.jsx("div",{style:{opacity:t?"0":"1",display:"flex",placeItems:"center"},children:h.jsx(De,{icon:b,size:o||14})}):h.jsx(h.Fragment,{})]})});return l?h.jsx(c.Provider,{value:{close:()=>d(!1),record:g},children:h.jsx(n.Popover,{open:s,onOpenChange:d,placement:"right",content:l,children:v})}):v}function Ze(r){const{iconSize:t=14}=r,{layoutConfig:o}=B(),{userInfo:i}=o,{avatarPopoverContent:a}=Ae(),[l,s]=e.useState(!1),d=We();let c=h.jsx(je,{});const u=t+4,m={width:`${u}px`,height:`${u}px`,overflow:"hidden",display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer"};i?.avatar&&(c="string"==typeof i.avatar?h.jsx(Se,{style:{width:u,borderRadius:"999px"},src:i.avatar,alt:i.uid}):i.avatar);const p=h.jsxs("div",{className:V,children:[h.jsx("div",{style:m,children:c}),h.jsx("span",{children:i?.uid})]});return a?h.jsx(d.Provider,{value:{close:()=>s(!1),record:i},children:h.jsx(n.Popover,{open:l,onOpenChange:s,placement:"left",content:a,children:p})}):h.jsx(h.Fragment,{children:p})}function Qe(e){return h.jsx("div",{style:{...e.style},children:e.children})}Qe.displayName="AvatarPopoverContent",Qe.role=Fe;const{useToken:en}=n.theme;function nn(e){const{token:r}=en(),{layoutIcons:t,toolbarExtraItems:o}=Ae(),i=r.Menu?.iconSize||16,[a,l]=t?.fullScreenIcons?.slice(0,2)||[h.jsx(we,{}),h.jsx(ke,{})],s=h.jsx(De,{icon:a,size:i}),d=h.jsx(De,{icon:l,size:i});return h.jsxs("div",{className:K,children:[e.showAvatar?h.jsxs("div",{className:G,children:[h.jsx(Ze,{iconSize:i+4}),h.jsx(n.Divider,{"data-adminui-role":"desk-toolbar",orientation:"vertical"})]}):h.jsx(h.Fragment,{}),o,h.jsx("div",{className:G,"data-adminui-role":"desk-toolbar",children:h.jsx(z,{buttons:[h.jsx(n.Button,{icon:d,type:"text"},"minimize"),h.jsx(n.Button,{icon:s,type:"text"},"maximize")]})})]})}function rn(e){const n=h.jsx("div",{className:G,"data-adminui-role":"desk-toolbar",children:e.children});return e?h.jsx(h.Fragment,{children:n}):h.jsx(h.Fragment,{})}rn.displayName="ToolbarExtraItems",rn.role=Oe;const{useToken:tn}=n.theme;function on(e){const{style:n}=e,{collapsed:r,setCollapsed:t,layoutIcons:o}=Ae(),i={display:"flex",justifyContent:"flex-end",alignItems:"center",width:"100%",height:n?.width,backgroundColor:"transparent"},a={display:"flex",width:n?.width,height:"100%",cursor:"pointer",justifyContent:"center",alignItems:"center"},[l,s]=o?.collapsedIcons?.slice(0,2)||[h.jsx(ye,{}),h.jsx(ge,{})];return h.jsx("div",{style:i,children:h.jsx("div",{style:a,onClick:()=>{t(!r)},children:r?l:s})})}function an(e){const{style:n,offset:r=0,top:t}=e,{collapsed:o,setCollapsed:i,layoutIcons:a}=Ae(),{token:l}=tn();let s={right:"-14px"},d={backgroundColor:n?.backgroundColor,border:`solid 1px ${l.colorBorderSecondary}`};t&&(s={...s,right:"-12px",display:"initial"},d={...d,width:"24px",height:"24px",borderRadius:"12px",transform:`translateY(${r+10}px)`});const[c,u]=a?.collapsedIcons?.slice(0,2)||[h.jsx(ye,{}),h.jsx(ge,{})];return h.jsx("div",{className:J,style:s,onClick:()=>{i(!o)},children:h.jsx("div",{style:d,className:Z,children:o?c:u})})}function ln(e){const{collapsed:r,setCollapsed:t,layoutIcons:o}=Ae(),[i,a]=o?.mobileAsideIcons?.slice(0,2)||[h.jsx(ve,{}),h.jsx(be,{})];return h.jsx("div",{className:le,children:h.jsx(n.Button,{type:"text",style:{cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center",...e.style},icon:r?i:a,onClick:()=>{t(!r)}})})}function sn(e){const{collapsed:r,setCollapsed:t,layoutIcons:o}=Ae(),[i,a]=o?.mobileAsideIcons?.slice(0,2)||[h.jsx(ve,{}),h.jsx(be,{})];return h.jsx("div",{className:se,children:h.jsx(n.Button,{type:"text",style:{cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center",...e.style},icon:r?i:a,onClick:()=>{t(!r)}})})}const{Header:dn}=n.Layout,{useToken:cn}=n.theme;function un(e){const{layoutConfig:r}=B(),{token:o,theme:i}=cn(),a=t.useNavigate(),l=r.headerTransparent||r.headerBlur?L(o.colorBorderSecondary,.6):o.colorBorderSecondary,s=r.hideBorder?"0px":"1px solid "+l,d=r.flated&&"headMenu"==r.layoutType||1==i.id?"dark":"light",c=r.flated&&"headMenu"==r.layoutType?"dark":"light",u=r.flated&&"headMenu"==r.layoutType?o.colorPrimary:o.colorBgContainer,m={height:e.height+"px",lineHeight:e.height+"px"};let p=h.jsx(h.Fragment,{}),x={...m,borderBottom:s,backgroundColor:r.headerTransparent?"transparent":u};r.headerBlur&&(x={...x,backgroundColor:L(u,.6),transform:"translateZ(0)",backdropFilter:"blur(8px)"});let f={...m,fontSize:o.Menu?.iconSize,backgroundColor:"transparent",flex:"none"},g=[O],y=h.jsx(h.Fragment,{});"headMenu"==r.layoutType?(p=h.jsx("div",{style:m}),x={...x,paddingInlineEnd:o.paddingXS+"px"},y=h.jsx("div",{className:D,style:{width:r?.asideWidth+"px"},children:h.jsx(Ge,{collapsed:!1,iconSize:o.Menu?.iconSize,hideTitle:!0})}),g.push(R)):(x={...x,paddingInline:o.paddingXS+"px"},g.push(A));let b=h.jsx(Ue,{children:e.title}),v=h.jsx(ln,{iconSize:r.compact?12:14});const _=[H];r.flated||_.push(fe);let j="dark"==d?[n.theme.darkAlgorithm]:[n.theme.defaultAlgorithm];return r.noneHeader?h.jsx(h.Fragment,{}):h.jsxs(h.Fragment,{children:[p,h.jsx(n.ConfigProvider,{theme:{algorithm:j},children:h.jsx(n.Layout,{className:g.join(" "),style:f,children:h.jsxs(dn,{className:_.join(" "),style:x,children:[v,y,b,h.jsx(n.Menu,{onClick:e=>{a(e.key)},defaultSelectedKeys:e.selectedKeys,selectedKeys:e.selectedKeys,mode:"horizontal",theme:c,classNames:{root:W},items:e.menuData||[]}),h.jsx(nn,{showAvatar:"rightTop"==r.avatarPosition})]})})})]})}const{Sider:mn}=n.Layout,{useToken:pn}=n.theme,{useBreakpoint:hn}=n.Grid;function xn(r){const o=e.useRef([]);o.current=r.openerKeys||[];const[i,a]=e.useState(r.openerKeys),{layoutConfig:l}=B(),{asideWidth:s}=l,d=r.headerHeight,{collapsed:c,setCollapsed:u}=Ae(),{token:m,theme:p}=pn(),x=t.useNavigate(),f=hn().xs?0:d,g=l.headerTransparent||l.headerBlur?L(m.colorBorderSecondary,.6):m.colorBorderSecondary,y=l.hideBorder||0==f&&c?"0px":"1px solid "+g,b=l.noneHeader&&"leftMenu"==l.layoutType,v=l.containerMargin||0,_="headMenu"==l.layoutType||0==f?r.headerHeight:0,j="headMenu"==l.layoutType||0==f?"calc(100% - "+r.headerHeight+"px)":"100%";let k={width:`${l.asideWidth}px`,height:`${j}`,insetBlockStart:_+"px",maxWidth:`${l.asideWidth}px`,minWidth:`${l.asideWidth}px`,borderRight:y,boxShadow:f>0?"none":m.boxShadowTertiary,position:"fixed",margin:b?v/2:"0px",transition:"width 0.3s, min-width 0.3s, max-width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"},w={overflow:"auto",flex:1};const S=m.Menu?.iconSize,C=1==p.id?"dark":"light",I=C;let M=0,P=h.jsx(h.Fragment,{});"leftMenu"==l.layoutType&&(M=l.headerHeight||0,P=l.largeBrand?h.jsx(Xe,{collapsed:c,iconSize:S}):h.jsx(Ve,{collapsed:c,iconSize:S,hideTitle:!0}));const T=m.colorBgContainer;k={...k,backgroundColor:l.asideTransparent&&f>0?"transparent":T},l.asideBlur&&(k={...k,backgroundColor:L(T,.6),transform:"translateZ(0)",backdropFilter:"blur(8px)"}),c&&(w={...w,overflow:"hidden"});let N=[U],z=h.jsx(h.Fragment,{});switch(l.collapsedPosition){case"bottom":z=h.jsx(on,{iconSize:S,style:{backgroundColor:T,width:`${d}px`,borderRight:y}});break;case"center":z=h.jsx(an,{iconSize:12,flated:l.flated,offset:M,style:{backgroundColor:T}});break;case"top":z=l.noneHeader?h.jsx(h.Fragment,{}):h.jsx(an,{iconSize:12,top:!0,flated:l.flated,offset:M,style:{backgroundColor:T}})}let F=r.menuData||[];return l.asideMenuGroup&&F.forEach(e=>{e.children&&(e.type="group")}),h.jsxs(h.Fragment,{children:[h.jsx("div",{style:{width:c?d:s,flex:`0 0 ${c?d:s}px`,maxWidth:c?d:s,minWidth:c?d:s,transition:"background-color 0.3s, min-width 0.3s, max-width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"},className:X}),h.jsxs(mn,{width:s,className:N.join(" "),style:k,theme:I,collapsedWidth:f,collapsible:!0,trigger:null,breakpoint:"md",collapsed:c,onCollapse:u,children:[f>0?P:h.jsx(h.Fragment,{}),r.header,h.jsx("div",{style:w,children:h.jsx(n.Menu,{onClick:e=>{0==f&&u(!0),x(e.key)},onOpenChange:e=>{a(e)},style:{border:"0",background:"transparent",position:"relative",minHeight:"100%"},mode:l.asideMenuInline?"inline":"vertical",selectedKeys:r.selectedKeys,openKeys:c?void 0:i,defaultSelectedKeys:r.selectedKeys,defaultOpenKeys:o.current,theme:C,items:F})}),r.footer,"leftBottom"==l.avatarPosition?h.jsx(Je,{collapsed:c,iconSize:S}):h.jsx(h.Fragment,{}),z]})]})}const fn=e=>e.reduce((e,n)=>{const{children:r,...t}=n;return e[t.path]=t,r&&Object.assign(e,fn(r)),e},{});function gn(e,n){let r=[],t=[];return e.forEach(e=>{e.key==n[1]&&(t=e.children??[]);const o={...e,children:void 0};r.push(o)}),{rootMenuItems:r,childrenMenuItems:t}}const yn=e=>{let n=[];if(!(null==e||e.length<=0))return e.forEach(e=>{let r=_n(e);r.children=yn(e.children),n.push(r)}),n},bn=(e,n)=>{if(e)return e.map(e=>{const r=vn(e,n),t={...e,label:r};return e.children&&(t.children=bn(e.children,n)),t})},vn=(e,n)=>((e,n,r,t)=>{if(t){const o="menu"+e.replaceAll("/",".");return t.formatMessage({id:o,defaultMessage:r||n})}return r||n})(e.path||"",e.name,e.label,n),_n=e=>({key:e.path||e.name,label:e.label||e.name,icon:e.icon,extra:e.extra,title:e.label});function jn(e){const n="/"===e?"/":e.replace(/\/+$/,"");if("/"===n)return["/"];const r=n.split("/").filter(Boolean),t=["/"];let o="";for(const e of r)o+=`/${e}`,t.push(o);return t}function kn(e){const n=e.length;if(0===n)return[[],[]];if(1===n)return[[e[0]],[]];const r=[e[1]],t=new Array(n-2);for(let r=1;r<n;r++)t[r-1]=e[r];return[r,t]}function wn(e,n){if(n)return!e.endsWith("/")&&e.length>1&&(e+="/"),n.map(n=>{const r=function(e,n){let r=n.path||n.name;r?.startsWith("/")&&(r=r.slice(1));r?.startsWith("./")&&(r=r.slice(2));let t=e+r,o={name:t,path:t,label:n.label,originalPath:t,extra:Sn(n.extra),icon:Sn(n.icon)};return o}(e,n);return n.children&&(r.children=wn(r.path,n.children)),r})}const Sn=n=>e.isValidElement(n)?n:"function"==typeof n||"object"==typeof n?e.createElement(n):null,{useToken:Cn}=n.theme;function Bn(n){const{layoutConfig:o,themeSkin:i}=B(),a=r.useIntl(),{token:l}=Cn(),[s,d]=e.useState(!1),c={backgroundColor:l.colorBgLayout};let u=o.headerHeight||56;o.compact&&(u-=4);const m=o.disabledLocale?n.menuData:bn(n.menuData,a),p=m&&m?.length>0?m[0].children:[],x=fn(m||[]),f=yn(p),g=t.useMatches(),y=g.map(e=>e.pathname),b=g[g.length-1];let v=[],_=[],j=[],k=[];if("leftMenu"==o.layoutType?(k=f||[],_=y):(j=f||[],v=y),o.splitMenu){const[e,n]=kn(y),{rootMenuItems:r,childrenMenuItems:t}=gn(f,y);"leftMenu"==o.layoutType?(k=r,j=t,_=e,v=n):(k=t,j=r,v=e,_=n)}const w=e.useMemo(()=>o.asideBlur||o.headerBlur?L(l.colorBgContainer,.6):l.colorBgContainer,[o.asideBlur,o.headerBlur,l.colorBgContainer]),S=e.Children.toArray(n.children),C=S.find(n=>e.isValidElement(n)&&n.type.role===Me),I=S.find(n=>e.isValidElement(n)&&n.type.role===Pe),M=S.find(n=>e.isValidElement(n)&&n.type.role===ze),P=S.find(n=>e.isValidElement(n)&&n.type.role===Fe),T=S.find(n=>e.isValidElement(n)&&n.type.role===Le),z=S.find(n=>e.isValidElement(n)&&n.type.role===Ee),F=S.find(n=>e.isValidElement(n)&&n.type.role===Oe),E=Ce,O=e.useMemo(()=>({collapsed:s,headerHeight:u,layoutIcons:n.layoutIcons,avatarPopoverContent:P,brandPopoverContent:T,toolbarExtraItems:F,containerBackground:w,flattenMenuMap:x,setCollapsed:d}),[s,u,n.layoutIcons,x,w]),A=o.hideAsideMenuDataEmpty&&k.length<=0&&"headMenu"==o.layoutType,R=x[b.pathname].label||"";return document.title=R,h.jsxs(h.Fragment,{children:[h.jsx(E,{value:O,children:h.jsxs(N,{...n,style:c,children:[h.jsx(N.Aside,{children:A?h.jsx(h.Fragment,{}):h.jsx(xn,{headerHeight:u,header:C,footer:I,menuData:k,selectedKeys:_,openerKeys:_})}),h.jsx(N.Header,{children:h.jsx(un,{height:u,menuData:j,selectedKeys:v,title:R})}),h.jsx(N.Content,{children:h.jsx(t.Outlet,{context:{title:R,footer:M}})}),h.jsx(N.Background,{children:i?i.backgroundContent:h.jsx(h.Fragment,{})})]})}),z]})}const In="#417ffb",Mn=e=>i.generate(e),Pn=()=>Mn("#000000"),Tn=()=>Mn("#FFFFFF"),Nn=e=>{let{layoutConfig:n}=B();return n.asideBlur||n.headerBlur?L(e,.6):e},zn=e=>({backgroundColor:Nn(e),transform:"translateZ(0)",backdropFilter:"blur(8px)"});function Fn(e){const n=Re(),{layoutConfig:r}=B(),t=r.compact?"16px":"20px";let o={justifyContent:"flex-start",paddingInline:r.compact?"14px":"16px",marginInline:"4px",marginBlock:"4px",gap:(r.compact?6:8)+"px"};return n&&(o={...o,paddingInline:`calc(50% - calc(${t} / 2))`}),!e.icon&&n?h.jsx(h.Fragment,{}):h.jsxs("div",{className:Y,style:o,children:[h.jsx("div",{children:e.icon}),h.jsx("div",{style:{opacity:n?"0":"1"},children:e.children})]})}function Ln(e){return h.jsx(h.Fragment,{children:e.children})}function En(e){return h.jsx("div",{className:q,children:e.children})}function On(e){return h.jsx("div",{className:q,children:e.children})}Ln.displayName="AsideContentItems",Fn.displayName="AsideContentItem",On.displayName="AsideHeaderContent",On.Items=Ln,On.Item=Fn,En.displayName="AsideFooterContent",En.Items=Ln,En.Item=Fn,En.role=Pe,On.role=Me,Ln.role=Te,Fn.role=Ne;const An="adminui-default-config",Rn=e=>({f:n=>{const{id:r,defaultMessage:t}=n;return e?e.formatMessage({id:r,defaultMessage:t}):t||r.split(".").pop()},t:(n,r)=>e?e.formatMessage({id:n,defaultMessage:r}):r||n.split(".").pop()}),Hn=e=>{e||(e=An);const n=window.localStorage.getItem(e);try{if(n)return JSON.parse(n)}catch(e){console.error(e)}},Wn=(e,n)=>{n||(n=An);const{brandInfo:r,userInfo:t,...o}=e,i=JSON.stringify(o);window.localStorage.setItem(n,i)},$n=(e,n)=>{let r={...e};return n&&(r={...r,...n.layoutConfig},r.brandInfo&&n.logo&&(r={...r,brandInfo:{...r.brandInfo,logo:n.logo}})),r};function Dn(e){const r=t.useMatches(),{flattenMenuMap:o}=Ae(),{layoutConfig:i}=B(),a=[];r.forEach((e,n)=>{const r=o[e.pathname],t=r?r.label:"";a.push({path:e.pathname,title:t,icon:r.icon})});let l=[de];return"first"==i.visibleBreadcrumbIcon?l.push(ce):"all"==i.visibleBreadcrumbIcon&&l.push(ue),h.jsx(n.Breadcrumb,{classNames:{root:l.join(" ")},style:e.style,items:a,itemRender:Kn})}function Kn(e,n,r,o){return e?.path===r[r.length-1]?.path?h.jsxs("span",{className:"adminui-breadcrumb-link",children:[e.icon,e.title]}):h.jsxs(t.Link,{className:"adminui-breadcrumb-link",to:"/"+o[o.length-1],children:[e.icon,e.title]})}const{useToken:Gn}=n.theme,{useBreakpoint:Vn}=n.Grid;const Un=e=>h.jsx("div",{...e,children:e.children});function Xn({children:e}){return h.jsx(h.Fragment,{children:e})}Un.displayName="ContentFooter",Un.role=ze,Xn.displayName="SoltContent",Xn.role=Ee;const qn="adminui-locale",Yn=Pn(),Jn=Tn(),Zn=(e,n)=>{let r;return Object.entries(n).forEach(([n,t])=>{t.forEach(n=>{n.name==e&&(r=n)})}),r};function Qn(o){const a=t.useMatches(),{pathname:l}=a[0],s={...w,...o.layoutConfig,...o.disabledStorageConfig?{}:Hn(l)};let d=o.themeSkins||[];const c=e.useMemo(()=>(e=>{let n={system:[],custom:[]};return e.forEach(e=>{"system"==e.skinType?n.system.push(e):n.custom.push(e)}),n})(d),[d]),u=o.locale||localStorage.getItem(qn)||s.locale||"en-US",m=o.menuData?wn("/",[o.menuData]):[],[p,x]=e.useState(()=>{if(s.skinName){const e=Zn(s.skinName,c);return $n(s,e)}return s}),[f,g]=e.useState(u),y=C,b=S;let v=o.localeMessages||{};const _=e.useMemo(()=>(e=>{let n=[];return Object.entries(e).forEach(([e,r])=>{n.push({name:r.name,locale:e,flag:r.flag})}),n})(v),[v]),j=e=>{localStorage.setItem(qn,e),g(e)};document.documentElement.style.setProperty("--pageload-bar-color",p.primaryColor),e.useEffect(()=>{const e=window.document.documentElement;if(e.classList.remove("light","dark"),"system"===p.theme){const n=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";return void e.classList.add(n)}e.classList.add(p.theme)},[p.theme]);const k=e.useMemo(()=>{if(p.skinName)return Zn(p.skinName,c)},[d,p.skinName]),B="system"==(I=p.theme)?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":I;var I;const M=e=>{x(e),o.disabledStorageConfig||Wn(e,l)},P=e.useMemo(()=>({layoutConfig:p,locale:f,languages:_,themeSkin:k,themeSkinMap:c}),[_,f,_,c,k,p]),T=e.useMemo(()=>({setLayoutConfig:M,setLocale:j}),[]),N=v[f]||v["en-US"],z=["he","ar","fa","ku"].filter(e=>f.startsWith(e)).length?"rtl":"ltr";let F="dark"===B?[n.theme.darkAlgorithm]:[n.theme.defaultAlgorithm],L=p.menuIconSize||14;const E=p.menuIconSize?.1*(L-10)+10:10;p.compact&&(F.push(n.theme.compactAlgorithm),L-=2);const O="dark"===B?Jn:Yn,A="dark"===B?Yn:Jn,R=i.generate(p.primaryColor||In);let H={darkSubMenuItemBg:"transparent",subMenuItemBg:"transparent",iconSize:L,fontSize:L,itemMarginInline:p.flated?0:4,iconMarginInlineEnd:E,activeBarHeight:p.compact?2:4,darkPopupBg:Yn[4]};if(p.menuItemSelectColor&&"default"!=p.menuItemSelectColor){const e="invert"==p.menuItemSelectColor;H={...H,itemActiveBg:e?O[0]:R[1],itemSelectedBg:e?O[3]:p.primaryColor,itemSelectedColor:e?A[2]:Jn[2]}}const W={algorithm:F,token:{colorPrimary:p.primaryColor,borderRadius:p.flated?0:6},components:{Menu:H,Layout:{siderBg:"transparent",triggerBg:"transparent",lightSiderBg:"transparent",lightTriggerBg:"transparent"}}};return h.jsx(y.Provider,{value:P,children:h.jsx(b.Provider,{value:T,children:h.jsx(n.ConfigProvider,{theme:W,locale:N?.antdLocale,direction:z,modal:{mask:{blur:!1}},drawer:{mask:{blur:!1}},prefixCls:"adminui",children:h.jsx(n.App,{style:{height:"100%",width:"100%"},children:h.jsx(r.IntlProvider,{locale:f,messages:N?.messages,children:h.jsx(Bn,{menuData:m,layoutIcons:o.layoutIcons,children:o.children})})})})})})}Qn.AsideHeader=On,Qn.AsideFooter=En,Qn.Footer=Un,Qn.AvatarPopoverContent=Qe,Qn.BrandPopoverContent=qe,Qn.SoltContent=Xn,Qn.HeaderToolbarExtra=rn;var er={exports:{}};
21
21
  /* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
22
22
  * @license MIT */er.exports=function(){var e,n,r={version:"0.2.0"},t=r.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function o(e,n,r){return e<n?n:e>r?r:e}function i(e){return 100*(-1+e)}function a(e,n,r){var o;return(o="translate3d"===t.positionUsing?{transform:"translate3d("+i(e)+"%,0,0)"}:"translate"===t.positionUsing?{transform:"translate("+i(e)+"%,0)"}:{"margin-left":i(e)+"%"}).transition="all "+n+"ms "+r,o}r.configure=function(e){var n,r;for(n in e)void 0!==(r=e[n])&&e.hasOwnProperty(n)&&(t[n]=r);return this},r.status=null,r.set=function(e){var n=r.isStarted();e=o(e,t.minimum,1),r.status=1===e?null:e;var i=r.render(!n),d=i.querySelector(t.barSelector),c=t.speed,u=t.easing;return i.offsetWidth,l(function(n){""===t.positionUsing&&(t.positionUsing=r.getPositioningCSS()),s(d,a(e,c,u)),1===e?(s(i,{transition:"none",opacity:1}),i.offsetWidth,setTimeout(function(){s(i,{transition:"all "+c+"ms linear",opacity:0}),setTimeout(function(){r.remove(),n()},c)},c)):setTimeout(n,c)}),this},r.isStarted=function(){return"number"==typeof r.status},r.start=function(){r.status||r.set(0);var e=function(){setTimeout(function(){r.status&&(r.trickle(),e())},t.trickleSpeed)};return t.trickle&&e(),this},r.done=function(e){return e||r.status?r.inc(.3+.5*Math.random()).set(1):this},r.inc=function(e){var n=r.status;return n?("number"!=typeof e&&(e=(1-n)*o(Math.random()*n,.1,.95)),n=o(n+e,0,.994),r.set(n)):r.start()},r.trickle=function(){return r.inc(Math.random()*t.trickleRate)},e=0,n=0,r.promise=function(t){return t&&"resolved"!==t.state()?(0===n&&r.start(),e++,n++,t.always(function(){0===--n?(e=0,r.done()):r.set((e-n)/e)}),this):this},r.render=function(e){if(r.isRendered())return document.getElementById("nprogress");c(document.documentElement,"nprogress-busy");var n=document.createElement("div");n.id="nprogress",n.innerHTML=t.template;var o,a=n.querySelector(t.barSelector),l=e?"-100":i(r.status||0),d=document.querySelector(t.parent);return s(a,{transition:"all 0 linear",transform:"translate3d("+l+"%,0,0)"}),t.showSpinner||(o=n.querySelector(t.spinnerSelector))&&p(o),d!=document.body&&c(d,"nprogress-custom-parent"),d.appendChild(n),n},r.remove=function(){u(document.documentElement,"nprogress-busy"),u(document.querySelector(t.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&p(e)},r.isRendered=function(){return!!document.getElementById("nprogress")},r.getPositioningCSS=function(){var e=document.body.style,n="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return n+"Perspective"in e?"translate3d":n+"Transform"in e?"translate":"margin"};var l=function(){var e=[];function n(){var r=e.shift();r&&r(n)}return function(r){e.push(r),1==e.length&&n()}}(),s=function(){var e=["Webkit","O","Moz","ms"],n={};function r(e){return e.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(e,n){return n.toUpperCase()})}function t(n){var r=document.body.style;if(n in r)return n;for(var t,o=e.length,i=n.charAt(0).toUpperCase()+n.slice(1);o--;)if((t=e[o]+i)in r)return t;return n}function o(e){return e=r(e),n[e]||(n[e]=t(e))}function i(e,n,r){n=o(n),e.style[n]=r}return function(e,n){var r,t,o=arguments;if(2==o.length)for(r in n)void 0!==(t=n[r])&&n.hasOwnProperty(r)&&i(e,r,t);else i(e,o[1],o[2])}}();function d(e,n){return("string"==typeof e?e:m(e)).indexOf(" "+n+" ")>=0}function c(e,n){var r=m(e),t=r+n;d(r,n)||(e.className=t.substring(1))}function u(e,n){var r,t=m(e);d(e,n)&&(r=t.replace(" "+n+" "," "),e.className=r.substring(1,r.length-1))}function m(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function p(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return r}();var nr=a(er.exports);nr.configure({showSpinner:!1});const rr=()=>(e.useEffect(()=>{const e=setTimeout(()=>{nr.start()},200);return()=>{clearTimeout(e),nr.done()}},[]),h.jsx("div",{style:{height:"auto"}}));Object.defineProperty(exports,"generate",{enumerable:!0,get:function(){return i.generate}}),exports.AntdLayout=Qn,exports.Container=function(e){const{mode:r="inline",stretch:t="inline"}=e,{token:o}=Gn(),{xs:i}=Vn(),{layoutConfig:a}=B(),{footer:l,title:s}=He(),{containerMargin:d=0}=a;let c={},u={flex:"none"},m={borderRadius:a.compact?o.borderRadius:o.borderRadiusLG},p={display:"flex"};const x=e.hideBorder||a.hideBorder,f=e.hideBreadcrumb||a.hideBreadcrumb,g=e.hideTitle||a.hideTitle,y=a.noneHeader&&"leftMenu"==a.layoutType,b=a.headerTransparent||a.headerBlur?L(o.colorBorderSecondary,.6):o.colorBorderSecondary;"box"!=r&&"panel"!=r||(c={padding:o.padding},"panel"==r&&(m={...m,padding:o.padding,backgroundColor:o.colorBgContainer},x||(m={...m,border:`solid 1px ${b}`}))),"fill"!=t&&"auto"!=t||(u={...u,flex:"auto"},"fill"==t&&(m={...m,minHeight:"100%"})),y&&(c={...c,backgroundColor:o.colorBgContainer,borderRadius:d>0?o.padding:`${o.padding}px 0px 0px ${o.padding}px`,padding:"0px",margin:d},p={...p,padding:o.paddingXS,borderBlockEnd:`solid 1px ${o.colorBorderSecondary} `});const v=f?h.jsx(h.Fragment,{}):h.jsx(Dn,{}),_=g?h.jsx(h.Fragment,{}):h.jsx("h3",{children:e.title||s});if(a.containerBlur){const e=zn(o.colorBgContainer);y?(c={...c,...e},m={...m,backgroundColor:"transparent"}):m={...m,...e}}(e.transparent||a.containerTransparent)&&(m={...m,backgroundColor:"transparent"}),m={...m,...e.style};const j=y?h.jsx(Ue,{children:e.title||s}):h.jsx(h.Fragment,{}),k=y?h.jsx(ln,{iconSize:a.compact?12:14}):h.jsx(h.Fragment,{}),w=y&&"top"==a.collapsedPosition&&!i?h.jsxs(h.Fragment,{children:[h.jsx(sn,{iconSize:a.compact?12:14}),h.jsx(n.Divider,{orientation:"vertical"})]}):h.jsx(h.Fragment,{}),S=!(e.hideFooter||a.hideFooter)&&e.children&&l?h.jsx("footer",{children:l}):h.jsx(h.Fragment,{}),C=y?h.jsx(nn,{showAvatar:"rightTop"==a.avatarPosition}):h.jsx(h.Fragment,{}),I=y&&i?h.jsx(h.Fragment,{}):h.jsxs("div",{className:he,children:[v,_]});return h.jsxs("div",{className:me,style:c,children:[h.jsxs("div",{className:pe,style:p,children:[k,j,w,I,h.jsx("div",{className:xe,children:C})]}),h.jsx("main",{style:u,children:h.jsx("div",{style:m,children:e.children})}),S]})},exports.DEFAULT_PRIMARY_COLOR=In,exports.FullScreenButton=z,exports.LazyAvatar=function(r){const[t,o]=e.useState(!1);return e.useEffect(()=>{if(r.src)if("string"==typeof r.src){const e=new Image;e.src=r.src,e.onload=()=>o(!0),e.onerror=()=>o(!0)}else o(!0)},[r.src]),h.jsx(n.Avatar,{...r,style:{...r.style,opacity:t?1:0,transition:"opacity 0.3s ease-out"}})},exports.LazyImage=Se,exports.LazyPage=function(n){const r=e.lazy(n);return function(n){return h.jsx(e.Suspense,{fallback:h.jsx(rr,{}),children:h.jsx(r,{...n})})}},exports.PageLoading=rr,exports.RouteLoading=()=>(e.useEffect(()=>(nr.start(),()=>{nr.done()}),[location.hostname]),h.jsx("div",{style:{height:"auto"}})),exports.SpinImage=function(r){const[t,o]=e.useState(!1),{hasChild:i,...a}=r;e.useEffect(()=>{if(r.src)if("string"==typeof r.src){const e=new Image;e.src=r.src,e.onload=()=>o(!0),e.onerror=()=>o(!0)}else o(!0)},[r.src]);const l={...r.style,transition:"opacity 0.3s ease-out",opacity:t?1:0,display:"flex",justifyItems:"center",alignItems:"center"},s=h.jsx("img",{...a});return h.jsx(n.Spin,{spinning:!t,children:r.hasChild?s:h.jsx("div",{style:l,children:s})})},exports.ToolbarIcon=De,exports.buildRouteWithParams=function(e,n={}){if(!Object.keys(n).some(e=>null!=n[e]))return e.split("/:")[0];const r=e.split("/"),t=[];for(const e of r)if(e.startsWith(":")){const r=e.slice(1),o=n[r];if(null==o)break;t.push(encodeURIComponent(String(o)))}else t.push(e);return t.join("/")},exports.flattenMenuData=fn,exports.getAntdMenuItem=_n,exports.getAppIntl=Rn,exports.getBasicLayoutConfig=e=>{const{brandInfo:n,userInfo:r,...t}=e;return t},exports.getBlackColors=Pn,exports.getMenuLabel=vn,exports.getStorageConfig=Hn,exports.getWhiteColors=Tn,exports.hexToRgb=e=>{const{r:n,g:r,b:t}=F(e);return{r:n,g:r,b:t}},exports.hexToRgbaString=L,exports.localeMenuData=bn,exports.matchPathToKeys=function(e){return jn(e)},exports.pathToKeys=jn,exports.separateMenuData=gn,exports.setSkinConfig=$n,exports.setStorageConfig=Wn,exports.splitMenuKeys=kn,exports.transformMenuData=wn,exports.transformRouteToMenuData=function e(n,r){if(r)return!n.endsWith("/")&&n.length>1&&(n+="/"),r.filter(e=>!!e.handle).map(r=>{const t=function(e,n){const{handle:r}=n;let t=n.path;t&&r.params&&(t=o.generatePath(t,r.params));t?.startsWith("/")&&(t=t.slice(1));let i=e+t,a={...r,path:i,originalPath:n.path,extra:Sn(r.extra),icon:Sn(r.icon)};return a}(n,r);return r.children&&(t.children=e(t.path,r.children)),t})},exports.transformToAntdMenuData=yn,exports.useAppIntl=()=>{const e=r.useIntl(),{layoutConfig:n}=B(),{f:t,t:o}=Rn(n.disabledLocale?void 0:e);return{...e,f:t,t:o}},exports.useAvatarPopover=()=>e.useContext(Be),exports.useBlurBackgroundColor=Nn,exports.useBlurStyles=zn,exports.useBrandPopover=()=>e.useContext(Ie),exports.useConfigAction=()=>e.useContext(S),exports.useConfigState=B,exports.useContainerOutlet=He,exports.useLazyImages=n=>{const[r,t]=e.useState(!1);return e.useEffect(()=>{t(!0);let e=0;n.forEach(r=>{const o=new Image;o.src=r,o.onload=()=>{e++,e===n.length&&t(!1)},o.onerror=()=>{e++,e===n.length&&t(!1)}})},[]),{loading:r}},exports.useMainCollapsed=Re,exports.useTheme=()=>B().layoutConfig.theme;
package/dist/index.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import e,{createContext as n,useContext as r,useState as t,useEffect as o,useRef as i,useMemo as a,lazy as l,Suspense as s}from"react";import{Spin as d,Avatar as c,theme as u,Popover as m,Button as p,Divider as h,Layout as f,ConfigProvider as x,Menu as g,Grid as y,Breadcrumb as b,App as _}from"antd";import{useIntl as v,IntlProvider as j}from"react-intl";import{useOutletContext as w,useNavigate as k,useMatches as S,Outlet as C,Link as B}from"react-router";import{generatePath as I}from"react-router-dom";import{generate as T}from"@ant-design/colors";export{generate}from"@ant-design/colors";"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function N(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var P,M={exports:{}},z={};var F,E={};
1
+ import e,{createContext as n,useContext as r,useState as t,useEffect as o,useRef as i,useMemo as a,lazy as l,Suspense as s}from"react";import{Spin as d,Avatar as c,theme as u,Popover as m,Button as p,Divider as h,Layout as f,ConfigProvider as x,Menu as g,Grid as y,Breadcrumb as b,App as _}from"antd";import{useIntl as v,IntlProvider as j}from"react-intl";import{useOutletContext as k,useNavigate as w,useMatches as S,Outlet as C,Link as B}from"react-router";import{generatePath as I}from"react-router-dom";import{generate as T}from"@ant-design/colors";export{generate}from"@ant-design/colors";"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function N(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var P,M={exports:{}},z={};var F,E={};
2
2
  /**
3
3
  * @license React
4
4
  * react-jsx-runtime.development.js
@@ -7,7 +7,7 @@ import e,{createContext as n,useContext as r,useState as t,useEffect as o,useRef
7
7
  *
8
8
  * This source code is licensed under the MIT license found in the
9
9
  * LICENSE file in the root directory of this source tree.
10
- */"production"===process.env.NODE_ENV?M.exports=function(){if(P)return z;P=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(n,r,t){var o=null;if(void 0!==t&&(o=""+t),void 0!==r.key&&(o=""+r.key),"key"in r)for(var i in t={},r)"key"!==i&&(t[i]=r[i]);else t=r;return r=t.ref,{$$typeof:e,type:n,key:o,ref:void 0!==r?r:null,props:t}}return z.Fragment=n,z.jsx=r,z.jsxs=r,z}():M.exports=(F||(F=1,"production"!==process.env.NODE_ENV&&function(){function n(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===S?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case h:return"Fragment";case x:return"Profiler";case f:return"StrictMode";case _:return"Suspense";case v:return"SuspenseList";case k:return"Activity"}if("object"==typeof e)switch("number"==typeof e.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case p:return"Portal";case y:return e.displayName||"Context";case g:return(e._context.displayName||"Context")+".Consumer";case b:var r=e.render;return(e=e.displayName)||(e=""!==(e=r.displayName||r.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case j:return null!==(r=e.displayName||null)?r:n(e.type)||"Memo";case w:r=e._payload,e=e._init;try{return n(e(r))}catch(e){}}return null}function r(e){return""+e}function t(e){try{r(e);var n=!1}catch(e){n=!0}if(n){var t=(n=console).error,o="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(n,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",o),r(e)}}function o(e){if(e===h)return"<>";if("object"==typeof e&&null!==e&&e.$$typeof===w)return"<...>";try{var r=n(e);return r?"<"+r+">":"<...>"}catch(e){return"<...>"}}function i(){return Error("react-stack-top-frame")}function a(){var e=n(this.type);return N[e]||(N[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),void 0!==(e=this.props.ref)?e:null}function l(e,r,o,i,l,d){var u,p=r.children;if(void 0!==p)if(i)if(I(p)){for(i=0;i<p.length;i++)s(p[i]);Object.freeze&&Object.freeze(p)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else s(p);if(B.call(r,"key")){p=n(e);var h=Object.keys(r).filter(function(e){return"key"!==e});i=0<h.length?"{key: someKey, "+h.join(": ..., ")+": ...}":"{key: someKey}",z[p+i]||(h=0<h.length?"{"+h.join(": ..., ")+": ...}":"{}",console.error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',i,p,h,p),z[p+i]=!0)}if(p=null,void 0!==o&&(t(o),p=""+o),function(e){if(B.call(e,"key")){var n=Object.getOwnPropertyDescriptor(e,"key").get;if(n&&n.isReactWarning)return!1}return void 0!==e.key}(r)&&(t(r.key),p=""+r.key),"key"in r)for(var f in o={},r)"key"!==f&&(o[f]=r[f]);else o=r;return p&&function(e,n){function r(){c||(c=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",n))}r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}(o,"function"==typeof e?e.displayName||e.name||"Unknown":e),function(e,n,r,t,o,i){var l=r.ref;return e={$$typeof:m,type:e,key:n,props:r,_owner:t},null!==(void 0!==l?l:null)?Object.defineProperty(e,"ref",{enumerable:!1,get:a}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:o}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(e,p,o,null===(u=C.A)?null:u.getOwner(),l,d)}function s(e){d(e)?e._store&&(e._store.validated=1):"object"==typeof e&&null!==e&&e.$$typeof===w&&("fulfilled"===e._payload.status?d(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function d(e){return"object"==typeof e&&null!==e&&e.$$typeof===m}var c,u=e,m=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),g=Symbol.for("react.consumer"),y=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),k=Symbol.for("react.activity"),S=Symbol.for("react.client.reference"),C=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,I=Array.isArray,T=console.createTask?console.createTask:function(){return null},N={},P=(u={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(u,i)(),M=T(o(i)),z={};E.Fragment=h,E.jsx=function(e,n,r){var t=1e4>C.recentlyCreatedOwnerStacks++;return l(e,n,r,!1,t?Error("react-stack-top-frame"):P,t?T(o(e)):M)},E.jsxs=function(e,n,r){var t=1e4>C.recentlyCreatedOwnerStacks++;return l(e,n,r,!0,t?Error("react-stack-top-frame"):P,t?T(o(e)):M)}}()),E);var L,O,R=M.exports,A={exports:{}},H={},W={};
10
+ */"production"===process.env.NODE_ENV?M.exports=function(){if(P)return z;P=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(n,r,t){var o=null;if(void 0!==t&&(o=""+t),void 0!==r.key&&(o=""+r.key),"key"in r)for(var i in t={},r)"key"!==i&&(t[i]=r[i]);else t=r;return r=t.ref,{$$typeof:e,type:n,key:o,ref:void 0!==r?r:null,props:t}}return z.Fragment=n,z.jsx=r,z.jsxs=r,z}():M.exports=(F||(F=1,"production"!==process.env.NODE_ENV&&function(){function n(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===S?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case h:return"Fragment";case x:return"Profiler";case f:return"StrictMode";case _:return"Suspense";case v:return"SuspenseList";case w:return"Activity"}if("object"==typeof e)switch("number"==typeof e.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case p:return"Portal";case y:return e.displayName||"Context";case g:return(e._context.displayName||"Context")+".Consumer";case b:var r=e.render;return(e=e.displayName)||(e=""!==(e=r.displayName||r.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case j:return null!==(r=e.displayName||null)?r:n(e.type)||"Memo";case k:r=e._payload,e=e._init;try{return n(e(r))}catch(e){}}return null}function r(e){return""+e}function t(e){try{r(e);var n=!1}catch(e){n=!0}if(n){var t=(n=console).error,o="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(n,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",o),r(e)}}function o(e){if(e===h)return"<>";if("object"==typeof e&&null!==e&&e.$$typeof===k)return"<...>";try{var r=n(e);return r?"<"+r+">":"<...>"}catch(e){return"<...>"}}function i(){return Error("react-stack-top-frame")}function a(){var e=n(this.type);return N[e]||(N[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),void 0!==(e=this.props.ref)?e:null}function l(e,r,o,i,l,d){var u,p=r.children;if(void 0!==p)if(i)if(I(p)){for(i=0;i<p.length;i++)s(p[i]);Object.freeze&&Object.freeze(p)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else s(p);if(B.call(r,"key")){p=n(e);var h=Object.keys(r).filter(function(e){return"key"!==e});i=0<h.length?"{key: someKey, "+h.join(": ..., ")+": ...}":"{key: someKey}",z[p+i]||(h=0<h.length?"{"+h.join(": ..., ")+": ...}":"{}",console.error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',i,p,h,p),z[p+i]=!0)}if(p=null,void 0!==o&&(t(o),p=""+o),function(e){if(B.call(e,"key")){var n=Object.getOwnPropertyDescriptor(e,"key").get;if(n&&n.isReactWarning)return!1}return void 0!==e.key}(r)&&(t(r.key),p=""+r.key),"key"in r)for(var f in o={},r)"key"!==f&&(o[f]=r[f]);else o=r;return p&&function(e,n){function r(){c||(c=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",n))}r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}(o,"function"==typeof e?e.displayName||e.name||"Unknown":e),function(e,n,r,t,o,i){var l=r.ref;return e={$$typeof:m,type:e,key:n,props:r,_owner:t},null!==(void 0!==l?l:null)?Object.defineProperty(e,"ref",{enumerable:!1,get:a}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:o}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(e,p,o,null===(u=C.A)?null:u.getOwner(),l,d)}function s(e){d(e)?e._store&&(e._store.validated=1):"object"==typeof e&&null!==e&&e.$$typeof===k&&("fulfilled"===e._payload.status?d(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function d(e){return"object"==typeof e&&null!==e&&e.$$typeof===m}var c,u=e,m=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),g=Symbol.for("react.consumer"),y=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),w=Symbol.for("react.activity"),S=Symbol.for("react.client.reference"),C=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,I=Array.isArray,T=console.createTask?console.createTask:function(){return null},N={},P=(u={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(u,i)(),M=T(o(i)),z={};E.Fragment=h,E.jsx=function(e,n,r){var t=1e4>C.recentlyCreatedOwnerStacks++;return l(e,n,r,!1,t?Error("react-stack-top-frame"):P,t?T(o(e)):M)},E.jsxs=function(e,n,r){var t=1e4>C.recentlyCreatedOwnerStacks++;return l(e,n,r,!0,t?Error("react-stack-top-frame"):P,t?T(o(e)):M)}}()),E);var L,O,R=M.exports,A={exports:{}},H={},W={};
11
11
  /**
12
12
  * @license React
13
13
  * react-jsx-runtime.development.js
@@ -17,6 +17,6 @@ import e,{createContext as n,useContext as r,useState as t,useEffect as o,useRef
17
17
  * This source code is licensed under the MIT license found in the
18
18
  * LICENSE file in the root directory of this source tree.
19
19
  */
20
- "production"===process.env.NODE_ENV?A.exports=function(){if(L)return H;L=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(n,r,t){var o=null;if(void 0!==t&&(o=""+t),void 0!==r.key&&(o=""+r.key),"key"in r)for(var i in t={},r)"key"!==i&&(t[i]=r[i]);else t=r;return r=t.ref,{$$typeof:e,type:n,key:o,ref:void 0!==r?r:null,props:t}}return H.Fragment=n,H.jsx=r,H.jsxs=r,H}():A.exports=(O||(O=1,"production"!==process.env.NODE_ENV&&function(){function n(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===S?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case h:return"Fragment";case x:return"Profiler";case f:return"StrictMode";case _:return"Suspense";case v:return"SuspenseList";case k:return"Activity"}if("object"==typeof e)switch("number"==typeof e.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case p:return"Portal";case y:return e.displayName||"Context";case g:return(e._context.displayName||"Context")+".Consumer";case b:var r=e.render;return(e=e.displayName)||(e=""!==(e=r.displayName||r.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case j:return null!==(r=e.displayName||null)?r:n(e.type)||"Memo";case w:r=e._payload,e=e._init;try{return n(e(r))}catch(e){}}return null}function r(e){return""+e}function t(e){try{r(e);var n=!1}catch(e){n=!0}if(n){var t=(n=console).error,o="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(n,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",o),r(e)}}function o(e){if(e===h)return"<>";if("object"==typeof e&&null!==e&&e.$$typeof===w)return"<...>";try{var r=n(e);return r?"<"+r+">":"<...>"}catch(e){return"<...>"}}function i(){return Error("react-stack-top-frame")}function a(){var e=n(this.type);return N[e]||(N[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),void 0!==(e=this.props.ref)?e:null}function l(e,r,o,i,l,d){var u,p=r.children;if(void 0!==p)if(i)if(I(p)){for(i=0;i<p.length;i++)s(p[i]);Object.freeze&&Object.freeze(p)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else s(p);if(B.call(r,"key")){p=n(e);var h=Object.keys(r).filter(function(e){return"key"!==e});i=0<h.length?"{key: someKey, "+h.join(": ..., ")+": ...}":"{key: someKey}",z[p+i]||(h=0<h.length?"{"+h.join(": ..., ")+": ...}":"{}",console.error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',i,p,h,p),z[p+i]=!0)}if(p=null,void 0!==o&&(t(o),p=""+o),function(e){if(B.call(e,"key")){var n=Object.getOwnPropertyDescriptor(e,"key").get;if(n&&n.isReactWarning)return!1}return void 0!==e.key}(r)&&(t(r.key),p=""+r.key),"key"in r)for(var f in o={},r)"key"!==f&&(o[f]=r[f]);else o=r;return p&&function(e,n){function r(){c||(c=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",n))}r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}(o,"function"==typeof e?e.displayName||e.name||"Unknown":e),function(e,n,r,t,o,i){var l=r.ref;return e={$$typeof:m,type:e,key:n,props:r,_owner:t},null!==(void 0!==l?l:null)?Object.defineProperty(e,"ref",{enumerable:!1,get:a}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:o}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(e,p,o,null===(u=C.A)?null:u.getOwner(),l,d)}function s(e){d(e)?e._store&&(e._store.validated=1):"object"==typeof e&&null!==e&&e.$$typeof===w&&("fulfilled"===e._payload.status?d(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function d(e){return"object"==typeof e&&null!==e&&e.$$typeof===m}var c,u=e,m=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),g=Symbol.for("react.consumer"),y=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),k=Symbol.for("react.activity"),S=Symbol.for("react.client.reference"),C=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,I=Array.isArray,T=console.createTask?console.createTask:function(){return null},N={},P=(u={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(u,i)(),M=T(o(i)),z={};W.Fragment=h,W.jsx=function(e,n,r){var t=1e4>C.recentlyCreatedOwnerStacks++;return l(e,n,r,!1,t?Error("react-stack-top-frame"):P,t?T(o(e)):M)},W.jsxs=function(e,n,r){var t=1e4>C.recentlyCreatedOwnerStacks++;return l(e,n,r,!0,t?Error("react-stack-top-frame"):P,t?T(o(e)):M)}}()),W);var $=A.exports;function V(e,n){void 0===n&&(n={});var r=n.insertAt;if(e&&"undefined"!=typeof document){var t=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===r&&t.firstChild?t.insertBefore(o,t.firstChild):t.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}V("@layer base {\r\n html, body {\r\n padding: 0;\r\n margin: 0;\r\n border: 0;\r\n width: 100%; \r\n height: 100%;\r\n }\r\n #root { \r\n text-align: initial;\r\n width: 100%;\r\n height:100%\r\n } \r\n}\r\n*, *:before, *:after {\r\n box-sizing: border-box;\r\n}\r\n.Layout-module_rootBox__3JHjy {\r\n text-rendering: optimizeLegibility;\r\n -webkit-font-smoothing: antialiased;\r\n -moz-osx-font-smoothing: grayscale;\r\n text-align: initial;\r\n width: 100%;\r\n min-height: 100%;\r\n}\r\n.Layout-module_rootBackground__j3UVG {\r\n box-sizing: border-box; \r\n pointer-events: none;\r\n inset-block-start:0;\r\n inset-inline-start:0; \r\n width: 100%; \r\n min-width: 100vw;\r\n height:100%;\r\n min-height: 100vh;\r\n overflow: hidden;\r\n position: fixed;\r\n z-index: 0;\r\n}\r\n.Layout-module_rootBackground__j3UVG>div{\r\n width:100%;\r\n height: 100%;\r\n overflow: hidden;\r\n}\r\n.Layout-module_rootLayout__jVEEF {\r\n position: relative;\r\n z-index: 1;\r\n box-sizing: border-box; \r\n width: 100%;\r\n min-height: 100%;\r\n display: flex; \r\n flex-flow: row;\r\n background-color: transparent;\r\n container-type: inline-size;\r\n}\r\n\r\n.Layout-module_mainLayout__6W9W9 {\r\n box-sizing: border-box; \r\n display: flex;\r\n flex-flow: column; \r\n width: 100%;\r\n min-width: 0px;\r\n min-height: 100vh;\r\n}\r\n");const G=Symbol("LayoutAside"),K=Symbol("LayoutContent"),D=Symbol("LayoutHeader"),U=Symbol("LayoutBackground"),X={headerHeight:50,asideWidth:260,layoutType:"leftMenu",collapsedPosition:"bottom",avatarPosition:"rightTop",theme:"system",visibleBreadcrumbIcon:"none",primaryColor:"#417ffb"},Y=n({setLayoutConfig:()=>{},setLocale:()=>{}}),J=n({locale:"en-US",languages:[],layoutConfig:{},themeSkinMap:{system:[],custom:[]}}),q=()=>r(J),Z=()=>r(Y),Q=()=>q().layoutConfig.theme;function ee(e){return $.jsx("div",{className:"Layout-module_rootBackground__j3UVG",children:$.jsx($.Fragment,{children:e.children})})}function ne(e){return $.jsx($.Fragment,{children:e.children})}function re(e){return $.jsx($.Fragment,{children:e.children})}function te(e){return $.jsx($.Fragment,{children:e.children})}ee.displayName="LayoutBackground",ee.role=U,ne.displayName="LayoutContent",ne.role=K,re.displayName="LayoutAside",re.role=G,te.displayName="LayoutHeader",te.role=D;function oe(n){let r=null,t=null,o=null,i=null;e.Children.forEach(n.children,e=>{const n=e.type.role;n===D?r=e:n===K?t=e:n===G?o=e:n===U&&(i=e)});const a=n.style||n.styles?.root;return $.jsx($.Fragment,{children:$.jsxs("div",{ref:n.ref,className:"layout-module_rootBox__Y8bEx",style:a,children:[i,$.jsxs("div",{className:"layout-module_rootLayout__TePvr",children:[o,$.jsxs("div",{className:"layout-module_mainLayout__a8Tb9",style:{...n.styles?.main},children:[r,t]})]})]})})}function ie(n){const r=!!document.fullscreenElement,[i,a]=t(r),l=()=>{a(!!document.fullscreenElement)},s=e=>{"F11"===e.code&&(e.preventDefault(),d())};o(()=>(document.addEventListener("fullscreenchange",l),document.addEventListener("keydown",s,!0),()=>{document.removeEventListener("fullscreenchange",l),document.removeEventListener("keydown",s)}),[]);const d=()=>{i?document.exitFullscreen():document.documentElement.requestFullscreen()};if(!n.buttons||n.buttons.length<2)return $.jsx($.Fragment,{});const[c,u]=n.buttons,m=i?c:u;return e.cloneElement(m,{onClick:e=>{console.log(e),d()}})}V("@layer base {\r\n html, body {\r\n padding: 0;\r\n margin: 0;\r\n border: 0;\r\n width: 100%; \r\n height: 100%;\r\n }\r\n #root { \r\n text-align: initial;\r\n width: 100%;\r\n height:100%\r\n } \r\n}\r\n*, *:before, *:after {\r\n box-sizing: border-box;\r\n}\r\n.layout-module_rootBox__Y8bEx {\r\n text-rendering: optimizeLegibility;\r\n -webkit-font-smoothing: antialiased;\r\n -moz-osx-font-smoothing: grayscale;\r\n text-align: initial;\r\n width: 100%;\r\n min-height: 100%;\r\n}\r\n.layout-module_rootBackground__vEs6e {\r\n box-sizing: border-box; \r\n pointer-events: none;\r\n inset-block-start:0;\r\n inset-inline-start:0; \r\n width: 100%; \r\n min-width: 100vw;\r\n height:100%;\r\n min-height: 100vh;\r\n overflow: hidden;\r\n position: fixed;\r\n z-index: 0;\r\n}\r\n.layout-module_rootBackground__vEs6e>div{\r\n width:100%;\r\n height: 100%;\r\n overflow: hidden;\r\n}\r\n.layout-module_rootLayout__TePvr {\r\n position: relative;\r\n z-index: 1;\r\n box-sizing: border-box; \r\n width: 100%;\r\n min-height: 100%;\r\n display: flex; \r\n flex-flow: row;\r\n background-color: transparent;\r\n container-type: inline-size;\r\n}\r\n\r\n.layout-module_mainLayout__a8Tb9 {\r\n box-sizing: border-box; \r\n display: flex;\r\n flex-flow: column; \r\n width: 100%;\r\n min-width: 0px;\r\n min-height: 100vh;\r\n}\r\n"),oe.Aside=re,oe.Content=ne,oe.Header=te,oe.Background=ee;const ae=e=>({r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16),a:9===e.length?(parseInt(e.slice(7,9),16)/255).toFixed(2):1}),le=e=>{const{r:n,g:r,b:t}=ae(e);return{r:n,g:r,b:t}},se=(e,n)=>{const{r:r,g:t,b:o,a:i}=ae(e);return`rgba(${r}, ${t}, ${o}, ${n??i})`};function de(e,n){void 0===n&&(n={});var r=n.insertAt;if(e&&"undefined"!=typeof document){var t=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===r&&t.firstChild?t.insertBefore(o,t.firstChild):t.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}de("@layer adminui-layout { \r\n :root{\r\n --pageload-bar-color:#222222;\r\n } \r\n #root {\r\n padding: 0;\r\n margin: 0;\r\n border: 0;\r\n width: 100%;\r\n height: 100%;\r\n }\r\n}\r\n/** Menu icon automatic compact mode */\r\n.adminui-menu-icon {\r\n font-size: var(--adminui-menu-icon-size);\r\n width: var(--adminui-menu-icon-size);\r\n height: var(--adminui-menu-icon-size); \r\n}\r\n.adminui-btn-icon {\r\n display: flex;\r\n justify-items: center;\r\n align-items: center;\r\n}\r\n.adminui-menu .adminui-menu-title-content-with-extra {\r\n width: auto;\r\n}\r\n.adminui-menu .adminui-menu-title-content-with-extra .adminui-menu-item-extra {\r\n display: inline-flex;\r\n}");var ce="index-module_headerLayout__rv59v",ue="index-module_headerLayoutSticky__6uFCj",me="index-module_headerLayoutFixed__t5Hmo",pe="index-module_headerLayoutBox__h0fIt",he="index-module_headerMenu__WHmJN",fe="index-module_headerTitle__jGbCX",xe="index-module_headerBrandBox__U2J16",ge="index-module_toolbarPanel__Pp8PS",ye="index-module_toolbarItem__RkaXd",be="index-module_toolbarAvatarItem__p6TXY",_e="index-module_siderBaseStyle__zg1FM",ve="index-module_siderMask__cCjMh",je="index-module_siderContentBox__dGgRe",we="index-module_siderContentItem__kl3cR",ke="index-module_collapsedTrack__LoJ3V",Se="index-module_collapsedTrackButton__m33XS",Ce="index-module_brandPanel__2GRgq",Be="index-module_labelBox__dX8fY",Ie="index-module_brandNodeBox__W-iM6",Te="index-module_brandMobilePanel__m1Diu",Ne="index-module_largeBrandPanel__pLn--",Pe="index-module_title__SbfFY",Me="index-module_largeBrandCollPanel__nsGKB",ze="index-module_avatarPanel__fFvCS",Fe="index-module_collapsedMobile__Yu8F4",Ee="index-module_collapsedContainer__23dQh",Le="index-module_breadcrumbBox__w3MOx",Oe="index-module_breadcrumbFirstIcon__9zEmW",Re="index-module_breadcrumbAllIcon__HYkKa",Ae="index-module_containerBox__pv0qs",He="index-module_containerHeader__p8V0W",We="index-module_contentHeaderMenu__zSoS7",$e="index-module_containerHeaderToolbar__pGsCN",Ve="index-module_round__WoVxM";function Ge(e){const{size:n=16}=e;return R.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:R.jsx("path",{d:"m15 18-6-6 6-6"})})}function Ke(e){const{size:n=16}=e;return R.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:R.jsx("path",{d:"m9 18 6-6-6-6"})})}function De(e){const{size:n=16}=e;return R.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[R.jsx("path",{d:"M21 5H11"}),R.jsx("path",{d:"M21 12H11"}),R.jsx("path",{d:"M21 19H11"}),R.jsx("path",{d:"m7 8-4 4 4 4"})]})}function Ue(e){const{size:n=16}=e;return R.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[R.jsx("path",{d:"M21 5H11"}),R.jsx("path",{d:"M21 12H11"}),R.jsx("path",{d:"M21 19H11"}),R.jsx("path",{d:"m3 8 4 4-4 4"})]})}function Xe(e){const{size:n=16}=e;return R.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[R.jsx("path",{d:"m7 15 5 5 5-5"}),R.jsx("path",{d:"m7 9 5-5 5 5"})]})}function Ye(e){const{size:n=16}=e;return R.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[R.jsx("path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"}),R.jsx("circle",{cx:"12",cy:"7",r:"4"})]})}function Je(e){const{size:n=16}=e;return R.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[R.jsx("path",{d:"M8 3v3a2 2 0 0 1-2 2H3"}),R.jsx("path",{d:"M21 8h-3a2 2 0 0 1-2-2V3"}),R.jsx("path",{d:"M3 16h3a2 2 0 0 1 2 2v3"}),R.jsx("path",{d:"M16 21v-3a2 2 0 0 1 2-2h3"})]})}function qe(e){const{size:n=16}=e;return R.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[R.jsx("path",{d:"M8 3H5a2 2 0 0 0-2 2v3"}),R.jsx("path",{d:"M21 8V5a2 2 0 0 0-2-2h-3"}),R.jsx("path",{d:"M3 16v3a2 2 0 0 0 2 2h3"}),R.jsx("path",{d:"M16 21h3a2 2 0 0 0 2-2v-3"})]})}function Ze(e){const[n,r]=t(!1);return o(()=>{if(e.src)if("string"==typeof e.src){const n=new Image;n.src=e.src,n.onload=()=>r(!0),n.onerror=()=>r(!0)}else r(!0)},[e.src]),R.jsx(c,{...e,style:{...e.style,opacity:n?1:0,transition:"opacity 0.3s ease-out"}})}function Qe(e){const[n,r]=t(!1),{hasChild:i,...a}=e;o(()=>{if(e.src)if("string"==typeof e.src){const n=new Image;n.src=e.src,n.onload=()=>r(!0),n.onerror=()=>r(!0)}else r(!0)},[e.src]);const l={...e.style,transition:"opacity 0.3s ease-out",opacity:n?1:0,display:"flex",justifyItems:"center",alignItems:"center"},s=R.jsx("img",{...a});return e.hasChild?s:R.jsx("div",{style:l,children:s})}function en(e){const[n,r]=t(!1),{hasChild:i,...a}=e;o(()=>{if(e.src)if("string"==typeof e.src){const n=new Image;n.src=e.src,n.onload=()=>r(!0),n.onerror=()=>r(!0)}else r(!0)},[e.src]);const l={...e.style,transition:"opacity 0.3s ease-out",opacity:n?1:0,display:"flex",justifyItems:"center",alignItems:"center"},s=R.jsx("img",{...a});return R.jsx(d,{spinning:!n,children:e.hasChild?s:R.jsx("div",{style:l,children:s})})}de('@layer base { \r\n\r\n :root { \r\n --sb-track-color: transparent;\r\n --sb-thumb-color: #ccc;\r\n --sb-thumb-hover: #b3b3b3;\r\n --sb-html-track-color: rgb(250,250,250);\r\n color-scheme: light;\r\n }\r\n\r\n * {\r\n box-sizing: border-box;\r\n scrollbar-width: thin;\r\n scrollbar-color: var(--sb-thumb-color) var(--sb-track-color);\r\n }\r\n\r\n html {\r\n scrollbar-color: var(--sb-thumb-color) var(--sb-html-track-color);\r\n }\r\n \r\n @media (prefers-color-scheme: dark) {\r\n :root {\r\n --sb-track-color: transparent;\r\n --sb-thumb-color: #383838;\r\n --sb-thumb-hover: rgb(49, 49, 49);\r\n --sb-html-track-color: rgb(20,20,20);\r\n color-scheme: dark;\r\n }\r\n }\r\n\r\n :root[style="color-scheme: dark;"],\r\n :root[class="dark"] { \r\n --sb-track-color: transparent;\r\n --sb-thumb-color: #383838;\r\n --sb-thumb-hover: rgb(49, 49, 49); \r\n --sb-html-track-color: rgb(20,20,20); \r\n color-scheme: dark; \r\n }\r\n\r\n ::-webkit-scrollbar {\r\n width: 8px;\r\n height: 8px;\r\n background-color: transparent;\r\n } \r\n\r\n ::-webkit-scrollbar-track {\r\n background-color: var(--sb-track-color);\r\n border-radius: 10px;\r\n }\r\n\r\n ::-webkit-scrollbar-thumb {\r\n background-color: var(--sb-thumb-color);\r\n border-radius: 10px; \r\n border: 2px solid var(--sb-track-color);\r\n }\r\n ::-webkit-scrollbar-thumb:hover {\r\n background-color: var(--sb-thumb-hover);\r\n } \r\n}\r\n/** header */\r\n.index-module_headerLayout__rv59v {\r\n box-sizing: border-box;\r\n min-width: 100%;\r\n padding-block: 0;\r\n padding-inline: 0; \r\n transition: opacity var(--adminui-motion-duration-mid), padding var(--adminui-motion-duration-mid), width var(--adminui-motion-duration-mid);\r\n}\r\n\r\n.index-module_headerLayoutSticky__6uFCj {\r\n position: sticky;\r\n width: 100%;\r\n z-index: 100;\r\n top:0;\r\n}\r\n.index-module_headerLayoutFixed__t5Hmo {\r\n position: fixed;\r\n width: 100%;\r\n z-index: 100;\r\n inset-block-start: 0;\r\n inset-inline-end: 0;\r\n}\r\n.index-module_headerLayoutBox__h0fIt {\r\n display: flex;\r\n flex-flow: row;\r\n justify-content: space-between;\r\n align-items: center;\r\n}\r\n.index-module_headerMenu__WHmJN {\r\n border:0px;\r\n background-color: transparent;\r\n flex:1;\r\n height: 100%;\r\n min-width: 0px;\r\n}\r\n.index-module_headerTitle__jGbCX {\r\n white-space: nowrap;\r\n text-overflow: ellipsis;\r\n}\r\n.index-module_headerBrandBox__U2J16 {\r\n width: auto; \r\n}\r\n\r\n.index-module_layoutBlur__GpCPx { \r\n transform: translateZ(0);\r\n backdrop-filter: blur(8px);\r\n}\r\n\r\n.index-module_toolbarPanel__Pp8PS {\r\n display: flex;\r\n justify-content: end;\r\n align-items: center;\r\n}\r\n.index-module_toolbarPanel__Pp8PS .index-module_toolbarItem__RkaXd {\r\n display: flex;\r\n justify-content: end;\r\n align-items: center;\r\n}\r\n.index-module_toolbarAvatarItem__p6TXY {\r\n display: flex;\r\n align-items: center;\r\n padding-inline: var(--adminui-padding-xs); \r\n gap: 8px;\r\n cursor: pointer;\r\n}\r\n.index-module_toolbarAvatarItem__p6TXY span {\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n min-width: 0;\r\n max-width: 100px;\r\n}\r\n\r\n/** sider */\r\n.index-module_siderBaseStyle__zg1FM {\r\n background:\'transparent\'; \r\n padding-bottom: 0px; \r\n z-index: 10;\r\n transition: opacity var(--adminui-motion-duration-mid), padding var(--adminui-motion-duration-mid), width var(--adminui-motion-duration-mid); \r\n}\r\n\r\n.index-module_siderMask__cCjMh {\r\n overflow: hidden;\r\n transition:background-color 0.3s, min-width 0.3s, max-width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)\r\n}\r\n.index-module_siderContentBox__dGgRe {\r\n display: flex;\r\n flex-flow: column;\r\n align-items: center;\r\n width: 100%;\r\n min-height: 0px;\r\n transition: opacity var(--adminui-motion-duration-mid), padding var(--adminui-motion-duration-mid), width var(--adminui-motion-duration-mid); \r\n}\r\n\r\n.index-module_siderContentItem__kl3cR { \r\n display: flex; \r\n align-items: center;\r\n width: 100%; \r\n min-height: 0px;\r\n transition: opacity var(--adminui-motion-duration-mid), padding var(--adminui-motion-duration-mid), width var(--adminui-motion-duration-mid); \r\n}\r\n.index-module_siderContentItem__kl3cR>div{\r\n display: flex; \r\n align-items: center;\r\n opacity: 1;\r\n transition: opacity var(--adminui-motion-duration-mid), padding var(--adminui-motion-duration-mid), width var(--adminui-motion-duration-mid); \r\n}\r\n\r\n.index-module_collapsedTrack__LoJ3V {\r\n display: flex;\r\n flex-flow: column;\r\n justify-content: center;\r\n align-items: center; \r\n position: absolute;\r\n top:0px;\r\n bottom:0px;\r\n right:-14px;\r\n cursor: pointer;\r\n}\r\n.index-module_collapsedTrack__LoJ3V .index-module_collapsedTrackButton__m33XS {\r\n width: 14px;\r\n height: 36px;\r\n border-top-right-radius: 4px;\r\n border-bottom-right-radius: 4px;\r\n display: flex;\r\n flex-flow: column;\r\n justify-content: center;\r\n align-items: center; \r\n opacity: 0; \r\n transition: opacity var(--adminui-motion-duration-mid), padding var(--adminui-motion-duration-mid), width var(--adminui-motion-duration-mid); \r\n\r\n}\r\n.index-module_collapsedTrack__LoJ3V:hover .index-module_collapsedTrackButton__m33XS {\r\n opacity: 1;\r\n}\r\n\r\n/** brand */ \r\n.index-module_brandPanel__2GRgq {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n padding:var(--adminui-margin-xxs);\r\n}\r\n.index-module_brandPanel__2GRgq button {\r\n display: flex;\r\n width: 100%;\r\n align-items: center;\r\n opacity: 1;\r\n padding-inline: var(--adminui-padding-xs); \r\n transition: all 0.3s;\r\n\r\n}\r\n.index-module_brandPanel__2GRgq a {\r\n display: flex;\r\n width: 100%;\r\n height: 100%;\r\n align-items: center;\r\n opacity: 1;\r\n color:inherit; \r\n transition: all 0.3s; \r\n padding-inline: var(--adminui-padding-xs);\r\n border-radius: var(--adminui-border-radius-lg);\r\n}\r\n\r\n.index-module_brandPanel__2GRgq a:hover{\r\n background-color: var(--adminui-control-item-bg-hover);\r\n}\r\n.index-module_brandPanel__2GRgq a:active{\r\n background-color: var(--adminui-control-item-bg-active);\r\n}\r\n\r\n.index-module_brandPanel__2GRgq h4{\r\n margin:0px;\r\n padding:0px;\r\n line-height: 1rem;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n min-width: 0;\r\n}\r\n.index-module_brandPanel__2GRgq span {\r\n margin:0px; \r\n line-height: 1rem;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n min-width: 0;\r\n}\r\n\r\n.index-module_brandPanel__2GRgq .index-module_labelBox__dX8fY {\r\n width: 100%; \r\n display:flex;\r\n flex-flow:column;\r\n justify-content:space-between;\r\n transition: opacity var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out), padding var(--adminui-motion-duration-mid) var(--adminui-motion-ease-in-out);\r\n}\r\n.index-module_brandNodeBox__W-iM6 {\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n color:var(--adminui-color-primary);\r\n transition: opacity var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out), width var(--adminui-motion-duration-mid) var(--adminui-motion-ease-in-out);\r\n}\r\n\r\n.index-module_brandMobilePanel__m1Diu {\r\n opacity: 0;\r\n width: 0px;\r\n overflow: hidden;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n height: 100%;\r\n gap: 8px;\r\n transition: opacity var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out), width var(--adminui-motion-duration-mid) var(--adminui-motion-ease-in-out),padding var(--adminui-motion-duration-mid) var(--adminui-motion-ease-in-out);\r\n}\r\n.index-module_brandMobilePanel__m1Diu a {\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n}\r\n.index-module_largeBrandPanel__pLn-- {\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n flex-flow: column;\r\n gap: 2px;\r\n padding: var(--adminui-padding-lg); \r\n}\r\n\r\n.index-module_largeBrandPanel__pLn-- img {\r\n transition: width var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out); \r\n}\r\n.index-module_largeBrandPanel__pLn--\x3ediv{\r\n opacity: 1;\r\n text-align: center;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n flex-flow: column; \r\n overflow: hidden;\r\n width: 100%;\r\n transition: opacity var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out), height var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out);\r\n}\r\n.index-module_largeBrandPanel__pLn-- span {\r\n font-size: large;\r\n width: 100%;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n min-width: 0;\r\n}\r\n.index-module_largeBrandPanel__pLn-- span.index-module_title__SbfFY {\r\n font-size: small;\r\n color:var(--adminui-color-text-tertiary);\r\n}\r\n.index-module_largeBrandCollPanel__nsGKB {\r\n padding: var(--adminui-margin-xxs);\r\n}\r\n.index-module_largeBrandCollPanel__nsGKB a {\r\n opacity: 1;\r\n color:inherit; \r\n padding: var(--adminui-padding-xs);\r\n border-radius: var(--adminui-border-radius-lg);\r\n}\r\n.index-module_largeBrandCollPanel__nsGKB a:hover{\r\n background-color: var(--adminui-control-item-bg-hover);\r\n}\r\n.index-module_largeBrandCollPanel__nsGKB a:active{\r\n background-color: var(--adminui-control-item-bg-active);\r\n}\r\n/** avatar */\r\n.index-module_avatarPanel__fFvCS {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n padding:var(--adminui-margin-xxs);\r\n}\r\n.index-module_avatarPanel__fFvCS a {\r\n display: flex;\r\n width: 100%;\r\n height: 100%;\r\n align-items: center;\r\n opacity: 1;\r\n color:inherit; \r\n transition: all 0.3s;\r\n padding-inline: var(--adminui-padding-xs);\r\n border-radius: var(--adminui-border-radius-lg);\r\n}\r\n\r\n.index-module_avatarPanel__fFvCS a:hover{\r\n background-color: var(--adminui-control-item-bg-hover);\r\n}\r\n.index-module_avatarPanel__fFvCS a:active{\r\n background-color: var(--adminui-control-item-bg-active);\r\n}\r\n\r\n.index-module_avatarPanel__fFvCS h4{\r\n width: 90%;\r\n margin:0px;\r\n padding:0px;\r\n line-height: 1rem;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n min-width: 0;\r\n}\r\n.index-module_avatarPanel__fFvCS span {\r\n width: 90%;\r\n margin:0px; \r\n line-height: 1rem;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n min-width: 0;\r\n}\r\n\r\n.index-module_avatarPanel__fFvCS .index-module_labelBox__dX8fY {\r\n width: 100%;\r\n display:flex;\r\n flex-flow:column;\r\n justify-content:space-between;\r\n transition: opacity var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out);\r\n}\r\n\r\n.index-module_collapsedMobile__Yu8F4 { \r\n display: none;\r\n justify-content: center;\r\n align-items: center;\r\n}\r\n.index-module_collapsedContainer__23dQh {\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n}\r\n.index-module_breadcrumbBox__w3MOx li .adminui-breadcrumb-link{\r\n display: flex;\r\n align-items: center;\r\n gap:var(--adminui-margin-xxs);\r\n}\r\n\r\n.index-module_breadcrumbBox__w3MOx li .adminui-breadcrumb-link>span[role="img"],\r\n.index-module_breadcrumbBox__w3MOx li .adminui-breadcrumb-link>svg{\r\n display: none;\r\n}\r\n.index-module_breadcrumbFirstIcon__9zEmW li:first-of-type .adminui-breadcrumb-link>span[role="img"],\r\n.index-module_breadcrumbFirstIcon__9zEmW li:first-of-type .adminui-breadcrumb-link>svg\r\n{\r\n display: inline-flex;\r\n}\r\n.index-module_breadcrumbAllIcon__HYkKa li .adminui-breadcrumb-link>span[role="img"],\r\n.index-module_breadcrumbAllIcon__HYkKa li .adminui-breadcrumb-link>svg{\r\n display: inline-flex;\r\n}\r\n\r\n/** container */\r\n.index-module_containerBox__pv0qs {\r\n box-sizing: border-box;\r\n background-color: transparent;\r\n display: flex;\r\n flex-flow: column;\r\n flex:auto;\r\n}\r\n\r\n.index-module_containerBox__pv0qs>footer{\r\n display: flex;\r\n flex-flow: column;\r\n align-items: center;\r\n justify-content: center;\r\n width: 100%;\r\n color:var(--adminui-color-text-description);\r\n padding:var(--adminui-padding);\r\n}\r\n.index-module_containerBox__pv0qs>footer>div{\r\n text-align: center;\r\n}\r\n.index-module_containerHeader__p8V0W {\r\n display: flex;\r\n justify-content:flex-start;\r\n align-items: center;\r\n padding-block-end: var(--adminui-padding-xs);\r\n}\r\n.index-module_containerHeaderCollapsed__XGlnh {\r\n display: flex;\r\n gap:6px;\r\n align-items: center;\r\n}\r\n.index-module_contentHeaderMenu__zSoS7 {\r\n display: flex;\r\n flex-flow: column;\r\n justify-content: center;\r\n padding-inline-start: var(--adminui-padding-xs);\r\n gap:var(--adminui-margin-xs);\r\n}\r\n.index-module_contentHeaderMenu__zSoS7>h3{\r\n box-sizing: border-box;\r\n line-height: var(--adminui-line-height);\r\n margin:0px;\r\n padding:0px;\r\n}\r\n.index-module_containerHeaderToolbar__pGsCN {\r\n flex:1;\r\n display: flex;\r\n justify-content: flex-end; \r\n align-items: center;\r\n}\r\n\r\n/** antd(adminui) */\r\n.index-module_headerLayout__rv59v .adminui-layout-header{\r\n padding-inline: 0px;\r\n}\r\n.index-module_headerLayout__rv59v .adminui-btn,\r\n.index-module_siderBaseStyle__zg1FM .adminui-btn{\r\n font-size: inherit;\r\n}\r\n.index-module_headerLayoutBox__h0fIt.index-module_round__WoVxM .adminui-menu-horizontal >.adminui-menu-item::after, \r\n.index-module_headerLayoutBox__h0fIt.index-module_round__WoVxM .adminui-menu-horizontal >.adminui-menu-submenu::after { \r\n border-radius: 4px;\r\n}\r\n\r\n.index-module_siderBaseStyle__zg1FM .adminui-layout-sider-trigger{\r\n position: absolute; \r\n top:0; \r\n right:0;\r\n height:100%;\r\n}\r\n.index-module_siderBaseStyle__zg1FM .adminui-layout-sider-children {\r\n display: flex;\r\n flex-flow: column;\r\n margin-top: 0px;\r\n padding-top: 0px;\r\n\r\n}\r\n\r\n@container (max-width: 576px) { \r\n .index-module_headerLayout__rv59v .adminui-layout-header {\r\n padding-inline-start: var(--adminui-padding-xs);\r\n }\r\n .index-module_headerMenu__WHmJN {\r\n justify-content: end;\r\n max-width: 80px;\r\n } \r\n .index-module_headerBrandBox__U2J16 {\r\n display: none;\r\n }\r\n .index-module_siderMask__cCjMh {\r\n display: none;\r\n }\r\n .index-module_brandMobilePanel__m1Diu {\r\n opacity: 1; \r\n padding-inline: var(--adminui-padding-xs);\r\n justify-content: flex-start;\r\n flex:1;\r\n }\r\n .index-module_largeBrandPanel__pLn-- {\r\n display: none;\r\n }\r\n .index-module_collapsedMobile__Yu8F4 {\r\n display: flex;\r\n }\r\n .index-module_collapsedContainer__23dQh {\r\n display: none;\r\n }\r\n .index-module_collapsedTrack__LoJ3V {\r\n visibility: collapse;\r\n }\r\n .index-module_toolbarPanel__Pp8PS *[data-adminui-role="desk-toolbar"] {\r\n display: none;\r\n }\r\n .index-module_toolbarAvatarItem__p6TXY span {\r\n display: none;\r\n }\r\n}\r\n');const nn=e=>{const[n,r]=t(!1);return o(()=>{r(!0);let n=0;e.forEach(t=>{const o=new Image;o.src=t,o.onload=()=>{n++,n===e.length&&r(!1)},o.onerror=()=>{n++,n===e.length&&r(!1)}})},[]),{loading:n}},rn=n({collapsed:!1,headerHeight:50,containerBackground:"transparent",flattenMenuMap:{},setCollapsed:()=>{}}),tn=n({close:()=>{}}),on=n({close:()=>{}}),an=Symbol("AsideFooter"),ln=Symbol("AsideHeader"),sn=Symbol("AsideContentItems"),dn=Symbol("AsideContentItem"),cn=Symbol("ContentFooter"),un=Symbol("AvatarPopoverContent"),mn=Symbol("BrandPopoverContent"),pn=Symbol("SoltContent"),hn=Symbol("ToolbarExtraItems"),fn=()=>r(rn),xn=()=>fn().collapsed,gn=()=>w(),yn=()=>tn,bn=()=>on,_n=()=>r(tn),vn=()=>r(on);function jn(n){const{icon:r,size:t}=n;return e.isValidElement(r)?e.cloneElement(r,{size:t,style:{fontSize:t-2+"px",...n.style}}):r}const{useToken:wn}=u;function kn(e){const{collapsed:n,iconSize:r,hideTitle:o}=e,{layoutConfig:i}=q(),{token:a}=wn(),{layoutIcons:l,brandPopoverContent:s}=fn(),[d,c]=t(!1),u=bn(),h=i.compact?"16px":"20px";let f={justifyContent:"flex-start",paddingInline:i.compact?a.paddingXXS:a.paddingXS,height:"40px",gap:(i.compact?6:8)+"px"},x={height:`${i.headerHeight}px`},g={boxSizing:"border-box",display:"flex",flex:"1",gap:"6px",width:"100%",textAlign:"left",alignItems:"center"};i.flated&&(f={...f,paddingInline:a.padding,height:"100%"},x={...x,padding:"0px"});const{brandInfo:y}=i;n?f={...f,paddingInline:`calc(50% - calc(${h} / 2))`}:g={...g,overflow:"hidden"};let b=R.jsx(R.Fragment,{});y?.logo&&(b="string"==typeof y.logo?R.jsx(Qe,{style:{width:h,minWidth:h},src:y.logo,alt:y.name}):R.jsx("div",{className:Ie,style:{width:h,minWidth:h},children:y.logo}));const _=l?.itemMoreIcon||R.jsx(Xe,{}),v=R.jsx(p,{type:"text",style:f,iconPlacement:"end",icon:s?R.jsx(jn,{icon:_,size:r||14,style:{opacity:n?"0":"1"}}):void 0,children:R.jsxs("div",{style:g,children:[b,R.jsxs("div",{className:Be,style:{opacity:n?"0":"1"},children:[R.jsx("h4",{children:y?.name}),o?void 0:R.jsx("span",{style:{color:a.colorTextSecondary},children:y?.title})]})]})});return R.jsx("div",{className:Ce,style:x,children:s?R.jsx(u.Provider,{value:{close:()=>{c(!1)},record:y},children:R.jsx(m,{open:d,onOpenChange:c,placement:"rightTop",content:s,children:v})}):v})}function Sn(e){const{collapsed:n,iconSize:r,hideTitle:o}=e,{layoutConfig:i}=q(),{layoutIcons:a,brandPopoverContent:l}=fn(),{token:s}=wn(),[d,c]=t(!1),u=bn(),p=i.compact?"16px":"20px";let h={justifyContent:"flex-start",gap:(i.compact?6:8)+"px"},f={height:`${i.headerHeight}px`},x={boxSizing:"border-box",display:"flex",flex:"1",gap:"6px",width:"100%",alignItems:"center"};i.flated&&(h={...h,paddingInline:s.padding},f={...f,padding:"0px"});const{brandInfo:g}=i;n?h={...h,paddingInline:`calc(50% - calc(${p} / 2))`}:x={...x,overflow:"hidden"};let y=R.jsx(R.Fragment,{});g?.logo&&(y="string"==typeof g.logo?R.jsx(Qe,{style:{width:p,minWidth:p},src:g.logo,alt:g.name}):R.jsx("div",{className:Ie,style:{width:p,minWidth:p},children:g.logo}));const b=a?.itemMoreIcon||R.jsx(Xe,{}),_=l?{}:{href:g?.url},v=R.jsxs("a",{..._,style:h,children:[R.jsxs("div",{style:x,children:[y,R.jsxs("div",{className:Be,style:{opacity:n?"0":"1"},children:[R.jsx("h4",{style:{width:"90%"},children:g?.name}),o?void 0:R.jsx("span",{style:{color:s.colorTextSecondary,width:"90%"},children:g?.title})]})]}),l?R.jsx("div",{style:{opacity:n?"0":"1",display:"flex",placeItems:"center"},children:R.jsx(jn,{icon:b,size:r||14})}):R.jsx(R.Fragment,{})]});return R.jsx("div",{className:Ce,style:f,children:l?R.jsx(u.Provider,{value:{close:()=>{c(!1)},record:g},children:R.jsx(m,{open:d,onOpenChange:c,placement:"rightTop",content:l,children:v})}):v})}function Cn(e){const{layoutConfig:n}=q(),{brandPopoverContent:r}=fn(),[o,i]=t(!1),a=bn(),l=n.compact?"16px":"20px",{brandInfo:s}=n;let d=R.jsx(R.Fragment,{});s?.logo&&(d="string"==typeof s.logo?R.jsx(Qe,{style:{width:l},src:s.logo,alt:s.name}):R.jsx("div",{className:Ie,style:{width:l},children:s.logo}));let c=r?R.jsx(a.Provider,{value:{close:()=>{i(!1)},record:s},children:R.jsx(m,{open:o,onOpenChange:i,content:r,placement:"rightTop",children:R.jsx("a",{children:d})})}):R.jsx("a",{href:s?.url,children:d});return R.jsxs("div",{className:Te,style:e.style,children:[c,R.jsx("div",{className:fe,children:e.children})]})}function Bn(e){const{collapsed:n}=e,{brandPopoverContent:r}=fn(),{layoutConfig:o}=q(),[i,a]=t(!1),l=bn(),s=n?o.compact?"16px":"20px":o.compact?"56px":"64px",{brandInfo:d}=o,c={opacity:n?"0":"1",height:n?"0px":"auto"};let u=R.jsx(R.Fragment,{});if(!d)return R.jsx(R.Fragment,{});let p=[Ne];n&&p.push(Me),d?.logo&&(u="string"==typeof d.logo?R.jsx(Qe,{style:{width:s},src:d.logo,alt:d.name}):R.jsx("div",{className:Ie,style:{width:s},children:d.logo}));let h=r?R.jsx(l.Provider,{value:{close:()=>{a(!1)},record:d},children:R.jsx(m,{open:i,onOpenChange:a,content:r,placement:"rightTop",children:R.jsx("a",{children:u})})}):R.jsx("a",{href:d?.url,children:u});return R.jsxs("div",{className:p.join(" "),children:[h,R.jsxs("div",{style:c,children:[R.jsx("span",{children:d?.name}),d.title?R.jsx("span",{className:Pe,children:d?.title}):R.jsx(R.Fragment,{})]})]})}function In(e){return R.jsx("div",{style:{...e.style},children:e.children})}In.displayName="BrandPopoverContent",In.role=mn;const{useToken:Tn}=u;function Nn(e){const{collapsed:n,iconSize:r}=e,{layoutConfig:o}=q(),{layoutIcons:i,avatarPopoverContent:a}=fn(),[l,s]=t(!1),d=yn(),{token:c}=Tn(),u=o.compact?"20px":"24px";let p={justifyContent:"flex-start",gap:(o.compact?6:8)+"px"},h={height:`${o.headerHeight}px`},f={boxSizing:"border-box",display:"flex",flex:"1",gap:"6px",width:"100%",alignItems:"center"};o.flated&&(p={...p,paddingInline:c.padding,margin:"0px",height:"100%"},h={...h,padding:"0px"});const{userInfo:x}=o;n?p={...p,paddingInline:`calc(50% - calc(${u} / 2))`}:f={...f,overflow:"hidden"};let g=R.jsx(R.Fragment,{});x?.avatar&&(g="string"==typeof x.avatar?R.jsx(Qe,{style:{width:u,borderRadius:"999px"},src:x.avatar,alt:x.uid}):x.avatar);const y=i?.itemMoreIcon||R.jsx(Xe,{}),b=R.jsx("div",{className:ze,style:h,children:R.jsxs("a",{style:p,children:[R.jsxs("div",{style:f,children:[g,R.jsxs("div",{className:Be,style:{opacity:n?"0":"1"},children:[R.jsx("h4",{children:x?.uid}),x?.title?void 0:R.jsx("span",{style:{color:c.colorTextSecondary},children:x?.title})]})]}),a?R.jsx("div",{style:{opacity:n?"0":"1",display:"flex",placeItems:"center"},children:R.jsx(jn,{icon:y,size:r||14})}):R.jsx(R.Fragment,{})]})});return a?R.jsx(d.Provider,{value:{close:()=>s(!1),record:x},children:R.jsx(m,{open:l,onOpenChange:s,placement:"right",content:a,children:b})}):b}function Pn(e){const{iconSize:n=14}=e,{layoutConfig:r}=q(),{userInfo:o}=r,{avatarPopoverContent:i}=fn(),[a,l]=t(!1),s=yn();let d=R.jsx(Ye,{});const c=n+4,u={width:`${c}px`,height:`${c}px`,overflow:"hidden",display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer"};o?.avatar&&(d="string"==typeof o.avatar?R.jsx(Qe,{style:{width:c,borderRadius:"999px"},src:o.avatar,alt:o.uid}):o.avatar);const p=R.jsxs("div",{className:be,children:[R.jsx("div",{style:u,children:d}),R.jsx("span",{children:o?.uid})]});return i?R.jsx(s.Provider,{value:{close:()=>l(!1),record:o},children:R.jsx(m,{open:a,onOpenChange:l,placement:"left",content:i,children:p})}):R.jsx(R.Fragment,{children:p})}function Mn(e){return R.jsx("div",{style:{...e.style},children:e.children})}Mn.displayName="AvatarPopoverContent",Mn.role=un;const{useToken:zn}=u;function Fn(e){const{token:n}=zn(),{layoutIcons:r,toolbarExtraItems:t}=fn(),o=n.Menu?.iconSize||16,[i,a]=r?.fullScreenIcons?.slice(0,2)||[R.jsx(qe,{}),R.jsx(Je,{})],l=R.jsx(jn,{icon:i,size:o}),s=R.jsx(jn,{icon:a,size:o});return R.jsxs("div",{className:ge,children:[e.showAvatar?R.jsxs("div",{className:ye,children:[R.jsx(Pn,{iconSize:o+4}),R.jsx(h,{"data-adminui-role":"desk-toolbar",orientation:"vertical"})]}):R.jsx(R.Fragment,{}),t,R.jsx("div",{className:ye,"data-adminui-role":"desk-toolbar",children:R.jsx(ie,{buttons:[R.jsx(p,{icon:s,type:"text"},"minimize"),R.jsx(p,{icon:l,type:"text"},"maximize")]})})]})}function En(e){const n=R.jsx("div",{className:ye,"data-adminui-role":"desk-toolbar",children:e.children});return e?R.jsx(R.Fragment,{children:n}):R.jsx(R.Fragment,{})}En.displayName="ToolbarExtraItems",En.role=hn;const{useToken:Ln}=u;function On(e){const{style:n}=e,{collapsed:r,setCollapsed:t,layoutIcons:o}=fn(),i={display:"flex",justifyContent:"flex-end",alignItems:"center",width:"100%",height:n?.width,backgroundColor:"transparent"},a={display:"flex",width:n?.width,height:"100%",cursor:"pointer",justifyContent:"center",alignItems:"center"},[l,s]=o?.collapsedIcons?.slice(0,2)||[R.jsx(Ke,{}),R.jsx(Ge,{})];return R.jsx("div",{style:i,children:R.jsx("div",{style:a,onClick:()=>{t(!r)},children:r?l:s})})}function Rn(e){const{style:n,offset:r=0,top:t}=e,{collapsed:o,setCollapsed:i,layoutIcons:a}=fn(),{token:l}=Ln();let s={right:"-14px"},d={backgroundColor:n?.backgroundColor,border:`solid 1px ${l.colorBorderSecondary}`};t&&(s={...s,right:"-12px",display:"initial"},d={...d,width:"24px",height:"24px",borderRadius:"12px",transform:`translateY(${r+10}px)`});const[c,u]=a?.collapsedIcons?.slice(0,2)||[R.jsx(Ke,{}),R.jsx(Ge,{})];return R.jsx("div",{className:ke,style:s,onClick:()=>{i(!o)},children:R.jsx("div",{style:d,className:Se,children:o?c:u})})}function An(e){const{collapsed:n,setCollapsed:r,layoutIcons:t}=fn(),[o,i]=t?.mobileAsideIcons?.slice(0,2)||[R.jsx(Ue,{}),R.jsx(De,{})];return R.jsx("div",{className:Fe,children:R.jsx(p,{type:"text",style:{cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center",...e.style},icon:n?o:i,onClick:()=>{r(!n)}})})}function Hn(e){const{collapsed:n,setCollapsed:r,layoutIcons:t}=fn(),[o,i]=t?.mobileAsideIcons?.slice(0,2)||[R.jsx(Ue,{}),R.jsx(De,{})];return R.jsx("div",{className:Ee,children:R.jsx(p,{type:"text",style:{cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center",...e.style},icon:n?o:i,onClick:()=>{r(!n)}})})}const{Header:Wn}=f,{useToken:$n}=u;function Vn(e){const{layoutConfig:n}=q(),{token:r,theme:t}=$n(),o=k(),i=n.headerTransparent||n.headerBlur?se(r.colorBorderSecondary,.6):r.colorBorderSecondary,a=n.hideBorder?"0px":"1px solid "+i,l=n.flated&&"headMenu"==n.layoutType||1==t.id?"dark":"light",s=n.flated&&"headMenu"==n.layoutType?"dark":"light",d=n.flated&&"headMenu"==n.layoutType?r.colorPrimary:r.colorBgContainer,c={height:e.height+"px",lineHeight:e.height+"px"};let m=R.jsx(R.Fragment,{}),p={...c,borderBottom:a,backgroundColor:n.headerTransparent?"transparent":d};n.headerBlur&&(p={...p,backgroundColor:se(d,.6),transform:"translateZ(0)",backdropFilter:"blur(8px)"});let h={...c,fontSize:r.Menu?.iconSize,backgroundColor:"transparent",flex:"none"},y=[ce],b=R.jsx(R.Fragment,{});"headMenu"==n.layoutType?(m=R.jsx("div",{style:c}),p={...p,paddingInlineEnd:r.paddingXS+"px"},b=R.jsx("div",{className:xe,style:{width:n?.asideWidth+"px"},children:R.jsx(kn,{collapsed:!1,iconSize:r.Menu?.iconSize,hideTitle:!0})}),y.push(me)):(p={...p,paddingInline:r.paddingXS+"px"},y.push(ue));let _=R.jsx(Cn,{children:e.title}),v=R.jsx(An,{iconSize:n.compact?12:14});const j=[pe];n.flated||j.push(Ve);let w="dark"==l?[u.darkAlgorithm]:[u.defaultAlgorithm];return n.noneHeader?R.jsx(R.Fragment,{}):R.jsxs(R.Fragment,{children:[m,R.jsx(x,{theme:{algorithm:w},children:R.jsx(f,{className:y.join(" "),style:h,children:R.jsxs(Wn,{className:j.join(" "),style:p,children:[v,b,_,R.jsx(g,{onClick:e=>{o(e.key)},defaultSelectedKeys:e.selectedKeys,selectedKeys:e.selectedKeys,mode:"horizontal",theme:s,classNames:{root:he},items:e.menuData||[]}),R.jsx(Fn,{showAvatar:"rightTop"==n.avatarPosition})]})})})]})}const{Sider:Gn}=f,{useToken:Kn}=u,{useBreakpoint:Dn}=y;function Un(e){const n=i([]);n.current=e.openerKeys||[];const[r,o]=t(e.openerKeys),{layoutConfig:a}=q(),{asideWidth:l}=a,s=e.headerHeight,{collapsed:d,setCollapsed:c}=fn(),{token:u,theme:m}=Kn(),p=k(),h=Dn().xs?0:s,f=a.headerTransparent||a.headerBlur?se(u.colorBorderSecondary,.6):u.colorBorderSecondary,x=a.hideBorder||0==h&&d?"0px":"1px solid "+f,y=a.noneHeader&&"leftMenu"==a.layoutType,b=a.containerMargin||0,_="headMenu"==a.layoutType||0==h?e.headerHeight:0,v="headMenu"==a.layoutType||0==h?"calc(100% - "+e.headerHeight+"px)":"100%";let j={width:`${a.asideWidth}px`,height:`${v}`,insetBlockStart:_+"px",maxWidth:`${a.asideWidth}px`,minWidth:`${a.asideWidth}px`,borderRight:x,boxShadow:h>0?"none":u.boxShadowTertiary,position:"fixed",margin:y?b/2:"0px",transition:"width 0.3s, min-width 0.3s, max-width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"},w={overflow:"auto",flex:1};const S=u.Menu?.iconSize,C=1==m.id?"dark":"light",B=C;let I=0,T=R.jsx(R.Fragment,{});"leftMenu"==a.layoutType&&(I=a.headerHeight||0,T=a.largeBrand?R.jsx(Bn,{collapsed:d,iconSize:S}):R.jsx(Sn,{collapsed:d,iconSize:S,hideTitle:!0}));const N=u.colorBgContainer;j={...j,backgroundColor:a.asideTransparent&&h>0?"transparent":N},a.asideBlur&&(j={...j,backgroundColor:se(N,.6),transform:"translateZ(0)",backdropFilter:"blur(8px)"}),d&&(w={...w,overflow:"hidden"});let P=[_e],M=R.jsx(R.Fragment,{});switch(a.collapsedPosition){case"bottom":M=R.jsx(On,{iconSize:S,style:{backgroundColor:N,width:`${s}px`,borderRight:x}});break;case"center":M=R.jsx(Rn,{iconSize:12,flated:a.flated,offset:I,style:{backgroundColor:N}});break;case"top":M=a.noneHeader?R.jsx(R.Fragment,{}):R.jsx(Rn,{iconSize:12,top:!0,flated:a.flated,offset:I,style:{backgroundColor:N}})}let z=e.menuData||[];return a.asideMenuGroup&&z.forEach(e=>{e.children&&(e.type="group")}),R.jsxs(R.Fragment,{children:[R.jsx("div",{style:{width:d?s:l,flex:`0 0 ${d?s:l}px`,maxWidth:d?s:l,minWidth:d?s:l,transition:"background-color 0.3s, min-width 0.3s, max-width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"},className:ve}),R.jsxs(Gn,{width:l,className:P.join(" "),style:j,theme:B,collapsedWidth:h,collapsible:!0,trigger:null,breakpoint:"md",collapsed:d,onCollapse:c,children:[h>0?T:R.jsx(R.Fragment,{}),e.header,R.jsx("div",{style:w,children:R.jsx(g,{onClick:e=>{0==h&&c(!0),p(e.key)},onOpenChange:e=>{o(e)},style:{border:"0",background:"transparent",position:"relative",minHeight:"100%"},mode:a.asideMenuInline?"inline":"vertical",selectedKeys:e.selectedKeys,openKeys:d?void 0:r,defaultSelectedKeys:e.selectedKeys,defaultOpenKeys:n.current,theme:C,items:z})}),e.footer,"leftBottom"==a.avatarPosition?R.jsx(Nn,{collapsed:d,iconSize:S}):R.jsx(R.Fragment,{}),M]})]})}const Xn=e=>e.reduce((e,n)=>{const{children:r,...t}=n;return e[t.path]=t,r&&Object.assign(e,Xn(r)),e},{});function Yn(e,n){let r=[],t=[];return e.forEach(e=>{e.key==n[1]&&(t=e.children??[]);const o={...e,children:void 0};r.push(o)}),{rootMenuItems:r,childrenMenuItems:t}}const Jn=e=>{let n=[];if(!(null==e||e.length<=0))return e.forEach(e=>{let r=Qn(e);r.children=Jn(e.children),n.push(r)}),n},qn=(e,n)=>{if(e)return e.map(e=>{const r=Zn(e,n),t={...e,label:r};return e.children&&(t.children=qn(e.children,n)),t})},Zn=(e,n)=>((e,n,r,t)=>{if(t){const o="menu"+e.replaceAll("/",".");return t.formatMessage({id:o,defaultMessage:r||n})}return r||n})(e.path||"",e.name,e.label,n),Qn=e=>({key:e.path||e.name,label:e.label||e.name,icon:e.icon,extra:e.extra,title:e.label});function er(e){const n="/"===e?"/":e.replace(/\/+$/,"");if("/"===n)return["/"];const r=n.split("/").filter(Boolean),t=["/"];let o="";for(const e of r)o+=`/${e}`,t.push(o);return t}function nr(e){return er(e)}function rr(e){const n=e.length;if(0===n)return[[],[]];if(1===n)return[[e[0]],[]];const r=[e[1]],t=new Array(n-2);for(let r=1;r<n;r++)t[r-1]=e[r];return[r,t]}function tr(e,n){if(n)return!e.endsWith("/")&&e.length>1&&(e+="/"),n.map(n=>{const r=function(e,n){let r=n.path||n.name;r?.startsWith("/")&&(r=r.slice(1));r?.startsWith("./")&&(r=r.slice(2));let t=e+r,o={name:t,path:t,label:n.label,originalPath:t,extra:ar(n.extra),icon:ar(n.icon)};return o}(e,n);return n.children&&(r.children=tr(r.path,n.children)),r})}function or(e,n){if(n)return!e.endsWith("/")&&e.length>1&&(e+="/"),n.filter(e=>!!e.handle).map(n=>{const r=function(e,n){const{handle:r}=n;let t=n.path;t&&r.params&&(t=I(t,r.params));t?.startsWith("/")&&(t=t.slice(1));let o=e+t,i={...r,path:o,originalPath:n.path,extra:ar(r.extra),icon:ar(r.icon)};return i}(e,n);return n.children&&(r.children=or(r.path,n.children)),r})}function ir(e,n={}){if(!Object.keys(n).some(e=>null!=n[e]))return e.split("/:")[0];const r=e.split("/"),t=[];for(const e of r)if(e.startsWith(":")){const r=e.slice(1),o=n[r];if(null==o)break;t.push(encodeURIComponent(String(o)))}else t.push(e);return t.join("/")}const ar=n=>e.isValidElement(n)?n:"function"==typeof n||"object"==typeof n?e.createElement(n):null,{useToken:lr}=u;function sr(n){const{layoutConfig:r,themeSkin:o}=q(),i=v(),{token:l}=lr(),[s,d]=t(!1),c={backgroundColor:l.colorBgLayout};let u=r.headerHeight||56;r.compact&&(u-=4);const m=r.disabledLocale?n.menuData:qn(n.menuData,i),p=m&&m?.length>0?m[0].children:[],h=Xn(m||[]),f=Jn(p),x=S(),g=x.map(e=>e.pathname),y=x[x.length-1];let b=[],_=[],j=[],w=[];if("leftMenu"==r.layoutType?(w=f||[],_=g):(j=f||[],b=g),r.splitMenu){const[e,n]=rr(g),{rootMenuItems:t,childrenMenuItems:o}=Yn(f,g);"leftMenu"==r.layoutType?(w=t,j=o,_=e,b=n):(w=o,j=t,b=e,_=n)}const k=a(()=>r.asideBlur||r.headerBlur?se(l.colorBgContainer,.6):l.colorBgContainer,[r.asideBlur,r.headerBlur,l.colorBgContainer]),B=e.Children.toArray(n.children),I=B.find(n=>e.isValidElement(n)&&n.type.role===an),T=B.find(n=>e.isValidElement(n)&&n.type.role===ln),N=B.find(n=>e.isValidElement(n)&&n.type.role===cn),P=B.find(n=>e.isValidElement(n)&&n.type.role===un),M=B.find(n=>e.isValidElement(n)&&n.type.role===mn),z=B.find(n=>e.isValidElement(n)&&n.type.role===pn),F=B.find(n=>e.isValidElement(n)&&n.type.role===hn),E=rn,L=a(()=>({collapsed:s,headerHeight:u,layoutIcons:n.layoutIcons,avatarPopoverContent:P,brandPopoverContent:M,toolbarExtraItems:F,containerBackground:k,flattenMenuMap:h,setCollapsed:d}),[s,u,n.layoutIcons,h,k]),O=r.hideAsideMenuDataEmpty&&w.length<=0&&"headMenu"==r.layoutType,A=h[y.pathname].label||"";return document.title=A,R.jsxs(R.Fragment,{children:[R.jsx(E,{value:L,children:R.jsxs(oe,{...n,style:c,children:[R.jsx(oe.Aside,{children:O?R.jsx(R.Fragment,{}):R.jsx(Un,{headerHeight:u,header:I,footer:T,menuData:w,selectedKeys:_,openerKeys:_})}),R.jsx(oe.Header,{children:R.jsx(Vn,{height:u,menuData:j,selectedKeys:b,title:A})}),R.jsx(oe.Content,{children:R.jsx(C,{context:{title:A,footer:N}})}),R.jsx(oe.Background,{children:o?o.backgroundContent:R.jsx(R.Fragment,{})})]})}),z]})}const dr="#417ffb",cr=e=>T(e),ur=()=>cr("#000000"),mr=()=>cr("#FFFFFF"),pr=e=>{let{layoutConfig:n}=q();return n.asideBlur||n.headerBlur?se(e,.6):e},hr=e=>({backgroundColor:pr(e),transform:"translateZ(0)",backdropFilter:"blur(8px)"});function fr(e){const n=xn(),{layoutConfig:r}=q(),t=r.compact?"16px":"20px";let o={justifyContent:"flex-start",paddingInline:r.compact?"14px":"16px",marginInline:"4px",marginBlock:"4px",gap:(r.compact?6:8)+"px"};return n&&(o={...o,paddingInline:`calc(50% - calc(${t} / 2))`}),!e.icon&&n?R.jsx(R.Fragment,{}):R.jsxs("div",{className:we,style:o,children:[R.jsx("div",{children:e.icon}),R.jsx("div",{style:{opacity:n?"0":"1"},children:e.children})]})}function xr(e){return R.jsx(R.Fragment,{children:e.children})}function gr(e){return R.jsx("div",{className:je,children:e.children})}function yr(e){return R.jsx("div",{className:je,children:e.children})}xr.displayName="AsideContentItems",fr.displayName="AsideContentItem",yr.displayName="AsideHeaderContent",yr.Items=xr,yr.Item=fr,gr.displayName="AsideFooterContent",gr.Items=xr,gr.Item=fr,gr.role=ln,yr.role=an,xr.role=sn,fr.role=dn;const br="adminui-default-config",_r=()=>{const e=v(),{layoutConfig:n}=q(),{f:r,t:t}=vr(n.disabledLocale?void 0:e);return{...e,f:r,t:t}},vr=e=>({f:n=>{const{id:r,defaultMessage:t}=n;return e?e.formatMessage({id:r,defaultMessage:t}):t||r.split(".").pop()},t:(n,r)=>e?e.formatMessage({id:n,defaultMessage:r}):r||n.split(".").pop()}),jr=e=>{const{brandInfo:n,userInfo:r,...t}=e;return t},wr=e=>{e||(e=br);const n=window.localStorage.getItem(e);try{if(n)return JSON.parse(n)}catch(e){console.error(e)}},kr=(e,n)=>{n||(n=br);const{brandInfo:r,userInfo:t,...o}=e,i=JSON.stringify(o);window.localStorage.setItem(n,i)},Sr=(e,n)=>{let r={...e};if(n){const e=n.theme.length<2?n.theme[0]:r.theme;let t=r.brandInfo||{title:"antd-layout",name:"warden.vip"};r={...r,...n.layoutConfig,theme:e,brandInfo:{...t,logo:n.logo}}}return r};function Cr(e){const n=S(),{flattenMenuMap:r}=fn(),{layoutConfig:t}=q(),o=[];n.forEach((e,n)=>{const t=r[e.pathname],i=t?t.label:"";o.push({path:e.pathname,title:i,icon:t.icon})});let i=[Le];return"first"==t.visibleBreadcrumbIcon?i.push(Oe):"all"==t.visibleBreadcrumbIcon&&i.push(Re),R.jsx(b,{classNames:{root:i.join(" ")},style:e.style,items:o,itemRender:Br})}function Br(e,n,r,t){return e?.path===r[r.length-1]?.path?R.jsxs("span",{className:"adminui-breadcrumb-link",children:[e.icon,e.title]}):R.jsxs(B,{className:"adminui-breadcrumb-link",to:"/"+t[t.length-1],children:[e.icon,e.title]})}const{useToken:Ir}=u,{useBreakpoint:Tr}=y;function Nr(e){const{mode:n="inline",stretch:r="inline"}=e,{token:t}=Ir(),{xs:o}=Tr(),{layoutConfig:i}=q(),{footer:a,title:l}=gn(),{containerMargin:s=0}=i;let d={},c={flex:"none"},u={borderRadius:i.compact?t.borderRadius:t.borderRadiusLG},m={display:"flex"};const p=e.hideBorder||i.hideBorder,f=e.hideBreadcrumb||i.hideBreadcrumb,x=e.hideTitle||i.hideTitle,g=i.noneHeader&&"leftMenu"==i.layoutType,y=i.headerTransparent||i.headerBlur?se(t.colorBorderSecondary,.6):t.colorBorderSecondary;"box"!=n&&"panel"!=n||(d={padding:t.padding},"panel"==n&&(u={...u,padding:t.padding,backgroundColor:t.colorBgContainer},p||(u={...u,border:`solid 1px ${y}`}))),"fill"!=r&&"auto"!=r||(c={...c,flex:"auto"},"fill"==r&&(u={...u,minHeight:"100%"})),g&&(d={...d,backgroundColor:t.colorBgContainer,borderRadius:s>0?t.padding:`${t.padding}px 0px 0px ${t.padding}px`,padding:"0px",margin:s},m={...m,padding:t.paddingXS,borderBlockEnd:`solid 1px ${t.colorBorderSecondary} `});const b=f?R.jsx(R.Fragment,{}):R.jsx(Cr,{}),_=x?R.jsx(R.Fragment,{}):R.jsx("h3",{children:e.title||l});if(i.containerBlur){const e=hr(t.colorBgContainer);g?(d={...d,...e},u={...u,backgroundColor:"transparent"}):u={...u,...e}}(e.transparent||i.containerTransparent)&&(u={...u,backgroundColor:"transparent"}),u={...u,...e.style};const v=g?R.jsx(Cn,{children:e.title||l}):R.jsx(R.Fragment,{}),j=g?R.jsx(An,{iconSize:i.compact?12:14}):R.jsx(R.Fragment,{}),w=g&&"top"==i.collapsedPosition&&!o?R.jsxs(R.Fragment,{children:[R.jsx(Hn,{iconSize:i.compact?12:14}),R.jsx(h,{orientation:"vertical"})]}):R.jsx(R.Fragment,{}),k=!(e.hideFooter||i.hideFooter)&&e.children&&a?R.jsx("footer",{children:a}):R.jsx(R.Fragment,{}),S=g?R.jsx(Fn,{showAvatar:"rightTop"==i.avatarPosition}):R.jsx(R.Fragment,{}),C=g&&o?R.jsx(R.Fragment,{}):R.jsxs("div",{className:We,children:[b,_]});return R.jsxs("div",{className:Ae,style:d,children:[R.jsxs("div",{className:He,style:m,children:[j,v,w,C,R.jsx("div",{className:$e,children:S})]}),R.jsx("main",{style:c,children:R.jsx("div",{style:u,children:e.children})}),k]})}const Pr=e=>R.jsx("div",{...e,children:e.children});function Mr({children:e}){return R.jsx(R.Fragment,{children:e})}Pr.displayName="ContentFooter",Pr.role=cn,Mr.displayName="SoltContent",Mr.role=pn;const zr="adminui-locale",Fr=ur(),Er=mr(),Lr=(e,n)=>{let r;return Object.entries(n).forEach(([n,t])=>{t.forEach(n=>{n.name==e&&(r=n)})}),r};function Or(e){const n=S(),{pathname:r}=n[0],i={...X,...e.layoutConfig,...e.disabledStorageConfig?{}:wr(r)};let l=e.themeSkins||[];const s=a(()=>(e=>{let n={system:[],custom:[]};return e.forEach(e=>{"system"==e.skinType?n.system.push(e):n.custom.push(e)}),n})(l),[l]),d=e.locale||localStorage.getItem(zr)||i.locale||"en-US",c=e.menuData?tr("/",[e.menuData]):[],[m,p]=t(()=>{if(i.skinName){const e=Lr(i.skinName,s);return Sr(i,e)}return i}),[h,f]=t(d),g=J,y=Y;let b=e.localeMessages||{};const v=a(()=>(e=>{let n=[];return Object.entries(e).forEach(([e,r])=>{n.push({name:r.name,locale:e,flag:r.flag})}),n})(b),[b]),w=e=>{localStorage.setItem(zr,e),f(e)};document.documentElement.style.setProperty("--pageload-bar-color",m.primaryColor),o(()=>{const e=window.document.documentElement;if(e.classList.remove("light","dark"),"system"===m.theme){const n=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";return void e.classList.add(n)}e.classList.add(m.theme)},[m.theme]);const k=a(()=>{if(m.skinName)return Lr(m.skinName,s)},[l,m.skinName]),C="system"==(B=m.theme)?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":B;var B;const I=n=>{p(n),e.disabledStorageConfig||kr(n,r)},N=a(()=>({layoutConfig:m,locale:h,languages:v,themeSkin:k,themeSkinMap:s}),[v,h,v,s,k,m]),P=a(()=>({setLayoutConfig:I,setLocale:w}),[]),M=b[h]||b["en-US"],z=["he","ar","fa","ku"].filter(e=>h.startsWith(e)).length?"rtl":"ltr";let F="dark"===C?[u.darkAlgorithm]:[u.defaultAlgorithm],E=m.menuIconSize||14;const L=m.menuIconSize?.1*(E-10)+10:10;m.compact&&(F.push(u.compactAlgorithm),E-=2);const O="dark"===C?Er:Fr,A="dark"===C?Fr:Er,H=T(m.primaryColor||dr);let W={darkSubMenuItemBg:"transparent",subMenuItemBg:"transparent",iconSize:E,fontSize:E,itemMarginInline:m.flated?0:4,iconMarginInlineEnd:L,activeBarHeight:m.compact?2:4,darkPopupBg:Fr[4]};if(m.menuItemSelectColor&&"default"!=m.menuItemSelectColor){const e="invert"==m.menuItemSelectColor;W={...W,itemActiveBg:e?O[0]:H[1],itemSelectedBg:e?O[3]:m.primaryColor,itemSelectedColor:e?A[2]:Er[2]}}const $={algorithm:F,token:{colorPrimary:m.primaryColor,borderRadius:m.flated?0:6},components:{Menu:W,Layout:{siderBg:"transparent",triggerBg:"transparent",lightSiderBg:"transparent",lightTriggerBg:"transparent"}}};return R.jsx(g.Provider,{value:N,children:R.jsx(y.Provider,{value:P,children:R.jsx(x,{theme:$,locale:M?.antdLocale,direction:z,modal:{mask:{blur:!1}},drawer:{mask:{blur:!1}},prefixCls:"adminui",children:R.jsx(_,{style:{height:"100%",width:"100%"},children:R.jsx(j,{locale:h,messages:M?.messages,children:R.jsx(sr,{menuData:c,layoutIcons:e.layoutIcons,children:e.children})})})})})})}Or.AsideHeader=yr,Or.AsideFooter=gr,Or.Footer=Pr,Or.AvatarPopoverContent=Mn,Or.BrandPopoverContent=In,Or.SoltContent=Mr,Or.HeaderToolbarExtra=En;var Rr={exports:{}};
20
+ "production"===process.env.NODE_ENV?A.exports=function(){if(L)return H;L=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(n,r,t){var o=null;if(void 0!==t&&(o=""+t),void 0!==r.key&&(o=""+r.key),"key"in r)for(var i in t={},r)"key"!==i&&(t[i]=r[i]);else t=r;return r=t.ref,{$$typeof:e,type:n,key:o,ref:void 0!==r?r:null,props:t}}return H.Fragment=n,H.jsx=r,H.jsxs=r,H}():A.exports=(O||(O=1,"production"!==process.env.NODE_ENV&&function(){function n(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===S?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case h:return"Fragment";case x:return"Profiler";case f:return"StrictMode";case _:return"Suspense";case v:return"SuspenseList";case w:return"Activity"}if("object"==typeof e)switch("number"==typeof e.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case p:return"Portal";case y:return e.displayName||"Context";case g:return(e._context.displayName||"Context")+".Consumer";case b:var r=e.render;return(e=e.displayName)||(e=""!==(e=r.displayName||r.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case j:return null!==(r=e.displayName||null)?r:n(e.type)||"Memo";case k:r=e._payload,e=e._init;try{return n(e(r))}catch(e){}}return null}function r(e){return""+e}function t(e){try{r(e);var n=!1}catch(e){n=!0}if(n){var t=(n=console).error,o="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(n,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",o),r(e)}}function o(e){if(e===h)return"<>";if("object"==typeof e&&null!==e&&e.$$typeof===k)return"<...>";try{var r=n(e);return r?"<"+r+">":"<...>"}catch(e){return"<...>"}}function i(){return Error("react-stack-top-frame")}function a(){var e=n(this.type);return N[e]||(N[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),void 0!==(e=this.props.ref)?e:null}function l(e,r,o,i,l,d){var u,p=r.children;if(void 0!==p)if(i)if(I(p)){for(i=0;i<p.length;i++)s(p[i]);Object.freeze&&Object.freeze(p)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else s(p);if(B.call(r,"key")){p=n(e);var h=Object.keys(r).filter(function(e){return"key"!==e});i=0<h.length?"{key: someKey, "+h.join(": ..., ")+": ...}":"{key: someKey}",z[p+i]||(h=0<h.length?"{"+h.join(": ..., ")+": ...}":"{}",console.error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',i,p,h,p),z[p+i]=!0)}if(p=null,void 0!==o&&(t(o),p=""+o),function(e){if(B.call(e,"key")){var n=Object.getOwnPropertyDescriptor(e,"key").get;if(n&&n.isReactWarning)return!1}return void 0!==e.key}(r)&&(t(r.key),p=""+r.key),"key"in r)for(var f in o={},r)"key"!==f&&(o[f]=r[f]);else o=r;return p&&function(e,n){function r(){c||(c=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",n))}r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}(o,"function"==typeof e?e.displayName||e.name||"Unknown":e),function(e,n,r,t,o,i){var l=r.ref;return e={$$typeof:m,type:e,key:n,props:r,_owner:t},null!==(void 0!==l?l:null)?Object.defineProperty(e,"ref",{enumerable:!1,get:a}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:o}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(e,p,o,null===(u=C.A)?null:u.getOwner(),l,d)}function s(e){d(e)?e._store&&(e._store.validated=1):"object"==typeof e&&null!==e&&e.$$typeof===k&&("fulfilled"===e._payload.status?d(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function d(e){return"object"==typeof e&&null!==e&&e.$$typeof===m}var c,u=e,m=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),g=Symbol.for("react.consumer"),y=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),w=Symbol.for("react.activity"),S=Symbol.for("react.client.reference"),C=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,I=Array.isArray,T=console.createTask?console.createTask:function(){return null},N={},P=(u={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(u,i)(),M=T(o(i)),z={};W.Fragment=h,W.jsx=function(e,n,r){var t=1e4>C.recentlyCreatedOwnerStacks++;return l(e,n,r,!1,t?Error("react-stack-top-frame"):P,t?T(o(e)):M)},W.jsxs=function(e,n,r){var t=1e4>C.recentlyCreatedOwnerStacks++;return l(e,n,r,!0,t?Error("react-stack-top-frame"):P,t?T(o(e)):M)}}()),W);var $=A.exports;function V(e,n){void 0===n&&(n={});var r=n.insertAt;if(e&&"undefined"!=typeof document){var t=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===r&&t.firstChild?t.insertBefore(o,t.firstChild):t.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}V("@layer base {\r\n html, body {\r\n padding: 0;\r\n margin: 0;\r\n border: 0;\r\n width: 100%; \r\n height: 100%;\r\n }\r\n #root { \r\n text-align: initial;\r\n width: 100%;\r\n height:100%\r\n } \r\n}\r\n*, *:before, *:after {\r\n box-sizing: border-box;\r\n}\r\n.Layout-module_rootBox__3JHjy {\r\n text-rendering: optimizeLegibility;\r\n -webkit-font-smoothing: antialiased;\r\n -moz-osx-font-smoothing: grayscale;\r\n text-align: initial;\r\n width: 100%;\r\n min-height: 100%;\r\n}\r\n.Layout-module_rootBackground__j3UVG {\r\n box-sizing: border-box; \r\n pointer-events: none;\r\n inset-block-start:0;\r\n inset-inline-start:0; \r\n width: 100%; \r\n min-width: 100vw;\r\n height:100%;\r\n min-height: 100vh;\r\n overflow: hidden;\r\n position: fixed;\r\n z-index: 0;\r\n}\r\n.Layout-module_rootBackground__j3UVG>div{\r\n width:100%;\r\n height: 100%;\r\n overflow: hidden;\r\n}\r\n.Layout-module_rootLayout__jVEEF {\r\n position: relative;\r\n z-index: 1;\r\n box-sizing: border-box; \r\n width: 100%;\r\n min-height: 100%;\r\n display: flex; \r\n flex-flow: row;\r\n background-color: transparent;\r\n container-type: inline-size;\r\n}\r\n\r\n.Layout-module_mainLayout__6W9W9 {\r\n box-sizing: border-box; \r\n display: flex;\r\n flex-flow: column; \r\n width: 100%;\r\n min-width: 0px;\r\n min-height: 100vh;\r\n}\r\n");const G=Symbol("LayoutAside"),K=Symbol("LayoutContent"),D=Symbol("LayoutHeader"),U=Symbol("LayoutBackground"),X={headerHeight:50,asideWidth:260,layoutType:"leftMenu",collapsedPosition:"bottom",avatarPosition:"rightTop",theme:"system",visibleBreadcrumbIcon:"none",primaryColor:"#417ffb"},Y=n({setLayoutConfig:()=>{},setLocale:()=>{}}),J=n({locale:"en-US",languages:[],layoutConfig:{},themeSkinMap:{system:[],custom:[]}}),q=()=>r(J),Z=()=>r(Y),Q=()=>q().layoutConfig.theme;function ee(e){return $.jsx("div",{className:"Layout-module_rootBackground__j3UVG",children:$.jsx($.Fragment,{children:e.children})})}function ne(e){return $.jsx($.Fragment,{children:e.children})}function re(e){return $.jsx($.Fragment,{children:e.children})}function te(e){return $.jsx($.Fragment,{children:e.children})}ee.displayName="LayoutBackground",ee.role=U,ne.displayName="LayoutContent",ne.role=K,re.displayName="LayoutAside",re.role=G,te.displayName="LayoutHeader",te.role=D;function oe(n){let r=null,t=null,o=null,i=null;e.Children.forEach(n.children,e=>{const n=e.type.role;n===D?r=e:n===K?t=e:n===G?o=e:n===U&&(i=e)});const a=n.style||n.styles?.root;return $.jsx($.Fragment,{children:$.jsxs("div",{ref:n.ref,className:"layout-module_rootBox__Y8bEx",style:a,children:[i,$.jsxs("div",{className:"layout-module_rootLayout__TePvr",children:[o,$.jsxs("div",{className:"layout-module_mainLayout__a8Tb9",style:{...n.styles?.main},children:[r,t]})]})]})})}function ie(n){const r=!!document.fullscreenElement,[i,a]=t(r),l=()=>{a(!!document.fullscreenElement)},s=e=>{"F11"===e.code&&(e.preventDefault(),d())};o(()=>(document.addEventListener("fullscreenchange",l),document.addEventListener("keydown",s,!0),()=>{document.removeEventListener("fullscreenchange",l),document.removeEventListener("keydown",s)}),[]);const d=()=>{i?document.exitFullscreen():document.documentElement.requestFullscreen()};if(!n.buttons||n.buttons.length<2)return $.jsx($.Fragment,{});const[c,u]=n.buttons,m=i?c:u;return e.cloneElement(m,{onClick:e=>{console.log(e),d()}})}V("@layer base {\r\n html, body {\r\n padding: 0;\r\n margin: 0;\r\n border: 0;\r\n width: 100%; \r\n height: 100%;\r\n }\r\n #root { \r\n text-align: initial;\r\n width: 100%;\r\n height:100%\r\n } \r\n}\r\n*, *:before, *:after {\r\n box-sizing: border-box;\r\n}\r\n.layout-module_rootBox__Y8bEx {\r\n text-rendering: optimizeLegibility;\r\n -webkit-font-smoothing: antialiased;\r\n -moz-osx-font-smoothing: grayscale;\r\n text-align: initial;\r\n width: 100%;\r\n min-height: 100%;\r\n}\r\n.layout-module_rootBackground__vEs6e {\r\n box-sizing: border-box; \r\n pointer-events: none;\r\n inset-block-start:0;\r\n inset-inline-start:0; \r\n width: 100%; \r\n min-width: 100vw;\r\n height:100%;\r\n min-height: 100vh;\r\n overflow: hidden;\r\n position: fixed;\r\n z-index: 0;\r\n}\r\n.layout-module_rootBackground__vEs6e>div{\r\n width:100%;\r\n height: 100%;\r\n overflow: hidden;\r\n}\r\n.layout-module_rootLayout__TePvr {\r\n position: relative;\r\n z-index: 1;\r\n box-sizing: border-box; \r\n width: 100%;\r\n min-height: 100%;\r\n display: flex; \r\n flex-flow: row;\r\n background-color: transparent;\r\n container-type: inline-size;\r\n}\r\n\r\n.layout-module_mainLayout__a8Tb9 {\r\n box-sizing: border-box; \r\n display: flex;\r\n flex-flow: column; \r\n width: 100%;\r\n min-width: 0px;\r\n min-height: 100vh;\r\n}\r\n"),oe.Aside=re,oe.Content=ne,oe.Header=te,oe.Background=ee;const ae=e=>({r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16),a:9===e.length?(parseInt(e.slice(7,9),16)/255).toFixed(2):1}),le=e=>{const{r:n,g:r,b:t}=ae(e);return{r:n,g:r,b:t}},se=(e,n)=>{const{r:r,g:t,b:o,a:i}=ae(e);return`rgba(${r}, ${t}, ${o}, ${n??i})`};function de(e,n){void 0===n&&(n={});var r=n.insertAt;if(e&&"undefined"!=typeof document){var t=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===r&&t.firstChild?t.insertBefore(o,t.firstChild):t.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}de("@layer adminui-layout { \r\n :root{\r\n --pageload-bar-color:#222222;\r\n } \r\n #root {\r\n padding: 0;\r\n margin: 0;\r\n border: 0;\r\n width: 100%;\r\n height: 100%;\r\n }\r\n}\r\n/** Menu icon automatic compact mode */\r\n.adminui-menu-icon {\r\n font-size: var(--adminui-menu-icon-size);\r\n width: var(--adminui-menu-icon-size);\r\n height: var(--adminui-menu-icon-size); \r\n}\r\n.adminui-btn-icon {\r\n display: flex;\r\n justify-items: center;\r\n align-items: center;\r\n}\r\n.adminui-menu .adminui-menu-title-content-with-extra {\r\n width: auto;\r\n}\r\n.adminui-menu .adminui-menu-title-content-with-extra .adminui-menu-item-extra {\r\n display: inline-flex;\r\n}");var ce="index-module_headerLayout__rv59v",ue="index-module_headerLayoutSticky__6uFCj",me="index-module_headerLayoutFixed__t5Hmo",pe="index-module_headerLayoutBox__h0fIt",he="index-module_headerMenu__WHmJN",fe="index-module_headerTitle__jGbCX",xe="index-module_headerBrandBox__U2J16",ge="index-module_toolbarPanel__Pp8PS",ye="index-module_toolbarItem__RkaXd",be="index-module_toolbarAvatarItem__p6TXY",_e="index-module_siderBaseStyle__zg1FM",ve="index-module_siderMask__cCjMh",je="index-module_siderContentBox__dGgRe",ke="index-module_siderContentItem__kl3cR",we="index-module_collapsedTrack__LoJ3V",Se="index-module_collapsedTrackButton__m33XS",Ce="index-module_brandPanel__2GRgq",Be="index-module_labelBox__dX8fY",Ie="index-module_brandNodeBox__W-iM6",Te="index-module_brandMobilePanel__m1Diu",Ne="index-module_largeBrandPanel__pLn--",Pe="index-module_title__SbfFY",Me="index-module_largeBrandCollPanel__nsGKB",ze="index-module_avatarPanel__fFvCS",Fe="index-module_collapsedMobile__Yu8F4",Ee="index-module_collapsedContainer__23dQh",Le="index-module_breadcrumbBox__w3MOx",Oe="index-module_breadcrumbFirstIcon__9zEmW",Re="index-module_breadcrumbAllIcon__HYkKa",Ae="index-module_containerBox__pv0qs",He="index-module_containerHeader__p8V0W",We="index-module_contentHeaderMenu__zSoS7",$e="index-module_containerHeaderToolbar__pGsCN",Ve="index-module_round__WoVxM";function Ge(e){const{size:n=16}=e;return R.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:R.jsx("path",{d:"m15 18-6-6 6-6"})})}function Ke(e){const{size:n=16}=e;return R.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:R.jsx("path",{d:"m9 18 6-6-6-6"})})}function De(e){const{size:n=16}=e;return R.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[R.jsx("path",{d:"M21 5H11"}),R.jsx("path",{d:"M21 12H11"}),R.jsx("path",{d:"M21 19H11"}),R.jsx("path",{d:"m7 8-4 4 4 4"})]})}function Ue(e){const{size:n=16}=e;return R.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[R.jsx("path",{d:"M21 5H11"}),R.jsx("path",{d:"M21 12H11"}),R.jsx("path",{d:"M21 19H11"}),R.jsx("path",{d:"m3 8 4 4-4 4"})]})}function Xe(e){const{size:n=16}=e;return R.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[R.jsx("path",{d:"m7 15 5 5 5-5"}),R.jsx("path",{d:"m7 9 5-5 5 5"})]})}function Ye(e){const{size:n=16}=e;return R.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[R.jsx("path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"}),R.jsx("circle",{cx:"12",cy:"7",r:"4"})]})}function Je(e){const{size:n=16}=e;return R.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[R.jsx("path",{d:"M8 3v3a2 2 0 0 1-2 2H3"}),R.jsx("path",{d:"M21 8h-3a2 2 0 0 1-2-2V3"}),R.jsx("path",{d:"M3 16h3a2 2 0 0 1 2 2v3"}),R.jsx("path",{d:"M16 21v-3a2 2 0 0 1 2-2h3"})]})}function qe(e){const{size:n=16}=e;return R.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[R.jsx("path",{d:"M8 3H5a2 2 0 0 0-2 2v3"}),R.jsx("path",{d:"M21 8V5a2 2 0 0 0-2-2h-3"}),R.jsx("path",{d:"M3 16v3a2 2 0 0 0 2 2h3"}),R.jsx("path",{d:"M16 21h3a2 2 0 0 0 2-2v-3"})]})}function Ze(e){const[n,r]=t(!1);return o(()=>{if(e.src)if("string"==typeof e.src){const n=new Image;n.src=e.src,n.onload=()=>r(!0),n.onerror=()=>r(!0)}else r(!0)},[e.src]),R.jsx(c,{...e,style:{...e.style,opacity:n?1:0,transition:"opacity 0.3s ease-out"}})}function Qe(e){const[n,r]=t(!1),{hasChild:i,...a}=e;o(()=>{if(e.src)if("string"==typeof e.src){const n=new Image;n.src=e.src,n.onload=()=>r(!0),n.onerror=()=>r(!0)}else r(!0)},[e.src]);const l={...e.style,transition:"opacity 0.3s ease-out",opacity:n?1:0,display:"flex",justifyItems:"center",alignItems:"center"},s=R.jsx("img",{...a});return e.hasChild?s:R.jsx("div",{style:l,children:s})}function en(e){const[n,r]=t(!1),{hasChild:i,...a}=e;o(()=>{if(e.src)if("string"==typeof e.src){const n=new Image;n.src=e.src,n.onload=()=>r(!0),n.onerror=()=>r(!0)}else r(!0)},[e.src]);const l={...e.style,transition:"opacity 0.3s ease-out",opacity:n?1:0,display:"flex",justifyItems:"center",alignItems:"center"},s=R.jsx("img",{...a});return R.jsx(d,{spinning:!n,children:e.hasChild?s:R.jsx("div",{style:l,children:s})})}de('@layer base { \r\n\r\n :root { \r\n --sb-track-color: transparent;\r\n --sb-thumb-color: #ccc;\r\n --sb-thumb-hover: #b3b3b3;\r\n --sb-html-track-color: rgb(250,250,250);\r\n color-scheme: light;\r\n }\r\n\r\n * {\r\n box-sizing: border-box;\r\n scrollbar-width: thin;\r\n scrollbar-color: var(--sb-thumb-color) var(--sb-track-color);\r\n }\r\n\r\n html {\r\n scrollbar-color: var(--sb-thumb-color) var(--sb-html-track-color);\r\n }\r\n \r\n @media (prefers-color-scheme: dark) {\r\n :root {\r\n --sb-track-color: transparent;\r\n --sb-thumb-color: #383838;\r\n --sb-thumb-hover: rgb(49, 49, 49);\r\n --sb-html-track-color: rgb(20,20,20);\r\n color-scheme: dark;\r\n }\r\n }\r\n\r\n :root[style="color-scheme: dark;"],\r\n :root[class="dark"] { \r\n --sb-track-color: transparent;\r\n --sb-thumb-color: #383838;\r\n --sb-thumb-hover: rgb(49, 49, 49); \r\n --sb-html-track-color: rgb(20,20,20); \r\n color-scheme: dark; \r\n }\r\n\r\n ::-webkit-scrollbar {\r\n width: 8px;\r\n height: 8px;\r\n background-color: transparent;\r\n } \r\n\r\n ::-webkit-scrollbar-track {\r\n background-color: var(--sb-track-color);\r\n border-radius: 10px;\r\n }\r\n\r\n ::-webkit-scrollbar-thumb {\r\n background-color: var(--sb-thumb-color);\r\n border-radius: 10px; \r\n border: 2px solid var(--sb-track-color);\r\n }\r\n ::-webkit-scrollbar-thumb:hover {\r\n background-color: var(--sb-thumb-hover);\r\n } \r\n}\r\n/** header */\r\n.index-module_headerLayout__rv59v {\r\n box-sizing: border-box;\r\n min-width: 100%;\r\n padding-block: 0;\r\n padding-inline: 0; \r\n transition: opacity var(--adminui-motion-duration-mid), padding var(--adminui-motion-duration-mid), width var(--adminui-motion-duration-mid);\r\n}\r\n\r\n.index-module_headerLayoutSticky__6uFCj {\r\n position: sticky;\r\n width: 100%;\r\n z-index: 100;\r\n top:0;\r\n}\r\n.index-module_headerLayoutFixed__t5Hmo {\r\n position: fixed;\r\n width: 100%;\r\n z-index: 100;\r\n inset-block-start: 0;\r\n inset-inline-end: 0;\r\n}\r\n.index-module_headerLayoutBox__h0fIt {\r\n display: flex;\r\n flex-flow: row;\r\n justify-content: space-between;\r\n align-items: center;\r\n}\r\n.index-module_headerMenu__WHmJN {\r\n border:0px;\r\n background-color: transparent;\r\n flex:1;\r\n height: 100%;\r\n min-width: 0px;\r\n}\r\n.index-module_headerTitle__jGbCX {\r\n white-space: nowrap;\r\n text-overflow: ellipsis;\r\n}\r\n.index-module_headerBrandBox__U2J16 {\r\n width: auto; \r\n}\r\n\r\n.index-module_layoutBlur__GpCPx { \r\n transform: translateZ(0);\r\n backdrop-filter: blur(8px);\r\n}\r\n\r\n.index-module_toolbarPanel__Pp8PS {\r\n display: flex;\r\n justify-content: end;\r\n align-items: center;\r\n}\r\n.index-module_toolbarPanel__Pp8PS .index-module_toolbarItem__RkaXd {\r\n display: flex;\r\n justify-content: end;\r\n align-items: center;\r\n}\r\n.index-module_toolbarAvatarItem__p6TXY {\r\n display: flex;\r\n align-items: center;\r\n padding-inline: var(--adminui-padding-xs); \r\n gap: 8px;\r\n cursor: pointer;\r\n}\r\n.index-module_toolbarAvatarItem__p6TXY span {\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n min-width: 0;\r\n max-width: 100px;\r\n}\r\n\r\n/** sider */\r\n.index-module_siderBaseStyle__zg1FM {\r\n background:\'transparent\'; \r\n padding-bottom: 0px; \r\n z-index: 10;\r\n transition: opacity var(--adminui-motion-duration-mid), padding var(--adminui-motion-duration-mid), width var(--adminui-motion-duration-mid); \r\n}\r\n\r\n.index-module_siderMask__cCjMh {\r\n overflow: hidden;\r\n transition:background-color 0.3s, min-width 0.3s, max-width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)\r\n}\r\n.index-module_siderContentBox__dGgRe {\r\n display: flex;\r\n flex-flow: column;\r\n align-items: center;\r\n width: 100%;\r\n min-height: 0px;\r\n transition: opacity var(--adminui-motion-duration-mid), padding var(--adminui-motion-duration-mid), width var(--adminui-motion-duration-mid); \r\n}\r\n\r\n.index-module_siderContentItem__kl3cR { \r\n display: flex; \r\n align-items: center;\r\n width: 100%; \r\n min-height: 0px;\r\n transition: opacity var(--adminui-motion-duration-mid), padding var(--adminui-motion-duration-mid), width var(--adminui-motion-duration-mid); \r\n}\r\n.index-module_siderContentItem__kl3cR>div{\r\n display: flex; \r\n align-items: center;\r\n opacity: 1;\r\n transition: opacity var(--adminui-motion-duration-mid), padding var(--adminui-motion-duration-mid), width var(--adminui-motion-duration-mid); \r\n}\r\n\r\n.index-module_collapsedTrack__LoJ3V {\r\n display: flex;\r\n flex-flow: column;\r\n justify-content: center;\r\n align-items: center; \r\n position: absolute;\r\n top:0px;\r\n bottom:0px;\r\n right:-14px;\r\n cursor: pointer;\r\n}\r\n.index-module_collapsedTrack__LoJ3V .index-module_collapsedTrackButton__m33XS {\r\n width: 14px;\r\n height: 36px;\r\n border-top-right-radius: 4px;\r\n border-bottom-right-radius: 4px;\r\n display: flex;\r\n flex-flow: column;\r\n justify-content: center;\r\n align-items: center; \r\n opacity: 0; \r\n transition: opacity var(--adminui-motion-duration-mid), padding var(--adminui-motion-duration-mid), width var(--adminui-motion-duration-mid); \r\n\r\n}\r\n.index-module_collapsedTrack__LoJ3V:hover .index-module_collapsedTrackButton__m33XS {\r\n opacity: 1;\r\n}\r\n\r\n/** brand */ \r\n.index-module_brandPanel__2GRgq {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n padding:var(--adminui-margin-xxs);\r\n}\r\n.index-module_brandPanel__2GRgq button {\r\n display: flex;\r\n width: 100%;\r\n align-items: center;\r\n opacity: 1;\r\n padding-inline: var(--adminui-padding-xs); \r\n transition: all 0.3s;\r\n\r\n}\r\n.index-module_brandPanel__2GRgq a {\r\n display: flex;\r\n width: 100%;\r\n height: 100%;\r\n align-items: center;\r\n opacity: 1;\r\n color:inherit; \r\n transition: all 0.3s; \r\n padding-inline: var(--adminui-padding-xs);\r\n border-radius: var(--adminui-border-radius-lg);\r\n}\r\n\r\n.index-module_brandPanel__2GRgq a:hover{\r\n background-color: var(--adminui-control-item-bg-hover);\r\n}\r\n.index-module_brandPanel__2GRgq a:active{\r\n background-color: var(--adminui-control-item-bg-active);\r\n}\r\n\r\n.index-module_brandPanel__2GRgq h4{\r\n margin:0px;\r\n padding:0px;\r\n line-height: 1rem;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n min-width: 0;\r\n}\r\n.index-module_brandPanel__2GRgq span {\r\n margin:0px; \r\n line-height: 1rem;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n min-width: 0;\r\n}\r\n\r\n.index-module_brandPanel__2GRgq .index-module_labelBox__dX8fY {\r\n width: 100%; \r\n display:flex;\r\n flex-flow:column;\r\n justify-content:space-between;\r\n transition: opacity var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out), padding var(--adminui-motion-duration-mid) var(--adminui-motion-ease-in-out);\r\n}\r\n.index-module_brandNodeBox__W-iM6 {\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n color:var(--adminui-color-primary);\r\n transition: opacity var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out), width var(--adminui-motion-duration-mid) var(--adminui-motion-ease-in-out);\r\n}\r\n\r\n.index-module_brandMobilePanel__m1Diu {\r\n opacity: 0;\r\n width: 0px;\r\n overflow: hidden;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n height: 100%;\r\n gap: 8px;\r\n transition: opacity var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out), width var(--adminui-motion-duration-mid) var(--adminui-motion-ease-in-out),padding var(--adminui-motion-duration-mid) var(--adminui-motion-ease-in-out);\r\n}\r\n.index-module_brandMobilePanel__m1Diu a {\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n}\r\n.index-module_largeBrandPanel__pLn-- {\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n flex-flow: column;\r\n gap: 2px;\r\n padding: var(--adminui-padding-lg); \r\n}\r\n\r\n.index-module_largeBrandPanel__pLn-- img {\r\n transition: width var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out); \r\n}\r\n.index-module_largeBrandPanel__pLn--\x3ediv{\r\n opacity: 1;\r\n text-align: center;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n flex-flow: column; \r\n overflow: hidden;\r\n width: 100%;\r\n transition: opacity var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out), height var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out);\r\n}\r\n.index-module_largeBrandPanel__pLn-- span {\r\n font-size: large;\r\n width: 100%;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n min-width: 0;\r\n}\r\n.index-module_largeBrandPanel__pLn-- span.index-module_title__SbfFY {\r\n font-size: small;\r\n color:var(--adminui-color-text-tertiary);\r\n}\r\n.index-module_largeBrandCollPanel__nsGKB {\r\n padding: var(--adminui-margin-xxs);\r\n}\r\n.index-module_largeBrandCollPanel__nsGKB a {\r\n opacity: 1;\r\n color:inherit; \r\n padding: var(--adminui-padding-xs);\r\n border-radius: var(--adminui-border-radius-lg);\r\n}\r\n.index-module_largeBrandCollPanel__nsGKB a:hover{\r\n background-color: var(--adminui-control-item-bg-hover);\r\n}\r\n.index-module_largeBrandCollPanel__nsGKB a:active{\r\n background-color: var(--adminui-control-item-bg-active);\r\n}\r\n/** avatar */\r\n.index-module_avatarPanel__fFvCS {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n padding:var(--adminui-margin-xxs);\r\n}\r\n.index-module_avatarPanel__fFvCS a {\r\n display: flex;\r\n width: 100%;\r\n height: 100%;\r\n align-items: center;\r\n opacity: 1;\r\n color:inherit; \r\n transition: all 0.3s;\r\n padding-inline: var(--adminui-padding-xs);\r\n border-radius: var(--adminui-border-radius-lg);\r\n}\r\n\r\n.index-module_avatarPanel__fFvCS a:hover{\r\n background-color: var(--adminui-control-item-bg-hover);\r\n}\r\n.index-module_avatarPanel__fFvCS a:active{\r\n background-color: var(--adminui-control-item-bg-active);\r\n}\r\n\r\n.index-module_avatarPanel__fFvCS h4{\r\n width: 90%;\r\n margin:0px;\r\n padding:0px;\r\n line-height: 1rem;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n min-width: 0;\r\n}\r\n.index-module_avatarPanel__fFvCS span {\r\n width: 90%;\r\n margin:0px; \r\n line-height: 1rem;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n min-width: 0;\r\n}\r\n\r\n.index-module_avatarPanel__fFvCS .index-module_labelBox__dX8fY {\r\n width: 100%;\r\n display:flex;\r\n flex-flow:column;\r\n justify-content:space-between;\r\n transition: opacity var(--adminui-motion-duration-slow) var(--adminui-motion-ease-in-out);\r\n}\r\n\r\n.index-module_collapsedMobile__Yu8F4 { \r\n display: none;\r\n justify-content: center;\r\n align-items: center;\r\n}\r\n.index-module_collapsedContainer__23dQh {\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n}\r\n.index-module_breadcrumbBox__w3MOx li .adminui-breadcrumb-link{\r\n display: flex;\r\n align-items: center;\r\n gap:var(--adminui-margin-xxs);\r\n}\r\n\r\n.index-module_breadcrumbBox__w3MOx li .adminui-breadcrumb-link>span[role="img"],\r\n.index-module_breadcrumbBox__w3MOx li .adminui-breadcrumb-link>svg{\r\n display: none;\r\n}\r\n.index-module_breadcrumbFirstIcon__9zEmW li:first-of-type .adminui-breadcrumb-link>span[role="img"],\r\n.index-module_breadcrumbFirstIcon__9zEmW li:first-of-type .adminui-breadcrumb-link>svg\r\n{\r\n display: inline-flex;\r\n}\r\n.index-module_breadcrumbAllIcon__HYkKa li .adminui-breadcrumb-link>span[role="img"],\r\n.index-module_breadcrumbAllIcon__HYkKa li .adminui-breadcrumb-link>svg{\r\n display: inline-flex;\r\n}\r\n\r\n/** container */\r\n.index-module_containerBox__pv0qs {\r\n box-sizing: border-box;\r\n background-color: transparent;\r\n display: flex;\r\n flex-flow: column;\r\n flex:auto;\r\n}\r\n\r\n.index-module_containerBox__pv0qs>footer{\r\n display: flex;\r\n flex-flow: column;\r\n align-items: center;\r\n justify-content: center;\r\n width: 100%;\r\n color:var(--adminui-color-text-description);\r\n padding:var(--adminui-padding);\r\n}\r\n.index-module_containerBox__pv0qs>footer>div{\r\n text-align: center;\r\n}\r\n.index-module_containerHeader__p8V0W {\r\n display: flex;\r\n justify-content:flex-start;\r\n align-items: center;\r\n padding-block-end: var(--adminui-padding-xs);\r\n}\r\n.index-module_containerHeaderCollapsed__XGlnh {\r\n display: flex;\r\n gap:6px;\r\n align-items: center;\r\n}\r\n.index-module_contentHeaderMenu__zSoS7 {\r\n display: flex;\r\n flex-flow: column;\r\n justify-content: center;\r\n padding-inline-start: var(--adminui-padding-xs);\r\n gap:var(--adminui-margin-xs);\r\n}\r\n.index-module_contentHeaderMenu__zSoS7>h3{\r\n box-sizing: border-box;\r\n line-height: var(--adminui-line-height);\r\n margin:0px;\r\n padding:0px;\r\n}\r\n.index-module_containerHeaderToolbar__pGsCN {\r\n flex:1;\r\n display: flex;\r\n justify-content: flex-end; \r\n align-items: center;\r\n}\r\n\r\n/** antd(adminui) */\r\n.index-module_headerLayout__rv59v .adminui-layout-header{\r\n padding-inline: 0px;\r\n}\r\n.index-module_headerLayout__rv59v .adminui-btn,\r\n.index-module_siderBaseStyle__zg1FM .adminui-btn{\r\n font-size: inherit;\r\n}\r\n.index-module_headerLayoutBox__h0fIt.index-module_round__WoVxM .adminui-menu-horizontal >.adminui-menu-item::after, \r\n.index-module_headerLayoutBox__h0fIt.index-module_round__WoVxM .adminui-menu-horizontal >.adminui-menu-submenu::after { \r\n border-radius: 4px;\r\n}\r\n\r\n.index-module_siderBaseStyle__zg1FM .adminui-layout-sider-trigger{\r\n position: absolute; \r\n top:0; \r\n right:0;\r\n height:100%;\r\n}\r\n.index-module_siderBaseStyle__zg1FM .adminui-layout-sider-children {\r\n display: flex;\r\n flex-flow: column;\r\n margin-top: 0px;\r\n padding-top: 0px;\r\n\r\n}\r\n\r\n@container (max-width: 576px) { \r\n .index-module_headerLayout__rv59v .adminui-layout-header {\r\n padding-inline-start: var(--adminui-padding-xs);\r\n }\r\n .index-module_headerMenu__WHmJN {\r\n justify-content: end;\r\n max-width: 80px;\r\n } \r\n .index-module_headerBrandBox__U2J16 {\r\n display: none;\r\n }\r\n .index-module_siderMask__cCjMh {\r\n display: none;\r\n }\r\n .index-module_brandMobilePanel__m1Diu {\r\n opacity: 1; \r\n padding-inline: var(--adminui-padding-xs);\r\n justify-content: flex-start;\r\n flex:1;\r\n }\r\n .index-module_largeBrandPanel__pLn-- {\r\n display: none;\r\n }\r\n .index-module_collapsedMobile__Yu8F4 {\r\n display: flex;\r\n }\r\n .index-module_collapsedContainer__23dQh {\r\n display: none;\r\n }\r\n .index-module_collapsedTrack__LoJ3V {\r\n visibility: collapse;\r\n }\r\n .index-module_toolbarPanel__Pp8PS *[data-adminui-role="desk-toolbar"] {\r\n display: none;\r\n }\r\n .index-module_toolbarAvatarItem__p6TXY span {\r\n display: none;\r\n }\r\n}\r\n');const nn=e=>{const[n,r]=t(!1);return o(()=>{r(!0);let n=0;e.forEach(t=>{const o=new Image;o.src=t,o.onload=()=>{n++,n===e.length&&r(!1)},o.onerror=()=>{n++,n===e.length&&r(!1)}})},[]),{loading:n}},rn=n({collapsed:!1,headerHeight:50,containerBackground:"transparent",flattenMenuMap:{},setCollapsed:()=>{}}),tn=n({close:()=>{}}),on=n({close:()=>{}}),an=Symbol("AsideFooter"),ln=Symbol("AsideHeader"),sn=Symbol("AsideContentItems"),dn=Symbol("AsideContentItem"),cn=Symbol("ContentFooter"),un=Symbol("AvatarPopoverContent"),mn=Symbol("BrandPopoverContent"),pn=Symbol("SoltContent"),hn=Symbol("ToolbarExtraItems"),fn=()=>r(rn),xn=()=>fn().collapsed,gn=()=>k(),yn=()=>tn,bn=()=>on,_n=()=>r(tn),vn=()=>r(on);function jn(n){const{icon:r,size:t}=n;return e.isValidElement(r)?e.cloneElement(r,{size:t,style:{fontSize:t-2+"px",...n.style}}):r}const{useToken:kn}=u;function wn(e){const{collapsed:n,iconSize:r,hideTitle:o}=e,{layoutConfig:i}=q(),{token:a}=kn(),{layoutIcons:l,brandPopoverContent:s}=fn(),[d,c]=t(!1),u=bn(),h=i.compact?"16px":"20px";let f={justifyContent:"flex-start",paddingInline:i.compact?a.paddingXXS:a.paddingXS,height:"40px",gap:(i.compact?6:8)+"px"},x={height:`${i.headerHeight}px`},g={boxSizing:"border-box",display:"flex",flex:"1",gap:"6px",width:"100%",textAlign:"left",alignItems:"center"};i.flated&&(f={...f,paddingInline:a.padding,height:"100%"},x={...x,padding:"0px"});const{brandInfo:y}=i;n?f={...f,paddingInline:`calc(50% - calc(${h} / 2))`}:g={...g,overflow:"hidden"};let b=R.jsx(R.Fragment,{});y?.logo&&(b="string"==typeof y.logo?R.jsx(Qe,{style:{width:h,minWidth:h},src:y.logo,alt:y.name}):R.jsx("div",{className:Ie,style:{width:h,minWidth:h},children:y.logo}));const _=l?.itemMoreIcon||R.jsx(Xe,{}),v=R.jsx(p,{type:"text",style:f,iconPlacement:"end",icon:s?R.jsx(jn,{icon:_,size:r||14,style:{opacity:n?"0":"1"}}):void 0,children:R.jsxs("div",{style:g,children:[b,R.jsxs("div",{className:Be,style:{opacity:n?"0":"1"},children:[R.jsx("h4",{children:y?.name}),o?void 0:R.jsx("span",{style:{color:a.colorTextSecondary},children:y?.title})]})]})});return R.jsx("div",{className:Ce,style:x,children:s?R.jsx(u.Provider,{value:{close:()=>{c(!1)},record:y},children:R.jsx(m,{open:d,onOpenChange:c,placement:"rightTop",content:s,children:v})}):v})}function Sn(e){const{collapsed:n,iconSize:r,hideTitle:o}=e,{layoutConfig:i}=q(),{layoutIcons:a,brandPopoverContent:l}=fn(),{token:s}=kn(),[d,c]=t(!1),u=bn(),p=i.compact?"16px":"20px";let h={justifyContent:"flex-start",gap:(i.compact?6:8)+"px"},f={height:`${i.headerHeight}px`},x={boxSizing:"border-box",display:"flex",flex:"1",gap:"6px",width:"100%",alignItems:"center"};i.flated&&(h={...h,paddingInline:s.padding},f={...f,padding:"0px"});const{brandInfo:g}=i;n?h={...h,paddingInline:`calc(50% - calc(${p} / 2))`}:x={...x,overflow:"hidden"};let y=R.jsx(R.Fragment,{});g?.logo&&(y="string"==typeof g.logo?R.jsx(Qe,{style:{width:p,minWidth:p},src:g.logo,alt:g.name}):R.jsx("div",{className:Ie,style:{width:p,minWidth:p},children:g.logo}));const b=a?.itemMoreIcon||R.jsx(Xe,{}),_=l?{}:{href:g?.url},v=R.jsxs("a",{..._,style:h,children:[R.jsxs("div",{style:x,children:[y,R.jsxs("div",{className:Be,style:{opacity:n?"0":"1"},children:[R.jsx("h4",{style:{width:"90%"},children:g?.name}),o?void 0:R.jsx("span",{style:{color:s.colorTextSecondary,width:"90%"},children:g?.title})]})]}),l?R.jsx("div",{style:{opacity:n?"0":"1",display:"flex",placeItems:"center"},children:R.jsx(jn,{icon:b,size:r||14})}):R.jsx(R.Fragment,{})]});return R.jsx("div",{className:Ce,style:f,children:l?R.jsx(u.Provider,{value:{close:()=>{c(!1)},record:g},children:R.jsx(m,{open:d,onOpenChange:c,placement:"rightTop",content:l,children:v})}):v})}function Cn(e){const{layoutConfig:n}=q(),{brandPopoverContent:r}=fn(),[o,i]=t(!1),a=bn(),l=n.compact?"16px":"20px",{brandInfo:s}=n;let d=R.jsx(R.Fragment,{});s?.logo&&(d="string"==typeof s.logo?R.jsx(Qe,{style:{width:l},src:s.logo,alt:s.name}):R.jsx("div",{className:Ie,style:{width:l},children:s.logo}));let c=r?R.jsx(a.Provider,{value:{close:()=>{i(!1)},record:s},children:R.jsx(m,{open:o,onOpenChange:i,content:r,placement:"rightTop",children:R.jsx("a",{children:d})})}):R.jsx("a",{href:s?.url,children:d});return R.jsxs("div",{className:Te,style:e.style,children:[c,R.jsx("div",{className:fe,children:e.children})]})}function Bn(e){const{collapsed:n}=e,{brandPopoverContent:r}=fn(),{layoutConfig:o}=q(),[i,a]=t(!1),l=bn(),s=n?o.compact?"16px":"20px":o.compact?"56px":"64px",{brandInfo:d}=o,c={opacity:n?"0":"1",height:n?"0px":"auto"};let u=R.jsx(R.Fragment,{});if(!d)return R.jsx(R.Fragment,{});let p=[Ne];n&&p.push(Me),d?.logo&&(u="string"==typeof d.logo?R.jsx(Qe,{style:{width:s},src:d.logo,alt:d.name}):R.jsx("div",{className:Ie,style:{width:s},children:d.logo}));let h=r?R.jsx(l.Provider,{value:{close:()=>{a(!1)},record:d},children:R.jsx(m,{open:i,onOpenChange:a,content:r,placement:"rightTop",children:R.jsx("a",{children:u})})}):R.jsx("a",{href:d?.url,children:u});return R.jsxs("div",{className:p.join(" "),children:[h,R.jsxs("div",{style:c,children:[R.jsx("span",{children:d?.name}),d.title?R.jsx("span",{className:Pe,children:d?.title}):R.jsx(R.Fragment,{})]})]})}function In(e){return R.jsx("div",{style:{...e.style},children:e.children})}In.displayName="BrandPopoverContent",In.role=mn;const{useToken:Tn}=u;function Nn(e){const{collapsed:n,iconSize:r}=e,{layoutConfig:o}=q(),{layoutIcons:i,avatarPopoverContent:a}=fn(),[l,s]=t(!1),d=yn(),{token:c}=Tn(),u=o.compact?"20px":"24px";let p={justifyContent:"flex-start",gap:(o.compact?6:8)+"px"},h={height:`${o.headerHeight}px`},f={boxSizing:"border-box",display:"flex",flex:"1",gap:"6px",width:"100%",alignItems:"center"};o.flated&&(p={...p,paddingInline:c.padding,margin:"0px",height:"100%"},h={...h,padding:"0px"});const{userInfo:x}=o;n?p={...p,paddingInline:`calc(50% - calc(${u} / 2))`}:f={...f,overflow:"hidden"};let g=R.jsx(R.Fragment,{});x?.avatar&&(g="string"==typeof x.avatar?R.jsx(Qe,{style:{width:u,borderRadius:"999px"},src:x.avatar,alt:x.uid}):x.avatar);const y=i?.itemMoreIcon||R.jsx(Xe,{}),b=R.jsx("div",{className:ze,style:h,children:R.jsxs("a",{style:p,children:[R.jsxs("div",{style:f,children:[g,R.jsxs("div",{className:Be,style:{opacity:n?"0":"1"},children:[R.jsx("h4",{children:x?.uid}),x?.title?void 0:R.jsx("span",{style:{color:c.colorTextSecondary},children:x?.title})]})]}),a?R.jsx("div",{style:{opacity:n?"0":"1",display:"flex",placeItems:"center"},children:R.jsx(jn,{icon:y,size:r||14})}):R.jsx(R.Fragment,{})]})});return a?R.jsx(d.Provider,{value:{close:()=>s(!1),record:x},children:R.jsx(m,{open:l,onOpenChange:s,placement:"right",content:a,children:b})}):b}function Pn(e){const{iconSize:n=14}=e,{layoutConfig:r}=q(),{userInfo:o}=r,{avatarPopoverContent:i}=fn(),[a,l]=t(!1),s=yn();let d=R.jsx(Ye,{});const c=n+4,u={width:`${c}px`,height:`${c}px`,overflow:"hidden",display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer"};o?.avatar&&(d="string"==typeof o.avatar?R.jsx(Qe,{style:{width:c,borderRadius:"999px"},src:o.avatar,alt:o.uid}):o.avatar);const p=R.jsxs("div",{className:be,children:[R.jsx("div",{style:u,children:d}),R.jsx("span",{children:o?.uid})]});return i?R.jsx(s.Provider,{value:{close:()=>l(!1),record:o},children:R.jsx(m,{open:a,onOpenChange:l,placement:"left",content:i,children:p})}):R.jsx(R.Fragment,{children:p})}function Mn(e){return R.jsx("div",{style:{...e.style},children:e.children})}Mn.displayName="AvatarPopoverContent",Mn.role=un;const{useToken:zn}=u;function Fn(e){const{token:n}=zn(),{layoutIcons:r,toolbarExtraItems:t}=fn(),o=n.Menu?.iconSize||16,[i,a]=r?.fullScreenIcons?.slice(0,2)||[R.jsx(qe,{}),R.jsx(Je,{})],l=R.jsx(jn,{icon:i,size:o}),s=R.jsx(jn,{icon:a,size:o});return R.jsxs("div",{className:ge,children:[e.showAvatar?R.jsxs("div",{className:ye,children:[R.jsx(Pn,{iconSize:o+4}),R.jsx(h,{"data-adminui-role":"desk-toolbar",orientation:"vertical"})]}):R.jsx(R.Fragment,{}),t,R.jsx("div",{className:ye,"data-adminui-role":"desk-toolbar",children:R.jsx(ie,{buttons:[R.jsx(p,{icon:s,type:"text"},"minimize"),R.jsx(p,{icon:l,type:"text"},"maximize")]})})]})}function En(e){const n=R.jsx("div",{className:ye,"data-adminui-role":"desk-toolbar",children:e.children});return e?R.jsx(R.Fragment,{children:n}):R.jsx(R.Fragment,{})}En.displayName="ToolbarExtraItems",En.role=hn;const{useToken:Ln}=u;function On(e){const{style:n}=e,{collapsed:r,setCollapsed:t,layoutIcons:o}=fn(),i={display:"flex",justifyContent:"flex-end",alignItems:"center",width:"100%",height:n?.width,backgroundColor:"transparent"},a={display:"flex",width:n?.width,height:"100%",cursor:"pointer",justifyContent:"center",alignItems:"center"},[l,s]=o?.collapsedIcons?.slice(0,2)||[R.jsx(Ke,{}),R.jsx(Ge,{})];return R.jsx("div",{style:i,children:R.jsx("div",{style:a,onClick:()=>{t(!r)},children:r?l:s})})}function Rn(e){const{style:n,offset:r=0,top:t}=e,{collapsed:o,setCollapsed:i,layoutIcons:a}=fn(),{token:l}=Ln();let s={right:"-14px"},d={backgroundColor:n?.backgroundColor,border:`solid 1px ${l.colorBorderSecondary}`};t&&(s={...s,right:"-12px",display:"initial"},d={...d,width:"24px",height:"24px",borderRadius:"12px",transform:`translateY(${r+10}px)`});const[c,u]=a?.collapsedIcons?.slice(0,2)||[R.jsx(Ke,{}),R.jsx(Ge,{})];return R.jsx("div",{className:we,style:s,onClick:()=>{i(!o)},children:R.jsx("div",{style:d,className:Se,children:o?c:u})})}function An(e){const{collapsed:n,setCollapsed:r,layoutIcons:t}=fn(),[o,i]=t?.mobileAsideIcons?.slice(0,2)||[R.jsx(Ue,{}),R.jsx(De,{})];return R.jsx("div",{className:Fe,children:R.jsx(p,{type:"text",style:{cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center",...e.style},icon:n?o:i,onClick:()=>{r(!n)}})})}function Hn(e){const{collapsed:n,setCollapsed:r,layoutIcons:t}=fn(),[o,i]=t?.mobileAsideIcons?.slice(0,2)||[R.jsx(Ue,{}),R.jsx(De,{})];return R.jsx("div",{className:Ee,children:R.jsx(p,{type:"text",style:{cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center",...e.style},icon:n?o:i,onClick:()=>{r(!n)}})})}const{Header:Wn}=f,{useToken:$n}=u;function Vn(e){const{layoutConfig:n}=q(),{token:r,theme:t}=$n(),o=w(),i=n.headerTransparent||n.headerBlur?se(r.colorBorderSecondary,.6):r.colorBorderSecondary,a=n.hideBorder?"0px":"1px solid "+i,l=n.flated&&"headMenu"==n.layoutType||1==t.id?"dark":"light",s=n.flated&&"headMenu"==n.layoutType?"dark":"light",d=n.flated&&"headMenu"==n.layoutType?r.colorPrimary:r.colorBgContainer,c={height:e.height+"px",lineHeight:e.height+"px"};let m=R.jsx(R.Fragment,{}),p={...c,borderBottom:a,backgroundColor:n.headerTransparent?"transparent":d};n.headerBlur&&(p={...p,backgroundColor:se(d,.6),transform:"translateZ(0)",backdropFilter:"blur(8px)"});let h={...c,fontSize:r.Menu?.iconSize,backgroundColor:"transparent",flex:"none"},y=[ce],b=R.jsx(R.Fragment,{});"headMenu"==n.layoutType?(m=R.jsx("div",{style:c}),p={...p,paddingInlineEnd:r.paddingXS+"px"},b=R.jsx("div",{className:xe,style:{width:n?.asideWidth+"px"},children:R.jsx(wn,{collapsed:!1,iconSize:r.Menu?.iconSize,hideTitle:!0})}),y.push(me)):(p={...p,paddingInline:r.paddingXS+"px"},y.push(ue));let _=R.jsx(Cn,{children:e.title}),v=R.jsx(An,{iconSize:n.compact?12:14});const j=[pe];n.flated||j.push(Ve);let k="dark"==l?[u.darkAlgorithm]:[u.defaultAlgorithm];return n.noneHeader?R.jsx(R.Fragment,{}):R.jsxs(R.Fragment,{children:[m,R.jsx(x,{theme:{algorithm:k},children:R.jsx(f,{className:y.join(" "),style:h,children:R.jsxs(Wn,{className:j.join(" "),style:p,children:[v,b,_,R.jsx(g,{onClick:e=>{o(e.key)},defaultSelectedKeys:e.selectedKeys,selectedKeys:e.selectedKeys,mode:"horizontal",theme:s,classNames:{root:he},items:e.menuData||[]}),R.jsx(Fn,{showAvatar:"rightTop"==n.avatarPosition})]})})})]})}const{Sider:Gn}=f,{useToken:Kn}=u,{useBreakpoint:Dn}=y;function Un(e){const n=i([]);n.current=e.openerKeys||[];const[r,o]=t(e.openerKeys),{layoutConfig:a}=q(),{asideWidth:l}=a,s=e.headerHeight,{collapsed:d,setCollapsed:c}=fn(),{token:u,theme:m}=Kn(),p=w(),h=Dn().xs?0:s,f=a.headerTransparent||a.headerBlur?se(u.colorBorderSecondary,.6):u.colorBorderSecondary,x=a.hideBorder||0==h&&d?"0px":"1px solid "+f,y=a.noneHeader&&"leftMenu"==a.layoutType,b=a.containerMargin||0,_="headMenu"==a.layoutType||0==h?e.headerHeight:0,v="headMenu"==a.layoutType||0==h?"calc(100% - "+e.headerHeight+"px)":"100%";let j={width:`${a.asideWidth}px`,height:`${v}`,insetBlockStart:_+"px",maxWidth:`${a.asideWidth}px`,minWidth:`${a.asideWidth}px`,borderRight:x,boxShadow:h>0?"none":u.boxShadowTertiary,position:"fixed",margin:y?b/2:"0px",transition:"width 0.3s, min-width 0.3s, max-width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"},k={overflow:"auto",flex:1};const S=u.Menu?.iconSize,C=1==m.id?"dark":"light",B=C;let I=0,T=R.jsx(R.Fragment,{});"leftMenu"==a.layoutType&&(I=a.headerHeight||0,T=a.largeBrand?R.jsx(Bn,{collapsed:d,iconSize:S}):R.jsx(Sn,{collapsed:d,iconSize:S,hideTitle:!0}));const N=u.colorBgContainer;j={...j,backgroundColor:a.asideTransparent&&h>0?"transparent":N},a.asideBlur&&(j={...j,backgroundColor:se(N,.6),transform:"translateZ(0)",backdropFilter:"blur(8px)"}),d&&(k={...k,overflow:"hidden"});let P=[_e],M=R.jsx(R.Fragment,{});switch(a.collapsedPosition){case"bottom":M=R.jsx(On,{iconSize:S,style:{backgroundColor:N,width:`${s}px`,borderRight:x}});break;case"center":M=R.jsx(Rn,{iconSize:12,flated:a.flated,offset:I,style:{backgroundColor:N}});break;case"top":M=a.noneHeader?R.jsx(R.Fragment,{}):R.jsx(Rn,{iconSize:12,top:!0,flated:a.flated,offset:I,style:{backgroundColor:N}})}let z=e.menuData||[];return a.asideMenuGroup&&z.forEach(e=>{e.children&&(e.type="group")}),R.jsxs(R.Fragment,{children:[R.jsx("div",{style:{width:d?s:l,flex:`0 0 ${d?s:l}px`,maxWidth:d?s:l,minWidth:d?s:l,transition:"background-color 0.3s, min-width 0.3s, max-width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"},className:ve}),R.jsxs(Gn,{width:l,className:P.join(" "),style:j,theme:B,collapsedWidth:h,collapsible:!0,trigger:null,breakpoint:"md",collapsed:d,onCollapse:c,children:[h>0?T:R.jsx(R.Fragment,{}),e.header,R.jsx("div",{style:k,children:R.jsx(g,{onClick:e=>{0==h&&c(!0),p(e.key)},onOpenChange:e=>{o(e)},style:{border:"0",background:"transparent",position:"relative",minHeight:"100%"},mode:a.asideMenuInline?"inline":"vertical",selectedKeys:e.selectedKeys,openKeys:d?void 0:r,defaultSelectedKeys:e.selectedKeys,defaultOpenKeys:n.current,theme:C,items:z})}),e.footer,"leftBottom"==a.avatarPosition?R.jsx(Nn,{collapsed:d,iconSize:S}):R.jsx(R.Fragment,{}),M]})]})}const Xn=e=>e.reduce((e,n)=>{const{children:r,...t}=n;return e[t.path]=t,r&&Object.assign(e,Xn(r)),e},{});function Yn(e,n){let r=[],t=[];return e.forEach(e=>{e.key==n[1]&&(t=e.children??[]);const o={...e,children:void 0};r.push(o)}),{rootMenuItems:r,childrenMenuItems:t}}const Jn=e=>{let n=[];if(!(null==e||e.length<=0))return e.forEach(e=>{let r=Qn(e);r.children=Jn(e.children),n.push(r)}),n},qn=(e,n)=>{if(e)return e.map(e=>{const r=Zn(e,n),t={...e,label:r};return e.children&&(t.children=qn(e.children,n)),t})},Zn=(e,n)=>((e,n,r,t)=>{if(t){const o="menu"+e.replaceAll("/",".");return t.formatMessage({id:o,defaultMessage:r||n})}return r||n})(e.path||"",e.name,e.label,n),Qn=e=>({key:e.path||e.name,label:e.label||e.name,icon:e.icon,extra:e.extra,title:e.label});function er(e){const n="/"===e?"/":e.replace(/\/+$/,"");if("/"===n)return["/"];const r=n.split("/").filter(Boolean),t=["/"];let o="";for(const e of r)o+=`/${e}`,t.push(o);return t}function nr(e){return er(e)}function rr(e){const n=e.length;if(0===n)return[[],[]];if(1===n)return[[e[0]],[]];const r=[e[1]],t=new Array(n-2);for(let r=1;r<n;r++)t[r-1]=e[r];return[r,t]}function tr(e,n){if(n)return!e.endsWith("/")&&e.length>1&&(e+="/"),n.map(n=>{const r=function(e,n){let r=n.path||n.name;r?.startsWith("/")&&(r=r.slice(1));r?.startsWith("./")&&(r=r.slice(2));let t=e+r,o={name:t,path:t,label:n.label,originalPath:t,extra:ar(n.extra),icon:ar(n.icon)};return o}(e,n);return n.children&&(r.children=tr(r.path,n.children)),r})}function or(e,n){if(n)return!e.endsWith("/")&&e.length>1&&(e+="/"),n.filter(e=>!!e.handle).map(n=>{const r=function(e,n){const{handle:r}=n;let t=n.path;t&&r.params&&(t=I(t,r.params));t?.startsWith("/")&&(t=t.slice(1));let o=e+t,i={...r,path:o,originalPath:n.path,extra:ar(r.extra),icon:ar(r.icon)};return i}(e,n);return n.children&&(r.children=or(r.path,n.children)),r})}function ir(e,n={}){if(!Object.keys(n).some(e=>null!=n[e]))return e.split("/:")[0];const r=e.split("/"),t=[];for(const e of r)if(e.startsWith(":")){const r=e.slice(1),o=n[r];if(null==o)break;t.push(encodeURIComponent(String(o)))}else t.push(e);return t.join("/")}const ar=n=>e.isValidElement(n)?n:"function"==typeof n||"object"==typeof n?e.createElement(n):null,{useToken:lr}=u;function sr(n){const{layoutConfig:r,themeSkin:o}=q(),i=v(),{token:l}=lr(),[s,d]=t(!1),c={backgroundColor:l.colorBgLayout};let u=r.headerHeight||56;r.compact&&(u-=4);const m=r.disabledLocale?n.menuData:qn(n.menuData,i),p=m&&m?.length>0?m[0].children:[],h=Xn(m||[]),f=Jn(p),x=S(),g=x.map(e=>e.pathname),y=x[x.length-1];let b=[],_=[],j=[],k=[];if("leftMenu"==r.layoutType?(k=f||[],_=g):(j=f||[],b=g),r.splitMenu){const[e,n]=rr(g),{rootMenuItems:t,childrenMenuItems:o}=Yn(f,g);"leftMenu"==r.layoutType?(k=t,j=o,_=e,b=n):(k=o,j=t,b=e,_=n)}const w=a(()=>r.asideBlur||r.headerBlur?se(l.colorBgContainer,.6):l.colorBgContainer,[r.asideBlur,r.headerBlur,l.colorBgContainer]),B=e.Children.toArray(n.children),I=B.find(n=>e.isValidElement(n)&&n.type.role===an),T=B.find(n=>e.isValidElement(n)&&n.type.role===ln),N=B.find(n=>e.isValidElement(n)&&n.type.role===cn),P=B.find(n=>e.isValidElement(n)&&n.type.role===un),M=B.find(n=>e.isValidElement(n)&&n.type.role===mn),z=B.find(n=>e.isValidElement(n)&&n.type.role===pn),F=B.find(n=>e.isValidElement(n)&&n.type.role===hn),E=rn,L=a(()=>({collapsed:s,headerHeight:u,layoutIcons:n.layoutIcons,avatarPopoverContent:P,brandPopoverContent:M,toolbarExtraItems:F,containerBackground:w,flattenMenuMap:h,setCollapsed:d}),[s,u,n.layoutIcons,h,w]),O=r.hideAsideMenuDataEmpty&&k.length<=0&&"headMenu"==r.layoutType,A=h[y.pathname].label||"";return document.title=A,R.jsxs(R.Fragment,{children:[R.jsx(E,{value:L,children:R.jsxs(oe,{...n,style:c,children:[R.jsx(oe.Aside,{children:O?R.jsx(R.Fragment,{}):R.jsx(Un,{headerHeight:u,header:I,footer:T,menuData:k,selectedKeys:_,openerKeys:_})}),R.jsx(oe.Header,{children:R.jsx(Vn,{height:u,menuData:j,selectedKeys:b,title:A})}),R.jsx(oe.Content,{children:R.jsx(C,{context:{title:A,footer:N}})}),R.jsx(oe.Background,{children:o?o.backgroundContent:R.jsx(R.Fragment,{})})]})}),z]})}const dr="#417ffb",cr=e=>T(e),ur=()=>cr("#000000"),mr=()=>cr("#FFFFFF"),pr=e=>{let{layoutConfig:n}=q();return n.asideBlur||n.headerBlur?se(e,.6):e},hr=e=>({backgroundColor:pr(e),transform:"translateZ(0)",backdropFilter:"blur(8px)"});function fr(e){const n=xn(),{layoutConfig:r}=q(),t=r.compact?"16px":"20px";let o={justifyContent:"flex-start",paddingInline:r.compact?"14px":"16px",marginInline:"4px",marginBlock:"4px",gap:(r.compact?6:8)+"px"};return n&&(o={...o,paddingInline:`calc(50% - calc(${t} / 2))`}),!e.icon&&n?R.jsx(R.Fragment,{}):R.jsxs("div",{className:ke,style:o,children:[R.jsx("div",{children:e.icon}),R.jsx("div",{style:{opacity:n?"0":"1"},children:e.children})]})}function xr(e){return R.jsx(R.Fragment,{children:e.children})}function gr(e){return R.jsx("div",{className:je,children:e.children})}function yr(e){return R.jsx("div",{className:je,children:e.children})}xr.displayName="AsideContentItems",fr.displayName="AsideContentItem",yr.displayName="AsideHeaderContent",yr.Items=xr,yr.Item=fr,gr.displayName="AsideFooterContent",gr.Items=xr,gr.Item=fr,gr.role=ln,yr.role=an,xr.role=sn,fr.role=dn;const br="adminui-default-config",_r=()=>{const e=v(),{layoutConfig:n}=q(),{f:r,t:t}=vr(n.disabledLocale?void 0:e);return{...e,f:r,t:t}},vr=e=>({f:n=>{const{id:r,defaultMessage:t}=n;return e?e.formatMessage({id:r,defaultMessage:t}):t||r.split(".").pop()},t:(n,r)=>e?e.formatMessage({id:n,defaultMessage:r}):r||n.split(".").pop()}),jr=e=>{const{brandInfo:n,userInfo:r,...t}=e;return t},kr=e=>{e||(e=br);const n=window.localStorage.getItem(e);try{if(n)return JSON.parse(n)}catch(e){console.error(e)}},wr=(e,n)=>{n||(n=br);const{brandInfo:r,userInfo:t,...o}=e,i=JSON.stringify(o);window.localStorage.setItem(n,i)},Sr=(e,n)=>{let r={...e};return n&&(r={...r,...n.layoutConfig},r.brandInfo&&n.logo&&(r={...r,brandInfo:{...r.brandInfo,logo:n.logo}})),r};function Cr(e){const n=S(),{flattenMenuMap:r}=fn(),{layoutConfig:t}=q(),o=[];n.forEach((e,n)=>{const t=r[e.pathname],i=t?t.label:"";o.push({path:e.pathname,title:i,icon:t.icon})});let i=[Le];return"first"==t.visibleBreadcrumbIcon?i.push(Oe):"all"==t.visibleBreadcrumbIcon&&i.push(Re),R.jsx(b,{classNames:{root:i.join(" ")},style:e.style,items:o,itemRender:Br})}function Br(e,n,r,t){return e?.path===r[r.length-1]?.path?R.jsxs("span",{className:"adminui-breadcrumb-link",children:[e.icon,e.title]}):R.jsxs(B,{className:"adminui-breadcrumb-link",to:"/"+t[t.length-1],children:[e.icon,e.title]})}const{useToken:Ir}=u,{useBreakpoint:Tr}=y;function Nr(e){const{mode:n="inline",stretch:r="inline"}=e,{token:t}=Ir(),{xs:o}=Tr(),{layoutConfig:i}=q(),{footer:a,title:l}=gn(),{containerMargin:s=0}=i;let d={},c={flex:"none"},u={borderRadius:i.compact?t.borderRadius:t.borderRadiusLG},m={display:"flex"};const p=e.hideBorder||i.hideBorder,f=e.hideBreadcrumb||i.hideBreadcrumb,x=e.hideTitle||i.hideTitle,g=i.noneHeader&&"leftMenu"==i.layoutType,y=i.headerTransparent||i.headerBlur?se(t.colorBorderSecondary,.6):t.colorBorderSecondary;"box"!=n&&"panel"!=n||(d={padding:t.padding},"panel"==n&&(u={...u,padding:t.padding,backgroundColor:t.colorBgContainer},p||(u={...u,border:`solid 1px ${y}`}))),"fill"!=r&&"auto"!=r||(c={...c,flex:"auto"},"fill"==r&&(u={...u,minHeight:"100%"})),g&&(d={...d,backgroundColor:t.colorBgContainer,borderRadius:s>0?t.padding:`${t.padding}px 0px 0px ${t.padding}px`,padding:"0px",margin:s},m={...m,padding:t.paddingXS,borderBlockEnd:`solid 1px ${t.colorBorderSecondary} `});const b=f?R.jsx(R.Fragment,{}):R.jsx(Cr,{}),_=x?R.jsx(R.Fragment,{}):R.jsx("h3",{children:e.title||l});if(i.containerBlur){const e=hr(t.colorBgContainer);g?(d={...d,...e},u={...u,backgroundColor:"transparent"}):u={...u,...e}}(e.transparent||i.containerTransparent)&&(u={...u,backgroundColor:"transparent"}),u={...u,...e.style};const v=g?R.jsx(Cn,{children:e.title||l}):R.jsx(R.Fragment,{}),j=g?R.jsx(An,{iconSize:i.compact?12:14}):R.jsx(R.Fragment,{}),k=g&&"top"==i.collapsedPosition&&!o?R.jsxs(R.Fragment,{children:[R.jsx(Hn,{iconSize:i.compact?12:14}),R.jsx(h,{orientation:"vertical"})]}):R.jsx(R.Fragment,{}),w=!(e.hideFooter||i.hideFooter)&&e.children&&a?R.jsx("footer",{children:a}):R.jsx(R.Fragment,{}),S=g?R.jsx(Fn,{showAvatar:"rightTop"==i.avatarPosition}):R.jsx(R.Fragment,{}),C=g&&o?R.jsx(R.Fragment,{}):R.jsxs("div",{className:We,children:[b,_]});return R.jsxs("div",{className:Ae,style:d,children:[R.jsxs("div",{className:He,style:m,children:[j,v,k,C,R.jsx("div",{className:$e,children:S})]}),R.jsx("main",{style:c,children:R.jsx("div",{style:u,children:e.children})}),w]})}const Pr=e=>R.jsx("div",{...e,children:e.children});function Mr({children:e}){return R.jsx(R.Fragment,{children:e})}Pr.displayName="ContentFooter",Pr.role=cn,Mr.displayName="SoltContent",Mr.role=pn;const zr="adminui-locale",Fr=ur(),Er=mr(),Lr=(e,n)=>{let r;return Object.entries(n).forEach(([n,t])=>{t.forEach(n=>{n.name==e&&(r=n)})}),r};function Or(e){const n=S(),{pathname:r}=n[0],i={...X,...e.layoutConfig,...e.disabledStorageConfig?{}:kr(r)};let l=e.themeSkins||[];const s=a(()=>(e=>{let n={system:[],custom:[]};return e.forEach(e=>{"system"==e.skinType?n.system.push(e):n.custom.push(e)}),n})(l),[l]),d=e.locale||localStorage.getItem(zr)||i.locale||"en-US",c=e.menuData?tr("/",[e.menuData]):[],[m,p]=t(()=>{if(i.skinName){const e=Lr(i.skinName,s);return Sr(i,e)}return i}),[h,f]=t(d),g=J,y=Y;let b=e.localeMessages||{};const v=a(()=>(e=>{let n=[];return Object.entries(e).forEach(([e,r])=>{n.push({name:r.name,locale:e,flag:r.flag})}),n})(b),[b]),k=e=>{localStorage.setItem(zr,e),f(e)};document.documentElement.style.setProperty("--pageload-bar-color",m.primaryColor),o(()=>{const e=window.document.documentElement;if(e.classList.remove("light","dark"),"system"===m.theme){const n=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";return void e.classList.add(n)}e.classList.add(m.theme)},[m.theme]);const w=a(()=>{if(m.skinName)return Lr(m.skinName,s)},[l,m.skinName]),C="system"==(B=m.theme)?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":B;var B;const I=n=>{p(n),e.disabledStorageConfig||wr(n,r)},N=a(()=>({layoutConfig:m,locale:h,languages:v,themeSkin:w,themeSkinMap:s}),[v,h,v,s,w,m]),P=a(()=>({setLayoutConfig:I,setLocale:k}),[]),M=b[h]||b["en-US"],z=["he","ar","fa","ku"].filter(e=>h.startsWith(e)).length?"rtl":"ltr";let F="dark"===C?[u.darkAlgorithm]:[u.defaultAlgorithm],E=m.menuIconSize||14;const L=m.menuIconSize?.1*(E-10)+10:10;m.compact&&(F.push(u.compactAlgorithm),E-=2);const O="dark"===C?Er:Fr,A="dark"===C?Fr:Er,H=T(m.primaryColor||dr);let W={darkSubMenuItemBg:"transparent",subMenuItemBg:"transparent",iconSize:E,fontSize:E,itemMarginInline:m.flated?0:4,iconMarginInlineEnd:L,activeBarHeight:m.compact?2:4,darkPopupBg:Fr[4]};if(m.menuItemSelectColor&&"default"!=m.menuItemSelectColor){const e="invert"==m.menuItemSelectColor;W={...W,itemActiveBg:e?O[0]:H[1],itemSelectedBg:e?O[3]:m.primaryColor,itemSelectedColor:e?A[2]:Er[2]}}const $={algorithm:F,token:{colorPrimary:m.primaryColor,borderRadius:m.flated?0:6},components:{Menu:W,Layout:{siderBg:"transparent",triggerBg:"transparent",lightSiderBg:"transparent",lightTriggerBg:"transparent"}}};return R.jsx(g.Provider,{value:N,children:R.jsx(y.Provider,{value:P,children:R.jsx(x,{theme:$,locale:M?.antdLocale,direction:z,modal:{mask:{blur:!1}},drawer:{mask:{blur:!1}},prefixCls:"adminui",children:R.jsx(_,{style:{height:"100%",width:"100%"},children:R.jsx(j,{locale:h,messages:M?.messages,children:R.jsx(sr,{menuData:c,layoutIcons:e.layoutIcons,children:e.children})})})})})})}Or.AsideHeader=yr,Or.AsideFooter=gr,Or.Footer=Pr,Or.AvatarPopoverContent=Mn,Or.BrandPopoverContent=In,Or.SoltContent=Mr,Or.HeaderToolbarExtra=En;var Rr={exports:{}};
21
21
  /* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
22
- * @license MIT */Rr.exports=function(){var e,n,r={version:"0.2.0"},t=r.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function o(e,n,r){return e<n?n:e>r?r:e}function i(e){return 100*(-1+e)}function a(e,n,r){var o;return(o="translate3d"===t.positionUsing?{transform:"translate3d("+i(e)+"%,0,0)"}:"translate"===t.positionUsing?{transform:"translate("+i(e)+"%,0)"}:{"margin-left":i(e)+"%"}).transition="all "+n+"ms "+r,o}r.configure=function(e){var n,r;for(n in e)void 0!==(r=e[n])&&e.hasOwnProperty(n)&&(t[n]=r);return this},r.status=null,r.set=function(e){var n=r.isStarted();e=o(e,t.minimum,1),r.status=1===e?null:e;var i=r.render(!n),d=i.querySelector(t.barSelector),c=t.speed,u=t.easing;return i.offsetWidth,l(function(n){""===t.positionUsing&&(t.positionUsing=r.getPositioningCSS()),s(d,a(e,c,u)),1===e?(s(i,{transition:"none",opacity:1}),i.offsetWidth,setTimeout(function(){s(i,{transition:"all "+c+"ms linear",opacity:0}),setTimeout(function(){r.remove(),n()},c)},c)):setTimeout(n,c)}),this},r.isStarted=function(){return"number"==typeof r.status},r.start=function(){r.status||r.set(0);var e=function(){setTimeout(function(){r.status&&(r.trickle(),e())},t.trickleSpeed)};return t.trickle&&e(),this},r.done=function(e){return e||r.status?r.inc(.3+.5*Math.random()).set(1):this},r.inc=function(e){var n=r.status;return n?("number"!=typeof e&&(e=(1-n)*o(Math.random()*n,.1,.95)),n=o(n+e,0,.994),r.set(n)):r.start()},r.trickle=function(){return r.inc(Math.random()*t.trickleRate)},e=0,n=0,r.promise=function(t){return t&&"resolved"!==t.state()?(0===n&&r.start(),e++,n++,t.always(function(){0===--n?(e=0,r.done()):r.set((e-n)/e)}),this):this},r.render=function(e){if(r.isRendered())return document.getElementById("nprogress");c(document.documentElement,"nprogress-busy");var n=document.createElement("div");n.id="nprogress",n.innerHTML=t.template;var o,a=n.querySelector(t.barSelector),l=e?"-100":i(r.status||0),d=document.querySelector(t.parent);return s(a,{transition:"all 0 linear",transform:"translate3d("+l+"%,0,0)"}),t.showSpinner||(o=n.querySelector(t.spinnerSelector))&&p(o),d!=document.body&&c(d,"nprogress-custom-parent"),d.appendChild(n),n},r.remove=function(){u(document.documentElement,"nprogress-busy"),u(document.querySelector(t.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&p(e)},r.isRendered=function(){return!!document.getElementById("nprogress")},r.getPositioningCSS=function(){var e=document.body.style,n="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return n+"Perspective"in e?"translate3d":n+"Transform"in e?"translate":"margin"};var l=function(){var e=[];function n(){var r=e.shift();r&&r(n)}return function(r){e.push(r),1==e.length&&n()}}(),s=function(){var e=["Webkit","O","Moz","ms"],n={};function r(e){return e.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(e,n){return n.toUpperCase()})}function t(n){var r=document.body.style;if(n in r)return n;for(var t,o=e.length,i=n.charAt(0).toUpperCase()+n.slice(1);o--;)if((t=e[o]+i)in r)return t;return n}function o(e){return e=r(e),n[e]||(n[e]=t(e))}function i(e,n,r){n=o(n),e.style[n]=r}return function(e,n){var r,t,o=arguments;if(2==o.length)for(r in n)void 0!==(t=n[r])&&n.hasOwnProperty(r)&&i(e,r,t);else i(e,o[1],o[2])}}();function d(e,n){return("string"==typeof e?e:m(e)).indexOf(" "+n+" ")>=0}function c(e,n){var r=m(e),t=r+n;d(r,n)||(e.className=t.substring(1))}function u(e,n){var r,t=m(e);d(e,n)&&(r=t.replace(" "+n+" "," "),e.className=r.substring(1,r.length-1))}function m(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function p(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return r}();var Ar=N(Rr.exports);function Hr(e){const n=l(e);return function(e){return R.jsx(s,{fallback:R.jsx(Wr,{}),children:R.jsx(n,{...e})})}}Ar.configure({showSpinner:!1});const Wr=()=>(o(()=>{const e=setTimeout(()=>{Ar.start()},200);return()=>{clearTimeout(e),Ar.done()}},[]),R.jsx("div",{style:{height:"auto"}})),$r=()=>(o(()=>(Ar.start(),()=>{Ar.done()}),[location.hostname]),R.jsx("div",{style:{height:"auto"}}));export{Or as AntdLayout,Nr as Container,dr as DEFAULT_PRIMARY_COLOR,ie as FullScreenButton,Ze as LazyAvatar,Qe as LazyImage,Hr as LazyPage,Wr as PageLoading,$r as RouteLoading,en as SpinImage,jn as ToolbarIcon,ir as buildRouteWithParams,Xn as flattenMenuData,Qn as getAntdMenuItem,vr as getAppIntl,jr as getBasicLayoutConfig,ur as getBlackColors,Zn as getMenuLabel,wr as getStorageConfig,mr as getWhiteColors,le as hexToRgb,se as hexToRgbaString,qn as localeMenuData,nr as matchPathToKeys,er as pathToKeys,Yn as separateMenuData,Sr as setSkinConfig,kr as setStorageConfig,rr as splitMenuKeys,tr as transformMenuData,or as transformRouteToMenuData,Jn as transformToAntdMenuData,_r as useAppIntl,_n as useAvatarPopover,pr as useBlurBackgroundColor,hr as useBlurStyles,vn as useBrandPopover,Z as useConfigAction,q as useConfigState,gn as useContainerOutlet,nn as useLazyImages,xn as useMainCollapsed,Q as useTheme};
22
+ * @license MIT */Rr.exports=function(){var e,n,r={version:"0.2.0"},t=r.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function o(e,n,r){return e<n?n:e>r?r:e}function i(e){return 100*(-1+e)}function a(e,n,r){var o;return(o="translate3d"===t.positionUsing?{transform:"translate3d("+i(e)+"%,0,0)"}:"translate"===t.positionUsing?{transform:"translate("+i(e)+"%,0)"}:{"margin-left":i(e)+"%"}).transition="all "+n+"ms "+r,o}r.configure=function(e){var n,r;for(n in e)void 0!==(r=e[n])&&e.hasOwnProperty(n)&&(t[n]=r);return this},r.status=null,r.set=function(e){var n=r.isStarted();e=o(e,t.minimum,1),r.status=1===e?null:e;var i=r.render(!n),d=i.querySelector(t.barSelector),c=t.speed,u=t.easing;return i.offsetWidth,l(function(n){""===t.positionUsing&&(t.positionUsing=r.getPositioningCSS()),s(d,a(e,c,u)),1===e?(s(i,{transition:"none",opacity:1}),i.offsetWidth,setTimeout(function(){s(i,{transition:"all "+c+"ms linear",opacity:0}),setTimeout(function(){r.remove(),n()},c)},c)):setTimeout(n,c)}),this},r.isStarted=function(){return"number"==typeof r.status},r.start=function(){r.status||r.set(0);var e=function(){setTimeout(function(){r.status&&(r.trickle(),e())},t.trickleSpeed)};return t.trickle&&e(),this},r.done=function(e){return e||r.status?r.inc(.3+.5*Math.random()).set(1):this},r.inc=function(e){var n=r.status;return n?("number"!=typeof e&&(e=(1-n)*o(Math.random()*n,.1,.95)),n=o(n+e,0,.994),r.set(n)):r.start()},r.trickle=function(){return r.inc(Math.random()*t.trickleRate)},e=0,n=0,r.promise=function(t){return t&&"resolved"!==t.state()?(0===n&&r.start(),e++,n++,t.always(function(){0===--n?(e=0,r.done()):r.set((e-n)/e)}),this):this},r.render=function(e){if(r.isRendered())return document.getElementById("nprogress");c(document.documentElement,"nprogress-busy");var n=document.createElement("div");n.id="nprogress",n.innerHTML=t.template;var o,a=n.querySelector(t.barSelector),l=e?"-100":i(r.status||0),d=document.querySelector(t.parent);return s(a,{transition:"all 0 linear",transform:"translate3d("+l+"%,0,0)"}),t.showSpinner||(o=n.querySelector(t.spinnerSelector))&&p(o),d!=document.body&&c(d,"nprogress-custom-parent"),d.appendChild(n),n},r.remove=function(){u(document.documentElement,"nprogress-busy"),u(document.querySelector(t.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&p(e)},r.isRendered=function(){return!!document.getElementById("nprogress")},r.getPositioningCSS=function(){var e=document.body.style,n="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return n+"Perspective"in e?"translate3d":n+"Transform"in e?"translate":"margin"};var l=function(){var e=[];function n(){var r=e.shift();r&&r(n)}return function(r){e.push(r),1==e.length&&n()}}(),s=function(){var e=["Webkit","O","Moz","ms"],n={};function r(e){return e.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(e,n){return n.toUpperCase()})}function t(n){var r=document.body.style;if(n in r)return n;for(var t,o=e.length,i=n.charAt(0).toUpperCase()+n.slice(1);o--;)if((t=e[o]+i)in r)return t;return n}function o(e){return e=r(e),n[e]||(n[e]=t(e))}function i(e,n,r){n=o(n),e.style[n]=r}return function(e,n){var r,t,o=arguments;if(2==o.length)for(r in n)void 0!==(t=n[r])&&n.hasOwnProperty(r)&&i(e,r,t);else i(e,o[1],o[2])}}();function d(e,n){return("string"==typeof e?e:m(e)).indexOf(" "+n+" ")>=0}function c(e,n){var r=m(e),t=r+n;d(r,n)||(e.className=t.substring(1))}function u(e,n){var r,t=m(e);d(e,n)&&(r=t.replace(" "+n+" "," "),e.className=r.substring(1,r.length-1))}function m(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function p(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return r}();var Ar=N(Rr.exports);function Hr(e){const n=l(e);return function(e){return R.jsx(s,{fallback:R.jsx(Wr,{}),children:R.jsx(n,{...e})})}}Ar.configure({showSpinner:!1});const Wr=()=>(o(()=>{const e=setTimeout(()=>{Ar.start()},200);return()=>{clearTimeout(e),Ar.done()}},[]),R.jsx("div",{style:{height:"auto"}})),$r=()=>(o(()=>(Ar.start(),()=>{Ar.done()}),[location.hostname]),R.jsx("div",{style:{height:"auto"}}));export{Or as AntdLayout,Nr as Container,dr as DEFAULT_PRIMARY_COLOR,ie as FullScreenButton,Ze as LazyAvatar,Qe as LazyImage,Hr as LazyPage,Wr as PageLoading,$r as RouteLoading,en as SpinImage,jn as ToolbarIcon,ir as buildRouteWithParams,Xn as flattenMenuData,Qn as getAntdMenuItem,vr as getAppIntl,jr as getBasicLayoutConfig,ur as getBlackColors,Zn as getMenuLabel,kr as getStorageConfig,mr as getWhiteColors,le as hexToRgb,se as hexToRgbaString,qn as localeMenuData,nr as matchPathToKeys,er as pathToKeys,Yn as separateMenuData,Sr as setSkinConfig,wr as setStorageConfig,rr as splitMenuKeys,tr as transformMenuData,or as transformRouteToMenuData,Jn as transformToAntdMenuData,_r as useAppIntl,_n as useAvatarPopover,pr as useBlurBackgroundColor,hr as useBlurStyles,vn as useBrandPopover,Z as useConfigAction,q as useConfigState,gn as useContainerOutlet,nn as useLazyImages,xn as useMainCollapsed,Q as useTheme};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminui-dev/antd-layout",
3
- "version": "1.4.8",
3
+ "version": "1.5.0",
4
4
  "description": "this project name is @adminui-dev/antd-layout",
5
5
  "keywords": [
6
6
  "layut",
@@ -45,7 +45,7 @@
45
45
  "prepublishOnly": "npm run build"
46
46
  },
47
47
  "dependencies": {
48
- "@adminui-dev/layout": "1.2.5",
48
+ "@adminui-dev/layout": "1.2.6",
49
49
  "tslib": "^2.6.0"
50
50
  },
51
51
  "devDependencies": {