@stacksjs/stx 0.2.467 → 0.2.468
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-2jbyks2t.js → chunk-01nx6zcw.js} +2 -2
- package/dist/{chunk-v3yqeh15.js → chunk-04qmr675.js} +2 -2
- package/dist/chunk-07mksefx.js +2 -0
- package/dist/chunk-129ernx4.js +2 -0
- package/dist/{chunk-y8923540.js → chunk-151d1av1.js} +5 -5
- package/dist/{chunk-k9sbgax8.js → chunk-2542vq5p.js} +1 -1
- package/dist/{chunk-e15a8txv.js → chunk-27kb6nrb.js} +2 -2
- package/dist/{chunk-z80d9dd2.js → chunk-28s5x7wv.js} +2 -2
- package/dist/chunk-29pn79t5.js +3 -0
- package/dist/{chunk-5j5msbks.js → chunk-2gmbxp60.js} +3 -3
- package/dist/chunk-2njt4vbe.js +2 -0
- package/dist/{chunk-6h93aacc.js → chunk-2swdrsrq.js} +2 -2
- package/dist/{chunk-tpvc8xnk.js → chunk-33gkx5z1.js} +7 -7
- package/dist/{chunk-d3mpxr3s.js → chunk-33h9ggbz.js} +4 -4
- package/dist/{chunk-bddjx2a2.js → chunk-3fjpg8kb.js} +3 -3
- package/dist/chunk-3gbjppvg.js +2 -0
- package/dist/{chunk-9fr19qe4.js → chunk-3pv6f998.js} +2 -2
- package/dist/chunk-3w22gpa9.js +2 -0
- package/dist/chunk-3ztpcnga.js +2 -0
- package/dist/chunk-4aw47rmg.js +2 -0
- package/dist/{chunk-90drf2ag.js → chunk-4ebwk9cw.js} +2 -2
- package/dist/chunk-50vq8k55.js +2 -0
- package/dist/chunk-549wm9qp.js +2 -0
- package/dist/chunk-5jak1hxp.js +2 -0
- package/dist/{chunk-n4wfef43.js → chunk-5rvbpmzc.js} +3 -3
- package/dist/chunk-5sb7gw66.js +2 -0
- package/dist/{chunk-9pt8fd2n.js → chunk-5t5ahhjp.js} +3 -3
- package/dist/{chunk-a8q8m5pp.js → chunk-5x9ftmve.js} +2 -2
- package/dist/chunk-5y4qxmaw.js +2 -0
- package/dist/{chunk-pbh4smw3.js → chunk-7ejq9n1v.js} +4 -4
- package/dist/{chunk-r80km6mn.js → chunk-7grtpdw5.js} +2 -2
- package/dist/chunk-7mh0fnrq.js +2 -0
- package/dist/chunk-7ppykfx2.js +2 -0
- package/dist/{chunk-14vnnx44.js → chunk-80hpdc22.js} +2 -2
- package/dist/chunk-81nqrcn0.js +4 -0
- package/dist/chunk-82nw3942.js +2 -0
- package/dist/{chunk-d2zw2e5m.js → chunk-8adstrk5.js} +3 -3
- package/dist/chunk-8h2adg8c.js +2 -0
- package/dist/{chunk-c2s3xx78.js → chunk-8h8pf1cj.js} +5 -5
- package/dist/chunk-8mxjd1ge.js +2 -0
- package/dist/{chunk-0v5dpk7r.js → chunk-8rx2v7zj.js} +1 -1
- package/dist/chunk-8scw1bes.js +4 -0
- package/dist/{chunk-w5m8xrs4.js → chunk-8xcg2dqy.js} +2 -2
- package/dist/{chunk-zydg3wgt.js → chunk-99kt56fn.js} +2 -2
- package/dist/chunk-9h1kq4hv.js +2 -0
- package/dist/chunk-9kzk7zyy.js +2 -0
- package/dist/chunk-9rpw3gqx.js +2 -0
- package/dist/{chunk-0gq32mfe.js → chunk-a0jyh65n.js} +5 -5
- package/dist/chunk-a6s6hvcd.js +2 -0
- package/dist/{chunk-ynvce0q6.js → chunk-ab7vh24b.js} +5 -5
- package/dist/{chunk-cmej3vrr.js → chunk-ah4qyrnn.js} +1 -1
- package/dist/{chunk-m08fk6ds.js → chunk-ak95401g.js} +4 -4
- package/dist/chunk-awsg50kd.js +2 -0
- package/dist/chunk-ax1xbz1k.js +2 -0
- package/dist/{chunk-ptek61ts.js → chunk-bqx3dqv1.js} +1 -1
- package/dist/{chunk-qxre7vw6.js → chunk-bvhr055w.js} +2 -2
- package/dist/chunk-bw0gkfb3.js +2 -0
- package/dist/{chunk-762z26nw.js → chunk-c9fj7t9b.js} +1 -1
- package/dist/{chunk-fh1qrp68.js → chunk-cgf2a166.js} +5 -5
- package/dist/chunk-cjb46akr.js +2 -0
- package/dist/{chunk-ee0gqprs.js → chunk-cnxf8e5p.js} +2 -2
- package/dist/{chunk-01zwbzyw.js → chunk-cwzkq9bs.js} +6 -6
- package/dist/{chunk-2cqymwe8.js → chunk-cxbp2m66.js} +4 -4
- package/dist/chunk-db2sy0f3.js +2 -0
- package/dist/chunk-dts9z53c.js +2 -0
- package/dist/chunk-eev60q15.js +2 -0
- package/dist/chunk-fe5xht52.js +2 -0
- package/dist/chunk-fqhewm3t.js +2 -0
- package/dist/chunk-g1562mcs.js +2 -0
- package/dist/chunk-g3xgcnh4.js +2 -0
- package/dist/chunk-g4dmjede.js +15 -0
- package/dist/{chunk-7rgds0w1.js → chunk-ggde5cqk.js} +34 -34
- package/dist/{chunk-rgwvqmhh.js → chunk-gkj42zq7.js} +2 -2
- package/dist/{chunk-hpm19gkn.js → chunk-gxbd7pwn.js} +3 -3
- package/dist/chunk-hgcvtfnz.js +2 -0
- package/dist/{chunk-m62a5a28.js → chunk-hhy33p5v.js} +6 -6
- package/dist/{chunk-f4c39nfh.js → chunk-j2zgh5yk.js} +2 -2
- package/dist/chunk-j338fs8k.js +2 -0
- package/dist/{chunk-0trfbqa7.js → chunk-j4afmryj.js} +4 -4
- package/dist/{chunk-vxsm8q1c.js → chunk-jjebxeee.js} +5 -5
- package/dist/{chunk-t1py7rbg.js → chunk-k4shjm8n.js} +5 -5
- package/dist/chunk-k84qkm21.js +2 -0
- package/dist/chunk-kk5cyjfs.js +3 -0
- package/dist/{chunk-vg7wfkt5.js → chunk-kp5tv8jx.js} +2 -2
- package/dist/chunk-kyd15xqj.js +2 -0
- package/dist/chunk-m5asyydz.js +2 -0
- package/dist/chunk-m5dgc757.js +2 -0
- package/dist/chunk-m6cfxjyy.js +2 -0
- package/dist/chunk-m8w4hve0.js +2 -0
- package/dist/chunk-mmh37ywa.js +2 -0
- package/dist/{chunk-v0vadrje.js → chunk-mqdnfn4h.js} +3 -3
- package/dist/chunk-ms5aj58v.js +2 -0
- package/dist/chunk-n454sydr.js +2 -0
- package/dist/{chunk-62ckway4.js → chunk-n8y0hp9b.js} +2 -2
- package/dist/chunk-nskfyvbv.js +2 -0
- package/dist/{chunk-jz7pvh7b.js → chunk-pcq6vphz.js} +2 -2
- package/dist/chunk-pt566gqb.js +2 -0
- package/dist/chunk-q0w6a9hv.js +2 -0
- package/dist/chunk-q9yhnqe5.js +2 -0
- package/dist/chunk-qtsymvxx.js +2 -0
- package/dist/chunk-rkzvmk04.js +2 -0
- package/dist/chunk-rx6a75yf.js +2 -0
- package/dist/{chunk-y36av1ac.js → chunk-s10r6hxp.js} +7 -7
- package/dist/{chunk-hh7r7zpe.js → chunk-s23ka56m.js} +10 -10
- package/dist/{chunk-zasd9166.js → chunk-sarr8kz1.js} +6 -6
- package/dist/chunk-se4b8sjc.js +2 -0
- package/dist/{chunk-1k01h1zb.js → chunk-se55qe2x.js} +1 -1
- package/dist/{chunk-0nnmk0xv.js → chunk-ss7wapbh.js} +187 -187
- package/dist/chunk-st1s30tn.js +2 -0
- package/dist/chunk-t4rgn046.js +2 -0
- package/dist/{chunk-4r2fg64t.js → chunk-t794av8e.js} +2 -2
- package/dist/{chunk-2tn3dkcy.js → chunk-t7s0pdtw.js} +3 -3
- package/dist/{chunk-v83bpj84.js → chunk-tbef3yyk.js} +4 -4
- package/dist/{chunk-fqpd0cfq.js → chunk-tdsajnjm.js} +3 -3
- package/dist/{chunk-ery19t9s.js → chunk-tr25zcf1.js} +9 -9
- package/dist/chunk-tr3e1qzf.js +2 -0
- package/dist/{chunk-amd6ey3t.js → chunk-v5rgebzz.js} +5 -5
- package/dist/chunk-v7ahbhbd.js +2 -0
- package/dist/chunk-vr4t7exr.js +2 -0
- package/dist/{chunk-2bdthb37.js → chunk-vvs75dse.js} +2 -2
- package/dist/chunk-w0vrmvh7.js +2 -0
- package/dist/{chunk-7h57dt0z.js → chunk-w6n2j62h.js} +3 -3
- package/dist/{chunk-2n5pjbw9.js → chunk-wkc34drs.js} +2 -2
- package/dist/{chunk-88px183j.js → chunk-x0mc2kv0.js} +4 -4
- package/dist/{chunk-8efg91ak.js → chunk-xnjcmhs5.js} +2 -2
- package/dist/chunk-yed9c66h.js +2 -0
- package/dist/{chunk-s0xpe9cj.js → chunk-ykqq6cw0.js} +11 -11
- package/dist/chunk-zb5p05v4.js +2 -0
- package/dist/{chunk-544e2jvd.js → chunk-zkg0rbmp.js} +6 -6
- package/dist/{chunk-1sdtg9np.js → chunk-zpcxx4pp.js} +2 -2
- package/dist/cli.js +19 -19
- package/dist/client-module-registry.js +6 -3
- package/dist/client-script-bundler.d.ts +10 -0
- package/dist/client-script-bundler.js +3 -3
- package/dist/craft-entry.js +2 -2
- package/dist/craft.js +2 -2
- package/dist/pwa.js +3 -3
- package/dist/ssg.js +3 -3
- package/package.json +5 -5
- package/dist/chunk-01jqpwpv.js +0 -2
- package/dist/chunk-02e24cym.js +0 -2
- package/dist/chunk-1mfggkga.js +0 -2
- package/dist/chunk-22972c8b.js +0 -2
- package/dist/chunk-2hddf9pn.js +0 -2
- package/dist/chunk-2k0x6yc2.js +0 -2
- package/dist/chunk-3ar8gdyd.js +0 -2
- package/dist/chunk-3q2z7cts.js +0 -2
- package/dist/chunk-4ahzhnfw.js +0 -2
- package/dist/chunk-4qv9me8f.js +0 -2
- package/dist/chunk-4rj1y6j2.js +0 -2
- package/dist/chunk-50xcmvad.js +0 -2
- package/dist/chunk-5127n7rc.js +0 -2
- package/dist/chunk-5564cka1.js +0 -2
- package/dist/chunk-58n62bxb.js +0 -3
- package/dist/chunk-60935ydz.js +0 -2
- package/dist/chunk-63kwa14j.js +0 -2
- package/dist/chunk-6876vczs.js +0 -2
- package/dist/chunk-7fjatz47.js +0 -2
- package/dist/chunk-7j1cpa9d.js +0 -2
- package/dist/chunk-7tt84v1y.js +0 -3
- package/dist/chunk-9mnfma5c.js +0 -2
- package/dist/chunk-9zx4p42m.js +0 -2
- package/dist/chunk-a32kqsff.js +0 -2
- package/dist/chunk-b772p9d9.js +0 -2
- package/dist/chunk-cfk3skk4.js +0 -2
- package/dist/chunk-dv4g1506.js +0 -2
- package/dist/chunk-ehwzvs2d.js +0 -2
- package/dist/chunk-gp4x34wk.js +0 -2
- package/dist/chunk-h4g5m641.js +0 -2
- package/dist/chunk-ha5z623e.js +0 -2
- package/dist/chunk-hqzq3a61.js +0 -2
- package/dist/chunk-hvx3pc13.js +0 -2
- package/dist/chunk-j9aberz0.js +0 -2
- package/dist/chunk-j9qcrwbg.js +0 -2
- package/dist/chunk-jmabeqfq.js +0 -2
- package/dist/chunk-jqppdrhr.js +0 -2
- package/dist/chunk-k2vcwa7m.js +0 -2
- package/dist/chunk-kw1p1140.js +0 -2
- package/dist/chunk-mhfwdyeg.js +0 -2
- package/dist/chunk-pypadz0a.js +0 -2
- package/dist/chunk-q7qchkvk.js +0 -2
- package/dist/chunk-qyq7j8hp.js +0 -2
- package/dist/chunk-r7a26zjz.js +0 -2
- package/dist/chunk-rcez4f14.js +0 -2
- package/dist/chunk-rz7xew70.js +0 -2
- package/dist/chunk-s6jh1701.js +0 -2
- package/dist/chunk-sjha9z8e.js +0 -2
- package/dist/chunk-tg39b5t1.js +0 -2
- package/dist/chunk-tmbytj7c.js +0 -2
- package/dist/chunk-vqdqf0cp.js +0 -17
- package/dist/chunk-w1vvzdp0.js +0 -2
- package/dist/chunk-wsftz3vj.js +0 -2
- package/dist/chunk-xf4s69fr.js +0 -4
- package/dist/chunk-xjb0yzvq.js +0 -2
- package/dist/chunk-xq4x3cy0.js +0 -2
- package/dist/chunk-ydjfar14.js +0 -2
- package/dist/chunk-ymk7eswy.js +0 -2
- package/dist/chunk-yq2mckms.js +0 -2
- package/dist/chunk-z990jtmx.js +0 -2
- package/dist/chunk-zak38e27.js +0 -2
- package/dist/chunk-zmcvjkpv.js +0 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-ynvce0q6.js";import"./chunk-2n5pjbw9.js";import"./chunk-88px183j.js";import{or,Ds,Ri}from"./chunk-2jbyks2t.js";import"./chunk-pf0d8y9n.js";import{Nn,Fn,n,o}from"./chunk-0nnmk0xv.js";import"./chunk-v83bpj84.js";import"./chunk-y36av1ac.js";import"./chunk-zydg3wgt.js";import"./chunk-w5m8xrs4.js";import"./chunk-jz7pvh7b.js";import"./chunk-0trfbqa7.js";import{Pe}from"./chunk-01zwbzyw.js";import"./chunk-d2zw2e5m.js";import{existsSync as M,mkdirSync as dt,readFileSync as ft}from"fs";import T from"path";import{existsSync as at,mkdirSync as ct}from"fs";import k from"path";import{existsSync as it}from"fs";import E from"path";var be="data-stx-b",H=new Set(Ds),Se=new Set(or);function xe(t){if(t==="ref"||t==="data-stx-ref")return"ref";if(t.startsWith("::"))return null;if(t.startsWith("@bind:")||t.startsWith("x-bind:"))return"attr";if(t.startsWith("@")||t.startsWith(":")){let e=t.slice(1).split(".")[0];if(H.has(e))return e==="if"?"if":e;if(e==="for"||e==="else"||e==="else-if"||e==="elseif")return"for";if(Ri(e))return"event";if(t.startsWith("@"))return"event";return"attr"}if(t.startsWith("x-")){let e=t.split(".")[0];if(!Se.has(e))return"attr";let r=e.slice(2);if(r==="cloak"||r==="data"||r==="bind")return null;if(r==="tooltip"||r==="tooltip-position")return null;return H.has(r)?r==="if"?"if":r:"attr"}return null}function we(t){let e=[];for(let[r,i]of t){let s=xe(r);if(s)e.push({name:r,value:i,kind:s})}return e}var ye=/<([a-z][\w-]*)((?:\s+[^\s"'=<>/]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s"'=<>`]+))?)*)\s*\/?>/gi,X=/([^\s"'=<>/]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'=<>`]+)))?/g;function G(t){let e=[],r=0;return{html:t.replace(ye,(s,a,l)=>{if(!l||!/[:@]|x-/.test(l))return s;let u=[];X.lastIndex=0;for(let p=X.exec(l);p;p=X.exec(l))u.push([p[1],p[2]??p[3]??p[4]??""]);let d=we(u);if(!d.length)return s;let g={id:r++,bindings:d};if(d.some((p)=>p.kind==="for"))g.template=!0;e.push(g);let c=s.endsWith("/>");return`${s.slice(0,c?-2:-1).trimEnd()} ${be}="${g.id}"${c?"/>":">"}`}),manifest:{entries:e}}}var Te=["accessibilityHint","accessibilityLabel","accessibilityRole","accessibilityState","accessibilityValue","activeOpacity","alwaysBounceHorizontal","alwaysBounceVertical","animationType","autoCapitalize","autoCorrect","autoFocus","blurRadius","contentContainerStyle","defaultSource","defaultValue","ellipsizeMode","fadeDuration","hidesWhenStopped","hitSlop","imageStyle","initialNumToRender","iosBackgroundColor","keyboardDismissMode","keyboardShouldPersistTaps","keyboardType","keyboardVerticalOffset","keyExtractor","maxLength","maximumTrackTintColor","maximumValue","maxToRenderPerBatch","minimumTrackTintColor","minimumValue","numberOfLines","numColumns","onEndReachedThreshold","pagingEnabled","placeholderTextColor","pointerEvents","presentationStyle","pressRetentionOffset","progressBackgroundColor","progressViewOffset","refreshControl","resizeMode","returnKeyType","scrollEnabled","scrollTarget","secureTextEntry","selectedValue","selectionColor","showsHorizontalScrollIndicator","showsVerticalScrollIndicator","statusBarTranslucent","stickyHeaderIndices","testID","thumbColor","thumbTintColor","titleColor","trackColor","underlayColor","windowSize"],ve=new Map(Te.map((t)=>[q(t),t]));function q(t){return t.replace(/[-_]/g,"").toLowerCase()}function O(t){return ve.get(q(t))??t}var ke={view:"View",text:"Text",button:"Button",image:"Image",img:"Image",input:"TextInput",textarea:"TextInput",scroll:"ScrollView",scrollview:"ScrollView",list:"FlatList",flatlist:"FlatList",modal:"Modal",switch:"Switch",slider:"Slider",picker:"Picker",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 U(t){return ke[t.toLowerCase()]||t}var Re={activity:"waveform.path.ecg","alarm-clock":"alarm","alert-circle":"exclamationmark.circle","alert-triangle":"exclamationmark.triangle",archive:"archivebox","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","badge-check":"checkmark.seal","bar-chart":"chart.bar","bar-chart-2":"chart.bar","bar-chart-3":"chart.bar",battery:"battery.100",bed:"bed.double",bell:"bell","bell-off":"bell.slash",bike:"figure.outdoor.cycle",bluetooth:"antenna.radiowaves.left.and.right",book:"book","book-open":"book",bookmark:"bookmark",brain:"brain",calendar:"calendar","calendar-check":"calendar.badge.checkmark","calendar-clock":"calendar.badge.clock","calendar-days":"calendar","calendar-plus":"calendar.badge.plus","calendar-range":"calendar","calendar-sync":"arrow.triangle.2.circlepath",camera:"camera","chart-bar":"chart.bar","chart-line":"chart.xyaxis.line",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-check":"checkmark.circle","circle-check-big":"checkmark.circle","circle-help":"questionmark.circle","circle-play":"play.circle","circle-plus":"plus.circle","circle-user":"person.crop.circle","circle-x":"xmark.circle",clapperboard:"film",clipboard:"clipboard","clipboard-list":"list.clipboard",clock:"clock",cloud:"cloud","cloud-off":"icloud.slash",coffee:"cup.and.saucer",copy:"doc.on.doc","credit-card":"creditcard",download:"arrow.down.circle",droplet:"drop",droplets:"drop",dumbbell:"dumbbell",edit:"pencil","external-link":"arrow.up.right.square",eye:"eye","eye-off":"eye.slash",file:"doc","file-text":"doc.text",filter:"line.3.horizontal.decrease",flag:"flag",flame:"flame","flower-2":"camera.macro",footprints:"figure.run",gauge:"gauge",gift:"gift",globe:"globe","graduation-cap":"graduationcap","grip-vertical":"line.3.horizontal",heart:"heart","heart-pulse":"heart.text.square","help-circle":"questionmark.circle",history:"clock.arrow.circlepath",home:"house",house:"house",image:"photo",inbox:"tray",info:"info.circle",layers:"square.3.layers.3d","layout-grid":"square.grid.2x2",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",menu:"line.3.horizontal","message-circle":"bubble.left","message-square":"text.bubble","message-square-quote":"quote.bubble",mic:"mic",minus:"minus",moon:"moon","more-horizontal":"ellipsis","more-vertical":"ellipsis",mountain:"mountain.2",music:"music.note",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","refresh-cw":"arrow.clockwise",repeat:"repeat","rotate-ccw":"arrow.counterclockwise",route:"point.topleft.down.to.point.bottomright.curvepath",ruler:"ruler",sailboat:"sailboat",satellite:"antenna.radiowaves.left.and.right",save:"square.and.arrow.down",scale:"scalemass",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","skip-back":"backward.end","skip-forward":"forward.end",sliders:"slider.horizontal.3","sliders-horizontal":"slider.horizontal.3",smartphone:"iphone",snowflake:"snowflake",sparkles:"sparkles",square:"square",star:"star",stopwatch:"stopwatch",store:"storefront",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",trophy:"trophy",unlink:"personalhotspot.slash",upload:"arrow.up.circle",user:"person","user-plus":"person.badge.plus","user-round":"person",users:"person.2",video:"video","volume-2":"speaker.wave.2",watch:"applewatch",waves:"figure.pool.swim",weight:"scalemass",wifi:"wifi","wifi-off":"wifi.slash",wind:"wind",x:"xmark","x-circle":"xmark.circle",zap:"bolt"};function J(t,e=!1){let r=String(t??"").trim();if(!r)return{symbol:"circle",known:!1};if(e)return{symbol:r,known:!0};let i=/^i-([a-z0-9]+)-(.+)$/.exec(r)??/^([a-z0-9]+):(.+)$/.exec(r),s=i?i[1]:"lucide",a=i?i[2]:r;if(s==="lucide"){let l=Re[a];if(l)return{symbol:l,iconify:`i-lucide-${a}`,known:!0};if(!i&&r.includes("."))return{symbol:r,known:!0}}return{symbol:"circle",iconify:i?r:`i-lucide-${a}`,known:!1}}var Ce={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"}},Z={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},Y={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},y={none:0,sm:2,DEFAULT:4,md:6,lg:8,xl:12,"2xl":16,"3xl":24,full:9999};function N(t){let e=t.lastIndexOf("/");if(e>0&&!t.endsWith("]")){let i=N(t.slice(0,e)),s=t.slice(e+1),a=/^\[(.+)\]$/.test(s)?Number.parseFloat(s.slice(1,-1))*(s.includes("%")?1:100):Number.parseFloat(s);if(!i||!Number.isFinite(a))return;return _e(i,a/100)}if(t==="transparent")return"transparent";if(t==="current")return"currentColor";if(t==="black")return"#000000";if(t==="white")return"#ffffff";let r=t.split("-");if(r.length===2){let[i,s]=r,a=Ce[i];if(a&&typeof a==="object")return a[s]}if(t.startsWith("[")&&t.endsWith("]")){let i=t.slice(1,-1);return/^(#|rgba?\(|hsla?\(|[a-z]+$)/i.test(i)?i:void 0}return}function _e(t,e){if(t==="transparent")return t;let r=t.startsWith("#")?t.slice(1):"";if(r.length===3)r=r.split("").map((s)=>s+s).join("");if(r.length===8)r=r.slice(0,6);if(r.length!==6)return;let i=Math.round(Math.min(1,Math.max(0,e))*255);return`#${r}${i.toString(16).padStart(2,"0")}`}function z(t,e=16){if(!t.startsWith("[")||!t.endsWith("]"))return;let r=t.slice(1,-1),i=Number.parseFloat(r);if(!Number.isFinite(i))return;if(r.endsWith("rem"))return i*16;if(r.endsWith("em"))return i*e;return i}function h(t){if(t.startsWith("[")&&t.endsWith("]")){let e=t.slice(1,-1),r=e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e);return Number.isFinite(r)?r:void 0}return Z[t]}var Ee={flex:(t,e)=>(e.display="flex",!0),hidden:(t,e)=>(e.display="none",!0),grid:(t,e)=>(e.display="grid",!0),"flex-row":(t,e)=>(e.flexDirection="row",!0),"flex-col":(t,e)=>(e.flexDirection="column",!0),"flex-row-reverse":(t,e)=>(e.flexDirection="row-reverse",!0),"flex-col-reverse":(t,e)=>(e.flexDirection="column-reverse",!0),"flex-wrap":(t,e)=>(e.flexWrap="wrap",!0),"flex-nowrap":(t,e)=>(e.flexWrap="nowrap",!0),"flex-wrap-reverse":(t,e)=>(e.flexWrap="wrap-reverse",!0),"flex-1":(t,e)=>(e.flex=1,e.flexGrow=1,e.flexShrink=1,e.flexBasis=0,!0),"flex-auto":(t,e)=>(e.flexGrow=1,e.flexShrink=1,!0),"flex-initial":(t,e)=>(e.flexGrow=0,e.flexShrink=1,!0),"flex-none":(t,e)=>(e.flexGrow=0,e.flexShrink=0,!0),grow:(t,e)=>(e.flexGrow=1,!0),"grow-0":(t,e)=>(e.flexGrow=0,!0),shrink:(t,e)=>(e.flexShrink=1,!0),"shrink-0":(t,e)=>(e.flexShrink=0,!0),"justify-start":(t,e)=>(e.justifyContent="flex-start",!0),"justify-center":(t,e)=>(e.justifyContent="center",!0),"justify-end":(t,e)=>(e.justifyContent="flex-end",!0),"justify-between":(t,e)=>(e.justifyContent="space-between",!0),"justify-around":(t,e)=>(e.justifyContent="space-around",!0),"justify-evenly":(t,e)=>(e.justifyContent="space-evenly",!0),"items-start":(t,e)=>(e.alignItems="flex-start",!0),"items-center":(t,e)=>(e.alignItems="center",!0),"items-end":(t,e)=>(e.alignItems="flex-end",!0),"items-stretch":(t,e)=>(e.alignItems="stretch",!0),"items-baseline":(t,e)=>(e.alignItems="baseline",!0),"self-auto":(t,e)=>(e.alignSelf="auto",!0),"self-start":(t,e)=>(e.alignSelf="flex-start",!0),"self-center":(t,e)=>(e.alignSelf="center",!0),"self-end":(t,e)=>(e.alignSelf="flex-end",!0),"self-stretch":(t,e)=>(e.alignSelf="stretch",!0),"self-baseline":(t,e)=>(e.alignSelf="baseline",!0),"min-w-0":(t,e)=>(e.minWidth=0,!0),"aspect-square":(t,e)=>(e.aspectRatio=1,!0),"inset-0":(t,e)=>(e.top=0,e.right=0,e.bottom=0,e.left=0,!0),"tracking-tighter":(t,e)=>(e.letterSpacing=-0.8,!0),"tracking-tight":(t,e)=>(e.letterSpacing=-0.4,!0),"tracking-normal":(t,e)=>(e.letterSpacing=0,!0),"tracking-wide":(t,e)=>(e.letterSpacing=0.4,!0),"tracking-wider":(t,e)=>(e.letterSpacing=0.8,!0),"tracking-widest":(t,e)=>(e.letterSpacing=1.6,!0),"tabular-nums":()=>!0,block:()=>!0,"inline-flex":(t,e)=>(e.display="flex",!0),truncate:()=>!0,relative:(t,e)=>(e.position="relative",!0),absolute:(t,e)=>(e.position="absolute",!0),"overflow-visible":(t,e)=>(e.overflow="visible",!0),"overflow-hidden":(t,e)=>(e.overflow="hidden",!0),"overflow-scroll":(t,e)=>(e.overflow="scroll",!0),"font-thin":(t,e)=>(e.fontWeight="100",!0),"font-extralight":(t,e)=>(e.fontWeight="200",!0),"font-light":(t,e)=>(e.fontWeight="300",!0),"font-normal":(t,e)=>(e.fontWeight="400",!0),"font-medium":(t,e)=>(e.fontWeight="500",!0),"font-semibold":(t,e)=>(e.fontWeight="600",!0),"font-bold":(t,e)=>(e.fontWeight="bold",!0),"font-extrabold":(t,e)=>(e.fontWeight="800",!0),"font-black":(t,e)=>(e.fontWeight="900",!0),italic:(t,e)=>(e.fontStyle="italic",!0),"not-italic":(t,e)=>(e.fontStyle="normal",!0),"text-left":(t,e)=>(e.textAlign="left",!0),"text-center":(t,e)=>(e.textAlign="center",!0),"text-right":(t,e)=>(e.textAlign="right",!0),"text-justify":(t,e)=>(e.textAlign="justify",!0),uppercase:(t,e)=>(e.textTransform="uppercase",!0),lowercase:(t,e)=>(e.textTransform="lowercase",!0),capitalize:(t,e)=>(e.textTransform="capitalize",!0),"normal-case":(t,e)=>(e.textTransform="none",!0),underline:(t,e)=>(e.textDecorationLine="underline",!0),"line-through":(t,e)=>(e.textDecorationLine="line-through",!0),"no-underline":(t,e)=>(e.textDecorationLine="none",!0)};function Ne(t,e){if(!t.startsWith("bg-"))return!1;let r=t.slice(3),i=N(r);if(i)return e.backgroundColor=i,!0;return!1}function We(t,e){if(!t.startsWith("text-"))return!1;let r=t.slice(5);if(Y[r])return e.fontSize=Y[r],!0;if(r.startsWith("[")&&r.endsWith("]")){let s=r.slice(1,-1);if(/^-?[\d.]+(?:px|r?em)?$/.test(s)){let a=s.endsWith("rem")||s.endsWith("em")?Number.parseFloat(s)*16:Number.parseFloat(s);if(Number.isFinite(a))return e.fontSize=a,!0}}let i=N(r);if(i)return e.color=i,!0;return!1}function Be(t,e){if(t.startsWith("p-")){let r=h(t.slice(2));if(r!==void 0)return e.padding=r,!0}if(t.startsWith("px-")){let r=h(t.slice(3));if(r!==void 0)return e.paddingHorizontal=r,!0}if(t.startsWith("py-")){let r=h(t.slice(3));if(r!==void 0)return e.paddingVertical=r,!0}if(t.startsWith("pt-")){let r=h(t.slice(3));if(r!==void 0)return e.paddingTop=r,!0}if(t.startsWith("pr-")){let r=h(t.slice(3));if(r!==void 0)return e.paddingRight=r,!0}if(t.startsWith("pb-")){let r=h(t.slice(3));if(r!==void 0)return e.paddingBottom=r,!0}if(t.startsWith("pl-")){let r=h(t.slice(3));if(r!==void 0)return e.paddingLeft=r,!0}return!1}function Ie(t,e){if(t.startsWith("m-")){let r=h(t.slice(2));if(r!==void 0)return e.margin=r,!0}if(t.startsWith("mx-")){let r=h(t.slice(3));if(r!==void 0)return e.marginHorizontal=r,!0}if(t.startsWith("my-")){let r=h(t.slice(3));if(r!==void 0)return e.marginVertical=r,!0}if(t.startsWith("mt-")){let r=h(t.slice(3));if(r!==void 0)return e.marginTop=r,!0}if(t.startsWith("mr-")){let r=h(t.slice(3));if(r!==void 0)return e.marginRight=r,!0}if(t.startsWith("mb-")){let r=h(t.slice(3));if(r!==void 0)return e.marginBottom=r,!0}if(t.startsWith("ml-")){let r=h(t.slice(3));if(r!==void 0)return e.marginLeft=r,!0}return!1}function Le(t,e){if(!t.startsWith("w-"))return!1;let r=t.slice(2);if(r==="full")return e.width="100%",!0;if(r==="screen")return e.width="100%",!0;if(r==="auto")return e.width="auto",!0;if(r.includes("/")){let[s,a]=r.split("/"),l=Number.parseInt(s)/Number.parseInt(a)*100;return e.width=`${l}%`,!0}let i=h(r);if(i!==void 0)return e.width=i,!0;return!1}function De(t,e){if(!t.startsWith("h-"))return!1;let r=t.slice(2);if(r==="full")return e.height="100%",!0;if(r==="screen")return e.height="100%",!0;if(r==="auto")return e.height="auto",!0;let i=h(r);if(i!==void 0)return e.height=i,!0;return!1}function Xe(t,e){if(!t.startsWith("rounded"))return!1;if(t==="rounded")return e.borderRadius=y.DEFAULT,!0;let r=t.slice(8);if(r==="")return!1;let i=/^(?:(t|b|l|r)-)?(\[[^\]]+\])$/.exec(r);if(i){let a=z(i[2]);if(a===void 0)return!1;let l={t:["borderTopLeftRadius","borderTopRightRadius"],b:["borderBottomLeftRadius","borderBottomRightRadius"],l:["borderTopLeftRadius","borderBottomLeftRadius"],r:["borderTopRightRadius","borderBottomRightRadius"]};for(let u of i[1]?l[i[1]]:["borderRadius"])e[u]=a;return!0}if(r.startsWith("t-")){let a=y[r.slice(2)]??y.DEFAULT;return e.borderTopLeftRadius=a,e.borderTopRightRadius=a,!0}if(r.startsWith("b-")){let a=y[r.slice(2)]??y.DEFAULT;return e.borderBottomLeftRadius=a,e.borderBottomRightRadius=a,!0}if(r.startsWith("l-")){let a=y[r.slice(2)]??y.DEFAULT;return e.borderTopLeftRadius=a,e.borderBottomLeftRadius=a,!0}if(r.startsWith("r-")){let a=y[r.slice(2)]??y.DEFAULT;return e.borderTopRightRadius=a,e.borderBottomRightRadius=a,!0}let s=y[r];if(s!==void 0)return e.borderRadius=s,!0;return!1}function Oe(t,e){if(!t.startsWith("border"))return!1;if(t==="border")return e.borderWidth=1,!0;let r=t.match(/^border-(\d+)$/);if(r)return e.borderWidth=Number.parseInt(r[1]),!0;let i=t.match(/^border-(t|r|b|l)-?(\d*)$/);if(i){let[,s,a]=i,l=a?Number.parseInt(a):1;switch(s){case"t":e.borderTopWidth=l;break;case"r":e.borderRightWidth=l;break;case"b":e.borderBottomWidth=l;break;case"l":e.borderLeftWidth=l;break}return!0}return!1}function $e(t,e){if(!t.startsWith("border-"))return!1;let r=t.slice(7),i=N(r);if(i)return e.borderColor=i,!0;return!1}function ze(t,e){if(!t.startsWith("opacity-"))return!1;let r=Number.parseInt(t.slice(8));if(!Number.isNaN(r))return e.opacity=r/100,!0;return!1}function Ae(t,e){if(t.startsWith("tracking-[")){let r=z(t.slice(9),typeof e.fontSize==="number"?e.fontSize:16);if(r===void 0)return!1;return e.letterSpacing=r,!0}if(t.startsWith("leading-")){let r=t.slice(8),i=typeof e.fontSize==="number"?e.fontSize:16,s={none:1,tight:1.25,snug:1.375,normal:1.5,relaxed:1.625,loose:2},a=r.startsWith("[")?/^\[[\d.]+\]$/.test(r)?Number.parseFloat(r.slice(1,-1))*i:z(r,i):s[r]!==void 0?s[r]*i:Z[r];if(a===void 0||!Number.isFinite(a))return!1;return e.lineHeight=a,!0}return!1}function Ve(t,e){let r=/^grid-cols-(\d+)$/.exec(t);if(!r)return!1;return e.gridColumns=Number(r[1]),!0}function Fe(t,e){if(!t.startsWith("size-"))return!1;let r=t.slice(5),i=r==="full"?"100%":h(r);if(i===void 0)return!1;return e.width=i,e.height=i,!0}function je(t,e){let r=/^(-?)(top|right|bottom|left)-(.+)$/.exec(t);if(!r)return!1;let i=r[3]==="full"?"100%":h(r[3]);if(i===void 0)return!1;return e[r[2]]=typeof i==="number"&&r[1]?-i:i,!0}function Me(t,e){let r=/^space-(x|y)-(.+)$/.exec(t);if(!r)return!1;let i=h(r[2]);if(i===void 0)return!1;return e.gap=i,!0}function He(t,e){if(t.startsWith("gap-")){let r=h(t.slice(4));if(r!==void 0)return e.gap=r,!0}if(t.startsWith("gap-x-")){let r=h(t.slice(6));if(r!==void 0)return e.columnGap=r,!0}if(t.startsWith("gap-y-")){let r=h(t.slice(6));if(r!==void 0)return e.rowGap=r,!0}return!1}function A(t){let e=[],r=[],i=[];function s(d,g){let c=/^(text|bg|border|ring)-([a-z-]+)(\/[^\s]+)?$/.exec(d),f=c&&Nn[c[2]];return f?`${c[1]}-${f[g]}${c[3]||""}`:d}for(let d of t.split(/\s+/).filter(Boolean))if(d.startsWith("dark:"))r.push(s(d.slice(5),"dark"));else if(!d.includes(":")||d.startsWith("[")){if(e.push(s(d,"light")),s(d,"dark")!==d)i.push(s(d,"dark"))}let a=[],u={style:K(e.join(" "),a),unknown:a};if(r.length||i.length)u.dark=K([...i,...r].join(" "),a);for(let d of e){if(d==="truncate")u.numberOfLines=1;let g=/^line-clamp-(\d+)$/.exec(d);if(g)u.numberOfLines=Number(g[1]);if(!u.icon&&/^i-[a-z0-9]+-[a-z0-9-]+$/.test(d))u.icon=d}return u.unknown=a.filter((d)=>!/^line-clamp-\d+$/.test(d)),u}function K(t,e){let r={},i=t.split(/\s+/).filter(Boolean);for(let s of i){if(/^i-[a-z0-9]+-/.test(s))continue;let a=Ee[s];if(a){a("",r);continue}if(Ne(s,r))continue;if(We(s,r))continue;if(Be(s,r))continue;if(Ie(s,r))continue;if(Le(s,r))continue;if(De(s,r))continue;if(Xe(s,r))continue;if(Oe(s,r))continue;if($e(s,r))continue;if(ze(s,r))continue;if(He(s,r))continue;if(Ae(s,r))continue;if(Fe(s,r))continue;if(Ve(s,r))continue;if(je(s,r))continue;if(Me(s,r))continue;if(e?.push(s),typeof process<"u"&&process.env?.NODE_ENV==="development")console.warn(`[STX Native] Unknown Headwind class: ${s}`)}return r}function W(t,e={},r={},i={},s=[]){return{type:t,props:e,style:r,events:i,children:s}}function Q(t,e,r={}){return{version:"1.0.0",root:t,script:e,meta:{source:r.source||"unknown",compiledAt:r.compiledAt||Date.now(),headwindConfig:r.headwindConfig}}}var ee=new Set(["script","style","head","meta","link","title","base","noscript","svg"]),te=new Set(["template","body","html","main","fragment"]),B=new Set(["svg"]),Ge={click:"onPress",press:"onPress","press-in":"onPressIn",pressin:"onPressIn","press-out":"onPressOut",pressout:"onPressOut",longpress:"onLongPress",contextmenu:"onLongPress",input:"onChangeText",change:"onValueChange","value-change":"onValueChange",valuechange:"onValueChange",focus:"onFocus",focusin:"onFocus",blur:"onBlur",focusout:"onBlur",submit:"onSubmitEditing","submit-editing":"onSubmitEditing",submitediting:"onSubmitEditing","end-editing":"onEndEditing",endediting:"onEndEditing",scroll:"onScroll",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"},qe=new Set(["onBlur","onChangeText","onDismiss","onEndEditing","onEndReached","onError","onFocus","onLayout","onLoad","onLoadEnd","onLoadStart","onLongPress","onPress","onPressIn","onPressOut","onRequestClose","onRefresh","onScroll","onShow","onSlidingComplete","onSubmitEditing","onValueChange"]),V=new Set(["display","gridColumns","gridTemplateColumns","gridAutoRows","flex","flexGrow","flexShrink","flexBasis","flexDirection","flexWrap","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","tintColor","transform","overflow"]),Ue=new Set(["gridColumns","gridAutoRows","flex","flexGrow","flexShrink","zIndex","aspectRatio","gap","rowGap","columnGap","borderWidth","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","opacity","shadowOpacity","shadowRadius","elevation","fontSize","lineHeight","letterSpacing"]),Je=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"]),re=new Set(["View","ScrollView","SafeAreaView","KeyboardAvoidingView","Text","TextInput","Button","TouchableOpacity","TouchableHighlight","Pressable","Icon","Image","ImageBackground","FlatList","SectionList","Switch","Slider","Picker","DatePicker","Modal","ActivityIndicator","StatusBar","RefreshControl"]),ne=new Set(["View","SafeAreaView","ScrollView","KeyboardAvoidingView"]),Ye={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:" ","#39":"'","#x27":"'"};function _(t){return t.replace(/&(#x?[0-9a-f]+|\w+);/gi,(e,r)=>{let i=Ye[r.toLowerCase()];if(i!==void 0)return i;if(r[0]==="#"){let s=r[1]==="x"||r[1]==="X"?Number.parseInt(r.slice(2),16):Number.parseInt(r.slice(1),10);return Number.isFinite(s)?String.fromCodePoint(s):e}return e})}function ie(t){return t.replace(/-([a-z])/g,(e,r)=>r.toUpperCase())}function oe(t){let e=/^(-?[\d.]+)px$/.exec(t);if(e)return Number.parseFloat(e[1]);let r=/^(-?[\d.]+)r?em$/.exec(t);if(r)return Number.parseFloat(r[1])*16;if(/^-?[\d.]+$/.test(t))return Number.parseFloat(t);return t}function Ke(t,e,r){let i={},s={},a={},l="",u={};for(let[g,c]of e){let f=g.toLowerCase();if(f==="class"||f==="classname"){l=l?`${l} ${c}`:c;continue}if(f==="style"){u={...u,...Ze(t,c,r)};continue}if(f.startsWith(":")||f.startsWith("x-")&&f!=="x-cloak"){a[f.startsWith(":")?f.slice(1):f.slice(2)]=_(c);continue}if(f==="x-cloak")continue;if(f.startsWith("@")||f.startsWith("v-on:")){let b=f.startsWith("@")?f.slice(1):f.slice(5),[m]=b.split("."),x=Ge[m]??(m.startsWith("on")?m:"");if(!x||!qe.has(x)){r.push({kind:"unread-event",tag:t,name:g});continue}s[x]=_(c);continue}if(f==="key"){i.key=c;continue}let p=_(c);try{i[O(g)]=JSON.parse(p)}catch{i[O(g)]=p}}let d={...l?A(l).style:{},...u};return{props:i,style:d,events:s,bindings:a,classes:l,inline:u}}function se(t,e){if(Ue.has(t))return!1;if(Je.has(t))return/^-?[\d.]+%$/.test(e);return!0}function Ze(t,e,r){let i={},s=_(e);try{let a=JSON.parse(s);if(a&&typeof a==="object"&&!Array.isArray(a)){for(let[l,u]of Object.entries(a)){let d=V.has(l)?l:ie(l.trim().toLowerCase());if(!V.has(d)){r.push({kind:"unknown-style",tag:t,name:d});continue}if(u===null||u===void 0)continue;let g=typeof u==="string"?oe(u):u;if(typeof g!=="string"&&typeof g!=="number")continue;if(typeof g==="string"&&!se(d,g)){r.push({kind:"non-numeric-style",tag:t,name:d});continue}i[d]=g}return i}}catch{}for(let a of s.split(";")){let l=a.indexOf(":");if(l===-1)continue;let u=ie(a.slice(0,l).trim().toLowerCase()),d=a.slice(l+1).trim();if(!u||!d)continue;if(!V.has(u)){r.push({kind:"unknown-style",tag:t,name:u});continue}let g=oe(d);if(typeof g==="string"&&!se(u,g)){r.push({kind:"non-numeric-style",tag:t,name:u});continue}i[u]=g}return i}function ae(t){return t.children.map((e)=>typeof e==="string"?e:ae(e)).join("").replace(/\s+/g," ").trim()}function Qe(t,e){let r=t.node,i=r.children.filter((a)=>typeof a!=="string"),s=r.children.filter((a)=>typeof a==="string").join("").trim();if(ne.has(r.type)&&i.length===0&&s)return r.type="Text",r.children=[s],r;if(r.type==="Text"&&i.length>0){let a=ae(r);return e.push({kind:"flattened-text",tag:t.tag}),r.children=a?[a]:[],r}if(ne.has(r.type)&&i.length>0)r.children=i;return r}async function et(t,e={}){let r=[],i=[],s=[],a=new Set;function l(c){let f=s[s.length-1];if(!f)i.push(c);else if(!f.dropped)f.node.children.push(c)}function u(c){if(c.node.bindings&&Object.keys(c.node.bindings).length>0){let p=c.node.children,b=p.filter((x)=>typeof x!=="string"),m=b.length===1&&b.length===p.length?b[0]:W("View",{},{},{},p);if(m.bindings={...c.node.bindings,...m.bindings},m.bindingId===void 0&&c.node.bindingId!==void 0)m.bindingId=c.node.bindingId;l(m);return}let f=s[s.length-1];for(let p of c.node.children){if(typeof p==="string"){if(f&&!f.dropped)f.node.children.push(p);continue}if(!f)i.push(p);else if(!f.dropped)f.node.children.push(p)}}function d(c,f){let p=ee.has(c)&&!B.has(c),b=s[s.length-1]?.dropped??!1,{props:m,style:x,events:S,bindings:w,classes:v,inline:me}=p||b?{props:{},style:{},events:{},bindings:{},classes:"",inline:{}}:Ke(c,f,r),L=m["data-native"],R;if(typeof L==="string"&&re.has(L))R=L,delete m["data-native"];else R=B.has(c)?"View":U(c);if(R===c&&!re.has(R)&&!ee.has(c)&&!te.has(c)&&!a.has(c))a.add(c),r.push({kind:"unmapped-tag",tag:c});if((p||B.has(c))&&!a.has(`drop:${c}`))a.add(`drop:${c}`),r.push({kind:"dropped-subtree",tag:c});if(R==="Icon"){let he=A(v).icon;m.symbol=J(String(m.symbol||m.name||he||""),Boolean(m.symbol)).symbol}let C=W(R,m,x,S);C._inlineStyle=me;let D=m["data-stx-b"];if(typeof D==="number"&&Number.isInteger(D))C.bindingId=D;if(delete m["data-stx-b"],v)C._classes=v;if(Object.keys(w).length>0)C.bindings=w;if(typeof m.key==="string")C.key=m.key,delete m.key;return{tag:c,node:C,dropped:p||b||B.has(c),discard:p||b,unwrap:te.has(c)}}if(await new HTMLRewriter().on("*",{element(c){let f=c.tagName.toLowerCase(),p=d(f,[...c.attributes]),b=!0;try{c.onEndTag(()=>{if(s.pop(),p.discard)return;if(p.unwrap)u(p);else l(Qe(p,r))})}catch{b=!1}if(b)s.push(p);else if(!p.discard)l(p.node)},text(c){let f=s[s.length-1];if(!f||f.dropped)return;let p=_(c.text).replace(/\s+/g," ");if(!p.trim())return;f.node.children.push(p)}}).transform(new Response(t)).text(),i.length===0)throw Error(`No element to translate in the rendered output of ${e.source??"unknown"}`);return{root:i.length===1?i[0]:W("View",{},{},{},i),diagnostics:r}}async function ce(t,e={}){let{root:r,diagnostics:i}=await et(t,e),s=e.script??{exports:{},functions:[],code:""};return{document:Q(r,s,{source:e.source??"unknown"}),diagnostics:i}}var le=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,tt=/(?:^|\n)\s*(?:export\s+)?(?:async\s+)?function\s*\*?\s*([$\w]+)\s*\(/g,rt=/(?:^|\n)\s*(?:export\s+)?(?:const|let|var)\s+([$\w]+)\s*=\s*(?:async\s*)?(?:\([^)]*\)|[$\w]+)\s*=>/g,ue=/(?:^|\n)\s*(?:export\s+)?const\s+([$\w]+)\s*=\s*(-?[\d.]+|true|false|'[^']*'|"[^"]*")\s*(?=;|\n|$)/g;function P(t){let e=[];le.lastIndex=0;for(let a of t.matchAll(le)){let l=a[1]??"";if(/\bserver\b/.test(l))continue;e.push(a[2].trim())}let r=e.filter(Boolean).join(`
|
|
2
|
+
import"./chunk-ab7vh24b.js";import"./chunk-wkc34drs.js";import"./chunk-x0mc2kv0.js";import{ir,Os,Ai}from"./chunk-01nx6zcw.js";import"./chunk-pf0d8y9n.js";import{Ln,zn,n,o}from"./chunk-ss7wapbh.js";import"./chunk-tbef3yyk.js";import"./chunk-s10r6hxp.js";import"./chunk-99kt56fn.js";import"./chunk-8xcg2dqy.js";import"./chunk-pcq6vphz.js";import"./chunk-j4afmryj.js";import{Ie}from"./chunk-cwzkq9bs.js";import"./chunk-8adstrk5.js";import{existsSync as M,mkdirSync as dt,readFileSync as ft}from"fs";import T from"path";import{existsSync as at,mkdirSync as ct}from"fs";import k from"path";import{existsSync as it}from"fs";import E from"path";var be="data-stx-b",H=new Set(Os),Se=new Set(ir);function xe(t){if(t==="ref"||t==="data-stx-ref")return"ref";if(t.startsWith("::"))return null;if(t.startsWith("@bind:")||t.startsWith("x-bind:"))return"attr";if(t.startsWith("@")||t.startsWith(":")){let e=t.slice(1).split(".")[0];if(H.has(e))return e==="if"?"if":e;if(e==="for"||e==="else"||e==="else-if"||e==="elseif")return"for";if(Ai(e))return"event";if(t.startsWith("@"))return"event";return"attr"}if(t.startsWith("x-")){let e=t.split(".")[0];if(!Se.has(e))return"attr";let r=e.slice(2);if(r==="cloak"||r==="data"||r==="bind")return null;if(r==="tooltip"||r==="tooltip-position")return null;return H.has(r)?r==="if"?"if":r:"attr"}return null}function we(t){let e=[];for(let[r,i]of t){let s=xe(r);if(s)e.push({name:r,value:i,kind:s})}return e}var ye=/<([a-z][\w-]*)((?:\s+[^\s"'=<>/]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s"'=<>`]+))?)*)\s*\/?>/gi,X=/([^\s"'=<>/]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'=<>`]+)))?/g;function G(t){let e=[],r=0;return{html:t.replace(ye,(s,a,l)=>{if(!l||!/[:@]|x-/.test(l))return s;let u=[];X.lastIndex=0;for(let p=X.exec(l);p;p=X.exec(l))u.push([p[1],p[2]??p[3]??p[4]??""]);let d=we(u);if(!d.length)return s;let g={id:r++,bindings:d};if(d.some((p)=>p.kind==="for"))g.template=!0;e.push(g);let c=s.endsWith("/>");return`${s.slice(0,c?-2:-1).trimEnd()} ${be}="${g.id}"${c?"/>":">"}`}),manifest:{entries:e}}}var Te=["accessibilityHint","accessibilityLabel","accessibilityRole","accessibilityState","accessibilityValue","activeOpacity","alwaysBounceHorizontal","alwaysBounceVertical","animationType","autoCapitalize","autoCorrect","autoFocus","blurRadius","contentContainerStyle","defaultSource","defaultValue","ellipsizeMode","fadeDuration","hidesWhenStopped","hitSlop","imageStyle","initialNumToRender","iosBackgroundColor","keyboardDismissMode","keyboardShouldPersistTaps","keyboardType","keyboardVerticalOffset","keyExtractor","maxLength","maximumTrackTintColor","maximumValue","maxToRenderPerBatch","minimumTrackTintColor","minimumValue","numberOfLines","numColumns","onEndReachedThreshold","pagingEnabled","placeholderTextColor","pointerEvents","presentationStyle","pressRetentionOffset","progressBackgroundColor","progressViewOffset","refreshControl","resizeMode","returnKeyType","scrollEnabled","scrollTarget","secureTextEntry","selectedValue","selectionColor","showsHorizontalScrollIndicator","showsVerticalScrollIndicator","statusBarTranslucent","stickyHeaderIndices","testID","thumbColor","thumbTintColor","titleColor","trackColor","underlayColor","windowSize"],ve=new Map(Te.map((t)=>[q(t),t]));function q(t){return t.replace(/[-_]/g,"").toLowerCase()}function O(t){return ve.get(q(t))??t}var ke={view:"View",text:"Text",button:"Button",image:"Image",img:"Image",input:"TextInput",textarea:"TextInput",scroll:"ScrollView",scrollview:"ScrollView",list:"FlatList",flatlist:"FlatList",modal:"Modal",switch:"Switch",slider:"Slider",picker:"Picker",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 U(t){return ke[t.toLowerCase()]||t}var Re={activity:"waveform.path.ecg","alarm-clock":"alarm","alert-circle":"exclamationmark.circle","alert-triangle":"exclamationmark.triangle",archive:"archivebox","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","badge-check":"checkmark.seal","bar-chart":"chart.bar","bar-chart-2":"chart.bar","bar-chart-3":"chart.bar",battery:"battery.100",bed:"bed.double",bell:"bell","bell-off":"bell.slash",bike:"figure.outdoor.cycle",bluetooth:"antenna.radiowaves.left.and.right",book:"book","book-open":"book",bookmark:"bookmark",brain:"brain",calendar:"calendar","calendar-check":"calendar.badge.checkmark","calendar-clock":"calendar.badge.clock","calendar-days":"calendar","calendar-plus":"calendar.badge.plus","calendar-range":"calendar","calendar-sync":"arrow.triangle.2.circlepath",camera:"camera","chart-bar":"chart.bar","chart-line":"chart.xyaxis.line",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-check":"checkmark.circle","circle-check-big":"checkmark.circle","circle-help":"questionmark.circle","circle-play":"play.circle","circle-plus":"plus.circle","circle-user":"person.crop.circle","circle-x":"xmark.circle",clapperboard:"film",clipboard:"clipboard","clipboard-list":"list.clipboard",clock:"clock",cloud:"cloud","cloud-off":"icloud.slash",coffee:"cup.and.saucer",copy:"doc.on.doc","credit-card":"creditcard",download:"arrow.down.circle",droplet:"drop",droplets:"drop",dumbbell:"dumbbell",edit:"pencil","external-link":"arrow.up.right.square",eye:"eye","eye-off":"eye.slash",file:"doc","file-text":"doc.text",filter:"line.3.horizontal.decrease",flag:"flag",flame:"flame","flower-2":"camera.macro",footprints:"figure.run",gauge:"gauge",gift:"gift",globe:"globe","graduation-cap":"graduationcap","grip-vertical":"line.3.horizontal",heart:"heart","heart-pulse":"heart.text.square","help-circle":"questionmark.circle",history:"clock.arrow.circlepath",home:"house",house:"house",image:"photo",inbox:"tray",info:"info.circle",layers:"square.3.layers.3d","layout-grid":"square.grid.2x2",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",menu:"line.3.horizontal","message-circle":"bubble.left","message-square":"text.bubble","message-square-quote":"quote.bubble",mic:"mic",minus:"minus",moon:"moon","more-horizontal":"ellipsis","more-vertical":"ellipsis",mountain:"mountain.2",music:"music.note",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","refresh-cw":"arrow.clockwise",repeat:"repeat","rotate-ccw":"arrow.counterclockwise",route:"point.topleft.down.to.point.bottomright.curvepath",ruler:"ruler",sailboat:"sailboat",satellite:"antenna.radiowaves.left.and.right",save:"square.and.arrow.down",scale:"scalemass",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","skip-back":"backward.end","skip-forward":"forward.end",sliders:"slider.horizontal.3","sliders-horizontal":"slider.horizontal.3",smartphone:"iphone",snowflake:"snowflake",sparkles:"sparkles",square:"square",star:"star",stopwatch:"stopwatch",store:"storefront",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",trophy:"trophy",unlink:"personalhotspot.slash",upload:"arrow.up.circle",user:"person","user-plus":"person.badge.plus","user-round":"person",users:"person.2",video:"video","volume-2":"speaker.wave.2",watch:"applewatch",waves:"figure.pool.swim",weight:"scalemass",wifi:"wifi","wifi-off":"wifi.slash",wind:"wind",x:"xmark","x-circle":"xmark.circle",zap:"bolt"};function J(t,e=!1){let r=String(t??"").trim();if(!r)return{symbol:"circle",known:!1};if(e)return{symbol:r,known:!0};let i=/^i-([a-z0-9]+)-(.+)$/.exec(r)??/^([a-z0-9]+):(.+)$/.exec(r),s=i?i[1]:"lucide",a=i?i[2]:r;if(s==="lucide"){let l=Re[a];if(l)return{symbol:l,iconify:`i-lucide-${a}`,known:!0};if(!i&&r.includes("."))return{symbol:r,known:!0}}return{symbol:"circle",iconify:i?r:`i-lucide-${a}`,known:!1}}var Ce={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"}},Z={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},Y={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},y={none:0,sm:2,DEFAULT:4,md:6,lg:8,xl:12,"2xl":16,"3xl":24,full:9999};function N(t){let e=t.lastIndexOf("/");if(e>0&&!t.endsWith("]")){let i=N(t.slice(0,e)),s=t.slice(e+1),a=/^\[(.+)\]$/.test(s)?Number.parseFloat(s.slice(1,-1))*(s.includes("%")?1:100):Number.parseFloat(s);if(!i||!Number.isFinite(a))return;return _e(i,a/100)}if(t==="transparent")return"transparent";if(t==="current")return"currentColor";if(t==="black")return"#000000";if(t==="white")return"#ffffff";let r=t.split("-");if(r.length===2){let[i,s]=r,a=Ce[i];if(a&&typeof a==="object")return a[s]}if(t.startsWith("[")&&t.endsWith("]")){let i=t.slice(1,-1);return/^(#|rgba?\(|hsla?\(|[a-z]+$)/i.test(i)?i:void 0}return}function _e(t,e){if(t==="transparent")return t;let r=t.startsWith("#")?t.slice(1):"";if(r.length===3)r=r.split("").map((s)=>s+s).join("");if(r.length===8)r=r.slice(0,6);if(r.length!==6)return;let i=Math.round(Math.min(1,Math.max(0,e))*255);return`#${r}${i.toString(16).padStart(2,"0")}`}function z(t,e=16){if(!t.startsWith("[")||!t.endsWith("]"))return;let r=t.slice(1,-1),i=Number.parseFloat(r);if(!Number.isFinite(i))return;if(r.endsWith("rem"))return i*16;if(r.endsWith("em"))return i*e;return i}function h(t){if(t.startsWith("[")&&t.endsWith("]")){let e=t.slice(1,-1),r=e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e);return Number.isFinite(r)?r:void 0}return Z[t]}var Ee={flex:(t,e)=>(e.display="flex",!0),hidden:(t,e)=>(e.display="none",!0),grid:(t,e)=>(e.display="grid",!0),"flex-row":(t,e)=>(e.flexDirection="row",!0),"flex-col":(t,e)=>(e.flexDirection="column",!0),"flex-row-reverse":(t,e)=>(e.flexDirection="row-reverse",!0),"flex-col-reverse":(t,e)=>(e.flexDirection="column-reverse",!0),"flex-wrap":(t,e)=>(e.flexWrap="wrap",!0),"flex-nowrap":(t,e)=>(e.flexWrap="nowrap",!0),"flex-wrap-reverse":(t,e)=>(e.flexWrap="wrap-reverse",!0),"flex-1":(t,e)=>(e.flex=1,e.flexGrow=1,e.flexShrink=1,e.flexBasis=0,!0),"flex-auto":(t,e)=>(e.flexGrow=1,e.flexShrink=1,!0),"flex-initial":(t,e)=>(e.flexGrow=0,e.flexShrink=1,!0),"flex-none":(t,e)=>(e.flexGrow=0,e.flexShrink=0,!0),grow:(t,e)=>(e.flexGrow=1,!0),"grow-0":(t,e)=>(e.flexGrow=0,!0),shrink:(t,e)=>(e.flexShrink=1,!0),"shrink-0":(t,e)=>(e.flexShrink=0,!0),"justify-start":(t,e)=>(e.justifyContent="flex-start",!0),"justify-center":(t,e)=>(e.justifyContent="center",!0),"justify-end":(t,e)=>(e.justifyContent="flex-end",!0),"justify-between":(t,e)=>(e.justifyContent="space-between",!0),"justify-around":(t,e)=>(e.justifyContent="space-around",!0),"justify-evenly":(t,e)=>(e.justifyContent="space-evenly",!0),"items-start":(t,e)=>(e.alignItems="flex-start",!0),"items-center":(t,e)=>(e.alignItems="center",!0),"items-end":(t,e)=>(e.alignItems="flex-end",!0),"items-stretch":(t,e)=>(e.alignItems="stretch",!0),"items-baseline":(t,e)=>(e.alignItems="baseline",!0),"self-auto":(t,e)=>(e.alignSelf="auto",!0),"self-start":(t,e)=>(e.alignSelf="flex-start",!0),"self-center":(t,e)=>(e.alignSelf="center",!0),"self-end":(t,e)=>(e.alignSelf="flex-end",!0),"self-stretch":(t,e)=>(e.alignSelf="stretch",!0),"self-baseline":(t,e)=>(e.alignSelf="baseline",!0),"min-w-0":(t,e)=>(e.minWidth=0,!0),"aspect-square":(t,e)=>(e.aspectRatio=1,!0),"inset-0":(t,e)=>(e.top=0,e.right=0,e.bottom=0,e.left=0,!0),"tracking-tighter":(t,e)=>(e.letterSpacing=-0.8,!0),"tracking-tight":(t,e)=>(e.letterSpacing=-0.4,!0),"tracking-normal":(t,e)=>(e.letterSpacing=0,!0),"tracking-wide":(t,e)=>(e.letterSpacing=0.4,!0),"tracking-wider":(t,e)=>(e.letterSpacing=0.8,!0),"tracking-widest":(t,e)=>(e.letterSpacing=1.6,!0),"tabular-nums":()=>!0,block:()=>!0,"inline-flex":(t,e)=>(e.display="flex",!0),truncate:()=>!0,relative:(t,e)=>(e.position="relative",!0),absolute:(t,e)=>(e.position="absolute",!0),"overflow-visible":(t,e)=>(e.overflow="visible",!0),"overflow-hidden":(t,e)=>(e.overflow="hidden",!0),"overflow-scroll":(t,e)=>(e.overflow="scroll",!0),"font-thin":(t,e)=>(e.fontWeight="100",!0),"font-extralight":(t,e)=>(e.fontWeight="200",!0),"font-light":(t,e)=>(e.fontWeight="300",!0),"font-normal":(t,e)=>(e.fontWeight="400",!0),"font-medium":(t,e)=>(e.fontWeight="500",!0),"font-semibold":(t,e)=>(e.fontWeight="600",!0),"font-bold":(t,e)=>(e.fontWeight="bold",!0),"font-extrabold":(t,e)=>(e.fontWeight="800",!0),"font-black":(t,e)=>(e.fontWeight="900",!0),italic:(t,e)=>(e.fontStyle="italic",!0),"not-italic":(t,e)=>(e.fontStyle="normal",!0),"text-left":(t,e)=>(e.textAlign="left",!0),"text-center":(t,e)=>(e.textAlign="center",!0),"text-right":(t,e)=>(e.textAlign="right",!0),"text-justify":(t,e)=>(e.textAlign="justify",!0),uppercase:(t,e)=>(e.textTransform="uppercase",!0),lowercase:(t,e)=>(e.textTransform="lowercase",!0),capitalize:(t,e)=>(e.textTransform="capitalize",!0),"normal-case":(t,e)=>(e.textTransform="none",!0),underline:(t,e)=>(e.textDecorationLine="underline",!0),"line-through":(t,e)=>(e.textDecorationLine="line-through",!0),"no-underline":(t,e)=>(e.textDecorationLine="none",!0)};function Ne(t,e){if(!t.startsWith("bg-"))return!1;let r=t.slice(3),i=N(r);if(i)return e.backgroundColor=i,!0;return!1}function We(t,e){if(!t.startsWith("text-"))return!1;let r=t.slice(5);if(Y[r])return e.fontSize=Y[r],!0;if(r.startsWith("[")&&r.endsWith("]")){let s=r.slice(1,-1);if(/^-?[\d.]+(?:px|r?em)?$/.test(s)){let a=s.endsWith("rem")||s.endsWith("em")?Number.parseFloat(s)*16:Number.parseFloat(s);if(Number.isFinite(a))return e.fontSize=a,!0}}let i=N(r);if(i)return e.color=i,!0;return!1}function Be(t,e){if(t.startsWith("p-")){let r=h(t.slice(2));if(r!==void 0)return e.padding=r,!0}if(t.startsWith("px-")){let r=h(t.slice(3));if(r!==void 0)return e.paddingHorizontal=r,!0}if(t.startsWith("py-")){let r=h(t.slice(3));if(r!==void 0)return e.paddingVertical=r,!0}if(t.startsWith("pt-")){let r=h(t.slice(3));if(r!==void 0)return e.paddingTop=r,!0}if(t.startsWith("pr-")){let r=h(t.slice(3));if(r!==void 0)return e.paddingRight=r,!0}if(t.startsWith("pb-")){let r=h(t.slice(3));if(r!==void 0)return e.paddingBottom=r,!0}if(t.startsWith("pl-")){let r=h(t.slice(3));if(r!==void 0)return e.paddingLeft=r,!0}return!1}function Le(t,e){if(t.startsWith("m-")){let r=h(t.slice(2));if(r!==void 0)return e.margin=r,!0}if(t.startsWith("mx-")){let r=h(t.slice(3));if(r!==void 0)return e.marginHorizontal=r,!0}if(t.startsWith("my-")){let r=h(t.slice(3));if(r!==void 0)return e.marginVertical=r,!0}if(t.startsWith("mt-")){let r=h(t.slice(3));if(r!==void 0)return e.marginTop=r,!0}if(t.startsWith("mr-")){let r=h(t.slice(3));if(r!==void 0)return e.marginRight=r,!0}if(t.startsWith("mb-")){let r=h(t.slice(3));if(r!==void 0)return e.marginBottom=r,!0}if(t.startsWith("ml-")){let r=h(t.slice(3));if(r!==void 0)return e.marginLeft=r,!0}return!1}function De(t,e){if(!t.startsWith("w-"))return!1;let r=t.slice(2);if(r==="full")return e.width="100%",!0;if(r==="screen")return e.width="100%",!0;if(r==="auto")return e.width="auto",!0;if(r.includes("/")){let[s,a]=r.split("/"),l=Number.parseInt(s)/Number.parseInt(a)*100;return e.width=`${l}%`,!0}let i=h(r);if(i!==void 0)return e.width=i,!0;return!1}function Xe(t,e){if(!t.startsWith("h-"))return!1;let r=t.slice(2);if(r==="full")return e.height="100%",!0;if(r==="screen")return e.height="100%",!0;if(r==="auto")return e.height="auto",!0;let i=h(r);if(i!==void 0)return e.height=i,!0;return!1}function Oe(t,e){if(!t.startsWith("rounded"))return!1;if(t==="rounded")return e.borderRadius=y.DEFAULT,!0;let r=t.slice(8);if(r==="")return!1;let i=/^(?:(t|b|l|r)-)?(\[[^\]]+\])$/.exec(r);if(i){let a=z(i[2]);if(a===void 0)return!1;let l={t:["borderTopLeftRadius","borderTopRightRadius"],b:["borderBottomLeftRadius","borderBottomRightRadius"],l:["borderTopLeftRadius","borderBottomLeftRadius"],r:["borderTopRightRadius","borderBottomRightRadius"]};for(let u of i[1]?l[i[1]]:["borderRadius"])e[u]=a;return!0}if(r.startsWith("t-")){let a=y[r.slice(2)]??y.DEFAULT;return e.borderTopLeftRadius=a,e.borderTopRightRadius=a,!0}if(r.startsWith("b-")){let a=y[r.slice(2)]??y.DEFAULT;return e.borderBottomLeftRadius=a,e.borderBottomRightRadius=a,!0}if(r.startsWith("l-")){let a=y[r.slice(2)]??y.DEFAULT;return e.borderTopLeftRadius=a,e.borderBottomLeftRadius=a,!0}if(r.startsWith("r-")){let a=y[r.slice(2)]??y.DEFAULT;return e.borderTopRightRadius=a,e.borderBottomRightRadius=a,!0}let s=y[r];if(s!==void 0)return e.borderRadius=s,!0;return!1}function $e(t,e){if(!t.startsWith("border"))return!1;if(t==="border")return e.borderWidth=1,!0;let r=t.match(/^border-(\d+)$/);if(r)return e.borderWidth=Number.parseInt(r[1]),!0;let i=t.match(/^border-(t|r|b|l)-?(\d*)$/);if(i){let[,s,a]=i,l=a?Number.parseInt(a):1;switch(s){case"t":e.borderTopWidth=l;break;case"r":e.borderRightWidth=l;break;case"b":e.borderBottomWidth=l;break;case"l":e.borderLeftWidth=l;break}return!0}return!1}function ze(t,e){if(!t.startsWith("border-"))return!1;let r=t.slice(7),i=N(r);if(i)return e.borderColor=i,!0;return!1}function Ae(t,e){if(!t.startsWith("opacity-"))return!1;let r=Number.parseInt(t.slice(8));if(!Number.isNaN(r))return e.opacity=r/100,!0;return!1}function Ve(t,e){if(t.startsWith("tracking-[")){let r=z(t.slice(9),typeof e.fontSize==="number"?e.fontSize:16);if(r===void 0)return!1;return e.letterSpacing=r,!0}if(t.startsWith("leading-")){let r=t.slice(8),i=typeof e.fontSize==="number"?e.fontSize:16,s={none:1,tight:1.25,snug:1.375,normal:1.5,relaxed:1.625,loose:2},a=r.startsWith("[")?/^\[[\d.]+\]$/.test(r)?Number.parseFloat(r.slice(1,-1))*i:z(r,i):s[r]!==void 0?s[r]*i:Z[r];if(a===void 0||!Number.isFinite(a))return!1;return e.lineHeight=a,!0}return!1}function Pe(t,e){let r=/^grid-cols-(\d+)$/.exec(t);if(!r)return!1;return e.gridColumns=Number(r[1]),!0}function Fe(t,e){if(!t.startsWith("size-"))return!1;let r=t.slice(5),i=r==="full"?"100%":h(r);if(i===void 0)return!1;return e.width=i,e.height=i,!0}function je(t,e){let r=/^(-?)(top|right|bottom|left)-(.+)$/.exec(t);if(!r)return!1;let i=r[3]==="full"?"100%":h(r[3]);if(i===void 0)return!1;return e[r[2]]=typeof i==="number"&&r[1]?-i:i,!0}function Me(t,e){let r=/^space-(x|y)-(.+)$/.exec(t);if(!r)return!1;let i=h(r[2]);if(i===void 0)return!1;return e.gap=i,!0}function He(t,e){if(t.startsWith("gap-")){let r=h(t.slice(4));if(r!==void 0)return e.gap=r,!0}if(t.startsWith("gap-x-")){let r=h(t.slice(6));if(r!==void 0)return e.columnGap=r,!0}if(t.startsWith("gap-y-")){let r=h(t.slice(6));if(r!==void 0)return e.rowGap=r,!0}return!1}function A(t){let e=[],r=[],i=[];function s(d,g){let c=/^(text|bg|border|ring)-([a-z-]+)(\/[^\s]+)?$/.exec(d),f=c&&Ln[c[2]];return f?`${c[1]}-${f[g]}${c[3]||""}`:d}for(let d of t.split(/\s+/).filter(Boolean))if(d.startsWith("dark:"))r.push(s(d.slice(5),"dark"));else if(!d.includes(":")||d.startsWith("[")){if(e.push(s(d,"light")),s(d,"dark")!==d)i.push(s(d,"dark"))}let a=[],u={style:K(e.join(" "),a),unknown:a};if(r.length||i.length)u.dark=K([...i,...r].join(" "),a);for(let d of e){if(d==="truncate")u.numberOfLines=1;let g=/^line-clamp-(\d+)$/.exec(d);if(g)u.numberOfLines=Number(g[1]);if(!u.icon&&/^i-[a-z0-9]+-[a-z0-9-]+$/.test(d))u.icon=d}return u.unknown=a.filter((d)=>!/^line-clamp-\d+$/.test(d)),u}function K(t,e){let r={},i=t.split(/\s+/).filter(Boolean);for(let s of i){if(/^i-[a-z0-9]+-/.test(s))continue;let a=Ee[s];if(a){a("",r);continue}if(Ne(s,r))continue;if(We(s,r))continue;if(Be(s,r))continue;if(Le(s,r))continue;if(De(s,r))continue;if(Xe(s,r))continue;if(Oe(s,r))continue;if($e(s,r))continue;if(ze(s,r))continue;if(Ae(s,r))continue;if(He(s,r))continue;if(Ve(s,r))continue;if(Fe(s,r))continue;if(Pe(s,r))continue;if(je(s,r))continue;if(Me(s,r))continue;if(e?.push(s),typeof process<"u"&&process.env?.NODE_ENV==="development")console.warn(`[STX Native] Unknown Headwind class: ${s}`)}return r}function W(t,e={},r={},i={},s=[]){return{type:t,props:e,style:r,events:i,children:s}}function Q(t,e,r={}){return{version:"1.0.0",root:t,script:e,meta:{source:r.source||"unknown",compiledAt:r.compiledAt||Date.now(),headwindConfig:r.headwindConfig}}}var ee=new Set(["script","style","head","meta","link","title","base","noscript","svg"]),te=new Set(["template","body","html","main","fragment"]),B=new Set(["svg"]),Ge={click:"onPress",press:"onPress","press-in":"onPressIn",pressin:"onPressIn","press-out":"onPressOut",pressout:"onPressOut",longpress:"onLongPress",contextmenu:"onLongPress",input:"onChangeText",change:"onValueChange","value-change":"onValueChange",valuechange:"onValueChange",focus:"onFocus",focusin:"onFocus",blur:"onBlur",focusout:"onBlur",submit:"onSubmitEditing","submit-editing":"onSubmitEditing",submitediting:"onSubmitEditing","end-editing":"onEndEditing",endediting:"onEndEditing",scroll:"onScroll",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"},qe=new Set(["onBlur","onChangeText","onDismiss","onEndEditing","onEndReached","onError","onFocus","onLayout","onLoad","onLoadEnd","onLoadStart","onLongPress","onPress","onPressIn","onPressOut","onRequestClose","onRefresh","onScroll","onShow","onSlidingComplete","onSubmitEditing","onValueChange"]),V=new Set(["display","gridColumns","gridTemplateColumns","gridAutoRows","flex","flexGrow","flexShrink","flexBasis","flexDirection","flexWrap","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","tintColor","transform","overflow"]),Ue=new Set(["gridColumns","gridAutoRows","flex","flexGrow","flexShrink","zIndex","aspectRatio","gap","rowGap","columnGap","borderWidth","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","opacity","shadowOpacity","shadowRadius","elevation","fontSize","lineHeight","letterSpacing"]),Je=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"]),re=new Set(["View","ScrollView","SafeAreaView","KeyboardAvoidingView","Text","TextInput","Button","TouchableOpacity","TouchableHighlight","Pressable","Icon","Image","ImageBackground","FlatList","SectionList","Switch","Slider","Picker","DatePicker","Modal","ActivityIndicator","StatusBar","RefreshControl"]),ne=new Set(["View","SafeAreaView","ScrollView","KeyboardAvoidingView"]),Ye={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:" ","#39":"'","#x27":"'"};function _(t){return t.replace(/&(#x?[0-9a-f]+|\w+);/gi,(e,r)=>{let i=Ye[r.toLowerCase()];if(i!==void 0)return i;if(r[0]==="#"){let s=r[1]==="x"||r[1]==="X"?Number.parseInt(r.slice(2),16):Number.parseInt(r.slice(1),10);return Number.isFinite(s)?String.fromCodePoint(s):e}return e})}function ie(t){return t.replace(/-([a-z])/g,(e,r)=>r.toUpperCase())}function oe(t){let e=/^(-?[\d.]+)px$/.exec(t);if(e)return Number.parseFloat(e[1]);let r=/^(-?[\d.]+)r?em$/.exec(t);if(r)return Number.parseFloat(r[1])*16;if(/^-?[\d.]+$/.test(t))return Number.parseFloat(t);return t}function Ke(t,e,r){let i={},s={},a={},l="",u={};for(let[g,c]of e){let f=g.toLowerCase();if(f==="class"||f==="classname"){l=l?`${l} ${c}`:c;continue}if(f==="style"){u={...u,...Ze(t,c,r)};continue}if(f.startsWith(":")||f.startsWith("x-")&&f!=="x-cloak"){a[f.startsWith(":")?f.slice(1):f.slice(2)]=_(c);continue}if(f==="x-cloak")continue;if(f.startsWith("@")||f.startsWith("v-on:")){let b=f.startsWith("@")?f.slice(1):f.slice(5),[m]=b.split("."),x=Ge[m]??(m.startsWith("on")?m:"");if(!x||!qe.has(x)){r.push({kind:"unread-event",tag:t,name:g});continue}s[x]=_(c);continue}if(f==="key"){i.key=c;continue}let p=_(c);try{i[O(g)]=JSON.parse(p)}catch{i[O(g)]=p}}let d={...l?A(l).style:{},...u};return{props:i,style:d,events:s,bindings:a,classes:l,inline:u}}function se(t,e){if(Ue.has(t))return!1;if(Je.has(t))return/^-?[\d.]+%$/.test(e);return!0}function Ze(t,e,r){let i={},s=_(e);try{let a=JSON.parse(s);if(a&&typeof a==="object"&&!Array.isArray(a)){for(let[l,u]of Object.entries(a)){let d=V.has(l)?l:ie(l.trim().toLowerCase());if(!V.has(d)){r.push({kind:"unknown-style",tag:t,name:d});continue}if(u===null||u===void 0)continue;let g=typeof u==="string"?oe(u):u;if(typeof g!=="string"&&typeof g!=="number")continue;if(typeof g==="string"&&!se(d,g)){r.push({kind:"non-numeric-style",tag:t,name:d});continue}i[d]=g}return i}}catch{}for(let a of s.split(";")){let l=a.indexOf(":");if(l===-1)continue;let u=ie(a.slice(0,l).trim().toLowerCase()),d=a.slice(l+1).trim();if(!u||!d)continue;if(!V.has(u)){r.push({kind:"unknown-style",tag:t,name:u});continue}let g=oe(d);if(typeof g==="string"&&!se(u,g)){r.push({kind:"non-numeric-style",tag:t,name:u});continue}i[u]=g}return i}function ae(t){return t.children.map((e)=>typeof e==="string"?e:ae(e)).join("").replace(/\s+/g," ").trim()}function Qe(t,e){let r=t.node,i=r.children.filter((a)=>typeof a!=="string"),s=r.children.filter((a)=>typeof a==="string").join("").trim();if(ne.has(r.type)&&i.length===0&&s)return r.type="Text",r.children=[s],r;if(r.type==="Text"&&i.length>0){let a=ae(r);return e.push({kind:"flattened-text",tag:t.tag}),r.children=a?[a]:[],r}if(ne.has(r.type)&&i.length>0)r.children=i;return r}async function et(t,e={}){let r=[],i=[],s=[],a=new Set;function l(c){let f=s[s.length-1];if(!f)i.push(c);else if(!f.dropped)f.node.children.push(c)}function u(c){if(c.node.bindings&&Object.keys(c.node.bindings).length>0){let p=c.node.children,b=p.filter((x)=>typeof x!=="string"),m=b.length===1&&b.length===p.length?b[0]:W("View",{},{},{},p);if(m.bindings={...c.node.bindings,...m.bindings},m.bindingId===void 0&&c.node.bindingId!==void 0)m.bindingId=c.node.bindingId;l(m);return}let f=s[s.length-1];for(let p of c.node.children){if(typeof p==="string"){if(f&&!f.dropped)f.node.children.push(p);continue}if(!f)i.push(p);else if(!f.dropped)f.node.children.push(p)}}function d(c,f){let p=ee.has(c)&&!B.has(c),b=s[s.length-1]?.dropped??!1,{props:m,style:x,events:S,bindings:w,classes:v,inline:me}=p||b?{props:{},style:{},events:{},bindings:{},classes:"",inline:{}}:Ke(c,f,r),L=m["data-native"],R;if(typeof L==="string"&&re.has(L))R=L,delete m["data-native"];else R=B.has(c)?"View":U(c);if(R===c&&!re.has(R)&&!ee.has(c)&&!te.has(c)&&!a.has(c))a.add(c),r.push({kind:"unmapped-tag",tag:c});if((p||B.has(c))&&!a.has(`drop:${c}`))a.add(`drop:${c}`),r.push({kind:"dropped-subtree",tag:c});if(R==="Icon"){let he=A(v).icon;m.symbol=J(String(m.symbol||m.name||he||""),Boolean(m.symbol)).symbol}let C=W(R,m,x,S);C._inlineStyle=me;let D=m["data-stx-b"];if(typeof D==="number"&&Number.isInteger(D))C.bindingId=D;if(delete m["data-stx-b"],v)C._classes=v;if(Object.keys(w).length>0)C.bindings=w;if(typeof m.key==="string")C.key=m.key,delete m.key;return{tag:c,node:C,dropped:p||b||B.has(c),discard:p||b,unwrap:te.has(c)}}if(await new HTMLRewriter().on("*",{element(c){let f=c.tagName.toLowerCase(),p=d(f,[...c.attributes]),b=!0;try{c.onEndTag(()=>{if(s.pop(),p.discard)return;if(p.unwrap)u(p);else l(Qe(p,r))})}catch{b=!1}if(b)s.push(p);else if(!p.discard)l(p.node)},text(c){let f=s[s.length-1];if(!f||f.dropped)return;let p=_(c.text).replace(/\s+/g," ");if(!p.trim())return;f.node.children.push(p)}}).transform(new Response(t)).text(),i.length===0)throw Error(`No element to translate in the rendered output of ${e.source??"unknown"}`);return{root:i.length===1?i[0]:W("View",{},{},{},i),diagnostics:r}}async function ce(t,e={}){let{root:r,diagnostics:i}=await et(t,e),s=e.script??{exports:{},functions:[],code:""};return{document:Q(r,s,{source:e.source??"unknown"}),diagnostics:i}}var le=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,tt=/(?:^|\n)\s*(?:export\s+)?(?:async\s+)?function\s*\*?\s*([$\w]+)\s*\(/g,rt=/(?:^|\n)\s*(?:export\s+)?(?:const|let|var)\s+([$\w]+)\s*=\s*(?:async\s*)?(?:\([^)]*\)|[$\w]+)\s*=>/g,ue=/(?:^|\n)\s*(?:export\s+)?const\s+([$\w]+)\s*=\s*(-?[\d.]+|true|false|'[^']*'|"[^"]*")\s*(?=;|\n|$)/g;function P(t){let e=[];le.lastIndex=0;for(let a of t.matchAll(le)){let l=a[1]??"";if(/\bserver\b/.test(l))continue;e.push(a[2].trim())}let r=e.filter(Boolean).join(`
|
|
3
3
|
|
|
4
|
-
`),i=[];for(let a of[tt,rt]){a.lastIndex=0;for(let l of r.matchAll(a))if(!i.includes(l[1]))i.push(l[1])}let s={};ue.lastIndex=0;for(let a of r.matchAll(ue)){let l=a[2];try{s[a[1]]=JSON.parse(l.replace(/^'(.*)'$/,'"$1"'))}catch{s[a[1]]=l}}return{exports:s,functions:i,code:r}}var de=/<script\b[^>]*\bdata-stx-scoped\b[^>]*>([\s\S]*?)<\/script>/gi,nt=/function\s+(__stx_setup_[\w$]+)\s*\(/;function F(t){de.lastIndex=0;for(let e of t.matchAll(de)){let r=e[1].trim(),i=nt.exec(r)?.[1];if(i)return{name:i,code:r}}return null}function ot(){let t=[E.join(import.meta.dir,"..","primitives"),E.join(import.meta.dir,"native","primitives")];for(let e of t)if(it(E.join(e,"View.stx")))return e;return t[0]}async function st(t,e,r={}){let i=r.root??E.dirname(e),s=await o(i),a={root:i,componentsDir:r.componentsDir??E.join(i,"components"),buildMode:"serve",cache:!1,_pluginComponentDirs:[ot(),...s._pluginComponentDirs??[]]},l={...r.context??{},__stx_inject_css:!1},u=await n(t,l,e,a,new Set),{html:d,manifest:g}=G(u),{document:c,diagnostics:f}=await ce(d,{source:e,script:P(t)}),p=F(d);if(P(t).code.trim()){let b=await
|
|
4
|
+
`),i=[];for(let a of[tt,rt]){a.lastIndex=0;for(let l of r.matchAll(a))if(!i.includes(l[1]))i.push(l[1])}let s={};ue.lastIndex=0;for(let a of r.matchAll(ue)){let l=a[2];try{s[a[1]]=JSON.parse(l.replace(/^'(.*)'$/,'"$1"'))}catch{s[a[1]]=l}}return{exports:s,functions:i,code:r}}var de=/<script\b[^>]*\bdata-stx-scoped\b[^>]*>([\s\S]*?)<\/script>/gi,nt=/function\s+(__stx_setup_[\w$]+)\s*\(/;function F(t){de.lastIndex=0;for(let e of t.matchAll(de)){let r=e[1].trim(),i=nt.exec(r)?.[1];if(i)return{name:i,code:r}}return null}function ot(){let t=[E.join(import.meta.dir,"..","primitives"),E.join(import.meta.dir,"native","primitives")];for(let e of t)if(it(E.join(e,"View.stx")))return e;return t[0]}async function st(t,e,r={}){let i=r.root??E.dirname(e),s=await o(i),a={root:i,componentsDir:r.componentsDir??E.join(i,"components"),buildMode:"serve",cache:!1,_pluginComponentDirs:[ot(),...s._pluginComponentDirs??[]]},l={...r.context??{},__stx_inject_css:!1},u=await n(t,l,e,a,new Set),{html:d,manifest:g}=G(u),{document:c,diagnostics:f}=await ce(d,{source:e,script:P(t)}),p=F(d);if(P(t).code.trim()){let b=await zn(t,e,r.context,{forceClientSetup:!0});p=F(b.setupCode??"")??p}return{document:c,manifest:g,setup:p,diagnostics:f,html:d}}async function I(t,e={}){return st(await Bun.file(t).text(),t,e)}function fe(t){let r=[k.join(import.meta.dir,"..","runtime",`${t}.ts`),k.join(import.meta.dir,"..","runtime",`${t}.js`),k.join(import.meta.dir,"native","runtime",`${t}.js`)].find((i)=>at(i));if(!r)throw Error(`Native runtime module ${t} is missing`);return r}async function lt(t,e,r){let i=await Bun.build({entrypoints:[t],target:"browser",format:"iife",minify:r,plugins:e,define:{"process.env.NODE_ENV":JSON.stringify(r?"production":"development")}});if(!i.success){let s=i.logs.map((a)=>String(a.message??a)).join(`
|
|
5
5
|
`);throw Error(`Could not bundle ${t}:
|
|
6
6
|
${s}`)}return(await i.outputs[0].text()).trim()}async function j(t){let e=Object.keys(t.screens);if(e.length===0)throw Error("screens must name at least one .stx file");let r=t.routed??!0,i=t.initialScreen??e[0];if(!t.screens[i])throw Error(`Initial screen ${i} is not in screens`);let s=k.resolve(t.root??process.cwd()),a=[];for(let S of e){let w=k.resolve(s,t.screens[S]);if(!w.endsWith(".stx"))throw Error(`Screen ${S} must name a .stx file`);a.push({name:S,file:w,compiled:await I(w,{root:s})})}let l=fe("jsc-globals"),u=fe("shared-screen"),d=r?`var routeName = g.__stxNativeRoute || ${JSON.stringify(i)};
|
|
7
7
|
if (routeNames.indexOf(routeName) === -1) throw new Error(['Unknown native screen:', routeName].join(' '));`:"var routeName = 'main';",g=a.map(({name:S,compiled:w},v)=>`${v===0?"if":"else if"} (routeName === ${JSON.stringify(r?S:"main")}) {
|
|
@@ -27,7 +27,7 @@ ${g}
|
|
|
27
27
|
var screen = prepareSharedNativeScreen(nativeDocument, manifest, bridge, { routeName: routeName, routeNames: routeNames });
|
|
28
28
|
g.__stx_host = screen.host;
|
|
29
29
|
g.__stxNativeUnmount = function() { screen.unmount(); };
|
|
30
|
-
${
|
|
30
|
+
${Ie()}
|
|
31
31
|
${c}
|
|
32
32
|
screen.mount(g.stx, g.__stx_latestSetup || null);
|
|
33
33
|
`,b=await lt("stx:native-shared-screens",[{name:"stx-native-shared-screens",setup(S){S.onResolve({filter:/^stx:native-shared-screens$/},()=>({path:"entry",namespace:"stx-native-shared-screens"})),S.onLoad({filter:/.*/,namespace:"stx-native-shared-screens"},()=>({contents:f,loader:"js"}))}}],t.minify??!1),m=a.flatMap(({compiled:S})=>S.diagnostics).map((S)=>({level:"warning",message:[S.kind,S.tag,S.name].filter(Boolean).join(": ")}));if(!t.outFile)return{code:b,diagnostics:m};let x=k.resolve(s,t.outFile);return ct(k.dirname(x),{recursive:!0}),await Bun.write(x,b),{code:b,outFile:x,diagnostics:m}}async function ut(t,e={}){return j({...e,screens:{main:t},routed:!1})}function pe(t,e={}){return ut(t,e)}var ge=["native.config.json","stx-native.config.json"];function pt(t=process.cwd(),e){let r=e?T.resolve(t,e):ge.map((u)=>T.join(t,u)).find((u)=>M(u));if(!r)return null;if(!M(r))throw Error(`Native config not found: ${r}`);let i=JSON.parse(ft(r,"utf8")),s=Object.entries(i.screens??{});if(s.length===0)throw Error(`${T.basename(r)} must name at least one screen in "screens"`);let a={};for(let[u,d]of s){if(!/^[A-Z][\w-]*$/i.test(u))throw Error(`Invalid native screen name: ${u}`);if(typeof d!=="string"||!d.endsWith(".stx"))throw Error(`Screen ${u} must name a .stx file`);if(a[u]=T.resolve(T.dirname(r),d),!M(a[u]))throw Error(`Screen ${u} not found: ${a[u]}`)}let l=i.initialScreen||s[0][0];if(!a[l])throw Error(`Initial screen ${l} is not in screens`);return{initialScreen:l,screens:a,file:r}}async function Jt(t,e={}){let r=T.resolve(e.cwd??process.cwd()),i=e.format??"ir";if(i!=="ir"&&i!=="bundle")throw Error(`Unknown compile format: ${i}. Expected ir or bundle.`);let s=t?null:pt(r,e.config);if(!t&&!s)throw Error(`Please specify an input file: stx native compile <file.stx>, or add ${ge[0]}`);let a,l=[];if(i==="bundle"){let d=s?await j({screens:s.screens,initialScreen:s.initialScreen,minify:e.minify,root:r}):await pe(T.resolve(r,t),{minify:e.minify});a=d.code,l=d.diagnostics}else{let d=async(c)=>{let f=await I(c);return l.push(...f.diagnostics.map((p)=>({level:"warning",message:[p.kind,p.tag,p.name].filter(Boolean).join(": ")}))),f.document},g=s?{initialScreen:s.initialScreen,screens:Object.fromEntries(await Promise.all(Object.entries(s.screens).map(async([c,f])=>[c,await d(f)])))}:await d(T.resolve(r,t));a=JSON.stringify(g,null,2)}if(!e.output)return{output:a,diagnostics:l};let u=T.resolve(r,e.output);return dt(T.dirname(u),{recursive:!0}),await Bun.write(u,a),{output:a,written:u,diagnostics:l}}export{Jt as runNativeCompile};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{p,l}from"./chunk-
|
|
3
|
-
export{
|
|
2
|
+
import{p,l}from"./chunk-ab7vh24b.js";import{b}from"./chunk-ss7wapbh.js";function y(t,o){let i=1,r=o,e="<template",n="</template";while(r<t.length&&i>0){let s=t.indexOf("<",r);if(s===-1)break;if(r=s,t.startsWith(e,r)&&(r+e.length>=t.length||/[\s>\/]/.test(t[r+e.length]))){i++,r+=e.length;continue}if(t.startsWith(n,r)){let a=t.indexOf(">",r+n.length);if(a!==-1){if(i--,i===0)return a+1;r=a+1;continue}}r++}return i===0?r:-1}var w=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function x(t,o){let i=null;for(let r=o;r<t.length;r++){let e=t[r];if(i){if(e==="\\"){r++;continue}if(e===i)i=null;continue}if(e==='"'||e==="'"){i=e;continue}if(e===">")return r+1}return-1}function N(t,o,i){let r=o.toLowerCase(),e=1,n=i;while(n<t.length){let s=t.indexOf("<",n);if(s===-1)return-1;if(t.startsWith("<!--",s)){let g=t.indexOf("-->",s+4);n=g===-1?t.length:g+3;continue}let a=x(t,s+1);if(a===-1)return-1;let f=t.slice(s,a),u=f.match(/^<\s*(\/?)\s*([a-zA-Z][\w-]*)/);if(u&&u[2].toLowerCase()===r){if(u[1]==="/"){if(e--,e===0)return a}else if(!/\/\s*>$/.test(f))e++}n=a}return-1}function A(t){let o=[],i=[],r=/\bslot\s*=\s*(?:"([^"]+)"|'([^']+)')/i,e=0;while(e<t.length){let n=t.indexOf("<",e);if(n===-1)break;if(t.startsWith("<!--",n)){let c=t.indexOf("-->",n+4);e=c===-1?t.length:c+3;continue}let s=x(t,n+1);if(s===-1)break;let a=t.slice(n,s),f=a.match(/^<\s*(\/?)\s*([a-zA-Z][\w-]*)/);if(!f){e=s;continue}let u=f[2].toLowerCase();if(f[1]==="/"){let c=i.lastIndexOf(u);if(c!==-1)i.splice(c);e=s;continue}let g=/\/\s*>$/.test(a),d=i.length===0?a.match(r):null;if(d){let c=d[1]||d[2],m=a.replace(r,"").replace(/\s+(?=\/?>$)/,"").replace(/\s{2,}/g," "),h=g||w.has(u)?-1:N(t,u,s);if(h===-1)o.push({start:n,end:s,slotName:c,element:m}),e=s;else o.push({start:n,end:h,slotName:c,element:m+t.slice(s,h)}),e=h;continue}if(!g&&!w.has(u)){if(i.push(u),u==="script"||u==="style"){let c=t.toLowerCase().indexOf(`</${u}>`,s);if(c!==-1){e=c;continue}}}e=s}return o}function O(t){let o=[],i=[],r=/^<template\s+(?:#([a-zA-Z][\w-]*)|v-slot:([a-zA-Z][\w-]*)|slot="([a-zA-Z][\w-]*)")(?:\s*=\s*"([^"]*)")?[^>]*>$/i,e=0;while(e<t.length){let n=t.indexOf("<",e);if(n===-1)break;if(t.startsWith("<!--",n)){let c=t.indexOf("-->",n+4);e=c===-1?t.length:c+3;continue}let s=x(t,n+1);if(s===-1)break;let a=t.slice(n,s),f=a.match(/^<\s*(\/?)\s*([a-zA-Z][\w-]*)/);if(!f){e=s;continue}let u=f[1]==="/",g=f[2].toLowerCase();if(u){let c=i.lastIndexOf(g);if(c!==-1)i.splice(c);e=s;continue}if(g==="template"&&i.length===0){let c=a.match(r);if(c){let m=y(t,s);if(m!==-1){let h=c[1]||c[2]||c[3];o.push({start:n,end:m,slotName:h,content:t.slice(s,m-11).trim(),propsBinding:c[4]||void 0}),e=m;continue}}}if(!/\/\s*>$/.test(a)&&!w.has(g)){if(i.push(g),g==="script"||g==="style"){let c=t.toLowerCase().indexOf(`</${g}>`,s);if(c!==-1){e=c;continue}}}e=s}return o}function Zi(t){let o={default:"",named:new Map},i=t,r=O(t);for(let n of r)o.named.set(n.slotName,{name:n.slotName,content:n.content,propsBinding:n.propsBinding});r.sort((n,s)=>s.start-n.start);for(let n of r)i=i.slice(0,n.start)+i.slice(n.end);let e=A(i);for(let n of e){let s=o.named.get(n.slotName);if(s)s.content+=n.element;else o.named.set(n.slotName,{name:n.slotName,content:n.element})}for(let n=e.length-1;n>=0;n--){let s=e[n];i=i.slice(0,s.start)+i.slice(s.end)}return o.default=i.trim(),o}function pl(t){let o=t.match(/name\s*=\s*["']([^"']+)["']/),i=o?o[1]:"",r={},e=/:([a-zA-Z][\w-]*)\s*=\s*["']([^"']+)["']/g,n;while((n=e.exec(t))!==null)r[n[1]]=n[2];let s=t.match(/<slot[^>]*>([\s\S]*?)<\/slot>/i),a=s?s[1].trim():"";return{name:i,props:r,defaultContent:a}}async function Qi(t,o,i,r){if(!t)return i;let e=t.content;if(t.propsBinding&&Object.keys(o).length>0){let n=t.propsBinding.trim(),s={...r};if(n.startsWith("{")&&n.endsWith("}")){let a=n.slice(1,-1).split(",").map((f)=>f.trim()).filter(Boolean);for(let f of a){let[u,g]=f.split(":").map((c)=>c.trim()),d=g||u;if(o[u]!==void 0)s[d]=o[u]}}else s[n]=o;e=C(e,s)}return e}function C(t,o){return t.replace(/\{\{\s*([^}]+)\s*\}\}/g,(i,r)=>{try{let e=r.trim(),n=k(e,o);return b(String(n??""))}catch{return`{{ ${r} }}`}})}function k(t,o){if(/^[a-zA-Z_$][\w$]*(\.[a-zA-Z_$][\w$]*)*$/.test(t)){let r=t.split("."),e=o;for(let n of r)if(e&&typeof e==="object"&&n in e)e=e[n];else return;return e}let i=t.match(/^([a-zA-Z_$][\w$]*)\s*([+\-*/])\s*(\d+)$/);if(i){let[,r,e,n]=i,s=o[r],a=parseInt(n,10);if(typeof s==="number")switch(e){case"+":return s+a;case"-":return s-a;case"*":return s*a;case"/":return s/a}}try{if(!p(t))return;return l(t,Object.keys(o))(...Object.values(o))}catch{return}}async function ea(t,o,i){let r=t;r=await M(r,/<slot\s+name\s*=\s*["']([^"']+)["']([^>]*?)(?:\/>|>([\s\S]*?)<\/slot>)/gi,async(s,a,f,u)=>{let g=o.named.get(a),d=u?.trim()||"",c=f||"",m={},h=/:([a-zA-Z_$][\w$-]*)\s*=\s*["']([^"']+)["']/g,S;while((S=h.exec(c))!==null){let E=S[1],R=S[2];m[E]=k(R,i)}return await Qi(g,m,d,i)});let n=/<slot\b((?:"[^"]*"|'[^']*'|[^>"'])*?)\s*(?:\/>|>([\s\S]*?)<\/slot>)/gi;return r=r.replace(n,(s,a,f)=>{if(/\bname\s*=/.test(a||""))return s;let u=f?.trim()||"";return o.default||u}),r}async function M(t,o,i){let r=[],e=[];t.replace(o,(a,...f)=>{let u=f[f.length-2];return e.push({match:a,index:u}),r.push(i(a,...f.slice(0,-2))),a});let n=await Promise.all(r),s=t;for(let a=e.length-1;a>=0;a--){let{match:f,index:u}=e[a];s=s.slice(0,u)+n[a]+s.slice(u+f.length)}return s}function fl(t){let o=Zi(t);return{defaultSlot:o.default,namedSlots:o.named}}async function gl(t,o,i,r){return await ea(t,{default:o,named:i},r)}
|
|
3
|
+
export{Zi,pl,Qi,ea,fl,gl};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{d,us,si,oi,bc,wc,vc,xc,Sc,kc,Ve,L,Ue,Cc,qn,$c,li,Ec,We,r,Kn,ui,g,ee,zu}from"./chunk-ss7wapbh.js";import"./chunk-8adstrk5.js";import"./chunk-wkc34drs.js";import"./chunk-j4afmryj.js";import"./chunk-8xcg2dqy.js";import"./chunk-99kt56fn.js";import"./chunk-s10r6hxp.js";import"./chunk-tbef3yyk.js";import"./chunk-ab7vh24b.js";import"./chunk-pf0d8y9n.js";import"./chunk-01nx6zcw.js";import"./chunk-x0mc2kv0.js";import"./chunk-pcq6vphz.js";export{ee as clearComponentCache,Ec as componentClientSignalNames,us as convertToCommonJS,g as createDetailedErrorMessage,Sc as extractDirectiveNames,si as extractScriptFromTemplate,d as extractVariables,r as fileExists,zu as getComponentCacheStats,wc as getPositionInfo,L as getSharedTranspiler,ui as getSourceLineInfo,xc as hasDirectives,oi as hasVariables,$c as isHydrateTrigger,kc as isJavaScriptScript,We as renderComponentWithSlot,Kn as resolveTemplatePath,Cc as scopeOnRootElement,Ve as shouldTranspileTypeScript,li as slotContentHasExpressions,Ue as transpileTypeScript,qn as userComponentFileExists,vc as validateDirective,bc as validateTemplate};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var f=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),b=new Set(["html","head","body","p","li","dt","dd","rt","rp","option","optgroup","thead","tbody","tfoot","tr","td","th","colgroup","caption"]);function l(i){return i.replace(/[^\n]/g," ")}function w(i){let o=i.replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,l).replace(/<style\b[^>]*>[\s\S]*?<\/style>/gi,l).replace(/<!--[\s\S]*?-->/g,l).replace(/\{\{\{[\s\S]*?\}\}\}/g,l).replace(/\{\{[\s\S]*?\}\}/g,l).replace(/\{!![\s\S]*?!!\}/g,l),s=new Map,r=new Map,p=/<(\/?)([A-Za-z][\w-]*)\b(?:[^<>"']|"[^"]*"|'[^']*')*?(\/?)>/g,t;while((t=p.exec(o))!==null){let e=t[1]==="/",n=t[2],a=t[3]==="/";if(f.has(n.toLowerCase()))continue;if(a)continue;if(e)r.set(n,(r.get(n)??0)+1);else{let g=s.get(n);if(g)g.count++;else{let d=o.slice(0,t.index).split(`
|
|
3
|
-
`).length;s.set(n,{count:1,firstLine:d})}}}let c=[];for(let e of new Set([...s.keys(),...r.keys()])){if(b.has(e.toLowerCase()))continue;let n=s.get(e)?.count??0,a=r.get(e)??0;if(n!==a)c.push({tag:e,opened:n,closed:a,firstOpenLine:s.get(e)?.firstLine??0})}return c}var u=new Set;function
|
|
4
|
-
export{
|
|
3
|
+
`).length;s.set(n,{count:1,firstLine:d})}}}let c=[];for(let e of new Set([...s.keys(),...r.keys()])){if(b.has(e.toLowerCase()))continue;let n=s.get(e)?.count??0,a=r.get(e)??0;if(n!==a)c.push({tag:e,opened:n,closed:a,firstOpenLine:s.get(e)?.firstLine??0})}return c}var u=new Set;function js(i,o){let s;try{s=w(i)}catch{return}if(s.length===0)return;let r=`${o}:${i.length}`;if(u.has(r))return;u.add(r);let p=o?o.split(/[/\\]/).pop()||o:"template";for(let{tag:t,opened:c,closed:e,firstOpenLine:n}of s)if(c>e){let a=n?` (first opened at line ${n})`:"";console.warn(`[stx] ${p}: <${t}> ${c} opened, ${e} closed \u2014 an unclosed <${t}>${a} may swallow the content that follows it.`)}else console.warn(`[stx] ${p}: <${t}> ${c} opened, ${e} closed \u2014 ${e-c} stray </${t}>.`)}
|
|
4
|
+
export{js};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{eu,bo,Ta,tu,nu,ru,su,ou,Ra,Aa,iu,au,cu,lu}from"./chunk-hhy33p5v.js";import"./chunk-ss7wapbh.js";import"./chunk-8adstrk5.js";import"./chunk-wkc34drs.js";import"./chunk-j4afmryj.js";import"./chunk-8xcg2dqy.js";import"./chunk-99kt56fn.js";import"./chunk-s10r6hxp.js";import"./chunk-tbef3yyk.js";import"./chunk-ab7vh24b.js";import"./chunk-pf0d8y9n.js";import"./chunk-01nx6zcw.js";import"./chunk-x0mc2kv0.js";import"./chunk-pcq6vphz.js";export{Ta as SUSPENSE_RESOLVER_RUNTIME,bo as buildSuspenseResolveScript,ou as createStreamRenderer,ru as extractStreamBoundaries,lu as generateHydrationRuntime,Aa as islandDirective,au as processSectionDirectives,nu as processStreamDirectives,iu as registerStreamingDirectives,tu as renderStreamingPage,eu as streamTemplate,su as streamTemplateSimple,cu as streamToResponse,Ra as streamingSuspenseDirective};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{ju,ic,is,as,ei,ti,cs,ls,zn,ac,ni,ri,cc,He}from"./chunk-ss7wapbh.js";import"./chunk-8adstrk5.js";import"./chunk-wkc34drs.js";import"./chunk-j4afmryj.js";import"./chunk-8xcg2dqy.js";import"./chunk-99kt56fn.js";import"./chunk-s10r6hxp.js";import"./chunk-tbef3yyk.js";import"./chunk-ab7vh24b.js";import"./chunk-pf0d8y9n.js";import"./chunk-01nx6zcw.js";import"./chunk-x0mc2kv0.js";import"./chunk-pcq6vphz.js";export{ju as clearScriptScanCache,cs as convertServerLoopAttributesToDirectives,ei as convertSignalDirectivesToAttributes,ls as convertSignalLoopsToAttributes,ac as extractExports,ri as findMarkupIndexOutsideScripts,as as hasSignalsSyntax,is as parseLoopExpression,ti as preEvalLiteralReactiveIfs,zn as processScriptSetup,ni as processSignals,cc as rewriteStxImportSpecifiers,ic as scanScriptTags,He as stripStxRuntimeImports};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Uc}from"./chunk-cnxf8e5p.js";import"./chunk-151d1av1.js";import"./chunk-a0jyh65n.js";import"./chunk-ss7wapbh.js";import"./chunk-8adstrk5.js";import"./chunk-wkc34drs.js";import"./chunk-j4afmryj.js";import"./chunk-8xcg2dqy.js";import"./chunk-99kt56fn.js";import"./chunk-s10r6hxp.js";import"./chunk-tbef3yyk.js";import"./chunk-ab7vh24b.js";import"./chunk-pf0d8y9n.js";import"./chunk-01nx6zcw.js";import"./chunk-x0mc2kv0.js";import"./chunk-pcq6vphz.js";export{Uc as startProductionServer};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{ul}from"./chunk-2swdrsrq.js";import"./chunk-ss7wapbh.js";import"./chunk-8adstrk5.js";import"./chunk-wkc34drs.js";import"./chunk-j4afmryj.js";import"./chunk-8xcg2dqy.js";import"./chunk-99kt56fn.js";import"./chunk-s10r6hxp.js";import"./chunk-tbef3yyk.js";import"./chunk-ab7vh24b.js";import"./chunk-pf0d8y9n.js";import"./chunk-01nx6zcw.js";import"./chunk-x0mc2kv0.js";import"./chunk-pcq6vphz.js";export{ul as buildApp};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{t,i}from"./chunk-
|
|
2
|
+
import{t,i}from"./chunk-ab7vh24b.js";import{Xe,Ge,Je,de,ve,E,tr,un,fe}from"./chunk-tbef3yyk.js";var C=/(?<![\w$@])@meta\s*\(/g,x=/(?<![\w$@])@metaTag\s*\(/g,N=/(?<![\w$@])@structuredData\s*\(/g,k=/(?<![\w$@])@seo\s*\(/g;function S(e,r){return(n)=>E(e,n,"the call has no closing parenthesis",r,t.INVALID_DIRECTIVE_SYNTAX)}function j(e){return"property"in e?`<meta property="${l(e.property)}" content="${l(e.content)}">`:`<meta name="${l(e.name)}" content="${l(e.content)}">`}function Cs(e,r,n,p){if(!e.includes("@meta"))return e;let s=Xe(e,C,(a,c)=>{let o=un(Ge(a),r);if(o.kind==="tag")return j(o.tag);if(o.kind==="empty")return"";return E("Meta",c,o.message,n,o.code)},S("Meta",n));return s=Xe(s,x,(a,c)=>{let o=Je(a,r);if(!o.ok)return E("MetaTag",c,o.message,n,o.code);if(o.value===void 0||o.value===null)return"";if(!ve(o.value))return E("MetaTag",c,`expected an object such as { name, content }, got ${de(o.value)}`,n,t.TYPE_ERROR);let u=o.value;if(!u.name&&!u.property&&!u.httpEquiv)return E("MetaTag",c,"the tag needs a name, property or httpEquiv",n,t.INVALID_DIRECTIVE_SYNTAX);if(u.content===void 0||u.content===null||u.content===""||u.content===!1)return"";let g="<meta";if(u.name)g+=` name="${l(u.name)}"`;if(u.property)g+=` property="${l(u.property)}"`;if(u.httpEquiv)g+=` http-equiv="${l(u.httpEquiv)}"`;return g+=` content="${l(u.content)}">`,g},S("MetaTag",n)),s}function b(e){let r=(n)=>n["@context"]?{...n}:{...n,"@context":"https://schema.org"};if(ve(e))return r(e);if(Array.isArray(e)&&e.length>0&&e.every(ve))return e.map(r);return null}function _(e){return`<script type="application/ld+json">${JSON.stringify(e).replace(/<\//g,"<\\/")}</script>`}function $s(e,r,n){if(!e.includes("@structuredData"))return e;return Xe(e,N,(p,s)=>{let a=Je(p,r);if(!a.ok)return E("StructuredData",s,a.message,n,a.code);if(a.value===void 0||a.value===null)return"";let c=b(a.value);if(!c)return E("StructuredData",s,`expected an object or an array of objects, got ${de(a.value)}`,n,t.TYPE_ERROR);try{return _(c)}catch(o){let u=o instanceof Error?o.message:String(o);return E("StructuredData",s,`the data cannot be written as JSON: ${u}`,n,t.EVALUATION_ERROR)}},S("StructuredData",n))}var L=new Set(["title","description","keywords","robots","canonical","openGraph","twitter","structuredData"]),A={image:"openGraph.image",url:"canonical or openGraph.url",type:"openGraph.type",siteName:"openGraph.siteName",locale:"openGraph.locale",og:"openGraph",author:"@meta('author', ...)"};function Es(e,r,n,p){if(!e.includes("@seo"))return e;return Xe(e,k,(s,a)=>{if(!s.trim())return E("SEO",a,"expected an object: @seo({ title, description }) or @seo(seoVariable)",n,t.INVALID_DIRECTIVE_SYNTAX);let c=Je(s,r);if(!c.ok)return E("SEO",a,c.message,n,c.code);if(c.value===void 0||c.value===null)return"";if(!ve(c.value))return E("SEO",a,`expected an object such as { title, description }, got ${de(c.value)}`,n,t.TYPE_ERROR);try{return q(c.value,a,n)}catch(o){let u=o instanceof Error?o.message:String(o);return E("SEO",a,`Error processing @seo directive: ${u}`,n,t.EVALUATION_ERROR)}},S("SEO",n))}function R(e,r,n,p){let s=e[r];if(s===void 0||s===null||s===!1)return;if(ve(s))return s;tr(n,`${r} must be an object, got ${de(s)}; its tags were left out`,p);return}function q(e,r,n){let p=Object.keys(e).filter((o)=>!L.has(o));if(p.length>0){let o=p.map((u)=>A[u]?`${u} (use ${A[u]})`:u).join(", ");tr(r,`@seo does not read ${o}; ${p.length===1?"it was":"they were"} ignored`,n)}let s="";if(e.title)s+=`<title>${l(e.title)}</title>
|
|
3
3
|
`,s+=`<meta name="title" content="${l(e.title)}">
|
|
4
4
|
`;if(e.description)s+=`<meta name="description" content="${l(e.description)}">
|
|
5
5
|
`;if(e.keywords){let o=Array.isArray(e.keywords)?e.keywords.join(", "):e.keywords;s+=`<meta name="keywords" content="${l(o)}">
|
|
@@ -25,7 +25,7 @@ import{t,i}from"./chunk-ynvce0q6.js";import{Xe,Ge,Je,ue,we,E,er,ln,pe}from"./chu
|
|
|
25
25
|
`}if(c.site)s+=`<meta name="twitter:site" content="${l(c.site)}">
|
|
26
26
|
`;if(c.creator)s+=`<meta name="twitter:creator" content="${l(c.creator)}">
|
|
27
27
|
`}if(e.structuredData!==void 0&&e.structuredData!==null){let o=b(e.structuredData);if(o)s+=`${_(o)}
|
|
28
|
-
`;else
|
|
28
|
+
`;else tr(r,`structuredData must be an object or an array of objects, got ${de(e.structuredData)}; it was left out`,n)}return s.trim()}function _s(e,r,n){if(n.seo?.enabled===!1)return e;if(e.includes("<!-- stx SEO Tags -->")||r.__stx_seo_staged===!0||n.skipDefaultSeoTags===!0)return e;let p=r.__stx_runtime_head;if(!!(p?.title||p?.meta?.some((w)=>w.property==="og:title"||w.name==="og:title"||w.name==="twitter:title"||w.name==="description")))return e;if(/<meta\s+(?:[^>]*\s)?property=["']og:title["']/i.test(e)||/<meta\s+(?:[^>]*\s)?name=["']og:title["']/i.test(e)||/<meta\s+(?:[^>]*\s)?name=["']twitter:title["']/i.test(e))return e;if(!e.includes("<head>")&&!e.includes("<head "))return e;let a=e.includes("<title>")||e.includes("</title>"),c=M(e),o=V(c),u=U(c),g="";if(r.title)g=r.title;else if(r.meta&&r.meta.title)g=r.meta.title;else if(o)g=o;else if(n.seo?.defaultConfig?.title)g=n.seo.defaultConfig.title;else g=n.defaultTitle||"stx Project";let m="";if(r.description)m=r.description;else if(r.meta&&r.meta.description)m=r.meta.description;else if(u)m=u;else if(n.seo?.defaultConfig?.description)m=n.seo.defaultConfig.description;else m=n.defaultDescription||"A website built with stx templating engine";let d="";if(r.image)d=r.image;else if(r.meta&&r.meta.image)d=r.meta.image;else if(r.openGraph&&r.openGraph.image)d=r.openGraph.image;else if(n.seo?.defaultImage)d=n.seo.defaultImage;else if(n.defaultImage)d=n.defaultImage;let f=a?"":`
|
|
29
29
|
<meta name="title" content="${l(g)}">`,h=G(c)?"":`
|
|
30
30
|
<meta name="description" content="${l(m)}">`,T=`
|
|
31
31
|
<!-- stx SEO Tags -->${f}${h}
|
|
@@ -43,7 +43,7 @@ import{t,i}from"./chunk-ynvce0q6.js";import{Xe,Ge,Je,ue,we,E,er,ln,pe}from"./chu
|
|
|
43
43
|
${T}
|
|
44
44
|
`),y;return y.replace(/<head[^>]*>/,`$&
|
|
45
45
|
${T}
|
|
46
|
-
`)}function M(e){let r=e.search(/<\/head\s*>/i);return r===-1?e:e.slice(0,r)}function v(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/�*39;|'/g,"'").replace(/&/g,"&")}function V(e){let r=e.match(/<title(?:\s[^>]*)?>([\s\S]*?)<\/title\s*>/i);return r?v(r[1].trim()):""}function O(e){return(e.match(/<meta\s[^>]*>/gi)||[]).filter((r)=>/\sname\s*=\s*["']description["']/i.test(r))}function G(e){return O(e).length>0}function U(e){for(let r of O(e)){let n=r.match(/\scontent\s*=\s*(?:"([^"]*)"|'([^']*)')/i),p=(n?.[1]??n?.[2]??"").trim();if(p)return v(p)}return""}function l(e){return String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}var
|
|
46
|
+
`)}function M(e){let r=e.search(/<\/head\s*>/i);return r===-1?e:e.slice(0,r)}function v(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/�*39;|'/g,"'").replace(/&/g,"&")}function V(e){let r=e.match(/<title(?:\s[^>]*)?>([\s\S]*?)<\/title\s*>/i);return r?v(r[1].trim()):""}function O(e){return(e.match(/<meta\s[^>]*>/gi)||[]).filter((r)=>/\sname\s*=\s*["']description["']/i.test(r))}function G(e){return O(e).length>0}function U(e){for(let r of O(e)){let n=r.match(/\scontent\s*=\s*(?:"([^"]*)"|'([^']*)')/i),p=(n?.[1]??n?.[2]??"").trim();if(p)return v(p)}return""}function l(e){return String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}var Zn={name:"meta",rawParams:!0,handler:(e,r,n,p)=>{let s=un(r,n??{});if(s.kind==="error")return E("Meta",`@meta(${r.join(", ")})`,s.message,p,s.code);if(s.kind==="empty")return"";if(n)n.__stx_runtime_head=fe(n.__stx_runtime_head??{},{meta:[s.tag]});return""},hasEndTag:!1},Qn={name:"structuredData",handler:(e,r,n,p)=>{if(e.trim()==="")return i("StructuredData","structuredData directive requires JSON-LD content",t.INVALID_DIRECTIVE_SYNTAX);try{let s=JSON.parse(e);if(!s["@context"])s["@context"]="https://schema.org";if(!s["@type"])return i("StructuredData","structuredData requires @type property",t.INVALID_DIRECTIVE_SYNTAX);return _(s)}catch(s){let a=s instanceof Error?s.message:String(s);return i("StructuredData",a,t.EVALUATION_ERROR)}},hasEndTag:!0};function Uu(){return[Zn,Qn]}function Wu(e,r){let{baseUrl:n,defaultChangefreq:p="weekly",defaultPriority:s=0.5,includeLastmod:a=!0}=r,c=n.replace(/\/$/,"");return`<?xml version="1.0" encoding="UTF-8"?>
|
|
47
47
|
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
|
48
48
|
${e.map((u)=>{let g=u.loc.startsWith("http")?u.loc:`${c}${u.loc.startsWith("/")?"":"/"}${u.loc}`,m=u.lastmod||(a?new Date().toISOString().split("T")[0]:void 0),d=u.changefreq||p,f=u.priority??s,h=` <url>
|
|
49
49
|
<loc>${I(g)}</loc>`;if(m)h+=`
|
|
@@ -52,13 +52,13 @@ ${e.map((u)=>{let g=u.loc.startsWith("http")?u.loc:`${c}${u.loc.startsWith("/")?
|
|
|
52
52
|
<priority>${f.toFixed(1)}</priority>`,h+=`
|
|
53
53
|
</url>`,h}).join(`
|
|
54
54
|
`)}
|
|
55
|
-
</urlset>`}function
|
|
55
|
+
</urlset>`}function qu(e,r){let n=r.replace(/\/$/,""),p=new Date().toISOString().split("T")[0];return`<?xml version="1.0" encoding="UTF-8"?>
|
|
56
56
|
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
|
57
57
|
${e.map((a)=>{let c=a.startsWith("http")?a:`${n}${a.startsWith("/")?"":"/"}${a}`;return` <sitemap>
|
|
58
58
|
<loc>${I(c)}</loc>
|
|
59
59
|
<lastmod>${p}</lastmod>
|
|
60
60
|
</sitemap>`}).join(`
|
|
61
61
|
`)}
|
|
62
|
-
</sitemapindex>`}async function
|
|
63
|
-
`).trim()}function
|
|
64
|
-
export{
|
|
62
|
+
</sitemapindex>`}async function Ku(e,r){let{extensions:n=[".stx",".html",".htm"],ignore:p=["_*",".*","node_modules","components","partials","layouts"]}=r,s=[],a=n.length===1?`*${n[0]}`:`*{${n.join(",")}}`,c=new Bun.Glob(`**/${a}`);for await(let o of c.scan(e)){if(p.some((f)=>{if(f.startsWith("*"))return o.includes(f.slice(1));return o.startsWith(f)||o.includes(`/${f}`)}))continue;let g=o.replace(/\\/g,"/").replace(/index\.(stx|html|htm)$/,"").replace(/\.(stx|html|htm)$/,"");if(!g.startsWith("/"))g=`/${g}`;if(g!=="/"&&g.endsWith("/"))g=g.slice(0,-1);let m=`${e}/${o}`,d;try{let f=await Bun.file(m).stat();if(f)d=new Date(f.mtime).toISOString().split("T")[0]}catch{}s.push({loc:g||"/",lastmod:d,priority:g==="/"?1:0.5})}return s.sort((o,u)=>o.loc.localeCompare(u.loc)),s}function er(e){let r=[];for(let n of e.rules){if(r.push(`User-agent: ${n.userAgent}`),n.allow)for(let p of n.allow)r.push(`Allow: ${p}`);if(n.disallow)for(let p of n.disallow)r.push(`Disallow: ${p}`);if(n.crawlDelay!==void 0)r.push(`Crawl-delay: ${n.crawlDelay}`);r.push("")}if(e.sitemap){let n=Array.isArray(e.sitemap)?e.sitemap:[e.sitemap];for(let p of n)r.push(`Sitemap: ${p}`)}if(e.host)r.push(`Host: ${e.host}`);return r.join(`
|
|
63
|
+
`).trim()}function Xu(e){return er({rules:[{userAgent:"*",allow:["/"]}],sitemap:e})}function I(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}
|
|
64
|
+
export{Cs,$s,Es,_s,Zn,Qn,Uu,Wu,qu,Ku,er,Xu};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{y}from"./chunk-
|
|
2
|
+
import{y}from"./chunk-01nx6zcw.js";import{W,ze,ns,rs,Ko,Xo,Go,Jo,Fn,ss,Yo,Zo,Qo,Ct,o}from"./chunk-ss7wapbh.js";import{Mr}from"./chunk-tdsajnjm.js";import{a}from"./chunk-kk5cyjfs.js";import{existsSync as M,readFileSync as K}from"fs";import h from"path";var me=new Set(["module","exports","require","$bool","$num","window","document","console","confirm","alert","fetch"]),te=Ct.filter((e)=>!me.has(e)).sort(),ne=[...y].sort(),he=[...new Set([...te,...ne])].sort(),be=new Set(te),ye=new Set(ne),xe=new Set(he),ee=/\bimport\s+(?!type[\s{])\{([^}]*)\}\s*from\s*(['"])stx\2/g;function Se(e,t){if(t==="server")return`'${e}' is not provided by 'stx' in a <script server> block. The engine binds only its own names there (defineProps, state, useHead, ...); any other name becomes \`await import('stx')\`, which does not resolve, so the whole script fails when the page renders. Import it from '@stacksjs/stx' instead.`;return`'${e}' is not provided by 'stx' in a client <script> block. The import is replaced by the window.stx runtime, which has no '${e}', so it is undefined in the browser.`}function ie(e,t){let s=[];for(let u of t){if(u.offset===void 0)continue;let i=u.kind==="server"?be:ye;ee.lastIndex=0;for(let l of u.code.matchAll(ee)){let g=l.index+l[0].indexOf("{")+1;for(let m of l[1].matchAll(/[^,]+/g)){let S=m[0];if(/^\s*type\s/.test(S))continue;let x=/^\s*([A-Za-z_$][\w$]*)/.exec(S);if(!x)continue;let r=x[1];if(!xe.has(r)||i.has(r))continue;let f=u.offset+g+m.index+x[0].length-r.length,p=e.slice(0,f),w=p.split(`
|
|
3
3
|
`).length;s.push({line:w,column:f-(p.lastIndexOf(`
|
|
4
|
-
`)+1)+1,offset:f,length:r.length,name:r,kind:u.kind,message:Se(r,u.kind)})}}}return s}import T from"path";var ke="@stacksjs/stx-typescript-plugin";function we(e,t){let s=T.resolve(e);for(;;){let u=T.join(s,"tsconfig.json");if(t(u))return u;let i=T.dirname(s);if(i===s)return;s=i}}function se(e,t,s){let u=we(e,s);if(!u)return;let i=new Set,l=(g)=>{if(i.has(g))return;i.add(g);let m=t(g);if(!m)return;let S=m.compilerOptions?.plugins;if(Array.isArray(S)){let r=S.find((p)=>p?.name===ke),f=Array.isArray(r?.libs)?r.libs.filter((p)=>typeof p==="string"):[];return r?{configPath:g,libs:f.map((p)=>T.resolve(T.dirname(g),p))}:null}let x=typeof m.extends==="string"?[m.extends]:Array.isArray(m.extends)?m.extends:[];for(let r of[...x].reverse()){if(typeof r!=="string"||!r.startsWith("."))continue;let f=T.resolve(T.dirname(g),r.endsWith(".json")?r:`${r}.json`),p=l(f);if(p!==void 0)return p}return};return l(u)??void 0}function
|
|
5
|
-
`.repeat(e.startLine-1):"",i=
|
|
4
|
+
`)+1)+1,offset:f,length:r.length,name:r,kind:u.kind,message:Se(r,u.kind)})}}}return s}import T from"path";var ke="@stacksjs/stx-typescript-plugin";function we(e,t){let s=T.resolve(e);for(;;){let u=T.join(s,"tsconfig.json");if(t(u))return u;let i=T.dirname(s);if(i===s)return;s=i}}function se(e,t,s){let u=we(e,s);if(!u)return;let i=new Set,l=(g)=>{if(i.has(g))return;i.add(g);let m=t(g);if(!m)return;let S=m.compilerOptions?.plugins;if(Array.isArray(S)){let r=S.find((p)=>p?.name===ke),f=Array.isArray(r?.libs)?r.libs.filter((p)=>typeof p==="string"):[];return r?{configPath:g,libs:f.map((p)=>T.resolve(T.dirname(g),p))}:null}let x=typeof m.extends==="string"?[m.extends]:Array.isArray(m.extends)?m.extends:[];for(let r of[...x].reverse()){if(typeof r!=="string"||!r.startsWith("."))continue;let f=T.resolve(T.dirname(g),r.endsWith(".json")?r:`${r}.json`),p=l(f);if(p!==void 0)return p}return};return l(u)??void 0}function Wi(e,t="",s=""){let u=e.startLine>1?`
|
|
5
|
+
`.repeat(e.startLine-1):"",i=ss(e)+rs(ns(e.code)),l=e.kind==="client"||e.kind==="plain"?Go(t,e.code):"";return Fn(`${u+i}
|
|
6
6
|
${l}
|
|
7
7
|
export {}
|
|
8
8
|
`,s)}var $e=new Set(["name","status","length","location","history","origin","closed","close","open","focus","blur","print","scroll","scrollTo","scrollBy","stop","top","parent","self","frames","event","external","menubar","toolbar"]);function ve(e){if(e.length===0)return"";let t=["// Generated \u2014 the composables the runtime publishes as bare globals."],s=new Set(y),u=[];for(let{file:i,names:l}of e){let g=JSON.stringify(i.replace(/\\/g,"/").replace(/\.ts$/,""));u.push(` export * from ${g}`);for(let m of l){if(s.has(m)||$e.has(m))continue;s.add(m),t.push(`declare const ${m}: typeof import(${g})[${JSON.stringify(m)}]`)}}return t.push("declare module '@composables' {",...u,"}"),t.join(`
|
|
9
|
-
`)}function
|
|
9
|
+
`)}function to(e,t,s){return`${e}.__stx_${t}${s}.ts`}function Xc(e){return e.replace(/\.__stx_(?:server|client|plain|template)\d+\.ts$/,"")}function qi(){return re("stx.d.ts")}function Ki(){return re("stx-module.d.ts")}function re(e){for(let t of[h.resolve(import.meta.dir,"..",e),h.resolve(import.meta.dir,"..","..",e)])if(M(t))return t;return null}var Te=/^(.*?)\((\d+),(\d+)\):\s+(error|warning)\s+TS(\d+):\s+(.*)$/;function De(e){return e>=1000&&e<2000}function oe(e){let t="",s=!1,u=!1;for(let i=0;i<e.length;i++){let l=e[i];if(s){if(t+=l,u)u=!1;else if(l==="\\")u=!0;else if(l==='"')s=!1;continue}if(l==='"'){s=!0,t+=l;continue}if(l==="/"&&e[i+1]==="/"){while(i<e.length&&e[i]!==`
|
|
10
10
|
`)i++;t+=`
|
|
11
|
-
`;continue}if(l==="/"&&e[i+1]==="*"){i+=2;while(i<e.length&&!(e[i]==="*"&&e[i+1]==="/"))i++;i++;continue}t+=l}return t.replace(/,(\s*[}\]])/g,"$1")}function Ee(e){try{return JSON.parse(oe(K(e,"utf8")))}catch{return}}function Oe(e){let t=h.resolve(e),s;for(;;){let r=h.join(t,"tsconfig.json");if(M(r)){s=r;break}let f=h.dirname(t);if(f===t)break;t=f}if(!s)return{};let u=new Set,i=s,l,g,m=s;while(i&&!u.has(i)){u.add(i);let r;try{r=JSON.parse(oe(K(i,"utf8")))}catch{break}let f=r?.compilerOptions??{};if(!l&&f.paths&&typeof f.paths==="object")l=f.paths,m=i;if(!g&&typeof f.baseUrl==="string")g=h.resolve(h.dirname(i),f.baseUrl);if(l&&g)break;i=typeof r?.extends==="string"?h.resolve(h.dirname(i),r.extends.endsWith(".json")?r.extends:`${r.extends}.json`):void 0}if(!l)return{};let S=g??h.dirname(m),x={};for(let[r,f]of Object.entries(l)){if(!Array.isArray(f))continue;x[r]=f.map((p)=>typeof p==="string"&&!h.isAbsolute(p)?h.resolve(S,p):p)}return{paths:x}}async function
|
|
12
|
-
`);for(let d of ie(c,b))S.push({file:n,line:d.line,column:d.column,code:0,message:d.message,category:"error",blockKind:d.kind});if(s&&k){let d=b.filter((O)=>O.kind!=="server"),E=[...new Set(d.flatMap((O)=>
|
|
13
|
-
`),ve(await
|
|
11
|
+
`;continue}if(l==="/"&&e[i+1]==="*"){i+=2;while(i<e.length&&!(e[i]==="*"&&e[i+1]==="/"))i++;i++;continue}t+=l}return t.replace(/,(\s*[}\]])/g,"$1")}function Ee(e){try{return JSON.parse(oe(K(e,"utf8")))}catch{return}}function Oe(e){let t=h.resolve(e),s;for(;;){let r=h.join(t,"tsconfig.json");if(M(r)){s=r;break}let f=h.dirname(t);if(f===t)break;t=f}if(!s)return{};let u=new Set,i=s,l,g,m=s;while(i&&!u.has(i)){u.add(i);let r;try{r=JSON.parse(oe(K(i,"utf8")))}catch{break}let f=r?.compilerOptions??{};if(!l&&f.paths&&typeof f.paths==="object")l=f.paths,m=i;if(!g&&typeof f.baseUrl==="string")g=h.resolve(h.dirname(i),f.baseUrl);if(l&&g)break;i=typeof r?.extends==="string"?h.resolve(h.dirname(i),r.extends.endsWith(".json")?r.extends:`${r.extends}.json`):void 0}if(!l)return{};let S=g??h.dirname(m),x={};for(let[r,f]of Object.entries(l)){if(!Array.isArray(f))continue;x[r]=f.map((p)=>typeof p==="string"&&!h.isAbsolute(p)?h.resolve(S,p):p)}return{paths:x}}async function Gc(e,t={}){let s=t.client!==!1,u=t.server!==!1,i=t.templates!==!1,l=t.componentsDir??(i?(await o()).componentsDir:void 0),g=new Map,m=new Map,S=[],x=[],r=0,f=0,p=qi();for(let n of e){let c=await Bun.file(n).text(),b=ze(c).filter((d)=>{if(d.kind==="server")return u;return s}),k=ze(c).filter((d)=>d.kind==="server").map((d)=>d.code).join(`
|
|
12
|
+
`);for(let d of ie(c,b))S.push({file:n,line:d.line,column:d.column,code:0,message:d.message,category:"error",blockKind:d.kind});if(s&&k){let d=b.filter((O)=>O.kind!=="server"),E=[...new Set(d.flatMap((O)=>Jo(k,O.code)))];if(E.length>0)m.set(n,{names:E,line:d[0].startLine,kind:d[0].kind})}let D=h.dirname(h.resolve(n)),v=i?Yo(c,{runtimeGlobals:!p,originDir:D,filePath:h.resolve(n),componentsDir:l}):null,R=v?[...v.lineMap.values()].filter((d)=>d.expression).length:0;if(b.length===0&&R===0)continue;if(x.push(n),r+=b.length,f+=R,b.forEach((d,E)=>{g.set(to(n,d.kind,E),{source:Wi(d,k,D),origin:n,kind:d.kind})}),v&&R>0)g.set(to(n,"template",0),{source:v.text,origin:n,kind:"template",virtual:v})}if(g.size===0)return{diagnostics:S,checkedFiles:x,blockCount:0,expressionCount:0};let w=(t.extraLibs??[]).map((n)=>h.resolve(n)),ce=se(e.length>0?h.dirname(h.resolve(e[0])):process.cwd(),Ee,M);for(let n of ce?.libs??[])if(!w.includes(n)&&M(n))w.push(n);if(p)w.push(p);let G=p?Ki():null;if(G)w.push(G);let X=`${a()}/typecheck/__stx_globals.d.ts`,ae=["// Generated \u2014 the context serve.ts injects into <script server> blocks.",Ko(p?Xo(K(p,"utf8")):void 0),...p?[]:["declare const window: any",...y.map((n)=>`declare const ${n}: any`)],["// Generated \u2014 the names stx auto-imports from @stacksjs/browser.",...W.map((n)=>`declare const ${n}: any`)].join(`
|
|
13
|
+
`),ve(await Mr())].filter(Boolean).join(`
|
|
14
14
|
`),_=`${a()}/typecheck`;await Bun.$`rm -rf ${_}`.quiet().nothrow(),await Bun.$`mkdir -p ${_}`.quiet().nothrow(),await Bun.write(X,ae);let N=new Map,le=0;for(let[n,c]of g){let b=`${le++}_${n.replace(/[^\w.-]+/g,"_")}`;await Bun.write(`${_}/${b}`,c.source),N.set(b,c)}let ue={target:"ESNext",module:"ESNext",moduleResolution:"bundler",strict:!0,noEmit:!0,skipLibCheck:!0,allowJs:!0,esModuleInterop:!0,resolveJsonModule:!0,lib:["ESNext","DOM","DOM.Iterable"],types:[],...Oe(e.length>0?h.dirname(h.resolve(e[0])):process.cwd()),...t.compilerOptions??{}},F=async(n,c)=>{let b=`${_}/tsconfig${c===1?"":`.${c}`}.json`;await Bun.write(b,JSON.stringify({compilerOptions:ue,files:n.map((D)=>`${_}/${D}`).concat(X,...w)},null,2));let k=Bun.spawnSync(["bun","x","tsc","-p",b,"--pretty","false"],{stdout:"pipe",stderr:"pipe"});return{output:new TextDecoder().decode(k.stdout)+new TextDecoder().decode(k.stderr),exitCode:k.exitCode??0}},V=await F([...N.keys()],1),J=V.output,I=[],U=V.exitCode,z=0,pe=new Set(w.map((n)=>n.split("/").pop())),q=0,B=new Set,H=(n)=>{for(let c of n.replace(/\n[\t ]+([^\n]*)/g," $1").split(`
|
|
15
|
-
`)){let b=c.match(Te);if(!b)continue;if(z++,pe.has(b[1].split("/").pop()))q++;let[,k,D,v,R,d,E]=b,O=k.split("/").pop(),C=N.get(O);if(!C)continue;if(De(Number(d)))B.add(O);let A=Number(D),L=Number(v),Y;if(C.virtual){let P=
|
|
15
|
+
`)){let b=c.match(Te);if(!b)continue;if(z++,pe.has(b[1].split("/").pop()))q++;let[,k,D,v,R,d,E]=b,O=k.split("/").pop(),C=N.get(O);if(!C)continue;if(De(Number(d)))B.add(O);let A=Number(D),L=Number(v),Y;if(C.virtual){let P=Qo(C.virtual,A,L);if(!P?.expression)continue;if(Zo(P,Number(d)))continue;A=P.line,L=P.column,Y=P.expression.code.trim()}I.push({file:C.origin,line:A,column:L,code:Number(d),message:E,category:R==="error"?"error":"warning",blockKind:C.kind,expression:Y})}};H(J);let de=z,fe=q;if(B.size>0&&B.size<N.size){let n=[...N.keys()].filter((c)=>!B.has(c));H((await F(n,2)).output)}if(s)for(let[n,c]of m){if(c.names.length===0)continue;I.push({file:n,line:c.line,column:1,code:0,message:`${c.names.length===1?"1 value reaches":`${c.names.length} values reach`} this block on the implicit bridge and ${c.names.length===1?"is":"are"} untyped: ${c.names.join(", ")}. Declare them with defineClientPayload({ ${c.names.join(", ")} }) in the server block to have them checked.`,category:"warning",blockKind:c.kind})}I.push(...S);let Z=new Set,j=I.filter((n)=>{let c=`${n.file}:${n.line}:${n.column}:${n.code}:${n.message}`;if(Z.has(c))return!1;return Z.add(c),!0});j.sort((n,c)=>n.file.localeCompare(c.file)||n.line-c.line||n.column-c.column);let Q=fe>0&&j.length===0,ge=Q||U!==0&&de===0?`${Q?"a file passed with --lib has errors of its own, so nothing in your code was checked":`tsc exited ${U} without reporting any diagnostic, so nothing was checked`}. `+"A syntax error in an ambient declaration file does this \u2014 skipLibCheck suppresses "+`SEMANTIC diagnostics only. tsc said:
|
|
16
16
|
${J.trim().split(`
|
|
17
17
|
`).slice(0,12).join(`
|
|
18
|
-
`)||"(no output)"}`:void 0;return{diagnostics:j,checkedFiles:x,blockCount:r,expressionCount:f,failure:ge}}function
|
|
18
|
+
`)||"(no output)"}`:void 0;return{diagnostics:j,checkedFiles:x,blockCount:r,expressionCount:f,failure:ge}}function Jc(e){return e.map((t)=>{let s=t.blockKind==="template"?`[template: ${t.expression??""}]`:`[${t.blockKind==="plain"?"<script>":`<script ${t.blockKind}>`}]`;return`${t.file}:${t.line}:${t.column} ${t.category} TS${t.code} ${t.message} ${s}`}).join(`
|
|
19
19
|
`)}
|
|
20
|
-
export{
|
|
20
|
+
export{Wi,to,Xc,qi,Ki,Gc,Jc};
|
|
@@ -159,7 +159,7 @@ else {
|
|
|
159
159
|
stxIslands.initIslands();
|
|
160
160
|
}
|
|
161
161
|
})();
|
|
162
|
-
</script>`}function b(e){let t=e.match(/<([A-Z][a-zA-Z0-9]+)[\s/>]/);if(t)return t[1];let n=e.match(/<([a-z][a-z0-9]*-[a-z0-9-]+)[\s/>]/);if(n)return n[1];return null}function w(e,t){let n={},r=/:([a-zA-Z_][\w-]*)\s*=\s*"([^"]+)"/g,i;while((i=r.exec(e))!==null){let d=i[1],o=i[2];if(o in t)n[d]=t[o];else n[d]=o}return n}function
|
|
162
|
+
</script>`}function b(e){let t=e.match(/<([A-Z][a-zA-Z0-9]+)[\s/>]/);if(t)return t[1];let n=e.match(/<([a-z][a-z0-9]*-[a-z0-9-]+)[\s/>]/);if(n)return n[1];return null}function w(e,t){let n={},r=/:([a-zA-Z_][\w-]*)\s*=\s*"([^"]+)"/g,i;while((i=r.exec(e))!==null){let d=i[1],o=i[2];if(o in t)n[d]=t[o];else n[d]=o}return n}function fa(){let e=new Map;return{islands:e,register(t){e.set(t.id,t)},get(t){return e.get(t)},async hydrate(t){let n=e.get(t);if(!n||n.hydrated)return;if(n.hydrated=!0,typeof window<"u"&&typeof window.dispatchEvent==="function")window.dispatchEvent(new CustomEvent("stx:hydrate",{detail:{id:t,component:n.component}}))},async hydrateAll(){let t=Array.from(e.values()).filter((n)=>!n.hydrated).map((n)=>this.hydrate(n.id));await Promise.all(t)}}}function I(e){return`
|
|
163
163
|
<script data-hydrate="${e}">
|
|
164
164
|
(function() {
|
|
165
165
|
const island = document.querySelector('[data-island="${e}"]');
|
|
@@ -311,7 +311,7 @@ else {
|
|
|
311
311
|
});
|
|
312
312
|
})();
|
|
313
313
|
</script>
|
|
314
|
-
`}function
|
|
314
|
+
`}function ga(e,t={},n){let r=e,i=!1,d=/@client:(load|idle|visible|media|only|hover|event)/i.test(e);if(r=u(r,"load",t),r=u(r,"idle",t),r=u(r,"visible",t),r=u(r,"media",t),r=M(r),r=u(r,"hover",t),r=u(r,"event",t),i=d&&r!==e,i)r+=`
|
|
315
315
|
`+v();return r}function u(e,t,n){let r=new RegExp(`@client:${t}(?:\\s*\\(([^)]*)\\))?\\s*([\\s\\S]*?)@endclient`,"gi");return e.replace(r,(i,d,o)=>{let a={strategy:t};if(d)try{let E=d.split(",").map((h)=>h.trim());for(let h of E){let[m,g]=h.split(":").map((p)=>p.trim());if(m&&g){let p=g.replace(/^['"]|['"]$/g,"");a[m]=p}}}catch{}let s=`island-${Math.random().toString(36).substring(2,9)}`,y=b(o.trim()),f=w(o.trim(),n),c=[];if(a.rootMargin)c.push(`data-root-margin="${a.rootMargin}"`);if(a.threshold!==void 0)c.push(`data-threshold="${a.threshold}"`);if(a.media)c.push(`data-media="${a.media}"`);if(a.event)c.push(`data-event="${a.event}"`);if(y)c.push(`data-component="${y}"`);let x=Object.keys(f).length>0?`
|
|
316
316
|
<script type="application/json" data-island-props="${s}">${JSON.stringify(f)}</script>`:"",l="";switch(t){case"load":l=I(s);break;case"idle":l=L(s,a);break;case"visible":l=C(s,a);break;case"media":l=S(s,a);break;case"hover":l=k(s);break;case"event":l=H(s,a);break}return`
|
|
317
317
|
<div data-island="${s}"
|
|
@@ -342,7 +342,7 @@ else {
|
|
|
342
342
|
}
|
|
343
343
|
})();
|
|
344
344
|
</script>
|
|
345
|
-
`})}function
|
|
345
|
+
`})}function ma(){return`
|
|
346
346
|
/* Island base styles */
|
|
347
347
|
.stx-island {
|
|
348
348
|
display: contents;
|
|
@@ -383,9 +383,9 @@ else {
|
|
|
383
383
|
.stx-island.hydrated {
|
|
384
384
|
opacity: 1;
|
|
385
385
|
}
|
|
386
|
-
`}function
|
|
386
|
+
`}function ha(e){if(typeof window>"u")return;let t=document.querySelector(`[data-island="${e}"]`);if(!t||t.classList.contains("hydrated"))return;t.classList.add("hydrated"),t.dispatchEvent(new CustomEvent("stx:hydrated",{bubbles:!0}))}function ya(e){if(typeof window>"u")return;document.querySelectorAll(`[data-strategy="${e}"]:not(.hydrated)`).forEach((n)=>{n.classList.add("hydrated"),n.dispatchEvent(new CustomEvent("stx:hydrated",{bubbles:!0}))})}function ba(){if(typeof window>"u")return;document.querySelectorAll(".stx-island:not(.hydrated)").forEach((t)=>{t.classList.add("hydrated"),t.dispatchEvent(new CustomEvent("stx:hydrated",{bubbles:!0}))})}function wa(e){if(typeof window>"u")return!1;return document.querySelector(`[data-island="${e}"]`)?.classList.contains("hydrated")??!1}function va(e){return new Promise((t)=>{if(typeof window>"u"){t();return}let n=document.querySelector(`[data-island="${e}"]`);if(!n){t();return}if(n.classList.contains("hydrated")){t();return}n.addEventListener("stx:hydrated",()=>t(),{once:!0})})}function xa(e){return e.replace(/@static\s*([\s\S]*?)@endstatic/gi,(t,n)=>`<div class="stx-static">${n.trim()}</div>`)}function Sa(e){let t=e.map((n)=>({id:n.id,component:n.component,strategy:n.options.strategy,props:n.props}));return`
|
|
387
387
|
<script type="application/json" id="stx-island-manifest">
|
|
388
388
|
${JSON.stringify(t)}
|
|
389
389
|
</script>
|
|
390
|
-
`}var
|
|
391
|
-
export{
|
|
390
|
+
`}var kl={processPartialHydrationDirectives:ga,processStaticDirectives:xa,generatePartialHydrationCSS:ma,generateIslandManifest:Sa,createIslandRegistry:fa,hydrateIsland:ha,hydrateByStrategy:ya,hydrateAll:ba,isHydrated:wa,onHydrated:va};
|
|
391
|
+
export{fa,ga,ma,ha,ya,ba,wa,va,xa,Sa,kl};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Me,Ja,Eu,_u,Tu,Ru,Ya,Za,Au,Pu,Vo,Iu,en,tn,Nn}from"./chunk-ss7wapbh.js";import"./chunk-8adstrk5.js";import"./chunk-wkc34drs.js";import"./chunk-j4afmryj.js";import"./chunk-8xcg2dqy.js";import"./chunk-99kt56fn.js";import"./chunk-s10r6hxp.js";import"./chunk-tbef3yyk.js";import"./chunk-ab7vh24b.js";import"./chunk-pf0d8y9n.js";import"./chunk-01nx6zcw.js";import"./chunk-x0mc2kv0.js";import"./chunk-pcq6vphz.js";export{Ru as __setSignalsGeneratorsForTest,Me as cacheEngineFingerprint,tn as cacheTemplate,en as checkCache,Iu as clearDevCaches,Za as getCachedRouterScript,Ya as getCachedSignalsRuntime,Au as getServeClientAsset,Vo as getServeModuleBundle,Nn as hashFilePath,_u as invalidateFileCache,Tu as invalidateFileCacheByDir,Eu as readFileCached,Pu as registerServeModuleBundle,Ja as templateCache};
|