
! function(a) {
    function b() {
        var b, c = a("#password1").val(),
            d = a("#password2").val();
        if (a("#pass-strength-result").removeClass("short bad good strong"), !c) return void a("#pass-strength-result").html(pwsL10n.empty);
        switch (b = wp.passwordStrength.meter(c, wp.passwordStrength.userInputBlacklist(), d)) {
            case 2:
                a("#pass-strength-result").addClass("bad").html(pwsL10n.bad);
                break;
            case 3:
                a("#pass-strength-result").addClass("good").html(pwsL10n.good);
                break;
            case 4:
                a("#pass-strength-result").addClass("strong").html(pwsL10n.strong);
                break;
            case 5:
                a("#pass-strength-result").addClass("short").html(pwsL10n.mismatch);
                break;
            default:
                a("#pass-strength-result").addClass("short").html(pwsL10n["short"])
        }
    }

    a(document).ready(function()
    {
    	a("#password1").val("").keyup(b);
        a("#password2").val("").keyup(b);
        a("#pass-strength-result").show();
    });
}(jQuery);
