text: window.ci_unique=Math.floor(1e4*Math.random()),window.ci_fallback_config_active=!1;function createInputElement(a,b){let c=document.createElement("input");return c.maxLength=1,c.classList.add("codeinputs-input"),null!=b.inputClass&&c.classList.add(b.inputClass),c.style.caretColor="transparent",c.style.width=b.styles?.width?b.styles.width:"50px",c.style.fontSize=b.styles?.fontSize?b.styles.fontSize:"4em",c.style.fontFamily=b.styles?.font?b.styles.font:"Helvetica Neue,Arial,sans-serif",c.id=a,c.style.textAlign="center",c}function codeinputs_finish(a,b,c){if(a.callback!=null){let d="";b.forEach(a=>{d+=a.value}),d.length==(a.length?a.length:6)&&(a.callback(d),c.target.blur())}}function codeinputs(a){a.fallback?window.ci_fallback_config_active=!0:window.ci_fallback_config_active&&(window.ci_fallback_config_active=!1,document.getElementById("codeinputs").innerHTML="");let b=a.element?a.element:"codeinputs",c=document.getElementById(b);if(!c)return void console.warn("[CodeInputs] Can't find #"+b);let d=a.length?a.length:6,f=[];for(let b,e=1;e<d+1;e++)b=createInputElement(window.ci_unique+"-"+e,a),c.appendChild(b),f.push(b),1!=e&&(b.style.marginLeft="10px");f.forEach(b=>{b.addEventListener("keydown",b=>{let c=parseInt(b.target.id.replace(window.ci_unique+"-",""));if(isFinite(b.key)){let e=!1;if(b.target.value=b.key,c<d?document.getElementById(window.ci_unique+"-"+(c+1)).focus():6==c&&(codeinputs_finish(a,f,b),e=!0),!e){let c=!0;f.forEach(a=>{""==a.value&&(c=!1)}),c&&codeinputs_finish(a,f,b)}}else"Backspace"==b.key?(b.target.value="",1!=c&&document.getElementById(window.ci_unique+"-"+(c-1)).focus()):"ArrowLeft"==b.key?1<=c-1&&document.getElementById(window.ci_unique+"-"+(c-1)).focus():"ArrowRight"==b.key&&c+1<=d&&document.getElementById(window.ci_unique+"-"+(c+1)).focus();b.preventDefault()})})}codeinputs({fallback:!0});