System.register(["./p-b152ce82.system.js","./p-1b1e57cd.system.js","./p-2c9d3c05.system.js"],(function(e){"use strict";var r,t,c,n,a,o;return{setters:[function(e){r=e.s},function(e){t=e.U;c=e.g;n=e.s},function(e){a=e.F;o=e.S}],execute:function(){var i=function(e){if(e.media!=="(prefers-color-scheme: dark)")return;var r=u();var t=r==="auto"?e.matches?"dark":"light":r;document.documentElement.setAttribute("color-scheme",t)};var s=function(){var e=window.matchMedia("(prefers-color-scheme: dark)");e.addEventListener?e.addEventListener("change",i):e.addListener(i);i(e)};var u=function(){var e=localStorage.getItem("bce-color-scheme");return e?e:"auto"};var l=function(e){if(e==="dark"||e==="light"){localStorage.setItem("bce-color-scheme",e);document.documentElement.setAttribute("color-scheme",e)}else{localStorage.removeItem("bce-color-scheme");var r=window.matchMedia("(prefers-color-scheme: dark)");i(r)}};var d={file:a.inMemory(),FileManager:a,generateId:function(){return t.v4()},getColorScheme:u,getColorShade:c,setColorScheme:l,setColorShade:n,ScrollSpy:o};var m=function(){window.BCE=window.BCE||d;s();r((function(e){if(b(e,"bce-button","bce-fab"))return"bce-fab";if(b(e,"bce-button","bce-menu"))return"bce-menu";if(b(e,"bce-link","bce-link"))return"bce-link";if(b(e,"bce-link","bce-nav","bce-header"))return"bce-header";if(b(e,"bce-nav","bce-header"))return"bce-header";if(b(e,"bce-nav","bce-side-bar"))return"bce-side-bar";var r=e.closest("bce-root");return e.getAttribute("mode")||r&&r.mode||"default"}))};var b=function(e,r){var t=[];for(var c=2;c<arguments.length;c++){t[c-2]=arguments[c]}if(!e.matches(r))return false;for(var n=0,a=t;n<a.length;n++){var o=a[n];var i=e.parentElement;if(!i||!i.matches(o))return false;e=i}return true};var f=e("g",m)}}}));