1var throttle=function(t,r){var o,e=!1,i=0;function n(){o&&clearTimeout(o)}function l(){var a=Array.prototype.slice.call(arguments),s=this,d=Date.now()-i;function c(){i=Date.now(),r.apply(s,a)}e||(n(),d>t?c():o=setTimeout(c,t-d))}return l.cancel=function(){n(),e=!0},l},lazyLoading=function(t){if(t===void 0&&(t=document.querySelectorAll("img.js-lazy")),"IntersectionObserver"in window){var r="is-loaded",o=new IntersectionObserver(function(e,i){e.forEach(function(n){if(n.isIntersecting){var l=n.target,a=new Image;l.sizes&&(a.sizes=l.sizes),l.dataset.srcset&&(a.srcset=l.dataset.srcset),a.src=l.dataset.src,a.onload=function(){l.src=a.src,delete l.dataset.src,a.srcset&&(l.srcset=a.srcset,delete l.dataset.srcset),l.classList.add(r),l.addEventListener("transitionend",function(){l.classList.remove("js-lazy","is-loaded")},{once:!0}),i.unobserve(l)}}})},{threshold:.05});t.forEach(function(e){e&&e.dataset&&e.dataset.src&&e.classList.contains("js-lazy")?o.observe(e):e.classList.contains(r)||e.classList.add(r)})}else HTMLImageElement.prototype&&HTMLImageElement.prototype.loading?t.forEach(function(e){e&&e.dataset&&e.dataset.src&&e.classList.contains("js-lazy")&&(e.setAttribute("loading","lazy"),e.src=e.dataset.src,delete e.dataset.src)}):t.forEach(function(e){e&&e.dataset&&e.dataset.src&&e.classList.contains("js-lazy")&&(e.src=e.dataset.src,delete e.dataset.src)})};(function(){try{var t=0,r=0,o=0,e=0,i=null,n=function(s,d){window.dispatchEvent(new CustomEvent(s,{detail:d}))};window.scrollFire={trigger:function(){n("scrollfire:scroll",{directionX:t,directionY:r,x:o,y:e})}};var l=function(){i=null;var s=window.scrollX,d=window.scrollY,c=0,f=0;s>o?c=1:s<o&&(c=-1),d>e?f=1:d<e&&(f=-1),(c!==t||f!==r)&&(n("scrollfire:directionchange",{directionX:c,directionY:f,x:s,y:d}),c!==t&&n("scrollfire:directionchangex",{direction:c,x:s}),f!==r&&n("scrollfire:directionchangey",{direction:f,y:d})),(s!==o||d!==e)&&n("scrollfire:scroll",{directionX:c,directionY:f,x:s,y:d}),t=c,r=f,o=s,e=d},a=function(){i===null&&(i=window.requestAnimationFrame(l))};window.addEventListener("scroll",a,{passive:!0}),window.addEventListener("resize",a,{passive:!0}),window.addEventListener("orientationchange",a,{passive:!0}),l()}catch(s){console.error("[ams:parts/scroll-fire]",s)}})(),(function(){try{var t=".js-menuToggleLevel",r="is-menu",o="is-sticky",e="prevent-handleScroll",i="is-transitionActive",n="is-scrollingDown",l="lg:opacity-100",a=document.querySelector("#nav"),s=a?a.querySelectorAll(t):[],d=document.querySelector(".c-nav__level2"),c=document.querySelector(".c-nav__pwdSite"),f=document.querySelector(".c-nav__pwdLogo"),v={navLevel2HasOverwriteClass:d?d.classList.contains("homepage--second-level"):!1,elementIsSticky:!1,scrollEventListenersAdded:!1,offsetSticky:0},m=function(u){if(document.body.classList.contains(r))return u.preventDefault(),!1;if(document.body.classList.contains(e))return!0;u&&u.detail&&u.detail.directionY===-1?u.detail.y>0?(a.classList.contains(i)&&a.classList.add(o),u.detail.y>(window.outerWidth<1024?40:36)&&setTimeout(function(){a.classList.add(i)},15)):(a.classList.remove(o),a.classList.remove(i)):u&&u.detail&&u.detail.y>(window.outerWidth<1024?40:36)?(a.classList.add(o),setTimeout(function(){a.classList.add(i)},15)):(a.classList.remove(o),a.classList.remove(i)),u&&u.detail&&u.detail.y>(window.outerWidth<1024?40:36)?u.detail.directionY===-1?(c&&c.classList.remove(l),f&&f.classList.remove(l),a.classList.remove(n)):(c&&c.classList.add(l),f&&f.classList.add(l),a.classList.add(n)):a.classList.remove(n)},p=function(u){if(v.scrollEventListenersAdded&&!u){window.removeEventListener("scrollfire:scroll",m),v.scrollEventListenersAdded=!1;return}!v.scrollEventListenersAdded&&u&&(window.addEventListener("scrollfire:scroll",m),v.scrollEventListenersAdded=!0)},w=function(){var u=document.querySelector(".c-nav__level1");v.offsetSticky=u&&u.getBoundingClientRect().height||0;var y=d?window.getComputedStyle(d).display==="none":!0;if(s.length&&(s.forEach(function(L){document.getElementById(L.getAttribute("aria-controls")).classList.remove("c-nav__menuContainer--visible")}),document.body.classList.remove(r,r+"--level1",r+"--level2"),document.body.style.top="","lastScrollTop"in document.body.dataset&&(document.body.dataset.lastScrollTop>0&&document.body.classList.add(e),document.documentElement.scrollTop=document.body.dataset.lastScrollTop,document.body.dataset.lastScrollTop>0&&setTimeout(function(){document.body.classList.remove(e)},15),delete document.body.dataset.lastScrollTop)),!y&&!v.navLevel2HasOverwriteClass&&c){a.style.top=null,window.scrollFire&&window.scrollFire.trigger(),p(!0);return}a.classList.remove(n),p(!1)},q=function(u){document.body.classList.remove(r,r+"--level1",r+"--level2"),document.body.style.top="","lastScrollTop"in document.body.dataset&&(document.body.dataset.lastScrollTop>0&&document.body.classList.add(e),document.documentElement.scrollTop=document.body.dataset.lastScrollTop,document.body.dataset.lastScrollTop>0&&setTimeout(function(){document.body.classList.remove(e)},15),delete document.body.dataset.lastScrollTop);var y=document.getElementById(u.target.getAttribute("aria-controls"));if(u.target.getAttribute("aria-expanded")==="true")u.target.setAttribute("aria-expanded","fal
1se"),y.classList.remove("c-nav__menuContainer--visible");else{var L=u.target.dataset.navLevel,g=document.documentElement.scrollTop;y.classList.add("c-nav__menuContainer--visible"),g>0&&(document.body.dataset.lastScrollTop=g,document.body.style.top="-"+g+"px"),document.body.classList.add(r,r+"--level"+L),u.target.setAttribute("aria-expanded","true")}s.forEach(function(b){b!==u.target&&document.getElementById(b.getAttribute("aria-controls")).classList.remove("c-nav__menuContainer--visible")})},E=function(u){var y=u.target.closest("[tabindex]");(!y||!y.matches(":focus"))&&a.querySelectorAll("[tabindex]").forEach(function(L){L.blur()})},h=window.outerWidth;a&&(s.forEach(function(u){u.addEventListener("click",q)}),document.body.addEventListener("touchstart",E),window.addEventListener("resize",throttle(200,function(){window.outerWidth!=h&&w(),h=window.outerWidth})),w())}catch(u){console.error("[ams:parts/nav]",u)}})(),(function(){try{lazyLoading()}catch(t){console.error("[ams:parts/lazy-images]",t)}})(),(function(){try{document.querySelectorAll("form .js-inputFancy, form .js-selectFancy").forEach(function(t){var r="is-focus",o="is-empty",e="is-dirty",i="is-error",n=".js-formField",l=t.querySelectorAll("input"),a=t.querySelectorAll("select"),s=t.querySelectorAll("input, select"),d=t.querySelectorAll("input, textarea");l.forEach(function(c){c.addEventListener("focus",function(){c.parentNode.classList.add(r)}),c.addEventListener("blur",function(){c.parentNode.classList.remove(r)}),c.addEventListener("change",function(){c.checkValidity()?c.parentNode.classList.remove(i):c.parentNode.classList.add(i)})}),a.forEach(function(c){c.addEventListener("focus",function(f){f.currentTarget.classList.add(r)}),["blur","change"].forEach(function(f){c.addEventListener(f,function(v){v.currentTarget.classList.remove(r)})})}),s.forEach(function(c){["change","keyup"].forEach(function(f){c.addEventListener(f,function(v){var m=v.currentTarget.closest(n);m&&m.classList.remove(i)})})}),d.forEach(function(c){["change","keyup"].forEach(function(f){c.addEventListener(f,function(v){var m=v.currentTarget.value!=="";v.currentTarget.classList[m?"remove":"add"](o),v.currentTarget.classList[m?"add":"remove"](e)})})})}),document.querySelectorAll("form").forEach(function(t){t.addEventListener("reset",function(r){var o=r.currentTarget.querySelector(".is-dirty");o&&o.classList.remove("is-dirty")})})}catch(t){console.error("[ams:parts/form]",t)}})(),(function(){try{var t=document.querySelector("#articleListButton"),r=document.querySelector("#morePosts");if(t&&r){var o=!1,e=async function(i){if(!o){o=!0;var n=i.currentTarget,l=function(u){u&&console.error("load more failed:",u),n.textContent="Load more",o=!1};n.innerHTML=` 2 <svg 3 id="loading-spinner" 4 xmlns="http://www.w3.org/2000/svg" 5 width="24" 6 height="24"
7 viewBox="0 0 48 48" 8 style="margin:.75rem auto 0 auto;" 9 > 10 <g fill="none"> 11 <path 12 id="track" 13 fill="#C6CCD2" 14 d="M24,48 C10.745166,48 0,37.254834 0,24 C0,10.745166 10.745166,0 24,0 C37.254834,0 48,10.745166 48,24 C48,37.254834 37.254834,48 24,48 Z M24,44 C35.045695,44 44,35.045695 44,24 C44,12.954305 35.045695,4 24,4 C12.954305,4 4,12.954305 4,24 C4,35.045695 12.954305,44 24,44 Z" 15 /> 16 <path 17 id="section" 18 fill="#3F4850" 19 d="M24,0 C37.254834,0 48,10.745166 48,24 L44,24 C44,12.954305 35.045695,4 24,4 L24,0 Z" 20 /> 21 </g> 22 </svg> 23 `;var a="",s=Number.parseInt(n.getAttribute("data-page"),10)+1,d=n.getAttribute("data-channel")||"",c=n.getAttribute("data-subcategory")||"",f=n.getAttribute("data-author")||"",v=n.getAttribute("data-topic")||"";if(d!=="")c!==""?a=new URL(`${d}/${c}/page/${s}/json`,window.location.origin):a=new URL(`${d}/page/${s}/json`,window.location.origin);else if(f!=="")a=new URL(`author/${f}/page/${s}/json`,window.location.origin);else if(v!=="")a=new URL(`topic/${v}/page/${s}/json`,window.location.origin);else{l("unknown pagination source");return}try{var m=await fetch(a,{headers:{Accept:"application/json","Cache-Control":"no-store, no-cache, must-revalidate",Pragma:"no-cache","X-TNW-JSON":!0}});if(m.ok){var p=await m.json(),w=document.createElement("template");w.innerHTML=p;var q=w.content.querySelectorAll("img.js-lazy");r.appendChild(w.content),n.setAttribute("data-page",s),n.textContent="Load more";var E=a,h=E.pathname.split("/");h.pop(),E.pathname=h.join("/"),history.pushState(window.location.href,"",E),lazyLoading(q),o=!1}else l("HTTP "+m.status)}catch(u){l(u)}}};t.addEventListener("click",e)}}catch(i){console.error("[ams:parts/load-more]",i)}})(),(function(){try{var t="is-passed",r={D:".js-countdownD",H:".js-countdownH",M:".js-countdownM",S:".js-countdownS"},o={D:86400,H:3600,M:60,S:1};document.querySelectorAll(".js-countdown").forEach(function(e){var i=e.dataset.countdownTo&&new Date(e.dataset.countdownTo).getTime();if(i){var n,l=function(){var a=parseInt((i-new Date().getTime())/1e3,10),s=Math.max(a,0);Object.keys(o).forEach(function(d){var c=e.querySelector(r[d]);c&&(c.innerText=("0"+parseInt(s/o[d],10)).substr(-2)),s%=o[d]}),a<=0&&(clearInterval(n),e.classList.add(t))};n=setInterval(l,1e3),l()}})}catch(e){console.error("[ams:parts/countdown]",e)}})(),(function(){try{var t=document.querySelector(".scrolly");t&&t.addEventListener("click",function(r){r.preventDefault();var o=t.getAttribute("data-target");document.querySelector(o).scrollIntoView({behavior:"smooth"}),document.activeElement.blur()})}catch(r){console.error("[ams:parts/scroll-up]",r)}})(),(function(){try{var t=document.querySelector("#_progress"),r=document.getElementById("articleOutput");if(t&&r){var o=function(){var e=r.getBoundingClientRect(),i=e.top+window.scrollY,n=e.height-window.innerHeight,l=n>0?(window.scrollY-i)/n:0;l<0?l=0:l>1&&(l=1),t.style.setProperty("--scroll",l*100+"%")};window.addEventListener("scrollfire:scroll",o),window.addEventListener("resize",o,{passive:!0}),o()}}catch(e){console.error("[ams:parts/reading-progress]",e)}})(),(function(){try{document.querySelectorAll(".js-parallax").forEach(function(t){var r=".js-parallaxRoot",o=".js-parallaxLayer",e=!0,i=window,n={x:-1,y:-1},l=[],a=[],s,d,c,f,v,m=t.querySelectorAll(o);if(t.closest(r)&&(i=t.closest(r)),!!m.length){var p=null,w=function(){p===null&&e&&!document.hidden&&(p=requestAnimationFrame(u))},q=function(){p!==null&&(cancelAnimationFrame(p),p=null)};if("IntersectionObserver"in window){var E=new IntersectionObserver(function(y){y.forEach(function(L){e=L.isIntersecting}),e?w():q()});E.observe(t)}var h=function(){var y=i.scrollX||0,L=i.scrollY||0;l=[],a=[],d=i===window?window.innerHeight:i.clientHeight,c=i===window?window.innerWidth:i.clientWidth,s=t.getBoundingClientRect(),s.x+=y,s.y+=L,f=d+s.height,v=c+s.width,m.forEach(function(g,b){var A=g.offsetHeight/s.height,S=g.offsetWidth/s.width;l[b]=S?(S-1)/S*100:0,a[b]=A?(A-1)/A*100:0,!l[b]&&!a[b]&&(g.style.transform="")})},u=function(){var y,L=i===window?window.scrollX:i.scrollLeft,g=i===window?window.scrollY:i.scrollTop;if(c<450&&L!==n.x){if(y=(L+c-s.x)/v,Math.abs(y)<=1)for(var b=0;b<m.length;b++)l[b]&&(m[b].style.transform="translate3d("+l[b]*y+"%, 0, 0)");n.x=L}if(g!==n.y){if(y=(g+d-s.y)/f,Math.abs(y)<=1)for(var A=0;A<m.length;A++)a[A]&&(m[A].style.transform="translate3d(0px, "+a[A]*y+"%, 0px)");n.y=g}p=requestAnimationFrame(u)};t.querySelectorAll("img").forEach(function(y){y.addEventListener("load",h)}),window.addEventListener("orientationchange",h),window.addEventListener("resize",h),document.addEventListener("visibilitychange",function(){document.hidden?q():w()}),h(),w()}})}catch(t){console.error("[ams:parts/parallax]",t)}})(),(function(){try{var t=document.querySelector(".js-faq");if(t){var r=window.Modernizr&&Modernizr.touchevents?"touchstart":"click",o=t.querySelectorAll("[role='tabpanel']"),e=t.querySelectorAll("[role='tab']"),i=function(s){var d=s.target,c=d.getBoundingClientRect().height,f=d.parentNode,v=f.querySelector(".c-tabs__panelAnswer"),m=v.getBoundingClientRect().height,p=f.classList.contains("open"),w=f.querySelector("hr"),q=w?window.getComputedStyle(w)["margin-top"]:"0px",E=parseInt(q.split("px")[0],10)||0;if(p)f.classList.remove("open"),d.style.removeProperty("margin-bottom"),v.classList.remove("opacity-100");else{var h=f.parentNode.querySelector(".open");h&&(h.classList.remove("open"),h.querySelector(".c-tabs__panelQuestion").style.removeProperty("margin-bottom"),h.querySelector(".c-tabs__panelAnswer").classList.remove("opacity-100")),d.style.setProperty("margin-bottom",E+m+"px"),f.classList.add("open"),v.style.setProperty("top",c+E+"px"),v.classList.add("opacity-100")}},n=function(){o.forEach(function(s){var d=s.getAttribute("aria-hidden")==="false";s.querySelectorAll(".js-faq-question").forEach(function(c){d?c.addEventListener(r,i):(c.parentNode.classList.remove("open"),c.style.removeProperty("margin-bottom"),c.parentNode.querySelector(".c-tabs__panelAnswer").classList.remove("opacity-100"),c.removeEventListener(r,i))})})},l=function(s){s.preventDefault();var d=s.currentTarget,c=document.getElementById(d.getAttribute("aria-controls"));c&&(e.forEach(function(f){f.setAttribute("aria-selected",!1)}),d.setAttribute("aria-selected",!0),o.forEach(function(f){f.setAttribute("aria-hidden",!0)}),c.setAttribute("aria-hidden",!1),n(),window.history.pushState&&window.history.pushState(null,null,"#"+d.id))};if(window.location.hash!==""&&document.querySelector(window.location.hash)){var a;e.forEach(function(s){"#"+s.id===window.location.hash?(a=s.getAttribute("aria-controls"),s.setAttribute("aria-selected",!0)):s.setAttribute("aria-selected",!1)}),o.forEach(function(s){s.setAttribute("aria-hidden",s.id!==a)})}e.forEach(function(s){s.addEventListener(r,l)}),n()}}catch(s){console.error("[ams:parts/faq]",s)}})(),(function(){try{document.querySelectorAll("#accordion").forEach(function(t){t.querySelectorAll(".link").forEach(function(r){r.addEventListener("click",function(o){var e=o.currentTarget.nextElementSibling;e&&(o.currentTarget.classList.toggle("active"),e.style.maxHeight?e.style.maxHeight=null:e.style.maxHeight=e.scrollHeight+"px")})})})}catch(t){console.error("[ams:parts/accordion]",t)}})(),(function(){try{var t=document.querySelectorAll(".js-modalOpen");if(t.length){var r=1e3,o=null,e=function(){if(o){var n=o;o=null,n.classList.add("fade-out"),document.body.classList.remove("modal-active"),setTimeout(function(){n.classList.add("out"),n.classList.remove("fade-out")},r)}},i=function(n){if(!(typeof n.keyCode<"u"&&n.keyCode!==13)){n.preventDefault();var l=n.currentTarget.getAttribute("data-modal"),a=document.getElementById("modal-"+l);a&&(o&&o!==a&&(o.classList.add("out"),o.classList.remove("fade-out")),a.classList.remove("out","fade-out"),document.body.classList.add("modal-active"),o=a)}};t.forEach(function(n){n.addEventListener("click",i),n.addEventListener("keydown",i)}),document.querySelectorAll(".js-modalHide").forEach(function(n){n.addEventListener("click",function(l){l.preventDefault(),e()})}),document.addEventListener("keydown",function(n){n.keyCode===27&&e()})}}catch(n){console.error("[ams:parts/modal]",n)}})(),(function(){try{document.querySelectorAll(".youtube-player[data-id]").forEach(function(t){var r=t.dataset.id;if(r){var o=document.createElement("div");o.innerHTML='<img class="youtube-thumb" src="//i.ytimg.com/vi/'+r+'/hqdefault.jpg"><div class="play-button"></div>',o.onclick=function(){var e=document.createElement("iframe");e.setAttribute("src","//www.youtube.com/embed/"+r+"?autoplay=1&allowfullscreen=1"),e.setAttribute("allowfullscreen","allowfullscreen"),e.setAttribute("frameborder","0"),e.setAttribute("id","youtube-iframe"),t.replaceChild(e,t.children[0])},t.appendChild(o)}})}catch(t){console.error("[ams:parts/video-post]",t)}})(),(function(){try{document.querySelectorAll(".c-nav__menu").forEach(function(t){var r=t.querySelectorAll(":scope > .c-nav__menuItem > .c-nav__menuLink");
23document.addEventListener("keydown",function(o){if(!r.length||![37,39].includes(o.keyCode)||!t.contains(document.activeElement)||!document.activeElement.classList.contains("c-nav__menuLink"))return!0;switch(o.preventDefault(),o.keyCode){case 37:var e=document.activeElement.parentElement.previousElementSibling;e&&e.querySelector(":scope > .c-nav__menuLink").focus();break;case 39:var i=document.activeElement.parentElement.nextElementSibling;i&&i.querySelector(":scope > .c-nav__menuLink").focus();break}})})}catch(t){console.error("[ams:parts/keyboard-nav]",t)}})(),(function(){try{document.querySelectorAll(".c-nav__menuItem.has-grid, .c-nav__menuItem.has-menu").forEach(function(t){var r=t.querySelector(":scope > .c-nav__menuLink"),o=t.querySelector(":scope > .c-nav__submenu"),e=o.querySelectorAll(":scope .c-nav__submenuLink");r.addEventListener("click",function(i){i.preventDefault(),r.getAttribute("aria-expanded")==="true"?r.setAttribute("aria-expanded","false"):r.setAttribute("aria-expanded","true")}),document.addEventListener("click",function(i){if(r.getAttribute("aria-expanded")!=="true")return!0;t.contains(i.target)||r.setAttribute("aria-expanded","false")}),document.addEventListener("keydown",function(i){if(!t.contains(document.activeElement))return!0;if(i.keyCode===27&&(r.focus(),r.setAttribute("aria-expanded","false")),i.keyCode===40&&document.activeElement===r&&r.getAttribute("aria-expanded")==="false"&&(i.preventDefault(),document.querySelectorAll('.c-nav__menuLink[aria-expanded="true"]').forEach(function(a){a.setAttribute("aria-expanded","false")}),r.setAttribute("aria-expanded","true")),[38,40].includes(i.keyCode)&&r.getAttribute("aria-expanded")==="true"&&e.length)switch(i.preventDefault(),i.keyCode){case 38:if(document.activeElement!==r){var n=document.activeElement.parentElement.previousElementSibling;n?n.querySelector(":scope > .c-nav__submenuLink").focus():(r.focus(),r.setAttribute("aria-expanded","false"))}break;case 40:if(document.activeElement===r)e[0].focus();else{var l=document.activeElement.parentElement.nextElementSibling;l&&l.querySelector(":scope > .c-nav__submenuLink").focus()}break}})})}catch(t){console.error("[ams:parts/dropdown]",t)}})(),(function(){try{var t=document.querySelector(".c-nav__menuContainer--2");if(t){var r=t.querySelector(".c-nav__menu"),o=t.querySelector(".c-nav__menuScroller");if(r){o.addEventListener("click",function(c){r.scroll({left:window.innerWidth-24,behavior:"smooth"})}),r.scrollWidth>r.offsetWidth&&t.classList.add("has-fade");var e=!1,i=function(){e||requestAnimationFrame(n),e=!0};r.addEventListener("scroll",i);var n=function(c){t.classList.remove("has-fade"),r.removeEventListener("scroll",i)},l=window.innerWidth,a=!1,s=function(){if(l==window.innerWidth)return!0;a||(l=window.innerWidth,requestAnimationFrame(d)),a=!0};window.addEventListener("resize",s);var d=function(c){r.scrollLeft=0,t.classList.remove("has-fade"),r.scrollWidth>r.offsetWidth&&t.classList.add("has-fade"),e=!1,r.addEventListener("scroll",i),a=!1}}}}catch(c){console.error("[ams:parts/horizontal-scroll]",c)}})();
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.