Child(template.cloneNode(true));
        }
        connectedCallback() {
            const close = event => e => {
                e.preventDefault();
                e.stopPropagation();
                this.removeAttribute('visible');
                this.dispatchEvent(new CustomEvent(event))
                this[`on${event}`] ? this[`on${event}`]() : eval(this.getAttribute(`on${event}`));
            }
            const ok = close('ok');
            const cancel = close('cancel');
            this.shadow