"use strict";(self.webpackChunkelement_web=self.webpackChunkelement_web||[]).push([[9393],{"./src/utils/PasswordScorer.ts":(e,n,s)=>{s.d(n,{scorePassword:()=>b});var t=s("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),r=s("./node_modules/@zxcvbn-ts/core/dist/index.esm.js"),o=s("./node_modules/@zxcvbn-ts/language-common/dist/index.esm.js"),a=s("./node_modules/@zxcvbn-ts/language-en/dist/index.esm.js"),c=s("./node_modules/@zxcvbn-ts/language-en/dist/translations.esm.js"),i=s("./src/languageHandler.tsx"),g=s("./src/SdkConfig.ts");function u(e,n){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),s.push.apply(s,t)}return s}function d(e){for(var n=1;n<arguments.length;n++){var s=null!=arguments[n]?arguments[n]:{};n%2?u(Object(s),!0).forEach(function(n){(0,t.A)(e,n,s[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):u(Object(s)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(s,n))})}return e}function b(e,n,s=[]){if(0===n.length)return null;const t=[...s];if(e){t.push(e.getUserIdLocalpart());try{const n=e.getDomain();t.push(n)}catch{}}r.u2.setTranslations({warnings:{straightRow:(0,i._t)("zxcvbn|warnings|straightRow"),keyPattern:(0,i._t)("zxcvbn|warnings|keyPattern"),simpleRepeat:(0,i._t)("zxcvbn|warnings|simpleRepeat"),extendedRepeat:(0,i._t)("zxcvbn|warnings|extendedRepeat"),sequences:(0,i._t)("zxcvbn|warnings|sequences"),recentYears:(0,i._t)("zxcvbn|warnings|recentYears"),dates:(0,i._t)("zxcvbn|warnings|dates"),topTen:(0,i._t)("zxcvbn|warnings|topTen"),topHundred:(0,i._t)("zxcvbn|warnings|topHundred"),common:(0,i._t)("zxcvbn|warnings|common"),similarToCommon:(0,i._t)("zxcvbn|warnings|similarToCommon"),wordByItself:(0,i._t)("zxcvbn|warnings|wordByItself"),namesByThemselves:(0,i._t)("zxcvbn|warnings|namesByThemselves"),commonNames:(0,i._t)("zxcvbn|warnings|commonNames"),userInputs:(0,i._t)("zxcvbn|warnings|userInputs"),pwned:(0,i._t)("zxcvbn|warnings|pwned")},suggestions:{l33t:(0,i._t)("zxcvbn|suggestions|l33t"),reverseWords:(0,i._t)("zxcvbn|suggestions|reverseWords"),allUppercase:(0,i._t)("zxcvbn|suggestions|allUppercase"),capitalization:(0,i._t)("zxcvbn|suggestions|capitalization"),dates:(0,i._t)("zxcvbn|suggestions|dates"),recentYears:(0,i._t)("zxcvbn|suggestions|recentYears"),associatedYears:(0,i._t)("zxcvbn|suggestions|associatedYears"),sequences:(0,i._t)("zxcvbn|suggestions|sequences"),repeated:(0,i._t)("zxcvbn|suggestions|repeated"),longerKeyboardPattern:(0,i._t)("zxcvbn|suggestions|longerKeyboardPattern"),anotherWord:(0,i._t)("zxcvbn|suggestions|anotherWord"),useWords:(0,i._t)("zxcvbn|suggestions|useWords"),noNeed:(0,i._t)("zxcvbn|suggestions|noNeed"),pwned:(0,i._t)("zxcvbn|suggestions|pwned")},timeEstimation:c.A.timeEstimation});let o=(0,r.K1)(n,t);if(n.includes(" ")){const e=(0,r.K1)(n.replace(/ /g,""),t);e.score<o.score&&(o=e)}return o}r.u2.setOptions({dictionary:d(d(d({},o.z),a.z),{},{userInputs:["riot","matrix","element",g.Ay.get().brand]}),graphs:o.K,useLevenshteinDistance:!0})}}]);
//# sourceMappingURL=9393.js.map