@tailwindcss/browser 0.0.0-insiders.fba35d0 → 0.0.0-insiders.fbc358c

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.
@@ -1,4 +1,4 @@
1
- "use strict";(()=>{var Jt="0.0.0-insiders.fba35d0";function Ge(e){let r=[0];for(let n=0;n<e.length;n++)e.charCodeAt(n)===10&&r.push(n+1);function i(n){let s=0,a=r.length;for(;a>0;){let c=(a|0)>>1,u=s+c;r[u]<=n?(s=u+1,a=a-c-1):a=c}s-=1;let m=n-r[s];return{line:s+1,column:m}}function t({line:n,column:s}){n-=1,n=Math.min(Math.max(n,0),r.length-1);let a=r[n],m=r[n+1]??a;return Math.min(Math.max(a+s,0),m)}return{find:i,findOffset:t}}var _e=92,Ye=47,Ze=42,Qt=34,Xt=39,Li=58,Je=59,ae=10,Qe=13,Ue=32,De=9,er=123,At=125,$t=40,tr=41,ji=91,Ii=93,rr=45,Ct=64,Fi=33,se=class e extends Error{loc;constructor(r,i){if(i){let t=i[0],n=Ge(t.code).find(i[1]);r=`${t.file}:${n.line}:${n.column+1}: ${r}`}super(r),this.name="CssSyntaxError",this.loc=i,Error.captureStackTrace&&Error.captureStackTrace(this,e)}};function Se(e,r){let i=r?.from?{file:r.from,code:e}:null;e[0]==="\uFEFF"&&(e=" "+e.slice(1));let t=[],n=[],s=[],a=null,m=null,c="",u="",h=0,d;for(let f=0;f<e.length;f++){let v=e.charCodeAt(f);if(!(v===Qe&&(d=e.charCodeAt(f+1),d===ae)))if(v===_e)c===""&&(h=f),c+=e.slice(f,f+2),f+=1;else if(v===Ye&&e.charCodeAt(f+1)===Ze){let k=f;for(let x=f+2;x<e.length;x++)if(d=e.charCodeAt(x),d===_e)x+=1;else if(d===Ze&&e.charCodeAt(x+1)===Ye){f=x+1;break}let w=e.slice(k,f+1);if(w.charCodeAt(2)===Fi){let x=Xe(w.slice(2,-2));n.push(x),i&&(x.src=[i,k,f+1],x.dst=[i,k,f+1])}}else if(v===Xt||v===Qt){let k=ir(e,f,v,i);c+=e.slice(f,k+1),f=k}else{if((v===Ue||v===ae||v===De)&&(d=e.charCodeAt(f+1))&&(d===Ue||d===ae||d===De||d===Qe&&(d=e.charCodeAt(f+2))&&d==ae))continue;if(v===ae){if(c.length===0)continue;d=c.charCodeAt(c.length-1),d!==Ue&&d!==ae&&d!==De&&(c+=" ")}else if(v===rr&&e.charCodeAt(f+1)===rr&&c.length===0){let k="",w=f,x=-1;for(let C=f+2;C<e.length;C++)if(d=e.charCodeAt(C),d===_e)C+=1;else if(d===Xt||d===Qt)C=ir(e,C,d,i);else if(d===Ye&&e.charCodeAt(C+1)===Ze){for(let y=C+2;y<e.length;y++)if(d=e.charCodeAt(y),d===_e)y+=1;else if(d===Ze&&e.charCodeAt(y+1)===Ye){C=y+1;break}}else if(x===-1&&d===Li)x=c.length+C-w;else if(d===Je&&k.length===0){c+=e.slice(w,C),f=C;break}else if(d===$t)k+=")";else if(d===ji)k+="]";else if(d===er)k+="}";else if((d===At||e.length-1===C)&&k.length===0){f=C-1,c+=e.slice(w,C);break}else(d===tr||d===Ii||d===At)&&k.length>0&&e[C]===k[k.length-1]&&(k=k.slice(0,-1));let V=Tt(c,x);if(!V)throw new se("Invalid custom property, expected a value",i?[i,w,f]:null);i&&(V.src=[i,w,f],V.dst=[i,w,f]),a?a.nodes.push(V):t.push(V),c=""}else if(v===Je&&c.charCodeAt(0)===Ct)m=ze(c),i&&(m.src=[i,h,f],m.dst=[i,h,f]),a?a.nodes.push(m):t.push(m),c="",m=null;else if(v===Je&&u[u.length-1]!==")"){let k=Tt(c);if(!k){if(c.length===0)continue;throw new se(`Invalid declaration: \`${c.trim()}\``,i?[i,h,f]:null)}i&&(k.src=[i,h,f],k.dst=[i,h,f]),a?a.nodes.push(k):t.push(k),c=""}else if(v===er&&u[u.length-1]!==")")u+="}",m=Y(c.trim()),i&&(m.src=[i,h,f],m.dst=[i,h,f]),a&&a.nodes.push(m),s.push(a),a=m,c="",m=null;else if(v===At&&u[u.length-1]!==")"){if(u==="")throw new se("Missing opening {",i?[i,f,f]:null);if(u=u.slice(0,-1),c.length>0)if(c.charCodeAt(0)===Ct)m=ze(c),i&&(m.src=[i,h,f],m.dst=[i,h,f]),a?a.nodes.push(m):t.push(m),c="",m=null;else{let w=c.indexOf(":");if(a){let x=Tt(c,w);if(!x)throw new se(`Invalid declaration: \`${c.trim()}\``,i?[i,h,f]:null);i&&(x.src=[i,h,f],x.dst=[i,h,f]),a.nodes.push(x)}}let k=s.pop()??null;k===null&&a&&t.push(a),a=k,c="",m=null}else if(v===$t)u+=")",c+="(";else if(v===tr){if(u[u.length-1]!==")")throw new se("Missing opening (",i?[i,f,f]:null);u=u.slice(0,-1),c+=")"}else{if(c.length===0&&(v===Ue||v===ae||v===De))continue;c===""&&(h=f),c+=String.fromCharCode(v)}}}if(c.charCodeAt(0)===Ct){let f=ze(c);i&&(f.src=[i,h,e.length],f.dst=[i,h,e.length]),t.push(f)}if(u.length>0&&a){if(a.kind==="rule")throw new se(`Missing closing } at ${a.selector}`,a.src?[a.src[0],a.src[1],a.src[1]]:null);if(a.kind==="at-rule")throw new se(`Missing closing } at ${a.name} ${a.params}`,a.src?[a.src[0],a.src[1],a.src[1]]:null)}return n.length>0?n.concat(t):t}function ze(e,r=[]){let i=e,t="";for(let n=5;n<e.length;n++){let s=e.charCodeAt(n);if(s===Ue||s===De||s===$t){i=e.slice(0,n),t=e.slice(n);break}}return M(i.trim(),t.trim(),r)}function Tt(e,r=e.indexOf(":")){if(r===-1)return null;let i=e.indexOf("!important",r+1);return o(e.slice(0,r).trim(),e.slice(r+1,i===-1?e.length:i).trim(),i!==-1)}function ir(e,r,i,t=null){let n;for(let s=r+1;s<e.length;s++)if(n=e.charCodeAt(s),n===_e)s+=1;else{if(n===i)return s;if(n===Je&&(e.charCodeAt(s+1)===ae||e.charCodeAt(s+1)===Qe&&e.charCodeAt(s+2)===ae))throw new se(`Unterminated string: ${e.slice(r,s+1)+String.fromCharCode(i)}`,t?[t,r,s+1]:null);if(n===ae||n===Qe&&e.charCodeAt(s+1)===ae)throw new se(`Unterminated string: ${e.slice(r,s)+String.fromCharCode(i)}`,t?[t,r,s+1]:null)}return r}function ge(e){if(arguments.length===0)throw new TypeError("`CSS.escape` requires an argument.");let r=String(e),i=r.length,t=-1,n,s="",a=r.charCodeAt(0);if(i===1&&a===45)return"\\"+r;for(;++t<i;){if(n=r.charCodeAt(t),n===0){s+="\uFFFD";continue}if(n>=1&&n<=31||n===127||t===0&&n>=48&&n<=57||t===1&&n>=48&&n<=57&&a===45){s+="\\"+n.toString(16)+" ";continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){s+=r.charAt(t);continue}s+="\\"+r.charAt(t)}return s}function ye(e){return e.replace(/\\([\dA-Fa-f]{1,6}[\t\n\f\r ]?|[\S\s])/g,r=>r.length>2?String.fromCodePoint(Number.parseInt(r.slice(1).trim(),16)):r[1])}var nr=new Map([["--font",["--font-weight","--font-size"]],["--inset",["--inset-shadow","--inset-ring"]],["--text",["--text-color","--text-decoration-color","--text-decoration-thickness","--text-indent","--text-shadow","--text-underline-offset"]],["--grid-column",["--grid-column-start","--grid-column-end"]],["--grid-row",["--grid-row-start","--grid-row-end"]]]);function or(e,r){return(nr.get(r)??[]).some(i=>e===i||e.startsWith(`${i}-`))}var et=class{constructor(r=new Map,i=new Set([])){this.values=r;this.keyframes=i}prefix=null;get size(){return this.values.size}add(r,i,t=0,n){if(r.endsWith("-*")){if(i!=="initial")throw new Error(`Invalid theme value \`${i}\` for namespace \`${r}\``);r==="--*"?this.values.clear():this.clearNamespace(r.slice(0,-2),0)}if(t&4){let s=this.values.get(r);if(s&&!(s.options&4))return}i==="initial"?this.values.delete(r):this.values.set(r,{value:i,options:t,src:n})}keysInNamespaces(r){let i=[];for(let t of r){let n=`${t}-`;for(let s of this.values.keys())s.startsWith(n)&&s.indexOf("--",2)===-1&&(or(s,t)||i.push(s.slice(n.length)))}return i}get(r){for(let i of r){let t=this.values.get(i);if(t)return t.value}return null}hasDefault(r){return(this.getOptions(r)&4)===4}getOptions(r){return r=ye(this.#r(r)),this.values.get(r)?.options??0}entries(){return this.prefix?Array.from(this.values,r=>(r[0]=this.prefixKey(r[0]),r)):this.values.entries()}prefixKey(r){return this.prefix?`--${this.prefix}-${r.slice(2)}`:r}#r(r){return this.prefix?`--${r.slice(3+this.prefix.length)}`:r}clearNamespace(r,i){let t=nr.get(r)??[];e:for(let n of this.values.keys())if(n.startsWith(r)){if(i!==0&&(this.getOptions(n)&i)!==i)continue;for(let s of t)if(n.startsWith(s))continue e;this.values.delete(n)}}#e(r,i){for(let t of i){let n=r!==null?`${t}-${r}`:t;if(!this.values.has(n))if(r!==null&&r.includes(".")){if(n=`${t}-${r.replaceAll(".","_")}`,!this.values.has(n))continue}else continue;if(!or(n,t))return n}return null}#t(r){let i=this.values.get(r);if(!i)return null;let t=null;return i.options&2&&(t=i.value),`var(${ge(this.prefixKey(r))}${t?`, ${t}`:""})`}markUsedVariable(r){let i=ye(this.#r(r)),t=this.values.get(i);if(!t)return!1;let n=t.options&16;return t.options|=16,!n}resolve(r,i,t=0){let n=this.#e(r,i);if(!n)return null;let s=this.values.get(n);return(t|s.options)&1?s.value:this.#t(n)}resolveValue(r,i){let t=this.#e(r,i);return t?this.values.get(t).value:null}resolveWith(r,i,t=[]){let n=this.#e(r,i);if(!n)return null;let s={};for(let m of t){let c=`${n}${m}`,u=this.values.get(c);u&&(u.options&1?s[m]=u.value:s[m]=this.#t(c))}let a=this.values.get(n);return a.options&1?[a.value,s]:[this.#t(n),s]}namespace(r){let i=new Map,t=`${r}-`;for(let[n,s]of this.values)n===r?i.set(null,s.value):n.startsWith(`${t}-`)?i.set(n.slice(r.length),s.value):n.startsWith(t)&&i.set(n.slice(t.length),s.value);return i}addKeyframes(r){this.keyframes.add(r)}getKeyframes(){return Array.from(this.keyframes)}};var H=class extends Map{constructor(i){super();this.factory=i}get(i){let t=super.get(i);return t===void 0&&(t=this.factory(i,this),this.set(i,t)),t}};function Ke(e){return{kind:"word",value:e}}function Mi(e,r){return{kind:"function",value:e,nodes:r}}function Wi(e){return{kind:"separator",value:e}}function J(e){let r="";for(let i of e)switch(i.kind){case"word":case"separator":{r+=i.value;break}case"function":r+=i.value+"("+J(i.nodes)+")"}return r}var lr=92,Bi=41,ar=58,sr=44,qi=34,ur=61,cr=62,fr=60,pr=10,Hi=40,Gi=39,Yi=47,dr=32,mr=9;function G(e){e=e.replaceAll(`\r
1
+ "use strict";(()=>{var Jt="0.0.0-insiders.fbc358c";function Ge(e){let r=[0];for(let n=0;n<e.length;n++)e.charCodeAt(n)===10&&r.push(n+1);function i(n){let s=0,a=r.length;for(;a>0;){let c=(a|0)>>1,u=s+c;r[u]<=n?(s=u+1,a=a-c-1):a=c}s-=1;let m=n-r[s];return{line:s+1,column:m}}function t({line:n,column:s}){n-=1,n=Math.min(Math.max(n,0),r.length-1);let a=r[n],m=r[n+1]??a;return Math.min(Math.max(a+s,0),m)}return{find:i,findOffset:t}}var _e=92,Ye=47,Ze=42,Qt=34,Xt=39,Li=58,Je=59,ae=10,Qe=13,Ue=32,De=9,er=123,At=125,$t=40,tr=41,ji=91,Ii=93,rr=45,Ct=64,Fi=33,se=class e extends Error{loc;constructor(r,i){if(i){let t=i[0],n=Ge(t.code).find(i[1]);r=`${t.file}:${n.line}:${n.column+1}: ${r}`}super(r),this.name="CssSyntaxError",this.loc=i,Error.captureStackTrace&&Error.captureStackTrace(this,e)}};function Se(e,r){let i=r?.from?{file:r.from,code:e}:null;e[0]==="\uFEFF"&&(e=" "+e.slice(1));let t=[],n=[],s=[],a=null,m=null,c="",u="",h=0,d;for(let f=0;f<e.length;f++){let v=e.charCodeAt(f);if(!(v===Qe&&(d=e.charCodeAt(f+1),d===ae)))if(v===_e)c===""&&(h=f),c+=e.slice(f,f+2),f+=1;else if(v===Ye&&e.charCodeAt(f+1)===Ze){let k=f;for(let x=f+2;x<e.length;x++)if(d=e.charCodeAt(x),d===_e)x+=1;else if(d===Ze&&e.charCodeAt(x+1)===Ye){f=x+1;break}let w=e.slice(k,f+1);if(w.charCodeAt(2)===Fi){let x=Xe(w.slice(2,-2));n.push(x),i&&(x.src=[i,k,f+1],x.dst=[i,k,f+1])}}else if(v===Xt||v===Qt){let k=ir(e,f,v,i);c+=e.slice(f,k+1),f=k}else{if((v===Ue||v===ae||v===De)&&(d=e.charCodeAt(f+1))&&(d===Ue||d===ae||d===De||d===Qe&&(d=e.charCodeAt(f+2))&&d==ae))continue;if(v===ae){if(c.length===0)continue;d=c.charCodeAt(c.length-1),d!==Ue&&d!==ae&&d!==De&&(c+=" ")}else if(v===rr&&e.charCodeAt(f+1)===rr&&c.length===0){let k="",w=f,x=-1;for(let C=f+2;C<e.length;C++)if(d=e.charCodeAt(C),d===_e)C+=1;else if(d===Xt||d===Qt)C=ir(e,C,d,i);else if(d===Ye&&e.charCodeAt(C+1)===Ze){for(let y=C+2;y<e.length;y++)if(d=e.charCodeAt(y),d===_e)y+=1;else if(d===Ze&&e.charCodeAt(y+1)===Ye){C=y+1;break}}else if(x===-1&&d===Li)x=c.length+C-w;else if(d===Je&&k.length===0){c+=e.slice(w,C),f=C;break}else if(d===$t)k+=")";else if(d===ji)k+="]";else if(d===er)k+="}";else if((d===At||e.length-1===C)&&k.length===0){f=C-1,c+=e.slice(w,C);break}else(d===tr||d===Ii||d===At)&&k.length>0&&e[C]===k[k.length-1]&&(k=k.slice(0,-1));let V=Tt(c,x);if(!V)throw new se("Invalid custom property, expected a value",i?[i,w,f]:null);i&&(V.src=[i,w,f],V.dst=[i,w,f]),a?a.nodes.push(V):t.push(V),c=""}else if(v===Je&&c.charCodeAt(0)===Ct)m=ze(c),i&&(m.src=[i,h,f],m.dst=[i,h,f]),a?a.nodes.push(m):t.push(m),c="",m=null;else if(v===Je&&u[u.length-1]!==")"){let k=Tt(c);if(!k){if(c.length===0)continue;throw new se(`Invalid declaration: \`${c.trim()}\``,i?[i,h,f]:null)}i&&(k.src=[i,h,f],k.dst=[i,h,f]),a?a.nodes.push(k):t.push(k),c=""}else if(v===er&&u[u.length-1]!==")")u+="}",m=Y(c.trim()),i&&(m.src=[i,h,f],m.dst=[i,h,f]),a&&a.nodes.push(m),s.push(a),a=m,c="",m=null;else if(v===At&&u[u.length-1]!==")"){if(u==="")throw new se("Missing opening {",i?[i,f,f]:null);if(u=u.slice(0,-1),c.length>0)if(c.charCodeAt(0)===Ct)m=ze(c),i&&(m.src=[i,h,f],m.dst=[i,h,f]),a?a.nodes.push(m):t.push(m),c="",m=null;else{let w=c.indexOf(":");if(a){let x=Tt(c,w);if(!x)throw new se(`Invalid declaration: \`${c.trim()}\``,i?[i,h,f]:null);i&&(x.src=[i,h,f],x.dst=[i,h,f]),a.nodes.push(x)}}let k=s.pop()??null;k===null&&a&&t.push(a),a=k,c="",m=null}else if(v===$t)u+=")",c+="(";else if(v===tr){if(u[u.length-1]!==")")throw new se("Missing opening (",i?[i,f,f]:null);u=u.slice(0,-1),c+=")"}else{if(c.length===0&&(v===Ue||v===ae||v===De))continue;c===""&&(h=f),c+=String.fromCharCode(v)}}}if(c.charCodeAt(0)===Ct){let f=ze(c);i&&(f.src=[i,h,e.length],f.dst=[i,h,e.length]),t.push(f)}if(u.length>0&&a){if(a.kind==="rule")throw new se(`Missing closing } at ${a.selector}`,a.src?[a.src[0],a.src[1],a.src[1]]:null);if(a.kind==="at-rule")throw new se(`Missing closing } at ${a.name} ${a.params}`,a.src?[a.src[0],a.src[1],a.src[1]]:null)}return n.length>0?n.concat(t):t}function ze(e,r=[]){let i=e,t="";for(let n=5;n<e.length;n++){let s=e.charCodeAt(n);if(s===Ue||s===De||s===$t){i=e.slice(0,n),t=e.slice(n);break}}return M(i.trim(),t.trim(),r)}function Tt(e,r=e.indexOf(":")){if(r===-1)return null;let i=e.indexOf("!important",r+1);return o(e.slice(0,r).trim(),e.slice(r+1,i===-1?e.length:i).trim(),i!==-1)}function ir(e,r,i,t=null){let n;for(let s=r+1;s<e.length;s++)if(n=e.charCodeAt(s),n===_e)s+=1;else{if(n===i)return s;if(n===Je&&(e.charCodeAt(s+1)===ae||e.charCodeAt(s+1)===Qe&&e.charCodeAt(s+2)===ae))throw new se(`Unterminated string: ${e.slice(r,s+1)+String.fromCharCode(i)}`,t?[t,r,s+1]:null);if(n===ae||n===Qe&&e.charCodeAt(s+1)===ae)throw new se(`Unterminated string: ${e.slice(r,s)+String.fromCharCode(i)}`,t?[t,r,s+1]:null)}return r}function ge(e){if(arguments.length===0)throw new TypeError("`CSS.escape` requires an argument.");let r=String(e),i=r.length,t=-1,n,s="",a=r.charCodeAt(0);if(i===1&&a===45)return"\\"+r;for(;++t<i;){if(n=r.charCodeAt(t),n===0){s+="\uFFFD";continue}if(n>=1&&n<=31||n===127||t===0&&n>=48&&n<=57||t===1&&n>=48&&n<=57&&a===45){s+="\\"+n.toString(16)+" ";continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){s+=r.charAt(t);continue}s+="\\"+r.charAt(t)}return s}function ye(e){return e.replace(/\\([\dA-Fa-f]{1,6}[\t\n\f\r ]?|[\S\s])/g,r=>r.length>2?String.fromCodePoint(Number.parseInt(r.slice(1).trim(),16)):r[1])}var nr=new Map([["--font",["--font-weight","--font-size"]],["--inset",["--inset-shadow","--inset-ring"]],["--text",["--text-color","--text-decoration-color","--text-decoration-thickness","--text-indent","--text-shadow","--text-underline-offset"]],["--grid-column",["--grid-column-start","--grid-column-end"]],["--grid-row",["--grid-row-start","--grid-row-end"]]]);function or(e,r){return(nr.get(r)??[]).some(i=>e===i||e.startsWith(`${i}-`))}var et=class{constructor(r=new Map,i=new Set([])){this.values=r;this.keyframes=i}prefix=null;get size(){return this.values.size}add(r,i,t=0,n){if(r.endsWith("-*")){if(i!=="initial")throw new Error(`Invalid theme value \`${i}\` for namespace \`${r}\``);r==="--*"?this.values.clear():this.clearNamespace(r.slice(0,-2),0)}if(t&4){let s=this.values.get(r);if(s&&!(s.options&4))return}i==="initial"?this.values.delete(r):this.values.set(r,{value:i,options:t,src:n})}keysInNamespaces(r){let i=[];for(let t of r){let n=`${t}-`;for(let s of this.values.keys())s.startsWith(n)&&s.indexOf("--",2)===-1&&(or(s,t)||i.push(s.slice(n.length)))}return i}get(r){for(let i of r){let t=this.values.get(i);if(t)return t.value}return null}hasDefault(r){return(this.getOptions(r)&4)===4}getOptions(r){return r=ye(this.#r(r)),this.values.get(r)?.options??0}entries(){return this.prefix?Array.from(this.values,r=>(r[0]=this.prefixKey(r[0]),r)):this.values.entries()}prefixKey(r){return this.prefix?`--${this.prefix}-${r.slice(2)}`:r}#r(r){return this.prefix?`--${r.slice(3+this.prefix.length)}`:r}clearNamespace(r,i){let t=nr.get(r)??[];e:for(let n of this.values.keys())if(n.startsWith(r)){if(i!==0&&(this.getOptions(n)&i)!==i)continue;for(let s of t)if(n.startsWith(s))continue e;this.values.delete(n)}}#e(r,i){for(let t of i){let n=r!==null?`${t}-${r}`:t;if(!this.values.has(n))if(r!==null&&r.includes(".")){if(n=`${t}-${r.replaceAll(".","_")}`,!this.values.has(n))continue}else continue;if(!or(n,t))return n}return null}#t(r){let i=this.values.get(r);if(!i)return null;let t=null;return i.options&2&&(t=i.value),`var(${ge(this.prefixKey(r))}${t?`, ${t}`:""})`}markUsedVariable(r){let i=ye(this.#r(r)),t=this.values.get(i);if(!t)return!1;let n=t.options&16;return t.options|=16,!n}resolve(r,i,t=0){let n=this.#e(r,i);if(!n)return null;let s=this.values.get(n);return(t|s.options)&1?s.value:this.#t(n)}resolveValue(r,i){let t=this.#e(r,i);return t?this.values.get(t).value:null}resolveWith(r,i,t=[]){let n=this.#e(r,i);if(!n)return null;let s={};for(let m of t){let c=`${n}${m}`,u=this.values.get(c);u&&(u.options&1?s[m]=u.value:s[m]=this.#t(c))}let a=this.values.get(n);return a.options&1?[a.value,s]:[this.#t(n),s]}namespace(r){let i=new Map,t=`${r}-`;for(let[n,s]of this.values)n===r?i.set(null,s.value):n.startsWith(`${t}-`)?i.set(n.slice(r.length),s.value):n.startsWith(t)&&i.set(n.slice(t.length),s.value);return i}addKeyframes(r){this.keyframes.add(r)}getKeyframes(){return Array.from(this.keyframes)}};var H=class extends Map{constructor(i){super();this.factory=i}get(i){let t=super.get(i);return t===void 0&&(t=this.factory(i,this),this.set(i,t)),t}};function Ke(e){return{kind:"word",value:e}}function Mi(e,r){return{kind:"function",value:e,nodes:r}}function Wi(e){return{kind:"separator",value:e}}function J(e){let r="";for(let i of e)switch(i.kind){case"word":case"separator":{r+=i.value;break}case"function":r+=i.value+"("+J(i.nodes)+")"}return r}var lr=92,Bi=41,ar=58,sr=44,qi=34,ur=61,cr=62,fr=60,pr=10,Hi=40,Gi=39,Yi=47,dr=32,mr=9;function G(e){e=e.replaceAll(`\r
2
2
  `,`
3
3
  `);let r=[],i=[],t=null,n="",s;for(let a=0;a<e.length;a++){let m=e.charCodeAt(a);switch(m){case lr:{n+=e[a]+e[a+1],a++;break}case Yi:{if(n.length>0){let u=Ke(n);t?t.nodes.push(u):r.push(u),n=""}let c=Ke(e[a]);t?t.nodes.push(c):r.push(c);break}case ar:case sr:case ur:case cr:case fr:case pr:case dr:case mr:{if(n.length>0){let d=Ke(n);t?t.nodes.push(d):r.push(d),n=""}let c=a,u=a+1;for(;u<e.length&&(s=e.charCodeAt(u),!(s!==ar&&s!==sr&&s!==ur&&s!==cr&&s!==fr&&s!==pr&&s!==dr&&s!==mr));u++);a=u-1;let h=Wi(e.slice(c,u));t?t.nodes.push(h):r.push(h);break}case Gi:case qi:{let c=a;for(let u=a+1;u<e.length;u++)if(s=e.charCodeAt(u),s===lr)u+=1;else if(s===m){a=u;break}n+=e.slice(c,a+1);break}case Hi:{let c=Mi(n,[]);n="",t?t.nodes.push(c):r.push(c),i.push(c),t=c;break}case Bi:{let c=i.pop();if(n.length>0){let u=Ke(n);c?.nodes.push(u),n=""}i.length>0?t=i[i.length-1]:t=null;break}default:n+=String.fromCharCode(m)}}return n.length>0&&r.push(Ke(n)),r}var St=(a=>(a[a.Continue=0]="Continue",a[a.Skip=1]="Skip",a[a.Stop=2]="Stop",a[a.Replace=3]="Replace",a[a.ReplaceSkip=4]="ReplaceSkip",a[a.ReplaceStop=5]="ReplaceStop",a))(St||{}),O={Continue:{kind:0},Skip:{kind:1},Stop:{kind:2},Replace:e=>({kind:3,nodes:Array.isArray(e)?e:[e]}),ReplaceSkip:e=>({kind:4,nodes:Array.isArray(e)?e:[e]}),ReplaceStop:e=>({kind:5,nodes:Array.isArray(e)?e:[e]})};function D(e,r){typeof r=="function"?hr(e,r):hr(e,r.enter,r.exit)}function hr(e,r=()=>O.Continue,i=()=>O.Continue){let t=[[e,0,null]],n={parent:null,depth:0,path(){let s=[];for(let a=1;a<t.length;a++){let m=t[a][2];m&&s.push(m)}return s}};for(;t.length>0;){let s=t.length-1,a=t[s],m=a[0],c=a[1],u=a[2];if(c>=m.length){t.pop();continue}if(n.parent=u,n.depth=s,c>=0){let v=m[c],k=r(v,n)??O.Continue;switch(k.kind){case 0:{v.nodes&&v.nodes.length>0&&t.push([v.nodes,0,v]),a[1]=~c;continue}case 2:return;case 1:{a[1]=~c;continue}case 3:{m.splice(c,1,...k.nodes);continue}case 5:{m.splice(c,1,...k.nodes);return}case 4:{m.splice(c,1,...k.nodes),a[1]+=k.nodes.length;continue}default:throw new Error(`Invalid \`WalkAction.${St[k.kind]??`Unknown(${k.kind})`}\` in enter.`)}}let h=~c,d=m[h],f=i(d,n)??O.Continue;switch(f.kind){case 0:a[1]=h+1;continue;case 2:return;case 3:{m.splice(h,1,...f.nodes),a[1]=h+f.nodes.length;continue}case 5:{m.splice(h,1,...f.nodes);return}case 4:{m.splice(h,1,...f.nodes),a[1]=h+f.nodes.length;continue}default:throw new Error(`Invalid \`WalkAction.${St[f.kind]??`Unknown(${f.kind})`}\` in exit.`)}}}function tt(e){let r=[];return D(G(e),i=>{if(!(i.kind!=="function"||i.value!=="var"))return D(i.nodes,t=>{t.kind!=="word"||t.value[0]!=="-"||t.value[1]!=="-"||r.push(t.value)}),O.Skip}),r}var Zi=64;function q(e,r=[]){return{kind:"rule",selector:e,nodes:r}}function M(e,r="",i=[]){return{kind:"at-rule",name:e,params:r,nodes:i}}function Y(e,r=[]){return e.charCodeAt(0)===Zi?ze(e,r):q(e,r)}function o(e,r,i=!1){return{kind:"declaration",property:e,value:r,important:i}}function Xe(e){return{kind:"comment",value:e}}function fe(e,r){return{kind:"context",context:e,nodes:r}}function F(e){return{kind:"at-root",nodes:e}}function re(e){switch(e.kind){case"rule":return{kind:e.kind,selector:e.selector,nodes:e.nodes.map(re),src:e.src,dst:e.dst};case"at-rule":return{kind:e.kind,name:e.name,params:e.params,nodes:e.nodes.map(re),src:e.src,dst:e.dst};case"at-root":return{kind:e.kind,nodes:e.nodes.map(re),src:e.src,dst:e.dst};case"context":return{kind:e.kind,context:{...e.context},nodes:e.nodes.map(re),src:e.src,dst:e.dst};case"declaration":return{kind:e.kind,property:e.property,value:e.value,important:e.important,src:e.src,dst:e.dst};case"comment":return{kind:e.kind,value:e.value,src:e.src,dst:e.dst};default:throw new Error(`Unknown node kind: ${e.kind}`)}}function Le(e){return{depth:e.depth,get context(){let r={};for(let i of e.path())i.kind==="context"&&Object.assign(r,i.context);return Object.defineProperty(this,"context",{value:r}),r},get parent(){let r=this.path().pop()??null;return Object.defineProperty(this,"parent",{value:r}),r},path(){return e.path().filter(r=>r.kind!=="context")}}}function Ae(e,r,i=3){let t=[],n=new Set,s=new H(()=>new Set),a=new H(()=>new Set),m=new Set,c=new Set,u=[],h=[],d=new H(()=>new Set);function f(k,w,x={},V=0){if(k.kind==="declaration"){if(k.property==="--tw-sort"||k.value===void 0||k.value===null)return;if(x.theme&&k.property[0]==="-"&&k.property[1]==="-"){if(k.value==="initial"){k.value=void 0;return}x.keyframes||s.get(w).add(k)}if(k.value.includes("var("))if(x.theme&&k.property[0]==="-"&&k.property[1]==="-")for(let C of tt(k.value))d.get(C).add(k.property);else r.trackUsedVariables(k.value);if(k.property==="animation")for(let C of gr(k.value))c.add(C);i&2&&k.value.includes("color-mix(")&&!x.supportsColorMix&&!x.keyframes&&a.get(w).add(k),w.push(k)}else if(k.kind==="rule"){let C=[];for(let R of k.nodes)f(R,C,x,V+1);let y={},K=new Set;for(let R of C){if(R.kind!=="declaration")continue;let P=`${R.property}:${R.value}:${R.important}`;y[P]??=[],y[P].push(R)}for(let R in y)for(let P=0;P<y[R].length-1;++P)K.add(y[R][P]);if(K.size>0&&(C=C.filter(R=>!K.has(R))),C.length===0)return;k.selector==="&"?w.push(...C):w.push({...k,nodes:C})}else if(k.kind==="at-rule"&&k.name==="@property"&&V===0){if(n.has(k.params))return;if(i&1){let y=k.params,K=null,R=!1;for(let L of k.nodes)L.kind==="declaration"&&(L.property==="initial-value"?K=L.value:L.property==="inherits"&&(R=L.value==="true"));let P=o(y,K??"initial");P.src=k.src,R?u.push(P):h.push(P)}n.add(k.params);let C={...k,nodes:[]};for(let y of k.nodes)f(y,C.nodes,x,V+1);w.push(C)}else if(k.kind==="at-rule"){k.name==="@keyframes"?x={...x,keyframes:!0}:k.name==="@supports"&&k.params.includes("color-mix(")&&(x={...x,supportsColorMix:!0});let C={...k,nodes:[]};for(let y of k.nodes)f(y,C.nodes,x,V+1);k.name==="@keyframes"&&x.theme&&m.add(C),(C.nodes.length>0||C.name==="@layer"||C.name==="@charset"||C.name==="@custom-media"||C.name==="@namespace"||C.name==="@import")&&w.push(C)}else if(k.kind==="at-root")for(let C of k.nodes){let y=[];f(C,y,x,0);for(let K of y)t.push(K)}else if(k.kind==="context"){if(k.context.reference)return;for(let C of k.nodes)f(C,w,{...x,...k.context},V)}else k.kind==="comment"&&w.push(k)}let v=[];for(let k of e)f(k,v,{},0);e:for(let[k,w]of s)for(let x of w){if(kr(x.property,r.theme,d)){if(x.property.startsWith(r.theme.prefixKey("--animate-")))for(let y of gr(x.value))c.add(y);continue}let C=k.indexOf(x);if(k.splice(C,1),k.length===0){let y=Ji(v,K=>K.kind==="rule"&&K.nodes===k);if(!y||y.length===0)continue e;y.unshift({kind:"at-root",nodes:v});do{let K=y.pop();if(!K)break;let R=y[y.length-1];if(!R||R.kind!=="at-root"&&R.kind!=="at-rule")break;let P=R.nodes.indexOf(K);if(P===-1)break;R.nodes.splice(P,1)}while(!0);continue e}}for(let k of m)if(!c.has(k.params)){let w=t.indexOf(k);t.splice(w,1)}if(v=v.concat(t),i&2)for(let[k,w]of a)for(let x of w){let V=k.indexOf(x);if(V===-1||x.value==null)continue;let C=G(x.value),y=!1;if(D(C,P=>{if(P.kind!=="function"||P.value!=="color-mix")return;let L=!1,U=!1;if(D(P.nodes,j=>{if(j.kind=="word"&&j.value.toLowerCase()==="currentcolor"){U=!0,y=!0;return}let W=j,B=null,ne=new Set;do{if(W.kind!=="function"||W.value!=="var")return;let le=W.nodes[0];if(!le||le.kind!=="word")return;let l=le.value;if(ne.has(l)){L=!0;return}if(ne.add(l),y=!0,B=r.theme.resolveValue(null,[le.value]),!B){L=!0;return}if(B.toLowerCase()==="currentcolor"){U=!0;return}B.startsWith("var(")?W=G(B)[0]:W=null}while(W);return O.Replace({kind:"word",value:B})}),L||U){let j=P.nodes.findIndex(B=>B.kind==="separator"&&B.value.trim().includes(","));if(j===-1)return;let W=P.nodes.length>j?P.nodes[j+1]:null;return W?O.Replace(W):void 0}else if(y){let j=P.nodes[2];j.kind==="word"&&(j.value==="oklab"||j.value==="oklch"||j.value==="lab"||j.value==="lch")&&(j.value="srgb")}}),!y)continue;let K={...x,value:J(C)},R=Y("@supports (color: color-mix(in lab, red, red))",[x]);R.src=x.src,k.splice(V,1,K,R)}if(i&1){let k=[];if(u.length>0){let w=Y(":root, :host",u);w.src=u[0].src,k.push(w)}if(h.length>0){let w=Y("*, ::before, ::after, ::backdrop",h);w.src=h[0].src,k.push(w)}if(k.length>0){let w=v.findIndex(C=>!(C.kind==="comment"||C.kind==="at-rule"&&(C.name==="@charset"||C.name==="@import"))),x=M("@layer","properties",[]);x.src=k[0].src,v.splice(w<0?v.length:w,0,x);let V=Y("@layer properties",[M("@supports","((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b))))",k)]);V.src=k[0].src,V.nodes[0].src=k[0].src,v.push(V)}}return v}function oe(e,r){let i=0,t={file:null,code:""};function n(a,m=0){let c="",u=" ".repeat(m);if(a.kind==="declaration"){if(c+=`${u}${a.property}: ${a.value}${a.important?" !important":""};
4
4
  `,r){i+=u.length;let h=i;i+=a.property.length,i+=2,i+=a.value?.length??0,a.important&&(i+=11);let d=i;i+=2,a.dst=[t,h,d]}}else if(a.kind==="rule"){if(c+=`${u}${a.selector} {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tailwindcss/browser",
3
- "version": "0.0.0-insiders.fba35d0",
3
+ "version": "0.0.0-insiders.fbc358c",
4
4
  "description": "A utility-first CSS framework for rapidly building custom user interfaces.",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.global.js",
@@ -26,7 +26,7 @@
26
26
  "devDependencies": {
27
27
  "h3": "^1.15.4",
28
28
  "listhen": "^1.9.0",
29
- "tailwindcss": "0.0.0-insiders.fba35d0"
29
+ "tailwindcss": "0.0.0-insiders.fbc358c"
30
30
  },
31
31
  "scripts": {
32
32
  "lint": "tsc --noEmit",