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 to 1.0.1-next-20221118224314

25

CHANGELOG.md
# twind
## 1.0.1-next-20221118224314
### Patch Changes
- introduce new @twind/core package to prevent issue with existing code that imports from CDNs without a version ([`97805f45`](https://github.com/tw-in-js/twind/commit/97805f4584ef70a527beacc1ca6c622e0f17885b))
- Updated dependencies [[`97805f45`](https://github.com/tw-in-js/twind/commit/97805f4584ef70a527beacc1ca6c622e0f17885b), [`5949d61a`](https://github.com/tw-in-js/twind/commit/5949d61adeb3008c7b76f5ddb9453c000849fcb9)]:
- @twind/core@1.0.1-next-20221118224314
## 1.0.0

@@ -162,3 +171,3 @@

```js
import { inline } from 'twind'
import { inline } from '@twind/core'

@@ -173,3 +182,3 @@ function render() {

```js
import { tw, stringify } from 'twind'
import { tw, stringify } from '@twind/core'

@@ -219,3 +228,3 @@ function render() {

```ts
import { autoDarkColor } from 'twind'
import { autoDarkColor } from '@twind/core'

@@ -296,3 +305,3 @@ defineConfig({

```js
import { animation, keyframes } from 'twind'
import { animation, keyframes } from '@twind/core'

@@ -329,3 +338,3 @@ const fadeIn = animation(

```js
import { setup } from 'twind'
import { setup } from '@twind/core'
import config from './twind.config'

@@ -340,3 +349,3 @@

```js
import { setup, getSheet } from 'twind'
import { setup, getSheet } from '@twind/core'
import config from './twind.config'

@@ -350,3 +359,3 @@

```js
import { twind, getSheet } from 'twind'
import { twind, getSheet } from '@twind/core'
import config from './twind.config'

@@ -360,3 +369,3 @@

```js
import { inline, extract } from 'twind'
import { inline, extract } from '@twind/core'

@@ -363,0 +372,0 @@ // 1. using inline

{
"name": "twind",
"version": "1.0.0",
"description": "The core engine without any presets.",
"version": "1.0.1-next-20221118224314",
"description": "Proxy package for @twind/core",
"type": "module",

@@ -73,3 +73,3 @@ "homepage": "https://twind.style",

"dependencies": {
"csstype": "^3.1.1",
"@twind/core": "1.0.1-next-20221118224314",
"@swc/helpers": "^0.4.11"

@@ -76,0 +76,0 @@ },

# twind [![MIT License](https://flat.badgen.net/github/license/tw-in-js/twind)](https://github.com/tw-in-js/twind/blob/main/LICENSE) [![Latest Release](https://flat.badgen.net/npm/v/twind?icon=npm&label&cache=10800&color=blue)](https://www.npmjs.com/package/twind) [![Github](https://flat.badgen.net/badge/icon/tw-in-js%2Ftwind%23twind?icon=github&label)](https://github.com/tw-in-js/twind/tree/main/packages/twind)
---
**Deprecated** Use [@twind/core](https://www.npmjs.com/package/@twind/core) instead.
---
Utility-first CSS without any build step right in the browser or any other environment like Node.js, deno, workers, ...

@@ -4,0 +10,0 @@

@@ -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 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
export*from"@twind/core";//# sourceMappingURL=twind.browser.dev.js.map

@@ -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>=S(e[i],t)?n=i+1:r=i}return r}function S(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 O(e,t){return Math.round(parseInt(e,16)*t)}function M(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(${[O(e.substr(1,o),l),O(e.substr(1+o,o),l),O(e.substr(1+2*o,o),l),i]})`}return"1"==i?e:"0"==i?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${i})`)}function C(e,t,{theme:n}){return n(e,t=t.replace(/\d+$/,e=>100*(9-~~(parseInt(e,10)/100)||.5)))}function E(e,t,n,r,i=[]){return R(e,y(t,n,r,i),n)}function R(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(...T(t,n,q(""+b),s,n,r,u,!0));continue}if("l"==m[1]){for(let v of l(b))f.push(...R(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:R(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:R(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,N(""+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(...R(b,{n:t,p:w,r:[...r,m],i:u},s))}else f.push(...R(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(S)}function N(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)?M(l):""+l})}function V(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 z(e,t,n=c.u,r,i){let o=[];for(let l of e)for(let u of P(l,t,n,r,i))o.splice(j(o,u),0,u);return o}function P(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),V(z(q(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)})):E(s,e,n,r,i):[{c:t(e),p:0,o:0,r:[]}]}function T(e,t,n,r,i,o,l,u){return V((u?n.flatMap(e=>z([e],r,i,o,l)):z(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 F(e,t,n,r){return b(e,(e,i)=>{let{n:o,p:l,r:u,i:s}=y(e,i,t);return n&&T(o,t,n,i,l,u,s,r)})}function _(e,t){if("("!=e[e.length-1]){let n=[],r=!1,i=!1,o="";for(let l of e)if(!("("==l||/[~@]$/.test(l))){if("!"==l[0]&&(l=l.slice(1),r=!r),l.endsWith(":")){n["dark:"==l?"unshift":"push"](l.slice(0,-1));continue}"-"==l[0]&&(l=l.slice(1),i=!i),l.endsWith("-")&&(l=l.slice(0,-1)),l&&"&"!=l&&(o+=(o&&"-")+l)}o&&(i&&(o="-"+o),t[0].push({n:o,v:n.filter(I),i:r}))}}function I(e,t,n){return n.indexOf(e)==t}let L=new Map;function q(e){let t=L.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&&_(r,o)),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,_([...r,"#"],o);let{v:y}=o[0].pop();for(let m of g)m.v.splice(+("dark"==m.v[0])-+("dark"==y[0]),y.length);_([...r,F(d.length>1?d.slice(0,-1)+i(JSON.stringify([d,g])):d+"("+n(g)+")",c.a,g,/@$/.test(d))],o)}h=r.lastIndexOf("(",h-1)}r.length=h+1}else/[~@]/.test(p)&&"("==e[a+1]&&o.unshift([])}f(!0),L.set(e,t=o[0])}return t}function D(e,t,n){return t.reduce((t,r,i)=>t+n(r)+e[i+1],e[0])}function J(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?D(e,t,e=>B(e).trim()):t.filter(Boolean).reduce((e,t)=>e+B(t),e?B(e):"")}function B(e){let t,n="";if(e&&"object"==typeof e){if(Array.isArray(e))(t=J(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 U=G("@"),W=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(q(t+e+"("+J(r,i)+")"))}}function Y(e,t){return Array.isArray(e)?H(D(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)=>V(r.flatMap(n=>E(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}})}}let et=Symbol();function en(e){return e}function er(e){return e[et]}function ei(e,...t){return n(q(J(e,t))," ")}function eo({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||el};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 el(e,t){return e+":"+t}function eu({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?M(p,{opacityValue:N(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))?es(n):n}}function es(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,es(i,o))}return n}function ec(e){return e}function ea(e,t,n){return[e,ef(t,n)]}function ef(e,t){return"function"==typeof e?e:"string"==typeof e&&/^[\w-]+$/.test(e)?(n,r)=>({[e]:t?t(n,r):ep(n,1)}):t=>e||{[t[1]]:ep(t,2)}}function ep(e,t,n=e.slice(t).find(Boolean)||e.$$||e.input){return"-"==e.input[0]?`calc(${n} * -1)`:n}function eh(e,t,n,r){return[e,ed(t,n,r)]}function ed(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 ec((t,n)=>{var i;let o=ev(e||t[1]),l=null!=(i=n.theme(o,t.$$))?i:eb(t.$$,o,n);if(null!=l)return t._=ep(t,0,l),r(t,n,o)})}function eg(e,t={},n){return[e,ey(t,n)]}function ey(e={},t){return ec((n,r)=>{let{section:i=ev(n[0]).replace("-","")+"Color"}=e;if(!/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/.test(n.$$))return;let{$1:o,$2:l}=RegExp,u=r.theme(i,o)||eb(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&&eb(l,c,r),h=t||(({_:e})=>{let t=em(a,e);return f?{[f]:t}:t});n._={value:M(u,{opacityVariable:s||void 0,opacityValue:p||void 0}),color:e=>M(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:M(g,{opacityVariable:s||void 0,opacityValue:p||"1"}),color:e=>M(g,e),opacityVariable:s||void 0,opacityValue:p||void 0},d={"&":d,[r.v("dark")]:h(n,r)})}return d})}function em(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 eb(e,t,n){if("["==e[0]&&"]"==e.slice(-1)&&(e=e$(N(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 ev(e){return e.replace(/-./g,e=>e[1].toUpperCase())}function e$(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(e,t="",n,r="")=>e$(t)+n+e$(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 "))}function ew({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));o.push(["dark",Array.isArray(t)||"class"==t?`${l(t)[1]||".dark"} &`:"string"==typeof t&&"media"!=t?t:"@media (prefers-color-scheme:dark)"]);let m="function"==typeof c?e=>c(e,i):c?i:u;return{theme:eu(e),e:r,h:m,s(e,t){return a(eE(e,m),eE(t,m),this)},d(e,t,r){return null==n?void 0:n(e,t,this,r)},v(e){return p.has(e)||p.set(e,ex(e,o,h,eA,this)||"&:"+e),p.get(e)},r(e,t){let n=JSON.stringify([e,t]);return d.has(n)||d.set(n,!y(e,this)&&ex(e,s,g,ek,this,t)),d.get(n)}}}function ex(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 eA(e){return ej(e[0],e[1])}function ek(e){return Array.isArray(e)?eS(e[0],e[1],e[2]):eS(e)}function ej(e,t){return eO(e,"function"==typeof t?t:()=>t)}function eS(e,t,n){return eO(e,ef(t,n))}function eO(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 eE(e,t){return e.replace(/--(tw(?:-[\w-]+)?)\b/g,(e,n)=>"--"+t(n).replace("#",""))}function eR(e,t){let n=eo(e),r=ew(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?T("",c.b,q(t),r,c.b,[],!1,!0):E(t,{},r,c.b)).forEach(s);e=""+e;let o=i.get(e);if(!o){let u=new Set;for(let a of z(q(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 eN(e,t){return e!=t&&""+e.split(" ").sort()!=""+t.split(" ").sort()}function eV(e=eD,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&&eN(r,n=e(r))&&t.setAttribute("class",n)}}function ez(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 eP(e){let t=(null==e?void 0:e.cssRules)?e:(e&&"string"!=typeof e?e:ez(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)}},resume:s}}function eT(e){let t=e&&"string"!=typeof e?e:ez(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 eF(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 e_(e,t){let n=e?eT():eP();return t||(n.resume=eL),n}function eI(e){return(e.ownerNode||e).textContent||(e.cssRules?Array.from(e.cssRules,e=>e.cssText):l(e)).join("")}function eL(e,t){let n=eI(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 eq(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}let eD=new Proxy(s,{apply:(t,n,r)=>e(r[0]),get(t,n){let r=e[n];return"function"==typeof r?function(){return r.apply(e,arguments)}:r}});function eJ(t={},n=e_,r){return null==e||e.destroy(),e=eV(eR(t,"function"==typeof n?n():n),r)}let eB=function(e,...t){("function"==typeof this?this:eD)(Q({"@layer base":Y(e,t)}))};function eU(e,t=!0){var n;let r=eo(e);return eJ({...r,hash:null!=(n=r.hash)?n:t},()=>e_(!t))}let eW=eG();function eG(e){return new Proxy(function(t,...n){return eY(e,"",t,n)},{get:(t,n)=>"bind"===n?eG:n in t?t[n]:function(t,...r){return eY(e,n,t,r)}})}function eY(e,t,n,o){return{toString(){let l=Y(n,o),u=r(t+i(JSON.stringify([t,l])));return("function"==typeof e?e:eD)(Q({[`@keyframes ${u}`]:Y(n,o)})),u}}}let eZ=0,eH=1,eK=2,eQ=3,eX=4,e0=5;function e1(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 e2(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 e3(e,t={}){let{tw:n=eD,minify:r=u}="function"==typeof t?{tw:t}:t,{html:i,css:o}=e4(e,n);return i.replace("</head>",`<style data-twind>${r(o,i)}</style></head>`)}function e4(e,t=eD){let n=t.snapshot(),r={html:e6(e,t),css:eI(t.target)};return n(),r}function e6(e,t=eD){let n="",r=0;return e1(e,(i,o,l)=>{let u=e.slice(i,o),s=t(e2(u,l));eN(u,s)&&(l=l?"":'"',n+=e.slice(r,i)+l+s+l,r=o)}),n+e.slice(r,e.length)}let e5=(e,t)=>"function"==typeof e?e7(t,e):e7(e);function e7(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 F(((t?t.className.replace(/#.+$/,"~"):"")+n+e+f).replace(/[: ,()[\]]/,""),i,r&&q(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 e8=function(e,...t){return("function"==typeof this?this:eD)(J(e,t))};export{X as animation,U as apply,eb as arbitrary,l as asArray,eq as auto,C as autoDarkColor,ey as colorFromTheme,e6 as consume,Q as css,eP as cssom,ei as cx,eo as defineConfig,eT as dom,r as escape,e4 as extract,ef as fromMatch,ed as fromTheme,er as getAutocompleteProvider,e_ as getSheet,i as hash,u as identity,eB as injectGlobal,e3 as inline,eU as install,eW as keyframes,ea as match,eg as matchColor,eh as matchTheme,o as mql,s as noop,e$ as normalize,eV as observe,q as parse,eJ as setup,W as shortcut,eI as stringify,e5 as style,em as toCSS,M as toColorValue,eD as tw,eR as twind,e8 as tx,eF as virtual,en as withAutocomplete};//# sourceMappingURL=twind.browser.js.map
export*from"@twind/core";//# sourceMappingURL=twind.browser.js.map

@@ -1,1087 +0,2 @@

import * as CSS$1 from 'csstype';
declare type Falsey = false | null | undefined | void | '';
declare type MaybeArray<T> = T | T[];
declare type MaybeThunk<T, Theme extends BaseTheme = BaseTheme> = T | ((context: Context<Theme>) => T);
declare type TypedAtRulesKeys = `@layer ${'defaults' | 'base' | 'components' | 'shortcuts' | 'utilities' | 'overrides'}` | `@media screen(${string})` | `@media ${string}` | `@keyframes ${string}`;
declare type TypedAtRules = {
[key in TypedAtRulesKeys]?: key extends `@layer ${string}` ? MaybeArray<CSSBase> : CSSBase;
};
interface BaseProperties extends TypedAtRules {
'@import'?: MaybeArray<string | Falsey>;
'@font-face'?: MaybeArray<CSSFontFace>;
}
interface CustomProperties {
label?: string;
'@apply'?: MaybeArray<string> | Falsey;
}
declare type CSSProperties = CSS$1.PropertiesFallback<string | Falsey, string | Falsey> & CSS$1.PropertiesHyphenFallback<string | Falsey, string | Falsey> & Partial<CustomProperties>;
declare type CSSFontFace = CSS$1.AtRule.FontFaceFallback & CSS$1.AtRule.FontFaceHyphenFallback;
interface CSSNested extends Record<string, CSSProperties | MaybeArray<CSSObject | string> | Falsey> {
}
declare type CSSBase = BaseProperties & CSSNested;
declare type CSSObject = CSSProperties & CSSBase;
declare type CSSValue = string | number | bigint | Falsey | StringLike;
declare type StringLike = {
toString(): string;
} & string;
declare type Preflight = CSSBase | string;
interface TwindRule {
/** The calculated precedence taking all variants into account. */
p: number;
o: number;
/** Additional classNames to propagate, does not include name */
c?: string;
/** The rulesets (selectors and at-rules). expanded variants `@media ...`, `@supports ...`, `&:focus`, `.dark &` */
r: string[];
/** The name to use for `&` expansion in selectors. Maybe empty for at-rules like `@import`, `@font-face`, `@media`, ... */
n?: string;
/** The stringified declarations. */
d?: string;
}
declare type RestoreSnapshot = () => void;
interface Twind<Theme extends BaseTheme = BaseTheme, Target = unknown> {
(tokens: StringLike): string;
readonly target: Target;
readonly theme: ThemeFunction<ExtractUserTheme<Theme>>;
readonly config: TwindConfig<Theme>;
snapshot(): RestoreSnapshot;
/** Clears all CSS rules from the sheet. */
clear(): void;
destroy(): void;
}
interface Context<Theme extends BaseTheme = BaseTheme> {
/** Allows to resolve theme values. */
theme: ThemeFunction<Theme>;
/** escapes given string for use in a CSS selector or variable */
e: (value: string) => string;
/** create hash of given string — may be no-op eg returning the same input */
h: (value: string) => string;
/**
* returns the dark color
*
* @private
*/
d(section: string, key: string, color: ColorValue): ColorValue | Falsey;
/**
* resolves a variant
*
* @private
*/
v: (value: string) => MaybeArray<string>;
/**
* resolves a rule
*
* @private
*/
r: (value: string, isDark?: boolean) => RuleResult;
/**
* stringifies a CSS property and value to a declaration
*
* @private
*/
s: (property: string, value: string) => string;
}
declare type ThemeValue<T> = T extends Record<string, infer V> ? Exclude<V, Record<string, V>> : T;
declare type KebabCase<S> = S extends `${infer C}${infer T}` ? KebabCase<T> extends infer U ? U extends string ? T extends Uncapitalize<T> ? `${Uncapitalize<C>}${U}` : `${Uncapitalize<C>}-${U}` : never : never : S;
interface ThemeFunction<Theme extends BaseTheme = BaseTheme> {
(): Theme;
<Section extends keyof Theme & string>(section: Section | KebabCase<Section>): Theme[Section];
<Section extends keyof Theme & string, Key extends keyof Theme[Section]>(section: Section | KebabCase<Section>, key: Key): ThemeValue<Theme[Section]> | undefined;
<Section extends keyof Theme & string>(section: Section | KebabCase<Section>, key: string): ThemeValue<Theme[Section]> | undefined;
<Section extends keyof Theme & string, Key extends keyof Theme[Section]>(section: Section | KebabCase<Section>, key: Key, defaultValue: ThemeValue<Theme[Section]>): ThemeValue<Theme[Section]>;
<Section extends keyof Theme & string>(section: Section | KebabCase<Section>, key: string, defaultValue: ThemeValue<Theme[Section]>): ThemeValue<Theme[Section]>;
<Section extends keyof Theme & string>(key: `${Section}.${string}`): ThemeValue<Theme[Section]>;
<Section extends keyof Theme & string>(key: `${Section}.${string}`, defaultValue: ThemeValue<Theme[Section]>): ThemeValue<Theme[Section]>;
(section: string): unknown | undefined;
(section: string, key: string): unknown | string | undefined;
<T>(section: string, key: string, defaultValue: T): T | string;
<T>(key: string, defaultValue: T): T | string;
}
declare type RuleResult = string | CSSObject | Falsey | Partial<TwindRule>[];
declare type RuleResolver<Theme extends BaseTheme = BaseTheme, Match extends MatchResult = MatchResult> = (match: Match, context: Context<Theme>) => RuleResult;
declare type Rule<Theme extends BaseTheme = BaseTheme> = string | RegExp | [pattern: MaybeArray<string | RegExp>, alias: string & {}] | [pattern: MaybeArray<string | RegExp>, css: CSSObject] | [pattern: MaybeArray<string | RegExp>, resolve: RuleResolver<Theme>] | [pattern: MaybeArray<string | RegExp>, property: keyof CSSProperties] | [
pattern: MaybeArray<string | RegExp>,
property: keyof CSSProperties,
convert: MatchConverter<Theme>
];
declare type VariantResult = MaybeArray<string> | Falsey;
declare type VariantResolver<Theme extends BaseTheme = BaseTheme> = (match: MatchResult, context: Context<Theme>) => VariantResult;
declare type Variant<Theme extends BaseTheme = BaseTheme> = [
condition: MaybeArray<string | RegExp>,
resolve: string | VariantResolver<Theme>
];
declare type MatchResult = RegExpExecArray & {
/** The substring following the most recent match */
$$: string;
/** Can be used to propagate a value like a theme value */
dark?: boolean;
};
interface SheetRule {
/** The calculated precedence taking all variants into account. */
p: number;
o: number;
/** The name to use for `&` expansion in selectors. Maybe empty for at-rules like `@import`, `@font-face`, `@media`, ... */
n?: string | null;
}
interface Sheet<Target = unknown> {
readonly target: Target;
insert(cssText: string, index: number, rule: SheetRule): void;
snapshot(): RestoreSnapshot;
/** Clears all CSS rules from the sheet. */
clear(): void;
destroy(): void;
resume(addClassName: (className: string) => void, insert: (cssText: string, rule: SheetRule) => void): void;
}
declare type StringifyDeclaration<Theme extends BaseTheme = BaseTheme> = (property: string, value: string, context: Context<Theme>) => string;
declare type PreflightThunk<Theme extends BaseTheme = BaseTheme> = (context: Context<Theme>) => Preflight | Falsey;
declare type HashFunction = (value: string, defaultHash: (value: string) => string) => string;
declare type DarkModeConfig = 'media' | 'class' | (string & {}) | boolean | undefined | [mode: 'class', selector: string];
/**
* Allows to return a dark color for the given light color.
*
* ```js
* {
* // 50 -> 900, 100 -> 800, ..., 800 -> 100, 900 -> 50
* darkColor: autoDarkColor
* // custom resolvers
* darkColor: (section, key, { theme }) => theme(`${section}.${key}-dark`) as ColorValue
* darkColor: (section, key, { theme }) => theme(`dark.${section}.${key}`) as ColorValue
* darkColor: (section, key, { theme }) => theme(`${section}.dark.${key}`) as ColorValue
* darkColor: (section, key, context, lightColor) => generateDarkColor(lightColor),
* }
* ```
*
* Or use the light color to generate a dark color
*
* ```js
* {
* darkColor: (section, key, context, color) => generateDark(color)
* }
* ```
* @param section the theme section
* @param key the theme key within section — maybe an arbitrary value `[...]`
* @param context the context
* @param color the current color
* @returns the dark color to use
*/
declare type DarkColor<Theme extends BaseTheme> = (section: string, key: string, context: Context<Theme>, color: ColorValue) => ColorValue | Falsey;
interface TwindConfig<Theme extends BaseTheme = BaseTheme> {
/** Allows to change how the `dark` variant is used (default: `"media"`) */
darkMode?: DarkModeConfig;
darkColor?: DarkColor<Theme>;
theme: ThemeConfig<Theme>;
preflight: false | MaybeThunk<Preflight | Falsey, Theme>[];
variants: Variant<Theme>[];
rules: Rule<Theme>[];
hash?: boolean | undefined | HashFunction;
stringify: StringifyDeclaration<Theme>;
ignorelist: (string | RegExp)[];
}
declare type ArrayType<T> = T extends (infer Item)[] ? Item : T;
declare type ExtractTheme<T> = T extends Preset<infer Theme> ? Theme : T;
declare type ExtractUserTheme<T> = {
[key in keyof T]: key extends 'extend' ? never : T[key] extends ThemeSectionResolver<infer Value, T & BaseTheme> ? Value : T[key];
} & BaseTheme;
/** @experimental */
declare type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
declare type ExtractThemes<Theme, Presets extends Preset<any>[]> = UnionToIntersection<ExtractTheme<ExtractUserTheme<Theme> | BaseTheme | ArrayType<Presets>>>;
interface TwindPresetConfig<Theme = BaseTheme> {
/** Allows to change how the `dark` variant is used (default: `"media"`) */
darkMode?: DarkModeConfig;
darkColor?: DarkColor<Theme & BaseTheme>;
theme?: ThemeConfig<Theme & BaseTheme>;
preflight?: false | MaybeArray<Preflight | PreflightThunk<Theme & BaseTheme>>;
variants?: Variant<Theme & BaseTheme>[];
rules?: Rule<Theme & BaseTheme>[];
hash?: boolean | undefined | HashFunction;
stringify?: StringifyDeclaration<Theme & BaseTheme>;
ignorelist?: MaybeArray<string | RegExp>;
}
interface TwindUserConfig<Theme = BaseTheme, Presets extends Preset<any>[] = Preset[]> {
presets?: Presets;
/** Allows to change how the `dark` variant is used (default: `"media"`) */
darkMode?: DarkModeConfig;
darkColor?: DarkColor<BaseTheme & ExtractThemes<Theme, Presets>>;
theme?: Theme | ThemeConfig<BaseTheme & ExtractThemes<Theme, Presets>>;
preflight?: false | MaybeArray<Preflight | PreflightThunk<BaseTheme & ExtractThemes<Theme, Presets>>>;
variants?: Variant<BaseTheme & ExtractThemes<Theme, Presets>>[];
rules?: Rule<BaseTheme & ExtractThemes<Theme, Presets>>[];
/**
* Enables hashing of all classes (default: `false`).
*
* If a function is given it can be used to hash only certain classes:
*
* ```js
* {
* hash(className, defaultHash) {
* if (/^[~@]\(/.test(className)) {
* // a shortcut like `~(...)` or apply like `@(...)`
* return defaultHash(className)
* }
* return className
* }
* }
*```
*/
hash?: boolean | undefined | HashFunction;
stringify?: StringifyDeclaration<BaseTheme & ExtractThemes<Theme, Presets>>;
ignorelist?: MaybeArray<string | RegExp>;
}
interface BaseTheme {
screens: Record<string, MaybeArray<ScreenValue>>;
colors: Record<string, MaybeColorValue>;
}
declare type ScreenValue = string | {
raw: string;
} | {
min: string;
max?: string;
} | {
min?: string;
max: string;
};
interface ColorFunctionOptions {
opacityVariable?: string | undefined;
opacityValue?: string | undefined;
}
declare type ColorFunction = (options: ColorFunctionOptions) => string;
interface ColorRecord extends Record<string, MaybeColorValue> {
}
declare type ColorValue = string | ColorFunction;
declare type MaybeColorValue = ColorValue | ColorRecord;
interface ThemeSectionResolverContext<Theme extends BaseTheme = BaseTheme> {
readonly colors: Theme['colors'];
readonly theme: ThemeFunction<Theme>;
/**
* No-op function as negated values are automatically infered and do _not_ need to be in the theme.
*/
readonly negative: (scale: Record<string, string>) => Record<string, string>;
readonly breakpoints: (screens: Record<string, MaybeArray<ScreenValue>>) => Record<string, string>;
}
interface ThemeSectionResolver<Value, Theme extends BaseTheme = BaseTheme> {
(context: ThemeSectionResolverContext<Theme>): Value;
}
declare type ThemeSection<Value, Theme extends BaseTheme = BaseTheme> = Value | ThemeSectionResolver<Value, Theme>;
declare type PartialTheme<Theme extends BaseTheme = BaseTheme> = {
[Section in keyof Theme]?: ThemeSection<Theme[Section], Theme>;
};
declare type ThemeConfig<Theme extends BaseTheme = BaseTheme> = PartialTheme<Theme> & {
extend?: PartialTheme<Theme>;
};
declare type MatchConverter<Theme extends BaseTheme = BaseTheme, Match extends MatchResult = MatchResult> = (match: Match, context: Context<Theme>) => string;
interface PresetThunk<Theme = BaseTheme> {
(config: TwindConfig<Theme & BaseTheme>): TwindPresetConfig<Theme>;
}
declare type Preset<Theme = BaseTheme> = TwindPresetConfig<Theme> | PresetThunk<Theme>;
interface ClassObject {
[key: string]: boolean | number | unknown;
}
declare type Class = string | number | boolean | Falsey | ClassObject | Class[];
declare type NestedFunction = (strings: TemplateStringsArray | Class, ...interpolations: Class[]) => string;
declare type Nested = NestedFunction & {
[label: string]: NestedFunction;
};
/**
* @group Class Name Generators
*/
declare const apply: Nested;
/**
* @group Class Name Generators
*/
declare const shortcut: Nested;
interface AnimationFunction {
(animation: string | CSSProperties, waypoints: StringLike): StringLike;
}
declare type Animation = AnimationFunction & {
[label: string]: AnimationFunction;
};
/**
* @group Class Name Generators
*/
declare const animation: Animation;
declare type AutocompleteItem = {
prefix?: string;
suffix: string;
theme?: {
section: string;
key: string;
};
modifiers?: AutocompleteModifier[] | false | null | undefined;
color?: string | false | null | undefined;
label?: string;
};
declare type AutocompleteModifier = {
modifier: string;
theme?: {
section: string;
key: string;
};
color?: string | false | null | undefined;
label?: string;
};
interface AutocompleteContext<Theme extends BaseTheme = BaseTheme> {
/** Allows to resolve theme values. */
readonly theme: ThemeFunction<Theme>;
readonly variants: Record<string, string>;
}
declare type AutocompleteProvider<Theme extends BaseTheme = BaseTheme> = (match: MatchResult, context: AutocompleteContext<Theme>) => (string | AutocompleteItem)[];
/**
* @experimental
* @group Configuration
* @param resolver
* @param autocomplete
*/
declare function withAutocomplete<Theme extends BaseTheme = BaseTheme>(resolver: RuleResolver<Theme>, autocomplete: AutocompleteProvider<Theme> | false | null | undefined): RuleResolver<Theme>;
declare function withAutocomplete<Theme extends BaseTheme = BaseTheme>(resolver: VariantResolver<Theme>, autocomplete: AutocompleteProvider<Theme> | false | null | undefined): VariantResolver<Theme>;
declare function withAutocomplete<Theme extends BaseTheme = BaseTheme>(rule: Rule<Theme>, autocomplete: AutocompleteProvider<Theme> | false | null | undefined): Rule<Theme>;
/**
* @internal
* @param resolver
* @returns
*/
declare function getAutocompleteProvider<Theme extends BaseTheme = BaseTheme>(resolver: RuleResolver<Theme> | VariantResolver<Theme>): AutocompleteProvider<Theme> | undefined;
/**
* @internal
* @param color
* @param options
* @returns
*/
declare function toColorValue(color: ColorValue, options?: ColorFunctionOptions): string;
/**
* Looks for a matching dark color within a [tailwind color palette](https://tailwindcss.com/docs/customizing-colors) (`50`, `100`, `200`, ..., `800`, `900`).
*
* ```js
* defineConfig({
* darkColor: autoDarkColor,
* })
* ```
*
* **Note**: Does not work for arbitrary values like `[theme(colors.gray.500)]` or `[theme(colors.gray.500, #ccc)]`.
*
* @group Configuration
* @param section within theme to use
* @param key of the light color or an arbitrary value
* @param context to use
* @returns the dark color if found
*/
declare function autoDarkColor(section: string, key: string, { theme }: Context<any>): ColorValue | Falsey;
/**
* @group Class Name Generators
* @param strings
* @param interpolations
*/
declare function css(strings: TemplateStringsArray, ...interpolations: readonly CSSValue[]): string;
declare function css(style: CSSObject | string): string;
/**
* Constructs `class` strings conditionally.
*
* Twinds version of popular libraries like [classnames](https://github.com/JedWatson/classnames) or [clsx](https://github.com/lukeed/clsx).
* The key advantage of `cx` is that it supports twinds enhanced class name syntax like grouping and aliases.
*
* @group Class Name Generators
* @param strings
* @param interpolations
* @returns
*/
declare function cx(strings: TemplateStringsArray, ...interpolations: Class[]): string;
/**
* Constructs `class` strings conditionally.
*
* Twinds version of popular libraries like [classnames](https://github.com/JedWatson/classnames) or [clsx](https://github.com/lukeed/clsx).
* The key advantage of `cx` is that it supports twinds enhanced class name syntax like grouping and aliases.
*
* @group Class Name Generators
* @param input
*/
declare function cx(...input: Class[]): string;
/**
* @group Configuration
* @param param0
* @returns
*/
declare function defineConfig<Theme = BaseTheme, Presets extends Preset<any>[] = Preset[]>({ presets, ...userConfig }: TwindUserConfig<Theme, Presets>): TwindConfig<BaseTheme & ExtractThemes<Theme, Presets>>;
interface InjectGlobalFunction {
(style: CSSBase | string): void;
(strings: TemplateStringsArray, ...interpolations: readonly CSSValue[]): void;
bind(thisArg?: ((tokens: string) => string) | undefined | void): InjectGlobalFunction;
call(thisArg: ((tokens: string) => string) | undefined | void, style: CSSBase | string): void;
apply(thisArg: ((tokens: string) => string) | undefined | void, args: [CSSBase | string]): void;
}
/**
* Injects styles into the global scope and is useful for applications such as gloabl styles, CSS resets or font faces.
*
* It **does not** return a class name, but adds the styles within the base layer to the stylesheet directly.
*
* @group Style Injectors
*/
declare const injectGlobal: InjectGlobalFunction;
/**
* @group Runtime
* @param config
* @param isProduction
*/
declare function install<Theme extends BaseTheme = BaseTheme>(config: TwindConfig<Theme>, isProduction?: boolean): Twind<Theme & BaseTheme>;
declare function install<Theme = BaseTheme, Presets extends Preset<any>[] = Preset[]>(config: TwindUserConfig<Theme, Presets>, isProduction?: boolean): Twind<BaseTheme & ExtractThemes<Theme, Presets>>;
interface KeyframesFunction {
(style: CSSObject | string): StringLike;
(strings: TemplateStringsArray, ...interpolations: readonly CSSValue[]): StringLike;
bind(thisArg?: ((tokens: string) => string) | undefined | void): Keyframes & {
[label: string]: KeyframesFunction;
};
call(thisArg: ((tokens: string) => string) | undefined | void, style: CSSObject | string): StringLike;
call(thisArg: ((tokens: string) => string) | undefined | void, strings: TemplateStringsArray, ...interpolations: readonly CSSValue[]): StringLike;
apply(thisArg: ((tokens: string) => string) | undefined | void, args: [CSSObject | string]): StringLike;
apply(thisArg: ((tokens: string) => string) | undefined | void, args: [CSSObject | string] | [strings: TemplateStringsArray, ...interpolations: readonly CSSValue[]]): StringLike;
}
declare type Keyframes = KeyframesFunction & {
[label: string]: KeyframesFunction;
};
/**
* **Note**: The styles will be injected on first use.
*
* @group Style Injectors
*/
declare const keyframes: Keyframes;
/**
* @group Runtime
* @param tw
* @param target
* @returns
*/
declare function observe<Theme extends BaseTheme = BaseTheme, Target = unknown>(tw?: Twind<Theme, Target>, target?: false | HTMLElement): Twind<Theme, Target>;
interface ParsedRule {
/**
* The utility name including `-` if set, but without `!` and variants
*/
readonly n: string;
/**
* All variants without trailing colon: `hover`, `after:`, `[...]`
*/
readonly v: string[];
/**
* Something like `!underline` or `!bg-red-500` or `!red-500`
*/
readonly i?: boolean;
}
interface ParsedDevRule extends ParsedRule {
readonly a: string[];
readonly l: [start: number, end: number];
}
/**
* @internal
* @param token
* @returns
*/
declare function parse(token: string): ParsedRule[];
declare type ThemeMatchResult<Value> = MatchResult & {
/** The found theme value */
_: Value;
};
declare type ThemeRuleResolver<Value, Theme extends BaseTheme = BaseTheme> = RuleResolver<Theme, ThemeMatchResult<Value>>;
declare type ThemeMatchConverter<Value, Theme extends BaseTheme = BaseTheme> = MatchConverter<Theme, ThemeMatchResult<Value>>;
/**
* @group Configuration
* @param pattern
*/
declare function match<Theme extends BaseTheme = BaseTheme>(pattern: MaybeArray<string | RegExp>): Rule<Theme>;
/**
* @group Configuration
* @param pattern
* @param resolver
*/
declare function match<Theme extends BaseTheme = BaseTheme>(pattern: MaybeArray<string | RegExp>, resolver: RuleResolver<Theme>): Rule<Theme>;
/**
* @group Configuration
* @param pattern
* @param resolve
*/
declare function match<Theme extends BaseTheme = BaseTheme>(pattern: MaybeArray<string | RegExp>, resolve: (string & {}) | CSSObject): Rule<Theme>;
/**
* @group Configuration
* @param pattern
* @param resolve
* @param convert
*/
declare function match<Theme extends BaseTheme = BaseTheme>(pattern: MaybeArray<string | RegExp>, resolve: keyof CSSProperties, convert?: MatchConverter<Theme>): Rule<Theme>;
/**
* @group Configuration
* @internal
* @deprecated Use {@link match} instead.
*/
declare function fromMatch<Theme extends BaseTheme = BaseTheme>(): RuleResolver<Theme>;
/**
* @group Configuration
* @internal
* @deprecated Use {@link match} instead.
*/
declare function fromMatch<Theme extends BaseTheme = BaseTheme>(resolver: RuleResolver<Theme>): RuleResolver<Theme>;
/**
* @group Configuration
* @internal
* @deprecated Use {@link match} instead.
*/
declare function fromMatch<Theme extends BaseTheme = BaseTheme>(resolve: keyof CSSProperties, convert?: MatchConverter<Theme>): RuleResolver<Theme>;
/**
* @group Configuration
* @internal
* @deprecated Use {@link match} instead.
*/
declare function fromMatch<Theme extends BaseTheme = BaseTheme>(resolve: string | CSSObject): RuleResolver<Theme>;
/**
* @group Configuration
* @param pattern
* @param section
* @param resolve
* @param convert
* @returns
*/
declare function matchTheme<Theme extends BaseTheme = BaseTheme, Section extends keyof Theme & string = keyof Theme & string>(pattern: MaybeArray<string | RegExp>,
/** Theme section to use (default: `$1` — The first matched group) */
section?: '' | Section | KebabCase<Section>,
/** The css property (default: value of {@link section}) */
resolve?: keyof CSSProperties | ThemeRuleResolver<ThemeValue<Theme[Section]>, Theme>, convert?: ThemeMatchConverter<ThemeValue<Theme[Section]>, Theme>): Rule<Theme>;
/**
* @group Configuration
* @internal
* @deprecated Use {@link matchTheme} instead.
* @param section
* @param resolve
* @param convert
* @returns
*/
declare function fromTheme<Theme extends BaseTheme = BaseTheme, Section extends keyof Theme & string = keyof Theme & string>(
/** Theme section to use (default: `$1` — The first matched group) */
section?: '' | Section | KebabCase<Section>,
/** The css property (default: value of {@link section}) */
resolve?: keyof CSSProperties | ThemeRuleResolver<ThemeValue<Theme[Section]>, Theme>, convert?: ThemeMatchConverter<ThemeValue<Theme[Section]>, Theme>): RuleResolver<Theme>;
declare type FilterByThemeValue<Theme, Value> = {
[key in keyof Theme & string]: ThemeValue<Theme[key]> extends Value ? Theme[key] : never;
};
interface ColorFromThemeValue {
value: string;
color: ColorFunction;
opacityVariable: string | undefined;
opacityValue: string | undefined;
}
interface ColorFromThemeOptions<Theme extends BaseTheme = BaseTheme, Section extends keyof FilterByThemeValue<Theme, ColorValue> = keyof FilterByThemeValue<Theme, ColorValue>, OpacitySection extends keyof FilterByThemeValue<Theme, string> = keyof FilterByThemeValue<Theme, string>> {
/** Theme section to use (default: `$0.replace('-', 'Color')` — The matched string with `Color` appended) */
section?: Section | KebabCase<Section>;
/** The css property (default: value of {@link section}) */
property?: keyof CSSProperties;
/** `--tw-${$0}opacity` -> '--tw-text-opacity' */
opacityVariable?: string | false;
/** `section.replace('Color', 'Opacity')` -> 'textOpacity' */
opacitySection?: OpacitySection;
selector?: string;
}
/**
* @group Configuration
* @param pattern
* @param options
* @param resolve
* @returns
*/
declare function matchColor<Theme extends BaseTheme = BaseTheme, Section extends keyof FilterByThemeValue<Theme, ColorValue> = keyof FilterByThemeValue<Theme, ColorValue>, OpacitySection extends keyof FilterByThemeValue<Theme, string> = keyof FilterByThemeValue<Theme, string>>(pattern: MaybeArray<string | RegExp>, options?: ColorFromThemeOptions<Theme, Section, OpacitySection>, resolve?: ThemeRuleResolver<ColorFromThemeValue, Theme>): Rule<Theme>;
/**
* @group Configuration
* @internal
* @deprecated Use {@link matchColor} instead.
* @param options
* @param resolve
* @returns
*/
declare function colorFromTheme<Theme extends BaseTheme = BaseTheme, Section extends keyof FilterByThemeValue<Theme, ColorValue> = keyof FilterByThemeValue<Theme, ColorValue>, OpacitySection extends keyof FilterByThemeValue<Theme, string> = keyof FilterByThemeValue<Theme, string>>(options?: ColorFromThemeOptions<Theme, Section, OpacitySection>, resolve?: ThemeRuleResolver<ColorFromThemeValue, Theme>): RuleResolver<Theme>;
/**
* @internal
* @param property
* @param value
* @returns
*/
declare function toCSS(property: string, value: string | ColorFromThemeValue): CSSObject;
/**
* @internal
* @param value
* @param section
* @param context
* @returns
*/
declare function arbitrary<Theme extends BaseTheme = BaseTheme>(value: string, section: string, context: Context<Theme>): string | undefined;
/**
* @internal
* @param value
* @returns
*/
declare function normalize(value: string): string;
/**
* @group Runtime
* @param install
* @returns
*/
declare function auto(install: () => void): () => void;
/**
* A proxy to the currently active Twind instance.
* @group Style Injectors
*/
declare const tw: Twind<any, any>;
declare type SheetFactory<SheetTarget = unknown> = () => Sheet<SheetTarget>;
/**
* Manages a single Twind instance — works in browser, Node.js, Deno, workers...
*
* @group Runtime
* @param config
* @param sheet
* @param target
* @returns
*/
declare function setup<Theme extends BaseTheme = BaseTheme, SheetTarget = unknown>(config?: TwindConfig<Theme>, sheet?: Sheet<SheetTarget> | SheetFactory<SheetTarget>, target?: HTMLElement): Twind<Theme, SheetTarget>;
declare function setup<Theme = BaseTheme, Presets extends Preset<any>[] = Preset[], SheetTarget = unknown>(config?: TwindUserConfig<Theme, Presets>, sheet?: Sheet<SheetTarget> | SheetFactory<SheetTarget>, target?: HTMLElement): Twind<BaseTheme & ExtractThemes<Theme, Presets>, SheetTarget>;
/**
* @group Sheets
* @param element
* @returns
*/
declare function cssom(element?: CSSStyleSheet | HTMLStyleElement | string | null | false): Sheet<CSSStyleSheet>;
/**
* @group Sheets
* @param element
* @returns
*/
declare function dom(element?: HTMLStyleElement | string | null | false): Sheet<HTMLStyleElement>;
/**
* @group Sheets
* @param includeResumeData
* @returns
*/
declare function virtual(includeResumeData?: boolean): Sheet<string[]>;
/**
* Returns a sheet useable in the current environment.
*
* @group Sheets
* @param useDOMSheet usually something like `process.env.NODE_ENV != 'production'` or `import.meta.env.DEV` (default: browser={@link cssom}, server={@link virtual})
* @param disableResume to not include or use resume data
* @returns a sheet to use
*/
declare function getSheet(useDOMSheet?: boolean, disableResume?: boolean): Sheet<string[] | HTMLStyleElement | CSSStyleSheet>;
/**
* @group Sheets
* @param target
* @returns
*/
declare function stringify(target: unknown): string;
/**
* Options for {@link inline}
*/
interface InlineOptions {
/**
* {@link Twind} instance to use (default: {@link twind.tw})
*/
tw?: Twind<any, any>;
/**
* Allows to minify the resulting CSS.
*/
minify?: InlineMinify;
}
interface InlineMinify {
/**
* Called to minify the CSS.
*
* @param css the CSS to minify
* @param html the HTML that will be used — allows to only include above-the-fold CSS
* @return the resulting CSS
*/
(css: string, html: string): string;
}
/**
* Used for static HTML processing (usually to provide SSR support for your javascript-powered web apps)
*
* 1. parse the markup and process element classes with the provided Twind instance
* 2. update the class attributes _if_ necessary
* 3. inject a style element with the CSS as last element into the head
* 4. return the HTML string with the final element classes
*
* ```js
* import { inline } from 'twind'
*
* function render() {
* return inline(renderApp())
* }
* ```
*
* Minify CSS with [@parcel/css](https://www.npmjs.com/package/@parcel/css):
*
* ```js
* import { inline } from 'twind'
* import { transform } from '@parcel/css'
*
* function render() {
* return inline(renderApp(), { minify: (css) => transform({ filename: 'twind.css', code: Buffer.from(css), minify: true }) })
* }
* ```
*
* You can provide your own Twind instance:
*
* ```js
* import { inline } from 'twind'
* import { tw } from './custom/twind/instance'
*
* function render() {
* return inline(renderApp(), { tw })
* }
* ```
*
* @group Static Extraction
* @param markup HTML to process
* @param options to customize the processing
* @returns the resulting HTML
*/
declare function inline(markup: string, options?: InlineOptions['tw'] | InlineOptions): string;
/**
* Result of {@link extract}
*/
interface ExtractResult {
/** The possibly modified HTML */
html: string;
/** The generated CSS */
css: string;
}
/**
* Used for static HTML processing (usually to provide SSR support for your javascript-powered web apps)
*
* **Note**: Consider using {@link inline} instead.
*
* 1. parse the markup and process element classes with the provided Twind instance
* 2. update the class attributes _if_ necessary
* 3. return the HTML string with the final element classes
*
* ```js
* import { extract } from 'twind'
*
* function render() {
* const { html, css } = extract(renderApp())
*
* // inject as last element into the head
* return html.replace('</head>', `<style data-twind>${css}</style></head>`)
* }
* ```
*
* You can provide your own Twind instance:
*
* ```js
* import { extract } from 'twind'
* import { tw } from './custom/twind/instance'
*
* function render() {
* const { html, css } = extract(renderApp(), tw)
*
* // inject as last element into the head
* return html.replace('</head>', `<style data-twind>${css}</style></head>`)
* }
* ```
*
* @group Static Extraction
* @param markup HTML to process
* @param tw a {@link Twind} instance (default: twind managed tw)
* @returns the possibly modified html and css
*/
declare function extract(html: string, tw?: Twind<any, any>): ExtractResult;
/**
* Used for static HTML processing (usually to provide SSR support for your javascript-powered web apps)
*
* **Note**: Consider using {@link inline} or {@link extract} instead.
*
* 1. parse the markup and process element classes with the provided Twind instance
* 2. update the class attributes _if_ necessary
* 3. return the HTML string with the final element classes
*
* ```js
* import { consume, stringify, tw } from 'twind'
*
* function render() {
* const html = renderApp()
*
* // remember global classes
* const restore = tw.snapshot()
*
* // generated markup
* const markup = consume(html)
*
* // create CSS
* const css = stringify(tw.target)
*
* // restore global classes
* restore()
*
* // inject as last element into the head
* return markup.replace('</head>', `<style data-twind>${css}</style></head>`)
* }
* ```
*
* You can provide your own Twind instance:
*
* ```js
* import { consume, stringify } from 'twind'
* import { tw } from './custom/twind/instance'
*
* function render() {
* const html = renderApp()
*
* // remember global classes
* const restore = snapshot(tw.target)
*
* // generated markup
* const markup = consume(html)
*
* // restore global classes
* restore()
*
* // create CSS
* const css = stringify(tw.target)
*
* // inject as last element into the head
* return markup.replace('</head>', `<style data-twind>${css}</style></head>`)
* }
* ```
*
* @group Static Extraction
* @param markup HTML to process
* @param tw a {@link Twind} instance
* @returns possibly modified HTML
*/
declare function consume(markup: string, tw?: (className: string) => string): string;
declare type StrictMorphVariant<T> = T extends number ? `${T}` | T : T extends 'true' ? true | T : T extends 'false' ? false | T : T;
declare type MorphVariant<T> = T extends number ? `${T}` | T : T extends 'true' ? boolean | T : T extends 'false' ? boolean | T : T extends `${number}` ? number | T : T;
declare type StyleTokenValue = string | Falsey;
declare type StyleToken = StyleTokenValue;
/**
* Allows to extract the supported properties of a style function.
*
* Here is an example for `react`
* ```js
* import { HTMLAttributes } from "react";
* import { style, PropsOf } from "twind";
* const button = style({ ... })
* type ButtonProps = PropsOf<typeof button>
* export const Button = (props: ButtonProps & HTMLAttributes<HTMLButtonElement>) => {
* return <button className={style(props)} {...rest} />
* }
* ```
*/
declare type PropsOf<T> = T extends Style<infer Variants> ? {
[key in keyof Variants]: MorphVariant<keyof Variants[key]>;
} : never;
declare type DefaultVariants<Variants> = {
[key in keyof Variants]?: StrictMorphVariant<keyof Variants[key]> | (Record<string, StrictMorphVariant<keyof Variants[key]>> & {
/** initial breakpoint */
_?: StrictMorphVariant<keyof Variants[key]>;
});
};
declare type VariantsProps<Variants> = {
[key in keyof Variants]?: MorphVariant<keyof Variants[key]> | (Record<string, MorphVariant<keyof Variants[key]>> & {
/** initial breakpoint */
_?: MorphVariant<keyof Variants[key]>;
});
};
declare type When<Variants> = {
[key in keyof Variants]?: StrictMorphVariant<keyof Variants[key]>;
};
interface StyleConfig<Variants, BaseVariants = {}> {
/** Used as prefix */
label?: string;
base?: StyleToken;
props?: Variants & {
[variant in keyof BaseVariants]?: {
[key in keyof BaseVariants[variant]]?: StyleToken;
};
};
defaults?: DefaultVariants<Variants & BaseVariants>;
when?: [match: When<Variants & BaseVariants>, then: StyleToken][];
}
interface StyleFunction {
<Variants>(config?: StyleConfig<Variants>): Style<Variants>;
<Variants, BaseVariants>(base: Style<BaseVariants>, config?: StyleConfig<Variants, BaseVariants>): Style<Variants & BaseVariants>;
}
declare type StyleProps<Variants> = VariantsProps<Variants>;
interface Style<Variants> {
/**
* CSS Class associated with the current component.
*
* ```jsx
* const button = style({
* base: css({
* color: "DarkSlateGray"
* })
* })
*
* <div className={button()} />
* ```
* <br />
*/
(props?: StyleProps<Variants>): string;
/**
* To be used as resolve within config.rules:
*
* ```js
* {
* rules: [
* // label?prop=value&other=propValue
* // if the style has base eg no prop is required
* ['label(\\?.+)?', style( /* ... *\/ )],
*
* // if the style requires at least one prop
* ['label\\?(.+)', style( /* ... *\/ )],
* ]
* }
* ```
*
* The first group is used to extract the props using {@link !URLSearchParams | URLSearchParams}.
*/
(match: MatchResult): string;
readonly defaults: StyleProps<Variants>;
/**
* CSS Class associated with the current component.
*
* ```js
* const button = style({
* base: css`
* color: "DarkSlateGray"
* `
* })
*
* <div className={button.className} />
* ```
*/
readonly className: string;
/**
* CSS Selector associated with the current component.
*
* ```js
* const button = style({
* base: css({
* color: "DarkSlateGray"
* })
* })
*
* const Card = styled({
* base: css`
* & ${button.selector} {
* boxShadow: "0 0 0 5px"
* }
* `
* })
* ```
*/
readonly selector: string;
}
/**
* @group Class Name Generators
*/
declare const style: StyleFunction;
/**
* @group Runtime
* @param config
* @param sheet
*/
declare function twind<Theme extends BaseTheme = BaseTheme, Target = unknown>(config: TwindConfig<Theme>, sheet: Sheet<Target>): Twind<Theme, Target>;
declare function twind<Theme = BaseTheme, Presets extends Preset<any>[] = Preset[], Target = unknown>(config: TwindUserConfig<Theme, Presets>, sheet: Sheet<Target>): Twind<BaseTheme & ExtractThemes<Theme, Presets>, Target>;
interface TxFunction {
(...classes: Class[]): string;
(strings: TemplateStringsArray, ...interpolations: readonly Class[]): string;
bind(thisArg?: ((tokens: string) => string) | undefined | void): TxFunction;
call(thisArg: ((tokens: string) => string) | undefined | void, ...classes: Class[]): string;
call(thisArg: ((tokens: string) => string) | undefined | void, strings: TemplateStringsArray, ...interpolations: readonly Class[]): string;
apply(thisArg: ((tokens: string) => string) | undefined | void, classes: Class[] | [strings: TemplateStringsArray, ...interpolations: readonly Class[]]): string;
}
/**
* Combines {@link tw} and {@link cx}.
*
* Using the default `tw` instance:
*
* ```js
* import { tw } from 'twind'
* tx`underline ${falsy && 'italic'}`
* tx('underline', falsy && 'italic')
* tx({'underline': true, 'italic': false})
*
* // using a custom twind instance
* import { tw } from './custom/twind'
* import { tw } from './custom/twind'
* tx.bind(tw)
* ```
*
* Using a custom `tw` instance:
*
* ```js
* import { tx as tx$ } from 'twind'
* import { tw } from './custom/twind'
*
* export const tx = tx$.bind(tw)
*
* tx`underline ${falsy && 'italic'}`
* tx('underline', falsy && 'italic')
* tx({'underline': true, 'italic': false})
* ```
*
* @group Style Injectors
* @param this {@link Twind} instance to use (default: {@link tw})
* @param strings
* @param interpolations
* @returns the class name
*/
declare const tx: TxFunction;
/**
* @internal
*/
declare const escape: typeof CSS.escape;
/**
* @group Configuration
* @param value
* @returns
*/
declare function hash(value: string): string;
/**
* @internal
* @param screen
* @param prefix
* @returns
*/
declare function mql(screen: MaybeArray<ScreenValue>, prefix?: string): string;
/**
* @internal
* @param value
* @returns
*/
declare function asArray<T>(value?: T): T extends Array<any> ? T : T[];
/**
* @internal
* @param value
* @returns
*/
declare function identity<T>(value: T): T;
/**
* @internal
*/
declare function noop(): void;
export { Animation, AnimationFunction, ArrayType, AutocompleteContext, AutocompleteItem, AutocompleteModifier, AutocompleteProvider, BaseProperties, BaseTheme, CSSBase, CSSFontFace, CSSNested, CSSObject, CSSProperties, CSSValue, Class, ClassObject, ColorFromThemeOptions, ColorFromThemeValue, ColorFunction, ColorFunctionOptions, ColorRecord, ColorValue, Context, CustomProperties, DarkColor, DarkModeConfig, DefaultVariants, ExtractResult, ExtractTheme, ExtractThemes, ExtractUserTheme, Falsey, FilterByThemeValue, HashFunction, InjectGlobalFunction, InlineMinify, InlineOptions, KebabCase, Keyframes, KeyframesFunction, MatchConverter, MatchResult, MaybeArray, MaybeColorValue, MaybeThunk, MorphVariant, Nested, NestedFunction, ParsedDevRule, ParsedRule, PartialTheme, Preflight, PreflightThunk, Preset, PresetThunk, PropsOf, RestoreSnapshot, Rule, RuleResolver, RuleResult, ScreenValue, Sheet, SheetFactory, SheetRule, StrictMorphVariant, StringLike, StringifyDeclaration, Style, StyleConfig, StyleFunction, StyleProps, StyleToken, StyleTokenValue, ThemeConfig, ThemeFunction, ThemeMatchConverter, ThemeMatchResult, ThemeRuleResolver, ThemeSection, ThemeSectionResolver, ThemeSectionResolverContext, ThemeValue, Twind, TwindConfig, TwindPresetConfig, TwindRule, TwindUserConfig, TxFunction, TypedAtRules, TypedAtRulesKeys, UnionToIntersection, Variant, VariantResolver, VariantResult, VariantsProps, When, animation, apply, arbitrary, asArray, auto, autoDarkColor, colorFromTheme, consume, css, cssom, cx, defineConfig, dom, escape, extract, fromMatch, fromTheme, getAutocompleteProvider, getSheet, hash, identity, injectGlobal, inline, install, keyframes, match, matchColor, matchTheme, mql, noop, normalize, observe, parse, setup, shortcut, stringify, style, toCSS, toColorValue, tw, twind, tx, virtual, withAutocomplete };
export * from '@twind/core';
//# sourceMappingURL=twind.d.ts.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 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
var twind=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

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

var e=function(e){"use strict";let t;function r(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function n(e,t=","){return e.map(r).join(t)}let i="undefined"!=typeof CSS&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function o(e){for(var t=9,r=e.length;r--;)t=Math.imul(t^e.charCodeAt(r),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 a(){}let c={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:n=[]},i,o,s){for(let a of(e&&(e=r({n:e,i:t,v:n})),s=[...u(s)],n)){let c=i.theme("screens",a);for(let f of u(c&&l(c)||i.v(a))){var d;s.push(f),o|=c?67108864|p(f):"dark"==a?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 r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function m(){return y.apply(this,arguments)}function v(e){if(e.d){let t=[],r=b(e.r.reduce((e,r)=>"@"==r[0]?(t.push(r),e):r?b(e,e=>b(r,t=>{let r=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(t);if(r){let n=e.indexOf(r[1]);return~n?e.slice(0,n)+r[0]+e.slice(n+r[1].length):$(e,t)}return $(t,e)})):e,"&"),t=>$(t,e.n?"."+i(e.n):""));return r&&t.push(r.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((e,t)=>t+"{"+e+"}",e.d)}}function b(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(e,r,n)=>t(r)+n)}function $(e,t){return e.replace(/&/g,t)}let w=new Intl.Collator("en",{numeric:!0});function x(e,t){for(var r=0,n=e.length;r<n;){let i=n+r>>1;0>=A(e[i],t)?r=i+1:n=i}return n}function A(e,t){let r=e.p&c.o;return r==(t.p&c.o)&&(r==c.b||r==c.o)?0:e.p-t.p||e.o-t.o||w.compare(e.n,t.n)}function j(e,t){return Math.round(parseInt(e,16)*t)}function k(e,t={}){if("function"==typeof e)return e(t);let{opacityValue:r="1",opacityVariable:n}=t,i=n?`var(${n})`:r;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(${[j(e.substr(1,o),l),j(e.substr(1+o,o),l),j(e.substr(1+2*o,o),l),i]})`}return"1"==i?e:"0"==i?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${i})`)}function O(e,t,r,n,i=[]){return function e(t,{n:r,p:n,r:i=[],i:s},a){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(...E(r,n,P(""+w),a,n,i,s,!0));continue}if("l"==m[1]){for(let x of u(w))h.push(...e(x,{n:r,p:(b=c[m[7]],n&~c.o|b),r:i,i:s},a));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:c.d,o:0,r:[m],d:e(w,{p:c.d},a).map(v).join("")});continue}if("f"==m[1]){h.push(...u(w).map(t=>({p:c.d,o:0,r:[m],d:e(t,{p:c.d},a).map(v).join("")})));continue}}if("object"!=typeof w||Array.isArray(w))"label"==m&&w?r=w+o(JSON.stringify([n,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=>a.s(m,S(""+e,a.theme)+(s?" !important":""))).join(";"));else if("@"==m[0]||m.includes("&")){let j=n;"@"==m[0]&&(m=m.replace(/\bscreen\(([^)]+)\)/g,(e,t)=>{let r=a.theme("screens",t);return r?(j|=67108864,l(r,"")):e}),j|=p(m)),h.push(...e(w,{n:r,p:j,r:[...i,m],i:s},a))}else h.push(...e(w,{p:n,r:[...i,m]},a))}return h.unshift({n:r,p:n,o:Math.max(0,15-y)+1.5*Math.min(g||15,15),r:i,d:d}),h.sort(A)}(e,d(t,r,n,i),r)}function S(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(e,r,n,i,o)=>{let l=t(n,o);return"function"==typeof l&&/color|fill|stroke/i.test(n)?k(l):""+l})}function M(e,t){let r;let n=[];for(let i of e)i.d&&i.n?(null==r?void 0:r.p)==i.p&&""+r.r==""+i.r?(r.c=[r.c,i.c].filter(Boolean).join(" "),r.d=r.d+";"+i.d):n.push(r=m({},i,{n:i.n&&t})):n.push(m({},i,{n:i.n&&t}));return n}function C(e,t,n=c.u,i,o){let l=[];for(let s of e)for(let a of function(e,t,n,i,o){var l;e=m({},e,{i:e.i||o});let s=function(e,t){let r=g.get(e.n);return r?r(e,t):t.r(e.n,"dark"==e.v[0])}(e,t);return s?"string"==typeof s?({r:i,p:n}=d(e,t,n,i),M(C(P(s),t,n,i,e.i),e.n)):Array.isArray(s)?s.map(e=>{var t,r;return m({o:0},e,{r:[...u(i),...u(e.r)],p:(t=n,r=null!=(l=e.p)?l:n,t&~c.o|r)})}):O(s,e,t,n,i):[{c:r(e),p:0,o:0,r:[]}]}(s,t,n,i,o))l.splice(x(l,a),0,a);return l}function E(e,t,r,n,i,o,l,u){return M((u?r.flatMap(e=>C([e],n,i,o,l)):C(r,n,i,o,l)).map(e=>e.p&c.o&&(e.n||t==c.b)?m({},e,{p:e.p&~c.o|t,o:0}):e),e)}function R(e,t,r,n){var i;return i=(e,i)=>{let{n:o,p:l,r:u,i:s}=d(e,i,t);return r&&E(o,t,r,i,l,u,s,n)},g.set(e,i),e}function N(e,t){if("("!=e[e.length-1]){let r=[],n=!1,i=!1,o="";for(let l of e)if(!("("==l||/[~@]$/.test(l))){if("!"==l[0]&&(l=l.slice(1),n=!n),l.endsWith(":")){r["dark:"==l?"unshift":"push"](l.slice(0,-1));continue}"-"==l[0]&&(l=l.slice(1),i=!i),l.endsWith("-")&&(l=l.slice(0,-1)),l&&"&"!=l&&(o+=(o&&"-")+l)}o&&(i&&(o="-"+o),t[0].push({n:o,v:r.filter(V),i:n}))}}function V(e,t,r){return r.indexOf(e)==t}let z=new Map;function P(e){let t=z.get(e);if(!t){let r=[],i=[[]],l=0,u=0,s=null,a=0,f=(t,n=0)=>{l!=a&&(r.push(e.slice(l,a+n)),t&&N(r,i)),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=i.shift();r.length=h,N([...r,"#"],i);let{v:y}=i[0].pop();for(let m of g)m.v.splice(+("dark"==m.v[0])-+("dark"==y[0]),y.length);N([...r,R(d.length>1?d.slice(0,-1)+o(JSON.stringify([d,g])):d+"("+n(g)+")",c.a,g,/@$/.test(d))],i)}h=r.lastIndexOf("(",h-1)}r.length=h+1}else/[~@]/.test(p)&&"("==e[a+1]&&i.unshift([])}f(!0),z.set(e,t=i[0])}return t}function T(e,t,r){return t.reduce((t,n,i)=>t+r(n)+e[i+1],e[0])}function F(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?T(e,t,e=>_(e).trim()):t.filter(Boolean).reduce((e,t)=>e+_(t),e?_(e):"")}function _(e){let t,r="";if(e&&"object"==typeof e){if(Array.isArray(e))(t=F(e[0],e.slice(1)))&&(r+=" "+t);else for(let n in e)e[n]&&(r+=" "+n)}else null!=e&&"boolean"!=typeof e&&(r+=" "+e);return r}let I=q("@"),L=q("~");function q(e){return new Proxy(function(e,...r){return t("",e,r)},{get:(e,r)=>r in e?e[r]:function(e,...n){return t(r,e,n)}});function t(t,r,i){return n(P(t+e+"("+F(r,i)+")"))}}function D(e,t){return Array.isArray(e)?B(T(e,t,e=>null!=e&&"boolean"!=typeof e?e:"")):"string"==typeof e?B(e):[e]}let J=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function B(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let r=[{}],n=[r[0]],i=[];for(;t=J.exec(e);)t[4]&&(r.shift(),i.shift()),t[3]?(i.unshift(t[3]),r.unshift({}),n.push(i.reduce((e,t)=>({[t]:e}),r[0]))):t[4]||(r[0][t[1]]&&(r.unshift({}),n.push(i.reduce((e,t)=>({[t]:e}),r[0]))),r[0][t[1]]=t[2]);return n}function U(e,...t){var r,n;let i=D(e,t),l=((null==(r=i.find(e=>e.label))?void 0:r.label)||"css")+o(JSON.stringify(i));return n=(e,t)=>M(i.flatMap(r=>O(r,e,t,c.o)),l),g.set(l,n),l}let W=new Proxy(function(e,t){return G("animation",e,t)},{get:(e,t)=>t in e?e[t]:function(e,r){return G(t,e,r)}});function G(e,t,r){return{toString:()=>U({label:e,"@layer components":m({},"object"==typeof t?t:{animation:t},{animationName:""+r})})}}let Y=Symbol();function Z(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}function H(e){var{presets:t=[]}=e,r=Z(e,["presets"]);let n={preflight:!1!==r.preflight&&[],darkMode:void 0,darkColor:void 0,theme:{},variants:u(r.variants),rules:u(r.rules),ignorelist:u(r.ignorelist),hash:r.hash,stringify:r.stringify||K};for(let i of u([...t,{darkMode:r.darkMode,darkColor:r.darkColor,preflight:!1!==r.preflight&&u(r.preflight),theme:r.theme,hash:r.hash,stringify:r.stringify}])){let{preflight:o,darkMode:l=n.darkMode,darkColor:s=n.darkColor,theme:a,variants:c,rules:f,ignorelist:p,hash:h=n.hash,stringify:d=n.stringify}="function"==typeof i?i(n):i;n={preflight:!1!==n.preflight&&!1!==o&&[...n.preflight,...u(o)],darkMode:l,darkColor:s,theme:m({},n.theme,a,{extend:m({},n.theme.extend,null==a?void 0:a.extend)}),variants:[...n.variants,...u(c)],rules:[...n.rules,...u(f)],ignorelist:[...n.ignorelist,...u(p)],hash:h,stringify:d}}return n}function K(e,t){return e+":"+t}function Q(e,t){return"function"==typeof e?e:"string"==typeof e&&/^[\w-]+$/.test(e)?(r,n)=>({[e]:t?t(r,n):X(r,1)}):t=>e||{[t[1]]:X(t,2)}}function X(e,t,r=e.slice(t).find(Boolean)||e.$$||e.input){return"-"==e.input[0]?`calc(${r} * -1)`:r}function ee(e,t,r){let n="string"==typeof t?(e,n)=>({[t]:r?r(e,n):e._}):t||(({1:e,_:t},r,n)=>({[e||n]:t}));return(t,r)=>{var i;let o=ei(e||t[1]),l=null!=(i=r.theme(o,t.$$))?i:en(t.$$,o,r);if(null!=l)return t._=X(t,0,l),n(t,r,o)}}function et(e={},t){return(r,n)=>{let{section:i=ei(r[0]).replace("-","")+"Color"}=e;if(!/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/.test(r.$$))return;let{$1:o,$2:l}=RegExp,u=n.theme(i,o)||en(o,i,n);if(!u||"object"==typeof u)return;let{opacityVariable:s=`--tw-${r[0].replace(/-$/,"")}-opacity`,opacitySection:a=i.replace("Color","Opacity"),property:c=i,selector:f}=e,p=n.theme(a,l||"DEFAULT")||l&&en(l,a,n),h=t||(({_:e})=>{let t=er(c,e);return f?{[f]:t}:t});r._={value:k(u,{opacityVariable:s||void 0,opacityValue:p||void 0}),color:e=>k(u,e),opacityVariable:s||void 0,opacityValue:p||void 0};let d=h(r,n);if(!r.dark){let g=n.d(i,o,u);g&&g!==u&&(r._={value:k(g,{opacityVariable:s||void 0,opacityValue:p||"1"}),color:e=>k(g,e),opacityVariable:s||void 0,opacityValue:p||void 0},d={"&":d,[n.v("dark")]:h(r,n)})}return d}}function er(e,t){let r={};return"string"==typeof t?r[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(r[t.opacityVariable]=t.opacityValue||"1"),r[e]=t.value),r}function en(e,t,r){if("["==e[0]&&"]"==e.slice(-1)&&(e=eo(S(e.slice(1,-1),r.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 ei(e){return e.replace(/-./g,e=>e[1].toUpperCase())}function eo(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(e,t="",r,n="")=>eo(t)+r+eo(n)):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 "))}function el(e,t,r,n,i,o){for(let l of t){let u=r.get(l);u||r.set(l,u=n(l));let s=u(e,i,o);if(s)return s}}function eu(e){var t;return ea(e[0],"function"==typeof(t=e[1])?t:()=>t)}function es(e){var t,r;return Array.isArray(e)?ea(e[0],Q(e[1],e[2])):ea(e,Q(t,r))}function ea(e,t){return ec(e,(e,r,n,i)=>{let o=r.exec(e);if(o)return o.$$=e.slice(o[0].length),o.dark=i,t(o,n)})}function ec(e,t){let r=u(e).map(ef);return(e,n,i)=>{for(let o of r){let l=t(e,o,n,i);if(l)return l}}}function ef(e){return"string"==typeof e?RegExp("^"+e+(e.includes("$")||"-"==e.slice(-1)?"":"$")):e}function ep(e,t){return e.replace(/--(tw(?:-[\w-]+)?)\b/g,(e,r)=>"--"+t(r).replace("#",""))}function eh(e,t){let r=H(e),n=function({theme:e,darkMode:t,darkColor:r,variants:n,rules:l,hash:a,stringify:c,ignorelist:f}){let p=new Map,h=new Map,d=new Map,g=new Map,y=ec(f,(e,t)=>t.test(e));n.push(["dark",Array.isArray(t)||"class"==t?`${u(t)[1]||".dark"} &`:"string"==typeof t&&"media"!=t?t:"@media (prefers-color-scheme:dark)"]);let m="function"==typeof a?e=>a(e,o):a?o:s;return{theme:function(e){var{extend:t={}}=e,r=Z(e,["extend"]);let n={},i={get colors(){return o("colors")},theme:o,negative:()=>({}),breakpoints(e){let t={};for(let r in e)"string"==typeof e[r]&&(t["screen-"+r]=e[r]);return t}};return o;function o(e,i,u,s){if(e){var a;if({1:e,2:s}=/^(\S+?)(?:\s*\/\s*([^/]+))?$/.exec(e)||[,e],/[.[]/.test(e)){let c=[];e.replace(/\[([^\]]+)\]|([^.[]+)/g,(e,t,r=t)=>c.push(r)),e=c.shift(),u=i,i=c.join("-")}let f=n[e]||Object.assign(Object.assign(n[e]={},l(r,e)),l(t,e));if(null==i)return f;let p=null!=(a=f[i||"DEFAULT"])?a:u;return s?k(p,{opacityValue:S(s,o)}):p}let h={};for(let d of[...Object.keys(r),...Object.keys(t)])h[d]=o(d);return h}function l(e,t){let r=e[t];return("function"==typeof r&&(r=r(i)),r&&/color|fill|stroke/i.test(t))?function e(t,r=[]){let n={};for(let i in t){let o=t[i],l=[...r,i];n[l.join("-")]=o,"DEFAULT"==i&&(l=r,n[r.join("-")]=o),"object"==typeof o&&Object.assign(n,e(o,l))}return n}(r):r}}(e),e:i,h:m,s(e,t){return c(ep(e,m),ep(t,m),this)},d(e,t,n){return null==r?void 0:r(e,t,this,n)},v(e){return p.has(e)||p.set(e,el(e,n,h,eu,this)||"&:"+e),p.get(e)},r(e,t){let r=JSON.stringify([e,t]);return d.has(r)||d.set(r,!y(e,this)&&el(e,l,g,es,this,t)),d.get(r)}}}(r),l=new Map,a=[],f=new Set;function p(e){let r=e.n&&n.h(e.n),i=v(r?m({},e,{n:r}):e);if(i&&!f.has(i)){f.add(i);let o=x(a,e);t.insert(i,o,e),a.splice(o,0,e)}return r}return t.resume(e=>l.set(e,e),(e,r)=>{t.insert(e,a.length,r),a.push(r),f.add(e)}),Object.defineProperties(function(e){if(!l.size)for(let t of u(r.preflight))"function"==typeof t&&(t=t(n)),t&&("string"==typeof t?E("",c.b,P(t),n,c.b,[],!1,!0):O(t,{},n,c.b)).forEach(p);e=""+e;let i=l.get(e);if(!i){let o=new Set;for(let s of C(P(e),n))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:n.theme,config:r,snapshot(){let e=t.snapshot(),r=new Set(f),n=new Map(l),i=[...a];return()=>{e(),f=r,l=n,a=i}},clear(){t.clear(),f=new Set,l=new Map,a=[]},destroy(){this.clear(),t.destroy()}}))}function ed(e,t){return e!=t&&""+e.split(" ").sort()!=""+t.split(" ").sort()}function eg(e=ex,t=document.documentElement){if(!t)return e;let r=new MutationObserver(i);r.observe(t,{attributeFilter:["class"],subtree:!0,childList:!0}),o(t),i([{target:t,type:""}]);let{destroy:n}=e;return e.destroy=()=>{r.disconnect(),n.call(e)},e;function i(e){for(let{type:t,target:n}of e)if("a"==t[0])o(n);else for(let i of n.querySelectorAll("[class]"))o(i);r.takeRecords()}function o(t){let r;let n=t.getAttribute("class");n&&ed(n,r=e(n))&&t.setAttribute("class",r)}}function ey(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 em(e){let t=(null==e?void 0:e.cssRules)?e:(e&&"string"!=typeof e?e:ey(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,r){try{t.insertRule(e,r)}catch(n){t.insertRule(":root{}",r),/:-[mwo]/.test(e)}},resume:a}}function ev(e){let t=e&&"string"!=typeof e?e:ey(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,r){t.insertBefore(document.createTextNode(e),t.childNodes[r]||null)},resume:a}}function eb(e,t){let r=e?ev():em();return t||(r.resume=ew),r}function e$(e){return(e.ownerNode||e).textContent||(e.cssRules?Array.from(e.cssRules,e=>e.cssText):u(e)).join("")}function ew(e,t){let r=e$(this.target),n=/\/\*!([\da-z]+),([\da-z]+)(?:,(.+?))?\*\//g;if(n.test(r)){var i;let o;for(let l of(n.lastIndex=0,this.clear(),document.querySelectorAll("[class]")))e(l.getAttribute("class"));for(;i=n.exec(r),o&&t(r.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;);}}let ex=new Proxy(a,{apply:(e,r,n)=>t(n[0]),get(e,r){let n=t[r];return"function"==typeof n?function(){return n.apply(t,arguments)}:n}});function eA(e={},r=eb,n){return null==t||t.destroy(),t=eg(eh(e,"function"==typeof r?r():r),n)}let ej=function e(t){return new Proxy(function(e,...r){return ek(t,"",e,r)},{get:(r,n)=>"bind"===n?e:n in r?r[n]:function(e,...r){return ek(t,n,e,r)}})}();function ek(e,t,r,n){return{toString(){let l=D(r,n),u=i(t+o(JSON.stringify([t,l])));return("function"==typeof e?e:ex)(U({[`@keyframes ${u}`]:D(r,n)})),u}}}function eO(e,t=ex){let r=t.snapshot(),n={html:eS(e,t),css:e$(t.target)};return r(),n}function eS(e,t=ex){let r="",n=0;return!function(e,t){let r=1,n=0,i="",o="",l=l=>{5==r&&"class"==o&&!1===t(n,l,i)&&(e="")};for(let u=0;u<e.length;u++){let s=e[u];1==r?"<"==s&&(r="!--"==e.substr(u+1,3)?4:3):4==r?">"==s&&"--"==e.slice(u-2,u)&&(r=1):i?s==i&&"\\"!=e[u-1]&&(l(u),r=2,i=""):'"'==s||"'"==s?(i=s,n+=1):">"==s?(l(u),r=1):r&&("="==s?(o=e.slice(n,u),r=5,n=u+1):"/"==s&&(r<5||">"==e[u+1])?(l(u),r=0):/\s/.test(s)&&(l(u),r=2,n=u+1))}}(e,(i,o,l)=>{var u;let s=e.slice(i,o),a=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,"&"));ed(s,a)&&(l=l?"":'"',r+=e.slice(n,i)+l+a+l,n=o)}),r+e.slice(n,e.length)}let eM=(e,t)=>"function"==typeof e?eC(t,e):eC(e);function eC(e={},t){let{label:r="style",base:n,props:l={},defaults:u,when:s=[]}=e,a=m({},null==t?void 0:t.defaults,u),f=o(JSON.stringify([r,null==t?void 0:t.className,n,l,a,s])),p=h("",n||"",c.c);function h(e,n,i){return R(((t?t.className.replace(/#.+$/,"~"):"")+r+e+f).replace(/[: ,()[\]]/,""),i,n&&P(n))}return Object.defineProperties(function(e){let r,n;Array.isArray(e)&&(r=!0,e=Object.fromEntries(new URLSearchParams(e[1]).entries()));let i=m({},a,e),o=r?"":(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 n="",f){let y=c[f[g]];y&&(d+="@"+g+"-"+f[g],n+=(n&&" ")+("_"==g?y:g+":("+y+")"))}n&&(o+=" "+h("--"+u+"-"+d,n,402653184))}else(n=c[f])&&(o+=" "+h("--"+u+"-"+f,n,402653184))}return s.forEach((e,t)=>{let r="";for(let l in e[0]){let u=i[l];if(u!==Object(u)&&""+u==""+e[0][l])r+=(r&&"_")+l+"-"+u;else{r="";break}}r&&(n=e[1])&&(o+=" "+h("-"+t+"--"+r,n,536870912))}),o},Object.getOwnPropertyDescriptors({className:p,defaults:a,selector:"."+i(p)}))}return e.animation=W,e.apply=I,e.arbitrary=en,e.asArray=u,e.auto=function(e){if(document.currentScript){let t=()=>r.disconnect(),r=new MutationObserver(r=>{for(let{target:n}of r)if(n===document.body)return e(),t()});return r.observe(document.documentElement,{childList:!0,subtree:!0}),t}return a},e.autoDarkColor=function(e,t,{theme:r}){return r(e,t=t.replace(/\d+$/,e=>100*(9-~~(parseInt(e,10)/100)||.5)))},e.colorFromTheme=et,e.consume=eS,e.css=U,e.cssom=em,e.cx=function(e,...t){return n(P(F(e,t))," ")},e.defineConfig=H,e.dom=ev,e.escape=i,e.extract=eO,e.fromMatch=Q,e.fromTheme=ee,e.getAutocompleteProvider=function(e){return e[Y]},e.getSheet=eb,e.hash=o,e.identity=s,e.injectGlobal=function(e,...t){("function"==typeof this?this:ex)(U({"@layer base":D(e,t)}))},e.inline=function(e,t={}){let{tw:r=ex,minify:n=s}="function"==typeof t?{tw:t}:t,{html:i,css:o}=eO(e,r);return i.replace("</head>",`<style data-twind>${n(o,i)}</style></head>`)},e.install=function(e,t=!0){var r;let n=H(e);return eA(m({},n,{hash:null!=(r=n.hash)?r:t}),()=>eb(!t))},e.keyframes=ej,e.match=function(e,t,r){return[e,Q(t,r)]},e.matchColor=function(e,t={},r){return[e,et(t,r)]},e.matchTheme=function(e,t,r,n){return[e,ee(t,r,n)]},e.mql=l,e.noop=a,e.normalize=eo,e.observe=eg,e.parse=P,e.setup=eA,e.shortcut=L,e.stringify=e$,e.style=eM,e.toCSS=er,e.toColorValue=k,e.tw=ex,e.twind=eh,e.tx=function(e,...t){return("function"==typeof this?this:ex)(F(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(r,n,i){t.splice(n,0,e?`/*!${i.p.toString(36)},${(2*i.o).toString(36)}${i.n?","+i.n:""}*/${r}`:r)},resume:a}},e.withAutocomplete=function(e){return e},e}({});//# sourceMappingURL=twind.global.js.map
var twind=function(e){"use strict";let t;function r(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function n(e,t=","){return e.map(r).join(t)}let i="undefined"!=typeof CSS&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function o(e){for(var t=9,r=e.length;r--;)t=Math.imul(t^e.charCodeAt(r),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 a(){}let c={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:n=[]},i,o,s){for(let a of(e&&(e=r({n:e,i:t,v:n})),s=[...u(s)],n)){let c=i.theme("screens",a);for(let f of u(c&&l(c)||i.v(a))){var d;s.push(f),o|=c?67108864|p(f):"dark"==a?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 r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function m(){return y.apply(this,arguments)}function v(e){if(e.d){let t=[],r=b(e.r.reduce((e,r)=>"@"==r[0]?(t.push(r),e):r?b(e,e=>b(r,t=>{let r=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(t);if(r){let n=e.indexOf(r[1]);return~n?e.slice(0,n)+r[0]+e.slice(n+r[1].length):$(e,t)}return $(t,e)})):e,"&"),t=>$(t,e.n?"."+i(e.n):""));return r&&t.push(r.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((e,t)=>t+"{"+e+"}",e.d)}}function b(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(e,r,n)=>t(r)+n)}function $(e,t){return e.replace(/&/g,t)}let w=new Intl.Collator("en",{numeric:!0});function x(e,t){for(var r=0,n=e.length;r<n;){let i=n+r>>1;0>=A(e[i],t)?r=i+1:n=i}return n}function A(e,t){let r=e.p&c.o;return r==(t.p&c.o)&&(r==c.b||r==c.o)?0:e.p-t.p||e.o-t.o||w.compare(e.n,t.n)}function j(e,t){return Math.round(parseInt(e,16)*t)}function k(e,t={}){if("function"==typeof e)return e(t);let{opacityValue:r="1",opacityVariable:n}=t,i=n?`var(${n})`:r;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(${[j(e.substr(1,o),l),j(e.substr(1+o,o),l),j(e.substr(1+2*o,o),l),i]})`}return"1"==i?e:"0"==i?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${i})`)}function O(e,t,r,n,i=[]){return function e(t,{n:r,p:n,r:i=[],i:s},a){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(...E(r,n,P(""+w),a,n,i,s,!0));continue}if("l"==m[1]){for(let x of u(w))h.push(...e(x,{n:r,p:(b=c[m[7]],n&~c.o|b),r:i,i:s},a));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:c.d,o:0,r:[m],d:e(w,{p:c.d},a).map(v).join("")});continue}if("f"==m[1]){h.push(...u(w).map(t=>({p:c.d,o:0,r:[m],d:e(t,{p:c.d},a).map(v).join("")})));continue}}if("object"!=typeof w||Array.isArray(w))"label"==m&&w?r=w+o(JSON.stringify([n,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=>a.s(m,S(""+e,a.theme)+(s?" !important":""))).join(";"));else if("@"==m[0]||m.includes("&")){let j=n;"@"==m[0]&&(m=m.replace(/\bscreen\(([^)]+)\)/g,(e,t)=>{let r=a.theme("screens",t);return r?(j|=67108864,l(r,"")):e}),j|=p(m)),h.push(...e(w,{n:r,p:j,r:[...i,m],i:s},a))}else h.push(...e(w,{p:n,r:[...i,m]},a))}return h.unshift({n:r,p:n,o:Math.max(0,15-y)+1.5*Math.min(g||15,15),r:i,d:d}),h.sort(A)}(e,d(t,r,n,i),r)}function S(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(e,r,n,i,o)=>{let l=t(n,o);return"function"==typeof l&&/color|fill|stroke/i.test(n)?k(l):""+l})}function M(e,t){let r;let n=[];for(let i of e)i.d&&i.n?(null==r?void 0:r.p)==i.p&&""+r.r==""+i.r?(r.c=[r.c,i.c].filter(Boolean).join(" "),r.d=r.d+";"+i.d):n.push(r=m({},i,{n:i.n&&t})):n.push(m({},i,{n:i.n&&t}));return n}function C(e,t,n=c.u,i,o){let l=[];for(let s of e)for(let a of function(e,t,n,i,o){var l;e=m({},e,{i:e.i||o});let s=function(e,t){let r=g.get(e.n);return r?r(e,t):t.r(e.n,"dark"==e.v[0])}(e,t);return s?"string"==typeof s?({r:i,p:n}=d(e,t,n,i),M(C(P(s),t,n,i,e.i),e.n)):Array.isArray(s)?s.map(e=>{var t,r;return m({o:0},e,{r:[...u(i),...u(e.r)],p:(t=n,r=null!=(l=e.p)?l:n,t&~c.o|r)})}):O(s,e,t,n,i):[{c:r(e),p:0,o:0,r:[]}]}(s,t,n,i,o))l.splice(x(l,a),0,a);return l}function E(e,t,r,n,i,o,l,u){return M((u?r.flatMap(e=>C([e],n,i,o,l)):C(r,n,i,o,l)).map(e=>e.p&c.o&&(e.n||t==c.b)?m({},e,{p:e.p&~c.o|t,o:0}):e),e)}function R(e,t,r,n){var i;return i=(e,i)=>{let{n:o,p:l,r:u,i:s}=d(e,i,t);return r&&E(o,t,r,i,l,u,s,n)},g.set(e,i),e}function N(e,t){if("("!=e[e.length-1]){let r=[],n=!1,i=!1,o="";for(let l of e)if(!("("==l||/[~@]$/.test(l))){if("!"==l[0]&&(l=l.slice(1),n=!n),l.endsWith(":")){r["dark:"==l?"unshift":"push"](l.slice(0,-1));continue}"-"==l[0]&&(l=l.slice(1),i=!i),l.endsWith("-")&&(l=l.slice(0,-1)),l&&"&"!=l&&(o+=(o&&"-")+l)}o&&(i&&(o="-"+o),t[0].push({n:o,v:r.filter(V),i:n}))}}function V(e,t,r){return r.indexOf(e)==t}let z=new Map;function P(e){let t=z.get(e);if(!t){let r=[],i=[[]],l=0,u=0,s=null,a=0,f=(t,n=0)=>{l!=a&&(r.push(e.slice(l,a+n)),t&&N(r,i)),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=i.shift();r.length=h,N([...r,"#"],i);let{v:y}=i[0].pop();for(let m of g)m.v.splice(+("dark"==m.v[0])-+("dark"==y[0]),y.length);N([...r,R(d.length>1?d.slice(0,-1)+o(JSON.stringify([d,g])):d+"("+n(g)+")",c.a,g,/@$/.test(d))],i)}h=r.lastIndexOf("(",h-1)}r.length=h+1}else/[~@]/.test(p)&&"("==e[a+1]&&i.unshift([])}f(!0),z.set(e,t=i[0])}return t}function T(e,t,r){return t.reduce((t,n,i)=>t+r(n)+e[i+1],e[0])}function F(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?T(e,t,e=>_(e).trim()):t.filter(Boolean).reduce((e,t)=>e+_(t),e?_(e):"")}function _(e){let t,r="";if(e&&"object"==typeof e){if(Array.isArray(e))(t=F(e[0],e.slice(1)))&&(r+=" "+t);else for(let n in e)e[n]&&(r+=" "+n)}else null!=e&&"boolean"!=typeof e&&(r+=" "+e);return r}let I=q("@"),L=q("~");function q(e){return new Proxy(function(e,...r){return t("",e,r)},{get:(e,r)=>r in e?e[r]:function(e,...n){return t(r,e,n)}});function t(t,r,i){return n(P(t+e+"("+F(r,i)+")"))}}function D(e,t){return Array.isArray(e)?B(T(e,t,e=>null!=e&&"boolean"!=typeof e?e:"")):"string"==typeof e?B(e):[e]}let J=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function B(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let r=[{}],n=[r[0]],i=[];for(;t=J.exec(e);)t[4]&&(r.shift(),i.shift()),t[3]?(i.unshift(t[3]),r.unshift({}),n.push(i.reduce((e,t)=>({[t]:e}),r[0]))):t[4]||(r[0][t[1]]&&(r.unshift({}),n.push(i.reduce((e,t)=>({[t]:e}),r[0]))),r[0][t[1]]=t[2]);return n}function U(e,...t){var r,n;let i=D(e,t),l=((null==(r=i.find(e=>e.label))?void 0:r.label)||"css")+o(JSON.stringify(i));return n=(e,t)=>M(i.flatMap(r=>O(r,e,t,c.o)),l),g.set(l,n),l}let W=new Proxy(function(e,t){return G("animation",e,t)},{get:(e,t)=>t in e?e[t]:function(e,r){return G(t,e,r)}});function G(e,t,r){return{toString:()=>U({label:e,"@layer components":m({},"object"==typeof t?t:{animation:t},{animationName:""+r})})}}let Y=Symbol();function Z(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}function H(e){var{presets:t=[]}=e,r=Z(e,["presets"]);let n={preflight:!1!==r.preflight&&[],darkMode:void 0,darkColor:void 0,theme:{},variants:u(r.variants),rules:u(r.rules),ignorelist:u(r.ignorelist),hash:r.hash,stringify:r.stringify||K};for(let i of u([...t,{darkMode:r.darkMode,darkColor:r.darkColor,preflight:!1!==r.preflight&&u(r.preflight),theme:r.theme,hash:r.hash,stringify:r.stringify}])){let{preflight:o,darkMode:l=n.darkMode,darkColor:s=n.darkColor,theme:a,variants:c,rules:f,ignorelist:p,hash:h=n.hash,stringify:d=n.stringify}="function"==typeof i?i(n):i;n={preflight:!1!==n.preflight&&!1!==o&&[...n.preflight,...u(o)],darkMode:l,darkColor:s,theme:m({},n.theme,a,{extend:m({},n.theme.extend,null==a?void 0:a.extend)}),variants:[...n.variants,...u(c)],rules:[...n.rules,...u(f)],ignorelist:[...n.ignorelist,...u(p)],hash:h,stringify:d}}return n}function K(e,t){return e+":"+t}function Q(e,t){return"function"==typeof e?e:"string"==typeof e&&/^[\w-]+$/.test(e)?(r,n)=>({[e]:t?t(r,n):X(r,1)}):t=>e||{[t[1]]:X(t,2)}}function X(e,t,r=e.slice(t).find(Boolean)||e.$$||e.input){return"-"==e.input[0]?`calc(${r} * -1)`:r}function ee(e,t,r){let n="string"==typeof t?(e,n)=>({[t]:r?r(e,n):e._}):t||(({1:e,_:t},r,n)=>({[e||n]:t}));return(t,r)=>{var i;let o=ei(e||t[1]),l=null!=(i=r.theme(o,t.$$))?i:en(t.$$,o,r);if(null!=l)return t._=X(t,0,l),n(t,r,o)}}function et(e={},t){return(r,n)=>{let{section:i=ei(r[0]).replace("-","")+"Color"}=e;if(!/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/.test(r.$$))return;let{$1:o,$2:l}=RegExp,u=n.theme(i,o)||en(o,i,n);if(!u||"object"==typeof u)return;let{opacityVariable:s=`--tw-${r[0].replace(/-$/,"")}-opacity`,opacitySection:a=i.replace("Color","Opacity"),property:c=i,selector:f}=e,p=n.theme(a,l||"DEFAULT")||l&&en(l,a,n),h=t||(({_:e})=>{let t=er(c,e);return f?{[f]:t}:t});r._={value:k(u,{opacityVariable:s||void 0,opacityValue:p||void 0}),color:e=>k(u,e),opacityVariable:s||void 0,opacityValue:p||void 0};let d=h(r,n);if(!r.dark){let g=n.d(i,o,u);g&&g!==u&&(r._={value:k(g,{opacityVariable:s||void 0,opacityValue:p||"1"}),color:e=>k(g,e),opacityVariable:s||void 0,opacityValue:p||void 0},d={"&":d,[n.v("dark")]:h(r,n)})}return d}}function er(e,t){let r={};return"string"==typeof t?r[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(r[t.opacityVariable]=t.opacityValue||"1"),r[e]=t.value),r}function en(e,t,r){if("["==e[0]&&"]"==e.slice(-1)&&(e=eo(S(e.slice(1,-1),r.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 ei(e){return e.replace(/-./g,e=>e[1].toUpperCase())}function eo(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(e,t="",r,n="")=>eo(t)+r+eo(n)):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 "))}function el(e,t,r,n,i,o){for(let l of t){let u=r.get(l);u||r.set(l,u=n(l));let s=u(e,i,o);if(s)return s}}function eu(e){var t;return ea(e[0],"function"==typeof(t=e[1])?t:()=>t)}function es(e){var t,r;return Array.isArray(e)?ea(e[0],Q(e[1],e[2])):ea(e,Q(t,r))}function ea(e,t){return ec(e,(e,r,n,i)=>{let o=r.exec(e);if(o)return o.$$=e.slice(o[0].length),o.dark=i,t(o,n)})}function ec(e,t){let r=u(e).map(ef);return(e,n,i)=>{for(let o of r){let l=t(e,o,n,i);if(l)return l}}}function ef(e){return"string"==typeof e?RegExp("^"+e+(e.includes("$")||"-"==e.slice(-1)?"":"$")):e}function ep(e,t){return e.replace(/--(tw(?:-[\w-]+)?)\b/g,(e,r)=>"--"+t(r).replace("#",""))}function eh(e,t){let r=H(e),n=function({theme:e,darkMode:t,darkColor:r,variants:n,rules:l,hash:a,stringify:c,ignorelist:f}){let p=new Map,h=new Map,d=new Map,g=new Map,y=ec(f,(e,t)=>t.test(e));n.push(["dark",Array.isArray(t)||"class"==t?`${u(t)[1]||".dark"} &`:"string"==typeof t&&"media"!=t?t:"@media (prefers-color-scheme:dark)"]);let m="function"==typeof a?e=>a(e,o):a?o:s;return{theme:function(e){var{extend:t={}}=e,r=Z(e,["extend"]);let n={},i={get colors(){return o("colors")},theme:o,negative:()=>({}),breakpoints(e){let t={};for(let r in e)"string"==typeof e[r]&&(t["screen-"+r]=e[r]);return t}};return o;function o(e,i,u,s){if(e){var a;if({1:e,2:s}=/^(\S+?)(?:\s*\/\s*([^/]+))?$/.exec(e)||[,e],/[.[]/.test(e)){let c=[];e.replace(/\[([^\]]+)\]|([^.[]+)/g,(e,t,r=t)=>c.push(r)),e=c.shift(),u=i,i=c.join("-")}let f=n[e]||Object.assign(Object.assign(n[e]={},l(r,e)),l(t,e));if(null==i)return f;let p=null!=(a=f[i||"DEFAULT"])?a:u;return s?k(p,{opacityValue:S(s,o)}):p}let h={};for(let d of[...Object.keys(r),...Object.keys(t)])h[d]=o(d);return h}function l(e,t){let r=e[t];return("function"==typeof r&&(r=r(i)),r&&/color|fill|stroke/i.test(t))?function e(t,r=[]){let n={};for(let i in t){let o=t[i],l=[...r,i];n[l.join("-")]=o,"DEFAULT"==i&&(l=r,n[r.join("-")]=o),"object"==typeof o&&Object.assign(n,e(o,l))}return n}(r):r}}(e),e:i,h:m,s(e,t){return c(ep(e,m),ep(t,m),this)},d(e,t,n){return null==r?void 0:r(e,t,this,n)},v(e){return p.has(e)||p.set(e,el(e,n,h,eu,this)||"&:"+e),p.get(e)},r(e,t){let r=JSON.stringify([e,t]);return d.has(r)||d.set(r,!y(e,this)&&el(e,l,g,es,this,t)),d.get(r)}}}(r),l=new Map,a=[],f=new Set;function p(e){let r=e.n&&n.h(e.n),i=v(r?m({},e,{n:r}):e);if(i&&!f.has(i)){f.add(i);let o=x(a,e);t.insert(i,o,e),a.splice(o,0,e)}return r}return t.resume(e=>l.set(e,e),(e,r)=>{t.insert(e,a.length,r),a.push(r),f.add(e)}),Object.defineProperties(function(e){if(!l.size)for(let t of u(r.preflight))"function"==typeof t&&(t=t(n)),t&&("string"==typeof t?E("",c.b,P(t),n,c.b,[],!1,!0):O(t,{},n,c.b)).forEach(p);e=""+e;let i=l.get(e);if(!i){let o=new Set;for(let s of C(P(e),n))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:n.theme,config:r,snapshot(){let e=t.snapshot(),r=new Set(f),n=new Map(l),i=[...a];return()=>{e(),f=r,l=n,a=i}},clear(){t.clear(),f=new Set,l=new Map,a=[]},destroy(){this.clear(),t.destroy()}}))}function ed(e,t){return e!=t&&""+e.split(" ").sort()!=""+t.split(" ").sort()}function eg(e=ex,t=document.documentElement){if(!t)return e;let r=new MutationObserver(i);r.observe(t,{attributeFilter:["class"],subtree:!0,childList:!0}),o(t),i([{target:t,type:""}]);let{destroy:n}=e;return e.destroy=()=>{r.disconnect(),n.call(e)},e;function i(e){for(let{type:t,target:n}of e)if("a"==t[0])o(n);else for(let i of n.querySelectorAll("[class]"))o(i);r.takeRecords()}function o(t){let r;let n=t.getAttribute("class");n&&ed(n,r=e(n))&&t.setAttribute("class",r)}}function ey(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 em(e){let t=(null==e?void 0:e.cssRules)?e:(e&&"string"!=typeof e?e:ey(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,r){try{t.insertRule(e,r)}catch(n){t.insertRule(":root{}",r),/:-[mwo]/.test(e)}},resume:a}}function ev(e){let t=e&&"string"!=typeof e?e:ey(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,r){t.insertBefore(document.createTextNode(e),t.childNodes[r]||null)},resume:a}}function eb(e,t){let r=e?ev():em();return t||(r.resume=ew),r}function e$(e){return(e.ownerNode||e).textContent||(e.cssRules?Array.from(e.cssRules,e=>e.cssText):u(e)).join("")}function ew(e,t){let r=e$(this.target),n=/\/\*!([\da-z]+),([\da-z]+)(?:,(.+?))?\*\//g;if(n.test(r)){var i;let o;for(let l of(n.lastIndex=0,this.clear(),document.querySelectorAll("[class]")))e(l.getAttribute("class"));for(;i=n.exec(r),o&&t(r.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;);}}let ex=new Proxy(a,{apply:(e,r,n)=>t(n[0]),get(e,r){let n=t[r];return"function"==typeof n?function(){return n.apply(t,arguments)}:n}});function eA(e={},r=eb,n){return null==t||t.destroy(),t=eg(eh(e,"function"==typeof r?r():r),n)}let ej=function e(t){return new Proxy(function(e,...r){return ek(t,"",e,r)},{get:(r,n)=>"bind"===n?e:n in r?r[n]:function(e,...r){return ek(t,n,e,r)}})}();function ek(e,t,r,n){return{toString(){let l=D(r,n),u=i(t+o(JSON.stringify([t,l])));return("function"==typeof e?e:ex)(U({[`@keyframes ${u}`]:D(r,n)})),u}}}function eO(e,t=ex){let r=t.snapshot(),n={html:eS(e,t),css:e$(t.target)};return r(),n}function eS(e,t=ex){let r="",n=0;return!function(e,t){let r=1,n=0,i="",o="",l=l=>{5==r&&"class"==o&&!1===t(n,l,i)&&(e="")};for(let u=0;u<e.length;u++){let s=e[u];1==r?"<"==s&&(r="!--"==e.substr(u+1,3)?4:3):4==r?">"==s&&"--"==e.slice(u-2,u)&&(r=1):i?s==i&&"\\"!=e[u-1]&&(l(u),r=2,i=""):'"'==s||"'"==s?(i=s,n+=1):">"==s?(l(u),r=1):r&&("="==s?(o=e.slice(n,u),r=5,n=u+1):"/"==s&&(r<5||">"==e[u+1])?(l(u),r=0):/\s/.test(s)&&(l(u),r=2,n=u+1))}}(e,(i,o,l)=>{var u;let s=e.slice(i,o),a=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,"&"));ed(s,a)&&(l=l?"":'"',r+=e.slice(n,i)+l+a+l,n=o)}),r+e.slice(n,e.length)}let eM=(e,t)=>"function"==typeof e?eC(t,e):eC(e);function eC(e={},t){let{label:r="style",base:n,props:l={},defaults:u,when:s=[]}=e,a=m({},null==t?void 0:t.defaults,u),f=o(JSON.stringify([r,null==t?void 0:t.className,n,l,a,s])),p=h("",n||"",c.c);function h(e,n,i){return R(((t?t.className.replace(/#.+$/,"~"):"")+r+e+f).replace(/[: ,()[\]]/,""),i,n&&P(n))}return Object.defineProperties(function(e){let r,n;Array.isArray(e)&&(r=!0,e=Object.fromEntries(new URLSearchParams(e[1]).entries()));let i=m({},a,e),o=r?"":(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 n="",f){let y=c[f[g]];y&&(d+="@"+g+"-"+f[g],n+=(n&&" ")+("_"==g?y:g+":("+y+")"))}n&&(o+=" "+h("--"+u+"-"+d,n,402653184))}else(n=c[f])&&(o+=" "+h("--"+u+"-"+f,n,402653184))}return s.forEach((e,t)=>{let r="";for(let l in e[0]){let u=i[l];if(u!==Object(u)&&""+u==""+e[0][l])r+=(r&&"_")+l+"-"+u;else{r="";break}}r&&(n=e[1])&&(o+=" "+h("-"+t+"--"+r,n,536870912))}),o},Object.getOwnPropertyDescriptors({className:p,defaults:a,selector:"."+i(p)}))}return e.animation=W,e.apply=I,e.arbitrary=en,e.asArray=u,e.auto=function(e){if(document.currentScript){let t=()=>r.disconnect(),r=new MutationObserver(r=>{for(let{target:n}of r)if(n===document.body)return e(),t()});return r.observe(document.documentElement,{childList:!0,subtree:!0}),t}return a},e.autoDarkColor=function(e,t,{theme:r}){return r(e,t=t.replace(/\d+$/,e=>100*(9-~~(parseInt(e,10)/100)||.5)))},e.colorFromTheme=et,e.consume=eS,e.css=U,e.cssom=em,e.cx=function(e,...t){return n(P(F(e,t))," ")},e.defineConfig=H,e.dom=ev,e.escape=i,e.extract=eO,e.fromMatch=Q,e.fromTheme=ee,e.getAutocompleteProvider=function(e){return e[Y]},e.getSheet=eb,e.hash=o,e.identity=s,e.injectGlobal=function(e,...t){("function"==typeof this?this:ex)(U({"@layer base":D(e,t)}))},e.inline=function(e,t={}){let{tw:r=ex,minify:n=s}="function"==typeof t?{tw:t}:t,{html:i,css:o}=eO(e,r);return i.replace("</head>",`<style data-twind>${n(o,i)}</style></head>`)},e.install=function(e,t=!0){var r;let n=H(e);return eA(m({},n,{hash:null!=(r=n.hash)?r:t}),()=>eb(!t))},e.keyframes=ej,e.match=function(e,t,r){return[e,Q(t,r)]},e.matchColor=function(e,t={},r){return[e,et(t,r)]},e.matchTheme=function(e,t,r,n){return[e,ee(t,r,n)]},e.mql=l,e.noop=a,e.normalize=eo,e.observe=eg,e.parse=P,e.setup=eA,e.shortcut=L,e.stringify=e$,e.style=eM,e.toCSS=er,e.toColorValue=k,e.tw=ex,e.twind=eh,e.tx=function(e,...t){return("function"==typeof this?this:ex)(F(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(r,n,i){t.splice(n,0,e?`/*!${i.p.toString(36)},${(2*i.o).toString(36)}${i.n?","+i.n:""}*/${r}`:r)},resume:a}},e.withAutocomplete=function(e){return e},e}({});//# sourceMappingURL=twind.global.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 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 too big to display

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