1import{d as I,o as _,c as k,s as V,u as T,q as z,f as v,h as D,t as q,_ as F,aa as M,ab as $,ac as H,ad as U,ae as G,C as J,af as Q,Y as j,O as Y,ag as K,ah as X,m as Z,B as C,ai as ee,k as te,F as re,a as p,n as O,i as se}from"./DS80ihmr.js";const ie=I({__name:"ALabel",props:{label:{default:""},color:{default:"yellow"},colorOnBackground:{type:Boolean,default:!1}},setup(e){const t={yellow:"var(--color-brand-yellow)",green:"var(--color-tags-green)",red:"var(--color-tags-red)",pink:"var(--color-brand-pink)",black:"var(--color-brand-black)",white:"var(--color-brand-white)",purple:"var(--color-tags-purple)",violet:"var(--color-tags-violet)",blue:"var(--color-tags-blue)",orange:"var(--color-tags-orange)",theme:"var(--theme-color, var(--color-brand-yellow))",cyan:"var(--color-tags-blue)"},r={yellow:"var(--color-brand-black)",green:"var(--color-brand-black)",red:"var(--color-brand-black)",pink:"var(--color-brand-black)",black:"var(--color-brand-white)",white:"var(--color-brand-black)",purple:"var(--color-brand-black)",violet:"var(--color-brand-black)",blue:"var(--color-brand-black)",orange:"var(--color-brand-black)",theme:"var(--color-brand-black)",cyan:"var(--color-brand-black)"},s=e,i=v(()=>{const o=s.color,c=t[o],a=r[o];return s.colorOnBackground?{"--a-label-bg":c,"--a-label-color":a}:{"--a-label-bg":a,"--a-label-color":c}});return(o,c)=>(_(),k("span",{class:"a-label font-sans-condensed",style:V(T(i))},[z(o.$slots,"default",{},()=>[D(q(e.label),1)],!0)],4))}}),Ne=Object.assign(F(ie,[["__scopeId","data-v-a2c2b020"]]),{__name:"ALabel"});async function oe(e,t){return await ne(t).catch(s=>(console.error("Failed to get image meta for "+t,s+""),{width:0,height:0,ratio:0}))}async function ne(e){if(typeof Image>"u")throw new TypeError("Image not supported");return new Promise((t,r)=>{const s=new Image;s.onload=()=>{const i={width:s.width,height:s.height,ratio:s.width/s.height};t(i)},s.onerror=i=>r(i),s.src=e})}function ae(e=""){if(e===void 0||!e.length)return[];const t=new Set;for(const r of e.split(" ")){const s=Number.parseInt(r.replace("x",""));s&&t.add(s)}return Array.from(t)}function ce(e){if(e.length===0)throw new Error("`densities` must not be empty, configure to `1` to render regular size only (DPR 1.0)")}function w(e=""){if(typeof e=="number")return e;if(typeof e=="string"&&e.replace("px","").match(/^\d+$/g))return Number.parseInt(e,10)}function le(e){const t={};if(typeof e=="string")for(const r of e.split(/[\s,]+/).filter(s=>s)){const s=r.split(":");s.length!==2?t["1px"]=s[0].trim():t[s[0].trim()]=s[1].trim()}else Object.assign(t,e);return t}function de(e){const t={options:e},r=(i,o={})=>A(t,i,o),s=((i,o,c)=>r(i,M({modifiers:o},c)).url);for(const i in e.presets)s[i]=((o,c,a)=>s(o,c,{...e.presets[i],...a}));return s.options=e,s.getImage=r,s.getMeta=((i,o)=>ue(t,i,o)),s.getSizes=((i,o)=>me(t,i,o)),t.$img=s,s}async function ue(e,t,r){const s=A(e,t,{...r});return typeof s.getMeta=="function"?await s.getMeta():await oe(e,s.url)}function A(e,t,r){if(t&&typeof t!="string")throw new TypeError(`input must be a string (received ${typeof t}: ${JSON.stringify(t)})`);if(!t||t.startsWith("data:"))return{url:t};const{setup:s,defaults:i}=fe(e,r.provider||e.options.provider),o=s(),c=W(e,r.preset);if(t=$(t)?t:H(t),!o.supportsAlias){for(const u in e.options.alias)if(t.startsWith(u)){const g=e.options.alias[u];g&&(t=U(g,t.slice(u.length)))}}if(o.validateDomains&&$(t)){const u=G(t).host;if(!e.options.domains.find(g=>g===u))return{url:t}}const a=M(r,c,i),m={...a,modifiers:{...a.modifiers,width:a.modifiers?.width?w(a.modifiers.width):void 0,height:a.modifiers?.height?w(a.modifiers.height):void 0}},f=o.getImage(t,m,e);return f.format||=m.modifiers.format||"",f}function fe(e,t){const r=e.options.providers[t];if(!r)throw new Error("Unknown provider: "+t);return r}function W(e,t){if(!t)return{};if(!e.options.presets[t])throw new Error("Unknown preset: "+t);return e.options.presets[t]}function me(e,t,r){const s=W(e,r.preset),i=M(r,s),o=w(i.modifiers?.width),c=w(i.modifiers?.height),a=i.sizes?le(i.sizes):{},m=i.densities?.trim(),f=m?ae(m):e.options.densities;ce(f);const u=o&&c?c/o:0,g=[],h=[];if(Object.keys(a).length>=1){for(const l in a){const n=B(l,String(a[l]),c,u,e);if(n!==void 0){g.push({size:n.size,screenMaxWidth:n.screenMaxWidth,media:`(max-width: ${n.screenMaxWidth}px)`});for(const d of f)h.push({width:n._cWidth*d,src:N(e,t,r,n,d)})}}ge(g)}else for(const l of f){const n=Object.keys(a)[0];let d=n?B(n,String(a[n]),c,u,e):void 0;d===void 0&&(d={size:"",screenMaxWidth:0,_cWidth:r.modifiers?.width,_cHeight:r.modifiers?.height}),h.push({width:l,src:N(e,t,r,d,l)})}he(h);const y=h[h.length-1],b=g.length?g.map(l=>`${l.media?l.media+" ":""}${l.size}`).join(", "):void 0,x=b?"w":"x",S=h.map(l=>`${l.src} ${l.width}${x}`).join(", ");return{sizes:b,srcset:S,src:y?.src}}function B(e,t,r,s,i){const o=i.options.screens&&i.options.screens[e]||Number.parseInt(e),c=t.endsWith("vw");if(!c&&/^\d+$/.test(t)&&(t=t+"px"),!c&&!t.endsWith("px"))return;let a=Number.parseInt(t);if(!o||!a)return;c&&(a=Math.round(a/100*o));const m=s?Math.round(a*s):r;return{size:t,screenMaxWidth:o,_cWidth:a,_cHeight:m}}
1function N(e,t,r,s,i){return e.$img(t,{...r.modifiers,width:s._cWidth?s._cWidth*i:void 0,height:s._cHeight?s._cHeight*i:void 0},r)}function ge(e){e.sort((r,s)=>r.screenMaxWidth-s.screenMaxWidth);let t=null;for(let r=e.length-1;r>=0;r--){const s=e[r];s.media===t&&e.splice(r,1),t=s.media}for(let r=0;r<e.length;r++)e[r].media=e[r+1]?.media||""}function he(e){e.sort((r,s)=>r.width-s.width);let t=null;for(let r=e.length-1;r>=0;r--){const s=e[r];s.width===t&&e.splice(r,1),t=s.width}}function ve(e){let t;return()=>t||(t=typeof e=="function"?e():e,t)}const pe={cover:"crop",contain:"max",fill:"stretch",inside:"max",outside:"min"},be=ve({getImage(e,t){const r=t.modifiers??{},s=J(e),i=r.rmode??(r.fit?pe[r.fit]??r.fit:void 0),o={};return r.width&&(o.width=Math.round(Number(r.width))),r.height&&(o.height=Math.round(Number(r.height))),r.cc&&(o.cc=r.cc),i&&(o.rmode=i),r.rxy&&(o.rxy=r.rxy),r.format&&(o.format=r.format),r.quality&&(o.quality=Number(r.quality)),{url:Q(s,o)}}}),we={screens:{sm:640,md:768,lg:1024,xl:1280,"2xl":1536,xs:375},presets:{},provider:"umbraco",domains:[],alias:{},densities:[1,2,1,2],format:["webp"],quality:72,provider:"umbraco",providers:{umbraco:{setup:be,defaults:void 0}}},E=e=>{const t=Y(),r=j();return r.$img||r._img||(r._img=de({...we,event:r.ssrContext?.event,nuxt:{baseURL:t.app.baseURL},runtimeConfig:t}))};function ye(e){performance?.mark?.("mark_feature_usage",{detail:{feature:e}})}const _e=e=>{const t=E(),r=v(()=>({provider:e.provider,preset:e.preset})),s=v(()=>({width:w(e.width),height:w(e.height),crossorigin:e.crossorigin===!0?"anonymous":e.crossorigin||void 0,nonce:e.nonce})),i=v(()=>({...e.modifiers,width:e.width,height:e.height,format:e.format,quality:e.quality||t.options.quality,background:e.background,fit:e.fit}));return{providerOptions:r,normalizedAttrs:s,imageModifiers:i}},ke=["src"],xe={__name:"NuxtImg",props:{custom:{type:Boolean,required:!1},placeholder:{type:[Boolean,String,Number,Array],required:!1},placeholderClass:{type:String,required:!1},src:{type:String,required:!1},format:{type:String,required:!1},quality:{type:[String,Number],required:!1},background:{type:String,required:!1},fit:{type:String,required:!1},modifiers:{type:Object,required:!1},preset:{type:String,required:!1},provider:{type:null,required:!1},sizes:{type:[String,Object],required:!1},densities:{type:String,required:!1},preload:{type:[Boolean,Object],required:!1},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},crossorigin:{type:[String,Boolean],required:!1},nonce:{type:String,required:!1}},emits:["load","error"],setup(e,{expose:t,emit:r}){const s=e,i=r,o=E(),{providerOptions:c,normalizedAttrs:a,imageModifiers:m}=_e(s),f=v(()=>o.getSizes(s.src,{...c.value,sizes:s.sizes,densities:s.densities,modifiers:m.value})),u=te(!1),g=K(),h=v(()=>({...a.value,"data-nuxt-img":"",...!s.placeholder||u.value?{sizes:f.value.sizes,srcset:f.value.srcset}:{},...g})),y=v(()=>{if(u.value)return!1;const n=s.placeholder===""?[10,10]:s.placeholder;if(!n)return!1;if(typeof n=="string")return n;const[d=10,L=d,P=50,R=3]=Array.isArray(n)?n:typeof n=="number"?[n]:[];return o(s.src,{...m.value,width:d,height:L,quality:P,blur:R},c.value)}),b=v(()=>s.sizes?f.value.src:o(s.src,m.value,c.value)),x=v(()=>y.value||b.value),S=j().isHydrating,l=X("imgEl");return t({imgEl:l}),Z(()=>
1{if(y.value||s.custom){const n=new Image;b.value&&(n.src=b.value),s.sizes&&(n.sizes=f.value.sizes||"",n.srcset=f.value.srcset),n.decode?n.decode().then(()=>{u.value=!0,i("load",new Event("load"))}).catch(d=>{i("error",d)}):(n.onload=d=>{u.value=!0,i("load",d)},n.onerror=d=>{i("error",d)}),ye("nuxt-image");return}l.value&&(l.value.complete&&S&&(l.value.getAttribute("data-error")?i("error",new Event("error")):i("load",new Event("load"))),l.value.onload=n=>{i("load",n)},l.value.onerror=n=>{i("error",n)})}),(n,d)=>e.custom?z(n.$slots,"default",ee(C({key:1},{imgAttrs:h.value,isLoaded:u.value,src:x.value}))):(_(),k("img",C({key:0,ref_key:"imgEl",ref:l,class:y.value?e.placeholderClass:void 0},h.value,{src:x.value}),null,16,ke))}},je=Object.assign(xe,{__name:"NuxtImg"}),Se=["width","height"],qe=I({__name:"IconBase",props:{size:{default:24}},setup(e){return(t,r)=>(_(),k("svg",{width:e.size,height:e.size,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},[z(t.$slots,"default")],8,Se))}}),Ae=Object.assign(qe,{__name:"IconBase"}),Ie=["src","alt"],ze={class:"flex flex-col self-stretch min-w-0"},Me={class:"typo-body-sm font-[550] leading-4 grow flex items-center max-w-[185px]"},$e={class:"truncate"},Ce={class:"truncate"},Oe=I({__name:"IconCardContent",props:{item:{},iconBgClass:{},wikiBtnClass:{}},setup(e){return(t,r)=>(_(),k(re,null,[p("div",{class:O(["icon-cards__icon shrink-0 flex items-center justify-center rounded-xl",e.iconBgClass])},[e.item.iconPath?(_(),k("img",{key:0,src:e.item.iconPath,alt:e.item.label||e.item.emoji,class:"w-14 h-14 object-contain pointer-events-none",draggable:"false",loading:"lazy"},null,8,Ie)):se("",!0)],2),p("div",ze,[p("span",Me,[p("span",$e,q(e.item.label),1)]),p("span",{class:O(["icon-cards__wiki-btn inline-flex items-center gap-1 rounded-xl px-2 py-1 text-sm font-semibold w-fit max-w-[185px]",e.wikiBtnClass])},[p("span",Ce,q(e.item.buttonLabel),1),r[0]||(r[0]=p("svg",{class:"shrink-0 w-5 h-5",viewBox:"0 0 20 20",fill:"none","aria-hidden":"true"},[p("path",{d:"M6 14L14 6M14 6H7M14 6V13",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1))],2)])],64))}}),We=Object.assign(Oe,{__name:"IconCardContent"});export{Ae as I,Ne as _,je as a,We as b,E as u};
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.