1import{ae as m,N as y,a1 as I,av as p,y as g,O as C,I as N}from"./K7bZO7Oz.js";import{aU as d,b9 as h,cn as q,bi as S,bk as $}from"./Vr-xu02g.js";import"./SlcRBSWL.js";async function w(e,u){if(!e)return null;const t=y(e);return t||(await I(e).catch(()=>null),y(e))}function x(e){const u=m().icon,t=(u.collections||[]).sort((n,o)=>o.length-n.length);return d(()=>{const n=e(),o=n.startsWith(u.cssSelectorPrefix)?n.slice(u.cssSelectorPrefix.length):n,c=u.aliases?.[o]||o;if(!c.includes(":")){const l=t.find(s=>c.startsWith(s+"-"));return l?l+":"+c.slice(l.length+1):c}return c})}function z(e,u){if(e!==!1)return e===!0||e===null?u:e}let f;function b(e){return e.replace(/([^\w-])/g,"\\$1")}function R(){if(f)return f;f=new Set;const e=t=>{if(t=t.replace(/^:where\((.*)\)$/,"$1").trim(),t.startsWith("."))return t},u=t=>{if(t?.length)for(const n of t){n?.cssRules&&u(n.cssRules);const o=n?.selectorText;if(typeof o=="string"){const c=e(o);c&&f.add(c)}}};if(typeof document<"u")for(const t of document.styleSheets)try{const n=t.cssRules||t.rules;u(n)}catch{}return f}const A=h({name:"NuxtIconCss",props:{name:{type:String,required:!0},customize:{type:[Function,Boolean,null],default:null,required:!1}},setup(e){const u=p(),t=m().icon,n=d(()=>{if(!e.name)return"";const s=t.cssSelectorPrefix+e.name;return typeof e.customize=="function"?s+"--customized-"+$(e.customize.toString()):s});function o(s){if(!s)return;const a=y(s);if(a)return a;const r=u.payload?.data?.[s];if(r)return g(s,r),r}const c=d(()=>"."+b(n.value));function l(s,a=!0){let r=c.value;t.cssWherePseudo&&(r=`:where(${r})`);const i=C(s,{iconSelector:r,format:"compressed",customise:z(e.customize,t.customize)});return t.cssLayer&&a?`@layer ${t.cssLayer} { ${i} }`:i}{const s=R();async function a(r){if(s.has(c.value)||typeof document>"u")return;const i=document.createElement("style");i.textContent=l(r);const v=document.head.querySelector('style, link[rel="stylesheet"]');v?document.head.insertBefore(i,v):document.head.appendChild(i),s.add(c.value)}q(()=>e.name,()=>{if(s.has(c.value))return;const r=o(e.name);r?a(r):w(e.name).then(i=>{i&&a(i)}).catch(()=>null)},{immediate:!0})}return()=>S("span",{class:["iconify",n.value]})}}),B=h({name:"NuxtIconSvg",props:{name:{type:String,required:!0},customize:{type:[Function,Boolean,null],default:null,required:!1}},setup(e,{slots:u}){const t=p(),n=m().icon,o=x(()=>e.name),c="i-"+o.value;if(o.value){const l=t.payload.data[c];l&&g(o.value,l)}return()=>S(N,{icon:o.value,ssr:!0,customise:z(e.customize,n.customize)},u)}}),k=h({name:"NuxtIcon",props:{name:{type:String,required:!0},mode:{type:String,required:!1,default:null},size:{type:[Number,String],required:!1,default:null},customize:{type:[Function,Boolean,null],default:null,required:!1}},setup(e,{slots:u}){const t=p(),n=m().icon,o=x(()=>e.name),c=d(()=>t.vueApp?.component(o.value)||((e.mode||n.mode)==="svg"?B:A)),l=d(()=>{const s=e.size||n.size;return s?{fontSize:Number.isNaN(+s)?s:s+"px"}:null});return()=>S(c.value,{...n.attrs,name:o.value,class:n.class,style:l.value,customize:e.customize},u)}});export{k as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.