1// Manually minified with https://minify-js.com/ 2!function(){"use strict";function e(e){const t={fieldset:"fieldset.powermail_fieldset",menu:"ul.powermail_tabmenu",nextBtn:'[data-powermail-morestep-show]:not([data-powermail-morestep-show="-1"])',prevBtn:'[data-powermail-morestep-show="-1"]',errorListFilled:"ul.powermail-errors-list.filled",formUid:"input.powermail_form_uid"},r={activeTab:"act",errorTab:"powermail_tab_error",navPrev:"powermail_tab_navigation_previous",navNext:"powermail_tab_navigation_next"},n=Array.from(e.querySelectorAll(t.fieldset));if(!n.length)return;let a=e.querySelector(t.menu);a||(a=function(e,t){const n=document.createElement("ul");n.className="powermail_tabmenu",n.setAttribute("role","tablist"),n.setAttribute("aria-orientation","horizontal");const a=t[0];return(a.parentElement||e).insertBefore(n,a),t.forEach(((e,t)=>{const a=document.createElement("li");a.className="item"+t+(0===t?" "+r.activeTab:""),a.setAttribute("role","tab"),a.setAttribute("aria-selected",0===t?"true":"false"),a.tabIndex=0===t?0:-1,a.id=`pm-tab-${t}`;const i=e.querySelector("legend");a.innerHTML=i?i.innerHTML:"Step "+(t+1),n.appendChild(a)})),n}(e,n)),a.setAttribute("role","tablist"),a.setAttribute("aria-orientation","horizontal");const i=Array.from(a.children).slice(0,n.length);n.forEach(((e,t)=>{e.setAttribute("role","tabpanel"),i[t].id||(i[t].id=`pm-tab-${t}`),e.setAttribute("aria-labelledby",i[t].id),e.id||(e.id=`pm-panel-${t}`),e.hasAttribute("tabindex")||(e.tabIndex=-1)}));let o=e.querySelector("#pm-status");o||(o=document.createElement("div"),o.id="pm-status",o.setAttribute("aria-live","polite"),o.setAttribute("style","position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden;"),e.insertBefore(o,e.firstChild));const l=[],s=[];n.forEach(((e,n)=>{const a=Array.from(e.querySelectorAll(t.prevBtn)),i=Array.from(e.querySelectorAll(t.nextBtn));a.forEach((e=>
2e.classList.add(r.navPrev))),i.forEach((e=>e.classList.add(r.navNext))),l[n]=a,s[n]=i}));const c="rtl"===getComputedStyle(a).direction,u=`pm-active-step-${e.querySelector(t.formUid)?.value||e.getAttribute("action")||"default"}`,d=function(){const e=location.hash||"",t=e.match(/pm-panel-(\d+)/);if(t)return parseInt(t[1],10);const r=e.match(/(?:^|#|&|\?)step=(\d+)/);return r?parseInt(r[1],10):null}(),f=Number.parseInt(sessionStorage.getItem(u)||"",10),m=Number.isInteger(d)?d:Number.isInteger(f)?x(f,0,n.length-1):0;n.forEach(((e,t)=>h(e,t===m))),v(m),A(m),i[m].tabIndex=0,e.addEventListener("click",(function(r){const a=r.target.closest(t.nextBtn+","+t.prevBtn);var i;a&&e.contains(a)&&(r.preventDefault(),r.stopImmediatePropagation(),i=a.matches(t.prevBtn)?-1:1,y(function(){const e=n.findIndex((e=>!function(e){return"none"===e.style.display||!0===e.hidden}(e)));return e>=0?e:0}()+(i<0?-1:1),!0))}),!0),i.forEach(((e,t)=>{e.setAttribute("role","tab"),e.hasAttribute("tabindex")||(e.tabIndex=t===m?0:-1),e.setAttribute("aria-controls",`pm-panel-${t}`),e.addEventListener("click",(()=>y(t,!1))),e.addEventListener("keydown",(e=>{switch(e.key){case"Enter":case" ":case"Space":case"Spacebar":e.preventDefault(),y(t,!1);break;case"ArrowRight":case"ArrowLeft":{e.preventDefault();const r="ArrowRight"===e.key;y(function(e){const t=n.length;return(e%t+t)%t}(t+(r&&!c||!r&&c?1:-1)),!1);break}case"Home":e.preventDefault(),y(0,!1);break;case"End":e.preventDefault(),y(n.length-1,!1)}}))}));let p=n.some((e=>E(e,!1)));p&&(g(!1),w(!1)),e.addEventListener("invalid",(()=>{p=!0,g(!0),w(!0)}),!0),e.addEventListener("submit",(t=>{e.checkValidity()||(t.preventDefault(),p=!0,g(!0),w(!0))}));const b=function(e,t){let r;return function(){clearTimeout(r),r=setTimeout(e,t)}}((()=>{p&&g(!0)}),120);function h(e,t){e.style.display=t?"":"none",e.hidden=!t,e.setAttribute("aria-hidden",t?"false":"true")}function v(e){i.forEach(((t,n)=>{const a=n===e;t.classList.toggle(r.activeTab,a),t.tabIndex=a?0:-1,t.setAttribute("aria-selected",a?"true":"false")}))}function y(e,t=!1){const r=x(e,0,n.length-1);if(n.forEach(((e,t)=>h(e,t===r))),v(r),A(r),sessionStorage.setItem(u,String(r)),function(e){const t=n[e].querySelector("legend");o&&t&&(o.textContent=t.textContent.trim())}(r),t){(n[r].querySelector('input, select, textarea, button, a[href], [tabindex]:not([tabindex="-1"])')||n[r]).focus({preventScroll:!0})}else i[r].focus({preventScroll:!0}),"function"==typeof i[r].scrollIntoView&&i[r].scrollIntoView({block:"nearest",inline:"nearest"})}function A(e){n.forEach(((t,r)=>{const a=r===e,i=0===e&&a,o=e===n.length-1&&a;l[r].forEach((e=>{e.style.display=a&&!i?"":"none"})),s[r].forEach((e=>{e.style.display=a&&!o?"":"none"}))}))}function E(e,r){return!!e.querySelector(t.errorListFilled)||(!!e.querySelector(".powermail_field_error")||(!!e.querySelector('[aria-invalid="true"]')||!(!r||!e.querySelector(":invalid"))))}function g(e){i.forEach((e=>{e.classList.remove(r.errorTab),e.removeAttribute("aria-invalid")})),n.forEach(((t,n)=>{E(t,e)&&(i[n].classList.add(r.errorTab),i[n].setAttribute("aria-invalid","true"))}))}function w(e){const t=n.findIndex((t=>E(t,e)));t>-1&&y(t,!0)}function x(e,t,r){return Math.max(t,Math.min(r,e))}e.addEventListener("input",b),e.addEventListener("change",b)}document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll("form.powermail_form.powermail_morestep").forEach(e)}))}();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.