@popmelt.com/core 0.36.0 → 0.37.1

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 (222) hide show
  1. package/README.md +106 -23
  2. package/claude-plugin/.claude-plugin/plugin.json +1 -1
  3. package/claude-plugin/skills/popmelt-core/SKILL.md +6 -1
  4. package/codex-plugin/.codex-plugin/plugin.json +1 -1
  5. package/codex-plugin/skills/popmelt-core/SKILL.md +6 -1
  6. package/dist/ExploreAttachment-6AIMXC2K.mjs +1 -0
  7. package/dist/PagePreviewLayer-SIH7DDBF.mjs +1 -0
  8. package/dist/ParticipantRuntime-RTMEFDKF.mjs +1 -0
  9. package/dist/PhoneHostGate-RZRGWS2E.mjs +1 -0
  10. package/dist/PopmeltTasteConnectedPane-FAJXJEQQ.mjs +1 -0
  11. package/dist/PreviewRuntime-MW33PLMV.mjs +1 -0
  12. package/dist/{QueuedReplies-ESIFFRKS.mjs → QueuedReplies-4APDDNQX.mjs} +1 -1
  13. package/dist/SamplePlacementOverlay-2VLBRDPZ.mjs +1 -0
  14. package/dist/ShareProjectPane-OR2LS2A3.mjs +1 -0
  15. package/dist/SuppliedContext-SAQKEDWW.mjs +1 -0
  16. package/dist/ThreadErrorCard-OSHIWSHR.mjs +1 -0
  17. package/dist/ThreadPanel-CMC5Q6WM.mjs +1 -0
  18. package/dist/adapter-react-three-fiber.d.mts +20 -3
  19. package/dist/adapter-react-three-fiber.mjs +1 -1
  20. package/dist/adapter-three.d.mts +53 -2
  21. package/dist/adapter-three.mjs +45 -1
  22. package/dist/bridge-entry.mjs +1 -1
  23. package/dist/bridgeSSEStream-6OMAFDFW.mjs +1 -0
  24. package/dist/bridgeWebSocketStream-WIOGOPJW.mjs +1 -0
  25. package/dist/browser-runtime-5W2ZKUCZ.mjs +1 -0
  26. package/dist/browser.d.mts +4 -4
  27. package/dist/browser.mjs +1 -1
  28. package/dist/canvas-chat-note-O3USBECW.mjs +1 -0
  29. package/dist/checkFixture-DQPLFEUL.mjs +1 -0
  30. package/dist/{chunk-AH6LZOQC.mjs → chunk-3PSB5BST.mjs} +1 -1
  31. package/dist/chunk-3QYA5LGF.mjs +1 -0
  32. package/dist/chunk-3VOEPWRL.mjs +1 -0
  33. package/dist/chunk-4LVGVKSS.mjs +1 -0
  34. package/dist/chunk-5GEBVPTA.mjs +1 -0
  35. package/dist/chunk-5IZHN3A7.mjs +1 -0
  36. package/dist/chunk-6EO73WJN.mjs +1 -0
  37. package/dist/chunk-6XEEXK3U.mjs +1 -0
  38. package/dist/chunk-76WRZ2NH.mjs +1 -0
  39. package/dist/chunk-7EISKUU7.mjs +1 -0
  40. package/dist/chunk-7JWADHTH.mjs +1 -0
  41. package/dist/chunk-A4GARXVQ.mjs +1 -0
  42. package/dist/chunk-AAMUU2QA.mjs +1 -0
  43. package/dist/chunk-AGCS65LT.mjs +1 -0
  44. package/dist/{chunk-RR4SHK7O.mjs → chunk-AOTDTBQO.mjs} +1 -1
  45. package/dist/chunk-ATLUO4G7.mjs +1 -0
  46. package/dist/chunk-AYZUOBFI.mjs +1 -0
  47. package/dist/chunk-B22WBEQC.mjs +1 -0
  48. package/dist/chunk-B4DYUYX4.mjs +1 -0
  49. package/dist/{chunk-NDGM4DAP.mjs → chunk-BYASSHKJ.mjs} +1 -1
  50. package/dist/chunk-C2ZSNUXQ.mjs +1 -0
  51. package/dist/chunk-CCFTIBCJ.mjs +1 -0
  52. package/dist/chunk-CIKFUS7J.mjs +1 -0
  53. package/dist/chunk-CK3CDA3L.mjs +1 -0
  54. package/dist/chunk-CVVD2OMQ.mjs +1 -0
  55. package/dist/chunk-EBJ23A7F.mjs +1 -0
  56. package/dist/chunk-ECMLCGAM.mjs +1 -0
  57. package/dist/chunk-EFGQKWSZ.mjs +1 -0
  58. package/dist/chunk-EILBHZDX.mjs +1 -0
  59. package/dist/{chunk-DOCRI237.mjs → chunk-ELKVFX2O.mjs} +1 -1
  60. package/dist/{chunk-EXIUW3JX.mjs → chunk-EUFR7R5Q.mjs} +1 -1
  61. package/dist/chunk-EZVFCJEG.mjs +1 -0
  62. package/dist/chunk-F3VZQGPM.mjs +1 -0
  63. package/dist/chunk-FHCKFQBY.mjs +1 -0
  64. package/dist/chunk-FJWWBKCQ.mjs +1 -0
  65. package/dist/chunk-FON4QY7P.mjs +1 -0
  66. package/dist/chunk-GAUQZAW6.mjs +1 -0
  67. package/dist/chunk-GLF7Z5IR.mjs +1 -0
  68. package/dist/chunk-HAN6CUNB.mjs +1 -0
  69. package/dist/chunk-HAZXZ5TU.mjs +1 -0
  70. package/dist/chunk-HBFSPXIC.mjs +1 -0
  71. package/dist/chunk-HKHZBKAN.mjs +1 -0
  72. package/dist/chunk-HPU2UMVE.mjs +1 -0
  73. package/dist/{chunk-YHYFWNN6.mjs → chunk-IAXSC2ZN.mjs} +1 -1
  74. package/dist/chunk-IW7V7WNL.mjs +1 -0
  75. package/dist/chunk-JEGBAHYK.mjs +1 -0
  76. package/dist/chunk-JJK4LAN6.mjs +1 -0
  77. package/dist/chunk-JSNK6NX7.mjs +1 -0
  78. package/dist/chunk-KCDHP4N3.mjs +1 -0
  79. package/dist/chunk-KF73S7MG.mjs +1 -0
  80. package/dist/chunk-KXVXWEN4.mjs +1 -0
  81. package/dist/chunk-L6S66APQ.mjs +1 -0
  82. package/dist/chunk-LH7HKUCK.mjs +1 -0
  83. package/dist/chunk-LOUWY55X.mjs +1 -0
  84. package/dist/chunk-MPEVFQ43.mjs +1 -0
  85. package/dist/{chunk-57FM7XQV.mjs → chunk-NI77Y3WC.mjs} +1 -1
  86. package/dist/chunk-O2ZQFLNV.mjs +1 -0
  87. package/dist/chunk-OA63PYHZ.mjs +1 -0
  88. package/dist/chunk-OIKFQ2FV.mjs +1 -0
  89. package/dist/chunk-OREALBUO.mjs +1 -0
  90. package/dist/chunk-OVZ4CQGM.mjs +1 -0
  91. package/dist/chunk-PRPXMDZ7.mjs +1 -0
  92. package/dist/chunk-PWQB3FIW.mjs +1 -0
  93. package/dist/chunk-QE5XGXIA.mjs +30 -0
  94. package/dist/chunk-QV5G3XRE.mjs +1 -0
  95. package/dist/chunk-ROKRMYFR.mjs +1 -0
  96. package/dist/chunk-SBD7GQDN.mjs +1 -0
  97. package/dist/chunk-SKKHZBOJ.mjs +1 -0
  98. package/dist/chunk-SOGN7S54.mjs +1 -0
  99. package/dist/chunk-SOT33EQ4.mjs +1 -0
  100. package/dist/chunk-SUAHDXJZ.mjs +1 -0
  101. package/dist/chunk-TCGXG7UA.mjs +1 -0
  102. package/dist/chunk-TIAPJGX2.mjs +1 -0
  103. package/dist/chunk-TMSGNHXH.mjs +1 -0
  104. package/dist/chunk-UTP56NCY.mjs +1 -0
  105. package/dist/chunk-UX3DTCHL.mjs +1 -0
  106. package/dist/chunk-VVNZ5IEG.mjs +24 -0
  107. package/dist/chunk-W2QQVB2H.mjs +1 -0
  108. package/dist/chunk-WF3YGZPI.mjs +1 -0
  109. package/dist/chunk-WJHYEACV.mjs +1 -0
  110. package/dist/chunk-WP2SHSCG.mjs +1 -0
  111. package/dist/chunk-X6I6KQDG.mjs +1 -0
  112. package/dist/chunk-XJJDBMZI.mjs +1 -0
  113. package/dist/chunk-YMWXWXPV.mjs +1 -0
  114. package/dist/chunk-YYODLRV3.mjs +1 -0
  115. package/dist/cli.mjs +1 -1
  116. package/dist/codex-note-context-6QGJT2V3.mjs +1 -0
  117. package/dist/codex-project-3GJPU63O.mjs +1 -0
  118. package/dist/codex-session-registry-YNU6LEVH.mjs +1 -0
  119. package/dist/codex-store-mount-F6RBC77X.mjs +1 -0
  120. package/dist/{dev-server-DtX2_HCa.d.mts → dev-server-BRrhkH5t.d.mts} +11 -1
  121. package/dist/dev-server-KWVIMLLL.mjs +1 -0
  122. package/dist/focus-inspection-F25RXWZV.mjs +1 -0
  123. package/dist/guest-admission.d.mts +2 -0
  124. package/dist/guest-admission.mjs +1 -0
  125. package/dist/guest-live-canvas.d.mts +2 -0
  126. package/dist/guest-live-canvas.mjs +1 -0
  127. package/dist/index.d.mts +6 -6
  128. package/dist/index.mjs +1 -1
  129. package/dist/invitationLink-LUIIOAEZ.mjs +1 -0
  130. package/dist/inviteQr-HVHH45SN.mjs +1 -0
  131. package/dist/inviteQr-U77MLSEQ.mjs +1 -0
  132. package/dist/media.d.mts +3 -3
  133. package/dist/memory-store.d.mts +5 -1
  134. package/dist/page-interaction-TV3P6B3X.mjs +1 -0
  135. package/dist/page-planes-2ZepTpen.d.mts +817 -0
  136. package/dist/participantBootstrap-BuTrTQbo.d.mts +22 -0
  137. package/dist/{participantBootstrap-DFJlcKRI.d.mts → participantBootstrap-CSLsiQ-C.d.mts} +9 -3
  138. package/dist/peer-client-7X52EKMX.mjs +1 -0
  139. package/dist/plain-html-EF7MUNRZ.mjs +1 -0
  140. package/dist/plugin-astro.d.mts +5 -2
  141. package/dist/plugin-astro.mjs +1 -1
  142. package/dist/plugin-next.mjs +1 -1
  143. package/dist/plugin-nuxt.d.mts +4 -2
  144. package/dist/plugin-nuxt.mjs +1 -1
  145. package/dist/plugin-vite.d.mts +69 -9
  146. package/dist/plugin-vite.mjs +1 -1
  147. package/dist/qr-encoder.mjs +3 -0
  148. package/dist/server.d.mts +45 -20
  149. package/dist/server.mjs +1 -1
  150. package/dist/shared-page-GO76UP7I.mjs +1 -0
  151. package/dist/{subjects-DdavjSTL.d.mts → subjects-BQFCkehy.d.mts} +84 -1
  152. package/dist/taste-proposal-session-DBOUA54V.mjs +1 -0
  153. package/dist/toolbarFonts-GVPRHJGB.mjs +1 -0
  154. package/dist/{types-g9YCBx4Z.d.mts → types-CggBG-H6.d.mts} +1 -137
  155. package/dist/{video-adapter-DB6Hex1f.d.mts → video-adapter-C0kSwUir.d.mts} +2 -2
  156. package/dist/workspace-snapshot-6LN7U2NJ.mjs +1 -0
  157. package/package.json +45 -22
  158. package/samples/README.md +32 -0
  159. package/samples/build.d.mts +16 -0
  160. package/samples/build.mjs +138 -0
  161. package/dist/ExploreAttachment-H5WPEAZB.mjs +0 -1
  162. package/dist/PagePreviewLayer-WCYOBKAS.mjs +0 -1
  163. package/dist/ParticipantRuntime-HEC26AER.mjs +0 -1
  164. package/dist/PhoneHostGate-Q2AXVOSH.mjs +0 -1
  165. package/dist/PopmeltTasteConnectedPane-B7DHQKRQ.mjs +0 -1
  166. package/dist/PreviewRuntime-H2UOLP6T.mjs +0 -1
  167. package/dist/SuppliedContext-7ASO6GAW.mjs +0 -1
  168. package/dist/ThreadErrorCard-6R7W3RGZ.mjs +0 -1
  169. package/dist/ThreadPanel-3IS7GUYS.mjs +0 -1
  170. package/dist/bridgeSSEStream-K3UIMBTC.mjs +0 -1
  171. package/dist/bridgeWebSocketStream-2SUZUBE3.mjs +0 -1
  172. package/dist/browser-runtime-ILNTJLZ5.mjs +0 -1
  173. package/dist/canvas-chat-note-MGAEUYJO.mjs +0 -1
  174. package/dist/checkFixture-YE2ROOLL.mjs +0 -1
  175. package/dist/chunk-26P7UUHT.mjs +0 -1
  176. package/dist/chunk-2P2NUZW7.mjs +0 -1
  177. package/dist/chunk-3SEXH3AZ.mjs +0 -1
  178. package/dist/chunk-3XJEC6LS.mjs +0 -1
  179. package/dist/chunk-4LHTPRFY.mjs +0 -1
  180. package/dist/chunk-5D2ADU7H.mjs +0 -1
  181. package/dist/chunk-5K7SACPW.mjs +0 -1
  182. package/dist/chunk-67QNAAUC.mjs +0 -1
  183. package/dist/chunk-7CGKO4IU.mjs +0 -30
  184. package/dist/chunk-BACXPVHP.mjs +0 -1
  185. package/dist/chunk-DC47WNPG.mjs +0 -1
  186. package/dist/chunk-DJTGR3RO.mjs +0 -1
  187. package/dist/chunk-DLUNNAZC.mjs +0 -1
  188. package/dist/chunk-EX63NVDN.mjs +0 -1
  189. package/dist/chunk-FLTHWLRC.mjs +0 -1
  190. package/dist/chunk-G6RYESYI.mjs +0 -1
  191. package/dist/chunk-G7JR5Z3P.mjs +0 -1
  192. package/dist/chunk-GBVPRXA3.mjs +0 -1
  193. package/dist/chunk-HAE5LUJX.mjs +0 -1
  194. package/dist/chunk-HU2XWUJC.mjs +0 -1
  195. package/dist/chunk-HV7HRQ2S.mjs +0 -1
  196. package/dist/chunk-J4WDYITA.mjs +0 -1
  197. package/dist/chunk-L7QONR4K.mjs +0 -1
  198. package/dist/chunk-LVEMYZOA.mjs +0 -1
  199. package/dist/chunk-MSWXKP77.mjs +0 -1
  200. package/dist/chunk-NSCO633B.mjs +0 -1
  201. package/dist/chunk-NWE5PYKM.mjs +0 -1
  202. package/dist/chunk-O4HZP3RP.mjs +0 -1
  203. package/dist/chunk-OAHYSDJ4.mjs +0 -1
  204. package/dist/chunk-PNTM77NT.mjs +0 -1
  205. package/dist/chunk-RUTWU5W2.mjs +0 -1
  206. package/dist/chunk-TLREGQQB.mjs +0 -1
  207. package/dist/chunk-TUXBMJQZ.mjs +0 -1
  208. package/dist/chunk-V2I7PSJW.mjs +0 -1
  209. package/dist/chunk-WDAXARLI.mjs +0 -1
  210. package/dist/chunk-WHJEKDNP.mjs +0 -1
  211. package/dist/chunk-X2Q3H6X7.mjs +0 -1
  212. package/dist/chunk-XJQJQ5V5.mjs +0 -1
  213. package/dist/chunk-XT6PHPPG.mjs +0 -1
  214. package/dist/chunk-YD3PDEFX.mjs +0 -1
  215. package/dist/chunk-ZDXQ7WNW.mjs +0 -1
  216. package/dist/codex-note-context-YFURG7VL.mjs +0 -1
  217. package/dist/codex-project-3NSU5OWL.mjs +0 -1
  218. package/dist/codex-session-registry-ONODFWFD.mjs +0 -1
  219. package/dist/focus-inspection-SZJ5KP23.mjs +0 -1
  220. package/dist/peer-client-56EAHIGF.mjs +0 -1
  221. package/dist/taste-proposal-session-XU4N7RUV.mjs +0 -1
  222. package/dist/workspace-snapshot-RTTXNNUX.mjs +0 -1
@@ -0,0 +1 @@
1
+ "use client";import{useState as r,useRef as e,useCallback as u,useLayoutEffect as n,useEffect as c}from"react";var t=100,s=200,l={surface:null,phase:"visible"};function a({openDelayMs:t=100,exitDurationMs:s=200,pinnedSurface:a=null}={}){let[i,f]=r(l),p=e(l),o=e(null),h=e(a);h.current=a;let m=e(null),v=e(null),b=u(r=>{p.current.surface===r.surface&&p.current.phase===r.phase||(p.current=r,f(r))},[]),T=u(()=>{m.current&&(clearTimeout(m.current),m.current=null)},[]),d=u(()=>{v.current&&(clearTimeout(v.current),v.current=null)},[]),x=u(r=>{o.current=r,T(),d(),b({surface:r,phase:"visible"})},[d,T,b]),D=u(r=>{if(!h.current||p.current.surface!==h.current||r===h.current){if(o.current=r,T(),d(),null!==p.current.surface)return void b({surface:r,phase:"visible"});m.current=setTimeout(()=>{m.current=null,o.current===r&&b({surface:r,phase:"visible"})},t)}},[d,T,t,b]),M=u(r=>{r!==h.current&&(o.current===r&&(o.current=null),T(),p.current.surface===r&&(d(),b({surface:r,phase:"exiting"}),v.current=setTimeout(()=>{v.current=null,null===o.current&&b(l)},s)))},[d,T,s,b]),g=u(r=>{r&&p.current.surface!==r||(o.current=null,T(),d(),b(l))},[d,T,b]);return n(()=>{a&&p.current.surface===a&&x(a)},[a,x]),c(()=>()=>{T(),d()},[d,T]),{surface:i.surface,phase:i.phase,enter:D,leave:M,show:x,dismiss:g}}export{t as a,s as b,a as c};
@@ -0,0 +1 @@
1
+ import{a as e,b as t}from"./chunk-HKHZBKAN.mjs";import{a as n}from"./chunk-CIKFUS7J.mjs";import{a,b as r,c as i}from"./chunk-KF73S7MG.mjs";var o="M20.25 8.00293H20.249C21.5098 8.0286 22.7219 8.25094 23.8584 8.63672L23.8604 8.63574C23.8961 8.64787 23.9312 8.66145 23.9668 8.67383C24.0611 8.70686 24.1548 8.74106 24.248 8.77637C24.2915 8.79273 24.3357 8.80727 24.3789 8.82422L24.376 8.82617C27.6145 10.0955 30.1646 12.7301 31.3213 16.0234L31.3232 16.0225C31.3327 16.0493 31.3404 16.0766 31.3496 16.1035C31.7691 17.3256 32 18.6356 32 20C32 20.8726 31.9366 21.6706 31.7598 22.4902L31.7197 22.6328C31.6412 23.0066 31.5136 23.6108 31.3408 24.2217L31.3398 24.2246C31.2967 24.377 31.251 24.5299 31.2021 24.6797C30.9215 25.5403 30.5473 26.2998 30.0879 26.2998C29.7613 26.2996 29.5995 25.9674 29.4316 25.6221C29.2501 25.2487 29.0614 24.8605 28.6484 24.8604C27.8532 24.8604 27.2081 25.5046 27.208 26.2998V27.0771C27.2079 27.6079 26.9661 28.112 26.5205 28.4004C25.9146 28.7925 25.2357 28.6462 24.7959 28.2061L24.7949 28.208C24.7897 28.2028 24.7854 28.1967 24.7803 28.1914C24.7654 28.1761 24.7507 28.1606 24.7363 28.1445C24.7105 28.1156 24.6858 28.0857 24.6621 28.0547C24.6461 28.0339 24.6302 28.013 24.6152 27.9912C24.5931 27.9591 24.5726 27.9257 24.5527 27.8916C24.5392 27.8685 24.5261 27.8452 24.5137 27.8213C24.5093 27.8128 24.5043 27.8045 24.5 27.7959L24.501 27.7939C24.3932 27.5763 24.3282 27.3276 24.3281 27.0576V26.2998C24.328 25.5993 23.8278 25.0158 23.165 24.8867V24.8877C23.0752 24.8702 22.9826 24.8604 22.8877 24.8604C22.8446 24.8604 22.8019 24.8624 22.7598 24.8662C22.0247 24.9312 21.4483 25.5479 21.4482 26.2998C21.4482 26.9127 21.4608 27.5305 21.4736 28.1494L21.4951 29.3135C21.5 29.7013 21.5015 30.089 21.4971 30.4756C21.4874 31.3103 20.8426 32 20.0078 32C19.1732 31.9998 18.5292 31.3102 18.5195 30.4756C18.5159 30.1613 18.5176 29.8464 18.5205 29.5312V29.5322C18.5212 29.4593 18.5206 29.3864 18.5215 29.3135L18.5303 28.8154V28.8145C18.5343 28.5927 18.5384 28.371 18.543 28.1494C18.5558 27.5305 18.5684 28.1129 18.5684 27.5C18.5684 26.7047 17.9232 26.0596 17.1279 26.0596C16.907 26.0596 16.6978 26.1103 16.5107 26.1992C16.2161 26.3393 15.9767 26.5769 15.834 26.8701C15.8269 26.8846 15.8201 26.8993 15.8135 26.9141C15.7821 26.9845 15.7562 27.0579 15.7363 27.1338C15.7243 27.1798 15.7155 27.2267 15.708 27.2744C15.7012 27.3175 15.6953 27.361 15.6924 27.4053C15.6903 27.4366 15.6885 27.4681 15.6885 27.5V28.7383C15.6883 29.9234 14.4911 30.7248 13.4961 30.0811C13.0505 29.7926 12.8086 29.2886 12.8086 28.7578V26.2998C12.8086 25.9737 12.6984 25.674 12.5156 25.4326C12.4437 25.3381 12.3612 25.2521 12.2686 25.1777V25.1768C12.0219 24.9788 11.709 24.8604 11.3682 24.8604C10.9892 24.8604 10.8622 24.8872 10.7295 25.2295C10.5837 25.6055 10.4302 26 9.92773 26C9.33081 25.9996 8.95963 25.2403 8.71484 24.3799C8.5591 23.8325 8.45907 23.571 8.3623 23.0107C8.3501 22.9401 8.33284 22.8403 8.31738 22.7529C8.12812 21.9466 8.02043 21.1089 8.00293 20.249V20.25L8 20C8 19.8617 8.00317 19.724 8.00781 19.5869C8.00837 19.5703 8.00816 19.5537 8.00879 19.5371L8.00977 19.5352C8.0998 17.1716 8.87444 14.9844 10.1396 13.1631C10.1488 13.1499 10.1587 13.1372 10.168 13.124C12.255 10.1453 15.6582 8.15745 19.5352 8.00977L19.5371 8.00879C19.5537 8.00816 19.5703 8.00837 19.5869 8.00781C19.724 8.00317 19.8617 8 20 8L20.25 8.00293Z",s=Array.from({length:16},(e,t)=>{let n=16-t,a=19*n/16;return{dash:`0 ${100-a} ${a} 0`,opacity:1/(n+1)}});function c(e){let t=document.createElement("iframe");t.title="Shared app",t.setAttribute("sandbox","allow-scripts"),t.src=e;let n,a=!1,r=!1,i=!1;function o(){a&&(n&&(parent.postMessage("popmelt:live-canvas",location.origin,[n]),n=void 0),i&&parent.postMessage("popmelt:page-loaded",location.origin))}addEventListener("message",e=>{if(e.source===parent&&e.origin===location.origin&&"popmelt:attach-canvas"===e.data)a=!0;else{if(e.source!==t.contentWindow||"null"!==e.origin||"popmelt:live-canvas"!==e.data||r||1!==e.ports.length)return;r=!0,n=e.ports[0]}o()}),t.onload=()=>{i=!0,o()},document.body.append(t)}var l={".css":"text/css",".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".gif":"image/gif",".webp":"image/webp",".avif":"image/avif",".svg":"image/svg+xml",".ico":"image/x-icon",".woff":"font/woff",".woff2":"font/woff2",".ttf":"font/ttf"},p=e=>Array.from(e).some(e=>e.charCodeAt(0)<32);import{readFile as m,realpath as d,stat as f}from"fs/promises";import{extname as h,join as u,resolve as g,sep as C}from"path";import{randomBytes as y}from"crypto";import{parse as w,serialize as v}from"parse5";var b=new Set("script noscript iframe frame object embed base meta template portal foreignObject audio video source track".split(" ")),x=/^(?:id|class|style|dir|lang|title|role|alt|type|width|height|colspan|rowspan|viewBox|d|fill|stroke|stroke-width|points|cx|cy|r|rx|ry|x|y|x1|x2|y1|y2|transform|aria-[\w-]+|data-[\w-]+)$/i;function L(e){if(!("string"!=typeof e||e.length>2048||!e.startsWith("/")||/[\\?#]|%2f/i.test(e)||p(e)||e.includes("//")))try{let t=decodeURIComponent(e);return/[\\?#%]/.test(t)||p(t)||t.includes("//")||t.split("/").some(e=>e.startsWith(".")||"node_modules"===e)||/^\/(?:__popmelt|popmelt|_next|_nuxt|@[^/]*|api)(?:\/|$)/.test(t)?void 0:new URL(e,"http://localhost").pathname}catch{return}}function k(L,k,R,S,_){let j;async function I(e,t,n,a){let{pageInteraction:r}=await(import("./page-interaction-TV3P6B3X.mjs"));return j??=r(L,e,t,_),j(n,a)}return async({url:_,document:j,sharedPath:N,assets:P,projectId:V,basePath:T="/",bootstrap:U})=>{let W="/"!==T&&_.pathname===T.slice(0,-1);if(!W&&!_.pathname.startsWith(T))return;let $=W?"/":_.pathname.slice(T.length-1);if(_.search&&(!j||"?__popmelt_code_preview=1"!==_.search))return;if($===e)return new Response(Buffer.from(await t("toolbar")),{headers:{"Content-Type":"text/javascript"}});let A=new URL(k());if(!["localhost","127.0.0.1","[::1]"].includes(A.hostname)||!["https:","http:"].includes(A.protocol))return;let E=(e,t)=>{try{let n=new URL(e,t);if(n.origin!==A.origin||!l[h(n.pathname).toLowerCase()]||P.size>=4096)return;let a=decodeURIComponent(n.pathname);return/[\\%?#]/.test(a)||p(a)||a.includes("//")||a.split("/").some(e=>e.startsWith(".")||"node_modules"===e)?void 0:(P.add(n.pathname),T.slice(0,-1)+n.pathname)}catch{return}},B=(e,t)=>e.replace(/url\(\s*(['"]?)([^)'"]+)\1\s*\)/gi,(e,n,a)=>{let r=E(a.trim(),t);return r?"url("+JSON.stringify(r)+")":e});if(j&&$!==N){if(!S||!R||!U||i($)!==N||_.search)return;let e={"Content-Type":"text/html; charset=utf-8","Cache-Control":"private, no-store"};if($.endsWith(a)){let t=new URL(_);t.pathname=t.pathname.slice(0,-a.length)+r;let n=y(16).toString("base64");return new Response('<!doctype html><meta name="viewport" content="width=device-width,initial-scale=1"><style>html,body{margin:0;background:#111}iframe{position:fixed;inset:0;width:100%;height:100%;border:0}</style><body><script nonce="'+n+'">('+c.toString()+")("+JSON.stringify(t.pathname).replace(/</g,"\\u003c")+");<\/script>",{headers:{...e,"Content-Security-Policy":"default-src 'none'; frame-src "+t.href+"; script-src 'nonce-"+n+"'; style-src 'unsafe-inline'; form-action 'none'; base-uri 'none'; frame-ancestors 'self'"}})}if(!$.endsWith(r))return;try{let t=await I(S,R,N,U.appVersion??U.revision);return new Response(t.body,{headers:{...e,"Content-Security-Policy":t.policy}})}catch(t){return console.warn("[popmelt] Interactive "+R+" preview:",t instanceof Error?t.name:"unavailable"),new Response('<meta name="viewport" content="width=device-width,initial-scale=1"><style>:root{color-scheme:light dark}body{min-height:90vh;margin:0;display:grid;place-content:center;text-align:center;font:16px system-ui}</style><p>This shared page couldn’t load.</p><a href="">Try again</a>',{status:503,headers:{...e,"Content-Security-Policy":"sandbox; default-src 'none'; style-src 'unsafe-inline'"}})}}if(!j){if(!P.has($))return;let e=decodeURIComponent($),t=e.startsWith("/_next/static/")?[u(L,".next/dev",e.slice(6)),u(L,".next",e.slice(6))]:e.startsWith("/_nuxt/")?[u(L,".nuxt/dist/client",e),u(L,".output/public",e)]:["html"===R?u(L,e):u(L,"public",e)];for(let n of t)try{if(!n.startsWith(g(L)+C)||await d(n)!==n)continue;let t=await f(n);if(!t.isFile()||t.size>33554432)return;let a=await m(n),r=l[h(e).toLowerCase()];return new Response("text/css"===r?B(a.toString(),new URL($,A)):a,{headers:{"Content-Type":r,"Content-Security-Policy":"sandbox; default-src 'none'; style-src 'unsafe-inline'"}})}catch(e){if(!["ENOENT","ENOTDIR"].includes(e.code??""))throw e}return}S&&R&&U&&!_.search&&I(S,R,N,U.appVersion??U.revision).catch(()=>{});let M=!(!(S&&R&&U)||_.search),O=y(18).toString("base64"),H=U??{version:1,projectId:V,revision:"unversioned",url:_.origin+n},F='<script nonce="'+O+'">window.__POPMELT_PARTICIPANTS__='+JSON.stringify(H).replace(/</g,"\\u003c")+';<\/script><script defer nonce="'+O+'" src="'+T.slice(0,-1)+e+'"><\/script>',J=M?"<!doctype html><html><head></head><body>"+function(e){let t=s.map(({dash:e,opacity:t})=>`<use href="#popmelt-connect-mark" stroke-dasharray="${e}" stroke-opacity="${t}"/>`).join("");return`<style>html,body{margin:0;background:#111}#popmelt-page-connecting{position:fixed;inset:0;background:#111;color:#eee;display:grid;place-content:center;justify-items:center;gap:8px;font:14px system-ui;font-variant-numeric:tabular-nums}#popmelt-page-connecting svg{width:52px;height:52px}@media(prefers-reduced-motion:no-preference){#popmelt-page-connecting .trace{stroke-dasharray:19 81;}#popmelt-page-connecting .sweep{animation:popmelt-connect 1500ms linear infinite}@keyframes popmelt-connect{to{stroke-dashoffset:-100}}}</style><div id="popmelt-page-connecting" role="status"><svg viewBox="0 0 40 40" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="2.7"><defs><path id="popmelt-connect-mark" pathLength="100" d="${o}"/><clipPath id="popmelt-connect-clip"><path clip-rule="evenodd" d="M0 0H40V40H0Z ${o}"/></clipPath></defs><g clip-path="url(#popmelt-connect-clip)"><use href="#popmelt-connect-mark" opacity="0.3"/><g class="sweep">${t}<use class="trace" href="#popmelt-connect-mark" stroke-linecap="round"/></g></g></svg><span>Connecting... <span aria-live="off">0s</span></span></div><script nonce="${e}">{const root=document.getElementById('popmelt-page-connecting'),label=root.querySelector('span span'),start=performance.now();const timer=setInterval(()=>{if(!root.isConnected){clearInterval(timer);return}label.textContent=Math.floor((performance.now()-start)/1000)+'s'},250);addEventListener('pagehide',()=>clearInterval(timer),{once:true})}<\/script>`}(O)+"</body></html>":await async function(){let e=new URL(N,A),t=await fetch(e,{headers:{Accept:"text/html"},redirect:"manual",signal:AbortSignal.timeout(15e3)});if(200!==t.status||!t.headers.get("content-type")?.includes("text/html"))return void await(t.body?.cancel());let n=w(await t.text());return function t(n){n.childNodes=n.childNodes.filter(n=>{if(!("tagName"in n))return"#comment"!==n.nodeName;let a=n.tagName;if(b.has(a))return!1;let r=e=>n.attrs.find(t=>t.name===e)?.value;if("style"===a&&void 0!==r("data-next-hide-fouc")||"link"===a&&"stylesheet"!==r("rel")?.toLowerCase())return!1;let i="link"===a?"href":"img"===a?"src":void 0,o=i&&r(i),s=o&&E(o,e);if("img"===a&&o?.startsWith("/_next/image?")&&(s=E(new URL(o,e).searchParams.get("url")??"",e)),n.attrs=n.attrs.filter(e=>x.test(e.name)&&!e.namespace),i&&s&&n.attrs.push({name:i,value:s}),"link"===a&&n.attrs.push({name:"rel",value:"stylesheet"}),"form"===a&&(n.tagName="div"),"style"===a)for(let t of n.childNodes)"value"in t&&(t.value=B(t.value,e));for(let t of n.attrs)"style"===t.name&&(t.value=B(t.value,e));return t(n),!0})}(n),v(n)}();if(!J)return;let K=J.replace(/<head[^>]*>/i,'<head><meta name="viewport" content="width=device-width, initial-scale=1">'+(M?'<meta name="popmelt-interactive-page" content="1">':"")+F);return new Response(K,{headers:{"Content-Type":"text/html; charset=utf-8","Content-Security-Policy":"default-src 'none'; script-src 'nonce-"+O+"'; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob:; font-src 'self' data:; frame-src 'self'; connect-src 'self' "+new URL(H.url).origin+"; base-uri 'none'; form-action 'none'; frame-ancestors 'self'"}})}}export{l as a,p as b,L as c,k as d};
@@ -0,0 +1 @@
1
+ "use client";import{f as e}from"./chunk-W2QQVB2H.mjs";import{e as t,f as n}from"./chunk-AAMUU2QA.mjs";import{u as a,d as i}from"./chunk-LH7HKUCK.mjs";import{createContext as r}from"react";function o(e,t){let n=a(e.filter(e=>!e.includes("data-pm=")),t);return"matched"===n.status?n.element:null}function l(e){if(!e||!/^\/(?!\/)/.test(e)||/[\\?#\s]/.test(e))return;let t=n(e);return t.startsWith("//")||t.startsWith("/__popmelt/")?void 0:new URL(t,"https://local.invalid").pathname===t?t:void 0}function s(e){let t,n=e.messages?.find(e=>"human"===e.role),a=n?.annotationSnapshot;try{if(a?.url){let e=new URL(a.url);/^https?:$/.test(e.protocol)&&(t=e)}}catch{}let i=a?.annotations?.[0],r=n?.requestItems?.find(e=>"changes"===e.kind),o=(e.targetBindings??[]).map(e=>e.anchor),s=o.find(e=>"dom"===e.type),m=[...e.elementIdentifiers??[],...r?[r.elementKey]:[]],c=l(t?.pathname),p=l(s?.pathname)??l(i?.pathname)??l(r?.pathname)??l(m.find(e=>e.startsWith("/")&&e.includes(":"))?.split(":")[0])??c,u=o.filter(e=>"opaque"===e.type||l(e.pathname)===p),f=!i||i.pathname&&l(i.pathname)!==p?void 0:i;f?.target&&u.push({type:"opaque",...f.target});let h=f?.elements?.[0];!f?.region&&(f?.linkedSelector||h)&&u.push({type:"dom",pathname:p??"/",structuralSelector:h?.selector,runtimeSelector:f?.linkedSelector,targetFingerprint:h?.targetFingerprint});for(let e of m){let t=e.indexOf(":"),n=e.startsWith("/")?t>0&&l(e.slice(0,t))===p?e.slice(t+1):"":c&&c===p?e:"";n&&u.push({type:"dom",pathname:p??"/",structuralSelector:n})}let d=f?.region;if(!(u.length||d?.points.length||f||r))return null;let g=c===p&&t?t.search+t.hash:"";return{pathname:p,href:p&&p+g,targets:u,region:d,element:h}}function m(e){return n(location.pathname)+location.search+location.hash===e}function c(e){try{let t=sessionStorage.getItem(e);if(!t)return;sessionStorage.removeItem(e);let n=JSON.parse(t);if(n.expires>Date.now()&&"string"==typeof n.id&&m(n.href))return n.id}catch{}}function p(n,a,r){let l,s=!1,p=new AbortController,u=()=>{s=!0,clearTimeout(l),p.abort()};for(let e of["wheel","pointerdown","touchstart","keydown"])window.addEventListener(e,u,{capture:!0,passive:!0,signal:p.signal});let{href:f}=a;return async function(){if(f&&!m(f)){try{sessionStorage.setItem(r.storageKey,JSON.stringify({id:n,href:f,expires:Date.now()+3e4}))}catch{}if(r.navigate)await r.navigate(f);else{let e=new URL(t(location.pathname).slice(0,-1)+f,location.origin),n=e.pathname!==location.pathname||e.search!==location.search;if(location.assign(e.href),n)return}}let p=performance.now()+4e3,h=!1,d=null,g=0,x=!1,y=window.matchMedia("(prefers-reduced-motion: reduce)").matches?"instant":"smooth",w=async()=>{if(!s){if(!f||m(f)){!x&&f&&c(r.storageKey),x=!0;let t=d?.isConnected?d:function(e,t){for(let n of e)if("opaque"===n.type){let e=t.resolve(n);if(e)return e.subject.sourceElement??e.element}else{let e=o([n.structuralSelector,n.runtimeSelector,...n.legacySelectors??[]].filter(e=>!!e),n.targetFingerprint);if(e)return e}return null}(a.targets,r.registry);if(t){for(let e=t.parentElement;e;e=e.parentElement)e instanceof HTMLDetailsElement&&!e.open&&(e.open=!0);let e=i(t),n=e.bottom<=0||e.top>=innerHeight||e.right<=0||e.left>=innerWidth;e.height&&e.width&&(d!==t||n&&performance.now()-g>750)&&(t.scrollIntoView({behavior:d?"instant":y,block:"center",inline:"nearest"}),d=t,g=performance.now())}if(!d&&!h&&a.element?.revealRecipe&&(h=!0,await e(void 0,[a.element]),s))return;if(!t&&a.region?.points.length){let e=a.region.points.map(e=>e.x),t=a.region.points.map(e=>e.y);return window.scrollTo({left:(Math.min(...e)+Math.max(...e)-innerWidth)/2,top:(Math.min(...t)+Math.max(...t)-innerHeight)/2,behavior:y}),u()}if(!a.targets.length)return u()}else if(x)return u();performance.now()<p?l=setTimeout(()=>{w().catch(u)},d?250:160):u()}};await w()}().catch(u),u}function u(e,t){return"string"==typeof t.canvasLabel?t.canvasLabel:[e,t.modified].filter(Boolean).join(" ")}function f(e){return S(e,512)||"Empty text"}function h(e){if("changes"!==e.kind)return;if("string"==typeof e.replacementText)return e.replacementText;let t=[];for(let n of e.changes){if(!n.startsWith("Text: "))return;let e=n.slice(6).split(" → ");if(2!==e.length)return;t.push("empty"===e[1]?"":e[1])}return t.length?t.join(" "):void 0}function d(e){if(!e?.length)return;let t=[];for(let n of e){let e=h(n);if(void 0===e)return;t.push(e.replace(/\s+/g," ").trim()||"Empty text")}return t.join("; ")}function g(e=[]){let t={};if(e.some(e=>"annotation"===e.kind))return t;for(let n of e){if("changes"!==n.kind)continue;let e=h(n);void 0!==e&&(t[n.elementKey]=f(e))}return t}function x(e){let t=e?.requestItems?.flatMap(e=>"annotation"===e.kind&&e.text.trim()?[e.text.trim()]:[]);if(t?.length)return t.join("; ");let n=e?.requestItems?.flatMap(e=>"changes"===e.kind?[`${e.elementLabel} [${e.changes.join(", ")}]`]:[]);return n?.length?n.join("; "):e?.requestText?.trim()||void 0}function y(e,t){if(!e?.frames?.length)return[];let n=new Map;for(let t of e.steps){let e=t.visuals?.afterFrameId;e&&!n.has(e)&&n.set(e,t.action?.label?`After ${t.action.label}`:"Resulting state")}return e.frames.flatMap((e,a)=>{let i=t[e.imageIndex];return i?[{id:e.id,imageIndex:e.imageIndex,label:0===a?"Initial state":n.get(e.id)??"State",url:i}]:[]})}function w(e){let t=e.instruction?.trim();return t?e.attachments?.some(e=>e.name?.trim()===t)?null:t:null}function v(e,t){let n=e?.tagName?.toLowerCase(),a=e?.id?`#${e.id}`:"",i=e?.className?`.${e.className.trim().split(/\s+/).slice(0,2).join(".")}`:"",r=n?`${n}${a}${i}`:t;return e?.reactComponent?`<${e.reactComponent}> ${r}`:r}function $(e){let t=e.elements?.[0]?.reactComponent||e.elements?.[0]?.tagName||e.linkedSelector,n=e.type&&"annotation"!==e.type?`${e.type} annotation`:"Annotation";return t?`${n} on ${t}`:n}function b(e){let t=e.annotations.map(e=>{let t=e.interactionEpisode?.steps.length??0;return{kind:"annotation",annotationId:e.id,pathname:e.pathname,text:w(e)??$(e),...t>0?{interactionEpisodeStepCount:t}:{}}}),n=new Map,a=e=>{let a=`${e.pathname??""}:${e.durableSelector??e.selector}`,i=n.get(a);if(i)return i.changes.push(e.text),void 0!==i.replacementText&&e.textEdit?i.replacementText=u(i.replacementText,e.textEdit):delete i.replacementText,void(void 0!==e.annotationNumber&&(void 0===i.annotationNumber||e.annotationNumber<i.annotationNumber)&&(i.annotationNumber=e.annotationNumber));let r={kind:"changes",elementKey:a,elementLabel:v(e.element,e.selector),...void 0!==e.annotationNumber?{annotationNumber:e.annotationNumber}:{},pathname:e.pathname,changes:[e.text],...e.textEdit?{replacementText:u(void 0,e.textEdit)}:{}};n.set(a,r),t.push(r)};for(let t of e.styleModifications??[])for(let e of t.changes)a({...t,text:`${e.property}: ${e.original||"unset"} → ${e.modified||"unset"}${e.token?` (${e.token})`:""}`});for(let t of e.textModifications??[])a({...t,textEdit:t,text:`Text: ${t.original||"empty"} → ${t.modified||"empty"}`});for(let t of e.domModifications??[])a({...t,text:"copy"===t.operation?"Copied element":"Moved element"});return e.spacingTokenChanges?.length&&t.push({kind:"changes",elementKey:"spacing-tokens",elementLabel:"Spacing tokens",changes:e.spacingTokenChanges.map(e=>`${e.tokenName}: ${e.originalPx}px → ${e.newPx}px`)}),t}function k(e){let t=e.annotations.flatMap(e=>{let t=w(e);return t?[{instruction:t,pathname:e.pathname}]:[]});if(0===t.length)return;if(new Set(t.map(e=>e.pathname).filter(Boolean)).size<=1)return t.map(e=>e.instruction).join("\n\n");let n=new Map;for(let e of t){let t=e.pathname||"(unknown)",a=n.get(t)??[];a.push(e.instruction),n.set(t,a)}return[...n.entries()].map(([e,t])=>`\`${e}\`\n${t.map(e=>`- ${e}`).join("\n")}`).join("\n")}function S(e,t=96){let n=e.replace(/\s+/g," ").trim();return n.length>t?`${n.slice(0,Math.max(0,t-3))}...`:n}var M=r(null),N=r(void 0);export{o as a,s as b,c,p as d,u as e,f,d as g,g as h,x as i,y as j,b as k,k as l,S as m,M as n,N as o};
@@ -0,0 +1 @@
1
+ "use client";var o={isAnnotating:!1,activeTool:"inspector",activeColor:"oklch(0.628 0.258 29)",strokeWidth:3,annotations:[],undoStack:[],redoStack:[],selectedAnnotationIds:[],lastSelectedId:null,styleModifications:[],textModifications:[],domModifications:[],spacingTokenChanges:[],spacingTokenMods:[]};export{o as a};
@@ -1 +1 @@
1
- "use client";import{d as e}from"./chunk-HU2XWUJC.mjs";import{g as n}from"./chunk-XT6PHPPG.mjs";var t=!1,i=()=>t;function o(i){t=!0;let o=null,r=!1,d=n=>{let t=n.composedPath()[0];return t instanceof Element&&("devtools-canvas"===t.id||!e(t)&&!t.closest("[data-taste-editor], [data-taste-navigation]"))},a=e=>{e.preventDefault(),e.stopImmediatePropagation()},l=e=>{o=null,0===e.button&&d(e)&&(o={x:e.clientX,y:e.clientY},r=!1,a(e))},s=e=>{o&&Math.hypot(e.clientX-o.x,e.clientY-o.y)>5&&(r=!0)},v=e=>{o&&a(e)},w=e=>{if(!d(e)||0!==e.button)return void(o=null);a(e);let t=!(!o||r);if(o=null,!t)return;let l=n(e.clientX,e.clientY);l&&i(l)},c=()=>{o=null};return window.addEventListener("pointerdown",l,!0),window.addEventListener("pointermove",s,!0),window.addEventListener("pointerup",v,!0),window.addEventListener("pointercancel",c,!0),window.addEventListener("click",w,!0),()=>{t=!1,window.removeEventListener("pointerdown",l,!0),window.removeEventListener("pointermove",s,!0),window.removeEventListener("pointerup",v,!0),window.removeEventListener("pointercancel",c,!0),window.removeEventListener("click",w,!0)}}export{i as a,o as b};
1
+ "use client";import{l as e}from"./chunk-FJWWBKCQ.mjs";import{h as n}from"./chunk-W2QQVB2H.mjs";var t=!1,i=()=>t;function o(i){t=!0;let o=null,r=!1,d=n=>{let t=n.composedPath()[0];return t instanceof Element&&("devtools-canvas"===t.id||!e(t)&&!t.closest("[data-taste-editor], [data-taste-navigation]"))},a=e=>{e.preventDefault(),e.stopImmediatePropagation()},l=e=>{o=null,0===e.button&&d(e)&&(o={x:e.clientX,y:e.clientY},r=!1,a(e))},s=e=>{o&&Math.hypot(e.clientX-o.x,e.clientY-o.y)>5&&(r=!0)},v=e=>{o&&a(e)},w=e=>{if(!d(e)||0!==e.button)return void(o=null);a(e);let t=!(!o||r);if(o=null,!t)return;let l=n(e.clientX,e.clientY);l&&i(l)},c=()=>{o=null};return window.addEventListener("pointerdown",l,!0),window.addEventListener("pointermove",s,!0),window.addEventListener("pointerup",v,!0),window.addEventListener("pointercancel",c,!0),window.addEventListener("click",w,!0),()=>{t=!1,window.removeEventListener("pointerdown",l,!0),window.removeEventListener("pointermove",s,!0),window.removeEventListener("pointerup",v,!0),window.removeEventListener("pointercancel",c,!0),window.removeEventListener("click",w,!0)}}export{i as a,o as b};
@@ -0,0 +1 @@
1
+ "use client";import{useId as e}from"react";import{jsx as L,jsxs as t}from"react/jsx-runtime";var r={id:"",label:"Codex default",source:"cli",isDefault:!0};function o(e){return[r,...e.filter(e=>""!==e.id)]}var i={id:"",label:"Claude default",source:"static"};function l(e){return/^claude-(?:ai|code)(?:$|[-.])/i.test(e)}function C(e){return[i,...e.filter(e=>e.id&&!l(e.id))]}function d({size:e=16,style:t}){return L("svg",{width:e,height:e,viewBox:"0 0 1200 1200",fill:"currentColor",stroke:"none",style:{flexShrink:0,...t},children:L("path",{d:"M 233.959793 800.214905 L 468.644287 668.536987 L 472.590637 657.100647 L 468.644287 650.738403 L 457.208069 650.738403 L 417.986633 648.322144 L 283.892639 644.69812 L 167.597321 639.865845 L 54.926208 633.825623 L 26.577238 627.785339 L 3.3e-05 592.751709 L 2.73832 575.27533 L 26.577238 559.248352 L 60.724873 562.228149 L 136.187973 567.382629 L 249.422867 575.194763 L 331.570496 580.026978 L 453.261841 592.671082 L 472.590637 592.671082 L 475.328857 584.859009 L 468.724915 580.026978 L 463.570557 575.194763 L 346.389313 495.785217 L 219.543671 411.865906 L 153.100723 363.543762 L 117.181267 339.060425 L 99.060455 316.107361 L 91.248367 266.01355 L 123.865784 230.093994 L 167.677887 233.073853 L 178.872513 236.053772 L 223.248367 270.201477 L 318.040283 343.570496 L 441.825592 434.738342 L 459.946411 449.798706 L 467.194672 444.64447 L 468.080597 441.020203 L 459.946411 427.409485 L 392.617493 305.718323 L 320.778564 181.932983 L 288.80542 130.630859 L 280.348999 99.865845 C 277.369171 87.221436 275.194641 76.590698 275.194641 63.624268 L 312.322174 13.20813 L 332.8591 6.604126 L 382.389313 13.20813 L 403.248352 31.328979 L 434.013519 101.71814 L 483.865753 212.537048 L 561.181274 363.221497 L 583.812134 407.919434 L 595.892639 449.315491 L 600.40271 461.959839 L 608.214783 461.959839 L 608.214783 454.711609 L 614.577271 369.825623 L 626.335632 265.61084 L 637.771851 131.516846 L 641.718201 93.745117 L 660.402832 48.483276 L 697.530334 24.000122 L 726.52356 37.852417 L 750.362549 72 L 747.060486 94.067139 L 732.886047 186.201416 L 705.100708 330.52356 L 686.979919 427.167847 L 697.530334 427.167847 L 709.61084 415.087341 L 758.496704 350.174561 L 840.644348 247.490051 L 876.885925 206.738342 L 919.167847 161.71814 L 946.308838 140.29541 L 997.61084 140.29541 L 1035.38269 196.429626 L 1018.469849 254.416199 L 965.637634 321.422852 L 921.825562 378.201538 L 859.006714 462.765259 L 819.785278 530.41626 L 823.409424 535.812073 L 832.75177 534.92627 L 974.657776 504.724915 L 1051.328979 490.872559 L 1142.818848 475.167786 L 1184.214844 494.496582 L 1188.724854 514.147644 L 1172.456421 554.335693 L 1074.604126 578.496765 L 959.838989 601.449829 L 788.939636 641.879272 L 786.845764 643.409485 L 789.261841 646.389343 L 866.255127 653.637634 L 899.194702 655.409424 L 979.812134 655.409424 L 1129.932861 666.604187 L 1169.154419 692.537109 L 1192.671265 724.268677 L 1188.724854 748.429688 L 1128.322144 779.194641 L 1046.818848 759.865845 L 856.590759 714.604126 L 791.355774 698.335754 L 782.335693 698.335754 L 782.335693 703.731567 L 836.69812 756.885986 L 936.322205 846.845581 L 1061.073975 962.81897 L 1067.436279 991.490112 L 1051.409424 1014.120911 L 1034.496704 1011.704712 L 924.885986 929.234924 L 882.604126 892.107544 L 786.845764 811.48999 L 780.483276 811.48999 L 780.483276 819.946289 L 802.550415 852.241699 L 919.087341 1027.409424 L 925.127625 1081.127686 L 916.671204 1098.604126 L 886.469849 1109.154419 L 853.288696 1103.114136 L 785.073914 1007.355835 L 714.684631 899.516785 L 657.906067 802.872498 L 650.979858 806.81897 L 617.476624 1167.704834 L 601.771851 1186.147705 L 565.530212 1200 L 535.328857 1177.046997 L 519.302124 1139.919556 L 535.328857 1066.550537 L 554.657776 970.792053 L 570.362488 894.68457 L 584.536926 800.134277 L 592.993347 768.724976 L 592.429626 766.630859 L 585.503479 767.516968 L 514.22821 865.369263 L 405.825531 1011.865906 L 320.053711 1103.677979 L 299.516815 1111.812256 L 263.919525 1093.369263 L 267.221497 1060.429688 L 287.114136 1031.114136 L 405.825531 880.107361 L 477.422913 786.52356 L 523.651062 732.483276 L 523.328918 724.671265 L 520.590698 724.671265 L 205.288605 929.395935 L 149.154434 936.644409 L 124.993355 914.01355 L 127.973183 876.885986 L 139.409409 864.80542 L 234.201385 799.570435 L 233.879227 799.8927 Z"})})}function s({size:r=16,style:o,gradient:i}){let l=e();return t("svg",{width:r,height:r,viewBox:"1.7 1.7 20.6 20.6",fill:i?`url(#${l})`:"currentColor",stroke:"none",style:{flexShrink:0,...o},children:[i&&L("defs",{children:t("linearGradient",{id:l,x2:"0%",y2:"100%",children:[L("stop",{offset:"0%",stopColor:"#aca6ff"}),L("stop",{offset:"50%",stopColor:"#7a9cff"}),L("stop",{offset:"100%",stopColor:"#3f49ff"})]})}),L("path",{fillRule:"evenodd",d:"M9.3316 2.03768C11.1644 1.54688 13.0268 2.04668 14.356 3.20174C16.0859 2.86512 17.9511 3.36418 19.2935 4.70663C20.6356 6.04882 21.1326 7.91288 20.7964 9.64217C21.9527 10.9716 22.4534 12.8349 21.9625 14.6685C21.4711 16.5025 20.1051 17.8657 18.439 18.439C17.8658 20.1047 16.503 21.47 14.6695 21.9615C12.8356 22.4528 10.9727 21.9519 9.64312 20.7955C7.91371 21.1319 6.04993 20.635 4.70757 19.2926C3.36558 17.9505 2.86659 16.0866 3.20269 14.357C2.04693 13.0273 1.54757 11.1638 2.03863 9.33065C2.52997 7.49759 3.89436 6.13282 5.56011 5.55917C6.13382 3.8935 7.49837 2.52891 9.3316 2.03768Z M16.0005 13.5992C16.4972 13.5995 16.9007 14.0029 16.9009 14.4996C16.9009 14.9965 16.4974 15.3997 16.0005 15.4H13.0005C12.5035 15.4 12.1002 14.9967 12.1002 14.4996C12.1004 14.0027 12.5036 13.5992 13.0005 13.5992H16.0005Z M8.03765 8.72811C8.46377 8.47284 9.01638 8.61074 9.27203 9.03671L10.6177 11.2789C10.8836 11.7221 10.8834 12.277 10.6177 12.7203L9.27203 14.9625C9.01633 15.3887 8.46385 15.5267 8.03765 15.2711C7.61143 15.0153 7.47333 14.4629 7.72906 14.0367L8.95074 11.9996L7.72906 9.96249C7.47341 9.53628 7.61146 8.98382 8.03765 8.72811Z"})]})}function n({size:e=16,style:t}){return L("svg",{width:e,height:e,viewBox:"0 0 49.7202 40.0402",fill:"currentColor",stroke:"none",style:{flexShrink:0,...t},children:L("path",{d:"M29.8768 25.3531C30.9809 25.3531 31.876 26.2481 31.876 27.3522V31.3505C31.876 32.4545 30.9809 33.3496 29.8768 33.3496C28.7727 33.3496 27.8777 32.4545 27.8777 31.3505V27.3522C27.8777 26.2481 28.7727 25.3531 29.8768 25.3531ZM19.8812 25.3531C20.9852 25.3531 21.8803 26.2481 21.8803 27.3522V31.3505C21.8803 32.4545 20.9852 33.3496 19.8812 33.3496C18.7771 33.3496 17.882 32.4545 17.882 31.3505V27.3522C17.882 26.2481 18.7771 25.3531 19.8812 25.3531ZM24.8601 40.8772C36.974 40.8772 46.9603 33.8278 48.6801 30.8403C48.8058 30.6218 48.8464 30.3723 48.8464 30.1202V24.8018C48.8464 24.5813 48.8124 24.3622 48.7308 24.1574C47.9871 22.2899 46.0394 19.5773 43.5257 18.8495C43.1925 17.994 42.6989 16.7433 42.2384 15.8201C42.3154 15.1138 42.3426 14.3853 42.3426 13.6492C42.3426 10.99 41.7789 8.65743 40.0805 6.92044C39.2872 6.10915 38.3028 5.48684 37.1355 5.01903C34.3398 2.74775 30.2723 0.837036 24.8169 0.837036C19.3616 0.837036 15.3805 2.74775 12.5847 5.01903C11.4174 5.48684 10.433 6.10915 9.63975 6.92044C7.9413 8.65743 7.37764 10.99 7.37764 13.6492C7.37764 14.3853 7.40477 15.1138 7.48186 15.8201C7.02133 16.7433 6.52774 17.994 6.19449 18.8495C3.68082 19.5773 1.73309 22.2899 0.989389 24.1574C0.907813 24.3622 0.873779 24.5813 0.873779 24.8018V30.1202C0.873779 30.3723 0.914376 30.6218 1.04014 30.8403C2.75994 33.8278 12.7462 40.8772 24.8601 40.8772ZM26.485 13.0046C26.4 12.3422 26.3595 11.749 26.3584 11.2191L26.3584 11.1772C26.361 9.63975 26.6971 8.63938 27.2339 8.02499C27.9156 7.2448 29.3246 6.64707 32.2941 6.96844C35.3026 7.29402 36.9842 8.04072 37.9376 9.01574C38.8606 9.95971 39.3455 11.372 39.3455 13.6492C39.3455 16.0687 38.9969 17.4982 38.2302 18.3678C37.5012 19.1946 36.0656 19.8674 32.9214 19.8674C30.5041 19.8674 29.1221 19.0812 28.2386 17.9939C27.2899 16.8264 26.7559 15.1161 26.485 13.0046ZM23.2353 13.0046C23.3203 12.3422 23.3607 11.749 23.3619 11.2191L23.3619 11.1772C23.3592 9.63974 23.0232 8.63937 22.4863 8.02498C21.8046 7.24479 20.3957 6.64707 17.4261 6.96843C14.4176 7.29402 12.736 8.04071 11.7826 9.01573C10.8596 9.9597 10.3747 11.372 10.3747 13.6492C10.3747 16.0687 10.7234 17.4982 11.49 18.3677C12.219 19.1946 13.6546 19.8674 16.7989 19.8674C19.2161 19.8674 20.5981 19.0812 21.4816 17.9939C22.4304 16.8264 22.9643 15.1161 23.2353 13.0046ZM25.2042 18.8676L25.0543 18.8676C24.8715 18.8678 24.6005 18.868 24.516 18.8676C24.3045 19.2218 24.0693 19.5618 23.8075 19.884C22.2697 21.7764 19.9741 22.8644 16.7988 22.8644C13.3524 22.8644 10.8266 22.1471 9.24196 20.3498C9.15187 20.2476 9.07125 20.1406 9.07125 20.1406L8.87613 20.3498V33.5049C11.7429 35.0628 17.8959 37.8586 24.8601 37.8586C31.8243 37.8586 37.9773 35.0628 40.8441 33.5049V20.3498L40.649 20.1406C40.649 20.1406 40.5829 20.231 40.4783 20.3498C38.8936 22.1471 36.3678 22.8644 32.9214 22.8644C29.7461 22.8644 27.4506 21.7764 25.9127 19.884C25.6509 19.5618 25.4157 19.2218 25.2042 18.8676Z",fillRule:"evenodd",clipRule:"evenodd"})})}function a({size:r=16,style:o,gradient:i}){let l=e();return t("svg",{width:r,height:r,viewBox:"8 8 48 48",fill:"none",style:{flexShrink:0,...o},children:[i&&L("defs",{children:t("linearGradient",{id:l,x2:"65%",y2:"115%",children:[L("stop",{offset:"0%",stopColor:"#df5ecc"}),L("stop",{offset:"57%",stopColor:"#8b65ec"}),L("stop",{offset:"100%",stopColor:"#79b3e7"})]})}),L("path",{fill:i?`url(#${l})`:"currentColor",d:"M14 16h36v8H40v32h-8V24h-6v22h-8V24h-4z"})]})}function f({provider:e,size:r=16,style:o,gradient:i}){return"cloudflared"===e?L("svg",{width:r,height:r,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",style:o,children:L("path",{d:"M1 17.5V16a3.2 3.2 0 0 1 3.6-3.2 4.2 4.2 0 0 1 5.3-4.5 5.8 5.8 0 0 1 11 2.7l-.1 1h-3.3l-2.1 4H1zm15.8-1 1.8-3.5h1.3a4 4 0 0 1 4.1 3.5z"})}):"codex"===e?L(s,{size:r,style:o,gradient:i}):"cursor"===e?L("svg",{width:r,height:r,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",style:o,children:L("path",{d:"m12 1 10 5.5-10 5.6L2 6.5zM2 8l9.2 5.1v10L2 17.8zm20 0v9.8l-9.2 5.3z"})}):"opencode"===e?t("svg",{width:r,height:r,viewBox:"0 0 16 16","aria-hidden":"true",style:o,children:[L("path",{fill:"currentColor",fillRule:"evenodd",d:"M2 1h12v14H2zM5 4v8h6V4z"}),L("path",{fill:"currentColor",opacity:".4",d:"M5 8h6v4H5z"})]}):"copilot"===e?L(n,{size:r,style:o}):"omp"===e?L(a,{size:r,style:o,gradient:i}):L(d,{size:r,style:o})}var c=[{effort:"low"},{effort:"medium"},{effort:"high"},{effort:"xhigh"},{effort:"max"}],u=[i,{id:"claude-opus-4-6",label:"Opus 4.6",source:"static",supportedReasoningLevels:c},{id:"claude-sonnet-4-6",label:"Sonn 4.6",source:"static",supportedReasoningLevels:c}],h=[r],p=[{id:"",label:"Default",source:"static"}],v=[{id:"",label:"OMP default",source:"static"}],g={claude:u,codex:h,copilot:p,omp:v,cursor:[{id:"",label:"Cursor default",source:"static"}],opencode:[{id:"",label:"OpenCode default",source:"static"}]},x=[...u,...h,...p,...v];function y(e,L){if("copilot"===L&&!e)return"Copilot";if("cursor"===L)return e||"Grok Code (Cursor)";if("opencode"===L&&!e)return"OpenCode";if("omp"===L&&!e)return"OMP";if(!e)return"codex"===L?"Codex":"Claude Code";let t=x.find(L=>L.id===e);return t?t.label:e.replace(/-\d{8,}$/,"")}export{o as a,l as b,C as c,d,s as e,f,u as g,g as h,y as i};