var FF;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(t){var e=this;do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}),(FF=FF||{}).mq=function(){function t(){this.queries=this._getQueries(),this.current=this._getCurrent(),this._addWatcher()}t.prototype._getQueries=function(){var t=window.getComputedStyle(document.body,"::after").getPropertyValue("content").replace(/['"]+/g,""),e=[];return t.split("&").forEach((function(t){var r=t.split(":");e.push({name:r[0],value:"(min-width: "+r[1]+")"})})),e},t.prototype._getCurrent=function(){var t;return this.queries.forEach((function(e){window.matchMedia(e.value).matches&&(t=e)})),t&&t.name?t.name:""},t.prototype._addWatcher=function(){var t=this;window.addEventListener("resize",(function(){var e=t._getCurrent(),r=this.current;if(this.current!==e){this.current=e;var n=new CustomEvent("FF-resize",{detail:{oldSize:r,newSize:e}});window.dispatchEvent(n)}}))},t.prototype.get=function(t){var e=this.queries.filter((function(e){return e.name===t}));if(e&&0