@adminui-dev/antd-layout 1.2.0 → 1.2.2
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 +3 -3
- package/dist/index.esm.js +3 -3
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var e=require("react"),n=require("antd"),r=require("react-intl"),t=require("react-router
|
|
1
|
+
"use strict";var e=require("react"),n=require("antd"),r=require("react-intl"),t=require("react-router"),o=require("react-router-dom"),i=require("@ant-design/colors");"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function a(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var l,s={exports:{}},d={};var c,u={};
|
|
2
2
|
/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react-jsx-runtime.development.js
|
|
@@ -7,6 +7,6 @@
|
|
|
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?s.exports=function(){if(l)return d;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 d.Fragment=n,d.jsx=r,d.jsxs=r,d}():s.exports=(c||(c=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 x:return"Fragment";case g:return"Profiler";case f:return"StrictMode";case _:return"Suspense";case j:return"SuspenseList";case C: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 h:return"Portal";case v:return e.displayName||"Context";case y: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 w: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===x)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 z[e]||(z[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,m=r.children;if(void 0!==m)if(i)if(M(m)){for(i=0;i<m.length;i++)s(m[i]);Object.freeze&&Object.freeze(m)}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(m);if(I.call(r,"key")){m=n(e);var h=Object.keys(r).filter(function(e){return"key"!==e});i=0<h.length?"{key: someKey, "+h.join(": ..., ")+": ...}":"{key: someKey}",N[m+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,m,h,m),N[m+i]=!0)}if(m=null,void 0!==o&&(t(o),m=""+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),m=""+r.key),"key"in r)for(var x in o={},r)"key"!==x&&(o[x]=r[x]);else o=r;return m&&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:p,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,m,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===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===p}var c,m=e,p=Symbol.for("react.transitional.element"),h=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),v=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),C=Symbol.for("react.activity"),S=Symbol.for("react.client.reference"),B=m.__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},z={},T=(m={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(m,i)(),L=P(o(i)),N={};u.Fragment=x,u.jsx=function(e,n,r){var t=1e4>B.recentlyCreatedOwnerStacks++;return l(e,n,r,!1,t?Error("react-stack-top-frame"):T,t?P(o(e)):L)},u.jsxs=function(e,n,r){var t=1e4>B.recentlyCreatedOwnerStacks++;return l(e,n,r,!0,t?Error("react-stack-top-frame"):T,t?P(o(e)):L)}}()),u);var m=s.exports;function p(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))}}p("@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}\r\n");const h=Symbol("LayoutAside"),x=Symbol("LayoutContent"),f=Symbol("LayoutHeader"),g=Symbol("LayoutBackground"),y={headerHeight:50,asideWidth:260,layoutType:"leftMenu",collapsedPosition:"bottom",avatarPosition:"rightTop",theme:"system",visibleBreadcrumbIcon:"none",primaryColor:"#417ffb"},v=e.createContext({setLayoutConfig:()=>{},setLocale:()=>{}}),b=e.createContext({locale:"en-US",languages:[],layoutConfig:{},themeSkinMap:{tidy:[],rich:[]}}),_=()=>e.useContext(b);function j(e){return m.jsx("div",{className:"Layout-module_rootBackground__j3UVG",children:m.jsx(m.Fragment,{children:e.children})})}function w(e){return m.jsx(m.Fragment,{children:e.children})}function k(e){return m.jsx(m.Fragment,{children:e.children})}function C(e){return m.jsx(m.Fragment,{children:e.children})}j.displayName="LayoutBackground",j.role=g,w.displayName="LayoutContent",w.role=x,k.displayName="LayoutAside",k.role=h,C.displayName="LayoutHeader",C.role=f;function S(n){let r=null,t=null,o=null,i=null;return e.Children.forEach(n.children,e=>{const n=e.type.role;n===f?r=e:n===x?t=e:n===h?o=e:n===g&&(i=e)}),m.jsx(m.Fragment,{children:m.jsxs("div",{ref:n.ref,className:"layout-module_rootBox__Y8bEx",style:{...n.style},children:[i,m.jsxs("div",{className:"layout-module_rootLayout__TePvr",children:[o,m.jsxs("div",{className:"layout-module_mainLayout__a8Tb9",children:[r,t]})]})]})})}function B(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 m.jsx(m.Fragment,{});const[s,d]=n.buttons,c=t?s:d;return e.cloneElement(c,{onClick:e=>{console.log(e),l()}})}p("@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}\r\n"),S.Aside=k,S.Content=w,S.Header=C,S.Background=j;const I=(e,n)=>{const{r:r,g:t,b:o}=(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}))(e);return`rgba(${r}, ${t}, ${o}, ${n})`};function M(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))}}M("@layer adminui-layout { \r\n :root{\r\n --pageload-bar-color:#222222;\r\n } \r\n #index_root__t3vw8 {\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\r\n/** Menu icon automatic compact mode */\r\n.index_adminui-menu-icon__sDVLQ {\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");var P="index-module_headerLayout__rv59v",z="index-module_headerLayoutSticky__6uFCj",T="index-module_headerLayoutFixed__t5Hmo",L="index-module_headerLayoutBox__h0fIt",N="index-module_headerMenu__WHmJN",F="index-module_headerTitle__jGbCX",E="index-module_headerBrandBox__U2J16",A="index-module_layoutBlur__GpCPx",W="index-module_toolbarPanel__Pp8PS",O="index-module_toolbarItem__RkaXd",R="index-module_toolbarAvatarItem__p6TXY",H="index-module_siderBaseStyle__zg1FM",$="index-module_siderMask__cCjMh",q="index-module_siderContentBox__dGgRe",D="index-module_siderContentItem__kl3cR",K="index-module_collapsedTrack__LoJ3V",G="index-module_collapsedTrackButton__m33XS",V="index-module_brandPanel__2GRgq",U="index-module_labelBox__dX8fY",X="index-module_brandNodeBox__W-iM6",Y="index-module_brandMobilePanel__m1Diu",J="index-module_largeBrandPanel__pLn--",Z="index-module_title__SbfFY",Q="index-module_largeBrandCollPanel__nsGKB",ee="index-module_avatarPanel__fFvCS",ne="index-module_collapsedMobile__Yu8F4",re="index-module_breadcrumbFirstIcon__9zEmW",te="index-module_breadcrumbAllIcon__HYkKa",oe="index-module_breadcrumbItem__trq8b",ie="index-module_containerBox__pv0qs",ae="index-module_round__WoVxM";function le(e){const{size:n=16}=e;return m.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:m.jsx("path",{d:"m15 18-6-6 6-6"})})}function se(e){const{size:n=16}=e;return m.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:m.jsx("path",{d:"m9 18 6-6-6-6"})})}function de(e){const{size:n=16}=e;return m.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:[m.jsx("path",{d:"M21 5H11"}),m.jsx("path",{d:"M21 12H11"}),m.jsx("path",{d:"M21 19H11"}),m.jsx("path",{d:"m7 8-4 4 4 4"})]})}function ce(e){const{size:n=16}=e;return m.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:[m.jsx("path",{d:"M21 5H11"}),m.jsx("path",{d:"M21 12H11"}),m.jsx("path",{d:"M21 19H11"}),m.jsx("path",{d:"m3 8 4 4-4 4"})]})}function ue(e){const{size:n=16}=e;return m.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:[m.jsx("path",{d:"m7 15 5 5 5-5"}),m.jsx("path",{d:"m7 9 5-5 5 5"})]})}function me(e){const{size:n=16}=e;return m.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:[m.jsx("path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"}),m.jsx("circle",{cx:"12",cy:"7",r:"4"})]})}function pe(e){const{size:n=16}=e;return m.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:[m.jsx("path",{d:"M8 3v3a2 2 0 0 1-2 2H3"}),m.jsx("path",{d:"M21 8h-3a2 2 0 0 1-2-2V3"}),m.jsx("path",{d:"M3 16h3a2 2 0 0 1 2 2v3"}),m.jsx("path",{d:"M16 21v-3a2 2 0 0 1 2-2h3"})]})}function he(e){const{size:n=16}=e;return m.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:[m.jsx("path",{d:"M8 3H5a2 2 0 0 0-2 2v3"}),m.jsx("path",{d:"M21 8V5a2 2 0 0 0-2-2h-3"}),m.jsx("path",{d:"M3 16v3a2 2 0 0 0 2 2h3"}),m.jsx("path",{d:"M16 21h3a2 2 0 0 0 2-2v-3"})]})}function xe(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=m.jsx("img",{...i});return n.hasChild?l:m.jsx("div",{style:a,children:l})}M('@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\r\n.index-module_breadcrumbFirstIcon__9zEmW li:first-of-type span[role="img"]{\r\n display: inline-flex;\r\n}\r\n.index-module_breadcrumbAllIcon__HYkKa li span[role="img"]{\r\n display: inline-flex;\r\n}\r\n.index-module_breadcrumbItem__trq8b span[role="img"]{\r\n display: none;\r\n margin-right: var(--adminui-margin-xxs);\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.index-module_containerBox__pv0qs>h3 {\r\n box-sizing: border-box;\r\n line-height: var(--adminui-line-height);\r\n margin:0 0 var(--adminui-margin);\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\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_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 fe=e.createContext({collapsed:!1,headerHeight:50,flattenMenuMap:{},setCollapsed:()=>{}}),ge=e.createContext({close:()=>{}}),ye=e.createContext({close:()=>{}}),ve=Symbol("AsideFooter"),be=Symbol("AsideHeader"),_e=Symbol("AsideContentItems"),je=Symbol("AsideContentItem"),we=Symbol("ContentFooter"),ke=Symbol("AvatarPopoverContent"),Ce=Symbol("BrandPopoverContent"),Se=Symbol("SoltContent"),Be=Symbol("ToolbarExtraItems"),Ie=()=>e.useContext(fe),Me=()=>Ie().collapsed,Pe=()=>o.useOutletContext(),ze=()=>ge,Te=()=>ye;function Le(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:Ne}=n.theme;function Fe(r){const{collapsed:t,iconSize:o,hideTitle:i}=r,{layoutConfig:a}=_(),{token:l}=Ne(),{layoutIcons:s,brandPopoverContent:d}=Ie(),[c,u]=e.useState(!1),p=Te(),h=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(${h} / 2))`}:g={...g,overflow:"hidden"};let v=m.jsx(m.Fragment,{});y?.logo&&(v="string"==typeof y.logo?m.jsx(xe,{style:{width:h,minWidth:h},src:y.logo,alt:y.name}):m.jsx("div",{className:X,style:{width:h,minWidth:h},children:y.logo}));const b=s?.itemMoreIcon||m.jsx(ue,{}),j=m.jsx(n.Button,{type:"text",style:x,iconPlacement:"end",icon:d?m.jsx(Le,{icon:b,size:o||14,style:{opacity:t?"0":"1"}}):void 0,children:m.jsxs("div",{style:g,children:[v,m.jsxs("div",{className:U,style:{opacity:t?"0":"1"},children:[m.jsx("h4",{children:y?.name}),i?void 0:m.jsx("span",{style:{color:l.colorTextSecondary},children:y?.title})]})]})});return m.jsx("div",{className:V,style:f,children:d?m.jsx(p.Provider,{value:{close:()=>{u(!1)},record:y},children:m.jsx(n.Popover,{open:c,onOpenChange:u,placement:"rightTop",content:d,children:j})}):j})}function Ee(r){const{collapsed:t,iconSize:o,hideTitle:i}=r,{layoutConfig:a}=_(),{layoutIcons:l,brandPopoverContent:s}=Ie(),{token:d}=Ne(),[c,u]=e.useState(!1),p=Te(),h=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(${h} / 2))`}:g={...g,overflow:"hidden"};let v=m.jsx(m.Fragment,{});y?.logo&&(v="string"==typeof y.logo?m.jsx(xe,{style:{width:h,minWidth:h},src:y.logo,alt:y.name}):m.jsx("div",{className:X,style:{width:h,minWidth:h},children:y.logo}));const b=l?.itemMoreIcon||m.jsx(ue,{}),j=s?{}:{href:y?.url},w=m.jsxs("a",{...j,style:x,children:[m.jsxs("div",{style:g,children:[v,m.jsxs("div",{className:U,style:{opacity:t?"0":"1"},children:[m.jsx("h4",{style:{width:"90%"},children:y?.name}),i?void 0:m.jsx("span",{style:{color:d.colorTextSecondary,width:"90%"},children:y?.title})]})]}),s?m.jsx("div",{style:{opacity:t?"0":"1",display:"flex",placeItems:"center"},children:m.jsx(Le,{icon:b,size:o||14})}):m.jsx(m.Fragment,{})]});return m.jsx("div",{className:V,style:f,children:s?m.jsx(p.Provider,{value:{close:()=>{u(!1)},record:y},children:m.jsx(n.Popover,{open:c,onOpenChange:u,placement:"rightTop",content:s,children:w})}):w})}function Ae(r){const{layoutConfig:t}=_(),{brandPopoverContent:o}=Ie(),[i,a]=e.useState(!1),l=Te(),s=t.compact?"16px":"20px",{brandInfo:d}=t;let c=m.jsx(m.Fragment,{});d?.logo&&(c="string"==typeof d.logo?m.jsx(xe,{style:{width:s},src:d.logo,alt:d.name}):m.jsx("div",{className:X,style:{width:s},children:d.logo}));let u=o?m.jsx(l.Provider,{value:{close:()=>{a(!1)},record:d},children:m.jsx(n.Popover,{open:i,onOpenChange:a,content:o,placement:"rightTop",children:m.jsx("a",{children:c})})}):m.jsx("a",{href:d?.url,children:c});return m.jsxs("div",{className:Y,style:r.style,children:[u,m.jsx("div",{className:F,children:r.children})]})}function We(r){const{collapsed:t}=r,{brandPopoverContent:o}=Ie(),{layoutConfig:i}=_(),[a,l]=e.useState(!1),s=Te(),d=t?i.compact?"16px":"20px":i.compact?"56px":"64px",{brandInfo:c}=i,u={opacity:t?"0":"1",height:t?"0px":"auto"};let p=m.jsx(m.Fragment,{});if(!c)return m.jsx(m.Fragment,{});let h=[J];t&&h.push(Q),c?.logo&&(p="string"==typeof c.logo?m.jsx(xe,{style:{width:d},src:c.logo,alt:c.name}):m.jsx("div",{className:X,style:{width:d},children:c.logo}));let x=o?m.jsx(s.Provider,{value:{close:()=>{l(!1)},record:c},children:m.jsx(n.Popover,{open:a,onOpenChange:l,content:o,placement:"rightTop",children:m.jsx("a",{children:p})})}):m.jsx("a",{href:c?.url,children:p});return m.jsxs("div",{className:h.join(" "),children:[x,m.jsxs("div",{style:u,children:[m.jsx("span",{children:c?.name}),c.title?m.jsx("span",{className:Z,children:c?.title}):m.jsx(m.Fragment,{})]})]})}function Oe(e){return m.jsx("div",{style:{...e.style},children:e.children})}Oe.displayName="BrandPopoverContent",Oe.role=Ce;const{useToken:Re}=n.theme;function He(r){const{collapsed:t,iconSize:o}=r,{layoutConfig:i}=_(),{layoutIcons:a,avatarPopoverContent:l}=Ie(),[s,d]=e.useState(!1),c=ze(),{token:u}=Re(),p=i.compact?"20px":"24px";let h={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&&(h={...h,paddingInline:u.padding,margin:"0px",height:"100%"},x={...x,padding:"0px"});const{userInfo:g}=i;t?h={...h,paddingInline:`calc(50% - calc(${p} / 2))`}:f={...f,overflow:"hidden"};let y=m.jsx(m.Fragment,{});g?.avatar&&(y="string"==typeof g.avatar?m.jsx(xe,{style:{width:p,borderRadius:"999px"},src:g.avatar,alt:g.uid}):g.avatar);const v=a?.itemMoreIcon||m.jsx(ue,{}),b=m.jsx("div",{className:ee,style:x,children:m.jsxs("a",{style:h,children:[m.jsxs("div",{style:f,children:[y,m.jsxs("div",{className:U,style:{opacity:t?"0":"1"},children:[m.jsx("h4",{children:g?.uid}),g?.title?void 0:m.jsx("span",{style:{color:u.colorTextSecondary},children:g?.title})]})]}),l?m.jsx("div",{style:{opacity:t?"0":"1",display:"flex",placeItems:"center"},children:m.jsx(Le,{icon:v,size:o||14})}):m.jsx(m.Fragment,{})]})});return l?m.jsx(c.Provider,{value:{close:()=>d(!1),record:g},children:m.jsx(n.Popover,{open:s,onOpenChange:d,placement:"right",content:l,children:b})}):b}function $e(r){const{iconSize:t=14}=r,{layoutConfig:o}=_(),{userInfo:i}=o,{avatarPopoverContent:a}=Ie(),[l,s]=e.useState(!1),d=ze();let c=m.jsx(me,{});const u=t+4,p={width:`${u}px`,height:`${u}px`,overflow:"hidden",display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer"};i?.avatar&&(c="string"==typeof i.avatar?m.jsx(xe,{style:{width:u,borderRadius:"999px"},src:i.avatar,alt:i.uid}):i.avatar);const h=m.jsxs("div",{className:R,children:[m.jsx("div",{style:p,children:c}),m.jsx("span",{children:i?.uid})]});return a?m.jsx(d.Provider,{value:{close:()=>s(!1),record:i},children:m.jsx(n.Popover,{open:l,onOpenChange:s,placement:"left",content:a,children:h})}):m.jsx(m.Fragment,{children:h})}function qe(e){return m.jsx("div",{style:{...e.style},children:e.children})}qe.displayName="AvatarPopoverContent",qe.role=ke;const{useToken:De}=n.theme;function Ke(e){const{token:r}=De(),{layoutIcons:t,toolbarExtraItems:o}=Ie(),i=r.Menu?.iconSize||16,[a,l]=t?.fullScreenIcons?.slice(0,2)||[m.jsx(he,{}),m.jsx(pe,{})],s=m.jsx(Le,{icon:a,size:i}),d=m.jsx(Le,{icon:l,size:i});return m.jsxs("div",{className:W,children:[e.showAvatar?m.jsxs("div",{className:O,children:[m.jsx($e,{iconSize:i+4}),m.jsx(n.Divider,{"data-adminui-role":"desk-toolbar",orientation:"vertical"})]}):m.jsx(m.Fragment,{}),o,m.jsx("div",{className:O,"data-adminui-role":"desk-toolbar",children:m.jsx(B,{buttons:[m.jsx(n.Button,{icon:d,type:"text"},"minimize"),m.jsx(n.Button,{icon:s,type:"text"},"maximize")]})})]})}function Ge(e){const n=m.jsx("div",{className:O,"data-adminui-role":"desk-toolbar",children:e.children});return e?m.jsx(m.Fragment,{children:n}):m.jsx(m.Fragment,{})}Ge.displayName="ToolbarExtraItems",Ge.role=Be;const{useToken:Ve}=n.theme;function Ue(e){const{style:n}=e,{collapsed:r,setCollapsed:t,layoutIcons:o}=Ie(),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)||[m.jsx(se,{}),m.jsx(le,{})];return m.jsx("div",{style:i,children:m.jsx("div",{style:a,onClick:()=>{t(!r)},children:r?l:s})})}function Xe(e){const{style:n,offset:r=0,top:t}=e,{collapsed:o,setCollapsed:i,layoutIcons:a}=Ie(),{token:l}=Ve();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)||[m.jsx(le,{}),m.jsx(se,{})];return m.jsx("div",{className:K,style:s,onClick:()=>{i(!o)},children:m.jsx("div",{style:d,className:G,children:o?c:u})})}function Ye(e){const{collapsed:r,setCollapsed:t,layoutIcons:o}=Ie(),[i,a]=o?.mobileAsideIcons?.slice(0,2)||[m.jsx(ce,{}),m.jsx(de,{})];return m.jsx("div",{className:ne,children:m.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:Je}=n.Layout,{useToken:Ze}=n.theme;function Qe(e){const{layoutConfig:r}=_(),{token:t,theme:i}=Ze(),a=o.useNavigate(),l=r.headerTransparent||r.headerBlur?I(t.colorBorderSecondary,.6):t.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?t.colorPrimary:t.colorBgContainer,p={height:e.height+"px",lineHeight:e.height+"px"};let h=m.jsx(m.Fragment,{}),x={...p,borderBottom:s,backgroundColor:r.headerTransparent?"transparent":u};r.headerBlur&&(x={...x,backgroundColor:I(u,.6),transform:"translateZ(0)",backdropFilter:"blur(8px)"});let f={...p,fontSize:t.Menu?.iconSize,backgroundColor:"transparent",flex:"none"},g=[P],y=m.jsx(m.Fragment,{});"headMenu"==r.layoutType?(h=m.jsx("div",{style:p}),x={...x,paddingInlineEnd:t.paddingXS+"px"},y=m.jsx("div",{className:E,style:{width:r?.asideWidth+"px"},children:m.jsx(Fe,{collapsed:!1,iconSize:t.Menu?.iconSize,hideTitle:!0})}),g.push(T)):(x={...x,paddingInline:t.paddingXS+"px"},g.push(z));let v=m.jsx(Ae,{children:e.title}),b=m.jsx(Ye,{iconSize:r.compact?12:14});const j=[L];r.flated||j.push(ae);let w="dark"==d?[n.theme.darkAlgorithm]:[n.theme.defaultAlgorithm];return m.jsxs(m.Fragment,{children:[h,m.jsx(n.ConfigProvider,{theme:{algorithm:w},children:m.jsx(n.Layout,{className:g.join(" "),style:f,children:m.jsxs(Je,{className:j.join(" "),style:x,children:[b,y,v,m.jsx(n.Menu,{onClick:e=>{a(e.key)},defaultSelectedKeys:e.selectedKeys,selectedKeys:e.selectedKeys,mode:"horizontal",theme:c,classNames:{root:N},items:e.menuData||[]}),m.jsx(Ke,{showAvatar:"rightTop"==r.avatarPosition})]})})})]})}const{Sider:en}=n.Layout,{useToken:nn}=n.theme,{useBreakpoint:rn}=n.Grid;function tn(r){const t=e.useRef([]);t.current=r.openerKeys||[];const[i,a]=e.useState(r.openerKeys),{layoutConfig:l}=_(),{asideWidth:s}=l,d=r.headerHeight,{collapsed:c,setCollapsed:u}=Ie(),{token:p,theme:h}=nn(),x=o.useNavigate(),f=rn().xs?0:d,g=l.headerTransparent||l.headerBlur?I(p.colorBorderSecondary,.6):p.colorBorderSecondary,y=l.hideBorder||0==f&&c?"0px":"1px solid "+g,v="headMenu"==l.layoutType||0==f?r.headerHeight:0,b="headMenu"==l.layoutType||0==f?"calc(100% - "+r.headerHeight+"px)":"100%";let j={width:`${l.asideWidth}px`,height:`${b}`,insetBlockStart:v+"px",maxWidth:`${l.asideWidth}px`,minWidth:`${l.asideWidth}px`,borderRight:y,position:"fixed",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 k=p.Menu?.iconSize,C=1==h.id?"dark":"light",S=C;let B=0,M=m.jsx(m.Fragment,{});"leftMenu"==l.layoutType&&(B=l.headerHeight||0,M=l.largeBrand?m.jsx(We,{collapsed:c,iconSize:k}):m.jsx(Ee,{collapsed:c,iconSize:k,hideTitle:!0}));const P=l.asideTransparent?"transparent":l.asideBlur?I(p.colorBgContainer,.6):p.colorBgContainer;j={...j,backgroundColor:P},l.asideBlur&&(j={...j,transform:"translateZ(0)",backdropFilter:"blur(8px)"}),c&&(w={...w,overflow:"hidden"});let z=[H];z.push(A);let T=m.jsx(m.Fragment,{});switch(l.collapsedPosition){case"bottom":T=m.jsx(Ue,{iconSize:k,style:{backgroundColor:P,width:`${d}px`,borderRight:y}});break;case"center":case"top":T=m.jsx(Xe,{iconSize:12,top:"top"==l.collapsedPosition,flated:l.flated,offset:B,style:{backgroundColor:P}})}let L=r.menuData||[];return l.asideMenuGroup&&L.forEach(e=>{e.children&&(e.type="group")}),m.jsxs(m.Fragment,{children:[m.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:$}),m.jsxs(en,{width:s,className:z.join(" "),style:j,theme:S,collapsedWidth:f,collapsible:!0,trigger:null,breakpoint:"md",collapsed:c,onCollapse:u,children:[f>0?M:m.jsx(m.Fragment,{}),r.header,m.jsx("div",{style:w,children:m.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:t.current,theme:C,items:L})}),r.footer,"leftBottom"==l.avatarPosition?m.jsx(He,{collapsed:c,iconSize:k}):m.jsx(m.Fragment,{}),T]})]})}const on=e=>e.reduce((e,n)=>{const{children:r,...t}=n;return e[t.path]=t,r&&Object.assign(e,on(r)),e},{});function an(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 ln=e=>{let n=[];if(!(null==e||e.length<=0))return e.forEach(e=>{let r=cn(e);r.children=ln(e.children),n.push(r)}),n},sn=(e,n)=>{if(e)return e.map(e=>{const r=dn(e,n),t={...e,label:r};return e.children&&(t.children=sn(e.children,n)),t})},dn=(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),cn=e=>({key:e.path||e.name,label:e.label||e.name,icon:e.icon,extra:e.extra,title:e.label});function un(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 mn(e){let n=un(e);return n&&n.length>1&&"/"==n[0]&&n.splice(0,1),n}function pn(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 hn(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:xn(n.extra),icon:xn(n.icon)};return o}(e,n);return n.children&&(r.children=hn(r.path,n.children)),r})}const xn=n=>e.isValidElement(n)?n:"function"==typeof n||"object"==typeof n?e.createElement(n):null,{useToken:fn}=n.theme;function gn(n){const{layoutConfig:o,themeSkin:i}=_(),a=r.useIntl(),{token:l}=fn(),[s,d]=e.useState(!1),c={backgroundColor:l.colorBgLayout};let u=o.headerHeight||56;o.compact&&(u-=4);const p=o.disabledLocale?n.menuData:sn(n.menuData,a),h=p&&p?.length>0?p[0].children:[],x=on(p||[]),f=ln(h),g=t.useLocation(),y=t.useMatches(),{pathname:v}=g,b=mn(v),j=y[y.length-1];let w=[],k=[],C=[],B=[];if("leftMenu"==o.layoutType?(B=f||[],k=b):(C=f||[],w=b),o.splitMenu&&b.length>1){const[e,n]=pn(b),{rootMenuItems:r,childrenMenuItems:t}=an(f,b);"leftMenu"==o.layoutType?(B=r,C=t,k=e,w=n):(B=t,C=r,w=e,k=n)}const I=e.Children.toArray(n.children),M=I.find(n=>e.isValidElement(n)&&n.type.role===ve),P=I.find(n=>e.isValidElement(n)&&n.type.role===be),z=I.find(n=>e.isValidElement(n)&&n.type.role===we),T=I.find(n=>e.isValidElement(n)&&n.type.role===ke),L=I.find(n=>e.isValidElement(n)&&n.type.role===Ce),N=I.find(n=>e.isValidElement(n)&&n.type.role===Se),F=I.find(n=>e.isValidElement(n)&&n.type.role===Be),E=fe,A=e.useMemo(()=>({collapsed:s,headerHeight:u,layoutIcons:n.layoutIcons,avatarPopoverContent:T,brandPopoverContent:L,toolbarExtraItems:F,flattenMenuMap:x,setCollapsed:d}),[s,u,n.layoutIcons,x]),W=x[j.pathname].label||"";return document.title=W,m.jsxs(m.Fragment,{children:[m.jsx(E,{value:A,children:m.jsxs(S,{...n,style:c,children:[m.jsx(S.Aside,{children:m.jsx(tn,{headerHeight:u,header:M,footer:P,menuData:B,selectedKeys:k,openerKeys:k})}),m.jsx(S.Header,{children:m.jsx(Qe,{height:u,menuData:C,selectedKeys:w,title:W})}),m.jsx(S.Content,{children:m.jsx(t.Outlet,{context:{title:W,footer:z}})}),m.jsx(S.Background,{children:i?i.backgroundContent:m.jsx(m.Fragment,{})})]})}),N]})}const yn=e=>i.generate(e),vn=()=>yn("#22222222");function bn(e){const n=Me(),{layoutConfig:r}=_(),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?m.jsx(m.Fragment,{}):m.jsxs("div",{className:D,style:o,children:[m.jsx("div",{children:e.icon}),m.jsx("div",{style:{opacity:n?"0":"1"},children:e.children})]})}function _n(e){return m.jsx(m.Fragment,{children:e.children})}function jn(e){return m.jsx("div",{className:q,children:e.children})}function wn(e){return m.jsx("div",{className:q,children:e.children})}_n.displayName="AsideContentItems",bn.displayName="AsideContentItem",wn.displayName="AsideHeaderContent",wn.Items=_n,wn.Item=bn,jn.displayName="AsideFooterContent",jn.Items=_n,jn.Item=bn,jn.role=be,wn.role=ve,_n.role=_e,bn.role=je;const kn="adminui-default-config",Cn=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()}),Sn=e=>{e||(e=kn);const n=window.localStorage.getItem(e);try{if(n)return JSON.parse(n)}catch(e){console.error(e)}},Bn=(e,n)=>{n||(n=kn);const{brandInfo:r,userInfo:t,...o}=e,i=JSON.stringify(o);window.localStorage.setItem(n,i)},In=(e,n)=>{let r={...e};if(n){const e=n.theme.length<2?n.theme[0]:r.theme;r={...r,primaryColor:n.primaryColor??r.primaryColor,containerBlur:n.containerBlur??r.containerBlur,asideBlur:n.asideBlur??r.asideBlur,asideWidth:n.asideWidth??r.asideWidth,headerBlur:n.asideBlur??r.headerBlur,theme:e}}return r};function Mn(e){const r=o.useMatches(),{flattenMenuMap:t}=Ie(),{layoutConfig:i}=_(),a=[];r.forEach((e,n)=>{const r=t[e.pathname],o=r?r.label:"";a.push({path:e.pathname,title:o,icon:r.icon})});let l="";return"first"==i.visibleBreadcrumbIcon?l=re:"all"==i.visibleBreadcrumbIcon&&(l=te),m.jsx(n.Breadcrumb,{classNames:{item:oe,root:l},style:e.style,items:a,itemRender:Pn})}function Pn(e,n,r,t){console.log(n);return e?.path===r[r.length-1]?.path?m.jsxs("span",{children:[e.icon,e.title]}):m.jsxs(o.Link,{className:"adminui-breadcrumb-link",to:"/"+t[t.length-1],children:[e.icon,e.title]})}const{useToken:zn}=n.theme;const Tn=e=>m.jsx("div",{...e,children:e.children});function Ln(e){return m.jsx(m.Fragment,{children:e.children})}Tn.displayName="ContentFooter",Tn.role=we,Ln.displayName="SoltContent",Ln.role=Se;const Nn="adminui-locale",Fn=(e,n)=>{let r;return Object.entries(n).forEach(([n,t])=>{t.forEach(n=>{n.name==e&&(r=n)})}),r};function En(t){const i=o.useMatches(),{pathname:a}=i[0],l={...y,...t.layoutConfig,...t.disabledStorageConfig?{}:Sn(a)};let s=t.themeSkins||[];const d=e.useMemo(()=>(e=>{let n={tidy:[],rich:[]};return e.forEach(e=>{"rich"==e.skinType?n.rich.push(e):n.tidy.push(e)}),n})(s),[s]),c=t.locale||localStorage.getItem(Nn)||l.locale||"en-US",u=t.menuData?hn("/",[t.menuData]):[],[p,h]=e.useState(()=>{if(l.skinName){const e=Fn(l.skinName,d);return In(l,e)}return l}),[x,f]=e.useState(c),g=b,_=v;let j=t.localeMessages||{};const w=e.useMemo(()=>(e=>{let n=[];return Object.entries(e).forEach(([e,r])=>{n.push({name:r.name,locale:e,flag:r.flag})}),n})(j),[j]),k=e=>{localStorage.setItem(Nn,e),f(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 C=e.useMemo(()=>{if(p.skinName)return Fn(p.skinName,d)},[s,p.skinName]),S="system"==(B=p.theme)?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":B;var B;const I=e=>{h(e),t.disabledStorageConfig||Bn(e,a)},M=e.useMemo(()=>({layoutConfig:p,locale:x,languages:w,themeSkin:C,themeSkinMap:d}),[w,x,w,d,C,p]),P=e.useMemo(()=>({setLayoutConfig:I,setLocale:k}),[]),z=j[x]||j["en-US"],T=["he","ar","fa","ku"].filter(e=>x.startsWith(e)).length?"rtl":"ltr";let L="dark"===S?[n.theme.darkAlgorithm]:[n.theme.defaultAlgorithm],N=p.menuIconSize||14;const F=p.menuIconSize?.1*(N-10)+10:10;p.compact&&(L.push(n.theme.compactAlgorithm),N-=2);let E={darkSubMenuItemBg:"transparent",subMenuItemBg:"transparent",iconSize:N,fontSize:N,itemMarginInline:p.flated?0:4,iconMarginInlineEnd:F,activeBarHeight:p.compact?2:4,darkPopupBg:vn()[4]};const A={algorithm:L,token:{colorPrimary:p.primaryColor,borderRadius:p.flated?0:6},components:{Menu:E,Layout:{siderBg:"transparent",triggerBg:"transparent",lightSiderBg:"transparent",lightTriggerBg:"transparent"}}};return m.jsx(g.Provider,{value:M,children:m.jsx(_.Provider,{value:P,children:m.jsx(n.ConfigProvider,{theme:A,locale:z?.antdLocale,direction:T,modal:{mask:{blur:!1}},drawer:{mask:{blur:!1}},prefixCls:"adminui",children:m.jsx(n.App,{style:{height:"100%",width:"100%"},children:m.jsx(r.IntlProvider,{locale:x,messages:z?.messages,children:m.jsx(gn,{menuData:u,layoutIcons:t.layoutIcons,children:t.children})})})})})})}En.AsideHeader=wn,En.AsideFooter=jn,En.Footer=Tn,En.AvatarPopoverContent=qe,En.BrandPopoverContent=Oe,En.SoltContent=Ln,En.HeaderToolbarExtra=Ge;var An={exports:{}},Wn=a(An.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}());
|
|
10
|
+
*/"production"===process.env.NODE_ENV?s.exports=function(){if(l)return d;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 d.Fragment=n,d.jsx=r,d.jsxs=r,d}():s.exports=(c||(c=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 x:return"Fragment";case g:return"Profiler";case f:return"StrictMode";case _:return"Suspense";case j:return"SuspenseList";case C: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 h:return"Portal";case v:return e.displayName||"Context";case y: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 w: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===x)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 z[e]||(z[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,m=r.children;if(void 0!==m)if(i)if(M(m)){for(i=0;i<m.length;i++)s(m[i]);Object.freeze&&Object.freeze(m)}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(m);if(I.call(r,"key")){m=n(e);var h=Object.keys(r).filter(function(e){return"key"!==e});i=0<h.length?"{key: someKey, "+h.join(": ..., ")+": ...}":"{key: someKey}",N[m+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,m,h,m),N[m+i]=!0)}if(m=null,void 0!==o&&(t(o),m=""+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),m=""+r.key),"key"in r)for(var x in o={},r)"key"!==x&&(o[x]=r[x]);else o=r;return m&&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:p,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,m,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===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===p}var c,m=e,p=Symbol.for("react.transitional.element"),h=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),v=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),C=Symbol.for("react.activity"),S=Symbol.for("react.client.reference"),B=m.__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},z={},T=(m={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(m,i)(),L=P(o(i)),N={};u.Fragment=x,u.jsx=function(e,n,r){var t=1e4>B.recentlyCreatedOwnerStacks++;return l(e,n,r,!1,t?Error("react-stack-top-frame"):T,t?P(o(e)):L)},u.jsxs=function(e,n,r){var t=1e4>B.recentlyCreatedOwnerStacks++;return l(e,n,r,!0,t?Error("react-stack-top-frame"):T,t?P(o(e)):L)}}()),u);var m=s.exports;function p(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))}}p("@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}\r\n");const h=Symbol("LayoutAside"),x=Symbol("LayoutContent"),f=Symbol("LayoutHeader"),g=Symbol("LayoutBackground"),y={headerHeight:50,asideWidth:260,layoutType:"leftMenu",collapsedPosition:"bottom",avatarPosition:"rightTop",theme:"system",visibleBreadcrumbIcon:"none",primaryColor:"#417ffb"},v=e.createContext({setLayoutConfig:()=>{},setLocale:()=>{}}),b=e.createContext({locale:"en-US",languages:[],layoutConfig:{},themeSkinMap:{tidy:[],rich:[]}}),_=()=>e.useContext(b);function j(e){return m.jsx("div",{className:"Layout-module_rootBackground__j3UVG",children:m.jsx(m.Fragment,{children:e.children})})}function w(e){return m.jsx(m.Fragment,{children:e.children})}function k(e){return m.jsx(m.Fragment,{children:e.children})}function C(e){return m.jsx(m.Fragment,{children:e.children})}j.displayName="LayoutBackground",j.role=g,w.displayName="LayoutContent",w.role=x,k.displayName="LayoutAside",k.role=h,C.displayName="LayoutHeader",C.role=f;function S(n){let r=null,t=null,o=null,i=null;return e.Children.forEach(n.children,e=>{const n=e.type.role;n===f?r=e:n===x?t=e:n===h?o=e:n===g&&(i=e)}),m.jsx(m.Fragment,{children:m.jsxs("div",{ref:n.ref,className:"layout-module_rootBox__Y8bEx",style:{...n.style},children:[i,m.jsxs("div",{className:"layout-module_rootLayout__TePvr",children:[o,m.jsxs("div",{className:"layout-module_mainLayout__a8Tb9",children:[r,t]})]})]})})}function B(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 m.jsx(m.Fragment,{});const[s,d]=n.buttons,c=t?s:d;return e.cloneElement(c,{onClick:e=>{console.log(e),l()}})}p("@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}\r\n"),S.Aside=k,S.Content=w,S.Header=C,S.Background=j;const I=(e,n)=>{const{r:r,g:t,b:o}=(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}))(e);return`rgba(${r}, ${t}, ${o}, ${n})`};function M(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))}}M("@layer adminui-layout { \r\n :root{\r\n --pageload-bar-color:#222222;\r\n } \r\n #index_root__t3vw8 {\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\r\n/** Menu icon automatic compact mode */\r\n.index_adminui-menu-icon__sDVLQ {\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");var P="index-module_headerLayout__rv59v",z="index-module_headerLayoutSticky__6uFCj",T="index-module_headerLayoutFixed__t5Hmo",L="index-module_headerLayoutBox__h0fIt",N="index-module_headerMenu__WHmJN",F="index-module_headerTitle__jGbCX",E="index-module_headerBrandBox__U2J16",A="index-module_layoutBlur__GpCPx",W="index-module_toolbarPanel__Pp8PS",O="index-module_toolbarItem__RkaXd",R="index-module_toolbarAvatarItem__p6TXY",H="index-module_siderBaseStyle__zg1FM",$="index-module_siderMask__cCjMh",q="index-module_siderContentBox__dGgRe",D="index-module_siderContentItem__kl3cR",K="index-module_collapsedTrack__LoJ3V",G="index-module_collapsedTrackButton__m33XS",V="index-module_brandPanel__2GRgq",U="index-module_labelBox__dX8fY",X="index-module_brandNodeBox__W-iM6",Y="index-module_brandMobilePanel__m1Diu",J="index-module_largeBrandPanel__pLn--",Z="index-module_title__SbfFY",Q="index-module_largeBrandCollPanel__nsGKB",ee="index-module_avatarPanel__fFvCS",ne="index-module_collapsedMobile__Yu8F4",re="index-module_breadcrumbFirstIcon__9zEmW",te="index-module_breadcrumbAllIcon__HYkKa",oe="index-module_breadcrumbItem__trq8b",ie="index-module_containerBox__pv0qs",ae="index-module_round__WoVxM";function le(e){const{size:n=16}=e;return m.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:m.jsx("path",{d:"m15 18-6-6 6-6"})})}function se(e){const{size:n=16}=e;return m.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:m.jsx("path",{d:"m9 18 6-6-6-6"})})}function de(e){const{size:n=16}=e;return m.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:[m.jsx("path",{d:"M21 5H11"}),m.jsx("path",{d:"M21 12H11"}),m.jsx("path",{d:"M21 19H11"}),m.jsx("path",{d:"m7 8-4 4 4 4"})]})}function ce(e){const{size:n=16}=e;return m.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:[m.jsx("path",{d:"M21 5H11"}),m.jsx("path",{d:"M21 12H11"}),m.jsx("path",{d:"M21 19H11"}),m.jsx("path",{d:"m3 8 4 4-4 4"})]})}function ue(e){const{size:n=16}=e;return m.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:[m.jsx("path",{d:"m7 15 5 5 5-5"}),m.jsx("path",{d:"m7 9 5-5 5 5"})]})}function me(e){const{size:n=16}=e;return m.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:[m.jsx("path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"}),m.jsx("circle",{cx:"12",cy:"7",r:"4"})]})}function pe(e){const{size:n=16}=e;return m.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:[m.jsx("path",{d:"M8 3v3a2 2 0 0 1-2 2H3"}),m.jsx("path",{d:"M21 8h-3a2 2 0 0 1-2-2V3"}),m.jsx("path",{d:"M3 16h3a2 2 0 0 1 2 2v3"}),m.jsx("path",{d:"M16 21v-3a2 2 0 0 1 2-2h3"})]})}function he(e){const{size:n=16}=e;return m.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:[m.jsx("path",{d:"M8 3H5a2 2 0 0 0-2 2v3"}),m.jsx("path",{d:"M21 8V5a2 2 0 0 0-2-2h-3"}),m.jsx("path",{d:"M3 16v3a2 2 0 0 0 2 2h3"}),m.jsx("path",{d:"M16 21h3a2 2 0 0 0 2-2v-3"})]})}function xe(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=m.jsx("img",{...i});return n.hasChild?l:m.jsx("div",{style:a,children:l})}M('@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\r\n.index-module_breadcrumbFirstIcon__9zEmW li:first-of-type span[role="img"]{\r\n display: inline-flex;\r\n}\r\n.index-module_breadcrumbAllIcon__HYkKa li span[role="img"]{\r\n display: inline-flex;\r\n}\r\n.index-module_breadcrumbItem__trq8b span[role="img"]{\r\n display: none;\r\n margin-right: var(--adminui-margin-xxs);\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.index-module_containerBox__pv0qs>h3 {\r\n box-sizing: border-box;\r\n line-height: var(--adminui-line-height);\r\n margin:0 0 var(--adminui-margin);\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\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_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 fe=e.createContext({collapsed:!1,headerHeight:50,flattenMenuMap:{},setCollapsed:()=>{}}),ge=e.createContext({close:()=>{}}),ye=e.createContext({close:()=>{}}),ve=Symbol("AsideFooter"),be=Symbol("AsideHeader"),_e=Symbol("AsideContentItems"),je=Symbol("AsideContentItem"),we=Symbol("ContentFooter"),ke=Symbol("AvatarPopoverContent"),Ce=Symbol("BrandPopoverContent"),Se=Symbol("SoltContent"),Be=Symbol("ToolbarExtraItems"),Ie=()=>e.useContext(fe),Me=()=>Ie().collapsed,Pe=()=>t.useOutletContext(),ze=()=>ge,Te=()=>ye;function Le(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:Ne}=n.theme;function Fe(r){const{collapsed:t,iconSize:o,hideTitle:i}=r,{layoutConfig:a}=_(),{token:l}=Ne(),{layoutIcons:s,brandPopoverContent:d}=Ie(),[c,u]=e.useState(!1),p=Te(),h=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(${h} / 2))`}:g={...g,overflow:"hidden"};let v=m.jsx(m.Fragment,{});y?.logo&&(v="string"==typeof y.logo?m.jsx(xe,{style:{width:h,minWidth:h},src:y.logo,alt:y.name}):m.jsx("div",{className:X,style:{width:h,minWidth:h},children:y.logo}));const b=s?.itemMoreIcon||m.jsx(ue,{}),j=m.jsx(n.Button,{type:"text",style:x,iconPlacement:"end",icon:d?m.jsx(Le,{icon:b,size:o||14,style:{opacity:t?"0":"1"}}):void 0,children:m.jsxs("div",{style:g,children:[v,m.jsxs("div",{className:U,style:{opacity:t?"0":"1"},children:[m.jsx("h4",{children:y?.name}),i?void 0:m.jsx("span",{style:{color:l.colorTextSecondary},children:y?.title})]})]})});return m.jsx("div",{className:V,style:f,children:d?m.jsx(p.Provider,{value:{close:()=>{u(!1)},record:y},children:m.jsx(n.Popover,{open:c,onOpenChange:u,placement:"rightTop",content:d,children:j})}):j})}function Ee(r){const{collapsed:t,iconSize:o,hideTitle:i}=r,{layoutConfig:a}=_(),{layoutIcons:l,brandPopoverContent:s}=Ie(),{token:d}=Ne(),[c,u]=e.useState(!1),p=Te(),h=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(${h} / 2))`}:g={...g,overflow:"hidden"};let v=m.jsx(m.Fragment,{});y?.logo&&(v="string"==typeof y.logo?m.jsx(xe,{style:{width:h,minWidth:h},src:y.logo,alt:y.name}):m.jsx("div",{className:X,style:{width:h,minWidth:h},children:y.logo}));const b=l?.itemMoreIcon||m.jsx(ue,{}),j=s?{}:{href:y?.url},w=m.jsxs("a",{...j,style:x,children:[m.jsxs("div",{style:g,children:[v,m.jsxs("div",{className:U,style:{opacity:t?"0":"1"},children:[m.jsx("h4",{style:{width:"90%"},children:y?.name}),i?void 0:m.jsx("span",{style:{color:d.colorTextSecondary,width:"90%"},children:y?.title})]})]}),s?m.jsx("div",{style:{opacity:t?"0":"1",display:"flex",placeItems:"center"},children:m.jsx(Le,{icon:b,size:o||14})}):m.jsx(m.Fragment,{})]});return m.jsx("div",{className:V,style:f,children:s?m.jsx(p.Provider,{value:{close:()=>{u(!1)},record:y},children:m.jsx(n.Popover,{open:c,onOpenChange:u,placement:"rightTop",content:s,children:w})}):w})}function Ae(r){const{layoutConfig:t}=_(),{brandPopoverContent:o}=Ie(),[i,a]=e.useState(!1),l=Te(),s=t.compact?"16px":"20px",{brandInfo:d}=t;let c=m.jsx(m.Fragment,{});d?.logo&&(c="string"==typeof d.logo?m.jsx(xe,{style:{width:s},src:d.logo,alt:d.name}):m.jsx("div",{className:X,style:{width:s},children:d.logo}));let u=o?m.jsx(l.Provider,{value:{close:()=>{a(!1)},record:d},children:m.jsx(n.Popover,{open:i,onOpenChange:a,content:o,placement:"rightTop",children:m.jsx("a",{children:c})})}):m.jsx("a",{href:d?.url,children:c});return m.jsxs("div",{className:Y,style:r.style,children:[u,m.jsx("div",{className:F,children:r.children})]})}function We(r){const{collapsed:t}=r,{brandPopoverContent:o}=Ie(),{layoutConfig:i}=_(),[a,l]=e.useState(!1),s=Te(),d=t?i.compact?"16px":"20px":i.compact?"56px":"64px",{brandInfo:c}=i,u={opacity:t?"0":"1",height:t?"0px":"auto"};let p=m.jsx(m.Fragment,{});if(!c)return m.jsx(m.Fragment,{});let h=[J];t&&h.push(Q),c?.logo&&(p="string"==typeof c.logo?m.jsx(xe,{style:{width:d},src:c.logo,alt:c.name}):m.jsx("div",{className:X,style:{width:d},children:c.logo}));let x=o?m.jsx(s.Provider,{value:{close:()=>{l(!1)},record:c},children:m.jsx(n.Popover,{open:a,onOpenChange:l,content:o,placement:"rightTop",children:m.jsx("a",{children:p})})}):m.jsx("a",{href:c?.url,children:p});return m.jsxs("div",{className:h.join(" "),children:[x,m.jsxs("div",{style:u,children:[m.jsx("span",{children:c?.name}),c.title?m.jsx("span",{className:Z,children:c?.title}):m.jsx(m.Fragment,{})]})]})}function Oe(e){return m.jsx("div",{style:{...e.style},children:e.children})}Oe.displayName="BrandPopoverContent",Oe.role=Ce;const{useToken:Re}=n.theme;function He(r){const{collapsed:t,iconSize:o}=r,{layoutConfig:i}=_(),{layoutIcons:a,avatarPopoverContent:l}=Ie(),[s,d]=e.useState(!1),c=ze(),{token:u}=Re(),p=i.compact?"20px":"24px";let h={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&&(h={...h,paddingInline:u.padding,margin:"0px",height:"100%"},x={...x,padding:"0px"});const{userInfo:g}=i;t?h={...h,paddingInline:`calc(50% - calc(${p} / 2))`}:f={...f,overflow:"hidden"};let y=m.jsx(m.Fragment,{});g?.avatar&&(y="string"==typeof g.avatar?m.jsx(xe,{style:{width:p,borderRadius:"999px"},src:g.avatar,alt:g.uid}):g.avatar);const v=a?.itemMoreIcon||m.jsx(ue,{}),b=m.jsx("div",{className:ee,style:x,children:m.jsxs("a",{style:h,children:[m.jsxs("div",{style:f,children:[y,m.jsxs("div",{className:U,style:{opacity:t?"0":"1"},children:[m.jsx("h4",{children:g?.uid}),g?.title?void 0:m.jsx("span",{style:{color:u.colorTextSecondary},children:g?.title})]})]}),l?m.jsx("div",{style:{opacity:t?"0":"1",display:"flex",placeItems:"center"},children:m.jsx(Le,{icon:v,size:o||14})}):m.jsx(m.Fragment,{})]})});return l?m.jsx(c.Provider,{value:{close:()=>d(!1),record:g},children:m.jsx(n.Popover,{open:s,onOpenChange:d,placement:"right",content:l,children:b})}):b}function $e(r){const{iconSize:t=14}=r,{layoutConfig:o}=_(),{userInfo:i}=o,{avatarPopoverContent:a}=Ie(),[l,s]=e.useState(!1),d=ze();let c=m.jsx(me,{});const u=t+4,p={width:`${u}px`,height:`${u}px`,overflow:"hidden",display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer"};i?.avatar&&(c="string"==typeof i.avatar?m.jsx(xe,{style:{width:u,borderRadius:"999px"},src:i.avatar,alt:i.uid}):i.avatar);const h=m.jsxs("div",{className:R,children:[m.jsx("div",{style:p,children:c}),m.jsx("span",{children:i?.uid})]});return a?m.jsx(d.Provider,{value:{close:()=>s(!1),record:i},children:m.jsx(n.Popover,{open:l,onOpenChange:s,placement:"left",content:a,children:h})}):m.jsx(m.Fragment,{children:h})}function qe(e){return m.jsx("div",{style:{...e.style},children:e.children})}qe.displayName="AvatarPopoverContent",qe.role=ke;const{useToken:De}=n.theme;function Ke(e){const{token:r}=De(),{layoutIcons:t,toolbarExtraItems:o}=Ie(),i=r.Menu?.iconSize||16,[a,l]=t?.fullScreenIcons?.slice(0,2)||[m.jsx(he,{}),m.jsx(pe,{})],s=m.jsx(Le,{icon:a,size:i}),d=m.jsx(Le,{icon:l,size:i});return m.jsxs("div",{className:W,children:[e.showAvatar?m.jsxs("div",{className:O,children:[m.jsx($e,{iconSize:i+4}),m.jsx(n.Divider,{"data-adminui-role":"desk-toolbar",orientation:"vertical"})]}):m.jsx(m.Fragment,{}),o,m.jsx("div",{className:O,"data-adminui-role":"desk-toolbar",children:m.jsx(B,{buttons:[m.jsx(n.Button,{icon:d,type:"text"},"minimize"),m.jsx(n.Button,{icon:s,type:"text"},"maximize")]})})]})}function Ge(e){const n=m.jsx("div",{className:O,"data-adminui-role":"desk-toolbar",children:e.children});return e?m.jsx(m.Fragment,{children:n}):m.jsx(m.Fragment,{})}Ge.displayName="ToolbarExtraItems",Ge.role=Be;const{useToken:Ve}=n.theme;function Ue(e){const{style:n}=e,{collapsed:r,setCollapsed:t,layoutIcons:o}=Ie(),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)||[m.jsx(se,{}),m.jsx(le,{})];return m.jsx("div",{style:i,children:m.jsx("div",{style:a,onClick:()=>{t(!r)},children:r?l:s})})}function Xe(e){const{style:n,offset:r=0,top:t}=e,{collapsed:o,setCollapsed:i,layoutIcons:a}=Ie(),{token:l}=Ve();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)||[m.jsx(le,{}),m.jsx(se,{})];return m.jsx("div",{className:K,style:s,onClick:()=>{i(!o)},children:m.jsx("div",{style:d,className:G,children:o?c:u})})}function Ye(e){const{collapsed:r,setCollapsed:t,layoutIcons:o}=Ie(),[i,a]=o?.mobileAsideIcons?.slice(0,2)||[m.jsx(ce,{}),m.jsx(de,{})];return m.jsx("div",{className:ne,children:m.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:Je}=n.Layout,{useToken:Ze}=n.theme;function Qe(e){const{layoutConfig:r}=_(),{token:o,theme:i}=Ze(),a=t.useNavigate(),l=r.headerTransparent||r.headerBlur?I(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,p={height:e.height+"px",lineHeight:e.height+"px"};let h=m.jsx(m.Fragment,{}),x={...p,borderBottom:s,backgroundColor:r.headerTransparent?"transparent":u};r.headerBlur&&(x={...x,backgroundColor:I(u,.6),transform:"translateZ(0)",backdropFilter:"blur(8px)"});let f={...p,fontSize:o.Menu?.iconSize,backgroundColor:"transparent",flex:"none"},g=[P],y=m.jsx(m.Fragment,{});"headMenu"==r.layoutType?(h=m.jsx("div",{style:p}),x={...x,paddingInlineEnd:o.paddingXS+"px"},y=m.jsx("div",{className:E,style:{width:r?.asideWidth+"px"},children:m.jsx(Fe,{collapsed:!1,iconSize:o.Menu?.iconSize,hideTitle:!0})}),g.push(T)):(x={...x,paddingInline:o.paddingXS+"px"},g.push(z));let v=m.jsx(Ae,{children:e.title}),b=m.jsx(Ye,{iconSize:r.compact?12:14});const j=[L];r.flated||j.push(ae);let w="dark"==d?[n.theme.darkAlgorithm]:[n.theme.defaultAlgorithm];return m.jsxs(m.Fragment,{children:[h,m.jsx(n.ConfigProvider,{theme:{algorithm:w},children:m.jsx(n.Layout,{className:g.join(" "),style:f,children:m.jsxs(Je,{className:j.join(" "),style:x,children:[b,y,v,m.jsx(n.Menu,{onClick:e=>{a(e.key)},defaultSelectedKeys:e.selectedKeys,selectedKeys:e.selectedKeys,mode:"horizontal",theme:c,classNames:{root:N},items:e.menuData||[]}),m.jsx(Ke,{showAvatar:"rightTop"==r.avatarPosition})]})})})]})}const{Sider:en}=n.Layout,{useToken:nn}=n.theme,{useBreakpoint:rn}=n.Grid;function tn(r){const o=e.useRef([]);o.current=r.openerKeys||[];const[i,a]=e.useState(r.openerKeys),{layoutConfig:l}=_(),{asideWidth:s}=l,d=r.headerHeight,{collapsed:c,setCollapsed:u}=Ie(),{token:p,theme:h}=nn(),x=t.useNavigate(),f=rn().xs?0:d,g=l.headerTransparent||l.headerBlur?I(p.colorBorderSecondary,.6):p.colorBorderSecondary,y=l.hideBorder||0==f&&c?"0px":"1px solid "+g,v="headMenu"==l.layoutType||0==f?r.headerHeight:0,b="headMenu"==l.layoutType||0==f?"calc(100% - "+r.headerHeight+"px)":"100%";let j={width:`${l.asideWidth}px`,height:`${b}`,insetBlockStart:v+"px",maxWidth:`${l.asideWidth}px`,minWidth:`${l.asideWidth}px`,borderRight:y,position:"fixed",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 k=p.Menu?.iconSize,C=1==h.id?"dark":"light",S=C;let B=0,M=m.jsx(m.Fragment,{});"leftMenu"==l.layoutType&&(B=l.headerHeight||0,M=l.largeBrand?m.jsx(We,{collapsed:c,iconSize:k}):m.jsx(Ee,{collapsed:c,iconSize:k,hideTitle:!0}));const P=l.asideTransparent?"transparent":l.asideBlur?I(p.colorBgContainer,.6):p.colorBgContainer;j={...j,backgroundColor:P},l.asideBlur&&(j={...j,transform:"translateZ(0)",backdropFilter:"blur(8px)"}),c&&(w={...w,overflow:"hidden"});let z=[H];z.push(A);let T=m.jsx(m.Fragment,{});switch(l.collapsedPosition){case"bottom":T=m.jsx(Ue,{iconSize:k,style:{backgroundColor:P,width:`${d}px`,borderRight:y}});break;case"center":case"top":T=m.jsx(Xe,{iconSize:12,top:"top"==l.collapsedPosition,flated:l.flated,offset:B,style:{backgroundColor:P}})}let L=r.menuData||[];return l.asideMenuGroup&&L.forEach(e=>{e.children&&(e.type="group")}),m.jsxs(m.Fragment,{children:[m.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:$}),m.jsxs(en,{width:s,className:z.join(" "),style:j,theme:S,collapsedWidth:f,collapsible:!0,trigger:null,breakpoint:"md",collapsed:c,onCollapse:u,children:[f>0?M:m.jsx(m.Fragment,{}),r.header,m.jsx("div",{style:w,children:m.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:L})}),r.footer,"leftBottom"==l.avatarPosition?m.jsx(He,{collapsed:c,iconSize:k}):m.jsx(m.Fragment,{}),T]})]})}const on=e=>e.reduce((e,n)=>{const{children:r,...t}=n;return e[t.path]=t,r&&Object.assign(e,on(r)),e},{});function an(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 ln=e=>{let n=[];if(!(null==e||e.length<=0))return e.forEach(e=>{let r=cn(e);r.children=ln(e.children),n.push(r)}),n},sn=(e,n)=>{if(e)return e.map(e=>{const r=dn(e,n),t={...e,label:r};return e.children&&(t.children=sn(e.children,n)),t})},dn=(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),cn=e=>({key:e.path||e.name,label:e.label||e.name,icon:e.icon,extra:e.extra,title:e.label});function un(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 mn(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 pn(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:hn(n.extra),icon:hn(n.icon)};return o}(e,n);return n.children&&(r.children=pn(r.path,n.children)),r})}const hn=n=>e.isValidElement(n)?n:"function"==typeof n||"object"==typeof n?e.createElement(n):null,{useToken:xn}=n.theme;function fn(n){const{layoutConfig:o,themeSkin:i}=_(),a=r.useIntl(),{token:l}=xn(),[s,d]=e.useState(!1),c={backgroundColor:l.colorBgLayout};let u=o.headerHeight||56;o.compact&&(u-=4);const p=o.disabledLocale?n.menuData:sn(n.menuData,a),h=p&&p?.length>0?p[0].children:[],x=on(p||[]),f=ln(h),g=t.useMatches(),y=g.map(e=>e.pathname),v=g[g.length-1];let b=[],j=[],w=[],k=[];if("leftMenu"==o.layoutType?(k=f||[],j=y):(w=f||[],b=y),o.splitMenu){const[e,n]=mn(y),{rootMenuItems:r,childrenMenuItems:t}=an(f,y);"leftMenu"==o.layoutType?(k=r,w=t,j=e,b=n):(k=t,w=r,b=e,j=n)}const C=e.Children.toArray(n.children),B=C.find(n=>e.isValidElement(n)&&n.type.role===ve),I=C.find(n=>e.isValidElement(n)&&n.type.role===be),M=C.find(n=>e.isValidElement(n)&&n.type.role===we),P=C.find(n=>e.isValidElement(n)&&n.type.role===ke),z=C.find(n=>e.isValidElement(n)&&n.type.role===Ce),T=C.find(n=>e.isValidElement(n)&&n.type.role===Se),L=C.find(n=>e.isValidElement(n)&&n.type.role===Be),N=fe,F=e.useMemo(()=>({collapsed:s,headerHeight:u,layoutIcons:n.layoutIcons,avatarPopoverContent:P,brandPopoverContent:z,toolbarExtraItems:L,flattenMenuMap:x,setCollapsed:d}),[s,u,n.layoutIcons,x]),E=x[v.pathname].label||"";return document.title=E,m.jsxs(m.Fragment,{children:[m.jsx(N,{value:F,children:m.jsxs(S,{...n,style:c,children:[m.jsx(S.Aside,{children:m.jsx(tn,{headerHeight:u,header:B,footer:I,menuData:k,selectedKeys:j,openerKeys:j})}),m.jsx(S.Header,{children:m.jsx(Qe,{height:u,menuData:w,selectedKeys:b,title:E})}),m.jsx(S.Content,{children:m.jsx(t.Outlet,{context:{title:E,footer:M}})}),m.jsx(S.Background,{children:i?i.backgroundContent:m.jsx(m.Fragment,{})})]})}),T]})}const gn=e=>i.generate(e),yn=()=>gn("#22222222");function vn(e){const n=Me(),{layoutConfig:r}=_(),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?m.jsx(m.Fragment,{}):m.jsxs("div",{className:D,style:o,children:[m.jsx("div",{children:e.icon}),m.jsx("div",{style:{opacity:n?"0":"1"},children:e.children})]})}function bn(e){return m.jsx(m.Fragment,{children:e.children})}function _n(e){return m.jsx("div",{className:q,children:e.children})}function jn(e){return m.jsx("div",{className:q,children:e.children})}bn.displayName="AsideContentItems",vn.displayName="AsideContentItem",jn.displayName="AsideHeaderContent",jn.Items=bn,jn.Item=vn,_n.displayName="AsideFooterContent",_n.Items=bn,_n.Item=vn,_n.role=be,jn.role=ve,bn.role=_e,vn.role=je;const wn="adminui-default-config",kn=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()}),Cn=e=>{e||(e=wn);const n=window.localStorage.getItem(e);try{if(n)return JSON.parse(n)}catch(e){console.error(e)}},Sn=(e,n)=>{n||(n=wn);const{brandInfo:r,userInfo:t,...o}=e,i=JSON.stringify(o);window.localStorage.setItem(n,i)},Bn=(e,n)=>{let r={...e};if(n){const e=n.theme.length<2?n.theme[0]:r.theme;r={...r,primaryColor:n.primaryColor??r.primaryColor,containerBlur:n.containerBlur??r.containerBlur,asideBlur:n.asideBlur??r.asideBlur,asideWidth:n.asideWidth??r.asideWidth,headerBlur:n.asideBlur??r.headerBlur,theme:e}}return r};function In(e){const r=t.useMatches(),{flattenMenuMap:o}=Ie(),{layoutConfig:i}=_(),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="";return"first"==i.visibleBreadcrumbIcon?l=re:"all"==i.visibleBreadcrumbIcon&&(l=te),m.jsx(n.Breadcrumb,{classNames:{item:oe,root:l},style:e.style,items:a,itemRender:Mn})}function Mn(e,n,r,o){return e?.path===r[r.length-1]?.path?m.jsxs("span",{children:[e.icon,e.title]}):m.jsxs(t.Link,{className:"adminui-breadcrumb-link",to:"/"+o[o.length-1],children:[e.icon,e.title]})}const{useToken:Pn}=n.theme;const zn=e=>m.jsx("div",{...e,children:e.children});function Tn(e){return m.jsx(m.Fragment,{children:e.children})}zn.displayName="ContentFooter",zn.role=we,Tn.displayName="SoltContent",Tn.role=Se;const Ln="adminui-locale",Nn=(e,n)=>{let r;return Object.entries(n).forEach(([n,t])=>{t.forEach(n=>{n.name==e&&(r=n)})}),r};function Fn(o){const i=t.useMatches(),{pathname:a}=i[0],l={...y,...o.layoutConfig,...o.disabledStorageConfig?{}:Cn(a)};let s=o.themeSkins||[];const d=e.useMemo(()=>(e=>{let n={tidy:[],rich:[]};return e.forEach(e=>{"rich"==e.skinType?n.rich.push(e):n.tidy.push(e)}),n})(s),[s]),c=o.locale||localStorage.getItem(Ln)||l.locale||"en-US",u=o.menuData?pn("/",[o.menuData]):[],[p,h]=e.useState(()=>{if(l.skinName){const e=Nn(l.skinName,d);return Bn(l,e)}return l}),[x,f]=e.useState(c),g=b,_=v;let j=o.localeMessages||{};const w=e.useMemo(()=>(e=>{let n=[];return Object.entries(e).forEach(([e,r])=>{n.push({name:r.name,locale:e,flag:r.flag})}),n})(j),[j]),k=e=>{localStorage.setItem(Ln,e),f(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 C=e.useMemo(()=>{if(p.skinName)return Nn(p.skinName,d)},[s,p.skinName]),S="system"==(B=p.theme)?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":B;var B;const I=e=>{h(e),o.disabledStorageConfig||Sn(e,a)},M=e.useMemo(()=>({layoutConfig:p,locale:x,languages:w,themeSkin:C,themeSkinMap:d}),[w,x,w,d,C,p]),P=e.useMemo(()=>({setLayoutConfig:I,setLocale:k}),[]),z=j[x]||j["en-US"],T=["he","ar","fa","ku"].filter(e=>x.startsWith(e)).length?"rtl":"ltr";let L="dark"===S?[n.theme.darkAlgorithm]:[n.theme.defaultAlgorithm],N=p.menuIconSize||14;const F=p.menuIconSize?.1*(N-10)+10:10;p.compact&&(L.push(n.theme.compactAlgorithm),N-=2);let E={darkSubMenuItemBg:"transparent",subMenuItemBg:"transparent",iconSize:N,fontSize:N,itemMarginInline:p.flated?0:4,iconMarginInlineEnd:F,activeBarHeight:p.compact?2:4,darkPopupBg:yn()[4]};const A={algorithm:L,token:{colorPrimary:p.primaryColor,borderRadius:p.flated?0:6},components:{Menu:E,Layout:{siderBg:"transparent",triggerBg:"transparent",lightSiderBg:"transparent",lightTriggerBg:"transparent"}}};return m.jsx(g.Provider,{value:M,children:m.jsx(_.Provider,{value:P,children:m.jsx(n.ConfigProvider,{theme:A,locale:z?.antdLocale,direction:T,modal:{mask:{blur:!1}},drawer:{mask:{blur:!1}},prefixCls:"adminui",children:m.jsx(n.App,{style:{height:"100%",width:"100%"},children:m.jsx(r.IntlProvider,{locale:x,messages:z?.messages,children:m.jsx(fn,{menuData:u,layoutIcons:o.layoutIcons,children:o.children})})})})})})}Fn.AsideHeader=jn,Fn.AsideFooter=_n,Fn.Footer=zn,Fn.AvatarPopoverContent=qe,Fn.BrandPopoverContent=Oe,Fn.SoltContent=Tn,Fn.HeaderToolbarExtra=Ge;var En={exports:{}},An=a(En.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}());
|
|
11
11
|
/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
|
|
12
|
-
* @license MIT */
|
|
12
|
+
* @license MIT */An.configure({showSpinner:!1});const Wn=()=>(e.useEffect(()=>{const e=setTimeout(()=>{An.start()},200);return()=>{clearTimeout(e),An.done()}},[]),m.jsx("div",{style:{height:"auto"}}));Object.defineProperty(exports,"generate",{enumerable:!0,get:function(){return i.generate}}),exports.AntdLayout=Fn,exports.Container=function(e){const{mode:n="inline",stretch:r="inline"}=e,{token:t}=Pn(),{layoutConfig:o}=_(),{footer:i,title:a}=Pe();let l={},s={flex:"none"},d={borderRadius:o.compact?t.borderRadius:t.borderRadiusLG};const c=e.hideBorder||o.hideBorder,u=e.hideBreadcrumb||o.hideBreadcrumb,p=e.hideTitle||o.hideTitle;"box"!=n&&"panel"!=n||(l={padding:t.padding},"panel"==n&&(d={...d,padding:t.padding,backgroundColor:t.colorBgContainer},c||(d={...d,border:`solid 1px ${t.colorBorderSecondary}`}))),"fill"!=r&&"auto"!=r||(s={...s,flex:"auto"},"fill"==r&&(d={...d,minHeight:"100%"}));const h={margin:p?"0 0 1rem":"0px"},x=u?m.jsx(m.Fragment,{}):m.jsx(In,{style:h}),f=p?m.jsx(m.Fragment,{}):m.jsx("h3",{children:e.title||a});d={...d,...e.style};let g=!(e.hideFooter||o.hideFooter)&&e.children?m.jsx("footer",{children:i}):m.jsx(m.Fragment,{});return m.jsxs("div",{className:ie,style:l,children:[x,f,m.jsx("main",{style:s,children:m.jsx("div",{style:d,children:e.children})}),g]})},exports.FullScreenButton=B,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]),m.jsx(n.Avatar,{...r,style:{...r.style,opacity:t?1:0,transition:"opacity 0.3s ease-out"}})},exports.LazyImage=xe,exports.LazyPage=function(n){const r=e.lazy(n);return function(n){return m.jsx(e.Suspense,{fallback:m.jsx(Wn,{}),children:m.jsx(r,{...n})})}},exports.PageLoading=Wn,exports.RouteLoading=()=>(e.useEffect(()=>(An.start(),()=>{An.done()}),[location.hostname]),m.jsx("div",{style:{height:"auto"}})),exports.ToolbarIcon=Le,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=on,exports.getAntdMenuItem=cn,exports.getAppIntl=kn,exports.getBasicLayoutConfig=e=>{const{brandInfo:n,userInfo:r,...t}=e;return t},exports.getBlackColors=yn,exports.getMenuLabel=dn,exports.getStorageConfig=Cn,exports.getWhiteColors=()=>gn("#FFFFFF"),exports.localeMenuData=sn,exports.matchPathToKeys=function(e){return un(e)},exports.pathToKeys=un,exports.separateMenuData=an,exports.setSkinConfig=Bn,exports.setStorageConfig=Sn,exports.splitMenuKeys=mn,exports.transformMenuData=pn,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:hn(r.extra),icon:hn(r.icon)};return a}(n,r);return r.children&&(t.children=e(t.path,r.children)),t})},exports.transformToAntdMenuData=ln,exports.useAppIntl=()=>{const e=r.useIntl(),{layoutConfig:n}=_(),{f:t,t:o}=kn(n.disabledLocale?void 0:e);return{...e,f:t,t:o}},exports.useAvatarPopover=()=>e.useContext(ge),exports.useBrandPopover=()=>e.useContext(ye),exports.useConfigAction=()=>e.useContext(v),exports.useConfigState=_,exports.useContainerOutlet=Pe,exports.useMainCollapsed=Me,exports.useTheme=()=>_().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
|
|
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 d}from"react";import{Avatar as s,theme as c,Popover as u,Button as m,Divider as p,Layout as h,ConfigProvider as x,Menu as f,Grid as g,Breadcrumb as y,App as b}from"antd";import{useIntl as v,IntlProvider as _}from"react-intl";import{useOutletContext as j,useNavigate as w,useMatches as k,Outlet as C,Link as S}from"react-router";import{generatePath as B}from"react-router-dom";import{generate as I}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 P(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var M,z={exports:{}},T={};var N,F={};
|
|
2
2
|
/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react-jsx-runtime.development.js
|
|
@@ -7,6 +7,6 @@ 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?N.exports=function(){if(T)return F;T=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}():N.exports=(L||(L=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 v:return"Suspense";case _: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 M[e]||(M[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}",N[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),N[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 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=S.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"),g=Symbol.for("react.consumer"),y=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),k=Symbol.for("react.activity"),C=Symbol.for("react.client.reference"),S=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,I=Array.isArray,P=console.createTask?console.createTask:function(){return null},M={},z=(u={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(u,i)(),T=P(o(i)),N={};E.Fragment=h,E.jsx=function(e,n,r){var t=1e4>S.recentlyCreatedOwnerStacks++;return l(e,n,r,!1,t?Error("react-stack-top-frame"):z,t?P(o(e)):T)},E.jsxs=function(e,n,r){var t=1e4>S.recentlyCreatedOwnerStacks++;return l(e,n,r,!0,t?Error("react-stack-top-frame"):z,t?P(o(e)):T)}}()),E);var W=N.exports;function A(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))}}A("@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}\r\n");const O=Symbol("LayoutAside"),R=Symbol("LayoutContent"),H=Symbol("LayoutHeader"),$=Symbol("LayoutBackground"),V={headerHeight:50,asideWidth:260,layoutType:"leftMenu",collapsedPosition:"bottom",avatarPosition:"rightTop",theme:"system",visibleBreadcrumbIcon:"none",primaryColor:"#417ffb"},G=n({setLayoutConfig:()=>{},setLocale:()=>{}}),K=n({locale:"en-US",languages:[],layoutConfig:{},themeSkinMap:{tidy:[],rich:[]}}),q=()=>r(K),U=()=>r(G),X=()=>q().layoutConfig.theme;function D(e){return W.jsx("div",{className:"Layout-module_rootBackground__j3UVG",children:W.jsx(W.Fragment,{children:e.children})})}function Y(e){return W.jsx(W.Fragment,{children:e.children})}function J(e){return W.jsx(W.Fragment,{children:e.children})}function Z(e){return W.jsx(W.Fragment,{children:e.children})}D.displayName="LayoutBackground",D.role=$,Y.displayName="LayoutContent",Y.role=R,J.displayName="LayoutAside",J.role=O,Z.displayName="LayoutHeader",Z.role=H;function Q(n){let r=null,t=null,o=null,i=null;return e.Children.forEach(n.children,e=>{const n=e.type.role;n===H?r=e:n===R?t=e:n===O?o=e:n===$&&(i=e)}),W.jsx(W.Fragment,{children:W.jsxs("div",{ref:n.ref,className:"layout-module_rootBox__Y8bEx",style:{...n.style},children:[i,W.jsxs("div",{className:"layout-module_rootLayout__TePvr",children:[o,W.jsxs("div",{className:"layout-module_mainLayout__a8Tb9",children:[r,t]})]})]})})}function ee(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 W.jsx(W.Fragment,{});const[c,u]=n.buttons,m=i?c:u;return e.cloneElement(m,{onClick:e=>{console.log(e),d()}})}A("@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}\r\n"),Q.Aside=J,Q.Content=Y,Q.Header=Z,Q.Background=D;const ne=(e,n)=>{const{r:r,g:t,b:o}=(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}))(e);return`rgba(${r}, ${t}, ${o}, ${n})`};function re(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))}}re("@layer adminui-layout { \r\n :root{\r\n --pageload-bar-color:#222222;\r\n } \r\n #index_root__t3vw8 {\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\r\n/** Menu icon automatic compact mode */\r\n.index_adminui-menu-icon__sDVLQ {\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");var te="index-module_headerLayout__rv59v",oe="index-module_headerLayoutSticky__6uFCj",ie="index-module_headerLayoutFixed__t5Hmo",ae="index-module_headerLayoutBox__h0fIt",le="index-module_headerMenu__WHmJN",se="index-module_headerTitle__jGbCX",de="index-module_headerBrandBox__U2J16",ce="index-module_layoutBlur__GpCPx",ue="index-module_toolbarPanel__Pp8PS",me="index-module_toolbarItem__RkaXd",pe="index-module_toolbarAvatarItem__p6TXY",he="index-module_siderBaseStyle__zg1FM",xe="index-module_siderMask__cCjMh",fe="index-module_siderContentBox__dGgRe",ge="index-module_siderContentItem__kl3cR",ye="index-module_collapsedTrack__LoJ3V",be="index-module_collapsedTrackButton__m33XS",ve="index-module_brandPanel__2GRgq",_e="index-module_labelBox__dX8fY",je="index-module_brandNodeBox__W-iM6",we="index-module_brandMobilePanel__m1Diu",ke="index-module_largeBrandPanel__pLn--",Ce="index-module_title__SbfFY",Se="index-module_largeBrandCollPanel__nsGKB",Be="index-module_avatarPanel__fFvCS",Ie="index-module_collapsedMobile__Yu8F4",Pe="index-module_breadcrumbFirstIcon__9zEmW",Me="index-module_breadcrumbAllIcon__HYkKa",ze="index-module_breadcrumbItem__trq8b",Te="index-module_containerBox__pv0qs",Ne="index-module_round__WoVxM";function Fe(e){const{size:n=16}=e;return W.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:W.jsx("path",{d:"m15 18-6-6 6-6"})})}function Le(e){const{size:n=16}=e;return W.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:W.jsx("path",{d:"m9 18 6-6-6-6"})})}function Ee(e){const{size:n=16}=e;return W.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:[W.jsx("path",{d:"M21 5H11"}),W.jsx("path",{d:"M21 12H11"}),W.jsx("path",{d:"M21 19H11"}),W.jsx("path",{d:"m7 8-4 4 4 4"})]})}function We(e){const{size:n=16}=e;return W.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:[W.jsx("path",{d:"M21 5H11"}),W.jsx("path",{d:"M21 12H11"}),W.jsx("path",{d:"M21 19H11"}),W.jsx("path",{d:"m3 8 4 4-4 4"})]})}function Ae(e){const{size:n=16}=e;return W.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:[W.jsx("path",{d:"m7 15 5 5 5-5"}),W.jsx("path",{d:"m7 9 5-5 5 5"})]})}function Oe(e){const{size:n=16}=e;return W.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:[W.jsx("path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"}),W.jsx("circle",{cx:"12",cy:"7",r:"4"})]})}function Re(e){const{size:n=16}=e;return W.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:[W.jsx("path",{d:"M8 3v3a2 2 0 0 1-2 2H3"}),W.jsx("path",{d:"M21 8h-3a2 2 0 0 1-2-2V3"}),W.jsx("path",{d:"M3 16h3a2 2 0 0 1 2 2v3"}),W.jsx("path",{d:"M16 21v-3a2 2 0 0 1 2-2h3"})]})}function He(e){const{size:n=16}=e;return W.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:[W.jsx("path",{d:"M8 3H5a2 2 0 0 0-2 2v3"}),W.jsx("path",{d:"M21 8V5a2 2 0 0 0-2-2h-3"}),W.jsx("path",{d:"M3 16v3a2 2 0 0 0 2 2h3"}),W.jsx("path",{d:"M16 21h3a2 2 0 0 0 2-2v-3"})]})}function $e(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]),W.jsx(d,{...e,style:{...e.style,opacity:n?1:0,transition:"opacity 0.3s ease-out"}})}function Ve(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=W.jsx("img",{...a});return e.hasChild?s:W.jsx("div",{style:l,children:s})}re('@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\r\n.index-module_breadcrumbFirstIcon__9zEmW li:first-of-type span[role="img"]{\r\n display: inline-flex;\r\n}\r\n.index-module_breadcrumbAllIcon__HYkKa li span[role="img"]{\r\n display: inline-flex;\r\n}\r\n.index-module_breadcrumbItem__trq8b span[role="img"]{\r\n display: none;\r\n margin-right: var(--adminui-margin-xxs);\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.index-module_containerBox__pv0qs>h3 {\r\n box-sizing: border-box;\r\n line-height: var(--adminui-line-height);\r\n margin:0 0 var(--adminui-margin);\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\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_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 Ge=n({collapsed:!1,headerHeight:50,flattenMenuMap:{},setCollapsed:()=>{}}),Ke=n({close:()=>{}}),qe=n({close:()=>{}}),Ue=Symbol("AsideFooter"),Xe=Symbol("AsideHeader"),De=Symbol("AsideContentItems"),Ye=Symbol("AsideContentItem"),Je=Symbol("ContentFooter"),Ze=Symbol("AvatarPopoverContent"),Qe=Symbol("BrandPopoverContent"),en=Symbol("SoltContent"),nn=Symbol("ToolbarExtraItems"),rn=()=>r(Ge),tn=()=>rn().collapsed,on=()=>S(),an=()=>Ke,ln=()=>qe,sn=()=>r(Ke),dn=()=>r(qe);function cn(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:un}=c;function mn(e){const{collapsed:n,iconSize:r,hideTitle:o}=e,{layoutConfig:i}=q(),{token:a}=un(),{layoutIcons:l,brandPopoverContent:s}=rn(),[d,c]=t(!1),p=ln(),h=i.compact?"16px":"20px";let x={justifyContent:"flex-start",paddingInline:i.compact?a.paddingXXS:a.paddingXS,height:"40px",gap:(i.compact?6:8)+"px"},f={height:`${i.headerHeight}px`},g={boxSizing:"border-box",display:"flex",flex:"1",gap:"6px",width:"100%",textAlign:"left",alignItems:"center"};i.flated&&(x={...x,paddingInline:a.padding,height:"100%"},f={...f,padding:"0px"});const{brandInfo:y}=i;n?x={...x,paddingInline:`calc(50% - calc(${h} / 2))`}:g={...g,overflow:"hidden"};let b=W.jsx(W.Fragment,{});y?.logo&&(b="string"==typeof y.logo?W.jsx(Ve,{style:{width:h,minWidth:h},src:y.logo,alt:y.name}):W.jsx("div",{className:je,style:{width:h,minWidth:h},children:y.logo}));const v=l?.itemMoreIcon||W.jsx(Ae,{}),_=W.jsx(m,{type:"text",style:x,iconPlacement:"end",icon:s?W.jsx(cn,{icon:v,size:r||14,style:{opacity:n?"0":"1"}}):void 0,children:W.jsxs("div",{style:g,children:[b,W.jsxs("div",{className:_e,style:{opacity:n?"0":"1"},children:[W.jsx("h4",{children:y?.name}),o?void 0:W.jsx("span",{style:{color:a.colorTextSecondary},children:y?.title})]})]})});return W.jsx("div",{className:ve,style:f,children:s?W.jsx(p.Provider,{value:{close:()=>{c(!1)},record:y},children:W.jsx(u,{open:d,onOpenChange:c,placement:"rightTop",content:s,children:_})}):_})}function pn(e){const{collapsed:n,iconSize:r,hideTitle:o}=e,{layoutConfig:i}=q(),{layoutIcons:a,brandPopoverContent:l}=rn(),{token:s}=un(),[d,c]=t(!1),m=ln(),p=i.compact?"16px":"20px";let h={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&&(h={...h,paddingInline:s.padding},x={...x,padding:"0px"});const{brandInfo:g}=i;n?h={...h,paddingInline:`calc(50% - calc(${p} / 2))`}:f={...f,overflow:"hidden"};let y=W.jsx(W.Fragment,{});g?.logo&&(y="string"==typeof g.logo?W.jsx(Ve,{style:{width:p,minWidth:p},src:g.logo,alt:g.name}):W.jsx("div",{className:je,style:{width:p,minWidth:p},children:g.logo}));const b=a?.itemMoreIcon||W.jsx(Ae,{}),v=l?{}:{href:g?.url},_=W.jsxs("a",{...v,style:h,children:[W.jsxs("div",{style:f,children:[y,W.jsxs("div",{className:_e,style:{opacity:n?"0":"1"},children:[W.jsx("h4",{style:{width:"90%"},children:g?.name}),o?void 0:W.jsx("span",{style:{color:s.colorTextSecondary,width:"90%"},children:g?.title})]})]}),l?W.jsx("div",{style:{opacity:n?"0":"1",display:"flex",placeItems:"center"},children:W.jsx(cn,{icon:b,size:r||14})}):W.jsx(W.Fragment,{})]});return W.jsx("div",{className:ve,style:x,children:l?W.jsx(m.Provider,{value:{close:()=>{c(!1)},record:g},children:W.jsx(u,{open:d,onOpenChange:c,placement:"rightTop",content:l,children:_})}):_})}function hn(e){const{layoutConfig:n}=q(),{brandPopoverContent:r}=rn(),[o,i]=t(!1),a=ln(),l=n.compact?"16px":"20px",{brandInfo:s}=n;let d=W.jsx(W.Fragment,{});s?.logo&&(d="string"==typeof s.logo?W.jsx(Ve,{style:{width:l},src:s.logo,alt:s.name}):W.jsx("div",{className:je,style:{width:l},children:s.logo}));let c=r?W.jsx(a.Provider,{value:{close:()=>{i(!1)},record:s},children:W.jsx(u,{open:o,onOpenChange:i,content:r,placement:"rightTop",children:W.jsx("a",{children:d})})}):W.jsx("a",{href:s?.url,children:d});return W.jsxs("div",{className:we,style:e.style,children:[c,W.jsx("div",{className:se,children:e.children})]})}function xn(e){const{collapsed:n}=e,{brandPopoverContent:r}=rn(),{layoutConfig:o}=q(),[i,a]=t(!1),l=ln(),s=n?o.compact?"16px":"20px":o.compact?"56px":"64px",{brandInfo:d}=o,c={opacity:n?"0":"1",height:n?"0px":"auto"};let m=W.jsx(W.Fragment,{});if(!d)return W.jsx(W.Fragment,{});let p=[ke];n&&p.push(Se),d?.logo&&(m="string"==typeof d.logo?W.jsx(Ve,{style:{width:s},src:d.logo,alt:d.name}):W.jsx("div",{className:je,style:{width:s},children:d.logo}));let h=r?W.jsx(l.Provider,{value:{close:()=>{a(!1)},record:d},children:W.jsx(u,{open:i,onOpenChange:a,content:r,placement:"rightTop",children:W.jsx("a",{children:m})})}):W.jsx("a",{href:d?.url,children:m});return W.jsxs("div",{className:p.join(" "),children:[h,W.jsxs("div",{style:c,children:[W.jsx("span",{children:d?.name}),d.title?W.jsx("span",{className:Ce,children:d?.title}):W.jsx(W.Fragment,{})]})]})}function fn(e){return W.jsx("div",{style:{...e.style},children:e.children})}fn.displayName="BrandPopoverContent",fn.role=Qe;const{useToken:gn}=c;function yn(e){const{collapsed:n,iconSize:r}=e,{layoutConfig:o}=q(),{layoutIcons:i,avatarPopoverContent:a}=rn(),[l,s]=t(!1),d=an(),{token:c}=gn(),m=o.compact?"20px":"24px";let p={justifyContent:"flex-start",gap:(o.compact?6:8)+"px"},h={height:`${o.headerHeight}px`},x={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:f}=o;n?p={...p,paddingInline:`calc(50% - calc(${m} / 2))`}:x={...x,overflow:"hidden"};let g=W.jsx(W.Fragment,{});f?.avatar&&(g="string"==typeof f.avatar?W.jsx(Ve,{style:{width:m,borderRadius:"999px"},src:f.avatar,alt:f.uid}):f.avatar);const y=i?.itemMoreIcon||W.jsx(Ae,{}),b=W.jsx("div",{className:Be,style:h,children:W.jsxs("a",{style:p,children:[W.jsxs("div",{style:x,children:[g,W.jsxs("div",{className:_e,style:{opacity:n?"0":"1"},children:[W.jsx("h4",{children:f?.uid}),f?.title?void 0:W.jsx("span",{style:{color:c.colorTextSecondary},children:f?.title})]})]}),a?W.jsx("div",{style:{opacity:n?"0":"1",display:"flex",placeItems:"center"},children:W.jsx(cn,{icon:y,size:r||14})}):W.jsx(W.Fragment,{})]})});return a?W.jsx(d.Provider,{value:{close:()=>s(!1),record:f},children:W.jsx(u,{open:l,onOpenChange:s,placement:"right",content:a,children:b})}):b}function bn(e){const{iconSize:n=14}=e,{layoutConfig:r}=q(),{userInfo:o}=r,{avatarPopoverContent:i}=rn(),[a,l]=t(!1),s=an();let d=W.jsx(Oe,{});const c=n+4,m={width:`${c}px`,height:`${c}px`,overflow:"hidden",display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer"};o?.avatar&&(d="string"==typeof o.avatar?W.jsx(Ve,{style:{width:c,borderRadius:"999px"},src:o.avatar,alt:o.uid}):o.avatar);const p=W.jsxs("div",{className:pe,children:[W.jsx("div",{style:m,children:d}),W.jsx("span",{children:o?.uid})]});return i?W.jsx(s.Provider,{value:{close:()=>l(!1),record:o},children:W.jsx(u,{open:a,onOpenChange:l,placement:"left",content:i,children:p})}):W.jsx(W.Fragment,{children:p})}function vn(e){return W.jsx("div",{style:{...e.style},children:e.children})}vn.displayName="AvatarPopoverContent",vn.role=Ze;const{useToken:_n}=c;function jn(e){const{token:n}=_n(),{layoutIcons:r,toolbarExtraItems:t}=rn(),o=n.Menu?.iconSize||16,[i,a]=r?.fullScreenIcons?.slice(0,2)||[W.jsx(He,{}),W.jsx(Re,{})],l=W.jsx(cn,{icon:i,size:o}),s=W.jsx(cn,{icon:a,size:o});return W.jsxs("div",{className:ue,children:[e.showAvatar?W.jsxs("div",{className:me,children:[W.jsx(bn,{iconSize:o+4}),W.jsx(p,{"data-adminui-role":"desk-toolbar",orientation:"vertical"})]}):W.jsx(W.Fragment,{}),t,W.jsx("div",{className:me,"data-adminui-role":"desk-toolbar",children:W.jsx(ee,{buttons:[W.jsx(m,{icon:s,type:"text"},"minimize"),W.jsx(m,{icon:l,type:"text"},"maximize")]})})]})}function wn(e){const n=W.jsx("div",{className:me,"data-adminui-role":"desk-toolbar",children:e.children});return e?W.jsx(W.Fragment,{children:n}):W.jsx(W.Fragment,{})}wn.displayName="ToolbarExtraItems",wn.role=nn;const{useToken:kn}=c;function Cn(e){const{style:n}=e,{collapsed:r,setCollapsed:t,layoutIcons:o}=rn(),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)||[W.jsx(Le,{}),W.jsx(Fe,{})];return W.jsx("div",{style:i,children:W.jsx("div",{style:a,onClick:()=>{t(!r)},children:r?l:s})})}function Sn(e){const{style:n,offset:r=0,top:t}=e,{collapsed:o,setCollapsed:i,layoutIcons:a}=rn(),{token:l}=kn();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)||[W.jsx(Fe,{}),W.jsx(Le,{})];return W.jsx("div",{className:ye,style:s,onClick:()=>{i(!o)},children:W.jsx("div",{style:d,className:be,children:o?c:u})})}function Bn(e){const{collapsed:n,setCollapsed:r,layoutIcons:t}=rn(),[o,i]=t?.mobileAsideIcons?.slice(0,2)||[W.jsx(We,{}),W.jsx(Ee,{})];return W.jsx("div",{className:Ie,children:W.jsx(m,{type:"text",style:{cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center",...e.style},icon:n?o:i,onClick:()=>{r(!n)}})})}const{Header:In}=h,{useToken:Pn}=c;function Mn(e){const{layoutConfig:n}=q(),{token:r,theme:t}=Pn(),o=B(),i=n.headerTransparent||n.headerBlur?ne(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,u={height:e.height+"px",lineHeight:e.height+"px"};let m=W.jsx(W.Fragment,{}),p={...u,borderBottom:a,backgroundColor:n.headerTransparent?"transparent":d};n.headerBlur&&(p={...p,backgroundColor:ne(d,.6),transform:"translateZ(0)",backdropFilter:"blur(8px)"});let g={...u,fontSize:r.Menu?.iconSize,backgroundColor:"transparent",flex:"none"},y=[te],b=W.jsx(W.Fragment,{});"headMenu"==n.layoutType?(m=W.jsx("div",{style:u}),p={...p,paddingInlineEnd:r.paddingXS+"px"},b=W.jsx("div",{className:de,style:{width:n?.asideWidth+"px"},children:W.jsx(mn,{collapsed:!1,iconSize:r.Menu?.iconSize,hideTitle:!0})}),y.push(ie)):(p={...p,paddingInline:r.paddingXS+"px"},y.push(oe));let v=W.jsx(hn,{children:e.title}),_=W.jsx(Bn,{iconSize:n.compact?12:14});const j=[ae];n.flated||j.push(Ne);let w="dark"==l?[c.darkAlgorithm]:[c.defaultAlgorithm];return W.jsxs(W.Fragment,{children:[m,W.jsx(x,{theme:{algorithm:w},children:W.jsx(h,{className:y.join(" "),style:g,children:W.jsxs(In,{className:j.join(" "),style:p,children:[_,b,v,W.jsx(f,{onClick:e=>{o(e.key)},defaultSelectedKeys:e.selectedKeys,selectedKeys:e.selectedKeys,mode:"horizontal",theme:s,classNames:{root:le},items:e.menuData||[]}),W.jsx(jn,{showAvatar:"rightTop"==n.avatarPosition})]})})})]})}const{Sider:zn}=h,{useToken:Tn}=c,{useBreakpoint:Nn}=g;function Fn(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}=rn(),{token:u,theme:m}=Tn(),p=B(),h=Nn().xs?0:s,x=a.headerTransparent||a.headerBlur?ne(u.colorBorderSecondary,.6):u.colorBorderSecondary,g=a.hideBorder||0==h&&d?"0px":"1px solid "+x,y="headMenu"==a.layoutType||0==h?e.headerHeight:0,b="headMenu"==a.layoutType||0==h?"calc(100% - "+e.headerHeight+"px)":"100%";let v={width:`${a.asideWidth}px`,height:`${b}`,insetBlockStart:y+"px",maxWidth:`${a.asideWidth}px`,minWidth:`${a.asideWidth}px`,borderRight:g,position:"fixed",transition:"width 0.3s, min-width 0.3s, max-width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"},_={overflow:"auto",flex:1};const j=u.Menu?.iconSize,w=1==m.id?"dark":"light",k=w;let C=0,S=W.jsx(W.Fragment,{});"leftMenu"==a.layoutType&&(C=a.headerHeight||0,S=a.largeBrand?W.jsx(xn,{collapsed:d,iconSize:j}):W.jsx(pn,{collapsed:d,iconSize:j,hideTitle:!0}));const I=a.asideTransparent?"transparent":a.asideBlur?ne(u.colorBgContainer,.6):u.colorBgContainer;v={...v,backgroundColor:I},a.asideBlur&&(v={...v,transform:"translateZ(0)",backdropFilter:"blur(8px)"}),d&&(_={..._,overflow:"hidden"});let P=[he];P.push(ce);let M=W.jsx(W.Fragment,{});switch(a.collapsedPosition){case"bottom":M=W.jsx(Cn,{iconSize:j,style:{backgroundColor:I,width:`${s}px`,borderRight:g}});break;case"center":case"top":M=W.jsx(Sn,{iconSize:12,top:"top"==a.collapsedPosition,flated:a.flated,offset:C,style:{backgroundColor:I}})}let z=e.menuData||[];return a.asideMenuGroup&&z.forEach(e=>{e.children&&(e.type="group")}),W.jsxs(W.Fragment,{children:[W.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:xe}),W.jsxs(zn,{width:l,className:P.join(" "),style:v,theme:k,collapsedWidth:h,collapsible:!0,trigger:null,breakpoint:"md",collapsed:d,onCollapse:c,children:[h>0?S:W.jsx(W.Fragment,{}),e.header,W.jsx("div",{style:_,children:W.jsx(f,{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:w,items:z})}),e.footer,"leftBottom"==a.avatarPosition?W.jsx(yn,{collapsed:d,iconSize:j}):W.jsx(W.Fragment,{}),M]})]})}const Ln=e=>e.reduce((e,n)=>{const{children:r,...t}=n;return e[t.path]=t,r&&Object.assign(e,Ln(r)),e},{});function En(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 Wn=e=>{let n=[];if(!(null==e||e.length<=0))return e.forEach(e=>{let r=Rn(e);r.children=Wn(e.children),n.push(r)}),n},An=(e,n)=>{if(e)return e.map(e=>{const r=On(e,n),t={...e,label:r};return e.children&&(t.children=An(e.children,n)),t})},On=(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),Rn=e=>({key:e.path||e.name,label:e.label||e.name,icon:e.icon,extra:e.extra,title:e.label});function Hn(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 $n(e){let n=Hn(e);return n&&n.length>1&&"/"==n[0]&&n.splice(0,1),n}function Vn(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 Gn(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:Un(n.extra),icon:Un(n.icon)};return o}(e,n);return n.children&&(r.children=Gn(r.path,n.children)),r})}function Kn(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=j(t,r.params));t?.startsWith("/")&&(t=t.slice(1));let o=e+t,i={...r,path:o,originalPath:n.path,extra:Un(r.extra),icon:Un(r.icon)};return i}(e,n);return n.children&&(r.children=Kn(r.path,n.children)),r})}function qn(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 Un=n=>e.isValidElement(n)?n:"function"==typeof n||"object"==typeof n?e.createElement(n):null,{useToken:Xn}=c;function Dn(n){const{layoutConfig:r,themeSkin:o}=q(),i=v(),{token:l}=Xn(),[s,d]=t(!1),c={backgroundColor:l.colorBgLayout};let u=r.headerHeight||56;r.compact&&(u-=4);const m=r.disabledLocale?n.menuData:An(n.menuData,i),p=m&&m?.length>0?m[0].children:[],h=Ln(m||[]),x=Wn(p),f=w(),g=k(),{pathname:y}=f,b=$n(y),_=g[g.length-1];let j=[],S=[],B=[],I=[];if("leftMenu"==r.layoutType?(I=x||[],S=b):(B=x||[],j=b),r.splitMenu&&b.length>1){const[e,n]=Vn(b),{rootMenuItems:t,childrenMenuItems:o}=En(x,b);"leftMenu"==r.layoutType?(I=t,B=o,S=e,j=n):(I=o,B=t,j=e,S=n)}const P=e.Children.toArray(n.children),M=P.find(n=>e.isValidElement(n)&&n.type.role===Ue),z=P.find(n=>e.isValidElement(n)&&n.type.role===Xe),T=P.find(n=>e.isValidElement(n)&&n.type.role===Je),N=P.find(n=>e.isValidElement(n)&&n.type.role===Ze),F=P.find(n=>e.isValidElement(n)&&n.type.role===Qe),L=P.find(n=>e.isValidElement(n)&&n.type.role===en),E=P.find(n=>e.isValidElement(n)&&n.type.role===nn),A=Ge,O=a(()=>({collapsed:s,headerHeight:u,layoutIcons:n.layoutIcons,avatarPopoverContent:N,brandPopoverContent:F,toolbarExtraItems:E,flattenMenuMap:h,setCollapsed:d}),[s,u,n.layoutIcons,h]),R=h[_.pathname].label||"";return document.title=R,W.jsxs(W.Fragment,{children:[W.jsx(A,{value:O,children:W.jsxs(Q,{...n,style:c,children:[W.jsx(Q.Aside,{children:W.jsx(Fn,{headerHeight:u,header:M,footer:z,menuData:I,selectedKeys:S,openerKeys:S})}),W.jsx(Q.Header,{children:W.jsx(Mn,{height:u,menuData:B,selectedKeys:j,title:R})}),W.jsx(Q.Content,{children:W.jsx(C,{context:{title:R,footer:T}})}),W.jsx(Q.Background,{children:o?o.backgroundContent:W.jsx(W.Fragment,{})})]})}),L]})}const Yn=e=>M(e),Jn=()=>Yn("#22222222"),Zn=()=>Yn("#FFFFFF");function Qn(e){const n=tn(),{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?W.jsx(W.Fragment,{}):W.jsxs("div",{className:ge,style:o,children:[W.jsx("div",{children:e.icon}),W.jsx("div",{style:{opacity:n?"0":"1"},children:e.children})]})}function er(e){return W.jsx(W.Fragment,{children:e.children})}function nr(e){return W.jsx("div",{className:fe,children:e.children})}function rr(e){return W.jsx("div",{className:fe,children:e.children})}er.displayName="AsideContentItems",Qn.displayName="AsideContentItem",rr.displayName="AsideHeaderContent",rr.Items=er,rr.Item=Qn,nr.displayName="AsideFooterContent",nr.Items=er,nr.Item=Qn,nr.role=Xe,rr.role=Ue,er.role=De,Qn.role=Ye;const tr="adminui-default-config",or=()=>{const e=v(),{layoutConfig:n}=q(),{f:r,t:t}=ir(n.disabledLocale?void 0:e);return{...e,f:r,t:t}},ir=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()}),ar=e=>{const{brandInfo:n,userInfo:r,...t}=e;return t},lr=e=>{e||(e=tr);const n=window.localStorage.getItem(e);try{if(n)return JSON.parse(n)}catch(e){console.error(e)}},sr=(e,n)=>{n||(n=tr);const{brandInfo:r,userInfo:t,...o}=e,i=JSON.stringify(o);window.localStorage.setItem(n,i)},dr=(e,n)=>{let r={...e};if(n){const e=n.theme.length<2?n.theme[0]:r.theme;r={...r,primaryColor:n.primaryColor??r.primaryColor,containerBlur:n.containerBlur??r.containerBlur,asideBlur:n.asideBlur??r.asideBlur,asideWidth:n.asideWidth??r.asideWidth,headerBlur:n.asideBlur??r.headerBlur,theme:e}}return r};function cr(e){const n=I(),{flattenMenuMap:r}=rn(),{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="";return"first"==t.visibleBreadcrumbIcon?i=Pe:"all"==t.visibleBreadcrumbIcon&&(i=Me),W.jsx(y,{classNames:{item:ze,root:i},style:e.style,items:o,itemRender:ur})}function ur(e,n,r,t){console.log(n);return e?.path===r[r.length-1]?.path?W.jsxs("span",{children:[e.icon,e.title]}):W.jsxs(P,{className:"adminui-breadcrumb-link",to:"/"+t[t.length-1],children:[e.icon,e.title]})}const{useToken:mr}=c;function pr(e){const{mode:n="inline",stretch:r="inline"}=e,{token:t}=mr(),{layoutConfig:o}=q(),{footer:i,title:a}=on();let l={},s={flex:"none"},d={borderRadius:o.compact?t.borderRadius:t.borderRadiusLG};const c=e.hideBorder||o.hideBorder,u=e.hideBreadcrumb||o.hideBreadcrumb,m=e.hideTitle||o.hideTitle;"box"!=n&&"panel"!=n||(l={padding:t.padding},"panel"==n&&(d={...d,padding:t.padding,backgroundColor:t.colorBgContainer},c||(d={...d,border:`solid 1px ${t.colorBorderSecondary}`}))),"fill"!=r&&"auto"!=r||(s={...s,flex:"auto"},"fill"==r&&(d={...d,minHeight:"100%"}));const p={margin:m?"0 0 1rem":"0px"},h=u?W.jsx(W.Fragment,{}):W.jsx(cr,{style:p}),x=m?W.jsx(W.Fragment,{}):W.jsx("h3",{children:e.title||a});d={...d,...e.style};let f=!(e.hideFooter||o.hideFooter)&&e.children?W.jsx("footer",{children:i}):W.jsx(W.Fragment,{});return W.jsxs("div",{className:Te,style:l,children:[h,x,W.jsx("main",{style:s,children:W.jsx("div",{style:d,children:e.children})}),f]})}const hr=e=>W.jsx("div",{...e,children:e.children});function xr(e){return W.jsx(W.Fragment,{children:e.children})}hr.displayName="ContentFooter",hr.role=Je,xr.displayName="SoltContent",xr.role=en;const fr="adminui-locale",gr=(e,n)=>{let r;return Object.entries(n).forEach(([n,t])=>{t.forEach(n=>{n.name==e&&(r=n)})}),r};function yr(e){const n=I(),{pathname:r}=n[0],i={...V,...e.layoutConfig,...e.disabledStorageConfig?{}:lr(r)};let l=e.themeSkins||[];const s=a(()=>(e=>{let n={tidy:[],rich:[]};return e.forEach(e=>{"rich"==e.skinType?n.rich.push(e):n.tidy.push(e)}),n})(l),[l]),d=e.locale||localStorage.getItem(fr)||i.locale||"en-US",u=e.menuData?Gn("/",[e.menuData]):[],[m,p]=t(()=>{if(i.skinName){const e=gr(i.skinName,s);return dr(i,e)}return i}),[h,f]=t(d),g=K,y=G;let v=e.localeMessages||{};const j=a(()=>(e=>{let n=[];return Object.entries(e).forEach(([e,r])=>{n.push({name:r.name,locale:e,flag:r.flag})}),n})(v),[v]),w=e=>{localStorage.setItem(fr,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 gr(m.skinName,s)},[l,m.skinName]),C="system"==(S=m.theme)?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":S;var S;const B=n=>{p(n),e.disabledStorageConfig||sr(n,r)},P=a(()=>({layoutConfig:m,locale:h,languages:j,themeSkin:k,themeSkinMap:s}),[j,h,j,s,k,m]),M=a(()=>({setLayoutConfig:B,setLocale:w}),[]),z=v[h]||v["en-US"],T=["he","ar","fa","ku"].filter(e=>h.startsWith(e)).length?"rtl":"ltr";let N="dark"===C?[c.darkAlgorithm]:[c.defaultAlgorithm],F=m.menuIconSize||14;const L=m.menuIconSize?.1*(F-10)+10:10;m.compact&&(N.push(c.compactAlgorithm),F-=2);let E={darkSubMenuItemBg:"transparent",subMenuItemBg:"transparent",iconSize:F,fontSize:F,itemMarginInline:m.flated?0:4,iconMarginInlineEnd:L,activeBarHeight:m.compact?2:4,darkPopupBg:Jn()[4]};const A={algorithm:N,token:{colorPrimary:m.primaryColor,borderRadius:m.flated?0:6},components:{Menu:E,Layout:{siderBg:"transparent",triggerBg:"transparent",lightSiderBg:"transparent",lightTriggerBg:"transparent"}}};return W.jsx(g.Provider,{value:P,children:W.jsx(y.Provider,{value:M,children:W.jsx(x,{theme:A,locale:z?.antdLocale,direction:T,modal:{mask:{blur:!1}},drawer:{mask:{blur:!1}},prefixCls:"adminui",children:W.jsx(b,{style:{height:"100%",width:"100%"},children:W.jsx(_,{locale:h,messages:z?.messages,children:W.jsx(Dn,{menuData:u,layoutIcons:e.layoutIcons,children:e.children})})})})})})}yr.AsideHeader=rr,yr.AsideFooter=nr,yr.Footer=hr,yr.AvatarPopoverContent=vn,yr.BrandPopoverContent=fn,yr.SoltContent=xr,yr.HeaderToolbarExtra=wn;var br={exports:{}},vr=z(br.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}());
|
|
10
|
+
*/"production"===process.env.NODE_ENV?z.exports=function(){if(M)return T;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 T.Fragment=n,T.jsx=r,T.jsxs=r,T}():z.exports=(N||(N=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 v:return"Suspense";case _: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 M[e]||(M[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,s){var u,p=r.children;if(void 0!==p)if(i)if(I(p)){for(i=0;i<p.length;i++)d(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 d(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}",N[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),N[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 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=S.A)?null:u.getOwner(),l,s)}function d(e){s(e)?e._store&&(e._store.validated=1):"object"==typeof e&&null!==e&&e.$$typeof===w&&("fulfilled"===e._payload.status?s(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function s(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"),g=Symbol.for("react.consumer"),y=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),k=Symbol.for("react.activity"),C=Symbol.for("react.client.reference"),S=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,I=Array.isArray,P=console.createTask?console.createTask:function(){return null},M={},z=(u={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(u,i)(),T=P(o(i)),N={};F.Fragment=h,F.jsx=function(e,n,r){var t=1e4>S.recentlyCreatedOwnerStacks++;return l(e,n,r,!1,t?Error("react-stack-top-frame"):z,t?P(o(e)):T)},F.jsxs=function(e,n,r){var t=1e4>S.recentlyCreatedOwnerStacks++;return l(e,n,r,!0,t?Error("react-stack-top-frame"):z,t?P(o(e)):T)}}()),F);var L=z.exports;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 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}\r\n");const W=Symbol("LayoutAside"),A=Symbol("LayoutContent"),O=Symbol("LayoutHeader"),R=Symbol("LayoutBackground"),H={headerHeight:50,asideWidth:260,layoutType:"leftMenu",collapsedPosition:"bottom",avatarPosition:"rightTop",theme:"system",visibleBreadcrumbIcon:"none",primaryColor:"#417ffb"},$=n({setLayoutConfig:()=>{},setLocale:()=>{}}),V=n({locale:"en-US",languages:[],layoutConfig:{},themeSkinMap:{tidy:[],rich:[]}}),G=()=>r(V),K=()=>r($),q=()=>G().layoutConfig.theme;function U(e){return L.jsx("div",{className:"Layout-module_rootBackground__j3UVG",children:L.jsx(L.Fragment,{children:e.children})})}function X(e){return L.jsx(L.Fragment,{children:e.children})}function D(e){return L.jsx(L.Fragment,{children:e.children})}function Y(e){return L.jsx(L.Fragment,{children:e.children})}U.displayName="LayoutBackground",U.role=R,X.displayName="LayoutContent",X.role=A,D.displayName="LayoutAside",D.role=W,Y.displayName="LayoutHeader",Y.role=O;function J(n){let r=null,t=null,o=null,i=null;return e.Children.forEach(n.children,e=>{const n=e.type.role;n===O?r=e:n===A?t=e:n===W?o=e:n===R&&(i=e)}),L.jsx(L.Fragment,{children:L.jsxs("div",{ref:n.ref,className:"layout-module_rootBox__Y8bEx",style:{...n.style},children:[i,L.jsxs("div",{className:"layout-module_rootLayout__TePvr",children:[o,L.jsxs("div",{className:"layout-module_mainLayout__a8Tb9",children:[r,t]})]})]})})}function Z(n){const r=!!document.fullscreenElement,[i,a]=t(r),l=()=>{a(!!document.fullscreenElement)},d=e=>{"F11"===e.code&&(e.preventDefault(),s())};o(()=>(document.addEventListener("fullscreenchange",l),document.addEventListener("keydown",d,!0),()=>{document.removeEventListener("fullscreenchange",l),document.removeEventListener("keydown",d)}),[]);const s=()=>{i?document.exitFullscreen():document.documentElement.requestFullscreen()};if(!n.buttons||n.buttons.length<2)return L.jsx(L.Fragment,{});const[c,u]=n.buttons,m=i?c:u;return e.cloneElement(m,{onClick:e=>{console.log(e),s()}})}E("@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}\r\n"),J.Aside=D,J.Content=X,J.Header=Y,J.Background=U;const Q=(e,n)=>{const{r:r,g:t,b:o}=(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}))(e);return`rgba(${r}, ${t}, ${o}, ${n})`};function ee(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))}}ee("@layer adminui-layout { \r\n :root{\r\n --pageload-bar-color:#222222;\r\n } \r\n #index_root__t3vw8 {\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\r\n/** Menu icon automatic compact mode */\r\n.index_adminui-menu-icon__sDVLQ {\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");var ne="index-module_headerLayout__rv59v",re="index-module_headerLayoutSticky__6uFCj",te="index-module_headerLayoutFixed__t5Hmo",oe="index-module_headerLayoutBox__h0fIt",ie="index-module_headerMenu__WHmJN",ae="index-module_headerTitle__jGbCX",le="index-module_headerBrandBox__U2J16",de="index-module_layoutBlur__GpCPx",se="index-module_toolbarPanel__Pp8PS",ce="index-module_toolbarItem__RkaXd",ue="index-module_toolbarAvatarItem__p6TXY",me="index-module_siderBaseStyle__zg1FM",pe="index-module_siderMask__cCjMh",he="index-module_siderContentBox__dGgRe",xe="index-module_siderContentItem__kl3cR",fe="index-module_collapsedTrack__LoJ3V",ge="index-module_collapsedTrackButton__m33XS",ye="index-module_brandPanel__2GRgq",be="index-module_labelBox__dX8fY",ve="index-module_brandNodeBox__W-iM6",_e="index-module_brandMobilePanel__m1Diu",je="index-module_largeBrandPanel__pLn--",we="index-module_title__SbfFY",ke="index-module_largeBrandCollPanel__nsGKB",Ce="index-module_avatarPanel__fFvCS",Se="index-module_collapsedMobile__Yu8F4",Be="index-module_breadcrumbFirstIcon__9zEmW",Ie="index-module_breadcrumbAllIcon__HYkKa",Pe="index-module_breadcrumbItem__trq8b",Me="index-module_containerBox__pv0qs",ze="index-module_round__WoVxM";function Te(e){const{size:n=16}=e;return L.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:L.jsx("path",{d:"m15 18-6-6 6-6"})})}function Ne(e){const{size:n=16}=e;return L.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:L.jsx("path",{d:"m9 18 6-6-6-6"})})}function Fe(e){const{size:n=16}=e;return L.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:[L.jsx("path",{d:"M21 5H11"}),L.jsx("path",{d:"M21 12H11"}),L.jsx("path",{d:"M21 19H11"}),L.jsx("path",{d:"m7 8-4 4 4 4"})]})}function Le(e){const{size:n=16}=e;return L.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:[L.jsx("path",{d:"M21 5H11"}),L.jsx("path",{d:"M21 12H11"}),L.jsx("path",{d:"M21 19H11"}),L.jsx("path",{d:"m3 8 4 4-4 4"})]})}function Ee(e){const{size:n=16}=e;return L.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:[L.jsx("path",{d:"m7 15 5 5 5-5"}),L.jsx("path",{d:"m7 9 5-5 5 5"})]})}function We(e){const{size:n=16}=e;return L.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:[L.jsx("path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"}),L.jsx("circle",{cx:"12",cy:"7",r:"4"})]})}function Ae(e){const{size:n=16}=e;return L.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:[L.jsx("path",{d:"M8 3v3a2 2 0 0 1-2 2H3"}),L.jsx("path",{d:"M21 8h-3a2 2 0 0 1-2-2V3"}),L.jsx("path",{d:"M3 16h3a2 2 0 0 1 2 2v3"}),L.jsx("path",{d:"M16 21v-3a2 2 0 0 1 2-2h3"})]})}function Oe(e){const{size:n=16}=e;return L.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:[L.jsx("path",{d:"M8 3H5a2 2 0 0 0-2 2v3"}),L.jsx("path",{d:"M21 8V5a2 2 0 0 0-2-2h-3"}),L.jsx("path",{d:"M3 16v3a2 2 0 0 0 2 2h3"}),L.jsx("path",{d:"M16 21h3a2 2 0 0 0 2-2v-3"})]})}function Re(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]),L.jsx(s,{...e,style:{...e.style,opacity:n?1:0,transition:"opacity 0.3s ease-out"}})}function He(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"},d=L.jsx("img",{...a});return e.hasChild?d:L.jsx("div",{style:l,children:d})}ee('@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\r\n.index-module_breadcrumbFirstIcon__9zEmW li:first-of-type span[role="img"]{\r\n display: inline-flex;\r\n}\r\n.index-module_breadcrumbAllIcon__HYkKa li span[role="img"]{\r\n display: inline-flex;\r\n}\r\n.index-module_breadcrumbItem__trq8b span[role="img"]{\r\n display: none;\r\n margin-right: var(--adminui-margin-xxs);\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.index-module_containerBox__pv0qs>h3 {\r\n box-sizing: border-box;\r\n line-height: var(--adminui-line-height);\r\n margin:0 0 var(--adminui-margin);\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\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_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 $e=n({collapsed:!1,headerHeight:50,flattenMenuMap:{},setCollapsed:()=>{}}),Ve=n({close:()=>{}}),Ge=n({close:()=>{}}),Ke=Symbol("AsideFooter"),qe=Symbol("AsideHeader"),Ue=Symbol("AsideContentItems"),Xe=Symbol("AsideContentItem"),De=Symbol("ContentFooter"),Ye=Symbol("AvatarPopoverContent"),Je=Symbol("BrandPopoverContent"),Ze=Symbol("SoltContent"),Qe=Symbol("ToolbarExtraItems"),en=()=>r($e),nn=()=>en().collapsed,rn=()=>j(),tn=()=>Ve,on=()=>Ge,an=()=>r(Ve),ln=()=>r(Ge);function dn(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:sn}=c;function cn(e){const{collapsed:n,iconSize:r,hideTitle:o}=e,{layoutConfig:i}=G(),{token:a}=sn(),{layoutIcons:l,brandPopoverContent:d}=en(),[s,c]=t(!1),p=on(),h=i.compact?"16px":"20px";let x={justifyContent:"flex-start",paddingInline:i.compact?a.paddingXXS:a.paddingXS,height:"40px",gap:(i.compact?6:8)+"px"},f={height:`${i.headerHeight}px`},g={boxSizing:"border-box",display:"flex",flex:"1",gap:"6px",width:"100%",textAlign:"left",alignItems:"center"};i.flated&&(x={...x,paddingInline:a.padding,height:"100%"},f={...f,padding:"0px"});const{brandInfo:y}=i;n?x={...x,paddingInline:`calc(50% - calc(${h} / 2))`}:g={...g,overflow:"hidden"};let b=L.jsx(L.Fragment,{});y?.logo&&(b="string"==typeof y.logo?L.jsx(He,{style:{width:h,minWidth:h},src:y.logo,alt:y.name}):L.jsx("div",{className:ve,style:{width:h,minWidth:h},children:y.logo}));const v=l?.itemMoreIcon||L.jsx(Ee,{}),_=L.jsx(m,{type:"text",style:x,iconPlacement:"end",icon:d?L.jsx(dn,{icon:v,size:r||14,style:{opacity:n?"0":"1"}}):void 0,children:L.jsxs("div",{style:g,children:[b,L.jsxs("div",{className:be,style:{opacity:n?"0":"1"},children:[L.jsx("h4",{children:y?.name}),o?void 0:L.jsx("span",{style:{color:a.colorTextSecondary},children:y?.title})]})]})});return L.jsx("div",{className:ye,style:f,children:d?L.jsx(p.Provider,{value:{close:()=>{c(!1)},record:y},children:L.jsx(u,{open:s,onOpenChange:c,placement:"rightTop",content:d,children:_})}):_})}function un(e){const{collapsed:n,iconSize:r,hideTitle:o}=e,{layoutConfig:i}=G(),{layoutIcons:a,brandPopoverContent:l}=en(),{token:d}=sn(),[s,c]=t(!1),m=on(),p=i.compact?"16px":"20px";let h={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&&(h={...h,paddingInline:d.padding},x={...x,padding:"0px"});const{brandInfo:g}=i;n?h={...h,paddingInline:`calc(50% - calc(${p} / 2))`}:f={...f,overflow:"hidden"};let y=L.jsx(L.Fragment,{});g?.logo&&(y="string"==typeof g.logo?L.jsx(He,{style:{width:p,minWidth:p},src:g.logo,alt:g.name}):L.jsx("div",{className:ve,style:{width:p,minWidth:p},children:g.logo}));const b=a?.itemMoreIcon||L.jsx(Ee,{}),v=l?{}:{href:g?.url},_=L.jsxs("a",{...v,style:h,children:[L.jsxs("div",{style:f,children:[y,L.jsxs("div",{className:be,style:{opacity:n?"0":"1"},children:[L.jsx("h4",{style:{width:"90%"},children:g?.name}),o?void 0:L.jsx("span",{style:{color:d.colorTextSecondary,width:"90%"},children:g?.title})]})]}),l?L.jsx("div",{style:{opacity:n?"0":"1",display:"flex",placeItems:"center"},children:L.jsx(dn,{icon:b,size:r||14})}):L.jsx(L.Fragment,{})]});return L.jsx("div",{className:ye,style:x,children:l?L.jsx(m.Provider,{value:{close:()=>{c(!1)},record:g},children:L.jsx(u,{open:s,onOpenChange:c,placement:"rightTop",content:l,children:_})}):_})}function mn(e){const{layoutConfig:n}=G(),{brandPopoverContent:r}=en(),[o,i]=t(!1),a=on(),l=n.compact?"16px":"20px",{brandInfo:d}=n;let s=L.jsx(L.Fragment,{});d?.logo&&(s="string"==typeof d.logo?L.jsx(He,{style:{width:l},src:d.logo,alt:d.name}):L.jsx("div",{className:ve,style:{width:l},children:d.logo}));let c=r?L.jsx(a.Provider,{value:{close:()=>{i(!1)},record:d},children:L.jsx(u,{open:o,onOpenChange:i,content:r,placement:"rightTop",children:L.jsx("a",{children:s})})}):L.jsx("a",{href:d?.url,children:s});return L.jsxs("div",{className:_e,style:e.style,children:[c,L.jsx("div",{className:ae,children:e.children})]})}function pn(e){const{collapsed:n}=e,{brandPopoverContent:r}=en(),{layoutConfig:o}=G(),[i,a]=t(!1),l=on(),d=n?o.compact?"16px":"20px":o.compact?"56px":"64px",{brandInfo:s}=o,c={opacity:n?"0":"1",height:n?"0px":"auto"};let m=L.jsx(L.Fragment,{});if(!s)return L.jsx(L.Fragment,{});let p=[je];n&&p.push(ke),s?.logo&&(m="string"==typeof s.logo?L.jsx(He,{style:{width:d},src:s.logo,alt:s.name}):L.jsx("div",{className:ve,style:{width:d},children:s.logo}));let h=r?L.jsx(l.Provider,{value:{close:()=>{a(!1)},record:s},children:L.jsx(u,{open:i,onOpenChange:a,content:r,placement:"rightTop",children:L.jsx("a",{children:m})})}):L.jsx("a",{href:s?.url,children:m});return L.jsxs("div",{className:p.join(" "),children:[h,L.jsxs("div",{style:c,children:[L.jsx("span",{children:s?.name}),s.title?L.jsx("span",{className:we,children:s?.title}):L.jsx(L.Fragment,{})]})]})}function hn(e){return L.jsx("div",{style:{...e.style},children:e.children})}hn.displayName="BrandPopoverContent",hn.role=Je;const{useToken:xn}=c;function fn(e){const{collapsed:n,iconSize:r}=e,{layoutConfig:o}=G(),{layoutIcons:i,avatarPopoverContent:a}=en(),[l,d]=t(!1),s=tn(),{token:c}=xn(),m=o.compact?"20px":"24px";let p={justifyContent:"flex-start",gap:(o.compact?6:8)+"px"},h={height:`${o.headerHeight}px`},x={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:f}=o;n?p={...p,paddingInline:`calc(50% - calc(${m} / 2))`}:x={...x,overflow:"hidden"};let g=L.jsx(L.Fragment,{});f?.avatar&&(g="string"==typeof f.avatar?L.jsx(He,{style:{width:m,borderRadius:"999px"},src:f.avatar,alt:f.uid}):f.avatar);const y=i?.itemMoreIcon||L.jsx(Ee,{}),b=L.jsx("div",{className:Ce,style:h,children:L.jsxs("a",{style:p,children:[L.jsxs("div",{style:x,children:[g,L.jsxs("div",{className:be,style:{opacity:n?"0":"1"},children:[L.jsx("h4",{children:f?.uid}),f?.title?void 0:L.jsx("span",{style:{color:c.colorTextSecondary},children:f?.title})]})]}),a?L.jsx("div",{style:{opacity:n?"0":"1",display:"flex",placeItems:"center"},children:L.jsx(dn,{icon:y,size:r||14})}):L.jsx(L.Fragment,{})]})});return a?L.jsx(s.Provider,{value:{close:()=>d(!1),record:f},children:L.jsx(u,{open:l,onOpenChange:d,placement:"right",content:a,children:b})}):b}function gn(e){const{iconSize:n=14}=e,{layoutConfig:r}=G(),{userInfo:o}=r,{avatarPopoverContent:i}=en(),[a,l]=t(!1),d=tn();let s=L.jsx(We,{});const c=n+4,m={width:`${c}px`,height:`${c}px`,overflow:"hidden",display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer"};o?.avatar&&(s="string"==typeof o.avatar?L.jsx(He,{style:{width:c,borderRadius:"999px"},src:o.avatar,alt:o.uid}):o.avatar);const p=L.jsxs("div",{className:ue,children:[L.jsx("div",{style:m,children:s}),L.jsx("span",{children:o?.uid})]});return i?L.jsx(d.Provider,{value:{close:()=>l(!1),record:o},children:L.jsx(u,{open:a,onOpenChange:l,placement:"left",content:i,children:p})}):L.jsx(L.Fragment,{children:p})}function yn(e){return L.jsx("div",{style:{...e.style},children:e.children})}yn.displayName="AvatarPopoverContent",yn.role=Ye;const{useToken:bn}=c;function vn(e){const{token:n}=bn(),{layoutIcons:r,toolbarExtraItems:t}=en(),o=n.Menu?.iconSize||16,[i,a]=r?.fullScreenIcons?.slice(0,2)||[L.jsx(Oe,{}),L.jsx(Ae,{})],l=L.jsx(dn,{icon:i,size:o}),d=L.jsx(dn,{icon:a,size:o});return L.jsxs("div",{className:se,children:[e.showAvatar?L.jsxs("div",{className:ce,children:[L.jsx(gn,{iconSize:o+4}),L.jsx(p,{"data-adminui-role":"desk-toolbar",orientation:"vertical"})]}):L.jsx(L.Fragment,{}),t,L.jsx("div",{className:ce,"data-adminui-role":"desk-toolbar",children:L.jsx(Z,{buttons:[L.jsx(m,{icon:d,type:"text"},"minimize"),L.jsx(m,{icon:l,type:"text"},"maximize")]})})]})}function _n(e){const n=L.jsx("div",{className:ce,"data-adminui-role":"desk-toolbar",children:e.children});return e?L.jsx(L.Fragment,{children:n}):L.jsx(L.Fragment,{})}_n.displayName="ToolbarExtraItems",_n.role=Qe;const{useToken:jn}=c;function wn(e){const{style:n}=e,{collapsed:r,setCollapsed:t,layoutIcons:o}=en(),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,d]=o?.collapsedIcons?.slice(0,2)||[L.jsx(Ne,{}),L.jsx(Te,{})];return L.jsx("div",{style:i,children:L.jsx("div",{style:a,onClick:()=>{t(!r)},children:r?l:d})})}function kn(e){const{style:n,offset:r=0,top:t}=e,{collapsed:o,setCollapsed:i,layoutIcons:a}=en(),{token:l}=jn();let d={right:"-14px"},s={backgroundColor:n?.backgroundColor,border:`solid 1px ${l.colorBorderSecondary}`};t&&(d={...d,right:"-12px",display:"initial"},s={...s,width:"24px",height:"24px",borderRadius:"12px",transform:`translateY(${r+10}px)`});const[c,u]=a?.collapsedIcons?.slice(0,2)||[L.jsx(Te,{}),L.jsx(Ne,{})];return L.jsx("div",{className:fe,style:d,onClick:()=>{i(!o)},children:L.jsx("div",{style:s,className:ge,children:o?c:u})})}function Cn(e){const{collapsed:n,setCollapsed:r,layoutIcons:t}=en(),[o,i]=t?.mobileAsideIcons?.slice(0,2)||[L.jsx(Le,{}),L.jsx(Fe,{})];return L.jsx("div",{className:Se,children:L.jsx(m,{type:"text",style:{cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center",...e.style},icon:n?o:i,onClick:()=>{r(!n)}})})}const{Header:Sn}=h,{useToken:Bn}=c;function In(e){const{layoutConfig:n}=G(),{token:r,theme:t}=Bn(),o=w(),i=n.headerTransparent||n.headerBlur?Q(r.colorBorderSecondary,.6):r.colorBorderSecondary,a=n.hideBorder?"0px":"1px solid "+i,l=n.flated&&"headMenu"==n.layoutType||1==t.id?"dark":"light",d=n.flated&&"headMenu"==n.layoutType?"dark":"light",s=n.flated&&"headMenu"==n.layoutType?r.colorPrimary:r.colorBgContainer,u={height:e.height+"px",lineHeight:e.height+"px"};let m=L.jsx(L.Fragment,{}),p={...u,borderBottom:a,backgroundColor:n.headerTransparent?"transparent":s};n.headerBlur&&(p={...p,backgroundColor:Q(s,.6),transform:"translateZ(0)",backdropFilter:"blur(8px)"});let g={...u,fontSize:r.Menu?.iconSize,backgroundColor:"transparent",flex:"none"},y=[ne],b=L.jsx(L.Fragment,{});"headMenu"==n.layoutType?(m=L.jsx("div",{style:u}),p={...p,paddingInlineEnd:r.paddingXS+"px"},b=L.jsx("div",{className:le,style:{width:n?.asideWidth+"px"},children:L.jsx(cn,{collapsed:!1,iconSize:r.Menu?.iconSize,hideTitle:!0})}),y.push(te)):(p={...p,paddingInline:r.paddingXS+"px"},y.push(re));let v=L.jsx(mn,{children:e.title}),_=L.jsx(Cn,{iconSize:n.compact?12:14});const j=[oe];n.flated||j.push(ze);let k="dark"==l?[c.darkAlgorithm]:[c.defaultAlgorithm];return L.jsxs(L.Fragment,{children:[m,L.jsx(x,{theme:{algorithm:k},children:L.jsx(h,{className:y.join(" "),style:g,children:L.jsxs(Sn,{className:j.join(" "),style:p,children:[_,b,v,L.jsx(f,{onClick:e=>{o(e.key)},defaultSelectedKeys:e.selectedKeys,selectedKeys:e.selectedKeys,mode:"horizontal",theme:d,classNames:{root:ie},items:e.menuData||[]}),L.jsx(vn,{showAvatar:"rightTop"==n.avatarPosition})]})})})]})}const{Sider:Pn}=h,{useToken:Mn}=c,{useBreakpoint:zn}=g;function Tn(e){const n=i([]);n.current=e.openerKeys||[];const[r,o]=t(e.openerKeys),{layoutConfig:a}=G(),{asideWidth:l}=a,d=e.headerHeight,{collapsed:s,setCollapsed:c}=en(),{token:u,theme:m}=Mn(),p=w(),h=zn().xs?0:d,x=a.headerTransparent||a.headerBlur?Q(u.colorBorderSecondary,.6):u.colorBorderSecondary,g=a.hideBorder||0==h&&s?"0px":"1px solid "+x,y="headMenu"==a.layoutType||0==h?e.headerHeight:0,b="headMenu"==a.layoutType||0==h?"calc(100% - "+e.headerHeight+"px)":"100%";let v={width:`${a.asideWidth}px`,height:`${b}`,insetBlockStart:y+"px",maxWidth:`${a.asideWidth}px`,minWidth:`${a.asideWidth}px`,borderRight:g,position:"fixed",transition:"width 0.3s, min-width 0.3s, max-width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"},_={overflow:"auto",flex:1};const j=u.Menu?.iconSize,k=1==m.id?"dark":"light",C=k;let S=0,B=L.jsx(L.Fragment,{});"leftMenu"==a.layoutType&&(S=a.headerHeight||0,B=a.largeBrand?L.jsx(pn,{collapsed:s,iconSize:j}):L.jsx(un,{collapsed:s,iconSize:j,hideTitle:!0}));const I=a.asideTransparent?"transparent":a.asideBlur?Q(u.colorBgContainer,.6):u.colorBgContainer;v={...v,backgroundColor:I},a.asideBlur&&(v={...v,transform:"translateZ(0)",backdropFilter:"blur(8px)"}),s&&(_={..._,overflow:"hidden"});let P=[me];P.push(de);let M=L.jsx(L.Fragment,{});switch(a.collapsedPosition){case"bottom":M=L.jsx(wn,{iconSize:j,style:{backgroundColor:I,width:`${d}px`,borderRight:g}});break;case"center":case"top":M=L.jsx(kn,{iconSize:12,top:"top"==a.collapsedPosition,flated:a.flated,offset:S,style:{backgroundColor:I}})}let z=e.menuData||[];return a.asideMenuGroup&&z.forEach(e=>{e.children&&(e.type="group")}),L.jsxs(L.Fragment,{children:[L.jsx("div",{style:{width:s?d:l,flex:`0 0 ${s?d:l}px`,maxWidth:s?d:l,minWidth:s?d:l,transition:"background-color 0.3s, min-width 0.3s, max-width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"},className:pe}),L.jsxs(Pn,{width:l,className:P.join(" "),style:v,theme:C,collapsedWidth:h,collapsible:!0,trigger:null,breakpoint:"md",collapsed:s,onCollapse:c,children:[h>0?B:L.jsx(L.Fragment,{}),e.header,L.jsx("div",{style:_,children:L.jsx(f,{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:s?void 0:r,defaultSelectedKeys:e.selectedKeys,defaultOpenKeys:n.current,theme:k,items:z})}),e.footer,"leftBottom"==a.avatarPosition?L.jsx(fn,{collapsed:s,iconSize:j}):L.jsx(L.Fragment,{}),M]})]})}const Nn=e=>e.reduce((e,n)=>{const{children:r,...t}=n;return e[t.path]=t,r&&Object.assign(e,Nn(r)),e},{});function Fn(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 Ln=e=>{let n=[];if(!(null==e||e.length<=0))return e.forEach(e=>{let r=An(e);r.children=Ln(e.children),n.push(r)}),n},En=(e,n)=>{if(e)return e.map(e=>{const r=Wn(e,n),t={...e,label:r};return e.children&&(t.children=En(e.children,n)),t})},Wn=(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),An=e=>({key:e.path||e.name,label:e.label||e.name,icon:e.icon,extra:e.extra,title:e.label});function On(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 Rn(e){return On(e)}function Hn(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 $n(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:Kn(n.extra),icon:Kn(n.icon)};return o}(e,n);return n.children&&(r.children=$n(r.path,n.children)),r})}function Vn(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=B(t,r.params));t?.startsWith("/")&&(t=t.slice(1));let o=e+t,i={...r,path:o,originalPath:n.path,extra:Kn(r.extra),icon:Kn(r.icon)};return i}(e,n);return n.children&&(r.children=Vn(r.path,n.children)),r})}function Gn(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 Kn=n=>e.isValidElement(n)?n:"function"==typeof n||"object"==typeof n?e.createElement(n):null,{useToken:qn}=c;function Un(n){const{layoutConfig:r,themeSkin:o}=G(),i=v(),{token:l}=qn(),[d,s]=t(!1),c={backgroundColor:l.colorBgLayout};let u=r.headerHeight||56;r.compact&&(u-=4);const m=r.disabledLocale?n.menuData:En(n.menuData,i),p=m&&m?.length>0?m[0].children:[],h=Nn(m||[]),x=Ln(p),f=k(),g=f.map(e=>e.pathname),y=f[f.length-1];let b=[],_=[],j=[],w=[];if("leftMenu"==r.layoutType?(w=x||[],_=g):(j=x||[],b=g),r.splitMenu){const[e,n]=Hn(g),{rootMenuItems:t,childrenMenuItems:o}=Fn(x,g);"leftMenu"==r.layoutType?(w=t,j=o,_=e,b=n):(w=o,j=t,b=e,_=n)}const S=e.Children.toArray(n.children),B=S.find(n=>e.isValidElement(n)&&n.type.role===Ke),I=S.find(n=>e.isValidElement(n)&&n.type.role===qe),P=S.find(n=>e.isValidElement(n)&&n.type.role===De),M=S.find(n=>e.isValidElement(n)&&n.type.role===Ye),z=S.find(n=>e.isValidElement(n)&&n.type.role===Je),T=S.find(n=>e.isValidElement(n)&&n.type.role===Ze),N=S.find(n=>e.isValidElement(n)&&n.type.role===Qe),F=$e,E=a(()=>({collapsed:d,headerHeight:u,layoutIcons:n.layoutIcons,avatarPopoverContent:M,brandPopoverContent:z,toolbarExtraItems:N,flattenMenuMap:h,setCollapsed:s}),[d,u,n.layoutIcons,h]),W=h[y.pathname].label||"";return document.title=W,L.jsxs(L.Fragment,{children:[L.jsx(F,{value:E,children:L.jsxs(J,{...n,style:c,children:[L.jsx(J.Aside,{children:L.jsx(Tn,{headerHeight:u,header:B,footer:I,menuData:w,selectedKeys:_,openerKeys:_})}),L.jsx(J.Header,{children:L.jsx(In,{height:u,menuData:j,selectedKeys:b,title:W})}),L.jsx(J.Content,{children:L.jsx(C,{context:{title:W,footer:P}})}),L.jsx(J.Background,{children:o?o.backgroundContent:L.jsx(L.Fragment,{})})]})}),T]})}const Xn=e=>I(e),Dn=()=>Xn("#22222222"),Yn=()=>Xn("#FFFFFF");function Jn(e){const n=nn(),{layoutConfig:r}=G(),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?L.jsx(L.Fragment,{}):L.jsxs("div",{className:xe,style:o,children:[L.jsx("div",{children:e.icon}),L.jsx("div",{style:{opacity:n?"0":"1"},children:e.children})]})}function Zn(e){return L.jsx(L.Fragment,{children:e.children})}function Qn(e){return L.jsx("div",{className:he,children:e.children})}function er(e){return L.jsx("div",{className:he,children:e.children})}Zn.displayName="AsideContentItems",Jn.displayName="AsideContentItem",er.displayName="AsideHeaderContent",er.Items=Zn,er.Item=Jn,Qn.displayName="AsideFooterContent",Qn.Items=Zn,Qn.Item=Jn,Qn.role=qe,er.role=Ke,Zn.role=Ue,Jn.role=Xe;const nr="adminui-default-config",rr=()=>{const e=v(),{layoutConfig:n}=G(),{f:r,t:t}=tr(n.disabledLocale?void 0:e);return{...e,f:r,t:t}},tr=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()}),or=e=>{const{brandInfo:n,userInfo:r,...t}=e;return t},ir=e=>{e||(e=nr);const n=window.localStorage.getItem(e);try{if(n)return JSON.parse(n)}catch(e){console.error(e)}},ar=(e,n)=>{n||(n=nr);const{brandInfo:r,userInfo:t,...o}=e,i=JSON.stringify(o);window.localStorage.setItem(n,i)},lr=(e,n)=>{let r={...e};if(n){const e=n.theme.length<2?n.theme[0]:r.theme;r={...r,primaryColor:n.primaryColor??r.primaryColor,containerBlur:n.containerBlur??r.containerBlur,asideBlur:n.asideBlur??r.asideBlur,asideWidth:n.asideWidth??r.asideWidth,headerBlur:n.asideBlur??r.headerBlur,theme:e}}return r};function dr(e){const n=k(),{flattenMenuMap:r}=en(),{layoutConfig:t}=G(),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="";return"first"==t.visibleBreadcrumbIcon?i=Be:"all"==t.visibleBreadcrumbIcon&&(i=Ie),L.jsx(y,{classNames:{item:Pe,root:i},style:e.style,items:o,itemRender:sr})}function sr(e,n,r,t){return e?.path===r[r.length-1]?.path?L.jsxs("span",{children:[e.icon,e.title]}):L.jsxs(S,{className:"adminui-breadcrumb-link",to:"/"+t[t.length-1],children:[e.icon,e.title]})}const{useToken:cr}=c;function ur(e){const{mode:n="inline",stretch:r="inline"}=e,{token:t}=cr(),{layoutConfig:o}=G(),{footer:i,title:a}=rn();let l={},d={flex:"none"},s={borderRadius:o.compact?t.borderRadius:t.borderRadiusLG};const c=e.hideBorder||o.hideBorder,u=e.hideBreadcrumb||o.hideBreadcrumb,m=e.hideTitle||o.hideTitle;"box"!=n&&"panel"!=n||(l={padding:t.padding},"panel"==n&&(s={...s,padding:t.padding,backgroundColor:t.colorBgContainer},c||(s={...s,border:`solid 1px ${t.colorBorderSecondary}`}))),"fill"!=r&&"auto"!=r||(d={...d,flex:"auto"},"fill"==r&&(s={...s,minHeight:"100%"}));const p={margin:m?"0 0 1rem":"0px"},h=u?L.jsx(L.Fragment,{}):L.jsx(dr,{style:p}),x=m?L.jsx(L.Fragment,{}):L.jsx("h3",{children:e.title||a});s={...s,...e.style};let f=!(e.hideFooter||o.hideFooter)&&e.children?L.jsx("footer",{children:i}):L.jsx(L.Fragment,{});return L.jsxs("div",{className:Me,style:l,children:[h,x,L.jsx("main",{style:d,children:L.jsx("div",{style:s,children:e.children})}),f]})}const mr=e=>L.jsx("div",{...e,children:e.children});function pr(e){return L.jsx(L.Fragment,{children:e.children})}mr.displayName="ContentFooter",mr.role=De,pr.displayName="SoltContent",pr.role=Ze;const hr="adminui-locale",xr=(e,n)=>{let r;return Object.entries(n).forEach(([n,t])=>{t.forEach(n=>{n.name==e&&(r=n)})}),r};function fr(e){const n=k(),{pathname:r}=n[0],i={...H,...e.layoutConfig,...e.disabledStorageConfig?{}:ir(r)};let l=e.themeSkins||[];const d=a(()=>(e=>{let n={tidy:[],rich:[]};return e.forEach(e=>{"rich"==e.skinType?n.rich.push(e):n.tidy.push(e)}),n})(l),[l]),s=e.locale||localStorage.getItem(hr)||i.locale||"en-US",u=e.menuData?$n("/",[e.menuData]):[],[m,p]=t(()=>{if(i.skinName){const e=xr(i.skinName,d);return lr(i,e)}return i}),[h,f]=t(s),g=V,y=$;let v=e.localeMessages||{};const j=a(()=>(e=>{let n=[];return Object.entries(e).forEach(([e,r])=>{n.push({name:r.name,locale:e,flag:r.flag})}),n})(v),[v]),w=e=>{localStorage.setItem(hr,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 C=a(()=>{if(m.skinName)return xr(m.skinName,d)},[l,m.skinName]),S="system"==(B=m.theme)?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":B;var B;const I=n=>{p(n),e.disabledStorageConfig||ar(n,r)},P=a(()=>({layoutConfig:m,locale:h,languages:j,themeSkin:C,themeSkinMap:d}),[j,h,j,d,C,m]),M=a(()=>({setLayoutConfig:I,setLocale:w}),[]),z=v[h]||v["en-US"],T=["he","ar","fa","ku"].filter(e=>h.startsWith(e)).length?"rtl":"ltr";let N="dark"===S?[c.darkAlgorithm]:[c.defaultAlgorithm],F=m.menuIconSize||14;const E=m.menuIconSize?.1*(F-10)+10:10;m.compact&&(N.push(c.compactAlgorithm),F-=2);let W={darkSubMenuItemBg:"transparent",subMenuItemBg:"transparent",iconSize:F,fontSize:F,itemMarginInline:m.flated?0:4,iconMarginInlineEnd:E,activeBarHeight:m.compact?2:4,darkPopupBg:Dn()[4]};const A={algorithm:N,token:{colorPrimary:m.primaryColor,borderRadius:m.flated?0:6},components:{Menu:W,Layout:{siderBg:"transparent",triggerBg:"transparent",lightSiderBg:"transparent",lightTriggerBg:"transparent"}}};return L.jsx(g.Provider,{value:P,children:L.jsx(y.Provider,{value:M,children:L.jsx(x,{theme:A,locale:z?.antdLocale,direction:T,modal:{mask:{blur:!1}},drawer:{mask:{blur:!1}},prefixCls:"adminui",children:L.jsx(b,{style:{height:"100%",width:"100%"},children:L.jsx(_,{locale:h,messages:z?.messages,children:L.jsx(Un,{menuData:u,layoutIcons:e.layoutIcons,children:e.children})})})})})})}fr.AsideHeader=er,fr.AsideFooter=Qn,fr.Footer=mr,fr.AvatarPopoverContent=yn,fr.BrandPopoverContent=hn,fr.SoltContent=pr,fr.HeaderToolbarExtra=_n;var gr={exports:{}},yr=P(gr.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),s=i.querySelector(t.barSelector),c=t.speed,u=t.easing;return i.offsetWidth,l(function(n){""===t.positionUsing&&(t.positionUsing=r.getPositioningCSS()),d(s,a(e,c,u)),1===e?(d(i,{transition:"none",opacity:1}),i.offsetWidth,setTimeout(function(){d(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),s=document.querySelector(t.parent);return d(a,{transition:"all 0 linear",transform:"translate3d("+l+"%,0,0)"}),t.showSpinner||(o=n.querySelector(t.spinnerSelector))&&p(o),s!=document.body&&c(s,"nprogress-custom-parent"),s.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()}}(),d=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 s(e,n){return("string"==typeof e?e:m(e)).indexOf(" "+n+" ")>=0}function c(e,n){var r=m(e),t=r+n;s(r,n)||(e.className=t.substring(1))}function u(e,n){var r,t=m(e);s(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}());
|
|
11
11
|
/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
|
|
12
|
-
* @license MIT */function
|
|
12
|
+
* @license MIT */function br(e){const n=l(e);return function(e){return L.jsx(d,{fallback:L.jsx(vr,{}),children:L.jsx(n,{...e})})}}yr.configure({showSpinner:!1});const vr=()=>(o(()=>{const e=setTimeout(()=>{yr.start()},200);return()=>{clearTimeout(e),yr.done()}},[]),L.jsx("div",{style:{height:"auto"}})),_r=()=>(o(()=>(yr.start(),()=>{yr.done()}),[location.hostname]),L.jsx("div",{style:{height:"auto"}}));export{fr as AntdLayout,ur as Container,Z as FullScreenButton,Re as LazyAvatar,He as LazyImage,br as LazyPage,vr as PageLoading,_r as RouteLoading,dn as ToolbarIcon,Gn as buildRouteWithParams,Nn as flattenMenuData,An as getAntdMenuItem,tr as getAppIntl,or as getBasicLayoutConfig,Dn as getBlackColors,Wn as getMenuLabel,ir as getStorageConfig,Yn as getWhiteColors,En as localeMenuData,Rn as matchPathToKeys,On as pathToKeys,Fn as separateMenuData,lr as setSkinConfig,ar as setStorageConfig,Hn as splitMenuKeys,$n as transformMenuData,Vn as transformRouteToMenuData,Ln as transformToAntdMenuData,rr as useAppIntl,an as useAvatarPopover,ln as useBrandPopover,K as useConfigAction,G as useConfigState,rn as useContainerOutlet,nn as useMainCollapsed,q as useTheme};
|