@stacksjs/stx 0.2.874 → 0.2.876

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.
Files changed (244) hide show
  1. package/dist/chunk-027meh1k.js +2 -0
  2. package/dist/{chunk-gbtbfg7e.js → chunk-0g2mg8cw.js} +3 -3
  3. package/dist/chunk-0hs633pt.js +2 -0
  4. package/dist/chunk-0j8zre1m.js +2 -0
  5. package/dist/{chunk-6mkn81pd.js → chunk-0sa9gqmc.js} +7 -7
  6. package/dist/chunk-0v02qms8.js +2 -0
  7. package/dist/chunk-0z9gttw0.js +2 -0
  8. package/dist/chunk-11dwmcpy.js +3 -0
  9. package/dist/{chunk-vxtx0khv.js → chunk-1a237qky.js} +9 -9
  10. package/dist/{chunk-c3kanj1m.js → chunk-1ehjzhnc.js} +3 -3
  11. package/dist/chunk-1gfg6qmr.js +2 -0
  12. package/dist/chunk-1kgnk6ds.js +2 -0
  13. package/dist/{chunk-6ftee542.js → chunk-1q5w3xav.js} +2 -2
  14. package/dist/chunk-1ztp5vkh.js +3 -0
  15. package/dist/{chunk-p1a1kbhz.js → chunk-2mt2zc5y.js} +8 -8
  16. package/dist/{chunk-kdmwy40c.js → chunk-2tcyfrvb.js} +2 -2
  17. package/dist/{chunk-01mwbg1r.js → chunk-2zaatnnh.js} +4 -4
  18. package/dist/chunk-32wvc376.js +2 -0
  19. package/dist/{chunk-b8z3vepm.js → chunk-3922g6sh.js} +9 -9
  20. package/dist/chunk-3k2d2jsn.js +2 -0
  21. package/dist/{chunk-v4xes880.js → chunk-3mz9bdf7.js} +3 -3
  22. package/dist/chunk-3te2y9qf.js +2 -0
  23. package/dist/{chunk-farh4p7f.js → chunk-3w7gacva.js} +2 -2
  24. package/dist/chunk-40330tm5.js +2 -0
  25. package/dist/chunk-447jc6zc.js +2 -0
  26. package/dist/{chunk-s584xnzx.js → chunk-4517hny7.js} +2 -2
  27. package/dist/chunk-4dk6k0ad.js +2 -0
  28. package/dist/chunk-4e48zkq0.js +2 -0
  29. package/dist/chunk-5ep7p8te.js +2 -0
  30. package/dist/chunk-5gx403te.js +1184 -0
  31. package/dist/{chunk-zt9j94ak.js → chunk-6kp4mg3h.js} +2 -2
  32. package/dist/chunk-6q9a5bph.js +2 -0
  33. package/dist/{chunk-n3jw3xpj.js → chunk-75v0yxeh.js} +2 -2
  34. package/dist/chunk-7ds9mx4c.js +2 -0
  35. package/dist/chunk-7njy024g.js +2 -0
  36. package/dist/{chunk-p219rr27.js → chunk-7rep2jqh.js} +14 -14
  37. package/dist/chunk-7tjewwmd.js +2 -0
  38. package/dist/chunk-85xabvtj.js +2 -0
  39. package/dist/chunk-880f8j99.js +2 -0
  40. package/dist/chunk-8f3dbthj.js +2 -0
  41. package/dist/{chunk-nack2xs5.js → chunk-976kgb3r.js} +5 -5
  42. package/dist/chunk-99e3mxnn.js +20 -0
  43. package/dist/chunk-9gv847nn.js +2 -0
  44. package/dist/chunk-9mz2n39m.js +2 -0
  45. package/dist/{chunk-55zq2ha8.js → chunk-ae8q4gze.js} +5 -5
  46. package/dist/{chunk-hev4t4d5.js → chunk-afxfkb60.js} +6 -6
  47. package/dist/{chunk-fr72bsqd.js → chunk-akthsg33.js} +11 -11
  48. package/dist/chunk-b1tcym2x.js +2 -0
  49. package/dist/{chunk-j1efsjsb.js → chunk-b4d4tjvx.js} +5 -5
  50. package/dist/{chunk-j89p53vx.js → chunk-bdh73gxd.js} +2 -2
  51. package/dist/{chunk-4068rmzv.js → chunk-bjjfr7qt.js} +2 -2
  52. package/dist/chunk-bspj1rf1.js +2 -0
  53. package/dist/chunk-bx3hpsxn.js +2 -0
  54. package/dist/chunk-byq488g4.js +2 -0
  55. package/dist/chunk-c4s25bm2.js +2 -0
  56. package/dist/{chunk-ttm0gvrc.js → chunk-cj44e8mw.js} +5 -5
  57. package/dist/chunk-csjqtzwc.js +2 -0
  58. package/dist/{chunk-2xc457bf.js → chunk-ctjxcaxq.js} +14 -14
  59. package/dist/{chunk-79mmzprp.js → chunk-cvbwxskc.js} +5 -5
  60. package/dist/{chunk-7j0qkye5.js → chunk-d3q0cg47.js} +2 -2
  61. package/dist/{chunk-b666d8m6.js → chunk-d6gqh2wv.js} +1 -1
  62. package/dist/{chunk-vvxcebpn.js → chunk-dbvsa5ya.js} +2 -2
  63. package/dist/{chunk-hr147ys5.js → chunk-df6vjs3p.js} +5 -5
  64. package/dist/chunk-df78j74w.js +4 -0
  65. package/dist/chunk-dgs3d367.js +2 -0
  66. package/dist/chunk-dmf6zcf4.js +2 -0
  67. package/dist/{chunk-a0dsp485.js → chunk-dv56x3g8.js} +10 -10
  68. package/dist/chunk-e2b2f502.js +2 -0
  69. package/dist/chunk-ec6mrad6.js +2 -0
  70. package/dist/{chunk-xdfmrv49.js → chunk-eecctzgp.js} +6 -6
  71. package/dist/{chunk-8hhhmscy.js → chunk-eknm4jrm.js} +2 -2
  72. package/dist/{chunk-4nb7egk0.js → chunk-esjr9qhe.js} +2 -2
  73. package/dist/{chunk-wk2rge05.js → chunk-f4vgagjb.js} +3 -3
  74. package/dist/chunk-fa57bncd.js +2 -0
  75. package/dist/{chunk-qjey0jk6.js → chunk-fdjx4vs3.js} +2 -2
  76. package/dist/{chunk-pqy58ps0.js → chunk-fh72k2ks.js} +6 -6
  77. package/dist/{chunk-zfrzdje6.js → chunk-ft6em3wm.js} +6 -6
  78. package/dist/{chunk-bv9dbf4m.js → chunk-fwbccyhw.js} +2 -2
  79. package/dist/{chunk-3z4p70t5.js → chunk-g15reb1h.js} +6 -6
  80. package/dist/chunk-g4eheg0t.js +24 -0
  81. package/dist/chunk-gfe1jrw9.js +2 -0
  82. package/dist/chunk-gn16yq49.js +2 -0
  83. package/dist/{chunk-qcxrcypb.js → chunk-gqtb53s8.js} +2 -2
  84. package/dist/chunk-gvs61tqn.js +2 -0
  85. package/dist/{chunk-gxan9w4e.js → chunk-h17pfbng.js} +2 -2
  86. package/dist/chunk-h2928108.js +2 -0
  87. package/dist/chunk-hat353vx.js +2 -0
  88. package/dist/{chunk-ykapdv6d.js → chunk-j0rqa9bk.js} +3 -3
  89. package/dist/chunk-jmjgj3nh.js +2 -0
  90. package/dist/chunk-jqtpzzz4.js +12 -0
  91. package/dist/{chunk-hmdkf6c6.js → chunk-jqxerj6k.js} +2 -2
  92. package/dist/{chunk-3z1mmar2.js → chunk-jt5tzddc.js} +2 -2
  93. package/dist/{chunk-n56x7jg8.js → chunk-jvy7z3hz.js} +1 -1
  94. package/dist/{chunk-c8jhskx8.js → chunk-k0t9ye9j.js} +38 -38
  95. package/dist/{chunk-q50x1gfd.js → chunk-k1ew643q.js} +2 -2
  96. package/dist/{chunk-pqgc8k6k.js → chunk-k9dne5by.js} +1 -1
  97. package/dist/chunk-kq8mffgf.js +2 -0
  98. package/dist/chunk-kx06jzdw.js +2 -0
  99. package/dist/{chunk-ysfeg3cn.js → chunk-kywe0f1v.js} +2 -2
  100. package/dist/{chunk-60yppcbb.js → chunk-kzc2tqzr.js} +2 -2
  101. package/dist/{chunk-9zrvh3pz.js → chunk-mce3g2wb.js} +2 -2
  102. package/dist/{chunk-0k11nsv1.js → chunk-mkwavsb3.js} +3 -3
  103. package/dist/{chunk-bbq79tap.js → chunk-mw0rb1sf.js} +4 -4
  104. package/dist/chunk-n5pvdrkb.js +2 -0
  105. package/dist/chunk-ne8q191s.js +2 -0
  106. package/dist/{chunk-tabkp672.js → chunk-nn6hvsxp.js} +1 -1
  107. package/dist/{chunk-e7s109j6.js → chunk-nnp6rf4c.js} +1 -1
  108. package/dist/chunk-np8wgbsa.js +3 -0
  109. package/dist/chunk-nthw4dca.js +2 -0
  110. package/dist/{chunk-tyvm49be.js → chunk-nv4c25zj.js} +3 -3
  111. package/dist/{chunk-dhbpbjt3.js → chunk-p5m1z6e1.js} +6 -6
  112. package/dist/{chunk-18a3vdnq.js → chunk-pk714ynv.js} +4 -4
  113. package/dist/{chunk-csymxc5a.js → chunk-pp99rmjm.js} +15 -15
  114. package/dist/chunk-pqmjeea6.js +2 -0
  115. package/dist/chunk-qggwr60r.js +2 -0
  116. package/dist/chunk-qm3v4qb7.js +2 -0
  117. package/dist/{chunk-40h07m5w.js → chunk-qnwd5bz4.js} +1 -1
  118. package/dist/chunk-qty0t69x.js +2 -0
  119. package/dist/{chunk-tnp2ta5q.js → chunk-r09kz9bf.js} +2 -2
  120. package/dist/{chunk-q1wxgw5s.js → chunk-r2bxjna3.js} +2 -2
  121. package/dist/chunk-rjv6885r.js +2 -0
  122. package/dist/chunk-rm5gbthk.js +2 -0
  123. package/dist/{chunk-6vgr5g6d.js → chunk-rzd9hyhv.js} +2 -2
  124. package/dist/{chunk-8tk8yf91.js → chunk-s7fhpkvf.js} +6 -6
  125. package/dist/{chunk-ew5cey88.js → chunk-saqzk45g.js} +1 -1
  126. package/dist/chunk-sgengtap.js +2 -0
  127. package/dist/{chunk-srgnevws.js → chunk-stn7p7f1.js} +2 -2
  128. package/dist/{chunk-wa3z5c8j.js → chunk-szp7ajfm.js} +4 -4
  129. package/dist/chunk-ts37jw3s.js +2 -0
  130. package/dist/{chunk-xakypz4t.js → chunk-ttjscvre.js} +3 -3
  131. package/dist/{chunk-cqhwzd9y.js → chunk-v0tdg16k.js} +5 -5
  132. package/dist/chunk-v4emesnw.js +2 -0
  133. package/dist/{chunk-bast33qy.js → chunk-vnkvnenn.js} +6 -6
  134. package/dist/{chunk-ymdw4fhd.js → chunk-vnrbjbrw.js} +2 -2
  135. package/dist/chunk-vxra53wq.js +2 -0
  136. package/dist/{chunk-w5nw8e2p.js → chunk-w8k9fz1w.js} +7 -7
  137. package/dist/{chunk-m131znxe.js → chunk-wm029dh0.js} +13 -13
  138. package/dist/{chunk-hhbt8grm.js → chunk-wp0qpa50.js} +4 -4
  139. package/dist/{chunk-01c16zw4.js → chunk-wzvdr4ta.js} +2 -2
  140. package/dist/{chunk-e2t7mk29.js → chunk-x2ftkaz3.js} +2 -2
  141. package/dist/{chunk-atpscb2m.js → chunk-x4jzhgdm.js} +2 -2
  142. package/dist/chunk-x76qvq1n.js +2 -0
  143. package/dist/chunk-x85z6dmw.js +2 -0
  144. package/dist/chunk-xkfe03y9.js +2 -0
  145. package/dist/{chunk-v37zmez0.js → chunk-xmws1gaf.js} +2 -2
  146. package/dist/{chunk-a8164hnf.js → chunk-xtaq95em.js} +1 -1
  147. package/dist/{chunk-5a0d3048.js → chunk-y2e2zm6y.js} +3 -3
  148. package/dist/chunk-y4hn1qh0.js +2 -0
  149. package/dist/{chunk-pywz8q4k.js → chunk-y75bds1g.js} +31 -31
  150. package/dist/chunk-yc8ggeh2.js +2 -0
  151. package/dist/{chunk-r0v2chpn.js → chunk-ydppkb8y.js} +2 -2
  152. package/dist/chunk-yfed67yc.js +2 -0
  153. package/dist/{chunk-7ayvybdy.js → chunk-ysfgabpf.js} +3 -3
  154. package/dist/{chunk-fd1bpv35.js → chunk-yxdhz4ps.js} +2 -2
  155. package/dist/{chunk-rw5492e2.js → chunk-zc8a2erc.js} +4 -4
  156. package/dist/chunk-zgds9nwv.js +1609 -0
  157. package/dist/{chunk-7cvbz4eq.js → chunk-zn6n075d.js} +3 -3
  158. package/dist/cli.js +22 -22
  159. package/dist/component-library.d.ts +31 -1
  160. package/dist/component-library.js +74 -54
  161. package/dist/craft-entry.js +2 -2
  162. package/dist/craft.js +2 -2
  163. package/dist/inherited-context.d.ts +14 -0
  164. package/dist/inherited-context.js +102 -0
  165. package/dist/native-component-context.d.ts +10 -0
  166. package/dist/native-component-context.js +95 -0
  167. package/dist/pwa.js +3 -3
  168. package/dist/ssg.js +12 -12
  169. package/dist/stx-virtual-ts.d.ts +14 -2
  170. package/dist/stx-virtual-ts.js +64 -34
  171. package/dist/typecheck.d.ts +5 -2
  172. package/dist/typecheck.js +29 -19
  173. package/package.json +5 -5
  174. package/dist/chunk-09jz09k9.js +0 -20
  175. package/dist/chunk-10h8v5d4.js +0 -2
  176. package/dist/chunk-19dsn6tp.js +0 -2
  177. package/dist/chunk-26vxgd2w.js +0 -2
  178. package/dist/chunk-277dpq3b.js +0 -2
  179. package/dist/chunk-2asyyky3.js +0 -2
  180. package/dist/chunk-2r9s38f6.js +0 -2
  181. package/dist/chunk-2xhwadvn.js +0 -2
  182. package/dist/chunk-46pxmpeb.js +0 -3
  183. package/dist/chunk-4es07dwb.js +0 -2
  184. package/dist/chunk-4pr29yrx.js +0 -2
  185. package/dist/chunk-4v70bs2q.js +0 -2
  186. package/dist/chunk-4ygesqbx.js +0 -2
  187. package/dist/chunk-54jx5hqh.js +0 -2
  188. package/dist/chunk-5nj2k8zf.js +0 -2
  189. package/dist/chunk-6pczzq5f.js +0 -2
  190. package/dist/chunk-73k579v7.js +0 -2
  191. package/dist/chunk-7c9pzpsw.js +0 -2
  192. package/dist/chunk-7etvn4dx.js +0 -2
  193. package/dist/chunk-7wqevtks.js +0 -2
  194. package/dist/chunk-93538x9s.js +0 -2
  195. package/dist/chunk-9fyw1xkh.js +0 -3
  196. package/dist/chunk-9waxasf6.js +0 -712
  197. package/dist/chunk-a5qxcz86.js +0 -4
  198. package/dist/chunk-asrzmw7w.js +0 -2
  199. package/dist/chunk-awmfyb3t.js +0 -2
  200. package/dist/chunk-ba91r7q9.js +0 -2
  201. package/dist/chunk-cvgbtmxp.js +0 -2
  202. package/dist/chunk-d0h18m2r.js +0 -2
  203. package/dist/chunk-d5zh2663.js +0 -2
  204. package/dist/chunk-djdganvr.js +0 -2
  205. package/dist/chunk-dmcmxf3a.js +0 -2
  206. package/dist/chunk-eczy00w6.js +0 -2
  207. package/dist/chunk-esb34a1r.js +0 -20
  208. package/dist/chunk-f4wezqh4.js +0 -2
  209. package/dist/chunk-f52b9hjv.js +0 -2
  210. package/dist/chunk-f8pp58kw.js +0 -2
  211. package/dist/chunk-g3tfct27.js +0 -2
  212. package/dist/chunk-g9m84nqk.js +0 -2
  213. package/dist/chunk-gc4bgven.js +0 -2
  214. package/dist/chunk-gvh45ddc.js +0 -2
  215. package/dist/chunk-gvz0kqkz.js +0 -2
  216. package/dist/chunk-h2qgqjkn.js +0 -2
  217. package/dist/chunk-hcaedzck.js +0 -2
  218. package/dist/chunk-j4zrq17p.js +0 -2
  219. package/dist/chunk-kz0txvqb.js +0 -2
  220. package/dist/chunk-m9cperj4.js +0 -2
  221. package/dist/chunk-me7cxs0e.js +0 -2
  222. package/dist/chunk-meqsd5bt.js +0 -2
  223. package/dist/chunk-p2kqsb5k.js +0 -2
  224. package/dist/chunk-pvrgv5cx.js +0 -2051
  225. package/dist/chunk-rqa92xm4.js +0 -2
  226. package/dist/chunk-s54e61xt.js +0 -2
  227. package/dist/chunk-s92j8k4z.js +0 -2
  228. package/dist/chunk-sw8ms82g.js +0 -2
  229. package/dist/chunk-swfvh1cz.js +0 -3
  230. package/dist/chunk-tp2ftck2.js +0 -2
  231. package/dist/chunk-vd679g2w.js +0 -2
  232. package/dist/chunk-vk98r75z.js +0 -2
  233. package/dist/chunk-vmq773pb.js +0 -2
  234. package/dist/chunk-vv65gsys.js +0 -2
  235. package/dist/chunk-w6ry02z8.js +0 -2
  236. package/dist/chunk-w8qr5414.js +0 -2
  237. package/dist/chunk-xjxcwrqs.js +0 -2
  238. package/dist/chunk-xye2mkbh.js +0 -2
  239. package/dist/chunk-ytzzth34.js +0 -2
  240. package/dist/chunk-yxpjj003.js +0 -2
  241. package/dist/chunk-z6c4c951.js +0 -2
  242. package/dist/chunk-z9xe3xkg.js +0 -12
  243. package/dist/chunk-zmfqx1b1.js +0 -2
  244. package/dist/chunk-zze8tw0h.js +0 -2
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Pu,Do,tr,Iu,Ou,Nu,Du,Mu,Lu,ju,Bu,Fu,zu,Hu,Vu,Uu,Wu,qu,Ku,Gu,Xu,Ju,Yu,Zu,Qu,ed,td,nd,rd,sd,od,id,ad,cd,ld,ud,dd,pd,fd,gd,md,hd,yd,bd,wd,vd,xd,Sd,rn,Ua,kd,_d,Cd,Wa,Ed,Td,$d,Rd,Ad,Pd,qa,Id,Od,Nd,Dd,Md,Ld,jd,Bd,Fd,nr,zd,Hd,Vd,Ud,Wd,qd,Kd,Gd,Xd,Jd,Yd,Zd,Mo,Qd,ep,tp,np,rp,as,cs,sp,op,ip,ap,cp,Ka,lp,up,dp,Ga,Lo,pp,fp,Xa,Ja,ls,Ya,gp,sn,mp,Za,Qa,jo,hp,Bo,yp,bp,wp,vp,xp,Sp,kp,ec,_p,Cp,tc,Ep,Tp,$p,Rp,Ap,Pp,Ip,Op,Np,Dp,Mp,Lp,jp,Bp,Fp,zp,Hp,Vp,Up,Wp,qp,Kp,Gp,Xp,nc,Jp,Yp,Zp,Qp,ef,tf,nf,rf,sf,of,af,rr,rc,sc,cf,sr,lf,uf,df,oc,ic,us,ds,pf,Fo,ff,gf,mf,hf,yf,bf,wf,vf,xf,Sf,kf,_f,Cf,Ef,Tf,$f,Rf,Af,Pf,If,ac,Of,Nf,cc,lc,Df,Mf}from"./chunk-y75bds1g.js";export{xd as AVAILABLE_COMPONENTS,Ka as AutoUpdater,Sd as COMPONENT_STYLES,us as DEFAULT_WATCH_INTERVAL_MS,ic as MAX_WATCH_INTERVAL_MS,oc as MIN_WATCH_INTERVAL_MS,Pd as MODAL_STYLES,Fu as TOAST_STYLES,jd as TRAY_MENU_STYLES,Xa as UPDATE_MANIFEST_ASSET,Td as alert,qp as appInfo,bf as appleScript,Mf as applicationDataDirectory,yf as audio,Nf as backgroundDelay,Hp as battery,hf as biometric,of as bluetooth,kf as bonjour,sn as bundlePathForExecutable,hp as caffeinate,lp as canReplaceBundle,up as clearQuarantine,Op as clipboard,Ad as closeAllModals,Zd as closeAllWindows,Ed as confirm,Xp as contextMenu,Rf as continuityCamera,$f as coreml,ap as craftBinaryNotFoundMessage,Mo as craftWindowArguments,rr as crashReporter,ld as createAccordion,nd as createAutocomplete,Ku as createAvatar,qu as createBadge,zu as createButton,Gu as createCard,hd as createChart,Vu as createCheckbox,od as createChip,yd as createCodeEditor,Qu as createColorPicker,md as createDataGrid,ed as createDatePicker,cs as createDiskImage,Ju as createDropdown,wd as createFileExplorer,gp as createGitHubUpdateManifest,Ya as createGitHubUpdater,sd as createImageView,Rp as createInterval,rd as createLabel,pd as createListView,bd as createMediaPlayer,Id as createMenubar,dd as createModalComponent,Df as createNativeUpdateApi,lc as createPantrySelfUpdater,xp as createPreferences,Wu as createProgressBar,Zu as createRadioButton,Yu as createRating,ad as createScrollView,jo as createSelfUpdater,Uu as createSlider,cd as createSplitView,ud as createStepper,qa as createSystemTray,fd as createTable,Xu as createTabs,Hu as createTextInput,td as createTimePicker,$p as createTimer,id as createTooltip,gd as createTreeView,vd as createWebView,Qd as createWindow,tp as createWindowWithHTML,Bo as decaffeinate,zp as deepLinks,Ap as delay,Lu as dismissAlertById,ju as dismissAllAlerts,Bp as dragOut,dp as extractBundle,wf as fileAssociations,Fo as focus,gf as focusShortcutsReady,Ip as formatCompact,vp as formatDuration,wp as formatRemainingTime,_p as formatShortcut,Pp as formatTime,Dp as fs,Ga as generateUpdateManifest,Bu as getActiveAlertCount,Rd as getActiveModalCount,Od as getActiveTrayInstances,Jd as getActiveWindowIds,bp as getCaffeinateStatus,If as getCapabilities,ac as getCapability,Gd as getDesktopConfig,qd as getDialogBridgeScript,Tp as getRegisteredHotkeys,Md as getSimulatedTrayHTML,Ld as getTrayBridgeScript,Nd as getTrayInstance,Yd as getWindow,rp as getWindowBridgeScript,Ja as githubLatestAssetUrl,ls as githubReleaseAssetUrl,Lp as globalShortcuts,sr as handoff,ff as hasFocusShortcuts,cf as iap,kp as isAutoLaunchEnabled,Of as isAvailable,yp as isCaffeinated,Fp as isDragOutAvailable,np as isWebviewAvailable,Zp as keychain,lf as liveActivities,mf as localServer,uf as location,Sf as log,sp as macOSRuntimeExecutablePath,Gp as menu,Tf as midi,tf as nativeAutoLaunch,nf as nativeTray,rf as nativeWindow,Vp as network,Np as notifications,Mu as notify,ep as openDevWindow,op as pack,ip as packageApp,cc as parsePantryUpdateManifest,ec as parseShortcut,xf as pdf,Qp as permissions,ef as printing,$d as prompt,Za as quitLauncher,Lo as readBundleIdentity,rc as redactPII,Cp as registerHotkey,Qa as relaunchBundle,Pu as requestNotificationPermission,Xd as resetDesktopConfig,cp as resolveCraftBinary,as as resolveCraftExecutablePath,mp as runningBundleTeamId,Yp as screen,df as screenCapture,ds as screenSharing,Pf as serial,Af as serviceMenu,Sp as setAutoLaunch,Kd as setDesktopConfig,Mp as shell,Do as showAlert,Hd as showAlertDialog,zd as showColorPicker,Vd as showConfirmDialog,Ud as showErrorDialog,_d as showErrorModal,Du as showErrorToast,Ua as showInfoModal,Iu as showInfoToast,nr as showMessageBox,rn as showModal,Bd as showOpenDialog,Wa as showQuestionModal,Fd as showSaveDialog,Cd as showSuccessModal,Ou as showSuccessToast,tr as showToast,Wd as showWarningDialog,kd as showWarningModal,Nu as showWarningToast,nc as sidebar,sc as signPayload,af as speech,Cf as speechRecognition,_f as spotlight,Kp as standardMenus,pp as swapBundle,Jp as system,vf as tags,jp as theme,sf as touchbar,Dd as triggerTrayAction,Ep as unregisterAllHotkeys,tc as unregisterHotkey,Up as updater,fp as verifyBundleTrust,Ef as vision,pf as watchScreenSharing,Wp as windowEvents};
@@ -1,8 +1,8 @@
1
1
  // @bun
2
- import d from"fs";import l from"path";function Ol(n){let s=[],e=n.pwa;if(s.push({id:"pwa-enabled",name:"PWA Enabled",category:"required",passed:e?.enabled===!0,message:e?.enabled?"PWA is enabled":"PWA is not enabled in config"}),!e?.enabled)return s;s.push({id:"manifest-name",name:"App Name",category:"required",passed:Boolean(e.manifest?.name),message:e.manifest?.name?`App name: "${e.manifest.name}"`:"Missing required manifest name"}),s.push({id:"manifest-short-name",name:"Short Name",category:"recommended",passed:Boolean(e.manifest?.shortName),message:e.manifest?.shortName?`Short name: "${e.manifest.shortName}"`:"Short name not set (will use full name)"}),s.push({id:"manifest-description",name:"App Description",category:"recommended",passed:Boolean(e.manifest?.description),message:e.manifest?.description?"Description is set":"App description not provided"}),s.push({id:"manifest-theme-color",name:"Theme Color",category:"required",passed:Boolean(e.manifest?.themeColor),message:e.manifest?.themeColor?`Theme color: ${e.manifest.themeColor}`:"Theme color not set"}),s.push({id:"manifest-background-color",name:"Background Color",category:"required",passed:Boolean(e.manifest?.backgroundColor),message:e.manifest?.backgroundColor?`Background color: ${e.manifest.backgroundColor}`:"Background color not set"}),s.push({id:"manifest-display",name:"Display Mode",category:"required",passed:["standalone","fullscreen","minimal-ui"].includes(e.manifest?.display||""),message:e.manifest?.display?`Display mode: ${e.manifest.display}`:"Display mode should be standalone, fullscreen, or minimal-ui"}),s.push({id:"manifest-start-url",name:"Start URL",category:"required",passed:Boolean(e.manifest?.startUrl),message:e.manifest?.startUrl?`Start URL: ${e.manifest.startUrl}`:"Start URL not set"}),s.push({id:"icons-source",name:"Icon Source",category:"required",passed:Boolean(e.icons?.src),message:e.icons?.src?`Icon source: ${e.icons.src}`:"No icon source configured"});let a=e.icons?.sizes||[];s.push({id:"icons-192",name:"192x192 Icon",category:"required",passed:a.includes(192),message:a.includes(192)?"192x192 icon will be generated":"Missing 192x192 icon (required for Android)"}),s.push({id:"icons-512",name:"512x512 Icon",category:"required",passed:a.includes(512),message:a.includes(512)?"512x512 icon will be generated":"Missing 512x512 icon (required for splash screen)"}),s.push({id:"icons-maskable",name:"Maskable Icon",category:"recommended",passed:e.icons?.purpose?.includes("maskable")||!1,message:e.icons?.purpose?.includes("maskable")?"Maskable icon purpose is set":"Consider adding maskable icon purpose for adaptive icons"}),s.push({id:"sw-configured",name:"Service Worker",category:"required",passed:Boolean(e.serviceWorker),message:e.serviceWorker?"Service worker is configured":"Service worker configuration missing"}),s.push({id:"sw-cache-version",name:"Cache Version",category:"recommended",passed:Boolean(e.serviceWorker?.cacheVersion),message:e.serviceWorker?.cacheVersion?`Cache version: ${e.serviceWorker.cacheVersion}`:"Set cache version for proper cache busting"}),s.push({id:"offline-enabled",name:"Offline Support",category:"required",passed:e.offline?.enabled===!0,message:e.offline?.enabled?"Offline support is enabled":"Offline support is disabled"});let t=e.routes||[];return s.push({id:"caching-strategies",name:"Caching Strategies",category:"recommended",passed:t.length>0,message:t.length>0?`${t.length} route caching strategies configured`:"No custom caching strategies defined"}),s.push({id:"push-config",name:"Push Notifications",category:"optional",passed:!e.push?.enabled||Boolean(e.push?.vapidPublicKey),message:e.push?.enabled?e.push?.vapidPublicKey?"Push notifications configured with VAPID key":"Push enabled but missing VAPID key":"Push notifications not enabled"}),s.push({id:"share-target",name:"Share Target",category:"optional",passed:!0,message:e.shareTarget?.enabled?`Share target enabled at ${e.shareTarget.action}`:"Share target not enabled"}),s.push({id:"auto-inject",name:"Auto-injection",category:"recommended",passed:e.autoInject!==!1,message:e.autoInject!==!1?"PWA tags will be auto-injected":"Auto-injection disabled - manual tag insertion required"}),s}function Nl(n){let s=[],e=l.join(n,"manifest.json"),a=d.existsSync(e);if(s.push({id:"build-manifest",name:"Manifest File",category:"required",passed:a,message:a?"manifest.json exists":"manifest.json not found in build output"}),a)try{let r=JSON.parse(d.readFileSync(e,"utf-8"));s.push({id:"build-manifest-valid",name:"Valid Manifest JSON",category:"required",passed:!0,message:"Manifest is valid JSON"}),s.push({id:"build-manifest-icons",name:"Manifest Icons",category:"required",passed:Array.isArray(r.icons)&&r.icons.length>0,message:r.icons?.length?`${r.icons.length} icons defined in manifest`:"No icons defined in manifest"})}catch{s.push({id:"build-manifest-valid",name:"Valid Manifest JSON",category:"required",passed:!1,message:"Manifest is not valid JSON"})}let t=l.join(n,"sw.js"),c=d.existsSync(t);s.push({id:"build-sw",name:"Service Worker File",category:"required",passed:c,message:c?"Service worker (sw.js) exists":"Service worker not found in build output"});let o=l.join(n,"offline.html"),u=d.existsSync(o);s.push({id:"build-offline",name:"Offline Page",category:"recommended",passed:u,message:u?"Offline page exists":"No offline.html found"});let i=l.join(n,"pwa-icons");if(d.existsSync(i)){let r=d.readdirSync(i).filter((m)=>m.endsWith(".png")||m.endsWith(".webp"));s.push({id:"build-icons",name:"Generated Icons",category:"required",passed:r.length>0,message:r.length>0?`${r.length} icon files generated`:"No icon files found"})}else s.push({id:"build-icons",name:"Generated Icons",category:"required",passed:!1,message:"Icons directory not found"});return s}function Dl(n){let s=n.filter((i)=>i.category==="required"),e=n.filter((i)=>i.category==="recommended"),a=s.filter((i)=>i.passed).length,t=e.filter((i)=>i.passed).length,c=s.length>0?a/s.length*70:70,o=e.length>0?t/e.length*30:30;return{score:Math.round(c+o),passed:n.filter((i)=>i.passed).length,failed:n.filter((i)=>!i.passed&&i.category==="required").length,warnings:n.filter((i)=>!i.passed&&i.category!=="required").length,checks:n}}function jg(n,s){let e=Ol(n),a=s&&d.existsSync(s)?Nl(s):[];return Dl([...e,...a])}function Bg(n){let s=[];s.push(`
2
+ import d from"fs";import l from"path";function Ml(n){let s=[],e=n.pwa;if(s.push({id:"pwa-enabled",name:"PWA Enabled",category:"required",passed:e?.enabled===!0,message:e?.enabled?"PWA is enabled":"PWA is not enabled in config"}),!e?.enabled)return s;s.push({id:"manifest-name",name:"App Name",category:"required",passed:Boolean(e.manifest?.name),message:e.manifest?.name?`App name: "${e.manifest.name}"`:"Missing required manifest name"}),s.push({id:"manifest-short-name",name:"Short Name",category:"recommended",passed:Boolean(e.manifest?.shortName),message:e.manifest?.shortName?`Short name: "${e.manifest.shortName}"`:"Short name not set (will use full name)"}),s.push({id:"manifest-description",name:"App Description",category:"recommended",passed:Boolean(e.manifest?.description),message:e.manifest?.description?"Description is set":"App description not provided"}),s.push({id:"manifest-theme-color",name:"Theme Color",category:"required",passed:Boolean(e.manifest?.themeColor),message:e.manifest?.themeColor?`Theme color: ${e.manifest.themeColor}`:"Theme color not set"}),s.push({id:"manifest-background-color",name:"Background Color",category:"required",passed:Boolean(e.manifest?.backgroundColor),message:e.manifest?.backgroundColor?`Background color: ${e.manifest.backgroundColor}`:"Background color not set"}),s.push({id:"manifest-display",name:"Display Mode",category:"required",passed:["standalone","fullscreen","minimal-ui"].includes(e.manifest?.display||""),message:e.manifest?.display?`Display mode: ${e.manifest.display}`:"Display mode should be standalone, fullscreen, or minimal-ui"}),s.push({id:"manifest-start-url",name:"Start URL",category:"required",passed:Boolean(e.manifest?.startUrl),message:e.manifest?.startUrl?`Start URL: ${e.manifest.startUrl}`:"Start URL not set"}),s.push({id:"icons-source",name:"Icon Source",category:"required",passed:Boolean(e.icons?.src),message:e.icons?.src?`Icon source: ${e.icons.src}`:"No icon source configured"});let a=e.icons?.sizes||[];s.push({id:"icons-192",name:"192x192 Icon",category:"required",passed:a.includes(192),message:a.includes(192)?"192x192 icon will be generated":"Missing 192x192 icon (required for Android)"}),s.push({id:"icons-512",name:"512x512 Icon",category:"required",passed:a.includes(512),message:a.includes(512)?"512x512 icon will be generated":"Missing 512x512 icon (required for splash screen)"}),s.push({id:"icons-maskable",name:"Maskable Icon",category:"recommended",passed:e.icons?.purpose?.includes("maskable")||!1,message:e.icons?.purpose?.includes("maskable")?"Maskable icon purpose is set":"Consider adding maskable icon purpose for adaptive icons"}),s.push({id:"sw-configured",name:"Service Worker",category:"required",passed:Boolean(e.serviceWorker),message:e.serviceWorker?"Service worker is configured":"Service worker configuration missing"}),s.push({id:"sw-cache-version",name:"Cache Version",category:"recommended",passed:Boolean(e.serviceWorker?.cacheVersion),message:e.serviceWorker?.cacheVersion?`Cache version: ${e.serviceWorker.cacheVersion}`:"Set cache version for proper cache busting"}),s.push({id:"offline-enabled",name:"Offline Support",category:"required",passed:e.offline?.enabled===!0,message:e.offline?.enabled?"Offline support is enabled":"Offline support is disabled"});let t=e.routes||[];return s.push({id:"caching-strategies",name:"Caching Strategies",category:"recommended",passed:t.length>0,message:t.length>0?`${t.length} route caching strategies configured`:"No custom caching strategies defined"}),s.push({id:"push-config",name:"Push Notifications",category:"optional",passed:!e.push?.enabled||Boolean(e.push?.vapidPublicKey),message:e.push?.enabled?e.push?.vapidPublicKey?"Push notifications configured with VAPID key":"Push enabled but missing VAPID key":"Push notifications not enabled"}),s.push({id:"share-target",name:"Share Target",category:"optional",passed:!0,message:e.shareTarget?.enabled?`Share target enabled at ${e.shareTarget.action}`:"Share target not enabled"}),s.push({id:"auto-inject",name:"Auto-injection",category:"recommended",passed:e.autoInject!==!1,message:e.autoInject!==!1?"PWA tags will be auto-injected":"Auto-injection disabled - manual tag insertion required"}),s}function Ll(n){let s=[],e=l.join(n,"manifest.json"),a=d.existsSync(e);if(s.push({id:"build-manifest",name:"Manifest File",category:"required",passed:a,message:a?"manifest.json exists":"manifest.json not found in build output"}),a)try{let r=JSON.parse(d.readFileSync(e,"utf-8"));s.push({id:"build-manifest-valid",name:"Valid Manifest JSON",category:"required",passed:!0,message:"Manifest is valid JSON"}),s.push({id:"build-manifest-icons",name:"Manifest Icons",category:"required",passed:Array.isArray(r.icons)&&r.icons.length>0,message:r.icons?.length?`${r.icons.length} icons defined in manifest`:"No icons defined in manifest"})}catch{s.push({id:"build-manifest-valid",name:"Valid Manifest JSON",category:"required",passed:!1,message:"Manifest is not valid JSON"})}let t=l.join(n,"sw.js"),c=d.existsSync(t);s.push({id:"build-sw",name:"Service Worker File",category:"required",passed:c,message:c?"Service worker (sw.js) exists":"Service worker not found in build output"});let o=l.join(n,"offline.html"),u=d.existsSync(o);s.push({id:"build-offline",name:"Offline Page",category:"recommended",passed:u,message:u?"Offline page exists":"No offline.html found"});let i=l.join(n,"pwa-icons");if(d.existsSync(i)){let r=d.readdirSync(i).filter((m)=>m.endsWith(".png")||m.endsWith(".webp"));s.push({id:"build-icons",name:"Generated Icons",category:"required",passed:r.length>0,message:r.length>0?`${r.length} icon files generated`:"No icon files found"})}else s.push({id:"build-icons",name:"Generated Icons",category:"required",passed:!1,message:"Icons directory not found"});return s}function jl(n){let s=n.filter((i)=>i.category==="required"),e=n.filter((i)=>i.category==="recommended"),a=s.filter((i)=>i.passed).length,t=e.filter((i)=>i.passed).length,c=s.length>0?a/s.length*70:70,o=e.length>0?t/e.length*30:30;return{score:Math.round(c+o),passed:n.filter((i)=>i.passed).length,failed:n.filter((i)=>!i.passed&&i.category==="required").length,warnings:n.filter((i)=>!i.passed&&i.category!=="required").length,checks:n}}function zg(n,s){let e=Ml(n),a=s&&d.existsSync(s)?Ll(s):[];return jl([...e,...a])}function Hg(n){let s=[];s.push(`
3
3
  === PWA Audit Report ===
4
4
  `);let e=n.score>=90?"32":n.score>=70?"33":"31";s.push(`Score: \x1B[${e}m${n.score}/100\x1B[0m`),s.push(`Passed: ${n.passed} | Failed: ${n.failed} | Warnings: ${n.warnings}
5
5
  `);let a=["required","recommended","optional"];for(let t of a){let c=n.checks.filter((o)=>o.category===t);if(c.length===0)continue;s.push(`
6
6
  ${t.toUpperCase()}:`);for(let o of c){let u=o.passed?"\x1B[32m\u2713\x1B[0m":"\x1B[31m\u2717\x1B[0m";if(s.push(` ${u} ${o.name}: ${o.message}`),o.details)s.push(` ${o.details}`)}}return s.push(""),s.join(`
7
7
  `)}
8
- export{Ol,Nl,Dl,jg,Bg};
8
+ export{Ml,Ll,jl,zg,Hg};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Aa,Pa,lu,uu,du,pu,Jm}from"./chunk-afxfkb60.js";export{Aa as createVirtualList,Jm as default,lu as generateVirtualListCSS,du as processInfiniteListDirectives,pu as processVirtualGridDirectives,Pa as processVirtualListDirectives,uu as useVirtualList};
@@ -1,7 +1,7 @@
1
1
  // @bun
2
- import{existsSync as x,realpathSync as b,statSync as y}from"fs";import f from"path";import k from"process";var E=/^[\w-]+(?:\/[\w-]+)*$/,j=/^[\w-]+$/;async function Wr(s,e){let n=f.resolve(s,e.dir);if(!e.languages?.length)throw Error("messages.languages must name at least one language");let a=new Map,r=new Map;for(let t of e.languages){if(!j.test(t))throw Error(`messages: "${t}" is not a language directory name`);let g=f.join(n,t);if(!x(g))throw Error(`messages: ${f.relative(s,g)} does not exist`);let o=new Map;for(let i of[...new Bun.Glob("**/*.{ts,js,mjs,json}").scanSync({cwd:g})].sort()){if(/\.(?:test|spec|d)\.[^.]+$/.test(i))continue;let l=i.replace(/\.[^./]+$/,"").split(f.sep).join("/");if(!E.test(l))throw Error(`messages: ${t}/${i} is not an area name`);if(o.has(l))throw Error(`messages: ${t}/${l} is defined twice`);let c=f.join(g,i),p=await import(c),m=Object.keys(p).filter((S)=>S!=="default");if(m.length)throw Error(`messages: ${t}/${i} exports ${m.join(", ")}; a message module exports its messages as default, and nothing else`);let u=p.default,d=u!==null&&typeof u==="object"&&!Array.isArray(u)?JSON.stringify(u):void 0;if(d===void 0||!Bun.deepEquals(JSON.parse(d),u,!0))throw Error(`messages: ${t}/${i} must export plain data (an object JSON can hold) as default`);o.set(l,d),a.set(c,{language:t,area:l})}r.set(t,o)}return{files:a,data:r}}function h(s,e){return`stx-messages:${s}:${e}`}function _(s,e){let n=JSON.stringify(h(s,e));return`var kept = globalThis.__stxMessages || (globalThis.__stxMessages = {});
3
- export default kept[${n}] || (kept[${n}] = {});`}var M=new Map;function qr(s){let e=[s];try{e.push(b(s))}catch{}for(let n of[...e])if(n.startsWith("/private/"))e.push(n.slice(8));return[...new Set(e)]}function rm(s,e=k.env){if(!s.messages||e.STX_PAGE_MESSAGES==="0")return!1;return e.STX_PAGE_MESSAGES==="1"||e.NODE_ENV==="production"}async function sm(s,e){let n=f.resolve(s,e.dir),a=e.languages.map((c)=>{try{return`${c}:${y(f.join(n,c)).mtimeMs}`}catch{return`${c}:-`}}).join("|"),r=`${n}\x00${e.languages.join(",")}\x00${e.fallback??""}`,t=M.get(r);if(t&&t.signature===a)return t.messages;let g=await Wr(s,e),o=new Map;for(let[c,{language:p,area:m}]of g.files){let u=_(p,m);for(let d of qr(c))o.set(d,u)}let i=e.fallback??e.languages[0];if(!e.languages.includes(i))throw Error(`messages.fallback "${i}" is not one of messages.languages`);let l={...g,stubs:o,languages:[...e.languages],fallback:i};return M.set(r,{signature:a,messages:l}),l}function om(...s){let e=new Set;for(let n of s){if(!n||!n.includes("stx-messages:"))continue;for(let a of n.matchAll(/stx-messages:[\w-]+:([\w/-]+)/g))e.add(a[1])}return e}function im(s,e){let n=/<html\b[^>]*>/i.exec(s)?.[0]??"",a=/\slang\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+))/i.exec(n),r=(a?a[1]??a[2]??a[3]??"":"").trim().toLowerCase(),t=new Map(e.languages.map((o)=>[o.toLowerCase(),o])),g=t.get(r)??t.get(r.split(/[-_]/)[0]??"");if(!g)return[...e.languages];return[...new Set([g,e.fallback])]}var w=new WeakMap;function am(s,e,n){let a=[...n].sort(),r=w.get(s);if(!r)w.set(s,r=new Map);let t=`${e.join(",")}\x00${a.join(",")}`;if(r.has(t))return r.get(t);let g=P(s,e,a);return r.set(t,g),g}function P(s,e,n){let a=[];for(let r of e){let t=s.data.get(r);if(!t)continue;for(let g of n){let o=t.get(g);if(o!==void 0)a.push(`put(${JSON.stringify(h(r,g))},${JSON.stringify(o)})`)}}if(a.length===0)return null;return`;(function(){var kept=globalThis.__stxMessages||(globalThis.__stxMessages={}),filled=globalThis.__stxMessagesFilled||(globalThis.__stxMessagesFilled={});function put(key,json){if(filled[key])return;filled[key]=1;var into=kept[key]||(kept[key]={}),data=JSON.parse(json);for(var name in data)into[name]=data[name]}
2
+ import{existsSync as x,realpathSync as b,statSync as y}from"fs";import f from"path";import k from"process";var E=/^[\w-]+(?:\/[\w-]+)*$/,j=/^[\w-]+$/;async function qr(s,e){let n=f.resolve(s,e.dir);if(!e.languages?.length)throw Error("messages.languages must name at least one language");let a=new Map,r=new Map;for(let t of e.languages){if(!j.test(t))throw Error(`messages: "${t}" is not a language directory name`);let g=f.join(n,t);if(!x(g))throw Error(`messages: ${f.relative(s,g)} does not exist`);let o=new Map;for(let i of[...new Bun.Glob("**/*.{ts,js,mjs,json}").scanSync({cwd:g})].sort()){if(/\.(?:test|spec|d)\.[^.]+$/.test(i))continue;let l=i.replace(/\.[^./]+$/,"").split(f.sep).join("/");if(!E.test(l))throw Error(`messages: ${t}/${i} is not an area name`);if(o.has(l))throw Error(`messages: ${t}/${l} is defined twice`);let c=f.join(g,i),p=await import(c),m=Object.keys(p).filter((S)=>S!=="default");if(m.length)throw Error(`messages: ${t}/${i} exports ${m.join(", ")}; a message module exports its messages as default, and nothing else`);let u=p.default,d=u!==null&&typeof u==="object"&&!Array.isArray(u)?JSON.stringify(u):void 0;if(d===void 0||!Bun.deepEquals(JSON.parse(d),u,!0))throw Error(`messages: ${t}/${i} must export plain data (an object JSON can hold) as default`);o.set(l,d),a.set(c,{language:t,area:l})}r.set(t,o)}return{files:a,data:r}}function h(s,e){return`stx-messages:${s}:${e}`}function _(s,e){let n=JSON.stringify(h(s,e));return`var kept = globalThis.__stxMessages || (globalThis.__stxMessages = {});
3
+ export default kept[${n}] || (kept[${n}] = {});`}var M=new Map;function Kr(s){let e=[s];try{e.push(b(s))}catch{}for(let n of[...e])if(n.startsWith("/private/"))e.push(n.slice(8));return[...new Set(e)]}function im(s,e=k.env){if(!s.messages||e.STX_PAGE_MESSAGES==="0")return!1;return e.STX_PAGE_MESSAGES==="1"||e.NODE_ENV==="production"}async function am(s,e){let n=f.resolve(s,e.dir),a=e.languages.map((c)=>{try{return`${c}:${y(f.join(n,c)).mtimeMs}`}catch{return`${c}:-`}}).join("|"),r=`${n}\x00${e.languages.join(",")}\x00${e.fallback??""}`,t=M.get(r);if(t&&t.signature===a)return t.messages;let g=await qr(s,e),o=new Map;for(let[c,{language:p,area:m}]of g.files){let u=_(p,m);for(let d of Kr(c))o.set(d,u)}let i=e.fallback??e.languages[0];if(!e.languages.includes(i))throw Error(`messages.fallback "${i}" is not one of messages.languages`);let l={...g,stubs:o,languages:[...e.languages],fallback:i};return M.set(r,{signature:a,messages:l}),l}function cm(...s){let e=new Set;for(let n of s){if(!n||!n.includes("stx-messages:"))continue;for(let a of n.matchAll(/stx-messages:[\w-]+:([\w/-]+)/g))e.add(a[1])}return e}function lm(s,e){let n=/<html\b[^>]*>/i.exec(s)?.[0]??"",a=/\slang\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+))/i.exec(n),r=(a?a[1]??a[2]??a[3]??"":"").trim().toLowerCase(),t=new Map(e.languages.map((o)=>[o.toLowerCase(),o])),g=t.get(r)??t.get(r.split(/[-_]/)[0]??"");if(!g)return[...e.languages];return[...new Set([g,e.fallback])]}var w=new WeakMap;function um(s,e,n){let a=[...n].sort(),r=w.get(s);if(!r)w.set(s,r=new Map);let t=`${e.join(",")}\x00${a.join(",")}`;if(r.has(t))return r.get(t);let g=P(s,e,a);return r.set(t,g),g}function P(s,e,n){let a=[];for(let r of e){let t=s.data.get(r);if(!t)continue;for(let g of n){let o=t.get(g);if(o!==void 0)a.push(`put(${JSON.stringify(h(r,g))},${JSON.stringify(o)})`)}}if(a.length===0)return null;return`;(function(){var kept=globalThis.__stxMessages||(globalThis.__stxMessages={}),filled=globalThis.__stxMessagesFilled||(globalThis.__stxMessagesFilled={});function put(key,json){if(filled[key])return;filled[key]=1;var into=kept[key]||(kept[key]={}),data=JSON.parse(json);for(var name in data)into[name]=data[name]}
4
4
  ${a.join(`;
5
5
  `)};
6
6
  })();`}
7
- export{Wr,qr,rm,sm,om,im,am};
7
+ export{qr,Kr,im,am,cm,lm,um};
@@ -1,6 +1,6 @@
1
1
  // @bun
2
2
  var i=/<!--[\s\S]*?-->|<(script|style|textarea|title)\b[^>]*>[\s\S]*?<\/\1\s*>|<\/(head|body)\s*>/gi;function o(e,r,t){if(!e.includes(`</${r}`)&&!e.includes(`</${r.toUpperCase()}`))return-1;let n=-1;i.lastIndex=0;for(let s=i.exec(e);s;s=i.exec(e)){if(s[2]?.toLowerCase()!==r)continue;if(n=s.index,t==="first")break}return i.lastIndex=0,n}function D(e){return o(e,"head","first")}function c(e){return o(e,"body","last")}function f(e,r,t=`
3
- `){let n=D(e);if(n===-1)return e;return`${e.slice(0,n)}${r}${t}${e.slice(n)}`}function Ui(e,r,t=`
3
+ `){let n=D(e);if(n===-1)return e;return`${e.slice(0,n)}${r}${t}${e.slice(n)}`}function Xi(e,r,t=`
4
4
  `){let n=c(e);if(n===-1)return`${e}
5
5
  ${r}`;return`${e.slice(0,n)}${r}${t}${e.slice(n)}`}
6
- export{D,c,f,Ui};
6
+ export{D,c,f,Xi};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import c from"fs";import i from"path";import{createHash as k}from"crypto";var j=["pages","components","layouts","partials","composables"],w=new Set;function Nc(e){try{return w.has(c.realpathSync(e))}catch{return w.has(i.resolve(e))}}var _=new Set(["extends","root",...j.map((e)=>`${e}Dir`),"publicDir","stateDir","cachePath"]),x=(e)=>e!==null&&typeof e==="object"&&(Object.getPrototypeOf(e)===Object.prototype||Object.getPrototypeOf(e)===null);function b(e,n,r=""){if(Array.isArray(n))return["middleware","plugins"].includes(r)?[...Array.isArray(e)?e:[],...n]:[...n];if(!x(n))return n;let o={...x(e)?e:{}};for(let[s,a]of Object.entries(n)){if(["__proto__","constructor","prototype"].includes(s))throw Error(`Invalid layer config key: ${s}`);o[s]=b(o[s],a,s)}return o}function v(e){for(let n of["stx.config.ts","stx.config.js","stx.config.mjs",".config/stx.config.ts",".config/stx.ts","ui.config.ts"]){let r=i.join(e,n);if(c.existsSync(r))return c.realpathSync(r)}throw Error(`Application layer has no stx.config.ts: ${e}`)}function E(e,n,r){if(typeof e!=="string"||!e||/^(?:https?:|git[+:])/.test(e))throw Error(`Invalid application layer ${JSON.stringify(e)} in ${n}; use a local path or installed package`);if(e.startsWith(".")||i.isAbsolute(e)){let s=i.resolve(n,e);return c.statSync(s).isDirectory()?v(s):c.realpathSync(s)}let o=n;while(!0){let s=i.join(o,"node_modules",e),a=i.join(s,"package.json");if(c.existsSync(a)){r.add(c.realpathSync(a));let g=JSON.parse(c.readFileSync(a,"utf8"));return g.stx?.layer?c.realpathSync(i.resolve(s,g.stx.layer)):v(s)}let p=i.dirname(o);if(p===o)break;o=p}throw Error(`Cannot resolve application layer ${JSON.stringify(e)} from ${n}`)}async function C(e,n){let r=await Bun.build({entrypoints:[e],target:"bun",format:"esm",splitting:!1,plugins:[{name:"stx-layer-config",setup(a){a.onResolve({filter:/^[^./]/},(p)=>{if(p.path.startsWith("node:"))return{path:p.path,external:!0};return{path:Bun.resolveSync(p.path,p.resolveDir),external:!0}}),a.onLoad({filter:/./},(p)=>{let g=c.realpathSync(p.path);n.add(g),w.add(g);return})}}]});if(!r.success)throw Error(`Cannot load layer ${e}: ${r.logs.join(`
3
- `)}`);let o=r.outputs.find((a)=>a.kind==="entry-point");if(!o||r.outputs.length!==1)throw Error(`Unsupported layer config output: ${e}`);let s=(await import(`data:text/javascript;base64,${Buffer.from(await o.text()).toString("base64")}`)).default;if(!x(s))throw Error(`Layer ${e} must default-export a config object`);return s}async function Dc(e,n){let r=new Set,o=[],s=[],a=new Set,p=[];async function g(t,l){if(t=c.realpathSync(t),p.includes(t))throw Error(`Application layer cycle: ${[...p,t].join(" -> ")}`);if(a.has(t))return;a.add(t),p.push(t);let d=await C(t,r);l??=i.basename(i.dirname(t))===".config"?i.dirname(i.dirname(t)):i.dirname(t),l=c.realpathSync(l);let D=i.resolve(l,d.root??"."),L=Object.fromEntries(j.map((y)=>[y,i.resolve(D,d[`${y}Dir`]??(y==="composables"?"functions":y))]));o.push({root:l,configFile:t,resources:L});let u={...d};if(u.plugins)u.plugins=u.plugins.map((y)=>{let h=typeof y==="string"?y:y[0],S=h.startsWith(".")?i.resolve(l,h):i.isAbsolute(h)?h:Bun.resolveSync(h,l);return r.add(c.realpathSync(S)),typeof y==="string"?S:[S,y[1]]});if(typeof u.css==="string")u.css=i.resolve(l,u.css);if(u.serverApi)u.serverApi={...typeof u.serverApi==="object"?u.serverApi:{},dir:i.resolve(l,typeof u.serverApi==="object"?u.serverApi.dir??"server/api":"server/api")};if(s.push(u),d.extends!==void 0&&!Array.isArray(d.extends))throw Error(`extends in ${t} must be an array`);for(let y of d.extends??[])await g(E(y,l,r));p.pop()}await g(v(e),e);for(let t of["package.json","bun.lock","package-lock.json","pnpm-lock.yaml"]){let l=i.join(e,t);if(c.existsSync(l))r.add(c.realpathSync(l))}let f=b({},n);for(let t=s.length-1;t>=0;t--){let l=t===0?s[t]:Object.fromEntries(Object.entries(s[t]).filter(([d])=>!_.has(d)));f=b(f,l)}let m={layers:o,configDependencies:[...r].sort()};return f._layerGraph=m,f._layerPageDirs=o.map((t)=>t.resources.pages),f._layerComponentDirs=o.map((t)=>t.resources.components),f._layerLayoutDirs=o.map((t)=>t.resources.layouts),f._layerPartialDirs=o.map((t)=>t.resources.partials),f._layerComposableDirs=o.map((t)=>t.resources.composables),await oi(m,e),{config:f,graph:m}}async function oi(e,n){let r=new Map,o=[];for(let s of e.layers)for(let[a,p]of Object.entries(s.resources)){if(!c.existsSync(p))continue;let g=new Bun.Glob(a==="composables"?"**/*.ts":"**/*.stx");for(let f of[...g.scanSync({cwd:p})].sort()){let m=`${a}/${f}`,t=i.join(p,f),l=r.get(m);if(l)o.push({resource:m,winner:l,shadowed:t});else r.set(m,t)}}Object.assign(e,{overrides:o}),await Bun.write(i.join(n,".stx/layers.json"),JSON.stringify(e,null,2))}function A(e){let n=new Set(e.configDependencies);function r(o){if(!c.existsSync(o))return;n.add(o);for(let s of c.readdirSync(o,{withFileTypes:!0}).sort((a,p)=>a.name.localeCompare(p.name))){if(s.name.startsWith(".")||s.name==="node_modules")continue;let a=i.join(o,s.name);if(s.isDirectory())r(a);else if(s.isFile())n.add(a)}}for(let o of e.layers)for(let s of Object.values(o.resources))r(s);return[...n].sort()}function Rs(e){return O(A(e))}function As(e){return O(e.configDependencies)}function O(e){return e.map((n)=>{try{let r=c.statSync(n);return`${n}:${r.mtimeMs}:${r.size}`}catch{return`${n}:missing`}}).join(`
4
- `)}function Mc(e){return e.layers.map((n)=>({config:i.relative(n.root,n.configFile),files:A({layers:[n],configDependencies:e.configDependencies.filter((r)=>r.startsWith(`${n.root}${i.sep}`))}).filter((r)=>c.statSync(r).isFile()).map((r)=>({path:i.relative(n.root,r).replaceAll(i.sep,"/"),sha256:k("sha256").update(c.readFileSync(r)).digest("hex")}))}))}
5
- export{Nc,Dc,oi,Rs,As,Mc};
2
+ import c from"fs";import i from"path";import{createHash as k}from"crypto";var j=["pages","components","layouts","partials","composables"],w=new Set;function Lc(e){try{return w.has(c.realpathSync(e))}catch{return w.has(i.resolve(e))}}var _=new Set(["extends","root",...j.map((e)=>`${e}Dir`),"publicDir","stateDir","cachePath"]),x=(e)=>e!==null&&typeof e==="object"&&(Object.getPrototypeOf(e)===Object.prototype||Object.getPrototypeOf(e)===null);function b(e,n,r=""){if(Array.isArray(n))return["middleware","plugins"].includes(r)?[...Array.isArray(e)?e:[],...n]:[...n];if(!x(n))return n;let o={...x(e)?e:{}};for(let[s,a]of Object.entries(n)){if(["__proto__","constructor","prototype"].includes(s))throw Error(`Invalid layer config key: ${s}`);o[s]=b(o[s],a,s)}return o}function v(e){for(let n of["stx.config.ts","stx.config.js","stx.config.mjs",".config/stx.config.ts",".config/stx.ts","ui.config.ts"]){let r=i.join(e,n);if(c.existsSync(r))return c.realpathSync(r)}throw Error(`Application layer has no stx.config.ts: ${e}`)}function E(e,n,r){if(typeof e!=="string"||!e||/^(?:https?:|git[+:])/.test(e))throw Error(`Invalid application layer ${JSON.stringify(e)} in ${n}; use a local path or installed package`);if(e.startsWith(".")||i.isAbsolute(e)){let s=i.resolve(n,e);return c.statSync(s).isDirectory()?v(s):c.realpathSync(s)}let o=n;while(!0){let s=i.join(o,"node_modules",e),a=i.join(s,"package.json");if(c.existsSync(a)){r.add(c.realpathSync(a));let g=JSON.parse(c.readFileSync(a,"utf8"));return g.stx?.layer?c.realpathSync(i.resolve(s,g.stx.layer)):v(s)}let p=i.dirname(o);if(p===o)break;o=p}throw Error(`Cannot resolve application layer ${JSON.stringify(e)} from ${n}`)}async function C(e,n){let r=await Bun.build({entrypoints:[e],target:"bun",format:"esm",splitting:!1,plugins:[{name:"stx-layer-config",setup(a){a.onResolve({filter:/^[^./]/},(p)=>{if(p.path.startsWith("node:"))return{path:p.path,external:!0};return{path:Bun.resolveSync(p.path,p.resolveDir),external:!0}}),a.onLoad({filter:/./},(p)=>{let g=c.realpathSync(p.path);n.add(g),w.add(g);return})}}]});if(!r.success)throw Error(`Cannot load layer ${e}: ${r.logs.join(`
3
+ `)}`);let o=r.outputs.find((a)=>a.kind==="entry-point");if(!o||r.outputs.length!==1)throw Error(`Unsupported layer config output: ${e}`);let s=(await import(`data:text/javascript;base64,${Buffer.from(await o.text()).toString("base64")}`)).default;if(!x(s))throw Error(`Layer ${e} must default-export a config object`);return s}async function jc(e,n){let r=new Set,o=[],s=[],a=new Set,p=[];async function g(t,l){if(t=c.realpathSync(t),p.includes(t))throw Error(`Application layer cycle: ${[...p,t].join(" -> ")}`);if(a.has(t))return;a.add(t),p.push(t);let d=await C(t,r);l??=i.basename(i.dirname(t))===".config"?i.dirname(i.dirname(t)):i.dirname(t),l=c.realpathSync(l);let D=i.resolve(l,d.root??"."),L=Object.fromEntries(j.map((y)=>[y,i.resolve(D,d[`${y}Dir`]??(y==="composables"?"functions":y))]));o.push({root:l,configFile:t,resources:L});let u={...d};if(u.plugins)u.plugins=u.plugins.map((y)=>{let h=typeof y==="string"?y:y[0],S=h.startsWith(".")?i.resolve(l,h):i.isAbsolute(h)?h:Bun.resolveSync(h,l);return r.add(c.realpathSync(S)),typeof y==="string"?S:[S,y[1]]});if(typeof u.css==="string")u.css=i.resolve(l,u.css);if(u.serverApi)u.serverApi={...typeof u.serverApi==="object"?u.serverApi:{},dir:i.resolve(l,typeof u.serverApi==="object"?u.serverApi.dir??"server/api":"server/api")};if(s.push(u),d.extends!==void 0&&!Array.isArray(d.extends))throw Error(`extends in ${t} must be an array`);for(let y of d.extends??[])await g(E(y,l,r));p.pop()}await g(v(e),e);for(let t of["package.json","bun.lock","package-lock.json","pnpm-lock.yaml"]){let l=i.join(e,t);if(c.existsSync(l))r.add(c.realpathSync(l))}let f=b({},n);for(let t=s.length-1;t>=0;t--){let l=t===0?s[t]:Object.fromEntries(Object.entries(s[t]).filter(([d])=>!_.has(d)));f=b(f,l)}let m={layers:o,configDependencies:[...r].sort()};return f._layerGraph=m,f._layerPageDirs=o.map((t)=>t.resources.pages),f._layerComponentDirs=o.map((t)=>t.resources.components),f._layerLayoutDirs=o.map((t)=>t.resources.layouts),f._layerPartialDirs=o.map((t)=>t.resources.partials),f._layerComposableDirs=o.map((t)=>t.resources.composables),await li(m,e),{config:f,graph:m}}async function li(e,n){let r=new Map,o=[];for(let s of e.layers)for(let[a,p]of Object.entries(s.resources)){if(!c.existsSync(p))continue;let g=new Bun.Glob(a==="composables"?"**/*.ts":"**/*.stx");for(let f of[...g.scanSync({cwd:p})].sort()){let m=`${a}/${f}`,t=i.join(p,f),l=r.get(m);if(l)o.push({resource:m,winner:l,shadowed:t});else r.set(m,t)}}Object.assign(e,{overrides:o}),await Bun.write(i.join(n,".stx/layers.json"),JSON.stringify(e,null,2))}function A(e){let n=new Set(e.configDependencies);function r(o){if(!c.existsSync(o))return;n.add(o);for(let s of c.readdirSync(o,{withFileTypes:!0}).sort((a,p)=>a.name.localeCompare(p.name))){if(s.name.startsWith(".")||s.name==="node_modules")continue;let a=i.join(o,s.name);if(s.isDirectory())r(a);else if(s.isFile())n.add(a)}}for(let o of e.layers)for(let s of Object.values(o.resources))r(s);return[...n].sort()}function As(e){return O(A(e))}function Ps(e){return O(e.configDependencies)}function O(e){return e.map((n)=>{try{let r=c.statSync(n);return`${n}:${r.mtimeMs}:${r.size}`}catch{return`${n}:missing`}}).join(`
4
+ `)}function Bc(e){return e.layers.map((n)=>({config:i.relative(n.root,n.configFile),files:A({layers:[n],configDependencies:e.configDependencies.filter((r)=>r.startsWith(`${n.root}${i.sep}`))}).filter((r)=>c.statSync(r).isFile()).map((r)=>({path:i.relative(n.root,r).replaceAll(i.sep,"/"),sha256:k("sha256").update(c.readFileSync(r)).digest("hex")}))}))}
5
+ export{Lc,jc,li,As,Ps,Bc};