@marimo-team/frontend 0.13.16-dev57 → 0.13.16-dev59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{ConnectedDataExplorerComponent-Cxx0D34S.js → ConnectedDataExplorerComponent-BTGxqI_j.js} +1 -1
- package/dist/assets/{ImageComparisonComponent-Czpgb6Qt.js → ImageComparisonComponent-CzzBqdXA.js} +1 -1
- package/dist/assets/{VegaLite-CO8FzCeB.js → VegaLite-O83nuMfl.js} +1 -1
- package/dist/assets/{_baseEach-LNOauA-a.js → _baseEach-DNkNlAMh.js} +1 -1
- package/dist/assets/_baseMap-DqifI1if.js +1 -0
- package/dist/assets/{_baseUniq-Cq7N1_IE.js → _baseUniq-Ol7Bv7p_.js} +1 -1
- package/dist/assets/{_createAggregator-BR5-gteD.js → _createAggregator-DPHZ8aHb.js} +1 -1
- package/dist/assets/{any-language-editor-Czfxkocl.js → any-language-editor-B-V9wcD3.js} +1 -1
- package/dist/assets/{architectureDiagram-IEHRJDOE-BmRsqRtp.js → architectureDiagram-IEHRJDOE-CqO_EztW.js} +1 -1
- package/dist/assets/{blockDiagram-JOT3LUYC-CbGO6Ot1.js → blockDiagram-JOT3LUYC-BIG0e-Cp.js} +1 -1
- package/dist/assets/{c4Diagram-VJAJSXHY-BMr1JYxk.js → c4Diagram-VJAJSXHY-DgmZAxXR.js} +1 -1
- package/dist/assets/channel-CGpk5nyh.js +1 -0
- package/dist/assets/{chunk-4BMEZGHF-CdL9xnOp.js → chunk-4BMEZGHF-CIfXA6OF.js} +1 -1
- package/dist/assets/{chunk-A2AXSNBT-CFNItUoK.js → chunk-A2AXSNBT-DvfcFk69.js} +1 -1
- package/dist/assets/{chunk-AEK57VVT-Bf8UZ8n7.js → chunk-AEK57VVT-CC_C0KN_.js} +1 -1
- package/dist/assets/{chunk-D6G4REZN-Dtxzkm0Y.js → chunk-D6G4REZN-2A92B6q-.js} +1 -1
- package/dist/assets/{chunk-RZ5BOZE2-X5DkqzYb.js → chunk-RZ5BOZE2-Cb8myTXn.js} +1 -1
- package/dist/assets/{chunk-XZIHB7SX-CP3cWTyE.js → chunk-XZIHB7SX-B5VPkIzy.js} +1 -1
- package/dist/assets/{circle-play-BdY0Mz5t.js → circle-play-D7Q3K0Yg.js} +1 -1
- package/dist/assets/classDiagram-GIVACNV2-CqrERlGh.js +1 -0
- package/dist/assets/classDiagram-v2-COTLJTTW-CqrERlGh.js +1 -0
- package/dist/assets/clone-BEIuzTZz.js +1 -0
- package/dist/assets/{compile-Bs8kxucU.js → compile-XqY323UT.js} +1 -1
- package/dist/assets/{dagre-OKDRZEBW-BeEc9lV7.js → dagre-OKDRZEBW-XDgYF9dp.js} +1 -1
- package/dist/assets/{data-editor-CND4j2oR.js → data-editor-CUHd-CNV.js} +1 -1
- package/dist/assets/{diagram-SSKATNLV-BcKexckW.js → diagram-SSKATNLV-DadblRsf.js} +1 -1
- package/dist/assets/{diagram-VNBRO52H-CuFUASTh.js → diagram-VNBRO52H-BDM7DuPf.js} +1 -1
- package/dist/assets/{edit-page-CAiPxrq9.js → edit-page-BYbToCaW.js} +3 -3
- package/dist/assets/{erDiagram-Q7BY3M3F-BfHHbedj.js → erDiagram-Q7BY3M3F-DNQkBXlv.js} +1 -1
- package/dist/assets/{flowDiagram-4HSFHLVR-C7Ue2Pre.js → flowDiagram-4HSFHLVR-B3w0Iwdx.js} +1 -1
- package/dist/assets/{ganttDiagram-APWFNJXF-CLZ7nSPi.js → ganttDiagram-APWFNJXF-DhDc_swb.js} +1 -1
- package/dist/assets/{gitGraphDiagram-7IBYFJ6S-CR7I7eDp.js → gitGraphDiagram-7IBYFJ6S-DUb6mHNw.js} +1 -1
- package/dist/assets/{graph-BmY6w9yf.js → graph-BBzkRVlU.js} +1 -1
- package/dist/assets/{home-page-4-Fn19go.js → home-page-D1LVvBpt.js} +1 -1
- package/dist/assets/{index-DVPUMhA6.js → index-BPGo9u5T.js} +1 -1
- package/dist/assets/{index-C_YBu4tU.js → index-BTFMHw26.js} +1 -1
- package/dist/assets/{index-B76erFGc.js → index-BgPFZE5i.js} +1 -1
- package/dist/assets/{index-Cxfhd3zs.js → index-BjEVP9vB.js} +1 -1
- package/dist/assets/{index-Rh1XQzPr.js → index-BmOL1-zF.js} +1 -1
- package/dist/assets/{index-D8Tb-KRz.js → index-ByI4QUiD.js} +1 -1
- package/dist/assets/{index-D9kHkET-.js → index-CZAlGmMU.js} +1 -1
- package/dist/assets/{index-C4-tV0IQ.js → index-DAOcJ7Ac.js} +1 -1
- package/dist/assets/{index-CN9y9bSa.js → index-DHKPZ_oX.js} +1 -1
- package/dist/assets/{index-DPlv7xGY.js → index-DP9Zq1Ou.js} +1 -1
- package/dist/assets/{index-Br1wm15U.js → index-DhNA-acH.js} +1 -1
- package/dist/assets/{index-4HEmI9GW.js → index-DsacajfY.js} +1 -1
- package/dist/assets/{index-QIUy3-fx.js → index-DzTq_FpA.js} +105 -105
- package/dist/assets/{index-C-AbIT2J.js → index-LSSBC8Rd.js} +1 -1
- package/dist/assets/{index-DjwUjO1A.js → index-LTjbWZNT.js} +1 -1
- package/dist/assets/{index-BPbd4S2b.js → index-Uqe0s7wz.js} +1 -1
- package/dist/assets/{index-DAWurPiI.js → index-XTMk23ln.js} +1 -1
- package/dist/assets/{index-Bo6aGjTB.js → index-eY1NQien.js} +1 -1
- package/dist/assets/index-mD-LrCTs.css +1 -0
- package/dist/assets/{index-Bef4_wPf.js → index-rIhIMqj8.js} +1 -1
- package/dist/assets/infoDiagram-PH2N3AL5-CzU-41oC.js +2 -0
- package/dist/assets/{journeyDiagram-U35MCT3I-CPzgwkQ0.js → journeyDiagram-U35MCT3I-DjwkcoCR.js} +1 -1
- package/dist/assets/{kanban-definition-NDS4AKOZ-B0JbR4at.js → kanban-definition-NDS4AKOZ-CYmNc75J.js} +1 -1
- package/dist/assets/{layout-cnJA8onR.js → layout-DzdHVCPK.js} +1 -1
- package/dist/assets/{linear-Hpe_xbNg.js → linear-Buy8I-5A.js} +1 -1
- package/dist/assets/{mermaid-BTnYu19d.js → mermaid-Y_fFfPGV.js} +4 -4
- package/dist/assets/{min-DBYbvr5H.js → min-yP_99urI.js} +1 -1
- package/dist/assets/{mindmap-definition-ALO5MXBD-CwN12ZUl.js → mindmap-definition-ALO5MXBD-BbMGVphq.js} +1 -1
- package/dist/assets/{panels-BLAlULf5.js → panels-CHm5-SIx.js} +4 -4
- package/dist/assets/{pieDiagram-IB7DONF6-CHFdhRFn.js → pieDiagram-IB7DONF6-DBs90AyK.js} +1 -1
- package/dist/assets/{quadrantDiagram-7GDLP6J5-D5V7aZkv.js → quadrantDiagram-7GDLP6J5-DgQ2OXj_.js} +1 -1
- package/dist/assets/{radar-MK3ICKWK-DHE2mw_c.js → radar-MK3ICKWK-DfZCoTLS.js} +1 -1
- package/dist/assets/{react-plotly-CVHyByw0.js → react-plotly-C2pU0O8v.js} +1 -1
- package/dist/assets/{requirementDiagram-KVF5MWMF-AZXQd9LA.js → requirementDiagram-KVF5MWMF-CRcC7ZZs.js} +1 -1
- package/dist/assets/run-page-D8uPNQdD.js +1 -0
- package/dist/assets/{sankeyDiagram-QLVOVGJD-CEP7ugwo.js → sankeyDiagram-QLVOVGJD-VeLT2uT6.js} +1 -1
- package/dist/assets/{sequenceDiagram-X6HHIX6F-K8RUIES1.js → sequenceDiagram-X6HHIX6F-DaGSyS47.js} +1 -1
- package/dist/assets/{slides-component-Dk_dI6Us.js → slides-component-BjNPOckW.js} +1 -1
- package/dist/assets/{sortBy-YG51qdCy.js → sortBy-_g-ev-qv.js} +1 -1
- package/dist/assets/{stateDiagram-DGXRK772-C447xjov.js → stateDiagram-DGXRK772-CgaMsIqa.js} +1 -1
- package/dist/assets/stateDiagram-v2-YXO3MK2T-Dy0HeBdB.js +1 -0
- package/dist/assets/{terminal-BlJOU13l.js → terminal-B0sHUSvx.js} +1 -1
- package/dist/assets/{time-iwgofemH.js → time-D_UBfK0F.js} +1 -1
- package/dist/assets/{timeline-definition-BDJGKUSR-uXdcSquY.js → timeline-definition-BDJGKUSR-D3761Lxj.js} +1 -1
- package/dist/assets/{tracing-C7bGildW.js → tracing-3IY9qyNR.js} +2 -2
- package/dist/assets/{tree-Bqit9JR1.js → tree-VNvVKUNJ.js} +1 -1
- package/dist/assets/{vega-component-DbGbYG9c.js → vega-component-BkOHwwK5.js} +1 -1
- package/dist/assets/{xychartDiagram-VJFVF3MP-BqGaxgM8.js → xychartDiagram-VJFVF3MP-DuLi1Qhp.js} +1 -1
- package/dist/index.html +2 -2
- package/package.json +1 -1
- package/dist/assets/_baseMap-pxqdwgum.js +0 -1
- package/dist/assets/channel-BacrjZjq.js +0 -1
- package/dist/assets/classDiagram-GIVACNV2-DLiyenS4.js +0 -1
- package/dist/assets/classDiagram-v2-COTLJTTW-DLiyenS4.js +0 -1
- package/dist/assets/clone-BcTwHBqS.js +0 -1
- package/dist/assets/index-N-a4M2pk.css +0 -1
- package/dist/assets/infoDiagram-PH2N3AL5-B9SZVXr0.js +0 -2
- package/dist/assets/run-page-BOmYmTjd.js +0 -1
- package/dist/assets/stateDiagram-v2-YXO3MK2T-DiuTh3LP.js +0 -1
@@ -1,4 +1,4 @@
|
|
1
|
-
import{p as k}from"./chunk-4BMEZGHF-
|
1
|
+
import{p as k}from"./chunk-4BMEZGHF-CIfXA6OF.js";import{_ as l,s as O,g as S,q as I,p as E,a as F,b as z,I as P,y as R,E as v,F as w,G as D,l as G,L as B}from"./mermaid-Y_fFfPGV.js";import{p as _}from"./radar-MK3ICKWK-DfZCoTLS.js";import"./index-DzTq_FpA.js";import"./transform-Cyp0GDF-.js";import"./timer-DFzT7np-.js";import"./step-BwsUM5iJ.js";import"./_baseEach-DNkNlAMh.js";import"./_baseUniq-Ol7Bv7p_.js";import"./min-yP_99urI.js";import"./_baseMap-DqifI1if.js";import"./clone-BEIuzTZz.js";import"./_createAggregator-DPHZ8aHb.js";var u={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},b={axes:[],curves:[],options:u},m=structuredClone(b),j=D.radar,V=l(()=>v({...j,...w().radar}),"getConfig"),C=l(()=>m.axes,"getAxes"),W=l(()=>m.curves,"getCurves"),q=l(()=>m.options,"getOptions"),H=l(e=>{m.axes=e.map(t=>({name:t.name,label:t.label??t.name}))},"setAxes"),Z=l(e=>{m.curves=e.map(t=>({name:t.name,label:t.label??t.name,entries:J(t.entries)}))},"setCurves"),J=l(e=>{if(e[0].axis==null)return e.map(a=>a.value);const t=C();if(t.length===0)throw new Error("Axes must be populated before curves for reference entries");return t.map(a=>{const r=e.find(n=>{var s;return((s=n.axis)==null?void 0:s.$refText)===a.name});if(r===void 0)throw new Error("Missing entry for axis "+a.label);return r.value})},"computeCurveEntries"),$={getAxes:C,getCurves:W,getOptions:q,setAxes:H,setCurves:Z,setOptions:l(e=>{var a,r,n,s,o;const t=e.reduce((i,c)=>(i[c.name]=c,i),{});m.options={showLegend:((a=t.showLegend)==null?void 0:a.value)??u.showLegend,ticks:((r=t.ticks)==null?void 0:r.value)??u.ticks,max:((n=t.max)==null?void 0:n.value)??u.max,min:((s=t.min)==null?void 0:s.value)??u.min,graticule:((o=t.graticule)==null?void 0:o.value)??u.graticule}},"setOptions"),getConfig:V,clear:l(()=>{R(),m=structuredClone(b)},"clear"),setAccTitle:z,getAccTitle:F,setDiagramTitle:E,getDiagramTitle:I,getAccDescription:S,setAccDescription:O},K=l(e=>{k(e,$);const{axes:t,curves:a,options:r}=e;$.setAxes(t),$.setCurves(a),$.setOptions(r)},"populate"),N={parse:l(async e=>{const t=await _("radar",e);G.debug(t),K(t)},"parse")},Q=l((e,t,a,r)=>{const n=r.db,s=n.getAxes(),o=n.getCurves(),i=n.getOptions(),c=n.getConfig(),g=n.getDiagramTitle(),p=P(t),d=U(p,c),h=i.max??Math.max(...o.map(f=>Math.max(...f.entries))),y=i.min,x=Math.min(c.width,c.height)/2;X(d,s,x,i.ticks,i.graticule),Y(d,s,x,c),M(d,s,o,y,h,i.graticule,c),A(d,o,i.showLegend,c),d.append("text").attr("class","radarTitle").text(g).attr("x",0).attr("y",-c.height/2-c.marginTop)},"draw"),U=l((e,t)=>{const a=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,n=t.marginLeft+t.width/2,s=t.marginTop+t.height/2;return e.attr("viewbox",`0 0 ${a} ${r}`).attr("width",a).attr("height",r),e.append("g").attr("transform",`translate(${n}, ${s})`)},"drawFrame"),X=l((e,t,a,r,n)=>{if(n==="circle")for(let s=0;s<r;s++){const o=a*(s+1)/r;e.append("circle").attr("r",o).attr("class","radarGraticule")}else if(n==="polygon"){const s=t.length;for(let o=0;o<r;o++){const i=a*(o+1)/r,c=t.map((g,p)=>{const d=2*p*Math.PI/s-Math.PI/2;return`${i*Math.cos(d)},${i*Math.sin(d)}`}).join(" ");e.append("polygon").attr("points",c).attr("class","radarGraticule")}}},"drawGraticule"),Y=l((e,t,a,r)=>{const n=t.length;for(let s=0;s<n;s++){const o=t[s].label,i=2*s*Math.PI/n-Math.PI/2;e.append("line").attr("x1",0).attr("y1",0).attr("x2",a*r.axisScaleFactor*Math.cos(i)).attr("y2",a*r.axisScaleFactor*Math.sin(i)).attr("class","radarAxisLine"),e.append("text").text(o).attr("x",a*r.axisLabelFactor*Math.cos(i)).attr("y",a*r.axisLabelFactor*Math.sin(i)).attr("class","radarAxisLabel")}},"drawAxes");function M(e,t,a,r,n,s,o){const i=t.length,c=Math.min(o.width,o.height)/2;a.forEach((g,p)=>{if(g.entries.length!==i)return;const d=g.entries.map((h,y)=>{const x=2*Math.PI*y/i-Math.PI/2,f=L(h,r,n,c);return{x:f*Math.cos(x),y:f*Math.sin(x)}});s==="circle"?e.append("path").attr("d",T(d,o.curveTension)).attr("class",`radarCurve-${p}`):s==="polygon"&&e.append("polygon").attr("points",d.map(h=>`${h.x},${h.y}`).join(" ")).attr("class",`radarCurve-${p}`)})}function L(e,t,a,r){return r*(Math.min(Math.max(e,t),a)-t)/(a-t)}function T(e,t){const a=e.length;let r=`M${e[0].x},${e[0].y}`;for(let n=0;n<a;n++){const s=e[(n-1+a)%a],o=e[n],i=e[(n+1)%a],c=e[(n+2)%a],g={x:o.x+(i.x-s.x)*t,y:o.y+(i.y-s.y)*t},p={x:i.x-(c.x-o.x)*t,y:i.y-(c.y-o.y)*t};r+=` C${g.x},${g.y} ${p.x},${p.y} ${i.x},${i.y}`}return`${r} Z`}function A(e,t,a,r){if(!a)return;const n=3*(r.width/2+r.marginRight)/4,s=3*-(r.height/2+r.marginTop)/4;t.forEach((o,i)=>{const c=e.append("g").attr("transform",`translate(${n}, ${s+20*i})`);c.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${i}`),c.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(o.label)})}l(M,"drawCurves"),l(L,"relativeRadius"),l(T,"closedRoundCurve"),l(A,"drawLegend");var tt={draw:Q},at=l((e,t)=>{let a="";for(let r=0;r<e.THEME_COLOR_LIMIT;r++){const n=e[`cScale${r}`];a+=`
|
2
2
|
.radarCurve-${r} {
|
3
3
|
color: ${n};
|
4
4
|
fill: ${n};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import{p as B}from"./chunk-4BMEZGHF-
|
1
|
+
import{p as B}from"./chunk-4BMEZGHF-CIfXA6OF.js";import{_ as l,s as F,g as P,q as W,p as S,a as z,b as T,E as x,I as v,d as D,y as E,F as A,G as R,l as $}from"./mermaid-Y_fFfPGV.js";import{p as Y}from"./radar-MK3ICKWK-DfZCoTLS.js";import"./index-DzTq_FpA.js";import"./transform-Cyp0GDF-.js";import"./timer-DFzT7np-.js";import"./step-BwsUM5iJ.js";import"./_baseEach-DNkNlAMh.js";import"./_baseUniq-Ol7Bv7p_.js";import"./min-yP_99urI.js";import"./_baseMap-DqifI1if.js";import"./clone-BEIuzTZz.js";import"./_createAggregator-DPHZ8aHb.js";var w={packet:[]},u=structuredClone(w),H=R.packet,I=l(()=>{const t=x({...H,...A().packet});return t.showBits&&(t.paddingY+=10),t},"getConfig"),L=l(()=>u.packet,"getPacket"),m={pushWord:l(t=>{t.length>0&&u.packet.push(t)},"pushWord"),getPacket:L,getConfig:I,clear:l(()=>{E(),u=structuredClone(w)},"clear"),setAccTitle:T,getAccTitle:z,setDiagramTitle:S,getDiagramTitle:W,getAccDescription:P,setAccDescription:F},j=l(t=>{B(t,m);let e=-1,o=[],i=1;const{bitsPerRow:s}=m.getConfig();for(let{start:a,end:r,label:p}of t.blocks){if(r&&r<a)throw new Error(`Packet block ${a} - ${r} is invalid. End must be greater than start.`);if(a!==e+1)throw new Error(`Packet block ${a} - ${r??a} is not contiguous. It should start from ${e+1}.`);for(e=r??a,$.debug(`Packet block ${a} - ${e} with label ${p}`);o.length<=s+1&&m.getPacket().length<1e4;){const[h,c]=q({start:a,end:r,label:p},i,s);if(o.push(h),h.end+1===i*s&&(m.pushWord(o),o=[],i++),!c)break;({start:a,end:r,label:p}=c)}}m.pushWord(o)},"populate"),q=l((t,e,o)=>{if(t.end===void 0&&(t.end=t.start),t.start>t.end)throw new Error(`Block start ${t.start} is greater than block end ${t.end}.`);return t.end+1<=e*o?[t,void 0]:[{start:t.start,end:e*o-1,label:t.label},{start:e*o,end:t.end,label:t.label}]},"getNextFittingBlock"),G={parse:l(async t=>{const e=await Y("packet",t);$.debug(e),j(e)},"parse")},M=l((t,e,o,i)=>{const s=i.db,a=s.getConfig(),{rowHeight:r,paddingY:p,bitWidth:h,bitsPerRow:c}=a,f=s.getPacket(),n=s.getDiagramTitle(),k=r+p,d=k*(f.length+1)-(n?0:r),b=h*c+2,g=v(e);g.attr("viewbox",`0 0 ${b} ${d}`),D(g,d,b,a.useMaxWidth);for(const[y,C]of f.entries())N(g,C,y,a);g.append("text").text(n).attr("x",b/2).attr("y",d-k/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),N=l((t,e,o,{rowHeight:i,paddingX:s,paddingY:a,bitWidth:r,bitsPerRow:p,showBits:h})=>{const c=t.append("g"),f=o*(i+a)+a;for(const n of e){const k=n.start%p*r+1,d=(n.end-n.start+1)*r-s;if(c.append("rect").attr("x",k).attr("y",f).attr("width",d).attr("height",i).attr("class","packetBlock"),c.append("text").attr("x",k+d/2).attr("y",f+i/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(n.label),!h)continue;const b=n.end===n.start,g=f-2;c.append("text").attr("x",k+(b?d/2:0)).attr("y",g).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",b?"middle":"start").text(n.start),b||c.append("text").attr("x",k+d).attr("y",g).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(n.end)}},"drawWord"),X={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},_={parser:G,db:m,renderer:{draw:M},styles:l(({packet:t}={})=>{const e=x(X,t);return`
|
2
2
|
.packetByte {
|
3
3
|
font-size: ${e.byteFontSize};
|
4
4
|
}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./tracing-
|
2
|
-
var wF=Object.defineProperty;var g3=Ft=>{throw TypeError(Ft)};var vF=(Ft,Et,mn)=>Et in Ft?wF(Ft,Et,{enumerable:!0,configurable:!0,writable:!0,value:mn}):Ft[Et]=mn;var ee=(Ft,Et,mn)=>vF(Ft,typeof Et!="symbol"?Et+"":Et,mn),kF=(Ft,Et,mn)=>Et.has(Ft)||g3("Cannot "+mn);var _3=(Ft,Et,mn)=>(kF(Ft,Et,"read from private field"),mn?mn.call(Ft):Et.get(Ft)),b3=(Ft,Et,mn)=>Et.has(Ft)?g3("Cannot add the same private member more than once"):Et instanceof WeakSet?Et.add(Ft):Et.set(Ft,mn);import{u as Fe,Q as A,i8 as SF,i9 as CF,ia as y3,ib as NF,ic as jF,id as EF,R as K,ie as IF,ig as Mr,ih as AF,ii as Kf,ij as x3,ik as TF,il as MF,im as w3,io as oc,d as X,as as Un,ip as Xf,j as h,dt as Zf,du as v3,dv as OF,dx as Qf,dz as ep,f6 as rc,iq as tp,dr as np,ds as op,dw as rp,ir as DF,is as k3,eg as S3,bp as et,a8 as Lt,it as RF,dV as fo,iu as C3,iv as N3,iw as sp,ix as j3,iy as PF,L as Zt,_ as Qt,aF as E3,cD as ip,W as Pe,iz as LF,eh as dt,iA as I3,el as sc,iB as FF,ao as lt,iC as ic,Z as We,a_ as Vn,a0 as en,iD as ac,iE as Ts,e5 as Ms,iF as zF,iG as Xi,iH as BF,ee as UF,iI as A3,iJ as T3,dN as VF,a7 as ap,iK as ar,iL as Or,aJ as lc,aL as lr,iM as HF,iN as cc,iO as M3,a5 as Zi,eD as O3,a6 as dc,iP as $F,an as yn,iQ as lp,iR as Dr,aj as cr,ak as Os,al as dr,bg as Rr,U as Fo,e6 as Ds,gm as D3,fO as Rs,gp as WF,b2 as fn,iS as qF,iT as GF,fM as cp,aI as uc,iU as dp,iV as YF,iW as R3,iX as up,iY as JF,iZ as KF,i_ as po,i$ as P3,fS as hp,j0 as Qi,j1 as hc,e0 as XF,ae as Zn,am as Ps,be as ur,j2 as ea,bt as Hn,ap as Ls,a4 as Le,f3 as mo,b7 as L3,eo as Ut,j3 as ZF,eQ as QF,dA as fc,j4 as pc,aN as fp,j5 as ez,en as pp,eb as Fs,j6 as tz,j7 as mp,bj as jn,j8 as nz,dT as Ae,j9 as Je,ja as gp,jb as St,jc as F3,jd as oz,ft as _p,aE as En,aT as $n,g9 as z3,ga as B3,gb as rz,gf as sz,gc as U3,V as Oe,dM as iz,aG as mc,aR as gc,aH as _c,aO as sn,ef as zo,je as az,gd as V3,jf as lz,g4 as H3,g6 as $3,jg as zs,jh as W3,ji as cz,jj as dz,ai as uz,ah as hz,ea as ta,af as bp,jk as na,jl as bc,jm as fz,jn as pz,jo as q3,jp as pn,fR as G3,dO as yc,ba as mz,jq as gz,ar as yp,aK as _z,jr as bz,gq as Y3,b6 as xc,js as xp,aq as oa,e1 as J3,jt as yz,ag as xz,ju as K3,jv as wz,jw as vz,jx as kz,jy as Sz,jz as Cz,jA as Nz,dp as Bo,jB as wc,jC as Bs,o as Uo,n as st,fw as Qn,jD as In,jE as ut,jF as Us,jG as Vt,fN as Gt,jH as wp,dS as go,jI as jz,jJ as Ez,b4 as X3,b5 as Z3,jK as Q3,jL as Iz,gt as Vs,jM as vc,b1 as kc,gs as Pr,jN as e4,jO as ra,ei as vp,jP as Az,jQ as Tz,jR as Mz,jS as Oz,jT as t4,jU as Dz,jV as n4,jW as o4,jX as Rz,jY as r4,jZ as s4,ej as Sc,j_ as Pz,bq as Lz,j$ as Fz,fv as Wn,k0 as zz,k1 as Bz,k2 as Hs,k3 as Cc,k4 as $s,fG as Vo,k5 as kp,k6 as sa,k7 as ia,k8 as aa,k9 as Uz,fl as Nc,ka as Sp,kb as i4,kc as jc,eP as Vz,fm as Hz,r as $z,kd as Wz,ke as qz,kf as a4,t as D,kg as Gz,kh as Yz,ki as Cp,fZ as la,kj as l4,fz as Jz,fq as c4,kk as d4,kl as Kz,km as Xz,kn as Zz,ko as Qz,kp as eB,kq as tB,kr as nB,ks as oB,kt as rB,ku as sB,kv as iB,kw as aB,kx as lB,ky as cB,kz as dB,kA as uB,kB as hB,kC as fB,kD as pB,kE as mB,kF as ca,kG as gB,kH as _B,kI as bB,kJ as yB,kK as xB,kL as wB,kM as u4,kN as vB,kO as kB,kP as SB,kQ as h4,kR as CB,kS as NB,kT as f4,kU as jB,kV as Ws,kW as qn,kX as EB,kY as IB,kZ as AB,k_ as TB,k$ as MB,l0 as OB,l1 as DB,l2 as RB,l3 as PB,l4 as LB,l5 as hr,l6 as FB,l7 as zB,l8 as BB,l9 as UB,ep as VB,la as HB,lb as p4,et as $B,lc as Ec,ld as WB,le as qB,lf as GB,lg as YB,X as Lr,lh as Ic,es as JB,li as Np,lj as Ac,lk as da,ll as ua,lm as Tc,ln as fr,lo as m4,lp as Ho,lq as qs,lr as jp,ls as ha,lt as Gs,lu as Ep,lv as Ip,lw as g4,lx as Mc,ly as KB,S as fa,lz as pa,lA as XB,eO as Oc,lB as ZB,lC as Ap,lD as QB,lE as eU,lF as Dc,lG as tU,lH as nU,lI as _4,lJ as Tp,gr as Ys,lK as oU,lL as rU,lM as sU,lN as iU,fE as aU,bd as lU,gu as jt,lO as ma,lP as Js,lQ as cU,lR as dU,lS as Mp,lT as uU,cn as Op,lU as hU,b3 as b4,lV as fU,lW as pU,lX as Rc,lY as y4,eI as Dp,bf as x4,$ as Rp,lZ as w4,l_ as mU,l$ as gU,m0 as Pp,m1 as Lp,m2 as _U,m3 as v4,m4 as k4,m5 as ga,fp as bU,ab as S4,fs as yU,e3 as xU,m6 as C4,m7 as wU,m8 as vU,m9 as N4,ma as kU,mb as SU,mc as j4,md as E4,me as CU,bh as I4,mf as NU,mg as Fp,e9 as jU,mh as $o,dK as A4,mi as T4,ed as M4,ff as zp,mj as Bp,mk as O4,bv as Up,dL as Pc,ml as D4,mm as EU,mn as IU,mo as AU,bc as Lc,mp as R4,f8 as Vp,g5 as TU,g7 as MU,ge as Hp,gh as OU,mq as DU,mr as $p,ms as RU,mt as PU,mu as LU,mv as FU,mw as zU,mx as BU,my as UU,mz as VU,a9 as HU,mA as Fc,aa as $U,mB as P4,mC as WU,f4 as qU,mD as L4,a$ as eo,fj as GU,dC as YU,mE as JU,mF as F4,mG as KU,eN as XU,mH as ZU,mI as QU,e4 as eV,mJ as tV,mK as nV,a2 as zc,mL as oV,a3 as pr,dF as z4,mM as Wp,mN as rV,em as B4,mO as sV,mP as U4,mQ as iV,mR as aV,mS as lV,mT as cV,mU as dV,mV as uV,mW as V4,g0 as qp,f_ as Gp,fV as Ks,f$ as Fr,mX as H4,g1 as Yp,fW as zr,dW as hV,mY as Jp,mZ as fV,a1 as pV,m_ as mV,fF as $4,E as Xs,m$ as gV,n0 as _V,n1 as bV,n2 as yV,n3 as _a,n4 as xV,n5 as wV,n6 as vV,n7 as kV,n8 as SV,n9 as W4,na as CV,fu as NV,nb as jV,nc as EV,nd as IV,ne as AV,gg as TV,nf as MV,ng as q4,nh as OV,ni as DV,nj as G4,nk as Y4,nl as J4,f2 as K4,nm as RV,nn as PV,no as X4,np as Z4,nq as Bc,nr as Q4,ns as LV,nt as eS,nu as FV,nv as zV,nw as tS,nx as BV,ny as UV,nz as VV,C as nS,nA as HV,nB as $V,nC as WV,nD as mr,nE as oS,dU as qV,fX as GV,nF as rS,fY as sS,nG as YV,nH as Zs,nI as JV,nJ as Uc,nK as KV,nL as XV,y as iS,nM as ZV,di as QV,nN as eH,nO as tH,nP as nH,nQ as oH,nR as rH,eV as sH,b0 as iH,aZ as aH,at as Vc,nS as aS,nT as lS,av as cS,au as lH,e8 as cH,__tla as dH}from"./index-QIUy3-fx.js";import{G as uH,L as dS,g as hH,b as ba,A as fH,s as pH,k as mH,B as uS,a as gH,M as _H,Y as bH,c as xn,u as ya,C as yH,S as xH,K as wH,d as vH,i as kH,e as hS,f as SH,h as CH,j as NH,l as xa,P as Kp,m as fS,n as jH,o as EH,p as Xp,T as IH}from"./tree-Bqit9JR1.js";import{d as pS,e as mS,L as gS,f as Qs,I as Zp,g as AH,h as _S,N as bS,V as yS,S as xS,F as wS,i as vS,M as TH,l as kS,j as MH,E as SS,k as OH,m as Qp,n as DH,o as RH,p as PH,q as LH,s as FH,t as zH,v as BH,w as UH,x as VH,a as HH,C as $H,R as CS,b as WH,A as qH,y as GH,z as YH,O as JH,T as KH,B as XH,D as ZH,c as QH,P as e$,__tla as t$}from"./panels-BLAlULf5.js";import{c as n$}from"./_createAggregator-BR5-gteD.js";import{s as to,i as gr,T as em,a as tm}from"./transform-Cyp0GDF-.js";import{g as NS}from"./timer-DFzT7np-.js";import{i as o$}from"./zoom-COrs4lFh.js";import{s as wa}from"./sortBy-YG51qdCy.js";let nm,Hc,An,$c,jS,va,om,r$=Promise.all([(()=>{try{return dH}catch{}})(),(()=>{try{return t$}catch{}})()]).then(async()=>{var ec,m3;var Ft=n$(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]});let Et,mn,rm,Wc,ei,ti,sm,im,am,lm,ka,qc,cm,Sa,dm,Gc,um,hm,Yc,fm,pm,mm,Ca,gm,Jc,_m,bm,ym,xm,wm,vm,Kc,km,Xc,Sm,Cm,Nm,jm,Em,Na,Im,Am,Zc,Tm,Mm,Om,Qc,Dm,Rm,Pm,ja,ed,td,Lm,Fm,zm,Bm,Um,Vm,Hm,$m,Wm,nd,od,qm,Gm,Ym,Ea,_r,br;Et=Fe("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]),mn=Fe("arrow-right-from-line",[["path",{d:"M3 5v14",key:"1nt18q"}],["path",{d:"M21 12H7",key:"13ipq5"}],["path",{d:"m15 18 6-6-6-6",key:"6tx3qv"}]]),rm=Fe("arrow-right-to-line",[["path",{d:"M17 12H3",key:"8awo09"}],["path",{d:"m11 18 6-6-6-6",key:"8c2y43"}],["path",{d:"M21 5v14",key:"nzette"}]]),Wc=Fe("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]),ei=Fe("ban",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]]),ti=Fe("between-horizontal-start",[["rect",{width:"13",height:"7",x:"8",y:"3",rx:"1",key:"pkso9a"}],["path",{d:"m2 9 3 3-3 3",key:"1agib5"}],["rect",{width:"13",height:"7",x:"8",y:"14",rx:"1",key:"1q5fc1"}]]),sm=Fe("chevrons-down",[["path",{d:"m7 6 5 5 5-5",key:"1lc07p"}],["path",{d:"m7 13 5 5 5-5",key:"1d48rs"}]]),im=Fe("chevrons-up",[["path",{d:"m17 11-5-5-5 5",key:"e8nh98"}],["path",{d:"m17 18-5-5-5 5",key:"2avn1x"}]]),$c=Fe("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),am=Fe("circle-chevron-down",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 10-4 4-4-4",key:"894hmk"}]]),lm=Fe("circle-chevron-right",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m10 8 4 4-4 4",key:"1wy4r4"}]]),ka=Fe("circle-plus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]]),qc=Fe("clipboard-copy",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2",key:"4jdomd"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v4",key:"3hqy98"}],["path",{d:"M21 14H11",key:"1bme5i"}],["path",{d:"m15 10-4 4 4 4",key:"5dvupr"}]]),cm=Fe("clipboard-paste",[["path",{d:"M11 14h10",key:"1w8e9d"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v1.344",key:"1e62lh"}],["path",{d:"m17 18 4-4-4-4",key:"z2g111"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 1.793-1.113",key:"bjbb7m"}],["rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",key:"ublpy"}]]),Sa=Fe("cloud-download",[["path",{d:"M12 13v8l-4-4",key:"1f5nwf"}],["path",{d:"m12 21 4-4",key:"1lfcce"}],["path",{d:"M4.393 15.269A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.436 8.284",key:"ui1hmy"}]]),dm=Fe("code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]),Gc=Fe("command",[["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",key:"11bfej"}]]),um=Fe("copy-minus",[["line",{x1:"12",x2:"18",y1:"15",y2:"15",key:"1nscbv"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),hm=Fe("diamond-plus",[["path",{d:"M12 8v8",key:"napkw2"}],["path",{d:"M2.7 10.3a2.41 2.41 0 0 0 0 3.41l7.59 7.59a2.41 2.41 0 0 0 3.41 0l7.59-7.59a2.41 2.41 0 0 0 0-3.41L13.7 2.71a2.41 2.41 0 0 0-3.41 0z",key:"1ey20j"}],["path",{d:"M8 12h8",key:"1wcyev"}]]),Yc=Fe("ellipsis-vertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]),fm=Fe("eraser",[["path",{d:"m7 21-4.3-4.3c-1-1-1-2.5 0-3.4l9.6-9.6c1-1 2.5-1 3.4 0l5.6 5.6c1 1 1 2.5 0 3.4L13 21",key:"182aya"}],["path",{d:"M22 21H7",key:"t4ddhn"}],["path",{d:"m5 11 9 9",key:"1mo9qw"}]]),pm=Fe("fast-forward",[["polygon",{points:"13 19 22 12 13 5 13 19",key:"587y9g"}],["polygon",{points:"2 19 11 12 2 5 2 19",key:"3pweh0"}]]),mm=Fe("file-pen",[["path",{d:"M12.5 22H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v9.5",key:"1couwa"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M13.378 15.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"1y4qbx"}]]),Ca=Fe("file-plus-2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M3 15h6",key:"4e2qda"}],["path",{d:"M6 12v6",key:"1u72j0"}]]),gm=Fe("files",[["path",{d:"M20 7h-3a2 2 0 0 1-2-2V2",key:"x099mo"}],["path",{d:"M9 18a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h7l4 4v10a2 2 0 0 1-2 2Z",key:"18t6ie"}],["path",{d:"M3 7.6v12.8A1.6 1.6 0 0 0 4.6 22h9.8",key:"1nja0z"}]]),Jc=Fe("folder-plus",[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["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",key:"1kt360"}]]),_m=Fe("folder-tree",[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]]),bm=Fe("grip-vertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]),ym=Fe("hard-drive-download",[["path",{d:"M12 2v8",key:"1q4o3n"}],["path",{d:"m16 6-4 4-4-4",key:"6wukr"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",key:"w68u3i"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"M10 18h.01",key:"h775k"}]]),xm=Fe("history",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]),wm=Fe("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]),vm=Fe("key-round",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]),Kc=Fe("key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]),km=Fe("keyboard",[["path",{d:"M10 8h.01",key:"1r9ogq"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M14 8h.01",key:"1primd"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"M18 8h.01",key:"emo2bl"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M7 16h10",key:"wp8him"}],["path",{d:"M8 12h.01",key:"czm47f"}],["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}]]),Xc=Fe("layout-template",[["rect",{width:"18",height:"7",x:"3",y:"3",rx:"1",key:"f1a2em"}],["rect",{width:"9",height:"7",x:"3",y:"14",rx:"1",key:"jqznyg"}],["rect",{width:"5",height:"7",x:"16",y:"14",rx:"1",key:"q5h2i8"}]]),Sm=Fe("list",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]]),Cm=Fe("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]),Nm=Fe("memory-stick",[["path",{d:"M6 19v-3",key:"1nvgqn"}],["path",{d:"M10 19v-3",key:"iu8nkm"}],["path",{d:"M14 19v-3",key:"kcehxu"}],["path",{d:"M18 19v-3",key:"1vh91z"}],["path",{d:"M8 11V9",key:"63erz4"}],["path",{d:"M16 11V9",key:"fru6f3"}],["path",{d:"M12 11V9",key:"ha00sb"}],["path",{d:"M2 15h20",key:"16ne18"}],["path",{d:"M2 7a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v1.1a2 2 0 0 0 0 3.837V17a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-5.1a2 2 0 0 0 0-3.837Z",key:"lhddv3"}]]),jm=Fe("message-circle-question",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),Em=Fe("microchip",[["path",{d:"M18 12h2",key:"quuxs7"}],["path",{d:"M18 16h2",key:"zsn3lv"}],["path",{d:"M18 20h2",key:"9x5y9y"}],["path",{d:"M18 4h2",key:"1luxfb"}],["path",{d:"M18 8h2",key:"nxqzg"}],["path",{d:"M4 12h2",key:"1ltxp0"}],["path",{d:"M4 16h2",key:"8a5zha"}],["path",{d:"M4 20h2",key:"27dk57"}],["path",{d:"M4 4h2",key:"10groj"}],["path",{d:"M4 8h2",key:"18vq6w"}],["path",{d:"M8 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2h-1.5c-.276 0-.494.227-.562.495a2 2 0 0 1-3.876 0C9.994 2.227 9.776 2 9.5 2z",key:"1681fp"}]]),Na=Fe("network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]),Im=Fe("octagon-alert",[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["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",key:"1fd625"}]]),Am=Fe("package-check",[["path",{d:"m16 16 2 2 4-4",key:"gfu2re"}],["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]]),Zc=Fe("package-x",[["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}],["path",{d:"m17 13 5 5m-5 0 5-5",key:"im3w4b"}]]),Tm=Fe("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]),Mm=Fe("party-popper",[["path",{d:"M5.8 11.3 2 22l10.7-3.79",key:"gwxi1d"}],["path",{d:"M4 3h.01",key:"1vcuye"}],["path",{d:"M22 8h.01",key:"1mrtc2"}],["path",{d:"M15 2h.01",key:"1cjtqr"}],["path",{d:"M22 20h.01",key:"1mrys2"}],["path",{d:"m22 2-2.24.75a2.9 2.9 0 0 0-1.96 3.12c.1.86-.57 1.63-1.45 1.63h-.38c-.86 0-1.6.6-1.76 1.44L14 10",key:"hbicv8"}],["path",{d:"m22 13-.82-.33c-.86-.34-1.82.2-1.98 1.11c-.11.7-.72 1.22-1.43 1.22H17",key:"1i94pl"}],["path",{d:"m11 2 .33.82c.34.86-.2 1.82-1.11 1.98C9.52 4.9 9 5.52 9 6.23V7",key:"1cofks"}],["path",{d:"M11 13c1.93 1.93 2.83 4.17 2 5-.83.83-3.07-.07-5-2-1.93-1.93-2.83-4.17-2-5 .83-.83 3.07.07 5 2Z",key:"4kbmks"}]]),Om=Fe("pen-line",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]]),Qc=Fe("presentation",[["path",{d:"M2 3h20",key:"91anmk"}],["path",{d:"M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3",key:"2k9sn8"}],["path",{d:"m7 21 5-5 5 5",key:"bip4we"}]]),Dm=Fe("regex",[["path",{d:"M17 3v10",key:"15fgeh"}],["path",{d:"m12.67 5.5 8.66 5",key:"1gpheq"}],["path",{d:"m12.67 10.5 8.66-5",key:"1dkfa6"}],["path",{d:"M9 17a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v2a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2v-2z",key:"swwfx4"}]]),Rm=Fe("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]),Pm=Fe("rows-3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M21 9H3",key:"1338ky"}],["path",{d:"M21 15H3",key:"9uk58r"}]]),ja=Fe("save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]),ed=Fe("scissors",[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]]),td=Fe("scroll-text",[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]]),Lm=Fe("share-2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]),Fm=Fe("square-code",[["path",{d:"M10 9.5 8 12l2 2.5",key:"3mjy60"}],["path",{d:"m14 9.5 2 2.5-2 2.5",key:"1bir2l"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]),zm=Fe("square-dashed-bottom-code",[["path",{d:"M10 9.5 8 12l2 2.5",key:"3mjy60"}],["path",{d:"M14 21h1",key:"v9vybs"}],["path",{d:"m14 9.5 2 2.5-2 2.5",key:"1bir2l"}],["path",{d:"M5 21a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2",key:"as5y1o"}],["path",{d:"M9 21h1",key:"15o7lz"}]]),Bm=Fe("square-equal",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 10h10",key:"1101jm"}],["path",{d:"M7 14h10",key:"1mhdw3"}]]),Um=Fe("square-m",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M8 16V8l4 4 4-4v8",key:"141u4e"}]]),Vm=Fe("square-play",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"m9 8 6 4-6 4Z",key:"f1r3lt"}]]),Hm=Fe("square-power",[["path",{d:"M12 7v4",key:"xawao1"}],["path",{d:"M7.998 9.003a5 5 0 1 0 8-.005",key:"1pek45"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}]]),$m=Fe("square-terminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]]),Wm=Fe("text-cursor-input",[["path",{d:"M12 20h-1a2 2 0 0 1-2-2 2 2 0 0 1-2 2H6",key:"1528k5"}],["path",{d:"M13 8h7a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-7",key:"13ksps"}],["path",{d:"M5 16H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h1",key:"1n9rhb"}],["path",{d:"M6 4h1a2 2 0 0 1 2 2 2 2 0 0 1 2-2h1",key:"1mj8rg"}],["path",{d:"M9 6v12",key:"velyjx"}]]),nd=Fe("text-search",[["path",{d:"M21 6H3",key:"1jwq7v"}],["path",{d:"M10 12H3",key:"1ulcyk"}],["path",{d:"M10 18H3",key:"13769t"}],["circle",{cx:"17",cy:"15",r:"3",key:"1upz2a"}],["path",{d:"m21 19-1.9-1.9",key:"dwi7p8"}]]),od=Fe("undo-2",[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]]),qm=Fe("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]),Gm=Fe("view",[["path",{d:"M21 17v2a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-2",key:"mrq65r"}],["path",{d:"M21 7V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v2",key:"be3xqs"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["path",{d:"M18.944 12.33a1 1 0 0 0 0-.66 7.5 7.5 0 0 0-13.888 0 1 1 0 0 0 0 .66 7.5 7.5 0 0 0 13.888 0",key:"11ak4c"}]]),Ym=Fe("whole-word",[["circle",{cx:"7",cy:"12",r:"3",key:"12clwm"}],["path",{d:"M10 9v6",key:"17i7lo"}],["circle",{cx:"17",cy:"12",r:"3",key:"gl7c2s"}],["path",{d:"M14 7v8",key:"dl84cr"}],["path",{d:"M22 17v1c0 .5-.5 1-1 1H3c-.5 0-1-.5-1-1v-1",key:"lt2kga"}]]),Ea=Fe("workflow",[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]]),_r=Fe("zap-off",[["path",{d:"M10.513 4.856 13.12 2.17a.5.5 0 0 1 .86.46l-1.377 4.317",key:"193nxd"}],["path",{d:"M15.656 10H20a1 1 0 0 1 .78 1.63l-1.72 1.773",key:"27a7lr"}],["path",{d:"M16.273 16.273 10.88 21.83a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14H4a1 1 0 0 1-.78-1.63l4.507-4.643",key:"1e0qe9"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]),br=Fe("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);const ES=A.createContext({}),IS=A.forwardRef(function(t,e){[t,e]=jF(t,e,ES);let{toolbarProps:n}=function(s,i){const{"aria-label":a,"aria-labelledby":l,orientation:c="horizontal"}=s;let[d,u]=A.useState(!1);SF(()=>{var m;u(!(!i.current||!(!((m=i.current.parentElement)===null||m===void 0)&&m.closest('[role="toolbar"]'))))});const{direction:f}=CF(),p=f==="rtl"&&c==="horizontal";let _=NF(i);const g=A.useRef(null);return{toolbarProps:{...y3(s,{labelable:!0}),role:d?"group":"toolbar","aria-orientation":c,"aria-label":a,"aria-labelledby":a==null?l:void 0,onKeyDownCapture:d?void 0:m=>{if(m.currentTarget.contains(m.target)){if(c==="horizontal"&&m.key==="ArrowRight"||c==="vertical"&&m.key==="ArrowDown")p?_.focusPrevious():_.focusNext();else{if(!(c==="horizontal"&&m.key==="ArrowLeft"||c==="vertical"&&m.key==="ArrowUp"))return m.key==="Tab"?(m.stopPropagation(),g.current=document.activeElement,void(m.shiftKey?_.focusFirst():_.focusLast())):void 0;p?_.focusNext():_.focusPrevious()}m.stopPropagation(),m.preventDefault()}},onFocusCapture:d?void 0:m=>{var b,x;g.current&&!m.currentTarget.contains(m.relatedTarget)&&(!((b=i.current)===null||b===void 0)&&b.contains(m.target))&&((x=g.current)===null||x===void 0||x.focus(),g.current=null)},onBlurCapture:d?void 0:m=>{m.currentTarget.contains(m.relatedTarget)||g.current||(g.current=m.target)}}}}(t,e),o=EF({...t,values:{orientation:t.orientation||"horizontal"},defaultClassName:"react-aria-Toolbar"}),r=y3(t);return delete r.id,K.createElement("div",{...IF(n,r),...o,ref:e,slot:t.slot||void 0,"data-orientation":t.orientation||"horizontal"},o.children)});function Ia(t,e){const n=+Mr(t)-+Mr(e);return n<0?-1:n>0?1:n}function AS(t,e){const n=Mr(t,e==null?void 0:e.in);return+function(o,r){const s=Mr(o,r==null?void 0:r.in);return s.setHours(23,59,59,999),s}(n,e)==+function(o,r){const s=Mr(o,r==null?void 0:r.in),i=s.getMonth();return s.setFullYear(s.getFullYear(),i+1,0),s.setHours(23,59,59,999),s}(n,e)}function TS(t,e,n){const[o,r,s]=Kf(n==null?void 0:n.in,t,t,e),i=Ia(r,s),a=Math.abs(function(d,u,f){const[p,_]=Kf(f==null?void 0:f.in,d,u);return 12*(p.getFullYear()-_.getFullYear())+(p.getMonth()-_.getMonth())}(r,s));if(a<1)return 0;r.getMonth()===1&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-i*a);let l=Ia(r,s)===-i;AS(o)&&a===1&&Ia(o,s)===1&&(l=!1);const c=i*(a-+l);return c===0?0:c}function MS(t,e,n){const o=function(r,s){return+Mr(r)-+Mr(s)}(t,e)/1e3;return(r=>{const s=(0,Math.trunc)(r);return s===0?0:s})(o)}function OS(t,e){return function(n,o,r){const s=TF(),i=(r==null?void 0:r.locale)??s.locale??MF,a=Ia(n,o);if(isNaN(a))throw new RangeError("Invalid time value");const l=Object.assign({},r,{addSuffix:r==null?void 0:r.addSuffix,comparison:a}),[c,d]=Kf(r==null?void 0:r.in,...a>0?[o,n]:[n,o]),u=MS(d,c),f=(x3(d)-x3(c))/1e3,p=Math.round((u-f)/60);let _;if(p<2)return p===0?i.formatDistance("lessThanXMinutes",1,l):i.formatDistance("xMinutes",p,l);if(p<45)return i.formatDistance("xMinutes",p,l);if(p<90)return i.formatDistance("aboutXHours",1,l);if(p<w3){const g=Math.round(p/60);return i.formatDistance("aboutXHours",g,l)}if(p<2520)return i.formatDistance("xDays",1,l);if(p<oc){const g=Math.round(p/w3);return i.formatDistance("xDays",g,l)}if(p<2*oc)return _=Math.round(p/oc),i.formatDistance("aboutXMonths",_,l);if(_=TS(d,c),_<12){const g=Math.round(p/oc);return i.formatDistance("xMonths",g,l)}{const g=_%12,m=Math.trunc(_/12);return g<3?i.formatDistance("aboutXYears",m,l):g<9?i.formatDistance("overXYears",m,l):i.formatDistance("almostXYears",m+1,l)}}(t,function(n){return AF(n,Date.now())}(t),e)}const DS=()=>{const t=X.c(7),{selectedLayout:e}=pS(),{setLayoutView:n}=mS();if(Un()&&!Xf("wasm_layouts"))return null;let o,r,s,i;return t[0]!==n?(o=a=>n(a),t[0]=n,t[1]=o):o=t[1],t[2]===Symbol.for("react.memo_cache_sentinel")?(r=h.jsx(np,{className:"min-w-[110px] border-border bg-background","data-testid":"layout-select",children:h.jsx(op,{placeholder:"Select a view"})}),t[2]=r):r=t[2],t[3]===Symbol.for("react.memo_cache_sentinel")?(s=h.jsx(Zf,{children:h.jsxs(v3,{children:[h.jsx(OF,{children:"View as"}),gS.map(PS)]})}),t[3]=s):s=t[3],t[4]!==e||t[5]!==o?(i=h.jsxs(rp,{"data-testid":"layout-select",value:e,onValueChange:o,children:[r,s]}),t[4]=e,t[5]=o,t[6]=i):i=t[6],i};function RS(t){const e=Jm(t);return h.jsx(e,{className:"h-4 w-4"})}function Jm(t){switch(t){case"vertical":return Sm;case"grid":return uH;case"slides":return Qc;default:return rc(t),tp}}function Km(t){return ep(t)}function PS(t){return h.jsx(Qf,{value:t,children:h.jsxs("div",{className:"flex items-center gap-1.5 leading-5",children:[RS(t),h.jsx("span",{children:Km(t)})]})},t)}function LS(){const t=X.c(7);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=[],t[0]=e):e=t[0];const[n,o]=function(i,a){const l=X.c(11);let c;l[0]!==a?(c=new DF(a),l[0]=a,l[1]=c):c=l[1];const d=c;let u;l[2]!==i||l[3]!==d?(u=()=>d.get(i),l[2]=i,l[3]=d,l[4]=u):u=l[4];const[f,p]=A.useState(u);let _;l[5]!==i||l[6]!==d?(_=b=>{p(b),d.set(i,b)},l[5]=i,l[6]=d,l[7]=_):_=l[7];const g=_;let m;return l[8]!==g||l[9]!==f?(m=[f,g],l[8]=g,l[9]=f,l[10]=m):m=l[10],m}("marimo:commands",e);let r,s;return t[1]!==n||t[2]!==o?(r=i=>{const a=(l=[i,...n],[...new Set(l)]);var l;o(a.slice(0,3))},t[1]=n,t[2]=o,t[3]=r):r=t[3],t[4]!==n||t[5]!==r?(s={recentCommands:n,addRecentCommand:r},t[4]=n,t[5]=r,t[6]=s):s=t[6],s}function Xm(t){return t.dropdown!==void 0}function Aa(t,e=""){return t.flatMap(n=>n.label?Xm(n)?Aa(n.dropdown,`${e+n.label} > `):{...n,label:e+n.label}:[])}const ni=t=>{const e=X.c(8),{children:n,layerTop:o}=t,r=o!==void 0&&o;let s;e[0]!==n?(s=K.Children.toArray(n),e[0]=n,e[1]=s):s=e[1];const[i,a]=s,l=`second-icon absolute ${r?"top-[-2px] left-[-2px]":"bottom-[-2px] right-[-2px]"} rounded-full`;let c,d;return e[2]!==a||e[3]!==l?(c=h.jsx("div",{className:l,children:a}),e[2]=a,e[3]=l,e[4]=c):c=e[4],e[5]!==i||e[6]!==c?(d=h.jsxs("div",{className:"multi-icon relative w-fit",children:[i,c]}),e[5]=i,e[6]=c,e[7]=d):d=e[7],d};function rd(t){const e=X.c(3),n=sd();let o;return e[0]!==t||e[1]!==n?(o=()=>{t!==void 0&&n([t])},e[0]=t,e[1]=n,e[2]=o):o=e[2],et(o)}function Zm(){const t=X.c(2),e=sd();let n;return t[0]!==e?(n=()=>e(C3(fo())),t[0]=e,t[1]=n):n=t[1],et(n)}function sd(){const t=X.c(2),{prepareForRun:e}=Lt();let n;return t[0]!==e?(n=async o=>{var a;if(o.length===0)return;const{cellHandles:r,cellData:s}=fo(),i=[];for(const l of o){const c=r[l],d=(a=c.current)==null?void 0:a.editorView;let u;d?(N3(d)!=="markdown"&&sp(d),u=j3(d)):u=s[l].code,i.push(u),e({cellId:l})}await PF({cellIds:o,codes:i}).catch(FS)},t[0]=e,t[1]=n):n=t[1],et(n)}function FS(t){Zt.error(t)}const Ta=Qt(null),zS=Qt(!1),id=E3("marimo:ai:chatState:v2",{chats:[],activeChatId:null}),BS=Qt(t=>{const e=t(id);return e.chats.find(n=>n.id===e.activeChatId)},(t,e,n)=>{e(id,o=>({...o,activeChatId:n}))}),ad=t=>{const e=X.c(7);let n,o;e[0]!==t?(n=a=>{var l;(a.ctrlKey||a.metaKey)&&a.key==="z"&&(a.preventDefault(),a.stopPropagation(),(l=t.onClick)==null||l.call(t,a))},e[0]=t,e[1]=n):n=e[1],e[2]===Symbol.for("react.memo_cache_sentinel")?(o={capture:!0},e[2]=o):o=e[2],ip(window,"keydown",n,o);const r=t.children??"Undo";let s,i;return e[3]===Symbol.for("react.memo_cache_sentinel")?(s=h.jsx(LF,{className:"ml-2",shortcut:"cmd-z"}),e[3]=s):s=e[3],e[4]!==r||e[5]!==t?(i=h.jsxs(Pe,{"data-testid":"undo-button",size:"sm",variant:"outline",...t,children:[r," ",s]}),e[4]=r,e[5]=t,e[6]=i):i=e[6],i};function ld(){const t=X.c(3),{deleteCell:e,undoDeleteCell:n}=Lt();let o;return t[0]!==e||t[1]!==n?(o=r=>{var l;if(dt.get(I3))return;const{cellId:s}=r,i=dt.get(sc),a=(((l=i.cellData[s])==null?void 0:l.code)??"").trim()==="";if(e({cellId:s}),FF({cellId:s}).catch(()=>{n()}),!a){const{dismiss:c}=lt({title:"Cell deleted",description:"You can bring it back by clicking undo or through the command palette.",action:h.jsx(ad,{"data-testid":"undo-delete-button",onClick:()=>{n(),d()}})}),d=c}},t[0]=e,t[1]=n,t[2]=o):o=t[2],et(o)}function Qm(){const t=X.c(3),{splitCell:e,undoSplitCell:n}=Lt();let o;return t[0]!==e||t[1]!==n?(o=r=>{const s=ic(r.cellId);if(!s)return;const i=j3(s);e(r);const{dismiss:a}=lt({title:"Cell split",action:h.jsx(ad,{"data-testid":"undo-split-button",size:"sm",variant:"outline",onClick:()=>{n({...r,snapshot:i}),l()},children:"Undo"})}),l=a},t[0]=e,t[1]=n,t[2]=o):o=t[2],et(o)}function cd(t){const e=X.c(49),{cell:n}=t,{createNewCell:o,updateCellConfig:r,updateCellName:s,moveCell:i,sendToTop:a,sendToBottom:l,addColumnBreakpoint:c,clearCellOutput:d}=Lt(),u=Qm(),f=rd(n==null?void 0:n.cellId),p=!We(I3),_=ld(),{openModal:g}=Vn(),m=en(Ta),b=We(ac),x=We(Ts),y=We(Ms),v=We(zF);if(!n||y){let N;return e[0]===Symbol.for("react.memo_cache_sentinel")?(N=[],e[0]=N):N=e[0],N}const{cellId:S,config:k,getEditorView:I,name:j,hasOutput:E,hasConsoleOutput:T,status:M}=n;let L;e[1]!==S||e[2]!==k.disabled||e[3]!==r?(L=async()=>{const N={disabled:!k.disabled};await Dr({configs:{[S]:N}}),r({cellId:S,config:N})},e[1]=S,e[2]=k.disabled,e[3]=r,e[4]=L):L=e[4];const B=L;let O;e[5]!==S||e[6]!==k.hide_code||e[7]!==I||e[8]!==r?(O=async()=>{const N={hide_code:!k.hide_code};await Dr({configs:{[S]:N}}),r({cellId:S,config:N});const $=I();$&&(N.hide_code?$.contentDOM.blur():$.focus())},e[5]=S,e[6]=k.hide_code,e[7]=I,e[8]=r,e[9]=O):O=e[9];const z=O;let F,V,P,C,H;return e[10]===Symbol.for("react.memo_cache_sentinel")?(F=h.jsx(Wm,{size:13,strokeWidth:1.5}),e[10]=F):F=e[10],e[11]!==S||e[12]!==j||e[13]!==g||e[14]!==s?(V=()=>{g(h.jsxs(cr,{children:[h.jsx(Os,{children:h.jsx(dr,{children:"Rename cell"})}),h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx(Rr,{htmlFor:"cell-name",children:"Cell name"}),h.jsx(bS,{placeholder:"cell name",value:j,onKeyDown:N=>{N.key==="Enter"&&(N.preventDefault(),N.stopPropagation(),g(null))},onChange:N=>s({cellId:S,name:N})})]})]}))},e[11]=S,e[12]=j,e[13]=g,e[14]=s,e[15]=V):V=e[15],e[16]!==S||e[17]!==s?(P=N=>s({cellId:S,name:N}),e[16]=S,e[17]=s,e[18]=P):P=e[18],e[19]!==j||e[20]!==P?(C=h.jsx(bS,{placeholder:"cell name",value:j,onChange:P}),e[19]=j,e[20]=P,e[21]=C):C=e[21],e[22]!==c||e[23]!==b||e[24]!==v||e[25]!==x||e[26]!==p||e[27]!==S||e[28]!==d||e[29]!==k.disabled||e[30]!==k.hide_code||e[31]!==o||e[32]!==_||e[33]!==I||e[34]!==T||e[35]!==E||e[36]!==i||e[37]!==j||e[38]!==f||e[39]!==l||e[40]!==a||e[41]!==m||e[42]!==u||e[43]!==M||e[44]!==V||e[45]!==C||e[46]!==B||e[47]!==z?(H=[[{icon:F,label:"Name",disableClick:!0,handle:$S,handleHeadless:V,rightElement:C},{icon:h.jsx(Qs,{size:13,strokeWidth:1.5}),label:"Run cell",hotkey:"cell.run",hidden:M==="running"||M==="queued"||M==="disabled-transitively"||k.disabled,handle:()=>f()},{icon:h.jsx(Xi,{size:13,strokeWidth:1.5}),label:"AI completion",hidden:!b,handle:()=>{m(N=>(N==null?void 0:N.cellId)===S?null:{cellId:S})},hotkey:"cell.aiCompletion"},{icon:h.jsx(ed,{size:13,strokeWidth:1.5}),label:"Split cell",hotkey:"cell.splitCell",handle:()=>u({cellId:S})},{icon:h.jsx(Zp,{size:13,strokeWidth:1.5}),label:"Export output as PNG",hidden:!E,handle:()=>function(N){const $=document.getElementById(k3.create(N));$&&($.classList.add("printing-output"),S3($,"result.png").finally(()=>{$.classList.remove("printing-output")}))}(S)},{icon:h.jsx(UF,{size:13,strokeWidth:1.5}),label:"Format cell",hotkey:"cell.format",handle:()=>{const N=I();N&&BF({[S]:N})}},{icon:k.hide_code?h.jsx(A3,{size:13,strokeWidth:1.5}):h.jsx(T3,{size:13,strokeWidth:1.5}),label:k.hide_code?"Show code":"Hide code",handle:z,hotkey:"cell.hideCode"},{icon:k.disabled?h.jsx(_r,{size:13,strokeWidth:1.5}):h.jsx(br,{size:13,strokeWidth:1.5}),label:"Reactive execution",rightElement:h.jsx(VF,{"data-testid":"cell-disable-switch",checked:!k.disabled,size:"sm",onCheckedChange:B}),handle:B},{icon:h.jsx(ap,{size:13,strokeWidth:1.5}),label:"Clear output",hidden:!(E||T),handle:()=>{d({cellId:S})}}],[{icon:h.jsx(lc,{}),label:"Convert to Markdown",hotkey:"cell.viewAsMarkdown",handle:()=>{const N=I();N&&(ar(x,o),Or(N,"markdown",{keepCodeAsIs:!1}))}},{icon:h.jsx(lr,{size:13,strokeWidth:1.5}),label:"Convert to SQL",handle:()=>{const N=I();N&&(ar(x,o),Or(N,"sql",{keepCodeAsIs:!1}))}},{icon:h.jsx(cc,{}),label:"Toggle as Python",handle:()=>{const N=I();N&&(ar(x,o),HF(N,"python",{force:!0}))}}],[{icon:h.jsxs(ni,{children:[h.jsx(ka,{size:13,strokeWidth:1.5}),h.jsx(M3,{size:8,strokeWidth:2})]}),label:"Create cell above",hotkey:"cell.createAbove",handle:()=>o({cellId:S,before:!0})},{icon:h.jsxs(ni,{children:[h.jsx(ka,{size:13,strokeWidth:1.5}),h.jsx(Zi,{size:8,strokeWidth:2})]}),label:"Create cell below",hotkey:"cell.createBelow",handle:()=>o({cellId:S,before:!1})},{icon:h.jsx(M3,{size:13,strokeWidth:1.5}),label:"Move cell up",hotkey:"cell.moveUp",handle:()=>i({cellId:S,before:!0})},{icon:h.jsx(Zi,{size:13,strokeWidth:1.5}),label:"Move cell down",hotkey:"cell.moveDown",handle:()=>i({cellId:S,before:!1})},{icon:h.jsx(O3,{size:13,strokeWidth:1.5}),label:"Move cell left",hotkey:"cell.moveLeft",handle:()=>i({cellId:S,direction:"left"}),hidden:v!=="columns"},{icon:h.jsx(dc,{size:13,strokeWidth:1.5}),label:"Move cell right",hotkey:"cell.moveRight",handle:()=>i({cellId:S,direction:"right"}),hidden:v!=="columns"},{icon:h.jsx(im,{size:13,strokeWidth:1.5}),label:"Send to top",hotkey:"cell.sendToTop",handle:()=>a({cellId:S})},{icon:h.jsx(sm,{size:13,strokeWidth:1.5}),label:"Send to bottom",hotkey:"cell.sendToBottom",handle:()=>l({cellId:S})},{icon:h.jsx($F,{size:13,strokeWidth:1.5}),label:"Break into new column",hotkey:"cell.addColumnBreakpoint",hidden:v!=="columns",handle:()=>c({cellId:S})}],[{icon:h.jsx(dS,{size:13,strokeWidth:1.5}),label:"Copy link to cell",disabled:!_S(j),tooltip:_S(j)?void 0:"Only named cells can be linked to",handle:async()=>{await yn(AH(j)),lt({description:"Link copied to clipboard"})}}],[{label:"Delete",hidden:!p,variant:"danger",icon:h.jsx(lp,{size:13,strokeWidth:1.5}),handle:()=>{_({cellId:S})}}]].map(VS).filter(US),e[22]=c,e[23]=b,e[24]=v,e[25]=x,e[26]=p,e[27]=S,e[28]=d,e[29]=k.disabled,e[30]=k.hide_code,e[31]=o,e[32]=_,e[33]=I,e[34]=T,e[35]=E,e[36]=i,e[37]=j,e[38]=f,e[39]=l,e[40]=a,e[41]=m,e[42]=u,e[43]=M,e[44]=V,e[45]=C,e[46]=B,e[47]=z,e[48]=H):H=e[48],H}function US(t){return t.length>0}function VS(t){return t.filter(HS)}function HS(t){return!t.hidden}function $S(t){t==null||t.stopPropagation(),t==null||t.preventDefault()}function WS(t){return!t.hidden}const dd=Qt(!1),eg=()=>{const t=X.c(37),[e,n]=fn(dd),o=qF(),r=We(GF),s=We(cp);let i;t[0]!==r?(i={cell:r},t[0]=r,t[1]=i):i=t[1];let a=cd(i).flat();a=Aa(a);const l=function(){const P=X.c(45),{theme:C}=Fo(),[H,N]=Ds(),[$,Y]=D3();let Z;P[0]!==N?(Z=async ce=>{await Rs({config:ce}).then(()=>{N(ce)})},P[0]=N,P[1]=Z):Z=P[1];const q=Z;let re;P[2]!==Y?(re=async ce=>{await WF({config:ce}).then(()=>{Y(ce)})},P[2]=Y,P[3]=re):re=P[3];const ne=re;let oe;if(P[4]!==$||P[5]!==H||P[6]!==ne||P[7]!==q||P[8]!==C){let ce,pe,de;P[10]!==$?(ce=Ke=>Ke!==$.width,P[10]=$,P[11]=ce):ce=P[11],P[12]!==$||P[13]!==ne?(pe=Ke=>({label:`App config > Set width=${Ke}`,handle:()=>{ne({...$,width:Ke})}}),P[12]=$,P[13]=ne,P[14]=pe):pe=P[14],P[15]!==H||P[16]!==q||P[17]!==C?(de={label:"Config > Toggle dark mode",handle:()=>{q({...H,display:{...H.display,theme:C==="dark"?"light":"dark"}})}},P[15]=H,P[16]=q,P[17]=C,P[18]=de):de=P[18];const ge=H.keymap.preset==="vim";let ie,xe;P[19]!==H||P[20]!==q?(ie=()=>{q({...H,keymap:{...H.keymap,preset:"vim"}})},P[19]=H,P[20]=q,P[21]=ie):ie=P[21],P[22]!==ge||P[23]!==ie?(xe={label:"Config > Switch keymap to VIM",hidden:ge,handle:ie},P[22]=ge,P[23]=ie,P[24]=xe):xe=P[24];const we=H.keymap.preset==="default";let ae,Se,me;P[25]!==H||P[26]!==q?(ae=()=>{q({...H,keymap:{...H.keymap,preset:"default"}})},P[25]=H,P[26]=q,P[27]=ae):ae=P[27],P[28]!==ae||P[29]!==we?(Se={label:"Config > Switch keymap to default (current: VIM)",hidden:we,handle:ae},P[28]=ae,P[29]=we,P[30]=Se):Se=P[30],P[31]!==H||P[32]!==q?(me=()=>{q({...H,completion:{...H.completion,copilot:!1}})},P[31]=H,P[32]=q,P[33]=me):me=P[33];const Te=H.completion.copilot!=="github";let Re,$e;P[34]!==me||P[35]!==Te?(Re={label:"Config > Disable GitHub Copilot",handle:me,hidden:Te},P[34]=me,P[35]=Te,P[36]=Re):Re=P[36],P[37]!==H||P[38]!==q?($e=()=>{q({...H,completion:{...H.completion,copilot:"github"}})},P[37]=H,P[38]=q,P[39]=$e):$e=P[39];const ze=H.completion.copilot==="github";let Ne;P[40]!==$e||P[41]!==ze?(Ne={label:"Config > Enable GitHub Copilot",handle:$e,hidden:ze},P[40]=$e,P[41]=ze,P[42]=Ne):Ne=P[42],oe=[...hH().filter(ce).map(pe),de,xe,Se,Re,Ne],P[4]=$,P[5]=H,P[6]=ne,P[7]=q,P[8]=C,P[9]=oe}else oe=P[9];const G=oe;let Q;return P[43]!==G?(Q=G.filter(WS),P[43]=G,P[44]=Q):Q=P[44],Q}();let c=Ig();c=[...Aa(c),...Aa(l)];const d=c.filter(qS),u=uc.keyBy(d,GS),{recentCommands:f,addRecentCommand:p}=LS();let _;t[2]!==f?(_=new Set(f),t[2]=f,t[3]=_):_=t[3];const g=_;let m,b;t[4]!==s||t[5]!==n?(m=P=>{KF(s.getHotkey("global.commandPalette").key)(P)&&(P.preventDefault(),n(YS))},t[4]=s,t[5]=n,t[6]=m):m=t[6],ip(document,"keydown",m),t[7]!==p||t[8]!==s||t[9]!==o||t[10]!==n?(b=(P,C)=>{const H=o[P];if(!H)return null;const N=s.getHotkey(P);return h.jsxs(po,{disabled:C.disabled,onSelect:()=>{p(P),n(!1),requestAnimationFrame(()=>{H()})},value:N.name,children:[h.jsxs("span",{children:[N.name,C.tooltip&&h.jsx("span",{className:"ml-2",children:C.tooltip})]}),h.jsx(P3,{children:h.jsx(hp,{shortcut:N.key})})]},P)},t[7]=p,t[8]=s,t[9]=o,t[10]=n,t[11]=b):b=t[11];const x=b;let y;t[12]!==p||t[13]!==s||t[14]!==n?(y=(P,C,H,N)=>{const $=H===void 0?{}:H;return h.jsxs(po,{disabled:$.disabled,onSelect:()=>{p(P),n(!1),requestAnimationFrame(()=>{C()})},value:P,children:[h.jsxs("span",{children:[P,$.tooltip&&h.jsxs("span",{className:"ml-2",children:["(",$.tooltip,")"]})]}),N&&h.jsx(P3,{children:h.jsx(hp,{shortcut:s.getHotkey(N).key})})]},P)},t[12]=p,t[13]=s,t[14]=n,t[15]=y):y=t[15];const v=y,S=JF;let k;t[16]===Symbol.for("react.memo_cache_sentinel")?(k=h.jsx(Qi,{placeholder:"Type to search..."}),t[16]=k):k=t[16];const I=up;let j;t[17]===Symbol.for("react.memo_cache_sentinel")?(j=h.jsx(hc,{children:"No results found."}),t[17]=j):j=t[17];const E=f.length>0&&h.jsxs(h.Fragment,{children:[h.jsx(dp,{heading:"Recently Used",children:f.map(P=>{const C=u[P];return YF(P)?x(P,{disabled:C==null?void 0:C.disabled,tooltip:C==null?void 0:C.tooltip}):C&&!Xm(C)?v(C.label,C.handleHeadless||C.handle,{disabled:C.disabled,tooltip:C.tooltip}):null})}),h.jsx(R3,{})]}),T=dp,M=s.iterate().map(P=>{if(g.has(P))return null;const C=u[P];return x(P,{disabled:C==null?void 0:C.disabled,tooltip:C==null?void 0:C.tooltip})}),L=d.map(P=>g.has(P.label)?null:v(P.label,P.handleHeadless||P.handle,{disabled:P.disabled,tooltip:P.tooltip}));let B;t[18]!==g||t[19]!==v?(B=P=>g.has(P.label)?null:v(`Cell > ${P.label}`,P.handleHeadless||P.handle,{disabled:P.disabled,tooltip:P.tooltip}),t[18]=g,t[19]=v,t[20]=B):B=t[20];const O=a.map(B);let z,F,V;return t[21]!==T||t[22]!==L||t[23]!==O||t[24]!==M?(z=h.jsxs(T,{heading:"Commands",children:[M,L,O]}),t[21]=T,t[22]=L,t[23]=O,t[24]=M,t[25]=z):z=t[25],t[26]!==I||t[27]!==z||t[28]!==j||t[29]!==E?(F=h.jsxs(I,{children:[j,E,z]}),t[26]=I,t[27]=z,t[28]=j,t[29]=E,t[30]=F):F=t[30],t[31]!==S||t[32]!==e||t[33]!==n||t[34]!==F||t[35]!==k?(V=h.jsxs(S,{open:e,onOpenChange:n,children:[k,F]}),t[31]=S,t[32]=e,t[33]=n,t[34]=F,t[35]=k,t[36]=V):V=t[36],V};function qS(t){return!t.hotkey}function GS(t){return t.label}function YS(t){return!t}const Ma="https://static.marimo.app",JS=t=>{const e=X.c(24),{onClose:n}=t,[o,r]=A.useState("");let s;s=Math.random().toString(36).slice(2,6);const i=`${o}-${s}`,a=`${Ma}/static/${i}`;let l,c,d,u,f,p,_,g,m,b,x;return e[0]!==n||e[1]!==i?(l=async y=>{y.preventDefault(),n();const v=await XF({download:!1,includeCode:!0,files:yS.INSTANCE.filenames()}),S=lt({title:"Uploading static notebook...",description:"Please wait."});await fetch(`${Ma}/api/static`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({html:v,path:i})}).catch(()=>{S.dismiss(),lt({title:"Error uploading static page",description:h.jsxs("div",{children:["Please try again later. If the problem persists, please file a bug report on"," ",h.jsx("a",{href:Zn.issuesPage,target:"_blank",className:"underline",children:"GitHub"}),"."]})})}),S.dismiss(),lt({title:"Static page uploaded!",description:h.jsxs("div",{children:["The URL has been copied to your clipboard.",h.jsx("br",{}),"You can share it with anyone."]})})},e[0]=n,e[1]=i,e[2]=l):l=e[2],e[3]===Symbol.for("react.memo_cache_sentinel")?(c=h.jsx(dr,{children:"Share static notebook"}),e[3]=c):c=e[3],e[4]===Symbol.for("react.memo_cache_sentinel")?(d=h.jsxs(Os,{children:[c,h.jsxs(Ps,{children:["You can publish a static, non-interactive version of this notebook to the public web. We will create a link for you that lives on"," ",h.jsx("a",{href:Ma,target:"_blank",children:Ma}),"."]})]}),e[4]=d):d=e[4],e[5]===Symbol.for("react.memo_cache_sentinel")?(u=y=>{const v=y.target.value.toLowerCase().replaceAll(/\s/g,"-").replaceAll(/[^\da-z-]/g,"");r(v)},e[5]=u):u=e[5],e[6]!==o?(f=h.jsx(ur,{"data-testid":"slug-input",id:"slug",autoFocus:!0,value:o,placeholder:"Notebook slug",onChange:u,required:!0,autoComplete:"off"}),e[6]=o,e[7]=f):f=e[7],e[8]!==a?(p=h.jsxs("div",{className:"font-semibold text-sm text-muted-foreground gap-2 flex flex-col",children:["Anyone will be able to access your notebook at this URL:",h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(KS,{text:a}),h.jsx("span",{className:"text-primary",children:a})]})]}),e[8]=a,e[9]=p):p=e[9],e[10]!==f||e[11]!==p?(_=h.jsxs("div",{className:"flex flex-col gap-6 py-4",children:[f,p]}),e[10]=f,e[11]=p,e[12]=_):_=e[12],e[13]!==n?(g=h.jsx(Pe,{"data-testid":"cancel-share-static-notebook-button",variant:"secondary",onClick:n,children:"Cancel"}),e[13]=n,e[14]=g):g=e[14],e[15]!==a?(m=h.jsx(Pe,{"data-testid":"share-static-notebook-button","aria-label":"Save",variant:"default",type:"submit",onClick:async()=>{await yn(a)},children:"Create"}),e[15]=a,e[16]=m):m=e[16],e[17]!==m||e[18]!==g?(b=h.jsxs(ea,{children:[g,m]}),e[17]=m,e[18]=g,e[19]=b):b=e[19],e[20]!==b||e[21]!==l||e[22]!==_?(x=h.jsx(cr,{className:"w-fit",children:h.jsxs("form",{onSubmit:l,children:[d,_,b]})}),e[20]=b,e[21]=l,e[22]=_,e[23]=x):x=e[23],x},KS=t=>{const e=X.c(8),[n,o]=K.useState(!1);let r;e[0]!==t.text?(r=Hn.stopPropagation(async c=>{c.preventDefault(),await yn(t.text),o(!0),setTimeout(()=>o(!1),2e3)}),e[0]=t.text,e[1]=r):r=e[1];const s=r;let i,a,l;return e[2]===Symbol.for("react.memo_cache_sentinel")?(i=h.jsx(Ls,{size:14,strokeWidth:1.5}),e[2]=i):i=e[2],e[3]!==s?(a=h.jsx(Pe,{"data-testid":"copy-static-notebook-url-button",onClick:s,size:"xs",variant:"secondary",children:i}),e[3]=s,e[4]=a):a=e[4],e[5]!==n||e[6]!==a?(l=h.jsx(Le,{content:"Copied!",open:n,children:a}),e[5]=n,e[6]=a,e[7]=l):l=e[7],l};function tg(){const t=X.c(3),{openConfirm:e}=Vn(),n=en(mo);let o;return t[0]!==e||t[1]!==n?(o=()=>{e({title:"Restart Kernel",description:"This will restart the Python kernel. You'll lose all data that's in memory. You will also lose any unsaved changes, so make sure to save your work before restarting.",variant:"destructive",confirmAction:h.jsx(L3,{onClick:async()=>{n({state:Ut.CLOSING}),await ZF(),QF()},"aria-label":"Confirm Restart",children:"Restart"})})},t[0]=e,t[1]=n,t[2]=o):o=t[2],o}const ud=[{type:"files",Icon:_m,tooltip:"View files",position:"sidebar"},{type:"variables",Icon:fc,tooltip:"Explore variables",position:"sidebar"},{type:"datasources",Icon:lr,tooltip:"Explore data sources",position:"sidebar"},{type:"dependencies",Icon:Na,tooltip:"Explore dependencies",position:"sidebar"},{type:"packages",Icon:ba,tooltip:"Manage packages",position:"sidebar"},{type:"outline",Icon:td,tooltip:"View outline",position:"sidebar"},{type:"chat",Icon:pc,tooltip:"Chat with AI",position:"sidebar"},{type:"documentation",Icon:nd,tooltip:"View live docs",position:"sidebar"},{type:"logs",Icon:fp,tooltip:"Notebook logs",position:"sidebar"},{type:"tracing",Icon:fH,tooltip:"Tracing",position:"sidebar"},{type:"snippets",Icon:zm,tooltip:"Snippets",position:"sidebar"},{type:"secrets",Icon:vm,tooltip:"Secrets",hidden:Un(),position:"sidebar"},{type:"scratchpad",Icon:ez,tooltip:"Scratchpad",position:"sidebar"},{type:"errors",Icon:ap,tooltip:"View errors",position:"footer"}];function ng(){const t=X.c(2),e=en(pp);let n;return t[0]!==e?(n=()=>{const o=document.getElementsByClassName("output-area"),r=window.innerHeight||document.documentElement.clientHeight;let s;s=null;for(const i of Array.from(o)){const a=i.getBoundingClientRect();if(a.top>=0&&a.top<=r||a.bottom>=0&&a.bottom<=r){s=Fs.parse(i.parentNode.id);break}}e(i=>({mode:tz(i.mode),cellAnchor:s})),requestAnimationFrame(()=>{var i;s!==null&&((i=document.getElementById(Fs.create(s)))==null||i.scrollIntoView())})},t[0]=e,t[1]=n):n=t[1],n}function yr(){return Ae.string().optional().describe(Je.of({label:"Password",inputType:"password",placeholder:"password",optionRegex:".*password.*"}))}function og(){return Ae.string().optional().describe(Je.of({label:"Token",inputType:"password",placeholder:"token",optionRegex:".*token.*"}))}function Oa(){return Ae.string().optional().describe(Je.of({label:"Warehouse Name",placeholder:"warehouse",optionRegex:".*warehouse.*"}))}function rg(){return Ae.string().optional().describe(Je.of({label:"URI",optionRegex:".*uri.*"}))}function xr(){return Ae.string().nonempty().describe(Je.of({label:"Host",placeholder:"localhost",optionRegex:".*host.*"}))}function _o(){return Ae.string().describe(Je.of({label:"Database",placeholder:"db name",optionRegex:".*database.*"}))}function wr(){return Ae.string().nonempty().describe(Je.of({label:"Username",placeholder:"username",optionRegex:".*username.*"}))}function vr(t){const e=Ae.coerce.string().describe(Je.of({label:"Port",inputType:"number",placeholder:t==null?void 0:t.toString()})).transform(Number).refine(n=>n>=0&&n<=65535,{message:"Port must be between 0 and 65535"});return t!==void 0?e.default(t.toString()):e}function sg(){return Ae.boolean().default(!1).describe(Je.of({label:"Read Only"}))}const ig=Ae.object({type:Ae.literal("postgres"),host:xr(),port:vr(5432).optional(),database:_o(),username:wr(),password:yr(),ssl:Ae.boolean().default(!1).describe(Je.of({label:"Use SSL"}))}).describe(Je.of({direction:"two-columns"})),ag=Ae.object({type:Ae.literal("mysql"),host:xr(),port:vr(3306),database:_o(),username:wr(),password:yr(),ssl:Ae.boolean().default(!1).describe(Je.of({label:"Use SSL"}))}).describe(Je.of({direction:"two-columns"})),lg=Ae.object({type:Ae.literal("sqlite"),database:_o().describe(Je.of({label:"Database Path"}))}).describe(Je.of({direction:"two-columns"})),cg=Ae.object({type:Ae.literal("duckdb"),database:_o().describe(Je.of({label:"Database Path"})),read_only:sg()}).describe(Je.of({direction:"two-columns"})),dg=Ae.object({type:Ae.literal("motherduck"),database:_o().default("my_db").describe(Je.of({label:"Database Name"})),token:og()}).describe(Je.of({direction:"two-columns"})),ug=Ae.object({type:Ae.literal("snowflake"),account:Ae.string().nonempty().describe(Je.of({label:"Account",optionRegex:".*snowflake.*"})),warehouse:Ae.string().optional().describe(Je.of({label:"Warehouse",optionRegex:".*snowflake.*"})),database:_o(),schema:Ae.string().optional().describe(Je.of({label:"Schema",optionRegex:".*snowflake.*"})),username:wr(),password:yr(),role:Ae.string().optional().describe(Je.of({label:"Role"}))}).describe(Je.of({direction:"two-columns"})),hg=Ae.object({type:Ae.literal("bigquery"),project:Ae.string().nonempty().describe(Je.of({label:"Project ID",optionRegex:".*bigquery.*"})),dataset:Ae.string().nonempty().describe(Je.of({label:"Dataset",optionRegex:".*bigquery.*"})),credentials_json:Ae.string().describe(Je.of({label:"Credentials JSON",inputType:"textarea"}))}).describe(Je.of({direction:"two-columns"})),fg=Ae.object({type:Ae.literal("clickhouse_connect"),host:xr(),port:vr(8123).optional(),username:wr(),password:yr(),secure:Ae.boolean().default(!1).describe(Je.of({label:"Use HTTPs"}))}).describe(Je.of({direction:"two-columns"})),pg=Ae.object({type:Ae.literal("timeplus"),host:xr().default("localhost"),port:vr(8123).optional(),username:wr().default("default"),password:yr().default("")}).describe(Je.of({direction:"two-columns"})),mg=Ae.object({type:Ae.literal("chdb"),database:_o().describe(Je.of({label:"Database Path"})),read_only:sg()}).describe(Je.of({direction:"two-columns"})),gg=Ae.object({type:Ae.literal("trino"),host:xr(),port:vr(8080),database:_o(),schema:Ae.string().describe(Je.of({label:"Schema",placeholder:"schema name",optionRegex:".*schema.*"})).optional(),username:wr(),password:yr(),async_support:Ae.boolean().default(!1).describe(Je.of({label:"Async Support"}))}).describe(Je.of({direction:"two-columns"})),_g=Ae.object({type:Ae.literal("iceberg"),name:Ae.string().describe(Je.of({label:"Catalog Name"})),catalog:Ae.discriminatedUnion("type",[Ae.object({type:Ae.literal("REST"),warehouse:Oa(),uri:Ae.string().optional().describe(Je.of({label:"URI",placeholder:"https://",optionRegex:".*uri.*"})),token:og()}),Ae.object({type:Ae.literal("SQL"),warehouse:Oa(),uri:Ae.string().optional().describe(Je.of({label:"URI",placeholder:"jdbc:iceberg://host:port/database",optionRegex:".*uri.*"}))}),Ae.object({type:Ae.literal("Hive"),warehouse:Oa(),uri:rg()}),Ae.object({type:Ae.literal("Glue"),warehouse:Oa(),uri:rg()}),Ae.object({type:Ae.literal("DynamoDB"),"dynamodb.profile-name":Ae.string().optional().describe(Je.of({label:"Profile Name"})),"dynamodb.region":Ae.string().optional().describe(Je.of({label:"Region"})),"dynamodb.access-key-id":Ae.string().optional().describe(Je.of({label:"Access Key ID"})),"dynamodb.secret-access-key":Ae.string().optional().describe(Je.of({label:"Secret Access Key",inputType:"password"})),"dynamodb.session-token":Ae.string().optional().describe(Je.of({label:"Session Token",inputType:"password"}))})]).default({type:"REST"}).describe(Je.of({special:"tabs"}))}),bg=Ae.object({type:Ae.literal("datafusion"),sessionContext:Ae.boolean().optional().describe(Je.of({label:"Use Session Context"}))}),yg=Ae.object({type:Ae.literal("pyspark"),host:xr().optional(),port:vr().optional()}),xg=Ae.object({type:Ae.literal("redshift"),host:xr(),port:vr(5439),connectionType:Ae.discriminatedUnion("type",[Ae.object({type:Ae.literal("IAM credentials"),region:Ae.string().describe(Je.of({label:"Region"})),aws_access_key_id:Ae.string().nonempty().describe(Je.of({label:"AWS Access Key ID",inputType:"password",optionRegex:".*aws_access_key_id.*"})),aws_secret_access_key:Ae.string().nonempty().describe(Je.of({label:"AWS Secret Access Key",inputType:"password",optionRegex:".*aws_secret_access_key.*"})),aws_session_token:Ae.string().optional().describe(Je.of({label:"AWS Session Token",inputType:"password",optionRegex:".*aws_session_token.*"}))}),Ae.object({type:Ae.literal("DB credentials"),user:wr(),password:yr()})]).default({type:"IAM credentials",aws_access_key_id:"",aws_secret_access_key:"",region:""}),database:_o()}).describe(Je.of({direction:"two-columns"})),XS=Ae.discriminatedUnion("type",[ig,ag,lg,cg,dg,ug,hg,fg,pg,mg,gg,_g,bg,yg,xg]),hd="env:";function Da(t){return typeof t=="string"&&t.startsWith(hd)}function fd(t){return`${hd}${t}`}const wg={sqlmodel:"SQLModel",sqlalchemy:"SQLAlchemy",duckdb:"DuckDB",clickhouse_connect:"ClickHouse Connect",chdb:"chDB",pyiceberg:"PyIceberg",ibis:"Ibis",motherduck:"MotherDuck",redshift:"Redshift"};class an{constructor(e,n,o){this.connection=void 0,this.orm=void 0,this.secrets=void 0,this.connection=e,this.orm=n,this.secrets=o}get imports(){const e=new Set(this.generateImports());switch(this.orm){case"sqlalchemy":e.add("import sqlalchemy");break;case"sqlmodel":e.add("import sqlmodel");break;case"duckdb":e.add("import duckdb")}return e}}class ZS{constructor(){this.secrets={}}get imports(){return Object.keys(this.secrets).length===0?new Set:new Set(["import os"])}print(e,n,o){if(e=(r=>`_${r}`)(e),Da(n)){const r=n.replace(hd,""),s=o?`os.environ.get("${r}", "${o}")`:`os.environ.get("${r}")`;return this.secrets[e]=s,e}if(o!=null){const r=`os.environ.get("${n}", "${o}")`;return this.secrets[e]=r,e}return typeof n=="number"||typeof n=="number"?`${n}`:typeof n=="boolean"?Br(n):n?`"${n}"`:""}printInFString(e,n,o){if(n===void 0)return"";if(typeof n=="number")return`${n}`;if(typeof n=="boolean")return Br(n);const r=this.print(e,n,o);return r.startsWith('"')&&r.endsWith('"')?r.slice(1,-1):`{${r}}`}printPassword(e,n,o){const r=o?this.printInFString.bind(this):this.print.bind(this);return Da(e)?r("password",e):r("password",n,e)}getSecrets(){return this.secrets}formatSecrets(){return Object.keys(this.secrets).length===0?"":Object.entries(this.secrets).map(([e,n])=>`${e} = ${n}`).join(`
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./tracing-3IY9qyNR.js","./index-DzTq_FpA.js","./index-mD-LrCTs.css","./compile-XqY323UT.js","./time-D_UBfK0F.js","./timer-DFzT7np-.js","./linear-Buy8I-5A.js","./init-DLRA0X12.js","./range-CtcPcB_L.js","./zoom-COrs4lFh.js","./ordinal-DDUp3AbE.js","./colors-bszWmPJw.js","./arc-Cuwikxov.js","./step-BwsUM5iJ.js","./panels-CHm5-SIx.js","./index-DsacajfY.js","./index-Uqe0s7wz.js","./index-rIhIMqj8.js","./index-eY1NQien.js","./index-DAOcJ7Ac.js","./index-DP9Zq1Ou.js","./index-XTMk23ln.js","./index-LTjbWZNT.js","./index-BTFMHw26.js","./index-BjEVP9vB.js","./index-LSSBC8Rd.js","./index-ByI4QUiD.js","./index-CZAlGmMU.js","./apl-CXdQSnD-.js","./asciiarmor-D5V0T9Cu.js","./asterisk-B46aRdXb.js","./brainfuck-CtZaYBKt.js","./clike-BgBwzOhw.js","./cmake-DXn5xaP-.js","./cobol-stawOqaz.js","./coffeescript-BTDxI-eT.js","./commonlisp-vq6DHwts.js","./crystal-CRzZ78HM.js","./cypher-gJDei3ni.js","./d-BShv7fp-.js","./diff-UJJ5BM9S.js","./dockerfile-knGOOxt4.js","./simple-mode-C3vEBAcb.js","./dtd-DI9Herc-.js","./dylan-CHJ5qNM_.js","./ebnf-B-Df8AvO.js","./ecl-DPFc0Uaf.js","./eiffel-DR5c0IrL.js","./elm-D7xaZ7Da.js","./erlang-BuqgqA5h.js","./factor-CFXhaUWb.js","./fcl-CVaBTCzQ.js","./forth-Dri_5nFc.js","./fortran-DL7KluxX.js","./gas-5kEe4nk0.js","./gherkin-B6X1vGSW.js","./groovy-DnIzCrpZ.js","./haskell-CmdsSjFB.js","./haxe-D25e-2l-.js","./http-BKJkqRj4.js","./idl-pcmmZuaN.js","./jinja2-DhgKlfW7.js","./julia-DjdwvFuI.js","./livescript-HO6ttBFx.js","./lua-8DXOpKDz.js","./mathematica-IIbmv7SK.js","./mbox-z_N2Mo3d.js","./mirc-DkvFAiy5.js","./modelica-DSrSSXCg.js","./mscgen-B2igx18G.js","./mumps-zvxmGV4l.js","./nginx-B4hAVlXN.js","./nsis-BvKfQ9lQ.js","./ntriples-FFvkTduk.js","./octave-C4hdQ5Hf.js","./oz-qQq7irPq.js","./pascal-CafrKXZF.js","./perl-tdMlh9QA.js","./pig-CwGJVRC4.js","./powershell-D1ly3AHC.js","./properties-_nPj978X.js","./protobuf-B4y9do6W.js","./puppet-Bc-yJKzi.js","./q-B0kTJ4cI.js","./r-BA4EbLKE.js","./ruby-CR-u2WLS.js","./sas-Bqaci40L.js","./scheme-qjP0V5Ag.js","./shell-BLav31RL.js","./sieve-r025o_jW.js","./smalltalk-C7J3IyEP.js","./solr-78MBEUkU.js","./sparql-BRLJFz69.js","./spreadsheet-CGlWr0eM.js","./stylus-OdhglgkO.js","./swift-B_XXVlXX.js","./tcl-B2fODqDH.js","./textile-BuVhTOzU.js","./tiddlywiki-BgR6AEZu.js","./tiki-CI-ztowC.js","./toml-BQXy8elZ.js","./troff-Ce85hlLp.js","./ttcn-BxnYHtq8.js","./turtle-BkSuIpt-.js","./vb-BHgjm0DN.js","./vbscript-Dawdd5GZ.js","./velocity-BdD_26Jv.js","./verilog-B4LBqg_1.js","./vhdl-CWWH2SUo.js","./webidl-CGwyPRYs.js","./xquery-CVDBqZPY.js","./yacas-I8QjZlxf.js","./z80-D8p3gKXp.js","./panels-DcAzAz16.css","./tree-VNvVKUNJ.js","./index-BmOL1-zF.js","./tree-C1rhMrxo.css","./circle-play-D7Q3K0Yg.js","./_createAggregator-DPHZ8aHb.js","./_baseEach-DNkNlAMh.js","./transform-Cyp0GDF-.js","./sortBy-_g-ev-qv.js","./_baseMap-DqifI1if.js","./terminal-B0sHUSvx.js","./terminal-WqMRJt5Z.css"])))=>i.map(i=>d[i]);
|
2
|
+
var wF=Object.defineProperty;var g3=Ft=>{throw TypeError(Ft)};var vF=(Ft,Et,mn)=>Et in Ft?wF(Ft,Et,{enumerable:!0,configurable:!0,writable:!0,value:mn}):Ft[Et]=mn;var ee=(Ft,Et,mn)=>vF(Ft,typeof Et!="symbol"?Et+"":Et,mn),kF=(Ft,Et,mn)=>Et.has(Ft)||g3("Cannot "+mn);var _3=(Ft,Et,mn)=>(kF(Ft,Et,"read from private field"),mn?mn.call(Ft):Et.get(Ft)),b3=(Ft,Et,mn)=>Et.has(Ft)?g3("Cannot add the same private member more than once"):Et instanceof WeakSet?Et.add(Ft):Et.set(Ft,mn);import{u as Fe,Q as A,i9 as SF,ia as CF,ib as y3,ic as NF,id as jF,ie as EF,R as K,ig as IF,ih as Mr,ii as AF,ij as Kf,ik as x3,il as TF,im as MF,io as w3,ip as oc,d as X,as as Un,iq as Xf,j as h,dt as Zf,du as v3,dv as OF,dx as Qf,dz as ep,f7 as rc,ir as tp,dr as np,ds as op,dw as rp,is as DF,it as k3,eh as S3,bp as et,a8 as Lt,iu as RF,dV as fo,iv as C3,iw as N3,ix as sp,iy as j3,iz as PF,L as Zt,_ as Qt,aF as E3,cD as ip,W as Pe,iA as LF,ei as dt,iB as I3,em as sc,iC as FF,ao as lt,iD as ic,Z as We,a_ as Vn,a0 as en,iE as ac,iF as Ts,e5 as Ms,iG as zF,iH as Xi,iI as BF,ef as UF,iJ as A3,iK as T3,dN as VF,a7 as ap,iL as ar,iM as Or,aJ as lc,aL as lr,iN as HF,iO as cc,iP as M3,a5 as Zi,eE as O3,a6 as dc,iQ as $F,an as yn,iR as lp,iS as Dr,aj as cr,ak as Os,al as dr,bg as Rr,U as Fo,e6 as Ds,gn as D3,fP as Rs,gq as WF,b2 as fn,iT as qF,iU as GF,fN as cp,aI as uc,iV as dp,iW as YF,iX as R3,iY as up,iZ as JF,i_ as KF,i$ as po,j0 as P3,fT as hp,j1 as Qi,j2 as hc,e0 as XF,ae as Zn,am as Ps,be as ur,j3 as ea,bt as Hn,ap as Ls,a4 as Le,f4 as mo,b7 as L3,ep as Ut,j4 as ZF,eR as QF,dA as fc,j5 as pc,aN as fp,j6 as ez,eo as pp,ec as Fs,j7 as tz,j8 as mp,bj as jn,j9 as nz,dT as Ae,ja as Je,jb as gp,jc as St,jd as F3,je as oz,fu as _p,aE as En,aT as $n,ga as z3,gb as B3,gc as rz,gg as sz,gd as U3,V as Oe,dM as iz,aG as mc,aR as gc,aH as _c,aO as sn,eg as zo,jf as az,ge as V3,jg as lz,g5 as H3,g7 as $3,jh as zs,ji as W3,jj as cz,jk as dz,ai as uz,ah as hz,eb as ta,af as bp,jl as na,jm as bc,jn as fz,jo as pz,jp as q3,jq as pn,fS as G3,dO as yc,ba as mz,jr as gz,ar as yp,aK as _z,js as bz,gr as Y3,b6 as xc,jt as xp,aq as oa,e1 as J3,ju as yz,ag as xz,jv as K3,jw as wz,jx as vz,jy as kz,jz as Sz,jA as Cz,jB as Nz,dp as Bo,jC as wc,jD as Bs,o as Uo,n as st,fx as Qn,jE as In,jF as ut,jG as Us,jH as Vt,fO as Gt,jI as wp,dS as go,jJ as jz,jK as Ez,b4 as X3,b5 as Z3,jL as Q3,jM as Iz,gu as Vs,jN as vc,b1 as kc,gt as Pr,jO as e4,jP as ra,ej as vp,jQ as Az,jR as Tz,jS as Mz,jT as Oz,jU as t4,jV as Dz,jW as n4,jX as o4,jY as Rz,jZ as r4,j_ as s4,ek as Sc,j$ as Pz,bq as Lz,k0 as Fz,fw as Wn,k1 as zz,k2 as Bz,k3 as Hs,k4 as Cc,k5 as $s,fH as Vo,k6 as kp,k7 as sa,k8 as ia,k9 as aa,ka as Uz,fm as Nc,kb as Sp,kc as i4,kd as jc,eQ as Vz,fn as Hz,r as $z,ke as Wz,kf as qz,kg as a4,t as D,kh as Gz,ki as Yz,kj as Cp,f_ as la,kk as l4,fA as Jz,fr as c4,kl as d4,km as Kz,kn as Xz,ko as Zz,kp as Qz,kq as eB,kr as tB,ks as nB,kt as oB,ku as rB,kv as sB,kw as iB,kx as aB,ky as lB,kz as cB,kA as dB,kB as uB,kC as hB,kD as fB,kE as pB,kF as mB,kG as ca,kH as gB,kI as _B,kJ as bB,kK as yB,kL as xB,kM as wB,kN as u4,kO as vB,kP as kB,kQ as SB,kR as h4,kS as CB,kT as NB,kU as f4,kV as jB,kW as Ws,kX as qn,kY as EB,kZ as IB,k_ as AB,k$ as TB,l0 as MB,l1 as OB,l2 as DB,l3 as RB,l4 as PB,l5 as LB,l6 as hr,l7 as FB,l8 as zB,l9 as BB,la as UB,eq as VB,lb as HB,lc as p4,eu as $B,ld as Ec,le as WB,lf as qB,lg as GB,lh as YB,X as Lr,li as Ic,et as JB,lj as Np,lk as Ac,ll as da,lm as ua,ln as Tc,lo as fr,lp as m4,lq as Ho,lr as qs,ls as jp,lt as ha,lu as Gs,lv as Ep,lw as Ip,lx as g4,ly as Mc,lz as KB,S as fa,lA as pa,lB as XB,eP as Oc,lC as ZB,lD as Ap,lE as QB,lF as eU,lG as Dc,lH as tU,lI as nU,lJ as _4,lK as Tp,gs as Ys,lL as oU,lM as rU,lN as sU,lO as iU,fF as aU,bd as lU,gv as jt,lP as ma,lQ as Js,lR as cU,lS as dU,lT as Mp,lU as uU,cn as Op,lV as hU,b3 as b4,lW as fU,lX as pU,lY as Rc,lZ as y4,eJ as Dp,bf as x4,$ as Rp,l_ as w4,l$ as mU,m0 as gU,m1 as Pp,m2 as Lp,m3 as _U,m4 as v4,m5 as k4,m6 as ga,fq as bU,ab as S4,ft as yU,e3 as xU,m7 as C4,m8 as wU,m9 as vU,ma as N4,mb as kU,mc as SU,md as j4,me as E4,mf as CU,bh as I4,mg as NU,mh as Fp,ea as jU,mi as $o,dK as A4,mj as T4,ee as M4,fg as zp,mk as Bp,ml as O4,bv as Up,dL as Pc,mm as D4,mn as EU,mo as IU,mp as AU,bc as Lc,mq as R4,f9 as Vp,g6 as TU,g8 as MU,gf as Hp,gi as OU,mr as DU,ms as $p,mt as RU,mu as PU,mv as LU,mw as FU,mx as zU,my as BU,mz as UU,mA as VU,a9 as HU,mB as Fc,aa as $U,mC as P4,mD as WU,f5 as qU,mE as L4,a$ as eo,fk as GU,dC as YU,mF as JU,mG as F4,mH as KU,eO as XU,mI as ZU,mJ as QU,e4 as eV,mK as tV,mL as nV,a2 as zc,mM as oV,a3 as pr,dF as z4,mN as Wp,mO as rV,en as B4,mP as sV,mQ as U4,mR as iV,mS as aV,mT as lV,mU as cV,mV as dV,mW as uV,mX as V4,g1 as qp,f$ as Gp,fW as Ks,g0 as Fr,mY as H4,g2 as Yp,fX as zr,dW as hV,mZ as Jp,m_ as fV,a1 as pV,m$ as mV,fG as $4,E as Xs,n0 as gV,n1 as _V,n2 as bV,n3 as yV,n4 as _a,n5 as xV,n6 as wV,n7 as vV,n8 as kV,n9 as SV,na as W4,nb as CV,fv as NV,nc as jV,nd as EV,ne as IV,nf as AV,gh as TV,ng as MV,nh as q4,ni as OV,nj as DV,nk as G4,nl as Y4,nm as J4,f3 as K4,nn as RV,no as PV,np as X4,nq as Z4,nr as Bc,ns as Q4,nt as LV,nu as eS,nv as FV,nw as zV,nx as tS,ny as BV,nz as UV,nA as VV,C as nS,nB as HV,nC as $V,nD as WV,nE as mr,nF as oS,dU as qV,fY as GV,nG as rS,fZ as sS,nH as YV,nI as Zs,nJ as JV,nK as Uc,nL as KV,nM as XV,y as iS,nN as ZV,di as QV,nO as eH,nP as tH,nQ as nH,nR as oH,nS as rH,eW as sH,b0 as iH,aZ as aH,at as Vc,nT as aS,nU as lS,av as cS,au as lH,e8 as cH,__tla as dH}from"./index-DzTq_FpA.js";import{G as uH,L as dS,g as hH,b as ba,A as fH,s as pH,k as mH,B as uS,a as gH,M as _H,Y as bH,c as xn,u as ya,C as yH,S as xH,K as wH,d as vH,i as kH,e as hS,f as SH,h as CH,j as NH,l as xa,P as Kp,m as fS,n as jH,o as EH,p as Xp,T as IH}from"./tree-VNvVKUNJ.js";import{d as pS,e as mS,L as gS,f as Qs,I as Zp,g as AH,h as _S,N as bS,V as yS,S as xS,F as wS,i as vS,M as TH,l as kS,j as MH,E as SS,k as OH,m as Qp,n as DH,o as RH,p as PH,q as LH,s as FH,t as zH,v as BH,w as UH,x as VH,a as HH,C as $H,R as CS,b as WH,A as qH,y as GH,z as YH,O as JH,T as KH,B as XH,D as ZH,c as QH,P as e$,__tla as t$}from"./panels-CHm5-SIx.js";import{c as n$}from"./_createAggregator-DPHZ8aHb.js";import{s as to,i as gr,T as em,a as tm}from"./transform-Cyp0GDF-.js";import{g as NS}from"./timer-DFzT7np-.js";import{i as o$}from"./zoom-COrs4lFh.js";import{s as wa}from"./sortBy-_g-ev-qv.js";let nm,Hc,An,$c,jS,va,om,r$=Promise.all([(()=>{try{return dH}catch{}})(),(()=>{try{return t$}catch{}})()]).then(async()=>{var ec,m3;var Ft=n$(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]});let Et,mn,rm,Wc,ei,ti,sm,im,am,lm,ka,qc,cm,Sa,dm,Gc,um,hm,Yc,fm,pm,mm,Ca,gm,Jc,_m,bm,ym,xm,wm,vm,Kc,km,Xc,Sm,Cm,Nm,jm,Em,Na,Im,Am,Zc,Tm,Mm,Om,Qc,Dm,Rm,Pm,ja,ed,td,Lm,Fm,zm,Bm,Um,Vm,Hm,$m,Wm,nd,od,qm,Gm,Ym,Ea,_r,br;Et=Fe("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]),mn=Fe("arrow-right-from-line",[["path",{d:"M3 5v14",key:"1nt18q"}],["path",{d:"M21 12H7",key:"13ipq5"}],["path",{d:"m15 18 6-6-6-6",key:"6tx3qv"}]]),rm=Fe("arrow-right-to-line",[["path",{d:"M17 12H3",key:"8awo09"}],["path",{d:"m11 18 6-6-6-6",key:"8c2y43"}],["path",{d:"M21 5v14",key:"nzette"}]]),Wc=Fe("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]),ei=Fe("ban",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]]),ti=Fe("between-horizontal-start",[["rect",{width:"13",height:"7",x:"8",y:"3",rx:"1",key:"pkso9a"}],["path",{d:"m2 9 3 3-3 3",key:"1agib5"}],["rect",{width:"13",height:"7",x:"8",y:"14",rx:"1",key:"1q5fc1"}]]),sm=Fe("chevrons-down",[["path",{d:"m7 6 5 5 5-5",key:"1lc07p"}],["path",{d:"m7 13 5 5 5-5",key:"1d48rs"}]]),im=Fe("chevrons-up",[["path",{d:"m17 11-5-5-5 5",key:"e8nh98"}],["path",{d:"m17 18-5-5-5 5",key:"2avn1x"}]]),$c=Fe("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),am=Fe("circle-chevron-down",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 10-4 4-4-4",key:"894hmk"}]]),lm=Fe("circle-chevron-right",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m10 8 4 4-4 4",key:"1wy4r4"}]]),ka=Fe("circle-plus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]]),qc=Fe("clipboard-copy",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2",key:"4jdomd"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v4",key:"3hqy98"}],["path",{d:"M21 14H11",key:"1bme5i"}],["path",{d:"m15 10-4 4 4 4",key:"5dvupr"}]]),cm=Fe("clipboard-paste",[["path",{d:"M11 14h10",key:"1w8e9d"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v1.344",key:"1e62lh"}],["path",{d:"m17 18 4-4-4-4",key:"z2g111"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 1.793-1.113",key:"bjbb7m"}],["rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",key:"ublpy"}]]),Sa=Fe("cloud-download",[["path",{d:"M12 13v8l-4-4",key:"1f5nwf"}],["path",{d:"m12 21 4-4",key:"1lfcce"}],["path",{d:"M4.393 15.269A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.436 8.284",key:"ui1hmy"}]]),dm=Fe("code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]),Gc=Fe("command",[["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",key:"11bfej"}]]),um=Fe("copy-minus",[["line",{x1:"12",x2:"18",y1:"15",y2:"15",key:"1nscbv"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),hm=Fe("diamond-plus",[["path",{d:"M12 8v8",key:"napkw2"}],["path",{d:"M2.7 10.3a2.41 2.41 0 0 0 0 3.41l7.59 7.59a2.41 2.41 0 0 0 3.41 0l7.59-7.59a2.41 2.41 0 0 0 0-3.41L13.7 2.71a2.41 2.41 0 0 0-3.41 0z",key:"1ey20j"}],["path",{d:"M8 12h8",key:"1wcyev"}]]),Yc=Fe("ellipsis-vertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]),fm=Fe("eraser",[["path",{d:"m7 21-4.3-4.3c-1-1-1-2.5 0-3.4l9.6-9.6c1-1 2.5-1 3.4 0l5.6 5.6c1 1 1 2.5 0 3.4L13 21",key:"182aya"}],["path",{d:"M22 21H7",key:"t4ddhn"}],["path",{d:"m5 11 9 9",key:"1mo9qw"}]]),pm=Fe("fast-forward",[["polygon",{points:"13 19 22 12 13 5 13 19",key:"587y9g"}],["polygon",{points:"2 19 11 12 2 5 2 19",key:"3pweh0"}]]),mm=Fe("file-pen",[["path",{d:"M12.5 22H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v9.5",key:"1couwa"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M13.378 15.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"1y4qbx"}]]),Ca=Fe("file-plus-2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M3 15h6",key:"4e2qda"}],["path",{d:"M6 12v6",key:"1u72j0"}]]),gm=Fe("files",[["path",{d:"M20 7h-3a2 2 0 0 1-2-2V2",key:"x099mo"}],["path",{d:"M9 18a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h7l4 4v10a2 2 0 0 1-2 2Z",key:"18t6ie"}],["path",{d:"M3 7.6v12.8A1.6 1.6 0 0 0 4.6 22h9.8",key:"1nja0z"}]]),Jc=Fe("folder-plus",[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["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",key:"1kt360"}]]),_m=Fe("folder-tree",[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]]),bm=Fe("grip-vertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]),ym=Fe("hard-drive-download",[["path",{d:"M12 2v8",key:"1q4o3n"}],["path",{d:"m16 6-4 4-4-4",key:"6wukr"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",key:"w68u3i"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"M10 18h.01",key:"h775k"}]]),xm=Fe("history",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]),wm=Fe("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]),vm=Fe("key-round",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]),Kc=Fe("key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]),km=Fe("keyboard",[["path",{d:"M10 8h.01",key:"1r9ogq"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M14 8h.01",key:"1primd"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"M18 8h.01",key:"emo2bl"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M7 16h10",key:"wp8him"}],["path",{d:"M8 12h.01",key:"czm47f"}],["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}]]),Xc=Fe("layout-template",[["rect",{width:"18",height:"7",x:"3",y:"3",rx:"1",key:"f1a2em"}],["rect",{width:"9",height:"7",x:"3",y:"14",rx:"1",key:"jqznyg"}],["rect",{width:"5",height:"7",x:"16",y:"14",rx:"1",key:"q5h2i8"}]]),Sm=Fe("list",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]]),Cm=Fe("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]),Nm=Fe("memory-stick",[["path",{d:"M6 19v-3",key:"1nvgqn"}],["path",{d:"M10 19v-3",key:"iu8nkm"}],["path",{d:"M14 19v-3",key:"kcehxu"}],["path",{d:"M18 19v-3",key:"1vh91z"}],["path",{d:"M8 11V9",key:"63erz4"}],["path",{d:"M16 11V9",key:"fru6f3"}],["path",{d:"M12 11V9",key:"ha00sb"}],["path",{d:"M2 15h20",key:"16ne18"}],["path",{d:"M2 7a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v1.1a2 2 0 0 0 0 3.837V17a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-5.1a2 2 0 0 0 0-3.837Z",key:"lhddv3"}]]),jm=Fe("message-circle-question",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),Em=Fe("microchip",[["path",{d:"M18 12h2",key:"quuxs7"}],["path",{d:"M18 16h2",key:"zsn3lv"}],["path",{d:"M18 20h2",key:"9x5y9y"}],["path",{d:"M18 4h2",key:"1luxfb"}],["path",{d:"M18 8h2",key:"nxqzg"}],["path",{d:"M4 12h2",key:"1ltxp0"}],["path",{d:"M4 16h2",key:"8a5zha"}],["path",{d:"M4 20h2",key:"27dk57"}],["path",{d:"M4 4h2",key:"10groj"}],["path",{d:"M4 8h2",key:"18vq6w"}],["path",{d:"M8 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2h-1.5c-.276 0-.494.227-.562.495a2 2 0 0 1-3.876 0C9.994 2.227 9.776 2 9.5 2z",key:"1681fp"}]]),Na=Fe("network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]),Im=Fe("octagon-alert",[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["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",key:"1fd625"}]]),Am=Fe("package-check",[["path",{d:"m16 16 2 2 4-4",key:"gfu2re"}],["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]]),Zc=Fe("package-x",[["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}],["path",{d:"m17 13 5 5m-5 0 5-5",key:"im3w4b"}]]),Tm=Fe("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]),Mm=Fe("party-popper",[["path",{d:"M5.8 11.3 2 22l10.7-3.79",key:"gwxi1d"}],["path",{d:"M4 3h.01",key:"1vcuye"}],["path",{d:"M22 8h.01",key:"1mrtc2"}],["path",{d:"M15 2h.01",key:"1cjtqr"}],["path",{d:"M22 20h.01",key:"1mrys2"}],["path",{d:"m22 2-2.24.75a2.9 2.9 0 0 0-1.96 3.12c.1.86-.57 1.63-1.45 1.63h-.38c-.86 0-1.6.6-1.76 1.44L14 10",key:"hbicv8"}],["path",{d:"m22 13-.82-.33c-.86-.34-1.82.2-1.98 1.11c-.11.7-.72 1.22-1.43 1.22H17",key:"1i94pl"}],["path",{d:"m11 2 .33.82c.34.86-.2 1.82-1.11 1.98C9.52 4.9 9 5.52 9 6.23V7",key:"1cofks"}],["path",{d:"M11 13c1.93 1.93 2.83 4.17 2 5-.83.83-3.07-.07-5-2-1.93-1.93-2.83-4.17-2-5 .83-.83 3.07.07 5 2Z",key:"4kbmks"}]]),Om=Fe("pen-line",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]]),Qc=Fe("presentation",[["path",{d:"M2 3h20",key:"91anmk"}],["path",{d:"M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3",key:"2k9sn8"}],["path",{d:"m7 21 5-5 5 5",key:"bip4we"}]]),Dm=Fe("regex",[["path",{d:"M17 3v10",key:"15fgeh"}],["path",{d:"m12.67 5.5 8.66 5",key:"1gpheq"}],["path",{d:"m12.67 10.5 8.66-5",key:"1dkfa6"}],["path",{d:"M9 17a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v2a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2v-2z",key:"swwfx4"}]]),Rm=Fe("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]),Pm=Fe("rows-3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M21 9H3",key:"1338ky"}],["path",{d:"M21 15H3",key:"9uk58r"}]]),ja=Fe("save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]),ed=Fe("scissors",[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]]),td=Fe("scroll-text",[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]]),Lm=Fe("share-2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]),Fm=Fe("square-code",[["path",{d:"M10 9.5 8 12l2 2.5",key:"3mjy60"}],["path",{d:"m14 9.5 2 2.5-2 2.5",key:"1bir2l"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]),zm=Fe("square-dashed-bottom-code",[["path",{d:"M10 9.5 8 12l2 2.5",key:"3mjy60"}],["path",{d:"M14 21h1",key:"v9vybs"}],["path",{d:"m14 9.5 2 2.5-2 2.5",key:"1bir2l"}],["path",{d:"M5 21a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2",key:"as5y1o"}],["path",{d:"M9 21h1",key:"15o7lz"}]]),Bm=Fe("square-equal",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 10h10",key:"1101jm"}],["path",{d:"M7 14h10",key:"1mhdw3"}]]),Um=Fe("square-m",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M8 16V8l4 4 4-4v8",key:"141u4e"}]]),Vm=Fe("square-play",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"m9 8 6 4-6 4Z",key:"f1r3lt"}]]),Hm=Fe("square-power",[["path",{d:"M12 7v4",key:"xawao1"}],["path",{d:"M7.998 9.003a5 5 0 1 0 8-.005",key:"1pek45"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}]]),$m=Fe("square-terminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]]),Wm=Fe("text-cursor-input",[["path",{d:"M12 20h-1a2 2 0 0 1-2-2 2 2 0 0 1-2 2H6",key:"1528k5"}],["path",{d:"M13 8h7a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-7",key:"13ksps"}],["path",{d:"M5 16H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h1",key:"1n9rhb"}],["path",{d:"M6 4h1a2 2 0 0 1 2 2 2 2 0 0 1 2-2h1",key:"1mj8rg"}],["path",{d:"M9 6v12",key:"velyjx"}]]),nd=Fe("text-search",[["path",{d:"M21 6H3",key:"1jwq7v"}],["path",{d:"M10 12H3",key:"1ulcyk"}],["path",{d:"M10 18H3",key:"13769t"}],["circle",{cx:"17",cy:"15",r:"3",key:"1upz2a"}],["path",{d:"m21 19-1.9-1.9",key:"dwi7p8"}]]),od=Fe("undo-2",[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]]),qm=Fe("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]),Gm=Fe("view",[["path",{d:"M21 17v2a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-2",key:"mrq65r"}],["path",{d:"M21 7V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v2",key:"be3xqs"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["path",{d:"M18.944 12.33a1 1 0 0 0 0-.66 7.5 7.5 0 0 0-13.888 0 1 1 0 0 0 0 .66 7.5 7.5 0 0 0 13.888 0",key:"11ak4c"}]]),Ym=Fe("whole-word",[["circle",{cx:"7",cy:"12",r:"3",key:"12clwm"}],["path",{d:"M10 9v6",key:"17i7lo"}],["circle",{cx:"17",cy:"12",r:"3",key:"gl7c2s"}],["path",{d:"M14 7v8",key:"dl84cr"}],["path",{d:"M22 17v1c0 .5-.5 1-1 1H3c-.5 0-1-.5-1-1v-1",key:"lt2kga"}]]),Ea=Fe("workflow",[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]]),_r=Fe("zap-off",[["path",{d:"M10.513 4.856 13.12 2.17a.5.5 0 0 1 .86.46l-1.377 4.317",key:"193nxd"}],["path",{d:"M15.656 10H20a1 1 0 0 1 .78 1.63l-1.72 1.773",key:"27a7lr"}],["path",{d:"M16.273 16.273 10.88 21.83a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14H4a1 1 0 0 1-.78-1.63l4.507-4.643",key:"1e0qe9"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]),br=Fe("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);const ES=A.createContext({}),IS=A.forwardRef(function(t,e){[t,e]=jF(t,e,ES);let{toolbarProps:n}=function(s,i){const{"aria-label":a,"aria-labelledby":l,orientation:c="horizontal"}=s;let[d,u]=A.useState(!1);SF(()=>{var m;u(!(!i.current||!(!((m=i.current.parentElement)===null||m===void 0)&&m.closest('[role="toolbar"]'))))});const{direction:f}=CF(),p=f==="rtl"&&c==="horizontal";let _=NF(i);const g=A.useRef(null);return{toolbarProps:{...y3(s,{labelable:!0}),role:d?"group":"toolbar","aria-orientation":c,"aria-label":a,"aria-labelledby":a==null?l:void 0,onKeyDownCapture:d?void 0:m=>{if(m.currentTarget.contains(m.target)){if(c==="horizontal"&&m.key==="ArrowRight"||c==="vertical"&&m.key==="ArrowDown")p?_.focusPrevious():_.focusNext();else{if(!(c==="horizontal"&&m.key==="ArrowLeft"||c==="vertical"&&m.key==="ArrowUp"))return m.key==="Tab"?(m.stopPropagation(),g.current=document.activeElement,void(m.shiftKey?_.focusFirst():_.focusLast())):void 0;p?_.focusNext():_.focusPrevious()}m.stopPropagation(),m.preventDefault()}},onFocusCapture:d?void 0:m=>{var b,x;g.current&&!m.currentTarget.contains(m.relatedTarget)&&(!((b=i.current)===null||b===void 0)&&b.contains(m.target))&&((x=g.current)===null||x===void 0||x.focus(),g.current=null)},onBlurCapture:d?void 0:m=>{m.currentTarget.contains(m.relatedTarget)||g.current||(g.current=m.target)}}}}(t,e),o=EF({...t,values:{orientation:t.orientation||"horizontal"},defaultClassName:"react-aria-Toolbar"}),r=y3(t);return delete r.id,K.createElement("div",{...IF(n,r),...o,ref:e,slot:t.slot||void 0,"data-orientation":t.orientation||"horizontal"},o.children)});function Ia(t,e){const n=+Mr(t)-+Mr(e);return n<0?-1:n>0?1:n}function AS(t,e){const n=Mr(t,e==null?void 0:e.in);return+function(o,r){const s=Mr(o,r==null?void 0:r.in);return s.setHours(23,59,59,999),s}(n,e)==+function(o,r){const s=Mr(o,r==null?void 0:r.in),i=s.getMonth();return s.setFullYear(s.getFullYear(),i+1,0),s.setHours(23,59,59,999),s}(n,e)}function TS(t,e,n){const[o,r,s]=Kf(n==null?void 0:n.in,t,t,e),i=Ia(r,s),a=Math.abs(function(d,u,f){const[p,_]=Kf(f==null?void 0:f.in,d,u);return 12*(p.getFullYear()-_.getFullYear())+(p.getMonth()-_.getMonth())}(r,s));if(a<1)return 0;r.getMonth()===1&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-i*a);let l=Ia(r,s)===-i;AS(o)&&a===1&&Ia(o,s)===1&&(l=!1);const c=i*(a-+l);return c===0?0:c}function MS(t,e,n){const o=function(r,s){return+Mr(r)-+Mr(s)}(t,e)/1e3;return(r=>{const s=(0,Math.trunc)(r);return s===0?0:s})(o)}function OS(t,e){return function(n,o,r){const s=TF(),i=(r==null?void 0:r.locale)??s.locale??MF,a=Ia(n,o);if(isNaN(a))throw new RangeError("Invalid time value");const l=Object.assign({},r,{addSuffix:r==null?void 0:r.addSuffix,comparison:a}),[c,d]=Kf(r==null?void 0:r.in,...a>0?[o,n]:[n,o]),u=MS(d,c),f=(x3(d)-x3(c))/1e3,p=Math.round((u-f)/60);let _;if(p<2)return p===0?i.formatDistance("lessThanXMinutes",1,l):i.formatDistance("xMinutes",p,l);if(p<45)return i.formatDistance("xMinutes",p,l);if(p<90)return i.formatDistance("aboutXHours",1,l);if(p<w3){const g=Math.round(p/60);return i.formatDistance("aboutXHours",g,l)}if(p<2520)return i.formatDistance("xDays",1,l);if(p<oc){const g=Math.round(p/w3);return i.formatDistance("xDays",g,l)}if(p<2*oc)return _=Math.round(p/oc),i.formatDistance("aboutXMonths",_,l);if(_=TS(d,c),_<12){const g=Math.round(p/oc);return i.formatDistance("xMonths",g,l)}{const g=_%12,m=Math.trunc(_/12);return g<3?i.formatDistance("aboutXYears",m,l):g<9?i.formatDistance("overXYears",m,l):i.formatDistance("almostXYears",m+1,l)}}(t,function(n){return AF(n,Date.now())}(t),e)}const DS=()=>{const t=X.c(7),{selectedLayout:e}=pS(),{setLayoutView:n}=mS();if(Un()&&!Xf("wasm_layouts"))return null;let o,r,s,i;return t[0]!==n?(o=a=>n(a),t[0]=n,t[1]=o):o=t[1],t[2]===Symbol.for("react.memo_cache_sentinel")?(r=h.jsx(np,{className:"min-w-[110px] border-border bg-background","data-testid":"layout-select",children:h.jsx(op,{placeholder:"Select a view"})}),t[2]=r):r=t[2],t[3]===Symbol.for("react.memo_cache_sentinel")?(s=h.jsx(Zf,{children:h.jsxs(v3,{children:[h.jsx(OF,{children:"View as"}),gS.map(PS)]})}),t[3]=s):s=t[3],t[4]!==e||t[5]!==o?(i=h.jsxs(rp,{"data-testid":"layout-select",value:e,onValueChange:o,children:[r,s]}),t[4]=e,t[5]=o,t[6]=i):i=t[6],i};function RS(t){const e=Jm(t);return h.jsx(e,{className:"h-4 w-4"})}function Jm(t){switch(t){case"vertical":return Sm;case"grid":return uH;case"slides":return Qc;default:return rc(t),tp}}function Km(t){return ep(t)}function PS(t){return h.jsx(Qf,{value:t,children:h.jsxs("div",{className:"flex items-center gap-1.5 leading-5",children:[RS(t),h.jsx("span",{children:Km(t)})]})},t)}function LS(){const t=X.c(7);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=[],t[0]=e):e=t[0];const[n,o]=function(i,a){const l=X.c(11);let c;l[0]!==a?(c=new DF(a),l[0]=a,l[1]=c):c=l[1];const d=c;let u;l[2]!==i||l[3]!==d?(u=()=>d.get(i),l[2]=i,l[3]=d,l[4]=u):u=l[4];const[f,p]=A.useState(u);let _;l[5]!==i||l[6]!==d?(_=b=>{p(b),d.set(i,b)},l[5]=i,l[6]=d,l[7]=_):_=l[7];const g=_;let m;return l[8]!==g||l[9]!==f?(m=[f,g],l[8]=g,l[9]=f,l[10]=m):m=l[10],m}("marimo:commands",e);let r,s;return t[1]!==n||t[2]!==o?(r=i=>{const a=(l=[i,...n],[...new Set(l)]);var l;o(a.slice(0,3))},t[1]=n,t[2]=o,t[3]=r):r=t[3],t[4]!==n||t[5]!==r?(s={recentCommands:n,addRecentCommand:r},t[4]=n,t[5]=r,t[6]=s):s=t[6],s}function Xm(t){return t.dropdown!==void 0}function Aa(t,e=""){return t.flatMap(n=>n.label?Xm(n)?Aa(n.dropdown,`${e+n.label} > `):{...n,label:e+n.label}:[])}const ni=t=>{const e=X.c(8),{children:n,layerTop:o}=t,r=o!==void 0&&o;let s;e[0]!==n?(s=K.Children.toArray(n),e[0]=n,e[1]=s):s=e[1];const[i,a]=s,l=`second-icon absolute ${r?"top-[-2px] left-[-2px]":"bottom-[-2px] right-[-2px]"} rounded-full`;let c,d;return e[2]!==a||e[3]!==l?(c=h.jsx("div",{className:l,children:a}),e[2]=a,e[3]=l,e[4]=c):c=e[4],e[5]!==i||e[6]!==c?(d=h.jsxs("div",{className:"multi-icon relative w-fit",children:[i,c]}),e[5]=i,e[6]=c,e[7]=d):d=e[7],d};function rd(t){const e=X.c(3),n=sd();let o;return e[0]!==t||e[1]!==n?(o=()=>{t!==void 0&&n([t])},e[0]=t,e[1]=n,e[2]=o):o=e[2],et(o)}function Zm(){const t=X.c(2),e=sd();let n;return t[0]!==e?(n=()=>e(C3(fo())),t[0]=e,t[1]=n):n=t[1],et(n)}function sd(){const t=X.c(2),{prepareForRun:e}=Lt();let n;return t[0]!==e?(n=async o=>{var a;if(o.length===0)return;const{cellHandles:r,cellData:s}=fo(),i=[];for(const l of o){const c=r[l],d=(a=c.current)==null?void 0:a.editorView;let u;d?(N3(d)!=="markdown"&&sp(d),u=j3(d)):u=s[l].code,i.push(u),e({cellId:l})}await PF({cellIds:o,codes:i}).catch(FS)},t[0]=e,t[1]=n):n=t[1],et(n)}function FS(t){Zt.error(t)}const Ta=Qt(null),zS=Qt(!1),id=E3("marimo:ai:chatState:v2",{chats:[],activeChatId:null}),BS=Qt(t=>{const e=t(id);return e.chats.find(n=>n.id===e.activeChatId)},(t,e,n)=>{e(id,o=>({...o,activeChatId:n}))}),ad=t=>{const e=X.c(7);let n,o;e[0]!==t?(n=a=>{var l;(a.ctrlKey||a.metaKey)&&a.key==="z"&&(a.preventDefault(),a.stopPropagation(),(l=t.onClick)==null||l.call(t,a))},e[0]=t,e[1]=n):n=e[1],e[2]===Symbol.for("react.memo_cache_sentinel")?(o={capture:!0},e[2]=o):o=e[2],ip(window,"keydown",n,o);const r=t.children??"Undo";let s,i;return e[3]===Symbol.for("react.memo_cache_sentinel")?(s=h.jsx(LF,{className:"ml-2",shortcut:"cmd-z"}),e[3]=s):s=e[3],e[4]!==r||e[5]!==t?(i=h.jsxs(Pe,{"data-testid":"undo-button",size:"sm",variant:"outline",...t,children:[r," ",s]}),e[4]=r,e[5]=t,e[6]=i):i=e[6],i};function ld(){const t=X.c(3),{deleteCell:e,undoDeleteCell:n}=Lt();let o;return t[0]!==e||t[1]!==n?(o=r=>{var l;if(dt.get(I3))return;const{cellId:s}=r,i=dt.get(sc),a=(((l=i.cellData[s])==null?void 0:l.code)??"").trim()==="";if(e({cellId:s}),FF({cellId:s}).catch(()=>{n()}),!a){const{dismiss:c}=lt({title:"Cell deleted",description:"You can bring it back by clicking undo or through the command palette.",action:h.jsx(ad,{"data-testid":"undo-delete-button",onClick:()=>{n(),d()}})}),d=c}},t[0]=e,t[1]=n,t[2]=o):o=t[2],et(o)}function Qm(){const t=X.c(3),{splitCell:e,undoSplitCell:n}=Lt();let o;return t[0]!==e||t[1]!==n?(o=r=>{const s=ic(r.cellId);if(!s)return;const i=j3(s);e(r);const{dismiss:a}=lt({title:"Cell split",action:h.jsx(ad,{"data-testid":"undo-split-button",size:"sm",variant:"outline",onClick:()=>{n({...r,snapshot:i}),l()},children:"Undo"})}),l=a},t[0]=e,t[1]=n,t[2]=o):o=t[2],et(o)}function cd(t){const e=X.c(49),{cell:n}=t,{createNewCell:o,updateCellConfig:r,updateCellName:s,moveCell:i,sendToTop:a,sendToBottom:l,addColumnBreakpoint:c,clearCellOutput:d}=Lt(),u=Qm(),f=rd(n==null?void 0:n.cellId),p=!We(I3),_=ld(),{openModal:g}=Vn(),m=en(Ta),b=We(ac),x=We(Ts),y=We(Ms),v=We(zF);if(!n||y){let N;return e[0]===Symbol.for("react.memo_cache_sentinel")?(N=[],e[0]=N):N=e[0],N}const{cellId:S,config:k,getEditorView:I,name:j,hasOutput:E,hasConsoleOutput:T,status:M}=n;let L;e[1]!==S||e[2]!==k.disabled||e[3]!==r?(L=async()=>{const N={disabled:!k.disabled};await Dr({configs:{[S]:N}}),r({cellId:S,config:N})},e[1]=S,e[2]=k.disabled,e[3]=r,e[4]=L):L=e[4];const B=L;let O;e[5]!==S||e[6]!==k.hide_code||e[7]!==I||e[8]!==r?(O=async()=>{const N={hide_code:!k.hide_code};await Dr({configs:{[S]:N}}),r({cellId:S,config:N});const $=I();$&&(N.hide_code?$.contentDOM.blur():$.focus())},e[5]=S,e[6]=k.hide_code,e[7]=I,e[8]=r,e[9]=O):O=e[9];const z=O;let F,V,P,C,H;return e[10]===Symbol.for("react.memo_cache_sentinel")?(F=h.jsx(Wm,{size:13,strokeWidth:1.5}),e[10]=F):F=e[10],e[11]!==S||e[12]!==j||e[13]!==g||e[14]!==s?(V=()=>{g(h.jsxs(cr,{children:[h.jsx(Os,{children:h.jsx(dr,{children:"Rename cell"})}),h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx(Rr,{htmlFor:"cell-name",children:"Cell name"}),h.jsx(bS,{placeholder:"cell name",value:j,onKeyDown:N=>{N.key==="Enter"&&(N.preventDefault(),N.stopPropagation(),g(null))},onChange:N=>s({cellId:S,name:N})})]})]}))},e[11]=S,e[12]=j,e[13]=g,e[14]=s,e[15]=V):V=e[15],e[16]!==S||e[17]!==s?(P=N=>s({cellId:S,name:N}),e[16]=S,e[17]=s,e[18]=P):P=e[18],e[19]!==j||e[20]!==P?(C=h.jsx(bS,{placeholder:"cell name",value:j,onChange:P}),e[19]=j,e[20]=P,e[21]=C):C=e[21],e[22]!==c||e[23]!==b||e[24]!==v||e[25]!==x||e[26]!==p||e[27]!==S||e[28]!==d||e[29]!==k.disabled||e[30]!==k.hide_code||e[31]!==o||e[32]!==_||e[33]!==I||e[34]!==T||e[35]!==E||e[36]!==i||e[37]!==j||e[38]!==f||e[39]!==l||e[40]!==a||e[41]!==m||e[42]!==u||e[43]!==M||e[44]!==V||e[45]!==C||e[46]!==B||e[47]!==z?(H=[[{icon:F,label:"Name",disableClick:!0,handle:$S,handleHeadless:V,rightElement:C},{icon:h.jsx(Qs,{size:13,strokeWidth:1.5}),label:"Run cell",hotkey:"cell.run",hidden:M==="running"||M==="queued"||M==="disabled-transitively"||k.disabled,handle:()=>f()},{icon:h.jsx(Xi,{size:13,strokeWidth:1.5}),label:"AI completion",hidden:!b,handle:()=>{m(N=>(N==null?void 0:N.cellId)===S?null:{cellId:S})},hotkey:"cell.aiCompletion"},{icon:h.jsx(ed,{size:13,strokeWidth:1.5}),label:"Split cell",hotkey:"cell.splitCell",handle:()=>u({cellId:S})},{icon:h.jsx(Zp,{size:13,strokeWidth:1.5}),label:"Export output as PNG",hidden:!E,handle:()=>function(N){const $=document.getElementById(k3.create(N));$&&($.classList.add("printing-output"),S3($,"result.png").finally(()=>{$.classList.remove("printing-output")}))}(S)},{icon:h.jsx(UF,{size:13,strokeWidth:1.5}),label:"Format cell",hotkey:"cell.format",handle:()=>{const N=I();N&&BF({[S]:N})}},{icon:k.hide_code?h.jsx(A3,{size:13,strokeWidth:1.5}):h.jsx(T3,{size:13,strokeWidth:1.5}),label:k.hide_code?"Show code":"Hide code",handle:z,hotkey:"cell.hideCode"},{icon:k.disabled?h.jsx(_r,{size:13,strokeWidth:1.5}):h.jsx(br,{size:13,strokeWidth:1.5}),label:"Reactive execution",rightElement:h.jsx(VF,{"data-testid":"cell-disable-switch",checked:!k.disabled,size:"sm",onCheckedChange:B}),handle:B},{icon:h.jsx(ap,{size:13,strokeWidth:1.5}),label:"Clear output",hidden:!(E||T),handle:()=>{d({cellId:S})}}],[{icon:h.jsx(lc,{}),label:"Convert to Markdown",hotkey:"cell.viewAsMarkdown",handle:()=>{const N=I();N&&(ar(x,o),Or(N,"markdown",{keepCodeAsIs:!1}))}},{icon:h.jsx(lr,{size:13,strokeWidth:1.5}),label:"Convert to SQL",handle:()=>{const N=I();N&&(ar(x,o),Or(N,"sql",{keepCodeAsIs:!1}))}},{icon:h.jsx(cc,{}),label:"Toggle as Python",handle:()=>{const N=I();N&&(ar(x,o),HF(N,"python",{force:!0}))}}],[{icon:h.jsxs(ni,{children:[h.jsx(ka,{size:13,strokeWidth:1.5}),h.jsx(M3,{size:8,strokeWidth:2})]}),label:"Create cell above",hotkey:"cell.createAbove",handle:()=>o({cellId:S,before:!0})},{icon:h.jsxs(ni,{children:[h.jsx(ka,{size:13,strokeWidth:1.5}),h.jsx(Zi,{size:8,strokeWidth:2})]}),label:"Create cell below",hotkey:"cell.createBelow",handle:()=>o({cellId:S,before:!1})},{icon:h.jsx(M3,{size:13,strokeWidth:1.5}),label:"Move cell up",hotkey:"cell.moveUp",handle:()=>i({cellId:S,before:!0})},{icon:h.jsx(Zi,{size:13,strokeWidth:1.5}),label:"Move cell down",hotkey:"cell.moveDown",handle:()=>i({cellId:S,before:!1})},{icon:h.jsx(O3,{size:13,strokeWidth:1.5}),label:"Move cell left",hotkey:"cell.moveLeft",handle:()=>i({cellId:S,direction:"left"}),hidden:v!=="columns"},{icon:h.jsx(dc,{size:13,strokeWidth:1.5}),label:"Move cell right",hotkey:"cell.moveRight",handle:()=>i({cellId:S,direction:"right"}),hidden:v!=="columns"},{icon:h.jsx(im,{size:13,strokeWidth:1.5}),label:"Send to top",hotkey:"cell.sendToTop",handle:()=>a({cellId:S})},{icon:h.jsx(sm,{size:13,strokeWidth:1.5}),label:"Send to bottom",hotkey:"cell.sendToBottom",handle:()=>l({cellId:S})},{icon:h.jsx($F,{size:13,strokeWidth:1.5}),label:"Break into new column",hotkey:"cell.addColumnBreakpoint",hidden:v!=="columns",handle:()=>c({cellId:S})}],[{icon:h.jsx(dS,{size:13,strokeWidth:1.5}),label:"Copy link to cell",disabled:!_S(j),tooltip:_S(j)?void 0:"Only named cells can be linked to",handle:async()=>{await yn(AH(j)),lt({description:"Link copied to clipboard"})}}],[{label:"Delete",hidden:!p,variant:"danger",icon:h.jsx(lp,{size:13,strokeWidth:1.5}),handle:()=>{_({cellId:S})}}]].map(VS).filter(US),e[22]=c,e[23]=b,e[24]=v,e[25]=x,e[26]=p,e[27]=S,e[28]=d,e[29]=k.disabled,e[30]=k.hide_code,e[31]=o,e[32]=_,e[33]=I,e[34]=T,e[35]=E,e[36]=i,e[37]=j,e[38]=f,e[39]=l,e[40]=a,e[41]=m,e[42]=u,e[43]=M,e[44]=V,e[45]=C,e[46]=B,e[47]=z,e[48]=H):H=e[48],H}function US(t){return t.length>0}function VS(t){return t.filter(HS)}function HS(t){return!t.hidden}function $S(t){t==null||t.stopPropagation(),t==null||t.preventDefault()}function WS(t){return!t.hidden}const dd=Qt(!1),eg=()=>{const t=X.c(37),[e,n]=fn(dd),o=qF(),r=We(GF),s=We(cp);let i;t[0]!==r?(i={cell:r},t[0]=r,t[1]=i):i=t[1];let a=cd(i).flat();a=Aa(a);const l=function(){const P=X.c(45),{theme:C}=Fo(),[H,N]=Ds(),[$,Y]=D3();let Z;P[0]!==N?(Z=async ce=>{await Rs({config:ce}).then(()=>{N(ce)})},P[0]=N,P[1]=Z):Z=P[1];const q=Z;let re;P[2]!==Y?(re=async ce=>{await WF({config:ce}).then(()=>{Y(ce)})},P[2]=Y,P[3]=re):re=P[3];const ne=re;let oe;if(P[4]!==$||P[5]!==H||P[6]!==ne||P[7]!==q||P[8]!==C){let ce,pe,de;P[10]!==$?(ce=Ke=>Ke!==$.width,P[10]=$,P[11]=ce):ce=P[11],P[12]!==$||P[13]!==ne?(pe=Ke=>({label:`App config > Set width=${Ke}`,handle:()=>{ne({...$,width:Ke})}}),P[12]=$,P[13]=ne,P[14]=pe):pe=P[14],P[15]!==H||P[16]!==q||P[17]!==C?(de={label:"Config > Toggle dark mode",handle:()=>{q({...H,display:{...H.display,theme:C==="dark"?"light":"dark"}})}},P[15]=H,P[16]=q,P[17]=C,P[18]=de):de=P[18];const ge=H.keymap.preset==="vim";let ie,xe;P[19]!==H||P[20]!==q?(ie=()=>{q({...H,keymap:{...H.keymap,preset:"vim"}})},P[19]=H,P[20]=q,P[21]=ie):ie=P[21],P[22]!==ge||P[23]!==ie?(xe={label:"Config > Switch keymap to VIM",hidden:ge,handle:ie},P[22]=ge,P[23]=ie,P[24]=xe):xe=P[24];const we=H.keymap.preset==="default";let ae,Se,me;P[25]!==H||P[26]!==q?(ae=()=>{q({...H,keymap:{...H.keymap,preset:"default"}})},P[25]=H,P[26]=q,P[27]=ae):ae=P[27],P[28]!==ae||P[29]!==we?(Se={label:"Config > Switch keymap to default (current: VIM)",hidden:we,handle:ae},P[28]=ae,P[29]=we,P[30]=Se):Se=P[30],P[31]!==H||P[32]!==q?(me=()=>{q({...H,completion:{...H.completion,copilot:!1}})},P[31]=H,P[32]=q,P[33]=me):me=P[33];const Te=H.completion.copilot!=="github";let Re,$e;P[34]!==me||P[35]!==Te?(Re={label:"Config > Disable GitHub Copilot",handle:me,hidden:Te},P[34]=me,P[35]=Te,P[36]=Re):Re=P[36],P[37]!==H||P[38]!==q?($e=()=>{q({...H,completion:{...H.completion,copilot:"github"}})},P[37]=H,P[38]=q,P[39]=$e):$e=P[39];const ze=H.completion.copilot==="github";let Ne;P[40]!==$e||P[41]!==ze?(Ne={label:"Config > Enable GitHub Copilot",handle:$e,hidden:ze},P[40]=$e,P[41]=ze,P[42]=Ne):Ne=P[42],oe=[...hH().filter(ce).map(pe),de,xe,Se,Re,Ne],P[4]=$,P[5]=H,P[6]=ne,P[7]=q,P[8]=C,P[9]=oe}else oe=P[9];const G=oe;let Q;return P[43]!==G?(Q=G.filter(WS),P[43]=G,P[44]=Q):Q=P[44],Q}();let c=Ig();c=[...Aa(c),...Aa(l)];const d=c.filter(qS),u=uc.keyBy(d,GS),{recentCommands:f,addRecentCommand:p}=LS();let _;t[2]!==f?(_=new Set(f),t[2]=f,t[3]=_):_=t[3];const g=_;let m,b;t[4]!==s||t[5]!==n?(m=P=>{KF(s.getHotkey("global.commandPalette").key)(P)&&(P.preventDefault(),n(YS))},t[4]=s,t[5]=n,t[6]=m):m=t[6],ip(document,"keydown",m),t[7]!==p||t[8]!==s||t[9]!==o||t[10]!==n?(b=(P,C)=>{const H=o[P];if(!H)return null;const N=s.getHotkey(P);return h.jsxs(po,{disabled:C.disabled,onSelect:()=>{p(P),n(!1),requestAnimationFrame(()=>{H()})},value:N.name,children:[h.jsxs("span",{children:[N.name,C.tooltip&&h.jsx("span",{className:"ml-2",children:C.tooltip})]}),h.jsx(P3,{children:h.jsx(hp,{shortcut:N.key})})]},P)},t[7]=p,t[8]=s,t[9]=o,t[10]=n,t[11]=b):b=t[11];const x=b;let y;t[12]!==p||t[13]!==s||t[14]!==n?(y=(P,C,H,N)=>{const $=H===void 0?{}:H;return h.jsxs(po,{disabled:$.disabled,onSelect:()=>{p(P),n(!1),requestAnimationFrame(()=>{C()})},value:P,children:[h.jsxs("span",{children:[P,$.tooltip&&h.jsxs("span",{className:"ml-2",children:["(",$.tooltip,")"]})]}),N&&h.jsx(P3,{children:h.jsx(hp,{shortcut:s.getHotkey(N).key})})]},P)},t[12]=p,t[13]=s,t[14]=n,t[15]=y):y=t[15];const v=y,S=JF;let k;t[16]===Symbol.for("react.memo_cache_sentinel")?(k=h.jsx(Qi,{placeholder:"Type to search..."}),t[16]=k):k=t[16];const I=up;let j;t[17]===Symbol.for("react.memo_cache_sentinel")?(j=h.jsx(hc,{children:"No results found."}),t[17]=j):j=t[17];const E=f.length>0&&h.jsxs(h.Fragment,{children:[h.jsx(dp,{heading:"Recently Used",children:f.map(P=>{const C=u[P];return YF(P)?x(P,{disabled:C==null?void 0:C.disabled,tooltip:C==null?void 0:C.tooltip}):C&&!Xm(C)?v(C.label,C.handleHeadless||C.handle,{disabled:C.disabled,tooltip:C.tooltip}):null})}),h.jsx(R3,{})]}),T=dp,M=s.iterate().map(P=>{if(g.has(P))return null;const C=u[P];return x(P,{disabled:C==null?void 0:C.disabled,tooltip:C==null?void 0:C.tooltip})}),L=d.map(P=>g.has(P.label)?null:v(P.label,P.handleHeadless||P.handle,{disabled:P.disabled,tooltip:P.tooltip}));let B;t[18]!==g||t[19]!==v?(B=P=>g.has(P.label)?null:v(`Cell > ${P.label}`,P.handleHeadless||P.handle,{disabled:P.disabled,tooltip:P.tooltip}),t[18]=g,t[19]=v,t[20]=B):B=t[20];const O=a.map(B);let z,F,V;return t[21]!==T||t[22]!==L||t[23]!==O||t[24]!==M?(z=h.jsxs(T,{heading:"Commands",children:[M,L,O]}),t[21]=T,t[22]=L,t[23]=O,t[24]=M,t[25]=z):z=t[25],t[26]!==I||t[27]!==z||t[28]!==j||t[29]!==E?(F=h.jsxs(I,{children:[j,E,z]}),t[26]=I,t[27]=z,t[28]=j,t[29]=E,t[30]=F):F=t[30],t[31]!==S||t[32]!==e||t[33]!==n||t[34]!==F||t[35]!==k?(V=h.jsxs(S,{open:e,onOpenChange:n,children:[k,F]}),t[31]=S,t[32]=e,t[33]=n,t[34]=F,t[35]=k,t[36]=V):V=t[36],V};function qS(t){return!t.hotkey}function GS(t){return t.label}function YS(t){return!t}const Ma="https://static.marimo.app",JS=t=>{const e=X.c(24),{onClose:n}=t,[o,r]=A.useState("");let s;s=Math.random().toString(36).slice(2,6);const i=`${o}-${s}`,a=`${Ma}/static/${i}`;let l,c,d,u,f,p,_,g,m,b,x;return e[0]!==n||e[1]!==i?(l=async y=>{y.preventDefault(),n();const v=await XF({download:!1,includeCode:!0,files:yS.INSTANCE.filenames()}),S=lt({title:"Uploading static notebook...",description:"Please wait."});await fetch(`${Ma}/api/static`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({html:v,path:i})}).catch(()=>{S.dismiss(),lt({title:"Error uploading static page",description:h.jsxs("div",{children:["Please try again later. If the problem persists, please file a bug report on"," ",h.jsx("a",{href:Zn.issuesPage,target:"_blank",className:"underline",children:"GitHub"}),"."]})})}),S.dismiss(),lt({title:"Static page uploaded!",description:h.jsxs("div",{children:["The URL has been copied to your clipboard.",h.jsx("br",{}),"You can share it with anyone."]})})},e[0]=n,e[1]=i,e[2]=l):l=e[2],e[3]===Symbol.for("react.memo_cache_sentinel")?(c=h.jsx(dr,{children:"Share static notebook"}),e[3]=c):c=e[3],e[4]===Symbol.for("react.memo_cache_sentinel")?(d=h.jsxs(Os,{children:[c,h.jsxs(Ps,{children:["You can publish a static, non-interactive version of this notebook to the public web. We will create a link for you that lives on"," ",h.jsx("a",{href:Ma,target:"_blank",children:Ma}),"."]})]}),e[4]=d):d=e[4],e[5]===Symbol.for("react.memo_cache_sentinel")?(u=y=>{const v=y.target.value.toLowerCase().replaceAll(/\s/g,"-").replaceAll(/[^\da-z-]/g,"");r(v)},e[5]=u):u=e[5],e[6]!==o?(f=h.jsx(ur,{"data-testid":"slug-input",id:"slug",autoFocus:!0,value:o,placeholder:"Notebook slug",onChange:u,required:!0,autoComplete:"off"}),e[6]=o,e[7]=f):f=e[7],e[8]!==a?(p=h.jsxs("div",{className:"font-semibold text-sm text-muted-foreground gap-2 flex flex-col",children:["Anyone will be able to access your notebook at this URL:",h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(KS,{text:a}),h.jsx("span",{className:"text-primary",children:a})]})]}),e[8]=a,e[9]=p):p=e[9],e[10]!==f||e[11]!==p?(_=h.jsxs("div",{className:"flex flex-col gap-6 py-4",children:[f,p]}),e[10]=f,e[11]=p,e[12]=_):_=e[12],e[13]!==n?(g=h.jsx(Pe,{"data-testid":"cancel-share-static-notebook-button",variant:"secondary",onClick:n,children:"Cancel"}),e[13]=n,e[14]=g):g=e[14],e[15]!==a?(m=h.jsx(Pe,{"data-testid":"share-static-notebook-button","aria-label":"Save",variant:"default",type:"submit",onClick:async()=>{await yn(a)},children:"Create"}),e[15]=a,e[16]=m):m=e[16],e[17]!==m||e[18]!==g?(b=h.jsxs(ea,{children:[g,m]}),e[17]=m,e[18]=g,e[19]=b):b=e[19],e[20]!==b||e[21]!==l||e[22]!==_?(x=h.jsx(cr,{className:"w-fit",children:h.jsxs("form",{onSubmit:l,children:[d,_,b]})}),e[20]=b,e[21]=l,e[22]=_,e[23]=x):x=e[23],x},KS=t=>{const e=X.c(8),[n,o]=K.useState(!1);let r;e[0]!==t.text?(r=Hn.stopPropagation(async c=>{c.preventDefault(),await yn(t.text),o(!0),setTimeout(()=>o(!1),2e3)}),e[0]=t.text,e[1]=r):r=e[1];const s=r;let i,a,l;return e[2]===Symbol.for("react.memo_cache_sentinel")?(i=h.jsx(Ls,{size:14,strokeWidth:1.5}),e[2]=i):i=e[2],e[3]!==s?(a=h.jsx(Pe,{"data-testid":"copy-static-notebook-url-button",onClick:s,size:"xs",variant:"secondary",children:i}),e[3]=s,e[4]=a):a=e[4],e[5]!==n||e[6]!==a?(l=h.jsx(Le,{content:"Copied!",open:n,children:a}),e[5]=n,e[6]=a,e[7]=l):l=e[7],l};function tg(){const t=X.c(3),{openConfirm:e}=Vn(),n=en(mo);let o;return t[0]!==e||t[1]!==n?(o=()=>{e({title:"Restart Kernel",description:"This will restart the Python kernel. You'll lose all data that's in memory. You will also lose any unsaved changes, so make sure to save your work before restarting.",variant:"destructive",confirmAction:h.jsx(L3,{onClick:async()=>{n({state:Ut.CLOSING}),await ZF(),QF()},"aria-label":"Confirm Restart",children:"Restart"})})},t[0]=e,t[1]=n,t[2]=o):o=t[2],o}const ud=[{type:"files",Icon:_m,tooltip:"View files",position:"sidebar"},{type:"variables",Icon:fc,tooltip:"Explore variables",position:"sidebar"},{type:"datasources",Icon:lr,tooltip:"Explore data sources",position:"sidebar"},{type:"dependencies",Icon:Na,tooltip:"Explore dependencies",position:"sidebar"},{type:"packages",Icon:ba,tooltip:"Manage packages",position:"sidebar"},{type:"outline",Icon:td,tooltip:"View outline",position:"sidebar"},{type:"chat",Icon:pc,tooltip:"Chat with AI",position:"sidebar"},{type:"documentation",Icon:nd,tooltip:"View live docs",position:"sidebar"},{type:"logs",Icon:fp,tooltip:"Notebook logs",position:"sidebar"},{type:"tracing",Icon:fH,tooltip:"Tracing",position:"sidebar"},{type:"snippets",Icon:zm,tooltip:"Snippets",position:"sidebar"},{type:"secrets",Icon:vm,tooltip:"Secrets",hidden:Un(),position:"sidebar"},{type:"scratchpad",Icon:ez,tooltip:"Scratchpad",position:"sidebar"},{type:"errors",Icon:ap,tooltip:"View errors",position:"footer"}];function ng(){const t=X.c(2),e=en(pp);let n;return t[0]!==e?(n=()=>{const o=document.getElementsByClassName("output-area"),r=window.innerHeight||document.documentElement.clientHeight;let s;s=null;for(const i of Array.from(o)){const a=i.getBoundingClientRect();if(a.top>=0&&a.top<=r||a.bottom>=0&&a.bottom<=r){s=Fs.parse(i.parentNode.id);break}}e(i=>({mode:tz(i.mode),cellAnchor:s})),requestAnimationFrame(()=>{var i;s!==null&&((i=document.getElementById(Fs.create(s)))==null||i.scrollIntoView())})},t[0]=e,t[1]=n):n=t[1],n}function yr(){return Ae.string().optional().describe(Je.of({label:"Password",inputType:"password",placeholder:"password",optionRegex:".*password.*"}))}function og(){return Ae.string().optional().describe(Je.of({label:"Token",inputType:"password",placeholder:"token",optionRegex:".*token.*"}))}function Oa(){return Ae.string().optional().describe(Je.of({label:"Warehouse Name",placeholder:"warehouse",optionRegex:".*warehouse.*"}))}function rg(){return Ae.string().optional().describe(Je.of({label:"URI",optionRegex:".*uri.*"}))}function xr(){return Ae.string().nonempty().describe(Je.of({label:"Host",placeholder:"localhost",optionRegex:".*host.*"}))}function _o(){return Ae.string().describe(Je.of({label:"Database",placeholder:"db name",optionRegex:".*database.*"}))}function wr(){return Ae.string().nonempty().describe(Je.of({label:"Username",placeholder:"username",optionRegex:".*username.*"}))}function vr(t){const e=Ae.coerce.string().describe(Je.of({label:"Port",inputType:"number",placeholder:t==null?void 0:t.toString()})).transform(Number).refine(n=>n>=0&&n<=65535,{message:"Port must be between 0 and 65535"});return t!==void 0?e.default(t.toString()):e}function sg(){return Ae.boolean().default(!1).describe(Je.of({label:"Read Only"}))}const ig=Ae.object({type:Ae.literal("postgres"),host:xr(),port:vr(5432).optional(),database:_o(),username:wr(),password:yr(),ssl:Ae.boolean().default(!1).describe(Je.of({label:"Use SSL"}))}).describe(Je.of({direction:"two-columns"})),ag=Ae.object({type:Ae.literal("mysql"),host:xr(),port:vr(3306),database:_o(),username:wr(),password:yr(),ssl:Ae.boolean().default(!1).describe(Je.of({label:"Use SSL"}))}).describe(Je.of({direction:"two-columns"})),lg=Ae.object({type:Ae.literal("sqlite"),database:_o().describe(Je.of({label:"Database Path"}))}).describe(Je.of({direction:"two-columns"})),cg=Ae.object({type:Ae.literal("duckdb"),database:_o().describe(Je.of({label:"Database Path"})),read_only:sg()}).describe(Je.of({direction:"two-columns"})),dg=Ae.object({type:Ae.literal("motherduck"),database:_o().default("my_db").describe(Je.of({label:"Database Name"})),token:og()}).describe(Je.of({direction:"two-columns"})),ug=Ae.object({type:Ae.literal("snowflake"),account:Ae.string().nonempty().describe(Je.of({label:"Account",optionRegex:".*snowflake.*"})),warehouse:Ae.string().optional().describe(Je.of({label:"Warehouse",optionRegex:".*snowflake.*"})),database:_o(),schema:Ae.string().optional().describe(Je.of({label:"Schema",optionRegex:".*snowflake.*"})),username:wr(),password:yr(),role:Ae.string().optional().describe(Je.of({label:"Role"}))}).describe(Je.of({direction:"two-columns"})),hg=Ae.object({type:Ae.literal("bigquery"),project:Ae.string().nonempty().describe(Je.of({label:"Project ID",optionRegex:".*bigquery.*"})),dataset:Ae.string().nonempty().describe(Je.of({label:"Dataset",optionRegex:".*bigquery.*"})),credentials_json:Ae.string().describe(Je.of({label:"Credentials JSON",inputType:"textarea"}))}).describe(Je.of({direction:"two-columns"})),fg=Ae.object({type:Ae.literal("clickhouse_connect"),host:xr(),port:vr(8123).optional(),username:wr(),password:yr(),secure:Ae.boolean().default(!1).describe(Je.of({label:"Use HTTPs"}))}).describe(Je.of({direction:"two-columns"})),pg=Ae.object({type:Ae.literal("timeplus"),host:xr().default("localhost"),port:vr(8123).optional(),username:wr().default("default"),password:yr().default("")}).describe(Je.of({direction:"two-columns"})),mg=Ae.object({type:Ae.literal("chdb"),database:_o().describe(Je.of({label:"Database Path"})),read_only:sg()}).describe(Je.of({direction:"two-columns"})),gg=Ae.object({type:Ae.literal("trino"),host:xr(),port:vr(8080),database:_o(),schema:Ae.string().describe(Je.of({label:"Schema",placeholder:"schema name",optionRegex:".*schema.*"})).optional(),username:wr(),password:yr(),async_support:Ae.boolean().default(!1).describe(Je.of({label:"Async Support"}))}).describe(Je.of({direction:"two-columns"})),_g=Ae.object({type:Ae.literal("iceberg"),name:Ae.string().describe(Je.of({label:"Catalog Name"})),catalog:Ae.discriminatedUnion("type",[Ae.object({type:Ae.literal("REST"),warehouse:Oa(),uri:Ae.string().optional().describe(Je.of({label:"URI",placeholder:"https://",optionRegex:".*uri.*"})),token:og()}),Ae.object({type:Ae.literal("SQL"),warehouse:Oa(),uri:Ae.string().optional().describe(Je.of({label:"URI",placeholder:"jdbc:iceberg://host:port/database",optionRegex:".*uri.*"}))}),Ae.object({type:Ae.literal("Hive"),warehouse:Oa(),uri:rg()}),Ae.object({type:Ae.literal("Glue"),warehouse:Oa(),uri:rg()}),Ae.object({type:Ae.literal("DynamoDB"),"dynamodb.profile-name":Ae.string().optional().describe(Je.of({label:"Profile Name"})),"dynamodb.region":Ae.string().optional().describe(Je.of({label:"Region"})),"dynamodb.access-key-id":Ae.string().optional().describe(Je.of({label:"Access Key ID"})),"dynamodb.secret-access-key":Ae.string().optional().describe(Je.of({label:"Secret Access Key",inputType:"password"})),"dynamodb.session-token":Ae.string().optional().describe(Je.of({label:"Session Token",inputType:"password"}))})]).default({type:"REST"}).describe(Je.of({special:"tabs"}))}),bg=Ae.object({type:Ae.literal("datafusion"),sessionContext:Ae.boolean().optional().describe(Je.of({label:"Use Session Context"}))}),yg=Ae.object({type:Ae.literal("pyspark"),host:xr().optional(),port:vr().optional()}),xg=Ae.object({type:Ae.literal("redshift"),host:xr(),port:vr(5439),connectionType:Ae.discriminatedUnion("type",[Ae.object({type:Ae.literal("IAM credentials"),region:Ae.string().describe(Je.of({label:"Region"})),aws_access_key_id:Ae.string().nonempty().describe(Je.of({label:"AWS Access Key ID",inputType:"password",optionRegex:".*aws_access_key_id.*"})),aws_secret_access_key:Ae.string().nonempty().describe(Je.of({label:"AWS Secret Access Key",inputType:"password",optionRegex:".*aws_secret_access_key.*"})),aws_session_token:Ae.string().optional().describe(Je.of({label:"AWS Session Token",inputType:"password",optionRegex:".*aws_session_token.*"}))}),Ae.object({type:Ae.literal("DB credentials"),user:wr(),password:yr()})]).default({type:"IAM credentials",aws_access_key_id:"",aws_secret_access_key:"",region:""}),database:_o()}).describe(Je.of({direction:"two-columns"})),XS=Ae.discriminatedUnion("type",[ig,ag,lg,cg,dg,ug,hg,fg,pg,mg,gg,_g,bg,yg,xg]),hd="env:";function Da(t){return typeof t=="string"&&t.startsWith(hd)}function fd(t){return`${hd}${t}`}const wg={sqlmodel:"SQLModel",sqlalchemy:"SQLAlchemy",duckdb:"DuckDB",clickhouse_connect:"ClickHouse Connect",chdb:"chDB",pyiceberg:"PyIceberg",ibis:"Ibis",motherduck:"MotherDuck",redshift:"Redshift"};class an{constructor(e,n,o){this.connection=void 0,this.orm=void 0,this.secrets=void 0,this.connection=e,this.orm=n,this.secrets=o}get imports(){const e=new Set(this.generateImports());switch(this.orm){case"sqlalchemy":e.add("import sqlalchemy");break;case"sqlmodel":e.add("import sqlmodel");break;case"duckdb":e.add("import duckdb")}return e}}class ZS{constructor(){this.secrets={}}get imports(){return Object.keys(this.secrets).length===0?new Set:new Set(["import os"])}print(e,n,o){if(e=(r=>`_${r}`)(e),Da(n)){const r=n.replace(hd,""),s=o?`os.environ.get("${r}", "${o}")`:`os.environ.get("${r}")`;return this.secrets[e]=s,e}if(o!=null){const r=`os.environ.get("${n}", "${o}")`;return this.secrets[e]=r,e}return typeof n=="number"||typeof n=="number"?`${n}`:typeof n=="boolean"?Br(n):n?`"${n}"`:""}printInFString(e,n,o){if(n===void 0)return"";if(typeof n=="number")return`${n}`;if(typeof n=="boolean")return Br(n);const r=this.print(e,n,o);return r.startsWith('"')&&r.endsWith('"')?r.slice(1,-1):`{${r}}`}printPassword(e,n,o){const r=o?this.printInFString.bind(this):this.print.bind(this);return Da(e)?r("password",e):r("password",n,e)}getSecrets(){return this.secrets}formatSecrets(){return Object.keys(this.secrets).length===0?"":Object.entries(this.secrets).map(([e,n])=>`${e} = ${n}`).join(`
|
3
3
|
`)}}class QS extends an{generateImports(){return[]}generateConnectionCode(){const e=this.connection.ssl?", connect_args={'sslmode': 'require'}":"",n=this.secrets.printPassword(this.connection.password,"POSTGRES_PASSWORD",!0),o=this.secrets.printInFString("username",this.connection.username),r=this.secrets.printInFString("host",this.connection.host),s=this.secrets.printInFString("port",this.connection.port),i=this.secrets.printInFString("database",this.connection.database);return St(`
|
4
4
|
DATABASE_URL = f"postgresql://${o}:${n}@${r}:${s}/${i}"
|
5
5
|
engine = ${this.orm}.create_engine(DATABASE_URL${e})
|
@@ -141,4 +141,4 @@ ${t.stack}`:o}function ro(t,e){return t>>>=0,Zr().subarray(t/1,t/1+e)}function J
|
|
141
141
|
subprocess.run("${T}")`}:{language:"python",code:`_${E} = """
|
142
142
|
${T}
|
143
143
|
"""`}:{language:"python",code:T}}(o,l);o==="sql"&&ar(a,s,i),s({code:j.code,before:!1,cellId:i??"__end__"})},e[3]=a,e[4]=s,e[5]=o,e[6]=i,e[7]=l,e[8]=f):f=e[8];const p=f;let _;e[9]!==l?(_=async()=>{await yn(l)},e[9]=l,e[10]=_):_=e[10];const g=_,m=r==="dark"?"dark":"light",b=o&&$L.has(o)?o:void 0;let x,y,v,S,k,I;return e[11]!==m||e[12]!==b||e[13]!==l?(x=h.jsx(_a,{theme:m,language:b,className:"cm border rounded overflow-hidden",extensions:HL,value:l,onChange:c}),e[11]=m,e[12]=b,e[13]=l,e[14]=x):x=e[14],e[15]!==g?(y=h.jsx(qL,{size:"xs",variant:"outline",onClick:g,children:"Copy"}),e[15]=g,e[16]=y):y=e[16],e[17]===Symbol.for("react.memo_cache_sentinel")?(v=h.jsx(ti,{className:"ml-2 h-4 w-4"}),e[17]=v):v=e[17],e[18]!==p?(S=h.jsxs(Pe,{size:"xs",variant:"outline",onClick:p,children:["Add to Notebook",v]}),e[18]=p,e[19]=S):S=e[19],e[20]!==S||e[21]!==y?(k=h.jsxs("div",{className:"flex justify-end mt-2 space-x-2",children:[y,S]}),e[20]=S,e[21]=y,e[22]=k):k=e[22],e[23]!==k||e[24]!==x?(I=h.jsxs("div",{className:"relative",children:[x,k]}),e[23]=k,e[24]=x,e[25]=I):I=e[25],I},qL=t=>{const e=X.c(12);let n,o;e[0]!==t?({onClick:n,...o}=t,e[0]=t,e[1]=n,e[2]=o):(n=e[1],o=e[2]);const[r,s]=A.useState(!1);let i,a,l;e[3]!==r?(i=()=>{r&&setTimeout(()=>s(!1),1e3)},a=[r],e[3]=r,e[4]=i,e[5]=a):(i=e[4],a=e[5]),A.useEffect(i,a),e[6]!==n?(l=u=>{n==null||n(u),s(!0)},e[6]=n,e[7]=l):l=e[7];const c=r?"Copied":"Copy";let d;return e[8]!==o||e[9]!==l||e[10]!==c?(d=h.jsx(Pe,{...o,onClick:l,children:c}),e[8]=o,e[9]=l,e[10]=c,e[11]=d):d=e[11],d},GL={code:({children:t,className:e})=>{const n=e==null?void 0:e.replace("language-","");return n&&typeof t=="string"?h.jsxs("div",{children:[h.jsx("div",{className:"text-xs text-muted-foreground pl-1",children:n}),h.jsx(WL,{code:t.trim(),language:n})]}):h.jsx("code",{className:e,children:t})}},d3=A.memo(t=>{const e=X.c(2),{content:n}=t;let o;return e[0]!==n?(o=h.jsx(UL,{components:GL,className:"prose dark:prose-invert max-w-none prose-pre:pl-0",children:n}),e[0]=n,e[1]=o):o=e[1],o},(t,e)=>t.content===e.content);d3.displayName="MemoizedMarkdownBlock";const u3=A.memo(({content:t})=>{const e=A.useMemo(()=>{return n=t,QV.lexer(n).map(o=>o.raw);var n},[t]);return h.jsx(h.Fragment,{children:e.map((n,o)=>h.jsx(d3,{content:n},`markdown-block-${o}`))})});u3.displayName="MarkdownRenderer";const qf=(t,e,n,o,r)=>e?{...t,chats:t.chats.map(s=>s.id===e?{...s,messages:[...s.messages,{role:n,content:o,timestamp:Date.now(),parts:r}],updatedAt:Date.now()}:s)}:(Zt.warn("No active chat"),t),YL=t=>{const e=X.c(13),{reasoning:n,index:o,isStreaming:r}=t,s=o===void 0?0:o,i=r!==void 0&&r,a=i?"reasoning":void 0;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=h.jsx(pc,{className:"h-3 w-3"}),e[0]=l):l=e[0];const c=i?"Thinking":"View reasoning";let d,u,f,p;return e[1]!==n.length||e[2]!==c?(d=h.jsx(eH,{className:"text-xs text-muted-foreground hover:bg-muted/50 px-2 py-1 h-auto rounded-sm [&[data-state=open]>svg]:rotate-180",children:h.jsxs("span",{className:"flex items-center gap-2",children:[l,c," (",n.length," ","chars)"]})}),e[1]=n.length,e[2]=c,e[3]=d):d=e[3],e[4]!==n?(u=h.jsx(tH,{className:"pb-2 px-2",children:h.jsx(pf,{className:"max-h-[200px] w-full",children:h.jsx("div",{className:"bg-muted/30 border border-muted rounded-md p-3 text-xs font-mono whitespace-pre-wrap text-muted-foreground",children:n})})}),e[4]=n,e[5]=u):u=e[5],e[6]!==d||e[7]!==u?(f=h.jsxs(nH,{value:"reasoning",className:"border-0",children:[d,u]}),e[6]=d,e[7]=u,e[8]=f):f=e[8],e[9]!==s||e[10]!==a||e[11]!==f?(p=h.jsx(oH,{type:"single",collapsible:!0,className:"w-full mb-2",value:a,children:f},s),e[9]=s,e[10]=a,e[11]=f,e[12]=p):p=e[12],p},JL=t=>{var y;const e=X.c(27),{onNewChat:n,activeChatId:o,setActiveChat:r,chats:s}=t,i=We(L4),{handleClick:a}=xa(),l=((y=i==null?void 0:i.open_ai)==null?void 0:y.model)||"gpt-4-turbo";let c,d,u,f,p,_,g,m,b,x;if(e[0]===Symbol.for("react.memo_cache_sentinel")?(c=h.jsx(Lr,{className:"h-4 w-4"}),e[0]=c):c=e[0],e[1]!==n?(d=h.jsx(Le,{content:"New chat",children:h.jsx(Pe,{variant:"text",size:"icon",onClick:n,children:c})}),e[1]=n,e[2]=d):d=e[2],e[3]!==a?(u=()=>a("ai"),e[3]=a,e[4]=u):u=e[4],e[5]!==l||e[6]!==u?(f=h.jsx(Pe,{variant:"text",size:"xs",className:"hover:bg-foreground/10 py-2",onClick:u,children:l}),e[5]=l,e[6]=u,e[7]=f):f=e[7],e[8]!==d||e[9]!==f?(p=h.jsxs("div",{className:"flex items-center gap-2",children:[d,f]}),e[8]=d,e[9]=f,e[10]=p):p=e[10],e[11]===Symbol.for("react.memo_cache_sentinel")?(_=h.jsx(Le,{content:"Previous chats",children:h.jsx(Ys,{asChild:!0,children:h.jsx(Pe,{variant:"text",size:"icon",children:h.jsx(iH,{className:"h-4 w-4"})})})}),e[11]=_):_=e[11],e[12]!==s.length?(g=s.length===0&&h.jsx(An,{title:"No chats yet",description:"Start a new chat to get started",icon:h.jsx(pc,{})}),e[12]=s.length,e[13]=g):g=e[13],e[14]!==o||e[15]!==s||e[16]!==r){let v;e[18]!==o||e[19]!==r?(v=S=>h.jsxs("div",{className:Oe("p-3 rounded-md cursor-pointer hover:bg-accent",S.id===o&&"bg-accent"),onClick:()=>{r(S.id)},children:[h.jsx("div",{className:"font-medium",children:S.title}),h.jsx("div",{className:"text-sm text-muted-foreground",children:aH(S.updatedAt)})]},S.id),e[18]=o,e[19]=r,e[20]=v):v=e[20],m=s.map(v),e[14]=o,e[15]=s,e[16]=r,e[17]=m}else m=e[17];return e[21]!==g||e[22]!==m?(b=h.jsxs(Pr,{children:[_,h.jsx(Vs,{className:"w-[520px] p-0",align:"start",side:"right",children:h.jsx(pf,{className:"h-[500px] p-4",children:h.jsxs("div",{className:"space-y-4",children:[g,m]})})})]}),e[21]=g,e[22]=m,e[23]=b):b=e[23],e[24]!==p||e[25]!==b?(x=h.jsxs("div",{className:"flex border-b px-2 py-1 justify-between flex-shrink-0 items-center",children:[p,b]}),e[24]=p,e[25]=b,e[26]=x):x=e[26],x},h3=A.memo(t=>{var _;const e=X.c(17),{message:n,index:o,theme:r,onEdit:s,setChatState:i,chatState:a,isStreamingReasoning:l,totalMessages:c}=t,d=n.role==="user"?"justify-end":"justify-start";let u,f,p;return e[0]!==d?(u=Oe("flex group relative",d),e[0]=d,e[1]=u):u=e[1],e[2]!==a||e[3]!==o||e[4]!==l||e[5]!==n.content||e[6]!==n.id||e[7]!==n.parts||e[8]!==n.role||e[9]!==s||e[10]!==i||e[11]!==r||e[12]!==c?(f=n.role==="user"?h.jsx("div",{className:"w-[95%] bg-background border p-1 rounded-sm",children:h.jsx(Rc,{value:n.content,theme:r,placeholder:"Type your message...",onChange:ZL,onSubmit:(g,m)=>{m.trim()&&(s(o,m),a.activeChatId&&i(b=>qf(b,a.activeChatId,"user",m)))},onClose:QL},n.id)}):h.jsxs("div",{className:"w-[95%]",children:[h.jsx("div",{className:"absolute right-1 top-1 opacity-0 group-hover:opacity-100 transition-opacity",children:h.jsx(nS,{className:"h-3 w-3",value:n.content})}),(_=n.parts)==null?void 0:_.map((g,m)=>{switch(g.type){case"text":return h.jsx(u3,{content:g.text});case"reasoning":return h.jsx(YL,{reasoning:g.reasoning,index:m,isStreaming:o===c-1&&l});default:return null}})]}),e[2]=a,e[3]=o,e[4]=l,e[5]=n.content,e[6]=n.id,e[7]=n.parts,e[8]=n.role,e[9]=s,e[10]=i,e[11]=r,e[12]=c,e[13]=f):f=e[13],e[14]!==u||e[15]!==f?(p=h.jsx("div",{className:u,children:f}),e[14]=u,e[15]=f,e[16]=p):p=e[16],p});h3.displayName="ChatMessage";const f3=A.memo(t=>{var c,d;const e=X.c(8),{input:n,setInput:o,onSubmit:r,theme:s,inputRef:i}=t;let a,l;return e[0]!==((c=i.current)==null?void 0:c.editor)?(a=()=>{var u,f;return(f=(u=i.current)==null?void 0:u.editor)==null?void 0:f.blur()},e[0]=(d=i.current)==null?void 0:d.editor,e[1]=a):a=e[1],e[2]!==n||e[3]!==r||e[4]!==o||e[5]!==a||e[6]!==s?(l=h.jsx("div",{className:"px-2 py-3 border-t relative flex-shrink-0 min-h-[80px]",children:h.jsx(Rc,{value:n,onChange:o,onSubmit:r,onClose:a,theme:s,placeholder:"Type your message..."})}),e[2]=n,e[3]=r,e[4]=o,e[5]=a,e[6]=s,e[7]=l):l=e[7],l});f3.displayName="ChatInput";const KL=()=>{const t=X.c(6),e=We(ac),{handleClick:n}=xa();if(!e){let r,s,i;return t[0]!==n?(r=h.jsx(Pe,{variant:"outline",size:"sm",onClick:()=>n("ai"),children:"Edit AI settings"}),t[0]=n,t[1]=r):r=t[1],t[2]===Symbol.for("react.memo_cache_sentinel")?(s=h.jsx(pc,{}),t[2]=s):s=t[2],t[3]!==r?(i=h.jsx(An,{title:"Chat with AI",description:"AI is currently disabled. Add your API key to enable.",action:r,icon:s}),t[3]=r,t[4]=i):i=t[4],i}let o;return t[5]===Symbol.for("react.memo_cache_sentinel")?(o=h.jsx(XL,{}),t[5]=o):o=t[5],o},XL=()=>{const t=X.c(86),[e,n]=fn(id),[o,r]=fn(BS),[s,i]=A.useState(""),a=A.useRef(null),l=A.useRef(null),c=A.useRef(null),d=A.useRef(null),{theme:u}=Fo(),f=Op(),p=o==null?void 0:o.id;let _,g,m,b,x,y;t[0]!==o?(g=o?o.messages.map(eF):[],t[0]=o,t[1]=g):g=t[1],_=g,t[2]!==f?(m=f.getAiURL("chat").toString(),t[2]=f,t[3]=m):m=t[3],t[4]!==f?(b=f.headers(),t[4]=f,t[5]=b):b=t[5],t[6]!==n?(x=ze=>{n(Ne=>qf(Ne,Ne.activeChatId,"assistant",ze.content,ze.parts))},t[6]=n,t[7]=x):x=t[7],t[8]!==p||t[9]!==_||t[10]!==m||t[11]!==b||t[12]!==x?(y={id:p,initialMessages:_,keepLastMessageOnError:!0,experimental_throttle:100,api:m,headers:b,experimental_prepareRequestBody:nF,onFinish:x,onError:oF,onResponse:rF},t[8]=p,t[9]=_,t[10]=m,t[11]=b,t[12]=x,t[13]=y):y=t[13];const{messages:v,input:S,setInput:k,setMessages:I,append:j,handleSubmit:E,error:T,status:M,reload:L,stop:B}=rH(y),O=M==="submitted"||M==="streaming",z=sF,F=O&&v.length>0&&z(v);let V,P,C;t[14]===Symbol.for("react.memo_cache_sentinel")?(V=()=>{requestAnimationFrame(()=>{if(c.current){const ze=c.current;ze.scrollTop=ze.scrollHeight}})},t[14]=V):V=t[14],t[15]!==e.activeChatId?(P=[e.activeChatId],t[15]=e.activeChatId,t[16]=P):P=t[16],A.useEffect(V,P),t[17]!==j||t[18]!==n||t[19]!==k?(C=ze=>{const Ne={id:sH(),title:`${ze.slice(0,30)}...`,messages:[{role:"user",content:ze,timestamp:Date.now()}],createdAt:Date.now(),updatedAt:Date.now()};n(Ke=>({chats:[...Ke.chats,Ne],activeChatId:Ne.id})),k(""),j({role:"user",content:ze})},t[17]=j,t[18]=n,t[19]=k,t[20]=C):C=t[20];const H=C;let N;t[21]!==r||t[22]!==k?(N=()=>{r(null),k(""),i("")},t[21]=r,t[22]=k,t[23]=N):N=t[23];const $=N;let Y;t[24]!==j||t[25]!==I?(Y=(ze,Ne)=>{I(Ke=>Ke.slice(0,ze)),j({role:"user",content:Ne})},t[24]=j,t[25]=I,t[26]=Y):Y=t[26];const Z=Y;let q;t[27]!==e.activeChatId||t[28]!==E||t[29]!==n?(q=(ze,Ne)=>{Ne.trim()&&(E(ze),e.activeChatId&&n(Ke=>qf(Ke,e.activeChatId,"user",Ne)))},t[27]=e.activeChatId,t[28]=E,t[29]=n,t[30]=q):q=t[30];const re=q;let ne;t[31]!==L?(ne=()=>{L()},t[31]=L,t[32]=ne):ne=t[32];const oe=ne;let G;t[33]!==H||t[34]!==s?(G=()=>{s.trim()&&H(s.trim())},t[33]=H,t[34]=s,t[35]=G):G=t[35];const Q=G;let ce;t[36]===Symbol.for("react.memo_cache_sentinel")?(ce=()=>{var ze,Ne;return(Ne=(ze=a.current)==null?void 0:ze.editor)==null?void 0:Ne.blur()},t[36]=ce):ce=t[36];const pe=ce,de=o==null?void 0:o.id;let ge,ie,xe,we,ae,Se,me,Te,Re,$e;if(t[37]!==e.chats||t[38]!==$||t[39]!==r||t[40]!==de?(ge=h.jsx(Bp,{children:h.jsx(JL,{onNewChat:$,activeChatId:de,setActiveChat:r,chats:e.chats})}),t[37]=e.chats,t[38]=$,t[39]=r,t[40]=de,t[41]=ge):ge=t[41],t[42]!==Q||t[43]!==v||t[44]!==s||t[45]!==u?(ie=(!v||v.length===0)&&h.jsx("div",{className:"flex rounded-md border px-1 bg-background",children:h.jsx(Rc,{value:s,placeholder:"Ask anything, @ to include context about tables or dataframes",theme:u,onClose:pe,onChange:i,onSubmit:Q},"new-thread-input")}),t[42]=Q,t[43]=v,t[44]=s,t[45]=u,t[46]=ie):ie=t[46],t[47]!==e||t[48]!==Z||t[49]!==F||t[50]!==v||t[51]!==n||t[52]!==u){let ze;t[54]!==e||t[55]!==Z||t[56]!==F||t[57]!==v.length||t[58]!==n||t[59]!==u?(ze=(Ne,Ke)=>h.jsx(h3,{message:Ne,index:Ke,theme:u,onEdit:Z,setChatState:n,chatState:e,isStreamingReasoning:F,totalMessages:v.length},Ke),t[54]=e,t[55]=Z,t[56]=F,t[57]=v.length,t[58]=n,t[59]=u,t[60]=ze):ze=t[60],xe=v.map(ze),t[47]=e,t[48]=Z,t[49]=F,t[50]=v,t[51]=n,t[52]=u,t[53]=xe}else xe=t[53];return t[61]!==O?(we=O&&h.jsx("div",{className:"flex justify-center py-4",children:h.jsx(Dp,{className:"h-4 w-4 animate-spin"})}),t[61]=O,t[62]=we):we=t[62],t[63]!==T||t[64]!==oe?(ae=T&&h.jsxs("div",{className:"flex items-center justify-center space-x-2 mb-4",children:[h.jsx(Xs,{error:T}),h.jsx(Pe,{variant:"outline",size:"sm",onClick:oe,children:"Retry"})]}),t[63]=T,t[64]=oe,t[65]=ae):ae=t[65],t[66]===Symbol.for("react.memo_cache_sentinel")?(Se=h.jsx("div",{ref:d}),t[66]=Se):Se=t[66],t[67]!==ie||t[68]!==xe||t[69]!==we||t[70]!==ae?(me=h.jsxs("div",{className:"flex-1 px-3 bg-[var(--slate-1)] gap-4 py-3 flex flex-col overflow-y-auto",ref:c,children:[ie,xe,we,ae,Se]}),t[67]=ie,t[68]=xe,t[69]=we,t[70]=ae,t[71]=me):me=t[71],t[72]!==O||t[73]!==B?(Te=O&&h.jsx("div",{className:"w-full flex justify-center items-center z-20 border-t",children:h.jsx(Pe,{variant:"linkDestructive",size:"sm",onClick:B,children:"Stop"})}),t[72]=O,t[73]=B,t[74]=Te):Te=t[74],t[75]!==re||t[76]!==S||t[77]!==v||t[78]!==k||t[79]!==u?(Re=v&&v.length>0&&h.jsx(f3,{input:S,setInput:k,onSubmit:re,theme:u,inputRef:l}),t[75]=re,t[76]=S,t[77]=v,t[78]=k,t[79]=u,t[80]=Re):Re=t[80],t[81]!==ge||t[82]!==me||t[83]!==Te||t[84]!==Re?($e=h.jsxs("div",{className:"flex flex-col h-[calc(100%-53px)]",children:[ge,me,Te,Re]}),t[81]=ge,t[82]=me,t[83]=Te,t[84]=Re,t[85]=$e):$e=t[85],$e};function ZL(){}function QL(){}function eF(t){const{role:e,content:n,timestamp:o,parts:r}=t;return{role:e,content:n,id:o.toString(),parts:r}}function tF(t){return t.content}function nF(t){return{...t,...y4({input:t.messages.map(tF).join(`
|
144
|
-
`)}),includeOtherCode:Nc("")}}function oF(t){Zt.error("An error occurred:",t)}function rF(t){Zt.debug("Received HTTP response from server:",t)}function sF(t){if(t.length===0)return!1;const e=t.at(-1);if(!e||e.role!=="assistant"||!e.parts)return!1;const n=e.parts;return n.length===0?!1:n[n.length-1].type==="reasoning"}const iF=K.lazy(()=>Rp(()=>import("./tracing-C7bGildW.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122]),import.meta.url).then(t=>({default:t.Tracing}))),aF=()=>{const t=X.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=h.jsx(K.Suspense,{fallback:h.jsx(lF,{}),children:h.jsx(iF,{})}),t[0]=e):e=t[0],e},lF=()=>{const t=X.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=h.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:h.jsx(eo,{})}),t[0]=e):e=t[0],e},cF=()=>{const t=X.c(25),{openModal:e,closeModal:n}=Vn();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=[],t[0]=o):o=t[0];const{data:r,loading:s,error:i,reload:a}=$n(uF,o);let l;t[1]!==r?(l=r===void 0?[]:r,t[1]=r,t[2]=l):l=t[2];const c=l;let d;t[3]!==c?(d=c.filter(hF).map(fF),t[3]=c,t[4]=d):d=t[4];const u=d;if(s&&c.length===0){let y;return t[5]===Symbol.for("react.memo_cache_sentinel")?(y=h.jsx(eo,{size:"medium",centered:!0}),t[5]=y):y=t[5],y}if(i){let y;return t[6]!==i?(y=h.jsx(Xs,{error:i}),t[6]=i,t[7]=y):y=t[7],y}if(c.length===0){let y;return t[8]===Symbol.for("react.memo_cache_sentinel")?(y=h.jsx(An,{title:"No environment variables",description:"No environment variables are available in this notebook.",icon:h.jsx(Kc,{})}),t[8]=y):y=t[8],y}let f,p,_,g,m,b,x;return t[9]!==n||t[10]!==e||t[11]!==u||t[12]!==a?(f=()=>e(h.jsx(kg,{providerNames:u,onSuccess:()=>{a(),n()},onClose:n})),t[9]=n,t[10]=e,t[11]=u,t[12]=a,t[13]=f):f=t[13],t[14]===Symbol.for("react.memo_cache_sentinel")?(p=h.jsx(Lr,{className:"h-4 w-4"}),t[14]=p):p=t[14],t[15]!==f?(_=h.jsx("div",{className:"flex justify-end h-8 border-b",children:h.jsx("button",{type:"button",className:"float-right border-l px-2 m-0 h-full hover:bg-accent hover:text-accent-foreground",onClick:f,children:p})}),t[15]=f,t[16]=_):_=t[16],t[17]===Symbol.for("react.memo_cache_sentinel")?(g=h.jsx(Gp,{children:h.jsxs(Ks,{children:[h.jsx(Fr,{children:"Environment Variable"}),h.jsx(Fr,{children:"Source"}),h.jsx(Fr,{})]})}),t[17]=g):g=t[17],t[18]!==c?(m=c.map(pF),t[18]=c,t[19]=m):m=t[19],t[20]!==m?(b=h.jsxs(qp,{className:"overflow-auto flex-1 mb-16",children:[g,h.jsx(Yp,{children:m})]}),t[20]=m,t[21]=b):b=t[21],t[22]!==_||t[23]!==b?(x=h.jsxs("div",{className:"flex flex-col h-full",children:[_,b]}),t[22]=_,t[23]=b,t[24]=x):x=t[24],x},dF=t=>{const e=X.c(9),{className:n,ariaLabel:o,onCopy:r}=t,[s,i]=K.useState(!1);let a;e[0]!==r?(a=()=>{r(),i(!0),setTimeout(()=>i(!1),1e3)},e[0]=r,e[1]=a):a=e[1];const l=a;let c,d;return e[2]!==s?(c=s?h.jsx(yc,{className:"w-3 h-3 text-green-700 rounded"}):h.jsx(Ls,{className:"w-3 h-3 hover:bg-muted rounded"}),e[2]=s,e[3]=c):c=e[3],e[4]!==o||e[5]!==n||e[6]!==l||e[7]!==c?(d=h.jsx("button",{type:"button",className:n,onClick:l,"aria-label":o,children:c}),e[4]=o,e[5]=n,e[6]=l,e[7]=c,e[8]=d):d=e[8],d};async function uF(){return vg((await xS.request({})).secrets)}function hF(t){return t.provider!=="env"}function fF(t){return t.name}function pF(t){return t.keys.map(e=>h.jsxs(Ks,{className:"group",children:[h.jsx(zr,{children:e}),h.jsx(zr,{children:t.provider!=="env"&&h.jsx(z4,{variant:"outline",className:"select-none",children:t.name})}),h.jsx(zr,{children:h.jsx(dF,{ariaLabel:`Copy ${e}`,onCopy:async()=>{await yn(`os.environ["${e}"]`),lt({title:"Copied to clipboard",description:`os.environ["${e}"] has been copied to your clipboard.`})},className:Oe("float-right px-2 h-full text-xs text-muted-foreground hover:text-foreground","invisible group-hover:visible")})})]},`${t.name}-${e}`))}const mF=K.lazy(()=>Rp(()=>import("./terminal-BlJOU13l.js"),__vite__mapDeps([123,1,2,124]),import.meta.url)),gF=t=>{const e=X.c(120),{children:n}=t,{isSidebarOpen:o,isTerminalOpen:r,selectedPanel:s}=bc(),{setIsSidebarOpen:i,setIsTerminalOpen:a}=na(),l=K.useRef(null),c=K.useRef(null);let d,u,f,p,_;e[0]!==o?(d=()=>{if(!l.current)return;const ue=l.current.isCollapsed();o&&ue&&l.current.expand(),o||ue||l.current.collapse(),requestAnimationFrame(bF)},u=[o],e[0]=o,e[1]=d,e[2]=u):(d=e[1],u=e[2]),A.useEffect(d,u),e[3]!==r?(f=()=>{if(!c.current)return;const ue=c.current.isCollapsed();r&&ue&&c.current.expand(),r||ue||c.current.collapse(),requestAnimationFrame(xF)},p=[r],e[3]=r,e[4]=f,e[5]=p):(f=e[4],p=e[5]),A.useEffect(f,p),e[6]!==n?(_=h.jsx(Vc,{id:"app",className:"relative h-full",children:h.jsx(A.Suspense,{children:n})},"app"),e[6]=n,e[7]=_):_=e[7];const g=_,m=o?"resize-handle":"resize-handle-collapsed";let b,x;e[8]!==m?(b=Oe("border-border no-print z-10",m,"vertical"),e[8]=m,e[9]=b):b=e[9],e[10]!==b?(x=h.jsx(aS,{onDragging:lS,className:b}),e[10]=b,e[11]=x):x=e[11];const y=x,v=r?"resize-handle":"resize-handle-collapsed";let S,k;e[12]!==v?(S=Oe("border-border no-print z-20",v,"horizontal"),e[12]=v,e[13]=S):S=e[13],e[14]!==S?(k=h.jsx(aS,{onDragging:lS,className:S}),e[14]=S,e[15]=k):k=e[15];const I=k;let j,E,T,M,L,B,O,z,F,V,P,C,H,N,$,Y,Z,q,re,ne,oe;e[16]!==s?(j=h.jsx("div",{className:"text-sm text-[var(--slate-11)] uppercase tracking-wide font-semibold flex-1",children:s}),e[16]=s,e[17]=j):j=e[17],e[18]!==i?(E=()=>i(!1),e[18]=i,e[19]=E):E=e[19],e[20]===Symbol.for("react.memo_cache_sentinel")?(T=h.jsx(go,{className:"w-4 h-4"}),e[20]=T):T=e[20],e[21]!==E?(M=h.jsx(Pe,{"data-testid":"close-helper-pane",className:"m-0",size:"xs",variant:"text",onClick:E,children:T}),e[21]=E,e[22]=M):M=e[22],e[23]!==j||e[24]!==M?(L=h.jsxs("div",{className:"p-3 border-b flex justify-between items-center",children:[j,M]}),e[23]=j,e[24]=M,e[25]=L):L=e[25],e[26]!==s?(B=s==="files"&&h.jsx(rR,{}),e[26]=s,e[27]=B):B=e[27],e[28]!==s?(O=s==="errors"&&h.jsx(Ax,{}),e[28]=s,e[29]=O):O=e[29],e[30]!==s?(z=s==="variables"&&h.jsx(k2,{}),e[30]=s,e[31]=z):z=e[31],e[32]!==s?(F=s==="dependencies"&&h.jsx(TD,{}),e[32]=s,e[33]=F):F=e[33],e[34]!==s?(V=s==="packages"&&h.jsx(TR,{}),e[34]=s,e[35]=V):V=e[35],e[36]!==s?(P=s==="outline"&&h.jsx(rO,{}),e[36]=s,e[37]=P):P=e[37],e[38]!==s?(C=s==="datasources"&&h.jsx(SR,{}),e[38]=s,e[39]=C):C=e[39],e[40]!==s?(H=s==="documentation"&&h.jsx(PD,{}),e[40]=s,e[41]=H):H=e[41],e[42]!==s?(N=s==="snippets"&&h.jsx(cR,{}),e[42]=s,e[43]=N):N=e[43],e[44]!==s?($=s==="scratchpad"&&h.jsx(AR,{}),e[44]=s,e[45]=$):$=e[45],e[46]!==s?(Y=s==="chat"&&h.jsx(KL,{}),e[46]=s,e[47]=Y):Y=e[47],e[48]!==s?(Z=s==="logs"&&h.jsx(S2,{}),e[48]=s,e[49]=Z):Z=e[49],e[50]!==s?(q=s==="tracing"&&h.jsx(aF,{}),e[50]=s,e[51]=q):q=e[51],e[52]!==s?(re=s==="secrets"&&h.jsx(cF,{}),e[52]=s,e[53]=re):re=e[53],e[54]!==B||e[55]!==O||e[56]!==z||e[57]!==F||e[58]!==V||e[59]!==P||e[60]!==C||e[61]!==H||e[62]!==N||e[63]!==$||e[64]!==Y||e[65]!==Z||e[66]!==q||e[67]!==re?(ne=h.jsx(A.Suspense,{children:h.jsxs(Fc,{children:[B,O,z,F,V,P,C,H,N,$,Y,Z,q,re]})}),e[54]=B,e[55]=O,e[56]=z,e[57]=F,e[58]=V,e[59]=P,e[60]=C,e[61]=H,e[62]=N,e[63]=$,e[64]=Y,e[65]=Z,e[66]=q,e[67]=re,e[68]=ne):ne=e[68],e[69]!==L||e[70]!==ne?(oe=h.jsx(kc,{children:h.jsxs("div",{className:"flex flex-col h-full flex-1 overflow-hidden mr-[-4px]",children:[L,ne]})}),e[69]=L,e[70]=ne,e[71]=oe):oe=e[71];const G=oe,Q=o&&"border-r border-l border-[var(--slate-7)]";let ce,pe,de,ge,ie,xe;e[72]!==Q?(ce=Oe("dark:bg-[var(--slate-1)] no-print print:hidden hide-on-fullscreen",Q),e[72]=Q,e[73]=ce):ce=e[73],e[74]===Symbol.for("react.memo_cache_sentinel")?(pe=(ue,je)=>{var ve;je===0&&ue===10&&((ve=l.current)==null||ve.resize(30))},e[74]=pe):pe=e[74],e[75]!==i?(de=()=>i(!1),ge=()=>i(!0),e[75]=i,e[76]=de,e[77]=ge):(de=e[76],ge=e[77]),e[78]!==G||e[79]!==y?(ie=h.jsxs("span",{className:"flex flex-row h-full",children:[G," ",y]}),e[78]=G,e[79]=y,e[80]=ie):ie=e[80],e[81]!==ce||e[82]!==de||e[83]!==ge||e[84]!==ie?(xe=h.jsx(Vc,{ref:l,id:"helper",collapsedSize:0,collapsible:!0,className:ce,minSize:10,defaultSize:0,maxSize:75,onResize:pe,onCollapse:de,onExpand:ge,children:ie},"helper"),e[81]=ce,e[82]=de,e[83]=ge,e[84]=ie,e[85]=xe):xe=e[85];const we=xe,ae=r&&"border-[var(--slate-7)]";let Se,me,Te,Re,$e,ze,Ne,Ke;e[86]!==ae?(Se=Oe("dark:bg-[var(--slate-1)] no-print print:hidden hide-on-fullscreen",ae),e[86]=ae,e[87]=Se):Se=e[87],e[88]===Symbol.for("react.memo_cache_sentinel")?(me=(ue,je)=>{var ve;je===0&&ue===10&&((ve=c.current)==null||ve.resize(30))},e[88]=me):me=e[88],e[89]!==a?(Te=()=>a(!1),Re=()=>a(!0),e[89]=a,e[90]=Te,e[91]=Re):(Te=e[90],Re=e[91]),e[92]!==a?($e=()=>a(!1),e[92]=a,e[93]=$e):$e=e[93],e[94]!==r||e[95]!==$e?(ze=h.jsx(mF,{visible:r,onClose:$e}),e[94]=r,e[95]=$e,e[96]=ze):ze=e[96],e[97]!==r||e[98]!==ze?(Ne=h.jsx(CR,{isOpen:r,children:ze}),e[97]=r,e[98]=ze,e[99]=Ne):Ne=e[99],e[100]!==Se||e[101]!==Te||e[102]!==Re||e[103]!==Ne||e[104]!==I?(Ke=h.jsxs(Vc,{ref:c,id:"terminal",collapsedSize:0,collapsible:!0,className:Se,minSize:10,defaultSize:0,maxSize:75,onResize:me,onCollapse:Te,onExpand:Re,children:[I,Ne]},"terminal"),e[100]=Se,e[101]=Te,e[102]=Re,e[103]=Ne,e[104]=I,e[105]=Ke):Ke=e[105];const nt=Ke;let it,te,Ce,Me,Be,J,fe,_e;return e[106]===Symbol.for("react.memo_cache_sentinel")?(it=QH(),e[106]=it):it=e[106],e[107]===Symbol.for("react.memo_cache_sentinel")?(te=h.jsx(Fc,{children:h.jsx(ZM,{})}),e[107]=te):te=e[107],e[108]!==nt?(Ce=h.jsx(jx,{capability:"terminal",children:nt}),e[108]=nt,e[109]=Ce):Ce=e[109],e[110]!==g||e[111]!==Ce?(Me=h.jsx(Vc,{children:h.jsxs(cS,{autoSaveId:"marimo:chrome:v1:l1",direction:"vertical",children:[g,Ce]})}),e[110]=g,e[111]=Ce,e[112]=Me):Me=e[112],e[113]===Symbol.for("react.memo_cache_sentinel")?(Be=h.jsx(lH,{}),e[113]=Be):Be=e[113],e[114]!==we||e[115]!==Me?(J=h.jsxs(cS,{autoSaveId:"marimo:chrome:v1:l2",direction:"horizontal",storage:it,children:[te,we,Me,Be]}),e[114]=we,e[115]=Me,e[116]=J):J=e[116],e[117]===Symbol.for("react.memo_cache_sentinel")?(fe=h.jsx(kc,{children:h.jsx(Fc,{children:h.jsx(GM,{})})}),e[117]=fe):fe=e[117],e[118]!==J?(_e=h.jsxs(e$,{children:[J,fe]}),e[118]=J,e[119]=_e):_e=e[119],_e};function _F(){window.dispatchEvent(new Event("resize"))}function bF(){requestAnimationFrame(_F)}function yF(){window.dispatchEvent(new Event("resize"))}function xF(){requestAnimationFrame(yF)}let p3;p3=new URL(window.location.href).searchParams.get(cH.showChrome)==="false",jS=Object.freeze(Object.defineProperty({__proto__:null,default:t=>{const e=X.c(10);if(p3){let s,i,a;return e[0]!==t?(s=h.jsx(Nx,{hideControls:!0,...t}),e[0]=t,e[1]=s):s=e[1],e[2]===Symbol.for("react.memo_cache_sentinel")?(i=h.jsx(eg,{}),e[2]=i):i=e[2],e[3]!==s?(a=h.jsxs(h.Fragment,{children:[s,i]}),e[3]=s,e[4]=a):a=e[4],a}let n,o,r;return e[5]!==t?(n=h.jsx(Nx,{...t}),e[5]=t,e[6]=n):n=e[6],e[7]===Symbol.for("react.memo_cache_sentinel")?(o=h.jsx(eg,{}),e[7]=o):o=e[7],e[8]!==n?(r=h.jsxs(gF,{children:[n,o]}),e[8]=n,e[9]=r):r=e[9],r}},Symbol.toStringTag,{value:"Module"}))});export{nm as C,Hc as E,An as P,r$ as __tla,$c as a,jS as e,va as f,om as u};
|
144
|
+
`)}),includeOtherCode:Nc("")}}function oF(t){Zt.error("An error occurred:",t)}function rF(t){Zt.debug("Received HTTP response from server:",t)}function sF(t){if(t.length===0)return!1;const e=t.at(-1);if(!e||e.role!=="assistant"||!e.parts)return!1;const n=e.parts;return n.length===0?!1:n[n.length-1].type==="reasoning"}const iF=K.lazy(()=>Rp(()=>import("./tracing-3IY9qyNR.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122]),import.meta.url).then(t=>({default:t.Tracing}))),aF=()=>{const t=X.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=h.jsx(K.Suspense,{fallback:h.jsx(lF,{}),children:h.jsx(iF,{})}),t[0]=e):e=t[0],e},lF=()=>{const t=X.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=h.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:h.jsx(eo,{})}),t[0]=e):e=t[0],e},cF=()=>{const t=X.c(25),{openModal:e,closeModal:n}=Vn();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=[],t[0]=o):o=t[0];const{data:r,loading:s,error:i,reload:a}=$n(uF,o);let l;t[1]!==r?(l=r===void 0?[]:r,t[1]=r,t[2]=l):l=t[2];const c=l;let d;t[3]!==c?(d=c.filter(hF).map(fF),t[3]=c,t[4]=d):d=t[4];const u=d;if(s&&c.length===0){let y;return t[5]===Symbol.for("react.memo_cache_sentinel")?(y=h.jsx(eo,{size:"medium",centered:!0}),t[5]=y):y=t[5],y}if(i){let y;return t[6]!==i?(y=h.jsx(Xs,{error:i}),t[6]=i,t[7]=y):y=t[7],y}if(c.length===0){let y;return t[8]===Symbol.for("react.memo_cache_sentinel")?(y=h.jsx(An,{title:"No environment variables",description:"No environment variables are available in this notebook.",icon:h.jsx(Kc,{})}),t[8]=y):y=t[8],y}let f,p,_,g,m,b,x;return t[9]!==n||t[10]!==e||t[11]!==u||t[12]!==a?(f=()=>e(h.jsx(kg,{providerNames:u,onSuccess:()=>{a(),n()},onClose:n})),t[9]=n,t[10]=e,t[11]=u,t[12]=a,t[13]=f):f=t[13],t[14]===Symbol.for("react.memo_cache_sentinel")?(p=h.jsx(Lr,{className:"h-4 w-4"}),t[14]=p):p=t[14],t[15]!==f?(_=h.jsx("div",{className:"flex justify-end h-8 border-b",children:h.jsx("button",{type:"button",className:"float-right border-l px-2 m-0 h-full hover:bg-accent hover:text-accent-foreground",onClick:f,children:p})}),t[15]=f,t[16]=_):_=t[16],t[17]===Symbol.for("react.memo_cache_sentinel")?(g=h.jsx(Gp,{children:h.jsxs(Ks,{children:[h.jsx(Fr,{children:"Environment Variable"}),h.jsx(Fr,{children:"Source"}),h.jsx(Fr,{})]})}),t[17]=g):g=t[17],t[18]!==c?(m=c.map(pF),t[18]=c,t[19]=m):m=t[19],t[20]!==m?(b=h.jsxs(qp,{className:"overflow-auto flex-1 mb-16",children:[g,h.jsx(Yp,{children:m})]}),t[20]=m,t[21]=b):b=t[21],t[22]!==_||t[23]!==b?(x=h.jsxs("div",{className:"flex flex-col h-full",children:[_,b]}),t[22]=_,t[23]=b,t[24]=x):x=t[24],x},dF=t=>{const e=X.c(9),{className:n,ariaLabel:o,onCopy:r}=t,[s,i]=K.useState(!1);let a;e[0]!==r?(a=()=>{r(),i(!0),setTimeout(()=>i(!1),1e3)},e[0]=r,e[1]=a):a=e[1];const l=a;let c,d;return e[2]!==s?(c=s?h.jsx(yc,{className:"w-3 h-3 text-green-700 rounded"}):h.jsx(Ls,{className:"w-3 h-3 hover:bg-muted rounded"}),e[2]=s,e[3]=c):c=e[3],e[4]!==o||e[5]!==n||e[6]!==l||e[7]!==c?(d=h.jsx("button",{type:"button",className:n,onClick:l,"aria-label":o,children:c}),e[4]=o,e[5]=n,e[6]=l,e[7]=c,e[8]=d):d=e[8],d};async function uF(){return vg((await xS.request({})).secrets)}function hF(t){return t.provider!=="env"}function fF(t){return t.name}function pF(t){return t.keys.map(e=>h.jsxs(Ks,{className:"group",children:[h.jsx(zr,{children:e}),h.jsx(zr,{children:t.provider!=="env"&&h.jsx(z4,{variant:"outline",className:"select-none",children:t.name})}),h.jsx(zr,{children:h.jsx(dF,{ariaLabel:`Copy ${e}`,onCopy:async()=>{await yn(`os.environ["${e}"]`),lt({title:"Copied to clipboard",description:`os.environ["${e}"] has been copied to your clipboard.`})},className:Oe("float-right px-2 h-full text-xs text-muted-foreground hover:text-foreground","invisible group-hover:visible")})})]},`${t.name}-${e}`))}const mF=K.lazy(()=>Rp(()=>import("./terminal-B0sHUSvx.js"),__vite__mapDeps([123,1,2,124]),import.meta.url)),gF=t=>{const e=X.c(120),{children:n}=t,{isSidebarOpen:o,isTerminalOpen:r,selectedPanel:s}=bc(),{setIsSidebarOpen:i,setIsTerminalOpen:a}=na(),l=K.useRef(null),c=K.useRef(null);let d,u,f,p,_;e[0]!==o?(d=()=>{if(!l.current)return;const ue=l.current.isCollapsed();o&&ue&&l.current.expand(),o||ue||l.current.collapse(),requestAnimationFrame(bF)},u=[o],e[0]=o,e[1]=d,e[2]=u):(d=e[1],u=e[2]),A.useEffect(d,u),e[3]!==r?(f=()=>{if(!c.current)return;const ue=c.current.isCollapsed();r&&ue&&c.current.expand(),r||ue||c.current.collapse(),requestAnimationFrame(xF)},p=[r],e[3]=r,e[4]=f,e[5]=p):(f=e[4],p=e[5]),A.useEffect(f,p),e[6]!==n?(_=h.jsx(Vc,{id:"app",className:"relative h-full",children:h.jsx(A.Suspense,{children:n})},"app"),e[6]=n,e[7]=_):_=e[7];const g=_,m=o?"resize-handle":"resize-handle-collapsed";let b,x;e[8]!==m?(b=Oe("border-border no-print z-10",m,"vertical"),e[8]=m,e[9]=b):b=e[9],e[10]!==b?(x=h.jsx(aS,{onDragging:lS,className:b}),e[10]=b,e[11]=x):x=e[11];const y=x,v=r?"resize-handle":"resize-handle-collapsed";let S,k;e[12]!==v?(S=Oe("border-border no-print z-20",v,"horizontal"),e[12]=v,e[13]=S):S=e[13],e[14]!==S?(k=h.jsx(aS,{onDragging:lS,className:S}),e[14]=S,e[15]=k):k=e[15];const I=k;let j,E,T,M,L,B,O,z,F,V,P,C,H,N,$,Y,Z,q,re,ne,oe;e[16]!==s?(j=h.jsx("div",{className:"text-sm text-[var(--slate-11)] uppercase tracking-wide font-semibold flex-1",children:s}),e[16]=s,e[17]=j):j=e[17],e[18]!==i?(E=()=>i(!1),e[18]=i,e[19]=E):E=e[19],e[20]===Symbol.for("react.memo_cache_sentinel")?(T=h.jsx(go,{className:"w-4 h-4"}),e[20]=T):T=e[20],e[21]!==E?(M=h.jsx(Pe,{"data-testid":"close-helper-pane",className:"m-0",size:"xs",variant:"text",onClick:E,children:T}),e[21]=E,e[22]=M):M=e[22],e[23]!==j||e[24]!==M?(L=h.jsxs("div",{className:"p-3 border-b flex justify-between items-center",children:[j,M]}),e[23]=j,e[24]=M,e[25]=L):L=e[25],e[26]!==s?(B=s==="files"&&h.jsx(rR,{}),e[26]=s,e[27]=B):B=e[27],e[28]!==s?(O=s==="errors"&&h.jsx(Ax,{}),e[28]=s,e[29]=O):O=e[29],e[30]!==s?(z=s==="variables"&&h.jsx(k2,{}),e[30]=s,e[31]=z):z=e[31],e[32]!==s?(F=s==="dependencies"&&h.jsx(TD,{}),e[32]=s,e[33]=F):F=e[33],e[34]!==s?(V=s==="packages"&&h.jsx(TR,{}),e[34]=s,e[35]=V):V=e[35],e[36]!==s?(P=s==="outline"&&h.jsx(rO,{}),e[36]=s,e[37]=P):P=e[37],e[38]!==s?(C=s==="datasources"&&h.jsx(SR,{}),e[38]=s,e[39]=C):C=e[39],e[40]!==s?(H=s==="documentation"&&h.jsx(PD,{}),e[40]=s,e[41]=H):H=e[41],e[42]!==s?(N=s==="snippets"&&h.jsx(cR,{}),e[42]=s,e[43]=N):N=e[43],e[44]!==s?($=s==="scratchpad"&&h.jsx(AR,{}),e[44]=s,e[45]=$):$=e[45],e[46]!==s?(Y=s==="chat"&&h.jsx(KL,{}),e[46]=s,e[47]=Y):Y=e[47],e[48]!==s?(Z=s==="logs"&&h.jsx(S2,{}),e[48]=s,e[49]=Z):Z=e[49],e[50]!==s?(q=s==="tracing"&&h.jsx(aF,{}),e[50]=s,e[51]=q):q=e[51],e[52]!==s?(re=s==="secrets"&&h.jsx(cF,{}),e[52]=s,e[53]=re):re=e[53],e[54]!==B||e[55]!==O||e[56]!==z||e[57]!==F||e[58]!==V||e[59]!==P||e[60]!==C||e[61]!==H||e[62]!==N||e[63]!==$||e[64]!==Y||e[65]!==Z||e[66]!==q||e[67]!==re?(ne=h.jsx(A.Suspense,{children:h.jsxs(Fc,{children:[B,O,z,F,V,P,C,H,N,$,Y,Z,q,re]})}),e[54]=B,e[55]=O,e[56]=z,e[57]=F,e[58]=V,e[59]=P,e[60]=C,e[61]=H,e[62]=N,e[63]=$,e[64]=Y,e[65]=Z,e[66]=q,e[67]=re,e[68]=ne):ne=e[68],e[69]!==L||e[70]!==ne?(oe=h.jsx(kc,{children:h.jsxs("div",{className:"flex flex-col h-full flex-1 overflow-hidden mr-[-4px]",children:[L,ne]})}),e[69]=L,e[70]=ne,e[71]=oe):oe=e[71];const G=oe,Q=o&&"border-r border-l border-[var(--slate-7)]";let ce,pe,de,ge,ie,xe;e[72]!==Q?(ce=Oe("dark:bg-[var(--slate-1)] no-print print:hidden hide-on-fullscreen",Q),e[72]=Q,e[73]=ce):ce=e[73],e[74]===Symbol.for("react.memo_cache_sentinel")?(pe=(ue,je)=>{var ve;je===0&&ue===10&&((ve=l.current)==null||ve.resize(30))},e[74]=pe):pe=e[74],e[75]!==i?(de=()=>i(!1),ge=()=>i(!0),e[75]=i,e[76]=de,e[77]=ge):(de=e[76],ge=e[77]),e[78]!==G||e[79]!==y?(ie=h.jsxs("span",{className:"flex flex-row h-full",children:[G," ",y]}),e[78]=G,e[79]=y,e[80]=ie):ie=e[80],e[81]!==ce||e[82]!==de||e[83]!==ge||e[84]!==ie?(xe=h.jsx(Vc,{ref:l,id:"helper",collapsedSize:0,collapsible:!0,className:ce,minSize:10,defaultSize:0,maxSize:75,onResize:pe,onCollapse:de,onExpand:ge,children:ie},"helper"),e[81]=ce,e[82]=de,e[83]=ge,e[84]=ie,e[85]=xe):xe=e[85];const we=xe,ae=r&&"border-[var(--slate-7)]";let Se,me,Te,Re,$e,ze,Ne,Ke;e[86]!==ae?(Se=Oe("dark:bg-[var(--slate-1)] no-print print:hidden hide-on-fullscreen",ae),e[86]=ae,e[87]=Se):Se=e[87],e[88]===Symbol.for("react.memo_cache_sentinel")?(me=(ue,je)=>{var ve;je===0&&ue===10&&((ve=c.current)==null||ve.resize(30))},e[88]=me):me=e[88],e[89]!==a?(Te=()=>a(!1),Re=()=>a(!0),e[89]=a,e[90]=Te,e[91]=Re):(Te=e[90],Re=e[91]),e[92]!==a?($e=()=>a(!1),e[92]=a,e[93]=$e):$e=e[93],e[94]!==r||e[95]!==$e?(ze=h.jsx(mF,{visible:r,onClose:$e}),e[94]=r,e[95]=$e,e[96]=ze):ze=e[96],e[97]!==r||e[98]!==ze?(Ne=h.jsx(CR,{isOpen:r,children:ze}),e[97]=r,e[98]=ze,e[99]=Ne):Ne=e[99],e[100]!==Se||e[101]!==Te||e[102]!==Re||e[103]!==Ne||e[104]!==I?(Ke=h.jsxs(Vc,{ref:c,id:"terminal",collapsedSize:0,collapsible:!0,className:Se,minSize:10,defaultSize:0,maxSize:75,onResize:me,onCollapse:Te,onExpand:Re,children:[I,Ne]},"terminal"),e[100]=Se,e[101]=Te,e[102]=Re,e[103]=Ne,e[104]=I,e[105]=Ke):Ke=e[105];const nt=Ke;let it,te,Ce,Me,Be,J,fe,_e;return e[106]===Symbol.for("react.memo_cache_sentinel")?(it=QH(),e[106]=it):it=e[106],e[107]===Symbol.for("react.memo_cache_sentinel")?(te=h.jsx(Fc,{children:h.jsx(ZM,{})}),e[107]=te):te=e[107],e[108]!==nt?(Ce=h.jsx(jx,{capability:"terminal",children:nt}),e[108]=nt,e[109]=Ce):Ce=e[109],e[110]!==g||e[111]!==Ce?(Me=h.jsx(Vc,{children:h.jsxs(cS,{autoSaveId:"marimo:chrome:v1:l1",direction:"vertical",children:[g,Ce]})}),e[110]=g,e[111]=Ce,e[112]=Me):Me=e[112],e[113]===Symbol.for("react.memo_cache_sentinel")?(Be=h.jsx(lH,{}),e[113]=Be):Be=e[113],e[114]!==we||e[115]!==Me?(J=h.jsxs(cS,{autoSaveId:"marimo:chrome:v1:l2",direction:"horizontal",storage:it,children:[te,we,Me,Be]}),e[114]=we,e[115]=Me,e[116]=J):J=e[116],e[117]===Symbol.for("react.memo_cache_sentinel")?(fe=h.jsx(kc,{children:h.jsx(Fc,{children:h.jsx(GM,{})})}),e[117]=fe):fe=e[117],e[118]!==J?(_e=h.jsxs(e$,{children:[J,fe]}),e[118]=J,e[119]=_e):_e=e[119],_e};function _F(){window.dispatchEvent(new Event("resize"))}function bF(){requestAnimationFrame(_F)}function yF(){window.dispatchEvent(new Event("resize"))}function xF(){requestAnimationFrame(yF)}let p3;p3=new URL(window.location.href).searchParams.get(cH.showChrome)==="false",jS=Object.freeze(Object.defineProperty({__proto__:null,default:t=>{const e=X.c(10);if(p3){let s,i,a;return e[0]!==t?(s=h.jsx(Nx,{hideControls:!0,...t}),e[0]=t,e[1]=s):s=e[1],e[2]===Symbol.for("react.memo_cache_sentinel")?(i=h.jsx(eg,{}),e[2]=i):i=e[2],e[3]!==s?(a=h.jsxs(h.Fragment,{children:[s,i]}),e[3]=s,e[4]=a):a=e[4],a}let n,o,r;return e[5]!==t?(n=h.jsx(Nx,{...t}),e[5]=t,e[6]=n):n=e[6],e[7]===Symbol.for("react.memo_cache_sentinel")?(o=h.jsx(eg,{}),e[7]=o):o=e[7],e[8]!==n?(r=h.jsxs(gF,{children:[n,o]}),e[8]=n,e[9]=r):r=e[9],r}},Symbol.toStringTag,{value:"Module"}))});export{nm as C,Hc as E,An as P,r$ as __tla,$c as a,jS as e,va as f,om as u};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
var D;import{g as It,s as Ct}from"./chunk-RZ5BOZE2-
|
1
|
+
var D;import{g as It,s as Ct}from"./chunk-RZ5BOZE2-Cb8myTXn.js";import{_ as h,b as xt,a as Dt,s as $t,g as vt,p as wt,q as Lt,c as V,l as x,y as Mt,x as Bt,A as Ft,B as Yt,o as Pt,r as zt,u as Gt}from"./mermaid-Y_fFfPGV.js";import{s as Kt}from"./transform-Cyp0GDF-.js";import{c as Zt}from"./channel-CGpk5nyh.js";import"./index-DzTq_FpA.js";import"./step-BwsUM5iJ.js";import"./timer-DFzT7np-.js";var lt=function(){var s=h(function(a,u,o,n){for(o=o||{},n=a.length;n--;o[a[n]]=u);return o},"o"),i=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,50],l=[1,10],y=[1,11],c=[1,12],r=[1,13],_=[1,20],g=[1,21],E=[1,22],$=[1,23],v=[1,24],N=[1,19],w=[1,25],Z=[1,26],L=[1,18],tt=[1,33],et=[1,34],st=[1,35],it=[1,36],nt=[1,37],ht=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,50,63,64,65,66,67],O=[1,42],T=[1,43],M=[1,52],B=[40,50,68,69],F=[1,63],Y=[1,61],S=[1,58],P=[1,62],z=[1,64],U=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,63,64,65,66,67],yt=[63,64,65,66,67],ut=[1,81],dt=[1,80],pt=[1,78],_t=[1,79],gt=[6,10,42,47],I=[6,10,13,41,42,47,48,49],j=[1,89],W=[1,88],Q=[1,87],G=[19,56],mt=[1,98],ft=[1,97],at=[19,56,58,60],rt={trace:h(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,attribute:51,attributeType:52,attributeName:53,attributeKeyTypeList:54,attributeComment:55,ATTRIBUTE_WORD:56,attributeKeyType:57,",":58,ATTRIBUTE_KEY:59,COMMENT:60,cardinality:61,relType:62,ZERO_OR_ONE:63,ZERO_OR_MORE:64,ONE_OR_MORE:65,ONLY_ONE:66,MD_PARENT:67,NON_IDENTIFYING:68,IDENTIFYING:69,WORD:70,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",56:"ATTRIBUTE_WORD",58:",",59:"ATTRIBUTE_KEY",60:"COMMENT",63:"ZERO_OR_ONE",64:"ZERO_OR_MORE",65:"ONE_OR_MORE",66:"ONLY_ONE",67:"MD_PARENT",68:"NON_IDENTIFYING",69:"IDENTIFYING",70:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[18,1],[18,2],[51,2],[51,3],[51,3],[51,4],[52,1],[53,1],[54,1],[54,3],[57,1],[55,1],[12,3],[61,1],[61,1],[61,1],[61,1],[61,1],[62,1],[62,1],[14,1],[14,1],[14,1]],performAction:h(function(a,u,o,n,d,t,K){var e=t.length-1;switch(d){case 1:break;case 2:case 6:case 7:this.$=[];break;case 3:t[e-1].push(t[e]),this.$=t[e-1];break;case 4:case 5:case 55:case 78:case 62:case 63:case 66:this.$=t[e];break;case 8:n.addEntity(t[e-4]),n.addEntity(t[e-2]),n.addRelationship(t[e-4],t[e],t[e-2],t[e-3]);break;case 9:n.addEntity(t[e-8]),n.addEntity(t[e-4]),n.addRelationship(t[e-8],t[e],t[e-4],t[e-5]),n.setClass([t[e-8]],t[e-6]),n.setClass([t[e-4]],t[e-2]);break;case 10:n.addEntity(t[e-6]),n.addEntity(t[e-2]),n.addRelationship(t[e-6],t[e],t[e-2],t[e-3]),n.setClass([t[e-6]],t[e-4]);break;case 11:n.addEntity(t[e-6]),n.addEntity(t[e-4]),n.addRelationship(t[e-6],t[e],t[e-4],t[e-5]),n.setClass([t[e-4]],t[e-2]);break;case 12:n.addEntity(t[e-3]),n.addAttributes(t[e-3],t[e-1]);break;case 13:n.addEntity(t[e-5]),n.addAttributes(t[e-5],t[e-1]),n.setClass([t[e-5]],t[e-3]);break;case 14:n.addEntity(t[e-2]);break;case 15:n.addEntity(t[e-4]),n.setClass([t[e-4]],t[e-2]);break;case 16:n.addEntity(t[e]);break;case 17:n.addEntity(t[e-2]),n.setClass([t[e-2]],t[e]);break;case 18:n.addEntity(t[e-6],t[e-4]),n.addAttributes(t[e-6],t[e-1]);break;case 19:n.addEntity(t[e-8],t[e-6]),n.addAttributes(t[e-8],t[e-1]),n.setClass([t[e-8]],t[e-3]);break;case 20:n.addEntity(t[e-5],t[e-3]);break;case 21:n.addEntity(t[e-7],t[e-5]),n.setClass([t[e-7]],t[e-2]);break;case 22:n.addEntity(t[e-3],t[e-1]);break;case 23:n.addEntity(t[e-5],t[e-3]),n.setClass([t[e-5]],t[e]);break;case 24:case 25:this.$=t[e].trim(),n.setAccTitle(this.$);break;case 26:case 27:this.$=t[e].trim(),n.setAccDescription(this.$);break;case 32:n.setDirection("TB");break;case 33:n.setDirection("BT");break;case 34:n.setDirection("RL");break;case 35:n.setDirection("LR");break;case 36:this.$=t[e-3],n.addClass(t[e-2],t[e-1]);break;case 37:case 38:case 56:case 64:case 43:this.$=[t[e]];break;case 39:case 40:this.$=t[e-2].concat([t[e]]);break;case 41:this.$=t[e-2],n.setClass(t[e-1],t[e]);break;case 42:this.$=t[e-3],n.addCssStyles(t[e-2],t[e-1]);break;case 44:case 65:t[e-2].push(t[e]),this.$=t[e-2];break;case 46:this.$=t[e-1]+t[e];break;case 54:case 76:case 77:case 67:this.$=t[e].replace(/"/g,"");break;case 57:t[e].push(t[e-1]),this.$=t[e];break;case 58:this.$={type:t[e-1],name:t[e]};break;case 59:this.$={type:t[e-2],name:t[e-1],keys:t[e]};break;case 60:this.$={type:t[e-2],name:t[e-1],comment:t[e]};break;case 61:this.$={type:t[e-3],name:t[e-2],keys:t[e-1],comment:t[e]};break;case 68:this.$={cardA:t[e],relType:t[e-1],cardB:t[e-2]};break;case 69:this.$=n.Cardinality.ZERO_OR_ONE;break;case 70:this.$=n.Cardinality.ZERO_OR_MORE;break;case 71:this.$=n.Cardinality.ONE_OR_MORE;break;case 72:this.$=n.Cardinality.ONLY_ONE;break;case 73:this.$=n.Cardinality.MD_PARENT;break;case 74:this.$=n.Identification.NON_IDENTIFYING;break;case 75:this.$=n.Identification.IDENTIFYING}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(i,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:l,24:y,26:c,28:r,29:14,30:15,31:16,32:17,33:_,34:g,35:E,36:$,37:v,40:N,43:w,44:Z,50:L},s(i,[2,7],{1:[2,1]}),s(i,[2,3]),{9:27,11:9,22:l,24:y,26:c,28:r,29:14,30:15,31:16,32:17,33:_,34:g,35:E,36:$,37:v,40:N,43:w,44:Z,50:L},s(i,[2,5]),s(i,[2,6]),s(i,[2,16],{12:28,61:32,15:[1,29],17:[1,30],20:[1,31],63:tt,64:et,65:st,66:it,67:nt}),{23:[1,38]},{25:[1,39]},{27:[1,40]},s(i,[2,27]),s(i,[2,28]),s(i,[2,29]),s(i,[2,30]),s(i,[2,31]),s(ht,[2,54]),s(ht,[2,55]),s(i,[2,32]),s(i,[2,33]),s(i,[2,34]),s(i,[2,35]),{16:41,40:O,41:T},{16:44,40:O,41:T},{16:45,40:O,41:T},s(i,[2,4]),{11:46,40:N,50:L},{16:47,40:O,41:T},{18:48,19:[1,49],51:50,52:51,56:M},{11:53,40:N,50:L},{62:54,68:[1,55],69:[1,56]},s(B,[2,69]),s(B,[2,70]),s(B,[2,71]),s(B,[2,72]),s(B,[2,73]),s(i,[2,24]),s(i,[2,25]),s(i,[2,26]),{13:F,38:57,41:Y,42:S,45:59,46:60,48:P,49:z},s(U,[2,37]),s(U,[2,38]),{16:65,40:O,41:T,42:S},{13:F,38:66,41:Y,42:S,45:59,46:60,48:P,49:z},{13:[1,67],15:[1,68]},s(i,[2,17],{61:32,12:69,17:[1,70],42:S,63:tt,64:et,65:st,66:it,67:nt}),{19:[1,71]},s(i,[2,14]),{18:72,19:[2,56],51:50,52:51,56:M},{53:73,56:[1,74]},{56:[2,62]},{21:[1,75]},{61:76,63:tt,64:et,65:st,66:it,67:nt},s(yt,[2,74]),s(yt,[2,75]),{6:ut,10:dt,39:77,42:pt,47:_t},{40:[1,82],41:[1,83]},s(gt,[2,43],{46:84,13:F,41:Y,48:P,49:z}),s(I,[2,45]),s(I,[2,50]),s(I,[2,51]),s(I,[2,52]),s(I,[2,53]),s(i,[2,41],{42:S}),{6:ut,10:dt,39:85,42:pt,47:_t},{14:86,40:j,50:W,70:Q},{16:90,40:O,41:T},{11:91,40:N,50:L},{18:92,19:[1,93],51:50,52:51,56:M},s(i,[2,12]),{19:[2,57]},s(G,[2,58],{54:94,55:95,57:96,59:mt,60:ft}),s([19,56,59,60],[2,63]),s(i,[2,22],{15:[1,100],17:[1,99]}),s([40,50],[2,68]),s(i,[2,36]),{13:F,41:Y,45:101,46:60,48:P,49:z},s(i,[2,47]),s(i,[2,48]),s(i,[2,49]),s(U,[2,39]),s(U,[2,40]),s(I,[2,46]),s(i,[2,42]),s(i,[2,8]),s(i,[2,76]),s(i,[2,77]),s(i,[2,78]),{13:[1,102],42:S},{13:[1,104],15:[1,103]},{19:[1,105]},s(i,[2,15]),s(G,[2,59],{55:106,58:[1,107],60:ft}),s(G,[2,60]),s(at,[2,64]),s(G,[2,67]),s(at,[2,66]),{18:108,19:[1,109],51:50,52:51,56:M},{16:110,40:O,41:T},s(gt,[2,44],{46:84,13:F,41:Y,48:P,49:z}),{14:111,40:j,50:W,70:Q},{16:112,40:O,41:T},{14:113,40:j,50:W,70:Q},s(i,[2,13]),s(G,[2,61]),{57:114,59:mt},{19:[1,115]},s(i,[2,20]),s(i,[2,23],{17:[1,116],42:S}),s(i,[2,11]),{13:[1,117],42:S},s(i,[2,10]),s(at,[2,65]),s(i,[2,18]),{18:118,19:[1,119],51:50,52:51,56:M},{14:120,40:j,50:W,70:Q},{19:[1,121]},s(i,[2,21]),s(i,[2,9]),s(i,[2,19])],defaultActions:{52:[2,62],72:[2,57]},parseError:h(function(a,u){if(!u.recoverable){var o=new Error(a);throw o.hash=u,o}this.trace(a)},"parseError"),parse:h(function(a){var u=this,o=[0],n=[],d=[null],t=[],K=this.table,e="",q=0,bt=0,Rt=t.slice.call(arguments,1),p=Object.create(this.lexer),R={yy:{}};for(var ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ct)&&(R.yy[ct]=this.yy[ct]);p.setInput(a,R.yy),R.yy.lexer=p,R.yy.parser=this,p.yylloc===void 0&&(p.yylloc={});var ot=p.yylloc;t.push(ot);var At=p.options&&p.options.ranges;function Et(){var b;return typeof(b=n.pop()||p.lex()||1)!="number"&&(b instanceof Array&&(b=(n=b).pop()),b=u.symbols_[b]||b),b}typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,h(function(b){o.length=o.length-2*b,d.length=d.length-b,t.length=t.length-b},"popStack"),h(Et,"lex");for(var m,A,f,kt,H,k,Ot,J,C={};;){if(A=o[o.length-1],this.defaultActions[A]?f=this.defaultActions[A]:(m==null&&(m=Et()),f=K[A]&&K[A][m]),f===void 0||!f.length||!f[0]){var Tt="";for(H in J=[],K[A])this.terminals_[H]&&H>2&&J.push("'"+this.terminals_[H]+"'");Tt=p.showPosition?"Parse error on line "+(q+1)+`:
|
2
2
|
`+p.showPosition()+`
|
3
3
|
Expecting `+J.join(", ")+", got '"+(this.terminals_[m]||m)+"'":"Parse error on line "+(q+1)+": Unexpected "+(m==1?"end of input":"'"+(this.terminals_[m]||m)+"'"),this.parseError(Tt,{text:p.match,token:this.terminals_[m]||m,line:p.yylineno,loc:ot,expected:J})}if(f[0]instanceof Array&&f.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+m);switch(f[0]){case 1:o.push(m),d.push(p.yytext),t.push(p.yylloc),o.push(f[1]),m=null,bt=p.yyleng,e=p.yytext,q=p.yylineno,ot=p.yylloc;break;case 2:if(k=this.productions_[f[1]][1],C.$=d[d.length-k],C._$={first_line:t[t.length-(k||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(k||1)].first_column,last_column:t[t.length-1].last_column},At&&(C._$.range=[t[t.length-(k||1)].range[0],t[t.length-1].range[1]]),(kt=this.performAction.apply(C,[e,bt,q,R.yy,f[1],d,t].concat(Rt)))!==void 0)return kt;k&&(o=o.slice(0,-1*k*2),d=d.slice(0,-1*k),t=t.slice(0,-1*k)),o.push(this.productions_[f[1]][0]),d.push(C.$),t.push(C._$),Ot=K[o[o.length-2]][o[o.length-1]],o.push(Ot);break;case 3:return!0}}return!0},"parse")},Nt=function(){return{EOF:1,parseError:h(function(a,u){if(!this.yy.parser)throw new Error(a);this.yy.parser.parseError(a,u)},"parseError"),setInput:h(function(a,u){return this.yy=u||this.yy||{},this._input=a,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:h(function(){var a=this._input[0];return this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a,a.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},"input"),unput:h(function(a){var u=a.length,o=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-u),this.offset-=u;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),o.length-1&&(this.yylineno-=o.length-1);var d=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:o?(o.length===n.length?this.yylloc.first_column:0)+n[n.length-o.length].length-o[0].length:this.yylloc.first_column-u},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-u]),this.yyleng=this.yytext.length,this},"unput"),more:h(function(){return this._more=!0,this},"more"),reject:h(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:h(function(a){this.unput(this.match.slice(a))},"less"),pastInput:h(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:h(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:h(function(){var a=this.pastInput(),u=new Array(a.length+1).join("-");return a+this.upcomingInput()+`
|