Socket
Socket
Sign inDemoInstall

twind

Package Overview
Dependencies
Maintainers
2
Versions
159
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

twind - npm Package Compare versions

Comparing version 1.0.0-next-20221115221831 to 1.0.0-next-20221115230557

2

CHANGELOG.md
# twind
## 1.0.0-next-20221115221831
## 1.0.0-next-20221115230557

@@ -5,0 +5,0 @@ ### Patch Changes

{
"name": "twind",
"version": "1.0.0-next-20221115221831",
"version": "1.0.0-next-20221115230557",
"description": "The core engine without any presets.",

@@ -5,0 +5,0 @@ "type": "module",

@@ -1,1 +0,1 @@

let e;function t(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function n(e,n=","){return e.map(t).join(n)}let r="undefined"!=typeof CSS&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function i(e){for(var t=9,n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function o(e,t="@media "){return t+l(e).map(e=>("string"==typeof e&&(e={min:e}),e.raw||Object.keys(e).map(t=>`(${t}-width:${e[t]})`).join(" and "))).join(",")}function l(e=[]){return Array.isArray(e)?e:null==e?[]:[e]}function u(e){return e}function s(){}let c={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function a(e,t){return e&~c.o|t}function f(e){var t;return(null==(t=e.match(/[-=:;]/g))?void 0:t.length)||0}function p(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?+RegExp.$1/(RegExp.$2?15:1)/10:0,15)<<22|Math.min(f(e),15)<<18}let h=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function d(e){return 1<<~(/:([a-z-]+)/.test(e)&&~h.indexOf(RegExp.$1.slice(2,7))||-18)}function g(e){return"-"==e[0]?0:f(e)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7}$)|([fl].{5}l|g.{8}$|pl))/.test(e)?+!!RegExp.$1||-!!RegExp.$2:0)+1}function y({n:e,i:n,v:r=[]},i,u,s){for(let c of(e&&(e=t({n:e,i:n,v:r})),s=[...l(s)],r)){let a=i.theme("screens",c);for(let f of l(a&&o(a)||i.v(c)))s.push(f),u|=a?67108864|p(f):"dark"==c?1073741824:"@"==f[0]?p(f):d(f)}return{n:e,p:u,r:s,i:n}}let m=new Map;function b(e,t){return m.set(e,t),e}function v(e,t){let n=m.get(e.n);return n?n(e,t):t.r(e.n,"dark"==e.v[0])}function $(e){if(e.d){let t=[],n=w(e.r.reduce((e,n)=>"@"==n[0]?(t.push(n),e):n?A(e,n):e,"&"),t=>x(t,e.n?"."+r(e.n):""));return n&&t.push(n.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((e,t)=>t+"{"+e+"}",e.d)}}function w(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(e,n,r)=>t(n)+r)}function x(e,t){return e.replace(/&/g,t)}function A(e,t){return w(e,e=>w(t,t=>{let n=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(t);if(n){let r=e.indexOf(n[1]);return~r?e.slice(0,r)+n[0]+e.slice(r+n[1].length):x(e,t)}return x(t,e)}))}let k=new Intl.Collator("en",{numeric:!0});function j(e,t){for(var n=0,r=e.length;n<r;){let i=r+n>>1;0>=O(e[i],t)?n=i+1:r=i}return r}function O(e,t){let n=e.p&c.o;return n==(t.p&c.o)&&(n==c.b||n==c.o)?0:e.p-t.p||e.o-t.o||k.compare(e.n,t.n)}function S(e,t){return Math.round(parseInt(e,16)*t)}function E(e,t={}){if("function"==typeof e)return e(t);let{opacityValue:n="1",opacityVariable:r}=t,i=r?`var(${r})`:n;if(e.includes("<alpha-value>"))return e.replace("<alpha-value>",i);if("#"==e[0]&&(4==e.length||7==e.length)){let o=(e.length-1)/3,l=[17,1,.062272][o-1];return`rgba(${[S(e.substr(1,o),l),S(e.substr(1+o,o),l),S(e.substr(1+2*o,o),l),i]})`}return"1"==i?e:"0"==i?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${i})`)}function M(e,t,{theme:n}){return n(e,t=t.replace(/\d+$/,e=>100*(9-~~(parseInt(e,10)/100)||.5)))}function C(e,t,n,r,i=[]){return V(e,y(t,n,r,i),n)}function V(e,{n:t,p:n,r:r=[],i:u},s){let f=[],h="",d=0,y=0;for(let m in e||{}){let b=e[m];if("@"==m[0]){if(!b)continue;if("a"==m[1]){f.push(...F(t,n,_(""+b),s,n,r,u,!0));continue}if("l"==m[1]){for(let v of l(b))f.push(...V(v,{n:t,p:a(n,c[m[7]]),r:r,i:u},s));continue}if("i"==m[1]){f.push(...l(b).map(e=>({p:-1,o:0,r:[],d:m+" "+e})));continue}if("k"==m[1]){f.push({p:c.d,o:0,r:[m],d:V(b,{p:c.d},s).map($).join("")});continue}if("f"==m[1]){f.push(...l(b).map(e=>({p:c.d,o:0,r:[m],d:V(e,{p:c.d},s).map($).join("")})));continue}}if("object"!=typeof b||Array.isArray(b))"label"==m&&b?t=b+i(JSON.stringify([n,u,e])):(b||0===b)&&(m=m.replace(/[A-Z]/g,e=>"-"+e.toLowerCase()),y+=1,d=Math.max(d,g(m)),h+=(h?";":"")+l(b).map(e=>s.s(m,T(""+e,s.theme)+(u?" !important":""))).join(";"));else if("@"==m[0]||m.includes("&")){let w=n;"@"==m[0]&&(m=m.replace(/\bscreen\(([^)]+)\)/g,(e,t)=>{let n=s.theme("screens",t);return n?(w|=67108864,o(n,"")):e}),w|=p(m)),f.push(...V(b,{n:t,p:w,r:[...r,m],i:u},s))}else f.push(...V(b,{p:n,r:[...r,m]},s))}return f.unshift({n:t,p:n,o:Math.max(0,15-y)+1.5*Math.min(d||15,15),r:r,d:h}),f.sort(O)}function T(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(e,n,r,i,o)=>{let l=t(r,o);return"function"==typeof l&&/color|fill|stroke/i.test(r)?E(l):""+l})}function D(e,t){let n;let r=[];for(let i of e)i.d&&i.n?(null==n?void 0:n.p)==i.p&&""+n.r==""+i.r?(n.c=[n.c,i.c].filter(Boolean).join(" "),n.d=n.d+";"+i.d):r.push(n={...i,n:i.n&&t}):r.push({...i,n:i.n&&t});return r}function L(e,t,n=c.u,r,i){let o=[];for(let l of e)for(let u of N(l,t,n,r,i))o.splice(j(o,u),0,u);return o}function N(e,n,r,i,o){var u;e={...e,i:e.i||o};let s=v(e,n);return s?"string"==typeof s?({r:i,p:r}=y(e,n,r,i),D(L(_(s),n,r,i,e.i),e.n)):Array.isArray(s)?s.map(e=>({o:0,...e,r:[...l(i),...l(e.r)],p:a(r,null!=(u=e.p)?u:r)})):C(s,e,n,r,i):[{c:t(e),p:0,o:0,r:[]}]}function F(e,t,n,r,i,o,l,u){return D((u?n.flatMap(e=>L([e],r,i,o,l)):L(n,r,i,o,l)).map(e=>e.p&c.o&&(e.n||t==c.b)?{...e,p:a(e.p,t),o:0}:e),e)}function R(e,t,n,r){return b(e,(e,i)=>{let{n:o,p:l,r:u,i:s}=y(e,i,t);return n&&F(o,t,n,i,l,u,s,r)})}function U(e,t,n){if("("!=e[e.length-1]){let r=[],i=!1,o=!1,l="";for(let u of e)if(!("("==u||/[~@]$/.test(u))){if("!"==u[0]&&(u=u.slice(1),i=!i),u.endsWith(":")){r["dark:"==u?"unshift":"push"](u.slice(0,-1));continue}"-"==u[0]&&(u=u.slice(1),o=!o),u.endsWith("-")&&(u=u.slice(0,-1)),u&&"&"!=u&&(l+=(l&&"-")+u)}l&&(o&&(l="-"+l),t[0].push(Object.defineProperties({n:l,v:r.filter(I),i:i},{a:{value:[...e]},l:{value:n}})))}}function I(e,t,n){return n.indexOf(e)==t}let P=new Map;function _(e){let t=P.get(e);if(!t){let r=[],o=[[]],l=0,u=0,s=null,a=0,f=(t,n=0)=>{l!=a&&(r.push(e.slice(l,a+n)),t&&U(r,o,[l,a+n])),l=a+1};for(;a<e.length;a++){let p=e[a];if(u)"\\"!=e[a-1]&&(u+=+("["==p)||-("]"==p));else if("["==p)u+=1;else if(s)"\\"!=e[a-1]&&s.test(e.slice(a))&&(s=null,l=a+RegExp.lastMatch.length);else if("/"==p&&"\\"!=e[a-1]&&("*"==e[a+1]||"/"==e[a+1]))s="*"==e[a+1]?/^\*\//:/^[\r\n]/;else if("("==p)f(),r.push(p);else if(":"==p)":"!=e[a+1]&&f(!1,1);else if(/[\s,)]/.test(p)){f(!0);let h=r.lastIndexOf("(");if(")"==p){let d=r[h-1];if(/[~@]$/.test(d)){let g=o.shift();r.length=h,U([...r,"#"],o,[l,a]);let{v:y}=o[0].pop();for(let m of g)m.v.splice(+("dark"==m.v[0])-+("dark"==y[0]),y.length);U([...r,R(d.length>1?d.slice(0,-1)+i(JSON.stringify([d,g])):d+"("+n(g)+")",c.a,g,/@$/.test(d))],o,[l,a])}h=r.lastIndexOf("(",h-1)}r.length=h+1}else/[~@]/.test(p)&&"("==e[a+1]&&o.unshift([])}f(!0),P.set(e,t=o[0])}return t}function z(e,t,n){return t.reduce((t,r,i)=>t+n(r)+e[i+1],e[0])}function q(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?z(e,t,e=>J(e).trim()):t.filter(Boolean).reduce((e,t)=>e+J(t),e?J(e):"")}function J(e){let t,n="";if(e&&"object"==typeof e){if(Array.isArray(e))(t=q(e[0],e.slice(1)))&&(n+=" "+t);else for(let r in e)e[r]&&(n+=" "+r)}else null!=e&&"boolean"!=typeof e&&(n+=" "+e);return n}let W=G("@"),B=G("~");function G(e){return new Proxy(function(e,...n){return t("",e,n)},{get:(e,n)=>n in e?e[n]:function(e,...r){return t(n,e,r)}});function t(t,r,i){return n(_(t+e+"("+q(r,i)+")"))}}function Y(e,t){return Array.isArray(e)?H(z(e,t,e=>null!=e&&"boolean"!=typeof e?e:"")):"string"==typeof e?H(e):[e]}let Z=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function H(e){let t;e=K(e);let n=[{}],r=[n[0]],i=[];for(;t=Z.exec(e);)t[4]&&(n.shift(),i.shift()),t[3]?(i.unshift(t[3]),n.unshift({}),r.push(i.reduce((e,t)=>({[t]:e}),n[0]))):t[4]||(n[0][t[1]]&&(n.unshift({}),r.push(i.reduce((e,t)=>({[t]:e}),n[0]))),n[0][t[1]]=t[2]);return r}function K(e){return e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ")}function Q(e,...t){var n;let r=Y(e,t),o=((null==(n=r.find(e=>e.label))?void 0:n.label)||"css")+i(JSON.stringify(r));return b(o,(e,t)=>D(r.flatMap(n=>C(n,e,t,c.o)),o))}let X=new Proxy(function(e,t){return ee("animation",e,t)},{get:(e,t)=>t in e?e[t]:function(e,n){return ee(t,e,n)}});function ee(e,t,n){return{toString:()=>Q({label:e,"@layer components":{..."object"==typeof t?t:{animation:t},animationName:""+n}})}}function et(e,t){return ed(e,t)}function en(e,t,n){return[e,er(t,n)]}function er(e,t){return"function"==typeof e?e:"string"==typeof e&&/^[\w-]+$/.test(e)?(n,r)=>({[e]:t?t(n,r):ei(n,1)}):t=>e||{[t[1]]:ei(t,2)}}function ei(e,t,n=e.slice(t).find(Boolean)||e.$$||e.input){return"-"==e.input[0]?`calc(${n} * -1)`:n}function eo(e,t,n,r){return[e,el(t,n,r)]}function el(e,t,n){let r="string"==typeof t?(e,r)=>({[t]:n?n(e,r):e._}):t||(({1:e,_:t},n,r)=>({[e||r]:t}));return et((t,n)=>{var i;let o=ef(e||t[1]),l=null!=(i=n.theme(o,t.$$))?i:ea(t.$$,o,n);if(null!=l)return t._=ei(t,0,l),r(t,n,o)},(t,n)=>{let r=ef(e||t[1]),i=t.input.endsWith("-");if(i)return Object.entries(n.theme(r)||{}).filter(([e,t])=>e&&"DEFAULT"!=e&&(!/color|fill|stroke/i.test(r)||["string","function"].includes(typeof t))).map(([e,t])=>({suffix:e.replace(/-DEFAULT/g,""),theme:{section:r,key:e},color:/color|fill|stroke/i.test(r)&&E(t,{opacityValue:"1"})})).concat([{suffix:"["}]);let o=n.theme(r,"DEFAULT");return o?[{suffix:"",theme:{section:r,key:"DEFAULT"},color:/color|fill|stroke/i.test(r)&&E(o,{opacityValue:"1"})}]:[]})}function eu(e,t={},n){return[e,es(t,n)]}function es(e={},t){return et((n,r)=>{let{section:i=ef(n[0]).replace("-","")+"Color"}=e;if(!/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/.test(n.$$))return;let{$1:o,$2:l}=RegExp,u=r.theme(i,o)||ea(o,i,r);if(!u||"object"==typeof u)return;let{opacityVariable:s=`--tw-${n[0].replace(/-$/,"")}-opacity`,opacitySection:c=i.replace("Color","Opacity"),property:a=i,selector:f}=e,p=r.theme(c,l||"DEFAULT")||l&&ea(l,c,r),h=t||(({_:e})=>{let t=ec(a,e);return f?{[f]:t}:t});n._={value:E(u,{opacityVariable:s||void 0,opacityValue:p||void 0}),color:e=>E(u,e),opacityVariable:s||void 0,opacityValue:p||void 0};let d=h(n,r);if(!n.dark){let g=r.d(i,o,u);g&&g!==u&&(n._={value:E(g,{opacityVariable:s||void 0,opacityValue:p||"1"}),color:e=>E(g,e),opacityVariable:s||void 0,opacityValue:p||void 0},d={"&":d,[r.v("dark")]:h(n,r)})}return d},(t,n)=>{let{section:r=ef(t[0]).replace("-","")+"Color",opacitySection:i=r.replace("Color","Opacity")}=e,o=t.input.endsWith("-"),l=Object.entries(n.theme(i)||{}).filter(([e,t])=>"DEFAULT"!=e&&/^[\w-]+$/.test(e)&&"string"==typeof t);if(o)return Object.entries(n.theme(r)||{}).filter(([e,t])=>e&&"DEFAULT"!=e&&["string","function"].includes(typeof t)).map(([e,t])=>({suffix:e.replace(/-DEFAULT/g,""),theme:{section:r,key:e},color:E(t,{opacityValue:n.theme(i,"DEFAULT")||"1"}),modifiers:("function"==typeof t||"string"==typeof t&&(t.includes("<alpha-value>")||"#"==t[0]&&(4==t.length||7==t.length)))&&l.map(([e,n])=>({modifier:e,theme:{section:i,key:e},color:E(t,{opacityValue:n})})).concat([{modifier:"[",color:E(t,{opacityValue:"1"})}])})).concat([{suffix:"["}]);let u=n.theme(r,"DEFAULT");return u?[{suffix:"",theme:{section:r,key:"DEFAULT"},color:E(u,{opacityValue:n.theme(i,"DEFAULT")||"1"}),modifiers:("function"==typeof u||"string"==typeof u&&(u.includes("<alpha-value>")||"#"==u[0]&&(4==u.length||7==u.length)))&&l.map(([e,t])=>({modifier:e,theme:{section:i,key:e},color:E(u,{opacityValue:t})})).concat([{modifier:"[",color:E(u,{opacityValue:"1"})}])}]:[]})}function ec(e,t){let n={};return"string"==typeof t?n[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(n[t.opacityVariable]=t.opacityValue||"1"),n[e]=t.value),n}function ea(e,t,n){if("["==e[0]&&"]"==e.slice(-1)&&(e=ep(T(e.slice(1,-1),n.theme)),!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e))))return e.replace(/^[a-z-]+:/,"")}function ef(e){return e.replace(/-./g,e=>e[1].toUpperCase())}function ep(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(e,t="",n,r="")=>ep(t)+n+ep(r)):e.replace(/(^|[^\\])_+/g,(e,t)=>t+" ".repeat(e.length-t.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,e=>e.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}let eh=Symbol("@twind/autocomplete");function ed(e,t){if(t){if("function"==typeof e)return Object.defineProperty(e,eh,{value:t,configurable:!0});let[n,r,i]=l(e);return[n,Object.defineProperty(er(r,i),eh,{value:t,configurable:!0})]}return e}function eg(e){return e[eh]}function ey(e,...t){return n(_(q(e,t))," ")}function em({presets:e=[],...t}){let n={preflight:!1!==t.preflight&&[],darkMode:void 0,darkColor:void 0,theme:{},variants:l(t.variants),rules:l(t.rules),ignorelist:l(t.ignorelist),hash:t.hash,stringify:t.stringify||eb};for(let r of l([...e,{darkMode:t.darkMode,darkColor:t.darkColor,preflight:!1!==t.preflight&&l(t.preflight),theme:t.theme,hash:t.hash,stringify:t.stringify}])){let{preflight:i,darkMode:o=n.darkMode,darkColor:u=n.darkColor,theme:s,variants:c,rules:a,ignorelist:f,hash:p=n.hash,stringify:h=n.stringify}="function"==typeof r?r(n):r;n={preflight:!1!==n.preflight&&!1!==i&&[...n.preflight,...l(i)],darkMode:o,darkColor:u,theme:{...n.theme,...s,extend:{...n.theme.extend,...null==s?void 0:s.extend}},variants:[...n.variants,...l(c)],rules:[...n.rules,...l(a)],ignorelist:[...n.ignorelist,...l(f)],hash:p,stringify:h}}return n}function eb(e,t){return e+":"+t}function ev({extend:e={},...t}){let n={},r={get colors(){return i("colors")},theme:i,negative:()=>({}),breakpoints(e){let t={};for(let n in e)"string"==typeof e[n]&&(t["screen-"+n]=e[n]);return t}};return i;function i(r,l,u,s){if(r){var c;if({1:r,2:s}=/^(\S+?)(?:\s*\/\s*([^/]+))?$/.exec(r)||[,r],/[.[]/.test(r)){let a=[];r.replace(/\[([^\]]+)\]|([^.[]+)/g,(e,t,n=t)=>a.push(n)),r=a.shift(),u=l,l=a.join("-")}let f=n[r]||Object.assign(Object.assign(n[r]={},o(t,r)),o(e,r));if(null==l)return f;let p=null!=(c=f[l||"DEFAULT"])?c:u;return s?E(p,{opacityValue:T(s,i)}):p}let h={};for(let d of[...Object.keys(t),...Object.keys(e)])h[d]=i(d);return h}function o(e,t){let n=e[t];return("function"==typeof n&&(n=n(r)),n&&/color|fill|stroke/i.test(t))?e$(n):n}}function e$(e,t=[]){let n={};for(let r in e){let i=e[r],o=[...t,r];n[o.join("-")]=i,"DEFAULT"==r&&(o=t,n[t.join("-")]=i),"object"==typeof i&&Object.assign(n,e$(i,o))}return n}function ew(e,t,n){if("function"==typeof dispatchEvent){let r=new CustomEvent("warning",{detail:{message:e,code:t,detail:n}});dispatchEvent(r),r.defaultPrevented||console.warn(`[${t}] ${e}`,{detail:n})}else console.warn(`[${t}] ${e}`,{detail:n})}function ex({theme:e,darkMode:t,darkColor:n,variants:o,rules:s,hash:c,stringify:a,ignorelist:f}){let p=new Map,h=new Map,d=new Map,g=new Map,y=eM(f,(e,t)=>t.test(e)),m=new Set;o.push(["dark",Array.isArray(t)||"class"==t?`${l(t)[1]||".dark"} &`:"string"==typeof t&&"media"!=t?t:"@media (prefers-color-scheme:dark)"]);let b="function"==typeof c?e=>c(e,i):c?i:u;return{theme:ev(e),e:r,h:b,s(e,t){return a(eV(e,b),eV(t,b),this)},d(e,t,r){return null==n?void 0:n(e,t,this,r)},v(e){return p.has(e)||p.set(e,eA(e,o,h,ek,this)||"&:"+e),p.get(e)},r(e,t){let n=JSON.stringify([e,t]);if(!d.has(n)){d.set(n,!y(e,this)&&eA(e,s,g,ej,this,t));{let r=d.get(n);null!=r||m.has(e)||(m.add(e),ew(`Unknown class ${JSON.stringify(e)} found.`,"TWIND_INVALID_CLASS",e))}}return d.get(n)}}}function eA(e,t,n,r,i,o){for(let l of t){let u=n.get(l);u||n.set(l,u=r(l));let s=u(e,i,o);if(s)return s}}function ek(e){return eO(e[0],e[1])}function ej(e){return Array.isArray(e)?eS(e[0],e[1],e[2]):eS(e)}function eO(e,t){return eE(e,"function"==typeof t?t:()=>t)}function eS(e,t,n){return eE(e,er(t,n))}function eE(e,t){return eM(e,(e,n,r,i)=>{let o=n.exec(e);if(o)return o.$$=e.slice(o[0].length),o.dark=i,t(o,r)})}function eM(e,t){let n=l(e).map(eC);return(e,r,i)=>{for(let o of n){let l=t(e,o,r,i);if(l)return l}}}function eC(e){return"string"==typeof e?RegExp("^"+e+(e.includes("$")||"-"==e.slice(-1)?"":"$")):e}function eV(e,t){return e.replace(/--(tw(?:-[\w-]+)?)\b/g,(e,n)=>"--"+t(n).replace("#",""))}function eT(e,t){let n=em(e),r=ex(n),i=new Map,o=[],u=new Set;function s(e){let n=e.n&&r.h(e.n),i=$(n?{...e,n:n}:e);if(i&&!u.has(i)){u.add(i);let l=j(o,e);t.insert(i,l,e),o.splice(l,0,e)}return n}return t.resume(e=>i.set(e,e),(e,n)=>{t.insert(e,o.length,n),o.push(n),u.add(e)}),Object.defineProperties(function(e){if(!i.size)for(let t of l(n.preflight))"function"==typeof t&&(t=t(r)),t&&("string"==typeof t?F("",c.b,_(t),r,c.b,[],!1,!0):C(t,{},r,c.b)).forEach(s);e=""+e;let o=i.get(e);if(!o){let u=new Set;for(let a of L(_(e),r))u.add(a.c).add(s(a));o=[...u].filter(Boolean).join(" "),i.set(e,o).set(o,o)}return o},Object.getOwnPropertyDescriptors({get target(){return t.target},theme:r.theme,config:n,snapshot(){let e=t.snapshot(),n=new Set(u),r=new Map(i),l=[...o];return()=>{e(),u=n,i=r,o=l}},clear(){t.clear(),u=new Set,i=new Map,o=[]},destroy(){this.clear(),t.destroy()}}))}function eD(e,t){return e!=t&&""+e.split(" ").sort()!=""+t.split(" ").sort()}function eL(e=eJ,t=document.documentElement){if(!t)return e;let n=new MutationObserver(i);n.observe(t,{attributeFilter:["class"],subtree:!0,childList:!0}),o(t),i([{target:t,type:""}]);let{destroy:r}=e;return e.destroy=()=>{n.disconnect(),r.call(e)},e;function i(e){for(let{type:t,target:r}of e)if("a"==t[0])o(r);else for(let i of r.querySelectorAll("[class]"))o(i);n.takeRecords()}function o(t){let n;let r=t.getAttribute("class");r&&eD(r,n=e(r))&&t.setAttribute("class",n)}}function eN(e){let t=document.querySelector(e||"style[data-twind]");return t&&"STYLE"==t.tagName||((t=document.createElement("style")).dataset.twind="",document.head.prepend(t)),t}function eF(e){let t=(null==e?void 0:e.cssRules)?e:(e&&"string"!=typeof e?e:eN(e)).sheet;return{target:t,snapshot(){let e=Array.from(t.cssRules,e=>e.cssText);return()=>{this.clear(),e.forEach(this.insert)}},clear(){for(let e=t.cssRules.length;e--;)t.deleteRule(e)},destroy(){var e;null==(e=t.ownerNode)||e.remove()},insert(e,n){try{t.insertRule(e,n)}catch(r){t.insertRule(":root{}",n),/:-[mwo]/.test(e)||ew(r.message,"TWIND_INVALID_CSS",e)}},resume:s}}function eR(e){let t=e&&"string"!=typeof e?e:eN(e);return{target:t,snapshot(){let e=Array.from(t.childNodes,e=>e.textContent);return()=>{this.clear(),e.forEach(this.insert)}},clear(){t.textContent=""},destroy(){t.remove()},insert(e,n){t.insertBefore(document.createTextNode(e),t.childNodes[n]||null)},resume:s}}function eU(e){let t=[];return{target:t,snapshot(){let e=[...t];return()=>{t.splice(0,t.length,...e)}},clear(){t.length=0},destroy(){this.clear()},insert(n,r,i){t.splice(r,0,e?`/*!${i.p.toString(36)},${(2*i.o).toString(36)}${i.n?","+i.n:""}*/${n}`:n)},resume:s}}function eI(e,t){let n=e?eR():eF();return t||(n.resume=e_),n}function eP(e){return(e.ownerNode||e).textContent||(e.cssRules?Array.from(e.cssRules,e=>e.cssText):l(e)).join("")}function e_(e,t){let n=eP(this.target),r=/\/\*!([\da-z]+),([\da-z]+)(?:,(.+?))?\*\//g;if(r.test(n)){var i;let o;for(let l of(r.lastIndex=0,this.clear(),document.querySelectorAll("[class]")))e(l.getAttribute("class"));for(;i=r.exec(n),o&&t(n.slice(o.index+o[0].length,null==i?void 0:i.index),{p:parseInt(o[1],36),o:parseInt(o[2],36)/2,n:o[3]}),o=i;);}}function ez(e){if(document.currentScript){let t=()=>n.disconnect(),n=new MutationObserver(n=>{for(let{target:r}of n)if(r===document.body)return e(),t()});return n.observe(document.documentElement,{childList:!0,subtree:!0}),t}return s}function eq(){if(!e)throw Error("No active twind instance found. Make sure to call setup or install before accessing tw.")}let eJ=new Proxy(s,{apply:(t,n,r)=>(eq(),e(r[0])),get(t,n){eq();let r=e[n];return"function"==typeof r?function(){return eq(),r.apply(e,arguments)}:r}});function eW(t={},n=eI,r){return null==e||e.destroy(),e=eL(eT(t,"function"==typeof n?n():n),r)}let eB=function(e,...t){("function"==typeof this?this:eJ)(Q({"@layer base":Y(e,t)}))};function eG(e,t=!1){var n;let r=em(e);return eW({...r,hash:null!=(n=r.hash)?n:t},()=>eI(!t))}let eY=eZ();function eZ(e){return new Proxy(function(t,...n){return eH(e,"",t,n)},{get:(t,n)=>"bind"===n?eZ:n in t?t[n]:function(t,...r){return eH(e,n,t,r)}})}function eH(e,t,n,o){return{toString(){let l=Y(n,o),u=r(t+i(JSON.stringify([t,l])));return("function"==typeof e?e:eJ)(Q({[`@keyframes ${u}`]:Y(n,o)})),u}}}let eK=0,eQ=1,eX=2,e0=3,e1=4,e2=5;function e3(e,t){let n=1,r=0,i="",o="",l=l=>{5==n&&"class"==o&&!1===t(r,l,i)&&(e="")};for(let u=0;u<e.length;u++){let s=e[u];1==n?"<"==s&&(n="!--"==e.substr(u+1,3)?4:3):4==n?">"==s&&"--"==e.slice(u-2,u)&&(n=1):i?s==i&&"\\"!=e[u-1]&&(l(u),n=2,i=""):'"'==s||"'"==s?(i=s,r+=1):">"==s?(l(u),n=1):n&&("="==s?(o=e.slice(r,u),n=5,r=u+1):"/"==s&&(n<5||">"==e[u+1])?(l(u),n=0):/\s/.test(s)&&(l(u),n=2,r=u+1))}}function e4(e,t){return('"'==t?e.replace(/(=|\[)(?:&#39;|&apos;|&#x27;)|(?:&#39;|&apos;|&#x27;)(])/g,"$1'$2"):"'"==t?e.replace(/(=|\[)(?:&#34;|&quot;|&#x22;)|(?:&#34;|&quot;|&#x22;)(])/g,'$1"$2'):e).replace(/(&#38;|&amp;|&#x26;)/g,"&")}function e6(e,t={}){let{tw:n=eJ,minify:r=u}="function"==typeof t?{tw:t}:t,{html:i,css:o}=e5(e,n);return i.replace("</head>",`<style data-twind>${r(o,i)}</style></head>`)}function e5(e,t=eJ){let n=t.snapshot(),r={html:e7(e,t),css:eP(t.target)};return n(),r}function e7(e,t=eJ){let n="",r=0;return e3(e,(i,o,l)=>{let u=e.slice(i,o),s=t(e4(u,l));eD(u,s)&&(l=l?"":'"',n+=e.slice(r,i)+l+s+l,r=o)}),n+e.slice(r,e.length)}let e8=(e,t)=>"function"==typeof e?e9(t,e):e9(e);function e9(e={},t){let{label:n="style",base:o,props:l={},defaults:u,when:s=[]}=e,a={...null==t?void 0:t.defaults,...u},f=i(JSON.stringify([n,null==t?void 0:t.className,o,l,a,s])),p=h("",o||"",c.c);function h(e,r,i){return R(((t?t.className.replace(/#.+$/,"~"):"")+n+e+f).replace(/[: ,()[\]]/,""),i,r&&_(r))}return Object.defineProperties(function(e){let n,r;Array.isArray(e)&&(n=!0,e=Object.fromEntries(new URLSearchParams(e[1]).entries()));let i={...a,...e},o=n?"":(t?t(i)+" ":"")+p;for(let u in l){let c=l[u],f=i[u];if(f===Object(f)){let d="";for(let g in r="",f){let y=c[f[g]];y&&(d+="@"+g+"-"+f[g],r+=(r&&" ")+("_"==g?y:g+":("+y+")"))}r&&(o+=" "+h("--"+u+"-"+d,r,402653184))}else(r=c[f])&&(o+=" "+h("--"+u+"-"+f,r,402653184))}return s.forEach((e,t)=>{let n="";for(let l in e[0]){let u=i[l];if(u!==Object(u)&&""+u==""+e[0][l])n+=(n&&"_")+l+"-"+u;else{n="";break}}n&&(r=e[1])&&(o+=" "+h("-"+t+"--"+n,r,536870912))}),o},Object.getOwnPropertyDescriptors({className:p,defaults:a,selector:"."+r(p)}))}let te=function(e,...t){return("function"==typeof this?this:eJ)(q(e,t))};export{X as animation,W as apply,ea as arbitrary,l as asArray,ez as auto,M as autoDarkColor,es as colorFromTheme,e7 as consume,Q as css,eF as cssom,ey as cx,em as defineConfig,eR as dom,r as escape,e5 as extract,er as fromMatch,el as fromTheme,eg as getAutocompleteProvider,eI as getSheet,i as hash,u as identity,eB as injectGlobal,e6 as inline,eG as install,eY as keyframes,en as match,eu as matchColor,eo as matchTheme,o as mql,s as noop,ep as normalize,eL as observe,_ as parse,eW as setup,B as shortcut,eP as stringify,e8 as style,ec as toCSS,E as toColorValue,eJ as tw,eT as twind,te as tx,eU as virtual,ed as withAutocomplete};//# sourceMappingURL=twind.browser.dev.js.map
let e;function t(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function n(e,n=","){return e.map(t).join(n)}let r="undefined"!=typeof CSS&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function i(e){for(var t=9,n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function o(e,t="@media "){return t+l(e).map(e=>("string"==typeof e&&(e={min:e}),e.raw||Object.keys(e).map(t=>`(${t}-width:${e[t]})`).join(" and "))).join(",")}function l(e=[]){return Array.isArray(e)?e:null==e?[]:[e]}function u(e){return e}function s(){}let c={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function a(e,t){return e&~c.o|t}function f(e){var t;return(null==(t=e.match(/[-=:;]/g))?void 0:t.length)||0}function p(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?+RegExp.$1/(RegExp.$2?15:1)/10:0,15)<<22|Math.min(f(e),15)<<18}let h=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function d(e){return 1<<~(/:([a-z-]+)/.test(e)&&~h.indexOf(RegExp.$1.slice(2,7))||-18)}function g(e){return"-"==e[0]?0:f(e)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7}$)|([fl].{5}l|g.{8}$|pl))/.test(e)?+!!RegExp.$1||-!!RegExp.$2:0)+1}function y({n:e,i:n,v:r=[]},i,u,s){for(let c of(e&&(e=t({n:e,i:n,v:r})),s=[...l(s)],r)){let a=i.theme("screens",c);for(let f of l(a&&o(a)||i.v(c)))s.push(f),u|=a?67108864|p(f):"dark"==c?1073741824:"@"==f[0]?p(f):d(f)}return{n:e,p:u,r:s,i:n}}let m=new Map;function b(e,t){return m.set(e,t),e}function v(e,t){let n=m.get(e.n);return n?n(e,t):t.r(e.n,"dark"==e.v[0])}function $(e){if(e.d){let t=[],n=w(e.r.reduce((e,n)=>"@"==n[0]?(t.push(n),e):n?A(e,n):e,"&"),t=>x(t,e.n?"."+r(e.n):""));return n&&t.push(n.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((e,t)=>t+"{"+e+"}",e.d)}}function w(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(e,n,r)=>t(n)+r)}function x(e,t){return e.replace(/&/g,t)}function A(e,t){return w(e,e=>w(t,t=>{let n=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(t);if(n){let r=e.indexOf(n[1]);return~r?e.slice(0,r)+n[0]+e.slice(r+n[1].length):x(e,t)}return x(t,e)}))}let k=new Intl.Collator("en",{numeric:!0});function j(e,t){for(var n=0,r=e.length;n<r;){let i=r+n>>1;0>=O(e[i],t)?n=i+1:r=i}return r}function O(e,t){let n=e.p&c.o;return n==(t.p&c.o)&&(n==c.b||n==c.o)?0:e.p-t.p||e.o-t.o||k.compare(e.n,t.n)}function E(e,t){return Math.round(parseInt(e,16)*t)}function S(e,t={}){if("function"==typeof e)return e(t);let{opacityValue:n="1",opacityVariable:r}=t,i=r?`var(${r})`:n;if(e.includes("<alpha-value>"))return e.replace("<alpha-value>",i);if("#"==e[0]&&(4==e.length||7==e.length)){let o=(e.length-1)/3,l=[17,1,.062272][o-1];return`rgba(${[E(e.substr(1,o),l),E(e.substr(1+o,o),l),E(e.substr(1+2*o,o),l),i]})`}return"1"==i?e:"0"==i?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${i})`)}function M(e,t,{theme:n}){return n(e,t=t.replace(/\d+$/,e=>100*(9-~~(parseInt(e,10)/100)||.5)))}function C(e,t,n,r,i=[]){return V(e,y(t,n,r,i),n)}function V(e,{n:t,p:n,r:r=[],i:u},s){let f=[],h="",d=0,y=0;for(let m in e||{}){let b=e[m];if("@"==m[0]){if(!b)continue;if("a"==m[1]){f.push(...F(t,n,_(""+b),s,n,r,u,!0));continue}if("l"==m[1]){for(let v of l(b))f.push(...V(v,{n:t,p:a(n,c[m[7]]),r:r,i:u},s));continue}if("i"==m[1]){f.push(...l(b).map(e=>({p:-1,o:0,r:[],d:m+" "+e})));continue}if("k"==m[1]){f.push({p:c.d,o:0,r:[m],d:V(b,{p:c.d},s).map($).join("")});continue}if("f"==m[1]){f.push(...l(b).map(e=>({p:c.d,o:0,r:[m],d:V(e,{p:c.d},s).map($).join("")})));continue}}if("object"!=typeof b||Array.isArray(b))"label"==m&&b?t=b+i(JSON.stringify([n,u,e])):(b||0===b)&&(m=m.replace(/[A-Z]/g,e=>"-"+e.toLowerCase()),y+=1,d=Math.max(d,g(m)),h+=(h?";":"")+l(b).map(e=>s.s(m,T(""+e,s.theme)+(u?" !important":""))).join(";"));else if("@"==m[0]||m.includes("&")){let w=n;"@"==m[0]&&(m=m.replace(/\bscreen\(([^)]+)\)/g,(e,t)=>{let n=s.theme("screens",t);return n?(w|=67108864,o(n,"")):e}),w|=p(m)),f.push(...V(b,{n:t,p:w,r:[...r,m],i:u},s))}else f.push(...V(b,{p:n,r:[...r,m]},s))}return f.unshift({n:t,p:n,o:Math.max(0,15-y)+1.5*Math.min(d||15,15),r:r,d:h}),f.sort(O)}function T(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(e,n,r,i,o)=>{let l=t(r,o);return"function"==typeof l&&/color|fill|stroke/i.test(r)?S(l):""+l})}function D(e,t){let n;let r=[];for(let i of e)i.d&&i.n?(null==n?void 0:n.p)==i.p&&""+n.r==""+i.r?(n.c=[n.c,i.c].filter(Boolean).join(" "),n.d=n.d+";"+i.d):r.push(n={...i,n:i.n&&t}):r.push({...i,n:i.n&&t});return r}function L(e,t,n=c.u,r,i){let o=[];for(let l of e)for(let u of N(l,t,n,r,i))o.splice(j(o,u),0,u);return o}function N(e,n,r,i,o){var u;e={...e,i:e.i||o};let s=v(e,n);return s?"string"==typeof s?({r:i,p:r}=y(e,n,r,i),D(L(_(s),n,r,i,e.i),e.n)):Array.isArray(s)?s.map(e=>({o:0,...e,r:[...l(i),...l(e.r)],p:a(r,null!=(u=e.p)?u:r)})):C(s,e,n,r,i):[{c:t(e),p:0,o:0,r:[]}]}function F(e,t,n,r,i,o,l,u){return D((u?n.flatMap(e=>L([e],r,i,o,l)):L(n,r,i,o,l)).map(e=>e.p&c.o&&(e.n||t==c.b)?{...e,p:a(e.p,t),o:0}:e),e)}function R(e,t,n,r){return b(e,(e,i)=>{let{n:o,p:l,r:u,i:s}=y(e,i,t);return n&&F(o,t,n,i,l,u,s,r)})}function U(e,t,n){if("("!=e[e.length-1]){let r=[],i=!1,o=!1,l="";for(let u of e)if(!("("==u||/[~@]$/.test(u))){if("!"==u[0]&&(u=u.slice(1),i=!i),u.endsWith(":")){r["dark:"==u?"unshift":"push"](u.slice(0,-1));continue}"-"==u[0]&&(u=u.slice(1),o=!o),u.endsWith("-")&&(u=u.slice(0,-1)),u&&"&"!=u&&(l+=(l&&"-")+u)}l&&(o&&(l="-"+l),t[0].push(Object.defineProperties({n:l,v:r.filter(I),i:i},{a:{value:[...e]},l:{value:n}})))}}function I(e,t,n){return n.indexOf(e)==t}let P=new Map;function _(e){let t=P.get(e);if(!t){let r=[],o=[[]],l=0,u=0,s=null,a=0,f=(t,n=0)=>{l!=a&&(r.push(e.slice(l,a+n)),t&&U(r,o,[l,a+n])),l=a+1};for(;a<e.length;a++){let p=e[a];if(u)"\\"!=e[a-1]&&(u+=+("["==p)||-("]"==p));else if("["==p)u+=1;else if(s)"\\"!=e[a-1]&&s.test(e.slice(a))&&(s=null,l=a+RegExp.lastMatch.length);else if("/"==p&&"\\"!=e[a-1]&&("*"==e[a+1]||"/"==e[a+1]))s="*"==e[a+1]?/^\*\//:/^[\r\n]/;else if("("==p)f(),r.push(p);else if(":"==p)":"!=e[a+1]&&f(!1,1);else if(/[\s,)]/.test(p)){f(!0);let h=r.lastIndexOf("(");if(")"==p){let d=r[h-1];if(/[~@]$/.test(d)){let g=o.shift();r.length=h,U([...r,"#"],o,[l,a]);let{v:y}=o[0].pop();for(let m of g)m.v.splice(+("dark"==m.v[0])-+("dark"==y[0]),y.length);U([...r,R(d.length>1?d.slice(0,-1)+i(JSON.stringify([d,g])):d+"("+n(g)+")",c.a,g,/@$/.test(d))],o,[l,a])}h=r.lastIndexOf("(",h-1)}r.length=h+1}else/[~@]/.test(p)&&"("==e[a+1]&&o.unshift([])}f(!0),P.set(e,t=o[0])}return t}function z(e,t,n){return t.reduce((t,r,i)=>t+n(r)+e[i+1],e[0])}function q(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?z(e,t,e=>J(e).trim()):t.filter(Boolean).reduce((e,t)=>e+J(t),e?J(e):"")}function J(e){let t,n="";if(e&&"object"==typeof e){if(Array.isArray(e))(t=q(e[0],e.slice(1)))&&(n+=" "+t);else for(let r in e)e[r]&&(n+=" "+r)}else null!=e&&"boolean"!=typeof e&&(n+=" "+e);return n}let W=G("@"),B=G("~");function G(e){return new Proxy(function(e,...n){return t("",e,n)},{get:(e,n)=>n in e?e[n]:function(e,...r){return t(n,e,r)}});function t(t,r,i){return n(_(t+e+"("+q(r,i)+")"))}}function Y(e,t){return Array.isArray(e)?H(z(e,t,e=>null!=e&&"boolean"!=typeof e?e:"")):"string"==typeof e?H(e):[e]}let Z=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function H(e){let t;e=K(e);let n=[{}],r=[n[0]],i=[];for(;t=Z.exec(e);)t[4]&&(n.shift(),i.shift()),t[3]?(i.unshift(t[3]),n.unshift({}),r.push(i.reduce((e,t)=>({[t]:e}),n[0]))):t[4]||(n[0][t[1]]&&(n.unshift({}),r.push(i.reduce((e,t)=>({[t]:e}),n[0]))),n[0][t[1]]=t[2]);return r}function K(e){return e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ")}function Q(e,...t){var n;let r=Y(e,t),o=((null==(n=r.find(e=>e.label))?void 0:n.label)||"css")+i(JSON.stringify(r));return b(o,(e,t)=>D(r.flatMap(n=>C(n,e,t,c.o)),o))}let X=new Proxy(function(e,t){return ee("animation",e,t)},{get:(e,t)=>t in e?e[t]:function(e,n){return ee(t,e,n)}});function ee(e,t,n){return{toString:()=>Q({label:e,"@layer components":{..."object"==typeof t?t:{animation:t},animationName:""+n}})}}function et(e,t){return ed(e,t)}function en(e,t,n){return[e,er(t,n)]}function er(e,t){return"function"==typeof e?e:"string"==typeof e&&/^[\w-]+$/.test(e)?(n,r)=>({[e]:t?t(n,r):ei(n,1)}):t=>e||{[t[1]]:ei(t,2)}}function ei(e,t,n=e.slice(t).find(Boolean)||e.$$||e.input){return"-"==e.input[0]?`calc(${n} * -1)`:n}function eo(e,t,n,r){return[e,el(t,n,r)]}function el(e,t,n){let r="string"==typeof t?(e,r)=>({[t]:n?n(e,r):e._}):t||(({1:e,_:t},n,r)=>({[e||r]:t}));return et((t,n)=>{var i;let o=ef(e||t[1]),l=null!=(i=n.theme(o,t.$$))?i:ea(t.$$,o,n);if(null!=l)return t._=ei(t,0,l),r(t,n,o)},(t,n)=>{let r=ef(e||t[1]),i=t.input.endsWith("-");if(i)return Object.entries(n.theme(r)||{}).filter(([e,t])=>e&&"DEFAULT"!=e&&(!/color|fill|stroke/i.test(r)||["string","function"].includes(typeof t))).map(([e,t])=>({suffix:e.replace(/-DEFAULT/g,""),theme:{section:r,key:e},color:/color|fill|stroke/i.test(r)&&S(t,{opacityValue:"1"})})).concat([{suffix:"["}]);let o=n.theme(r,"DEFAULT");return o?[{suffix:"",theme:{section:r,key:"DEFAULT"},color:/color|fill|stroke/i.test(r)&&S(o,{opacityValue:"1"})}]:[]})}function eu(e,t={},n){return[e,es(t,n)]}function es(e={},t){return et((n,r)=>{let{section:i=ef(n[0]).replace("-","")+"Color"}=e;if(!/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/.test(n.$$))return;let{$1:o,$2:l}=RegExp,u=r.theme(i,o)||ea(o,i,r);if(!u||"object"==typeof u)return;let{opacityVariable:s=`--tw-${n[0].replace(/-$/,"")}-opacity`,opacitySection:c=i.replace("Color","Opacity"),property:a=i,selector:f}=e,p=r.theme(c,l||"DEFAULT")||l&&ea(l,c,r),h=t||(({_:e})=>{let t=ec(a,e);return f?{[f]:t}:t});n._={value:S(u,{opacityVariable:s||void 0,opacityValue:p||void 0}),color:e=>S(u,e),opacityVariable:s||void 0,opacityValue:p||void 0};let d=h(n,r);if(!n.dark){let g=r.d(i,o,u);g&&g!==u&&(n._={value:S(g,{opacityVariable:s||void 0,opacityValue:p||"1"}),color:e=>S(g,e),opacityVariable:s||void 0,opacityValue:p||void 0},d={"&":d,[r.v("dark")]:h(n,r)})}return d},(t,n)=>{let{section:r=ef(t[0]).replace("-","")+"Color",opacitySection:i=r.replace("Color","Opacity")}=e,o=t.input.endsWith("-"),l=Object.entries(n.theme(i)||{}).filter(([e,t])=>"DEFAULT"!=e&&/^[\w-]+$/.test(e)&&"string"==typeof t);if(o)return Object.entries(n.theme(r)||{}).filter(([e,t])=>e&&"DEFAULT"!=e&&["string","function"].includes(typeof t)).map(([e,t])=>({suffix:e.replace(/-DEFAULT/g,""),theme:{section:r,key:e},color:S(t,{opacityValue:n.theme(i,"DEFAULT")||"1"}),modifiers:("function"==typeof t||"string"==typeof t&&(t.includes("<alpha-value>")||"#"==t[0]&&(4==t.length||7==t.length)))&&l.map(([e,n])=>({modifier:e,theme:{section:i,key:e},color:S(t,{opacityValue:n})})).concat([{modifier:"[",color:S(t,{opacityValue:"1"})}])})).concat([{suffix:"["}]);let u=n.theme(r,"DEFAULT");return u?[{suffix:"",theme:{section:r,key:"DEFAULT"},color:S(u,{opacityValue:n.theme(i,"DEFAULT")||"1"}),modifiers:("function"==typeof u||"string"==typeof u&&(u.includes("<alpha-value>")||"#"==u[0]&&(4==u.length||7==u.length)))&&l.map(([e,t])=>({modifier:e,theme:{section:i,key:e},color:S(u,{opacityValue:t})})).concat([{modifier:"[",color:S(u,{opacityValue:"1"})}])}]:[]})}function ec(e,t){let n={};return"string"==typeof t?n[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(n[t.opacityVariable]=t.opacityValue||"1"),n[e]=t.value),n}function ea(e,t,n){if("["==e[0]&&"]"==e.slice(-1)&&(e=ep(T(e.slice(1,-1),n.theme)),!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e))))return e.replace(/^[a-z-]+:/,"")}function ef(e){return e.replace(/-./g,e=>e[1].toUpperCase())}function ep(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(e,t="",n,r="")=>ep(t)+n+ep(r)):e.replace(/(^|[^\\])_+/g,(e,t)=>t+" ".repeat(e.length-t.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,e=>e.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}let eh=Symbol("@twind/autocomplete");function ed(e,t){if(t){if("function"==typeof e)return Object.defineProperty(e,eh,{value:t,configurable:!0});let[n,r,i]=l(e);return[n,Object.defineProperty(er(r,i),eh,{value:t,configurable:!0})]}return e}function eg(e){return e[eh]}function ey(e,...t){return n(_(q(e,t))," ")}function em({presets:e=[],...t}){let n={preflight:!1!==t.preflight&&[],darkMode:void 0,darkColor:void 0,theme:{},variants:l(t.variants),rules:l(t.rules),ignorelist:l(t.ignorelist),hash:t.hash,stringify:t.stringify||eb};for(let r of l([...e,{darkMode:t.darkMode,darkColor:t.darkColor,preflight:!1!==t.preflight&&l(t.preflight),theme:t.theme,hash:t.hash,stringify:t.stringify}])){let{preflight:i,darkMode:o=n.darkMode,darkColor:u=n.darkColor,theme:s,variants:c,rules:a,ignorelist:f,hash:p=n.hash,stringify:h=n.stringify}="function"==typeof r?r(n):r;n={preflight:!1!==n.preflight&&!1!==i&&[...n.preflight,...l(i)],darkMode:o,darkColor:u,theme:{...n.theme,...s,extend:{...n.theme.extend,...null==s?void 0:s.extend}},variants:[...n.variants,...l(c)],rules:[...n.rules,...l(a)],ignorelist:[...n.ignorelist,...l(f)],hash:p,stringify:h}}return n}function eb(e,t){return e+":"+t}function ev({extend:e={},...t}){let n={},r={get colors(){return i("colors")},theme:i,negative:()=>({}),breakpoints(e){let t={};for(let n in e)"string"==typeof e[n]&&(t["screen-"+n]=e[n]);return t}};return i;function i(r,l,u,s){if(r){var c;if({1:r,2:s}=/^(\S+?)(?:\s*\/\s*([^/]+))?$/.exec(r)||[,r],/[.[]/.test(r)){let a=[];r.replace(/\[([^\]]+)\]|([^.[]+)/g,(e,t,n=t)=>a.push(n)),r=a.shift(),u=l,l=a.join("-")}let f=n[r]||Object.assign(Object.assign(n[r]={},o(t,r)),o(e,r));if(null==l)return f;let p=null!=(c=f[l||"DEFAULT"])?c:u;return s?S(p,{opacityValue:T(s,i)}):p}let h={};for(let d of[...Object.keys(t),...Object.keys(e)])h[d]=i(d);return h}function o(e,t){let n=e[t];return("function"==typeof n&&(n=n(r)),n&&/color|fill|stroke/i.test(t))?e$(n):n}}function e$(e,t=[]){let n={};for(let r in e){let i=e[r],o=[...t,r];n[o.join("-")]=i,"DEFAULT"==r&&(o=t,n[t.join("-")]=i),"object"==typeof i&&Object.assign(n,e$(i,o))}return n}function ew(e,t,n){if("function"==typeof dispatchEvent&&"function"==typeof CustomEvent){let r=new CustomEvent("warning",{detail:{message:e,code:t,detail:n}});dispatchEvent(r),r.defaultPrevented||console.warn(`[${t}] ${e}`,{detail:n})}else console.warn(`[${t}] ${e}`,{detail:n})}function ex({theme:e,darkMode:t,darkColor:n,variants:o,rules:s,hash:c,stringify:a,ignorelist:f}){let p=new Map,h=new Map,d=new Map,g=new Map,y=eM(f,(e,t)=>t.test(e)),m=new Set;o.push(["dark",Array.isArray(t)||"class"==t?`${l(t)[1]||".dark"} &`:"string"==typeof t&&"media"!=t?t:"@media (prefers-color-scheme:dark)"]);let b="function"==typeof c?e=>c(e,i):c?i:u;return{theme:ev(e),e:r,h:b,s(e,t){return a(eV(e,b),eV(t,b),this)},d(e,t,r){return null==n?void 0:n(e,t,this,r)},v(e){return p.has(e)||p.set(e,eA(e,o,h,ek,this)||"&:"+e),p.get(e)},r(e,t){let n=JSON.stringify([e,t]);if(!d.has(n)){d.set(n,!y(e,this)&&eA(e,s,g,ej,this,t));{let r=d.get(n);null!=r||m.has(e)||(m.add(e),ew(`Unknown class ${JSON.stringify(e)} found.`,"TWIND_INVALID_CLASS",e))}}return d.get(n)}}}function eA(e,t,n,r,i,o){for(let l of t){let u=n.get(l);u||n.set(l,u=r(l));let s=u(e,i,o);if(s)return s}}function ek(e){return eO(e[0],e[1])}function ej(e){return Array.isArray(e)?eE(e[0],e[1],e[2]):eE(e)}function eO(e,t){return eS(e,"function"==typeof t?t:()=>t)}function eE(e,t,n){return eS(e,er(t,n))}function eS(e,t){return eM(e,(e,n,r,i)=>{let o=n.exec(e);if(o)return o.$$=e.slice(o[0].length),o.dark=i,t(o,r)})}function eM(e,t){let n=l(e).map(eC);return(e,r,i)=>{for(let o of n){let l=t(e,o,r,i);if(l)return l}}}function eC(e){return"string"==typeof e?RegExp("^"+e+(e.includes("$")||"-"==e.slice(-1)?"":"$")):e}function eV(e,t){return e.replace(/--(tw(?:-[\w-]+)?)\b/g,(e,n)=>"--"+t(n).replace("#",""))}function eT(e,t){let n=em(e),r=ex(n),i=new Map,o=[],u=new Set;function s(e){let n=e.n&&r.h(e.n),i=$(n?{...e,n:n}:e);if(i&&!u.has(i)){u.add(i);let l=j(o,e);t.insert(i,l,e),o.splice(l,0,e)}return n}return t.resume(e=>i.set(e,e),(e,n)=>{t.insert(e,o.length,n),o.push(n),u.add(e)}),Object.defineProperties(function(e){if(!i.size)for(let t of l(n.preflight))"function"==typeof t&&(t=t(r)),t&&("string"==typeof t?F("",c.b,_(t),r,c.b,[],!1,!0):C(t,{},r,c.b)).forEach(s);e=""+e;let o=i.get(e);if(!o){let u=new Set;for(let a of L(_(e),r))u.add(a.c).add(s(a));o=[...u].filter(Boolean).join(" "),i.set(e,o).set(o,o)}return o},Object.getOwnPropertyDescriptors({get target(){return t.target},theme:r.theme,config:n,snapshot(){let e=t.snapshot(),n=new Set(u),r=new Map(i),l=[...o];return()=>{e(),u=n,i=r,o=l}},clear(){t.clear(),u=new Set,i=new Map,o=[]},destroy(){this.clear(),t.destroy()}}))}function eD(e,t){return e!=t&&""+e.split(" ").sort()!=""+t.split(" ").sort()}function eL(e=eJ,t=document.documentElement){if(!t)return e;let n=new MutationObserver(i);n.observe(t,{attributeFilter:["class"],subtree:!0,childList:!0}),o(t),i([{target:t,type:""}]);let{destroy:r}=e;return e.destroy=()=>{n.disconnect(),r.call(e)},e;function i(e){for(let{type:t,target:r}of e)if("a"==t[0])o(r);else for(let i of r.querySelectorAll("[class]"))o(i);n.takeRecords()}function o(t){let n;let r=t.getAttribute("class");r&&eD(r,n=e(r))&&t.setAttribute("class",n)}}function eN(e){let t=document.querySelector(e||"style[data-twind]");return t&&"STYLE"==t.tagName||((t=document.createElement("style")).dataset.twind="",document.head.prepend(t)),t}function eF(e){let t=(null==e?void 0:e.cssRules)?e:(e&&"string"!=typeof e?e:eN(e)).sheet;return{target:t,snapshot(){let e=Array.from(t.cssRules,e=>e.cssText);return()=>{this.clear(),e.forEach(this.insert)}},clear(){for(let e=t.cssRules.length;e--;)t.deleteRule(e)},destroy(){var e;null==(e=t.ownerNode)||e.remove()},insert(e,n){try{t.insertRule(e,n)}catch(r){t.insertRule(":root{}",n),/:-[mwo]/.test(e)||ew(r.message,"TWIND_INVALID_CSS",e)}},resume:s}}function eR(e){let t=e&&"string"!=typeof e?e:eN(e);return{target:t,snapshot(){let e=Array.from(t.childNodes,e=>e.textContent);return()=>{this.clear(),e.forEach(this.insert)}},clear(){t.textContent=""},destroy(){t.remove()},insert(e,n){t.insertBefore(document.createTextNode(e),t.childNodes[n]||null)},resume:s}}function eU(e){let t=[];return{target:t,snapshot(){let e=[...t];return()=>{t.splice(0,t.length,...e)}},clear(){t.length=0},destroy(){this.clear()},insert(n,r,i){t.splice(r,0,e?`/*!${i.p.toString(36)},${(2*i.o).toString(36)}${i.n?","+i.n:""}*/${n}`:n)},resume:s}}function eI(e,t){let n=e?eR():eF();return t||(n.resume=e_),n}function eP(e){return(e.ownerNode||e).textContent||(e.cssRules?Array.from(e.cssRules,e=>e.cssText):l(e)).join("")}function e_(e,t){let n=eP(this.target),r=/\/\*!([\da-z]+),([\da-z]+)(?:,(.+?))?\*\//g;if(r.test(n)){var i;let o;for(let l of(r.lastIndex=0,this.clear(),document.querySelectorAll("[class]")))e(l.getAttribute("class"));for(;i=r.exec(n),o&&t(n.slice(o.index+o[0].length,null==i?void 0:i.index),{p:parseInt(o[1],36),o:parseInt(o[2],36)/2,n:o[3]}),o=i;);}}function ez(e){if(document.currentScript){let t=()=>n.disconnect(),n=new MutationObserver(n=>{for(let{target:r}of n)if(r===document.body)return e(),t()});return n.observe(document.documentElement,{childList:!0,subtree:!0}),t}return s}function eq(){if(!e)throw Error("No active twind instance found. Make sure to call setup or install before accessing tw.")}let eJ=new Proxy(s,{apply:(t,n,r)=>(eq(),e(r[0])),get(t,n){eq();let r=e[n];return"function"==typeof r?function(){return eq(),r.apply(e,arguments)}:r}});function eW(t={},n=eI,r){return null==e||e.destroy(),e=eL(eT(t,"function"==typeof n?n():n),r)}let eB=function(e,...t){("function"==typeof this?this:eJ)(Q({"@layer base":Y(e,t)}))};function eG(e,t=!1){var n;let r=em(e);return eW({...r,hash:null!=(n=r.hash)?n:t},()=>eI(!t))}let eY=eZ();function eZ(e){return new Proxy(function(t,...n){return eH(e,"",t,n)},{get:(t,n)=>"bind"===n?eZ:n in t?t[n]:function(t,...r){return eH(e,n,t,r)}})}function eH(e,t,n,o){return{toString(){let l=Y(n,o),u=r(t+i(JSON.stringify([t,l])));return("function"==typeof e?e:eJ)(Q({[`@keyframes ${u}`]:Y(n,o)})),u}}}let eK=0,eQ=1,eX=2,e0=3,e1=4,e2=5;function e3(e,t){let n=1,r=0,i="",o="",l=l=>{5==n&&"class"==o&&!1===t(r,l,i)&&(e="")};for(let u=0;u<e.length;u++){let s=e[u];1==n?"<"==s&&(n="!--"==e.substr(u+1,3)?4:3):4==n?">"==s&&"--"==e.slice(u-2,u)&&(n=1):i?s==i&&"\\"!=e[u-1]&&(l(u),n=2,i=""):'"'==s||"'"==s?(i=s,r+=1):">"==s?(l(u),n=1):n&&("="==s?(o=e.slice(r,u),n=5,r=u+1):"/"==s&&(n<5||">"==e[u+1])?(l(u),n=0):/\s/.test(s)&&(l(u),n=2,r=u+1))}}function e4(e,t){return('"'==t?e.replace(/(=|\[)(?:&#39;|&apos;|&#x27;)|(?:&#39;|&apos;|&#x27;)(])/g,"$1'$2"):"'"==t?e.replace(/(=|\[)(?:&#34;|&quot;|&#x22;)|(?:&#34;|&quot;|&#x22;)(])/g,'$1"$2'):e).replace(/(&#38;|&amp;|&#x26;)/g,"&")}function e6(e,t={}){let{tw:n=eJ,minify:r=u}="function"==typeof t?{tw:t}:t,{html:i,css:o}=e5(e,n);return i.replace("</head>",`<style data-twind>${r(o,i)}</style></head>`)}function e5(e,t=eJ){let n=t.snapshot(),r={html:e7(e,t),css:eP(t.target)};return n(),r}function e7(e,t=eJ){let n="",r=0;return e3(e,(i,o,l)=>{let u=e.slice(i,o),s=t(e4(u,l));eD(u,s)&&(l=l?"":'"',n+=e.slice(r,i)+l+s+l,r=o)}),n+e.slice(r,e.length)}let e8=(e,t)=>"function"==typeof e?e9(t,e):e9(e);function e9(e={},t){let{label:n="style",base:o,props:l={},defaults:u,when:s=[]}=e,a={...null==t?void 0:t.defaults,...u},f=i(JSON.stringify([n,null==t?void 0:t.className,o,l,a,s])),p=h("",o||"",c.c);function h(e,r,i){return R(((t?t.className.replace(/#.+$/,"~"):"")+n+e+f).replace(/[: ,()[\]]/,""),i,r&&_(r))}return Object.defineProperties(function(e){let n,r;Array.isArray(e)&&(n=!0,e=Object.fromEntries(new URLSearchParams(e[1]).entries()));let i={...a,...e},o=n?"":(t?t(i)+" ":"")+p;for(let u in l){let c=l[u],f=i[u];if(f===Object(f)){let d="";for(let g in r="",f){let y=c[f[g]];y&&(d+="@"+g+"-"+f[g],r+=(r&&" ")+("_"==g?y:g+":("+y+")"))}r&&(o+=" "+h("--"+u+"-"+d,r,402653184))}else(r=c[f])&&(o+=" "+h("--"+u+"-"+f,r,402653184))}return s.forEach((e,t)=>{let n="";for(let l in e[0]){let u=i[l];if(u!==Object(u)&&""+u==""+e[0][l])n+=(n&&"_")+l+"-"+u;else{n="";break}}n&&(r=e[1])&&(o+=" "+h("-"+t+"--"+n,r,536870912))}),o},Object.getOwnPropertyDescriptors({className:p,defaults:a,selector:"."+r(p)}))}let te=function(e,...t){return("function"==typeof this?this:eJ)(q(e,t))};export{X as animation,W as apply,ea as arbitrary,l as asArray,ez as auto,M as autoDarkColor,es as colorFromTheme,e7 as consume,Q as css,eF as cssom,ey as cx,em as defineConfig,eR as dom,r as escape,e5 as extract,er as fromMatch,el as fromTheme,eg as getAutocompleteProvider,eI as getSheet,i as hash,u as identity,eB as injectGlobal,e6 as inline,eG as install,eY as keyframes,en as match,eu as matchColor,eo as matchTheme,o as mql,s as noop,ep as normalize,eL as observe,_ as parse,eW as setup,B as shortcut,eP as stringify,e8 as style,ec as toCSS,S as toColorValue,eJ as tw,eT as twind,te as tx,eU as virtual,ed as withAutocomplete};//# sourceMappingURL=twind.browser.dev.js.map

@@ -1,1 +0,1 @@

var e=function(e){"use strict";let t;function n(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function r(e,t=","){return e.map(n).join(t)}let i="undefined"!=typeof CSS&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function o(e){for(var t=9,n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function l(e,t="@media "){return t+u(e).map(e=>("string"==typeof e&&(e={min:e}),e.raw||Object.keys(e).map(t=>`(${t}-width:${e[t]})`).join(" and "))).join(",")}function u(e=[]){return Array.isArray(e)?e:null==e?[]:[e]}function s(e){return e}function c(){}let a={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function f(e){var t;return(null==(t=e.match(/[-=:;]/g))?void 0:t.length)||0}function p(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?+RegExp.$1/(RegExp.$2?15:1)/10:0,15)<<22|Math.min(f(e),15)<<18}let h=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function d({n:e,i:t,v:r=[]},i,o,s){for(let c of(e&&(e=n({n:e,i:t,v:r})),s=[...u(s)],r)){let a=i.theme("screens",c);for(let f of u(a&&l(a)||i.v(c))){var d;s.push(f),o|=a?67108864|p(f):"dark"==c?1073741824:"@"==f[0]?p(f):(d=f,1<<~(/:([a-z-]+)/.test(d)&&~h.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:o,r:s,i:t}}let g=new Map;function y(){return(y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function m(){return y.apply(this,arguments)}function v(e){if(e.d){let t=[],n=b(e.r.reduce((e,n)=>"@"==n[0]?(t.push(n),e):n?b(e,e=>b(n,t=>{let n=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(t);if(n){let r=e.indexOf(n[1]);return~r?e.slice(0,r)+n[0]+e.slice(r+n[1].length):$(e,t)}return $(t,e)})):e,"&"),t=>$(t,e.n?"."+i(e.n):""));return n&&t.push(n.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((e,t)=>t+"{"+e+"}",e.d)}}function b(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(e,n,r)=>t(n)+r)}function $(e,t){return e.replace(/&/g,t)}let w=new Intl.Collator("en",{numeric:!0});function x(e,t){for(var n=0,r=e.length;n<r;){let i=r+n>>1;0>=A(e[i],t)?n=i+1:r=i}return r}function A(e,t){let n=e.p&a.o;return n==(t.p&a.o)&&(n==a.b||n==a.o)?0:e.p-t.p||e.o-t.o||w.compare(e.n,t.n)}function k(e,t){return Math.round(parseInt(e,16)*t)}function O(e,t={}){if("function"==typeof e)return e(t);let{opacityValue:n="1",opacityVariable:r}=t,i=r?`var(${r})`:n;if(e.includes("<alpha-value>"))return e.replace("<alpha-value>",i);if("#"==e[0]&&(4==e.length||7==e.length)){let o=(e.length-1)/3,l=[17,1,.062272][o-1];return`rgba(${[k(e.substr(1,o),l),k(e.substr(1+o,o),l),k(e.substr(1+2*o,o),l),i]})`}return"1"==i?e:"0"==i?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${i})`)}function j(e,t,n,r,i=[]){return function e(t,{n:n,p:r,r:i=[],i:s},c){let h=[],d="",g=0,y=0;for(let m in t||{}){var b,$;let w=t[m];if("@"==m[0]){if(!w)continue;if("a"==m[1]){h.push(...C(n,r,N(""+w),c,r,i,s,!0));continue}if("l"==m[1]){for(let x of u(w))h.push(...e(x,{n:n,p:(b=a[m[7]],r&~a.o|b),r:i,i:s},c));continue}if("i"==m[1]){h.push(...u(w).map(e=>({p:-1,o:0,r:[],d:m+" "+e})));continue}if("k"==m[1]){h.push({p:a.d,o:0,r:[m],d:e(w,{p:a.d},c).map(v).join("")});continue}if("f"==m[1]){h.push(...u(w).map(t=>({p:a.d,o:0,r:[m],d:e(t,{p:a.d},c).map(v).join("")})));continue}}if("object"!=typeof w||Array.isArray(w))"label"==m&&w?n=w+o(JSON.stringify([r,s,t])):(w||0===w)&&(m=m.replace(/[A-Z]/g,e=>"-"+e.toLowerCase()),y+=1,g=Math.max(g,"-"==($=m)[0]?0:f($)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7}$)|([fl].{5}l|g.{8}$|pl))/.test($)?+!!RegExp.$1||-!!RegExp.$2:0)+1),d+=(d?";":"")+u(w).map(e=>c.s(m,S(""+e,c.theme)+(s?" !important":""))).join(";"));else if("@"==m[0]||m.includes("&")){let k=r;"@"==m[0]&&(m=m.replace(/\bscreen\(([^)]+)\)/g,(e,t)=>{let n=c.theme("screens",t);return n?(k|=67108864,l(n,"")):e}),k|=p(m)),h.push(...e(w,{n:n,p:k,r:[...i,m],i:s},c))}else h.push(...e(w,{p:r,r:[...i,m]},c))}return h.unshift({n:n,p:r,o:Math.max(0,15-y)+1.5*Math.min(g||15,15),r:i,d:d}),h.sort(A)}(e,d(t,n,r,i),n)}function S(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(e,n,r,i,o)=>{let l=t(r,o);return"function"==typeof l&&/color|fill|stroke/i.test(r)?O(l):""+l})}function E(e,t){let n;let r=[];for(let i of e)i.d&&i.n?(null==n?void 0:n.p)==i.p&&""+n.r==""+i.r?(n.c=[n.c,i.c].filter(Boolean).join(" "),n.d=n.d+";"+i.d):r.push(n=m({},i,{n:i.n&&t})):r.push(m({},i,{n:i.n&&t}));return r}function M(e,t,r=a.u,i,o){let l=[];for(let s of e)for(let c of function(e,t,r,i,o){var l;e=m({},e,{i:e.i||o});let s=function(e,t){let n=g.get(e.n);return n?n(e,t):t.r(e.n,"dark"==e.v[0])}(e,t);return s?"string"==typeof s?({r:i,p:r}=d(e,t,r,i),E(M(N(s),t,r,i,e.i),e.n)):Array.isArray(s)?s.map(e=>{var t,n;return m({o:0},e,{r:[...u(i),...u(e.r)],p:(t=r,n=null!=(l=e.p)?l:r,t&~a.o|n)})}):j(s,e,t,r,i):[{c:n(e),p:0,o:0,r:[]}]}(s,t,r,i,o))l.splice(x(l,c),0,c);return l}function C(e,t,n,r,i,o,l,u){return E((u?n.flatMap(e=>M([e],r,i,o,l)):M(n,r,i,o,l)).map(e=>e.p&a.o&&(e.n||t==a.b)?m({},e,{p:e.p&~a.o|t,o:0}):e),e)}function V(e,t,n,r){var i;return i=(e,i)=>{let{n:o,p:l,r:u,i:s}=d(e,i,t);return n&&C(o,t,n,i,l,u,s,r)},g.set(e,i),e}function T(e,t,n){if("("!=e[e.length-1]){let r=[],i=!1,o=!1,l="";for(let u of e)if(!("("==u||/[~@]$/.test(u))){if("!"==u[0]&&(u=u.slice(1),i=!i),u.endsWith(":")){r["dark:"==u?"unshift":"push"](u.slice(0,-1));continue}"-"==u[0]&&(u=u.slice(1),o=!o),u.endsWith("-")&&(u=u.slice(0,-1)),u&&"&"!=u&&(l+=(l&&"-")+u)}l&&(o&&(l="-"+l),t[0].push(Object.defineProperties({n:l,v:r.filter(D),i:i},{a:{value:[...e]},l:{value:n}})))}}function D(e,t,n){return n.indexOf(e)==t}let L=new Map;function N(e){let t=L.get(e);if(!t){let n=[],i=[[]],l=0,u=0,s=null,c=0,f=(t,r=0)=>{l!=c&&(n.push(e.slice(l,c+r)),t&&T(n,i,[l,c+r])),l=c+1};for(;c<e.length;c++){let p=e[c];if(u)"\\"!=e[c-1]&&(u+=+("["==p)||-("]"==p));else if("["==p)u+=1;else if(s)"\\"!=e[c-1]&&s.test(e.slice(c))&&(s=null,l=c+RegExp.lastMatch.length);else if("/"==p&&"\\"!=e[c-1]&&("*"==e[c+1]||"/"==e[c+1]))s="*"==e[c+1]?/^\*\//:/^[\r\n]/;else if("("==p)f(),n.push(p);else if(":"==p)":"!=e[c+1]&&f(!1,1);else if(/[\s,)]/.test(p)){f(!0);let h=n.lastIndexOf("(");if(")"==p){let d=n[h-1];if(/[~@]$/.test(d)){let g=i.shift();n.length=h,T([...n,"#"],i,[l,c]);let{v:y}=i[0].pop();for(let m of g)m.v.splice(+("dark"==m.v[0])-+("dark"==y[0]),y.length);T([...n,V(d.length>1?d.slice(0,-1)+o(JSON.stringify([d,g])):d+"("+r(g)+")",a.a,g,/@$/.test(d))],i,[l,c])}h=n.lastIndexOf("(",h-1)}n.length=h+1}else/[~@]/.test(p)&&"("==e[c+1]&&i.unshift([])}f(!0),L.set(e,t=i[0])}return t}function F(e,t,n){return t.reduce((t,r,i)=>t+n(r)+e[i+1],e[0])}function R(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?F(e,t,e=>U(e).trim()):t.filter(Boolean).reduce((e,t)=>e+U(t),e?U(e):"")}function U(e){let t,n="";if(e&&"object"==typeof e){if(Array.isArray(e))(t=R(e[0],e.slice(1)))&&(n+=" "+t);else for(let r in e)e[r]&&(n+=" "+r)}else null!=e&&"boolean"!=typeof e&&(n+=" "+e);return n}let P=_("@"),I=_("~");function _(e){return new Proxy(function(e,...n){return t("",e,n)},{get:(e,n)=>n in e?e[n]:function(e,...r){return t(n,e,r)}});function t(t,n,i){return r(N(t+e+"("+R(n,i)+")"))}}function z(e,t){return Array.isArray(e)?J(F(e,t,e=>null!=e&&"boolean"!=typeof e?e:"")):"string"==typeof e?J(e):[e]}let q=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function J(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let n=[{}],r=[n[0]],i=[];for(;t=q.exec(e);)t[4]&&(n.shift(),i.shift()),t[3]?(i.unshift(t[3]),n.unshift({}),r.push(i.reduce((e,t)=>({[t]:e}),n[0]))):t[4]||(n[0][t[1]]&&(n.unshift({}),r.push(i.reduce((e,t)=>({[t]:e}),n[0]))),n[0][t[1]]=t[2]);return r}function W(e,...t){var n,r;let i=z(e,t),l=((null==(n=i.find(e=>e.label))?void 0:n.label)||"css")+o(JSON.stringify(i));return r=(e,t)=>E(i.flatMap(n=>j(n,e,t,a.o)),l),g.set(l,r),l}let B=new Proxy(function(e,t){return G("animation",e,t)},{get:(e,t)=>t in e?e[t]:function(e,n){return G(t,e,n)}});function G(e,t,n){return{toString:()=>W({label:e,"@layer components":m({},"object"==typeof t?t:{animation:t},{animationName:""+n})})}}function Y(e,t){return"function"==typeof e?e:"string"==typeof e&&/^[\w-]+$/.test(e)?(n,r)=>({[e]:t?t(n,r):Z(n,1)}):t=>e||{[t[1]]:Z(t,2)}}function Z(e,t,n=e.slice(t).find(Boolean)||e.$$||e.input){return"-"==e.input[0]?`calc(${n} * -1)`:n}function H(e,t,n){let r="string"==typeof t?(e,r)=>({[t]:n?n(e,r):e._}):t||(({1:e,_:t},n,r)=>({[e||r]:t}));return er((t,n)=>{var i;let o=ee(e||t[1]),l=null!=(i=n.theme(o,t.$$))?i:X(t.$$,o,n);if(null!=l)return t._=Z(t,0,l),r(t,n,o)},(t,n)=>{let r=ee(e||t[1]),i=t.input.endsWith("-");if(i)return Object.entries(n.theme(r)||{}).filter(([e,t])=>e&&"DEFAULT"!=e&&(!/color|fill|stroke/i.test(r)||["string","function"].includes(typeof t))).map(([e,t])=>({suffix:e.replace(/-DEFAULT/g,""),theme:{section:r,key:e},color:/color|fill|stroke/i.test(r)&&O(t,{opacityValue:"1"})})).concat([{suffix:"["}]);let o=n.theme(r,"DEFAULT");return o?[{suffix:"",theme:{section:r,key:"DEFAULT"},color:/color|fill|stroke/i.test(r)&&O(o,{opacityValue:"1"})}]:[]})}function K(e={},t){return er((n,r)=>{let{section:i=ee(n[0]).replace("-","")+"Color"}=e;if(!/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/.test(n.$$))return;let{$1:o,$2:l}=RegExp,u=r.theme(i,o)||X(o,i,r);if(!u||"object"==typeof u)return;let{opacityVariable:s=`--tw-${n[0].replace(/-$/,"")}-opacity`,opacitySection:c=i.replace("Color","Opacity"),property:a=i,selector:f}=e,p=r.theme(c,l||"DEFAULT")||l&&X(l,c,r),h=t||(({_:e})=>{let t=Q(a,e);return f?{[f]:t}:t});n._={value:O(u,{opacityVariable:s||void 0,opacityValue:p||void 0}),color:e=>O(u,e),opacityVariable:s||void 0,opacityValue:p||void 0};let d=h(n,r);if(!n.dark){let g=r.d(i,o,u);g&&g!==u&&(n._={value:O(g,{opacityVariable:s||void 0,opacityValue:p||"1"}),color:e=>O(g,e),opacityVariable:s||void 0,opacityValue:p||void 0},d={"&":d,[r.v("dark")]:h(n,r)})}return d},(t,n)=>{let{section:r=ee(t[0]).replace("-","")+"Color",opacitySection:i=r.replace("Color","Opacity")}=e,o=t.input.endsWith("-"),l=Object.entries(n.theme(i)||{}).filter(([e,t])=>"DEFAULT"!=e&&/^[\w-]+$/.test(e)&&"string"==typeof t);if(o)return Object.entries(n.theme(r)||{}).filter(([e,t])=>e&&"DEFAULT"!=e&&["string","function"].includes(typeof t)).map(([e,t])=>({suffix:e.replace(/-DEFAULT/g,""),theme:{section:r,key:e},color:O(t,{opacityValue:n.theme(i,"DEFAULT")||"1"}),modifiers:("function"==typeof t||"string"==typeof t&&(t.includes("<alpha-value>")||"#"==t[0]&&(4==t.length||7==t.length)))&&l.map(([e,n])=>({modifier:e,theme:{section:i,key:e},color:O(t,{opacityValue:n})})).concat([{modifier:"[",color:O(t,{opacityValue:"1"})}])})).concat([{suffix:"["}]);let u=n.theme(r,"DEFAULT");return u?[{suffix:"",theme:{section:r,key:"DEFAULT"},color:O(u,{opacityValue:n.theme(i,"DEFAULT")||"1"}),modifiers:("function"==typeof u||"string"==typeof u&&(u.includes("<alpha-value>")||"#"==u[0]&&(4==u.length||7==u.length)))&&l.map(([e,t])=>({modifier:e,theme:{section:i,key:e},color:O(u,{opacityValue:t})})).concat([{modifier:"[",color:O(u,{opacityValue:"1"})}])}]:[]})}function Q(e,t){let n={};return"string"==typeof t?n[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(n[t.opacityVariable]=t.opacityValue||"1"),n[e]=t.value),n}function X(e,t,n){if("["==e[0]&&"]"==e.slice(-1)&&(e=et(S(e.slice(1,-1),n.theme)),!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e))))return e.replace(/^[a-z-]+:/,"")}function ee(e){return e.replace(/-./g,e=>e[1].toUpperCase())}function et(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(e,t="",n,r="")=>et(t)+n+et(r)):e.replace(/(^|[^\\])_+/g,(e,t)=>t+" ".repeat(e.length-t.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,e=>e.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}let en=Symbol("@twind/autocomplete");function er(e,t){if(t){if("function"==typeof e)return Object.defineProperty(e,en,{value:t,configurable:!0});let[n,r,i]=u(e);return[n,Object.defineProperty(Y(r,i),en,{value:t,configurable:!0})]}return e}function ei(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function eo(e){var{presets:t=[]}=e,n=ei(e,["presets"]);let r={preflight:!1!==n.preflight&&[],darkMode:void 0,darkColor:void 0,theme:{},variants:u(n.variants),rules:u(n.rules),ignorelist:u(n.ignorelist),hash:n.hash,stringify:n.stringify||el};for(let i of u([...t,{darkMode:n.darkMode,darkColor:n.darkColor,preflight:!1!==n.preflight&&u(n.preflight),theme:n.theme,hash:n.hash,stringify:n.stringify}])){let{preflight:o,darkMode:l=r.darkMode,darkColor:s=r.darkColor,theme:c,variants:a,rules:f,ignorelist:p,hash:h=r.hash,stringify:d=r.stringify}="function"==typeof i?i(r):i;r={preflight:!1!==r.preflight&&!1!==o&&[...r.preflight,...u(o)],darkMode:l,darkColor:s,theme:m({},r.theme,c,{extend:m({},r.theme.extend,null==c?void 0:c.extend)}),variants:[...r.variants,...u(a)],rules:[...r.rules,...u(f)],ignorelist:[...r.ignorelist,...u(p)],hash:h,stringify:d}}return r}function el(e,t){return e+":"+t}function eu(e,t,n){if("function"==typeof dispatchEvent){let r=new CustomEvent("warning",{detail:{message:e,code:t,detail:n}});dispatchEvent(r),r.defaultPrevented||console.warn(`[${t}] ${e}`,{detail:n})}else console.warn(`[${t}] ${e}`,{detail:n})}function es(e,t,n,r,i,o){for(let l of t){let u=n.get(l);u||n.set(l,u=r(l));let s=u(e,i,o);if(s)return s}}function ec(e){var t;return ef(e[0],"function"==typeof(t=e[1])?t:()=>t)}function ea(e){var t,n;return Array.isArray(e)?ef(e[0],Y(e[1],e[2])):ef(e,Y(t,n))}function ef(e,t){return ep(e,(e,n,r,i)=>{let o=n.exec(e);if(o)return o.$$=e.slice(o[0].length),o.dark=i,t(o,r)})}function ep(e,t){let n=u(e).map(eh);return(e,r,i)=>{for(let o of n){let l=t(e,o,r,i);if(l)return l}}}function eh(e){return"string"==typeof e?RegExp("^"+e+(e.includes("$")||"-"==e.slice(-1)?"":"$")):e}function ed(e,t){return e.replace(/--(tw(?:-[\w-]+)?)\b/g,(e,n)=>"--"+t(n).replace("#",""))}function eg(e,t){let n=eo(e),r=function({theme:e,darkMode:t,darkColor:n,variants:r,rules:l,hash:c,stringify:a,ignorelist:f}){let p=new Map,h=new Map,d=new Map,g=new Map,y=ep(f,(e,t)=>t.test(e)),m=new Set;r.push(["dark",Array.isArray(t)||"class"==t?`${u(t)[1]||".dark"} &`:"string"==typeof t&&"media"!=t?t:"@media (prefers-color-scheme:dark)"]);let v="function"==typeof c?e=>c(e,o):c?o:s;return{theme:function(e){var{extend:t={}}=e,n=ei(e,["extend"]);let r={},i={get colors(){return o("colors")},theme:o,negative:()=>({}),breakpoints(e){let t={};for(let n in e)"string"==typeof e[n]&&(t["screen-"+n]=e[n]);return t}};return o;function o(e,i,u,s){if(e){var c;if({1:e,2:s}=/^(\S+?)(?:\s*\/\s*([^/]+))?$/.exec(e)||[,e],/[.[]/.test(e)){let a=[];e.replace(/\[([^\]]+)\]|([^.[]+)/g,(e,t,n=t)=>a.push(n)),e=a.shift(),u=i,i=a.join("-")}let f=r[e]||Object.assign(Object.assign(r[e]={},l(n,e)),l(t,e));if(null==i)return f;let p=null!=(c=f[i||"DEFAULT"])?c:u;return s?O(p,{opacityValue:S(s,o)}):p}let h={};for(let d of[...Object.keys(n),...Object.keys(t)])h[d]=o(d);return h}function l(e,t){let n=e[t];return("function"==typeof n&&(n=n(i)),n&&/color|fill|stroke/i.test(t))?function e(t,n=[]){let r={};for(let i in t){let o=t[i],l=[...n,i];r[l.join("-")]=o,"DEFAULT"==i&&(l=n,r[n.join("-")]=o),"object"==typeof o&&Object.assign(r,e(o,l))}return r}(n):n}}(e),e:i,h:v,s(e,t){return a(ed(e,v),ed(t,v),this)},d(e,t,r){return null==n?void 0:n(e,t,this,r)},v(e){return p.has(e)||p.set(e,es(e,r,h,ec,this)||"&:"+e),p.get(e)},r(e,t){let n=JSON.stringify([e,t]);if(!d.has(n)){d.set(n,!y(e,this)&&es(e,l,g,ea,this,t));{let r=d.get(n);null!=r||m.has(e)||(m.add(e),eu(`Unknown class ${JSON.stringify(e)} found.`,"TWIND_INVALID_CLASS",e))}}return d.get(n)}}}(n),l=new Map,c=[],f=new Set;function p(e){let n=e.n&&r.h(e.n),i=v(n?m({},e,{n:n}):e);if(i&&!f.has(i)){f.add(i);let o=x(c,e);t.insert(i,o,e),c.splice(o,0,e)}return n}return t.resume(e=>l.set(e,e),(e,n)=>{t.insert(e,c.length,n),c.push(n),f.add(e)}),Object.defineProperties(function(e){if(!l.size)for(let t of u(n.preflight))"function"==typeof t&&(t=t(r)),t&&("string"==typeof t?C("",a.b,N(t),r,a.b,[],!1,!0):j(t,{},r,a.b)).forEach(p);e=""+e;let i=l.get(e);if(!i){let o=new Set;for(let s of M(N(e),r))o.add(s.c).add(p(s));i=[...o].filter(Boolean).join(" "),l.set(e,i).set(i,i)}return i},Object.getOwnPropertyDescriptors({get target(){return t.target},theme:r.theme,config:n,snapshot(){let e=t.snapshot(),n=new Set(f),r=new Map(l),i=[...c];return()=>{e(),f=n,l=r,c=i}},clear(){t.clear(),f=new Set,l=new Map,c=[]},destroy(){this.clear(),t.destroy()}}))}function ey(e,t){return e!=t&&""+e.split(" ").sort()!=""+t.split(" ").sort()}function em(e=eO,t=document.documentElement){if(!t)return e;let n=new MutationObserver(i);n.observe(t,{attributeFilter:["class"],subtree:!0,childList:!0}),o(t),i([{target:t,type:""}]);let{destroy:r}=e;return e.destroy=()=>{n.disconnect(),r.call(e)},e;function i(e){for(let{type:t,target:r}of e)if("a"==t[0])o(r);else for(let i of r.querySelectorAll("[class]"))o(i);n.takeRecords()}function o(t){let n;let r=t.getAttribute("class");r&&ey(r,n=e(r))&&t.setAttribute("class",n)}}function ev(e){let t=document.querySelector(e||"style[data-twind]");return t&&"STYLE"==t.tagName||((t=document.createElement("style")).dataset.twind="",document.head.prepend(t)),t}function eb(e){let t=(null==e?void 0:e.cssRules)?e:(e&&"string"!=typeof e?e:ev(e)).sheet;return{target:t,snapshot(){let e=Array.from(t.cssRules,e=>e.cssText);return()=>{this.clear(),e.forEach(this.insert)}},clear(){for(let e=t.cssRules.length;e--;)t.deleteRule(e)},destroy(){var e;null==(e=t.ownerNode)||e.remove()},insert(e,n){try{t.insertRule(e,n)}catch(r){t.insertRule(":root{}",n),/:-[mwo]/.test(e)||eu(r.message,"TWIND_INVALID_CSS",e)}},resume:c}}function e$(e){let t=e&&"string"!=typeof e?e:ev(e);return{target:t,snapshot(){let e=Array.from(t.childNodes,e=>e.textContent);return()=>{this.clear(),e.forEach(this.insert)}},clear(){t.textContent=""},destroy(){t.remove()},insert(e,n){t.insertBefore(document.createTextNode(e),t.childNodes[n]||null)},resume:c}}function ew(e,t){let n=e?e$():eb();return t||(n.resume=eA),n}function ex(e){return(e.ownerNode||e).textContent||(e.cssRules?Array.from(e.cssRules,e=>e.cssText):u(e)).join("")}function eA(e,t){let n=ex(this.target),r=/\/\*!([\da-z]+),([\da-z]+)(?:,(.+?))?\*\//g;if(r.test(n)){var i;let o;for(let l of(r.lastIndex=0,this.clear(),document.querySelectorAll("[class]")))e(l.getAttribute("class"));for(;i=r.exec(n),o&&t(n.slice(o.index+o[0].length,null==i?void 0:i.index),{p:parseInt(o[1],36),o:parseInt(o[2],36)/2,n:o[3]}),o=i;);}}function ek(){if(!t)throw Error("No active twind instance found. Make sure to call setup or install before accessing tw.")}let eO=new Proxy(c,{apply:(e,n,r)=>(ek(),t(r[0])),get(e,n){ek();let r=t[n];return"function"==typeof r?function(){return ek(),r.apply(t,arguments)}:r}});function ej(e={},n=ew,r){return null==t||t.destroy(),t=em(eg(e,"function"==typeof n?n():n),r)}let eS=function e(t){return new Proxy(function(e,...n){return eE(t,"",e,n)},{get:(n,r)=>"bind"===r?e:r in n?n[r]:function(e,...n){return eE(t,r,e,n)}})}();function eE(e,t,n,r){return{toString(){let l=z(n,r),u=i(t+o(JSON.stringify([t,l])));return("function"==typeof e?e:eO)(W({[`@keyframes ${u}`]:z(n,r)})),u}}}function eM(e,t=eO){let n=t.snapshot(),r={html:eC(e,t),css:ex(t.target)};return n(),r}function eC(e,t=eO){let n="",r=0;return!function(e,t){let n=1,r=0,i="",o="",l=l=>{5==n&&"class"==o&&!1===t(r,l,i)&&(e="")};for(let u=0;u<e.length;u++){let s=e[u];1==n?"<"==s&&(n="!--"==e.substr(u+1,3)?4:3):4==n?">"==s&&"--"==e.slice(u-2,u)&&(n=1):i?s==i&&"\\"!=e[u-1]&&(l(u),n=2,i=""):'"'==s||"'"==s?(i=s,r+=1):">"==s?(l(u),n=1):n&&("="==s?(o=e.slice(r,u),n=5,r=u+1):"/"==s&&(n<5||">"==e[u+1])?(l(u),n=0):/\s/.test(s)&&(l(u),n=2,r=u+1))}}(e,(i,o,l)=>{var u;let s=e.slice(i,o),c=t(('"'==(u=l)?s.replace(/(=|\[)(?:&#39;|&apos;|&#x27;)|(?:&#39;|&apos;|&#x27;)(])/g,"$1'$2"):"'"==u?s.replace(/(=|\[)(?:&#34;|&quot;|&#x22;)|(?:&#34;|&quot;|&#x22;)(])/g,'$1"$2'):s).replace(/(&#38;|&amp;|&#x26;)/g,"&"));ey(s,c)&&(l=l?"":'"',n+=e.slice(r,i)+l+c+l,r=o)}),n+e.slice(r,e.length)}let eV=(e,t)=>"function"==typeof e?eT(t,e):eT(e);function eT(e={},t){let{label:n="style",base:r,props:l={},defaults:u,when:s=[]}=e,c=m({},null==t?void 0:t.defaults,u),f=o(JSON.stringify([n,null==t?void 0:t.className,r,l,c,s])),p=h("",r||"",a.c);function h(e,r,i){return V(((t?t.className.replace(/#.+$/,"~"):"")+n+e+f).replace(/[: ,()[\]]/,""),i,r&&N(r))}return Object.defineProperties(function(e){let n,r;Array.isArray(e)&&(n=!0,e=Object.fromEntries(new URLSearchParams(e[1]).entries()));let i=m({},c,e),o=n?"":(t?t(i)+" ":"")+p;for(let u in l){let a=l[u],f=i[u];if(f===Object(f)){let d="";for(let g in r="",f){let y=a[f[g]];y&&(d+="@"+g+"-"+f[g],r+=(r&&" ")+("_"==g?y:g+":("+y+")"))}r&&(o+=" "+h("--"+u+"-"+d,r,402653184))}else(r=a[f])&&(o+=" "+h("--"+u+"-"+f,r,402653184))}return s.forEach((e,t)=>{let n="";for(let l in e[0]){let u=i[l];if(u!==Object(u)&&""+u==""+e[0][l])n+=(n&&"_")+l+"-"+u;else{n="";break}}n&&(r=e[1])&&(o+=" "+h("-"+t+"--"+n,r,536870912))}),o},Object.getOwnPropertyDescriptors({className:p,defaults:c,selector:"."+i(p)}))}return e.animation=B,e.apply=P,e.arbitrary=X,e.asArray=u,e.auto=function(e){if(document.currentScript){let t=()=>n.disconnect(),n=new MutationObserver(n=>{for(let{target:r}of n)if(r===document.body)return e(),t()});return n.observe(document.documentElement,{childList:!0,subtree:!0}),t}return c},e.autoDarkColor=function(e,t,{theme:n}){return n(e,t=t.replace(/\d+$/,e=>100*(9-~~(parseInt(e,10)/100)||.5)))},e.colorFromTheme=K,e.consume=eC,e.css=W,e.cssom=eb,e.cx=function(e,...t){return r(N(R(e,t))," ")},e.defineConfig=eo,e.dom=e$,e.escape=i,e.extract=eM,e.fromMatch=Y,e.fromTheme=H,e.getAutocompleteProvider=function(e){return e[en]},e.getSheet=ew,e.hash=o,e.identity=s,e.injectGlobal=function(e,...t){("function"==typeof this?this:eO)(W({"@layer base":z(e,t)}))},e.inline=function(e,t={}){let{tw:n=eO,minify:r=s}="function"==typeof t?{tw:t}:t,{html:i,css:o}=eM(e,n);return i.replace("</head>",`<style data-twind>${r(o,i)}</style></head>`)},e.install=function(e,t=!1){var n;let r=eo(e);return ej(m({},r,{hash:null!=(n=r.hash)?n:t}),()=>ew(!t))},e.keyframes=eS,e.match=function(e,t,n){return[e,Y(t,n)]},e.matchColor=function(e,t={},n){return[e,K(t,n)]},e.matchTheme=function(e,t,n,r){return[e,H(t,n,r)]},e.mql=l,e.noop=c,e.normalize=et,e.observe=em,e.parse=N,e.setup=ej,e.shortcut=I,e.stringify=ex,e.style=eV,e.toCSS=Q,e.toColorValue=O,e.tw=eO,e.twind=eg,e.tx=function(e,...t){return("function"==typeof this?this:eO)(R(e,t))},e.virtual=function(e){let t=[];return{target:t,snapshot(){let e=[...t];return()=>{t.splice(0,t.length,...e)}},clear(){t.length=0},destroy(){this.clear()},insert(n,r,i){t.splice(r,0,e?`/*!${i.p.toString(36)},${(2*i.o).toString(36)}${i.n?","+i.n:""}*/${n}`:n)},resume:c}},e.withAutocomplete=er,e}({});//# sourceMappingURL=twind.global.dev.js.map
var e=function(e){"use strict";let t;function n(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function r(e,t=","){return e.map(n).join(t)}let i="undefined"!=typeof CSS&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function o(e){for(var t=9,n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function l(e,t="@media "){return t+u(e).map(e=>("string"==typeof e&&(e={min:e}),e.raw||Object.keys(e).map(t=>`(${t}-width:${e[t]})`).join(" and "))).join(",")}function u(e=[]){return Array.isArray(e)?e:null==e?[]:[e]}function s(e){return e}function c(){}let a={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function f(e){var t;return(null==(t=e.match(/[-=:;]/g))?void 0:t.length)||0}function p(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?+RegExp.$1/(RegExp.$2?15:1)/10:0,15)<<22|Math.min(f(e),15)<<18}let h=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function d({n:e,i:t,v:r=[]},i,o,s){for(let c of(e&&(e=n({n:e,i:t,v:r})),s=[...u(s)],r)){let a=i.theme("screens",c);for(let f of u(a&&l(a)||i.v(c))){var d;s.push(f),o|=a?67108864|p(f):"dark"==c?1073741824:"@"==f[0]?p(f):(d=f,1<<~(/:([a-z-]+)/.test(d)&&~h.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:o,r:s,i:t}}let y=new Map;function g(){return(g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function m(){return g.apply(this,arguments)}function v(e){if(e.d){let t=[],n=b(e.r.reduce((e,n)=>"@"==n[0]?(t.push(n),e):n?b(e,e=>b(n,t=>{let n=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(t);if(n){let r=e.indexOf(n[1]);return~r?e.slice(0,r)+n[0]+e.slice(r+n[1].length):$(e,t)}return $(t,e)})):e,"&"),t=>$(t,e.n?"."+i(e.n):""));return n&&t.push(n.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((e,t)=>t+"{"+e+"}",e.d)}}function b(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(e,n,r)=>t(n)+r)}function $(e,t){return e.replace(/&/g,t)}let w=new Intl.Collator("en",{numeric:!0});function x(e,t){for(var n=0,r=e.length;n<r;){let i=r+n>>1;0>=A(e[i],t)?n=i+1:r=i}return r}function A(e,t){let n=e.p&a.o;return n==(t.p&a.o)&&(n==a.b||n==a.o)?0:e.p-t.p||e.o-t.o||w.compare(e.n,t.n)}function k(e,t){return Math.round(parseInt(e,16)*t)}function O(e,t={}){if("function"==typeof e)return e(t);let{opacityValue:n="1",opacityVariable:r}=t,i=r?`var(${r})`:n;if(e.includes("<alpha-value>"))return e.replace("<alpha-value>",i);if("#"==e[0]&&(4==e.length||7==e.length)){let o=(e.length-1)/3,l=[17,1,.062272][o-1];return`rgba(${[k(e.substr(1,o),l),k(e.substr(1+o,o),l),k(e.substr(1+2*o,o),l),i]})`}return"1"==i?e:"0"==i?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${i})`)}function j(e,t,n,r,i=[]){return function e(t,{n:n,p:r,r:i=[],i:s},c){let h=[],d="",y=0,g=0;for(let m in t||{}){var b,$;let w=t[m];if("@"==m[0]){if(!w)continue;if("a"==m[1]){h.push(...C(n,r,N(""+w),c,r,i,s,!0));continue}if("l"==m[1]){for(let x of u(w))h.push(...e(x,{n:n,p:(b=a[m[7]],r&~a.o|b),r:i,i:s},c));continue}if("i"==m[1]){h.push(...u(w).map(e=>({p:-1,o:0,r:[],d:m+" "+e})));continue}if("k"==m[1]){h.push({p:a.d,o:0,r:[m],d:e(w,{p:a.d},c).map(v).join("")});continue}if("f"==m[1]){h.push(...u(w).map(t=>({p:a.d,o:0,r:[m],d:e(t,{p:a.d},c).map(v).join("")})));continue}}if("object"!=typeof w||Array.isArray(w))"label"==m&&w?n=w+o(JSON.stringify([r,s,t])):(w||0===w)&&(m=m.replace(/[A-Z]/g,e=>"-"+e.toLowerCase()),g+=1,y=Math.max(y,"-"==($=m)[0]?0:f($)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7}$)|([fl].{5}l|g.{8}$|pl))/.test($)?+!!RegExp.$1||-!!RegExp.$2:0)+1),d+=(d?";":"")+u(w).map(e=>c.s(m,E(""+e,c.theme)+(s?" !important":""))).join(";"));else if("@"==m[0]||m.includes("&")){let k=r;"@"==m[0]&&(m=m.replace(/\bscreen\(([^)]+)\)/g,(e,t)=>{let n=c.theme("screens",t);return n?(k|=67108864,l(n,"")):e}),k|=p(m)),h.push(...e(w,{n:n,p:k,r:[...i,m],i:s},c))}else h.push(...e(w,{p:r,r:[...i,m]},c))}return h.unshift({n:n,p:r,o:Math.max(0,15-g)+1.5*Math.min(y||15,15),r:i,d:d}),h.sort(A)}(e,d(t,n,r,i),n)}function E(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(e,n,r,i,o)=>{let l=t(r,o);return"function"==typeof l&&/color|fill|stroke/i.test(r)?O(l):""+l})}function S(e,t){let n;let r=[];for(let i of e)i.d&&i.n?(null==n?void 0:n.p)==i.p&&""+n.r==""+i.r?(n.c=[n.c,i.c].filter(Boolean).join(" "),n.d=n.d+";"+i.d):r.push(n=m({},i,{n:i.n&&t})):r.push(m({},i,{n:i.n&&t}));return r}function M(e,t,r=a.u,i,o){let l=[];for(let s of e)for(let c of function(e,t,r,i,o){var l;e=m({},e,{i:e.i||o});let s=function(e,t){let n=y.get(e.n);return n?n(e,t):t.r(e.n,"dark"==e.v[0])}(e,t);return s?"string"==typeof s?({r:i,p:r}=d(e,t,r,i),S(M(N(s),t,r,i,e.i),e.n)):Array.isArray(s)?s.map(e=>{var t,n;return m({o:0},e,{r:[...u(i),...u(e.r)],p:(t=r,n=null!=(l=e.p)?l:r,t&~a.o|n)})}):j(s,e,t,r,i):[{c:n(e),p:0,o:0,r:[]}]}(s,t,r,i,o))l.splice(x(l,c),0,c);return l}function C(e,t,n,r,i,o,l,u){return S((u?n.flatMap(e=>M([e],r,i,o,l)):M(n,r,i,o,l)).map(e=>e.p&a.o&&(e.n||t==a.b)?m({},e,{p:e.p&~a.o|t,o:0}):e),e)}function V(e,t,n,r){var i;return i=(e,i)=>{let{n:o,p:l,r:u,i:s}=d(e,i,t);return n&&C(o,t,n,i,l,u,s,r)},y.set(e,i),e}function T(e,t,n){if("("!=e[e.length-1]){let r=[],i=!1,o=!1,l="";for(let u of e)if(!("("==u||/[~@]$/.test(u))){if("!"==u[0]&&(u=u.slice(1),i=!i),u.endsWith(":")){r["dark:"==u?"unshift":"push"](u.slice(0,-1));continue}"-"==u[0]&&(u=u.slice(1),o=!o),u.endsWith("-")&&(u=u.slice(0,-1)),u&&"&"!=u&&(l+=(l&&"-")+u)}l&&(o&&(l="-"+l),t[0].push(Object.defineProperties({n:l,v:r.filter(D),i:i},{a:{value:[...e]},l:{value:n}})))}}function D(e,t,n){return n.indexOf(e)==t}let L=new Map;function N(e){let t=L.get(e);if(!t){let n=[],i=[[]],l=0,u=0,s=null,c=0,f=(t,r=0)=>{l!=c&&(n.push(e.slice(l,c+r)),t&&T(n,i,[l,c+r])),l=c+1};for(;c<e.length;c++){let p=e[c];if(u)"\\"!=e[c-1]&&(u+=+("["==p)||-("]"==p));else if("["==p)u+=1;else if(s)"\\"!=e[c-1]&&s.test(e.slice(c))&&(s=null,l=c+RegExp.lastMatch.length);else if("/"==p&&"\\"!=e[c-1]&&("*"==e[c+1]||"/"==e[c+1]))s="*"==e[c+1]?/^\*\//:/^[\r\n]/;else if("("==p)f(),n.push(p);else if(":"==p)":"!=e[c+1]&&f(!1,1);else if(/[\s,)]/.test(p)){f(!0);let h=n.lastIndexOf("(");if(")"==p){let d=n[h-1];if(/[~@]$/.test(d)){let y=i.shift();n.length=h,T([...n,"#"],i,[l,c]);let{v:g}=i[0].pop();for(let m of y)m.v.splice(+("dark"==m.v[0])-+("dark"==g[0]),g.length);T([...n,V(d.length>1?d.slice(0,-1)+o(JSON.stringify([d,y])):d+"("+r(y)+")",a.a,y,/@$/.test(d))],i,[l,c])}h=n.lastIndexOf("(",h-1)}n.length=h+1}else/[~@]/.test(p)&&"("==e[c+1]&&i.unshift([])}f(!0),L.set(e,t=i[0])}return t}function F(e,t,n){return t.reduce((t,r,i)=>t+n(r)+e[i+1],e[0])}function R(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?F(e,t,e=>U(e).trim()):t.filter(Boolean).reduce((e,t)=>e+U(t),e?U(e):"")}function U(e){let t,n="";if(e&&"object"==typeof e){if(Array.isArray(e))(t=R(e[0],e.slice(1)))&&(n+=" "+t);else for(let r in e)e[r]&&(n+=" "+r)}else null!=e&&"boolean"!=typeof e&&(n+=" "+e);return n}let P=_("@"),I=_("~");function _(e){return new Proxy(function(e,...n){return t("",e,n)},{get:(e,n)=>n in e?e[n]:function(e,...r){return t(n,e,r)}});function t(t,n,i){return r(N(t+e+"("+R(n,i)+")"))}}function z(e,t){return Array.isArray(e)?J(F(e,t,e=>null!=e&&"boolean"!=typeof e?e:"")):"string"==typeof e?J(e):[e]}let q=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function J(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let n=[{}],r=[n[0]],i=[];for(;t=q.exec(e);)t[4]&&(n.shift(),i.shift()),t[3]?(i.unshift(t[3]),n.unshift({}),r.push(i.reduce((e,t)=>({[t]:e}),n[0]))):t[4]||(n[0][t[1]]&&(n.unshift({}),r.push(i.reduce((e,t)=>({[t]:e}),n[0]))),n[0][t[1]]=t[2]);return r}function W(e,...t){var n,r;let i=z(e,t),l=((null==(n=i.find(e=>e.label))?void 0:n.label)||"css")+o(JSON.stringify(i));return r=(e,t)=>S(i.flatMap(n=>j(n,e,t,a.o)),l),y.set(l,r),l}let B=new Proxy(function(e,t){return G("animation",e,t)},{get:(e,t)=>t in e?e[t]:function(e,n){return G(t,e,n)}});function G(e,t,n){return{toString:()=>W({label:e,"@layer components":m({},"object"==typeof t?t:{animation:t},{animationName:""+n})})}}function Y(e,t){return"function"==typeof e?e:"string"==typeof e&&/^[\w-]+$/.test(e)?(n,r)=>({[e]:t?t(n,r):Z(n,1)}):t=>e||{[t[1]]:Z(t,2)}}function Z(e,t,n=e.slice(t).find(Boolean)||e.$$||e.input){return"-"==e.input[0]?`calc(${n} * -1)`:n}function H(e,t,n){let r="string"==typeof t?(e,r)=>({[t]:n?n(e,r):e._}):t||(({1:e,_:t},n,r)=>({[e||r]:t}));return er((t,n)=>{var i;let o=ee(e||t[1]),l=null!=(i=n.theme(o,t.$$))?i:X(t.$$,o,n);if(null!=l)return t._=Z(t,0,l),r(t,n,o)},(t,n)=>{let r=ee(e||t[1]),i=t.input.endsWith("-");if(i)return Object.entries(n.theme(r)||{}).filter(([e,t])=>e&&"DEFAULT"!=e&&(!/color|fill|stroke/i.test(r)||["string","function"].includes(typeof t))).map(([e,t])=>({suffix:e.replace(/-DEFAULT/g,""),theme:{section:r,key:e},color:/color|fill|stroke/i.test(r)&&O(t,{opacityValue:"1"})})).concat([{suffix:"["}]);let o=n.theme(r,"DEFAULT");return o?[{suffix:"",theme:{section:r,key:"DEFAULT"},color:/color|fill|stroke/i.test(r)&&O(o,{opacityValue:"1"})}]:[]})}function K(e={},t){return er((n,r)=>{let{section:i=ee(n[0]).replace("-","")+"Color"}=e;if(!/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/.test(n.$$))return;let{$1:o,$2:l}=RegExp,u=r.theme(i,o)||X(o,i,r);if(!u||"object"==typeof u)return;let{opacityVariable:s=`--tw-${n[0].replace(/-$/,"")}-opacity`,opacitySection:c=i.replace("Color","Opacity"),property:a=i,selector:f}=e,p=r.theme(c,l||"DEFAULT")||l&&X(l,c,r),h=t||(({_:e})=>{let t=Q(a,e);return f?{[f]:t}:t});n._={value:O(u,{opacityVariable:s||void 0,opacityValue:p||void 0}),color:e=>O(u,e),opacityVariable:s||void 0,opacityValue:p||void 0};let d=h(n,r);if(!n.dark){let y=r.d(i,o,u);y&&y!==u&&(n._={value:O(y,{opacityVariable:s||void 0,opacityValue:p||"1"}),color:e=>O(y,e),opacityVariable:s||void 0,opacityValue:p||void 0},d={"&":d,[r.v("dark")]:h(n,r)})}return d},(t,n)=>{let{section:r=ee(t[0]).replace("-","")+"Color",opacitySection:i=r.replace("Color","Opacity")}=e,o=t.input.endsWith("-"),l=Object.entries(n.theme(i)||{}).filter(([e,t])=>"DEFAULT"!=e&&/^[\w-]+$/.test(e)&&"string"==typeof t);if(o)return Object.entries(n.theme(r)||{}).filter(([e,t])=>e&&"DEFAULT"!=e&&["string","function"].includes(typeof t)).map(([e,t])=>({suffix:e.replace(/-DEFAULT/g,""),theme:{section:r,key:e},color:O(t,{opacityValue:n.theme(i,"DEFAULT")||"1"}),modifiers:("function"==typeof t||"string"==typeof t&&(t.includes("<alpha-value>")||"#"==t[0]&&(4==t.length||7==t.length)))&&l.map(([e,n])=>({modifier:e,theme:{section:i,key:e},color:O(t,{opacityValue:n})})).concat([{modifier:"[",color:O(t,{opacityValue:"1"})}])})).concat([{suffix:"["}]);let u=n.theme(r,"DEFAULT");return u?[{suffix:"",theme:{section:r,key:"DEFAULT"},color:O(u,{opacityValue:n.theme(i,"DEFAULT")||"1"}),modifiers:("function"==typeof u||"string"==typeof u&&(u.includes("<alpha-value>")||"#"==u[0]&&(4==u.length||7==u.length)))&&l.map(([e,t])=>({modifier:e,theme:{section:i,key:e},color:O(u,{opacityValue:t})})).concat([{modifier:"[",color:O(u,{opacityValue:"1"})}])}]:[]})}function Q(e,t){let n={};return"string"==typeof t?n[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(n[t.opacityVariable]=t.opacityValue||"1"),n[e]=t.value),n}function X(e,t,n){if("["==e[0]&&"]"==e.slice(-1)&&(e=et(E(e.slice(1,-1),n.theme)),!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e))))return e.replace(/^[a-z-]+:/,"")}function ee(e){return e.replace(/-./g,e=>e[1].toUpperCase())}function et(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(e,t="",n,r="")=>et(t)+n+et(r)):e.replace(/(^|[^\\])_+/g,(e,t)=>t+" ".repeat(e.length-t.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,e=>e.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}let en=Symbol("@twind/autocomplete");function er(e,t){if(t){if("function"==typeof e)return Object.defineProperty(e,en,{value:t,configurable:!0});let[n,r,i]=u(e);return[n,Object.defineProperty(Y(r,i),en,{value:t,configurable:!0})]}return e}function ei(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function eo(e){var{presets:t=[]}=e,n=ei(e,["presets"]);let r={preflight:!1!==n.preflight&&[],darkMode:void 0,darkColor:void 0,theme:{},variants:u(n.variants),rules:u(n.rules),ignorelist:u(n.ignorelist),hash:n.hash,stringify:n.stringify||el};for(let i of u([...t,{darkMode:n.darkMode,darkColor:n.darkColor,preflight:!1!==n.preflight&&u(n.preflight),theme:n.theme,hash:n.hash,stringify:n.stringify}])){let{preflight:o,darkMode:l=r.darkMode,darkColor:s=r.darkColor,theme:c,variants:a,rules:f,ignorelist:p,hash:h=r.hash,stringify:d=r.stringify}="function"==typeof i?i(r):i;r={preflight:!1!==r.preflight&&!1!==o&&[...r.preflight,...u(o)],darkMode:l,darkColor:s,theme:m({},r.theme,c,{extend:m({},r.theme.extend,null==c?void 0:c.extend)}),variants:[...r.variants,...u(a)],rules:[...r.rules,...u(f)],ignorelist:[...r.ignorelist,...u(p)],hash:h,stringify:d}}return r}function el(e,t){return e+":"+t}function eu(e,t,n){if("function"==typeof dispatchEvent&&"function"==typeof CustomEvent){let r=new CustomEvent("warning",{detail:{message:e,code:t,detail:n}});dispatchEvent(r),r.defaultPrevented||console.warn(`[${t}] ${e}`,{detail:n})}else console.warn(`[${t}] ${e}`,{detail:n})}function es(e,t,n,r,i,o){for(let l of t){let u=n.get(l);u||n.set(l,u=r(l));let s=u(e,i,o);if(s)return s}}function ec(e){var t;return ef(e[0],"function"==typeof(t=e[1])?t:()=>t)}function ea(e){var t,n;return Array.isArray(e)?ef(e[0],Y(e[1],e[2])):ef(e,Y(t,n))}function ef(e,t){return ep(e,(e,n,r,i)=>{let o=n.exec(e);if(o)return o.$$=e.slice(o[0].length),o.dark=i,t(o,r)})}function ep(e,t){let n=u(e).map(eh);return(e,r,i)=>{for(let o of n){let l=t(e,o,r,i);if(l)return l}}}function eh(e){return"string"==typeof e?RegExp("^"+e+(e.includes("$")||"-"==e.slice(-1)?"":"$")):e}function ed(e,t){return e.replace(/--(tw(?:-[\w-]+)?)\b/g,(e,n)=>"--"+t(n).replace("#",""))}function ey(e,t){let n=eo(e),r=function({theme:e,darkMode:t,darkColor:n,variants:r,rules:l,hash:c,stringify:a,ignorelist:f}){let p=new Map,h=new Map,d=new Map,y=new Map,g=ep(f,(e,t)=>t.test(e)),m=new Set;r.push(["dark",Array.isArray(t)||"class"==t?`${u(t)[1]||".dark"} &`:"string"==typeof t&&"media"!=t?t:"@media (prefers-color-scheme:dark)"]);let v="function"==typeof c?e=>c(e,o):c?o:s;return{theme:function(e){var{extend:t={}}=e,n=ei(e,["extend"]);let r={},i={get colors(){return o("colors")},theme:o,negative:()=>({}),breakpoints(e){let t={};for(let n in e)"string"==typeof e[n]&&(t["screen-"+n]=e[n]);return t}};return o;function o(e,i,u,s){if(e){var c;if({1:e,2:s}=/^(\S+?)(?:\s*\/\s*([^/]+))?$/.exec(e)||[,e],/[.[]/.test(e)){let a=[];e.replace(/\[([^\]]+)\]|([^.[]+)/g,(e,t,n=t)=>a.push(n)),e=a.shift(),u=i,i=a.join("-")}let f=r[e]||Object.assign(Object.assign(r[e]={},l(n,e)),l(t,e));if(null==i)return f;let p=null!=(c=f[i||"DEFAULT"])?c:u;return s?O(p,{opacityValue:E(s,o)}):p}let h={};for(let d of[...Object.keys(n),...Object.keys(t)])h[d]=o(d);return h}function l(e,t){let n=e[t];return("function"==typeof n&&(n=n(i)),n&&/color|fill|stroke/i.test(t))?function e(t,n=[]){let r={};for(let i in t){let o=t[i],l=[...n,i];r[l.join("-")]=o,"DEFAULT"==i&&(l=n,r[n.join("-")]=o),"object"==typeof o&&Object.assign(r,e(o,l))}return r}(n):n}}(e),e:i,h:v,s(e,t){return a(ed(e,v),ed(t,v),this)},d(e,t,r){return null==n?void 0:n(e,t,this,r)},v(e){return p.has(e)||p.set(e,es(e,r,h,ec,this)||"&:"+e),p.get(e)},r(e,t){let n=JSON.stringify([e,t]);if(!d.has(n)){d.set(n,!g(e,this)&&es(e,l,y,ea,this,t));{let r=d.get(n);null!=r||m.has(e)||(m.add(e),eu(`Unknown class ${JSON.stringify(e)} found.`,"TWIND_INVALID_CLASS",e))}}return d.get(n)}}}(n),l=new Map,c=[],f=new Set;function p(e){let n=e.n&&r.h(e.n),i=v(n?m({},e,{n:n}):e);if(i&&!f.has(i)){f.add(i);let o=x(c,e);t.insert(i,o,e),c.splice(o,0,e)}return n}return t.resume(e=>l.set(e,e),(e,n)=>{t.insert(e,c.length,n),c.push(n),f.add(e)}),Object.defineProperties(function(e){if(!l.size)for(let t of u(n.preflight))"function"==typeof t&&(t=t(r)),t&&("string"==typeof t?C("",a.b,N(t),r,a.b,[],!1,!0):j(t,{},r,a.b)).forEach(p);e=""+e;let i=l.get(e);if(!i){let o=new Set;for(let s of M(N(e),r))o.add(s.c).add(p(s));i=[...o].filter(Boolean).join(" "),l.set(e,i).set(i,i)}return i},Object.getOwnPropertyDescriptors({get target(){return t.target},theme:r.theme,config:n,snapshot(){let e=t.snapshot(),n=new Set(f),r=new Map(l),i=[...c];return()=>{e(),f=n,l=r,c=i}},clear(){t.clear(),f=new Set,l=new Map,c=[]},destroy(){this.clear(),t.destroy()}}))}function eg(e,t){return e!=t&&""+e.split(" ").sort()!=""+t.split(" ").sort()}function em(e=eO,t=document.documentElement){if(!t)return e;let n=new MutationObserver(i);n.observe(t,{attributeFilter:["class"],subtree:!0,childList:!0}),o(t),i([{target:t,type:""}]);let{destroy:r}=e;return e.destroy=()=>{n.disconnect(),r.call(e)},e;function i(e){for(let{type:t,target:r}of e)if("a"==t[0])o(r);else for(let i of r.querySelectorAll("[class]"))o(i);n.takeRecords()}function o(t){let n;let r=t.getAttribute("class");r&&eg(r,n=e(r))&&t.setAttribute("class",n)}}function ev(e){let t=document.querySelector(e||"style[data-twind]");return t&&"STYLE"==t.tagName||((t=document.createElement("style")).dataset.twind="",document.head.prepend(t)),t}function eb(e){let t=(null==e?void 0:e.cssRules)?e:(e&&"string"!=typeof e?e:ev(e)).sheet;return{target:t,snapshot(){let e=Array.from(t.cssRules,e=>e.cssText);return()=>{this.clear(),e.forEach(this.insert)}},clear(){for(let e=t.cssRules.length;e--;)t.deleteRule(e)},destroy(){var e;null==(e=t.ownerNode)||e.remove()},insert(e,n){try{t.insertRule(e,n)}catch(r){t.insertRule(":root{}",n),/:-[mwo]/.test(e)||eu(r.message,"TWIND_INVALID_CSS",e)}},resume:c}}function e$(e){let t=e&&"string"!=typeof e?e:ev(e);return{target:t,snapshot(){let e=Array.from(t.childNodes,e=>e.textContent);return()=>{this.clear(),e.forEach(this.insert)}},clear(){t.textContent=""},destroy(){t.remove()},insert(e,n){t.insertBefore(document.createTextNode(e),t.childNodes[n]||null)},resume:c}}function ew(e,t){let n=e?e$():eb();return t||(n.resume=eA),n}function ex(e){return(e.ownerNode||e).textContent||(e.cssRules?Array.from(e.cssRules,e=>e.cssText):u(e)).join("")}function eA(e,t){let n=ex(this.target),r=/\/\*!([\da-z]+),([\da-z]+)(?:,(.+?))?\*\//g;if(r.test(n)){var i;let o;for(let l of(r.lastIndex=0,this.clear(),document.querySelectorAll("[class]")))e(l.getAttribute("class"));for(;i=r.exec(n),o&&t(n.slice(o.index+o[0].length,null==i?void 0:i.index),{p:parseInt(o[1],36),o:parseInt(o[2],36)/2,n:o[3]}),o=i;);}}function ek(){if(!t)throw Error("No active twind instance found. Make sure to call setup or install before accessing tw.")}let eO=new Proxy(c,{apply:(e,n,r)=>(ek(),t(r[0])),get(e,n){ek();let r=t[n];return"function"==typeof r?function(){return ek(),r.apply(t,arguments)}:r}});function ej(e={},n=ew,r){return null==t||t.destroy(),t=em(ey(e,"function"==typeof n?n():n),r)}let eE=function e(t){return new Proxy(function(e,...n){return eS(t,"",e,n)},{get:(n,r)=>"bind"===r?e:r in n?n[r]:function(e,...n){return eS(t,r,e,n)}})}();function eS(e,t,n,r){return{toString(){let l=z(n,r),u=i(t+o(JSON.stringify([t,l])));return("function"==typeof e?e:eO)(W({[`@keyframes ${u}`]:z(n,r)})),u}}}function eM(e,t=eO){let n=t.snapshot(),r={html:eC(e,t),css:ex(t.target)};return n(),r}function eC(e,t=eO){let n="",r=0;return!function(e,t){let n=1,r=0,i="",o="",l=l=>{5==n&&"class"==o&&!1===t(r,l,i)&&(e="")};for(let u=0;u<e.length;u++){let s=e[u];1==n?"<"==s&&(n="!--"==e.substr(u+1,3)?4:3):4==n?">"==s&&"--"==e.slice(u-2,u)&&(n=1):i?s==i&&"\\"!=e[u-1]&&(l(u),n=2,i=""):'"'==s||"'"==s?(i=s,r+=1):">"==s?(l(u),n=1):n&&("="==s?(o=e.slice(r,u),n=5,r=u+1):"/"==s&&(n<5||">"==e[u+1])?(l(u),n=0):/\s/.test(s)&&(l(u),n=2,r=u+1))}}(e,(i,o,l)=>{var u;let s=e.slice(i,o),c=t(('"'==(u=l)?s.replace(/(=|\[)(?:&#39;|&apos;|&#x27;)|(?:&#39;|&apos;|&#x27;)(])/g,"$1'$2"):"'"==u?s.replace(/(=|\[)(?:&#34;|&quot;|&#x22;)|(?:&#34;|&quot;|&#x22;)(])/g,'$1"$2'):s).replace(/(&#38;|&amp;|&#x26;)/g,"&"));eg(s,c)&&(l=l?"":'"',n+=e.slice(r,i)+l+c+l,r=o)}),n+e.slice(r,e.length)}let eV=(e,t)=>"function"==typeof e?eT(t,e):eT(e);function eT(e={},t){let{label:n="style",base:r,props:l={},defaults:u,when:s=[]}=e,c=m({},null==t?void 0:t.defaults,u),f=o(JSON.stringify([n,null==t?void 0:t.className,r,l,c,s])),p=h("",r||"",a.c);function h(e,r,i){return V(((t?t.className.replace(/#.+$/,"~"):"")+n+e+f).replace(/[: ,()[\]]/,""),i,r&&N(r))}return Object.defineProperties(function(e){let n,r;Array.isArray(e)&&(n=!0,e=Object.fromEntries(new URLSearchParams(e[1]).entries()));let i=m({},c,e),o=n?"":(t?t(i)+" ":"")+p;for(let u in l){let a=l[u],f=i[u];if(f===Object(f)){let d="";for(let y in r="",f){let g=a[f[y]];g&&(d+="@"+y+"-"+f[y],r+=(r&&" ")+("_"==y?g:y+":("+g+")"))}r&&(o+=" "+h("--"+u+"-"+d,r,402653184))}else(r=a[f])&&(o+=" "+h("--"+u+"-"+f,r,402653184))}return s.forEach((e,t)=>{let n="";for(let l in e[0]){let u=i[l];if(u!==Object(u)&&""+u==""+e[0][l])n+=(n&&"_")+l+"-"+u;else{n="";break}}n&&(r=e[1])&&(o+=" "+h("-"+t+"--"+n,r,536870912))}),o},Object.getOwnPropertyDescriptors({className:p,defaults:c,selector:"."+i(p)}))}return e.animation=B,e.apply=P,e.arbitrary=X,e.asArray=u,e.auto=function(e){if(document.currentScript){let t=()=>n.disconnect(),n=new MutationObserver(n=>{for(let{target:r}of n)if(r===document.body)return e(),t()});return n.observe(document.documentElement,{childList:!0,subtree:!0}),t}return c},e.autoDarkColor=function(e,t,{theme:n}){return n(e,t=t.replace(/\d+$/,e=>100*(9-~~(parseInt(e,10)/100)||.5)))},e.colorFromTheme=K,e.consume=eC,e.css=W,e.cssom=eb,e.cx=function(e,...t){return r(N(R(e,t))," ")},e.defineConfig=eo,e.dom=e$,e.escape=i,e.extract=eM,e.fromMatch=Y,e.fromTheme=H,e.getAutocompleteProvider=function(e){return e[en]},e.getSheet=ew,e.hash=o,e.identity=s,e.injectGlobal=function(e,...t){("function"==typeof this?this:eO)(W({"@layer base":z(e,t)}))},e.inline=function(e,t={}){let{tw:n=eO,minify:r=s}="function"==typeof t?{tw:t}:t,{html:i,css:o}=eM(e,n);return i.replace("</head>",`<style data-twind>${r(o,i)}</style></head>`)},e.install=function(e,t=!1){var n;let r=eo(e);return ej(m({},r,{hash:null!=(n=r.hash)?n:t}),()=>ew(!t))},e.keyframes=eE,e.match=function(e,t,n){return[e,Y(t,n)]},e.matchColor=function(e,t={},n){return[e,K(t,n)]},e.matchTheme=function(e,t,n,r){return[e,H(t,n,r)]},e.mql=l,e.noop=c,e.normalize=et,e.observe=em,e.parse=N,e.setup=ej,e.shortcut=I,e.stringify=ex,e.style=eV,e.toCSS=Q,e.toColorValue=O,e.tw=eO,e.twind=ey,e.tx=function(e,...t){return("function"==typeof this?this:eO)(R(e,t))},e.virtual=function(e){let t=[];return{target:t,snapshot(){let e=[...t];return()=>{t.splice(0,t.length,...e)}},clear(){t.length=0},destroy(){this.clear()},insert(n,r,i){t.splice(r,0,e?`/*!${i.p.toString(36)},${(2*i.o).toString(36)}${i.n?","+i.n:""}*/${n}`:n)},resume:c}},e.withAutocomplete=er,e}({});//# sourceMappingURL=twind.global.dev.js.map

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc