@stacksjs/stx 0.2.908 → 0.2.910
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-tpryfx8t.js → chunk-13kfjnyn.js} +4 -4
- package/dist/chunk-1a911c4c.js +2 -0
- package/dist/{chunk-6mw288vd.js → chunk-24hrd8sg.js} +1 -1
- package/dist/{chunk-6756txp1.js → chunk-29trx6h3.js} +1 -1
- package/dist/{chunk-kt3f4rpy.js → chunk-2cbrcb9m.js} +1 -1
- package/dist/{chunk-jg5xc2m1.js → chunk-2r84qtat.js} +2 -2
- package/dist/{chunk-amye7vb0.js → chunk-3760wpvw.js} +1 -1
- package/dist/chunk-3rzpkjmn.js +2 -0
- package/dist/{chunk-kydh790y.js → chunk-44qcbbc4.js} +1 -1
- package/dist/{chunk-1pdntpwe.js → chunk-4ccbj4z6.js} +1 -1
- package/dist/{chunk-d8mnaesb.js → chunk-4kh0616n.js} +4 -4
- package/dist/{chunk-4hrryats.js → chunk-4zw9trtx.js} +1 -1
- package/dist/{chunk-q4nk8sq2.js → chunk-5k55yk8g.js} +1 -1
- package/dist/{chunk-y9xq82ep.js → chunk-688hf1mx.js} +1 -1
- package/dist/chunk-6w9sgs52.js +2 -0
- package/dist/{chunk-zkp5awqw.js → chunk-7apr0ww2.js} +1 -1
- package/dist/chunk-7w9ksdbp.js +2 -0
- package/dist/{chunk-f2yqqpvr.js → chunk-850b0cxa.js} +1 -1
- package/dist/{chunk-3qneemwh.js → chunk-87aqcw1w.js} +1 -1
- package/dist/{chunk-ddn98yz4.js → chunk-8d6wkfdx.js} +1 -1
- package/dist/{chunk-4ajsp5dp.js → chunk-94k80qpp.js} +1 -1
- package/dist/{chunk-trnw1tg5.js → chunk-9grwqzpe.js} +1 -1
- package/dist/{chunk-xqe3c7pa.js → chunk-9nf58keq.js} +1 -1
- package/dist/chunk-9yvhj108.js +2 -0
- package/dist/{chunk-sxqha69q.js → chunk-a259mfax.js} +2 -2
- package/dist/{chunk-vkxrsy13.js → chunk-ah615efp.js} +1 -1
- package/dist/{chunk-c0kgwh4k.js → chunk-anj2j86n.js} +2 -2
- package/dist/{chunk-xwarwkaw.js → chunk-azyq6fds.js} +1 -1
- package/dist/{chunk-f74qzgp8.js → chunk-ba27s9vr.js} +1 -1
- package/dist/{chunk-1x0wcskp.js → chunk-c829tgwv.js} +1 -1
- package/dist/{chunk-14497kj1.js → chunk-caaexbqy.js} +1 -1
- package/dist/{chunk-vqys4n8f.js → chunk-ccq7d7ar.js} +1 -1
- package/dist/{chunk-mrx20xza.js → chunk-cd2jc724.js} +1 -1
- package/dist/chunk-cf4apy9s.js +3 -0
- package/dist/{chunk-f3msm5tk.js → chunk-cqcxj08t.js} +1 -1
- package/dist/{chunk-qpf782pt.js → chunk-cw7vnkc8.js} +1 -1
- package/dist/{chunk-a0esj80g.js → chunk-d5szrgdq.js} +1 -1
- package/dist/{chunk-skxkqh9a.js → chunk-dh4p07cc.js} +1 -1
- package/dist/{chunk-s91tcznf.js → chunk-dqt1kw68.js} +1 -1
- package/dist/{chunk-p2b90rz9.js → chunk-e4fseqnv.js} +1 -1
- package/dist/{chunk-69wpv1pr.js → chunk-g17g6w1t.js} +2 -2
- package/dist/{chunk-0ek3s3b6.js → chunk-ggez55jb.js} +107 -107
- package/dist/{chunk-av45fw8a.js → chunk-gt3426kc.js} +1 -1
- package/dist/{chunk-v25gm9d9.js → chunk-gwvkqf5r.js} +4 -4
- package/dist/{chunk-xn8eabng.js → chunk-jcp3rs1t.js} +1 -1
- package/dist/{chunk-7xpez9tc.js → chunk-kvcz1926.js} +1 -1
- package/dist/{chunk-45326z5v.js → chunk-kvrbdez2.js} +1 -1
- package/dist/{chunk-cjntf1jg.js → chunk-magfdzdj.js} +1 -1
- package/dist/{chunk-5baag5dz.js → chunk-pgqc8895.js} +4 -4
- package/dist/{chunk-59bbk5gx.js → chunk-ph8k7jdx.js} +2 -2
- package/dist/{chunk-4jmztn9d.js → chunk-pmmctgdd.js} +1 -1
- package/dist/{chunk-yvp5tfrz.js → chunk-pn3gj7zm.js} +1 -1
- package/dist/{chunk-pb2mztar.js → chunk-q33tyfpp.js} +1 -1
- package/dist/{chunk-hg4vfrxr.js → chunk-q6jecdtg.js} +1 -1
- package/dist/{chunk-cfbmjgd0.js → chunk-r2ns89f7.js} +1 -1
- package/dist/{chunk-zk6qmkhb.js → chunk-r425m35g.js} +1 -1
- package/dist/chunk-ssdjny2r.js +2 -0
- package/dist/chunk-sx1jg8dw.js +2 -0
- package/dist/{chunk-rdeje2dd.js → chunk-vd03gnnb.js} +5 -5
- package/dist/chunk-vf29gp9a.js +2 -0
- package/dist/{chunk-yjhktn0b.js → chunk-x40j9ta1.js} +2 -2
- package/dist/{chunk-am610nan.js → chunk-xjbj655y.js} +3 -3
- package/dist/{chunk-9343arqn.js → chunk-ya8nwtdn.js} +1 -1
- package/dist/{chunk-3npzxjr4.js → chunk-zbzfkh3m.js} +1 -1
- package/dist/cli.js +7 -7
- package/dist/craft-entry.js +1 -1
- package/dist/craft.js +1 -1
- package/dist/pwa.js +1 -1
- package/dist/ssg.js +2 -2
- package/dist/stx-virtual-ts.js +5 -9
- package/package.json +5 -5
- package/dist/chunk-7hgqyea0.js +0 -2
- package/dist/chunk-7m5rpqjy.js +0 -2
- package/dist/chunk-b25twdd7.js +0 -2
- package/dist/chunk-b7fmkwz2.js +0 -2
- package/dist/chunk-cssvev8r.js +0 -2
- package/dist/chunk-g67xjfe6.js +0 -3
- package/dist/chunk-naj7m2av.js +0 -2
- package/dist/chunk-qn9rrwp8.js +0 -2
- package/dist/chunk-z8e2m6kz.js +0 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-0jdz31q1.js";import"./chunk-c08jvjqt.js";import{C,So,ia,Yl}from"./chunk-4b110x6r.js";import"./chunk-phzhmnnm.js";import"./chunk-ck4ypzet.js";import"./chunk-0ek3s3b6.js";import"./chunk-w98yt4d4.js";import"./chunk-4hrryats.js";import"./chunk-razwegar.js";import"./chunk-b234w3mf.js";import{Fs,a}from"./chunk-jg5xc2m1.js";import"./chunk-eca022er.js";import"./chunk-mpfm5ctr.js";import"./chunk-13awnyq0.js";import"./chunk-45326z5v.js";import{It,at,Re,xn,Ve,wr,vr,ct}from"./chunk-yjhktn0b.js";import{i}from"./chunk-d8mnaesb.js";import"./chunk-f74qzgp8.js";import"./chunk-tpryfx8t.js";import{Ls}from"./chunk-c0kgwh4k.js";import"./chunk-1x0wcskp.js";import"./chunk-fs43342z.js";import{At}from"./chunk-0mxkw6m6.js";import"./chunk-cwcmmgvz.js";import"./chunk-ddn98yz4.js";import{Cs}from"./chunk-1pdntpwe.js";import{rs}from"./chunk-9tj16d70.js";import{ns,$o,Ro}from"./chunk-69wpv1pr.js";import"./chunk-g67xjfe6.js";import"./chunk-9bexzgws.js";import"./chunk-5baag5dz.js";import"./chunk-v0yay1kw.js";import"./chunk-cfbmjgd0.js";import{existsSync as Be,mkdirSync as Qi,readFileSync as Zi}from"fs";import K from"path";import{existsSync as Un,mkdirSync as Vn,realpathSync as Wi,rmSync as Wn}from"fs";import q from"path";import ce from"path";var Hn="data-stx-b",St=new Set(ia),qn=new Set(So);function Le(e){if(e==="ref"||e==="data-stx-ref")return"ref";if(e.startsWith("::"))return null;if(e.startsWith("@bind:")||e.startsWith("x-bind:"))return"attr";if(e.startsWith("@")||e.startsWith(":")){let t=e.slice(1).split(".")[0];if(St.has(t))return t==="if"?"if":t;if(t==="for"||t==="else"||t==="else-if"||t==="elseif")return"for";if(Yl(t))return"event";if(e.startsWith("@"))return"event";return"attr"}if(e.startsWith("x-")){let t=e.split(".")[0];if(!qn.has(t))return"attr";let n=t.slice(2);if(n==="cloak"||n==="data"||n==="bind")return null;if(n==="tooltip"||n==="tooltip-position")return null;return St.has(n)?n==="if"?"if":n:"attr"}return null}function Gn(e){let t=[];for(let[n,r]of e){let s=Le(n);if(s)t.push({name:n,value:r,kind:s})}return t}var Kn=/<([a-z][\w-]*)((?:\s+[^\s"'=<>/]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s"'=<>`]+))?)*)\s*\/?>/gi,De=/([^\s"'=<>/]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'=<>`]+)))?/g;function wt(e){let t=[],n=0;return{html:e.replace(Kn,(s,o,l)=>{if(!l||!/[:@]|x-/.test(l))return s;let u=[];De.lastIndex=0;for(let y=De.exec(l);y;y=De.exec(l))u.push([y[1],y[2]??y[3]??y[4]??""]);let d=Gn(u);if(!d.length)return s;let f={id:n++,bindings:d};if(d.some((y)=>y.kind==="for"))f.template=!0;t.push(f);let g=s.endsWith("/>");return`${s.slice(0,g?-2:-1).trimEnd()} ${Hn}="${f.id}"${g?"/>":">"}`}),manifest:{entries:t}}}function me(e){let t=e&&/^(\d+(?:\.\d+)?|\.\d+)(px|rem)?$/.exec(e.trim());if(!t)return;let n=Number(t[1])*(t[2]==="rem"?16:1);return Number.isFinite(n)?n:void 0}function $e(e,t){if(!Re[e])return;return me(t?.get(xn(e))??Re[e].value)}function je(e,t){let n=wr[e];if(!n)return;return me(t?.get(ct(n))??Ve[n]?.value)}function We(e,t){let n=vr[e];if(!n)return;let r=me(t?.get(ct(n.size))??Ve[n.size]?.value),s=me(t?.get(ct(n.leading))??Ve[n.leading]?.value);if(r===void 0||s===void 0)return;return{fontSize:r,lineHeight:s}}var Jn={sm:640,md:768,lg:1024,xl:1280,"2xl":1536},Rt=Ue({}),Nt,xt=null;function ue(){let e=globalThis.__stxNativeStyleConfig;if(!e)return Rt;if(e!==Nt)Nt=e,xt=Ue(e);return xt}function Tt(e,t=new Map,n=""){for(let[r,s]of Object.entries(e??{})){let o=r==="DEFAULT"?n.replace(/-$/,""):`${n}${r}`;if(typeof s==="string")t.set(o,s);else if(s&&typeof s==="object")Tt(s,t,`${o}-`)}return t}function _t(e){let t={};for(let[n,r]of Object.entries(e??{})){let s=typeof r==="number"?r:Number.parseFloat(String(r));if(Number.isFinite(s))t[n]=s}return t}function Ue(e){return{shortcuts:new Map(Object.entries(e.shortcuts??{}).filter(([,t])=>typeof t==="string")),colors:Tt(e.colors),fontFamily:new Map(Object.entries(e.fontFamily??{}).map(([t,n])=>[t,Array.isArray(n)?n.join(", "):n])),breakpoints:new Map(Object.entries({...Jn,..._t(e.breakpoints)}))}}var Fe={};function Et(){return ue()}function kt(e){Fe=e??{},Rt=Ue(Fe)}async function Ct(e,t){let n=Fe;kt(e);try{return await t()}finally{kt(n)}}function Ot(e){if(!e)return{};let t=e.theme??{},n=Object.fromEntries(Object.entries(e.shortcuts??{}).filter(([,r])=>typeof r==="string"));return{...Object.keys(n).length?{shortcuts:n}:{},...t.fontFamily?{fontFamily:JSON.parse(JSON.stringify(t.fontFamily))}:{},...t.colors?{colors:JSON.parse(JSON.stringify(t.colors))}:{},...t.screens?{breakpoints:_t(t.screens)}:{}}}function Pt(e){return ue().shortcuts.get(e)}function Mt(e){return ue().colors.get(e)}function Xe(e){return ue().breakpoints.get(e)}function ye(e){return ue().fontFamily.get(e)}var Dt=/^--[\w\u0080-\uFFFF-]+$/u;function ze(e,t){if(!/var\(/i.test(e))return e;let n="",r="",s=!1;for(let o=0;o<e.length;o++){let l=e[o];if(l==="\\"){n+=e.slice(o,o+2),o++;continue}if(r){if(n+=l,l===r)r="";continue}if(l==='"'||l==="'"){r=l,n+=l;continue}if(e.slice(o,o+4).toLowerCase()!=="var("||o>0&&/[\w-]/.test(e[o-1])){n+=l;continue}let u=1,d=-1,f="",g=o+4;for(;g<e.length;g++){let m=e[g];if(m==="\\"){g++;continue}if(f){if(m===f)f="";continue}if(m==='"'||m==="'"){f=m;continue}if(m==="(")u++;if(m===")"&&--u===0)break;if(m===","&&u===1&&d===-1)d=g}if(u!==0)return;let h=e.slice(o+4,d===-1?g:d).trim();if(!Dt.test(h))return;let y=t(h,d===-1?void 0:e.slice(d+1,g).trim());if(y===void 0||n.length+y.length>65536)return;n+=y,s=!0,o=g}return s&&n.length>65536?void 0:n}var Bt=new Map;function Yn(e){for(let t=0;t<e.length;t++){let n=e[t][0];if(typeof n==="string"&&n.trim().startsWith("--"))return!0}return!1}function ne(e,t){if(!e.length||!Yn(e)){let v=new Set,c=(b,p=0)=>p>64?void 0:ze(b,(N,S)=>(v.add(N),t?.get(N)??(S===void 0?void 0:c(S,p+1))));return{resolve:c,used:v,computed:()=>t??Bt}}let n=new Map,r=new Set;for(let[v,c]of e){let b=v.trim();if(!Dt.test(b))continue;if(typeof c==="string"||typeof c==="number"&&Number.isFinite(c))n.set(b,String(c).trim())}let s=new Map,o=new Set;for(let[v,c]of n){let b=new Set,p=(N,S=0)=>S>64?void 0:ze(N,(R,w)=>(b.add(R),w===void 0?"":p(w,S+1)));if(p(c)===void 0)o.add(v);s.set(v,b)}let l=new Map,u=new Map,d=[],f=new Set,g=0;function h(v,c=0){if(c>64){o.add(v);return}l.set(v,g),u.set(v,g++),d.push(v),f.add(v);for(let N of s.get(v)??[]){if(!n.has(N))continue;if(!l.has(N)){if(h(N,c+1),u.has(N))u.set(v,Math.min(u.get(v),u.get(N)))}else if(f.has(N))u.set(v,Math.min(u.get(v),l.get(N)))}if(u.get(v)!==l.get(v))return;let b=[],p;do p=d.pop(),f.delete(p),b.push(p);while(p!==v);if(b.length>1||s.get(v)?.has(v))b.forEach((N)=>o.add(N))}for(let v of n.keys())if(!l.has(v))h(v);let y=new Map;function m(v,c){if(r.add(v),y.has(v))return y.get(v);let b=n.get(v),p=b===void 0||/^(?:inherit|unset)$/i.test(b)?t?.get(v):o.has(v)||/^(?:initial|revert|revert-layer)$/i.test(b)?void 0:x(b,c+1);return y.set(v,p),p}function x(v,c=0){if(c>64)return;return ze(v,(b,p)=>m(b,c)??(p===void 0?void 0:x(p,c+1)))}return{resolve:x,used:r,computed(){if(!n.size)return t??Bt;let v=new Map(t);for(let c of n.keys())v.set(c,m(c,0));return v}}}function He(e){if(e.display==="flex"&&e.flexDirection==null)return{...e,flexDirection:"row"};return e}var jt=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","objectPosition","tintColor","transform","overflow","pointerEvents","fill","stroke","strokeWidth","gradientDirection","gradientFrom","gradientVia","gradientTo"]),Qn=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"]),Lt=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"]),$t=/^[+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?$/i,Zn=/^([+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?)(px|rem|em)?$/i,er=new Set(["rotate","rotateX","rotateY","rotateZ","skewX","skewY"]),tr=new Set(["perspective","scale","scaleX","scaleY","translateX","translateY"]);function nr(e){if(typeof e!=="string")return e;let t=Zn.exec(e);return t?Number(t[1])*(/^r?em$/i.test(t[2]||"")?16:1):e}function oe(e){return typeof e==="number"&&Number.isFinite(e)}function rr(e,t){if(e==="shadowOffset"&&t&&typeof t==="object"&&!Array.isArray(t)){let{width:n,height:r}=t;return oe(n)&&oe(r)?{width:n,height:r}:void 0}if(e==="transform"&&Array.isArray(t)){let n=[];for(let r of t){if(!r||typeof r!=="object"||Array.isArray(r)||Object.keys(r).length!==1)return;let[s,o]=Object.entries(r)[0];if(tr.has(s)&&oe(o))n.push({[s]:o});else if(er.has(s)&&typeof o==="string"&&/^[+-]?(?:\d+\.?\d*|\.\d+)(?:deg|rad)$/.test(o))n.push({[s]:o});else return}return n}return}function Vt(e){let t=[],n=0,r=0,s="";for(let o=0;o<=e.length;o++){let l=e[o];if(l==="\\"){o++;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(o!==e.length&&(l!==";"||r))continue;let u=e.slice(n,o),d=u.indexOf(":");if(d!==-1)t.push([u.slice(0,d).trim(),u.slice(d+1).trim()]);n=o+1}return t}var be=new Map;function ir(e,t){if(typeof e==="string"){let n=be.get(e);if(n)return n;let r=sr(e,t);if(r){if(be.size>=2000)be.clear();return be.set(e,r),r}return[]}return or(e,t)}function sr(e,t){let n=e.trim();if(!n)return[];try{n=JSON.parse(n)}catch{}if(typeof n==="string")return Vt(n);if(n&&typeof n==="object"&&!Array.isArray(n))return Object.entries(n);if(n!=null&&n!==!1)t({kind:"non-numeric-style",name:"style"});return null}function or(e,t){let n;if(typeof e==="string"){if(e=e.trim(),!e)return[];try{e=JSON.parse(e)}catch{}}if(typeof e==="string")n=Vt(e);else if(e&&typeof e==="object"&&!Array.isArray(e))n=Object.entries(e);else{if(e!=null&&e!==!1)t({kind:"non-numeric-style",name:"style"});return[]}return n}function ve(e,t=()=>{},n={}){let r=ir(e,t),s=ne(r,n.inheritedVariables);return n.onVariables?.(s.computed()),lr(r,s,t)}var us=Symbol("invalid native structured style");function ar(e){return jt.has(e)||e.trim().startsWith("--")?e:e.trim().toLowerCase().replace(/-([a-z])/g,(t,n)=>n.toUpperCase())}function lr(e,t,n){let r={},s=[];for(let[o,l]of e){if(o.trim().startsWith("--")){s.push(o.trim());continue}let u=ar(o);if(!jt.has(u)){n({kind:"unknown-style",name:u});continue}if(l==null||l==="")continue;let d=typeof l==="string"?t.resolve(l.trim()):l;if(d===void 0){n({kind:"non-numeric-style",name:u});continue}if(d==="")continue;if(u==="pointerEvents"){if(typeof d==="string"&&["auto","none","box-none","box-only"].includes(d))r.pointerEvents=d;else n({kind:"unknown-style",name:`pointerEvents:${String(d)}`});continue}if(u==="objectFit"){let g=typeof d==="string"?d.trim().toLowerCase():"";if(["fill","contain","cover","none","scale-down"].includes(g))r.objectFit=g;else n({kind:"unknown-style",name:`objectFit:${String(d)}`});continue}if(u==="objectPosition"){let g=typeof d==="string"?d.trim().toLowerCase().replace(/\s+/g," "):"",h=g.split(" ");if(h.length===1)h.push("center");if(["top","bottom"].includes(h[0])||["left","right"].includes(h[1]))h.reverse();let y=(m)=>m.endsWith("%")&&$t.test(m.slice(0,-1))&&Number.isFinite(Number(m.slice(0,-1)));if(h.length===2&&(["left","center","right"].includes(h[0])||y(h[0]))&&(["top","center","bottom"].includes(h[1])||y(h[1])))r.objectPosition=g;else n({kind:"unknown-style",name:`objectPosition:${String(d)}`});continue}let f;if(Qn.has(u)||Lt.has(u)){if(f=nr(d),!oe(f)&&!(Lt.has(u)&&typeof f==="string"&&f.endsWith("%")&&$t.test(f.slice(0,-1))&&Number.isFinite(Number(f.slice(0,-1)))))f=void 0}else if(u==="display"&&d==="inline-flex")f="flex";else if(u==="shadowOffset"||u==="transform")f=rr(u,d);else if(u==="gridTemplateColumns"||u==="gridTemplateRows")f=oe(d)||typeof d==="string"?d:void 0;else if(u==="fontWeight"&&oe(d))f=String(d);else if(typeof d==="string")f=d;if(f===void 0)n({kind:"non-numeric-style",name:u});else r[u]=f}for(let o of s)if(!t.used.has(o))n({kind:"unknown-style",name:o});return r}var cr={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"}},Ke={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},Wt={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},Ft={none:0,sm:2,DEFAULT:4,md:6,lg:8,xl:12,"2xl":16,"3xl":24,full:9999};function re(e){let t=e.lastIndexOf("/");if(t>0&&(!e.endsWith("]")||/\/\[[\d.]+%?\]$/.test(e))){let r=re(e.slice(0,t)),s=e.slice(t+1),o=/^\[(.+)\]$/.test(s)?Number.parseFloat(s.slice(1,-1))*(s.includes("%")?1:100):Number.parseFloat(s);if(!r||!Number.isFinite(o))return;return ur(r,o/100)}if(e==="transparent")return"transparent";if(e==="current")return"currentColor";if(e==="black")return"#000000";if(e==="white")return"#ffffff";let n=e.split("-");if(n.length===2){let[r,s]=n,o=cr[r];if(o&&typeof o==="object")return o[s]}if(e.startsWith("[")&&e.endsWith("]")){let r=e.slice(1,-1);return/^(#|rgba?\(|hsla?\(|[a-z]+$)/i.test(r)?r:void 0}return}function Je(e){return re(e.trim())}function ur(e,t){if(e==="transparent")return e;let n=e.startsWith("#")?e.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,t))*255);return`#${n}${r.toString(16).padStart(2,"0")}`}function Ge(e,t=16){if(!e.startsWith("[")||!e.endsWith("]"))return;let n=e.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*t;return r}function X(e){if(e.startsWith("[")&&e.endsWith("]")){let t=e.slice(1,-1);if(t.endsWith("%"))return;let n=t.endsWith("rem")?Number.parseFloat(t)*16:Number.parseFloat(t);return Number.isFinite(n)?n:void 0}return Ke[e]??je(e)}function Ne(e){let t=/^\[(-?\d*\.?\d+)%\]$/.exec(e);if(t)return`${Number.parseFloat(t[1])}%`;return X(e)}var dr={flex:(e,t)=>(t.display="flex",!0),block:(e,t)=>(t.display="flex",!0),hidden:(e,t)=>(t.display="none",!0),grid:(e,t)=>(t.display="grid",!0),"flex-row":(e,t)=>(t.flexDirection="row",!0),"flex-col":(e,t)=>(t.flexDirection="column",!0),"flex-row-reverse":(e,t)=>(t.flexDirection="row-reverse",!0),"flex-col-reverse":(e,t)=>(t.flexDirection="column-reverse",!0),"flex-wrap":(e,t)=>(t.flexWrap="wrap",!0),"flex-nowrap":(e,t)=>(t.flexWrap="nowrap",!0),"flex-wrap-reverse":(e,t)=>(t.flexWrap="wrap-reverse",!0),"flex-1":(e,t)=>(t.flex=1,t.flexGrow=1,t.flexShrink=1,t.flexBasis=0,!0),"flex-auto":(e,t)=>(t.flexGrow=1,t.flexShrink=1,!0),"flex-initial":(e,t)=>(t.flexGrow=0,t.flexShrink=1,!0),"flex-none":(e,t)=>(t.flexGrow=0,t.flexShrink=0,!0),grow:(e,t)=>(t.flexGrow=1,!0),"grow-0":(e,t)=>(t.flexGrow=0,!0),shrink:(e,t)=>(t.flexShrink=1,!0),"shrink-0":(e,t)=>(t.flexShrink=0,!0),"order-first":(e,t)=>(t.order=-9999,!0),"order-last":(e,t)=>(t.order=9999,!0),"order-none":(e,t)=>(t.order=0,!0),"justify-start":(e,t)=>(t.justifyContent="flex-start",!0),"justify-center":(e,t)=>(t.justifyContent="center",!0),"justify-end":(e,t)=>(t.justifyContent="flex-end",!0),"justify-between":(e,t)=>(t.justifyContent="space-between",!0),"justify-around":(e,t)=>(t.justifyContent="space-around",!0),"justify-evenly":(e,t)=>(t.justifyContent="space-evenly",!0),"items-start":(e,t)=>(t.alignItems="flex-start",!0),"items-center":(e,t)=>(t.alignItems="center",!0),"items-end":(e,t)=>(t.alignItems="flex-end",!0),"items-stretch":(e,t)=>(t.alignItems="stretch",!0),"items-baseline":(e,t)=>(t.alignItems="baseline",!0),"self-auto":(e,t)=>(t.alignSelf="auto",!0),"self-start":(e,t)=>(t.alignSelf="flex-start",!0),"self-center":(e,t)=>(t.alignSelf="center",!0),"self-end":(e,t)=>(t.alignSelf="flex-end",!0),"self-stretch":(e,t)=>(t.alignSelf="stretch",!0),"self-baseline":(e,t)=>(t.alignSelf="baseline",!0),"min-w-0":(e,t)=>(t.minWidth=0,!0),"aspect-square":(e,t)=>(t.aspectRatio=1,!0),"aspect-video":(e,t)=>(t.aspectRatio=1.7777777777777777,!0),"border-solid":(e,t)=>(t.borderStyle="solid",!0),"border-dashed":(e,t)=>(t.borderStyle="dashed",!0),"border-dotted":(e,t)=>(t.borderStyle="dotted",!0),group:()=>!0,peer:()=>!0,"inset-0":(e,t)=>(t.top=0,t.right=0,t.bottom=0,t.left=0,!0),"mx-auto":(e,t)=>(t.alignSelf="center",!0),fixed:(e,t)=>(t.position="absolute",!0),sticky:()=>!0,"sr-only":(e,t)=>(t.position="absolute",t.width=1,t.height=1,t.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":(e,t)=>(t.letterSpacing=-0.8,!0),"tracking-tight":(e,t)=>(t.letterSpacing=-0.4,!0),"tracking-normal":(e,t)=>(t.letterSpacing=0,!0),"tracking-wide":(e,t)=>(t.letterSpacing=0.4,!0),"tracking-wider":(e,t)=>(t.letterSpacing=0.8,!0),"tracking-widest":(e,t)=>(t.letterSpacing=1.6,!0),"tabular-nums":()=>!0,"inline-flex":(e,t)=>(t.display="flex",!0),truncate:()=>!0,relative:(e,t)=>(t.position="relative",!0),absolute:(e,t)=>(t.position="absolute",!0),"pointer-events-none":(e,t)=>(t.pointerEvents="none",!0),"pointer-events-auto":(e,t)=>(t.pointerEvents="auto",!0),"overflow-visible":(e,t)=>(t.overflow="visible",!0),"overflow-hidden":(e,t)=>(t.overflow="hidden",!0),"overflow-scroll":(e,t)=>(t.overflow="scroll",!0),"overflow-x-auto":()=>!0,"overflow-x-scroll":()=>!0,"overflow-y-auto":()=>!0,"overflow-y-scroll":()=>!0,"font-sans":(e,t)=>(t.fontFamily=ye("sans")??"sans-serif",!0),"font-serif":(e,t)=>(t.fontFamily=ye("serif")??"serif",!0),"font-mono":(e,t)=>(t.fontFamily=ye("mono")??"monospace",!0),"font-thin":(e,t)=>(t.fontWeight="100",!0),"font-extralight":(e,t)=>(t.fontWeight="200",!0),"font-light":(e,t)=>(t.fontWeight="300",!0),"font-normal":(e,t)=>(t.fontWeight="400",!0),"font-medium":(e,t)=>(t.fontWeight="500",!0),"font-semibold":(e,t)=>(t.fontWeight="600",!0),"font-bold":(e,t)=>(t.fontWeight="bold",!0),"font-extrabold":(e,t)=>(t.fontWeight="800",!0),"font-black":(e,t)=>(t.fontWeight="900",!0),italic:(e,t)=>(t.fontStyle="italic",!0),"not-italic":(e,t)=>(t.fontStyle="normal",!0),"text-left":(e,t)=>(t.textAlign="left",!0),"text-center":(e,t)=>(t.textAlign="center",!0),"text-right":(e,t)=>(t.textAlign="right",!0),"text-justify":(e,t)=>(t.textAlign="justify",!0),uppercase:(e,t)=>(t.textTransform="uppercase",!0),lowercase:(e,t)=>(t.textTransform="lowercase",!0),capitalize:(e,t)=>(t.textTransform="capitalize",!0),"normal-case":(e,t)=>(t.textTransform="none",!0),underline:(e,t)=>(t.textDecorationLine="underline",!0),"line-through":(e,t)=>(t.textDecorationLine="line-through",!0),"no-underline":(e,t)=>(t.textDecorationLine="none",!0)};function fr(e,t){if(!e.startsWith("bg-"))return!1;let n=e.slice(3),r=re(n);if(r)return t.backgroundColor=r,!0;return!1}function Ut(e,t){if(!e.startsWith("text-"))return!1;let n=e.slice(5),r=We(n);if(r)return Object.assign(t,r),!0;if(Wt[n])return t.fontSize=Wt[n],!0;if(n.startsWith("[")&&n.endsWith("]")){let o=n.slice(1,-1);if(/^-?[\d.]+(?:px|r?em)?$/.test(o)){let l=o.endsWith("rem")||o.endsWith("em")?Number.parseFloat(o)*16:Number.parseFloat(o);if(Number.isFinite(l))return t.fontSize=l,!0}}let s=re(n);if(s)return t.color=s,!0;return!1}var pr=new Set(["t","tr","r","br","b","bl","l","tl"]);function gr(e,t){let n=/^bg-(?:gradient|linear)-to-([a-z]+)$/.exec(e);if(n&&pr.has(n[1]))return t.gradientDirection=`to-${n[1]}`,!0;let r=/^(from|via|to)-(.+)$/.exec(e);if(!r)return!1;let s=re(r[2]);if(!s)return!1;if(r[1]==="from")t.gradientFrom=s;else if(r[1]==="via")t.gradientVia=s;else t.gradientTo=s;return!0}function hr(e,t){for(let n of["fill","stroke"]){let r=`${n}-`;if(!e.startsWith(r))continue;let s=e.slice(r.length);if(s==="none")return t[n]="none",!0;if(n==="stroke"&&/^\d+(?:\.\d+)?$/.test(s))return t.strokeWidth=Number.parseFloat(s),!0;if(n==="stroke"&&/^\[\d+(?:\.\d+)?(?:px)?\]$/.test(s))return t.strokeWidth=Number.parseFloat(s.slice(1)),!0;let o=re(s);if(o)return t[n]=o,!0}return!1}function mr(e,t){if(e.startsWith("p-")){let n=X(e.slice(2));if(n!==void 0)return t.padding=n,!0}if(e.startsWith("px-")){let n=X(e.slice(3));if(n!==void 0)return t.paddingHorizontal=n,!0}if(e.startsWith("py-")){let n=X(e.slice(3));if(n!==void 0)return t.paddingVertical=n,!0}if(e.startsWith("pt-")){let n=X(e.slice(3));if(n!==void 0)return t.paddingTop=n,!0}if(e.startsWith("pr-")){let n=X(e.slice(3));if(n!==void 0)return t.paddingRight=n,!0}if(e.startsWith("pb-")){let n=X(e.slice(3));if(n!==void 0)return t.paddingBottom=n,!0}if(e.startsWith("pl-")){let n=X(e.slice(3));if(n!==void 0)return t.paddingLeft=n,!0}return!1}function qt(e,t){if(/^-(?:m|mx|my|mt|mr|mb|ml)-/.test(e)){let n={};if(!qt(e.slice(1),n))return!1;let r=Object.entries(n);if(r.some(([,s])=>typeof s!=="number"))return!1;for(let[s,o]of r)t[s]=-o;return!0}if(e.startsWith("m-")){let n=X(e.slice(2));if(n!==void 0)return t.margin=n,!0}if(e.startsWith("mx-")){let n=X(e.slice(3));if(n!==void 0)return t.marginHorizontal=n,!0}if(e.startsWith("my-")){let n=X(e.slice(3));if(n!==void 0)return t.marginVertical=n,!0}if(e.startsWith("mt-")){let n=X(e.slice(3));if(n!==void 0)return t.marginTop=n,!0}if(e.startsWith("mr-")){let n=X(e.slice(3));if(n!==void 0)return t.marginRight=n,!0}if(e.startsWith("mb-")){let n=X(e.slice(3));if(n!==void 0)return t.marginBottom=n,!0}if(e.startsWith("ml-")){let n=X(e.slice(3));if(n!==void 0)return t.marginLeft=n,!0}return!1}function yr(e,t){if(!e.startsWith("w-"))return!1;let n=e.slice(2);if(n==="full")return t.width="100%",!0;if(n==="screen")return t.width="100%",!0;if(n==="auto")return t.width="auto",!0;if(n.includes("/")){let[s,o]=n.split("/"),l=Number.parseInt(s)/Number.parseInt(o)*100;return t.width=`${l}%`,!0}let r=Ne(n);if(r!==void 0)return t.width=r,!0;return!1}function br(e,t){if(!e.startsWith("h-"))return!1;let n=e.slice(2);if(n==="full")return t.height="100%",!0;if(n==="screen")return t.height="100%",!0;if(n==="auto")return t.height="auto",!0;let r=Ne(n);if(r!==void 0)return t.height=r,!0;return!1}function Sr(e,t){if(e==="rounded")return t.borderRadius=Ft.DEFAULT,!0;if(!e.startsWith("rounded-"))return!1;let n=e.slice(8);if(n==="")return!1;let r=/^(?:(tl|tr|bl|br|t|b|l|r)-)?(.+)$/.exec(n),s=Ft[r[2]]??$e(r[2])??Ge(r[2]);if(s===void 0)return!1;let o={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]?o[r[1]]:["borderRadius"])t[l]=s;return!0}function Nr(e,t){let n=/^border(?:-([trblxy]))?(?:-(\d+|\[[^\]]+\]))?$/.exec(e);if(!n)return!1;let[,r="",s]=n,o=s===void 0?1:Number(s);if(s?.startsWith("[")){let u=/^\[(\d+(?:\.\d+)?|\.\d+)(px|rem)?\]$/.exec(s);if(!u)return!1;o=Number(u[1])*(u[2]==="rem"?16:1)}if(!Number.isFinite(o)||o<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])t[u]=o;return!0}function xr(e,t){if(!e.startsWith("border-"))return!1;let n=e.slice(7),r=re(n);if(r)return t.borderColor=r,!0;return!1}function kr(e,t){if(!e.startsWith("opacity-"))return!1;let n=Number.parseInt(e.slice(8));if(!Number.isNaN(n))return t.opacity=n/100,!0;return!1}function Rr(e,t,n){if(e.startsWith("tracking-[")){let r=Ge(e.slice(9),n);if(r===void 0)return!1;return t.letterSpacing=r,!0}if(e.startsWith("leading-")){let r=e.slice(8),s=n,o={none:1,tight:1.25,snug:1.375,normal:1.5,relaxed:1.625,loose:2},l=r.startsWith("[")?/^\[[\d.]+\]$/.test(r)?Number.parseFloat(r.slice(1,-1))*s:Ge(r,s):o[r]!==void 0?o[r]*s:Ke[r];if(l===void 0||!Number.isFinite(l))return!1;return t.lineHeight=l,!0}return!1}function Tr(e,t){let n=/^(-?)(inset-x|inset-y|inset|top|right|bottom|left)-(.+)$/.exec(e);if(!n)return!1;let r=n[3],s=/^\[(-?[\d.]+)px\]$/.exec(r),o=s?Number(s[1]):Ke[r];if(o===void 0||!Number.isFinite(o))return!1;let l=n[1]?-o:o,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)t[d]=l;return!0}function Ar(e,t){let n=/^grid-cols-\[(.+)\]$/.exec(e);if(n)return t.gridColumns=n[1].split("_").filter(Boolean).length,!0;let r=/^grid-cols-(\d+)$/.exec(e);if(!r)return!1;return t.gridColumns=Number(r[1]),!0}function _r(e,t){if(!e.startsWith("size-"))return!1;let n=e.slice(5),r=n==="full"?"100%":Ne(n);if(r===void 0)return!1;return t.width=r,t.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 Cr(e,t){let n=/^(min|max)-(w|h)-(.+)$/.exec(e);if(!n)return!1;let[,r,s,o]=n,l=o==="full"||o==="screen"?"100%":o==="none"?void 0:s==="w"&&r==="max"&&Er[o]||Ne(o);if(l===void 0&&o!=="none")return!1;let u=`${r}${s==="w"?"Width":"Height"}`;if(l===void 0)delete t[u];else t[u]=l;return!0}function Or(e,t){let n=/^(-?)(top|right|bottom|left)-(.+)$/.exec(e);if(!n)return!1;let r=n[3]==="full"?"100%":X(n[3]);if(r===void 0)return!1;return t[n[2]]=typeof r==="number"&&n[1]?-r:r,!0}function Ir(e,t){let n=/^(-?)translate-(x|y)-(.+)$/.exec(e);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=X(r);if(s===void 0||!Number.isFinite(s))return!1;if(n[1])s=-s;let o=n[2]==="x"?"translateX":"translateY",l=o==="translateX"?{translateX:s}:{translateY:s};return t.transform=[...(t.transform??[]).filter((u)=>!(o in u)),l],!0}function Pr(e,t){let n=/^space-(x|y)-(.+)$/.exec(e);if(!n)return!1;let r=X(n[2]);if(r===void 0)return!1;return t.gap=r,!0}function Mr(e,t){if(e.startsWith("gap-")){let n=X(e.slice(4));if(n!==void 0)return t.gap=n,!0}if(e.startsWith("gap-x-")){let n=X(e.slice(6));if(n!==void 0)return t.columnGap=n,!0}if(e.startsWith("gap-y-")){let n=X(e.slice(6));if(n!==void 0)return t.rowGap=n,!0}return!1}function Br(e,t){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]}[e];if(!r)return!1;let[s,o,l,u]=r;return Object.assign(t,{shadowColor:"#000000",shadowOpacity:l,shadowRadius:s,shadowOffset:{width:0,height:o},elevation:u}),!0}function Dr(e){let t=/^divide-(?:(y|x)(?:-(.+))?|(.+))$/.exec(e);if(!t)return null;if(t[2]==="reverse")return"";if(t[1])return`border-${t[1]==="y"?"t":"l"}${t[2]?`-${t[2]}`:""}`;return`border-${t[3]}`}var Gt=new Set(["aria-selected","aria-pressed","aria-checked","aria-expanded"]),Lr=new Set(["hover","group-hover","peer-hover","active","group-active","visited","placeholder","selection","print","motion-safe"]),Xt=/^(?: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 Kt(e){let t=[],n=0,r=0;for(let s=0;s<e.length;s++){let o=e[s];if(o==="[")n++;else if(o==="]")n=Math.max(0,n-1);else if(o===":"&&n===0)t.push(e.slice(r,s)),r=s+1}return t.push(e.slice(r)),t}function Jt(e,t=new Set){let n=Kt(e),r=n[n.length-1],s=t.has(r)?void 0:Pt(r);if(s===void 0)return[e];let o=n.slice(0,-1).map((u)=>`${u}:`).join(""),l=new Set(t).add(r);return s.split(/\s+/).filter(Boolean).flatMap((u)=>Jt(`${o}${u}`,l))}function qe(e){if(/^transition(?:-(?:all|colors|opacity|shadow|transform))?$/.test(e))return 150;if(e==="transition-none")return 0;let t=/^duration-(\d+)$/.exec(e);return t?Number(t[1]):void 0}var zt=new WeakMap,Se={};function $r(e,t){let n=Et(),r=zt.get(n);if(!r)zt.set(n,r=new WeakMap);let s=r.get(e??Se);if(!s)r.set(e??Se,s=new WeakMap);let o=s.get(t??Se);if(!o)s.set(t??Se,o=new Map);return o}function xe(e,t={}){return`${t.focus?1:0}${t.focusWithin?1:0}${t.pointer?1:0}${t.appearance??""}|${e}`}function ie(e,t,n={}){let r=$r(t,n.rules),s=xe(e,n),o=r.get(s);if(!o){if(r.size>=4096)r.clear();r.set(s,o=jr(e,t,n))}return o}function jr(e,t,n){let r=new Map,s,o,l=(c,b)=>{if(!r.has(c))r.set(c,{...b,classes:[],authored:new Map});return r.get(c)};l("base",{});let u=[],d=[],f=e.split(/\s+/).filter(Boolean);if(n.rules){let c=new Set(f);for(let b of Object.keys(n.rules))if(b.includes(".")&&b.split(".").every((p)=>c.has(p)))d.push(b);d.sort((b,p)=>b.split(".").length-p.split(".").length)}for(let c of f){if(n.rules&&Object.hasOwn(n.rules,c)){u.push(c);continue}for(let b of Jt(c)){let p=Kt(b),N=p.pop(),S=p.some((k)=>k.startsWith("focus"));if(p.some((k)=>/^(?:group-|peer-)?focus(?:-visible|-within)?$/.test(k))&&/^(?:ring|outline)(?:-|$)/.test(N))continue;if(n.pointer&&p.length===0&&qe(N)!==void 0){if(N.startsWith("duration-"))o=qe(N);else s=qe(N);continue}let R=p.filter((k)=>k!=="dark"),w=n.pointer&&R.length===1&&p.length-R.length<=1&&(R[0]==="hover"||R[0]==="active")?R[0]:void 0;if(w&&!Xt.test(N)){let k=l(`pointer:${w}`,{pointerState:w}),T=p.includes("dark")?`dark:${N}`:N;if(k.classes.push(T),!k.authored.has(T))k.authored.set(T,c===b?b:`${c} (${b})`);continue}if(Xt.test(N)||!S&&p.some((k)=>Lr.has(k)))continue;let A,P,L=!1,_,j=[];for(let k of p){let T=Xe(k),E=k.startsWith("max-")?Xe(k.slice(4)):void 0;if(T!==void 0&&A===void 0)A=T;else if(E!==void 0&&P===void 0)P=E-0.02;else if(k==="disabled"&&!L)L=!0;else if(Gt.has(k)&&_===void 0)_=k;else j.push(k)}let W=[...j,N].join(":"),O=A!==void 0||P!==void 0,I=L?l("disabled",{disabled:!0}):_?l(`state:${_}`,{state:_}):O?l(`range:${A??0}:${P??""}`,{min:A??0,max:P}):r.get("base");if((L||_)&&(O||L&&_)){r.get("base").authored.set(b,c),r.get("base").classes.push(b);continue}if(I.classes.push(W),!I.authored.has(W))I.authored.set(W,c===b?b:`${c} (${b})`)}}let g=[...u,...d],h=(c,b)=>b.map((p)=>c.authored.get(p)??p),y=r.get("base"),m=we(y.classes.join(" "),t,n),x=new Map;if(g.length){let c=(N)=>N?ve(N,()=>{},{inheritedVariables:t}):{},b={},p={};for(let N of g){let S=n.rules[N];b={...b,...c(S.light)},p={...p,...c(S.dark)};for(let R of S.responsive??[]){let w=`${R.min}:${R.max??""}`,A=x.get(w)??{min:R.min,...R.max===void 0?{}:{max:R.max},style:{}};if(A.style={...A.style,...c(R.light)},R.dark)A.dark={...A.dark,...c(R.dark)};x.set(w,A)}}if(m.style={...b,...m.style},Object.keys(p).length)m.dark={...p,...m.dark}}m.unknown=h(y,m.unknown);let v=[];for(let c of r.values()){if(c===y)continue;let b=we(c.classes.join(" "),t,{appearance:n.appearance});m.unknown=[...new Set([...m.unknown,...h(c,b.unknown)])];let p={style:b.style,...b.dark?{dark:b.dark}:{}};if(c.pointerState)(m.pointer??={})[c.pointerState]=p;else if(c.disabled)m.disabled=p;else if(c.state)(m.states??={})[c.state]=p;else v.push({min:c.min??0,...c.max===void 0?{}:{max:c.max},...p})}for(let c of x.values()){let b=v.find((p)=>p.min===c.min&&p.max===c.max);if(b){if(b.style={...c.style,...b.style},c.dark||b.dark)b.dark={...c.dark,...b.dark}}else v.push(c)}if(v.length)m.responsive=v.sort((c,b)=>c.min-b.min||(c.max??1/0)-(b.max??1/0));if(s!==void 0&&s>0)m.style={...m.style,transitionDuration:o??s};return m}function we(e,t,n={}){let r=[],s=[],o=[],l=[],u={focus:{classes:[],originals:new Map},focusWithin:{classes:[],originals:new Map}},d=new Map;function f(p,N){let S=/^(bg|text|border(?:-[trblxy])?|from|via|to|fill|stroke|divide|decoration|caret|accent)-(.+?)(\/[^\s]+)?$/.exec(p),R=S&&Mt(S[2]);if(S&&R){let _=/^var\(\s*(--[\w-]+)\s*(?:,\s*(.+?)\s*)?\)$/.exec(R),j=_?t?.get(_[1])??_[2]:R;if(j&&/^(?:#[0-9a-f]{3,8}|rgba?\(.+\)|hsla?\(.+\))$/i.test(j))return[`${S[1]}-[${j.replace(/\s+/g,"")}]${S[3]||""}`]}let w=/^(text|bg|border|ring)-([a-z-]+)(\/[^\s]+)?$/.exec(p),A=w&&It[w[2]];if(A){let _=t?.get(at(w[2]));return[`${w[1]}-${_===void 0?A[N]:`[${_}]`}${w[3]||""}`]}let P=/^rounded-(?:(tl|tr|bl|br|t|b|l|r)-)?(.+)$/.exec(p);if(P&&Re[P[2]]){let _=$e(P[2],t);return _===void 0?void 0:[`rounded-${P[1]?`${P[1]}-`:""}[${_}px]`]}let L=p.startsWith("text-")?p.slice(5):"";if(vr[L]){let _=We(L,t);return _&&[`text-[${_.fontSize}px]`,`leading-[${_.lineHeight}px]`]}for(let _ of Object.keys(wr)){if(!p.endsWith(`-${_}`))continue;let j=je(_,t);return j===void 0?void 0:[`${p.slice(0,-_.length)}[${j}px]`]}return[p]}function g(p,N){if(!d.has(p))d.set(p,new Set);return d.get(p).add(N),p}let h=[],y=new Map;for(let p of e.split(/\s+/).filter(Boolean)){let N=p.startsWith("dark:")?p.slice(5):p,S=Dr(N);if(S!==null){let A=S&&`${p===N?"":"dark:"}${S}`;if(A)h.push(A),y.set(A,p);continue}let R=/^(dark:)?(focus|focus-within):(dark:)?(.+)$/.exec(p),w=R?.[2]==="focus"?"focus":"focusWithin";if(R&&n[w]&&!(R[1]&&R[3])){let A=`${R[1]||R[3]?"dark:":""}${R[4]}`,P=u[w];P.classes.push(A),P.originals.set(A,[...P.originals.get(A)??[],p]);continue}if(p.startsWith("dark:")){let A=f(p.slice(5),"dark");if(!A)l.push(p);else s.push(...A.map((P)=>g(P,p)))}else if(!p.includes(":")||p.startsWith("[")){let A=f(p,n.appearance??"light"),P=f(p,"dark");if(!A||!P){l.push(p);continue}if(r.push(...A.map((L)=>g(L,p))),P.join(" ")!==A.join(" "))o.push(...P.map((L)=>g(L,p)))}else l.push(p)}let m=[],x=Ht(r,m),v={style:x,unknown:m},c=[...n.appearance===void 0?o:[],...s];if(c.length)v.dark=Ht(c,m);if(x.transform&&v.dark?.transform){let p=new Set(v.dark.transform.flatMap((N)=>Object.keys(N)));v.dark.transform=[...x.transform.filter((N)=>!Object.keys(N).some((S)=>p.has(S))),...v.dark.transform]}for(let p of r){if(p==="truncate"||p==="whitespace-nowrap")v.numberOfLines=1;let N=/^object-(cover|contain|fill)$/.exec(p);if(N)v.resizeMode=N[1]==="fill"?"stretch":N[1];let S=/^line-clamp-(\d+)$/.exec(p);if(S)v.numberOfLines=Number(S[1]);if(!v.icon&&/^i-[a-z0-9]+-[a-z0-9-]+$/.test(p))v.icon=p}let b=m.flatMap((p)=>[...d.get(p)??[p]]);if(v.unknown=[...new Set([...b.filter((p)=>!/^line-clamp-\d+$/.test(p)),...l])],h.length){let p=we(h.join(" "),t,{appearance:n.appearance});v.divide={style:p.style,...p.dark?{dark:p.dark}:{}},v.unknown=[...new Set([...v.unknown,...p.unknown.map((N)=>y.get(N)??N)])]}for(let p of["focus","focusWithin"]){let N=u[p];if(!N.classes.length)continue;let S=we(N.classes.join(" "),t,{appearance:n.appearance});v[p]={style:S.style,dark:S.dark},v.unknown=[...new Set([...v.unknown,...S.unknown.flatMap((R)=>N.originals.get(R)??[R])])];for(let R of N.classes)if(/^(?:dark:)?(?:truncate|line-clamp-\d+|i-[a-z0-9]+-.+)$/.test(R))v.unknown.push(...N.originals.get(R))}return v}function Ht(e,t){let n={},r=Array.isArray(e)?e:e.split(/\s+/).filter(Boolean),s={};for(let l of r)if(l.startsWith("text-"))Ut(l,s);let o=typeof s.fontSize==="number"?s.fontSize:16;for(let l of r){if(/^i-[a-z0-9]+-/.test(l))continue;let u=dr[l];if(u){u("",n);continue}if(Br(l,n))continue;if(gr(l,n))continue;if(fr(l,n))continue;if(hr(l,n))continue;if(Ut(l,n))continue;if(mr(l,n))continue;if(qt(l,n))continue;if(yr(l,n))continue;if(br(l,n))continue;if(Sr(l,n))continue;if(Nr(l,n))continue;if(xr(l,n))continue;if(kr(l,n))continue;if(Mr(l,n))continue;if(Rr(l,n,o))continue;if(_r(l,n))continue;if(Cr(l,n))continue;if(Ar(l,n))continue;let d=/^aspect-\[(\d+(?:\.\d+)?)\/(\d+(?:\.\d+)?)\]$/.exec(l);if(d&&Number(d[2])>0){n.aspectRatio=Number(d[1])/Number(d[2]);continue}let f=/^z-\[(-?\d+)\]$/.exec(l)??/^z-(\d+)$/.exec(l);if(f){n.zIndex=Number(f[1]);continue}if(l==="z-auto")continue;if(Tr(l,n))continue;let g=/^order-\[(-?\d+)\]$/.exec(l)??/^order-(-?\d+)$/.exec(l);if(g){n.order=Number(g[1]);continue}if(Or(l,n))continue;if(Ir(l,n))continue;if(Pr(l,n))continue;if(t?.push(l),typeof process<"u"&&process.env?.NODE_ENV==="development")console.warn(`[STX Native] Unknown Headwind class: ${l}`)}return n}function Yt(e){let t=new Map,n=(d)=>{if(typeof d==="string")return;if(d._classes)t.set(d._classes,t.get(d._classes)===!0||d.type==="TextInput");for(let f of d.children)n(f)};if(n(e),!t.size)return;let r=[],s=new Map,o=(d)=>{let f=JSON.stringify(d),g=s.get(f);if(g===void 0)g=r.push(d)-1,s.set(f,g);return g},l={entries:r,plain:{},light:{},dark:{}};for(let d of t.keys())l.plain[xe(d)]=o(ie(d));let u=e._stylesheetRules;for(let d of["light","dark"]){let f=ne(e._stylesheetTheme?.[d]??[]).computed();for(let[g,h]of t){let y=`${g} `;for(let m of[{focus:h,focusWithin:!0,appearance:d,pointer:!1},{focus:h,focusWithin:!0,appearance:d,pointer:!0},{focus:h,focusWithin:!0}])l[d][xe(y,m)]=o(ie(y,f,{...m,rules:u}))}}return l}import Vr from"path";var Qt=new Map;function Zt(e,t){if(!e)return;let n=e.trim(),r=n.lastIndexOf("-"),s=r===-1?t[n]:t[n.slice(0,r)],o=r===-1?s:s?.[n.slice(r+1)];if(typeof o==="string"&&/^#[\da-f]{3,8}$/i.test(o))return o;return Je(n)??Je(`[${n}]`)}function Wr(e){let t=e.roles??{},n=e.shapes??{},r=e.density??{},s={...e.theme?.colors,...e.theme?.extend?.colors},o=[],l=[];for(let[u,d]of Object.entries(t)){if(!It[u])continue;let f=Zt(typeof d==="string"?d:d?.light,s),g=Zt(typeof d==="string"?d:d?.dark,s);if(f)o.push(`${at(u)}: ${f};`);if(g)l.push(`${at(u)}: ${g};`)}for(let[u,d]of Object.entries(n))if(Re[u])o.push(`${xn(u)}: ${d};`);for(let[u,d]of Object.entries(r))if(Ve[u])o.push(`${ct(u)}: ${d};`);return[o.length?`:root { ${o.join(" ")} }`:"",l.length?`.dark { ${l.join(" ")} }`:""].filter(Boolean).join(`
|
|
3
|
-
`)}async function Fr(e){let{resolveUserCssConfig:t}=await import("./chunk-hg4vfrxr.js"),n=await t(e);return n?Wr(n):""}function en(e){let t=Vr.resolve(e),n=Qt.get(t);if(!n)n=Fr(t).catch(()=>""),Qt.set(t,n);return n}var nn={"aria-pressed":"selected","aria-selected":"selected","aria-checked":"checked","aria-disabled":"disabled","aria-expanded":"expanded","aria-busy":"busy","aria-current":"selected"},tn={alert:"alert",button:"button",checkbox:"checkbox",combobox:"combobox",header:"header",heading:"header",image:"image",img:"image",link:"link",list:"list",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 Ye(e){return e==="role"||e==="aria-label"||e==="aria-valuetext"||e==="aria-hidden"||e in nn}function rn(e,t){if(t===void 0||t===null)return;let n=String(t).trim().toLowerCase();if(e==="aria-current")return n!=="false";if(n==="mixed")return e==="aria-checked"?"mixed":!0;if(n==="undefined")return;return n===""||n==="true"}function Ur(e){if(e===void 0||e===null)return null;for(let t of String(e).trim().toLowerCase().split(/\s+/))if(tn[t])return tn[t];return null}function Xr(e,t,n){if(e==="aria-label")return{accessibilityLabel:t===void 0||t===null||t===""?null:String(t)};if(e==="aria-valuetext")return{accessibilityValue:t===void 0||t===null||t===""?null:String(t)};if(e==="role")return{accessibilityRole:Ur(t)};let r=nn[e];if(!r)return;let s=n.accessibilityState,o=s&&typeof s==="object"?{...s}:{},l=rn(e,t);if(l===void 0)delete o[r];else o[r]=l;return{accessibilityState:Object.keys(o).length?o:null}}function zr(e){let t=e.accessibilityState&&typeof e.accessibilityState==="object"?e.accessibilityState:void 0,n={};for(let[s,o]of Object.entries(e)){if(!Ye(s))continue;let l=Xr(s,o,n);if(l)Object.assign(n,l)}if(rn("aria-hidden",e["aria-hidden"])===!0)n.accessibilityRole="none";for(let s of["accessibilityLabel","accessibilityRole","accessibilityValue"])if(e[s]===void 0&&n[s]!==void 0&&n[s]!==null)e[s]=n[s];let r=n.accessibilityState;if(r)e.accessibilityState={...r,...t}}var de=["accessibilityLabel","accessibilityRole","accessibilityState","accessibilityValue"];function Qe(e,t){let n=t==="Image";if(!n){let s=Object.keys(e);for(let o=0;o<s.length&&!n;o++)n=Ye(s[o])||de.includes(s[o])}if(!n)return{};let r={...e};if(zr(r),t==="Image"&&r.accessibilityLabel===void 0&&e.alt!=null&&e.alt!=="")r.accessibilityLabel=String(e.alt);return Object.fromEntries(de.filter((s)=>(s in r)).map((s)=>[s,r[s]]))}var on=["keyboardType","secureTextEntry","returnKeyType","autoCapitalize","autoCorrect","editable","autoComplete"],Hr=new Set(["type","inputmode","inputMode","enterkeyhint","enterKeyHint","autoCapitalize","autoCorrect","spellcheck","readonly","readOnly","disabled",...on]),qr={numeric:"number-pad",decimal:"decimal-pad",tel:"phone-pad",email:"email-address",url:"url",search:"web-search",text:"default"},Gr={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}},Kr={enter:"default",done:"done",go:"go",next:"next",previous:"default",search:"search",send:"send"};function ae(e){return e===void 0||e===null?"":String(e).trim().toLowerCase()}function sn(e){if(e===void 0||e===null||e===!1)return!1;return ae(e)!=="false"}function Ze(e,...t){for(let n of t)if(e[n]!==void 0&&e[n]!==null)return e[n];return}function an(e,t){if(e!=="TextInput")return{};let n={},r=ae(t.type),s=Gr[r]??{},o=ae(Ze(t,"inputmode","inputMode")),l=qr[o]??s.keyboardType;if(l&&l!=="default")n.keyboardType=l;if(s.secure)n.secureTextEntry=!0;let u=ae(Ze(t,"enterkeyhint","enterKeyHint")),d=Kr[u]??s.returnKeyType;if(d&&d!=="default")n.returnKeyType=d;let f=ae(t.autoCapitalize);if(f==="off"||f==="none")n.autoCapitalize="none";else if(f==="on")n.autoCapitalize="sentences";else if(!f&&s.verbatim)n.autoCapitalize="none";let g=t.autoCorrect;if(g==="off"||g==="false"||ae(t.spellcheck)==="false"||g===void 0&&s.verbatim)n.autoCorrect=!1;else if(g==="on"||g==="true")n.autoCorrect=!0;if(sn(Ze(t,"readonly","readOnly"))||sn(t.disabled))n.editable=!1;if(s.autoComplete)n.autoComplete=s.autoComplete;return Object.fromEntries(Object.entries(n).filter(([h])=>t[h]===void 0||Jr(h,t[h])))}function Jr(e,t){if(e==="autoCapitalize")return t==="off"||t==="on";if(e==="autoCorrect")return typeof t==="string";return!1}function ln(e){let t=an(e.type,e.props);if(!Object.keys(t).length)return;e._textEntrySource=Object.fromEntries(on.filter((n)=>(n in e.props)).map((n)=>[n,e.props[n]])),Object.assign(e.props,t)}var ke={"region-change-complete":"onRegionChangeComplete",regionchangecomplete:"onRegionChangeComplete",click:"onPress",press:"onPress","press-in":"onPressIn",pressin:"onPressIn","press-out":"onPressOut",pressout:"onPressOut","long-press":"onLongPress",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","accept-completion":"onAcceptCompletion",acceptcompletion:"onAcceptCompletion","selection-change":"onSelectionChange",selectionchange:"onSelectionChange","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",dragstart:"onDragStart","drag-start":"onDragStart",dragover:"onDragOver","drag-over":"onDragOver",dragleave:"onDragLeave","drag-leave":"onDragLeave",drop:"onDrop",dragend:"onDragEnd","drag-end":"onDragEnd","hover-change":"onHoverChange",hoverchange:"onHoverChange",keydown:"onKeyPress",keypress:"onKeyPress"};var tt={svg:"Svg",g:"G",path:"Path",line:"Line",rect:"Rect",circle:"Circle",ellipse:"Ellipse",polyline:"Polyline",polygon:"Polygon",text:"SvgText",tspan:"SvgText",animate:"Animate"},nt=new Set(Object.values(tt));var dn=new Set(["defs","title","desc","metadata","style","symbol","use","clippath","mask","lineargradient","radialgradient","stop","pattern","marker","filter","foreignobject"]),fn=["viewBox","preserveAspectRatio","strokeWidth","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","fillOpacity","fillRule","vectorEffect","textAnchor","dominantBaseline","fontSize","fontWeight","attributeName","keyTimes","repeatCount"];function z(e){let t=typeof e==="number"?e:Number.parseFloat(String(e??""));return Number.isFinite(t)?t:0}function ee(e){return Math.round(e*1000)/1000}function rt(e){if(Array.isArray(e)&&e.length===4&&e.every((n)=>Number.isFinite(Number(n))))return e.map(Number);let t=String(e??"").trim().split(/[\s,]+/).map(Number);if(t.length!==4||t.some((n)=>!Number.isFinite(n))||t[2]<=0||t[3]<=0)return null;return t}function Yr(e){let t=String(e??"").trim().split(/[\s,]+/).filter(Boolean).map(Number).filter(Number.isFinite);return t.length%2?t.slice(0,-1):t}var cn=/[MLHVCSQTAZ]/i,et=/[+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?/gi;function Qr(e){let t=[],n=e,r=cn.exec(n);while(r){let s=r.index;n=n.slice(s);let o=n[0];n=n.slice(1);let l=cn.exec(n),u=l?n.slice(0,l.index):n,d;if(o==="A"||o==="a"){d=[];let f=0,g=u.trim(),h=0;while(h<g.length){let y=f%7,m=g.slice(h).replace(/^[\s,]+/,"");if(h=g.length-m.length,!m)break;if(y===3||y===4)d.push(m[0]==="1"?1:0),h+=1;else{et.lastIndex=0;let x=et.exec(m);if(!x||x.index!==0)break;d.push(Number.parseFloat(x[0])),h+=x[0].length}f++}}else d=(u.match(et)||[]).map(Number.parseFloat);t.push({command:o,args:d}),r=l}return t}function Zr(e,t,n,r,s,o,l,u,d){if(e===u&&t===d)return[];let f=Math.abs(n),g=Math.abs(r);if(!f||!g)return[1,u,d];let h=s*Math.PI/180,y=Math.cos(h),m=Math.sin(h),x=(e-u)/2,v=(t-d)/2,c=y*x+m*v,b=-m*x+y*v,p=c*c/(f*f)+b*b/(g*g);if(p>1)f*=Math.sqrt(p),g*=Math.sqrt(p);let N=f*f*g*g-f*f*b*b-g*g*c*c,S=f*f*b*b+g*g*c*c,R=Math.sqrt(Math.max(0,N/S));if(o===l)R=-R;let w=R*(f*b)/g,A=R*-(g*c)/f,P=y*w-m*A+(e+u)/2,L=m*w+y*A+(t+d)/2,_=(D,F,M,V)=>{let Q=D*V-F*M<0?-1:1,Z=(D*M+F*V)/(Math.hypot(D,F)*Math.hypot(M,V));return Q*Math.acos(Math.min(1,Math.max(-1,Z)))},j=_(1,0,(c-w)/f,(b-A)/g),W=_((c-w)/f,(b-A)/g,(-c-w)/f,(-b-A)/g);if(!l&&W>0)W-=2*Math.PI;if(l&&W<0)W+=2*Math.PI;let O=Math.max(1,Math.ceil(Math.abs(W)/(Math.PI/2))),I=W/O,k=1.3333333333333333*Math.tan(I/4),T=[],E=(D)=>{let F=f*Math.cos(D),M=g*Math.sin(D);return[y*F-m*M+P,m*F+y*M+L]},B=(D)=>{let F=-f*Math.sin(D),M=g*Math.cos(D);return[y*F-m*M,m*F+y*M]},U=j;for(let D=0;D<O;D++){let F=U+I,[M,V]=E(U),[Q,Z]=B(U),[H,J]=E(F),[te,G]=B(F);T.push(2,M+k*Q,V+k*Z,H-k*te,J-k*G,D===O-1?u:H,D===O-1?d:J),U=F}return T}function pn(e){let t=[],n=0,r=0,s=0,o=0,l=0,u=0,d=0,f=0,g="";for(let{command:h,args:y}of Qr(String(e??""))){let m=h===h.toLowerCase(),x=h.toUpperCase(),v=()=>m?n:0,c=()=>m?r:0,b=0,p=(S)=>{if(b+S>y.length)return null;let R=y.slice(b,b+S);return b+=S,R};if(x==="Z"){t.push(4),n=s,r=o,g="Z";continue}let N=!0;while(b<y.length||N&&x==="Z"){switch(x){case"M":{let S=p(2);if(!S)return t;if(n=S[0]+v(),r=S[1]+c(),N)t.push(0,n,r),s=n,o=r;else t.push(1,n,r);g=N?"M":"L";break}case"L":{let S=p(2);if(!S)return t;n=S[0]+v(),r=S[1]+c(),t.push(1,n,r),g="L";break}case"H":{let S=p(1);if(!S)return t;n=S[0]+v(),t.push(1,n,r),g="L";break}case"V":{let S=p(1);if(!S)return t;r=S[0]+c(),t.push(1,n,r),g="L";break}case"C":{let S=p(6);if(!S)return t;let R=S[0]+v(),w=S[1]+c();l=S[2]+v(),u=S[3]+c(),n=S[4]+v(),r=S[5]+c(),t.push(2,R,w,l,u,n,r),g="C";break}case"S":{let S=p(4);if(!S)return t;let R=g==="C"?2*n-l:n,w=g==="C"?2*r-u:r;l=S[0]+v(),u=S[1]+c(),n=S[2]+v(),r=S[3]+c(),t.push(2,R,w,l,u,n,r),g="C";break}case"Q":{let S=p(4);if(!S)return t;d=S[0]+v(),f=S[1]+c(),n=S[2]+v(),r=S[3]+c(),t.push(3,d,f,n,r),g="Q";break}case"T":{let S=p(2);if(!S)return t;d=g==="Q"?2*n-d:n,f=g==="Q"?2*r-f:r,n=S[0]+v(),r=S[1]+c(),t.push(3,d,f,n,r),g="Q";break}case"A":{let S=p(7);if(!S)return t;let R=S[5]+v(),w=S[6]+c();t.push(...Zr(n,r,S[0],S[1],S[2],S[3],S[4],R,w)),n=R,r=w,g="A";break}default:return t}N=!1}}return t.map((h)=>ee(h))}function un(e,t,n,r){if(n<=0||r<=0)return[];let s=0.5522847498;return[0,e+n,t,2,e+n,t+s*r,e+s*n,t+r,e,t+r,2,e-s*n,t+r,e-n,t+s*r,e-n,t,2,e-n,t-s*r,e-s*n,t-r,e,t-r,2,e+s*n,t-r,e+n,t-s*r,e+n,t,4].map(ee)}function it(e,t){switch(e){case"Path":return pn(String(t.d??""));case"Line":return[0,z(t.x1),z(t.y1),1,z(t.x2),z(t.y2)].map(ee);case"Rect":{let n=z(t.x),r=z(t.y),s=z(t.width),o=z(t.height);if(s<=0||o<=0)return[];let l=t.rx===void 0?z(t.ry):z(t.rx),u=t.ry===void 0?l:z(t.ry);if(l=Math.min(Math.max(0,l),s/2),u=Math.min(Math.max(0,u),o/2),!l||!u)return[0,n,r,1,n+s,r,1,n+s,r+o,1,n,r+o,4].map(ee);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+o-u,2,n+s,r+o-u+d*u,n+s-l+d*l,r+o,n+s-l,r+o,1,n+l,r+o,2,n+l-d*l,r+o,n,r+o-u+d*u,n,r+o-u,1,n,r+u,2,n,r+u-d*u,n+l-d*l,r,n+l,r,4].map(ee)}case"Circle":return un(z(t.cx),z(t.cy),z(t.r),z(t.r));case"Ellipse":return un(z(t.cx),z(t.cy),z(t.rx),z(t.ry));case"Polyline":case"Polygon":{let n=Yr(t.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(e==="Polygon")r.push(4);return r.map(ee)}default:return null}}function ei(e){let t=/^\s*(\d+(?:\.\d+)?|\.\d+)\s*(ms|s)?\s*$/.exec(String(e??""));if(!t)return null;let n=Number(t[1])/(t[2]==="ms"?1000:1);return n>0?n:null}function ti(e){if(e.attributeName!=="d")return null;let t=ei(e.dur),n=String(e.values??"").split(";").map((u)=>u.trim()).filter(Boolean);if(t===null||n.length<2)return null;let r=n.map(pn);if(r.some((u)=>!u.length))return null;let s=String(e.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(ee):r.map((u,d)=>ee(d/(r.length-1)));return{frames:r,frameTimes:l,duration:t}}function st(e){let t=ti(e),n={frames:t?.frames??null,frameTimes:t?.frameTimes??null,duration:t?.duration??null};for(let[r,s]of Object.entries(n))if(s===null)delete e[r];else e[r]=s;return n}var ni=[...fn,"accessibilityHint","accessibilityLabel","accessibilityRole","accessibilityState","accessibilityValue","barStyle","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","objectFit","objectPosition","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","ghostText","rowHeight","labelFontSize","labelFontWeight","selectionInset","contentInset","pictureInPicture","transitionID","dragData","dragURL","dropTypes","dropInside","selectTextOnFocus","iconOnly"],gn=new Set(["alwaysBounceHorizontal","alwaysBounceVertical","animating","autoCorrect","autoFocus","autoplay","autoPlay","bounces","controls","disabled","draggable","dropInside","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","iconOnly"]),ri=new Map(ni.map((e)=>[hn(e),e]));function hn(e){return e.replace(/[-_]/g,"").toLowerCase()}var Te=new Map;function ot(e,t){if((t==="Image"||t==="Video")&&e.toLowerCase()==="src")return"source";let n=Te.get(e);if(n===void 0){if(n=ri.get(hn(e))??e,Te.size>=2000)Te.clear();Te.set(e,n)}return n}var ii={view:"View",sidebar:"Sidebar",splitview:"SplitView",textinput:"TextInput",pressable:"Pressable",icon:"Icon",text:"Text",button:"Button",image:"Image",img:"Image",video:"Video",webview:"WebView",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 mn(e){return ii[e.toLowerCase()]||e}var si={"circle-pause":"pause.circle","cloud-alert":"exclamationmark.icloud","key-round":"key",paperclip:"paperclip","rotate-cw":"arrow.clockwise","route-off":"location.slash",syringe:"syringe","volume-1":"speaker.wave.1",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-question-mark":"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"},yn={lucide:si,hugeicons:{"workout-run":"figure.run"}};function fe(e,t=!1){let n=String(e??"").trim();if(!n)return{symbol:"questionmark.square.dashed",known:!1};if(t)return{symbol:n,known:!0};let r=/^i-([a-z0-9]+)-(.+)$/.exec(n)??/^([a-z0-9]+):(.+)$/.exec(n),s=r?r[1]:"lucide",o=r?r[2]:n,l=Object.hasOwn(yn,s)?yn[s]:void 0;if(l&&Object.hasOwn(l,o))return{symbol:l[o],iconify:`i-${s}-${o}`,known:!0};if(!r&&n.includes("."))return{symbol:n,known:!0};return{symbol:"questionmark.square.dashed",iconify:r?n:`i-lucide-${o}`,known:!1}}function lt(e){return e.split(/\s+/).find((t)=>/^i-[a-z0-9]+-[a-z0-9-]+$/.test(t))}import{generate as Ae,parse as oi}from"@stacksjs/ts-css/parse";var ai=/^(?::hover|:active|:visited|:focus|:focus-visible|:focus-within)$/;function li(e){let t=e.replace(/\s+/g,"").toLowerCase();if(!t||t==="all"||t==="screen")return{};if(/^(?:screenand)?\(prefers-color-scheme:dark\)$/.test(t))return{dark:!0};if(/^(?:screenand)?\(prefers-color-scheme:light\)$/.test(t))return{};if(/prefers-reduced-motion|\(hover|\(pointer|print|forced-colors|prefers-contrast/.test(t))return"skip";let n=t.replace(/^screenand/,"").split("and"),r={};for(let s of n){let o=/^\((min|max)-width:([\d.]+)(px|rem|em)\)$/.exec(s);if(!o)return;r[o[1]]=Number(o[2])*(o[3]==="px"?1:16)}return r}async function bn(e,t){let n={},r=new Set,s=(f)=>{if(r.has(f))return;r.add(f),t(f,[...f.matchAll(/\.(-?[a-z_][\w-]*)/gi)].map((g)=>g[1]))},o=(f,g,h)=>{if(!g.trim())return;let y=n[f]??={},m=h.dark?"dark":"light";if(h.min===void 0&&h.max===void 0){y[m]=y[m]?`${y[m]};${g}`:g;return}let x=y.responsive??=[],v=h.min??0,c=x.find((b)=>b.min===v&&b.max===h.max);if(!c)x.push(c={min:v,...h.max===void 0?{}:{max:h.max}});c[m]=c[m]?`${c[m]};${g}`:g};function l(f,g){for(let h of f){if(h.type==="Atrule"){let x=h.name.toLowerCase();if(["font-face","keyframes","-webkit-keyframes","import","charset","property","page","layer"].includes(x)){if(x==="layer"&&h.block)l(h.block.children,g);continue}if(x!=="media"||!h.block){s(`@${x}`);continue}let v=h.prelude?Ae(h.prelude):"",c=li(v);if(c==="skip")continue;if(!c){s(`@media ${v}`);continue}l(h.block.children,{dark:g.dark||c.dark,min:c.min??g.min,max:c.max??g.max});continue}if(h.type!=="Rule"||h.block.type!=="Block")continue;let y=[...h.block.children].filter((x)=>x.type==="Declaration").map((x)=>Ae(x)).join(";"),m=h.prelude.type==="SelectorList"?[...h.prelude.children].map(Ae):[Ae(h.prelude)];for(let x of m){let v=/^(?:(?:html|:root)?\.dark\s+)?((?:\.-?[a-z_][\w-]*)+)((?::{1,2}[a-z-]+)*)$/i.exec(x.trim());if(!v){if(!/^(?:html|:root|body|\*|::?[a-z-]+)/i.test(x.trim()))s(x.trim());continue}let c=v[2];if(c){if(!ai.test(c))s(x.trim());continue}let b=g.dark||/^(?:(?:html|:root)?\.dark\s+)/i.test(x.trim());o(v[1].slice(1),y,{dark:b,min:g.min,max:g.max})}}}let u="",d=!0;await new HTMLRewriter().on("style",{element(f){u="";let g=f.getAttribute("type");d=!g||g.toLowerCase()==="text/css",f.onEndTag(()=>{if(!d)return;try{let h=oi(u);if(h.type==="StyleSheet")l(h.children,{})}catch{s("invalid stylesheet")}})},text(f){u+=f.text}}).transform(new Response(e)).text();for(let f of Object.values(n))f.responsive?.sort((g,h)=>g.min-h.min||(g.max??1/0)-(h.max??1/0));return n}import{generate as pe,parse as vn}from"@stacksjs/ts-css/parse";async function Sn(e,t){let n={light:new Map,dark:new Map},r=new Set,s=(h)=>{if(!r.has(h))r.add(h),t(h)},o=(h,y,m)=>{for(let x of m){let v=n[x].get(h);if(!v||Number(y.important)>Number(v.important)||y.important===v.important&&y.specificity>=v.specificity)n[x].set(h,y)}},l=(h)=>{if(h.type==="Declaration")return h.property.startsWith("--");if(h.type==="Rule"||h.type==="Atrule")return!!h.block&&[...h.block.children].some(l);return!1},u=(h)=>{let y=h.replace(/\s+/g,"").toLowerCase();if(!y||y==="all"||y==="screen")return["light","dark"];let m=/^(?:screenand)?\(prefers-color-scheme:(light|dark)\)$/.exec(y);return m?[m[1]]:void 0};function d(h,y){for(let m of h){if(!l(m))continue;if(m.type==="Atrule"){let v=m.prelude?pe(m.prelude):"",c=m.name.toLowerCase()==="media"?u(v):void 0;if(!c){s(`@${m.name} ${v}`.trim());continue}d(m.block.children,y.filter((b)=>c.includes(b)));continue}if(m.type!=="Rule")continue;let x=m.prelude.type==="SelectorList"?[...m.prelude.children].map(pe):[pe(m.prelude)];for(let v of x){let c=/^(html|:root)?(?:\.(dark|light))?$/.exec(v.trim());if(!c||!c[1]&&!c[2]){s(v);continue}let b=(c[1]===":root"?10:c[1]?1:0)+(c[2]?10:0);for(let p of m.block.children){if(p.type!=="Declaration"){if(l(p))s(`nested rule in ${v}`);continue}if(!p.property.startsWith("--"))continue;let N={value:pe(p.value),important:!!p.important,specificity:b};o(p.property,N,y.filter((S)=>!c[2]||c[2]===S))}}}}let f="",g;return await new HTMLRewriter().on("html",{element(h){let y=h.getAttribute("style");if(!y)return;try{let m=vn(y,{context:"declarationList"});if(m.type!=="DeclarationList")return;for(let x of m.children)if(x.type==="Declaration"&&x.property.startsWith("--"))o(x.property,{value:pe(x.value),important:!!x.important,specificity:1000},["light","dark"])}catch{s("invalid document inline theme")}}}).on("style",{element(h){f="";let y=h.getAttribute("type");g=!y||y.toLowerCase()==="text/css"?u(h.getAttribute("media")??""):void 0,h.onEndTag(()=>{try{let m=vn(f);if(m.type!=="StyleSheet")return;if(!g){if([...m.children].some(l))s("style type/media");return}d(m.children,g)}catch{s("invalid stylesheet")}})},text(h){f+=h.text}}).transform(new Response(e)).text(),{light:[...n.light].map(([h,y])=>[h,y.value]),dark:[...n.dark].map(([h,y])=>[h,y.value])}}function Y(e,t={},n={},r={},s=[]){return{type:e,props:t,style:n,events:r,children:s}}function wn(e,t,n={}){return{version:"1.0.0",root:e,script:t,meta:{source:n.source||"unknown",compiledAt:n.compiledAt||Date.now(),headwindConfig:n.headwindConfig}}}var ci=/^(?: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)$/,Nn=new Set(["script","style","head","meta","link","title","base","noscript"]),kn=new Set(["template","body","html","main","fragment"]),_e=new Set,ui=new Set(["onBlur","onChange","onChangeText","onDismiss","onEnd","onEndEditing","onEndReached","onError","onFocus","onPageSelected","onLayout","onLoad","onLoadEnd","onLoadStart","onLongPress","onMomentumScrollBegin","onMomentumScrollEnd","onPause","onPictureInPictureStart","onPictureInPictureStop","onPlay","onDragEnd","onDragLeave","onDragOver","onDragStart","onDrop","onHoverChange","onKeyPress","onPress","onPressIn","onPressOut","onProgress","onRequestClose","onRegionChangeComplete","onRefresh","onScroll","onScrollBeginDrag","onScrollEndDrag","onShow","onSlidingComplete","onSubmitEditing","onValueChange"]),Ee=new Set(["Sidebar","SplitView","View","ScrollView","SafeAreaView","KeyboardAvoidingView","Text","TextInput","Button","Link","TouchableOpacity","TouchableHighlight","Pressable","Icon","Image","ImageBackground","Video","WebView","Map","MapPolyline","MapPolygon","MapMarker","FlatList","SectionList","Switch","Checkbox","Slider","Picker","SegmentedControl","DatePicker","Modal","ActivityIndicator","StatusBar","RefreshControl",...nt]),di=new Map([["data","data"],["sections","sections"],["renderitem","renderItem"],["rendersectionheader","renderSectionHeader"],["keyextractor","keyExtractor"]]),Rn=new Set(["View","SafeAreaView","ScrollView","KeyboardAvoidingView"]),fi={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:" ","#39":"'","#x27":"'"};function se(e){return e.replace(/&(#x?[0-9a-f]+|\w+);/gi,(t,n)=>{let r=fi[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):t}return t})}function ut(e){if(!e.includes("{{"))return null;let t=[],n=0;for(let r of e.matchAll(/\{\{([\s\S]+?)\}\}/g)){if(r.index>n)t.push(JSON.stringify(e.slice(n,r.index)));t.push(`(${r[1].trim()})`),n=r.index+r[0].length}if(!t.some((r)=>r.startsWith("(")))return null;if(n<e.length)t.push(JSON.stringify(e.slice(n)));if(t.length===1)return t[0].slice(1,-1);return`[${t.join(", ")}].map(__stxPart => __stxPart == null ? '' : __stxPart).join('')`}function Tn(e,t,n,r={}){let s=r.inheritedVariables,o={},l={},u={},d=[],f="",g={};for(let[x,v]of t){let c=x.toLowerCase();if(c==="class"||c==="classname"){f=f?`${f} ${v}`:v;continue}if(c==="style"){g={...g,...pi(e,v,n,{...r,onVariables(S){s=S,r.onVariables?.(S)}})};continue}if(c.startsWith(":")||c.startsWith("x-")&&c!=="x-cloak"){u[c.startsWith(":")?c.slice(1):c.slice(2)]=se(v);continue}if(c==="x-cloak")continue;if(c.startsWith("@")||c.startsWith("v-on:")){let S=c.startsWith("@")?c.slice(1):c.slice(5),[R]=S.split("."),w=ke[R]??ke[R.replaceAll("-","")]??(R.startsWith("on")?R:""),A=w==="onKeyPress"&&S!==R;if(!w||!ui.has(w)||A){if(ci.test(R)||/\./.test(S))n.push({kind:"unread-event",tag:e,name:x});continue}l[w]=se(v);continue}if(c==="key"){o.key=v;continue}let b=se(v),p=ut(b);if(p){u[c]=p,d.push(c);continue}let N=ot(x);if(b===""&&gn.has(N)){o[N]=!0;continue}try{o[N]=JSON.parse(b)}catch{o[N]=b}}let h=o["data-native"]?o["data-native"]==="TextInput":e==="textarea"||e==="input"&&!["checkbox","radio","hidden"].includes(String(o.type??"text").toLowerCase()),y=f?ie(f,s,{focus:h,focusWithin:!0,rules:r.rules}):void 0;for(let x of new Set(y?.unknown??[]))n.push({kind:"unknown-class",tag:e,name:x});let m=He({...y?.style,...g});return{props:o,style:m,events:l,bindings:u,classes:f,inline:g,templated:d}}function pi(e,t,n,r){return ve(se(t),(s)=>n.push({...s,tag:e}),r)}function Ce(e){return e.children.map((t)=>typeof t==="string"?t:Ce(t)).join("").replace(/\s+/g," ").trim()}function gi(e,t){let n=e.node;if(n.props["data-stx-native-template"])return n.children=n.children.map((o)=>typeof o==="string"?Y("Text",{},{},{},[o]):o),n;let r=n.children.filter((o)=>typeof o!=="string"),s=n.children.filter((o)=>typeof o==="string").join("").trim();if(e.tag==="button"&&n.type==="Button"&&!e.declaredNative&&r.length>0)return n.type="Pressable",n.props.role??="button",n.children=n.children.flatMap((o)=>typeof o==="string"?o.trim()?[Y("Text",{},{},{},[o.trim()])]:[]:[o]),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 o=Ce(n);return n.children=o?[o]:[],n}if(Rn.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"?Y("Text",{},{},{},[u]):u),n;let l=Ce(n);return t.push({kind:"flattened-text",tag:e.tag}),n.children=l?[l]:[],n}if(n.type==="Text"&&r.length===0&&n.children.length>0)return n.children=s?[s]:[],n;if(Rn.has(n.type)&&r.length>0)n.children=r;return n}async function hi(e,t={}){e=await ge(e);let n=[];for(let c of wi(e))n.push({kind:"stray-end-tag",tag:c});let r=await Sn(e,(c)=>n.push({kind:"unsupported-theme-rule",tag:"style",name:c})),s=ne(r.light).computed(),o=new Set([...e.matchAll(/\sclass(?:name)?\s*=\s*"([^"]*)"/gi)].flatMap((c)=>c[1].split(/\s+/))),l=await bn(e,(c,b)=>{if(!b.length||b.some((p)=>o.has(p)))n.push({kind:"unsupported-style-rule",tag:"style",name:c})}),u=[],d=[],f=new Set;function g(c){let b=d[d.length-1];if(!b)u.push(c);else if(!b.dropped)b.node.children.push(c)}function h(c){let b=c.node.style.fontFamily,p=(S)=>{if(c.tag!=="html"&&c.node._styleSource)S._styleAncestors=[c.node._styleSource,...S._styleAncestors??[]];if(b&&S.style.fontFamily===void 0)S._layoutDefaults={...S._layoutDefaults,fontFamily:b},S.style={fontFamily:b,...S.style}};if(c.node.bindings&&Object.keys(c.node.bindings).length>0){let S=c.node.children,R=S.filter((A)=>typeof A!=="string"),w=R.length===1&&R.length===S.length?R[0]:Y("View",{},{},{},S);if(w.bindings={...c.node.bindings,...w.bindings},w.bindingId===void 0&&c.node.bindingId!==void 0)w.bindingId=c.node.bindingId;p(w),g(w);return}let N=d[d.length-1];for(let S of c.node.children){if(typeof S==="string"){if(N&&!N.dropped)N.node.children.push(S);continue}if(p(S),!N)u.push(S);else if(!N.dropped)N.node.children.push(S)}}function y(c,b){let p=d[d.length-1];if(c==="svg"||p?.svg)return m(c,b,p);let N=Nn.has(c)&&!_e.has(c),S=d[d.length-1]?.dropped??!1,R=p?.variables??s,{props:w,style:A,events:P,bindings:L,classes:_,inline:j,templated:W}=N||S?{props:{},style:{},events:{},bindings:{},classes:"",inline:{},templated:[]}:Tn(c,b,n,{inheritedVariables:R,onVariables:(B)=>{R=B},rules:l});if(c==="html")R=s;let O=w["data-native"],I=c==="template"&&b.some(([B])=>[":for","x-for","@for"].includes(B)),k;if(I)k="View",w["data-stx-native-template"]=!0;else if(typeof O==="string"&&Ee.has(O))k=O,delete w["data-native"];else{if(k=_e.has(c)?"View":mn(c),(c==="i"||c==="span")&&/(?:^|\s)i-[a-z0-9]+-[a-z0-9-]+(?:\s|$)/.test(_))k="Icon";else if(c==="i"&&b.some(([B])=>/^(?::|x-)class$/i.test(B)))k="Icon";if(c==="input"){let B=String(w.type??"text").toLowerCase();if(B==="checkbox")k="Checkbox",w.formValue=w.value??"on",w.checked=w.checked===""||w.checked===!0||w.checked==="true",w.value=w.checked;else if(B==="hidden")k="View",A.display="none",j.display="none";else if(B==="radio")k="View",w.accessibilityRole="radio",n.push({kind:"unsupported-control",tag:c,name:"input:radio"})}}if(!S&&k===c&&!Ee.has(k)&&!Nn.has(c)&&!kn.has(c)&&!f.has(c))f.add(c),n.push({kind:"unmapped-tag",tag:c});if((N||_e.has(c))&&!f.has(`drop:${c}`))f.add(`drop:${c}`),n.push({kind:"dropped-subtree",tag:c});if(k==="View"&&/(?:^|\s)overflow-x-(?:auto|scroll)(?:\s|$)/.test(_))k="ScrollView",w.horizontal=!0,w.showsHorizontalScrollIndicator??=!1;else if(k==="View"&&/(?:^|\s)overflow-y-(?:auto|scroll)(?:\s|$)/.test(_))k="ScrollView";if(c==="form")w["data-stx-form"]=!0;if(c==="button"&&w.type===void 0)w.type="submit";if(c==="textarea"&&k==="TextInput")w.multiline??=!0;if((k==="Video"||k==="Image")&&w.source===void 0&&w.src!==void 0)w.source=w.src,delete w.src;if(k==="Icon"){let B=ie(_).icon,U=String(w.symbol||w.name||B||""),D=fe(U,Boolean(w.symbol));if(U.trim()&&!D.known)n.push({kind:"unknown-icon",tag:c,name:U});if(w.symbol=D.symbol,D.iconify)w.iconify=D.iconify}if(k==="FlatList"||k==="SectionList"){let B=new Set([...Object.keys(w),...Object.keys(L)].map((U)=>U.toLowerCase()));for(let[U,D]of di)if(B.has(U))n.push({kind:"unsupported-list-prop",tag:k,name:D})}let T=Y(k,w,A,P);T._inlineStyle=j,T._styleSource=se(b.find(([B])=>B==="style")?.[1]??"");let E=w["data-stx-b"];if(typeof E==="number"&&Number.isInteger(E))T.bindingId=E;if(delete w["data-stx-b"],_)T._classes=_;if(Object.keys(L).length>0)T.bindings=L;if(W.length>0)T._templated=W;if(typeof w.key==="string")T.key=w.key,delete w.key;return{tag:c,node:T,variables:R,declaredNative:typeof O==="string"&&Ee.has(O),dropped:N||S||_e.has(c)||k==="Video",discard:N||S,unwrap:kn.has(c)&&!I&&k!=="ScrollView"&&!(typeof O==="string"&&Ee.has(O))}}function m(c,b,p){let N=p?.dropped??!1,S=tt[c];if(N||!S){if(!N&&!f.has(`drop:${c}`))f.add(`drop:${c}`),n.push({kind:dn.has(c)?"dropped-subtree":"unmapped-tag",tag:c});return{tag:c,node:Y("G",{},{},{}),svg:!0,dropped:!0,discard:!0,unwrap:!1}}let R=p?.variables??s,{props:w,style:A,events:P,bindings:L,classes:_,inline:j,templated:W}=Tn(c,b,n,{inheritedVariables:R,onVariables:(T)=>{R=T},rules:l});if(S==="Svg"){let T=rt(w.viewBox);if(T)w.viewBox=T;else delete w.viewBox;for(let E of["width","height"]){if(typeof w[E]==="number"&&A[E]===void 0)A[E]=w[E];delete w[E]}}if(typeof w.strokeDasharray==="string"||typeof w.strokeDasharray==="number"){let T=String(w.strokeDasharray).split(/[\s,]+/).map(Number).filter(Number.isFinite);w.strokeDasharray=T}let O=it(S,w);if(O)w.geometry=O;if(S==="Animate")st(w);let I=Y(S,w,A,P);I._inlineStyle=j,I._styleSource=se(b.find(([T])=>T==="style")?.[1]??"");let k=w["data-stx-b"];if(typeof k==="number"&&Number.isInteger(k))I.bindingId=k;if(delete w["data-stx-b"],_)I._classes=_;if(Object.keys(L).length>0)I.bindings=L;if(W.length>0)I._templated=W;if(typeof w.key==="string")I.key=w.key,delete w.key;return{tag:c,node:I,variables:R,svg:!0,dropped:!1,discard:!1,unwrap:!1}}if(await new HTMLRewriter().on("*",{element(c){let b=c.tagName.toLowerCase(),p=y(b,[...c.attributes]),N=!0;try{c.onEndTag(()=>{if(d.pop(),p.discard)return;if(p.unwrap)h(p);else g(gi(p,n))})}catch{N=!1}if(N)d.push(p);else if(!p.discard)g(p.node)},text(c){let b=d[d.length-1];if(!b||b.dropped)return;let p=bi(se(c.text),b.inMustache===!0);b.inMustache=p.inside;let N=p.text;if(!N.trim())return;b.node.children.push(N)}}).transform(new Response(e)).text(),u.length===0)throw Error(`No element to translate in the rendered output of ${t.source??"unknown"}`);let x=u.length===1?u[0]:Y("View",{},{},{},u);if(r.light.length||r.dark.length)x._stylesheetTheme=r;if(Object.keys(l).length)x._stylesheetRules=l;let v=(c)=>{vi(c);let b=Qe(c.props,c.type);if(Object.keys(b).length)c._accessibilitySource=Object.fromEntries(de.filter((p)=>(p in c.props)).map((p)=>[p,c.props[p]])),Object.assign(c.props,b);ln(c);for(let p of c.children)if(typeof p!=="string")v(p)};return yi(x),v(x),An(x),{root:x,diagnostics:n}}var mi=new Set(["TextInput","Picker","Switch","Checkbox","Slider","DatePicker"]);function yi(e){let t=new Map,n=[],r=(s)=>{if(typeof s.props.id==="string"&&s.props.id)t.set(s.props.id,s);if(typeof s.props.for==="string"&&s.props.for)n.push(s);for(let o of s.children)if(typeof o!=="string")r(o)};r(e);for(let s of n){let o=t.get(s.props.for);if(!o||!mi.has(o.type))continue;let l=["aria-label","accessibilityLabel"].some((d)=>o.props[d]!==void 0||o.bindings?.[d]!==void 0),u=s.bindings?.text===void 0?Ce(s):"";if(l||!u||u.includes("{{"))continue;if(o.props["aria-label"]=u,s.props["aria-hidden"]===void 0&&s.bindings?.["aria-hidden"]===void 0)s.props["aria-hidden"]="true"}}function An(e,t=!1){if(["ScrollView","FlatList","SectionList"].includes(e.type))return!e.props.horizontal&&(Number(e.style.flex)>0||Number(e.style.flexGrow)>0);let n=e.style.flexDirection==="row"||e.style.display==="flex"&&e.style.flexDirection==null;if(!e.children.map((s)=>typeof s==="string"?!1:An(s,n)).some(Boolean)||!["View","SafeAreaView","KeyboardAvoidingView"].includes(e.type))return!1;if(e.style.height!==void 0||e.style.maxHeight!==void 0)return!1;if(e.style.flex===0||e.style.flexGrow===0||e.style.flexShrink===0)return!1;if(t)return!0;if(e.style.flex===void 0&&e.style.flexGrow===void 0)e._layoutDefaults={flex:1,flexGrow:1,flexShrink:1,flexBasis:0},e.style={...e._layoutDefaults,...e.style};return!0}function bi(e,t){let n="",r=0;while(r<e.length){if(!t&&e.startsWith("{{",r)){t=!0,n+="{{",r+=2;continue}if(t&&e.startsWith("}}",r)){t=!1,n+="}}",r+=2;continue}let s=e[r];if(!t&&/\s/.test(s)){if(!n.endsWith(" "))n+=" ";while(r<e.length&&/\s/.test(e[r]))r++;continue}n+=s,r++}return{text:n,inside:t}}function vi(e){if(e.props["data-stx-native-template"])return;if(e.bindings?.text||e.children.length===0)return;let t=e.children.filter((r)=>typeof r==="string");if(t.length<e.children.length){let r=e.type==="Button"||e.type==="Text"?null:ut(t.join(""));if(!r)return;e.bindings={...e.bindings,text:r},e._templated=[...e._templated??[],"text"],e.children=e.children.filter((s)=>typeof s!=="string");return}let n=ut(e.children.join(""));if(!n)return;if(e.type!=="Button")e.bindings={...e.bindings,text:n},e._templated=[...e._templated??[],"text"],e.children=[];else{e.type="Pressable",e.props.role??="button";let r=Y("Text",{},{},{},[]);r.bindings={text:n},r._templated=["text"],e.children=[r]}}async function _n(e,t={}){let{root:n,diagnostics:r}=await hi(e,t),s=t.script??{exports:{},functions:[],code:""};return{document:wn(n,s,{source:t.source??"unknown"}),diagnostics:r}}var Si=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function wi(e){let t=(o)=>o.replace(/[^\n]/g," "),n=e.replace(/<!--[\s\S]*?-->/g,t).replace(/<(script|style|textarea|title)\b[^>]*>[\s\S]*?<\/\1\s*>/gi,t).replace(/"[^"]*"|'[^']*'/g,(o)=>o[0]+t(o.slice(1,-1))+o[0]),r=[],s=[];for(let o of n.matchAll(/<(\/?)([a-z][\w:.-]*)[^<>]*?(\/?)>/gi)){let l=o[2].toLowerCase();if(Si.has(l)||o[3])continue;if(!o[1]){r.push(l);continue}let u=r.lastIndexOf(l);if(u===-1)s.push(l);else r.length=u}return s}function Ni(e){let t="",n=0;for(let r=e.indexOf("<");r!==-1;r=e.indexOf("<",r+1)){if(!/[a-z]/i.test(e[r+1]??""))continue;let s=r+1,o="";for(;s<e.length;s++){let u=e[s];if(o){if(u===o)o="";continue}if(u==='"'||u==="'")o=u;else if(u===">"||u==="<")break}if(e[s]!==">"||e[s-1]!=="/")continue;let l=e.slice(r,s+1).replace(/"[^"]*"|'[^']*'/g,'""');if(!/\sdata-native-exclude(?=[\s=/>])/i.test(l))continue;t+=e.slice(n,r),n=s+1,r=s}return n?t+e.slice(n):e}async function ge(e){if(!/\bdata-native-exclude\b/i.test(e))return e;if(e=Ni(e),!/\bdata-native-exclude\b/i.test(e))return e;return new HTMLRewriter().on("[data-native-exclude]",{element(t){t.remove()}}).transform(new Response(e)).text()}var En=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,xi=/(?:^|\n)\s*(?:export\s+)?(?:async\s+)?function\s*\*?\s*([$\w]+)\s*\(/g,ki=/(?:^|\n)\s*(?:export\s+)?(?:const|let|var)\s+([$\w]+)\s*=\s*(?:async\s*)?(?:\([^)]*\)|[$\w]+)\s*=>/g,Cn=/(?:^|\n)\s*(?:export\s+)?const\s+([$\w]+)\s*=\s*(-?[\d.]+|true|false|'[^']*'|"[^"]*")\s*(?=;|\n|$)/g;function dt(e){let t=[];En.lastIndex=0;for(let o of e.matchAll(En)){let l=o[1]??"";if(/\bserver\b/.test(l))continue;t.push(o[2].trim())}let n=t.filter(Boolean).join(`
|
|
2
|
+
import"./chunk-0jdz31q1.js";import"./chunk-c08jvjqt.js";import{C,So,ia,Yl}from"./chunk-4b110x6r.js";import"./chunk-phzhmnnm.js";import"./chunk-ck4ypzet.js";import"./chunk-ggez55jb.js";import"./chunk-w98yt4d4.js";import"./chunk-4zw9trtx.js";import"./chunk-razwegar.js";import"./chunk-b234w3mf.js";import{Fs,a}from"./chunk-2r84qtat.js";import"./chunk-eca022er.js";import"./chunk-mpfm5ctr.js";import"./chunk-13awnyq0.js";import"./chunk-kvrbdez2.js";import{It,at,Re,xn,Ve,wr,vr,ct}from"./chunk-x40j9ta1.js";import{i}from"./chunk-4kh0616n.js";import"./chunk-ba27s9vr.js";import"./chunk-13kfjnyn.js";import{Ls}from"./chunk-anj2j86n.js";import"./chunk-c829tgwv.js";import"./chunk-fs43342z.js";import{At}from"./chunk-0mxkw6m6.js";import"./chunk-cwcmmgvz.js";import"./chunk-8d6wkfdx.js";import{Cs}from"./chunk-4ccbj4z6.js";import{rs}from"./chunk-9tj16d70.js";import{ns,$o,Ro}from"./chunk-g17g6w1t.js";import"./chunk-cf4apy9s.js";import"./chunk-9bexzgws.js";import"./chunk-pgqc8895.js";import"./chunk-v0yay1kw.js";import"./chunk-r2ns89f7.js";import{existsSync as Be,mkdirSync as Qi,readFileSync as Zi}from"fs";import K from"path";import{existsSync as Un,mkdirSync as Vn,realpathSync as Wi,rmSync as Wn}from"fs";import q from"path";import ce from"path";var Hn="data-stx-b",St=new Set(ia),qn=new Set(So);function Le(e){if(e==="ref"||e==="data-stx-ref")return"ref";if(e.startsWith("::"))return null;if(e.startsWith("@bind:")||e.startsWith("x-bind:"))return"attr";if(e.startsWith("@")||e.startsWith(":")){let t=e.slice(1).split(".")[0];if(St.has(t))return t==="if"?"if":t;if(t==="for"||t==="else"||t==="else-if"||t==="elseif")return"for";if(Yl(t))return"event";if(e.startsWith("@"))return"event";return"attr"}if(e.startsWith("x-")){let t=e.split(".")[0];if(!qn.has(t))return"attr";let n=t.slice(2);if(n==="cloak"||n==="data"||n==="bind")return null;if(n==="tooltip"||n==="tooltip-position")return null;return St.has(n)?n==="if"?"if":n:"attr"}return null}function Gn(e){let t=[];for(let[n,r]of e){let s=Le(n);if(s)t.push({name:n,value:r,kind:s})}return t}var Kn=/<([a-z][\w-]*)((?:\s+[^\s"'=<>/]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s"'=<>`]+))?)*)\s*\/?>/gi,De=/([^\s"'=<>/]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'=<>`]+)))?/g;function wt(e){let t=[],n=0;return{html:e.replace(Kn,(s,o,l)=>{if(!l||!/[:@]|x-/.test(l))return s;let u=[];De.lastIndex=0;for(let y=De.exec(l);y;y=De.exec(l))u.push([y[1],y[2]??y[3]??y[4]??""]);let d=Gn(u);if(!d.length)return s;let f={id:n++,bindings:d};if(d.some((y)=>y.kind==="for"))f.template=!0;t.push(f);let g=s.endsWith("/>");return`${s.slice(0,g?-2:-1).trimEnd()} ${Hn}="${f.id}"${g?"/>":">"}`}),manifest:{entries:t}}}function me(e){let t=e&&/^(\d+(?:\.\d+)?|\.\d+)(px|rem)?$/.exec(e.trim());if(!t)return;let n=Number(t[1])*(t[2]==="rem"?16:1);return Number.isFinite(n)?n:void 0}function $e(e,t){if(!Re[e])return;return me(t?.get(xn(e))??Re[e].value)}function je(e,t){let n=wr[e];if(!n)return;return me(t?.get(ct(n))??Ve[n]?.value)}function We(e,t){let n=vr[e];if(!n)return;let r=me(t?.get(ct(n.size))??Ve[n.size]?.value),s=me(t?.get(ct(n.leading))??Ve[n.leading]?.value);if(r===void 0||s===void 0)return;return{fontSize:r,lineHeight:s}}var Jn={sm:640,md:768,lg:1024,xl:1280,"2xl":1536},Rt=Ue({}),Nt,xt=null;function ue(){let e=globalThis.__stxNativeStyleConfig;if(!e)return Rt;if(e!==Nt)Nt=e,xt=Ue(e);return xt}function Tt(e,t=new Map,n=""){for(let[r,s]of Object.entries(e??{})){let o=r==="DEFAULT"?n.replace(/-$/,""):`${n}${r}`;if(typeof s==="string")t.set(o,s);else if(s&&typeof s==="object")Tt(s,t,`${o}-`)}return t}function _t(e){let t={};for(let[n,r]of Object.entries(e??{})){let s=typeof r==="number"?r:Number.parseFloat(String(r));if(Number.isFinite(s))t[n]=s}return t}function Ue(e){return{shortcuts:new Map(Object.entries(e.shortcuts??{}).filter(([,t])=>typeof t==="string")),colors:Tt(e.colors),fontFamily:new Map(Object.entries(e.fontFamily??{}).map(([t,n])=>[t,Array.isArray(n)?n.join(", "):n])),breakpoints:new Map(Object.entries({...Jn,..._t(e.breakpoints)}))}}var Fe={};function Et(){return ue()}function kt(e){Fe=e??{},Rt=Ue(Fe)}async function Ct(e,t){let n=Fe;kt(e);try{return await t()}finally{kt(n)}}function Ot(e){if(!e)return{};let t=e.theme??{},n=Object.fromEntries(Object.entries(e.shortcuts??{}).filter(([,r])=>typeof r==="string"));return{...Object.keys(n).length?{shortcuts:n}:{},...t.fontFamily?{fontFamily:JSON.parse(JSON.stringify(t.fontFamily))}:{},...t.colors?{colors:JSON.parse(JSON.stringify(t.colors))}:{},...t.screens?{breakpoints:_t(t.screens)}:{}}}function Pt(e){return ue().shortcuts.get(e)}function Mt(e){return ue().colors.get(e)}function Xe(e){return ue().breakpoints.get(e)}function ye(e){return ue().fontFamily.get(e)}var Dt=/^--[\w\u0080-\uFFFF-]+$/u;function ze(e,t){if(!/var\(/i.test(e))return e;let n="",r="",s=!1;for(let o=0;o<e.length;o++){let l=e[o];if(l==="\\"){n+=e.slice(o,o+2),o++;continue}if(r){if(n+=l,l===r)r="";continue}if(l==='"'||l==="'"){r=l,n+=l;continue}if(e.slice(o,o+4).toLowerCase()!=="var("||o>0&&/[\w-]/.test(e[o-1])){n+=l;continue}let u=1,d=-1,f="",g=o+4;for(;g<e.length;g++){let m=e[g];if(m==="\\"){g++;continue}if(f){if(m===f)f="";continue}if(m==='"'||m==="'"){f=m;continue}if(m==="(")u++;if(m===")"&&--u===0)break;if(m===","&&u===1&&d===-1)d=g}if(u!==0)return;let h=e.slice(o+4,d===-1?g:d).trim();if(!Dt.test(h))return;let y=t(h,d===-1?void 0:e.slice(d+1,g).trim());if(y===void 0||n.length+y.length>65536)return;n+=y,s=!0,o=g}return s&&n.length>65536?void 0:n}var Bt=new Map;function Yn(e){for(let t=0;t<e.length;t++){let n=e[t][0];if(typeof n==="string"&&n.trim().startsWith("--"))return!0}return!1}function ne(e,t){if(!e.length||!Yn(e)){let v=new Set,c=(b,p=0)=>p>64?void 0:ze(b,(N,S)=>(v.add(N),t?.get(N)??(S===void 0?void 0:c(S,p+1))));return{resolve:c,used:v,computed:()=>t??Bt}}let n=new Map,r=new Set;for(let[v,c]of e){let b=v.trim();if(!Dt.test(b))continue;if(typeof c==="string"||typeof c==="number"&&Number.isFinite(c))n.set(b,String(c).trim())}let s=new Map,o=new Set;for(let[v,c]of n){let b=new Set,p=(N,S=0)=>S>64?void 0:ze(N,(R,w)=>(b.add(R),w===void 0?"":p(w,S+1)));if(p(c)===void 0)o.add(v);s.set(v,b)}let l=new Map,u=new Map,d=[],f=new Set,g=0;function h(v,c=0){if(c>64){o.add(v);return}l.set(v,g),u.set(v,g++),d.push(v),f.add(v);for(let N of s.get(v)??[]){if(!n.has(N))continue;if(!l.has(N)){if(h(N,c+1),u.has(N))u.set(v,Math.min(u.get(v),u.get(N)))}else if(f.has(N))u.set(v,Math.min(u.get(v),l.get(N)))}if(u.get(v)!==l.get(v))return;let b=[],p;do p=d.pop(),f.delete(p),b.push(p);while(p!==v);if(b.length>1||s.get(v)?.has(v))b.forEach((N)=>o.add(N))}for(let v of n.keys())if(!l.has(v))h(v);let y=new Map;function m(v,c){if(r.add(v),y.has(v))return y.get(v);let b=n.get(v),p=b===void 0||/^(?:inherit|unset)$/i.test(b)?t?.get(v):o.has(v)||/^(?:initial|revert|revert-layer)$/i.test(b)?void 0:x(b,c+1);return y.set(v,p),p}function x(v,c=0){if(c>64)return;return ze(v,(b,p)=>m(b,c)??(p===void 0?void 0:x(p,c+1)))}return{resolve:x,used:r,computed(){if(!n.size)return t??Bt;let v=new Map(t);for(let c of n.keys())v.set(c,m(c,0));return v}}}function He(e){if(e.display==="flex"&&e.flexDirection==null)return{...e,flexDirection:"row"};return e}var jt=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","objectPosition","tintColor","transform","overflow","pointerEvents","fill","stroke","strokeWidth","gradientDirection","gradientFrom","gradientVia","gradientTo"]),Qn=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"]),Lt=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"]),$t=/^[+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?$/i,Zn=/^([+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?)(px|rem|em)?$/i,er=new Set(["rotate","rotateX","rotateY","rotateZ","skewX","skewY"]),tr=new Set(["perspective","scale","scaleX","scaleY","translateX","translateY"]);function nr(e){if(typeof e!=="string")return e;let t=Zn.exec(e);return t?Number(t[1])*(/^r?em$/i.test(t[2]||"")?16:1):e}function oe(e){return typeof e==="number"&&Number.isFinite(e)}function rr(e,t){if(e==="shadowOffset"&&t&&typeof t==="object"&&!Array.isArray(t)){let{width:n,height:r}=t;return oe(n)&&oe(r)?{width:n,height:r}:void 0}if(e==="transform"&&Array.isArray(t)){let n=[];for(let r of t){if(!r||typeof r!=="object"||Array.isArray(r)||Object.keys(r).length!==1)return;let[s,o]=Object.entries(r)[0];if(tr.has(s)&&oe(o))n.push({[s]:o});else if(er.has(s)&&typeof o==="string"&&/^[+-]?(?:\d+\.?\d*|\.\d+)(?:deg|rad)$/.test(o))n.push({[s]:o});else return}return n}return}function Vt(e){let t=[],n=0,r=0,s="";for(let o=0;o<=e.length;o++){let l=e[o];if(l==="\\"){o++;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(o!==e.length&&(l!==";"||r))continue;let u=e.slice(n,o),d=u.indexOf(":");if(d!==-1)t.push([u.slice(0,d).trim(),u.slice(d+1).trim()]);n=o+1}return t}var be=new Map;function ir(e,t){if(typeof e==="string"){let n=be.get(e);if(n)return n;let r=sr(e,t);if(r){if(be.size>=2000)be.clear();return be.set(e,r),r}return[]}return or(e,t)}function sr(e,t){let n=e.trim();if(!n)return[];try{n=JSON.parse(n)}catch{}if(typeof n==="string")return Vt(n);if(n&&typeof n==="object"&&!Array.isArray(n))return Object.entries(n);if(n!=null&&n!==!1)t({kind:"non-numeric-style",name:"style"});return null}function or(e,t){let n;if(typeof e==="string"){if(e=e.trim(),!e)return[];try{e=JSON.parse(e)}catch{}}if(typeof e==="string")n=Vt(e);else if(e&&typeof e==="object"&&!Array.isArray(e))n=Object.entries(e);else{if(e!=null&&e!==!1)t({kind:"non-numeric-style",name:"style"});return[]}return n}function ve(e,t=()=>{},n={}){let r=ir(e,t),s=ne(r,n.inheritedVariables);return n.onVariables?.(s.computed()),lr(r,s,t)}var us=Symbol("invalid native structured style");function ar(e){return jt.has(e)||e.trim().startsWith("--")?e:e.trim().toLowerCase().replace(/-([a-z])/g,(t,n)=>n.toUpperCase())}function lr(e,t,n){let r={},s=[];for(let[o,l]of e){if(o.trim().startsWith("--")){s.push(o.trim());continue}let u=ar(o);if(!jt.has(u)){n({kind:"unknown-style",name:u});continue}if(l==null||l==="")continue;let d=typeof l==="string"?t.resolve(l.trim()):l;if(d===void 0){n({kind:"non-numeric-style",name:u});continue}if(d==="")continue;if(u==="pointerEvents"){if(typeof d==="string"&&["auto","none","box-none","box-only"].includes(d))r.pointerEvents=d;else n({kind:"unknown-style",name:`pointerEvents:${String(d)}`});continue}if(u==="objectFit"){let g=typeof d==="string"?d.trim().toLowerCase():"";if(["fill","contain","cover","none","scale-down"].includes(g))r.objectFit=g;else n({kind:"unknown-style",name:`objectFit:${String(d)}`});continue}if(u==="objectPosition"){let g=typeof d==="string"?d.trim().toLowerCase().replace(/\s+/g," "):"",h=g.split(" ");if(h.length===1)h.push("center");if(["top","bottom"].includes(h[0])||["left","right"].includes(h[1]))h.reverse();let y=(m)=>m.endsWith("%")&&$t.test(m.slice(0,-1))&&Number.isFinite(Number(m.slice(0,-1)));if(h.length===2&&(["left","center","right"].includes(h[0])||y(h[0]))&&(["top","center","bottom"].includes(h[1])||y(h[1])))r.objectPosition=g;else n({kind:"unknown-style",name:`objectPosition:${String(d)}`});continue}let f;if(Qn.has(u)||Lt.has(u)){if(f=nr(d),!oe(f)&&!(Lt.has(u)&&typeof f==="string"&&f.endsWith("%")&&$t.test(f.slice(0,-1))&&Number.isFinite(Number(f.slice(0,-1)))))f=void 0}else if(u==="display"&&d==="inline-flex")f="flex";else if(u==="shadowOffset"||u==="transform")f=rr(u,d);else if(u==="gridTemplateColumns"||u==="gridTemplateRows")f=oe(d)||typeof d==="string"?d:void 0;else if(u==="fontWeight"&&oe(d))f=String(d);else if(typeof d==="string")f=d;if(f===void 0)n({kind:"non-numeric-style",name:u});else r[u]=f}for(let o of s)if(!t.used.has(o))n({kind:"unknown-style",name:o});return r}var cr={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"}},Ke={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},Wt={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},Ft={none:0,sm:2,DEFAULT:4,md:6,lg:8,xl:12,"2xl":16,"3xl":24,full:9999};function re(e){let t=e.lastIndexOf("/");if(t>0&&(!e.endsWith("]")||/\/\[[\d.]+%?\]$/.test(e))){let r=re(e.slice(0,t)),s=e.slice(t+1),o=/^\[(.+)\]$/.test(s)?Number.parseFloat(s.slice(1,-1))*(s.includes("%")?1:100):Number.parseFloat(s);if(!r||!Number.isFinite(o))return;return ur(r,o/100)}if(e==="transparent")return"transparent";if(e==="current")return"currentColor";if(e==="black")return"#000000";if(e==="white")return"#ffffff";let n=e.split("-");if(n.length===2){let[r,s]=n,o=cr[r];if(o&&typeof o==="object")return o[s]}if(e.startsWith("[")&&e.endsWith("]")){let r=e.slice(1,-1);return/^(#|rgba?\(|hsla?\(|[a-z]+$)/i.test(r)?r:void 0}return}function Je(e){return re(e.trim())}function ur(e,t){if(e==="transparent")return e;let n=e.startsWith("#")?e.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,t))*255);return`#${n}${r.toString(16).padStart(2,"0")}`}function Ge(e,t=16){if(!e.startsWith("[")||!e.endsWith("]"))return;let n=e.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*t;return r}function X(e){if(e.startsWith("[")&&e.endsWith("]")){let t=e.slice(1,-1);if(t.endsWith("%"))return;let n=t.endsWith("rem")?Number.parseFloat(t)*16:Number.parseFloat(t);return Number.isFinite(n)?n:void 0}return Ke[e]??je(e)}function Ne(e){let t=/^\[(-?\d*\.?\d+)%\]$/.exec(e);if(t)return`${Number.parseFloat(t[1])}%`;return X(e)}var dr={flex:(e,t)=>(t.display="flex",!0),block:(e,t)=>(t.display="flex",!0),hidden:(e,t)=>(t.display="none",!0),grid:(e,t)=>(t.display="grid",!0),"flex-row":(e,t)=>(t.flexDirection="row",!0),"flex-col":(e,t)=>(t.flexDirection="column",!0),"flex-row-reverse":(e,t)=>(t.flexDirection="row-reverse",!0),"flex-col-reverse":(e,t)=>(t.flexDirection="column-reverse",!0),"flex-wrap":(e,t)=>(t.flexWrap="wrap",!0),"flex-nowrap":(e,t)=>(t.flexWrap="nowrap",!0),"flex-wrap-reverse":(e,t)=>(t.flexWrap="wrap-reverse",!0),"flex-1":(e,t)=>(t.flex=1,t.flexGrow=1,t.flexShrink=1,t.flexBasis=0,!0),"flex-auto":(e,t)=>(t.flexGrow=1,t.flexShrink=1,!0),"flex-initial":(e,t)=>(t.flexGrow=0,t.flexShrink=1,!0),"flex-none":(e,t)=>(t.flexGrow=0,t.flexShrink=0,!0),grow:(e,t)=>(t.flexGrow=1,!0),"grow-0":(e,t)=>(t.flexGrow=0,!0),shrink:(e,t)=>(t.flexShrink=1,!0),"shrink-0":(e,t)=>(t.flexShrink=0,!0),"order-first":(e,t)=>(t.order=-9999,!0),"order-last":(e,t)=>(t.order=9999,!0),"order-none":(e,t)=>(t.order=0,!0),"justify-start":(e,t)=>(t.justifyContent="flex-start",!0),"justify-center":(e,t)=>(t.justifyContent="center",!0),"justify-end":(e,t)=>(t.justifyContent="flex-end",!0),"justify-between":(e,t)=>(t.justifyContent="space-between",!0),"justify-around":(e,t)=>(t.justifyContent="space-around",!0),"justify-evenly":(e,t)=>(t.justifyContent="space-evenly",!0),"items-start":(e,t)=>(t.alignItems="flex-start",!0),"items-center":(e,t)=>(t.alignItems="center",!0),"items-end":(e,t)=>(t.alignItems="flex-end",!0),"items-stretch":(e,t)=>(t.alignItems="stretch",!0),"items-baseline":(e,t)=>(t.alignItems="baseline",!0),"self-auto":(e,t)=>(t.alignSelf="auto",!0),"self-start":(e,t)=>(t.alignSelf="flex-start",!0),"self-center":(e,t)=>(t.alignSelf="center",!0),"self-end":(e,t)=>(t.alignSelf="flex-end",!0),"self-stretch":(e,t)=>(t.alignSelf="stretch",!0),"self-baseline":(e,t)=>(t.alignSelf="baseline",!0),"min-w-0":(e,t)=>(t.minWidth=0,!0),"aspect-square":(e,t)=>(t.aspectRatio=1,!0),"aspect-video":(e,t)=>(t.aspectRatio=1.7777777777777777,!0),"border-solid":(e,t)=>(t.borderStyle="solid",!0),"border-dashed":(e,t)=>(t.borderStyle="dashed",!0),"border-dotted":(e,t)=>(t.borderStyle="dotted",!0),group:()=>!0,peer:()=>!0,"inset-0":(e,t)=>(t.top=0,t.right=0,t.bottom=0,t.left=0,!0),"mx-auto":(e,t)=>(t.alignSelf="center",!0),fixed:(e,t)=>(t.position="absolute",!0),sticky:()=>!0,"sr-only":(e,t)=>(t.position="absolute",t.width=1,t.height=1,t.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":(e,t)=>(t.letterSpacing=-0.8,!0),"tracking-tight":(e,t)=>(t.letterSpacing=-0.4,!0),"tracking-normal":(e,t)=>(t.letterSpacing=0,!0),"tracking-wide":(e,t)=>(t.letterSpacing=0.4,!0),"tracking-wider":(e,t)=>(t.letterSpacing=0.8,!0),"tracking-widest":(e,t)=>(t.letterSpacing=1.6,!0),"tabular-nums":()=>!0,"inline-flex":(e,t)=>(t.display="flex",!0),truncate:()=>!0,relative:(e,t)=>(t.position="relative",!0),absolute:(e,t)=>(t.position="absolute",!0),"pointer-events-none":(e,t)=>(t.pointerEvents="none",!0),"pointer-events-auto":(e,t)=>(t.pointerEvents="auto",!0),"overflow-visible":(e,t)=>(t.overflow="visible",!0),"overflow-hidden":(e,t)=>(t.overflow="hidden",!0),"overflow-scroll":(e,t)=>(t.overflow="scroll",!0),"overflow-x-auto":()=>!0,"overflow-x-scroll":()=>!0,"overflow-y-auto":()=>!0,"overflow-y-scroll":()=>!0,"font-sans":(e,t)=>(t.fontFamily=ye("sans")??"sans-serif",!0),"font-serif":(e,t)=>(t.fontFamily=ye("serif")??"serif",!0),"font-mono":(e,t)=>(t.fontFamily=ye("mono")??"monospace",!0),"font-thin":(e,t)=>(t.fontWeight="100",!0),"font-extralight":(e,t)=>(t.fontWeight="200",!0),"font-light":(e,t)=>(t.fontWeight="300",!0),"font-normal":(e,t)=>(t.fontWeight="400",!0),"font-medium":(e,t)=>(t.fontWeight="500",!0),"font-semibold":(e,t)=>(t.fontWeight="600",!0),"font-bold":(e,t)=>(t.fontWeight="bold",!0),"font-extrabold":(e,t)=>(t.fontWeight="800",!0),"font-black":(e,t)=>(t.fontWeight="900",!0),italic:(e,t)=>(t.fontStyle="italic",!0),"not-italic":(e,t)=>(t.fontStyle="normal",!0),"text-left":(e,t)=>(t.textAlign="left",!0),"text-center":(e,t)=>(t.textAlign="center",!0),"text-right":(e,t)=>(t.textAlign="right",!0),"text-justify":(e,t)=>(t.textAlign="justify",!0),uppercase:(e,t)=>(t.textTransform="uppercase",!0),lowercase:(e,t)=>(t.textTransform="lowercase",!0),capitalize:(e,t)=>(t.textTransform="capitalize",!0),"normal-case":(e,t)=>(t.textTransform="none",!0),underline:(e,t)=>(t.textDecorationLine="underline",!0),"line-through":(e,t)=>(t.textDecorationLine="line-through",!0),"no-underline":(e,t)=>(t.textDecorationLine="none",!0)};function fr(e,t){if(!e.startsWith("bg-"))return!1;let n=e.slice(3),r=re(n);if(r)return t.backgroundColor=r,!0;return!1}function Ut(e,t){if(!e.startsWith("text-"))return!1;let n=e.slice(5),r=We(n);if(r)return Object.assign(t,r),!0;if(Wt[n])return t.fontSize=Wt[n],!0;if(n.startsWith("[")&&n.endsWith("]")){let o=n.slice(1,-1);if(/^-?[\d.]+(?:px|r?em)?$/.test(o)){let l=o.endsWith("rem")||o.endsWith("em")?Number.parseFloat(o)*16:Number.parseFloat(o);if(Number.isFinite(l))return t.fontSize=l,!0}}let s=re(n);if(s)return t.color=s,!0;return!1}var pr=new Set(["t","tr","r","br","b","bl","l","tl"]);function gr(e,t){let n=/^bg-(?:gradient|linear)-to-([a-z]+)$/.exec(e);if(n&&pr.has(n[1]))return t.gradientDirection=`to-${n[1]}`,!0;let r=/^(from|via|to)-(.+)$/.exec(e);if(!r)return!1;let s=re(r[2]);if(!s)return!1;if(r[1]==="from")t.gradientFrom=s;else if(r[1]==="via")t.gradientVia=s;else t.gradientTo=s;return!0}function hr(e,t){for(let n of["fill","stroke"]){let r=`${n}-`;if(!e.startsWith(r))continue;let s=e.slice(r.length);if(s==="none")return t[n]="none",!0;if(n==="stroke"&&/^\d+(?:\.\d+)?$/.test(s))return t.strokeWidth=Number.parseFloat(s),!0;if(n==="stroke"&&/^\[\d+(?:\.\d+)?(?:px)?\]$/.test(s))return t.strokeWidth=Number.parseFloat(s.slice(1)),!0;let o=re(s);if(o)return t[n]=o,!0}return!1}function mr(e,t){if(e.startsWith("p-")){let n=X(e.slice(2));if(n!==void 0)return t.padding=n,!0}if(e.startsWith("px-")){let n=X(e.slice(3));if(n!==void 0)return t.paddingHorizontal=n,!0}if(e.startsWith("py-")){let n=X(e.slice(3));if(n!==void 0)return t.paddingVertical=n,!0}if(e.startsWith("pt-")){let n=X(e.slice(3));if(n!==void 0)return t.paddingTop=n,!0}if(e.startsWith("pr-")){let n=X(e.slice(3));if(n!==void 0)return t.paddingRight=n,!0}if(e.startsWith("pb-")){let n=X(e.slice(3));if(n!==void 0)return t.paddingBottom=n,!0}if(e.startsWith("pl-")){let n=X(e.slice(3));if(n!==void 0)return t.paddingLeft=n,!0}return!1}function qt(e,t){if(/^-(?:m|mx|my|mt|mr|mb|ml)-/.test(e)){let n={};if(!qt(e.slice(1),n))return!1;let r=Object.entries(n);if(r.some(([,s])=>typeof s!=="number"))return!1;for(let[s,o]of r)t[s]=-o;return!0}if(e.startsWith("m-")){let n=X(e.slice(2));if(n!==void 0)return t.margin=n,!0}if(e.startsWith("mx-")){let n=X(e.slice(3));if(n!==void 0)return t.marginHorizontal=n,!0}if(e.startsWith("my-")){let n=X(e.slice(3));if(n!==void 0)return t.marginVertical=n,!0}if(e.startsWith("mt-")){let n=X(e.slice(3));if(n!==void 0)return t.marginTop=n,!0}if(e.startsWith("mr-")){let n=X(e.slice(3));if(n!==void 0)return t.marginRight=n,!0}if(e.startsWith("mb-")){let n=X(e.slice(3));if(n!==void 0)return t.marginBottom=n,!0}if(e.startsWith("ml-")){let n=X(e.slice(3));if(n!==void 0)return t.marginLeft=n,!0}return!1}function yr(e,t){if(!e.startsWith("w-"))return!1;let n=e.slice(2);if(n==="full")return t.width="100%",!0;if(n==="screen")return t.width="100%",!0;if(n==="auto")return t.width="auto",!0;if(n.includes("/")){let[s,o]=n.split("/"),l=Number.parseInt(s)/Number.parseInt(o)*100;return t.width=`${l}%`,!0}let r=Ne(n);if(r!==void 0)return t.width=r,!0;return!1}function br(e,t){if(!e.startsWith("h-"))return!1;let n=e.slice(2);if(n==="full")return t.height="100%",!0;if(n==="screen")return t.height="100%",!0;if(n==="auto")return t.height="auto",!0;let r=Ne(n);if(r!==void 0)return t.height=r,!0;return!1}function Sr(e,t){if(e==="rounded")return t.borderRadius=Ft.DEFAULT,!0;if(!e.startsWith("rounded-"))return!1;let n=e.slice(8);if(n==="")return!1;let r=/^(?:(tl|tr|bl|br|t|b|l|r)-)?(.+)$/.exec(n),s=Ft[r[2]]??$e(r[2])??Ge(r[2]);if(s===void 0)return!1;let o={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]?o[r[1]]:["borderRadius"])t[l]=s;return!0}function Nr(e,t){let n=/^border(?:-([trblxy]))?(?:-(\d+|\[[^\]]+\]))?$/.exec(e);if(!n)return!1;let[,r="",s]=n,o=s===void 0?1:Number(s);if(s?.startsWith("[")){let u=/^\[(\d+(?:\.\d+)?|\.\d+)(px|rem)?\]$/.exec(s);if(!u)return!1;o=Number(u[1])*(u[2]==="rem"?16:1)}if(!Number.isFinite(o)||o<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])t[u]=o;return!0}function xr(e,t){if(!e.startsWith("border-"))return!1;let n=e.slice(7),r=re(n);if(r)return t.borderColor=r,!0;return!1}function kr(e,t){if(!e.startsWith("opacity-"))return!1;let n=Number.parseInt(e.slice(8));if(!Number.isNaN(n))return t.opacity=n/100,!0;return!1}function Rr(e,t,n){if(e.startsWith("tracking-[")){let r=Ge(e.slice(9),n);if(r===void 0)return!1;return t.letterSpacing=r,!0}if(e.startsWith("leading-")){let r=e.slice(8),s=n,o={none:1,tight:1.25,snug:1.375,normal:1.5,relaxed:1.625,loose:2},l=r.startsWith("[")?/^\[[\d.]+\]$/.test(r)?Number.parseFloat(r.slice(1,-1))*s:Ge(r,s):o[r]!==void 0?o[r]*s:Ke[r];if(l===void 0||!Number.isFinite(l))return!1;return t.lineHeight=l,!0}return!1}function Tr(e,t){let n=/^(-?)(inset-x|inset-y|inset|top|right|bottom|left)-(.+)$/.exec(e);if(!n)return!1;let r=n[3],s=/^\[(-?[\d.]+)px\]$/.exec(r),o=s?Number(s[1]):Ke[r];if(o===void 0||!Number.isFinite(o))return!1;let l=n[1]?-o:o,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)t[d]=l;return!0}function Ar(e,t){let n=/^grid-cols-\[(.+)\]$/.exec(e);if(n)return t.gridColumns=n[1].split("_").filter(Boolean).length,!0;let r=/^grid-cols-(\d+)$/.exec(e);if(!r)return!1;return t.gridColumns=Number(r[1]),!0}function _r(e,t){if(!e.startsWith("size-"))return!1;let n=e.slice(5),r=n==="full"?"100%":Ne(n);if(r===void 0)return!1;return t.width=r,t.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 Cr(e,t){let n=/^(min|max)-(w|h)-(.+)$/.exec(e);if(!n)return!1;let[,r,s,o]=n,l=o==="full"||o==="screen"?"100%":o==="none"?void 0:s==="w"&&r==="max"&&Er[o]||Ne(o);if(l===void 0&&o!=="none")return!1;let u=`${r}${s==="w"?"Width":"Height"}`;if(l===void 0)delete t[u];else t[u]=l;return!0}function Or(e,t){let n=/^(-?)(top|right|bottom|left)-(.+)$/.exec(e);if(!n)return!1;let r=n[3]==="full"?"100%":X(n[3]);if(r===void 0)return!1;return t[n[2]]=typeof r==="number"&&n[1]?-r:r,!0}function Ir(e,t){let n=/^(-?)translate-(x|y)-(.+)$/.exec(e);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=X(r);if(s===void 0||!Number.isFinite(s))return!1;if(n[1])s=-s;let o=n[2]==="x"?"translateX":"translateY",l=o==="translateX"?{translateX:s}:{translateY:s};return t.transform=[...(t.transform??[]).filter((u)=>!(o in u)),l],!0}function Pr(e,t){let n=/^space-(x|y)-(.+)$/.exec(e);if(!n)return!1;let r=X(n[2]);if(r===void 0)return!1;return t.gap=r,!0}function Mr(e,t){if(e.startsWith("gap-")){let n=X(e.slice(4));if(n!==void 0)return t.gap=n,!0}if(e.startsWith("gap-x-")){let n=X(e.slice(6));if(n!==void 0)return t.columnGap=n,!0}if(e.startsWith("gap-y-")){let n=X(e.slice(6));if(n!==void 0)return t.rowGap=n,!0}return!1}function Br(e,t){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]}[e];if(!r)return!1;let[s,o,l,u]=r;return Object.assign(t,{shadowColor:"#000000",shadowOpacity:l,shadowRadius:s,shadowOffset:{width:0,height:o},elevation:u}),!0}function Dr(e){let t=/^divide-(?:(y|x)(?:-(.+))?|(.+))$/.exec(e);if(!t)return null;if(t[2]==="reverse")return"";if(t[1])return`border-${t[1]==="y"?"t":"l"}${t[2]?`-${t[2]}`:""}`;return`border-${t[3]}`}var Gt=new Set(["aria-selected","aria-pressed","aria-checked","aria-expanded"]),Lr=new Set(["hover","group-hover","peer-hover","active","group-active","visited","placeholder","selection","print","motion-safe"]),Xt=/^(?: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 Kt(e){let t=[],n=0,r=0;for(let s=0;s<e.length;s++){let o=e[s];if(o==="[")n++;else if(o==="]")n=Math.max(0,n-1);else if(o===":"&&n===0)t.push(e.slice(r,s)),r=s+1}return t.push(e.slice(r)),t}function Jt(e,t=new Set){let n=Kt(e),r=n[n.length-1],s=t.has(r)?void 0:Pt(r);if(s===void 0)return[e];let o=n.slice(0,-1).map((u)=>`${u}:`).join(""),l=new Set(t).add(r);return s.split(/\s+/).filter(Boolean).flatMap((u)=>Jt(`${o}${u}`,l))}function qe(e){if(/^transition(?:-(?:all|colors|opacity|shadow|transform))?$/.test(e))return 150;if(e==="transition-none")return 0;let t=/^duration-(\d+)$/.exec(e);return t?Number(t[1]):void 0}var zt=new WeakMap,Se={};function $r(e,t){let n=Et(),r=zt.get(n);if(!r)zt.set(n,r=new WeakMap);let s=r.get(e??Se);if(!s)r.set(e??Se,s=new WeakMap);let o=s.get(t??Se);if(!o)s.set(t??Se,o=new Map);return o}function xe(e,t={}){return`${t.focus?1:0}${t.focusWithin?1:0}${t.pointer?1:0}${t.appearance??""}|${e}`}function ie(e,t,n={}){let r=$r(t,n.rules),s=xe(e,n),o=r.get(s);if(!o){if(r.size>=4096)r.clear();r.set(s,o=jr(e,t,n))}return o}function jr(e,t,n){let r=new Map,s,o,l=(c,b)=>{if(!r.has(c))r.set(c,{...b,classes:[],authored:new Map});return r.get(c)};l("base",{});let u=[],d=[],f=e.split(/\s+/).filter(Boolean);if(n.rules){let c=new Set(f);for(let b of Object.keys(n.rules))if(b.includes(".")&&b.split(".").every((p)=>c.has(p)))d.push(b);d.sort((b,p)=>b.split(".").length-p.split(".").length)}for(let c of f){if(n.rules&&Object.hasOwn(n.rules,c)){u.push(c);continue}for(let b of Jt(c)){let p=Kt(b),N=p.pop(),S=p.some((k)=>k.startsWith("focus"));if(p.some((k)=>/^(?:group-|peer-)?focus(?:-visible|-within)?$/.test(k))&&/^(?:ring|outline)(?:-|$)/.test(N))continue;if(n.pointer&&p.length===0&&qe(N)!==void 0){if(N.startsWith("duration-"))o=qe(N);else s=qe(N);continue}let R=p.filter((k)=>k!=="dark"),w=n.pointer&&R.length===1&&p.length-R.length<=1&&(R[0]==="hover"||R[0]==="active")?R[0]:void 0;if(w&&!Xt.test(N)){let k=l(`pointer:${w}`,{pointerState:w}),T=p.includes("dark")?`dark:${N}`:N;if(k.classes.push(T),!k.authored.has(T))k.authored.set(T,c===b?b:`${c} (${b})`);continue}if(Xt.test(N)||!S&&p.some((k)=>Lr.has(k)))continue;let A,P,L=!1,_,j=[];for(let k of p){let T=Xe(k),E=k.startsWith("max-")?Xe(k.slice(4)):void 0;if(T!==void 0&&A===void 0)A=T;else if(E!==void 0&&P===void 0)P=E-0.02;else if(k==="disabled"&&!L)L=!0;else if(Gt.has(k)&&_===void 0)_=k;else j.push(k)}let W=[...j,N].join(":"),O=A!==void 0||P!==void 0,I=L?l("disabled",{disabled:!0}):_?l(`state:${_}`,{state:_}):O?l(`range:${A??0}:${P??""}`,{min:A??0,max:P}):r.get("base");if((L||_)&&(O||L&&_)){r.get("base").authored.set(b,c),r.get("base").classes.push(b);continue}if(I.classes.push(W),!I.authored.has(W))I.authored.set(W,c===b?b:`${c} (${b})`)}}let g=[...u,...d],h=(c,b)=>b.map((p)=>c.authored.get(p)??p),y=r.get("base"),m=we(y.classes.join(" "),t,n),x=new Map;if(g.length){let c=(N)=>N?ve(N,()=>{},{inheritedVariables:t}):{},b={},p={};for(let N of g){let S=n.rules[N];b={...b,...c(S.light)},p={...p,...c(S.dark)};for(let R of S.responsive??[]){let w=`${R.min}:${R.max??""}`,A=x.get(w)??{min:R.min,...R.max===void 0?{}:{max:R.max},style:{}};if(A.style={...A.style,...c(R.light)},R.dark)A.dark={...A.dark,...c(R.dark)};x.set(w,A)}}if(m.style={...b,...m.style},Object.keys(p).length)m.dark={...p,...m.dark}}m.unknown=h(y,m.unknown);let v=[];for(let c of r.values()){if(c===y)continue;let b=we(c.classes.join(" "),t,{appearance:n.appearance});m.unknown=[...new Set([...m.unknown,...h(c,b.unknown)])];let p={style:b.style,...b.dark?{dark:b.dark}:{}};if(c.pointerState)(m.pointer??={})[c.pointerState]=p;else if(c.disabled)m.disabled=p;else if(c.state)(m.states??={})[c.state]=p;else v.push({min:c.min??0,...c.max===void 0?{}:{max:c.max},...p})}for(let c of x.values()){let b=v.find((p)=>p.min===c.min&&p.max===c.max);if(b){if(b.style={...c.style,...b.style},c.dark||b.dark)b.dark={...c.dark,...b.dark}}else v.push(c)}if(v.length)m.responsive=v.sort((c,b)=>c.min-b.min||(c.max??1/0)-(b.max??1/0));if(s!==void 0&&s>0)m.style={...m.style,transitionDuration:o??s};return m}function we(e,t,n={}){let r=[],s=[],o=[],l=[],u={focus:{classes:[],originals:new Map},focusWithin:{classes:[],originals:new Map}},d=new Map;function f(p,N){let S=/^(bg|text|border(?:-[trblxy])?|from|via|to|fill|stroke|divide|decoration|caret|accent)-(.+?)(\/[^\s]+)?$/.exec(p),R=S&&Mt(S[2]);if(S&&R){let _=/^var\(\s*(--[\w-]+)\s*(?:,\s*(.+?)\s*)?\)$/.exec(R),j=_?t?.get(_[1])??_[2]:R;if(j&&/^(?:#[0-9a-f]{3,8}|rgba?\(.+\)|hsla?\(.+\))$/i.test(j))return[`${S[1]}-[${j.replace(/\s+/g,"")}]${S[3]||""}`]}let w=/^(text|bg|border|ring)-([a-z-]+)(\/[^\s]+)?$/.exec(p),A=w&&It[w[2]];if(A){let _=t?.get(at(w[2]));return[`${w[1]}-${_===void 0?A[N]:`[${_}]`}${w[3]||""}`]}let P=/^rounded-(?:(tl|tr|bl|br|t|b|l|r)-)?(.+)$/.exec(p);if(P&&Re[P[2]]){let _=$e(P[2],t);return _===void 0?void 0:[`rounded-${P[1]?`${P[1]}-`:""}[${_}px]`]}let L=p.startsWith("text-")?p.slice(5):"";if(vr[L]){let _=We(L,t);return _&&[`text-[${_.fontSize}px]`,`leading-[${_.lineHeight}px]`]}for(let _ of Object.keys(wr)){if(!p.endsWith(`-${_}`))continue;let j=je(_,t);return j===void 0?void 0:[`${p.slice(0,-_.length)}[${j}px]`]}return[p]}function g(p,N){if(!d.has(p))d.set(p,new Set);return d.get(p).add(N),p}let h=[],y=new Map;for(let p of e.split(/\s+/).filter(Boolean)){let N=p.startsWith("dark:")?p.slice(5):p,S=Dr(N);if(S!==null){let A=S&&`${p===N?"":"dark:"}${S}`;if(A)h.push(A),y.set(A,p);continue}let R=/^(dark:)?(focus|focus-within):(dark:)?(.+)$/.exec(p),w=R?.[2]==="focus"?"focus":"focusWithin";if(R&&n[w]&&!(R[1]&&R[3])){let A=`${R[1]||R[3]?"dark:":""}${R[4]}`,P=u[w];P.classes.push(A),P.originals.set(A,[...P.originals.get(A)??[],p]);continue}if(p.startsWith("dark:")){let A=f(p.slice(5),"dark");if(!A)l.push(p);else s.push(...A.map((P)=>g(P,p)))}else if(!p.includes(":")||p.startsWith("[")){let A=f(p,n.appearance??"light"),P=f(p,"dark");if(!A||!P){l.push(p);continue}if(r.push(...A.map((L)=>g(L,p))),P.join(" ")!==A.join(" "))o.push(...P.map((L)=>g(L,p)))}else l.push(p)}let m=[],x=Ht(r,m),v={style:x,unknown:m},c=[...n.appearance===void 0?o:[],...s];if(c.length)v.dark=Ht(c,m);if(x.transform&&v.dark?.transform){let p=new Set(v.dark.transform.flatMap((N)=>Object.keys(N)));v.dark.transform=[...x.transform.filter((N)=>!Object.keys(N).some((S)=>p.has(S))),...v.dark.transform]}for(let p of r){if(p==="truncate"||p==="whitespace-nowrap")v.numberOfLines=1;let N=/^object-(cover|contain|fill)$/.exec(p);if(N)v.resizeMode=N[1]==="fill"?"stretch":N[1];let S=/^line-clamp-(\d+)$/.exec(p);if(S)v.numberOfLines=Number(S[1]);if(!v.icon&&/^i-[a-z0-9]+-[a-z0-9-]+$/.test(p))v.icon=p}let b=m.flatMap((p)=>[...d.get(p)??[p]]);if(v.unknown=[...new Set([...b.filter((p)=>!/^line-clamp-\d+$/.test(p)),...l])],h.length){let p=we(h.join(" "),t,{appearance:n.appearance});v.divide={style:p.style,...p.dark?{dark:p.dark}:{}},v.unknown=[...new Set([...v.unknown,...p.unknown.map((N)=>y.get(N)??N)])]}for(let p of["focus","focusWithin"]){let N=u[p];if(!N.classes.length)continue;let S=we(N.classes.join(" "),t,{appearance:n.appearance});v[p]={style:S.style,dark:S.dark},v.unknown=[...new Set([...v.unknown,...S.unknown.flatMap((R)=>N.originals.get(R)??[R])])];for(let R of N.classes)if(/^(?:dark:)?(?:truncate|line-clamp-\d+|i-[a-z0-9]+-.+)$/.test(R))v.unknown.push(...N.originals.get(R))}return v}function Ht(e,t){let n={},r=Array.isArray(e)?e:e.split(/\s+/).filter(Boolean),s={};for(let l of r)if(l.startsWith("text-"))Ut(l,s);let o=typeof s.fontSize==="number"?s.fontSize:16;for(let l of r){if(/^i-[a-z0-9]+-/.test(l))continue;let u=dr[l];if(u){u("",n);continue}if(Br(l,n))continue;if(gr(l,n))continue;if(fr(l,n))continue;if(hr(l,n))continue;if(Ut(l,n))continue;if(mr(l,n))continue;if(qt(l,n))continue;if(yr(l,n))continue;if(br(l,n))continue;if(Sr(l,n))continue;if(Nr(l,n))continue;if(xr(l,n))continue;if(kr(l,n))continue;if(Mr(l,n))continue;if(Rr(l,n,o))continue;if(_r(l,n))continue;if(Cr(l,n))continue;if(Ar(l,n))continue;let d=/^aspect-\[(\d+(?:\.\d+)?)\/(\d+(?:\.\d+)?)\]$/.exec(l);if(d&&Number(d[2])>0){n.aspectRatio=Number(d[1])/Number(d[2]);continue}let f=/^z-\[(-?\d+)\]$/.exec(l)??/^z-(\d+)$/.exec(l);if(f){n.zIndex=Number(f[1]);continue}if(l==="z-auto")continue;if(Tr(l,n))continue;let g=/^order-\[(-?\d+)\]$/.exec(l)??/^order-(-?\d+)$/.exec(l);if(g){n.order=Number(g[1]);continue}if(Or(l,n))continue;if(Ir(l,n))continue;if(Pr(l,n))continue;if(t?.push(l),typeof process<"u"&&process.env?.NODE_ENV==="development")console.warn(`[STX Native] Unknown Headwind class: ${l}`)}return n}function Yt(e){let t=new Map,n=(d)=>{if(typeof d==="string")return;if(d._classes)t.set(d._classes,t.get(d._classes)===!0||d.type==="TextInput");for(let f of d.children)n(f)};if(n(e),!t.size)return;let r=[],s=new Map,o=(d)=>{let f=JSON.stringify(d),g=s.get(f);if(g===void 0)g=r.push(d)-1,s.set(f,g);return g},l={entries:r,plain:{},light:{},dark:{}};for(let d of t.keys())l.plain[xe(d)]=o(ie(d));let u=e._stylesheetRules;for(let d of["light","dark"]){let f=ne(e._stylesheetTheme?.[d]??[]).computed();for(let[g,h]of t){let y=`${g} `;for(let m of[{focus:h,focusWithin:!0,appearance:d,pointer:!1},{focus:h,focusWithin:!0,appearance:d,pointer:!0},{focus:h,focusWithin:!0}])l[d][xe(y,m)]=o(ie(y,f,{...m,rules:u}))}}return l}import Vr from"path";var Qt=new Map;function Zt(e,t){if(!e)return;let n=e.trim(),r=n.lastIndexOf("-"),s=r===-1?t[n]:t[n.slice(0,r)],o=r===-1?s:s?.[n.slice(r+1)];if(typeof o==="string"&&/^#[\da-f]{3,8}$/i.test(o))return o;return Je(n)??Je(`[${n}]`)}function Wr(e){let t=e.roles??{},n=e.shapes??{},r=e.density??{},s={...e.theme?.colors,...e.theme?.extend?.colors},o=[],l=[];for(let[u,d]of Object.entries(t)){if(!It[u])continue;let f=Zt(typeof d==="string"?d:d?.light,s),g=Zt(typeof d==="string"?d:d?.dark,s);if(f)o.push(`${at(u)}: ${f};`);if(g)l.push(`${at(u)}: ${g};`)}for(let[u,d]of Object.entries(n))if(Re[u])o.push(`${xn(u)}: ${d};`);for(let[u,d]of Object.entries(r))if(Ve[u])o.push(`${ct(u)}: ${d};`);return[o.length?`:root { ${o.join(" ")} }`:"",l.length?`.dark { ${l.join(" ")} }`:""].filter(Boolean).join(`
|
|
3
|
+
`)}async function Fr(e){let{resolveUserCssConfig:t}=await import("./chunk-q6jecdtg.js"),n=await t(e);return n?Wr(n):""}function en(e){let t=Vr.resolve(e),n=Qt.get(t);if(!n)n=Fr(t).catch(()=>""),Qt.set(t,n);return n}var nn={"aria-pressed":"selected","aria-selected":"selected","aria-checked":"checked","aria-disabled":"disabled","aria-expanded":"expanded","aria-busy":"busy","aria-current":"selected"},tn={alert:"alert",button:"button",checkbox:"checkbox",combobox:"combobox",header:"header",heading:"header",image:"image",img:"image",link:"link",list:"list",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 Ye(e){return e==="role"||e==="aria-label"||e==="aria-valuetext"||e==="aria-hidden"||e in nn}function rn(e,t){if(t===void 0||t===null)return;let n=String(t).trim().toLowerCase();if(e==="aria-current")return n!=="false";if(n==="mixed")return e==="aria-checked"?"mixed":!0;if(n==="undefined")return;return n===""||n==="true"}function Ur(e){if(e===void 0||e===null)return null;for(let t of String(e).trim().toLowerCase().split(/\s+/))if(tn[t])return tn[t];return null}function Xr(e,t,n){if(e==="aria-label")return{accessibilityLabel:t===void 0||t===null||t===""?null:String(t)};if(e==="aria-valuetext")return{accessibilityValue:t===void 0||t===null||t===""?null:String(t)};if(e==="role")return{accessibilityRole:Ur(t)};let r=nn[e];if(!r)return;let s=n.accessibilityState,o=s&&typeof s==="object"?{...s}:{},l=rn(e,t);if(l===void 0)delete o[r];else o[r]=l;return{accessibilityState:Object.keys(o).length?o:null}}function zr(e){let t=e.accessibilityState&&typeof e.accessibilityState==="object"?e.accessibilityState:void 0,n={};for(let[s,o]of Object.entries(e)){if(!Ye(s))continue;let l=Xr(s,o,n);if(l)Object.assign(n,l)}if(rn("aria-hidden",e["aria-hidden"])===!0)n.accessibilityRole="none";for(let s of["accessibilityLabel","accessibilityRole","accessibilityValue"])if(e[s]===void 0&&n[s]!==void 0&&n[s]!==null)e[s]=n[s];let r=n.accessibilityState;if(r)e.accessibilityState={...r,...t}}var de=["accessibilityLabel","accessibilityRole","accessibilityState","accessibilityValue"];function Qe(e,t){let n=t==="Image";if(!n){let s=Object.keys(e);for(let o=0;o<s.length&&!n;o++)n=Ye(s[o])||de.includes(s[o])}if(!n)return{};let r={...e};if(zr(r),t==="Image"&&r.accessibilityLabel===void 0&&e.alt!=null&&e.alt!=="")r.accessibilityLabel=String(e.alt);return Object.fromEntries(de.filter((s)=>(s in r)).map((s)=>[s,r[s]]))}var on=["keyboardType","secureTextEntry","returnKeyType","autoCapitalize","autoCorrect","editable","autoComplete"],Hr=new Set(["type","inputmode","inputMode","enterkeyhint","enterKeyHint","autoCapitalize","autoCorrect","spellcheck","readonly","readOnly","disabled",...on]),qr={numeric:"number-pad",decimal:"decimal-pad",tel:"phone-pad",email:"email-address",url:"url",search:"web-search",text:"default"},Gr={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}},Kr={enter:"default",done:"done",go:"go",next:"next",previous:"default",search:"search",send:"send"};function ae(e){return e===void 0||e===null?"":String(e).trim().toLowerCase()}function sn(e){if(e===void 0||e===null||e===!1)return!1;return ae(e)!=="false"}function Ze(e,...t){for(let n of t)if(e[n]!==void 0&&e[n]!==null)return e[n];return}function an(e,t){if(e!=="TextInput")return{};let n={},r=ae(t.type),s=Gr[r]??{},o=ae(Ze(t,"inputmode","inputMode")),l=qr[o]??s.keyboardType;if(l&&l!=="default")n.keyboardType=l;if(s.secure)n.secureTextEntry=!0;let u=ae(Ze(t,"enterkeyhint","enterKeyHint")),d=Kr[u]??s.returnKeyType;if(d&&d!=="default")n.returnKeyType=d;let f=ae(t.autoCapitalize);if(f==="off"||f==="none")n.autoCapitalize="none";else if(f==="on")n.autoCapitalize="sentences";else if(!f&&s.verbatim)n.autoCapitalize="none";let g=t.autoCorrect;if(g==="off"||g==="false"||ae(t.spellcheck)==="false"||g===void 0&&s.verbatim)n.autoCorrect=!1;else if(g==="on"||g==="true")n.autoCorrect=!0;if(sn(Ze(t,"readonly","readOnly"))||sn(t.disabled))n.editable=!1;if(s.autoComplete)n.autoComplete=s.autoComplete;return Object.fromEntries(Object.entries(n).filter(([h])=>t[h]===void 0||Jr(h,t[h])))}function Jr(e,t){if(e==="autoCapitalize")return t==="off"||t==="on";if(e==="autoCorrect")return typeof t==="string";return!1}function ln(e){let t=an(e.type,e.props);if(!Object.keys(t).length)return;e._textEntrySource=Object.fromEntries(on.filter((n)=>(n in e.props)).map((n)=>[n,e.props[n]])),Object.assign(e.props,t)}var ke={"region-change-complete":"onRegionChangeComplete",regionchangecomplete:"onRegionChangeComplete",click:"onPress",press:"onPress","press-in":"onPressIn",pressin:"onPressIn","press-out":"onPressOut",pressout:"onPressOut","long-press":"onLongPress",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","accept-completion":"onAcceptCompletion",acceptcompletion:"onAcceptCompletion","selection-change":"onSelectionChange",selectionchange:"onSelectionChange","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",dragstart:"onDragStart","drag-start":"onDragStart",dragover:"onDragOver","drag-over":"onDragOver",dragleave:"onDragLeave","drag-leave":"onDragLeave",drop:"onDrop",dragend:"onDragEnd","drag-end":"onDragEnd","hover-change":"onHoverChange",hoverchange:"onHoverChange",keydown:"onKeyPress",keypress:"onKeyPress"};var tt={svg:"Svg",g:"G",path:"Path",line:"Line",rect:"Rect",circle:"Circle",ellipse:"Ellipse",polyline:"Polyline",polygon:"Polygon",text:"SvgText",tspan:"SvgText",animate:"Animate"},nt=new Set(Object.values(tt));var dn=new Set(["defs","title","desc","metadata","style","symbol","use","clippath","mask","lineargradient","radialgradient","stop","pattern","marker","filter","foreignobject"]),fn=["viewBox","preserveAspectRatio","strokeWidth","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","fillOpacity","fillRule","vectorEffect","textAnchor","dominantBaseline","fontSize","fontWeight","attributeName","keyTimes","repeatCount"];function z(e){let t=typeof e==="number"?e:Number.parseFloat(String(e??""));return Number.isFinite(t)?t:0}function ee(e){return Math.round(e*1000)/1000}function rt(e){if(Array.isArray(e)&&e.length===4&&e.every((n)=>Number.isFinite(Number(n))))return e.map(Number);let t=String(e??"").trim().split(/[\s,]+/).map(Number);if(t.length!==4||t.some((n)=>!Number.isFinite(n))||t[2]<=0||t[3]<=0)return null;return t}function Yr(e){let t=String(e??"").trim().split(/[\s,]+/).filter(Boolean).map(Number).filter(Number.isFinite);return t.length%2?t.slice(0,-1):t}var cn=/[MLHVCSQTAZ]/i,et=/[+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?/gi;function Qr(e){let t=[],n=e,r=cn.exec(n);while(r){let s=r.index;n=n.slice(s);let o=n[0];n=n.slice(1);let l=cn.exec(n),u=l?n.slice(0,l.index):n,d;if(o==="A"||o==="a"){d=[];let f=0,g=u.trim(),h=0;while(h<g.length){let y=f%7,m=g.slice(h).replace(/^[\s,]+/,"");if(h=g.length-m.length,!m)break;if(y===3||y===4)d.push(m[0]==="1"?1:0),h+=1;else{et.lastIndex=0;let x=et.exec(m);if(!x||x.index!==0)break;d.push(Number.parseFloat(x[0])),h+=x[0].length}f++}}else d=(u.match(et)||[]).map(Number.parseFloat);t.push({command:o,args:d}),r=l}return t}function Zr(e,t,n,r,s,o,l,u,d){if(e===u&&t===d)return[];let f=Math.abs(n),g=Math.abs(r);if(!f||!g)return[1,u,d];let h=s*Math.PI/180,y=Math.cos(h),m=Math.sin(h),x=(e-u)/2,v=(t-d)/2,c=y*x+m*v,b=-m*x+y*v,p=c*c/(f*f)+b*b/(g*g);if(p>1)f*=Math.sqrt(p),g*=Math.sqrt(p);let N=f*f*g*g-f*f*b*b-g*g*c*c,S=f*f*b*b+g*g*c*c,R=Math.sqrt(Math.max(0,N/S));if(o===l)R=-R;let w=R*(f*b)/g,A=R*-(g*c)/f,P=y*w-m*A+(e+u)/2,L=m*w+y*A+(t+d)/2,_=(D,F,M,V)=>{let Q=D*V-F*M<0?-1:1,Z=(D*M+F*V)/(Math.hypot(D,F)*Math.hypot(M,V));return Q*Math.acos(Math.min(1,Math.max(-1,Z)))},j=_(1,0,(c-w)/f,(b-A)/g),W=_((c-w)/f,(b-A)/g,(-c-w)/f,(-b-A)/g);if(!l&&W>0)W-=2*Math.PI;if(l&&W<0)W+=2*Math.PI;let O=Math.max(1,Math.ceil(Math.abs(W)/(Math.PI/2))),I=W/O,k=1.3333333333333333*Math.tan(I/4),T=[],E=(D)=>{let F=f*Math.cos(D),M=g*Math.sin(D);return[y*F-m*M+P,m*F+y*M+L]},B=(D)=>{let F=-f*Math.sin(D),M=g*Math.cos(D);return[y*F-m*M,m*F+y*M]},U=j;for(let D=0;D<O;D++){let F=U+I,[M,V]=E(U),[Q,Z]=B(U),[H,J]=E(F),[te,G]=B(F);T.push(2,M+k*Q,V+k*Z,H-k*te,J-k*G,D===O-1?u:H,D===O-1?d:J),U=F}return T}function pn(e){let t=[],n=0,r=0,s=0,o=0,l=0,u=0,d=0,f=0,g="";for(let{command:h,args:y}of Qr(String(e??""))){let m=h===h.toLowerCase(),x=h.toUpperCase(),v=()=>m?n:0,c=()=>m?r:0,b=0,p=(S)=>{if(b+S>y.length)return null;let R=y.slice(b,b+S);return b+=S,R};if(x==="Z"){t.push(4),n=s,r=o,g="Z";continue}let N=!0;while(b<y.length||N&&x==="Z"){switch(x){case"M":{let S=p(2);if(!S)return t;if(n=S[0]+v(),r=S[1]+c(),N)t.push(0,n,r),s=n,o=r;else t.push(1,n,r);g=N?"M":"L";break}case"L":{let S=p(2);if(!S)return t;n=S[0]+v(),r=S[1]+c(),t.push(1,n,r),g="L";break}case"H":{let S=p(1);if(!S)return t;n=S[0]+v(),t.push(1,n,r),g="L";break}case"V":{let S=p(1);if(!S)return t;r=S[0]+c(),t.push(1,n,r),g="L";break}case"C":{let S=p(6);if(!S)return t;let R=S[0]+v(),w=S[1]+c();l=S[2]+v(),u=S[3]+c(),n=S[4]+v(),r=S[5]+c(),t.push(2,R,w,l,u,n,r),g="C";break}case"S":{let S=p(4);if(!S)return t;let R=g==="C"?2*n-l:n,w=g==="C"?2*r-u:r;l=S[0]+v(),u=S[1]+c(),n=S[2]+v(),r=S[3]+c(),t.push(2,R,w,l,u,n,r),g="C";break}case"Q":{let S=p(4);if(!S)return t;d=S[0]+v(),f=S[1]+c(),n=S[2]+v(),r=S[3]+c(),t.push(3,d,f,n,r),g="Q";break}case"T":{let S=p(2);if(!S)return t;d=g==="Q"?2*n-d:n,f=g==="Q"?2*r-f:r,n=S[0]+v(),r=S[1]+c(),t.push(3,d,f,n,r),g="Q";break}case"A":{let S=p(7);if(!S)return t;let R=S[5]+v(),w=S[6]+c();t.push(...Zr(n,r,S[0],S[1],S[2],S[3],S[4],R,w)),n=R,r=w,g="A";break}default:return t}N=!1}}return t.map((h)=>ee(h))}function un(e,t,n,r){if(n<=0||r<=0)return[];let s=0.5522847498;return[0,e+n,t,2,e+n,t+s*r,e+s*n,t+r,e,t+r,2,e-s*n,t+r,e-n,t+s*r,e-n,t,2,e-n,t-s*r,e-s*n,t-r,e,t-r,2,e+s*n,t-r,e+n,t-s*r,e+n,t,4].map(ee)}function it(e,t){switch(e){case"Path":return pn(String(t.d??""));case"Line":return[0,z(t.x1),z(t.y1),1,z(t.x2),z(t.y2)].map(ee);case"Rect":{let n=z(t.x),r=z(t.y),s=z(t.width),o=z(t.height);if(s<=0||o<=0)return[];let l=t.rx===void 0?z(t.ry):z(t.rx),u=t.ry===void 0?l:z(t.ry);if(l=Math.min(Math.max(0,l),s/2),u=Math.min(Math.max(0,u),o/2),!l||!u)return[0,n,r,1,n+s,r,1,n+s,r+o,1,n,r+o,4].map(ee);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+o-u,2,n+s,r+o-u+d*u,n+s-l+d*l,r+o,n+s-l,r+o,1,n+l,r+o,2,n+l-d*l,r+o,n,r+o-u+d*u,n,r+o-u,1,n,r+u,2,n,r+u-d*u,n+l-d*l,r,n+l,r,4].map(ee)}case"Circle":return un(z(t.cx),z(t.cy),z(t.r),z(t.r));case"Ellipse":return un(z(t.cx),z(t.cy),z(t.rx),z(t.ry));case"Polyline":case"Polygon":{let n=Yr(t.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(e==="Polygon")r.push(4);return r.map(ee)}default:return null}}function ei(e){let t=/^\s*(\d+(?:\.\d+)?|\.\d+)\s*(ms|s)?\s*$/.exec(String(e??""));if(!t)return null;let n=Number(t[1])/(t[2]==="ms"?1000:1);return n>0?n:null}function ti(e){if(e.attributeName!=="d")return null;let t=ei(e.dur),n=String(e.values??"").split(";").map((u)=>u.trim()).filter(Boolean);if(t===null||n.length<2)return null;let r=n.map(pn);if(r.some((u)=>!u.length))return null;let s=String(e.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(ee):r.map((u,d)=>ee(d/(r.length-1)));return{frames:r,frameTimes:l,duration:t}}function st(e){let t=ti(e),n={frames:t?.frames??null,frameTimes:t?.frameTimes??null,duration:t?.duration??null};for(let[r,s]of Object.entries(n))if(s===null)delete e[r];else e[r]=s;return n}var ni=[...fn,"accessibilityHint","accessibilityLabel","accessibilityRole","accessibilityState","accessibilityValue","barStyle","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","objectFit","objectPosition","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","ghostText","rowHeight","labelFontSize","labelFontWeight","selectionInset","contentInset","pictureInPicture","transitionID","dragData","dragURL","dropTypes","dropInside","selectTextOnFocus","iconOnly"],gn=new Set(["alwaysBounceHorizontal","alwaysBounceVertical","animating","autoCorrect","autoFocus","autoplay","autoPlay","bounces","controls","disabled","draggable","dropInside","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","iconOnly"]),ri=new Map(ni.map((e)=>[hn(e),e]));function hn(e){return e.replace(/[-_]/g,"").toLowerCase()}var Te=new Map;function ot(e,t){if((t==="Image"||t==="Video")&&e.toLowerCase()==="src")return"source";let n=Te.get(e);if(n===void 0){if(n=ri.get(hn(e))??e,Te.size>=2000)Te.clear();Te.set(e,n)}return n}var ii={view:"View",sidebar:"Sidebar",splitview:"SplitView",textinput:"TextInput",pressable:"Pressable",icon:"Icon",text:"Text",button:"Button",image:"Image",img:"Image",video:"Video",webview:"WebView",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 mn(e){return ii[e.toLowerCase()]||e}var si={"circle-pause":"pause.circle","cloud-alert":"exclamationmark.icloud","key-round":"key",paperclip:"paperclip","rotate-cw":"arrow.clockwise","route-off":"location.slash",syringe:"syringe","volume-1":"speaker.wave.1",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-question-mark":"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"},yn={lucide:si,hugeicons:{"workout-run":"figure.run"}};function fe(e,t=!1){let n=String(e??"").trim();if(!n)return{symbol:"questionmark.square.dashed",known:!1};if(t)return{symbol:n,known:!0};let r=/^i-([a-z0-9]+)-(.+)$/.exec(n)??/^([a-z0-9]+):(.+)$/.exec(n),s=r?r[1]:"lucide",o=r?r[2]:n,l=Object.hasOwn(yn,s)?yn[s]:void 0;if(l&&Object.hasOwn(l,o))return{symbol:l[o],iconify:`i-${s}-${o}`,known:!0};if(!r&&n.includes("."))return{symbol:n,known:!0};return{symbol:"questionmark.square.dashed",iconify:r?n:`i-lucide-${o}`,known:!1}}function lt(e){return e.split(/\s+/).find((t)=>/^i-[a-z0-9]+-[a-z0-9-]+$/.test(t))}import{generate as Ae,parse as oi}from"@stacksjs/ts-css/parse";var ai=/^(?::hover|:active|:visited|:focus|:focus-visible|:focus-within)$/;function li(e){let t=e.replace(/\s+/g,"").toLowerCase();if(!t||t==="all"||t==="screen")return{};if(/^(?:screenand)?\(prefers-color-scheme:dark\)$/.test(t))return{dark:!0};if(/^(?:screenand)?\(prefers-color-scheme:light\)$/.test(t))return{};if(/prefers-reduced-motion|\(hover|\(pointer|print|forced-colors|prefers-contrast/.test(t))return"skip";let n=t.replace(/^screenand/,"").split("and"),r={};for(let s of n){let o=/^\((min|max)-width:([\d.]+)(px|rem|em)\)$/.exec(s);if(!o)return;r[o[1]]=Number(o[2])*(o[3]==="px"?1:16)}return r}async function bn(e,t){let n={},r=new Set,s=(f)=>{if(r.has(f))return;r.add(f),t(f,[...f.matchAll(/\.(-?[a-z_][\w-]*)/gi)].map((g)=>g[1]))},o=(f,g,h)=>{if(!g.trim())return;let y=n[f]??={},m=h.dark?"dark":"light";if(h.min===void 0&&h.max===void 0){y[m]=y[m]?`${y[m]};${g}`:g;return}let x=y.responsive??=[],v=h.min??0,c=x.find((b)=>b.min===v&&b.max===h.max);if(!c)x.push(c={min:v,...h.max===void 0?{}:{max:h.max}});c[m]=c[m]?`${c[m]};${g}`:g};function l(f,g){for(let h of f){if(h.type==="Atrule"){let x=h.name.toLowerCase();if(["font-face","keyframes","-webkit-keyframes","import","charset","property","page","layer"].includes(x)){if(x==="layer"&&h.block)l(h.block.children,g);continue}if(x!=="media"||!h.block){s(`@${x}`);continue}let v=h.prelude?Ae(h.prelude):"",c=li(v);if(c==="skip")continue;if(!c){s(`@media ${v}`);continue}l(h.block.children,{dark:g.dark||c.dark,min:c.min??g.min,max:c.max??g.max});continue}if(h.type!=="Rule"||h.block.type!=="Block")continue;let y=[...h.block.children].filter((x)=>x.type==="Declaration").map((x)=>Ae(x)).join(";"),m=h.prelude.type==="SelectorList"?[...h.prelude.children].map(Ae):[Ae(h.prelude)];for(let x of m){let v=/^(?:(?:html|:root)?\.dark\s+)?((?:\.-?[a-z_][\w-]*)+)((?::{1,2}[a-z-]+)*)$/i.exec(x.trim());if(!v){if(!/^(?:html|:root|body|\*|::?[a-z-]+)/i.test(x.trim()))s(x.trim());continue}let c=v[2];if(c){if(!ai.test(c))s(x.trim());continue}let b=g.dark||/^(?:(?:html|:root)?\.dark\s+)/i.test(x.trim());o(v[1].slice(1),y,{dark:b,min:g.min,max:g.max})}}}let u="",d=!0;await new HTMLRewriter().on("style",{element(f){u="";let g=f.getAttribute("type");d=!g||g.toLowerCase()==="text/css",f.onEndTag(()=>{if(!d)return;try{let h=oi(u);if(h.type==="StyleSheet")l(h.children,{})}catch{s("invalid stylesheet")}})},text(f){u+=f.text}}).transform(new Response(e)).text();for(let f of Object.values(n))f.responsive?.sort((g,h)=>g.min-h.min||(g.max??1/0)-(h.max??1/0));return n}import{generate as pe,parse as vn}from"@stacksjs/ts-css/parse";async function Sn(e,t){let n={light:new Map,dark:new Map},r=new Set,s=(h)=>{if(!r.has(h))r.add(h),t(h)},o=(h,y,m)=>{for(let x of m){let v=n[x].get(h);if(!v||Number(y.important)>Number(v.important)||y.important===v.important&&y.specificity>=v.specificity)n[x].set(h,y)}},l=(h)=>{if(h.type==="Declaration")return h.property.startsWith("--");if(h.type==="Rule"||h.type==="Atrule")return!!h.block&&[...h.block.children].some(l);return!1},u=(h)=>{let y=h.replace(/\s+/g,"").toLowerCase();if(!y||y==="all"||y==="screen")return["light","dark"];let m=/^(?:screenand)?\(prefers-color-scheme:(light|dark)\)$/.exec(y);return m?[m[1]]:void 0};function d(h,y){for(let m of h){if(!l(m))continue;if(m.type==="Atrule"){let v=m.prelude?pe(m.prelude):"",c=m.name.toLowerCase()==="media"?u(v):void 0;if(!c){s(`@${m.name} ${v}`.trim());continue}d(m.block.children,y.filter((b)=>c.includes(b)));continue}if(m.type!=="Rule")continue;let x=m.prelude.type==="SelectorList"?[...m.prelude.children].map(pe):[pe(m.prelude)];for(let v of x){let c=/^(html|:root)?(?:\.(dark|light))?$/.exec(v.trim());if(!c||!c[1]&&!c[2]){s(v);continue}let b=(c[1]===":root"?10:c[1]?1:0)+(c[2]?10:0);for(let p of m.block.children){if(p.type!=="Declaration"){if(l(p))s(`nested rule in ${v}`);continue}if(!p.property.startsWith("--"))continue;let N={value:pe(p.value),important:!!p.important,specificity:b};o(p.property,N,y.filter((S)=>!c[2]||c[2]===S))}}}}let f="",g;return await new HTMLRewriter().on("html",{element(h){let y=h.getAttribute("style");if(!y)return;try{let m=vn(y,{context:"declarationList"});if(m.type!=="DeclarationList")return;for(let x of m.children)if(x.type==="Declaration"&&x.property.startsWith("--"))o(x.property,{value:pe(x.value),important:!!x.important,specificity:1000},["light","dark"])}catch{s("invalid document inline theme")}}}).on("style",{element(h){f="";let y=h.getAttribute("type");g=!y||y.toLowerCase()==="text/css"?u(h.getAttribute("media")??""):void 0,h.onEndTag(()=>{try{let m=vn(f);if(m.type!=="StyleSheet")return;if(!g){if([...m.children].some(l))s("style type/media");return}d(m.children,g)}catch{s("invalid stylesheet")}})},text(h){f+=h.text}}).transform(new Response(e)).text(),{light:[...n.light].map(([h,y])=>[h,y.value]),dark:[...n.dark].map(([h,y])=>[h,y.value])}}function Y(e,t={},n={},r={},s=[]){return{type:e,props:t,style:n,events:r,children:s}}function wn(e,t,n={}){return{version:"1.0.0",root:e,script:t,meta:{source:n.source||"unknown",compiledAt:n.compiledAt||Date.now(),headwindConfig:n.headwindConfig}}}var ci=/^(?: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)$/,Nn=new Set(["script","style","head","meta","link","title","base","noscript"]),kn=new Set(["template","body","html","main","fragment"]),_e=new Set,ui=new Set(["onBlur","onChange","onChangeText","onDismiss","onEnd","onEndEditing","onEndReached","onError","onFocus","onPageSelected","onLayout","onLoad","onLoadEnd","onLoadStart","onLongPress","onMomentumScrollBegin","onMomentumScrollEnd","onPause","onPictureInPictureStart","onPictureInPictureStop","onPlay","onDragEnd","onDragLeave","onDragOver","onDragStart","onDrop","onHoverChange","onKeyPress","onPress","onPressIn","onPressOut","onProgress","onRequestClose","onRegionChangeComplete","onRefresh","onScroll","onScrollBeginDrag","onScrollEndDrag","onShow","onSlidingComplete","onSubmitEditing","onValueChange"]),Ee=new Set(["Sidebar","SplitView","View","ScrollView","SafeAreaView","KeyboardAvoidingView","Text","TextInput","Button","Link","TouchableOpacity","TouchableHighlight","Pressable","Icon","Image","ImageBackground","Video","WebView","Map","MapPolyline","MapPolygon","MapMarker","FlatList","SectionList","Switch","Checkbox","Slider","Picker","SegmentedControl","DatePicker","Modal","ActivityIndicator","StatusBar","RefreshControl",...nt]),di=new Map([["data","data"],["sections","sections"],["renderitem","renderItem"],["rendersectionheader","renderSectionHeader"],["keyextractor","keyExtractor"]]),Rn=new Set(["View","SafeAreaView","ScrollView","KeyboardAvoidingView"]),fi={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:" ","#39":"'","#x27":"'"};function se(e){return e.replace(/&(#x?[0-9a-f]+|\w+);/gi,(t,n)=>{let r=fi[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):t}return t})}function ut(e){if(!e.includes("{{"))return null;let t=[],n=0;for(let r of e.matchAll(/\{\{([\s\S]+?)\}\}/g)){if(r.index>n)t.push(JSON.stringify(e.slice(n,r.index)));t.push(`(${r[1].trim()})`),n=r.index+r[0].length}if(!t.some((r)=>r.startsWith("(")))return null;if(n<e.length)t.push(JSON.stringify(e.slice(n)));if(t.length===1)return t[0].slice(1,-1);return`[${t.join(", ")}].map(__stxPart => __stxPart == null ? '' : __stxPart).join('')`}function Tn(e,t,n,r={}){let s=r.inheritedVariables,o={},l={},u={},d=[],f="",g={};for(let[x,v]of t){let c=x.toLowerCase();if(c==="class"||c==="classname"){f=f?`${f} ${v}`:v;continue}if(c==="style"){g={...g,...pi(e,v,n,{...r,onVariables(S){s=S,r.onVariables?.(S)}})};continue}if(c.startsWith(":")||c.startsWith("x-")&&c!=="x-cloak"){u[c.startsWith(":")?c.slice(1):c.slice(2)]=se(v);continue}if(c==="x-cloak")continue;if(c.startsWith("@")||c.startsWith("v-on:")){let S=c.startsWith("@")?c.slice(1):c.slice(5),[R]=S.split("."),w=ke[R]??ke[R.replaceAll("-","")]??(R.startsWith("on")?R:""),A=w==="onKeyPress"&&S!==R;if(!w||!ui.has(w)||A){if(ci.test(R)||/\./.test(S))n.push({kind:"unread-event",tag:e,name:x});continue}l[w]=se(v);continue}if(c==="key"){o.key=v;continue}let b=se(v),p=ut(b);if(p){u[c]=p,d.push(c);continue}let N=ot(x);if(b===""&&gn.has(N)){o[N]=!0;continue}try{o[N]=JSON.parse(b)}catch{o[N]=b}}let h=o["data-native"]?o["data-native"]==="TextInput":e==="textarea"||e==="input"&&!["checkbox","radio","hidden"].includes(String(o.type??"text").toLowerCase()),y=f?ie(f,s,{focus:h,focusWithin:!0,rules:r.rules}):void 0;for(let x of new Set(y?.unknown??[]))n.push({kind:"unknown-class",tag:e,name:x});let m=He({...y?.style,...g});return{props:o,style:m,events:l,bindings:u,classes:f,inline:g,templated:d}}function pi(e,t,n,r){return ve(se(t),(s)=>n.push({...s,tag:e}),r)}function Ce(e){return e.children.map((t)=>typeof t==="string"?t:Ce(t)).join("").replace(/\s+/g," ").trim()}function gi(e,t){let n=e.node;if(n.props["data-stx-native-template"])return n.children=n.children.map((o)=>typeof o==="string"?Y("Text",{},{},{},[o]):o),n;let r=n.children.filter((o)=>typeof o!=="string"),s=n.children.filter((o)=>typeof o==="string").join("").trim();if(e.tag==="button"&&n.type==="Button"&&!e.declaredNative&&r.length>0)return n.type="Pressable",n.props.role??="button",n.children=n.children.flatMap((o)=>typeof o==="string"?o.trim()?[Y("Text",{},{},{},[o.trim()])]:[]:[o]),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 o=Ce(n);return n.children=o?[o]:[],n}if(Rn.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"?Y("Text",{},{},{},[u]):u),n;let l=Ce(n);return t.push({kind:"flattened-text",tag:e.tag}),n.children=l?[l]:[],n}if(n.type==="Text"&&r.length===0&&n.children.length>0)return n.children=s?[s]:[],n;if(Rn.has(n.type)&&r.length>0)n.children=r;return n}async function hi(e,t={}){e=await ge(e);let n=[];for(let c of wi(e))n.push({kind:"stray-end-tag",tag:c});let r=await Sn(e,(c)=>n.push({kind:"unsupported-theme-rule",tag:"style",name:c})),s=ne(r.light).computed(),o=new Set([...e.matchAll(/\sclass(?:name)?\s*=\s*"([^"]*)"/gi)].flatMap((c)=>c[1].split(/\s+/))),l=await bn(e,(c,b)=>{if(!b.length||b.some((p)=>o.has(p)))n.push({kind:"unsupported-style-rule",tag:"style",name:c})}),u=[],d=[],f=new Set;function g(c){let b=d[d.length-1];if(!b)u.push(c);else if(!b.dropped)b.node.children.push(c)}function h(c){let b=c.node.style.fontFamily,p=(S)=>{if(c.tag!=="html"&&c.node._styleSource)S._styleAncestors=[c.node._styleSource,...S._styleAncestors??[]];if(b&&S.style.fontFamily===void 0)S._layoutDefaults={...S._layoutDefaults,fontFamily:b},S.style={fontFamily:b,...S.style}};if(c.node.bindings&&Object.keys(c.node.bindings).length>0){let S=c.node.children,R=S.filter((A)=>typeof A!=="string"),w=R.length===1&&R.length===S.length?R[0]:Y("View",{},{},{},S);if(w.bindings={...c.node.bindings,...w.bindings},w.bindingId===void 0&&c.node.bindingId!==void 0)w.bindingId=c.node.bindingId;p(w),g(w);return}let N=d[d.length-1];for(let S of c.node.children){if(typeof S==="string"){if(N&&!N.dropped)N.node.children.push(S);continue}if(p(S),!N)u.push(S);else if(!N.dropped)N.node.children.push(S)}}function y(c,b){let p=d[d.length-1];if(c==="svg"||p?.svg)return m(c,b,p);let N=Nn.has(c)&&!_e.has(c),S=d[d.length-1]?.dropped??!1,R=p?.variables??s,{props:w,style:A,events:P,bindings:L,classes:_,inline:j,templated:W}=N||S?{props:{},style:{},events:{},bindings:{},classes:"",inline:{},templated:[]}:Tn(c,b,n,{inheritedVariables:R,onVariables:(B)=>{R=B},rules:l});if(c==="html")R=s;let O=w["data-native"],I=c==="template"&&b.some(([B])=>[":for","x-for","@for"].includes(B)),k;if(I)k="View",w["data-stx-native-template"]=!0;else if(typeof O==="string"&&Ee.has(O))k=O,delete w["data-native"];else{if(k=_e.has(c)?"View":mn(c),(c==="i"||c==="span")&&/(?:^|\s)i-[a-z0-9]+-[a-z0-9-]+(?:\s|$)/.test(_))k="Icon";else if(c==="i"&&b.some(([B])=>/^(?::|x-)class$/i.test(B)))k="Icon";if(c==="input"){let B=String(w.type??"text").toLowerCase();if(B==="checkbox")k="Checkbox",w.formValue=w.value??"on",w.checked=w.checked===""||w.checked===!0||w.checked==="true",w.value=w.checked;else if(B==="hidden")k="View",A.display="none",j.display="none";else if(B==="radio")k="View",w.accessibilityRole="radio",n.push({kind:"unsupported-control",tag:c,name:"input:radio"})}}if(!S&&k===c&&!Ee.has(k)&&!Nn.has(c)&&!kn.has(c)&&!f.has(c))f.add(c),n.push({kind:"unmapped-tag",tag:c});if((N||_e.has(c))&&!f.has(`drop:${c}`))f.add(`drop:${c}`),n.push({kind:"dropped-subtree",tag:c});if(k==="View"&&/(?:^|\s)overflow-x-(?:auto|scroll)(?:\s|$)/.test(_))k="ScrollView",w.horizontal=!0,w.showsHorizontalScrollIndicator??=!1;else if(k==="View"&&/(?:^|\s)overflow-y-(?:auto|scroll)(?:\s|$)/.test(_))k="ScrollView";if(c==="form")w["data-stx-form"]=!0;if(c==="button"&&w.type===void 0)w.type="submit";if(c==="textarea"&&k==="TextInput")w.multiline??=!0;if((k==="Video"||k==="Image")&&w.source===void 0&&w.src!==void 0)w.source=w.src,delete w.src;if(k==="Icon"){let B=ie(_).icon,U=String(w.symbol||w.name||B||""),D=fe(U,Boolean(w.symbol));if(U.trim()&&!D.known)n.push({kind:"unknown-icon",tag:c,name:U});if(w.symbol=D.symbol,D.iconify)w.iconify=D.iconify}if(k==="FlatList"||k==="SectionList"){let B=new Set([...Object.keys(w),...Object.keys(L)].map((U)=>U.toLowerCase()));for(let[U,D]of di)if(B.has(U))n.push({kind:"unsupported-list-prop",tag:k,name:D})}let T=Y(k,w,A,P);T._inlineStyle=j,T._styleSource=se(b.find(([B])=>B==="style")?.[1]??"");let E=w["data-stx-b"];if(typeof E==="number"&&Number.isInteger(E))T.bindingId=E;if(delete w["data-stx-b"],_)T._classes=_;if(Object.keys(L).length>0)T.bindings=L;if(W.length>0)T._templated=W;if(typeof w.key==="string")T.key=w.key,delete w.key;return{tag:c,node:T,variables:R,declaredNative:typeof O==="string"&&Ee.has(O),dropped:N||S||_e.has(c)||k==="Video",discard:N||S,unwrap:kn.has(c)&&!I&&k!=="ScrollView"&&!(typeof O==="string"&&Ee.has(O))}}function m(c,b,p){let N=p?.dropped??!1,S=tt[c];if(N||!S){if(!N&&!f.has(`drop:${c}`))f.add(`drop:${c}`),n.push({kind:dn.has(c)?"dropped-subtree":"unmapped-tag",tag:c});return{tag:c,node:Y("G",{},{},{}),svg:!0,dropped:!0,discard:!0,unwrap:!1}}let R=p?.variables??s,{props:w,style:A,events:P,bindings:L,classes:_,inline:j,templated:W}=Tn(c,b,n,{inheritedVariables:R,onVariables:(T)=>{R=T},rules:l});if(S==="Svg"){let T=rt(w.viewBox);if(T)w.viewBox=T;else delete w.viewBox;for(let E of["width","height"]){if(typeof w[E]==="number"&&A[E]===void 0)A[E]=w[E];delete w[E]}}if(typeof w.strokeDasharray==="string"||typeof w.strokeDasharray==="number"){let T=String(w.strokeDasharray).split(/[\s,]+/).map(Number).filter(Number.isFinite);w.strokeDasharray=T}let O=it(S,w);if(O)w.geometry=O;if(S==="Animate")st(w);let I=Y(S,w,A,P);I._inlineStyle=j,I._styleSource=se(b.find(([T])=>T==="style")?.[1]??"");let k=w["data-stx-b"];if(typeof k==="number"&&Number.isInteger(k))I.bindingId=k;if(delete w["data-stx-b"],_)I._classes=_;if(Object.keys(L).length>0)I.bindings=L;if(W.length>0)I._templated=W;if(typeof w.key==="string")I.key=w.key,delete w.key;return{tag:c,node:I,variables:R,svg:!0,dropped:!1,discard:!1,unwrap:!1}}if(await new HTMLRewriter().on("*",{element(c){let b=c.tagName.toLowerCase(),p=y(b,[...c.attributes]),N=!0;try{c.onEndTag(()=>{if(d.pop(),p.discard)return;if(p.unwrap)h(p);else g(gi(p,n))})}catch{N=!1}if(N)d.push(p);else if(!p.discard)g(p.node)},text(c){let b=d[d.length-1];if(!b||b.dropped)return;let p=bi(se(c.text),b.inMustache===!0);b.inMustache=p.inside;let N=p.text;if(!N.trim())return;b.node.children.push(N)}}).transform(new Response(e)).text(),u.length===0)throw Error(`No element to translate in the rendered output of ${t.source??"unknown"}`);let x=u.length===1?u[0]:Y("View",{},{},{},u);if(r.light.length||r.dark.length)x._stylesheetTheme=r;if(Object.keys(l).length)x._stylesheetRules=l;let v=(c)=>{vi(c);let b=Qe(c.props,c.type);if(Object.keys(b).length)c._accessibilitySource=Object.fromEntries(de.filter((p)=>(p in c.props)).map((p)=>[p,c.props[p]])),Object.assign(c.props,b);ln(c);for(let p of c.children)if(typeof p!=="string")v(p)};return yi(x),v(x),An(x),{root:x,diagnostics:n}}var mi=new Set(["TextInput","Picker","Switch","Checkbox","Slider","DatePicker"]);function yi(e){let t=new Map,n=[],r=(s)=>{if(typeof s.props.id==="string"&&s.props.id)t.set(s.props.id,s);if(typeof s.props.for==="string"&&s.props.for)n.push(s);for(let o of s.children)if(typeof o!=="string")r(o)};r(e);for(let s of n){let o=t.get(s.props.for);if(!o||!mi.has(o.type))continue;let l=["aria-label","accessibilityLabel"].some((d)=>o.props[d]!==void 0||o.bindings?.[d]!==void 0),u=s.bindings?.text===void 0?Ce(s):"";if(l||!u||u.includes("{{"))continue;if(o.props["aria-label"]=u,s.props["aria-hidden"]===void 0&&s.bindings?.["aria-hidden"]===void 0)s.props["aria-hidden"]="true"}}function An(e,t=!1){if(["ScrollView","FlatList","SectionList"].includes(e.type))return!e.props.horizontal&&(Number(e.style.flex)>0||Number(e.style.flexGrow)>0);let n=e.style.flexDirection==="row"||e.style.display==="flex"&&e.style.flexDirection==null;if(!e.children.map((s)=>typeof s==="string"?!1:An(s,n)).some(Boolean)||!["View","SafeAreaView","KeyboardAvoidingView"].includes(e.type))return!1;if(e.style.height!==void 0||e.style.maxHeight!==void 0)return!1;if(e.style.flex===0||e.style.flexGrow===0||e.style.flexShrink===0)return!1;if(t)return!0;if(e.style.flex===void 0&&e.style.flexGrow===void 0)e._layoutDefaults={flex:1,flexGrow:1,flexShrink:1,flexBasis:0},e.style={...e._layoutDefaults,...e.style};return!0}function bi(e,t){let n="",r=0;while(r<e.length){if(!t&&e.startsWith("{{",r)){t=!0,n+="{{",r+=2;continue}if(t&&e.startsWith("}}",r)){t=!1,n+="}}",r+=2;continue}let s=e[r];if(!t&&/\s/.test(s)){if(!n.endsWith(" "))n+=" ";while(r<e.length&&/\s/.test(e[r]))r++;continue}n+=s,r++}return{text:n,inside:t}}function vi(e){if(e.props["data-stx-native-template"])return;if(e.bindings?.text||e.children.length===0)return;let t=e.children.filter((r)=>typeof r==="string");if(t.length<e.children.length){let r=e.type==="Button"||e.type==="Text"?null:ut(t.join(""));if(!r)return;e.bindings={...e.bindings,text:r},e._templated=[...e._templated??[],"text"],e.children=e.children.filter((s)=>typeof s!=="string");return}let n=ut(e.children.join(""));if(!n)return;if(e.type!=="Button")e.bindings={...e.bindings,text:n},e._templated=[...e._templated??[],"text"],e.children=[];else{e.type="Pressable",e.props.role??="button";let r=Y("Text",{},{},{},[]);r.bindings={text:n},r._templated=["text"],e.children=[r]}}async function _n(e,t={}){let{root:n,diagnostics:r}=await hi(e,t),s=t.script??{exports:{},functions:[],code:""};return{document:wn(n,s,{source:t.source??"unknown"}),diagnostics:r}}var Si=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function wi(e){let t=(o)=>o.replace(/[^\n]/g," "),n=e.replace(/<!--[\s\S]*?-->/g,t).replace(/<(script|style|textarea|title)\b[^>]*>[\s\S]*?<\/\1\s*>/gi,t).replace(/"[^"]*"|'[^']*'/g,(o)=>o[0]+t(o.slice(1,-1))+o[0]),r=[],s=[];for(let o of n.matchAll(/<(\/?)([a-z][\w:.-]*)[^<>]*?(\/?)>/gi)){let l=o[2].toLowerCase();if(Si.has(l)||o[3])continue;if(!o[1]){r.push(l);continue}let u=r.lastIndexOf(l);if(u===-1)s.push(l);else r.length=u}return s}function Ni(e){let t="",n=0;for(let r=e.indexOf("<");r!==-1;r=e.indexOf("<",r+1)){if(!/[a-z]/i.test(e[r+1]??""))continue;let s=r+1,o="";for(;s<e.length;s++){let u=e[s];if(o){if(u===o)o="";continue}if(u==='"'||u==="'")o=u;else if(u===">"||u==="<")break}if(e[s]!==">"||e[s-1]!=="/")continue;let l=e.slice(r,s+1).replace(/"[^"]*"|'[^']*'/g,'""');if(!/\sdata-native-exclude(?=[\s=/>])/i.test(l))continue;t+=e.slice(n,r),n=s+1,r=s}return n?t+e.slice(n):e}async function ge(e){if(!/\bdata-native-exclude\b/i.test(e))return e;if(e=Ni(e),!/\bdata-native-exclude\b/i.test(e))return e;return new HTMLRewriter().on("[data-native-exclude]",{element(t){t.remove()}}).transform(new Response(e)).text()}var En=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,xi=/(?:^|\n)\s*(?:export\s+)?(?:async\s+)?function\s*\*?\s*([$\w]+)\s*\(/g,ki=/(?:^|\n)\s*(?:export\s+)?(?:const|let|var)\s+([$\w]+)\s*=\s*(?:async\s*)?(?:\([^)]*\)|[$\w]+)\s*=>/g,Cn=/(?:^|\n)\s*(?:export\s+)?const\s+([$\w]+)\s*=\s*(-?[\d.]+|true|false|'[^']*'|"[^"]*")\s*(?=;|\n|$)/g;function dt(e){let t=[];En.lastIndex=0;for(let o of e.matchAll(En)){let l=o[1]??"";if(/\bserver\b/.test(l))continue;t.push(o[2].trim())}let n=t.filter(Boolean).join(`
|
|
4
4
|
|
|
5
5
|
`),r=[];for(let o of[xi,ki]){o.lastIndex=0;for(let l of n.matchAll(o))if(!r.includes(l[1]))r.push(l[1])}let s={};Cn.lastIndex=0;for(let o of n.matchAll(Cn)){let l=o[2];try{s[o[1]]=JSON.parse(l.replace(/^'(.*)'$/,'"$1"'))}catch{s[o[1]]=l}}return{exports:s,functions:r,code:n}}var le="[data-native-chrome]";function Ri(e){let t=(e??"").trim().toLowerCase();return t==="tabs"||t==="bar"?t:""}function On(e,t){let n=fe(e);if(!n.known&&/^i-|:/.test(e))t?.(e);return n.known||/^i-|:/.test(e)?n.symbol:e}function Ti(e){let t=(e??"").trim();if(!t.startsWith("/")||t.startsWith("//"))return null;return t}function In(e){return e.replace(/ /g," ").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/�?39;/g,"'").replace(/\s+/g," ").trim()}async function Pn(e,t){if(!/\bdata-native-chrome\b/i.test(e))return{html:e,chrome:null};let n=[],r=[],s=new Set,o=[],l=[],u=null,d=null,f=!1;if(await new HTMLRewriter().on(le,{element(y){f=!0;let m=y.getAttribute("data-stx-scope");if(m)s.add(m);n.push(Ri(y.getAttribute("data-native-chrome"))),y.onEndTag(()=>{n.pop()})}}).on("[data-stx-component-wrapper]",{element(y){let m={scope:y.getAttribute("data-stx-scope")??"",children:0,chrome:0};o.push(m),y.onEndTag(()=>{if(o.pop(),m.scope&&m.children>0&&m.chrome===m.children)s.add(m.scope)})}}).on("[data-stx-component-wrapper] > *",{element(y){let m=o[o.length-1];if(!m)return;if(m.children++,y.hasAttribute("data-native-chrome"))m.chrome++}}).on(`${le} [data-stx-scope]`,{element(y){let m=y.getAttribute("data-stx-scope");if(m)s.add(m)}}).on(`${le} script[data-stx-component-factories]`,{element(y){let m=[...y.attributes].map(([x,v])=>v===""?x:`${x}="${v.replace(/"/g,""")}"`).join(" ");u="",y.onEndTag(()=>{l.push(`<script ${m}>${u}</script>`),u=null})},text(y){if(u!==null)u+=y.text}}).on(`${le} a`,{element(y){let m=Ti(y.getAttribute("href")),x=n[n.length-1]??"";if(!m||!x)return;let v=y.getAttribute("data-native-icon")||lt(y.getAttribute("class")??""),c={path:m,title:"",region:x,label:y.getAttribute("aria-label")||y.getAttribute("title")||"",...v?{symbol:On(v,t)}:{}};d=c,y.onEndTag(()=>{if(c.title=In(c.title)||In(c.label),r.push(c),d===c)d=null})},text(y){if(d)d.title+=y.text}}).on(`${le} a *`,{element(y){if(!d||d.symbol)return;let m=y.getAttribute("data-native-icon")||lt(y.getAttribute("class")??"");if(m)d.symbol=On(m,t)}}).transform(new Response(e)).text(),!f)return{html:e,chrome:null};let g=await new HTMLRewriter().on(le,{element(y){y.remove()}}).on("script[data-stx-owner]",{element(y){if(s.has(y.getAttribute("data-stx-owner")??""))y.remove()}}).transform(new Response(e)).text(),h=(y)=>r.filter((m)=>m.region===y).map(({path:m,title:x,symbol:v})=>({path:m,title:x,...v?{symbol:v}:{}}));return{html:l.join(`
|
|
6
|
-
`)+g,chrome:{tabs:h("tabs"),bar:h("bar")}}}var Oe=/<script\b([^>]*\bdata-stx-scoped\b[^>]*)>([\s\S]*?)<\/script>/gi,Mn=/function\s+(__stx_setup_[\w$]+)\s*\(/,Ai=/\bdata-stx-owner\s*=\s*["']([^"']+)["']/i;function ft(e){Oe.lastIndex=0;for(let t of e.matchAll(Oe)){let n=t[2].trim(),r=Mn.exec(n)?.[1];if(r)return{name:r,code:n}}return null}function Bn(e){let t=[];Oe.lastIndex=0;for(let n of e.matchAll(Oe)){let r=n[1],s=n[2].trim(),o=Ai.exec(r)?.[1],l=/\bdata-stx-component-factories\b/i.test(r);if(!s||!o&&!l&&!Mn.test(s))continue;t.push(o?{code:s,owner:o}:{code:s})}return t}async function _i(e,t,n={}){e=await ge(e);let r=n.root??ce.dirname(t),s=await a(r),o=typeof s.root==="string"&&s.root?ce.resolve(r,s.root):r,l=(O,I)=>O?ce.isAbsolute(O)?O:ce.resolve(o,O):ce.join(o,I),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"):ce.join(o,"components")),buildMode:"serve",cache:!1,_targetComponentDirs:[Fs()],_targetComponentFallbackNames:["Button","Checkbox","Switch","TextInput","Image","Video"],_nativeHostAttrs:!0,skipEventDirectives:!0,_pluginComponentDirs:s._pluginComponentDirs??[],_componentPackageDirs:s._componentPackageDirs??[]},d={...n.context??{},__stx_inject_css:!1,__stx_native_screen:!0},f=new Set([t]),g=await i(e,d,t,u,f),h=[],{html:y,chrome:m}=await Pn(await ge(g),(O)=>{h.push({kind:"unknown-icon",tag:"data-native-chrome",name:O})}),{html:x,manifest:v}=wt(await ge(y)),c=await en(r),{document:b,diagnostics:p}=await _n(c?`<style>${c}</style>${x}`:x,{source:t,script:dt(e)});p.unshift(...h),Ei(b.root,v);let N=Yt(b.root);if(N)b.root._classTable=N;let S=d.__stx_runtime_head;if(typeof S?.title==="string"&&S.title.trim())b.title=S.title.trim();if(m)b.chrome=m;let R=ft(x),w=Bn(x);if(dt(e).code.trim()){let O=await Ls(e,t,n.context,{forceClientSetup:!0}),I=ft(O.setupCode??"");if(R=I??R,I&&!w.some((k)=>k.code===I.code))w.push({code:I.code})}let{buildModuleRegistryScript:A,registeredModuleIdsIn:P,registeredModuleNamesIn:L}=await import("./chunk-
|
|
6
|
+
`)+g,chrome:{tabs:h("tabs"),bar:h("bar")}}}var Oe=/<script\b([^>]*\bdata-stx-scoped\b[^>]*)>([\s\S]*?)<\/script>/gi,Mn=/function\s+(__stx_setup_[\w$]+)\s*\(/,Ai=/\bdata-stx-owner\s*=\s*["']([^"']+)["']/i;function ft(e){Oe.lastIndex=0;for(let t of e.matchAll(Oe)){let n=t[2].trim(),r=Mn.exec(n)?.[1];if(r)return{name:r,code:n}}return null}function Bn(e){let t=[];Oe.lastIndex=0;for(let n of e.matchAll(Oe)){let r=n[1],s=n[2].trim(),o=Ai.exec(r)?.[1],l=/\bdata-stx-component-factories\b/i.test(r);if(!s||!o&&!l&&!Mn.test(s))continue;t.push(o?{code:s,owner:o}:{code:s})}return t}async function _i(e,t,n={}){e=await ge(e);let r=n.root??ce.dirname(t),s=await a(r),o=typeof s.root==="string"&&s.root?ce.resolve(r,s.root):r,l=(O,I)=>O?ce.isAbsolute(O)?O:ce.resolve(o,O):ce.join(o,I),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"):ce.join(o,"components")),buildMode:"serve",cache:!1,_targetComponentDirs:[Fs()],_targetComponentFallbackNames:["Button","Checkbox","Switch","TextInput","Image","Video"],_nativeHostAttrs:!0,skipEventDirectives:!0,_pluginComponentDirs:s._pluginComponentDirs??[],_componentPackageDirs:s._componentPackageDirs??[]},d={...n.context??{},__stx_inject_css:!1,__stx_native_screen:!0},f=new Set([t]),g=await i(e,d,t,u,f),h=[],{html:y,chrome:m}=await Pn(await ge(g),(O)=>{h.push({kind:"unknown-icon",tag:"data-native-chrome",name:O})}),{html:x,manifest:v}=wt(await ge(y)),c=await en(r),{document:b,diagnostics:p}=await _n(c?`<style>${c}</style>${x}`:x,{source:t,script:dt(e)});p.unshift(...h),Ei(b.root,v);let N=Yt(b.root);if(N)b.root._classTable=N;let S=d.__stx_runtime_head;if(typeof S?.title==="string"&&S.title.trim())b.title=S.title.trim();if(m)b.chrome=m;let R=ft(x),w=Bn(x);if(dt(e).code.trim()){let O=await Ls(e,t,n.context,{forceClientSetup:!0}),I=ft(O.setupCode??"");if(R=I??R,I&&!w.some((k)=>k.code===I.code))w.push({code:I.code})}let{buildModuleRegistryScript:A,registeredModuleIdsIn:P,registeredModuleNamesIn:L}=await import("./chunk-kvcz1926.js"),_=async()=>{let O=[],I=w.map((T)=>T.code),k=await A(P(...I),{collectInputs:O,names:L(...I)});for(let T of O)f.add(T);return k},j=await _();if([...w.map((O)=>O.code),j??""].some((O)=>/\buseStore\s*\(/.test(O))&&/<script\b[^>]*\bdata-stx-stores\b/i.test(x)){let{getStoreScriptFor:O}=await import("./chunk-cqcxj08t.js"),I=[...w],k="";for(let T=0;T<8;T++){let E=await O(u.storesDir,[...I.map((B)=>B.code),j],{sharedModules:!0});if(!E)break;if(E.stores.join()===k)break;k=E.stores.join(),w.splice(0,w.length,{code:E.code,...E.functions?{stores:E.functions}:{}},...I);for(let B of new Bun.Glob("*.ts").scanSync({cwd:u.storesDir,absolute:!0}))f.add(B);j=await _()}}if(j)w.unshift({code:j,registry:!0});return{document:b,manifest:v,setup:R,scripts:w,diagnostics:p,html:x,dependencies:[...f]}}function Ei(e,t){let n=new Map(t.entries.map((o)=>[o.id,o])),r=t.entries.reduce((o,l)=>Math.max(o,l.id),-1)+1,s=(o)=>{if(o._templated?.length&&o.bindings){if(o.bindingId===void 0||!n.has(o.bindingId)){let u={id:o.bindingId??r++,bindings:[]};o.bindingId=u.id,n.set(u.id,u),t.entries.push(u)}let l=n.get(o.bindingId);for(let u of o._templated){let d=`:${u}`,f=Le(d);if(f&&!l.bindings.some((g)=>g.name===d))l.bindings.push({name:d,value:o.bindings[u],kind:f})}}for(let l of o.children)if(typeof l!=="string")s(l)};s(e)}async function Ie(e,t={}){return _i(await Bun.file(e).text(),e,t)}var Po=Symbol("stx.nativeWebStorage.raw");var he="__app";var Pi=(e)=>Bun.hash(e).toString(36);var Mi=/^ {2}try \{ factories\[("[0-9a-f]+")\] = factories\[\1\] \|\| /gm,Bi=/^\(function\(__scopeId\) \{([\s\S]*)\}\)\("([^"\\]+)"\);\s*$/;function pt(e){if(!e.startsWith(`(function() {
|
|
7
7
|
const factories = window.__stxComponentFactories = window.__stxComponentFactories || {};
|
|
8
8
|
`)||!e.endsWith(`
|
|
9
9
|
})();`))return null;let t=[...e.matchAll(Mi)];if(t.length===0)return null;let n=[],r=105;for(let[s,o]of t.entries()){if(o.index!==r)return null;let l=JSON.parse(o[1]),u=o.index+o[0].length,d=`; }
|
|
@@ -16,7 +16,7 @@ ${v.map((b)=>`${b.text}
|
|
|
16
16
|
})();`}}if(h.stores?.some(l)){for(let x of h.stores.filter(l))u.set(n(x),x);return{code:`;(function() {
|
|
17
17
|
${h.stores.map((x)=>l(x)?`runtime.components[${JSON.stringify(n(x))}]();`:`(${x})();`).join(`
|
|
18
18
|
`)}
|
|
19
|
-
})();`}}let m=s(h);if(m&&l(m.body))return u.set(n(m.body),m.body),{...h,code:`runtime.components[${JSON.stringify(n(m.body))}](${JSON.stringify(m.scope)});`};return h}));return{bodies:u,screens:d}}var Di=[["props",()=>({})],["style",()=>({})],["events",()=>({})],["children",()=>[]],["_inlineStyle",()=>({})],["_styleSource",()=>""]];var Li=new Set(["text","html","show","if","for","model","class","style","ref"]);function $i(e){if(e.startsWith("@"))return"event";if(e.startsWith(":")&&Li.has(e.slice(1)))return e.slice(1);return"attr"}function ji(e,t){if(typeof t==="string")return e==="";if(Array.isArray(t))return Array.isArray(e)&&e.length===0;return!!e&&typeof e==="object"&&!Array.isArray(e)&&Object.getPrototypeOf(e)===Object.prototype&&Object.keys(e).length===0}class gt extends Error{}function Ln(e){let t={...e};if(Object.prototype.hasOwnProperty.call(t,"~"))throw new gt;let n=0;if(Di.forEach(([r,s],o)=>{if(!Object.prototype.hasOwnProperty.call(t,r))n|=1<<o;else if(ji(t[r],s()))delete t[r]}),Array.isArray(t.children))t.children=t.children.map((r)=>typeof r==="string"?r:Ln(r));if(n)t["~"]=n;return t}function $n(e){try{return{...e,root:Ln(e.root)}}catch(t){if(t instanceof gt)return null;throw t}}var Vi=["kind","name","value"].join();function jn(e){if(Object.keys(e).some((n)=>n!=="entries"))return null;let t=[];for(let n of e.entries){if(Object.keys(n).some((s)=>s!=="id"&&s!=="bindings"&&!(s==="template"&&n.template===!0)))return null;let r=[];for(let s of n.bindings){if(Object.keys(s).sort().join()!==Vi||typeof s.value!=="string")return null;r.push(s.kind===$i(s.name)?[s.name,s.value]:[s.name,s.value,s.kind])}t.push(n.template?[n.id,r,1]:[n.id,r])}return t}async function Fi(e){try{let{loadCssEngineConfig:t}=await import("./chunk-
|
|
19
|
+
})();`}}let m=s(h);if(m&&l(m.body))return u.set(n(m.body),m.body),{...h,code:`runtime.components[${JSON.stringify(n(m.body))}](${JSON.stringify(m.scope)});`};return h}));return{bodies:u,screens:d}}var Di=[["props",()=>({})],["style",()=>({})],["events",()=>({})],["children",()=>[]],["_inlineStyle",()=>({})],["_styleSource",()=>""]];var Li=new Set(["text","html","show","if","for","model","class","style","ref"]);function $i(e){if(e.startsWith("@"))return"event";if(e.startsWith(":")&&Li.has(e.slice(1)))return e.slice(1);return"attr"}function ji(e,t){if(typeof t==="string")return e==="";if(Array.isArray(t))return Array.isArray(e)&&e.length===0;return!!e&&typeof e==="object"&&!Array.isArray(e)&&Object.getPrototypeOf(e)===Object.prototype&&Object.keys(e).length===0}class gt extends Error{}function Ln(e){let t={...e};if(Object.prototype.hasOwnProperty.call(t,"~"))throw new gt;let n=0;if(Di.forEach(([r,s],o)=>{if(!Object.prototype.hasOwnProperty.call(t,r))n|=1<<o;else if(ji(t[r],s()))delete t[r]}),Array.isArray(t.children))t.children=t.children.map((r)=>typeof r==="string"?r:Ln(r));if(n)t["~"]=n;return t}function $n(e){try{return{...e,root:Ln(e.root)}}catch(t){if(t instanceof gt)return null;throw t}}var Vi=["kind","name","value"].join();function jn(e){if(Object.keys(e).some((n)=>n!=="entries"))return null;let t=[];for(let n of e.entries){if(Object.keys(n).some((s)=>s!=="id"&&s!=="bindings"&&!(s==="template"&&n.template===!0)))return null;let r=[];for(let s of n.bindings){if(Object.keys(s).sort().join()!==Vi||typeof s.value!=="string")return null;r.push(s.kind===$i(s.name)?[s.name,s.value]:[s.name,s.value,s.kind])}t.push(n.template?[n.id,r,1]:[n.id,r])}return t}async function Fi(e){try{let{loadCssEngineConfig:t}=await import("./chunk-q6jecdtg.js");return Ot(await t(e))}catch{return{}}}var Pe="__runtime",Ui="__messages";function Me(e){let n=[q.join(import.meta.dir,"..","runtime",`${e}.ts`),q.join(import.meta.dir,"..","runtime",`${e}.js`),q.join(import.meta.dir,"native","runtime",`${e}.js`)].find((r)=>Un(r));if(!n)throw Error(`Native runtime module ${e} is missing`);return n}function Xi(){return{name:"stx-native-authoring-runtime",setup(e){e.onResolve({filter:/^(?:stx|@stacksjs\/stx)$/},()=>({path:"api",namespace:"stx-native-authoring-runtime"})),e.onLoad({filter:/.*/,namespace:"stx-native-authoring-runtime"},()=>({loader:"js",contents:C.map((t)=>`export function ${t}(...args) {
|
|
20
20
|
const runtime = globalThis.stx;
|
|
21
21
|
if (typeof runtime?.${t} !== 'function') throw new Error('STX native runtime is not ready for ${t}');
|
|
22
22
|
return runtime.${t}(...args);
|