text: /****************************************************************************
   * DOMBlaster by Matt Tropiano (C) 2018
   * Requires ECMAScript 6
   * Licensed for use under the MIT License
   * @license
   ****************************************************************************/
  !function(e){if(!e.document.querySelectorAll)return void console.error("Missing required function: document.querySelectorAll.");if(!e.document.querySelector)return void console.error("Missing required function: document.querySelector.");let t=e.$D,n={isUndefined:function(e){return void 0===e},isNull:function(e){return null===e},isType:function(e,t){return Object.prototype.toString.call(e)==="[object "+t+"]"},isNumber:function(e){return n.isType(e,"Number")},isString:function(e){return n.isType(e,"String")},isArray:function(e){return n.isType(e,"Array")},isFunction:function(e){return n.isType(e,"Function")},isObject:function(e){return n.isType(e,"Object")},isBlank:function(e){},each:function(e,t){for(let n in e)if(e.hasOwnProperty(n)&&t(e[n],n,e.length))break},merge:function(e,t){let i={};return e||(e={}),t||(t={}),n.each(e,(e,s)=>{n.isUndefined(t[s])?i[s]=e:i[s]=t[s]}),n.each(t,(t,s)=>{n.isUndefined(e[s])&&(i[s]=t)}),i},makeClassMap:function(e){if(n.isBlank(e))return{};let t={};if(e.trim().length>0){let n=e.split(/\s+/);for(let e in n)t[n[e]]=!0}return t},mergeClassMap:function(e){let t=[];for(let n in e)e.hasOwnProperty(n)&&t.push(n);return t.join(" ")}};n.nanoTime=performance?function(){return parseInt(1e6*performance.now(),10)}:function(){return 1e6*Date.now()};let i=Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;n.matches=function(e,t){return i.call(e,t)};let s=function(e){this.selection=Array.from(e)},r=function(t,i){let r=e.document;if(n.isUndefined(t)||n.isNull(t))return new s([]);if(t instanceof Element)return new s([t]);if(t instanceof NodeList)return new s(t);if(t instanceof HTMLCollection)return new s(t);if(n.isArray(t))return new s(t);if(n.isString(t)){if(t.trim().length){if(i){let e=r.querySelector(t);return new s(e?[e]:[])}return new s(r.querySelectorAll(t))}return new s([])}return null},o=function(e,t){s.prototype[e]&&console.warn("DOMBlaster: a script is replacing group extension '"+e+"'."),s.prototype[e]=function(){let e,n=arguments;for(let i=0;i<this.selection.length&&void 0===e;i++)e=t.apply(this.selection[i],n);return void 0===e?this:e}},l=function(e,t){s.prototype[e]&&console.warn("DOMBlaster: a script is replacing group extension '"+e+"'."),s.prototype[e]=function(){return t.apply(this,arguments)}};e.DOMBlaster=new function(){return r},n.each(n,(t,n)=>{e.DOMBlaster[n]=t}),e.DOMBlaster.id=function(t){return new s([e.document.getElementById(t)])},e.DOMBlaster.name=function(t){return new s(e.document.getElementByName(t))},e.DOMBlaster.tag=function(t){return new s(e.document.getElementsByTagName(t))},e.DOMBlaster.className=function(t){return new s(e.document.getElementsByClassName(t))},e.DOMBlaster.extendGroup=l,e.DOMBlaster.extend=o,e.DOMBlaster.noConflict=function(){e.$D=t},e.DOMBlaster.extensions={},o("each",function(e){e.apply(this)}),o("search",function(e,t){if(t){let t=this.querySelector(e);return new s(t?[t]:[])}return new s(this.querySelectorAll(e))}),l("get",function(e){return new s(this.selection[e])}),l("gather",function(e){let t=[];for(let n=0;n<this.selection.length;n++)t.push(e.apply(this.selection[n]));return t}),l("matches",function(e){let t=!0;for(let i=0;i<this.selection.length&&t;i++)t=t&&n.matches(this.selection[i],e);return t})}(this);var $D=$D||DOMBlaster;
  !function(e){e?(e.extensions.attributes=!0,e.extend("attrib",function(t,n){if(e.isArray(t)){let n={};return e.each(t,e=>{n[e]=this.getAttribute(e)}),n}if(e.isObject(t))e.each(t,(t,n)=>{e.isUndefined(t)||e.isNull(t)?this.removeAttribute(n):this.setAttribute(n,t)});else{if(e.isUndefined(n)&&!e.isUndefined(t)){let n=this.getAttribute(t);return e.isUndefined(n)?null:n}this.setAttribute(t,n)}}),e.extend("id",function(t){if(e.isUndefined(t))return this.getAttribute("id");this.setAttribute("id",t)}),e.extend("name",function(t){if(e.isUndefined(t))return this.getAttribute("name");this.setAttribute("name",t)}),e.extend("aria",function(t,n){let i="aria-"+t;if(e.isUndefined(n))return this.getAttribute(i);this.setAttribute(i,n)}),e.extend("data",function(t,n){let i="data-"+t;if(e.isUndefined(n))return this.getAttribute(i);this.setAttribute(i,n)})):console.error("DOMBlaster must be loaded first!")}(DOMBlaster),
  function(e){e?(e.extensions.css=!0,e.extend("addClass",function(t){let n=e.makeClassMap(this.className);if(e.isArray(t))for(let e=0;e<t.length;e++)n[t[e]]||(n[t[e]]=!0);else n[t]||(n[t]=!0);this.className=e.mergeClassMap(n)}),e.extend("removeClass",function(t){let n=e.makeClassMap(this.className);if(e.isArray(t))for(let e=0;e<t.length;e++)n[t[e]]&&delete n[t[e]];else n[t]&&delete n[t];this.className=e.mergeClassMap(n)}),e.extend("toggleClass",function(t){let n=e.makeClassMap(this.className);if(e.isArray(t))for(let e=0;e<t.length;e++)n[t[e]]?delete n[t[e]]:n[t[e]]=!0;else n[t]?delete n[t]:n[t]=!0;this.className=e.mergeClassMap(n)}),e.extend("replaceClass",function(t,n){let i=e.makeClassMap(this.className);if(e.isArray(t))for(let e=0;e<t.length;e++)i[t[e]]&&(delete i[t[e]],i[n]=!0);else i[t]&&(delete i[t],i[n]=!0);this.className=e.mergeClassMap(i)}),e.extend("hasClass",function(e){return(this.className.trim().length>0?this.className.split(/\s+/):[]).indexOf(e)>=0}),e.extend("getClasses",function(){return this.className.trim().length>0?this.className.split(/\s+/):[]}),e.extend("style",function(t,n){if(e.isArray(t)){let n={};return e.each(t,e=>{n[e]=this.style[e]}),n}if(e.isObject(t))e.each(t,(t,n)=>{(e.isUndefined(t)||e.isNull(t))&&(this.style[n]=t)});else{if(e.isUndefined(n)&&!e.isUndefined(t)){let n=this.style[t];return e.isUndefined(n)?null:n}this.style[t]=n}}),e.extend("styleComputed",function(t){let n=getComputedStyle(this);if(e.isArray(t)){let i={};return e.each(t,e=>{let t=n[e];i[e]=void 0===t?null:t}),i}{let e=n[t];return void 0===e?null:e}})):console.error("DOMBlaster must be loaded first!")}(DOMBlaster),
  function(e){if(!e)return void console.error("DOMBlaster must be loaded first!");e.extensions.dom=!0,e.element=function(t,n,i){let s=document.createElement(t);if(n)for(let e in n)if(n.hasOwnProperty(e)){let t=document.createAttribute(e);t.value=n[e],s.setAttributeNode(t)}if(i)if(e.isArray(i))for(let e=0;e<i.length;e++)s.appendChild(i[e]);else s.appendChild(i);return s},e.text=function(e){return document.createTextNode(e)},e.extend("clear",function(){for(;this.firstChild;)this.removeChild(this.firstChild)}),e.extend("append",function(t){if(e.isArray(t))for(let e=0;e<t.length;e++)this.appendChild(t[e]);else if(t instanceof Document)for(let e=0;e<t.children.length;e++)this.appendChild(t.children[e]);else this.appendChild(t)}),e.extend("refill",function(t){let n=e(this);n.clear(),n.append(t)}),e.extend("child",function(t){return e(this.children[t])}),e.extend("children",function(){return e(this.children)}),e.extend("parent",function(){return e(this.parentElement)}),e.extend("html",function(t){if(e.isUndefined(t))return this.innerHTML;this.innerHTML=t});const t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"},n=/&|\<|\>|\"|\'|\/|`|=/g;e.extend("text",function(i){if(e.isUndefined(i))return this.innerText;this.innerHTML=i.replace(n,function(e){return t[e]})})}(DOMBlaster),
  function(e){e?(e.extensions.event=!0,e.addEvent=Element.prototype.addEventListener?function(t,n,i,s){e.isNull(i)||t.addEventListener(n,i,s)}:Element.prototype.attachEvent?function(t,n,i,s){e.isNull(i)||t.attachEvent("on"+n,i,s)}:function(t,n,i){e.isNull(i)||(t["on"+n]=i)},e.removeEvent=Element.prototype.removeEventListener?function(e,t,n,i){e.removeEventListener(t,n,i)}:Element.prototype.detachEvent?function(e,t,n,i){e.detachEvent("on"+t,n,i)}:function(e,t,n){e["on"+t]=null},e.sendEvent=Element.prototype.dispatchEvent?function(e,t){e.dispatchEvent(t)}:Element.prototype.fireEvent?function(e,t){e.fireEvent(t)}:void 0,e.extend("on",function(t,n,i){e.addEvent(this,t,n,i)}),e.extend("off",function(t,n,i){e.removeEvent(this,t,n,i)}),e.extend("send",function(t){e.sendEvent(this,t)})):console.error("DOMBlaster must be loaded first!")}(DOMBlaster),
  function(e){e?e.extensions.event?(e.extensions.eventform=!0,e.extend("blur",function(t,n){e.addEvent(this,"blur",t,n)}),e.extend("focus",function(t,n){e.addEvent(this,"focus",t,n)}),e.extend("focusin",function(t,n){e.addEvent(this,"focusin",t,n)}),e.extend("focusout",function(t,n){e.addEvent(this,"focusout",t,n)}),e.extend("change",function(t,n){e.addEvent(this,"change",t,n)}),e.extend("select",function(t,n){e.addEvent(this,"select",t,n)}),e.extend("submit",function(t,n){e.addEvent(this,"submit",t,n)})):console.error("DOMBlaster Event Extensions must be loaded first!"):console.error("DOMBlaster must be loaded first!")}(DOMBlaster),
  function(e){e?e.extensions.event?(e.extensions.eventkeyboard=!0,e.extend("keyup",function(t,n){e.addEvent(this,"keyup",t,n)}),e.extend("keydown",function(t,n){e.addEvent(this,"keydown",t,n)}),e.extend("keypress",function(t,n){e.addEvent(this,"keypress",t,n)})):console.error("DOMBlaster Event Extensions must be loaded first!"):console.error("DOMBlaster must be loaded first!")}(DOMBlaster),
  function(e){e?e.extensions.event?(e.extensions.eventmouse=!0,e.extend("click",function(t,n){e.addEvent(this,"click",t,n)}),e.extend("dblclick",function(t,n){e.addEvent(this,"dblclick",t,n)}),e.extend("contextmenu",function(t,n){e.addEvent(this,"contextmenu",t,n)}),e.extend("mouseenter",function(t,n){e.addEvent(this,"mouseenter",t,n)}),e.extend("mouseleave",function(t,n){e.addEvent(this,"mouseleave",t,n)}),e.extend("mouseup",function(t,n){e.addEvent(this,"mouseup",t,n)}),e.extend("mousedown",function(t,n){e.addEvent(this,"mousedown",t,n)}),e.extend("mouseover",function(t,n){e.addEvent(this,"mouseover",t,n)}),e.extend("mouseout",function(t,n){e.addEvent(this,"mouseout",t,n)})):console.error("DOMBlaster Event Extensions must be loaded first!"):console.error("DOMBlaster must be loaded first!")}(DOMBlaster),
  function(e){e?(e.extensions.forms=!0,e.extend("value",function(t){if(e.isUndefined(t))return this.value;this.value=t}),e.extendGroup("formState",function(t){if(t&&"function"!=typeof t)throw new Error("Callback function for formData must be a function!");let n={},i=0;this.each(function(){let s={},r=e(this),o=this.getAttribute("id")||"form"+i++;r.search("input, textarea, select").each(function(){let t=this.getAttribute("name");if(t&&!e.matches(this,":disabled")){let n=this.getAttribute("type"),i="checkbox"===n||"radio"===n?e.matches(this,":checked"):this.value;if("object"==typeof s[t])s[t].push(i);else if(s[t]){let e=[s[t],i];s[t]=e}else s[t]=i}}),t?t(s):n[o]=s});let s=Object.keys(n);return t?this:1===s.length?n[s[0]]:0===s.length?null:n}),e.extendGroup("formData",function(t){if(t&&"function"!=typeof t)throw new Error("Callback function for formData must be a function!");let n={},i=0;this.each(function(){let s={},r=e(this),o=this.getAttribute("id")||"form"+i++;r.search("input, textarea, select").each(function(){let t=this.getAttribute("name");if(t&&!e.matches(this,":disabled")){let n=this.getAttribute("type");if("checkbox"===n&&!e.matches(this,":checked"))return;if("radio"===n&&!e.matches(this,":checked"))return;let i=this.value;if("object"==typeof s[t])s[t].push(i);else if(s[t]){let e=[s[t],i];s[t]=e}else s[t]=i}}),t?t(s):n[o]=s});let s=Object.keys(n);return t?this:1===s.length?n[s[0]]:0===s.length?null:n})):console.error("DOMBlaster must be loaded first!")}(DOMBlaster);
  