license export function patchCustomElements ( _global , api ) { const { isBrowser , isMix } = api . getGlobalObjects ( ) ! ; if ( ( ! isBrowser && ! isMix ) || ! _global [ 'customElements' ] || ! ( 'customElements' in _global ) ) { return ; } const callbacks = [ 'connectedCallback' , 'disconnectedCallback' , 'adoptedCallback' , 'attributeChangedCallback' ] ; api . patchCallbacks ( api , _global . customElements , 'customElements' , 'define' , callbacks ) ; }