(()=>{var e=document.documentElement,i=sessionStorage.getItem("__THEME_CONFIG__");const t="ltr",a="default",r="light",s="fluid",d="fixed",o="on-hover-active",n=!1,u="light",b="dark";function c(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}var l={skin:e.getAttribute("data-skin")||a,theme:"system"===e.getAttribute("data-bs-theme")?c():e.getAttribute("data-bs-theme")||("system"===r?c():r),"topbar-color":e.getAttribute("data-topbar-color")||u,"sidenav-color":e.getAttribute("data-menu-color")||b,"sidenav-size":e.getAttribute("data-sidenav-size")||o,"sidenav-user":e.hasAttribute("data-sidenav-user")||n,position:e.getAttribute("data-layout-position")||d,width:e.getAttribute("data-layout-width")||s,dir:e.getAttribute("dir")||t},i=(window.defaultConfig=structuredClone(l),i?JSON.parse(i):l);if(window.config=i,e.setAttribute("data-skin",i.skin),e.setAttribute("data-bs-theme","system"===i.theme?c():i.theme),e.setAttribute("data-menu-color",i["sidenav-color"]),e.setAttribute("data-topbar-color",i["topbar-color"]),e.setAttribute("data-layout-width",i.width),e.setAttribute("dir",i.dir),i["sidenav-size"]){let t=i["sidenav-size"];window.innerWidth<=767?t="offcanvas":window.innerWidth<=1140&&!["offcanvas"].includes(t)&&(t="condensed"),e.setAttribute("data-sidenav-size",t),!0===i["sidenav-user"]?e.setAttribute("data-sidenav-user","true"):e.removeAttribute("data-sidenav-user")}})();