(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o= 0) { classes.splice(existingIndex, 1); } element.className = classes.join(' '); } } } function hasClass(element, className) { if (element instanceof SVGElement) { return new RegExp('(\\s|^)' + className + '(\\s|$)').test(element.getAttribute('class')); } else { if (element.classList) { return element.classList.contains(className); } else { return element.className.indexOf(className) !== -1; } } } function toggleClass(element, className) { if (element.classList) { element.classList.toggle(className); } else { var classes = element.className.split(' '); var existingIndex = classes.indexOf(className); if (existingIndex >= 0) { classes.splice(existingIndex, 1); } else { classes.push(className); } element.className = classes.join(' '); } } function addEventListener(el, eventName, handler) { if (el.addEventListener) { el.addEventListener(eventName, handler); } else { el.attachEvent('on' + eventName, function () { handler.call(el); }); } } function getUrl(path) { if (!window.location.origin) { window.location.origin = window.location.protocol + "//" + window.location.hostname + (window.location.port ? ':' + window.location.port : ''); } if (path.indexOf('./') === 0) { path = path.slice(1); // Remove the . var existingPath = window.location.pathname || ''; return window.location.origin + existingPath + path; } else if (path) { return window.location.origin + path; } else { return window.location.origin + window.location.pathname; } } function documentReady(fn) { if (document.readyState != 'loading') { fn(); } else if (document.addEventListener) { document.addEventListener('DOMContentLoaded', fn); } else { document.attachEvent('onreadystatechange', function () { if (document.readyState != 'loading') fn(); }); } } },{}]},{},[1]);