(()=>{var w=` `,s=new Map,l=null;function f(){let t=document.querySelector('script[src*="st-wishlist-icons-loader.js"]');if(t?.src)return t.src;let o=document.currentScript;return o?.src?.includes("st-wishlist-icons-loader.js")?o.src:""}function u(t){let o=f();return o?o.replace(/st-wishlist-icons-loader\.js(?=\?|#|$)/,t):t}function p(){return window.SWishlistIconLoaderConfig?.fullIconsScriptUrl||u("st-wishlist-icons.js")}function y(){let t=document.getElementById("st_wishlist_icons");if(t)return t;let o=document.getElementById("st-wishlist-icons-sprites");return o||(o=document.createElement("div"),o.id="st-wishlist-icons-sprites",(document.body||document.documentElement).insertAdjacentElement("afterbegin",o)),o.innerHTML='',o.querySelector("#st_wishlist_icons")}function a(t){if(!t)return;let o=document.createElement("template");o.innerHTML=t.trim(),o.content.querySelectorAll("symbol[id]").forEach(e=>{document.getElementById(e.id)||y().append(e.cloneNode(!0))})}function d(){a(w)}function h(t){if(s.has(t))return s.get(t);let o=new Promise((e,n)=>{let r=[...document.querySelectorAll("script[src]")].find(m=>m.src===t);if(r){if(r.dataset.swishlistLoaded==="1"){e();return}r.addEventListener("load",e,{once:!0}),r.addEventListener("error",n,{once:!0});return}let i=document.createElement("script");i.src=t,i.defer=!0,i.onload=()=>{i.dataset.swishlistLoaded="1",e()},i.onerror=n,document.head.appendChild(i)});return s.set(t,o),o}function c(){return document.documentElement.dataset.swishlistFullIcons==="1"||window.SWishlistFullIconsReady?Promise.resolve():(l||(l=h(p())),l)}function _(t,o){return`st-wishlist-icon-${t}-${o}.js`}function k(t={},o="all"){let e=t.general?.icons||{},n=t.detailsButton?.icon||{},r=[];return(o==="loader-shell"||o==="all")&&r.push(["heart",n.type],["loading",e.loading?.type]),(o==="product-card"||o==="all")&&(r.push(["heart",e.add?.type],["heart",e.added?.type]),o==="product-card"&&r.push(["loading",e.loading?.type])),r}function g(t={},o="all"){let e=new Set;return k(t,o).forEach(([n,r])=>{r&&e.add(_(n,r))}),[...e]}async function C(t,o){d();let e=g(t,o);if(!e.length){await c();return}try{await Promise.all(e.map(n=>h(u(n))))}catch{o==="all"&&await c()}}async function v(t){return C(t,"all")}async function L(t){return C(t,"loader-shell")}async function b(t){return C(t,"product-card")}window.SWishlistIcons={...window.SWishlistIcons||{},injectCoreIcons:d,loadFullIcons:c,loadRequiredIcons:v,loadLoaderShellIcons:L,loadProductCardIcons:b,registerSymbol:a};d();})();