(()=>{function n(n,e){return function(n){if(Array.isArray(n))return n}(n)||function(n,t){var e=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=e){var r,s,a,i,o=[],l=!0,u=!1;try{if(a=(e=e.call(n)).next,0===t){if(Object(e)!==e)return;l=!1}else for(;!(l=(r=a.call(e)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(n){u=!0,s=n}finally{try{if(!l&&null!=e.return&&(i=e.return(),Object(i)!==i))return}finally{if(u)throw s}}return o}}(n,e)||function(n,e){if(n){if("string"==typeof n)return t(n,e);var r={}.toString.call(n).slice(8,-1);return"Object"===r&&n.constructor&&(r=n.constructor.name),"Map"===r||"Set"===r?Array.from(n):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(n,e):void 0}}(n,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,r=Array(t);e<t;e++)r[e]=n[e];return r}jQuery((function(t){var e=t('input[type="password"]');if(e.length){var r=e.closest("form"),s=t("#pass-strength-result").hide(),a={length:!1,case:!1,number:!1,symbol:!1,zxcvbn:!1},i=function(){var n;if(null!==(n=window.wpdef_pws_strings)&&void 0!==n&&n.message&&!t("#password-hint-message").length){var r='\n            <p id="password-hint-message">'.concat(window.wpdef_pws_strings.message,'</p>\n            <ul id="password-hint-list"></ul>\n        ');e.after(r),o()}},o=function(){!function(n){a.length=n.length>=12,a.case=/[A-Z]/.test(n)&&/[a-z]/.test(n),a.number=/\d/.test(n),a.symbol=/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/.test(n),a.zxcvbn="undefined"!=typeof zxcvbn&&n.length>0&&zxcvbn(n).score>=3&&!zxcvbn(n).feedback.warning}(e.val());var s=t("#password-hint-list");s.length&&(s.html(Object.entries(a).map((function(t){var e=n(t,2),r=e[0],s=e[1];return'<li>\n                    <span class="'.concat(s?"valid dashicons dashicons-yes":"invalid dashicons dashicons-no-alt",'"></span>\n                    ').concat(window.wpdef_pws_strings.requirements[r]," \n                </li>")})).join("")),r.find(":submit").prop("disabled",!Object.values(a).every(Boolean)))};e.add(s).add("#createusersub, #submit").off(),e.one("focus",i),e.on("input pwupdate",o)}}))})();