moi-computer 0.14.1-next.0 → 0.15.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.
Files changed (65) hide show
  1. package/dist/chunk-2wx528xt.css +1 -0
  2. package/dist/chunk-48ffsm6s.js +1 -0
  3. package/dist/chunk-4jdt0bvd.css +1 -0
  4. package/dist/chunk-7kemzpb4.js +2 -0
  5. package/dist/{chunk-t22yw8s6.js → chunk-dt1f1hcw.js} +1 -1
  6. package/dist/chunk-k65jhev6.js +1 -0
  7. package/dist/chunk-krtr8ryc.js +581 -0
  8. package/dist/chunk-nwxqpp90.js +73 -0
  9. package/dist/chunk-p91drrjm.js +5 -0
  10. package/dist/chunk-ph69j3sr.js +1 -0
  11. package/dist/chunk-smak7mhd.css +1 -0
  12. package/dist/chunk-y2jh8973.js +2 -0
  13. package/dist/index.html +1 -1
  14. package/package.json +11 -7
  15. package/runtime/build-worker-entry.js +1 -1
  16. package/runtime/{chunk-k049dtaq.js → chunk-2mq864th.js} +2 -2
  17. package/runtime/{chunk-zwvtkb81.js → chunk-3v7yq6th.js} +22 -22
  18. package/runtime/chunk-3ww4pa9m.js +2 -0
  19. package/runtime/{chunk-kjp60rqs.js → chunk-5ann5pey.js} +2 -2
  20. package/runtime/{chunk-1p8ynb23.js → chunk-6hbv65q7.js} +4 -4
  21. package/runtime/{chunk-1drras3j.js → chunk-6rk42dwa.js} +1 -1
  22. package/runtime/chunk-7zg31m0t.js +127 -0
  23. package/runtime/{chunk-ewc55jga.js → chunk-891n5kgv.js} +70 -70
  24. package/runtime/chunk-9cr1atrp.js +2 -0
  25. package/runtime/chunk-bqm6dyp5.js +66 -0
  26. package/runtime/chunk-dq078yga.js +2 -0
  27. package/runtime/{chunk-w1fx9tsc.js → chunk-evjb4414.js} +2 -2
  28. package/runtime/chunk-m32axt0d.js +3 -0
  29. package/runtime/{chunk-q06m17nb.js → chunk-npda2wb6.js} +2 -2
  30. package/runtime/chunk-pnk61cxm.js +83 -0
  31. package/runtime/chunk-r4cxwzmn.js +3 -0
  32. package/runtime/chunk-sw8trtr0.js +78 -0
  33. package/runtime/{chunk-j0nd7kw0.js → chunk-t7h0jn86.js} +18 -18
  34. package/runtime/{chunk-4wj1jzhr.js → chunk-ty057q5p.js} +2 -2
  35. package/runtime/chunk-vtp6hgm0.js +3 -0
  36. package/runtime/chunk-x3g9dgrr.js +3 -0
  37. package/runtime/{chunk-sdyqhxe1.js → chunk-zfqhb9jr.js} +6 -6
  38. package/runtime/cli.js +148 -148
  39. package/runtime/functions-worker.js +1 -1
  40. package/runtime/gateway-client.js +1 -1
  41. package/runtime/third-party-notices.txt +6 -6
  42. package/runtime/worker.js +1 -1
  43. package/dist/chunk-60q353jq.css +0 -1
  44. package/dist/chunk-828s864r.js +0 -546
  45. package/dist/chunk-9ffaaaw3.css +0 -1
  46. package/dist/chunk-cq2r11fg.css +0 -1
  47. package/dist/chunk-gh11h6dc.js +0 -2
  48. package/dist/chunk-hhgsmxsq.js +0 -1
  49. package/dist/chunk-ht9zmff2.js +0 -5
  50. package/dist/chunk-jqa4c92z.js +0 -2
  51. package/dist/chunk-kkhswjz8.js +0 -2
  52. package/dist/chunk-nqh3kx2x.js +0 -1
  53. package/dist/chunk-rb2vsqvb.js +0 -1
  54. package/dist/chunk-yv6n9e3z.js +0 -72
  55. package/runtime/chunk-03750sma.js +0 -126
  56. package/runtime/chunk-1zeee31e.js +0 -2
  57. package/runtime/chunk-4y27q16x.js +0 -83
  58. package/runtime/chunk-5nx3tssz.js +0 -3
  59. package/runtime/chunk-an9r5st9.js +0 -2
  60. package/runtime/chunk-c6mrjx7n.js +0 -2
  61. package/runtime/chunk-ggphq7nk.js +0 -66
  62. package/runtime/chunk-j853vhne.js +0 -78
  63. package/runtime/chunk-jr7b4rnn.js +0 -3
  64. package/runtime/chunk-zehpaa3c.js +0 -3
  65. package/runtime/chunk-zm7k0v1c.js +0 -3
@@ -1,6 +1,6 @@
1
1
  // @bun
2
- import{Se,rt,j,nt,v,he,on}from"./chunk-kjp60rqs.js";import{Be,fr}from"./chunk-sdyqhxe1.js";import{Oe}from"./chunk-w1fx9tsc.js";import{g,e,n}from"./chunk-7c0zbz74.js";var je=e(function(Sn,gt){var pe=/[\t\n\f\r "#'()/;[\\\]{}]/g,de=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,fs=/.[\r\n"'(/\\]/,mt=/[\da-f]/i;gt.exports=function(r,s={}){let i=r.css.valueOf(),o=s.ignoreErrors,l,u,a,f,h,m,c,d,y,b,E=i.length,p=0,O=[],k=[],H=-1;function C(){return p}function I(L){throw r.error("Unclosed "+L,p)}function M(){return k.length===0&&p>=E}function Ue(L){if(k.length)return k.pop();if(p>=E)return;let $e=L?L.ignoreUnclosed:!1;switch(l=i.charCodeAt(p),l){case 10:case 32:case 9:case 13:case 12:{f=p;do f+=1,l=i.charCodeAt(f);while(l===32||l===10||l===9||l===13||l===12);m=["space",i.slice(p,f)],p=f-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let dt=String.fromCharCode(l);m=[dt,dt,p];break}case 40:{if(b=O.length?O.pop()[1]:"",y=i.charCodeAt(p+1),b==="url"&&y!==39&&y!==34&&y!==32&&y!==10&&y!==9&&y!==12&&y!==13){f=p;do{if(c=!1,f=i.indexOf(")",f+1),f===-1)if(o||$e){f=p;break}else I("bracket");d=f;while(i.charCodeAt(d-1)===92)d-=1,c=!c}while(c);m=["brackets",i.slice(p,f+1),p,f],p=f}else if(p<=H)m=["(","(",p];else if(f=i.indexOf(")",p+1),u=i.slice(p,f+1),f===-1||fs.test(u))H=f===-1?E:f,m=["(","(",p];else m=["brackets",u,p,f],p=f;break}case 39:case 34:{h=l===39?"'":'"',f=p;do{if(c=!1,f=i.indexOf(h,f+1),f===-1)if(o||$e){f=p+1;break}else I("string");d=f;while(i.charCodeAt(d-1)===92)d-=1,c=!c}while(c);m=["string",i.slice(p,f+1),p,f],p=f;break}case 64:{if(pe.lastIndex=p+1,pe.test(i),pe.lastIndex===0)f=i.length-1;else f=pe.lastIndex-2;m=["at-word",i.slice(p,f+1),p,f],p=f;break}case 92:{f=p,a=!0;while(i.charCodeAt(f+1)===92)f+=1,a=!a;if(l=i.charCodeAt(f+1),a&&l!==47&&l!==32&&l!==10&&l!==9&&l!==13&&l!==12){if(f+=1,mt.test(i.charAt(f))){while(mt.test(i.charAt(f+1)))f+=1;if(i.charCodeAt(f+1)===32)f+=1}}m=["word",i.slice(p,f+1),p,f],p=f;break}default:{if(l===47&&i.charCodeAt(p+1)===42){if(f=i.indexOf("*/",p+2)+1,f===0)if(o||$e)f=i.length;else I("comment");m=["comment",i.slice(p,f+1),p,f],p=f}else{if(de.lastIndex=p+1,de.test(i),de.lastIndex===0)f=i.length-1;else f=de.lastIndex-2;m=["word",i.slice(p,f+1),p,f],O.push(m),p=f}break}}return p++,m}function G(L){k.push(L)}return{back:G,endOfFile:M,nextToken:Ue,position:C}}});var De=e(function(bn,xt){var w=Oe(),cs=je(),yt;function hs(t){yt=t}var ps={";":w.yellow,":":w.yellow,"(":w.cyan,")":w.cyan,"[":w.yellow,"]":w.yellow,"{":w.yellow,"}":w.yellow,"at-word":w.cyan,brackets:w.cyan,call:w.cyan,class:w.yellow,comment:w.gray,hash:w.magenta,string:w.green};function ds([t,r],s){if(t==="word"){if(r[0]===".")return"class";if(r[0]==="#")return"hash"}if(!s.endOfFile()){let i=s.nextToken();if(s.back(i),i[0]==="brackets"||i[0]==="(")return"call"}return t}function wt(t){let r=cs(new yt(t),{ignoreErrors:!0}),s="";while(!r.endOfFile()){let i=r.nextToken(),o=ps[ds(i,r)];if(o)s+=i[1].split(/\r?\n/).map((l)=>o(l)).join(`
3
- `);else s+=i[1]}return s}wt.registerInput=hs;xt.exports=wt});var ge=e(function(vn,bt){var me=Oe(),St=De();class K extends Error{constructor(t,r,s,i,o,l){super(t);if(this.name="CssSyntaxError",this.reason=t,o)this.file=o;if(i)this.source=i;if(l)this.plugin=l;if(typeof r<"u"&&typeof s<"u")if(typeof r==="number")this.line=r,this.column=s;else this.line=r.line,this.column=r.column,this.endLine=s.line,this.endColumn=s.column;if(this.setMessage(),Error.captureStackTrace)Error.captureStackTrace(this,K)}setMessage(){if(this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u")this.message+=":"+this.line+":"+this.column;this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";let r=this.source;if(t==null)t=me.isColorSupported;let s=(h)=>h,i=(h)=>h,o=(h)=>h;if(t){let{bold:h,gray:m,red:c}=me.createColors(!0);if(i=(d)=>h(c(d)),s=(d)=>m(d),St)o=(d)=>St(d)}let l=r.split(/\r?\n/),u=Math.max(this.line-3,0),a=Math.min(this.line+2,l.length),f=String(a).length;return l.slice(u,a).map((h,m)=>{let c=u+1+m,d=" "+(" "+c).slice(-f)+" | ";if(c===this.line){if(h.length>160){let b=20,E=Math.max(0,this.column-b),p=Math.max(this.column+b,this.endColumn+b),O=h.slice(E,p),k=s(d.replace(/\d/g," "))+h.slice(0,Math.min(this.column-1,b-1)).replace(/[^\t]/g," ");return i(">")+s(d)+o(O)+`
2
+ import{ve,at,U,De,v,ge,pn}from"./chunk-5ann5pey.js";import{We,_r}from"./chunk-zfqhb9jr.js";import{Re}from"./chunk-evjb4414.js";import{g,e,n}from"./chunk-7c0zbz74.js";var $e=e(function(Sn,gt){var he=/[\t\n\f\r "#'()/;[\\\]{}]/g,pe=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,fs=/.[\r\n"'(/\\]/,mt=/[\da-f]/i;gt.exports=function(r,s={}){let i=r.css.valueOf(),o=s.ignoreErrors,l,u,a,f,h,m,c,d,y,b,E=i.length,p=0,O=[],k=[],H=-1;function C(){return p}function I(L){throw r.error("Unclosed "+L,p)}function M(){return k.length===0&&p>=E}function qe(L){if(k.length)return k.pop();if(p>=E)return;let Ue=L?L.ignoreUnclosed:!1;switch(l=i.charCodeAt(p),l){case 10:case 32:case 9:case 13:case 12:{f=p;do f+=1,l=i.charCodeAt(f);while(l===32||l===10||l===9||l===13||l===12);m=["space",i.slice(p,f)],p=f-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let dt=String.fromCharCode(l);m=[dt,dt,p];break}case 40:{if(b=O.length?O.pop()[1]:"",y=i.charCodeAt(p+1),b==="url"&&y!==39&&y!==34&&y!==32&&y!==10&&y!==9&&y!==12&&y!==13){f=p;do{if(c=!1,f=i.indexOf(")",f+1),f===-1)if(o||Ue){f=p;break}else I("bracket");d=f;while(i.charCodeAt(d-1)===92)d-=1,c=!c}while(c);m=["brackets",i.slice(p,f+1),p,f],p=f}else if(p<=H)m=["(","(",p];else if(f=i.indexOf(")",p+1),u=i.slice(p,f+1),f===-1||fs.test(u))H=f===-1?E:f,m=["(","(",p];else m=["brackets",u,p,f],p=f;break}case 39:case 34:{h=l===39?"'":'"',f=p;do{if(c=!1,f=i.indexOf(h,f+1),f===-1)if(o||Ue){f=p+1;break}else I("string");d=f;while(i.charCodeAt(d-1)===92)d-=1,c=!c}while(c);m=["string",i.slice(p,f+1),p,f],p=f;break}case 64:{if(he.lastIndex=p+1,he.test(i),he.lastIndex===0)f=i.length-1;else f=he.lastIndex-2;m=["at-word",i.slice(p,f+1),p,f],p=f;break}case 92:{f=p,a=!0;while(i.charCodeAt(f+1)===92)f+=1,a=!a;if(l=i.charCodeAt(f+1),a&&l!==47&&l!==32&&l!==10&&l!==9&&l!==13&&l!==12){if(f+=1,mt.test(i.charAt(f))){while(mt.test(i.charAt(f+1)))f+=1;if(i.charCodeAt(f+1)===32)f+=1}}m=["word",i.slice(p,f+1),p,f],p=f;break}default:{if(l===47&&i.charCodeAt(p+1)===42){if(f=i.indexOf("*/",p+2)+1,f===0)if(o||Ue)f=i.length;else I("comment");m=["comment",i.slice(p,f+1),p,f],p=f}else{if(pe.lastIndex=p+1,pe.test(i),pe.lastIndex===0)f=i.length-1;else f=pe.lastIndex-2;m=["word",i.slice(p,f+1),p,f],O.push(m),p=f}break}}return p++,m}function G(L){k.push(L)}return{back:G,endOfFile:M,nextToken:qe,position:C}}});var je=e(function(bn,xt){var w=Re(),cs=$e(),yt;function hs(t){yt=t}var ps={";":w.yellow,":":w.yellow,"(":w.cyan,")":w.cyan,"[":w.yellow,"]":w.yellow,"{":w.yellow,"}":w.yellow,"at-word":w.cyan,brackets:w.cyan,call:w.cyan,class:w.yellow,comment:w.gray,hash:w.magenta,string:w.green};function ds([t,r],s){if(t==="word"){if(r[0]===".")return"class";if(r[0]==="#")return"hash"}if(!s.endOfFile()){let i=s.nextToken();if(s.back(i),i[0]==="brackets"||i[0]==="(")return"call"}return t}function wt(t){let r=cs(new yt(t),{ignoreErrors:!0}),s="";while(!r.endOfFile()){let i=r.nextToken(),o=ps[ds(i,r)];if(o)s+=i[1].split(/\r?\n/).map((l)=>o(l)).join(`
3
+ `);else s+=i[1]}return s}wt.registerInput=hs;xt.exports=wt});var me=e(function(vn,bt){var de=Re(),St=je();class K extends Error{constructor(t,r,s,i,o,l){super(t);if(this.name="CssSyntaxError",this.reason=t,o)this.file=o;if(i)this.source=i;if(l)this.plugin=l;if(typeof r<"u"&&typeof s<"u")if(typeof r==="number")this.line=r,this.column=s;else this.line=r.line,this.column=r.column,this.endLine=s.line,this.endColumn=s.column;if(this.setMessage(),Error.captureStackTrace)Error.captureStackTrace(this,K)}setMessage(){if(this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u")this.message+=":"+this.line+":"+this.column;this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";let r=this.source;if(t==null)t=de.isColorSupported;let s=(h)=>h,i=(h)=>h,o=(h)=>h;if(t){let{bold:h,gray:m,red:c}=de.createColors(!0);if(i=(d)=>h(c(d)),s=(d)=>m(d),St)o=(d)=>St(d)}let l=r.split(/\r?\n/),u=Math.max(this.line-3,0),a=Math.min(this.line+2,l.length),f=String(a).length;return l.slice(u,a).map((h,m)=>{let c=u+1+m,d=" "+(" "+c).slice(-f)+" | ";if(c===this.line){if(h.length>160){let b=20,E=Math.max(0,this.column-b),p=Math.max(this.column+b,this.endColumn+b),O=h.slice(E,p),k=s(d.replace(/\d/g," "))+h.slice(0,Math.min(this.column-1,b-1)).replace(/[^\t]/g," ");return i(">")+s(d)+o(O)+`
4
4
  `+k+i("^")}let y=s(d.replace(/\d/g," "))+h.slice(0,this.column-1).replace(/[^\t]/g," ");return i(">")+s(d)+o(h)+`
5
5
  `+y+i("^")}return" "+s(d)+o(h)}).join(`
6
6
  `)}toString(){let t=this.showSourceCode();if(t)t=`
@@ -17,36 +17,36 @@ import{Se,rt,j,nt,v,he,on}from"./chunk-kjp60rqs.js";import{Be,fr}from"./chunk-sd
17
17
  `))s=s.replace(/[^\n]+$/,"");return!1}}),typeof s>"u")s=this.raw(r,null,"beforeDecl");else if(s)s=s.replace(/\S/g,"");return s}rawBeforeDecl(t,r){let s;if(t.walkDecls((i)=>{if(typeof i.raws.before<"u"){if(s=i.raws.before,s.includes(`
18
18
  `))s=s.replace(/[^\n]+$/,"");return!1}}),typeof s>"u")s=this.raw(r,null,"beforeRule");else if(s)s=s.replace(/\S/g,"");return s}rawBeforeOpen(t){let r;return t.walk((s)=>{if(s.type!=="decl"){if(r=s.raws.between,typeof r<"u")return!1}}),r}rawBeforeRule(t){let r;if(t.walk((s)=>{if(s.nodes&&(s.parent!==t||t.first!==s)){if(typeof s.raws.before<"u"){if(r=s.raws.before,r.includes(`
19
19
  `))r=r.replace(/[^\n]+$/,"");return!1}}}),r)r=r.replace(/\S/g,"");return r}rawColon(t){let r;return t.walkDecls((s)=>{if(typeof s.raws.between<"u")return r=s.raws.between.replace(/[^\s:]/g,""),!1}),r}rawEmptyBody(t){let r;return t.walk((s)=>{if(s.nodes&&s.nodes.length===0){if(r=s.raws.after,typeof r<"u")return!1}}),r}rawIndent(t){if(t.raws.indent)return t.raws.indent;let r;return t.walk((s)=>{let i=s.parent;if(i&&i!==t&&i.parent&&i.parent===t){if(typeof s.raws.before<"u"){let o=s.raws.before.split(`
20
- `);return r=o[o.length-1],r=r.replace(/\S/g,""),!1}}}),r}rawSemicolon(t){let r;return t.walk((s)=>{if(s.nodes&&s.nodes.length&&s.last.type==="decl"){if(r=s.raws.semicolon,typeof r<"u")return!1}}),r}rawValue(t,r){let s=t[r],i=t.raws[r];if(i&&i.value===s)return i.raw;return s}root(t){if(t.source&&t.source.input.hasBOM)this.builder("\uFEFF",t,"start");if(this.body(t),t.raws.after){let r=t.raws.after,s=t.parent&&t.parent.type==="document";this.builder(s?r:A(r))}}rule(t){if(this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon)this.builder(A(t.raws.ownSemicolon),t,"end")}stringify(t,r){if(!this[t.type])throw Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,r)}}At.exports=Q;Q.default=Q});var Y=e(function(En,Pt){var Ss=Fe();function We(t,r){new Ss(r).stringify(t)}Pt.exports=We;We.default=We});var X=e(function(bs,ze){bs.isClean=Symbol("isClean");bs.my=Symbol("my")});var ee=e(function(On,Rt){var Es=ge(),Os=Fe(),As=Y(),{isClean:Z,my:Ps}=X();function Rs(t,r){let s=new t.constructor,i=[[t,s,r]];while(i.length>0){let[o,l,u]=i.pop();for(let a in o){if(!Object.prototype.hasOwnProperty.call(o,a))continue;if(a==="proxyCache")continue;let f=o[a],h=typeof f;if(a==="parent"&&h==="object"){if(u)l[a]=u}else if(a==="source")l[a]=f;else if(Array.isArray(f)){let m=[];l[a]=m;for(let c of f){let d=new c.constructor;m.push(d),i.push([c,d,l])}}else{if(h==="object"&&f!==null){let m=new f.constructor;i.push([f,m,void 0]),f=m}l[a]=f}}}return s}function B(t,r){if(r&&typeof r.offset<"u")return r.offset;let s=1,i=1,o=0;for(let l=0;l<t.length;l++){if(i===r.line&&s===r.column){o=l;break}if(t[l]===`
20
+ `);return r=o[o.length-1],r=r.replace(/\S/g,""),!1}}}),r}rawSemicolon(t){let r;return t.walk((s)=>{if(s.nodes&&s.nodes.length&&s.last.type==="decl"){if(r=s.raws.semicolon,typeof r<"u")return!1}}),r}rawValue(t,r){let s=t[r],i=t.raws[r];if(i&&i.value===s)return i.raw;return s}root(t){if(t.source&&t.source.input.hasBOM)this.builder("\uFEFF",t,"start");if(this.body(t),t.raws.after){let r=t.raws.after,s=t.parent&&t.parent.type==="document";this.builder(s?r:A(r))}}rule(t){if(this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon)this.builder(A(t.raws.ownSemicolon),t,"end")}stringify(t,r){if(!this[t.type])throw Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,r)}}At.exports=Q;Q.default=Q});var Y=e(function(En,Pt){var Ss=Fe();function ze(t,r){new Ss(r).stringify(t)}Pt.exports=ze;ze.default=ze});var X=e(function(bs,Je){bs.isClean=Symbol("isClean");bs.my=Symbol("my")});var ee=e(function(On,Rt){var Es=me(),Os=Fe(),As=Y(),{isClean:Z,my:Ps}=X();function Rs(t,r){let s=new t.constructor,i=[[t,s,r]];while(i.length>0){let[o,l,u]=i.pop();for(let a in o){if(!Object.prototype.hasOwnProperty.call(o,a))continue;if(a==="proxyCache")continue;let f=o[a],h=typeof f;if(a==="parent"&&h==="object"){if(u)l[a]=u}else if(a==="source")l[a]=f;else if(Array.isArray(f)){let m=[];l[a]=m;for(let c of f){let d=new c.constructor;m.push(d),i.push([c,d,l])}}else{if(h==="object"&&f!==null){let m=new f.constructor;i.push([f,m,void 0]),f=m}l[a]=f}}}return s}function B(t,r){if(r&&typeof r.offset<"u")return r.offset;let s=1,i=1,o=0;for(let l=0;l<t.length;l++){if(i===r.line&&s===r.column){o=l;break}if(t[l]===`
21
21
  `)s=1,i+=1;else s+=1}return o}class q{get proxyOf(){return this}constructor(t={}){this.raws={},this[Z]=!1,this[Ps]=!0;for(let r of Object.keys(t)){if(r==="__proto__")continue;if(r==="nodes"){this.nodes=[];for(let s of t[r])if(typeof s.clone==="function"&&s.parent)this.append(s.clone());else this.append(s)}else this[r]=t[r]}}addToError(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){let r=this.source;t.stack=t.stack.replace(/\n\s{4}at /,`$&${r.input.from}:${r.start.line}:${r.start.column}$&`)}return t}after(t){return this.parent.insertAfter(this,t),this}assign(t={}){for(let r in t)this[r]=t[r];return this}before(t){return this.parent.insertBefore(this,t),this}cleanRaws(t){if(delete this.raws.before,delete this.raws.after,!t)delete this.raws.between}clone(t={}){let r=Rs(this);for(let s in t)r[s]=t[s];return r}cloneAfter(t={}){let r=this.clone(t);return this.parent.insertAfter(this,r),r}cloneBefore(t={}){let r=this.clone(t);return this.parent.insertBefore(this,r),r}error(t,r={}){if(this.source){let{end:s,start:i}=this.rangeBy(r);return this.source.input.error(t,{column:i.column,line:i.line},{column:s.column,line:s.line},r)}return new Es(t)}getProxyProcessor(){return{get(t,r){if(r==="proxyOf")return t;else if(r==="root")return()=>t.root().toProxy();else return t[r]},set(t,r,s){if(t[r]===s)return!0;if(t[r]=s,r==="prop"||r==="value"||r==="name"||r==="params"||r==="important"||r==="text")t.markDirty();return!0}}}markClean(){this[Z]=!0}markDirty(){if(this[Z]){this[Z]=!1;let t=this;while(t=t.parent)t[Z]=!1}}next(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t+1]}positionBy(t={}){let r="document"in this.source.input?this.source.input.document:this.source.input.css,s={column:this.source.start.column,line:this.source.start.line,offset:B(r,this.source.start)};if(t.index)s=this.positionInside(t.index);else if(t.word){let o=r.slice(B(r,this.source.start),B(r,this.source.end)).indexOf(t.word);if(o!==-1)s=this.positionInside(o)}return s}positionInside(t){let r=this.source.start.column,s=this.source.start.line,i="document"in this.source.input?this.source.input.document:this.source.input.css,o=B(i,this.source.start),l=o+t;for(let u=o;u<l;u++)if(i[u]===`
22
- `)r=1,s+=1;else r+=1;return{column:r,line:s,offset:l}}prev(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t-1]}rangeBy(t={}){let r="document"in this.source.input?this.source.input.document:this.source.input.css,s={column:this.source.start.column,line:this.source.start.line,offset:B(r,this.source.start)},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset==="number"?this.source.end.offset:B(r,this.source.end)+1}:{column:s.column+1,line:s.line,offset:s.offset+1};if(t.word){let l=r.slice(B(r,this.source.start),B(r,this.source.end)).indexOf(t.word);if(l!==-1)s=this.positionInside(l),i=this.positionInside(l+t.word.length)}else{if(t.start)s={column:t.start.column,line:t.start.line,offset:B(r,t.start)};else if(typeof t.index==="number")s=this.positionInside(t.index);if(t.end)i={column:t.end.column,line:t.end.line,offset:B(r,t.end)};else if(typeof t.endIndex==="number")i=this.positionInside(t.endIndex);else if(typeof t.index==="number")i=this.positionInside(t.index+1)}if(i.line<s.line||i.line===s.line&&i.column<=s.column)i={column:s.column+1,line:s.line,offset:s.offset+1};return{end:i,start:s}}raw(t,r){return new Os().raw(this,t,r)}remove(){if(this.parent)this.parent.removeChild(this);return this.parent=void 0,this}replaceWith(...t){if(this.parent){let r=this,s=!1;for(let i of t)if(i===this)s=!0;else if(s)this.parent.insertAfter(r,i),r=i;else this.parent.insertBefore(r,i);if(!s)this.remove()}return this}root(){let t=this;while(t.parent&&t.parent.type!=="document")t=t.parent;return t}toJSON(t,r){let s=r==null;r=r||new Map;let i=[],o=[[this,i,0]];for(let u=0;u<o.length;u++){let[a,f,h]=o[u],m={};f[h]=m;for(let c in a){if(!Object.prototype.hasOwnProperty.call(a,c))continue;if(c==="parent"||c==="proxyCache")continue;let d=a[c];if(Array.isArray(d)){let y=[];m[c]=y;for(let b=0;b<d.length;b++){let E=d[b];if(typeof E==="object"&&E.toJSON)if(E.toJSON===q.prototype.toJSON)o.push([E,y,b]);else y[b]=E.toJSON(null,r);else y[b]=E}}else if(typeof d==="object"&&d.toJSON)if(d.toJSON===q.prototype.toJSON)o.push([d,m,c]);else m[c]=d.toJSON(null,r);else if(c==="source"){if(d==null)continue;let y=r.get(d.input);if(y==null)y=r.size,r.set(d.input,y);m[c]={end:d.end,inputId:y,start:d.start}}else m[c]=d}}let l=i[0];if(s)l.inputs=[...r.keys()].map((u)=>u.toJSON());return l}toProxy(){if(!this.proxyCache)this.proxyCache=new Proxy(this,this.getProxyProcessor());return this.proxyCache}toString(t=As){if(t.stringify)t=t.stringify;let r="";return t(this,(s)=>{r+=s}),r}warn(t,r,s={}){let i={node:this};for(let o in s)i[o]=s[o];return t.warn(r,i)}}Rt.exports=q;q.default=q});var te=e(function(An,kt){var ks=ee();class ye extends ks{constructor(t){super(t);this.type="comment"}}kt.exports=ye;ye.default=ye});var re=e(function(Pn,It){var Is=ee();class we extends Is{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(t){if(t&&typeof t.value<"u"&&typeof t.value!=="string")t={...t,value:String(t.value)};super(t);this.type="decl"}}It.exports=we;we.default=we});var N=e(function(Rn,_t){var Ve=te(),He=re(),Je=ee(),{isClean:Bt,my:Lt}=X(),Ge,Nt,Mt,Ke;function Bs(t){let r=t.slice();while(r.length>0){let s=r.pop();if(delete s.source,s.nodes){s.nodes=s.nodes.slice();for(let i of s.nodes)r.push(i)}}return t.slice()}function Ls(t){let r=[t];while(r.length>0){let s=r.pop();if(s[Bt]=!1,s.proxyOf.nodes)for(let i of s.proxyOf.nodes)r.push(i)}}class P extends Je{get first(){if(!this.proxyOf.nodes)return;return this.proxyOf.nodes[0]}get last(){if(!this.proxyOf.nodes)return;return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...t){for(let r of t){let s=this.normalize(r,this.last);for(let i of s)this.proxyOf.nodes.push(i)}return this.markDirty(),this}cleanRaws(t){let r=[this];while(r.length>0){let s=r.pop();if(s!==this&&s.cleanRaws!==P.prototype.cleanRaws){s.cleanRaws(t);continue}if(Je.prototype.cleanRaws.call(s,t),s.nodes)for(let i of s.nodes)r.push(i)}}each(t){if(!this.proxyOf.nodes)return;let r=this.getIterator(),s,i;while(this.indexes[r]<this.proxyOf.nodes.length){if(s=this.indexes[r],i=t(this.proxyOf.nodes[s],s),i===!1)break;this.indexes[r]+=1}return delete this.indexes[r],i}every(t){return this.nodes.every(t)}getIterator(){if(!this.lastEach)this.lastEach=0;if(!this.indexes)this.indexes={};this.lastEach+=1;let t=this.lastEach;return this.indexes[t]=0,t}getProxyProcessor(){return{get(t,r){if(r==="proxyOf")return t;else if(!t[r])return t[r];else if(r==="each"||typeof r==="string"&&r.startsWith("walk"))return(...s)=>t[r](...s.map((i)=>{if(typeof i==="function")return(o,l)=>i(o.toProxy(),l);else return i}));else if(r==="every"||r==="some")return(s)=>t[r]((i,...o)=>s(i.toProxy(),...o));else if(r==="root")return()=>t.root().toProxy();else if(r==="nodes")return t.nodes.map((s)=>s.toProxy());else if(r==="first"||r==="last")return t[r].toProxy();else return t[r]},set(t,r,s){if(t[r]===s)return!0;if(t[r]=s,r==="name"||r==="params"||r==="selector")t.markDirty();return!0}}}index(t){if(typeof t==="number")return t;if(t.proxyOf)t=t.proxyOf;return this.proxyOf.nodes.indexOf(t)}insertAfter(t,r){let s=this.index(t),i=this.normalize(r,this.proxyOf.nodes[s]).reverse();s=this.index(t);for(let l of i)this.proxyOf.nodes.splice(s+1,0,l);let o;for(let l in this.indexes)if(o=this.indexes[l],s<o)this.indexes[l]=o+i.length;return this.markDirty(),this}insertBefore(t,r){let s=this.index(t),i=s===0?"prepend":!1,o=this.normalize(r,this.proxyOf.nodes[s],i).reverse();s=this.index(t);for(let u of o)this.proxyOf.nodes.splice(s,0,u);let l;for(let u in this.indexes)if(l=this.indexes[u],s<=l)this.indexes[u]=l+o.length;return this.markDirty(),this}normalize(t,r){if(typeof t==="string")t=Bs(Nt(t).nodes);else if(typeof t>"u")t=[];else if(Array.isArray(t)){t=t.slice(0);for(let i of t)if(i.parent)i.parent.removeChild(i,"ignore")}else if(t.type==="root"&&this.type!=="document"){t=t.nodes.slice(0);for(let i of t)if(i.parent)i.parent.removeChild(i,"ignore")}else if(t.type)t=[t];else if(t.prop){if(typeof t.value>"u")throw Error("Value field is missed in node creation");else if(typeof t.value!=="string")t.value=String(t.value);t=[new He(t)]}else if(t.selector||t.selectors)t=[new Ke(t)];else if(t.name)t=[new Ge(t)];else if(t.text)t=[new Ve(t)];else throw Error("Unknown node type in node creation");return t.map((i)=>{if(!i[Lt])P.rebuild(i);if(i=i.proxyOf,i.parent)i.parent.removeChild(i);if(i[Bt])Ls(i);if(!i.raws)i.raws={};if(typeof i.raws.before>"u"){if(r&&typeof r.raws.before<"u")i.raws.before=r.raws.before.replace(/\S/g,"")}return i.parent=this.proxyOf,i})}prepend(...t){t=t.reverse();for(let r of t){let s=this.normalize(r,this.first,"prepend").reverse();for(let i of s)this.proxyOf.nodes.unshift(i);for(let i in this.indexes)this.indexes[i]=this.indexes[i]+s.length}return this.markDirty(),this}push(t){return t.parent=this,this.proxyOf.nodes.push(t),this}removeAll(){for(let t of this.proxyOf.nodes)t.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(t){t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1);let r;for(let s in this.indexes)if(r=this.indexes[s],r>=t)this.indexes[s]=r-1;return this.markDirty(),this}replaceValues(t,r,s){if(!s)s=r,r={};return this.walkDecls((i)=>{if(r.props&&!r.props.includes(i.prop))return;if(r.fast&&!i.value.includes(r.fast))return;i.value=i.value.replace(t,s)}),this.markDirty(),this}some(t){return this.nodes.some(t)}walk(t){if(!this.proxyOf.nodes)return;let r=[{iterator:this.getIterator(),node:this.proxyOf}];while(r.length>0){let{iterator:s,node:i}=r[r.length-1],o=i.indexes[s];if(o>=i.proxyOf.nodes.length){delete i.indexes[s],r.pop();let a=r[r.length-1];if(a)a.node.indexes[a.iterator]+=1;continue}let l=i.proxyOf.nodes[o],u;try{u=t(l,o)}catch(a){throw l.addToError(a)}if(u===!1){for(let a of r)delete a.node.indexes[a.iterator];return!1}if(l.walk&&l.proxyOf.nodes)r.push({iterator:l.getIterator(),node:l});else i.indexes[s]+=1}return}walkAtRules(t,r){if(!r)return r=t,this.walk((s,i)=>{if(s.type==="atrule")return r(s,i)});if(t instanceof RegExp)return this.walk((s,i)=>{if(s.type==="atrule"&&t.test(s.name))return r(s,i)});return this.walk((s,i)=>{if(s.type==="atrule"&&s.name===t)return r(s,i)})}walkComments(t){return this.walk((r,s)=>{if(r.type==="comment")return t(r,s)})}walkDecls(t,r){if(!r)return r=t,this.walk((s,i)=>{if(s.type==="decl")return r(s,i)});if(t instanceof RegExp)return this.walk((s,i)=>{if(s.type==="decl"&&t.test(s.prop))return r(s,i)});return this.walk((s,i)=>{if(s.type==="decl"&&s.prop===t)return r(s,i)})}walkRules(t,r){if(!r)return r=t,this.walk((s,i)=>{if(s.type==="rule")return r(s,i)});if(t instanceof RegExp)return this.walk((s,i)=>{if(s.type==="rule"&&t.test(s.selector))return r(s,i)});return this.walk((s,i)=>{if(s.type==="rule"&&s.selector===t)return r(s,i)})}}P.registerParse=(t)=>{Nt=t};P.registerRule=(t)=>{Ke=t};P.registerAtRule=(t)=>{Ge=t};P.registerRoot=(t)=>{Mt=t};_t.exports=P;P.default=P;P.rebuild=(t)=>{let r=[t];while(r.length>0){let s=r.pop();if(s.type==="atrule")Object.setPrototypeOf(s,Ge.prototype);else if(s.type==="rule")Object.setPrototypeOf(s,Ke.prototype);else if(s.type==="decl")Object.setPrototypeOf(s,He.prototype);else if(s.type==="comment")Object.setPrototypeOf(s,Ve.prototype);else if(s.type==="root")Object.setPrototypeOf(s,Mt.prototype);if(s[Lt]=!0,s.nodes)for(let i of s.nodes)r.push(i)}}});var xe=e(function(kn,Tt){var Qe=N();class se extends Qe{constructor(t){super(t);this.type="atrule"}append(...t){if(!this.proxyOf.nodes)this.nodes=[];return super.append(...t)}prepend(...t){if(!this.proxyOf.nodes)this.nodes=[];return super.prepend(...t)}}Tt.exports=se;se.default=se;Qe.registerAtRule(se)});var be=e(function(In,$t){var Ns=N(),qt,Ut;class U extends Ns{constructor(t){super({type:"document",...t});if(!this.nodes)this.nodes=[]}toResult(t={}){return new qt(new Ut,this,t).stringify()}}U.registerLazyResult=(t)=>{qt=t};U.registerProcessor=(t)=>{Ut=t};$t.exports=U;U.default=U});var Dt=e(function(Bn,jt){var Ms="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",_s=(t,r=21)=>(s=r)=>{let i="",o=s|0;while(o-- >0)i+=t[Math.random()*t.length|0];return i},Ts=(t=21)=>{let r="",s=t|0;while(s-- >0)r+=Ms[Math.random()*64|0];return r};jt.exports={nanoid:Ts,customAlphabet:_s}});var Ye=e(function(Ln,Jt){var{existsSync:qs,readFileSync:Us,realpathSync:$s}=n("fs"),{dirname:ve,isAbsolute:js,join:Ds,relative:Fs,sep:Ws}=n("path"),{SourceMapConsumer:Ft,SourceMapGenerator:Wt}=Be();function zt(t){try{return $s(t)}catch{return t}}function zs(t){if(Buffer)return Buffer.from(t,"base64").toString();else return window.atob(t)}class Ce{constructor(t,r){if(r.map===!1)return;if(r.unsafeMap)this.unsafeMap=!0;this.loadAnnotation(t),this.inline=this.startWith(this.annotation,"data:");let s=r.map?r.map.prev:void 0,i=this.loadMap(r.from,s);if(!this.mapFile&&r.from)this.mapFile=r.from;if(this.mapFile)this.root=ve(this.mapFile);if(i)this.text=i}consumer(){if(!this.consumerCache)this.consumerCache=new Ft(this.json||this.text);return this.consumerCache}decodeInline(t){let r=/^data:application\/json;charset=utf-?8;base64,/,s=/^data:application\/json;base64,/,i=/^data:application\/json;charset=utf-?8,/,o=/^data:application\/json,/,l=t.match(i)||t.match(o);if(l)return decodeURIComponent(t.substr(l[0].length));let u=t.match(r)||t.match(s);if(u)return zs(t.substr(u[0].length));let a=t.slice(22);throw a=a.slice(0,a.indexOf(",")),Error("Unsupported source map encoding "+a)}getAnnotationURL(t){return t.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(t){if(typeof t!=="object")return!1;return typeof t.mappings==="string"||typeof t._mappings==="string"||Array.isArray(t.sections)}loadAnnotation(t){let r=t.match(/\/\*\s*# sourceMappingURL=/g);if(!r)return;let s=t.lastIndexOf(r.pop()),i=t.indexOf("*/",s);if(s>-1&&i>-1)this.annotation=this.getAnnotationURL(t.substring(s,i))}loadFile(t,r,s){if(!s&&!this.unsafeMap){if(!/\.map$/i.test(t))return;if(!r)return;let i=Fs(zt(ve(r)),zt(t));if(i===".."||i.startsWith(".."+Ws)||js(i))return}if(this.root=ve(t),qs(t))return this.mapFile=t,Us(t,"utf-8").toString().trim()}loadMap(t,r){if(r===!1)return!1;if(r)if(typeof r==="string")return r;else if(typeof r==="function"){let s=r(t);if(s){let i=this.loadFile(s,t,!0);if(!i)throw Error("Unable to load previous source map: "+s.toString());return i}}else if(r instanceof Ft)return Wt.fromSourceMap(r).toString();else if(r instanceof Wt)return r.toString();else if(this.isMap(r))return JSON.stringify(r);else throw Error("Unsupported previous source map format: "+r.toString());else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){let s=this.annotation;if(t)s=Ds(ve(t),s);let i=this.loadFile(s,t,!1);if(i)try{this.json=JSON.parse(i.replace(/^\)]}'[^\n]*\n/,""))}catch{return}return i}}startWith(t,r){if(!t)return!1;return t.substr(0,r.length)===r}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}Jt.exports=Ce;Ce.default=Ce});var oe=e(function(Nn,Qt){var{nanoid:Js}=Dt(),{isAbsolute:Ze,resolve:et}=n("path"),{SourceMapConsumer:Vs,SourceMapGenerator:Hs}=Be(),{fileURLToPath:Vt,pathToFileURL:Ee}=n("url"),Ht=ge(),Gs=Ye(),ie=De(),Xe=Symbol("lineToIndexCache"),Ks=Boolean(Vs&&Hs),Gt=Boolean(et&&Ze);function Kt(t){if(t[Xe])return t[Xe];let r=t.css.split(`
23
- `),s=Array(r.length),i=0;for(let o=0,l=r.length;o<l;o++)s[o]=i,i+=r[o].length+1;return t[Xe]=s,s}class ne{get from(){return this.file||this.id}constructor(t,r={}){if(t===null||typeof t>"u"||typeof t==="object"&&!t.toString)throw Error(`PostCSS received ${t} instead of CSS string`);if(this.css=t.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE")this.hasBOM=!0,this.css=this.css.slice(1);else this.hasBOM=!1;if(this.document=this.css,r.document)this.document=r.document.toString();if(r.from)if(!Gt||/^\w+:\/\//.test(r.from)||Ze(r.from))this.file=r.from;else this.file=et(r.from);if(Gt&&Ks){let s=new Gs(this.css,r);if(s.text){this.map=s;let i=s.consumer().file;if(!this.file&&i)this.file=this.mapResolve(i)}}if(!this.file)this.id="<input css "+Js(6)+">";if(this.map)this.map.file=this.from}error(t,r,s,i={}){let o,l,u,a,f;if(r&&typeof r==="object"){let m=r,c=s;if(typeof m.offset==="number"){a=m.offset;let d=this.fromOffset(a);r=d.line,s=d.col}else r=m.line,s=m.column,a=this.fromLineAndColumn(r,s);if(typeof c.offset==="number"){u=c.offset;let d=this.fromOffset(u);l=d.line,o=d.col}else l=c.line,o=c.column,u=this.fromLineAndColumn(c.line,c.column)}else if(!s){a=r;let m=this.fromOffset(a);r=m.line,s=m.col}else a=this.fromLineAndColumn(r,s);let h=this.origin(r,s,l,o);if(h)f=new Ht(t,h.endLine===void 0?h.line:{column:h.column,line:h.line},h.endLine===void 0?h.column:{column:h.endColumn,line:h.endLine},h.source,h.file,i.plugin);else f=new Ht(t,l===void 0?r:{column:s,line:r},l===void 0?s:{column:o,line:l},this.css,this.file,i.plugin);if(f.input={column:s,endColumn:o,endLine:l,endOffset:u,line:r,offset:a,source:this.css},this.file){if(Ee)f.input.url=Ee(this.file).toString();f.input.file=this.file}return f}fromLineAndColumn(t,r){return Kt(this)[t-1]+r-1}fromOffset(t){let r=Kt(this),s=r[r.length-1],i=0;if(t>=s)i=r.length-1;else{let o=r.length-2,l;while(i<o)if(l=i+(o-i>>1),t<r[l])o=l-1;else if(t>=r[l+1])i=l+1;else{i=l;break}}return{col:t-r[i]+1,line:i+1}}mapResolve(t){if(/^\w+:\/\//.test(t))return t;return et(this.map.consumer().sourceRoot||this.map.root||".",t)}origin(t,r,s,i){if(!this.map)return!1;let o=this.map.consumer(),l=o.originalPositionFor({column:r-1,line:t});if(!l.source)return!1;let u;if(typeof s==="number"){let m=o.originalPositionFor({column:i-1,line:s});if(m.source)u=m}let a;if(Ze(l.source))a=Ee(l.source);else a=new URL(l.source,this.map.consumer().sourceRoot||Ee(this.map.mapFile));let f={column:l.column+1,endColumn:u&&u.column+1,endLine:u&&u.line,line:l.line,url:a.toString()};if(a.protocol==="file:")if(Vt)f.file=Vt(a);else throw Error("file: protocol is not available in this PostCSS build");let h=o.sourceContentFor(l.source);if(h)f.source=h;return f}toJSON(){let t={};for(let r of["hasBOM","css","file","id"])if(this[r]!=null)t[r]=this[r];if(this.map){if(t.map={...this.map},t.map.consumerCache)t.map.consumerCache=void 0}return t}}Qt.exports=ne;ne.default=ne;if(ie&&ie.registerInput)ie.registerInput(ne)});var D=e(function(Mn,Zt){var tt=N(),Yt,Xt;class T extends tt{constructor(t){super(t);if(this.type="root",!this.nodes)this.nodes=[]}normalize(t,r,s){let i=new Set;for(let l of Array.isArray(t)?t:[t])if(l&&typeof l==="object"&&!l.parent&&l.raws&&typeof l.raws.before<"u")i.add(l.raws);let o=super.normalize(t);if(r){if(s==="prepend")if(this.nodes.length>1)r.raws.before=this.nodes[1].raws.before;else delete r.raws.before;else if(this.first!==r){for(let l of o)if(!i.has(l.raws))l.raws.before=r.raws.before}}return o}removeChild(t,r){let s=this.index(t);if(!r&&s===0&&this.nodes.length>1)this.nodes[1].raws.before=this.nodes[s].raws.before;return super.removeChild(t)}toResult(t={}){return new Yt(new Xt,this,t).stringify()}}T.registerLazyResult=(t)=>{Yt=t};T.registerProcessor=(t)=>{Xt=t};Zt.exports=T;T.default=T;tt.registerRoot(T)});var st=e(function(_n,er){var le={comma(t){return le.split(t,[","],!0)},space(t){let r=[" ",`
24
- `,"\t"];return le.split(t,r)},split(t,r,s){if(typeof t!=="string")return[];let i=[],o="",l=!1,u=0,a=!1,f="",h=!1;for(let c of t){if(h)h=!1;else if(c==="\\")h=!0;else if(a){if(c===f)a=!1}else if(c==='"'||c==="'")a=!0,f=c;else if(c==="(")u+=1;else if(c===")"){if(u>0)u-=1}else if(u===0){if(r.includes(c))l=!0}if(l){let d=o.trim();if(s||d!=="")i.push(d);o="",l=!1}else o+=c}let m=o.trim();if(s||m!=="")i.push(m);return i}};er.exports=le;le.default=le});var Ae=e(function(Tn,rr){var it=N(),tr=st();class ae extends it{get selectors(){return tr.comma(this.selector)}set selectors(t){let r=this.selector?this.selector.match(/,\s*/):null,s=r?r[0]:","+this.raw("between","beforeOpen");this.selector=t.join(s)}constructor(t){super(t);if(this.type="rule",!this.nodes)this.nodes=[]}}rr.exports=ae;ae.default=ae;it.registerRule(ae)});var lr=e(function(qn,or){var Qs=xe(),Ys=te(),Xs=re(),ir=oe(),nr=Ye(),Zs=D(),ei=Ae();function sr(t,r){if(!t.inputs)return r;return t.inputs.map((s)=>{let i={...s,__proto__:ir.prototype};if(i.map)i.map={...i.map,__proto__:nr.prototype};return i})}function ti(t,r,s){let i={...t};if(delete i.inputs,delete i.nodes,i.source){let{inputId:l,...u}=i.source;if(i.source=u,l!=null)i.source.input=r[l]}let o;if(i.type==="root")o=new Zs(i);else if(i.type==="decl")o=new Xs(i);else if(i.type==="rule")o=new ei(i);else if(i.type==="comment")o=new Ys(i);else if(i.type==="atrule")o=new Qs(i);else throw Error("Unknown node type: "+t.type);if(s){o.nodes=s;for(let l of s)l.parent=o}return o}function Pe(t,r){if(Array.isArray(t))return t.map((o)=>Pe(o));let s,i=[{childIndex:0,children:[],inputs:sr(t,r),json:t}];while(i.length>0){let o=i[i.length-1],l=o.json.nodes;if(l&&o.childIndex<l.length){let a=l[o.childIndex];o.childIndex+=1,i.push({childIndex:0,children:[],inputs:sr(a,o.inputs),json:a});continue}i.pop();let u=ti(o.json,o.inputs,l?o.children:void 0);if(i.length>0)i[i.length-1].children.push(u);else s=u}return s}or.exports=Pe;Pe.default=Pe});var ot=e(function(Un,mr){var{dirname:Re,relative:ur,resolve:cr,sep:hr}=n("path"),{SourceMapConsumer:pr,SourceMapGenerator:ke}=Be(),{pathToFileURL:ar}=n("url"),ri=oe(),si=Boolean(pr&&ke),ii=Boolean(Re&&cr&&ur&&hr);class dr{constructor(t,r,s,i){this.stringify=t,this.mapOpts=s.map||{},this.root=r,this.opts=s,this.css=i,this.originalCSS=i,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let t;if(this.isInline())t="data:application/json;base64,"+this.toBase64(this.map.toString());else if(typeof this.mapOpts.annotation==="string")t=this.mapOpts.annotation;else if(typeof this.mapOpts.annotation==="function")t=this.mapOpts.annotation(this.opts.to,this.root);else t=this.outputFile()+".map";let r=`
22
+ `)r=1,s+=1;else r+=1;return{column:r,line:s,offset:l}}prev(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t-1]}rangeBy(t={}){let r="document"in this.source.input?this.source.input.document:this.source.input.css,s={column:this.source.start.column,line:this.source.start.line,offset:B(r,this.source.start)},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset==="number"?this.source.end.offset:B(r,this.source.end)+1}:{column:s.column+1,line:s.line,offset:s.offset+1};if(t.word){let l=r.slice(B(r,this.source.start),B(r,this.source.end)).indexOf(t.word);if(l!==-1)s=this.positionInside(l),i=this.positionInside(l+t.word.length)}else{if(t.start)s={column:t.start.column,line:t.start.line,offset:B(r,t.start)};else if(typeof t.index==="number")s=this.positionInside(t.index);if(t.end)i={column:t.end.column,line:t.end.line,offset:B(r,t.end)};else if(typeof t.endIndex==="number")i=this.positionInside(t.endIndex);else if(typeof t.index==="number")i=this.positionInside(t.index+1)}if(i.line<s.line||i.line===s.line&&i.column<=s.column)i={column:s.column+1,line:s.line,offset:s.offset+1};return{end:i,start:s}}raw(t,r){return new Os().raw(this,t,r)}remove(){if(this.parent)this.parent.removeChild(this);return this.parent=void 0,this}replaceWith(...t){if(this.parent){let r=this,s=!1;for(let i of t)if(i===this)s=!0;else if(s)this.parent.insertAfter(r,i),r=i;else this.parent.insertBefore(r,i);if(!s)this.remove()}return this}root(){let t=this;while(t.parent&&t.parent.type!=="document")t=t.parent;return t}toJSON(t,r){let s=r==null;r=r||new Map;let i=[],o=[[this,i,0]];for(let u=0;u<o.length;u++){let[a,f,h]=o[u],m={};f[h]=m;for(let c in a){if(!Object.prototype.hasOwnProperty.call(a,c))continue;if(c==="parent"||c==="proxyCache")continue;let d=a[c];if(Array.isArray(d)){let y=[];m[c]=y;for(let b=0;b<d.length;b++){let E=d[b];if(typeof E==="object"&&E.toJSON)if(E.toJSON===q.prototype.toJSON)o.push([E,y,b]);else y[b]=E.toJSON(null,r);else y[b]=E}}else if(typeof d==="object"&&d.toJSON)if(d.toJSON===q.prototype.toJSON)o.push([d,m,c]);else m[c]=d.toJSON(null,r);else if(c==="source"){if(d==null)continue;let y=r.get(d.input);if(y==null)y=r.size,r.set(d.input,y);m[c]={end:d.end,inputId:y,start:d.start}}else m[c]=d}}let l=i[0];if(s)l.inputs=[...r.keys()].map((u)=>u.toJSON());return l}toProxy(){if(!this.proxyCache)this.proxyCache=new Proxy(this,this.getProxyProcessor());return this.proxyCache}toString(t=As){if(t.stringify)t=t.stringify;let r="";return t(this,(s)=>{r+=s}),r}warn(t,r,s={}){let i={node:this};for(let o in s)i[o]=s[o];return t.warn(r,i)}}Rt.exports=q;q.default=q});var te=e(function(An,kt){var ks=ee();class ye extends ks{constructor(t){super(t);this.type="comment"}}kt.exports=ye;ye.default=ye});var re=e(function(Pn,It){var Is=ee();class we extends Is{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(t){if(t&&typeof t.value<"u"&&typeof t.value!=="string")t={...t,value:String(t.value)};super(t);this.type="decl"}}It.exports=we;we.default=we});var N=e(function(Rn,_t){var He=te(),Ge=re(),Ve=ee(),{isClean:Bt,my:Lt}=X(),Ke,Nt,Mt,Qe;function Bs(t){let r=t.slice();while(r.length>0){let s=r.pop();if(delete s.source,s.nodes){s.nodes=s.nodes.slice();for(let i of s.nodes)r.push(i)}}return t.slice()}function Ls(t){let r=[t];while(r.length>0){let s=r.pop();if(s[Bt]=!1,s.proxyOf.nodes)for(let i of s.proxyOf.nodes)r.push(i)}}class P extends Ve{get first(){if(!this.proxyOf.nodes)return;return this.proxyOf.nodes[0]}get last(){if(!this.proxyOf.nodes)return;return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...t){for(let r of t){let s=this.normalize(r,this.last);for(let i of s)this.proxyOf.nodes.push(i)}return this.markDirty(),this}cleanRaws(t){let r=[this];while(r.length>0){let s=r.pop();if(s!==this&&s.cleanRaws!==P.prototype.cleanRaws){s.cleanRaws(t);continue}if(Ve.prototype.cleanRaws.call(s,t),s.nodes)for(let i of s.nodes)r.push(i)}}each(t){if(!this.proxyOf.nodes)return;let r=this.getIterator(),s,i;while(this.indexes[r]<this.proxyOf.nodes.length){if(s=this.indexes[r],i=t(this.proxyOf.nodes[s],s),i===!1)break;this.indexes[r]+=1}return delete this.indexes[r],i}every(t){return this.nodes.every(t)}getIterator(){if(!this.lastEach)this.lastEach=0;if(!this.indexes)this.indexes={};this.lastEach+=1;let t=this.lastEach;return this.indexes[t]=0,t}getProxyProcessor(){return{get(t,r){if(r==="proxyOf")return t;else if(!t[r])return t[r];else if(r==="each"||typeof r==="string"&&r.startsWith("walk"))return(...s)=>t[r](...s.map((i)=>{if(typeof i==="function")return(o,l)=>i(o.toProxy(),l);else return i}));else if(r==="every"||r==="some")return(s)=>t[r]((i,...o)=>s(i.toProxy(),...o));else if(r==="root")return()=>t.root().toProxy();else if(r==="nodes")return t.nodes.map((s)=>s.toProxy());else if(r==="first"||r==="last")return t[r].toProxy();else return t[r]},set(t,r,s){if(t[r]===s)return!0;if(t[r]=s,r==="name"||r==="params"||r==="selector")t.markDirty();return!0}}}index(t){if(typeof t==="number")return t;if(t.proxyOf)t=t.proxyOf;return this.proxyOf.nodes.indexOf(t)}insertAfter(t,r){let s=this.index(t),i=this.normalize(r,this.proxyOf.nodes[s]).reverse();s=this.index(t);for(let l of i)this.proxyOf.nodes.splice(s+1,0,l);let o;for(let l in this.indexes)if(o=this.indexes[l],s<o)this.indexes[l]=o+i.length;return this.markDirty(),this}insertBefore(t,r){let s=this.index(t),i=s===0?"prepend":!1,o=this.normalize(r,this.proxyOf.nodes[s],i).reverse();s=this.index(t);for(let u of o)this.proxyOf.nodes.splice(s,0,u);let l;for(let u in this.indexes)if(l=this.indexes[u],s<=l)this.indexes[u]=l+o.length;return this.markDirty(),this}normalize(t,r){if(typeof t==="string")t=Bs(Nt(t).nodes);else if(typeof t>"u")t=[];else if(Array.isArray(t)){t=t.slice(0);for(let i of t)if(i.parent)i.parent.removeChild(i,"ignore")}else if(t.type==="root"&&this.type!=="document"){t=t.nodes.slice(0);for(let i of t)if(i.parent)i.parent.removeChild(i,"ignore")}else if(t.type)t=[t];else if(t.prop){if(typeof t.value>"u")throw Error("Value field is missed in node creation");else if(typeof t.value!=="string")t.value=String(t.value);t=[new Ge(t)]}else if(t.selector||t.selectors)t=[new Qe(t)];else if(t.name)t=[new Ke(t)];else if(t.text)t=[new He(t)];else throw Error("Unknown node type in node creation");return t.map((i)=>{if(!i[Lt])P.rebuild(i);if(i=i.proxyOf,i.parent)i.parent.removeChild(i);if(i[Bt])Ls(i);if(!i.raws)i.raws={};if(typeof i.raws.before>"u"){if(r&&typeof r.raws.before<"u")i.raws.before=r.raws.before.replace(/\S/g,"")}return i.parent=this.proxyOf,i})}prepend(...t){t=t.reverse();for(let r of t){let s=this.normalize(r,this.first,"prepend").reverse();for(let i of s)this.proxyOf.nodes.unshift(i);for(let i in this.indexes)this.indexes[i]=this.indexes[i]+s.length}return this.markDirty(),this}push(t){return t.parent=this,this.proxyOf.nodes.push(t),this}removeAll(){for(let t of this.proxyOf.nodes)t.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(t){t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1);let r;for(let s in this.indexes)if(r=this.indexes[s],r>=t)this.indexes[s]=r-1;return this.markDirty(),this}replaceValues(t,r,s){if(!s)s=r,r={};return this.walkDecls((i)=>{if(r.props&&!r.props.includes(i.prop))return;if(r.fast&&!i.value.includes(r.fast))return;i.value=i.value.replace(t,s)}),this.markDirty(),this}some(t){return this.nodes.some(t)}walk(t){if(!this.proxyOf.nodes)return;let r=[{iterator:this.getIterator(),node:this.proxyOf}];while(r.length>0){let{iterator:s,node:i}=r[r.length-1],o=i.indexes[s];if(o>=i.proxyOf.nodes.length){delete i.indexes[s],r.pop();let a=r[r.length-1];if(a)a.node.indexes[a.iterator]+=1;continue}let l=i.proxyOf.nodes[o],u;try{u=t(l,o)}catch(a){throw l.addToError(a)}if(u===!1){for(let a of r)delete a.node.indexes[a.iterator];return!1}if(l.walk&&l.proxyOf.nodes)r.push({iterator:l.getIterator(),node:l});else i.indexes[s]+=1}return}walkAtRules(t,r){if(!r)return r=t,this.walk((s,i)=>{if(s.type==="atrule")return r(s,i)});if(t instanceof RegExp)return this.walk((s,i)=>{if(s.type==="atrule"&&t.test(s.name))return r(s,i)});return this.walk((s,i)=>{if(s.type==="atrule"&&s.name===t)return r(s,i)})}walkComments(t){return this.walk((r,s)=>{if(r.type==="comment")return t(r,s)})}walkDecls(t,r){if(!r)return r=t,this.walk((s,i)=>{if(s.type==="decl")return r(s,i)});if(t instanceof RegExp)return this.walk((s,i)=>{if(s.type==="decl"&&t.test(s.prop))return r(s,i)});return this.walk((s,i)=>{if(s.type==="decl"&&s.prop===t)return r(s,i)})}walkRules(t,r){if(!r)return r=t,this.walk((s,i)=>{if(s.type==="rule")return r(s,i)});if(t instanceof RegExp)return this.walk((s,i)=>{if(s.type==="rule"&&t.test(s.selector))return r(s,i)});return this.walk((s,i)=>{if(s.type==="rule"&&s.selector===t)return r(s,i)})}}P.registerParse=(t)=>{Nt=t};P.registerRule=(t)=>{Qe=t};P.registerAtRule=(t)=>{Ke=t};P.registerRoot=(t)=>{Mt=t};_t.exports=P;P.default=P;P.rebuild=(t)=>{let r=[t];while(r.length>0){let s=r.pop();if(s.type==="atrule")Object.setPrototypeOf(s,Ke.prototype);else if(s.type==="rule")Object.setPrototypeOf(s,Qe.prototype);else if(s.type==="decl")Object.setPrototypeOf(s,Ge.prototype);else if(s.type==="comment")Object.setPrototypeOf(s,He.prototype);else if(s.type==="root")Object.setPrototypeOf(s,Mt.prototype);if(s[Lt]=!0,s.nodes)for(let i of s.nodes)r.push(i)}}});var xe=e(function(kn,Tt){var Ye=N();class se extends Ye{constructor(t){super(t);this.type="atrule"}append(...t){if(!this.proxyOf.nodes)this.nodes=[];return super.append(...t)}prepend(...t){if(!this.proxyOf.nodes)this.nodes=[];return super.prepend(...t)}}Tt.exports=se;se.default=se;Ye.registerAtRule(se)});var Se=e(function(In,$t){var Ns=N(),qt,Ut;class j extends Ns{constructor(t){super({type:"document",...t});if(!this.nodes)this.nodes=[]}toResult(t={}){return new qt(new Ut,this,t).stringify()}}j.registerLazyResult=(t)=>{qt=t};j.registerProcessor=(t)=>{Ut=t};$t.exports=j;j.default=j});var Dt=e(function(Bn,jt){var Ms="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",_s=(t,r=21)=>(s=r)=>{let i="",o=s|0;while(o-- >0)i+=t[Math.random()*t.length|0];return i},Ts=(t=21)=>{let r="",s=t|0;while(s-- >0)r+=Ms[Math.random()*64|0];return r};jt.exports={nanoid:Ts,customAlphabet:_s}});var Xe=e(function(Ln,Jt){var{existsSync:qs,readFileSync:Us,realpathSync:$s}=n("fs"),{dirname:be,isAbsolute:js,join:Ds,relative:Fs,sep:Ws}=n("path"),{SourceMapConsumer:Ft,SourceMapGenerator:Wt}=We();function zt(t){try{return $s(t)}catch{return t}}function zs(t){if(Buffer)return Buffer.from(t,"base64").toString();else return window.atob(t)}class Ce{constructor(t,r){if(r.map===!1)return;if(r.unsafeMap)this.unsafeMap=!0;this.loadAnnotation(t),this.inline=this.startWith(this.annotation,"data:");let s=r.map?r.map.prev:void 0,i=this.loadMap(r.from,s);if(!this.mapFile&&r.from)this.mapFile=r.from;if(this.mapFile)this.root=be(this.mapFile);if(i)this.text=i}consumer(){if(!this.consumerCache)this.consumerCache=new Ft(this.json||this.text);return this.consumerCache}decodeInline(t){let r=/^data:application\/json;charset=utf-?8;base64,/,s=/^data:application\/json;base64,/,i=/^data:application\/json;charset=utf-?8,/,o=/^data:application\/json,/,l=t.match(i)||t.match(o);if(l)return decodeURIComponent(t.substr(l[0].length));let u=t.match(r)||t.match(s);if(u)return zs(t.substr(u[0].length));let a=t.slice(22);throw a=a.slice(0,a.indexOf(",")),Error("Unsupported source map encoding "+a)}getAnnotationURL(t){return t.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(t){if(typeof t!=="object")return!1;return typeof t.mappings==="string"||typeof t._mappings==="string"||Array.isArray(t.sections)}loadAnnotation(t){let r=t.match(/\/\*\s*# sourceMappingURL=/g);if(!r)return;let s=t.lastIndexOf(r.pop()),i=t.indexOf("*/",s);if(s>-1&&i>-1)this.annotation=this.getAnnotationURL(t.substring(s,i))}loadFile(t,r,s){if(!s&&!this.unsafeMap){if(!/\.map$/i.test(t))return;if(!r)return;let i=Fs(zt(be(r)),zt(t));if(i===".."||i.startsWith(".."+Ws)||js(i))return}if(this.root=be(t),qs(t))return this.mapFile=t,Us(t,"utf-8").toString().trim()}loadMap(t,r){if(r===!1)return!1;if(r)if(typeof r==="string")return r;else if(typeof r==="function"){let s=r(t);if(s){let i=this.loadFile(s,t,!0);if(!i)throw Error("Unable to load previous source map: "+s.toString());return i}}else if(r instanceof Ft)return Wt.fromSourceMap(r).toString();else if(r instanceof Wt)return r.toString();else if(this.isMap(r))return JSON.stringify(r);else throw Error("Unsupported previous source map format: "+r.toString());else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){let s=this.annotation;if(t)s=Ds(be(t),s);let i=this.loadFile(s,t,!1);if(i)try{this.json=JSON.parse(i.replace(/^\)]}'[^\n]*\n/,""))}catch{return}return i}}startWith(t,r){if(!t)return!1;return t.substr(0,r.length)===r}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}Jt.exports=Ce;Ce.default=Ce});var oe=e(function(Nn,Qt){var{nanoid:Js}=Dt(),{isAbsolute:et,resolve:tt}=n("path"),{SourceMapConsumer:Vs,SourceMapGenerator:Hs}=We(),{fileURLToPath:Vt,pathToFileURL:Ee}=n("url"),Ht=me(),Gs=Xe(),ie=je(),Ze=Symbol("lineToIndexCache"),Ks=Boolean(Vs&&Hs),Gt=Boolean(tt&&et);function Kt(t){if(t[Ze])return t[Ze];let r=t.css.split(`
23
+ `),s=Array(r.length),i=0;for(let o=0,l=r.length;o<l;o++)s[o]=i,i+=r[o].length+1;return t[Ze]=s,s}class ne{get from(){return this.file||this.id}constructor(t,r={}){if(t===null||typeof t>"u"||typeof t==="object"&&!t.toString)throw Error(`PostCSS received ${t} instead of CSS string`);if(this.css=t.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE")this.hasBOM=!0,this.css=this.css.slice(1);else this.hasBOM=!1;if(this.document=this.css,r.document)this.document=r.document.toString();if(r.from)if(!Gt||/^\w+:\/\//.test(r.from)||et(r.from))this.file=r.from;else this.file=tt(r.from);if(Gt&&Ks){let s=new Gs(this.css,r);if(s.text){this.map=s;let i=s.consumer().file;if(!this.file&&i)this.file=this.mapResolve(i)}}if(!this.file)this.id="<input css "+Js(6)+">";if(this.map)this.map.file=this.from}error(t,r,s,i={}){let o,l,u,a,f;if(r&&typeof r==="object"){let m=r,c=s;if(typeof m.offset==="number"){a=m.offset;let d=this.fromOffset(a);r=d.line,s=d.col}else r=m.line,s=m.column,a=this.fromLineAndColumn(r,s);if(typeof c.offset==="number"){u=c.offset;let d=this.fromOffset(u);l=d.line,o=d.col}else l=c.line,o=c.column,u=this.fromLineAndColumn(c.line,c.column)}else if(!s){a=r;let m=this.fromOffset(a);r=m.line,s=m.col}else a=this.fromLineAndColumn(r,s);let h=this.origin(r,s,l,o);if(h)f=new Ht(t,h.endLine===void 0?h.line:{column:h.column,line:h.line},h.endLine===void 0?h.column:{column:h.endColumn,line:h.endLine},h.source,h.file,i.plugin);else f=new Ht(t,l===void 0?r:{column:s,line:r},l===void 0?s:{column:o,line:l},this.css,this.file,i.plugin);if(f.input={column:s,endColumn:o,endLine:l,endOffset:u,line:r,offset:a,source:this.css},this.file){if(Ee)f.input.url=Ee(this.file).toString();f.input.file=this.file}return f}fromLineAndColumn(t,r){return Kt(this)[t-1]+r-1}fromOffset(t){let r=Kt(this),s=r[r.length-1],i=0;if(t>=s)i=r.length-1;else{let o=r.length-2,l;while(i<o)if(l=i+(o-i>>1),t<r[l])o=l-1;else if(t>=r[l+1])i=l+1;else{i=l;break}}return{col:t-r[i]+1,line:i+1}}mapResolve(t){if(/^\w+:\/\//.test(t))return t;return tt(this.map.consumer().sourceRoot||this.map.root||".",t)}origin(t,r,s,i){if(!this.map)return!1;let o=this.map.consumer(),l=o.originalPositionFor({column:r-1,line:t});if(!l.source)return!1;let u;if(typeof s==="number"){let m=o.originalPositionFor({column:i-1,line:s});if(m.source)u=m}let a;if(et(l.source))a=Ee(l.source);else a=new URL(l.source,this.map.consumer().sourceRoot||Ee(this.map.mapFile));let f={column:l.column+1,endColumn:u&&u.column+1,endLine:u&&u.line,line:l.line,url:a.toString()};if(a.protocol==="file:")if(Vt)f.file=Vt(a);else throw Error("file: protocol is not available in this PostCSS build");let h=o.sourceContentFor(l.source);if(h)f.source=h;return f}toJSON(){let t={};for(let r of["hasBOM","css","file","id"])if(this[r]!=null)t[r]=this[r];if(this.map){if(t.map={...this.map},t.map.consumerCache)t.map.consumerCache=void 0}return t}}Qt.exports=ne;ne.default=ne;if(ie&&ie.registerInput)ie.registerInput(ne)});var D=e(function(Mn,Zt){var rt=N(),Yt,Xt;class T extends rt{constructor(t){super(t);if(this.type="root",!this.nodes)this.nodes=[]}normalize(t,r,s){let i=new Set;for(let l of Array.isArray(t)?t:[t])if(l&&typeof l==="object"&&!l.parent&&l.raws&&typeof l.raws.before<"u")i.add(l.raws);let o=super.normalize(t);if(r){if(s==="prepend")if(this.nodes.length>1)r.raws.before=this.nodes[1].raws.before;else delete r.raws.before;else if(this.first!==r){for(let l of o)if(!i.has(l.raws))l.raws.before=r.raws.before}}return o}removeChild(t,r){let s=this.index(t);if(!r&&s===0&&this.nodes.length>1)this.nodes[1].raws.before=this.nodes[s].raws.before;return super.removeChild(t)}toResult(t={}){return new Yt(new Xt,this,t).stringify()}}T.registerLazyResult=(t)=>{Yt=t};T.registerProcessor=(t)=>{Xt=t};Zt.exports=T;T.default=T;rt.registerRoot(T)});var st=e(function(_n,er){var le={comma(t){return le.split(t,[","],!0)},space(t){let r=[" ",`
24
+ `,"\t"];return le.split(t,r)},split(t,r,s){if(typeof t!=="string")return[];let i=[],o="",l=!1,u=0,a=!1,f="",h=!1;for(let c of t){if(h)h=!1;else if(c==="\\")h=!0;else if(a){if(c===f)a=!1}else if(c==='"'||c==="'")a=!0,f=c;else if(c==="(")u+=1;else if(c===")"){if(u>0)u-=1}else if(u===0){if(r.includes(c))l=!0}if(l){let d=o.trim();if(s||d!=="")i.push(d);o="",l=!1}else o+=c}let m=o.trim();if(s||m!=="")i.push(m);return i}};er.exports=le;le.default=le});var Oe=e(function(Tn,rr){var it=N(),tr=st();class ae extends it{get selectors(){return tr.comma(this.selector)}set selectors(t){let r=this.selector?this.selector.match(/,\s*/):null,s=r?r[0]:","+this.raw("between","beforeOpen");this.selector=t.join(s)}constructor(t){super(t);if(this.type="rule",!this.nodes)this.nodes=[]}}rr.exports=ae;ae.default=ae;it.registerRule(ae)});var lr=e(function(qn,or){var Qs=xe(),Ys=te(),Xs=re(),ir=oe(),nr=Xe(),Zs=D(),ei=Oe();function sr(t,r){if(!t.inputs)return r;return t.inputs.map((s)=>{let i={...s,__proto__:ir.prototype};if(i.map)i.map={...i.map,__proto__:nr.prototype};return i})}function ti(t,r,s){let i={...t};if(delete i.inputs,delete i.nodes,i.source){let{inputId:l,...u}=i.source;if(i.source=u,l!=null)i.source.input=r[l]}let o;if(i.type==="root")o=new Zs(i);else if(i.type==="decl")o=new Xs(i);else if(i.type==="rule")o=new ei(i);else if(i.type==="comment")o=new Ys(i);else if(i.type==="atrule")o=new Qs(i);else throw Error("Unknown node type: "+t.type);if(s){o.nodes=s;for(let l of s)l.parent=o}return o}function Ae(t,r){if(Array.isArray(t))return t.map((o)=>Ae(o));let s,i=[{childIndex:0,children:[],inputs:sr(t,r),json:t}];while(i.length>0){let o=i[i.length-1],l=o.json.nodes;if(l&&o.childIndex<l.length){let a=l[o.childIndex];o.childIndex+=1,i.push({childIndex:0,children:[],inputs:sr(a,o.inputs),json:a});continue}i.pop();let u=ti(o.json,o.inputs,l?o.children:void 0);if(i.length>0)i[i.length-1].children.push(u);else s=u}return s}or.exports=Ae;Ae.default=Ae});var nt=e(function(Un,dr){var{dirname:Pe,relative:ur,resolve:fr,sep:cr}=n("path"),{SourceMapConsumer:hr,SourceMapGenerator:ke}=We(),{pathToFileURL:ar}=n("url"),ri=oe(),si=Boolean(hr&&ke),ii=Boolean(Pe&&fr&&ur&&cr);class pr{constructor(t,r,s,i){this.stringify=t,this.mapOpts=s.map||{},this.root=r,this.opts=s,this.css=i,this.originalCSS=i,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let t;if(this.isInline())t="data:application/json;base64,"+this.toBase64(this.map.toString());else if(typeof this.mapOpts.annotation==="string")t=this.mapOpts.annotation;else if(typeof this.mapOpts.annotation==="function")t=this.mapOpts.annotation(this.opts.to,this.root);else t=this.outputFile()+".map";let r=`
25
25
  `;if(this.css.includes(`\r
26
26
  `))r=`\r
27
- `;this.css+=r+"/*# sourceMappingURL="+t+" */"}applyPrevMaps(){for(let t of this.previous()){let r=this.toUrl(this.path(t.file)),s=t.root||Re(t.file),i;if(this.mapOpts.sourcesContent===!1){if(i=new pr(t.text),i.sourcesContent)i.sourcesContent=null}else i=t.consumer();this.map.applySourceMap(i,r,this.toUrl(this.path(s)))}}clearAnnotation(){if(this.mapOpts.annotation===!1)return;if(this.root){let t;for(let r=this.root.nodes.length-1;r>=0;r--){if(t=this.root.nodes[r],t.type!=="comment")continue;if(t.text.startsWith("# sourceMappingURL="))this.root.removeChild(r)}}else if(this.css){let t="/*# sourceMappingURL=",r;while((r=this.css.lastIndexOf(t))!==-1){let s=this.css.indexOf("*/",r+t.length);if(s===-1)break;while(r>0&&this.css[r-1]===`
27
+ `;this.css+=r+"/*# sourceMappingURL="+t+" */"}applyPrevMaps(){for(let t of this.previous()){let r=this.toUrl(this.path(t.file)),s=t.root||Pe(t.file),i;if(this.mapOpts.sourcesContent===!1){if(i=new hr(t.text),i.sourcesContent)i.sourcesContent=null}else i=t.consumer();this.map.applySourceMap(i,r,this.toUrl(this.path(s)))}}clearAnnotation(){if(this.mapOpts.annotation===!1)return;if(this.root){let t;for(let r=this.root.nodes.length-1;r>=0;r--){if(t=this.root.nodes[r],t.type!=="comment")continue;if(t.text.startsWith("# sourceMappingURL="))this.root.removeChild(r)}}else if(this.css){let t="/*# sourceMappingURL=",r;while((r=this.css.lastIndexOf(t))!==-1){let s=this.css.indexOf("*/",r+t.length);if(s===-1)break;while(r>0&&this.css[r-1]===`
28
28
  `)r--;this.css=this.css.slice(0,r)+this.css.slice(s+2)}}}generate(){if(this.clearAnnotation(),ii&&si&&this.isMap())return this.generateMap();else{let t="";return this.stringify(this.root,(r)=>{t+=r}),[t]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=ke.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new ke({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});if(this.isSourcesContent())this.setSourcesContent();if(this.root&&this.previous().length>0)this.applyPrevMaps();if(this.isAnnotation())this.addAnnotation();if(this.isInline())return[this.css];else return[this.css,this.map]}generateString(){this.css="",this.map=new ke({file:this.outputFile(),ignoreInvalidMapping:!0});let t=1,r=1,s="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""},o,l;this.stringify(this.root,(u,a,f)=>{if(this.css+=u,a&&f!=="end")if(i.generated.line=t,i.generated.column=r-1,a.source&&a.source.start)i.source=this.sourcePath(a),i.original.line=a.source.start.line,i.original.column=a.source.start.column-1,this.map.addMapping(i);else i.source=s,i.original.line=1,i.original.column=0,this.map.addMapping(i);if(l=u.match(/\n/g),l)t+=l.length,o=u.lastIndexOf(`
29
- `),r=u.length-o;else r+=u.length;if(a&&f!=="start"){let h=a.parent||{raws:{}};if(!(a.type==="decl"||a.type==="atrule"&&!a.nodes)||a!==h.last||h.raws.semicolon)if(a.source&&a.source.end)i.source=this.sourcePath(a),i.original.line=a.source.end.line,i.original.column=a.source.end.column-1,i.generated.line=t,i.generated.column=r-2,this.map.addMapping(i);else i.source=s,i.original.line=1,i.original.column=0,i.generated.line=t,i.generated.column=r-1,this.map.addMapping(i)}})}isAnnotation(){if(this.isInline())return!0;if(typeof this.mapOpts.annotation<"u")return this.mapOpts.annotation;if(this.previous().length)return this.previous().some((t)=>t.annotation);return!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let t=this.mapOpts.annotation;if(typeof t<"u"&&t!==!0)return!1;if(this.previous().length)return this.previous().some((r)=>r.inline);return!0}isMap(){if(typeof this.opts.map<"u")return!!this.opts.map;return this.previous().length>0}isSourcesContent(){if(typeof this.mapOpts.sourcesContent<"u")return this.mapOpts.sourcesContent;if(this.previous().length)return this.previous().some((t)=>t.withContent());return!0}outputFile(){if(this.opts.to)return this.path(this.opts.to);else if(this.opts.from)return this.path(this.opts.from);else return"to.css"}path(t){if(this.mapOpts.absolute)return t;if(t.charCodeAt(0)===60)return t;if(/^\w+:\/\//.test(t))return t;let r=this.memoizedPaths.get(t);if(r)return r;let s=this.opts.to?Re(this.opts.to):".";if(typeof this.mapOpts.annotation==="string")s=Re(cr(s,this.mapOpts.annotation));let i=ur(s,t);return this.memoizedPaths.set(t,i),i}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((t)=>{if(t.source&&t.source.input.map){let r=t.source.input.map;if(!this.previousMaps.includes(r))this.previousMaps.push(r)}});else{let t=new ri(this.originalCSS,this.opts);if(t.map)this.previousMaps.push(t.map)}return this.previousMaps}setSourcesContent(){let t={};if(this.root)this.root.walk((r)=>{if(r.source){let s=r.source.input.from;if(s&&!t[s]){t[s]=!0;let i=this.usesFileUrls?this.toFileUrl(s):this.toUrl(this.path(s));this.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){let r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}}sourcePath(t){if(this.mapOpts.from)return this.toUrl(this.mapOpts.from);else if(this.usesFileUrls)return this.toFileUrl(t.source.input.from);else return this.toUrl(this.path(t.source.input.from))}toBase64(t){if(Buffer)return Buffer.from(t).toString("base64");else return window.btoa(unescape(encodeURIComponent(t)))}toFileUrl(t){let r=this.memoizedFileURLs.get(t);if(r)return r;if(ar){let s=ar(t).toString();return this.memoizedFileURLs.set(t,s),s}else throw Error("`map.absolute` option is not available in this PostCSS build")}toUrl(t){let r=this.memoizedURLs.get(t);if(r)return r;if(hr==="\\")t=t.replace(/\\/g,"/");let s=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,s),s}}mr.exports=dr});var Sr=e(function($n,xr){var ni=xe(),oi=te(),li=re(),ai=D(),gr=Ae(),ui=je(),yr={empty:!0,space:!0};function fi(t){for(let r=t.length-1;r>=0;r--){let s=t[r],i=s[3]||s[2];if(i)return i}}function lt(t,r,s){let i="";for(let o=r;o<s;o++)i+=t[o][1];return i}class wr{constructor(t){this.input=t,this.root=new ai,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){let r=new ni;if(r.name=t[1].slice(1),r.name==="")this.unnamedAtrule(r,t);this.init(r,t[2]);let s,i,o,l=!1,u=!1,a=[],f=[];while(!this.tokenizer.endOfFile()){if(t=this.tokenizer.nextToken(),s=t[0],s==="("||s==="[")f.push(s==="("?")":"]");else if(s==="{"&&f.length>0)f.push("}");else if(s===f[f.length-1])f.pop();if(f.length===0)if(s===";"){r.source.end=this.getPosition(t[2]),r.source.end.offset++,this.semicolon=!0;break}else if(s==="{"){u=!0;break}else if(s==="}"){if(a.length>0){o=a.length-1,i=a[o];while(i&&i[0]==="space")i=a[--o];if(i)r.source.end=this.getPosition(i[3]||i[2]),r.source.end.offset++}this.end(t);break}else a.push(t);else a.push(t);if(this.tokenizer.endOfFile()){l=!0;break}}if(r.raws.between=this.spacesAndCommentsFromEnd(a),a.length){if(r.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(r,"params",a),l)t=a[a.length-1],r.source.end=this.getPosition(t[3]||t[2]),r.source.end.offset++,this.spaces=r.raws.between,r.raws.between=""}else r.raws.afterName="",r.params="";if(u)r.nodes=[],this.current=r}checkMissedSemicolon(t){let r=this.colon(t);if(r===!1)return;let s=0,i;for(let o=r-1;o>=0;o--)if(i=t[o],i[0]!=="space"){if(s+=1,s===2)break}throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}colon(t){let r=0,s,i,o;for(let[l,u]of t.entries()){if(i=u,o=i[0],o==="(")r+=1;if(o===")")r-=1;if(r===0&&o===":")if(!s)this.doubleColon(i);else if(s[0]==="word"&&s[1]==="progid")continue;else return l;s=i}return!1}comment(t){let r=new oi;this.init(r,t[2]),r.source.end=this.getPosition(t[3]||t[2]),r.source.end.offset++;let s=t[1].slice(2,-2);if(!s.trim())r.text="",r.raws.left=s,r.raws.right="";else{let i=s.match(/^(\s*)([^]*\S)(\s*)$/);r.text=i[2],r.raws.left=i[1],r.raws.right=i[3]}}createTokenizer(){this.tokenizer=ui(this.input)}decl(t,r){let s=new li;this.init(s,t[0][2]);let i=t[t.length-1];if(i[0]===";")this.semicolon=!0,t.pop();s.source.end=this.getPosition(i[3]||i[2]||fi(t)),s.source.end.offset++;let o=0;while(t[o][0]!=="word"){if(o===t.length-1)this.unknownWord([t[o]]);o++}s.raws.before+=lt(t,0,o),s.source.start=this.getPosition(t[o][2]);let l=o;while(o<t.length){let c=t[o][0];if(c===":"||c==="space"||c==="comment")break;o++}s.prop=lt(t,l,o);let u=o,a;while(o<t.length){if(a=t[o],o++,a[0]===":")break;if(a[0]==="word"&&/\w/.test(a[1]))this.unknownWord([a])}if(s.raws.between=lt(t,u,o),s.prop[0]==="_"||s.prop[0]==="*")s.raws.before+=s.prop[0],s.prop=s.prop.slice(1);let f=o;while(o<t.length){let c=t[o][0];if(c!=="space"&&c!=="comment")break;o++}let h=t.slice(f,o);t=t.slice(o),this.precheckMissedSemicolon(t);for(let c=t.length-1;c>=0;c--){if(a=t[c],a[1].toLowerCase()==="!important"){s.important=!0;let d=this.stringFrom(t,c);if(d=this.spacesFromEnd(t)+d,d!==" !important")s.raws.important=d;break}else if(a[1].toLowerCase()==="important"){let d=t.slice(0),y="";for(let b=c;b>0;b--){let E=d[b][0];if(y.trim().startsWith("!")&&E!=="space")break;y=d.pop()[1]+y}if(y.trim().startsWith("!"))s.important=!0,s.raws.important=y,t=d}if(a[0]!=="space"&&a[0]!=="comment")break}if(t.some((c)=>c[0]!=="space"&&c[0]!=="comment"))s.raws.between+=h.map((c)=>c[1]).join(""),h=[];if(this.raw(s,"value",h.concat(t),r),s.value.includes(":")&&!r)this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){let r=new gr;this.init(r,t[2]),r.selector="",r.raws.between="",this.current=r}end(t){if(this.current.nodes&&this.current.nodes.length)this.current.raws.semicolon=this.semicolon;if(this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent)this.current.source.end=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent;else this.unexpectedClose(t)}endFile(){if(this.current.parent)this.unclosedBlock();if(this.current.nodes&&this.current.nodes.length)this.current.raws.semicolon=this.semicolon;this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(t){if(this.spaces+=t[1],this.current.nodes){let r=this.current.nodes[this.current.nodes.length-1];if(r&&r.type==="rule"&&!r.raws.ownSemicolon)r.raws.ownSemicolon=this.spaces,this.spaces="",r.source.end=this.getPosition(t[2]),r.source.end.offset++}}getPosition(t){let r=this.input.fromOffset(t);return{column:r.col,line:r.line,offset:t}}init(t,r){if(this.current.push(t),t.source={input:this.input,start:this.getPosition(r)},t.raws.before=this.spaces,this.spaces="",t.type!=="comment")this.semicolon=!1}other(t){let r=!1,s=null,i=!1,o=null,l=[],u=t[1].startsWith("--"),a=[],f=t;while(f){if(s=f[0],a.push(f),s==="("||s==="["){if(!o)o=f;l.push(s==="("?")":"]")}else if(u&&i&&s==="{"){if(!o)o=f;l.push("}")}else if(l.length===0){if(s===";")if(i){this.decl(a,u);return}else break;else if(s==="{"){this.rule(a);return}else if(s==="}"){this.tokenizer.back(a.pop()),r=!0;break}else if(s===":")i=!0}else if(s===l[l.length-1]){if(l.pop(),l.length===0)o=null}f=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile())r=!0;if(l.length>0)this.unclosedBracket(o);if(r&&i){if(!u)while(a.length){if(f=a[a.length-1][0],f!=="space"&&f!=="comment")break;this.tokenizer.back(a.pop())}this.decl(a,u)}else this.unknownWord(a)}parse(){let t;while(!this.tokenizer.endOfFile())switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t);break}this.endFile()}precheckMissedSemicolon(){}raw(t,r,s,i){let o,l,u=s.length,a="",f=!0,h,m;for(let c=0;c<u;c+=1)if(o=s[c],l=o[0],l==="space"&&c===u-1&&!i)f=!1;else if(l==="comment")if(m=s[c-1]?s[c-1][0]:"empty",h=s[c+1]?s[c+1][0]:"empty",!yr[m]&&!yr[h])if(a.slice(-1)===",")f=!1;else a+=o[1];else f=!1;else a+=o[1];if(!f){let c=s.reduce((d,y)=>d+y[1],"");t.raws[r]={raw:c,value:a}}t[r]=a}rule(t){t.pop();let r=new gr;this.init(r,t[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(r,"selector",t),this.current=r}spacesAndCommentsFromEnd(t){let r,s="";while(t.length){if(r=t[t.length-1][0],r!=="space"&&r!=="comment")break;s=t.pop()[1]+s}return s}spacesAndCommentsFromStart(t){let r,s="";while(t.length){if(r=t[0][0],r!=="space"&&r!=="comment")break;s+=t.shift()[1]}return s}spacesFromEnd(t){let r,s="";while(t.length){if(r=t[t.length-1][0],r!=="space")break;s=t.pop()[1]+s}return s}stringFrom(t,r){let s="";for(let i=r;i<t.length;i++)s+=t[i][1];return t.splice(r,t.length-r),s}unclosedBlock(){let t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)}unclosedBracket(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})}unexpectedClose(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error("Unknown word "+t[0][1],{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,r){throw this.input.error("At-rule without name",{offset:r[2]},{offset:r[2]+r[1].length})}}xr.exports=wr});var Le=e(function(jn,vr){var br=N(),ci=oe(),hi=Sr();function Ie(t,r){let s=new ci(t,r),i=new hi(s);try{i.parse()}catch(o){if(o.name==="CssSyntaxError"&&r&&r.from){if(/\.scss$/i.test(r.from))o.message+=`
29
+ `),r=u.length-o;else r+=u.length;if(a&&f!=="start"){let h=a.parent||{raws:{}};if(!(a.type==="decl"||a.type==="atrule"&&!a.nodes)||a!==h.last||h.raws.semicolon)if(a.source&&a.source.end)i.source=this.sourcePath(a),i.original.line=a.source.end.line,i.original.column=a.source.end.column-1,i.generated.line=t,i.generated.column=r-2,this.map.addMapping(i);else i.source=s,i.original.line=1,i.original.column=0,i.generated.line=t,i.generated.column=r-1,this.map.addMapping(i)}})}isAnnotation(){if(this.isInline())return!0;if(typeof this.mapOpts.annotation<"u")return this.mapOpts.annotation;if(this.previous().length)return this.previous().some((t)=>t.annotation);return!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let t=this.mapOpts.annotation;if(typeof t<"u"&&t!==!0)return!1;if(this.previous().length)return this.previous().some((r)=>r.inline);return!0}isMap(){if(typeof this.opts.map<"u")return!!this.opts.map;return this.previous().length>0}isSourcesContent(){if(typeof this.mapOpts.sourcesContent<"u")return this.mapOpts.sourcesContent;if(this.previous().length)return this.previous().some((t)=>t.withContent());return!0}outputFile(){if(this.opts.to)return this.path(this.opts.to);else if(this.opts.from)return this.path(this.opts.from);else return"to.css"}path(t){if(this.mapOpts.absolute)return t;if(t.charCodeAt(0)===60)return t;if(/^\w+:\/\//.test(t))return t;let r=this.memoizedPaths.get(t);if(r)return r;let s=this.opts.to?Pe(this.opts.to):".";if(typeof this.mapOpts.annotation==="string")s=Pe(fr(s,this.mapOpts.annotation));let i=ur(s,t);return this.memoizedPaths.set(t,i),i}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((t)=>{if(t.source&&t.source.input.map){let r=t.source.input.map;if(!this.previousMaps.includes(r))this.previousMaps.push(r)}});else{let t=new ri(this.originalCSS,this.opts);if(t.map)this.previousMaps.push(t.map)}return this.previousMaps}setSourcesContent(){let t={};if(this.root)this.root.walk((r)=>{if(r.source){let s=r.source.input.from;if(s&&!t[s]){t[s]=!0;let i=this.usesFileUrls?this.toFileUrl(s):this.toUrl(this.path(s));this.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){let r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}}sourcePath(t){if(this.mapOpts.from)return this.toUrl(this.mapOpts.from);else if(this.usesFileUrls)return this.toFileUrl(t.source.input.from);else return this.toUrl(this.path(t.source.input.from))}toBase64(t){if(Buffer)return Buffer.from(t).toString("base64");else return window.btoa(unescape(encodeURIComponent(t)))}toFileUrl(t){let r=this.memoizedFileURLs.get(t);if(r)return r;if(ar){let s=ar(t).toString();return this.memoizedFileURLs.set(t,s),s}else throw Error("`map.absolute` option is not available in this PostCSS build")}toUrl(t){let r=this.memoizedURLs.get(t);if(r)return r;if(cr==="\\")t=t.replace(/\\/g,"/");let s=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,s),s}}dr.exports=pr});var xr=e(function($n,wr){var ni=xe(),oi=te(),li=re(),ai=D(),mr=Oe(),ui=$e(),gr={empty:!0,space:!0};function fi(t){for(let r=t.length-1;r>=0;r--){let s=t[r],i=s[3]||s[2];if(i)return i}}function ot(t,r,s){let i="";for(let o=r;o<s;o++)i+=t[o][1];return i}class yr{constructor(t){this.input=t,this.root=new ai,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){let r=new ni;if(r.name=t[1].slice(1),r.name==="")this.unnamedAtrule(r,t);this.init(r,t[2]);let s,i,o,l=!1,u=!1,a=[],f=[];while(!this.tokenizer.endOfFile()){if(t=this.tokenizer.nextToken(),s=t[0],s==="("||s==="[")f.push(s==="("?")":"]");else if(s==="{"&&f.length>0)f.push("}");else if(s===f[f.length-1])f.pop();if(f.length===0)if(s===";"){r.source.end=this.getPosition(t[2]),r.source.end.offset++,this.semicolon=!0;break}else if(s==="{"){u=!0;break}else if(s==="}"){if(a.length>0){o=a.length-1,i=a[o];while(i&&i[0]==="space")i=a[--o];if(i)r.source.end=this.getPosition(i[3]||i[2]),r.source.end.offset++}this.end(t);break}else a.push(t);else a.push(t);if(this.tokenizer.endOfFile()){l=!0;break}}if(r.raws.between=this.spacesAndCommentsFromEnd(a),a.length){if(r.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(r,"params",a),l)t=a[a.length-1],r.source.end=this.getPosition(t[3]||t[2]),r.source.end.offset++,this.spaces=r.raws.between,r.raws.between=""}else r.raws.afterName="",r.params="";if(u)r.nodes=[],this.current=r}checkMissedSemicolon(t){let r=this.colon(t);if(r===!1)return;let s=0,i;for(let o=r-1;o>=0;o--)if(i=t[o],i[0]!=="space"){if(s+=1,s===2)break}throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}colon(t){let r=0,s,i,o;for(let[l,u]of t.entries()){if(i=u,o=i[0],o==="(")r+=1;if(o===")")r-=1;if(r===0&&o===":")if(!s)this.doubleColon(i);else if(s[0]==="word"&&s[1]==="progid")continue;else return l;s=i}return!1}comment(t){let r=new oi;this.init(r,t[2]),r.source.end=this.getPosition(t[3]||t[2]),r.source.end.offset++;let s=t[1].slice(2,-2);if(!s.trim())r.text="",r.raws.left=s,r.raws.right="";else{let i=s.match(/^(\s*)([^]*\S)(\s*)$/);r.text=i[2],r.raws.left=i[1],r.raws.right=i[3]}}createTokenizer(){this.tokenizer=ui(this.input)}decl(t,r){let s=new li;this.init(s,t[0][2]);let i=t[t.length-1];if(i[0]===";")this.semicolon=!0,t.pop();s.source.end=this.getPosition(i[3]||i[2]||fi(t)),s.source.end.offset++;let o=0;while(t[o][0]!=="word"){if(o===t.length-1)this.unknownWord([t[o]]);o++}s.raws.before+=ot(t,0,o),s.source.start=this.getPosition(t[o][2]);let l=o;while(o<t.length){let c=t[o][0];if(c===":"||c==="space"||c==="comment")break;o++}s.prop=ot(t,l,o);let u=o,a;while(o<t.length){if(a=t[o],o++,a[0]===":")break;if(a[0]==="word"&&/\w/.test(a[1]))this.unknownWord([a])}if(s.raws.between=ot(t,u,o),s.prop[0]==="_"||s.prop[0]==="*")s.raws.before+=s.prop[0],s.prop=s.prop.slice(1);let f=o;while(o<t.length){let c=t[o][0];if(c!=="space"&&c!=="comment")break;o++}let h=t.slice(f,o);t=t.slice(o),this.precheckMissedSemicolon(t);for(let c=t.length-1;c>=0;c--){if(a=t[c],a[1].toLowerCase()==="!important"){s.important=!0;let d=this.stringFrom(t,c);if(d=this.spacesFromEnd(t)+d,d!==" !important")s.raws.important=d;break}else if(a[1].toLowerCase()==="important"){let d=t.slice(0),y="";for(let b=c;b>0;b--){let E=d[b][0];if(y.trim().startsWith("!")&&E!=="space")break;y=d.pop()[1]+y}if(y.trim().startsWith("!"))s.important=!0,s.raws.important=y,t=d}if(a[0]!=="space"&&a[0]!=="comment")break}if(t.some((c)=>c[0]!=="space"&&c[0]!=="comment"))s.raws.between+=h.map((c)=>c[1]).join(""),h=[];if(this.raw(s,"value",h.concat(t),r),s.value.includes(":")&&!r)this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){let r=new mr;this.init(r,t[2]),r.selector="",r.raws.between="",this.current=r}end(t){if(this.current.nodes&&this.current.nodes.length)this.current.raws.semicolon=this.semicolon;if(this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent)this.current.source.end=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent;else this.unexpectedClose(t)}endFile(){if(this.current.parent)this.unclosedBlock();if(this.current.nodes&&this.current.nodes.length)this.current.raws.semicolon=this.semicolon;this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(t){if(this.spaces+=t[1],this.current.nodes){let r=this.current.nodes[this.current.nodes.length-1];if(r&&r.type==="rule"&&!r.raws.ownSemicolon)r.raws.ownSemicolon=this.spaces,this.spaces="",r.source.end=this.getPosition(t[2]),r.source.end.offset++}}getPosition(t){let r=this.input.fromOffset(t);return{column:r.col,line:r.line,offset:t}}init(t,r){if(this.current.push(t),t.source={input:this.input,start:this.getPosition(r)},t.raws.before=this.spaces,this.spaces="",t.type!=="comment")this.semicolon=!1}other(t){let r=!1,s=null,i=!1,o=null,l=[],u=t[1].startsWith("--"),a=[],f=t;while(f){if(s=f[0],a.push(f),s==="("||s==="["){if(!o)o=f;l.push(s==="("?")":"]")}else if(u&&i&&s==="{"){if(!o)o=f;l.push("}")}else if(l.length===0){if(s===";")if(i){this.decl(a,u);return}else break;else if(s==="{"){this.rule(a);return}else if(s==="}"){this.tokenizer.back(a.pop()),r=!0;break}else if(s===":")i=!0}else if(s===l[l.length-1]){if(l.pop(),l.length===0)o=null}f=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile())r=!0;if(l.length>0)this.unclosedBracket(o);if(r&&i){if(!u)while(a.length){if(f=a[a.length-1][0],f!=="space"&&f!=="comment")break;this.tokenizer.back(a.pop())}this.decl(a,u)}else this.unknownWord(a)}parse(){let t;while(!this.tokenizer.endOfFile())switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t);break}this.endFile()}precheckMissedSemicolon(){}raw(t,r,s,i){let o,l,u=s.length,a="",f=!0,h,m;for(let c=0;c<u;c+=1)if(o=s[c],l=o[0],l==="space"&&c===u-1&&!i)f=!1;else if(l==="comment")if(m=s[c-1]?s[c-1][0]:"empty",h=s[c+1]?s[c+1][0]:"empty",!gr[m]&&!gr[h])if(a.slice(-1)===",")f=!1;else a+=o[1];else f=!1;else a+=o[1];if(!f){let c=s.reduce((d,y)=>d+y[1],"");t.raws[r]={raw:c,value:a}}t[r]=a}rule(t){t.pop();let r=new mr;this.init(r,t[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(r,"selector",t),this.current=r}spacesAndCommentsFromEnd(t){let r,s="";while(t.length){if(r=t[t.length-1][0],r!=="space"&&r!=="comment")break;s=t.pop()[1]+s}return s}spacesAndCommentsFromStart(t){let r,s="";while(t.length){if(r=t[0][0],r!=="space"&&r!=="comment")break;s+=t.shift()[1]}return s}spacesFromEnd(t){let r,s="";while(t.length){if(r=t[t.length-1][0],r!=="space")break;s=t.pop()[1]+s}return s}stringFrom(t,r){let s="";for(let i=r;i<t.length;i++)s+=t[i][1];return t.splice(r,t.length-r),s}unclosedBlock(){let t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)}unclosedBracket(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})}unexpectedClose(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error("Unknown word "+t[0][1],{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,r){throw this.input.error("At-rule without name",{offset:r[2]},{offset:r[2]+r[1].length})}}wr.exports=yr});var Be=e(function(jn,br){var Sr=N(),ci=oe(),hi=xr();function Ie(t,r){let s=new ci(t,r),i=new hi(s);try{i.parse()}catch(o){if(o.name==="CssSyntaxError"&&r&&r.from){if(/\.scss$/i.test(r.from))o.message+=`
30
30
  You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`;else if(/\.sass/i.test(r.from))o.message+=`
31
31
  You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`;else if(/\.less$/i.test(r.from))o.message+=`
32
- You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`}throw o}return i.root}vr.exports=Ie;Ie.default=Ie;br.registerParse(Ie)});var at=e(function(Dn,Er){var Cr=N(),{my:pi}=X();class Ne{constructor(t,r={}){if(this.type="warning",this.text=t,r.node&&r.node.source){if(!r.node[pi])Cr.rebuild(r.node);let s=r.node.rangeBy(r);this.line=s.start.line,this.column=s.start.column,this.endLine=s.end.line,this.endColumn=s.end.column}for(let s in r)this[s]=r[s]}toString(){if(this.node)return this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message;if(this.plugin)return this.plugin+": "+this.text;return this.text}}Er.exports=Ne;Ne.default=Ne});var _e=e(function(Fn,Or){var di=at();class Me{get content(){return this.css}constructor(t,r,s){this.processor=t,this.messages=[],this.root=r,this.opts=s,this.css="",this.map=void 0}toString(){return this.css}warn(t,r={}){if(!r.plugin){if(this.lastPlugin&&this.lastPlugin.postcssPlugin)r.plugin=this.lastPlugin.postcssPlugin}let s=new di(t,r);return this.messages.push(s),s}warnings(){return this.messages.filter((t)=>t.type==="warning")}}Or.exports=Me;Me.default=Me});var ut=e(function(Wn,Pr){var Ar={};Pr.exports=function(r){if(Ar[r])return;if(Ar[r]=!0,typeof console<"u"&&console.warn)console.warn(r)}});var ht=e(function(zn,Mr){var Br=N(),Lr=be(),mi=ot(),gi=Le(),Rr=_e(),Nr=D(),yi=Y(),{isClean:R,my:wi}=X(),xi=ut(),Si={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},bi={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},vi={Once:!0,postcssPlugin:!0,prepare:!0},F=0;function ue(t){return typeof t==="object"&&typeof t.then==="function"}function ft(t){let r=!1,s=Si[t.type];if(t.type==="decl")r=t.prop.toLowerCase();else if(t.type==="atrule")r=t.name.toLowerCase();if(r&&t.append)return[s,s+"-"+r,F,s+"Exit",s+"Exit-"+r];else if(r)return[s,s+"-"+r,s+"Exit",s+"Exit-"+r];else if(t.append)return[s,F,s+"Exit"];else return[s,s+"Exit"]}function kr(t){let r;if(t.type==="document")r=["Document",F,"DocumentExit"];else if(t.type==="root")r=["Root",F,"RootExit"];else r=ft(t);return{eventIndex:0,events:r,iterator:0,node:t,visitorIndex:0,visitors:[]}}function Ir(t){let r=[t];while(r.length>0){let s=r.pop();if(s[R]=!1,s.nodes)for(let i of s.nodes)r.push(i)}return t}var ct={};class _{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(t,r,s){this.stringified=!1,this.processed=!1;let i;if(typeof r==="object"&&r!==null&&(r.type==="root"||r.type==="document"))i=Ir(r);else if(r instanceof _||r instanceof Rr){if(i=Ir(r.root),r.map){if(typeof s.map>"u")s.map={};if(!s.map.inline)s.map.inline=!1;s.map.prev=r.map}}else{let o=gi;if(s.syntax)o=s.syntax.parse;if(s.parser)o=s.parser;if(o.parse)o=o.parse;try{i=o(r,s)}catch(l){this.processed=!0,this.error=l}if(i&&!i[wi])Br.rebuild(i)}this.result=new Rr(t,i,s),this.helpers={...ct,postcss:ct,result:this.result},this.plugins=this.processor.plugins.map((o)=>{if(typeof o==="object"&&o.prepare)return{...o,...o.prepare(this.result)};else return o})}async(){if(this.error)return Promise.reject(this.error);if(this.processed)return Promise.resolve(this.result);if(!this.processing)this.processing=this.runAsync();return this.processing}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}getAsyncError(){throw Error("Use process(css).then(cb) to work with async plugins")}handleError(t,r){let s=this.result.lastPlugin;try{if(r)r.addToError(t);if(this.error=t,t.name==="CssSyntaxError"&&!t.plugin)t.plugin=s.postcssPlugin,t.setMessage();else if(s.postcssVersion){let{postcssPlugin:i,postcssVersion:o}=s,l=this.result.processor.version,u=o.split("."),a=l.split(".");if(u[0]!==a[0]||parseInt(u[1])>parseInt(a[1]))console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+l+", but "+i+" uses "+o+". Perhaps this is the source of the error below.")}}catch(i){if(console&&console.error)console.error(i)}return t}prepareVisitors(){this.listeners={};let t=(r,s,i)=>{if(!this.listeners[s])this.listeners[s]=[];this.listeners[s].push([r,i])};for(let r of this.plugins)if(typeof r==="object")for(let s in r){if(!bi[s]&&/^[A-Z]/.test(s))throw Error(`Unknown event ${s} in ${r.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!vi[s]){if(typeof r[s]==="object")for(let i in r[s])if(i==="*")t(r,s,r[s][i]);else t(r,s+"-"+i.toLowerCase(),r[s][i]);else if(typeof r[s]==="function")t(r,s,r[s])}}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let t=0;t<this.plugins.length;t++){let r=this.plugins[t],s=this.runOnRoot(r);if(ue(s))try{await s}catch(i){throw this.handleError(i)}}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;while(!t[R]){t[R]=!0;let r=[kr(t)];while(r.length>0){let s=this.visitTick(r);if(ue(s))try{await s}catch(i){let o=r[r.length-1].node;throw this.handleError(i,o)}}}if(this.listeners.OnceExit)for(let[r,s]of this.listeners.OnceExit){this.result.lastPlugin=r;try{if(t.type==="document"){let i=t.nodes.map((o)=>s(o,this.helpers));await Promise.all(i)}else await s(t,this.helpers)}catch(i){throw this.handleError(i)}}}return this.processed=!0,this.stringify()}runOnRoot(t){this.result.lastPlugin=t;try{if(typeof t==="object"&&t.Once){if(this.result.root.type==="document"){let r=this.result.root.nodes.map((s)=>t.Once(s,this.helpers));if(ue(r[0]))return Promise.all(r);return r}return t.Once(this.result.root,this.helpers)}else if(typeof t==="function")return t(this.result.root,this.result)}catch(r){throw this.handleError(r)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let t=this.result.opts,r=yi;if(t.syntax)r=t.syntax.stringify;if(t.stringifier)r=t.stringifier;if(r.stringify)r=r.stringify;let s=this.result.root.source;if(t.map===void 0&&!(s&&s.input&&s.input.map)){let l="";return r(this.result.root,(u)=>{l+=u}),this.result.css=l,this.result}let o=new mi(r,this.result.root,this.result.opts).generate();return this.result.css=o[0],this.result.map=o[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let t of this.plugins){let r=this.runOnRoot(t);if(ue(r))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;while(!t[R])t[R]=!0,this.walkSync(t);if(this.listeners.OnceExit)if(t.type==="document")for(let r of t.nodes)this.visitSync(this.listeners.OnceExit,r);else this.visitSync(this.listeners.OnceExit,t)}return this.result}then(t,r){if(!("from"in this.opts))xi("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.");return this.async().then(t,r)}toString(){return this.css}visitSync(t,r){for(let[s,i]of t){this.result.lastPlugin=s;let o;try{o=i(r,this.helpers)}catch(l){throw this.handleError(l,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(ue(o))throw this.getAsyncError()}}visitTick(t){let r=t[t.length-1],{node:s,visitors:i}=r;if(s.type!=="root"&&s.type!=="document"&&!s.parent){t.pop();return}if(i.length>0&&r.visitorIndex<i.length){let[l,u]=i[r.visitorIndex];if(r.visitorIndex+=1,r.visitorIndex===i.length)r.visitors=[],r.visitorIndex=0;this.result.lastPlugin=l;try{return u(s.toProxy(),this.helpers)}catch(a){throw this.handleError(a,s)}}if(r.iterator!==0){let l=r.iterator;if(r.descending)r.descending=!1,s.indexes[l]+=1;let u;while(u=s.nodes[s.indexes[l]]){if(!u[R]){u[R]=!0,r.descending=!0,t.push(kr(u));return}s.indexes[l]+=1}r.iterator=0,delete s.indexes[l]}let o=r.events;while(r.eventIndex<o.length){let l=o[r.eventIndex];if(r.eventIndex+=1,l===F){if(s.nodes&&s.nodes.length)s[R]=!0,r.iterator=s.getIterator();return}else if(this.listeners[l]){r.visitors=this.listeners[l];return}}t.pop()}walkSync(t){t[R]=!0;let r=[{eventIndex:0,events:ft(t),iterator:0,node:t}];while(r.length>0){let s=r[r.length-1],i=s.node;if(s.iterator!==0){let o=s.iterator;if(s.descending)s.descending=!1,i.indexes[o]+=1;let l,u=!1;while(l=i.nodes[i.indexes[o]]){if(!l[R]){l[R]=!0,s.descending=!0,r.push({eventIndex:0,events:ft(l),iterator:0,node:l}),u=!0;break}i.indexes[o]+=1}if(u)continue;s.iterator=0,delete i.indexes[o]}if(s.eventIndex<s.events.length){let o=s.events[s.eventIndex];if(s.eventIndex+=1,o===F){if(i.nodes&&i.nodes.length)s.iterator=i.getIterator()}else{let l=this.listeners[o];if(l){if(this.visitSync(l,i.toProxy()))r.pop()}}continue}r.pop()}}warnings(){return this.sync().warnings()}}_.registerPostcss=(t)=>{ct=t};Mr.exports=_;_.default=_;Nr.registerLazyResult(_);Lr.registerLazyResult(_)});var Tr=e(function(Jn,_r){var Ci=ot(),Ei=Le(),Oi=_e(),Ai=Y(),Pi=ut();class Te{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let t,r=Ei;try{t=r(this._css,this._opts)}catch(s){this.error=s}if(this.error)throw this.error;else return this._root=t,t}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(t,r,s){r=r.toString(),this.stringified=!1,this._processor=t,this._css=r,this._opts=s,this._map=void 0;let i=Ai;this.result=new Oi(this._processor,void 0,this._opts),this.result.css=r;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let l=new Ci(i,void 0,this._opts,r);if(l.isMap()){let[u,a]=l.generate();if(u)this.result.css=u;if(a)this.result.map=a}else l.clearAnnotation(),this.result.css=l.css}async(){if(this.error)return Promise.reject(this.error);return Promise.resolve(this.result)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}sync(){if(this.error)throw this.error;return this.result}then(t,r){if(!("from"in this._opts))Pi("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.");return this.async().then(t,r)}toString(){return this._css}warnings(){return[]}}_r.exports=Te;Te.default=Te});var jr=e(function(Vn,$r){var qr=be(),Ri=ht(),ki=Tr(),Ur=D();class W{constructor(t=[]){this.version="8.5.28",this.plugins=this.normalize(t)}normalize(t){let r=[];for(let s of t){if(s.postcss===!0)s=s();else if(s.postcss)s=s.postcss;if(typeof s==="object"&&Array.isArray(s.plugins))r=r.concat(s.plugins);else if(typeof s==="object"&&s.postcssPlugin)r.push(s);else if(typeof s==="function")r.push(s);else if(typeof s==="object"&&(s.parse||s.stringify))throw Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.");else throw Error(s+" is not a PostCSS plugin")}return r}process(t,r={}){if(!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax)return new ki(this,t,r);else return new Ri(this,t,r)}use(t){return this.plugins=this.plugins.concat(this.normalize([t])),this}}$r.exports=W;W.default=W;Ur.registerProcessor(W);qr.registerProcessor(W)});var Kr=e(function(Hn,Gr){var Dr=xe(),Fr=te(),Ii=N(),Ni=ge(),Wr=re(),zr=be(),_i=lr(),Ti=oe(),Jr=ht(),qi=st(),Ui=ee(),$i=Le(),pt=jr(),ji=_e(),Vr=D(),Hr=Ae(),Di=Y(),Wi=at();function x(...t){if(t.length===1&&Array.isArray(t[0]))t=t[0];return new pt(t)}x.plugin=function(r,s){let i=!1;function o(...u){if(console&&console.warn&&!i){if(i=!0,console.warn(r+`: postcss.plugin was deprecated. Migration guide:
32
+ You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`}throw o}return i.root}br.exports=Ie;Ie.default=Ie;Sr.registerParse(Ie)});var lt=e(function(Dn,Cr){var vr=N(),{my:pi}=X();class Le{constructor(t,r={}){if(this.type="warning",this.text=t,r.node&&r.node.source){if(!r.node[pi])vr.rebuild(r.node);let s=r.node.rangeBy(r);this.line=s.start.line,this.column=s.start.column,this.endLine=s.end.line,this.endColumn=s.end.column}for(let s in r)this[s]=r[s]}toString(){if(this.node)return this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message;if(this.plugin)return this.plugin+": "+this.text;return this.text}}Cr.exports=Le;Le.default=Le});var Me=e(function(Fn,Er){var di=lt();class Ne{get content(){return this.css}constructor(t,r,s){this.processor=t,this.messages=[],this.root=r,this.opts=s,this.css="",this.map=void 0}toString(){return this.css}warn(t,r={}){if(!r.plugin){if(this.lastPlugin&&this.lastPlugin.postcssPlugin)r.plugin=this.lastPlugin.postcssPlugin}let s=new di(t,r);return this.messages.push(s),s}warnings(){return this.messages.filter((t)=>t.type==="warning")}}Er.exports=Ne;Ne.default=Ne});var ut=e(function(Wn,Ar){var Or={};Ar.exports=function(r){if(Or[r])return;if(Or[r]=!0,typeof console<"u"&&console.warn)console.warn(r)}});var ht=e(function(zn,Nr){var Ir=N(),Br=Se(),mi=nt(),gi=Be(),Pr=Me(),Lr=D(),yi=Y(),{isClean:R,my:wi}=X(),xi=ut(),Si={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},bi={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},vi={Once:!0,postcssPlugin:!0,prepare:!0},F=0;function ue(t){return typeof t==="object"&&typeof t.then==="function"}function ft(t){let r=!1,s=Si[t.type];if(t.type==="decl")r=t.prop.toLowerCase();else if(t.type==="atrule")r=t.name.toLowerCase();if(r&&t.append)return[s,s+"-"+r,F,s+"Exit",s+"Exit-"+r];else if(r)return[s,s+"-"+r,s+"Exit",s+"Exit-"+r];else if(t.append)return[s,F,s+"Exit"];else return[s,s+"Exit"]}function Rr(t){let r;if(t.type==="document")r=["Document",F,"DocumentExit"];else if(t.type==="root")r=["Root",F,"RootExit"];else r=ft(t);return{eventIndex:0,events:r,iterator:0,node:t,visitorIndex:0,visitors:[]}}function kr(t){let r=[t];while(r.length>0){let s=r.pop();if(s[R]=!1,s.nodes)for(let i of s.nodes)r.push(i)}return t}var ct={};class _{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(t,r,s){this.stringified=!1,this.processed=!1;let i;if(typeof r==="object"&&r!==null&&(r.type==="root"||r.type==="document"))i=kr(r);else if(r instanceof _||r instanceof Pr){if(i=kr(r.root),r.map){if(typeof s.map>"u")s.map={};if(!s.map.inline)s.map.inline=!1;s.map.prev=r.map}}else{let o=gi;if(s.syntax)o=s.syntax.parse;if(s.parser)o=s.parser;if(o.parse)o=o.parse;try{i=o(r,s)}catch(l){this.processed=!0,this.error=l}if(i&&!i[wi])Ir.rebuild(i)}this.result=new Pr(t,i,s),this.helpers={...ct,postcss:ct,result:this.result},this.plugins=this.processor.plugins.map((o)=>{if(typeof o==="object"&&o.prepare)return{...o,...o.prepare(this.result)};else return o})}async(){if(this.error)return Promise.reject(this.error);if(this.processed)return Promise.resolve(this.result);if(!this.processing)this.processing=this.runAsync();return this.processing}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}getAsyncError(){throw Error("Use process(css).then(cb) to work with async plugins")}handleError(t,r){let s=this.result.lastPlugin;try{if(r)r.addToError(t);if(this.error=t,t.name==="CssSyntaxError"&&!t.plugin)t.plugin=s.postcssPlugin,t.setMessage();else if(s.postcssVersion){let{postcssPlugin:i,postcssVersion:o}=s,l=this.result.processor.version,u=o.split("."),a=l.split(".");if(u[0]!==a[0]||parseInt(u[1])>parseInt(a[1]))console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+l+", but "+i+" uses "+o+". Perhaps this is the source of the error below.")}}catch(i){if(console&&console.error)console.error(i)}return t}prepareVisitors(){this.listeners={};let t=(r,s,i)=>{if(!this.listeners[s])this.listeners[s]=[];this.listeners[s].push([r,i])};for(let r of this.plugins)if(typeof r==="object")for(let s in r){if(!bi[s]&&/^[A-Z]/.test(s))throw Error(`Unknown event ${s} in ${r.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!vi[s]){if(typeof r[s]==="object")for(let i in r[s])if(i==="*")t(r,s,r[s][i]);else t(r,s+"-"+i.toLowerCase(),r[s][i]);else if(typeof r[s]==="function")t(r,s,r[s])}}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let t=0;t<this.plugins.length;t++){let r=this.plugins[t],s=this.runOnRoot(r);if(ue(s))try{await s}catch(i){throw this.handleError(i)}}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;while(!t[R]){t[R]=!0;let r=[Rr(t)];while(r.length>0){let s=this.visitTick(r);if(ue(s))try{await s}catch(i){let o=r[r.length-1].node;throw this.handleError(i,o)}}}if(this.listeners.OnceExit)for(let[r,s]of this.listeners.OnceExit){this.result.lastPlugin=r;try{if(t.type==="document"){let i=t.nodes.map((o)=>s(o,this.helpers));await Promise.all(i)}else await s(t,this.helpers)}catch(i){throw this.handleError(i)}}}return this.processed=!0,this.stringify()}runOnRoot(t){this.result.lastPlugin=t;try{if(typeof t==="object"&&t.Once){if(this.result.root.type==="document"){let r=this.result.root.nodes.map((s)=>t.Once(s,this.helpers));if(ue(r[0]))return Promise.all(r);return r}return t.Once(this.result.root,this.helpers)}else if(typeof t==="function")return t(this.result.root,this.result)}catch(r){throw this.handleError(r)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let t=this.result.opts,r=yi;if(t.syntax)r=t.syntax.stringify;if(t.stringifier)r=t.stringifier;if(r.stringify)r=r.stringify;let s=this.result.root.source;if(t.map===void 0&&!(s&&s.input&&s.input.map)){let l="";return r(this.result.root,(u)=>{l+=u}),this.result.css=l,this.result}let o=new mi(r,this.result.root,this.result.opts).generate();return this.result.css=o[0],this.result.map=o[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let t of this.plugins){let r=this.runOnRoot(t);if(ue(r))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;while(!t[R])t[R]=!0,this.walkSync(t);if(this.listeners.OnceExit)if(t.type==="document")for(let r of t.nodes)this.visitSync(this.listeners.OnceExit,r);else this.visitSync(this.listeners.OnceExit,t)}return this.result}then(t,r){if(!("from"in this.opts))xi("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.");return this.async().then(t,r)}toString(){return this.css}visitSync(t,r){for(let[s,i]of t){this.result.lastPlugin=s;let o;try{o=i(r,this.helpers)}catch(l){throw this.handleError(l,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(ue(o))throw this.getAsyncError()}}visitTick(t){let r=t[t.length-1],{node:s,visitors:i}=r;if(s.type!=="root"&&s.type!=="document"&&!s.parent){t.pop();return}if(i.length>0&&r.visitorIndex<i.length){let[l,u]=i[r.visitorIndex];if(r.visitorIndex+=1,r.visitorIndex===i.length)r.visitors=[],r.visitorIndex=0;this.result.lastPlugin=l;try{return u(s.toProxy(),this.helpers)}catch(a){throw this.handleError(a,s)}}if(r.iterator!==0){let l=r.iterator;if(r.descending)r.descending=!1,s.indexes[l]+=1;let u;while(u=s.nodes[s.indexes[l]]){if(!u[R]){u[R]=!0,r.descending=!0,t.push(Rr(u));return}s.indexes[l]+=1}r.iterator=0,delete s.indexes[l]}let o=r.events;while(r.eventIndex<o.length){let l=o[r.eventIndex];if(r.eventIndex+=1,l===F){if(s.nodes&&s.nodes.length)s[R]=!0,r.iterator=s.getIterator();return}else if(this.listeners[l]){r.visitors=this.listeners[l];return}}t.pop()}walkSync(t){t[R]=!0;let r=[{eventIndex:0,events:ft(t),iterator:0,node:t}];while(r.length>0){let s=r[r.length-1],i=s.node;if(s.iterator!==0){let o=s.iterator;if(s.descending)s.descending=!1,i.indexes[o]+=1;let l,u=!1;while(l=i.nodes[i.indexes[o]]){if(!l[R]){l[R]=!0,s.descending=!0,r.push({eventIndex:0,events:ft(l),iterator:0,node:l}),u=!0;break}i.indexes[o]+=1}if(u)continue;s.iterator=0,delete i.indexes[o]}if(s.eventIndex<s.events.length){let o=s.events[s.eventIndex];if(s.eventIndex+=1,o===F){if(i.nodes&&i.nodes.length)s.iterator=i.getIterator()}else{let l=this.listeners[o];if(l){if(this.visitSync(l,i.toProxy()))r.pop()}}continue}r.pop()}}warnings(){return this.sync().warnings()}}_.registerPostcss=(t)=>{ct=t};Nr.exports=_;_.default=_;Lr.registerLazyResult(_);Br.registerLazyResult(_)});var Tr=e(function(Jn,Mr){var Ci=nt(),Ei=Be(),Oi=Me(),Ai=Y(),Pi=ut();class _e{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let t,r=Ei;try{t=r(this._css,this._opts)}catch(s){this.error=s}if(this.error)throw this.error;else return this._root=t,t}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(t,r,s){r=r.toString(),this.stringified=!1,this._processor=t,this._css=r,this._opts=s,this._map=void 0;let i=Ai;this.result=new Oi(this._processor,void 0,this._opts),this.result.css=r;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let l=new Ci(i,void 0,this._opts,r);if(l.isMap()){let[u,a]=l.generate();if(u)this.result.css=u;if(a)this.result.map=a}else l.clearAnnotation(),this.result.css=l.css}async(){if(this.error)return Promise.reject(this.error);return Promise.resolve(this.result)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}sync(){if(this.error)throw this.error;return this.result}then(t,r){if(!("from"in this._opts))Pi("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.");return this.async().then(t,r)}toString(){return this._css}warnings(){return[]}}Mr.exports=_e;_e.default=_e});var jr=e(function(Vn,$r){var qr=Se(),Ri=ht(),ki=Tr(),Ur=D();class W{constructor(t=[]){this.version="8.5.28",this.plugins=this.normalize(t)}normalize(t){let r=[];for(let s of t){if(s.postcss===!0)s=s();else if(s.postcss)s=s.postcss;if(typeof s==="object"&&Array.isArray(s.plugins))r=r.concat(s.plugins);else if(typeof s==="object"&&s.postcssPlugin)r.push(s);else if(typeof s==="function")r.push(s);else if(typeof s==="object"&&(s.parse||s.stringify))throw Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.");else throw Error(s+" is not a PostCSS plugin")}return r}process(t,r={}){if(!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax)return new ki(this,t,r);else return new Ri(this,t,r)}use(t){return this.plugins=this.plugins.concat(this.normalize([t])),this}}$r.exports=W;W.default=W;Ur.registerProcessor(W);qr.registerProcessor(W)});var Kr=e(function(Hn,Gr){var Dr=xe(),Fr=te(),Ii=N(),Bi=me(),Wr=re(),zr=Se(),Li=lr(),Ni=oe(),Jr=ht(),Mi=st(),_i=ee(),Ti=Be(),pt=jr(),Ui=Me(),Vr=D(),Hr=Oe(),ji=Y(),Di=lt();function x(...t){if(t.length===1&&Array.isArray(t[0]))t=t[0];return new pt(t)}x.plugin=function(r,s){let i=!1;function o(...u){if(console&&console.warn&&!i){if(i=!0,console.warn(r+`: postcss.plugin was deprecated. Migration guide:
33
33
  https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("zh"))console.warn(r+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
34
- `+"https://www.w3ctech.com/topic/2226")}let a=s(...u);return a.postcssPlugin=r,a.postcssVersion=new pt().version,a}let l;return Object.defineProperty(o,"postcss",{get(){if(!l)l=o();return l}}),o.process=function(u,a,f){return x([o(f)]).process(u,a)},o};x.stringify=Di;x.parse=$i;x.fromJSON=_i;x.list=qi;x.comment=(t)=>new Fr(t);x.atRule=(t)=>new Dr(t);x.decl=(t)=>new Wr(t);x.rule=(t)=>new Hr(t);x.root=(t)=>new Vr(t);x.document=(t)=>new zr(t);x.CssSyntaxError=Ni;x.Declaration=Wr;x.Container=Ii;x.Processor=pt;x.Document=zr;x.Comment=Fr;x.Warning=Wi;x.AtRule=Dr;x.Result=ji;x.Input=Ti;x.Rule=Hr;x.Root=Vr;x.Node=Ui;Jr.registerPostcss(x);Gr.exports=x;x.default=x});import{mkdir as mn,rm as gn}from"fs/promises";import{join as yn}from"path";import Qi from"bun-plugin-tailwind";import{realpathSync as Yi}from"fs";import{basename as qe,dirname as V,join as fe,relative as Xi,sep as ls}from"path";var S=g(Kr(),1),Qr=S.default,Gn=S.default.stringify,Kn=S.default.fromJSON,Qn=S.default.plugin,Yn=S.default.parse,Xn=S.default.list,Zn=S.default.document,eo=S.default.comment,to=S.default.atRule,ro=S.default.rule,so=S.default.decl,io=S.default.root,no=S.default.CssSyntaxError,oo=S.default.Declaration,lo=S.default.Container,ao=S.default.Processor,uo=S.default.Document,fo=S.default.Comment,co=S.default.Warning,ho=S.default.AtRule,po=S.default.Result,mo=S.default.Input,go=S.default.Rule,yo=S.default.Root,wo=S.default.Node;var zi=/^(:root|:host|html|body)(?![\w-])/;function Ji(t){return t?.type==="atrule"&&"name"in t&&typeof t.name==="string"&&/keyframes$/i.test(t.name)}function Yr(t,r){let s=`[data-applet=${JSON.stringify(r)}]`,i=Qr.parse(t);return i.walkRules((o)=>{if(Ji(o.parent))return;o.selectors=o.selectors.map((l)=>{let u=l.trim(),a=zi.exec(u);if(a)return s+u.slice(a[0].length);return`${s} ${u}`})}),i.toString()}var Xr=g(fr(),1);import{basename as Vi}from"path";var Hi=Se,Gi={rowSpan:1,colSpan:2},Ki=[1,2,3,4];function Zr(t,r=!1){let s=Xr.parse(t,{sourceType:"module",plugins:["typescript","jsx"],tokens:r}),o=(s.tokens??[]).filter((l)=>l.end===l.start+1&&t[l.start]===",").map((l)=>l.start);for(let l of s.program.body){if(l.type!=="ExportNamedDeclaration")continue;if(l.declaration?.type!=="VariableDeclaration")continue;let u=l.declaration.declarations.find((f)=>f.id.type==="Identifier"&&f.id.name==="config");if(!u)continue;let a=u.init;while(a?.type==="TSAsExpression"||a?.type==="TSSatisfiesExpression")a=a.expression;return{object:a?.type==="ObjectExpression"?a:null,commas:o}}return{object:void 0,commas:o}}function es(t){return Zr(t).object?.properties??null}function J(t){if(t.type==="SpreadElement")return null;if(t.key.type==="StringLiteral")return t.key.value;if(!t.computed&&t.key.type==="Identifier")return t.key.name;return null}function ts(t){if(t.type!=="ArrayExpression")return;let r=t.elements.filter((s)=>s?.type==="StringLiteral").map((s)=>s.value);return r.length?r:void 0}async function rs(t){let r=await Bun.file(t).text(),s=Vi(t).replace(/\.tsx?$/,""),i=es(r);if(!i)return null;let o={};for(let l of i){if(l.type!=="ObjectProperty")continue;let u=J(l);if(u==="requiredEnv"){let f=ts(l.value);if(f)o.requiredEnv=f;continue}if(u!=="rowSpan"&&u!=="colSpan")continue;if(l.value.type!=="NumericLiteral")continue;let a=l.value.value;if(!Ki.includes(a)){console.warn(`[mei] "${s}": config.${u}=${a} is out of 1\u20134 range, using default`);continue}o[u]=a}return{...Gi,...o}}async function ss(t){let r=await Bun.file(t).text(),s=es(r);if(!s)return null;let i={};for(let o of s){if(o.type!=="ObjectProperty")continue;let l=J(o);if(l==="title"){if(o.value.type==="StringLiteral")i.title=o.value.value;continue}if(l==="icon"){if(o.value.type==="StringLiteral"){let u=o.value.value;if(!rt(u))throw Error(`Unknown view icon id "${u}". Use one of: ${Hi.join(", ")}`);i.icon=u}continue}if(l==="requiredEnv"){let u=ts(o.value);if(u)i.requiredEnv=u}}return i}function z(t){let{start:r,end:s}=t;if(r===null||r===void 0||s===null||s===void 0)throw Error("Could not locate the view config in its source");return{start:r,end:s}}function Li(t,r){let{object:s,commas:i}=Zr(t,!0);if(s===null)throw Error("View config must be an exported object literal to rename this view");let o=JSON.stringify(r);if(s===void 0)return`export const config = { title: ${o} }
34
+ `+"https://www.w3ctech.com/topic/2226")}let a=s(...u);return a.postcssPlugin=r,a.postcssVersion=new pt().version,a}let l;return Object.defineProperty(o,"postcss",{get(){if(!l)l=o();return l}}),o.process=function(u,a,f){return x([o(f)]).process(u,a)},o};x.stringify=ji;x.parse=Ti;x.fromJSON=Li;x.list=Mi;x.comment=(t)=>new Fr(t);x.atRule=(t)=>new Dr(t);x.decl=(t)=>new Wr(t);x.rule=(t)=>new Hr(t);x.root=(t)=>new Vr(t);x.document=(t)=>new zr(t);x.CssSyntaxError=Bi;x.Declaration=Wr;x.Container=Ii;x.Processor=pt;x.Document=zr;x.Comment=Fr;x.Warning=Di;x.AtRule=Dr;x.Result=Ui;x.Input=Ni;x.Rule=Hr;x.Root=Vr;x.Node=_i;Jr.registerPostcss(x);Gr.exports=x;x.default=x});import{mkdir as mn,rm as gn}from"fs/promises";import{join as yn}from"path";import Qi from"bun-plugin-tailwind";import{realpathSync as Yi}from"fs";import{basename as Te,dirname as V,join as fe,relative as Xi,sep as ls}from"path";var S=g(Kr(),1),Qr=S.default,Gn=S.default.stringify,Kn=S.default.fromJSON,Qn=S.default.plugin,Yn=S.default.parse,Xn=S.default.list,Zn=S.default.document,eo=S.default.comment,to=S.default.atRule,ro=S.default.rule,so=S.default.decl,io=S.default.root,no=S.default.CssSyntaxError,oo=S.default.Declaration,lo=S.default.Container,ao=S.default.Processor,uo=S.default.Document,fo=S.default.Comment,co=S.default.Warning,ho=S.default.AtRule,po=S.default.Result,mo=S.default.Input,go=S.default.Rule,yo=S.default.Root,wo=S.default.Node;var Fi=/^(:root|:host|html|body)(?![\w-])/;function Wi(t){return t?.type==="atrule"&&"name"in t&&typeof t.name==="string"&&/keyframes$/i.test(t.name)}function Yr(t,r){let s=`[data-applet=${JSON.stringify(r)}]`,i=Qr.parse(t);return i.walkRules((o)=>{if(Wi(o.parent))return;o.selectors=o.selectors.map((l)=>{let u=l.trim(),a=Fi.exec(u);if(a)return s+u.slice(a[0].length);return`${s} ${u}`})}),i.toString()}var Xr=g(_r(),1);import{basename as zi}from"path";var Ji=ve,Vi={rowSpan:1,colSpan:2},Ki=[1,2,3,4];function Zr(t,r=!1){let s=Xr.parse(t,{sourceType:"module",plugins:["typescript","jsx"],tokens:r}),o=(s.tokens??[]).filter((l)=>l.end===l.start+1&&t[l.start]===",").map((l)=>l.start);for(let l of s.program.body){if(l.type!=="ExportNamedDeclaration")continue;if(l.declaration?.type!=="VariableDeclaration")continue;let u=l.declaration.declarations.find((f)=>f.id.type==="Identifier"&&f.id.name==="config");if(!u)continue;let a=u.init;while(a?.type==="TSAsExpression"||a?.type==="TSSatisfiesExpression")a=a.expression;return{object:a?.type==="ObjectExpression"?a:null,commas:o}}return{object:void 0,commas:o}}function es(t){return Zr(t).object?.properties??null}function J(t){if(t.type==="SpreadElement")return null;if(t.key.type==="StringLiteral")return t.key.value;if(!t.computed&&t.key.type==="Identifier")return t.key.name;return null}function ts(t){if(t.type!=="ArrayExpression")return;let r=t.elements.filter((s)=>s?.type==="StringLiteral").map((s)=>s.value);return r.length?r:void 0}async function rs(t){let r=await Bun.file(t).text(),s=zi(t).replace(/\.tsx?$/,""),i=es(r);if(!i)return null;let o={};for(let l of i){if(l.type!=="ObjectProperty")continue;let u=J(l);if(u==="requiredEnv"){let f=ts(l.value);if(f)o.requiredEnv=f;continue}if(u!=="rowSpan"&&u!=="colSpan")continue;if(l.value.type!=="NumericLiteral")continue;let a=l.value.value;if(!Ki.includes(a)){console.warn(`[mei] "${s}": config.${u}=${a} is out of 1\u20134 range, using default`);continue}o[u]=a}return{...Vi,...o}}async function ss(t){let r=await Bun.file(t).text(),s=es(r);if(!s)return null;let i={};for(let o of s){if(o.type!=="ObjectProperty")continue;let l=J(o);if(l==="title"){if(o.value.type==="StringLiteral")i.title=o.value.value;continue}if(l==="icon"){if(o.value.type==="StringLiteral"){let u=o.value.value;if(!at(u))throw Error(`Unknown view icon id "${u}". Use one of: ${Ji.join(", ")}`);i.icon=u}continue}if(l==="requiredEnv"){let u=ts(o.value);if(u)i.requiredEnv=u}}return i}function z(t){let{start:r,end:s}=t;if(r===null||r===void 0||s===null||s===void 0)throw Error("Could not locate the view config in its source");return{start:r,end:s}}function Gi(t,r){let{object:s,commas:i}=Zr(t,!0);if(s===null)throw Error("View config must be an exported object literal to rename this view");let o=JSON.stringify(r);if(s===void 0)return`export const config = { title: ${o} }
35
35
 
36
- ${t}`;let l=[...s.properties].reverse().find((C)=>C.type==="SpreadElement"||J(C)==="title"||C.computed&&J(C)===null);if(l&&J(l)==="title"){let C=l.type==="ObjectProperty"&&!l.shorthand,{start:I,end:M}=z(C?l.value:l);return t.slice(0,I)+(C?o:`title: ${o}`)+t.slice(M)}let u=[];for(let C=0;C<s.properties.length;C++){let I=s.properties[C];if(J(I)!=="title")continue;let M=z(I),Ue=z(s.properties[C+1]),G=i.find((L)=>L>=M.end&&L<Ue.start);if(G===void 0)throw Error("Could not locate the title separator");u.push({...M,text:""},{start:G,end:G+1,text:""})}let{start:a,end:f}=z(s),h=f-1,m=t.lastIndexOf(`
36
+ ${t}`;let l=[...s.properties].reverse().find((C)=>C.type==="SpreadElement"||J(C)==="title"||C.computed&&J(C)===null);if(l&&J(l)==="title"){let C=l.type==="ObjectProperty"&&!l.shorthand,{start:I,end:M}=z(C?l.value:l);return t.slice(0,I)+(C?o:`title: ${o}`)+t.slice(M)}let u=[];for(let C=0;C<s.properties.length;C++){let I=s.properties[C];if(J(I)!=="title")continue;let M=z(I),qe=z(s.properties[C+1]),G=i.find((L)=>L>=M.end&&L<qe.start);if(G===void 0)throw Error("Could not locate the title separator");u.push({...M,text:""},{start:G,end:G+1,text:""})}let{start:a,end:f}=z(s),h=f-1,m=t.lastIndexOf(`
37
37
  `,h-1)+1,c=t.slice(m,h),d=m>a&&/^[\t ]*$/.test(c),y=s.properties[0],b=y?z(y).start:a,E=t.slice(t.lastIndexOf(`
38
38
  `,b-1)+1,b),p=/^[\t ]*$/.test(E)?E:c+" ",O=d?m:h,k=t.includes(`\r
39
39
  `)?`\r
40
40
  `:`
41
- `;u.push({start:O,end:O,text:d?`${p}title: ${o},${k}`:` title: ${o} `});let H=s.properties.at(-1);if(H&&typeof s.extra?.trailingComma!=="number"){let{end:C}=z(H);u.push({start:C,end:C,text:","})}for(let C of u.sort((I,M)=>M.start-I.start))t=t.slice(0,C.start)+C.text+t.slice(C.end);return t}var Zi=/\.(png|jpe?g|gif|svg|webp|avif|ico|woff2?|ttf|otf)$/i,en=["react","react/jsx-runtime","react/jsx-dev-runtime","react-dom","react-dom/client"],tn=on("rpc"),rn=on("moi"),sn=on("collab");function is(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}async function as(t){let r=await Bun.file(t).text(),s=new Bun.Transpiler({loader:"ts"}),{exports:i}=s.scan(r),o=i.filter((l)=>{let u=is(l);return!new RegExp(`export\\s+(type|interface)\\s+${u}\\b`).test(r)});for(let l of o){let u=is(l);if(!new RegExp(`export\\s+async\\s+function\\*?\\s+${u}\\b|export\\s+const\\s+${u}\\s*=\\s*async\\s*[\\(]`).test(r))throw Error(`"${l}" in ${qe(t)} is not an async function. .server.ts files can only export async functions.`)}return o}function ns(t){try{return Yi(t)}catch{return t}}function nn(t,r){let s=Xi(ns(r),ns(t)).replace(/\.server\.ts$/,"").split(ls).join("/");if(s===".."||s.startsWith("../"))throw Error(`Server file "${t}" escapes the Moi root "${r}"`);return s}function ln(t,r){let s=[],i=[];return{plugin:{name:"applet-runtime",setup(l){l.onResolve({filter:/^mei:rpc$/},()=>({path:tn})),l.onResolve({filter:/^devalue$/},()=>({path:Bun.resolveSync("devalue",import.meta.dir)})),l.onResolve({filter:/^moi\/collab$/},()=>({path:sn})),l.onResolve({filter:/^moi$/},()=>({path:rn})),l.onLoad({filter:Zi},async(u)=>{let a=new Uint8Array(await Bun.file(u.path).arrayBuffer()),f=Bun.hash(a).toString(16).slice(0,8),h=u.path.lastIndexOf("."),m=u.path.slice(h+1).toLowerCase(),d=`${qe(u.path.slice(0,h)).replace(/[^a-zA-Z0-9_-]/g,"-")}-${f}.${m}`;if(!i.some((y)=>y.name===d))i.push({name:d,data:a,kind:"asset"});return{contents:`export default new URL(${JSON.stringify("./"+d)}, import.meta.url).href`,loader:"js"}}),l.onResolve({filter:/\.server(\.ts)?$/},(u)=>{if(!u.path.startsWith("."))return;let a=u.importer&&u.importer.includes(ls)?V(u.importer):t;return{path:fe(a,u.path.replace(/\.server(\.ts)?$/,".server.ts")),namespace:"server-proxy"}}),l.onLoad({filter:/.*/,namespace:"server-proxy"},async(u)=>{let a=await as(u.path),f=nn(u.path,r);return s.push({name:f,exports:a}),{contents:['import { rpc } from "mei:rpc";',...a.map((m)=>`export const ${m} = rpc(${JSON.stringify(f)}, ${JSON.stringify(m)});`)].join(`
42
- `),loader:"js"}})}},serverModules:s,assets:i}}var an=v("client","theme.css"),un=nt?[v("runtime","assets","tw-animate.css"),v("runtime","assets","shadcn.css")]:[fe(V(Bun.resolveSync("tw-animate-css/package.json",import.meta.dir)),"dist","tw-animate.css"),Bun.resolveSync("shadcn/tailwind.css",import.meta.dir)];async function fn(t,r,s){let i=V(t),o=fe(r,".build"),l=fe(o,`${s}-tailwind.css`),u=await Promise.all(un.map((f)=>Bun.file(f).text())),a=["@import 'tailwindcss';",await Bun.file(an).text(),...u,"@layer base { * { @apply border-border outline-ring/50; } }","@custom-variant dark (&:is(.dark *));","@custom-variant dark-or-vivid (&:is(.dark *, [data-vivid], [data-vivid] *));",`@source "${i}";`].join(`
43
- `);return await Bun.write(l,a),l}function cn(t,r){return{name:"widget-entry",setup(s){s.onResolve({filter:/^__widget-entry$/},()=>({path:"__widget-entry",namespace:"widget-entry"})),s.onLoad({filter:/.*/,namespace:"widget-entry"},()=>({contents:[`import ${JSON.stringify(r)};`,`export { default } from ${JSON.stringify(t)};`,'export { __attachBridge, __getBridge } from "moi";'].join(`
44
- `),loader:"js"}))}}}function hn(t,r){if(!r.trim())return t;return["(css => {",' const key = new URL(".", import.meta.url).pathname.replace(/\\/$/, "");'," (window.__moiAppletCss ||= new Map()).set(key, css);",`})(${JSON.stringify(r)});`].join(`
41
+ `;u.push({start:O,end:O,text:d?`${p}title: ${o},${k}`:` title: ${o} `});let H=s.properties.at(-1);if(H&&typeof s.extra?.trailingComma!=="number"){let{end:C}=z(H);u.push({start:C,end:C,text:","})}for(let C of u.sort((I,M)=>M.start-I.start))t=t.slice(0,C.start)+C.text+t.slice(C.end);return t}var Zi=/\.(png|jpe?g|gif|svg|webp|avif|ico|woff2?|ttf|otf)$/i,en=["react","react/jsx-runtime","react/jsx-dev-runtime","react-dom","react-dom/client"],tn=pn("rpc"),rn=pn("moi"),sn=pn("collab");function is(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}async function as(t){let r=await Bun.file(t).text(),s=new Bun.Transpiler({loader:"ts"}),{exports:i}=s.scan(r),o=i.filter((l)=>{let u=is(l);return!new RegExp(`export\\s+(type|interface)\\s+${u}\\b`).test(r)});for(let l of o){let u=is(l);if(!new RegExp(`export\\s+async\\s+function\\*?\\s+${u}\\b|export\\s+const\\s+${u}\\s*=\\s*async\\s*[\\(]`).test(r))throw Error(`"${l}" in ${Te(t)} is not an async function. .server.ts files can only export async functions.`)}return o}function ns(t){try{return Yi(t)}catch{return t}}function nn(t,r){let s=Xi(ns(r),ns(t)).replace(/\.server\.ts$/,"").split(ls).join("/");if(s===".."||s.startsWith("../"))throw Error(`Server file "${t}" escapes the Moi root "${r}"`);return s}function on(t,r){let s=[],i=[];return{plugin:{name:"applet-runtime",setup(l){l.onResolve({filter:/^mei:rpc$/},()=>({path:tn})),l.onResolve({filter:/^devalue$/},()=>({path:Bun.resolveSync("devalue",import.meta.dir)})),l.onResolve({filter:/^moi\/collab$/},()=>({path:sn})),l.onResolve({filter:/^moi$/},()=>({path:rn})),l.onLoad({filter:Zi},async(u)=>{let a=new Uint8Array(await Bun.file(u.path).arrayBuffer()),f=Bun.hash(a).toString(16).slice(0,8),h=u.path.lastIndexOf("."),m=u.path.slice(h+1).toLowerCase(),d=`${Te(u.path.slice(0,h)).replace(/[^a-zA-Z0-9_-]/g,"-")}-${f}.${m}`;if(!i.some((y)=>y.name===d))i.push({name:d,data:a,kind:"asset"});return{contents:`export default new URL(${JSON.stringify("./"+d)}, import.meta.url).href`,loader:"js"}}),l.onResolve({filter:/\.server(\.ts)?$/},(u)=>{if(!u.path.startsWith("."))return;let a=u.importer&&u.importer.includes(ls)?V(u.importer):t;return{path:fe(a,u.path.replace(/\.server(\.ts)?$/,".server.ts")),namespace:"server-proxy"}}),l.onLoad({filter:/.*/,namespace:"server-proxy"},async(u)=>{let a=await as(u.path),f=nn(u.path,r);return s.push({name:f,exports:a}),{contents:['import { rpc } from "mei:rpc";',...a.map((m)=>`export const ${m} = rpc(${JSON.stringify(f)}, ${JSON.stringify(m)});`)].join(`
42
+ `),loader:"js"}})}},serverModules:s,assets:i}}var ln=v("client","theme.css"),an=De?[v("runtime","assets","tw-animate.css"),v("runtime","assets","shadcn.css")]:[fe(V(Bun.resolveSync("tw-animate-css/package.json",import.meta.dir)),"dist","tw-animate.css"),Bun.resolveSync("shadcn/tailwind.css",import.meta.dir)];async function un(t,r,s){let i=V(t),o=fe(r,".build"),l=fe(o,`${s}-tailwind.css`),u=await Promise.all(an.map((f)=>Bun.file(f).text())),a=["@import 'tailwindcss';",await Bun.file(ln).text(),...u,"@layer base { * { @apply border-border outline-ring/50; } }","@custom-variant dark (&:is(.dark *));","@custom-variant dark-or-vivid (&:is(.dark *, [data-vivid], [data-vivid] *));",`@source "${i}";`].join(`
43
+ `);return await Bun.write(l,a),l}function fn(t,r){return{name:"widget-entry",setup(s){s.onResolve({filter:/^__widget-entry$/},()=>({path:"__widget-entry",namespace:"widget-entry"})),s.onLoad({filter:/.*/,namespace:"widget-entry"},()=>({contents:[`import ${JSON.stringify(r)};`,`export { default } from ${JSON.stringify(t)};`,'export { __attachBridge, __getBridge } from "moi";'].join(`
44
+ `),loader:"js"}))}}}function cn(t,r){if(!r.trim())return t;return["(css => {",' const key = new URL(".", import.meta.url).pathname.replace(/\\/$/, "");'," (window.__moiAppletCss ||= new Map()).set(key, css);",`})(${JSON.stringify(r)});`].join(`
45
45
  `)+`
46
46
  `+t}function os(t){let r=t.level==="error"?"error":t.level,s=t.position?`${t.position.file}:${t.position.line}:${t.position.column}: `:"",i=t.position?.lineText?`
47
- ${t.position.lineText.trim()}`:"";return`${s}${r}: ${t.message}${i}`}function pn(t){let r=/from\s+['"](\.\.?\/[^'"]+?)\.server(?:\.ts)?['"]/g,s=[],i;while((i=r.exec(t))!==null)s.push(i[1]);return s}async function dn(t){let r=V(t),s=await Bun.file(t).text();for(let i of pn(s)){let o=fe(r,`${i}.server.ts`);if(await Bun.file(o).exists())await as(o)}}async function us(t,r=V(t),s="widget"){let i=V(t),o=qe(t).replace(/\.tsx?$/,"");await dn(t);let{plugin:l,serverModules:u,assets:a}=ln(i,r),f=await fn(t,r,s),h;try{h=await Bun.build({entrypoints:["__widget-entry"],format:"esm",target:"browser",sourcemap:"inline",external:en,define:{"process.env.NODE_ENV":JSON.stringify("production")},naming:{entry:"index.[ext]",chunk:"chunk-[hash].[ext]"},root:i,plugins:[cn(t,f),l,Qi]})}catch(p){let O=p.errors??[],k=O.length?O.map(os).join(`
47
+ ${t.position.lineText.trim()}`:"";return`${s}${r}: ${t.message}${i}`}function hn(t){let r=/from\s+['"](\.\.?\/[^'"]+?)\.server(?:\.ts)?['"]/g,s=[],i;while((i=r.exec(t))!==null)s.push(i[1]);return s}async function dn(t){let r=V(t),s=await Bun.file(t).text();for(let i of hn(s)){let o=fe(r,`${i}.server.ts`);if(await Bun.file(o).exists())await as(o)}}async function us(t,r=V(t),s="widget"){let i=V(t),o=Te(t).replace(/\.tsx?$/,"");await dn(t);let{plugin:l,serverModules:u,assets:a}=on(i,r),f=await un(t,r,s),h;try{h=await Bun.build({entrypoints:["__widget-entry"],format:"esm",target:"browser",sourcemap:"inline",external:en,define:{"process.env.NODE_ENV":JSON.stringify("production")},naming:{entry:"index.[ext]",chunk:"chunk-[hash].[ext]"},root:i,plugins:[fn(t,f),l,Qi]})}catch(p){let O=p.errors??[],k=O.length?O.map(os).join(`
48
48
  `):p instanceof Error?p.message:String(p);throw Error(`Build failed for "${o}":
49
49
  ${k}`)}if(!h.success){let p=h.logs.map(os).join(`
50
50
  `);throw Error(`Build failed for "${o}":
51
- ${p}`)}let m=h.outputs.find((p)=>p.kind==="entry-point"),c=h.outputs.filter((p)=>p.kind==="chunk"),d=h.outputs.find((p)=>p.kind==="asset"&&p.path.endsWith(".css"));if(!m)throw Error(`Build produced no JS output for "${o}"`);let y=await m.text();if(d){let p=s==="widget"?"widgets":"views",O=Yr(await d.text(),`${p}/${o}`);y=hn(y,O)}let b=[{name:"index.js",data:y,kind:"code"}];for(let p of c)b.push({name:qe(p.path),data:await p.text(),kind:"code"});b.push(...a);let E=s==="view"?await ss(t):await rs(t);return{js:y,files:b,serverModules:u,config:E}}var wn=he("applets/build-worker-entry.ts"),ce=new Set;function Mi(){for(let t of ce)t.kill();ce.clear()}async function xn(t){return Promise.all(t.jobs.map(async(r)=>{try{let s=await us(r.srcPath,t.moiRoot,t.kind);await gn(r.outDir,{recursive:!0,force:!0}),await mn(r.outDir,{recursive:!0});for(let i of s.files)await Bun.write(yn(r.outDir,i.name),i.data);return{name:r.name,status:"built",serverModules:s.serverModules.map((i)=>i.name),config:s.config}}catch(s){return{name:r.name,status:"failed",error:s instanceof Error?s.message:"Unknown error"}}}))}function Fi(t){if(t.jobs.length===0)return Promise.resolve([]);return new Promise((r)=>{let s=!1,i=(u)=>{if(s)return;s=!0,r(u)},o={type:"build",...t},l=Bun.spawn(j([process.execPath,wn]),{stdio:["ignore","inherit","inherit"],serialization:"json",ipc(u,a){let f=u;if(f.type!=="result"||!Array.isArray(f.results))return;i(f.results),ce.delete(a),a.kill()},onExit(u,a,f){ce.delete(u);let h=f?`signal ${f}`:`code ${a}`;i(t.jobs.map((m)=>({name:m.name,status:"failed",error:`Build worker exited (${h}) before reporting a result`})))}});ce.add(l),l.send(o)})}function Bi(){let t=process.ppid;process.on("disconnect",()=>process.exit(0)),setInterval(()=>{if(process.ppid!==t)process.exit(0)},500),process.on("message",async(r)=>{let s=r;if(s.type!=="build"||!Array.isArray(s.jobs))return;let o={type:"result",results:await xn(s)};process.send?.(o)})}
52
- export{Li,Mi,Fi,Bi};
51
+ ${p}`)}let m=h.outputs.find((p)=>p.kind==="entry-point"),c=h.outputs.filter((p)=>p.kind==="chunk"),d=h.outputs.find((p)=>p.kind==="asset"&&p.path.endsWith(".css"));if(!m)throw Error(`Build produced no JS output for "${o}"`);let y=await m.text();if(d){let p=s==="widget"?"widgets":"views",O=Yr(await d.text(),`${p}/${o}`);y=cn(y,O)}let b=[{name:"index.js",data:y,kind:"code"}];for(let p of c)b.push({name:Te(p.path),data:await p.text(),kind:"code"});b.push(...a);let E=s==="view"?await ss(t):await rs(t);return{js:y,files:b,serverModules:u,config:E}}var wn=ge("applets/build-worker-entry.ts"),ce=new Set;function $i(){for(let t of ce)t.kill();ce.clear()}async function xn(t){return Promise.all(t.jobs.map(async(r)=>{try{let s=await us(r.srcPath,t.moiRoot,t.kind);await gn(r.outDir,{recursive:!0,force:!0}),await mn(r.outDir,{recursive:!0});for(let i of s.files)await Bun.write(yn(r.outDir,i.name),i.data);return{name:r.name,status:"built",serverModules:s.serverModules.map((i)=>i.name),config:s.config}}catch(s){return{name:r.name,status:"failed",error:s instanceof Error?s.message:"Unknown error"}}}))}function qi(t){if(t.jobs.length===0)return Promise.resolve([]);return new Promise((r)=>{let s=!1,i=(u)=>{if(s)return;s=!0,r(u)},o={type:"build",...t},l=Bun.spawn(U([process.execPath,wn]),{stdio:["ignore","inherit","inherit"],serialization:"json",ipc(u,a){let f=u;if(f.type!=="result"||!Array.isArray(f.results))return;i(f.results),ce.delete(a),a.kill()},onExit(u,a,f){ce.delete(u);let h=f?`signal ${f}`:`code ${a}`;i(t.jobs.map((m)=>({name:m.name,status:"failed",error:`Build worker exited (${h}) before reporting a result`})))}});ce.add(l),l.send(o)})}function Hi(){let t=process.ppid;process.on("disconnect",()=>process.exit(0)),setInterval(()=>{if(process.ppid!==t)process.exit(0)},500),process.on("message",async(r)=>{let s=r;if(s.type!=="build"||!Array.isArray(s.jobs))return;let o={type:"result",results:await xn(s)};process.send?.(o)})}
52
+ export{Gi,$i,qi,Hi};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- function R(e){return new Uint8Array(e).toBase64()}function x(e){return Uint8Array.fromBase64(e).buffer}function T(e){return Buffer.from(e).toString("base64")}function k(e){return Uint8Array.from(Buffer.from(e,"base64")).buffer}function D(e){let r=new Uint8Array(e),o="",t=32768;for(let i=0;i<r.length;i+=t){let s=r.subarray(i,i+t);o+=String.fromCharCode.apply(null,s)}return btoa(o)}function U(e){let r=atob(e),o=r.length,t=new Uint8Array(o);for(let i=0;i<o;i++)t[i]=r.charCodeAt(i);return t.buffer}var h=typeof Uint8Array.fromBase64==="function",A=typeof process==="object"&&process.versions?.node!==void 0,ji=h?R:A?T:D,d=h?x:A?k:U;var Ot=-1,kt=-2,mr=-3,hr=-4,yr=-5,Rt=-6,gr=-7,O=4294967295,m=4294967294;class ke extends Error{constructor(e,r,o,t){super(e);this.name="DevalueError",this.path=r.join(""),this.value=o,this.root=t}}var B=Object.getOwnPropertyNames(Object.prototype).sort().join("\x00");function I(e){let r=Object.getPrototypeOf(e);return r===Object.prototype||r===null||Object.getPrototypeOf(r)===null||Object.getOwnPropertyNames(r).sort().join("\x00")===B}function w(e){return Object.prototype.toString.call(e).slice(8,-1)}function L(e){switch(e){case'"':return"\\\"";case"<":return"\\u003C";case"\\":return"\\\\";case`
3
- `:return"\\n";case"\r":return"\\r";case"\t":return"\\t";case"\b":return"\\b";case"\f":return"\\f";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:return e<" "?`\\u${e.charCodeAt(0).toString(16).padStart(4,"0")}`:""}}function Re(e){let r="",o=0,t=e.length;for(let i=0;i<t;i+=1){let s=e[i],y=L(s);if(y)r+=e.slice(o,i)+y,o=i+1}return`"${o===0?e:r+e.slice(o)}"`}function E(e){return Object.getOwnPropertySymbols(e).filter((r)=>Object.getOwnPropertyDescriptor(e,r).enumerable)}var V=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function Tn(e){return V.test(e)?"."+e:"["+JSON.stringify(e)+"]"}function b(e){if(!Number.isInteger(e))return!1;if(e<0)return!1;if(e>m)return!1;return!0}function j(e){if(!Number.isInteger(e))return!1;if(e<0)return!1;if(e>O)return!1;return!0}function M(e){if(e.length===0)return!1;if(e.length>1&&e.charCodeAt(0)===48)return!1;for(let r=0;r<e.length;r++){let o=e.charCodeAt(r);if(o<48||o>57)return!1}return b(+e)}function Y(e){for(var r=e.length-1;r>=0;r--)if(M(e[r]))break;return r+1}function N(e){let r=Object.keys(e);return r.length=Y(r),r}function _r(e,r){if(!r)return e;let o={};for(let t of Object.keys(e))o[t]=r[t]??e[t];return o}var C=Object.freeze({kind:"not-plain"}),F=Object.freeze({kind:"symbol-keys"}),X={identify:(e)=>e,typeOf:(e)=>e===null?"null":typeof e,toPrimitive:(e)=>e,tagOf:(e)=>w(e),isThenable:(e)=>typeof e.then==="function",toPromise:(e)=>Promise.resolve(e),unbox:(e)=>e.valueOf(),toISOString:(e)=>isNaN(e.getDate())?"":e.toISOString(),toStringValue:(e)=>e.toString(),regExpInfo:(e)=>({source:e.source,flags:e.flags}),valuesOf:(e)=>e,entriesOf:(e)=>e,viewInfo:(e)=>({buffer:e.buffer,byteOffset:e.byteOffset,byteLength:e.byteLength,length:e.length,bufferByteLength:e.buffer.byteLength}),toArrayBuffer:(e)=>e,lengthOf:(e)=>e.length,hasOwn:(e,r)=>Object.hasOwn(e,r),indicesOf:(e)=>N(e),shapeOf:(e)=>{if(!I(e))return C;if(E(e).length>0)return F;return{kind:Object.getPrototypeOf(e)===null?"null-proto":"plain",keys:Object.keys(e)}},get:(e,r)=>e[r]},Wi=Object.freeze(X),z={fromPrimitive:(e)=>e,fromISOString:(e)=>new Date(e),fromStringValue:(e,r)=>{if(e==="URL")return new URL(r);if(e==="URLSearchParams")return new URLSearchParams(r);return Temporal[e.slice(9)].from(r)},fromArrayBuffer:(e)=>e,fromRegExpInfo:(e,r)=>new RegExp(e,r),fromViewInfo:(e,r,o,t)=>{let i=globalThis[e];return o!==void 0?new i(r,o,t):new i(r)},box:(e)=>Object(e),createArray:(e)=>Array(e),createSparseArray:(e)=>{let r=[];return r[m]=void 0,delete r[m],r.length=e,r},createObject:()=>({}),createNullPrototypeObject:()=>Object.create(null),createSet:()=>new Set,createMap:()=>new Map,set:(e,r,o)=>{e[r]=o},addValue:(e,r)=>{e.add(r)},addEntry:(e,r,o)=>{e.set(r,o)}},S=Object.freeze(z);function ut(e,r,o){return P(JSON.parse(e),r,o)}function P(e,r,o){let t=_r(S,o?.operations);if(typeof e==="number")return p(e,!0);if(!Array.isArray(e)||e.length===0)throw Error("Invalid input");let i=e,s=Array(i.length),y=null;function p(a,v=!1){if(a===Ot)return t.fromPrimitive(void 0);if(a===mr)return t.fromPrimitive(NaN);if(a===hr)return t.fromPrimitive(1/0);if(a===yr)return t.fromPrimitive(-1/0);if(a===Rt)return t.fromPrimitive(-0);if(v||typeof a!=="number")throw Error("Invalid input");if(a in s)return s[a];if(a>=i.length)throw Error("Invalid input");let n=i[a];if(!n||typeof n!=="object")s[a]=t.fromPrimitive(n);else if(Array.isArray(n))if(typeof n[0]==="string"){let u=n[0],l=r&&Object.hasOwn(r,u)?r[u]:void 0;if(l){let c=n[1];if(typeof c!=="number")c=i.push(n[1])-1;if(Object.hasOwn(s,c))return s[a]=l(s[c]);if(y??=new Set,y.has(c))throw Error("Invalid circular reference");return y.add(c),s[a]=l(p(c)),y.delete(c),s[a]}switch(u){case"Date":s[a]=t.fromISOString(n[1]);break;case"Set":let c=t.createSet();s[a]=c;for(let f=1;f<n.length;f+=1)t.addValue(c,p(n[f]));break;case"Map":let _=t.createMap();s[a]=_;for(let f=1;f<n.length;f+=2)t.addEntry(_,p(n[f]),p(n[f+1]));break;case"RegExp":s[a]=t.fromRegExpInfo(n[1],n[2]);break;case"Object":{let f=n[1];if(typeof i[f]==="object"&&i[f][0]!=="BigInt")throw Error("Invalid input");s[a]=t.box(p(f));break}case"BigInt":s[a]=t.fromPrimitive(BigInt(n[1]));break;case"null":let g=t.createNullPrototypeObject();s[a]=g;for(let f=1;f<n.length;f+=2){if(n[f]==="__proto__")throw Error("Cannot parse an object with a `__proto__` property");t.set(g,n[f],p(n[f+1]))}break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Float16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":case"DataView":{if(i[n[1]][0]!=="ArrayBuffer")throw Error("Invalid data");let f=p(n[1]);s[a]=t.fromViewInfo(u,f,n[2],n[3]);break}case"ArrayBuffer":{let f=n[1];if(typeof f!=="string")throw Error("Invalid ArrayBuffer encoding");s[a]=t.fromArrayBuffer(d(f));break}case"URL":case"URLSearchParams":case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":{s[a]=t.fromStringValue(u,n[1]);break}default:throw Error(`Unknown type ${u}`)}}else if(n[0]===gr){let u=n[1];if(!j(u))throw Error("Invalid input");let l=t.createSparseArray(u);s[a]=l;for(let c=2;c<n.length;c+=2){let _=n[c];if(!b(_)||_>=u)throw Error("Invalid input");t.set(l,_,p(n[c+1]))}}else{let u=t.createArray(n.length);s[a]=u;for(let l=0;l<n.length;l+=1){let c=n[l];if(c===kt)continue;t.set(u,l,p(c))}}else{let u=t.createObject();s[a]=u;for(let l of Object.keys(n)){if(l==="__proto__")throw Error("Cannot parse an object with a `__proto__` property");t.set(u,l,p(n[l]))}}return s[a]}return p(0)}export{ji,Ot,kt,mr,hr,yr,Rt,gr,ke,Re,Tn,_r,Wi,ut};
2
+ function R(e){return new Uint8Array(e).toBase64()}function x(e){return Uint8Array.fromBase64(e).buffer}function T(e){return Buffer.from(e).toString("base64")}function k(e){return Uint8Array.from(Buffer.from(e,"base64")).buffer}function D(e){let r=new Uint8Array(e),o="",t=32768;for(let i=0;i<r.length;i+=t){let s=r.subarray(i,i+t);o+=String.fromCharCode.apply(null,s)}return btoa(o)}function U(e){let r=atob(e),o=r.length,t=new Uint8Array(o);for(let i=0;i<o;i++)t[i]=r.charCodeAt(i);return t.buffer}var h=typeof Uint8Array.fromBase64==="function",A=typeof process==="object"&&process.versions?.node!==void 0,Ji=h?R:A?T:D,d=h?x:A?k:U;var Mt=-1,Ft=-2,br=-3,vr=-4,Sr=-5,Bt=-6,Tr=-7,O=4294967295,m=4294967294;class Le extends Error{constructor(e,r,o,t){super(e);this.name="DevalueError",this.path=r.join(""),this.value=o,this.root=t}}var B=Object.getOwnPropertyNames(Object.prototype).sort().join("\x00");function I(e){let r=Object.getPrototypeOf(e);return r===Object.prototype||r===null||Object.getPrototypeOf(r)===null||Object.getOwnPropertyNames(r).sort().join("\x00")===B}function w(e){return Object.prototype.toString.call(e).slice(8,-1)}function L(e){switch(e){case'"':return"\\\"";case"<":return"\\u003C";case"\\":return"\\\\";case`
3
+ `:return"\\n";case"\r":return"\\r";case"\t":return"\\t";case"\b":return"\\b";case"\f":return"\\f";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:return e<" "?`\\u${e.charCodeAt(0).toString(16).padStart(4,"0")}`:""}}function Me(e){let r="",o=0,t=e.length;for(let i=0;i<t;i+=1){let s=e[i],y=L(s);if(y)r+=e.slice(o,i)+y,o=i+1}return`"${o===0?e:r+e.slice(o)}"`}function E(e){return Object.getOwnPropertySymbols(e).filter((r)=>Object.getOwnPropertyDescriptor(e,r).enumerable)}var V=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function Pn(e){return V.test(e)?"."+e:"["+JSON.stringify(e)+"]"}function b(e){if(!Number.isInteger(e))return!1;if(e<0)return!1;if(e>m)return!1;return!0}function j(e){if(!Number.isInteger(e))return!1;if(e<0)return!1;if(e>O)return!1;return!0}function M(e){if(e.length===0)return!1;if(e.length>1&&e.charCodeAt(0)===48)return!1;for(let r=0;r<e.length;r++){let o=e.charCodeAt(r);if(o<48||o>57)return!1}return b(+e)}function Y(e){for(var r=e.length-1;r>=0;r--)if(M(e[r]))break;return r+1}function N(e){let r=Object.keys(e);return r.length=Y(r),r}function Er(e,r){if(!r)return e;let o={};for(let t of Object.keys(e))o[t]=r[t]??e[t];return o}var C=Object.freeze({kind:"not-plain"}),F=Object.freeze({kind:"symbol-keys"}),X={identify:(e)=>e,typeOf:(e)=>e===null?"null":typeof e,toPrimitive:(e)=>e,tagOf:(e)=>w(e),isThenable:(e)=>typeof e.then==="function",toPromise:(e)=>Promise.resolve(e),unbox:(e)=>e.valueOf(),toISOString:(e)=>isNaN(e.getDate())?"":e.toISOString(),toStringValue:(e)=>e.toString(),regExpInfo:(e)=>({source:e.source,flags:e.flags}),valuesOf:(e)=>e,entriesOf:(e)=>e,viewInfo:(e)=>({buffer:e.buffer,byteOffset:e.byteOffset,byteLength:e.byteLength,length:e.length,bufferByteLength:e.buffer.byteLength}),toArrayBuffer:(e)=>e,lengthOf:(e)=>e.length,hasOwn:(e,r)=>Object.hasOwn(e,r),indicesOf:(e)=>N(e),shapeOf:(e)=>{if(!I(e))return C;if(E(e).length>0)return F;return{kind:Object.getPrototypeOf(e)===null?"null-proto":"plain",keys:Object.keys(e)}},get:(e,r)=>e[r]},Xi=Object.freeze(X),z={fromPrimitive:(e)=>e,fromISOString:(e)=>new Date(e),fromStringValue:(e,r)=>{if(e==="URL")return new URL(r);if(e==="URLSearchParams")return new URLSearchParams(r);return Temporal[e.slice(9)].from(r)},fromArrayBuffer:(e)=>e,fromRegExpInfo:(e,r)=>new RegExp(e,r),fromViewInfo:(e,r,o,t)=>{let i=globalThis[e];return o!==void 0?new i(r,o,t):new i(r)},box:(e)=>Object(e),createArray:(e)=>Array(e),createSparseArray:(e)=>{let r=[];return r[m]=void 0,delete r[m],r.length=e,r},createObject:()=>({}),createNullPrototypeObject:()=>Object.create(null),createSet:()=>new Set,createMap:()=>new Map,set:(e,r,o)=>{e[r]=o},addValue:(e,r)=>{e.add(r)},addEntry:(e,r,o)=>{e.set(r,o)}},S=Object.freeze(z);function ft(e,r,o){return P(JSON.parse(e),r,o)}function P(e,r,o){let t=Er(S,o?.operations);if(typeof e==="number")return p(e,!0);if(!Array.isArray(e)||e.length===0)throw Error("Invalid input");let i=e,s=Array(i.length),y=null;function p(a,v=!1){if(a===Mt)return t.fromPrimitive(void 0);if(a===br)return t.fromPrimitive(NaN);if(a===vr)return t.fromPrimitive(1/0);if(a===Sr)return t.fromPrimitive(-1/0);if(a===Bt)return t.fromPrimitive(-0);if(v||typeof a!=="number")throw Error("Invalid input");if(a in s)return s[a];if(a>=i.length)throw Error("Invalid input");let n=i[a];if(!n||typeof n!=="object")s[a]=t.fromPrimitive(n);else if(Array.isArray(n))if(typeof n[0]==="string"){let u=n[0],l=r&&Object.hasOwn(r,u)?r[u]:void 0;if(l){let c=n[1];if(typeof c!=="number")c=i.push(n[1])-1;if(Object.hasOwn(s,c))return s[a]=l(s[c]);if(y??=new Set,y.has(c))throw Error("Invalid circular reference");return y.add(c),s[a]=l(p(c)),y.delete(c),s[a]}switch(u){case"Date":s[a]=t.fromISOString(n[1]);break;case"Set":let c=t.createSet();s[a]=c;for(let f=1;f<n.length;f+=1)t.addValue(c,p(n[f]));break;case"Map":let _=t.createMap();s[a]=_;for(let f=1;f<n.length;f+=2)t.addEntry(_,p(n[f]),p(n[f+1]));break;case"RegExp":s[a]=t.fromRegExpInfo(n[1],n[2]);break;case"Object":{let f=n[1];if(typeof i[f]==="object"&&i[f][0]!=="BigInt")throw Error("Invalid input");s[a]=t.box(p(f));break}case"BigInt":s[a]=t.fromPrimitive(BigInt(n[1]));break;case"null":let g=t.createNullPrototypeObject();s[a]=g;for(let f=1;f<n.length;f+=2){if(n[f]==="__proto__")throw Error("Cannot parse an object with a `__proto__` property");t.set(g,n[f],p(n[f+1]))}break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Float16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":case"DataView":{if(i[n[1]][0]!=="ArrayBuffer")throw Error("Invalid data");let f=p(n[1]);s[a]=t.fromViewInfo(u,f,n[2],n[3]);break}case"ArrayBuffer":{let f=n[1];if(typeof f!=="string")throw Error("Invalid ArrayBuffer encoding");s[a]=t.fromArrayBuffer(d(f));break}case"URL":case"URLSearchParams":case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":{s[a]=t.fromStringValue(u,n[1]);break}default:throw Error(`Unknown type ${u}`)}}else if(n[0]===Tr){let u=n[1];if(!j(u))throw Error("Invalid input");let l=t.createSparseArray(u);s[a]=l;for(let c=2;c<n.length;c+=2){let _=n[c];if(!b(_)||_>=u)throw Error("Invalid input");t.set(l,_,p(n[c+1]))}}else{let u=t.createArray(n.length);s[a]=u;for(let l=0;l<n.length;l+=1){let c=n[l];if(c===Ft)continue;t.set(u,l,p(c))}}else{let u=t.createObject();s[a]=u;for(let l of Object.keys(n)){if(l==="__proto__")throw Error("Cannot parse an object with a `__proto__` property");t.set(u,l,p(n[l]))}}return s[a]}return p(0)}export{Ji,Mt,Ft,br,vr,Sr,Bt,Tr,Le,Me,Pn,Er,Xi,ft};
@@ -0,0 +1,3 @@
1
+ // @bun
2
+ var rs="bun@1.4.4";var jt={name:"moi-computer",version:"0.15.0",description:"Local AI workspace powered by the Claude Agent SDK, Bun, React, and Tailwind. Requires Bun.",license:"Elastic-2.0",type:"module",homepage:"https://github.com/moi-computer/moi#readme",repository:{type:"git",url:"git+https://github.com/moi-computer/moi.git"},bugs:{url:"https://github.com/moi-computer/moi/issues"},keywords:["ai","agent","claude","claude-agent-sdk","bun","workspace","cli"],packageManager:rs,engines:{bun:">=1.4.0"},bin:{moi:"bin/moi.mjs"},files:["bin","runtime","dist","client/vendor","client/theme.css","server/applets/declarations","server/onboarding/prompt.md","skill","registry.json","ui-components","!**/*.test.ts","!**/*.test.tsx"],scripts:{dev:"bun server/cli.ts start --dev --debug","build:client":"bun scripts/build-client.ts","vendor:react":"bun scripts/build-vendor.ts",prepack:"bun run build:client && bun run build:package",lint:"oxlint","lint:fix":"oxlint --fix","registry:validate":"shadcn registry validate",typecheck:"tsc -p tsconfig.json","test:visual":"bun tests/visual/run.ts",format:"oxfmt","format:check":"oxfmt --check",prepare:"git config core.hooksPath .githooks","check:repo":"bun scripts/check-repo.ts","build:package":"bun scripts/build-package.ts"},dependencies:{"@types/bun":"1.3.10","bun-plugin-tailwind":"^0.1.2",devalue:"^5.9.2",sharp:"^0.35.4",tailwindcss:"^4.3.3",typescript:"^5.9.3",ws:"8.22.0"},devDependencies:{"@agentclientprotocol/sdk":"^1.4.0","@anthropic-ai/claude-agent-sdk":"^0.3.317","@anthropic-ai/sdk":"^0.109.1","@babel/parser":"^7.29.8","@babel/types":"^7.29.8","@base-ui/react":"^1.8.0","@blobatar/react":"^2.7.0","@dnd-kit/core":"^6.3.1","@dnd-kit/sortable":"^10.0.0","@modelcontextprotocol/sdk":"^1.29.0","@openclaw/gateway-client":"2026.11.5","@tabler/icons-react":"^3.46.0","@tailwindcss/typography":"^0.5.20","@tanstack/query-core":"5.102.8","@tanstack/react-query":"^5.102.8","@tldraw/store":"5.6.2","@tldraw/tlschema":"5.6.2","@tldraw/utils":"5.6.2","@types/culori":"^4.0.1","@types/proper-lockfile":"^4.1.4","@types/react":"^19.2.18","@types/react-dom":"^19.2.7","@types/react-grid-layout":"^2.1.0","@types/react-resizable":"^3.0.8","@uiverify/bun":"1.0.2","async-mutex":"0.5.0",blobatar:"^2.7.0",bun:">=1.4.4",citty:"^0.2.2","class-variance-authority":"^0.7.1",clsx:"^2.1.1",conf:"^15.1.0",culori:"^4.0.2","date-fns":"^4.4.0","embla-carousel-react":"^8.6.0","env-paths":"^4.0.0",frimousse:"^0.3.0","highlight.js":"^10.7.3",hono:"^4.13.7",jose:"^6.2.12",linkedom:"0.18.12","lru-cache":"^11.5.2","modern-screenshot":"^4.7.0",motion:"^12.43.0",nanoevents:"^10.0.0",nanoid:"^6.0.1",open:"^11.0.0",oxfmt:"^0.54.0",oxlint:"^1.82.0",pathe:"^2.0.3",picocolors:"^1.1.1",postcss:"^8.5.28","proper-lockfile":"4.1.2",react:"19.2.4","react-day-picker":"^10.0.1","react-dom":"19.2.4","react-grid-layout":"^2.2.4","react-markdown":"^10.1.0","react-resizable":"^3.2.0","react-resizable-panels":"^4.12.4",recharts:"3.8.0",regexparam:"^3.0.0","rehype-highlight":"^7.0.2","remark-gfm":"^4.0.1",shadcn:"4.21.0","shell-quote":"^1.12.0","sugar-high":"^1.3.0","tailwind-merge":"^3.6.0",tldraw:"5.6.2","tw-animate-css":"^1.4.0",wouter:"^3.11.0",zod:"^4.3.6",zustand:"^5.0.15"},overrides:{tinypool:"2.1.2"}};
3
+ export{rs,jt};
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ // @bun
3
+ import{je,bi,vi,Si,un,sr,Ti}from"./chunk-3v7yq6th.js";export{Ti as forkSession,sr as getSessionInfo,Si as getSessionMessages,un as listSessions,je as query,bi as renameSession,vi as tagSession};