import{n as e}from"./rolldown-runtime-BG2f4sTM.js";var t,n,r,i,a,o,s,c=e((()=>{t=`comm`,n=`rule`,r=`decl`,i=`@import`,a=`@namespace`,o=`@keyframes`,s=`@layer`}));function l(e){return e.trim()}function u(e,t,n){return e.replace(t,n)}function d(e,t,n){return e.indexOf(t,n)}function f(e,t){return e.charCodeAt(t)|0}function p(e,t,n){return e.slice(t,n)}function m(e){return e.length}function h(e){return e.length}function g(e,t){return t.push(e),e}var _,v,y=e((()=>{_=Math.abs,v=String.fromCharCode}));function b(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:I,column:L,length:o,return:``,siblings:s}}function x(){return B}function S(){return B=z>0?f(V,--z):0,L--,B===10&&(L=1,I--),B}function C(){return B=z<R?f(V,z++):0,L++,B===10&&(L=1,I++),B}function w(){return f(V,z)}function T(){return z}function E(e,t){return p(V,e,t)}function D(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function O(e){return I=L=1,R=m(V=e),z=0,[]}function k(e){return V=``,e}function A(e){return l(E(z-1,N(e===91?e+2:e===40?e+1:e)))}function j(e){for(;(B=w())&&B<33;)C();return D(e)>2||D(B)>3?``:` `}function M(e,t){for(;--t&&C()&&!(B<48||B>102||B>57&&B<65||B>70&&B<97););return E(e,T()+(t<6&&w()==32&&C()==32))}function N(e){for(;C();)switch(B){case e:return z;case 34:case 39:e!==34&&e!==39&&N(B);break;case 40:e===41&&N(e);break;case 92:C();break}return z}function P(e,t){for(;C()&&e+B!==57&&!(e+B===84&&w()===47););return`/*`+E(t,z-1)+`*`+v(e===47?e:C())}function F(e){for(;!D(w());)C();return E(e,z)}var I,L,R,z,B,V,H=e((()=>{y(),I=1,L=1,R=0,z=0,B=0,V=``}));function U(e){return k(W(``,null,null,null,[``],e=O(e),0,[0],e))}function W(e,t,n,r,i,a,o,s,c){for(var l=0,h=0,y=o,b=0,x=0,E=0,O=1,k=1,N=1,I=0,L=``,R=i,z=a,B=r,V=L;k;)switch(E=I,I=C()){case 40:if(E!=108&&f(V,y-1)==58){d(V+=u(A(I),`&`,`&\f`),`&\f`,_(l?s[l-1]:0))!=-1&&(N=-1);break}case 34:case 39:case 91:V+=A(I);break;case 9:case 10:case 13:case 32:V+=j(E);break;case 92:V+=M(T()-1,7);continue;case 47:switch(w()){case 42:case 47:g(K(P(C(),T()),t,n,c),c),(D(E||1)==5||D(w()||1)==5)&&m(V)&&p(V,-1,void 0)!==` `&&(V+=` `);break;default:V+=`/`}break;case 123*O:s[l++]=m(V)*N;case 125*O:case 59:case 0:switch(I){case 0:case 125:k=0;case 59+h:N==-1&&(V=u(V,/\f/g,``)),x>0&&(m(V)-y||O===0&&E===47)&&g(x>32?q(V+`;`,r,n,y-1,c):q(u(V,` `,``)+`;`,r,n,y-2,c),c);break;case 59:V+=`;`;default:if(g(B=G(V,t,n,l,h,i,s,L,R=[],z=[],y,a),a),I===123)if(h===0)W(V,t,B,B,R,a,y,s,z);else{switch(b){case 99:if(f(V,3)===110)break;case 108:if(f(V,2)===97)break;default:h=0;case 100:case 109:case 115:}h?W(e,B,B,r&&g(G(e,B,B,0,0,i,s,L,i,R=[],y,z),z),i,z,y,s,r?R:z):W(V,B,B,B,[``],z,0,s,z)}}l=h=x=0,O=N=1,L=V=``,y=o;break;case 58:y=1+m(V),x=E;default:if(O<1){if(I==123)--O;else if(I==125&&O++==0&&S()==125)continue}switch(V+=v(I),I*O){case 38:N=h>0?1:(V+=`\f`,-1);break;case 44:s[l++]=(m(V)-1)*N,N=1;break;case 64:w()===45&&(V+=A(C())),b=w(),h=y=m(L=V+=F(T())),I++;break;case 45:E===45&&m(V)==2&&(O=0)}}return a}function G(e,t,r,i,a,o,s,c,d,f,m,g){for(var v=a-1,y=a===0?o:[``],x=h(y),S=0,C=0,w=0;S<i;++S)for(var T=0,E=p(e,v+1,v=_(C=s[S])),D=e;T<x;++T)(D=l(C>0?y[T]+` `+E:u(E,/&\f/g,y[T])))&&(d[w++]=D);return b(e,t,r,a===0?n:c,d,f,m,g)}function K(e,n,r,i){return b(e,n,r,t,v(x()),p(e,2,-2),0,i)}function q(e,t,n,i,a){return b(e,t,n,r,p(e,0,i),p(e,i+1,-1),i,a)}var J=e((()=>{c(),y(),H()})),Y=e((()=>{}));function X(e,t){for(var n=``,r=0;r<e.length;r++)n+=t(e[r],r,e,t)||``;return n}function Z(e,c,l,u){switch(e.type){case s:if(e.children.length)break;case i:case a:case r:return e.return=e.return||e.value;case t:return``;case o:return e.return=e.value+`{`+X(e.children,u)+`}`;case n:if(!m(e.value=e.props.join(`,`)))return``}return m(l=X(e.children,u))?e.return=e.value+`{`+l+`}`:``}var Q=e((()=>{c(),y()})),$=e((()=>{})),ee=e((()=>{c(),y(),J(),Y(),H(),Q(),$()}));export{U as a,Z as i,Q as n,J as o,X as r,ee as t};
//# sourceMappingURL=stylis-BHkIrgUB.js.map