`}
\n `),this.inner.className="Opt",this.inner.href=address(unitA,unitB,n),this.inner.childNodes[0].onclick=function(n){n.preventDefault(),pushState(e,this.parentNode.href),umami.track("Source Selected")}}}class UnitItem extends Pane{constructor(e,n,t,i){const r=units[e].name;super("a",`${r}${brc20s[r]?'BRC-20':""}${e}`),this.inner.className="Opt",this.inner.href=address(n,t,null),this.inner.onclick=e=>{e.preventDefault(),win.unitOptPush(e,this.inner,i),umami.track("Unit Selected")},this.places=units[e].regions}}function scrollToPosition(e){requestAnimationFrame((()=>{window.scrollTo({top:e,behavior:"smooth"})}))}function showTop(){return scrollToPosition(0),!1}function showMore(){const e=document.getElementById("aboutPane");e&&e.scrollIntoView()}function el(e){var n=document.getElementById(e);return new Pane(n)}function escapedHTML(e){var n=document.createElement("div");return n.appendChild(document.createTextNode(e)),n.innerHTML}function eventValid(e,n){var t=document.createElement(n);return e in t||(t.setAttribute(e,"return"),"function"==typeof t[e])}document.documentElement.style.scrollBehavior="smooth","undefined"!=typeof module&&module.exports&&(module.exports={SourceItem:SourceItem,UnitItem:UnitItem,scrollToPosition:scrollToPosition,showTop:showTop,showMore:showMore}),address=function(e,n,t){return"/"+e.toLowerCase()+"/"+n.toLowerCase()+(t?"/source:"+t:"")},code=function(e){var n=document.createElement("div");return n.style.display="none",n.appendChild(e.cloneNode(!0)),n.innerHTML},contains=function(e,n,t){if(t&&e===n)return!0;let i=n.parentNode;for(;null!==i;){if(i===e)return!0;i=i.parentNode}return!1},elementAtFront=function(e){return new Promise((n=>{const t=new IntersectionObserver((e=>{const i=e[0];n(i.isIntersecting&&i.intersectionRatio>0),t.disconnect()}));t.observe(e)}))},intersection=function(e,n){return e.filter((e=>n.includes(e)))},props=function(e){return null!=e?Object.keys(e):[]},simpleName=function(e){return e.toLowerCase().replace(/[^a-z0-9]/g,"")},tryParse=function(e,n){if("json"===n)try{return JSON.parse(e)}catch(e){return}},web=function(e,n="http"){return e?`${n}://${e}`:null},"undefined"!=typeof module&&module.exports&&(module.exports={el:el,escapedHTML:escapedHTML,eventValid:eventValid}),document.addEventListener("DOMContentLoaded",loaded);