import { registerCard } from "card-tools/src/editor"; const bases = [customElements.whenDefined('home-assistant-main'), customElements.whenDefined('hui-view')]; Promise.race(bases).then(() => { const LitElement = customElements.get('home-assistant-main') ? Object.getPrototypeOf(customElements.get('home-assistant-main')) : Object.getPrototypeOf(customElements.get('hui-view')); const html = LitElement.prototype.html; const css = LitElement.prototype.css; class BrowserPlayerEditor extends LitElement { setConfig(config) { } render() { return html`