@stacksjs/stx 0.2.675 → 0.2.676
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-1e73whqh.js +2 -0
- package/dist/{chunk-hfbkbrwk.js → chunk-1rztwjdj.js} +3 -3
- package/dist/{chunk-6qh2mx6q.js → chunk-245sas8r.js} +2 -2
- package/dist/{chunk-8jdbrcgt.js → chunk-304dbbsw.js} +5 -5
- package/dist/{chunk-5fh9m8fm.js → chunk-34e8e8te.js} +1 -1
- package/dist/{chunk-n615cbxq.js → chunk-3bfegbpw.js} +1 -1
- package/dist/chunk-3gdt16xa.js +2 -0
- package/dist/{chunk-03hhanvm.js → chunk-4jnv2v5e.js} +1 -1
- package/dist/{chunk-nw44qq6h.js → chunk-4rk5qnqf.js} +1 -1
- package/dist/{chunk-etbpzmxv.js → chunk-526mf3fr.js} +1 -1
- package/dist/{chunk-z6mrnh98.js → chunk-54zkkxmb.js} +1 -1
- package/dist/{chunk-6ncvb8gp.js → chunk-551s7ha0.js} +3 -3
- package/dist/{chunk-4e5jrxbn.js → chunk-5v7vm8cv.js} +5 -5
- package/dist/{chunk-93z9f2be.js → chunk-6bwca55g.js} +6 -6
- package/dist/{chunk-nvbyscdh.js → chunk-707sx5sk.js} +1 -1
- package/dist/chunk-78d5tn4r.js +2 -0
- package/dist/{chunk-09gchq7d.js → chunk-8aq07a1j.js} +3 -3
- package/dist/{chunk-1s2y6f4b.js → chunk-909ymsjz.js} +1 -1
- package/dist/{chunk-5zvrbms2.js → chunk-a2zb5fgg.js} +2 -2
- package/dist/chunk-b18x0v21.js +2 -0
- package/dist/{chunk-hg0dd64a.js → chunk-b23vscaq.js} +1 -1
- package/dist/{chunk-qdkwg2b8.js → chunk-be2rswkw.js} +2 -2
- package/dist/chunk-bm42rsaa.js +2 -0
- package/dist/{chunk-ram7pa4k.js → chunk-bpj387yx.js} +2 -2
- package/dist/{chunk-w0vpvcj0.js → chunk-c4enpsj8.js} +1 -1
- package/dist/chunk-cdbaanmx.js +2 -0
- package/dist/{chunk-c2rq9pap.js → chunk-cs8wq7nv.js} +1 -1
- package/dist/chunk-d2xf5hh9.js +2 -0
- package/dist/{chunk-8xxc5edr.js → chunk-d4ch6exz.js} +1 -1
- package/dist/chunk-dda8pdya.js +2 -0
- package/dist/{chunk-t9bsgbwv.js → chunk-dmd7mgjw.js} +2 -2
- package/dist/chunk-ds91e0fe.js +2 -0
- package/dist/{chunk-dba795e1.js → chunk-dxh45gve.js} +1 -1
- package/dist/{chunk-q7tfqavs.js → chunk-ehzd1yc6.js} +2 -2
- package/dist/{chunk-ammn4wbd.js → chunk-etz2dmec.js} +1 -1
- package/dist/{chunk-g98gafg7.js → chunk-fbrgz3s8.js} +1 -1
- package/dist/{chunk-7475sm3m.js → chunk-fd72t30s.js} +1 -1
- package/dist/{chunk-db5017x8.js → chunk-fdvfzknd.js} +1 -1
- package/dist/{chunk-nv0jjhtd.js → chunk-ft3f9nj0.js} +1 -1
- package/dist/{chunk-p6g58hwg.js → chunk-g12ht81a.js} +1 -1
- package/dist/chunk-g6gqja52.js +2 -0
- package/dist/{chunk-ggf4z3bv.js → chunk-ga5kjf9b.js} +3 -3
- package/dist/{chunk-mvz825w0.js → chunk-ghm9f13q.js} +1 -1
- package/dist/chunk-gz5rvwgx.js +2 -0
- package/dist/chunk-hqj28381.js +3 -0
- package/dist/{chunk-z4bfgvb3.js → chunk-j60jye3e.js} +3 -3
- package/dist/chunk-jjet6qxq.js +2 -0
- package/dist/chunk-jk7chxkt.js +2 -0
- package/dist/{chunk-shft9r9d.js → chunk-kn34esxw.js} +1 -1
- package/dist/{chunk-9azagdq6.js → chunk-krcd3039.js} +13 -13
- package/dist/{chunk-wtvy9r5w.js → chunk-kxj8e1gd.js} +3 -3
- package/dist/{chunk-xrrx2ddz.js → chunk-mjsebtg6.js} +1 -1
- package/dist/{chunk-29wj0c68.js → chunk-mq915g3j.js} +2 -2
- package/dist/chunk-n63r9b4f.js +2 -0
- package/dist/{chunk-z17sy8g3.js → chunk-n8wvqnfc.js} +2 -2
- package/dist/{chunk-hz8dj5jy.js → chunk-n94ts3t9.js} +2 -2
- package/dist/{chunk-8md2707p.js → chunk-p27ptd9f.js} +12 -12
- package/dist/{chunk-9ybjsfyp.js → chunk-p9az13b2.js} +2 -2
- package/dist/chunk-pwn0j1vq.js +2 -0
- package/dist/{chunk-4x5dk7a4.js → chunk-q1jcf6vm.js} +1 -1
- package/dist/{chunk-vf6yaymh.js → chunk-q3nnaxf9.js} +1 -1
- package/dist/{chunk-54fazdmn.js → chunk-qbzqary0.js} +1 -1
- package/dist/{chunk-kzb04293.js → chunk-qwdcts9w.js} +3 -3
- package/dist/chunk-rc79yyqx.js +2 -0
- package/dist/{chunk-xdn6rtq2.js → chunk-rfc5pdv2.js} +1 -1
- package/dist/{chunk-xayfz35c.js → chunk-rnws0dh3.js} +1 -1
- package/dist/{chunk-gc4w2s5n.js → chunk-rxxajm31.js} +2 -2
- package/dist/{chunk-2xv29pfj.js → chunk-s73z8zss.js} +1 -1
- package/dist/{chunk-81rdyz2n.js → chunk-sptewgky.js} +1 -1
- package/dist/{chunk-0thxpgtp.js → chunk-sqh3tvtw.js} +1 -1
- package/dist/{chunk-j6x7ryyn.js → chunk-tmqrbs98.js} +22 -11
- package/dist/{chunk-xtnxvmdb.js → chunk-vay5v6sj.js} +1 -1
- package/dist/chunk-vewt3464.js +2 -0
- package/dist/chunk-whzvx5w5.js +2 -0
- package/dist/chunk-wk1gt95z.js +2 -0
- package/dist/{chunk-8an7vcxx.js → chunk-x63f2ywm.js} +1 -1
- package/dist/chunk-xk7cp691.js +2 -0
- package/dist/{chunk-e4ezpevb.js → chunk-xnx06qqt.js} +1 -1
- package/dist/{chunk-yaccg2c0.js → chunk-y34tyrpb.js} +1 -1
- package/dist/{chunk-3vwkyjan.js → chunk-z35ftpqp.js} +12 -12
- package/dist/{chunk-7q699phs.js → chunk-z7ghjs7w.js} +1 -1
- package/dist/cli.js +8 -8
- package/dist/client/signals-for-runtime.js +16 -5
- package/dist/craft-entry.js +2 -2
- package/dist/craft.js +2 -2
- package/dist/pwa.js +1 -1
- package/dist/ssg.js +4 -4
- package/package.json +2 -2
- package/dist/chunk-1wdawkn8.js +0 -2
- package/dist/chunk-41q5rww8.js +0 -2
- package/dist/chunk-4c5tk71j.js +0 -2
- package/dist/chunk-57ege36s.js +0 -2
- package/dist/chunk-5n4c99y5.js +0 -2
- package/dist/chunk-6rftdp7c.js +0 -2
- package/dist/chunk-7s6hypn5.js +0 -2
- package/dist/chunk-7ym269yp.js +0 -2
- package/dist/chunk-855h3crg.js +0 -2
- package/dist/chunk-bpf3xxng.js +0 -3
- package/dist/chunk-dasxbb9y.js +0 -2
- package/dist/chunk-e02ne8zd.js +0 -2
- package/dist/chunk-fqa5ej45.js +0 -2
- package/dist/chunk-hz5eh77e.js +0 -2
- package/dist/chunk-prc5dxp1.js +0 -2
- package/dist/chunk-qwdgx34g.js +0 -2
- package/dist/chunk-r6t1712p.js +0 -2
- package/dist/chunk-s5q9ztvj.js +0 -2
- package/dist/chunk-sfpymq5h.js +0 -2
- package/dist/chunk-t8tst3sk.js +0 -2
- package/dist/chunk-xh5mh8kn.js +0 -2
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Us,Ud,Wd}from"./chunk-ghm9f13q.js";import"./chunk-707sx5sk.js";import"./chunk-qbzqary0.js";import"./chunk-374nhgyf.js";import"./chunk-n94ts3t9.js";import"./chunk-5v7vm8cv.js";import"./chunk-dxh45gve.js";import"./chunk-245sas8r.js";import"./chunk-d4ch6exz.js";import"./chunk-dera8fmc.js";import"./chunk-q3gactm1.js";import"./chunk-y34tyrpb.js";import"./chunk-f26n6y9p.js";import"./chunk-z35ftpqp.js";import"./chunk-sqh3tvtw.js";import"./chunk-9wdd7eq6.js";import"./chunk-qwdcts9w.js";import"./chunk-6beg47t4.js";import"./chunk-78yjmbbs.js";export{Wd as clearComposableCache,Ud as getComposableScript,Us as listComposableModules};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-kzb04293.js";import{Ts,Yo,yc}from"./chunk-78yjmbbs.js";import"./chunk-6beg47t4.js";import"./chunk-3vwkyjan.js";import"./chunk-9wdd7eq6.js";import"./chunk-0thxpgtp.js";import"./chunk-dera8fmc.js";import"./chunk-f26n6y9p.js";import{i}from"./chunk-6qh2mx6q.js";import"./chunk-yaccg2c0.js";import"./chunk-q3gactm1.js";import"./chunk-qdkwg2b8.js";import{mt,We,me,tn,Re,Wn,qn,qe}from"./chunk-6ncvb8gp.js";import{o}from"./chunk-9azagdq6.js";import"./chunk-q7tfqavs.js";import"./chunk-8jdbrcgt.js";import{qr}from"./chunk-hz8dj5jy.js";import"./chunk-z4bfgvb3.js";import"./chunk-078qg8r5.js";import{ft}from"./chunk-j6x7ryyn.js";import"./chunk-374nhgyf.js";import"./chunk-54fazdmn.js";import{Xs}from"./chunk-nvbyscdh.js";import"./chunk-e4ezpevb.js";import"./chunk-4e5jrxbn.js";import"./chunk-dba795e1.js";import"./chunk-8xxc5edr.js";import{existsSync as xe,mkdirSync as gi,readFileSync as hi}from"fs";import U from"path";import{existsSync as nt,mkdirSync as fn,realpathSync as ri,rmSync as pn}from"fs";import D from"path";import{existsSync as Jr}from"fs";import K from"path";var bn="data-stx-b",ot=new Set(Yo),vn=new Set(Ts);function ke(t){if(t==="ref"||t==="data-stx-ref")return"ref";if(t.startsWith("::"))return null;if(t.startsWith("@bind:")||t.startsWith("x-bind:"))return"attr";if(t.startsWith("@")||t.startsWith(":")){let e=t.slice(1).split(".")[0];if(ot.has(e))return e==="if"?"if":e;if(e==="for"||e==="else"||e==="else-if"||e==="elseif")return"for";if(yc(e))return"event";if(t.startsWith("@"))return"event";return"attr"}if(t.startsWith("x-")){let e=t.split(".")[0];if(!vn.has(e))return"attr";let n=e.slice(2);if(n==="cloak"||n==="data"||n==="bind")return null;if(n==="tooltip"||n==="tooltip-position")return null;return ot.has(n)?n==="if"?"if":n:"attr"}return null}function Sn(t){let e=[];for(let[n,r]of t){let s=ke(n);if(s)e.push({name:n,value:r,kind:s})}return e}var wn=/<([a-z][\w-]*)((?:\s+[^\s"'=<>/]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s"'=<>`]+))?)*)\s*\/?>/gi,Ne=/([^\s"'=<>/]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'=<>`]+)))?/g;function at(t){let e=[],n=0;return{html:t.replace(wn,(s,a,l)=>{if(!l||!/[:@]|x-/.test(l))return s;let u=[];Ne.lastIndex=0;for(let y=Ne.exec(l);y;y=Ne.exec(l))u.push([y[1],y[2]??y[3]??y[4]??""]);let d=Sn(u);if(!d.length)return s;let h={id:n++,bindings:d};if(d.some((y)=>y.kind==="for"))h.template=!0;e.push(h);let m=s.endsWith("/>");return`${s.slice(0,m?-2:-1).trimEnd()} ${bn}="${h.id}"${m?"/>":">"}`}),manifest:{entries:e}}}import ur from"path";function ce(t){let e=t&&/^(\d+(?:\.\d+)?|\.\d+)(px|rem)?$/.exec(t.trim());if(!e)return;let n=Number(e[1])*(e[2]==="rem"?16:1);return Number.isFinite(n)?n:void 0}function Te(t,e){if(!me[t])return;return ce(e?.get(tn(t))??me[t].value)}function _e(t,e){let n=Wn[t];if(!n)return;return ce(e?.get(qe(n))??Re[n]?.value)}function Ae(t,e){let n=qn[t];if(!n)return;let r=ce(e?.get(qe(n.size))??Re[n.size]?.value),s=ce(e?.get(qe(n.leading))??Re[n.leading]?.value);if(r===void 0||s===void 0)return;return{fontSize:r,lineHeight:s}}var xn={sm:640,md:768,lg:1024,xl:1280,"2xl":1536},dt=Ie({}),ct,lt=null;function le(){let t=globalThis.__stxNativeStyleConfig;if(!t)return dt;if(t!==ct)ct=t,lt=Ie(t);return lt}function pt(t,e=new Map,n=""){for(let[r,s]of Object.entries(t??{})){let a=r==="DEFAULT"?n.replace(/-$/,""):`${n}${r}`;if(typeof s==="string")e.set(a,s);else if(s&&typeof s==="object")pt(s,e,`${a}-`)}return e}function gt(t){let e={};for(let[n,r]of Object.entries(t??{})){let s=typeof r==="number"?r:Number.parseFloat(String(r));if(Number.isFinite(s))e[n]=s}return e}function Ie(t){return{shortcuts:new Map(Object.entries(t.shortcuts??{}).filter(([,e])=>typeof e==="string")),colors:pt(t.colors),fontFamily:new Map(Object.entries(t.fontFamily??{}).map(([e,n])=>[e,Array.isArray(n)?n.join(", "):n])),breakpoints:new Map(Object.entries({...xn,...gt(t.breakpoints)}))}}var Ee={};function ut(t){Ee=t??{},dt=Ie(Ee)}async function ht(t,e){let n=Ee;ut(t);try{return await e()}finally{ut(n)}}function yt(t){if(!t)return{};let e=t.theme??{},n=Object.fromEntries(Object.entries(t.shortcuts??{}).filter(([,r])=>typeof r==="string"));return{...Object.keys(n).length?{shortcuts:n}:{},...e.fontFamily?{fontFamily:JSON.parse(JSON.stringify(e.fontFamily))}:{},...e.colors?{colors:JSON.parse(JSON.stringify(e.colors))}:{},...e.screens?{breakpoints:gt(e.screens)}:{}}}function bt(t){return le().shortcuts.get(t)}function vt(t){return le().colors.get(t)}function Ce(t){return le().breakpoints.get(t)}function ue(t){return le().fontFamily.get(t)}var wt=/^--[\w\u0080-\uFFFF-]+$/u;function St(t,e){if(!/var\(/i.test(t))return t;let n="",r="",s=!1;for(let a=0;a<t.length;a++){let l=t[a];if(l==="\\"){n+=t.slice(a,a+2),a++;continue}if(r){if(n+=l,l===r)r="";continue}if(l==='"'||l==="'"){r=l,n+=l;continue}if(t.slice(a,a+4).toLowerCase()!=="var("||a>0&&/[\w-]/.test(t[a-1])){n+=l;continue}let u=1,d=-1,h="",m=a+4;for(;m<t.length;m++){let S=t[m];if(S==="\\"){m++;continue}if(h){if(S===h)h="";continue}if(S==='"'||S==="'"){h=S;continue}if(S==="(")u++;if(S===")"&&--u===0)break;if(S===","&&u===1&&d===-1)d=m}if(u!==0)return;let p=t.slice(a+4,d===-1?m:d).trim();if(!wt.test(p))return;let y=e(p,d===-1?void 0:t.slice(d+1,m).trim());if(y===void 0||n.length+y.length>65536)return;n+=y,s=!0,a=m}return s&&n.length>65536?void 0:n}function re(t,e){let n=new Map,r=new Set;for(let[f,c]of t){let x=f.trim();if(!wt.test(x))continue;if(typeof c==="string"||typeof c==="number"&&Number.isFinite(c))n.set(x,String(c).trim())}let s=new Map,a=new Set;for(let[f,c]of n){let x=new Set,g=(N,v=0)=>v>64?void 0:St(N,(k,w)=>(x.add(k),w===void 0?"":g(w,v+1)));if(g(c)===void 0)a.add(f);s.set(f,x)}let l=new Map,u=new Map,d=[],h=new Set,m=0;function p(f,c=0){if(c>64){a.add(f);return}l.set(f,m),u.set(f,m++),d.push(f),h.add(f);for(let N of s.get(f)??[]){if(!n.has(N))continue;if(!l.has(N)){if(p(N,c+1),u.has(N))u.set(f,Math.min(u.get(f),u.get(N)))}else if(h.has(N))u.set(f,Math.min(u.get(f),l.get(N)))}if(u.get(f)!==l.get(f))return;let x=[],g;do g=d.pop(),h.delete(g),x.push(g);while(g!==f);if(x.length>1||s.get(f)?.has(f))x.forEach((N)=>a.add(N))}for(let f of n.keys())if(!l.has(f))p(f);let y=new Map;function S(f,c){if(r.add(f),y.has(f))return y.get(f);let x=n.get(f),g=x===void 0||/^(?:inherit|unset)$/i.test(x)?e?.get(f):a.has(f)||/^(?:initial|revert|revert-layer)$/i.test(x)?void 0:b(x,c+1);return y.set(f,g),g}function b(f,c=0){if(c>64)return;return St(f,(x,g)=>S(x,c)??(g===void 0?void 0:b(g,c+1)))}return{resolve:b,used:r,computed(){let f=new Map(e);for(let c of n.keys())f.set(c,S(c,0));return f}}}function Oe(t){if(t.display==="flex"&&t.flexDirection==null)return{...t,flexDirection:"row"};return t}var xt=new Set(["display","gridColumns","gridTemplateColumns","gridTemplateRows","gridAutoRows","flex","flexGrow","flexShrink","flexBasis","flexDirection","flexWrap","order","justifyContent","alignItems","alignSelf","alignContent","position","top","right","bottom","left","zIndex","width","height","minWidth","maxWidth","minHeight","maxHeight","aspectRatio","margin","marginTop","marginRight","marginBottom","marginLeft","marginHorizontal","marginVertical","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingHorizontal","paddingVertical","gap","rowGap","columnGap","borderWidth","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","borderStyle","backgroundColor","backgroundImage","opacity","shadowColor","shadowOffset","shadowOpacity","shadowRadius","elevation","color","fontSize","fontWeight","fontStyle","fontFamily","lineHeight","letterSpacing","textAlign","textDecorationLine","textDecorationColor","textTransform","resizeMode","objectFit","tintColor","transform","overflow","fill","stroke","strokeWidth","gradientDirection","gradientFrom","gradientVia","gradientTo"]),Nn=new Set(["gridColumns","gridAutoRows","flex","flexGrow","flexShrink","order","zIndex","aspectRatio","gap","rowGap","columnGap","borderWidth","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","opacity","shadowOpacity","shadowRadius","elevation","fontSize","lineHeight","letterSpacing","strokeWidth"]),Nt=new Set(["top","right","bottom","left","width","height","minWidth","maxWidth","minHeight","maxHeight","flexBasis","margin","marginTop","marginRight","marginBottom","marginLeft","marginHorizontal","marginVertical","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingHorizontal","paddingVertical"]),kn=/^[+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?$/i,Tn=/^([+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?)(px|rem|em)?$/i,Rn=new Set(["rotate","rotateX","rotateY","rotateZ","skewX","skewY"]),_n=new Set(["perspective","scale","scaleX","scaleY","translateX","translateY"]);function An(t){if(typeof t!=="string")return t;let e=Tn.exec(t);return e?Number(e[1])*(/^r?em$/i.test(e[2]||"")?16:1):t}function ee(t){return typeof t==="number"&&Number.isFinite(t)}function En(t,e){if(t==="shadowOffset"&&e&&typeof e==="object"&&!Array.isArray(e)){let{width:n,height:r}=e;return ee(n)&&ee(r)?{width:n,height:r}:void 0}if(t==="transform"&&Array.isArray(e)){let n=[];for(let r of e){if(!r||typeof r!=="object"||Array.isArray(r)||Object.keys(r).length!==1)return;let[s,a]=Object.entries(r)[0];if(_n.has(s)&&ee(a))n.push({[s]:a});else if(Rn.has(s)&&typeof a==="string"&&/^[+-]?(?:\d+\.?\d*|\.\d+)(?:deg|rad)$/.test(a))n.push({[s]:a});else return}return n}return}function In(t){let e=[],n=0,r=0,s="";for(let a=0;a<=t.length;a++){let l=t[a];if(l==="\\"){a++;continue}if(s){if(l===s)s="";continue}if(l==='"'||l==="'"){s=l;continue}if(l==="(")r++;if(l===")")r=Math.max(0,r-1);if(a!==t.length&&(l!==";"||r))continue;let u=t.slice(n,a),d=u.indexOf(":");if(d!==-1)e.push([u.slice(0,d).trim(),u.slice(d+1).trim()]);n=a+1}return e}function Cn(t,e){let n;if(typeof t==="string"){if(t=t.trim(),!t)return[];try{t=JSON.parse(t)}catch{}}if(typeof t==="string")n=In(t);else if(t&&typeof t==="object"&&!Array.isArray(t))n=Object.entries(t);else{if(t!=null&&t!==!1)e({kind:"non-numeric-style",name:"style"});return[]}return n}function de(t,e=()=>{},n={}){let r=Cn(t,e),s=re(r,n.inheritedVariables);return n.onVariables?.(s.computed()),On(r,s,e)}function On(t,e,n){let r={},s=[];for(let[a,l]of t){if(a.trim().startsWith("--")){s.push(a.trim());continue}let u=xt.has(a)||a.trim().startsWith("--")?a:a.trim().toLowerCase().replace(/-([a-z])/g,(m,p)=>p.toUpperCase());if(!xt.has(u)){n({kind:"unknown-style",name:u});continue}if(l==null||l==="")continue;let d=typeof l==="string"?e.resolve(l.trim()):l;if(d===void 0){n({kind:"non-numeric-style",name:u});continue}if(d==="")continue;if(u==="objectFit"){let m=typeof d==="string"?d.trim().toLowerCase():"";if(m==="cover"||m==="contain")r.resizeMode=m;else if(m==="fill")r.resizeMode="stretch";else if(m==="none")r.resizeMode="center";else n({kind:"unknown-style",name:`objectFit:${String(d)}`});continue}let h;if(Nn.has(u)||Nt.has(u)){if(h=An(d),!ee(h)&&!(Nt.has(u)&&typeof h==="string"&&h.endsWith("%")&&kn.test(h.slice(0,-1))&&Number.isFinite(Number(h.slice(0,-1)))))h=void 0}else if(u==="display"&&d==="inline-flex")h="flex";else if(u==="shadowOffset"||u==="transform")h=En(u,d);else if(u==="gridTemplateColumns"||u==="gridTemplateRows")h=ee(d)||typeof d==="string"?d:void 0;else if(u==="fontWeight"&&ee(d))h=String(d);else if(typeof d==="string")h=d;if(h===void 0)n({kind:"non-numeric-style",name:u});else r[u]=h}for(let a of s)if(!e.used.has(a))n({kind:"unknown-style",name:a});return r}var Pn={transparent:"transparent",current:"currentColor",black:"#000000",white:"#ffffff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"}},Me={px:1,0:0,0.5:2,1:4,1.5:6,2:8,2.5:10,3:12,3.5:14,4:16,5:20,6:24,7:28,8:32,9:36,10:40,11:44,12:48,14:56,16:64,20:80,24:96,28:112,32:128,36:144,40:160,44:176,48:192,52:208,56:224,60:240,64:256,72:288,80:320,96:384},kt={xs:12,sm:14,base:16,lg:18,xl:20,"2xl":24,"3xl":30,"4xl":36,"5xl":48,"6xl":60,"7xl":72,"8xl":96,"9xl":128},Tt={none:0,sm:2,DEFAULT:4,md:6,lg:8,xl:12,"2xl":16,"3xl":24,full:9999};function Q(t){let e=t.lastIndexOf("/");if(e>0&&(!t.endsWith("]")||/\/\[[\d.]+%?\]$/.test(t))){let r=Q(t.slice(0,e)),s=t.slice(e+1),a=/^\[(.+)\]$/.test(s)?Number.parseFloat(s.slice(1,-1))*(s.includes("%")?1:100):Number.parseFloat(s);if(!r||!Number.isFinite(a))return;return Mn(r,a/100)}if(t==="transparent")return"transparent";if(t==="current")return"currentColor";if(t==="black")return"#000000";if(t==="white")return"#ffffff";let n=t.split("-");if(n.length===2){let[r,s]=n,a=Pn[r];if(a&&typeof a==="object")return a[s]}if(t.startsWith("[")&&t.endsWith("]")){let r=t.slice(1,-1);return/^(#|rgba?\(|hsla?\(|[a-z]+$)/i.test(r)?r:void 0}return}function Be(t){return Q(t.trim())}function Mn(t,e){if(t==="transparent")return t;let n=t.startsWith("#")?t.slice(1):"";if(n.length===3)n=n.split("").map((s)=>s+s).join("");if(n.length===8)n=n.slice(0,6);if(n.length!==6)return;let r=Math.round(Math.min(1,Math.max(0,e))*255);return`#${n}${r.toString(16).padStart(2,"0")}`}function Pe(t,e=16){if(!t.startsWith("[")||!t.endsWith("]"))return;let n=t.slice(1,-1),r=Number.parseFloat(n);if(!Number.isFinite(r))return;if(n.endsWith("rem"))return r*16;if(n.endsWith("em"))return r*e;return r}function V(t){if(t.startsWith("[")&&t.endsWith("]")){let e=t.slice(1,-1);if(e.endsWith("%"))return;let n=e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e);return Number.isFinite(n)?n:void 0}return Me[t]??_e(t)}function pe(t){let e=/^\[(-?\d*\.?\d+)%\]$/.exec(t);if(e)return`${Number.parseFloat(e[1])}%`;return V(t)}var Bn={flex:(t,e)=>(e.display="flex",!0),block:(t,e)=>(e.display="flex",!0),hidden:(t,e)=>(e.display="none",!0),grid:(t,e)=>(e.display="grid",!0),"flex-row":(t,e)=>(e.flexDirection="row",!0),"flex-col":(t,e)=>(e.flexDirection="column",!0),"flex-row-reverse":(t,e)=>(e.flexDirection="row-reverse",!0),"flex-col-reverse":(t,e)=>(e.flexDirection="column-reverse",!0),"flex-wrap":(t,e)=>(e.flexWrap="wrap",!0),"flex-nowrap":(t,e)=>(e.flexWrap="nowrap",!0),"flex-wrap-reverse":(t,e)=>(e.flexWrap="wrap-reverse",!0),"flex-1":(t,e)=>(e.flex=1,e.flexGrow=1,e.flexShrink=1,e.flexBasis=0,!0),"flex-auto":(t,e)=>(e.flexGrow=1,e.flexShrink=1,!0),"flex-initial":(t,e)=>(e.flexGrow=0,e.flexShrink=1,!0),"flex-none":(t,e)=>(e.flexGrow=0,e.flexShrink=0,!0),grow:(t,e)=>(e.flexGrow=1,!0),"grow-0":(t,e)=>(e.flexGrow=0,!0),shrink:(t,e)=>(e.flexShrink=1,!0),"shrink-0":(t,e)=>(e.flexShrink=0,!0),"order-first":(t,e)=>(e.order=-9999,!0),"order-last":(t,e)=>(e.order=9999,!0),"order-none":(t,e)=>(e.order=0,!0),"justify-start":(t,e)=>(e.justifyContent="flex-start",!0),"justify-center":(t,e)=>(e.justifyContent="center",!0),"justify-end":(t,e)=>(e.justifyContent="flex-end",!0),"justify-between":(t,e)=>(e.justifyContent="space-between",!0),"justify-around":(t,e)=>(e.justifyContent="space-around",!0),"justify-evenly":(t,e)=>(e.justifyContent="space-evenly",!0),"items-start":(t,e)=>(e.alignItems="flex-start",!0),"items-center":(t,e)=>(e.alignItems="center",!0),"items-end":(t,e)=>(e.alignItems="flex-end",!0),"items-stretch":(t,e)=>(e.alignItems="stretch",!0),"items-baseline":(t,e)=>(e.alignItems="baseline",!0),"self-auto":(t,e)=>(e.alignSelf="auto",!0),"self-start":(t,e)=>(e.alignSelf="flex-start",!0),"self-center":(t,e)=>(e.alignSelf="center",!0),"self-end":(t,e)=>(e.alignSelf="flex-end",!0),"self-stretch":(t,e)=>(e.alignSelf="stretch",!0),"self-baseline":(t,e)=>(e.alignSelf="baseline",!0),"min-w-0":(t,e)=>(e.minWidth=0,!0),"aspect-square":(t,e)=>(e.aspectRatio=1,!0),"aspect-video":(t,e)=>(e.aspectRatio=1.7777777777777777,!0),"border-solid":(t,e)=>(e.borderStyle="solid",!0),"border-dashed":(t,e)=>(e.borderStyle="dashed",!0),"border-dotted":(t,e)=>(e.borderStyle="dotted",!0),group:()=>!0,peer:()=>!0,"inset-0":(t,e)=>(e.top=0,e.right=0,e.bottom=0,e.left=0,!0),"mx-auto":(t,e)=>(e.alignSelf="center",!0),fixed:(t,e)=>(e.position="absolute",!0),sticky:()=>!0,"sr-only":(t,e)=>(e.position="absolute",e.width=1,e.height=1,e.overflow="hidden",!0),inline:()=>!0,"inline-block":()=>!0,contents:()=>!0,"align-top":()=>!0,"align-middle":()=>!0,"align-bottom":()=>!0,"align-baseline":()=>!0,"align-text-top":()=>!0,"whitespace-normal":()=>!0,"whitespace-pre":()=>!0,"whitespace-pre-line":()=>!0,"whitespace-pre-wrap":()=>!0,"whitespace-nowrap":()=>!0,"break-words":()=>!0,"break-all":()=>!0,"break-normal":()=>!0,"object-cover":()=>!0,"object-contain":()=>!0,"object-fill":()=>!0,"object-center":()=>!0,"tracking-tighter":(t,e)=>(e.letterSpacing=-0.8,!0),"tracking-tight":(t,e)=>(e.letterSpacing=-0.4,!0),"tracking-normal":(t,e)=>(e.letterSpacing=0,!0),"tracking-wide":(t,e)=>(e.letterSpacing=0.4,!0),"tracking-wider":(t,e)=>(e.letterSpacing=0.8,!0),"tracking-widest":(t,e)=>(e.letterSpacing=1.6,!0),"tabular-nums":()=>!0,"inline-flex":(t,e)=>(e.display="flex",!0),truncate:()=>!0,relative:(t,e)=>(e.position="relative",!0),absolute:(t,e)=>(e.position="absolute",!0),"overflow-visible":(t,e)=>(e.overflow="visible",!0),"overflow-hidden":(t,e)=>(e.overflow="hidden",!0),"overflow-scroll":(t,e)=>(e.overflow="scroll",!0),"overflow-x-auto":()=>!0,"overflow-x-scroll":()=>!0,"overflow-y-auto":()=>!0,"overflow-y-scroll":()=>!0,"font-sans":(t,e)=>(e.fontFamily=ue("sans")??"sans-serif",!0),"font-serif":(t,e)=>(e.fontFamily=ue("serif")??"serif",!0),"font-mono":(t,e)=>(e.fontFamily=ue("mono")??"monospace",!0),"font-thin":(t,e)=>(e.fontWeight="100",!0),"font-extralight":(t,e)=>(e.fontWeight="200",!0),"font-light":(t,e)=>(e.fontWeight="300",!0),"font-normal":(t,e)=>(e.fontWeight="400",!0),"font-medium":(t,e)=>(e.fontWeight="500",!0),"font-semibold":(t,e)=>(e.fontWeight="600",!0),"font-bold":(t,e)=>(e.fontWeight="bold",!0),"font-extrabold":(t,e)=>(e.fontWeight="800",!0),"font-black":(t,e)=>(e.fontWeight="900",!0),italic:(t,e)=>(e.fontStyle="italic",!0),"not-italic":(t,e)=>(e.fontStyle="normal",!0),"text-left":(t,e)=>(e.textAlign="left",!0),"text-center":(t,e)=>(e.textAlign="center",!0),"text-right":(t,e)=>(e.textAlign="right",!0),"text-justify":(t,e)=>(e.textAlign="justify",!0),uppercase:(t,e)=>(e.textTransform="uppercase",!0),lowercase:(t,e)=>(e.textTransform="lowercase",!0),capitalize:(t,e)=>(e.textTransform="capitalize",!0),"normal-case":(t,e)=>(e.textTransform="none",!0),underline:(t,e)=>(e.textDecorationLine="underline",!0),"line-through":(t,e)=>(e.textDecorationLine="line-through",!0),"no-underline":(t,e)=>(e.textDecorationLine="none",!0)};function Ln(t,e){if(!t.startsWith("bg-"))return!1;let n=t.slice(3),r=Q(n);if(r)return e.backgroundColor=r,!0;return!1}function Dn(t,e){if(!t.startsWith("text-"))return!1;let n=t.slice(5),r=Ae(n);if(r)return Object.assign(e,r),!0;if(kt[n])return e.fontSize=kt[n],!0;if(n.startsWith("[")&&n.endsWith("]")){let a=n.slice(1,-1);if(/^-?[\d.]+(?:px|r?em)?$/.test(a)){let l=a.endsWith("rem")||a.endsWith("em")?Number.parseFloat(a)*16:Number.parseFloat(a);if(Number.isFinite(l))return e.fontSize=l,!0}}let s=Q(n);if(s)return e.color=s,!0;return!1}var $n=new Set(["t","tr","r","br","b","bl","l","tl"]);function Vn(t,e){let n=/^bg-(?:gradient|linear)-to-([a-z]+)$/.exec(t);if(n&&$n.has(n[1]))return e.gradientDirection=`to-${n[1]}`,!0;let r=/^(from|via|to)-(.+)$/.exec(t);if(!r)return!1;let s=Q(r[2]);if(!s)return!1;if(r[1]==="from")e.gradientFrom=s;else if(r[1]==="via")e.gradientVia=s;else e.gradientTo=s;return!0}function jn(t,e){for(let n of["fill","stroke"]){let r=`${n}-`;if(!t.startsWith(r))continue;let s=t.slice(r.length);if(s==="none")return e[n]="none",!0;if(n==="stroke"&&/^\d+(?:\.\d+)?$/.test(s))return e.strokeWidth=Number.parseFloat(s),!0;if(n==="stroke"&&/^\[\d+(?:\.\d+)?(?:px)?\]$/.test(s))return e.strokeWidth=Number.parseFloat(s.slice(1)),!0;let a=Q(s);if(a)return e[n]=a,!0}return!1}function Fn(t,e){if(t.startsWith("p-")){let n=V(t.slice(2));if(n!==void 0)return e.padding=n,!0}if(t.startsWith("px-")){let n=V(t.slice(3));if(n!==void 0)return e.paddingHorizontal=n,!0}if(t.startsWith("py-")){let n=V(t.slice(3));if(n!==void 0)return e.paddingVertical=n,!0}if(t.startsWith("pt-")){let n=V(t.slice(3));if(n!==void 0)return e.paddingTop=n,!0}if(t.startsWith("pr-")){let n=V(t.slice(3));if(n!==void 0)return e.paddingRight=n,!0}if(t.startsWith("pb-")){let n=V(t.slice(3));if(n!==void 0)return e.paddingBottom=n,!0}if(t.startsWith("pl-")){let n=V(t.slice(3));if(n!==void 0)return e.paddingLeft=n,!0}return!1}function _t(t,e){if(/^-(?:m|mx|my|mt|mr|mb|ml)-/.test(t)){let n={};if(!_t(t.slice(1),n))return!1;let r=Object.entries(n);if(r.some(([,s])=>typeof s!=="number"))return!1;for(let[s,a]of r)e[s]=-a;return!0}if(t.startsWith("m-")){let n=V(t.slice(2));if(n!==void 0)return e.margin=n,!0}if(t.startsWith("mx-")){let n=V(t.slice(3));if(n!==void 0)return e.marginHorizontal=n,!0}if(t.startsWith("my-")){let n=V(t.slice(3));if(n!==void 0)return e.marginVertical=n,!0}if(t.startsWith("mt-")){let n=V(t.slice(3));if(n!==void 0)return e.marginTop=n,!0}if(t.startsWith("mr-")){let n=V(t.slice(3));if(n!==void 0)return e.marginRight=n,!0}if(t.startsWith("mb-")){let n=V(t.slice(3));if(n!==void 0)return e.marginBottom=n,!0}if(t.startsWith("ml-")){let n=V(t.slice(3));if(n!==void 0)return e.marginLeft=n,!0}return!1}function zn(t,e){if(!t.startsWith("w-"))return!1;let n=t.slice(2);if(n==="full")return e.width="100%",!0;if(n==="screen")return e.width="100%",!0;if(n==="auto")return e.width="auto",!0;if(n.includes("/")){let[s,a]=n.split("/"),l=Number.parseInt(s)/Number.parseInt(a)*100;return e.width=`${l}%`,!0}let r=pe(n);if(r!==void 0)return e.width=r,!0;return!1}function Xn(t,e){if(!t.startsWith("h-"))return!1;let n=t.slice(2);if(n==="full")return e.height="100%",!0;if(n==="screen")return e.height="100%",!0;if(n==="auto")return e.height="auto",!0;let r=pe(n);if(r!==void 0)return e.height=r,!0;return!1}function Un(t,e){if(t==="rounded")return e.borderRadius=Tt.DEFAULT,!0;if(!t.startsWith("rounded-"))return!1;let n=t.slice(8);if(n==="")return!1;let r=/^(?:(tl|tr|bl|br|t|b|l|r)-)?(.+)$/.exec(n),s=Tt[r[2]]??Te(r[2])??Pe(r[2]);if(s===void 0)return!1;let a={t:["borderTopLeftRadius","borderTopRightRadius"],b:["borderBottomLeftRadius","borderBottomRightRadius"],l:["borderTopLeftRadius","borderBottomLeftRadius"],r:["borderTopRightRadius","borderBottomRightRadius"],tl:["borderTopLeftRadius"],tr:["borderTopRightRadius"],bl:["borderBottomLeftRadius"],br:["borderBottomRightRadius"]};for(let l of r[1]?a[r[1]]:["borderRadius"])e[l]=s;return!0}function Hn(t,e){let n=/^border(?:-([trblxy]))?(?:-(\d+|\[[^\]]+\]))?$/.exec(t);if(!n)return!1;let[,r="",s]=n,a=s===void 0?1:Number(s);if(s?.startsWith("[")){let u=/^\[(\d+(?:\.\d+)?|\.\d+)(px|rem)?\]$/.exec(s);if(!u)return!1;a=Number(u[1])*(u[2]==="rem"?16:1)}if(!Number.isFinite(a)||a<0)return!1;let l={"":["borderWidth"],t:["borderTopWidth"],r:["borderRightWidth"],b:["borderBottomWidth"],l:["borderLeftWidth"],x:["borderLeftWidth","borderRightWidth"],y:["borderTopWidth","borderBottomWidth"]};for(let u of l[r])e[u]=a;return!0}function Gn(t,e){if(!t.startsWith("border-"))return!1;let n=t.slice(7),r=Q(n);if(r)return e.borderColor=r,!0;return!1}function Kn(t,e){if(!t.startsWith("opacity-"))return!1;let n=Number.parseInt(t.slice(8));if(!Number.isNaN(n))return e.opacity=n/100,!0;return!1}function Jn(t,e){if(t.startsWith("tracking-[")){let n=Pe(t.slice(9),typeof e.fontSize==="number"?e.fontSize:16);if(n===void 0)return!1;return e.letterSpacing=n,!0}if(t.startsWith("leading-")){let n=t.slice(8),r=typeof e.fontSize==="number"?e.fontSize:16,s={none:1,tight:1.25,snug:1.375,normal:1.5,relaxed:1.625,loose:2},a=n.startsWith("[")?/^\[[\d.]+\]$/.test(n)?Number.parseFloat(n.slice(1,-1))*r:Pe(n,r):s[n]!==void 0?s[n]*r:Me[n];if(a===void 0||!Number.isFinite(a))return!1;return e.lineHeight=a,!0}return!1}function Yn(t,e){let n=/^(-?)(inset-x|inset-y|inset|top|right|bottom|left)-(.+)$/.exec(t);if(!n)return!1;let r=n[3],s=/^\[(-?[\d.]+)px\]$/.exec(r),a=s?Number(s[1]):Me[r];if(a===void 0||!Number.isFinite(a))return!1;let l=n[1]?-a:a,u=n[2]==="inset"?["top","right","bottom","left"]:n[2]==="inset-x"?["left","right"]:n[2]==="inset-y"?["top","bottom"]:[n[2]];for(let d of u)e[d]=l;return!0}function Qn(t,e){let n=/^grid-cols-\[(.+)\]$/.exec(t);if(n)return e.gridColumns=n[1].split("_").filter(Boolean).length,!0;let r=/^grid-cols-(\d+)$/.exec(t);if(!r)return!1;return e.gridColumns=Number(r[1]),!0}function Zn(t,e){if(!t.startsWith("size-"))return!1;let n=t.slice(5),r=n==="full"?"100%":pe(n);if(r===void 0)return!1;return e.width=r,e.height=r,!0}var er={xs:320,sm:384,md:448,lg:512,xl:576,"2xl":672,"3xl":768,"4xl":896,"5xl":1024,"6xl":1152,"7xl":1280};function tr(t,e){let n=/^(min|max)-(w|h)-(.+)$/.exec(t);if(!n)return!1;let[,r,s,a]=n,l=a==="full"||a==="screen"?"100%":a==="none"?void 0:s==="w"&&r==="max"&&er[a]||pe(a);if(l===void 0&&a!=="none")return!1;let u=`${r}${s==="w"?"Width":"Height"}`;if(l===void 0)delete e[u];else e[u]=l;return!0}function nr(t,e){let n=/^(-?)(top|right|bottom|left)-(.+)$/.exec(t);if(!n)return!1;let r=n[3]==="full"?"100%":V(n[3]);if(r===void 0)return!1;return e[n[2]]=typeof r==="number"&&n[1]?-r:r,!0}function rr(t,e){let n=/^(-?)translate-(x|y)-(.+)$/.exec(t);if(!n)return!1;let r=n[3],s;if(r.startsWith("[")){let u=/^\[([+-]?(?:\d+\.?\d*|\.\d+))(px|rem|em)?\]$/.exec(r);if(!u)return!1;s=Number(u[1])*(u[2]?.endsWith("em")?16:1)}else s=V(r);if(s===void 0||!Number.isFinite(s))return!1;if(n[1])s=-s;let a=n[2]==="x"?"translateX":"translateY",l=a==="translateX"?{translateX:s}:{translateY:s};return e.transform=[...(e.transform??[]).filter((u)=>!(a in u)),l],!0}function ir(t,e){let n=/^space-(x|y)-(.+)$/.exec(t);if(!n)return!1;let r=V(n[2]);if(r===void 0)return!1;return e.gap=r,!0}function sr(t,e){if(t.startsWith("gap-")){let n=V(t.slice(4));if(n!==void 0)return e.gap=n,!0}if(t.startsWith("gap-x-")){let n=V(t.slice(6));if(n!==void 0)return e.columnGap=n,!0}if(t.startsWith("gap-y-")){let n=V(t.slice(6));if(n!==void 0)return e.rowGap=n,!0}return!1}function or(t,e){let r={"shadow-none":[0,0,0,0],"shadow-xs":[1,1,0.05,1],"shadow-sm":[2,1,0.1,2],shadow:[3,2,0.12,3],"shadow-md":[6,4,0.15,4],"shadow-lg":[10,6,0.18,8],"shadow-xl":[16,10,0.2,12],"shadow-2xl":[24,16,0.25,18]}[t];if(!r)return!1;let[s,a,l,u]=r;return Object.assign(e,{shadowColor:"#000000",shadowOpacity:l,shadowRadius:s,shadowOffset:{width:0,height:a},elevation:u}),!0}function ar(t){let e=/^divide-(?:(y|x)(?:-(.+))?|(.+))$/.exec(t);if(!e)return null;if(e[2]==="reverse")return"";if(e[1])return`border-${e[1]==="y"?"t":"l"}${e[2]?`-${e[2]}`:""}`;return`border-${e[3]}`}var At=new Set(["aria-selected","aria-pressed","aria-checked","aria-expanded"]),cr=new Set(["hover","group-hover","peer-hover","active","group-active","visited","placeholder","selection","print","motion-safe"]),lr=/^(?:transition(?:-[a-z]+)?|animate-\S+|scroll-[mp][trblxyse]?-\S+|snap-\S+|overscroll-\S+|duration-\S+|ease-\S+|delay-\S+|will-change-\S+|cursor-\S+|select-(?:none|text|all|auto)|outline-none|outline-0|appearance-none|scroll-smooth|scroll-auto|antialiased|subpixel-antialiased|touch-\S+|resize(?:-\S+)?|backdrop-blur(?:-\S+)?|isolate|contain-\S+)$/;function Et(t){let e=[],n=0,r=0;for(let s=0;s<t.length;s++){let a=t[s];if(a==="[")n++;else if(a==="]")n=Math.max(0,n-1);else if(a===":"&&n===0)e.push(t.slice(r,s)),r=s+1}return e.push(t.slice(r)),e}function It(t,e=new Set){let n=Et(t),r=n[n.length-1],s=e.has(r)?void 0:bt(r);if(s===void 0)return[t];let a=n.slice(0,-1).map((u)=>`${u}:`).join(""),l=new Set(e).add(r);return s.split(/\s+/).filter(Boolean).flatMap((u)=>It(`${a}${u}`,l))}function ge(t,e,n={}){let r=new Map,s=(b,f)=>{if(!r.has(b))r.set(b,{...f,classes:[],authored:new Map});return r.get(b)};s("base",{});let a=[],l=[],u=t.split(/\s+/).filter(Boolean);if(n.rules){let b=new Set(u);for(let f of Object.keys(n.rules))if(f.includes(".")&&f.split(".").every((c)=>b.has(c)))l.push(f);l.sort((f,c)=>f.split(".").length-c.split(".").length)}for(let b of u){if(n.rules&&Object.hasOwn(n.rules,b)){a.push(b);continue}for(let f of It(b)){let c=Et(f),x=c.pop(),g=c.some((T)=>T.startsWith("focus"));if(c.some((T)=>/^(?:group-|peer-)?focus(?:-visible|-within)?$/.test(T))&&/^(?:ring|outline)(?:-|$)/.test(x))continue;if(lr.test(x)||!g&&c.some((T)=>cr.has(T)))continue;let N,v,k=!1,w,_=[];for(let T of c){let E=Ce(T),P=T.startsWith("max-")?Ce(T.slice(4)):void 0;if(E!==void 0&&N===void 0)N=E;else if(P!==void 0&&v===void 0)v=P-0.02;else if(T==="disabled"&&!k)k=!0;else if(At.has(T)&&w===void 0)w=T;else _.push(T)}let I=[..._,x].join(":"),B=N!==void 0||v!==void 0,R=k?s("disabled",{disabled:!0}):w?s(`state:${w}`,{state:w}):B?s(`range:${N??0}:${v??""}`,{min:N??0,max:v}):r.get("base");if((k||w)&&(B||k&&w)){r.get("base").authored.set(f,b),r.get("base").classes.push(f);continue}if(R.classes.push(I),!R.authored.has(I))R.authored.set(I,b===f?f:`${b} (${f})`)}}let d=[...a,...l],h=(b,f)=>f.map((c)=>b.authored.get(c)??c),m=r.get("base"),p=fe(m.classes.join(" "),e,n),y=new Map;if(d.length){let b=(x)=>x?de(x,()=>{},{inheritedVariables:e}):{},f={},c={};for(let x of d){let g=n.rules[x];f={...f,...b(g.light)},c={...c,...b(g.dark)};for(let N of g.responsive??[]){let v=`${N.min}:${N.max??""}`,k=y.get(v)??{min:N.min,...N.max===void 0?{}:{max:N.max},style:{}};if(k.style={...k.style,...b(N.light)},N.dark)k.dark={...k.dark,...b(N.dark)};y.set(v,k)}}if(p.style={...f,...p.style},Object.keys(c).length)p.dark={...c,...p.dark}}p.unknown=h(m,p.unknown);let S=[];for(let b of r.values()){if(b===m)continue;let f=fe(b.classes.join(" "),e,{appearance:n.appearance});p.unknown=[...new Set([...p.unknown,...h(b,f.unknown)])];let c={style:f.style,...f.dark?{dark:f.dark}:{}};if(b.disabled)p.disabled=c;else if(b.state)(p.states??={})[b.state]=c;else S.push({min:b.min??0,...b.max===void 0?{}:{max:b.max},...c})}for(let b of y.values()){let f=S.find((c)=>c.min===b.min&&c.max===b.max);if(f){if(f.style={...b.style,...f.style},b.dark||f.dark)f.dark={...b.dark,...f.dark}}else S.push(b)}if(S.length)p.responsive=S.sort((b,f)=>b.min-f.min||(b.max??1/0)-(f.max??1/0));return p}function fe(t,e,n={}){let r=[],s=[],a=[],l=[],u={focus:{classes:[],originals:new Map},focusWithin:{classes:[],originals:new Map}},d=new Map;function h(g,N){let v=/^(bg|text|border(?:-[trblxy])?|from|via|to|fill|stroke|divide|decoration|caret|accent)-(.+?)(\/[^\s]+)?$/.exec(g),k=v&&vt(v[2]);if(v&&k){let R=/^var\(\s*(--[\w-]+)\s*(?:,\s*(.+?)\s*)?\)$/.exec(k),T=R?e?.get(R[1])??R[2]:k;if(T&&/^(?:#[0-9a-f]{3,8}|rgba?\(.+\)|hsla?\(.+\))$/i.test(T))return[`${v[1]}-[${T.replace(/\s+/g,"")}]${v[3]||""}`]}let w=/^(text|bg|border|ring)-([a-z-]+)(\/[^\s]+)?$/.exec(g),_=w&&mt[w[2]];if(_){let R=e?.get(We(w[2]));return[`${w[1]}-${R===void 0?_[N]:`[${R}]`}${w[3]||""}`]}let I=/^rounded-(?:(tl|tr|bl|br|t|b|l|r)-)?(.+)$/.exec(g);if(I&&me[I[2]]){let R=Te(I[2],e);return R===void 0?void 0:[`rounded-${I[1]?`${I[1]}-`:""}[${R}px]`]}let B=g.startsWith("text-")?g.slice(5):"";if(qn[B]){let R=Ae(B,e);return R&&[`text-[${R.fontSize}px]`,`leading-[${R.lineHeight}px]`]}for(let R of Object.keys(Wn)){if(!g.endsWith(`-${R}`))continue;let T=_e(R,e);return T===void 0?void 0:[`${g.slice(0,-R.length)}[${T}px]`]}return[g]}function m(g,N){if(!d.has(g))d.set(g,new Set);return d.get(g).add(N),g}let p=[],y=new Map;for(let g of t.split(/\s+/).filter(Boolean)){let N=g.startsWith("dark:")?g.slice(5):g,v=ar(N);if(v!==null){let _=v&&`${g===N?"":"dark:"}${v}`;if(_)p.push(_),y.set(_,g);continue}let k=/^(dark:)?(focus|focus-within):(dark:)?(.+)$/.exec(g),w=k?.[2]==="focus"?"focus":"focusWithin";if(k&&n[w]&&!(k[1]&&k[3])){let _=`${k[1]||k[3]?"dark:":""}${k[4]}`,I=u[w];I.classes.push(_),I.originals.set(_,[...I.originals.get(_)??[],g]);continue}if(g.startsWith("dark:")){let _=h(g.slice(5),"dark");if(!_)l.push(g);else s.push(..._.map((I)=>m(I,g)))}else if(!g.includes(":")||g.startsWith("[")){let _=h(g,n.appearance??"light"),I=h(g,"dark");if(!_||!I){l.push(g);continue}if(r.push(..._.map((B)=>m(B,g))),I.join(" ")!==_.join(" "))a.push(...I.map((B)=>m(B,g)))}else l.push(g)}let S=[],b=Rt(r,S),f={style:b,unknown:S},c=[...n.appearance===void 0?a:[],...s];if(c.length)f.dark=Rt(c,S);if(b.transform&&f.dark?.transform){let g=new Set(f.dark.transform.flatMap((N)=>Object.keys(N)));f.dark.transform=[...b.transform.filter((N)=>!Object.keys(N).some((v)=>g.has(v))),...f.dark.transform]}for(let g of r){if(g==="truncate"||g==="whitespace-nowrap")f.numberOfLines=1;let N=/^object-(cover|contain|fill)$/.exec(g);if(N)f.resizeMode=N[1]==="fill"?"stretch":N[1];let v=/^line-clamp-(\d+)$/.exec(g);if(v)f.numberOfLines=Number(v[1]);if(!f.icon&&/^i-[a-z0-9]+-[a-z0-9-]+$/.test(g))f.icon=g}let x=S.flatMap((g)=>[...d.get(g)??[g]]);if(f.unknown=[...new Set([...x.filter((g)=>!/^line-clamp-\d+$/.test(g)),...l])],p.length){let g=fe(p.join(" "),e,{appearance:n.appearance});f.divide={style:g.style,...g.dark?{dark:g.dark}:{}},f.unknown=[...new Set([...f.unknown,...g.unknown.map((N)=>y.get(N)??N)])]}for(let g of["focus","focusWithin"]){let N=u[g];if(!N.classes.length)continue;let v=fe(N.classes.join(" "),e,{appearance:n.appearance});f[g]={style:v.style,dark:v.dark},f.unknown=[...new Set([...f.unknown,...v.unknown.flatMap((k)=>N.originals.get(k)??[k])])];for(let k of N.classes)if(/^(?:dark:)?(?:truncate|line-clamp-\d+|i-[a-z0-9]+-.+)$/.test(k))f.unknown.push(...N.originals.get(k))}return f}function Rt(t,e){let n={},r=Array.isArray(t)?t:t.split(/\s+/).filter(Boolean);for(let s of r){if(/^i-[a-z0-9]+-/.test(s))continue;let a=Bn[s];if(a){a("",n);continue}if(or(s,n))continue;if(Vn(s,n))continue;if(Ln(s,n))continue;if(jn(s,n))continue;if(Dn(s,n))continue;if(Fn(s,n))continue;if(_t(s,n))continue;if(zn(s,n))continue;if(Xn(s,n))continue;if(Un(s,n))continue;if(Hn(s,n))continue;if(Gn(s,n))continue;if(Kn(s,n))continue;if(sr(s,n))continue;if(Jn(s,n))continue;if(Zn(s,n))continue;if(tr(s,n))continue;if(Qn(s,n))continue;let l=/^aspect-\[(\d+(?:\.\d+)?)\/(\d+(?:\.\d+)?)\]$/.exec(s);if(l&&Number(l[2])>0){n.aspectRatio=Number(l[1])/Number(l[2]);continue}let u=/^z-\[(-?\d+)\]$/.exec(s)??/^z-(\d+)$/.exec(s);if(u){n.zIndex=Number(u[1]);continue}if(s==="z-auto")continue;if(Yn(s,n))continue;let d=/^order-\[(-?\d+)\]$/.exec(s)??/^order-(-?\d+)$/.exec(s);if(d){n.order=Number(d[1]);continue}if(nr(s,n))continue;if(rr(s,n))continue;if(ir(s,n))continue;if(e?.push(s),typeof process<"u"&&process.env?.NODE_ENV==="development")console.warn(`[STX Native] Unknown Headwind class: ${s}`)}return n}var Ct=new Map;function Ot(t,e){if(!t)return;let n=t.trim(),r=n.lastIndexOf("-"),s=r===-1?e[n]:e[n.slice(0,r)],a=r===-1?s:s?.[n.slice(r+1)];if(typeof a==="string"&&/^#[\da-f]{3,8}$/i.test(a))return a;return Be(n)??Be(`[${n}]`)}function dr(t){let e=t.roles??{},n=t.shapes??{},r=t.density??{},s={...t.theme?.colors,...t.theme?.extend?.colors},a=[],l=[];for(let[u,d]of Object.entries(e)){if(!mt[u])continue;let h=Ot(typeof d==="string"?d:d?.light,s),m=Ot(typeof d==="string"?d:d?.dark,s);if(h)a.push(`${We(u)}: ${h};`);if(m)l.push(`${We(u)}: ${m};`)}for(let[u,d]of Object.entries(n))if(me[u])a.push(`${tn(u)}: ${d};`);for(let[u,d]of Object.entries(r))if(Re[u])a.push(`${qe(u)}: ${d};`);return[a.length?`:root { ${a.join(" ")} }`:"",l.length?`.dark { ${l.join(" ")} }`:""].filter(Boolean).join(`
|
|
3
|
-
`)}async function fr(t){let{resolveUserCssConfig:e}=await import("./chunk-dasxbb9y.js"),n=await e(t);return n?dr(n):""}function Pt(t){let e=ur.resolve(t),n=Ct.get(e);if(!n)n=fr(e).catch(()=>""),Ct.set(e,n);return n}var Bt={"aria-pressed":"selected","aria-selected":"selected","aria-checked":"checked","aria-disabled":"disabled","aria-expanded":"expanded","aria-busy":"busy"},Mt={alert:"alert",button:"button",checkbox:"checkbox",combobox:"combobox",header:"header",heading:"header",image:"image",img:"image",link:"link",menu:"menu",menubar:"menubar",menuitem:"menuitem",none:"none",presentation:"none",progressbar:"progressbar",radio:"radio",scrollbar:"scrollbar",search:"search",searchbox:"search",slider:"adjustable",spinbutton:"spinbutton",switch:"switch",tab:"tab",tablist:"tablist",timer:"timer",toolbar:"toolbar"};function pr(t){return t==="role"||t==="aria-label"||t==="aria-valuetext"||t in Bt}function gr(t,e){if(e===void 0||e===null)return;let n=String(e).trim().toLowerCase();if(n==="mixed")return t==="aria-checked"?"mixed":!0;if(n==="undefined")return;return n===""||n==="true"}function hr(t){if(t===void 0||t===null)return null;for(let e of String(t).trim().toLowerCase().split(/\s+/))if(Mt[e])return Mt[e];return null}function mr(t,e,n){if(t==="aria-label")return{accessibilityLabel:e===void 0||e===null||e===""?null:String(e)};if(t==="aria-valuetext")return{accessibilityValue:e===void 0||e===null||e===""?null:String(e)};if(t==="role")return{accessibilityRole:hr(e)};let r=Bt[t];if(!r)return;let s=n.accessibilityState,a=s&&typeof s==="object"?{...s}:{},l=gr(t,e);if(l===void 0)delete a[r];else a[r]=l;return{accessibilityState:Object.keys(a).length?a:null}}function yr(t){let e=t.accessibilityState&&typeof t.accessibilityState==="object"?t.accessibilityState:void 0,n={};for(let[s,a]of Object.entries(t)){if(!pr(s))continue;let l=mr(s,a,n);if(l)Object.assign(n,l)}for(let s of["accessibilityLabel","accessibilityRole","accessibilityValue"])if(t[s]===void 0&&n[s]!==void 0&&n[s]!==null)t[s]=n[s];let r=n.accessibilityState;if(r)t.accessibilityState={...r,...e}}var Le=["accessibilityLabel","accessibilityRole","accessibilityState","accessibilityValue"];function De(t){let e={...t};return yr(e),Object.fromEntries(Le.filter((n)=>(n in e)).map((n)=>[n,e[n]]))}var Dt=["keyboardType","secureTextEntry","returnKeyType","autoCapitalize","autoCorrect","editable","autoComplete"],br=new Set(["type","inputmode","inputMode","enterkeyhint","enterKeyHint","autoCapitalize","autoCorrect","spellcheck","readonly","readOnly","disabled",...Dt]),vr={numeric:"number-pad",decimal:"decimal-pad",tel:"phone-pad",email:"email-address",url:"url",search:"web-search",text:"default"},Sr={email:{keyboardType:"email-address",verbatim:!0,autoComplete:"email"},tel:{keyboardType:"phone-pad",autoComplete:"tel"},url:{keyboardType:"url",verbatim:!0,autoComplete:"url"},number:{keyboardType:"decimal-pad"},search:{keyboardType:"web-search",returnKeyType:"search"},password:{secure:!0,verbatim:!0}},wr={enter:"default",done:"done",go:"go",next:"next",previous:"default",search:"search",send:"send"};function te(t){return t===void 0||t===null?"":String(t).trim().toLowerCase()}function Lt(t){if(t===void 0||t===null||t===!1)return!1;return te(t)!=="false"}function $e(t,...e){for(let n of e)if(t[n]!==void 0&&t[n]!==null)return t[n];return}function $t(t,e){if(t!=="TextInput")return{};let n={},r=te(e.type),s=Sr[r]??{},a=te($e(e,"inputmode","inputMode")),l=vr[a]??s.keyboardType;if(l&&l!=="default")n.keyboardType=l;if(s.secure)n.secureTextEntry=!0;let u=te($e(e,"enterkeyhint","enterKeyHint")),d=wr[u]??s.returnKeyType;if(d&&d!=="default")n.returnKeyType=d;let h=te(e.autoCapitalize);if(h==="off"||h==="none")n.autoCapitalize="none";else if(h==="on")n.autoCapitalize="sentences";else if(!h&&s.verbatim)n.autoCapitalize="none";let m=e.autoCorrect;if(m==="off"||m==="false"||te(e.spellcheck)==="false"||m===void 0&&s.verbatim)n.autoCorrect=!1;else if(m==="on"||m==="true")n.autoCorrect=!0;if(Lt($e(e,"readonly","readOnly"))||Lt(e.disabled))n.editable=!1;if(s.autoComplete)n.autoComplete=s.autoComplete;return Object.fromEntries(Object.entries(n).filter(([p])=>e[p]===void 0||xr(p,e[p])))}function xr(t,e){if(t==="autoCapitalize")return e==="off"||e==="on";if(t==="autoCorrect")return typeof e==="string";return!1}function Vt(t){let e=$t(t.type,t.props);if(!Object.keys(e).length)return;t._textEntrySource=Object.fromEntries(Dt.filter((n)=>(n in t.props)).map((n)=>[n,t.props[n]])),Object.assign(t.props,e)}var Ve={"region-change-complete":"onRegionChangeComplete",regionchangecomplete:"onRegionChangeComplete",click:"onPress",press:"onPress","press-in":"onPressIn",pressin:"onPressIn","press-out":"onPressOut",pressout:"onPressOut",longpress:"onLongPress",contextmenu:"onLongPress",input:"onChangeText",onchange:"onChange",change:"onValueChange","value-change":"onValueChange",valuechange:"onValueChange",focus:"onFocus",focusin:"onFocus",blur:"onBlur",focusout:"onBlur",submit:"onSubmitEditing","submit-editing":"onSubmitEditing",submitediting:"onSubmitEditing","end-editing":"onEndEditing",endediting:"onEndEditing",scroll:"onScroll","scroll-begin-drag":"onScrollBeginDrag",scrollbegindrag:"onScrollBeginDrag","scroll-end-drag":"onScrollEndDrag",scrollenddrag:"onScrollEndDrag","momentum-scroll-begin":"onMomentumScrollBegin",momentumscrollbegin:"onMomentumScrollBegin","momentum-scroll-end":"onMomentumScrollEnd",momentumscrollend:"onMomentumScrollEnd","page-selected":"onPageSelected",pageselected:"onPageSelected",refresh:"onRefresh",layout:"onLayout","end-reached":"onEndReached",endreached:"onEndReached",close:"onRequestClose","request-close":"onRequestClose",requestclose:"onRequestClose",show:"onShow",dismiss:"onDismiss","sliding-complete":"onSlidingComplete",slidingcomplete:"onSlidingComplete","load-start":"onLoadStart",loadstart:"onLoadStart",load:"onLoad","load-end":"onLoadEnd",loadend:"onLoadEnd",error:"onError",play:"onPlay",playing:"onPlay",pause:"onPause",ended:"onEnd",end:"onEnd",timeupdate:"onProgress",progress:"onProgress",loadedmetadata:"onLoad",enterpictureinpicture:"onPictureInPictureStart",leavepictureinpicture:"onPictureInPictureStop"};var Fe={svg:"Svg",g:"G",path:"Path",line:"Line",rect:"Rect",circle:"Circle",ellipse:"Ellipse",polyline:"Polyline",polygon:"Polygon",text:"SvgText",tspan:"SvgText",animate:"Animate"},ze=new Set(Object.values(Fe));var Ft=new Set(["defs","title","desc","metadata","style","symbol","use","clippath","mask","lineargradient","radialgradient","stop","pattern","marker","filter","foreignobject"]),zt=["viewBox","preserveAspectRatio","strokeWidth","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","fillOpacity","fillRule","vectorEffect","textAnchor","dominantBaseline","fontSize","fontWeight","attributeName","keyTimes","repeatCount"];function z(t){let e=typeof t==="number"?t:Number.parseFloat(String(t??""));return Number.isFinite(e)?e:0}function J(t){return Math.round(t*1000)/1000}function Xe(t){if(Array.isArray(t)&&t.length===4&&t.every((n)=>Number.isFinite(Number(n))))return t.map(Number);let e=String(t??"").trim().split(/[\s,]+/).map(Number);if(e.length!==4||e.some((n)=>!Number.isFinite(n))||e[2]<=0||e[3]<=0)return null;return e}function Nr(t){let e=String(t??"").trim().split(/[\s,]+/).filter(Boolean).map(Number).filter(Number.isFinite);return e.length%2?e.slice(0,-1):e}var jt=/[MLHVCSQTAZ]/i,je=/[+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?/gi;function kr(t){let e=[],n=t,r=jt.exec(n);while(r){let s=r.index;n=n.slice(s);let a=n[0];n=n.slice(1);let l=jt.exec(n),u=l?n.slice(0,l.index):n,d;if(a==="A"||a==="a"){d=[];let h=0,m=u.trim(),p=0;while(p<m.length){let y=h%7,S=m.slice(p).replace(/^[\s,]+/,"");if(p=m.length-S.length,!S)break;if(y===3||y===4)d.push(S[0]==="1"?1:0),p+=1;else{je.lastIndex=0;let b=je.exec(S);if(!b||b.index!==0)break;d.push(Number.parseFloat(b[0])),p+=b[0].length}h++}}else d=(u.match(je)||[]).map(Number.parseFloat);e.push({command:a,args:d}),r=l}return e}function Tr(t,e,n,r,s,a,l,u,d){if(t===u&&e===d)return[];let h=Math.abs(n),m=Math.abs(r);if(!h||!m)return[1,u,d];let p=s*Math.PI/180,y=Math.cos(p),S=Math.sin(p),b=(t-u)/2,f=(e-d)/2,c=y*b+S*f,x=-S*b+y*f,g=c*c/(h*h)+x*x/(m*m);if(g>1)h*=Math.sqrt(g),m*=Math.sqrt(g);let N=h*h*m*m-h*h*x*x-m*m*c*c,v=h*h*x*x+m*m*c*c,k=Math.sqrt(Math.max(0,N/v));if(a===l)k=-k;let w=k*(h*x)/m,_=k*-(m*c)/h,I=y*w-S*_+(t+u)/2,B=S*w+y*_+(e+d)/2,R=(L,W,F,q)=>{let Y=L*q-W*F<0?-1:1,G=(L*F+W*q)/(Math.hypot(L,W)*Math.hypot(F,q));return Y*Math.acos(Math.min(1,Math.max(-1,G)))},T=R(1,0,(c-w)/h,(x-_)/m),E=R((c-w)/h,(x-_)/m,(-c-w)/h,(-x-_)/m);if(!l&&E>0)E-=2*Math.PI;if(l&&E<0)E+=2*Math.PI;let P=Math.max(1,Math.ceil(Math.abs(E)/(Math.PI/2))),j=E/P,A=1.3333333333333333*Math.tan(j/4),M=[],X=(L)=>{let W=h*Math.cos(L),F=m*Math.sin(L);return[y*W-S*F+I,S*W+y*F+B]},C=(L)=>{let W=-h*Math.sin(L),F=m*Math.cos(L);return[y*W-S*F,S*W+y*F]},O=T;for(let L=0;L<P;L++){let W=O+j,[F,q]=X(O),[Y,G]=C(O),[it,st]=X(W),[mn,yn]=C(W);M.push(2,F+A*Y,q+A*G,it-A*mn,st-A*yn,L===P-1?u:it,L===P-1?d:st),O=W}return M}function Xt(t){let e=[],n=0,r=0,s=0,a=0,l=0,u=0,d=0,h=0,m="";for(let{command:p,args:y}of kr(String(t??""))){let S=p===p.toLowerCase(),b=p.toUpperCase(),f=()=>S?n:0,c=()=>S?r:0,x=0,g=(v)=>{if(x+v>y.length)return null;let k=y.slice(x,x+v);return x+=v,k};if(b==="Z"){e.push(4),n=s,r=a,m="Z";continue}let N=!0;while(x<y.length||N&&b==="Z"){switch(b){case"M":{let v=g(2);if(!v)return e;if(n=v[0]+f(),r=v[1]+c(),N)e.push(0,n,r),s=n,a=r;else e.push(1,n,r);m=N?"M":"L";break}case"L":{let v=g(2);if(!v)return e;n=v[0]+f(),r=v[1]+c(),e.push(1,n,r),m="L";break}case"H":{let v=g(1);if(!v)return e;n=v[0]+f(),e.push(1,n,r),m="L";break}case"V":{let v=g(1);if(!v)return e;r=v[0]+c(),e.push(1,n,r),m="L";break}case"C":{let v=g(6);if(!v)return e;let k=v[0]+f(),w=v[1]+c();l=v[2]+f(),u=v[3]+c(),n=v[4]+f(),r=v[5]+c(),e.push(2,k,w,l,u,n,r),m="C";break}case"S":{let v=g(4);if(!v)return e;let k=m==="C"?2*n-l:n,w=m==="C"?2*r-u:r;l=v[0]+f(),u=v[1]+c(),n=v[2]+f(),r=v[3]+c(),e.push(2,k,w,l,u,n,r),m="C";break}case"Q":{let v=g(4);if(!v)return e;d=v[0]+f(),h=v[1]+c(),n=v[2]+f(),r=v[3]+c(),e.push(3,d,h,n,r),m="Q";break}case"T":{let v=g(2);if(!v)return e;d=m==="Q"?2*n-d:n,h=m==="Q"?2*r-h:r,n=v[0]+f(),r=v[1]+c(),e.push(3,d,h,n,r),m="Q";break}case"A":{let v=g(7);if(!v)return e;let k=v[5]+f(),w=v[6]+c();e.push(...Tr(n,r,v[0],v[1],v[2],v[3],v[4],k,w)),n=k,r=w,m="A";break}default:return e}N=!1}}return e.map((p)=>J(p))}function Wt(t,e,n,r){if(n<=0||r<=0)return[];let s=0.5522847498;return[0,t+n,e,2,t+n,e+s*r,t+s*n,e+r,t,e+r,2,t-s*n,e+r,t-n,e+s*r,t-n,e,2,t-n,e-s*r,t-s*n,e-r,t,e-r,2,t+s*n,e-r,t+n,e-s*r,t+n,e,4].map(J)}function Ue(t,e){switch(t){case"Path":return Xt(String(e.d??""));case"Line":return[0,z(e.x1),z(e.y1),1,z(e.x2),z(e.y2)].map(J);case"Rect":{let n=z(e.x),r=z(e.y),s=z(e.width),a=z(e.height);if(s<=0||a<=0)return[];let l=e.rx===void 0?z(e.ry):z(e.rx),u=e.ry===void 0?l:z(e.ry);if(l=Math.min(Math.max(0,l),s/2),u=Math.min(Math.max(0,u),a/2),!l||!u)return[0,n,r,1,n+s,r,1,n+s,r+a,1,n,r+a,4].map(J);let d=0.5522847498;return[0,n+l,r,1,n+s-l,r,2,n+s-l+d*l,r,n+s,r+u-d*u,n+s,r+u,1,n+s,r+a-u,2,n+s,r+a-u+d*u,n+s-l+d*l,r+a,n+s-l,r+a,1,n+l,r+a,2,n+l-d*l,r+a,n,r+a-u+d*u,n,r+a-u,1,n,r+u,2,n,r+u-d*u,n+l-d*l,r,n+l,r,4].map(J)}case"Circle":return Wt(z(e.cx),z(e.cy),z(e.r),z(e.r));case"Ellipse":return Wt(z(e.cx),z(e.cy),z(e.rx),z(e.ry));case"Polyline":case"Polygon":{let n=Nr(e.points);if(n.length<4)return[];let r=[0,n[0],n[1]];for(let s=2;s<n.length;s+=2)r.push(1,n[s],n[s+1]);if(t==="Polygon")r.push(4);return r.map(J)}default:return null}}function Rr(t){let e=/^\s*(\d+(?:\.\d+)?|\.\d+)\s*(ms|s)?\s*$/.exec(String(t??""));if(!e)return null;let n=Number(e[1])/(e[2]==="ms"?1000:1);return n>0?n:null}function _r(t){if(t.attributeName!=="d")return null;let e=Rr(t.dur),n=String(t.values??"").split(";").map((u)=>u.trim()).filter(Boolean);if(e===null||n.length<2)return null;let r=n.map(Xt);if(r.some((u)=>!u.length))return null;let s=String(t.keyTimes??"").split(";").map((u)=>u.trim()).filter(Boolean).map(Number),l=s.length===r.length&&s[0]===0&&s[s.length-1]===1&&s.every((u,d)=>Number.isFinite(u)&&(d===0||u>=s[d-1]))?s.map(J):r.map((u,d)=>J(d/(r.length-1)));return{frames:r,frameTimes:l,duration:e}}function He(t){let e=_r(t),n={frames:e?.frames??null,frameTimes:e?.frameTimes??null,duration:e?.duration??null};for(let[r,s]of Object.entries(n))if(s===null)delete t[r];else t[r]=s;return n}var Ar=[...zt,"accessibilityHint","accessibilityLabel","accessibilityRole","accessibilityState","accessibilityValue","activeOpacity","alwaysBounceHorizontal","alwaysBounceVertical","animationType","autoCapitalize","autoComplete","autoCorrect","autoFocus","contentContainerStyle","currentTime","defaultSource","defaultValue","ellipsizeMode","hidesWhenStopped","hitSlop","imageStyle","initialNumToRender","ios_backgroundColor","keyboardDismissMode","keyboardShouldPersistTaps","keyboardType","keyboardVerticalOffset","keyExtractor","listRole","maxLength","mostRecentEventCount","maximumDate","maximumTrackTintColor","maximumValue","maxToRenderPerBatch","minimumDate","minimumTrackTintColor","minimumValue","minuteInterval","numberOfLines","numColumns","onEndReachedThreshold","pageIndex","pagingEnabled","passwordRules","placeholderTextColor","pointerEvents","presentationStyle","sheetDetents","selectedDetent","grabberVisible","tintColor","clearButtonMode","nonModal","dismissOnOutsideTap","pressRetentionOffset","progressBackgroundColor","progressViewOffset","refreshControl","resizeMode","returnKeyType","scrollEnabled","scrollTarget","secureTextEntry","selectedValue","selectionColor","showsHorizontalScrollIndicator","showsVerticalScrollIndicator","stickyHeaderIndices","testID","textContentType","thumbColor","thumbTintColor","titleColor","trackColor","underlayColor","windowSize","initialRegion","tileOverlay","edgePadding","fitToBounds","showsUserLocation","zoomEnabled","rotateEnabled","pitchEnabled","mapType","fillColor","strokeColor","pinColor","showsCompass","showsScale","cameraPitch","cameraHeading","autoScrollBottom","scrollKey","pictureInPicture","transitionID"],Ut=new Set(["alwaysBounceHorizontal","alwaysBounceVertical","animating","autoCorrect","autoFocus","autoplay","autoPlay","bounces","controls","disabled","editable","hidesWhenStopped","horizontal","loop","multiline","muted","pagingEnabled","paused","refreshing","scrollEnabled","secureTextEntry","selectTextOnFocus","showsHorizontalScrollIndicator","showsVerticalScrollIndicator","transparent","visible","nonModal","dismissOnOutsideTap","fitToBounds","showsUserLocation","zoomEnabled","rotateEnabled","pitchEnabled","showsCompass","showsScale","pictureInPicture","grabberVisible"]),Er=new Map(Ar.map((t)=>[Ht(t),t]));function Ht(t){return t.replace(/[-_]/g,"").toLowerCase()}function Ge(t,e){if((e==="Image"||e==="Video")&&t.toLowerCase()==="src")return"source";return Er.get(Ht(t))??t}var Ir={view:"View",sidebar:"Sidebar",splitview:"SplitView",textinput:"TextInput",pressable:"Pressable",icon:"Icon",text:"Text",button:"Button",image:"Image",img:"Image",video:"Video",map:"Map",mappolyline:"MapPolyline",mappolygon:"MapPolygon",mapmarker:"MapMarker",input:"TextInput",textarea:"TextInput",scroll:"ScrollView",scrollview:"ScrollView",list:"FlatList",flatlist:"FlatList",modal:"Modal",switch:"Switch",checkbox:"Checkbox",slider:"Slider",picker:"Picker",segmentedcontrol:"SegmentedControl",nativesegmentedcontrol:"SegmentedControl",select:"Picker",loading:"ActivityIndicator",spinner:"ActivityIndicator",div:"View",span:"Text",p:"Text",h1:"Text",h2:"Text",h3:"Text",h4:"Text",h5:"Text",h6:"Text",a:"TouchableOpacity",section:"View",article:"View",header:"SafeAreaView",footer:"View",main:"View",nav:"View",aside:"View",form:"View",label:"Text",fieldset:"View",legend:"Text",option:"Text",dialog:"Modal",figure:"View",figcaption:"Text",picture:"View",hr:"View",ul:"View",ol:"View",li:"View",dl:"View",dt:"Text",dd:"Text",table:"View",thead:"View",tbody:"View",tfoot:"View",tr:"View",th:"Text",td:"Text",caption:"Text",strong:"Text",b:"Text",em:"Text",i:"Text",u:"Text",s:"Text",small:"Text",mark:"Text",abbr:"Text",time:"Text",code:"Text",kbd:"Text",samp:"Text",pre:"Text",blockquote:"Text",cite:"Text",q:"Text",sub:"Text",sup:"Text"};function qt(t){return Ir[t.toLowerCase()]||t}var Cr={activity:"waveform.path.ecg","alarm-clock":"alarm","alert-circle":"exclamationmark.circle","alert-triangle":"exclamationmark.triangle",apple:"leaf",archive:"archivebox",armchair:"sofa","arrow-down":"arrow.down","arrow-left":"arrow.left","arrow-right":"arrow.right","arrow-up":"arrow.up","arrow-up-right":"arrow.up.right","at-sign":"at","audio-lines":"waveform",award:"rosette",backpack:"backpack","badge-check":"checkmark.seal","badge-x":"xmark.seal",ban:"nosign","bar-chart":"chart.bar","bar-chart-2":"chart.bar","bar-chart-3":"chart.bar",battery:"battery.100","battery-charging":"battery.100.bolt",bean:"leaf",bed:"bed.double",beef:"fork.knife",bell:"bell","bell-off":"bell.slash","bell-ring":"bell.and.waves.left.and.right",bike:"figure.outdoor.cycle",blocks:"square.grid.2x2",bluetooth:"antenna.radiowaves.left.and.right",book:"book","book-open":"book",bookmark:"bookmark",box:"shippingbox",brain:"brain",building:"building","building-2":"building.2",cable:"cable.connector","cake-slice":"birthday.cake",calendar:"calendar","calendar-check":"calendar.badge.checkmark","calendar-clock":"calendar.badge.clock","calendar-days":"calendar","calendar-minus":"calendar.badge.minus","calendar-minus-2":"calendar.badge.minus","calendar-off":"calendar.badge.exclamationmark","calendar-plus":"calendar.badge.plus","calendar-range":"calendar","calendar-sync":"arrow.triangle.2.circlepath","calendar-x":"calendar.badge.exclamationmark","calendar-x-2":"calendar.badge.exclamationmark",camera:"camera",carrot:"carrot","chart-bar":"chart.bar","chart-column":"chart.bar","chart-line":"chart.xyaxis.line","chart-no-axes-gantt":"chart.bar.doc.horizontal",check:"checkmark","check-circle":"checkmark.circle","check-circle-2":"checkmark.circle","chevron-down":"chevron.down","chevron-left":"chevron.left","chevron-right":"chevron.right","chevron-up":"chevron.up",circle:"circle","circle-alert":"exclamationmark.circle","circle-arrow-out-up-left":"arrow.uturn.backward.circle","circle-minus":"minus.circle","circle-arrow-down":"arrow.down.circle","circle-check":"checkmark.circle","circle-check-big":"checkmark.circle","circle-dot":"smallcircle.filled.circle","circle-help":"questionmark.circle","circle-play":"play.circle","circle-plus":"plus.circle","circle-user":"person.crop.circle","circle-x":"xmark.circle",clapperboard:"film",clipboard:"clipboard","clipboard-list":"list.clipboard",clock:"clock","clock-12":"clock","clock-2":"clock","clock-3":"clock","clock-4":"clock","clock-8":"clock","clock-alert":"clock.badge.exclamationmark",cloud:"cloud","cloud-off":"icloud.slash",coffee:"cup.and.saucer",cookie:"birthday.cake",copy:"doc.on.doc","credit-card":"creditcard","cup-soda":"takeoutbag.and.cup.and.straw",cylinder:"cylinder",disc:"opticaldisc",download:"arrow.down.circle",droplet:"drop",droplets:"drop",drumstick:"fork.knife",dumbbell:"dumbbell",edit:"pencil",egg:"frying.pan","external-link":"arrow.up.right.square",eye:"eye","eye-off":"eye.slash",file:"doc","file-text":"doc.text",filter:"line.3.horizontal.decrease",fish:"fish",flag:"flag",flame:"flame","flower-2":"camera.macro",footprints:"figure.run",gauge:"gauge",gift:"gift","glass-water":"waterbottle",globe:"globe","graduation-cap":"graduationcap","grip-vertical":"line.3.horizontal",hamburger:"takeoutbag.and.cup.and.straw","hand-fist":"hand.raised",heart:"heart","heart-off":"heart.slash","heart-pulse":"heart.text.square","help-circle":"questionmark.circle",history:"clock.arrow.circlepath",home:"house",hourglass:"hourglass",house:"house","id-card":"person.text.rectangle",image:"photo",inbox:"tray",info:"info.circle",layers:"square.3.layers.3d","layout-dashboard":"rectangle.3.group","layout-grid":"square.grid.2x2",leaf:"leaf",library:"books.vertical",link:"link",list:"list.bullet","list-checks":"checklist",loader:"arrow.triangle.2.circlepath","loader-2":"arrow.triangle.2.circlepath","loader-circle":"arrow.triangle.2.circlepath",lock:"lock","log-in":"arrow.right.to.line","log-out":"rectangle.portrait.and.arrow.right",mail:"envelope",map:"map","map-pin":"mappin.and.ellipse",medal:"medal",megaphone:"megaphone",menu:"line.3.horizontal","message-circle":"bubble.left","message-square":"text.bubble","message-square-quote":"quote.bubble","messages-square":"bubble.left.and.bubble.right",mic:"mic",milk:"waterbottle",minus:"minus",moon:"moon","more-horizontal":"ellipsis","more-vertical":"ellipsis",mountain:"mountain.2",music:"music.note","music-2":"music.note",nut:"leaf",package:"shippingbox",pause:"pause","pause-circle":"pause.circle",pencil:"pencil","person-standing":"figure.walk",phone:"phone",play:"play.fill",plug:"powerplug",plus:"plus","plus-circle":"plus.circle","rectangle-horizontal":"rectangle","refresh-cw":"arrow.clockwise",repeat:"repeat","rotate-ccw":"arrow.counterclockwise",route:"point.topleft.down.to.point.bottomright.curvepath",ruler:"ruler",sailboat:"sailboat",salad:"leaf",satellite:"antenna.radiowaves.left.and.right",save:"square.and.arrow.down",scale:"scalemass","scan-line":"barcode.viewfinder",search:"magnifyingglass",send:"paperplane",settings:"gearshape","settings-2":"slider.horizontal.3",share:"square.and.arrow.up","share-2":"square.and.arrow.up",shield:"shield","shield-check":"checkmark.shield","shopping-bag":"bag","shopping-cart":"cart",shuffle:"shuffle","skip-back":"backward.end","skip-forward":"forward.end",sliders:"slider.horizontal.3","sliders-horizontal":"slider.horizontal.3",smartphone:"iphone",snowflake:"snowflake",soup:"mug",sparkles:"sparkles",sprout:"leaf",square:"square",star:"star",stopwatch:"stopwatch",store:"storefront","stretch-horizontal":"rectangle.split.1x2",sun:"sun.max",sunrise:"sunrise",sunset:"sunset",tag:"tag",target:"scope",thermometer:"thermometer.medium","thumbs-up":"hand.thumbsup",timer:"timer",trash:"trash","trash-2":"trash","trending-down":"chart.line.downtrend.xyaxis","trending-up":"chart.line.uptrend.xyaxis","triangle-alert":"exclamationmark.triangle",trophy:"trophy",unlink:"personalhotspot.slash",upload:"arrow.up.circle",user:"person","user-check":"person.crop.circle.badge.checkmark","user-minus":"person.badge.minus","user-plus":"person.badge.plus","user-round":"person","user-round-check":"person.crop.circle.badge.checkmark","user-round-minus":"person.crop.circle.badge.minus","user-round-plus":"person.crop.circle.badge.plus","user-round-x":"person.crop.circle.badge.xmark","user-x":"person.crop.circle.badge.xmark",users:"person.2","users-round":"person.2",utensils:"fork.knife",video:"video","volume-2":"speaker.wave.2",warehouse:"building.2",watch:"applewatch",waves:"figure.pool.swim",weight:"scalemass",wheat:"laurel.leading",wifi:"wifi","wifi-off":"wifi.slash",wind:"wind",wine:"wineglass",x:"xmark","x-circle":"xmark.circle",zap:"bolt"};function ie(t,e=!1){let n=String(t??"").trim();if(!n)return{symbol:"circle",known:!1};if(e)return{symbol:n,known:!0};let r=/^i-([a-z0-9]+)-(.+)$/.exec(n)??/^([a-z0-9]+):(.+)$/.exec(n),s=r?r[1]:"lucide",a=r?r[2]:n;if(s==="lucide"){let l=Cr[a];if(l)return{symbol:l,iconify:`i-lucide-${a}`,known:!0};if(!r&&n.includes("."))return{symbol:n,known:!0}}return{symbol:"circle",iconify:r?n:`i-lucide-${a}`,known:!1}}function Ke(t){return t.split(/\s+/).find((e)=>/^i-[a-z0-9]+-[a-z0-9-]+$/.test(e))}import{generate as he,parse as Or}from"@stacksjs/ts-css/parse";var Pr=/^(?::hover|:active|:visited|:focus|:focus-visible|:focus-within)$/;function Mr(t){let e=t.replace(/\s+/g,"").toLowerCase();if(!e||e==="all"||e==="screen")return{};if(/^(?:screenand)?\(prefers-color-scheme:dark\)$/.test(e))return{dark:!0};if(/^(?:screenand)?\(prefers-color-scheme:light\)$/.test(e))return{};if(/prefers-reduced-motion|\(hover|\(pointer|print|forced-colors|prefers-contrast/.test(e))return"skip";let n=e.replace(/^screenand/,"").split("and"),r={};for(let s of n){let a=/^\((min|max)-width:([\d.]+)(px|rem|em)\)$/.exec(s);if(!a)return;r[a[1]]=Number(a[2])*(a[3]==="px"?1:16)}return r}async function Gt(t,e){let n={},r=new Set,s=(h)=>{if(r.has(h))return;r.add(h),e(h,[...h.matchAll(/\.(-?[a-z_][\w-]*)/gi)].map((m)=>m[1]))},a=(h,m,p)=>{if(!m.trim())return;let y=n[h]??={},S=p.dark?"dark":"light";if(p.min===void 0&&p.max===void 0){y[S]=y[S]?`${y[S]};${m}`:m;return}let b=y.responsive??=[],f=p.min??0,c=b.find((x)=>x.min===f&&x.max===p.max);if(!c)b.push(c={min:f,...p.max===void 0?{}:{max:p.max}});c[S]=c[S]?`${c[S]};${m}`:m};function l(h,m){for(let p of h){if(p.type==="Atrule"){let b=p.name.toLowerCase();if(["font-face","keyframes","-webkit-keyframes","import","charset","property","page","layer"].includes(b)){if(b==="layer"&&p.block)l(p.block.children,m);continue}if(b!=="media"||!p.block){s(`@${b}`);continue}let f=p.prelude?he(p.prelude):"",c=Mr(f);if(c==="skip")continue;if(!c){s(`@media ${f}`);continue}l(p.block.children,{dark:m.dark||c.dark,min:c.min??m.min,max:c.max??m.max});continue}if(p.type!=="Rule"||p.block.type!=="Block")continue;let y=[...p.block.children].filter((b)=>b.type==="Declaration").map((b)=>he(b)).join(";"),S=p.prelude.type==="SelectorList"?[...p.prelude.children].map(he):[he(p.prelude)];for(let b of S){let f=/^(?:(?:html|:root)?\.dark\s+)?((?:\.-?[a-z_][\w-]*)+)((?::{1,2}[a-z-]+)*)$/i.exec(b.trim());if(!f){if(!/^(?:html|:root|body|\*|::?[a-z-]+)/i.test(b.trim()))s(b.trim());continue}let c=f[2];if(c){if(!Pr.test(c))s(b.trim());continue}let x=m.dark||/^(?:(?:html|:root)?\.dark\s+)/i.test(b.trim());a(f[1].slice(1),y,{dark:x,min:m.min,max:m.max})}}}let u="",d=!0;await new HTMLRewriter().on("style",{element(h){u="";let m=h.getAttribute("type");d=!m||m.toLowerCase()==="text/css",h.onEndTag(()=>{if(!d)return;try{let p=Or(u);if(p.type==="StyleSheet")l(p.children,{})}catch{s("invalid stylesheet")}})},text(h){u+=h.text}}).transform(new Response(t)).text();for(let h of Object.values(n))h.responsive?.sort((m,p)=>m.min-p.min||(m.max??1/0)-(p.max??1/0));return n}import{generate as se,parse as Kt}from"@stacksjs/ts-css/parse";async function Jt(t,e){let n={light:new Map,dark:new Map},r=new Set,s=(p)=>{if(!r.has(p))r.add(p),e(p)},a=(p,y,S)=>{for(let b of S){let f=n[b].get(p);if(!f||Number(y.important)>Number(f.important)||y.important===f.important&&y.specificity>=f.specificity)n[b].set(p,y)}},l=(p)=>{if(p.type==="Declaration")return p.property.startsWith("--");if(p.type==="Rule"||p.type==="Atrule")return!!p.block&&[...p.block.children].some(l);return!1},u=(p)=>{let y=p.replace(/\s+/g,"").toLowerCase();if(!y||y==="all"||y==="screen")return["light","dark"];let S=/^(?:screenand)?\(prefers-color-scheme:(light|dark)\)$/.exec(y);return S?[S[1]]:void 0};function d(p,y){for(let S of p){if(!l(S))continue;if(S.type==="Atrule"){let f=S.prelude?se(S.prelude):"",c=S.name.toLowerCase()==="media"?u(f):void 0;if(!c){s(`@${S.name} ${f}`.trim());continue}d(S.block.children,y.filter((x)=>c.includes(x)));continue}if(S.type!=="Rule")continue;let b=S.prelude.type==="SelectorList"?[...S.prelude.children].map(se):[se(S.prelude)];for(let f of b){let c=/^(html|:root)?(?:\.(dark|light))?$/.exec(f.trim());if(!c||!c[1]&&!c[2]){s(f);continue}let x=(c[1]===":root"?10:c[1]?1:0)+(c[2]?10:0);for(let g of S.block.children){if(g.type!=="Declaration"){if(l(g))s(`nested rule in ${f}`);continue}if(!g.property.startsWith("--"))continue;let N={value:se(g.value),important:!!g.important,specificity:x};a(g.property,N,y.filter((v)=>!c[2]||c[2]===v))}}}}let h="",m;return await new HTMLRewriter().on("html",{element(p){let y=p.getAttribute("style");if(!y)return;try{let S=Kt(y,{context:"declarationList"});if(S.type!=="DeclarationList")return;for(let b of S.children)if(b.type==="Declaration"&&b.property.startsWith("--"))a(b.property,{value:se(b.value),important:!!b.important,specificity:1000},["light","dark"])}catch{s("invalid document inline theme")}}}).on("style",{element(p){h="";let y=p.getAttribute("type");m=!y||y.toLowerCase()==="text/css"?u(p.getAttribute("media")??""):void 0,p.onEndTag(()=>{try{let S=Kt(h);if(S.type!=="StyleSheet")return;if(!m){if([...S.children].some(l))s("style type/media");return}d(S.children,m)}catch{s("invalid stylesheet")}})},text(p){h+=p.text}}).transform(new Response(t)).text(),{light:[...n.light].map(([p,y])=>[p,y.value]),dark:[...n.dark].map(([p,y])=>[p,y.value])}}function H(t,e={},n={},r={},s=[]){return{type:t,props:e,style:n,events:r,children:s}}function Yt(t,e,n={}){return{version:"1.0.0",root:t,script:e,meta:{source:n.source||"unknown",compiledAt:n.compiledAt||Date.now(),headwindConfig:n.headwindConfig}}}var Br=/^(?:key(?:down|up|press)|mouse[a-z]+|pointer[a-z]+|dbl(?:click)?|contextmenu|wheel|drag[a-z]*|drop|copy|cut|paste|beforeinput|compositionstart|compositionupdate|compositionend|animation[a-z]+|transition[a-z]+|resize|hashchange|popstate|beforeunload|unload|visibilitychange|selectionchange|selectstart|auxclick)$/,Qt=new Set(["script","style","head","meta","link","title","base","noscript"]),Zt=new Set(["template","body","html","main","fragment"]),ye=new Set,Lr=new Set(["onBlur","onChange","onChangeText","onDismiss","onEnd","onEndEditing","onEndReached","onError","onFocus","onPageSelected","onLayout","onLoad","onLoadEnd","onLoadStart","onLongPress","onMomentumScrollBegin","onMomentumScrollEnd","onPause","onPictureInPictureStart","onPictureInPictureStop","onPlay","onPress","onPressIn","onPressOut","onProgress","onRequestClose","onRegionChangeComplete","onRefresh","onScroll","onScrollBeginDrag","onScrollEndDrag","onShow","onSlidingComplete","onSubmitEditing","onValueChange"]),be=new Set(["Sidebar","SplitView","View","ScrollView","SafeAreaView","KeyboardAvoidingView","Text","TextInput","Button","Link","TouchableOpacity","TouchableHighlight","Pressable","Icon","Image","ImageBackground","Video","Map","MapPolyline","MapPolygon","MapMarker","FlatList","SectionList","Switch","Checkbox","Slider","Picker","SegmentedControl","DatePicker","Modal","ActivityIndicator","StatusBar","RefreshControl",...ze]),Dr=new Map([["data","data"],["sections","sections"],["renderitem","renderItem"],["rendersectionheader","renderSectionHeader"],["keyextractor","keyExtractor"]]),en=new Set(["View","SafeAreaView","ScrollView","KeyboardAvoidingView"]),$r={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:" ","#39":"'","#x27":"'"};function Z(t){return t.replace(/&(#x?[0-9a-f]+|\w+);/gi,(e,n)=>{let r=$r[n.toLowerCase()];if(r!==void 0)return r;if(n[0]==="#"){let s=n[1]==="x"||n[1]==="X"?Number.parseInt(n.slice(2),16):Number.parseInt(n.slice(1),10);return Number.isFinite(s)?String.fromCodePoint(s):e}return e})}function Je(t){if(!t.includes("{{"))return null;let e=[],n=0;for(let r of t.matchAll(/\{\{([\s\S]+?)\}\}/g)){if(r.index>n)e.push(JSON.stringify(t.slice(n,r.index)));e.push(`(${r[1].trim()})`),n=r.index+r[0].length}if(!e.some((r)=>r.startsWith("(")))return null;if(n<t.length)e.push(JSON.stringify(t.slice(n)));if(e.length===1)return e[0].slice(1,-1);return`[${e.join(", ")}].map(__stxPart => __stxPart == null ? '' : __stxPart).join('')`}function nn(t,e,n,r={}){let s=r.inheritedVariables,a={},l={},u={},d=[],h="",m={};for(let[b,f]of e){let c=b.toLowerCase();if(c==="class"||c==="classname"){h=h?`${h} ${f}`:f;continue}if(c==="style"){m={...m,...Vr(t,f,n,{...r,onVariables(v){s=v,r.onVariables?.(v)}})};continue}if(c.startsWith(":")||c.startsWith("x-")&&c!=="x-cloak"){u[c.startsWith(":")?c.slice(1):c.slice(2)]=Z(f);continue}if(c==="x-cloak")continue;if(c.startsWith("@")||c.startsWith("v-on:")){let v=c.startsWith("@")?c.slice(1):c.slice(5),[k]=v.split("."),w=Ve[k]??(k.startsWith("on")?k:"");if(!w||!Lr.has(w)){if(Br.test(k)||/\./.test(v))n.push({kind:"unread-event",tag:t,name:b});continue}l[w]=Z(f);continue}if(c==="key"){a.key=f;continue}let x=Z(f),g=Je(x);if(g){u[c]=g,d.push(c);continue}let N=Ge(b);if(x===""&&Ut.has(N)){a[N]=!0;continue}try{a[N]=JSON.parse(x)}catch{a[N]=x}}let p=a["data-native"]?a["data-native"]==="TextInput":t==="textarea"||t==="input"&&!["checkbox","radio","hidden"].includes(String(a.type??"text").toLowerCase()),y=h?ge(h,s,{focus:p,focusWithin:!0,rules:r.rules}):void 0;for(let b of new Set(y?.unknown??[]))n.push({kind:"unknown-class",tag:t,name:b});let S=Oe({...y?.style,...m});return{props:a,style:S,events:l,bindings:u,classes:h,inline:m,templated:d}}function Vr(t,e,n,r){return de(Z(e),(s)=>n.push({...s,tag:t}),r)}function Ye(t){return t.children.map((e)=>typeof e==="string"?e:Ye(e)).join("").replace(/\s+/g," ").trim()}function jr(t,e){let n=t.node;if(n.props["data-stx-native-template"])return n.children=n.children.map((a)=>typeof a==="string"?H("Text",{},{},{},[a]):a),n;let r=n.children.filter((a)=>typeof a!=="string"),s=n.children.filter((a)=>typeof a==="string").join("").trim();if(t.tag==="button"&&n.type==="Button"&&!t.declaredNative&&r.length>0)return n.type="Pressable",n.props.role??="button",n.children=n.children.flatMap((a)=>typeof a==="string"?a.trim()?[H("Text",{},{},{},[a.trim()])]:[]:[a]),n;if(n.type==="Button"&&r.length===0)return n.children=s?[s]:[],n;if(n.type==="Svg"||n.type==="G")return n.children=r,n;if(n.type==="SvgText"){let a=Ye(n);return n.children=a?[a]:[],n}if(en.has(n.type)&&r.length===0&&s)return n.type="Text",n.children=[s],n;if(n.type==="Text"&&!s&&r.length===0&&typeof n.props.text==="string")return n.children=n.props.text?[n.props.text]:[],delete n.props.text,n;if(n.type==="Text"&&r.length>0){if(/(?:^|\s)(?:inline-)?(?:flex|grid)(?:\s|$)/.test(n._classes??"")||r.some((u)=>u.type!=="Text"))return n.type="View",n.children=n.children.map((u)=>typeof u==="string"?H("Text",{},{},{},[u]):u),n;let l=Ye(n);return e.push({kind:"flattened-text",tag:t.tag}),n.children=l?[l]:[],n}if(en.has(n.type)&&r.length>0)n.children=r;return n}async function Wr(t,e={}){t=await oe(t);let n=[],r=await Jt(t,(c)=>n.push({kind:"unsupported-theme-rule",tag:"style",name:c})),s=re(r.light).computed(),a=new Set([...t.matchAll(/\sclass(?:name)?\s*=\s*"([^"]*)"/gi)].flatMap((c)=>c[1].split(/\s+/))),l=await Gt(t,(c,x)=>{if(!x.length||x.some((g)=>a.has(g)))n.push({kind:"unsupported-style-rule",tag:"style",name:c})}),u=[],d=[],h=new Set;function m(c){let x=d[d.length-1];if(!x)u.push(c);else if(!x.dropped)x.node.children.push(c)}function p(c){let x=(N)=>{if(c.tag!=="html"&&c.node._styleSource)N._styleAncestors=[c.node._styleSource,...N._styleAncestors??[]]};if(c.node.bindings&&Object.keys(c.node.bindings).length>0){let N=c.node.children,v=N.filter((w)=>typeof w!=="string"),k=v.length===1&&v.length===N.length?v[0]:H("View",{},{},{},N);if(k.bindings={...c.node.bindings,...k.bindings},k.bindingId===void 0&&c.node.bindingId!==void 0)k.bindingId=c.node.bindingId;x(k),m(k);return}let g=d[d.length-1];for(let N of c.node.children){if(typeof N==="string"){if(g&&!g.dropped)g.node.children.push(N);continue}if(x(N),!g)u.push(N);else if(!g.dropped)g.node.children.push(N)}}function y(c,x){let g=d[d.length-1];if(c==="svg"||g?.svg)return S(c,x,g);let N=Qt.has(c)&&!ye.has(c),v=d[d.length-1]?.dropped??!1,k=g?.variables??s,{props:w,style:_,events:I,bindings:B,classes:R,inline:T,templated:E}=N||v?{props:{},style:{},events:{},bindings:{},classes:"",inline:{},templated:[]}:nn(c,x,n,{inheritedVariables:k,onVariables:(C)=>{k=C},rules:l});if(c==="html")k=s;let P=w["data-native"],j=c==="template"&&x.some(([C])=>[":for","x-for","@for"].includes(C)),A;if(j)A="View",w["data-stx-native-template"]=!0;else if(typeof P==="string"&&be.has(P))A=P,delete w["data-native"];else{if(A=ye.has(c)?"View":qt(c),(c==="i"||c==="span")&&/(?:^|\s)i-[a-z0-9]+-[a-z0-9-]+(?:\s|$)/.test(R))A="Icon";else if(c==="i"&&x.some(([C])=>/^(?::|x-)class$/i.test(C)))A="Icon";if(c==="input"){let C=String(w.type??"text").toLowerCase();if(C==="checkbox")A="Checkbox",w.formValue=w.value??"on",w.checked=w.checked===""||w.checked===!0||w.checked==="true",w.value=w.checked;else if(C==="hidden")A="View",_.display="none",T.display="none";else if(C==="radio")A="View",w.accessibilityRole="radio",n.push({kind:"unsupported-control",tag:c,name:"input:radio"})}}if(!v&&A===c&&!be.has(A)&&!Qt.has(c)&&!Zt.has(c)&&!h.has(c))h.add(c),n.push({kind:"unmapped-tag",tag:c});if((N||ye.has(c))&&!h.has(`drop:${c}`))h.add(`drop:${c}`),n.push({kind:"dropped-subtree",tag:c});if(A==="View"&&/(?:^|\s)overflow-x-(?:auto|scroll)(?:\s|$)/.test(R))A="ScrollView",w.horizontal=!0,w.showsHorizontalScrollIndicator??=!1;else if(A==="View"&&/(?:^|\s)overflow-y-(?:auto|scroll)(?:\s|$)/.test(R))A="ScrollView";if(c==="form")w["data-stx-form"]=!0;if(c==="button"&&w.type===void 0)w.type="submit";if((A==="Video"||A==="Image")&&w.source===void 0&&w.src!==void 0)w.source=w.src,delete w.src;if(A==="Icon"){let C=ge(R).icon,O=ie(String(w.symbol||w.name||C||""),Boolean(w.symbol));if(w.symbol=O.symbol,O.iconify)w.iconify=O.iconify}if(A==="FlatList"||A==="SectionList"){let C=new Set([...Object.keys(w),...Object.keys(B)].map((O)=>O.toLowerCase()));for(let[O,L]of Dr)if(C.has(O))n.push({kind:"unsupported-list-prop",tag:A,name:L})}let M=H(A,w,_,I);M._inlineStyle=T,M._styleSource=Z(x.find(([C])=>C==="style")?.[1]??"");let X=w["data-stx-b"];if(typeof X==="number"&&Number.isInteger(X))M.bindingId=X;if(delete w["data-stx-b"],R)M._classes=R;if(Object.keys(B).length>0)M.bindings=B;if(E.length>0)M._templated=E;if(typeof w.key==="string")M.key=w.key,delete w.key;return{tag:c,node:M,variables:k,declaredNative:typeof P==="string"&&be.has(P),dropped:N||v||ye.has(c)||A==="Video",discard:N||v,unwrap:Zt.has(c)&&!j&&A!=="ScrollView"&&!(typeof P==="string"&&be.has(P))}}function S(c,x,g){let N=g?.dropped??!1,v=Fe[c];if(N||!v){if(!N&&!h.has(`drop:${c}`))h.add(`drop:${c}`),n.push({kind:Ft.has(c)?"dropped-subtree":"unmapped-tag",tag:c});return{tag:c,node:H("G",{},{},{}),svg:!0,dropped:!0,discard:!0,unwrap:!1}}let k=g?.variables??s,{props:w,style:_,events:I,bindings:B,classes:R,inline:T,templated:E}=nn(c,x,n,{inheritedVariables:k,onVariables:(M)=>{k=M},rules:l});if(v==="Svg"){let M=Xe(w.viewBox);if(M)w.viewBox=M;else delete w.viewBox;for(let X of["width","height"]){if(typeof w[X]==="number"&&_[X]===void 0)_[X]=w[X];delete w[X]}}if(typeof w.strokeDasharray==="string"||typeof w.strokeDasharray==="number"){let M=String(w.strokeDasharray).split(/[\s,]+/).map(Number).filter(Number.isFinite);w.strokeDasharray=M}let P=Ue(v,w);if(P)w.geometry=P;if(v==="Animate")He(w);let j=H(v,w,_,I);j._inlineStyle=T,j._styleSource=Z(x.find(([M])=>M==="style")?.[1]??"");let A=w["data-stx-b"];if(typeof A==="number"&&Number.isInteger(A))j.bindingId=A;if(delete w["data-stx-b"],R)j._classes=R;if(Object.keys(B).length>0)j.bindings=B;if(E.length>0)j._templated=E;if(typeof w.key==="string")j.key=w.key,delete w.key;return{tag:c,node:j,variables:k,svg:!0,dropped:!1,discard:!1,unwrap:!1}}if(await new HTMLRewriter().on("*",{element(c){let x=c.tagName.toLowerCase(),g=y(x,[...c.attributes]),N=!0;try{c.onEndTag(()=>{if(d.pop(),g.discard)return;if(g.unwrap)p(g);else m(jr(g,n))})}catch{N=!1}if(N)d.push(g);else if(!g.discard)m(g.node)},text(c){let x=d[d.length-1];if(!x||x.dropped)return;let g=Fr(Z(c.text),x.inMustache===!0);x.inMustache=g.inside;let N=g.text;if(!N.trim())return;x.node.children.push(N)}}).transform(new Response(t)).text(),u.length===0)throw Error(`No element to translate in the rendered output of ${e.source??"unknown"}`);let b=u.length===1?u[0]:H("View",{},{},{},u);if(r.light.length||r.dark.length)b._stylesheetTheme=r;if(Object.keys(l).length)b._stylesheetRules=l;let f=(c)=>{zr(c);let x=De(c.props);if(Object.keys(x).length)c._accessibilitySource=Object.fromEntries(Le.filter((g)=>(g in c.props)).map((g)=>[g,c.props[g]])),Object.assign(c.props,x);Vt(c);for(let g of c.children)if(typeof g!=="string")f(g)};return f(b),{root:b,diagnostics:n}}function Fr(t,e){let n="",r=0;while(r<t.length){if(!e&&t.startsWith("{{",r)){e=!0,n+="{{",r+=2;continue}if(e&&t.startsWith("}}",r)){e=!1,n+="}}",r+=2;continue}let s=t[r];if(!e&&/\s/.test(s)){if(!n.endsWith(" "))n+=" ";while(r<t.length&&/\s/.test(t[r]))r++;continue}n+=s,r++}return{text:n,inside:e}}function zr(t){if(t.props["data-stx-native-template"])return;if(t.bindings?.text||t.children.length===0)return;let e=t.children.filter((r)=>typeof r==="string");if(e.length<t.children.length){let r=t.type==="Button"||t.type==="Text"?null:Je(e.join(""));if(!r)return;t.bindings={...t.bindings,text:r},t._templated=[...t._templated??[],"text"],t.children=t.children.filter((s)=>typeof s!=="string");return}let n=Je(t.children.join(""));if(!n)return;if(t.type!=="Button")t.bindings={...t.bindings,text:n},t._templated=[...t._templated??[],"text"],t.children=[];else{t.type="Pressable",t.props.role??="button";let r=H("Text",{},{},{},[]);r.bindings={text:n},r._templated=["text"],t.children=[r]}}async function rn(t,e={}){let{root:n,diagnostics:r}=await Wr(t,e),s=e.script??{exports:{},functions:[],code:""};return{document:Yt(n,s,{source:e.source??"unknown"}),diagnostics:r}}async function oe(t){if(!/\bdata-native-exclude\b/i.test(t))return t;return new HTMLRewriter().on("[data-native-exclude]",{element(e){e.remove()}}).transform(new Response(t)).text()}var sn=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,Xr=/(?:^|\n)\s*(?:export\s+)?(?:async\s+)?function\s*\*?\s*([$\w]+)\s*\(/g,Ur=/(?:^|\n)\s*(?:export\s+)?(?:const|let|var)\s+([$\w]+)\s*=\s*(?:async\s*)?(?:\([^)]*\)|[$\w]+)\s*=>/g,on=/(?:^|\n)\s*(?:export\s+)?const\s+([$\w]+)\s*=\s*(-?[\d.]+|true|false|'[^']*'|"[^"]*")\s*(?=;|\n|$)/g;function Qe(t){let e=[];sn.lastIndex=0;for(let a of t.matchAll(sn)){let l=a[1]??"";if(/\bserver\b/.test(l))continue;e.push(a[2].trim())}let n=e.filter(Boolean).join(`
|
|
2
|
+
import"./chunk-qwdcts9w.js";import{Ts,Yo,yc}from"./chunk-78yjmbbs.js";import"./chunk-6beg47t4.js";import"./chunk-z35ftpqp.js";import"./chunk-9wdd7eq6.js";import"./chunk-sqh3tvtw.js";import"./chunk-dera8fmc.js";import"./chunk-f26n6y9p.js";import{i}from"./chunk-245sas8r.js";import"./chunk-y34tyrpb.js";import"./chunk-q3gactm1.js";import"./chunk-be2rswkw.js";import{mt,We,me,tn,Re,Wn,qn,qe}from"./chunk-551s7ha0.js";import{o}from"./chunk-krcd3039.js";import"./chunk-ehzd1yc6.js";import"./chunk-304dbbsw.js";import{qr}from"./chunk-n94ts3t9.js";import"./chunk-j60jye3e.js";import"./chunk-078qg8r5.js";import{ft}from"./chunk-tmqrbs98.js";import"./chunk-374nhgyf.js";import"./chunk-qbzqary0.js";import{Xs}from"./chunk-707sx5sk.js";import"./chunk-xnx06qqt.js";import"./chunk-5v7vm8cv.js";import"./chunk-dxh45gve.js";import"./chunk-d4ch6exz.js";import{existsSync as xe,mkdirSync as gi,readFileSync as hi}from"fs";import U from"path";import{existsSync as nt,mkdirSync as fn,realpathSync as ri,rmSync as pn}from"fs";import D from"path";import{existsSync as Jr}from"fs";import K from"path";var bn="data-stx-b",ot=new Set(Yo),vn=new Set(Ts);function ke(t){if(t==="ref"||t==="data-stx-ref")return"ref";if(t.startsWith("::"))return null;if(t.startsWith("@bind:")||t.startsWith("x-bind:"))return"attr";if(t.startsWith("@")||t.startsWith(":")){let e=t.slice(1).split(".")[0];if(ot.has(e))return e==="if"?"if":e;if(e==="for"||e==="else"||e==="else-if"||e==="elseif")return"for";if(yc(e))return"event";if(t.startsWith("@"))return"event";return"attr"}if(t.startsWith("x-")){let e=t.split(".")[0];if(!vn.has(e))return"attr";let n=e.slice(2);if(n==="cloak"||n==="data"||n==="bind")return null;if(n==="tooltip"||n==="tooltip-position")return null;return ot.has(n)?n==="if"?"if":n:"attr"}return null}function Sn(t){let e=[];for(let[n,r]of t){let s=ke(n);if(s)e.push({name:n,value:r,kind:s})}return e}var wn=/<([a-z][\w-]*)((?:\s+[^\s"'=<>/]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s"'=<>`]+))?)*)\s*\/?>/gi,Ne=/([^\s"'=<>/]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'=<>`]+)))?/g;function at(t){let e=[],n=0;return{html:t.replace(wn,(s,a,l)=>{if(!l||!/[:@]|x-/.test(l))return s;let u=[];Ne.lastIndex=0;for(let y=Ne.exec(l);y;y=Ne.exec(l))u.push([y[1],y[2]??y[3]??y[4]??""]);let d=Sn(u);if(!d.length)return s;let h={id:n++,bindings:d};if(d.some((y)=>y.kind==="for"))h.template=!0;e.push(h);let m=s.endsWith("/>");return`${s.slice(0,m?-2:-1).trimEnd()} ${bn}="${h.id}"${m?"/>":">"}`}),manifest:{entries:e}}}import ur from"path";function ce(t){let e=t&&/^(\d+(?:\.\d+)?|\.\d+)(px|rem)?$/.exec(t.trim());if(!e)return;let n=Number(e[1])*(e[2]==="rem"?16:1);return Number.isFinite(n)?n:void 0}function Te(t,e){if(!me[t])return;return ce(e?.get(tn(t))??me[t].value)}function _e(t,e){let n=Wn[t];if(!n)return;return ce(e?.get(qe(n))??Re[n]?.value)}function Ae(t,e){let n=qn[t];if(!n)return;let r=ce(e?.get(qe(n.size))??Re[n.size]?.value),s=ce(e?.get(qe(n.leading))??Re[n.leading]?.value);if(r===void 0||s===void 0)return;return{fontSize:r,lineHeight:s}}var xn={sm:640,md:768,lg:1024,xl:1280,"2xl":1536},dt=Ie({}),ct,lt=null;function le(){let t=globalThis.__stxNativeStyleConfig;if(!t)return dt;if(t!==ct)ct=t,lt=Ie(t);return lt}function pt(t,e=new Map,n=""){for(let[r,s]of Object.entries(t??{})){let a=r==="DEFAULT"?n.replace(/-$/,""):`${n}${r}`;if(typeof s==="string")e.set(a,s);else if(s&&typeof s==="object")pt(s,e,`${a}-`)}return e}function gt(t){let e={};for(let[n,r]of Object.entries(t??{})){let s=typeof r==="number"?r:Number.parseFloat(String(r));if(Number.isFinite(s))e[n]=s}return e}function Ie(t){return{shortcuts:new Map(Object.entries(t.shortcuts??{}).filter(([,e])=>typeof e==="string")),colors:pt(t.colors),fontFamily:new Map(Object.entries(t.fontFamily??{}).map(([e,n])=>[e,Array.isArray(n)?n.join(", "):n])),breakpoints:new Map(Object.entries({...xn,...gt(t.breakpoints)}))}}var Ee={};function ut(t){Ee=t??{},dt=Ie(Ee)}async function ht(t,e){let n=Ee;ut(t);try{return await e()}finally{ut(n)}}function yt(t){if(!t)return{};let e=t.theme??{},n=Object.fromEntries(Object.entries(t.shortcuts??{}).filter(([,r])=>typeof r==="string"));return{...Object.keys(n).length?{shortcuts:n}:{},...e.fontFamily?{fontFamily:JSON.parse(JSON.stringify(e.fontFamily))}:{},...e.colors?{colors:JSON.parse(JSON.stringify(e.colors))}:{},...e.screens?{breakpoints:gt(e.screens)}:{}}}function bt(t){return le().shortcuts.get(t)}function vt(t){return le().colors.get(t)}function Ce(t){return le().breakpoints.get(t)}function ue(t){return le().fontFamily.get(t)}var wt=/^--[\w\u0080-\uFFFF-]+$/u;function St(t,e){if(!/var\(/i.test(t))return t;let n="",r="",s=!1;for(let a=0;a<t.length;a++){let l=t[a];if(l==="\\"){n+=t.slice(a,a+2),a++;continue}if(r){if(n+=l,l===r)r="";continue}if(l==='"'||l==="'"){r=l,n+=l;continue}if(t.slice(a,a+4).toLowerCase()!=="var("||a>0&&/[\w-]/.test(t[a-1])){n+=l;continue}let u=1,d=-1,h="",m=a+4;for(;m<t.length;m++){let S=t[m];if(S==="\\"){m++;continue}if(h){if(S===h)h="";continue}if(S==='"'||S==="'"){h=S;continue}if(S==="(")u++;if(S===")"&&--u===0)break;if(S===","&&u===1&&d===-1)d=m}if(u!==0)return;let p=t.slice(a+4,d===-1?m:d).trim();if(!wt.test(p))return;let y=e(p,d===-1?void 0:t.slice(d+1,m).trim());if(y===void 0||n.length+y.length>65536)return;n+=y,s=!0,a=m}return s&&n.length>65536?void 0:n}function re(t,e){let n=new Map,r=new Set;for(let[f,c]of t){let x=f.trim();if(!wt.test(x))continue;if(typeof c==="string"||typeof c==="number"&&Number.isFinite(c))n.set(x,String(c).trim())}let s=new Map,a=new Set;for(let[f,c]of n){let x=new Set,g=(N,v=0)=>v>64?void 0:St(N,(k,w)=>(x.add(k),w===void 0?"":g(w,v+1)));if(g(c)===void 0)a.add(f);s.set(f,x)}let l=new Map,u=new Map,d=[],h=new Set,m=0;function p(f,c=0){if(c>64){a.add(f);return}l.set(f,m),u.set(f,m++),d.push(f),h.add(f);for(let N of s.get(f)??[]){if(!n.has(N))continue;if(!l.has(N)){if(p(N,c+1),u.has(N))u.set(f,Math.min(u.get(f),u.get(N)))}else if(h.has(N))u.set(f,Math.min(u.get(f),l.get(N)))}if(u.get(f)!==l.get(f))return;let x=[],g;do g=d.pop(),h.delete(g),x.push(g);while(g!==f);if(x.length>1||s.get(f)?.has(f))x.forEach((N)=>a.add(N))}for(let f of n.keys())if(!l.has(f))p(f);let y=new Map;function S(f,c){if(r.add(f),y.has(f))return y.get(f);let x=n.get(f),g=x===void 0||/^(?:inherit|unset)$/i.test(x)?e?.get(f):a.has(f)||/^(?:initial|revert|revert-layer)$/i.test(x)?void 0:b(x,c+1);return y.set(f,g),g}function b(f,c=0){if(c>64)return;return St(f,(x,g)=>S(x,c)??(g===void 0?void 0:b(g,c+1)))}return{resolve:b,used:r,computed(){let f=new Map(e);for(let c of n.keys())f.set(c,S(c,0));return f}}}function Oe(t){if(t.display==="flex"&&t.flexDirection==null)return{...t,flexDirection:"row"};return t}var xt=new Set(["display","gridColumns","gridTemplateColumns","gridTemplateRows","gridAutoRows","flex","flexGrow","flexShrink","flexBasis","flexDirection","flexWrap","order","justifyContent","alignItems","alignSelf","alignContent","position","top","right","bottom","left","zIndex","width","height","minWidth","maxWidth","minHeight","maxHeight","aspectRatio","margin","marginTop","marginRight","marginBottom","marginLeft","marginHorizontal","marginVertical","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingHorizontal","paddingVertical","gap","rowGap","columnGap","borderWidth","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","borderStyle","backgroundColor","backgroundImage","opacity","shadowColor","shadowOffset","shadowOpacity","shadowRadius","elevation","color","fontSize","fontWeight","fontStyle","fontFamily","lineHeight","letterSpacing","textAlign","textDecorationLine","textDecorationColor","textTransform","resizeMode","objectFit","tintColor","transform","overflow","fill","stroke","strokeWidth","gradientDirection","gradientFrom","gradientVia","gradientTo"]),Nn=new Set(["gridColumns","gridAutoRows","flex","flexGrow","flexShrink","order","zIndex","aspectRatio","gap","rowGap","columnGap","borderWidth","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","opacity","shadowOpacity","shadowRadius","elevation","fontSize","lineHeight","letterSpacing","strokeWidth"]),Nt=new Set(["top","right","bottom","left","width","height","minWidth","maxWidth","minHeight","maxHeight","flexBasis","margin","marginTop","marginRight","marginBottom","marginLeft","marginHorizontal","marginVertical","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingHorizontal","paddingVertical"]),kn=/^[+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?$/i,Tn=/^([+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?)(px|rem|em)?$/i,Rn=new Set(["rotate","rotateX","rotateY","rotateZ","skewX","skewY"]),_n=new Set(["perspective","scale","scaleX","scaleY","translateX","translateY"]);function An(t){if(typeof t!=="string")return t;let e=Tn.exec(t);return e?Number(e[1])*(/^r?em$/i.test(e[2]||"")?16:1):t}function ee(t){return typeof t==="number"&&Number.isFinite(t)}function En(t,e){if(t==="shadowOffset"&&e&&typeof e==="object"&&!Array.isArray(e)){let{width:n,height:r}=e;return ee(n)&&ee(r)?{width:n,height:r}:void 0}if(t==="transform"&&Array.isArray(e)){let n=[];for(let r of e){if(!r||typeof r!=="object"||Array.isArray(r)||Object.keys(r).length!==1)return;let[s,a]=Object.entries(r)[0];if(_n.has(s)&&ee(a))n.push({[s]:a});else if(Rn.has(s)&&typeof a==="string"&&/^[+-]?(?:\d+\.?\d*|\.\d+)(?:deg|rad)$/.test(a))n.push({[s]:a});else return}return n}return}function In(t){let e=[],n=0,r=0,s="";for(let a=0;a<=t.length;a++){let l=t[a];if(l==="\\"){a++;continue}if(s){if(l===s)s="";continue}if(l==='"'||l==="'"){s=l;continue}if(l==="(")r++;if(l===")")r=Math.max(0,r-1);if(a!==t.length&&(l!==";"||r))continue;let u=t.slice(n,a),d=u.indexOf(":");if(d!==-1)e.push([u.slice(0,d).trim(),u.slice(d+1).trim()]);n=a+1}return e}function Cn(t,e){let n;if(typeof t==="string"){if(t=t.trim(),!t)return[];try{t=JSON.parse(t)}catch{}}if(typeof t==="string")n=In(t);else if(t&&typeof t==="object"&&!Array.isArray(t))n=Object.entries(t);else{if(t!=null&&t!==!1)e({kind:"non-numeric-style",name:"style"});return[]}return n}function de(t,e=()=>{},n={}){let r=Cn(t,e),s=re(r,n.inheritedVariables);return n.onVariables?.(s.computed()),On(r,s,e)}function On(t,e,n){let r={},s=[];for(let[a,l]of t){if(a.trim().startsWith("--")){s.push(a.trim());continue}let u=xt.has(a)||a.trim().startsWith("--")?a:a.trim().toLowerCase().replace(/-([a-z])/g,(m,p)=>p.toUpperCase());if(!xt.has(u)){n({kind:"unknown-style",name:u});continue}if(l==null||l==="")continue;let d=typeof l==="string"?e.resolve(l.trim()):l;if(d===void 0){n({kind:"non-numeric-style",name:u});continue}if(d==="")continue;if(u==="objectFit"){let m=typeof d==="string"?d.trim().toLowerCase():"";if(m==="cover"||m==="contain")r.resizeMode=m;else if(m==="fill")r.resizeMode="stretch";else if(m==="none")r.resizeMode="center";else n({kind:"unknown-style",name:`objectFit:${String(d)}`});continue}let h;if(Nn.has(u)||Nt.has(u)){if(h=An(d),!ee(h)&&!(Nt.has(u)&&typeof h==="string"&&h.endsWith("%")&&kn.test(h.slice(0,-1))&&Number.isFinite(Number(h.slice(0,-1)))))h=void 0}else if(u==="display"&&d==="inline-flex")h="flex";else if(u==="shadowOffset"||u==="transform")h=En(u,d);else if(u==="gridTemplateColumns"||u==="gridTemplateRows")h=ee(d)||typeof d==="string"?d:void 0;else if(u==="fontWeight"&&ee(d))h=String(d);else if(typeof d==="string")h=d;if(h===void 0)n({kind:"non-numeric-style",name:u});else r[u]=h}for(let a of s)if(!e.used.has(a))n({kind:"unknown-style",name:a});return r}var Pn={transparent:"transparent",current:"currentColor",black:"#000000",white:"#ffffff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"}},Me={px:1,0:0,0.5:2,1:4,1.5:6,2:8,2.5:10,3:12,3.5:14,4:16,5:20,6:24,7:28,8:32,9:36,10:40,11:44,12:48,14:56,16:64,20:80,24:96,28:112,32:128,36:144,40:160,44:176,48:192,52:208,56:224,60:240,64:256,72:288,80:320,96:384},kt={xs:12,sm:14,base:16,lg:18,xl:20,"2xl":24,"3xl":30,"4xl":36,"5xl":48,"6xl":60,"7xl":72,"8xl":96,"9xl":128},Tt={none:0,sm:2,DEFAULT:4,md:6,lg:8,xl:12,"2xl":16,"3xl":24,full:9999};function Q(t){let e=t.lastIndexOf("/");if(e>0&&(!t.endsWith("]")||/\/\[[\d.]+%?\]$/.test(t))){let r=Q(t.slice(0,e)),s=t.slice(e+1),a=/^\[(.+)\]$/.test(s)?Number.parseFloat(s.slice(1,-1))*(s.includes("%")?1:100):Number.parseFloat(s);if(!r||!Number.isFinite(a))return;return Mn(r,a/100)}if(t==="transparent")return"transparent";if(t==="current")return"currentColor";if(t==="black")return"#000000";if(t==="white")return"#ffffff";let n=t.split("-");if(n.length===2){let[r,s]=n,a=Pn[r];if(a&&typeof a==="object")return a[s]}if(t.startsWith("[")&&t.endsWith("]")){let r=t.slice(1,-1);return/^(#|rgba?\(|hsla?\(|[a-z]+$)/i.test(r)?r:void 0}return}function Be(t){return Q(t.trim())}function Mn(t,e){if(t==="transparent")return t;let n=t.startsWith("#")?t.slice(1):"";if(n.length===3)n=n.split("").map((s)=>s+s).join("");if(n.length===8)n=n.slice(0,6);if(n.length!==6)return;let r=Math.round(Math.min(1,Math.max(0,e))*255);return`#${n}${r.toString(16).padStart(2,"0")}`}function Pe(t,e=16){if(!t.startsWith("[")||!t.endsWith("]"))return;let n=t.slice(1,-1),r=Number.parseFloat(n);if(!Number.isFinite(r))return;if(n.endsWith("rem"))return r*16;if(n.endsWith("em"))return r*e;return r}function V(t){if(t.startsWith("[")&&t.endsWith("]")){let e=t.slice(1,-1);if(e.endsWith("%"))return;let n=e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e);return Number.isFinite(n)?n:void 0}return Me[t]??_e(t)}function pe(t){let e=/^\[(-?\d*\.?\d+)%\]$/.exec(t);if(e)return`${Number.parseFloat(e[1])}%`;return V(t)}var Bn={flex:(t,e)=>(e.display="flex",!0),block:(t,e)=>(e.display="flex",!0),hidden:(t,e)=>(e.display="none",!0),grid:(t,e)=>(e.display="grid",!0),"flex-row":(t,e)=>(e.flexDirection="row",!0),"flex-col":(t,e)=>(e.flexDirection="column",!0),"flex-row-reverse":(t,e)=>(e.flexDirection="row-reverse",!0),"flex-col-reverse":(t,e)=>(e.flexDirection="column-reverse",!0),"flex-wrap":(t,e)=>(e.flexWrap="wrap",!0),"flex-nowrap":(t,e)=>(e.flexWrap="nowrap",!0),"flex-wrap-reverse":(t,e)=>(e.flexWrap="wrap-reverse",!0),"flex-1":(t,e)=>(e.flex=1,e.flexGrow=1,e.flexShrink=1,e.flexBasis=0,!0),"flex-auto":(t,e)=>(e.flexGrow=1,e.flexShrink=1,!0),"flex-initial":(t,e)=>(e.flexGrow=0,e.flexShrink=1,!0),"flex-none":(t,e)=>(e.flexGrow=0,e.flexShrink=0,!0),grow:(t,e)=>(e.flexGrow=1,!0),"grow-0":(t,e)=>(e.flexGrow=0,!0),shrink:(t,e)=>(e.flexShrink=1,!0),"shrink-0":(t,e)=>(e.flexShrink=0,!0),"order-first":(t,e)=>(e.order=-9999,!0),"order-last":(t,e)=>(e.order=9999,!0),"order-none":(t,e)=>(e.order=0,!0),"justify-start":(t,e)=>(e.justifyContent="flex-start",!0),"justify-center":(t,e)=>(e.justifyContent="center",!0),"justify-end":(t,e)=>(e.justifyContent="flex-end",!0),"justify-between":(t,e)=>(e.justifyContent="space-between",!0),"justify-around":(t,e)=>(e.justifyContent="space-around",!0),"justify-evenly":(t,e)=>(e.justifyContent="space-evenly",!0),"items-start":(t,e)=>(e.alignItems="flex-start",!0),"items-center":(t,e)=>(e.alignItems="center",!0),"items-end":(t,e)=>(e.alignItems="flex-end",!0),"items-stretch":(t,e)=>(e.alignItems="stretch",!0),"items-baseline":(t,e)=>(e.alignItems="baseline",!0),"self-auto":(t,e)=>(e.alignSelf="auto",!0),"self-start":(t,e)=>(e.alignSelf="flex-start",!0),"self-center":(t,e)=>(e.alignSelf="center",!0),"self-end":(t,e)=>(e.alignSelf="flex-end",!0),"self-stretch":(t,e)=>(e.alignSelf="stretch",!0),"self-baseline":(t,e)=>(e.alignSelf="baseline",!0),"min-w-0":(t,e)=>(e.minWidth=0,!0),"aspect-square":(t,e)=>(e.aspectRatio=1,!0),"aspect-video":(t,e)=>(e.aspectRatio=1.7777777777777777,!0),"border-solid":(t,e)=>(e.borderStyle="solid",!0),"border-dashed":(t,e)=>(e.borderStyle="dashed",!0),"border-dotted":(t,e)=>(e.borderStyle="dotted",!0),group:()=>!0,peer:()=>!0,"inset-0":(t,e)=>(e.top=0,e.right=0,e.bottom=0,e.left=0,!0),"mx-auto":(t,e)=>(e.alignSelf="center",!0),fixed:(t,e)=>(e.position="absolute",!0),sticky:()=>!0,"sr-only":(t,e)=>(e.position="absolute",e.width=1,e.height=1,e.overflow="hidden",!0),inline:()=>!0,"inline-block":()=>!0,contents:()=>!0,"align-top":()=>!0,"align-middle":()=>!0,"align-bottom":()=>!0,"align-baseline":()=>!0,"align-text-top":()=>!0,"whitespace-normal":()=>!0,"whitespace-pre":()=>!0,"whitespace-pre-line":()=>!0,"whitespace-pre-wrap":()=>!0,"whitespace-nowrap":()=>!0,"break-words":()=>!0,"break-all":()=>!0,"break-normal":()=>!0,"object-cover":()=>!0,"object-contain":()=>!0,"object-fill":()=>!0,"object-center":()=>!0,"tracking-tighter":(t,e)=>(e.letterSpacing=-0.8,!0),"tracking-tight":(t,e)=>(e.letterSpacing=-0.4,!0),"tracking-normal":(t,e)=>(e.letterSpacing=0,!0),"tracking-wide":(t,e)=>(e.letterSpacing=0.4,!0),"tracking-wider":(t,e)=>(e.letterSpacing=0.8,!0),"tracking-widest":(t,e)=>(e.letterSpacing=1.6,!0),"tabular-nums":()=>!0,"inline-flex":(t,e)=>(e.display="flex",!0),truncate:()=>!0,relative:(t,e)=>(e.position="relative",!0),absolute:(t,e)=>(e.position="absolute",!0),"overflow-visible":(t,e)=>(e.overflow="visible",!0),"overflow-hidden":(t,e)=>(e.overflow="hidden",!0),"overflow-scroll":(t,e)=>(e.overflow="scroll",!0),"overflow-x-auto":()=>!0,"overflow-x-scroll":()=>!0,"overflow-y-auto":()=>!0,"overflow-y-scroll":()=>!0,"font-sans":(t,e)=>(e.fontFamily=ue("sans")??"sans-serif",!0),"font-serif":(t,e)=>(e.fontFamily=ue("serif")??"serif",!0),"font-mono":(t,e)=>(e.fontFamily=ue("mono")??"monospace",!0),"font-thin":(t,e)=>(e.fontWeight="100",!0),"font-extralight":(t,e)=>(e.fontWeight="200",!0),"font-light":(t,e)=>(e.fontWeight="300",!0),"font-normal":(t,e)=>(e.fontWeight="400",!0),"font-medium":(t,e)=>(e.fontWeight="500",!0),"font-semibold":(t,e)=>(e.fontWeight="600",!0),"font-bold":(t,e)=>(e.fontWeight="bold",!0),"font-extrabold":(t,e)=>(e.fontWeight="800",!0),"font-black":(t,e)=>(e.fontWeight="900",!0),italic:(t,e)=>(e.fontStyle="italic",!0),"not-italic":(t,e)=>(e.fontStyle="normal",!0),"text-left":(t,e)=>(e.textAlign="left",!0),"text-center":(t,e)=>(e.textAlign="center",!0),"text-right":(t,e)=>(e.textAlign="right",!0),"text-justify":(t,e)=>(e.textAlign="justify",!0),uppercase:(t,e)=>(e.textTransform="uppercase",!0),lowercase:(t,e)=>(e.textTransform="lowercase",!0),capitalize:(t,e)=>(e.textTransform="capitalize",!0),"normal-case":(t,e)=>(e.textTransform="none",!0),underline:(t,e)=>(e.textDecorationLine="underline",!0),"line-through":(t,e)=>(e.textDecorationLine="line-through",!0),"no-underline":(t,e)=>(e.textDecorationLine="none",!0)};function Ln(t,e){if(!t.startsWith("bg-"))return!1;let n=t.slice(3),r=Q(n);if(r)return e.backgroundColor=r,!0;return!1}function Dn(t,e){if(!t.startsWith("text-"))return!1;let n=t.slice(5),r=Ae(n);if(r)return Object.assign(e,r),!0;if(kt[n])return e.fontSize=kt[n],!0;if(n.startsWith("[")&&n.endsWith("]")){let a=n.slice(1,-1);if(/^-?[\d.]+(?:px|r?em)?$/.test(a)){let l=a.endsWith("rem")||a.endsWith("em")?Number.parseFloat(a)*16:Number.parseFloat(a);if(Number.isFinite(l))return e.fontSize=l,!0}}let s=Q(n);if(s)return e.color=s,!0;return!1}var $n=new Set(["t","tr","r","br","b","bl","l","tl"]);function Vn(t,e){let n=/^bg-(?:gradient|linear)-to-([a-z]+)$/.exec(t);if(n&&$n.has(n[1]))return e.gradientDirection=`to-${n[1]}`,!0;let r=/^(from|via|to)-(.+)$/.exec(t);if(!r)return!1;let s=Q(r[2]);if(!s)return!1;if(r[1]==="from")e.gradientFrom=s;else if(r[1]==="via")e.gradientVia=s;else e.gradientTo=s;return!0}function jn(t,e){for(let n of["fill","stroke"]){let r=`${n}-`;if(!t.startsWith(r))continue;let s=t.slice(r.length);if(s==="none")return e[n]="none",!0;if(n==="stroke"&&/^\d+(?:\.\d+)?$/.test(s))return e.strokeWidth=Number.parseFloat(s),!0;if(n==="stroke"&&/^\[\d+(?:\.\d+)?(?:px)?\]$/.test(s))return e.strokeWidth=Number.parseFloat(s.slice(1)),!0;let a=Q(s);if(a)return e[n]=a,!0}return!1}function Fn(t,e){if(t.startsWith("p-")){let n=V(t.slice(2));if(n!==void 0)return e.padding=n,!0}if(t.startsWith("px-")){let n=V(t.slice(3));if(n!==void 0)return e.paddingHorizontal=n,!0}if(t.startsWith("py-")){let n=V(t.slice(3));if(n!==void 0)return e.paddingVertical=n,!0}if(t.startsWith("pt-")){let n=V(t.slice(3));if(n!==void 0)return e.paddingTop=n,!0}if(t.startsWith("pr-")){let n=V(t.slice(3));if(n!==void 0)return e.paddingRight=n,!0}if(t.startsWith("pb-")){let n=V(t.slice(3));if(n!==void 0)return e.paddingBottom=n,!0}if(t.startsWith("pl-")){let n=V(t.slice(3));if(n!==void 0)return e.paddingLeft=n,!0}return!1}function _t(t,e){if(/^-(?:m|mx|my|mt|mr|mb|ml)-/.test(t)){let n={};if(!_t(t.slice(1),n))return!1;let r=Object.entries(n);if(r.some(([,s])=>typeof s!=="number"))return!1;for(let[s,a]of r)e[s]=-a;return!0}if(t.startsWith("m-")){let n=V(t.slice(2));if(n!==void 0)return e.margin=n,!0}if(t.startsWith("mx-")){let n=V(t.slice(3));if(n!==void 0)return e.marginHorizontal=n,!0}if(t.startsWith("my-")){let n=V(t.slice(3));if(n!==void 0)return e.marginVertical=n,!0}if(t.startsWith("mt-")){let n=V(t.slice(3));if(n!==void 0)return e.marginTop=n,!0}if(t.startsWith("mr-")){let n=V(t.slice(3));if(n!==void 0)return e.marginRight=n,!0}if(t.startsWith("mb-")){let n=V(t.slice(3));if(n!==void 0)return e.marginBottom=n,!0}if(t.startsWith("ml-")){let n=V(t.slice(3));if(n!==void 0)return e.marginLeft=n,!0}return!1}function zn(t,e){if(!t.startsWith("w-"))return!1;let n=t.slice(2);if(n==="full")return e.width="100%",!0;if(n==="screen")return e.width="100%",!0;if(n==="auto")return e.width="auto",!0;if(n.includes("/")){let[s,a]=n.split("/"),l=Number.parseInt(s)/Number.parseInt(a)*100;return e.width=`${l}%`,!0}let r=pe(n);if(r!==void 0)return e.width=r,!0;return!1}function Xn(t,e){if(!t.startsWith("h-"))return!1;let n=t.slice(2);if(n==="full")return e.height="100%",!0;if(n==="screen")return e.height="100%",!0;if(n==="auto")return e.height="auto",!0;let r=pe(n);if(r!==void 0)return e.height=r,!0;return!1}function Un(t,e){if(t==="rounded")return e.borderRadius=Tt.DEFAULT,!0;if(!t.startsWith("rounded-"))return!1;let n=t.slice(8);if(n==="")return!1;let r=/^(?:(tl|tr|bl|br|t|b|l|r)-)?(.+)$/.exec(n),s=Tt[r[2]]??Te(r[2])??Pe(r[2]);if(s===void 0)return!1;let a={t:["borderTopLeftRadius","borderTopRightRadius"],b:["borderBottomLeftRadius","borderBottomRightRadius"],l:["borderTopLeftRadius","borderBottomLeftRadius"],r:["borderTopRightRadius","borderBottomRightRadius"],tl:["borderTopLeftRadius"],tr:["borderTopRightRadius"],bl:["borderBottomLeftRadius"],br:["borderBottomRightRadius"]};for(let l of r[1]?a[r[1]]:["borderRadius"])e[l]=s;return!0}function Hn(t,e){let n=/^border(?:-([trblxy]))?(?:-(\d+|\[[^\]]+\]))?$/.exec(t);if(!n)return!1;let[,r="",s]=n,a=s===void 0?1:Number(s);if(s?.startsWith("[")){let u=/^\[(\d+(?:\.\d+)?|\.\d+)(px|rem)?\]$/.exec(s);if(!u)return!1;a=Number(u[1])*(u[2]==="rem"?16:1)}if(!Number.isFinite(a)||a<0)return!1;let l={"":["borderWidth"],t:["borderTopWidth"],r:["borderRightWidth"],b:["borderBottomWidth"],l:["borderLeftWidth"],x:["borderLeftWidth","borderRightWidth"],y:["borderTopWidth","borderBottomWidth"]};for(let u of l[r])e[u]=a;return!0}function Gn(t,e){if(!t.startsWith("border-"))return!1;let n=t.slice(7),r=Q(n);if(r)return e.borderColor=r,!0;return!1}function Kn(t,e){if(!t.startsWith("opacity-"))return!1;let n=Number.parseInt(t.slice(8));if(!Number.isNaN(n))return e.opacity=n/100,!0;return!1}function Jn(t,e){if(t.startsWith("tracking-[")){let n=Pe(t.slice(9),typeof e.fontSize==="number"?e.fontSize:16);if(n===void 0)return!1;return e.letterSpacing=n,!0}if(t.startsWith("leading-")){let n=t.slice(8),r=typeof e.fontSize==="number"?e.fontSize:16,s={none:1,tight:1.25,snug:1.375,normal:1.5,relaxed:1.625,loose:2},a=n.startsWith("[")?/^\[[\d.]+\]$/.test(n)?Number.parseFloat(n.slice(1,-1))*r:Pe(n,r):s[n]!==void 0?s[n]*r:Me[n];if(a===void 0||!Number.isFinite(a))return!1;return e.lineHeight=a,!0}return!1}function Yn(t,e){let n=/^(-?)(inset-x|inset-y|inset|top|right|bottom|left)-(.+)$/.exec(t);if(!n)return!1;let r=n[3],s=/^\[(-?[\d.]+)px\]$/.exec(r),a=s?Number(s[1]):Me[r];if(a===void 0||!Number.isFinite(a))return!1;let l=n[1]?-a:a,u=n[2]==="inset"?["top","right","bottom","left"]:n[2]==="inset-x"?["left","right"]:n[2]==="inset-y"?["top","bottom"]:[n[2]];for(let d of u)e[d]=l;return!0}function Qn(t,e){let n=/^grid-cols-\[(.+)\]$/.exec(t);if(n)return e.gridColumns=n[1].split("_").filter(Boolean).length,!0;let r=/^grid-cols-(\d+)$/.exec(t);if(!r)return!1;return e.gridColumns=Number(r[1]),!0}function Zn(t,e){if(!t.startsWith("size-"))return!1;let n=t.slice(5),r=n==="full"?"100%":pe(n);if(r===void 0)return!1;return e.width=r,e.height=r,!0}var er={xs:320,sm:384,md:448,lg:512,xl:576,"2xl":672,"3xl":768,"4xl":896,"5xl":1024,"6xl":1152,"7xl":1280};function tr(t,e){let n=/^(min|max)-(w|h)-(.+)$/.exec(t);if(!n)return!1;let[,r,s,a]=n,l=a==="full"||a==="screen"?"100%":a==="none"?void 0:s==="w"&&r==="max"&&er[a]||pe(a);if(l===void 0&&a!=="none")return!1;let u=`${r}${s==="w"?"Width":"Height"}`;if(l===void 0)delete e[u];else e[u]=l;return!0}function nr(t,e){let n=/^(-?)(top|right|bottom|left)-(.+)$/.exec(t);if(!n)return!1;let r=n[3]==="full"?"100%":V(n[3]);if(r===void 0)return!1;return e[n[2]]=typeof r==="number"&&n[1]?-r:r,!0}function rr(t,e){let n=/^(-?)translate-(x|y)-(.+)$/.exec(t);if(!n)return!1;let r=n[3],s;if(r.startsWith("[")){let u=/^\[([+-]?(?:\d+\.?\d*|\.\d+))(px|rem|em)?\]$/.exec(r);if(!u)return!1;s=Number(u[1])*(u[2]?.endsWith("em")?16:1)}else s=V(r);if(s===void 0||!Number.isFinite(s))return!1;if(n[1])s=-s;let a=n[2]==="x"?"translateX":"translateY",l=a==="translateX"?{translateX:s}:{translateY:s};return e.transform=[...(e.transform??[]).filter((u)=>!(a in u)),l],!0}function ir(t,e){let n=/^space-(x|y)-(.+)$/.exec(t);if(!n)return!1;let r=V(n[2]);if(r===void 0)return!1;return e.gap=r,!0}function sr(t,e){if(t.startsWith("gap-")){let n=V(t.slice(4));if(n!==void 0)return e.gap=n,!0}if(t.startsWith("gap-x-")){let n=V(t.slice(6));if(n!==void 0)return e.columnGap=n,!0}if(t.startsWith("gap-y-")){let n=V(t.slice(6));if(n!==void 0)return e.rowGap=n,!0}return!1}function or(t,e){let r={"shadow-none":[0,0,0,0],"shadow-xs":[1,1,0.05,1],"shadow-sm":[2,1,0.1,2],shadow:[3,2,0.12,3],"shadow-md":[6,4,0.15,4],"shadow-lg":[10,6,0.18,8],"shadow-xl":[16,10,0.2,12],"shadow-2xl":[24,16,0.25,18]}[t];if(!r)return!1;let[s,a,l,u]=r;return Object.assign(e,{shadowColor:"#000000",shadowOpacity:l,shadowRadius:s,shadowOffset:{width:0,height:a},elevation:u}),!0}function ar(t){let e=/^divide-(?:(y|x)(?:-(.+))?|(.+))$/.exec(t);if(!e)return null;if(e[2]==="reverse")return"";if(e[1])return`border-${e[1]==="y"?"t":"l"}${e[2]?`-${e[2]}`:""}`;return`border-${e[3]}`}var At=new Set(["aria-selected","aria-pressed","aria-checked","aria-expanded"]),cr=new Set(["hover","group-hover","peer-hover","active","group-active","visited","placeholder","selection","print","motion-safe"]),lr=/^(?:transition(?:-[a-z]+)?|animate-\S+|scroll-[mp][trblxyse]?-\S+|snap-\S+|overscroll-\S+|duration-\S+|ease-\S+|delay-\S+|will-change-\S+|cursor-\S+|select-(?:none|text|all|auto)|outline-none|outline-0|appearance-none|scroll-smooth|scroll-auto|antialiased|subpixel-antialiased|touch-\S+|resize(?:-\S+)?|backdrop-blur(?:-\S+)?|isolate|contain-\S+)$/;function Et(t){let e=[],n=0,r=0;for(let s=0;s<t.length;s++){let a=t[s];if(a==="[")n++;else if(a==="]")n=Math.max(0,n-1);else if(a===":"&&n===0)e.push(t.slice(r,s)),r=s+1}return e.push(t.slice(r)),e}function It(t,e=new Set){let n=Et(t),r=n[n.length-1],s=e.has(r)?void 0:bt(r);if(s===void 0)return[t];let a=n.slice(0,-1).map((u)=>`${u}:`).join(""),l=new Set(e).add(r);return s.split(/\s+/).filter(Boolean).flatMap((u)=>It(`${a}${u}`,l))}function ge(t,e,n={}){let r=new Map,s=(b,f)=>{if(!r.has(b))r.set(b,{...f,classes:[],authored:new Map});return r.get(b)};s("base",{});let a=[],l=[],u=t.split(/\s+/).filter(Boolean);if(n.rules){let b=new Set(u);for(let f of Object.keys(n.rules))if(f.includes(".")&&f.split(".").every((c)=>b.has(c)))l.push(f);l.sort((f,c)=>f.split(".").length-c.split(".").length)}for(let b of u){if(n.rules&&Object.hasOwn(n.rules,b)){a.push(b);continue}for(let f of It(b)){let c=Et(f),x=c.pop(),g=c.some((T)=>T.startsWith("focus"));if(c.some((T)=>/^(?:group-|peer-)?focus(?:-visible|-within)?$/.test(T))&&/^(?:ring|outline)(?:-|$)/.test(x))continue;if(lr.test(x)||!g&&c.some((T)=>cr.has(T)))continue;let N,v,k=!1,w,_=[];for(let T of c){let E=Ce(T),P=T.startsWith("max-")?Ce(T.slice(4)):void 0;if(E!==void 0&&N===void 0)N=E;else if(P!==void 0&&v===void 0)v=P-0.02;else if(T==="disabled"&&!k)k=!0;else if(At.has(T)&&w===void 0)w=T;else _.push(T)}let I=[..._,x].join(":"),B=N!==void 0||v!==void 0,R=k?s("disabled",{disabled:!0}):w?s(`state:${w}`,{state:w}):B?s(`range:${N??0}:${v??""}`,{min:N??0,max:v}):r.get("base");if((k||w)&&(B||k&&w)){r.get("base").authored.set(f,b),r.get("base").classes.push(f);continue}if(R.classes.push(I),!R.authored.has(I))R.authored.set(I,b===f?f:`${b} (${f})`)}}let d=[...a,...l],h=(b,f)=>f.map((c)=>b.authored.get(c)??c),m=r.get("base"),p=fe(m.classes.join(" "),e,n),y=new Map;if(d.length){let b=(x)=>x?de(x,()=>{},{inheritedVariables:e}):{},f={},c={};for(let x of d){let g=n.rules[x];f={...f,...b(g.light)},c={...c,...b(g.dark)};for(let N of g.responsive??[]){let v=`${N.min}:${N.max??""}`,k=y.get(v)??{min:N.min,...N.max===void 0?{}:{max:N.max},style:{}};if(k.style={...k.style,...b(N.light)},N.dark)k.dark={...k.dark,...b(N.dark)};y.set(v,k)}}if(p.style={...f,...p.style},Object.keys(c).length)p.dark={...c,...p.dark}}p.unknown=h(m,p.unknown);let S=[];for(let b of r.values()){if(b===m)continue;let f=fe(b.classes.join(" "),e,{appearance:n.appearance});p.unknown=[...new Set([...p.unknown,...h(b,f.unknown)])];let c={style:f.style,...f.dark?{dark:f.dark}:{}};if(b.disabled)p.disabled=c;else if(b.state)(p.states??={})[b.state]=c;else S.push({min:b.min??0,...b.max===void 0?{}:{max:b.max},...c})}for(let b of y.values()){let f=S.find((c)=>c.min===b.min&&c.max===b.max);if(f){if(f.style={...b.style,...f.style},b.dark||f.dark)f.dark={...b.dark,...f.dark}}else S.push(b)}if(S.length)p.responsive=S.sort((b,f)=>b.min-f.min||(b.max??1/0)-(f.max??1/0));return p}function fe(t,e,n={}){let r=[],s=[],a=[],l=[],u={focus:{classes:[],originals:new Map},focusWithin:{classes:[],originals:new Map}},d=new Map;function h(g,N){let v=/^(bg|text|border(?:-[trblxy])?|from|via|to|fill|stroke|divide|decoration|caret|accent)-(.+?)(\/[^\s]+)?$/.exec(g),k=v&&vt(v[2]);if(v&&k){let R=/^var\(\s*(--[\w-]+)\s*(?:,\s*(.+?)\s*)?\)$/.exec(k),T=R?e?.get(R[1])??R[2]:k;if(T&&/^(?:#[0-9a-f]{3,8}|rgba?\(.+\)|hsla?\(.+\))$/i.test(T))return[`${v[1]}-[${T.replace(/\s+/g,"")}]${v[3]||""}`]}let w=/^(text|bg|border|ring)-([a-z-]+)(\/[^\s]+)?$/.exec(g),_=w&&mt[w[2]];if(_){let R=e?.get(We(w[2]));return[`${w[1]}-${R===void 0?_[N]:`[${R}]`}${w[3]||""}`]}let I=/^rounded-(?:(tl|tr|bl|br|t|b|l|r)-)?(.+)$/.exec(g);if(I&&me[I[2]]){let R=Te(I[2],e);return R===void 0?void 0:[`rounded-${I[1]?`${I[1]}-`:""}[${R}px]`]}let B=g.startsWith("text-")?g.slice(5):"";if(qn[B]){let R=Ae(B,e);return R&&[`text-[${R.fontSize}px]`,`leading-[${R.lineHeight}px]`]}for(let R of Object.keys(Wn)){if(!g.endsWith(`-${R}`))continue;let T=_e(R,e);return T===void 0?void 0:[`${g.slice(0,-R.length)}[${T}px]`]}return[g]}function m(g,N){if(!d.has(g))d.set(g,new Set);return d.get(g).add(N),g}let p=[],y=new Map;for(let g of t.split(/\s+/).filter(Boolean)){let N=g.startsWith("dark:")?g.slice(5):g,v=ar(N);if(v!==null){let _=v&&`${g===N?"":"dark:"}${v}`;if(_)p.push(_),y.set(_,g);continue}let k=/^(dark:)?(focus|focus-within):(dark:)?(.+)$/.exec(g),w=k?.[2]==="focus"?"focus":"focusWithin";if(k&&n[w]&&!(k[1]&&k[3])){let _=`${k[1]||k[3]?"dark:":""}${k[4]}`,I=u[w];I.classes.push(_),I.originals.set(_,[...I.originals.get(_)??[],g]);continue}if(g.startsWith("dark:")){let _=h(g.slice(5),"dark");if(!_)l.push(g);else s.push(..._.map((I)=>m(I,g)))}else if(!g.includes(":")||g.startsWith("[")){let _=h(g,n.appearance??"light"),I=h(g,"dark");if(!_||!I){l.push(g);continue}if(r.push(..._.map((B)=>m(B,g))),I.join(" ")!==_.join(" "))a.push(...I.map((B)=>m(B,g)))}else l.push(g)}let S=[],b=Rt(r,S),f={style:b,unknown:S},c=[...n.appearance===void 0?a:[],...s];if(c.length)f.dark=Rt(c,S);if(b.transform&&f.dark?.transform){let g=new Set(f.dark.transform.flatMap((N)=>Object.keys(N)));f.dark.transform=[...b.transform.filter((N)=>!Object.keys(N).some((v)=>g.has(v))),...f.dark.transform]}for(let g of r){if(g==="truncate"||g==="whitespace-nowrap")f.numberOfLines=1;let N=/^object-(cover|contain|fill)$/.exec(g);if(N)f.resizeMode=N[1]==="fill"?"stretch":N[1];let v=/^line-clamp-(\d+)$/.exec(g);if(v)f.numberOfLines=Number(v[1]);if(!f.icon&&/^i-[a-z0-9]+-[a-z0-9-]+$/.test(g))f.icon=g}let x=S.flatMap((g)=>[...d.get(g)??[g]]);if(f.unknown=[...new Set([...x.filter((g)=>!/^line-clamp-\d+$/.test(g)),...l])],p.length){let g=fe(p.join(" "),e,{appearance:n.appearance});f.divide={style:g.style,...g.dark?{dark:g.dark}:{}},f.unknown=[...new Set([...f.unknown,...g.unknown.map((N)=>y.get(N)??N)])]}for(let g of["focus","focusWithin"]){let N=u[g];if(!N.classes.length)continue;let v=fe(N.classes.join(" "),e,{appearance:n.appearance});f[g]={style:v.style,dark:v.dark},f.unknown=[...new Set([...f.unknown,...v.unknown.flatMap((k)=>N.originals.get(k)??[k])])];for(let k of N.classes)if(/^(?:dark:)?(?:truncate|line-clamp-\d+|i-[a-z0-9]+-.+)$/.test(k))f.unknown.push(...N.originals.get(k))}return f}function Rt(t,e){let n={},r=Array.isArray(t)?t:t.split(/\s+/).filter(Boolean);for(let s of r){if(/^i-[a-z0-9]+-/.test(s))continue;let a=Bn[s];if(a){a("",n);continue}if(or(s,n))continue;if(Vn(s,n))continue;if(Ln(s,n))continue;if(jn(s,n))continue;if(Dn(s,n))continue;if(Fn(s,n))continue;if(_t(s,n))continue;if(zn(s,n))continue;if(Xn(s,n))continue;if(Un(s,n))continue;if(Hn(s,n))continue;if(Gn(s,n))continue;if(Kn(s,n))continue;if(sr(s,n))continue;if(Jn(s,n))continue;if(Zn(s,n))continue;if(tr(s,n))continue;if(Qn(s,n))continue;let l=/^aspect-\[(\d+(?:\.\d+)?)\/(\d+(?:\.\d+)?)\]$/.exec(s);if(l&&Number(l[2])>0){n.aspectRatio=Number(l[1])/Number(l[2]);continue}let u=/^z-\[(-?\d+)\]$/.exec(s)??/^z-(\d+)$/.exec(s);if(u){n.zIndex=Number(u[1]);continue}if(s==="z-auto")continue;if(Yn(s,n))continue;let d=/^order-\[(-?\d+)\]$/.exec(s)??/^order-(-?\d+)$/.exec(s);if(d){n.order=Number(d[1]);continue}if(nr(s,n))continue;if(rr(s,n))continue;if(ir(s,n))continue;if(e?.push(s),typeof process<"u"&&process.env?.NODE_ENV==="development")console.warn(`[STX Native] Unknown Headwind class: ${s}`)}return n}var Ct=new Map;function Ot(t,e){if(!t)return;let n=t.trim(),r=n.lastIndexOf("-"),s=r===-1?e[n]:e[n.slice(0,r)],a=r===-1?s:s?.[n.slice(r+1)];if(typeof a==="string"&&/^#[\da-f]{3,8}$/i.test(a))return a;return Be(n)??Be(`[${n}]`)}function dr(t){let e=t.roles??{},n=t.shapes??{},r=t.density??{},s={...t.theme?.colors,...t.theme?.extend?.colors},a=[],l=[];for(let[u,d]of Object.entries(e)){if(!mt[u])continue;let h=Ot(typeof d==="string"?d:d?.light,s),m=Ot(typeof d==="string"?d:d?.dark,s);if(h)a.push(`${We(u)}: ${h};`);if(m)l.push(`${We(u)}: ${m};`)}for(let[u,d]of Object.entries(n))if(me[u])a.push(`${tn(u)}: ${d};`);for(let[u,d]of Object.entries(r))if(Re[u])a.push(`${qe(u)}: ${d};`);return[a.length?`:root { ${a.join(" ")} }`:"",l.length?`.dark { ${l.join(" ")} }`:""].filter(Boolean).join(`
|
|
3
|
+
`)}async function fr(t){let{resolveUserCssConfig:e}=await import("./chunk-78d5tn4r.js"),n=await e(t);return n?dr(n):""}function Pt(t){let e=ur.resolve(t),n=Ct.get(e);if(!n)n=fr(e).catch(()=>""),Ct.set(e,n);return n}var Bt={"aria-pressed":"selected","aria-selected":"selected","aria-checked":"checked","aria-disabled":"disabled","aria-expanded":"expanded","aria-busy":"busy"},Mt={alert:"alert",button:"button",checkbox:"checkbox",combobox:"combobox",header:"header",heading:"header",image:"image",img:"image",link:"link",menu:"menu",menubar:"menubar",menuitem:"menuitem",none:"none",presentation:"none",progressbar:"progressbar",radio:"radio",scrollbar:"scrollbar",search:"search",searchbox:"search",slider:"adjustable",spinbutton:"spinbutton",switch:"switch",tab:"tab",tablist:"tablist",timer:"timer",toolbar:"toolbar"};function pr(t){return t==="role"||t==="aria-label"||t==="aria-valuetext"||t in Bt}function gr(t,e){if(e===void 0||e===null)return;let n=String(e).trim().toLowerCase();if(n==="mixed")return t==="aria-checked"?"mixed":!0;if(n==="undefined")return;return n===""||n==="true"}function hr(t){if(t===void 0||t===null)return null;for(let e of String(t).trim().toLowerCase().split(/\s+/))if(Mt[e])return Mt[e];return null}function mr(t,e,n){if(t==="aria-label")return{accessibilityLabel:e===void 0||e===null||e===""?null:String(e)};if(t==="aria-valuetext")return{accessibilityValue:e===void 0||e===null||e===""?null:String(e)};if(t==="role")return{accessibilityRole:hr(e)};let r=Bt[t];if(!r)return;let s=n.accessibilityState,a=s&&typeof s==="object"?{...s}:{},l=gr(t,e);if(l===void 0)delete a[r];else a[r]=l;return{accessibilityState:Object.keys(a).length?a:null}}function yr(t){let e=t.accessibilityState&&typeof t.accessibilityState==="object"?t.accessibilityState:void 0,n={};for(let[s,a]of Object.entries(t)){if(!pr(s))continue;let l=mr(s,a,n);if(l)Object.assign(n,l)}for(let s of["accessibilityLabel","accessibilityRole","accessibilityValue"])if(t[s]===void 0&&n[s]!==void 0&&n[s]!==null)t[s]=n[s];let r=n.accessibilityState;if(r)t.accessibilityState={...r,...e}}var Le=["accessibilityLabel","accessibilityRole","accessibilityState","accessibilityValue"];function De(t){let e={...t};return yr(e),Object.fromEntries(Le.filter((n)=>(n in e)).map((n)=>[n,e[n]]))}var Dt=["keyboardType","secureTextEntry","returnKeyType","autoCapitalize","autoCorrect","editable","autoComplete"],br=new Set(["type","inputmode","inputMode","enterkeyhint","enterKeyHint","autoCapitalize","autoCorrect","spellcheck","readonly","readOnly","disabled",...Dt]),vr={numeric:"number-pad",decimal:"decimal-pad",tel:"phone-pad",email:"email-address",url:"url",search:"web-search",text:"default"},Sr={email:{keyboardType:"email-address",verbatim:!0,autoComplete:"email"},tel:{keyboardType:"phone-pad",autoComplete:"tel"},url:{keyboardType:"url",verbatim:!0,autoComplete:"url"},number:{keyboardType:"decimal-pad"},search:{keyboardType:"web-search",returnKeyType:"search"},password:{secure:!0,verbatim:!0}},wr={enter:"default",done:"done",go:"go",next:"next",previous:"default",search:"search",send:"send"};function te(t){return t===void 0||t===null?"":String(t).trim().toLowerCase()}function Lt(t){if(t===void 0||t===null||t===!1)return!1;return te(t)!=="false"}function $e(t,...e){for(let n of e)if(t[n]!==void 0&&t[n]!==null)return t[n];return}function $t(t,e){if(t!=="TextInput")return{};let n={},r=te(e.type),s=Sr[r]??{},a=te($e(e,"inputmode","inputMode")),l=vr[a]??s.keyboardType;if(l&&l!=="default")n.keyboardType=l;if(s.secure)n.secureTextEntry=!0;let u=te($e(e,"enterkeyhint","enterKeyHint")),d=wr[u]??s.returnKeyType;if(d&&d!=="default")n.returnKeyType=d;let h=te(e.autoCapitalize);if(h==="off"||h==="none")n.autoCapitalize="none";else if(h==="on")n.autoCapitalize="sentences";else if(!h&&s.verbatim)n.autoCapitalize="none";let m=e.autoCorrect;if(m==="off"||m==="false"||te(e.spellcheck)==="false"||m===void 0&&s.verbatim)n.autoCorrect=!1;else if(m==="on"||m==="true")n.autoCorrect=!0;if(Lt($e(e,"readonly","readOnly"))||Lt(e.disabled))n.editable=!1;if(s.autoComplete)n.autoComplete=s.autoComplete;return Object.fromEntries(Object.entries(n).filter(([p])=>e[p]===void 0||xr(p,e[p])))}function xr(t,e){if(t==="autoCapitalize")return e==="off"||e==="on";if(t==="autoCorrect")return typeof e==="string";return!1}function Vt(t){let e=$t(t.type,t.props);if(!Object.keys(e).length)return;t._textEntrySource=Object.fromEntries(Dt.filter((n)=>(n in t.props)).map((n)=>[n,t.props[n]])),Object.assign(t.props,e)}var Ve={"region-change-complete":"onRegionChangeComplete",regionchangecomplete:"onRegionChangeComplete",click:"onPress",press:"onPress","press-in":"onPressIn",pressin:"onPressIn","press-out":"onPressOut",pressout:"onPressOut",longpress:"onLongPress",contextmenu:"onLongPress",input:"onChangeText",onchange:"onChange",change:"onValueChange","value-change":"onValueChange",valuechange:"onValueChange",focus:"onFocus",focusin:"onFocus",blur:"onBlur",focusout:"onBlur",submit:"onSubmitEditing","submit-editing":"onSubmitEditing",submitediting:"onSubmitEditing","end-editing":"onEndEditing",endediting:"onEndEditing",scroll:"onScroll","scroll-begin-drag":"onScrollBeginDrag",scrollbegindrag:"onScrollBeginDrag","scroll-end-drag":"onScrollEndDrag",scrollenddrag:"onScrollEndDrag","momentum-scroll-begin":"onMomentumScrollBegin",momentumscrollbegin:"onMomentumScrollBegin","momentum-scroll-end":"onMomentumScrollEnd",momentumscrollend:"onMomentumScrollEnd","page-selected":"onPageSelected",pageselected:"onPageSelected",refresh:"onRefresh",layout:"onLayout","end-reached":"onEndReached",endreached:"onEndReached",close:"onRequestClose","request-close":"onRequestClose",requestclose:"onRequestClose",show:"onShow",dismiss:"onDismiss","sliding-complete":"onSlidingComplete",slidingcomplete:"onSlidingComplete","load-start":"onLoadStart",loadstart:"onLoadStart",load:"onLoad","load-end":"onLoadEnd",loadend:"onLoadEnd",error:"onError",play:"onPlay",playing:"onPlay",pause:"onPause",ended:"onEnd",end:"onEnd",timeupdate:"onProgress",progress:"onProgress",loadedmetadata:"onLoad",enterpictureinpicture:"onPictureInPictureStart",leavepictureinpicture:"onPictureInPictureStop"};var Fe={svg:"Svg",g:"G",path:"Path",line:"Line",rect:"Rect",circle:"Circle",ellipse:"Ellipse",polyline:"Polyline",polygon:"Polygon",text:"SvgText",tspan:"SvgText",animate:"Animate"},ze=new Set(Object.values(Fe));var Ft=new Set(["defs","title","desc","metadata","style","symbol","use","clippath","mask","lineargradient","radialgradient","stop","pattern","marker","filter","foreignobject"]),zt=["viewBox","preserveAspectRatio","strokeWidth","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","fillOpacity","fillRule","vectorEffect","textAnchor","dominantBaseline","fontSize","fontWeight","attributeName","keyTimes","repeatCount"];function z(t){let e=typeof t==="number"?t:Number.parseFloat(String(t??""));return Number.isFinite(e)?e:0}function J(t){return Math.round(t*1000)/1000}function Xe(t){if(Array.isArray(t)&&t.length===4&&t.every((n)=>Number.isFinite(Number(n))))return t.map(Number);let e=String(t??"").trim().split(/[\s,]+/).map(Number);if(e.length!==4||e.some((n)=>!Number.isFinite(n))||e[2]<=0||e[3]<=0)return null;return e}function Nr(t){let e=String(t??"").trim().split(/[\s,]+/).filter(Boolean).map(Number).filter(Number.isFinite);return e.length%2?e.slice(0,-1):e}var jt=/[MLHVCSQTAZ]/i,je=/[+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?/gi;function kr(t){let e=[],n=t,r=jt.exec(n);while(r){let s=r.index;n=n.slice(s);let a=n[0];n=n.slice(1);let l=jt.exec(n),u=l?n.slice(0,l.index):n,d;if(a==="A"||a==="a"){d=[];let h=0,m=u.trim(),p=0;while(p<m.length){let y=h%7,S=m.slice(p).replace(/^[\s,]+/,"");if(p=m.length-S.length,!S)break;if(y===3||y===4)d.push(S[0]==="1"?1:0),p+=1;else{je.lastIndex=0;let b=je.exec(S);if(!b||b.index!==0)break;d.push(Number.parseFloat(b[0])),p+=b[0].length}h++}}else d=(u.match(je)||[]).map(Number.parseFloat);e.push({command:a,args:d}),r=l}return e}function Tr(t,e,n,r,s,a,l,u,d){if(t===u&&e===d)return[];let h=Math.abs(n),m=Math.abs(r);if(!h||!m)return[1,u,d];let p=s*Math.PI/180,y=Math.cos(p),S=Math.sin(p),b=(t-u)/2,f=(e-d)/2,c=y*b+S*f,x=-S*b+y*f,g=c*c/(h*h)+x*x/(m*m);if(g>1)h*=Math.sqrt(g),m*=Math.sqrt(g);let N=h*h*m*m-h*h*x*x-m*m*c*c,v=h*h*x*x+m*m*c*c,k=Math.sqrt(Math.max(0,N/v));if(a===l)k=-k;let w=k*(h*x)/m,_=k*-(m*c)/h,I=y*w-S*_+(t+u)/2,B=S*w+y*_+(e+d)/2,R=(L,W,F,q)=>{let Y=L*q-W*F<0?-1:1,G=(L*F+W*q)/(Math.hypot(L,W)*Math.hypot(F,q));return Y*Math.acos(Math.min(1,Math.max(-1,G)))},T=R(1,0,(c-w)/h,(x-_)/m),E=R((c-w)/h,(x-_)/m,(-c-w)/h,(-x-_)/m);if(!l&&E>0)E-=2*Math.PI;if(l&&E<0)E+=2*Math.PI;let P=Math.max(1,Math.ceil(Math.abs(E)/(Math.PI/2))),j=E/P,A=1.3333333333333333*Math.tan(j/4),M=[],X=(L)=>{let W=h*Math.cos(L),F=m*Math.sin(L);return[y*W-S*F+I,S*W+y*F+B]},C=(L)=>{let W=-h*Math.sin(L),F=m*Math.cos(L);return[y*W-S*F,S*W+y*F]},O=T;for(let L=0;L<P;L++){let W=O+j,[F,q]=X(O),[Y,G]=C(O),[it,st]=X(W),[mn,yn]=C(W);M.push(2,F+A*Y,q+A*G,it-A*mn,st-A*yn,L===P-1?u:it,L===P-1?d:st),O=W}return M}function Xt(t){let e=[],n=0,r=0,s=0,a=0,l=0,u=0,d=0,h=0,m="";for(let{command:p,args:y}of kr(String(t??""))){let S=p===p.toLowerCase(),b=p.toUpperCase(),f=()=>S?n:0,c=()=>S?r:0,x=0,g=(v)=>{if(x+v>y.length)return null;let k=y.slice(x,x+v);return x+=v,k};if(b==="Z"){e.push(4),n=s,r=a,m="Z";continue}let N=!0;while(x<y.length||N&&b==="Z"){switch(b){case"M":{let v=g(2);if(!v)return e;if(n=v[0]+f(),r=v[1]+c(),N)e.push(0,n,r),s=n,a=r;else e.push(1,n,r);m=N?"M":"L";break}case"L":{let v=g(2);if(!v)return e;n=v[0]+f(),r=v[1]+c(),e.push(1,n,r),m="L";break}case"H":{let v=g(1);if(!v)return e;n=v[0]+f(),e.push(1,n,r),m="L";break}case"V":{let v=g(1);if(!v)return e;r=v[0]+c(),e.push(1,n,r),m="L";break}case"C":{let v=g(6);if(!v)return e;let k=v[0]+f(),w=v[1]+c();l=v[2]+f(),u=v[3]+c(),n=v[4]+f(),r=v[5]+c(),e.push(2,k,w,l,u,n,r),m="C";break}case"S":{let v=g(4);if(!v)return e;let k=m==="C"?2*n-l:n,w=m==="C"?2*r-u:r;l=v[0]+f(),u=v[1]+c(),n=v[2]+f(),r=v[3]+c(),e.push(2,k,w,l,u,n,r),m="C";break}case"Q":{let v=g(4);if(!v)return e;d=v[0]+f(),h=v[1]+c(),n=v[2]+f(),r=v[3]+c(),e.push(3,d,h,n,r),m="Q";break}case"T":{let v=g(2);if(!v)return e;d=m==="Q"?2*n-d:n,h=m==="Q"?2*r-h:r,n=v[0]+f(),r=v[1]+c(),e.push(3,d,h,n,r),m="Q";break}case"A":{let v=g(7);if(!v)return e;let k=v[5]+f(),w=v[6]+c();e.push(...Tr(n,r,v[0],v[1],v[2],v[3],v[4],k,w)),n=k,r=w,m="A";break}default:return e}N=!1}}return e.map((p)=>J(p))}function Wt(t,e,n,r){if(n<=0||r<=0)return[];let s=0.5522847498;return[0,t+n,e,2,t+n,e+s*r,t+s*n,e+r,t,e+r,2,t-s*n,e+r,t-n,e+s*r,t-n,e,2,t-n,e-s*r,t-s*n,e-r,t,e-r,2,t+s*n,e-r,t+n,e-s*r,t+n,e,4].map(J)}function Ue(t,e){switch(t){case"Path":return Xt(String(e.d??""));case"Line":return[0,z(e.x1),z(e.y1),1,z(e.x2),z(e.y2)].map(J);case"Rect":{let n=z(e.x),r=z(e.y),s=z(e.width),a=z(e.height);if(s<=0||a<=0)return[];let l=e.rx===void 0?z(e.ry):z(e.rx),u=e.ry===void 0?l:z(e.ry);if(l=Math.min(Math.max(0,l),s/2),u=Math.min(Math.max(0,u),a/2),!l||!u)return[0,n,r,1,n+s,r,1,n+s,r+a,1,n,r+a,4].map(J);let d=0.5522847498;return[0,n+l,r,1,n+s-l,r,2,n+s-l+d*l,r,n+s,r+u-d*u,n+s,r+u,1,n+s,r+a-u,2,n+s,r+a-u+d*u,n+s-l+d*l,r+a,n+s-l,r+a,1,n+l,r+a,2,n+l-d*l,r+a,n,r+a-u+d*u,n,r+a-u,1,n,r+u,2,n,r+u-d*u,n+l-d*l,r,n+l,r,4].map(J)}case"Circle":return Wt(z(e.cx),z(e.cy),z(e.r),z(e.r));case"Ellipse":return Wt(z(e.cx),z(e.cy),z(e.rx),z(e.ry));case"Polyline":case"Polygon":{let n=Nr(e.points);if(n.length<4)return[];let r=[0,n[0],n[1]];for(let s=2;s<n.length;s+=2)r.push(1,n[s],n[s+1]);if(t==="Polygon")r.push(4);return r.map(J)}default:return null}}function Rr(t){let e=/^\s*(\d+(?:\.\d+)?|\.\d+)\s*(ms|s)?\s*$/.exec(String(t??""));if(!e)return null;let n=Number(e[1])/(e[2]==="ms"?1000:1);return n>0?n:null}function _r(t){if(t.attributeName!=="d")return null;let e=Rr(t.dur),n=String(t.values??"").split(";").map((u)=>u.trim()).filter(Boolean);if(e===null||n.length<2)return null;let r=n.map(Xt);if(r.some((u)=>!u.length))return null;let s=String(t.keyTimes??"").split(";").map((u)=>u.trim()).filter(Boolean).map(Number),l=s.length===r.length&&s[0]===0&&s[s.length-1]===1&&s.every((u,d)=>Number.isFinite(u)&&(d===0||u>=s[d-1]))?s.map(J):r.map((u,d)=>J(d/(r.length-1)));return{frames:r,frameTimes:l,duration:e}}function He(t){let e=_r(t),n={frames:e?.frames??null,frameTimes:e?.frameTimes??null,duration:e?.duration??null};for(let[r,s]of Object.entries(n))if(s===null)delete t[r];else t[r]=s;return n}var Ar=[...zt,"accessibilityHint","accessibilityLabel","accessibilityRole","accessibilityState","accessibilityValue","activeOpacity","alwaysBounceHorizontal","alwaysBounceVertical","animationType","autoCapitalize","autoComplete","autoCorrect","autoFocus","contentContainerStyle","currentTime","defaultSource","defaultValue","ellipsizeMode","hidesWhenStopped","hitSlop","imageStyle","initialNumToRender","ios_backgroundColor","keyboardDismissMode","keyboardShouldPersistTaps","keyboardType","keyboardVerticalOffset","keyExtractor","listRole","maxLength","mostRecentEventCount","maximumDate","maximumTrackTintColor","maximumValue","maxToRenderPerBatch","minimumDate","minimumTrackTintColor","minimumValue","minuteInterval","numberOfLines","numColumns","onEndReachedThreshold","pageIndex","pagingEnabled","passwordRules","placeholderTextColor","pointerEvents","presentationStyle","sheetDetents","selectedDetent","grabberVisible","tintColor","clearButtonMode","nonModal","dismissOnOutsideTap","pressRetentionOffset","progressBackgroundColor","progressViewOffset","refreshControl","resizeMode","returnKeyType","scrollEnabled","scrollTarget","secureTextEntry","selectedValue","selectionColor","showsHorizontalScrollIndicator","showsVerticalScrollIndicator","stickyHeaderIndices","testID","textContentType","thumbColor","thumbTintColor","titleColor","trackColor","underlayColor","windowSize","initialRegion","tileOverlay","edgePadding","fitToBounds","showsUserLocation","zoomEnabled","rotateEnabled","pitchEnabled","mapType","fillColor","strokeColor","pinColor","showsCompass","showsScale","cameraPitch","cameraHeading","autoScrollBottom","scrollKey","pictureInPicture","transitionID"],Ut=new Set(["alwaysBounceHorizontal","alwaysBounceVertical","animating","autoCorrect","autoFocus","autoplay","autoPlay","bounces","controls","disabled","editable","hidesWhenStopped","horizontal","loop","multiline","muted","pagingEnabled","paused","refreshing","scrollEnabled","secureTextEntry","selectTextOnFocus","showsHorizontalScrollIndicator","showsVerticalScrollIndicator","transparent","visible","nonModal","dismissOnOutsideTap","fitToBounds","showsUserLocation","zoomEnabled","rotateEnabled","pitchEnabled","showsCompass","showsScale","pictureInPicture","grabberVisible"]),Er=new Map(Ar.map((t)=>[Ht(t),t]));function Ht(t){return t.replace(/[-_]/g,"").toLowerCase()}function Ge(t,e){if((e==="Image"||e==="Video")&&t.toLowerCase()==="src")return"source";return Er.get(Ht(t))??t}var Ir={view:"View",sidebar:"Sidebar",splitview:"SplitView",textinput:"TextInput",pressable:"Pressable",icon:"Icon",text:"Text",button:"Button",image:"Image",img:"Image",video:"Video",map:"Map",mappolyline:"MapPolyline",mappolygon:"MapPolygon",mapmarker:"MapMarker",input:"TextInput",textarea:"TextInput",scroll:"ScrollView",scrollview:"ScrollView",list:"FlatList",flatlist:"FlatList",modal:"Modal",switch:"Switch",checkbox:"Checkbox",slider:"Slider",picker:"Picker",segmentedcontrol:"SegmentedControl",nativesegmentedcontrol:"SegmentedControl",select:"Picker",loading:"ActivityIndicator",spinner:"ActivityIndicator",div:"View",span:"Text",p:"Text",h1:"Text",h2:"Text",h3:"Text",h4:"Text",h5:"Text",h6:"Text",a:"TouchableOpacity",section:"View",article:"View",header:"SafeAreaView",footer:"View",main:"View",nav:"View",aside:"View",form:"View",label:"Text",fieldset:"View",legend:"Text",option:"Text",dialog:"Modal",figure:"View",figcaption:"Text",picture:"View",hr:"View",ul:"View",ol:"View",li:"View",dl:"View",dt:"Text",dd:"Text",table:"View",thead:"View",tbody:"View",tfoot:"View",tr:"View",th:"Text",td:"Text",caption:"Text",strong:"Text",b:"Text",em:"Text",i:"Text",u:"Text",s:"Text",small:"Text",mark:"Text",abbr:"Text",time:"Text",code:"Text",kbd:"Text",samp:"Text",pre:"Text",blockquote:"Text",cite:"Text",q:"Text",sub:"Text",sup:"Text"};function qt(t){return Ir[t.toLowerCase()]||t}var Cr={activity:"waveform.path.ecg","alarm-clock":"alarm","alert-circle":"exclamationmark.circle","alert-triangle":"exclamationmark.triangle",apple:"leaf",archive:"archivebox",armchair:"sofa","arrow-down":"arrow.down","arrow-left":"arrow.left","arrow-right":"arrow.right","arrow-up":"arrow.up","arrow-up-right":"arrow.up.right","at-sign":"at","audio-lines":"waveform",award:"rosette",backpack:"backpack","badge-check":"checkmark.seal","badge-x":"xmark.seal",ban:"nosign","bar-chart":"chart.bar","bar-chart-2":"chart.bar","bar-chart-3":"chart.bar",battery:"battery.100","battery-charging":"battery.100.bolt",bean:"leaf",bed:"bed.double",beef:"fork.knife",bell:"bell","bell-off":"bell.slash","bell-ring":"bell.and.waves.left.and.right",bike:"figure.outdoor.cycle",blocks:"square.grid.2x2",bluetooth:"antenna.radiowaves.left.and.right",book:"book","book-open":"book",bookmark:"bookmark",box:"shippingbox",brain:"brain",building:"building","building-2":"building.2",cable:"cable.connector","cake-slice":"birthday.cake",calendar:"calendar","calendar-check":"calendar.badge.checkmark","calendar-clock":"calendar.badge.clock","calendar-days":"calendar","calendar-minus":"calendar.badge.minus","calendar-minus-2":"calendar.badge.minus","calendar-off":"calendar.badge.exclamationmark","calendar-plus":"calendar.badge.plus","calendar-range":"calendar","calendar-sync":"arrow.triangle.2.circlepath","calendar-x":"calendar.badge.exclamationmark","calendar-x-2":"calendar.badge.exclamationmark",camera:"camera",carrot:"carrot","chart-bar":"chart.bar","chart-column":"chart.bar","chart-line":"chart.xyaxis.line","chart-no-axes-gantt":"chart.bar.doc.horizontal",check:"checkmark","check-circle":"checkmark.circle","check-circle-2":"checkmark.circle","chevron-down":"chevron.down","chevron-left":"chevron.left","chevron-right":"chevron.right","chevron-up":"chevron.up",circle:"circle","circle-alert":"exclamationmark.circle","circle-arrow-out-up-left":"arrow.uturn.backward.circle","circle-minus":"minus.circle","circle-arrow-down":"arrow.down.circle","circle-check":"checkmark.circle","circle-check-big":"checkmark.circle","circle-dot":"smallcircle.filled.circle","circle-help":"questionmark.circle","circle-play":"play.circle","circle-plus":"plus.circle","circle-user":"person.crop.circle","circle-x":"xmark.circle",clapperboard:"film",clipboard:"clipboard","clipboard-list":"list.clipboard",clock:"clock","clock-12":"clock","clock-2":"clock","clock-3":"clock","clock-4":"clock","clock-8":"clock","clock-alert":"clock.badge.exclamationmark",cloud:"cloud","cloud-off":"icloud.slash",coffee:"cup.and.saucer",cookie:"birthday.cake",copy:"doc.on.doc","credit-card":"creditcard","cup-soda":"takeoutbag.and.cup.and.straw",cylinder:"cylinder",disc:"opticaldisc",download:"arrow.down.circle",droplet:"drop",droplets:"drop",drumstick:"fork.knife",dumbbell:"dumbbell",edit:"pencil",egg:"frying.pan","external-link":"arrow.up.right.square",eye:"eye","eye-off":"eye.slash",file:"doc","file-text":"doc.text",filter:"line.3.horizontal.decrease",fish:"fish",flag:"flag",flame:"flame","flower-2":"camera.macro",footprints:"figure.run",gauge:"gauge",gift:"gift","glass-water":"waterbottle",globe:"globe","graduation-cap":"graduationcap","grip-vertical":"line.3.horizontal",hamburger:"takeoutbag.and.cup.and.straw","hand-fist":"hand.raised",heart:"heart","heart-off":"heart.slash","heart-pulse":"heart.text.square","help-circle":"questionmark.circle",history:"clock.arrow.circlepath",home:"house",hourglass:"hourglass",house:"house","id-card":"person.text.rectangle",image:"photo",inbox:"tray",info:"info.circle",layers:"square.3.layers.3d","layout-dashboard":"rectangle.3.group","layout-grid":"square.grid.2x2",leaf:"leaf",library:"books.vertical",link:"link",list:"list.bullet","list-checks":"checklist",loader:"arrow.triangle.2.circlepath","loader-2":"arrow.triangle.2.circlepath","loader-circle":"arrow.triangle.2.circlepath",lock:"lock","log-in":"arrow.right.to.line","log-out":"rectangle.portrait.and.arrow.right",mail:"envelope",map:"map","map-pin":"mappin.and.ellipse",medal:"medal",megaphone:"megaphone",menu:"line.3.horizontal","message-circle":"bubble.left","message-square":"text.bubble","message-square-quote":"quote.bubble","messages-square":"bubble.left.and.bubble.right",mic:"mic",milk:"waterbottle",minus:"minus",moon:"moon","more-horizontal":"ellipsis","more-vertical":"ellipsis",mountain:"mountain.2",music:"music.note","music-2":"music.note",nut:"leaf",package:"shippingbox",pause:"pause","pause-circle":"pause.circle",pencil:"pencil","person-standing":"figure.walk",phone:"phone",play:"play.fill",plug:"powerplug",plus:"plus","plus-circle":"plus.circle","rectangle-horizontal":"rectangle","refresh-cw":"arrow.clockwise",repeat:"repeat","rotate-ccw":"arrow.counterclockwise",route:"point.topleft.down.to.point.bottomright.curvepath",ruler:"ruler",sailboat:"sailboat",salad:"leaf",satellite:"antenna.radiowaves.left.and.right",save:"square.and.arrow.down",scale:"scalemass","scan-line":"barcode.viewfinder",search:"magnifyingglass",send:"paperplane",settings:"gearshape","settings-2":"slider.horizontal.3",share:"square.and.arrow.up","share-2":"square.and.arrow.up",shield:"shield","shield-check":"checkmark.shield","shopping-bag":"bag","shopping-cart":"cart",shuffle:"shuffle","skip-back":"backward.end","skip-forward":"forward.end",sliders:"slider.horizontal.3","sliders-horizontal":"slider.horizontal.3",smartphone:"iphone",snowflake:"snowflake",soup:"mug",sparkles:"sparkles",sprout:"leaf",square:"square",star:"star",stopwatch:"stopwatch",store:"storefront","stretch-horizontal":"rectangle.split.1x2",sun:"sun.max",sunrise:"sunrise",sunset:"sunset",tag:"tag",target:"scope",thermometer:"thermometer.medium","thumbs-up":"hand.thumbsup",timer:"timer",trash:"trash","trash-2":"trash","trending-down":"chart.line.downtrend.xyaxis","trending-up":"chart.line.uptrend.xyaxis","triangle-alert":"exclamationmark.triangle",trophy:"trophy",unlink:"personalhotspot.slash",upload:"arrow.up.circle",user:"person","user-check":"person.crop.circle.badge.checkmark","user-minus":"person.badge.minus","user-plus":"person.badge.plus","user-round":"person","user-round-check":"person.crop.circle.badge.checkmark","user-round-minus":"person.crop.circle.badge.minus","user-round-plus":"person.crop.circle.badge.plus","user-round-x":"person.crop.circle.badge.xmark","user-x":"person.crop.circle.badge.xmark",users:"person.2","users-round":"person.2",utensils:"fork.knife",video:"video","volume-2":"speaker.wave.2",warehouse:"building.2",watch:"applewatch",waves:"figure.pool.swim",weight:"scalemass",wheat:"laurel.leading",wifi:"wifi","wifi-off":"wifi.slash",wind:"wind",wine:"wineglass",x:"xmark","x-circle":"xmark.circle",zap:"bolt"};function ie(t,e=!1){let n=String(t??"").trim();if(!n)return{symbol:"circle",known:!1};if(e)return{symbol:n,known:!0};let r=/^i-([a-z0-9]+)-(.+)$/.exec(n)??/^([a-z0-9]+):(.+)$/.exec(n),s=r?r[1]:"lucide",a=r?r[2]:n;if(s==="lucide"){let l=Cr[a];if(l)return{symbol:l,iconify:`i-lucide-${a}`,known:!0};if(!r&&n.includes("."))return{symbol:n,known:!0}}return{symbol:"circle",iconify:r?n:`i-lucide-${a}`,known:!1}}function Ke(t){return t.split(/\s+/).find((e)=>/^i-[a-z0-9]+-[a-z0-9-]+$/.test(e))}import{generate as he,parse as Or}from"@stacksjs/ts-css/parse";var Pr=/^(?::hover|:active|:visited|:focus|:focus-visible|:focus-within)$/;function Mr(t){let e=t.replace(/\s+/g,"").toLowerCase();if(!e||e==="all"||e==="screen")return{};if(/^(?:screenand)?\(prefers-color-scheme:dark\)$/.test(e))return{dark:!0};if(/^(?:screenand)?\(prefers-color-scheme:light\)$/.test(e))return{};if(/prefers-reduced-motion|\(hover|\(pointer|print|forced-colors|prefers-contrast/.test(e))return"skip";let n=e.replace(/^screenand/,"").split("and"),r={};for(let s of n){let a=/^\((min|max)-width:([\d.]+)(px|rem|em)\)$/.exec(s);if(!a)return;r[a[1]]=Number(a[2])*(a[3]==="px"?1:16)}return r}async function Gt(t,e){let n={},r=new Set,s=(h)=>{if(r.has(h))return;r.add(h),e(h,[...h.matchAll(/\.(-?[a-z_][\w-]*)/gi)].map((m)=>m[1]))},a=(h,m,p)=>{if(!m.trim())return;let y=n[h]??={},S=p.dark?"dark":"light";if(p.min===void 0&&p.max===void 0){y[S]=y[S]?`${y[S]};${m}`:m;return}let b=y.responsive??=[],f=p.min??0,c=b.find((x)=>x.min===f&&x.max===p.max);if(!c)b.push(c={min:f,...p.max===void 0?{}:{max:p.max}});c[S]=c[S]?`${c[S]};${m}`:m};function l(h,m){for(let p of h){if(p.type==="Atrule"){let b=p.name.toLowerCase();if(["font-face","keyframes","-webkit-keyframes","import","charset","property","page","layer"].includes(b)){if(b==="layer"&&p.block)l(p.block.children,m);continue}if(b!=="media"||!p.block){s(`@${b}`);continue}let f=p.prelude?he(p.prelude):"",c=Mr(f);if(c==="skip")continue;if(!c){s(`@media ${f}`);continue}l(p.block.children,{dark:m.dark||c.dark,min:c.min??m.min,max:c.max??m.max});continue}if(p.type!=="Rule"||p.block.type!=="Block")continue;let y=[...p.block.children].filter((b)=>b.type==="Declaration").map((b)=>he(b)).join(";"),S=p.prelude.type==="SelectorList"?[...p.prelude.children].map(he):[he(p.prelude)];for(let b of S){let f=/^(?:(?:html|:root)?\.dark\s+)?((?:\.-?[a-z_][\w-]*)+)((?::{1,2}[a-z-]+)*)$/i.exec(b.trim());if(!f){if(!/^(?:html|:root|body|\*|::?[a-z-]+)/i.test(b.trim()))s(b.trim());continue}let c=f[2];if(c){if(!Pr.test(c))s(b.trim());continue}let x=m.dark||/^(?:(?:html|:root)?\.dark\s+)/i.test(b.trim());a(f[1].slice(1),y,{dark:x,min:m.min,max:m.max})}}}let u="",d=!0;await new HTMLRewriter().on("style",{element(h){u="";let m=h.getAttribute("type");d=!m||m.toLowerCase()==="text/css",h.onEndTag(()=>{if(!d)return;try{let p=Or(u);if(p.type==="StyleSheet")l(p.children,{})}catch{s("invalid stylesheet")}})},text(h){u+=h.text}}).transform(new Response(t)).text();for(let h of Object.values(n))h.responsive?.sort((m,p)=>m.min-p.min||(m.max??1/0)-(p.max??1/0));return n}import{generate as se,parse as Kt}from"@stacksjs/ts-css/parse";async function Jt(t,e){let n={light:new Map,dark:new Map},r=new Set,s=(p)=>{if(!r.has(p))r.add(p),e(p)},a=(p,y,S)=>{for(let b of S){let f=n[b].get(p);if(!f||Number(y.important)>Number(f.important)||y.important===f.important&&y.specificity>=f.specificity)n[b].set(p,y)}},l=(p)=>{if(p.type==="Declaration")return p.property.startsWith("--");if(p.type==="Rule"||p.type==="Atrule")return!!p.block&&[...p.block.children].some(l);return!1},u=(p)=>{let y=p.replace(/\s+/g,"").toLowerCase();if(!y||y==="all"||y==="screen")return["light","dark"];let S=/^(?:screenand)?\(prefers-color-scheme:(light|dark)\)$/.exec(y);return S?[S[1]]:void 0};function d(p,y){for(let S of p){if(!l(S))continue;if(S.type==="Atrule"){let f=S.prelude?se(S.prelude):"",c=S.name.toLowerCase()==="media"?u(f):void 0;if(!c){s(`@${S.name} ${f}`.trim());continue}d(S.block.children,y.filter((x)=>c.includes(x)));continue}if(S.type!=="Rule")continue;let b=S.prelude.type==="SelectorList"?[...S.prelude.children].map(se):[se(S.prelude)];for(let f of b){let c=/^(html|:root)?(?:\.(dark|light))?$/.exec(f.trim());if(!c||!c[1]&&!c[2]){s(f);continue}let x=(c[1]===":root"?10:c[1]?1:0)+(c[2]?10:0);for(let g of S.block.children){if(g.type!=="Declaration"){if(l(g))s(`nested rule in ${f}`);continue}if(!g.property.startsWith("--"))continue;let N={value:se(g.value),important:!!g.important,specificity:x};a(g.property,N,y.filter((v)=>!c[2]||c[2]===v))}}}}let h="",m;return await new HTMLRewriter().on("html",{element(p){let y=p.getAttribute("style");if(!y)return;try{let S=Kt(y,{context:"declarationList"});if(S.type!=="DeclarationList")return;for(let b of S.children)if(b.type==="Declaration"&&b.property.startsWith("--"))a(b.property,{value:se(b.value),important:!!b.important,specificity:1000},["light","dark"])}catch{s("invalid document inline theme")}}}).on("style",{element(p){h="";let y=p.getAttribute("type");m=!y||y.toLowerCase()==="text/css"?u(p.getAttribute("media")??""):void 0,p.onEndTag(()=>{try{let S=Kt(h);if(S.type!=="StyleSheet")return;if(!m){if([...S.children].some(l))s("style type/media");return}d(S.children,m)}catch{s("invalid stylesheet")}})},text(p){h+=p.text}}).transform(new Response(t)).text(),{light:[...n.light].map(([p,y])=>[p,y.value]),dark:[...n.dark].map(([p,y])=>[p,y.value])}}function H(t,e={},n={},r={},s=[]){return{type:t,props:e,style:n,events:r,children:s}}function Yt(t,e,n={}){return{version:"1.0.0",root:t,script:e,meta:{source:n.source||"unknown",compiledAt:n.compiledAt||Date.now(),headwindConfig:n.headwindConfig}}}var Br=/^(?:key(?:down|up|press)|mouse[a-z]+|pointer[a-z]+|dbl(?:click)?|contextmenu|wheel|drag[a-z]*|drop|copy|cut|paste|beforeinput|compositionstart|compositionupdate|compositionend|animation[a-z]+|transition[a-z]+|resize|hashchange|popstate|beforeunload|unload|visibilitychange|selectionchange|selectstart|auxclick)$/,Qt=new Set(["script","style","head","meta","link","title","base","noscript"]),Zt=new Set(["template","body","html","main","fragment"]),ye=new Set,Lr=new Set(["onBlur","onChange","onChangeText","onDismiss","onEnd","onEndEditing","onEndReached","onError","onFocus","onPageSelected","onLayout","onLoad","onLoadEnd","onLoadStart","onLongPress","onMomentumScrollBegin","onMomentumScrollEnd","onPause","onPictureInPictureStart","onPictureInPictureStop","onPlay","onPress","onPressIn","onPressOut","onProgress","onRequestClose","onRegionChangeComplete","onRefresh","onScroll","onScrollBeginDrag","onScrollEndDrag","onShow","onSlidingComplete","onSubmitEditing","onValueChange"]),be=new Set(["Sidebar","SplitView","View","ScrollView","SafeAreaView","KeyboardAvoidingView","Text","TextInput","Button","Link","TouchableOpacity","TouchableHighlight","Pressable","Icon","Image","ImageBackground","Video","Map","MapPolyline","MapPolygon","MapMarker","FlatList","SectionList","Switch","Checkbox","Slider","Picker","SegmentedControl","DatePicker","Modal","ActivityIndicator","StatusBar","RefreshControl",...ze]),Dr=new Map([["data","data"],["sections","sections"],["renderitem","renderItem"],["rendersectionheader","renderSectionHeader"],["keyextractor","keyExtractor"]]),en=new Set(["View","SafeAreaView","ScrollView","KeyboardAvoidingView"]),$r={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:" ","#39":"'","#x27":"'"};function Z(t){return t.replace(/&(#x?[0-9a-f]+|\w+);/gi,(e,n)=>{let r=$r[n.toLowerCase()];if(r!==void 0)return r;if(n[0]==="#"){let s=n[1]==="x"||n[1]==="X"?Number.parseInt(n.slice(2),16):Number.parseInt(n.slice(1),10);return Number.isFinite(s)?String.fromCodePoint(s):e}return e})}function Je(t){if(!t.includes("{{"))return null;let e=[],n=0;for(let r of t.matchAll(/\{\{([\s\S]+?)\}\}/g)){if(r.index>n)e.push(JSON.stringify(t.slice(n,r.index)));e.push(`(${r[1].trim()})`),n=r.index+r[0].length}if(!e.some((r)=>r.startsWith("(")))return null;if(n<t.length)e.push(JSON.stringify(t.slice(n)));if(e.length===1)return e[0].slice(1,-1);return`[${e.join(", ")}].map(__stxPart => __stxPart == null ? '' : __stxPart).join('')`}function nn(t,e,n,r={}){let s=r.inheritedVariables,a={},l={},u={},d=[],h="",m={};for(let[b,f]of e){let c=b.toLowerCase();if(c==="class"||c==="classname"){h=h?`${h} ${f}`:f;continue}if(c==="style"){m={...m,...Vr(t,f,n,{...r,onVariables(v){s=v,r.onVariables?.(v)}})};continue}if(c.startsWith(":")||c.startsWith("x-")&&c!=="x-cloak"){u[c.startsWith(":")?c.slice(1):c.slice(2)]=Z(f);continue}if(c==="x-cloak")continue;if(c.startsWith("@")||c.startsWith("v-on:")){let v=c.startsWith("@")?c.slice(1):c.slice(5),[k]=v.split("."),w=Ve[k]??(k.startsWith("on")?k:"");if(!w||!Lr.has(w)){if(Br.test(k)||/\./.test(v))n.push({kind:"unread-event",tag:t,name:b});continue}l[w]=Z(f);continue}if(c==="key"){a.key=f;continue}let x=Z(f),g=Je(x);if(g){u[c]=g,d.push(c);continue}let N=Ge(b);if(x===""&&Ut.has(N)){a[N]=!0;continue}try{a[N]=JSON.parse(x)}catch{a[N]=x}}let p=a["data-native"]?a["data-native"]==="TextInput":t==="textarea"||t==="input"&&!["checkbox","radio","hidden"].includes(String(a.type??"text").toLowerCase()),y=h?ge(h,s,{focus:p,focusWithin:!0,rules:r.rules}):void 0;for(let b of new Set(y?.unknown??[]))n.push({kind:"unknown-class",tag:t,name:b});let S=Oe({...y?.style,...m});return{props:a,style:S,events:l,bindings:u,classes:h,inline:m,templated:d}}function Vr(t,e,n,r){return de(Z(e),(s)=>n.push({...s,tag:t}),r)}function Ye(t){return t.children.map((e)=>typeof e==="string"?e:Ye(e)).join("").replace(/\s+/g," ").trim()}function jr(t,e){let n=t.node;if(n.props["data-stx-native-template"])return n.children=n.children.map((a)=>typeof a==="string"?H("Text",{},{},{},[a]):a),n;let r=n.children.filter((a)=>typeof a!=="string"),s=n.children.filter((a)=>typeof a==="string").join("").trim();if(t.tag==="button"&&n.type==="Button"&&!t.declaredNative&&r.length>0)return n.type="Pressable",n.props.role??="button",n.children=n.children.flatMap((a)=>typeof a==="string"?a.trim()?[H("Text",{},{},{},[a.trim()])]:[]:[a]),n;if(n.type==="Button"&&r.length===0)return n.children=s?[s]:[],n;if(n.type==="Svg"||n.type==="G")return n.children=r,n;if(n.type==="SvgText"){let a=Ye(n);return n.children=a?[a]:[],n}if(en.has(n.type)&&r.length===0&&s)return n.type="Text",n.children=[s],n;if(n.type==="Text"&&!s&&r.length===0&&typeof n.props.text==="string")return n.children=n.props.text?[n.props.text]:[],delete n.props.text,n;if(n.type==="Text"&&r.length>0){if(/(?:^|\s)(?:inline-)?(?:flex|grid)(?:\s|$)/.test(n._classes??"")||r.some((u)=>u.type!=="Text"))return n.type="View",n.children=n.children.map((u)=>typeof u==="string"?H("Text",{},{},{},[u]):u),n;let l=Ye(n);return e.push({kind:"flattened-text",tag:t.tag}),n.children=l?[l]:[],n}if(en.has(n.type)&&r.length>0)n.children=r;return n}async function Wr(t,e={}){t=await oe(t);let n=[],r=await Jt(t,(c)=>n.push({kind:"unsupported-theme-rule",tag:"style",name:c})),s=re(r.light).computed(),a=new Set([...t.matchAll(/\sclass(?:name)?\s*=\s*"([^"]*)"/gi)].flatMap((c)=>c[1].split(/\s+/))),l=await Gt(t,(c,x)=>{if(!x.length||x.some((g)=>a.has(g)))n.push({kind:"unsupported-style-rule",tag:"style",name:c})}),u=[],d=[],h=new Set;function m(c){let x=d[d.length-1];if(!x)u.push(c);else if(!x.dropped)x.node.children.push(c)}function p(c){let x=(N)=>{if(c.tag!=="html"&&c.node._styleSource)N._styleAncestors=[c.node._styleSource,...N._styleAncestors??[]]};if(c.node.bindings&&Object.keys(c.node.bindings).length>0){let N=c.node.children,v=N.filter((w)=>typeof w!=="string"),k=v.length===1&&v.length===N.length?v[0]:H("View",{},{},{},N);if(k.bindings={...c.node.bindings,...k.bindings},k.bindingId===void 0&&c.node.bindingId!==void 0)k.bindingId=c.node.bindingId;x(k),m(k);return}let g=d[d.length-1];for(let N of c.node.children){if(typeof N==="string"){if(g&&!g.dropped)g.node.children.push(N);continue}if(x(N),!g)u.push(N);else if(!g.dropped)g.node.children.push(N)}}function y(c,x){let g=d[d.length-1];if(c==="svg"||g?.svg)return S(c,x,g);let N=Qt.has(c)&&!ye.has(c),v=d[d.length-1]?.dropped??!1,k=g?.variables??s,{props:w,style:_,events:I,bindings:B,classes:R,inline:T,templated:E}=N||v?{props:{},style:{},events:{},bindings:{},classes:"",inline:{},templated:[]}:nn(c,x,n,{inheritedVariables:k,onVariables:(C)=>{k=C},rules:l});if(c==="html")k=s;let P=w["data-native"],j=c==="template"&&x.some(([C])=>[":for","x-for","@for"].includes(C)),A;if(j)A="View",w["data-stx-native-template"]=!0;else if(typeof P==="string"&&be.has(P))A=P,delete w["data-native"];else{if(A=ye.has(c)?"View":qt(c),(c==="i"||c==="span")&&/(?:^|\s)i-[a-z0-9]+-[a-z0-9-]+(?:\s|$)/.test(R))A="Icon";else if(c==="i"&&x.some(([C])=>/^(?::|x-)class$/i.test(C)))A="Icon";if(c==="input"){let C=String(w.type??"text").toLowerCase();if(C==="checkbox")A="Checkbox",w.formValue=w.value??"on",w.checked=w.checked===""||w.checked===!0||w.checked==="true",w.value=w.checked;else if(C==="hidden")A="View",_.display="none",T.display="none";else if(C==="radio")A="View",w.accessibilityRole="radio",n.push({kind:"unsupported-control",tag:c,name:"input:radio"})}}if(!v&&A===c&&!be.has(A)&&!Qt.has(c)&&!Zt.has(c)&&!h.has(c))h.add(c),n.push({kind:"unmapped-tag",tag:c});if((N||ye.has(c))&&!h.has(`drop:${c}`))h.add(`drop:${c}`),n.push({kind:"dropped-subtree",tag:c});if(A==="View"&&/(?:^|\s)overflow-x-(?:auto|scroll)(?:\s|$)/.test(R))A="ScrollView",w.horizontal=!0,w.showsHorizontalScrollIndicator??=!1;else if(A==="View"&&/(?:^|\s)overflow-y-(?:auto|scroll)(?:\s|$)/.test(R))A="ScrollView";if(c==="form")w["data-stx-form"]=!0;if(c==="button"&&w.type===void 0)w.type="submit";if((A==="Video"||A==="Image")&&w.source===void 0&&w.src!==void 0)w.source=w.src,delete w.src;if(A==="Icon"){let C=ge(R).icon,O=ie(String(w.symbol||w.name||C||""),Boolean(w.symbol));if(w.symbol=O.symbol,O.iconify)w.iconify=O.iconify}if(A==="FlatList"||A==="SectionList"){let C=new Set([...Object.keys(w),...Object.keys(B)].map((O)=>O.toLowerCase()));for(let[O,L]of Dr)if(C.has(O))n.push({kind:"unsupported-list-prop",tag:A,name:L})}let M=H(A,w,_,I);M._inlineStyle=T,M._styleSource=Z(x.find(([C])=>C==="style")?.[1]??"");let X=w["data-stx-b"];if(typeof X==="number"&&Number.isInteger(X))M.bindingId=X;if(delete w["data-stx-b"],R)M._classes=R;if(Object.keys(B).length>0)M.bindings=B;if(E.length>0)M._templated=E;if(typeof w.key==="string")M.key=w.key,delete w.key;return{tag:c,node:M,variables:k,declaredNative:typeof P==="string"&&be.has(P),dropped:N||v||ye.has(c)||A==="Video",discard:N||v,unwrap:Zt.has(c)&&!j&&A!=="ScrollView"&&!(typeof P==="string"&&be.has(P))}}function S(c,x,g){let N=g?.dropped??!1,v=Fe[c];if(N||!v){if(!N&&!h.has(`drop:${c}`))h.add(`drop:${c}`),n.push({kind:Ft.has(c)?"dropped-subtree":"unmapped-tag",tag:c});return{tag:c,node:H("G",{},{},{}),svg:!0,dropped:!0,discard:!0,unwrap:!1}}let k=g?.variables??s,{props:w,style:_,events:I,bindings:B,classes:R,inline:T,templated:E}=nn(c,x,n,{inheritedVariables:k,onVariables:(M)=>{k=M},rules:l});if(v==="Svg"){let M=Xe(w.viewBox);if(M)w.viewBox=M;else delete w.viewBox;for(let X of["width","height"]){if(typeof w[X]==="number"&&_[X]===void 0)_[X]=w[X];delete w[X]}}if(typeof w.strokeDasharray==="string"||typeof w.strokeDasharray==="number"){let M=String(w.strokeDasharray).split(/[\s,]+/).map(Number).filter(Number.isFinite);w.strokeDasharray=M}let P=Ue(v,w);if(P)w.geometry=P;if(v==="Animate")He(w);let j=H(v,w,_,I);j._inlineStyle=T,j._styleSource=Z(x.find(([M])=>M==="style")?.[1]??"");let A=w["data-stx-b"];if(typeof A==="number"&&Number.isInteger(A))j.bindingId=A;if(delete w["data-stx-b"],R)j._classes=R;if(Object.keys(B).length>0)j.bindings=B;if(E.length>0)j._templated=E;if(typeof w.key==="string")j.key=w.key,delete w.key;return{tag:c,node:j,variables:k,svg:!0,dropped:!1,discard:!1,unwrap:!1}}if(await new HTMLRewriter().on("*",{element(c){let x=c.tagName.toLowerCase(),g=y(x,[...c.attributes]),N=!0;try{c.onEndTag(()=>{if(d.pop(),g.discard)return;if(g.unwrap)p(g);else m(jr(g,n))})}catch{N=!1}if(N)d.push(g);else if(!g.discard)m(g.node)},text(c){let x=d[d.length-1];if(!x||x.dropped)return;let g=Fr(Z(c.text),x.inMustache===!0);x.inMustache=g.inside;let N=g.text;if(!N.trim())return;x.node.children.push(N)}}).transform(new Response(t)).text(),u.length===0)throw Error(`No element to translate in the rendered output of ${e.source??"unknown"}`);let b=u.length===1?u[0]:H("View",{},{},{},u);if(r.light.length||r.dark.length)b._stylesheetTheme=r;if(Object.keys(l).length)b._stylesheetRules=l;let f=(c)=>{zr(c);let x=De(c.props);if(Object.keys(x).length)c._accessibilitySource=Object.fromEntries(Le.filter((g)=>(g in c.props)).map((g)=>[g,c.props[g]])),Object.assign(c.props,x);Vt(c);for(let g of c.children)if(typeof g!=="string")f(g)};return f(b),{root:b,diagnostics:n}}function Fr(t,e){let n="",r=0;while(r<t.length){if(!e&&t.startsWith("{{",r)){e=!0,n+="{{",r+=2;continue}if(e&&t.startsWith("}}",r)){e=!1,n+="}}",r+=2;continue}let s=t[r];if(!e&&/\s/.test(s)){if(!n.endsWith(" "))n+=" ";while(r<t.length&&/\s/.test(t[r]))r++;continue}n+=s,r++}return{text:n,inside:e}}function zr(t){if(t.props["data-stx-native-template"])return;if(t.bindings?.text||t.children.length===0)return;let e=t.children.filter((r)=>typeof r==="string");if(e.length<t.children.length){let r=t.type==="Button"||t.type==="Text"?null:Je(e.join(""));if(!r)return;t.bindings={...t.bindings,text:r},t._templated=[...t._templated??[],"text"],t.children=t.children.filter((s)=>typeof s!=="string");return}let n=Je(t.children.join(""));if(!n)return;if(t.type!=="Button")t.bindings={...t.bindings,text:n},t._templated=[...t._templated??[],"text"],t.children=[];else{t.type="Pressable",t.props.role??="button";let r=H("Text",{},{},{},[]);r.bindings={text:n},r._templated=["text"],t.children=[r]}}async function rn(t,e={}){let{root:n,diagnostics:r}=await Wr(t,e),s=e.script??{exports:{},functions:[],code:""};return{document:Yt(n,s,{source:e.source??"unknown"}),diagnostics:r}}async function oe(t){if(!/\bdata-native-exclude\b/i.test(t))return t;return new HTMLRewriter().on("[data-native-exclude]",{element(e){e.remove()}}).transform(new Response(t)).text()}var sn=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,Xr=/(?:^|\n)\s*(?:export\s+)?(?:async\s+)?function\s*\*?\s*([$\w]+)\s*\(/g,Ur=/(?:^|\n)\s*(?:export\s+)?(?:const|let|var)\s+([$\w]+)\s*=\s*(?:async\s*)?(?:\([^)]*\)|[$\w]+)\s*=>/g,on=/(?:^|\n)\s*(?:export\s+)?const\s+([$\w]+)\s*=\s*(-?[\d.]+|true|false|'[^']*'|"[^"]*")\s*(?=;|\n|$)/g;function Qe(t){let e=[];sn.lastIndex=0;for(let a of t.matchAll(sn)){let l=a[1]??"";if(/\bserver\b/.test(l))continue;e.push(a[2].trim())}let n=e.filter(Boolean).join(`
|
|
4
4
|
|
|
5
5
|
`),r=[];for(let a of[Xr,Ur]){a.lastIndex=0;for(let l of n.matchAll(a))if(!r.includes(l[1]))r.push(l[1])}let s={};on.lastIndex=0;for(let a of n.matchAll(on)){let l=a[2];try{s[a[1]]=JSON.parse(l.replace(/^'(.*)'$/,'"$1"'))}catch{s[a[1]]=l}}return{exports:s,functions:r,code:n}}var ne="[data-native-chrome]";function Hr(t){let e=(t??"").trim().toLowerCase();return e==="tabs"||e==="bar"?e:""}function an(t){let e=ie(t);return e.known||/^i-|:/.test(t)?e.symbol:t}function Gr(t){let e=(t??"").trim();if(!e.startsWith("/")||e.startsWith("//"))return null;return e}function cn(t){return t.replace(/ /g," ").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/�?39;/g,"'").replace(/\s+/g," ").trim()}async function ln(t){if(!/\bdata-native-chrome\b/i.test(t))return{html:t,chrome:null};let e=[],n=[],r=new Set,s=[],a=[],l=null,u=null,d=!1;if(await new HTMLRewriter().on(ne,{element(p){d=!0;let y=p.getAttribute("data-stx-scope");if(y)r.add(y);e.push(Hr(p.getAttribute("data-native-chrome"))),p.onEndTag(()=>{e.pop()})}}).on("[data-stx-component-wrapper]",{element(p){let y={scope:p.getAttribute("data-stx-scope")??"",children:0,chrome:0};s.push(y),p.onEndTag(()=>{if(s.pop(),y.scope&&y.children>0&&y.chrome===y.children)r.add(y.scope)})}}).on("[data-stx-component-wrapper] > *",{element(p){let y=s[s.length-1];if(!y)return;if(y.children++,p.hasAttribute("data-native-chrome"))y.chrome++}}).on(`${ne} [data-stx-scope]`,{element(p){let y=p.getAttribute("data-stx-scope");if(y)r.add(y)}}).on(`${ne} script[data-stx-component-factories]`,{element(p){let y=[...p.attributes].map(([S,b])=>b===""?S:`${S}="${b.replace(/"/g,""")}"`).join(" ");l="",p.onEndTag(()=>{a.push(`<script ${y}>${l}</script>`),l=null})},text(p){if(l!==null)l+=p.text}}).on(`${ne} a`,{element(p){let y=Gr(p.getAttribute("href")),S=e[e.length-1]??"";if(!y||!S)return;let b=p.getAttribute("data-native-icon")||Ke(p.getAttribute("class")??""),f={path:y,title:"",region:S,label:p.getAttribute("aria-label")||p.getAttribute("title")||"",...b?{symbol:an(b)}:{}};u=f,p.onEndTag(()=>{if(f.title=cn(f.title)||cn(f.label),n.push(f),u===f)u=null})},text(p){if(u)u.title+=p.text}}).on(`${ne} a *`,{element(p){if(!u||u.symbol)return;let y=p.getAttribute("data-native-icon")||Ke(p.getAttribute("class")??"");if(y)u.symbol=an(y)}}).transform(new Response(t)).text(),!d)return{html:t,chrome:null};let h=await new HTMLRewriter().on(ne,{element(p){p.remove()}}).on("script[data-stx-owner]",{element(p){if(r.has(p.getAttribute("data-stx-owner")??""))p.remove()}}).transform(new Response(t)).text(),m=(p)=>n.filter((y)=>y.region===p).map(({path:y,title:S,symbol:b})=>({path:y,title:S,...b?{symbol:b}:{}}));return{html:a.join(`
|
|
6
|
-
`)+h,chrome:{tabs:m("tabs"),bar:m("bar")}}}var ve=/<script\b([^>]*\bdata-stx-scoped\b[^>]*)>([\s\S]*?)<\/script>/gi,un=/function\s+(__stx_setup_[\w$]+)\s*\(/,Kr=/\bdata-stx-owner\s*=\s*["']([^"']+)["']/i;function Ze(t){ve.lastIndex=0;for(let e of t.matchAll(ve)){let n=e[2].trim(),r=un.exec(n)?.[1];if(r)return{name:r,code:n}}return null}function dn(t){let e=[];ve.lastIndex=0;for(let n of t.matchAll(ve)){let r=n[1],s=n[2].trim(),a=Kr.exec(r)?.[1],l=/\bdata-stx-component-factories\b/i.test(r);if(!s||!a&&!l&&!un.test(s))continue;e.push(a?{code:s,owner:a}:{code:s})}return e}function Yr(){let t=[K.join(import.meta.dir,"..","primitives"),K.join(import.meta.dir,"native","primitives")];for(let e of t)if(Jr(K.join(e,"View.stx")))return e;return t[0]}async function Qr(t,e,n={}){t=await oe(t);let r=n.root??K.dirname(e),s=await i(r),a=typeof s.root==="string"&&s.root?K.resolve(r,s.root):r,l=(R,T)=>R?K.isAbsolute(R)?R:K.resolve(a,R):K.join(a,T),u={root:r,layoutsDir:l(s.layoutsDir,"layouts"),partialsDir:l(s.partialsDir,"partials"),storesDir:l(s.storesDir,"stores"),componentsDir:n.componentsDir??(s.componentsDir?l(s.componentsDir,"components"):K.join(a,"components")),buildMode:"serve",cache:!1,_targetComponentDirs:[Yr()],_targetComponentFallbackNames:["Button","Checkbox","Switch","TextInput","Video"],_nativeHostAttrs:!0,skipEventDirectives:!0,_pluginComponentDirs:s._pluginComponentDirs??[]},d={...n.context??{},__stx_inject_css:!1,__stx_native_screen:!0},h=new Set([e]),m=await o(t,d,e,u,h),{html:p,chrome:y}=await ln(await oe(m)),{html:S,manifest:b}=at(await oe(p)),f=await Pt(r),{document:c,diagnostics:x}=await rn(f?`<style>${f}</style>${S}`:S,{source:e,script:Qe(t)});Zr(c.root,b);let g=d.__stx_runtime_head;if(typeof g?.title==="string"&&g.title.trim())c.title=g.title.trim();if(y)c.chrome=y;let N=Ze(S),v=dn(S);if(Qe(t).code.trim()){let R=await qr(t,e,n.context,{forceClientSetup:!0}),T=Ze(R.setupCode??"");if(N=T??N,T&&!v.some((E)=>E.code===T.code))v.push({code:T.code})}let{buildModuleRegistryScript:k,registeredModuleIdsIn:w}=await import("./chunk-
|
|
6
|
+
`)+h,chrome:{tabs:m("tabs"),bar:m("bar")}}}var ve=/<script\b([^>]*\bdata-stx-scoped\b[^>]*)>([\s\S]*?)<\/script>/gi,un=/function\s+(__stx_setup_[\w$]+)\s*\(/,Kr=/\bdata-stx-owner\s*=\s*["']([^"']+)["']/i;function Ze(t){ve.lastIndex=0;for(let e of t.matchAll(ve)){let n=e[2].trim(),r=un.exec(n)?.[1];if(r)return{name:r,code:n}}return null}function dn(t){let e=[];ve.lastIndex=0;for(let n of t.matchAll(ve)){let r=n[1],s=n[2].trim(),a=Kr.exec(r)?.[1],l=/\bdata-stx-component-factories\b/i.test(r);if(!s||!a&&!l&&!un.test(s))continue;e.push(a?{code:s,owner:a}:{code:s})}return e}function Yr(){let t=[K.join(import.meta.dir,"..","primitives"),K.join(import.meta.dir,"native","primitives")];for(let e of t)if(Jr(K.join(e,"View.stx")))return e;return t[0]}async function Qr(t,e,n={}){t=await oe(t);let r=n.root??K.dirname(e),s=await i(r),a=typeof s.root==="string"&&s.root?K.resolve(r,s.root):r,l=(R,T)=>R?K.isAbsolute(R)?R:K.resolve(a,R):K.join(a,T),u={root:r,layoutsDir:l(s.layoutsDir,"layouts"),partialsDir:l(s.partialsDir,"partials"),storesDir:l(s.storesDir,"stores"),componentsDir:n.componentsDir??(s.componentsDir?l(s.componentsDir,"components"):K.join(a,"components")),buildMode:"serve",cache:!1,_targetComponentDirs:[Yr()],_targetComponentFallbackNames:["Button","Checkbox","Switch","TextInput","Video"],_nativeHostAttrs:!0,skipEventDirectives:!0,_pluginComponentDirs:s._pluginComponentDirs??[]},d={...n.context??{},__stx_inject_css:!1,__stx_native_screen:!0},h=new Set([e]),m=await o(t,d,e,u,h),{html:p,chrome:y}=await ln(await oe(m)),{html:S,manifest:b}=at(await oe(p)),f=await Pt(r),{document:c,diagnostics:x}=await rn(f?`<style>${f}</style>${S}`:S,{source:e,script:Qe(t)});Zr(c.root,b);let g=d.__stx_runtime_head;if(typeof g?.title==="string"&&g.title.trim())c.title=g.title.trim();if(y)c.chrome=y;let N=Ze(S),v=dn(S);if(Qe(t).code.trim()){let R=await qr(t,e,n.context,{forceClientSetup:!0}),T=Ze(R.setupCode??"");if(N=T??N,T&&!v.some((E)=>E.code===T.code))v.push({code:T.code})}let{buildModuleRegistryScript:k,registeredModuleIdsIn:w}=await import("./chunk-sptewgky.js"),_=async()=>{let R=[],T=await k(w(...v.map((E)=>E.code)),{collectInputs:R});for(let E of R)h.add(E);return T},I=await _();if([...v.map((R)=>R.code),I??""].some((R)=>/\buseStore\s*\(/.test(R))&&/<script\b[^>]*\bdata-stx-stores\b/i.test(S)){let{getStoreScript:R}=await import("./chunk-jjet6qxq.js"),T=await R(u.storesDir);if(T){v.unshift({code:T});for(let E of new Bun.Glob("*.ts").scanSync({cwd:u.storesDir,absolute:!0}))h.add(E);I=await _()}}if(I)v.unshift({code:I});return{document:c,manifest:b,setup:N,scripts:v,diagnostics:x,html:S,dependencies:[...h]}}function Zr(t,e){let n=new Map(e.entries.map((a)=>[a.id,a])),r=e.entries.reduce((a,l)=>Math.max(a,l.id),-1)+1,s=(a)=>{if(a._templated?.length&&a.bindings){if(a.bindingId===void 0||!n.has(a.bindingId)){let u={id:a.bindingId??r++,bindings:[]};a.bindingId=u.id,n.set(u.id,u),e.entries.push(u)}let l=n.get(a.bindingId);for(let u of a._templated){let d=`:${u}`,h=ke(d);if(h&&!l.bindings.some((m)=>m.name===d))l.bindings.push({name:d,value:a.bindings[u],kind:h})}}for(let l of a.children)if(typeof l!=="string")s(l)};s(t)}async function Se(t,e={}){return Qr(await Bun.file(t).text(),t,e)}var Os=Symbol("stx.nativeWebStorage.raw");var ae="__app";async function ii(t){try{let{loadCssEngineConfig:e}=await import("./chunk-78d5tn4r.js");return yt(await e(t))}catch{return{}}}var we="__runtime",si="__messages";function et(t){let n=[D.join(import.meta.dir,"..","runtime",`${t}.ts`),D.join(import.meta.dir,"..","runtime",`${t}.js`),D.join(import.meta.dir,"native","runtime",`${t}.js`)].find((r)=>nt(r));if(!n)throw Error(`Native runtime module ${t} is missing`);return n}async function tt(t,e,n,r,s){let a={name:"stx-screen-inputs",setup(u){u.onLoad({filter:/.*/,namespace:"file"},({path:d})=>{r.add(d);let h=s?.get(d);return h===void 0?void 0:{contents:h,loader:"js"}})}},l=await Bun.build({entrypoints:[t],target:"browser",format:"iife",minify:n,plugins:[a,...e],define:{"process.env.NODE_ENV":JSON.stringify(n?"production":"development")}});if(!l.success){let u=l.logs.map((d)=>String(d.message??d)).join(`
|
|
7
7
|
`);throw Error(`Could not bundle ${t}:
|
|
8
8
|
${u}`)}return(await l.outputs[0].text()).trim()}var oi=/^[\w-]+(?:\/[\w-]+)*$/,ai=/^[\w-]+$/;async function ci(t,e){let n=D.resolve(t,e.dir);if(!e.languages?.length)throw Error("messages.languages must name at least one language");let r=new Map,s=new Map;for(let a of e.languages){if(!ai.test(a))throw Error(`messages: "${a}" is not a language directory name`);let l=D.join(n,a);if(!nt(l))throw Error(`messages: ${D.relative(t,l)} does not exist`);let u=new Map;for(let d of[...new Bun.Glob("**/*.{ts,js,mjs,json}").scanSync({cwd:l})].sort()){if(/\.(?:test|spec|d)\.[^.]+$/.test(d))continue;let h=d.replace(/\.[^./]+$/,"").split(D.sep).join("/");if(!oi.test(h))throw Error(`messages: ${a}/${d} is not an area name`);if(u.has(h))throw Error(`messages: ${a}/${h} is defined twice`);let m=D.join(l,d),p=await import(m),y=Object.keys(p).filter((f)=>f!=="default");if(y.length)throw Error(`messages: ${a}/${d} exports ${y.join(", ")}; a message module exports its messages as default, and nothing else`);let S=p.default,b=S!==null&&typeof S==="object"&&!Array.isArray(S)?JSON.stringify(S):void 0;if(b===void 0||!Bun.deepEquals(JSON.parse(b),S,!0))throw Error(`messages: ${a}/${d} must export plain data (an object JSON can hold) as default`);u.set(h,b),r.set(m,{language:a,area:h})}s.set(a,u)}return{files:r,data:s}}function li(t,e){return`export default globalThis.__stxNativeRuntime.messages(${JSON.stringify(t)}, ${JSON.stringify(e)});`}function ui(t){let e=new Map;for(let[n,{language:r,area:s}]of t.files){let a=li(r,s);e.set(n,a),e.set(ri(n),a)}return e}function di(t){let e=new Set;for(let n of t.matchAll(/__stxNativeRuntime\.messages\(\s*"[\w-]+"\s*,\s*"([\w/-]+)"\s*\)/g))e.add(n[1]);return[...e].sort()}function fi(t,e){let n=D.isAbsolute(t.meta.source)?D.relative(e,t.meta.source).split(D.sep).join("/"):t.meta.source;return{...t,script:{exports:t.script.exports,functions:[],code:""},meta:{...t.meta,source:n,compiledAt:0}}}async function rt(t){let e=Object.keys(t.screens);if(e.length===0)throw Error("screens must name at least one .stx file");let n=t.routed??!0,r=t.initialScreen??e[0];if(!t.screens[r])throw Error(`Initial screen ${r} is not in screens`);let s=D.resolve(t.root??process.cwd());if(t.messages&&!t.routesDir)throw Error("messages ship a language at a time beside route files: they need routesDir");if(t.sharedRuntime&&!t.routesDir)throw Error("sharedRuntime is the route files' runtime: it needs routesDir");if(t.messages&&!t.sharedRuntime)throw Error("messages are read by the shared runtime: they need sharedRuntime");if(t.messages&&t.outFile)throw Error("messages leave the languages out of the screens' code, which the one-file bundle cannot read: build it without messages");let a=t.messages?await ci(s,t.messages):null,l=t.styleConfig??await ii(s),u=a?ui(a):null,d=[],h=async()=>{for(let T of e){let E=D.resolve(s,t.screens[T]);if(!E.endsWith(".stx"))throw Error(`Screen ${T} must name a .stx file`);d.push({name:T,file:E,compiled:await Se(E,{root:s})})}};await ht(l,()=>u?Xs(u,h):h());let m=et("jsc-globals"),p=et("shared-screen"),y=t.app?D.resolve(s,t.app):null;if(y&&!nt(y))throw Error(`The app script ${t.app} does not exist`);if(y&&!n)throw Error("An app script needs a routed bundle");if(y&&t.screens[ae])throw Error(`${ae} is the app script's route, not a screen name`);let S=t.browser;if(t.screens[we])throw Error(`${we} is the runtime prelude's file, not a screen name`);let b=ft();if(S&&t.routesDir)throw Error("A browser screen is one route; routesDir is for device hosts");let f=(T,E,P)=>{let j=n?`var routeName = g.__stxNativeRoute || ${JSON.stringify(r)};
|
|
9
9
|
var isApp = ${y?`routeName === ${JSON.stringify(ae)}`:"false"};
|