"use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function polyfill(){var t,l,c,s,e,o,f=window,a=document;function p(t,o){this.scrollLeft=t,this.scrollTop=o}function r(t){if(null===t||"object"!==_typeof(t)||void 0===t.behavior||"auto"===t.behavior||"instant"===t.behavior)return!0;if("object"===_typeof(t)&&"smooth"===t.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+t.behavior+" is not a valid value for enumeration ScrollBehavior.")}function i(t,o){return"Y"===o?t.clientHeight+e<t.scrollHeight:"X"===o?t.clientWidth+e<t.scrollWidth:void 0}function n(t,o){t=f.getComputedStyle(t,null)["overflow"+o];return"auto"===t||"scroll"===t}function d(t){for(;t!==a.body&&!1===(e=void 0,e=i(o=t,"Y")&&n(o,"Y"),o=i(o,"X")&&n(o,"X"),e||o);)t=t.parentNode||t.host;var o,e;return t}function u(t){var o=s(),o=1<(o=(o-t.startTime)/l)?1:o,o=.5*(1-Math.cos(Math.PI*o)),e=t.startX+(t.x-t.startX)*o,o=t.startY+(t.y-t.startY)*o;t.method.call(t.scrollable,e,o),e===t.x&&o===t.y||f.requestAnimationFrame(u.bind(f,t))}function h(t,o,e){var l,r,i,n=s(),t=t===a.body?(r=(l=f).scrollX||f.pageXOffset,i=f.scrollY||f.pageYOffset,c.scroll):(r=(l=t).scrollLeft,i=t.scrollTop,p);u({scrollable:l,method:t,startTime:n,startX:r,startY:i,x:o,y:e})}"scrollBehavior"in a.documentElement.style&&!0!==f.__forceSmoothScrollPolyfill__||(t=f.HTMLElement||f.Element,l=468,c={scroll:f.scroll||f.scrollTo,scrollBy:f.scrollBy,elementScroll:t.prototype.scroll||p,scrollIntoView:t.prototype.scrollIntoView},s=f.performance&&f.performance.now?f.performance.now.bind(f.performance):Date.now,o=f.navigator.userAgent,e=new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(o)?1:0,f.scroll=f.scrollTo=function(){void 0!==arguments[0]&&(!0===r(arguments[0])?c.scroll.call(f,void 0!==arguments[0].left?arguments[0].left:"object"!==_typeof(arguments[0])?arguments[0]:f.scrollX||f.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:f.scrollY||f.pageYOffset):h.call(f,a.body,void 0!==arguments[0].left?~~arguments[0].left:f.scrollX||f.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:f.scrollY||f.pageYOffset))},f.scrollBy=function(){void 0!==arguments[0]&&(r(arguments[0])?c.scrollBy.call(f,void 0!==arguments[0].left?arguments[0].left:"object"!==_typeof(arguments[0])?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):h.call(f,a.body,~~arguments[0].left+(f.scrollX||f.pageXOffset),~~arguments[0].top+(f.scrollY||f.pageYOffset)))},t.prototype.scroll=t.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0===r(arguments[0])){if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");c.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!==_typeof(arguments[0])?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}else{var t=arguments[0].left,o=arguments[0].top;h.call(this,this,void 0===t?this.scrollLeft:~~t,void 0===o?this.scrollTop:~~o)}},t.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0===r(arguments[0])?c.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop):this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}))},t.prototype.scrollIntoView=function(){var t,o,e;!0===r(arguments[0])?c.scrollIntoView.call(this,void 0===arguments[0]||arguments[0]):(o=(t=d(this)).getBoundingClientRect(),e=this.getBoundingClientRect(),t!==a.body?(h.call(this,t,t.scrollLeft+e.left-o.left,t.scrollTop+e.top-o.top),"fixed"!==f.getComputedStyle(t).position&&f.scrollBy({left:o.left,top:o.top,behavior:"smooth"})):f.scrollBy({left:e.left,top:e.top,behavior:"smooth"}))})}!function(n,c){n.addEventListener("load",function(){function e(t){for(var o=t.path||t.composedPath&&t.composedPath(),e=0;e<o.length&&!o[e].getAttribute("href");e++);var l,r=o[e].getAttribute("href");if(r&&!(0<["tab"].indexOf(o[e].getAttribute("role")))&&"#top__fullcarousel"!==o[e].getAttribute("href")){if(0<["button"].indexOf(o[e].getAttribute("role"))){var i=t.getAttribute("href");if(0==i.indexOf("#")&&"#"===i)return}o[e].getAttribute("data-toggle")||o[e].getAttribute("carousel-control")||(i=0,(r=c.getElementById(r.slice(1)))&&(l=n.pageYOffset||c.documentElement.scrollTop,i=r.getBoundingClientRect().top+l),1==c.body.classList.contains("scrolled")&&(r=c.getElementById("site-header"))&&(l=r.clientHeight)&&(i-=l),r=0,(l=c.getElementById("wpadminbar"))&&(r=l.clientHeight),n.scrollTo({top:i-r,behavior:"smooth"}),t.preventDefault())}}Array.prototype.forEach.call(c.getElementsByTagName("a"),function(t){var o=t.getAttribute("href");o&&0==o.indexOf("#")&&"#"!==o&&t.addEventListener("click",e)})})}(window,document),"object"===("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module?module.exports={polyfill:polyfill}:polyfill();