1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[772],{9706:(e,t,n)=>{n.r(t),n.d(t,{default:()=>u});var i=n(8860),a=n(5913),l=n(8909),r=n(9216),o=n(6256);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,h(i.key),i)}}function h(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=s(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==s(t)?t:t+""}var u=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.element=t,this.pageBlocks=document.querySelectorAll("[data-nav-title]"),this.navSlider=null,this.navMobile=null,this.navLinks=null,this.anchor=window.location.hash,this.mobileTemplate=this.element.dataset.stickyAnchorNavTemplateMobile,this.itemMobileTemplate=this.element.dataset.stickyAnchorNavTemplateItemMobile,this.desktopTemplate=this.element.dataset.stickyAnchorNavTemplateDesktop,this.itemDesktopTemplate=this.element.dataset.stickyAnchorNavTemplateItemDesktop,this.navAriaLabel=null,this.screenResolution=window.screen.width,this.debounceTimer=null,this.updateNavLinksState=this.updateNavLinksState.bind(this),this.scrollToBlock=this.scrollToBlock.bind(this),this.onResize=this.onResize.bind(this),this.updateNavOnScroll=this.updateNavOnScroll.bind(this),this.bindEvents(),this.initStickyAnchorNav()},(t=[{key:"bindEvents",value:function(){window.addEventListener("resize",this.onResize),document.addEventListener(l.M$,this.updateNavOnScroll)}},{key:"initStickyAnchorNav",value:function(){this.pageBlocks.length>0&&((0,i.XC)(i.O2)?this.buildStickyAnchorNavDesktop():this.buildStickyAnchorNavMobile()),(0,a.l)("--sticky-anchor-nav","".concat(this.element.offsetHeight/10,"rem"))}},{key:"onResize",value:function(){var e=this;(0,i.Ih)(this.screenResolution,i.O2)&&(setTimeout((function(){e.element.innerHTML="",e.initStickyAnchorNav()}),500),this.screenResolution=window.screen.width)}},{key:"buildStickyAnchorNavDesktop",value:function(){var e=this;this.element.insertAdjacentHTML("beforeend",this.desktopTemplate);var t=this.element.querySelector(".js-sticky-anchor-nav-desktop"),n=this.element.querySelector('[data-slider-element="list"]');if(n.innerHTML="",this.pageBlocks.forEach((function(t,i){var a=t.dataset.navTitle,l=e.itemDesktopTemplate;t.id&&(l=(l=(l=(l=l.replace("%url%",t.id)).replace("%index%",i)).replace("%id%",a.replace(/ /g,""))).replace("%label%",a),n.insertAdjacentHTML("beforeend",l))})),this.navLinks=this.element.querySelectorAll('[data-sticky-anchor-nav-element="link"]'),(0,a.F5)(this.navLinks,"click",this.scrollToBlock),this.anchor){var i=n.querySelector('[href="'.concat(this.anchor,'"]'));i&&i.classList.add(l.Sk)}this.navSlider=new r.default(t,{gap:"--spacing-24",autoWidth:!0})}},{key:"buildStickyAnchorNavMobile",value:function(){var e=this;this.element.insertAdjacentHTML("beforeend",this.mobileTemplate);var t=this.element.querySelector(".js-sticky-anchor-nav-mobile"),n=this.element.querySelector('[data-sticky-anchor-nav-element="list"]'),i=this.element.querySelector('[data-sticky-anchor-nav-element="placeholder"]');this.pageBlocks.forEach((function(t){var i=t.dataset.navTitle,a=e.itemMobileTemplate;t.id&&(a=(a=(a=a.replace("%value%",t.id)).replace("%label%",i)).replace("%id%",i.replace(/ /g,"")),n.insertAdjacentHTML("beforeend",a))})),this.navMobile=new o.default(t),this.navLinks=this.element.querySelectorAll('[data-sticky-anchor-nav-element="link"]'),(0,a.F5)(this.navLinks,"click",this.scrollToBlock);var r=this.anchor?this.element.querySelector('[href="'.concat(this.anchor,'"]')):this.navLinks[0];r&&r.classList.add(l.Sk),i.textContent=r.textContent,this.navAriaLabel=t.ariaLabel,t.ariaLabel=this.navAriaLabel.replace("%selected_value%",r.textContent)}},{key:"updateNavLinksState",value:function(e){var t=e.currentTarget;if((0,a.Y_)(l.Sk,null,this.navLinks),t.classList.add(l.Sk),(0,i.Xk)(i.O2)){var n=this.element.querySelector(".js-sticky-anchor-nav-mobile"),r=this.element.querySelector('[data-sticky-anchor-nav-element="placeholder"]');r&&(r.textContent=t.textContent),n.ariaLabel=this.navAriaLabel.replace("%selected_value%",t.textContent),n.classList.contains(l.pn)&&n.click()}}},{key:"scrollToBlock",value:function(e){e.preventDefault();var t=e.detail.option||e.currentTarget;if(t){var n=t.dataset.comboboxOptionId||t.getAttribute("href").substring(1),i=document.getElementById(n);i&&(0,l.PA)(i),this.anchor="#".concat(n),window.history.replaceState(null,null,this.anchor)}this.updateNavLinksState({currentTarget:e.currentTarget})}},{key:"updateNavOnScroll",value:function(){var e=this;clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout((function(){var t=e.element.getBoundingClientRect(),n=null;if(e.pageBlocks.forEach((function(e){e.getBoundingClientRect().top<t.bottom+1&&(n=e)})),n){var i=e.element.querySelector('[href="#'.concat(n.id,'"]'));e.updateNavLinksState({currentTarget:i})}}),70)}}])&&c(e.prototype,t),n&&c(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()}}]);
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.