System.register(["./p-a0301c4e.system.js","./p-06dddc70.system.js","./p-91726714.system.js"],(function(e){"use strict";var r,t,c;return{setters:[function(e){r=e.s},function(e){t=e.U},function(e){c=e.F}],execute:function(){var n=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 a={file:c.inMemory(),setColorScheme:n,generateId:function(){return t.v4()},FileManager:c};var o=function(){window.BCE=window.BCE||a;var e=window.matchMedia("(prefers-color-scheme: dark)");e.addEventListener?e.addEventListener("change",i):e.addListener(i);i(e);r((function(e){if(s(e,"bce-button","bce-fab"))return"bce-fab";if(s(e,"bce-button","bce-menu"))return"bce-menu";if(s(e,"bce-link","bce-link"))return"bce-link";if(s(e,"bce-nav","bce-header"))return"bce-header";if(s(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 s=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 s=e.parentElement;if(!s||!s.matches(o))return false;e=s}return true};var i=function(e){switch(e.media){case"(prefers-color-scheme: dark)":var r=localStorage.getItem("bce-color-scheme");var t=r||(e.matches?"dark":"light");document.documentElement.setAttribute("color-scheme",t);break}};var u=e("g",o)}}}));