@popmelt.com/core 0.36.0 → 0.37.0

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 +78 -23
  2. package/claude-plugin/.claude-plugin/plugin.json +1 -1
  3. package/claude-plugin/skills/popmelt-core/SKILL.md +1 -0
  4. package/codex-plugin/.codex-plugin/plugin.json +1 -1
  5. package/codex-plugin/skills/popmelt-core/SKILL.md +1 -0
  6. package/dist/ExploreAttachment-IO3CNUWH.mjs +1 -0
  7. package/dist/PagePreviewLayer-KQ2FLIGX.mjs +1 -0
  8. package/dist/ParticipantRuntime-Y2BQVJSL.mjs +1 -0
  9. package/dist/PhoneHostGate-2G4BA5FP.mjs +1 -0
  10. package/dist/PopmeltTasteConnectedPane-H5QWBFD7.mjs +1 -0
  11. package/dist/PreviewRuntime-V2PZF462.mjs +1 -0
  12. package/dist/{QueuedReplies-ESIFFRKS.mjs → QueuedReplies-4APDDNQX.mjs} +1 -1
  13. package/dist/SamplePlacementOverlay-ELSP5AHM.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-YPL2HDUC.mjs +1 -0
  18. package/dist/adapter-react-three-fiber.d.mts +6 -2
  19. package/dist/adapter-react-three-fiber.mjs +1 -1
  20. package/dist/adapter-three.d.mts +34 -0
  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-O3EKN3FI.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-SOSI7AT4.mjs +1 -0
  30. package/dist/chunk-3VOEPWRL.mjs +1 -0
  31. package/dist/chunk-4OEHQ6M7.mjs +24 -0
  32. package/dist/chunk-4YQWU5YB.mjs +1 -0
  33. package/dist/chunk-5IZHN3A7.mjs +1 -0
  34. package/dist/chunk-6EO73WJN.mjs +1 -0
  35. package/dist/chunk-6O5QLRSA.mjs +1 -0
  36. package/dist/chunk-76WRZ2NH.mjs +1 -0
  37. package/dist/chunk-A4GARXVQ.mjs +1 -0
  38. package/dist/chunk-AAMUU2QA.mjs +1 -0
  39. package/dist/chunk-AGCS65LT.mjs +1 -0
  40. package/dist/chunk-AGYBVMHX.mjs +1 -0
  41. package/dist/{chunk-RR4SHK7O.mjs → chunk-AOTDTBQO.mjs} +1 -1
  42. package/dist/chunk-ATLUO4G7.mjs +1 -0
  43. package/dist/chunk-AYZUOBFI.mjs +1 -0
  44. package/dist/chunk-B22WBEQC.mjs +1 -0
  45. package/dist/chunk-B2ISA6V6.mjs +1 -0
  46. package/dist/chunk-B4DYUYX4.mjs +1 -0
  47. package/dist/chunk-BVGHHT3Y.mjs +1 -0
  48. package/dist/{chunk-NDGM4DAP.mjs → chunk-BYASSHKJ.mjs} +1 -1
  49. package/dist/chunk-C2ZSNUXQ.mjs +1 -0
  50. package/dist/chunk-CIA6WVXQ.mjs +1 -0
  51. package/dist/chunk-CIKFUS7J.mjs +1 -0
  52. package/dist/chunk-CK3CDA3L.mjs +1 -0
  53. package/dist/{chunk-AH6LZOQC.mjs → chunk-DO46YJCX.mjs} +1 -1
  54. package/dist/chunk-DRPRASD6.mjs +1 -0
  55. package/dist/chunk-EBJ23A7F.mjs +1 -0
  56. package/dist/chunk-ECMLCGAM.mjs +1 -0
  57. package/dist/chunk-EILBHZDX.mjs +1 -0
  58. package/dist/{chunk-DOCRI237.mjs → chunk-ELKVFX2O.mjs} +1 -1
  59. package/dist/{chunk-EXIUW3JX.mjs → chunk-EUFR7R5Q.mjs} +1 -1
  60. package/dist/chunk-EZVFCJEG.mjs +1 -0
  61. package/dist/chunk-FHCKFQBY.mjs +1 -0
  62. package/dist/chunk-FJWWBKCQ.mjs +1 -0
  63. package/dist/chunk-FON4QY7P.mjs +1 -0
  64. package/dist/chunk-GLF7Z5IR.mjs +1 -0
  65. package/dist/chunk-HAZXZ5TU.mjs +1 -0
  66. package/dist/chunk-HKHZBKAN.mjs +1 -0
  67. package/dist/chunk-I6FJ533W.mjs +1 -0
  68. package/dist/chunk-I7AI52RX.mjs +1 -0
  69. package/dist/{chunk-YHYFWNN6.mjs → chunk-IAXSC2ZN.mjs} +1 -1
  70. package/dist/chunk-IGKU4YIV.mjs +1 -0
  71. package/dist/chunk-IW7V7WNL.mjs +1 -0
  72. package/dist/chunk-JCW2WY7X.mjs +1 -0
  73. package/dist/chunk-JEGBAHYK.mjs +1 -0
  74. package/dist/chunk-JLK3VRBT.mjs +1 -0
  75. package/dist/chunk-KCDHP4N3.mjs +1 -0
  76. package/dist/chunk-KF73S7MG.mjs +1 -0
  77. package/dist/chunk-L6S66APQ.mjs +1 -0
  78. package/dist/chunk-LH7HKUCK.mjs +1 -0
  79. package/dist/chunk-LOUWY55X.mjs +1 -0
  80. package/dist/chunk-LXFKOYLK.mjs +1 -0
  81. package/dist/chunk-MDPZUECK.mjs +1 -0
  82. package/dist/chunk-MHWIFSXJ.mjs +1 -0
  83. package/dist/chunk-MPEVFQ43.mjs +1 -0
  84. package/dist/{chunk-57FM7XQV.mjs → chunk-NI77Y3WC.mjs} +1 -1
  85. package/dist/chunk-NXTWB3A7.mjs +1 -0
  86. package/dist/chunk-OA63PYHZ.mjs +1 -0
  87. package/dist/chunk-OFJUTWJU.mjs +1 -0
  88. package/dist/chunk-OREALBUO.mjs +1 -0
  89. package/dist/chunk-OVZ4CQGM.mjs +1 -0
  90. package/dist/chunk-PILMDBAX.mjs +1 -0
  91. package/dist/chunk-PLE6FFKY.mjs +1 -0
  92. package/dist/chunk-PRPXMDZ7.mjs +1 -0
  93. package/dist/chunk-PWQB3FIW.mjs +1 -0
  94. package/dist/chunk-ROKRMYFR.mjs +1 -0
  95. package/dist/chunk-SNAJBV7T.mjs +30 -0
  96. package/dist/chunk-SOGN7S54.mjs +1 -0
  97. package/dist/chunk-SOT33EQ4.mjs +1 -0
  98. package/dist/chunk-SQA27YGA.mjs +1 -0
  99. package/dist/chunk-SUAHDXJZ.mjs +1 -0
  100. package/dist/chunk-TCGXG7UA.mjs +1 -0
  101. package/dist/chunk-TMSGNHXH.mjs +1 -0
  102. package/dist/chunk-TQ3SP5TE.mjs +1 -0
  103. package/dist/chunk-UTP56NCY.mjs +1 -0
  104. package/dist/chunk-W2QQVB2H.mjs +1 -0
  105. package/dist/chunk-WC4ZNVFM.mjs +1 -0
  106. package/dist/chunk-WDSFOF2E.mjs +1 -0
  107. package/dist/chunk-WP2SHSCG.mjs +1 -0
  108. package/dist/chunk-X6I6KQDG.mjs +1 -0
  109. package/dist/chunk-XJJDBMZI.mjs +1 -0
  110. package/dist/chunk-XY7YW7SH.mjs +1 -0
  111. package/dist/chunk-YMWXWXPV.mjs +1 -0
  112. package/dist/chunk-YU3ZY76H.mjs +1 -0
  113. package/dist/chunk-YVT3J6JB.mjs +1 -0
  114. package/dist/chunk-YYFF2X3L.mjs +1 -0
  115. package/dist/cli.mjs +1 -1
  116. package/dist/codex-note-context-UI55CWRI.mjs +1 -0
  117. package/dist/codex-project-LIU27RXA.mjs +1 -0
  118. package/dist/codex-session-registry-YNU6LEVH.mjs +1 -0
  119. package/dist/codex-store-mount-EPETPOBA.mjs +1 -0
  120. package/dist/{dev-server-DtX2_HCa.d.mts → dev-server-BRrhkH5t.d.mts} +11 -1
  121. package/dist/dev-server-WYB2CRC5.mjs +1 -0
  122. package/dist/focus-inspection-42IEM45O.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-DuosDN9G.d.mts} +9 -3
  138. package/dist/peer-client-RSC6EGAF.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 +42 -19
  149. package/dist/server.mjs +1 -1
  150. package/dist/shared-page-GO76UP7I.mjs +1 -0
  151. package/dist/{subjects-DdavjSTL.d.mts → subjects-BhO1x5tz.d.mts} +80 -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-B8J5awc_.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
+ import{d as e}from"./chunk-TCGXG7UA.mjs";import{d as t}from"./chunk-AYZUOBFI.mjs";import{D as r,I as a,K as o,L as i,M as n,N as s,O as l,a as c,h as p,s as d}from"./chunk-SNAJBV7T.mjs";import{b as w,e as m}from"./chunk-NXTWB3A7.mjs";import{a as u}from"./chunk-YMWXWXPV.mjs";import{a as h,b as _}from"./chunk-NOHXTT24.mjs";import{spawn as g}from"child_process";import{closeSync as f,openSync as P}from"fs";import{appendFile as E,mkdir as T,readFile as O,realpath as y}from"fs/promises";import{dirname as v,join as R}from"path";import{fileURLToPath as M}from"url";import{spawn as I}from"child_process";import{mkdtemp as S,readFile as L,rm as C}from"fs/promises";import{tmpdir as b}from"os";import{join as A}from"path";import x from"ws";async function N(e,t){let r=Date.now()+25e3;for(;Date.now()<r;){let t=await e();if(t)return t;await new Promise(e=>setTimeout(e,100))}throw new Error(`Timed out waiting for ${t}`)}function j(e){let t=new URL(e);if("http:"!==t.protocol||!["localhost","127.0.0.1"].includes(t.hostname)||t.username||t.password||t.hash||t.search)throw new Error("Managed participants require an explicit local app URL");return async e=>{let r,a,o=await S(A(b(),"popmelt-participant-")),i=I(process.env.CHROME_PATH??("darwin"===process.platform?"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome":"google-chrome"),["--headless=new","--no-first-run","--no-default-browser-check","--remote-debugging-address=127.0.0.1","--remote-debugging-port=0","--window-size=1440,1000",`--user-data-dir=${o}`,"about:blank"],{stdio:["ignore","ignore","pipe"]}),n="",s=!1,l=0,c=new Map;i.on("error",e=>{r=e}),i.stderr.on("data",e=>{n=(n+e).slice(-4e3)});let p=()=>{for(let e of c.values())clearTimeout(e.timer),e.reject(new Error("Participant browser disconnected"));c.clear()},d=async()=>{if(!s){if(s=!0,p(),a?.close(),i.pid&&null===i.exitCode&&null===i.signalCode){let e=new Promise(e=>i.once("exit",()=>e()));i.kill("SIGTERM");let t=setTimeout(()=>i.kill("SIGKILL"),3e3);await e,clearTimeout(t)}await C(o,{recursive:!0,force:!0})}};try{let w=await N(async()=>{if(r)throw r;if(null!==i.exitCode||null!==i.signalCode)throw new Error(`Participant browser exited: ${n}`);return L(A(o,"DevToolsActivePort"),"utf8").then(e=>e.split("\n")[0]).catch(()=>null)},"participant browser startup"),m=(await(await fetch(`http://127.0.0.1:${w}/json/list`,{signal:AbortSignal.timeout(3e3)})).json()).find(e=>"page"===e.type);if(!m)throw new Error("Participant browser has no page");a=new x(m.webSocketDebuggerUrl,{handshakeTimeout:5e3}),await new Promise((e,t)=>{a.once("open",e),a.once("error",t)}),a.on("close",p),a.on("error",p),a.on("message",e=>{let t=JSON.parse(e.toString()),r=c.get(t.id);r&&(c.delete(t.id),clearTimeout(r.timer),t.error?r.reject(new Error(t.error.message??"Participant browser request failed")):r.resolve(t.result))});let u=(e,t={})=>new Promise((r,o)=>{if(s||a?.readyState!==x.OPEN)return void o(new Error("Participant browser is closed"));let i=++l,n=setTimeout(()=>{c.delete(i),o(new Error(`Participant browser timed out: ${e}. Action was not retried.`))},35e3);c.set(i,{resolve:r,reject:o,timer:n}),a.send(JSON.stringify({id:i,method:e,params:t}))}),h=async(e,t=!1)=>{let r=await u("Runtime.evaluate",{expression:e,userGesture:t,awaitPromise:!0,returnByValue:!0});if(r.exceptionDetails)throw new Error("Participant action failed: "+JSON.stringify(r.exceptionDetails));return r.result?.value};await u("Page.enable"),await u("Runtime.enable");let _=(await u("Page.getFrameTree")).frameTree.frame.id,g=new Set,f=!1;await u("Runtime.addBinding",{name:"__popmeltCapture"}),a.on("message",e=>{let r=JSON.parse(e.toString());if("Runtime.executionContextCreated"===r.method){let e=r.params.context;e.auxData?.isDefault&&e.auxData.frameId===_&&g.add(e.id)}if("Runtime.executionContextDestroyed"===r.method&&g.delete(r.params.executionContextId),"Runtime.executionContextsCleared"===r.method&&g.clear(),"Runtime.bindingCalled"!==r.method||"__popmeltCapture"!==r.params.name||!g.has(r.params.executionContextId))return;let a,o=r.params.executionContextId,i=r.params.payload;if(i.length>22e4)return;try{a=JSON.parse(i)}catch{return}if(!Number.isSafeInteger(a.id)||!Array.isArray(a.selectors)||a.selectors.length>200||a.selectors.some(e=>"string"!=typeof e||e.length>1024))return;let n=e=>u("Runtime.evaluate",{contextId:o,expression:`window.__POPMELT_CAPTURE_DELIVER__?.(${a.id},${JSON.stringify(e)})`}).catch(()=>{});f?n(null):(f=!0,(async()=>{try{if(!await h(`location.origin + location.pathname === ${JSON.stringify(t.href)}`))return null;let e=await h(`window.__POPMELT_AGENT_VIEW__.geometry(${JSON.stringify(a.selectors)})`),r=e.clip;if(![r.x,r.y,r.width,r.height].every(Number.isFinite)||r.x<0||r.y<0||r.width<=0||r.height<=0||r.width>4096||r.height>4096)return null;await h("window.__POPMELT_CAPTURE_CHROME__ = [...document.querySelectorAll('[data-popmelt-top-layer-host]:not([data-popmelt-capture-hidden])')]; window.__POPMELT_CAPTURE_CHROME__.forEach(element => element.setAttribute('data-popmelt-capture-hidden', ''));");try{let t=await u("Page.captureScreenshot",{format:"jpeg",quality:80,captureBeyondViewport:!0,clip:{...r,scale:Math.min(1,1280/Math.max(r.width,r.height))}});return"string"!=typeof t.data||t.data.length>5e5?null:{image:"data:image/jpeg;base64,"+t.data,targets:e.targets}}finally{await h("window.__POPMELT_CAPTURE_CHROME__?.forEach(element => element.removeAttribute('data-popmelt-capture-hidden')); delete window.__POPMELT_CAPTURE_CHROME__;").catch(()=>{})}}catch{return null}})().then(n).finally(()=>{f=!1}))}),await u("Page.addScriptToEvaluateOnNewDocument",{source:`if (location.origin + location.pathname === ${JSON.stringify(t.href)}) {\n window.__POPMELT_AGENT_CREDENTIAL__ = ${JSON.stringify(e)};\n const waiting = new Map(); let id = 0;\n window.__POPMELT_CAPTURE_DELIVER__ = (id, frame) => { const pending = waiting.get(id); if (!pending) return; waiting.delete(id); clearTimeout(pending.timer); pending.resolve(frame); };\n window.__POPMELT_MANAGED_CAPTURE__ = () => { let stopped = false; const owned = new Set(); return {\n frame: selectors => stopped ? Promise.resolve(null) : new Promise(resolve => { const key = ++id; owned.add(key); const timer = setTimeout(() => window.__POPMELT_CAPTURE_DELIVER__(key, null), 5000); waiting.set(key, {resolve: frame => { owned.delete(key); resolve(frame); }, timer}); window.__popmeltCapture(JSON.stringify({id: key, selectors})); }),\n stop: () => { stopped = true; for (const key of owned) window.__POPMELT_CAPTURE_DELIVER__(key, null); }\n }; };\n }`});let P=()=>N(()=>h(`location.origin + location.pathname === ${JSON.stringify(t.href)} && Boolean(window.__POPMELT_AGENT_VIEW__)`),"native participant canvas");a.on("message",e=>{"Page.loadEventFired"===JSON.parse(e.toString()).method&&P().then(()=>h("window.__POPMELT_AGENT_VIEW__.share()",!0)).catch(()=>{})}),await u("Page.navigate",{url:t.href}),await P(),await h("window.__POPMELT_AGENT_VIEW__.share()",!0);let E=Promise.resolve();return{act(e){let t=E.then(async()=>(await P(),h(`window.__POPMELT_AGENT_VIEW__.act(${JSON.stringify(e)})`)));return E=t.catch(()=>{}),t},close:d}}catch(e){throw await d(),e}}}async function D(e){return y(e).catch(()=>e)}async function k(e,t){let r=(await O(t,"utf8").catch(()=>"")).slice(-8e3).trim();return new Error(r?`${e}\nBridge log (${t}):\n${r}`:e)}async function $(e){if("production"===process.env.NODE_ENV&&!e?.force)throw new Error("[Bridge] Refusing to start in production. Pass { force: true } to override.");if((e={...e,experimentalEventTransport:d(e?.experimentalEventTransport)}).detached){let t=e.projectRoot??process.cwd(),l=await u(R(t,".popmelt","bridge-start.lock"),()=>async function(e){let t,l=e.port??1111,d=await D(e.projectRoot??process.cwd()),w=p(d),m=await o(d);for await(let{port:o,status:i}of n(d,l))if(i.projectId===w){if(i.version&&i.version!==r&&"detached"===i.restartMode){t??={port:o,status:i};continue}if("detached"===i.restartMode&&i.version===r&&(i.eventTransport??"sse")!==e.experimentalEventTransport)throw new Error(`[Bridge] Transport conflict on port ${o}: the project is using ${i.eventTransport??"sse"}, but this client requested ${e.experimentalEventTransport}. Use the running transport or stop the bridge before switching.`);if(!a(i,{projectId:w,version:r,restartMode:"detached",eventTransport:e.experimentalEventTransport}))continue;let n=e.devOrigin;if(n&&i.devOrigin!==n)try{await fetch(`http://127.0.0.1:${o}/config`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({devOrigin:n})})}catch{}return process.env.POPMELT_BRIDGE_PORT=String(o),process.env.POPMELT_PROJECT_ID=w,{port:o,projectId:w,storeId:m.storeId,close:async()=>{}}}t&&await s(t.port,w,t.status);let u=R(v(M(import.meta.url)),"bridge-entry.mjs"),h=R(d,".popmelt"),_=R(h,"bridge.log");await T(h,{recursive:!0}),await E(_,`\n[${(new Date).toISOString()}] Starting detached bridge\n`);let O,y=P(_,"a");try{O=g(process.execPath,[u],{detached:!0,stdio:["ignore","ignore",y],env:{...process.env,POPMELT_PORT:String(l),POPMELT_PROJECT_ROOT:d,POPMELT_DEV_ORIGIN:e.devOrigin??"",POPMELT_CURSOR_PATH:e.cursorPath??process.env.POPMELT_CURSOR_PATH??"",POPMELT_OPENCODE_PATH:e.opencodePath??"",POPMELT_COPILOT_PATH:e.copilotPath??"",POPMELT_EXPERIMENTAL_EVENT_TRANSPORT:e.experimentalEventTransport}})}finally{f(y)}let I=null;O.once("error",e=>{I=`spawn error: ${e.message}`}),O.once("exit",(e,t)=>{I=`child exited before becoming healthy (${t?`signal ${t}`:`code ${e??"unknown"}`})`}),O.unref();let S=Date.now()+3e4;for(;Date.now()<S;){if(await new Promise(e=>setTimeout(e,100)),I)throw await k(`[Bridge] Detached bridge ${I}`,_);let t=await c(d);if(t&&t.pid===O.pid){let o=await i(t.port);if(a(o,{projectId:w,version:r,restartMode:"detached",eventTransport:e.experimentalEventTransport}))return process.env.POPMELT_BRIDGE_PORT=String(t.port),process.env.POPMELT_PROJECT_ID=w,{port:t.port,projectId:w,storeId:m.storeId,close:async()=>{}}}}throw O.kill("SIGTERM"),await k(`[Bridge] Detached bridge failed to start within 30s (port ${l})`,_)}(e),4e4);if(!1===e.manageLease)return l;let d=await h({port:l.port,projectId:l.projectId});if(!d)return console.warn("[popmelt] detached bridge started without a process lease"),l;let w=_(d);return{...l,close:async()=>{w(),await d.release()}}}let t=await l(e);return process.env.POPMELT_BRIDGE_PORT=String(t.port),process.env.POPMELT_PROJECT_ID=t.projectId,t}async function G(r){let a,o=await D(r.projectRoot??process.cwd()),i=r.devOrigin,n=r.framework&&await e(o,r.framework,r.nextBundler),s=n?.planes,l=r.readGuestApp??t(o,()=>i,r.framework,o,r.nextBundler),c=w(()=>p,async e=>{let t=e.basePath??"/";return("/"===t?l:await(s?.pageReader(t)))?.(e)},s),p=await $({...r,projectRoot:o,participantSessions:{...c,planeApps:s,...s&&{planeEntry:async(e,t)=>{a?.planeMiddleware?(e.headers.host=new URL(i).host,await a.planeMiddleware(e,t,()=>t.writeHead(404).end())):t.writeHead(503).end()}},hostEntry:(e,t)=>{if(a)return a.hostEntry(e,t);t.writeHead(503).end()}}}).catch(async e=>{throw await(n?.close()),e});try{let e;return a=await m({projectRoot:o,bridge:p,origin:i,planeApps:s,guestInvites:"lan"}),console.info("[popmelt] Pair and Share: private host link for another browser or a headless session in .popmelt/participant-host-link.json."),{...p,bootstrap:s?{...await a.read(),appVersion:void 0}:await a.read(),readBootstrap:e=>a.read(e),close:()=>e??=(async()=>{try{a?.cancelBrowserLaunch(),await c.stopGuestSharing(),await(n?.close())}finally{await p.close()}})(),async updateOrigin(e){a?.cancelBrowserLaunch(),i=e,a=await m({projectRoot:o,bridge:p,origin:i,planeApps:s,guestInvites:"lan"})}}}catch(e){throw await(n?.close()),await p.close(),e}}export{j as a,$ as b,G as c};
@@ -0,0 +1 @@
1
+ import{a as e,b as t}from"./chunk-HKHZBKAN.mjs";import{createServer as a}from"http";import{readFile as i,realpath as r,stat as s}from"fs/promises";import{extname as o,join as n}from"path";var d={".html":"text/html; charset=utf-8",".htm":"text/html; charset=utf-8",".css":"text/css",".js":"text/javascript",".mjs":"text/javascript",".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".svg":"image/svg+xml",".gif":"image/gif",".avif":"image/avif",".webp":"image/webp",".ico":"image/x-icon",".woff":"font/woff",".woff2":"font/woff2",".ttf":"font/ttf"};async function m(m,p=0,c){let f=await r(m),l=a((a,m)=>{if(m.setHeader("Cache-Control","no-store"),m.setHeader("X-Content-Type-Options","nosniff"),a.headers.host!==new URL(w).host)return void m.writeHead(403).end();let p=()=>{(async()=>{if("GET"!==a.method&&"HEAD"!==a.method)return void m.writeHead(405).end();let p=new URL(a.url??"/",w);if(c&&p.pathname===e)return void m.writeHead(200,{"Content-Type":"text/javascript"}).end("HEAD"===a.method?void 0:await t("toolbar"));let l=decodeURIComponent(p.pathname);if(/[\\%]/.test(l)||l.includes("\0")||l.split("/").some(e=>e.startsWith(".")||"node_modules"===e))return void m.writeHead(404).end();let h=n(f,l);(await s(h)).isDirectory()&&(h=n(h,"index.html"));let g=d[o(h).toLowerCase()];if(!g||await r(h)!==h||!(await s(h)).isFile())return void m.writeHead(404).end();let v=await i(h);if(c&&g.startsWith("text/html")){let t="<script>window.__POPMELT_PARTICIPANTS__="+JSON.stringify(await c.read(l)).replace(/</g,"\\u003c")+'<\/script><script defer src="'+e+'"><\/script>',a=v.toString();v=/<\/head\s*>/i.test(a)?a.replace(/<\/head\s*>/i,()=>t+"</head>"):a.replace(/^(\s*<!doctype[^>]*>)?/i,e=>e+t)}m.writeHead(200,{"Content-Type":g}).end("HEAD"===a.method?void 0:v)})().catch(()=>m.writeHead(404).end())};c?c.middleware(a,m,p):p()}),w="";return await new Promise((e,t)=>l.once("error",t).listen(p,"127.0.0.1",e)),w="http://127.0.0.1:"+l.address().port,{origin:w,isRunning:()=>l.listening,close:async()=>{let e=new Promise(e=>l.close(()=>e()));l.closeAllConnections(),await e}}}export{m as a};
@@ -1 +1 @@
1
- "use client";import{h as e,g as t}from"./chunk-67QNAAUC.mjs";import{useSyncExternalStore as r,useEffect as n,useCallback as o}from"react";var a="devtools-toolbar-theme",i="popmelt-theme-change",d="popmelt-theme-project-change",l="(prefers-color-scheme: dark)",c={light:{surface:"#eaeaea",border:"#dddddd",control:"#dddddd",primary:"#222222",threadPrimary:"#222222",secondary:"#777777",muted:"#aaaaaa",mutedStrong:"#888888",hoverSurface:"#dddddd",hoverForeground:"#333333",raisedSurface:"#ffffff",softSurface:"#f5f5f5",actionSurface:"#222222",actionForeground:"#eeeeee",actionHover:"#000000",hairline:"rgba(0,0,0,0.1)",softHairline:"rgba(0,0,0,0.06)",scrollbarIdle:"rgba(34,34,34,0.2)",scrollbarHover:"rgba(34,34,34,0.5)",logoFilter:"none"},dark:{surface:"#111111",border:"#222222",control:"#222222",primary:"#dddddd",threadPrimary:"#aaaaaa",secondary:"#777777",muted:"#555555",mutedStrong:"#777777",hoverSurface:"#222222",hoverForeground:"#dddddd",raisedSurface:"#181818",softSurface:"#181818",actionSurface:"#dddddd",actionForeground:"#222222",actionHover:"#ffffff",hairline:"rgba(255,255,255,0.1)",softHairline:"rgba(255,255,255,0.06)",scrollbarIdle:"rgba(221,221,221,0.2)",scrollbarHover:"rgba(221,221,221,0.5)",logoFilter:"invert(1)"}};function w(e){return"light"===e||"dark"===e?e:"auto"}function u(e){return"light"===e?"dark":"dark"===e?"auto":"light"}function f(){if(typeof window>"u")return{exists:!1,preference:"auto"};let e,t=p(window.__POPMELT_PROJECT_ID__);try{e=window.localStorage.getItem(t)}catch{let e=document.documentElement.style.colorScheme;return{exists:!1,preference:"dark"===e||"light"===e?e:"auto"}}if(null!==e)return{exists:!0,preference:w(e)};let r=window.__POPMELT_PROJECT_ID__;if(r){let e=p(void 0),n=window.localStorage.getItem(e);if(null!==n){let o=w(n);window.localStorage.setItem(t,o),window.localStorage.removeItem(e);let a=E(void 0);return null!==window.localStorage.getItem(a)&&(window.localStorage.setItem(E(r),o),window.localStorage.removeItem(a)),{exists:!0,preference:o}}}let n=window.localStorage.getItem(a);if(null!==n){let e=w(n);return window.__POPMELT_PROJECT_ID__&&(window.localStorage.setItem(t,e),window.localStorage.removeItem(a)),{exists:!0,preference:e}}return{exists:!1,preference:"auto"}}function s(){return f().preference}function m(e,t,r){if(typeof window>"u")return;window.localStorage.setItem(p(t),e);let n=E(t);r?window.localStorage.setItem(n,e):window.localStorage.removeItem(n)}function g(){if(typeof window>"u")return"auto:light";return`${s()}:${window.matchMedia(l).matches?"dark":"light"}`}function v(e){if(typeof window>"u")return()=>{};let t=t=>{let r=p(window.__POPMELT_PROJECT_ID__);(t.key===r||t.key===a)&&e()},r=window.matchMedia(l),n=()=>e();return window.addEventListener("storage",t),window.addEventListener(i,e),window.addEventListener(d,e),r.addEventListener("change",n),()=>{window.removeEventListener("storage",t),window.removeEventListener(i,e),window.removeEventListener(d,e),r.removeEventListener("change",n)}}function h(a){let d=r(v,g,()=>"auto:light"),[l,c]=d.split(":"),u=function(e,t){return"auto"===e?t?"dark":"light":e}(l,"dark"===c),h=typeof window<"u"?window.__POPMELT_PROJECT_ID__:void 0;return n(()=>{if(!a||!h)return;let r=!1;return(async()=>{let n=E(h),o=window.localStorage.getItem(n);if(null!==o){let t=w(o),n=await e(a,t);return void(!r&&n&&(m(n.preferences.theme,h,!1),window.dispatchEvent(new Event(i))))}let d=await t(a);if(r||!d)return;let l=f();if(!d.exists&&l.exists){let t=await e(a,l.preference);return void(!r&&t&&(m(t.preferences.theme,h,!1),window.dispatchEvent(new Event(i))))}m(d.preferences.theme,h,!1),window.dispatchEvent(new Event(i))})(),()=>{r=!0}},[a,h]),[u,o(t=>{typeof window>"u"||s()===t||(m(t,h,!(!a||!h)),window.dispatchEvent(new Event(i)),a&&h&&e(a,t).then(e=>{e&&(m(e.preferences.theme,h,!1),window.dispatchEvent(new Event(i)))}))},[a,h]),l]}function p(e){let t=e?.trim()||"default";return`${a}:${t}`}function E(e){return`${p(e)}:pending-sync`}function _(){typeof window<"u"&&window.dispatchEvent(new Event(d))}export{c as a,u as b,h as c,_ as d};
1
+ "use client";import{h as e,g as t}from"./chunk-FON4QY7P.mjs";import{useSyncExternalStore as r,useEffect as n,useCallback as o}from"react";var a="devtools-toolbar-theme",i="popmelt-theme-change",d="popmelt-theme-project-change",l="(prefers-color-scheme: dark)",c={light:{surface:"#eaeaea",border:"#dddddd",control:"#dddddd",primary:"#222222",threadPrimary:"#222222",secondary:"#777777",muted:"#aaaaaa",mutedStrong:"#888888",hoverSurface:"#dddddd",hoverForeground:"#333333",raisedSurface:"#ffffff",softSurface:"#f5f5f5",actionSurface:"#222222",actionForeground:"#eeeeee",actionHover:"#000000",hairline:"rgba(0,0,0,0.1)",softHairline:"rgba(0,0,0,0.06)",scrollbarIdle:"rgba(34,34,34,0.2)",scrollbarHover:"rgba(34,34,34,0.5)",logoFilter:"none"},dark:{surface:"#111111",border:"#222222",control:"#222222",primary:"#dddddd",threadPrimary:"#aaaaaa",secondary:"#777777",muted:"#555555",mutedStrong:"#777777",hoverSurface:"#222222",hoverForeground:"#dddddd",raisedSurface:"#181818",softSurface:"#181818",actionSurface:"#dddddd",actionForeground:"#222222",actionHover:"#ffffff",hairline:"rgba(255,255,255,0.1)",softHairline:"rgba(255,255,255,0.06)",scrollbarIdle:"rgba(221,221,221,0.2)",scrollbarHover:"rgba(221,221,221,0.5)",logoFilter:"invert(1)"}};function w(e){return"light"===e||"dark"===e?e:"auto"}function u(e){return"light"===e?"dark":"dark"===e?"auto":"light"}function f(){if(typeof window>"u")return{exists:!1,preference:"auto"};let e,t=p(window.__POPMELT_PROJECT_ID__);try{e=window.localStorage.getItem(t)}catch{let e=document.documentElement.style.colorScheme;return{exists:!1,preference:"dark"===e||"light"===e?e:"auto"}}if(null!==e)return{exists:!0,preference:w(e)};let r=window.__POPMELT_PROJECT_ID__;if(r){let e=p(void 0),n=window.localStorage.getItem(e);if(null!==n){let o=w(n);window.localStorage.setItem(t,o),window.localStorage.removeItem(e);let a=E(void 0);return null!==window.localStorage.getItem(a)&&(window.localStorage.setItem(E(r),o),window.localStorage.removeItem(a)),{exists:!0,preference:o}}}let n=window.localStorage.getItem(a);if(null!==n){let e=w(n);return window.__POPMELT_PROJECT_ID__&&(window.localStorage.setItem(t,e),window.localStorage.removeItem(a)),{exists:!0,preference:e}}return{exists:!1,preference:"auto"}}function s(){return f().preference}function m(e,t,r){if(typeof window>"u")return;window.localStorage.setItem(p(t),e);let n=E(t);r?window.localStorage.setItem(n,e):window.localStorage.removeItem(n)}function g(){if(typeof window>"u")return"auto:light";return`${s()}:${window.matchMedia(l).matches?"dark":"light"}`}function v(e){if(typeof window>"u")return()=>{};let t=t=>{let r=p(window.__POPMELT_PROJECT_ID__);(t.key===r||t.key===a)&&e()},r=window.matchMedia(l),n=()=>e();return window.addEventListener("storage",t),window.addEventListener(i,e),window.addEventListener(d,e),r.addEventListener("change",n),()=>{window.removeEventListener("storage",t),window.removeEventListener(i,e),window.removeEventListener(d,e),r.removeEventListener("change",n)}}function h(a){let d=r(v,g,()=>"auto:light"),[l,c]=d.split(":"),u=function(e,t){return"auto"===e?t?"dark":"light":e}(l,"dark"===c),h=typeof window<"u"?window.__POPMELT_PROJECT_ID__:void 0;return n(()=>{if(!a||!h)return;let r=!1;return(async()=>{let n=E(h),o=window.localStorage.getItem(n);if(null!==o){let t=w(o),n=await e(a,t);return void(!r&&n&&(m(n.preferences.theme,h,!1),window.dispatchEvent(new Event(i))))}let d=await t(a);if(r||!d)return;let l=f();if(!d.exists&&l.exists){let t=await e(a,l.preference);return void(!r&&t&&(m(t.preferences.theme,h,!1),window.dispatchEvent(new Event(i))))}m(d.preferences.theme,h,!1),window.dispatchEvent(new Event(i))})(),()=>{r=!0}},[a,h]),[u,o(t=>{typeof window>"u"||s()===t||(m(t,h,!(!a||!h)),window.dispatchEvent(new Event(i)),a&&h&&e(a,t).then(e=>{e&&(m(e.preferences.theme,h,!1),window.dispatchEvent(new Event(i)))}))},[a,h]),l]}function p(e){let t=e?.trim()||"default";return`${a}:${t}`}function E(e){return`${p(e)}:pending-sync`}function _(){typeof window<"u"&&window.dispatchEvent(new Event(d))}export{c as a,u as b,h as c,_ as d};
@@ -0,0 +1 @@
1
+ import{b as e,c as t}from"./chunk-IW7V7WNL.mjs";import{a as r,b as o}from"./chunk-HKHZBKAN.mjs";import{a as i,c as a}from"./chunk-CIKFUS7J.mjs";import{o as n,t as s,u as p}from"./chunk-UTP56NCY.mjs";import{a as l,c,e as d,f as h,g as m}from"./chunk-GLF7Z5IR.mjs";import{randomBytes as f,X509Certificate as u}from"crypto";import{createServer as w}from"https";import{createServer as g}from"http";import{pipeline as y}from"stream/promises";import{Readable as v}from"stream";import{Resolver as b}from"dns/promises";import{setTimeout as j}from"timers/promises";import{spawn as I}from"child_process";import{devNull as S}from"os";import{createInterface as P}from"readline";import{networkInterfaces as A}from"os";import{lstat as T,readFile as E,realpath as H}from"fs/promises";import{extname as k,isAbsolute as x,relative as O,resolve as C,sep as N}from"path";var L={".js":"text/javascript",".mjs":"text/javascript",".css":"text/css",".html":"text/html",".svg":"image/svg+xml",".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".webp":"image/webp",".gif":"image/gif",".ico":"image/x-icon",".json":"application/json",".webmanifest":"application/manifest+json",".woff":"font/woff",".woff2":"font/woff2",".wasm":"application/wasm",".mp4":"video/mp4",".glb":"model/gltf-binary"};function R(e,t){return{body:e,type:L[k(t)]??"application/octet-stream"}}async function _(e,t,o){let i="",a=await e({root:t,base:o,logLevel:"error",plugins:[{name:"popmelt-lan-assets",configResolved(e){if(i=e.publicDir,e.root!==t||e.base!==o||e.build.write||e.build.sourcemap)throw new Error("Expected an in-memory plane build without source maps.")}}],build:{write:!1,emptyOutDir:!1,copyPublicDir:!1,sourcemap:!1,watch:null}}),n=new Map;for(let e of Array.isArray(a)?a:[a]){if(!("output"in e))throw new Error("Expected a browser application build.");for(let t of e.output)t.fileName.endsWith(".map")||n.set(t.fileName,R("chunk"===t.type?t.code:t.source,t.fileName))}if(!n.has("index.html"))throw new Error("Expected a Vite HTML entry for the shared app.");return async(e,o,a)=>{let s=n.get(e);if(!s&&i&&e){let r=C(i,e);try{let o=await H(r),a=O(t,o);if(o!==r||".."===a||a.startsWith(".."+N)||x(a)||!r.startsWith(i+N)||!(await T(r)).isFile())return;s=R(await E(r),e)}catch(e){if(!["ENOENT","ENOTDIR"].includes(e.code??""))throw e}}if(s??=o&&!k(e)?n.get("index.html"):void 0,!s||"text/html"!==s.type)return s;let p="<script>window.__POPMELT_PARTICIPANTS__="+JSON.stringify(a).replace(/</g,"\\u003c")+';<\/script><script defer src="'+r+'"><\/script>',l=Buffer.from(s.body).toString("utf8");return R(l.replace(/<head(?:\s[^>]*)?>/i.test(l)?/<head(?:\s[^>]*)?>/i:/^(?:\s*<!doctype[^>]*>)?(?:\s*<html[^>]*>)?/i,e=>e+p),"index.html")}}var D="/__popmelt/join",$=new Set(["source","pending","snapshot","read","connect","renew","disconnect","merge","publish","attention","attention-read","preview-read","preview-demand","preview-publish","rename"]),U="/__popmelt/guest-admission.js",X=`<!doctype html><html lang="en"><head>\n<meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">\n<meta name="color-scheme" content="light dark"><title>Join Popmelt</title>\n<style>html{color-scheme:light dark;background:light-dark(#f5f5f5,#181818);font-family:system-ui,sans-serif}body{margin:0}</style>\n<script defer src="${U}"><\/script></head>\n<body><main id="guest-entry"></main><noscript>Enable JavaScript to join this project.</noscript></body></html>`;function J(e){return("GET"===e.method||"HEAD"===e.method)&&("document"===e.headers["sec-fetch-dest"]||"iframe"===e.headers["sec-fetch-dest"]||String(e.headers.accept).includes("text/html"))}function W(e,t,r){if(t.headersSent)return void t.destroy();if(t.statusCode=r,!J(e))return void t.end();let o=401===r||403===r,i=o?"Guest access required":"Preview unavailable",a=o&&"same-origin"!==e.headers["sec-fetch-site"],n=a?"If you’ve already joined in this browser, open the project again below. Otherwise, ask the host for a fresh invite.":o?"Ask the host for a fresh invite to open this project.":"Ask the host for the current preview link.";t.setHeader("Content-Type","text/html; charset=utf-8"),t.end("HEAD"===e.method?void 0:`<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><meta name="color-scheme" content="light dark"><title>${i}</title>\n<style>body{font:1rem/1.5 system-ui,sans-serif;max-width:32rem;margin:12vh auto;padding:0 1.5rem}h1{font-size:1.5rem}a{color:inherit}</style></head>\n<body><main><h1>${i}</h1><p>${n}</p>${a?'<a href="">Open project</a>':""}</main></body></html>`)}async function G(e,t){let r=[],o=0;for await(let i of e){if(o+=i.length,o>t)throw new l(413,"Request too large");r.push(i)}return Buffer.concat(r).toString("utf8")}function M(e,t){e.setHeader("Content-Type","application/json"),e.end(JSON.stringify(t))}function B(e,t,r){let o=new Map;return{async guestOrigin(i){let a=o.get(i);a||(a=q(e(),{readApp:t,planes:r},{quickTunnel:"tunnel"===i}),o.set(i,a));try{let e=await a;if(o.get(i)!==a)throw new Error("Sharing stopped.");return e.inviteOrigin()}catch(e){throw o.get(i)===a&&o.delete(i),e}},async stopGuestSharing(){let e=[...o.values()];o.clear(),await Promise.all(e.map(e=>e.then(e=>e.close(),()=>{})))}}}function F(e,t,r){return q(e,{planes:t,build:r.build},r)}async function q(n,T,E){let H=E.quickTunnel?"127.0.0.1":E.address??s();if(!(E.quickTunnel||/^(?:10\.|192\.168\.|172\.(?:1[6-9]|2\d|3[01])\.)/.test(H)&&Object.values(A()).flat().some(e=>"IPv4"===e?.family&&e.address===H&&!e.internal)))throw new Error("Select a private IPv4 address on this computer.");let k=E.quickTunnel?void 0:await p(H),x="http://127.0.0.1:"+n.port,O=new Map,C=new Map,N="__Host-popmelt-guest-"+f(8).toString("hex"),L="",R=!1,B=(a,s)=>{(async function(e,a){let s=t=>W(e,a,t);if(a.setHeader("Cache-Control","private, no-store"),a.setHeader("Referrer-Policy","same-origin"),a.setHeader("Cross-Origin-Resource-Policy","same-origin"),a.setHeader("X-Content-Type-Options","nosniff"),a.setHeader("X-Frame-Options","SAMEORIGIN"),R||!L||e.headers.host!==new URL(L).host||e.headers.origin&&e.headers.origin!==L||"cross-site"===e.headers["sec-fetch-site"]&&"GET"!==e.method)return s(403);let p=e.url??"";if(!p.startsWith("/")||p.startsWith("//")||/[\\#]/.test(p))return s(400);let u=new URL(p,L).pathname,w=u===i+"/send",g=e.headers["content-type"]??"";if("POST"===e.method&&(e.headers.origin!==L||(w?!/^multipart\/form-data;\s*boundary=/i.test(g):"application/json"!==g)))return s(403);if(u===U)return"GET"!==e.method&&"HEAD"!==e.method?s(405):(a.setHeader("Content-Type","application/javascript; charset=utf-8"),void a.end("HEAD"===e.method?void 0:await o("admission")));if(u===D+"/appearance"){if("POST"!==e.method)return s(405);let{invitation:t}=JSON.parse(await G(e,2048))??{};if("string"!=typeof t||!/^[\w-]{43}$/.test(t))return s(400);let r=await n.guestInviteAppearance(t);return M(a,{projectId:n.projectId,...r})}if(u===D){if("GET"===e.method||"HEAD"===e.method)return a.setHeader("Content-Type","text/html; charset=utf-8"),a.setHeader("X-Popmelt-Guest-Landing","1"),void a.end("HEAD"===e.method?void 0:X);if("POST"!==e.method)return s(405);let{invitation:r,name:o}=JSON.parse(await G(e,2048))??{};if("string"!=typeof o||!o.trim()||o.length>48||"string"!=typeof r||!/^[\w-]{43}$/.test(r))return s(400);let{credential:i,sharedPath:p="/"}=await new t(x,n.projectId).join(r,o.trim());if(R)return s(503);let l=f(32).toString("base64url"),c=f(32).toString("base64url");for(let[e,t]of O)t.expires<=Date.now()&&O.delete(e);return O.set(l,{proof:i,browserToken:c,expires:Date.now()+288e5,mounts:new Map,sharedPath:p,assets:new Map}),a.setHeader("Set-Cookie",N+"="+l+"; Path=/; Secure; HttpOnly; SameSite=Strict; Max-Age=28800"),M(a,{sharedPath:p,projectId:n.projectId,credential:{participantId:i.participantId,token:c}})}let b=e.headers.cookie?.split(";").map(e=>e.trim()).find(e=>e.startsWith(N+"="))?.slice(N.length+1),j=b&&O.get(b);if(!j||j.expires<=Date.now())return s(403);let{proof:I}=j,S=n.planeAppBasis;await S(I,I.participantId);let P=e.headers["x-popmelt-participant-id"],A=u.startsWith(i+"/thread/")?/^([a-zA-Z0-9_-]{1,128})$/.exec(u.slice((i+"/thread/").length))?.[1]:void 0;if(w||A||u===d+"open"||u.startsWith(i+"/participants/")){if(e.method!==(A?"GET":"POST")||P!==I.participantId||e.headers["x-popmelt-participant-token"]!==j.browserToken)return s(403);if(w){let t=e.headers["x-popmelt-draft-revision"],r=e.headers["x-popmelt-source-revision"];if(e.headers["x-popmelt-project-id"]!==n.projectId)return s(403);if("string"!=typeof t||!/^\d+$/.test(t)||"string"!=typeof r||!r||r.length>512)return s(400);let o=await c(e,33554432),i=await fetch(x+"/send",{method:"POST",redirect:"error",headers:{"Content-Type":g,"X-Popmelt-Project-Id":n.projectId,"X-Popmelt-Participant-Id":I.participantId,"X-Popmelt-Participant-Token":I.token,"X-Popmelt-Draft-Revision":t,"X-Popmelt-Source-Revision":r},body:new Uint8Array(o)});return a.statusCode=i.status,a.setHeader("Content-Type","application/json"),void a.end(await i.text())}if(u===d+"open"){if(!T.planes)return s(404);let{target:t,pathname:r,active:o}=JSON.parse(await G(e,8192))??{};if("string"!=typeof t)return s(400);if("readApp"in T&&void 0!==r&&("string"!=typeof r||m(r)!==j.sharedPath))return s(403);let i=await T.planes.open(n,I,t,r,o);"readApp"in T&&(i.application.path=j.sharedPath);let p=i.application.basePath,l=j.mounts.get(p)??new Set;return l.add(t),j.mounts.set(p,l),M(a,i)}let t=A?"shared-thread":u.slice((i+"/participants/").length);if(!A&&!$.has(t)||e.headers["x-popmelt-project-id"]!==n.projectId)return s(403);let r=await fetch(x+"/participants/"+t,{method:"POST",redirect:"error",signal:AbortSignal.timeout(15e3),headers:{"Content-Type":"application/json","X-Popmelt-Project-Id":n.projectId,"X-Popmelt-Participant-Id":I.participantId,"X-Popmelt-Participant-Token":I.token},body:A?JSON.stringify({threadId:A}):await G(e,2097152)});return a.statusCode=r.status,a.setHeader("Content-Type","application/json"),void a.end(await r.text())}if("GET"!==e.method&&"HEAD"!==e.method)return s(403);if(u===r)return a.setHeader("Content-Type","text/javascript"),void a.end("HEAD"===e.method?void 0:await o("toolbar"));if(u===i+"/status")return M(a,{projectId:n.projectId,running:!0});let E=h(u);if("/"===E&&/^\/(?:__popmelt|@|popmelt\/)/.test(u))return s(404);let H,k=J(e),B=j.mounts.get(E);if("/"!==E&&!B)return s(403);if(B)for(let e of B)try{await S(I,e),H=e;break}catch(e){if(!(e instanceof l)||404!==e.statusCode)throw e}if(B&&!H)return s(404);if("readApp"in T){if("/"!==E&&!T.planes)return s(404);let t=j.assets.get(E);t||j.assets.set(E,t=new Set);let r=await(T.planes?.servedAt(u)),o=await T.readApp({url:new URL(p,L),document:k,projectId:n.projectId,sharedPath:j.sharedPath,assets:t,basePath:E,...r&&{bootstrap:{version:1,planeApps:!0,...r,projectId:n.projectId,url:L+i}},range:e.headers.range});if(!o)return s(404);try{await S(I,H??I.participantId)}catch(e){throw await(o.body?.cancel()),e}for(let e of["content-type","content-length","content-range","content-security-policy","accept-ranges"]){let t=o.headers.get(e);t&&a.setHeader(e,t)}return a.statusCode=o.status,void("HEAD"!==e.method&&o.body?await y(v.fromWeb(o.body),a):(await(o.body?.cancel()),a.end()))}let{planes:F,build:q}=T;if("/"===E&&!k&&e.headers.referer){let t=new URL(e.headers.referer),r=h(t.pathname);if(t.origin===L&&"/"!==r&&j.mounts.has(r))return a.writeHead(307,{Location:r.slice(0,-1)+p}),void a.end()}let V=decodeURIComponent(u.slice(E.length));if(V.split("/").some(e=>e.startsWith(".")||"node_modules"===e)||/[\\%\0]/.test(V)||/\.(?:map|pem|crt|key)$/i.test(V))return s(404);let{revision:K,appVersion:Y}=await F.servedAt(u),z=C.get(E);if(z?.version!==Y){let e=_(q,F.checkout(E),E);z={version:Y,built:e},C.set(E,z),e.catch(()=>{C.get(E)?.built===e&&C.delete(E)})}let Z=await(await z.built)(V,k,{version:1,planeApps:!0,appVersion:Y,projectId:n.projectId,revision:K,url:L+i});if(!Z)return s(404);await S(I,H??I.participantId),a.setHeader("Content-Type",Z.type),a.end("HEAD"===e.method?void 0:Z.body)})(a,s).catch(t=>{let r=t instanceof l?t.statusCode:t instanceof e?t.status:t instanceof SyntaxError||t instanceof URIError?400:503;W(a,s,r)})},F=k?w({...k,minVersion:"TLSv1.2"},B):g(B);await new Promise((e,t)=>{F.once("error",t),F.listen(0,H,e)});let q,V=F.address();if(!V||"string"==typeof V)throw new Error("LAN listener unavailable");try{E.quickTunnel&&(q=await async function(e){let t={...process.env};for(let e of Object.keys(t))/^(TUNNEL_|CLOUDFLARE_|CF_)/i.test(e)&&delete t[e];let r,o=I("cloudflared",["tunnel","--config",S,"--no-autoupdate","--metrics","127.0.0.1:0","--grace-period","1s","--url","http://127.0.0.1:"+e],{env:t,stdio:["ignore","ignore","pipe"],windowsHide:!0}),i=P({input:o.stderr}),n=new Promise((e,t)=>{r=t,i.on("line",t=>{let r=/https:\/\/[a-z0-9-]+\.trycloudflare\.com\b/.exec(t);r&&a(r[0])&&e(r[0])}),o.once("error",t)}),s=new Promise(e=>o.once("close",t=>{r(new Error("Cloudflare connector closed (exit "+t+").")),e()})),p=()=>{o.kill("SIGTERM")};process.once("exit",p),s.then(()=>process.off("exit",p));let l=setTimeout(()=>r(new Error("Timed out starting the Cloudflare Quick Tunnel.")),45e3),c=async()=>{p();let e=setTimeout(()=>o.kill("SIGKILL"),4e3);try{await s}finally{clearTimeout(e)}};try{return{origin:await n,close:c}}catch(e){throw await c(),e}finally{clearTimeout(l)}}(V.port)),L=q?.origin??"https://"+H+":"+V.port}catch(e){throw F.closeAllConnections(),await new Promise(e=>F.close(()=>e())),e}let K,Y=new AbortController;return{server:F,origin:L,inviteOrigin:async()=>(q&&(K??=async function(e,t){let r=new b({timeout:2e3,tries:1}),o=Date.now()+12e4;for(await j(8e3,void 0,{signal:t});Date.now()<o;){t.throwIfAborted();try{await r.resolve4(new URL(e).hostname);let o=await fetch(e+"/__popmelt/join",{method:"HEAD",redirect:"error",signal:AbortSignal.any([t,AbortSignal.timeout(4e3)])});if(o.ok&&"1"===o.headers.get("X-Popmelt-Guest-Landing"))return}catch{}await j(1500,void 0,{signal:t})}throw new Error("The guest tunnel did not become reachable.")}(L,Y.signal).catch(e=>{throw K=void 0,e}),await K),Y.signal.throwIfAborted(),L),fingerprint:k?new u(k.cert).fingerprint256:void 0,async close(){Y.abort(),O.clear(),C.clear(),R=!0;let e=new Promise(e=>F.close(()=>e()));F.closeAllConnections(),await Promise.all([e,q?.close()])}}}import{randomBytes as V,timingSafeEqual as K}from"crypto";import{readFile as Y,writeFile as z,mkdir as Z}from"fs/promises";import{join as Q}from"path";var ee=(e,t)=>"string"==typeof e&&Buffer.byteLength(e)===Buffer.byteLength(t)&&K(Buffer.from(e),Buffer.from(t));async function te(e){let t=Q(e.projectRoot,".popmelt");await Z(t,{recursive:!0});let r,o=Q(t,"participant-host-recovery.json");try{if(r=JSON.parse(await Y(o,"utf8")).token,"string"!=typeof r||!/^[\w-]{43}$/.test(r))throw new Error("Invalid host recovery capability")}catch(e){if("ENOENT"!==e.code)throw e;r=V(32).toString("base64url"),await z(o,JSON.stringify({token:r}),{mode:384,flag:"wx"})}let i=V(16).toString("hex"),a=Q(t,"participant-host-browser.json"),n=await Y(a,"utf8").catch(()=>"")===e.origin,s=new AbortController;n&&s.abort();let p=V(32).toString("base64url"),l=V(32).toString("base64url"),c=`popmelt-host-${e.projectId}`;return{handler:async(t,o)=>{o.setHeader("Cache-Control","no-store");let d=t.headers.origin,h=d&&function(e,t){try{let r=new URL(e),o=new URL(t),i=["localhost","127.0.0.1","[::1]"];return r.origin===e&&o.origin===t&&e!==t&&["http:","https:"].includes(r.protocol)&&r.protocol===o.protocol&&r.port===o.port&&i.includes(r.hostname)&&i.includes(o.hostname)}catch{return!1}}(d,e.origin);if("HEAD"===t.method)return h&&(o.setHeader("Access-Control-Allow-Origin",d),o.setHeader("Access-Control-Expose-Headers","X-Popmelt-Session"),o.setHeader("Vary","Origin")),void o.writeHead(204,{"X-Popmelt-Session":i}).end();if("POST"!==t.method||t.headers.origin!==e.origin||"application/json"!==t.headers["content-type"])return h&&"POST"===t.method&&(o.setHeader("X-Popmelt-Host-Origin",e.origin),o.setHeader("X-Popmelt-Session",i)),o.statusCode=403,void o.end();try{let i="";for await(let e of t)if(i+=e,i.length>2048)throw new Error("Invalid host proof");let d,h=JSON.parse(i),m=t.headers.cookie?.split(";").map(e=>e.trim()).find(e=>e.startsWith(`${c}=`))?.slice(c.length+1);if(l&&ee(h.token,l))l="";else if(p&&ee(h.token,p))p="";else if(!ee(m,r)){if(!h.credential)throw new Error("Host proof required");if(d=await e.host(),h.credential.participantId!==d.participantId||!ee(h.credential.token,d.token))throw new Error("Invalid host proof")}d??=await e.host(),s.abort(),n||(n=!0,await z(a,e.origin,{mode:384}).catch(()=>{n=!1})),o.setHeader("Set-Cookie",`${c}=${r}; Path=/__popmelt/host; HttpOnly; SameSite=Strict; Max-Age=31536000`),o.setHeader("Content-Type","application/json"),o.end(JSON.stringify(d))}catch{o.statusCode=403,o.end()}},instanceId:i,browserLaunch:s,launchUrl:`${e.origin}/#popmelt-host=${p}`,claimUrl:`${e.origin}/#popmelt-host=${l}`}}import{chmod as re,mkdir as oe,writeFile as ie}from"fs/promises";import{join as ae}from"path";import{spawn as ne}from"child_process";import{setTimeout as se}from"timers/promises";function pe(e){let[t,...r]="darwin"===process.platform?["open",e]:"win32"===process.platform?["rundll32.exe","url.dll,FileProtocolHandler",e]:["xdg-open",e],o=ne(t,r,{stdio:"ignore",detached:!0});o.on("error",()=>{}),o.unref()}async function le(e,t,r,o=(function(){let{BROWSER:e,CI:t,DISPLAY:r,WAYLAND_DISPLAY:o,SSH_CONNECTION:i,NODE_ENV:a}=process.env;return!("none"===e||t||"test"===a||i||"darwin"!==process.platform&&"win32"!==process.platform&&!r&&!o)}()?pe:void 0)){let{origin:i,hostname:a,protocol:n}=new URL(e);if(!o||!["localhost","127.0.0.1","[::1]"].includes(a)||!["http:","https:"].includes(n))return;let{signal:s}=r;if(s.aborted)return;let p=setTimeout(()=>r.abort(),9e4).unref();try{for(;!s.aborted;){try{let r=await fetch(i+"/__popmelt/host",{method:"HEAD",redirect:"error",signal:s});if(204===r.status&&r.headers.get("x-popmelt-session")===t)return void(s.aborted||o(e))}catch{}await se(500,void 0,{signal:s,ref:!1}).catch(()=>{})}}finally{clearTimeout(p)}}async function ce(e){let{bridge:t}=e,r=e.guestInvites&&{guestInvites:e.guestInvites,tunnelAvailable:!!await n("cloudflared",e.projectRoot)};if(!t.participantHost)throw new Error("The bridge does not support participant sessions");let o=await te({projectRoot:e.projectRoot,projectId:t.projectId,origin:e.origin,host:t.participantHost}),i=ae(e.projectRoot,".popmelt");await oe(i,{recursive:!0}),await ie(ae(i,"participant-bridge.json"),JSON.stringify({port:t.port,projectId:t.projectId}),{mode:384});let a=ae(i,"participant-host-link.json");async function s(o="/"){let i=await(e.planeApps?.servedAt(o));return{version:1,...r,url:`http://127.0.0.1:${t.port}`,projectId:t.projectId,revision:i?.revision??await(e.sourceRevision?.())??"unversioned",...i&&{planeApps:!0,appVersion:i.appVersion}}}return await ie(a,JSON.stringify({url:o.claimUrl}),{mode:384}),await re(a,384),le(o.launchUrl,o.instanceId,o.browserLaunch),{cancelBrowserLaunch:()=>o.browserLaunch.abort(),hostEntry:o.handler,read:s,planeMiddleware:e.planeApps?.middleware(t,e.origin,s)}}export{_ as a,B as b,F as c,te as d,ce as e};
@@ -0,0 +1 @@
1
+ "use client";import{forwardRef as a}from"react";import{jsxs as h,Fragment as d,jsx as t}from"react/jsx-runtime";function e(d,t){return a(function({size:a=24,width:e=a,height:i=a,color:l="currentColor",className:c,children:r,...p},n){let M=!!r||Object.keys(p).some(a=>a.startsWith("aria-")||"role"===a||"title"===a);return h("svg",{ref:n,xmlns:"http://www.w3.org/2000/svg",width:e,height:i,viewBox:"0 0 24 24",fill:"none",stroke:l,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:c?`lucide ${d} ${c}`:`lucide ${d}`,"aria-hidden":!M||void 0,...p,children:[t,r]})})}var i=e("lucide-smartphone",h(d,{children:[t("rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2"}),t("path",{d:"M12 18h.01"})]})),l=e("lucide-a-large-small",h(d,{children:[t("path",{d:"m15 16 2.536-7.328a1.02 1.02 1 0 1 1.928 0L22 16"}),t("path",{d:"M15.697 14h5.606"}),t("path",{d:"m2 16 4.039-9.69a.5.5 0 0 1 .923 0L11 16"}),t("path",{d:"M3.304 13h6.392"})]})),c=e("lucide-text-align-center lucide-align-center",h(d,{children:[t("path",{d:"M21 5H3"}),t("path",{d:"M17 12H7"}),t("path",{d:"M19 19H5"})]})),r=e("lucide-align-center-vertical",h(d,{children:[t("path",{d:"M12 2v20"}),t("path",{d:"M8 10H4a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h4"}),t("path",{d:"M16 10h4a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-4"}),t("path",{d:"M8 20H7a2 2 0 0 1-2-2v-2c0-1.1.9-2 2-2h1"}),t("path",{d:"M16 14h1a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-1"})]})),p=e("lucide-align-end-vertical",h(d,{children:[t("rect",{width:"16",height:"6",x:"2",y:"4",rx:"2"}),t("rect",{width:"9",height:"6",x:"9",y:"14",rx:"2"}),t("path",{d:"M22 22V2"})]})),n=e("lucide-align-horizontal-justify-center",h(d,{children:[t("rect",{width:"6",height:"14",x:"2",y:"5",rx:"2"}),t("rect",{width:"6",height:"10",x:"16",y:"7",rx:"2"}),t("path",{d:"M12 2v20"})]})),M=e("lucide-align-horizontal-justify-end",h(d,{children:[t("rect",{width:"6",height:"14",x:"2",y:"5",rx:"2"}),t("rect",{width:"6",height:"10",x:"12",y:"7",rx:"2"}),t("path",{d:"M22 2v20"})]})),s=e("lucide-align-horizontal-justify-start",h(d,{children:[t("rect",{width:"6",height:"14",x:"6",y:"5",rx:"2"}),t("rect",{width:"6",height:"10",x:"16",y:"7",rx:"2"}),t("path",{d:"M2 2v20"})]})),u=e("lucide-align-horizontal-space-around",h(d,{children:[t("rect",{width:"6",height:"10",x:"9",y:"7",rx:"2"}),t("path",{d:"M4 22V2"}),t("path",{d:"M20 22V2"})]})),o=e("lucide-align-horizontal-space-between",h(d,{children:[t("rect",{width:"6",height:"14",x:"3",y:"5",rx:"2"}),t("rect",{width:"6",height:"10",x:"15",y:"7",rx:"2"}),t("path",{d:"M3 2v20"}),t("path",{d:"M21 2v20"})]})),x=e("lucide-text-align-justify lucide-align-justify",h(d,{children:[t("path",{d:"M3 5h18"}),t("path",{d:"M3 12h18"}),t("path",{d:"M3 19h18"})]})),v=e("lucide-text-align-start lucide-text lucide-align-left",h(d,{children:[t("path",{d:"M21 5H3"}),t("path",{d:"M15 12H3"}),t("path",{d:"M17 19H3"})]})),g=e("lucide-text-align-end lucide-align-right",h(d,{children:[t("path",{d:"M21 5H3"}),t("path",{d:"M21 12H9"}),t("path",{d:"M21 19H7"})]})),m=e("lucide-align-start-vertical",h(d,{children:[t("rect",{width:"9",height:"6",x:"6",y:"14",rx:"2"}),t("rect",{width:"16",height:"6",x:"6",y:"4",rx:"2"}),t("path",{d:"M2 2v20"})]})),y=e("lucide-archive",h(d,{children:[t("rect",{width:"20",height:"5",x:"2",y:"3",rx:"1"}),t("path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8"}),t("path",{d:"M10 12h4"})]})),w=e("lucide-arrow-big-up",t("path",{d:"M9 19a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1v-6a1 1 0 0 1 1-1h3.293a.707.707 0 0 0 .5-1.207l-7.086-7.086a1 1 0 0 0-1.414 0l-7.086 7.086a.707.707 0 0 0 .5 1.207H8a1 1 0 0 1 1 1z"})),H=e("lucide-arrow-down",h(d,{children:[t("path",{d:"M12 5v14"}),t("path",{d:"m19 12-7 7-7-7"})]})),z=e("lucide-arrow-left",h(d,{children:[t("path",{d:"m12 19-7-7 7-7"}),t("path",{d:"M19 12H5"})]})),V=e("lucide-arrow-left-right",h(d,{children:[t("path",{d:"M8 3 4 7l4 4"}),t("path",{d:"M4 7h16"}),t("path",{d:"m16 21 4-4-4-4"}),t("path",{d:"M20 17H4"})]})),f=e("lucide-arrow-right",h(d,{children:[t("path",{d:"M5 12h14"}),t("path",{d:"m12 5 7 7-7 7"})]})),L=e("lucide-arrow-up-right",h(d,{children:[t("path",{d:"M7 7h10v10"}),t("path",{d:"M7 17 17 7"})]})),b=e("lucide-ban",h(d,{children:[t("circle",{cx:"12",cy:"12",r:"10"}),t("path",{d:"M4.929 4.929 19.07 19.071"})]})),k=e("lucide-between-horizontal-start lucide-between-horizonal-start",h(d,{children:[t("rect",{width:"13",height:"7",x:"8",y:"3",rx:"1"}),t("path",{d:"m2 9 3 3-3 3"}),t("rect",{width:"13",height:"7",x:"8",y:"14",rx:"1"})]})),A=e("lucide-between-vertical-end",h(d,{children:[t("rect",{width:"7",height:"13",x:"3",y:"3",rx:"1"}),t("path",{d:"m9 22 3-3 3 3"}),t("rect",{width:"7",height:"13",x:"14",y:"3",rx:"1"})]})),j=e("lucide-blend",h(d,{children:[t("circle",{cx:"15",cy:"9",r:"7"}),t("circle",{cx:"9",cy:"15",r:"7"})]})),C=e("lucide-letter-b lucide-bold",t("path",{d:"M6 12h9a4 4 0 010 8H7a1 1 0 01-1-1V5a1 1 0 011-1h7a4 4 0 010 8"})),q=e("lucide-bot",h(d,{children:[t("path",{d:"M12 8V4H8"}),t("rect",{width:"16",height:"12",x:"4",y:"8",rx:"2"}),t("path",{d:"M2 14h2"}),t("path",{d:"M20 14h2"}),t("path",{d:"M15 13v2"}),t("path",{d:"M9 13v2"})]})),N=e("lucide-brain",h(d,{children:[t("path",{d:"M12 18V5"}),t("path",{d:"M15 13a4.17 4.17 0 01-3-4 4.17 4.17 0 01-3 4"}),t("path",{d:"M17.707 6.294A3 3 0 1012 5a3 3 0 10-5.707 1.294"}),t("path",{d:"M17.996 5.125a4 4 0 012.526 5.77"}),t("path",{d:"M18 18a4 4 0 002-7.465"}),t("path",{d:"M19.967 17.482a4 4 0 11-7.967.517 4 4 0 11-7.967-.517"}),t("path",{d:"M6 18a4 4 0 01-2-7.465"}),t("path",{d:"M6.004 5.125a4 4 0 00-2.526 5.77"})]})),Z=e("lucide-check",t("path",{d:"M20 6 9 17l-5-5"})),$=e("lucide-chevron-down",t("path",{d:"m6 9 6 6 6-6"})),B=e("lucide-chevron-left",t("path",{d:"m15 18-6-6 6-6"})),O=e("lucide-chevron-right",t("path",{d:"m9 18 6-6-6-6"})),W=e("lucide-circle-dashed",h(d,{children:[t("path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0"}),t("path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0"}),t("path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7"}),t("path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8"}),t("path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69"}),t("path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8"}),t("path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69"}),t("path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7"})]})),D=e("lucide-clock",h(d,{children:[t("circle",{cx:"12",cy:"12",r:"10"}),t("path",{d:"M12 6v6l4 2"})]})),E=e("lucide-command",t("path",{d:"M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3"})),F=e("lucide-component",h(d,{children:[t("path",{d:"M15.536 11.293a1 1 0 0 0 0 1.414l2.376 2.377a1 1 0 0 0 1.414 0l2.377-2.377a1 1 0 0 0 0-1.414l-2.377-2.377a1 1 0 0 0-1.414 0z"}),t("path",{d:"M2.297 11.293a1 1 0 0 0 0 1.414l2.377 2.377a1 1 0 0 0 1.414 0l2.377-2.377a1 1 0 0 0 0-1.414L6.088 8.916a1 1 0 0 0-1.414 0z"}),t("path",{d:"M8.916 17.912a1 1 0 0 0 0 1.415l2.377 2.376a1 1 0 0 0 1.414 0l2.377-2.376a1 1 0 0 0 0-1.415l-2.377-2.376a1 1 0 0 0-1.414 0z"}),t("path",{d:"M8.916 4.674a1 1 0 0 0 0 1.414l2.377 2.376a1 1 0 0 0 1.414 0l2.377-2.376a1 1 0 0 0 0-1.414l-2.377-2.377a1 1 0 0 0-1.414 0z"})]})),G=e("lucide-copy",h(d,{children:[t("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),t("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"})]})),I=e("lucide-corner-down-left",h(d,{children:[t("path",{d:"M20 4v7a4 4 0 0 1-4 4H4"}),t("path",{d:"m9 10-5 5 5 5"})]})),J=e("lucide-eye",h(d,{children:[t("path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0"}),t("circle",{cx:"12",cy:"12",r:"3"})]})),K=e("lucide-fingerprint-pattern lucide-fingerprint",h(d,{children:[t("path",{d:"M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4"}),t("path",{d:"M14 13.12c0 2.38 0 6.38-1 8.88"}),t("path",{d:"M17.29 21.02c.12-.6.43-2.3.5-3.02"}),t("path",{d:"M2 12a10 10 0 0 1 18-6"}),t("path",{d:"M2 16h.01"}),t("path",{d:"M21.8 16c.2-2 .131-5.354 0-6"}),t("path",{d:"M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2"}),t("path",{d:"M8.65 22c.21-.66.45-1.32.57-2"}),t("path",{d:"M9 6.8a6 6 0 0 1 9 5.2v2"})]})),P=e("lucide-folder",t("path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"})),Q=e("lucide-hand",h(d,{children:[t("path",{d:"M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2"}),t("path",{d:"M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2"}),t("path",{d:"M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8"}),t("path",{d:"M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15"})]})),R=e("lucide-rotate-ccw-clock lucide-history",h(d,{children:[t("path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"}),t("path",{d:"M3 3v5h5"}),t("path",{d:"M12 7v5l4 2"})]})),S=e("lucide-image",h(d,{children:[t("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2"}),t("circle",{cx:"9",cy:"9",r:"2"}),t("path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"})]})),T=e("lucide-info",h(d,{children:[t("circle",{cx:"12",cy:"12",r:"10"}),t("path",{d:"M12 16v-4"}),t("path",{d:"M12 8h.01"})]})),U=e("lucide-link-2",h(d,{children:[t("path",{d:"M9 17H7A5 5 0 0 1 7 7h2"}),t("path",{d:"M15 7h2a5 5 0 1 1 0 10h-2"}),t("line",{x1:"8",x2:"16",y1:"12",y2:"12"})]})),X=e("lucide-loader-circle lucide-loader-2",t("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})),Y=e("lucide-lock",h(d,{children:[t("rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2"}),t("path",{d:"M7 11V7a5 5 0 0 1 10 0v4"})]})),_=e("lucide-lock-open lucide-unlock",h(d,{children:[t("rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2"}),t("path",{d:"M7 11V7a5 5 0 0 1 9.9-1"})]})),aa=e("lucide-log-out",h(d,{children:[t("path",{d:"m16 17 5-5-5-5"}),t("path",{d:"M21 12H9"}),t("path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"})]})),ha=e("lucide-maximize-2",h(d,{children:[t("path",{d:"M15 3h6v6"}),t("path",{d:"m21 3-7 7"}),t("path",{d:"m3 21 7-7"}),t("path",{d:"M9 21H3v-6"})]})),da=e("lucide-message-circle",t("path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719"})),ta=e("lucide-message-circle-question-mark lucide-message-circle-question",h(d,{children:[t("path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719"}),t("path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}),t("path",{d:"M12 17h.01"})]})),ea=e("lucide-minimize-2",h(d,{children:[t("path",{d:"m14 10 7-7"}),t("path",{d:"M20 10h-6V4"}),t("path",{d:"m3 21 7-7"}),t("path",{d:"M4 14h6v6"})]})),ia=e("lucide-minus",t("path",{d:"M5 12h14"})),la=e("lucide-monitor",h(d,{children:[t("rect",{width:"20",height:"14",x:"2",y:"3",rx:"2"}),t("line",{x1:"8",x2:"16",y1:"21",y2:"21"}),t("line",{x1:"12",x2:"12",y1:"17",y2:"21"})]})),ca=e("lucide-monitor-smartphone",h(d,{children:[t("path",{d:"M18 8V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h8"}),t("path",{d:"M10 19v-3.96 3.15"}),t("path",{d:"M7 19h5"}),t("rect",{width:"6",height:"10",x:"16",y:"12",rx:"2"})]})),ra=e("lucide-moon",t("path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401"})),pa=e("lucide-move",h(d,{children:[t("path",{d:"M12 2v20"}),t("path",{d:"m15 19-3 3-3-3"}),t("path",{d:"m19 9 3 3-3 3"}),t("path",{d:"M2 12h20"}),t("path",{d:"m5 9-3 3 3 3"}),t("path",{d:"m9 5 3-3 3 3"})]})),na=e("lucide-move-horizontal",h(d,{children:[t("path",{d:"m18 8 4 4-4 4"}),t("path",{d:"M2 12h20"}),t("path",{d:"m6 8-4 4 4 4"})]})),Ma=e("lucide-move-vertical",h(d,{children:[t("path",{d:"M12 2v20"}),t("path",{d:"m8 18 4 4 4-4"}),t("path",{d:"m8 6 4-4 4 4"})]})),sa=e("lucide-octagon-alert lucide-alert-octagon",h(d,{children:[t("path",{d:"M12 16h.01"}),t("path",{d:"M12 8v4"}),t("path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z"})]})),ua=e("lucide-palette",h(d,{children:[t("path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z"}),t("circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor"}),t("circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor"}),t("circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor"}),t("circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor"})]})),oa=e("lucide-pause",h(d,{children:[t("rect",{x:"14",y:"3",width:"5",height:"18",rx:"1"}),t("rect",{x:"5",y:"3",width:"5",height:"18",rx:"1"})]})),xa=e("lucide-pen-line lucide-edit-3",h(d,{children:[t("path",{d:"M13 21h8"}),t("path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z"})]})),va=e("lucide-play",t("path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z"})),ga=e("lucide-plug",h(d,{children:[t("path",{d:"M12 22v-5"}),t("path",{d:"M15 8V2"}),t("path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z"}),t("path",{d:"M9 8V2"})]})),ma=e("lucide-plus",h(d,{children:[t("path",{d:"M5 12h14"}),t("path",{d:"M12 5v14"})]})),ya=e("lucide-refresh-cw",h(d,{children:[t("path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"}),t("path",{d:"M21 3v5h-5"}),t("path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"}),t("path",{d:"M8 16H3v5"})]})),wa=e("lucide-reply",h(d,{children:[t("path",{d:"M20 18v-2a4 4 0 0 0-4-4H4"}),t("path",{d:"m9 17-5-5 5-5"})]})),Ha=e("lucide-rotate-ccw",h(d,{children:[t("path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"}),t("path",{d:"M3 3v5h5"})]})),za=e("lucide-rotate-cw",h(d,{children:[t("path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8"}),t("path",{d:"M21 3v5h-5"})]})),Va=e("lucide-ruler",h(d,{children:[t("path",{d:"M21.3 15.3a2.4 2.4 0 0 1 0 3.4l-2.6 2.6a2.4 2.4 0 0 1-3.4 0L2.7 8.7a2.41 2.41 0 0 1 0-3.4l2.6-2.6a2.41 2.41 0 0 1 3.4 0Z"}),t("path",{d:"m14.5 12.5 2-2"}),t("path",{d:"m11.5 9.5 2-2"}),t("path",{d:"m8.5 6.5 2-2"}),t("path",{d:"m17.5 15.5 2-2"})]})),fa=e("lucide-scaling",h(d,{children:[t("path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),t("path",{d:"M14 15H9v-5"}),t("path",{d:"M16 3h5v5"}),t("path",{d:"M21 3 9 15"})]})),La=e("lucide-search",h(d,{children:[t("path",{d:"m21 21-4.34-4.34"}),t("circle",{cx:"11",cy:"11",r:"8"})]})),ba=e("lucide-send",h(d,{children:[t("path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z"}),t("path",{d:"m21.854 2.147-10.94 10.939"})]})),ka=e("lucide-send-horizontal lucide-send-horizonal",h(d,{children:[t("path",{d:"M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z"}),t("path",{d:"M6 12h16"})]})),Aa=e("lucide-settings",h(d,{children:[t("path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915"}),t("circle",{cx:"12",cy:"12",r:"3"})]})),ja=e("lucide-signal",h(d,{children:[t("path",{d:"M2 20h.01"}),t("path",{d:"M7 20v-4"}),t("path",{d:"M12 20v-8"}),t("path",{d:"M17 20V8"}),t("path",{d:"M22 4v16"})]})),Ca=e("lucide-signal-high",h(d,{children:[t("path",{d:"M2 20h.01"}),t("path",{d:"M7 20v-4"}),t("path",{d:"M12 20v-8"}),t("path",{d:"M17 20V8"})]})),qa=e("lucide-signal-low",h(d,{children:[t("path",{d:"M2 20h.01"}),t("path",{d:"M7 20v-4"})]})),Na=e("lucide-signal-medium",h(d,{children:[t("path",{d:"M2 20h.01"}),t("path",{d:"M7 20v-4"}),t("path",{d:"M12 20v-8"})]})),Za=e("lucide-signal-zero",t("path",{d:"M2 20h.01"})),$a=e("lucide-sliders-horizontal",h(d,{children:[t("path",{d:"M10 5H3"}),t("path",{d:"M12 19H3"}),t("path",{d:"M14 3v4"}),t("path",{d:"M16 17v4"}),t("path",{d:"M21 12h-9"}),t("path",{d:"M21 19h-5"}),t("path",{d:"M21 5h-7"}),t("path",{d:"M8 10v4"}),t("path",{d:"M8 12H3"})]})),Ba=e("lucide-mouse-pointer-2",t("path",{d:"M4.037 4.688a.495.495 0 0 1 .651-.651l16 6.5a.5.5 0 0 1-.063.947l-6.124 1.58a2 2 0 0 0-1.438 1.435l-1.579 6.126a.5.5 0 0 1-.947.063z"})),Oa=e("lucide-square-mouse-pointer lucide-inspect",h(d,{children:[t("path",{d:"M12.034 12.681a.498.498 0 0 1 .647-.647l9 3.5a.5.5 0 0 1-.033.943l-3.444 1.068a1 1 0 0 0-.66.66l-1.067 3.443a.5.5 0 0 1-.943.033z"}),t("path",{d:"M21 11V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h6"})]})),Wa=e("lucide-stretch-horizontal",h(d,{children:[t("rect",{width:"20",height:"6",x:"2",y:"4",rx:"2"}),t("rect",{width:"20",height:"6",x:"2",y:"14",rx:"2"})]})),Da=e("lucide-sun",h(d,{children:[t("circle",{cx:"12",cy:"12",r:"4"}),t("path",{d:"M12 2v2"}),t("path",{d:"M12 20v2"}),t("path",{d:"m4.93 4.93 1.41 1.41"}),t("path",{d:"m17.66 17.66 1.41 1.41"}),t("path",{d:"M2 12h2"}),t("path",{d:"M20 12h2"}),t("path",{d:"m6.34 17.66-1.41 1.41"}),t("path",{d:"m19.07 4.93-1.41 1.41"})]})),Ea=e("lucide-terminal",h(d,{children:[t("path",{d:"M12 19h8"}),t("path",{d:"m4 17 6-6-6-6"})]})),Fa=e("lucide-thumbs-up",h(d,{children:[t("path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z"}),t("path",{d:"M7 10v12"})]})),Ga=e("lucide-trash lucide-trash-2",h(d,{children:[t("path",{d:"M10 11v6"}),t("path",{d:"M14 11v6"}),t("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"}),t("path",{d:"M3 6h18"}),t("path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"})]})),Ia=e("lucide-triangle-alert lucide-alert-triangle",h(d,{children:[t("path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"}),t("path",{d:"M12 9v4"}),t("path",{d:"M12 17h.01"})]})),Ja=e("lucide-user",h(d,{children:[t("path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"}),t("circle",{cx:"12",cy:"7",r:"4"})]})),Ka=e("lucide-user-plus",h(d,{children:[t("path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"}),t("circle",{cx:"9",cy:"7",r:"4"}),t("line",{x1:"19",x2:"19",y1:"8",y2:"14"}),t("line",{x1:"22",x2:"16",y1:"11",y2:"11"})]})),Pa=e("lucide-x",h(d,{children:[t("path",{d:"M18 6 6 18"}),t("path",{d:"m6 6 12 12"})]})),Qa=e("lucide-zap",t("path",{d:"M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z"}));export{ta as $,C as A,Ca as Aa,q as B,qa as Ba,N as C,Na as Ca,Z as D,Za as Da,$ as E,$a as Ea,B as F,Ba as Fa,O as G,Oa as Ga,W as H,Wa as Ha,D as I,Da as Ia,E as J,Ea as Ja,F as K,Fa as Ka,G as L,Ga as La,I as M,Ia as Ma,J as N,Ja as Na,K as O,Ka as Oa,P,Pa,Q,Qa,R,S,T,U,X as V,Y as W,_ as X,aa as Y,ha as Z,da as _,e as a,ea as aa,i as b,ia as ba,l as c,la as ca,c as d,ca as da,r as e,ra as ea,p as f,pa as fa,n as g,na as ga,M as h,Ma as ha,s as i,sa as ia,u as j,ua as ja,o as k,oa as ka,x as l,xa as la,v as m,va as ma,g as n,ga as na,m as o,ma as oa,y as p,ya as pa,w as q,wa as qa,H as r,Ha as ra,z as s,za as sa,V as t,Va as ta,f as u,fa as ua,L as v,La as va,b as w,ba as wa,k as x,ka as xa,A as y,Aa as ya,j as z,ja as za};