MCPcopy Create free account
hub / github.com/FSoft-AI4Code/HyperAgent / ja

Function ja

hyperagent-ext/media/scripts/tailwind.min.js:29–29  ·  view source on GitHub ↗
(r)

Source from the content-addressed store, hash-verified

27`)).join(`
28
29`);x.push(` Use \`${r.replace("[",`[${D}:`)}\` for \`${M.trim()}\``);break}N.warn([`The class \`${r}\` is ambiguous and matches multiple utilities.`,...x,`If this is content and not a class, replace it with \`${r.replace("[","&lsqb;").replace("]","&rsqb;")}\` to silence this warning.`]);continue}}u=u.map(d=>d.filter(y=>id(y[1])))}u=u.flat(),u=Array.from(_S(u,n)),u=gS(u,e),a&&(u=yS(u,n));for(let d of s)u=wS(d,u,e);for(let d of u){if(d[1].raws.tailwind={...d[1].raws.tailwind,candidate:r},d[0].collectedFormats){let y=Yr("&",...d[0].collectedFormats),k=j.root({nodes:[d[1].clone()]});k.walkRules(w=>{hn(w)||(w.selector=pn(y,{selector:w.selector,candidate:t,base:r.split(new RegExp(`\\${e?.tailwindConfig?.separator??":"}(?![^[]*\\])`)).pop(),isArbitraryVariant:d[0].isArbitraryVariant,context:e}))}),d[1]=k.nodes[0]}yield d}}}function hn(r){return r.parent&&r.parent.type==="atrule"&&r.parent.name==="keyframes"}function AS(r){if(r===!0)return e=>{hn(e)||e.walkDecls(t=>{t.parent.type==="rule"&&!hn(t.parent)&&(t.important=!0)})};if(typeof r=="string")return e=>{hn(e)||(e.selectors=e.selectors.map(t=>`${r} ${t}`))}}function mn(r,e){let t=[],i=AS(e.tailwindConfig.important);for(let n of r){if(e.notClassCache.has(n))continue;if(e.candidateRuleCache.has(n)){t=t.concat(Array.from(e.candidateRuleCache.get(n)));continue}let s=Array.from(dn(n,e));if(s.length===0){e.notClassCache.add(n);continue}e.classCache.set(n,s);let a=e.candidateRuleCache.get(n)??new Set;e.candidateRuleCache.set(n,a);for(let o of s){let[{sort:u,options:c},f]=o;if(c.respectImportant&&i){let h=j.root({nodes:[f.clone()]});h.walkRules(i),f=h.nodes[0]}let p=[u,f];a.add(p),e.ruleCache.add(p),t.push(p)}}return t}function ja(r){return r.startsWith("[")&&r.endsWith("]")}var Ba,hS,bS,gn=A(()=>{l();Ze();Ba=J(De());Da();wt();rn();Pr();Ae();rt();La();Ia();Er();wn();Fa();_r();$e();hS=(0,Ba.default)(r=>r.first.filter(({type:e})=>e==="class").pop().value);bS=/^[a-z_-]/});function OS(r){try{return yt.createHash("md5").update(r,"utf-8").digest("binary")}catch(e){return""}}function sd(r,e){let t=e.toString();if(!t.includes("@tailwind"))return!1;let i=Ma.get(r),n=OS(t),s=i!==n;return Ma.set(r,n),s}var ad=A(()=>{l();si();rt()});function Va(r){return(r>0n)-(r<0n)}var od=A(()=>{l()});function ES(r){let e=null;for(let t of r)e=e??t,e=e>t?e:t;return e}var Ua,ld=A(()=>{l();od();Ua=class{constructor(){this.offsets={defaults:0n,base:0n,components:0n,utilities:0n,variants:0n,user:0n},this.layerPositions={defaults:0n,base:1n,components:2n,utilities:3n,user:4n,variants:5n},this.reservedVariantBits=0n,this.variantOffsets=new Map}create(e){return{layer:e,parentLayer:e,arbitrary:0n,variants:0n,parallelIndex:0n,index:this.offsets[e]++,options:[]}}arbitraryProperty(){return{...this.create("utilities"),arbitrary:1n}}forVariant(e,t=0){let i=this.variantOffsets.get(e);if(i===void 0)throw new Error(`Cannot find offset for unknown variant ${e}`);return{...this.create("variants"),variants:i<<BigInt(t)}}applyVariantOffset(e,t,i){return{...e,layer:"variants",parentLayer:e.layer==="variants"?e.parentLayer:e.layer,variants:e.variants|t.variants,options:i.sort?[].concat(i,e.options):e.options,parallelIndex:ES([e.parallelIndex,t.parallelIndex])}}applyParallelOffset(e,t){return{...e,parallelIndex:BigInt(t)}}recordVariants(e,t){for(let i of e)this.recordVariant(i,t(i))}recordVariant(e,t=1){return this.variantOffsets.set(e,1n<<this.reservedVariantBits),this.reservedVariantBits+=BigInt(t),{...this.create("variants"),variants:1n<<this.reservedVariantBits}}compare(e,t){if(e.layer!==t.layer)return this.layerPositions[e.layer]-this.layerPositions[t.layer];for(let i of e.options)for(let n of t.options){if(i.id!==n.id||!i.sort||!n.sort)continue;let s=i.sort({value:i.value,modifier:i.modifier},{value:n.value,modifier:n.modifier});if(s!==0)return s}return e.variants!==t.variants?e.variants-t.variants:e.parallelIndex!==t.parallelIndex?e.parallelIndex-t.parallelIndex:e.arbitrary!==t.arbitrary?e.arbitrary-t.arbitrary:e.index-t.index}sort(e){return e.sort(([t],[i])=>Va(this.compare(t,i)))}}});function Ya(r,e){let t=r.tailwindConfig.prefix;return typeof t=="function"?t(e):t+e}function fd({type:r="any",...e}){let t=[].concat(r);return{...e,types:t.map(i=>Array.isArray(i)?{type:i[0],...i[1]}:{type:i,preferOnConflict:!1})}}function cd(r){if(r.includes("{")){if(!TS(r))throw new Error("Your { and } are unbalanced.");return r.split(/{(.*)}/gim).flatMap(e=>cd(e)).filter(Boolean)}return[r.trim()]}function TS(r){let e=0;for(let t of r)if(t==="{")e++;else if(t==="}"&&--e<0)return!1;return e===0}function PS(r,e,{before:t=[]}={}){if(t=[].concat(t),t.length<=0){r.push(e);return}let i=r.length-1;for(let n of t){let s=r.indexOf(n);s!==-1&&(i=Math.min(i,s))}r.splice(i,0,e)}function pd(r){return Array.isArray(r)?r.flatMap(e=>!Array.isArray(e)&&!ee(e)?e:Pt(e)):pd([r])}function dd(r,e){return(0,Wa.default)(i=>{let n=[];return e&&e(i),i.walkClasses(s=>{n.push(s.value)}),n}).transformSync(r)}function DS(r,e={containsNonOnDemandable:!1},t=0){let i=[];if(r.type==="rule"){let n=function(s){s.walkPseudos(a=>{a.value===":not"&&a.remove()})};for(let s of r.selectors){let a=dd(s,n);a.length===0&&(e.containsNonOnDemandable=!0);for(let o of a)i.push(o)}}else r.type==="atrule"&&r.walkRules(n=>{for(let s of n.selectors.flatMap(a=>dd(a)))i.push(s)});return t===0?[e.containsNonOnDemandable||i.length===0,i]:i}function bn(r){return pd(r).flatMap(e=>{let t=new Map,[i,n]=DS(e);return i&&n.unshift(Ve),n.map(s=>(t.has(e)||t.set(e,e),[s,t.get(e)]))})}function yn(r){return r.startsWith("@")||r.includes("&")}function Qr(r){r=r.replace(/\n+/g,"").replace(/\s{1,}/g," ").trim();let e=cd(r).map(t=>{if(!t.startsWith("@"))return({format:s})=>s(t);let[,i,n]=/@(.*?)( .+|[({].*)/g.exec(t);return({wrap:s})=>s(j.atRule({name:i,params:n.trim()}))}).reverse();return t=>{for(let i of e)i(t)}}function qS(r,e,{variantList:t,variantMap:i,offsets:n,classList:s}){function a(d,y){return d?(0,ud.default)(r,d,y):r}function o(d){return Dt(r.prefix,d)}function u(d,y){return d===Ve?Ve:y.respectPrefix?e.tailwindConfig.prefix+d:d}function c(d,y,k={}){let[w,...b]=He(d),x=a(["theme",w,...b],y);return je(w)(x,k)}let f=Object.assign((d,y=void 0)=>c(d,y),{withAlpha:(d,y)=>c(d,void 0,{opacityValue:y})}),p=0,h={postcss:j,prefix:o,e:ve,config:a,theme:f,corePlugins:d=>Array.isArray(r.corePlugins)?r.corePlugins.includes(d):a(["corePlugins",d],!0),variants:()=>[],addBase(d){for(let[y,k]of bn(d)){let w=u(y,{}),b=n.create("base");e.candidateRuleMap.has(w)||e.candidateRuleMap.set(w,[]),e.candidateRuleMap.get(w).push([{sort:b,layer:"base"},k])}},addDefaults(d,y){let k={[`@defaults ${d}`]:y};for(let[w,b]of bn(k)){let x=u(w,{});e.candidateRuleMap.has(x)||e.candidateRuleMap.set(x,[]),e.candidateRuleMap.get(x).push([{sort:n.create("defaults"),layer:"defaults"},b])}},addComponents(d,y){y=Object.assign({},{preserveSource:!1,respectPrefix:!0,respectImportant:!1},Array.isArray(y)?{}:y);for(let[w,b]of bn(d)){let x=u(w,y);s.add(x),e.candidateRuleMap.has(x)||e.candidateRuleMap.set(x,[]),e.candidateRuleMap.get(x).push([{sort:n.create("components"),layer:"components",options:y},b])}},addUtilities(d,y){y=Object.assign({},{preserveSource:!1,respectPrefix:!0,respectImportant:!0},Array.isArray(y)?{}:y);for(let[w,b]of bn(d)){let x=u(w,y);s.add(x),e.candidateRuleMap.has(x)||e.candidateRuleMap.set(x,[]),e.candidateRuleMap.get(x).push([{sort:n.create("utilities"),layer:"utilities",options:y},b])}},matchUtilities:function(d,y){y=fd({...{respectPrefix:!0,respectImportant:!0,modifiers:!1},...y});let w=n.create("utilities");for(let b in d){let _=function(M,{isOnlyPlugin:B}){let[q,F,X]=Us(y.types,M,y,r);if(q===void 0)return[];if(!y.types.some(({type:pe})=>pe===F))if(B)N.warn([`Unnecessary typehint \`${F}\` in \`${b}-${M}\`.`,`You can safely update it to \`${b}-${M.replace(F+":","")}\`.`]);else return[];if(!It(q))return[];let ce={get modifier(){return y.modifiers||N.warn(`modifier-used-without-options-for-${b}`,["Your plugin must set `modifiers: true` in its options to support modifiers."]),X}},se=K(r,"generalizedModifiers");return[].concat(se?S(q,ce):S(q)).filter(Boolean).map(pe=>({[nn(b,M)]:pe}))},x=u(b,y),S=d[b];s.add([x,y]);let D=[{sort:w,layer:"utilities",options:y},_];e.candidateRuleMap.has(x)||e.candidateRuleMap.set(x,[]),e.candidateRuleMap.get(x).push(D)}},matchComponents:function(d,y){y=fd({...{respectPrefix:!0,respectImportant:!1,modifiers:!1},...y});let w=n.create("components");for(let b in d){let _=function(M,{isOnlyPlugin:B}){let[q,F,X]=Us(y.types,M,y,r);if(q===void 0)return[];if(!y.types.some(({type:pe})=>pe===F))if(B)N.warn([`Unnecessary typehint \`${F}\` in \`${b}-${M}\`.`,`You can safely update it to \`${b}-${M.replace(F+":","")}\`.`]);else return[];if(!It(q))return[];let ce={get modifier(){return y.modifiers||N.warn(`modifier-used-without-options-for-${b}`,["Your plugin must set `modifiers: true` in its options to support modifiers."]),X}},se=K(r,"generalizedModifiers");return[].concat(se?S(q,ce):S(q)).filter(Boolean).map(pe=>({[nn(b,M)]:pe}))},x=u(b,y),S=d[b];s.add([x,y]);let D=[{sort:w,layer:"components",options:y},_];e.candidateRuleMap.has(x)||e.candidateRuleMap.set(x,[]),e.candidateRuleMap.get(x).push(D)}},addVariant(d,y,k={}){y=[].concat(y).map(w=>{if(typeof w!="string")return(b={})=>{let{args:x,modifySelectors:S,container:_,separator:D,wrap:M,format:B}=b,q=w(Object.assign({modifySelectors:S,container:_,separator:D},k.type===Ga.MatchVariant&&{args:x,wrap:M,format:B}));if(typeof q=="string"&&!yn(q))throw new Error(`Your custom variant \`${d}\` has an invalid format string. Make sure it's an at-rule or contains a \`&\` placeholder.`);return Array.isArray(q)?q.filter(F=>typeof F=="string").map(F=>Qr(F)):q&&typeof q=="string"&&Qr(q)(b)};if(!yn(w))throw new Error(`Your custom variant \`${d}\` has an invalid format string. Make sure it's an at-rule or contains a \`&\` placeholder.`);return Qr(w)}),PS(t,d,k),i.set(d,y),e.variantOptions.set(d,k)},matchVariant(d,y,k){let w=k?.id??++p,b=d==="@",x=K(r,"generalizedModifiers");for(let[_,D]of Object.entries(k?.values??{}))_!=="DEFAULT"&&h.addVariant(b?`${d}${_}`:`${d}-${_}`,({args:M,container:B})=>y(D,x?{modifier:M?.modifier,container:B}:{container:B}),{...k,value:D,id:w,type:Ga.MatchVariant,variantInfo:Ha.Base});let S="DEFAULT"in(k?.values??{});h.addVariant(d,({args:_,container:D})=>_?.value===Hr&&!S?null:y(_?.value===Hr?k.values.DEFAULT:_?.value??(typeof _=="string"?_:""),x?{modifier:_?.modifier,container:D}:{container:D}),{...k,id:w,type:Ga.MatchVariant,variantInfo:Ha.Dynamic})}};return h}function vn(r){return Qa.has(r)||Qa.set(r,new Map),Qa.get(r)}function hd(r,e){let t=!1;for(let i of r){if(!i)continue;let n=Xs.parse(i),s=n.hash?n.href.replace(n.hash,""):n.href;s=n.search?s.replace(n.search,""):s;let a=ae.statSync(decodeURIComponent(s),{throwIfNoEntry:!1})?.mtimeMs;!a||((!e.has(i)||a>e.get(i))&&(t=!0),e.set(i,a))}return t}function md(r){r.walkAtRules(e=>{["responsive","variants"].includes(e.name)&&(md(e),e.before(e.nodes),e.remove())})}function IS(r){let e=[];return r.each(t=>{t.type==="atrule"&&["responsive","variants"].includes(t.name)&&(t.name="layer",t.params="utilities")}),r.walkAtRules("layer",t=>{if(md(t),t.params==="base"){for(let i of t.nodes)e.push(function({addBase:n}){n(i,{respectPrefix:!1})});t.remove()}else if(t.params==="components"){for(let i of t.nodes)e.push(function({addComponents:n}){n(i,{respectPrefix:!1,preserveSource:!0})});t.remove()}else if(t.params==="utilities"){for(let i of t.nodes)e.push(function({addUtilities:n}){n(i,{respectPrefix:!1,preserveSource:!0})});t.remove()}}),e}function RS(r,e){let t=Object.entries({...ue,...Hp}).map(([o,u])=>r.tailwindConfig.corePlugins.includes(o)?u:null).filter(Boolean),i=r.tailwindConfig.plugins.map(o=>(o.__isOptionsFunction&&(o=o()),typeof o=="function"?o:o.handler)),n=IS(e),s=[ue.pseudoElementVariants,ue.pseudoClassVariants,ue.ariaVariants,ue.dataVariants],a=[ue.supportsVariants,ue.directionVariants,ue.reducedMotionVariants,ue.prefersContrastVariants,ue.darkVariants,ue.printVariant,ue.screenVariants,ue.orientationVariants];return[...t,...s,...i,...a,...n]}function MS(r,e){let t=[],i=new Map;e.variantMap=i;let n=new Ua;e.offsets=n;let s=new Set,a=qS(e.tailwindConfig,e,{variantList:t,variantMap:i,offsets:n,classList:s});for(let f of r)if(Array.isArray(f))for(let p of f)p(a);else f?.(a);n.recordVariants(t,f=>i.get(f).length);for(let[f,p]of i.entries())e.variantMap.set(f,p.map((h,d)=>[n.forVariant(f,d),h]));let o=(e.tailwindConfig.safelist??[]).filter(Boolean);if(o.length>0){let f=[];for(let p of o){if(typeof p=="string"){e.changedContent.push({content:p,extension:"html"});continue}if(p instanceof RegExp){N.warn("root-regex",["Regular expressions in `safelist` work differently in Tailwind CSS v3.0.","Update your `safelist` configuration to eliminate this warning.","https://tailwindcss.com/docs/content-configuration#safelisting-classes"]);continue}f.push(p)}if(f.length>0){let p=new Map,h=e.tailwindConfig.prefix.length,d=f.some(y=>y.pattern.source.includes("!"));for(let y of s){let k=Array.isArray(y)?(()=>{let[w,b]=y,S=Object.keys(b?.values??{}).map(_=>Gr(w,_));return b?.supportsNegativeValues&&(S=[...S,...S.map(_=>"-"+_)],S=[...S,...S.map(_=>_.slice(0,h)+"-"+_.slice(h))]),b.types.some(({type:_})=>_==="color")&&(S=[...S,...S.flatMap(_=>Object.keys(e.tailwindConfig.theme.opacity).map(D=>`${_}/${D}`))]),d&&b?.respectImportant&&(S=[...S,...S.map(_=>"!"+_)]),S})():[y];for(let w of k)for(let{pattern:b,variants:x=[]}of f)if(b.lastIndex=0,p.has(b)||p.set(b,0),!!b.test(w)){p.set(b,p.get(b)+1),e.changedContent.push({content:w,extension:"html"});for(let S of x)e.changedContent.push({content:S+e.tailwindConfig.separator+w,extension:"html"})}}for(let[y,k]of p.entries())k===0&&N.warn([`The safelist pattern \`${y}\` doesn't match any Tailwind CSS classes.`,"Fix this pattern or remove it from your `safelist` configuration.","https://tailwindcss.com/docs/content-configuration#safelisting-classes"])}}let u=[].concat(e.tailwindConfig.darkMode??"media")[1]??"dark",c=[Ya(e,u),Ya(e,"group"),Ya(e,"peer")];e.getClassOrder=function(p){let h=new Map(p.map(k=>[k,null])),d=mn(new Set(p),e);d=e.offsets.sort(d);let y=BigInt(c.length);for(let[,k]of d)h.set(k.raws.tailwind.candidate,y++);return p.map(k=>{let w=h.get(k)??null,b=c.indexOf(k);return w===null&&b!==-1&&(w=BigInt(b)),[k,w]})},e.getClassList=function(){let p=[];for(let h of s)if(Array.isArray(h)){let[d,y]=h,k=[];for(let[w,b]of Object.entries(y?.values??{}))b!=null&&(p.push(Gr(d,w)),y?.supportsNegativeValues&&ut(b)&&k.push(Gr(d,`-${w}`)));p.push(...k)}else p.push(h);return p},e.getVariants=function(){let p=[];for(let[h,d]of e.variantOptions.entries())d.variantInfo!==Ha.Base&&p.push({name:h,isArbitrary:d.type===Symbol.for("MATCH_VARIANT"),values:Object.keys(d.values??{}),hasDash:h!=="@",selectors({modifier:y,value:k}={}){let w="__TAILWIND_PLACEHOLDER__",b=j.rule({selector:`.${w}`}),x=j.root({nodes:[b.clone()]}),S=x.toString(),_=(e.variantMap.get(h)??[]).flatMap(([F,X])=>X),D=[];for(let F of _){let X=[],ce={args:{modifier:y,value:d.values?.[k]??k},separator:e.tailwindConfig.separator,modifySelectors(re){return x.each(pe=>{pe.type==="rule"&&(pe.selectors=pe.selectors.map(Rl=>re({get className(){return $a(Rl)},selector:Rl})))}),x},format(re){X.push(re)},wrap(re){X.push(`@${re.name} ${re.params} { & }`)},container:x},se=F(ce);if(X.length>0&&D.push(X),Array.isArray(se))for(let re of se)X=[],re(ce),D.push(X)}let M=[],B=x.toString();S!==B&&(x.walkRules(F=>{let X=F.selector,ce=(0,Wa.default)(se=>{se.walkClasses(re=>{re.value=`${h}${e.tailwindConfig.separator}${re.value}`})}).processSync(X);M.push(X.replace(ce,"&").replace(w,"&"))}),x.walkAtRules(F=>{M.push(`@${F.name} (${F.params}) { & }`)}));let q=D.map(F=>pn(Yr("&",...F),{selector:`.${w}`,candidate:w,context:e,isArbitraryVariant:!(k in(d.values??{}))}).replace(`.${w}`,"&").replace("{ & }","").trim());return M.length>0&&q.push(Yr("&",...M)),q}});return p}}function gd(r,e){!r.classCache.has(e)||(r.notClassCache.add(e),r.classCache.delete(e),r.applyClassCache.delete(e),r.candidateRuleMap.delete(e),r.candidateRuleCache.delete(e),r.stylesheetCache=null)}function FS(r,e){let t=e.raws.tailwind.candidate;if(!!t){for(let i of r.ruleCache)i[1].raws.tailwind.candidate===t&&r.ruleCache.delete(i);gd(r,t)}}function Ja(r,e=[],t=j.root()){let i={disposables:[],ruleCache:new Set,candidateRuleCache:new Map,classCache:new Map,applyClassCache:new Map,notClassCache:new Set(r.blocklist??[]),postCssNodeCache:new Map,candidateRuleMap:new Map,tailwindConfig:r,changedContent:e,variantMap:new Map,stylesheetCache:null,variantOptions:new Map,markInvalidUtilityCandidate:s=>gd(i,s),markInvalidUtilityNode:s=>FS(i,s)},n=RS(i,t);return MS(n,i),i}function yd(r,e,t,i,n,s){let a=e.opts.from,o=i!==null;Te.DEBUG&&console.log("Source path:",a);let u;if(o&&Mt.has(a))u=Mt.get(a);else if(Jr.has(n)){let p=Jr.get(n);it.get(p).add(a),Mt.set(a,p),u=p}let c=sd(a,r);if(u&&!hd([...s],vn(u))&&!c)return[u,!1];if(Mt.has(a)){let p=Mt.get(a);if(it.has(p)&&(it.get(p).delete(a),it.get(p).size===0)){it.delete(p);for(let[h,d]of Jr)d===p&&Jr.delete(h);for(let h of p.disposables.splice(0))h(p)}}Te.DEBUG&&console.log("Setting up new context...");let f=Ja(t,[],r);return Object.assign(f,{userConfigPath:i}),hd([...s],vn(f)),Jr.set(n,f),Mt.set(a,f),it.has(f)||it.set(f,new Set),it.get(f).add(a),[f,!0]}var ud,Wa,Ga,Ha,Qa,Mt,Jr,it,wn=A(()=>{l();Ge();Ks();Ze();ud=J(va()),Wa=J(De());Ur();Da();rn();wt();qt();Ia();Pr();Yp();rt();rt();li();Ae();ai();Fa();gn();ad();ld();$e();La();Ga={AddVariant:Symbol.for("ADD_VARIANT"),MatchVariant:Symbol.for("MATCH_VARIANT")},Ha={Base:1<<0,Dynamic:1<<1};Qa=new WeakMap;Mt=Qp,Jr=Jp,it=fn});function Xa(r){return r.ignore?[]:r.glob?m.env.ROLLUP_WATCH==="true"?[{type:"dependency",file:r.base}]:[{type:"dir-dependency",dir:r.base,glob:r.glob}]:[{type:"dependency",file:r.base}]}var wd=A(()=>{l()});function Ka(r){return r.content.files.length===0&&N.warn("content-problems",["The `content` option in your Tailwind CSS configuration is missing or empty.","Configure your content sources or your generated CSS will be missing styles.","https://tailwindcss.com/docs/content-configuration"]),r}var bd=A(()=>{l();Ae()});var vd,xd=A(()=>{l();vd=()=>!1});var xn,kd=A(()=>{l();xn={sync:r=>[].concat(r),generateTasks:r=>[{dynamic:!1,base:".",negative:[],positive:[].concat(r),patterns:[].concat(r)}],escapePath:r=>r}});var Za,Sd=A(()=>{l();Za=r=>r});var Cd,_d=A(()=>{l();Cd=()=>""});function Ad(r){let e=r,t=Cd(r);return t!=="."&&(e=r.substr(t.length),e.charAt(0)==="/"&&(e=e.substr(1))),e.substr(0,2)==="./"&&(e=e.substr(2)),e.charAt(0)==="/"&&(e=e.substr(1)),{base:t,glob:e}}var Od=A(()=>{l();_d()});function Ed(r,e){let t=e.content.files;t=t.filter(o=>typeof o=="string"),t=t.map(Za);let i=xn.generateTasks(t),n=[],s=[];for(let o of i)n.push(...o.positive.map(u=>Td(u,!1))),s.push(...o.negative.map(u=>Td(u,!0)));let a=[...n,...s];return a=LS(r,a),a=a.flatMap(BS),a=a.map(NS),a}function Td(r,e){let t={original:r,base:r,ignore:e,pattern:r,glob:null};return vd(r)&&Object.assign(t,Ad(r)),t}function NS(r){let e=Za(r.base);return e=xn.escapePath(e),r.pattern=r.glob?`${e}/${r.glob}`:e,r.pattern=r.ignore?`!${r.pattern}`:r.pattern,r}function LS(r,e){let t=[];return r.userConfigPath&&r.tailwindConfig.content.relative&&(t=[ie.dirname(r.userConfigPath)]),e.map(i=>(i.base=ie.resolve(...t,i.base),i))}function BS(r){let e=[r];try{let t=ae.realpathSync(r.base);t!==r.base&&e.push({...r,base:t})}catch{}return e}function Pd(r,e,t){let i=r.tailwindConfig.content.files.filter(n=>typeof n.raw=="string").map(({raw:n,extension:s="html"})=>({content:n,extension:s}));for(let n of $S(e,t)){let s=ae.readFileSync(n,"utf8"),a=ie.extname(n).slice(1);i.push({content:s,extension:a})}return i}function $S(r,e){let t=r.map(s=>s.pattern),i=new Set;Te.DEBUG&&console.time("Finding changed files");let n=xn.sync(t,{absolute:!0});for(let s of n){let a=e.has(s)?e.get(s):-1/0,o=ae.statSync(s).mtimeMs;o>=a&&(i.add(s),e.set(s,o))}return Te.DEBUG&&console.timeEnd("Finding changed files"),i}var Dd=A(()=>{l();Ge();lt();xd();kd();Sd();Od();rt()});function zS(r,e){if(eo.has(r))return eo.get(r);let t=Ed(r,e);return eo.set(r,t).get(r)}function jS(r){let e=Js(r);if(e!==null){let[i,n,s,a]=Id.get(e)||[],o=Ln(e).map(h=>h.file),u=!1,c=new Map;for(let h of o){let d=ae.statSync(h).mtimeMs;c.set(h,d),(!a||!a.has(h)||d>a.get(h))&&(u=!0)}if(!u)return[i,e,n,s];for(let h of o)delete Fn.cache[h];let f=qr(Fn(e));f=Ka(f);let p=ni(f);return Id.set(e,[f,p,o,c]),[f,e,p,o]}let t=qr(r.config===void 0?r:r.config);return t=Ka(t),[t,null,ni(t),[]]}function to(r){return({tailwindDirectives:e,registerDependency:t})=>(i,n)=>{let[s,a,o,u]=jS(r),c=new Set(u);if(e.size>0){c.add(n.opts.from);for(let h of n.messages)h.type==="dependency"&&c.add(h.file)}let[f]=yd(i,n,s,a,o,c),p=zS(f,s);if(e.size>0){let h=vn(f);for(let d of p)for(let y of Xa(d))t(y);for(let d of Pd(f,p,h))f.changedContent.push(d)}for(let h of u)t({type:"dependency",file:h});return f}}var qd,Id,eo,Rd=A(()=>{l();Ge();qd=J(Nn());$l();Vl();Qs();Vf();wn();wd();bd();Dd();Id=new qd.default({maxSize:100}),eo=new WeakMap});function ro(r){let e=new Set,t=new Set,i=new Set;if(r.walkAtRules(n=>{n.name==="apply"&&i.add(n),n.name==="import"&&(n.params==='"tailwindcss/base"'||n.params==="'tailwindcss/base'"?(n.name="tailwind",n.params="base"):n.params==='"tailwindcss/components"'||n.params==="'tailwindcss/components'"?(n.name="tailwind",n.params="components"):n.params==='"tailwindcss/utilities"'||n.params==="'tailwindcss/utilities'"?(n.name="tailwind",n.params="utilities"):(n.params==='"tailwindcss/screens"'||n.params==="'tailwindcss/screens'"||n.params==='"tailwindcss/variants"'||n.params==="'tailwindcss/variants'")&&(n.name="tailwind",n.params="variants")),n.name==="tailwind"&&(n.params==="screens"&&(n.params="variants"),e.add(n.params)),["layer","responsive","variants"].includes(n.name)&&(["responsive","variants"].includes(n.name)&&N.warn(`${n.name}-at-rule-deprecated`,[`The \`@${n.name}\` directive has been deprecated in Tailwind CSS v3.0.`,"Use `@layer utilities` or `@layer components` instead.","https://tailwindcss.com/docs/upgrade-guide#replace-variants-with-layer"]),t.add(n))}),!e.has("base")||!e.has("components")||!e.has("utilities")){for(let n of t)if(n.name==="layer"&&["base","components","utilities"].includes(n.params)){if(!e.has(n.params))throw n.error(`\`@layer ${n.params}\` is used but no matching \`@tailwind ${n.params}\` directive is present.`)}else if(n.name==="responsive"){if(!e.has("utilities"))throw n.error("`@responsive` is used but `@tailwind utilities` is missing.")}else if(n.name==="variants"&&!e.has("utilities"))throw n.error("`@variants` is used but `@tailwind utilities` is missing.")}return{tailwindDirectives:e,applyDirectives:i}}var Md=A(()=>{l();Ae()});function ht(r,e=void 0,t=void 0){return r.map(i=>{let n=i.clone(),s=i.raws.tailwind?.preserveSource!==!0||!n.source;return e!==void 0&&s&&(n.source=e,"walk"in n&&n.walk(a=>{a.source=e})),t!==void 0&&(n.raws.tailwind={...n.raws.tailwind,...t}),n})}var Fd=A(()=>{l()});function kn(r){return r=Array.isArray(r)?r:[r],r=r.map(e=>e instanceof RegExp?e.source:e),r.join("")}function xe(r){return new RegExp(kn(r),"g")}function Ft(r){return`(?:${r.map(kn).join("|")})`}function io(r){return`(?:${kn(r)})?`}function Ld(r){return`(?:${kn(r)})*`}function Bd(r){return r&&VS.test(r)?r.replace(Nd,"\\$&"):r||""}var Nd,VS,$d=A(()=>{l();Nd=/[\\^$.*+?()[\]{}|]/g,VS=RegExp(Nd.source)});function zd(r){let e=Array.from(US(r));return t=>{let i=[];for(let n of e)i=[...i,...t.match(n)??[]];return i.filter(n=>n!==void 0).map(HS)}}function*US(r){let e=r.tailwindConfig.separator,t=K(r.tailwindConfig,"variantGrouping"),i=r.tailwindConfig.prefix!==""?io(xe([/-?/,Bd(r.tailwindConfig.prefix)])):"",n=Ft([/\[[^\s:'"`]+:[^\s]+\]/,xe([/-?(?:\w+)/,io(Ft([xe([/-(?:\w+-)*\[[^\s:]+\]/,/(?![{([]])/,/(?:\/[^\s'"`\\><$]*)?/]),xe([/-(?:\w+-)*\[[^\s]+\]/,/(?![{([]])/,/(?:\/[^\s'"`\\$]*)?/]),/[-\/][^\s'"`\\$={><]*/]))])]),s=[Ft([xe([/@\[[^\s"'`]+\](\/[^\s"'`]+)?/,e]),xe([/([^\s"'`\[\\]+-)?\[[^\s"'`]+\]/,e]),xe([/[^\s"'`\[\\]+/,e])]),Ft([xe([/([^\s"'`\[\\]+-)?\[[^\s`]+\]/,e]),xe([/[^\s`\[\\]+/,e])])];for(let a of s)yield xe(["((?=((",a,")+))\\2)?",/!?/,i,t?Ft([xe([/\(/,n,Ld([/,/,n]),/\)/]),n]):n]);yield/[^<>"'`\s.(){}[\]#=%$]*[^<>"'`\s.(){}[\]#=%:$]/g}function HS(r){if(!r.includes("-["))return r;let e=0,t=[],i=r.matchAll(WS);i=Array.from(i).flatMap(n=>{let[,...s]=n;return s.map((a,o)=>Object.assign([],n,{index:n.index+o,0:a}))});for(let n of i){let s=n[0],a=t[t.length-1];if(s===a?t.pop():(s==="'"||s==='"'||s==="`")&&t.push(s),!a){if(s==="["){e++;continue}else if(s==="]"){e--;continue}if(e<0||e===0&&!GS.test(s))return r.substring(0,n.index)}}return r}var WS,GS,jd=A(()=>{l();$e();$d();WS=/([\[\]'"`])([^\[\]'"`])?/g,GS=/[^"'`\s<>\]]+/});function YS(r,e){let t=r.tailwindConfig.content.extract;return t[e]||t.DEFAULT||Ud[e]||Ud.DEFAULT(r)}function QS(r,e){let t=r.content.transform;return t[e]||t.DEFAULT||Wd[e]||Wd.DEFAULT}function JS(r,e,t,i){Xr.has(e)||Xr.set(e,new Vd.default({maxSize:25e3}));for(let n of r.split(`
30`))if(n=n.trim(),!i.has(n))if(i.add(n),Xr.get(e).has(n))for(let s of Xr.get(e).get(n))t.add(s);else{let s=e(n).filter(o=>o!=="!*"),a=new Set(s);for(let o of a)t.add(o);Xr.get(e).set(n,a)}}function XS(r,e){let t=e.offsets.sort(r),i={base:new Set,defaults:new Set,components:new Set,utilities:new Set,variants:new Set};for(let[n,s]of t)i[n.layer].add(s);return i}function no(r){return e=>{let t={base:null,components:null,utilities:null,variants:null};if(e.walkAtRules(d=>{d.name==="tailwind"&&Object.keys(t).includes(d.params)&&(t[d.params]=d)}),Object.values(t).every(d=>d===null))return e;let i=new Set([Ve]),n=new Set;mt.DEBUG&&console.time("Reading changed files");for(let{content:d,extension:y}of r.changedContent){let k=QS(r.tailwindConfig,y),w=YS(r,y);JS(k(d),w,i,n)}mt.DEBUG&&console.timeEnd("Reading changed files");let s=r.classCache.size;mt.DEBUG&&console.time("Generate rules"),mn(i,r),mt.DEBUG&&console.timeEnd("Generate rules"),mt.DEBUG&&console.time("Build stylesheet"),(r.stylesheetCache===null||r.classCache.size!==s)&&(r.stylesheetCache=XS([...r.ruleCache],r)),mt.DEBUG&&console.timeEnd("Build stylesheet");let{defaults:a,base:o,components:u,utilities:c,variants:f}=r.stylesheetCache;t.base&&(t.base.before(ht([...o,...a],t.base.source,{layer:"base"})),t.base.remove()),t.components&&(t.components.before(ht([...u],t.components.source,{layer:"components"})),t.components.remove()),t.utilities&&(t.utilities.before(ht([...c],t.utilities.source,{layer:"utilities"})),t.utilities.remove());let p=Array.from(f).filter(d=>{let y=d.raws.tailwind?.parentLayer;return y==="components"?t.components!==null:y==="utilities"?t.utilities!==null:!0});t.variants?(t.variants.before(ht(p,t.variants.source,{layer:"variants"})),t.variants.remove()):p.length>0&&e.append(ht(p,e.source,{layer:"variants"}));let h=p.some(d=>d.raws.tailwind?.parentLayer==="utilities");t.utilities&&c.size===0&&!h&&N.warn("content-problems",["No utility classes were detected in your source files. If this is unexpected, double-check the `content` option in your Tailwind CSS configuration.","https://tailwindcss.com/docs/content-configuration"]),mt.DEBUG&&(console.log("Potential classes: ",i.size),console.log("Active contexts: ",fn.size)),r.changedContent=[],e.walkAtRules("layer",d=>{Object.keys(t).includes(d.params)&&d.remove()})}}var Vd,mt,Ud,Wd,Xr,Gd=A(()=>{l();Vd=J(Nn());rt();gn();Ae();Fd();jd();mt=Te,Ud={DEFAULT:zd},Wd={DEFAULT:r=>r,svelte:r=>r.replace(/(?:^|\s)class:/g," ")};Xr=new WeakMap});function Sn(r){let e=new Map;j.root({nodes:[r.clone()]}).walkRules(s=>{(0,so.default)(a=>{a.walkClasses(o=>{let u=o.parent.toString(),c=e.get(u);c||e.set(u,c=new Set),c.add(o.value)})}).processSync(s.selector)});let i=Array.from(e.values(),s=>Array.from(s)),n=i.flat();return Object.assign(n,{groups:i})}function ao(r){return KS.astSync(r)}function Hd(r,e){let t=new Set;for(let i of r)t.add(i.split(e).pop());return Array.from(t)}function Yd(r,e){let t=r.tailwindConfig.prefix;return typeof t=="function"?t(e):t+e}function*Qd(r){for(yield r;r.parent;)yield r.parent,r=r.parent}function ZS(r,e={}){let t=r.nodes;r.nodes=[];let i=r.clone(e);return r.nodes=t,i}function e2(r){for(let e of Qd(r))if(r!==e){if(e.type==="root")break;r=ZS(e,{nodes:[r]})}return r}function t2(r,e){let t=new Map;return r.walkRules(i=>{for(let a of Qd(i))if(a.raws.tailwind?.layer!==void 0)return;let n=e2(i),s=e.offsets.create("user");for(let a of Sn(i)){let o=t.get(a)||[];t.set(a,o),o.push([{layer:"user",sort:s,important:!1},n])}}),t}function r2(r,e){for(let t of r){if(e.notClassCache.has(t)||e.applyClassCache.has(t))continue;if(e.classCache.has(t)){e.applyClassCache.set(t,e.classCache.get(t).map(([n,s])=>[n,s.clone()]));continue}let i=Array.from(dn(t,e));if(i.length===0){e.notClassCache.add(t);continue}e.applyClassCache.set(t,i)}return e.applyClassCache}function i2(r){let e=null;return{get:t=>(e=e||r(),e.get(t)),has:t=>(e=e||r(),e.has(t))}}function n2(r){return{get:e=>r.flatMap(t=>t.get(e)||[]),has:e=>r.some(t=>t.has(e))}}function Jd(r){let e=r.split(/[\s\t\n]+/g);return e[e.length-1]==="!important"?[e.slice(0,-1),!0]:[e,!1]}function Xd(r,e,t){let i=new Set,n=[];if(r.walkAtRules("apply",u=>{let[c]=Jd(u.params);for(let f of c)i.add(f);n.push(u)}),n.length===0)return;let s=n2([t,r2(i,e)]);function a(u,c,f){let p=ao(u),h=ao(c),y=ao(`.${ve(f)}`).nodes[0].nodes[0];return p.each(k=>{let w=new Set;h.each(b=>{let x=!1;b=b.clone(),b.walkClasses(S=>{S.value===y.value&&(x||(S.replaceWith(...k.nodes.map(_=>_.clone())),w.add(b),x=!0))})});for(let b of w){let x=[[]];for(let S of b.nodes)S.type==="combinator"?(x.push(S),x.push([])):x[x.length-1].push(S);b.nodes=[];for(let S of x)Array.isArray(S)&&S.sort((_,D)=>_.type==="tag"&&D.type==="class"?-1:_.type==="class"&&D.type==="tag"?1:_.type==="class"&&D.type==="pseudo"&&D.value.startsWith("::")?-1:_.type==="pseudo"&&_.value.startsWith("::")&&D.type==="class"?1:0),b.nodes=b.nodes.concat(S)}k.replaceWith(...w)}),p.toString()}let o=new Map;for(let u of n){let[c]=o.get(u.parent)||[[],u.source];o.set(u.parent,[c,u.source]);let[f,p]=Jd(u.params);if(u.parent.type==="atrule"){if(u.parent.name==="screen"){let h=u.parent.params;throw u.error(`@apply is not supported within nested at-rules like @screen. We suggest you write this as @apply ${f.map(d=>`${h}:${d}`).join(" ")} instead.`)}throw u.error(`@apply is not supported within nested at-rules like @${u.parent.name}. You can fix this by un-nesting @${u.parent.name}.`)}for(let h of f){if([Yd(e,"group"),Yd(e,"peer")].includes(h))throw u.error(`@apply should not be used with the '${h}' utility`);if(!s.has(h))throw u.error(`The \`${h}\` class does not exist. If \`${h}\` is a custom class, make sure it is defined within a \`@layer\` directive.`);let d=s.get(h);c.push([h,p,d])}}for(let[u,[c,f]]of o){let p=[];for(let[d,y,k]of c){let w=[d,...Hd([d],e.tailwindConfig.separator)];for(let[b,x]of k){let S=Sn(u),_=Sn(x);if(_=_.groups.filter(q=>q.some(F=>w.includes(F))).flat(),_=_.concat(Hd(_,e.tailwindConfig.separator)),S.some(q=>_.includes(q)))throw x.error(`You cannot \`@apply\` the \`${d}\` utility here because it creates a circular dependency.`);let M=j.root({nodes:[x.clone()]});M.walk(q=>{q.source=f}),(x.type!=="atrule"||x.type==="atrule"&&x.name!=="keyframes")&&M.walkRules(q=>{if(!Sn(q).some(se=>se===d)){q.remove();return}let F=typeof e.tailwindConfig.important=="string"?e.tailwindConfig.important:null,ce=u.raws.tailwind!==void 0&&F&&u.selector.indexOf(F)===0?u.selector.slice(F.length):u.selector;q.selector=a(ce,q.selector,d),F&&ce!==u.selector&&(q.selector=`${F} ${q.selector}`),q.walkDecls(se=>{se.important=b.important||y})}),!!M.nodes[0]&&p.push([b.sort,M.nodes[0]])}}let h=e.offsets.sort(p).map(d=>d[1]);u.after(h)}for(let u of n)u.parent.nodes.length>1?u.remove():u.parent.remove();Xd(r,e,t)}function oo(r){return e=>{let t=i2(()=>t2(e,r));Xd(e,r,t)}}var so,KS,Kd=A(()=>{l();Ze();so=J(De());gn();qt();KS=(0,so.default)()});var Zd=v((LP,Cn)=>{l();(function(){"use strict";function r(i,n,s){if(!i)return null;r.caseSensitive||(i=i.toLowerCase());var a=r.threshold===null?null:r.threshold*i.length,o=r.thresholdAbsolute,u;a!==null&&o!==null?u=Math.min(a,o):a!==null?u=a:o!==null?u=o:u=null;var c,f,p,h,d,y=n.length;for(d=0;d<y;d++)if(f=n[d],s&&(f=f[s]),!!f&&(r.caseSensitive?p=f:p=f.toLowerCase(),h=t(i,p,u),(u===null||h<u)&&(u=h,s&&r.returnWinningObject?c=n[d]:c=f,r.returnFirstMatch)))return c;return c||r.nullResultValue}r.threshold=.4,r.thresholdAbsolute=20,r.caseSensitive=!1,r.nullResultValue=null,r.returnWinningObject=null,r.returnFirstMatch=!1,typeof Cn!="undefined"&&Cn.exports?Cn.exports=r:window.didYouMean=r;var e=Math.pow(2,32)-1;function t(i,n,s){s=s||s===0?s:e;var a=i.length,o=n.length;if(a===0)return Math.min(s+1,o);if(o===0)return Math.min(s+1,a);if(Math.abs(a-o)>s)return s+1;var u=[],c,f,p,h,d;for(c=0;c<=o;c++)u[c]=[c];for(f=0;f<=a;f++)u[0][f]=f;for(c=1;c<=o;c++){for(p=e,h=1,c>s&&(h=c-s),d=o+1,d>s+c&&(d=s+c),f=1;f<=a;f++)f<h||f>d?u[c][f]=s+1:n.charAt(c-1)===i.charAt(f-1)?u[c][f]=u[c-1][f-1]:u[c][f]=Math.min(u[c-1][f-1]+1,Math.min(u[c][f-1]+1,u[c-1][f]+1)),u[c][f]<p&&(p=u[c][f]);if(p>s)return s+1}return u[o][a]}})()});var th=v((BP,eh)=>{l();var lo="(".charCodeAt(0),uo=")".charCodeAt(0),_n="'".charCodeAt(0),fo='"'.charCodeAt(0),co="\\".charCodeAt(0),Nt="/".charCodeAt(0),po=",".charCodeAt(0),ho=":".charCodeAt(0),An="*".charCodeAt(0),s2="u".charCodeAt(0),a2="U".charCodeAt(0),o2="+".charCodeAt(0),l2=/^[a-f0-9?-]+$/i;eh.exports=function(r){for(var e=[],t=r,i,n,s,a,o,u,c,f,p=0,h=t.charCodeAt(p),d=t.length,y=[{nodes:e}],k=0,w,b="",x="",S="";p<d;)if(h<=32){i=p;do i+=1,h=t.charCodeAt(i);while(h<=32);a=t.slice(p,i),s=e[e.length-1],h===uo&&k?S=a:s&&s.type==="div"?(s.after=a,s.sourceEndIndex+=a.length):h===po||h===ho||h===Nt&&t.charCodeAt(i+1)!==An&&(!w||w&&w.type==="function"&&w.value!=="calc")?x=a:e.push({type:"space",sourceIndex:p,sourceEndIndex:i,value:a}),p=i}else if(h===_n||h===fo){i=p,n=h===_n?"'":'"',a={type:"string",sourceIndex:p,quote:n};do if(o=!1,i=t.indexOf(n,i+1),~i)for(u=i;t.charCodeAt(u-1)===co;)u-=1,o=!o;else t+=n,i=t.length-1,a.unclosed=!0;while(o);a.value=t.slice(p+1,i),a.sourceEndIndex=a.unclosed?i:i+1,e.push(a),p=i+1,h=t.charCodeAt(p)}else if(h===Nt&&t.charCodeAt(p+1)===An)i=t.indexOf("*/",p),a={type:"comment",sourceIndex:p,sourceEndIndex:i+2},i===-1&&(a.unclosed=!0,i=t.length,a.sourceEndIndex=i),a.value=t.slice(p+2,i),e.push(a),p=i+2,h=t.charCodeAt(p);else if((h===Nt||h===An)&&w&&w.type==="function"&&w.value==="calc")a=t[p],e.push({type:"word",sourceIndex:p-x.length,sourceEndIndex:p+a.length,value:a}),p+=1,h=t.charCodeAt(p);else if(h===Nt||h===po||h===ho)a=t[p],e.push({type:"div",sourceIndex:p-x.length,sourceEndIndex:p+a.length,value:a,before:x,after:""}),x="",p+=1,h=t.charCodeAt(p);else if(lo===h){i=p;do i+=1,h=t.charCodeAt(i);while(h<=32);if(f=p,a={type:"function",sourceIndex:p-b.length,value:b,before:t.slice(f+1,i)},p=i,b==="url"&&h!==_n&&h!==fo){i-=1;do if(o=!1,i=t.indexOf(")",i+1),~i)for(u=i;t.charCodeAt(u-1)===co;)u-=1,o=!o;else t+=")",i=t.length-1,a.unclosed=!0;while(o);c=i;do c-=1,h=t.charCodeAt(c);while(h<=32);f<c?(p!==c+1?a.nodes=[{type:"word",sourceIndex:p,sourceEndIndex:c+1,value:t.slice(p,c+1)}]:a.nodes=[],a.unclosed&&c+1!==i?(a.after="",a.nodes.push({type:"space",sourceIndex:c+1,sourceEndIndex:i,value:t.slice(c+1,i)})):(a.after=t.slice(c+1,i),a.sourceEndIndex=i)):(a.after="",a.nodes=[]),p=i+1,a.sourceEndIndex=a.unclosed?i:p,h=t.charCodeAt(p),e.push(a)}else k+=1,a.after="",a.sourceEndIndex=p+1,e.push(a),y.push(a),e=a.nodes=[],w=a;b=""}else if(uo===h&&k)p+=1,h=t.charCodeAt(p),w.after=S,w.sourceEndIndex+=S.length,S="",k-=1,y[y.length-1].sourceEndIndex=p,y.pop(),w=y[k],e=w.nodes;else{i=p;do h===co&&(i+=1),i+=1,h=t.charCodeAt(i);while(i<d&&!(h<=32||h===_n||h===fo||h===po||h===ho||h===Nt||h===lo||h===An&&w&&w.type==="function"&&w.value==="calc"||h===Nt&&w.type==="function"&&w.value==="calc"||h===uo&&k));a=t.slice(p,i),lo===h?b=a:(s2===a.charCodeAt(0)||a2===a.charCodeAt(0))&&o2===a.charCodeAt(1)&&l2.test(a.slice(2))?e.push({type:"unicode-range",sourceIndex:p,sourceEndIndex:i,value:a}):e.push({type:"word",sourceIndex:p,sourceEndIndex:i,value:a}),p=i}for(p=y.length-1;p;p-=1)y[p].unclosed=!0,y[p].sourceEndIndex=t.length;return y[0].nodes}});var ih=v(($P,rh)=>{l();rh.exports=function r(e,t,i){var n,s,a,o;for(n=0,s=e.length;n<s;n+=1)a=e[n],i||(o=t(a,n,e)),o!==!1&&a.type==="function"&&Array.isArray(a.nodes)&&r(a.nodes,t,i),i&&t(a,n,e)}});var oh=v((zP,ah)=>{l();function nh(r,e){var t=r.type,i=r.value,n,s;return e&&(s=e(r))!==void 0?s:t==="word"||t==="space"?i:t==="string"?(n=r.quote||"",n+i+(r.unclosed?"":n)):t==="comment"?"/*"+i+(r.unclosed?"":"*/"):t==="div"?(r.before||"")+i+(r.after||""):Array.isArray(r.nodes)?(n=sh(r.nodes,e),t!=="function"?n:i+"("+(r.before||"")+n+(r.after||"")+(r.unclosed?"":")")):i}function sh(r,e){var t,i;if(Array.isArray(r)){for(t="",i=r.length-1;~i;i-=1)t=nh(r[i],e)+t;return t}return nh(r,e)}ah.exports=sh});var uh=v((jP,lh)=>{l();var On="-".charCodeAt(0),En="+".charCodeAt(0),mo=".".charCodeAt(0),u2="e".charCodeAt(0),f2="E".charCodeAt(0);function c2(r){var e=r.charCodeAt(0),t;if(e===En||e===On){if(t=r.charCodeAt(1),t>=48&&t<=57)return!0;var i=r.charCodeAt(2);return t===mo&&i>=48&&i<=57}return e===mo?(t=r.charCodeAt(1),t>=48&&t<=57):e>=48&&e<=57}lh.exports=function(r){var e=0,t=r.length,i,n,s;if(t===0||!c2(r))return!1;for(i=r.charCodeAt(e),(i===En||i===On)&&e++;e<t&&(i=r.charCodeAt(e),!(i<48||i>57));)e+=1;if(i=r.charCodeAt(e),n=r.charCodeAt(e+1),i===mo&&n>=48&&n<=57)for(e+=2;e<t&&(i=r.charCodeAt(e),!(i<48||i>57));)e+=1;if(i=r.charCodeAt(e),n=r.charCodeAt(e+1),s=r.charCodeAt(e+2),(i===u2||i===f2)&&(n>=48&&n<=57||(n===En||n===On)&&s>=48&&s<=57))for(e+=n===En||n===On?3:2;e<t&&(i=r.charCodeAt(e),!(i<48||i>57));)e+=1;return{number:r.slice(0,e),unit:r.slice(e)}}});var Kr=v((VP,ph)=>{l();var p2=th(),fh=ih(),ch=oh();function nt(r){return this instanceof nt?(this.nodes=p2(r),this):new nt(r)}nt.prototype.toString=function(){return Array.isArray(this.nodes)?ch(this.nodes):""};nt.prototype.walk=function(r,e){return fh(this.nodes,r,e),this};nt.unit=uh();nt.walk=fh;nt.stringify=ch;ph.exports=nt});function yo(r){return typeof r=="object"&&r!==null}function d2(r,e){let t=He(e);do if(t.pop(),(0,Zr.default)(r,t)!==void 0)break;while(t.length);return t.length?t:void 0}function Lt(r){return typeof r=="string"?r:r.reduce((e,t,i)=>t.includes(".")?`${e}[${t}]`:i===0?t:`${e}.${t}`,"")}function hh(r){return r.map(e=>`'${e}'`).join(", ")}function mh(r){return hh(Object.keys(r))}function wo(r,e,t,i={}){let n=Array.isArray(e)?Lt(e):e.replace(/^['"]+|['"]+$/g,""),s=Array.isArray(e)?e:He(n),a=(0,Zr.default)(r.theme,s,t);if(a===void 0){let u=`'${n}' does not exist in your theme config.`,c=s.slice(0,-1),f=(0,Zr.default)(r.theme,c);if(yo(f)){let p=Object.keys(f).filter(d=>wo(r,[...c,d]).isValid),h=(0,dh.default)(s[s.length-1],p);h?u+=` Did you mean '${Lt([...c,h])}'?`:p.length>0&&(u+=` '${Lt(c)}' has the following valid keys: ${hh(p)}`)}else{let p=d2(r.theme,n);if(p){let h=(0,Zr.default)(r.theme,p);yo(h)?u+=` '${Lt(p)}' has the following keys: ${mh(h)}`:u+=` '${Lt(p)}' is not an object.`}else u+=` Your theme has the following top-level keys: ${mh(r.theme)}`}return{isValid:!1,error:u}}if(!(typeof a=="string"||typeof a=="number"||typeof a=="function"||a instanceof String||a instanceof Number||Array.isArray(a))){let u=`'${n}' was found but does not resolve to a string.`;if(yo(a)){let c=Object.keys(a).filter(f=>wo(r,[...s,f]).isValid);c.length&&(u+=` Did you mean something like '${Lt([...s,c[0]])}'?`)}return{isValid:!1,error:u}}let[o]=s;return{isValid:!0,value:je(o)(a,i)}}function h2(r,e,t){e=e.map(n=>gh(r,n,t));let i=[""];for(let n of e)n.type==="div"&&n.value===","?i.push(""):i[i.length-1]+=go.default.stringify(n);return i}function gh(r,e,t){if(e.type==="function"&&t[e.value]!==void 0){let i=h2(r,e.nodes,t);e.type="word",e.value=t[e.value](r,...i)}return e}function m2(r,e,t){return(0,go.default)(e).walk(i=>{gh(r,i,t)}).toString()}function*y2(r){r=r.replace(/^['"]+|['"]+$/g,"");let e=r.match(/^([^\s]+)(?![^\[]*\])(?:\s*\/\s*([^\/\s]+))$/),t;yield[r,void 0],e&&(r=e[1],t=e[2],yield[r,t])}function w2(r,e,t){let i=Array.from(y2(e)).map(([n,s])=>Object.assign(wo(r,n,t,{opacityValue:s}),{resolvedPath:n,alpha:s}));return i.find(n=>n.isValid)??i[0]}function yh(r){let e=r.tailwindConfig,t={theme:(i,n,...s)=>{let{isValid:a,value:o,error:u,alpha:c}=w2(e,n,s.length?s:void 0);if(!a){let h=i.parent,d=h?.raws.tailwind?.candidate;if(h&&d!==void 0){r.markInvalidUtilityNode(h),h.remove(),N.warn("invalid-theme-key-in-class",[`The utility \`${d}\` contains an invalid theme value and was not generated.`]);return}throw i.error(u)}let f=kt(o),p=f!==void 0&&typeof f=="function";return(c!==void 0||p)&&(c===void 0&&(c=1),o=qe(f,c,f)),o},screen:(i,n)=>{n=n.replace(/^['"]+/g,"").replace(/['"]+$/g,"");let a=tt(e.theme.screens).find(({name:o})=>o===n);if(!a)throw i.error(`The '${n}' screen does not exist in your theme.`);return et(a)}};return i=>{i.walk(n=>{let s=g2[n.type];s!==void 0&&(n[s]=m2(n,n[s],t))})}}var Zr,dh,go,g2,wh=A(()=>{l();Zr=J(va()),dh=J(Zd());Ur();go=J(Kr());ln();sn();li();Cr();Pr();Ae();g2={atrule:"params",decl:"value"}});function bh({tailwindConfig:{theme:r}}){return function(e){e.walkAtRules("screen",t=>{let i=t.params,s=tt(r.screens).find(({name:a})=>a===i);if(!s)throw t.error(`No \`${i}\` screen found.`);t.name="media",t.params=et(s)})}}var vh=A(()=>{l();ln();sn()});function b2(r){let e=r.filter(o=>o.type!=="pseudo"||o.nodes.length>0?!0:o.value.startsWith("::")||[":before",":after",":first-line",":first-letter"].includes(o.value)).reverse(),t=new Set(["tag","class","id","attribute"]),i=e.findIndex(o=>t.has(o.type));if(i===-1)return e.reverse().join("").trim();let n=e[i],s=xh[n.type]?xh[n.type](n):n;e=e.slice(0,i);let a=e.findIndex(o=>o.type==="combinator"&&o.value===">");return a!==-1&&(e.splice(0,a),e.unshift(Tn.default.universal())),[s,...e.reverse()].join("").trim()}function x2(r){return bo.has(r)||bo.set(r,v2.transformSync(r)),bo.get(r)}function vo({tailwindConfig:r}){return e=>{let t=new Map,i=new Set;if(e.walkAtRules("defaults",n=>{if(n.nodes&&n.nodes.length>0){i.add(n);return}let s=n.params;t.has(s)||t.set(s,new Set),t.get(s).add(n.parent),n.remove()}),K(r,"optimizeUniversalDefaults"))for(let n of i){let s=new Map,a=t.get(n.params)??[];for(let o of a)for(let u of x2(o.selector)){let c=u.includes(":-")||u.includes("::-")?u:"__DEFAULT__",f=s.get(c)??new Set;s.set(c,f),f.add(u)}if(K(r,"optimizeUniversalDefaults")){if(s.size===0){n.remove();continue}for(let[,o]of s){let u=j.rule({source:n.source});u.selectors=[...o],u.append(n.nodes.map(c=>c.clone())),n.before(u)}}n.remove()}else if(i.size){let n=j.rule({selectors:["*","::before","::after"]});for(let a of i)n.append(a.nodes),n.parent||a.before(n),n.source||(n.source=a.source),a.remove();let s=n.clone({selectors:["::backdrop"]});n.after(s)}}}var Tn,xh,v2,bo,kh=A(()=>{l();Ze();Tn=J(De());$e();xh={id(r){return Tn.default.attribute({attribute:"id",operator:"=",value:r.value,quoteMark:'"'})}};v2=(0,Tn.default)(r=>r.map(e=>{let t=e.split(i=>i.type==="combinator"&&i.value===" ").pop();return b2(t)})),bo=new Map});function xo(){function r(e){let t=null;e.each(i=>{if(!k2.has(i.type)){t=null;return}if(t===null){t=i;return}let n=Sh[i.type];i.type==="atrule"&&i.name==="font-face"?t=i:n.every(s=>(i[s]??"").replace(/\s+/g," ")===(t[s]??"").replace(/\s+/g," "))?(i.nodes&&t.append(i.nodes),i.remove()):t=i}),e.each(i=>{i.type==="atrule"&&r(i)})}return e=>{r(e)}}var Sh,k2,Ch=A(()=>{l();Sh={atrule:["name","params"],rule:["selector"]},k2=new Set(Object.keys(Sh))});function ko(){return r=>{r.walkRules(e=>{let t=new Map,i=new Set([]),n=new Map;e.walkDecls(s=>{if(s.parent===e){if(t.has(s.prop)){if(t.get(s.prop).value===s.value){i.add(t.get(s.prop)),t.set(s.prop,s);return}n.has(s.prop)||n.set(s.prop,new Set),n.get(s.prop).add(t.get(s.prop)),n.get(s.prop).add(s)}t.set(s.prop,s)}});for(let s of i)s.remove();for(let s of n.values()){let a=new Map;for(let o of s){let u=C2(o.value);u!==null&&(a.has(u)||a.set(u,new Set),a.get(u).add(o))}for(let o of a.values()){let u=Array.from(o).slice(0,-1);for(let c of u)c.remove()}}})}}function C2(r){let e=/^-?\d*.?\d+([\w%]+)?$/g.exec(r);return e?e[1]??S2:null}var S2,_h=A(()=>{l();S2=Symbol("unitless-number")});function _2(r){if(!r.walkAtRules)return;let e=new Set;if(r.walkAtRules("apply",t=>{e.add(t.parent)}),e.size!==0)for(let t of e){let i=[],n=[];for(let s of t.nodes)s.type==="atrule"&&s.name==="apply"?(n.length>0&&(i.push(n),n=[]),i.push([s])):n.push(s);if(n.length>0&&i.push(n),i.length!==1){for(let s of[...i].reverse()){let a=t.clone({nodes:[]});a.append(s),t.after(a)}t.remove()}}}function Pn(){return r=>{_2(r)}}var Ah=A(()=>{l()});function Oh(r){return(e,t)=>{let i=!1;e.walkAtRules("tailwind",n=>{if(i)return!1;if(n.parent&&n.parent.type!=="root")return i=!0,n.warn(t,["Nested @tailwind rules were detected, but are not supported.","Consider using a prefix to scope Tailwind's classes: https://tailwindcss.com/docs/configuration#prefix","Alternatively, use the important selector strategy: https://tailwindcss.com/docs/configuration#selector-strategy"].join(`
31`)),!1}),e.walkRules(n=>{if(i)return!1;n.walkRules(s=>(i=!0,s.warn(t,["Nested CSS was detected, but CSS nesting has not been configured correctly.","Please enable a CSS nesting plugin *before* Tailwind in your configuration.","See how here: https://tailwindcss.com/docs/using-with-preprocessors#nesting"].join(`
32`)),!1))})}}var Eh=A(()=>{l()});function Dn(r){return function(e,t){let{tailwindDirectives:i,applyDirectives:n}=ro(e);Oh()(e,t),Pn()(e,t);let s=r({tailwindDirectives:i,applyDirectives:n,registerDependency(a){t.messages.push({plugin:"tailwindcss",parent:t.opts.from,...a})},createContext(a,o){return Ja(a,o,e)}})(e,t);if(s.tailwindConfig.separator==="-")throw new Error("The '-' character cannot be used as a custom separator in JIT mode due to parsing ambiguity. Please use another character like '_' instead.");Ef(s.tailwindConfig),no(s)(e,t),Pn()(e,t),oo(s)(e,t),yh(s)(e,t),bh(s)(e,t),vo(s)(e,t),xo(s)(e,t),ko(s)(e,t)}}var Th=A(()=>{l();Md();Gd();Kd();wh();vh();kh();Ch();_h();Ah();Eh();wn();$e()});function Ph(r,e){let t=null,i=null;return r.walkAtRules("config",n=>{if(i=n.source?.input.file??e.opts.from??null,i===null)throw n.error("The `@config` directive cannot be used without setting `from` in your PostCSS config.");if(t)throw n.error("Only one `@config` directive is allowed per file.");let s=n.params.match(/(['"])(.*?)\1/);if(!s)throw n.error("A path is required when using the `@config` directive.");let a=s[2];if(ie.isAbsolute(a))throw n.error("The `@config` directive cannot be used with an absolute path.");if(t=ie.resolve(ie.dirname(i),a),!ae.existsSync(t))throw n.error(`The config file at "${a}" does not exist. Make sure the path is correct and the file exists.`);n.remove()}),t||null}var Dh=A(()=>{l();Ge();lt()});var qh=v((E3,So)=>{l();Rd();Th();rt();Dh();So.exports=function(e){return{postcssPlugin:"tailwindcss",plugins:[Te.DEBUG&&function(t){return console.log(`

Callers 2

wSFunction · 0.85
dnFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected