@unocss/runtime 0.62.4 → 0.63.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/attributify.global.js +8 -8
- package/core.global.js +2 -2
- package/full.global.js +8 -8
- package/mini.global.js +8 -8
- package/package.json +4 -4
- package/preset-icons.global.js +4 -4
- package/preset-mini.global.js +2 -2
- package/preset-uno.global.js +2 -2
- package/preset-web-fonts.global.js +34 -2
- package/preset-wind.global.js +2 -2
- package/uno.global.js +8 -8
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/runtime",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.63.0",
|
|
5
5
|
"description": "CSS-in-JS Runtime for UnoCSS",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"dist"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@unocss/core": "0.
|
|
39
|
-
"@unocss/preset-
|
|
40
|
-
"@unocss/preset-
|
|
38
|
+
"@unocss/core": "0.63.0",
|
|
39
|
+
"@unocss/preset-attributify": "0.63.0",
|
|
40
|
+
"@unocss/preset-uno": "0.63.0"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"build": "pnpm run build:node && pnpm run build:cdn && pnpm run build:presets",
|
package/preset-icons.global.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";(()=>{var Ye=Object.create;var ge=Object.defineProperty;var Xe=Object.getOwnPropertyDescriptor;var Qe=Object.getOwnPropertyNames;var et=Object.getPrototypeOf,tt=Object.prototype.hasOwnProperty;var G=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(o,t)=>(typeof require<"u"?require:o)[t]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var F=(e,o)=>()=>(e&&(o=e(e=0)),o);var T=(e,o)=>()=>(o||e((o={exports:{}}).exports,o),o.exports);var ot=(e,o,t,n)=>{if(o&&typeof o=="object"||typeof o=="function")for(let r of Qe(o))!tt.call(e,r)&&r!==t&&ge(e,r,{get:()=>o[r],enumerable:!(n=Xe(o,r))||n.enumerable});return e};var q=(e,o,t)=>(t=e!=null?Ye(et(e)):{},ot(o||!e||!e.__esModule?ge(t,"default",{value:e,enumerable:!0}):t,e));var rt,z,ee,he,B=F(()=>{"use strict";rt=Object.freeze({left:0,top:0,width:16,height:16}),z=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),ee=Object.freeze({...rt,...z}),he=Object.freeze({...ee,body:"",hidden:!1})});var nt,W,te=F(()=>{"use strict";B();nt=Object.freeze({width:null,height:null}),W=Object.freeze({...nt,...z})});function Ce(e,o){let t={};!e.hFlip!=!o.hFlip&&(t.hFlip=!0),!e.vFlip!=!o.vFlip&&(t.vFlip=!0);let n=((e.rotate||0)+(o.rotate||0))%4;return n&&(t.rotate=n),t}var we=F(()=>{"use strict"});function oe(e,o){let t=Ce(e,o);for(let n in he)n in z?n in e&&!(n in t)&&(t[n]=z[n]):n in o?t[n]=o[n]:n in e&&(t[n]=e[n]);return t}var xe=F(()=>{"use strict";B();we()});function ye(e,o){let t=e.icons,n=e.aliases||Object.create(null),r=Object.create(null);function s(a){if(t[a])return r[a]=[];if(!(a in r)){r[a]=null;let f=n[a]&&n[a].parent,m=f&&s(f);m&&(r[a]=[f].concat(m))}return r[a]}return(o||Object.keys(t).concat(Object.keys(n))).forEach(s),r}var be=F(()=>{"use strict"});function Ie(e,o,t){let n=e.icons,r=e.aliases||Object.create(null),s={};function a(f){s=oe(n[f]||r[f],s)}return a(o),t.forEach(a),oe(e,s)}function Fe(e,o){if(e.icons[o])return Ie(e,o,[]);let t=ye(e,[o])[o];return t?Ie(e,o,t):null}var ve=F(()=>{"use strict";xe();be()});function $(e,o,t){if(o===1)return e;if(t=t||100,typeof e=="number")return Math.ceil(e*o*t)/t;if(typeof e!="string")return e;let n=e.split(it);if(n===null||!n.length)return e;let r=[],s=n.shift(),a=st.test(s);for(;;){if(a){let f=parseFloat(s);isNaN(f)?r.push(s):r.push(Math.ceil(f*o*t)/t)}else r.push(s);if(s=n.shift(),s===void 0)return r.join("");a=!a}}var it,st,K=F(()=>{"use strict";it=/(-?[0-9.]*[0-9]+[0-9.]*)/g,st=/^-?[0-9.]*[0-9]+[0-9.]*$/g});function ct(e,o="defs"){let t="",n=e.indexOf("<"+o);for(;n>=0;){let r=e.indexOf(">",n),s=e.indexOf("</"+o);if(r===-1||s===-1)break;let a=e.indexOf(">",s);if(a===-1)break;t+=e.slice(r+1,s).trim(),e=e.slice(0,n).trim()+e.slice(a+1)}return{defs:t,content:e}}function at(e,o){return e?"<defs>"+e+"</defs>"+o:o}function Se(e,o,t){let n=ct(e);return at(n.defs,o+n.content+t)}var Oe=F(()=>{"use strict"});function je(e,o){let t={...ee,...e},n={...W,...o},r={left:t.left,top:t.top,width:t.width,height:t.height},s=t.body;[t,n].forEach(u=>{let c=[],y=u.hFlip,b=u.vFlip,d=u.rotate;y?b?d+=2:(c.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),c.push("scale(-1 1)"),r.top=r.left=0):b&&(c.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),c.push("scale(1 -1)"),r.top=r.left=0);let g;switch(d<0&&(d-=Math.floor(d/4)*4),d=d%4,d){case 1:g=r.height/2+r.top,c.unshift("rotate(90 "+g.toString()+" "+g.toString()+")");break;case 2:c.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:g=r.width/2+r.left,c.unshift("rotate(-90 "+g.toString()+" "+g.toString()+")");break}d%2===1&&(r.left!==r.top&&(g=r.left,r.left=r.top,r.top=g),r.width!==r.height&&(g=r.width,r.width=r.height,r.height=g)),c.length&&(s=Se(s,'<g transform="'+c.join(" ")+'">',"</g>"))});let a=n.width,f=n.height,m=r.width,h=r.height,i,l;a===null?(l=f===null?"1em":f==="auto"?h:f,i=$(l,m/h)):(i=a==="auto"?m:a,l=f===null?$(i,h/m):f==="auto"?h:f);let p={},x=(u,c)=>{D(c)||(p[u]=c.toString())};x("width",i),x("height",l);let I=[r.left,r.top,m,h];return p.viewBox=I.join(" "),{attributes:p,viewBox:I,body:s}}var D,re=F(()=>{"use strict";B();te();K();Oe();D=e=>e==="unset"||e==="undefined"||e==="none"});function Te(e){return e.replace(/(['"])\s*\n\s*([^>\\/\s])/g,"$1 $2").replace(/(["';{}><])\s*\n\s*/g,"$1").replace(/\s*\n\s*/g," ").replace(/\s+"/g,'"').replace(/="\s+/g,'="').replace(/(\s)+\/>/g,"/>").trim()}var $e=F(()=>{"use strict"});function ft(e,o,t){let n=e.slice(0,e.indexOf(">")),r=(s,a)=>{let f=a.exec(n),m=f!=null,h=o[s];return!h&&!D(h)&&(typeof t=="number"?t>0&&(o[s]=$(f?.[1]??"1em",t)):f&&(o[s]=f[1])),m};return[r("width",lt),r("height",ut)]}async function H(e,o,t,n,r,s){let{scale:a,addXmlNs:f=!1}=n??{},{additionalProps:m={},iconCustomizer:h}=n?.customizations??{},i=await r?.()??{};await h?.(o,t,i),Object.keys(m).forEach(u=>{let c=m[u];c!=null&&(i[u]=c)}),s?.(i);let[l,p]=ft(e,i,a);f&&(!e.includes("xmlns=")&&!i.xmlns&&(i.xmlns="http://www.w3.org/2000/svg"),!e.includes("xmlns:xlink=")&&e.includes("xlink:")&&!i["xmlns:xlink"]&&(i["xmlns:xlink"]="http://www.w3.org/1999/xlink"));let x=Object.keys(i).map(u=>u==="width"&&l||u==="height"&&p?null:`${u}="${i[u]}"`).filter(u=>u!=null);if(x.length&&(e=e.replace(ne,`<svg ${x.join(" ")} `)),n){let{defaultStyle:u,defaultClass:c}=n;c&&!e.includes("class=")&&(e=e.replace(ne,`<svg class="${c}" `)),u&&!e.includes("style=")&&(e=e.replace(ne,`<svg style="${u}" `))}let I=n?.usedProps;return I&&(Object.keys(m).forEach(u=>{let c=i[u];c!=null&&(I[u]=c)}),typeof i.width<"u"&&i.width!==null&&(I.width=i.width),typeof i.height<"u"&&i.height!==null&&(I.height=i.height)),e}var lt,ut,ne,ie=F(()=>{"use strict";re();K();lt=/\swidth\s*=\s*["']([\w.]+)["']/,ut=/\sheight\s*=\s*["']([\w.]+)["']/,ne=/<svg\s+/});var Le=T((fo,Re)=>{"use strict";var P=1e3,_=P*60,N=_*60,R=N*24,pt=R*7,mt=R*365.25;Re.exports=function(e,o){o=o||{};var t=typeof e;if(t==="string"&&e.length>0)return dt(e);if(t==="number"&&isFinite(e))return o.long?ht(e):gt(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function dt(e){if(e=String(e),!(e.length>100)){var o=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(o){var t=parseFloat(o[1]),n=(o[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return t*mt;case"weeks":case"week":case"w":return t*pt;case"days":case"day":case"d":return t*R;case"hours":case"hour":case"hrs":case"hr":case"h":return t*N;case"minutes":case"minute":case"mins":case"min":case"m":return t*_;case"seconds":case"second":case"secs":case"sec":case"s":return t*P;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}function gt(e){var o=Math.abs(e);return o>=R?Math.round(e/R)+"d":o>=N?Math.round(e/N)+"h":o>=_?Math.round(e/_)+"m":o>=P?Math.round(e/P)+"s":e+"ms"}function ht(e){var o=Math.abs(e);return o>=R?J(e,o,R,"day"):o>=N?J(e,o,N,"hour"):o>=_?J(e,o,_,"minute"):o>=P?J(e,o,P,"second"):e+" ms"}function J(e,o,t,n){var r=o>=t*1.5;return Math.round(e/t)+" "+n+(r?"s":"")}});var se=T((po,Ae)=>{"use strict";function Ct(e){t.debug=t,t.default=t,t.coerce=m,t.disable=s,t.enable=r,t.enabled=a,t.humanize=Le(),t.destroy=h,Object.keys(e).forEach(i=>{t[i]=e[i]}),t.names=[],t.skips=[],t.formatters={};function o(i){let l=0;for(let p=0;p<i.length;p++)l=(l<<5)-l+i.charCodeAt(p),l|=0;return t.colors[Math.abs(l)%t.colors.length]}t.selectColor=o;function t(i){let l,p=null,x,I;function u(...c){if(!u.enabled)return;let y=u,b=Number(new Date),d=b-(l||b);y.diff=d,y.prev=l,y.curr=b,l=b,c[0]=t.coerce(c[0]),typeof c[0]!="string"&&c.unshift("%O");let g=0;c[0]=c[0].replace(/%([a-zA-Z%])/g,(O,j)=>{if(O==="%%")return"%";g++;let k=t.formatters[j];if(typeof k=="function"){let A=c[g];O=k.call(y,A),c.splice(g,1),g--}return O}),t.formatArgs.call(y,c),(y.log||t.log).apply(y,c)}return u.namespace=i,u.useColors=t.useColors(),u.color=t.selectColor(i),u.extend=n,u.destroy=t.destroy,Object.defineProperty(u,"enabled",{enumerable:!0,configurable:!1,get:()=>p!==null?p:(x!==t.namespaces&&(x=t.namespaces,I=t.enabled(i)),I),set:c=>{p=c}}),typeof t.init=="function"&&t.init(u),u}function n(i,l){let p=t(this.namespace+(typeof l>"u"?":":l)+i);return p.log=this.log,p}function r(i){t.save(i),t.namespaces=i,t.names=[],t.skips=[];let l,p=(typeof i=="string"?i:"").split(/[\s,]+/),x=p.length;for(l=0;l<x;l++)p[l]&&(i=p[l].replace(/\*/g,".*?"),i[0]==="-"?t.skips.push(new RegExp("^"+i.slice(1)+"$")):t.names.push(new RegExp("^"+i+"$")))}function s(){let i=[...t.names.map(f),...t.skips.map(f).map(l=>"-"+l)].join(",");return t.enable(""),i}function a(i){if(i[i.length-1]==="*")return!0;let l,p;for(l=0,p=t.skips.length;l<p;l++)if(t.skips[l].test(i))return!1;for(l=0,p=t.names.length;l<p;l++)if(t.names[l].test(i))return!0;return!1}function f(i){return i.toString().substring(2,i.toString().length-2).replace(/\.\*\?$/,"*")}function m(i){return i instanceof Error?i.stack||i.message:i}function h(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return t.enable(t.load()),t}Ae.exports=Ct});var ze=T((v,Z)=>{"use strict";v.formatArgs=xt;v.save=yt;v.load=bt;v.useColors=wt;v.storage=It();v.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();v.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function wt(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function xt(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+Z.exports.humanize(this.diff),!this.useColors)return;let o="color: "+this.color;e.splice(1,0,o,"color: inherit");let t=0,n=0;e[0].replace(/%[a-zA-Z%]/g,r=>{r!=="%%"&&(t++,r==="%c"&&(n=t))}),e.splice(n,0,o)}v.log=console.debug||console.log||(()=>{});function yt(e){try{e?v.storage.setItem("debug",e):v.storage.removeItem("debug")}catch{}}function bt(){let e;try{e=v.storage.getItem("debug")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function It(){try{return localStorage}catch{}}Z.exports=se()(v);var{formatters:Ft}=Z.exports;Ft.j=function(e){try{return JSON.stringify(e)}catch(o){return"[UnexpectedJSONParseError]: "+o.message}}});var _e=T((mo,Pe)=>{"use strict";Pe.exports=(e,o=process.argv)=>{let t=e.startsWith("-")?"":e.length===1?"-":"--",n=o.indexOf(t+e),r=o.indexOf("--");return n!==-1&&(r===-1||n<r)}});var Me=T((go,De)=>{"use strict";var vt=G("os"),Ne=G("tty"),S=_e(),{env:C}=process,E;S("no-color")||S("no-colors")||S("color=false")||S("color=never")?E=0:(S("color")||S("colors")||S("color=true")||S("color=always"))&&(E=1);"FORCE_COLOR"in C&&(C.FORCE_COLOR==="true"?E=1:C.FORCE_COLOR==="false"?E=0:E=C.FORCE_COLOR.length===0?1:Math.min(parseInt(C.FORCE_COLOR,10),3));function ce(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function ae(e,o){if(E===0)return 0;if(S("color=16m")||S("color=full")||S("color=truecolor"))return 3;if(S("color=256"))return 2;if(e&&!o&&E===void 0)return 0;let t=E||0;if(C.TERM==="dumb")return t;if(process.platform==="win32"){let n=vt.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in C)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in C)||C.CI_NAME==="codeship"?1:t;if("TEAMCITY_VERSION"in C)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(C.TEAMCITY_VERSION)?1:0;if(C.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in C){let n=parseInt((C.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(C.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(C.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(C.TERM)||"COLORTERM"in C?1:t}function St(e){let o=ae(e,e&&e.isTTY);return ce(o)}De.exports={supportsColor:St,stdout:ce(ae(!0,Ne.isatty(1))),stderr:ce(ae(!0,Ne.isatty(2)))}});var Ue=T((w,X)=>{"use strict";var Ot=G("tty"),Y=G("util");w.init=Lt;w.log=Tt;w.formatArgs=Et;w.save=$t;w.load=Rt;w.useColors=jt;w.destroy=Y.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");w.colors=[6,2,3,4,5,1];try{let e=Me();e&&(e.stderr||e).level>=2&&(w.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}w.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,o)=>{let t=o.substring(6).toLowerCase().replace(/_([a-z])/g,(r,s)=>s.toUpperCase()),n=process.env[o];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),e[t]=n,e},{});function jt(){return"colors"in w.inspectOpts?!!w.inspectOpts.colors:Ot.isatty(process.stderr.fd)}function Et(e){let{namespace:o,useColors:t}=this;if(t){let n=this.color,r="\x1B[3"+(n<8?n:"8;5;"+n),s=` ${r};1m${o} \x1B[0m`;e[0]=s+e[0].split(`
|
|
1
|
+
"use strict";(()=>{var Je=Object.create;var pe=Object.defineProperty;var Ze=Object.getOwnPropertyDescriptor;var Ye=Object.getOwnPropertyNames;var Xe=Object.getPrototypeOf,Qe=Object.prototype.hasOwnProperty;var U=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(o,t)=>(typeof require<"u"?require:o)[t]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var v=(e,o)=>()=>(e&&(o=e(e=0)),o);var E=(e,o)=>()=>(o||e((o={exports:{}}).exports,o),o.exports);var et=(e,o,t,n)=>{if(o&&typeof o=="object"||typeof o=="function")for(let r of Ye(o))!Qe.call(e,r)&&r!==t&&pe(e,r,{get:()=>o[r],enumerable:!(n=Ze(o,r))||n.enumerable});return e};var V=(e,o,t)=>(t=e!=null?Je(Xe(e)):{},et(o||!e||!e.__esModule?pe(t,"default",{value:e,enumerable:!0}):t,e));var tt,L,X,me,G=v(()=>{"use strict";tt=Object.freeze({left:0,top:0,width:16,height:16}),L=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),X=Object.freeze({...tt,...L}),me=Object.freeze({...X,body:"",hidden:!1})});var ot,q,Q=v(()=>{"use strict";G();ot=Object.freeze({width:null,height:null}),q=Object.freeze({...ot,...L})});function de(e,o){let t={};!e.hFlip!=!o.hFlip&&(t.hFlip=!0),!e.vFlip!=!o.vFlip&&(t.vFlip=!0);let n=((e.rotate||0)+(o.rotate||0))%4;return n&&(t.rotate=n),t}var ge=v(()=>{"use strict"});function ee(e,o){let t=de(e,o);for(let n in me)n in L?n in e&&!(n in t)&&(t[n]=L[n]):n in o?t[n]=o[n]:n in e&&(t[n]=e[n]);return t}var he=v(()=>{"use strict";G();ge()});function Ce(e,o){let t=e.icons,n=e.aliases||Object.create(null),r=Object.create(null);function i(c){if(t[c])return r[c]=[];if(!(c in r)){r[c]=null;let a=n[c]&&n[c].parent,m=a&&i(a);m&&(r[c]=[a].concat(m))}return r[c]}return(o||Object.keys(t).concat(Object.keys(n))).forEach(i),r}var we=v(()=>{"use strict"});function xe(e,o,t){let n=e.icons,r=e.aliases||Object.create(null),i={};function c(a){i=ee(n[a]||r[a],i)}return c(o),t.forEach(c),ee(e,i)}function ye(e,o){if(e.icons[o])return xe(e,o,[]);let t=Ce(e,[o])[o];return t?xe(e,o,t):null}var be=v(()=>{"use strict";he();we()});function k(e,o,t){if(o===1)return e;if(t=t||100,typeof e=="number")return Math.ceil(e*o*t)/t;if(typeof e!="string")return e;let n=e.split(rt);if(n===null||!n.length)return e;let r=[],i=n.shift(),c=nt.test(i);for(;;){if(c){let a=parseFloat(i);isNaN(a)?r.push(i):r.push(Math.ceil(a*o*t)/t)}else r.push(i);if(i=n.shift(),i===void 0)return r.join("");c=!c}}var rt,nt,B=v(()=>{"use strict";rt=/(-?[0-9.]*[0-9]+[0-9.]*)/g,nt=/^-?[0-9.]*[0-9]+[0-9.]*$/g});function it(e,o="defs"){let t="",n=e.indexOf("<"+o);for(;n>=0;){let r=e.indexOf(">",n),i=e.indexOf("</"+o);if(r===-1||i===-1)break;let c=e.indexOf(">",i);if(c===-1)break;t+=e.slice(r+1,i).trim(),e=e.slice(0,n).trim()+e.slice(c+1)}return{defs:t,content:e}}function st(e,o){return e?"<defs>"+e+"</defs>"+o:o}function Ie(e,o,t){let n=it(e);return st(n.defs,o+n.content+t)}var ve=v(()=>{"use strict"});function Fe(e,o){let t={...X,...e},n={...q,...o},r={left:t.left,top:t.top,width:t.width,height:t.height},i=t.body;[t,n].forEach(f=>{let l=[],y=f.hFlip,b=f.vFlip,h=f.rotate;y?b?h+=2:(l.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),l.push("scale(-1 1)"),r.top=r.left=0):b&&(l.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),l.push("scale(1 -1)"),r.top=r.left=0);let d;switch(h<0&&(h-=Math.floor(h/4)*4),h=h%4,h){case 1:d=r.height/2+r.top,l.unshift("rotate(90 "+d.toString()+" "+d.toString()+")");break;case 2:l.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:d=r.width/2+r.left,l.unshift("rotate(-90 "+d.toString()+" "+d.toString()+")");break}h%2===1&&(r.left!==r.top&&(d=r.left,r.left=r.top,r.top=d),r.width!==r.height&&(d=r.width,r.width=r.height,r.height=d)),l.length&&(i=Ie(i,'<g transform="'+l.join(" ")+'">',"</g>"))});let c=n.width,a=n.height,m=r.width,g=r.height,s,u;c===null?(u=a===null?"1em":a==="auto"?g:a,s=k(u,m/g)):(s=c==="auto"?m:c,u=a===null?k(s,g/m):a==="auto"?g:a);let p={},x=(f,l)=>{_(l)||(p[f]=l.toString())};x("width",s),x("height",u);let I=[r.left,r.top,m,g];return p.viewBox=I.join(" "),{attributes:p,viewBox:I,body:i}}var _,te=v(()=>{"use strict";G();Q();B();ve();_=e=>e==="unset"||e==="undefined"||e==="none"});function Oe(e){return e.replace(/(['"])\s*\n\s*([^>\\/\s])/g,"$1 $2").replace(/(["';{}><])\s*\n\s*/g,"$1").replace(/\s*\n\s*/g," ").replace(/\s+"/g,'"').replace(/="\s+/g,'="').replace(/(\s)+\/>/g,"/>").trim()}var je=v(()=>{"use strict"});function lt(e,o,t){let n=e.slice(0,e.indexOf(">")),r=(i,c)=>{let a=c.exec(n),m=a!=null,g=o[i];return!g&&!_(g)&&(typeof t=="number"?t>0&&(o[i]=k(a?.[1]??"1em",t)):a&&(o[i]=a[1])),m};return[r("width",ct),r("height",at)]}async function W(e,o,t,n,r,i){let{scale:c,addXmlNs:a=!1}=n??{},{additionalProps:m={},iconCustomizer:g}=n?.customizations??{},s=await r?.()??{};await g?.(o,t,s),Object.keys(m).forEach(f=>{let l=m[f];l!=null&&(s[f]=l)}),i?.(s);let[u,p]=lt(e,s,c);a&&(!e.includes("xmlns=")&&!s.xmlns&&(s.xmlns="http://www.w3.org/2000/svg"),!e.includes("xmlns:xlink=")&&e.includes("xlink:")&&!s["xmlns:xlink"]&&(s["xmlns:xlink"]="http://www.w3.org/1999/xlink"));let x=Object.keys(s).map(f=>f==="width"&&u||f==="height"&&p?null:`${f}="${s[f]}"`).filter(f=>f!=null);if(x.length&&(e=e.replace(re,`<svg ${x.join(" ")} `)),n){let{defaultStyle:f,defaultClass:l}=n;l&&!e.includes("class=")&&(e=e.replace(re,`<svg class="${l}" `)),f&&!e.includes("style=")&&(e=e.replace(re,`<svg style="${f}" `))}let I=n?.usedProps;return I&&(Object.keys(m).forEach(f=>{let l=s[f];l!=null&&(I[f]=l)}),typeof s.width<"u"&&s.width!==null&&(I.width=s.width),typeof s.height<"u"&&s.height!==null&&(I.height=s.height)),e}var ct,at,re,ne=v(()=>{"use strict";te();B();ct=/\swidth\s*=\s*["']([\w.]+)["']/,at=/\sheight\s*=\s*["']([\w.]+)["']/,re=/<svg\s+/});var ke=E((lo,Ee)=>{"use strict";var R=1e3,A=R*60,P=A*60,T=P*24,ut=T*7,ft=T*365.25;Ee.exports=function(e,o){o=o||{};var t=typeof e;if(t==="string"&&e.length>0)return pt(e);if(t==="number"&&isFinite(e))return o.long?dt(e):mt(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function pt(e){if(e=String(e),!(e.length>100)){var o=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(o){var t=parseFloat(o[1]),n=(o[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return t*ft;case"weeks":case"week":case"w":return t*ut;case"days":case"day":case"d":return t*T;case"hours":case"hour":case"hrs":case"hr":case"h":return t*P;case"minutes":case"minute":case"mins":case"min":case"m":return t*A;case"seconds":case"second":case"secs":case"sec":case"s":return t*R;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}function mt(e){var o=Math.abs(e);return o>=T?Math.round(e/T)+"d":o>=P?Math.round(e/P)+"h":o>=A?Math.round(e/A)+"m":o>=R?Math.round(e/R)+"s":e+"ms"}function dt(e){var o=Math.abs(e);return o>=T?K(e,o,T,"day"):o>=P?K(e,o,P,"hour"):o>=A?K(e,o,A,"minute"):o>=R?K(e,o,R,"second"):e+" ms"}function K(e,o,t,n){var r=o>=t*1.5;return Math.round(e/t)+" "+n+(r?"s":"")}});var ie=E((uo,Te)=>{"use strict";function gt(e){t.debug=t,t.default=t,t.coerce=m,t.disable=i,t.enable=r,t.enabled=c,t.humanize=ke(),t.destroy=g,Object.keys(e).forEach(s=>{t[s]=e[s]}),t.names=[],t.skips=[],t.formatters={};function o(s){let u=0;for(let p=0;p<s.length;p++)u=(u<<5)-u+s.charCodeAt(p),u|=0;return t.colors[Math.abs(u)%t.colors.length]}t.selectColor=o;function t(s){let u,p=null,x,I;function f(...l){if(!f.enabled)return;let y=f,b=Number(new Date),h=b-(u||b);y.diff=h,y.prev=u,y.curr=b,u=b,l[0]=t.coerce(l[0]),typeof l[0]!="string"&&l.unshift("%O");let d=0;l[0]=l[0].replace(/%([a-zA-Z%])/g,(O,$)=>{if(O==="%%")return"%";d++;let z=t.formatters[$];if(typeof z=="function"){let He=l[d];O=z.call(y,He),l.splice(d,1),d--}return O}),t.formatArgs.call(y,l),(y.log||t.log).apply(y,l)}return f.namespace=s,f.useColors=t.useColors(),f.color=t.selectColor(s),f.extend=n,f.destroy=t.destroy,Object.defineProperty(f,"enabled",{enumerable:!0,configurable:!1,get:()=>p!==null?p:(x!==t.namespaces&&(x=t.namespaces,I=t.enabled(s)),I),set:l=>{p=l}}),typeof t.init=="function"&&t.init(f),f}function n(s,u){let p=t(this.namespace+(typeof u>"u"?":":u)+s);return p.log=this.log,p}function r(s){t.save(s),t.namespaces=s,t.names=[],t.skips=[];let u,p=(typeof s=="string"?s:"").split(/[\s,]+/),x=p.length;for(u=0;u<x;u++)p[u]&&(s=p[u].replace(/\*/g,".*?"),s[0]==="-"?t.skips.push(new RegExp("^"+s.slice(1)+"$")):t.names.push(new RegExp("^"+s+"$")))}function i(){let s=[...t.names.map(a),...t.skips.map(a).map(u=>"-"+u)].join(",");return t.enable(""),s}function c(s){if(s[s.length-1]==="*")return!0;let u,p;for(u=0,p=t.skips.length;u<p;u++)if(t.skips[u].test(s))return!1;for(u=0,p=t.names.length;u<p;u++)if(t.names[u].test(s))return!0;return!1}function a(s){return s.toString().substring(2,s.toString().length-2).replace(/\.\*\?$/,"*")}function m(s){return s instanceof Error?s.stack||s.message:s}function g(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return t.enable(t.load()),t}Te.exports=gt});var $e=E((F,H)=>{"use strict";F.formatArgs=Ct;F.save=wt;F.load=xt;F.useColors=ht;F.storage=yt();F.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();F.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function ht(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function Ct(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+H.exports.humanize(this.diff),!this.useColors)return;let o="color: "+this.color;e.splice(1,0,o,"color: inherit");let t=0,n=0;e[0].replace(/%[a-zA-Z%]/g,r=>{r!=="%%"&&(t++,r==="%c"&&(n=t))}),e.splice(n,0,o)}F.log=console.debug||console.log||(()=>{});function wt(e){try{e?F.storage.setItem("debug",e):F.storage.removeItem("debug")}catch{}}function xt(){let e;try{e=F.storage.getItem("debug")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function yt(){try{return localStorage}catch{}}H.exports=ie()(F);var{formatters:bt}=H.exports;bt.j=function(e){try{return JSON.stringify(e)}catch(o){return"[UnexpectedJSONParseError]: "+o.message}}});var Re=E((fo,Le)=>{"use strict";Le.exports=(e,o=process.argv)=>{let t=e.startsWith("-")?"":e.length===1?"-":"--",n=o.indexOf(t+e),r=o.indexOf("--");return n!==-1&&(r===-1||n<r)}});var ze=E((po,Pe)=>{"use strict";var It=U("os"),Ae=U("tty"),S=Re(),{env:C}=process,j;S("no-color")||S("no-colors")||S("color=false")||S("color=never")?j=0:(S("color")||S("colors")||S("color=true")||S("color=always"))&&(j=1);"FORCE_COLOR"in C&&(C.FORCE_COLOR==="true"?j=1:C.FORCE_COLOR==="false"?j=0:j=C.FORCE_COLOR.length===0?1:Math.min(parseInt(C.FORCE_COLOR,10),3));function se(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function ce(e,o){if(j===0)return 0;if(S("color=16m")||S("color=full")||S("color=truecolor"))return 3;if(S("color=256"))return 2;if(e&&!o&&j===void 0)return 0;let t=j||0;if(C.TERM==="dumb")return t;if(process.platform==="win32"){let n=It.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in C)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in C)||C.CI_NAME==="codeship"?1:t;if("TEAMCITY_VERSION"in C)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(C.TEAMCITY_VERSION)?1:0;if(C.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in C){let n=parseInt((C.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(C.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(C.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(C.TERM)||"COLORTERM"in C?1:t}function vt(e){let o=ce(e,e&&e.isTTY);return se(o)}Pe.exports={supportsColor:vt,stdout:se(ce(!0,Ae.isatty(1))),stderr:se(ce(!0,Ae.isatty(2)))}});var Ne=E((w,Z)=>{"use strict";var Ft=U("tty"),J=U("util");w.init=$t;w.log=Et;w.formatArgs=Ot;w.save=kt;w.load=Tt;w.useColors=St;w.destroy=J.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");w.colors=[6,2,3,4,5,1];try{let e=ze();e&&(e.stderr||e).level>=2&&(w.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}w.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,o)=>{let t=o.substring(6).toLowerCase().replace(/_([a-z])/g,(r,i)=>i.toUpperCase()),n=process.env[o];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),e[t]=n,e},{});function St(){return"colors"in w.inspectOpts?!!w.inspectOpts.colors:Ft.isatty(process.stderr.fd)}function Ot(e){let{namespace:o,useColors:t}=this;if(t){let n=this.color,r="\x1B[3"+(n<8?n:"8;5;"+n),i=` ${r};1m${o} \x1B[0m`;e[0]=i+e[0].split(`
|
|
2
2
|
`).join(`
|
|
3
|
-
`+
|
|
4
|
-
`)}function
|
|
5
|
-
`).map(o=>o.trim()).join(" ")};
|
|
3
|
+
`+i),e.push(r+"m+"+Z.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=jt()+o+" "+e[0]}function jt(){return w.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Et(...e){return process.stderr.write(J.formatWithOptions(w.inspectOpts,...e)+`
|
|
4
|
+
`)}function kt(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function Tt(){return process.env.DEBUG}function $t(e){e.inspectOpts={};let o=Object.keys(w.inspectOpts);for(let t=0;t<o.length;t++)e.inspectOpts[o[t]]=w.inspectOpts[o[t]]}Z.exports=ie()(w);var{formatters:_e}=Z.exports;_e.o=function(e){return this.inspectOpts.colors=this.useColors,J.inspect(e,this.inspectOpts).split(`
|
|
5
|
+
`).map(o=>o.trim()).join(" ")};_e.O=function(e){return this.inspectOpts.colors=this.useColors,J.inspect(e,this.inspectOpts)}});var N=E((mo,ae)=>{"use strict";typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?ae.exports=$e():ae.exports=Ne()});async function le(e,o,t,n){let r;Lt(`${o}:${t}`);try{if(typeof e=="function")r=await e(t);else{let i=e[t];r=typeof i=="function"?await i():i}}catch(i){console.warn(`Failed to load custom icon "${t}" in "${o}":`,i);return}if(r){let i=r.indexOf("<svg");i>0&&(r=r.slice(i));let{transform:c}=n?.customizations??{};return r=typeof c=="function"?await c(r,o,t):r,r.startsWith("<svg")?await W(n?.customizations?.trimCustomSvg===!0?Oe(r):r,o,t,n,void 0):(console.warn(`Custom icon "${t}" in "${o}" is not a valid SVG`),r)}}var De,Lt,Me=v(()=>{"use strict";De=V(N(),1);ne();je();Lt=(0,De.default)("@iconify-loader:custom")});async function Y(e,o,t,n){let r,{customize:i}=n?.customizations??{};for(let c of t)if(r=ye(e,c),r){Rt(`${o}:${c}`);let a={...q};typeof i=="function"&&(r=Object.assign({},r),a=i(a,r,`${o}:${c}`)??a);let{attributes:{width:m,height:g,...s},body:u}=Fe(r,a),p=n?.scale;return await W(`<svg >${u}</svg>`,o,c,n,()=>({...s}),x=>{let I=(f,l)=>{let y=x[f],b;if(!_(y)){if(y)return;typeof p=="number"?p&&(b=k(l??"1em",p)):b=l}b?x[f]=b:delete x[f]};I("width",m),I("height",g)})}}var Ue,Rt,ue=v(()=>{"use strict";te();be();B();ne();Ue=V(N(),1);Q();Rt=(0,Ue.default)("@iconify-loader:icon")});var Oo,D,fe=v(()=>{"use strict";Me();ue();Oo=V(N(),1),D=async(e,o,t)=>{let n=t?.customCollections?.[e];if(n)if(typeof n=="function"){let r;try{r=await n(o)}catch(i){console.warn(`Failed to load custom icon "${o}" in "${e}":`,i);return}if(r){if(typeof r=="string")return await le(()=>r,e,o,t);if("icons"in r){let i=[o,o.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),o.replace(/([a-z])(\d+)/g,"$1-$2")];return await Y(r,e,i,t)}}}else return await le(n,e,o,t)}});function Se(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function oe(e){let o=e.startsWith("<svg>")?e.replace("<svg>","<svg >"):e;return!o.includes(" xmlns:xlink=")&&o.includes(" xlink:")&&(o=o.replace("<svg ",'<svg xmlns:xlink="http://www.w3.org/1999/xlink" ')),o.includes(" xmlns=")||(o=o.replace("<svg ",'<svg xmlns="http://www.w3.org/2000/svg" ')),Se(o)}fe();var Eo=V(N(),1);var Ve=new Set;function Ge(e){Ve.has(e)||(console.warn("[unocss]",e),Ve.add(e))}fe();ue();var qe=["academicons","akar-icons","ant-design","arcticons","basil","bi","bitcoin-icons","bpmn","brandico","bx","bxl","bxs","bytesize","carbon","catppuccin","cbi","charm","ci","cib","cif","cil","circle-flags","circum","clarity","codicon","covid","cryptocurrency-color","cryptocurrency","dashicons","devicon-line","devicon-original","devicon-plain","devicon","ei","el","emblemicons","emojione-monotone","emojione-v1","emojione","entypo-social","entypo","eos-icons","ep","et","eva","f7","fa-brands","fa-regular","fa-solid","fa","fa6-brands","fa6-regular","fa6-solid","fad","fe","feather","file-icons","flag","flagpack","flat-color-icons","flat-ui","flowbite","fluent-emoji-flat","fluent-emoji-high-contrast","fluent-emoji","fluent-mdl2","fluent","fontelico","fontisto","formkit","foundation","fxemoji","gala","game-icons","geo","gg","gis","gravity-ui","gridicons","grommet-icons","guidance","healthicons","heroicons-outline","heroicons-solid","heroicons","hugeicons","humbleicons","ic","icomoon-free","icon-park-outline","icon-park-solid","icon-park-twotone","icon-park","iconamoon","iconoir","icons8","il","ion","iwwa","jam","la","lets-icons","line-md","logos","ls","lucide-lab","lucide","mage","majesticons","maki","map","marketeq","material-symbols-light","material-symbols","mdi-light","mdi","medical-icon","memory","meteocons","mi","mingcute","mono-icons","mynaui","nimbus","nonicons","noto-v1","noto","octicon","oi","ooui","openmoji","oui","pajamas","pepicons-pencil","pepicons-pop","pepicons-print","pepicons","ph","pixelarticons","prime","ps","quill","radix-icons","raphael","ri","rivet-icons","si-glyph","simple-icons","simple-line-icons","skill-icons","solar","streamline-emojis","streamline","subway","svg-spinners","system-uicons","tabler","tdesign","teenyicons","token-branded","token","topcoat","twemoji","typcn","uil","uim","uis","uit","uiw","unjs","vaadin","vs","vscode-icons","websymbol","weui","whh","wi","wpf","zmdi","zondicons"];var Pt=3;function We(e){return(o={})=>{let{scale:t=1,mode:n="auto",prefix:r="i-",warn:i=!1,collections:c,extraProperties:a={},customizations:m={},autoInstall:g=!1,collectionsNodeResolvePath:s,layer:u="icons",unit:p,processor:x}=o,I=zt(),f={addXmlNs:!0,scale:t,customCollections:c,autoInstall:g,cwd:s,warn:void 0,customizations:{...m,additionalProps:{...a},trimCustomSvg:!0,async iconCustomizer(y,b,h){await m.iconCustomizer?.(y,b,h),p&&(h.width||(h.width=`${t}${p}`),h.height||(h.height=`${t}${p}`))}}},l;return{name:"@unocss/preset-icons",enforce:"pre",options:o,layers:{icons:-30},api:{encodeSvgForCss:oe,parseIconWithLoader:Be},rules:[[/^([a-z0-9:_-]+)(?:\?(mask|bg|auto))?$/,async y=>{let[b,h,d=n]=y;l=l||await e(o);let M={},O=await Be(h,l,{...f,usedProps:M});if(!O){i&&!I.isESLint&&Ge(`failed to load icon "${b}"`);return}let $,z=`url("data:image/svg+xml;utf8,${oe(O.svg)}")`;return d==="auto"&&(d=O.svg.includes("currentColor")?"mask":"bg"),d==="mask"?$={"--un-icon":z,"-webkit-mask":"var(--un-icon) no-repeat",mask:"var(--un-icon) no-repeat","-webkit-mask-size":"100% 100%","mask-size":"100% 100%","background-color":"currentColor",color:"inherit",...M}:$={background:`${z} no-repeat`,"background-size":"100% 100%","background-color":"transparent",...M},x?.($,{...O,icon:O.name,mode:d}),$},{layer:u,prefix:r}]]}}}function Ke(e,o){let t=new Map;function n(r){if(qe.includes(r))return t.has(r)||t.set(r,e(`${o}@iconify-json/${r}/icons.json`)),t.get(r)}return async(r,i,c)=>{let a=await D(r,i,c);if(a)return a;let m=await n(r);if(m){let g=[i,i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),i.replace(/([a-z])(\d+)/g,"$1-$2")];a=await Y(m,r,g,c)}return a}}function zt(){let e=typeof process<"u"&&process.stdout&&!process.versions.deno,o=e&&!!process.env.VSCODE_CWD,t=e&&!!process.env.ESLINT;return{isNode:e,isVSCode:o,isESLint:t}}async function Be(e,o,t={}){let n="",r="",i;if(e.includes(":"))[n,r]=e.split(":"),i=await o(n,r,t);else{let c=e.split(/-/g);for(let a=Pt;a>=1&&(n=c.slice(0,a).join("-"),r=c.slice(a).join("-"),i=await o(n,r,t),!i);a--);}if(i)return{collection:n,name:r,svg:i}}window.__unocss_runtime=window.__unocss_runtime??{};window.__unocss_runtime.presets=Object.assign(window.__unocss_runtime?.presets??{},(()=>{let e=We(async o=>{let t=o?.customFetch??(r=>fetch(r).then(i=>i.json())),n=o?.cdn;return n?Ke(t,n):D});return{presetIcons:o=>e(o)}})());})();
|