import { getRandomValues } from 'pmcrypto';

export const getRandomString = (length) => {
    const charset = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
    let i;
    let result = '';

    const values = getRandomValues(new Uint32Array(length));

    for (i = 0; i < length; i++) {
        result += charset[values[i] % charset.length];
    }

    return result;
};

@@ -383,8 +383,70 @@
 ult;%0A%7D;%0A
+%0Aexport const normalize = (value = '') =%3E value.toLowerCase();

Add normalize helper