get nonce() {
    this.cachedNonce = '';
    if (!document.nonce) {
      const csp = document.querySelector('meta[http-equiv="Content-Security-Policy"]');
      if (csp) {
        let nonce = csp.getAttribute('content').match(/'nonce-(.*?)'/g);
        nonce = nonce ? nonce[0]?.replace('\'nonce-', '').replace('\'', '') : undefined;
        document.nonce = nonce;
      }
    }
    return document.nonce;
  }
/**
   * @returns {string} gets the nonce from the meta tag
   */
@returns {string} gets the nonce from the meta tag
@returns { string } gets the nonce from the meta tag
get nonce() {
    this.cachedNonce = '';
    if (!document.nonce) {
      const csp = document.querySelector('meta[http-equiv="Content-Security-Policy"]');
      if (csp) {
        let nonce = csp.getAttribute('content').match(/'nonce-(.*?)'/g);
        nonce = nonce ? nonce[0]?.replace('\'nonce-', '').replace('\'', '') : undefined;
        document.nonce = nonce;
      }
    }
    return document.nonce;
  }
get nonce ( ) { this . cachedNonce = '' ; if ( ! document . nonce ) { const csp = document . querySelector ( 'meta[http-equiv="Content-Security-Policy"]' ) ; if ( csp ) { let nonce = csp . getAttribute ( 'content' ) . match ( / 'nonce-(.*?)' / g ) ; nonce = nonce ? nonce [ 0 ] ?. replace ( '\'nonce-' , '' ) . replace ( '\'' , '' ) : undefined ; document . nonce = nonce ; } } return document . nonce ; }
@returns {string} gets the nonce from the meta tag
@returns { string } gets the nonce from the meta tag