(function(){let o="v2",i="https://public.powrcdn.com/latest/assets/packs/",l=["fa","fal","fab","fas","far","fad"],r=[];function f(e){let t=[...e.classList].find(s=>l.includes(s));return t==="fa"&&(t="fas"),t}function u(e,t){let s=0;return function(...n){let c=new Date;c-s>=t&&(e(...n),s=c)}}function a(e,t=null,s=null){if(!r.includes(e)){r.push(e);let n=document.createElement("link");n.rel="stylesheet",n.media="screen",n.href=`${i}esbuild/fontawesome/styles/${e}`,n.onerror=async()=>await y(n.href,t,s),document.head.appendChild(n)}}function d(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}function _(e){return["fa-2x","fa-3x","fa-fw","fa-lg","fa-spin"].includes(e)}function p(e){let t=[...e.classList].filter(s=>s.startsWith("fa-"));a(`styles_${o}.css`);for(let s of t)if(_(s))a(`${s}_${o}.css`);else{let n=f(e);a(`${n}/${s}/index_${o}.css`,n,s)}}async function y(e,t,s){let n=`${window.META.id}_${e}`;localStorage.getItem(n)||(await fetch("/fa_font_empty",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({style_class:t,fa_class:s,app_id:window.META.id})})).status===200&&localStorage.setItem(n,"1")}let T=async()=>{try{let e=document.querySelectorAll(l.map(t=>`.${t}`).join(", "));for(let t of e)d(t)&&p(t)}catch(e){console.error(e.message)}};new MutationObserver(u(T,350)).observe(document.querySelector("body"),{attributes:!0,childList:!0,subtree:!0})})();