(()=>{"use strict";var t={d:(e,n)=>{for(var c in n)t.o(n,c)&&!t.o(e,c)&&Object.defineProperty(e,c,{enumerable:!0,get:n[c]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{border:()=>N,default:()=>mt,flex:()=>a,media:()=>R,pseudo:()=>C,sketch:()=>W,unocss:()=>I});var n=function(){return n=Object.assign||function(t){for(var e,n=1,c=arguments.length;n/g,"").match(/class=("[\s\S]+?"|'[\s\S]+?')/g))||void 0===n?void 0:n.map((function(t){return t=t.toString().replace(/\s+/g," ").replace(/\?/g," ").replace(/class=/g,"").replace(/['"\[\]\{\}=]/g,"").trim(),e?t.replace(/:/g," "):t}));return c=e?null==c?void 0:c.map((function(t){return t.replace(/:?/g,"").split(/\x20/).map((function(t){return t.toString().trim()}))})).flat().filter(Boolean):null==c?void 0:c.map((function(t){return t.toString().trim()})).filter(Boolean),Array.from(new Set(c))},test:o,toRgb:function(t){var e=t.toString().trim().toLowerCase().replace(/#/g,"");if(!o(e,/^#?[0-9A-Fa-f]+$/)||![3,5,6].includes(e.length))return t;if(3===e.length){for(var n="",c=0;c1&&~c){e.splice(c,0,"full");var i=e[++c].replace("%","");e.splice(c,1,i),r++,n=n.replace(new RegExp(t,"g"),e.join(l.underline))}if(e.length>1&&~a){var s=e.join(l.underline),u=e[a+r-1].replace("!","");e.splice(a+r-1,1,u),e.splice(a+r,0,"important"),r++,n=n.replace(new RegExp(s,"g"),e.join(l.underline))}if(e.length>1&&~o){s=e.join(l.underline);var d=e[o].replace("#","");e.splice(o,1,d),!t.startsWith("color")&&!t.startsWith("bg")&&e.push("color"),r++,n=n.replace(new RegExp(s,"g"),e.join(l.underline))}return e.join(l.underline)})).filter(Boolean);return{code:n,classNames:c}}var u={w:"width",h:"height",m:"margin",b:"border",p:"padding",z:"z-index",op:"opacity",zi:"z-index",of:"overflow",ws:"white-space",lh:"line-height",display:"display",list:"list-style",rd:"border-radius",space:"white-space",table:"table-layout",bg:"background-color",round:"border-radius",letter:"letter-spacing",justify:"justify-content"},d={text:"color",size:"font-size",wrap:"font-wrap",align:"text-align",indent:"text-indent",anchor:"text-anchor",last:"text-align-last",justify:"text-justify",emphasis:"text-emphasis",overflow:"text-overflow",rendering:"text-rendering",transform:"text-transform",decoration:"text-decoration",orientation:"text-orientation",combine:"text-combine-upright",offset:"text-underline-offset",skip:"text-decoration-skip-ink",position:"text-underline-position"},f={style:"font-style",weight:"font-weight",stretch:"font-stretch",synthesis:"font-synthesis"},p={t:"top",l:"left",r:"right",b:"bottom"};const h={full:function(t,e){return"full"===t?e?"".concat(e,"%"):"100%":t},globl_value:["inherit","initial","unset","revert","layer"],return_value:function(t,e,n){var c,a,o=(n||{}).end,r=void 0===o?"":o;return["x","y"].includes(e[1])?((c={})["".concat(u[e[0]],"-").concat("x"===e[1]?p.l:p.t).concat(r)]=t,c["".concat(u[e[0]],"-").concat("x"===e[1]?p.r:p.b).concat(r)]=t,c):((a={})["".concat(1===e.length?u[e]:"".concat(u[e[0]],"-").concat(p[e[1]])).concat(r)]=t,a)}};function m(t){var e=Object.keys(t);return{color:function(e){var n=function(t){for(var e=[],n=t.length-1;n>=0;n--){var c=t.slice(0,n+1).join("-");e.unshift(c)}return e}(e).sort((function(t,e){return+t-+e?1:-1})),c=n.findIndex((function(e){return t[e]})),a=~c?n[c]:e[0],o=e[e.length-1];o=i.number(o)?o:"";var r=function(t){var e=+o/100>1?"1":+o/100<0?"0":+o/100;return o?"rgba(".concat(t,",").concat("color"===o?1:e,")"):"rgb(".concat(t,")")};switch(!0){case!t[a]&&i.test(a,/^([a-zA-Z0-9]{4}|[a-zA-Z0-9]{8})$/):return"#".concat(a);case t[a]&&i.isRgb(t[a]):return r(t[a]);case t[a]:return t[a];default:var l=i.toRgb(a);return i.isRgb(l)?r(l):t[l]||l}},colorString:e.join("|"),colorOpacityString:e.filter((function(e){return i.isRgb(t[e])})).join("|")}}const v=["rpx","px","em","rem","vh","vw","pt","pc","in","mm","cm","svh","lvh","dvh","vmin","vmax","vi","vb","svmin","dvmin","svmax","dvmax","svi","dvi","svb","dvb"];var b="([0-9]{1,7})",g="".concat(b,"(-").concat(b,")?"),y="".concat(b,"(-").concat(b,")?(").concat(v.join("|"),")?"),w="".concat(b,"(.").concat(b,")?"),x="".concat(w,"(").concat(v.join("|"),")?"),k="full(-".concat(w,")?"),_="(-(0|100|[0-9]{0,2}))?";const j={number:b,opacity:_,decimal:w,number_unit:"".concat(b,"(").concat(v.join("|"),")?"),number_hyphen:g,number_hyphen_unit:y,number_decimal_unit:x,number_decimal_unit_full:"(".concat(x,"|").concat(k,")"),color:"(([a-z0-9A-Z]{3}|[a-z0-9A-Z]{6})".concat(_,"|([a-z0-9A-Z]{4}|[a-z0-9A-Z]{8}))")};var A=function(){return A=Object.assign||function(t){for(var e,n=1,c=arguments.length;n1?"1":l<0?"0":"".concat(l),n;default:return v(t,r,i)}},g:function(t){for(var e,n,c=[],a=1;a1&&a.includes(r)?c([o.slice(1).join(l.underline)],r):o.length>2&&(null===(n=t.prefix)||void 0===n?void 0:n.includes(r))&&a.includes(i)&&c([o.slice(2).join(l.underline)],"".concat(r,"-").concat(i))}))}}}}function N(t){var e=void 0===t?{}:t,n=e.width,c=void 0===n?1:n,a=e.style,o=void 0===a?"solid":a,r=e.color,l=void 0===r?"currentColor":r;return function(t){var e=m(t.theme.colors),n=e.color,a=e.colorString,r=e.colorOpacityString,s="".concat(a,"|(").concat(r,")").concat(j.opacity),u=Object.keys(t.theme.breakpoints),d=function(e){var n;return e.slice(Number(t.prefix.includes(e[0]))).slice(Number(null!==(n=u.includes(e[0]))&&void 0!==n?n:u.includes(e[1])))},f="((".concat(t.prefix.join("|"),")-((").concat(u.join("|"),")-)?)?");return{name:"unocss:presets:border",rules:[["^".concat(f,"border-").concat(j.number_unit,"(-([a-z0-9A-Z]+").concat(j.opacity,"(-color)?|").concat(s,"))?(-important)?$"),function(t,e){var c,a,r=d(t),s=t.includes("important")?" !important":"";s&&r.splice(r.length-1,1);var u=r[0],f=r[1],p=r[2];return r[3],p=i.toRgb(p?null!==(a=e[p])&&void 0!==a?a:"#".concat(p):l),p=n(r.slice(2)),(c={})["".concat(u,"-style")]=o,c["".concat(u,"-color")]="".concat(p).concat(s),c["".concat(u,"-width")]="".concat(i.value(f)).concat(s),c}],["^".concat(f,"border-(top|bottom|left|right)-").concat(j.number_unit,"(-([a-z0-9A-Z]+").concat(j.opacity,"(-color)?|").concat(s,"))?(-important)?$"),function(t,e){var c,a,r=d(t),s=t.includes("important")?" !important":"";s&&r.splice(r.length-1,1);var u=r[0],f=r[1],p=r[2],h=r[3];return r[4],h=i.toRgb(h?null!==(a=e[h])&&void 0!==a?a:"#".concat(h):l),h=n(r.slice(3)),(c={})["".concat(u,"-").concat(f,"-style")]=o,c["".concat(u,"-").concat(f,"-color")]="".concat(h).concat(s),c["".concat(u,"-").concat(f,"-width")]="".concat(i.value(p)).concat(s),c}],["^".concat(f,"border-(x|y)-").concat(j.number_unit,"(-([a-z0-9A-Z]+").concat(j.opacity,"(-color)?|").concat(s,"))?(-important)?$"),function(t,e){var c,a,r=d(t),s=t.includes("important")?" !important":"";s&&r.splice(r.length-1,1);var u=r[0],f=r[1],p=r[2],h=r[3],m=(r[4],"x"===f?"left":"top"),v="x"===f?"right":"bottom";return h=i.toRgb(h?null!==(a=e[h])&&void 0!==a?a:"#".concat(h):l),h=n(r.slice(3)),(c={})["".concat(u,"-").concat(m,"-style")]=o,c["".concat(u,"-").concat(v,"-style")]=o,c["".concat(u,"-").concat(m,"-color")]="".concat(h).concat(s),c["".concat(u,"-").concat(v,"-color")]="".concat(h).concat(s),c["".concat(u,"-").concat(m,"-width")]="".concat(i.value(p)).concat(s),c["".concat(u,"-").concat(v,"-width")]="".concat(i.value(p)).concat(s),c}],["^".concat(f,"border-([a-z0-9A-Z]+").concat(j.opacity,"(-color)?|").concat(s,")(-important)?$"),function(t,e){var a,r,s=d(t),u=t.includes("important")?" !important":"";u&&s.splice(s.length-1,1);var f=s[0],p=s[1];return s[2],p=i.toRgb(p?null!==(r=e[p])&&void 0!==r?r:"#".concat(p):l),p=n(s.slice(1)),(a={})["".concat(f,"-style")]=o,a["".concat(f,"-color")]="".concat(p).concat(u),a["".concat(f,"-width")]="".concat(i.value(c.toString())).concat(u),a}],["^".concat(f,"border-(top|bottom|left|right)-([a-z0-9A-Z]+").concat(j.opacity,"(-color)?|").concat(s,")(-important)?$"),function(t,e){var a,r,s=d(t),u=t.includes("important")?" !important":"";u&&s.splice(s.length-1,1);var f=s[0],p=s[1],h=s[2];return s[3],h=i.toRgb(h?null!==(r=e[h])&&void 0!==r?r:"#".concat(h):l),h=n(s.slice(2)),(a={})["".concat(f,"-").concat(p,"-style")]=o,a["".concat(f,"-").concat(p,"-color")]="".concat(h).concat(u),a["".concat(f,"-").concat(p,"-width")]="".concat(i.value(c.toString())).concat(u),a}],["^".concat(f,"border-(x|y)-([a-z0-9A-Z]+").concat(j.opacity,"(-color)?|").concat(s,")(-important)?$"),function(t,e){var a,r,s=d(t),u=t.includes("important")?" !important":"";u&&s.splice(s.length-1,1);var f=s[0],p=s[1],h=s[2],m=(s[3],"x"===p?"left":"top"),v="x"===p?"right":"bottom";return h=i.toRgb(h?null!==(r=e[h])&&void 0!==r?r:"#".concat(h):l),h=n(s.slice(2)),(a={})["".concat(f,"-").concat(m,"-style")]=o,a["".concat(f,"-").concat(v,"-style")]=o,a["".concat(f,"-").concat(m,"-color")]="".concat(h).concat(u),a["".concat(f,"-").concat(v,"-color")]="".concat(h).concat(u),a["".concat(f,"-").concat(m,"-width")]="".concat(i.value(c.toString())).concat(u),a["".concat(f,"-").concat(v,"-width")]="".concat(i.value(c.toString())).concat(u),a}]]}}}function I(){return function(t){return{name:"unocss:presets:default",transform:function(e){var n=s(e,i.className(e).map((function(t){return t.replace(/(.*\(|,|\))/g,"").split(/\x20/)})).flat().filter((function(t){return!/[\(\):]/.test(t)}))),c=z(n.code,n.classNames,t);return t.callback(c.styles,c.notMatchClassNames),c.code}}}}var $=["hover","after","before","placeholder","selection","active","checked","disabled","empty","enabled","focus","visible","within","required"];function C(){return function(t){return{name:"unocss:presets:pseudo",transform:function(e){var n=e;return i.className(e,!1).forEach((function(e){e.includes(":")&&Array.from(new Set(e.match(new RegExp("(".concat($.join("|"),"):(\\(((-?#?[a-z0-9]+(.[0-9]+)?([! %]+)?)+)?\\)|[^ (]+)"),"g")))).sort((function(t,e){return e.length-t.length})).forEach((function(e){var c=new Set([]);if(e.includes("(")){var a=e.split(":")[0],o="";Array.from(new Set(e.match(new RegExp("(-?#?[a-z0-9]+(.[0-9]+)?([!%]+)?)+","g")))).forEach((function(t){a!==t&&(t="".concat(a,"-").concat(t),c.add(t),o+="".concat(t," "))})),n=n.replace(new RegExp(e.replace(")","\\)").replace("(","\\("),"g"),o.trim())}else{var r=e.replace(":",l.underline);n=n.replace(new RegExp(e,"g"),r),c.add(r)}Array.from(c).sort((function(t,e){return e.length-t.length})).forEach((function(e){var c=e.split(l.underline),a=c[0],o=c.slice(1),r=s(n,[o.join(l.underline)]),i=z(r.code,r.classNames,t);n=i.code,i.styles=i.styles.map((function(t){var e="";switch(a){case"hover":case"focus":case"empty":case"active":case"checked":case"enabled":case"required":case"disabled":e=":".concat(a);break;case"after":case"before":case"selection":case"placeholder":e="::".concat(a);break;case"within":case"visible":e=":focus-".concat(a)}return t.name="".concat(a,"-").concat(t.name).concat(e),t})),t.callback(i.styles,i.notMatchClassNames)}))}))})),n}}}}var T=function(t,e,n){if(n||2===arguments.length)for(var c,a=0,o=e.length;a1)throw new Error("Colors Nesting levels cannot exceed two");var c={};for(var a in t)if(F(a),Object.prototype.hasOwnProperty.call(t,a)){var o=t[a],r="default"===a.toLocaleLowerCase()?"":X(a),i=e?"".concat(e).concat(r?"-".concat(r):""):r;"object"==typeof o?Object.assign(c,Y(o,i,n+1)):c[i]=o}return c},H=function(){return H=Object.assign||function(t){for(var e,n=1,c=arguments.length;n0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0;)e.length>0&&(e+="|"),e+=n,n=n.slice(0,-1);return e}(d[v+Number(!!v)]),")((-?[a-z0-9A-Z]+)+)?")),y=void 0,w=e.theme.breakpoints[h?p:f],x="".concat(r).concat(i.value(w,"px"),")"),k=Object.keys(t.value).reduce((function(e,c){return"".concat(e).concat(c,":").concat(n(t.value[c]),";")}),"").slice(0,-1),_=".".concat(t.name,"{").concat(k,"}"),j=!0,A=!1,E=function(t,n,c){var a;if(y=null===(a=null==t?void 0:t.match(g))||void 0===a?void 0:a.index,m)if(t.includes(x))A=!0,y=t.indexOf(x)+x.length+2;else{j=!1,A=!0,_="".concat(x,"{\n\t").concat(_,"\n}");for(var o=!0,l=t?u.map((function(t){return e.theme.breakpoints[t]})).filter((function(t){return t>w})):[],s=0;s0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]")+1+a;t="".concat(t.slice(0,o)).concat(c).concat(t.slice(o))}else t="".concat(t,'\n\n");M.writeFileSync(e,t,{encoding:"utf-8"})}}(t,c),[2]):(e.theme.colors=function(t){var e={};if(t.theme.generator&&M.existsSync(L)){var n=M.readFileSync(L,{encoding:"utf-8"}).match(/\$(-?[a-zA-z0-9])+((\x20)+)?:((\x20)+)?\#?([a-zA-Z0-9\(\)\/(\x20)+)?%,.]+)/g);(null==n?void 0:n.length)&&(e=Object.fromEntries(n.map((function(t){var e=t.split(":"),n=e[0],c=e[1];return n=n.startsWith("$")?n.slice(1):n,[X(n),c]}))))}var c=D(D({},e),Y(t.theme.colors||{}));for(var a in c)(c[a].toString().trim().startsWith("#")||c[a].toString().trim().startsWith("rgb"))&&(V[a]=i.toRgb(c[a]));return V}(e),a={styles:[],currentPageStyles:[],notMatchClassNameSet:new Set},o=function(t,e,n){void 0===e&&(e=[]),void 0===n&&(n=[]),t=Array.isArray(t)?t:[t],(e=Array.isArray(e)?e:[e]).forEach((function(t){a.notMatchClassNameSet.add(t)})),t.forEach((function(t){if(ht.has(t.name)){var e=a.styles.findIndex((function(e){return t.name===e.name}));~e&&(a.styles[e].value=t.value)}else a.styles.push(t),ht.add(t.name);a.currentPageStyles.length&&!a.currentPageStyles.find((function(e){return t.name!==e.name}))||a.currentPageStyles.push(t)})),(n=Array.isArray(n)?n:[n]).forEach((function(t){a.notMatchClassNameSet.delete(t)}))},[4,J(e,t,c,o,(function(){return dt(dt([],Array.from(ft.list()),!0),Array.from(ht),!0)}))])):[3,2];case 1:return r=m.sent(),Array.from(new Set(r.exclude)).find((function(t){return n.includes(t)}))?[2]:(function(t,e,n,c){var a,o=Object.keys(t.theme.colors).reduce((function(e,n){return e[n]=i.rgbToHex(t.theme.colors[n]),e}),{}),r=function(n,a){var o=z("",s("",Array.from(a)).classNames,t),r=[];o.styles.forEach((function(t){c.includes(t.name)&&r.push(t.name)}));var i={name:n,value:o.styles.reduce((function(t,e){return et(et({},t),e.value)}),{})};e(i,o.notMatchClassNames,r)},u=nt(nt([],n,!0),c,!0);null===(a=t.shortcuts)||void 0===a||a.forEach((function(t){if(function(t,e){if(void 0===e&&(e=""),"object"!=typeof t)throw new Error("options".concat(e,".shortcuts must be an object"));if(Array.isArray(t)){if(2!==t.length)throw new Error("options".concat(e,".shortcuts must be an array with 2 elements"));if("string"!=typeof t[0]&&("object"!=typeof t[0]||!t[0].test))throw new Error("options".concat(e,".shortcuts[0] must be a string or a RegExp"));if("function"!=typeof t[1])throw new Error("options".concat(e,".shortcuts[1] must be a function"))}else{if(Object.keys(t).filter((function(t){return"string"!=typeof t})).length)throw new Error("options".concat(e,".shortcuts as object keys must be strings"));if(Object.values(t).filter((function(t){return"string"!=typeof t})).length)throw new Error("options".concat(e,".shortcuts as object values must be strings"))}}(t),Array.isArray(t)){var e=t[0],n=t[1];u.forEach((function(t){if(new RegExp(e,"g").test(t)){var c=n(t.split(l.underline),o),a=new Set(c.split(" ").filter(Boolean));r(t,Array.from(a))}}))}else for(var c in t){var a=Array.from(new Set(t[c].split(" ").filter(Boolean)));u.includes(c)&&r(c,a)}}))}(r,o,a.styles.map((function(t){return t.name})),Array.from(a.notMatchClassNameSet)),function(t,e,n,c){var a,o=Object.keys(t.theme.colors).reduce((function(e,n){return e[n]=i.rgbToHex(t.theme.colors[n]),e}),{}),r=function(t,n,c,a){if(new RegExp(n,"g").test(t)){var r=c(t.split(l.underline),o);e({name:t,value:r},[],a?t:[])}};null===(a=t.rules)||void 0===a||a.forEach((function(t){var e=t[0],a=t[1];n.forEach((function(t){r(t,e,a)})),c.forEach((function(t){r(t,e,a,!0)}))}))}(r,o,a.styles.map((function(t){return t.name})),Array.from(a.notMatchClassNameSet)),u=tt(a.styles,r,e.unit,!wr.has(n)),wr.add(n),(h=a.notMatchClassNameSet).add.apply(h,u.notMatchClassNames),d=Array.from(a.notMatchClassNameSet),"development"===e.mode&&e.log(n)&&d.length&&((f=d.filter(Boolean)).length?pt[n]=f:delete pt[n],it(pt)),!e.log(n)&<(),p="\n"),[2,"".concat(r.code).concat("development"===e.mode?p:"")]);case 2:return[2]}}))}))}}]}))}))}module.exports=e})();