PageSourceSearch

https://blind-veterans-front-end-prod.netlify.app/assets/js/app.js?04ae-0389-06a7

js blind-veterans-front-end-prod.netlify.app collected 2026-10-03 10:30:59 UTC 11,338 bytes, 2 lines download raw bytes

1/*! For license information please see app.js.LICENSE.txt */
2!function(){var t={2316:function(){var t=document.getElementById("back-to-top");if(t){var e,n=3*window.innerHeight;window.onscroll=function(){clearTimeout(e),e=setTimeout((function(){r(t,n)}),50)}}var r=function(t,e){document.body.scrollTop>e||document.documentElement.scrollTop>e?t.hidden=!1:t.hidden=!0}},93:function(){var t=document.getElementsByClassName("block-link");Array.prototype.forEach.call(t,(function(t){return t.addEventListener("click",(function(){var e=t.getElementsByTagName("a")[0];"_blank"===e.getAttribute("target")?window.open(e.getAttribute("href"),"_blank"):window.location=e.getAttribute("href")})),!1}))},5309:function(){document.addEventListener("keyup",(function(t){"Tab"===t.key&&t.target.scrollIntoView({block:"center"})}))},2468:function(){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(t){var e=this;do{if(Element.prototype.matches.call(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null})},6936:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}!function(t){"use strict";var e,n=function(){try{if(t.URLSearchParams&&"bar"===new t.URLSearchParams("foo=bar").get("foo"))return t.URLSearchParams}catch(t){}return null}(),o=n&&"a=1"===new n({a:1}).toString(),a=n&&"+"===new n("s=%2B").get("s"),i="__URLSearchParams__",c=!n||((e=new n).append("s"," &"),"s=+%26"===e.toString()),l=f.prototype,s=!(!t.Symbol||!t.Symbol.iterator);if(!(n&&o&&a&&c)){var u;l.append=function(t,e){g(this[i],t,e)},l.delete=function(t){delete this[i][t]},l.get=function(t){var e=this[i];return this.has(t)?e[t][0]:null},l.getAll=function(t){var e=this[i];return this.has(t)?e[t].slice(0):[]},l.has=function(t){return b(this[i],t)},l.set=function(t,e){this[i][t]=[""+e]},l.toString=function(){var t,e,n,r,o=this[i],a=[];for(e in o)for(n=h(e),t=0,r=o[e];t<r.length;t++)a.push(n+"="+h(r[t]));return a.join("&")},a&&n&&!o&&t.Proxy?(u=new Proxy(n,{construct:function(t,e){return new t(new f(e[0]).toString())}})).toString=Function.prototype.toString.bind(f):u=f,Object.defineProperty(t,"URLSearchParams",{value:u});var d=t.URLSearchParams.prototype;d.polyfill=!0,d.forEach=d.forEach||function(t,e){var n=y(this.toString());Object.getOwnPropertyNames(n).forEach((function(r){n[r].forEach((function(n){t.call(e,n,r,this)}),this)}),this)},d.sort=d.sort||function(){var t,e,n,r=y(this.toString()),o=[];for(t in r)o.push(t);for(o.sort(),e=0;e<o.length;e++)this.delete(o[e]);for(e=0;e<o.length;e++){var a=o[e],i=r[a];for(n=0;n<i.length;n++)this.append(a,i[n])}},d.keys=d.keys||function(){var t=[];return this.forEach((function(e,n){t.push(n)})),m(t)},d.values=d.values||function(){var t=[];return this.forEach((function(e){t.push(e)})),m(t)},d.entries=d.entries||function(){var t=[];return this.forEach((function(e,n){t.push([n,e])})),m(t)},s&&(d[t.Symbol.iterator]=d[t.Symbol.iterator]||d.entries)}function f(t){((t=t||"")instanceof URLSearchParams||t instanceof f)&&(t=t.toString()),this[i]=y(t)}
2function h(t){var e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'\(\)~]|%20|%00/g,(function(t){return e[t]}))}function p(t){return t.replace(/[ +]/g,"%20").replace(/(%[a-f0-9]{2})+/gi,(function(t){return decodeURIComponent(t)}))}function m(e){var n={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return s&&(n[t.Symbol.iterator]=function(){return n}),n}function y(t){var e={};if("object"===r(t))if(v(t))for(var n=0;n<t.length;n++){var o=t[n];if(!v(o)||2!==o.length)throw new TypeError("Failed to construct 'URLSearchParams': Sequence initializer must only contain pair elements");g(e,o[0],o[1])}else for(var a in t)t.hasOwnProperty(a)&&g(e,a,t[a]);else{0===t.indexOf("?")&&(t=t.slice(1));for(var i=t.split("&"),c=0;c<i.length;c++){var l=i[c],s=l.indexOf("=");-1<s?g(e,p(l.slice(0,s)),p(l.slice(s+1))):l&&g(e,p(l),"")}}return e}function g(t,e,n){var r="string"==typeof n?n:null!=n&&"function"==typeof n.toString?n.toString():JSON.stringify(n);b(t,e)?t[e].push(r):t[e]=[r]}function v(t){return!!t&&"[object Array]"===Object.prototype.toString.call(t)}function b(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(void 0!==n.g?n.g:"undefined"!=typeof window?window:this)}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var a=e[r]={exports:{}};return t[r].call(a.exports,a,a.exports,n),a.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),function(){"use strict";n(2468);var t=function(t,e,n){var r="",o=location.hostname;if(0===location.hostname.indexOf("www.")&&(o=location.hostname.replace("www.","")),n){var a=new Date;a.setTime(a.getTime()+24*n*60*60*1e3),r="; expires="+a.toUTCString()}var i="localhost"===o?t+"="+(e||"")+r+";domain="+o+"; path=/":t+"="+(e||"")+r+";domain=."+o+"; path=/";document.cookie=i},e=function(t){for(var e=t+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){for(var o=n[r];" "===o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(e))return o.substring(e.length,o.length)}return null},r=document.getElementById("cookie-banner"),o=document.getElementById("cookie-policy-form"),a=document.querySelectorAll("[data-button=accept-cookies]"),i="bv-cookie-policy-with-consent",c=e(i)?JSON.parse(e(i)):{necessary:"true",analytical:"false",advertisment:"false",functional:"false"},l=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"true";c[t]=e},s=function(t){return c[t]};(null==a?void 0:a.length)>0&&Array.prototype.forEach.call(a,(function(e){e.addEventListener("click",(function(e){e.preventDefault(),l("analytical"),l("advertisment"),l("functional"),location.reload(),t(i,JSON.stringify(c),365),r&&(r.hidden=!0)}))})),o&&o.addEventListener("submit",(function(e){for(var n in e.preventDefault(),c){var r=document.querySelector("input[name=".concat(n,"]:checked")).value;l(n,r)}t(i,JSON.stringify(c),365),location.reload()}));var u="bv-high-contrast",d=function(t){if(t){var e=document.createElement("link"),n=document.createElement("link");e.rel="stylesheet",n.rel="stylesheet",e.media="all",n.media="all",e.href="/assets/css/high-contrast.css?".concat(Date.now()),n.href="/assets/css/high-contrast-custom.css?".concat(Date.now()),e.id="high-contrast-css",n.id="high-contrast-custom-css",document.head.appendChild(e),document.head.appendChild(n)}else document.head.removeChild(document.getElementById("high-contrast-css")),document.head.removeChild(document.getElementById("high-contrast-custom-css"))},f=function(e){var n=e?"Switch to light mode":"Switch to dark mode";document.getElementById("high-contrast-desktop").checked=e,document.getElementById("high-contrast-mobile").checked=e,document.querySelector('label[for="high-contrast-desktop"]').innerHTML=n,document.querySelector('label[for="high-contrast-mobile"]').innerHTML=n,"true"===s("necessary")&&t(u,e,365)},h=document.querySelectorAll(".high-contrast-checkbox");if((null==h?void 0:h.length)>0){var p="true"===e(u)||"true"===localStorage.getItem(u);"true"===s("necessary")&&p&&(f(p),d(p),localStorage.getItem(u)&&localStorage.removeItem(u)),Array.prototype.forEach.call(h,(function(t){t.addEventListener("change",(function(t){var e=t.target.checked;f(e),d(e)}))}))}var m=document.querySelectorAll(".search-toggle-trigger"),y=document.getElementById("close-search"),g=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=document.getElementById("search-popout"),n=document.querySelectorAll(".search-toggle-trigger");e.hidden=!0,Array.prototype.forEach.call(n,(function(e){e.setAttribute("aria-expanded","fal
2se"),null!==e.offsetParent&&t&&e.focus()}))};(null==m?void 0:m.length)>0&&Array.prototype.forEach.call(m,(function(t){t.hidden=!1,t.addEventListener("click",(function(){var e,n;"false"===t.getAttribute("aria-expanded")?(n=(e=document.getElementById("search-popout")).querySelector("input"),b(!0),document.querySelector(".primary-nav-toggle").setAttribute("aria-expanded","false"),Array.prototype.forEach.call(m,(function(t){t.setAttribute("aria-expanded","true")})),e.hidden=!1,n.focus()):(t.setAttribute("aria-expanded","false"),g())}))})),y&&y.addEventListener("click",(function(){g(!0)}));var v=function(t){return t?t.querySelectorAll('button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"]):not([disabled]), details:not([disabled]), summary:not(:disabled)'):[]},b=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=document.querySelectorAll('.primary-nav__link[aria-haspopup][aria-expanded="true"]');Array.prototype.forEach.call(e,(function(t){t.setAttribute("aria-expanded","false")})),t||g()},S=document.querySelectorAll(".primary-nav__item-with-children");Array.prototype.forEach.call(S,(function(t){var e,n;e=t.querySelector(".primary-nav__link-with-children"),(n=document.createElement("button")).innerHTML=e.innerHTML,n.setAttribute("aria-expanded","false"),n.setAttribute("aria-haspopup","true"),n.classList.add("btn--no-style"),n.classList.add("primary-nav__link"),n.dataset.state=e.dataset.state||!1,n.addEventListener("click",(function(){!function(t){"false"===t.getAttribute("aria-expanded")?(b(),t.setAttribute("aria-expanded","true")):t.setAttribute("aria-expanded","false")}(n)})),e.parentNode.replaceChild(n,e),t.removeAttribute("tabindex")})),document.addEventListener("click",(function(t){t.target.closest(".primary-nav__item-with-children")||t.target.closest(".search-toggle-trigger")||t.target.closest(".search")||b()}));var E=document.querySelector(".primary-nav-toggle");E.addEventListener("click",(function(){var t,e,n,r,o,a,i,c,l="false"===E.getAttribute("aria-expanded");E.setAttribute("aria-expanded",l),t=l,e=document.getElementById("main-content"),n=document.getElementById("back-to-top"),r=document.getElementById("site-footer"),o=Array.prototype.slice.call(v(e)),a=Array.prototype.slice.call(v(n)),i=Array.prototype.slice.call(v(r)),c=o.concat(a,i),t?(e.setAttribute("aria-hidden","true"),n.setAttribute("aria-hidden","true"),r.setAttribute("aria-hidden","true"),Array.prototype.forEach.call(c,(function(t){t.setAttribute("tabindex","-1")}))):(e.removeAttribute("aria-hidden"),n.removeAttribute("aria-hidden"),r.removeAttribute("aria-hidden"),Array.prototype.forEach.call(c,(function(t){t.removeAttribute("tabindex")})))})),n(6936);var w=document.querySelectorAll('[data-button-type="donation"]'),A=new URLSearchParams(window.location.search);if(A&&"true"===A.get("donationQuery")&&sessionStorage.setItem("bv-url-params",A),(null==w?void 0:w.length)>0){var k=sessionStorage.getItem("bv-url-params");k&&Array.prototype.forEach.call(w,(function(t){var e=new URLSearchParams(t.href.split("?")[1]||"");new URLSearchParams(k).forEach((function(t,n){e.set(n,t)})),t.href="".concat(t.href.split("?")[0],"?").concat(e.toString())}))}n(93),n(2316),n(5309),document.body.classList.remove("no-js")}()}();

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.