System.register([],(function(n){"use strict";return{execute:function(){var r="bal-focused";var t="bal-focusable";var o=n("F",["Tab","ArrowDown","Space","Escape"," ","Shift","Enter","ArrowLeft","ArrowRight","ArrowUp","Home","End"]);var u=n("s",(function(n){var u=[];var e=true;var c=document;var f=document.body;var a=function(n){u.forEach((function(n){return n.classList.remove(r)}));n.forEach((function(n){return n.classList.add(r)}));u=n};var i=function(){e=false;a([])};var s=function(n){e=o.includes(n.key);if(!e){a([])}};var v=function(n){if(e&&n.composedPath!==undefined){var r=n.composedPath().filter((function(n){if(n.classList){return n.classList.contains(t)}return false}));a(r)}};var d=function(){if(c.activeElement===f){a([])}};c.addEventListener("keydown",s);c.addEventListener("focusin",v);c.addEventListener("focusout",d);c.addEventListener("touchstart",i);c.addEventListener("mousedown",i);var w=function(){c.removeEventListener("keydown",s);c.removeEventListener("focusin",v);c.removeEventListener("focusout",d);c.removeEventListener("touchstart",i);c.removeEventListener("mousedown",i)};return{destroy:w,setFocus:a}}))}}}));