text: !function o(i,u,c){function s(t,e){if(!u[t]){if(!i[t]){var n="function"==typeof require&&require;if(!e&&n)return n(t,!0);if(l)return l(t,!0);var a=new Error("Cannot find module '"+t+"'");throw a.code="MODULE_NOT_FOUND",a}var r=u[t]={exports:{}};i[t][0].call(r.exports,function(e){return s(i[t][1][e]||e)},r,r.exports,o,i,u,c)}return u[t].exports}for(var l="function"==typeof require&&require,e=0;e<c.length;e++)s(c[e]);return s}({1:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.bangs=void 0;n.bangs=[{bang:"apkg",name:"Archlinux packages"},{bang:"archpkg",name:"Archlinux packages"},{bang:"arch",name:"Archlinux wiki"},{bang:"archwiki",name:"Archlinux wiki"},{bang:"archaur",name:"Archlinux AUR"},{bang:"aur",name:"Archlinux AUR"},{bang:"archlinux",name:"Archlinux Forum"},{bang:"archforum",name:"Archlinux Forum"},{bang:"w",name:"Wikipedia"},{bang:"wiki",name:"Wikipedia"},{bang:"bulba",name:"Bulbapedia"},{bang:"yt",name:"YouTube"},{bang:"youtube",name:"YouTube"},{bang:"ytor",name:"YouTube on Repeat"},{bang:"youtubeonrepeat",name:"YouTube on Repeat"},{bang:"gh",name:"Github"},{bang:"github",name:"Github"},{bang:"glab",name:"Gitlab"},{bang:"gitlab",name:"Gitlab"},{bang:"latexwb",name:"LaTeX Wikibooks"},{bang:"ctan",name:"CTAN"},{bang:"crates",name:"Crates.io"},{bang:"cargo",name:"Crates.io"},{bang:"rust",name:"Rust stdlib docs"},{bang:"rustdoc",name:"Rust docs"},{bang:"js",name:"MDN JS Documentation"},{bang:"css",name:"MDN CSS Documentation"},{bang:"csst",name:"CSS Tricks"},{bang:"r",name:"Reddit"},{bang:"subr",name:"Subreddits"},{bang:"subreddit",name:"Subreddits"},{bang:"dictionaryr",name:"Dictionary.com (reference)"},{bang:"thes",name:"Thesaurus.com"},{bang:"thesaurus",name:"Thesaurus.com"},{bang:"wa",name:"Wolfram Alpha"},{bang:"wolfram",name:"Wolfram Alpha"},{bang:"wolf",name:"Wolfram Alpha"},{bang:"math",name:"Wolfram Mathworld"},{bang:"mathworld",name:"Wolfram Mathworld"}]},{}],2:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.populateBookmarks=function(e){for(var t in e){var n=t,a=document.querySelector("#"+n+"-content .content-container p");for(var r in t=e[t]){var o="<a tabindex='-1' href='"+(r=t[r]).url+"'>"+r.title+"</a> ";a.innerHTML+=o}}},n.getBookmarks=function(){return window.location.href.includes("http://localhost")?(0,r.default)("/bookmarks.json"):(0,r.default)("/elementary/bookmarks.json")};var a,r=(a=e("./utils/getJSON"))&&a.__esModule?a:{default:a}},{"./utils/getJSON":7}],3:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.clock=a;var i=document.querySelector(".datetime-day"),u=document.querySelector(".datetime-time");function a(){var e,t=new Date,n=t.getHours(),a=t.getMinutes(),r=t.getSeconds();switch(n=(n<10?"0":"")+n,a=(a<10?"0":"")+a,r=(r<10?"0":"")+r,t.getDay()){case 0:e="日";break;case 1:e="月";break;case 2:e="火";break;case 3:e="水";break;case 4:e="木";break;case 5:e="金";break;case 6:e="土";break;default:e=" "}if(r%2==0)var o=n+":"+a+":"+r;else o=n+" "+a+" "+r;u.innerHTML=o,i.innerHTML=e}a(),setInterval(a,1e3)},{}],4:[function(e,t,n){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e("./clock");var a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var o=a?Object.getOwnPropertyDescriptor(e,r):null;o&&(o.get||o.set)?Object.defineProperty(n,r,o):n[r]=e[r]}n.default=e,t&&t.set(e,n);return n}(e("./bookmarks"));e("./tabs"),e("./queryBar");function u(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}a.getBookmarks().then(function(e){return function(e,t){if(e!==t)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0),a.populateBookmarks(e)}.bind(void 0))},{"./bookmarks":2,"./clock":3,"./queryBar":5,"./tabs":6}],5:[function(e,t,n){"use strict";var r=e("./utils/urlchecks"),o=e("./bookmarks"),a=e("./bangs");function i(e,t){if(e!==t)throw new TypeError("Cannot instantiate an arrow function")}var u=document.querySelector("#left input");function c(){var e=this.querySelector("b").innerHTML;u.value=e}function s(){var t=this,e=document.querySelector(".bang-matches");null!==e&&(e.querySelectorAll("ul li").forEach(function(e){i(this,t),e.removeEventListener("click",c)}.bind(this)),e.parentNode.removeChild(e))}u.onkeydown=function(e){var a=this;"Enter"==e.key?(0,r.hasProtocol)(a.value)?window.location.href=a.value:(0,r.hasName)(a.value)?window.location.href="https://"+a.value:0==a.value.indexOf("/r/")||0==a.value.indexOf("r/")?0==a.value.indexOf("/")?window.location.href="https://reddit.com"+a.value:window.location.href="https://reddit.com/"+a.value:0==a.value.indexOf("qw ")?window.location.href="https://lite.qwant.com/?q="+a.value.substring(3,a.length):window.location.href="https://duckduckgo.com/?q="+a.value:9==e.keyCode&&(e.preventDefault(),"ht"==a.value?a.value="https://":(0,o.getBookmarks)().then(function(e){for(var t in e)for(var n in t=e[t])-1<(n=t[n]).url.indexOf(a.value.toLowerCase())&&(a.value=n.url)}))},u.onkeyup=function(e){if(""===this.value)s();else if("!"===this.value.charAt(0)){var t=function(t){var n=this;return a.bangs.filter(function(e){return i(this,n),e.bang.includes(t)}.bind(this))}(this.value.substring(1));!function(e){var r=this,t=document.querySelector("#left > #search-content"),n=document.querySelector(".bang-matches");null===n&&((n=document.createElement("div")).classList.add("bang-matches"),t.appendChild(n));var o=document.querySelector(".bang-matches ul");if(null===o)o=document.createElement("ul"),n.appendChild(o);else for(;o.hasChildNodes();)o.removeChild(o.lastChild);e.forEach(function(e){i(this,r);var t=document.createElement("b");t.innerHTML="!"+e.bang;var n=document.createElement("span");n.innerHTML=e.name;var a=document.createElement("li");a.appendChild(t),a.appendChild(n),o.appendChild(a)}.bind(this))}(t),0===t.length?s():function(){var t=this,e=document.querySelectorAll(".bang-matches ul li");null!==e&&e.forEach(function(e){i(this,t),e.addEventListener("click",c)}.bind(this))}(),9===e.keyCode&&(this.value="!"+t[0].bang)}}},{"./bangs":1,"./bookmarks":2,"./utils/urlchecks":8}],6:[function(e,t,n){"use strict";for(var a=document.querySelectorAll("#right > div"),r=document.querySelector("#left input"),o=0;o<a.length;o++)a[o].addEventListener("mouseover",function(){document.querySelector("#right > .active").classList.remove("active"),this.classList+="active",document.querySelector("#left > .active").classList.remove("active"),document.querySelector("#left > #"+this.getAttribute("id")+"-content").classList+="active"});document.onkeyup=function(e){if(e.shiftKey&&49==e.keyCode){var t=document.querySelector("#right > .active");"search"!==t.getAttribute("id")&&(t.classList.remove("active"),document.querySelector("#right > #search").classList+="active",document.querySelector("#left > .active").classList.remove("active"),document.querySelector("#left > #search-content").classList+="active"),r.focus()}}},{}],7:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(o){return new Promise(function(e,t){var n=o.split("/")[1];if(null===window.sessionStorage.getItem(n)){var a=new XMLHttpRequest;a.open("GET",o,!0),a.responseType="json",a.onload=function(){a.readyState===XMLHttpRequest.DONE&&(200===a.status?(window.sessionStorage.setItem(n,JSON.stringify(a.response)),e(a.response)):t(a.status))},a.send()}else{var r=JSON.parse(window.sessionStorage.getItem(n));e(r)}})}},{}],8:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.hasName=function(e){for(var t=[".com",".org",".io",".net",".ca",".ink"],n=0;n<t.length;n++)if(0<e.indexOf(t[n]))return!0;return!1},n.hasProtocol=function(e){for(var t=["http://","https://","file://"],n=0;n<t.length;n++)if(0==e.indexOf(t[n]))return!0;return!1}},{}]},{},[4]);