import{s as _i,n as le,V as zi,m as hi,W as Pi,E as Hi,x as Di,d as o,y as Wi,z as Ii,A as Ni,i as m,e as p,k as d,a as di,b as C,h as Ri,f as v,g as gi,j as se,l as L,o as ji,p as Ui,q as Xi,r as Yi,t as Ct,u as Qi,v as Ki}from"../chunks/scheduler.BpCfkKY9.js";import{S as wi,i as Ti,d as b,t as c,a as g,m as y,b as h,e as _,c as Ji,g as Zi}from"../chunks/index.DgNprLIf.js";import{D as pi}from"../chunks/DocTab.tOK6NS1a.js";import{P as x}from"../chunks/PropListing.D06rtIvW.js";import{y as en,z as tn,g as $i,B as ne,O as nn,F as j,t as yi,C as ci}from"../chunks/VennDiagram.svelte_svelte_type_style_lang.D6RMC20c.js";import{w as rn}from"../chunks/entry.B0_vgMKs.js";import{e as sn,s as ln,Q as an,p as fn,a as Oi,r as Vi,C as on}from"../chunks/inferColumnTypes.CnFOaZxB.js";import{h as Ei}from"../chunks/setTrackProxy.Cyfckp0w.js";import{p as un}from"../chunks/stores.VunGwp4X.js";import{Q as mn}from"../chunks/QueryViewer.Cfet6bld.js";import{C as pn}from"../chunks/Chart.C6ABewTi.js";import{g as dn}from"../chunks/getSeriesConfig.BjopQj3L.js";import{g as gn}from"../chunks/getCompletedData.CCwTL3qM.js";import{R as cn}from"../chunks/ReferenceLine.OlbBxFth.js";import{p as bn}from"../chunks/profile.BW8tN6E9.js";function yn(l,t,i){let n,r,a,f,T,A,V,z,B,q,P,W,$,ae,I,M,U,R,ke=le,Me=()=>(ke(),ke=Hi(r,w=>i(29,R=w)),r),X,ge=le,ee=()=>(ge(),ge=Hi(n,w=>i(30,X=w)),n),H;l.$$.on_destroy.push(()=>ke()),l.$$.on_destroy.push(()=>ge());let we=zi(en);hi(l,we,w=>i(31,H=w));let Y=zi(tn);const{resolveColor:He}=$i();let{y:F=void 0}=t;const fe=!!F;let{series:N=void 0}=t;const oe=!!N;let{options:ue=void 0}=t,{size:O=void 0}=t,{name:re=void 0}=t,{shape:te=void 0}=t,{fillColor:ce=void 0}=t,{opacity:Q=.7}=t,{outlineColor:be=void 0}=t,{outlineWidth:K=void 0}=t,me=35,{scaleTo:ie=1}=t,{useTooltip:pe=!1}=t,{tooltipTitle:D}=t,{seriesOrder:ye=void 0}=t,{seriesLabelFmt:J=void 0}=t,de,G;function Ee(w){const k=w[2];return Math.sqrt(k/$*ae)}let he,Z;return pe&&(he={tooltip:{formatter:function(k){return de?D?G=`<span id="tooltip" style='font-weight:600'>${j(k.value[3],"0")}</span><br/>
                            ${ne(N)}: <span style='float:right; margin-left: 15px;'>${j(k.seriesName)}</span><br/>
                            ${ne(f,V)}: <span style='float:right; margin-left: 15px;'>${j(k.value[0],V)}</span><br/>
                            ${ne(typeof F=="object"?k.seriesName:F,z)}: <span style='float:right; margin-left: 15px;'>${j(k.value[1],z)}</span><br/>
                            ${ne(O,B)} <span style='font-weight: 400;'> (size)</span>: <span style='float:right; margin-left: 15px;'>${j(k.value[2],B)}</span>`:G=`<span id="tooltip" style='font-weight:600'>${j(k.seriesName)}</span><br/>
                            ${ne(f,V)}: <span style='float:right; margin-left: 15px;'>${j(k.value[0],V)}</span><br/>
                            ${ne(typeof F=="object"?k.seriesName:F,z)}: <span style='float:right; margin-left: 15px;'>${j(k.value[1],z)}</span><br/>
                            ${ne(O,B)} <span style='font-weight: 400;'> (size)</span>: <span style='float:right; margin-left: 15px;'>${j(k.value[2],B)}</span>`:D?G=`<span id="tooltip" style='font-weight:600;'>${j(k.value[3],"0")}</span><br/>
                            <span style='font-weight: 400;'>${ne(f,V)}:</span> <span style='float:right; margin-left: 15px;'>${j(k.value[0],V)}</span><br/>
                            <span style='font-weight: 400;'>${ne(F,z)}:</span> <span style='float:right; margin-left: 15px;'>${j(k.value[1],z)}</span><br/>
                            <span style='font-weight: 400;'>${ne(O,B)} <span style='font-weight: 400;'> (size)</span>:</span> <span style='float:right; margin-left: 15px;'>${j(k.value[2],B)}</span>`:G=`<span id="tooltip" style='font-weight: 600;'>${ne(f,V)}:</span> <span style='float:right; margin-left: 15px;'>${j(k.value[0],V)}</span><br/>
                            <span style='font-weight: 600;'>${ne(F,z)}:</span> <span style='float:right; margin-left: 15px;'>${j(k.value[1],z)}</span><br/>
                            <span style='font-weight: 600;'>${ne(O,B)} <span style='font-weight: 400;'> (size)</span>:</span> <span style='float:right; margin-left: 15px;'>${j(k.value[2],B)}</span>`,G}}},Z={tooltip:{trigger:"item"}}),Pi(()=>{Y.update(w=>(T?(w.yAxis={...w.yAxis,...U.xAxis},w.xAxis={...w.xAxis,...U.yAxis}):(w.yAxis[0]={...w.yAxis[0],...U.yAxis},w.xAxis={...w.xAxis,...U.xAxis}),pe&&(w.tooltip={...w.tooltip,...Z.tooltip}),w))}),l.$$set=w=>{"y"in w&&i(3,F=w.y),"series"in w&&i(4,N=w.series),"options"in w&&i(8,ue=w.options),"size"in w&&i(5,O=w.size),"name"in w&&i(6,re=w.name),"shape"in w&&i(9,te=w.shape),"fillColor"in w&&i(10,ce=w.fillColor),"opacity"in w&&i(11,Q=w.opacity),"outlineColor"in w&&i(12,be=w.outlineColor),"outlineWidth"in w&&i(13,K=w.outlineWidth),"scaleTo"in w&&i(14,ie=w.scaleTo),"useTooltip"in w&&i(15,pe=w.useTooltip),"tooltipTitle"in w&&i(7,D=w.tooltipTitle),"seriesOrder"in w&&i(16,ye=w.seriesOrder),"seriesLabelFmt"in w&&i(17,J=w.seriesLabelFmt)},l.$$.update=()=>{l.$$.dirty[0]&1024&&ee(i(1,n=He(ce))),l.$$.dirty[0]&4096&&Me(i(0,r=He(be))),l.$$.dirty[0]&278528&&i(18,me=me*(ie/1)),l.$$.dirty[1]&1&&i(27,a=H.data),l.$$.dirty[1]&1&&i(26,f=H.x),l.$$.dirty[1]&1&&i(20,T=H.swapXY),l.$$.dirty[1]&1&&i(21,A=H.xType),l.$$.dirty[1]&1&&(V=H.xFormat),l.$$.dirty[1]&1&&(z=H.yFormat),l.$$.dirty[1]&1&&(B=H.sizeFormat),l.$$.dirty[1]&1&&i(24,q=H.xMismatch),l.$$.dirty[1]&1&&i(23,P=H.columnSummary),l.$$.dirty[0]&8|l.$$.dirty[1]&1&&i(3,F=fe?F:H.y),l.$$.dirty[0]&16|l.$$.dirty[1]&1&&i(4,N=oe?N:H.series),l.$$.dirty[0]&32|l.$$.dirty[1]&1&&i(5,O=O??H.size),l.$$.dirty[0]&128|l.$$.dirty[1]&1&&i(7,D=D??H.tooltipTitle),l.$$.dirty[0]&209715288&&(!N&&typeof F!="object"?(i(6,re=re??ne(F,P[F].title)),de=!1):(i(27,a=gn(a,f,F,N)),de=!0)),l.$$.dirty[0]&134217760&&i(28,W=nn(a,O)),l.$$.dirty[0]&268435456&&($=W[1]),l.$$.dirty[0]&262144&&(ae=Math.pow(me,2)),l.$$.dirty[0]&1611147776&&i(25,I={type:"scatter",label:{show:!1},labelLayout:{hideOverlap:!0},emphasis:{focus:"series"},symbolSize(w){return Ee(w)},symbol:te,itemStyle:{color:X,opacity:Q,borderColor:R,borderWidth:K},...he}),l.$$.dirty[0]&33554688&&ue&&i(25,I={...I,...ue}),l.$$.dirty[0]&261292280&&i(22,M=dn(a,f,F,N,T,I,re,q,P,ye,O,D,void 0,J)),l.$$.dirty[0]&4194304&&Y.update(w=>(w.series.push(...M),w.legend.data.push(...M.map(k=>k.name.toString())),w)),l.$$.dirty[0]&2097152&&(U={yAxis:{scale:!0,boundaryGap:["1%","1%"]},xAxis:{boundaryGap:[A==="time"?"2%":"1%","2%"]}})},[r,n,we,F,N,O,re,D,ue,te,ce,Q,be,K,ie,pe,ye,J,me,he,T,A,M,P,q,I,f,a,W,R,X,H]}class hn extends wi{constructor(t){super(),Ti(this,t,yn,null,_i,{y:3,series:4,options:8,size:5,name:6,shape:9,fillColor:10,opacity:11,outlineColor:12,outlineWidth:13,scaleTo:14,useTooltip:15,tooltipTitle:7,seriesOrder:16,seriesLabelFmt:17},null,[-1,-1])}}function _n(l){let t,i,n;t=new hn({props:{shape:l[27],fillColor:l[51],opacity:l[28],outlineColor:l[50],outlineWidth:l[29],scaleTo:l[30],useTooltip:l[47],seriesOrder:l[41],seriesLabelFmt:l[43]}});const r=l[56].default,a=Di(r,l,l[57],null);return{c(){_(t.$$.fragment),i=d(),a&&a.c()},l(f){h(t.$$.fragment,f),i=p(f),a&&a.l(f)},m(f,T){y(t,f,T),m(f,i,T),a&&a.m(f,T),n=!0},p(f,T){const A={};T[0]&134217728&&(A.shape=f[27]),T[1]&1048576&&(A.fillColor=f[51]),T[0]&268435456&&(A.opacity=f[28]),T[1]&524288&&(A.outlineColor=f[50]),T[0]&536870912&&(A.outlineWidth=f[29]),T[0]&1073741824&&(A.scaleTo=f[30]),T[1]&65536&&(A.useTooltip=f[47]),T[1]&1024&&(A.seriesOrder=f[41]),T[1]&4096&&(A.seriesLabelFmt=f[43]),t.$set(A),a&&a.p&&(!n||T[1]&67108864)&&Wi(a,r,f,f[57],n?Ni(r,f[57],T,null):Ii(f[57]),null)},i(f){n||(g(t.$$.fragment,f),g(a,f),n=!0)},o(f){c(t.$$.fragment,f),c(a,f),n=!1},d(f){f&&o(i),b(t,f),a&&a.d(f)}}}function wn(l){let t,i;return t=new pn({props:{data:l[1],x:l[2],y:l[3],size:l[4],xFmt:l[10],yFmt:l[9],sizeFmt:l[11],tooltipTitle:l[33],series:l[5],xType:l[6],yLog:l[7],yLogBase:l[8],legend:l[14],xAxisTitle:l[15],yAxisTitle:l[16],xGridlines:l[17],yGridlines:l[18],xAxisLabels:l[19],yAxisLabels:l[20],xBaseline:l[21],yBaseline:l[22],xTickMarks:l[23],yTickMarks:l[24],yMin:l[25],yMax:l[26],title:l[12],subtitle:l[13],chartType:Tn,bubble:l[46],sort:l[32],chartAreaHeight:l[31],colorPalette:l[49],echartsOptions:l[34],seriesOptions:l[35],printEchartsConfig:l[0],emptySet:l[36],emptyMessage:l[37],renderer:l[38],downloadableData:l[39],downloadableImage:l[40],connectGroup:l[42],seriesColors:l[48],leftPadding:l[44],rightPadding:l[45],$$slots:{default:[_n]},$$scope:{ctx:l}}}),{c(){_(t.$$.fragment)},l(n){h(t.$$.fragment,n)},m(n,r){y(t,n,r),i=!0},p(n,r){const a={};r[0]&2&&(a.data=n[1]),r[0]&4&&(a.x=n[2]),r[0]&8&&(a.y=n[3]),r[0]&16&&(a.size=n[4]),r[0]&1024&&(a.xFmt=n[10]),r[0]&512&&(a.yFmt=n[9]),r[0]&2048&&(a.sizeFmt=n[11]),r[1]&4&&(a.tooltipTitle=n[33]),r[0]&32&&(a.series=n[5]),r[0]&64&&(a.xType=n[6]),r[0]&128&&(a.yLog=n[7]),r[0]&256&&(a.yLogBase=n[8]),r[0]&16384&&(a.legend=n[14]),r[0]&32768&&(a.xAxisTitle=n[15]),r[0]&65536&&(a.yAxisTitle=n[16]),r[0]&131072&&(a.xGridlines=n[17]),r[0]&262144&&(a.yGridlines=n[18]),r[0]&524288&&(a.xAxisLabels=n[19]),r[0]&1048576&&(a.yAxisLabels=n[20]),r[0]&2097152&&(a.xBaseline=n[21]),r[0]&4194304&&(a.yBaseline=n[22]),r[0]&8388608&&(a.xTickMarks=n[23]),r[0]&16777216&&(a.yTickMarks=n[24]),r[0]&33554432&&(a.yMin=n[25]),r[0]&67108864&&(a.yMax=n[26]),r[0]&4096&&(a.title=n[12]),r[0]&8192&&(a.subtitle=n[13]),r[1]&32768&&(a.bubble=n[46]),r[1]&2&&(a.sort=n[32]),r[1]&1&&(a.chartAreaHeight=n[31]),r[1]&262144&&(a.colorPalette=n[49]),r[1]&8&&(a.echartsOptions=n[34]),r[1]&16&&(a.seriesOptions=n[35]),r[0]&1&&(a.printEchartsConfig=n[0]),r[1]&32&&(a.emptySet=n[36]),r[1]&64&&(a.emptyMessage=n[37]),r[1]&128&&(a.renderer=n[38]),r[1]&256&&(a.downloadableData=n[39]),r[1]&512&&(a.downloadableImage=n[40]),r[1]&2048&&(a.connectGroup=n[42]),r[1]&131072&&(a.seriesColors=n[48]),r[1]&8192&&(a.leftPadding=n[44]),r[1]&16384&&(a.rightPadding=n[45]),r[0]&2013265920|r[1]&68752384&&(a.$$scope={dirty:r,ctx:n}),t.$set(a)},i(n){i||(g(t.$$.fragment,n),i=!0)},o(n){c(t.$$.fragment,n),i=!1},d(n){b(t,n)}}}let Tn="Bubble Chart";function xn(l,t,i){let n,r,a,f,{$$slots:T={},$$scope:A}=t;const{resolveColor:V,resolveColorsObject:z,resolveColorPalette:B}=$i();let{data:q=void 0}=t,{x:P=void 0}=t,{y:W=void 0}=t,{size:$=void 0}=t,{series:ae=void 0}=t,{xType:I=void 0}=t,{yLog:M=void 0}=t,{yLogBase:U=void 0}=t,{yFmt:R=void 0}=t,{xFmt:ke=void 0}=t,{sizeFmt:Me=void 0}=t,{title:X=void 0}=t,{subtitle:ge=void 0}=t,{legend:ee=void 0}=t,{xAxisTitle:H="true"}=t,{yAxisTitle:we="true"}=t,{xGridlines:Y=void 0}=t,{yGridlines:He=void 0}=t,{xAxisLabels:F=void 0}=t,{yAxisLabels:fe=void 0}=t,{xBaseline:N=void 0}=t,{yBaseline:oe=void 0}=t,{xTickMarks:ue=void 0}=t,{yTickMarks:O=void 0}=t,{yMin:re=void 0}=t,{yMax:te=void 0}=t,{shape:ce=void 0}=t,{fillColor:Q=void 0}=t,{opacity:be=void 0}=t,{outlineColor:K=void 0}=t,{outlineWidth:me=void 0}=t,{scaleTo:ie=void 0}=t,{chartAreaHeight:pe=void 0}=t,{sort:D=void 0}=t,{tooltipTitle:ye=void 0}=t,J=!0,de=!0,{colorPalette:G="default"}=t,{echartsOptions:Ee=void 0}=t,{seriesOptions:he=void 0}=t,{printEchartsConfig:Z=!1}=t,{emptySet:w=void 0}=t,{emptyMessage:k=void 0}=t,{renderer:Be=void 0}=t,{downloadableData:Te=void 0}=t,{downloadableImage:$e=void 0}=t,{seriesColors:_e=void 0}=t,{seriesOrder:Ge=void 0}=t,{connectGroup:xe=void 0}=t,{seriesLabelFmt:Pe=void 0}=t,{leftPadding:Ce=void 0}=t,{rightPadding:De=void 0}=t;return l.$$set=u=>{"data"in u&&i(1,q=u.data),"x"in u&&i(2,P=u.x),"y"in u&&i(3,W=u.y),"size"in u&&i(4,$=u.size),"series"in u&&i(5,ae=u.series),"xType"in u&&i(6,I=u.xType),"yLog"in u&&i(7,M=u.yLog),"yLogBase"in u&&i(8,U=u.yLogBase),"yFmt"in u&&i(9,R=u.yFmt),"xFmt"in u&&i(10,ke=u.xFmt),"sizeFmt"in u&&i(11,Me=u.sizeFmt),"title"in u&&i(12,X=u.title),"subtitle"in u&&i(13,ge=u.subtitle),"legend"in u&&i(14,ee=u.legend),"xAxisTitle"in u&&i(15,H=u.xAxisTitle),"yAxisTitle"in u&&i(16,we=u.yAxisTitle),"xGridlines"in u&&i(17,Y=u.xGridlines),"yGridlines"in u&&i(18,He=u.yGridlines),"xAxisLabels"in u&&i(19,F=u.xAxisLabels),"yAxisLabels"in u&&i(20,fe=u.yAxisLabels),"xBaseline"in u&&i(21,N=u.xBaseline),"yBaseline"in u&&i(22,oe=u.yBaseline),"xTickMarks"in u&&i(23,ue=u.xTickMarks),"yTickMarks"in u&&i(24,O=u.yTickMarks),"yMin"in u&&i(25,re=u.yMin),"yMax"in u&&i(26,te=u.yMax),"shape"in u&&i(27,ce=u.shape),"fillColor"in u&&i(52,Q=u.fillColor),"opacity"in u&&i(28,be=u.opacity),"outlineColor"in u&&i(53,K=u.outlineColor),"outlineWidth"in u&&i(29,me=u.outlineWidth),"scaleTo"in u&&i(30,ie=u.scaleTo),"chartAreaHeight"in u&&i(31,pe=u.chartAreaHeight),"sort"in u&&i(32,D=u.sort),"tooltipTitle"in u&&i(33,ye=u.tooltipTitle),"colorPalette"in u&&i(54,G=u.colorPalette),"echartsOptions"in u&&i(34,Ee=u.echartsOptions),"seriesOptions"in u&&i(35,he=u.seriesOptions),"printEchartsConfig"in u&&i(0,Z=u.printEchartsConfig),"emptySet"in u&&i(36,w=u.emptySet),"emptyMessage"in u&&i(37,k=u.emptyMessage),"renderer"in u&&i(38,Be=u.renderer),"downloadableData"in u&&i(39,Te=u.downloadableData),"downloadableImage"in u&&i(40,$e=u.downloadableImage),"seriesColors"in u&&i(55,_e=u.seriesColors),"seriesOrder"in u&&i(41,Ge=u.seriesOrder),"connectGroup"in u&&i(42,xe=u.connectGroup),"seriesLabelFmt"in u&&i(43,Pe=u.seriesLabelFmt),"leftPadding"in u&&i(44,Ce=u.leftPadding),"rightPadding"in u&&i(45,De=u.rightPadding),"$$scope"in u&&i(57,A=u.$$scope)},l.$$.update=()=>{l.$$.dirty[1]&2097152&&i(51,n=V(Q)),l.$$.dirty[1]&4194304&&i(50,r=V(K)),l.$$.dirty[1]&32768&&i(46,J=yi(J)),l.$$.dirty[1]&65536&&i(47,de=yi(de)),l.$$.dirty[1]&8388608&&i(49,a=B(G)),l.$$.dirty[0]&1&&i(0,Z=yi(Z)),l.$$.dirty[1]&16777216&&i(48,f=z(_e))},[Z,q,P,W,$,ae,I,M,U,R,ke,Me,X,ge,ee,H,we,Y,He,F,fe,N,oe,ue,O,re,te,ce,be,me,ie,pe,D,ye,Ee,he,w,k,Be,Te,$e,Ge,xe,Pe,Ce,De,J,de,f,a,r,n,Q,K,G,_e,T,A]}class bi extends wi{constructor(t){super(),Ti(this,t,xn,wn,_i,{data:1,x:2,y:3,size:4,series:5,xType:6,yLog:7,yLogBase:8,yFmt:9,xFmt:10,sizeFmt:11,title:12,subtitle:13,legend:14,xAxisTitle:15,yAxisTitle:16,xGridlines:17,yGridlines:18,xAxisLabels:19,yAxisLabels:20,xBaseline:21,yBaseline:22,xTickMarks:23,yTickMarks:24,yMin:25,yMax:26,shape:27,fillColor:52,opacity:28,outlineColor:53,outlineWidth:29,scaleTo:30,chartAreaHeight:31,sort:32,tooltipTitle:33,colorPalette:54,echartsOptions:34,seriesOptions:35,printEchartsConfig:0,emptySet:36,emptyMessage:37,renderer:38,downloadableData:39,downloadableImage:40,seriesColors:55,seriesOrder:41,connectGroup:42,seriesLabelFmt:43,leftPadding:44,rightPadding:45},null,[-1,-1])}}function Cn(l){let t,i=S.title+"",n;return{c(){t=L("h1"),n=Ki(i),this.h()},l(r){t=v(r,"H1",{class:!0});var a=Ct(t);n=Qi(a,i),a.forEach(o),this.h()},h(){C(t,"class","title")},m(r,a){m(r,t,a),di(t,n)},p:le,d(r){r&&o(t)}}}function kn(l){return{c(){this.h()},l(t){this.h()},h(){document.title="Evidence"},m:le,p:le,d:le}}function Mn(l){let t,i,n,r,a;return document.title=t=S.title,{c(){i=d(),n=L("meta"),r=d(),a=L("meta"),this.h()},l(f){i=p(f),n=v(f,"META",{property:!0,content:!0}),r=p(f),a=v(f,"META",{name:!0,content:!0}),this.h()},h(){var f,T;C(n,"property","og:title"),C(n,"content",((f=S.og)==null?void 0:f.title)??S.title),C(a,"name","twitter:title"),C(a,"content",((T=S.og)==null?void 0:T.title)??S.title)},m(f,T){m(f,i,T),m(f,n,T),m(f,r,T),m(f,a,T)},p(f,T){T&0&&t!==(t=S.title)&&(document.title=t)},d(f){f&&(o(i),o(n),o(r),o(a))}}}function vn(l){var a;let t,i,n=Ln(),r=((a=S.og)==null?void 0:a.image)&&An();return{c(){n&&n.c(),t=d(),r&&r.c(),i=gi()},l(f){n&&n.l(f),t=p(f),r&&r.l(f),i=gi()},m(f,T){n&&n.m(f,T),m(f,t,T),r&&r.m(f,T),m(f,i,T)},p(f,T){var A;n.p(f,T),(A=S.og)!=null&&A.image&&r.p(f,T)},d(f){f&&(o(t),o(i)),n&&n.d(f),r&&r.d(f)}}}function Ln(l){let t,i,n,r,a;return{c(){t=L("meta"),i=d(),n=L("meta"),r=d(),a=L("meta"),this.h()},l(f){t=v(f,"META",{name:!0,content:!0}),i=p(f),n=v(f,"META",{property:!0,content:!0}),r=p(f),a=v(f,"META",{name:!0,content:!0}),this.h()},h(){var f,T;C(t,"name","description"),C(t,"content",S.description),C(n,"property","og:description"),C(n,"content",((f=S.og)==null?void 0:f.description)??S.description),C(a,"name","twitter:description"),C(a,"content",((T=S.og)==null?void 0:T.description)??S.description)},m(f,T){m(f,t,T),m(f,i,T),m(f,n,T),m(f,r,T),m(f,a,T)},p:le,d(f){f&&(o(t),o(i),o(n),o(r),o(a))}}}function An(l){let t,i,n;return{c(){t=L("meta"),i=d(),n=L("meta"),this.h()},l(r){t=v(r,"META",{property:!0,content:!0}),i=p(r),n=v(r,"META",{name:!0,content:!0}),this.h()},h(){var r,a;C(t,"property","og:image"),C(t,"content",Oi((r=S.og)==null?void 0:r.image)),C(n,"name","twitter:image"),C(n,"content",Oi((a=S.og)==null?void 0:a.image))},m(r,a){m(r,t,a),m(r,i,a),m(r,n,a)},p:le,d(r){r&&(o(t),o(i),o(n))}}}function Bi(l){let t,i;return t=new mn({props:{queryID:"price_vs_volume",queryResult:l[0]}}),{c(){_(t.$$.fragment)},l(n){h(t.$$.fragment,n)},m(n,r){y(t,n,r),i=!0},p(n,r){const a={};r&1&&(a.queryResult=n[0]),t.$set(a)},i(n){i||(g(t.$$.fragment,n),i=!0)},o(n){c(t.$$.fragment,n),i=!1},d(n){b(t,n)}}}function Sn(l){let t,i;return t=new ci({props:{source:`<BubbleChart 
    data={price_vs_volume}
    x=price
    y=number_of_units
    xFmt=usd0
    series=category
    size=total_sales
/>`,copyToClipboard:"true",language:"markdown"}}),{c(){_(t.$$.fragment)},l(n){h(t.$$.fragment,n)},m(n,r){y(t,n,r),i=!0},p:le,i(n){i||(g(t.$$.fragment,n),i=!0)},o(n){c(t.$$.fragment,n),i=!1},d(n){b(t,n)}}}function qn(l){let t,i,n;return i=new bi({props:{data:l[0],x:"price",y:"number_of_units",xFmt:"usd0",series:"category",size:"total_sales"}}),{c(){t=L("div"),_(i.$$.fragment),this.h()},l(r){t=v(r,"DIV",{slot:!0});var a=Ct(t);h(i.$$.fragment,a),a.forEach(o),this.h()},h(){C(t,"slot","preview")},m(r,a){m(r,t,a),y(i,t,null),n=!0},p(r,a){const f={};a&1&&(f.data=r[0]),i.$set(f)},i(r){n||(g(i.$$.fragment,r),n=!0)},o(r){c(i.$$.fragment,r),n=!1},d(r){r&&o(t),b(i)}}}function Fn(l){let t,i;return t=new ci({props:{source:`<BubbleChart 
    data={price_vs_volume}
    x=price
    y=number_of_units
    size=total_sales
/>`,copyToClipboard:"true",language:"markdown"}}),{c(){_(t.$$.fragment)},l(n){h(t.$$.fragment,n)},m(n,r){y(t,n,r),i=!0},p:le,i(n){i||(g(t.$$.fragment,n),i=!0)},o(n){c(t.$$.fragment,n),i=!1},d(n){b(t,n)}}}function zn(l){let t,i,n;return i=new bi({props:{data:l[0],x:"price",y:"number_of_units",size:"total_sales"}}),{c(){t=L("div"),_(i.$$.fragment),this.h()},l(r){t=v(r,"DIV",{slot:!0});var a=Ct(t);h(i.$$.fragment,a),a.forEach(o),this.h()},h(){C(t,"slot","preview")},m(r,a){m(r,t,a),y(i,t,null),n=!0},p(r,a){const f={};a&1&&(f.data=r[0]),i.$set(f)},i(r){n||(g(i.$$.fragment,r),n=!0)},o(r){c(i.$$.fragment,r),n=!1},d(r){r&&o(t),b(i)}}}function Hn(l){let t,i;return t=new ci({props:{source:`<BubbleChart 
    data={price_vs_volume}
    x=price
    y=number_of_units
    series=category
    size=total_sales
/>`,copyToClipboard:"true",language:"markdown"}}),{c(){_(t.$$.fragment)},l(n){h(t.$$.fragment,n)},m(n,r){y(t,n,r),i=!0},p:le,i(n){i||(g(t.$$.fragment,n),i=!0)},o(n){c(t.$$.fragment,n),i=!1},d(n){b(t,n)}}}function On(l){let t,i,n;return i=new bi({props:{data:l[0],x:"price",y:"number_of_units",series:"category",size:"total_sales"}}),{c(){t=L("div"),_(i.$$.fragment),this.h()},l(r){t=v(r,"DIV",{slot:!0});var a=Ct(t);h(i.$$.fragment,a),a.forEach(o),this.h()},h(){C(t,"slot","preview")},m(r,a){m(r,t,a),y(i,t,null),n=!0},p(r,a){const f={};a&1&&(f.data=r[0]),i.$set(f)},i(r){n||(g(i.$$.fragment,r),n=!0)},o(r){c(i.$$.fragment,r),n=!1},d(r){r&&o(t),b(i)}}}function Vn(l){let t,i;return t=new ci({props:{source:`<BubbleChart 
    data={price_vs_volume}
    x=price
    xFmt=usd0
    y=number_of_units
    size=total_sales
>
    <ReferenceLine
        x=75
        label="Consumer Limit"
    />
</BubbleChart>`,copyToClipboard:"true",language:"markdown"}}),{c(){_(t.$$.fragment)},l(n){h(t.$$.fragment,n)},m(n,r){y(t,n,r),i=!0},p:le,i(n){i||(g(t.$$.fragment,n),i=!0)},o(n){c(t.$$.fragment,n),i=!1},d(n){b(t,n)}}}function En(l){let t,i;return t=new cn({props:{x:"75",label:"Consumer Limit"}}),{c(){_(t.$$.fragment)},l(n){h(t.$$.fragment,n)},m(n,r){y(t,n,r),i=!0},p:le,i(n){i||(g(t.$$.fragment,n),i=!0)},o(n){c(t.$$.fragment,n),i=!1},d(n){b(t,n)}}}function Bn(l){let t,i,n;return i=new bi({props:{data:l[0],x:"price",xFmt:"usd0",y:"number_of_units",size:"total_sales",$$slots:{default:[En]},$$scope:{ctx:l}}}),{c(){t=L("div"),_(i.$$.fragment),this.h()},l(r){t=v(r,"DIV",{slot:!0});var a=Ct(t);h(i.$$.fragment,a),a.forEach(o),this.h()},h(){C(t,"slot","preview")},m(r,a){m(r,t,a),y(i,t,null),n=!0},p(r,a){const f={};a&1&&(f.data=r[0]),a&262144&&(f.$$scope={dirty:a,ctx:r}),i.$set(f)},i(r){n||(g(i.$$.fragment,r),n=!0)},o(r){c(i.$$.fragment,r),n=!1},d(r){r&&o(t),b(i)}}}function $n(l){let t,i,n,r,a,f,T,A="Use bubble charts to display categorical data across three metrics. The X and Y position, and the size of the bubble each represent a different metric for the category.",V,z,B,q,P='<a href="#examples">Examples</a>',W,$,ae='<a href="#default">Default</a>',I,M,U,R,ke='<a href="#multi-series">Multi-Series</a>',Me,X,ge,ee,H='<a href="#options">Options</a>',we,Y,He='<a href="#data">Data</a>',F,fe,N,oe,ue,O,re,te,ce,Q,be,K,me,ie,pe,D,ye,J,de,G,Ee='<a href="#formatting--styling">Formatting &amp; Styling</a>',he,Z,w,k,Be,Te,$e,_e,Ge,xe,Pe,Ce,De,u,kt,We,Mt,Ie,vt,Ne,Lt,Re,At,je,St,Ue,qt,Xe,Ft,Ye,zt,Qe,Ht,ve,xi='<a href="#axes">Axes</a>',Ot,Ke,Vt,Je,Et,Ze,Bt,et,$t,tt,Gt,it,Pt,nt,Dt,rt,Wt,st,It,lt,Nt,at,Rt,ft,jt,ot,Ut,ut,Xt,Le,Ci='<a href="#chart">Chart</a>',Yt,mt,Qt,pt,Kt,dt,Jt,gt,Zt,ct,ei,bt,ti,yt,ii,Ae,ki='<a href="#custom-echarts-options">Custom Echarts Options</a>',ni,ht,ri,_t,si,wt,li,Se,Mi='<a href="#interactivity">Interactivity</a>',ai,Tt,fi,qe,vi='<a href="#annotations">Annotations</a>',oi,Oe,Li='Bubble charts can include <a href="/components/charts/annotations" class="markdown">annotations</a> using the <code class="markdown">ReferenceLine</code> and <code class="markdown">ReferenceArea</code> components. These components are used within a chart component like so:',ui,Ve,mi,Fe=typeof S<"u"&&S.title&&S.hide_title!==!0&&Cn();function Gi(e,s){return typeof S<"u"&&S.title?Mn:kn}let xt=Gi()(l),ze=typeof S=="object"&&vn(),E=l[0]&&Bi(l);return z=new pi({props:{$$slots:{preview:[qn],default:[Sn]},$$scope:{ctx:l}}}),M=new pi({props:{$$slots:{preview:[zn],default:[Fn]},$$scope:{ctx:l}}}),X=new pi({props:{$$slots:{preview:[On],default:[Hn]},$$scope:{ctx:l}}}),fe=new x({props:{name:"data",description:"Query name, wrapped in curly braces",required:"true",options:"query name"}}),oe=new x({props:{name:"x",description:"Column to use for the x-axis of the chart",required:"true",options:"column name",defaultValue:"First column"}}),O=new x({props:{name:"y",description:"Column(s) to use for the y-axis of the chart",required:"true",options:"column name | array of column names",defaultValue:"Any non-assigned numeric columns"}}),te=new x({props:{name:"series",description:"Column to use as the series (groups) in a multi-series chart",required:"false",options:"column name"}}),Q=new x({props:{name:"size",description:"Column to use to scale the size of the bubbles",required:"true",options:"column name"}}),K=new x({props:{name:"sort",description:"Whether to apply default sort to your data. Default is x ascending for number and date x-axes, and y descending for category x-axes",required:"false",options:["true","false"],defaultValue:"true"}}),ie=new x({props:{name:"tooltipTitle",description:"Column to use as the title for each tooltip. Typically, this is a name to identify each point.",required:"false",options:"column name"}}),D=new x({props:{name:"emptySet",description:"Sets behaviour for empty datasets. Can throw an error, a warning, or allow empty. When set to 'error', empty datasets will block builds in `build:strict`. Note this only applies to initial page load - empty datasets caused by input component changes (dropdowns, etc.) are allowed.",required:"false",options:["error","warn","pass"],defaultValue:"error"}}),J=new x({props:{name:"emptyMessage",description:"Text to display when an empty dataset is received - only applies when `emptySet` is 'warn' or 'pass', or when the empty dataset is a result of an input component change (dropdowns, etc.).",required:"false",options:"string",defaultValue:"No records"}}),Z=new x({props:{name:"xFmt",description:"Format to use for x column (<a class=markdown href='/core-concepts/formatting'>see available formats<a/>)",required:"false",options:"Excel-style format | built-in format name | custom format name"}}),k=new x({props:{name:"yFmt",description:"Format to use for y column (<a class=markdown href='/core-concepts/formatting'>see available formats<a/>)",required:"false",options:"Excel-style format | built-in format name | custom format name"}}),Te=new x({props:{name:"sizeFmt",description:"Format to use for size column (<a class=markdown href='/core-concepts/formatting'>see available formats<a/>)",required:"false",options:"Excel-style format | built-in format name | custom format name"}}),_e=new x({props:{name:"seriesLabelFmt",description:"Format to use for series label (<a class=markdown href='/core-concepts/formatting'>see available formats<a/>)",required:"false",options:"Excel-style format | built-in format name | custom format name",defaultValue:"-"}}),xe=new x({props:{name:"shape",description:"Options for which shape to use for bubble points",required:"false",options:"circle | emptyCircle | rect | triangle | diamond",defaultValue:"circle"}}),Ce=new x({props:{name:"scaleTo",description:"Scale the size of the bubbles by this factor (e.g., 2 will double the size)",required:"false",options:"number",defaultValue:"1"}}),u=new x({props:{name:"opacity",description:"% of the full color that should be rendered, with remainder being transparent",required:"false",options:"number (0 to 1)",defaultValue:"0.7"}}),We=new x({props:{name:"fillColor",description:"Color to override default series color. Only accepts a single color.",required:"false",options:"CSS name | hexademical | RGB | HSL"}}),Ie=new x({props:{name:"outlineWidth",description:"Width of line surrounding each shape",required:"false",options:"number",defaultValue:"0"}}),Ne=new x({props:{name:"outlineColor",description:"Color to use for outline if outlineWidth > 0",required:"false",options:"CSS name | hexademical | RGB | HSL"}}),Re=new x({props:{name:"colorPalette",description:"Array of custom colours to use for the chart. E.g., ['#cf0d06','#eb5752','#e88a87'] Note that the array must be surrounded by curly braces.",required:"false",options:"array of color strings (CSS name | hexademical | RGB | HSL)",defaultValue:"built-in color palette"}}),je=new x({props:{name:"seriesColors",description:"Apply a specific color to each series in your chart. Unspecified series will receive colors from the built-in palette as normal. Note the double curly braces required in the syntax",required:"false",options:"object with series names and assigned colors",defaultValue:"colors applied by order of series in data"}}),Ue=new x({props:{name:"seriesOrder",description:"Apply a specific order to the series in a multi-series chart.",required:"false",options:"Array of series names in the order they should be used in the chart seriesOrder={['series one', 'series two']}",defaultValue:"default order implied by the data"}}),Xe=new x({props:{name:"leftPadding",description:"Number representing the padding (whitespace) on the left side of the chart. Useful to avoid labels getting cut off",options:"number"}}),Ye=new x({props:{name:"rightPadding",description:"Number representing the padding (whitespace) on the left side of the chart. Useful to avoid labels getting cut off",options:"number"}}),Qe=new x({props:{name:"xLabelWrap",description:"Whether to wrap x-axis labels when there is not enough space. Default behaviour is to truncate the labels.",options:["true","false"],defaultValue:"false"}}),Ke=new x({props:{name:"yLog",description:"Whether to use a log scale for the y-axis",required:"false",options:["true","false"],defaultValue:"false"}}),Je=new x({props:{name:"yLogBase",description:"Base to use when log scale is enabled",required:"false",options:"number",defaultValue:"10"}}),Ze=new x({props:{name:"xAxisTitle",description:"Name to show under x-axis. If 'true', formatted column name is used. Only works with swapXY=false",required:"false",options:"true | string | false",defaultValue:"true"}}),et=new x({props:{name:"yAxisTitle",description:"Name to show beside y-axis. If 'true', formatted column name is used.",required:"false",options:"true | string | false",defaultValue:"true"}}),tt=new x({props:{name:"xGridlines",description:"Turns on/off gridlines extending from x-axis tick marks (vertical lines when swapXY=false)",required:"false",options:["true","false"],defaultValue:"false"}}),it=new x({props:{name:"yGridlines",description:"Turns on/off gridlines extending from y-axis tick marks (horizontal lines when swapXY=false)",required:"false",options:["true","false"],defaultValue:"true"}}),nt=new x({props:{name:"xAxisLabels",description:"Turns on/off value labels on the x-axis",required:"false",options:["true","false"],defaultValue:"true"}}),rt=new x({props:{name:"yAxisLabels",description:"Turns on/off value labels on the y-axis",required:"false",options:["true","false"],defaultValue:"true"}}),st=new x({props:{name:"xBaseline",description:"Turns on/off thick axis line (line appears at y=0)",required:"false",options:["true","false"],defaultValue:"true"}}),lt=new x({props:{name:"yBaseline",description:"Turns on/off thick axis line (line appears directly alongside the y-axis labels)",required:"false",options:["true","false"],defaultValue:"false"}}),at=new x({props:{name:"xTickMarks",description:"Turns on/off tick marks for each of the x-axis labels",required:"false",options:["true","false"],defaultValue:"false"}}),ft=new x({props:{name:"yTickMarks",description:"Turns on/off tick marks for each of the y-axis labels",required:"false",options:["true","false"],defaultValue:"false"}}),ot=new x({props:{name:"yMin",description:"Starting value for the y-axis",required:"false",options:"number"}}),ut=new x({props:{name:"yMax",description:"Maximum value for the y-axis",required:"false",options:"number"}}),mt=new x({props:{name:"title",description:"Chart title. Appears at top left of chart.",required:"false",options:"string"}}),pt=new x({props:{name:"subtitle",description:"Chart subtitle. Appears just under title.",required:"false",options:"string"}}),dt=new x({props:{name:"legend",description:"Turns legend on or off. Legend appears at top center of chart.",required:"false",options:["true","false"],defaultValue:"true for multiple series"}}),gt=new x({props:{name:"chartAreaHeight",description:"Minimum height of the chart area (excl. header and footer) in pixels. Adjusting the height affects all viewport sizes and may impact the mobile UX.",required:"false",options:"number",defaultValue:"180"}}),ct=new x({props:{name:"renderer",description:"Which chart renderer type (canvas or SVG) to use. See ECharts' <a href='https://echarts.apache.org/handbook/en/best-practices/canvas-vs-svg/' class=markdown>documentation on renderers</a>.",required:"false",options:"canvas | svg",defaultValue:"canvas"}}),bt=new x({props:{name:"downloadableData",description:"Whether to show the download button to allow users to download the data",required:"false",options:["true","false"],defaultValue:"true"}}),yt=new x({props:{name:"downloadableImage",description:"Whether to show the button to allow users to save the chart as an image",required:"false",options:["true","false"],defaultValue:"true"}}),ht=new x({props:{name:"echartsOptions",description:"Custom Echarts options to override the default options. See <a href='/components/charts/echarts-options' class=markdown>reference page</a> for available options.",options:"{{exampleOption:'exampleValue'}}"}}),_t=new x({props:{name:"seriesOptions",description:"Custom Echarts options to override the default options for all series in the chart. This loops through the series to apply the settings rather than having to specify every series manually using `echartsOptions` See <a href='/components/charts/echarts-options' class=markdown>reference page</a> for available options.",options:"{{exampleSeriesOption:'exampleValue'}}"}}),wt=new x({props:{name:"printEchartsConfig",description:"Helper prop for custom chart development - inserts a code block with the current echarts config onto the page so you can see the options used and debug your custom options",options:["true","false"],defaultValue:"false"}}),Tt=new x({props:{name:"connectGroup",description:"Group name to connect this chart to other charts for synchronized tooltip hovering. Charts with the same `connectGroup` name will become connected"}}),Ve=new pi({props:{$$slots:{preview:[Bn],default:[Vn]},$$scope:{ctx:l}}}),{c(){Fe&&Fe.c(),t=d(),xt.c(),i=L("meta"),n=L("meta"),ze&&ze.c(),r=gi(),a=d(),E&&E.c(),f=d(),T=L("p"),T.textContent=A,V=d(),_(z.$$.fragment),B=d(),q=L("h2"),q.innerHTML=P,W=d(),$=L("h3"),$.innerHTML=ae,I=d(),_(M.$$.fragment),U=d(),R=L("h3"),R.innerHTML=ke,Me=d(),_(X.$$.fragment),ge=d(),ee=L("h2"),ee.innerHTML=H,we=d(),Y=L("h3"),Y.innerHTML=He,F=d(),_(fe.$$.fragment),N=d(),_(oe.$$.fragment),ue=d(),_(O.$$.fragment),re=d(),_(te.$$.fragment),ce=d(),_(Q.$$.fragment),be=d(),_(K.$$.fragment),me=d(),_(ie.$$.fragment),pe=d(),_(D.$$.fragment),ye=d(),_(J.$$.fragment),de=d(),G=L("h3"),G.innerHTML=Ee,he=d(),_(Z.$$.fragment),w=d(),_(k.$$.fragment),Be=d(),_(Te.$$.fragment),$e=d(),_(_e.$$.fragment),Ge=d(),_(xe.$$.fragment),Pe=d(),_(Ce.$$.fragment),De=d(),_(u.$$.fragment),kt=d(),_(We.$$.fragment),Mt=d(),_(Ie.$$.fragment),vt=d(),_(Ne.$$.fragment),Lt=d(),_(Re.$$.fragment),At=d(),_(je.$$.fragment),St=d(),_(Ue.$$.fragment),qt=d(),_(Xe.$$.fragment),Ft=d(),_(Ye.$$.fragment),zt=d(),_(Qe.$$.fragment),Ht=d(),ve=L("h3"),ve.innerHTML=xi,Ot=d(),_(Ke.$$.fragment),Vt=d(),_(Je.$$.fragment),Et=d(),_(Ze.$$.fragment),Bt=d(),_(et.$$.fragment),$t=d(),_(tt.$$.fragment),Gt=d(),_(it.$$.fragment),Pt=d(),_(nt.$$.fragment),Dt=d(),_(rt.$$.fragment),Wt=d(),_(st.$$.fragment),It=d(),_(lt.$$.fragment),Nt=d(),_(at.$$.fragment),Rt=d(),_(ft.$$.fragment),jt=d(),_(ot.$$.fragment),Ut=d(),_(ut.$$.fragment),Xt=d(),Le=L("h3"),Le.innerHTML=Ci,Yt=d(),_(mt.$$.fragment),Qt=d(),_(pt.$$.fragment),Kt=d(),_(dt.$$.fragment),Jt=d(),_(gt.$$.fragment),Zt=d(),_(ct.$$.fragment),ei=d(),_(bt.$$.fragment),ti=d(),_(yt.$$.fragment),ii=d(),Ae=L("h3"),Ae.innerHTML=ki,ni=d(),_(ht.$$.fragment),ri=d(),_(_t.$$.fragment),si=d(),_(wt.$$.fragment),li=d(),Se=L("h3"),Se.innerHTML=Mi,ai=d(),_(Tt.$$.fragment),fi=d(),qe=L("h2"),qe.innerHTML=vi,oi=d(),Oe=L("p"),Oe.innerHTML=Li,ui=d(),_(Ve.$$.fragment),this.h()},l(e){Fe&&Fe.l(e),t=p(e);const s=Ri("svelte-2igo1p",document.head);xt.l(s),i=v(s,"META",{name:!0,content:!0}),n=v(s,"META",{name:!0,content:!0}),ze&&ze.l(s),r=gi(),s.forEach(o),a=p(e),E&&E.l(e),f=p(e),T=v(e,"P",{class:!0,"data-svelte-h":!0}),se(T)!=="svelte-hzzw7"&&(T.textContent=A),V=p(e),h(z.$$.fragment,e),B=p(e),q=v(e,"H2",{class:!0,id:!0,"data-svelte-h":!0}),se(q)!=="svelte-1kq92gd"&&(q.innerHTML=P),W=p(e),$=v(e,"H3",{class:!0,id:!0,"data-svelte-h":!0}),se($)!=="svelte-1aesbfd"&&($.innerHTML=ae),I=p(e),h(M.$$.fragment,e),U=p(e),R=v(e,"H3",{class:!0,id:!0,"data-svelte-h":!0}),se(R)!=="svelte-1wv0aw3"&&(R.innerHTML=ke),Me=p(e),h(X.$$.fragment,e),ge=p(e),ee=v(e,"H2",{class:!0,id:!0,"data-svelte-h":!0}),se(ee)!=="svelte-1ezx5ce"&&(ee.innerHTML=H),we=p(e),Y=v(e,"H3",{class:!0,id:!0,"data-svelte-h":!0}),se(Y)!=="svelte-17ogxgg"&&(Y.innerHTML=He),F=p(e),h(fe.$$.fragment,e),N=p(e),h(oe.$$.fragment,e),ue=p(e),h(O.$$.fragment,e),re=p(e),h(te.$$.fragment,e),ce=p(e),h(Q.$$.fragment,e),be=p(e),h(K.$$.fragment,e),me=p(e),h(ie.$$.fragment,e),pe=p(e),h(D.$$.fragment,e),ye=p(e),h(J.$$.fragment,e),de=p(e),G=v(e,"H3",{class:!0,id:!0,"data-svelte-h":!0}),se(G)!=="svelte-1efk6lv"&&(G.innerHTML=Ee),he=p(e),h(Z.$$.fragment,e),w=p(e),h(k.$$.fragment,e),Be=p(e),h(Te.$$.fragment,e),$e=p(e),h(_e.$$.fragment,e),Ge=p(e),h(xe.$$.fragment,e),Pe=p(e),h(Ce.$$.fragment,e),De=p(e),h(u.$$.fragment,e),kt=p(e),h(We.$$.fragment,e),Mt=p(e),h(Ie.$$.fragment,e),vt=p(e),h(Ne.$$.fragment,e),Lt=p(e),h(Re.$$.fragment,e),At=p(e),h(je.$$.fragment,e),St=p(e),h(Ue.$$.fragment,e),qt=p(e),h(Xe.$$.fragment,e),Ft=p(e),h(Ye.$$.fragment,e),zt=p(e),h(Qe.$$.fragment,e),Ht=p(e),ve=v(e,"H3",{class:!0,id:!0,"data-svelte-h":!0}),se(ve)!=="svelte-19h8dhv"&&(ve.innerHTML=xi),Ot=p(e),h(Ke.$$.fragment,e),Vt=p(e),h(Je.$$.fragment,e),Et=p(e),h(Ze.$$.fragment,e),Bt=p(e),h(et.$$.fragment,e),$t=p(e),h(tt.$$.fragment,e),Gt=p(e),h(it.$$.fragment,e),Pt=p(e),h(nt.$$.fragment,e),Dt=p(e),h(rt.$$.fragment,e),Wt=p(e),h(st.$$.fragment,e),It=p(e),h(lt.$$.fragment,e),Nt=p(e),h(at.$$.fragment,e),Rt=p(e),h(ft.$$.fragment,e),jt=p(e),h(ot.$$.fragment,e),Ut=p(e),h(ut.$$.fragment,e),Xt=p(e),Le=v(e,"H3",{class:!0,id:!0,"data-svelte-h":!0}),se(Le)!=="svelte-ovqo9u"&&(Le.innerHTML=Ci),Yt=p(e),h(mt.$$.fragment,e),Qt=p(e),h(pt.$$.fragment,e),Kt=p(e),h(dt.$$.fragment,e),Jt=p(e),h(gt.$$.fragment,e),Zt=p(e),h(ct.$$.fragment,e),ei=p(e),h(bt.$$.fragment,e),ti=p(e),h(yt.$$.fragment,e),ii=p(e),Ae=v(e,"H3",{class:!0,id:!0,"data-svelte-h":!0}),se(Ae)!=="svelte-1i8rb3t"&&(Ae.innerHTML=ki),ni=p(e),h(ht.$$.fragment,e),ri=p(e),h(_t.$$.fragment,e),si=p(e),h(wt.$$.fragment,e),li=p(e),Se=v(e,"H3",{class:!0,id:!0,"data-svelte-h":!0}),se(Se)!=="svelte-nxdjuj"&&(Se.innerHTML=Mi),ai=p(e),h(Tt.$$.fragment,e),fi=p(e),qe=v(e,"H2",{class:!0,id:!0,"data-svelte-h":!0}),se(qe)!=="svelte-ifq1je"&&(qe.innerHTML=vi),oi=p(e),Oe=v(e,"P",{class:!0,"data-svelte-h":!0}),se(Oe)!=="svelte-17gkmgx"&&(Oe.innerHTML=Li),ui=p(e),h(Ve.$$.fragment,e),this.h()},h(){C(i,"name","twitter:card"),C(i,"content","summary_large_image"),C(n,"name","twitter:site"),C(n,"content","@evidence_dev"),C(T,"class","markdown"),C(q,"class","markdown"),C(q,"id","examples"),C($,"class","markdown"),C($,"id","default"),C(R,"class","markdown"),C(R,"id","multi-series"),C(ee,"class","markdown"),C(ee,"id","options"),C(Y,"class","markdown"),C(Y,"id","data"),C(G,"class","markdown"),C(G,"id","formatting--styling"),C(ve,"class","markdown"),C(ve,"id","axes"),C(Le,"class","markdown"),C(Le,"id","chart"),C(Ae,"class","markdown"),C(Ae,"id","custom-echarts-options"),C(Se,"class","markdown"),C(Se,"id","interactivity"),C(qe,"class","markdown"),C(qe,"id","annotations"),C(Oe,"class","markdown")},m(e,s){Fe&&Fe.m(e,s),m(e,t,s),xt.m(document.head,null),di(document.head,i),di(document.head,n),ze&&ze.m(document.head,null),di(document.head,r),m(e,a,s),E&&E.m(e,s),m(e,f,s),m(e,T,s),m(e,V,s),y(z,e,s),m(e,B,s),m(e,q,s),m(e,W,s),m(e,$,s),m(e,I,s),y(M,e,s),m(e,U,s),m(e,R,s),m(e,Me,s),y(X,e,s),m(e,ge,s),m(e,ee,s),m(e,we,s),m(e,Y,s),m(e,F,s),y(fe,e,s),m(e,N,s),y(oe,e,s),m(e,ue,s),y(O,e,s),m(e,re,s),y(te,e,s),m(e,ce,s),y(Q,e,s),m(e,be,s),y(K,e,s),m(e,me,s),y(ie,e,s),m(e,pe,s),y(D,e,s),m(e,ye,s),y(J,e,s),m(e,de,s),m(e,G,s),m(e,he,s),y(Z,e,s),m(e,w,s),y(k,e,s),m(e,Be,s),y(Te,e,s),m(e,$e,s),y(_e,e,s),m(e,Ge,s),y(xe,e,s),m(e,Pe,s),y(Ce,e,s),m(e,De,s),y(u,e,s),m(e,kt,s),y(We,e,s),m(e,Mt,s),y(Ie,e,s),m(e,vt,s),y(Ne,e,s),m(e,Lt,s),y(Re,e,s),m(e,At,s),y(je,e,s),m(e,St,s),y(Ue,e,s),m(e,qt,s),y(Xe,e,s),m(e,Ft,s),y(Ye,e,s),m(e,zt,s),y(Qe,e,s),m(e,Ht,s),m(e,ve,s),m(e,Ot,s),y(Ke,e,s),m(e,Vt,s),y(Je,e,s),m(e,Et,s),y(Ze,e,s),m(e,Bt,s),y(et,e,s),m(e,$t,s),y(tt,e,s),m(e,Gt,s),y(it,e,s),m(e,Pt,s),y(nt,e,s),m(e,Dt,s),y(rt,e,s),m(e,Wt,s),y(st,e,s),m(e,It,s),y(lt,e,s),m(e,Nt,s),y(at,e,s),m(e,Rt,s),y(ft,e,s),m(e,jt,s),y(ot,e,s),m(e,Ut,s),y(ut,e,s),m(e,Xt,s),m(e,Le,s),m(e,Yt,s),y(mt,e,s),m(e,Qt,s),y(pt,e,s),m(e,Kt,s),y(dt,e,s),m(e,Jt,s),y(gt,e,s),m(e,Zt,s),y(ct,e,s),m(e,ei,s),y(bt,e,s),m(e,ti,s),y(yt,e,s),m(e,ii,s),m(e,Ae,s),m(e,ni,s),y(ht,e,s),m(e,ri,s),y(_t,e,s),m(e,si,s),y(wt,e,s),m(e,li,s),m(e,Se,s),m(e,ai,s),y(Tt,e,s),m(e,fi,s),m(e,qe,s),m(e,oi,s),m(e,Oe,s),m(e,ui,s),y(Ve,e,s),mi=!0},p(e,[s]){typeof S<"u"&&S.title&&S.hide_title!==!0&&Fe.p(e,s),xt.p(e,s),typeof S=="object"&&ze.p(e,s),e[0]?E?(E.p(e,s),s&1&&g(E,1)):(E=Bi(e),E.c(),g(E,1),E.m(f.parentNode,f)):E&&(Zi(),c(E,1,1,()=>{E=null}),Ji());const Ai={};s&262145&&(Ai.$$scope={dirty:s,ctx:e}),z.$set(Ai);const Si={};s&262145&&(Si.$$scope={dirty:s,ctx:e}),M.$set(Si);const qi={};s&262145&&(qi.$$scope={dirty:s,ctx:e}),X.$set(qi);const Fi={};s&262145&&(Fi.$$scope={dirty:s,ctx:e}),Ve.$set(Fi)},i(e){mi||(g(E),g(z.$$.fragment,e),g(M.$$.fragment,e),g(X.$$.fragment,e),g(fe.$$.fragment,e),g(oe.$$.fragment,e),g(O.$$.fragment,e),g(te.$$.fragment,e),g(Q.$$.fragment,e),g(K.$$.fragment,e),g(ie.$$.fragment,e),g(D.$$.fragment,e),g(J.$$.fragment,e),g(Z.$$.fragment,e),g(k.$$.fragment,e),g(Te.$$.fragment,e),g(_e.$$.fragment,e),g(xe.$$.fragment,e),g(Ce.$$.fragment,e),g(u.$$.fragment,e),g(We.$$.fragment,e),g(Ie.$$.fragment,e),g(Ne.$$.fragment,e),g(Re.$$.fragment,e),g(je.$$.fragment,e),g(Ue.$$.fragment,e),g(Xe.$$.fragment,e),g(Ye.$$.fragment,e),g(Qe.$$.fragment,e),g(Ke.$$.fragment,e),g(Je.$$.fragment,e),g(Ze.$$.fragment,e),g(et.$$.fragment,e),g(tt.$$.fragment,e),g(it.$$.fragment,e),g(nt.$$.fragment,e),g(rt.$$.fragment,e),g(st.$$.fragment,e),g(lt.$$.fragment,e),g(at.$$.fragment,e),g(ft.$$.fragment,e),g(ot.$$.fragment,e),g(ut.$$.fragment,e),g(mt.$$.fragment,e),g(pt.$$.fragment,e),g(dt.$$.fragment,e),g(gt.$$.fragment,e),g(ct.$$.fragment,e),g(bt.$$.fragment,e),g(yt.$$.fragment,e),g(ht.$$.fragment,e),g(_t.$$.fragment,e),g(wt.$$.fragment,e),g(Tt.$$.fragment,e),g(Ve.$$.fragment,e),mi=!0)},o(e){c(E),c(z.$$.fragment,e),c(M.$$.fragment,e),c(X.$$.fragment,e),c(fe.$$.fragment,e),c(oe.$$.fragment,e),c(O.$$.fragment,e),c(te.$$.fragment,e),c(Q.$$.fragment,e),c(K.$$.fragment,e),c(ie.$$.fragment,e),c(D.$$.fragment,e),c(J.$$.fragment,e),c(Z.$$.fragment,e),c(k.$$.fragment,e),c(Te.$$.fragment,e),c(_e.$$.fragment,e),c(xe.$$.fragment,e),c(Ce.$$.fragment,e),c(u.$$.fragment,e),c(We.$$.fragment,e),c(Ie.$$.fragment,e),c(Ne.$$.fragment,e),c(Re.$$.fragment,e),c(je.$$.fragment,e),c(Ue.$$.fragment,e),c(Xe.$$.fragment,e),c(Ye.$$.fragment,e),c(Qe.$$.fragment,e),c(Ke.$$.fragment,e),c(Je.$$.fragment,e),c(Ze.$$.fragment,e),c(et.$$.fragment,e),c(tt.$$.fragment,e),c(it.$$.fragment,e),c(nt.$$.fragment,e),c(rt.$$.fragment,e),c(st.$$.fragment,e),c(lt.$$.fragment,e),c(at.$$.fragment,e),c(ft.$$.fragment,e),c(ot.$$.fragment,e),c(ut.$$.fragment,e),c(mt.$$.fragment,e),c(pt.$$.fragment,e),c(dt.$$.fragment,e),c(gt.$$.fragment,e),c(ct.$$.fragment,e),c(bt.$$.fragment,e),c(yt.$$.fragment,e),c(ht.$$.fragment,e),c(_t.$$.fragment,e),c(wt.$$.fragment,e),c(Tt.$$.fragment,e),c(Ve.$$.fragment,e),mi=!1},d(e){e&&(o(t),o(a),o(f),o(T),o(V),o(B),o(q),o(W),o($),o(I),o(U),o(R),o(Me),o(ge),o(ee),o(we),o(Y),o(F),o(N),o(ue),o(re),o(ce),o(be),o(me),o(pe),o(ye),o(de),o(G),o(he),o(w),o(Be),o($e),o(Ge),o(Pe),o(De),o(kt),o(Mt),o(vt),o(Lt),o(At),o(St),o(qt),o(Ft),o(zt),o(Ht),o(ve),o(Ot),o(Vt),o(Et),o(Bt),o($t),o(Gt),o(Pt),o(Dt),o(Wt),o(It),o(Nt),o(Rt),o(jt),o(Ut),o(Xt),o(Le),o(Yt),o(Qt),o(Kt),o(Jt),o(Zt),o(ei),o(ti),o(ii),o(Ae),o(ni),o(ri),o(si),o(li),o(Se),o(ai),o(fi),o(qe),o(oi),o(Oe),o(ui)),Fe&&Fe.d(e),xt.d(e),o(i),o(n),ze&&ze.d(e),o(r),E&&E.d(e),b(z,e),b(M,e),b(X,e),b(fe,e),b(oe,e),b(O,e),b(te,e),b(Q,e),b(K,e),b(ie,e),b(D,e),b(J,e),b(Z,e),b(k,e),b(Te,e),b(_e,e),b(xe,e),b(Ce,e),b(u,e),b(We,e),b(Ie,e),b(Ne,e),b(Re,e),b(je,e),b(Ue,e),b(Xe,e),b(Ye,e),b(Qe,e),b(Ke,e),b(Je,e),b(Ze,e),b(et,e),b(tt,e),b(it,e),b(nt,e),b(rt,e),b(st,e),b(lt,e),b(at,e),b(ft,e),b(ot,e),b(ut,e),b(mt,e),b(pt,e),b(dt,e),b(gt,e),b(ct,e),b(bt,e),b(yt,e),b(ht,e),b(_t,e),b(wt,e),b(Tt,e),b(Ve,e)}}}const S={title:"Bubble Chart",description:"Display categorical data across three metrics. The X and Y position, and the size of the bubble each represent a different metric for the category."};function Gn(l,t,i){let n,r;hi(l,un,M=>i(7,n=M)),hi(l,Vi,M=>i(13,r=M));let{data:a}=t,{data:f={},customFormattingSettings:T,__db:A,inputs:V}=a;ji(Vi,r="2f62c270757ce7c7d3d139fe1eb27f49",r);let z=sn(rn(V));Ui(z.subscribe(M=>V=M)),Xi(on,{getCustomFormats:()=>T.customFormats||[]});const B=(M,U)=>bn(A.query,M,{query_name:U});ln(B),n.params,Yi(()=>!0);let q={initialData:void 0,initialError:void 0},P=Ei`select
    item,
    category,
    sum(sales) as total_sales,
    count(*) as number_of_units,
    avg(sales) as price,
from needful_things.orders
group by all`,W=`select
    item,
    category,
    sum(sales) as total_sales,
    count(*) as number_of_units,
    avg(sales) as price,
from needful_things.orders
group by all`;f.price_vs_volume_data&&(f.price_vs_volume_data instanceof Error?q.initialError=f.price_vs_volume_data:q.initialData=f.price_vs_volume_data,f.price_vs_volume_columns&&(q.knownColumns=f.price_vs_volume_columns));let $,ae=!1;const I=an.createReactive({callback:M=>{i(0,$=M)},execFn:B},{id:"price_vs_volume",...q});return I(W,{noResolve:P,...q}),globalThis[Symbol.for("price_vs_volume")]={get value(){return $}},l.$$set=M=>{"data"in M&&i(1,a=M.data)},l.$$.update=()=>{l.$$.dirty&2&&i(2,{data:f={},customFormattingSettings:T,__db:A}=a,f),l.$$.dirty&4&&fn.set(Object.keys(f).length>0),l.$$.dirty&128&&n.params,l.$$.dirty&120&&(P||!ae?P||(I(W,{noResolve:P,...q}),i(6,ae=!0)):I(W,{noResolve:P}))},i(4,P=Ei`select
    item,
    category,
    sum(sales) as total_sales,
    count(*) as number_of_units,
    avg(sales) as price,
from needful_things.orders
group by all`),i(5,W=`select
    item,
    category,
    sum(sales) as total_sales,
    count(*) as number_of_units,
    avg(sales) as price,
from needful_things.orders
group by all`),[$,a,f,q,P,W,ae,n]}class ir extends wi{constructor(t){super(),Ti(this,t,Gn,$n,_i,{data:1})}}export{ir as component};
