Comparing version 0.4.0 to 0.5.0
{ | ||
"name": "twind", | ||
"version": "0.4.0", | ||
"version": "0.5.0", | ||
"description": "compiles tailwind like shorthand syntax into css at runtime", | ||
@@ -32,12 +32,6 @@ "keywords": [ | ||
}, | ||
"./shim/auto": { | ||
"node": "./shim/auto/auto.cjs", | ||
"script": "./shim/auto/auto.umd.js", | ||
"types": "./shim/auto/auto.d.ts", | ||
"default": "./shim/auto/auto.js" | ||
}, | ||
"./package.json": "./package.json" | ||
}, | ||
"sideEffects": [ | ||
"./dist/shim/auto/auto.js" | ||
"./dist/shim/shim.js" | ||
], | ||
@@ -44,0 +38,0 @@ "dependencies": { |
125
README.md
# twind | ||
> the smallest, fastest, most feature complete Tailwind-in-JS solution ever | ||
> the smallest, fastest, most feature complete Tailwind-in-JS solution in existence | ||
@@ -8,4 +8,4 @@ [![MIT License](https://badgen.net/github/license/tw-in-js/twind)](https://github.com/tw-in-js/twind/blob/main/LICENSE) | ||
[![Bundle Size](https://flat.badgen.net/bundlephobia/minzip/twind?icon=packagephobia&label&color=blue)](https://bundlephobia.com/result?p=twind 'gzip bundle size (including dependencies)') | ||
[![Package Size](https://flat.badgen.net/badgesize/brotli/https:/unpkg.com/twind/module/twind.js?icon=jsdelivr&label&color=blue)](https://unpkg.com/twind/module/twind.js 'brotli package size (without dependencies)') | ||
[![Typescript](https://flat.badgen.net/badge/icon/included?icon=typescript&label)](https://unpkg.com/browse/twind/types/index.d.ts) | ||
[![Package Size](https://flat.badgen.net/badgesize/brotli/https:/unpkg.com/twind/twind.js?icon=jsdelivr&label&color=blue)](https://unpkg.com/twind/twind.js 'brotli package size (without dependencies)') | ||
[![Typescript](https://flat.badgen.net/badge/icon/included?icon=typescript&label)](https://unpkg.com/browse/twind/twind.d.ts) | ||
[![Github](https://flat.badgen.net/badge/icon/tw-in-js%2Ftwind?icon=github&label)](https://github.com/tw-in-js/twind) | ||
@@ -18,7 +18,7 @@ [![CI](https://github.com/tw-in-js/twind/workflows/CI/badge.svg)](https://github.com/tw-in-js/twind/actions?query=workflow%3Aci) | ||
If you are here then the likelihood is that you have heard of and are interested in, or have used both Tailwind and CSS-in-JS libraries such as styled components, emotion or goober before. These packages have revolutionized web development and for one reason or another, have proved overwhelmingly popular with the community. | ||
If you are here then the likelihood is that you using in Tailwind or CSS-in-JS libraries such as styled components, emotion or goober before. These packages have proven overwhelmingly popular and revolutionized web development as we know it. | ||
The purpose of this project is to create and maintain the smallest, fastest, most feature complete Tailwind-in-JS solution in the world. Exercising the flexibility of CSS-in-JS within the constraints of the Tailwind API. | ||
The purpose of this project is unify these two philosophies and create the smallest, fastest, most feature complete Tailwind-in-JS solution in existence. Embracing the flexibility of CSS-in-JS whilst conforming to the natural constraints of the Tailwind API. | ||
We aim to create a place for likeminded people to discuss issues and share implementations around this idea. | ||
More importantly though, we hope to create a place for likeminded people to discuss issues and share ideas. | ||
@@ -29,6 +29,6 @@ ## Quickstart | ||
> ⚡️ Alternatively try the [live and interactive demo](https://esm.codes/#aW1wb3J0IHsgdHcsIHNldHVwIH0gZnJvbSAnaHR0cHM6Ly9jZG4uc2t5cGFjay5kZXYvdHdpbmQnCgpkb2N1bWVudC5ib2R5LmlubmVySFRNTCA9IGAKICA8bWFpbiBjbGFzcz0iJHt0d2BiZy1ibGFjayB0ZXh0LXdoaXRlYH0iPgogICAgPGgxIGNsYXNzPSIke3R3YHRleHQteGxgfSI+VGhpcyBpcyBUYWlsd2luZCBpbiBKUyE8L2gxPgogIDwvbWFpbj4KYA==) | ||
> ⚡️ Alternatively try the [live and interactive demo](https://esm.codes/#aW1wb3J0IHsgdHcsIHNldHVwIH0gZnJvbSAnaHR0cHM6Ly9jZG4uc2t5cGFjay5kZXYvdHdpbmQnCgpzZXR1cCh7CiAgdGhlbWU6IHsKICAgIC8vIEV4YW1wbGUgb2YgZXh0ZW5kaW5nIHRoZSBkZWZhdWx0IHRoZW1lCiAgICBleHRlbmQ6IHsKICAgICAgY29sb3JzOiB7IGhvdHBpbms6ICcjRkYwMEZGJyB9LAogICAgICByb3RhdGU6IHsgNTogJzVkZWcnIH0KICAgIH0KICB9Cn0pCgpjb25zdCBhcHAgPSAoKSA9PiBgCiAgICA8ZGl2IGNsYXNzPScke3N0eWxlLmNvbnRhaW5lcn0nPgogICAgICA8aDEgY2xhc3M9JyR7CiAgICAgICAgLy8gRXhhbXBsZSBvZiBhbiBpbmxpbmUgc3R5bGUKICAgICAgICB0d2AKICAgICAgICAgIHRleHQod2hpdGUgNHhsKQogICAgICAgICAgZm9udChib2xkIHNhbnMpCiAgICAgICAgICB0cmFuc2l0aW9uLXRyYW5zZm9ybQogICAgICAgICAgaG92ZXI6KAogICAgICAgICAgICByb3RhdGUtNQogICAgICAgICAgICBzY2FsZS0xNTAKICAgICAgICAgICAgY3Vyc29yLXBvaW50ZXIKICAgICAgICAgICkKICAgICAgICBgCiAgICAgIH0nPkhlbGxvIFdvcmxkPC9oMT4KICAgIDwvZGl2PgogIGA7CiAgCiAgCmNvbnN0IHN0eWxlID0gewogIC8vIEV4YW1wbGUgb2YgYWJzdHJhY3RlZCBzdHlsZQogIGNvbnRhaW5lcjogdHdgCiAgICBoLWZ1bGwKICAgIGJnLWhvdHBpbmsKICAgIGZsZXgKICAgIGl0ZW1zLWNlbnRlcgogICAganVzdGlmeS1jZW50ZXIKICBgCn0KCmRvY3VtZW50LmJvZHkuaW5uZXJIVE1MID0gYXBwKCk=) | ||
```js | ||
import { tw, setup } from 'https://cdn.skypack.dev/twind' | ||
import { tw } from 'https://cdn.skypack.dev/twind' | ||
@@ -42,53 +42,100 @@ document.body.innerHTML = ` | ||
For further instruction on usage please [read the documentation](docs)! | ||
> 📚 For further instruction on usage please [read the documentation](https://github.com/tw-in-js/twind/tree/main/docs)! | ||
## Rational | ||
This project was started by the authors of two similar libraries – [oceanwind](https://github.com/lukejacksonn/oceanwind) and [beamwind](https://github.com/kenoxa/beamwind) – who chose to collaborate rather than compete with each other in this space. The open source community is full of fragmentation but we wanted to see cohesion here. We hope that combining efforts helps us coin standards for certain aspects of the implementation; things like input parsing, [grouping syntax](./docs/grouping.md) and prescedence calculation. | ||
This project was started by the authors of two similar libraries – [oceanwind](https://github.com/lukejacksonn/oceanwind) and [beamwind](https://github.com/kenoxa/beamwind) – who chose to collaborate rather than compete with each other in this space. The open source community is full of fragmentation but we wanted to see cohesion here. | ||
## Challenges | ||
Combining efforts has saved us time and resulted in a much more complete and production ready offering. Furthermore we were able to agree on and coin some standards for certain aspects of the implementation, based on all of our learnings; things like parsing input, [grouping syntax](https://github.com/tw-in-js/twind/blob/main/docs/grouping.md), prescedence calculation and [plugin API](https://github.com/tw-in-js/twind/blob/main/docs/plugins.md). | ||
The core problems we are trying to solve here are as follows: | ||
## Why twind? | ||
1. Parsing Input: taking input and normalizing it to create a comprehendable set of Tailwind rules | ||
2. Merging Themes: combining JSON themes which configure and constrain the compiler | ||
3. Compiling Rules: taking a set of Tailwind rules and translating them into appropriate CSS rules | ||
4. Injecting Styles: taking CSS rules and generating classes that get append to a stylesheet in the DOM | ||
5. Custom Plugins: taking functions and using them to extend the capabilities of the compiler | ||
A lot of developers ask _"Why not just use Tailwind?"_ and our answer is always that you should use Tailwind, it is an absolutely incredible invention! However, if like us you are already building your app in JS using a framework like react, preact, vue or svelte, rather than just static HTML, then compiling Tailwind shorthand just in time (like twind does) rather than ahead of time like with Tailwind and PostCSS, comes with a lot of advantages. | ||
This has to happen in a performant way at runtime, whilst adhering to Tailwind V2 as a language specification. All grammars that exist in Tailwind should be covered by this implementation. | ||
> I've wanted to do a CSS-in-JS flavor of Tailwind for over 2 years because of all the neat benefits you get there so it's cool to see projects like this! – [@adamwathan](https://twitter.com/adamwathan/status/1320370489408225282) | ||
## Opportunities | ||
Take the following snippet for example: | ||
Simply recreating a tailwind like experience at runtime might seem like a futile exercise but we'd like to believe it opens up the doors to some exciting new possibilities. There is always going to be a tradeoff between compiling at ahead of time and compiling _just in time_, however we are confident the upsides here are significant enough to persue a runtime implementation and the results have been promising so far. | ||
```js | ||
import { tw, setup, strict } from 'https://cdn.skypack.dev/twind' | ||
> Note it is still possible to remove all runtime overhead via a prepass either at serve or built time | ||
setup({ | ||
hash: true, // Hashes all generated class names | ||
mode: strict, // Throw errors for invalid rules instead of logging | ||
theme: { | ||
fontFamily: { | ||
sans: ['Helvetica', 'sans-serif'], | ||
serif: ['Times', 'serif'], | ||
display: ['Baloo', 'sans-serif'], | ||
}, | ||
extend: { | ||
colors: { hotpink: '#FF00FF' }, | ||
rotate: { 5: '5deg' }, | ||
}, | ||
}, | ||
plugins: { | ||
'scroll-snap': (parts) => ({ | ||
'scroll-snap-type': parts.join(' '), | ||
}), | ||
}, | ||
}) | ||
The flexible nature of a runtime first approach affords us possibilities like: | ||
const app = () => ` | ||
<div class='${style.container}'> | ||
<h1 class='${tw` | ||
text(white 4xl) | ||
font(bold sans) | ||
transition-transform | ||
hover:( | ||
rotate-5 | ||
scale-150 | ||
cursor-pointer | ||
) | ||
`}'>Hello World</h1> | ||
</div> | ||
` | ||
- Dynamic Theming: generating new themes on the fly without the need to recompile anything | ||
- Unlimited Variants: enabling every variant combination by default because unused rules are never generated | ||
- Enhanced Syntax: taking advantage of macros within template literals to create more terse rules | ||
- Error Handling: warning the developer about duplicate and missing variants or directives | ||
- Hashing Classes: reducing the overall output size and eliminating conflicts via deterministic hashing | ||
- Inline Plugins: extending the capabilities of the compiler with simple functions at runtime | ||
const style = { | ||
container: tw` | ||
h-full | ||
bg-hotpink | ||
md:(bg-purple-500) | ||
lg:(bg-white text-hotpink) | ||
flex | ||
items-center | ||
justify-center | ||
`, | ||
} | ||
Another big advantage we see of shipping the interpreter compiler itself (rather than pre-compiled output) is that the effective size of the CSS for your whole app is deterministic and fixed. The weight of the compiler itself along with your theme file is all that users will ever download, no matter how many styles you use. | ||
document.body.innerHTML = app() | ||
``` | ||
Currently the compiler weighs around 10KB which is smaller than styled-components and the average tailwind output. | ||
- All setup is done at runtime, no build step required! This makes that is possible to configure and reconfigure the compiler on the fly. | ||
- By shipping the compiler (rather than the resultant output) there is a known and fixed cost associated with styling. No matter how many styles you write or how many variants you use, all your users will ever have to download is approximately 10Kb of code (which is less than styled-components or your average Tailwind build). | ||
- By default the [base reset](https://tailwindcss.com/docs/preflight) provided by tailwind is instantiated with your theme values (like fonts and colors) and injected in the document during setup. Guaranteeing more consistent cross browser results out of the box. | ||
- It is possible to configure twind to [hash class names](https://github.com/tw-in-js/twind/blob/main/docs/customization.md#hash) before injecting them into the DOM. This can reduce the overall down the wire size of pages and eliminate any chance of class name conflicts. | ||
- Theming is done exactly as [documented by the Tailwind](https://tailwindcss.com/docs/theme) meaning that you can copy paste in your project theme from existing projects. The only different here is that there is no need to rebuild after changing you theme. Just refresh the page! | ||
- Input to the compiler is not limited to just a string like HTML classes are. Twind accept arrays, objects, template literals, functions, almost everything! The interpretter spec is inspired by and very similar to [clsx](https://github.com/lukeed/clsx) and offers a much more developer friendly API that handles null values gracefully. | ||
- Using template literals as input ([the recommended method](https://github.com/tw-in-js/twind/blob/main/docs/usage.md#template-literal-recommended)) allows you to break rules over multiple lines, drastically improving readability and maintainability. | ||
- Control over the interpreter affords us the possibility of defining syntax for [grouping responsive and pseudo variants](https://github.com/tw-in-js/twind/blob/main/docs/grouping.md) as well as directives with common prefixes. This massively reduces repetition and improves comprehension. | ||
- The fact that the compiler [accepts functions](https://github.com/tw-in-js/twind/blob/main/docs/usage.md#inline-plugins) that return arbritary CSS-in-JS provides an escape hatch for all those one off rules which aren't supported by tailwind. The `&` keyword allows you to write complex rules (like pseudo elements `&::before` and `&::after`) that are beyond the scope of inline styles. | ||
- Given the finite grammars that the compiler has to support, we are able to specialize it to compile and inject CSS faster than all the popular CSS-in-JS solutions. | ||
- Extending the grammar is trivial and can be achieved by providing a function _inline_ or generalizing inline rules and defining them during setup under [the _plugins_ key](https://github.com/tw-in-js/twind/blob/main/docs/plugins.md). | ||
- The compiler itself is not reliant on the DOM at all, which makes it an ideal candidate for static extraction which would remove all runtime overhead. This is possible during SSR or build time prepass. | ||
## Inspiration | ||
## Prior Art | ||
It goes without saying that the primary inspiration here comes from Tailwind. It is a revolutionary take on styling the web which has proven popular by designers and developers alike. All the core plugins here, abide by the rules painstakingly thought out, implemented and popularized by Adam Wathan et al. making us forever in his debt. | ||
It would be untrue to suggest that the design here is totally original, other than the founders initial attempts at implementing such a module ([oceanwind](https://github.com/lukejacksonn/oceanwind) and [beamwind](https://github.com/kenoxa/beamwind)) we are truly standing on the shoulders of giants. Prior art includes but is not limited to: | ||
> I've wanted to do a CSS-in-JS flavor of Tailwind for over 2 years because of all the neat benefits you get there so it's cool to see projects like this! – [@adamwathan](https://twitter.com/adamwathan/status/1320370489408225282) | ||
- [tailwind](https://tailwindcss.com/): created a wonderfully thought out API on which the compiler's grammar was defined. | ||
- [styled-components](https://styled-components.com/): implemented and popularised the advantages of doing CSS-in-JS. | ||
- [htm](https://github.com/developit/htm): a JSX compiler that proved there is merit in doing runtime compilation of DSLs like JSX. | ||
- [goober](https://github.com/cristianbote/goober): an impossibly small yet efficient CSS-in-JS implemetation that defines critical module features. | ||
- [otion](https://github.com/kripod/otion): the first CSS-in-JS solution specifically oriented around handling CSS in an atomic fashion. | ||
- [clsx](https://github.com/lukeed/clsx): a tiny utility for constructing class name strings conditionally. | ||
- [tiny-css-prefixer](https://github.com/kitten/tiny-css-prefixer): essentials CSS prefixing helpers in less than 1KB of JavaScript. | ||
- [csstype](https://github.com/frenic/csstype): providing autocompletion and type checking for CSS properties and values. | ||
We hope one day we will get the chance to collaborate together on an official implementation! | ||
Another big motivator was seeing [htm](https://www.npmjs.com/package/htm) by Jason Miller at Google, compiling JSX at runtime with performance characteristics that were comparable to code that was transpile ahead of time with babel. | ||
We'd like to call ourselves the htm of the css world but that awards goes to [goober](https://www.npmjs.com/package/goober) which is an inspiringly small and efficient CSS-in-JS library by Cristian Bote a member of the core preact team. | ||
## License | ||
[MIT](https://github.com/tw-in-js/twind/blob/main/LICENSE) |
@@ -141,2 +141,77 @@ import { PropertiesFallback, PropertiesHyphenFallback } from 'csstype'; | ||
} | ||
interface Preflight { | ||
(preflight: CSSRules, context: Context): CSSRules | undefined | void; | ||
} | ||
interface ThemeConfiguration extends Partial<Theme> { | ||
extend?: Partial<Theme>; | ||
} | ||
interface Injector { | ||
insert: (rule: string, index: number) => void; | ||
} | ||
declare type Prefixer = (property: string, value: string) => string; | ||
declare type Hasher = (value: string) => string; | ||
declare type DarkMode = 'media' | 'class' | false; | ||
interface Configuration { | ||
/** | ||
* Determines the dark mode strategy (default: `"media"`). | ||
*/ | ||
darkMode?: DarkMode; | ||
theme?: ThemeConfiguration; | ||
plugins?: Plugins; | ||
/** | ||
* ```js | ||
* { | ||
* ':new-variant': '& .selector', | ||
* } | ||
* ``` | ||
*/ | ||
variants?: Record<string, string>; | ||
/** | ||
* Sets a cryptographic nonce (number used once) on the enclosing `<style>` tag when generating a page on demand. | ||
* | ||
* Useful for enforcing a [Content Security Policy (CSP)](https://developer.mozilla.org/docs/Web/HTTP/CSP). | ||
*/ | ||
nonce?: string; | ||
/** Style insertion methodology to be used. */ | ||
injector?: Injector; | ||
/** Called right before the first rule is injected. */ | ||
preflight?: Preflight | boolean; | ||
/** Auto-prefixer method for CSS property–value pairs. */ | ||
prefix?: Prefixer | boolean; | ||
hash?: Hasher | boolean; | ||
mode?: Mode; | ||
} | ||
declare type ReportInfo = { | ||
id: 'LATE_SETUP_CALL'; | ||
} | { | ||
id: 'UNKNOWN_DIRECTIVE'; | ||
rule: string; | ||
} | { | ||
id: 'UNKNOWN_THEME_VALUE'; | ||
key: string | undefined; | ||
} | { | ||
id: 'INJECT_CSS_ERROR'; | ||
error: Error; | ||
css: string; | ||
}; | ||
interface Mode { | ||
/** Called for unknown theme values */ | ||
unknown: <Section extends keyof Theme>(section: Section, key: string[] | undefined, optional: boolean, context: Context) => ThemeSectionType<Theme[Section]> | undefined | void; | ||
/** | ||
* Notify error (missing plugin, duplicate directives? ) | ||
* | ||
* Why id? | ||
* - can generate an url with more info | ||
* - reduce bundle size by omitting large error messages | ||
*/ | ||
report(info: ReportInfo, context: Context): void; | ||
} | ||
declare type Plugin = string | CSSRules | DirectiveHandler; | ||
declare type Plugins = Record<string, Plugin | undefined>; | ||
interface DirectiveHandler { | ||
/** | ||
* Creates CSSRules based on `parameters` | ||
*/ | ||
(parameters: string[], context: Context, id: string): CSSRules | string | Falsy; | ||
} | ||
interface InlineDirective { | ||
@@ -150,10 +225,9 @@ (context: Context): CSSRules | string | Falsy; | ||
interface ShimOptions { | ||
interface ShimConfiguration extends Configuration { | ||
target?: HTMLElement; | ||
attributes?: string[]; | ||
tw?: TW; | ||
} | ||
declare const shim: ({ target, attributes, tw, }?: ShimOptions) => MutationObserver; | ||
declare const stop: () => void; | ||
declare const setup: ({ target, ...config }?: ShimConfiguration) => void; | ||
export { ShimOptions, shim }; | ||
export { ShimConfiguration, setup, stop }; | ||
//# sourceMappingURL=shim.d.ts.map |
@@ -1,2 +0,2 @@ | ||
import{tw as f}from"..";var p=({target:a=document.documentElement,attributes:c=["tw","data-tw"],tw:m=f}={})=>{let d=new WeakMap,h=e=>{let{classList:t,getAttribute:o}=e;if(t&&o){let s=c.map(o.bind(e)).filter(Boolean),n=d.get(e)||[],i=s.length?m(s).split(" "):[];n.forEach(r=>!i.includes(r)&&t.remove(r)),i.forEach(r=>!n.includes(r)&&t.add(r)),i.length?d.set(e,i):n.length&&d.delete(e)}},l=e=>e.forEach(({target:t,addedNodes:o})=>{t&&h(t);for(let s=o.length;s--;){let n=o[s];l([{target:n,addedNodes:n.children||[]}])}});l([{target:a,addedNodes:[a]}]);let u=new MutationObserver(l);return u.observe(a,{attributes:!0,attributeFilter:c,subtree:!0,childList:!0}),u};export{p as shim}; | ||
import{tw as l,setup as m}from"..";var f=({target:e,addedNodes:n})=>{var d;let o=(d=e.getAttribute)==null?void 0:d.call(e,"class");if(o){let t=l(o);o!==t&&e.setAttribute("class",t)}for(let t=n.length;t--;){let r=n[t];i([{target:r,addedNodes:r.children||[]}])}},i=e=>e.forEach(f),a=new MutationObserver(i),c=()=>a.disconnect(),s=()=>{let e=document.querySelector('script[type="twind-shim"]');u(e?JSON.parse(e.innerHTML):{})},u=({target:e=document.documentElement,...n}={})=>{removeEventListener("DOMContentLoaded",s),m(n),c(),i([{target:e,addedNodes:[e]}]),e.hidden=!1,a.observe(e,{attributes:!0,attributeFilter:["class"],subtree:!0,childList:!0})};document.readyState==="loading"?addEventListener("DOMContentLoaded",s):s();export{u as setup,c as stop}; | ||
//# sourceMappingURL=shim.js.map |
!function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof module&&module.exports?module.exports=t(require):e.twind.shim=t((function(t){for(var i="twind.shim".split("."),n=t.split("/");".."==n[0];)n.shift(),i.pop();for(var f,o=i.concat(t),r=e;r&&(f=o.shift());r=r[f]);return r}))}("undefined"!=typeof self?self:this,(function(require){ | ||
var exports=(()=>{var N=Object.create,u=Object.defineProperty,w=Object.getPrototypeOf,E=Object.prototype.hasOwnProperty,M=Object.getOwnPropertyNames,v=Object.getOwnPropertyDescriptor,f=e=>u(e,"__esModule",{value:!0}),x=(e,t)=>{f(e);for(var o in t)u(e,o,{get:t[o],enumerable:!0})},y=(e,t,o)=>{if(f(e),t&&typeof t=="object"||typeof t=="function")for(let n of M(t))!E.call(e,n)&&n!=="default"&&u(e,n,{get:()=>t[n],enumerable:!(o=v(t,n))||o.enumerable});return e},L=e=>e&&e.__esModule?e:y(u(e!=null?N(w(e)):{},"default",{value:e,enumerable:!0}),e),O={};x(O,{shim:()=>b});var p=L(require("..")),b=({target:e=document.documentElement,attributes:t=["tw","data-tw"],tw:o=p.tw}={})=>{let n=new WeakMap,g=s=>{let{classList:r,getAttribute:a}=s;if(r&&a){let d=t.map(a.bind(s)).filter(Boolean),i=n.get(s)||[],c=d.length?o(d).split(" "):[];i.forEach(l=>!c.includes(l)&&r.remove(l)),c.forEach(l=>!i.includes(l)&&r.add(l)),c.length?n.set(s,c):i.length&&n.delete(s)}},m=s=>s.forEach(({target:r,addedNodes:a})=>{r&&g(r);for(let d=a.length;d--;){let i=a[d];m([{target:i,addedNodes:i.children||[]}])}});m([{target:e,addedNodes:[e]}]);let h=new MutationObserver(m);return h.observe(e,{attributes:!0,attributeFilter:t,subtree:!0,childList:!0}),h};return O;})(); | ||
var exports=(()=>{var v=Object.create,s=Object.defineProperty,M=Object.getPrototypeOf,m=Object.prototype.hasOwnProperty,L=Object.getOwnPropertyNames,y=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertySymbols,E=Object.prototype.propertyIsEnumerable,p=e=>s(e,"__esModule",{value:!0}),h=(e,n)=>{var o={};for(var t in e)m.call(e,t)&&n.indexOf(t)<0&&(o[t]=e[t]);if(e!=null&&f)for(var t of f(e))n.indexOf(t)<0&&E.call(e,t)&&(o[t]=e[t]);return o},N=(e,n)=>{p(e);for(var o in n)s(e,o,{get:n[o],enumerable:!0})},g=(e,n,o)=>{if(p(e),n&&typeof n=="object"||typeof n=="function")for(let t of L(n))!m.call(e,t)&&t!=="default"&&s(e,t,{get:()=>n[t],enumerable:!(o=y(n,t))||o.enumerable});return e},x=e=>e&&e.__esModule?e:g(s(e!=null?v(M(e)):{},"default",{value:e,enumerable:!0}),e),C={};N(C,{setup:()=>c,stop:()=>a});var d=x(require("..")),S=({target:e,addedNodes:n})=>{var t;let o=(t=e.getAttribute)==null?void 0:t.call(e,"class");if(o){let i=d.tw(o);o!==i&&e.setAttribute("class",i)}for(let i=n.length;i--;){let l=n[i];r([{target:l,addedNodes:l.children||[]}])}},r=e=>e.forEach(S),b=new MutationObserver(r),a=()=>b.disconnect(),u=()=>{let e=document.querySelector('script[type="twind-shim"]');c(e?JSON.parse(e.innerHTML):{})},c=(o={})=>{var{target:e=document.documentElement}=o,n=h(o,["target"]);removeEventListener("DOMContentLoaded",u),d.setup(n),a(),r([{target:e,addedNodes:[e]}]),e.hidden=!1,b.observe(e,{attributes:!0,attributeFilter:["class"],subtree:!0,childList:!0})};document.readyState==="loading"?addEventListener("DOMContentLoaded",u):u();return C;})(); | ||
return exports})); | ||
//# sourceMappingURL=shim.umd.js.map |
@@ -155,2 +155,3 @@ import { SimplePseudos, PropertiesFallback, PropertiesHyphenFallback } from 'csstype'; | ||
readonly setup: (options?: Configuration) => void; | ||
readonly theme: ThemeResolver; | ||
} | ||
@@ -193,2 +194,10 @@ interface Preflight { | ||
/** | ||
* ```js | ||
* { | ||
* ':new-variant': '& .selector', | ||
* } | ||
* ``` | ||
*/ | ||
variants?: Record<string, string>; | ||
/** | ||
* Sets a cryptographic nonce (number used once) on the enclosing `<style>` tag when generating a page on demand. | ||
@@ -293,2 +302,3 @@ * | ||
declare const strict: Mode; | ||
declare const silent: Mode; | ||
@@ -300,4 +310,5 @@ declare const autoprefix: Prefixer; | ||
declare const setup: (options?: Configuration | undefined) => void; | ||
declare const theme: ThemeResolver; | ||
export { CSSAtKeyframes, CSSAtMedia, CSSAtSupports, CSSCustomProperties, CSSOMInjector, CSSProperties, CSSPseudos, CSSRules, CSSSimplePseudos, Configuration, Context, DarkMode, DirectiveHandler, Falsy, Hasher, Injector, InjectorConfig, InlineDirective, Instance, Mode, Plugin, Plugins, Prefixer, Preflight, ReportInfo, Rule, TW, Theme, ThemeColor, ThemeConfiguration, ThemeContainer, ThemeFontSize, ThemeOutline, ThemeResolver, ThemeSection, ThemeSectionRecord, ThemeSectionResolver, ThemeSectionResolverContext, ThemeSectionType, Token, TokenGrouping, TypescriptCompat, Unwrap, VirtualInjector, autoprefix, create, cssomInjector, mode, noOpInjector, noprefix, setup, strict, tw, virtualInjector, warn }; | ||
export { CSSAtKeyframes, CSSAtMedia, CSSAtSupports, CSSCustomProperties, CSSOMInjector, CSSProperties, CSSPseudos, CSSRules, CSSSimplePseudos, Configuration, Context, DarkMode, DirectiveHandler, Falsy, Hasher, Injector, InjectorConfig, InlineDirective, Instance, Mode, Plugin, Plugins, Prefixer, Preflight, ReportInfo, Rule, TW, Theme, ThemeColor, ThemeConfiguration, ThemeContainer, ThemeFontSize, ThemeOutline, ThemeResolver, ThemeSection, ThemeSectionRecord, ThemeSectionResolver, ThemeSectionResolverContext, ThemeSectionType, Token, TokenGrouping, TypescriptCompat, Unwrap, VirtualInjector, autoprefix, create, cssomInjector, mode, noOpInjector, noprefix, setup, silent, strict, theme, tw, virtualInjector, warn }; | ||
//# sourceMappingURL=twind.d.ts.map |
@@ -1,3 +0,3 @@ | ||
var k=e=>typeof e=="string",Te=e=>e!=null&&typeof e=="object",z=e=>typeof e=="function",b=(e,t)=>!!~e.indexOf(t),u=(e,t="-")=>e.join(t),U=(e,t)=>u(e.filter(Boolean),t),c=(e,t=1)=>e.slice(t),Re=e=>e,ke=e=>e[0].toUpperCase()+c(e),$e=e=>e.replace(/[A-Z]/g,"-$&").toLowerCase(),K=typeof CSS!="undefined"&&CSS.escape||(e=>{let t=e.charCodeAt(0),n="";return t>=48&&t<=57&&(n="\\"+t.toString(16)+" ",e=c(e)),n+e.replace(/[!./:#]/g,"\\$&")}),re=e=>{let t=9;for(let n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"tw-"+((t^t>>>9)>>>0).toString(36)},Ee=(e,t)=>{let n=e.length;if(n===0)return 0;for(let r=0;r<n;){let i=n+r>>1;e[i]<=t?r=i+1:n=i}return n},je=e=>(t,n,r,i)=>{if(t){let s=n&&e(n);if(s&&s.length>0)return s.reduce((l,g)=>(l[U([r,g,i])]=t,l),{})}},Ae=je(e=>({t:["top-left","top-right"],r:["top-right","bottom-right"],b:["bottom-left","bottom-right"],l:["bottom-left","top-left"],tl:["top-left"],tr:["top-right"],bl:["bottom-left"],br:["bottom-right"]})[e]),G=e=>{let t=({x:"lr",y:"tb"}[e]||e||"").split("").sort();for(let n=t.length;n--;)if(!(t[n]={t:"top",r:"right",b:"bottom",l:"left"}[t[n]]))return;if(t.length)return t},Z=je(G),o,F,v,Y=e=>(t,n,r)=>({[e]:r+((o=u(t))&&"-"+o)}),m=(e,t)=>n=>({[e]:u(n,t)}),x=e=>(t,{theme:n},r)=>({[e||r]:n(e||r,t)}),T=(e,t)=>(n,r)=>e(n,r,t),E=Y("display"),J=Y("position"),N=Y("textTransform"),_=Y("textDecoration"),Q=Y("fontStyle"),j=e=>(t,n,r)=>({["--tw-"+e]:r,fontVariantNumeric:"var(--tw-ordinal,/*!*/ /*!*/) var(--tw-slashed-zero,/*!*/ /*!*/) var(--tw-numeric-figure,/*!*/ /*!*/) var(--tw-numeric-spacing,/*!*/ /*!*/) var(--tw-numeric-fraction,/*!*/ /*!*/)"}),ee=(e,{theme:t},n)=>({[n]:t("inset",e)}),X=(e,t,n,r=n)=>({[`--tw-${n}-opacity`]:t(r+"Opacity",c(e))}),oe=(e,t)=>Math.round(parseInt(e,16)*t),ie=(e,t,n)=>e&&e[0]==="#"?`rgba(${oe(e.substr(1,o=(e.length-1)/3),v=[17,1,.062272][o-1])},${oe(e.substr(1+o,o),v)},${oe(e.substr(1+2*o,o),v)},var(--tw-${t}${n?","+n:""}))`:e,te=(e,t,n)=>n&&(o=ie(n,t+"-opacity"))&&o!==n?{[`--tw-${t}-opacity`]:"1",[e]:[n,o]}:{[e]:n},Pe=(e,{theme:t},n,r,i,s)=>(o={x:["right","left"],y:["bottom","top"]}[e[0]])&&(v=`--tw-${n}-${e[0]}-reverse`)?e[1]==="reverse"?{[v]:"1"}:{[v]:"0",[U([i,o[0],s])]:(F=t(r,c(e)))&&`calc(${F} * var(${v}))`,[U([i,o[1],s])]:F&&[F,`calc(${F} * calc(1 - var(${v})))`]}:void 0,De=(e,t)=>({[e]:(b("wun",(t[0]||"")[3])?"space-":"")+t[0]}),se=e=>t=>b(["start","end"],t[0])?{[e]:`flex-${t[0]}`}:De(e,t),ze=e=>t=>{switch(t[0]){case"auto":return{[`grid-${e}`]:"auto"};case"span":return{[`grid-${e}`]:t[1]==="full"?"1 / -1":`span ${t[1]} / span ${t[1]}`};case"start":case"end":return{[`grid-${e}-${t[0]}`]:t[1]}}},Fe=(e,{theme:t},n)=>{switch(e[0]){case"solid":case"dashed":case"dotted":case"double":case"none":return m("borderStyle")(e);case"collapse":case"separate":return m("borderCollapse")(e);case"opacity":return X(e,t,n)}return(o=t(n+"Width",e,""))?{borderWidth:o}:te("borderColor",n,t(n+"Color",e))},ae=e=>(e?"translate3d(var(--tw-translate-x,0),var(--tw-translate-y,0),0)":"translateX(var(--tw-translate-x,0)) translateY(var(--tw-translate-y,0))")+" rotate(var(--tw-rotate,0)) skewX(var(--tw-skew-x,0)) skewY(var(--tw-skew-y,0)) scaleX(var(--tw-scale-x,1)) scaleY(var(--tw-scale-y,1))",le=(e,t,n)=>(o=t.theme(n,e[1]||e[0]))&&{[`--tw-${n}-x`]:e[0]!=="y"&&o,[`--tw-${n}-y`]:e[0]!=="x"&&o,transform:[`${n}${e[1]?e[0].toUpperCase():""}(${o})`,ae()]},Oe=()=>"var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow,0 0 transparent)",Ie=(e,{theme:t},n)=>(o=t("gradientColorStops",e))&&{["--tw-gradient-"+n]:o},We=e=>(t,n,r)=>r[1]?Z(n.theme(e,t),r[1],e):x(e)(t,n,r),O=We("padding"),I=We("margin"),He=(e,{theme:t},n)=>(o={w:"width",h:"height"}[e[0]])&&{[o=`${n}${ke(o)}`]:t(o,c(e))},Le={group:(e,{tag:t})=>t("group"),hidden:T(E,"none"),inline:E,block:E,contents:E,flow:E,table:(e,t,n)=>b(["auto","fixed"],e[0])?{tableLayout:e[0]}:E(e,t,n),flex(e,t,n){switch(e[0]){case"row":case"col":return{flexDirection:u(e[0]==="col"?["column",...c(e)]:e)};case"nowrap":case"wrap":return{flexWrap:u(e)};case"grow":case"shrink":return{[`flex-${e[0]}`]:e[1]||"1"}}return(o=t.theme("flex",e,""))?{flex:o}:E(e,t,n)},grid(e,t,n){switch(e[0]){case"cols":case"rows":return e.length>1&&{[`grid-template-${e[0]==="cols"?"columns":e[0]}`]:e.length===2&&Number(e[1])?`repeat(${e[1]},minmax(0,1fr))`:u(c(e)," ")};case"flow":return e.length>1&&{gridAutoFlow:u(e[1]==="col"?["column",...c(e,2)]:c(e)," ")}}return E(e,t,n)},auto:e=>b(["cols","rows"],e[0])&&(o=e.length===2?{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"}[e[1]]||`minmax(0,${e[1]})`:e.length>2&&`minmax(${u(c(e),",")})`)&&{[`grid-auto-${e[0]==="cols"?"columns":"rows"}`]:o},static:J,fixed:J,absolute:J,relative:J,sticky:J,visible:{visibility:"visible"},invisible:{visibility:"hidden"},antialiased:{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},"subpixel-antialiased":{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"},truncate:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},"sr-only":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"},"not-sr-only":{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"},resize:e=>({resize:{x:"vertical",y:"horizontal"}[e[0]]||e[0]||"both"}),box:e=>({"box-sizing":`${e[0]}-box`}),appearance:m("appearance"),cursor:m("cursor"),float:m("float"),clear:m("clear"),top:ee,right:ee,bottom:ee,left:ee,inset:(e,{theme:t})=>(o=G(e[0]))?Z(t("inset",c(e)),e[0]):(o=t("inset",e))&&{top:o,right:o,bottom:o,left:o},underline:_,"line-through":_,"no-underline":T(_,"none"),"text-underline":T(_,"underline"),"text-no-underline":T(_,"none"),"text-line-through":T(_,"line-through"),uppercase:N,lowercase:N,capitalize:N,"normal-case":T(N,"none"),"text-normal-case":T(N,"none"),italic:Q,"not-italic":T(Q,"normal"),"font-italic":T(Q,"italic"),"font-not-italic":T(Q,"normal"),font:(e,t,n)=>(o=t.theme("fontFamily",e,""))?{fontFamily:o}:x("fontWeight")(e,t,n),items:e=>({alignItems:b(["start","end"],e[0])?`flex-${e[0]}`:u(e)}),content:se("alignContent"),justify:se("justifyContent"),self:se("alignSelf"),place:e=>De("place-"+e[0],c(e)),overscroll:e=>({["overscrollBehavior"+(e[1]?"-"+e[0]:"")]:e[1]||e[0]}),col:ze("column"),row:ze("row"),duration:x("transitionDuration"),delay:x("transitionDelay"),tracking:x("letterSpacing"),leading:x("lineHeight"),z:x("zIndex"),opacity:x(),ease:x("transitionTimingFunction"),p:O,py:O,px:O,pt:O,pr:O,pb:O,pl:O,m:I,my:I,mx:I,mt:I,mr:I,mb:I,ml:I,w:x("width"),h:x("height"),min:He,max:He,fill:x(),order:x(),origin:m("transformOrigin"," "),select:m("userSelect"),"pointer-events":m("pointerEvents"),align:m("verticalAlign"),whitespace:m("whiteSpace"),"normal-nums":{fontVariantNumeric:"normal"},ordinal:j("ordinal"),"slashed-zero":j("slashed-zero"),"lining-nums":j("numeric-figure"),"oldstyle-nums":j("numeric-figure"),"proportional-nums":j("numeric-spacing"),"tabular-nums":j("numeric-spacing"),"diagonal-fractions":j("numeric-fraction"),"stacked-fractions":j("numeric-fraction"),overflow:e=>b(["ellipsis","clip"],e[0])?m("textOverflow")(e):e[1]?{[`overflow-${e[0]}`]:e[1]}:m("overflow")(e),transform:e=>e[0]==="none"?{transform:"none"}:{"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1",transform:ae(e[0]==="gpu")},rotate:(e,{theme:t})=>(o=t("rotate",e))&&{"--tw-rotate":o,transform:[`rotate(${o})`,ae()]},scale:le,translate:le,skew:le,gap:(e,t,n)=>(o={x:"column",y:"row"}[e[0]])?{[o+"Gap"]:t.theme("gap",c(e))}:x("gap")(e,t,n),stroke:(e,t,n)=>(o=t.theme("stroke",e,""))?{stroke:o}:x("strokeWidth")(e,t,n),outline:(e,{theme:t})=>(o=t("outline",e))&&{outline:o[0],outlineOffset:o[1]},break(e){switch(e[0]){case"normal":return{wordBreak:"normal",overflowWrap:"normal"};case"words":return{overflowWrap:"break-word"};case"all":return{wordBreak:"break-all"}}},text(e,{theme:t},n){switch(e[0]){case"left":case"center":case"right":case"justify":return{textAlign:e[0]};case"uppercase":case"lowercase":case"capitalize":return N([],o,e[0]);case"opacity":return X(e,t,n)}let r=t("fontSize",e,"");return r?k(r)?{fontSize:r}:{fontSize:r[0],...k(r[1])?{lineHeight:r[1]}:r[1]}:te("color","text",t("textColor",e))},bg(e,{theme:t},n){switch(e[0]){case"fixed":case"local":case"scroll":return m("backgroundAttachment",",")(e);case"bottom":case"center":case"left":case"right":case"top":return m("backgroundPosition"," ")(e);case"no":return e[1]==="repeat"&&m("backgroundRepeat")(e);case"auto":case"cover":case"contain":return m("backgroundSize")(e);case"repeat":return b("xy",e[1])?m("backgroundRepeat")(e):{"background-repeat":e[1]||e[0]};case"opacity":return X(e,t,n,"background");case"clip":return{backgroundClip:e[1]+(e[1]==="text"?"":"-box")};case"gradient":if(e[1]==="to"&&(o=G(e[2])))return{backgroundImage:`linear-gradient(to ${u(o," ")},var(--tw-gradient-stops,var(--tw-gradient-from,transparent),var(--tw-gradient-to,transparent)))`}}return(o=t("backgroundImage",e,""))?{backgroundImage:o}:te("backgroundColor","bg",t("backgroundColor",e))},from:Ie,to:Ie,via:(e,{theme:t})=>(o=t("gradientColorStops",e))&&{"--tw-gradient-stops":`var(--tw-gradient-from,transparent),${o},var(--tw-gradient-to,transparent)`},border:(e,t,n)=>G(e[0])?Z(t.theme("borderWidth",c(e)),e[0],"border","width"):Fe(e,t,n),divide:(e,t,n)=>(o=Pe(e,t,n,"divideWidth","border","width")||Fe(e,t,n))&&{"&>:not([hidden])~:not([hidden])":o},space:(e,t,n)=>(o=Pe(e,t,n,"space","margin"))&&{"&>:not([hidden])~:not([hidden])":o},placeholder:(e,{theme:t},n)=>(o=e[0]==="opacity"?X(e,t,n):te("color","placeholder",t("placeholderColor",e)))&&{"&::placeholder":o},shadow:(e,{theme:t})=>(o=t("boxShadow",e))&&{"--tw-shadow":o,boxShadow:[o,Oe()]},animate:(e,{theme:t,tag:n})=>{if(v=t("animation",e)){let r=v.split(" ");return(o=t("keyframes",r[0],F={}))!==F?(v=n(r[0]))&&{animation:v+" "+u(c(r)," "),["@keyframes "+v]:o}:{animation:v}}},ring(e,{theme:t},n){switch(e[0]){case"inset":return{"--tw-ring-inset":"inset"};case"opacity":return X(e,t,n);case"offset":return(o=t("ringOffsetWidth",c(e),""))?{"--tw-ring-offset-width":o}:{"--tw-ring-offset-color":t("ringOffsetColor",c(e))}}return(o=t("ringWidth",e,""))?{"--tw-ring-offset-shadow":`var(--tw-ring-inset,/*!*/ /*!*/) 0 0 0 var(--tw-ring-offset-width,${t("ringOffsetWidth","","0px")}) var(--tw-ring-offset-color,${t("ringOffsetColor","","#fff")})`,"--tw-ring-shadow":`var(--tw-ring-inset,/*!*/ /*!*/) 0 0 0 calc(${o} + var(--tw-ring-offset-width,${t("ringOffsetWidth","","0px")})) var(--tw-ring-color,${ie(t("ringColor","","#93c5fd"),"ring-opacity",t("ringOpacity","","0.5"))})`,"box-shadow":Oe()}:{"--tw-ring-opacity":"1","--tw-ring-color":ie(t("ringColor",e),"ring-opacity")}},object:e=>b(["contain","cover","fill","none","scale"],e[0])?m("objectFit")(e):m("objectPosition"," ")(e),list:e=>m(b(["inside","outside"],e[0])?"listStylePosition":"listStyleType")(e),rounded:(e,t,n)=>Ae(t.theme("borderRadius",c(e),""),e[0],"border","radius")||x("borderRadius")(e,t,n),"transition-none":{"transition-property":"none"},transition:(e,{theme:t})=>({transition:U([t("transitionProperty",e),t("transitionDuration",""),t("transitionTimingFunction","")]," ")}),container:(e,{theme:t})=>{let{screens:n=t("screens"),center:r,padding:i}=t("container"),s=l=>(o=i&&(k(i)?i:i[l]||i.DEFAULT))?{paddingRight:o,paddingLeft:o}:{};return Object.keys(n).reduce((l,g)=>((o=n[g])&&(l[`@media (min-width: ${o})`]={"&":{"max-width":o,...s(g)}}),l),{width:"100%",...r?{marginRight:"auto",marginLeft:"auto"}:{},...s("xs")})}},Me=e=>({":root":{tabSize:4},"body,blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre,fieldset,ol,ul":{margin:"0"},button:{backgroundColor:"transparent",backgroundImage:"none"},'button,[type="button"],[type="reset"],[type="submit"]':{WebkitAppearance:"button"},"button:focus":{outline:["1px dotted","5px auto -webkit-focus-ring-color"]},"fieldset,ol,ul,legend":{padding:"0"},"ol,ul":{listStyle:"none"},html:{lineHeight:"1.5",WebkitTextSizeAdjust:"100%",fontFamily:e("fontFamily","sans","ui-sans-serif,system-ui,sans-serif")},body:{fontFamily:"inherit",lineHeight:"inherit"},"*,::before,::after":{boxSizing:"border-box",border:`0 solid ${e("borderColor","DEFAULT","currentColor")}`},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},img:{borderStyle:"solid"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{color:e("placeholderColor","DEFAULT","#a1a1aa")},'button,[role="button"]':{cursor:"pointer"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",margin:"0",padding:"0",lineHeight:"inherit",color:"inherit"},"button,select":{textTransform:"none"},"::-moz-focus-inner":{borderStyle:"none",padding:"0"},":-moz-focusring":{outline:"1px dotted ButtonText"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},'[type="search"]':{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"abbr[title]":{textDecoration:"underline dotted"},"b,strong":{fontWeight:"bolder"},"pre,code,kbd,samp":{fontFamily:e("fontFamily","mono","ui-monospace,monospace"),fontSize:"1em"},"sub,sup":{fontSize:"75%",lineHeight:"0",position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"}}),Ue="__tw-in-js",it=e=>{let t=self[Ue];return t||(t=document.head.appendChild(document.createElement("style")),t.id=Ue,e&&(t.nonce=e)),t},st=({target:e=[]}={})=>({target:e,insert:(t,n)=>e.splice(n,0,t)}),ce=({nonce:e,target:t=it(e).sheet}={})=>({target:t,insert:t.insertRule.bind(t)}),de=()=>({insert:()=>{}}),ue=e=>({unknown(t,n=[],r,i){r||this.report({id:"UNKNOWN_THEME_VALUE",key:u([t,...n],".")},i)},report({id:t,...n}){let r=`[${t}] ${JSON.stringify(n)}`,i=(new Error(r).stack||r).split("at ");for(let s;(s=i.splice(1,1)[0])&&!/(^|\.)(tw|setup) /.test(s););e(i.join("at "))}}),ge=ue(e=>console.warn(e)),at=ue(e=>{throw new Error(e)});import{prefixProperty as lt,prefixValue as ct}from"tiny-css-prefixer";var fe=(e,t)=>{let n=`${e}:${ct(e,t)}`,r=n,i=lt(e);return i&1&&(r+=`;-ms-${n}`),i&2&&(r+=`;-moz-${n}`),i&4&&(r+=`;-webkit-${n}`),r},pe=(e,t)=>`${e}:${t}`,q=(e,t)=>{let n={};do for(let r=1;r<e;r++)n[`${r}/${e}`]=Number((r/e*100).toFixed(6))+"%";while(++e<=t);return n},A=(e,t,n=0)=>{let r={};for(;n<=e;n=n*2||1)r[n]=n+t;return r},$=(e,t="",n=1,r=0,i=1)=>{let s={};for(;r<=e;r+=i)s[r]=r/n+t;return s},w=e=>t=>t(e),Ne={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},colors:{transparent:"transparent",current:"currentColor",black:"#000",white:"#fff",gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},yellow:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},green:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},purple:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"}},spacing:{px:"1px",0:"0px",...$(4,"rem",4,.5,.5),...$(12,"rem",4,5),14:"3.5rem",...$(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",pulse:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",bounce:"bounce 1s infinite"},backgroundColor:w("colors"),backgroundImage:{none:"none"},backgroundOpacity:w("opacity"),borderColor:e=>({...e("colors"),DEFAULT:e("colors.gray.200","currentColor")}),borderOpacity:w("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},borderWidth:{DEFAULT:"1px",...A(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",DEFAULT:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",inner:"inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)",none:"none"},container:{},divideColor:w("borderColor"),divideOpacity:w("borderOpacity"),divideWidth:w("borderWidth"),fill:{current:"currentColor"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:w("spacing"),gradientColorStops:w("colors"),height:e=>({auto:"auto",...e("spacing"),...q(2,6),full:"100%",screen:"100vh"}),inset:e=>({auto:"auto",...e("spacing"),...q(2,4),full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",...$(10,"rem",4,3)},margin:e=>({auto:"auto",...e("spacing")}),maxHeight:e=>({...e("spacing"),full:"100%",screen:"100vh"}),maxWidth:(e,{breakpoints:t})=>({none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",prose:"65ch",...t(e("screens"))}),minHeight:{0:"0px",full:"100%",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content"},opacity:{...$(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0",...$(12,"",1,1)},outline:{none:["2px solid transparent","2px"],white:["2px dotted white","2px"],black:["2px dotted black","2px"]},padding:w("spacing"),placeholderColor:w("colors"),placeholderOpacity:w("opacity"),ringColor:e=>({DEFAULT:e("colors.blue.500","#3b82f6"),...e("colors")}),ringOffsetColor:w("colors"),ringOffsetWidth:A(8,"px"),ringOpacity:e=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",...A(8,"px")},rotate:{...A(2,"deg"),...A(12,"deg",3),...A(180,"deg",45)},scale:{0:"0",50:".5",75:".75",...$(110,"",100,90,5),125:"1.25",150:"1.5"},skew:{...A(2,"deg"),...A(12,"deg",3)},space:w("spacing"),stroke:{current:"currentColor"},strokeWidth:$(2),textColor:w("colors"),textOpacity:w("opacity"),transitionDuration:e=>({DEFAULT:"150ms",...e("durations")}),transitionDelay:w("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"background-color,border-color,color,fill,stroke,opacity,box-shadow,transform",colors:"background-color,border-color,color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:e=>({...e("spacing"),...q(2,4),full:"100%"}),width:e=>({auto:"auto",...e("spacing"),...q(2,6),...q(12,12),screen:"100vw",full:"100%",min:"min-content",max:"max-content"}),zIndex:{auto:"auto",...$(50,"",1,0,10)}},dt=e=>Object.keys(e).reduce((t,n)=>{let r=e[n];return t[n]=r,Te(r)?Object.keys(r).reduce((i,s)=>(s==="DEFAULT"&&(i[n]=r[s]),i[n+"-"+s]=r[s],i[n+"."+s]=r[s],i),t):t},{}),ut={negative:()=>({}),breakpoints:e=>Object.keys(e).reduce((t,n)=>(t["screen-"+n]=e[n],t),{})},_e=e=>{let t=new Map,n={...Ne,...e},r=(l,g)=>{let y=l.split(".");return s(y[0],y.length>1?c(y):void 0,g)},i=(l,g)=>{let y=l&&l[g],f=z(y)?y(r,ut):y;return f&&g==="colors"?dt(f):f},s=(l,g,y)=>{let f=t.get(l);if(f||t.set(l,f={...i(n,l),...i(n.extend,l)}),g!=null){let p=f[(Array.isArray(g)?u(g):g)||"DEFAULT"];return p==null?y:Array.isArray(p)&&!b(["fontSize","outline"],l)?u(p,","):p}return f};return s},P,V,W=(e="")=>(P.push(e),""),me=e=>{P.length=Math.max(P.lastIndexOf("")+~~e,0)},gt=e=>e&&e[0]!==":",ft=e=>e[0]===":",Ve=(e,t)=>{V.push({v:P.filter(ft),d:e,n:t,$:""})},Be=e=>{let t=e[0]==="-";t&&(e=c(e));let n=u(P.filter(gt));return Ve(e==="&"?n:(n&&n+"-")+e,t),""},he=(e,t)=>{let n,r="";for(let i=0;i<e.length;)switch(n=e[i++]){case":":r=r&&W(":"+r);break;case"(":r=r&&W(r),W();break;case")":case" ":case" ":case` | ||
`:case"\r":r=r&&Be(r),me(n!==")");break;default:r+=n}r&&(t?W(":"+r):r.slice(-1)==="-"?W(r.slice(0,-1)):Be(r))},Ge=e=>{W(),be(e),me()},pt=(e,t)=>{if(t){W();let n=b("tbu",(typeof t)[1]);he(e,n),n&&Ge(t),me()}},be=e=>{switch(typeof e){case"string":he(e);break;case"function":Ve(e);break;case"object":Array.isArray(e)?e.forEach(Ge):e&&Object.keys(e).forEach(t=>{pt(t,e[t])})}},Ye=new WeakMap,mt=e=>{let t=Ye.get(e);return t||(t=e.map(n=>{let r=V=[];he(n);let i=[...P];return V=[],s=>{V.push(...r),P=[...i],s&&be(s)}}),Ye.set(e,t)),t},Je=e=>(P=[],V=[],Array.isArray(e[0])&&Array.isArray(e[0].raw)?mt(e[0]).forEach((t,n)=>t(e[n+1])):e.forEach(be),V),Xe=(e,t)=>n=>{if(z(n.d))return n.d(t);let r=n.d.split("-");for(let i=r.length;i;i--){let s=u(r.slice(0,i)),l=e[s];if(l)return z(l)?l(c(r,i),t,s):k(l)?t.tw(l):l}},ne={":dark":"@media (prefers-color-scheme:dark)",":sticky":"@supports ((position: -webkit-sticky) or (position:sticky))",":motion-reduce":"@media (prefers-reduced-motion:reduce)",":motion-safe":"@media (prefers-reduced-motion:no-preference)",":first":"&:first-child",":last":"&:last-child",":even":"&:nth-child(2n)",":odd":"&:nth-child(odd)"},qe=(e,{theme:t,tag:n})=>{let r=(i,s)=>{let l=t("screens",c(s),"");return l?{[`@media (min-width: ${l})`]:i}:s===":dark"&&e==="class"?{[".dark &"]:i}:s.slice(1,7)==="group-"?{[`.${K(n("group"))}:${c(s,7)} &`]:i}:{[ne[s]||"&"+s]:i}};return(i,s)=>s.v.reduceRight(r,i)},S,xe=e=>(((S=/(?:^|min-width: *)(\d+(?:.\d+)?)(p)?/.exec(e))?+S[1]/(S[2]?15:1)/10:0)&31)<<23,Ke=e=>{S=0;for(let t=e.length;t--;)S+=b("-:,",e[t]);return S},we=e=>(Ke(e)&15)<<18,ht=["rst","st","en","d","nk","sited","pty","ecked","cus-w","ver","cus","cus-v","tive","sable","ad-on","tiona","quire"],bt=e=>1<<(~(S=ht.indexOf(e.replace(/^:group-/,":").slice(3,8)))?S:17),Ze=(e,t)=>(n,r)=>n|((S=e("screens",c(r),""))?xe(S):r===":dark"?1<<22:(S=t[r]||r)[0]==="@"?we(S):bt(r)),xt=/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7}$)|([fl].{5}l|g.{8}$|pl))/,Qe=e=>e[0]==="-"?0:Ke(e)+((S=xt.exec(e))?+!!S[1]||-!!S[2]:0)+1,ye=(e,t)=>t+"{"+e+"}",et=(e,{theme:t,tag:n})=>{let r=(f,p)=>"--"+n(p),i=f=>`${f}`.replace(/--(tw-[\w-]+)\b/g,r),s=(f,p)=>(f=i(f),Array.isArray(p)?u(p.filter(Boolean).map(C=>e(f,i(C))),";"):e(f,i(p))),l,g=(f,p,C,B)=>{let H="",L=0,M=0;Object.keys(B).forEach(a=>{let d=B[a];if(b("rg",(typeof d)[5])||Array.isArray(d)){let h=$e(a);M+=1,L=Math.max(L,Qe(h)),H=(H&&H+";")+s(h,d)}else if(d)if(a[0]==="@")if(a[1]==="f")g([],a,0,d);else if(a[1]==="k"){let h=l.length;g([],"",0,d);let R=l.splice(h,l.length-h);l.push({r:ye(u(R.map(D=>D.r),""),a),p:R.reduce((D,ot)=>D+ot.p,0)})}else g([...f,a],p,C|(xe(a)||we(a)),d);else{let h=p&&b(a,"&");g(f,h?p.replace(/([^,])+/g,R=>a.replace(/([^,])+/g,D=>b(D,"&")?D.replace(/&/g,R):D)):a,h?C:0,d)}}),M&&l.push({r:f.reduceRight(ye,ye(H,p)),p:C*(1<<8)+(((L||15)&15)<<4|Math.max(0,15-M)&15)})},y=Ze(t,ne);return(f,p,C)=>(l=[],g([],p?"."+K(p):"",C?C.v.reduceRight(y,0):0,f),l)},tt=(e,t,n)=>{let r=[],i=new Set;return({r:s,p:l})=>{if(!i.has(s)){let g=Ee(r,l);try{e.insert(s,g),i.add(s),r.splice(g,0,l)}catch(y){/:-[mwo]/.test(s)||t.report({id:"INJECT_CSS_ERROR",css:s,error:y},n)}}}},Se=(e,t,n,r=t)=>e===!1?n:e===!0?r:e||t,ve=(e,t=e.d)=>{if(z(t))return"";let n=u(e.v,"");return(n&&c(n)+":")+(e.n?"-":"")+t},nt=(e={})=>{let t=_e(e.theme),n=e.mode||ge,r=Se(e.hash,!1,!1,re),i={v:[]},s={tw:(...a)=>L(a),theme:(a,d,h)=>{d!=null&&!d.length&&(d="DEFAULT");let R=t(a,d,h)||n.unknown(a,d==null||Array.isArray(d)?d:d.split("."),h!=null,s);return i.n&&R&&k(R)?`calc(${R} * -1)`:R},tag:a=>r?r(a):a},l=Xe({...Le,...e.plugins},s),g=a=>{let d=i;i=a;try{return l(a)}finally{i=d}},y=qe(e.darkMode||"media",s),f=et(Se(e.prefix,fe,pe),s),p=tt(e.injector||(typeof window=="undefined"?de():ce(e)),n,s),C=new Map,B=new WeakMap,H=a=>{i.v.length&&(a={...a,v:[...i.v,...a.v],$:""}),a.$||(a.$=ve(a)||ve(a,B.get(a.d)));let d=C.get(a.$);if(d==null){let h=g(a);a.$||(a.$=re(JSON.stringify(h)),B.set(a.d,a.$),a.$=ve(a,a.$)),k(h)?d=h:h?(h=y(h,a),d=r?r(JSON.stringify(h)):a.$,f(h,d,a).forEach(p)):(n.report({id:"UNKNOWN_DIRECTIVE",rule:a.$},s),d=""),C.set(a.$,d)}return d},L=a=>Je(a).map(H).filter(Boolean).join(" "),M=Se(e.preflight,Re,!1);if(M){let a=Me(t);f(M(a,s)||a).forEach(p)}return{init:()=>n.report({id:"LATE_SETUP_CALL"},s),process:L}},Ce=e=>{let t=r=>(n(),t(r)),n=r=>{({process:t,init:n}=nt(r))};return e&&n(e),{tw:(...r)=>t(r),setup:r=>n(r)}},rt=Ce(),{tw:wt}=rt,{setup:yt}=rt;export{fe as autoprefix,Ce as create,ce as cssomInjector,ue as mode,de as noOpInjector,pe as noprefix,yt as setup,at as strict,wt as tw,st as virtualInjector,ge as warn}; | ||
var $=e=>typeof e=="string",Re=e=>e!=null&&typeof e=="object",F=e=>typeof e=="function",b=(e,t)=>!!~e.indexOf(t),g=(e,t="-")=>e.join(t),N=(e,t)=>g(e.filter(Boolean),t),c=(e,t=1)=>e.slice(t),ke=e=>e,$e=()=>{},Ee=e=>e[0].toUpperCase()+c(e),je=e=>e.replace(/[A-Z]/g,"-$&").toLowerCase(),Z=typeof CSS!="undefined"&&CSS.escape||(e=>{let t=e.charCodeAt(0),n="";return t>=48&&t<=57&&(n="\\"+t.toString(16)+" ",e=c(e)),n+e.replace(/[!./:#]/g,"\\$&")}),oe=e=>{let t=9;for(let n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"tw-"+((t^t>>>9)>>>0).toString(36)},Ae=(e,t)=>{let n=e.length;if(n===0)return 0;for(let r=0;r<n;){let i=n+r>>1;e[i]<=t?r=i+1:n=i}return n},Pe=e=>(t,n,r,i)=>{if(t){let s=n&&e(n);if(s&&s.length>0)return s.reduce((l,d)=>(l[N([r,d,i])]=t,l),{})}},De=Pe(e=>({t:["top-left","top-right"],r:["top-right","bottom-right"],b:["bottom-left","bottom-right"],l:["bottom-left","top-left"],tl:["top-left"],tr:["top-right"],bl:["bottom-left"],br:["bottom-right"]})[e]),Y=e=>{let t=({x:"lr",y:"tb"}[e]||e||"").split("").sort();for(let n=t.length;n--;)if(!(t[n]={t:"top",r:"right",b:"bottom",l:"left"}[t[n]]))return;if(t.length)return t},Q=Pe(Y),o,O,v,J=e=>(t,n,r)=>({[e]:r+((o=g(t))&&"-"+o)}),p=(e,t)=>n=>({[e]:g(n,t)}),w=e=>(t,{theme:n},r)=>({[e||r]:n(e||r,t)}),R=(e,t)=>(n,r)=>e(n,r,t),j=J("display"),X=J("position"),_=J("textTransform"),V=J("textDecoration"),ee=J("fontStyle"),A=e=>(t,n,r)=>({["--tw-"+e]:r,fontVariantNumeric:"var(--tw-ordinal,/*!*/ /*!*/) var(--tw-slashed-zero,/*!*/ /*!*/) var(--tw-numeric-figure,/*!*/ /*!*/) var(--tw-numeric-spacing,/*!*/ /*!*/) var(--tw-numeric-fraction,/*!*/ /*!*/)"}),te=(e,{theme:t},n)=>({[n]:t("inset",e)}),q=(e,t,n,r=n)=>({[`--tw-${n}-opacity`]:t(r+"Opacity",c(e))}),ie=(e,t)=>Math.round(parseInt(e,16)*t),se=(e,t,n)=>e&&e[0]==="#"?`rgba(${ie(e.substr(1,o=(e.length-1)/3),v=[17,1,.062272][o-1])},${ie(e.substr(1+o,o),v)},${ie(e.substr(1+2*o,o),v)},var(--tw-${t}${n?","+n:""}))`:e,ne=(e,t,n)=>n&&(o=se(n,t+"-opacity"))&&o!==n?{[`--tw-${t}-opacity`]:"1",[e]:[n,o]}:{[e]:n},ze=(e,{theme:t},n,r,i,s)=>(o={x:["right","left"],y:["bottom","top"]}[e[0]])&&(v=`--tw-${n}-${e[0]}-reverse`)?e[1]==="reverse"?{[v]:"1"}:{[v]:"0",[N([i,o[0],s])]:(O=t(r,c(e)))&&`calc(${O} * var(${v}))`,[N([i,o[1],s])]:O&&[O,`calc(${O} * calc(1 - var(${v})))`]}:void 0,Fe=(e,t)=>({[e]:(b("wun",(t[0]||"")[3])?"space-":"")+t[0]}),ae=e=>t=>b(["start","end"],t[0])?{[e]:`flex-${t[0]}`}:Fe(e,t),Oe=e=>t=>{switch(t[0]){case"auto":return{[`grid-${e}`]:"auto"};case"span":return{[`grid-${e}`]:t[1]==="full"?"1 / -1":`span ${t[1]} / span ${t[1]}`};case"start":case"end":return{[`grid-${e}-${t[0]}`]:t[1]}}},Ie=(e,{theme:t},n)=>{switch(e[0]){case"solid":case"dashed":case"dotted":case"double":case"none":return p("borderStyle")(e);case"collapse":case"separate":return p("borderCollapse")(e);case"opacity":return q(e,t,n)}return(o=t(n+"Width",e,""))?{borderWidth:o}:ne("borderColor",n,t(n+"Color",e))},le=e=>(e?"translate3d(var(--tw-translate-x,0),var(--tw-translate-y,0),0)":"translateX(var(--tw-translate-x,0)) translateY(var(--tw-translate-y,0))")+" rotate(var(--tw-rotate,0)) skewX(var(--tw-skew-x,0)) skewY(var(--tw-skew-y,0)) scaleX(var(--tw-scale-x,1)) scaleY(var(--tw-scale-y,1))",ce=(e,t,n)=>(o=t.theme(n,e[1]||e[0]))&&{[`--tw-${n}-x`]:e[0]!=="y"&&o,[`--tw-${n}-y`]:e[0]!=="x"&&o,transform:[`${n}${e[1]?e[0].toUpperCase():""}(${o})`,le()]},We=()=>"var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow,0 0 transparent)",He=(e,{theme:t},n)=>(o=t("gradientColorStops",e))&&{["--tw-gradient-"+n]:o},Le=e=>(t,n,r)=>r[1]?Q(n.theme(e,t),r[1],e):w(e)(t,n,r),I=Le("padding"),W=Le("margin"),Me=(e,{theme:t},n)=>(o={w:"width",h:"height"}[e[0]])&&{[o=`${n}${Ee(o)}`]:t(o,c(e))},Ue={group:(e,{tag:t})=>t("group"),hidden:R(j,"none"),inline:j,block:j,contents:j,flow:j,table:(e,t,n)=>b(["auto","fixed"],e[0])?{tableLayout:e[0]}:j(e,t,n),flex(e,t,n){switch(e[0]){case"row":case"col":return{flexDirection:g(e[0]==="col"?["column",...c(e)]:e)};case"nowrap":case"wrap":return{flexWrap:g(e)};case"grow":case"shrink":return{[`flex-${e[0]}`]:e[1]||"1"}}return(o=t.theme("flex",e,""))?{flex:o}:j(e,t,n)},grid(e,t,n){switch(e[0]){case"cols":case"rows":return e.length>1&&{[`grid-template-${e[0]==="cols"?"columns":e[0]}`]:e.length===2&&Number(e[1])?`repeat(${e[1]},minmax(0,1fr))`:g(c(e)," ")};case"flow":return e.length>1&&{gridAutoFlow:g(e[1]==="col"?["column",...c(e,2)]:c(e)," ")}}return j(e,t,n)},auto:e=>b(["cols","rows"],e[0])&&(o=e.length===2?{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"}[e[1]]||`minmax(0,${e[1]})`:e.length>2&&`minmax(${g(c(e),",")})`)&&{[`grid-auto-${e[0]==="cols"?"columns":"rows"}`]:o},static:X,fixed:X,absolute:X,relative:X,sticky:X,visible:{visibility:"visible"},invisible:{visibility:"hidden"},antialiased:{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},"subpixel-antialiased":{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"},truncate:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},"sr-only":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"},"not-sr-only":{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"},resize:e=>({resize:{x:"vertical",y:"horizontal"}[e[0]]||e[0]||"both"}),box:e=>({"box-sizing":`${e[0]}-box`}),appearance:p("appearance"),cursor:p("cursor"),float:p("float"),clear:p("clear"),top:te,right:te,bottom:te,left:te,inset:(e,{theme:t})=>(o=Y(e[0]))?Q(t("inset",c(e)),e[0]):(o=t("inset",e))&&{top:o,right:o,bottom:o,left:o},underline:V,"line-through":V,"no-underline":R(V,"none"),"text-underline":R(V,"underline"),"text-no-underline":R(V,"none"),"text-line-through":R(V,"line-through"),uppercase:_,lowercase:_,capitalize:_,"normal-case":R(_,"none"),"text-normal-case":R(_,"none"),italic:ee,"not-italic":R(ee,"normal"),"font-italic":R(ee,"italic"),"font-not-italic":R(ee,"normal"),font:(e,t,n)=>(o=t.theme("fontFamily",e,""))?{fontFamily:o}:w("fontWeight")(e,t,n),items:e=>({alignItems:b(["start","end"],e[0])?`flex-${e[0]}`:g(e)}),content:ae("alignContent"),justify:ae("justifyContent"),self:ae("alignSelf"),place:e=>Fe("place-"+e[0],c(e)),overscroll:e=>({["overscrollBehavior"+(e[1]?"-"+e[0]:"")]:e[1]||e[0]}),col:Oe("column"),row:Oe("row"),duration:w("transitionDuration"),delay:w("transitionDelay"),tracking:w("letterSpacing"),leading:w("lineHeight"),z:w("zIndex"),opacity:w(),ease:w("transitionTimingFunction"),p:I,py:I,px:I,pt:I,pr:I,pb:I,pl:I,m:W,my:W,mx:W,mt:W,mr:W,mb:W,ml:W,w:w("width"),h:w("height"),min:Me,max:Me,fill:w(),order:w(),origin:p("transformOrigin"," "),select:p("userSelect"),"pointer-events":p("pointerEvents"),align:p("verticalAlign"),whitespace:p("whiteSpace"),"normal-nums":{fontVariantNumeric:"normal"},ordinal:A("ordinal"),"slashed-zero":A("slashed-zero"),"lining-nums":A("numeric-figure"),"oldstyle-nums":A("numeric-figure"),"proportional-nums":A("numeric-spacing"),"tabular-nums":A("numeric-spacing"),"diagonal-fractions":A("numeric-fraction"),"stacked-fractions":A("numeric-fraction"),overflow:e=>b(["ellipsis","clip"],e[0])?p("textOverflow")(e):e[1]?{[`overflow-${e[0]}`]:e[1]}:p("overflow")(e),transform:e=>e[0]==="none"?{transform:"none"}:{"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1",transform:le(e[0]==="gpu")},rotate:(e,{theme:t})=>(o=t("rotate",e))&&{"--tw-rotate":o,transform:[`rotate(${o})`,le()]},scale:ce,translate:ce,skew:ce,gap:(e,t,n)=>(o={x:"column",y:"row"}[e[0]])?{[o+"Gap"]:t.theme("gap",c(e))}:w("gap")(e,t,n),stroke:(e,t,n)=>(o=t.theme("stroke",e,""))?{stroke:o}:w("strokeWidth")(e,t,n),outline:(e,{theme:t})=>(o=t("outline",e))&&{outline:o[0],outlineOffset:o[1]},break(e){switch(e[0]){case"normal":return{wordBreak:"normal",overflowWrap:"normal"};case"words":return{overflowWrap:"break-word"};case"all":return{wordBreak:"break-all"}}},text(e,{theme:t},n){switch(e[0]){case"left":case"center":case"right":case"justify":return{textAlign:e[0]};case"uppercase":case"lowercase":case"capitalize":return _([],o,e[0]);case"opacity":return q(e,t,n)}let r=t("fontSize",e,"");return r?$(r)?{fontSize:r}:{fontSize:r[0],...$(r[1])?{lineHeight:r[1]}:r[1]}:ne("color","text",t("textColor",e))},bg(e,{theme:t},n){switch(e[0]){case"fixed":case"local":case"scroll":return p("backgroundAttachment",",")(e);case"bottom":case"center":case"left":case"right":case"top":return p("backgroundPosition"," ")(e);case"no":return e[1]==="repeat"&&p("backgroundRepeat")(e);case"auto":case"cover":case"contain":return p("backgroundSize")(e);case"repeat":return b("xy",e[1])?p("backgroundRepeat")(e):{"background-repeat":e[1]||e[0]};case"opacity":return q(e,t,n,"background");case"clip":return{backgroundClip:e[1]+(e[1]==="text"?"":"-box")};case"gradient":if(e[1]==="to"&&(o=Y(e[2])))return{backgroundImage:`linear-gradient(to ${g(o," ")},var(--tw-gradient-stops,var(--tw-gradient-from,transparent),var(--tw-gradient-to,transparent)))`}}return(o=t("backgroundImage",e,""))?{backgroundImage:o}:ne("backgroundColor","bg",t("backgroundColor",e))},from:He,to:He,via:(e,{theme:t})=>(o=t("gradientColorStops",e))&&{"--tw-gradient-stops":`var(--tw-gradient-from,transparent),${o},var(--tw-gradient-to,transparent)`},border:(e,t,n)=>Y(e[0])?Q(t.theme("borderWidth",c(e)),e[0],"border","width"):Ie(e,t,n),divide:(e,t,n)=>(o=ze(e,t,n,"divideWidth","border","width")||Ie(e,t,n))&&{"&>:not([hidden])~:not([hidden])":o},space:(e,t,n)=>(o=ze(e,t,n,"space","margin"))&&{"&>:not([hidden])~:not([hidden])":o},placeholder:(e,{theme:t},n)=>(o=e[0]==="opacity"?q(e,t,n):ne("color","placeholder",t("placeholderColor",e)))&&{"&::placeholder":o},shadow:(e,{theme:t})=>(o=t("boxShadow",e))&&{"--tw-shadow":o,boxShadow:[o,We()]},animate:(e,{theme:t,tag:n})=>{if(v=t("animation",e)){let r=v.split(" ");return(o=t("keyframes",r[0],O={}))!==O?(v=n(r[0]))&&{animation:v+" "+g(c(r)," "),["@keyframes "+v]:o}:{animation:v}}},ring(e,{theme:t},n){switch(e[0]){case"inset":return{"--tw-ring-inset":"inset"};case"opacity":return q(e,t,n);case"offset":return(o=t("ringOffsetWidth",c(e),""))?{"--tw-ring-offset-width":o}:{"--tw-ring-offset-color":t("ringOffsetColor",c(e))}}return(o=t("ringWidth",e,""))?{"--tw-ring-offset-shadow":`var(--tw-ring-inset,/*!*/ /*!*/) 0 0 0 var(--tw-ring-offset-width,${t("ringOffsetWidth","","0px")}) var(--tw-ring-offset-color,${t("ringOffsetColor","","#fff")})`,"--tw-ring-shadow":`var(--tw-ring-inset,/*!*/ /*!*/) 0 0 0 calc(${o} + var(--tw-ring-offset-width,${t("ringOffsetWidth","","0px")})) var(--tw-ring-color,${se(t("ringColor","","#93c5fd"),"ring-opacity",t("ringOpacity","","0.5"))})`,"box-shadow":We()}:{"--tw-ring-opacity":"1","--tw-ring-color":se(t("ringColor",e),"ring-opacity")}},object:e=>b(["contain","cover","fill","none","scale"],e[0])?p("objectFit")(e):p("objectPosition"," ")(e),list:e=>p(b(["inside","outside"],e[0])?"listStylePosition":"listStyleType")(e),rounded:(e,t,n)=>De(t.theme("borderRadius",c(e),""),e[0],"border","radius")||w("borderRadius")(e,t,n),"transition-none":{"transition-property":"none"},transition:(e,{theme:t})=>({transition:N([t("transitionProperty",e),t("transitionDuration",""),t("transitionTimingFunction","")]," ")}),container:(e,{theme:t})=>{let{screens:n=t("screens"),center:r,padding:i}=t("container"),s=l=>(o=i&&($(i)?i:i[l]||i.DEFAULT))?{paddingRight:o,paddingLeft:o}:{};return Object.keys(n).reduce((l,d)=>((o=n[d])&&(l[`@media (min-width: ${o})`]={"&":{"max-width":o,...s(d)}}),l),{width:"100%",...r?{marginRight:"auto",marginLeft:"auto"}:{},...s("xs")})}},Ne=e=>({":root":{tabSize:4},"body,blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre,fieldset,ol,ul":{margin:"0"},button:{backgroundColor:"transparent",backgroundImage:"none"},'button,[type="button"],[type="reset"],[type="submit"]':{WebkitAppearance:"button"},"button:focus":{outline:["1px dotted","5px auto -webkit-focus-ring-color"]},"fieldset,ol,ul,legend":{padding:"0"},"ol,ul":{listStyle:"none"},html:{lineHeight:"1.5",WebkitTextSizeAdjust:"100%",fontFamily:e("fontFamily","sans","ui-sans-serif,system-ui,sans-serif")},body:{fontFamily:"inherit",lineHeight:"inherit"},"*,::before,::after":{boxSizing:"border-box",border:`0 solid ${e("borderColor","DEFAULT","currentColor")}`},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},img:{borderStyle:"solid"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{color:e("placeholderColor","DEFAULT","#a1a1aa")},'button,[role="button"]':{cursor:"pointer"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",margin:"0",padding:"0",lineHeight:"inherit",color:"inherit"},"button,select":{textTransform:"none"},"::-moz-focus-inner":{borderStyle:"none",padding:"0"},":-moz-focusring":{outline:"1px dotted ButtonText"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},'[type="search"]':{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"abbr[title]":{textDecoration:"underline dotted"},"b,strong":{fontWeight:"bolder"},"pre,code,kbd,samp":{fontFamily:e("fontFamily","mono","ui-monospace,monospace"),fontSize:"1em"},"sub,sup":{fontSize:"75%",lineHeight:"0",position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"}}),_e={":dark":"@media (prefers-color-scheme:dark)",":sticky":"@supports ((position: -webkit-sticky) or (position:sticky))",":motion-reduce":"@media (prefers-reduced-motion:reduce)",":motion-safe":"@media (prefers-reduced-motion:no-preference)",":first":"&:first-child",":last":"&:last-child",":even":"&:nth-child(2n)",":odd":"&:nth-child(odd)",":children":"&>*",":siblings":"&~*"},Ve="__tw-in-js",at=e=>{let t=self[Ve];return t||(t=document.head.appendChild(document.createElement("style")),t.id=Ve,e&&(t.nonce=e)),t},lt=({target:e=[]}={})=>({target:e,insert:(t,n)=>e.splice(n,0,t)}),de=({nonce:e,target:t=at(e).sheet}={})=>({target:t,insert:t.insertRule.bind(t)}),ue=()=>({insert:()=>{}}),re=e=>({unknown(t,n=[],r,i){r||this.report({id:"UNKNOWN_THEME_VALUE",key:g([t,...n],".")},i)},report({id:t,...n}){let r=`[${t}] ${JSON.stringify(n)}`,i=(new Error(r).stack||r).split("at ");for(let s;(s=i.splice(1,1)[0])&&!/(^|\.)(tw|setup) /.test(s););e(i.join("at "))}}),ge=re(e=>console.warn(e)),ct=re(e=>{throw new Error(e)}),dt=re($e);import{prefixProperty as ut,prefixValue as gt}from"tiny-css-prefixer";var fe=(e,t)=>{let n=`${e}:${gt(e,t)}`,r=n,i=ut(e);return i&1&&(r+=`;-ms-${n}`),i&2&&(r+=`;-moz-${n}`),i&4&&(r+=`;-webkit-${n}`),r},pe=(e,t)=>`${e}:${t}`,K=(e,t)=>{let n={};do for(let r=1;r<e;r++)n[`${r}/${e}`]=Number((r/e*100).toFixed(6))+"%";while(++e<=t);return n},P=(e,t,n=0)=>{let r={};for(;n<=e;n=n*2||1)r[n]=n+t;return r},E=(e,t="",n=1,r=0,i=1)=>{let s={};for(;r<=e;r+=i)s[r]=r/n+t;return s},y=e=>t=>t(e),Be={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},colors:{transparent:"transparent",current:"currentColor",black:"#000",white:"#fff",gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},yellow:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},green:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},purple:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"}},spacing:{px:"1px",0:"0px",...E(4,"rem",4,.5,.5),...E(12,"rem",4,5),14:"3.5rem",...E(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",pulse:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",bounce:"bounce 1s infinite"},backgroundColor:y("colors"),backgroundImage:{none:"none"},backgroundOpacity:y("opacity"),borderColor:e=>({...e("colors"),DEFAULT:e("colors.gray.200","currentColor")}),borderOpacity:y("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},borderWidth:{DEFAULT:"1px",...P(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",DEFAULT:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",inner:"inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)",none:"none"},container:{},divideColor:y("borderColor"),divideOpacity:y("borderOpacity"),divideWidth:y("borderWidth"),fill:{current:"currentColor"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:y("spacing"),gradientColorStops:y("colors"),height:e=>({auto:"auto",...e("spacing"),...K(2,6),full:"100%",screen:"100vh"}),inset:e=>({auto:"auto",...e("spacing"),...K(2,4),full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",...E(10,"rem",4,3)},margin:e=>({auto:"auto",...e("spacing")}),maxHeight:e=>({...e("spacing"),full:"100%",screen:"100vh"}),maxWidth:(e,{breakpoints:t})=>({none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",prose:"65ch",...t(e("screens"))}),minHeight:{0:"0px",full:"100%",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content"},opacity:{...E(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0",...E(12,"",1,1)},outline:{none:["2px solid transparent","2px"],white:["2px dotted white","2px"],black:["2px dotted black","2px"]},padding:y("spacing"),placeholderColor:y("colors"),placeholderOpacity:y("opacity"),ringColor:e=>({DEFAULT:e("colors.blue.500","#3b82f6"),...e("colors")}),ringOffsetColor:y("colors"),ringOffsetWidth:P(8,"px"),ringOpacity:e=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",...P(8,"px")},rotate:{...P(2,"deg"),...P(12,"deg",3),...P(180,"deg",45)},scale:{0:"0",50:".5",75:".75",...E(110,"",100,90,5),125:"1.25",150:"1.5"},skew:{...P(2,"deg"),...P(12,"deg",3)},space:y("spacing"),stroke:{current:"currentColor"},strokeWidth:E(2),textColor:y("colors"),textOpacity:y("opacity"),transitionDuration:e=>({DEFAULT:"150ms",...e("durations")}),transitionDelay:y("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"background-color,border-color,color,fill,stroke,opacity,box-shadow,transform",colors:"background-color,border-color,color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:e=>({...e("spacing"),...K(2,4),full:"100%"}),width:e=>({auto:"auto",...e("spacing"),...K(2,6),...K(12,12),screen:"100vw",full:"100%",min:"min-content",max:"max-content"}),zIndex:{auto:"auto",...E(50,"",1,0,10)}},ft=e=>Object.keys(e).reduce((t,n)=>{let r=e[n];return t[n]=r,Re(r)?Object.keys(r).reduce((i,s)=>(s==="DEFAULT"&&(i[n]=r[s]),i[n+"-"+s]=r[s],i[n+"."+s]=r[s],i),t):t},{}),pt={negative:()=>({}),breakpoints:e=>Object.keys(e).reduce((t,n)=>(t["screen-"+n]=e[n],t),{})},Ge=e=>{let t=new Map,n={...Be,...e},r=(l,d)=>{let m=l.split(".");return s(m[0],m.length>1?c(m):void 0,d)},i=(l,d)=>{let m=l&&l[d],C=F(m)?m(r,pt):m;return C&&d==="colors"?ft(C):C},s=(l,d,m)=>{let C=t.get(l);if(C||t.set(l,C={...i(n,l),...i(n.extend,l)}),d!=null){let f=C[(Array.isArray(d)?g(d):d)||"DEFAULT"];return f==null?m:Array.isArray(f)&&!b(["fontSize","outline"],l)?g(f,","):f}return C};return s},D,B,H=(e="")=>(D.push(e),""),me=e=>{D.length=Math.max(D.lastIndexOf("")+~~e,0)},mt=e=>e&&e[0]!==":",ht=e=>e[0]===":",Ye=(e,t)=>{B.push({v:D.filter(ht),d:e,n:t,$:""})},Je=e=>{let t=e[0]==="-";t&&(e=c(e));let n=g(D.filter(mt));return Ye(e==="&"?n:(n&&n+"-")+e,t),""},he=(e,t)=>{let n,r="";for(let i=0;i<e.length;)switch(n=e[i++]){case":":r=r&&H(":"+r);break;case"(":r=r&&H(r),H();break;case")":case" ":case" ":case` | ||
`:case"\r":r=r&&Je(r),me(n!==")");break;default:r+=n}r&&(t?H(":"+r):r.slice(-1)==="-"?H(r.slice(0,-1)):Je(r))},Xe=e=>{H(),be(e),me()},bt=(e,t)=>{if(t){H();let n=b("tbu",(typeof t)[1]);he(e,n),n&&Xe(t),me()}},be=e=>{switch(typeof e){case"string":he(e);break;case"function":Ye(e);break;case"object":Array.isArray(e)?e.forEach(Xe):e&&Object.keys(e).forEach(t=>{bt(t,e[t])})}},qe=new WeakMap,xt=e=>{let t=qe.get(e);return t||(t=e.map(n=>{let r=B=[];he(n);let i=[...D];return B=[],s=>{B.push(...r),D=[...i],s&&be(s)}}),qe.set(e,t)),t},Ke=e=>(D=[],B=[],Array.isArray(e[0])&&Array.isArray(e[0].raw)?xt(e[0]).forEach((t,n)=>t(e[n+1])):e.forEach(be),B),Ze=(e,t)=>n=>{if(F(n.d))return n.d(t);let r=n.d.split("-");for(let i=r.length;i;i--){let s=g(r.slice(0,i)),l=e[s];if(l)return F(l)?l(c(r,i),t,s):$(l)?t.tw(l):l}},Qe=(e,t,{theme:n,tag:r})=>{let i=(s,l)=>{let d=n("screens",c(l),"");return d?{[`@media (min-width: ${d})`]:s}:l===":dark"&&e==="class"?{[".dark &"]:s}:l.slice(1,7)==="group-"?{[`.${Z(r("group"))}:${c(l,7)} &`]:s}:{[t[l]||"&"+l]:s}};return(s,l)=>l.v.reduceRight(i,s)},S,xe=e=>(((S=/(?:^|min-width: *)(\d+(?:.\d+)?)(p)?/.exec(e))?+S[1]/(S[2]?15:1)/10:0)&31)<<23,et=e=>{S=0;for(let t=e.length;t--;)S+=b("-:,",e[t]);return S},we=e=>(et(e)&15)<<18,wt=["rst","st","en","d","nk","sited","pty","ecked","cus-w","ver","cus","cus-v","tive","sable","ad-on","tiona","quire"],yt=e=>1<<(~(S=wt.indexOf(e.replace(/^:group-/,":").slice(3,8)))?S:17),tt=(e,t)=>(n,r)=>n|((S=e("screens",c(r),""))?xe(S):r===":dark"?1<<22:(S=t[r]||r)[0]==="@"?we(S):yt(r)),St=/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7}$)|([fl].{5}l|g.{8}$|pl))/,nt=e=>e[0]==="-"?0:et(e)+((S=St.exec(e))?+!!S[1]||-!!S[2]:0)+1,ye=(e,t)=>t+"{"+e+"}",rt=(e,t,{theme:n,tag:r})=>{let i=(f,x)=>"--"+r(x),s=f=>`${f}`.replace(/--(tw-[\w-]+)\b/g,i),l=(f,x)=>(f=s(f),Array.isArray(x)?g(x.filter(Boolean).map(T=>e(f,s(T))),";"):e(f,s(x))),d,m=(f,x,T,G)=>{let L="",M=0,U=0;Object.keys(G).forEach(a=>{let u=G[a];if(b("rg",(typeof u)[5])||Array.isArray(u)){let h=je(a);U+=1,M=Math.max(M,nt(h)),L=(L&&L+";")+l(h,u)}else if(u)if(a[0]==="@")if(a[1]==="f")m([],a,0,u);else if(a[1]==="k"){let h=d.length;m([],"",0,u);let k=d.splice(h,d.length-h);d.push({r:ye(g(k.map(z=>z.r),""),a),p:k.reduce((z,st)=>z+st.p,0)})}else m([...f,a],x,T|(xe(a)||we(a)),u);else{let h=x&&b(a,"&");m(f,h?x.replace(/([^,])+/g,k=>a.replace(/([^,])+/g,z=>b(z,"&")?z.replace(/&/g,k):z)):a,h?T:0,u)}}),U&&d.push({r:f.reduceRight(ye,ye(L,x)),p:T*(1<<8)+(((M||15)&15)<<4|Math.max(0,15-U)&15)})},C=tt(n,t);return(f,x,T)=>(d=[],m([],x?"."+Z(x):"",T?T.v.reduceRight(C,0):0,f),d)},ot=(e,t,n)=>{let r=[],i=new Set;return({r:s,p:l})=>{if(!i.has(s)){let d=Ae(r,l);try{e.insert(s,d),i.add(s),r.splice(d,0,l)}catch(m){/:-[mwo]/.test(s)||t.report({id:"INJECT_CSS_ERROR",css:s,error:m},n)}}}},Se=(e,t,n,r=t)=>e===!1?n:e===!0?r:e||t,ve=(e,t=e.d)=>{if(F(t))return"";let n=g(e.v,"");return(n&&c(n)+":")+(e.n?"-":"")+t},it=(e={})=>{let t=Ge(e.theme),n=e.mode||ge,r=Se(e.hash,!1,!1,oe),i={v:[]},s={tw:(...a)=>M(a),theme:(a,u,h)=>{u!=null&&!u.length&&(u="DEFAULT");let k=t(a,u,h)||n.unknown(a,u==null||Array.isArray(u)?u:u.split("."),h!=null,s);return i.n&&k&&$(k)?`calc(${k} * -1)`:k},tag:a=>r?r(a):a},l=Ze({...Ue,...e.plugins},s),d=a=>{let u=i;i=a;try{return l(a)}finally{i=u}},m={..._e,...e.variants},C=Qe(e.darkMode||"media",m,s),f=rt(Se(e.prefix,fe,pe),m,s),x=ot(e.injector||(typeof window=="undefined"?ue():de(e)),n,s),T=new Map,G=new WeakMap,L=a=>{i.v.length&&(a={...a,v:[...i.v,...a.v],$:""}),a.$||(a.$=ve(a)||ve(a,G.get(a.d)));let u=T.get(a.$);if(u==null){let h=d(a);a.$||(a.$=oe(JSON.stringify(h)),G.set(a.d,a.$),a.$=ve(a,a.$)),$(h)?u=h:h?(h=C(h,a),u=r?r(JSON.stringify(h)):a.$,f(h,u,a).forEach(x)):(a.$.slice(0,3)!=="tw-"&&n.report({id:"UNKNOWN_DIRECTIVE",rule:a.$},s),u=a.$),T.set(a.$,u)}return u},M=a=>Ke(a).map(L).filter(Boolean).join(" "),U=Se(e.preflight,ke,!1);if(U){let a=Ne(t);f(U(a,s)||a).forEach(x)}return{init:()=>n.report({id:"LATE_SETUP_CALL"},s),process:M,theme:t}},Ce=e=>{let t=i=>(r(),t(i)),n=(i,s,l)=>(r(),n(i,s,l)),r=i=>{({process:t,init:r,theme:n}=it(i))};return e&&r(e),{tw:(...i)=>t(i),setup:i=>r(i),theme:n}},Te=Ce(),{tw:vt}=Te,{setup:Ct}=Te,{theme:Tt}=Te;export{fe as autoprefix,Ce as create,de as cssomInjector,re as mode,ue as noOpInjector,pe as noprefix,Ct as setup,dt as silent,ct as strict,Tt as theme,vt as tw,lt as virtualInjector,ge as warn}; | ||
//# sourceMappingURL=twind.js.map |
!function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof module&&module.exports?module.exports=t(require):e.twind=t((function(t){for(var i="twind".split("."),n=t.split("/");".."==n[0];)n.shift(),i.pop();for(var f,o=i.concat(t),r=e;r&&(f=o.shift());r=r[f]);return r}))}("undefined"!=typeof self?self:this,(function(require){ | ||
var exports=(()=>{var ke=Object.defineProperty,ht=Object.prototype.hasOwnProperty,$e=Object.getOwnPropertySymbols,bt=Object.prototype.propertyIsEnumerable,a=Object.assign,xt=e=>ke(e,"__esModule",{value:!0}),Ee=(e,t)=>{var n={};for(var r in e)ht.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&$e)for(var r of $e(e))t.indexOf(r)<0&&bt.call(e,r)&&(n[r]=e[r]);return n},wt=(e,t)=>{xt(e);for(var n in t)ke(e,n,{get:t[n],enumerable:!0})},Ft={};wt(Ft,{autoprefix:()=>ae,create:()=>de,cssomInjector:()=>re,mode:()=>ie,noOpInjector:()=>oe,noprefix:()=>le,setup:()=>pt,strict:()=>Je,tw:()=>ft,virtualInjector:()=>Ye,warn:()=>se});var $=e=>typeof e=="string",je=e=>e!=null&&typeof e=="object",F=e=>typeof e=="function",x=(e,t)=>!!~e.indexOf(t),g=(e,t="-")=>e.join(t),N=(e,t)=>g(e.filter(Boolean),t),d=(e,t=1)=>e.slice(t),Ae=e=>e,Pe=e=>e[0].toUpperCase()+d(e),De=e=>e.replace(/[A-Z]/g,"-$&").toLowerCase(),Z=typeof CSS!="undefined"&&CSS.escape||(e=>{let t=e.charCodeAt(0),n="";return t>=48&&t<=57&&(n="\\"+t.toString(16)+" ",e=d(e)),n+e.replace(/[!./:#]/g,"\\$&")}),ue=e=>{let t=9;for(let n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"tw-"+((t^t>>>9)>>>0).toString(36)},ze=(e,t)=>{let n=e.length;if(n===0)return 0;for(let r=0;r<n;){let i=n+r>>1;e[i]<=t?r=i+1:n=i}return n},Fe=e=>(t,n,r,i)=>{if(t){let s=n&&e(n);if(s&&s.length>0)return s.reduce((c,f)=>(c[N([r,f,i])]=t,c),{})}},Oe=Fe(e=>({t:["top-left","top-right"],r:["top-right","bottom-right"],b:["bottom-left","bottom-right"],l:["bottom-left","top-left"],tl:["top-left"],tr:["top-right"],bl:["bottom-left"],br:["bottom-right"]})[e]),Y=e=>{let t=({x:"lr",y:"tb"}[e]||e||"").split("").sort();for(let n=t.length;n--;)if(!(t[n]={t:"top",r:"right",b:"bottom",l:"left"}[t[n]]))return;if(t.length)return t},Q=Fe(Y),o,O,C,J=e=>(t,n,r)=>({[e]:r+((o=g(t))&&"-"+o)}),h=(e,t)=>n=>({[e]:g(n,t)}),w=e=>(t,{theme:n},r)=>({[e||r]:n(e||r,t)}),R=(e,t)=>(n,r)=>e(n,r,t),j=J("display"),X=J("position"),_=J("textTransform"),V=J("textDecoration"),ee=J("fontStyle"),A=e=>(t,n,r)=>({["--tw-"+e]:r,fontVariantNumeric:"var(--tw-ordinal,/*!*/ /*!*/) var(--tw-slashed-zero,/*!*/ /*!*/) var(--tw-numeric-figure,/*!*/ /*!*/) var(--tw-numeric-spacing,/*!*/ /*!*/) var(--tw-numeric-fraction,/*!*/ /*!*/)"}),te=(e,{theme:t},n)=>({[n]:t("inset",e)}),q=(e,t,n,r=n)=>({[`--tw-${n}-opacity`]:t(r+"Opacity",d(e))}),ge=(e,t)=>Math.round(parseInt(e,16)*t),fe=(e,t,n)=>e&&e[0]==="#"?`rgba(${ge(e.substr(1,o=(e.length-1)/3),C=[17,1,.062272][o-1])},${ge(e.substr(1+o,o),C)},${ge(e.substr(1+2*o,o),C)},var(--tw-${t}${n?","+n:""}))`:e,ne=(e,t,n)=>n&&(o=fe(n,t+"-opacity"))&&o!==n?{[`--tw-${t}-opacity`]:"1",[e]:[n,o]}:{[e]:n},Ie=(e,{theme:t},n,r,i,s)=>(o={x:["right","left"],y:["bottom","top"]}[e[0]])&&(C=`--tw-${n}-${e[0]}-reverse`)?e[1]==="reverse"?{[C]:"1"}:{[C]:"0",[N([i,o[0],s])]:(O=t(r,d(e)))&&`calc(${O} * var(${C}))`,[N([i,o[1],s])]:O&&[O,`calc(${O} * calc(1 - var(${C})))`]}:void 0,We=(e,t)=>({[e]:(x("wun",(t[0]||"")[3])?"space-":"")+t[0]}),pe=e=>t=>x(["start","end"],t[0])?{[e]:`flex-${t[0]}`}:We(e,t),He=e=>t=>{switch(t[0]){case"auto":return{[`grid-${e}`]:"auto"};case"span":return{[`grid-${e}`]:t[1]==="full"?"1 / -1":`span ${t[1]} / span ${t[1]}`};case"start":case"end":return{[`grid-${e}-${t[0]}`]:t[1]}}},Le=(e,{theme:t},n)=>{switch(e[0]){case"solid":case"dashed":case"dotted":case"double":case"none":return h("borderStyle")(e);case"collapse":case"separate":return h("borderCollapse")(e);case"opacity":return q(e,t,n)}return(o=t(n+"Width",e,""))?{borderWidth:o}:ne("borderColor",n,t(n+"Color",e))},me=e=>(e?"translate3d(var(--tw-translate-x,0),var(--tw-translate-y,0),0)":"translateX(var(--tw-translate-x,0)) translateY(var(--tw-translate-y,0))")+" rotate(var(--tw-rotate,0)) skewX(var(--tw-skew-x,0)) skewY(var(--tw-skew-y,0)) scaleX(var(--tw-scale-x,1)) scaleY(var(--tw-scale-y,1))",he=(e,t,n)=>(o=t.theme(n,e[1]||e[0]))&&{[`--tw-${n}-x`]:e[0]!=="y"&&o,[`--tw-${n}-y`]:e[0]!=="x"&&o,transform:[`${n}${e[1]?e[0].toUpperCase():""}(${o})`,me()]},Me=()=>"var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow,0 0 transparent)",Ue=(e,{theme:t},n)=>(o=t("gradientColorStops",e))&&{["--tw-gradient-"+n]:o},Ne=e=>(t,n,r)=>r[1]?Q(n.theme(e,t),r[1],e):w(e)(t,n,r),I=Ne("padding"),W=Ne("margin"),_e=(e,{theme:t},n)=>(o={w:"width",h:"height"}[e[0]])&&{[o=`${n}${Pe(o)}`]:t(o,d(e))},Ve={group:(e,{tag:t})=>t("group"),hidden:R(j,"none"),inline:j,block:j,contents:j,flow:j,table:(e,t,n)=>x(["auto","fixed"],e[0])?{tableLayout:e[0]}:j(e,t,n),flex(e,t,n){switch(e[0]){case"row":case"col":return{flexDirection:g(e[0]==="col"?["column",...d(e)]:e)};case"nowrap":case"wrap":return{flexWrap:g(e)};case"grow":case"shrink":return{[`flex-${e[0]}`]:e[1]||"1"}}return(o=t.theme("flex",e,""))?{flex:o}:j(e,t,n)},grid(e,t,n){switch(e[0]){case"cols":case"rows":return e.length>1&&{[`grid-template-${e[0]==="cols"?"columns":e[0]}`]:e.length===2&&Number(e[1])?`repeat(${e[1]},minmax(0,1fr))`:g(d(e)," ")};case"flow":return e.length>1&&{gridAutoFlow:g(e[1]==="col"?["column",...d(e,2)]:d(e)," ")}}return j(e,t,n)},auto:e=>x(["cols","rows"],e[0])&&(o=e.length===2?{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"}[e[1]]||`minmax(0,${e[1]})`:e.length>2&&`minmax(${g(d(e),",")})`)&&{[`grid-auto-${e[0]==="cols"?"columns":"rows"}`]:o},static:X,fixed:X,absolute:X,relative:X,sticky:X,visible:{visibility:"visible"},invisible:{visibility:"hidden"},antialiased:{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},"subpixel-antialiased":{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"},truncate:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},"sr-only":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"},"not-sr-only":{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"},resize:e=>({resize:{x:"vertical",y:"horizontal"}[e[0]]||e[0]||"both"}),box:e=>({"box-sizing":`${e[0]}-box`}),appearance:h("appearance"),cursor:h("cursor"),float:h("float"),clear:h("clear"),top:te,right:te,bottom:te,left:te,inset:(e,{theme:t})=>(o=Y(e[0]))?Q(t("inset",d(e)),e[0]):(o=t("inset",e))&&{top:o,right:o,bottom:o,left:o},underline:V,"line-through":V,"no-underline":R(V,"none"),"text-underline":R(V,"underline"),"text-no-underline":R(V,"none"),"text-line-through":R(V,"line-through"),uppercase:_,lowercase:_,capitalize:_,"normal-case":R(_,"none"),"text-normal-case":R(_,"none"),italic:ee,"not-italic":R(ee,"normal"),"font-italic":R(ee,"italic"),"font-not-italic":R(ee,"normal"),font:(e,t,n)=>(o=t.theme("fontFamily",e,""))?{fontFamily:o}:w("fontWeight")(e,t,n),items:e=>({alignItems:x(["start","end"],e[0])?`flex-${e[0]}`:g(e)}),content:pe("alignContent"),justify:pe("justifyContent"),self:pe("alignSelf"),place:e=>We("place-"+e[0],d(e)),overscroll:e=>({["overscrollBehavior"+(e[1]?"-"+e[0]:"")]:e[1]||e[0]}),col:He("column"),row:He("row"),duration:w("transitionDuration"),delay:w("transitionDelay"),tracking:w("letterSpacing"),leading:w("lineHeight"),z:w("zIndex"),opacity:w(),ease:w("transitionTimingFunction"),p:I,py:I,px:I,pt:I,pr:I,pb:I,pl:I,m:W,my:W,mx:W,mt:W,mr:W,mb:W,ml:W,w:w("width"),h:w("height"),min:_e,max:_e,fill:w(),order:w(),origin:h("transformOrigin"," "),select:h("userSelect"),"pointer-events":h("pointerEvents"),align:h("verticalAlign"),whitespace:h("whiteSpace"),"normal-nums":{fontVariantNumeric:"normal"},ordinal:A("ordinal"),"slashed-zero":A("slashed-zero"),"lining-nums":A("numeric-figure"),"oldstyle-nums":A("numeric-figure"),"proportional-nums":A("numeric-spacing"),"tabular-nums":A("numeric-spacing"),"diagonal-fractions":A("numeric-fraction"),"stacked-fractions":A("numeric-fraction"),overflow:e=>x(["ellipsis","clip"],e[0])?h("textOverflow")(e):e[1]?{[`overflow-${e[0]}`]:e[1]}:h("overflow")(e),transform:e=>e[0]==="none"?{transform:"none"}:{"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1",transform:me(e[0]==="gpu")},rotate:(e,{theme:t})=>(o=t("rotate",e))&&{"--tw-rotate":o,transform:[`rotate(${o})`,me()]},scale:he,translate:he,skew:he,gap:(e,t,n)=>(o={x:"column",y:"row"}[e[0]])?{[o+"Gap"]:t.theme("gap",d(e))}:w("gap")(e,t,n),stroke:(e,t,n)=>(o=t.theme("stroke",e,""))?{stroke:o}:w("strokeWidth")(e,t,n),outline:(e,{theme:t})=>(o=t("outline",e))&&{outline:o[0],outlineOffset:o[1]},break(e){switch(e[0]){case"normal":return{wordBreak:"normal",overflowWrap:"normal"};case"words":return{overflowWrap:"break-word"};case"all":return{wordBreak:"break-all"}}},text(e,{theme:t},n){switch(e[0]){case"left":case"center":case"right":case"justify":return{textAlign:e[0]};case"uppercase":case"lowercase":case"capitalize":return _([],o,e[0]);case"opacity":return q(e,t,n)}let r=t("fontSize",e,"");return r?$(r)?{fontSize:r}:a({fontSize:r[0]},$(r[1])?{lineHeight:r[1]}:r[1]):ne("color","text",t("textColor",e))},bg(e,{theme:t},n){switch(e[0]){case"fixed":case"local":case"scroll":return h("backgroundAttachment",",")(e);case"bottom":case"center":case"left":case"right":case"top":return h("backgroundPosition"," ")(e);case"no":return e[1]==="repeat"&&h("backgroundRepeat")(e);case"auto":case"cover":case"contain":return h("backgroundSize")(e);case"repeat":return x("xy",e[1])?h("backgroundRepeat")(e):{"background-repeat":e[1]||e[0]};case"opacity":return q(e,t,n,"background");case"clip":return{backgroundClip:e[1]+(e[1]==="text"?"":"-box")};case"gradient":if(e[1]==="to"&&(o=Y(e[2])))return{backgroundImage:`linear-gradient(to ${g(o," ")},var(--tw-gradient-stops,var(--tw-gradient-from,transparent),var(--tw-gradient-to,transparent)))`}}return(o=t("backgroundImage",e,""))?{backgroundImage:o}:ne("backgroundColor","bg",t("backgroundColor",e))},from:Ue,to:Ue,via:(e,{theme:t})=>(o=t("gradientColorStops",e))&&{"--tw-gradient-stops":`var(--tw-gradient-from,transparent),${o},var(--tw-gradient-to,transparent)`},border:(e,t,n)=>Y(e[0])?Q(t.theme("borderWidth",d(e)),e[0],"border","width"):Le(e,t,n),divide:(e,t,n)=>(o=Ie(e,t,n,"divideWidth","border","width")||Le(e,t,n))&&{"&>:not([hidden])~:not([hidden])":o},space:(e,t,n)=>(o=Ie(e,t,n,"space","margin"))&&{"&>:not([hidden])~:not([hidden])":o},placeholder:(e,{theme:t},n)=>(o=e[0]==="opacity"?q(e,t,n):ne("color","placeholder",t("placeholderColor",e)))&&{"&::placeholder":o},shadow:(e,{theme:t})=>(o=t("boxShadow",e))&&{"--tw-shadow":o,boxShadow:[o,Me()]},animate:(e,{theme:t,tag:n})=>{if(C=t("animation",e)){let r=C.split(" ");return(o=t("keyframes",r[0],O={}))!==O?(C=n(r[0]))&&{animation:C+" "+g(d(r)," "),["@keyframes "+C]:o}:{animation:C}}},ring(e,{theme:t},n){switch(e[0]){case"inset":return{"--tw-ring-inset":"inset"};case"opacity":return q(e,t,n);case"offset":return(o=t("ringOffsetWidth",d(e),""))?{"--tw-ring-offset-width":o}:{"--tw-ring-offset-color":t("ringOffsetColor",d(e))}}return(o=t("ringWidth",e,""))?{"--tw-ring-offset-shadow":`var(--tw-ring-inset,/*!*/ /*!*/) 0 0 0 var(--tw-ring-offset-width,${t("ringOffsetWidth","","0px")}) var(--tw-ring-offset-color,${t("ringOffsetColor","","#fff")})`,"--tw-ring-shadow":`var(--tw-ring-inset,/*!*/ /*!*/) 0 0 0 calc(${o} + var(--tw-ring-offset-width,${t("ringOffsetWidth","","0px")})) var(--tw-ring-color,${fe(t("ringColor","","#93c5fd"),"ring-opacity",t("ringOpacity","","0.5"))})`,"box-shadow":Me()}:{"--tw-ring-opacity":"1","--tw-ring-color":fe(t("ringColor",e),"ring-opacity")}},object:e=>x(["contain","cover","fill","none","scale"],e[0])?h("objectFit")(e):h("objectPosition"," ")(e),list:e=>h(x(["inside","outside"],e[0])?"listStylePosition":"listStyleType")(e),rounded:(e,t,n)=>Oe(t.theme("borderRadius",d(e),""),e[0],"border","radius")||w("borderRadius")(e,t,n),"transition-none":{"transition-property":"none"},transition:(e,{theme:t})=>({transition:N([t("transitionProperty",e),t("transitionDuration",""),t("transitionTimingFunction","")]," ")}),container:(e,{theme:t})=>{let{screens:n=t("screens"),center:r,padding:i}=t("container"),s=c=>(o=i&&($(i)?i:i[c]||i.DEFAULT))?{paddingRight:o,paddingLeft:o}:{};return Object.keys(n).reduce((c,f)=>((o=n[f])&&(c[`@media (min-width: ${o})`]={"&":a({"max-width":o},s(f))}),c),a(a({width:"100%"},r?{marginRight:"auto",marginLeft:"auto"}:{}),s("xs")))}},Be=e=>({":root":{tabSize:4},"body,blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre,fieldset,ol,ul":{margin:"0"},button:{backgroundColor:"transparent",backgroundImage:"none"},'button,[type="button"],[type="reset"],[type="submit"]':{WebkitAppearance:"button"},"button:focus":{outline:["1px dotted","5px auto -webkit-focus-ring-color"]},"fieldset,ol,ul,legend":{padding:"0"},"ol,ul":{listStyle:"none"},html:{lineHeight:"1.5",WebkitTextSizeAdjust:"100%",fontFamily:e("fontFamily","sans","ui-sans-serif,system-ui,sans-serif")},body:{fontFamily:"inherit",lineHeight:"inherit"},"*,::before,::after":{boxSizing:"border-box",border:`0 solid ${e("borderColor","DEFAULT","currentColor")}`},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},img:{borderStyle:"solid"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{color:e("placeholderColor","DEFAULT","#a1a1aa")},'button,[role="button"]':{cursor:"pointer"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",margin:"0",padding:"0",lineHeight:"inherit",color:"inherit"},"button,select":{textTransform:"none"},"::-moz-focus-inner":{borderStyle:"none",padding:"0"},":-moz-focusring":{outline:"1px dotted ButtonText"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},'[type="search"]':{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"abbr[title]":{textDecoration:"underline dotted"},"b,strong":{fontWeight:"bolder"},"pre,code,kbd,samp":{fontFamily:e("fontFamily","mono","ui-monospace,monospace"),fontSize:"1em"},"sub,sup":{fontSize:"75%",lineHeight:"0",position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"}}),Ge="__tw-in-js",yt=e=>{let t=self[Ge];return t||(t=document.head.appendChild(document.createElement("style")),t.id=Ge,e&&(t.nonce=e)),t},Ye=({target:e=[]}={})=>({target:e,insert:(t,n)=>e.splice(n,0,t)}),re=({nonce:e,target:t=yt(e).sheet}={})=>({target:t,insert:t.insertRule.bind(t)}),oe=()=>({insert:()=>{}}),ie=e=>({unknown(t,n=[],r,i){r||this.report({id:"UNKNOWN_THEME_VALUE",key:g([t,...n],".")},i)},report(r){var{id:t}=r,n=Ee(r,["id"]);let i=`[${t}] ${JSON.stringify(n)}`,s=(new Error(i).stack||i).split("at ");for(let c;(c=s.splice(1,1)[0])&&!/(^|\.)(tw|setup) /.test(c););e(s.join("at "))}}),se=ie(e=>console.warn(e)),Je=ie(e=>{throw new Error(e)}),St=/^(br|hy|us|wr|text-si|scroll-snap-t)/,vt=/^(ap|us|tab-|border-e|margin-e|margin-s|padding-e|padding-s|border-sta)/,Ct=/^(ap|br|hy|us|wr|mas|colu|clip-|box-de|font-k|text-e|font-fe|shape-i|text-or|text-si|border-e|margin-e|margin-s|padding-e|padding-s|border-sta|background-cl|scroll-snap-t|text-decoration-)/,Tt=/^(pos|background-cl)/,be={},Xe=function(e){return be[e]?be[e]:be[e]=1*St.test(e)|2*vt.test(e)|4*Ct.test(e)},qe=function(e,t){return Tt.test(e)?t.replace(/(sticky|text)/,"-webkit-$1, $1"):t},ae=(e,t)=>{let n=`${e}:${qe(e,t)}`,r=n,i=Xe(e);return i&1&&(r+=`;-ms-${n}`),i&2&&(r+=`;-moz-${n}`),i&4&&(r+=`;-webkit-${n}`),r},le=(e,t)=>`${e}:${t}`,K=(e,t)=>{let n={};do for(let r=1;r<e;r++)n[`${r}/${e}`]=Number((r/e*100).toFixed(6))+"%";while(++e<=t);return n},P=(e,t,n=0)=>{let r={};for(;n<=e;n=n*2||1)r[n]=n+t;return r},E=(e,t="",n=1,r=0,i=1)=>{let s={};for(;r<=e;r+=i)s[r]=r/n+t;return s},y=e=>t=>t(e),Ke={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},colors:{transparent:"transparent",current:"currentColor",black:"#000",white:"#fff",gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},yellow:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},green:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},purple:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"}},spacing:a(a(a(a(a({px:"1px",0:"0px"},E(4,"rem",4,.5,.5)),E(12,"rem",4,5)),{14:"3.5rem"}),E(64,"rem",4,16,4)),{72:"18rem",80:"20rem",96:"24rem"}),durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",pulse:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",bounce:"bounce 1s infinite"},backgroundColor:y("colors"),backgroundImage:{none:"none"},backgroundOpacity:y("opacity"),borderColor:e=>a(a({},e("colors")),{DEFAULT:e("colors.gray.200","currentColor")}),borderOpacity:y("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},borderWidth:a({DEFAULT:"1px"},P(8,"px")),boxShadow:{sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",DEFAULT:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",inner:"inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)",none:"none"},container:{},divideColor:y("borderColor"),divideOpacity:y("borderOpacity"),divideWidth:y("borderWidth"),fill:{current:"currentColor"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:y("spacing"),gradientColorStops:y("colors"),height:e=>a(a(a({auto:"auto"},e("spacing")),K(2,6)),{full:"100%",screen:"100vh"}),inset:e=>a(a(a({auto:"auto"},e("spacing")),K(2,4)),{full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:a({none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},E(10,"rem",4,3)),margin:e=>a({auto:"auto"},e("spacing")),maxHeight:e=>a(a({},e("spacing")),{full:"100%",screen:"100vh"}),maxWidth:(e,{breakpoints:t})=>a({none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",prose:"65ch"},t(e("screens"))),minHeight:{0:"0px",full:"100%",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content"},opacity:a(a({},E(100,"",100,0,10)),{5:"0.05",25:"0.25",75:"0.75",95:"0.95"}),order:a({first:"-9999",last:"9999",none:"0"},E(12,"",1,1)),outline:{none:["2px solid transparent","2px"],white:["2px dotted white","2px"],black:["2px dotted black","2px"]},padding:y("spacing"),placeholderColor:y("colors"),placeholderOpacity:y("opacity"),ringColor:e=>a({DEFAULT:e("colors.blue.500","#3b82f6")},e("colors")),ringOffsetColor:y("colors"),ringOffsetWidth:P(8,"px"),ringOpacity:e=>a({DEFAULT:"0.5"},e("opacity")),ringWidth:a({DEFAULT:"3px"},P(8,"px")),rotate:a(a(a({},P(2,"deg")),P(12,"deg",3)),P(180,"deg",45)),scale:a(a({0:"0",50:".5",75:".75"},E(110,"",100,90,5)),{125:"1.25",150:"1.5"}),skew:a(a({},P(2,"deg")),P(12,"deg",3)),space:y("spacing"),stroke:{current:"currentColor"},strokeWidth:E(2),textColor:y("colors"),textOpacity:y("opacity"),transitionDuration:e=>a({DEFAULT:"150ms"},e("durations")),transitionDelay:y("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"background-color,border-color,color,fill,stroke,opacity,box-shadow,transform",colors:"background-color,border-color,color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:e=>a(a(a({},e("spacing")),K(2,4)),{full:"100%"}),width:e=>a(a(a(a({auto:"auto"},e("spacing")),K(2,6)),K(12,12)),{screen:"100vw",full:"100%",min:"min-content",max:"max-content"}),zIndex:a({auto:"auto"},E(50,"",1,0,10))},Rt=e=>Object.keys(e).reduce((t,n)=>{let r=e[n];return t[n]=r,je(r)?Object.keys(r).reduce((i,s)=>(s==="DEFAULT"&&(i[n]=r[s]),i[n+"-"+s]=r[s],i[n+"."+s]=r[s],i),t):t},{}),kt={negative:()=>({}),breakpoints:e=>Object.keys(e).reduce((t,n)=>(t["screen-"+n]=e[n],t),{})},Ze=e=>{let t=new Map,n=a(a({},Ke),e),r=(c,f)=>{let S=c.split(".");return s(S[0],S.length>1?d(S):void 0,f)},i=(c,f)=>{let S=c&&c[f],p=F(S)?S(r,kt):S;return p&&f==="colors"?Rt(p):p},s=(c,f,S)=>{let p=t.get(c);if(p||t.set(c,p=a(a({},i(n,c)),i(n.extend,c))),f!=null){let m=p[(Array.isArray(f)?g(f):f)||"DEFAULT"];return m==null?S:Array.isArray(m)&&!x(["fontSize","outline"],c)?g(m,","):m}return p};return s},D,B,H=(e="")=>(D.push(e),""),xe=e=>{D.length=Math.max(D.lastIndexOf("")+~~e,0)},$t=e=>e&&e[0]!==":",Et=e=>e[0]===":",Qe=(e,t)=>{B.push({v:D.filter(Et),d:e,n:t,$:""})},et=e=>{let t=e[0]==="-";t&&(e=d(e));let n=g(D.filter($t));return Qe(e==="&"?n:(n&&n+"-")+e,t),""},we=(e,t)=>{let n,r="";for(let i=0;i<e.length;)switch(n=e[i++]){case":":r=r&&H(":"+r);break;case"(":r=r&&H(r),H();break;case")":case" ":case" ":case` | ||
`:case"\r":r=r&&et(r),xe(n!==")");break;default:r+=n}r&&(t?H(":"+r):r.slice(-1)==="-"?H(r.slice(0,-1)):et(r))},tt=e=>{H(),ye(e),xe()},jt=(e,t)=>{if(t){H();let n=x("tbu",(typeof t)[1]);we(e,n),n&&tt(t),xe()}},ye=e=>{switch(typeof e){case"string":we(e);break;case"function":Qe(e);break;case"object":Array.isArray(e)?e.forEach(tt):e&&Object.keys(e).forEach(t=>{jt(t,e[t])})}},nt=new WeakMap,At=e=>{let t=nt.get(e);return t||(t=e.map(n=>{let r=B=[];we(n);let i=[...D];return B=[],s=>{B.push(...r),D=[...i],s&&ye(s)}}),nt.set(e,t)),t},rt=e=>(D=[],B=[],Array.isArray(e[0])&&Array.isArray(e[0].raw)?At(e[0]).forEach((t,n)=>t(e[n+1])):e.forEach(ye),B),ot=(e,t)=>n=>{if(F(n.d))return n.d(t);let r=n.d.split("-");for(let i=r.length;i;i--){let s=g(r.slice(0,i)),c=e[s];if(c)return F(c)?c(d(r,i),t,s):$(c)?t.tw(c):c}},ce={":dark":"@media (prefers-color-scheme:dark)",":sticky":"@supports ((position: -webkit-sticky) or (position:sticky))",":motion-reduce":"@media (prefers-reduced-motion:reduce)",":motion-safe":"@media (prefers-reduced-motion:no-preference)",":first":"&:first-child",":last":"&:last-child",":even":"&:nth-child(2n)",":odd":"&:nth-child(odd)"},it=(e,{theme:t,tag:n})=>{let r=(i,s)=>{let c=t("screens",d(s),"");return c?{[`@media (min-width: ${c})`]:i}:s===":dark"&&e==="class"?{[".dark &"]:i}:s.slice(1,7)==="group-"?{[`.${Z(n("group"))}:${d(s,7)} &`]:i}:{[ce[s]||"&"+s]:i}};return(i,s)=>s.v.reduceRight(r,i)},v,Se=e=>(((v=/(?:^|min-width: *)(\d+(?:.\d+)?)(p)?/.exec(e))?+v[1]/(v[2]?15:1)/10:0)&31)<<23,st=e=>{v=0;for(let t=e.length;t--;)v+=x("-:,",e[t]);return v},ve=e=>(st(e)&15)<<18,Pt=["rst","st","en","d","nk","sited","pty","ecked","cus-w","ver","cus","cus-v","tive","sable","ad-on","tiona","quire"],Dt=e=>1<<(~(v=Pt.indexOf(e.replace(/^:group-/,":").slice(3,8)))?v:17),at=(e,t)=>(n,r)=>n|((v=e("screens",d(r),""))?Se(v):r===":dark"?1<<22:(v=t[r]||r)[0]==="@"?ve(v):Dt(r)),zt=/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7}$)|([fl].{5}l|g.{8}$|pl))/,lt=e=>e[0]==="-"?0:st(e)+((v=zt.exec(e))?+!!v[1]||-!!v[2]:0)+1,Ce=(e,t)=>t+"{"+e+"}",ct=(e,{theme:t,tag:n})=>{let r=(p,m)=>"--"+n(m),i=p=>`${p}`.replace(/--(tw-[\w-]+)\b/g,r),s=(p,m)=>(p=i(p),Array.isArray(m)?g(m.filter(Boolean).map(T=>e(p,i(T))),";"):e(p,i(m))),c,f=(p,m,T,G)=>{let L="",M=0,U=0;Object.keys(G).forEach(l=>{let u=G[l];if(x("rg",(typeof u)[5])||Array.isArray(u)){let b=De(l);U+=1,M=Math.max(M,lt(b)),L=(L&&L+";")+s(b,u)}else if(u)if(l[0]==="@")if(l[1]==="f")f([],l,0,u);else if(l[1]==="k"){let b=c.length;f([],"",0,u);let k=c.splice(b,c.length-b);c.push({r:Ce(g(k.map(z=>z.r),""),l),p:k.reduce((z,mt)=>z+mt.p,0)})}else f([...p,l],m,T|(Se(l)||ve(l)),u);else{let b=m&&x(l,"&");f(p,b?m.replace(/([^,])+/g,k=>l.replace(/([^,])+/g,z=>x(z,"&")?z.replace(/&/g,k):z)):l,b?T:0,u)}}),U&&c.push({r:p.reduceRight(Ce,Ce(L,m)),p:T*(1<<8)+(((M||15)&15)<<4|Math.max(0,15-U)&15)})},S=at(t,ce);return(p,m,T)=>(c=[],f([],m?"."+Z(m):"",T?T.v.reduceRight(S,0):0,p),c)},dt=(e,t,n)=>{let r=[],i=new Set;return({r:s,p:c})=>{if(!i.has(s)){let f=ze(r,c);try{e.insert(s,f),i.add(s),r.splice(f,0,c)}catch(S){/:-[mwo]/.test(s)||t.report({id:"INJECT_CSS_ERROR",css:s,error:S},n)}}}},Te=(e,t,n,r=t)=>e===!1?n:e===!0?r:e||t,Re=(e,t=e.d)=>{if(F(t))return"";let n=g(e.v,"");return(n&&d(n)+":")+(e.n?"-":"")+t},ut=(e={})=>{let t=Ze(e.theme),n=e.mode||se,r=Te(e.hash,!1,!1,ue),i={v:[]},s={tw:(...l)=>M(l),theme:(l,u,b)=>{u!=null&&!u.length&&(u="DEFAULT");let k=t(l,u,b)||n.unknown(l,u==null||Array.isArray(u)?u:u.split("."),b!=null,s);return i.n&&k&&$(k)?`calc(${k} * -1)`:k},tag:l=>r?r(l):l},c=ot(a(a({},Ve),e.plugins),s),f=l=>{let u=i;i=l;try{return c(l)}finally{i=u}},S=it(e.darkMode||"media",s),p=ct(Te(e.prefix,ae,le),s),m=dt(e.injector||(typeof window=="undefined"?oe():re(e)),n,s),T=new Map,G=new WeakMap,L=l=>{i.v.length&&(l=a(a({},l),{v:[...i.v,...l.v],$:""})),l.$||(l.$=Re(l)||Re(l,G.get(l.d)));let u=T.get(l.$);if(u==null){let b=f(l);l.$||(l.$=ue(JSON.stringify(b)),G.set(l.d,l.$),l.$=Re(l,l.$)),$(b)?u=b:b?(b=S(b,l),u=r?r(JSON.stringify(b)):l.$,p(b,u,l).forEach(m)):(n.report({id:"UNKNOWN_DIRECTIVE",rule:l.$},s),u=""),T.set(l.$,u)}return u},M=l=>rt(l).map(L).filter(Boolean).join(" "),U=Te(e.preflight,Ae,!1);if(U){let l=Be(t);p(U(l,s)||l).forEach(m)}return{init:()=>n.report({id:"LATE_SETUP_CALL"},s),process:M}},de=e=>{let t=r=>(n(),t(r)),n=r=>{({process:t,init:n}=ut(r))};return e&&n(e),{tw:(...r)=>t(r),setup:r=>n(r)}},gt=de(),{tw:ft}=gt,{setup:pt}=gt;return Ft;})(); | ||
var exports=(()=>{var $e=Object.defineProperty,yt=Object.prototype.hasOwnProperty,Ee=Object.getOwnPropertySymbols,St=Object.prototype.propertyIsEnumerable,a=Object.assign,vt=e=>$e(e,"__esModule",{value:!0}),je=(e,t)=>{var n={};for(var r in e)yt.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Ee)for(var r of Ee(e))t.indexOf(r)<0&&St.call(e,r)&&(n[r]=e[r]);return n},Ct=(e,t)=>{vt(e);for(var n in t)$e(e,n,{get:t[n],enumerable:!0})},Ht={};Ct(Ht,{autoprefix:()=>le,create:()=>de,cssomInjector:()=>ie,mode:()=>Z,noOpInjector:()=>se,noprefix:()=>ce,setup:()=>bt,silent:()=>Ze,strict:()=>Ke,theme:()=>xt,tw:()=>ht,virtualInjector:()=>qe,warn:()=>ae});var E=e=>typeof e=="string",Ae=e=>e!=null&&typeof e=="object",O=e=>typeof e=="function",x=(e,t)=>!!~e.indexOf(t),f=(e,t="-")=>e.join(t),_=(e,t)=>f(e.filter(Boolean),t),d=(e,t=1)=>e.slice(t),Pe=e=>e,De=()=>{},ze=e=>e[0].toUpperCase()+d(e),Fe=e=>e.replace(/[A-Z]/g,"-$&").toLowerCase(),ee=typeof CSS!="undefined"&&CSS.escape||(e=>{let t=e.charCodeAt(0),n="";return t>=48&&t<=57&&(n="\\"+t.toString(16)+" ",e=d(e)),n+e.replace(/[!./:#]/g,"\\$&")}),ue=e=>{let t=9;for(let n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"tw-"+((t^t>>>9)>>>0).toString(36)},Oe=(e,t)=>{let n=e.length;if(n===0)return 0;for(let r=0;r<n;){let i=n+r>>1;e[i]<=t?r=i+1:n=i}return n},Ie=e=>(t,n,r,i)=>{if(t){let s=n&&e(n);if(s&&s.length>0)return s.reduce((c,u)=>(c[_([r,u,i])]=t,c),{})}},We=Ie(e=>({t:["top-left","top-right"],r:["top-right","bottom-right"],b:["bottom-left","bottom-right"],l:["bottom-left","top-left"],tl:["top-left"],tr:["top-right"],bl:["bottom-left"],br:["bottom-right"]})[e]),J=e=>{let t=({x:"lr",y:"tb"}[e]||e||"").split("").sort();for(let n=t.length;n--;)if(!(t[n]={t:"top",r:"right",b:"bottom",l:"left"}[t[n]]))return;if(t.length)return t},te=Ie(J),o,I,C,X=e=>(t,n,r)=>({[e]:r+((o=f(t))&&"-"+o)}),m=(e,t)=>n=>({[e]:f(n,t)}),y=e=>(t,{theme:n},r)=>({[e||r]:n(e||r,t)}),k=(e,t)=>(n,r)=>e(n,r,t),A=X("display"),q=X("position"),V=X("textTransform"),B=X("textDecoration"),ne=X("fontStyle"),P=e=>(t,n,r)=>({["--tw-"+e]:r,fontVariantNumeric:"var(--tw-ordinal,/*!*/ /*!*/) var(--tw-slashed-zero,/*!*/ /*!*/) var(--tw-numeric-figure,/*!*/ /*!*/) var(--tw-numeric-spacing,/*!*/ /*!*/) var(--tw-numeric-fraction,/*!*/ /*!*/)"}),re=(e,{theme:t},n)=>({[n]:t("inset",e)}),K=(e,t,n,r=n)=>({[`--tw-${n}-opacity`]:t(r+"Opacity",d(e))}),ge=(e,t)=>Math.round(parseInt(e,16)*t),fe=(e,t,n)=>e&&e[0]==="#"?`rgba(${ge(e.substr(1,o=(e.length-1)/3),C=[17,1,.062272][o-1])},${ge(e.substr(1+o,o),C)},${ge(e.substr(1+2*o,o),C)},var(--tw-${t}${n?","+n:""}))`:e,oe=(e,t,n)=>n&&(o=fe(n,t+"-opacity"))&&o!==n?{[`--tw-${t}-opacity`]:"1",[e]:[n,o]}:{[e]:n},He=(e,{theme:t},n,r,i,s)=>(o={x:["right","left"],y:["bottom","top"]}[e[0]])&&(C=`--tw-${n}-${e[0]}-reverse`)?e[1]==="reverse"?{[C]:"1"}:{[C]:"0",[_([i,o[0],s])]:(I=t(r,d(e)))&&`calc(${I} * var(${C}))`,[_([i,o[1],s])]:I&&[I,`calc(${I} * calc(1 - var(${C})))`]}:void 0,Le=(e,t)=>({[e]:(x("wun",(t[0]||"")[3])?"space-":"")+t[0]}),pe=e=>t=>x(["start","end"],t[0])?{[e]:`flex-${t[0]}`}:Le(e,t),Me=e=>t=>{switch(t[0]){case"auto":return{[`grid-${e}`]:"auto"};case"span":return{[`grid-${e}`]:t[1]==="full"?"1 / -1":`span ${t[1]} / span ${t[1]}`};case"start":case"end":return{[`grid-${e}-${t[0]}`]:t[1]}}},Ue=(e,{theme:t},n)=>{switch(e[0]){case"solid":case"dashed":case"dotted":case"double":case"none":return m("borderStyle")(e);case"collapse":case"separate":return m("borderCollapse")(e);case"opacity":return K(e,t,n)}return(o=t(n+"Width",e,""))?{borderWidth:o}:oe("borderColor",n,t(n+"Color",e))},me=e=>(e?"translate3d(var(--tw-translate-x,0),var(--tw-translate-y,0),0)":"translateX(var(--tw-translate-x,0)) translateY(var(--tw-translate-y,0))")+" rotate(var(--tw-rotate,0)) skewX(var(--tw-skew-x,0)) skewY(var(--tw-skew-y,0)) scaleX(var(--tw-scale-x,1)) scaleY(var(--tw-scale-y,1))",he=(e,t,n)=>(o=t.theme(n,e[1]||e[0]))&&{[`--tw-${n}-x`]:e[0]!=="y"&&o,[`--tw-${n}-y`]:e[0]!=="x"&&o,transform:[`${n}${e[1]?e[0].toUpperCase():""}(${o})`,me()]},Ne=()=>"var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow,0 0 transparent)",_e=(e,{theme:t},n)=>(o=t("gradientColorStops",e))&&{["--tw-gradient-"+n]:o},Ve=e=>(t,n,r)=>r[1]?te(n.theme(e,t),r[1],e):y(e)(t,n,r),W=Ve("padding"),H=Ve("margin"),Be=(e,{theme:t},n)=>(o={w:"width",h:"height"}[e[0]])&&{[o=`${n}${ze(o)}`]:t(o,d(e))},Ge={group:(e,{tag:t})=>t("group"),hidden:k(A,"none"),inline:A,block:A,contents:A,flow:A,table:(e,t,n)=>x(["auto","fixed"],e[0])?{tableLayout:e[0]}:A(e,t,n),flex(e,t,n){switch(e[0]){case"row":case"col":return{flexDirection:f(e[0]==="col"?["column",...d(e)]:e)};case"nowrap":case"wrap":return{flexWrap:f(e)};case"grow":case"shrink":return{[`flex-${e[0]}`]:e[1]||"1"}}return(o=t.theme("flex",e,""))?{flex:o}:A(e,t,n)},grid(e,t,n){switch(e[0]){case"cols":case"rows":return e.length>1&&{[`grid-template-${e[0]==="cols"?"columns":e[0]}`]:e.length===2&&Number(e[1])?`repeat(${e[1]},minmax(0,1fr))`:f(d(e)," ")};case"flow":return e.length>1&&{gridAutoFlow:f(e[1]==="col"?["column",...d(e,2)]:d(e)," ")}}return A(e,t,n)},auto:e=>x(["cols","rows"],e[0])&&(o=e.length===2?{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"}[e[1]]||`minmax(0,${e[1]})`:e.length>2&&`minmax(${f(d(e),",")})`)&&{[`grid-auto-${e[0]==="cols"?"columns":"rows"}`]:o},static:q,fixed:q,absolute:q,relative:q,sticky:q,visible:{visibility:"visible"},invisible:{visibility:"hidden"},antialiased:{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},"subpixel-antialiased":{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"},truncate:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},"sr-only":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"},"not-sr-only":{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"},resize:e=>({resize:{x:"vertical",y:"horizontal"}[e[0]]||e[0]||"both"}),box:e=>({"box-sizing":`${e[0]}-box`}),appearance:m("appearance"),cursor:m("cursor"),float:m("float"),clear:m("clear"),top:re,right:re,bottom:re,left:re,inset:(e,{theme:t})=>(o=J(e[0]))?te(t("inset",d(e)),e[0]):(o=t("inset",e))&&{top:o,right:o,bottom:o,left:o},underline:B,"line-through":B,"no-underline":k(B,"none"),"text-underline":k(B,"underline"),"text-no-underline":k(B,"none"),"text-line-through":k(B,"line-through"),uppercase:V,lowercase:V,capitalize:V,"normal-case":k(V,"none"),"text-normal-case":k(V,"none"),italic:ne,"not-italic":k(ne,"normal"),"font-italic":k(ne,"italic"),"font-not-italic":k(ne,"normal"),font:(e,t,n)=>(o=t.theme("fontFamily",e,""))?{fontFamily:o}:y("fontWeight")(e,t,n),items:e=>({alignItems:x(["start","end"],e[0])?`flex-${e[0]}`:f(e)}),content:pe("alignContent"),justify:pe("justifyContent"),self:pe("alignSelf"),place:e=>Le("place-"+e[0],d(e)),overscroll:e=>({["overscrollBehavior"+(e[1]?"-"+e[0]:"")]:e[1]||e[0]}),col:Me("column"),row:Me("row"),duration:y("transitionDuration"),delay:y("transitionDelay"),tracking:y("letterSpacing"),leading:y("lineHeight"),z:y("zIndex"),opacity:y(),ease:y("transitionTimingFunction"),p:W,py:W,px:W,pt:W,pr:W,pb:W,pl:W,m:H,my:H,mx:H,mt:H,mr:H,mb:H,ml:H,w:y("width"),h:y("height"),min:Be,max:Be,fill:y(),order:y(),origin:m("transformOrigin"," "),select:m("userSelect"),"pointer-events":m("pointerEvents"),align:m("verticalAlign"),whitespace:m("whiteSpace"),"normal-nums":{fontVariantNumeric:"normal"},ordinal:P("ordinal"),"slashed-zero":P("slashed-zero"),"lining-nums":P("numeric-figure"),"oldstyle-nums":P("numeric-figure"),"proportional-nums":P("numeric-spacing"),"tabular-nums":P("numeric-spacing"),"diagonal-fractions":P("numeric-fraction"),"stacked-fractions":P("numeric-fraction"),overflow:e=>x(["ellipsis","clip"],e[0])?m("textOverflow")(e):e[1]?{[`overflow-${e[0]}`]:e[1]}:m("overflow")(e),transform:e=>e[0]==="none"?{transform:"none"}:{"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1",transform:me(e[0]==="gpu")},rotate:(e,{theme:t})=>(o=t("rotate",e))&&{"--tw-rotate":o,transform:[`rotate(${o})`,me()]},scale:he,translate:he,skew:he,gap:(e,t,n)=>(o={x:"column",y:"row"}[e[0]])?{[o+"Gap"]:t.theme("gap",d(e))}:y("gap")(e,t,n),stroke:(e,t,n)=>(o=t.theme("stroke",e,""))?{stroke:o}:y("strokeWidth")(e,t,n),outline:(e,{theme:t})=>(o=t("outline",e))&&{outline:o[0],outlineOffset:o[1]},break(e){switch(e[0]){case"normal":return{wordBreak:"normal",overflowWrap:"normal"};case"words":return{overflowWrap:"break-word"};case"all":return{wordBreak:"break-all"}}},text(e,{theme:t},n){switch(e[0]){case"left":case"center":case"right":case"justify":return{textAlign:e[0]};case"uppercase":case"lowercase":case"capitalize":return V([],o,e[0]);case"opacity":return K(e,t,n)}let r=t("fontSize",e,"");return r?E(r)?{fontSize:r}:a({fontSize:r[0]},E(r[1])?{lineHeight:r[1]}:r[1]):oe("color","text",t("textColor",e))},bg(e,{theme:t},n){switch(e[0]){case"fixed":case"local":case"scroll":return m("backgroundAttachment",",")(e);case"bottom":case"center":case"left":case"right":case"top":return m("backgroundPosition"," ")(e);case"no":return e[1]==="repeat"&&m("backgroundRepeat")(e);case"auto":case"cover":case"contain":return m("backgroundSize")(e);case"repeat":return x("xy",e[1])?m("backgroundRepeat")(e):{"background-repeat":e[1]||e[0]};case"opacity":return K(e,t,n,"background");case"clip":return{backgroundClip:e[1]+(e[1]==="text"?"":"-box")};case"gradient":if(e[1]==="to"&&(o=J(e[2])))return{backgroundImage:`linear-gradient(to ${f(o," ")},var(--tw-gradient-stops,var(--tw-gradient-from,transparent),var(--tw-gradient-to,transparent)))`}}return(o=t("backgroundImage",e,""))?{backgroundImage:o}:oe("backgroundColor","bg",t("backgroundColor",e))},from:_e,to:_e,via:(e,{theme:t})=>(o=t("gradientColorStops",e))&&{"--tw-gradient-stops":`var(--tw-gradient-from,transparent),${o},var(--tw-gradient-to,transparent)`},border:(e,t,n)=>J(e[0])?te(t.theme("borderWidth",d(e)),e[0],"border","width"):Ue(e,t,n),divide:(e,t,n)=>(o=He(e,t,n,"divideWidth","border","width")||Ue(e,t,n))&&{"&>:not([hidden])~:not([hidden])":o},space:(e,t,n)=>(o=He(e,t,n,"space","margin"))&&{"&>:not([hidden])~:not([hidden])":o},placeholder:(e,{theme:t},n)=>(o=e[0]==="opacity"?K(e,t,n):oe("color","placeholder",t("placeholderColor",e)))&&{"&::placeholder":o},shadow:(e,{theme:t})=>(o=t("boxShadow",e))&&{"--tw-shadow":o,boxShadow:[o,Ne()]},animate:(e,{theme:t,tag:n})=>{if(C=t("animation",e)){let r=C.split(" ");return(o=t("keyframes",r[0],I={}))!==I?(C=n(r[0]))&&{animation:C+" "+f(d(r)," "),["@keyframes "+C]:o}:{animation:C}}},ring(e,{theme:t},n){switch(e[0]){case"inset":return{"--tw-ring-inset":"inset"};case"opacity":return K(e,t,n);case"offset":return(o=t("ringOffsetWidth",d(e),""))?{"--tw-ring-offset-width":o}:{"--tw-ring-offset-color":t("ringOffsetColor",d(e))}}return(o=t("ringWidth",e,""))?{"--tw-ring-offset-shadow":`var(--tw-ring-inset,/*!*/ /*!*/) 0 0 0 var(--tw-ring-offset-width,${t("ringOffsetWidth","","0px")}) var(--tw-ring-offset-color,${t("ringOffsetColor","","#fff")})`,"--tw-ring-shadow":`var(--tw-ring-inset,/*!*/ /*!*/) 0 0 0 calc(${o} + var(--tw-ring-offset-width,${t("ringOffsetWidth","","0px")})) var(--tw-ring-color,${fe(t("ringColor","","#93c5fd"),"ring-opacity",t("ringOpacity","","0.5"))})`,"box-shadow":Ne()}:{"--tw-ring-opacity":"1","--tw-ring-color":fe(t("ringColor",e),"ring-opacity")}},object:e=>x(["contain","cover","fill","none","scale"],e[0])?m("objectFit")(e):m("objectPosition"," ")(e),list:e=>m(x(["inside","outside"],e[0])?"listStylePosition":"listStyleType")(e),rounded:(e,t,n)=>We(t.theme("borderRadius",d(e),""),e[0],"border","radius")||y("borderRadius")(e,t,n),"transition-none":{"transition-property":"none"},transition:(e,{theme:t})=>({transition:_([t("transitionProperty",e),t("transitionDuration",""),t("transitionTimingFunction","")]," ")}),container:(e,{theme:t})=>{let{screens:n=t("screens"),center:r,padding:i}=t("container"),s=c=>(o=i&&(E(i)?i:i[c]||i.DEFAULT))?{paddingRight:o,paddingLeft:o}:{};return Object.keys(n).reduce((c,u)=>((o=n[u])&&(c[`@media (min-width: ${o})`]={"&":a({"max-width":o},s(u))}),c),a(a({width:"100%"},r?{marginRight:"auto",marginLeft:"auto"}:{}),s("xs")))}},Ye=e=>({":root":{tabSize:4},"body,blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre,fieldset,ol,ul":{margin:"0"},button:{backgroundColor:"transparent",backgroundImage:"none"},'button,[type="button"],[type="reset"],[type="submit"]':{WebkitAppearance:"button"},"button:focus":{outline:["1px dotted","5px auto -webkit-focus-ring-color"]},"fieldset,ol,ul,legend":{padding:"0"},"ol,ul":{listStyle:"none"},html:{lineHeight:"1.5",WebkitTextSizeAdjust:"100%",fontFamily:e("fontFamily","sans","ui-sans-serif,system-ui,sans-serif")},body:{fontFamily:"inherit",lineHeight:"inherit"},"*,::before,::after":{boxSizing:"border-box",border:`0 solid ${e("borderColor","DEFAULT","currentColor")}`},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},img:{borderStyle:"solid"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{color:e("placeholderColor","DEFAULT","#a1a1aa")},'button,[role="button"]':{cursor:"pointer"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",margin:"0",padding:"0",lineHeight:"inherit",color:"inherit"},"button,select":{textTransform:"none"},"::-moz-focus-inner":{borderStyle:"none",padding:"0"},":-moz-focusring":{outline:"1px dotted ButtonText"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},'[type="search"]':{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"abbr[title]":{textDecoration:"underline dotted"},"b,strong":{fontWeight:"bolder"},"pre,code,kbd,samp":{fontFamily:e("fontFamily","mono","ui-monospace,monospace"),fontSize:"1em"},"sub,sup":{fontSize:"75%",lineHeight:"0",position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"}}),Je={":dark":"@media (prefers-color-scheme:dark)",":sticky":"@supports ((position: -webkit-sticky) or (position:sticky))",":motion-reduce":"@media (prefers-reduced-motion:reduce)",":motion-safe":"@media (prefers-reduced-motion:no-preference)",":first":"&:first-child",":last":"&:last-child",":even":"&:nth-child(2n)",":odd":"&:nth-child(odd)",":children":"&>*",":siblings":"&~*"},Xe="__tw-in-js",Tt=e=>{let t=self[Xe];return t||(t=document.head.appendChild(document.createElement("style")),t.id=Xe,e&&(t.nonce=e)),t},qe=({target:e=[]}={})=>({target:e,insert:(t,n)=>e.splice(n,0,t)}),ie=({nonce:e,target:t=Tt(e).sheet}={})=>({target:t,insert:t.insertRule.bind(t)}),se=()=>({insert:()=>{}}),Z=e=>({unknown(t,n=[],r,i){r||this.report({id:"UNKNOWN_THEME_VALUE",key:f([t,...n],".")},i)},report(r){var{id:t}=r,n=je(r,["id"]);let i=`[${t}] ${JSON.stringify(n)}`,s=(new Error(i).stack||i).split("at ");for(let c;(c=s.splice(1,1)[0])&&!/(^|\.)(tw|setup) /.test(c););e(s.join("at "))}}),ae=Z(e=>console.warn(e)),Ke=Z(e=>{throw new Error(e)}),Ze=Z(De),Rt=/^(br|hy|us|wr|text-si|scroll-snap-t)/,kt=/^(ap|us|tab-|border-e|margin-e|margin-s|padding-e|padding-s|border-sta)/,$t=/^(ap|br|hy|us|wr|mas|colu|clip-|box-de|font-k|text-e|font-fe|shape-i|text-or|text-si|border-e|margin-e|margin-s|padding-e|padding-s|border-sta|background-cl|scroll-snap-t|text-decoration-)/,Et=/^(pos|background-cl)/,be={},Qe=function(e){return be[e]?be[e]:be[e]=1*Rt.test(e)|2*kt.test(e)|4*$t.test(e)},et=function(e,t){return Et.test(e)?t.replace(/(sticky|text)/,"-webkit-$1, $1"):t},le=(e,t)=>{let n=`${e}:${et(e,t)}`,r=n,i=Qe(e);return i&1&&(r+=`;-ms-${n}`),i&2&&(r+=`;-moz-${n}`),i&4&&(r+=`;-webkit-${n}`),r},ce=(e,t)=>`${e}:${t}`,Q=(e,t)=>{let n={};do for(let r=1;r<e;r++)n[`${r}/${e}`]=Number((r/e*100).toFixed(6))+"%";while(++e<=t);return n},D=(e,t,n=0)=>{let r={};for(;n<=e;n=n*2||1)r[n]=n+t;return r},j=(e,t="",n=1,r=0,i=1)=>{let s={};for(;r<=e;r+=i)s[r]=r/n+t;return s},S=e=>t=>t(e),tt={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},colors:{transparent:"transparent",current:"currentColor",black:"#000",white:"#fff",gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},yellow:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},green:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},purple:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"}},spacing:a(a(a(a(a({px:"1px",0:"0px"},j(4,"rem",4,.5,.5)),j(12,"rem",4,5)),{14:"3.5rem"}),j(64,"rem",4,16,4)),{72:"18rem",80:"20rem",96:"24rem"}),durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",pulse:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",bounce:"bounce 1s infinite"},backgroundColor:S("colors"),backgroundImage:{none:"none"},backgroundOpacity:S("opacity"),borderColor:e=>a(a({},e("colors")),{DEFAULT:e("colors.gray.200","currentColor")}),borderOpacity:S("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},borderWidth:a({DEFAULT:"1px"},D(8,"px")),boxShadow:{sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",DEFAULT:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",inner:"inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)",none:"none"},container:{},divideColor:S("borderColor"),divideOpacity:S("borderOpacity"),divideWidth:S("borderWidth"),fill:{current:"currentColor"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:S("spacing"),gradientColorStops:S("colors"),height:e=>a(a(a({auto:"auto"},e("spacing")),Q(2,6)),{full:"100%",screen:"100vh"}),inset:e=>a(a(a({auto:"auto"},e("spacing")),Q(2,4)),{full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:a({none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},j(10,"rem",4,3)),margin:e=>a({auto:"auto"},e("spacing")),maxHeight:e=>a(a({},e("spacing")),{full:"100%",screen:"100vh"}),maxWidth:(e,{breakpoints:t})=>a({none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",prose:"65ch"},t(e("screens"))),minHeight:{0:"0px",full:"100%",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content"},opacity:a(a({},j(100,"",100,0,10)),{5:"0.05",25:"0.25",75:"0.75",95:"0.95"}),order:a({first:"-9999",last:"9999",none:"0"},j(12,"",1,1)),outline:{none:["2px solid transparent","2px"],white:["2px dotted white","2px"],black:["2px dotted black","2px"]},padding:S("spacing"),placeholderColor:S("colors"),placeholderOpacity:S("opacity"),ringColor:e=>a({DEFAULT:e("colors.blue.500","#3b82f6")},e("colors")),ringOffsetColor:S("colors"),ringOffsetWidth:D(8,"px"),ringOpacity:e=>a({DEFAULT:"0.5"},e("opacity")),ringWidth:a({DEFAULT:"3px"},D(8,"px")),rotate:a(a(a({},D(2,"deg")),D(12,"deg",3)),D(180,"deg",45)),scale:a(a({0:"0",50:".5",75:".75"},j(110,"",100,90,5)),{125:"1.25",150:"1.5"}),skew:a(a({},D(2,"deg")),D(12,"deg",3)),space:S("spacing"),stroke:{current:"currentColor"},strokeWidth:j(2),textColor:S("colors"),textOpacity:S("opacity"),transitionDuration:e=>a({DEFAULT:"150ms"},e("durations")),transitionDelay:S("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"background-color,border-color,color,fill,stroke,opacity,box-shadow,transform",colors:"background-color,border-color,color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:e=>a(a(a({},e("spacing")),Q(2,4)),{full:"100%"}),width:e=>a(a(a(a({auto:"auto"},e("spacing")),Q(2,6)),Q(12,12)),{screen:"100vw",full:"100%",min:"min-content",max:"max-content"}),zIndex:a({auto:"auto"},j(50,"",1,0,10))},jt=e=>Object.keys(e).reduce((t,n)=>{let r=e[n];return t[n]=r,Ae(r)?Object.keys(r).reduce((i,s)=>(s==="DEFAULT"&&(i[n]=r[s]),i[n+"-"+s]=r[s],i[n+"."+s]=r[s],i),t):t},{}),At={negative:()=>({}),breakpoints:e=>Object.keys(e).reduce((t,n)=>(t["screen-"+n]=e[n],t),{})},nt=e=>{let t=new Map,n=a(a({},tt),e),r=(c,u)=>{let h=c.split(".");return s(h[0],h.length>1?d(h):void 0,u)},i=(c,u)=>{let h=c&&c[u],T=O(h)?h(r,At):h;return T&&u==="colors"?jt(T):T},s=(c,u,h)=>{let T=t.get(c);if(T||t.set(c,T=a(a({},i(n,c)),i(n.extend,c))),u!=null){let p=T[(Array.isArray(u)?f(u):u)||"DEFAULT"];return p==null?h:Array.isArray(p)&&!x(["fontSize","outline"],c)?f(p,","):p}return T};return s},z,G,L=(e="")=>(z.push(e),""),xe=e=>{z.length=Math.max(z.lastIndexOf("")+~~e,0)},Pt=e=>e&&e[0]!==":",Dt=e=>e[0]===":",rt=(e,t)=>{G.push({v:z.filter(Dt),d:e,n:t,$:""})},ot=e=>{let t=e[0]==="-";t&&(e=d(e));let n=f(z.filter(Pt));return rt(e==="&"?n:(n&&n+"-")+e,t),""},we=(e,t)=>{let n,r="";for(let i=0;i<e.length;)switch(n=e[i++]){case":":r=r&&L(":"+r);break;case"(":r=r&&L(r),L();break;case")":case" ":case" ":case` | ||
`:case"\r":r=r&&ot(r),xe(n!==")");break;default:r+=n}r&&(t?L(":"+r):r.slice(-1)==="-"?L(r.slice(0,-1)):ot(r))},it=e=>{L(),ye(e),xe()},zt=(e,t)=>{if(t){L();let n=x("tbu",(typeof t)[1]);we(e,n),n&&it(t),xe()}},ye=e=>{switch(typeof e){case"string":we(e);break;case"function":rt(e);break;case"object":Array.isArray(e)?e.forEach(it):e&&Object.keys(e).forEach(t=>{zt(t,e[t])})}},st=new WeakMap,Ft=e=>{let t=st.get(e);return t||(t=e.map(n=>{let r=G=[];we(n);let i=[...z];return G=[],s=>{G.push(...r),z=[...i],s&&ye(s)}}),st.set(e,t)),t},at=e=>(z=[],G=[],Array.isArray(e[0])&&Array.isArray(e[0].raw)?Ft(e[0]).forEach((t,n)=>t(e[n+1])):e.forEach(ye),G),lt=(e,t)=>n=>{if(O(n.d))return n.d(t);let r=n.d.split("-");for(let i=r.length;i;i--){let s=f(r.slice(0,i)),c=e[s];if(c)return O(c)?c(d(r,i),t,s):E(c)?t.tw(c):c}},ct=(e,t,{theme:n,tag:r})=>{let i=(s,c)=>{let u=n("screens",d(c),"");return u?{[`@media (min-width: ${u})`]:s}:c===":dark"&&e==="class"?{[".dark &"]:s}:c.slice(1,7)==="group-"?{[`.${ee(r("group"))}:${d(c,7)} &`]:s}:{[t[c]||"&"+c]:s}};return(s,c)=>c.v.reduceRight(i,s)},v,Se=e=>(((v=/(?:^|min-width: *)(\d+(?:.\d+)?)(p)?/.exec(e))?+v[1]/(v[2]?15:1)/10:0)&31)<<23,dt=e=>{v=0;for(let t=e.length;t--;)v+=x("-:,",e[t]);return v},ve=e=>(dt(e)&15)<<18,Ot=["rst","st","en","d","nk","sited","pty","ecked","cus-w","ver","cus","cus-v","tive","sable","ad-on","tiona","quire"],It=e=>1<<(~(v=Ot.indexOf(e.replace(/^:group-/,":").slice(3,8)))?v:17),ut=(e,t)=>(n,r)=>n|((v=e("screens",d(r),""))?Se(v):r===":dark"?1<<22:(v=t[r]||r)[0]==="@"?ve(v):It(r)),Wt=/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7}$)|([fl].{5}l|g.{8}$|pl))/,gt=e=>e[0]==="-"?0:dt(e)+((v=Wt.exec(e))?+!!v[1]||-!!v[2]:0)+1,Ce=(e,t)=>t+"{"+e+"}",ft=(e,t,{theme:n,tag:r})=>{let i=(p,w)=>"--"+r(w),s=p=>`${p}`.replace(/--(tw-[\w-]+)\b/g,i),c=(p,w)=>(p=s(p),Array.isArray(w)?f(w.filter(Boolean).map(R=>e(p,s(R))),";"):e(p,s(w))),u,h=(p,w,R,Y)=>{let M="",U=0,N=0;Object.keys(Y).forEach(l=>{let g=Y[l];if(x("rg",(typeof g)[5])||Array.isArray(g)){let b=Fe(l);N+=1,U=Math.max(U,gt(b)),M=(M&&M+";")+c(b,g)}else if(g)if(l[0]==="@")if(l[1]==="f")h([],l,0,g);else if(l[1]==="k"){let b=u.length;h([],"",0,g);let $=u.splice(b,u.length-b);u.push({r:Ce(f($.map(F=>F.r),""),l),p:$.reduce((F,wt)=>F+wt.p,0)})}else h([...p,l],w,R|(Se(l)||ve(l)),g);else{let b=w&&x(l,"&");h(p,b?w.replace(/([^,])+/g,$=>l.replace(/([^,])+/g,F=>x(F,"&")?F.replace(/&/g,$):F)):l,b?R:0,g)}}),N&&u.push({r:p.reduceRight(Ce,Ce(M,w)),p:R*(1<<8)+(((U||15)&15)<<4|Math.max(0,15-N)&15)})},T=ut(n,t);return(p,w,R)=>(u=[],h([],w?"."+ee(w):"",R?R.v.reduceRight(T,0):0,p),u)},pt=(e,t,n)=>{let r=[],i=new Set;return({r:s,p:c})=>{if(!i.has(s)){let u=Oe(r,c);try{e.insert(s,u),i.add(s),r.splice(u,0,c)}catch(h){/:-[mwo]/.test(s)||t.report({id:"INJECT_CSS_ERROR",css:s,error:h},n)}}}},Te=(e,t,n,r=t)=>e===!1?n:e===!0?r:e||t,Re=(e,t=e.d)=>{if(O(t))return"";let n=f(e.v,"");return(n&&d(n)+":")+(e.n?"-":"")+t},mt=(e={})=>{let t=nt(e.theme),n=e.mode||ae,r=Te(e.hash,!1,!1,ue),i={v:[]},s={tw:(...l)=>U(l),theme:(l,g,b)=>{g!=null&&!g.length&&(g="DEFAULT");let $=t(l,g,b)||n.unknown(l,g==null||Array.isArray(g)?g:g.split("."),b!=null,s);return i.n&&$&&E($)?`calc(${$} * -1)`:$},tag:l=>r?r(l):l},c=lt(a(a({},Ge),e.plugins),s),u=l=>{let g=i;i=l;try{return c(l)}finally{i=g}},h=a(a({},Je),e.variants),T=ct(e.darkMode||"media",h,s),p=ft(Te(e.prefix,le,ce),h,s),w=pt(e.injector||(typeof window=="undefined"?se():ie(e)),n,s),R=new Map,Y=new WeakMap,M=l=>{i.v.length&&(l=a(a({},l),{v:[...i.v,...l.v],$:""})),l.$||(l.$=Re(l)||Re(l,Y.get(l.d)));let g=R.get(l.$);if(g==null){let b=u(l);l.$||(l.$=ue(JSON.stringify(b)),Y.set(l.d,l.$),l.$=Re(l,l.$)),E(b)?g=b:b?(b=T(b,l),g=r?r(JSON.stringify(b)):l.$,p(b,g,l).forEach(w)):(l.$.slice(0,3)!=="tw-"&&n.report({id:"UNKNOWN_DIRECTIVE",rule:l.$},s),g=l.$),R.set(l.$,g)}return g},U=l=>at(l).map(M).filter(Boolean).join(" "),N=Te(e.preflight,Pe,!1);if(N){let l=Ye(t);p(N(l,s)||l).forEach(w)}return{init:()=>n.report({id:"LATE_SETUP_CALL"},s),process:U,theme:t}},de=e=>{let t=i=>(r(),t(i)),n=(i,s,c)=>(r(),n(i,s,c)),r=i=>{({process:t,init:r,theme:n}=mt(i))};return e&&r(e),{tw:(...i)=>t(i),setup:i=>r(i),theme:n}},ke=de(),{tw:ht}=ke,{setup:bt}=ke,{theme:xt}=ke;return Ht;})(); | ||
return exports})); | ||
//# sourceMappingURL=twind.umd.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 not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
528191
2430
2
138
0
20