PageSourceSearch

https://arenberg-holdings.web.app/assets/PreTradePanel-giTPFakN.js

js arenberg-holdings.web.app collected 2026-10-03 12:18:25 UTC 31,189 bytes, 4 lines download raw bytes

1import{s as q}from"./rolldown-runtime-aoxQmdZa.js";import{or as X,rr as K}from"./vendor-C44JUHxF.js";import{m as W,n as R}from"./terminalData-cQYNeM_6.js";import{P as Q}from"./api-w9bwcNej.js";import{c as r,r as o,u as D}from"./theme-Cmxze0rk.js";import{i as d,r as Z}from"./intel-VUlwLK7Y.js";var B=q(X(),1),e=K(),L={equity:{spread:.05,impact:.08,depthM:8.4,adv:180,bestTime:"09:30–11:00 EST",altWindow:"14:30–15:45 EST",venue:"NYSE / NASDAQ",clearingDays:2,marginRate:.25,minBlock:5e3},index:{spread:.02,impact:.03,depthM:42,adv:2400,bestTime:"08:30–10:00 EST",altWindow:"13:30–15:30 EST",venue:"CME Futures",clearingDays:1,marginRate:.05,minBlock:1e6},bond:{spread:.08,impact:.12,depthM:18,adv:850,bestTime:"08:00–12:00 EST",altWindow:"12:00–14:00 EST",venue:"BrokerTec / MTS",clearingDays:2,marginRate:.02,minBlock:1e6},etf:{spread:.04,impact:.06,depthM:12,adv:420,bestTime:"09:45–11:30 EST",altWindow:"13:45–15:00 EST",venue:"NYSE Arca",clearingDays:2,marginRate:.25,minBlock:5e4},fx:{spread:.01,impact:.02,depthM:85,adv:6800,bestTime:"07:00–09:00 GMT",altWindow:"13:00–15:00 GMT",venue:"EBS / Reuters D3000",clearingDays:2,marginRate:.01,minBlock:1e6},commodity:{spread:.12,impact:.18,depthM:6.2,adv:310,bestTime:"08:00–10:30 EST",altWindow:"13:00–14:30 EST",venue:"CME / ICE",clearingDays:1,marginRate:.1,minBlock:1e5},crypto:{spread:.08,impact:.25,depthM:2.8,adv:940,bestTime:"Continuous 24/7",altWindow:"10:00–12:00 UTC",venue:"Binance / OKX / Kraken",clearingDays:0,marginRate:.1,minBlock:1e4},hedgefund:{spread:0,impact:0,depthM:0,adv:0,bestTime:"Month-end NAV",altWindow:"Quarter-end",venue:"Prime Broker / Transfer",clearingDays:30,marginRate:0,minBlock:1e6},derivative:{spread:.15,impact:.22,depthM:4.4,adv:180,bestTime:"08:00–11:00 EST",altWindow:"14:00–15:00 EST",venue:"CBOE / Eurex / CME",clearingDays:1,marginRate:.15,minBlock:1e5}};function ee(k,y,f,h){return Array.from({length:f},(F,g)=>{const E=g===0?1.4:g===f-1?.6:1;return+(k/f*E).toFixed(2)}).map((F,g)=>({slice:g+1,size:F,unit:y,time:h.bestTime.split("–")[0]+` +${g*Math.ceil(390/f)}min`,venue:h.venue.split(" / ")[0],estSlip:+(F*h.impact/f*.6).toFixed(4)}))}function re({positions:k}){const[y,f]=(0,B.useState)(null),[h,F]=(0,B.useState)("REDUCE"),[g,E]=(0,B.useState)(50),[u,O]=(0,B.useState)("summary"),[v,J]=(0,B.useState)(3),[C,N]=(0,B.useState)({});(0,B.useEffect)(()=>{if(!y)return;const n=y.symbol||y.sym;!n||C[n]||Q.liquidity(n).then(t=>{t&&t.symbol&&N(s=>({...s,[n]:t}))}).catch(()=>{})},[y]);const l=y?k.find(n=>n.id===y):null,w=l?l.symbol||l.sym:null,T=l?L[l.assetClass]||L.fx:null,M=w?C[w]:null,i=T?{...T,spread:M&&M.spread_bps?M.spread_bps/100:T.spread,depthM:M&&M.avg_volume?(M.avg_volume/1e6).toFixed(1):T.depthM,_regime:M?M.regime:"NORMAL",_live:!!M}:null,S=l?(parseFloat(l.size)||1)*(g/100):0,x=l&&i?S*(parseFloat(l.px||l.entry)||1)*(l.assetClass==="fx"?1e6:1):0,z=i?x*i.spread/1e4:0,P=i?x*i.impact/1e4:0,b=i?x*i.spread/2e4:0,m=z+P,$=x>0?m/x*100:0,a=i&&i.depthM>0?Math.min(100,x/1e6/i.depthM*100):0,A=a>50?"VWAP":a>20?"TWAP":"LIMIT",I=l&&i?ee(S,l.sizeUnit||"",v,i):[],c=a>60?o.red:a>30?o.amber:o.green,U=l?R[l.assetClass]||R.fx:null,_=l?l.pnl>=0?o.green:o.red:o.t3,V=(n,t)=>(0,e.jsx)("button",{onClick:()=>O(n),style:{flex:1,padding:"6px 0",fontSize:9,fontFamily:r,letterSpacing:".05em",background:u===n?o.bg4:"transparent",border:"none",borderBottom:`2px solid ${u===n?o.teal:"transparent"}`,color:u===n?o.teal:o.t5,cursor:"pointer"},children:t},n);return(0,e.jsxs)("div",{style:{display:"flex",flexDirection:"column",flex:1,overflow:"hidden"},children:[(0,e.jsx)("style",{children:`
2        @keyframes fadeIn{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}
3        .pos-row:hover{background:#0a0c14!important;cursor:pointer}
4      `}),(0,e.jsxs)("div",{style:{display:"flex",borderBottom:`1px solid ${o.b2}`,flexShrink:0,background:"#03040a"},children:[(0,e.jsxs)("div",{style:{width:240,flexShrink:0,borderRight:`1px solid ${o.b2}`,overflow:"hidden",display:"flex",flexDirection:"column"},children:[(0,e.jsx)("div",{style:{padding:"6px 12px",borderBottom:`1px solid ${o.b2}`,background:"#04050c"},children:(0,e.jsx)("span",{style:{fontSize:8,color:o.teal,fontFamily:r,fontWeight:700,letterSpacing:".08em"},children:"SELECT POSITION"})}),(0,e.jsx)("div",{style:{overflowY:"auto",maxHeight:160},children:k.map(n=>{const t=R[n.assetClass]||R.fx,s=y===n.id;return(0,e.jsxs)("div",{className:"pos-row",onClick:()=>f(s?null:n.id),style:{padding:"5px 10px",borderBottom:`1px solid ${o.b1}`,background:s?`${t.color}10`:"transparent",borderLeft:`3px solid ${s?t.color:"transparent"}`,display:"flex",alignItems:"center",gap:7,transition:"background .1s"},children:[(0,e.jsx)("span",{style:{fontSize:8,padding:"1px 4px",background:t.bg,border:`1px solid ${t.border}`,borderRadius:2,color:t.color,fontFamily:r,fontWeight:700,flexShrink:0},children:t.icon}),(0,e.jsxs)("div",{style:{flex:1,minWidth:0},children:[(0,e.jsx)("div",{style:{fontSize:9,color:s?t.color:o.gold,fontFamily:r,fontWeight:700,lineHeight:1.2},children:n.instrument}),(0,e.jsx)("div",{style:{fontSize:7,color:o.t5,fontFamily:D,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:W(n.instrument)})]}),(0,e.jsxs)("div",{style:{textAlign:"right",flexShrink:0},children:[(0,e.jsx)("div",{style:{fontSize:8,color:n.side==="LONG"?o.green:o.red,fontFamily:r,fontWeight:700},children:n.side}),(0,e.jsx)("div",{style:{fontSize:8,color:n.pnl>=0?o.green:o.red,fontFamily:r},children:Z(n.pnlPct||0)})]})]},n.id)})})]}),l?(0,e.jsxs)("div",{style:{flex:1,padding:"10px 14px",display:"flex",gap:14,alignItems:"flex-start",flexWrap:"wrap"},children:[(0,e.jsxs)("div",{style:{flexShrink:0},children:[(0,e.jsx)("div",{style:{fontSize:7,color:o.t5,fontFamily:r,marginBottom:3,letterSpacing:".06em"},children:"SELECTED POSITION"}),(0,e.jsx)("div",{style:{fontSize:13,color:U.color,fontFamily:r,fontWeight:700},children:l.instrument}),(0,e.jsx)("div",{style:{fontSize:8,color:o.t4,fontFamily:D},children:W(l.instrument)}),(0,e.jsxs)("div",{style:{display:"flex",gap:6,marginTop:3},children:[(0,e.jsx)("span",{style:{fontSize:8,padding:"1px 6px",background:l.side==="LONG"?"#0d1f12":"#1a0505",border:`1px solid ${l.side==="LONG"?o.green+"44":o.red+"44"}`,borderRadius:2,color:l.side==="LONG"?o.green:o.red,fontFamily:r,fontWeight:700},children:l.side}),(0,e.jsxs)("span",{style:{fontSize:8,color:o.t4,fontFamily:r},children:[l.size,l.sizeUnit]}),(0,e.jsx)("span",{style:{fontSize:8,color:_,fontFamily:r},children:d(l.pnl||0)})]})]}),(0,e.jsx)("div",{style:{width:1,background:o.b2,alignSelf:"stretch"}}),(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{style:{fontSize:7,color:o.t5,fontFamily:r,marginBottom:5,letterSpacing:".06em"},children:"INTENDED ACTION"}),(0,e.jsx)("div",{style:{display:"flex",gap:5},children:["REDUCE","EXIT","ADD"].map(n=>(0,e.jsx)("button",{onClick:()=>F(n),style:{padding:"5px 12px",fontSize:9,fontFamily:r,fontWeight:700,background:h===n?n==="EXIT"?"#1a0505":n==="ADD"?"#0d1f12":"#1a0a00":"transparent",border:`1px solid ${h===n?n==="EXIT"?o.red:n==="ADD"?o.green:o.amber:o.b3}`,color:h===n?n==="EXIT"?o.red:n==="ADD"?o.green:o.amber:o.t5,borderRadius:3,cursor:"pointer"},children:n},n))})]}),(0,e.jsx)("div",{style:{width:1,background:o.b2,alignSelf:"stretch"}}),(0,e.jsxs)("div",{style:{flex:1,minWidth:140},children:[(0,e.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:5},children:[(0,e.jsx)("span",{style:{fontSize:7,color:o.t5,fontFamily:r,letterSpacing:".06em"},children:"TRADE SIZE"}
4),(0,e.jsxs)("span",{style:{fontSize:10,color:o.teal,fontFamily:r,fontWeight:700},children:[g,"% · ",S.toFixed(2),l.sizeUnit]})]}),(0,e.jsx)("input",{type:"range",min:"10",max:"100",step:"5",value:g,onChange:n=>E(Number(n.target.value)),style:{width:"100%",accentColor:o.teal,height:4}}),(0,e.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",marginTop:2},children:[(0,e.jsx)("span",{style:{fontSize:7,color:o.t5,fontFamily:r},children:"10%"}),(0,e.jsx)("span",{style:{fontSize:7,color:o.t5,fontFamily:r},children:"50%"}),(0,e.jsx)("span",{style:{fontSize:7,color:o.t5,fontFamily:r},children:"100%"})]})]}),(0,e.jsx)("div",{style:{width:1,background:o.b2,alignSelf:"stretch"}}),(0,e.jsxs)("div",{style:{flexShrink:0},children:[(0,e.jsx)("div",{style:{fontSize:7,color:o.t5,fontFamily:r,marginBottom:5,letterSpacing:".06em"},children:"ALGO RECOMMENDATION"}),(0,e.jsx)("div",{style:{fontSize:16,padding:"4px 14px",background:`${c}18`,border:`2px solid ${c}66`,borderRadius:4,color:c,fontFamily:r,fontWeight:700,letterSpacing:".08em"},children:A}),(0,e.jsxs)("div",{style:{fontSize:8,color:o.t5,fontFamily:r,marginTop:3},children:["Impact score: ",a.toFixed(0),"/100"]})]})]}):(0,e.jsx)("div",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center"},children:(0,e.jsxs)("div",{style:{textAlign:"center"},children:[(0,e.jsx)("div",{style:{fontSize:10,color:o.t5,fontFamily:r},children:"← Select a position to model execution"}),(0,e.jsx)("div",{style:{fontSize:8,color:"#2a3a3a",fontFamily:r,marginTop:4},children:"Transaction cost · Market impact · TWAP schedule · Liquidity profile"})]})})]}),l&&(0,e.jsx)("div",{style:{display:"flex",background:o.bg2,borderBottom:`1px solid ${o.b2}`,flexShrink:0},children:[["summary","SUMMARY"],["twap","TWAP / VWAP"],["liquidity","LIQUIDITY"],["costs","COST MODEL"]].map(([n,t])=>V(n,t))}),l?(0,e.jsxs)("div",{style:{flex:1,display:"flex",overflow:"hidden"},children:[u==="summary"&&(0,e.jsxs)("div",{style:{flex:1,overflowY:"auto",padding:14,animation:"fadeIn .2s ease-out"},children:[(0,e.jsx)("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr 1fr 1fr",gap:8,marginBottom:14},children:[["BID-OFFER SPREAD",d(Math.round(z)),o.amber,`${i.spread} bps · ${i.venue.split("/")[0].trim()}`],["MARKET IMPACT",d(Math.round(P)),c,`${a.toFixed(0)}/100 impact score`],["TOTAL EXE. COST",d(Math.round(m)),o.red,`${$.toFixed(3)}% of notional`],["NOTIONAL TRADED",d(Math.round(x)),o.t2,`${S.toFixed(2)} ${l.sizeUnit} @ ${l.px}`]].map(([n,t,s,p])=>(0,e.jsxs)("div",{style:{padding:"10px 12px",background:o.bg3,borderRadius:4,border:`1px solid ${o.b2}`},children:[(0,e.jsx)("div",{style:{fontSize:7,color:o.t5,fontFamily:"'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace",letterSpacing:".06em",marginBottom:3},children:n}),(0,e.jsx)("div",{style:{fontSize:15,color:s,fontFamily:"'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace",fontWeight:700,lineHeight:1},children:t}),(0,e.jsx)("div",{style:{fontSize:8,color:o.t5,fontFamily:"'Inter Tight', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",marginTop:3},children:p})]},n))}),(0,e.jsxs)("div",{style:{marginBottom:14,padding:"10px 12px",background:o.bg3,borderRadius:4,border:`1px solid ${c}33`},children:[(0,e.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:6},children:[(0,e.jsx)("span",{style:{fontSize:9,color:o.t2,fontFamily:"'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace",fontWeight:700},children:"MARKET IMPACT SCORE"}),(0,e.jsxs)("span",{style:{fontSize:14,color:c,fontFamily:"'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace",fontWeight:700},children:[a.toFixed(0),(0,e.jsx)("span",{style:{fontSize:9,color:o.t5},children:"/100"}),(0,e.jsx)("span",{style:{fontSize:9,color:c,marginLeft:8},children:a>60?"HIGH — ALGO REQUIRED":a>30?"MODERATE — CONSIDER ALGO":"LOW — SINGLE TICKET OK"})]})]}),(0,e.jsxs)("div",{style:{height:12,background:"#080808",borderRadius:5,overflow:"hidden",position:"relative"},children:[[30,60].map(n=>(0,e.jsx)("div",{style:{position:"absolute",left:`${n}%`,top:0,bottom:0,width:1,background:"#333"}},n)),(0,e.jsx)("div",{style:{height:"100%",borderRadius:5,transition:"width .6s ease",width:`${a}%`,background:`linear-gradient(90deg, ${o.green} 0%, ${o.amber} 40%, ${o.red} 75%)`}})]}),(0,e.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",marginTop:3},children:[(0,e.jsx)("span",{style:{fontSize:7,color:o.green,fontFamily:"'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace"},children:"0  MINIMAL"}),(0,e.jsx)("span",{style:{fontSize:7,color:o.amber,fontFamily:"'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace"},children:"30  MODERATE"}),(0,e.jsx)("span",{style:{fontSize:7,color:o.red,fontFamily:"'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace"},children:"60  HIGH"})]})]}),(0,e.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"1fr 340px 220px",gap:10},children:[(0,e.jsxs)("div",{style:{padding:"10px 12px",background:"#04100a",borderRadius:4,border:`1px solid ${o.teal}33`},children:[(0,e.jsx)("div",{style:{fontSize:8,color:o.teal,fontFamily:"'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace",fontWeight:700,marginBottom:6,letterSpacing:".07em"},children:"EXECUTION RECOMMENDATION"}),(0,e.jsx)("div",{style:{fontSize:11,color:o.t2,fontFamily:"'Inter Tight', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",lineHeight:1.7},children:a>60?`Trade size represents ${a.toFixed(0)}% of visible ${i.venue.split("/")[0].trim()} depth. VWAP execution mandatory — split across ${Math.ceil(a/20)} sessions during ${i.bestTime}. Avoid single-ticket — information leakage and slippage risk are material.`:a>30?`Moderate impact at ${a.toFixed(0)}/100. Use TWAP across ${v} slices during ${i.bestTime}. Limit order preferred. Do not chase market. Alt window: ${i.altWindow}.`:`Low impact. Single-ticket limit order via ${i.venue.split("/")[0].trim()} during ${i.bestTime}. Total cost ${d(Math.round(m))} is ${$.toFixed(3)}% of notional — within normal tolerance.`})]}),(0,e.jsxs)("div",{style:{padding:"10px 12px",background:o.bg3,borderRadius:4,border:`1px solid ${o.b2}`},children:[(0,e.jsx)("div",{style:{fontSize:8,color:o.t3,fontFamily:"'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace",fontWeight:700,marginBottom:6,letterSpacing:".07em"},children:"SETTLEMENT & CLEARING"}),[["Settlement Cycle",`T+${i.clearingDays}`,i.clearingDays===0?o.green:o.t2],["Primary Venue",i.venue.split("/")[0].trim(),o.t2],["Margin Requirement",`${(i.marginRate*100).toFixed(0)}%`,o.amber],["Min Block Size",d(i.minBlock),o.t3],["Avg Daily Volume",`$${i.adv}M`,o.t3],["Optimal Window",i.bestTime,o.teal]].map(([n,t,s])=>(0,e.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:4},children:[(0,e.jsx)("span",{style:{fontSize:8,color:o.t5,fontFamily:"'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace"},children:n}),(0,e.jsx)("span",{style:{fontSize:9,color:s,fontFamily:"'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace",fontWeight:600},children:t})]},n))]})]})]}),u==="twap"&&(0,e.jsxs)("div",{style:{flex:1,overflowY:"auto",padding:14,animation:"fadeIn .2s ease-out"},children:[(0,e.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:12},children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("span",{style:{fontSize:9,color:o.t2,fontFamily:"'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace",fontWeight:700,letterSpacing:".07em"},children:"TWAP EXECUTION SCHEDULE"}),(0,e.jsxs)("span",{style:{fontSize:8,color:o.t5,fontFamily:"'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace",marginLeft:10},children:[A," recommended · ",i.bestTime]})]}),(0,e.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,e.jsx)("span",{style:{fontSize:8,color:o.t5,fontFamily:"'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace"},children:"SLICES"}),[2,3,4,5,6].map(n=>(0,e.jsx)("button",{onClick:()=>J(n),style:{width:24,height:24,fontSize:9,fontFamily:"'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace",fontWeight:700,background:v===n?o.amberBg:"transparent",border:`1px solid ${v===n?o.amberDim:o.b3}`,color:v===n?o.amber:o.t5,borderRadius:3,cursor:"pointer"},children:n},n))]})]}),(0,e.jsx)("div",{style:{marginBottom:14},children:(0,e.jsxs)("table",{style:{width:"100%",borderCollapse:"collapse"},children:[(0,e.jsx)("thead",{children:(0,e.jsx)("tr",{style:{background:"#04050a"}
4,children:["SLICE","SIZE","UNIT","EST. TIME","VENUE","EST. SLIPPAGE","CUMULATIVE"].map(n=>(0,e.jsx)("th",{style:{padding:"6px 10px",textAlign:"left",fontSize:8,color:o.t5,fontFamily:"'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace",letterSpacing:".05em",borderBottom:`1px solid ${o.b2}`},children:n},n))})}),(0,e.jsx)("tbody",{children:I.map((n,t)=>{const s=I.slice(0,t+1).reduce((p,j)=>p+j.size,0);return I.slice(0,t+1).reduce((p,j)=>p+j.estSlip,0),(0,e.jsxs)("tr",{style:{borderBottom:`1px solid ${o.b1}`,background:t%2===0?"#030407":"transparent"},children:[(0,e.jsxs)("td",{style:{padding:"7px 10px",fontSize:9,color:o.amber,fontFamily:"'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace",fontWeight:700},children:["#",n.slice]}),(0,e.jsx)("td",{style:{padding:"7px 10px",fontSize:10,color:o.t1,fontFamily:"'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace",fontWeight:700},children:n.size.toFixed(2)}),(0,e.jsx)("td",{style:{padding:"7px 10px",fontSize:9,color:o.t4,fontFamily:"'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace"},children:n.unit}),(0,e.jsx)("td",{style:{padding:"7px 10px",fontSize:9,color:o.teal,fontFamily:"'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace"},children:n.time}),(0,e.jsx)("td",{style:{padding:"7px 10px",fontSize:9,color:o.t3,fontFamily:"'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace"},children:n.venue}),(0,e.jsx)("td",{style:{padding:"7px 10px",fontSize:9,color:o.red,fontFamily:"'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace"},children:d(Math.round(n.estSlip*x/S))}),(0,e.jsx)("td",{style:{padding:"7px 10px"},children:(0,e.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:5},children:[(0,e.jsx)("div",{style:{width:60,height:4,background:"#0a0a0a",borderRadius:2,overflow:"hidden"},children:(0,e.jsx)("div",{style:{width:`${s/S*100}%`,height:"100%",background:o.teal}})}),(0,e.jsxs)("span",{style:{fontSize:8,color:o.t4,fontFamily:"'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace"},children:[(s/S*100).toFixed(0),"%"]})]})})]},t)})})]})}),(0,e.jsxs)("div",{style:{padding:"10px 12px",background:o.bg3,borderRadius:4,border:`1px solid ${o.b2}`},children:[(0,e.jsx)("div",{style:{fontSize:8,color:o.t5,fontFamily:"'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace",letterSpacing:".07em",marginBottom:8},children:"EXECUTION TIMELINE"}),(0,e.jsx)("div",{style:{display:"flex",gap:2,height:28,alignItems:"flex-end"},children:I.map((n,t)=>{const s=Math.max(...I.map(p=>p.size));return(0,e.jsxs)("div",{style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",gap:2},children:[(0,e.jsx)("div",{style:{width:"100%",height:`${n.size/s*100}%`,background:`linear-gradient(to top, ${o.teal}, ${o.teal}88)`,borderRadius:"2px 2px 0 0",minHeight:4}}),(0,e.jsxs)("span",{style:{fontSize:6,color:o.t5,fontFamily:"'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace"},children:["#",n.slice]})]},t)})}),(0,e.jsx)("div",{style:{marginTop:6,padding:"6px 8px",background:"#040c0a",borderRadius:3},children:(0,e.jsx)("div",{style:{display:"flex",gap:16},children:[["Total slices",v,o.teal],["Total cost est.",d(Math.round(m)),o.red],["Algo type",A,c],["Primary window",i.bestTime,o.t3]].map(([n,t,s])=>(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{style:{fontSize:7,color:o.t5,fontFamily:"'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace"},children:n}),(0,e.jsx)("div",{style:{fontSize:10,color:s,fontFamily:"'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace",fontWeight:700},children:t})]},n))})})]})]}),u==="liquidity"&&(0,e.jsxs)("div",{style:{flex:1,overflowY:"auto",padding:14,animation:"fadeIn .2s ease-out"},children:[(0,e.jsxs)("div",{style:{marginBottom:14,padding:"12px 14px",background:o.bg3,borderRadius:4,border:`1px solid ${c}33`},children:[(0,e.jsx)("div",{style:{fontSize:8,color:c,fontFamily:"'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace",fontWeight:700,marginBottom:8,letterSpacing:".07em"},children:"TRADE SIZE vs VISIBLE MARKET DEPTH"}),(0,e.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center",marginBottom:8},children:[(0,e.jsxs)("div",{style:{flex:1},children:[(0,e.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:4},children:[(0,e.jsx)("span",{style:{fontSize:9,color:o.t4,fontFamily:"'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace"},children:"Trade size"}
4),(0,e.jsxs)("span",{style:{fontSize:10,color:c,fontFamily:"'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace",fontWeight:700},children:[d(Math.round(x/1e6*1e3)/1e3),"M"]})]}),(0,e.jsx)("div",{style:{height:10,background:"#080808",borderRadius:4,overflow:"hidden"},children:(0,e.jsx)("div",{style:{width:`${a}%`,height:"100%",background:c,opacity:.8,transition:"width .5s"}})})]}),(0,e.jsx)("span",{style:{fontSize:10,color:o.t5,fontFamily:"'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace"},children:"vs"}),(0,e.jsxs)("div",{style:{flex:1},children:[(0,e.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:4},children:[(0,e.jsx)("span",{style:{fontSize:9,color:o.t4,fontFamily:"'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace"},children:"Market depth"}),(0,e.jsxs)("span",{style:{fontSize:10,color:o.green,fontFamily:"'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace",fontWeight:700},children:["$",i.depthM,"M ADV"]})]}),(0,e.jsx)("div",{style:{height:10,background:"#080808",borderRadius:4,overflow:"hidden"},children:(0,e.jsx)("div",{style:{width:"100%",height:"100%",background:`${o.green}55`}})})]})]}),(0,e.jsxs)("div",{style:{fontSize:9,color:c,fontFamily:"'Inter Tight', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",lineHeight:1.6},children:["This trade represents ",(0,e.jsxs)("strong",{style:{color:c},children:[a.toFixed(1),"%"]})," of visible market depth ($",i.depthM,"M).",a>30?" Execution should be staggered to minimise price impact.":" Market absorption is likely. Single-ticket execution viable."]})]}),(0,e.jsx)("div",{style:{display:"grid",gridTemplateColumns:"1fr 340px 220px",gap:8,marginBottom:12},children:[["Bid-Offer Spread",`${i.spread} bps`,o.t2,"Estimated half-spread in normal conditions"],["Market Impact",`${i.impact} bps`,c,"Estimated price impact per unit of ADV"],["Visible Depth",`$${i.depthM}M`,o.green,"Average visible depth at touch"],["Average Daily Vol",`$${i.adv}M/day`,o.t2,"30-day rolling average daily volume"],["Primary Venue",i.venue.split("/")[0].trim(),o.teal,"Recommended primary execution venue"],["Alt. Venues",i.venue.split("/").slice(1).join(" / ").trim()||"—",o.t4,"Alternative venues for size"],["Optimal Window",i.bestTime,o.teal,"Highest liquidity window (local time)"],["Alternative Window",i.altWindow,o.t4,"Secondary window if primary unavailable"],["Settlement",`T+${i.clearingDays}`,i.clearingDays===0?o.green:o.t2,"Standard settlement cycle"],["Margin Required",`${(i.marginRate*100).toFixed(0)}% of notional`,o.amber,"Initial margin requirement"]].map(([n,t,s,p])=>(0,e.jsxs)("div",{style:{padding:"8px 10px",background:o.bg3,borderRadius:4,border:`1px solid ${o.b2}`},children:[(0,e.jsx)("div",{style:{fontSize:7,color:o.t5,fontFamily:"'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace",marginBottom:2},children:n}),(0,e.jsx)("div",{style:{fontSize:11,color:s,fontFamily:"'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace",fontWeight:700},children:t}),(0,e.jsx)("div",{style:{fontSize:8,color:o.t5,fontFamily:"'Inter Tight', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",marginTop:2},children:p})]},n))}),(0,e.jsxs)("div",{style:{padding:"10px 12px",background:o.bg3,borderRadius:4,border:`1px solid ${o.b2}`},children:[(0,e.jsx)("div",{style:{fontSize:8,color:o.t5,fontFamily:"'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace",letterSpacing:".07em",marginBottom:8},children:"INTRADAY LIQUIDITY CURVE (ILLUSTRATIVE)"}),(0,e.jsxs)("svg",{viewBox:"0 0 360 60",style:{width:"100%",overflow:"visible"},children:[[0,.3,.7,1.4,2.1,2.8,2.4,1.8,1.4,1.2,1,.95,1.1,1.4,1.8,2.4,3,2.8,2.2,1.8,1.4,1,.7,.4].map((n,t,s)=>{const p=t/(s.length-1)*360,j=55-n/3*50,G=(t+1)/(s.length-1)*360,H=t+1<s.length?55-s[t+1]/3*50:j,Y=n>2?o.green:n>1?o.amber:o.red;return t+1<s.length?(0,e.jsx)("line",{x1:p,y1:j,x2:G,y2:H,stroke:Y,strokeWidth:"2",strokeLinecap:"round"},t):null}),(0,e.jsx)("text",{x:"0",y:"8",fill:o.t5,fontSize:"6",fontFamily:"IBM Plex Mono",children:"09:00"}),(0,e.jsx)("text",{x:"150",y:"8",fill:o.t5,fontSize:"6",fontFamily:"IBM Plex Mono",children:"12:00"}),(0,e.jsx)("text",{x:"310",y:"8",fill:o.t5,fontSize:"6",fontFamily:"IBM Plex Mono",children:"16:00"})]}),(0,e.jsx)("div",{style:{display:"flex",gap:10,marginTop:4},children:[["HIGH",o.green],[">1×",o.amber],["LOW",o.red]].map(([n,t])=>(0,e.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:4},children:[(0,e.jsx)("div",{style:{width:12,height:3,background:t,borderRadius:2}}),(0,e.jsx)("span",{style:{fontSize:7,color:t,fontFamily:"'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace"},children:n})]},n))})]})]}),u==="costs"&&(0,e.jsxs)("div",{style:{flex:1,overflowY:"auto",padding:14,animation:"fadeIn .2s ease-out"},children:[(0,e.jsxs)("div",{style:{marginBottom:14},children:[(0,e.jsx)("div",{style:{fontSize:8,color:o.t5,fontFamily:"'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace",letterSpacing:".07em",marginBottom:8},children:"TOTAL COST WATERFALL"}),[{l:"Bid-Offer (½ spread)",v:z,c:o.amber,desc:`${i.spread}bps × ${d(Math.round(x))} notional`},{l:"Market Impact",v:P,c:o.red,desc:`${a.toFixed(0)}/100 impact × ${i.impact}bps`},{l:"Timing Cost (avg)",v:b,c:"#f59e0b",desc:"Estimated opportunity cost of staged execution"},{l:"Total Execution Cost",v:m+b,c:o.red,bold:!0,desc:"All-in transaction cost estimate"}].map(n=>{const t=m+b||1,s=n.v/t*100;return(0,e.jsxs)("div",{style:{marginBottom:8,padding:"8px 10px",background:o.bg3,borderRadius:3,border:`1px solid ${n.bold?n.c+"44":o.b2}`},children:[(0,e.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:4},children:[(0,e.jsx)("span",{style:{fontSize:9,color:o.t2,fontFamily:n.bold?"'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace":"'Inter Tight', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",fontWeight:n.bold?700:400},children:n.l}),(0,e.jsx)("span",{style:{fontSize:n.bold?14:11,color:n.c,fontFamily:"'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace",fontWeight:700},children:d(Math.round(n.v))})]}),!n.bold&&(0,e.jsx)("div",{style:{height:4,background:"#0a0a0a",borderRadius:2,overflow:"hidden",marginBottom:3},children:(0,e.jsx)("div",{style:{width:`${s}%`,height:"100%",background:n.c,opacity:.8}})}),(0,e.jsx)("div",{style:{fontSize:8,color:o.t5,fontFamily:"'Inter Tight', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif"},children:n.desc})]},n.l)})]}),(0,e.jsxs)("div",{style:{marginBottom:12,padding:"10px 12px",background:o.bg3,borderRadius:4,border:`1px solid ${o.b2}`},children:[(0,e.jsx)("div",{style:{fontSize:8,color:o.t3,fontFamily:"'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace",fontWeight:700,marginBottom:8,letterSpacing:".07em"},children:"P&L IMPACT ANALYSIS"}),[["Current position P&L",d(l.pnl||0),l.pnl>=0?o.green:o.red],["Trade execution cost",`-${d(Math.round(m+b))}`,o.red],["Remaining P&L",d(Math.round((l.pnl||0)-(m+b))),(l.pnl||0)-(m+b)>=0?o.green:o.red],["Cost as % of P&L",l.pnl?`${((m+b)/Math.abs(l.pnl)*100).toFixed(1)}%`:"—",o.amber],["Breakeven move required",`${$.toFixed(3)}%`,o.t3]].map(([n,t,s])=>(0,e.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:5,paddingBottom:5,borderBottom:`1px solid ${o.b1}`},children:[(0,e.jsx)("span",{style:{fontSize:9,color:o.t4,fontFamily:"'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace"},children:n}
4),(0,e.jsx)("span",{style:{fontSize:10,color:s,fontFamily:"'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace",fontWeight:700},children:t})]},n))]}),(0,e.jsxs)("div",{style:{padding:"10px 12px",background:o.bg3,borderRadius:4,border:`1px solid ${o.b2}`},children:[(0,e.jsx)("div",{style:{fontSize:8,color:o.t3,fontFamily:"'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace",fontWeight:700,marginBottom:8,letterSpacing:".07em"},children:"VENUE COST COMPARISON"}),i.venue.split("/").map((n,t)=>{const s=t===0?1:t===1?1.06:1.12,p=Math.round(m*s);return(0,e.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:6},children:[(0,e.jsxs)("span",{style:{fontSize:9,color:t===0?o.teal:o.t4,fontFamily:"'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace",fontWeight:t===0?700:400,width:130},children:[n.trim(),t===0?" ★":""]}),(0,e.jsx)("div",{style:{flex:1,height:5,background:"#0a0a0a",borderRadius:3,overflow:"hidden"},children:(0,e.jsx)("div",{style:{width:`${100/s}%`,height:"100%",background:t===0?o.teal:o.t5,opacity:.7}})}),(0,e.jsx)("span",{style:{fontSize:9,color:t===0?o.teal:o.t4,fontFamily:"'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace",fontWeight:700,width:60,textAlign:"right"},children:d(p)})]},n)})]})]})]}):null]})}export{re as t};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.