PageSourceSearch

https://res.app/_astro/Header.astro_astro_type_script_index_0_lang.BQmka8zw.js

js res.app collected 2026-10-03 20:04:09 UTC 7,426 bytes, 2 lines download raw bytes

1function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function t(e){return function(e){if(Array.isArray(e))return n(e)}(e)||function(e){if(typeof Symbol<`u`&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if(typeof e==`string`)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r===`Object`&&e.constructor&&(r=e.constructor.name),r===`Map`||r===`Set`)return Array.from(e);if(r===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,t)}}(e)||function(){throw TypeError(`Invalid attempt to spread non-iterable instance.
2In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function n(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var r,i,a,o,s,c=(r=[`a[href]`,`area[href]`,`input:not([disabled]):not([type="hidden"]):not([aria-hidden])`,`select:not([disabled]):not([aria-hidden])`,`textarea:not([disabled]):not([aria-hidden])`,`button:not([disabled]):not([aria-hidden])`,`iframe`,`object`,`embed`,`[contenteditable]`,`[tabindex]:not([tabindex^="-"])`],i=function(){function n(e){var r=e.targetModal,i=e.triggers,a=i===void 0?[]:i,o=e.onShow,s=o===void 0?function(){}:o,c=e.onClose,l=c===void 0?function(){}:c,u=e.openTrigger,d=u===void 0?`data-micromodal-trigger`:u,f=e.closeTrigger,p=f===void 0?`data-micromodal-close`:f,m=e.openClass,h=m===void 0?`is-open`:m,g=e.disableScroll,_=g!==void 0&&g,v=e.disableFocus,y=v!==void 0&&v,b=e.awaitCloseAnimation,x=b!==void 0&&b,S=e.awaitOpenAnimation,C=S!==void 0&&S,w=e.debugMode,T=w!==void 0&&w;(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,n),this.modal=document.getElementById(r),this.config={debugMode:T,disableScroll:_,openTrigger:d,closeTrigger:p,openClass:h,onShow:s,onClose:l,awaitCloseAnimation:x,awaitOpenAnimation:C,disableFocus:y},a.length>0&&this.registerTriggers.apply(this,t(a)),this.onClick=this.onClick.bind(this),this.onKeydown=this.onKeydown.bind(this)}var i,a,o;return i=n,(a=[{key:`registerTriggers`,value:function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];n.filter(Boolean).forEach((function(t){t.addEventListener(`click`,(function(t){return e.showModal(t)}))}))}},{key:`showModal`,value:function(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;this.activeElement=document.activeElement,this.modal.setAttribute(`aria-hidden`,`false`),this.modal.classList.add(this.config.openClass),this.scrollBehaviour(`disable`),this.addEventListeners(),this.config.awaitOpenAnimation?this.modal.addEventListener(`animationend`,function t(){e.modal.removeEventListener(`animationend`,t,!1),e.setFocusToFirstNode()},!1):this.setFocusToFirstNode(),this.config.onShow(this.modal,this.activeElement,t)}},{key:`closeModal`,value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,t=this.modal;if(this.modal.setAttribute(`aria-hidden`,`true`),this.removeEventListeners(),this.scrollBehaviour(`enable`),this.activeElement&&this.activeElement.focus&&this.activeElement.focus(),this.config.onClose(this.modal,this.activeElement,e),this.config.awaitCloseAnimation){var n=this.config.openClass;this.modal.addEventListener(`animationend`,(function e(){t.classList.remove(n),t.removeEventListener(`animationend`,e,!1)}),!1)}else t.classList.remove(this.config.openClass)}},{key:`closeModalById`,value:function(e){this.modal=document.getElementById(e),this.modal&&this.closeModal()}},{key:`scrollBehaviour`,value:function(e){if(this.config.disableScroll){var t=document.querySelector(`body`);switch(e){case`enable`:Object.assign(t.style,{overflow:``});break;case`disable`:Object.assign(t.style,{overflow:`hidden`})}}}},{key:`addEventListeners`,value:function(){this.modal.addEventListener(`touchstart`,this.onClick),this.modal.addEventListener(`click`,this.onClick),document.addEventListener(`keydown`,this.onKeydown)}},{key:`removeEventListeners`,value:function(){this.modal.removeEventListener(`touchstart`,this.onClick),this.modal.removeEventListener(`click`,this.onClick),document.removeEventListener(`ke
2ydown`,this.onKeydown)}},{key:`onClick`,value:function(e){(e.target.hasAttribute(this.config.closeTrigger)||e.target.parentNode.hasAttribute(this.config.closeTrigger))&&(e.preventDefault(),e.stopPropagation(),this.closeModal(e))}},{key:`onKeydown`,value:function(e){e.keyCode===27&&this.closeModal(e),e.keyCode===9&&this.retainFocus(e)}},{key:`getFocusableNodes`,value:function(){var e=this.modal.querySelectorAll(r);return Array.apply(void 0,t(e))}},{key:`setFocusToFirstNode`,value:function(){var e=this;if(!this.config.disableFocus){var t=this.getFocusableNodes();if(t.length!==0){var n=t.filter((function(t){return!t.hasAttribute(e.config.closeTrigger)}));n.length>0&&n[0].focus(),n.length===0&&t[0].focus()}}}},{key:`retainFocus`,value:function(e){var t=this.getFocusableNodes();if(t.length!==0)if(t=t.filter((function(e){return e.offsetParent!==null})),this.modal.contains(document.activeElement)){var n=t.indexOf(document.activeElement);e.shiftKey&&n===0&&(t[t.length-1].focus(),e.preventDefault()),!e.shiftKey&&t.length>0&&n===t.length-1&&(t[0].focus(),e.preventDefault())}else t[0].focus()}}])&&e(i.prototype,a),o&&e(i,o),n}(),a=null,o=function(e){if(!document.getElementById(e))return console.warn(`MicroModal: ❗Seems like you have missed %c'${e}'`,`background-color: #f8f9fa;color: #50596c;font-weight: bold;`,`ID somewhere in your code. Refer example below to resolve it.`),console.warn(`%cExample:`,`background-color: #f8f9fa;color: #50596c;font-weight: bold;`,`<div class="modal" id="${e}"></div>`),!1},s=function(e,t){if(function(e){e.length<=0&&(console.warn(`MicroModal: ❗Please specify at least one %c'micromodal-trigger'`,`background-color: #f8f9fa;color: #50596c;font-weight: bold;`,`data attribute.`),console.warn(`%cExample:`,`background-color: #f8f9fa;color: #50596c;font-weight: bold;`,`<a href="#" data-micromodal-trigger="my-modal"></a>`))}(e),!t)return!0;for(var n in t)o(n);return!0},{init:function(e){var n=Object.assign({},{openTrigger:`data-micromodal-trigger`},e),r=t(document.querySelectorAll(`[${n.openTrigger}]`)),o=function(e,t){var n=[];return e.forEach((function(e){var r=e.attributes[t].value;n[r]===void 0&&(n[r]=[]),n[r].push(e)})),n}(r,n.openTrigger);if(!0!==n.debugMode||!1!==s(r,o))for(var c in o){var l=o[c];n.targetModal=c,n.triggers=t(l),a=new i(n)}},show:function(e,t){var n=t||{};n.targetModal=e,!0===n.debugMode&&!1===o(e)||(a&&a.removeEventListeners(),(a=new i(n)).showModal())},close:function(e){e?a.closeModalById(e):a.closeModal()}});typeof window<`u`&&(window.MicroModal=c);var l=`Invariant failed`;function u(e,t){if(!e)throw Error(l)}var d=`menu-modal`,f=document.querySelector(`#${d}`),p=document.querySelector(`#${d} .modal-inner`),m=document.querySelector(`#open-nav-button`),h=document.querySelector(`#close-nav-button`);u(f,`menu modal should exist`),u(p,`menu inner should exist`),u(m,`openNavButton should not be null`),u(h,`closeNavButton should not be null`);var g=()=>{c.show(d,{disableScroll:!0})},_=()=>{c.close(d)};m.addEventListener(`click`,g),h.addEventListener(`click`,_),document.addEventListener(`click`,e=>{let t=e.target,n=f?.classList.contains(`is-open`),r=p?.contains(t),i=m?.contains(t);n&&!r&&!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.