1import"https://fast.wistia.com/assets/external/E-v1.js";import"https://cdn.jsdelivr.net/npm/[email protected]/js/modal-video.min.js";import{A as j,l as v,t as z,i as q}from"./vendor.6cc9d24a.js";const H="modulepreload",K=function(i){return"/dist/"+i},P={},E=function(e,t,s){if(!t||t.length===0)return e();const n=document.getElementsByTagName("link");return Promise.all(t.map(o=>{if(o=K(o),o in P)return;P[o]=!0;const r=o.endsWith(".css"),a=r?'[rel="stylesheet"]':"";if(!!s)for(let u=n.length-1;u>=0;u--){const d=n[u];if(d.href===o&&(!r||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${a}`))return;const l=document.createElement("link");if(l.rel=r?"stylesheet":H,r||(l.as="script",l.crossOrigin=""),l.href=o,document.head.appendChild(l),r)return new Promise((u,d)=>{l.addEventListener("load",u),l.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>e())},J=(i,e)=>{const t=i[e];return t?typeof t=="function"?t():Promise.resolve(t):new Promise((s,n)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(n.bind(null,new Error("Unknown variable dynamic import: "+e)))})};class f{constructor(){this.messageContainer=document.getElementById("busy-message"),this.messageContainer||(this.messageContainer=document.createElement("div"),this.messageContainer.setAttribute("id","busy-message"),this.messageContainer.setAttribute("aria-live","assertive"),this.messageContainer.setAttribute("aria-atomic","true"),this.messageContainer.setAttribute("aria-relevant","additions text"),this.messageContainer.setAttribute("tabindex","-1"),this.messageContainer.setAttribute("role","status"),this.messageContainer.setAttribute("class","border rounded fixed top-48 left-1/2 -translate-x-1/2 bg-dark-navy text-white text-body-md p-24 hidden z-[100] shadow-15"),document.body.appendChild(this.messageContainer))}message(e,t=!1,s=!0){if(clearTimeout(this.BusyTimer),this.messageContainer.classList.remove("hidden"),this.messageContainer.classList.add("block"),this.messageContainer.innerHTML="",this.messageContainer.innerText=e,t){if(s){this.messageContainer.classList.add("full-width");const n=document.createElement("button");n.innerHTML="",n.setAttribute("class","close-button"),n.addEventListener("click",()=>{this.messageContainer.classList.remove("full-width"),F(),this.resolve()}),this.messageContainer.appendChild(n)}this.messageContainer.focus(),D(this.messageContainer)}else this.BusyTimer=setTimeout(()=>{this.messageContainer.classList.remove("block"),this.messageContainer.classList.add("hidden")},3e3)}resolve(e,t=!1,s=!1){clearTimeout(this.BusyTimer),this.messageContainer.classList.remove("block"),this.messageContainer.classList.add("hidden"),this.messageContainer.innerHTML="",e?this.message(e,t,s):(this.messageContainer.classList.remove("block"),this.messageContainer.classList.add("hidden"))}}function D(i){const e=document.getElementById("busy-message");if(!e)return;const t=e.querySelectorAll('button, input, [tabindex]:not([tabindex="-1"])'),s=t[0],n=t[t.length-1];e.classList.contains("block")&&i.key==="Tab"&&(i.shiftKey?document.activeElement===s?(i.preventDefault(),n.focus()):(i.preventDefault(),s.focus()):document.activeElement===n?(i.preventDefault(),s.focus()):(i.preventDefault(),n.focus()))}function G(){const i=document.getElementById("busy-message");i.classList.remove("block"),i.classList.add("hidden"),F()}function F(){document.getElementById("country").focus()}function W(i){i.key==="Escape"?G():D(i)}document.addEventListener("keydown",W);class Y{constructor(){const t=new URLSearchParams(window.location.search).get("jumpto");t&&document.getElementById(t).scrollIntoView({behavior:"auto"})}}const S=i=>{const t=`; ${document.cookie}`.split(`; ${i}=`);return t.length==2?t.pop().split(";").shift():null},X=i=>window.OnetrustActiveGroups&&0<=window.OnetrustActiveGroups.indexOf(i),I=(i,e,t)=>{e=encodeURIComponent(e),t=encodeURIComponent(t);let s="";const[n]=i.split("?"),o=`${e}=${t}`;let r=`?${o}`;if(i.split("?")[1]!==void 0&&(s=`?${i.split("?")[1]}`),s){const a=new RegExp(`([?&])${e}=[^&]*`),c=new RegExp(`([?&])${e}=[^&;]+[&;]?`);t==null||t===""?(r=s.replace(c,"$1"),r=r.replace(/[&;]$/,"")):s.match(a)!==null?r=s.replace(a,`$1${o}`):s==""?r=`?${o}`:r=`${s}&${o}`}return r=r==="?"?"":r,n+r},$=i=>{const e=document.querySelectorAll(i);if(!(!e||typeof e!="object"))return Array.from(e)};class Z{constructor(e){this.el=e,this.busymessage=new f,this.cookieConsentCategory=["C0001"];const t=S("eab_user_key");if(window.EABConfig&&window.EABConfig.userId&&window.EABConfig.userKey&&window.EABConfig.userKey!==t&&(document.cookie=`${window.EABConfig.userKeyCookie}=${window.EABConfig.userKey}; expires=${window.EABConfig.userKeyCookieExpire}; path=/`),!(!this.el||typeof this.el!="object")){if(this.submitForm=this.submitForm.bind(this),this.handleFormSubmit=this.handleFormSubmit.bind(this),this.toggleResetPasswordForm=this.toggleResetPasswordForm.bind(this),this.cancelPasswordReset=this.cancelPasswordReset.bind(this),this.handleResetPasswordFormSubmit=this.handleResetPasswordFormSubmit.bind(this),this.form=this.el.querySelector('[data-action="eab-login"]'),this.form&&this.form.addEventListener("submit",this.handleFormSubmit,!1),this.form){const s=this.form.querySelector("#eab_login_rememberme");s&&s.addEventListener("keydown",n=>{n.key==="Enter"&&(n.preventDefault(),s.checked=!s.checked,s.dispatchEvent(new Event("change",{bubbles:!0})))},!1),this.enforceTabOrder([this.form.querySelector('input[name="email"]'),this.form.querySelector('input[name="password"]'),s,this.form.querySelector('[data-action="eab-reset-password-link"]'),this.form.querySelector("#eab_login_button")]
1)}this.resetPasswordForm=this.el.querySelector('[data-action="eab-reset-password"]'),this.resetPasswordForm&&this.resetPasswordForm.addEventListener("submit",this.handleResetPasswordFormSubmit,!1),this.resetPasswordLink=this.el.querySelector('[data-action="eab-reset-password-link"]'),this.cancelPasswordResetLink=this.resetPasswordForm.querySelector('button[type="cancel"]'),this.resetPasswordLink&&this.resetPasswordLink.addEventListener("click",this.toggleResetPasswordForm,!1),this.cancelPasswordResetLink&&this.cancelPasswordResetLink.addEventListener("click",this.cancelPasswordReset,!1),this.enforceTabOrder([this.resetPasswordForm.querySelector("#reset_password_username"),this.resetPasswordForm.querySelector("#eab_cancel_button"),this.resetPasswordForm.querySelector("#eab_reset_password_button")]),window.location.hash==="#reset-password"&&(this.form.classList.toggle("hidden"),this.resetPasswordForm.classList.toggle("hidden"))}}enforceTabOrder(e){const t=e.filter(Boolean);t.forEach((s,n)=>{s.addEventListener("keydown",o=>{if(o.key!=="Tab")return;const r=o.shiftKey?t[n-1]:t[n+1];!r||(o.preventDefault(),o.stopPropagation(),r.focus())},!1)})}async handleFormSubmit(e){e.preventDefault();const t=document.getElementById("catchUser"),s=this.form.querySelector('input[name="redirect_to"]'),n=s?decodeURIComponent(s.value):"";let o=this.form.querySelector('input[name="email"]'),r=this.form.querySelector('input[name="password"]');const a=this.form.querySelector('input[name="rememberme"]');if(o=o.value,r=r.value,!o||!r){alert("Please enter a username and password.");return}t.setAttribute("value",o),this.submitForm(o,r,a.checked,n)}async submitForm(e,t,s,n){const{busymessage:o}=this;o.message("Logging you in...",!0,!1),await window.fetch(window.EABConfig.ajaxurl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},body:`action=eab-login&nonce=${window.EABConfig.loginNonce}&username=${e}&password=${t}`,credentials:"same-origin"}).then(r=>r.json()).then(r=>{if(!r.success){let a="Login failed. Please check your username and password.";o.resolve(a,!0,!1),console.log(a);return}if(!s)document.cookie=`${window.EABConfig.userKeyCookie}=${r.data.user_key}; expires=${window.EABConfig.userKeyCookieExpire};path=/`;else{const a=new Date,l=a.getTime()+30*24*60*60*1e3;a.setTime(l),document.cookie=`${window.EABConfig.userKeyCookie}=${r.data.user_key};expires=${a.toGMTString()};path=/`}o.resolve("Login successful!",!1),window.EABConfig.redirectTo?window.location.href=window.EABConfig.redirectTo:window.EABConfig.userSoftLoggedIn&&EABConfig.eventSource?EABConfig.eventSource.classList.contains("register")?window.location.href=I(window.location.href,"auto_reg","1"):EABConfig.eventSource.classList.contains("unregistered")?window.location.href=I(window.location.href,"auto_unreg","1"):window.location.href=n:window.location.href=n})}toggleResetPasswordForm(e){e.preventDefault(),this.form.classList.toggle("hidden"),this.resetPasswordForm.classList.toggle("hidden")}cancelPasswordReset(e){this.toggleResetPasswordForm(e);const t=this.form.querySelector("#eab_login_email");t&&t.focus()}async submitResetPasswordForm(e){const{busymessage:t}=this;t.message("Resetting password..."),await window.fetch(window.EABConfig.ajaxurl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},body:`action=eab-reset-password&nonce=${window.EABConfig.resetPasswordNonce}&username=${e}`,credentials:"same-origin"}).then(s=>s.json()).then(s=>{if(!s.success){const n=s.data&&s.data.message?s.data.message:"There was an error with your request.";t.resolve("Resetting password failed...",!0),console.log(n);return}window.location.reload()})}async handleResetPasswordFormSubmit(e){e.preventDefault();let t=this.resetPasswordForm.querySelector('[name="email"]');if(t=t.value,!t)return console.log("No username was entered for the reset password flow."),!1;this.submitResetPasswordForm(t)}}class ee{constructor(e){this.el=e,this.busymessage=new f,this.cookieConsentCategory=["C0001"],S("eab_user_key"),!(!this.el||typeof this.el!="object")&&this.el&&this.el.addEventListener("click",t=>this.handleLogout(t),!1)}async handleLogout(e){e.preventDefault();const{busymessage:t}=this;t.message("Logging you out..."),await window.fetch(window.EABConfig.ajaxurl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},body:`action=eab-logout&nonce=${window.EABConfig.logoutNonce}`,credentials:"same-origin"}).then(s=>s.json()).then(s=>{if(!s.success){const n=s.data&&s.data.message?s.data.message:"There was an error with your request.";t.resolve("Logging out failed..."),console.log(n);return}if(document.cookie=`${window.EABConfig.userKeyCookie}=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/`,t.resolve("Log out successful!"),window.location.pathname&&(window.location.pathname==="/dashboard/"||window.location.pathname==="/log-in/"))window.location.href="/";else{const[n]=window.location.href.split(/[?#]/);window.location.href=n}})}}class te{constructor(e){this.form=e,this.busymessage=new f,!(!this.form||typeof this.form!="object")&&(this.handleFormSubmit=this.handleFormSubmit.bind(this),this.form&&this.form.addEventListener("submit",this.handleFormSubmit,!1))}
1async submitForm(e,t,s){s.message("Resetting password..."),await window.fetch(window.EABConfig.ajaxurl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},body:`action=eab-reset-password-confirmation&nonce=${window.EABConfig.resetPasswordConfirmationNonce}&user_id=${e}&password=${t}`,credentials:"same-origin"}).then(n=>n.json()).then(n=>{if(!n.success){n.data&&n.data.message&&n.data.message,s.message("Resetting password failed...");return}s.resolve("Password Reset Successfully! Redirecting..."),window.location="/"})}async handleFormSubmit(e){e.preventDefault();const{form:t,submitForm:s,busymessage:n}=this,o=t.querySelector('input[name="password"]').value,r=t.querySelector('input[name="password_confirmation"]').value,a=t.querySelector('input[name="user_id"]').value;if(!o)return n.message("Please provide a new password."),!1;if(o!==r)return n.message("Please ensure your passwords match!"),!1;s(a,o,n)}}class N{constructor(e,t,s,n){this.form=e,this.action=t,this.formNonce=s,this.orgNonce=n,this.notification=document.getElementById("message"),this.submitButton=document.getElementById("wp-submit"),this.busymessage=new f,!(!this.form||typeof this.form!="object")&&(this.handleCountryChange=this.handleCountryChange.bind(this),this.processFormSubmission=this.processFormSubmission.bind(this),this.handleFormSubmit=this.handleFormSubmit.bind(this),this.handleInvalidForm=this.handleInvalidForm.bind(this),this.containsProfile=this.containsProfile.bind(this),this.updateOrganisations=this.updateOrganisations.bind(this),this.checkOrganisations=this.checkOrganisations.bind(this),this.fetchOrganisations=this.fetchOrganisations.bind(this),this.handleOrganisationChange=this.handleOrganisationChange.bind(this),this.validateRequired=this.validateRequired.bind(this),this.email=this.form.querySelector('input[name="email"]'),this.organisation=this.form.querySelector('select[name="organization"]'),this.country=this.form.querySelector('select[name="country"]'),this.state=this.form.querySelector('select[name="state"]'),this.city=this.form.querySelector('input[name="city"]'),this.zip=this.form.querySelector('input[name="zip"]'),this.title=this.form.querySelector('input[name="title"]'),this.state&&this.state.addEventListener("change",this.checkOrganisations,!1),this.email&&this.email.addEventListener("change",this.checkOrganisations,!1),this.city&&this.city.addEventListener("change",this.checkOrganisations,!1),this.zip&&this.zip.addEventListener("change",this.checkOrganisations,!1),this.country&&this.country.addEventListener("change",this.handleCountryChange,!1),this.country&&this.country.addEventListener("change",this.checkOrganisations,!1),this.form&&this.form.addEventListener("submit",this.handleFormSubmit,!1),this.form&&this.form.addEventListener("invalid",this.handleInvalidForm,!0),this.organisation&&this.organisation.addEventListener("change",this.handleOrganisationChange,!1))}handleCountryChange(e){const{target:t}=e,{state:s}=this,n=t.options[t.selectedIndex].value,o=n!=="United States"&&n!=="Canada";if(s.selectedIndex=0,s.disabled=o,o)s.removeAttribute("required");else{s.setAttribute("required","required");for(let d=0;d<s.options.length;++d)n!==s.options[d].getAttribute("data-country")?s.options[d].setAttribute("hidden","hidden"):s.options[d].removeAttribute("hidden")}const r=document.querySelector("#country"),a=document.querySelector("#state-container"),c=document.querySelector("#state");if(!r||!a||!c)return;const l=new Set(["United States","Canada"]),u=()=>{const d=l.has(r.value);a.hidden=!d,c.required=d,d||(c.selectedIndex=0)};r.addEventListener("change",u),u()}processFormSubmission(){const{notification:e,action:t,form:s,formNonce:n,busymessage:o}=this,r=new FormData(s),a=t==="eab-register";r.append("action",t),r.append("nonce",n),o.message(a?"Registering your account...":"Updating your profile..."),window.fetch(window.EABConfig.ajaxurl,{method:"POST",body:r,credentials:"same-origin"}).then(c=>c.json()).then(c=>{if(!c.success){c.data&&c.data.message&&c.data.message,o.resolve(a?"Registration failed: "+c.data.message:"Updating failed: "+c.data.message,!0);return}t==="eab-register"?(o.resolve("Successfully registered!"),window.location.href="/dashboard/"):(o.resolve("Profile updated!"),s.querySelector(".eab-avatar").src=`${s.querySelector('[name="photo"]').value}?${new Date().getTime()}
1`,e.innerHTML="Profile successfully updated. Thank you!",e.setAttribute("aria-hidden","false"),this.enableSubmitButton())})}handleFormSubmit(e){e.preventDefault(),this.disabledSubmitButton();const{organisation:t,action:s,notification:n,title:o,processFormSubmission:r}=this,a=t&&t.options[t.selectedIndex].value,c=this.form.querySelector("#password"),l=this.form.querySelector("#confirm_password"),u=c?c.closest(".button-wrapper"):null,d=l?l.closest(".button-wrapper"):null,h=(c==null?void 0:c.value)||"",m=(l==null?void 0:l.value)||"";if(this.form.querySelectorAll(".password-error").forEach(p=>p.remove()),c==null||c.classList.remove("error"),l==null||l.classList.remove("error"),(h||m)&&h!==m){const p=()=>{const b=document.createElement("p");return b.className="text-red-600 error-message password-error",b.setAttribute("aria-live","polite"),b.textContent="Passwords do not match",b};u==null||u.insertAdjacentElement("afterend",p()),d==null||d.insertAdjacentElement("afterend",p()),c==null||c.classList.add("error"),l==null||l.classList.add("error"),this.enableSubmitButton();return}const g=["student","grad student","graduate student","freshman","sophomore","junior","senior"];if(o){const p=o.value.trim().toLowerCase();if(g.includes(p))return this.busymessage.message("Registration failed: EAB.com is for faculty and staff only, or students who are employed by the university and need to access content for their on-campus role. If you are a student seeking access related to an on-campus role, please email [email protected] for assistance creating an account. If you are a student seeking Navigate or Starfish support, please reach out to your advisor or school's tech support team directly.",!0,!1),this.enableSubmitButton(),!1}if(s==="eab-register"&&!a)return n.innerHTML="No organisation selected.",n.classList.add("error"),n.setAttribute("aria-hidden","false"),!1;n.classList.contains("error")&&(n.classList.remove("error"),n.setAttribute("aria-hidden","true"),n.innerHTML=""),r()}handleOrganisationChange(e){e.preventDefault();const{organisation:t,nextStepBtn:s}=this;t&&t.options[t.selectedIndex].value?(s.disabled=!1,s.classList.remove("disabled")):(s.disabled=!0,s.classList.add("disabled"))}updateOrganisations(e){const{organisation:t}=this,{length:s}=t.options;for(let o=s;0<o;--o)t.remove(o);for(const o in e){if(!e.hasOwnProperty(o))continue;const r=document.createElement("option");r.appendChild(document.createTextNode(e[o].name)),r.value=e[o].id,t.appendChild(r)}const n=1<t.options.length;t.disabled=!n}fetchOrganisations(e,t,s,n){const{containsProfile:o,updateOrganisations:r,orgNonce:a,busymessage:c}=this;c.message("Fetching organizations..."),window.fetch(window.EABConfig.ajaxurl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},body:`action=eab-fetch-organizations&nonce=${a}&city=${t}&state=${e}&country=${s}&email=${n}`,credentials:"same-origin"}).then(l=>l.json()).then(l=>{if(!l.success){l.data&&l.data.message&&l.data.message,c.resolve("Fetching organizations failed: "+l.data.message,!0),r([]);return}switch(l.data){case"Contains_Site_Profile":c.resolve("An account already exists for this email address, please log in.",!0);break;case"Contact_Found_Site_Profile_Created":c.resolve("Account already exists. A password has been sent to your inbox.",!0);break;case"Duplicate_Contacts_Found":c.resolve("Multiple accounts have been found with this email. Please reach out to your Strategic Leader for assistance.",!0);break;default:c.resolve(),r(l.data);break}})}containsProfile(){const e=document.getElementById("registration-login-modal");document.getElementById("site-content");const t=document.getElementById("registration-login-modal-close"),s=e&&new j(e);!s||(window.dialog=s,t&&t.addEventListener("click",n=>{n.preventDefault(),window.dialog.hide()},!1),s.show())}checkOrganisations(){const{state:e,email:t,city:s,country:n,organisation:o,nextStepBtn:r,fetchOrganisations:a}=this,c=e&&e.options[e.selectedIndex].value,l=o&&o.options[o.selectedIndex].value,u=t&&t.value,d=s&&s.value,h=n&&n.options[n.selectedIndex].value,m=document.querySelector("div.state strong.required-indicator");if(m&&(h!=="United States"&&h!=="Canada"?m.classList.add("hidden"):m.classList.remove("hidden")),u==""||!h||d==""){r.disabled=!0,r.classList.add("disabled");return}!c&&!h||!d||3>d.length||(l?(r.disabled=!1,r.classList.remove("disabled")):a(c,d,h,u))}disabledSubmitButton(){!this.submitButton||typeof this.submitButton!="object"||(this.submitButton.classList.add("button-is-submitting"),this.submitButton.setAttribute("disabled","disabled"))}enableSubmitButton(){!this.submitButton||typeof this.submitButton!="object"||(this.submitButton.classList.remove("button-is-submitting"),this.submitButton.removeAttribute("disabled"))}handleInvalidForm(){this.enableSubmitButton();const e=document.querySelector('form[name="my-account"]');let t=!0;e.querySelectorAll(".error-message").forEach(n=>n.remove()),e.querySelectorAll(".error").forEach(n=>n.classList.remove("error")),e.querySelectorAll("[required]").forEach(function(n){if(n.value.trim())n.setAttribute("aria-invalid","false");else{t=!1;const o=document.createElement("p");o.classList.add("text-red-600","error-message"),o.setAttribute("aria-live","polite"),o.innerText=`Please fill out the ${n.previousElementSibling.innerText} field.`,n.classList.add("error"),n.insertAdjacentElement("afterend",o),n.setAttribute("aria-invalid","true")}}),t||e.querySelector(".error").focus()}validateRequired(){if(!this.currentStep)return!0;const e=this.currentStep.querySelectorAll("[required]");let t=!0;for(let s=0;s<e.length;s++)e[s].value||(t=!1);return this.currentStep=!1,t}}class se extends N{constructor(e,t,s,n){super(e,t,s,n),this.busyMessage=new f,this.nextStepBtn=document.getElementById("nextStep"),this.prevStepBtn=document.getElementById("prevStep"),this.nextStep=this.nextStep.bind(this),this.prevStep=this.prevStep.bind(this),this.handleStep=this.handleStep.bind(this),this.stepOne=document.querySelector("#step-one"),this.stepTwo=document.querySelector("#step-two"),this.nextStepBtn&&this.nextStepBtn.addEventListener("click",this.nextStep,!1),this.prevStepBtn&&this.prevStepBtn.addEventListener("click",this.prevStep,!1)}prevStep(){return this.currentStep=this.stepOne,this.handleStep(),!0}nextStep(){if(this.currentStep=this.stepOne,!this.validateRequired())return this.busyMessage.resolve("Please fill in all required fields."),!1;this.handleStep(),this.currentStep=this.stepTwo}handleStep(){this.busyMessage.resolve();const e=document.querySelector('.step[aria-hidden="false"]'),t=document.querySelector('.step[aria-hidden="true"]');return document.querySelector(".slider").classList.toggle("slider-push"),e.setAttribute("aria-hidden","true"),t.setAttribute("aria-hidden","false"),e.classList.add("hidden"),t.classList.remove("hidden"),!0}}class ne extends N{constructor(e,t,s,n){super(e,t,s,n),this.uploader=document.getElementById("photo"),document.body.contains(this.uploader)&&this.uploader.addEventListener("change",this.handleUploadImage,!1)}handleUploadImage(){if(this.files&&this.files[0]){const e=new FileReader;e.onload=function(t){document.getElementById("eab-avatar").src=t.target.result}
1,e.readAsDataURL(this.files[0])}}}class oe{constructor(e){this.form=e,this.form&&(this.inputs=this.form.querySelectorAll('input[type="radio"], input[type="checkbox"]:not([data-component="check-all"]), input[type="search"], select'),this.resultsContainer=document.getElementById("results-container"),this.loadingOverlay=document.getElementById("loading-overlay"),this.liveRegion=document.getElementById("live-region"),this.liveRegion||this.createLiveRegion(),this.bindEvents())}createLiveRegion(){this.liveRegion=document.createElement("div"),this.liveRegion.id="live-region",this.liveRegion.setAttribute("aria-live","polite"),this.liveRegion.className="sr-only",this.resultsContainer&&this.resultsContainer.insertBefore(this.liveRegion,this.resultsContainer.firstChild)}updateLiveRegion(e){this.liveRegion.textContent=e}bindEvents(){this.inputs.forEach(e=>{e.type==="search"?e.addEventListener("search",t=>{e.value===""&&this.submitForm(new URLSearchParams(new FormData(this.form)).toString())}):e.addEventListener("change",t=>{this.submitForm(new URLSearchParams(new FormData(this.form)).toString())})}),this.rebindFilterButtonLinks(),this.bindPaginationButtons()}bindDateTabEvents(){const e=this.form.querySelector('label[for="dates_upcoming"]'),t=this.form.querySelector("#dates_upcoming"),s=this.form.querySelector('label[for="dates_past"]'),n=this.form.querySelector("#dates_past");e&&t&&e.addEventListener("click",o=>{console.log("Label for dates_upcoming was clicked"),t.setAttribute("checked","checked"),n.hasAttribute("checked")&&n.removeAttribute("checked"),setTimeout(()=>{this.submitForm(new URLSearchParams(new FormData(this.form)).toString())},500)}),s&&n&&s.addEventListener("click",o=>{console.log("Label for dates_past was clicked"),n.setAttribute("checked","checked"),t.hasAttribute("checked")&&t.removeAttribute("checked"),setTimeout(()=>{this.submitForm(new URLSearchParams(new FormData(this.form)).toString())},1e3)})}bindOrderSelectEvent(){const e=this.form.querySelector("#order");e&&e.addEventListener("change",t=>{console.log("Order select value changed to:",t.target.value),this.showLoadingOverlay(),setTimeout(()=>{this.submitForm(new URLSearchParams(new FormData(this.form)).toString())},500)})}rebindFilterButtonLinks(){this.resultsContainer.querySelectorAll(".filter-button-link").forEach(e=>{const t=e.cloneNode(!0);e.parentNode.replaceChild(t,e)}),this.resultsContainer.querySelectorAll(".filter-button-link").forEach(e=>{e.addEventListener("click",t=>{t.preventDefault();const s=new URL(e.href).searchParams;s.append("action","load_search_results"),this.submitForm(s.toString()),this.updateFiltersFromURL()})})}showLoadingOverlay(){this.loadingOverlay&&(this.loadingOverlay.style.display="flex"),this.updateLiveRegion("Page is updating, please wait")}hideLoadingOverlay(){this.loadingOverlay&&(this.loadingOverlay.style.display="none")}bindPaginationButtons(){this.resultsContainer.querySelectorAll(".pagination-link").forEach(e=>{e.addEventListener("click",t=>{t.preventDefault();const s=e.getAttribute("data-url"),o="https://"+window.location.hostname+s,r=new URL(o).searchParams;r.append("action","load_search_results"),this.submitForm(r.toString());const a=document.getElementById("search-form");a&&a.scrollIntoView({behavior:"smooth"})})})}submitForm(e){let t=e;t.includes("action=load_search_results")||(t+="&action=load_search_results");const s=window.location.pathname,n=`${s}?${t}`;let o=new URLSearchParams(e);o.delete("action");const r=`${s}?${o.toString()}`;document.getElementById("loading-overlay").style.display="flex",history.pushState(null,"",r);const a=this.liveRegion;fetch(n,{method:"GET"}).then(c=>c.text()).then(c=>{this.resultsContainer.innerHTML=c,this.resultsContainer.insertBefore(a,this.resultsContainer.firstChild),this.rebindFilterButtonLinks(),this.bindDateTabEvents(),this.bindOrderSelectEvent(),this.bindPaginationButtons(),this.hideLoadingOverlay();const l=this.resultsContainer.querySelector(".result-container-count");let u=0;l&&(u=parseInt(l.textContent.trim(),10)||0),this.updateLiveRegion(`Page updated, ${u} results available`)}).catch(c=>{console.error("Error:",c),this.hideLoadingOverlay()})}updateFiltersFromURL(e){const t=new URLSearchParams(e?new URL(e).search:window.location.search);console.log(Array.from(t.entries())),document.querySelectorAll('input[type="radio"]').forEach(s=>{s.checked=!1;const n=s.name,o=s.value;t.has(n)&&t.get(n)===o&&(s.checked=!0)}),document.querySelectorAll('input[type="checkbox"]').forEach(s=>{s.checked=!1;const n=s.name.replace("[]",""),o=s.value;Array.from(t.keys()).filter(a=>a.startsWith(`${n}
1[`)).forEach(a=>{t.get(a)===o&&(s.checked=!0)})}),document.querySelectorAll("select").forEach(s=>{s.selectedIndex=0;const n=s.name;t.has(n)&&(s.value=t.get(n))})}}class ie{constructor(e){this.form=e,this.form&&(this.inputs=this.form.querySelectorAll('input[type="radio"], input[type="checkbox"]:not([data-component="check-all"]), input[type="search"], select'),this.bindEvents())}bindEvents(){this.inputs.forEach(e=>{e.type==="search"?e.addEventListener("search",t=>{e.value===""&&this.form.submit()}):e.addEventListener("change",t=>{this.form.submit()})})}}class re{constructor(e){if(this.el=e,this.el){if(this.checkboxes=document.querySelectorAll('input[type="checkbox"][name="'+this.el.dataset.target+'"]'),this.checkboxes.length===0)return;this.form=this.checkboxes[0].closest("form"),this.checkStates(),this.bindEvents()}}checkStates(){if(this.el.type==="checkbox"){const t=this.checkboxes.length;let s=0;for(var e of this.checkboxes)e.checked&&s++;this.el.checked=s===t}}bindEvents(){this.el.type==="checkbox"?this.el.addEventListener("change",()=>{this.loopAndSubmit(this.el.checked)}):this.el.addEventListener("click",()=>{this.loopAndSubmit(!0)})}loopAndSubmit(e){for(var t of this.checkboxes)t.checked=e;this.form.submit()}}class ae{constructor(e){this.elems=e,this.busymessage=new f,this.elems.length&&(this.handleItemSave=this.handleItemSave.bind(this),this.sendSaveOrRemove=this.sendSaveOrRemove.bind(this),this.elems&&this.elems.forEach(t=>{t.addEventListener("click",this.handleItemSave,!1)}))}async sendSaveOrRemove(e,t){const{busymessage:s}=this,n=t==="remove";s.message(n?"Removing post...":"Saving post..."),await window.fetch(window.EABConfig.ajaxurl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},body:`action=eab-save-item&nonce=${window.EABConfig.saveItemNonce}&post_id=${e}&type=${t}`,credentials:"same-origin"}).then(o=>o.json()).then(o=>{if(!o.success){const r=o.data&&o.data.message?o.data.message:"There was an error with your request.";s.message(r),window.location.reload();return}}),s.resolve(n?"Post removed!":"Post saved!")}async handleItemSave(e){e.preventDefault();const{sendSaveOrRemove:t}=this,{target:s}=e;let n=s,o=n.getAttribute("data-post-id");if(!o)for(let c=0;4>c&&(n=n.parentNode,o=n.getAttribute("data-post-id"),!o);++c);o||(o=n.getAttribute("data-post-id"));const r=n.dataset.action;if(!o){console.log("No post ID available to save."),console.log(n);return}t(o,r);const a=s.querySelector("span")||s;r==="remove"?(n.dataset.action="save",a.textContent="Save for Later"):(n.dataset.action="remove",a.textContent="Remove Saved Post")}}class ce{constructor(){this.OptanonWrapper=this.OptanonWrapper.bind(this),this.maybeSaveRecentlyViewed=this.maybeSaveRecentlyViewed.bind(this),this.cookieConsentCategory="C0003",window.EABConfig.isUserLoggedIn==="1"&&this.maybeSaveRecentlyViewed()}OptanonWrapper(){if(X(this.cookieConsentCategory))this.maybeSaveRecentlyViewed();else{const{userRecentlyViewedCookie:e}=window.EABConfig;S(e)&&(document.cookie=`${e}=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/`)}}maybeSaveRecentlyViewed(){const{postID:e,postType:t,userRecentlyViewedCookie:s}=window.EABConfig;if(!e||!t||t==="page")return;let n=S(s);if(n=n&&JSON.parse(n),(!n||!(n instanceof Array))&&(n=[]),n.includes(e))return;n.unshift(e),12<n.length&&n.splice(12,1);const o=new Date,a=o.getTime()+30*24*60*60*1e3;o.setTime(a),document.cookie=`${s}=${JSON.stringify(n)};expires=${o.toGMTString()};path=/`}}class le{constructor(e){this.button=e,this.busymessage=new f,!(!this.button||typeof this.button!="object")&&(window.EABConfig.userSoftLoggedIn||(this.button.addEventListener("click",t=>this.handleClick(t),!1),window.location.search.includes("auto_reg=1")&&this.button.click()))}async handleClick(){const e={},{busymessage:t}=this;e.action="eab-event-register",e.post_id=window.EABConfig.postID,e.nonce=window.EABConfig.eventRegisterNonce;const s=document.getElementById("location-select");s.options[s.selectedIndex].dataset.session,s.options[s.selectedIndex],e.salesforce_id=s?s.options[s.selectedIndex].value:window.EABConfig.eventSalesforceId,t.message("Registering you for the event..."),await window.fetch(window.EABConfig.ajaxurl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},body:v.stringify(e),credentials:"same-origin"}).then(n=>n.json()).then(n=>{if(n.success)t.resolve("Registration successful!");else{const o=n.data&&n.data.message?n.data.message:"There was an error with your request.";t.resolve(o),console.log("Registration error",JSON.stringify(n,null,2));return}setTimeout(()=>window.location.reload(),1750)})}}class de{constructor(e){this.button=e,this.busymessage=new f,!(!this.button||typeof this.button!="object")&&(window.EABConfig.userSoftLoggedIn||(this.button.addEventListener("click",t=>this.handleClick(t),!1),window.location.search.includes("auto_unreg=1")&&this.button.click()))}async handleClick(){const e={},{busymessage:t}=this;e.action="eab-event-deregister",e.post_id=window.EABConfig.postID,e.nonce=window.EABConfig.eventDeregisterNonce;const s=document.getElementById("location-select");s&&s.options.length,e.salesforce_id=s?s.options[s.selectedIndex].value:window.EABConfig.eventSalesforceId,s.options[s.selectedIndex],t.message("Cancelling your registration..."),await window.fetch(window.EABConfig.ajaxurl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},body:v.stringify(e),credentials:"same-origin"}).then(n=>n.json()).then(n=>{if(n.success)t.resolve("Cancellation successful!");else{const o=n.data&&n.data.message?n.data.message:"There was an error with your request.";t.resolve(o),console.log("Deregistration errors found",JSON.stringify(n,null,2));return}setTimeout(()=>window.location.reload(),2e3)})}}class M{constructor(e){this.button=e,this.busymessage=new f,!(!this.button||typeof this.button!="object")&&(window.EABConfig.userSoftLoggedIn||(this.button.addEventListener("click",t=>this.handleClick(t),!1),window.location.search.includes("auto_reg=1")&&this.button.click()))}async handleClick(){var o,r;console.log("multi register"),this.button.disabled=!0,this.busymessage.message("Updating your registration...",!0,!1);const e=document.querySelectorAll('[type="checkbox"][name="location-checkbox[]"]'),t=[...e].filter(a=>a.checked&&a.dataset.registered!=="registered"),s=[...e].filter(a=>!a.checked&&a.dataset.registered==="registered"),n=[];for(const a of s){this.busymessage.message(`Deregistering for ${(o=a.dataset.session)!=null?o:"session"}...`,!0,!1);const c=await this.deregisterLocation(a);n.push(c)}for(const a of t){this.busymessage.message(`Registering for ${(r=a.dataset.session)!=null?r:"session"}...`,!0,!1);const c=await this.registerLocation(a);n.push(c)}n.some(a=>!a.success)?(this.busymessage.resolve("There was an error with your request."),console.log("Registration errors found",JSON.stringify(n,null,2))):this.busymessage.resolve("Your registration has been updated."),setTimeout(()=>window.location.reload(),2e3)}async registerLocation(e){var s;const t={};return t.action="eab-event-register",t.post_id=window.EABConfig.postID,t.nonce=window.EABConfig.eventRegisterNonce,t.salesforce_id=(s=e.value)!=null?s:window.EABConfig.eventSalesforceId,await window.fetch(window.EABConfig.ajaxurl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},body:v.stringify(t),credentials:"same-origin"}).then(n=>n.json())}async deregisterLocation(e){var s;const t={};return t.action="eab-event-deregister",t.post_id=window.EABConfig.postID,t.nonce=window.EABConfig.eventDeregisterNonce,t.salesforce_id=(s=e.value)!=null?s:window.EABConfig.eventSalesforceId,await window.fetch(window.EABConfig.ajaxurl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},body:v.stringify(t),credentials:"same-origin"}).then(n=>n.json())}}class ue{constructor(e,t,s){this.block=e,this.nonce=t,this.action="eab-fetch-related-resources",this.initClass=s||"is-initialized",!(!this.block||typeof this.block!="object")&&(this.blockFilters=this.block.querySelectorAll("[data-filters] [data-filter]"),this.blockResults=this.block.querySelector("[data-results]"),this.blockQuery=this.block.dataset.query?JSON.parse(this.block.dataset.query):null,this.blockQuery={order_by:this.blockQuery.order_by,posts_limit:this.blockQuery.posts_limit,post_type:this.blockQuery.post_type,tax_query:this.blockQuery.tax_query},!(!this.blockFilters||!this.blockResults||!this.blockQuery)&&this.blockFilters&&this.initializeBlock())}initializeBlock(){const{block:e}=this;!e||typeof e!="object"||(e.classList.add(this.initClass),Array.from(this.blockFilters).forEac
1h(t=>{t.addEventListener("click",s=>{s.preventDefault();const n=["dark:border-white","border-dark-navy","hover:bg-gray-100"],o=["bg-science-blue","border-science-blue","hover:bg-science-blue","hover:border-science-blue","text-white"];this.blockFilters.forEach(a=>{a!==t&&(a.classList.remove(...o),a.classList.add(...n))}),s.target.classList.add(...o),s.target.classList.remove(...n);let r={...this.blockQuery};t.dataset.tagId&&parseInt(t.dataset.tagId)!==0&&(r.tag__in=[t.dataset.tagId]),this.submitFilterQuery(r)},!1)}))}submitFilterQuery(e){const{action:t,nonce:s}=this,n=new FormData;typeof e!="string"&&(e=JSON.stringify(e)),n.append("action",t),n.append("nonce",s),n.append("query",e),window.fetch(window.EABConfig.ajaxurl,{method:"POST",body:n,credentials:"same-origin"}).then(o=>o.text()).then(o=>{this.blockResults.innerHTML=o})}}class he{constructor(e,t){this.blockSelector=e,this.nonce=t,this.initClass="is-initialized",this.blocks=$(this.blockSelector),this.blocks&&this.blocks.forEach(s=>{!s.classList.contains(this.initClass)&&new ue(s,this.nonce,this.initClass)})}}const me=".text-rich, #gutenberg",U=i=>{if(!i)return!1;if(i.nodeType===Node.TEXT_NODE)return(i.textContent||"").replace(/\u00a0/g,"").trim().length>0;if(i.nodeType!==Node.ELEMENT_NODE)return!1;const e=i.tagName.toLowerCase();return e==="br"||e==="wbr"?!1:["img","svg","video","audio","iframe","object","embed","canvas","input","button"].includes(e)?!0:Array.from(i.childNodes).some(t=>U(t))},fe=(i=document)=>{i.querySelectorAll(`${me} p`).forEach(t=>{U(t)||t.remove()})},y=document.querySelector('[data-component="main-nav"]');if(y){const i=y.querySelectorAll("nav button"),e=y.querySelectorAll(".js-sub-nav");document.addEventListener("keyup",function(t){t.key==="Escape"&&i.forEach(function(s){if(s.getAttribute("aria-expanded")==="true"){let n=s.nextElementSibling;s.setAttribute("aria-expanded","false"),n.classList.add("hidden")}})}),document.addEventListener("click",t=>{if(y.contains(t.target)){const r=t.target.closest("nav button");if(r!==null){let a=r.getAttribute("aria-expanded")==="true";i.forEach(function(l){l.setAttribute("aria-expanded","false")}),r.setAttribute("aria-expanded",!a);let c=r.nextElementSibling;if(c.classList.toggle("hidden"),!c.classList.contains("hidden")){const l=c.querySelector("a");l&&l.focus()}e.forEach(function(l){l!==c&&l.classList.add("hidden")})}}else i.forEach(r=>{r.setAttribute("aria-expanded","false")}),e.forEach(r=>{r.classList.add("hidden")});var s=document.querySelector("#user-menu");if(s){var n=document.querySelector("#user-menu-dump"),o=s.offsetHeight;n.style.height=o-10+"px"}}),e.forEach(t=>{t.addEventListener("keydown",s=>{const n=Array.from(t.querySelectorAll("a")),o=n.indexOf(document.activeElement);if(s.key==="ArrowDown"){s.preventDefault();const r=(o+1)%n.length;n[r].focus()}if(s.key==="ArrowUp"){s.preventDefault();const r=(o-1+n.length)%n.length;n[r].focus()}if(s.key==="Escape"){const r=t.previousElementSibling;r&&(r.setAttribute("aria-expanded","false"),t.classList.add("hidden"),r.focus())}})}
1),i.forEach(t=>{t.addEventListener("keydown",s=>{(s.key==="Enter"||s.key===" ")&&(s.preventDefault(),t.click())})})}const k=document.querySelector('[data-component="accordion-wrapper"]');if(k){var C=document.querySelector('[data-component="card-inside-accordion"]'),L=C.clientHeight;k.setAttribute("style","min-height: "+L+"px");const i=document.querySelectorAll('[data-component="accordion-with-card"]');i.forEach(e=>{e.addEventListener("click",t=>{i.forEach(s=>{s!==e&&s.removeAttribute("open")}),C=t.currentTarget.querySelector('[data-component="card-inside-accordion"]'),setTimeout(()=>{L=C.clientHeight,k.setAttribute("style","min-height: "+L+"px")},10)})})}document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll(".testimonial-slider-section").forEach(function(i){const e=new Swiper(i,{slidesPerView:1,loop:!0,cssMode:!1,speed:500,pagination:{el:i.querySelector(".swiper-pagination"),clickable:!0},navigation:{nextEl:i.querySelector(".swiper-button-next"),prevEl:i.querySelector(".swiper-button-prev")}});e.update(),e.pagination.update()})});const pe=document.querySelector('[data-component="table_of_contents"]');pe&&document.querySelectorAll('[data-component="table_of_contents"] a').forEach(e=>{e.addEventListener("click",function(t){t.preventDefault(),document.querySelector(this.getAttribute("href")).scrollIntoView({behavior:"smooth"})})});const R=document.querySelector('[data-component="story_toc"]'),_=i=>!i.hash||i.hash==="#"||!(i.origin===window.location.origin&&i.pathname===window.location.pathname)?null:document.getElementById(i.hash.slice(1));if(R){const i=Array.from(R.querySelectorAll(".story-toc__link")),e=s=>{i.forEach(n=>n.classList.remove("is-active")),s&&s.classList.add("is-active")};i.forEach(s=>{s.addEventListener("click",function(n){const o=_(this);o&&(n.preventDefault(),o.scrollIntoView({behavior:"smooth"}))})});const t=i.map(s=>({link:s,target:_(s)})).filter(({target:s})=>s);if(t.length&&"IntersectionObserver"in window){const s=new IntersectionObserver(n=>{n.forEach(o=>{if(o.isIntersecting){const r=t.find(({target:a})=>a===o.target);r&&e(r.link)}})},{rootMargin:"0px 0px -80% 0px",threshold:0});t.forEach(({target:n})=>s.observe(n)),e(t[0].link)}}const w=document.querySelector('[data-component="form-filters"]');if(w){let e=function(){i.forEach(n=>{n.setAttribute("aria-expanded","false");const o=document.getElementById(n.getAttribute("aria-controls"));o&&o.classList.add("hidden")})},t=function(n){const o=w.querySelector(`button[aria-controls="${n.id}"]`);o.setAttribute("aria-expanded","false"),n.classList.add("hidden"),o.focus()},s=function(n){const o=document.querySelectorAll('[data-component="filter-checkbox-dropdown"]'),r=Array.from(o).findIndex(a=>a.querySelector("button").getAttribute("aria-controls")===n.id);for(let a=r+1;a<o.length;a++){const c=o[a].querySelector("button");if(c&&c.offsetParent!==null){c.focus();break}}};const i=document.querySelectorAll('[data-component="filter-checkbox-dropdown"] button');document.addEventListener("click",n=>{if(w.contains(n.target)){const o=n.target.closest("button");if(o&&o.getAttribute("aria-controls")){const r=o.getAttribute("aria-controls"),a=document.getElementById(r);if(a){let c=o.getAttribute("aria-expanded")==="true";if(i.forEach(function(l){l!==o&&(l.setAttribute("aria-expanded","false"),document.getElementById(l.getAttribute("aria-controls")).classList.add("hidden"))}),o.setAttribute("aria-expanded",!c),a.classList.toggle("hidden"),!c){const l=a.querySelector('input[type="checkbox"], input[type="radio"]');l&&l.focus()}}}}else e()}),document.addEventListener("keydown",n=>{const o=document.activeElement;if(n.key==="Escape"){const r=w.querySelector('button[aria-expanded="true"]');if(r){const a=r.getAttribute("aria-controls"),c=document.getElementById(a);c&&t(c)}}if(o&&o.tagName==="BUTTON"&&o.getAttribute("aria-controls")&&(n.key==="Enter"||n.key===" ")&&(n.preventDefault(),o.click()),o&&o.type==="radio"&&n.key==="Tab"){const r=o.closest(".w-full"),a=r.querySelectorAll('input[type="radio"]'),c=Array.from(a).indexOf(o);n.shiftKey?c>0?(n.preventDefault(),a[c-1].focus()):t(r):c<a.length-1?(n.preventDefault(),a[c+1].focus()):t(r)}if(o&&o.type==="checkbox"&&n.key==="Tab"){const r=o.closest(".w-full"),a=r.querySelectorAll('input[type="checkbox"]'),c=Array.from(a).indexOf(o);
1n.shiftKey?c>0?(n.preventDefault(),a[c-1].focus()):t(r):c<a.length-1?(n.preventDefault(),a[c+1].focus()):(t(r),setTimeout(()=>s(r),0))}}),document.addEventListener("focusin",n=>{w.contains(n.target)||e()})}class ge{constructor(e,t,s){this.block=e,!(!this.block||typeof this.block!="object")&&(this.blockResults=this.block.querySelector("[data-results]"),this.blockQuery=this.block.dataset.query?JSON.parse(this.block.dataset.query):null,this.blockPaginationLinks=this.block.querySelectorAll("[data-pagination] a"),!(!this.blockPaginationLinks||!this.blockQuery||!this.blockResults)&&(this.blockQuery={post_type:this.blockQuery.post_type||null,posts_per_page:this.blockQuery.posts_per_page||null,order_by:this.blockQuery.order_by||"date",order:this.blockQuery.order||"desc",posts_limit:this.blockQuery.posts_limit||null,tax_query:this.blockQuery.tax_query||null},this.nonce=t,this.action="eab-fetch-more-blogs",this.initClass=s||"is-initialized",this.initializeBlock()))}initializeBlock(){const{block:e}=this;!e||typeof e!="object"||(e.classList.add(this.initClass),this.setClickHandlers())}setClickHandlers(){this.blockPaginationLinks=this.block.querySelectorAll("[data-pagination] a"),Array.from(this.blockPaginationLinks).forEach(e=>{e.addEventListener("click",t=>{t.preventDefault();let s={...this.blockQuery};s.paged=this.getPaged(t.target.href),this.submitQuery(s)},!1)})}getPaged(e){const s=e?this.removeTrailingSlash(e).split("/"):null;return s&&parseInt(s.slice(-1))>1?parseInt(s.slice(-1)):1}removeTrailingSlash(e){return e.slice(-1)==="/"?e.slice(0,-1):e}submitQuery(e){const{action:t,nonce:s}=this,n=new FormData;typeof e!="string"&&(e=JSON.stringify(e)),n.append("action",t),n.append("nonce",s),n.append("query",e),window.fetch(window.EABConfig.ajaxurl,{method:"POST",body:n,credentials:"same-origin"}).then(o=>o.text()).then(o=>{const a=new DOMParser().parseFromString(o,"text/html").querySelector("[data-results]");this.blockResults.replaceWith(a),this.setClickHandlers()})}}class we{constructor(e,t){this.blockSelector=e,this.nonce=t,this.initClass="is-initialized",this.blocks=$(this.blockSelector),this.blocks&&this.blocks.forEach(s=>{!s.classList.contains(this.initClass)&&new ge(s,this.nonce,this.initClass)})}}window.cardCarousel=function(){Array.prototype.slice.call(document.querySelectorAll("[data-tns='card-carousel']")).forEach(function(i){i.classList.contains("loaded")||(i.classList.add("loaded"),z({container:i,autoplay:!1,loop:!1,nav:!1,items:1,gutter:24,controlsContainer:'[data-tns="card-carousel-controls"]',mouseDrag:!0,responsive:{640:{gutter:48}}}))})},document.addEventListener("DOMContentLoaded",function(){window.cardCarousel()});var A={featuredEvents:null,newsroom:null,pressRelease:null};function be(i){return i<=1?1:i===2?2:2.25}function x(i,e,t){var s=document.querySelector(e);if(!!s){var n=s.querySelectorAll(".swiper-slide").length,o=be(n),r=n===2,a=n>2;t.onBeforeInit&&t.onBeforeInit(s,r,a),A[i]&&A[i].destroy(!0,!0);var c={slidesPerView:1,spaceBetween:t.mobileSpaceBetween,watchOverflow:!0,centerInsufficientSlides:!r,navigation:{nextEl:t.nextEl,prevEl:t.prevEl},breakpoints:{768:{slidesPerView:1.25,spaceBetween:t.tabletSpaceBetween},1280:{slidesPerView:o,spaceBetween:t.desktopSpaceBetween}}};t.paginationEl&&(c.pagination={el:t.paginationEl}),A[i]=new Swiper(e,c)}}function ye(){x("featuredEvents",".featured-events",{mobileSpaceBetween:10,tabletSpaceBetween:10,desktopSpaceBetween:30,paginationEl:".swiper-pagination-newsroom",nextEl:".swiper-button-next-article",prevEl:".swiper-button-prev-article",onBeforeInit:function(i,e,t){var s=i.closest(".slider-container"),n=i.closest(".card-carousel-frame");i.classList.toggle("has-two-slides",e),s&&s.classList.toggle("has-two-slides",e),n&&n.classList.toggle("has-many-slides",t)}}),x("newsroom",".newsroom-slider",{mobileSpaceBetween:20,tabletSpaceBetween:10,desktopSpaceBetween:30,paginationEl:".swiper-pagination-newsroom",nextEl:".swiper-button-next",prevEl:".swiper-button-prev"}),x("pressRelease",".press-release-slider",{mobileSpaceBetween:20,tabletSpaceBetween:10,desktopSpaceBetween:30,paginationEl:".swiper-pagination-press-release",nextEl:".swiper-button-next",prevEl:".swiper-button-prev"})}ye();document.querySelectorAll(".swiper-button-next, .swiper-button-prev, .swiper-button-prev-article, .swiper-button-next-article").forEach(i=>
1{i.addEventListener("keydown",function(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.click())})});const T=()=>{fe()};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",T):T();new Z(document.querySelector('[data-component="eab-login"]'));new ee(document.querySelector('[data-action="eab-logout"]'));new te(document.getElementById("reset_password_confirmation"));new se(document.querySelector('[data-component="eab-registration"]'),"eab-register",window.EABConfig.registerNonce,window.EABConfig.fetchOrganizationsNonce);new ne(document.querySelector('[data-component="my-account-form"]'),"eab-update",window.EABConfig.updateNonce,window.EABConfig.fetchOrganizationsNonce);new le(document.querySelector('[data-action="register-event"]'));new de(document.querySelector('[data-action="deregister-event"]'));new M(document.querySelector('[data-action="register-multiple-events"]'));new oe(document.querySelector('[data-component="autosubmit"]'));new ie(document.querySelector('[data-component="autosubmitlegacy"]'));const ve=document.querySelectorAll('[data-component="check-all"]');ve.forEach(i=>{new re(i)});new ae(document.querySelectorAll('[data-component="save-post"]'));new ce;new he('[data-component="eab-filtered-resource-collection"]',window.EABConfig.fetchFilteredResourcesNonce);new Y;new we('[data-component="eab-more-blogs"]',window.EABConfig.fetchMoreBlogsNonce);const Se=[...document.querySelectorAll("[data-module]")];Se.forEach(i=>{i.dataset.module.split(" ").forEach(function(e){J(Object.assign({
1"./modules/all_solutions.js":()=>E(()=>import("./all_solutions.1d3f03ed.js"),[]),
1"./modules/appear.js":()=>E(()=>import("./appear.6b59402e.js"),[]),
1"./modules/who-we-serve.js":()=>E(()=>import("./who-we-serve.295f7211.js"),[])
1}),`./modules/${e}.js`).then(t=>{new t.default(i)})})});const Ee=document.querySelectorAll(".wws-main-container img");Ee.forEach(function(i){});const ke=()=>{window.OneTrust&&window.OneTrust.ToggleInfoDisplay()};var Ce=document.getElementById("preference-center-button");Ce&&document.getElementById("preference-center-button").addEventListener("click",function(i){i.stopPropagation(),ke()});function V(){var i=jQuery("#location-select option:selected"),e=i.attr("data-registered"),t=i.attr("data-status");const s=jQuery("#approved-user-content"),n=jQuery("#registered-user-content"),o=jQuery("#registered-session-confirmation"),r=jQuery("#registration-pending-message"),a=jQuery("#registered-user-buttons"),c=jQuery("#unregistered-user-content"),l=jQuery("#unregistered-user-buttons");e&&t=="pending"?(s.addClass("hidden"),a.removeClass(),n.removeClass(),r.removeClass("hidden"),o.addClass("hidden"),c.addClass("hidden"),l.addClass("hidden")):e&&t=="approved"?(s.removeClass(),a.removeClass(),r.addClass("hidden"),n.addClass("hidden"),o.removeClass("hidden"),c.addClass("hidden"),l.addClass("hidden")):(e&&t=="declined",s.addClass("hidden"),a.addClass("hidden"),n.addClass("hidden"),o.addClass("hidden"),c.removeClass(),l.removeClass())}var Le=document.getElementById("location-select");Le&&V();jQuery("#location-select").on("change",V);function Ae(i){const e=document.querySelectorAll('[type="checkbox"][name="location-checkbox[]"]');if(!e.length)return;e.forEach(function(s){s.disabled=!1}),i.target.classList.add("hidden");const t=document.querySelector("#update-sessions-button");t.classList.remove("hidden"),new M(t)}var O;(O=document.querySelector("#modify-sessions-button"))==null||O.addEventListener("click",Ae);function xe(){const i=document.querySelectorAll('[type="checkbox"][name="location-checkbox[]"]');if(!i.length)return;if(document.querySelectorAll('[type="checkbox"][data-registered="registered"]').length===0){i.forEach(function(c){c.checked=!0,c.disabled=!1});return}i.forEach(function(c){c.disabled=!0}),document.querySelector("#registered-user-content").classList.remove("hidden"),document.querySelector("#registered-user-buttons").classList.remove("hidden"),document.querySelector("#modify-sessions-button").classList.remove("hidden"),document.querySelector("#unregistered-user-content").classList.add("hidden"),document.querySelector("#update-sessions-button").classList.add("hidden"),document.querySelector("#unregistered-user-buttons").classList.add("hidden")}document.addEventListener("DOMContentLoaded",xe);var Q=new Swiper(".logo-swiper-container",{slidesPerView:7,spaceBetween:50,speed:3500,loop:!0,loopedSlides:7,autoplay:{delay:0,disableOnInteraction:!1},breakpoints:{320:{slidesPerView:3,spaceBetween:40},768:{slidesPerView:5,spaceBetween:60},1e3:{slidesPerView:7,spaceBetween:30}}});jQuery(document).ready(function(){new ModalVideo(".modal-btn:not([data-wistia-id])")});function Be(i){const e="wistia-modal-"+i+"-"+Date.now();if(document.body.insertAdjacentHTML("beforeend",` 2 <div class="modal-video" tabindex="-1" role="dialog" aria-label="You just openned the modal video" id="${e}"> 3 <div class="modal-video-body"> 4 <div class="modal-video-inner" id="modal-video-inner-${e}"> 5 <div class="modal-video-movie-wrap" style="padding-bottom:56.25%"> 6 <button class="modal-video-close-btn js-modal-video-dismiss-btn" aria-label="Close the modal by clicking here"></button> 7 <div class="wistia_embed wistia_async_${i} autoPlay=true" style="width:100%;height:100%"></div> 8 </div> 9 </div> 10 </div> 11 </div> 12 `),!document.querySelector('script[src="https://fast.wistia.com/player.js"]')){const s=document.createElement("script");s.src="https://fast.wistia.com/player.js",s.async=!0,document.body.appendChild(s)}const t="https://fast.wistia.com/embed/"+i+".js";if(!document.querySelector('script[src="'+t+'"]')){const s=document.createElement("script");s.src=t,s.async=!0,s.type="module",document.body.appendChild(s)}document.getElementById(e).focus()}document.addEventListener("click",function(i){const e=i.target.closest("[data-wistia-id]");if(e){i.preventDefault(),Be(e.dataset.wistiaId);return}const t=i.target.closest(".modal-video");t&&t.id.indexOf("wistia-modal-")===0&&!i.target.closest(".modal-video-movie-wrap")&&t.remove()});
12const qe=document.querySelectorAll(".logo-swiper-container");qe.forEach(i=>{new Swiper(i,{slidesPerView:7,spaceBetween:50,speed:3500,loop:!0,loopedSlides:7,autoplay:{delay:0,disableOnInteraction:!1},breakpoints:{320:{slidesPerView:3,spaceBetween:40},768:{slidesPerView:5,spaceBetween:60},1e3:{slidesPerView:7,spaceBetween:30}}})});function Pe(){Q.autoplay.stop()}function Ie(){Q.autoplay.start()}const B=document.querySelector(".logo-swiper-container");B&&(B.addEventListener("focusin",function(){Pe()}),B.addEventListener("focusout",function(){Ie()}));document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll('[id^="counter-"]').forEach(e=>{const t=e.getAttribute("data-final-min-value"),s=e.getAttribute("data-final-max-value"),n=e.querySelector(".counter-min"),o={startVal:0,duration:3,decimalPlaces:0};new IntersectionObserver((a,c)=>{a.forEach(l=>{if(l.isIntersecting){const u=new q(n,t,o);if(u.error?console.error(u.error):u.start(),s){const d=e.querySelector(".counter-max"),h=new q(d,s,o);h.error?console.error(h.error):h.start()}c.unobserve(l.target)}})},{root:null,rootMargin:"-10% 0px",threshold:0}).observe(e)})});document.addEventListener("keydown",function(i){let e=document.activeElement;if(e.localName==="label"&&(i.key==="Enter"||i.key==="Space"||i.key===" ")&&(i.preventDefault(),e.hasChildNodes())){const t=e.querySelectorAll('input[type="radio"]'),s=e.querySelectorAll('input[type="file"]');t.length>0&&e.click(),s.length>0&&e.click()}});document.addEventListener("DOMContentLoaded",function(){const i=document.getElementById("search-form");if(i){const e=i.querySelector('input[type="search"]'),t=i.querySelector(".ep-autosuggest"),s=()=>{setTimeout(()=>{const n=getComputedStyle(t).display==="block",o=e.getAttribute("aria-expanded")==="true";n&&!o?e.setAttribute("aria-expanded","true"):!n&&o&&e.setAttribute("aria-expanded","false")},100)};e&&(e.addEventListener("input",s),e.addEventListener("focus",s),e.addEventListener("blur",function(){setTimeout(()=>{e.setAttribute("aria-expanded","false")},100)}))}});document.addEventListener("DOMContentLoaded",function(){const i=document.querySelectorAll(".accordion-item summary");i&&i.forEach(s=>{s.closest("details").hasAttribute("open")&&s.setAttribute("aria-expanded","true"),s.addEventListener("click",e)});function e(){this.getAttribute("aria-expanded")==="true"?this.setAttribute("aria-expanded","false"):this.setAttribute("aria-expanded","true")}document.querySelectorAll(".eye-icon").forEach(s=>{const n=s.closest(".password-toggle"),o=n.querySelector(".sr-only").textContent;if(n.dataset.toggleBound)return;n.dataset.toggleBound="true";const r=n.closest(".password-toggle-wrapper"),a=r.querySelector("[role='tooltip']");a.textContent=o;const c=()=>a&&a.removeAttribute("hidden"),l=()=>a&&a.setAttribute("hidden","");n.addEventListener("mouseenter",c),n.addEventListener("focus",c),n.addEventListener("mouseleave",l),n.addEventListener("blur",l),n.addEventListener("keydown",d=>{d.key==="Escape"&&l()});function u(d){switch(d=d.toLowerCase(),d){case"show password":return"Hide password";case"hide password":return"Show password";case"show confirm password":return"Hide confirm password";case"hide confirm password":return"Show confirm password"}return d}n.addEventListener("click",()=>{const d=r.querySelector("input"),h=d.type==="password";d.type=h?"text":"password";const m=n.querySelector(".sr-only"),g=u(m.textContent);n.setAttribute("aria-label",g),m.textContent=g,a&&(a.textContent=g),n.setAttribute("aria-pressed",String(h)),r.classList.toggle("is-visible",h)})}),document.querySelectorAll("#gutenberg .eab-custom-block.text_icon_block .text-body-md.font-light p").forEach(s=>{const n=s.innerHTML.trim();(n===" "||n===" ")&&s.remove()})});
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.