2 lines
19 KiB
JavaScript
2 lines
19 KiB
JavaScript
import{V as be,a1 as N,W as xe,o as G,K,I as ve,v as z,C as re,a0 as we,M as Ie,q as ke,y as Se,at as Te,z as Ce,A as Pe,w as Ee,B as W}from"./template.CyUWgh-J.js";class je{anchor;#t=new Map;#n=new Map;#e=new Map;#s=new Set;#o=!0;constructor(t,s=!0){this.anchor=t,this.#o=s}#i=t=>{if(this.#t.has(t)){var s=this.#t.get(t),o=this.#n.get(s);if(o)be(o),this.#s.delete(s);else{var n=this.#e.get(s);n&&(this.#n.set(s,n.effect),this.#e.delete(s),n.fragment.lastChild.remove(),this.anchor.before(n.fragment),o=n.effect)}for(const[i,r]of this.#t){if(this.#t.delete(i),i===t)break;const c=this.#e.get(r);c&&(N(c.effect),this.#e.delete(r))}for(const[i,r]of this.#n){if(i===s||this.#s.has(i))continue;const c=()=>{if(Array.from(this.#t.values()).includes(i)){var f=document.createDocumentFragment();we(r,f),f.append(G()),this.#e.set(i,{effect:r,fragment:f})}else N(r);this.#s.delete(i),this.#n.delete(i)};this.#o||!o?(this.#s.add(i),xe(r,c,!1)):c()}}};#r=t=>{this.#t.delete(t);const s=Array.from(this.#t.values());for(const[o,n]of this.#e)s.includes(o)||(N(n.effect),this.#e.delete(o))};ensure(t,s){var o=ve,n=Ie();if(s&&!this.#n.has(t)&&!this.#e.has(t))if(n){var i=document.createDocumentFragment(),r=G();i.append(r),this.#e.set(t,{effect:K(()=>s(r)),fragment:i})}else this.#n.set(t,K(()=>s(this.anchor)));if(this.#t.set(o,t),n){for(const[c,l]of this.#n)c===t?o.unskip_effect(l):o.skip_effect(l);for(const[c,l]of this.#e)c===t?o.unskip_effect(l.effect):o.skip_effect(l.effect);o.oncommit(this.#i),o.ondiscard(this.#r)}else z&&(this.anchor=re),this.#i(o)}}function Ot(e,t,s=!1){var o;z&&(o=re,Se());var n=new je(e),i=s?Te:0;function r(c,l){if(z){var f=Ce(o);if(c!==parseInt(f.substring(1))){var u=Pe();Ee(u),n.anchor=u,W(!1),n.ensure(c,l),W(!0);return}}n.ensure(c,l)}ke(()=>{var c=!1;t((l,f=0)=>{c=!0,r(f,l)}),c||r(-1,null)},i)}const ce=/^[a-z0-9]+(-[a-z0-9]+)*$/,_=(e,t,s,o="")=>{const n=e.split(":");if(e.slice(0,1)==="@"){if(n.length<2||n.length>3)return null;o=n.shift().slice(1)}if(n.length>3||!n.length)return null;if(n.length>1){const c=n.pop(),l=n.pop(),f={provider:n.length>0?n[0]:o,prefix:l,name:c};return t&&!F(f)?null:f}const i=n[0],r=i.split("-");if(r.length>1){const c={provider:o,prefix:r.shift(),name:r.join("-")};return t&&!F(c)?null:c}if(s&&o===""){const c={provider:o,prefix:"",name:i};return t&&!F(c,s)?null:c}return null},F=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1,le=Object.freeze({left:0,top:0,width:16,height:16}),A=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),L=Object.freeze({...le,...A}),q=Object.freeze({...L,body:"",hidden:!1});function Fe(e,t){const s={};!e.hFlip!=!t.hFlip&&(s.hFlip=!0),!e.vFlip!=!t.vFlip&&(s.vFlip=!0);const o=((e.rotate||0)+(t.rotate||0))%4;return o&&(s.rotate=o),s}function J(e,t){const s=Fe(e,t);for(const o in q)o in A?o in e&&!(o in s)&&(s[o]=A[o]):o in t?s[o]=t[o]:o in e&&(s[o]=e[o]);return s}function Oe(e,t){const s=e.icons,o=e.aliases||Object.create(null),n=Object.create(null);function i(r){if(s[r])return n[r]=[];if(!(r in n)){n[r]=null;const c=o[r]&&o[r].parent,l=c&&i(c);l&&(n[r]=[c].concat(l))}return n[r]}return Object.keys(s).concat(Object.keys(o)).forEach(i),n}function Ae(e,t,s){const o=e.icons,n=e.aliases||Object.create(null);let i={};function r(c){i=J(o[c]||n[c],i)}return r(t),s.forEach(r),J(e,i)}function fe(e,t){const s=[];if(typeof e!="object"||typeof e.icons!="object")return s;e.not_found instanceof Array&&e.not_found.forEach(n=>{t(n,null),s.push(n)});const o=Oe(e);for(const n in o){const i=o[n];i&&(t(n,Ae(e,n,i)),s.push(n))}return s}const _e={provider:"",aliases:{},not_found:{},...le};function D(e,t){for(const s in t)if(s in e&&typeof e[s]!=typeof t[s])return!1;return!0}function ue(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!D(e,_e))return null;const s=t.icons;for(const n in s){const i=s[n];if(!n||typeof i.body!="string"||!D(i,q))return null}const o=t.aliases||Object.create(null);for(const n in o){const i=o[n],r=i.parent;if(!n||typeof r!="string"||!s[r]&&!o[r]||!D(i,q))return null}return t}const X=Object.create(null);function Le(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function S(e,t){const s=X[e]||(X[e]=Object.create(null));return s[t]||(s[t]=Le(e,t))}function ae(e,t){return ue(t)?fe(t,(s,o)=>{o?e.icons[s]=o:e.missing.add(s)}):[]}function Me(e,t,s){try{if(typeof s.body=="string")return e.icons[t]={...s},!0}catch{}return!1}let E=!1;function de(e){return typeof e=="boolean"&&(E=e),E}function Ne(e){const t=typeof e=="string"?_(e,!0,E):e;if(t){const s=S(t.provider,t.prefix),o=t.name;return s.icons[o]||(s.missing.has(o)?null:void 0)}}function De(e,t){const s=_(e,!0,E);if(!s)return!1;const o=S(s.provider,s.prefix);return t?Me(o,s.name,t):(o.missing.add(s.name),!0)}function Re(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),E&&!t&&!e.prefix){let n=!1;return ue(e)&&(e.prefix="",fe(e,(i,r)=>{De(i,r)&&(n=!0)})),n}const s=e.prefix;if(!F({prefix:s,name:"a"}))return!1;const o=S(t,s);return!!ae(o,e)}const he=Object.freeze({width:null,height:null}),pe=Object.freeze({...he,...A}),ze=/(-?[0-9.]*[0-9]+[0-9.]*)/g,qe=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Y(e,t,s){if(t===1)return e;if(s=s||100,typeof e=="number")return Math.ceil(e*t*s)/s;if(typeof e!="string")return e;const o=e.split(ze);if(o===null||!o.length)return e;const n=[];let i=o.shift(),r=qe.test(i);for(;;){if(r){const c=parseFloat(i);isNaN(c)?n.push(i):n.push(Math.ceil(c*t*s)/s)}else n.push(i);if(i=o.shift(),i===void 0)return n.join("");r=!r}}function Qe(e,t="defs"){let s="";const o=e.indexOf("<"+t);for(;o>=0;){const n=e.indexOf(">",o),i=e.indexOf("</"+t);if(n===-1||i===-1)break;const r=e.indexOf(">",i);if(r===-1)break;s+=e.slice(n+1,i).trim(),e=e.slice(0,o).trim()+e.slice(r+1)}return{defs:s,content:e}}function Ue(e,t){return e?"<defs>"+e+"</defs>"+t:t}function $e(e,t,s){const o=Qe(e);return Ue(o.defs,t+o.content+s)}const Ve=e=>e==="unset"||e==="undefined"||e==="none";function Be(e,t){const s={...L,...e},o={...pe,...t},n={left:s.left,top:s.top,width:s.width,height:s.height};let i=s.body;[s,o].forEach(I=>{const m=[],g=I.hFlip,a=I.vFlip;let w=I.rotate;g?a?w+=2:(m.push("translate("+(n.width+n.left).toString()+" "+(0-n.top).toString()+")"),m.push("scale(-1 1)"),n.top=n.left=0):a&&(m.push("translate("+(0-n.left).toString()+" "+(n.height+n.top).toString()+")"),m.push("scale(1 -1)"),n.top=n.left=0);let x;switch(w<0&&(w-=Math.floor(w/4)*4),w=w%4,w){case 1:x=n.height/2+n.top,m.unshift("rotate(90 "+x.toString()+" "+x.toString()+")");break;case 2:m.unshift("rotate(180 "+(n.width/2+n.left).toString()+" "+(n.height/2+n.top).toString()+")");break;case 3:x=n.width/2+n.left,m.unshift("rotate(-90 "+x.toString()+" "+x.toString()+")");break}w%2===1&&(n.left!==n.top&&(x=n.left,n.left=n.top,n.top=x),n.width!==n.height&&(x=n.width,n.width=n.height,n.height=x)),m.length&&(i=$e(i,'<g transform="'+m.join(" ")+'">',"</g>"))});const r=o.width,c=o.height,l=n.width,f=n.height;let u,d;r===null?(d=c===null?"1em":c==="auto"?f:c,u=Y(d,l/f)):(u=r==="auto"?l:r,d=c===null?Y(u,f/l):c==="auto"?f:c);const p={},y=(I,m)=>{Ve(m)||(p[I]=m.toString())};y("width",u),y("height",d);const b=[n.left,n.top,l,f];return p.viewBox=b.join(" "),{attributes:p,viewBox:b,body:i}}const He=/\sid="(\S+)"/g,Ge="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Ke=0;function We(e,t=Ge){const s=[];let o;for(;o=He.exec(e);)s.push(o[1]);if(!s.length)return e;const n="suffix"+(Math.random()*16777216|Date.now()).toString(16);return s.forEach(i=>{const r=typeof t=="function"?t(i):t+(Ke++).toString(),c=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+r+n+"$3")}),e=e.replace(new RegExp(n,"g"),""),e}const Q=Object.create(null);function Je(e,t){Q[e]=t}function U(e){return Q[e]||Q[""]}function V(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const B=Object.create(null),C=["https://api.simplesvg.com","https://api.unisvg.com"],O=[];for(;C.length>0;)C.length===1||Math.random()>.5?O.push(C.shift()):O.push(C.pop());B[""]=V({resources:["https://api.iconify.design"].concat(O)});function Xe(e,t){const s=V(t);return s===null?!1:(B[e]=s,!0)}function H(e){return B[e]}const Ye=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Z=Ye();function Ze(e,t){const s=H(e);if(!s)return 0;let o;if(!s.maxURL)o=0;else{let n=0;s.resources.forEach(r=>{n=Math.max(n,r.length)});const i=t+".json?icons=";o=s.maxURL-n-s.path.length-i.length}return o}function et(e){return e===404}const tt=(e,t,s)=>{const o=[],n=Ze(e,t),i="icons";let r={type:i,provider:e,prefix:t,icons:[]},c=0;return s.forEach((l,f)=>{c+=l.length+1,c>=n&&f>0&&(o.push(r),r={type:i,provider:e,prefix:t,icons:[]},c=l.length),r.icons.push(l)}),o.push(r),o};function nt(e){if(typeof e=="string"){const t=H(e);if(t)return t.path}return"/"}const st=(e,t,s)=>{if(!Z){s("abort",424);return}let o=nt(t.provider);switch(t.type){case"icons":{const i=t.prefix,c=t.icons.join(","),l=new URLSearchParams({icons:c});o+=i+".json?"+l.toString();break}case"custom":{const i=t.uri;o+=i.slice(0,1)==="/"?i.slice(1):i;break}default:s("abort",400);return}let n=503;Z(e+o).then(i=>{const r=i.status;if(r!==200){setTimeout(()=>{s(et(r)?"abort":"next",r)});return}return n=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?s("abort",i):s("next",n)});return}setTimeout(()=>{s("success",i)})}).catch(()=>{s("next",n)})},ot={prepare:tt,send:st};function it(e){const t={loaded:[],missing:[],pending:[]},s=Object.create(null);e.sort((n,i)=>n.provider!==i.provider?n.provider.localeCompare(i.provider):n.prefix!==i.prefix?n.prefix.localeCompare(i.prefix):n.name.localeCompare(i.name));let o={provider:"",prefix:"",name:""};return e.forEach(n=>{if(o.name===n.name&&o.prefix===n.prefix&&o.provider===n.provider)return;o=n;const i=n.provider,r=n.prefix,c=n.name,l=s[i]||(s[i]=Object.create(null)),f=l[r]||(l[r]=S(i,r));let u;c in f.icons?u=t.loaded:r===""||f.missing.has(c)?u=t.missing:u=t.pending;const d={provider:i,prefix:r,name:c};u.push(d)}),t}function ge(e,t){e.forEach(s=>{const o=s.loaderCallbacks;o&&(s.loaderCallbacks=o.filter(n=>n.id!==t))})}function rt(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let s=!1;const o=e.provider,n=e.prefix;t.forEach(i=>{const r=i.icons,c=r.pending.length;r.pending=r.pending.filter(l=>{if(l.prefix!==n)return!0;const f=l.name;if(e.icons[f])r.loaded.push({provider:o,prefix:n,name:f});else if(e.missing.has(f))r.missing.push({provider:o,prefix:n,name:f});else return s=!0,!0;return!1}),r.pending.length!==c&&(s||ge([e],i.id),i.callback(r.loaded.slice(0),r.missing.slice(0),r.pending.slice(0),i.abort))})}))}let ct=0;function lt(e,t,s){const o=ct++,n=ge.bind(null,s,o);if(!t.pending.length)return n;const i={id:o,icons:t,callback:e,abort:n};return s.forEach(r=>{(r.loaderCallbacks||(r.loaderCallbacks=[])).push(i)}),n}function ft(e,t=!0,s=!1){const o=[];return e.forEach(n=>{const i=typeof n=="string"?_(n,t,s):n;i&&o.push(i)}),o}var ut={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function at(e,t,s,o){const n=e.resources.length,i=e.random?Math.floor(Math.random()*n):e.index;let r;if(e.random){let h=e.resources.slice(0);for(r=[];h.length>1;){const v=Math.floor(Math.random()*h.length);r.push(h[v]),h=h.slice(0,v).concat(h.slice(v+1))}r=r.concat(h)}else r=e.resources.slice(i).concat(e.resources.slice(0,i));const c=Date.now();let l="pending",f=0,u,d=null,p=[],y=[];typeof o=="function"&&y.push(o);function b(){d&&(clearTimeout(d),d=null)}function I(){l==="pending"&&(l="aborted"),b(),p.forEach(h=>{h.status==="pending"&&(h.status="aborted")}),p=[]}function m(h,v){v&&(y=[]),typeof h=="function"&&y.push(h)}function g(){return{startTime:c,payload:t,status:l,queriesSent:f,queriesPending:p.length,subscribe:m,abort:I}}function a(){l="failed",y.forEach(h=>{h(void 0,u)})}function w(){p.forEach(h=>{h.status==="pending"&&(h.status="aborted")}),p=[]}function x(h,v,T){const j=v!=="success";switch(p=p.filter(k=>k!==h),l){case"pending":break;case"failed":if(j||!e.dataAfterTimeout)return;break;default:return}if(v==="abort"){u=T,a();return}if(j){u=T,p.length||(r.length?M():a());return}if(b(),w(),!e.random){const k=e.resources.indexOf(h.resource);k!==-1&&k!==e.index&&(e.index=k)}l="completed",y.forEach(k=>{k(T)})}function M(){if(l!=="pending")return;b();const h=r.shift();if(h===void 0){if(p.length){d=setTimeout(()=>{b(),l==="pending"&&(w(),a())},e.timeout);return}a();return}const v={status:"pending",resource:h,callback:(T,j)=>{x(v,T,j)}};p.push(v),f++,d=setTimeout(M,e.rotate),s(h,t,v.callback)}return setTimeout(M),g}function me(e){const t={...ut,...e};let s=[];function o(){s=s.filter(c=>c().status==="pending")}function n(c,l,f){const u=at(t,c,l,(d,p)=>{o(),f&&f(d,p)});return s.push(u),u}function i(c){return s.find(l=>c(l))||null}return{query:n,find:i,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:o}}function ee(){}const R=Object.create(null);function dt(e){if(!R[e]){const t=H(e);if(!t)return;const s=me(t),o={config:t,redundancy:s};R[e]=o}return R[e]}function ht(e,t,s){let o,n;if(typeof e=="string"){const i=U(e);if(!i)return s(void 0,424),ee;n=i.send;const r=dt(e);r&&(o=r.redundancy)}else{const i=V(e);if(i){o=me(i);const r=e.resources?e.resources[0]:"",c=U(r);c&&(n=c.send)}}return!o||!n?(s(void 0,424),ee):o.query(t,n,s)().abort}function te(){}function pt(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,rt(e)}))}function gt(e){const t=[],s=[];return e.forEach(o=>{(o.match(ce)?t:s).push(o)}),{valid:t,invalid:s}}function P(e,t,s){function o(){const n=e.pendingIcons;t.forEach(i=>{n&&n.delete(i),e.icons[i]||e.missing.add(i)})}if(s&&typeof s=="object")try{if(!ae(e,s).length){o();return}}catch(n){console.error(n)}o(),pt(e)}function ne(e,t){e instanceof Promise?e.then(s=>{t(s)}).catch(()=>{t(null)}):t(e)}function mt(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:s,prefix:o}=e,n=e.iconsToLoad;if(delete e.iconsToLoad,!n||!n.length)return;const i=e.loadIcon;if(e.loadIcons&&(n.length>1||!i)){ne(e.loadIcons(n,o,s),u=>{P(e,n,u)});return}if(i){n.forEach(u=>{const d=i(u,o,s);ne(d,p=>{const y=p?{prefix:o,icons:{[u]:p}}:null;P(e,[u],y)})});return}const{valid:r,invalid:c}=gt(n);if(c.length&&P(e,c,null),!r.length)return;const l=o.match(ce)?U(s):null;if(!l){P(e,r,null);return}l.prepare(s,o,r).forEach(u=>{ht(s,u,d=>{P(e,u.icons,d)})})}))}const yt=(e,t)=>{const s=ft(e,!0,de()),o=it(s);if(!o.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(o.loaded,o.missing,o.pending,te)}),()=>{l=!1}}const n=Object.create(null),i=[];let r,c;return o.pending.forEach(l=>{const{provider:f,prefix:u}=l;if(u===c&&f===r)return;r=f,c=u,i.push(S(f,u));const d=n[f]||(n[f]=Object.create(null));d[u]||(d[u]=[])}),o.pending.forEach(l=>{const{provider:f,prefix:u,name:d}=l,p=S(f,u),y=p.pendingIcons||(p.pendingIcons=new Set);y.has(d)||(y.add(d),n[f][u].push(d))}),i.forEach(l=>{const f=n[l.provider][l.prefix];f.length&&mt(l,f)}),t?lt(t,o,i):te};function bt(e,t){const s={...e};for(const o in t){const n=t[o],i=typeof n;o in he?(n===null||n&&(i==="string"||i==="number"))&&(s[o]=n):i===typeof s[o]&&(s[o]=o==="rotate"?n%4:n)}return s}const xt=/[\s,]+/;function vt(e,t){t.split(xt).forEach(s=>{switch(s.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function wt(e,t=0){const s=e.replace(/^-?[0-9.]*/,"");function o(n){for(;n<0;)n+=4;return n%4}if(s===""){const n=parseInt(e);return isNaN(n)?0:o(n)}else if(s!==e){let n=0;switch(s){case"%":n=25;break;case"deg":n=90}if(n){let i=parseFloat(e.slice(0,e.length-s.length));return isNaN(i)?0:(i=i/n,i%1===0?o(i):0)}}return t}function It(e,t){let s=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const o in t)s+=" "+o+'="'+t[o]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+s+">"+e+"</svg>"}function kt(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function St(e){return"data:image/svg+xml,"+kt(e)}function Tt(e){return'url("'+St(e)+'")'}const se={...pe,inline:!1},Ct={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Pt={display:"inline-block"},$={"background-color":"currentColor"},ye={"background-color":"transparent"},oe={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},ie={"-webkit-mask":$,mask:$,background:ye};for(const e in ie){const t=ie[e];for(const s in oe)t[e+"-"+s]=oe[s]}function Et(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}function jt(e,t){const s=bt(se,t),o=t.mode||"svg",n=o==="svg"?{...Ct}:{};e.body.indexOf("xlink:")===-1&&delete n["xmlns:xlink"];let i=typeof t.style=="string"?t.style:"";for(let g in t){const a=t[g];if(a!==void 0)switch(g){case"icon":case"style":case"onLoad":case"mode":case"ssr":break;case"inline":case"hFlip":case"vFlip":s[g]=a===!0||a==="true"||a===1;break;case"flip":typeof a=="string"&&vt(s,a);break;case"color":i=i+(i.length>0&&i.trim().slice(-1)!==";"?";":"")+"color: "+a+"; ";break;case"rotate":typeof a=="string"?s[g]=wt(a):typeof a=="number"&&(s[g]=a);break;case"ariaHidden":case"aria-hidden":a!==!0&&a!=="true"&&delete n["aria-hidden"];break;default:if(g.slice(0,3)==="on:")break;se[g]===void 0&&(n[g]=a)}}const r=Be(e,s),c=r.attributes;if(s.inline&&(i="vertical-align: -0.125em; "+i),o==="svg"){Object.assign(n,c),i!==""&&(n.style=i);let g=0,a=t.id;return typeof a=="string"&&(a=a.replace(/-/g,"_")),{svg:!0,attributes:n,body:We(r.body,a?()=>a+"ID"+g++:"iconifySvelte")}}const{body:l,width:f,height:u}=e,d=o==="mask"||(o==="bg"?!1:l.indexOf("currentColor")!==-1),p=It(l,{...c,width:f+"",height:u+""}),b={"--svg":Tt(p)},I=g=>{const a=c[g];a&&(b[g]=Et(a))};I("width"),I("height"),Object.assign(b,Pt,d?$:ye);let m="";for(const g in b)m+=g+": "+b[g]+";";return n.style=m+i,{svg:!1,attributes:n}}de(!0);Je("",ot);if(typeof document<"u"&&typeof window<"u"){const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,s="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!Re(o))&&console.error(s)}catch{console.error(s)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let s in t){const o="IconifyProviders["+s+"] is invalid.";try{const n=t[s];if(typeof n!="object"||!n||n.resources===void 0)continue;Xe(s,n)||console.error(o)}catch{console.error(o)}}}}function At(e,t,s,o,n){function i(){t.loading&&(t.loading.abort(),t.loading=null)}if(typeof e=="object"&&e!==null&&typeof e.body=="string")return t.name="",i(),{data:{...L,...e}};let r;if(typeof e!="string"||(r=_(e,!1,!0))===null)return i(),null;const c=Ne(r);if(!c)return s&&(!t.loading||t.loading.name!==e)&&(i(),t.name="",t.loading={name:e,abort:yt([r],o)}),null;i(),t.name!==e&&(t.name=e,n&&!t.destroyed&&n(e));const l=["iconify"];return r.prefix!==""&&l.push("iconify--"+r.prefix),r.provider!==""&&l.push("iconify--"+r.provider),{data:c,classes:l}}function _t(e,t){return e?jt({...L,...e},t):null}export{At as c,_t as g,Ot as i};
|