var __spreadArrays=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;for(var r=Array(t),n=0,e=0;e<i;e++)for(var o=arguments[e],s=0,c=o.length;s<c;s++,n++)r[n]=o[s];return r};System.register(["./p-06dddc70.system.js","./p-5d950c75.system.js","./p-40b116c8.system.js"],(function(t){"use strict";return{setters:[function(e){t("UUID",e.U)},function(e){t("FileManager",e.F)},function(e){var i={};i.BceFile=e.B;i.debounce=e.d;i.isEmail=e.i;i.ripple=e.r;i.validator=e.v;t(i)}],execute:function(){var e=function(){function t(t,e){var i=this;if(e===void 0){e={}}this.current=null;this.nodes=[];this.offset=0;this.timeout=0;this.handleScroll=function(){if(i.timeout)window.cancelAnimationFrame(i.timeout);i.timeout=window.requestAnimationFrame((function(){return i.detect()}))};this.selector=t;this.options=Object.assign({class:"active"},e);this.reload();window.addEventListener("resize",this.handleScroll);window.addEventListener("scroll",this.handleScroll)}Object.defineProperty(t.prototype,"active",{get:function(){var t=this.nodes[this.nodes.length-1];if(t&&this.bottom&&this.isVisible(t.section))return t;for(var e=this.nodes.length-1;e>=0;e--)if(this.isVisible(this.nodes[e].section))return this.nodes[e];return null},enumerable:true,configurable:true});Object.defineProperty(t.prototype,"bottom",{get:function(){var t=this.root;return t.scrollHeight-window.innerHeight<=t.scrollTop},enumerable:true,configurable:true});Object.defineProperty(t.prototype,"root",{get:function(){return document.scrollingElement||document.documentElement},enumerable:true,configurable:true});t.prototype.destroy=function(){if(this.current)this.deactivate(this.current);window.removeEventListener("resize",this.handleScroll);window.removeEventListener("scroll",this.handleScroll)};t.prototype.detect=function(){var t=this.active;var e=this.current;if(e){if(e===t)return;else this.deactivate(e)}if(t)this.activate(t);this.current=t};t.prototype.reload=function(){var t=this.root;var e=t.querySelectorAll(this.selector);this.nodes=Array.from(e).reduce((function(t,e){var i="hash"in e?e.hash:"";var r=decodeURIComponent(i.slice(1));var n=document.getElementById(r);return n?__spreadArrays(t,[{nav:e,section:n}]):t}),[]);this.offset=Math.min.apply(Math,this.nodes.map((function(t){return t.section.offsetTop})));this.detect()};t.prototype.activate=function(t){t.nav.classList.add(this.options.class)};t.prototype.deactivate=function(t){t.nav.classList.remove(this.options.class)};t.prototype.isVisible=function(t,e){var i=t.getBoundingClientRect();return e?i.bottom<window.innerHeight:i.top<=this.offset};return t}();t("ScrollSpy",e)}}}));