PageSourceSearch

https://pacificsciencecenter.org/wp-content/themes/gesso/js/dist/mobile-menu.min.js?ver=1790649173

js pacificsciencecenter.org collected 2026-10-01 09:08:58 UTC 12,573 bytes, 1 lines download raw bytes

1!function(){var e,t={1951:function(e,t,n){"use strict";n(4916),n(5306),n(4747),n(2222);var o={TAB:9,RETURN:13,ESC:27,SPACE:32,PAGEUP:33,PAGEDOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40},i="1100px",s=function(){function e(e){var t=void 0===e?{}:e,n=t.toggleSubNav,o=void 0!==n&&n,s=t.navMenu,l=void 0===s?".menu--main":s,a=t.searchBlock,u=void 0===a?".l-header__search-form":a,r=t.accountMenu,c=void 0===r?".menu--account":r,d=t.utilityMenu,h=void 0===d?".l-header__cta":d,m=t.header,v=void 0===m?".l-header__main":m,p=t.toggleButton,b=void 0===p?".mobile-menu-button--menu":p,y=t.container,f=void 0===y?".mobile-menu-container":y,g=t.menuItem,_=void 0===g?".menu__item":g,B=t.menuItemClass,M=void 0===B?"mobile-menu__item":B,k=t.menuLink,C=void 0===k?".menu__link":k,A=t.menuLinkClass,L=void 0===A?"mobile-menu__link":A,w=t.menuSubMenu,x=void 0===w?".menu__subnav":w,E=t.menuSubMenuClass,S=void 0===E?"mobile-menu__subnav":E,T=t.overlayClass,I=void 0===T?"mobile-menu":T,O=t.mobileMenuClass,D=void 0===O?"mobile-menu__menu":O,N=t.mobileSearchClass,$=void 0===N?"mobile-menu__search":N,q=t.mobileAccountMenuClass,j=void 0===q?"mobile-menu__account":q,P=t.mobileUtilityMenuClass,U=void 0===P?"mobile-menu__cta":P,F=t.buttonClass,K=void 0===F?"mobile-menu-button":F,H=t.menuButtonClass,W=void 0===H?"mobile-menu-button--menu":H,G=t.closeButtonClass,R=void 0===G?"mobile-menu-button--close":G,z=t.arrowButtonClass,J=void 0===z?"mobile-menu__subnav-arrow":z,Q=t.mobileMenuBreakp
1oint,V=void 0===Q?"(max-width: "+i+")":Q,X=t.showToggleAtAllBreakpoints,Y=void 0!==X&&X;this.options={toggleSubNav:o,searchBlock:u,menuItem:_,menuItemClass:M,menuLink:C,menuLinkClass:L,menuSubMenu:x,menuSubMenuClass:S,overlayClass:I,mobileMenuClass:D,mobileSearchClass:$,mobileUtilityMenuClass:U,mobileAccountMenuClass:j,buttonClass:K,menuButtonClass:W,closeButtonClass:R,arrowButtonClass:J,mobileMenuBreakpoint:V,showToggleAtAllBreakpoints:Y},this.navMenu=l?document.querySelector(l):null,this.searchBlock=u?document.querySelector(u):null,this.utilityMenu=h?document.querySelector(h):null,this.accountMenu=c?document.querySelector(c):null,this.header=v?document.querySelector(v):null,this.toggleButton=b?document.querySelector(b):null,this.container=f?document.querySelector(f):null,this.prevFocused=null,this._handleKeyDown=this._handleKeyDown.bind(this),this._toggleMenuDisplay=this._toggleMenuDisplay.bind(this),this.close=this.close.bind(this)}var t=e.prototype;return t._cleanString=function(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"")},t._processLinks=function(e,t,n){var o=e,i=document.createElement("button"),s=this._cleanString("mobile-menu-"+e.innerText+(n||""));t.setAttribute("id",s),t.setAttribute("style","display: none;"),i.classList.add(this.options.arrowButtonClass),i.setAttribute("aria-controls",s),i.setAttribute("aria-expanded","false"),i.innerHTML='<span class="visually-hidden">Toggle '+e.innerText+" SubNav</span>",i.addEventListener("click",(function(e){"false"===i.getAttribute("aria-expanded")?(e.currentTarget.setAttribute("aria-expanded","true"),t.setAttribute("style","display: block;")):(e.currentTarget.setAttribute("aria-expanded","false"),t.setAttribute("style","display: none;"))})),o.parentNode.insertBefore(i,t)},t._cloneBlock=function(e,t){void 0===t&&(t="");var n=null;return e&&(n=e.cloneNode(!0),t&&n.classList.add(t)),n},t._cloneMenu=function(e,t){var n=this;void 0===t&&(t="");var o=null;if(e){(o=e.cloneNode(!0)).className="";var i=this.options.toggleSubNav?"mobile-menu__menu--toggle-subnav":"mobile-menu__menu--show-subnav";t&&o.classList.add(t),o.classList.add(i);var s=o.querySelectorAll(this.options.menuItem);s.length&&s.forEach((function(e){e.classList.add(n.options.menuItemClass),e.classList.remove("menu__item")}));var l=o.querySelectorAll(this.options.menuSubMenu);l.length&&l.forEach((function(e){e.classList.add(n.options.menuSubMenuClass),e.classList.remove("menu"),e.classList.remove("menu__subnav")}));var a=o.querySelectorAll(this.options.menuLink);a.length&&a.forEach((function(e,t){var o=e.nextElementSibling;e.tabIndex=-1,n.options.toggleSubNav&&e.classList.contains("has-subnav")&&o&&"UL"===o.tagName&&n._processLinks(e,o,t),e.classList.add(n.options.menuLinkClass),e.classList.remove("menu__link")}))}return o},t._setTabIndex=function(e,t){Array.isArray(e)?e.forEach((function(e){if(Object.prototype.isPrototypeOf.call(NodeList.prototype,e))for(var n=0;n<e.length;n++)e[n].tabIndex=t;else e.tabIndex=t})):e.tabIndex=t},t._handleKeyDown=function(e){var t=this.overlay.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),n=t.length,i=t[0],s=t[n-1];e.keyCode===o.ESC&&this.close(),e.keyCode===o.TAB&&e.shiftKey?document.activeElement===i&&(e.preventDefault(),s.focus()):e.keyCode===o.TAB&&document.activeElement===s&&(e.preventDefault(),i.focus())},t._toggleMenuDisplay=function(){window.matchMedia(this.options.mobileMenuBreakp
1oint).matches?(this.overlay.style.display="",this.toggleButton.style.display="",this.searchBlock&&(this.searchBlock.style.display="none"),this.navMenu&&(this.navMenu.style.display="none"),this.utilityMenu&&(this.utilityMenu.style.display="none"),this.searchBlock&&(this.searchBlock.style.display="none"),this.close()):(this.overlay.style.display="none",this.toggleButton.style.display=this.options.showToggleAtAllBreakpoints?"":"none",this.searchBlock&&(this.searchBlock.style.display=""),this.navMenu&&(this.navMenu.style.display=""),this.utilityMenu&&(this.utilityMenu.style.display=""),this.searchBlock&&(this.searchBlock.style.display=""))},t.init=function(){var e=this;this.overlay=document.createElement("nav"),this.overlay.classList.add(this.options.overlayClass),this.overlay.setAttribute("aria-modal","true"),this.closeButton=document.createElement("button"),this.closeButton.classList.add(this.options.buttonClass),this.closeButton.classList.add(this.options.closeButtonClass),this.closeButton.innerHTML='<span class="mobile-menu-button__icon">Close</span>',this.closeButton.addEventListener("click",(function(){return e.close()})),this.overlay.appendChild(this.closeButton),null===this.toggleButton&&(this.toggleButton=document.createElement("button"),this.toggleButton.classList.add(this.options.buttonClass),this.toggleButton.classList.add(this.options.menuButtonClass),this.toggleButton.innerHTML='<span class="mobile-menu-button__icon">Menu</span>',this.toggleButton.setAttribute("aria-haspopup","menu"),this.header?this.header.insertAdjacentElement("beforeEnd",this.toggleButton):document.body.insertAdjacentElement("afterBegin",this.toggleButton)),this.toggleButton.addEventListener("click",(function(){return e.open()})),this.navMenu&&this.overlay.appendChild(this._cloneMenu(this.navMenu,this.options.mobileMenuClass)),this.accountMenu&&this.overlay.appendChild(this._cloneMenu(this.accountMenu,this.options.mobileAccountMenuClass)),this.utilityMenu&&this.overlay.appendChild(this._cloneMenu(this.utilityMenu,this.options.mobileUtilityMenuClass)),this.searchBlock&&this.overlay.appendChild(this._cloneBlock(this.searchBlock,this.options.mobileSearchClass)),this.container?this.container.appendChild(this.overlay):this.header?this.header.insertAdjacentElement("afterEnd",this.overlay):document.body.insertAdjacentElement("afterBegin",this.overlay),this._toggleMenuDisplay(),this.close();var t=!1,n=window.innerWidth;window.addEventListener("resize",(function(){var o=window.innerWidth;n!==o&&(!1!==t&&clearTimeout(t),t=setTimeout(e._toggleMenuDisplay,200),n=o)}))},t.open=function(){this.prevFocused=document.activeElement,this._setTabIndex(this.closeButton,0),this.closeButton.addEventListener("click",this.close);var e=[].concat(this.overlay.querySelectorAll(".mobile-menu__link"));this._setTabIndex(e,0),document.body.classList.add("has-open-mobile-menu"),this.overlay.setAttribute("style","display: block;"),this.toggleButton.setAttribute("aria-expanded","true"),document.addEventListener("keydown",this._handleKeyDown)},t.close=function(){this._setTabIndex(this.closeButton,-1);var e=[].concat(this.overlay.querySelectorAll(".mobile-menu__link"));this._setTabIndex(e,-1),document.removeEventListener("keydown",this._handleKeyDown),this.closeButton.removeEventListener("click",this.close),document.body.classList.remove("has-open-mobile-menu"),this.overlay.setAttribute("style","display: none;"),this.toggleButton.removeAttribute("aria-expanded"),this.prevFocused&&this.prevFocused.focus()},e}(),l=function(){document.body.classList.contains("mobile-menu-processed")||(new s({navMenu:".menu--mobile-source",showToggleAtAllBreakpoints:!0,toggleSubNav:!0,utilityMenu:null}).init(),document.body.classList.add("mobile-menu-processed"))};"complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll?l():document.addEventListener("DOMContentLoaded",l)},7207:function(e){var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},647:function(e,t,n){var o=n(1702),i=n(7908),s=Math.floor,l=o("".charAt),a=o("".replace),u=o("".slice),r=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,o,d,h){var m=n+e.length,v=o.length,p=c;return void 0!==d&&(d=i(d),p=r),a(h,p,(function(i,a){var r;switch(l(a,0)){case"$":return"$";case"&":return e;case"`":return u(t,0,n);case"'":return u(t,m);case"<":r=d[u(a,1,-1)];break;default:var c=+a;if(0===c)return i;if(c>v){var h=s(c/10);return 0===h?i:h<=v?void 0===o[h-1]?l(a,1):o[h-1]+l(a,1):i}r=o[c-1]}return void 0===r?"":r}))}},2222:function(e,t,n){"use strict";var o=n(2109),i=n(7293),s=n(3157),l=n(111),a=n(7908),u=n(6244),r=n(7207),c=n(6135),d=n(5417),h=n(1194),m=n(5112),v=n(7392),p=m("isConcatSpreadable"),b=v>=51||!i((function(){var e=[];return e[p]=!1,e.concat()[0]!==e})),y=h("concat"),f=function(e){if(!l(e))return!1;var t=e[p];return void 0!==t?!!t:s(e)};o({target:"Array",proto:!0,arity:1,forced:!b||!y},{concat:function(e){var t,n,o,i,s,l=a(this),h=d(l,0),m=0;for(t=-1,o=arguments.length;t<o;t++)if(f(s=-1===t?l:arguments[t]))for(i=u(s),r(m+i),n=0;n<i;
1n++,m++)n in s&&c(h,m,s[n]);else r(m+1),c(h,m++,s);return h.length=m,h}})},5306:function(e,t,n){"use strict";var o=n(2104),i=n(6916),s=n(1702),l=n(7007),a=n(7293),u=n(9670),r=n(614),c=n(9303),d=n(7466),h=n(1340),m=n(4488),v=n(1530),p=n(8173),b=n(647),y=n(7651),f=n(5112)("replace"),g=Math.max,_=Math.min,B=s([].concat),M=s([].push),k=s("".indexOf),C=s("".slice),A="$0"==="a".replace(/./,"$0"),L=!!/./[f]&&""===/./[f]("a","$0");l("replace",(function(e,t,n){var s=L?"$":"$0";return[function(e,n){var o=m(this),s=null==e?void 0:p(e,f);return s?i(s,e,o,n):i(t,h(o),e,n)},function(e,i){var l=u(this),a=h(e);if("string"==typeof i&&-1===k(i,s)&&-1===k(i,"$<")){var m=n(t,l,a,i);if(m.done)return m.value}var p=r(i);p||(i=h(i));var f=l.global;if(f){var A=l.unicode;l.lastIndex=0}for(var L=[];;){var w=y(l,a);if(null===w)break;if(M(L,w),!f)break;""===h(w[0])&&(l.lastIndex=v(a,d(l.lastIndex),A))}for(var x,E="",S=0,T=0;T<L.length;T++){for(var I=h((w=L[T])[0]),O=g(_(c(w.index),a.length),0),D=[],N=1;N<w.length;N++)M(D,void 0===(x=w[N])?x:String(x));var $=w.groups;if(p){var q=B([I],D,O,a);void 0!==$&&M(q,$);var j=h(o(i,void 0,q))}else j=b(I,a,O,D,$,i);O>=S&&(E+=C(a,S,O)+j,S=O+I.length)}return E+C(a,S)}]}),!!a((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!A||L)}},n={};function o(e){var i=n[e];if(void 0!==i)return i.exports;var s=n[e]={exports:{}};return t[e](s,s.exports,o),s.exports}o.m=t,e=[],o.O=function(t,n,i,s){if(!n){var l=1/0;for(c=0;c<e.length;c++){n=e[c][0],i=e[c][1],s=e[c][2];for(var a=!0,u=0;u<n.length;u++)(!1&s||l>=s)&&Object.keys(o.O).every((function(e){return o.O[e](n[u])}))?n.splice(u--,1):(a=!1,s<l&&(l=s));if(a){e.splice(c--,1);var r=i();void 0!==r&&(t=r)}}return t}s=s||0;for(var c=e.length;c>0&&e[c-1][2]>s;c--)e[c]=e[c-1];e[c]=[n,i,s]},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={509:0};o.O.j=function(t){return 0===e[t]};var t=function(t,n){var i,s,l=n[0],a=n[1],u=n[2],r=0;for(i in a)o.o(a,i)&&(o.m[i]=a[i]);if(u)var c=u(o);for(t&&t(n);r<l.length;r++)s=l[r],o.o(e,s)&&e[s]&&e[s][0](),e[l[r]]=0;return o.O(c)},n=self.webpackChunkgesso_wp=self.webpackChunkgesso_wp||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}();var i=o.O(void 0,[592],(function(){return o(1951)}));i=o.O(i)}();

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.