text: const hidden="hidden",active="active",doc=document.documentElement,parentURL="./",staticman=Object.create(null),translations={success:{title:'Review submitted',text:'Thanks for your review! It will be shown on the site once it has been approved.',close:'Close'},error:{title:'Error',text:'Sorry, there was an error with the submission!',close:'Close'},discard:{title:'Discard Comment',button:'discard'},submit:'Submit',submitted:'Submitted'};function isObj(a){return!!(a&&typeof a=='object'&&a!==null)}function createEl(a='div'){return document.createElement(a)}function elem(b,c=document){let a=c.querySelector(b);return a!=!1&&a}function elems(b,c=document){let a=c.querySelectorAll(b);return!!a.length&&a}function pushClass(b,a){isObj(b)&&a&&(elClass=b.classList,!elClass.contains(a)&&elClass.add(a))}function deleteClass(b,a){isObj(b)&&a&&(elClass=b.classList,!!elClass.contains(a)&&elClass.remove(a))}function modifyClass(b,a){isObj(b)&&a&&(elClass=b.classList,elClass.contains(a)?elClass.remove(a):elClass.add(a))}function containsClass(a,b){if(isObj(a)&&b&&a!==document)return!!a.classList.contains(b)}function isChild(b,a){let c=isObj(b)&&a&&typeof a=='string';return!!(c&&b.closest(a))}function getSiblings(a){return Array.prototype.filter.call(a.parentNode.children,function(b){return b!==a})}function markActive(a,b=active){const c=getSiblings(a);pushClass(a,b),c.length&&c.forEach(a=>deleteClass(a,b))}function elemAttribute(b,c,a=null){if(a)b.setAttribute(c,a);else return a=b.getAttribute(c),a||!1}function deleteChars(c,b){let a=c;if(Array.isArray(b))for(let c=0;c<b.length;c++)a=a.replace(b[c],'');else a=a.replace(b,'');return a}function isBlank(a){return!a||a.trim().length===0}function isMatch(a,b){if(isObj(a)){if(b.isArray){let c=b.map(function(b){return a.matches(b)});return c.includes(!0)}return a.matches(b)}}function exactMatch(a,b){const c=a.matches(b),d=a.closest(b);return c||d}const copyToClipboard=d=>{let a,b,c;a=createEl('textarea'),a.value=d,a.setAttribute('readonly',''),a.style.position='absolute',a.style.left='-9999px',b=document.getSelection(),doc.appendChild(a),c=b.rangeCount>0&&b.getRangeAt(0),a.select(),document.execCommand('copy'),doc.removeChild(a),c&&(b.removeAllRanges(),b.addRange(c))};function convertToUnderScoreCase(c){let a,d,b;if(b='',typeof c=='string'){for(let e=0;e<c.length;e++)a=c.charAt(e),a.match(/^[A-Z]*$/)?(a=a.toLowerCase(),d=`_${a}`,b+=d):b+=a;return b}}function fileClosure(){(function(){var a=new Date,b=a.getFullYear();elem('.year').innerHTML=b})(),function(){let f='nav_bar-wrap',e=elem(`.${f}`),a=elem('.nav-body'),b='nav-open',c='nav-exit',g='nav-drop',h='nav-pop',i=elem(`.${g}`);function d(){let f,g,d;modifyClass(i,h),modifyClass(e,hidden),f=containsClass(a,b),g=containsClass(a,c),d=!!(f||g),d?modifyClass(a,c):modifyClass(a,b),d?modifyClass(a,b):modifyClass(a,c)}e.addEventListener('click',function(){d()}),elem('.nav-close').addEventListener('click',function(){d()}),elem('.nav-drop').addEventListener('click',function(a){a.target===this&&d()})}(),function(){let a=elems('a');a&&Array.from(a).forEach(function(a){let d,e,f,c,g,h,b,i;b=elemAttribute(a,'href'),i=!!(b&&typeof b=='string'&&b.startsWith('http')&&!b.startsWith(parentURL)),i&&(d='target',e='rel',f='_blank',c='noopener',g=elemAttribute(a,d),h=elemAttribute(a,c),!g&&elemAttribute(a,d,f),!h&&elemAttribute(a,e,c))})}();let d=[],e,a,b,f,c,g=['h2','h3','h4','h5','h6'];f=document.URL,g.forEach(function(a){e=document.getElementsByTagName(a),Array.prototype.push.apply(d,e)}),d.forEach(function(d){a=createEl('a'),b=createEl('img'),b.src='images/icons/link.svg',a.className='link',a.appendChild(b),c=d.getAttribute('id'),c&&(a.href=`${f}#${c}`,d.appendChild(a),pushClass(d,'link_owner'))});let h=elems('ol li');h&&h.forEach(function(a){let b=a.children[0],c=isMatch(b,g);!!c&&pushClass(a,'align')}),function(){let b,c,d,e,a;b='link',c=elems(`.${b}`),c&&document.addEventListener('click',function(c){a=c.target,e=a.parentNode,(a&&containsClass(a,b)||containsClass(e,b))&&(c.preventDefault(),d=a.href!=void 0?a.href:a.parentNode.href,copyToClipboard(d))})}(),function(){let d,f,e,c,g,a,j,h,b;d='copy',f='copy_done',e='excerpt',h='post_card',doc.addEventListener('click',function(j){b=j.target,c=containsClass(b,d);let i=b.closest(`.${d}`);if(c||i){let d=c||i;g=d.closest(`.${e}`),g?(a=b.closest(`.${e}`).previousElementSibling,a=!!containsClass(a,h)&&elemAttribute(a,'href')):a=window.location.href,a&&(copyToClipboard(a),pushClass(d,f))}})}(),function(){let a,b,c;a=elem('.aside'),b=a?a.previousElementSibling:null,a&&b.nodeName.toLowerCase()==='h3'&&(c=Array.from(a.children),c.length<1&&b.remove())}(),function(){let a=elem('.btn_back'),b=window.history;a&&a.addEventListener('click',function(){b.back()})}(),function(){const a=elem('.pagination');if(a){pushClass(a,'pager');const b=elems('li',a),c=Array.from(b).map(function(a){return a.firstElementChild});c.forEach(function(a){pushClass(a,'pager_link')}),b.forEach(function(a){pushClass(a,'pager_item')})}}(),function(){function a(b){let a=elems(b);a&&Array.from(a).forEach(function(a,b){a.loading="lazy"})}a('iframe'),a('img')}();const l=elem(".crypto_qr");function i(a,b=l){const c=new QRious({element:b,size:125,value:a});c.set({foreground:"green",size:125})}const j=".crypto_row",k=elems(j);if(k.length){let a=k[0];i(a.dataset.address),markActive(a)}doc.addEventListener('click',function(c){const b=c.target,d=".crypto_copy",a=exactMatch(b,j);if(a){const e=exactMatch(b,d),c=a.dataset.address;e&&copyToClipboard(c),markActive(a),i(c)}})}window.addEventListener('load',fileClosure())