function qSelect(e){return document.querySelector(e)}let tmp,timeout1;function sendMsg(e){chrome.runtime.sendMessage({cmd:e})}function localSet(e,t){return new Promise((n)=>{const r={};r[e]=t,chrome.storage.local.set(r,()=>n(t))})}function localGet(e,t=null){return new Promise((n)=>{const r={};r[e]=t,chrome.storage.local.get(r,(res=>n(res[e])))})}function syncSet(e,t){return new Promise((n)=>{const r={};r[e]=t,chrome.storage.sync.set(r,()=>n(t))})}function syncGet(e,t=null){return new Promise((n)=>{const r={};r[e]=t,chrome.storage.sync.get(r,(res=>n(res[e])))})}function debounce(e,t,...n){clearTimeout(timeout1),timeout1=setTimeout((()=>{t(...n)}),e)}function colorHexToRGB(e){const t=e;return`${parseInt(t.substr(1,2),16)},${parseInt(t.substr(3,2),16)},${parseInt(t.substr(5,2),16)}`}function i18n(e){return chrome.i18n.getMessage(e)}