window.addEventListener("age_gate_shown",(function(){!function(){var e=Array.from(document.querySelectorAll(".age-gate-form-elements input, .age-gate__form-elements input")),t=0;if(e){var n=document.querySelector(".age-gate__region");n&&n.addEventListener("change",(function(){n.value&&document.querySelector(".age-gate__button, .age-gate-button").focus()})),e.forEach((function(n,o){n.addEventListener("keyup",(function(n){n.target.value.length>=n.target.maxLength&&(o!==e.length-1?(e[t+1].focus(),t+=1):document.querySelector(".age-gate__region")?document.querySelector(".age-gate__region").focus():document.querySelector(".age-gate__button, .age-gate-button").focus())}))}))}}()}));